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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
679df46b6a58514a4e0515a3bf218bab3a96b82d | 384 | py | Python | Solutions/findTheDiscount.py | Ares358/Python-Thunder | 5a34240f61f169fe1084a46a027705b5cc631db6 | [
"MIT"
] | 81 | 2020-09-25T15:02:11.000Z | 2020-10-12T14:20:31.000Z | Solutions/findTheDiscount.py | sahilsingh2402/Python-Thunder | 22bc61dd463f8a1afdd3f3eefb5684e441c2f398 | [
"MIT"
] | 196 | 2020-09-25T13:52:13.000Z | 2020-10-12T20:20:00.000Z | Solutions/findTheDiscount.py | sahilsingh2402/Python-Thunder | 22bc61dd463f8a1afdd3f3eefb5684e441c2f398 | [
"MIT"
] | 209 | 2020-09-25T16:15:46.000Z | 2020-10-12T20:08:08.000Z | '''
Problem Statement: Create a function that takes two arguments: the final price and the discount percentage as integers and returns the final price after the discount.
Problem Link: https://edabit.com/challenge/L4Hevck84exPwe4wo
'''
function dis(price, discount) {
price_after_discount = price - (discount... | 32 | 167 | 0.75 | 50 | 384 | 5.68 | 0.6 | 0.105634 | 0.091549 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024922 | 0.164063 | 384 | 11 | 168 | 34.909091 | 0.859813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
67a0d571f2d176af55a52a4fe5abd70589dd3afd | 8,122 | py | Python | pysnmp/CISCO-ENTITY-SENSOR-CAPABILITY.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/CISCO-ENTITY-SENSOR-CAPABILITY.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/CISCO-ENTITY-SENSOR-CAPABILITY.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CISCO-ENTITY-SENSOR-CAPABILITY (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-ENTITY-SENSOR-CAPABILITY
# Produced by pysmi-0.3.4 at Mon Apr 29 17:39:53 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python ... | 101.525 | 873 | 0.753878 | 848 | 8,122 | 7.21816 | 0.200472 | 0.015684 | 0.074498 | 0.101944 | 0.542885 | 0.492076 | 0.482274 | 0.482274 | 0.482274 | 0.480477 | 0 | 0.136364 | 0.111549 | 8,122 | 79 | 874 | 102.810127 | 0.71189 | 0.043585 | 0 | 0.333333 | 0 | 0.041667 | 0.204408 | 0.009537 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.097222 | 0 | 0.097222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
67b154e04449fe4ab14275d7fa1e790855a202fd | 2,627 | py | Python | userena/contrib/umessages/templatetags/umessages_tags.py | matachi/django-userena | 0f8f545fbaef91477e5fe7b658cb99f6d39d7ffd | [
"BSD-3-Clause"
] | 3 | 2015-11-30T05:00:09.000Z | 2021-09-21T00:03:57.000Z | userena/contrib/umessages/templatetags/umessages_tags.py | matachi/django-userena | 0f8f545fbaef91477e5fe7b658cb99f6d39d7ffd | [
"BSD-3-Clause"
] | null | null | null | userena/contrib/umessages/templatetags/umessages_tags.py | matachi/django-userena | 0f8f545fbaef91477e5fe7b658cb99f6d39d7ffd | [
"BSD-3-Clause"
] | 2 | 2016-09-18T01:20:06.000Z | 2021-09-21T00:01:54.000Z | from django import template
from userena.contrib.umessages.models import MessageRecipient
import re
register = template.Library()
class MessageCount(template.Node):
def __init__(self, um_from_user, var_name, um_to_user=None):
self.user = template.Variable(um_from_user)
self.var_name = var_name
... | 30.546512 | 99 | 0.640655 | 325 | 2,627 | 4.916923 | 0.236923 | 0.097622 | 0.060075 | 0.078849 | 0.71965 | 0.667084 | 0.667084 | 0.366708 | 0.335419 | 0.335419 | 0 | 0.00207 | 0.26456 | 2,627 | 85 | 100 | 30.905882 | 0.825052 | 0 | 0 | 0.428571 | 0 | 0 | 0.067416 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.061224 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
67b3e647a2f335f4fcc3c3a1aa0d21a64e09f2af | 3,109 | py | Python | py/test/pytests/compass.py | arccode/factory | a1b0fccd68987d8cd9c89710adc3c04b868347ec | [
"BSD-3-Clause"
] | 3 | 2022-01-06T16:52:52.000Z | 2022-03-07T11:30:47.000Z | py/test/pytests/compass.py | arccode/factory | a1b0fccd68987d8cd9c89710adc3c04b868347ec | [
"BSD-3-Clause"
] | null | null | null | py/test/pytests/compass.py | arccode/factory | a1b0fccd68987d8cd9c89710adc3c04b868347ec | [
"BSD-3-Clause"
] | 1 | 2021-10-24T01:47:22.000Z | 2021-10-24T01:47:22.000Z | # Copyright 2017 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Compass test which requires operator place the DUT heading north and south.
"""
import math
from cros.factory.device import device_utils
from cros.fa... | 33.793478 | 79 | 0.659698 | 435 | 3,109 | 4.583908 | 0.365517 | 0.033099 | 0.045135 | 0.03009 | 0.115848 | 0.021063 | 0 | 0 | 0 | 0 | 0 | 0.026262 | 0.216147 | 3,109 | 91 | 80 | 34.164835 | 0.791957 | 0.230299 | 0 | 0.036364 | 0 | 0 | 0.129296 | 0.021478 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109091 | false | 0.054545 | 0.127273 | 0 | 0.327273 | 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 |
67b4e58c6ad20219173b19352e683379ceb32d00 | 842 | py | Python | ch16/14.py | hnccho/book | f659bc759dca6d4991183147db7ae04abb4265a4 | [
"MIT"
] | 84 | 2017-01-13T04:57:20.000Z | 2022-02-17T11:56:03.000Z | ch16/14.py | hnccho/book | f659bc759dca6d4991183147db7ae04abb4265a4 | [
"MIT"
] | 3 | 2019-10-12T12:02:54.000Z | 2020-04-13T12:09:57.000Z | ch16/14.py | hnccho/book | f659bc759dca6d4991183147db7ae04abb4265a4 | [
"MIT"
] | 111 | 2016-09-22T09:02:12.000Z | 2022-03-18T13:26:49.000Z | import sys
from PyQt5.QtWidgets import *
class MyWindow(QMainWindow):
def __init__(self):
super().__init__()
self.setupUI()
def setupUI(self):
self.setGeometry(800, 200, 300, 300)
self.tableWidget = QTableWidget(self)
self.tableWidget.resize(290, 290)
self.tabl... | 29.034483 | 65 | 0.644893 | 92 | 842 | 5.717391 | 0.402174 | 0.228137 | 0.1673 | 0.087452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055976 | 0.214964 | 842 | 28 | 66 | 30.071429 | 0.739788 | 0 | 0 | 0 | 0 | 0 | 0.033254 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.086957 | 0 | 0.26087 | 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 |
67ba0470585fa4d95319a0973efdaaa42547d3a5 | 3,713 | py | Python | tests/test_run.py | kaushikcfd/pymlir | 1c9cb00ec7defc6b52a1eefeebe30c1fe045d67c | [
"BSD-3-Clause"
] | null | null | null | tests/test_run.py | kaushikcfd/pymlir | 1c9cb00ec7defc6b52a1eefeebe30c1fe045d67c | [
"BSD-3-Clause"
] | null | null | null | tests/test_run.py | kaushikcfd/pymlir | 1c9cb00ec7defc6b52a1eefeebe30c1fe045d67c | [
"BSD-3-Clause"
] | null | null | null | __copyright__ = "Copyright (C) 2020 Kaushik Kulkarni"
__license__ = """
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and ... | 34.06422 | 101 | 0.670886 | 538 | 3,713 | 4.531599 | 0.405204 | 0.02297 | 0.027071 | 0.02297 | 0.192781 | 0.159967 | 0.133716 | 0.133716 | 0.133716 | 0.107465 | 0 | 0.023614 | 0.213035 | 3,713 | 108 | 102 | 34.37963 | 0.810746 | 0 | 0 | 0.116279 | 0 | 0.034884 | 0.66119 | 0.006464 | 0 | 0 | 0 | 0 | 0.023256 | 1 | 0.034884 | false | 0 | 0.069767 | 0 | 0.151163 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
67c8ca2b127b52cae8f772b216469beef4c8c509 | 26,344 | py | Python | cms.py | aaalgo/health_outcome_challenge | 6d0cb660123ac6fb4939c1d50a8f1914e8e3e165 | [
"BSD-3-Clause"
] | null | null | null | cms.py | aaalgo/health_outcome_challenge | 6d0cb660123ac6fb4939c1d50a8f1914e8e3e165 | [
"BSD-3-Clause"
] | null | null | null | cms.py | aaalgo/health_outcome_challenge | 6d0cb660123ac6fb4939c1d50a8f1914e8e3e165 | [
"BSD-3-Clause"
] | null | null | null | import os
import sys
from collections import namedtuple, defaultdict
import json
import pickle
from glob import glob
from datetime import datetime, timedelta
import subprocess as sp
import logging
import traceback
PARTICIPANT_NAME = 'aaalgo'
CMS_HOME = os.path.abspath(os.path.dirname(__file__))
CORE_LIB_PATHS = [os.... | 34.526868 | 177 | 0.474719 | 2,898 | 26,344 | 4.148378 | 0.145618 | 0.022459 | 0.012976 | 0.009316 | 0.1726 | 0.12186 | 0.088504 | 0.068375 | 0.042921 | 0.03477 | 0 | 0.014569 | 0.434596 | 26,344 | 762 | 178 | 34.572178 | 0.792548 | 0.157797 | 0 | 0.309481 | 0 | 0 | 0.034206 | 0.004743 | 0 | 0 | 0 | 0.001312 | 0.039356 | 1 | 0.055456 | false | 0.134168 | 0.019678 | 0.003578 | 0.125224 | 0.007156 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
67cf5a0ebc0e645177f1cfdbedb585906c99f050 | 571 | py | Python | Computer_Vision_Module/Load_Faces.py | MohammedSamirMahmoud/Attendance-Tracking-System-Using-Computer-Vision | bc737bd76867f93a38b0bbae62d746f872d02cfc | [
"MIT"
] | 6 | 2020-04-08T02:41:14.000Z | 2022-02-08T08:54:57.000Z | Computer_Vision_Module/Load_Faces.py | yuvaraj9091/Attendance-Tracking-System-Using-Computer-Vision | bc737bd76867f93a38b0bbae62d746f872d02cfc | [
"MIT"
] | 1 | 2021-07-13T05:52:02.000Z | 2021-07-13T05:52:27.000Z | Computer_Vision_Module/Load_Faces.py | yuvaraj9091/Attendance-Tracking-System-Using-Computer-Vision | bc737bd76867f93a38b0bbae62d746f872d02cfc | [
"MIT"
] | 3 | 2021-01-19T10:06:29.000Z | 2021-04-15T19:55:04.000Z | import os
import numpy as np
from os import listdir
from numpy import asarray
from numpy import load
from .Extract_Faces import extract_face
# load images and extract faces for all images in a directory
def load_faces(directory):
'''
THIS FUNCTION TAKES DIRECTORY OF (ONE) PERSON IMAGES AS INPUT
OUTPUTS A FACE... | 22.84 | 63 | 0.718039 | 83 | 571 | 4.891566 | 0.506024 | 0.039409 | 0.073892 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002237 | 0.217163 | 571 | 25 | 64 | 22.84 | 0.90604 | 0.315236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.4 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
67d708600d86c443e6ee215b008305f1727dd6f1 | 1,161 | py | Python | neural_mmo/forge/blade/systems/equipment.py | fangqyi/sandbox-society | 39a539994f47f4937ec3ff698f8ed08a5161e14a | [
"MIT"
] | 1 | 2022-01-25T10:56:38.000Z | 2022-01-25T10:56:38.000Z | neural_mmo/forge/blade/systems/equipment.py | davidADSP/neural-mmo | c9510890576fad1037474340194d0b5342a9b45f | [
"MIT"
] | null | null | null | neural_mmo/forge/blade/systems/equipment.py | davidADSP/neural-mmo | c9510890576fad1037474340194d0b5342a9b45f | [
"MIT"
] | null | null | null | from pdb import set_trace as T
from neural_mmo.forge.blade.lib.enums import Tier
class Loadout:
def __init__(self, chest=0, legs=0):
self.chestplate = Chestplate(chest)
self.platelegs = Platelegs(legs)
@property
def defense(self):
return (self.chestplate.level + self.platelegs.level) // 2... | 20.368421 | 64 | 0.614987 | 143 | 1,161 | 4.923077 | 0.335664 | 0.115057 | 0.073864 | 0.053977 | 0.071023 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016746 | 0.279931 | 1,161 | 56 | 65 | 20.732143 | 0.825359 | 0 | 0 | 0.238095 | 0 | 0 | 0.025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.047619 | 0.047619 | 0.02381 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
67ea70bc0c182d84e0a3d85ff681719dbcf345ff | 8,604 | py | Python | dex/section/item_class_data.py | callmejacob/dexfactory | 2de996927ee9f036b2c7fc6cb04f43ac790f35af | [
"BSD-2-Clause"
] | 7 | 2018-06-14T10:40:47.000Z | 2021-05-18T08:55:34.000Z | dex/section/item_class_data.py | callmejacob/dexfactory | 2de996927ee9f036b2c7fc6cb04f43ac790f35af | [
"BSD-2-Clause"
] | 1 | 2020-05-28T08:59:50.000Z | 2020-05-28T08:59:50.000Z | dex/section/item_class_data.py | callmejacob/dexfactory | 2de996927ee9f036b2c7fc6cb04f43ac790f35af | [
"BSD-2-Clause"
] | 3 | 2018-02-28T02:08:06.000Z | 2018-09-12T03:09:18.000Z | # -- coding: utf-8 --
from item_base import *
class ClassDataItem(BaseItem):
"""
section子结构: 类数据
"""
@classmethod
def create(cls):
"""
创建一个新项
"""
return ClassDataItem(createBytes(0x04))
def __init__(self, bytes):
"""
初始化
bytes: 原始字节数组
"""
super(ClassDataItem, self).__init__(bytes)... | 25.683582 | 91 | 0.720595 | 1,080 | 8,604 | 5.49537 | 0.108333 | 0.048526 | 0.04246 | 0.061331 | 0.63909 | 0.56765 | 0.562595 | 0.515586 | 0.493008 | 0.281887 | 0 | 0.018699 | 0.167132 | 8,604 | 335 | 92 | 25.683582 | 0.809517 | 0.022664 | 0 | 0.579208 | 0 | 0 | 0.022448 | 0 | 0 | 0 | 0.00602 | 0 | 0 | 0 | null | null | 0 | 0.004951 | 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 |
67eb15a5914bc5a641a5ececacd94688e854e501 | 444 | py | Python | python/python_crash_course/chapter_2/2-5.famous_quote.py | lmonsalve22/Learning-to-Code | 2e32eba3fbd0bd63cc539e1e6d372ca346b765c9 | [
"MIT"
] | null | null | null | python/python_crash_course/chapter_2/2-5.famous_quote.py | lmonsalve22/Learning-to-Code | 2e32eba3fbd0bd63cc539e1e6d372ca346b765c9 | [
"MIT"
] | null | null | null | python/python_crash_course/chapter_2/2-5.famous_quote.py | lmonsalve22/Learning-to-Code | 2e32eba3fbd0bd63cc539e1e6d372ca346b765c9 | [
"MIT"
] | null | null | null | """ Find a quote from a famous person you admire.
Print the quote and the name of its author. """
quote = 'Those who dream by day are cognizant of many things which escape those who dream only by night'
name = 'edgar allan poe'
print(f'{name.title()} once said, "{quote}".')
quote = 'Don’t compare yourself with anyone... | 44.4 | 104 | 0.709459 | 77 | 444 | 4.12987 | 0.662338 | 0.050314 | 0.081761 | 0.09434 | 0.176101 | 0.176101 | 0.176101 | 0 | 0 | 0 | 0 | 0 | 0.171171 | 444 | 10 | 105 | 44.4 | 0.855978 | 0.20045 | 0 | 0.333333 | 0 | 0 | 0.807471 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
67ebcfd3a84395dd83e098a2b73f8114c19bc9e0 | 756 | py | Python | pyclopedia/p02_ref/p04_string_bytes/str_encode_decode.py | MacHu-GWU/pyclopedia-project | c6ee156eb40bc5a4ac5f51aa735b6fd004cb68ee | [
"MIT"
] | null | null | null | pyclopedia/p02_ref/p04_string_bytes/str_encode_decode.py | MacHu-GWU/pyclopedia-project | c6ee156eb40bc5a4ac5f51aa735b6fd004cb68ee | [
"MIT"
] | null | null | null | pyclopedia/p02_ref/p04_string_bytes/str_encode_decode.py | MacHu-GWU/pyclopedia-project | c6ee156eb40bc5a4ac5f51aa735b6fd004cb68ee | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
在计算机系统中, 任何数据的本质都是0101的字节流。一个0/1的位置称之为 ``1位``。
例如32位的计算机系统中用32位来表示一个整数。而64位系统用64位来表示一个整数。
字符串本质上也是字节流。比如在美国键盘的ASCII编码中, 只有128个字符。所以ASCII
字符用8位来表示一个字符。下面我们给出字符串编码和解码的定义:
- 编码 (encode): 指的是将字符串按照一定规则(比如ASCII编码), 编码成字节流的过程。
- 解码 (decode): 指的是将字节流按照一定规则解码成字符串的过程。
先不要管为什么... | 22.909091 | 57 | 0.740741 | 81 | 756 | 6.790123 | 0.740741 | 0.029091 | 0.036364 | 0.083636 | 0.156364 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046407 | 0.116402 | 756 | 32 | 58 | 23.625 | 0.776946 | 0.830688 | 0 | 0.4 | 0 | 0 | 0.201681 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
67ecf1818d05167fab346361e10c836f10bb4460 | 508 | py | Python | books/urls.py | HishamKhalil1990/book-store | 901b372f0561348e7ed41c1ce3ad03ecf5e732c2 | [
"MIT"
] | null | null | null | books/urls.py | HishamKhalil1990/book-store | 901b372f0561348e7ed41c1ce3ad03ecf5e732c2 | [
"MIT"
] | null | null | null | books/urls.py | HishamKhalil1990/book-store | 901b372f0561348e7ed41c1ce3ad03ecf5e732c2 | [
"MIT"
] | null | null | null | from django.urls import path
from .views import (
BookListView,
BookDetailView,
BookCreateView,
BookUpdateView,
BookDeleteView,
)
urlpatterns = [
path("", BookListView.as_view(), name="book_list"),
path("<int:pk>/", BookDetailView.as_view(), name="book_detail"),
path( "create/",BookCrea... | 29.882353 | 73 | 0.683071 | 58 | 508 | 5.810345 | 0.396552 | 0.089021 | 0.148368 | 0.207715 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135827 | 508 | 16 | 74 | 31.75 | 0.767654 | 0 | 0 | 0 | 0 | 0 | 0.198819 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 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 |
67f63dd965011b19976363ebc058dee066fb89e1 | 816 | py | Python | core/management/commands/load_initial_data.py | admariner/madewithwagtail | a43b3263c0f151ece4994fccd561b0575db4979f | [
"MIT"
] | null | null | null | core/management/commands/load_initial_data.py | admariner/madewithwagtail | a43b3263c0f151ece4994fccd561b0575db4979f | [
"MIT"
] | null | null | null | core/management/commands/load_initial_data.py | admariner/madewithwagtail | a43b3263c0f151ece4994fccd561b0575db4979f | [
"MIT"
] | null | null | null | import os
import shutil
from django.conf import settings
from django.core.management import call_command
from django.core.management.base import BaseCommand
class Command(BaseCommand):
def handle(self, *args, **options):
fixtures_dir = os.path.join(settings.PROJECT_ROOT, settings.SITE_NAME, 'core', 'fixt... | 35.478261 | 98 | 0.719363 | 114 | 816 | 4.921053 | 0.438596 | 0.064171 | 0.089127 | 0.069519 | 0.149733 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001488 | 0.176471 | 816 | 22 | 99 | 37.090909 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.071078 | 0 | 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 |
67fbe68c395a62f79067b7c77804f5c8192c50ce | 288 | py | Python | setup.py | tvaranka/Python-evm | ee23e35d77aaa9d9ef77f288173a7e4ea135947a | [
"MIT"
] | null | null | null | setup.py | tvaranka/Python-evm | ee23e35d77aaa9d9ef77f288173a7e4ea135947a | [
"MIT"
] | null | null | null | setup.py | tvaranka/Python-evm | ee23e35d77aaa9d9ef77f288173a7e4ea135947a | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='example',
version='0.1.0',
packages=find_packages(include=['py_evm', 'py_evm.*']),
install_requires=[
"numpy",
"torch",
"opencv-python",
"scikit-image",
"matplotlib"
]
)
| 19.2 | 59 | 0.565972 | 30 | 288 | 5.266667 | 0.766667 | 0.151899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014354 | 0.274306 | 288 | 14 | 60 | 20.571429 | 0.741627 | 0 | 0 | 0 | 0 | 0 | 0.246528 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 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 |
db02e40632d653efc7ddfb831a4e6942be02a222 | 9,959 | py | Python | examples/eidelyur/MCOOL/threeApproaches_v6/approach_3.py | radiasoft/rsdynfric | 0d905e1ef85063ec6fe93df64751f7b8c19da160 | [
"Apache-2.0"
] | null | null | null | examples/eidelyur/MCOOL/threeApproaches_v6/approach_3.py | radiasoft/rsdynfric | 0d905e1ef85063ec6fe93df64751f7b8c19da160 | [
"Apache-2.0"
] | 1 | 2022-03-23T22:53:10.000Z | 2022-03-28T19:02:40.000Z | examples/eidelyur/MCOOL/threeApproaches_v6/approach_3.py | radiasoft/rsdynfric | 0d905e1ef85063ec6fe93df64751f7b8c19da160 | [
"Apache-2.0"
] | 3 | 2017-01-06T04:24:29.000Z | 2020-02-16T01:17:20.000Z | #%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#
# Approach_3: dragging with averaging over nLarmorAvrgng larmor rotation +
# "Magnus expansion" method to calculate the transferred momenta
#
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#
#------- Start of calculations for... | 52.693122 | 114 | 0.609097 | 1,317 | 9,959 | 4.35839 | 0.167046 | 0.055749 | 0.045993 | 0.047561 | 0.4277 | 0.362892 | 0.344425 | 0.227526 | 0.199129 | 0.162195 | 0 | 0.047021 | 0.256853 | 9,959 | 188 | 115 | 52.973404 | 0.72855 | 0.449141 | 0 | 0.077778 | 0 | 0 | 0.011676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.011111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
db03fad46f4d8fcf3ef36e3cf272ce60b8a1f952 | 6,931 | py | Python | WebApp/app/models.py | namiszh/fba | 27257b3ae364e41c4ed6f875bb10dac9af00e1bc | [
"MIT"
] | 3 | 2019-07-25T02:54:59.000Z | 2019-10-31T05:55:03.000Z | WebApp/app/models.py | namiszh/fba | 27257b3ae364e41c4ed6f875bb10dac9af00e1bc | [
"MIT"
] | null | null | null | WebApp/app/models.py | namiszh/fba | 27257b3ae364e41c4ed6f875bb10dac9af00e1bc | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Yahoo Fantasy Basketball Power Rankings models
:copyright: (c) 2018 by Marvin Huang
"""
from flask_login import UserMixin
from app import db
# User and Team are many-to-many relationship,
# A user can have many teams, and a team can have
# many managers(co-manager). So we need to d... | 33.322115 | 132 | 0.63656 | 989 | 6,931 | 4.284125 | 0.224469 | 0.052868 | 0.061364 | 0.049091 | 0.32051 | 0.164503 | 0.104791 | 0.066084 | 0.066084 | 0.046731 | 0 | 0.018649 | 0.241812 | 6,931 | 207 | 133 | 33.483092 | 0.787631 | 0.330688 | 0 | 0.204082 | 0 | 0 | 0.09554 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153061 | false | 0.010204 | 0.020408 | 0.091837 | 0.602041 | 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 |
db07ae92d5c89d4ccb685281c2b732d4e5c06cc2 | 879 | py | Python | imgspro/imgspro/pipelines.py | newhackerman/scrapy_struct | f6a7eb7e9811adf38e7412e7f46d4f16bb6b5aef | [
"MIT"
] | null | null | null | imgspro/imgspro/pipelines.py | newhackerman/scrapy_struct | f6a7eb7e9811adf38e7412e7f46d4f16bb6b5aef | [
"MIT"
] | null | null | null | imgspro/imgspro/pipelines.py | newhackerman/scrapy_struct | f6a7eb7e9811adf38e7412e7f46d4f16bb6b5aef | [
"MIT"
] | null | null | null | # Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
import scrapy
from scrapy.pipelines.images import ImagesPipeline
# useful for handling different item types with a single interface
from itemadapter im... | 30.310345 | 72 | 0.725825 | 117 | 879 | 5.358974 | 0.581197 | 0.041467 | 0.051037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001391 | 0.182025 | 879 | 28 | 73 | 31.392857 | 0.870654 | 0.449374 | 0 | 0 | 0 | 0 | 0.016985 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.272727 | 0.090909 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
db08732abda3983840f0941b14720cea1859efbd | 476 | py | Python | boost_adaptbx/command_line/double_overflow.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | boost_adaptbx/command_line/double_overflow.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | boost_adaptbx/command_line/double_overflow.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | from __future__ import division
# LIBTBX_SET_DISPATCHER_NAME boost_adaptbx.double_overflow
import boost.python
import sys
def run(args):
assert len(args) == 0
sizeof_double = boost.python.c_sizeof("double")
assert sizeof_double == 8
x = 1.e300
y = 1.e200
print "Now multiplying double values %g * %g ..." %... | 23.8 | 60 | 0.703782 | 71 | 476 | 4.422535 | 0.591549 | 0.105096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027638 | 0.163866 | 476 | 19 | 61 | 25.052632 | 0.761307 | 0.117647 | 0 | 0 | 0 | 0 | 0.148325 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 0 | null | null | 0 | 0.2 | 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 |
db0a2f3ed2ebca20a102620a531ff687f104b767 | 686 | py | Python | tpk4128/server.py | andyconda/Webcamserveroving | 9d21c92a3d67704f1f470634f0746a41b4f496d4 | [
"MIT"
] | 4 | 2018-10-12T09:37:47.000Z | 2021-03-16T12:40:06.000Z | tpk4128/server.py | andyconda/Webcamserveroving | 9d21c92a3d67704f1f470634f0746a41b4f496d4 | [
"MIT"
] | null | null | null | tpk4128/server.py | andyconda/Webcamserveroving | 9d21c92a3d67704f1f470634f0746a41b4f496d4 | [
"MIT"
] | 3 | 2018-11-11T20:37:15.000Z | 2021-03-18T17:08:18.000Z | import socket
class SocketServer(object):
def __init__(self, host, port):
self._host = host
self._port = port
self._socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self._socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
self._socket.bind((self._host, ... | 22.866667 | 74 | 0.618076 | 86 | 686 | 4.616279 | 0.430233 | 0.125945 | 0.060453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011788 | 0.258017 | 686 | 29 | 75 | 23.655172 | 0.768173 | 0 | 0 | 0 | 0 | 0 | 0.023392 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 0 | 0.388889 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
db0c08ad0250b0c7024d0e7a40c24c24228a185e | 930 | py | Python | queue_manager/migrations/0001_initial.py | finallly/task_queue_practice | 65ce45716f06a72637a31ab2b938882c8af126ca | [
"MIT"
] | null | null | null | queue_manager/migrations/0001_initial.py | finallly/task_queue_practice | 65ce45716f06a72637a31ab2b938882c8af126ca | [
"MIT"
] | null | null | null | queue_manager/migrations/0001_initial.py | finallly/task_queue_practice | 65ce45716f06a72637a31ab2b938882c8af126ca | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-09-04 18:09
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='TaskModel',
fields=[
... | 30 | 119 | 0.586022 | 93 | 930 | 5.752688 | 0.55914 | 0.04486 | 0.052336 | 0.082243 | 0.306542 | 0.306542 | 0.306542 | 0.306542 | 0.306542 | 0.306542 | 0 | 0.025564 | 0.284946 | 930 | 30 | 120 | 31 | 0.778947 | 0.048387 | 0 | 0.434783 | 1 | 0 | 0.079275 | 0.026048 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.26087 | 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 |
db0c1bac04da8bc5efcedb860ee2e1fc8f7c05db | 4,633 | py | Python | src/recording_script_generator/core/detection.py | stefantaubert/recording-script-generator | 01cdcd4b85ed7f245f4bb8535d870c04472746c9 | [
"MIT"
] | null | null | null | src/recording_script_generator/core/detection.py | stefantaubert/recording-script-generator | 01cdcd4b85ed7f245f4bb8535d870c04472746c9 | [
"MIT"
] | null | null | null | src/recording_script_generator/core/detection.py | stefantaubert/recording-script-generator | 01cdcd4b85ed7f245f4bb8535d870c04472746c9 | [
"MIT"
] | null | null | null | from functools import partial
from logging import getLogger
from multiprocessing.pool import RemoteTraceback
from typing import Dict, Optional, Set
from ordered_set import OrderedSet
from recording_script_generator.core.common import log_utterances
from recording_script_generator.core.selection import *
from recording... | 41.738739 | 371 | 0.786531 | 523 | 4,633 | 6.621415 | 0.162524 | 0.043315 | 0.039272 | 0.046203 | 0.644528 | 0.591106 | 0.514872 | 0.506208 | 0.481663 | 0.481663 | 0 | 0 | 0.141593 | 4,633 | 110 | 372 | 42.118182 | 0.870757 | 0 | 0 | 0.455556 | 0 | 0 | 0.008634 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0.122222 | 0.144444 | 0.011111 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
db134aacf794a32361d6a903a84ccd5259efe912 | 1,274 | py | Python | comic_site/comic_site/urls.py | ExCorde314/comic_site | 31e4bb0f3dd1f25eb497d8374de301a07f74c805 | [
"MIT"
] | 1 | 2018-01-25T21:36:09.000Z | 2018-01-25T21:36:09.000Z | comic_site/comic_site/urls.py | ExCorde314/comic_site | 31e4bb0f3dd1f25eb497d8374de301a07f74c805 | [
"MIT"
] | null | null | null | comic_site/comic_site/urls.py | ExCorde314/comic_site | 31e4bb0f3dd1f25eb497d8374de301a07f74c805 | [
"MIT"
] | null | null | null | from django.urls import include, path, reverse
from django.contrib import admin
from django.http import HttpResponse
from django.contrib.sitemaps.views import sitemap
from comic.sitemaps import ComicSitemap
from blog.sitemaps import BlogSitemap
from .sitemaps import StaticSitemap
from django.conf.urls import han... | 41.096774 | 189 | 0.715071 | 155 | 1,274 | 5.787097 | 0.316129 | 0.055741 | 0.070234 | 0.086957 | 0.073579 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043916 | 0.142072 | 1,274 | 31 | 190 | 41.096774 | 0.776761 | 0 | 0 | 0 | 0 | 0 | 0.216064 | 0.059438 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.321429 | 0 | 0.321429 | 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 |
db1a694be70b595cf1b4727c398bb984176fb699 | 3,583 | py | Python | nbdev/merge.py | claforte/nbdev | 25bb09c1f22d63abadf03352df6e2e43c2280ce1 | [
"Apache-2.0"
] | null | null | null | nbdev/merge.py | claforte/nbdev | 25bb09c1f22d63abadf03352df6e2e43c2280ce1 | [
"Apache-2.0"
] | null | null | null | nbdev/merge.py | claforte/nbdev | 25bb09c1f22d63abadf03352df6e2e43c2280ce1 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs\05_merge.ipynb (unless otherwise specified).
__all__ = ['extract_cells', 'get_md_cell', 'conflicts', 'same_inputs', 'analyze_cell', 'fix_conflicts']
# Cell
from .imports import *
# Cell
def extract_cells(raw_txt):
"Manually extract cells in potential broken json `r... | 34.12381 | 104 | 0.586659 | 561 | 3,583 | 3.657754 | 0.240642 | 0.037524 | 0.037524 | 0.046784 | 0.161306 | 0.097466 | 0.055556 | 0 | 0 | 0 | 0 | 0.026172 | 0.232208 | 3,583 | 105 | 105 | 34.12381 | 0.719738 | 0.123919 | 0 | 0 | 1 | 0.011765 | 0.210006 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070588 | false | 0 | 0.011765 | 0 | 0.141176 | 0.023529 | 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 |
db1af0993a401945b6aa11084be51b111d0a3424 | 1,301 | py | Python | scr/edit_trackers.py | aiddata/geo-hpc | 8f684e72c14795f2e1532896a4b0999fe6c14d24 | [
"MIT"
] | 5 | 2020-02-14T14:21:51.000Z | 2021-08-22T19:47:48.000Z | scr/edit_trackers.py | aiddata/geo-hpc | 8f684e72c14795f2e1532896a4b0999fe6c14d24 | [
"MIT"
] | 1 | 2017-11-05T20:56:21.000Z | 2017-12-08T17:22:13.000Z | scr/edit_trackers.py | aiddata/geo-hpc | 8f684e72c14795f2e1532896a4b0999fe6c14d24 | [
"MIT"
] | 3 | 2020-02-27T11:33:43.000Z | 2021-08-22T19:47:57.000Z | """
generic script for editing data in "trackers" db
"""
# -----------------------------------------------------------------------------
import sys
import os
branch = sys.argv[1]
branch_dir = os.path.join(os.path.expanduser('~'), 'geo', branch)
if not os.path.isdir(branch_dir):
raise Exception('Branch director... | 20.650794 | 79 | 0.566487 | 145 | 1,301 | 4.903448 | 0.475862 | 0.033755 | 0.025316 | 0.036568 | 0.070323 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011905 | 0.160646 | 1,301 | 62 | 80 | 20.983871 | 0.639194 | 0.193697 | 0 | 0 | 0 | 0 | 0.140688 | 0.047571 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | null | null | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
db1bb94de4289dc91a108e71d2240ac3fda48a41 | 2,632 | py | Python | fancypages/templatetags/fp_block_tags.py | ashiazed/django-fancypages | 7587bac8f61ed8567f27ffee78c5dbedf039f345 | [
"BSD-3-Clause"
] | 1 | 2018-05-28T09:50:13.000Z | 2018-05-28T09:50:13.000Z | fancypages/templatetags/fp_block_tags.py | ashiazed/django-fancypages | 7587bac8f61ed8567f27ffee78c5dbedf039f345 | [
"BSD-3-Clause"
] | null | null | null | fancypages/templatetags/fp_block_tags.py | ashiazed/django-fancypages | 7587bac8f61ed8567f27ffee78c5dbedf039f345 | [
"BSD-3-Clause"
] | null | null | null | from django import template
from django.conf import settings
from django.db.models import get_model
from django.template import defaultfilters, loader
from .. import library
from .. import renderers
from ..dashboard import forms
ContentType = get_model('contenttypes', 'ContentType')
register = template.Library()
@... | 27.416667 | 68 | 0.703267 | 335 | 2,632 | 5.295522 | 0.343284 | 0.022548 | 0.036077 | 0.042841 | 0.079481 | 0.06708 | 0.047351 | 0.047351 | 0 | 0 | 0 | 0.00142 | 0.197188 | 2,632 | 95 | 69 | 27.705263 | 0.838145 | 0.052052 | 0 | 0.086957 | 0 | 0 | 0.092451 | 0.047235 | 0 | 0 | 0 | 0.010526 | 0 | 1 | 0.101449 | false | 0.014493 | 0.101449 | 0.028986 | 0.376812 | 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 |
db1d392c72150d715113706889dd99ab4390c0cf | 1,176 | py | Python | sparkpost/exceptions.py | jkeyes/python-sparkpost | 20e9fb44b61b40baae53c08f4e6f5bbfb0068894 | [
"Apache-2.0"
] | 100 | 2015-02-11T20:07:23.000Z | 2021-10-18T10:27:35.000Z | sparkpost/exceptions.py | jkeyes/python-sparkpost | 20e9fb44b61b40baae53c08f4e6f5bbfb0068894 | [
"Apache-2.0"
] | 152 | 2015-02-09T01:34:02.000Z | 2021-11-08T17:32:30.000Z | sparkpost/exceptions.py | jkeyes/python-sparkpost | 20e9fb44b61b40baae53c08f4e6f5bbfb0068894 | [
"Apache-2.0"
] | 79 | 2015-02-14T07:42:17.000Z | 2022-02-25T00:52:28.000Z | class SparkPostException(Exception):
pass
class SparkPostAPIException(SparkPostException):
"Handle 4xx and 5xx errors from the SparkPost API"
def __init__(self, response, *args, **kwargs):
# noinspection PyBroadException
try:
errors = response.json()['errors']
error... | 36.75 | 78 | 0.54932 | 112 | 1,176 | 5.642857 | 0.482143 | 0.063291 | 0.060127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00641 | 0.336735 | 1,176 | 31 | 79 | 37.935484 | 0.803846 | 0.107993 | 0 | 0 | 0 | 0 | 0.186301 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 1 | 0.04 | false | 0.04 | 0 | 0 | 0.12 | 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 |
db1f0e62adeb20a2daaaf2bbef369d2c250390fd | 4,764 | py | Python | src/python/tools/configuration/datatypes.py | ryansun117/marius | c6a81b2ea6b6b468baf5277cf6955f9543b66c82 | [
"Apache-2.0"
] | null | null | null | src/python/tools/configuration/datatypes.py | ryansun117/marius | c6a81b2ea6b6b468baf5277cf6955f9543b66c82 | [
"Apache-2.0"
] | null | null | null | src/python/tools/configuration/datatypes.py | ryansun117/marius | c6a81b2ea6b6b468baf5277cf6955f9543b66c82 | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
# This file contains enums and detailed option settings for each enum value, where applicable
# options dataclasses
@dataclass
class InitOptions:
pass
@dataclass
class UniformInitOptions(InitOptions):
scale_factor: float = 1
def __post_init__(self):
if self.sca... | 23.126214 | 113 | 0.68199 | 565 | 4,764 | 5.553982 | 0.272566 | 0.107075 | 0.056087 | 0.043021 | 0.244423 | 0.199809 | 0.158381 | 0.131612 | 0.1058 | 0.087954 | 0 | 0.016846 | 0.239924 | 4,764 | 205 | 114 | 23.239024 | 0.849765 | 0.04618 | 0 | 0.328571 | 0 | 0 | 0.144589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064286 | false | 0.05 | 0.007143 | 0 | 0.55 | 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 |
db2068552adcf4770064cca1687231a679e77c72 | 385 | py | Python | backend/api/api/settings/test.py | lanoir42/makefeeconverge | 61456d581a415257ebeb6b1d102820a164ded913 | [
"MIT"
] | null | null | null | backend/api/api/settings/test.py | lanoir42/makefeeconverge | 61456d581a415257ebeb6b1d102820a164ded913 | [
"MIT"
] | 5 | 2022-03-04T14:53:43.000Z | 2022-03-21T00:00:28.000Z | backend/api/api/settings/test.py | lanoir42/makefeeconverge | 61456d581a415257ebeb6b1d102820a164ded913 | [
"MIT"
] | null | null | null | from api.settings.base import *
# Database
# https://docs.djangoproject.com/en/3.2/ref/settings/#databases
DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql",
"NAME": "test",
"USER": "test",
"PASSWORD": "test",
"HOST": "localhost",
"PORT": "5432",
... | 21.388889 | 63 | 0.496104 | 36 | 385 | 5.305556 | 0.805556 | 0.08377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022388 | 0.303896 | 385 | 18 | 64 | 21.388889 | 0.690299 | 0.179221 | 0 | 0.142857 | 0 | 0 | 0.329073 | 0.092652 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.071429 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
db2245010ddd61504fe9c64dcb130b926b1e5292 | 2,025 | py | Python | sdk/python/pulumi_aws/eks/get_clusters.py | chivandikwa/pulumi-aws | 19c08bf9dcb90544450ffa4eec7bf6751058fde2 | [
"ECL-2.0",
"Apache-2.0"
] | 260 | 2018-06-18T14:57:00.000Z | 2022-03-29T11:41:03.000Z | sdk/python/pulumi_aws/eks/get_clusters.py | chivandikwa/pulumi-aws | 19c08bf9dcb90544450ffa4eec7bf6751058fde2 | [
"ECL-2.0",
"Apache-2.0"
] | 1,154 | 2018-06-19T20:38:20.000Z | 2022-03-31T19:48:16.000Z | sdk/python/pulumi_aws/eks/get_clusters.py | chivandikwa/pulumi-aws | 19c08bf9dcb90544450ffa4eec7bf6751058fde2 | [
"ECL-2.0",
"Apache-2.0"
] | 115 | 2018-06-28T03:20:27.000Z | 2022-03-29T11:41:06.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 28.521127 | 120 | 0.645926 | 231 | 2,025 | 5.445887 | 0.437229 | 0.019078 | 0.025437 | 0.047695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000658 | 0.249877 | 2,025 | 70 | 121 | 28.928571 | 0.827518 | 0.184691 | 0 | 0.090909 | 1 | 0 | 0.109484 | 0.036283 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113636 | false | 0 | 0.113636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
db257fa06e708a1a42977260d656ec3359f9cdba | 325 | py | Python | projects/migrations/0004_remove_post_pub_date.py | dennis027/Projects-Rating | 3d5dbf8ef24b5572f1611414916178423b044ebf | [
"MIT"
] | null | null | null | projects/migrations/0004_remove_post_pub_date.py | dennis027/Projects-Rating | 3d5dbf8ef24b5572f1611414916178423b044ebf | [
"MIT"
] | null | null | null | projects/migrations/0004_remove_post_pub_date.py | dennis027/Projects-Rating | 3d5dbf8ef24b5572f1611414916178423b044ebf | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-07-19 07:29
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('projects', '0003_alter_post_url'),
]
operations = [
migrations.RemoveField(
model_name='post',
name='pub_date',
),
... | 18.055556 | 47 | 0.587692 | 36 | 325 | 5.166667 | 0.805556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.298462 | 325 | 17 | 48 | 19.117647 | 0.732456 | 0.138462 | 0 | 0 | 1 | 0 | 0.140288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
db2880befd23fb2c61eb16e185c1940632d8438d | 1,269 | py | Python | features/steps/steps.py | aragaer/pa-server | 7cdbe8e05461563f43dfdd9bb93258edd6a6d7ab | [
"MIT"
] | null | null | null | features/steps/steps.py | aragaer/pa-server | 7cdbe8e05461563f43dfdd9bb93258edd6a6d7ab | [
"MIT"
] | null | null | null | features/steps/steps.py | aragaer/pa-server | 7cdbe8e05461563f43dfdd9bb93258edd6a6d7ab | [
"MIT"
] | null | null | null | import os
import socket
from behave import *
from nose.tools import eq_
@step('{address} is accepting connections')
def try_connect(context, address):
sock = socket.socket()
host, port = address.split(':')
result = sock.connect_ex((host, int(port)))
eq_(result, 0, "Send socket: " + os.strerror(result... | 26.4375 | 79 | 0.70922 | 177 | 1,269 | 5.011299 | 0.316384 | 0.047351 | 0.074408 | 0.121759 | 0.574972 | 0.574972 | 0.466742 | 0.255919 | 0.144307 | 0.144307 | 0 | 0.000949 | 0.169425 | 1,269 | 47 | 80 | 27 | 0.840607 | 0 | 0 | 0.1875 | 0 | 0 | 0.376675 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.21875 | false | 0 | 0.125 | 0 | 0.34375 | 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 |
db289bccc320b5ed19c3cbe51b7ee7f57caf3d15 | 2,051 | py | Python | pylons/decorators/rest.py | KinSai1975/Menira.py | ca275ce244ee4804444e1827ba60010a55acc07c | [
"BSD-3-Clause"
] | 118 | 2015-01-04T06:55:14.000Z | 2022-01-14T08:32:41.000Z | pylons/decorators/rest.py | KinSai1975/Menira.py | ca275ce244ee4804444e1827ba60010a55acc07c | [
"BSD-3-Clause"
] | 21 | 2015-01-03T02:16:28.000Z | 2021-03-24T06:10:57.000Z | pylons/decorators/rest.py | KinSai1975/Menira.py | ca275ce244ee4804444e1827ba60010a55acc07c | [
"BSD-3-Clause"
] | 53 | 2015-01-04T03:21:08.000Z | 2021-08-04T20:52:01.000Z | """REST decorators"""
import logging
from decorator import decorator
from pylons.controllers.util import abort
from pylons.decorators.util import get_pylons
__all__ = ['dispatch_on', 'restrict']
log = logging.getLogger(__name__)
def restrict(*methods):
"""Restricts access to the function depending on HTTP met... | 28.887324 | 71 | 0.65139 | 248 | 2,051 | 5.270161 | 0.366935 | 0.041316 | 0.045907 | 0.033665 | 0.175976 | 0.13619 | 0.13619 | 0.13619 | 0.13619 | 0.13619 | 0 | 0.001957 | 0.25256 | 2,051 | 70 | 72 | 29.3 | 0.85062 | 0.463189 | 0 | 0 | 0 | 0 | 0.081054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.590909 | 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 |
db29a5027c6a01d1ea14c5dabe30791e864ff851 | 4,394 | py | Python | risk_switch_scan.py | ehbussell/Bussell2018Model | 380caa6493c16d7e2df52c1b1cef223f917ce36e | [
"MIT"
] | 3 | 2018-09-04T10:30:57.000Z | 2022-02-01T15:46:10.000Z | risk_switch_scan.py | ehbussell/Bussell2018Model | 380caa6493c16d7e2df52c1b1cef223f917ce36e | [
"MIT"
] | null | null | null | risk_switch_scan.py | ehbussell/Bussell2018Model | 380caa6493c16d7e2df52c1b1cef223f917ce36e | [
"MIT"
] | null | null | null | """Generate Figure S11 scanning over risk switch time."""
import os
import pickle
import argparse
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl
from joblib import Parallel, delayed
import simulation, risk_model, fitting, control_tools, visualisation
def run_sims(switch_time, nruns, setu... | 36.016393 | 98 | 0.634729 | 603 | 4,394 | 4.404643 | 0.333333 | 0.057982 | 0.037274 | 0.026355 | 0.213102 | 0.154367 | 0.154367 | 0.154367 | 0.125753 | 0.125753 | 0 | 0.035517 | 0.218252 | 4,394 | 121 | 99 | 36.31405 | 0.7377 | 0.034593 | 0 | 0.042553 | 1 | 0 | 0.165837 | 0.011846 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.085106 | 0 | 0.159574 | 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 |
db3458fc0acd887a1400bf66a97273a1099153f3 | 5,477 | py | Python | decision_trees/spotify_decision_trees/analisys_data.py | Fernakamuta/machine | 72484bdffac667a94a87e90e47ff6cf9dae3dbce | [
"Apache-2.0"
] | null | null | null | decision_trees/spotify_decision_trees/analisys_data.py | Fernakamuta/machine | 72484bdffac667a94a87e90e47ff6cf9dae3dbce | [
"Apache-2.0"
] | null | null | null | decision_trees/spotify_decision_trees/analisys_data.py | Fernakamuta/machine | 72484bdffac667a94a87e90e47ff6cf9dae3dbce | [
"Apache-2.0"
] | null | null | null | import pandas as pd
import numpy as np
from sklearn import tree
from sklearn.tree import DecisionTreeClassifier
from sklearn.tree import export_graphviz
from sklearn.model_selection import train_test_split
from matplotlib import pyplot as plt
import seaborn as sns
%matplotlib
# Importing dataset!
data = pd.read_csv(... | 28.826316 | 70 | 0.708965 | 801 | 5,477 | 4.6804 | 0.225968 | 0.04908 | 0.08589 | 0.052814 | 0.252334 | 0.239531 | 0.189117 | 0.096292 | 0.072019 | 0 | 0 | 0.042452 | 0.118313 | 5,477 | 189 | 71 | 28.978836 | 0.733899 | 0.278802 | 0 | 0.018692 | 0 | 0 | 0.149475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.11215 | null | null | 0.018692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
db3ad9dd2af3fd0ec5e6c507a9d16cea4cb046fd | 1,120 | py | Python | {{ cookiecutter.repo_name }}/{{ cookiecutter.repo_name }}/core/storages.py | dvl/cookiecutter-django-template | 4ad86a5cd84320db85f2d293452d35a9623690a3 | [
"MIT"
] | null | null | null | {{ cookiecutter.repo_name }}/{{ cookiecutter.repo_name }}/core/storages.py | dvl/cookiecutter-django-template | 4ad86a5cd84320db85f2d293452d35a9623690a3 | [
"MIT"
] | null | null | null | {{ cookiecutter.repo_name }}/{{ cookiecutter.repo_name }}/core/storages.py | dvl/cookiecutter-django-template | 4ad86a5cd84320db85f2d293452d35a9623690a3 | [
"MIT"
] | null | null | null | from django.conf import settings
from storages.backends.s3boto import S3BotoStorage
class FixedS3BotoStorage(S3BotoStorage):
"""
fix the broken javascript admin resources with S3Boto on Django 1.4
for more info see
http://code.larlet.fr/django-storages/issue/121/s3boto-admin-prefix-issue-with-django-... | 28 | 92 | 0.675 | 132 | 1,120 | 5.545455 | 0.462121 | 0.032787 | 0.076503 | 0.043716 | 0.224044 | 0.224044 | 0.224044 | 0.13388 | 0.13388 | 0.13388 | 0 | 0.022624 | 0.210714 | 1,120 | 39 | 93 | 28.717949 | 0.80543 | 0.297321 | 0 | 0.125 | 0 | 0 | 0.026207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.125 | 0 | 0.5625 | 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 |
e1e269241f2f959b917956ee9994b586c4e50a9e | 1,715 | py | Python | HI2021/XSS-BruteLogic/XSS-BruteLogic.py | Aporlorxl23/CTF | fe12a9ddc2099a3985f78fc0b9323bbd9b347b19 | [
"MIT"
] | null | null | null | HI2021/XSS-BruteLogic/XSS-BruteLogic.py | Aporlorxl23/CTF | fe12a9ddc2099a3985f78fc0b9323bbd9b347b19 | [
"MIT"
] | null | null | null | HI2021/XSS-BruteLogic/XSS-BruteLogic.py | Aporlorxl23/CTF | fe12a9ddc2099a3985f78fc0b9323bbd9b347b19 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from PIL import Image
import cv2
from Crypto.Cipher import AES
import hashlib
import getpass
import sys
def decrypt():
print("Decrypting")
path = raw_input("Enter full path of image : ")
path = str(path)
img = cv2.imread(path)
binary = ""
list = [... | 24.15493 | 55 | 0.430904 | 211 | 1,715 | 3.483412 | 0.331754 | 0.073469 | 0.097959 | 0.106122 | 0.273469 | 0.136054 | 0.054422 | 0.054422 | 0 | 0 | 0 | 0.036254 | 0.420991 | 1,715 | 70 | 56 | 24.5 | 0.703927 | 0.03207 | 0 | 0 | 0 | 0 | 0.032609 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018868 | false | 0.056604 | 0.113208 | 0 | 0.132075 | 0.037736 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e1e4d35536b18964c8ff28ec83a0032bbf2eab20 | 1,854 | py | Python | generate_tables.py | kolya95/static_analyzer | bea091d57a55639b801d5bf5fd86f0a403df164b | [
"Apache-2.0"
] | 1 | 2015-02-27T13:26:20.000Z | 2015-02-27T13:26:20.000Z | generate_tables.py | kolya95/static_analyzer | bea091d57a55639b801d5bf5fd86f0a403df164b | [
"Apache-2.0"
] | null | null | null | generate_tables.py | kolya95/static_analyzer | bea091d57a55639b801d5bf5fd86f0a403df164b | [
"Apache-2.0"
] | null | null | null | __author__ = 'kolya'
from inspect import getmembers as gm
import csv, os
types_array = [1, 1.0, "1", [1], (1,), {1}, {1: 1}, True, bytes(1)]
if __name__ == '__main__':
print_table = {str(type(types_array[j]))[8:-2]:{} for j in range(len(types_array))}
no_arg_pt = {str(type(types_array[j]))[8:-2]:{} for j in ... | 33.709091 | 193 | 0.53452 | 273 | 1,854 | 3.43956 | 0.194139 | 0.170394 | 0.096912 | 0.095847 | 0.685836 | 0.605964 | 0.584665 | 0.467519 | 0.364217 | 0.306709 | 0 | 0.022288 | 0.274002 | 1,854 | 55 | 194 | 33.709091 | 0.675334 | 0 | 0 | 0.477273 | 0 | 0 | 0.027493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.045455 | 0 | 0.045455 | 0.113636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e1e8956c587fca99b71e699925fb177652e0e9f6 | 8,894 | py | Python | build-release-tools/application/nightly_build_clean_up.py | PengTian0/on-build-config | ea313b5996ec1b72b7e293886244a75ecbe7ba33 | [
"Apache-2.0"
] | 3 | 2017-06-23T02:04:46.000Z | 2021-04-27T02:46:47.000Z | build-release-tools/application/nightly_build_clean_up.py | PengTian0/on-build-config | ea313b5996ec1b72b7e293886244a75ecbe7ba33 | [
"Apache-2.0"
] | 282 | 2016-02-26T23:28:45.000Z | 2017-12-20T08:45:35.000Z | build-release-tools/application/nightly_build_clean_up.py | PengTian0/on-build-config | ea313b5996ec1b72b7e293886244a75ecbe7ba33 | [
"Apache-2.0"
] | 47 | 2016-02-26T01:58:37.000Z | 2018-10-23T09:44:30.000Z | #!/usr/bin/env python
"""
Nightly build will only be stored for two weeks.
This is a command line program that clean up the overdue nightly builds.
NOTE:
The release build will never be deleted by this script.
because
get_build_date_from_version() will return NULL for bintray/dockerhub sub routine, and "continue" to... | 39.180617 | 131 | 0.651113 | 1,167 | 8,894 | 4.818338 | 0.203942 | 0.051218 | 0.033256 | 0.035568 | 0.377023 | 0.258225 | 0.171794 | 0.139427 | 0.126978 | 0.095678 | 0 | 0.018399 | 0.24837 | 8,894 | 226 | 132 | 39.353982 | 0.822737 | 0.038003 | 0 | 0.201681 | 0 | 0 | 0.213934 | 0.004108 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008403 | 0.092437 | null | null | 0.092437 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e1eac2488924a80052be930b254b500cfb275a92 | 1,670 | py | Python | pants/recipes/migrations/0007_component.py | osagga/PriceAndNutritionTrackingSystem | 6b654dcb6ad5902554471d98000a719f06ec03d9 | [
"Apache-2.0"
] | 72 | 2019-01-29T13:22:34.000Z | 2022-01-06T09:42:33.000Z | pants/recipes/migrations/0007_component.py | osagga/PriceAndNutritionTrackingSystem | 6b654dcb6ad5902554471d98000a719f06ec03d9 | [
"Apache-2.0"
] | 14 | 2019-05-10T19:59:26.000Z | 2021-01-11T00:37:17.000Z | pants/recipes/migrations/0007_component.py | osagga/PriceAndNutritionTrackingSystem | 6b654dcb6ad5902554471d98000a719f06ec03d9 | [
"Apache-2.0"
] | 17 | 2020-03-03T21:24:09.000Z | 2022-01-06T09:42:37.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-07-13 17:49
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('ingredients', '0001_squashed_... | 49.117647 | 174 | 0.662275 | 194 | 1,670 | 5.494845 | 0.453608 | 0.045028 | 0.065666 | 0.103189 | 0.337711 | 0.285178 | 0.285178 | 0.250469 | 0.250469 | 0.250469 | 0 | 0.055762 | 0.194611 | 1,670 | 33 | 175 | 50.606061 | 0.736803 | 0.040719 | 0 | 0 | 1 | 0 | 0.173233 | 0.065666 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.269231 | 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 |
e1f1adb595958be4a0ab6f7693b9e6fcf43a55dc | 1,461 | py | Python | meiduo_mall/apps/meiduo_admin/serializers/orders.py | Vent-Any/meiduo_first_commit | 75c5da7a29733d8135342f4cd357c67c10a40ae1 | [
"MIT"
] | 1 | 2021-07-28T13:28:39.000Z | 2021-07-28T13:28:39.000Z | meiduo_mall/apps/meiduo_admin/serializers/orders.py | Vent-Any/meiduo_first_commit | 75c5da7a29733d8135342f4cd357c67c10a40ae1 | [
"MIT"
] | null | null | null | meiduo_mall/apps/meiduo_admin/serializers/orders.py | Vent-Any/meiduo_first_commit | 75c5da7a29733d8135342f4cd357c67c10a40ae1 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from apps.goods.models import SKU
from apps.orders.models import OrderInfo, OrderGoods
class OrdersModelSerializer(serializers.ModelSerializer):
class Meta:
model = OrderInfo
fields = '__all__'
class SKUModelSerializer(serializers.ModelSerializer):
# #... | 27.566038 | 118 | 0.698152 | 128 | 1,461 | 7.84375 | 0.375 | 0.129482 | 0.069721 | 0.068725 | 0.15239 | 0.15239 | 0.15239 | 0 | 0 | 0 | 0 | 0 | 0.19781 | 1,461 | 52 | 119 | 28.096154 | 0.856655 | 0.23614 | 0 | 0.307692 | 0 | 0 | 0.11283 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.115385 | 0 | 0.615385 | 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 |
e1f2be75f1486dd9ac6c520b7bd39d25f7d58544 | 6,996 | py | Python | dash_bio/FornaContainer.py | brybackGMet/dash-bio | 31cc7828e26094c4c49b08374dc515ef25637834 | [
"MIT"
] | 1 | 2022-01-14T19:44:57.000Z | 2022-01-14T19:44:57.000Z | dash_bio/FornaContainer.py | apblair/dash-bio | aab01c520460e69eda29e07c97c3a9f9aef61f60 | [
"MIT"
] | null | null | null | dash_bio/FornaContainer.py | apblair/dash-bio | aab01c520460e69eda29e07c97c3a9f9aef61f60 | [
"MIT"
] | null | null | null | # AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class FornaContainer(Component):
"""A FornaContainer component.
FornaContainer is a force-directed graph that is used to visualize
the secondary structure of biomolecules. It is based on the fornac
librar... | 44.846154 | 358 | 0.682533 | 904 | 6,996 | 5.236726 | 0.306416 | 0.012674 | 0.012674 | 0.006971 | 0.100338 | 0.082805 | 0.082805 | 0.082805 | 0.082805 | 0.067596 | 0 | 0.003582 | 0.24171 | 6,996 | 155 | 359 | 45.135484 | 0.888784 | 0.790452 | 0 | 0 | 1 | 0 | 0.203614 | 0.030577 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.157895 | 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 |
e1f526288d762b4985996977d90426fd631d07e5 | 338 | py | Python | fondo_api/services/alexa/handlers/abstract_handler.py | Fonmon/Fondo-API | 0c78eaab259df18219c01fceb67bd1b6ff8ec941 | [
"MIT"
] | null | null | null | fondo_api/services/alexa/handlers/abstract_handler.py | Fonmon/Fondo-API | 0c78eaab259df18219c01fceb67bd1b6ff8ec941 | [
"MIT"
] | 48 | 2018-01-13T14:52:52.000Z | 2022-03-13T17:41:42.000Z | fondo_api/services/alexa/handlers/abstract_handler.py | Fonmon/Fondo-API | 0c78eaab259df18219c01fceb67bd1b6ff8ec941 | [
"MIT"
] | null | null | null | import os
from abc import ABC, abstractmethod
class AbstractRequestHandler(ABC):
def __init__(self, data, user_id):
self.data = data
self.user_id = user_id
self.skill_banner = "https://{}/static/banner.png".format(os.environ.get('ALLOWED_HOST_DOMAIN'))
@abstractmethod
def handle(se... | 26 | 104 | 0.674556 | 43 | 338 | 5.069767 | 0.604651 | 0.082569 | 0.091743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213018 | 338 | 12 | 105 | 28.166667 | 0.819549 | 0 | 0 | 0 | 0 | 0 | 0.139053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.1 | 0.2 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e1f8c70de9c1ee2d0dc0d67b108ff3b9fe2ffa51 | 3,257 | py | Python | python/fastquant/notification.py | BurnzZ/fastquant | 04cc01cd7238ace6235bb06fe893b23b69a7b2c8 | [
"MIT"
] | 3 | 2021-05-31T03:39:52.000Z | 2021-06-24T17:58:59.000Z | python/fastquant/notification.py | BurnzZ/fastquant | 04cc01cd7238ace6235bb06fe893b23b69a7b2c8 | [
"MIT"
] | null | null | null | python/fastquant/notification.py | BurnzZ/fastquant | 04cc01cd7238ace6235bb06fe893b23b69a7b2c8 | [
"MIT"
] | 1 | 2021-07-23T10:02:46.000Z | 2021-07-23T10:02:46.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import json
import pandas as pd
import requests
import os
from datetime import datetime, timedelta
import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from fastquant.data.stocks.stocks import get_stock_data
def periodic_fetc... | 33.927083 | 102 | 0.659196 | 448 | 3,257 | 4.691964 | 0.388393 | 0.028544 | 0.026166 | 0.040438 | 0.181256 | 0.117983 | 0.094196 | 0.094196 | 0.094196 | 0.039962 | 0 | 0.006235 | 0.212158 | 3,257 | 95 | 103 | 34.284211 | 0.812938 | 0.221062 | 0 | 0.116667 | 0 | 0 | 0.1251 | 0 | 0 | 0 | 0 | 0.010526 | 0.016667 | 1 | 0.083333 | false | 0.033333 | 0.15 | 0 | 0.266667 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
e1fb8327d067632db6184f7bc317f60d55ab14fd | 344 | py | Python | pyleecan/Methods/Slot/HoleM53/get_height_magnet.py | helene-t/pyleecan | 8362de9b0e32b346051b38192e07f3a6974ea9aa | [
"Apache-2.0"
] | 1 | 2021-02-26T12:28:45.000Z | 2021-02-26T12:28:45.000Z | Methods/Slot/HoleM53/get_height_magnet.py | magnetron/pyleecan | 2a3338f4ab080ad6488b5ab8746c3fea1f36f177 | [
"Apache-2.0"
] | null | null | null | Methods/Slot/HoleM53/get_height_magnet.py | magnetron/pyleecan | 2a3338f4ab080ad6488b5ab8746c3fea1f36f177 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
def get_height_magnet(self):
"""get the height of the hole magnets
Parameters
----------
self : HoleM53
A HoleM53 object
Returns
-------
Hmag: float
height of the 2 Magnets [m]
"""
# magnet_0 and magnet_1 have the same height
Hmag = s... | 14.956522 | 48 | 0.549419 | 44 | 344 | 4.204545 | 0.636364 | 0.086486 | 0.118919 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038961 | 0.328488 | 344 | 22 | 49 | 15.636364 | 0.761905 | 0.639535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c004e5ca9fc16d59c0322ccb0e911763fb93a597 | 4,214 | py | Python | ebl/transliteration/application/parallel_line_schemas.py | ElectronicBabylonianLiterature/dictionary | 5977a57314cf57f94f75cd12520f178b1d6a6555 | [
"MIT"
] | null | null | null | ebl/transliteration/application/parallel_line_schemas.py | ElectronicBabylonianLiterature/dictionary | 5977a57314cf57f94f75cd12520f178b1d6a6555 | [
"MIT"
] | null | null | null | ebl/transliteration/application/parallel_line_schemas.py | ElectronicBabylonianLiterature/dictionary | 5977a57314cf57f94f75cd12520f178b1d6a6555 | [
"MIT"
] | null | null | null | from marshmallow import Schema, fields, post_load, validate
from ebl.corpus.application.id_schemas import TextIdSchema
from ebl.corpus.domain.chapter import Stage
from ebl.transliteration.application.museum_number_schema import MuseumNumberSchema
from ebl.schemas import NameEnum, ValueEnum
from ebl.transliteration.app... | 33.444444 | 85 | 0.699573 | 438 | 4,214 | 6.591324 | 0.216895 | 0.049879 | 0.060963 | 0.057153 | 0.255975 | 0.195705 | 0.166609 | 0.166609 | 0.132317 | 0.132317 | 0 | 0.000295 | 0.194589 | 4,214 | 125 | 86 | 33.712 | 0.850324 | 0 | 0 | 0.180952 | 0 | 0 | 0.061224 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.114286 | 0.057143 | 0.514286 | 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 |
c007aa6bfdef17b06fbeef2ad3cf0537eb0406e0 | 882 | py | Python | ymmsl/__init__.py | multiscale/ymmsl-python | f8a63232823ad655530a83570443d9c045ef9929 | [
"Apache-2.0"
] | 1 | 2018-12-13T18:09:09.000Z | 2018-12-13T18:09:09.000Z | ymmsl/__init__.py | multiscale/ymmsl-python | f8a63232823ad655530a83570443d9c045ef9929 | [
"Apache-2.0"
] | 10 | 2018-11-13T16:12:38.000Z | 2021-07-21T13:16:43.000Z | ymmsl/__init__.py | multiscale/ymmsl-python | f8a63232823ad655530a83570443d9c045ef9929 | [
"Apache-2.0"
] | null | null | null | """Python bindings for yMMSL.
This package contains all the classes needed to represent a yMMSL file,
as well as to read and write yMMSL files.
"""
from ymmsl.component import Operator, Port
from ymmsl.configuration import Configuration, PartialConfiguration
from ymmsl.execution import Implementation, Resources
from ... | 33.923077 | 72 | 0.743764 | 101 | 882 | 6.336634 | 0.544554 | 0.098438 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005333 | 0.14966 | 882 | 25 | 73 | 35.28 | 0.848 | 0.159864 | 0 | 0 | 0 | 0 | 0.27248 | 0.032698 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.466667 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c007d10213a9fc28e603e552ddd0a49791b5b175 | 14,536 | py | Python | configs/topologies/HierarchicalCMesh.py | guyfleeman/gem5 | cc217a98e5d3a07102e5b08536fa4b3960f27658 | [
"BSD-3-Clause"
] | null | null | null | configs/topologies/HierarchicalCMesh.py | guyfleeman/gem5 | cc217a98e5d3a07102e5b08536fa4b3960f27658 | [
"BSD-3-Clause"
] | 1 | 2021-04-17T17:13:56.000Z | 2021-04-17T17:13:56.000Z | configs/topologies/HierarchicalCMesh.py | guyfleeman/gem5 | cc217a98e5d3a07102e5b08536fa4b3960f27658 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2010 Advanced Micro Devices, Inc.
# 2016 Georgia Institute of Technology
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met: redistributions of source code must retain ... | 44.452599 | 78 | 0.548431 | 1,762 | 14,536 | 4.317821 | 0.16118 | 0.034963 | 0.023659 | 0.043375 | 0.525105 | 0.456887 | 0.403654 | 0.365011 | 0.313486 | 0.275368 | 0 | 0.016747 | 0.375619 | 14,536 | 326 | 79 | 44.588957 | 0.821507 | 0.281852 | 0 | 0.399103 | 0 | 0 | 0.017415 | 0 | 0 | 0 | 0 | 0.003067 | 0.004484 | 0 | null | null | 0 | 0.017937 | null | null | 0.004484 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c00a0dd6a6715bc1066087cd3654d967d4dab288 | 589 | py | Python | data/utils/timer.py | dafrie/fin-disclosures-nlp | aa89013a1b3c621df261d70cad16aeef15c34d25 | [
"MIT"
] | 2 | 2020-06-08T17:07:17.000Z | 2020-06-25T16:04:38.000Z | data/utils/timer.py | dafrie/fin-disclosures-nlp | aa89013a1b3c621df261d70cad16aeef15c34d25 | [
"MIT"
] | 2 | 2020-05-11T17:37:59.000Z | 2020-05-11T17:41:12.000Z | data/utils/timer.py | dafrie/fin-disclosures-nlp | aa89013a1b3c621df261d70cad16aeef15c34d25 | [
"MIT"
] | null | null | null | import logging
from functools import wraps
from datetime import datetime
"""Decorator for logging the duration of a method call"""
def timer(func):
@wraps(func)
def wrapper(*args, **kwargs):
start = datetime.now()
result = func(*args, **kwargs)
end = datetime.now()
duration = ... | 28.047619 | 64 | 0.643463 | 70 | 589 | 5.342857 | 0.557143 | 0.053476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251273 | 589 | 20 | 65 | 29.45 | 0.848073 | 0.08489 | 0 | 0 | 0 | 0 | 0.110417 | 0 | 0 | 0 | 0 | 0.05 | 0 | 1 | 0.133333 | false | 0 | 0.2 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c00d7f1fc21d3d1d7bb9f56617d00a2bc76ee788 | 2,338 | py | Python | test/mrWolf/sin/test_lib/gen_stimuli.py | tiborschneider/pulp-dsp | 2864134f70db7c1d8e9384da55a762e9b25d3440 | [
"Apache-2.0"
] | 19 | 2020-01-10T10:10:19.000Z | 2022-03-21T06:45:21.000Z | test/mrWolf/sin/test_lib/gen_stimuli.py | tiborschneider/pulp-dsp | 2864134f70db7c1d8e9384da55a762e9b25d3440 | [
"Apache-2.0"
] | 8 | 2020-01-09T12:22:25.000Z | 2022-01-07T13:41:40.000Z | test/mrWolf/sin/test_lib/gen_stimuli.py | tiborschneider/pulp-dsp | 2864134f70db7c1d8e9384da55a762e9b25d3440 | [
"Apache-2.0"
] | 29 | 2020-01-25T13:46:40.000Z | 2022-03-26T07:39:57.000Z | #!/usr/bin/env python3
import numpy as np
####################
# generate_stimuli #
####################
def generate_stimuli(arg, env):
"""
Function to generate the stimuli
Arguments
---------
arg: Argument for which to generate stimuli (either Argument or ArrayArgument)
env: Dict mapping... | 23.148515 | 91 | 0.573995 | 319 | 2,338 | 4.081505 | 0.329154 | 0.032258 | 0.021505 | 0.02765 | 0.199693 | 0.138249 | 0.138249 | 0.138249 | 0.138249 | 0.110599 | 0 | 0.023631 | 0.257913 | 2,338 | 100 | 92 | 23.38 | 0.726801 | 0.353293 | 0 | 0.04878 | 1 | 0 | 0.062787 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.170732 | false | 0 | 0.02439 | 0.073171 | 0.414634 | 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 |
c01030885b2eea7ff10f70f953b90d415830fbe2 | 1,597 | py | Python | consul/tests/common.py | jfmyers9/integrations-core | 8793c784f1d5b2c9541b2dd4214dd91584793ced | [
"BSD-3-Clause"
] | null | null | null | consul/tests/common.py | jfmyers9/integrations-core | 8793c784f1d5b2c9541b2dd4214dd91584793ced | [
"BSD-3-Clause"
] | 1 | 2021-02-23T14:03:42.000Z | 2021-03-25T16:52:05.000Z | consul/tests/common.py | jfmyers9/integrations-core | 8793c784f1d5b2c9541b2dd4214dd91584793ced | [
"BSD-3-Clause"
] | null | null | null | # (C) Datadog, Inc. 2018-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
import os
from packaging import version
from datadog_checks.dev import get_docker_hostname
PORT = '8500'
HOST = get_docker_hostname()
URL = 'http://{}:{}'.format(HOST, PORT)
CHECK_NAME = 'consul'
HE... | 29.574074 | 86 | 0.718222 | 201 | 1,597 | 5.616915 | 0.427861 | 0.170062 | 0.049601 | 0.04783 | 0.056687 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008671 | 0.133375 | 1,597 | 53 | 87 | 30.132075 | 0.807081 | 0.103945 | 0 | 0 | 0 | 0 | 0.584853 | 0.543478 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c012f546e61b0f9a1e81a08e5f317ecd18479ba0 | 2,174 | py | Python | TextSimilarityExercise/src/Similarity.py | PlumpPikachu/FetchPracticals | 7feba0fe4183eece3c2f5afd92d0b2e38e03d549 | [
"MIT"
] | null | null | null | TextSimilarityExercise/src/Similarity.py | PlumpPikachu/FetchPracticals | 7feba0fe4183eece3c2f5afd92d0b2e38e03d549 | [
"MIT"
] | null | null | null | TextSimilarityExercise/src/Similarity.py | PlumpPikachu/FetchPracticals | 7feba0fe4183eece3c2f5afd92d0b2e38e03d549 | [
"MIT"
] | null | null | null | import math
import TextPrep as prep
"""
Gets cosine similarity of two documents
"""
def GetCosineSimilarity(doc1, doc2):
# wrapper function to clean documents and return cosine similarity
cleanDoc1 = prep.CleanDocument(doc1)
cleanDoc2 = prep.CleanDocument(doc2)
docVec1, docVec2 = __bagOfWords__(... | 27.871795 | 129 | 0.708372 | 293 | 2,174 | 5.09215 | 0.453925 | 0.053619 | 0.024129 | 0.02815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032464 | 0.206532 | 2,174 | 77 | 130 | 28.233766 | 0.832464 | 0.267709 | 0 | 0 | 0 | 0 | 0.04424 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0.035714 | 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 |
c014496499188edabd56c699f59ca18c7e70c2e7 | 334 | py | Python | neighbourhoodapp/migrations/0006_remove_post_photo.py | marknesh/neighbourhood-watch | 57e36c800b9e4898be9f4949c80c902f7627699a | [
"MIT"
] | null | null | null | neighbourhoodapp/migrations/0006_remove_post_photo.py | marknesh/neighbourhood-watch | 57e36c800b9e4898be9f4949c80c902f7627699a | [
"MIT"
] | 10 | 2020-03-24T10:47:53.000Z | 2021-04-08T19:51:44.000Z | neighbourhoodapp/migrations/0006_remove_post_photo.py | marknesh/Neighbourhood-Watch | 57e36c800b9e4898be9f4949c80c902f7627699a | [
"MIT"
] | null | null | null | # Generated by Django 3.0.4 on 2020-03-26 16:13
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('neighbourhoodapp', '0005_auto_20200326_1744'),
]
operations = [
migrations.RemoveField(
model_name='post',
name='photo',
... | 18.555556 | 56 | 0.598802 | 35 | 334 | 5.6 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130802 | 0.290419 | 334 | 17 | 57 | 19.647059 | 0.696203 | 0.134731 | 0 | 0 | 1 | 0 | 0.167247 | 0.080139 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c0203a2a9bfc882db899561a214487eed1015862 | 5,580 | py | Python | macro/makeDecay.py | Plamenna/proba | 517d7e437865c372e538f77d2242c188740f35d9 | [
"BSD-4-Clause"
] | null | null | null | macro/makeDecay.py | Plamenna/proba | 517d7e437865c372e538f77d2242c188740f35d9 | [
"BSD-4-Clause"
] | null | null | null | macro/makeDecay.py | Plamenna/proba | 517d7e437865c372e538f77d2242c188740f35d9 | [
"BSD-4-Clause"
] | null | null | null | #Use Pythia8 to decay the signals (Charm/Beauty) as produced by makeCascade.
#Output is an ntuple with muon/neutrinos
import ROOT,time,os,sys,random,getopt
import rootUtils as ut
ROOT.gROOT.LoadMacro("$VMCWORKDIR/gconfig/basiclibs.C")
ROOT.basiclibs()
fname='Cascade50k-parp16-MSTP82-1-MSEL4'
nrpotspill=5.e13 #number... | 33.413174 | 143 | 0.637097 | 911 | 5,580 | 3.902305 | 0.339188 | 0.009001 | 0.020253 | 0.011814 | 0.125176 | 0.086076 | 0.075387 | 0.075387 | 0.069761 | 0.069761 | 0 | 0.057568 | 0.193728 | 5,580 | 166 | 144 | 33.614458 | 0.732607 | 0.157527 | 0 | 0.150794 | 0 | 0.007937 | 0.222603 | 0.03125 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.015873 | null | null | 0.15873 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c020a20e030ddf82517f54d23c0c8a5bfbd808a2 | 2,575 | py | Python | subtrees/z_quantum_actions/bin/get_next_version.py | vtomole/qe-cirq | f015e5bff8a64325a81911696452658fe1ce6d8b | [
"Apache-2.0"
] | null | null | null | subtrees/z_quantum_actions/bin/get_next_version.py | vtomole/qe-cirq | f015e5bff8a64325a81911696452658fe1ce6d8b | [
"Apache-2.0"
] | null | null | null | subtrees/z_quantum_actions/bin/get_next_version.py | vtomole/qe-cirq | f015e5bff8a64325a81911696452658fe1ce6d8b | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python3
# This script ia intended to be run from within a Github Action.
# Reads current project version, bumps "minor", and sets the "next_version" output
# variable using Github's special stdout syntax.
import re
import subprocess
import typing as t
class Semver(t.NamedTuple):
major: int
... | 26.822917 | 115 | 0.638835 | 348 | 2,575 | 4.609195 | 0.396552 | 0.041147 | 0.022444 | 0.017456 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005071 | 0.234175 | 2,575 | 95 | 116 | 27.105263 | 0.808316 | 0.309903 | 0 | 0.074074 | 0 | 0.018519 | 0.191404 | 0.058453 | 0 | 0 | 0 | 0.010526 | 0 | 1 | 0.111111 | false | 0 | 0.055556 | 0.037037 | 0.333333 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c0213577173b49a5050f38ef6d1ecb5b73017b11 | 1,908 | py | Python | tests/test_path_factory.py | JeroenDM/acrobotics | d734ca25f40015e5c5ff019402a83504783c13cd | [
"MIT"
] | 4 | 2019-05-06T21:36:52.000Z | 2021-06-17T09:00:29.000Z | tests/test_path_factory.py | JeroenDM/acrobotics | d734ca25f40015e5c5ff019402a83504783c13cd | [
"MIT"
] | 7 | 2019-09-16T14:05:12.000Z | 2020-09-16T14:35:25.000Z | tests/test_path_factory.py | JeroenDM/acrobotics | d734ca25f40015e5c5ff019402a83504783c13cd | [
"MIT"
] | 1 | 2019-10-01T23:32:27.000Z | 2019-10-01T23:32:27.000Z | import numpy as np
from numpy.testing import assert_almost_equal
from acrolib.quaternion import Quaternion
from acrobotics.path.factory import create_line, create_arc
from acrobotics.path.path_pt import TolPositionPt, TolEulerPt
from acrobotics.path.tolerance import Tolerance, SymmetricTolerance, NoTolerance
class ... | 35.333333 | 83 | 0.59696 | 275 | 1,908 | 4 | 0.170909 | 0.12 | 0.17 | 0.089091 | 0.434545 | 0.314545 | 0.22 | 0.22 | 0.136364 | 0.081818 | 0 | 0.070671 | 0.258386 | 1,908 | 53 | 84 | 36 | 0.706714 | 0 | 0 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.422222 | 1 | 0.044444 | false | 0 | 0.133333 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c0232951de3b8bb3ca6182c802f23691e76a97dc | 477 | py | Python | tests/test_fields_error_messages.py | vrtaquest/validator | 27e9604a161daacfe96a1a833777f5143a3c5619 | [
"MIT"
] | null | null | null | tests/test_fields_error_messages.py | vrtaquest/validator | 27e9604a161daacfe96a1a833777f5143a3c5619 | [
"MIT"
] | null | null | null | tests/test_fields_error_messages.py | vrtaquest/validator | 27e9604a161daacfe96a1a833777f5143a3c5619 | [
"MIT"
] | null | null | null | from .utils.fixtures import invalid_user_validator
from .utils.validator_functions import TestValidators
def test_invalid_email_error_msg(invalid_user_validator):
"""
Tests that the validator properly validates invalid fields.
"""
user = invalid_user_validator
user.is_valid()
passed, error_ms... | 28.058824 | 67 | 0.754717 | 62 | 477 | 5.516129 | 0.467742 | 0.116959 | 0.175439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002513 | 0.165618 | 477 | 16 | 68 | 29.8125 | 0.856784 | 0.12369 | 0 | 0 | 0 | 0 | 0.024876 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.111111 | false | 0.111111 | 0.222222 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c02a600da12219438b5de30c0cebd564dea4c378 | 26,761 | py | Python | acme/acme/messages.py | lpmitchell/certbot | fe0c0dc3ae6c25c6087e51717a223f38a9b23d2f | [
"Apache-2.0"
] | null | null | null | acme/acme/messages.py | lpmitchell/certbot | fe0c0dc3ae6c25c6087e51717a223f38a9b23d2f | [
"Apache-2.0"
] | null | null | null | acme/acme/messages.py | lpmitchell/certbot | fe0c0dc3ae6c25c6087e51717a223f38a9b23d2f | [
"Apache-2.0"
] | 1 | 2022-03-31T07:54:20.000Z | 2022-03-31T07:54:20.000Z | """ACME protocol messages."""
import datetime
from collections.abc import Hashable
import json
from typing import Any
from typing import Dict
from typing import Iterator
from typing import List
from typing import Mapping
from typing import MutableMapping
from typing import Optional
from typing import Tuple
from typing ... | 37.744711 | 162 | 0.676171 | 3,215 | 26,761 | 5.497356 | 0.175117 | 0.02597 | 0.015616 | 0.005092 | 0.205273 | 0.14875 | 0.136868 | 0.118649 | 0.086455 | 0.071857 | 0 | 0.003097 | 0.21565 | 26,761 | 708 | 163 | 37.798023 | 0.838923 | 0.278278 | 0 | 0.171745 | 0 | 0 | 0.152685 | 0.011304 | 0 | 0 | 0 | 0.004237 | 0.00277 | 1 | 0.119114 | false | 0 | 0.063712 | 0.036011 | 0.565097 | 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 |
c02d771e86cdea5b811dd9ff6493da350cf91037 | 3,416 | py | Python | py/msbuild_tools.py | Nettsentrisk/vscode-msbuild-tools | c1e83e31cf89dd1a707e0f0f9d145870097e367d | [
"MIT"
] | 21 | 2017-11-12T12:12:13.000Z | 2021-06-01T17:01:04.000Z | py/msbuild_tools.py | Nettsentrisk/vscode-msbuild-tools | c1e83e31cf89dd1a707e0f0f9d145870097e367d | [
"MIT"
] | 12 | 2017-12-14T17:43:54.000Z | 2022-03-13T18:33:29.000Z | py/msbuild_tools.py | Nettsentrisk/vscode-msbuild-tools | c1e83e31cf89dd1a707e0f0f9d145870097e367d | [
"MIT"
] | 14 | 2017-11-03T00:34:23.000Z | 2021-06-29T17:29:07.000Z | import os
import json
import subprocess
import click
class expander(object):
def __init__(self, M):
self.M = { '${%s}'%k : v for k, v in M.iteritems() }
self.topological_order = []
visiting = set()
visited = set()
level = [0]
def visit(var):
... | 24.22695 | 94 | 0.527518 | 413 | 3,416 | 4.297821 | 0.280872 | 0.016901 | 0.056338 | 0.011831 | 0.087887 | 0.050704 | 0 | 0 | 0 | 0 | 0 | 0.002145 | 0.317623 | 3,416 | 140 | 95 | 24.4 | 0.759331 | 0.00644 | 0 | 0.094737 | 0 | 0 | 0.106427 | 0.014446 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.031579 | 0.042105 | null | null | 0.021053 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c037ab2c1858a363bf9c7b3896b0fa6ef9899863 | 1,199 | py | Python | hio-yocto-bsp/sources/poky/meta/lib/oeqa/runtime/python.py | qiangzai00001/hio-prj | 060ff97fe21093b1369db78109d5b730b2b181c8 | [
"MIT"
] | null | null | null | hio-yocto-bsp/sources/poky/meta/lib/oeqa/runtime/python.py | qiangzai00001/hio-prj | 060ff97fe21093b1369db78109d5b730b2b181c8 | [
"MIT"
] | null | null | null | hio-yocto-bsp/sources/poky/meta/lib/oeqa/runtime/python.py | qiangzai00001/hio-prj | 060ff97fe21093b1369db78109d5b730b2b181c8 | [
"MIT"
] | null | null | null | import unittest
import os
from oeqa.oetest import oeRuntimeTest, skipModule
from oeqa.utils.decorators import *
def setUpModule():
if not oeRuntimeTest.hasPackage("python"):
skipModule("No python package in the image")
class PythonTest(oeRuntimeTest):
@classmethod
def setUpClass(self):
o... | 35.264706 | 107 | 0.682235 | 159 | 1,199 | 5.100629 | 0.402516 | 0.029593 | 0.033292 | 0.073983 | 0.229346 | 0.19852 | 0.091245 | 0 | 0 | 0 | 0 | 0.007216 | 0.190992 | 1,199 | 33 | 108 | 36.333333 | 0.828866 | 0 | 0 | 0.083333 | 0 | 0 | 0.246872 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.25 | false | 0 | 0.166667 | 0 | 0.458333 | 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 |
c03b18ec7e833e2090d512ff68ab3eae56a3c433 | 4,440 | py | Python | 4. Fundamentals/capm.py | conquerv0/Pynance | 02dcfffd0a54374c603baad02ee31bc7ced7f670 | [
"Apache-2.0"
] | 16 | 2020-04-18T17:28:40.000Z | 2022-02-11T01:11:21.000Z | 4. Fundamentals/capm.py | conquerv0/Pynance | 02dcfffd0a54374c603baad02ee31bc7ced7f670 | [
"Apache-2.0"
] | 1 | 2020-07-22T02:22:03.000Z | 2020-07-22T02:22:03.000Z | 4. Fundamentals/capm.py | conquerv0/Pynance | 02dcfffd0a54374c603baad02ee31bc7ced7f670 | [
"Apache-2.0"
] | 6 | 2020-06-29T17:37:47.000Z | 2022-02-13T17:02:39.000Z | # Basic Setup
import numpy as np
import pandas as pd
import statsmodel.api as sm
from statsmodels import regression
import matplotlib.pyplot as plt
from scipy import optimize
import cvxopt as opt
from cvxopt import blas, solvers
np.random.seed(123)
# Turn off progress printing
solvers.options['show_progress'] = False
... | 31.267606 | 145 | 0.715315 | 700 | 4,440 | 4.448571 | 0.285714 | 0.034682 | 0.023121 | 0.016378 | 0.169878 | 0.143224 | 0.12203 | 0.082209 | 0.082209 | 0.082209 | 0 | 0.014171 | 0.157658 | 4,440 | 141 | 146 | 31.489362 | 0.818449 | 0.124775 | 0 | 0.077922 | 0 | 0 | 0.065534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.103896 | 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 |
c03c4ea39d76f8e7d0a83d941d5763727f3b6cbb | 12,093 | py | Python | bin/dbmv_new.py | ActianCorp/dbmv | cbf77adf0176caf48300753e34192edeaf9598cf | [
"Apache-2.0"
] | 23 | 2016-01-21T06:44:45.000Z | 2021-06-15T08:22:59.000Z | bin/dbmv_new.py | ActianCorp/dbmv | cbf77adf0176caf48300753e34192edeaf9598cf | [
"Apache-2.0"
] | null | null | null | bin/dbmv_new.py | ActianCorp/dbmv | cbf77adf0176caf48300753e34192edeaf9598cf | [
"Apache-2.0"
] | 17 | 2016-03-03T10:50:58.000Z | 2021-06-10T19:14:44.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*
# Copyright 2018 - 2019 Actian Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE... | 49.561475 | 135 | 0.61639 | 1,429 | 12,093 | 5.120364 | 0.277117 | 0.052891 | 0.099904 | 0.141041 | 0.263769 | 0.185322 | 0.099904 | 0.044007 | 0.022687 | 0 | 0 | 0.016713 | 0.262797 | 12,093 | 243 | 136 | 49.765432 | 0.804038 | 0.141156 | 0 | 0.029586 | 0 | 0.017751 | 0.367371 | 0.006944 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.059172 | null | null | 0.029586 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c04d198f9c775d2064a2dd5920b7f8450937dde7 | 1,382 | py | Python | intake_rolling_zarr/rolling_zarr.py | informatics-lab/intake-rolling-zarr | 2a454d34076e0fdc661db224969aeb0cd2b929fa | [
"BSD-2-Clause"
] | null | null | null | intake_rolling_zarr/rolling_zarr.py | informatics-lab/intake-rolling-zarr | 2a454d34076e0fdc661db224969aeb0cd2b929fa | [
"BSD-2-Clause"
] | null | null | null | intake_rolling_zarr/rolling_zarr.py | informatics-lab/intake-rolling-zarr | 2a454d34076e0fdc661db224969aeb0cd2b929fa | [
"BSD-2-Clause"
] | 1 | 2021-04-10T23:58:09.000Z | 2021-04-10T23:58:09.000Z | # -*- coding: utf-8 -*-
from . import __version__
from intake.source.base import DataSource
from .rolling_store import OffSetS3Map
import xarray
def maybe_to_iris(ds):
if len(ds.data_vars) == 1:
return ds[list(ds.data_vars)[0]].to_iris()
return ds
class RollingZarrSource(DataSource):
"""Common ... | 27.098039 | 73 | 0.585384 | 170 | 1,382 | 4.476471 | 0.452941 | 0.059133 | 0.085414 | 0.044678 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010471 | 0.308973 | 1,382 | 50 | 74 | 27.64 | 0.786387 | 0.11288 | 0 | 0.060606 | 0 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0 | 0.121212 | 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 |
c04e0a99548e5326a762a5a7b510aa3c40c62024 | 942 | py | Python | configs/default_app_config.py | marcoprado17/flask-bone | 772d25bdf6c6e41701da1ef2e2a67bae7ae21757 | [
"MIT"
] | null | null | null | configs/default_app_config.py | marcoprado17/flask-bone | 772d25bdf6c6e41701da1ef2e2a67bae7ae21757 | [
"MIT"
] | null | null | null | configs/default_app_config.py | marcoprado17/flask-bone | 772d25bdf6c6e41701da1ef2e2a67bae7ae21757 | [
"MIT"
] | null | null | null | # !/usr/bin/env python
# -*- coding: utf-8 -*-
# ======================================================================================================================
# The MIT License (MIT)
# ======================================================================================================================
# Copyr... | 36.230769 | 120 | 0.43949 | 82 | 942 | 4.853659 | 0.780488 | 0.060302 | 0.060302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018692 | 0.091295 | 942 | 25 | 121 | 37.68 | 0.446262 | 0.514862 | 0 | 0 | 0 | 0.076923 | 0.365256 | 0.075724 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c04e73ab958c5f550effe5d1df3468dd48e3e684 | 3,924 | py | Python | openstack/map_reduce/v1/job_execution.py | IamFive/sdk-python | 223b04f90477f7de0f00b3e652d8672ba73271c8 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | openstack/map_reduce/v1/job_execution.py | IamFive/sdk-python | 223b04f90477f7de0f00b3e652d8672ba73271c8 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | openstack/map_reduce/v1/job_execution.py | IamFive/sdk-python | 223b04f90477f7de0f00b3e652d8672ba73271c8 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # 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, software
# distributed under t... | 39.24 | 77 | 0.66998 | 498 | 3,924 | 5.13253 | 0.313253 | 0.079812 | 0.038341 | 0.046557 | 0.248044 | 0.226135 | 0.195618 | 0.134585 | 0.027387 | 0 | 0 | 0.001689 | 0.245413 | 3,924 | 99 | 78 | 39.636364 | 0.861533 | 0.382263 | 0 | 0.16 | 0 | 0 | 0.110825 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.06 | 0 | 0.66 | 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 |
c053786e953f9ff15bfcf4a56ddab92749524d81 | 500 | py | Python | bookmarks/urls.py | NotBlizzard/lark | b348f8d2b532ce20581030397cbba7f6565d1c56 | [
"MIT"
] | 2 | 2020-12-10T06:13:36.000Z | 2021-01-15T09:32:41.000Z | bookmarks/urls.py | NotBlizzard/lark | b348f8d2b532ce20581030397cbba7f6565d1c56 | [
"MIT"
] | 7 | 2021-03-10T21:21:55.000Z | 2021-09-22T19:20:03.000Z | bookmarks/urls.py | NotBlizzard/lark | b348f8d2b532ce20581030397cbba7f6565d1c56 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
from rest_framework.urlpatterns import format_suffix_patterns
from rest_framework import routers
urlpatterns = [
path('bookmark-post/', views.new_bookmark_for_post, name='new_bookmark_for_post'),
path('bookmark-comment/', views.new_bookmark_for_comment, name='ne... | 45.454545 | 95 | 0.778 | 68 | 500 | 5.411765 | 0.397059 | 0.119565 | 0.152174 | 0.103261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096 | 500 | 11 | 96 | 45.454545 | 0.814159 | 0.174 | 0 | 0 | 0 | 0 | 0.225182 | 0.108959 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c05fe1ca08acd6ad3e1a23ac89d39a648d37d6c2 | 5,453 | py | Python | syncWordStreamFilter.py | ohleck/gnuradio-gfsk-codec | ceb0923b459c172fd6ae2dd8ffb17064772bb112 | [
"MIT"
] | 4 | 2019-08-30T21:12:32.000Z | 2021-12-03T03:49:33.000Z | syncWordStreamFilter.py | ohleck/gnuradio-gfsk-codec | ceb0923b459c172fd6ae2dd8ffb17064772bb112 | [
"MIT"
] | null | null | null | syncWordStreamFilter.py | ohleck/gnuradio-gfsk-codec | ceb0923b459c172fd6ae2dd8ffb17064772bb112 | [
"MIT"
] | 1 | 2021-09-02T14:50:00.000Z | 2021-09-02T14:50:00.000Z | #!/usr/bin/python2.7
import socket, argparse, datetime, sys
# Usage:
# ./syncWordStreamFilter.py -ip localhost -port 7000 -syncWord 0x53 -packet_length 4 -display_time
#
# Optional: -verbose -display_time
# use '| more' to control the verbose output
#
# Simulation environment:
# The command bellow creates and TCP se... | 42.271318 | 178 | 0.717403 | 739 | 5,453 | 5.224628 | 0.305819 | 0.006734 | 0.010101 | 0.037296 | 0.157472 | 0.13727 | 0.125097 | 0.125097 | 0.097643 | 0.091686 | 0 | 0.03938 | 0.147809 | 5,453 | 128 | 179 | 42.601563 | 0.791478 | 0.241518 | 0 | 0.22093 | 0 | 0 | 0.181885 | 0.0056 | 0 | 0 | 0.00487 | 0 | 0 | 0 | null | null | 0 | 0.011628 | null | null | 0.290698 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c06510fbec77e5efd08a2925c437b8ac2b54c647 | 6,932 | py | Python | client.py | acronis/acronis-cyber-platform-python-samples | bfcbea06753a773ac889054f7e4dee2a6496a8de | [
"MIT"
] | 16 | 2019-10-12T12:14:57.000Z | 2021-11-29T12:06:58.000Z | client.py | acronis/acronis-cyber-platform-python-samples | bfcbea06753a773ac889054f7e4dee2a6496a8de | [
"MIT"
] | null | null | null | client.py | acronis/acronis-cyber-platform-python-samples | bfcbea06753a773ac889054f7e4dee2a6496a8de | [
"MIT"
] | 4 | 2019-10-18T17:16:14.000Z | 2021-11-16T20:35:43.000Z | """
@date 30.08.2019
@author Roman.Detinin@acronis.com
@details :copyright: 2003–2019 Acronis International GmbH,
Rheinweg 9, 8200 Schaffhausen, Switzerland. All rights reserved.
"""
import json
import logging
import os
import requests
from jsonschema import validate
from requests.auth import HTTPBasicA... | 33.814634 | 80 | 0.598096 | 775 | 6,932 | 5.147097 | 0.300645 | 0.036099 | 0.016295 | 0.012033 | 0.066683 | 0.038105 | 0.013537 | 0 | 0 | 0 | 0 | 0.005067 | 0.316647 | 6,932 | 204 | 81 | 33.980392 | 0.836817 | 0.277842 | 0 | 0.145299 | 0 | 0 | 0.164211 | 0.020073 | 0 | 0 | 0 | 0.004902 | 0 | 1 | 0.042735 | false | 0.094017 | 0.068376 | 0.025641 | 0.188034 | 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 |
c0657909148afafd0049155ae3616fd926549d81 | 814 | py | Python | Section 28/3_login_tests.py | PacktPublishing/Selenium-WebDriver-With-Python-3.x-Novice-To-Ninja | 724848afad290da84995096960a5482d0ce5f563 | [
"MIT"
] | null | null | null | Section 28/3_login_tests.py | PacktPublishing/Selenium-WebDriver-With-Python-3.x-Novice-To-Ninja | 724848afad290da84995096960a5482d0ce5f563 | [
"MIT"
] | null | null | null | Section 28/3_login_tests.py | PacktPublishing/Selenium-WebDriver-With-Python-3.x-Novice-To-Ninja | 724848afad290da84995096960a5482d0ce5f563 | [
"MIT"
] | null | null | null | from selenium import webdriver
from pages.home.login_page import LoginPage
import unittest
import pytest
class LoginTests(unittest.TestCase):
baseURL = "https://letskodeit.teachable.com/"
driver = webdriver.Firefox()
driver.maximize_window()
driver.implicitly_wait(3)
lp = LoginPage(driver... | 31.307692 | 53 | 0.662162 | 96 | 814 | 5.5625 | 0.489583 | 0.044944 | 0.048689 | 0.067416 | 0.191011 | 0.191011 | 0.191011 | 0.191011 | 0.191011 | 0.191011 | 0 | 0.004724 | 0.219902 | 814 | 26 | 54 | 31.307692 | 0.83622 | 0 | 0 | 0.173913 | 0 | 0 | 0.096081 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 0 | null | null | 0 | 0.173913 | 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 |
fbe7d1b8c820e4ccecfab3d07d35c133540149fa | 6,083 | py | Python | server/test_client.py | adp162/alexa-vera-bridge | 35d2d6a4058e2b165303fff19258e9e5dc3e9c87 | [
"MIT"
] | 13 | 2016-03-04T00:17:23.000Z | 2020-04-23T12:46:04.000Z | server/test_client.py | adp162/alexa-vera-bridge | 35d2d6a4058e2b165303fff19258e9e5dc3e9c87 | [
"MIT"
] | 5 | 2016-01-06T00:56:10.000Z | 2017-03-21T06:45:55.000Z | server/test_client.py | adp162/alexa-vera-bridge | 35d2d6a4058e2b165303fff19258e9e5dc3e9c87 | [
"MIT"
] | 4 | 2016-01-06T20:09:40.000Z | 2019-01-16T20:41:21.000Z | #!/usr/bin/python
import sys
import os
from shutil import copyfile
import argparse
import time
import threading
# Actually use the client code to test sending server message
# Note that you must have ../lambda in your PYTHONPATH variable for this
# to work (e.g. export PYTHONPATH=../lambda)
import client
# Thread to ... | 35.994083 | 103 | 0.573894 | 774 | 6,083 | 4.450904 | 0.281654 | 0.046444 | 0.0209 | 0.030189 | 0.27373 | 0.265893 | 0.238897 | 0.107402 | 0.065602 | 0.065602 | 0 | 0.010849 | 0.287851 | 6,083 | 168 | 104 | 36.208333 | 0.784395 | 0.23804 | 0 | 0.27193 | 0 | 0 | 0.21351 | 0.024544 | 0 | 0 | 0 | 0 | 0.017544 | 0 | null | null | 0 | 0.061404 | null | null | 0.219298 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fbefecc00f56597d2425b568fcdd883042df6aa2 | 3,529 | py | Python | dependencies/src/4Suite-XML-1.0.2/Ft/Lib/CommandLine/Arguments.py | aleasims/Peach | bb56841e943d719d5101fee0a503ed34308eda04 | [
"MIT"
] | null | null | null | dependencies/src/4Suite-XML-1.0.2/Ft/Lib/CommandLine/Arguments.py | aleasims/Peach | bb56841e943d719d5101fee0a503ed34308eda04 | [
"MIT"
] | null | null | null | dependencies/src/4Suite-XML-1.0.2/Ft/Lib/CommandLine/Arguments.py | aleasims/Peach | bb56841e943d719d5101fee0a503ed34308eda04 | [
"MIT"
] | 1 | 2020-07-26T03:57:45.000Z | 2020-07-26T03:57:45.000Z | ########################################################################
# $Header: /var/local/cvsroot/4Suite/Ft/Lib/CommandLine/Arguments.py,v 1.4 2005/04/13 23:41:04 jkloth Exp $
"""
Classes that support advanced arg processing for command-line scripts
Copyright 2004 Fourthought, Inc. (USA).
Detailed license and cop... | 31.792793 | 107 | 0.557098 | 422 | 3,529 | 4.509479 | 0.265403 | 0.056753 | 0.033106 | 0.035733 | 0.472937 | 0.464004 | 0.449816 | 0.414083 | 0.414083 | 0.393064 | 0 | 0.022382 | 0.291017 | 3,529 | 110 | 108 | 32.081818 | 0.738209 | 0.478606 | 0 | 0.444444 | 0 | 0 | 0.047844 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.022222 | 0.088889 | 0.644444 | 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 |
fbf16d1cabbfd0af7479cf2809b4bb095b33bb46 | 2,611 | py | Python | comp/nn/sequential/LSTM.py | Asichurter/MalFusionFSL | 713bf64cc07a3489f42941fd2299837075575ac0 | [
"MIT"
] | 4 | 2021-08-05T06:49:26.000Z | 2021-12-02T09:06:41.000Z | comp/nn/sequential/LSTM.py | Asichurter/MalFusionFSL | 713bf64cc07a3489f42941fd2299837075575ac0 | [
"MIT"
] | null | null | null | comp/nn/sequential/LSTM.py | Asichurter/MalFusionFSL | 713bf64cc07a3489f42941fd2299837075575ac0 | [
"MIT"
] | null | null | null | import torch as t
import torch.nn as nn
from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence
from comp.nn.reduction.selfatt import BiliAttnReduction
class BiLstmEncoder(nn.Module):
def __init__(self, input_size,
hidden_size=128,
layer_num=1,
... | 36.263889 | 122 | 0.561854 | 276 | 2,611 | 5.144928 | 0.365942 | 0.021127 | 0.029577 | 0.025352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01057 | 0.347759 | 2,611 | 72 | 123 | 36.263889 | 0.823253 | 0.231329 | 0 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013889 | 0 | 1 | 0.046512 | false | 0 | 0.093023 | 0 | 0.209302 | 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 |
fbf3a1926b6a7a6ccb57ebee1a37f7ac79f60458 | 7,482 | py | Python | utils/plot_curves.py | shashank-srikant/reckless-minimax | 840745614be59d75535a81ef5ca79f4abdfcfaa6 | [
"MIT"
] | 1 | 2020-05-02T14:48:06.000Z | 2020-05-02T14:48:06.000Z | utils/plot_curves.py | shashank-srikant/reckless-minimax | 840745614be59d75535a81ef5ca79f4abdfcfaa6 | [
"MIT"
] | 1 | 2018-06-29T22:28:53.000Z | 2018-06-29T22:28:53.000Z | utils/plot_curves.py | shashank-srikant/reckless-minimax | 840745614be59d75535a81ef5ca79f4abdfcfaa6 | [
"MIT"
] | 2 | 2018-06-29T22:10:14.000Z | 2019-11-25T10:26:34.000Z | """
Handy functions for plotting convergence curves
"""
import numpy as np
import itertools
import sys
import string
def plot_curves(curves, output_path = None, show_legend=True):
import matplotlib as mpl
mpl.use('pgf')
def figsize(scale):
fig_width_pt = 469.755 # Get this ... | 39.172775 | 216 | 0.521117 | 917 | 7,482 | 4.150491 | 0.280262 | 0.040462 | 0.026012 | 0.036784 | 0.295586 | 0.266684 | 0.264845 | 0.237782 | 0.215449 | 0.202312 | 0 | 0.023772 | 0.314087 | 7,482 | 191 | 217 | 39.172775 | 0.717849 | 0.122962 | 0 | 0.069231 | 0 | 0 | 0.183704 | 0.023765 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.046154 | null | null | 0.061538 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fbfc90346118e552fb0d74006a4fbc0003c8a5a8 | 828 | py | Python | django_mri/models/irb_approval.py | GalBenZvi/django_mri | 558e9187a6ba18b7ba69aced919a6f94d066a2fc | [
"Apache-2.0"
] | 4 | 2020-07-27T20:33:54.000Z | 2022-01-11T20:24:03.000Z | django_mri/models/irb_approval.py | GalBenZvi/django_mri | 558e9187a6ba18b7ba69aced919a6f94d066a2fc | [
"Apache-2.0"
] | 107 | 2019-09-04T11:38:46.000Z | 2022-03-04T13:59:51.000Z | django_mri/models/irb_approval.py | GalBenZvi/django_mri | 558e9187a6ba18b7ba69aced919a6f94d066a2fc | [
"Apache-2.0"
] | 2 | 2019-08-16T10:06:13.000Z | 2019-08-30T15:42:45.000Z | from django.db import models
class IrbApproval(models.Model):
"""
A model representing an institutional review board approval information.
"""
#: The institution that gave the approval.
institution = models.CharField(max_length=128, blank=True, null=True)
#: IRB Approval ID.
number = mod... | 24.352941 | 76 | 0.629227 | 93 | 828 | 5.505376 | 0.569892 | 0.052734 | 0.070313 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014803 | 0.2657 | 828 | 33 | 77 | 25.090909 | 0.827303 | 0.322464 | 0 | 0 | 0 | 0 | 0.110656 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.727273 | 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 |
fbfd97e7303ebb435de2edb533bcd8e705ad809d | 640 | py | Python | linux2/detectKeyboard.py | orstavik/deadcaps | 5fd4a3e039ae6dbfd3c923616e117b1663ab7c22 | [
"MIT"
] | null | null | null | linux2/detectKeyboard.py | orstavik/deadcaps | 5fd4a3e039ae6dbfd3c923616e117b1663ab7c22 | [
"MIT"
] | null | null | null | linux2/detectKeyboard.py | orstavik/deadcaps | 5fd4a3e039ae6dbfd3c923616e117b1663ab7c22 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#
# This example illustrate how you can scan the /dev/input/eventX devices
# and list all the devices that support CAPSLOCK.
from pathlib import Path
import sys
import libevdev
def has_caps_lock(path) :
if not path.stem.startswith('event'):
return False
with open(path, "rb") as... | 21.333333 | 73 | 0.676563 | 97 | 640 | 4.257732 | 0.556701 | 0.077482 | 0.053269 | 0.09201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001992 | 0.215625 | 640 | 29 | 74 | 22.068966 | 0.820717 | 0.21875 | 0 | 0 | 0 | 0 | 0.052419 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.1875 | 0.0625 | 0.5625 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
fbfde026976ff4431fb844bd70c893f4b5b50cae | 3,408 | py | Python | c1-divide-and-conquer/min_cut.py | LSijing/Algorithms-Stanford | 21b786259031efe86855fa68091281b47c19d66c | [
"Apache-2.0"
] | 1 | 2020-07-24T10:18:20.000Z | 2020-07-24T10:18:20.000Z | c1-divide-and-conquer/min_cut.py | LSijing/Algorithms-Stanford | 21b786259031efe86855fa68091281b47c19d66c | [
"Apache-2.0"
] | null | null | null | c1-divide-and-conquer/min_cut.py | LSijing/Algorithms-Stanford | 21b786259031efe86855fa68091281b47c19d66c | [
"Apache-2.0"
] | 2 | 2020-07-24T10:18:29.000Z | 2021-09-05T14:47:14.000Z | # -*- coding: utf-8 -*-
"""
minimum cut problem using random contraction,
i.e. compute cut (A,B) with minimum number of crossing edges.
"""
import copy
import random
def union(i,j,father):
ani = find(i,father)
anj = find(j,father)
if ani == anj: return 0
if ani < anj:
father[anj] = ani
els... | 25.62406 | 85 | 0.434566 | 536 | 3,408 | 2.744403 | 0.240672 | 0.057784 | 0.018355 | 0.028552 | 0.063222 | 0.053025 | 0.053025 | 0.053025 | 0.053025 | 0.053025 | 0 | 0.223732 | 0.438674 | 3,408 | 133 | 86 | 25.62406 | 0.545217 | 0.098005 | 0 | 0.133333 | 0 | 0 | 0.211305 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.019048 | 0 | 0.085714 | 0.028571 | 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 |
fbff1fca826fd1aa4790e505f339541b7427b14a | 223 | py | Python | stubs/aioredis/__init__.py | rboixaderg/guillotina | fcae65c2185222272f3b8fee4bc2754e81e0e983 | [
"BSD-2-Clause"
] | 173 | 2017-03-10T18:26:12.000Z | 2022-03-03T06:48:56.000Z | stubs/aioredis/__init__.py | rboixaderg/guillotina | fcae65c2185222272f3b8fee4bc2754e81e0e983 | [
"BSD-2-Clause"
] | 921 | 2017-03-08T14:04:43.000Z | 2022-03-30T10:28:56.000Z | stubs/aioredis/__init__.py | rboixaderg/guillotina | fcae65c2185222272f3b8fee4bc2754e81e0e983 | [
"BSD-2-Clause"
] | 60 | 2017-03-16T19:59:44.000Z | 2022-03-03T06:48:59.000Z | from typing import AsyncIterator
class Channel:
async def wait_message(self) -> AsyncIterator[bool]:
...
async def get(self) -> bytes:
...
class Redis:
def __init__(self, conn):
...
| 14.866667 | 56 | 0.587444 | 24 | 223 | 5.25 | 0.708333 | 0.126984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.29148 | 223 | 14 | 57 | 15.928571 | 0.797468 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.444444 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
220626a000d3b01e054be499e33c8d572700ebc9 | 519 | py | Python | project euler solutions/Problem_043b.py | helq/old_code | a432faf1b340cb379190a2f2b11b997b02d1cd8d | [
"CC0-1.0"
] | null | null | null | project euler solutions/Problem_043b.py | helq/old_code | a432faf1b340cb379190a2f2b11b997b02d1cd8d | [
"CC0-1.0"
] | 4 | 2020-03-10T19:20:21.000Z | 2021-06-07T15:39:48.000Z | project euler solutions/Problem_043b.py | helq/old_code | a432faf1b340cb379190a2f2b11b997b02d1cd8d | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
# by ilan
primes = [2, 3, 5, 7, 11, 13, 17]
def getPerms(a):
if len(a)==1:
yield a
else:
for i in range(len(a)):
this = a[i]
rest = a[:i] + a[i+1:]
for p in getPerms(rest):
yield [this] + p
s = 0
for k in getPerm... | 18.535714 | 53 | 0.454721 | 92 | 519 | 2.565217 | 0.51087 | 0.025424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077612 | 0.354528 | 519 | 28 | 54 | 18.535714 | 0.626866 | 0.098266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
220c1c78fe52f421b6517d6482095b580bb03c59 | 242 | py | Python | Lista4/Lista4ex2.py | hugo-paiva/IntroducaoCienciasDaComputacao | a563f2fd5b773acbffaf4c858b86423b1130ae1f | [
"MIT"
] | null | null | null | Lista4/Lista4ex2.py | hugo-paiva/IntroducaoCienciasDaComputacao | a563f2fd5b773acbffaf4c858b86423b1130ae1f | [
"MIT"
] | null | null | null | Lista4/Lista4ex2.py | hugo-paiva/IntroducaoCienciasDaComputacao | a563f2fd5b773acbffaf4c858b86423b1130ae1f | [
"MIT"
] | null | null | null | def maior():
for c in range(10):
num = int(input())
if c == 0:
maior = primeiro = num
if num > maior:
maior = num
print(maior)
if maior % primeiro == 0:
print(primeiro)
maior()
| 17.285714 | 33 | 0.471074 | 30 | 242 | 3.8 | 0.466667 | 0.22807 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027972 | 0.409091 | 242 | 13 | 34 | 18.615385 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.090909 | 0.181818 | 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 |
220eafb2ca4f697bd404038c756000f677497729 | 2,843 | py | Python | src/sagemaker_inference.py | elangovana/object-tracking | a9359ac3e3926102f9998eb20500746343e14826 | [
"Apache-2.0"
] | 1 | 2019-12-17T01:17:01.000Z | 2019-12-17T01:17:01.000Z | src/sagemaker_inference.py | elangovana/object-tracking | a9359ac3e3926102f9998eb20500746343e14826 | [
"Apache-2.0"
] | 2 | 2021-09-08T01:37:46.000Z | 2022-03-12T00:13:53.000Z | src/sagemaker_inference.py | elangovana/object-tracking | a9359ac3e3926102f9998eb20500746343e14826 | [
"Apache-2.0"
] | null | null | null | # *****************************************************************************
# * Copyright 2019 Amazon.com, Inc. and its affiliates. All Rights Reserved. *
# *
# Licensed under the Amazon Software License (the "License"). *
... | 45.854839 | 237 | 0.589518 | 331 | 2,843 | 4.930514 | 0.41994 | 0.04902 | 0.078431 | 0.033088 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002484 | 0.291945 | 2,843 | 61 | 238 | 46.606557 | 0.808246 | 0.547309 | 0 | 0 | 0 | 0.047619 | 0.253846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.142857 | 0 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
220fe358085c38f2c8415b5e28d8dc4d18d345ac | 184 | py | Python | tools/zip_dir.py | CodyKochmann/stock_info | 8de591b5a589aefebccab3650cb5dfea987ab4c8 | [
"MIT"
] | null | null | null | tools/zip_dir.py | CodyKochmann/stock_info | 8de591b5a589aefebccab3650cb5dfea987ab4c8 | [
"MIT"
] | null | null | null | tools/zip_dir.py | CodyKochmann/stock_info | 8de591b5a589aefebccab3650cb5dfea987ab4c8 | [
"MIT"
] | null | null | null | def zip_dir(zip_path, dir_name, v):
''' zips a given directory '''
from shutil import make_archive
if v:
print('zipping: %s'%(dir_name))
make_archive(zip_path, 'zip', dir_name)
| 23 | 40 | 0.701087 | 31 | 184 | 3.903226 | 0.612903 | 0.173554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152174 | 184 | 7 | 41 | 26.285714 | 0.775641 | 0.119565 | 0 | 0 | 0 | 0 | 0.091503 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0.2 | 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 |
2218c755b4654f77703eb985080865c03519a6ba | 2,613 | py | Python | SEAL/SplineSpace.py | qTipTip/SEAL | 1fe9f26abe49127263a16c67e28dcc07a7ecee06 | [
"MIT"
] | 13 | 2017-04-02T21:16:06.000Z | 2021-09-13T13:50:24.000Z | SEAL/SplineSpace.py | qTipTip/SEAL | 1fe9f26abe49127263a16c67e28dcc07a7ecee06 | [
"MIT"
] | 1 | 2017-05-10T22:55:34.000Z | 2017-05-10T22:55:34.000Z | SEAL/SplineSpace.py | qTipTip/SEAL | 1fe9f26abe49127263a16c67e28dcc07a7ecee06 | [
"MIT"
] | null | null | null | import numpy as np
from SEAL.SplineFunction import SplineFunction
from SEAL.lib import knot_averages
class SplineSpace(object):
"""
The SplineSpace object functions mostly as a wrapper around the SplineFunction
objects, providing auxiliary methods, mostly for visualization.
"""
def __init__(self... | 31.107143 | 107 | 0.593188 | 340 | 2,613 | 4.485294 | 0.308824 | 0.02623 | 0.015738 | 0.045246 | 0.170492 | 0.077377 | 0.020984 | 0.020984 | 0.020984 | 0 | 0 | 0.007808 | 0.313816 | 2,613 | 83 | 108 | 31.481928 | 0.842722 | 0.437046 | 0 | 0 | 0 | 0 | 0.157369 | 0 | 0 | 0 | 0 | 0.012048 | 0.033333 | 1 | 0.2 | false | 0 | 0.1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
221cc98d804709a023e090ee346f2caf8e8e8672 | 306 | py | Python | ProjectEuler/P034DigitFact/P034DigitFact.py | cohadar/hackerrank | 67facc966b299b53a3dcfe594bf97b454df7703a | [
"MIT"
] | null | null | null | ProjectEuler/P034DigitFact/P034DigitFact.py | cohadar/hackerrank | 67facc966b299b53a3dcfe594bf97b454df7703a | [
"MIT"
] | null | null | null | ProjectEuler/P034DigitFact/P034DigitFact.py | cohadar/hackerrank | 67facc966b299b53a3dcfe594bf97b454df7703a | [
"MIT"
] | null | null | null | def curious(F, i):
C = str(i)
asum = 0;
for c in C:
asum += F[int(c)]
return asum % i == 0
def main():
nn = input()
p = 1;
F = [1]
for x in xrange(1, 10):
F.append(F[-1] * x)
asum = 0;
for i in xrange(10, nn):
if curious(F, i):
asum += i;
print asum
if __name__ == '__main__':
main() | 14.571429 | 26 | 0.526144 | 60 | 306 | 2.55 | 0.4 | 0.104575 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04955 | 0.27451 | 306 | 21 | 27 | 14.571429 | 0.63964 | 0 | 0 | 0.105263 | 0 | 0 | 0.026059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | 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 |
221e61849ffe1fdd0c44c86dab5de5974ff4f83e | 2,491 | py | Python | robflask/config.py | scailfin/rob-webapi-flask | 8f287faea05308b05d97ef111b2e115f8f40d70e | [
"MIT"
] | null | null | null | robflask/config.py | scailfin/rob-webapi-flask | 8f287faea05308b05d97ef111b2e115f8f40d70e | [
"MIT"
] | 3 | 2020-08-25T16:56:06.000Z | 2020-10-03T16:26:15.000Z | robflask/config.py | scailfin/rob-webapi-flask | 8f287faea05308b05d97ef111b2e115f8f40d70e | [
"MIT"
] | 1 | 2020-07-30T22:37:09.000Z | 2020-07-30T22:37:09.000Z | # This file is part of the Reproducible Open Benchmarks for Data Analysis
# Platform (ROB).
#
# Copyright (C) 2019-2021 NYU.
#
# ROB is free software; you can redistribute it and/or modify it under the
# terms of the MIT License; see LICENSE file for more details.
"""Helper methods to access configuration parameters. ... | 30.753086 | 79 | 0.724609 | 362 | 2,491 | 4.892265 | 0.378453 | 0.040655 | 0.027103 | 0.033879 | 0.199887 | 0.126482 | 0.126482 | 0.085827 | 0.085827 | 0 | 0 | 0.011022 | 0.198715 | 2,491 | 80 | 80 | 31.1375 | 0.876253 | 0.625853 | 0 | 0.117647 | 0 | 0 | 0.070748 | 0.032653 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.235294 | 0 | 0.588235 | 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 |
221e92fab8400da104cdc57c4e7e9fcdc508ddf0 | 1,520 | py | Python | web/misc/mixins/__init__.py | procool/mygw | f35b72b5915d314e883dcde45c3c33ff26f173df | [
"BSD-2-Clause"
] | 1 | 2020-02-24T13:08:16.000Z | 2020-02-24T13:08:16.000Z | web/misc/mixins/__init__.py | procool/mygw | f35b72b5915d314e883dcde45c3c33ff26f173df | [
"BSD-2-Clause"
] | null | null | null | web/misc/mixins/__init__.py | procool/mygw | f35b72b5915d314e883dcde45c3c33ff26f173df | [
"BSD-2-Clause"
] | null | null | null | from jinja2.exceptions import TemplateNotFound
from flask import request, render_template
from flaskcbv.response import Response
from flaskcbv.view import View, TemplateIsAjaxView
from flaskcbv.view.mixins import JSONMixin, getArgumentMixin
from flaskcbv.conf import settings
class DefaultContextVars(object):
def ... | 31.666667 | 83 | 0.705921 | 168 | 1,520 | 6.142857 | 0.315476 | 0.05814 | 0.040698 | 0.034884 | 0.067829 | 0.067829 | 0.067829 | 0 | 0 | 0 | 0 | 0.000818 | 0.196053 | 1,520 | 47 | 84 | 32.340426 | 0.843699 | 0 | 0 | 0 | 0 | 0 | 0.054713 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0 | 0.193548 | 0.032258 | 0.580645 | 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 |
222f6bd4c3b0a202acce649f3a48b85e54ef0280 | 3,002 | py | Python | pynames/iron_kingdoms/__init__.py | imposeren/pynames | 6928af52d77ed51b57386fea2a6f9ec3e1a3ce80 | [
"BSD-2-Clause-FreeBSD"
] | 19 | 2015-03-28T08:57:04.000Z | 2016-06-18T07:09:04.000Z | pynames/iron_kingdoms/__init__.py | imposeren/pynames | 6928af52d77ed51b57386fea2a6f9ec3e1a3ce80 | [
"BSD-2-Clause-FreeBSD"
] | 10 | 2015-02-10T15:38:16.000Z | 2016-06-28T04:55:20.000Z | pynames/iron_kingdoms/__init__.py | imposeren/pynames | 6928af52d77ed51b57386fea2a6f9ec3e1a3ce80 | [
"BSD-2-Clause-FreeBSD"
] | 6 | 2015-02-09T17:41:40.000Z | 2016-06-17T07:19:17.000Z | # coding: utf-8
import os
from pynames.from_tables_generator import FromCSVTablesGenerator
FIXTURES_DIR = os.path.join(os.path.dirname(__file__), 'fixtures')
class GobberFullnameGenerator(FromCSVTablesGenerator):
SOURCE = [
os.path.join(FIXTURES_DIR, 'IK_en_settings.csv'),
os.path.join(FIXTURES... | 32.989011 | 83 | 0.723185 | 351 | 3,002 | 5.866097 | 0.148148 | 0.093249 | 0.150559 | 0.262263 | 0.630403 | 0.630403 | 0.630403 | 0.630403 | 0.601263 | 0.57795 | 0 | 0.000397 | 0.160893 | 3,002 | 90 | 84 | 33.355556 | 0.816991 | 0.00433 | 0 | 0.430769 | 0 | 0 | 0.238701 | 0.175762 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.030769 | 0 | 0.338462 | 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 |
22349bc7c8872e0f1c5b1e87ce4f1a78453439e9 | 1,408 | py | Python | netbox_plugin_extensions/tables/columns.py | hagbarddenstore/netbox-plugin-extensions | 387950bb921af99b1809cb0d60582abf29764158 | [
"Apache-2.0"
] | null | null | null | netbox_plugin_extensions/tables/columns.py | hagbarddenstore/netbox-plugin-extensions | 387950bb921af99b1809cb0d60582abf29764158 | [
"Apache-2.0"
] | null | null | null | netbox_plugin_extensions/tables/columns.py | hagbarddenstore/netbox-plugin-extensions | 387950bb921af99b1809cb0d60582abf29764158 | [
"Apache-2.0"
] | null | null | null | from utilities.tables import ButtonsColumn
class PluginButtonsColumn(ButtonsColumn):
"""
Render edit, delete, and changelog buttons for an object.
:param model: Model class to use for calculating URL view names
:param prepend_content: Additional template content to render in the column (optional)
... | 46.933333 | 190 | 0.619318 | 188 | 1,408 | 4.505319 | 0.367021 | 0.063754 | 0.049587 | 0.053129 | 0.335301 | 0.335301 | 0.276269 | 0.276269 | 0.238489 | 0.238489 | 0 | 0 | 0.201705 | 1,408 | 29 | 191 | 48.551724 | 0.753559 | 0.21875 | 0 | 0.315789 | 0 | 0.157895 | 0.88806 | 0.209888 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
223a476ff05b004a39c49eda285b5f963306a806 | 11,270 | py | Python | lib/runner.py | Briles/sublime-color-scheme-unit | 5521d8447506551687b3edc29139b24e96d47b9c | [
"BSD-3-Clause"
] | null | null | null | lib/runner.py | Briles/sublime-color-scheme-unit | 5521d8447506551687b3edc29139b24e96d47b9c | [
"BSD-3-Clause"
] | null | null | null | lib/runner.py | Briles/sublime-color-scheme-unit | 5521d8447506551687b3edc29139b24e96d47b9c | [
"BSD-3-Clause"
] | null | null | null | import os
import re
from sublime import find_resources
from sublime import load_resource
from sublime import packages_path
from sublime import platform
from sublime import Region
from sublime import set_timeout_async
from sublime import status_message
from sublime import version
from .color_scheme import ViewStyle
fr... | 35.55205 | 147 | 0.578793 | 1,268 | 11,270 | 4.920347 | 0.170347 | 0.038788 | 0.024042 | 0.012823 | 0.229684 | 0.158038 | 0.11909 | 0.073249 | 0.06235 | 0.057862 | 0 | 0.005708 | 0.300444 | 11,270 | 316 | 148 | 35.664557 | 0.785642 | 0.019787 | 0 | 0.128631 | 0 | 0 | 0.130888 | 0.030978 | 0 | 0 | 0 | 0 | 0.13278 | 0 | null | null | 0 | 0.062241 | null | null | 0.058091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
22407c06e9a8376981ff4d186616bb914c5803e2 | 1,119 | py | Python | setup.py | GeoscienceAustralia/GeodesyMLConverter | 9692b9608e4f9300205be9974bef7ca3e51b3490 | [
"Apache-2.0"
] | 2 | 2018-10-31T22:38:14.000Z | 2021-02-16T11:49:16.000Z | setup.py | GeoscienceAustralia/GeodesyMLConverter | 9692b9608e4f9300205be9974bef7ca3e51b3490 | [
"Apache-2.0"
] | 8 | 2017-11-05T23:23:49.000Z | 2020-12-11T00:23:51.000Z | setup.py | GeoscienceAustralia/GeodesyMLConverter | 9692b9608e4f9300205be9974bef7ca3e51b3490 | [
"Apache-2.0"
] | 1 | 2018-01-14T21:42:59.000Z | 2018-01-14T21:42:59.000Z | "Setup.py for GeodesyML Converter"
#pylint: disable=line-too-long
from distutils.command.build import build
from subprocess import check_call
from setuptools import setup
class GenerateBindings(build):
"Generate GeodesyML bindings."
def run(self):
check_call(['cd GeodesyMLToSiteLog && ./generate-bin... | 27.292683 | 106 | 0.662198 | 107 | 1,119 | 6.841122 | 0.53271 | 0.036885 | 0.030055 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009081 | 0.21269 | 1,119 | 40 | 107 | 27.975 | 0.821793 | 0.081323 | 0 | 0.088235 | 1 | 0 | 0.437098 | 0.218549 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.088235 | 0 | 0.147059 | 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 |
224542999a44219f5ac057288de3d4d0c405917c | 737 | py | Python | string/longestSubtring.py | mengyangbai/leetcode | e7a6906ecc5bce665dec5d0f057b302a64d50f40 | [
"MIT"
] | null | null | null | string/longestSubtring.py | mengyangbai/leetcode | e7a6906ecc5bce665dec5d0f057b302a64d50f40 | [
"MIT"
] | null | null | null | string/longestSubtring.py | mengyangbai/leetcode | e7a6906ecc5bce665dec5d0f057b302a64d50f40 | [
"MIT"
] | null | null | null | class Solution:
def lengthOfLongestSubstring(self, s):
"""
:type s: str
:rtype: int
"""
if not s:
return 0
length = 0
current = ""
i = 0
j = 0
while i < len(s) and j < len(s):
if s[j] in curren... | 21.676471 | 43 | 0.370421 | 78 | 737 | 3.5 | 0.346154 | 0.087912 | 0.098901 | 0.10989 | 0.135531 | 0.095238 | 0.095238 | 0 | 0 | 0 | 0 | 0.020349 | 0.533243 | 737 | 33 | 44 | 22.333333 | 0.773256 | 0.032564 | 0 | 0.217391 | 0 | 0 | 0.008811 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0 | 0 | 0.173913 | 0.043478 | 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 |
224653073e6109caa6d2b44279bc68e34dc555ba | 1,520 | py | Python | lakesuperior/store/metadata_store.py | whikloj/lakesuperior | 733ac54e9525dcb7c3161bc70f04415e81650c06 | [
"Apache-2.0"
] | 35 | 2017-12-07T19:20:40.000Z | 2021-07-31T04:35:03.000Z | lakesuperior/store/metadata_store.py | whikloj/lakesuperior | 733ac54e9525dcb7c3161bc70f04415e81650c06 | [
"Apache-2.0"
] | 61 | 2018-03-07T04:59:37.000Z | 2020-01-08T00:52:25.000Z | lakesuperior/store/metadata_store.py | whikloj/lakesuperior | 733ac54e9525dcb7c3161bc70f04415e81650c06 | [
"Apache-2.0"
] | 7 | 2018-03-10T17:15:26.000Z | 2019-09-11T01:16:08.000Z | from os import path
from lakesuperior.store.base_lmdb_store import BaseLmdbStore
from lakesuperior import env
class MetadataStore(BaseLmdbStore):
"""
LMDB store for RDF metadata.
Note that even though this store connector uses LMDB as the
:py::class:`LmdbStore` class, it is separate because it is n... | 24.918033 | 78 | 0.607237 | 182 | 1,520 | 5.010989 | 0.472527 | 0.039474 | 0.049342 | 0.0625 | 0.232456 | 0.232456 | 0.184211 | 0.184211 | 0.184211 | 0.184211 | 0 | 0 | 0.285526 | 1,520 | 60 | 79 | 25.333333 | 0.839779 | 0.379605 | 0 | 0.117647 | 0 | 0 | 0.074016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.176471 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
2258f245bd8211dcc2db5047755fdc861d7db9e2 | 233 | py | Python | TWOSTR.py | abphilip-codes/Codechef_Practice | 21fd52e03df8a0f72a08b0e2a0b48dbd508aac95 | [
"MIT"
] | 2 | 2021-07-26T03:32:24.000Z | 2021-07-31T02:32:14.000Z | TWOSTR.py | abphilip-codes/Codechef_Practice | 21fd52e03df8a0f72a08b0e2a0b48dbd508aac95 | [
"MIT"
] | null | null | null | TWOSTR.py | abphilip-codes/Codechef_Practice | 21fd52e03df8a0f72a08b0e2a0b48dbd508aac95 | [
"MIT"
] | 1 | 2021-07-14T17:45:33.000Z | 2021-07-14T17:45:33.000Z | # https://www.codechef.com/problems/TWOSTR
for T in range(int(input())):
a,b,s=input(),input(),0
for i in range(len(a)):
if(a[i]==b[i] or a[i]=="?" or b[i]=="?"): s+=1
print("Yes") if(s==len(a)) else print("No") | 33.285714 | 55 | 0.527897 | 46 | 233 | 2.673913 | 0.543478 | 0.113821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010471 | 0.180258 | 233 | 7 | 56 | 33.285714 | 0.633508 | 0.171674 | 0 | 0 | 0 | 0 | 0.036458 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
225a78b7bdfdbf56cd420eccea5c6814078b3305 | 2,017 | py | Python | fbpcs/data_processing/service/sharding_service.py | joe1234wu/fbpcs | c9f57bf1b65adcbe39c6676ade5fc89e81dc5979 | [
"MIT"
] | 63 | 2021-08-18T01:50:22.000Z | 2022-03-25T06:44:36.000Z | fbpcs/data_processing/service/sharding_service.py | joe1234wu/fbpcs | c9f57bf1b65adcbe39c6676ade5fc89e81dc5979 | [
"MIT"
] | 672 | 2021-08-18T05:20:32.000Z | 2022-03-31T23:30:13.000Z | fbpcs/data_processing/service/sharding_service.py | joe1234wu/fbpcs | c9f57bf1b65adcbe39c6676ade5fc89e81dc5979 | [
"MIT"
] | 61 | 2021-08-18T20:02:30.000Z | 2022-03-31T22:44:17.000Z | #!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import enum
import os
import pathlib
from typing import Optional
from fbpcs.onedocker_binary_names import OneDockerB... | 29.231884 | 87 | 0.667824 | 253 | 2,017 | 5.031621 | 0.454545 | 0.042419 | 0.056559 | 0.059701 | 0.087981 | 0.087981 | 0.05813 | 0.05813 | 0 | 0 | 0 | 0.010533 | 0.246901 | 2,017 | 68 | 88 | 29.661765 | 0.827518 | 0.140803 | 0 | 0.041667 | 0 | 0 | 0.187246 | 0.149565 | 0 | 0 | 0 | 0.014706 | 0 | 1 | 0.041667 | false | 0.020833 | 0.125 | 0 | 0.3125 | 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 |
225a8851d97be61bfa5e620faf0299233c8e0c7d | 388 | py | Python | env/Scripts/easy_install-2.7-script.py | beblount/Steer-Clear-Backend-Web | 2aca521bad5f9a09c912f8e546f46bd39610544f | [
"MIT"
] | null | null | null | env/Scripts/easy_install-2.7-script.py | beblount/Steer-Clear-Backend-Web | 2aca521bad5f9a09c912f8e546f46bd39610544f | [
"MIT"
] | null | null | null | env/Scripts/easy_install-2.7-script.py | beblount/Steer-Clear-Backend-Web | 2aca521bad5f9a09c912f8e546f46bd39610544f | [
"MIT"
] | null | null | null | #!C:\Users\579860\Desktop\Steer-Clear-Backend-login\env\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'distribute==0.6.24','console_scripts','easy_install-2.7'
__requires__ = 'distribute==0.6.24'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('... | 35.272727 | 87 | 0.729381 | 58 | 388 | 4.517241 | 0.603448 | 0.125954 | 0.137405 | 0.160305 | 0.312977 | 0.312977 | 0.312977 | 0.312977 | 0.312977 | 0.312977 | 0 | 0.063037 | 0.100515 | 388 | 10 | 88 | 38.8 | 0.687679 | 0.407216 | 0 | 0 | 0 | 0 | 0.328947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
225ae1988c4d3aebbee71ee3d9b2930706e0a02d | 2,334 | py | Python | main.py | Alipashaimani/CF_Backup | 344c8c3ac323fe245ca9c05b3f7da2abd31a10ed | [
"MIT"
] | null | null | null | main.py | Alipashaimani/CF_Backup | 344c8c3ac323fe245ca9c05b3f7da2abd31a10ed | [
"MIT"
] | null | null | null | main.py | Alipashaimani/CF_Backup | 344c8c3ac323fe245ca9c05b3f7da2abd31a10ed | [
"MIT"
] | null | null | null | import requests
from bs4 import BeautifulSoup
import zipfile
import os
import time
headers = {'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36',}
#def get_proxies():
# TODO
#proxies = get_proxies()
def sub_req(contestid, subid... | 30.710526 | 149 | 0.564696 | 282 | 2,334 | 4.585106 | 0.429078 | 0.041763 | 0.023202 | 0.032483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02572 | 0.300343 | 2,334 | 75 | 150 | 31.12 | 0.766075 | 0.020994 | 0 | 0.046875 | 0 | 0.015625 | 0.182376 | 0 | 0 | 0 | 0 | 0.013333 | 0 | 1 | 0.046875 | false | 0 | 0.078125 | 0 | 0.21875 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2262200d8e2229190b5886acc35336d11983dcc2 | 5,060 | py | Python | eNMS/forms/inventory.py | PseudotsugaMenziesii/e-napalm | 23655d92173760cec3b3f7a9195fca4498b3bd99 | [
"MIT"
] | null | null | null | eNMS/forms/inventory.py | PseudotsugaMenziesii/e-napalm | 23655d92173760cec3b3f7a9195fca4498b3bd99 | [
"MIT"
] | null | null | null | eNMS/forms/inventory.py | PseudotsugaMenziesii/e-napalm | 23655d92173760cec3b3f7a9195fca4498b3bd99 | [
"MIT"
] | null | null | null | from wtforms.validators import InputRequired
from wtforms.widgets import TextArea
from eNMS import app
from eNMS.forms import BaseForm
from eNMS.forms.fields import (
BooleanField,
HiddenField,
InstanceField,
IntegerField,
MultipleInstanceField,
PasswordField,
SelectField,
StringField,
... | 32.857143 | 88 | 0.640909 | 466 | 5,060 | 6.841202 | 0.298283 | 0.022585 | 0.053639 | 0.0734 | 0.278545 | 0.200125 | 0.164994 | 0.109787 | 0.109787 | 0.109787 | 0 | 0.003075 | 0.228656 | 5,060 | 153 | 89 | 33.071895 | 0.813733 | 0 | 0 | 0.189394 | 0 | 0 | 0.196443 | 0.015217 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007576 | false | 0.030303 | 0.060606 | 0 | 0.598485 | 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 |
2262f5af1710aad6278635ad7eefd38ebb2bb98d | 3,516 | py | Python | metaconfigure/fetch_subprojects.py | njoy/knoop | 411e624a54f03969081b5b4dfa257ade5d979362 | [
"FSFAP"
] | null | null | null | metaconfigure/fetch_subprojects.py | njoy/knoop | 411e624a54f03969081b5b4dfa257ade5d979362 | [
"FSFAP"
] | 3 | 2019-10-29T22:49:18.000Z | 2019-11-13T16:10:03.000Z | metaconfigure/fetch_subprojects.py | njoy/knoop | 411e624a54f03969081b5b4dfa257ade5d979362 | [
"FSFAP"
] | null | null | null | #! /usr/bin/env python
"""
A script to generate a flat subproject directory from a tree of dependency directories
"""
import os
import subprocess
import textwrap
import json
import shutil
import sys
import warnings
def project_name():
return os.path.split( os.getcwd() )[1]
def dependency_directory():
"""
... | 33.169811 | 86 | 0.5657 | 363 | 3,516 | 5.410468 | 0.316804 | 0.033605 | 0.03055 | 0.016802 | 0.204175 | 0.077393 | 0.077393 | 0.037678 | 0 | 0 | 0 | 0.002017 | 0.294937 | 3,516 | 105 | 87 | 33.485714 | 0.790238 | 0.152446 | 0 | 0.03125 | 1 | 0 | 0.095548 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.109375 | 0.015625 | 0.25 | 0.046875 | 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 |
2263ab7a0c0b30415803671147f698ed246a5986 | 3,458 | py | Python | build_win.py | fluffyLLama/libtag | acc54a592f497c5ba78829d38c4e0eb833d73a35 | [
"MIT"
] | 1 | 2016-09-21T13:42:28.000Z | 2016-09-21T13:42:28.000Z | build_win.py | fluffyLLama/libtag | acc54a592f497c5ba78829d38c4e0eb833d73a35 | [
"MIT"
] | null | null | null | build_win.py | fluffyLLama/libtag | acc54a592f497c5ba78829d38c4e0eb833d73a35 | [
"MIT"
] | 3 | 2016-09-21T13:42:33.000Z | 2017-03-02T01:44:59.000Z | import subprocess
import argparse
import sys
import os
if not os.path.isdir("built\\obj"):
os.makedirs("built\\obj")
parser = argparse.ArgumentParser()
parser.add_argument('--panda3d-dir', '-p',
help='Panda3D directory.')
parser.add_argument('--no-link', '-l', action='store_true',
... | 36.787234 | 135 | 0.619433 | 428 | 3,458 | 4.939252 | 0.317757 | 0.070956 | 0.073794 | 0.075686 | 0.164144 | 0.11211 | 0.09508 | 0 | 0 | 0 | 0 | 0.02388 | 0.21284 | 3,458 | 94 | 136 | 36.787234 | 0.752755 | 0 | 0 | 0.026667 | 0 | 0 | 0.398092 | 0.11911 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.053333 | null | null | 0.053333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
226cb14c9f2e325aac9cd4b07c3e50b313c7488b | 1,769 | py | Python | kf_lib/actors/fighter/_exp_worth.py | AlexeyMalafeev/kfw-the-game | 7db98c00595ec0d87aa5ed0cc2886bd6b5d36381 | [
"BSD-3-Clause"
] | 3 | 2022-01-02T15:55:57.000Z | 2022-01-13T06:33:24.000Z | kf_lib/actors/fighter/_exp_worth.py | AlexeyMalafeev/kfw-the-game | 7db98c00595ec0d87aa5ed0cc2886bd6b5d36381 | [
"BSD-3-Clause"
] | 4 | 2022-01-15T13:04:36.000Z | 2022-02-19T13:08:59.000Z | kf_lib/actors/fighter/_exp_worth.py | AlexeyMalafeev/kfw-the-game | 7db98c00595ec0d87aa5ed0cc2886bd6b5d36381 | [
"BSD-3-Clause"
] | null | null | null | from ._base_fighter import BaseFighter
RATIO_NO_RISK = 0
RATIO_VERY_LOW_RISK = 0.5
RATIO_LOW_RISK = 0.8
RATIO_FAIR_FIGHT = 0.95
RATIO_RISKY = 1.1
RATIO_VERY_RISKY = 1.5
RATIO_EXTREMELY_RISKY = 2
RISK_DESCR_TABLE = ( # must be sorted high to low
(RATIO_EXTREMELY_RISKY, 'impossible'),
(RATIO_VERY_RISKY, 'very... | 34.686275 | 96 | 0.637083 | 266 | 1,769 | 3.984962 | 0.338346 | 0.045283 | 0.072642 | 0.05283 | 0.133962 | 0.098113 | 0.098113 | 0.098113 | 0.098113 | 0.098113 | 0 | 0.015885 | 0.252685 | 1,769 | 50 | 97 | 35.38 | 0.78593 | 0.174675 | 0 | 0 | 0 | 0 | 0.043568 | 0 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0.1 | false | 0 | 0.025 | 0.05 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
22719d54b0a12664a47837bb212f61905b8949b5 | 452 | py | Python | tests/test_docker.py | jonashackt/pulumi-example-aws-python | f1a59f1ef4f7aed598cf13a35a98bdb829d989f2 | [
"MIT"
] | 31 | 2019-12-08T00:33:14.000Z | 2022-03-09T23:45:03.000Z | tests/test_docker.py | jonashackt/pulumi-example-aws-python | f1a59f1ef4f7aed598cf13a35a98bdb829d989f2 | [
"MIT"
] | 66 | 2019-11-01T20:32:14.000Z | 2021-07-19T19:17:49.000Z | tests/test_docker.py | jonashackt/pulumi-example-aws-python | f1a59f1ef4f7aed598cf13a35a98bdb829d989f2 | [
"MIT"
] | 10 | 2019-11-18T16:43:25.000Z | 2022-03-29T11:41:09.000Z | import os
def test_is_docker_installed(host):
package_docker = host.package('docker-ce')
assert package_docker.is_installed
def test_vagrant_user_is_part_of_group_docker(host):
user_vagrant = host.user('vagrant')
assert 'docker' in user_vagrant.groups
def test_run_hello_world_container_successfu... | 22.6 | 61 | 0.774336 | 67 | 452 | 4.865672 | 0.402985 | 0.122699 | 0.104294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143805 | 452 | 19 | 62 | 23.789474 | 0.842377 | 0 | 0 | 0 | 0 | 0 | 0.14823 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.3 | false | 0 | 0.1 | 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 | 1 | 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.