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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0259da3df79ab56c4b6cb1bc4e55b4f5b84fdf46 | 205 | py | Python | dateDetection.py | R0quef0rt/python | fc6b390ae056bd86b71a6cebc3aaa7a0a4d1d5ee | [
"MIT"
] | null | null | null | dateDetection.py | R0quef0rt/python | fc6b390ae056bd86b71a6cebc3aaa7a0a4d1d5ee | [
"MIT"
] | null | null | null | dateDetection.py | R0quef0rt/python | fc6b390ae056bd86b71a6cebc3aaa7a0a4d1d5ee | [
"MIT"
] | null | null | null | import re
def dateDetection(date):
dateRegex = re.compile(r'([0-3][0-9])\/([0-1][0-2])\/([1-2][0-9]{3})')
mo = dateRegex.search(date)
day, month, year = mo.groups()
dateDetection('01/11/1988') | 29.285714 | 74 | 0.595122 | 35 | 205 | 3.485714 | 0.628571 | 0.032787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118644 | 0.136585 | 205 | 7 | 75 | 29.285714 | 0.570621 | 0 | 0 | 0 | 0 | 0.166667 | 0.257282 | 0.208738 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 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 |
025c16a5d4f7b4b6522caa18802a07735b40b340 | 1,913 | py | Python | tools/prettypatch_pull_requests.py | osteele/assignment-tools | 10b7b48965ed363c370a05fdf69876f21bb2fafb | [
"MIT"
] | null | null | null | tools/prettypatch_pull_requests.py | osteele/assignment-tools | 10b7b48965ed363c370a05fdf69876f21bb2fafb | [
"MIT"
] | null | null | null | tools/prettypatch_pull_requests.py | osteele/assignment-tools | 10b7b48965ed363c370a05fdf69876f21bb2fafb | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import argparse
import os
import sys
import subprocess
import github3
PROJECT_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..')
BUILD_DIR = os.path.join(PROJECT_DIR, './build')
GITHUB_API_TOKEN = os.environ.get('HOMEBREW_GITHUB_API_TOKEN')
if GITHUB_API_TOKEN:
gh = githu... | 32.982759 | 102 | 0.677993 | 279 | 1,913 | 4.419355 | 0.354839 | 0.053528 | 0.064882 | 0.052717 | 0.150852 | 0.066504 | 0.066504 | 0 | 0 | 0 | 0 | 0.003873 | 0.190277 | 1,913 | 57 | 103 | 33.561404 | 0.792124 | 0.051751 | 0 | 0 | 0 | 0 | 0.14094 | 0.027964 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
026649f28ee674f46604589569db3daa2fa6fbf5 | 8,323 | py | Python | Lib/test/test_slice.py | sireliah/polish-python | 605df4944c2d3bc25f8bf6964b274c0a0d297cc3 | [
"PSF-2.0"
] | 1 | 2018-06-21T18:21:24.000Z | 2018-06-21T18:21:24.000Z | Lib/test/test_slice.py | sireliah/polish-python | 605df4944c2d3bc25f8bf6964b274c0a0d297cc3 | [
"PSF-2.0"
] | null | null | null | Lib/test/test_slice.py | sireliah/polish-python | 605df4944c2d3bc25f8bf6964b274c0a0d297cc3 | [
"PSF-2.0"
] | null | null | null | # tests dla slice objects; w particular the indices method.
zaimportuj unittest
z pickle zaimportuj loads, dumps
zaimportuj itertools
zaimportuj operator
zaimportuj sys
def evaluate_slice_index(arg):
"""
Helper function to convert a slice argument to an integer, oraz podnieś
TypeError przy a suitable me... | 33.971429 | 85 | 0.58044 | 1,096 | 8,323 | 4.34854 | 0.159672 | 0.144775 | 0.109106 | 0.079312 | 0.343475 | 0.328787 | 0.303819 | 0.275493 | 0.226605 | 0.161141 | 0 | 0.066611 | 0.283912 | 8,323 | 244 | 86 | 34.110656 | 0.733054 | 0.086868 | 0 | 0.182857 | 0 | 0 | 0.023603 | 0 | 0 | 0 | 0 | 0 | 0.371429 | 0 | null | null | 0 | 0.028571 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
026d8a1478a862f083ea57f1a0ae2bc858d81ea6 | 438 | py | Python | 2020/day-05/part2.py | amochtar/adventofcode | 292e7f00a1e19d2149d00246b0a77fedfcd3bd08 | [
"MIT"
] | 1 | 2019-12-27T22:36:30.000Z | 2019-12-27T22:36:30.000Z | 2020/day-05/part2.py | amochtar/adventofcode | 292e7f00a1e19d2149d00246b0a77fedfcd3bd08 | [
"MIT"
] | null | null | null | 2020/day-05/part2.py | amochtar/adventofcode | 292e7f00a1e19d2149d00246b0a77fedfcd3bd08 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from aoc import *
def solve(inp: str):
inp = inp.replace('F', '0').replace(
'B', '1').replace('R', '1').replace('L', '0')
passes = set([int(i, 2) for i in inp.splitlines()])
seats = set(range(min(passes), max(passes) + 1))
print(seats - passes)
# with open('test.txt', ... | 20.857143 | 55 | 0.538813 | 70 | 438 | 3.371429 | 0.542857 | 0.101695 | 0.050847 | 0.059322 | 0.194915 | 0.194915 | 0.194915 | 0.194915 | 0.194915 | 0 | 0 | 0.017804 | 0.230594 | 438 | 20 | 56 | 21.9 | 0.682493 | 0.19863 | 0 | 0 | 0 | 0 | 0.051873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.3 | 0.1 | 0 | 0.2 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0273919daaf35f1fcd2b53ad75c776bf20b4e126 | 1,571 | py | Python | config/basic_config.py | Xinsen-Zhang/chineseNERSolution | a88231919638979b532c1572fbe402a2b32cab58 | [
"MIT"
] | null | null | null | config/basic_config.py | Xinsen-Zhang/chineseNERSolution | a88231919638979b532c1572fbe402a2b32cab58 | [
"MIT"
] | null | null | null | config/basic_config.py | Xinsen-Zhang/chineseNERSolution | a88231919638979b532c1572fbe402a2b32cab58 | [
"MIT"
] | null | null | null | # encoding:utf-8
import os
import torch
BASE_DIR = "./data"
labels = [
"address",
"book",
"company",
"game",
"government",
"movie",
"name",
"organization",
"position",
"scene"
]
def generate_tag2id(labels):
result = {'O': 0}
for index, label in enumerate(labels):
... | 23.447761 | 62 | 0.615532 | 228 | 1,571 | 4.02193 | 0.355263 | 0.099237 | 0.130862 | 0.183206 | 0.320611 | 0.320611 | 0.27699 | 0.167939 | 0.067612 | 0.067612 | 0 | 0.017586 | 0.203692 | 1,571 | 66 | 63 | 23.80303 | 0.715428 | 0.102483 | 0 | 0 | 0 | 0 | 0.281228 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0 | 0.044444 | 0 | 0.088889 | 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 |
027415779090b258106bf4939b40e90475b9fa20 | 2,058 | py | Python | intensivos/migrations/0003_auto_20171213_2044.py | jonlatorre/MatriculaEIDE | 81508dc2aaf7276d781ce6787affea6273f4fd49 | [
"MIT"
] | null | null | null | intensivos/migrations/0003_auto_20171213_2044.py | jonlatorre/MatriculaEIDE | 81508dc2aaf7276d781ce6787affea6273f4fd49 | [
"MIT"
] | 3 | 2020-02-10T22:34:11.000Z | 2021-06-10T21:04:34.000Z | intensivos/migrations/0003_auto_20171213_2044.py | jonlatorre/MatriculaEIDE | 81508dc2aaf7276d781ce6787affea6273f4fd49 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2017-12-13 19:44
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('intensivos', '0002_auto_20160729_1329'),
]
operations = [
migrations.AlterMo... | 37.418182 | 266 | 0.6069 | 225 | 2,058 | 5.422222 | 0.506667 | 0.051639 | 0.122951 | 0.142623 | 0.451639 | 0.451639 | 0.235246 | 0.235246 | 0.164754 | 0.164754 | 0 | 0.030605 | 0.269679 | 2,058 | 54 | 267 | 38.111111 | 0.781104 | 0.032556 | 0 | 0.446809 | 1 | 0.021277 | 0.290241 | 0.055332 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.042553 | 0 | 0.106383 | 0 | 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 |
0275a72ac50d4af13bd4f58007d0814147503b1e | 7,673 | py | Python | tests/test_parser.py | Dry8r3aD/penta-nps | a4c74a2cd90eb2f95158e2040b7eca7056b062db | [
"MIT"
] | 6 | 2016-09-25T07:26:22.000Z | 2022-03-16T06:30:05.000Z | tests/test_parser.py | Dry8r3aD/penta-nps | a4c74a2cd90eb2f95158e2040b7eca7056b062db | [
"MIT"
] | 14 | 2016-10-04T00:02:20.000Z | 2017-02-22T03:06:21.000Z | tests/test_parser.py | Dry8r3aD/penta-nps | a4c74a2cd90eb2f95158e2040b7eca7056b062db | [
"MIT"
] | 5 | 2016-10-06T04:53:32.000Z | 2019-12-08T13:48:58.000Z | # -*- coding: utf-8 -*-
import unittest
import xml.etree.ElementTree as ET
from nps.packet_buff import PacketBuff
from nps.parser import XmlTestCaseParser
from nps.network_entity import NetworkEntity
from nps.accessibility import MacAddressHelper, AccessibilityManager
class TestMacAddrHelper(MacAddressHelper):
d... | 31.318367 | 81 | 0.672618 | 1,043 | 7,673 | 4.588686 | 0.136146 | 0.079398 | 0.127246 | 0.151483 | 0.684079 | 0.600084 | 0.520059 | 0.462599 | 0.424572 | 0.424572 | 0 | 0.042051 | 0.194187 | 7,673 | 244 | 82 | 31.446721 | 0.732007 | 0.007298 | 0 | 0.490291 | 0 | 0 | 0.217448 | 0.062541 | 0 | 0 | 0 | 0.004098 | 0.184466 | 0 | null | null | 0.019417 | 0.029126 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0281f195c467974b6efbaf5d97b5ce16269aabe8 | 334 | py | Python | example27.py | wnykuang/fluentPython | b0edea9971627f100b3e53a1acda8589fd728552 | [
"MIT"
] | null | null | null | example27.py | wnykuang/fluentPython | b0edea9971627f100b3e53a1acda8589fd728552 | [
"MIT"
] | null | null | null | example27.py | wnykuang/fluentPython | b0edea9971627f100b3e53a1acda8589fd728552 | [
"MIT"
] | null | null | null | laxCoor = (33,-118)
city, year, pop, chg, area = ('Tokyo', 2003, 32450, 0.66, 8014)
travlerId = [('USA', '31195855'), ('BRA', 'CE342567')
,('ESP', 'XDA205856')]
for passport in sorted(travlerId):
print("%s/%s" %passport)
#However, the
#print("{}/{}".format(passport))
#will not parse the passport var i... | 33.4 | 63 | 0.610778 | 44 | 334 | 4.636364 | 0.840909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148014 | 0.170659 | 334 | 10 | 64 | 33.4 | 0.588448 | 0.272455 | 0 | 0 | 0 | 0 | 0.182573 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
028510376aad13110b4b4d759e87f614db9a4a90 | 578 | py | Python | src/aio_dtls/const/handshake.py | businka/aio_dtls | 0dba40d425b443e5ceb516011aadf58f573a4dc8 | [
"MIT"
] | null | null | null | src/aio_dtls/const/handshake.py | businka/aio_dtls | 0dba40d425b443e5ceb516011aadf58f573a4dc8 | [
"MIT"
] | null | null | null | src/aio_dtls/const/handshake.py | businka/aio_dtls | 0dba40d425b443e5ceb516011aadf58f573a4dc8 | [
"MIT"
] | null | null | null | from enum import Enum
class ConnectionState(Enum):
HELLO_REQUEST = 0
CLIENT_HELLO = 1
SERVER_HELLO = 2
SERVER_CERTIFICATE = 3
SERVER_KEY_EXCHANGE = 4
CERTIFICATE_REQUEST = 5
SERVER_HELLO_DONE = 6
CLIENT_CERTIFICATE = 7
CLIENT_KEY_EXCHANGE = 8
CERTIFICATE_VERIFY = 9
CLIENT_C... | 24.083333 | 41 | 0.717993 | 76 | 578 | 5.052632 | 0.605263 | 0.085938 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064073 | 0.243945 | 578 | 23 | 42 | 25.130435 | 0.814645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 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 |
0288f8ba32a91417b7204c9c3f6f6b75ee76504a | 441 | py | Python | python/linguagem-de-programacao/funcao-sem-retorno-sem-parametro/exercicio_2.py | BrenoPremoli/Faculdade | dcf5d106b10453224e37af830a53b2214af1d2ee | [
"MIT"
] | 1 | 2022-03-19T22:50:12.000Z | 2022-03-19T22:50:12.000Z | python/linguagem-de-programacao/funcao-sem-retorno-sem-parametro/exercicio_2.py | BrenoPremoli/Faculdade | dcf5d106b10453224e37af830a53b2214af1d2ee | [
"MIT"
] | null | null | null | python/linguagem-de-programacao/funcao-sem-retorno-sem-parametro/exercicio_2.py | BrenoPremoli/Faculdade | dcf5d106b10453224e37af830a53b2214af1d2ee | [
"MIT"
] | null | null | null | # 2. (Função sem retorno sem parâmetro) Faça uma função/método que leia dois valores positivos e apresente a soma dos N números existentes entre eles (inclusive).
def somarNumeros():
soma = 0
a = int(input('Digite o primeiro número: '))
b = int(input('Digite o segundo número: '))
soma = soma + a
while a < b:... | 23.210526 | 162 | 0.641723 | 65 | 441 | 4.353846 | 0.615385 | 0.056537 | 0.09894 | 0.106007 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008876 | 0.23356 | 441 | 19 | 163 | 23.210526 | 0.828402 | 0.362812 | 0 | 0.153846 | 0 | 0 | 0.210714 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 1 | 0.153846 | false | 0 | 0 | 0 | 0.153846 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
65f1407df6865aa1895a590e9f58af75472bb67d | 1,428 | py | Python | appengine/swarming/swarming_bot/bot_code/file_refresher_test.py | stefb965/luci-py | e0a8a5640c4104e5c90781d833168aa8a8d1f24d | [
"Apache-2.0"
] | 1 | 2017-10-30T15:08:10.000Z | 2017-10-30T15:08:10.000Z | appengine/swarming/swarming_bot/bot_code/file_refresher_test.py | stefb965/luci-py | e0a8a5640c4104e5c90781d833168aa8a8d1f24d | [
"Apache-2.0"
] | null | null | null | appengine/swarming/swarming_bot/bot_code/file_refresher_test.py | stefb965/luci-py | e0a8a5640c4104e5c90781d833168aa8a8d1f24d | [
"Apache-2.0"
] | 1 | 2020-07-05T19:54:40.000Z | 2020-07-05T19:54:40.000Z | #!/usr/bin/env python
# Copyright 2016 The LUCI Authors. All rights reserved.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.
import json
import logging
import os
import sys
import tempfile
import time
import unittest
import test_env_bot_code
test_e... | 26.444444 | 80 | 0.730392 | 207 | 1,428 | 4.879227 | 0.497585 | 0.039604 | 0.032673 | 0.027723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015228 | 0.172269 | 1,428 | 53 | 81 | 26.943396 | 0.839256 | 0.17577 | 0 | 0 | 0 | 0 | 0.031597 | 0 | 0 | 0 | 0 | 0 | 0.051282 | 1 | 0.102564 | false | 0 | 0.307692 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
65f334c8913d0bb476504c39ed0d6e15bf123b47 | 3,955 | bzl | Python | core/docs/stardoc.bzl | seewpx/rules_nixpkgs | 1c02fe914763448398739bb295b858362bb2810b | [
"Apache-2.0"
] | null | null | null | core/docs/stardoc.bzl | seewpx/rules_nixpkgs | 1c02fe914763448398739bb295b858362bb2810b | [
"Apache-2.0"
] | null | null | null | core/docs/stardoc.bzl | seewpx/rules_nixpkgs | 1c02fe914763448398739bb295b858362bb2810b | [
"Apache-2.0"
] | null | null | null | load("@io_bazel_stardoc//stardoc:stardoc.bzl", _stardoc = "stardoc")
def generate_documentation(
name,
input,
error_message = None,
**kwargs):
"""
rules for rendering library documentation
creates rules for
- generating library documentation
- copying a file into th... | 35 | 101 | 0.62225 | 479 | 3,955 | 4.995825 | 0.313152 | 0.060176 | 0.046803 | 0.058504 | 0.185123 | 0.144171 | 0.066862 | 0.040117 | 0 | 0 | 0 | 0.005476 | 0.261188 | 3,955 | 112 | 102 | 35.3125 | 0.813484 | 0.300379 | 0 | 0.125 | 1 | 0 | 0.212019 | 0.140351 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0.013889 | 0.138889 | 0 | 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 |
5a0051ccabcc7f6c1934728f8ce2bfaf5ec26c10 | 274 | py | Python | backend/MrMap/__init__.py | Don-King-Kong/mrmap | f58a77bf979142876c38b98de0b7514c475b9905 | [
"MIT"
] | 10 | 2021-03-12T17:46:38.000Z | 2022-03-11T10:59:01.000Z | backend/MrMap/__init__.py | Don-King-Kong/mrmap | f58a77bf979142876c38b98de0b7514c475b9905 | [
"MIT"
] | 214 | 2021-03-10T19:24:17.000Z | 2022-03-15T07:34:24.000Z | backend/MrMap/__init__.py | Don-King-Kong/mrmap | f58a77bf979142876c38b98de0b7514c475b9905 | [
"MIT"
] | 9 | 2021-03-16T19:47:54.000Z | 2022-03-11T11:01:22.000Z | from __future__ import absolute_import
# This will make sure the app is always imported when
# Django starts so that shared_task will use this app.
from .celery import app as celery_app # noqa
__all__ = ('celery',)
__version__ = '0.1.0'
VERSION = __version__ # synonym
| 24.909091 | 54 | 0.755474 | 42 | 274 | 4.47619 | 0.690476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.178832 | 274 | 10 | 55 | 27.4 | 0.822222 | 0.427007 | 0 | 0 | 0 | 0 | 0.072368 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5a0313c2314907e9db9f302e81e47b8dd5cd18a6 | 680 | py | Python | app/roscosmos/urls.py | Raysultan/roscosmos-stats | 8931ee824c4e4cd67ae4f86ce221515b00d9e872 | [
"MIT"
] | 5 | 2020-11-24T09:57:36.000Z | 2021-11-17T08:02:29.000Z | app/roscosmos/urls.py | raisultan/roscosmos-api | 8931ee824c4e4cd67ae4f86ce221515b00d9e872 | [
"MIT"
] | null | null | null | app/roscosmos/urls.py | raisultan/roscosmos-api | 8931ee824c4e4cd67ae4f86ce221515b00d9e872 | [
"MIT"
] | null | null | null | from django.urls import path, include
from rest_framework.routers import DefaultRouter
from . import views
router = DefaultRouter()
router.register('launchpads', views.LaunchPadViewSet)
router.register('spacetugs', views.SpaceTugViewSet)
router.register('launchvehicles', views.LaunchVehicleViewSet)
router.register('... | 30.909091 | 68 | 0.814706 | 65 | 680 | 8.492308 | 0.507692 | 0.202899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070588 | 680 | 21 | 69 | 32.380952 | 0.873418 | 0 | 0 | 0 | 0 | 0 | 0.158824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1875 | 0 | 0.1875 | 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 |
5a03ec57ec5b7432b2628a627eb038a009c6f686 | 5,564 | py | Python | legacy/dagSim/Node.py | tkxkd0159/energyDAG | c046e46fce6db5a9b156d3c2881e2733d6920902 | [
"MIT"
] | null | null | null | legacy/dagSim/Node.py | tkxkd0159/energyDAG | c046e46fce6db5a9b156d3c2881e2733d6920902 | [
"MIT"
] | 4 | 2021-07-25T14:40:45.000Z | 2021-08-03T07:13:48.000Z | legacy/dagSim/Node.py | tkxkd0159/energyDAG | c046e46fce6db5a9b156d3c2881e2733d6920902 | [
"MIT"
] | null | null | null | from Dag import Dag
import Params
import random
class Node:
def __init__(self, index):
self.dag = Dag()
self.nParents = None
self.index = index
self.valtimes = []
self.contimes = []
self.fp = {random.uniform(3,6) : 4,
random.uniform(6,10) : 3,
... | 35.43949 | 105 | 0.476276 | 660 | 5,564 | 4.009091 | 0.242424 | 0.029101 | 0.024565 | 0.012472 | 0.051398 | 0.028723 | 0.012094 | 0 | 0 | 0 | 0 | 0.019486 | 0.391265 | 5,564 | 157 | 106 | 35.43949 | 0.761736 | 0.269231 | 0 | 0.084906 | 0 | 0 | 0.004475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.028302 | null | null | 0.009434 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5a0478e91704f95b61e0b341b6e7545b44dbf5f2 | 580 | py | Python | tree.py | bzargesg/pyStructures | f9787c744ce8253c4076a83b0e502b79cd118f3a | [
"MIT"
] | null | null | null | tree.py | bzargesg/pyStructures | f9787c744ce8253c4076a83b0e502b79cd118f3a | [
"MIT"
] | null | null | null | tree.py | bzargesg/pyStructures | f9787c744ce8253c4076a83b0e502b79cd118f3a | [
"MIT"
] | null | null | null | class Tree:
def __init__(self, val):
self.children = []
self.val = val
def add_child(self, val):
newNode = Tree(val)
self.children.append(newNode)
return newNode
def depth_print(self):
result = []
def recurse(node):
# print('in recurse',... | 25.217391 | 55 | 0.518966 | 64 | 580 | 4.609375 | 0.375 | 0.071186 | 0.101695 | 0.128814 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00271 | 0.363793 | 580 | 22 | 56 | 26.363636 | 0.796748 | 0.05 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0 | 0.388889 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a0ad975121a659e54f8de107011fedcb9f27fa2 | 838 | py | Python | cf_text_embeddings/base/table.py | xflows/cf_text_embeddings | 8d5c2294dfdffe5fb0dff9c07d4c7bb57ccb2625 | [
"MIT"
] | 2 | 2020-03-30T05:11:36.000Z | 2020-03-30T06:48:35.000Z | cf_text_embeddings/base/table.py | xflows/cf_text_embeddings | 8d5c2294dfdffe5fb0dff9c07d4c7bb57ccb2625 | [
"MIT"
] | null | null | null | cf_text_embeddings/base/table.py | xflows/cf_text_embeddings | 8d5c2294dfdffe5fb0dff9c07d4c7bb57ccb2625 | [
"MIT"
] | null | null | null | from Orange.data import ContinuousVariable, DiscreteVariable, Domain, Table
# def orange_domain(n_features, unique_labels):
# return Domain([ContinuousVariable.make('Feature %d' % i) for i in range(n_features)],
# DiscreteVariable('class', values=unique_labels))
def orange_data_table(embedding... | 41.9 | 104 | 0.658711 | 104 | 838 | 5.211538 | 0.365385 | 0.132841 | 0.154982 | 0.193727 | 0.346863 | 0.346863 | 0.346863 | 0.346863 | 0.346863 | 0.346863 | 0 | 0.003058 | 0.21957 | 838 | 19 | 105 | 44.105263 | 0.825688 | 0.24105 | 0 | 0 | 0 | 0 | 0.039557 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.25 | 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 |
5a0d84081c614b39c01f30855a515e45162d1f2a | 6,263 | py | Python | _build/jupyter_execute/KDP-2_spot_diagram_matplotlib.py | Jonas231/OpticalDesignDocu_o | c99cad0621666aa708e0f4d8b1c3e9d8460d46f6 | [
"MIT"
] | null | null | null | _build/jupyter_execute/KDP-2_spot_diagram_matplotlib.py | Jonas231/OpticalDesignDocu_o | c99cad0621666aa708e0f4d8b1c3e9d8460d46f6 | [
"MIT"
] | null | null | null | _build/jupyter_execute/KDP-2_spot_diagram_matplotlib.py | Jonas231/OpticalDesignDocu_o | c99cad0621666aa708e0f4d8b1c3e9d8460d46f6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# # Create spot diagram and plot with python
#
# This section exemplarily creates a list of commands that generate a spot diagram, save its contents to a file, and read and plot this file with python.
#
# ## A file with a list of KDP-2 commands:
# In[1]:
import numpy as np
d... | 28.861751 | 154 | 0.619032 | 1,000 | 6,263 | 3.739 | 0.271 | 0.011768 | 0.034769 | 0.037443 | 0.292859 | 0.239101 | 0.196309 | 0.120888 | 0.099492 | 0.099492 | 0 | 0.023199 | 0.215392 | 6,263 | 216 | 155 | 28.99537 | 0.737688 | 0.259939 | 0 | 0.058252 | 1 | 0 | 0.083588 | 0.015277 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048544 | false | 0 | 0.067961 | 0 | 0.145631 | 0.048544 | 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 |
5a14f4609a4ab27e7cb99853cc6a8032d734e597 | 813 | py | Python | Temperture.py | TylerAdamMartinez/trash_bot | 4d7d7541bc2cf47cfd00a30104d28ef78884b117 | [
"MIT"
] | null | null | null | Temperture.py | TylerAdamMartinez/trash_bot | 4d7d7541bc2cf47cfd00a30104d28ef78884b117 | [
"MIT"
] | null | null | null | Temperture.py | TylerAdamMartinez/trash_bot | 4d7d7541bc2cf47cfd00a30104d28ef78884b117 | [
"MIT"
] | null | null | null | """
Temperature.py created by Tyler Adam Martinez:
Created: May 17, 2020
Last Updated: May 17, 2020
Description:
"""
import RPi.GPIO as GPIO
import time
class Temperature:
"""This Class defines all the Temperature Control functions for the farm"""
def increase(self):
"""This code fo... | 23.911765 | 79 | 0.618696 | 102 | 813 | 4.931373 | 0.5 | 0.069583 | 0.059642 | 0.059642 | 0.182903 | 0.111332 | 0 | 0 | 0 | 0 | 0 | 0.02418 | 0.287823 | 813 | 33 | 80 | 24.636364 | 0.84456 | 0.436654 | 0 | 0.142857 | 0 | 0 | 0.14455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0 | 0.428571 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a15f3f4dc9557886e81be625e635a8a96c86db1 | 860 | py | Python | test/win/gyptest-link-target-machine.py | chlorm-forks/gyp | a8921fcaab1a18c8cf7e4ab09ceb940e336918ec | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | test/win/gyptest-link-target-machine.py | chlorm-forks/gyp | a8921fcaab1a18c8cf7e4ab09ceb940e336918ec | [
"BSD-3-Clause"
] | 1,432 | 2017-06-21T04:08:48.000Z | 2020-08-25T16:21:15.000Z | test/win/gyptest-link-target-machine.py | chlorm-forks/gyp | a8921fcaab1a18c8cf7e4ab09ceb940e336918ec | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | #!/usr/bin/env python
# Copyright (c) 2013 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
Make sure TargetMachine setting is extracted properly.
"""
import TestGyp
import sys
if sys.platform == 'win32':
test = TestGyp.Tes... | 29.655172 | 80 | 0.718605 | 134 | 860 | 4.507463 | 0.537313 | 0.107616 | 0.13245 | 0.145695 | 0.370861 | 0.370861 | 0.298013 | 0.298013 | 0.15894 | 0.15894 | 0 | 0.027285 | 0.147674 | 860 | 28 | 81 | 30.714286 | 0.796726 | 0.367442 | 0 | 0 | 0 | 0 | 0.365348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5a1df3b59b14e93122a57c827529cb33795d9803 | 4,403 | py | Python | tests/test_push.py | dhaval737/BanditPAM | a84d86f839dd824f0f1b562547b1282ca72af318 | [
"MIT"
] | null | null | null | tests/test_push.py | dhaval737/BanditPAM | a84d86f839dd824f0f1b562547b1282ca72af318 | [
"MIT"
] | null | null | null | tests/test_push.py | dhaval737/BanditPAM | a84d86f839dd824f0f1b562547b1282ca72af318 | [
"MIT"
] | null | null | null | import unittest
from BanditPAM import KMedoids
import pandas as pd
import numpy as np
def onFly(k, data, loss):
kmed_bpam = KMedoids(
n_medoids = k,
algorithm = "BanditPAM",
)
kmed_naive = KMedoids(
n_medoids = k,
algorithm = "naive",
)
kmed_bpam.fit(data, loss)
... | 32.138686 | 86 | 0.549171 | 558 | 4,403 | 4.177419 | 0.189964 | 0.027456 | 0.041184 | 0.020592 | 0.711712 | 0.666667 | 0.666667 | 0.666667 | 0.666667 | 0.620335 | 0 | 0.076897 | 0.338406 | 4,403 | 136 | 87 | 32.375 | 0.723309 | 0.148762 | 0 | 0.47 | 0 | 0 | 0.038859 | 0.007828 | 0 | 0 | 0 | 0 | 0.06 | 1 | 0.07 | false | 0 | 0.04 | 0 | 0.17 | 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 |
5a1ef24d04e8235652c49c75a8bba5b204086c8c | 2,825 | py | Python | multi_predict.py | u1234x1234/kaggle-dstl-satellite-imagery-feature-detection | c0b143d584ccd9b36b8003724147fc85c9bf32f0 | [
"Apache-2.0"
] | 17 | 2017-05-16T22:49:47.000Z | 2020-10-24T17:06:56.000Z | multi_predict.py | u1234x1234/kaggle-dstl-satellite-imagery-feature-detection | c0b143d584ccd9b36b8003724147fc85c9bf32f0 | [
"Apache-2.0"
] | null | null | null | multi_predict.py | u1234x1234/kaggle-dstl-satellite-imagery-feature-detection | c0b143d584ccd9b36b8003724147fc85c9bf32f0 | [
"Apache-2.0"
] | 7 | 2017-05-17T05:12:07.000Z | 2019-09-06T14:02:42.000Z | from __future__ import print_function
import pandas as pd
import numpy as np
import mxnet as mx
import cv2
from utils import root_path
from utils import unsoft
from utils import colorize_raster
from data_iter import get_image_data
from utils import polygonize
from shapely import affinity
from utils import get_scale_fac... | 30.053191 | 77 | 0.625487 | 456 | 2,825 | 3.664474 | 0.278509 | 0.056852 | 0.044883 | 0.017953 | 0.179533 | 0.10772 | 0.063435 | 0.063435 | 0.031119 | 0.031119 | 0 | 0.027829 | 0.236814 | 2,825 | 93 | 78 | 30.376344 | 0.747217 | 0.098053 | 0 | 0.057971 | 0 | 0 | 0.040189 | 0.021671 | 0 | 0 | 0 | 0.010753 | 0.043478 | 1 | 0.014493 | false | 0 | 0.173913 | 0 | 0.188406 | 0.072464 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
5a213e8960ca2e9abcf54cd3abda2e390ae2afd0 | 7,711 | py | Python | Ideas/Tennis Project/Source Code/FindBall.py | hsspratt/Nott-Hawkeye1 | 178f4f0fef62e8699f6057d9d50adfd61a851047 | [
"MIT"
] | null | null | null | Ideas/Tennis Project/Source Code/FindBall.py | hsspratt/Nott-Hawkeye1 | 178f4f0fef62e8699f6057d9d50adfd61a851047 | [
"MIT"
] | 1 | 2021-11-11T22:15:36.000Z | 2021-11-11T22:15:36.000Z | Ideas/Tennis Project/Source Code/FindBall.py | hsspratt/Nott-Hawkeye1 | 178f4f0fef62e8699f6057d9d50adfd61a851047 | [
"MIT"
] | null | null | null | # script to take a video file and recognize balls
# for now only ball candidates, but utlimately only moving balls
# import video reader class. File in same folder (src)
from VideoReader import VideoReader
# still need opencv for other image processing stuff
import cv2
# need numpy
import numpy as np
# fo... | 45.89881 | 102 | 0.633251 | 960 | 7,711 | 5.053125 | 0.33125 | 0.016491 | 0.026799 | 0.029891 | 0.179138 | 0.14698 | 0.108637 | 0.078953 | 0.04865 | 0.04865 | 0 | 0.04767 | 0.279082 | 7,711 | 167 | 103 | 46.173653 | 0.824969 | 0.308002 | 0 | 0.182692 | 0 | 0 | 0.007229 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.038462 | null | null | 0.019231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5a22919c8181d676488f289f1c75d31d9b407319 | 927 | py | Python | week2/vlan-config.py | sh0gunofharlem/PyNetClass | a09bc6dec14f20a726777c107be756752054d935 | [
"Apache-2.0"
] | 1 | 2019-01-29T21:44:43.000Z | 2019-01-29T21:44:43.000Z | week2/vlan-config.py | sh0gunofharlem/PyNetClass | a09bc6dec14f20a726777c107be756752054d935 | [
"Apache-2.0"
] | null | null | null | week2/vlan-config.py | sh0gunofharlem/PyNetClass | a09bc6dec14f20a726777c107be756752054d935 | [
"Apache-2.0"
] | null | null | null | from netmiko import ConnectHandler
from getpass import getpass
from datetime import datetime
def logstamp():
lstamp = datetime.now()
return str(lstamp.year) + '-' + str(lstamp.month) + '-' + str(lstamp.day) + '-' + str(lstamp.hour) + '-' + str(lstamp.minute) + '-' + str(lstamp.second)
uid = 'pyclass'
pwd = g... | 26.485714 | 156 | 0.555556 | 94 | 927 | 5.351064 | 0.553191 | 0.107356 | 0.05169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00318 | 0.321467 | 927 | 34 | 157 | 27.264706 | 0.796502 | 0 | 0 | 0 | 0 | 0 | 0.101622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.142857 | 0.142857 | 0 | 0.238095 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5a22ea812e9c3de29e5a803d6543c82f187d2278 | 1,503 | py | Python | buketap/JobSubmit.py | Williams224/davinci-scripts | 730642d2ff13543eca4073a4ce0932631195de56 | [
"MIT"
] | null | null | null | buketap/JobSubmit.py | Williams224/davinci-scripts | 730642d2ff13543eca4073a4ce0932631195de56 | [
"MIT"
] | null | null | null | buketap/JobSubmit.py | Williams224/davinci-scripts | 730642d2ff13543eca4073a4ce0932631195de56 | [
"MIT"
] | null | null | null | #!/usr/bin/env ganga
import getpass
from distutils.util import strtobool
polarity='MagDown'
datatype='Data'
channel='buketap'
year='12'
b=Job()
b.application=DaVinci(version="v36r5")
if datatype=='MC':
b.application.optsfile='NTupleMaker_{0}.py'.format(polarity)
if datatype=='Data':
b.application.optsfile='D... | 29.470588 | 104 | 0.733866 | 204 | 1,503 | 5.313725 | 0.289216 | 0.073801 | 0.013838 | 0.01845 | 0.534133 | 0.513838 | 0.513838 | 0.353321 | 0.266605 | 0.266605 | 0 | 0.035125 | 0.071856 | 1,503 | 50 | 105 | 30.06 | 0.741935 | 0.066534 | 0 | 0.210526 | 0 | 0 | 0.180129 | 0.036455 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.026316 | 0.052632 | null | null | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a3149cfe5f58842e7365f31114a662916490019 | 477 | py | Python | assn5/dec_to_bin.py | vardhan2000/1st-sem-python-assignments | 9f38ab2b15c36b5ae1c6a725f4d4effe026e0bb4 | [
"MIT"
] | null | null | null | assn5/dec_to_bin.py | vardhan2000/1st-sem-python-assignments | 9f38ab2b15c36b5ae1c6a725f4d4effe026e0bb4 | [
"MIT"
] | null | null | null | assn5/dec_to_bin.py | vardhan2000/1st-sem-python-assignments | 9f38ab2b15c36b5ae1c6a725f4d4effe026e0bb4 | [
"MIT"
] | null | null | null | def recurse(ans, n):
## Your code - begin
if n > 0: # (n > 0) is the base case to exit recursion
a = n % 2
n = int(n / 2)
ans = ans + str(a)
return(recurse(ans, n))
else:
if ans:
return(ans[::-1]) # returning the reverse of the string 'ans'.
else:
return "0" # if n = 0 and 'ans' liat is empty.
#... | 19.08 | 65 | 0.584906 | 79 | 477 | 3.43038 | 0.493671 | 0.02214 | 0.081181 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01983 | 0.259958 | 477 | 24 | 66 | 19.875 | 0.747875 | 0.320755 | 0 | 0.117647 | 0 | 0 | 0.072785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a32b528ba38477b4b40fc89b12c5b3d91651fdb | 1,149 | py | Python | library/Box2D/__init__.py | indigames/pybox2d | a49213c9000be4d42436993e64a52be76d707fe2 | [
"Zlib"
] | 2 | 2021-07-28T02:33:04.000Z | 2021-11-10T16:24:37.000Z | Data Science/Self_Driving_Car/Umbrella_Academy_INFO7390_Project/INFO7390_Notebooks/sdc_gym/box2d-py-2.3.8/library/Box2D/__init__.py | RushabhNisher/Data | a7479ec1cba6846d491ee9ec11ae5db1a7abff32 | [
"Unlicense"
] | null | null | null | Data Science/Self_Driving_Car/Umbrella_Academy_INFO7390_Project/INFO7390_Notebooks/sdc_gym/box2d-py-2.3.8/library/Box2D/__init__.py | RushabhNisher/Data | a7479ec1cba6846d491ee9ec11ae5db1a7abff32 | [
"Unlicense"
] | null | null | null | #!/usr/bin/python
#
# C++ version copyright 2010 Erin Catto http://www.gphysics.com
# Python version copyright 2010 Ken Lauer / sirkne at gmail dot com
#
# This software is provided 'as-is', without any express or implied
# warranty. In no event will the authors be held liable for any damages
# arising from the use o... | 44.192308 | 76 | 0.760661 | 177 | 1,149 | 4.79661 | 0.581921 | 0.070671 | 0.047114 | 0.054181 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018848 | 0.168842 | 1,149 | 26 | 77 | 44.192308 | 0.870157 | 0.826806 | 0 | 0 | 0 | 0 | 0.172222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 |
5a32d4dc5769e15ce02651f0c20c19d1ceaf45de | 849 | py | Python | data/migrations/0001_initial.py | tolgakurtulus/tdl | 2b9fa09d661acbaf7ce452acec63f58ad0f3ea42 | [
"MIT"
] | null | null | null | data/migrations/0001_initial.py | tolgakurtulus/tdl | 2b9fa09d661acbaf7ce452acec63f58ad0f3ea42 | [
"MIT"
] | null | null | null | data/migrations/0001_initial.py | tolgakurtulus/tdl | 2b9fa09d661acbaf7ce452acec63f58ad0f3ea42 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.7 on 2019-11-30 16:28
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='ToDoList',
fields=[
... | 32.653846 | 123 | 0.62073 | 89 | 849 | 5.820225 | 0.629213 | 0.106178 | 0.073359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028169 | 0.24735 | 849 | 25 | 124 | 33.96 | 0.782473 | 0.053004 | 0 | 0 | 1 | 0 | 0.099751 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a331197087c33476157b4ebb8a5af579d7923e3 | 3,314 | py | Python | Examples/Python/ListenForTelemetry.py | motorsportgames/kartkraft-telemetry | c2a93feb26c45c2b4fbf91cd13455253fb144a78 | [
"MIT"
] | 11 | 2019-05-09T07:27:15.000Z | 2020-10-23T09:16:00.000Z | Examples/Python/ListenForTelemetry.py | motorsportgames/kartkraft-telemetry | c2a93feb26c45c2b4fbf91cd13455253fb144a78 | [
"MIT"
] | 7 | 2019-05-09T22:11:20.000Z | 2021-05-05T13:56:18.000Z | Examples/Python/ListenForTelemetry.py | black-delta/kartkraft-telemetry | c2a93feb26c45c2b4fbf91cd13455253fb144a78 | [
"MIT"
] | 4 | 2019-08-24T05:38:24.000Z | 2020-04-07T05:38:14.000Z | import socket
import flatbuffers
import KartKraft.Frame
import KartKraft.Motion
import KartKraft.Surface
import KartKraft.VehicleConfig
import KartKraft.TrackConfig
UDP_IP = "127.0.0.1"
UDP_PORT = 5000
MAX_PACKET_SIZE = 1024
# flatbuffers python not generating enum names yet, so let's hardcode some values for now
SURF... | 37.235955 | 89 | 0.562161 | 317 | 3,314 | 5.832808 | 0.403785 | 0.040562 | 0.014062 | 0.01298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007395 | 0.306276 | 3,314 | 88 | 90 | 37.659091 | 0.796868 | 0.030175 | 0 | 0 | 0 | 0 | 0.15514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.09589 | 0 | 0.09589 | 0.438356 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
5a3deed0765501d7caaf8afb0ebcc9a4db39a4c1 | 863 | py | Python | notify_sdk/api/msgpub/msgpub_client.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | 5 | 2019-07-31T04:11:05.000Z | 2021-01-07T03:23:20.000Z | notify_sdk/api/msgpub/msgpub_client.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | notify_sdk/api/msgpub/msgpub_client.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import sys
import notify_sdk.utils.http_util
import google.protobuf.json_format
class MsgpubClient(object):
def __init__(self, server_ip="", server_port=0, service_name="", host=""):
"""
初始化client
:param server_ip: 指定sdk请求的server_ip,为空时走名字服务路由
:p... | 31.962963 | 105 | 0.683662 | 102 | 863 | 5.431373 | 0.509804 | 0.086643 | 0.059567 | 0.064982 | 0.079422 | 0.079422 | 0 | 0 | 0 | 0 | 0 | 0.005952 | 0.221321 | 863 | 26 | 106 | 33.192308 | 0.818452 | 0.345307 | 0 | 0 | 0 | 0 | 0.053045 | 0.053045 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5a41ab30260cae602d4094689ff5fda4ecda28ea | 926 | py | Python | lmctl/cli/format/__init__.py | manojn97/lmctl | 844925cb414722351efac90cb97f10c1185eef7a | [
"Apache-2.0"
] | 3 | 2021-07-19T09:46:01.000Z | 2022-03-07T13:51:25.000Z | lmctl/cli/format/__init__.py | manojn97/lmctl | 844925cb414722351efac90cb97f10c1185eef7a | [
"Apache-2.0"
] | 43 | 2019-08-27T12:36:29.000Z | 2020-08-27T14:50:40.000Z | lmctl/cli/format/__init__.py | manojn97/lmctl | 844925cb414722351efac90cb97f10c1185eef7a | [
"Apache-2.0"
] | 7 | 2020-09-22T20:32:17.000Z | 2022-03-29T12:25:51.000Z | from .output_format import OutputFormat
from .input_format import InputFormat
from .json import JsonFormat
from .yaml import YamlFormat
from .table import TableFormat, Table, Column
from .exceptions import BadFormatError
import warnings
TABLE_FORMAT = 'table'
YAML_FORMAT = 'yaml'
JSON_FORMAT = 'json'
def determine_fo... | 33.071429 | 136 | 0.757019 | 110 | 926 | 6.209091 | 0.445455 | 0.105417 | 0.058565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002614 | 0.173866 | 926 | 28 | 137 | 33.071429 | 0.890196 | 0.024838 | 0 | 0 | 0 | 0 | 0.161863 | 0.074279 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.333333 | 0 | 0.416667 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5a434377ce9f9a1a0fd56e7266867f9632c1dc3f | 657 | py | Python | src/settings.py | kunansy/TelegramLogs | 74ce74e393a17da69b6d8108721404454cbf3141 | [
"MIT"
] | null | null | null | src/settings.py | kunansy/TelegramLogs | 74ce74e393a17da69b6d8108721404454cbf3141 | [
"MIT"
] | 5 | 2021-09-08T18:10:49.000Z | 2022-01-06T11:17:25.000Z | src/settings.py | kunansy/TelegramLogs | 74ce74e393a17da69b6d8108721404454cbf3141 | [
"MIT"
] | null | null | null | import os
from environs import Env
env = Env()
# username of people who can access the bot
GRANTED_USERS = env.list('GRANTED_USERS', [])
ADMIN_IDS = env.list('ADMIN_IDS', [])
DEVELOPER_USERNAME = env('DEVELOPER_USERNAME', "https://github.com/kunansy")
NOTIFY_ON_STARTUP = env.bool('NOTIFY_ON_STARTUP', True)
LOGGER_... | 24.333333 | 76 | 0.722983 | 104 | 657 | 4.298077 | 0.567308 | 0.04698 | 0.044743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014011 | 0.130898 | 657 | 26 | 77 | 25.269231 | 0.768827 | 0.123288 | 0 | 0 | 0 | 0 | 0.267016 | 0 | 0 | 0 | 0 | 0.038462 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a4d6c4c78d3ca12b7eabd904897db3645e56a8a | 299 | py | Python | django_countries/tests/custom_countries.py | druids/django-countries | 47722059029b8433b0a471a0815a97a733f7e445 | [
"MIT"
] | null | null | null | django_countries/tests/custom_countries.py | druids/django-countries | 47722059029b8433b0a471a0815a97a733f7e445 | [
"MIT"
] | null | null | null | django_countries/tests/custom_countries.py | druids/django-countries | 47722059029b8433b0a471a0815a97a733f7e445 | [
"MIT"
] | null | null | null | from django_countries import Countries
from django.utils.translation import gettext_lazy as _
class FantasyCountries(Countries):
only = ["NZ", ("NV", "Neverland")]
class TranslationFallbackCountries(Countries):
COMMON_NAMES = {"YE": "YYYemen"}
OLD_NAMES = {"NZ": [_("New Zealand")]}
| 24.916667 | 54 | 0.715719 | 32 | 299 | 6.5 | 0.71875 | 0.096154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147157 | 299 | 11 | 55 | 27.181818 | 0.815686 | 0 | 0 | 0 | 0 | 0 | 0.117057 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 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 |
5a4e1259b591584b303210eef634f1da23f56c0b | 1,351 | py | Python | dependency/search_result.py | WalnutATiie/google_search | f6babe04d330ac305cb8dd587e8fb360b1f09312 | [
"MIT"
] | null | null | null | dependency/search_result.py | WalnutATiie/google_search | f6babe04d330ac305cb8dd587e8fb360b1f09312 | [
"MIT"
] | null | null | null | dependency/search_result.py | WalnutATiie/google_search | f6babe04d330ac305cb8dd587e8fb360b1f09312 | [
"MIT"
] | null | null | null | import json
class SearchResult:
'''
This class is designed to restore and display every item
of search results.
'''
def __init__(self):
self.url = ''
self.title = ''
self.content = ''
def getURL(self):
return self.url
def setURL(self, url):
self.ur... | 24.563636 | 80 | 0.555885 | 159 | 1,351 | 4.654088 | 0.358491 | 0.066216 | 0.056757 | 0.054054 | 0.221622 | 0.221622 | 0.221622 | 0.127027 | 0.127027 | 0.127027 | 0 | 0.0011 | 0.327165 | 1,351 | 55 | 81 | 24.563636 | 0.812981 | 0 | 0 | 0.292683 | 0 | 0 | 0.054097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02439 | null | null | 0.146341 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5a4ea3a4f2cf40df44fba7abda6b786f746e9607 | 1,491 | py | Python | Solutions/day2.py | qkleinfelter/AdventOfCode2020 | 5196a4a7a5b39f930b7809998c411137d319a7b2 | [
"MIT"
] | null | null | null | Solutions/day2.py | qkleinfelter/AdventOfCode2020 | 5196a4a7a5b39f930b7809998c411137d319a7b2 | [
"MIT"
] | null | null | null | Solutions/day2.py | qkleinfelter/AdventOfCode2020 | 5196a4a7a5b39f930b7809998c411137d319a7b2 | [
"MIT"
] | null | null | null | def day2():
data = open(r'Inputs\day2.in').readlines()
print('Part 1 result: ' + str(part1(data)))
print('Part 2 result: ' + str(part2(data)))
def part1(data):
valid = 0
for x in data:
# example line: 6-9 z: qzzzzxzzfzzzz
# split each line on spaces, to get a set of numbers, a chara... | 37.275 | 102 | 0.579477 | 218 | 1,491 | 3.963303 | 0.399083 | 0.013889 | 0.038194 | 0.030093 | 0.215278 | 0.157407 | 0.157407 | 0.111111 | 0.111111 | 0.111111 | 0 | 0.028827 | 0.325285 | 1,491 | 40 | 103 | 37.275 | 0.83002 | 0.403756 | 0 | 0.444444 | 0 | 0 | 0.052392 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.148148 | 0 | 0 | 0.185185 | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5a50bcfc254f28fc18ecc70474da9e2f92232d2d | 3,725 | py | Python | wepitopes/models/db_collections.py | tariqdaouda/covap-backend | 2008add5a68031c1b6875422aff01e7df4c30c5d | [
"Apache-2.0"
] | 6 | 2020-04-27T19:17:21.000Z | 2021-01-04T20:07:17.000Z | wepitopes/models/db_collections.py | tariqdaouda/covap-backend | 2008add5a68031c1b6875422aff01e7df4c30c5d | [
"Apache-2.0"
] | 1 | 2020-05-05T22:37:57.000Z | 2020-05-05T22:37:57.000Z | wepitopes/models/db_collections.py | tariqdaouda/covap-backend | 2008add5a68031c1b6875422aff01e7df4c30c5d | [
"Apache-2.0"
] | 5 | 2020-04-10T18:38:17.000Z | 2021-01-03T12:43:32.000Z | import pyArango.collection as COL
import pyArango.validation as VAL
class VirusSequences(COL.Collection):
#_properties = {
# "keyOptions" : {
# "allowUserKeys": False,
# "type": "autoincrement",
# "increment": 1,
# "offset": 0,
# }
#}
_validation = {
'on_save... | 28.653846 | 85 | 0.573423 | 343 | 3,725 | 6.072886 | 0.221574 | 0.149784 | 0.138262 | 0.161306 | 0.469995 | 0.37446 | 0.370139 | 0.370139 | 0.287566 | 0.287566 | 0 | 0.001764 | 0.238926 | 3,725 | 129 | 86 | 28.875969 | 0.732981 | 0.117047 | 0 | 0.210526 | 0 | 0 | 0.294676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021053 | 0 | 0.136842 | 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 |
5a52e1512e3d4dd0905332a9c10d24a52722aea2 | 6,059 | py | Python | MainTesting.py | soum-io/hackillinois2018 | 231787c6ac08b80e88ead96894a33fadfabaeae7 | [
"Unlicense"
] | 1 | 2019-10-29T07:16:18.000Z | 2019-10-29T07:16:18.000Z | MainTesting.py | soum-io/hackillinois2018 | 231787c6ac08b80e88ead96894a33fadfabaeae7 | [
"Unlicense"
] | null | null | null | MainTesting.py | soum-io/hackillinois2018 | 231787c6ac08b80e88ead96894a33fadfabaeae7 | [
"Unlicense"
] | null | null | null | /*
Creates Random Test Profiles using random names, addresses, and picture Urls
*/
import json,csv,sqlite3,requests,random
from requests.exceptions import HTTPError
from random import choice
from string import ascii_lowercase
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.metrics.pairwise imp... | 31.557292 | 151 | 0.614953 | 788 | 6,059 | 4.692893 | 0.362944 | 0.026771 | 0.004868 | 0.008924 | 0.033532 | 0.013521 | 0 | 0 | 0 | 0 | 0 | 0.016464 | 0.238158 | 6,059 | 191 | 152 | 31.722513 | 0.784662 | 0.126093 | 0 | 0.150327 | 0 | 0 | 0.150085 | 0.030699 | 0 | 0 | 0 | 0.005236 | 0.006536 | 0 | null | null | 0 | 0.045752 | null | null | 0.104575 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5a53d099f2835559d040e20f28433d350f0f8899 | 314 | py | Python | RAM.py | xzripper/LuaUI | 7addca9a50b5ec446b3d3e0f27ad7ba32d02d77a | [
"MIT"
] | 1 | 2022-01-20T14:02:49.000Z | 2022-01-20T14:02:49.000Z | RAM.py | xzripper/LuaUI | 7addca9a50b5ec446b3d3e0f27ad7ba32d02d77a | [
"MIT"
] | null | null | null | RAM.py | xzripper/LuaUI | 7addca9a50b5ec446b3d3e0f27ad7ba32d02d77a | [
"MIT"
] | null | null | null | # Part of LuaUI.
from psutil import virtual_memory # Get memory.
MEMORY = (0x401 - 0x1) # Memory. (1024)
with open("RAM", "w") as WRITE_RAM: # Opening file with data.
WRITE_RAM.write(str(int(virtual_memory().total / MEMORY / MEMORY / MEMORY) + 0x1)) # Send memory.
WRITE_RAM.close() # Closing.
| 31.4 | 102 | 0.659236 | 44 | 314 | 4.590909 | 0.613636 | 0.178218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048 | 0.203822 | 314 | 9 | 103 | 34.888889 | 0.76 | 0.27707 | 0 | 0 | 0 | 0 | 0.018957 | 0 | 0 | 0 | 0.052133 | 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 |
5a543cb290fe779702dc629c40c3e6dd9aafeeed | 2,822 | py | Python | tests/test_pythonpy.py | scauligi/pythonpy-fork | 76d643465fde751ed7818242d80d7fbbde6dcd52 | [
"BSD-3-Clause"
] | 6 | 2020-03-23T23:25:45.000Z | 2021-11-11T14:17:59.000Z | tests/test_pythonpy.py | scauligi/pythonpy-fork | 76d643465fde751ed7818242d80d7fbbde6dcd52 | [
"BSD-3-Clause"
] | null | null | null | tests/test_pythonpy.py | scauligi/pythonpy-fork | 76d643465fde751ed7818242d80d7fbbde6dcd52 | [
"BSD-3-Clause"
] | 5 | 2020-10-22T03:04:13.000Z | 2021-11-11T14:18:04.000Z | import unittest
from subprocess import check_output
class TestPythonPy(unittest.TestCase):
def checkOutput(self, string, result, **kwargs):
return self.assertEqual(check_output(string, **kwargs), result)
def test_list_stdin(self):
self.checkOutput("""echo $'a,2\nb,1' | py -l 'sorted(l... | 42.757576 | 126 | 0.481928 | 334 | 2,822 | 3.946108 | 0.386228 | 0.12519 | 0.115326 | 0.060698 | 0.204856 | 0.059181 | 0.030349 | 0.030349 | 0 | 0 | 0 | 0.033809 | 0.329199 | 2,822 | 65 | 127 | 43.415385 | 0.662441 | 0 | 0 | 0 | 0 | 0.057692 | 0.29837 | 0.080439 | 0 | 0 | 0 | 0 | 0.019231 | 1 | 0.211538 | false | 0 | 0.096154 | 0.019231 | 0.346154 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5a62b2835ef55ca87a35d729dcbb8f5b7ab18232 | 496 | py | Python | solutions/Number of Dice Rolls With Target Sum/solution.py | nilax97/leetcode-solutions | d3c12f2b289662d199510e0431e177bbf3cda121 | [
"MIT"
] | 3 | 2021-06-06T22:03:15.000Z | 2021-06-08T08:49:04.000Z | solutions/Number of Dice Rolls With Target Sum/solution.py | nilax97/leetcode-solutions | d3c12f2b289662d199510e0431e177bbf3cda121 | [
"MIT"
] | null | null | null | solutions/Number of Dice Rolls With Target Sum/solution.py | nilax97/leetcode-solutions | d3c12f2b289662d199510e0431e177bbf3cda121 | [
"MIT"
] | null | null | null | class Solution:
def numRollsToTarget(self, d: int, f: int, target: int) -> int:
memo = {}
def dp(d,target):
if d==0 :
return 0 if target>0 else 1
if (d,target) in memo:
return memo[(d,target)]
to_return = 0
for k in rang... | 33.066667 | 67 | 0.47379 | 69 | 496 | 3.347826 | 0.362319 | 0.151515 | 0.181818 | 0.112554 | 0.164502 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.40121 | 496 | 14 | 68 | 35.428571 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.5 | 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 |
5a73cb8f9634f1b4d2131acf976f8c33d53e6db2 | 4,735 | py | Python | stack/stack/filtProcess.py | earthobservatory/ariamh-pub | f33731e127f38ff33b02e02c07b16793c07651a6 | [
"Apache-2.0"
] | 4 | 2019-11-19T03:35:35.000Z | 2020-12-07T18:43:11.000Z | stack/stack/filtProcess.py | earthobservatory/ariamh-pub | f33731e127f38ff33b02e02c07b16793c07651a6 | [
"Apache-2.0"
] | 3 | 2019-06-05T03:35:55.000Z | 2020-04-09T14:16:08.000Z | stack/stack/filtProcess.py | earthobservatory/ariamh-pub | f33731e127f38ff33b02e02c07b16793c07651a6 | [
"Apache-2.0"
] | 6 | 2019-08-23T22:53:11.000Z | 2021-11-06T15:15:30.000Z | #!/usr/bin/env python
####This script will include atmospheric corrections code in the future.
####Currently not used.
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Author: Piyush Agram
# Copyright 2013, by the California Institute of Technology. ALL RIGHTS
# RESERVED. United Stat... | 32.655172 | 96 | 0.652587 | 529 | 4,735 | 5.799622 | 0.42344 | 0.017601 | 0.033246 | 0.031291 | 0.104628 | 0.053129 | 0.022816 | 0.022816 | 0.022816 | 0 | 0 | 0.003207 | 0.209715 | 4,735 | 144 | 97 | 32.881944 | 0.816676 | 0.209504 | 0 | 0.068182 | 0 | 0 | 0.209788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.102273 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5a790b70ae5aebdb1b08d3a341a5ec702abfac83 | 6,317 | py | Python | taco.py | binarioGH/Taco | cc07edcce1463002fe09dbdefc0885a098a2664e | [
"MIT"
] | 2 | 2019-09-19T14:00:17.000Z | 2020-03-14T22:56:34.000Z | taco.py | binarioGH/Taco | cc07edcce1463002fe09dbdefc0885a098a2664e | [
"MIT"
] | null | null | null | taco.py | binarioGH/Taco | cc07edcce1463002fe09dbdefc0885a098a2664e | [
"MIT"
] | null | null | null | #-*-coding: utf-8-*-
from itertools import product
from sys import argv
from optparse import OptionParser as opt
from codecs import open as copen
from time import strftime as time
from lib import *
from hashlib import md5, sha1, sha224, sha256, sha384, sha3_224, sha3_256, sha3_384, sha3_512, sha512
getDate = lambda: ti... | 39.981013 | 191 | 0.672313 | 915 | 6,317 | 4.562842 | 0.24153 | 0.019162 | 0.042156 | 0.033054 | 0.193772 | 0.141317 | 0.119281 | 0.107305 | 0.050299 | 0.038084 | 0 | 0.028427 | 0.153554 | 6,317 | 158 | 192 | 39.981013 | 0.752385 | 0.003008 | 0 | 0.122449 | 0 | 0.006803 | 0.293109 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040816 | false | 0.258503 | 0.047619 | 0.006803 | 0.142857 | 0.115646 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5a7ad506c52375f26395abc1ac64030428ee7d05 | 2,349 | py | Python | term4/OOP/main/migrations/0001_initial.py | japanese-goblinn/labs | 47f5d59d28faf62c82535856e138b5cb98159fd0 | [
"MIT"
] | null | null | null | term4/OOP/main/migrations/0001_initial.py | japanese-goblinn/labs | 47f5d59d28faf62c82535856e138b5cb98159fd0 | [
"MIT"
] | null | null | null | term4/OOP/main/migrations/0001_initial.py | japanese-goblinn/labs | 47f5d59d28faf62c82535856e138b5cb98159fd0 | [
"MIT"
] | 1 | 2021-10-11T08:30:48.000Z | 2021-10-11T08:30:48.000Z | # Generated by Django 2.2 on 2019-04-21 22:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Author',
fields=[
... | 39.813559 | 158 | 0.556407 | 229 | 2,349 | 5.576419 | 0.358079 | 0.082224 | 0.097886 | 0.090055 | 0.466719 | 0.444792 | 0.359436 | 0.359436 | 0.359436 | 0.296006 | 0 | 0.022961 | 0.295445 | 2,349 | 58 | 159 | 40.5 | 0.74864 | 0.018306 | 0 | 0.509804 | 1 | 0 | 0.100694 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.039216 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5a8449d2235e9f8f56299f875ea8a33408acc31d | 643 | py | Python | tests/seldon/docker/test_model.py | majolo/tempo | 516b7df0beaf36d69366e8e759ce00a362225278 | [
"Apache-2.0"
] | 75 | 2021-02-15T09:49:02.000Z | 2022-03-31T02:06:38.000Z | tests/seldon/docker/test_model.py | majolo/tempo | 516b7df0beaf36d69366e8e759ce00a362225278 | [
"Apache-2.0"
] | 106 | 2021-02-13T09:25:19.000Z | 2022-03-25T16:18:00.000Z | tests/seldon/docker/test_model.py | majolo/tempo | 516b7df0beaf36d69366e8e759ce00a362225278 | [
"Apache-2.0"
] | 21 | 2021-02-12T17:12:50.000Z | 2022-03-04T02:09:26.000Z | import time
import numpy as np
import pytest
from tempo.seldon.docker import SeldonDockerRuntime
def test_deploy_docker(sklearn_model_deployed, runtime: SeldonDockerRuntime):
time.sleep(2)
container = runtime._get_container(sklearn_model_deployed.model_spec)
assert container.status == "running"
@pyt... | 23.814815 | 86 | 0.707621 | 93 | 643 | 4.666667 | 0.483871 | 0.110599 | 0.184332 | 0.02765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038321 | 0.147745 | 643 | 26 | 87 | 24.730769 | 0.75365 | 0 | 0 | 0.125 | 0 | 0 | 0.03888 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 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 |
5a85b0af9a33c1f777f8dbdf5ecc52016031b305 | 9,398 | py | Python | xfel/merging/algorithms/error_model/sdfac_refine_lbfgs.py | jbeilstenedmands/cctbx_project | c228fb15ab10377f664c39553d866281358195aa | [
"BSD-3-Clause-LBNL"
] | null | null | null | xfel/merging/algorithms/error_model/sdfac_refine_lbfgs.py | jbeilstenedmands/cctbx_project | c228fb15ab10377f664c39553d866281358195aa | [
"BSD-3-Clause-LBNL"
] | null | null | null | xfel/merging/algorithms/error_model/sdfac_refine_lbfgs.py | jbeilstenedmands/cctbx_project | c228fb15ab10377f664c39553d866281358195aa | [
"BSD-3-Clause-LBNL"
] | null | null | null | from __future__ import division
from six.moves import range
from scitbx.array_family import flex
import math
from xfel.merging.algorithms.error_model.sdfac_refine import sdfac_refine_refltable
from xfel.merging.algorithms.error_model import compute_normalized_deviations, apply_sd_error_params
def finite_difference(ta... | 37.895161 | 110 | 0.707172 | 1,290 | 9,398 | 4.913953 | 0.188372 | 0.028396 | 0.059946 | 0.045433 | 0.409686 | 0.380975 | 0.294841 | 0.237104 | 0.226061 | 0.211863 | 0 | 0.010758 | 0.188976 | 9,398 | 247 | 111 | 38.048583 | 0.820913 | 0.019047 | 0 | 0.21466 | 0 | 0 | 0.036468 | 0.009987 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005236 | 0.052356 | null | null | 0.036649 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5a8753feee47ac93706cf0c6e71d898c7645d239 | 883 | py | Python | config.py | adamzwasserman/crt-sh-lookup | ca8d8b36b9fa211fb95e8496adb5c9ba9d8e7bda | [
"MIT"
] | null | null | null | config.py | adamzwasserman/crt-sh-lookup | ca8d8b36b9fa211fb95e8496adb5c9ba9d8e7bda | [
"MIT"
] | null | null | null | config.py | adamzwasserman/crt-sh-lookup | ca8d8b36b9fa211fb95e8496adb5c9ba9d8e7bda | [
"MIT"
] | null | null | null | # WORDS IN ALL CAPS ARE MEANT TO BE REPLACED WITH INFORMATION SPECFIC TO YOUR IMPLEMENTATION/ENVIRONMENT
# enter list of search terms, use the '%' as a wildcard.
# each serach term has to be in single quotes, every search term except the last needs a comma after it
list_of_lookup_keys = ['YOUR_SEARCH_TERM_WITH_WIL... | 40.136364 | 105 | 0.762174 | 139 | 883 | 4.611511 | 0.604317 | 0.046802 | 0.028081 | 0.062403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174405 | 883 | 22 | 106 | 40.136364 | 0.879287 | 0.484711 | 0 | 0 | 0 | 0 | 0.52784 | 0.291759 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5a87b0a0e43cf744ef1433cdde888bd106ecc3f2 | 9,640 | py | Python | src/citrine/resources/dataset.py | crleblanc/citrine-python | 4e89e9efc498352b2eb6b9abd60c14835c3dd686 | [
"Apache-2.0"
] | null | null | null | src/citrine/resources/dataset.py | crleblanc/citrine-python | 4e89e9efc498352b2eb6b9abd60c14835c3dd686 | [
"Apache-2.0"
] | null | null | null | src/citrine/resources/dataset.py | crleblanc/citrine-python | 4e89e9efc498352b2eb6b9abd60c14835c3dd686 | [
"Apache-2.0"
] | null | null | null | """Resources that represent both individual and collections of datasets."""
from uuid import UUID
from citrine._session import Session
from citrine._rest.collection import Collection
from citrine._rest.resource import Resource
from citrine._serialization import properties
from citrine._utils.functions import scrub_non... | 40 | 97 | 0.713693 | 1,099 | 9,640 | 6.157416 | 0.174704 | 0.03192 | 0.036501 | 0.059849 | 0.303975 | 0.18871 | 0.114822 | 0.101374 | 0.101374 | 0.082755 | 0 | 0.000131 | 0.210373 | 9,640 | 240 | 98 | 40.166667 | 0.88886 | 0.340353 | 0 | 0.132743 | 0 | 0 | 0.026963 | 0.005087 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176991 | false | 0 | 0.185841 | 0.00885 | 0.672566 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5a89eeb0fa2735f1b25e567aead4868936f6dddb | 1,379 | py | Python | infrastructure/models/messenger.py | creditease-natrix/natrix | 8b97efdc9287645ea6b99dcf3a99fbe3f6ba6862 | [
"MIT"
] | 3 | 2019-06-28T02:25:10.000Z | 2019-12-16T08:50:08.000Z | infrastructure/models/messenger.py | creditease-natrix/natrix | 8b97efdc9287645ea6b99dcf3a99fbe3f6ba6862 | [
"MIT"
] | 3 | 2020-02-12T00:17:22.000Z | 2021-06-10T21:29:11.000Z | infrastructure/models/messenger.py | creditease-natrix/natrix | 8b97efdc9287645ea6b99dcf3a99fbe3f6ba6862 | [
"MIT"
] | 1 | 2019-06-22T06:04:59.000Z | 2019-06-22T06:04:59.000Z | # -*- coding: utf-8 -*-
"""
"""
from __future__ import unicode_literals
from django.db import models
from django.utils import timezone
from infrastructure.configurations import messenger as configuration
# Create your models here.
choice_method = lambda x: (x.get('name'), x.get('verbose_name'))
# 通知方式
TYPE_CHOIC... | 32.833333 | 92 | 0.704859 | 172 | 1,379 | 5.436047 | 0.424419 | 0.117647 | 0.115508 | 0.139037 | 0.371123 | 0.168984 | 0.094118 | 0 | 0 | 0 | 0 | 0.009649 | 0.173314 | 1,379 | 41 | 93 | 33.634146 | 0.810526 | 0.036983 | 0 | 0 | 0 | 0 | 0.061691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.181818 | 0.045455 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5a8b00507a12866066e6e54d000a3adc86215b59 | 11,997 | py | Python | sdk/python/pulumi_azure_native/servicebus/disaster_recovery_config.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/servicebus/disaster_recovery_config.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/servicebus/disaster_recovery_config.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__a... | 44.932584 | 635 | 0.665416 | 1,309 | 11,997 | 5.7945 | 0.132162 | 0.055109 | 0.068293 | 0.055109 | 0.655372 | 0.54911 | 0.480949 | 0.407647 | 0.388134 | 0.322215 | 0 | 0.007112 | 0.238226 | 11,997 | 266 | 636 | 45.101504 | 0.822847 | 0.235726 | 0 | 0.374233 | 1 | 0 | 0.168038 | 0.080195 | 0 | 0 | 0 | 0 | 0 | 1 | 0.141104 | false | 0.006135 | 0.030675 | 0 | 0.263804 | 0 | 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 |
ce4d3a26faa7f6dec30218ed319efbf14764bff9 | 17,892 | py | Python | src/flightgear.py | plafl/helisim | 21cdf64ad9f9c0657fb82ff96f8d0c23d44ada73 | [
"CC-BY-4.0"
] | 6 | 2021-01-29T00:38:31.000Z | 2021-12-07T14:52:24.000Z | src/flightgear.py | plafl/helisim | 21cdf64ad9f9c0657fb82ff96f8d0c23d44ada73 | [
"CC-BY-4.0"
] | null | null | null | src/flightgear.py | plafl/helisim | 21cdf64ad9f9c0657fb82ff96f8d0c23d44ada73 | [
"CC-BY-4.0"
] | null | null | null | # -*- coding: latin-1 -*-
"""
Gestion de la conexion externa con FlightGear
"""
import logging
import socket
import time
import os
import protocolo
from historial import *
from matematicas import *
from geodesia import Geoide
def ft2m(feet):
"""
Convierte de pies a metros.
"""
return 0.3048*feet
... | 38.560345 | 90 | 0.417114 | 1,721 | 17,892 | 4.289367 | 0.271354 | 0.034408 | 0.03048 | 0.032512 | 0.124492 | 0.079924 | 0.065565 | 0.048496 | 0.044161 | 0.023571 | 0 | 0.037221 | 0.448916 | 17,892 | 463 | 91 | 38.643629 | 0.71146 | 0.111055 | 0 | 0.172185 | 0 | 0 | 0.100537 | 0 | 0 | 0 | 0 | 0.006479 | 0 | 0 | null | null | 0.006623 | 0.02649 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ce543da5710e3202700bf3d96babcefcb989b0c3 | 2,140 | py | Python | lth_reproduction/src/evaluate.py | grantgasser/reproduce-lottery-ticket | d30af02827428307ba12af4cbc396eb1d72c51bb | [
"MIT"
] | 1 | 2020-05-07T08:59:03.000Z | 2020-05-07T08:59:03.000Z | lth_reproduction/src/evaluate.py | grantgasser/reproduce-lottery-ticket-hypothesis | d30af02827428307ba12af4cbc396eb1d72c51bb | [
"MIT"
] | 3 | 2020-04-29T23:18:55.000Z | 2022-03-12T00:26:24.000Z | lth_reproduction/src/evaluate.py | grantgasser/reproduce-lottery-ticket-hypothesis | d30af02827428307ba12af4cbc396eb1d72c51bb | [
"MIT"
] | null | null | null | import torch
import torch.nn.functional as F
def test(model, device, test_loader):
"""
This function runs the testing script of the model, testing on a batch of test examples
each time its called and printing the results
Args:
model (obj): which model to train
device (torch.device): d... | 36.271186 | 97 | 0.64486 | 302 | 2,140 | 4.486755 | 0.317881 | 0.04428 | 0.028782 | 0.032472 | 0.693727 | 0.653875 | 0.62583 | 0.62583 | 0.62583 | 0.62583 | 0 | 0.00558 | 0.246262 | 2,140 | 58 | 98 | 36.896552 | 0.83447 | 0.440187 | 0 | 0.285714 | 0 | 0 | 0.05466 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.214286 | 0.035714 | 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 |
ce57640f0e7ec90b6ecb3a3c65c0abbc9427a4b1 | 8,460 | py | Python | reader/admin.py | Kadantte/comicake | 205f327b920cbfdec86e57034d98a42f335d64ee | [
"ISC"
] | 18 | 2018-05-01T04:56:37.000Z | 2022-03-27T16:11:57.000Z | reader/admin.py | Kadantte/comicake | 205f327b920cbfdec86e57034d98a42f335d64ee | [
"ISC"
] | 32 | 2018-06-08T06:29:35.000Z | 2022-03-11T23:32:21.000Z | reader/admin.py | Kadantte/comicake | 205f327b920cbfdec86e57034d98a42f335d64ee | [
"ISC"
] | 13 | 2018-04-25T20:14:01.000Z | 2021-12-12T10:02:05.000Z | from django.contrib import admin
from .models import Comic, Tag, Chapter, Team, Page, Person, Licensee
from django.utils.translation import gettext as _
from django.utils.safestring import mark_safe
from django.db import models
from django.contrib.admin.widgets import AdminFileWidget
from django.conf import settings
i... | 38.807339 | 150 | 0.656738 | 963 | 8,460 | 5.597092 | 0.247144 | 0.018553 | 0.025232 | 0.012801 | 0.392022 | 0.333024 | 0.326902 | 0.294249 | 0.294249 | 0.294249 | 0 | 0.004633 | 0.209102 | 8,460 | 218 | 151 | 38.807339 | 0.800777 | 0.036761 | 0 | 0.301775 | 0 | 0.011834 | 0.146019 | 0.010097 | 0 | 0 | 0 | 0.004587 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0.011834 | 0.573965 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ce617b729aaa28dc98832458f32f0536c54033cd | 7,445 | py | Python | ChannelAnalysis/RotamerAnalysis/Preprocessor.py | cing/ChannelAnalysis | 46fed870dab93545cb35cc1554303f048072d2f1 | [
"MIT"
] | 1 | 2022-03-16T14:22:48.000Z | 2022-03-16T14:22:48.000Z | ChannelAnalysis/RotamerAnalysis/Preprocessor.py | cing/ChannelAnalysis | 46fed870dab93545cb35cc1554303f048072d2f1 | [
"MIT"
] | null | null | null | ChannelAnalysis/RotamerAnalysis/Preprocessor.py | cing/ChannelAnalysis | 46fed870dab93545cb35cc1554303f048072d2f1 | [
"MIT"
] | null | null | null | #!/usr/bin/python
###############################################################################
#
# This script prepares multiple files of rotamer analysis output from
# MDAnalysis scripts in order to facilitate numerous Chi1-Chi2 analysis
# protocols including rotameric kinetics analysis and subsequent exponential
#... | 44.315476 | 79 | 0.601612 | 995 | 7,445 | 4.386935 | 0.332663 | 0.014433 | 0.027262 | 0.010997 | 0.065979 | 0.029782 | 0.029782 | 0.029782 | 0.029782 | 0.029782 | 0 | 0.038294 | 0.291471 | 7,445 | 167 | 80 | 44.580838 | 0.789194 | 0.346407 | 0 | 0.129032 | 0 | 0 | 0.121908 | 0 | 0 | 0 | 0 | 0 | 0.010753 | 0 | null | null | 0 | 0.032258 | null | null | 0.010753 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ce68214795dd66edc715fa4641e3e2fcdb2d378b | 672 | py | Python | 110-a-oo.py | catherinedevlin/just-enough-python | 3e272d37cbe68eed3e90fb472cfb4caf0a571881 | [
"MIT"
] | 5 | 2019-07-25T13:54:44.000Z | 2021-02-05T12:16:53.000Z | 110-a-oo.py | catherinedevlin/just-enough-python | 3e272d37cbe68eed3e90fb472cfb4caf0a571881 | [
"MIT"
] | null | null | null | 110-a-oo.py | catherinedevlin/just-enough-python | 3e272d37cbe68eed3e90fb472cfb4caf0a571881 | [
"MIT"
] | null | null | null | # Suppose we want to track runs and don't want
# to have to type in all the players in advance.
#
# There's some special code to help do this that we can
# "import" from Python's standard library.
from random import randint
class Player:
"This `class` of objects
def __init__(self, name):
"""The `con... | 23.172414 | 61 | 0.669643 | 103 | 672 | 4.330097 | 0.621359 | 0.026906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00578 | 0.227679 | 672 | 28 | 62 | 24 | 0.853565 | 0.34375 | 0 | 0 | 0 | 0 | 0.032154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ce69aab5a88fb375682da55649b4855e9e427638 | 674 | py | Python | Scripts6/Script51.py | jonfisik/ScriptsPython | 1d15221b3a41a06a189e3e04a5241fa63df9cf3f | [
"MIT"
] | 1 | 2020-09-05T22:25:36.000Z | 2020-09-05T22:25:36.000Z | Scripts6/Script51.py | jonfisik/ScriptsPython | 1d15221b3a41a06a189e3e04a5241fa63df9cf3f | [
"MIT"
] | null | null | null | Scripts6/Script51.py | jonfisik/ScriptsPython | 1d15221b3a41a06a189e3e04a5241fa63df9cf3f | [
"MIT"
] | null | null | null | '''Exercício Python 051: Desenvolva um programa que leia o primeiro termo e a razão de uma PA. No final, mostre os 10 primeiros termos dessa progressão.'''
print('=+=+=+=+=+=+=+=+='*3)
titulo = str('TERMOS DE UMA P.A.')
print('{:^51}'.format(titulo))
print('=+=+=+=+=+=+=+=+='*3)
TermoUm = int(input("Digite o primeiro t... | 44.933333 | 155 | 0.553412 | 85 | 674 | 4.388235 | 0.564706 | 0.064343 | 0.112601 | 0.080429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020067 | 0.11276 | 674 | 15 | 156 | 44.933333 | 0.603679 | 0.301187 | 0 | 0.307692 | 0 | 0 | 0.369099 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.538462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
ce6d9d498c44aa1437f2621d1cb51777d23607d6 | 1,769 | py | Python | uds/can/addressing_format.py | mdabrowski1990/uds | 1aee0c1de446ee3dd461706949504f2c218db1e8 | [
"MIT"
] | 18 | 2021-03-28T22:39:18.000Z | 2022-02-13T21:50:37.000Z | uds/can/addressing_format.py | mdabrowski1990/uds | 1aee0c1de446ee3dd461706949504f2c218db1e8 | [
"MIT"
] | 153 | 2021-02-09T09:27:05.000Z | 2022-03-29T06:09:15.000Z | uds/can/addressing_format.py | mdabrowski1990/uds | 1aee0c1de446ee3dd461706949504f2c218db1e8 | [
"MIT"
] | 1 | 2021-05-13T16:01:46.000Z | 2021-05-13T16:01:46.000Z | """Implementation of CAN Addressing Formats."""
__all__ = ["CanAddressingFormat", "CanAddressingFormatAlias"]
from typing import Union
from aenum import unique, StrEnum
from uds.utilities import ValidatedEnum
@unique
class CanAddressingFormat(StrEnum, ValidatedEnum):
"""
Definition of CAN addressing forma... | 45.358974 | 114 | 0.744488 | 219 | 1,769 | 5.945205 | 0.269406 | 0.099846 | 0.110599 | 0.119816 | 0.354839 | 0.330261 | 0.276498 | 0.231951 | 0.129032 | 0.129032 | 0 | 0.015656 | 0.133409 | 1,769 | 38 | 115 | 46.552632 | 0.833659 | 0.151498 | 0 | 0 | 0 | 0 | 0.262267 | 0.040609 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ce70bf511327a4182812ccfcc848cf200f95421a | 2,611 | py | Python | openhab_creator/models/configuration/equipment/types/wallswitch.py | DerOetzi/openhab_creator | 197876df5aae84192c34418f6b9a7cfcee23b195 | [
"MIT"
] | 1 | 2021-11-16T22:48:26.000Z | 2021-11-16T22:48:26.000Z | openhab_creator/models/configuration/equipment/types/wallswitch.py | DerOetzi/openhab_creator | 197876df5aae84192c34418f6b9a7cfcee23b195 | [
"MIT"
] | null | null | null | openhab_creator/models/configuration/equipment/types/wallswitch.py | DerOetzi/openhab_creator | 197876df5aae84192c34418f6b9a7cfcee23b195 | [
"MIT"
] | null | null | null | from __future__ import annotations
from typing import TYPE_CHECKING, Dict, List, Optional
from openhab_creator import _
from openhab_creator.models.configuration.equipment import (
Equipment, EquipmentItemIdentifiers, EquipmentType)
if TYPE_CHECKING:
from openhab_creator.models.configuration.equipment.types.... | 28.380435 | 94 | 0.648028 | 254 | 2,611 | 6.456693 | 0.259843 | 0.060366 | 0.031707 | 0.041463 | 0.105488 | 0.056098 | 0 | 0 | 0 | 0 | 0 | 0.001025 | 0.252394 | 2,611 | 91 | 95 | 28.692308 | 0.839139 | 0 | 0 | 0.134328 | 0 | 0 | 0.08694 | 0.021065 | 0 | 0 | 0 | 0 | 0 | 1 | 0.179104 | false | 0 | 0.074627 | 0.104478 | 0.447761 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ce715e6fdc63234555b07b02e5e6f1b801f2f69f | 9,276 | py | Python | tests/runners/kibana_runner_test.py | dliappis/rally-eventdata-track | c8b9c8b0de17e613d2b0db87ce0f2d0e13250a67 | [
"Apache-2.0"
] | 33 | 2017-02-22T17:59:46.000Z | 2021-11-02T07:07:40.000Z | tests/runners/kibana_runner_test.py | dliappis/rally-eventdata-track | c8b9c8b0de17e613d2b0db87ce0f2d0e13250a67 | [
"Apache-2.0"
] | 68 | 2017-03-10T12:57:36.000Z | 2021-07-14T14:26:03.000Z | tests/runners/kibana_runner_test.py | dliappis/rally-eventdata-track | c8b9c8b0de17e613d2b0db87ce0f2d0e13250a67 | [
"Apache-2.0"
] | 45 | 2017-02-22T18:03:58.000Z | 2022-01-01T02:18:41.000Z | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | 28.541538 | 76 | 0.344653 | 664 | 9,276 | 4.649096 | 0.262048 | 0.020732 | 0.047619 | 0.058957 | 0.663103 | 0.656625 | 0.630709 | 0.630709 | 0.611597 | 0.596696 | 0 | 0.026406 | 0.526412 | 9,276 | 324 | 77 | 28.62963 | 0.676303 | 0.079776 | 0 | 0.640569 | 0 | 0 | 0.214915 | 0.023958 | 0 | 0 | 0 | 0 | 0.014235 | 1 | 0 | false | 0 | 0.010676 | 0 | 0.010676 | 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 |
ce7ddbe42a70cea54594385987e4e9078564d9b0 | 8,175 | py | Python | inference_sparse.py | othercriteria/neuro_inference | cf362ad212ac510af8b8af940d0497c58406b95d | [
"BSD-3-Clause"
] | 1 | 2015-05-03T16:01:34.000Z | 2015-05-03T16:01:34.000Z | inference_sparse.py | othercriteria/neuro_inference | cf362ad212ac510af8b8af940d0497c58406b95d | [
"BSD-3-Clause"
] | null | null | null | inference_sparse.py | othercriteria/neuro_inference | cf362ad212ac510af8b8af940d0497c58406b95d | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# Trying to make inference work on big data without running out of
# memory. The big new idea is adaptive jitter window size.
# Daniel Klein, 10/4/2011
import sys
import numpy as np
import scipy.optimize as opt
from scipy.io import loadmat
from math import factorial
from utility import unlog, ... | 34.639831 | 79 | 0.541896 | 1,217 | 8,175 | 3.445357 | 0.177486 | 0.009063 | 0.008586 | 0.005724 | 0.272359 | 0.20725 | 0.187694 | 0.15025 | 0.142142 | 0.118769 | 0 | 0.017331 | 0.315352 | 8,175 | 235 | 80 | 34.787234 | 0.731821 | 0.081957 | 0 | 0.149733 | 0 | 0 | 0.055971 | 0.00561 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037433 | null | null | 0.080214 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ce8fc23b29f5b680c69a707a74b441081d694423 | 1,493 | py | Python | example.py | MarcSallent/sensecam-control | a04c80b13ae682f853eea816c645e3c0dc695721 | [
"MIT"
] | 25 | 2020-02-04T01:29:37.000Z | 2021-11-23T06:12:29.000Z | example.py | MarcSallent/sensecam-control | a04c80b13ae682f853eea816c645e3c0dc695721 | [
"MIT"
] | 8 | 2020-06-20T20:06:24.000Z | 2022-01-27T01:10:08.000Z | example.py | MarcSallent/sensecam-control | a04c80b13ae682f853eea816c645e3c0dc695721 | [
"MIT"
] | 10 | 2020-02-04T01:30:40.000Z | 2022-02-02T17:19:14.000Z | import cv2
import sys
import threading
from sensecam_control import vapix_control
ip = '000.000.000.000'
login = 'login'
password = 'password'
exit_program = 0
def event_keyboard(k):
global exit_program
if k == 27: # esc
exit_program = 1
elif k == ord('w') or k == ord('W')... | 22.621212 | 90 | 0.545881 | 202 | 1,493 | 3.935644 | 0.361386 | 0.050314 | 0.050314 | 0.060377 | 0.216352 | 0.216352 | 0.216352 | 0.150943 | 0.150943 | 0 | 0 | 0.03164 | 0.301407 | 1,493 | 65 | 91 | 22.969231 | 0.730585 | 0.118553 | 0 | 0.153846 | 0 | 0 | 0.057831 | 0 | 0 | 0 | 0.003213 | 0 | 0 | 1 | 0.051282 | false | 0.076923 | 0.102564 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ce9468702e85eb441f55280989e0974b48d83315 | 1,895 | py | Python | report_generator/analyzer/generic.py | tai271828/pycontw-postevent-report-generator | b0149644bde4929f1a2ca8f94bb7574a6d990354 | [
"BSD-3-Clause"
] | 1 | 2020-03-17T13:45:50.000Z | 2020-03-17T13:45:50.000Z | report_generator/analyzer/generic.py | tai271828/pycontw-postevent-report-generator | b0149644bde4929f1a2ca8f94bb7574a6d990354 | [
"BSD-3-Clause"
] | 34 | 2019-10-25T09:05:36.000Z | 2021-11-14T22:00:55.000Z | report_generator/analyzer/generic.py | tai271828/pycontw-postevent-report-generator | b0149644bde4929f1a2ca8f94bb7574a6d990354 | [
"BSD-3-Clause"
] | 6 | 2019-10-24T11:23:04.000Z | 2021-02-18T13:13:22.000Z | import re
import pandas as pd
from report_generator.cleaner.title import cat_title
def apply_others(x):
if x == "":
return "Others"
def add_cat_title(df):
df["Title_Categories"] = df["Title"].apply(cat_title)
others = df[df["Title_Categories"] == ""]["Title_Categories"].apply(apply_others)
... | 28.712121 | 88 | 0.544591 | 244 | 1,895 | 4.081967 | 0.422131 | 0.02008 | 0.051205 | 0.038153 | 0.072289 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020161 | 0.345646 | 1,895 | 65 | 89 | 29.153846 | 0.783065 | 0.112929 | 0 | 0.04878 | 0 | 0 | 0.185407 | 0 | 0 | 0 | 0 | 0.015385 | 0 | 1 | 0.097561 | false | 0 | 0.073171 | 0 | 0.268293 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
ce9a12205b839af704d9faee6348df6f61b0a477 | 1,436 | py | Python | app/helpers/messages.py | louolkol/fax_gateway | cba99e1178f5f10064f61dd19e31b8942da4d3e2 | [
"MIT"
] | 9 | 2020-08-07T00:35:16.000Z | 2021-07-20T17:57:49.000Z | app/helpers/messages.py | louolkol/fax_gateway | cba99e1178f5f10064f61dd19e31b8942da4d3e2 | [
"MIT"
] | null | null | null | app/helpers/messages.py | louolkol/fax_gateway | cba99e1178f5f10064f61dd19e31b8942da4d3e2 | [
"MIT"
] | 3 | 2021-01-17T05:41:55.000Z | 2021-04-09T04:21:40.000Z | """
Type-safe Dataclasses representing each kind of message that we send over SQS.
We wrap dataclasses_json's methods with type-safe wrappers:
https://github.com/lidatong/dataclasses-json/issues/23
"""
import time
from dataclasses import dataclass, field
from enum import Enum
from dataclasses_json import dataclass_j... | 21.757576 | 78 | 0.685237 | 190 | 1,436 | 5.026316 | 0.352632 | 0.043979 | 0.087958 | 0.084817 | 0.342408 | 0.342408 | 0.342408 | 0.238743 | 0.238743 | 0.238743 | 0 | 0.002671 | 0.217967 | 1,436 | 65 | 79 | 22.092308 | 0.847729 | 0.190111 | 0 | 0.511628 | 0 | 0 | 0.03913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.139535 | false | 0 | 0.093023 | 0.139535 | 0.790698 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ce9abe5e62c1a7ce72d45916ee45877d781dab44 | 2,239 | py | Python | flask_admin/_backwards.py | gstf/flask-admin | 5f1b2d8813c7aa048862a820d17a6efbeba8c42f | [
"BSD-3-Clause"
] | 3 | 2018-09-20T10:54:05.000Z | 2020-05-11T09:48:12.000Z | flask_admin/_backwards.py | gstf/flask-admin | 5f1b2d8813c7aa048862a820d17a6efbeba8c42f | [
"BSD-3-Clause"
] | 8 | 2021-03-19T14:21:37.000Z | 2022-03-12T00:43:04.000Z | flask_admin/_backwards.py | gstf/flask-admin | 5f1b2d8813c7aa048862a820d17a6efbeba8c42f | [
"BSD-3-Clause"
] | 4 | 2017-05-23T19:36:28.000Z | 2021-08-19T15:41:41.000Z | # -*- coding: utf-8 -*-
"""
flask_admin._backwards
~~~~~~~~~~~~~~~~~~~~~~~~~~
Backward compatibility helpers.
"""
import sys
import warnings
def get_property(obj, name, old_name, default=None):
"""
Check if old property name exists and if it does - show warning message
and return valu... | 26.654762 | 79 | 0.600268 | 270 | 2,239 | 4.811111 | 0.274074 | 0.059276 | 0.049269 | 0.027714 | 0.13241 | 0.13241 | 0.084681 | 0.084681 | 0.084681 | 0.084681 | 0 | 0.001908 | 0.297901 | 2,239 | 83 | 80 | 26.975904 | 0.824427 | 0.192943 | 0 | 0.095238 | 0 | 0 | 0.058201 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.142857 | 0 | 0.595238 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ce9c2f529467b0421385d3d92e88d31a630a5dee | 1,755 | py | Python | src/mesh/azext_mesh/servicefabricmesh/mgmt/servicefabricmesh/models/service_fabric_mesh_management_client_enums.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 207 | 2017-11-29T06:59:41.000Z | 2022-03-31T10:00:53.000Z | src/mesh/azext_mesh/servicefabricmesh/mgmt/servicefabricmesh/models/service_fabric_mesh_management_client_enums.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 4,061 | 2017-10-27T23:19:56.000Z | 2022-03-31T23:18:30.000Z | src/mesh/azext_mesh/servicefabricmesh/mgmt/servicefabricmesh/models/service_fabric_mesh_management_client_enums.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 802 | 2017-10-11T17:36:26.000Z | 2022-03-31T22:24:32.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 18.092784 | 76 | 0.644444 | 163 | 1,755 | 6.852761 | 0.631902 | 0.025067 | 0.032229 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0007 | 0.186325 | 1,755 | 96 | 77 | 18.28125 | 0.781513 | 0.25755 | 0 | 0.093023 | 0 | 0 | 0.186533 | 0.041796 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.023256 | 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 |
cea81111ef1bad8c8d1dcd2de22ceef8dc85a92c | 7,101 | py | Python | dynamicforms/settings.py | KlemenSpruk/DynamicForms | 37066e8deb72a48a1fe241cb3f643bc9845f6ba1 | [
"BSD-3-Clause"
] | null | null | null | dynamicforms/settings.py | KlemenSpruk/DynamicForms | 37066e8deb72a48a1fe241cb3f643bc9845f6ba1 | [
"BSD-3-Clause"
] | null | null | null | dynamicforms/settings.py | KlemenSpruk/DynamicForms | 37066e8deb72a48a1fe241cb3f643bc9845f6ba1 | [
"BSD-3-Clause"
] | null | null | null | from django.conf import settings as s
from django.utils.translation import ugettext_lazy as _
from .struct import Struct
DYNAMICFORMS_BOOTSTRAP = 'dynamicforms/bootstrap/'
DYNAMICFORMS_JQUERY_UI = 'dynamicforms/jquery_ui/'
class Settings(Struct):
# Support for jQueryUI (this will be queried in dynamicforms.js)... | 36.415385 | 120 | 0.654556 | 884 | 7,101 | 5.042986 | 0.229638 | 0.07537 | 0.096904 | 0.054284 | 0.407582 | 0.396366 | 0.379991 | 0.335352 | 0.264693 | 0.195603 | 0 | 0.010195 | 0.226447 | 7,101 | 194 | 121 | 36.603093 | 0.801384 | 0.223349 | 0 | 0.212389 | 0 | 0 | 0.135954 | 0.051442 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088496 | false | 0.00885 | 0.035398 | 0 | 0.575221 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ceacf39233491636917637e4b8772ac55703e3c0 | 1,541 | py | Python | contrib/coco/tests/test_convert.py | changhiskhan/rikai | 6431b27b6d00862e91c165116ec0b0696a1881fc | [
"Apache-2.0"
] | 111 | 2021-01-21T16:04:08.000Z | 2022-03-27T05:45:19.000Z | contrib/coco/tests/test_convert.py | changhiskhan/rikai | 6431b27b6d00862e91c165116ec0b0696a1881fc | [
"Apache-2.0"
] | 388 | 2021-01-10T22:37:38.000Z | 2022-03-31T20:33:40.000Z | contrib/coco/tests/test_convert.py | changhiskhan/rikai | 6431b27b6d00862e91c165116ec0b0696a1881fc | [
"Apache-2.0"
] | 19 | 2021-01-08T03:42:00.000Z | 2022-02-24T11:36:04.000Z | #!/usr/bin/env python3
#
# Copyright 2021 Rikai Authors
#
# 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 applicabl... | 35.837209 | 77 | 0.656067 | 210 | 1,541 | 4.738095 | 0.557143 | 0.060302 | 0.026131 | 0.032161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00954 | 0.251785 | 1,541 | 42 | 78 | 36.690476 | 0.853426 | 0.455548 | 0 | 0 | 0 | 0 | 0.079172 | 0 | 0 | 0 | 0 | 0.02381 | 0.055556 | 1 | 0.055556 | false | 0 | 0.222222 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ceb1b6ba06f9f0ade0e5346a47d06f20c395954e | 798 | py | Python | aliyun/aliyunapi-hotword.py | icmdb/demo | 6612543c4b4e57fea54ddd0f0d963cf3f3a7cb0c | [
"MIT"
] | null | null | null | aliyun/aliyunapi-hotword.py | icmdb/demo | 6612543c4b4e57fea54ddd0f0d963cf3f3a7cb0c | [
"MIT"
] | null | null | null | aliyun/aliyunapi-hotword.py | icmdb/demo | 6612543c4b4e57fea54ddd0f0d963cf3f3a7cb0c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import os
import urllib
import urllib2
import json
AppKey = os.getenv("APP_KEY", "default_develop_key")
AppSecret = os.getenv("APP_SECRET", "default_develop_secret")
appcode = os.getenv("APP_CODE", "default_develop_code")
host = 'http://ali-hotword.showapi.... | 21.567568 | 66 | 0.682957 | 105 | 798 | 5.07619 | 0.571429 | 0.045028 | 0.061914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007396 | 0.152882 | 798 | 36 | 67 | 22.166667 | 0.781065 | 0.109023 | 0 | 0 | 0 | 0 | 0.276596 | 0.031206 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.227273 | 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 |
ceb2bde43395b88ff125c4c1ded4db7366548eb8 | 4,187 | py | Python | data.py | sergi-andreu/MMSL | 1f15095000606733400b1c737906f983eca4f09b | [
"MIT"
] | null | null | null | data.py | sergi-andreu/MMSL | 1f15095000606733400b1c737906f983eca4f09b | [
"MIT"
] | 4 | 2021-09-24T11:47:43.000Z | 2021-09-24T11:48:40.000Z | data.py | sergi-andreu/MMSL | 1f15095000606733400b1c737906f983eca4f09b | [
"MIT"
] | null | null | null | import pandas as pd
import matplotlib.pyplot as plt
class Data:
def __init__(self, path):
self.path = path
self.df = pd.read_csv(path)
self.column_names = list(self.df.columns)
self.labels = self.df["Label"]
self.df.drop(["Label"], axis=1)
self.num_bound_col = [... | 29.076389 | 112 | 0.620253 | 541 | 4,187 | 4.467653 | 0.214418 | 0.089781 | 0.072818 | 0.06206 | 0.330989 | 0.220521 | 0.117915 | 0.048407 | 0.029789 | 0 | 0 | 0.008914 | 0.27657 | 4,187 | 143 | 113 | 29.27972 | 0.789039 | 0.086458 | 0 | 0.1125 | 0 | 0 | 0.046764 | 0.009775 | 0 | 0 | 0 | 0 | 0.025 | 1 | 0.125 | false | 0.1125 | 0.025 | 0.0125 | 0.175 | 0.0125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ceb3a3d562a8c02055ac125e9bed6d45823b6804 | 4,796 | py | Python | entity_history/tests/entity_activation_tests.py | wesleykendall/django-entity-history | 6b17d39aaf0cda302412d40f722020397611869b | [
"MIT"
] | null | null | null | entity_history/tests/entity_activation_tests.py | wesleykendall/django-entity-history | 6b17d39aaf0cda302412d40f722020397611869b | [
"MIT"
] | null | null | null | entity_history/tests/entity_activation_tests.py | wesleykendall/django-entity-history | 6b17d39aaf0cda302412d40f722020397611869b | [
"MIT"
] | null | null | null | from datetime import datetime
from django.test import TestCase
from django_dynamic_fixture import G, N
from entity.models import Entity
from entity_history import EntityActivationEvent
class EntityActivationTriggerTests(TestCase):
"""
Tests that entity activation events are properly created when entities
... | 34.503597 | 79 | 0.627189 | 597 | 4,796 | 4.931323 | 0.154104 | 0.090353 | 0.050951 | 0.085598 | 0.720788 | 0.682065 | 0.67731 | 0.671875 | 0.639266 | 0.58356 | 0 | 0.020112 | 0.253545 | 4,796 | 138 | 80 | 34.753623 | 0.802235 | 0.06839 | 0 | 0.704762 | 0 | 0 | 0.004952 | 0 | 0 | 0 | 0 | 0 | 0.352381 | 1 | 0.066667 | false | 0 | 0.047619 | 0 | 0.12381 | 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 |
ceb9514caab5495053828f0b1835d75bea511552 | 5,919 | py | Python | cabot_alert_mattermost/tests/test_mattermost.py | Affirm/cabot-alert-mattermost | 870c15e2ea6870d162ee6c6f90b9474500711284 | [
"BSD-3-Clause"
] | null | null | null | cabot_alert_mattermost/tests/test_mattermost.py | Affirm/cabot-alert-mattermost | 870c15e2ea6870d162ee6c6f90b9474500711284 | [
"BSD-3-Clause"
] | 4 | 2018-10-10T17:59:21.000Z | 2021-08-30T18:32:40.000Z | cabot_alert_mattermost/tests/test_mattermost.py | Affirm/cabot-alert-mattermost | 870c15e2ea6870d162ee6c6f90b9474500711284 | [
"BSD-3-Clause"
] | 2 | 2019-01-18T17:44:01.000Z | 2019-07-11T07:40:44.000Z | # -*- coding: utf-8 -*-
from cabot.cabotapp.alert import AlertPlugin
from cabot.cabotapp.models_plugins import MatterMostInstance
from cabot.plugin_test_utils import PluginTestCase
from mock import patch, call
from cabot.cabotapp.models import Service, UserProfile
from cabot_alert_mattermost import models
class Test... | 48.121951 | 119 | 0.57307 | 609 | 5,919 | 5.333333 | 0.233169 | 0.041564 | 0.055419 | 0.061576 | 0.491687 | 0.454434 | 0.383929 | 0.370998 | 0.370998 | 0.358374 | 0 | 0.007101 | 0.310019 | 5,919 | 123 | 120 | 48.121951 | 0.787708 | 0.00963 | 0 | 0.262136 | 0 | 0.019417 | 0.270819 | 0.080205 | 0 | 0 | 0 | 0 | 0.106796 | 1 | 0.07767 | false | 0.07767 | 0.058252 | 0 | 0.145631 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cebbc49d580c49d91926d35229251a6e576af744 | 5,000 | py | Python | sdk/anomalydetector/azure-ai-anomalydetector/azure/ai/anomalydetector/aio/_anomaly_detector_client.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2021-09-07T18:39:05.000Z | 2021-09-07T18:39:05.000Z | sdk/anomalydetector/azure-ai-anomalydetector/azure/ai/anomalydetector/aio/_anomaly_detector_client.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | sdk/anomalydetector/azure-ai-anomalydetector/azure/ai/anomalydetector/aio/_anomaly_detector_client.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-03-04T06:21:56.000Z | 2022-03-04T06:21:56.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 56.179775 | 1,227 | 0.7188 | 608 | 5,000 | 5.799342 | 0.412829 | 0.017867 | 0.014748 | 0.009643 | 0.013046 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002447 | 0.1826 | 5,000 | 88 | 1,228 | 56.818182 | 0.860289 | 0.5818 | 0 | 0.097561 | 0 | 0 | 0.047423 | 0.041753 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0 | 0.219512 | 0 | 0.341463 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cec8efb2850e8dc4ac7363e3a8e24236ffc96676 | 766 | py | Python | toucan/alert_api/validators.py | toucan-project/TOUCAN | d562e1191b5ef10480be819ba8c584034c25259b | [
"MIT"
] | 4 | 2019-08-28T14:36:23.000Z | 2019-08-30T09:49:12.000Z | toucan/alert_api/validators.py | toucan-project/TOUCAN | d562e1191b5ef10480be819ba8c584034c25259b | [
"MIT"
] | 2 | 2021-04-20T17:09:30.000Z | 2021-09-23T23:26:22.000Z | toucan/alert_api/validators.py | toucan-project/TOUCAN | d562e1191b5ef10480be819ba8c584034c25259b | [
"MIT"
] | 1 | 2020-01-22T20:01:58.000Z | 2020-01-22T20:01:58.000Z | from string import hexdigits
from magic import from_buffer
from rest_framework.exceptions import ValidationError, NotFound
from alert_api.models import CanaryAlertItem
def hash_valid_validator(hash):
if not all(b in hexdigits for b in hash):
raise ValidationError("Not a valid hash")
def is_existing_c... | 22.529412 | 63 | 0.737598 | 102 | 766 | 5.372549 | 0.509804 | 0.109489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001585 | 0.17624 | 766 | 33 | 64 | 23.212121 | 0.866878 | 0 | 0 | 0 | 0 | 0 | 0.118799 | 0.058747 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cecd66e647fd95e07b8e1574cd17082ee6726cf1 | 212 | py | Python | test.py | pveinante/PROJ2 | 10a14e7f28f8ecbdcdf40aed217b33819e063c48 | [
"bzip2-1.0.6"
] | 1 | 2020-01-29T13:35:30.000Z | 2020-01-29T13:35:30.000Z | test.py | pveinante/PROJ2 | 10a14e7f28f8ecbdcdf40aed217b33819e063c48 | [
"bzip2-1.0.6"
] | null | null | null | test.py | pveinante/PROJ2 | 10a14e7f28f8ecbdcdf40aed217b33819e063c48 | [
"bzip2-1.0.6"
] | null | null | null | import numpy as np
import cv2 as cv
# Load a color image in grayscale
img = cv.imread('./Images/Nolan.jpg',0)
cv.namedWindow('image', cv.WINDOW_NORMAL)
cv.imshow('image',img)
cv.waitKey(0)
cv.destroyAllWindows()
| 23.555556 | 41 | 0.745283 | 36 | 212 | 4.361111 | 0.666667 | 0.063694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.108491 | 212 | 8 | 42 | 26.5 | 0.814815 | 0.146226 | 0 | 0 | 0 | 0 | 0.156425 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ceddbd8db2284768f327ac3b4f6368897586f104 | 2,722 | py | Python | Photo Painter/NN.py | iamharshit/ML_works | b0bb53c5a60312719d15e25b727c54cbab65b4af | [
"MIT"
] | 1 | 2016-11-29T04:28:09.000Z | 2016-11-29T04:28:09.000Z | Photo Painter/NN.py | iamharshit/ML_works | b0bb53c5a60312719d15e25b727c54cbab65b4af | [
"MIT"
] | null | null | null | Photo Painter/NN.py | iamharshit/ML_works | b0bb53c5a60312719d15e25b727c54cbab65b4af | [
"MIT"
] | null | null | null | import tensorflow as tf
import numpy as np
import cv2
img_original = cv2.imread('jack.jpg') #data.camera()
img = cv2.resize(img_original, (64*5,64*5))
# for positions
xs = []
# for corresponding colors
ys = []
for row_i in range(img.shape[0]):
for col_i in range(img.shape[1]):
xs.append([row_i, col_i])
ys.app... | 30.244444 | 78 | 0.629684 | 432 | 2,722 | 3.791667 | 0.3125 | 0.009158 | 0.02442 | 0.014652 | 0.064713 | 0.037851 | 0 | 0 | 0 | 0 | 0 | 0.032505 | 0.231447 | 2,722 | 89 | 79 | 30.58427 | 0.750478 | 0.090742 | 0 | 0 | 0 | 0 | 0.01461 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0c68727e07ce343a0ecfd17c659443a3f7afbe1d | 623 | py | Python | gamefixes/429720.py | jo-oe/protonfixes | 3a9a13e73a1d8ac6629ea0394d40a376a8416abb | [
"BSD-2-Clause"
] | null | null | null | gamefixes/429720.py | jo-oe/protonfixes | 3a9a13e73a1d8ac6629ea0394d40a376a8416abb | [
"BSD-2-Clause"
] | null | null | null | gamefixes/429720.py | jo-oe/protonfixes | 3a9a13e73a1d8ac6629ea0394d40a376a8416abb | [
"BSD-2-Clause"
] | null | null | null | """ Game fix for IMSCARED
"""
#pylint: disable=C0103
from protonfixes import util
import os
import getpass
# IMSCARED relies on a folder on the user's Desktop being accessible
# The problem is that all of the folders in Proton are sandboxed
# So this protonfix works around that
def main():
desktoppath = os.path.... | 25.958333 | 86 | 0.693419 | 84 | 623 | 5.130952 | 0.690476 | 0.041763 | 0.037123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008048 | 0.202247 | 623 | 23 | 87 | 27.086957 | 0.859155 | 0.335474 | 0 | 0 | 0 | 0 | 0.114428 | 0.077114 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.166667 | 0.25 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0c6e20ea5e039577021ec7cf4b3bafc8bdf88942 | 2,684 | py | Python | official/resnet/data/make_data_from_shortlist.py | ysaibhargav/models | d2f85664a93883c6d4508a548e479530d1bb103b | [
"Apache-2.0"
] | 1 | 2019-03-08T18:13:51.000Z | 2019-03-08T18:13:51.000Z | official/resnet/data/make_data_from_shortlist.py | ysaibhargav/models | d2f85664a93883c6d4508a548e479530d1bb103b | [
"Apache-2.0"
] | null | null | null | official/resnet/data/make_data_from_shortlist.py | ysaibhargav/models | d2f85664a93883c6d4508a548e479530d1bb103b | [
"Apache-2.0"
] | null | null | null | import pickle
import json
import os
from shutil import copy2
import numpy as np
VOCAB_PATH = 'ingrs_short_list.txt'
SRC_IMG_PKL_PATH = 'salad1_id_to_img.pkl'
TRAIN_PATH = 'TRAIN2'
VAL_PATH = 'VALIDATION2'
if not os.path.exists(TRAIN_PATH):
os.makedirs(TRAIN_PATH)
if not os.path.exists(VAL_PATH):
os.makedirs(VA... | 35.315789 | 87 | 0.624814 | 415 | 2,684 | 3.768675 | 0.231325 | 0.038363 | 0.031969 | 0.033248 | 0.23913 | 0.17711 | 0.143862 | 0.110614 | 0.09335 | 0.09335 | 0 | 0.009514 | 0.255961 | 2,684 | 75 | 88 | 35.786667 | 0.77366 | 0.008197 | 0 | 0.119403 | 0 | 0 | 0.05566 | 0 | 0 | 0 | 0 | 0.013333 | 0.029851 | 1 | 0 | false | 0 | 0.074627 | 0 | 0.074627 | 0.014925 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
0c73354a671745fd48d9c3c08344e3c2a374ce87 | 5,792 | py | Python | Classes/BHCurveMat.py | PMSMcqut/pyleecan-of-manatee | 3efa06e8bc53c81a3e35457c108290e1d9ec1373 | [
"Apache-2.0"
] | 2 | 2020-06-29T13:48:37.000Z | 2021-06-15T07:34:05.000Z | Classes/BHCurveMat.py | PMSMcqut/pyleecan-of-manatee | 3efa06e8bc53c81a3e35457c108290e1d9ec1373 | [
"Apache-2.0"
] | null | null | null | Classes/BHCurveMat.py | PMSMcqut/pyleecan-of-manatee | 3efa06e8bc53c81a3e35457c108290e1d9ec1373 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""Warning : this file has been generated, you shouldn't edit it"""
from os import linesep
from pyleecan.Classes.check import set_array, check_init_dict, check_var
from pyleecan.Functions.save import save
from pyleecan.Classes.BHCurve import BHCurve
from pyleecan.Methods.Material.BHCurveMat.co... | 32.723164 | 90 | 0.584599 | 756 | 5,792 | 4.321429 | 0.198413 | 0.031833 | 0.029079 | 0.031833 | 0.272115 | 0.191919 | 0.177839 | 0.149679 | 0.114784 | 0.114784 | 0 | 0.001523 | 0.319751 | 5,792 | 176 | 91 | 32.909091 | 0.827665 | 0.295062 | 0 | 0.219048 | 1 | 0 | 0.064369 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104762 | false | 0.028571 | 0.066667 | 0 | 0.342857 | 0 | 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 |
0c7447ae8d1b1c9984dd3ef47976b1028046fa4b | 1,567 | py | Python | tools/cmd_helpers.py | ragmani/mengde | b6dad8e0e717a7fac1292b9595bdd6a67e9b4751 | [
"MIT"
] | 24 | 2018-03-02T03:37:09.000Z | 2021-08-18T02:34:23.000Z | tools/cmd_helpers.py | ragmani/mengde | b6dad8e0e717a7fac1292b9595bdd6a67e9b4751 | [
"MIT"
] | 99 | 2018-03-04T06:50:14.000Z | 2019-08-25T09:02:20.000Z | tools/cmd_helpers.py | ragmani/mengde | b6dad8e0e717a7fac1292b9595bdd6a67e9b4751 | [
"MIT"
] | 9 | 2018-03-02T03:36:55.000Z | 2019-02-27T07:11:28.000Z | import os
import sys
import subprocess
import platform
import urllib2
import shutil
def wrap_gen(color):
return lambda s: color + s + "\033[0m"
wrap_red = wrap_gen("\033[1;31m")
wrap_yellow = wrap_gen("\033[1;33m")
wrap_green = wrap_gen("\033[1;32m")
wrap_blue = wrap_gen("\033[1;34m")
def cmd_to_string(cmd... | 23.742424 | 90 | 0.632419 | 224 | 1,567 | 4.285714 | 0.366071 | 0.094792 | 0.0625 | 0.045833 | 0.108333 | 0.089583 | 0 | 0 | 0 | 0 | 0 | 0.028053 | 0.226548 | 1,567 | 65 | 91 | 24.107692 | 0.764026 | 0.019783 | 0 | 0.117647 | 0 | 0 | 0.063275 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0.235294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0c76e15800e3c9d977f7782ca1cd8d2e9e6c8d88 | 494 | py | Python | python/testData/inspections/PyPropertyAccessInspection/overrideAssignment.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/inspections/PyPropertyAccessInspection/overrideAssignment.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/inspections/PyPropertyAccessInspection/overrideAssignment.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | def test_property_override_assignment():
class B(object):
@property
def foo(self):
return 0
@property
def bar(self):
return -1
@property
def baz(self):
return -2
class C(B):
foo = 'foo'
def baz(self):
... | 19.76 | 80 | 0.463563 | 57 | 494 | 3.964912 | 0.421053 | 0.176991 | 0.088496 | 0.141593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010714 | 0.433198 | 494 | 24 | 81 | 20.583333 | 0.796429 | 0 | 0 | 0.263158 | 0 | 0 | 0.068826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0c7c11eca15725494d453e47fae8a233744c51b6 | 528 | py | Python | commands/debug.py | Heufneutje/DideRobot | acbb608d5c73cef8739d9dd3149d781afc75acae | [
"MIT"
] | null | null | null | commands/debug.py | Heufneutje/DideRobot | acbb608d5c73cef8739d9dd3149d781afc75acae | [
"MIT"
] | null | null | null | commands/debug.py | Heufneutje/DideRobot | acbb608d5c73cef8739d9dd3149d781afc75acae | [
"MIT"
] | null | null | null | from CommandTemplate import CommandTemplate
import GlobalStore
from IrcMessage import IrcMessage
class Command(CommandTemplate):
triggers = ['debug']
helptext = "Used in debugging. Only really useful to my owner"
showInCommandList = False
adminOnly = True
def execute(self, message):
"""
:type message: IrcMe... | 29.333333 | 82 | 0.774621 | 57 | 528 | 7.175439 | 0.736842 | 0.102689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142045 | 528 | 18 | 83 | 29.333333 | 0.90287 | 0 | 0 | 0 | 0 | 0 | 0.168699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0c83ae7d95c19fac4f4b12a95eb2b60dade231b3 | 291 | py | Python | 22.Printing stars in 'P' shape.py | Kushal997-das/Pattern_Printing | 313c7984209e54df8751a06143d0b10e0cd4b2be | [
"Apache-2.0"
] | 27 | 2020-10-16T03:55:24.000Z | 2022-02-02T13:47:06.000Z | 22.Printing stars in 'P' shape.py | https-github-com-Kushal997-das/Pattern_Printing | 313c7984209e54df8751a06143d0b10e0cd4b2be | [
"Apache-2.0"
] | null | null | null | 22.Printing stars in 'P' shape.py | https-github-com-Kushal997-das/Pattern_Printing | 313c7984209e54df8751a06143d0b10e0cd4b2be | [
"Apache-2.0"
] | 2 | 2020-11-27T04:51:29.000Z | 2021-06-04T03:34:37.000Z | #Printing stars in P shape!
'''
****
* *
* *
****
*
*
'''
for row in range(6):
for col in range(6):
if col==0 or (col==5 and (row==1 or row==2)) or (row==0 or row==3)and(col>0 and col<4):
print('*', end='')
else:
print(end=' ')
print() | 17.117647 | 96 | 0.429553 | 45 | 291 | 2.777778 | 0.488889 | 0.12 | 0.128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051813 | 0.33677 | 291 | 17 | 97 | 17.117647 | 0.595855 | 0.185567 | 0 | 0 | 0 | 0 | 0.008734 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
0c842c53ff8eb364cb9ad7f3b8b7273aa0f14faf | 5,941 | py | Python | calctop.py | amritan1707/scripts-1 | 4696ee361b06e68bf4c9f5683877147b2e2e8176 | [
"BSD-3-Clause"
] | null | null | null | calctop.py | amritan1707/scripts-1 | 4696ee361b06e68bf4c9f5683877147b2e2e8176 | [
"BSD-3-Clause"
] | null | null | null | calctop.py | amritan1707/scripts-1 | 4696ee361b06e68bf4c9f5683877147b2e2e8176 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import numpy as np
import os, sys
import os.path
sys.path.append("/home/dkoes/git/gninascripts/")
sys.path.append("/net/pulsar/home/koes/dkoes/git/gninascripts/")
import train, predict
import matplotlib, caffe
import matplotlib.pyplot as plt
import glob, re, sklearn, collections, argparse, sys
i... | 36.22561 | 136 | 0.594681 | 745 | 5,941 | 4.65906 | 0.279195 | 0.020743 | 0.039182 | 0.044656 | 0.137424 | 0.087007 | 0.053587 | 0.035148 | 0 | 0 | 0 | 0.009095 | 0.278236 | 5,941 | 163 | 137 | 36.447853 | 0.800373 | 0.058576 | 0 | 0.101563 | 0 | 0.007813 | 0.148763 | 0.022654 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.070313 | null | null | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0c84a0bf71ca77126816df64653f033ee0995cd6 | 1,312 | py | Python | stubs/sql_model_reflection_template.py | jrhunter3/Basic_Dockerized_PoW | af0f80f7373ed0a3878aadcb79ff54c37dbf3fa6 | [
"MIT"
] | 24 | 2015-08-06T07:32:00.000Z | 2022-03-24T22:05:01.000Z | stubs/sql_model_reflection_template.py | jrhunter3/Basic_Dockerized_PoW | af0f80f7373ed0a3878aadcb79ff54c37dbf3fa6 | [
"MIT"
] | 37 | 2017-04-14T19:16:40.000Z | 2021-08-17T21:05:51.000Z | stubs/sql_model_reflection_template.py | jrhunter3/Basic_Dockerized_PoW | af0f80f7373ed0a3878aadcb79ff54c37dbf3fa6 | [
"MIT"
] | 2 | 2016-05-25T08:29:32.000Z | 2020-11-21T10:44:31.000Z | #
# Model Uidtest
#
from sqlalchemy import Column, Integer, String, Boolean, Sequence
from sqlalchemy import BigInteger, Date, DateTime, Float, Numeric, Unicode, Text
from sqlalchemy import PrimaryKeyConstraint, Table
from {{appname}}.lib.powlib import relation
from {{appname}}.database.sqldblib import Base, engine
fro... | 30.511628 | 120 | 0.685213 | 162 | 1,312 | 5.358025 | 0.617284 | 0.048387 | 0.069124 | 0.046083 | 0.059908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223323 | 1,312 | 42 | 121 | 31.238095 | 0.851816 | 0.325457 | 0 | 0 | 0 | 0 | 0.048387 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.3 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0c88c130bd077768d1d57a36626f202fb5735e29 | 391 | py | Python | tests/test_opencpu.py | thoconne/viime | b9d9623daeb345f479903cb84ff46d9e87e433da | [
"Apache-2.0"
] | null | null | null | tests/test_opencpu.py | thoconne/viime | b9d9623daeb345f479903cb84ff46d9e87e433da | [
"Apache-2.0"
] | null | null | null | tests/test_opencpu.py | thoconne/viime | b9d9623daeb345f479903cb84ff46d9e87e433da | [
"Apache-2.0"
] | null | null | null | import numpy as np
import pandas
from pandas.testing import assert_frame_equal
from viime.opencpu import opencpu_request
def test_echo(app):
df = pandas.DataFrame(np.random.randint(0, 100, size=(10, 4)), columns=list('ABCD'))
with app.app_context():
out = opencpu_request('echo', {
'table... | 24.4375 | 88 | 0.664962 | 55 | 391 | 4.563636 | 0.654545 | 0.087649 | 0.12749 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022654 | 0.209719 | 391 | 15 | 89 | 26.066667 | 0.789644 | 0 | 0 | 0 | 0 | 0 | 0.033248 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0c8f73e4e0bbc7a7bcf7ef7a68864c78c504e567 | 942 | py | Python | Chapter 03/majority.py | bpbpublications/Python-Quick-Interview-Guide | ab4ff3e670b116a4db6b9e1f0ccba8424640704d | [
"MIT"
] | 1 | 2021-05-14T19:53:41.000Z | 2021-05-14T19:53:41.000Z | Chapter 03/majority.py | bpbpublications/Python-Quick-Interview-Guide | ab4ff3e670b116a4db6b9e1f0ccba8424640704d | [
"MIT"
] | null | null | null | Chapter 03/majority.py | bpbpublications/Python-Quick-Interview-Guide | ab4ff3e670b116a4db6b9e1f0ccba8424640704d | [
"MIT"
] | null | null | null | '''
import collections
class Solution:
def majorityElement(self, nums):
counts = collections.Counter(nums)
return max(counts.keys(), key=counts.get)
class Solution:
def majorityElement(self, nums):
counts = {}
for items in nums:
counts[items] = nums.coun... | 29.4375 | 51 | 0.546709 | 109 | 942 | 4.724771 | 0.256881 | 0.116505 | 0.124272 | 0.240777 | 0.650485 | 0.650485 | 0.650485 | 0.563107 | 0.499029 | 0.499029 | 0 | 0.019017 | 0.330149 | 942 | 32 | 52 | 29.4375 | 0.797147 | 0.676221 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.375 | 0.125 | 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 |
0c946ba92ce9cf55ddc9be230db85f6fddd28141 | 3,354 | py | Python | Predict_Sales_Revenue/bin/code_Python_and_R/Phase_1_Sales_Marketing_Predict_Revenue_EDA.py | ThiagoBarsante/DataScience_projects | bf7e0110a905b3bf829fddcba3a2dfb3900df8a2 | [
"MIT"
] | null | null | null | Predict_Sales_Revenue/bin/code_Python_and_R/Phase_1_Sales_Marketing_Predict_Revenue_EDA.py | ThiagoBarsante/DataScience_projects | bf7e0110a905b3bf829fddcba3a2dfb3900df8a2 | [
"MIT"
] | null | null | null | Predict_Sales_Revenue/bin/code_Python_and_R/Phase_1_Sales_Marketing_Predict_Revenue_EDA.py | ThiagoBarsante/DataScience_projects | bf7e0110a905b3bf829fddcba3a2dfb3900df8a2 | [
"MIT"
] | null | null | null |
# coding: utf-8
# ## Phase 1 - Exploratory data analysis (EDA) + Feature importance with Random Forest
#
# #### BUSINESS REQUIREMENT detailed in phase 0
#
# ** The public dataset proviced by IBM will present revenue information related to some products and countries for specific years (2004 to 2007)
#
# #### The B... | 22.211921 | 145 | 0.711389 | 473 | 3,354 | 4.951374 | 0.435518 | 0.01281 | 0.010248 | 0.014091 | 0.0538 | 0.025619 | 0.025619 | 0 | 0 | 0 | 0 | 0.01755 | 0.167561 | 3,354 | 150 | 146 | 22.36 | 0.821275 | 0.502683 | 0 | 0.064516 | 0 | 0 | 0.202564 | 0.045513 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.322581 | 0 | 0.322581 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0c9e24df84e25fc06a00df1ce328d4f411f0877b | 1,492 | py | Python | gryphon/core/add.py | vittorfp/labskit_cli | 28e109b4a9f36a03d499eb953e04a4fb787632fe | [
"MIT"
] | null | null | null | gryphon/core/add.py | vittorfp/labskit_cli | 28e109b4a9f36a03d499eb953e04a4fb787632fe | [
"MIT"
] | null | null | null | gryphon/core/add.py | vittorfp/labskit_cli | 28e109b4a9f36a03d499eb953e04a4fb787632fe | [
"MIT"
] | null | null | null | """
Module containing the code for the add command in then CLI.
"""
import json
import logging
from .common_operations import (
install_libraries_venv, append_requirement,
rollback_append_requirement, install_libraries_conda, log_add_library
)
from .settings import SettingsManager
from ..constants import VENV, ... | 33.909091 | 111 | 0.684316 | 189 | 1,492 | 5.232804 | 0.52381 | 0.064712 | 0.040445 | 0.056623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000876 | 0.235255 | 1,492 | 43 | 112 | 34.697674 | 0.865907 | 0.189008 | 0 | 0.068966 | 0 | 0 | 0.188186 | 0.018565 | 0 | 0 | 0 | 0.023256 | 0 | 1 | 0.034483 | false | 0 | 0.172414 | 0 | 0.206897 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
0c9e705de7877b701a987d53525c573e19df0943 | 1,018 | py | Python | core/migrations/0001_initial.py | v-adhithyan/india-elections | 504772bd90bffaab32bad473523731021315afd1 | [
"MIT"
] | 7 | 2018-09-14T06:42:36.000Z | 2019-06-14T03:46:14.000Z | core/migrations/0001_initial.py | v-adhithyan/india-elections | 504772bd90bffaab32bad473523731021315afd1 | [
"MIT"
] | 40 | 2019-01-01T01:56:20.000Z | 2022-03-11T23:40:57.000Z | core/migrations/0001_initial.py | v-adhithyan/india-elections | 504772bd90bffaab32bad473523731021315afd1 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.4 on 2019-01-13 04:10
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='TweetStats',
fields=[
('id', models.AutoFie... | 30.848485 | 114 | 0.55501 | 98 | 1,018 | 5.622449 | 0.571429 | 0.08167 | 0.098004 | 0.130672 | 0.377495 | 0.377495 | 0.377495 | 0.377495 | 0.377495 | 0.377495 | 0 | 0.032764 | 0.310413 | 1,018 | 32 | 115 | 31.8125 | 0.752137 | 0.044204 | 0 | 0.4 | 1 | 0 | 0.067971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ca00cfe7253209fe7882743c11b0b555b81e216 | 4,361 | py | Python | osas/io_utils/config.py | adobe/OSAS | 99d1356aca5c47218d8d72b363ab583c1ea931d9 | [
"ECL-2.0",
"Apache-2.0"
] | 149 | 2021-04-23T12:06:17.000Z | 2022-03-29T13:40:41.000Z | osas/io_utils/config.py | adobe/OSAS | 99d1356aca5c47218d8d72b363ab583c1ea931d9 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2021-07-20T08:36:52.000Z | 2022-03-23T13:42:51.000Z | osas/io_utils/config.py | adobe/OSAS | 99d1356aca5c47218d8d72b363ab583c1ea931d9 | [
"ECL-2.0",
"Apache-2.0"
] | 16 | 2021-04-27T17:25:22.000Z | 2022-03-24T18:29:55.000Z | #
# Authors: Security Intelligence Team within the Security Coordination Center
#
# Copyright (c) 2018 Adobe Systems Incorporated. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the Li... | 30.711268 | 79 | 0.667278 | 543 | 4,361 | 5.19337 | 0.399632 | 0.085106 | 0.042553 | 0.03617 | 0.158156 | 0.158156 | 0.120567 | 0.094326 | 0.040426 | 0.040426 | 0 | 0.007452 | 0.230681 | 4,361 | 141 | 80 | 30.929078 | 0.833085 | 0.28709 | 0 | 0.2375 | 0 | 0 | 0.048086 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0375 | false | 0 | 0.0875 | 0 | 0.5375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0ca3bfc92ecca30a639f337ecff74f73fb96d108 | 25,489 | py | Python | addon.py | tingjhenjiang/plugin.video.hamivideo | 19b992170a84bfb9b105e43ea85bbf229ba74afc | [
"Apache-2.0"
] | null | null | null | addon.py | tingjhenjiang/plugin.video.hamivideo | 19b992170a84bfb9b105e43ea85bbf229ba74afc | [
"Apache-2.0"
] | null | null | null | addon.py | tingjhenjiang/plugin.video.hamivideo | 19b992170a84bfb9b105e43ea85bbf229ba74afc | [
"Apache-2.0"
] | null | null | null | import re, socket, json, sys, six
from xbmcswift2 import Plugin, xbmc, xbmcaddon, xbmcgui, xbmcplugin
from resources.lib.hamivideo.api import Hamivideo
import base64, time, os
try:
from multiprocessing.dummy import Pool as ThreadPool
threadpool_imported = True
except:
threadpool_imported = False
#import web_pdb
so... | 38.6783 | 225 | 0.661501 | 3,140 | 25,489 | 5.239809 | 0.186943 | 0.020665 | 0.022124 | 0.027229 | 0.447639 | 0.394092 | 0.327114 | 0.282927 | 0.264633 | 0.242874 | 0 | 0.033061 | 0.15391 | 25,489 | 659 | 226 | 38.6783 | 0.729806 | 0.1718 | 0 | 0.383538 | 0 | 0.024518 | 0.314732 | 0.03733 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003503 | 0.017513 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ca43458bdae168cf87844847791ac42670d25d3 | 265 | py | Python | walmart/__init__.py | dreygur/Walmart-Wrapper | 3771d2287cb1cc11ca8c263e6dcc015f6098df90 | [
"MIT"
] | 1 | 2021-09-20T06:12:34.000Z | 2021-09-20T06:12:34.000Z | walmart/__init__.py | rafsanbillah/Walmart-Wrapper | f43f4fcd4881d99113d6b3e3751ccd62efc85c7a | [
"MIT"
] | null | null | null | walmart/__init__.py | rafsanbillah/Walmart-Wrapper | f43f4fcd4881d99113d6b3e3751ccd62efc85c7a | [
"MIT"
] | 1 | 2021-09-04T15:43:40.000Z | 2021-09-04T15:43:40.000Z | #!/usr/bin/env python
# IMPORTS
from walmart.base import Walmart
from walmart.exceptions import WalmartAuthenticationError
# EXPORTS
__version__ = '0.0.1'
__author__ = 'Rafsan Billah <rafsanbillah@gmail.com>'
__all__ = [
Walmart,
WalmartAuthenticationError
]
| 18.928571 | 57 | 0.777358 | 29 | 265 | 6.689655 | 0.758621 | 0.113402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 0.128302 | 265 | 13 | 58 | 20.384615 | 0.82684 | 0.135849 | 0 | 0 | 0 | 0 | 0.190265 | 0.106195 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ca720196f961fbfd6dab1a617c632d9f9b0f05c | 6,510 | py | Python | src/pyws/server.py | stepank/pyws | ff39133aabeb56bbb08d66286ac0cc8731eda7dd | [
"MIT"
] | 11 | 2015-01-19T15:43:46.000Z | 2022-03-13T08:23:01.000Z | src/pyws/server.py | stepank/pyws | ff39133aabeb56bbb08d66286ac0cc8731eda7dd | [
"MIT"
] | 1 | 2015-01-21T07:31:35.000Z | 2015-02-08T17:52:35.000Z | src/pyws/server.py | stepank/pyws | ff39133aabeb56bbb08d66286ac0cc8731eda7dd | [
"MIT"
] | 11 | 2015-01-19T15:43:49.000Z | 2022-03-04T10:11:24.000Z | from __future__ import with_statement
import logging
import traceback
from pyws.errors import Error, BadProtocol, FunctionNotFound, ProtocolError, \
ProtocolNotFound, ET_CLIENT, ET_SERVER, ServerAlreadyRegistered, \
ConfigurationError, NoProtocolsRegistered, DefaultServerAlreadyRegistered
from pyws.functions.... | 30.56338 | 78 | 0.613671 | 671 | 6,510 | 5.800298 | 0.187779 | 0.049332 | 0.015416 | 0.028777 | 0.080421 | 0.052929 | 0.020555 | 0 | 0 | 0 | 0 | 0.001545 | 0.30384 | 6,510 | 212 | 79 | 30.707547 | 0.857237 | 0.013364 | 0 | 0.121019 | 0 | 0 | 0.021657 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006369 | 0.057325 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0cabeb25789bbfcf3dde6c68b61cd68b6f75f3a1 | 1,217 | py | Python | web/views/class_list.py | jy-cw/PerfectCRM | a8fde5a78a7bb2eea3ecbc07360228839f92ad3e | [
"MIT"
] | null | null | null | web/views/class_list.py | jy-cw/PerfectCRM | a8fde5a78a7bb2eea3ecbc07360228839f92ad3e | [
"MIT"
] | null | null | null | web/views/class_list.py | jy-cw/PerfectCRM | a8fde5a78a7bb2eea3ecbc07360228839f92ad3e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from django.utils.safestring import mark_safe
from django.urls import reverse
from stark.service.stark import ModelStark
from stark.forms.widgets import DateTimePickerInput
from web import models
from django.forms import ModelForm
from stark.service.stark import get_datetim... | 25.893617 | 78 | 0.643385 | 134 | 1,217 | 5.664179 | 0.492537 | 0.068511 | 0.042161 | 0.055336 | 0.189723 | 0.118577 | 0.118577 | 0.118577 | 0.118577 | 0.118577 | 0 | 0.001101 | 0.253903 | 1,217 | 46 | 79 | 26.456522 | 0.834802 | 0.033689 | 0 | 0.057143 | 0 | 0 | 0.095482 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.2 | 0 | 0.514286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0cac56b528e167a2ed6caada5ad04c8b3e6515d9 | 1,993 | py | Python | boucanpy/cli/api/api_user_create.py | bbhunter/boucanpy | 7d2fb105e7b1e90653a511534fb878bb62d02f17 | [
"MIT"
] | 34 | 2019-11-16T17:22:15.000Z | 2022-02-11T23:12:46.000Z | boucanpy/cli/api/api_user_create.py | bbhunter/boucanpy | 7d2fb105e7b1e90653a511534fb878bb62d02f17 | [
"MIT"
] | 1 | 2021-02-09T09:34:55.000Z | 2021-02-10T21:46:20.000Z | boucanpy/cli/api/api_user_create.py | bbhunter/boucanpy | 7d2fb105e7b1e90653a511534fb878bb62d02f17 | [
"MIT"
] | 9 | 2019-11-18T22:18:07.000Z | 2021-02-08T13:23:51.000Z | import requests
from boucanpy.cli.base import BaseCommand
class ApiUserCreate(BaseCommand):
name = "api-user-create"
aliases = ["api-user"]
description = "create user via API"
path = "/api/v1/user"
@classmethod
def parser(cls, parser):
parser.add_argument(
"-a",
... | 26.932432 | 85 | 0.509282 | 200 | 1,993 | 4.97 | 0.39 | 0.070423 | 0.06841 | 0.054326 | 0.086519 | 0.086519 | 0.086519 | 0.086519 | 0 | 0 | 0 | 0.008627 | 0.360261 | 1,993 | 73 | 86 | 27.30137 | 0.77098 | 0.01154 | 0 | 0.215385 | 0 | 0 | 0.194614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061538 | false | 0.123077 | 0.030769 | 0.030769 | 0.230769 | 0.030769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0cb710feae83602dd9231e63ec39f8f58da9e1dd | 574 | py | Python | deep_compression/utils/metrics.py | YodaEmbedding/deep-compression | cc1ea691921fbe2e5cffeb30a02b777dadd08700 | [
"MIT"
] | null | null | null | deep_compression/utils/metrics.py | YodaEmbedding/deep-compression | cc1ea691921fbe2e5cffeb30a02b777dadd08700 | [
"MIT"
] | null | null | null | deep_compression/utils/metrics.py | YodaEmbedding/deep-compression | cc1ea691921fbe2e5cffeb30a02b777dadd08700 | [
"MIT"
] | null | null | null | import math
import torch
import torch.nn.functional as F
from pytorch_msssim import ms_ssim
def compute_metrics(x: torch.Tensor, x_hat: torch.Tensor, metrics: list[str]):
return {metric: _METRICS[metric](x, x_hat) for metric in metrics}
def psnr(a: torch.Tensor, b: torch.Tensor) -> float:
mse = F.mse_loss(... | 21.259259 | 78 | 0.66899 | 91 | 574 | 4.098901 | 0.406593 | 0.176944 | 0.064343 | 0.069705 | 0.155496 | 0.155496 | 0.155496 | 0 | 0 | 0 | 0 | 0.012821 | 0.184669 | 574 | 26 | 79 | 22.076923 | 0.784188 | 0 | 0 | 0 | 0 | 0 | 0.041812 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.235294 | 0.117647 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
0cb870776f817960d953559d5efb5ca6b1a81533 | 624 | py | Python | src/exabgp/bgp/message/update/attribute/bgpls/link/admingroup.py | pierky/exabgp | 34be537ae5906c0830b31da1152ae63108ccf911 | [
"BSD-3-Clause"
] | 1,560 | 2015-01-01T08:53:05.000Z | 2022-03-29T20:22:43.000Z | src/exabgp/bgp/message/update/attribute/bgpls/link/admingroup.py | pierky/exabgp | 34be537ae5906c0830b31da1152ae63108ccf911 | [
"BSD-3-Clause"
] | 818 | 2015-01-01T17:38:40.000Z | 2022-03-30T07:29:24.000Z | src/exabgp/bgp/message/update/attribute/bgpls/link/admingroup.py | pierky/exabgp | 34be537ae5906c0830b31da1152ae63108ccf911 | [
"BSD-3-Clause"
] | 439 | 2015-01-06T21:20:41.000Z | 2022-03-19T23:24:25.000Z | # encoding: utf-8
"""
admingroup.py
Created by Evelio Vila on 2016-12-01.
Copyright (c) 2014-2017 Exa Networks. All rights reserved.
"""
from struct import unpack
from exabgp.bgp.message.notification import Notify
from exabgp.bgp.message.update.attribute.bgpls.linkstate import LinkState
from exabgp.bgp.message.updat... | 23.111111 | 73 | 0.711538 | 86 | 624 | 5.162791 | 0.651163 | 0.067568 | 0.087838 | 0.135135 | 0.247748 | 0.247748 | 0.247748 | 0.247748 | 0.247748 | 0 | 0 | 0.046512 | 0.173077 | 624 | 26 | 74 | 24 | 0.813953 | 0.205128 | 0 | 0 | 0 | 0 | 0.069672 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.285714 | 0 | 0.785714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0cbd1c8b24e52127a24d3a4d543d0e4f3f61910f | 6,932 | py | Python | install.py | piwaniuk/critic | 28ed20bb8032d7cc5aa23de98da51e619fd84164 | [
"Apache-2.0"
] | 216 | 2015-01-05T12:48:10.000Z | 2022-03-08T00:12:23.000Z | install.py | piwaniuk/critic | 28ed20bb8032d7cc5aa23de98da51e619fd84164 | [
"Apache-2.0"
] | 55 | 2015-02-28T12:10:26.000Z | 2020-11-18T17:45:16.000Z | install.py | piwaniuk/critic | 28ed20bb8032d7cc5aa23de98da51e619fd84164 | [
"Apache-2.0"
] | 34 | 2015-05-02T15:15:10.000Z | 2020-06-15T19:20:37.000Z | # -*- mode: python; encoding: utf-8 -*-
#
# Copyright 2012 Jens Lindström, Opera Software ASA
#
# 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... | 33.326923 | 115 | 0.670802 | 909 | 6,932 | 5.048405 | 0.312431 | 0.01569 | 0.029636 | 0.032033 | 0.288734 | 0.222271 | 0.122249 | 0.097625 | 0.088472 | 0.037045 | 0 | 0.005255 | 0.231391 | 6,932 | 207 | 116 | 33.487923 | 0.856044 | 0.187248 | 0 | 0.422535 | 0 | 0 | 0.345283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.014085 | 0.056338 | null | null | 0.169014 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0cbefdf668c4f5b8214a0de6a3dc11718ee81c33 | 2,071 | py | Python | config/regulations-site/local_settings.py | cgodwin1/cmcs-eregulations | 9c506d8ce5ea33fdf5216102b39978cb2d5d5513 | [
"CC0-1.0"
] | null | null | null | config/regulations-site/local_settings.py | cgodwin1/cmcs-eregulations | 9c506d8ce5ea33fdf5216102b39978cb2d5d5513 | [
"CC0-1.0"
] | null | null | null | config/regulations-site/local_settings.py | cgodwin1/cmcs-eregulations | 9c506d8ce5ea33fdf5216102b39978cb2d5d5513 | [
"CC0-1.0"
] | null | null | null | import os
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
INSTALLED_APPS = (
'django.contrib.staticfiles',
'regulations.apps.RegulationsConfig',
)
ROOT_URLCONF = 'regulations.urls'
DATABASES = {}
MIDDLEWARE_CLASSES = (
'django.middleware.security.SecurityMiddleware',
'django.middleware.cache.... | 33.403226 | 78 | 0.648962 | 194 | 2,071 | 6.762887 | 0.43299 | 0.096037 | 0.096037 | 0.141768 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001249 | 0.226944 | 2,071 | 61 | 79 | 33.95082 | 0.818239 | 0.057943 | 0 | 0.040816 | 0 | 0 | 0.538264 | 0.465845 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.020408 | 0 | 0.020408 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0cd5bc275479677adc05787637c2272d588322e9 | 695 | py | Python | LucasNinoEjercicios/leer achivo llamado archivo.py | zehemz/clases-python-101 | 633cb5f0cbc85e64e242514f0394754a5bed0513 | [
"Apache-2.0"
] | null | null | null | LucasNinoEjercicios/leer achivo llamado archivo.py | zehemz/clases-python-101 | 633cb5f0cbc85e64e242514f0394754a5bed0513 | [
"Apache-2.0"
] | null | null | null | LucasNinoEjercicios/leer achivo llamado archivo.py | zehemz/clases-python-101 | 633cb5f0cbc85e64e242514f0394754a5bed0513 | [
"Apache-2.0"
] | null | null | null | #a=0
#lista = []
#lista_2 = []
#while True :
#entrada = raw_input()
#lista.append(entrada)
#lista_2.append(entrada)
#print lista
#print "mi nombre es " + lista_2 [a]
#a+=1
#-------------------------------archivo---------------
#archivo = open("nuevo.txt","r")
#contenido = archivo.readline()
#prin... | 21.060606 | 54 | 0.492086 | 78 | 695 | 4.282051 | 0.525641 | 0.053892 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012324 | 0.182734 | 695 | 32 | 55 | 21.71875 | 0.575704 | 0.671942 | 0 | 0 | 0 | 0 | 0.129187 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0cd8b9437cf4d53a7b4a83722ac1f8ce10104a37 | 2,616 | py | Python | blogging/admin.py | jibaku/blogging | 6d534654152376d77fc1dc9fe8b2e8be2bbf76bf | [
"BSD-3-Clause"
] | 1 | 2015-07-10T07:36:50.000Z | 2015-07-10T07:36:50.000Z | blogging/admin.py | jibaku/blogging | 6d534654152376d77fc1dc9fe8b2e8be2bbf76bf | [
"BSD-3-Clause"
] | 4 | 2017-02-13T15:38:21.000Z | 2017-09-21T11:34:04.000Z | blogging/admin.py | jibaku/blogging | 6d534654152376d77fc1dc9fe8b2e8be2bbf76bf | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from collections import OrderedDict
from django.contrib import admin
from blogging.actions import (make_draft, make_post_type_action,
make_published, make_selected, update_counters)
from blogging.models import Category, Picture, Post
from blogging.settings import ... | 34.88 | 101 | 0.64526 | 289 | 2,616 | 5.584775 | 0.370242 | 0.027881 | 0.032218 | 0.048327 | 0.195787 | 0.195787 | 0.074349 | 0.074349 | 0.074349 | 0.074349 | 0 | 0.00049 | 0.220183 | 2,616 | 74 | 102 | 35.351351 | 0.790686 | 0.044725 | 0 | 0.125 | 0 | 0 | 0.171058 | 0.010539 | 0 | 0 | 0 | 0.013514 | 0 | 1 | 0.071429 | false | 0 | 0.089286 | 0.017857 | 0.553571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.