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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1cd09c6f35389a86d71d99d7f7650b7829c09b42 | 457 | py | Python | scripts/get_auto_encoder_data/uniq.py | XingxingZhang/dress | 9bcb4d36883e58a7c2a90f76ac2e32c3374e3647 | [
"MIT"
] | 157 | 2017-07-16T14:30:12.000Z | 2022-03-22T22:59:37.000Z | scripts/get_auto_encoder_data/uniq.py | hengyicai/dress | 4d552817b081dc8b7b12ddc35f3a5b14de834a47 | [
"MIT"
] | 23 | 2017-09-27T10:41:16.000Z | 2021-05-27T17:40:04.000Z | scripts/get_auto_encoder_data/uniq.py | hengyicai/dress | 4d552817b081dc8b7b12ddc35f3a5b14de834a47 | [
"MIT"
] | 46 | 2017-07-19T12:13:59.000Z | 2022-01-26T15:30:57.000Z | #!/usr/bin/python
import sys
def uniq(infile,outfile):
s = set()
fout = open(outfile, 'w')
for line in open(infile):
if not line in s:
fout.write(line)
s.add(line)
fout.close()
if __name__ == '__main__':
if len(sys.argv) != 3:
print 'delete the duplicated l... | 22.85 | 76 | 0.564551 | 66 | 457 | 3.787879 | 0.575758 | 0.084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012308 | 0.28884 | 457 | 19 | 77 | 24.052632 | 0.756923 | 0.035011 | 0 | 0 | 0 | 0 | 0.215909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1cd1c22d1f662b9f0c92586c08cde436c06707f5 | 557 | py | Python | a816/parse/errors.py | manz/a816 | 2338ebf87039d6a4a4db8014c48c1d0d2488ceca | [
"MIT"
] | 2 | 2018-06-11T23:37:02.000Z | 2018-09-06T04:02:19.000Z | a816/parse/errors.py | manz/a816 | 2338ebf87039d6a4a4db8014c48c1d0d2488ceca | [
"MIT"
] | 8 | 2015-10-30T11:20:45.000Z | 2021-11-21T12:59:33.000Z | a816/parse/errors.py | manz/a816 | 2338ebf87039d6a4a4db8014c48c1d0d2488ceca | [
"MIT"
] | 1 | 2021-03-29T03:21:54.000Z | 2021-03-29T03:21:54.000Z | from typing import Optional
from a816.parse.tokens import Position, Token, TokenType
class ParserSyntaxError(Exception):
def __init__(self, message: str, token: Token, expected_token_type: Optional[TokenType] = None) -> None:
super().__init__(message)
self.token: Token = token
self.expect... | 32.764706 | 108 | 0.721724 | 63 | 557 | 6.031746 | 0.365079 | 0.078947 | 0.134211 | 0.105263 | 0.463158 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0.006579 | 0.181329 | 557 | 16 | 109 | 34.8125 | 0.826754 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1cd3af026607c741de4f259ec4b8c8044298618a | 318 | py | Python | src/SRM-181/kiloman.py | mikefeneley/topcoder | 175a7a05367c0458a900a3fea16af68ae5ee53ec | [
"MIT"
] | null | null | null | src/SRM-181/kiloman.py | mikefeneley/topcoder | 175a7a05367c0458a900a3fea16af68ae5ee53ec | [
"MIT"
] | null | null | null | src/SRM-181/kiloman.py | mikefeneley/topcoder | 175a7a05367c0458a900a3fea16af68ae5ee53ec | [
"MIT"
] | null | null | null |
class KiloMan:
def hitsTaken(self, pattern, jumps):
hits = 0
for idx, move in enumerate(jumps):
height = pattern[idx]
if(move == 'J' and height > 2):
hits += 1
elif(move == 'S' and height <= 2):
hits += 1
return hits
| 19.875 | 46 | 0.449686 | 36 | 318 | 3.972222 | 0.638889 | 0.125874 | 0.13986 | 0.195804 | 0.20979 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02809 | 0.440252 | 318 | 15 | 47 | 21.2 | 0.775281 | 0 | 0 | 0.2 | 0 | 0 | 0.006309 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1cd459f155639c2f782fb9cd2dd5b4727b908b3d | 845 | py | Python | twitoff/__init__.py | no-i-in-team/twitoff23 | c1742ccb3c021440ba3d0e5b98b5cf5e45ba59da | [
"MIT"
] | null | null | null | twitoff/__init__.py | no-i-in-team/twitoff23 | c1742ccb3c021440ba3d0e5b98b5cf5e45ba59da | [
"MIT"
] | null | null | null | twitoff/__init__.py | no-i-in-team/twitoff23 | c1742ccb3c021440ba3d0e5b98b5cf5e45ba59da | [
"MIT"
] | null | null | null | from os import getenv
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager
from .models import DB, Credential
def create_app():
"""Create Flask Application"""
app = Flask(__name__)
app.config['SECRET_KEY'] = 'asdf1234'
app.config["SQLALCHEMY_DATABASE_UR... | 26.40625 | 66 | 0.737278 | 109 | 845 | 5.458716 | 0.376147 | 0.080672 | 0.063866 | 0.05042 | 0.07395 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005764 | 0.178698 | 845 | 32 | 67 | 26.40625 | 0.851585 | 0.028402 | 0 | 0 | 0 | 0 | 0.113971 | 0.064951 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.318182 | 0.045455 | 0.5 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1cdbc402033036100bfff052580d6abdf74feb62 | 691 | py | Python | flsim/common/__init__.py | JohnlNguyen/FLSim | a5ed7c0b84499cd9dbc5fe95f8bcb4ba8ab5a5cb | [
"BSD-3-Clause"
] | 79 | 2021-12-09T18:05:09.000Z | 2022-03-23T20:43:46.000Z | flsim/common/__init__.py | JohnlNguyen/FLSim | a5ed7c0b84499cd9dbc5fe95f8bcb4ba8ab5a5cb | [
"BSD-3-Clause"
] | 11 | 2021-12-30T17:54:04.000Z | 2022-03-23T17:23:00.000Z | flsim/common/__init__.py | JohnlNguyen/FLSim | a5ed7c0b84499cd9dbc5fe95f8bcb4ba8ab5a5cb | [
"BSD-3-Clause"
] | 9 | 2021-12-09T19:55:22.000Z | 2022-03-15T00:02:08.000Z | #!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
from hydra.core.config_store import ConfigStore # @manual
from .timeout_simulator imp... | 24.678571 | 71 | 0.767004 | 77 | 691 | 6.753247 | 0.649351 | 0.153846 | 0.092308 | 0.107692 | 0.123077 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001698 | 0.147612 | 691 | 27 | 72 | 25.592593 | 0.881155 | 0.329957 | 0 | 0.266667 | 0 | 0 | 0.203947 | 0.129386 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.133333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1ce0fa54324052567f6049c44f753ab130651323 | 5,315 | py | Python | virus_total_apis/test/test_virustotal_api.py | arielbend/virustotal-api | 99d31462592b569ea86d6431dbcc9b2fe005d70e | [
"MIT"
] | 1 | 2018-09-12T00:37:05.000Z | 2018-09-12T00:37:05.000Z | virus_total_apis/test/test_virustotal_api.py | arielbend/virustotal-api | 99d31462592b569ea86d6431dbcc9b2fe005d70e | [
"MIT"
] | null | null | null | virus_total_apis/test/test_virustotal_api.py | arielbend/virustotal-api | 99d31462592b569ea86d6431dbcc9b2fe005d70e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test-virustotal-api
~~~~~~~~~~~~
This module tests the VirusTotal API.
:copyright: (c) 2014 by Josh "blacktop" Maine.
:license: GPLv3, see LICENSE for more details.
"""
from __future__ import print_function
import hashlib
import json
from unittest import TestCase
... | 29.364641 | 112 | 0.603387 | 715 | 5,315 | 4.295105 | 0.186014 | 0.055682 | 0.086617 | 0.098991 | 0.674699 | 0.652882 | 0.651254 | 0.651254 | 0.651254 | 0.651254 | 0 | 0.034519 | 0.285983 | 5,315 | 180 | 113 | 29.527778 | 0.774704 | 0.054563 | 0 | 0.559055 | 0 | 0.015748 | 0.088752 | 0.044675 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133858 | false | 0.007874 | 0.03937 | 0 | 0.181102 | 0.15748 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1ce116c16507de9305b51b3693d3726f37e4976c | 3,584 | py | Python | endtoend_tests/administrative.py | nahidupa/grr | 100a9d85ef2abb234e12e3ac2623caffb4116be7 | [
"Apache-2.0"
] | 1 | 2016-02-13T15:40:20.000Z | 2016-02-13T15:40:20.000Z | endtoend_tests/administrative.py | nahidupa/grr | 100a9d85ef2abb234e12e3ac2623caffb4116be7 | [
"Apache-2.0"
] | 3 | 2020-09-11T12:54:50.000Z | 2020-09-11T12:55:01.000Z | endtoend_tests/administrative.py | nahidupa/grr | 100a9d85ef2abb234e12e3ac2623caffb4116be7 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""End to end tests for lib.flows.general.administrative."""
import os
import logging
from grr.endtoend_tests import base
from grr.lib import aff4
from grr.lib import config_lib
from grr.lib import maintenance_utils
class TestGetClientStats(base.AutomatedTest):
"""GetClientStats test."""
... | 32.880734 | 79 | 0.670759 | 466 | 3,584 | 5.064378 | 0.427039 | 0.057627 | 0.05339 | 0.058475 | 0.067797 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008894 | 0.215681 | 3,584 | 108 | 80 | 33.185185 | 0.830665 | 0.089007 | 0 | 0.107692 | 0 | 0 | 0.133453 | 0.007554 | 0 | 0 | 0 | 0 | 0.153846 | 0 | null | null | 0 | 0.092308 | null | null | 0.015385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1cf5f3f810af8eea320f2e27fbf8bee0ac6667f5 | 261 | py | Python | 02_led.py | kioto/raspi_gpio_sample | 908183bfcf486b97b2888c4cb3ed536967555fc7 | [
"MIT"
] | null | null | null | 02_led.py | kioto/raspi_gpio_sample | 908183bfcf486b97b2888c4cb3ed536967555fc7 | [
"MIT"
] | null | null | null | 02_led.py | kioto/raspi_gpio_sample | 908183bfcf486b97b2888c4cb3ed536967555fc7 | [
"MIT"
] | null | null | null | #
# 02_led.py
#
import RPi.GPIO as GPIO
import time
LED_PORT = 18
GPIO.setmode(GPIO.BCM) # GPIO番号で指定
GPIO.setup(LED_PORT, GPIO.OUT)
# LEDを5秒間点灯する
GPIO.output(LED_PORT, True)
time.sleep(5)
GPIO.output(LED_PORT, False)
GPIO.cleanup()
print('done')
| 12.428571 | 43 | 0.704981 | 42 | 261 | 4.261905 | 0.571429 | 0.156425 | 0.145251 | 0.189944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027397 | 0.16092 | 261 | 20 | 44 | 13.05 | 0.789954 | 0.118774 | 0 | 0 | 0 | 0 | 0.017857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1cfb07014e741668ba04091f3442cd91790835a8 | 11,040 | py | Python | tests/conn_tests.py | unclehook/py3amulecmd | 7dbd9bbb4656b9d3564bca02a4015ee734b3e589 | [
"MIT"
] | null | null | null | tests/conn_tests.py | unclehook/py3amulecmd | 7dbd9bbb4656b9d3564bca02a4015ee734b3e589 | [
"MIT"
] | null | null | null | tests/conn_tests.py | unclehook/py3amulecmd | 7dbd9bbb4656b9d3564bca02a4015ee734b3e589 | [
"MIT"
] | null | null | null | import socket
from threading import Thread
from ec.conn import conn, ConnectionFailedError
class send_response(Thread):
def __init__ (self,responses):
Thread.__init__(self)
self.responses = responses
self.s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.s.setsockopt(socket... | 53.333333 | 1,911 | 0.652083 | 1,811 | 11,040 | 3.854776 | 0.215351 | 0.132359 | 0.130211 | 0.087667 | 0.512391 | 0.490044 | 0.484888 | 0.47486 | 0.464403 | 0.45366 | 0 | 0.181527 | 0.152717 | 11,040 | 206 | 1,912 | 53.592233 | 0.564785 | 0 | 0 | 0.456522 | 0 | 0.119565 | 0.357518 | 0.290217 | 0 | 0 | 0 | 0 | 0.054348 | 1 | 0.125 | false | 0.021739 | 0.016304 | 0 | 0.146739 | 0.005435 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1cfc6f587c4512703525b162228cd4698f489dbd | 834 | py | Python | v2.5.7/otp/ai/passlib/win32.py | TTOFFLINE-LEAK/ttoffline | bb0e91704a755d34983e94288d50288e46b68380 | [
"MIT"
] | 4 | 2019-07-01T15:46:43.000Z | 2021-07-23T16:26:48.000Z | v2.5.7/otp/ai/passlib/win32.py | TTOFFLINE-LEAK/ttoffline | bb0e91704a755d34983e94288d50288e46b68380 | [
"MIT"
] | 1 | 2019-06-29T03:40:05.000Z | 2021-06-13T01:15:16.000Z | v2.5.7/otp/ai/passlib/win32.py | TTOFFLINE-LEAK/ttoffline | bb0e91704a755d34983e94288d50288e46b68380 | [
"MIT"
] | 4 | 2019-07-28T21:18:46.000Z | 2021-02-25T06:37:25.000Z | from warnings import warn
warn("the 'passlib.win32' module is deprecated, and will be removed in passlib 1.8; please use the 'passlib.hash.nthash' and 'passlib.hash.lmhash' classes instead.", DeprecationWarning)
from binascii import hexlify
from otp.ai.passlib.utils.compat import unicode
from otp.ai.passlib.crypto.des ... | 39.714286 | 185 | 0.721823 | 123 | 834 | 4.747967 | 0.479675 | 0.056507 | 0.046233 | 0.082192 | 0.085616 | 0.085616 | 0.085616 | 0 | 0 | 0 | 0 | 0.016901 | 0.148681 | 834 | 21 | 186 | 39.714286 | 0.805634 | 0 | 0 | 0 | 0 | 0.05 | 0.245509 | 0.050299 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.2 | 0.25 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e80433109a94d8a3cc86e144a3919548faa0cbf6 | 481 | py | Python | mlscripts/random_forest_classifier.py | KirovVerst/techson_server | 184a59a7c8e5c3803e0242c77acf66b3723d332e | [
"MIT"
] | null | null | null | mlscripts/random_forest_classifier.py | KirovVerst/techson_server | 184a59a7c8e5c3803e0242c77acf66b3723d332e | [
"MIT"
] | null | null | null | mlscripts/random_forest_classifier.py | KirovVerst/techson_server | 184a59a7c8e5c3803e0242c77acf66b3723d332e | [
"MIT"
] | null | null | null | import pandas as pd
import pickle
from sklearn.ensemble import RandomForestClassifier
from techson_server.settings import BASE_DIR
path = BASE_DIR + '/db/dataset/data.csv'
train_data = pd.read_csv(path)
y_train = train_data['label']
x_train = train_data.drop('label', axis=1)
RFC = RandomForestClassifier(n_estimator... | 22.904762 | 61 | 0.765073 | 76 | 481 | 4.631579 | 0.565789 | 0.059659 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01182 | 0.120582 | 481 | 20 | 62 | 24.05 | 0.820331 | 0 | 0 | 0 | 0 | 0 | 0.151767 | 0.085239 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e807e4223276640ab37add62c03628b9b0132ab4 | 3,002 | py | Python | tests/test_login.py | FixItDad/vault-pwmgr | 8c9edec3786eefbf72f0c13c24f3d4e331ab1562 | [
"MIT"
] | 1 | 2018-01-26T12:45:44.000Z | 2018-01-26T12:45:44.000Z | tests/test_login.py | FixItDad/vault-pwmgr | 8c9edec3786eefbf72f0c13c24f3d4e331ab1562 | [
"MIT"
] | null | null | null | tests/test_login.py | FixItDad/vault-pwmgr | 8c9edec3786eefbf72f0c13c24f3d4e331ab1562 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# Functional tests for the initial password login page.
# Currently targeting Firefox
# Depends on the vault configuration provided by the startdev.sh script.
# TODO: configure vault data from pretest fixture.
import pytest
import time
from selenium import webdriver
from selenium.common.exception... | 30.323232 | 91 | 0.742172 | 391 | 3,002 | 5.526854 | 0.324808 | 0.050902 | 0.086534 | 0.096714 | 0.333642 | 0.309579 | 0.281814 | 0.233225 | 0.233225 | 0.211013 | 0 | 0.007591 | 0.166223 | 3,002 | 98 | 92 | 30.632653 | 0.855773 | 0.178215 | 0 | 0.307692 | 0 | 0 | 0.09947 | 0 | 0 | 0 | 0 | 0.010204 | 0.338462 | 1 | 0.107692 | false | 0.046154 | 0.107692 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e80ffb061be943efcae8450c04aa5051d7ab2482 | 1,223 | py | Python | DEPENDENCIES/seattlelib_v2/tests/test_dylink_dispatch.py | kevinkenzhao/Repy2 | a7afb4c8ba263c8a74775a6281a50d94880a8d34 | [
"MIT"
] | 2 | 2015-09-21T03:17:43.000Z | 2018-09-25T17:33:32.000Z | DEPENDENCIES/seattlelib_v2/tests/test_dylink_dispatch.py | kevinkenzhao/Repy2 | a7afb4c8ba263c8a74775a6281a50d94880a8d34 | [
"MIT"
] | 37 | 2015-01-01T17:08:54.000Z | 2018-10-12T04:36:15.000Z | DEPENDENCIES/seattlelib_v2/tests/test_dylink_dispatch.py | kevinkenzhao/Repy2 | a7afb4c8ba263c8a74775a6281a50d94880a8d34 | [
"MIT"
] | 21 | 2015-01-15T04:32:47.000Z | 2021-10-04T22:11:12.000Z | """
Author: Armon Dadgar
Description:
This test checks the behavior of dy_dispatch_module and makes sure it is sane.
Expected Output:
You should see 'Steps (i/4)' where i is 1..4
"""
# We should alway have HAS_DYLINK = True
if not HAS_DYLINK:
print "We don't have Dylink available!"
# Switch our behavior o... | 21.839286 | 82 | 0.711365 | 190 | 1,223 | 4.510526 | 0.468421 | 0.051342 | 0.03734 | 0.051342 | 0.060677 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 0.199509 | 1,223 | 55 | 83 | 22.236364 | 0.864147 | 0.388389 | 0 | 0 | 0 | 0 | 0.375231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.388889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e814c1f2d06f47daaab680bbae6088329d7031b1 | 4,148 | py | Python | examples/hvcl/ccgrid/02.kmenas/KC_Spark.py | smhong/vispark_bigdata | d184e9711c37dc5df3606beb8f7c0f0463607542 | [
"BSD-3-Clause-Open-MPI",
"PSF-2.0",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"MIT-0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause-Clear",
"PostgreSQL",
"BSD-3-Clause"
] | 1 | 2019-07-23T18:21:00.000Z | 2019-07-23T18:21:00.000Z | examples/hvcl/ccgrid/02.kmenas/KC_Spark.py | smhong/vispark_bigdata | d184e9711c37dc5df3606beb8f7c0f0463607542 | [
"BSD-3-Clause-Open-MPI",
"PSF-2.0",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"MIT-0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause-Clear",
"PostgreSQL",
"BSD-3-Clause"
] | null | null | null | examples/hvcl/ccgrid/02.kmenas/KC_Spark.py | smhong/vispark_bigdata | d184e9711c37dc5df3606beb8f7c0f0463607542 | [
"BSD-3-Clause-Open-MPI",
"PSF-2.0",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"MIT-0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause-Clear",
"PostgreSQL",
"BSD-3-Clause"
] | null | null | null | from pyspark import SparkContext
import numpy
from PIL import Image
from pyspark.storagelevel import StorageLevel
import sys
import time
class bcolors:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
BOLD = '\... | 27.838926 | 118 | 0.568226 | 559 | 4,148 | 4.157424 | 0.273703 | 0.013769 | 0.024096 | 0.027539 | 0.343804 | 0.225043 | 0.126506 | 0.070998 | 0.031842 | 0.031842 | 0 | 0.06031 | 0.284474 | 4,148 | 148 | 119 | 28.027027 | 0.722709 | 0.094744 | 0 | 0.022727 | 0 | 0 | 0.055274 | 0.022163 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068182 | null | null | 0.204545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e8198694ed8e5db865917af524f97abffe39c16f | 432 | py | Python | rdkit/Chem/Pharm2D/test_list.py | kazuyaujihara/rdkit | 06027dcd05674787b61f27ba46ec0d42a6037540 | [
"BSD-3-Clause"
] | 1,609 | 2015-01-05T02:41:13.000Z | 2022-03-30T21:57:24.000Z | rdkit/Chem/Pharm2D/test_list.py | kazuyaujihara/rdkit | 06027dcd05674787b61f27ba46ec0d42a6037540 | [
"BSD-3-Clause"
] | 3,412 | 2015-01-06T12:13:33.000Z | 2022-03-31T17:25:41.000Z | rdkit/Chem/Pharm2D/test_list.py | kazuyaujihara/rdkit | 06027dcd05674787b61f27ba46ec0d42a6037540 | [
"BSD-3-Clause"
] | 811 | 2015-01-11T03:33:48.000Z | 2022-03-28T11:57:49.000Z | tests = [
("python", "UnitTestMatcher.py", {}),
("python", "UnitTestSignature.py", {}),
# ("python","UnitTestLazyGenerator.py",{}),
("python", "UnitTestGenerate.py", {}),
("python", "UnitTestUtils.py", {}),
("python", "UnitTestGobbi.py", {}),
]
longTests = []
if __name__ == '__main__':
import sys
fr... | 25.411765 | 60 | 0.62037 | 42 | 432 | 6.166667 | 0.619048 | 0.15444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00545 | 0.150463 | 432 | 16 | 61 | 27 | 0.700272 | 0.094907 | 0 | 0 | 1 | 0 | 0.359173 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e82023598c1867563dbd8fc15e8f3b61b8b7166c | 558 | py | Python | Codes/gracekoo/179_largest-number.py | Buddy119/algorithm | 5bea6b31aa0316bbe78817de7bc381fd03cbcae5 | [
"Apache-2.0"
] | null | null | null | Codes/gracekoo/179_largest-number.py | Buddy119/algorithm | 5bea6b31aa0316bbe78817de7bc381fd03cbcae5 | [
"Apache-2.0"
] | null | null | null | Codes/gracekoo/179_largest-number.py | Buddy119/algorithm | 5bea6b31aa0316bbe78817de7bc381fd03cbcae5 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# @Time: 2020/4/23 21:18
# @Author: GraceKoo
# @File: 179_largest-number.py
# @Desc: https://leetcode-cn.com/problems/largest-number/
from typing import List
class LargerNumKey(str):
def __lt__(x, y):
return x + y < y + x
class Solution:
def largestNumber(self, nums):
... | 23.25 | 66 | 0.616487 | 79 | 558 | 4.253165 | 0.708861 | 0.098214 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059633 | 0.218638 | 558 | 23 | 67 | 24.26087 | 0.711009 | 0.263441 | 0 | 0 | 0 | 0 | 0.007407 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0.083333 | 0.583333 | 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 | 1 | 0 | 0 | 1 |
e8229f4de04b5fe49c12fbdc6c4f63e34d2ce510 | 360 | py | Python | molecule/default/tests/test_default.py | while-true-do/ansible-role-sys_sudo | b452a18278053ac509c3f3eef308362560eb40b2 | [
"BSD-3-Clause"
] | 1 | 2019-04-23T13:45:56.000Z | 2019-04-23T13:45:56.000Z | molecule/default/tests/test_default.py | while-true-do/ansible-role-sys_sudo | b452a18278053ac509c3f3eef308362560eb40b2 | [
"BSD-3-Clause"
] | null | null | null | molecule/default/tests/test_default.py | while-true-do/ansible-role-sys_sudo | b452a18278053ac509c3f3eef308362560eb40b2 | [
"BSD-3-Clause"
] | null | null | null | import os
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
def test_sudoers_package(host):
pkg = host.package('sudo')
assert pkg.is_installed
def test_sudoers_file(host):
file = host.file(... | 18.947368 | 63 | 0.75 | 48 | 360 | 5.395833 | 0.541667 | 0.108108 | 0.162162 | 0.208494 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138889 | 360 | 18 | 64 | 20 | 0.835484 | 0 | 0 | 0 | 0 | 0 | 0.116667 | 0.063889 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e82582e9fb53127444e41840f75aa96dd7a418fb | 765 | py | Python | rutracker_ks/torrents_size.py | rain87/rutracker-keeper-suite | 3d24825611602befb1ede23d43841d50fd074c96 | [
"MIT"
] | null | null | null | rutracker_ks/torrents_size.py | rain87/rutracker-keeper-suite | 3d24825611602befb1ede23d43841d50fd074c96 | [
"MIT"
] | null | null | null | rutracker_ks/torrents_size.py | rain87/rutracker-keeper-suite | 3d24825611602befb1ede23d43841d50fd074c96 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
import logging
logging.basicConfig(level=logging.INFO)
import sys
import os
reload(sys)
sys.setdefaultencoding('utf-8')
import config
from utils import *
import rutracker_api as api
from bencode import bdecode
size = 0
si_GB = 1000 * 1000 * 1000
desired_size = 1880 * si_GB
desir... | 21.857143 | 65 | 0.657516 | 109 | 765 | 4.504587 | 0.522936 | 0.089613 | 0.040733 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036913 | 0.220915 | 765 | 34 | 66 | 22.5 | 0.786913 | 0.043137 | 0 | 0 | 0 | 0 | 0.057534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.259259 | null | null | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e826c050fa7775f1af78e1ab44c3eb758486ab4a | 3,252 | py | Python | scripts/remote/remote.py | Mec-iS/chronostriples-backup | 79bdd902dc1d4862597469d4ac127f41bb5c1059 | [
"Apache-2.0"
] | null | null | null | scripts/remote/remote.py | Mec-iS/chronostriples-backup | 79bdd902dc1d4862597469d4ac127f41bb5c1059 | [
"Apache-2.0"
] | null | null | null | scripts/remote/remote.py | Mec-iS/chronostriples-backup | 79bdd902dc1d4862597469d4ac127f41bb5c1059 | [
"Apache-2.0"
] | null | null | null | """
Tools for remote interaction with the server/datastore
"""
__author__ = 'lorenzo'
import sys
sys.path.insert(0, '../..')
from config.config import _TEMP_SECRET
def dump_to_ds_post(url, data):
"""
NOTE: better to use PYcURL for this operations, avoid a lot of encoding and conflicts
:param url: the se... | 28.034483 | 105 | 0.651599 | 443 | 3,252 | 4.735892 | 0.334086 | 0.036702 | 0.038132 | 0.020972 | 0.125357 | 0.090562 | 0.090562 | 0.090562 | 0.090562 | 0.059104 | 0 | 0.004874 | 0.242927 | 3,252 | 115 | 106 | 28.278261 | 0.847279 | 0.152214 | 0 | 0.384615 | 0 | 0 | 0.041179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.184615 | null | null | 0.030769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e826e3e95c3e5a1a3a0c3d2b091000c2bda5bb6c | 1,071 | py | Python | projects/examples/obsolete/2d_broken/ampm/title_ampm.py | gonnavis/taichi | ba1898643e4548a23ecae340e963614b28b8a103 | [
"MIT"
] | 2 | 2019-06-25T02:12:37.000Z | 2019-06-25T02:12:48.000Z | projects/examples/obsolete/2d_broken/ampm/title_ampm.py | gonnavis/taichi | ba1898643e4548a23ecae340e963614b28b8a103 | [
"MIT"
] | null | null | null | projects/examples/obsolete/2d_broken/ampm/title_ampm.py | gonnavis/taichi | ba1898643e4548a23ecae340e963614b28b8a103 | [
"MIT"
] | 1 | 2021-11-29T22:47:24.000Z | 2021-11-29T22:47:24.000Z | from taichi.misc.util import *
from taichi.two_d import *
from taichi import get_asset_path
if __name__ == '__main__':
scale = 8
res = (80 * scale, 40 * scale)
async = True
if async:
simulator = MPMSimulator(
res=res,
simulation_time=30,
frame_dt=1e-1,
base_delta_t=1e-6,
... | 28.945946 | 118 | 0.588235 | 143 | 1,071 | 4.167832 | 0.48951 | 0.020134 | 0.053691 | 0.090604 | 0.218121 | 0.218121 | 0.218121 | 0.218121 | 0.218121 | 0.218121 | 0 | 0.076115 | 0.288515 | 1,071 | 36 | 119 | 29.75 | 0.706037 | 0 | 0 | 0.060606 | 0 | 0 | 0.030812 | 0.019608 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e82fd0690f7d4d974d0709e556480de5a35eccf5 | 1,012 | py | Python | pirgblight/rgblight.py | kangasta/pirgblight | b5971cfdb4f4cd747ebc138ba0ded255f0b29b41 | [
"MIT"
] | null | null | null | pirgblight/rgblight.py | kangasta/pirgblight | b5971cfdb4f4cd747ebc138ba0ded255f0b29b41 | [
"MIT"
] | 3 | 2019-10-06T20:34:36.000Z | 2019-10-12T21:51:24.000Z | pirgblight/rgblight.py | kangasta/pirgblight | b5971cfdb4f4cd747ebc138ba0ded255f0b29b41 | [
"MIT"
] | null | null | null | from colorsys import hsv_to_rgb, rgb_to_hsv
class RGBLight:
@property
def color(self):
'''Get current color as RGB values
Returns:
Tuple of RGB values in range of 0-255
'''
raise NotImplementedError('This method should be overridden')
@color.setter
... | 25.948718 | 70 | 0.556324 | 137 | 1,012 | 4.029197 | 0.270073 | 0.065217 | 0.094203 | 0.108696 | 0.525362 | 0.525362 | 0.391304 | 0.391304 | 0.391304 | 0.293478 | 0 | 0.031056 | 0.363636 | 1,012 | 38 | 71 | 26.631579 | 0.826087 | 0.315217 | 0 | 0.285714 | 0 | 0 | 0.11985 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.071429 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e832741724be895cbbbbb62717df097729b4e2a9 | 1,542 | py | Python | examples/create_scripts/extensions/e-timeseries.py | bendichter/api-python | 52e97e7642021913ae6505ab63b7cc77d2622d76 | [
"BSD-3-Clause"
] | 32 | 2015-08-21T14:14:44.000Z | 2017-08-31T09:33:14.000Z | examples/create_scripts/extensions/e-timeseries.py | bendichter/api-python | 52e97e7642021913ae6505ab63b7cc77d2622d76 | [
"BSD-3-Clause"
] | 24 | 2015-11-18T11:17:04.000Z | 2019-12-31T19:44:18.000Z | examples/create_scripts/extensions/e-timeseries.py | bendichter/api-python | 52e97e7642021913ae6505ab63b7cc77d2622d76 | [
"BSD-3-Clause"
] | 18 | 2015-10-07T03:04:41.000Z | 2022-03-11T18:52:20.000Z | # Example extension defining a new TimeSeries
# All format specifications must be stored in dictionary with top level key "fs":
# "mnts" is the "namespace" for this extension.
{"fs": {"mnts": {
"info": {
"name": "Example TimeSeries extension",
"version": "1.0",
"date": "May 2, 2016",
"author": "Jeff ... | 34.266667 | 89 | 0.538911 | 139 | 1,542 | 5.920863 | 0.582734 | 0.048603 | 0.051033 | 0.051033 | 0.075334 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009328 | 0.304799 | 1,542 | 44 | 90 | 35.045455 | 0.758396 | 0.109598 | 0 | 0.108108 | 0 | 0 | 0.544193 | 0.01534 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e833f44f9d80e46093bd2b5e0095a92343828408 | 389 | py | Python | pydarkstar/options/ah.py | Korrbit/pydarkstar | d9d66c656dc30a6e580a86528d23694201d3a0cf | [
"MIT"
] | 18 | 2015-01-13T03:48:02.000Z | 2022-01-23T16:52:10.000Z | pydarkstar/options/ah.py | Korrbit/pydarkstar | d9d66c656dc30a6e580a86528d23694201d3a0cf | [
"MIT"
] | 29 | 2015-01-14T01:34:10.000Z | 2022-01-30T16:57:27.000Z | pydarkstar/options/ah.py | Korrbit/pydarkstar | d9d66c656dc30a6e580a86528d23694201d3a0cf | [
"MIT"
] | 46 | 2015-01-13T20:26:39.000Z | 2022-03-22T13:19:46.000Z | # -*- coding: utf-8 -*-
"""
Basic options.
"""
from .base import BaseOptions
class AHOptions(BaseOptions):
def __init__(self, *args, **kwargs):
super(AHOptions, self).__init__(*args, **kwargs)
self.name = 'Zissou' # seller name
self.add_argument('--name', type=str, default=self.name, meta... | 22.882353 | 99 | 0.62982 | 46 | 389 | 4.956522 | 0.652174 | 0.087719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003195 | 0.195373 | 389 | 16 | 100 | 24.3125 | 0.72524 | 0.125964 | 0 | 0 | 0 | 0 | 0.102719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e83513e4f14a870b2406d064ce114e5ff1b59267 | 629 | py | Python | labs/tony-monday-10-jg113/exam_marks.py | TonyJenkins/lbu-python-code | d02d843290e887d016cdb05ddc1a8639874f2e06 | [
"Unlicense"
] | 2 | 2021-08-20T13:02:45.000Z | 2021-10-03T20:34:45.000Z | labs/tony-monday-10-jg113/exam_marks.py | TonyJenkins/lbu-python-code | d02d843290e887d016cdb05ddc1a8639874f2e06 | [
"Unlicense"
] | null | null | null | labs/tony-monday-10-jg113/exam_marks.py | TonyJenkins/lbu-python-code | d02d843290e887d016cdb05ddc1a8639874f2e06 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
if __name__ == '__main__':
mark_1 = int(input('Enter the first mark: '))
mark_2 = int(input('Enter the second mark: '))
mark_3 = int(input('Enter the third mark: '))
mark_4 = int(input('Enter the fourth mark: '))
mark_5 = int(input('Enter the fifth mark: '))
max_mark... | 33.105263 | 64 | 0.631161 | 107 | 629 | 3.392523 | 0.299065 | 0.110193 | 0.179063 | 0.220386 | 0.206612 | 0.206612 | 0.206612 | 0.206612 | 0.206612 | 0.206612 | 0 | 0.046 | 0.205087 | 629 | 18 | 65 | 34.944444 | 0.68 | 0.033386 | 0 | 0 | 0 | 0 | 0.327842 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.307692 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e836d1c4e299c6000a8fc374c52b19a31b5d68a7 | 1,153 | py | Python | ws/RLUtils/monitoring/graphing/Graph.py | dattaray-basab/RLGames | b12263fe7a4a246be02fc20ed20cfb9fda40d29b | [
"MIT"
] | null | null | null | ws/RLUtils/monitoring/graphing/Graph.py | dattaray-basab/RLGames | b12263fe7a4a246be02fc20ed20cfb9fda40d29b | [
"MIT"
] | null | null | null | ws/RLUtils/monitoring/graphing/Graph.py | dattaray-basab/RLGames | b12263fe7a4a246be02fc20ed20cfb9fda40d29b | [
"MIT"
] | null | null | null | from ws.RLUtils.monitoring.graphing.plot_mgt import plot_mgt
class Graph():
def __init__(self, save_plot_at_file_path, title_prefix, fn_title_update_callback, x_config_item, y_config_list):
self.no_graphing = False
self.save_plot_at_file_path = save_plot_at_file_path
self.artifi... | 27.452381 | 117 | 0.702515 | 174 | 1,153 | 4.172414 | 0.281609 | 0.066116 | 0.055096 | 0.077135 | 0.338843 | 0.203857 | 0 | 0 | 0 | 0 | 0 | 0.002245 | 0.227233 | 1,153 | 41 | 118 | 28.121951 | 0.81257 | 0 | 0 | 0.083333 | 0 | 0 | 0.008681 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.041667 | 0 | 0.291667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e8373c521d8d15b3c1cb7a2cd63f77314b5800fe | 659 | py | Python | gateway/migrations/0015_csv.py | Lloyds01/manual-repayment | 50ffde2683586dc485b14aa92ede1131dc4d4ff2 | [
"MIT"
] | null | null | null | gateway/migrations/0015_csv.py | Lloyds01/manual-repayment | 50ffde2683586dc485b14aa92ede1131dc4d4ff2 | [
"MIT"
] | null | null | null | gateway/migrations/0015_csv.py | Lloyds01/manual-repayment | 50ffde2683586dc485b14aa92ede1131dc4d4ff2 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.4 on 2022-03-24 15:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gateway', '0014_auto_20220322_1216'),
]
operations = [
migrations.CreateModel(
name='Csv',
fields=[
... | 28.652174 | 117 | 0.584219 | 67 | 659 | 5.597015 | 0.761194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065539 | 0.282246 | 659 | 22 | 118 | 29.954545 | 0.727273 | 0.068285 | 0 | 0 | 1 | 0 | 0.109477 | 0.037582 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08fdb04013d927c6798a466f66db41ff0d0fa70b | 21,905 | py | Python | tests/test_transforms/test_gale_shapley.py | Carlosbogo/etna | b6210f0e79ee92aa9ae8ff4fcfb267be9fb7cc94 | [
"Apache-2.0"
] | null | null | null | tests/test_transforms/test_gale_shapley.py | Carlosbogo/etna | b6210f0e79ee92aa9ae8ff4fcfb267be9fb7cc94 | [
"Apache-2.0"
] | null | null | null | tests/test_transforms/test_gale_shapley.py | Carlosbogo/etna | b6210f0e79ee92aa9ae8ff4fcfb267be9fb7cc94 | [
"Apache-2.0"
] | null | null | null | from typing import Dict
from typing import List
import numpy as np
import pandas as pd
import pytest
from etna.analysis.feature_relevance import StatisticsRelevanceTable
from etna.datasets import TSDataset
from etna.datasets import generate_ar_df
from etna.datasets import generate_periodic_df
from etna.transforms.gal... | 37.380546 | 118 | 0.566263 | 2,185 | 21,905 | 5.313043 | 0.072311 | 0.061159 | 0.06874 | 0.044793 | 0.77371 | 0.703764 | 0.628219 | 0.574813 | 0.533121 | 0.488156 | 0 | 0.042236 | 0.304999 | 21,905 | 585 | 119 | 37.444444 | 0.72031 | 0 | 0 | 0.486085 | 0 | 0 | 0.245058 | 0.009496 | 0 | 0 | 0 | 0 | 0.064935 | 1 | 0.038961 | false | 0 | 0.025974 | 0 | 0.077922 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08fe5098710c80cd0f0b4d3e63862cc82f315d9f | 1,387 | py | Python | Port_Scanner.py | ofinley/Python-Security-Scripts | bf6a9358319d2ccc78aad3ab3f3fa652c642553b | [
"MIT"
] | null | null | null | Port_Scanner.py | ofinley/Python-Security-Scripts | bf6a9358319d2ccc78aad3ab3f3fa652c642553b | [
"MIT"
] | null | null | null | Port_Scanner.py | ofinley/Python-Security-Scripts | bf6a9358319d2ccc78aad3ab3f3fa652c642553b | [
"MIT"
] | null | null | null | import socket
from utils import timefunc
class Scanner:
def __init__(self, ip):
self.ip = ip
self.open_ports = [];
def __repr__(self): # Returns Target
return 'Scanner: {}'.format(self.ip)
def add_port(self, port): # Add open ports to array
self.open_ports.ap... | 28.895833 | 126 | 0.578226 | 184 | 1,387 | 4.206522 | 0.396739 | 0.069767 | 0.067183 | 0.062016 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014433 | 0.300649 | 1,387 | 47 | 127 | 29.510638 | 0.783505 | 0.215573 | 0 | 0 | 0 | 0 | 0.068798 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212121 | false | 0 | 0.060606 | 0.030303 | 0.363636 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08ff797b358c8bc505a4ef4dc4d6a117c8ef0c5c | 613 | py | Python | 1]. DSA + CP/1]. DSA/1]. Data Structures/03]. Recursion/Python/Climbing_Stairs.py | geeknarendra/The-Complete-FAANG-Preparation | 3ed22719022bc66bd05c5c1ed091fe605e979908 | [
"MIT"
] | null | null | null | 1]. DSA + CP/1]. DSA/1]. Data Structures/03]. Recursion/Python/Climbing_Stairs.py | geeknarendra/The-Complete-FAANG-Preparation | 3ed22719022bc66bd05c5c1ed091fe605e979908 | [
"MIT"
] | null | null | null | 1]. DSA + CP/1]. DSA/1]. Data Structures/03]. Recursion/Python/Climbing_Stairs.py | geeknarendra/The-Complete-FAANG-Preparation | 3ed22719022bc66bd05c5c1ed091fe605e979908 | [
"MIT"
] | null | null | null | # You are climbing a staircase. It takes n steps to reach the top.
# Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
# Constraints:
## 1 <= n <= 45
# Memoization (Top Down)
class Solution:
def __init__(self):
self.ways = [0] * 46
def climbStairs(self, n... | 29.190476 | 98 | 0.58075 | 94 | 613 | 3.744681 | 0.489362 | 0.113636 | 0.102273 | 0.085227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028037 | 0.301794 | 613 | 21 | 99 | 29.190476 | 0.794393 | 0.415987 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1c054c8c6d92aa593574ec67de981c7f2960150c | 2,063 | py | Python | core/tests/unittests/test_local_random_searcher.py | killerSwitch/autogluon | 11ab6aab35196ef148fb5a8308e92585d9de618a | [
"Apache-2.0"
] | null | null | null | core/tests/unittests/test_local_random_searcher.py | killerSwitch/autogluon | 11ab6aab35196ef148fb5a8308e92585d9de618a | [
"Apache-2.0"
] | null | null | null | core/tests/unittests/test_local_random_searcher.py | killerSwitch/autogluon | 11ab6aab35196ef148fb5a8308e92585d9de618a | [
"Apache-2.0"
] | null | null | null | from autogluon.core.space import Categorical, Int, Real
from autogluon.core.searcher import LocalRandomSearcher
def test_local_random_searcher():
search_space = dict(
a=Real(0, 1, default=0.2),
b=Real(0.05, 1, default=0.4, log=True),
c=Int(5, 15),
d=Int(7, 23, default=16),
... | 38.203704 | 111 | 0.660204 | 286 | 2,063 | 4.58042 | 0.234266 | 0.142748 | 0.155725 | 0.128244 | 0.337405 | 0.237405 | 0.149618 | 0.096183 | 0.096183 | 0.096183 | 0 | 0.136337 | 0.182259 | 2,063 | 53 | 112 | 38.924528 | 0.64019 | 0 | 0 | 0.142857 | 0 | 0 | 0.024721 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.02381 | false | 0 | 0.047619 | 0 | 0.071429 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c185f6010e20a8ed0edc991d3bdac4e6497221d | 1,523 | py | Python | scona/datasets/NSPN_WhitakerVertes_PNAS2016/__init__.py | leytes/scona | 7946a50bfdb32eeaaefa10dc8f7a80e2b8547366 | [
"MIT"
] | 30 | 2018-10-10T09:04:46.000Z | 2022-03-12T23:28:10.000Z | scona/datasets/NSPN_WhitakerVertes_PNAS2016/__init__.py | leytes/scona | 7946a50bfdb32eeaaefa10dc8f7a80e2b8547366 | [
"MIT"
] | 68 | 2017-05-10T09:53:50.000Z | 2018-09-03T13:39:43.000Z | scona/datasets/NSPN_WhitakerVertes_PNAS2016/__init__.py | leytes/scona | 7946a50bfdb32eeaaefa10dc8f7a80e2b8547366 | [
"MIT"
] | 18 | 2019-02-08T22:47:48.000Z | 2022-03-04T06:01:58.000Z | #! /usr/bin/env python
from os.path import dirname, abspath
from scona.scripts.useful_functions import read_in_data
"""NSPN Whitaker, Vertes et al, 2016"""
TITLE = """Cortical Thickness Measures"""
SOURCE = """
Adolescent consolidation of human connectome hubs
Kirstie J. Whitaker, Petra E. Vértes, Rafael ... | 28.203704 | 339 | 0.719632 | 189 | 1,523 | 5.597884 | 0.597884 | 0.061437 | 0.064272 | 0.05482 | 0.10775 | 0.073724 | 0 | 0 | 0 | 0 | 0 | 0.037247 | 0.1891 | 1,523 | 53 | 340 | 28.735849 | 0.819433 | 0.013789 | 0 | 0.057143 | 0 | 0.057143 | 0.424761 | 0.042408 | 0 | 0 | 0 | 0 | 0 | 1 | 0.171429 | false | 0 | 0.085714 | 0.171429 | 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 | 1 | 0 | 0 | 0 | 1 |
1c19c1f4c8a6d8d32b912d704d4dbec7e108ab6f | 1,314 | py | Python | simRegistration/migrations/0001_initial.py | Musbell/iwbsrs | ea7343361027ca877f61903d553ce01504840e8c | [
"MIT"
] | null | null | null | simRegistration/migrations/0001_initial.py | Musbell/iwbsrs | ea7343361027ca877f61903d553ce01504840e8c | [
"MIT"
] | 10 | 2020-03-24T15:36:11.000Z | 2022-01-13T00:41:38.000Z | simRegistration/migrations/0001_initial.py | Musbell/iwbsrs | ea7343361027ca877f61903d553ce01504840e8c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-07-31 07:46
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('mobile... | 34.578947 | 135 | 0.627093 | 133 | 1,314 | 6 | 0.556391 | 0.0401 | 0.052632 | 0.082707 | 0.097744 | 0.097744 | 0.097744 | 0.097744 | 0 | 0 | 0 | 0.035569 | 0.251142 | 1,314 | 37 | 136 | 35.513514 | 0.775407 | 0.05175 | 0 | 0.068966 | 1 | 0 | 0.165728 | 0.041834 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.137931 | 0 | 0.275862 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c1b756495d02016219ea4c7c4d87fe52989baca | 4,242 | py | Python | demo/sgi/gl/zrgb.py | tomjackbear/python-0.9.1 | 00adeddadaede51e92447523266c9d5616201c38 | [
"FSFAP"
] | 4 | 2020-07-21T09:47:52.000Z | 2022-01-05T21:43:36.000Z | demo/sgi/gl/zrgb.py | tomjackbear/python-0.9.1 | 00adeddadaede51e92447523266c9d5616201c38 | [
"FSFAP"
] | 1 | 2020-09-23T20:46:33.000Z | 2020-09-23T20:59:57.000Z | demo/sgi/gl/zrgb.py | tomjackbear/python-0.9.1 | 00adeddadaede51e92447523266c9d5616201c38 | [
"FSFAP"
] | 4 | 2020-07-13T00:45:24.000Z | 2021-09-04T14:50:46.000Z | #! /ufs/guido/bin/sgi/python
# zrgb (Requires Z buffer.)
#
# This program demostrates zbuffering 3 intersecting RGB polygons while
# in doublebuffer mode where, movement of the mouse with the LEFTMOUSE
# button depressed will, rotate the 3 polygons. This is done by compound
# rotations allowing continuous screen-or... | 24.952941 | 78 | 0.440123 | 499 | 4,242 | 3.723447 | 0.322645 | 0.066738 | 0.079117 | 0.079656 | 0.168461 | 0.159311 | 0.096878 | 0.096878 | 0.096878 | 0.057051 | 0 | 0.114153 | 0.440358 | 4,242 | 169 | 79 | 25.100592 | 0.668492 | 0.147808 | 0 | 0.266667 | 0 | 0 | 0.004484 | 0 | 0 | 0 | 0.029148 | 0 | 0 | 0 | null | null | 0 | 0.028571 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c1e2a5118bd4bacab801c14c7f5e651710c97bd | 978 | py | Python | analysis/scripts/run_jelly.py | mhrvol/genomescope | b2077a5ab0992883edb0273e322ef3234d1717e1 | [
"Apache-2.0"
] | null | null | null | analysis/scripts/run_jelly.py | mhrvol/genomescope | b2077a5ab0992883edb0273e322ef3234d1717e1 | [
"Apache-2.0"
] | null | null | null | analysis/scripts/run_jelly.py | mhrvol/genomescope | b2077a5ab0992883edb0273e322ef3234d1717e1 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python2
import os
import os.path
import sys
illuminafile = sys.argv[1]
k=int(sys.argv[2])
limit=1000000
histfilename = illuminafile+sys.argv[2]+".hist"
outputname = illuminafile+sys.argv[2]+"_output"
mergename = illuminafile+sys.argv[2]+"_merge"
os.system("jellyfish count -m %s -o %s -c 3 -C -s 10000000000... | 39.12 | 102 | 0.703476 | 143 | 978 | 4.783217 | 0.377622 | 0.05117 | 0.111111 | 0.087719 | 0.309942 | 0.204678 | 0.204678 | 0.204678 | 0.204678 | 0.204678 | 0 | 0.034063 | 0.159509 | 978 | 24 | 103 | 40.75 | 0.798054 | 0.117587 | 0 | 0 | 0 | 0.055556 | 0.411415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c2714173c57cad9715e139b5e771127a72defea | 1,054 | py | Python | models/temporal_link/update_temporal_links.py | zankner/DNC | 2596fa3a1ee9bf0a9f160f3f953639e70bb25fe7 | [
"MIT"
] | 3 | 2020-03-20T17:46:33.000Z | 2020-03-23T16:48:59.000Z | models/temporal_link/update_temporal_links.py | zankner/DNC | 2596fa3a1ee9bf0a9f160f3f953639e70bb25fe7 | [
"MIT"
] | null | null | null | models/temporal_link/update_temporal_links.py | zankner/DNC | 2596fa3a1ee9bf0a9f160f3f953639e70bb25fe7 | [
"MIT"
] | 1 | 2020-03-20T17:55:55.000Z | 2020-03-20T17:55:55.000Z | import tensorflow as tf
def update_temporal_links(temporal_links, write_weights, precedence):
summed_write_weights = tf.math.reduce_sum(write_weights, 0)
write_weight_j = tf.broadcast_to(
summed_write_weights, [write_weights.shape[1],
write_weights.shape[1]])
write_weight_i = tf.transpose(write_weig... | 42.16 | 72 | 0.78463 | 143 | 1,054 | 5.412587 | 0.251748 | 0.20155 | 0.046512 | 0.067183 | 0.156331 | 0.103359 | 0.103359 | 0 | 0 | 0 | 0 | 0.011957 | 0.127135 | 1,054 | 24 | 73 | 43.916667 | 0.829348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c2a30801fe4e9e654ed307ed25de43a00f53da2 | 5,087 | py | Python | bot/cogs/help.py | Squint-Eye/SplatoonBot | 3eaac9dc0179b8f40337565fbed8e6d22549850d | [
"MIT"
] | null | null | null | bot/cogs/help.py | Squint-Eye/SplatoonBot | 3eaac9dc0179b8f40337565fbed8e6d22549850d | [
"MIT"
] | null | null | null | bot/cogs/help.py | Squint-Eye/SplatoonBot | 3eaac9dc0179b8f40337565fbed8e6d22549850d | [
"MIT"
] | 3 | 2018-07-27T19:53:37.000Z | 2021-01-25T18:47:39.000Z | import discord
import traceback
import aiosqlite
import datetime
import asyncio
import sqlite3
import random
import sys
import os
from pathlib import Path
from discord.ext import commands
from mutagen.mp3 import MP3
Connection = {}
class Cog:
"""Cog for Cog related commands"""
def __init__(self, bot):
... | 75.925373 | 1,075 | 0.716336 | 746 | 5,087 | 4.743968 | 0.242627 | 0.018084 | 0.047471 | 0.035603 | 0.476123 | 0.417915 | 0.348969 | 0.340209 | 0.316474 | 0.290478 | 0 | 0.011724 | 0.144879 | 5,087 | 67 | 1,076 | 75.925373 | 0.801839 | 0.005504 | 0 | 0.465517 | 0 | 0.068966 | 0.553423 | 0.191927 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.206897 | 0 | 0.258621 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c2c7a20db73d48b38cdb71eedae1aceaf185ef0 | 667 | py | Python | application/utilities/dict_mapping.py | kelp404/Victory | 132f186f18ea6a709afb003e38ed1d6de3c0579f | [
"MIT"
] | 15 | 2015-02-15T16:40:19.000Z | 2021-02-01T21:31:26.000Z | application/utilities/dict_mapping.py | kelp404/Victory | 132f186f18ea6a709afb003e38ed1d6de3c0579f | [
"MIT"
] | null | null | null | application/utilities/dict_mapping.py | kelp404/Victory | 132f186f18ea6a709afb003e38ed1d6de3c0579f | [
"MIT"
] | 1 | 2015-06-02T07:48:30.000Z | 2015-06-02T07:48:30.000Z |
class DictMapping:
"""
Dictionary Mapping
copy all values in the dict object to the custom class instance.
"""
@staticmethod
def inject(strong, dic):
"""
copy all value in dic to strong
@param strong a custom class instance
@param dic a dict object
"""
... | 26.68 | 68 | 0.506747 | 72 | 667 | 4.611111 | 0.472222 | 0.090361 | 0.114458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002564 | 0.415292 | 667 | 24 | 69 | 27.791667 | 0.848718 | 0.296852 | 0 | 0 | 0 | 0 | 0.004902 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.090909 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1c2eb69e1e3be5add0d649df44930718da7344ef | 797 | py | Python | miniurl_generic/url/migrations/0001_initial.py | yannisVentura/Django_MiniUrl_Bootstrap | 89a7cdb8c12ba75cf0cd2cb6206961506aad9287 | [
"BSD-3-Clause"
] | null | null | null | miniurl_generic/url/migrations/0001_initial.py | yannisVentura/Django_MiniUrl_Bootstrap | 89a7cdb8c12ba75cf0cd2cb6206961506aad9287 | [
"BSD-3-Clause"
] | 8 | 2017-04-05T13:15:39.000Z | 2017-10-17T09:39:04.000Z | miniurl_generic/url/migrations/0001_initial.py | yannisVentura/Django_MiniUrl_Bootstrap | 89a7cdb8c12ba75cf0cd2cb6206961506aad9287 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-10-04 08:06
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='MiniUr... | 29.518519 | 114 | 0.603513 | 86 | 797 | 5.395349 | 0.674419 | 0.05819 | 0.077586 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042882 | 0.268507 | 797 | 26 | 115 | 30.653846 | 0.753002 | 0.08532 | 0 | 0 | 1 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c2efee9b1418b6bb88e9e69777335068e1783f5 | 1,012 | py | Python | model.py | qfuggett/people-manager-flask | 97511e14c26a90df5b3dc2117c504c7572532761 | [
"Unlicense"
] | null | null | null | model.py | qfuggett/people-manager-flask | 97511e14c26a90df5b3dc2117c504c7572532761 | [
"Unlicense"
] | null | null | null | model.py | qfuggett/people-manager-flask | 97511e14c26a90df5b3dc2117c504c7572532761 | [
"Unlicense"
] | null | null | null | from flask_sqlalchemy import SQLAlchemy
import datetime
db = SQLAlchemy()
class User(db.Model):
__tablename__ = "users"
user_id = db.Column(db.Integer, primary_key=True, autoincrement=True)
name = db.Column(db.String, nullable=False)
email = db.Column(db.String, nullable=False)
birthday = db.Co... | 28.914286 | 132 | 0.699605 | 141 | 1,012 | 4.737589 | 0.382979 | 0.071856 | 0.07485 | 0.107784 | 0.086826 | 0.086826 | 0 | 0 | 0 | 0 | 0 | 0.009581 | 0.174901 | 1,012 | 34 | 133 | 29.764706 | 0.790419 | 0 | 0 | 0 | 0 | 0.045455 | 0.238142 | 0.147233 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.136364 | 0.045455 | 0.590909 | 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 | 1 | 0 | 0 | 1 |
1c33a470cd3d84b5a955d61b336be1ec9d152d1e | 3,254 | py | Python | utils/tests/test_overpass.py | posm/osm-export-tool2 | 5a1f4096f1afbe7420363376e6e1e8d42e47e1d1 | [
"BSD-3-Clause"
] | 2 | 2018-08-31T18:30:28.000Z | 2018-11-27T01:50:06.000Z | utils/tests/test_overpass.py | posm/osm-export-tool2 | 5a1f4096f1afbe7420363376e6e1e8d42e47e1d1 | [
"BSD-3-Clause"
] | null | null | null | utils/tests/test_overpass.py | posm/osm-export-tool2 | 5a1f4096f1afbe7420363376e6e1e8d42e47e1d1 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import logging
import os
from unittest import skip
import mock
from mock import patch
from django.conf import settings
from django.contrib.auth.models import Group, User
from django.contrib.gis.geos import GEOSGeometry, Polygon
from django.test import TestCase
from jobs import presets
from jo... | 36.561798 | 102 | 0.592502 | 400 | 3,254 | 4.715 | 0.3725 | 0.033404 | 0.027572 | 0.038176 | 0.131495 | 0.107105 | 0.107105 | 0.107105 | 0.092259 | 0.092259 | 0 | 0.028755 | 0.283958 | 3,254 | 88 | 103 | 36.977273 | 0.780687 | 0.042717 | 0 | 0.08 | 0 | 0.013333 | 0.134127 | 0.068832 | 0 | 0 | 0 | 0 | 0.08 | 1 | 0.04 | false | 0.093333 | 0.16 | 0 | 0.213333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1c36053e57cf3440c729741fa2ff29e67112c592 | 1,695 | py | Python | blobcity/utils/ProblemType.py | Bhumika0201/autoai | 8a1ba4453395798cf694c49ac481ba1d37989fb4 | [
"Apache-2.0"
] | null | null | null | blobcity/utils/ProblemType.py | Bhumika0201/autoai | 8a1ba4453395798cf694c49ac481ba1d37989fb4 | [
"Apache-2.0"
] | null | null | null | blobcity/utils/ProblemType.py | Bhumika0201/autoai | 8a1ba4453395798cf694c49ac481ba1d37989fb4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 BlobCity, 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 agreed to in writing,... | 37.666667 | 117 | 0.673156 | 225 | 1,695 | 5.044444 | 0.524444 | 0.052863 | 0.037004 | 0.028194 | 0.056388 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022799 | 0.249558 | 1,695 | 44 | 118 | 38.522727 | 0.869497 | 0.635988 | 0 | 0.166667 | 0 | 0 | 0.183633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.083333 | 0.083333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1c41f5fa7b3556c63c188517d6047efbd9927883 | 2,030 | py | Python | make/uglify.py | Polychart/polychart2 | 4ac837ad4ee007aa291fb18a9df9eae810191954 | [
"MIT"
] | 64 | 2015-01-05T11:15:48.000Z | 2021-07-08T01:30:39.000Z | make/uglify.py | Polychart/polychart2 | 4ac837ad4ee007aa291fb18a9df9eae810191954 | [
"MIT"
] | 2 | 2016-02-27T10:49:52.000Z | 2017-01-26T00:03:09.000Z | make/uglify.py | Polychart/polychart2 | 4ac837ad4ee007aa291fb18a9df9eae810191954 | [
"MIT"
] | 19 | 2015-01-10T15:04:41.000Z | 2019-04-06T19:37:23.000Z | #!/usr/bin/env python
import argparse
import subprocess
import json
import os
def uglify_js(source, dest):
# multiple (possible) implementations.
# 1. uglify.js - fast, but fails hard without good error message on js syntax error.
# 2. closure compiler (api) - easy to use via HTTP API.
# 3. closure compiler (j... | 32.741935 | 86 | 0.650246 | 265 | 2,030 | 4.901887 | 0.483019 | 0.026944 | 0.033872 | 0.027714 | 0.035412 | 0.035412 | 0 | 0 | 0 | 0 | 0 | 0.003679 | 0.196552 | 2,030 | 61 | 87 | 33.278689 | 0.792765 | 0.159113 | 0 | 0 | 0 | 0 | 0.345946 | 0.051051 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.086957 | null | null | 0.108696 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c4466253e969a18fb0c6d7010f4d599e9cba409 | 598 | py | Python | aulas/aula34/pessoa.py | Biguelini/Curso-Python-3 | 0b5df350f5901262927b11b6f2b9b215176808ff | [
"MIT"
] | null | null | null | aulas/aula34/pessoa.py | Biguelini/Curso-Python-3 | 0b5df350f5901262927b11b6f2b9b215176808ff | [
"MIT"
] | null | null | null | aulas/aula34/pessoa.py | Biguelini/Curso-Python-3 | 0b5df350f5901262927b11b6f2b9b215176808ff | [
"MIT"
] | null | null | null | from random import randint
class Pessoa:
ano_atual = 2021
def __init__(self, nome,idade):
self.nome = nome
self.idade = idade
def get_ano_nascimento(self):
print(self.ano_atual - self.idade)
@classmethod
def por_ano_nascimento(cls, nome, ano_nascimento):
id... | 26 | 54 | 0.645485 | 78 | 598 | 4.705128 | 0.384615 | 0.212534 | 0.087193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049661 | 0.259197 | 598 | 23 | 55 | 26 | 0.778781 | 0 | 0 | 0 | 0 | 0 | 0.006678 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.05 | 0 | 0.45 | 0.15 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c4a7e2fe78d848f06c3a08a7f2a2ea29679e094 | 1,158 | py | Python | setup.py | topshed/m8tricks | 51a55f0cdbb167252048101bc2aadf547a5730da | [
"MIT"
] | 10 | 2019-07-31T17:33:10.000Z | 2022-01-08T09:07:01.000Z | setup.py | topshed/m8tricks | 51a55f0cdbb167252048101bc2aadf547a5730da | [
"MIT"
] | 3 | 2019-08-18T19:25:20.000Z | 2022-01-07T12:19:23.000Z | setup.py | topshed/m8tricks | 51a55f0cdbb167252048101bc2aadf547a5730da | [
"MIT"
] | 1 | 2022-01-08T09:03:42.000Z | 2022-01-08T09:03:42.000Z | "Setup script for the m8tricks package"
import sys
from setuptools import setup, find_packages
if not sys.version_info >= (3, 5):
raise RuntimeError('This application requires Python 3.5 or later')
def main():
"Executes setup when this script is the top-level"
import m8tricks as app
from pathlib imp... | 28.95 | 71 | 0.598446 | 127 | 1,158 | 4.92126 | 0.519685 | 0.0384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011208 | 0.306563 | 1,158 | 39 | 72 | 29.692308 | 0.767123 | 0.074266 | 0 | 0 | 0 | 0 | 0.139033 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | true | 0 | 0.125 | 0 | 0.15625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c4d9b0fbd6fb65e3627a439ffc063474676e6df | 7,759 | py | Python | recipes/Python/576627_BlueMon/recipe-576627.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/576627_BlueMon/recipe-576627.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/576627_BlueMon/recipe-576627.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | #------------------------------------------------------
#Bluetooth Functions
#Scanning is done by BluetoothScan()
#Device serive browsing is done by GetInfo(DevAdd)
#logging of known devices
# announce when device comes into range
#announce when device goes out of range
# announce when device changes name
#mmmm ambitio... | 62.072 | 114 | 0.481376 | 893 | 7,759 | 4.182531 | 0.282195 | 0.033735 | 0.037483 | 0.044177 | 0.27095 | 0.22249 | 0.186078 | 0.133601 | 0.096653 | 0.044177 | 0 | 0.005262 | 0.191777 | 7,759 | 124 | 115 | 62.572581 | 0.590336 | 0.686686 | 0 | 0.579439 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009346 | 0.037383 | null | null | 0.196262 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c4daa9f35162378bdd92222ae108357e2e40265 | 7,363 | py | Python | data-analysis/fix-and-load.py | davemungo/various | ed7c17f8b75a27fc59b0a5cad6125d64d00cd3ce | [
"MIT"
] | 1 | 2020-01-19T01:21:56.000Z | 2020-01-19T01:21:56.000Z | data-analysis/fix-and-load.py | davemungo/various | ed7c17f8b75a27fc59b0a5cad6125d64d00cd3ce | [
"MIT"
] | null | null | null | data-analysis/fix-and-load.py | davemungo/various | ed7c17f8b75a27fc59b0a5cad6125d64d00cd3ce | [
"MIT"
] | 1 | 2021-07-02T14:40:01.000Z | 2021-07-02T14:40:01.000Z | #################################################################wget
# import_traffic_data.py
#
# Clean up traffic data downloaded from:
# https://catalog.data.gov/dataset/traffic-violations-56dda/
# resource/450018e7-f6c0-43fd-b5c9-a83de293b206
#
# Create a simple sqlite3 database
# Import the cleaned ... | 36.631841 | 114 | 0.498574 | 695 | 7,363 | 5.106475 | 0.297842 | 0.027895 | 0.019724 | 0.005635 | 0.122288 | 0.073824 | 0.048464 | 0.02705 | 0.02705 | 0.02705 | 0 | 0.012684 | 0.389651 | 7,363 | 200 | 115 | 36.815 | 0.777036 | 0.093848 | 0 | 0.143791 | 0 | 0 | 0.452048 | 0.010281 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.026144 | null | null | 0.071895 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c4dbc0c8c9322fdfa41964c4add7775666ed6e7 | 402 | py | Python | addons/metadata/tests/utils.py | tsukaeru/RDM-osf.io | 2dc3e539322b6110e51772f8bd25ebdeb8e12d0e | [
"Apache-2.0"
] | 11 | 2018-12-11T16:39:40.000Z | 2022-02-26T09:51:32.000Z | Skelton/addon/tests/utils.py | RCOSDP/RDM-developer-guide | cf7475865bfa34568de289de73a76dcc11b9c469 | [
"MIT"
] | 52 | 2018-04-13T05:03:21.000Z | 2022-03-22T02:56:19.000Z | Skelton/addon/tests/utils.py | RCOSDP/RDM-developer-guide | cf7475865bfa34568de289de73a76dcc11b9c469 | [
"MIT"
] | 16 | 2018-07-09T01:44:51.000Z | 2021-06-30T01:57:16.000Z | # -*- coding: utf-8 -*-
from addons.base.tests.base import OAuthAddonTestCaseMixin, AddonTestCase
from .. import SHORT_NAME
class BaseAddonTestCase(AddonTestCase):
ADDON_SHORT_NAME = SHORT_NAME
OWNERS = ['node']
NODE_USER_FIELD = None
ExternalAccountFactory = None
Provider = None
Serializer = ... | 23.647059 | 73 | 0.708955 | 44 | 402 | 6.295455 | 0.659091 | 0.097473 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003145 | 0.208955 | 402 | 16 | 74 | 25.125 | 0.867925 | 0.052239 | 0 | 0 | 0 | 0 | 0.010554 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0.083333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1c4e69f6ccbb7bb2fb200021faaa9fbbd4456eaa | 10,784 | py | Python | core/tests/test_crud_views.py | mprof2018/locadora-cin | ea673a49110a6498dca3ed281d84e019ff9cc2d3 | [
"MIT"
] | null | null | null | core/tests/test_crud_views.py | mprof2018/locadora-cin | ea673a49110a6498dca3ed281d84e019ff9cc2d3 | [
"MIT"
] | 80 | 2018-12-14T18:37:46.000Z | 2022-03-11T23:39:57.000Z | core/tests/test_crud_views.py | mprof2018/locadora-cin | ea673a49110a6498dca3ed281d84e019ff9cc2d3 | [
"MIT"
] | 5 | 2018-12-14T19:35:28.000Z | 2019-01-09T23:10:00.000Z | from django.urls import reverse
from django.test import RequestFactory
from core.views.cruds_views import *
from mixer.backend.django import mixer
from django.contrib.auth.models import Permission, AnonymousUser
from django.core.exceptions import PermissionDenied
import pytest
from django.test import TestCase
from djan... | 37.706294 | 127 | 0.659959 | 1,294 | 10,784 | 5.363215 | 0.113601 | 0.061816 | 0.092795 | 0.112824 | 0.790346 | 0.673055 | 0.63804 | 0.616859 | 0.616859 | 0.616859 | 0 | 0.01042 | 0.216895 | 10,784 | 286 | 128 | 37.706294 | 0.811368 | 0.046829 | 0 | 0.509615 | 0 | 0 | 0.079209 | 0.005651 | 0 | 0 | 0 | 0 | 0.163462 | 1 | 0.144231 | false | 0.019231 | 0.043269 | 0 | 0.206731 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c4f48e5a3bdeee933b7b80bf557ed657004695d | 598 | py | Python | angr-doc/examples/defcamp_r200/solve.py | Ruide/angr-dev | 964dc80c758e25c698c2cbcc454ef5954c5fa0a0 | [
"BSD-2-Clause"
] | null | null | null | angr-doc/examples/defcamp_r200/solve.py | Ruide/angr-dev | 964dc80c758e25c698c2cbcc454ef5954c5fa0a0 | [
"BSD-2-Clause"
] | null | null | null | angr-doc/examples/defcamp_r200/solve.py | Ruide/angr-dev | 964dc80c758e25c698c2cbcc454ef5954c5fa0a0 | [
"BSD-2-Clause"
] | null | null | null | import angr
import logging
def main():
p = angr.Project("r200", load_options={'auto_load_libs': False})
sm = p.factory.simgr(veritesting=True)
# ex = p.surveyors.Explorer(find=(0x400936, ), avoid=(0x400947,), enable_veritesting=True)
# angr.surveyors.explorer.l.setLevel(logging.DEBUG)
# ex.run()
angr... | 28.47619 | 92 | 0.670569 | 84 | 598 | 4.630952 | 0.535714 | 0.077121 | 0.087404 | 0.128535 | 0.123393 | 0.123393 | 0.123393 | 0.123393 | 0 | 0 | 0 | 0.072125 | 0.14214 | 598 | 20 | 93 | 29.9 | 0.68616 | 0.33612 | 0 | 0 | 0 | 0 | 0.092308 | 0 | 0 | 0 | 0.041026 | 0 | 0.083333 | 0 | null | null | 0 | 0.166667 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c57fe06f4943c6721ef9d06d6e8f4eae23b7f32 | 270 | py | Python | medido de area.py | GabrielCarneiroDEV/Aprendendo-Python | d77a4df52894d884f4f405564983d227ad92c777 | [
"MIT"
] | null | null | null | medido de area.py | GabrielCarneiroDEV/Aprendendo-Python | d77a4df52894d884f4f405564983d227ad92c777 | [
"MIT"
] | null | null | null | medido de area.py | GabrielCarneiroDEV/Aprendendo-Python | d77a4df52894d884f4f405564983d227ad92c777 | [
"MIT"
] | null | null | null | L = float (input ('quantos metros de largura possui a sua parede?'))
A = float (input ('quantos metros de altura possui a sua parede?'))
a = L * A
print (' A sua parede possui {}m².' . format (a))
T = a/2
print ('você vai precisar de {} litros de tinta'.format (T)) | 24.545455 | 68 | 0.648148 | 46 | 270 | 3.804348 | 0.478261 | 0.068571 | 0.171429 | 0.262857 | 0.48 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009346 | 0.207407 | 270 | 11 | 69 | 24.545455 | 0.808411 | 0 | 0 | 0 | 0 | 0 | 0.575646 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c5bb944c9641b519608546e450e1a6c83840129 | 1,721 | py | Python | program/ohkawabata/4_filter.py | shutokawabata0723/kenkyu | b613b4daddca9b8b16efe0802669611948daea18 | [
"MIT"
] | 1 | 2021-05-06T03:35:16.000Z | 2021-05-06T03:35:16.000Z | program/ohkawabata/4_filter.py | shutokawabata0723/kenkyu | b613b4daddca9b8b16efe0802669611948daea18 | [
"MIT"
] | null | null | null | program/ohkawabata/4_filter.py | shutokawabata0723/kenkyu | b613b4daddca9b8b16efe0802669611948daea18 | [
"MIT"
] | null | null | null | #coding:utf-8
PURPLE = '\033[35m'
RED = '\033[31m'
CYAN = '\033[36m'
GREEN = '\033[92m'
BLUE = '\033[94m'
ENDC = '\033[0m'
from time import sleep
import chardet
def guess_charset(data):
f = lambda d, enc: d.decode(enc) and enc
try: return f(data, 'utf-8')
except: pass
try: return f(data,... | 20.488095 | 141 | 0.606043 | 285 | 1,721 | 3.585965 | 0.34386 | 0.019569 | 0.039139 | 0.054795 | 0.181996 | 0.181996 | 0.111546 | 0 | 0 | 0 | 0 | 0.039829 | 0.183033 | 1,721 | 83 | 142 | 20.73494 | 0.687055 | 0.101104 | 0 | 0.071429 | 0 | 0 | 0.184005 | 0.037711 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0.071429 | 0.035714 | 0 | 0.107143 | 0.107143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1c604d7e6353b17e8c731e1c0efde7ffa07a705b | 1,522 | py | Python | EmeraldAI/Logic/ROS/Serial/SerialConnector.py | MaxMorgenstern/EmeraldAI | 4bbb50f94b656904c428fc28cdbb61e7353e61aa | [
"Apache-2.0"
] | null | null | null | EmeraldAI/Logic/ROS/Serial/SerialConnector.py | MaxMorgenstern/EmeraldAI | 4bbb50f94b656904c428fc28cdbb61e7353e61aa | [
"Apache-2.0"
] | null | null | null | EmeraldAI/Logic/ROS/Serial/SerialConnector.py | MaxMorgenstern/EmeraldAI | 4bbb50f94b656904c428fc28cdbb61e7353e61aa | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import serial
import time
class SerialConnector():
SerialPointer = None
ReadTimestamp = None
InitialTimestampDelay = 10
def __init__(self, portName, baud, timeout=1):
self._portName = portName
self._baud = baud
self._timeout = timeout
... | 30.44 | 101 | 0.595269 | 161 | 1,522 | 5.559006 | 0.341615 | 0.151955 | 0.070391 | 0.083799 | 0.198883 | 0.198883 | 0.127374 | 0 | 0 | 0 | 0 | 0.012951 | 0.28975 | 1,522 | 49 | 102 | 31.061224 | 0.814986 | 0.06636 | 0 | 0.216216 | 0 | 0 | 0.011989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.054054 | null | null | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c6194beccf4a34304393b9a02e1197adf331067 | 523 | py | Python | src/main/resources/modelimport/keras/fullconfigs/cnn/predict.py | farizrahman4u/dl4j-test-resources | ec81bfb53c77bbdfffef146a4bc11074dc7f3191 | [
"Apache-2.0"
] | null | null | null | src/main/resources/modelimport/keras/fullconfigs/cnn/predict.py | farizrahman4u/dl4j-test-resources | ec81bfb53c77bbdfffef146a4bc11074dc7f3191 | [
"Apache-2.0"
] | null | null | null | src/main/resources/modelimport/keras/fullconfigs/cnn/predict.py | farizrahman4u/dl4j-test-resources | ec81bfb53c77bbdfffef146a4bc11074dc7f3191 | [
"Apache-2.0"
] | null | null | null | from keras.models import load_model
import numpy as np
np.random.seed(1337)
model = load_model("cnn_batch_norm.h5")
input = np.random.random((5, 10, 10, 3))
output = model.predict(input)
assert abs(-0.0520611 - output[0][0]) < 0.000001
assert abs(0.04986075 - output[1][0]) < 0.000001
assert abs(0.16297522 - outp... | 27.526316 | 49 | 0.695985 | 92 | 523 | 3.913043 | 0.423913 | 0.033333 | 0.138889 | 0.155556 | 0.2 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0.218341 | 0.124283 | 523 | 18 | 50 | 29.055556 | 0.567686 | 0 | 0 | 0 | 0 | 0 | 0.078394 | 0 | 0 | 0 | 0 | 0 | 0.384615 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c6767b3796c48b41209477099da1adff5686cd7 | 662 | py | Python | migrations/versions/825d555af49_bill_versions_enacted.py | havanhuy1997/pmg-cms-2 | 21571235cf3d9552013bca29ab9af288b08e00d6 | [
"Apache-2.0"
] | 2 | 2019-06-11T20:46:43.000Z | 2020-08-27T22:50:32.000Z | migrations/versions/825d555af49_bill_versions_enacted.py | havanhuy1997/pmg-cms-2 | 21571235cf3d9552013bca29ab9af288b08e00d6 | [
"Apache-2.0"
] | 70 | 2017-05-26T14:04:06.000Z | 2021-06-30T10:21:58.000Z | migrations/versions/825d555af49_bill_versions_enacted.py | havanhuy1997/pmg-cms-2 | 21571235cf3d9552013bca29ab9af288b08e00d6 | [
"Apache-2.0"
] | 4 | 2017-08-29T10:09:30.000Z | 2021-05-25T11:29:03.000Z | """bill-versions-enacted
Revision ID: 825d555af49
Revises: 3101ec185bdf
Create Date: 2015-12-08 08:35:52.703472
"""
# revision identifiers, used by Alembic.
revision = '825d555af49'
down_revision = '3101ec185bdf'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alem... | 24.518519 | 120 | 0.705438 | 83 | 662 | 5.554217 | 0.554217 | 0.078091 | 0.08243 | 0.099783 | 0.190889 | 0.190889 | 0.190889 | 0.190889 | 0 | 0 | 0 | 0.089606 | 0.1571 | 662 | 26 | 121 | 25.461538 | 0.736559 | 0.450151 | 0 | 0 | 0 | 0 | 0.205438 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c686c943483f1479f42ba0263b4a6e7d54b00d2 | 1,924 | py | Python | wrt/wrt-packagemgt-windows-tests/pmwindows/Crosswalk_WebApp_Install.py | zhuyongyong/crosswalk-test-suite | 24f3f8cfa663a365b0a22685d5bd096a637f72db | [
"BSD-3-Clause"
] | null | null | null | wrt/wrt-packagemgt-windows-tests/pmwindows/Crosswalk_WebApp_Install.py | zhuyongyong/crosswalk-test-suite | 24f3f8cfa663a365b0a22685d5bd096a637f72db | [
"BSD-3-Clause"
] | null | null | null | wrt/wrt-packagemgt-windows-tests/pmwindows/Crosswalk_WebApp_Install.py | zhuyongyong/crosswalk-test-suite | 24f3f8cfa663a365b0a22685d5bd096a637f72db | [
"BSD-3-Clause"
] | null | null | null | #!/bin/bash
#Copyright (c) 2015 Intel Corporation.
#
#Redistribution and use in source and binary forms, with or without modification,
#are permitted provided that the following conditions are met:
#
#* Redistributions of works must retain the original copyright notice, this list
# of conditions and the following disc... | 39.265306 | 81 | 0.766632 | 271 | 1,924 | 5.372694 | 0.538745 | 0.043956 | 0.027473 | 0.035714 | 0.15522 | 0.097527 | 0.097527 | 0.097527 | 0.097527 | 0.097527 | 0 | 0.002513 | 0.172557 | 1,924 | 48 | 82 | 40.083333 | 0.91206 | 0.761954 | 0 | 0 | 0 | 0 | 0.05814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1c6beb4c7afa5e3a0ddeb1872ade984f8e976c24 | 1,909 | py | Python | inference.py | shashankpr/DeepSleep | ea33778f74be1314b1be8f34a101294e8395808d | [
"MIT"
] | 3 | 2020-03-13T13:51:48.000Z | 2021-01-27T14:18:18.000Z | inference.py | shashankpr/DeepSleep | ea33778f74be1314b1be8f34a101294e8395808d | [
"MIT"
] | null | null | null | inference.py | shashankpr/DeepSleep | ea33778f74be1314b1be8f34a101294e8395808d | [
"MIT"
] | 1 | 2020-07-26T15:37:19.000Z | 2020-07-26T15:37:19.000Z | from deepsleep import InferenceHeartSequenceLoader
import numpy as np
import os, glob
# from data_generator import InferenceHeartSequenceLoader
from keras.models import load_model, model_from_json
def prepare_data():
HDF_DIR = os.path.join(os.getcwd(), "deepsleep/data")
for hdf_file in glob.glob(HDF_DIR + '/'... | 28.492537 | 86 | 0.736511 | 255 | 1,909 | 5.176471 | 0.313725 | 0.045455 | 0.051515 | 0.027273 | 0.072727 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027181 | 0.171294 | 1,909 | 66 | 87 | 28.924242 | 0.807206 | 0.120482 | 0 | 0 | 0 | 0 | 0.08433 | 0.036483 | 0.026316 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | null | null | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c6dbd2d27dba338b13f5388b310de498436bc5c | 358 | py | Python | 392. Is Subsequence.py | XinchaoGou/MyLeetCode | bba0ab077374f7da2cb1a990266bc59fa7ddf23c | [
"MIT"
] | null | null | null | 392. Is Subsequence.py | XinchaoGou/MyLeetCode | bba0ab077374f7da2cb1a990266bc59fa7ddf23c | [
"MIT"
] | null | null | null | 392. Is Subsequence.py | XinchaoGou/MyLeetCode | bba0ab077374f7da2cb1a990266bc59fa7ddf23c | [
"MIT"
] | null | null | null | class Solution:
def isSubsequence(self, s: str, t: str) -> bool:
len_s = len(s)
if len_s <1:
return True
s = list(s)
t = list(t)
j = 0
for i in range(len(t)):
if t[i] == s[j]:
j += 1
if j == len_s:
... | 25.571429 | 52 | 0.385475 | 49 | 358 | 2.755102 | 0.44898 | 0.118519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016949 | 0.505587 | 358 | 14 | 53 | 25.571429 | 0.745763 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c6fe7fd21ad876676afe8d6ac88abfc4687934e | 2,388 | py | Python | fastapi_mvc/generators/project/template/{{cookiecutter.folder_name}}/tests/unit/cli/test_serve.py | rszamszur/fastapi-mvc | 98670eda3b485cfe25850773dcc1ae7ae5feced9 | [
"MIT"
] | 98 | 2021-12-21T18:45:07.000Z | 2022-03-27T08:48:37.000Z | fastapi_mvc/generators/project/template/{{cookiecutter.folder_name}}/tests/unit/cli/test_serve.py | rszamszur/fastapi-mvc | 98670eda3b485cfe25850773dcc1ae7ae5feced9 | [
"MIT"
] | 48 | 2021-12-21T16:06:56.000Z | 2022-03-26T17:28:57.000Z | fastapi_mvc/generators/project/template/{{cookiecutter.folder_name}}/tests/unit/cli/test_serve.py | rszamszur/fastapi-mvc | 98670eda3b485cfe25850773dcc1ae7ae5feced9 | [
"MIT"
] | 16 | 2022-01-05T14:21:50.000Z | 2022-02-13T17:55:07.000Z | import os
import mock
import pytest
from {{cookiecutter.package_name}}.cli.serve import serve
current_dir = os.path.dirname(__file__)
pid_file = os.path.join(current_dir, "test.pid")
def test_serve_help(cli_runner):
result = cli_runner.invoke(serve, ["--help"])
assert result.exit_code == 0
@pytest.mark.p... | 24.121212 | 73 | 0.429648 | 210 | 2,388 | 4.666667 | 0.319048 | 0.055102 | 0.104082 | 0.079592 | 0.541837 | 0.377551 | 0.377551 | 0.295918 | 0.295918 | 0.295918 | 0 | 0.023878 | 0.421273 | 2,388 | 98 | 74 | 24.367347 | 0.685239 | 0 | 0 | 0.522727 | 0 | 0 | 0.201005 | 0.046901 | 0 | 0 | 0 | 0 | 0.045455 | 0 | null | null | 0 | 0.045455 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c731b3a392bad96b7440f543a0b5bf7689b26fa | 1,302 | py | Python | knx_stack/encode/knxnet_ip/core/disconnect/req.py | majamassarini/knx-stack | 11a9baac6b7600649b5fbca43c93b200b23676b4 | [
"MIT"
] | 2 | 2021-07-28T07:42:28.000Z | 2022-01-25T18:56:05.000Z | knx_stack/encode/knxnet_ip/core/disconnect/req.py | majamassarini/knx-stack | 11a9baac6b7600649b5fbca43c93b200b23676b4 | [
"MIT"
] | 6 | 2021-07-25T21:36:01.000Z | 2022-02-20T21:11:31.000Z | knx_stack/encode/knxnet_ip/core/disconnect/req.py | majamassarini/knx-stack | 11a9baac6b7600649b5fbca43c93b200b23676b4 | [
"MIT"
] | null | null | null | import socket
from knx_stack import Octect, Short
from knx_stack.definition.knxnet_ip import Msg as NetMsg, Services, HEADER_SIZE_10
from knx_stack.encode.knxnet_ip import header
from knx_stack.encode.knxnet_ip.core import hpai
def encode(
state: "knx_stack.State", msg: "knx_stack.knxnet_ip.core.disconnect.req.M... | 44.896552 | 107 | 0.718894 | 177 | 1,302 | 4.977401 | 0.282486 | 0.108967 | 0.054484 | 0.054484 | 0.190692 | 0.140749 | 0.081725 | 0.081725 | 0 | 0 | 0 | 0.042791 | 0.174347 | 1,302 | 28 | 108 | 46.5 | 0.776744 | 0.311828 | 0 | 0 | 0 | 0 | 0.082944 | 0.050234 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1c7838f654ee69a79954467887cd0e4493d74dd3 | 460 | py | Python | examples/a_example14.py | berkeman/examples | 985e907fee4120e9266544e4fc66cdbddf5d87b9 | [
"Apache-2.0"
] | null | null | null | examples/a_example14.py | berkeman/examples | 985e907fee4120e9266544e4fc66cdbddf5d87b9 | [
"Apache-2.0"
] | null | null | null | examples/a_example14.py | berkeman/examples | 985e907fee4120e9266544e4fc66cdbddf5d87b9 | [
"Apache-2.0"
] | 1 | 2020-02-15T17:10:20.000Z | 2020-02-15T17:10:20.000Z | def prepare(job):
dw1 = job.datasetwriter(name='first')
dw2 = job.datasetwriter(name='second')
dw3 = job.datasetwriter(name='third')
dw1.add('col1', 'int64')
dw2.add('col1', 'json')
dw3.add('col1', 'number')
dw3.add('col2', 'unicode')
dw3.add('col3', 'bool')
return dw1, dw2, dw3
def analysis(sliceno, prepare_... | 27.058824 | 51 | 0.671739 | 67 | 460 | 4.58209 | 0.41791 | 0.156352 | 0.19544 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 0.123913 | 460 | 16 | 52 | 28.75 | 0.69727 | 0 | 0 | 0 | 0 | 0 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c7d27a2a61a53b50ea83884d1cdef671d08e65a | 498 | py | Python | demo/code/2018-08-09/test_tree.py | uxlsl/uxlsl.github.io | 91b62eb01fad38b913016236bb687eb6f0fe2012 | [
"MIT"
] | null | null | null | demo/code/2018-08-09/test_tree.py | uxlsl/uxlsl.github.io | 91b62eb01fad38b913016236bb687eb6f0fe2012 | [
"MIT"
] | null | null | null | demo/code/2018-08-09/test_tree.py | uxlsl/uxlsl.github.io | 91b62eb01fad38b913016236bb687eb6f0fe2012 | [
"MIT"
] | null | null | null | from tree import Node
def test_isSame():
n1 = Node(None, None, 1)
n2 = Node(None, None, 1)
n3 = Node(None, n2, 1)
n4 = Node(None, n2, 1)
n5 = Node(n1, n2, 3)
n6 = Node(n1, n2, 3)
n7 = Node(n1, n4, 3)
n8 = Node(n4, n2, 3)
assert n1.IsSame(n2) == True
assert n1.IsSame(None)... | 24.9 | 35 | 0.558233 | 82 | 498 | 3.378049 | 0.256098 | 0.115523 | 0.151625 | 0.093863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109551 | 0.285141 | 498 | 19 | 36 | 26.210526 | 0.668539 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.411765 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.117647 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c7f550fb3eeeecbd0e1842b0c344a5c66c97140 | 634 | py | Python | accounts/migrations/0002_auto_20210831_0046.py | theonlykingpin/snapfoodclone | 0c1a7839424e89d9bc7bfb55c150a92055759702 | [
"MIT"
] | 11 | 2021-09-17T07:44:05.000Z | 2022-02-06T08:33:30.000Z | accounts/migrations/0002_auto_20210831_0046.py | theonlykingpin/snapfoodclone | 0c1a7839424e89d9bc7bfb55c150a92055759702 | [
"MIT"
] | 1 | 2021-10-09T07:37:14.000Z | 2021-10-09T07:37:14.000Z | accounts/migrations/0002_auto_20210831_0046.py | theonlykingpin/snapfoodclone | 0c1a7839424e89d9bc7bfb55c150a92055759702 | [
"MIT"
] | 3 | 2021-09-27T14:12:13.000Z | 2021-10-18T12:21:37.000Z | # Generated by Django 3.2 on 2021-08-30 20:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='customer',
name='phone_number',
... | 26.416667 | 92 | 0.61041 | 66 | 634 | 5.727273 | 0.575758 | 0.095238 | 0.15873 | 0.153439 | 0.412698 | 0.412698 | 0.412698 | 0.412698 | 0.412698 | 0.412698 | 0 | 0.047826 | 0.274448 | 634 | 23 | 93 | 27.565217 | 0.773913 | 0.067823 | 0 | 0.470588 | 1 | 0 | 0.154499 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c81d592aafff74e6e2c50ceb32fdf53e4e75443 | 46,648 | py | Python | elijah/provisioning/server.py | cmusatyalab/nephele | 2309aa9c943300c5a1a0c6be8877902f0d4df102 | [
"Apache-2.0"
] | 3 | 2020-05-07T12:05:24.000Z | 2021-09-26T23:26:30.000Z | elijah/provisioning/server.py | cmusatyalab/nephele | 2309aa9c943300c5a1a0c6be8877902f0d4df102 | [
"Apache-2.0"
] | 3 | 2020-03-26T14:09:15.000Z | 2020-03-27T18:43:35.000Z | elijah/provisioning/server.py | cmusatyalab/nephele | 2309aa9c943300c5a1a0c6be8877902f0d4df102 | [
"Apache-2.0"
] | 1 | 2021-09-26T23:26:34.000Z | 2021-09-26T23:26:34.000Z | #!/usr/bin/env python
#
# Cloudlet Infrastructure for Mobile Computing
#
# Author: Kiryong Ha <krha@cmu.edu>
#
# Copyright (C) 2011-2013 Carnegie Mellon University
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may ob... | 41.501779 | 113 | 0.626844 | 5,482 | 46,648 | 5.060015 | 0.097227 | 0.014709 | 0.010779 | 0.013591 | 0.600598 | 0.553733 | 0.506291 | 0.486643 | 0.468979 | 0.447817 | 0 | 0.006297 | 0.285093 | 46,648 | 1,123 | 114 | 41.538736 | 0.825482 | 0.065555 | 0 | 0.497034 | 0 | 0.004745 | 0.065458 | 0.002475 | 0.001186 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007117 | 0.029656 | null | null | 0.004745 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c8b3be71dcbb6d62c341aa5c7518da3549a2e33 | 3,089 | py | Python | registration/migrations/0005_auto_20210611_0904.py | screw-pack/hazel | ade9b6c6a396b3da2bb2d5505cfb63e1579cdab8 | [
"MIT"
] | null | null | null | registration/migrations/0005_auto_20210611_0904.py | screw-pack/hazel | ade9b6c6a396b3da2bb2d5505cfb63e1579cdab8 | [
"MIT"
] | null | null | null | registration/migrations/0005_auto_20210611_0904.py | screw-pack/hazel | ade9b6c6a396b3da2bb2d5505cfb63e1579cdab8 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.4 on 2021-06-11 07:04
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('registration', '0004_alter_child_birth_date'),
]
operations = [
migrations.Cre... | 37.670732 | 151 | 0.585626 | 299 | 3,089 | 5.876254 | 0.294314 | 0.056346 | 0.092203 | 0.122937 | 0.489471 | 0.424587 | 0.424587 | 0.366534 | 0.258395 | 0.225953 | 0 | 0.021808 | 0.287472 | 3,089 | 81 | 152 | 38.135802 | 0.776465 | 0.014568 | 0 | 0.44 | 1 | 0 | 0.150888 | 0.008876 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.08 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c91d05810437401fde0132fb1a478d87e2d5d1c | 3,026 | py | Python | evidently/tabs/regression_performance_tab.py | alex-zenml/evidently | e9b683056661fcab8dc3fd4c2d4576b082d80d20 | [
"Apache-2.0"
] | 1 | 2021-12-30T14:27:40.000Z | 2021-12-30T14:27:40.000Z | evidently/tabs/regression_performance_tab.py | alex-zenml/evidently | e9b683056661fcab8dc3fd4c2d4576b082d80d20 | [
"Apache-2.0"
] | null | null | null | evidently/tabs/regression_performance_tab.py | alex-zenml/evidently | e9b683056661fcab8dc3fd4c2d4576b082d80d20 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
from evidently.tabs.base_tab import Tab, Verbose
from evidently.widgets.target_name_widget import TargetNameWidget
from evidently.widgets.reg_quality_metrics_bar_widget import RegQualityMetricsBarWidget
from evidently.widgets.reg_pred_vs_actual_widget import RegPredActualWidget
fr... | 73.804878 | 115 | 0.780238 | 302 | 3,026 | 7.668874 | 0.241722 | 0.067358 | 0.094991 | 0.099309 | 0.213731 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000375 | 0.118638 | 3,026 | 40 | 116 | 75.65 | 0.868017 | 0.011236 | 0 | 0 | 0 | 0 | 0.255853 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.342857 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1c9446d47115e441f3a527fad1bbbd533dd299f1 | 303 | py | Python | Quicksort/Quicksort.py | hoooray/Algorithm | 35e1962d40c9e0d812bf03c195e69fd7ee702a00 | [
"MIT"
] | null | null | null | Quicksort/Quicksort.py | hoooray/Algorithm | 35e1962d40c9e0d812bf03c195e69fd7ee702a00 | [
"MIT"
] | null | null | null | Quicksort/Quicksort.py | hoooray/Algorithm | 35e1962d40c9e0d812bf03c195e69fd7ee702a00 | [
"MIT"
] | null | null | null | def quicksort(arr):
if len(arr) < 2:
return arr
else:
pivot = arr[0]
small = [i for i in arr[1:] if i <= pivot]
big = [i for i in arr[1:] if i > pivot]
return quicksort(small) + [pivot] + quicksort(big)
MYLIST = [1, 3, 55, 7, 9]
print quicksort(MYLIST)
| 23.307692 | 58 | 0.531353 | 48 | 303 | 3.354167 | 0.458333 | 0.049689 | 0.062112 | 0.086957 | 0.236025 | 0.236025 | 0.236025 | 0.236025 | 0.236025 | 0 | 0 | 0.04902 | 0.326733 | 303 | 12 | 59 | 25.25 | 0.740196 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c9c7ca6a6e0a330888db53ba0586b63d4883fd6 | 545 | py | Python | vehicle/migrations/0010_auto_20210730_1613.py | odacremjorge/taller_oruro | fbb371ca700e6d456611fb30774aedbface1308c | [
"MIT"
] | null | null | null | vehicle/migrations/0010_auto_20210730_1613.py | odacremjorge/taller_oruro | fbb371ca700e6d456611fb30774aedbface1308c | [
"MIT"
] | null | null | null | vehicle/migrations/0010_auto_20210730_1613.py | odacremjorge/taller_oruro | fbb371ca700e6d456611fb30774aedbface1308c | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2021-07-30 20:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('vehicle', '0009_attendance'),
]
operations = [
migrations.AlterField(
model_name='request',
name='category',
... | 28.684211 | 214 | 0.629358 | 53 | 545 | 6.415094 | 0.754717 | 0.094118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049763 | 0.225688 | 545 | 18 | 215 | 30.277778 | 0.755924 | 0.082569 | 0 | 0 | 1 | 0 | 0.303213 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
98bb744c7db4f024fd36f10cd7dc7b66d8b6256c | 736 | py | Python | blog/admin.py | malviyanshiv/django-blog | be014a7e1db8a3466c27a0c055120d6934ffdaac | [
"MIT"
] | 1 | 2020-03-03T22:30:06.000Z | 2020-03-03T22:30:06.000Z | blog/admin.py | malviyanshiv/django-blog | be014a7e1db8a3466c27a0c055120d6934ffdaac | [
"MIT"
] | 3 | 2020-02-11T23:51:12.000Z | 2021-06-10T21:22:20.000Z | blog/admin.py | malviyanshiv/django-blog | be014a7e1db8a3466c27a0c055120d6934ffdaac | [
"MIT"
] | null | null | null | from django.contrib import admin
from blog.models import Post, Comment, Subscribe
# Register your models here.
@admin.register(Post)
class PostAdmin(admin.ModelAdmin):
list_display = ('title', 'slug', 'author', 'publish', 'status', 'like_count', 'comment_count')
list_filter = ('status', 'created', 'publish', '... | 35.047619 | 98 | 0.675272 | 82 | 736 | 5.926829 | 0.512195 | 0.053498 | 0.078189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149457 | 736 | 21 | 99 | 35.047619 | 0.776358 | 0.035326 | 0 | 0 | 0 | 0 | 0.228491 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.823529 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
98c2a63370d5310a0060fa385226ae63d76573ba | 187 | py | Python | sim_env/maze_demo.py | xinchaosong/lstm-predictive-motion-planner | e80d0985c629d0c85b2a20f6e2f3de786873662b | [
"Apache-2.0"
] | 1 | 2021-11-17T01:03:47.000Z | 2021-11-17T01:03:47.000Z | sim_env/maze_demo.py | xinchaosong/lstm-predictive-motion-planner | e80d0985c629d0c85b2a20f6e2f3de786873662b | [
"Apache-2.0"
] | null | null | null | sim_env/maze_demo.py | xinchaosong/lstm-predictive-motion-planner | e80d0985c629d0c85b2a20f6e2f3de786873662b | [
"Apache-2.0"
] | 1 | 2020-09-12T17:43:10.000Z | 2020-09-12T17:43:10.000Z | from sim_env.env import SimEnv
env = SimEnv(xml_name="maze.xml", recompile_cpp=False, rendering=True)
env.reset(obstacle_pos=(-5, 0), agent_pos=(2, -11.0))
while True:
env.render()
| 23.375 | 70 | 0.716578 | 32 | 187 | 4.03125 | 0.71875 | 0.108527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036364 | 0.117647 | 187 | 7 | 71 | 26.714286 | 0.745455 | 0 | 0 | 0 | 0 | 0 | 0.042781 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
98d0fe4f738b3fa1c48aea17c60c040c8038bfa6 | 182 | py | Python | atividade-sem-03-T1-1/valordex.py | MacgayverPeixoto/PEC_IFPI_186 | 9cc3a2cc13b028b829e6191e56b2852dfb47998c | [
"MIT"
] | null | null | null | atividade-sem-03-T1-1/valordex.py | MacgayverPeixoto/PEC_IFPI_186 | 9cc3a2cc13b028b829e6191e56b2852dfb47998c | [
"MIT"
] | null | null | null | atividade-sem-03-T1-1/valordex.py | MacgayverPeixoto/PEC_IFPI_186 | 9cc3a2cc13b028b829e6191e56b2852dfb47998c | [
"MIT"
] | null | null | null | #Escreva um programa que ler o valor da variável x. Calcule e mostre o resultado da
#expressão: 9x - 4x + 10
vx=float(input())
expres= float( 9*vx - 4*vx +10)
print(expres)
| 22.75 | 84 | 0.675824 | 32 | 182 | 3.84375 | 0.78125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055944 | 0.214286 | 182 | 7 | 85 | 26 | 0.804196 | 0.576923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
98daa811787ff9b577a88e1cc98db39391bdcc74 | 1,372 | py | Python | PROG1_python/coursemology/Mission21-CoinConverter (1).py | dodieboy/Np_class | af9ec993eda3c1e2bf70257c8384696bb64a5e9d | [
"MIT"
] | null | null | null | PROG1_python/coursemology/Mission21-CoinConverter (1).py | dodieboy/Np_class | af9ec993eda3c1e2bf70257c8384696bb64a5e9d | [
"MIT"
] | null | null | null | PROG1_python/coursemology/Mission21-CoinConverter (1).py | dodieboy/Np_class | af9ec993eda3c1e2bf70257c8384696bb64a5e9d | [
"MIT"
] | 2 | 2021-03-30T00:46:58.000Z | 2021-12-12T23:41:12.000Z | #Programming I
#####################################
# Mission 2.1 #
# Coin Converter #
#####################################
#Background
#==========
#Tom needs to count and total up his coins.
#Requirements
#============
#Develop a pseudocode to solve the following problem:
... | 30.488889 | 69 | 0.624636 | 192 | 1,372 | 4.421875 | 0.515625 | 0.084806 | 0.094229 | 0.088339 | 0.044759 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064774 | 0.178571 | 1,372 | 44 | 70 | 31.181818 | 0.688554 | 0.699708 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
98e83277b5369553c7aecdb43882a13aa0baf286 | 1,617 | py | Python | undoc_dir.py | brson/ctrs | cd0a46bf647f439067f45238f59a445181c8cb6d | [
"DOC"
] | 4 | 2015-09-17T21:14:42.000Z | 2015-11-26T14:58:21.000Z | undoc_dir.py | brson/ctrs | cd0a46bf647f439067f45238f59a445181c8cb6d | [
"DOC"
] | 2 | 2015-10-20T09:36:04.000Z | 2016-07-22T18:19:45.000Z | undoc_dir.py | brson/ctrs | cd0a46bf647f439067f45238f59a445181c8cb6d | [
"DOC"
] | null | null | null | #!/usr/bin/python
# Copyright 2014 The Rust Project Developers. See the COPYRIGHT
# file at the top-level directory of this distribution and at
# http://rust-lang.org/COPYRIGHT.
#
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
# <LICE... | 31.096154 | 67 | 0.633271 | 223 | 1,617 | 4.430493 | 0.403587 | 0.121457 | 0.08502 | 0.11336 | 0.149798 | 0.095142 | 0.062753 | 0.062753 | 0.062753 | 0 | 0 | 0.009885 | 0.249227 | 1,617 | 51 | 68 | 31.705882 | 0.803954 | 0.281385 | 0 | 0 | 0 | 0 | 0.050347 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0 | null | null | 0 | 0.096774 | null | null | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
98eef76f1e5a55505e5b18b066d9d4b001308b24 | 1,878 | py | Python | Code/db/Database.py | CMU-IDS-2020/fp-planningforthebest | 61eac2a1e0d9fdf0febb201cfacb234b8fa11592 | [
"BSD-3-Clause"
] | null | null | null | Code/db/Database.py | CMU-IDS-2020/fp-planningforthebest | 61eac2a1e0d9fdf0febb201cfacb234b8fa11592 | [
"BSD-3-Clause"
] | 4 | 2020-11-15T18:08:25.000Z | 2020-11-15T20:00:29.000Z | Code/db/Database.py | CMU-IDS-2020/fp-planningforthebest | 61eac2a1e0d9fdf0febb201cfacb234b8fa11592 | [
"BSD-3-Clause"
] | null | null | null | import pymysql
import os
class Database():
def __init__(self):
host = os.environ['MYSQLHost']
user = os.environ['MYSQLName']
password = os.environ['MYSQLPwd']
db_name = "planning"
self.db = pymysql.connect(
user=user,
passwd=password,
ho... | 43.674419 | 373 | 0.560703 | 228 | 1,878 | 4.561404 | 0.460526 | 0.057692 | 0.061538 | 0.076923 | 0.465385 | 0.465385 | 0.465385 | 0.465385 | 0.465385 | 0.382692 | 0 | 0.066992 | 0.236954 | 1,878 | 43 | 374 | 43.674419 | 0.658758 | 0 | 0 | 0.324324 | 0 | 0.054054 | 0.385844 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162162 | false | 0.054054 | 0.108108 | 0 | 0.297297 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
98f5e416d3133ce5443d5bc501d0e00c7819a172 | 409 | py | Python | manutencoes/migrations/0003_altera_telefone.py | SolutionUp/SolutionUP-System | 4f341df1a51a43b350e626d47abd207a55edb94d | [
"MIT"
] | 4 | 2021-08-30T01:45:46.000Z | 2022-01-08T18:05:10.000Z | manutencoes/migrations/0003_altera_telefone.py | SolutionUp/SolutionUP-System | 4f341df1a51a43b350e626d47abd207a55edb94d | [
"MIT"
] | 6 | 2021-08-29T03:26:48.000Z | 2021-09-24T00:13:11.000Z | manutencoes/migrations/0003_altera_telefone.py | SolutionUp/SolutionUP-System | 4f341df1a51a43b350e626d47abd207a55edb94d | [
"MIT"
] | 1 | 2021-08-16T21:21:34.000Z | 2021-08-16T21:21:34.000Z | # Generated by Django 3.2.6 on 2021-10-14 00:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('manutencoes', '0002_manutencao'),
]
operations = [
migrations.AlterField(
model_name='terceiro',
name='telefone',
... | 21.526316 | 73 | 0.606357 | 44 | 409 | 5.568182 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070946 | 0.276284 | 409 | 18 | 74 | 22.722222 | 0.756757 | 0.110024 | 0 | 0 | 1 | 0 | 0.116022 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
98f7703710d2b7a43fab66fc6153d672e52f3853 | 1,003 | py | Python | src/helpers/overlays.py | Danziger/CarND-T1-P5-Vehicle-Detection | 6e3afd8f756bb19bd8772fd34a8e4811ee98bbea | [
"MIT"
] | 1 | 2018-03-29T05:55:27.000Z | 2018-03-29T05:55:27.000Z | src/helpers/overlays.py | Danziger/CarND-T1-P5-Vehicle-Detection | 6e3afd8f756bb19bd8772fd34a8e4811ee98bbea | [
"MIT"
] | null | null | null | src/helpers/overlays.py | Danziger/CarND-T1-P5-Vehicle-Detection | 6e3afd8f756bb19bd8772fd34a8e4811ee98bbea | [
"MIT"
] | null | null | null | import cv2
import numpy as np
def draw_boxes(img, boxes, color=(0, 0, 255), alpha=0.5, thick=6):
"""
Returns a copy of the provided image with boxes (rectangles)
drawn on it using the specified color and thickness.
"""
overlay = np.copy(img)
for box in boxes:
cv2.rectangle(overl... | 23.325581 | 66 | 0.609172 | 145 | 1,003 | 4.193103 | 0.448276 | 0.039474 | 0.026316 | 0.042763 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042062 | 0.265204 | 1,003 | 43 | 67 | 23.325581 | 0.782904 | 0.327019 | 0 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.133333 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c7030082b2b7bf8c8e77ee42e44a7e0e65688525 | 3,705 | py | Python | ebl/transliteration/application/at_line_schemas.py | ElectronicBabylonianLiterature/dictionary | 5977a57314cf57f94f75cd12520f178b1d6a6555 | [
"MIT"
] | 4 | 2020-04-12T14:24:51.000Z | 2020-10-15T15:48:15.000Z | ebl/transliteration/application/at_line_schemas.py | ElectronicBabylonianLiterature/dictionary | 5977a57314cf57f94f75cd12520f178b1d6a6555 | [
"MIT"
] | 200 | 2019-12-04T09:53:20.000Z | 2022-03-30T20:11:31.000Z | ebl/transliteration/application/at_line_schemas.py | ElectronicBabylonianLiterature/dictionary | 5977a57314cf57f94f75cd12520f178b1d6a6555 | [
"MIT"
] | 1 | 2021-09-06T16:22:39.000Z | 2021-09-06T16:22:39.000Z | from marshmallow import fields, post_load
from ebl.schemas import NameEnum
from ebl.transliteration.application.label_schemas import (
ColumnLabelSchema,
ObjectLabelSchema,
SurfaceLabelSchema,
)
from ebl.transliteration.application.line_schemas import LineBaseSchema
from ebl.transliteration.application.tok... | 32.787611 | 85 | 0.740081 | 399 | 3,705 | 6.729323 | 0.210526 | 0.049162 | 0.053631 | 0.071508 | 0.331471 | 0.331471 | 0.331471 | 0.331471 | 0.319181 | 0.319181 | 0 | 0 | 0.151957 | 3,705 | 112 | 86 | 33.080357 | 0.854551 | 0 | 0 | 0.258824 | 0 | 0 | 0.050742 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.094118 | false | 0 | 0.105882 | 0.094118 | 0.694118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c7050e78252b034b4947f352250792e2d7e78be9 | 1,593 | py | Python | tx2/cache.py | ORNL/tx2 | c2365580a994d35b31ec5a4c1be5acb3a4a7c8d7 | [
"BSD-3-Clause"
] | 16 | 2021-01-29T19:28:50.000Z | 2022-02-08T16:12:48.000Z | tx2/cache.py | ORNL/tx2 | c2365580a994d35b31ec5a4c1be5acb3a4a7c8d7 | [
"BSD-3-Clause"
] | 6 | 2021-11-05T13:42:07.000Z | 2021-12-18T20:50:31.000Z | tx2/cache.py | ORNL/tx2 | c2365580a994d35b31ec5a4c1be5acb3a4a7c8d7 | [
"BSD-3-Clause"
] | 2 | 2020-12-13T02:39:21.000Z | 2021-02-08T15:27:33.000Z | """ Functions to cut down on boilerplate accessing cached objects """
import os
import pickle
import json
import logging
import numpy as np
def check(filepath: str, overwrite: bool) -> bool:
"""Returns true if we have a cached version that we should load"""
if os.path.exists(filepath) and not overwrite:
... | 24.507692 | 70 | 0.654112 | 225 | 1,593 | 4.568889 | 0.342222 | 0.096304 | 0.062257 | 0.055447 | 0.234436 | 0.153697 | 0 | 0 | 0 | 0 | 0 | 0.002427 | 0.224105 | 1,593 | 64 | 71 | 24.890625 | 0.829288 | 0.154426 | 0 | 0.153846 | 0 | 0 | 0.042618 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.128205 | 0 | 0.564103 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7061336498595f90be334a3bf779790af7e2422 | 22,362 | py | Python | avionics/bootloader/parallel_bootloader.py | leozz37/makani | c94d5c2b600b98002f932e80a313a06b9285cc1b | [
"Apache-2.0"
] | 1,178 | 2020-09-10T17:15:42.000Z | 2022-03-31T14:59:35.000Z | avionics/bootloader/parallel_bootloader.py | leozz37/makani | c94d5c2b600b98002f932e80a313a06b9285cc1b | [
"Apache-2.0"
] | 1 | 2020-05-22T05:22:35.000Z | 2020-05-22T05:22:35.000Z | avionics/bootloader/parallel_bootloader.py | leozz37/makani | c94d5c2b600b98002f932e80a313a06b9285cc1b | [
"Apache-2.0"
] | 107 | 2020-09-10T17:29:30.000Z | 2022-03-18T09:00:14.000Z | #!/usr/bin/python -u
# Copyright 2020 Makani Technologies LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | 34.777605 | 80 | 0.663223 | 2,809 | 22,362 | 5.131719 | 0.207547 | 0.015262 | 0.007492 | 0.008117 | 0.141311 | 0.078321 | 0.045647 | 0.040791 | 0.026916 | 0.006382 | 0 | 0.006473 | 0.24005 | 22,362 | 642 | 81 | 34.831776 | 0.841768 | 0.183034 | 0 | 0.167849 | 0 | 0 | 0.068869 | 0.001405 | 0 | 0 | 0 | 0.001558 | 0.021277 | 0 | null | null | 0.007092 | 0.028369 | null | null | 0.018913 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c709d3cca81aed32416e0368c2e4027240bbac6f | 4,050 | py | Python | release/stubs.min/Autodesk/Revit/DB/Structure/__init___parts/LoadBase.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Autodesk/Revit/DB/Structure/__init___parts/LoadBase.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Autodesk/Revit/DB/Structure/__init___parts/LoadBase.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | class LoadBase(Element, IDisposable):
""" The LoadBase object is the base class for all load objects within the Autodesk Revit API. """
def Dispose(self):
""" Dispose(self: Element,A_0: bool) """
pass
def getBoundingBox(self, *args):
""" getBoundingBox(self: Element,view: V... | 21.315789 | 221 | 0.616049 | 450 | 4,050 | 5.411111 | 0.22 | 0.135524 | 0.081314 | 0.108419 | 0.372895 | 0.342505 | 0.321971 | 0.321971 | 0.321971 | 0.321971 | 0 | 0.000339 | 0.271852 | 4,050 | 189 | 222 | 21.428571 | 0.825365 | 0.225926 | 0 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.181818 | 0 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c70e671430ce6115fc0034bae10fe329a0249ac9 | 517 | py | Python | spongeauth/accounts/migrations/0013_user_discord_id.py | PowerNukkit/OreAuth | 96a2926c9601fce6fac471bdb997077f07e8bf9a | [
"MIT"
] | 1 | 2021-01-14T19:57:27.000Z | 2021-01-14T19:57:27.000Z | spongeauth/accounts/migrations/0013_user_discord_id.py | PowerNukkit/OreAuth | 96a2926c9601fce6fac471bdb997077f07e8bf9a | [
"MIT"
] | 13 | 2021-02-23T18:22:25.000Z | 2022-02-07T18:37:02.000Z | spongeauth/accounts/migrations/0013_user_discord_id.py | PowerNukkit/OreAuth | 96a2926c9601fce6fac471bdb997077f07e8bf9a | [
"MIT"
] | null | null | null | # Generated by Django 2.1.5 on 2019-02-13 14:28
import accounts.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("accounts", "0012_auto_20190102_1545")]
operations = [
migrations.AddField(
model_name="user",
name="discor... | 25.85 | 121 | 0.636364 | 58 | 517 | 5.517241 | 0.724138 | 0.09375 | 0.0875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088542 | 0.257253 | 517 | 19 | 122 | 27.210526 | 0.744792 | 0.087041 | 0 | 0 | 1 | 0 | 0.121277 | 0.048936 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c70eeef81e34965644d1efec83a6576e67f3513e | 2,305 | py | Python | fhir/resources/tests/test_invoice.py | cstoltze/fhir.resources | 52f99738935b7313089d89daf94d73ce7d167c9d | [
"BSD-3-Clause"
] | 144 | 2019-05-08T14:24:43.000Z | 2022-03-30T02:37:11.000Z | fhir/resources/tests/test_invoice.py | cstoltze/fhir.resources | 52f99738935b7313089d89daf94d73ce7d167c9d | [
"BSD-3-Clause"
] | 82 | 2019-05-13T17:43:13.000Z | 2022-03-30T16:45:17.000Z | fhir/resources/tests/test_invoice.py | cstoltze/fhir.resources | 52f99738935b7313089d89daf94d73ce7d167c9d | [
"BSD-3-Clause"
] | 48 | 2019-04-04T14:14:53.000Z | 2022-03-30T06:07:31.000Z | # -*- coding: utf-8 -*-
"""
Profile: http://hl7.org/fhir/StructureDefinition/Invoice
Release: R4
Version: 4.0.1
Build ID: 9346c8cc45
Last updated: 2019-11-01T09:29:23.356+11:00
"""
from pydantic.validators import bytes_validator # noqa: F401
from .. import fhirtypes # noqa: F401
from .. import invoice
def impl_inv... | 37.177419 | 88 | 0.691106 | 300 | 2,305 | 5.25 | 0.436667 | 0.126984 | 0.043175 | 0.055873 | 0.130159 | 0.062857 | 0.062857 | 0 | 0 | 0 | 0 | 0.05323 | 0.160521 | 2,305 | 61 | 89 | 37.786885 | 0.760724 | 0.141432 | 0 | 0 | 0 | 0 | 0.238485 | 0.024053 | 0 | 0 | 0 | 0 | 0.585366 | 1 | 0.04878 | false | 0 | 0.073171 | 0 | 0.121951 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c717a7cf43742aa84d2c518a633d009ae2c80f69 | 1,558 | py | Python | src/pysqldump/adapters/connectors.py | tongyeouki/sql-converter | 28039fe16b43f443925447d06d682f6aa8c3a909 | [
"MIT"
] | 1 | 2020-06-12T03:32:35.000Z | 2020-06-12T03:32:35.000Z | src/pysqldump/adapters/connectors.py | tongyeouki/sql-converter | 28039fe16b43f443925447d06d682f6aa8c3a909 | [
"MIT"
] | null | null | null | src/pysqldump/adapters/connectors.py | tongyeouki/sql-converter | 28039fe16b43f443925447d06d682f6aa8c3a909 | [
"MIT"
] | 1 | 2020-06-12T03:32:15.000Z | 2020-06-12T03:32:15.000Z | import pymysql
import sqlite3
import abc
from pysqldump.settings.base import get_config
class AbstractConnector(abc.ABC): # pragma: no cover
def __init__(self, config: str = "config.yaml"):
self.config = get_config(config)
@abc.abstractmethod
def connect(self):
pass
@abc.abstractmet... | 27.333333 | 75 | 0.587933 | 171 | 1,558 | 5.245614 | 0.315789 | 0.100334 | 0.101449 | 0.100334 | 0.341137 | 0.182832 | 0 | 0 | 0 | 0 | 0 | 0.002705 | 0.28819 | 1,558 | 56 | 76 | 27.821429 | 0.806132 | 0.01027 | 0 | 0.422222 | 0 | 0 | 0.063636 | 0.017532 | 0 | 0 | 0 | 0 | 0 | 1 | 0.177778 | false | 0.066667 | 0.088889 | 0.066667 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c71b4d82b1b780254544eeb8b9f8992204b5f096 | 8,452 | py | Python | Homography_test.py | jasonchan117/6-PACK | 501753c83e4173dc67610e8f6e58832f5673e8a4 | [
"MIT"
] | null | null | null | Homography_test.py | jasonchan117/6-PACK | 501753c83e4173dc67610e8f6e58832f5673e8a4 | [
"MIT"
] | null | null | null | Homography_test.py | jasonchan117/6-PACK | 501753c83e4173dc67610e8f6e58832f5673e8a4 | [
"MIT"
] | null | null | null | import argparse
import os
import random
import time
import numpy as np
import torch
import torch.nn as nn
import torch.nn.parallel
import torch.backends.cudnn as cudnn
import torch.optim as optim
import torch.utils.data
import torchvision.datasets as dset
import torchvision.transforms as transforms
import torchvision.u... | 69.85124 | 189 | 0.374231 | 753 | 8,452 | 4.023904 | 0.219124 | 0.055446 | 0.061716 | 0.010561 | 0.228383 | 0.1967 | 0.151155 | 0.139934 | 0.110891 | 0.110891 | 0 | 0.036068 | 0.534193 | 8,452 | 120 | 190 | 70.433333 | 0.733553 | 0.004733 | 0 | 0.127273 | 0 | 0 | 0.042093 | 0.010583 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.218182 | 0 | 0.218182 | 0.009091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c722c935b64ae9d15c994c4ab615630a0b46a91f | 1,875 | py | Python | demisto_sdk/commands/generate_test_playbook/tests/test_playbook_generator_test.py | kfirstri/demisto-sdk | 59d99cf4b5016be8a4a333c2541418e1612549e1 | [
"MIT"
] | null | null | null | demisto_sdk/commands/generate_test_playbook/tests/test_playbook_generator_test.py | kfirstri/demisto-sdk | 59d99cf4b5016be8a4a333c2541418e1612549e1 | [
"MIT"
] | null | null | null | demisto_sdk/commands/generate_test_playbook/tests/test_playbook_generator_test.py | kfirstri/demisto-sdk | 59d99cf4b5016be8a4a333c2541418e1612549e1 | [
"MIT"
] | null | null | null | import io
import os
import shutil
from demisto_sdk.commands.common.legacy_git_tools import git_path
from demisto_sdk.commands.generate_test_playbook.test_playbook_generator import \
PlaybookTestsGenerator
def load_file_from_test_dir(filename):
with io.open(os.path.join(f'{git_path()}/demisto_sdk/commands/tes... | 36.057692 | 99 | 0.674667 | 218 | 1,875 | 5.555046 | 0.33945 | 0.079273 | 0.179191 | 0.029728 | 0.300578 | 0.267547 | 0.180017 | 0.163501 | 0.125516 | 0.125516 | 0 | 0.002065 | 0.225067 | 1,875 | 51 | 100 | 36.764706 | 0.831383 | 0.005333 | 0 | 0.102564 | 1 | 0 | 0.179818 | 0.119163 | 0 | 0 | 0 | 0 | 0.025641 | 1 | 0.102564 | false | 0 | 0.128205 | 0 | 0.333333 | 0.051282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c732503453b470dd1238c9ebcdf44ace0ec4e7e0 | 6,304 | py | Python | taxi/taxi/doctype/assign_commission_rule/assign_commission_rule.py | bghayad/taxi | 1d00bc7f48e9fe4d59cb2c9a4a813877b68bd090 | [
"MIT"
] | null | null | null | taxi/taxi/doctype/assign_commission_rule/assign_commission_rule.py | bghayad/taxi | 1d00bc7f48e9fe4d59cb2c9a4a813877b68bd090 | [
"MIT"
] | null | null | null | taxi/taxi/doctype/assign_commission_rule/assign_commission_rule.py | bghayad/taxi | 1d00bc7f48e9fe4d59cb2c9a4a813877b68bd090 | [
"MIT"
] | 4 | 2018-10-19T18:49:03.000Z | 2020-06-08T10:10:04.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2018, Bilal Ghayad and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document, _
from datetime import datetime
from datetime import timedelta
class AssignCommissionRule(Do... | 46.352941 | 167 | 0.65514 | 831 | 6,304 | 4.802647 | 0.161252 | 0.050113 | 0.02205 | 0.034077 | 0.666249 | 0.626409 | 0.620897 | 0.597093 | 0.58657 | 0.567527 | 0 | 0.016599 | 0.216371 | 6,304 | 135 | 168 | 46.696296 | 0.791296 | 0.380869 | 0 | 0.457627 | 0 | 0.050847 | 0.463768 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.084746 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c73543403b5d6157ef2d35ea701f733da2658ac4 | 1,165 | py | Python | nexinfosys/command_executors/specification/dummy_command.py | MAGIC-nexus/nis-backend | dd425925321134f66884f60b202a59b38b7786a0 | [
"BSD-3-Clause"
] | 6 | 2019-05-31T23:02:30.000Z | 2022-01-07T22:56:50.000Z | nexinfosys/command_executors/specification/dummy_command.py | ENVIRO-Module/nis-backend | fd86cf30f79f53cdccddd2a5479507d32f914d4e | [
"BSD-3-Clause"
] | 2 | 2021-12-03T18:22:42.000Z | 2021-12-13T19:57:15.000Z | nexinfosys/command_executors/specification/dummy_command.py | ENVIRO-Module/nis-backend | fd86cf30f79f53cdccddd2a5479507d32f914d4e | [
"BSD-3-Clause"
] | 3 | 2019-04-05T16:45:09.000Z | 2021-03-17T12:05:44.000Z | import json
from nexinfosys.model_services import IExecutableCommand
class DummyCommand(IExecutableCommand):
def __init__(self, name: str):
self._name = name
self._var_name = None
self._description = None
def execute(self, state: "State"):
""" The execution creates an instance... | 30.657895 | 116 | 0.635193 | 135 | 1,165 | 5.259259 | 0.42963 | 0.101408 | 0.061972 | 0.042254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001199 | 0.28412 | 1,165 | 38 | 117 | 30.657895 | 0.85012 | 0.176824 | 0 | 0 | 0 | 0 | 0.053706 | 0 | 0 | 0 | 0 | 0.026316 | 0 | 1 | 0.2 | false | 0.04 | 0.08 | 0.08 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c737556d7eb9f809887e9e62431873230c63a92b | 1,134 | py | Python | src/index.py | sokmontrey/neural-tinet | 6855035a8136498b864054899e88712c7962c8c1 | [
"MIT"
] | 1 | 2022-03-02T19:05:25.000Z | 2022-03-02T19:05:25.000Z | src/index.py | sokmontrey/neural-tinet | 6855035a8136498b864054899e88712c7962c8c1 | [
"MIT"
] | null | null | null | src/index.py | sokmontrey/neural-tinet | 6855035a8136498b864054899e88712c7962c8c1 | [
"MIT"
] | null | null | null | #example
import numpy as np
import math
import matplotlib.pyplot as plt
from model import Model
from activation import Activation
from loss import Loss
from gradient import Gradient
from optimizer import Optimizer
#create some activations function that will be used
act = Activation()
ReLU = act.ReLU
Tanh = act.Tanh
... | 29.076923 | 79 | 0.765432 | 189 | 1,134 | 4.57672 | 0.444444 | 0.024277 | 0.006936 | 0.023121 | 0.024277 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021921 | 0.155203 | 1,134 | 38 | 80 | 29.842105 | 0.881002 | 0.556437 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.470588 | 0 | 0.470588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c73c7bfcfb114a6021fe48e6dddcada1104c5e58 | 336 | py | Python | Text/Caesar's cipher/tests.py | fossabot/IdeaBag2-Solutions | 73b554d9796510fc86e5fc55016732aa866266c6 | [
"MIT"
] | 10 | 2018-07-06T22:05:45.000Z | 2021-05-22T11:29:04.000Z | Text/Caesar's cipher/tests.py | jarik-marwede/IdeaBag2-Projects | c5fe9524ef03a6ebc098ab8aaee7448f5b877828 | [
"MIT"
] | 22 | 2018-07-13T17:16:43.000Z | 2022-01-11T11:16:08.000Z | Text/Caesar's cipher/tests.py | jarik-marwede/IdeaBag2-Projects | c5fe9524ef03a6ebc098ab8aaee7448f5b877828 | [
"MIT"
] | 1 | 2020-06-13T18:53:51.000Z | 2020-06-13T18:53:51.000Z | #!/usr/bin/env python3
import unittest
from caesars_cipher import decrypt, encrypt
class Test(unittest.TestCase):
def test_encrypt(self):
self.assertEqual(encrypt("hello", 13), "uryyb")
def test_decrypt(self):
self.assertEqual(decrypt("uryyb", 13), "hello")
if __name__ == "__main__":
... | 18.666667 | 55 | 0.681548 | 41 | 336 | 5.317073 | 0.560976 | 0.06422 | 0.174312 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 0.181548 | 336 | 17 | 56 | 19.764706 | 0.774545 | 0.0625 | 0 | 0 | 0 | 0 | 0.089172 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c73d7943c098ff300382385310e801057c92524f | 3,211 | py | Python | plyto/plyto.py | jupytercalpoly/plyto | bd1cb69a101bc351f128314d77650fc675d14eb3 | [
"BSD-3-Clause"
] | 8 | 2018-08-06T21:03:17.000Z | 2020-01-02T16:49:10.000Z | plyto/plyto.py | jupytercalpoly/plyto | bd1cb69a101bc351f128314d77650fc675d14eb3 | [
"BSD-3-Clause"
] | null | null | null | plyto/plyto.py | jupytercalpoly/plyto | bd1cb69a101bc351f128314d77650fc675d14eb3 | [
"BSD-3-Clause"
] | 4 | 2018-08-06T16:19:00.000Z | 2021-04-17T16:01:43.000Z | from ipykernel.comm import Comm, CommManager
from IPython import get_ipython
class PlytoAPI:
"""
A python API for visualizing iterative datasets
:param spec: an Altair spec describing the desired visualization
:param size: the size of each step in the dataset
:param total_steps: the number of st... | 28.669643 | 91 | 0.617253 | 395 | 3,211 | 4.855696 | 0.179747 | 0.057351 | 0.036496 | 0.027112 | 0.258081 | 0.213764 | 0.213764 | 0.173097 | 0.173097 | 0.13243 | 0 | 0.005376 | 0.304889 | 3,211 | 112 | 92 | 28.669643 | 0.853943 | 0.360947 | 0 | 0 | 0 | 0 | 0.045608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.022222 | 0.044444 | 0 | 0.288889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c73f3043d60bb109a74487934761629e1bf2dddf | 3,509 | py | Python | Codigos_python/Graficos/Ruido_GanhoEM/Estudo_ruido_GanhoEM_Propagado_30MHz.py | DBernardes/Macro-SPARC4-CCD-cameras | 08eb5b331c993d9f5b360bc2961972ded56c171d | [
"MIT"
] | null | null | null | Codigos_python/Graficos/Ruido_GanhoEM/Estudo_ruido_GanhoEM_Propagado_30MHz.py | DBernardes/Macro-SPARC4-CCD-cameras | 08eb5b331c993d9f5b360bc2961972ded56c171d | [
"MIT"
] | null | null | null | Codigos_python/Graficos/Ruido_GanhoEM/Estudo_ruido_GanhoEM_Propagado_30MHz.py | DBernardes/Macro-SPARC4-CCD-cameras | 08eb5b331c993d9f5b360bc2961972ded56c171d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[1]:
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
import math
from scipy.optimize import curve_fit
from Funcoes_Bib import splitPlusMinus
df = pd.read_excel ('C:\Users\observer\Desktop\Ensaios_e_Caracterizacoes\Planilhas\Ganho_EM\HSS30MHz\EMPropaga... | 37.731183 | 154 | 0.656597 | 627 | 3,509 | 3.655502 | 0.226475 | 0.058028 | 0.078534 | 0.039267 | 0.636562 | 0.618237 | 0.589878 | 0.589878 | 0.589878 | 0.566318 | 0 | 0.059821 | 0.109148 | 3,509 | 92 | 155 | 38.141304 | 0.673385 | 0.091479 | 0 | 0.4 | 0 | 0.090909 | 0.309801 | 0.030255 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.109091 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c73f9f1104f98e3100245de25b39b8b10c3f3ae4 | 240 | py | Python | run.py | KengoWada/pandas_assignment | 4ce819b8fde693dc2c3b97c6daa2b4465775f14f | [
"MIT"
] | null | null | null | run.py | KengoWada/pandas_assignment | 4ce819b8fde693dc2c3b97c6daa2b4465775f14f | [
"MIT"
] | null | null | null | run.py | KengoWada/pandas_assignment | 4ce819b8fde693dc2c3b97c6daa2b4465775f14f | [
"MIT"
] | null | null | null | import pandas as pd
import csv
url = 'https://raw.githubusercontent.com/cs109/2014_data/master/countries.csv'
data = pd.read_csv(url)
c = data[data.Region == 'SOUTH AMERICA']
(c.Country).to_csv('countries.csv', index=False, header=True) | 24 | 78 | 0.741667 | 38 | 240 | 4.605263 | 0.684211 | 0.068571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032407 | 0.1 | 240 | 10 | 79 | 24 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0.39834 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c73faf54fb39c581fd9577a49f188afe1d7d345b | 5,742 | py | Python | GmailWrapper_JE/venv/Lib/site-packages/pyasn1_modules/rfc5990.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | 2 | 2022-01-06T11:52:57.000Z | 2022-01-09T01:53:56.000Z | GmailWrapper_JE/venv/Lib/site-packages/pyasn1_modules/rfc5990.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | GmailWrapper_JE/venv/Lib/site-packages/pyasn1_modules/rfc5990.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | #
# This file is part of pyasn1-modules software.
#
# Created by Russ Housley with assistance from asn1ate v.0.6.0.
#
# Copyright (c) 2019, Vigil Security, LLC
# License: http://snmplabs.com/pyasn1/license.html
#
# Use of the RSA-KEM Key Transport Algorithm in the CMS
#
# ASN.1 source from:
# https://www.rfc... | 24.12605 | 77 | 0.706722 | 700 | 5,742 | 5.598571 | 0.245714 | 0.047716 | 0.026793 | 0.035213 | 0.103343 | 0.051289 | 0.047461 | 0.047461 | 0.043634 | 0.017607 | 0 | 0.099067 | 0.179032 | 5,742 | 237 | 78 | 24.227848 | 0.732287 | 0.160223 | 0 | 0.090909 | 0 | 0 | 0.062143 | 0.004611 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008264 | false | 0.090909 | 0.033058 | 0 | 0.140496 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c74e7bdd36f23629bb67213ca0f306bedfaea259 | 355 | py | Python | bscpylgtv/storage_proto.py | chros73/bscpylgtv | 0ddd475f4b46dea8d521758c8c81d1a811020730 | [
"MIT"
] | 17 | 2021-10-02T02:24:22.000Z | 2022-03-06T22:22:06.000Z | bscpylgtv/storage_proto.py | thecode/bscpylgtv | 5a332b3edb689544a3d9279404e39bdb011a864f | [
"MIT"
] | 2 | 2021-12-17T08:03:48.000Z | 2021-12-25T12:40:06.000Z | bscpylgtv/storage_proto.py | thecode/bscpylgtv | 5a332b3edb689544a3d9279404e39bdb011a864f | [
"MIT"
] | 1 | 2021-12-16T10:54:03.000Z | 2021-12-16T10:54:03.000Z | from typing import Protocol, runtime_checkable
@runtime_checkable
class StorageProto(Protocol):
async def set_key(self, key, val):
"""Set the key value pair into storage."""
async def get_key(self, key):
"""Get value of key from storage."""
async def list_keys(self):
"""Display al... | 27.307692 | 55 | 0.670423 | 49 | 355 | 4.755102 | 0.530612 | 0.103004 | 0.085837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222535 | 355 | 12 | 56 | 29.583333 | 0.844203 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c75024769bbc2b849050e96b3718fe605820bafc | 3,566 | py | Python | tools/fixer.py | mmatl/thingiverse-dataset | a4ae94a247ddf5ccdb3f342cc0f6275c0818b112 | [
"MIT"
] | 5 | 2018-05-17T21:18:18.000Z | 2021-01-15T19:52:51.000Z | tools/fixer.py | mmatl/thingset | a4ae94a247ddf5ccdb3f342cc0f6275c0818b112 | [
"MIT"
] | null | null | null | tools/fixer.py | mmatl/thingset | a4ae94a247ddf5ccdb3f342cc0f6275c0818b112 | [
"MIT"
] | null | null | null | #!/usr/bin/python
"""A script for fixing the dataset.
"""
import argparse
import logging
import re
from autolab_core import YamlConfig, SimilarityTransform
from visualization import Visualizer3D as vis
from thingset import ThingiverseDataset, Thing
def main():
# initialize logging
logging.getLogger().setLeve... | 31.839286 | 99 | 0.576837 | 424 | 3,566 | 4.662736 | 0.34434 | 0.031866 | 0.036419 | 0.045524 | 0.156297 | 0.074861 | 0.028326 | 0 | 0 | 0 | 0 | 0.030833 | 0.326977 | 3,566 | 111 | 100 | 32.126126 | 0.792917 | 0.097869 | 0 | 0.088608 | 0 | 0 | 0.102937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.075949 | null | null | 0.025316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c751edf8408def7f51024c0ef08b391c8b3932c5 | 2,260 | py | Python | tests/test_linkedin_api.py | bahaahassanieh/linkedin-api | 3fbec3f50405e756677c87467ec788b3e3fa1167 | [
"MIT"
] | 1 | 2019-04-29T07:03:00.000Z | 2019-04-29T07:03:00.000Z | tests/test_linkedin_api.py | bahaahassanieh/linkedin-api | 3fbec3f50405e756677c87467ec788b3e3fa1167 | [
"MIT"
] | null | null | null | tests/test_linkedin_api.py | bahaahassanieh/linkedin-api | 3fbec3f50405e756677c87467ec788b3e3fa1167 | [
"MIT"
] | null | null | null | import pytest
import json
import os
from linkedin_api import Linkedin
TEST_PROFILE_ID = "ACoAABQ11fIBQLGQbB1V1XPBZJsRwfK5r1U2Rzw"
TEST_CONVERSATION_ID = "6419123050314375168"
@pytest.fixture
def linkedin():
return Linkedin(
os.environ["LINKEDIN_USERNAME"],
os.environ["LINKEDIN_PASSWORD"],
... | 23.789474 | 81 | 0.755752 | 268 | 2,260 | 6.048507 | 0.242537 | 0.060457 | 0.06169 | 0.058606 | 0.023442 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024802 | 0.161504 | 2,260 | 94 | 82 | 24.042553 | 0.830079 | 0 | 0 | 0.065574 | 0 | 0 | 0.092961 | 0.027888 | 0 | 0 | 0 | 0 | 0.229508 | 1 | 0.245902 | false | 0.016393 | 0.065574 | 0.016393 | 0.327869 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c753000c4e25b7c900b9df159d15079ef0047870 | 6,628 | py | Python | halotools/mock_observables/large_scale_density/large_scale_density_spherical_annulus.py | pllim/halotools | 6499cff09e7e0f169e4f425ee265403f6be816e8 | [
"BSD-3-Clause"
] | 83 | 2015-01-15T14:54:16.000Z | 2021-12-09T11:28:02.000Z | halotools/mock_observables/large_scale_density/large_scale_density_spherical_annulus.py | pllim/halotools | 6499cff09e7e0f169e4f425ee265403f6be816e8 | [
"BSD-3-Clause"
] | 579 | 2015-01-14T15:57:37.000Z | 2022-01-13T18:58:44.000Z | halotools/mock_observables/large_scale_density/large_scale_density_spherical_annulus.py | pllim/halotools | 6499cff09e7e0f169e4f425ee265403f6be816e8 | [
"BSD-3-Clause"
] | 70 | 2015-01-14T15:15:58.000Z | 2021-12-22T18:18:31.000Z | """
Module containing functions used to determine various ways of quantifying
the large-scale density of a set of points.
"""
from __future__ import absolute_import, division, print_function, unicode_literals
import numpy as np
from ..pair_counters import npairs_per_object_3d
from ...custom_exceptions import Halotoo... | 41.685535 | 109 | 0.697194 | 895 | 6,628 | 5.003352 | 0.306145 | 0.045556 | 0.026798 | 0.03439 | 0.275569 | 0.222421 | 0.209915 | 0.175971 | 0.175971 | 0.160339 | 0 | 0.01026 | 0.235365 | 6,628 | 158 | 110 | 41.949367 | 0.873323 | 0.556578 | 0 | 0.22807 | 0 | 0 | 0.11086 | 0.013952 | 0 | 0 | 0 | 0 | 0.035088 | 1 | 0.035088 | false | 0.052632 | 0.070175 | 0 | 0.157895 | 0.017544 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c754b21149c4d69b692cab76b298104aacbc58a3 | 477 | py | Python | backend/fleet_management/migrations/0009_car_country.py | OtisRed/pah-fm | 68a306fce5593a6f79711fa473a91bc8163b01df | [
"MIT"
] | 8 | 2019-08-09T11:06:16.000Z | 2021-10-05T14:56:31.000Z | backend/fleet_management/migrations/0009_car_country.py | OtisRed/pah-fm | 68a306fce5593a6f79711fa473a91bc8163b01df | [
"MIT"
] | 382 | 2018-10-17T19:05:30.000Z | 2022-02-10T07:09:45.000Z | backend/fleet_management/migrations/0009_car_country.py | OtisRed/pah-fm | 68a306fce5593a6f79711fa473a91bc8163b01df | [
"MIT"
] | 45 | 2018-10-17T17:04:04.000Z | 2021-10-05T14:30:35.000Z | # Generated by Django 2.1.2 on 2019-07-24 17:23
from django.db import migrations
import django_countries.fields
class Migration(migrations.Migration):
dependencies = [
("fleet_management", "0008_user_country"),
]
operations = [
migrations.AddField(
model_name="car",
... | 22.714286 | 83 | 0.628931 | 52 | 477 | 5.615385 | 0.730769 | 0.10274 | 0.143836 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05698 | 0.264151 | 477 | 20 | 84 | 23.85 | 0.774929 | 0.09434 | 0 | 0 | 1 | 0 | 0.104651 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c75a5d74ae5cef95afa655fe588eac78b418da91 | 2,221 | py | Python | tests/fugue_spark/utils/test_convert.py | gityow/fugue | e975625b33766d8b9dc64c6954871569b59367ec | [
"Apache-2.0"
] | null | null | null | tests/fugue_spark/utils/test_convert.py | gityow/fugue | e975625b33766d8b9dc64c6954871569b59367ec | [
"Apache-2.0"
] | null | null | null | tests/fugue_spark/utils/test_convert.py | gityow/fugue | e975625b33766d8b9dc64c6954871569b59367ec | [
"Apache-2.0"
] | null | null | null | from fugue_spark._utils.convert import (to_cast_expression, to_schema,
to_select_expression, to_spark_schema)
from pytest import raises
def test_schema_conversion(spark_session):
def test(expr):
assert to_schema(to_spark_schema(expr)) == expr
test("a:int,b:long,... | 43.54902 | 83 | 0.608735 | 364 | 2,221 | 3.546703 | 0.178571 | 0.074361 | 0.069713 | 0.10457 | 0.60031 | 0.58172 | 0.512781 | 0.441518 | 0.347792 | 0.261038 | 0 | 0.001667 | 0.189554 | 2,221 | 50 | 84 | 44.42 | 0.715556 | 0.041423 | 0 | 0.1 | 0 | 0.025 | 0.261524 | 0.0381 | 0 | 0 | 0 | 0.02 | 0.35 | 1 | 0.1 | false | 0 | 0.05 | 0 | 0.15 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c75de827a8ddc6e34be8e58514120606a3f4c40b | 2,921 | py | Python | flasher/checksum.py | alu96/coastermelt | 8b62bad5dddfbe3f7555dafbc791158f75b14214 | [
"MIT"
] | null | null | null | flasher/checksum.py | alu96/coastermelt | 8b62bad5dddfbe3f7555dafbc791158f75b14214 | [
"MIT"
] | null | null | null | flasher/checksum.py | alu96/coastermelt | 8b62bad5dddfbe3f7555dafbc791158f75b14214 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# Read or "fix" signature and checksum in MT1939 firmware image.
# - Micah Elizabeth Scott 2014. This file is released into the public domain.
#
import struct, sys, os, random
class Firmware:
def __init__(self, filename=None):
if filename:
self.open(filename)
def ... | 31.408602 | 95 | 0.55837 | 376 | 2,921 | 4.257979 | 0.409574 | 0.039975 | 0.022486 | 0.022486 | 0.04872 | 0.037477 | 0.037477 | 0.037477 | 0 | 0 | 0 | 0.056974 | 0.302978 | 2,921 | 92 | 96 | 31.75 | 0.729371 | 0.054433 | 0 | 0.059701 | 0 | 0 | 0.188974 | 0 | 0 | 0 | 0.032644 | 0 | 0 | 0 | null | null | 0.014925 | 0.014925 | null | null | 0.149254 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c75ee9e99ef552ef2718dc70c4709fbcf2158bb6 | 5,224 | py | Python | 11_SPARKLE/Linearized_ARXbox/solve_equations.py | hellman/thesis | 6ba1c2b241e63c07cf76108481c1b67f21a50f12 | [
"MIT"
] | 19 | 2019-05-16T19:55:41.000Z | 2021-12-31T15:36:12.000Z | 11_SPARKLE/Linearized_ARXbox/solve_equations.py | hellman/thesis | 6ba1c2b241e63c07cf76108481c1b67f21a50f12 | [
"MIT"
] | 1 | 2021-08-09T11:26:45.000Z | 2021-08-09T11:26:45.000Z | 11_SPARKLE/Linearized_ARXbox/solve_equations.py | hellman/thesis | 6ba1c2b241e63c07cf76108481c1b67f21a50f12 | [
"MIT"
] | 1 | 2021-08-05T19:40:16.000Z | 2021-08-05T19:40:16.000Z | from sage.all import *
from common import *
try:
# zero carry pattern
cid = int(sys.argv[1])
C = CS[cid]
ES_INT = 0, 0, 0, 0
ES_STR = ":".join("%08x" % e for e in ES_INT)
fname = "eqs/%d_%08x_%s.txt" % (BITS, C, ES_STR)
except ValueError:
# arbitrary carry pattern
fname = sys.argv[1]
... | 27.067358 | 89 | 0.487366 | 730 | 5,224 | 3.452055 | 0.226027 | 0.006349 | 0.009524 | 0.012698 | 0.106746 | 0.086508 | 0.062698 | 0.062698 | 0.048413 | 0.019048 | 0 | 0.033441 | 0.347435 | 5,224 | 192 | 90 | 27.208333 | 0.705779 | 0.039051 | 0 | 0.11039 | 0 | 0 | 0.058072 | 0.00459 | 0 | 0 | 0 | 0 | 0.032468 | 0 | null | null | 0 | 0.019481 | null | null | 0.084416 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.