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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5e6257938bf3540bf6e3e6d212e6e8cfcd45caa4 | 342 | py | Python | vulnscan_parser/models/nmap/host.py | happyc0ding/vulnscan-parser | 8233ff3c1e2282bb5bda177ecefdc1745c3003d7 | [
"MIT"
] | 17 | 2019-05-13T11:45:54.000Z | 2022-02-05T10:54:16.000Z | vulnscan_parser/models/nmap/host.py | happyc0ding/vulnscan-parser | 8233ff3c1e2282bb5bda177ecefdc1745c3003d7 | [
"MIT"
] | null | null | null | vulnscan_parser/models/nmap/host.py | happyc0ding/vulnscan-parser | 8233ff3c1e2282bb5bda177ecefdc1745c3003d7 | [
"MIT"
] | 3 | 2019-06-16T10:19:58.000Z | 2021-11-23T08:15:12.000Z | from vulnscan_parser.models.vshost import VSHost
class NmapHost(VSHost):
def __init__(self):
super().__init__()
self.ignored_dict_props.append('scripts')
self.scripts = set()
@property
def address(self):
return self.ip
@address.setter
def address(self, value):
... | 19 | 49 | 0.631579 | 40 | 342 | 5.125 | 0.6 | 0.078049 | 0.136585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.263158 | 342 | 17 | 50 | 20.117647 | 0.813492 | 0 | 0 | 0 | 0 | 0 | 0.020468 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0.083333 | 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 |
5e641505fed2343d85c9f888ff313e27f26a517a | 485 | py | Python | dashboard/migrations/0027_rename_psetsubmission_pset.py | ankanb240/otis-web | 45eda65b419705c65c02b15872a137969d53d8e9 | [
"MIT"
] | 15 | 2021-08-28T18:18:37.000Z | 2022-03-13T07:48:15.000Z | dashboard/migrations/0027_rename_psetsubmission_pset.py | ankanb240/otis-web | 45eda65b419705c65c02b15872a137969d53d8e9 | [
"MIT"
] | 65 | 2021-08-20T02:37:27.000Z | 2022-02-07T17:19:23.000Z | dashboard/migrations/0027_rename_psetsubmission_pset.py | ankanb240/otis-web | 45eda65b419705c65c02b15872a137969d53d8e9 | [
"MIT"
] | 31 | 2020-01-09T02:35:29.000Z | 2022-03-13T07:48:18.000Z | # Generated by Django 3.2.5 on 2021-08-04 19:25
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('roster', '0061_alter_registrationcontainer_allowed_tracks'),
('core', '0027_alter_semester_uses_legacy_pset_system'),
('dashboard', '0026_rename_numb... | 24.25 | 70 | 0.649485 | 51 | 485 | 5.862745 | 0.862745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07337 | 0.241237 | 485 | 19 | 71 | 25.526316 | 0.73913 | 0.092784 | 0 | 0 | 1 | 0 | 0.36758 | 0.283105 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5e6882354de5a3e0222b21d35d996814f3706b9c | 4,658 | py | Python | pysnmp/NBS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/NBS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/NBS-MIB.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 NBS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NBS-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:07:17 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)... | 60.493506 | 505 | 0.774152 | 422 | 4,658 | 8.540284 | 0.331754 | 0.050499 | 0.073252 | 0.108213 | 0.433962 | 0.379023 | 0.379023 | 0.374029 | 0.349057 | 0.268313 | 0 | 0.065004 | 0.104981 | 4,658 | 76 | 506 | 61.289474 | 0.799472 | 0.066123 | 0 | 0.327273 | 0 | 0 | 0.169777 | 0.010136 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.109091 | 0 | 0.890909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5e6bd629ab6cbb4741a13f38529974c2fb9a7f2f | 1,229 | py | Python | servicenow/icon_servicenow/actions/search_incident_attachment/schema.py | emartin-merrill-r7/insightconnect-plugins | a589745dbcc9f01d3e601431e77ab7221a84c117 | [
"MIT"
] | 1 | 2020-03-18T09:14:55.000Z | 2020-03-18T09:14:55.000Z | servicenow/icon_servicenow/actions/search_incident_attachment/schema.py | OSSSP/insightconnect-plugins | 846758dab745170cf1a8c146211a8bea9592e8ff | [
"MIT"
] | null | null | null | servicenow/icon_servicenow/actions/search_incident_attachment/schema.py | OSSSP/insightconnect-plugins | 846758dab745170cf1a8c146211a8bea9592e8ff | [
"MIT"
] | null | null | null | # GENERATED BY KOMAND SDK - DO NOT EDIT
import komand
import json
class Component:
DESCRIPTION = "Search for attachment files with the given name"
class Input:
NAME = "name"
class Output:
ATTACHMENT_IDS = "attachment_ids"
class SearchIncidentAttachmentInput(komand.Input):
schema = json.l... | 18.907692 | 89 | 0.585842 | 127 | 1,229 | 5.448819 | 0.425197 | 0.093931 | 0.034682 | 0.046243 | 0.265896 | 0.265896 | 0.265896 | 0.265896 | 0.124277 | 0.124277 | 0 | 0.002212 | 0.264443 | 1,229 | 64 | 90 | 19.203125 | 0.763274 | 0.030106 | 0 | 0.352941 | 1 | 0.019608 | 0.594958 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039216 | false | 0 | 0.039216 | 0 | 0.27451 | 0 | 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 |
5e6e0244c15f47029d0ba5b2352aeeee2ece064f | 641 | py | Python | authlib/specs/rfc5849/__init__.py | tk193192/authlib | 4c60a628f64c6d385a06ea55e416092726b94d07 | [
"BSD-3-Clause"
] | 2 | 2021-04-26T18:17:37.000Z | 2021-04-28T21:39:45.000Z | authlib/specs/rfc5849/__init__.py | tk193192/authlib | 4c60a628f64c6d385a06ea55e416092726b94d07 | [
"BSD-3-Clause"
] | 4 | 2021-03-19T08:17:59.000Z | 2021-06-10T19:34:36.000Z | authlib/specs/rfc5849/__init__.py | tk193192/authlib | 4c60a628f64c6d385a06ea55e416092726b94d07 | [
"BSD-3-Clause"
] | 2 | 2021-05-24T20:34:12.000Z | 2022-03-26T07:46:17.000Z | # -*- coding: utf-8 -*-
"""
authlib.specs.rfc5849
~~~~~~~~~~~~~~~~~~~~~
This module represents a direct implementation of The OAuth 1.0 Protocol.
https://tools.ietf.org/html/rfc5849
"""
# flake8: noqa
from authlib.oauth1.rfc5849.errors import *
from authlib.oauth1 import (
ClientAuth as Client,
... | 20.03125 | 77 | 0.692668 | 63 | 641 | 6.873016 | 0.761905 | 0.090069 | 0.078522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040856 | 0.198128 | 641 | 31 | 78 | 20.677419 | 0.801556 | 0.297972 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.117647 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5e6ebe0f62f1d318c72e4d8a339b8ddccaee3651 | 2,736 | py | Python | eex/translators/amber/amber_utility.py | dgasmith/EEX | 7608c9ef25931040524c75d227f0bee18de9ddc1 | [
"BSD-3-Clause"
] | null | null | null | eex/translators/amber/amber_utility.py | dgasmith/EEX | 7608c9ef25931040524c75d227f0bee18de9ddc1 | [
"BSD-3-Clause"
] | null | null | null | eex/translators/amber/amber_utility.py | dgasmith/EEX | 7608c9ef25931040524c75d227f0bee18de9ddc1 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
import eex
import os
from . import amber_metadata as amd
def get_energies(prmtop=None, crd=None, input_file=None, amb_path=None):
"""Evaluate energies of AMBER files. Based on InterMol
Args:
input_file = path to input file (expects data file in same folder)
lmp_path = path t... | 31.813953 | 83 | 0.606725 | 371 | 2,736 | 4.326146 | 0.366577 | 0.037383 | 0.037383 | 0.05919 | 0.142056 | 0.085981 | 0.05109 | 0.05109 | 0 | 0 | 0 | 0.00917 | 0.282529 | 2,736 | 85 | 84 | 32.188235 | 0.808456 | 0.192617 | 0 | 0.096154 | 0 | 0 | 0.118324 | 0 | 0 | 0 | 0 | 0.011765 | 0 | 1 | 0.038462 | false | 0 | 0.076923 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5e74aacfb4b72e3f508435a3f88c8a9948b638a5 | 1,214 | py | Python | setup.py | nava45/flask-routelogger | fa49f4a678bd56273d45ee28b04164aefb275da2 | [
"MIT"
] | 1 | 2019-10-08T01:46:58.000Z | 2019-10-08T01:46:58.000Z | setup.py | nava45/flask-routelogger | fa49f4a678bd56273d45ee28b04164aefb275da2 | [
"MIT"
] | null | null | null | setup.py | nava45/flask-routelogger | fa49f4a678bd56273d45ee28b04164aefb275da2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Flask-RouteLogger
-----------
Logs the meta route level information with minimal config for flask application
"""
from setuptools import setup
setup(
name='Flask-RouteLogger',
version='0.1',
url='',
license='BSD',
author='Navaneethan Ramasamy',
author_email='nava.nm... | 26.977778 | 97 | 0.620264 | 122 | 1,214 | 6.081967 | 0.672131 | 0.102426 | 0.134771 | 0.105121 | 0.132075 | 0.132075 | 0.132075 | 0.132075 | 0.132075 | 0 | 0 | 0.008734 | 0.24547 | 1,214 | 44 | 98 | 27.590909 | 0.80131 | 0.107908 | 0 | 0.058824 | 0 | 0 | 0.555866 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.029412 | 0 | 0.029412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5e77c2edb880a2f92b46305661d958ebcbdd0c2c | 24,958 | py | Python | gem5-gpu/configs/GPUConfig.py | ayoubg/gem5-graphics_v1 | d74a968d5854dc02797139558430ccda1f71108e | [
"BSD-3-Clause"
] | 1 | 2019-01-26T10:34:02.000Z | 2019-01-26T10:34:02.000Z | gem5-gpu/configs/GPUConfig.py | ayoubg/gem5-graphics_v1 | d74a968d5854dc02797139558430ccda1f71108e | [
"BSD-3-Clause"
] | null | null | null | gem5-gpu/configs/GPUConfig.py | ayoubg/gem5-graphics_v1 | d74a968d5854dc02797139558430ccda1f71108e | [
"BSD-3-Clause"
] | 1 | 2021-07-06T10:40:34.000Z | 2021-07-06T10:40:34.000Z | # Copyright (c) 2012 Mark D. Hill and David A. Wood
# 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 the above copyright
# notice, this list of conditio... | 56.981735 | 166 | 0.689719 | 3,528 | 24,958 | 4.689342 | 0.169218 | 0.031008 | 0.05168 | 0.020672 | 0.440945 | 0.355114 | 0.283184 | 0.21881 | 0.173477 | 0.139084 | 0 | 0.008764 | 0.199936 | 24,958 | 437 | 167 | 57.112128 | 0.819762 | 0.203862 | 0 | 0.197279 | 0 | 0 | 0.249646 | 0.025991 | 0 | 0 | 0 | 0.002288 | 0.006803 | 0 | null | null | 0.010204 | 0.020408 | null | null | 0.017007 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5e7c6553e6177180285dd8ebb773eb32c43cfa16 | 507 | py | Python | cinema_environment/server_monolith/server_app/migrations/0007_ticket_code.py | AndrewMalitchuk/cinema-server-monolith | 0002f672c3389f187c4668b7f87e9ea7273900a7 | [
"Apache-2.0"
] | null | null | null | cinema_environment/server_monolith/server_app/migrations/0007_ticket_code.py | AndrewMalitchuk/cinema-server-monolith | 0002f672c3389f187c4668b7f87e9ea7273900a7 | [
"Apache-2.0"
] | null | null | null | cinema_environment/server_monolith/server_app/migrations/0007_ticket_code.py | AndrewMalitchuk/cinema-server-monolith | 0002f672c3389f187c4668b7f87e9ea7273900a7 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0.2 on 2020-01-11 18:53
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('server_app', '0006_remove_ticket_code'),
]
operations = [
migrations.AddField(
model_name='ticket',... | 24.142857 | 107 | 0.635108 | 58 | 507 | 5.413793 | 0.741379 | 0.070064 | 0.121019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060686 | 0.252465 | 507 | 20 | 108 | 25.35 | 0.76781 | 0.088757 | 0 | 0 | 1 | 0 | 0.1 | 0.05 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5e7c9c04d2edd3503fa7bcf76f312bc084582450 | 2,266 | py | Python | src/Config.py | marcoputon/python-api | b24c5e4d262fa22fe2fd13b2576e03619fe26174 | [
"MIT"
] | null | null | null | src/Config.py | marcoputon/python-api | b24c5e4d262fa22fe2fd13b2576e03619fe26174 | [
"MIT"
] | null | null | null | src/Config.py | marcoputon/python-api | b24c5e4d262fa22fe2fd13b2576e03619fe26174 | [
"MIT"
] | null | null | null | import os
import json
'''
Arquivo de configurações.
Os atributos de conexão são criados dinamicamente. Estão definidos apenas
para não dar erro na IDE, mas não é necessário.
Todo - Criptografar senhas.
'''
class Config:
def __init__(self):
# Conection
self.ip = None
self.port = None
... | 26.97619 | 115 | 0.537511 | 256 | 2,266 | 4.605469 | 0.445313 | 0.011874 | 0.03732 | 0.078032 | 0.08821 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004101 | 0.354369 | 2,266 | 84 | 116 | 26.97619 | 0.801777 | 0.011915 | 0 | 0.045455 | 0 | 0 | 0.166364 | 0 | 0 | 0 | 0 | 0.011905 | 0 | 1 | 0.090909 | false | 0.045455 | 0.045455 | 0 | 0.204545 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5e7ecac1223dadbd171fa17160f04a3ca2a725b0 | 6,019 | py | Python | sources/VailDEC.py | Vail-Zero/VailDEC3-sources-Linux | f9a184f0cf8fa3701b3f770bc55333b459c57cef | [
"BSD-3-Clause"
] | null | null | null | sources/VailDEC.py | Vail-Zero/VailDEC3-sources-Linux | f9a184f0cf8fa3701b3f770bc55333b459c57cef | [
"BSD-3-Clause"
] | null | null | null | sources/VailDEC.py | Vail-Zero/VailDEC3-sources-Linux | f9a184f0cf8fa3701b3f770bc55333b459c57cef | [
"BSD-3-Clause"
] | null | null | null |
# Copyright (c) 2020 Vail-Zero. All Rights Resarved.
# 必要なライブラリーインポート
from tkinter import messagebox
from pack import decker
import tkinter
import threading
import os
import sys
from pack import passgen
# from pack import config
# from pack import GUIl
from tkinter import *
from tkinter import ttk
fr... | 27.610092 | 129 | 0.604585 | 670 | 6,019 | 5.420896 | 0.283582 | 0.014042 | 0.096916 | 0.023403 | 0.510738 | 0.505231 | 0.493943 | 0.485683 | 0.452919 | 0.452093 | 0 | 0.02559 | 0.246885 | 6,019 | 217 | 130 | 27.737327 | 0.775645 | 0.090713 | 0 | 0.643275 | 0 | 0 | 0.145979 | 0.061697 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040936 | false | 0.128655 | 0.111111 | 0 | 0.233918 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5e863b5d7ba32b549652d6fec4d39546ed3ecd67 | 17,493 | py | Python | venv/lib/python3.6/site-packages/ansible_collections/cisco/ios/plugins/module_utils/network/ios/config/route_maps/route_maps.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 1 | 2020-01-22T13:11:23.000Z | 2020-01-22T13:11:23.000Z | venv/lib/python3.6/site-packages/ansible_collections/cisco/ios/plugins/module_utils/network/ios/config/route_maps/route_maps.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 12 | 2020-02-21T07:24:52.000Z | 2020-04-14T09:54:32.000Z | venv/lib/python3.6/site-packages/ansible_collections/cisco/ios/plugins/module_utils/network/ios/config/route_maps/route_maps.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | null | null | null | #
# -*- coding: utf-8 -*-
# Copyright 2021 Red Hat
# GNU General Public License v3.0+
# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
#
from __future__ import absolute_import, division, print_function
__metaclass__ = type
"""
The cisco.ios_route_maps config file.
It is in this file where the current conf... | 44.625 | 107 | 0.382267 | 1,443 | 17,493 | 4.455994 | 0.139293 | 0.02986 | 0.02395 | 0.027994 | 0.464541 | 0.419907 | 0.370918 | 0.334059 | 0.302022 | 0.287714 | 0 | 0.002042 | 0.523981 | 17,493 | 391 | 108 | 44.73913 | 0.770145 | 0.048534 | 0 | 0.386228 | 0 | 0 | 0.081775 | 0.001292 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023952 | false | 0 | 0.017964 | 0 | 0.053892 | 0.002994 | 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 |
5e8cd33aed8fec4dbf07db5f93db93b7286c4f59 | 1,895 | py | Python | Session 1/Skeleton Files/exercise_2_with_functions_skeleton.py | Descent098/schulich-ignite-winter-2021 | 2003966651f8afc2d75657e1728e8dd8a13b88a2 | [
"MIT"
] | 1 | 2021-02-16T19:44:28.000Z | 2021-02-16T19:44:28.000Z | Session 1/Skeleton Files/exercise_2_with_functions_skeleton.py | Descent098/schulich-ignite-winter-2021 | 2003966651f8afc2d75657e1728e8dd8a13b88a2 | [
"MIT"
] | null | null | null | Session 1/Skeleton Files/exercise_2_with_functions_skeleton.py | Descent098/schulich-ignite-winter-2021 | 2003966651f8afc2d75657e1728e8dd8a13b88a2 | [
"MIT"
] | 1 | 2021-02-22T22:57:19.000Z | 2021-02-22T22:57:19.000Z | """Exercise 2 skeleton: Create a square that bounces when it reaches any boundary of the canvas
Remember to fill out all the TODO's, you can quickly scan for them by pressing CTRL/CMD + F
"""
import sys
import os
import pygame
"""
SETUP section - preparing everything before the main loop runs
"""
pygame.init()
scre... | 30.564516 | 99 | 0.689182 | 290 | 1,895 | 4.458621 | 0.517241 | 0.00464 | 0.026295 | 0.035576 | 0.04331 | 0.04331 | 0.04331 | 0.04331 | 0 | 0 | 0 | 0.022526 | 0.226913 | 1,895 | 62 | 100 | 30.564516 | 0.860068 | 0.469129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048387 | 0 | 1 | 0.038462 | false | 0 | 0.115385 | 0 | 0.192308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
5e90509d1b644fe5f496e5fad025be6c30aa1166 | 506 | py | Python | python/2020/day_six_part1.py | caw13/adventofcode | 37792e0de8a47109614f8e2de72f781a801fd60a | [
"MIT"
] | null | null | null | python/2020/day_six_part1.py | caw13/adventofcode | 37792e0de8a47109614f8e2de72f781a801fd60a | [
"MIT"
] | null | null | null | python/2020/day_six_part1.py | caw13/adventofcode | 37792e0de8a47109614f8e2de72f781a801fd60a | [
"MIT"
] | null | null | null | def getGroupCount(line):
#print("Line "+line)
curSet = set(())
for curChar in line:
curSet.add(curChar)
#print("Set: "+str(curSet))
return len(curSet)
filename = "inputs\\2020\\input-day6.txt"
with open(filename) as f:
lines = f.readlines()
group = ""
sum = 0
for line in lines:
if ... | 23 | 43 | 0.586957 | 65 | 506 | 4.569231 | 0.476923 | 0.06734 | 0.141414 | 0.175084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018135 | 0.237154 | 506 | 22 | 44 | 23 | 0.751295 | 0.088933 | 0 | 0.222222 | 0 | 0 | 0.071739 | 0.06087 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.111111 | 0.055556 | 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 |
5e9cd4e3a17c233b5fd442816e2c3e371a8aed65 | 276 | py | Python | envelopes/utils.py | audiolion/Envelopes-api | f9e93521dc8cb5fd8169551192e1d98f6a359c7c | [
"MIT"
] | null | null | null | envelopes/utils.py | audiolion/Envelopes-api | f9e93521dc8cb5fd8169551192e1d98f6a359c7c | [
"MIT"
] | 4 | 2019-10-18T15:54:05.000Z | 2021-06-01T22:07:16.000Z | envelopes/utils.py | audiolion/Envelopes-API | f9e93521dc8cb5fd8169551192e1d98f6a359c7c | [
"MIT"
] | null | null | null | # Third Party Library Imports
from django.conf import settings
from hashids import Hashids
hashid = Hashids(
min_length=8,
salt=getattr(settings, 'HASHIDS_SALT', ''),
alphabet='0123456789ACDEFGHIJKLOQRSTUVWXYZ',
)
def encode(num):
return hashid.encode(num)
| 19.714286 | 48 | 0.73913 | 32 | 276 | 6.3125 | 0.6875 | 0.089109 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.163043 | 276 | 13 | 49 | 21.230769 | 0.82684 | 0.097826 | 0 | 0 | 0 | 0 | 0.178138 | 0.129555 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0.111111 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
5e9db47275bab0cdeb4bff5a517a0e0e7af9713b | 371 | py | Python | 6KYU/up_array.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | 4 | 2021-07-17T22:48:03.000Z | 2022-03-25T14:10:58.000Z | 6KYU/up_array.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | null | null | null | 6KYU/up_array.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | 3 | 2021-06-14T14:18:16.000Z | 2022-03-16T06:02:02.000Z | def up_array(arr):
if not arr:
return None
else:
string = ''
for item in arr:
if not str(item).isdigit() or item > 9:
return None
else:
string += str(item)
total = []
for char in str(int(string)+1):
... | 24.733333 | 51 | 0.439353 | 43 | 371 | 3.767442 | 0.511628 | 0.061728 | 0.098765 | 0.246914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010101 | 0.466307 | 371 | 15 | 52 | 24.733333 | 0.808081 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 |
5e9e393f53242e4b4b29f45508f1ca564daad4cb | 893 | py | Python | apps/amcm/migrations/0003_auto_20211024_0256.py | agsneutron/asociacion_mexicana_cuarto_milla | 4657e1f494eb572e9b40b2804e012cdfd6193c51 | [
"MIT"
] | null | null | null | apps/amcm/migrations/0003_auto_20211024_0256.py | agsneutron/asociacion_mexicana_cuarto_milla | 4657e1f494eb572e9b40b2804e012cdfd6193c51 | [
"MIT"
] | null | null | null | apps/amcm/migrations/0003_auto_20211024_0256.py | agsneutron/asociacion_mexicana_cuarto_milla | 4657e1f494eb572e9b40b2804e012cdfd6193c51 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.8 on 2021-10-24 02:56
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('amcm', '0002_auto_20211024_0134'),
]
operations = [
migrations.AlterModelOptions(
name='tipofec... | 29.766667 | 118 | 0.613662 | 94 | 893 | 5.712766 | 0.595745 | 0.044693 | 0.052142 | 0.081937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049155 | 0.270997 | 893 | 29 | 119 | 30.793103 | 0.77573 | 0.050392 | 0 | 0.130435 | 1 | 0 | 0.21513 | 0.027187 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.217391 | 0 | 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 |
5ea4ebc0b7e97f982cef179363b2641a60819ca7 | 476 | py | Python | examples/team-fullmetal/dockerComp/src/server/app/__init__.py | connectthefuture/docker-hacks | d7ea13522188233d5e8a97179d2b0a872239f58d | [
"MIT"
] | null | null | null | examples/team-fullmetal/dockerComp/src/server/app/__init__.py | connectthefuture/docker-hacks | d7ea13522188233d5e8a97179d2b0a872239f58d | [
"MIT"
] | 1 | 2021-03-20T04:49:20.000Z | 2021-03-20T04:49:20.000Z | examples/team-fullmetal/dockerComp/src/server/app/__init__.py | connectthefuture/docker-hacks | d7ea13522188233d5e8a97179d2b0a872239f58d | [
"MIT"
] | null | null | null | import os
import sys
from flask import Flask, render_template
from flask.ext.mongoengine import MongoEngine
app = Flask(__name__)
app.config.from_object('config')
app.config["MONGODB_SETTINGS"] = {
"DB": os.environ.get("U_DB"),
"USERNAME": os.environ.get("U_USER"),
"PASSWORD": os.environ.get("U_PASS"),
... | 23.8 | 45 | 0.693277 | 69 | 476 | 4.608696 | 0.536232 | 0.084906 | 0.113208 | 0.122642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04902 | 0.142857 | 476 | 19 | 46 | 25.052632 | 0.730392 | 0 | 0 | 0 | 0 | 0 | 0.170168 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.0625 | 0.25 | 0.0625 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5ea9f57da15bf06ba1296e900e4a99d2c5d99077 | 2,122 | py | Python | archives/admin.py | kingsdigitallab/sdo-django | 28068ba9adb065ed36326bd23edd7778df79e03f | [
"MIT"
] | null | null | null | archives/admin.py | kingsdigitallab/sdo-django | 28068ba9adb065ed36326bd23edd7778df79e03f | [
"MIT"
] | 5 | 2021-03-19T08:51:21.000Z | 2021-06-09T19:11:07.000Z | archives/admin.py | kingsdigitallab/sdo-django | 28068ba9adb065ed36326bd23edd7778df79e03f | [
"MIT"
] | null | null | null | from django.contrib import admin
from archives.models import *
from archives.forms import DocumentForm
class AddressInline(admin.StackedInline):
model = Address
extra = 1
class ContainerStatementInline(admin.TabularInline):
model = ContainerStatements
extra = 1
class DocumentStatementInline(admin... | 29.068493 | 98 | 0.695099 | 197 | 2,122 | 7.253807 | 0.340102 | 0.052484 | 0.030791 | 0.072778 | 0.107768 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002892 | 0.185203 | 2,122 | 72 | 99 | 29.472222 | 0.823597 | 0 | 0 | 0.156863 | 0 | 0 | 0.211593 | 0.04524 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.784314 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5eac07d6ba4ade060bc6e344c24035cbcd2d8fb1 | 380 | py | Python | app/tasks.py | Spin14/wolf-backend | 21fc9d1a0df092eaa6a533149a165d2898f5fe40 | [
"MIT"
] | 2 | 2020-01-04T17:46:20.000Z | 2020-01-19T17:41:38.000Z | app/tasks.py | Spin14/wolf-backend | 21fc9d1a0df092eaa6a533149a165d2898f5fe40 | [
"MIT"
] | 7 | 2019-05-06T01:42:12.000Z | 2019-05-14T23:22:54.000Z | app/tasks.py | Spin14/wolf-backend | 21fc9d1a0df092eaa6a533149a165d2898f5fe40 | [
"MIT"
] | 1 | 2019-09-24T21:15:52.000Z | 2019-09-24T21:15:52.000Z | import logging
logger = logging.getLogger(__name__)
async def do(param: str) -> None:
pass # pragma: no cover
async def log_something() -> None:
logger.debug("debug log")
logger.info("info log")
logger.warning("warning log")
logger.error("debug log")
logger.critical("critical log")
lo... | 20 | 36 | 0.663158 | 51 | 380 | 4.843137 | 0.45098 | 0.182186 | 0.129555 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006579 | 0.2 | 380 | 18 | 37 | 21.111111 | 0.805921 | 0.042105 | 0 | 0 | 0 | 0 | 0.201657 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5eb61d5b3c1400d06ab91abcd71c682d3acb788d | 11,893 | py | Python | openpifpaf/network/factory.py | adujardin/openpifpaf | 4fa79162f5529f5b0de72e2312aab54d410bee3f | [
"CC-BY-2.0"
] | null | null | null | openpifpaf/network/factory.py | adujardin/openpifpaf | 4fa79162f5529f5b0de72e2312aab54d410bee3f | [
"CC-BY-2.0"
] | null | null | null | openpifpaf/network/factory.py | adujardin/openpifpaf | 4fa79162f5529f5b0de72e2312aab54d410bee3f | [
"CC-BY-2.0"
] | null | null | null | import argparse
import logging
import os
from typing import Tuple
import warnings
import torch
import torchvision
from .. import headmeta
from . import basenetworks, heads, nets
# generate hash values with: shasum -a 256 filename.pkl
PRETRAINED_UNAVAILABLE = object()
# Dataset cocokp is implied. All other datasets... | 42.024735 | 100 | 0.630034 | 1,326 | 11,893 | 5.496983 | 0.23454 | 0.022225 | 0.010701 | 0.013994 | 0.204966 | 0.155988 | 0.126766 | 0.108382 | 0.108382 | 0.090822 | 0 | 0.049587 | 0.267468 | 11,893 | 282 | 101 | 42.173759 | 0.787075 | 0.06239 | 0 | 0.118421 | 1 | 0 | 0.187158 | 0.035384 | 0 | 0 | 0 | 0 | 0.026316 | 1 | 0.039474 | false | 0 | 0.039474 | 0 | 0.140351 | 0 | 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 |
5eb9b101c68ee2c4700e2d06bfa017e4df856a3f | 1,336 | py | Python | bandcamp_parser/album.py | strizhechenko/bandcamp-player | 4608b1cd65b673e365eb2d278ddb05c42233d778 | [
"MIT"
] | 16 | 2017-07-14T12:10:05.000Z | 2020-09-07T14:33:10.000Z | bandcamp_parser/album.py | Evolution0/bandcamp-player | 4608b1cd65b673e365eb2d278ddb05c42233d778 | [
"MIT"
] | 2 | 2018-02-12T10:03:49.000Z | 2019-07-13T03:44:40.000Z | bandcamp_parser/album.py | Evolution0/bandcamp-player | 4608b1cd65b673e365eb2d278ddb05c42233d778 | [
"MIT"
] | 9 | 2018-01-21T18:22:03.000Z | 2021-09-12T11:48:20.000Z | # coding=utf-8
from random import shuffle
from bs4 import BeautifulSoup
from bandcamp_parser.request import Request
class AlbumResult(object):
""" Just for autocompletion and more 'static' structure instead of json/soup """
def __init__(self, soup):
self.title = soup.attrs['title']
self.href... | 32.585366 | 92 | 0.622754 | 176 | 1,336 | 4.630682 | 0.397727 | 0.042945 | 0.033129 | 0.058896 | 0.07362 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004902 | 0.236527 | 1,336 | 40 | 93 | 33.4 | 0.794118 | 0.175898 | 0 | 0 | 0 | 0 | 0.098131 | 0.021495 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.041667 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ebaed83a64e700c12d3cb92fa5049df9337907f | 274 | py | Python | service/models.py | oscar-king/A-Decentralised-Digital-Identity-Architecture | 99d80529d00f135d5de642fc98f817cb289d8b3c | [
"MIT"
] | 4 | 2020-10-13T15:47:19.000Z | 2021-01-10T14:00:57.000Z | service/models.py | oscar-king/A-Decentralised-Digital-Identity-Architecture | 99d80529d00f135d5de642fc98f817cb289d8b3c | [
"MIT"
] | 1 | 2021-06-02T00:22:25.000Z | 2021-06-02T00:22:25.000Z | service/models.py | oscar-king/A-Decentralised-Digital-Identity-Architecture | 99d80529d00f135d5de642fc98f817cb289d8b3c | [
"MIT"
] | 1 | 2020-01-27T14:16:11.000Z | 2020-01-27T14:16:11.000Z | from flask_login import UserMixin
from service import db
class User(UserMixin, db.Model):
y = db.Column(db.String(256), primary_key=True)
def __init__(self, y):
self.y = y
def save_to_db(self):
db.session.add(self)
db.session.commit() | 21.076923 | 51 | 0.653285 | 42 | 274 | 4.071429 | 0.595238 | 0.05848 | 0.152047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0.233577 | 274 | 13 | 52 | 21.076923 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 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 |
5ebf2969db975eeeae0c287c2b65a130edb1c714 | 6,214 | py | Python | duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/17_features/numtrees_12/rule_7.py | apcarrik/kaggle | 6e2d4db58017323e7ba5510bcc2598e01a4ee7bf | [
"MIT"
] | null | null | null | duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/17_features/numtrees_12/rule_7.py | apcarrik/kaggle | 6e2d4db58017323e7ba5510bcc2598e01a4ee7bf | [
"MIT"
] | null | null | null | duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/17_features/numtrees_12/rule_7.py | apcarrik/kaggle | 6e2d4db58017323e7ba5510bcc2598e01a4ee7bf | [
"MIT"
] | null | null | null | def findDecision(obj): #obj[0]: Passanger, obj[1]: Weather, obj[2]: Time, obj[3]: Coupon, obj[4]: Coupon_validity, obj[5]: Gender, obj[6]: Age, obj[7]: Maritalstatus, obj[8]: Children, obj[9]: Education, obj[10]: Occupation, obj[11]: Income, obj[12]: Bar, obj[13]: Coffeehouse, obj[14]: Restaurant20to50, obj[15]: Direct... | 39.329114 | 347 | 0.506115 | 802 | 6,214 | 3.874065 | 0.09601 | 0.13196 | 0.104281 | 0.148053 | 0.610879 | 0.525266 | 0.514644 | 0.314451 | 0.238816 | 0.208883 | 0 | 0.100115 | 0.299163 | 6,214 | 157 | 348 | 39.579618 | 0.613318 | 0.458642 | 0 | 0.701613 | 0 | 0 | 0.080781 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008065 | false | 0 | 0 | 0 | 0.241935 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ec71ca549ad106f99e85755ea6f9ea5713ed584 | 1,384 | py | Python | bin/twitch_mod_input.py | meznak/twitch-app-for-splunk | 68a5ae6f99f3eeeb5bafbfd417a3a1c96d6a0807 | [
"MIT"
] | null | null | null | bin/twitch_mod_input.py | meznak/twitch-app-for-splunk | 68a5ae6f99f3eeeb5bafbfd417a3a1c96d6a0807 | [
"MIT"
] | null | null | null | bin/twitch_mod_input.py | meznak/twitch-app-for-splunk | 68a5ae6f99f3eeeb5bafbfd417a3a1c96d6a0807 | [
"MIT"
] | null | null | null | import sys
import requests
import logging
from splunklib.modularinput import *
class MI(Script):
def get_scheme(self):
scheme = Scheme("Twitch Input")
scheme.description = 'Collect Twitch channel stats'
scheme.use_external_validation = True
scheme.use_single_instance = True
... | 27.68 | 64 | 0.65896 | 157 | 1,384 | 5.605096 | 0.464968 | 0.05 | 0.025 | 0.034091 | 0.056818 | 0.056818 | 0 | 0 | 0 | 0 | 0 | 0.000964 | 0.250723 | 1,384 | 49 | 65 | 28.244898 | 0.847637 | 0.077312 | 0 | 0 | 0 | 0 | 0.145555 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.133333 | false | 0 | 0.133333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ec8f6e174f124a0e822ed201d77ea604e786eb5 | 2,693 | py | Python | M5/Black Box vs White Box.py | DouglasCarvalhoPereira/Interact-OS-PYTHON | 2405d34a0624f1e1277399c936d87d444cf0a7d6 | [
"MIT"
] | null | null | null | M5/Black Box vs White Box.py | DouglasCarvalhoPereira/Interact-OS-PYTHON | 2405d34a0624f1e1277399c936d87d444cf0a7d6 | [
"MIT"
] | null | null | null | M5/Black Box vs White Box.py | DouglasCarvalhoPereira/Interact-OS-PYTHON | 2405d34a0624f1e1277399c936d87d444cf0a7d6 | [
"MIT"
] | null | null | null | #CONCEITO DE TESTE DE CAIXA BRANCA OU TESTE DE CAIXA PRETA
# > Test White Block - Testes baseados em informações do software. Sãos testes unitários feitos com
#base em conhecimentos prévios do software. Geralmente testes de CAIXA BRANCA são feitos após o código
#estar escrito. Sendo ele feito com partes diferentes do ... | 47.245614 | 167 | 0.757891 | 403 | 2,693 | 5.064516 | 0.491315 | 0.024008 | 0.008819 | 0.015679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188266 | 2,693 | 56 | 168 | 48.089286 | 0.933669 | 0.324174 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 0 | null | null | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5ec9b97796b72d6fa894cba7d724095340136fcd | 160 | py | Python | yalefaces/rename.py | AseemPandita/TripletLoss | 419250bed6085b8a7e1e4885865bc706ac6c216b | [
"MIT"
] | 1 | 2021-06-08T14:47:09.000Z | 2021-06-08T14:47:09.000Z | yalefaces/rename.py | AseemPandita/TripletLoss | 419250bed6085b8a7e1e4885865bc706ac6c216b | [
"MIT"
] | null | null | null | yalefaces/rename.py | AseemPandita/TripletLoss | 419250bed6085b8a7e1e4885865bc706ac6c216b | [
"MIT"
] | null | null | null | import os
files = [f for f in os.listdir('.') if os.path.isfile(f)]
for f in files:
if 'subject' in f and '.bmp' not in f:
os.rename(f, f+'.bmp') | 20 | 57 | 0.575 | 32 | 160 | 2.875 | 0.46875 | 0.086957 | 0.108696 | 0.152174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 160 | 8 | 58 | 20 | 0.766667 | 0 | 0 | 0 | 0 | 0 | 0.099379 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ecee456d888125f8c56415214d3c491b0a77262 | 19,303 | py | Python | csb/io/plots.py | ujjwalsh/CSB | cbe04f35e1ecace7fa01cabce669d99714b9dd38 | [
"MIT"
] | 10 | 2017-07-03T14:06:25.000Z | 2021-04-20T07:49:08.000Z | csb/io/plots.py | ujjwalsh/CSB | cbe04f35e1ecace7fa01cabce669d99714b9dd38 | [
"MIT"
] | 5 | 2017-07-03T13:29:03.000Z | 2022-02-02T12:45:29.000Z | csb/io/plots.py | ujjwalsh/CSB | cbe04f35e1ecace7fa01cabce669d99714b9dd38 | [
"MIT"
] | 3 | 2017-07-04T14:45:41.000Z | 2020-12-18T08:57:27.000Z | """
Plotting facilities, based on Python's MPL library.
The L{Chart} object is a facade which provides intuitive access to MPL's plotting
objects. The following examples show a typical use of L{Chart}:
1. Instantiation
>>> chart = Chart() # a chart with a single plot
>>> chart... | 27.149086 | 105 | 0.542144 | 2,143 | 19,303 | 4.756416 | 0.185721 | 0.035318 | 0.016482 | 0.010596 | 0.199941 | 0.135583 | 0.09585 | 0.07515 | 0.054547 | 0.054547 | 0 | 0.004173 | 0.366886 | 19,303 | 710 | 106 | 27.187324 | 0.829883 | 0.304616 | 0 | 0.342767 | 0 | 0 | 0.017073 | 0 | 0 | 0 | 0 | 0 | 0.006289 | 1 | 0.204403 | false | 0.031447 | 0.025157 | 0.018868 | 0.345912 | 0.003145 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5ed5e23360d5111ab2b8a747db04919db85ff87b | 9,023 | py | Python | neurokit2/ecg/ecg_peaks.py | danibene/NeuroKit | df0ab6696e7418cf8b8dcd3ed82dbf879fa61b3a | [
"MIT"
] | null | null | null | neurokit2/ecg/ecg_peaks.py | danibene/NeuroKit | df0ab6696e7418cf8b8dcd3ed82dbf879fa61b3a | [
"MIT"
] | null | null | null | neurokit2/ecg/ecg_peaks.py | danibene/NeuroKit | df0ab6696e7418cf8b8dcd3ed82dbf879fa61b3a | [
"MIT"
] | null | null | null | # - * - coding: utf-8 - * -
from ..signal import signal_fixpeaks, signal_formatpeaks
from .ecg_findpeaks import ecg_findpeaks
def ecg_peaks(
ecg_cleaned, sampling_rate=1000, method="neurokit", correct_artifacts=False, **kwargs
):
"""**Find R-peaks in an ECG signal**
Find R-peaks in an ECG signal using t... | 42.163551 | 100 | 0.640918 | 1,046 | 9,023 | 5.436902 | 0.380497 | 0.020222 | 0.021101 | 0.023914 | 0.135221 | 0.092843 | 0.052752 | 0.044663 | 0.031299 | 0.031299 | 0 | 0.074336 | 0.248587 | 9,023 | 213 | 101 | 42.361502 | 0.764454 | 0.847833 | 0 | 0 | 0 | 0 | 0.052486 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ed88d31aecb3ecc44182d2139d94bfec3aca8bd | 594 | py | Python | tests/api/single_load/test_optional_types.py | ssato/python-anyconfig | 09af1950f3226759932f5168d52f5e06ab88815c | [
"MIT"
] | 213 | 2015-01-14T22:09:20.000Z | 2022-02-02T17:23:41.000Z | tests/api/single_load/test_optional_types.py | ssato/python-anyconfig | 09af1950f3226759932f5168d52f5e06ab88815c | [
"MIT"
] | 120 | 2015-03-13T15:47:43.000Z | 2022-03-31T01:55:34.000Z | tests/api/single_load/test_optional_types.py | ssato/python-anyconfig | 09af1950f3226759932f5168d52f5e06ab88815c | [
"MIT"
] | 34 | 2015-01-12T05:03:30.000Z | 2021-09-09T14:40:56.000Z | #
# Copyright (C) 2021 Satoru SATOH <satoru.satoh@gmail.com>
# License: MIT
#
# pylint: disable=missing-docstring
import unittest
import anyconfig.api
from . import common
LOADER_TYPES = frozenset(anyconfig.api.list_types())
@unittest.skipIf('yaml' not in LOADER_TYPES,
'yaml loader is not availab... | 19.8 | 58 | 0.673401 | 75 | 594 | 5.28 | 0.56 | 0.083333 | 0.055556 | 0.080808 | 0.126263 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012685 | 0.203704 | 594 | 29 | 59 | 20.482759 | 0.824524 | 0.203704 | 0 | 0 | 0 | 0 | 0.178112 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0d603a390e80db40a1226fa7afbd60160934eede | 2,893 | py | Python | projects/make-project.py | 2-complex/g2c | 462888a5614badf673a6403d85abd1d01e35295c | [
"MIT"
] | 1 | 2016-05-19T14:48:27.000Z | 2016-05-19T14:48:27.000Z | projects/make-project.py | 2-complex/g2c | 462888a5614badf673a6403d85abd1d01e35295c | [
"MIT"
] | 1 | 2015-06-11T18:47:33.000Z | 2015-06-11T18:47:33.000Z | projects/make-project.py | 2-complex/g2c | 462888a5614badf673a6403d85abd1d01e35295c | [
"MIT"
] | null | null | null |
import shutil
import sys
import os
def replace_in_file(path, a, b):
f = open(path, 'r')
s = f.read().replace(a, b)
f.close()
f = open(path, 'w')
f.write(s)
f.close()
def replace_in_filename(path, a, b):
j = len(path)-1
if path[-1]!='/':
j-=1
while j>0 and path[j]!='/':
j-=1
base = path[:j]
filename ... | 24.726496 | 97 | 0.623574 | 411 | 2,893 | 4.270073 | 0.277372 | 0.041026 | 0.017094 | 0.023932 | 0.111681 | 0.111681 | 0.030769 | 0 | 0 | 0 | 0 | 0.002519 | 0.176633 | 2,893 | 116 | 98 | 24.939655 | 0.734257 | 0 | 0 | 0.193182 | 0 | 0 | 0.276817 | 0.0609 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.034091 | null | null | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0d651f508a9986e09d7aeb114b9384dc25d56c8b | 566 | py | Python | apps/external_apps/swaps/admin.py | indro/t2c | 56482ad4aed150f29353e054db2c97b567243bf8 | [
"MIT"
] | 3 | 2015-12-25T14:45:36.000Z | 2016-11-28T09:58:03.000Z | apps/external_apps/swaps/admin.py | indro/t2c | 56482ad4aed150f29353e054db2c97b567243bf8 | [
"MIT"
] | null | null | null | apps/external_apps/swaps/admin.py | indro/t2c | 56482ad4aed150f29353e054db2c97b567243bf8 | [
"MIT"
] | null | null | null | from django.contrib import admin
from swaps.models import Offer, Swap
class OfferAdmin(admin.ModelAdmin):
list_display = ('offerer', 'short_description', 'offering', 'want', 'state', 'swapped_by')
list_filter = ('offerer', 'state')
search_fields = ('short_description', 'offering', 'wan... | 37.733333 | 101 | 0.678445 | 61 | 566 | 6.114754 | 0.508197 | 0.080429 | 0.101877 | 0.13941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180212 | 566 | 15 | 102 | 37.733333 | 0.803879 | 0 | 0 | 0 | 0 | 0 | 0.257496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0d693fdc554f203b770e2498186b8848fea92dc6 | 1,341 | py | Python | Module/startingInventory.py | 1234567890num/KH2Randomizer | 2722b2f8f324246300d9c16637243c942adf14d1 | [
"Apache-2.0"
] | 7 | 2021-09-04T03:04:16.000Z | 2022-02-04T17:57:22.000Z | Module/startingInventory.py | 1234567890num/KH2Randomizer | 2722b2f8f324246300d9c16637243c942adf14d1 | [
"Apache-2.0"
] | 48 | 2021-05-26T11:59:11.000Z | 2022-03-30T01:59:23.000Z | Module/startingInventory.py | 1234567890num/KH2Randomizer | 2722b2f8f324246300d9c16637243c942adf14d1 | [
"Apache-2.0"
] | 15 | 2021-04-10T18:31:47.000Z | 2022-03-31T17:32:45.000Z | from Class.locationClass import KH2StartingItem
class StartingInventory:
def generateStartingInventory(inventory, itemsToAdd):
for item in itemsToAdd:
inventory.setReward(int(item))
def getOptions():
return {
"moduleName": "Sora's Starting Inventory",
"opti... | 29.8 | 57 | 0.418345 | 98 | 1,341 | 5.72449 | 0.55102 | 0.074866 | 0.053476 | 0.064171 | 0.516934 | 0.516934 | 0.516934 | 0.395722 | 0.256684 | 0.256684 | 0 | 0.081044 | 0.457122 | 1,341 | 45 | 58 | 29.8 | 0.68956 | 0 | 0 | 0.1 | 1 | 0 | 0.269001 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | false | 0 | 0.025 | 0.05 | 0.175 | 0 | 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 |
0d6ae53f8b4b0c40756ee199f65a588881580028 | 281 | py | Python | shop/forms.py | KWeselski/Shop-Django | e765bea8be7fb46a8651dc601283bda74c28746d | [
"MIT"
] | null | null | null | shop/forms.py | KWeselski/Shop-Django | e765bea8be7fb46a8651dc601283bda74c28746d | [
"MIT"
] | null | null | null | shop/forms.py | KWeselski/Shop-Django | e765bea8be7fb46a8651dc601283bda74c28746d | [
"MIT"
] | null | null | null | from django import forms
class CouponForm(forms.Form):
code = forms.CharField(widget=forms.TextInput(attrs={
'class': 'form-control',
'placeholder': 'Promo code',
'aria-label': 'Recipient\'s username',
'aria-describedby': 'basic-addon2'
})) | 31.222222 | 57 | 0.629893 | 30 | 281 | 5.9 | 0.766667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004525 | 0.213523 | 281 | 9 | 58 | 31.222222 | 0.79638 | 0 | 0 | 0 | 0 | 0 | 0.304965 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0d6bd41989565318273a383125db2961decb8db8 | 725 | py | Python | ATFGen/pida_types/tstr.py | goodwinxp/ida_info_code_gen | 066672fd793da6af9c8bb3e4cfcd378c1bb899e9 | [
"MIT"
] | 1 | 2017-08-27T20:56:33.000Z | 2017-08-27T20:56:33.000Z | ATFGen/pida_types/tstr.py | goodwinxp/ida_info_code_gen | 066672fd793da6af9c8bb3e4cfcd378c1bb899e9 | [
"MIT"
] | 9 | 2017-04-22T18:56:32.000Z | 2017-06-02T20:39:51.000Z | ATFGen/pida_types/tstr.py | goodwinxp/ida_info_code_gen | 066672fd793da6af9c8bb3e4cfcd378c1bb899e9 | [
"MIT"
] | 3 | 2017-12-21T09:21:02.000Z | 2021-05-11T11:22:17.000Z | from abc_type import IdaTypes
from ida_types import IDA_TYPES
class IdaTStr(IdaTypes):
def __init__(self, ida_type=IDA_TYPES['str']):
self.ida_type = {'idt': ida_type, 'value': ''}
def decode(self, data):
count = ord(data[0])
offset = 1
for i in range(0, count):
im... | 25 | 81 | 0.604138 | 98 | 725 | 4.234694 | 0.387755 | 0.13494 | 0.159036 | 0.077108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005747 | 0.28 | 725 | 28 | 82 | 25.892857 | 0.789272 | 0 | 0 | 0 | 0 | 0 | 0.045517 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.15 | 0.1 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0d6beae751cb56d39c145466658c7351da7757db | 969 | py | Python | hackerrank/contests/zenhacks/bob.py | spradeepv/dive-into-python | ec27d4686b7b007d21f9ba4f85d042be31ee2639 | [
"MIT"
] | null | null | null | hackerrank/contests/zenhacks/bob.py | spradeepv/dive-into-python | ec27d4686b7b007d21f9ba4f85d042be31ee2639 | [
"MIT"
] | null | null | null | hackerrank/contests/zenhacks/bob.py | spradeepv/dive-into-python | ec27d4686b7b007d21f9ba4f85d042be31ee2639 | [
"MIT"
] | null | null | null | """
Problem Statement
Bob is in a candy shop and wants to purchase his favorite candy, which he knows costs N dollars. He has an infinite number of 1,2,5,10,20,50, and 100 dollar bills in his pocket. Bob wants to know the number of different ways he can pay the N dollars for his candy.
Input Format
A single integer,... | 17.303571 | 264 | 0.658411 | 199 | 969 | 3.190955 | 0.376884 | 0.059843 | 0.061417 | 0.050394 | 0.103937 | 0.103937 | 0.028346 | 0.028346 | 0.028346 | 0 | 0 | 0.112137 | 0.21775 | 969 | 55 | 265 | 17.618182 | 0.725594 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0d729fd2eee7fbaf935e5b5f1eb5b7c4659f2bdd | 2,163 | py | Python | floo/editor.py | barrasch/floobits-sublime | d6825fc5e342fc56dbd9c56fb6f1452f926bb6cd | [
"Apache-2.0"
] | 124 | 2015-01-01T12:43:35.000Z | 2022-01-04T03:45:59.000Z | floo/editor.py | barrasch/floobits-sublime | d6825fc5e342fc56dbd9c56fb6f1452f926bb6cd | [
"Apache-2.0"
] | 38 | 2015-01-06T10:27:52.000Z | 2022-03-12T15:01:02.000Z | floo/editor.py | barrasch/floobits-sublime | d6825fc5e342fc56dbd9c56fb6f1452f926bb6cd | [
"Apache-2.0"
] | 16 | 2015-02-03T13:28:06.000Z | 2021-02-08T13:07:18.000Z | import sys
import os
try:
import sublime
except Exception:
pass
NEW_ACCOUNT_TXT = '''Welcome {username}!\n\nYou're all set to collaborate. You should check out our docs at https://{host}/help/plugins/sublime#usage.
You must run 'Floobits - Complete Sign Up' so you can log in to the website.'''
LINKED_ACCOU... | 21.205882 | 150 | 0.647249 | 312 | 2,163 | 4.352564 | 0.416667 | 0.038292 | 0.025037 | 0.036819 | 0.18704 | 0.154639 | 0.072165 | 0.072165 | 0.072165 | 0.072165 | 0 | 0.005405 | 0.230236 | 2,163 | 101 | 151 | 21.415842 | 0.81021 | 0.023578 | 0 | 0.031746 | 0 | 0.015873 | 0.229384 | 0.034123 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206349 | false | 0.015873 | 0.047619 | 0.063492 | 0.460317 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0d78d145540e5c7ca7fd39fd8e2ae328a3570315 | 2,250 | py | Python | ros/src/util/packages/data_preprocessor/scripts/get_ImageTopic.py | baharkhabbazan/autoware | 4285b539199af172faadba92bed887fdbb225472 | [
"Apache-2.0"
] | 64 | 2018-11-19T02:34:05.000Z | 2021-12-27T06:19:48.000Z | ros/src/util/packages/data_preprocessor/scripts/get_ImageTopic.py | anhnv3991/autoware | d5b2ed9dc309193c8a2a7c77a2b6c88104c28328 | [
"Apache-2.0"
] | 18 | 2019-04-08T16:09:37.000Z | 2019-06-05T15:24:40.000Z | ros/src/util/packages/data_preprocessor/scripts/get_ImageTopic.py | anhnv3991/autoware | d5b2ed9dc309193c8a2a7c77a2b6c88104c28328 | [
"Apache-2.0"
] | 34 | 2018-11-27T08:57:32.000Z | 2022-02-18T08:06:04.000Z | #!/usr/bin/env python
import sys
import os
import rospy
import numpy as np
import cv2
import pcl
from get_rosbaginfo import get_type_and_topic, get_baginfo
import sensor_msgs.point_cloud2 as pc2
from sensor_msgs.msg import Image, PointCloud2
from cv_bridge import CvBridge
class ImageSaver(object):
def __init__(se... | 34.090909 | 105 | 0.678222 | 301 | 2,250 | 4.774086 | 0.345515 | 0.03897 | 0.059151 | 0.048017 | 0.182324 | 0.182324 | 0.140571 | 0.140571 | 0.140571 | 0.096033 | 0 | 0.023689 | 0.212 | 2,250 | 65 | 106 | 34.615385 | 0.786802 | 0.085333 | 0 | 0 | 0 | 0 | 0.116472 | 0.065789 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.06 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0d817110fd91de5a64d8872bf63ee8a4c0034658 | 1,277 | py | Python | hth/news/tests/test_admin.py | roperi/myband | ec1955626fe6997484fd92ed02127b6899cd7062 | [
"MIT"
] | 1 | 2016-04-12T17:38:26.000Z | 2016-04-12T17:38:26.000Z | hth/news/tests/test_admin.py | bhrutledge/jahhills.com | 74fe94a214f1ed5681bd45159315f0b68daf5a33 | [
"MIT"
] | 92 | 2015-04-03T10:04:55.000Z | 2021-07-17T11:13:52.000Z | hth/news/tests/test_admin.py | roperi/myband | ec1955626fe6997484fd92ed02127b6899cd7062 | [
"MIT"
] | 1 | 2021-01-26T18:02:49.000Z | 2021-01-26T18:02:49.000Z | from hth.core.tests.selenium import AdminTestCase
class NewsTestCase(AdminTestCase):
def test_can_create_post(self):
# Ryan logs into the admin
self.adminLogin()
# He adds a draft Post
self.find_link('Posts').click()
self.find_link('ADD POST').click()
self.find... | 29.022727 | 66 | 0.617854 | 169 | 1,277 | 4.532544 | 0.360947 | 0.125326 | 0.101828 | 0.06658 | 0.513055 | 0.339426 | 0.224543 | 0.088773 | 0 | 0 | 0 | 0 | 0.241973 | 1,277 | 43 | 67 | 29.697674 | 0.791322 | 0.140172 | 0 | 0.347826 | 0 | 0 | 0.15582 | 0 | 0 | 0 | 0 | 0.023256 | 0.217391 | 1 | 0.043478 | false | 0 | 0.043478 | 0 | 0.130435 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0d8a89ba7cd3a797ea63e18ce864942ec41cc7e6 | 2,562 | py | Python | Basics/E07_Typography/E08_HeadlineAlignment.py | freder/PageBotExamples | eb4ced53a673b9376e8357afa9ea0795b022b13c | [
"Ruby",
"MIT"
] | 5 | 2020-06-20T22:01:23.000Z | 2021-08-06T04:39:50.000Z | Basics/E07_Typography/E08_HeadlineAlignment.py | freder/PageBotExamples | eb4ced53a673b9376e8357afa9ea0795b022b13c | [
"Ruby",
"MIT"
] | 5 | 2020-05-17T09:32:27.000Z | 2021-03-15T19:45:52.000Z | Basics/E07_Typography/E08_HeadlineAlignment.py | freder/PageBotExamples | eb4ced53a673b9376e8357afa9ea0795b022b13c | [
"Ruby",
"MIT"
] | 2 | 2021-02-25T19:07:45.000Z | 2022-01-09T21:14:06.000Z | #!/usr/bin/env python3
# -*- coding: UTF-8 -*-
# -----------------------------------------------------------------------------
#
# P A G E B O T E X A M P L E S
#
# www.pagebot.io
# Licensed under MIT conditions
#
# -----------------------------------------------------------------------------
#
# E08_H... | 38.818182 | 104 | 0.682279 | 389 | 2,562 | 4.465296 | 0.475578 | 0.044329 | 0.029361 | 0.023028 | 0.132412 | 0.079447 | 0.079447 | 0.079447 | 0.079447 | 0.079447 | 0 | 0.021033 | 0.14637 | 2,562 | 65 | 105 | 39.415385 | 0.773205 | 0.418033 | 0 | 0.052632 | 0 | 0 | 0.043836 | 0.019863 | 0 | 0 | 0 | 0.015385 | 0 | 1 | 0 | false | 0 | 0.184211 | 0 | 0.184211 | 0.078947 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
0d8c2081d1a8acb436f2ff0148f48cf4dd1c479a | 2,756 | py | Python | data/exploits/cve-2015-5287/sosreport-rhel7.py | OsmanDere/metasploit-framework | b7a014a5d22d3b57157e301d4af57e3a31ad03a9 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 26,932 | 2015-01-01T00:04:51.000Z | 2022-03-31T22:51:38.000Z | data/exploits/cve-2015-5287/sosreport-rhel7.py | Kilo-411/metasploit-framework | aaf27d7fa51390895dea63c58cb3b76e959d36f8 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 11,048 | 2015-01-01T00:05:44.000Z | 2022-03-31T21:49:52.000Z | data/exploits/cve-2015-5287/sosreport-rhel7.py | Kilo-411/metasploit-framework | aaf27d7fa51390895dea63c58cb3b76e959d36f8 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 12,593 | 2015-01-01T01:01:20.000Z | 2022-03-31T22:13:32.000Z | #!/usr/bin/python
# CVE-2015-5287 (?)
# abrt/sosreport RHEL 7.0/7.1 local root
# rebel 09/2015
# [user@localhost ~]$ python sosreport-rhel7.py
# crashing pid 19143
# waiting for dump directory
# dump directory: /var/tmp/abrt/ccpp-2015-11-30-19:41:13-19143
# waiting for sosreport directory
# sosreport: sosreport-loca... | 24.175439 | 175 | 0.677431 | 433 | 2,756 | 4.290993 | 0.360277 | 0.043057 | 0.040904 | 0.04521 | 0.141012 | 0.101184 | 0.101184 | 0.101184 | 0.101184 | 0 | 0 | 0.054312 | 0.124819 | 2,756 | 114 | 176 | 24.175439 | 0.716003 | 0.291001 | 0 | 0.065574 | 0 | 0.032787 | 0.370792 | 0.080787 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.016393 | 0.032787 | null | null | 0.229508 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0d939441c2c2426a48f3b1d958a27557f0babe13 | 442 | py | Python | master_india_project/master_india_app/models.py | bikash-pal/master_india_assignment | 3bbd2d9032f82c4db0d4cbcbb9f208837c9632c7 | [
"MIT"
] | null | null | null | master_india_project/master_india_app/models.py | bikash-pal/master_india_assignment | 3bbd2d9032f82c4db0d4cbcbb9f208837c9632c7 | [
"MIT"
] | null | null | null | master_india_project/master_india_app/models.py | bikash-pal/master_india_assignment | 3bbd2d9032f82c4db0d4cbcbb9f208837c9632c7 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class Categories(models.Model):
catagorie=models.CharField(max_length=100)
class SubCatagories(models.Model):
#question = models.ForeignKey(Question, on_delete=models.CASCADE)
subCatagories=models.CharField(max_length=100)
class Products(models.Model)... | 27.625 | 69 | 0.780543 | 55 | 442 | 6.181818 | 0.418182 | 0.097059 | 0.158824 | 0.211765 | 0.644118 | 0.564706 | 0.376471 | 0.376471 | 0.376471 | 0.376471 | 0 | 0.023018 | 0.115385 | 442 | 15 | 70 | 29.466667 | 0.846547 | 0.343891 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 1 | 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 |
0d978cdbee28b188ccb48f7d0f17faeebbbc92a1 | 359 | py | Python | HackerRank/PythonHackerRankSolutions/BuiltIns/Zipped.py | accidentalgenius09/competitive-programming-solution | 210746a7928dcd601ad9a735de52cf7135851070 | [
"MIT"
] | 8 | 2020-08-03T01:53:13.000Z | 2022-01-09T14:47:58.000Z | HackerRank/PythonHackerRankSolutions/BuiltIns/Zipped.py | accidentalgenius09/competitive-programming-solution | 210746a7928dcd601ad9a735de52cf7135851070 | [
"MIT"
] | null | null | null | HackerRank/PythonHackerRankSolutions/BuiltIns/Zipped.py | accidentalgenius09/competitive-programming-solution | 210746a7928dcd601ad9a735de52cf7135851070 | [
"MIT"
] | 4 | 2020-09-29T11:28:53.000Z | 2021-06-02T15:34:55.000Z | '''
Title : Zipped!
Subdomain : Built-Ins
Domain : Python
Author : codeperfectplus
Created : 17 January 2020
'''
# Enter your code here. Read input from STDIN. Print output to STDOUT
n, x = map(int, input().split())
sheet = []
for _ in range(x):
sheet.append(map(float, input().split()) )
for i in zi... | 21.117647 | 69 | 0.629526 | 52 | 359 | 4.326923 | 0.769231 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021429 | 0.220056 | 359 | 16 | 70 | 22.4375 | 0.782143 | 0.51532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0d9ae6c2bdd4c850b7a2d392c9d69a767d515f7f | 397 | py | Python | backend/bomberbot/migrations/0004_teacher_city.py | somarae8/bomberbot_finalproject | 732df88487087e067ba3048cda6d92a0fe63586a | [
"MIT"
] | 2 | 2020-11-03T17:37:20.000Z | 2020-11-03T19:34:25.000Z | backend/bomberbot/migrations/0004_teacher_city.py | somarae8/bomberbot_finalproject | 732df88487087e067ba3048cda6d92a0fe63586a | [
"MIT"
] | null | null | null | backend/bomberbot/migrations/0004_teacher_city.py | somarae8/bomberbot_finalproject | 732df88487087e067ba3048cda6d92a0fe63586a | [
"MIT"
] | 1 | 2020-11-03T16:48:58.000Z | 2020-11-03T16:48:58.000Z | # Generated by Django 3.1.2 on 2020-10-22 16:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bomberbot', '0003_auto_20201018_2352'),
]
operations = [
migrations.AddField(
model_name='teacher',
name='city',
... | 20.894737 | 62 | 0.602015 | 44 | 397 | 5.318182 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115789 | 0.282116 | 397 | 18 | 63 | 22.055556 | 0.705263 | 0.11335 | 0 | 0 | 1 | 0 | 0.122857 | 0.065714 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0da4c93a0db246156ad9da2468a4b81ef3f8debb | 236 | py | Python | Leetcode/0945. Minimum Increment to Make Array Unique/0945.py | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | Leetcode/0945. Minimum Increment to Make Array Unique/0945.py | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | Leetcode/0945. Minimum Increment to Make Array Unique/0945.py | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | class Solution:
def minIncrementForUnique(self, A: List[int]) -> int:
ans = 0
minAvailable = 0
A.sort()
for a in A:
ans += max(minAvailable - a, 0)
minAvailable = max(minAvailable, a) + 1
return ans
| 18.153846 | 55 | 0.588983 | 31 | 236 | 4.483871 | 0.548387 | 0.18705 | 0.230216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024096 | 0.29661 | 236 | 12 | 56 | 19.666667 | 0.813253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0da70d6b2a9456c4dc6c758c1388fb6dfadae27b | 35,571 | py | Python | lib/googlecloudsdk/third_party/apis/policytroubleshooter/v1beta/policytroubleshooter_v1beta_messages.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | 2 | 2019-11-10T09:17:07.000Z | 2019-12-18T13:44:08.000Z | lib/googlecloudsdk/third_party/apis/policytroubleshooter/v1beta/policytroubleshooter_v1beta_messages.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | null | null | null | lib/googlecloudsdk/third_party/apis/policytroubleshooter/v1beta/policytroubleshooter_v1beta_messages.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | 1 | 2020-07-25T01:40:19.000Z | 2020-07-25T01:40:19.000Z | """Generated message classes for policytroubleshooter version v1beta.
"""
# NOTE: This file is autogenerated and should not be edited by hand.
from __future__ import absolute_import
from apitools.base.protorpclite import messages as _messages
from apitools.base.py import encoding
package = 'policytroubleshooter'
... | 49.541783 | 123 | 0.744089 | 4,600 | 35,571 | 5.695 | 0.13587 | 0.010688 | 0.017559 | 0.010307 | 0.520556 | 0.48914 | 0.46887 | 0.435851 | 0.419437 | 0.416116 | 0 | 0.00971 | 0.192235 | 35,571 | 717 | 124 | 49.610879 | 0.902029 | 0.786455 | 0 | 0.240506 | 1 | 0 | 0.116421 | 0.087556 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.018987 | 0 | 0.481013 | 0 | 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 |
0da71e251802d050c264ab1c2ec631b9d79c5a08 | 7,524 | py | Python | pysnmp-with-texts/HPN-ICF-ARP-RATELIMIT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/HPN-ICF-ARP-RATELIMIT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/HPN-ICF-ARP-RATELIMIT-MIB.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 HPN-ICF-ARP-RATELIMIT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HPN-ICF-ARP-RATELIMIT-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:37:29 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.... | 144.692308 | 960 | 0.785486 | 908 | 7,524 | 6.506608 | 0.247797 | 0.038592 | 0.067536 | 0.008802 | 0.30044 | 0.169093 | 0.13524 | 0.13524 | 0.13524 | 0.13524 | 0 | 0.062204 | 0.100478 | 7,524 | 51 | 961 | 147.529412 | 0.810727 | 0.04572 | 0 | 0 | 0 | 0.116279 | 0.370102 | 0.047692 | 0 | 0 | 0.001395 | 0 | 0 | 1 | 0 | false | 0 | 0.186047 | 0 | 0.186047 | 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 |
0daf077298b1ecb3a729c2f600765a99604ab2c1 | 293 | py | Python | src/genie/libs/parser/iosxe/tests/ShowPlatformSoftwareFedactiveFnfEtAnalyticsFlows/cli/equal/golden_output_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 204 | 2018-06-27T00:55:27.000Z | 2022-03-06T21:12:18.000Z | src/genie/libs/parser/iosxe/tests/ShowPlatformSoftwareFedactiveFnfEtAnalyticsFlows/cli/equal/golden_output_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 468 | 2018-06-19T00:33:18.000Z | 2022-03-31T23:23:35.000Z | src/genie/libs/parser/iosxe/tests/ShowPlatformSoftwareFedactiveFnfEtAnalyticsFlows/cli/equal/golden_output_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 309 | 2019-01-16T20:21:07.000Z | 2022-03-30T12:56:41.000Z | expected_output = {'current-eta-records': 0,
'excess-packets-received': 60,
'excess-syn-received': 0,
'total-eta-fnf': 2,
'total-eta-idp': 2,
'total-eta-records': 4,
'total-eta-splt': 2,
'total-packets-out-of-order': 0,
'total-packets-received': 80,
'total-packets-retransmitted': 0}
| 26.636364 | 44 | 0.675768 | 44 | 293 | 4.477273 | 0.5 | 0.162437 | 0.091371 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045802 | 0.105802 | 293 | 10 | 45 | 29.3 | 0.706107 | 0 | 0 | 0 | 0 | 0 | 0.658703 | 0.334471 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0db30e3ef341e8446dbb5c0886d04bc6422810a5 | 6,599 | py | Python | tests/unit/bellman/environments/transition_model/keras_models/test_trajectory_sampling.py | RL-Gym/bellman | 210c9ff877b38705d1cf1b3ccd0f9f2644ad8d0d | [
"Apache-2.0"
] | 40 | 2021-03-24T10:41:56.000Z | 2022-03-15T09:50:47.000Z | tests/unit/bellman/environments/transition_model/keras_models/test_trajectory_sampling.py | RL-Gym/bellman | 210c9ff877b38705d1cf1b3ccd0f9f2644ad8d0d | [
"Apache-2.0"
] | 12 | 2021-03-25T18:36:27.000Z | 2021-07-27T11:09:34.000Z | tests/unit/bellman/environments/transition_model/keras_models/test_trajectory_sampling.py | RL-Gym/bellman | 210c9ff877b38705d1cf1b3ccd0f9f2644ad8d0d | [
"Apache-2.0"
] | 3 | 2021-04-25T03:18:44.000Z | 2021-11-14T15:54:34.000Z | # Copyright 2021 The Bellman Contributors
#
# 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... | 40.484663 | 97 | 0.797697 | 869 | 6,599 | 5.696203 | 0.199079 | 0.06 | 0.063636 | 0.059394 | 0.694747 | 0.664444 | 0.646465 | 0.63899 | 0.60202 | 0.600404 | 0 | 0.005088 | 0.136233 | 6,599 | 162 | 98 | 40.734568 | 0.863333 | 0.141234 | 0 | 0.546392 | 0 | 0 | 0.002656 | 0 | 0 | 0 | 0 | 0 | 0.103093 | 1 | 0.113402 | false | 0 | 0.051546 | 0 | 0.175258 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0dbc0cc6c719b594bd8dc79551381b3b458fd223 | 881 | py | Python | workbench/planning/migrations/0007_planningrequest_receivers.py | yoshson/workbench | 701558cac3357cd82e4dc99f0fefed12ee81ddc5 | [
"MIT"
] | 15 | 2020-09-02T22:17:34.000Z | 2022-02-01T20:09:10.000Z | workbench/planning/migrations/0007_planningrequest_receivers.py | yoshson/workbench | 701558cac3357cd82e4dc99f0fefed12ee81ddc5 | [
"MIT"
] | 18 | 2020-01-08T15:28:26.000Z | 2022-02-28T02:46:41.000Z | workbench/planning/migrations/0007_planningrequest_receivers.py | yoshson/workbench | 701558cac3357cd82e4dc99f0fefed12ee81ddc5 | [
"MIT"
] | 8 | 2020-09-29T08:00:24.000Z | 2022-01-16T11:58:19.000Z | # Generated by Django 3.2a1 on 2021-02-21 10:51
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("planning", "0006_auto_20210221_1150"),
]
operati... | 28.419355 | 70 | 0.603859 | 81 | 881 | 6.382716 | 0.604938 | 0.038685 | 0.061896 | 0.081238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050162 | 0.298524 | 881 | 30 | 71 | 29.366667 | 0.786408 | 0.051078 | 0 | 0.208333 | 1 | 0 | 0.169065 | 0.08753 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.208333 | 0 | 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 |
0dbecf00b1528b43a535bbfff42f87220d239b99 | 4,440 | py | Python | optixrap/tests/interpolationTest_interpol.py | hanswenzel/opticks | b75b5929b6cf36a5eedeffb3031af2920f75f9f0 | [
"Apache-2.0"
] | 11 | 2020-07-05T02:39:32.000Z | 2022-03-20T18:52:44.000Z | optixrap/tests/interpolationTest_interpol.py | hanswenzel/opticks | b75b5929b6cf36a5eedeffb3031af2920f75f9f0 | [
"Apache-2.0"
] | null | null | null | optixrap/tests/interpolationTest_interpol.py | hanswenzel/opticks | b75b5929b6cf36a5eedeffb3031af2920f75f9f0 | [
"Apache-2.0"
] | 4 | 2020-09-03T20:36:32.000Z | 2022-01-19T07:42:21.000Z | #!/usr/bin/env python
#
# Copyright (c) 2019 Opticks Team. All Rights Reserved.
#
# This file is part of Opticks
# (see https://bitbucket.org/simoncblyth/opticks).
#
# 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... | 25.964912 | 119 | 0.53536 | 640 | 4,440 | 3.614063 | 0.260938 | 0.02594 | 0.031128 | 0.012105 | 0.106355 | 0.057933 | 0.02594 | 0 | 0 | 0 | 0 | 0.020171 | 0.341216 | 4,440 | 170 | 120 | 26.117647 | 0.770598 | 0.193694 | 0 | 0.19802 | 0 | 0 | 0.080845 | 0.02 | 0 | 0 | 0 | 0 | 0.069307 | 1 | 0 | false | 0.108911 | 0.039604 | 0 | 0.039604 | 0.049505 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0dc432d70c3a58b878382ac33c84e2309a3f482a | 1,556 | py | Python | app/__init__.py | gabriel-esco/3.3.7.2 | 990e002682aa4663c0420d10ad84b8096872dca5 | [
"MIT"
] | null | null | null | app/__init__.py | gabriel-esco/3.3.7.2 | 990e002682aa4663c0420d10ad84b8096872dca5 | [
"MIT"
] | 1 | 2021-06-11T07:30:02.000Z | 2021-06-11T07:30:02.000Z | app/__init__.py | gabriel-esco/3.3.7.2 | 990e002682aa4663c0420d10ad84b8096872dca5 | [
"MIT"
] | 2 | 2021-06-21T10:29:36.000Z | 2021-07-06T14:44:32.000Z | import os
from flask import Flask, render_template, send_from_directory, request, flash
from flask_wtf import Form
from wtforms import TextField, BooleanField, TextAreaField, SubmitField, validators, ValidationError
from dotenv import load_dotenv
load_dotenv()
app = Flask(__name__)
app.secret_key = 'development identi... | 34.577778 | 144 | 0.69473 | 187 | 1,556 | 5.695187 | 0.358289 | 0.078873 | 0.093897 | 0.10892 | 0.253521 | 0.135211 | 0.073239 | 0 | 0 | 0 | 0 | 0 | 0.158098 | 1,556 | 44 | 145 | 35.363636 | 0.812977 | 0 | 0 | 0.058824 | 0 | 0 | 0.229434 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.147059 | 0.088235 | 0.617647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0dcdf7fd964d5c007df3fa7e2e910f54777d51b6 | 307 | py | Python | easy/number-of-1-bits.py | trilliwon/LeetCode | d137df53fa2489821b3c17ac22f24d9a1ae86304 | [
"MIT"
] | null | null | null | easy/number-of-1-bits.py | trilliwon/LeetCode | d137df53fa2489821b3c17ac22f24d9a1ae86304 | [
"MIT"
] | null | null | null | easy/number-of-1-bits.py | trilliwon/LeetCode | d137df53fa2489821b3c17ac22f24d9a1ae86304 | [
"MIT"
] | null | null | null | class Solution(object):
def hammingWeight(self, n):
"""
:type n: int
:rtype: int
"""
if n == 1:
return 1
hw = 0
while n != 0:
if n % 2 == 1:
hw += 1
n //= 2
return hw
| 16.157895 | 31 | 0.309446 | 32 | 307 | 2.96875 | 0.53125 | 0.063158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.583062 | 307 | 18 | 32 | 17.055556 | 0.679688 | 0.078176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0dd511d9876b518c6664a2360fc076b46ebf0e43 | 2,001 | py | Python | app/views/login_page.py | ngocjr7/scoss_webapp | cb86b9dda509f2fc0d4d5c03566fcd7f13186c83 | [
"MIT"
] | 3 | 2021-05-10T04:10:58.000Z | 2022-01-06T13:36:45.000Z | app/views/login_page.py | ngocjr7/scoss_webapp | cb86b9dda509f2fc0d4d5c03566fcd7f13186c83 | [
"MIT"
] | 4 | 2020-10-16T09:12:34.000Z | 2021-04-03T07:48:39.000Z | app/views/login_page.py | ngocjr7/scoss_webapp | cb86b9dda509f2fc0d4d5c03566fcd7f13186c83 | [
"MIT"
] | 1 | 2021-05-07T16:22:39.000Z | 2021-05-07T16:22:39.000Z | import os
import sys
from werkzeug.utils import secure_filename
from flask import Flask, render_template, url_for, request, redirect, session, jsonify, Blueprint
from scoss import smoss
import requests
from sctokenizer import Source
from scoss import Scoss
from scoss.metrics import all_metrics
from models.models import... | 32.274194 | 97 | 0.709145 | 264 | 2,001 | 5.261364 | 0.318182 | 0.039597 | 0.043197 | 0.024478 | 0.237581 | 0.179986 | 0.179986 | 0.077754 | 0 | 0 | 0 | 0.002299 | 0.130435 | 2,001 | 61 | 98 | 32.803279 | 0.795977 | 0 | 0 | 0.181818 | 0 | 0 | 0.174913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054545 | false | 0.109091 | 0.236364 | 0 | 0.418182 | 0.036364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0dd96dafabd6e082bbd2ec6fa33fe6bd2c8adf2d | 3,295 | py | Python | graph/__init__.py | mrhash101/zincbase | 40d68bcb50e8a509cafe7496545f172cc3559406 | [
"MIT"
] | 1 | 2020-02-08T20:18:02.000Z | 2020-02-08T20:18:02.000Z | graph/__init__.py | mrhash101/zincbase | 40d68bcb50e8a509cafe7496545f172cc3559406 | [
"MIT"
] | null | null | null | graph/__init__.py | mrhash101/zincbase | 40d68bcb50e8a509cafe7496545f172cc3559406 | [
"MIT"
] | null | null | null | from collections import defaultdict
import networkx as nx
class Node:
"""Class representing a node in the KB.
"""
def __init__(self, kb, name, data, watches=[]):
super().__setattr__('_kb', kb)
super().__setattr__('_name', name)
nx.set_node_attributes(self._kb.G, {self._name: data})... | 32.95 | 82 | 0.600303 | 413 | 3,295 | 4.508475 | 0.300242 | 0.038668 | 0.051557 | 0.058002 | 0.160043 | 0.160043 | 0.128894 | 0.128894 | 0.03652 | 0 | 0 | 0.005102 | 0.286191 | 3,295 | 100 | 83 | 32.95 | 0.786565 | 0.287709 | 0 | 0.074074 | 0 | 0 | 0.022294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.240741 | false | 0.018519 | 0.037037 | 0.092593 | 0.481481 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ddb56157ccfdc74e4037a9e51a4705b7051d041 | 2,631 | py | Python | src/scripts/m2o-analysis.py | ai-ku/upos | 27d610318a0c777e2ca88b1ab2de5aa48f5a399f | [
"MIT"
] | 4 | 2015-01-24T11:27:18.000Z | 2019-05-18T11:35:02.000Z | src/scripts/m2o-analysis.py | ai-ku/upos | 27d610318a0c777e2ca88b1ab2de5aa48f5a399f | [
"MIT"
] | null | null | null | src/scripts/m2o-analysis.py | ai-ku/upos | 27d610318a0c777e2ca88b1ab2de5aa48f5a399f | [
"MIT"
] | 1 | 2019-04-06T07:56:00.000Z | 2019-04-06T07:56:00.000Z | #!/usr/bin/env python
# # Sample Usage:
# # ./m2o-analysis.py enw.words.gz enw.pos.gz
# # > perp>1.75
# # dance 1.75 12
# # Crowd 1.75 8
# # meltdown 1.75 4
# # Personnel 1.75 4
# # ...
# # >
# #
from collections import defaultdict as dd
import gzip
from itertools import izip
import math
import re
import sys
def read... | 26.31 | 99 | 0.549221 | 398 | 2,631 | 3.580402 | 0.29397 | 0.037895 | 0.033684 | 0.014737 | 0.202807 | 0.202807 | 0.127018 | 0.099649 | 0.060351 | 0.060351 | 0 | 0.025303 | 0.278981 | 2,631 | 99 | 100 | 26.575758 | 0.725883 | 0.062334 | 0 | 0.181818 | 0 | 0 | 0.047444 | 0 | 0 | 0 | 0 | 0 | 0.025974 | 0 | null | null | 0 | 0.077922 | null | null | 0.077922 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0de398f9fc847aed59bb1b47afc1e96fa01ccde9 | 269 | py | Python | ex04/bissextile.py | joaquim2509pedro/Day02 | 77cd38fa8e5361d6ab2362384bf1b34894ffc54a | [
"MIT"
] | null | null | null | ex04/bissextile.py | joaquim2509pedro/Day02 | 77cd38fa8e5361d6ab2362384bf1b34894ffc54a | [
"MIT"
] | null | null | null | ex04/bissextile.py | joaquim2509pedro/Day02 | 77cd38fa8e5361d6ab2362384bf1b34894ffc54a | [
"MIT"
] | null | null | null | annee = int(input (f"Saisissez une année\n"))
if (annee%4 != 0):
print ("ce n'est pas une annee bissextile")
else:
if (annee%100 == 0 and annee%400 != 0):
print ("ce n'est une annee bissextile")
else :
print ("c'est une annee bissextile")
| 24.454545 | 47 | 0.594796 | 43 | 269 | 3.72093 | 0.488372 | 0.15 | 0.3375 | 0.1125 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.256506 | 269 | 10 | 48 | 26.9 | 0.75 | 0 | 0 | 0.25 | 0 | 0 | 0.40824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0de805e2c8005506975b58d678312d34c2fb2515 | 707 | py | Python | noc/bouncingball/ball.py | kantel/pygamezero | 93c202a2bd5bcc827eabe952575b7714b36e4b9d | [
"MIT"
] | 1 | 2020-06-29T00:36:07.000Z | 2020-06-29T00:36:07.000Z | noc/bouncingball/ball.py | kantel/pygamezero | 93c202a2bd5bcc827eabe952575b7714b36e4b9d | [
"MIT"
] | null | null | null | noc/bouncingball/ball.py | kantel/pygamezero | 93c202a2bd5bcc827eabe952575b7714b36e4b9d | [
"MIT"
] | null | null | null | from pvector import PVector
WIDTH = 400
HEIGHT = 400
class Ball():
def __init__(self, x, y, v_x, v_y, radius, color):
self.position = PVector(x, y)
self.radius = radius
self.color = color
self. velocity = PVector(v_x, v_y)
def show(self, screen):
screen.draw.f... | 30.73913 | 94 | 0.596888 | 99 | 707 | 4.171717 | 0.282828 | 0.232446 | 0.079903 | 0.01937 | 0.217918 | 0.130751 | 0 | 0 | 0 | 0 | 0 | 0.015534 | 0.27157 | 707 | 23 | 95 | 30.73913 | 0.786408 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.058824 | 0 | 0.294118 | 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 |
0de8b0407db1e745be487a949a9e053758dcf79c | 1,602 | py | Python | models.py | kdropps87/dotstarweb | 1b3a815618398ef4d146cdb92809c1f43ace7aee | [
"MIT"
] | null | null | null | models.py | kdropps87/dotstarweb | 1b3a815618398ef4d146cdb92809c1f43ace7aee | [
"MIT"
] | 1 | 2022-03-26T15:11:55.000Z | 2022-03-26T15:11:55.000Z | models.py | kdropps87/dotstarweb | 1b3a815618398ef4d146cdb92809c1f43ace7aee | [
"MIT"
] | 1 | 2022-03-25T19:19:43.000Z | 2022-03-25T19:19:43.000Z | from sqlalchemy import Boolean, Column, ForeignKey
from sqlalchemy.sql.schema import Index
from sqlalchemy.orm import relation, relationship
from sqlalchemy.sql.sqltypes import Float, Enum, Integer, String
from database import Base
import enum
class LightingMode(str, enum.Enum):
single_color = "Single Color"
... | 30.226415 | 97 | 0.730337 | 189 | 1,602 | 5.984127 | 0.306878 | 0.114943 | 0.066313 | 0.083996 | 0.145004 | 0.145004 | 0.100796 | 0.100796 | 0 | 0 | 0 | 0 | 0.169164 | 1,602 | 52 | 98 | 30.807692 | 0.849737 | 0 | 0 | 0 | 0 | 0 | 0.079375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0df0f4f40cfacb851faf95607e04c72dca3591ef | 1,247 | py | Python | issue_order/migrations/0015_auto_20180823_2108.py | jiejiang/courier | 6fdeaf041c77dba0f97e206adb7b0cded9674d3d | [
"Apache-2.0"
] | null | null | null | issue_order/migrations/0015_auto_20180823_2108.py | jiejiang/courier | 6fdeaf041c77dba0f97e206adb7b0cded9674d3d | [
"Apache-2.0"
] | 13 | 2020-02-12T02:56:24.000Z | 2022-01-13T01:23:08.000Z | issue_order/migrations/0015_auto_20180823_2108.py | jiejiang/courier | 6fdeaf041c77dba0f97e206adb7b0cded9674d3d | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2018-08-23 20:08
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('issue_order', '0014_auto_20180819_2108'),
]
operat... | 34.638889 | 191 | 0.597434 | 132 | 1,247 | 5.477273 | 0.575758 | 0.033195 | 0.038728 | 0.060858 | 0.055325 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061555 | 0.257418 | 1,247 | 35 | 192 | 35.628571 | 0.719222 | 0.054531 | 0 | 0.178571 | 1 | 0 | 0.157313 | 0.019558 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.107143 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0df67996ae835fda31168cbd2e44958e39a4a048 | 3,404 | py | Python | csvtest5.py | ivan-pi/rheology_lab | 220bc18319e54fff18594b6eb86ff188c072f39a | [
"MIT"
] | null | null | null | csvtest5.py | ivan-pi/rheology_lab | 220bc18319e54fff18594b6eb86ff188c072f39a | [
"MIT"
] | null | null | null | csvtest5.py | ivan-pi/rheology_lab | 220bc18319e54fff18594b6eb86ff188c072f39a | [
"MIT"
] | null | null | null | import csv
import numpy as np
from lmfit import minimize, Parameters, fit_report
import matplotlib.pyplot as plt
import maxwell as m
# INITIALIZE LISTS
omega = []
storG = []
lossG = []
dFactor = []
cVisc = []
# READ FROM CSV FILE
with open('1skupina.csv', 'rb') as csvfile:
for i in range(0,5):
next(csvfil... | 25.214815 | 96 | 0.609283 | 640 | 3,404 | 3.229688 | 0.253125 | 0.087083 | 0.087083 | 0.096759 | 0.357039 | 0.307692 | 0.292695 | 0.285922 | 0.081277 | 0.081277 | 0 | 0.076789 | 0.158343 | 3,404 | 134 | 97 | 25.402985 | 0.644677 | 0.150705 | 0 | 0.114583 | 0 | 0 | 0.082521 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052083 | null | null | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0df918a8622feb052dcc92d4e6d7c68c6a04f763 | 1,134 | py | Python | file_storage/users.py | cleac/knu-oop-module | d163d54c6df1abccc8d48192e998972c40896aab | [
"Unlicense",
"MIT"
] | null | null | null | file_storage/users.py | cleac/knu-oop-module | d163d54c6df1abccc8d48192e998972c40896aab | [
"Unlicense",
"MIT"
] | null | null | null | file_storage/users.py | cleac/knu-oop-module | d163d54c6df1abccc8d48192e998972c40896aab | [
"Unlicense",
"MIT"
] | null | null | null | import json
from enum import IntEnum
from file_storage.utils import Deserializable
from file_storage.utils import Serializable
Roles = IntEnum("Roles", {
'user': 1,
'moderator': 2,
'admin': 3,
'superadmin': 4
})
class User(Serializable, Deserializable):
def __init__(
self, login, n... | 24.652174 | 71 | 0.574956 | 124 | 1,134 | 5.153226 | 0.387097 | 0.042254 | 0.046948 | 0.062598 | 0.081377 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005051 | 0.301587 | 1,134 | 45 | 72 | 25.2 | 0.801768 | 0 | 0 | 0.055556 | 0 | 0 | 0.114638 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.111111 | 0.111111 | 0.055556 | 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 |
216f530b3c507f172781a682d9a90af24ba455a4 | 757 | py | Python | toolkit/filetype.py | yufeiminds/toolkit | 2d3986f2711f0ee9ee9cd75c25752ef4d0f42ff7 | [
"MIT"
] | null | null | null | toolkit/filetype.py | yufeiminds/toolkit | 2d3986f2711f0ee9ee9cd75c25752ef4d0f42ff7 | [
"MIT"
] | null | null | null | toolkit/filetype.py | yufeiminds/toolkit | 2d3986f2711f0ee9ee9cd75c25752ef4d0f42ff7 | [
"MIT"
] | 2 | 2015-10-07T05:24:18.000Z | 2022-01-09T02:34:02.000Z | # coding=utf8
"""
Helper function for file types.
"""
from toolkit import ToolkitException
class FiletypeException(ToolkitException):
pass
class FiledetException(FiletypeException):
pass
_file_type_map = {
'.py': 'python',
'.sh': 'bash',
}
def filedet(name, fobj=None, suffix=None):
"""
... | 19.410256 | 62 | 0.632761 | 92 | 757 | 5.141304 | 0.521739 | 0.067653 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005128 | 0.227213 | 757 | 38 | 63 | 19.921053 | 0.803419 | 0.303831 | 0 | 0.125 | 0 | 0 | 0.069672 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.125 | 0.0625 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
21700aec4c46fb66c3a2ca19fa2fef9d365ddc59 | 1,300 | py | Python | scripts/ruler/measures/cwl_rbp.py | leifos/cwl | 7f9f3133373079cf1f65b5e370da4accef59380f | [
"MIT"
] | 6 | 2018-07-31T11:00:59.000Z | 2021-06-18T06:29:31.000Z | scripts/ruler/measures/cwl_rbp.py | leifos/cwl | 7f9f3133373079cf1f65b5e370da4accef59380f | [
"MIT"
] | null | null | null | scripts/ruler/measures/cwl_rbp.py | leifos/cwl | 7f9f3133373079cf1f65b5e370da4accef59380f | [
"MIT"
] | 1 | 2020-10-15T03:23:29.000Z | 2020-10-15T03:23:29.000Z | import numpy as np
from ruler.measures.cwl_metrics import CWLMetric
'''
@article{Moffat:2008:RPM:1416950.1416952,
author = {Moffat, Alistair and Zobel, Justin},
title = {Rank-biased Precision for Measurement of Retrieval Effectiveness},
journal = {ACM Trans. Inf. Syst.},
volume = {27},
number = {1},
year = {200... | 27.659574 | 83 | 0.596154 | 162 | 1,300 | 4.716049 | 0.450617 | 0.073298 | 0.044503 | 0.052356 | 0.63089 | 0.63089 | 0.63089 | 0.63089 | 0.63089 | 0.63089 | 0 | 0.112245 | 0.246154 | 1,300 | 46 | 84 | 28.26087 | 0.667347 | 0 | 0 | 0 | 0 | 0 | 0.50915 | 0.044133 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.076923 | 0.038462 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
21704fe62c286bb8659ecacf840932e7d28cdf59 | 774 | py | Python | utils/ana_score.py | igemsoftware/HFUT-China_2015 | 5db86858963d29188ec1a8fdedaf7a98f4528cf4 | [
"Apache-2.0"
] | null | null | null | utils/ana_score.py | igemsoftware/HFUT-China_2015 | 5db86858963d29188ec1a8fdedaf7a98f4528cf4 | [
"Apache-2.0"
] | 3 | 2015-09-21T21:50:45.000Z | 2015-09-22T15:42:28.000Z | utils/ana_score.py | igemsoftware/HFUT-China_2015 | 5db86858963d29188ec1a8fdedaf7a98f4528cf4 | [
"Apache-2.0"
] | 2 | 2020-03-28T01:33:51.000Z | 2021-07-18T13:56:27.000Z | import os
import django
import sys
import traceback
pro_dir = os.getcwd()
sys.path.append(pro_dir)
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "BioDesigner.settings")
from design.models import parts
if __name__ == '__main__':
django.setup()
f = open('ans.txt', 'r')
for line in f:
infos = line.... | 25.8 | 79 | 0.571059 | 97 | 774 | 4.340206 | 0.536082 | 0.099762 | 0.085511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009488 | 0.319121 | 774 | 29 | 80 | 26.689655 | 0.789374 | 0 | 0 | 0 | 0 | 0 | 0.077519 | 0.028424 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.037037 | 0.185185 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
21746c11198fac2ffa19eb0b4b7e31dd74d59ff7 | 2,519 | py | Python | TheArtificialPoet/draw.py | shyamvalsan/BotsRevolution | 170d93433d442507e5a7c8516b83ee4e039b2438 | [
"MIT"
] | null | null | null | TheArtificialPoet/draw.py | shyamvalsan/BotsRevolution | 170d93433d442507e5a7c8516b83ee4e039b2438 | [
"MIT"
] | null | null | null | TheArtificialPoet/draw.py | shyamvalsan/BotsRevolution | 170d93433d442507e5a7c8516b83ee4e039b2438 | [
"MIT"
] | null | null | null | import subprocess
import random, os, sys
from PIL import Image, ImageDraw, ImageFont, ImageFilter
cmd20 = "awk -F\"|\" '$11 == 20{print}' ../poem_db.csv | sort -R | head -n 1"
cmd40 = "awk -F\"|\" '$11 == 40{print}' ../poem_db.csv | sort -R | head -n 1"
os.chdir(sys.argv[1])
for fn in os.listdir('.'):
fnr = random.c... | 36.507246 | 125 | 0.634776 | 417 | 2,519 | 3.733813 | 0.330935 | 0.051381 | 0.05395 | 0.071933 | 0.231214 | 0.231214 | 0.082209 | 0.082209 | 0.082209 | 0.050096 | 0 | 0.120769 | 0.132195 | 2,519 | 68 | 126 | 37.044118 | 0.591491 | 0.060738 | 0 | 0.067797 | 0 | 0 | 0.129606 | 0.021601 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.050847 | null | null | 0.067797 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
21750d16a5400c1d6112a19602136088a3226fbd | 10,265 | py | Python | myfs.py | cty12/sdbfs | c381b7c268a1366e015f4512bf1488f510d5c669 | [
"MIT"
] | null | null | null | myfs.py | cty12/sdbfs | c381b7c268a1366e015f4512bf1488f510d5c669 | [
"MIT"
] | null | null | null | myfs.py | cty12/sdbfs | c381b7c268a1366e015f4512bf1488f510d5c669 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
from stat import S_IFDIR, S_IFLNK, S_IFREG
from sys import argv, exit
from time import time
import traceback
import errno
from fuse import FUSE, FuseOSError, Operations
import sqlite3
class DbFS(Operations):
def __init__(self):
#print os.path.abspath('.')
self.DB... | 27.373333 | 169 | 0.511544 | 1,231 | 10,265 | 4.221771 | 0.135662 | 0.04618 | 0.05888 | 0.071965 | 0.619588 | 0.587069 | 0.553973 | 0.503175 | 0.465268 | 0.465268 | 0 | 0.024278 | 0.345933 | 10,265 | 374 | 170 | 27.446524 | 0.749777 | 0.014126 | 0 | 0.572464 | 0 | 0 | 0.251434 | 0.018984 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003623 | 0.028986 | null | null | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
217c138245b6bf5858247f98347a771a36cbacb8 | 270 | py | Python | examples/task.py | Nostalgiaaa/dispatcher | 398eabcf1f8de7f0a2ffca521e4549621fd651ae | [
"BSD-3-Clause"
] | 3 | 2017-04-27T19:54:23.000Z | 2020-12-17T05:08:07.000Z | examples/task.py | Nostalgiaaa/dispatcher | 398eabcf1f8de7f0a2ffca521e4549621fd651ae | [
"BSD-3-Clause"
] | 4 | 2017-04-12T07:37:15.000Z | 2020-12-22T09:32:50.000Z | examples/task.py | Nostalgiaaa/dispatcher | 398eabcf1f8de7f0a2ffca521e4549621fd651ae | [
"BSD-3-Clause"
] | 3 | 2019-01-24T11:30:29.000Z | 2020-12-11T03:45:24.000Z | import logging
from dispatcher import init_dispatcher
from celery import Celery
app = Celery('tasks', broker='redis://localhost')
app.conf.update(broker_transport_options={'visibility_timeout': 5})
logger = logging.getLogger('test')
init_dispatcher('.', '.', logger)
| 24.545455 | 67 | 0.766667 | 33 | 270 | 6.121212 | 0.636364 | 0.138614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004082 | 0.092593 | 270 | 10 | 68 | 27 | 0.820408 | 0 | 0 | 0 | 0 | 0 | 0.17037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
21837267398bf6cecf205941c402e7b5bcf588ed | 7,405 | py | Python | opencenter/backends/nova/psbk_manager.py | oolorg/opencenter | 689805f663ce9332b2502f98c384a7b4d9d46ce4 | [
"Apache-2.0"
] | null | null | null | opencenter/backends/nova/psbk_manager.py | oolorg/opencenter | 689805f663ce9332b2502f98c384a7b4d9d46ce4 | [
"Apache-2.0"
] | null | null | null | opencenter/backends/nova/psbk_manager.py | oolorg/opencenter | 689805f663ce9332b2502f98c384a7b4d9d46ce4 | [
"Apache-2.0"
] | null | null | null | import ool_rm_if
import pica8_if
import pfs_if
import riava_if
import centec_if
import datetime
import pslist_backup
import commands
import os
# Physical Switch Backup/Restore Manager
TST_FLAG='OFF'
DBG_FLAG='ON'
TRACE_TITLE='PSBK_MANAGER:%s'
EXCEPT_TITLE='PSBK_MANAGER:%s'
AUTH_KEY='xxx'
BACKDIR="/backup/"
PY_PATH=o... | 25.273038 | 109 | 0.680486 | 1,240 | 7,405 | 3.705645 | 0.118548 | 0.042437 | 0.045267 | 0.031121 | 0.526007 | 0.43765 | 0.39086 | 0.377367 | 0.350816 | 0.345593 | 0 | 0.018149 | 0.166644 | 7,405 | 292 | 110 | 25.359589 | 0.726462 | 0.040108 | 0 | 0.386957 | 0 | 0 | 0.127923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008696 | 0.03913 | null | null | 0.030435 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2197e50b1fd7de2c6cfbe1448cb8dd5f24d13f6e | 1,670 | py | Python | test/language/templates/python/StructFullAndShortTemplateArgumentTest.py | chenpeihua/zserio | c021d6f943f25c2eb7d91712eb7bd5de13f9c8bc | [
"BSD-3-Clause"
] | null | null | null | test/language/templates/python/StructFullAndShortTemplateArgumentTest.py | chenpeihua/zserio | c021d6f943f25c2eb7d91712eb7bd5de13f9c8bc | [
"BSD-3-Clause"
] | null | null | null | test/language/templates/python/StructFullAndShortTemplateArgumentTest.py | chenpeihua/zserio | c021d6f943f25c2eb7d91712eb7bd5de13f9c8bc | [
"BSD-3-Clause"
] | null | null | null | import unittest
import zserio
from testutils import getZserioApi
class StructFullAndShortTemplateArgumentTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.api = getZserioApi(__file__, "templates.zs").struct_full_and_short_template_argument
def testReadWriteFull(self):
storage... | 49.117647 | 111 | 0.783234 | 124 | 1,670 | 10.41129 | 0.346774 | 0.043377 | 0.074361 | 0.102246 | 0.407436 | 0.325329 | 0.325329 | 0.238575 | 0.238575 | 0.15182 | 0 | 0 | 0.145509 | 1,670 | 33 | 112 | 50.606061 | 0.904695 | 0 | 0 | 0.296296 | 0 | 0 | 0.014371 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.259259 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2199d0502be552fbade1b4d5d6d505c7e9b0e43f | 2,867 | py | Python | backend/api/routes.py | haley-r/solderless-microlab | 93b69f86aeb8dce7cc504ca8e089006f1c529c97 | [
"MIT"
] | null | null | null | backend/api/routes.py | haley-r/solderless-microlab | 93b69f86aeb8dce7cc504ca8e089006f1c529c97 | [
"MIT"
] | null | null | null | backend/api/routes.py | haley-r/solderless-microlab | 93b69f86aeb8dce7cc504ca8e089006f1c529c97 | [
"MIT"
] | null | null | null | """
Module defining API.
"""
from api import app
from flask import jsonify
import recipes
@app.route('/list')
def list():
"""
List all available recipes
:return:
list
a list containing the names of the recipes. ex: ['recipe1',recipe2']
"""
recipes.refresh()
return jsonify(recipes.... | 24.504274 | 94 | 0.555284 | 350 | 2,867 | 4.545714 | 0.265714 | 0.039598 | 0.028284 | 0.043369 | 0.353865 | 0.336267 | 0.336267 | 0.306097 | 0.306097 | 0.306097 | 0 | 0.001642 | 0.362749 | 2,867 | 116 | 95 | 24.715517 | 0.869184 | 0.622253 | 0 | 0.321429 | 0 | 0 | 0.154337 | 0.026786 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0 | 0.107143 | 0 | 0.535714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
219a8bbbb5ddcdc7faeef3271b80de9f0bb6efe5 | 2,927 | py | Python | SingleCodeRun.py | hsspratt/Nott-Hawkeye1 | 178f4f0fef62e8699f6057d9d50adfd61a851047 | [
"MIT"
] | null | null | null | SingleCodeRun.py | hsspratt/Nott-Hawkeye1 | 178f4f0fef62e8699f6057d9d50adfd61a851047 | [
"MIT"
] | 1 | 2021-11-11T22:15:36.000Z | 2021-11-11T22:15:36.000Z | SingleCodeRun.py | hsspratt/Nott-Hawkeye1 | 178f4f0fef62e8699f6057d9d50adfd61a851047 | [
"MIT"
] | null | null | null | # %% TEst Final run
%matplotlib widget
import matplotlib.pyplot as plt
import numpy as np
import VectorFunctions as vf
import importlib as imp
import functions as f
imp.reload(vf)
angles_BA = np.array(f.import_bz2('test_photos_angles2'))
cameraA_r0 = np.array([0,0,0])
cameraB_r0 = np.array([-29,42,1])
cameras_r0 = [... | 28.696078 | 97 | 0.680902 | 525 | 2,927 | 3.607619 | 0.24 | 0.036959 | 0.012672 | 0.025343 | 0.23812 | 0.172122 | 0.134108 | 0.134108 | 0.097149 | 0.097149 | 0 | 0.065938 | 0.124359 | 2,927 | 101 | 98 | 28.980198 | 0.673039 | 0.062521 | 0 | 0 | 0 | 0 | 0.05517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.089552 | null | null | 0.104478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
21ae33d4c5b325b318d1b4cb59a39a8480dca562 | 5,383 | py | Python | Models/kNN.py | AlgoAIBoss/Data-Mining-Cup | 2bfef0c7d0a11f47dccb538b636892b49ceda4f3 | [
"MIT"
] | null | null | null | Models/kNN.py | AlgoAIBoss/Data-Mining-Cup | 2bfef0c7d0a11f47dccb538b636892b49ceda4f3 | [
"MIT"
] | null | null | null | Models/kNN.py | AlgoAIBoss/Data-Mining-Cup | 2bfef0c7d0a11f47dccb538b636892b49ceda4f3 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
from sklearn.metrics.pairwise import euclidean_distances, cosine_similarity, manhattan_distances
def top_5(book, items, similarity_measure):
"""
This function extracts the top-five similar books for a given book and
similarity measure. This function takes t... | 39.580882 | 215 | 0.626045 | 674 | 5,383 | 4.805638 | 0.166172 | 0.066687 | 0.040753 | 0.034579 | 0.795616 | 0.761655 | 0.684779 | 0.652362 | 0.615931 | 0.561593 | 0 | 0.015118 | 0.250418 | 5,383 | 136 | 216 | 39.580882 | 0.787608 | 0.225153 | 0 | 0.418182 | 0 | 0 | 0.137854 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036364 | false | 0 | 0.054545 | 0 | 0.145455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
21af8b7a9f0f42591a89d5d63ea09946766ab8ea | 4,284 | py | Python | demos/python/sdk_wireless_camera_control/open_gopro/util.py | hypoxic/OpenGoPro | 2c3efd3ef39ef3ae502981cd494d48ececff2bc6 | [
"MIT"
] | 1 | 2021-07-19T22:55:05.000Z | 2021-07-19T22:55:05.000Z | demos/python/sdk_wireless_camera_control/open_gopro/util.py | hypoxic/OpenGoPro | 2c3efd3ef39ef3ae502981cd494d48ececff2bc6 | [
"MIT"
] | null | null | null | demos/python/sdk_wireless_camera_control/open_gopro/util.py | hypoxic/OpenGoPro | 2c3efd3ef39ef3ae502981cd494d48ececff2bc6 | [
"MIT"
] | null | null | null | # util.py/Open GoPro, Version 1.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro).
# This copyright was auto-generated on Tue May 18 22:08:50 UTC 2021
"""Miscellaneous utilities for the GoPro package."""
import sys
import queue
import logging
import subprocess
from pathlib import Path
from typing import D... | 33.209302 | 111 | 0.613445 | 569 | 4,284 | 4.553603 | 0.386643 | 0.03242 | 0.056735 | 0.021613 | 0.11154 | 0.11154 | 0.11154 | 0.096102 | 0.038209 | 0.038209 | 0 | 0.013423 | 0.269608 | 4,284 | 128 | 112 | 33.46875 | 0.814637 | 0.322829 | 0 | 0.042857 | 1 | 0.014286 | 0.182147 | 0.05421 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.014286 | 0.085714 | 0 | 0.257143 | 0 | 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 |
21b990418ad70c0805ae51c9a4258e80c3c0f2de | 431 | py | Python | websubsub/migrations/0011_subscription_static.py | Fak3/websubsub | f7ca8953197104483b152367c716028d841facbb | [
"MIT"
] | 4 | 2018-03-18T03:44:24.000Z | 2019-08-10T00:40:54.000Z | websubsub/migrations/0011_subscription_static.py | Fak3/websubsub | f7ca8953197104483b152367c716028d841facbb | [
"MIT"
] | 9 | 2020-02-12T13:38:38.000Z | 2021-06-02T01:03:43.000Z | websubsub/migrations/0011_subscription_static.py | Fak3/websubsub | f7ca8953197104483b152367c716028d841facbb | [
"MIT"
] | 2 | 2019-08-10T00:41:00.000Z | 2020-02-09T10:09:59.000Z | # Generated by Django 2.0.13 on 2020-02-16 13:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('websubsub', '0010_subscription_time_last_event_received'),
]
operations = [
migrations.AddField(
model_name='subscription',
... | 22.684211 | 69 | 0.633411 | 45 | 431 | 5.933333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062696 | 0.259861 | 431 | 18 | 70 | 23.944444 | 0.774295 | 0.106729 | 0 | 0 | 1 | 0 | 0.180157 | 0.109661 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
21bbbbdb66b6f904c22d8bbae380ff55a3e092e2 | 18,313 | py | Python | sdk/python/pulumi_aws/storagegateway/stored_iscsi_volume.py | sibuthomasmathew/pulumi-aws | 6351f2182eb6f693d4e09e4136c385adfa0ab674 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/storagegateway/stored_iscsi_volume.py | sibuthomasmathew/pulumi-aws | 6351f2182eb6f693d4e09e4136c385adfa0ab674 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/storagegateway/stored_iscsi_volume.py | sibuthomasmathew/pulumi-aws | 6351f2182eb6f693d4e09e4136c385adfa0ab674 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # 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
from .. import _utilitie... | 49.628726 | 314 | 0.660733 | 2,313 | 18,313 | 5.011673 | 0.111111 | 0.058834 | 0.050725 | 0.031056 | 0.688233 | 0.604814 | 0.540028 | 0.512164 | 0.495773 | 0.480763 | 0 | 0.013127 | 0.242888 | 18,313 | 368 | 315 | 49.763587 | 0.822935 | 0.418173 | 0 | 0.218274 | 1 | 0 | 0.15348 | 0.033761 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116751 | false | 0.005076 | 0.025381 | 0.010152 | 0.258883 | 0 | 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 |
21bf4601297611455676711b42799cfd1f4ea3ea | 9,298 | py | Python | framework/project_spdk.py | spdk/tests | 471bb8be275a2b18933bfdb19da109973e09cf05 | [
"BSD-3-Clause"
] | 3 | 2020-04-30T10:47:35.000Z | 2022-01-03T08:18:21.000Z | framework/project_spdk.py | spdk/tests | 471bb8be275a2b18933bfdb19da109973e09cf05 | [
"BSD-3-Clause"
] | null | null | null | framework/project_spdk.py | spdk/tests | 471bb8be275a2b18933bfdb19da109973e09cf05 | [
"BSD-3-Clause"
] | 7 | 2017-10-12T08:15:37.000Z | 2021-09-07T06:56:04.000Z | # BSD LICENSE
#
# Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
# 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 the above copy... | 46.029703 | 101 | 0.556356 | 1,107 | 9,298 | 4.550136 | 0.265583 | 0.055589 | 0.09728 | 0.078618 | 0.47032 | 0.399444 | 0.303355 | 0.205678 | 0.16756 | 0.126266 | 0 | 0.020963 | 0.32792 | 9,298 | 201 | 102 | 46.258706 | 0.785086 | 0.165842 | 0 | 0.27451 | 0 | 0.013072 | 0.209987 | 0 | 0 | 0 | 0 | 0 | 0.026144 | 0 | null | null | 0 | 0.03268 | null | null | 0.052288 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
21ca4e16cfc74748715514566bf2a08cf1c50a59 | 5,270 | py | Python | domintell/controller.py | yaccri/python-domintell | e8a17c9f25ef071a58dd0656746bde9105ba5f01 | [
"MIT"
] | 1 | 2021-12-03T04:29:21.000Z | 2021-12-03T04:29:21.000Z | domintell/controller.py | yaccri/python-domintell | e8a17c9f25ef071a58dd0656746bde9105ba5f01 | [
"MIT"
] | 3 | 2020-09-20T11:50:28.000Z | 2021-08-13T10:16:14.000Z | domintell/controller.py | yaccri/python-domintell | e8a17c9f25ef071a58dd0656746bde9105ba5f01 | [
"MIT"
] | 6 | 2020-10-05T20:23:06.000Z | 2021-09-14T07:18:31.000Z | """
:author: Thomas Delaet <thomas@delaet.org>
Port for Domintell
:author: Zilvinas Binisevicius <zilvinas@binis.me>
"""
import logging
import time
import json
import domintell
from domintell.utils import ModuleJSONEncoder
MODULE_CATEGORIES = {
# todo: fix modules
'switch': ['VMB4RYLD', 'VMB4RYNO'],
'sen... | 27.883598 | 89 | 0.562239 | 503 | 5,270 | 5.77336 | 0.310139 | 0.049587 | 0.019284 | 0.022727 | 0.09573 | 0.09573 | 0.027548 | 0.027548 | 0 | 0 | 0 | 0.004033 | 0.341366 | 5,270 | 188 | 90 | 28.031915 | 0.832613 | 0.204364 | 0 | 0.164706 | 0 | 0 | 0.047949 | 0 | 0 | 0 | 0 | 0.010638 | 0.023529 | 1 | 0.188235 | false | 0.035294 | 0.058824 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
21cb6d9fefc7f0f9dee9673032f59bfe8f395b30 | 699 | py | Python | python/quicksort.py | tushariscoolster/algorithm | 36c66276b048abae430fb7b952a981b73739c642 | [
"Unlicense",
"MIT"
] | 2 | 2016-07-14T12:01:15.000Z | 2019-04-16T04:35:47.000Z | python/quicksort.py | tushariscoolster/algorithm-for-interview | 36c66276b048abae430fb7b952a981b73739c642 | [
"Unlicense",
"MIT"
] | null | null | null | python/quicksort.py | tushariscoolster/algorithm-for-interview | 36c66276b048abae430fb7b952a981b73739c642 | [
"Unlicense",
"MIT"
] | null | null | null | def quickSort(toSort):
if len(toSort) <= 1:
return toSort
end = len(toSort) - 1
pivot = toSort[end]
low = []
high = []
for num in toSort[:end]:
if num <= pivot:
low.append(num)
else:
high.append(num)
#print pivot
#print low
... | 20.558824 | 57 | 0.556509 | 88 | 699 | 4.329545 | 0.443182 | 0.070866 | 0.052493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0587 | 0.317597 | 699 | 34 | 58 | 20.558824 | 0.740042 | 0.148784 | 0 | 0 | 0 | 0 | 0.013559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
21ce7aa7994d349245be936fd285142f68c08207 | 1,719 | py | Python | svc-websocket/app/controllers/api/example_api.py | jamessaldo/knowledge-chatbot | 9bf04f8079e1bf3c690e798c9b998acbb4711cf3 | [
"WTFPL"
] | null | null | null | svc-websocket/app/controllers/api/example_api.py | jamessaldo/knowledge-chatbot | 9bf04f8079e1bf3c690e798c9b998acbb4711cf3 | [
"WTFPL"
] | null | null | null | svc-websocket/app/controllers/api/example_api.py | jamessaldo/knowledge-chatbot | 9bf04f8079e1bf3c690e798c9b998acbb4711cf3 | [
"WTFPL"
] | null | null | null | from flask_restful import Resource
from flask_restful import reqparse
from app.helpers import rest
class ExampleAPIById(Resource):
def get(self, id):
data = {
"get": "ok"
}
return rest.response(200, data=data, message="GET ok"+id)
class ExampleApi(Resource):
def get(self)... | 27.285714 | 73 | 0.555556 | 190 | 1,719 | 4.984211 | 0.268421 | 0.073918 | 0.133052 | 0.110876 | 0.667371 | 0.667371 | 0.667371 | 0.667371 | 0.667371 | 0.62302 | 0 | 0.021349 | 0.31879 | 1,719 | 63 | 73 | 27.285714 | 0.787361 | 0 | 0 | 0.529412 | 0 | 0 | 0.055814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098039 | false | 0.039216 | 0.058824 | 0 | 0.392157 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
21d0d4fe101bbe8382f6a59d9461d60207e45972 | 569 | py | Python | souper/main.py | spookey/souper | 8aa5accf82d8444daf6af244bca53e259d64a758 | [
"MIT"
] | null | null | null | souper/main.py | spookey/souper | 8aa5accf82d8444daf6af244bca53e259d64a758 | [
"MIT"
] | null | null | null | souper/main.py | spookey/souper | 8aa5accf82d8444daf6af244bca53e259d64a758 | [
"MIT"
] | null | null | null | from logging import getLogger
from souper.base import APP_NAME
from souper.lib.args import arguments
from souper.lib.note import keep_args, setup_logging
from souper.load import Load
from souper.page import Page
from souper.site import Site
LOG = getLogger(__name__)
def main():
args = arguments()
setup_logg... | 19.62069 | 52 | 0.6942 | 86 | 569 | 4.453488 | 0.360465 | 0.156658 | 0.067885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004484 | 0.216169 | 569 | 28 | 53 | 20.321429 | 0.85426 | 0 | 0 | 0 | 0 | 0 | 0.026362 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.333333 | 0 | 0.47619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
21d95cc73f4c7ff73492c8cb4072e04b3bcdda72 | 24,974 | py | Python | code/tests/unit/mock_data_for_tests.py | CiscoSecurity/tr-05-serverless-palo-alto-autofocus | eb9ffbaed1fc8bd49c3f2a5db77229d7441c3716 | [
"MIT"
] | null | null | null | code/tests/unit/mock_data_for_tests.py | CiscoSecurity/tr-05-serverless-palo-alto-autofocus | eb9ffbaed1fc8bd49c3f2a5db77229d7441c3716 | [
"MIT"
] | 3 | 2020-12-15T15:40:51.000Z | 2021-01-25T10:56:01.000Z | code/tests/unit/mock_data_for_tests.py | CiscoSecurity/tr-05-serverless-palo-alto-autofocus | eb9ffbaed1fc8bd49c3f2a5db77229d7441c3716 | [
"MIT"
] | null | null | null | from datetime import timedelta
AUTOFOCUS_IP_RESPONSE_MOCK = {
"indicator": {
"indicatorValue": "103.110.84.196",
"indicatorType": "IPV4_ADDRESS",
"summaryGenerationTs": 1607951568568,
"firstSeenTsGlobal": None,
"lastSeenTsGlobal": None,
"latestPanVerdicts": {
... | 39.830941 | 79 | 0.512333 | 1,591 | 24,974 | 7.949717 | 0.319925 | 0.014548 | 0.026882 | 0.026091 | 0.531705 | 0.51945 | 0.515338 | 0.506958 | 0.502372 | 0.48395 | 0 | 0.120619 | 0.386522 | 24,974 | 626 | 80 | 39.894569 | 0.704915 | 0 | 0 | 0.504902 | 0 | 0 | 0.517338 | 0.252382 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.001634 | 0 | 0.001634 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
21dc78b6429c6d0f322fcbf034ea22bf30e168cf | 189 | py | Python | utils/global_settings.py | kchiang6997/toxicity | d6c4b1849c072b4eb7b492d1eb17b699b46510b2 | [
"MIT"
] | null | null | null | utils/global_settings.py | kchiang6997/toxicity | d6c4b1849c072b4eb7b492d1eb17b699b46510b2 | [
"MIT"
] | null | null | null | utils/global_settings.py | kchiang6997/toxicity | d6c4b1849c072b4eb7b492d1eb17b699b46510b2 | [
"MIT"
] | null | null | null |
UNKNOWN_WORD = "<unk>"
embedding_dimension = 50
min_count = 5
window_size = 3
sample = 1e-3
negative = 5
vocab_size = None
train_words = None
# Special parameters
MIN_SENTENCE_LENGTH = 3 | 14.538462 | 24 | 0.751323 | 29 | 189 | 4.62069 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050955 | 0.169312 | 189 | 13 | 25 | 14.538462 | 0.802548 | 0.095238 | 0 | 0 | 0 | 0 | 0.029586 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
21dca20ddc5357a6d854d45a818e2680a629a816 | 603 | py | Python | setup.py | d4mi1/python-ipx800 | d103a6e01929bae494b7c21501196fe571aa278e | [
"MIT"
] | 4 | 2018-05-28T17:14:35.000Z | 2019-02-21T11:08:43.000Z | setup.py | d4mi1/python-ipx800 | d103a6e01929bae494b7c21501196fe571aa278e | [
"MIT"
] | 1 | 2019-11-06T17:10:39.000Z | 2022-01-06T19:50:18.000Z | setup.py | d4mi1/python-ipx800 | d103a6e01929bae494b7c21501196fe571aa278e | [
"MIT"
] | 4 | 2019-10-25T13:26:11.000Z | 2020-03-30T22:15:31.000Z | # -*- coding: utf-8 -*-
# @Author: Damien FERRERE
# @Date: 2018-05-10 17:57:07
# @Last Modified by: Damien FERRERE
# @Last Modified time: 2018-05-28 21:50:38
from distutils.core import setup
setup(
name = 'IPX800',
packages = ['IPX800'],
version = '0.1.5',
description = 'Library for controlling GCE-Electro... | 31.736842 | 79 | 0.671642 | 83 | 603 | 4.855422 | 0.650602 | 0.096774 | 0.094293 | 0.084367 | 0.168734 | 0.168734 | 0.168734 | 0 | 0 | 0 | 0 | 0.113503 | 0.15257 | 603 | 19 | 80 | 31.736842 | 0.675147 | 0.250415 | 0 | 0 | 0 | 0.076923 | 0.487696 | 0.051454 | 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 |
21decfc0bfeae3f60adef633e3e5430993a625f4 | 1,997 | py | Python | services/service-template/service_template_gae_handlers.py | google/dnae | 28ae951521e36aeed98d24c4206ca755a59336a2 | [
"Apache-2.0"
] | 6 | 2018-03-14T13:26:49.000Z | 2021-04-20T20:38:16.000Z | services/service-template/service_template_gae_handlers.py | google/dnae | 28ae951521e36aeed98d24c4206ca755a59336a2 | [
"Apache-2.0"
] | null | null | null | services/service-template/service_template_gae_handlers.py | google/dnae | 28ae951521e36aeed98d24c4206ca755a59336a2 | [
"Apache-2.0"
] | 4 | 2019-07-23T16:57:13.000Z | 2021-06-27T15:38:42.000Z | # Copyright 2018 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | 36.309091 | 78 | 0.758137 | 285 | 1,997 | 5.115789 | 0.466667 | 0.05487 | 0.052126 | 0.074074 | 0.090535 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015006 | 0.165749 | 1,997 | 54 | 79 | 36.981481 | 0.860144 | 0.427141 | 0 | 0 | 0 | 0 | 0.092857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.333333 | 0 | 0.407407 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
21e30b2960d74d1b5f970746679ca5b42bb205fc | 3,187 | py | Python | users/views.py | Yttrium40/quiz_site | 4742f8dd7ffbb4bc7886b5fa831e0549fa6414b6 | [
"Unlicense"
] | null | null | null | users/views.py | Yttrium40/quiz_site | 4742f8dd7ffbb4bc7886b5fa831e0549fa6414b6 | [
"Unlicense"
] | null | null | null | users/views.py | Yttrium40/quiz_site | 4742f8dd7ffbb4bc7886b5fa831e0549fa6414b6 | [
"Unlicense"
] | null | null | null | import django.contrib.auth as django_auth
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import get_object_or_404, render
from django.urls import reverse
from quizzes.models im... | 34.268817 | 109 | 0.687794 | 372 | 3,187 | 5.66129 | 0.19086 | 0.09924 | 0.059829 | 0.079772 | 0.479107 | 0.411681 | 0.396486 | 0.346154 | 0.343305 | 0.310066 | 0 | 0.005505 | 0.202071 | 3,187 | 92 | 110 | 34.641304 | 0.82265 | 0 | 0 | 0.355263 | 0 | 0 | 0.133441 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.118421 | false | 0.078947 | 0.118421 | 0.026316 | 0.381579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
21e649be2146300ea9c1aa9401ad8707d0c438ef | 34,801 | py | Python | creation/lib/cvWParams.py | bbockelm/glideinWMS | a2b39e3d4ff6c4527efad54b1eefe728a4ec9d18 | [
"BSD-3-Clause"
] | null | null | null | creation/lib/cvWParams.py | bbockelm/glideinWMS | a2b39e3d4ff6c4527efad54b1eefe728a4ec9d18 | [
"BSD-3-Clause"
] | 3 | 2015-12-02T19:37:45.000Z | 2016-01-20T03:21:48.000Z | creation/lib/cvWParams.py | bbockelm/glideinWMS | a2b39e3d4ff6c4527efad54b1eefe728a4ec9d18 | [
"BSD-3-Clause"
] | 1 | 2015-12-01T23:02:41.000Z | 2015-12-01T23:02:41.000Z | #
# Project:
# glideinWMS
#
# File Version:
#
# Description:
# This module contains the create_frontend params class
#
# Author:
# Igor Sfiligoi
#
import os
import copy
import re
import imp
import os.path
import imp
import string
import socket
from glideinwms.lib import xmlParse
import cWParams
from matchPolic... | 53.871517 | 178 | 0.659119 | 4,282 | 34,801 | 5.152265 | 0.132415 | 0.020805 | 0.040794 | 0.017949 | 0.402955 | 0.2968 | 0.235745 | 0.184888 | 0.153205 | 0.138791 | 0 | 0.003807 | 0.22258 | 34,801 | 645 | 179 | 53.955039 | 0.811643 | 0.103043 | 0 | 0.124688 | 0 | 0.017456 | 0.304101 | 0.02438 | 0 | 0 | 0 | 0.00155 | 0 | 0 | null | null | 0.004988 | 0.029925 | null | null | 0.002494 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
21e6972cfb1ac846fa6492916558b7e948fa5330 | 387 | py | Python | tests/test_config.py | aalexanderkevin/midtrans-python-client | b026075d2a38f86c96627d16d60cc02ebd3ed9b2 | [
"MIT"
] | null | null | null | tests/test_config.py | aalexanderkevin/midtrans-python-client | b026075d2a38f86c96627d16d60cc02ebd3ed9b2 | [
"MIT"
] | null | null | null | tests/test_config.py | aalexanderkevin/midtrans-python-client | b026075d2a38f86c96627d16d60cc02ebd3ed9b2 | [
"MIT"
] | null | null | null | import pytest
from .context import ApiConfig
from pprint import pprint
def test_api_config_class():
apiconfig = ApiConfig(is_production=False,
server_key='sk-abc',
client_key='ck-123')
assert apiconfig.is_production == False
assert apiconfig.server_key == 'sk-abc'
assert apiconfig.client_key == 'ck... | 32.25 | 61 | 0.739018 | 54 | 387 | 5.12963 | 0.425926 | 0.054152 | 0.151625 | 0.187726 | 0.144404 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 0.139535 | 387 | 12 | 61 | 32.25 | 0.804805 | 0 | 0 | 0 | 0 | 0 | 0.14433 | 0.082474 | 0 | 0 | 0 | 0 | 0.363636 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.363636 | 0.090909 | 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 |
21e6ac077a2db43928c56603365d5717175ee88b | 230 | py | Python | solutions/00_based/sol/enc.py | GiacomoFerro/crypto-challenges-2020 | 04ee32486df45bddf113db0e111539fc26088128 | [
"MIT"
] | null | null | null | solutions/00_based/sol/enc.py | GiacomoFerro/crypto-challenges-2020 | 04ee32486df45bddf113db0e111539fc26088128 | [
"MIT"
] | null | null | null | solutions/00_based/sol/enc.py | GiacomoFerro/crypto-challenges-2020 | 04ee32486df45bddf113db0e111539fc26088128 | [
"MIT"
] | 1 | 2020-03-13T10:31:53.000Z | 2020-03-13T10:31:53.000Z | text="ANCHE TU BRUTO FIGLIO MIO?";
s=4;
result="";
text=text.upper();
for i in range(len(text)):
c = text[i];
if(c.isupper()):
result+=chr((ord(c)+s-65)%26+65);
else:
result+=chr((ord(c)+s-97)%26+97);
print(result);
| 13.529412 | 35 | 0.586957 | 43 | 230 | 3.139535 | 0.581395 | 0.133333 | 0.177778 | 0.192593 | 0.207407 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066327 | 0.147826 | 230 | 16 | 36 | 14.375 | 0.622449 | 0 | 0 | 0 | 0 | 0 | 0.113537 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.090909 | 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 |
21e7fc78bb1fe4a84298c87fbf01d8e5bd77af62 | 4,487 | py | Python | tb_gen.py | masipcat/VHDL-TestbenchGen | 8570f22612130f281df3668d7c04cbd6fdb39c6c | [
"MIT"
] | 6 | 2015-03-03T09:55:59.000Z | 2021-05-05T04:50:06.000Z | tb_gen.py | masipcat/VHDL-TestbenchGen | 8570f22612130f281df3668d7c04cbd6fdb39c6c | [
"MIT"
] | 5 | 2017-03-06T16:56:19.000Z | 2021-07-25T18:09:59.000Z | tb_gen.py | masipcat/VHDL-TestbenchGen | 8570f22612130f281df3668d7c04cbd6fdb39c6c | [
"MIT"
] | 5 | 2017-01-13T08:33:17.000Z | 2018-11-24T15:01:49.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
from vhdl import *
from vParser import *
print """
dP dP dP dP 888888ba dP
88 88 88 88 88 `8b 88
88 .8P 88aaaaa88a 88 88 88
88 d8' 88 88 88 88 88
88 .d8P 88 88 88 .8P 88
8888... | 31.822695 | 256 | 0.60731 | 649 | 4,487 | 4.130971 | 0.302003 | 0.0373 | 0.03357 | 0.026856 | 0.156658 | 0.067885 | 0.067885 | 0.056695 | 0.056695 | 0.056695 | 0 | 0.057135 | 0.231558 | 4,487 | 141 | 257 | 31.822695 | 0.719838 | 0.036327 | 0 | 0.223214 | 0 | 0.008929 | 0.364984 | 0.032191 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008929 | 0.026786 | null | null | 0.080357 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
21eb1a61af4686d5b3698bc6e696c8bad9f6cb0e | 226 | py | Python | config.py | SpikeKing/stylegan2encoder-my | cbded78bbbba786141cb923c40b296d8d9808a72 | [
"BSD-Source-Code"
] | 4 | 2020-01-13T08:55:11.000Z | 2020-07-07T06:46:29.000Z | config.py | SpikeKing/stylegan2encoder-my | cbded78bbbba786141cb923c40b296d8d9808a72 | [
"BSD-Source-Code"
] | null | null | null | config.py | SpikeKing/stylegan2encoder-my | cbded78bbbba786141cb923c40b296d8d9808a72 | [
"BSD-Source-Code"
] | 1 | 2020-11-09T07:34:41.000Z | 2020-11-09T07:34:41.000Z | #!/usr/bin/env python
# -- coding: utf-8 --
"""
Copyright (c) 2019. All rights reserved.
Created by C. L. Wang on 2020/1/9
"""
dlatents_dir = 'latent_representations'
generated_dir = 'generated_images'
result_dir = 'results'
| 20.545455 | 40 | 0.70354 | 33 | 226 | 4.666667 | 0.878788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056701 | 0.141593 | 226 | 10 | 41 | 22.6 | 0.737113 | 0.50885 | 0 | 0 | 1 | 0 | 0.441176 | 0.215686 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
21f6385badb26fbb8e87805cd36ecd7a0cc4b1a2 | 2,242 | py | Python | wavelet.py | fmndantas/wavelet | 2471b5d4b4166a3fe5f829c5c5d5d984ec801028 | [
"MIT"
] | null | null | null | wavelet.py | fmndantas/wavelet | 2471b5d4b4166a3fe5f829c5c5d5d984ec801028 | [
"MIT"
] | 2 | 2020-01-30T22:04:55.000Z | 2020-02-25T18:03:21.000Z | wavelet.py | fmndantas/wavelet | 2471b5d4b4166a3fe5f829c5c5d5d984ec801028 | [
"MIT"
] | null | null | null | #!/bin/python3
import numpy as np
class Wavelet:
def __init__(self, m, g):
self.m = m
self.g = g
self.mg = m * g
self.A = None
self.mcw = None
def _allocate_a_matrix(self):
if self.A is None:
self.A = np.zeros((self.m, self.mg))
def _get_raw_l... | 31.577465 | 76 | 0.570473 | 328 | 2,242 | 3.746951 | 0.243902 | 0.061025 | 0.035801 | 0.026851 | 0.218063 | 0.170871 | 0.143206 | 0.143206 | 0.143206 | 0.143206 | 0 | 0.003854 | 0.305531 | 2,242 | 70 | 77 | 32.028571 | 0.785485 | 0.055754 | 0 | 0.148148 | 0 | 0 | 0.008072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.203704 | false | 0 | 0.018519 | 0 | 0.314815 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
21fbd7415107b62a0fbda33b4d05fbf5a1e16ee7 | 519 | py | Python | back/utils/CommonUtils.py | xiaomogui/json-databook | f7909ef1dafb76c719521cfddfdaccf847723fec | [
"Apache-2.0"
] | null | null | null | back/utils/CommonUtils.py | xiaomogui/json-databook | f7909ef1dafb76c719521cfddfdaccf847723fec | [
"Apache-2.0"
] | null | null | null | back/utils/CommonUtils.py | xiaomogui/json-databook | f7909ef1dafb76c719521cfddfdaccf847723fec | [
"Apache-2.0"
] | null | null | null |
import time
def formatTime(longtime):
# 格式化时间的函数
return time.strftime("%Y-%m-%d %H:%M:%S",time.localtime(longtime))
def formatByte(number):
# 格式化文件大小的函数
for(scale, label) in [(1024*1024*1024,"GB"),(1024*1024,"MB"),(1024,"KB")]:
if number>=scale:
return "%.2f %s" %(number*1.0/scal... | 27.315789 | 78 | 0.537572 | 68 | 519 | 4.102941 | 0.588235 | 0.086022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092838 | 0.273603 | 519 | 18 | 79 | 28.833333 | 0.647215 | 0.046243 | 0 | 0 | 0 | 0 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0.083333 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1d025cff6f007aa2f5c3d70c6f5efcf9b0bce6b0 | 2,601 | py | Python | src/enstore_log_file_search_cgi.py | moibenko/enstore | 6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9 | [
"Intel",
"Unlicense"
] | 4 | 2021-10-17T11:17:59.000Z | 2022-02-28T16:58:40.000Z | src/enstore_log_file_search_cgi.py | moibenko/enstore | 6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9 | [
"Intel",
"Unlicense"
] | 17 | 2021-10-05T21:44:06.000Z | 2022-03-31T16:58:40.000Z | src/enstore_log_file_search_cgi.py | moibenko/enstore | 6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9 | [
"Intel",
"Unlicense"
] | 8 | 2021-09-02T18:55:49.000Z | 2022-03-09T21:05:28.000Z | #!/usr/bin/env python
######################################################################
# src/$RCSfile$ $Revision$
#
import cgi
import string
import os
import posixpath
import sys
import tempfile
import re
import getpass
import enstore_utils_cgi
def go():
# first print the two lines for the header
print... | 31.337349 | 76 | 0.639369 | 365 | 2,601 | 4.430137 | 0.394521 | 0.044527 | 0.046382 | 0.014842 | 0.028448 | 0.028448 | 0.028448 | 0 | 0 | 0 | 0 | 0.001546 | 0.253749 | 2,601 | 82 | 77 | 31.719512 | 0.83153 | 0.316032 | 0 | 0.076923 | 0 | 0 | 0.149201 | 0.03138 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.019231 | 0.211538 | null | null | 0.134615 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1d0892132be234bba5a0b2e91265465133191fea | 4,874 | py | Python | VFD_MDM166.py | pluschris/VFD_MDM166 | 4d7552d71a53b3965d405d6a4b5b9310807fd986 | [
"MIT"
] | 1 | 2021-03-25T14:35:04.000Z | 2021-03-25T14:35:04.000Z | VFD_MDM166.py | pluschris/VFD_MDM166 | 4d7552d71a53b3965d405d6a4b5b9310807fd986 | [
"MIT"
] | null | null | null | VFD_MDM166.py | pluschris/VFD_MDM166 | 4d7552d71a53b3965d405d6a4b5b9310807fd986 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# #####################################
# info: This class can connect to VFD MDM166
#
# date: 2017-06-13
# version: 0.1.1
#
# Dependencies:
# $ sudo apt-get install python3-dev libusb-1.0-0-dev libudev-dev python3-pip
# $ sudo pip3 install --upgrade setuptools
# $ sudo pip3 install hidapi
# place a... | 31.24359 | 106 | 0.548625 | 607 | 4,874 | 4.281713 | 0.30313 | 0.058484 | 0.051943 | 0.076183 | 0.323201 | 0.267026 | 0.217776 | 0.19469 | 0.09773 | 0.09773 | 0 | 0.049416 | 0.244358 | 4,874 | 155 | 107 | 31.445161 | 0.656258 | 0.160443 | 0 | 0.223404 | 0 | 0 | 0.040198 | 0 | 0 | 0 | 0.007709 | 0 | 0 | 1 | 0.234043 | false | 0 | 0.021277 | 0 | 0.276596 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1d09477a3934a4fdc80f15c27d90052816951001 | 387 | py | Python | lib/cogs/ping.py | weibolu-rm/weibolu-bot | 9752cee470f0ce09ea6f14b56e1a5b7da72baf18 | [
"MIT"
] | null | null | null | lib/cogs/ping.py | weibolu-rm/weibolu-bot | 9752cee470f0ce09ea6f14b56e1a5b7da72baf18 | [
"MIT"
] | 1 | 2020-12-30T04:48:58.000Z | 2020-12-30T04:48:58.000Z | lib/cogs/ping.py | weibolu-rm/weibolu-bot | 9752cee470f0ce09ea6f14b56e1a5b7da72baf18 | [
"MIT"
] | null | null | null | from discord.ext.commands import Cog
from discord.ext.commands import command
class Ping(Cog):
def __init__(self, bot):
self.bot = bot
# ctx is a context ctx.send == ctx.channel.send
@command(name="ping")
async def ping(self, ctx):
await ctx.send("pong! {0:.2f}ms".format(self.b... | 27.642857 | 73 | 0.638243 | 59 | 387 | 4.101695 | 0.525424 | 0.086777 | 0.115702 | 0.181818 | 0.231405 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0.224806 | 387 | 14 | 74 | 27.642857 | 0.786667 | 0.116279 | 0 | 0 | 0 | 0 | 0.055718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.5 | 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 |
1d0d768afae56837081231e7e1df6315d0cb3c87 | 2,198 | py | Python | src/models.py | luisgc93/stock_reminder_bot | 13da2614d16f80761be43a3aaaa96f2a440b7a49 | [
"MIT"
] | 26 | 2020-12-24T14:54:33.000Z | 2022-02-01T09:41:28.000Z | src/models.py | luisgc93/stock_reminder_bot | 13da2614d16f80761be43a3aaaa96f2a440b7a49 | [
"MIT"
] | 61 | 2020-12-25T17:50:27.000Z | 2022-03-25T19:37:47.000Z | src/models.py | luisgc93/stock_reminder_bot | 13da2614d16f80761be43a3aaaa96f2a440b7a49 | [
"MIT"
] | 6 | 2020-12-27T01:54:45.000Z | 2021-11-17T12:40:59.000Z | from datetime import datetime, timedelta
from os import environ
from peewee import (
BigIntegerField,
DateField,
DateTimeField,
CharField,
FloatField,
Model,
BooleanField,
InternalError,
)
from playhouse.db_url import connect
# Use default sqlite db in tests
db = connect(environ.get("D... | 26.481928 | 88 | 0.585987 | 237 | 2,198 | 5.261603 | 0.447257 | 0.025662 | 0.038492 | 0.043304 | 0.044908 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002007 | 0.319836 | 2,198 | 82 | 89 | 26.804878 | 0.832107 | 0.094631 | 0 | 0.063492 | 0 | 0 | 0.056956 | 0 | 0 | 0 | 0 | 0.012195 | 0 | 1 | 0.079365 | false | 0 | 0.063492 | 0.031746 | 0.365079 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
df001153ca1282427b0eccd7b1276ebeefeb1509 | 1,077 | py | Python | victim/models.py | knowapi/DeveloperPortalExamples | bbe50f333d1257fdbb107b507c09221b543e7d8d | [
"MIT"
] | 2 | 2016-10-30T20:28:03.000Z | 2017-03-28T08:55:20.000Z | victim/models.py | knowapi/DeveloperPortalExamples | bbe50f333d1257fdbb107b507c09221b543e7d8d | [
"MIT"
] | 11 | 2016-09-10T09:43:16.000Z | 2022-01-13T00:42:40.000Z | victim/models.py | knowapi/DeveloperPortalExamples | bbe50f333d1257fdbb107b507c09221b543e7d8d | [
"MIT"
] | 3 | 2017-01-02T11:54:54.000Z | 2018-01-02T05:58:43.000Z | from django.db import models
from operation.models import Operation
from processor.utils import push_record_to_sqs_queue
import logging
SAFETY_LEVELS = (
(0, 'SAFE'),
(1, 'NOT CONFIRMED'),
(2, 'UNREACHABLE'),
(3, 'NEED_HELP'),
(4, 'NOT IN ZONE')
)
class Victim(models.Model):
"""
Used to s... | 31.676471 | 77 | 0.704735 | 141 | 1,077 | 5.22695 | 0.546099 | 0.061058 | 0.07327 | 0.097693 | 0.141113 | 0.086839 | 0 | 0 | 0 | 0 | 0 | 0.01464 | 0.175487 | 1,077 | 33 | 78 | 32.636364 | 0.815315 | 0.030641 | 0 | 0 | 0 | 0 | 0.077821 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.16 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
df013ce0af0f51fd15a7b3e0a966a224dfa03c2b | 1,526 | py | Python | abduct/stream.py | movermeyer/python-abduct | ac8265ec847af6a436523301d2e1020d17d489c2 | [
"MIT"
] | 4 | 2015-06-20T16:56:42.000Z | 2016-01-31T15:08:45.000Z | abduct/stream.py | movermeyer/python-abduct | ac8265ec847af6a436523301d2e1020d17d489c2 | [
"MIT"
] | 3 | 2015-05-02T15:13:33.000Z | 2015-05-16T02:02:15.000Z | abduct/stream.py | movermeyer/python-abduct | ac8265ec847af6a436523301d2e1020d17d489c2 | [
"MIT"
] | 2 | 2015-06-20T17:06:41.000Z | 2018-03-05T18:14:05.000Z | import sys
from contextlib2 import contextmanager
from abduct.compat import StringIO
def stdout(release_on_exception=False, tee=False):
return make_stream_context('stdout', release_on_exception, tee)
def stderr(release_on_exception=False, tee=False):
return make_stream_context('stderr', release_on_exception... | 28.259259 | 70 | 0.669069 | 188 | 1,526 | 5.090426 | 0.319149 | 0.056426 | 0.112853 | 0.065831 | 0.211076 | 0.112853 | 0.112853 | 0.112853 | 0.112853 | 0.112853 | 0 | 0.000858 | 0.236566 | 1,526 | 53 | 71 | 28.792453 | 0.820601 | 0.018349 | 0 | 0 | 0 | 0 | 0.014706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.078947 | 0.078947 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
df04a61088ee70ff812eb187dec7787d0812e3f6 | 1,936 | py | Python | get_free_proxy/self/SelfEnum.py | zwzw911/get-free-proxy | f50a4297edd23fc72d4fac5d15e85387d18f2d94 | [
"MIT"
] | null | null | null | get_free_proxy/self/SelfEnum.py | zwzw911/get-free-proxy | f50a4297edd23fc72d4fac5d15e85387d18f2d94 | [
"MIT"
] | null | null | null | get_free_proxy/self/SelfEnum.py | zwzw911/get-free-proxy | f50a4297edd23fc72d4fac5d15e85387d18f2d94 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
# -*- coding:utf-8 -*-
__author__ = 'zwzw911'
from enum import Enum, unique
# # 使用url作为value,以便检测是否需要代理才能连接
# @unique
# class SupportedWeb(Enum):
# Xici = 'https://www.xicidaili.com'
# Kuai = 'https://www.kuaidaili.com/free'
# Hidemy = 'https://hidemy.name/en/proxy-list/#list'
# ... | 18.615385 | 77 | 0.597107 | 242 | 1,936 | 4.661157 | 0.623967 | 0.048759 | 0.045213 | 0.055851 | 0.189716 | 0.085106 | 0.085106 | 0.085106 | 0.085106 | 0.085106 | 0 | 0.069802 | 0.297004 | 1,936 | 104 | 78 | 18.615385 | 0.759001 | 0.355372 | 0 | 0.098592 | 0 | 0 | 0.015472 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.014085 | 0 | 0.873239 | 0.014085 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.