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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
472ab203d796d10c92444208e7f0bceb23d35699 | 7,417 | py | Python | gcn/etc/dbconfig.py | kalon33/divine | 2db92c093d98722f011224140e652c162a4f4336 | [
"Intel"
] | 11 | 2018-11-09T15:47:14.000Z | 2021-08-18T18:05:11.000Z | gcn/etc/dbconfig.py | kalon33/divine | 2db92c093d98722f011224140e652c162a4f4336 | [
"Intel"
] | 5 | 2018-08-31T15:07:20.000Z | 2020-03-30T18:52:04.000Z | gcn/etc/dbconfig.py | kalon33/divine | 2db92c093d98722f011224140e652c162a4f4336 | [
"Intel"
] | 1 | 2019-04-18T13:42:30.000Z | 2019-04-18T13:42:30.000Z | #
# COPYRIGHT (C) 2002-2011 Rajgopal Srinivasan
#
"""
.. module:: dbconfig
:platform: Unix, Windows, MacOSX
:synopsis: Configuration for Database connections
.. moduleauthor:: Rajgopal Srinivasan (rajgopal.srinivasan@tcs.com); modified by changjin.hong@gmail.com
The module defines a dictionary *DBCONFIG* that... | 31.969828 | 104 | 0.466226 | 703 | 7,417 | 4.870555 | 0.229018 | 0.051402 | 0.077103 | 0.102804 | 0.500876 | 0.457652 | 0.457652 | 0.267523 | 0.109813 | 0.023949 | 0 | 0.007106 | 0.392881 | 7,417 | 231 | 105 | 32.108225 | 0.753276 | 0.257247 | 0 | 0.538462 | 0 | 0 | 0.195764 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011834 | false | 0.136095 | 0.011834 | 0 | 0.023669 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
472c20b6885e7d7487b8b59533993fc154cbb119 | 3,798 | py | Python | ganslate/utils/cli/scripts/download_datasets.py | ibro45/a | a90d92eaf041331cd3397f788cb60884cb0e176b | [
"BSD-3-Clause"
] | 17 | 2021-09-07T15:23:04.000Z | 2022-01-28T15:46:54.000Z | ganslate/utils/cli/scripts/download_datasets.py | ibro45/a | a90d92eaf041331cd3397f788cb60884cb0e176b | [
"BSD-3-Clause"
] | 18 | 2021-09-08T12:31:39.000Z | 2021-12-13T15:26:01.000Z | ganslate/utils/cli/scripts/download_datasets.py | ibro45/a | a90d92eaf041331cd3397f788cb60884cb0e176b | [
"BSD-3-Clause"
] | 2 | 2021-11-10T11:23:00.000Z | 2022-02-10T07:57:20.000Z | import wget
import zipfile
import os
from pathlib import Path
import shutil
AVAILABLE_DATASETS = ["ae_photos", "apple2orange", "summer2winter_yosemite", "horse2zebra", \
"monet2photo", "cezanne2photo","ukiyoe2photo", "vangogh2photo", "maps", \
"cityscapes", "facades", "iphone2d... | 49.324675 | 340 | 0.677199 | 487 | 3,798 | 5.166324 | 0.396304 | 0.019873 | 0.032194 | 0.031002 | 0.27345 | 0.244833 | 0.193164 | 0.128776 | 0.104134 | 0.104134 | 0 | 0.028455 | 0.222749 | 3,798 | 76 | 341 | 49.973684 | 0.823848 | 0.039758 | 0 | 0.039216 | 0 | 0.117647 | 0.617897 | 0.02443 | 0 | 0 | 0 | 0 | 0.019608 | 1 | 0.019608 | false | 0 | 0.117647 | 0 | 0.137255 | 0.078431 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
473023d7455084c8c9e91904add1133068012f92 | 2,162 | py | Python | donations/migrations/0011_auto_20200913_1443.py | diffractive/newstream | cf1a1f230e18d01c63b50ab9d360aa44ac5a486f | [
"MIT"
] | 1 | 2020-05-03T12:33:42.000Z | 2020-05-03T12:33:42.000Z | donations/migrations/0011_auto_20200913_1443.py | diffractive/newstream | cf1a1f230e18d01c63b50ab9d360aa44ac5a486f | [
"MIT"
] | 14 | 2020-07-06T20:05:57.000Z | 2022-03-12T00:39:11.000Z | donations/migrations/0011_auto_20200913_1443.py | diffractive/newstream | cf1a1f230e18d01c63b50ab9d360aa44ac5a486f | [
"MIT"
] | null | null | null | # Generated by Django 3.0.8 on 2020-09-13 14:43
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('site_settings', '0004_si... | 45.041667 | 206 | 0.615634 | 216 | 2,162 | 5.949074 | 0.435185 | 0.031128 | 0.04358 | 0.068482 | 0.248249 | 0.147082 | 0.147082 | 0.147082 | 0.147082 | 0.147082 | 0 | 0.019042 | 0.246994 | 2,162 | 47 | 207 | 46 | 0.77027 | 0.020814 | 0 | 0.121951 | 1 | 0 | 0.214184 | 0.06052 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.073171 | 0 | 0.146341 | 0 | 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 |
4730881ffaaa1f4bcb1f5ecc9beeed4de2020b25 | 1,081 | py | Python | pdoing/users/migrations/0003_profile.py | hamzabouissi/pdoing | 00e541c5f82f4027809a6ae4d172c5a2172fd8be | [
"MIT"
] | null | null | null | pdoing/users/migrations/0003_profile.py | hamzabouissi/pdoing | 00e541c5f82f4027809a6ae4d172c5a2172fd8be | [
"MIT"
] | null | null | null | pdoing/users/migrations/0003_profile.py | hamzabouissi/pdoing | 00e541c5f82f4027809a6ae4d172c5a2172fd8be | [
"MIT"
] | null | null | null | # Generated by Django 3.1.13 on 2021-10-06 19:21
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('users', '0002_user_user_type'),
]
operations = [
migrations.CreateModel(
... | 34.870968 | 118 | 0.59667 | 113 | 1,081 | 5.539823 | 0.584071 | 0.038339 | 0.044728 | 0.070288 | 0.198083 | 0.108626 | 0 | 0 | 0 | 0 | 0 | 0.035533 | 0.271045 | 1,081 | 30 | 119 | 36.033333 | 0.758883 | 0.042553 | 0 | 0 | 1 | 0 | 0.10455 | 0.020329 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5b255ca0f0b854a961977197e01fc504260ca5a3 | 952 | py | Python | datasets/ccgois/transform.py | nhsengland/publish-o-matic | dc8f16cb83a2360989afa44d887e63b5cde6af29 | [
"MIT"
] | null | null | null | datasets/ccgois/transform.py | nhsengland/publish-o-matic | dc8f16cb83a2360989afa44d887e63b5cde6af29 | [
"MIT"
] | 11 | 2015-03-02T16:30:20.000Z | 2016-11-29T12:16:15.000Z | datasets/ccgois/transform.py | nhsengland/publish-o-matic | dc8f16cb83a2360989afa44d887e63b5cde6af29 | [
"MIT"
] | 2 | 2020-12-25T20:38:31.000Z | 2021-04-11T07:35:01.000Z | import datetime
import json
import sys
import ffs
import re
from publish.lib.helpers import filename_for_resource, download_file
from publish.lib.upload import Uploader
def main(workspace):
DATA_DIR = ffs.Path(workspace)
datasets = json.load(open(DATA_DIR / 'ccgois_indicators.json'))
u = Uploader("ccgo... | 27.2 | 71 | 0.629202 | 109 | 952 | 5.385321 | 0.431193 | 0.0477 | 0.0477 | 0.057922 | 0.105622 | 0.105622 | 0 | 0 | 0 | 0 | 0 | 0.002821 | 0.255252 | 952 | 34 | 72 | 28 | 0.825106 | 0 | 0 | 0 | 0 | 0 | 0.115546 | 0.046218 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.269231 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5b26ac70c88ec2320be2e3b8e0e482fa907eb9b4 | 1,417 | py | Python | maskprop/MiVOS/model/aggregate.py | qinliuliuqin/iSegFormer | 67b634588cc0a1e09fb3e092966eae997eb209fa | [
"MIT"
] | 14 | 2021-12-09T08:33:23.000Z | 2022-03-26T13:11:01.000Z | maskprop/MiVOS/model/aggregate.py | qinliuliuqin/iSegFormer | 67b634588cc0a1e09fb3e092966eae997eb209fa | [
"MIT"
] | null | null | null | maskprop/MiVOS/model/aggregate.py | qinliuliuqin/iSegFormer | 67b634588cc0a1e09fb3e092966eae997eb209fa | [
"MIT"
] | null | null | null | import torch
import torch.nn.functional as F
def aggregate_sbg(prob, keep_bg=False, hard=False):
device = prob.device
k, _, h, w = prob.shape
ex_prob = torch.zeros((k+1, 1, h, w), device=device)
ex_prob[0] = 0.5
ex_prob[1:] = prob
ex_prob = torch.clamp(ex_prob, 1e-7, 1-1e-7)
logits = torch.... | 26.735849 | 59 | 0.577276 | 236 | 1,417 | 3.411017 | 0.207627 | 0.052174 | 0.104348 | 0.126708 | 0.754037 | 0.724224 | 0.634783 | 0.567702 | 0.541615 | 0.462112 | 0 | 0.048897 | 0.263938 | 1,417 | 53 | 60 | 26.735849 | 0.711409 | 0.06916 | 0 | 0.585366 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073171 | false | 0 | 0.04878 | 0 | 0.268293 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5b2b440c338a65ce544ed3c53efc12dcac71555d | 2,570 | py | Python | 2016/day21.py | iKevinY/advent | d160fb711a0a4d671f53cbd61088117e7ff0276a | [
"MIT"
] | 11 | 2019-12-03T06:32:37.000Z | 2021-12-24T12:23:57.000Z | 2016/day21.py | iKevinY/advent | d160fb711a0a4d671f53cbd61088117e7ff0276a | [
"MIT"
] | null | null | null | 2016/day21.py | iKevinY/advent | d160fb711a0a4d671f53cbd61088117e7ff0276a | [
"MIT"
] | 1 | 2019-12-07T06:21:31.000Z | 2019-12-07T06:21:31.000Z | import fileinput
from collections import deque
from utils import parse_line
def scramble(data, operations, unscramble=False):
data = deque(data)
if unscramble:
operations = reversed(operations)
for line in operations:
if line.startswith('swap position'):
x, y = parse_line(r'... | 29.204545 | 95 | 0.488716 | 300 | 2,570 | 4.133333 | 0.29 | 0.043548 | 0.040323 | 0.035484 | 0.045161 | 0.025806 | 0 | 0 | 0 | 0 | 0 | 0.006828 | 0.373152 | 2,570 | 87 | 96 | 29.54023 | 0.76288 | 0.032685 | 0 | 0.125 | 0 | 0 | 0.129331 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.053571 | null | null | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5b2ef9d67215b954e74438538563b4240db3e7e5 | 602 | py | Python | Helpers/setup.py | MrPSnrub/HorizonScanningUKSpace | a3a2c41cf7ec1e01d13b707a67d6c635fe1b5c90 | [
"MIT"
] | 1 | 2019-11-20T04:30:29.000Z | 2019-11-20T04:30:29.000Z | Helpers/setup.py | MrPSnrub/HorizonScanningUKSpace | a3a2c41cf7ec1e01d13b707a67d6c635fe1b5c90 | [
"MIT"
] | null | null | null | Helpers/setup.py | MrPSnrub/HorizonScanningUKSpace | a3a2c41cf7ec1e01d13b707a67d6c635fe1b5c90 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='HorizonScanningUKSpace',
version='1.0',
packages=[''],
package_dir={'': 'Helpers'},
url='https://github.com/MrPSnrub/HorizonScanningUKSpace',
license='MIT',
author='Paul Burns',
author_email='wjb17168@uni.strath.ac.uk',
description='An API u... | 37.625 | 115 | 0.652824 | 67 | 602 | 5.820896 | 0.940299 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016194 | 0.179402 | 602 | 15 | 116 | 40.133333 | 0.773279 | 0 | 0 | 0 | 0 | 0 | 0.513289 | 0.112957 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5b31cbd0d771278a5ccc0d8d9d3e63f838eebb1f | 292 | py | Python | protoflow/applications/__init__.py | theblackfly/protoflow | 02a77e59f6afc8d462a738874d06eca810911166 | [
"MIT"
] | 3 | 2020-10-07T05:04:05.000Z | 2021-02-10T15:04:55.000Z | protoflow/applications/__init__.py | theblackfly/protoflow | 02a77e59f6afc8d462a738874d06eca810911166 | [
"MIT"
] | 5 | 2020-04-09T13:36:15.000Z | 2020-12-17T16:30:50.000Z | protoflow/applications/__init__.py | theblackfly/protoflow | 02a77e59f6afc8d462a738874d06eca810911166 | [
"MIT"
] | 2 | 2020-10-01T21:48:16.000Z | 2021-04-10T18:20:25.000Z | from .glvq import GLVQ
from .deeplvq import DeepLVQ
from .gmlvq import GMLVQ
# from .knn import KNN
# from .lvq1 import LVQ1
from .lvqmln import LVQMLN
from .network import Network
__all__ = [
'GLVQ',
'DeepLVQ',
'GMLVQ',
# 'KNN',
# 'LVQ1',
'LVQMLN',
'Network',
]
| 16.222222 | 28 | 0.633562 | 36 | 292 | 5.027778 | 0.277778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013636 | 0.246575 | 292 | 17 | 29 | 17.176471 | 0.809091 | 0.19863 | 0 | 0 | 0 | 0 | 0.126638 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5b44dc02c5d7df5d23aca2a28cc0021f0dd23e9b | 4,721 | py | Python | dash_docs/chapters/dash_vtk/click_hover/index.py | wesleyacheng/dash-docs | c8510bf50d0ae55a56ae30f3057f2bfc6d3ca8d6 | [
"MIT"
] | 379 | 2017-06-21T14:35:52.000Z | 2022-03-20T01:47:14.000Z | dash_docs/chapters/dash_vtk/click_hover/index.py | wesleyacheng/dash-docs | c8510bf50d0ae55a56ae30f3057f2bfc6d3ca8d6 | [
"MIT"
] | 746 | 2017-06-21T19:58:17.000Z | 2022-03-23T14:51:24.000Z | dash_docs/chapters/dash_vtk/click_hover/index.py | wesleyacheng/dash-docs | c8510bf50d0ae55a56ae30f3057f2bfc6d3ca8d6 | [
"MIT"
] | 201 | 2017-06-21T21:53:19.000Z | 2022-03-17T13:23:55.000Z | import dash_html_components as html
import dash_vtk
from dash_docs import tools
from dash_docs import styles
from dash_docs import reusable_components as rc
examples = tools.load_examples(__file__)
layout = html.Div([
rc.Markdown('''
# Click and Hover Callbacks
It's possible to create callbacks based on ... | 38.382114 | 225 | 0.639271 | 593 | 4,721 | 5.038786 | 0.389545 | 0.02577 | 0.014726 | 0.018072 | 0.089692 | 0.058902 | 0.026774 | 0 | 0 | 0 | 0 | 0.003691 | 0.253972 | 4,721 | 122 | 226 | 38.696721 | 0.844691 | 0 | 0 | 0.197917 | 0 | 0.135417 | 0.882228 | 0.088541 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052083 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5b4f55038adef8e9d79ce912202bd2eebb1bcaa2 | 937 | py | Python | Python/decode_diameter/lib/pcapparser/constant.py | eriwoon/ShellScriptCollect | f681b2d3a4d379277a6c00d928decec4ea3b960e | [
"MIT"
] | 1 | 2020-07-29T22:53:04.000Z | 2020-07-29T22:53:04.000Z | Python/decode_diameter/lib/pcapparser/constant.py | eriwoon/ShellScriptCollect | f681b2d3a4d379277a6c00d928decec4ea3b960e | [
"MIT"
] | null | null | null | Python/decode_diameter/lib/pcapparser/constant.py | eriwoon/ShellScriptCollect | f681b2d3a4d379277a6c00d928decec4ea3b960e | [
"MIT"
] | null | null | null | from __future__ import unicode_literals, print_function, division
__author__ = 'dongliu'
class HttpType(object):
REQUEST = 0
RESPONSE = 1
# see http://www.tcpdump.org/linktypes.html
# http://www.winpcap.org/ntar/draft/PCAP-DumpFileFormat.html#appendixLinkTypes
class LinkLayerType(object):
"""LinkType"""... | 21.295455 | 78 | 0.719317 | 102 | 937 | 6.401961 | 0.784314 | 0.02144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157047 | 0.204909 | 937 | 44 | 79 | 21.295455 | 0.719463 | 0.173959 | 0 | 0 | 0 | 0 | 0.009138 | 0 | 0 | 0 | 0.143603 | 0 | 0 | 1 | 0 | false | 0 | 0.035714 | 0 | 0.964286 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5b5042c75d79eeb5fbdbeb19b4bf146c6c558a68 | 5,724 | py | Python | examples/custom_stanzas/custom_stanza_user.py | dashdash-chat/SleekXMPP | 00d5de83536e9ca22ea4a27460e42097651ce60f | [
"BSD-3-Clause"
] | null | null | null | examples/custom_stanzas/custom_stanza_user.py | dashdash-chat/SleekXMPP | 00d5de83536e9ca22ea4a27460e42097651ce60f | [
"BSD-3-Clause"
] | null | null | null | examples/custom_stanzas/custom_stanza_user.py | dashdash-chat/SleekXMPP | 00d5de83536e9ca22ea4a27460e42097651ce60f | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
SleekXMPP: The Sleek XMPP Library
Copyright (C) 2010 Nathanael C. Fritz
This file is part of SleekXMPP.
See the file LICENSE for copying permission.
"""
import sys
import logging
import getpass
from optparse import OptionParser
import sleekxmpp
from... | 32.522727 | 76 | 0.608491 | 708 | 5,724 | 4.831921 | 0.371469 | 0.012277 | 0.0228 | 0.023385 | 0.061678 | 0.051155 | 0.023385 | 0 | 0 | 0 | 0 | 0.009127 | 0.291754 | 5,724 | 175 | 77 | 32.708571 | 0.834731 | 0.365653 | 0 | 0.063291 | 0 | 0 | 0.15423 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050633 | false | 0.101266 | 0.113924 | 0 | 0.177215 | 0.037975 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5b512230baa03276686acdd680aaaa30a64499c5 | 4,881 | py | Python | project/cfpq/cfpq.py | achains/formal-lang-course | d8f43b148b17e943d4cbd667dfeeeab1f9ca3537 | [
"Apache-2.0"
] | null | null | null | project/cfpq/cfpq.py | achains/formal-lang-course | d8f43b148b17e943d4cbd667dfeeeab1f9ca3537 | [
"Apache-2.0"
] | 5 | 2021-09-20T15:18:42.000Z | 2022-01-23T11:28:22.000Z | project/cfpq/cfpq.py | achains/formal-lang-course | d8f43b148b17e943d4cbd667dfeeeab1f9ca3537 | [
"Apache-2.0"
] | 1 | 2021-09-02T15:52:39.000Z | 2021-09-02T15:52:39.000Z | from networkx import MultiDiGraph
from pyformlang.cfg import CFG, Variable
from typing import Set, Tuple, Callable
from project.grammars.hellings import hellings
from project.grammars.matrix_based import matrix_based
from project.grammars.tensor_based import tensor_based
from project.utils.cfg_utils import transform_... | 26.527174 | 85 | 0.640852 | 643 | 4,881 | 4.734059 | 0.127527 | 0.075558 | 0.065046 | 0.055191 | 0.688568 | 0.666229 | 0.657359 | 0.657359 | 0.633049 | 0.633049 | 0 | 0.00083 | 0.259373 | 4,881 | 183 | 86 | 26.672131 | 0.841217 | 0.481868 | 0 | 0.483333 | 0 | 0 | 0.018318 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.116667 | 0 | 0.283333 | 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 |
5b586d56479f9bd0530b10268ef0ed2d40e2500c | 987 | py | Python | parsifal/apps/activities/models.py | ShivamPytho/parsifal | 9386a0fb328d4880d052c94e9224ce50a9b2f6a6 | [
"MIT"
] | 342 | 2015-01-14T17:25:35.000Z | 2022-02-26T11:59:09.000Z | parsifal/apps/activities/models.py | ShivamPytho/parsifal | 9386a0fb328d4880d052c94e9224ce50a9b2f6a6 | [
"MIT"
] | 56 | 2015-01-23T12:57:59.000Z | 2022-03-12T01:01:38.000Z | parsifal/apps/activities/models.py | ShivamPytho/parsifal | 9386a0fb328d4880d052c94e9224ce50a9b2f6a6 | [
"MIT"
] | 200 | 2015-01-22T21:50:41.000Z | 2021-12-28T13:42:57.000Z | from django.contrib.auth.models import User
from django.db import models
from django.utils.translation import gettext_lazy as _
from parsifal.apps.activities.constants import ActivityTypes
from parsifal.apps.reviews.models import Review
class Activity(models.Model):
from_user = models.ForeignKey(User, on_delete=... | 42.913043 | 119 | 0.749747 | 127 | 987 | 5.559055 | 0.433071 | 0.077904 | 0.05949 | 0.089235 | 0.127479 | 0.127479 | 0.127479 | 0.127479 | 0 | 0 | 0 | 0.004673 | 0.132725 | 987 | 22 | 120 | 44.863636 | 0.820093 | 0 | 0 | 0 | 0 | 0 | 0.056738 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.294118 | 0.058824 | 0.882353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5b5962d3ea0353224f33391a737a708bbdfa7015 | 2,062 | py | Python | fixture/db.py | IrinaZI/Python_training | 40e31085d183409a574ffeae843a609f811425d9 | [
"Apache-2.0"
] | null | null | null | fixture/db.py | IrinaZI/Python_training | 40e31085d183409a574ffeae843a609f811425d9 | [
"Apache-2.0"
] | null | null | null | fixture/db.py | IrinaZI/Python_training | 40e31085d183409a574ffeae843a609f811425d9 | [
"Apache-2.0"
] | null | null | null | import mysql.connector
from model.group import Group
from model.contact import Contact
from model.relation import Relation
class DbFixture:
def __init__(self, host, name, user, password):
self.host = host
self.name = name
self.user = user
self.password = password
self.conne... | 36.175439 | 179 | 0.597963 | 238 | 2,062 | 5.092437 | 0.239496 | 0.069307 | 0.029703 | 0.044554 | 0.373762 | 0.335809 | 0.310231 | 0.254125 | 0.254125 | 0.254125 | 0 | 0.018106 | 0.303589 | 2,062 | 57 | 180 | 36.175439 | 0.825905 | 0 | 0 | 0.4375 | 0 | 0.020833 | 0.126515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104167 | false | 0.0625 | 0.083333 | 0 | 0.270833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5b66d9c83ca7e8ab8c168bf11085c17e0e26a3b3 | 3,055 | py | Python | moto/workspaces/models.py | pt-arvind/moto | 2f2cb367aa434edbd8bbf53a2cdfaddd03ca578a | [
"Apache-2.0"
] | null | null | null | moto/workspaces/models.py | pt-arvind/moto | 2f2cb367aa434edbd8bbf53a2cdfaddd03ca578a | [
"Apache-2.0"
] | null | null | null | moto/workspaces/models.py | pt-arvind/moto | 2f2cb367aa434edbd8bbf53a2cdfaddd03ca578a | [
"Apache-2.0"
] | null | null | null | import re
from datetime import datetime
from boto3 import Session
from moto.core import BaseBackend
from moto.core.utils import iso_8601_datetime_without_milliseconds
from moto.sts.models import ACCOUNT_ID
from uuid import uuid4
from .exceptions import (
InvalidArn,
InvalidName,
WorkspaceDoesNotExist,
)
... | 32.157895 | 145 | 0.680851 | 354 | 3,055 | 5.59322 | 0.29661 | 0.05 | 0.040404 | 0.027273 | 0.250505 | 0.227778 | 0.227778 | 0.227778 | 0.20404 | 0.20404 | 0 | 0.017462 | 0.231424 | 3,055 | 94 | 146 | 32.5 | 0.825809 | 0.053028 | 0 | 0.070423 | 0 | 0 | 0.063756 | 0.024602 | 0 | 0 | 0 | 0.010638 | 0 | 1 | 0.098592 | false | 0 | 0.140845 | 0.014085 | 0.323944 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
5b67b6ed7a938f2bb6128bcaa195aa212c97523f | 1,506 | py | Python | strings/min_len_substrings.py | elenaborisova/LeetCode-Solutions | 98376aab7fd150a724e316357ae5ea46988d9eac | [
"MIT"
] | null | null | null | strings/min_len_substrings.py | elenaborisova/LeetCode-Solutions | 98376aab7fd150a724e316357ae5ea46988d9eac | [
"MIT"
] | null | null | null | strings/min_len_substrings.py | elenaborisova/LeetCode-Solutions | 98376aab7fd150a724e316357ae5ea46988d9eac | [
"MIT"
] | null | null | null | import collections
def min_length_substrings(s, t):
pass
def sliding_window(s, t):
if not s or not t or len(t) > len(s):
return ''
dict_t = collections.Counter(t)
required = len(dict_t)
l, r = 0, 0
formed = 0
window_counts = {}
ans = float("inf"), None, None
while r < l... | 27.888889 | 88 | 0.614874 | 194 | 1,506 | 4.634021 | 0.278351 | 0.187987 | 0.240267 | 0.048943 | 0.14238 | 0.14238 | 0.14238 | 0.14238 | 0.14238 | 0.14238 | 0 | 0.014783 | 0.236388 | 1,506 | 53 | 89 | 28.415094 | 0.766957 | 0 | 0 | 0 | 0 | 0 | 0.139442 | 0.054449 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0.025641 | 0.025641 | 0 | 0.128205 | 0.307692 | 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 |
5b6e025c074b391129459b0115e2d4652572fd74 | 4,968 | py | Python | serveradmin/powerdns/migrations/0002_powerdns_schema.py | YannikSc/serveradmin | 996480fedae773576ae11948790fa3018a774edb | [
"MIT"
] | null | null | null | serveradmin/powerdns/migrations/0002_powerdns_schema.py | YannikSc/serveradmin | 996480fedae773576ae11948790fa3018a774edb | [
"MIT"
] | null | null | null | serveradmin/powerdns/migrations/0002_powerdns_schema.py | YannikSc/serveradmin | 996480fedae773576ae11948790fa3018a774edb | [
"MIT"
] | null | null | null | # Generated by Django 3.2.12 on 2022-03-09 10:50
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('powerdns', '0001_initial'),
]
operations = [
# https://doc.powerdns.com/authoritative/backends/generic-postgresql.html
#
# Added ... | 41.4 | 102 | 0.491143 | 479 | 4,968 | 5.004175 | 0.26096 | 0.039633 | 0.087192 | 0.073425 | 0.517313 | 0.416771 | 0.380893 | 0.239466 | 0.239466 | 0.239466 | 0 | 0.025414 | 0.453502 | 4,968 | 119 | 103 | 41.747899 | 0.857459 | 0.042472 | 0 | 0 | 1 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5b809cf715b423f6bd975db6467059b5eaf1ed44 | 634 | py | Python | data_structures/5_funciones_listas3.py | fcafedericoguerra/Python | 130381d51ddc9192859d2512715a86db8aa5869d | [
"MIT"
] | 1 | 2019-10-14T18:30:05.000Z | 2019-10-14T18:30:05.000Z | data_structures/5_funciones_listas3.py | fcafedericoguerra/Python | 130381d51ddc9192859d2512715a86db8aa5869d | [
"MIT"
] | 3 | 2019-05-03T21:22:36.000Z | 2019-05-03T21:24:50.000Z | data_structures/5_funciones_listas3.py | fcafedericoguerra/Python | 130381d51ddc9192859d2512715a86db8aa5869d | [
"MIT"
] | 50 | 2019-04-24T22:52:19.000Z | 2021-11-04T01:57:33.000Z | # -*- coding: utf-8 -*-
# ------------- Funciones en listas -------------
#Pop en listas
print ("Lista A")
listaA = [1, 2, 3, 4]
print (listaA)
elem_borrado = listaA.pop(1)
print ("Eliminaste el elemento:", elem_borrado)
#listaA.pop(0) #Elimina primer elemento
print ("POP", listaA.pop(0))
print (listaA)
#La función de... | 21.862069 | 58 | 0.659306 | 98 | 634 | 4.244898 | 0.408163 | 0.105769 | 0.081731 | 0.096154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046125 | 0.14511 | 634 | 28 | 59 | 22.642857 | 0.721402 | 0.328076 | 0 | 0.3 | 0 | 0 | 0.15311 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.65 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5b862c4eff8eca2e34934dab4ec245e0f7067c15 | 2,229 | py | Python | snmpRecon.py | kostrin/Pillage | cfe24e744601518be18fb46e52c8ea78c874cfbc | [
"MIT"
] | 30 | 2016-02-23T22:40:55.000Z | 2021-08-14T04:01:53.000Z | snmpRecon.py | kostrin/Pillage | cfe24e744601518be18fb46e52c8ea78c874cfbc | [
"MIT"
] | null | null | null | snmpRecon.py | kostrin/Pillage | cfe24e744601518be18fb46e52c8ea78c874cfbc | [
"MIT"
] | 9 | 2016-07-17T02:57:52.000Z | 2022-03-18T13:55:27.000Z | import argparse, time, sys, os, subprocess
class snmpRecon(object):
def __init__(self):
self.parseArgs()
self.paramStrings=['1.3.6.1.2.1.25.1.6.0', '1.3.6.1.2.1.25.4.2.1.2', '1.3.6.1.2.1.25.4.2.1.4', '1.3.6.1.2.1.25.2.3.1.4', '1.3.6.1.2.1.25.6.3.1.2', '1.3.6.1.4.1.77.1.2.25', '1.3.6.1.2.1.6.13.1.3'... | 45.489796 | 203 | 0.625841 | 312 | 2,229 | 4.346154 | 0.262821 | 0.099558 | 0.017699 | 0.020649 | 0.322271 | 0.211652 | 0.202065 | 0.030236 | 0.030236 | 0.016224 | 0 | 0.05 | 0.228354 | 2,229 | 48 | 204 | 46.4375 | 0.738372 | 0 | 0 | 0.15 | 0 | 0.125 | 0.281096 | 0.112708 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.05 | 0.025 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5b8c795f88386cf29f998f6891259b87a01cc3a4 | 2,264 | py | Python | douban-movies/tutorial/spiders/dmoz_spider.py | zfanai/scrapy-study | 9db78e37e594166ecbf599a37771022a9c99e758 | [
"Apache-2.0"
] | null | null | null | douban-movies/tutorial/spiders/dmoz_spider.py | zfanai/scrapy-study | 9db78e37e594166ecbf599a37771022a9c99e758 | [
"Apache-2.0"
] | null | null | null | douban-movies/tutorial/spiders/dmoz_spider.py | zfanai/scrapy-study | 9db78e37e594166ecbf599a37771022a9c99e758 | [
"Apache-2.0"
] | null | null | null | #encoding:utf8
import scrapy
from ..items import DmozItem
from scrapy_splash import SplashRequest
class DmozSpider(scrapy.Spider):
name = "dmoz"
#allowed_domains = ["dmoz.org"]
allowed_domains = ["douban.com"]
start_urls = [
#"http://www.dmoz.org/Computers/Programming/Languages/Py... | 34.830769 | 90 | 0.533127 | 267 | 2,264 | 4.464419 | 0.426966 | 0.035235 | 0.040268 | 0.047819 | 0.139262 | 0.139262 | 0.139262 | 0.139262 | 0 | 0 | 0 | 0.021848 | 0.292403 | 2,264 | 65 | 91 | 34.830769 | 0.722222 | 0.248675 | 0 | 0.051282 | 0 | 0.025641 | 0.156269 | 0.019148 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.102564 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5b8d1d3f6909690ee4196eddcec02da21c268b9d | 225 | py | Python | pacote-download/CursoemVideo/ex017.py | pemedeiros/python-CeV | e34eebdfd6f5cf254a9ad1ce076083c735f68f28 | [
"MIT"
] | null | null | null | pacote-download/CursoemVideo/ex017.py | pemedeiros/python-CeV | e34eebdfd6f5cf254a9ad1ce076083c735f68f28 | [
"MIT"
] | null | null | null | pacote-download/CursoemVideo/ex017.py | pemedeiros/python-CeV | e34eebdfd6f5cf254a9ad1ce076083c735f68f28 | [
"MIT"
] | null | null | null | from math import sqrt
co = int(input('Qual o comprimeto do cateto oposto?'))
ca = int(input('Qual o comprimento do cateto adjascente?'))
hip= (co ** 2) + (ca ** 2)
print('O valor da hipotenusa é: {}'.format(sqrt(hip)))
| 18.75 | 59 | 0.653333 | 36 | 225 | 4.083333 | 0.666667 | 0.108844 | 0.163265 | 0.176871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010811 | 0.177778 | 225 | 11 | 60 | 20.454545 | 0.783784 | 0 | 0 | 0 | 0 | 0 | 0.465753 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 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 |
5b91880aa242c2da17e49612c4ac1d1225223f94 | 450 | py | Python | main.py | ahanfybekheet/egybest | 5cc1c85ba0224e0e5e66d2211055873caaf002d9 | [
"MIT"
] | null | null | null | main.py | ahanfybekheet/egybest | 5cc1c85ba0224e0e5e66d2211055873caaf002d9 | [
"MIT"
] | null | null | null | main.py | ahanfybekheet/egybest | 5cc1c85ba0224e0e5e66d2211055873caaf002d9 | [
"MIT"
] | null | null | null | from Create_Driver import *
import time
# ['--headless', '--disable-gpu']
New_driver = Create_Driver(['--log-level=3'])
New_driver.select_wanted_thing(input("Enter Film Name: "))
time.sleep(3)
if New_driver.is_series():
time.sleep(3)
New_driver.select_season()
time.sleep(3)
New_driver.down... | 25 | 59 | 0.682222 | 62 | 450 | 4.677419 | 0.467742 | 0.248276 | 0.137931 | 0.134483 | 0.196552 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013441 | 0.173333 | 450 | 18 | 60 | 25 | 0.766129 | 0.068889 | 0 | 0.266667 | 0 | 0 | 0.074813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 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 |
5b91dcb63d9a5af5a922004d33d42f5bf54b9655 | 9,171 | py | Python | senlin-7.0.0/senlin/tests/unit/engine/actions/test_del_nodes.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | null | null | null | senlin-7.0.0/senlin/tests/unit/engine/actions/test_del_nodes.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 5 | 2019-08-14T06:46:03.000Z | 2021-12-13T20:01:25.000Z | senlin-7.0.0/senlin/tests/unit/engine/actions/test_del_nodes.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 2 | 2020-03-15T01:24:15.000Z | 2020-07-22T20:34:26.000Z | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed unde... | 41.310811 | 78 | 0.6152 | 1,123 | 9,171 | 4.749777 | 0.159394 | 0.026997 | 0.044994 | 0.048744 | 0.731909 | 0.714098 | 0.690289 | 0.676978 | 0.619798 | 0.571616 | 0 | 0.010821 | 0.274452 | 9,171 | 221 | 79 | 41.497738 | 0.790803 | 0.082652 | 0 | 0.54878 | 0 | 0 | 0.140114 | 0.024088 | 0 | 0 | 0 | 0 | 0.189024 | 1 | 0.042683 | false | 0 | 0.042683 | 0 | 0.091463 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5b92a87f59cd1a5fcc0fe1fa37699b33cde37825 | 6,127 | py | Python | acoustics/octave.py | andimarafioti/python-acoustics | 3d60296ef8ca7a480cd346716e38026ae46fd39b | [
"BSD-3-Clause"
] | 1 | 2015-02-03T19:43:54.000Z | 2015-02-03T19:43:54.000Z | acoustics/octave.py | andimarafioti/python-acoustics | 3d60296ef8ca7a480cd346716e38026ae46fd39b | [
"BSD-3-Clause"
] | null | null | null | acoustics/octave.py | andimarafioti/python-acoustics | 3d60296ef8ca7a480cd346716e38026ae46fd39b | [
"BSD-3-Clause"
] | null | null | null | """
Octave
======
Module for working with octaves.
The following is an example on how to use :class:`acoustics.octave.Octave`.
.. literalinclude:: ../examples/octave.py
"""
from __future__ import division
import numpy as np
REFERENCE = 1000.0
"""
Reference frequency.
"""
def band_of_frequency(f, order=1, ref=REF... | 25.852321 | 108 | 0.543986 | 771 | 6,127 | 4.232166 | 0.162127 | 0.044131 | 0.027582 | 0.03126 | 0.397793 | 0.274287 | 0.218817 | 0.202268 | 0.202268 | 0.129942 | 0 | 0.022667 | 0.32316 | 6,127 | 236 | 109 | 25.961864 | 0.764167 | 0.375388 | 0 | 0.246753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.233766 | false | 0.038961 | 0.025974 | 0 | 0.493506 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5b96e184a000c94b4f2f1523664cd2dd10bef9da | 339 | py | Python | setup.py | nineTailsKurama/nasa_air_quality_competition | 011ec2c6c4d3464ba86b70f3815efb45d8088395 | [
"MIT"
] | 2 | 2022-02-17T16:19:59.000Z | 2022-03-22T01:07:28.000Z | setup.py | nineTailsKurama/nasa_air_quality_competition | 011ec2c6c4d3464ba86b70f3815efb45d8088395 | [
"MIT"
] | null | null | null | setup.py | nineTailsKurama/nasa_air_quality_competition | 011ec2c6c4d3464ba86b70f3815efb45d8088395 | [
"MIT"
] | null | null | null | from setuptools import find_packages, setup
setup(
name='src',
packages=find_packages(),
version='0.1.0',
description='The project deals with the competition in Professor Iddo Drori class. In the project, we will be predicitng the pm2.5 level for the competition. ',
author='Saisamrit Surbehera',
... | 30.818182 | 164 | 0.716814 | 47 | 339 | 5.12766 | 0.744681 | 0.099585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018116 | 0.185841 | 339 | 10 | 165 | 33.9 | 0.855072 | 0 | 0 | 0 | 0 | 0.111111 | 0.516224 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5b97b081532632038b8a9d322d42825032910fc7 | 705 | py | Python | onlinestudies/admin.py | exo3106/onlineStudies | 1400c4fdd01ff759daa3a3b6f927f7f1dc3aa977 | [
"Apache-2.0"
] | null | null | null | onlinestudies/admin.py | exo3106/onlineStudies | 1400c4fdd01ff759daa3a3b6f927f7f1dc3aa977 | [
"Apache-2.0"
] | null | null | null | onlinestudies/admin.py | exo3106/onlineStudies | 1400c4fdd01ff759daa3a3b6f927f7f1dc3aa977 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(Instructor)
class InstructorAdmin(admin.ModelAdmin):
list_display = ['instructor_name ']
admin.site.register(Category)
class CategoryAdmin(admin.ModelAdmin):
list_display = ['name','slug']
prepop... | 27.115385 | 51 | 0.648227 | 70 | 705 | 6.357143 | 0.485714 | 0.060674 | 0.114607 | 0.175281 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217021 | 705 | 25 | 52 | 28.2 | 0.806159 | 0.036879 | 0 | 0 | 0 | 0 | 0.196455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5bab26b153c30a00eac1682d96bf5b589f380f02 | 417 | py | Python | main_app/migrations/0012_rename_comment_reply.py | boyoon-c/readuck-api | 4d62705e86603372f867a59604424a86d35b4b87 | [
"MIT"
] | null | null | null | main_app/migrations/0012_rename_comment_reply.py | boyoon-c/readuck-api | 4d62705e86603372f867a59604424a86d35b4b87 | [
"MIT"
] | null | null | null | main_app/migrations/0012_rename_comment_reply.py | boyoon-c/readuck-api | 4d62705e86603372f867a59604424a86d35b4b87 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.6 on 2021-09-05 23:22
from django.conf import settings
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('main_app', '0011_file'),
]
operations = [
migrat... | 20.85 | 66 | 0.633094 | 47 | 417 | 5.468085 | 0.787234 | 0.077821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061889 | 0.263789 | 417 | 19 | 67 | 21.947368 | 0.775244 | 0.107914 | 0 | 0 | 1 | 0 | 0.078378 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5bac74f541a09a5b5d67a5eb135a81f5895dea54 | 1,040 | py | Python | home/migrations/0003_auto_20180129_1650.py | uktrade/invest | 15b84c511839b46e81608fca9762d2df3f6df16c | [
"MIT"
] | 1 | 2019-01-18T03:50:46.000Z | 2019-01-18T03:50:46.000Z | home/migrations/0003_auto_20180129_1650.py | uktrade/invest | 15b84c511839b46e81608fca9762d2df3f6df16c | [
"MIT"
] | 50 | 2018-01-24T18:04:08.000Z | 2019-01-03T03:30:30.000Z | home/migrations/0003_auto_20180129_1650.py | uktrade/invest | 15b84c511839b46e81608fca9762d2df3f6df16c | [
"MIT"
] | 2 | 2018-02-12T15:20:52.000Z | 2019-01-18T03:51:52.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.9 on 2018-01-29 16:50
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wagtailimages', '0019_delete_filter'),
('home', '00... | 29.714286 | 149 | 0.607692 | 108 | 1,040 | 5.657407 | 0.537037 | 0.03928 | 0.11293 | 0.13257 | 0.407529 | 0.407529 | 0.216039 | 0.216039 | 0.216039 | 0.216039 | 0 | 0.040682 | 0.267308 | 1,040 | 34 | 150 | 30.588235 | 0.761155 | 0.065385 | 0 | 0.481481 | 1 | 0 | 0.131063 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.222222 | 0 | 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 |
5bb20fff3d058b64bc5edb97077b02005e9f9b94 | 1,134 | py | Python | crypto_address_validator/validators/default_validator.py | null-po1nter/crypto-address-validator | a65239ff86613c1cca744849c3c6910bb4eacf64 | [
"Unlicense"
] | 6 | 2022-01-11T15:25:57.000Z | 2022-02-16T08:05:07.000Z | crypto_address_validator/validators/default_validator.py | null-po1nter/crypto-address-validator | a65239ff86613c1cca744849c3c6910bb4eacf64 | [
"Unlicense"
] | null | null | null | crypto_address_validator/validators/default_validator.py | null-po1nter/crypto-address-validator | a65239ff86613c1cca744849c3c6910bb4eacf64 | [
"Unlicense"
] | 2 | 2022-01-11T15:26:05.000Z | 2022-03-22T08:05:59.000Z | import binascii
import hashlib
import base58
from crypto_address_validator.validators.crypto import bech32m
def is_valid_address(address: str) -> bool:
"""
Validates the passed btc address.
Args:
address (str): Currency address to validate.
Returns:
bool: Result of address validation.... | 24.12766 | 104 | 0.675485 | 129 | 1,134 | 5.782946 | 0.527132 | 0.087131 | 0.0563 | 0.053619 | 0.075067 | 0.075067 | 0 | 0 | 0 | 0 | 0 | 0.069318 | 0.223986 | 1,134 | 46 | 105 | 24.652174 | 0.778409 | 0.256614 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.190476 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5bb4edb56599de0a8d14bf7e3d9dfb88b3412b65 | 2,691 | py | Python | dojo/engagement/urls.py | axelpavageau/django-DefectDojo | 00b425742b783ada0f432241c2812ac1257feb73 | [
"BSD-3-Clause"
] | 1,772 | 2018-01-22T23:32:15.000Z | 2022-03-31T14:49:33.000Z | dojo/engagement/urls.py | axelpavageau/django-DefectDojo | 00b425742b783ada0f432241c2812ac1257feb73 | [
"BSD-3-Clause"
] | 3,461 | 2018-01-20T19:12:28.000Z | 2022-03-31T17:14:39.000Z | dojo/engagement/urls.py | axelpavageau/django-DefectDojo | 00b425742b783ada0f432241c2812ac1257feb73 | [
"BSD-3-Clause"
] | 1,173 | 2018-01-23T07:10:23.000Z | 2022-03-31T14:40:43.000Z | from django.conf.urls import url
from dojo.engagement import views
urlpatterns = [
# engagements and calendar
url(r'^calendar$', views.engagement_calendar, name='calendar'),
url(r'^calendar/engagements$', views.engagement_calendar, name='engagement_calendar'),
url(r'^engagement$', views.engagement, n... | 53.82 | 90 | 0.674099 | 355 | 2,691 | 4.901408 | 0.115493 | 0.193103 | 0.16092 | 0.163793 | 0.435057 | 0.435057 | 0.391379 | 0.284483 | 0.265517 | 0.243103 | 0 | 0 | 0.124861 | 2,691 | 49 | 91 | 54.918367 | 0.738854 | 0.008919 | 0 | 0.043478 | 0 | 0 | 0.492868 | 0.364114 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.086957 | 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 |
5bbbd73d5d895db5d0e664f40241d9535eebdf26 | 1,494 | py | Python | nowcasting_utils/visualization/utils.py | openclimatefix/nowcasting_utils | 7a45e9d24ce29693d96fd9c75a34ca1d205b64bc | [
"MIT"
] | 2 | 2021-12-20T15:56:40.000Z | 2022-02-09T07:31:27.000Z | nowcasting_utils/visualization/utils.py | openclimatefix/nowcasting_utils | 7a45e9d24ce29693d96fd9c75a34ca1d205b64bc | [
"MIT"
] | 37 | 2021-09-08T14:36:00.000Z | 2022-02-16T20:05:24.000Z | nowcasting_utils/visualization/utils.py | openclimatefix/nowcasting_utils | 7a45e9d24ce29693d96fd9c75a34ca1d205b64bc | [
"MIT"
] | null | null | null | """ Plotting utils functions """
from typing import List
def make_slider(labels: List[str]) -> dict:
"""Make slider for animation"""
sliders = [
dict(
steps=[
dict(
method="animate",
args=[
[f"frame{k+1}"],
... | 27.666667 | 82 | 0.363454 | 114 | 1,494 | 4.745614 | 0.482456 | 0.072089 | 0.062847 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025956 | 0.51004 | 1,494 | 53 | 83 | 28.188679 | 0.713115 | 0.052209 | 0 | 0.304348 | 0 | 0 | 0.087983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.021739 | 0 | 0.108696 | 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 |
5bc0704d2c4e2707bc5a99cd420435dec2874b3e | 2,114 | py | Python | python/src/poll_server.py | ASMlover/study | 5878f862573061f94c5776a351e30270dfd9966a | [
"BSD-2-Clause"
] | 22 | 2015-05-18T07:04:36.000Z | 2021-08-02T03:01:43.000Z | python/src/poll_server.py | ASMlover/study | 5878f862573061f94c5776a351e30270dfd9966a | [
"BSD-2-Clause"
] | 1 | 2017-08-31T22:13:57.000Z | 2017-09-05T15:00:25.000Z | python/src/poll_server.py | ASMlover/study | 5878f862573061f94c5776a351e30270dfd9966a | [
"BSD-2-Clause"
] | 6 | 2015-06-06T07:16:12.000Z | 2021-07-06T13:45:56.000Z | # Copyright (c) 2014 ASMlover. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list ofconditions and the fol... | 31.552239 | 70 | 0.700568 | 289 | 2,114 | 5.089965 | 0.532872 | 0.024473 | 0.023114 | 0.031271 | 0.074779 | 0.042148 | 0 | 0 | 0 | 0 | 0 | 0.008469 | 0.21807 | 2,114 | 66 | 71 | 32.030303 | 0.881428 | 0.631977 | 0 | 0 | 0 | 0 | 0.052139 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068966 | null | null | 0.103448 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5bc5b680ce326c3069c1bc8a94ece7b80785f96b | 1,958 | py | Python | opcalendar/migrations/0014_auto_20210113_0836.py | buahaha/allianceauth-opcalendar | 44e50e06eac4b5c0e6b809e5ca2638af5e49145f | [
"MIT"
] | null | null | null | opcalendar/migrations/0014_auto_20210113_0836.py | buahaha/allianceauth-opcalendar | 44e50e06eac4b5c0e6b809e5ca2638af5e49145f | [
"MIT"
] | null | null | null | opcalendar/migrations/0014_auto_20210113_0836.py | buahaha/allianceauth-opcalendar | 44e50e06eac4b5c0e6b809e5ca2638af5e49145f | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2021-01-13 08:36
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("opcalendar", "0013_event... | 33.758621 | 122 | 0.551583 | 192 | 1,958 | 5.520833 | 0.442708 | 0.037736 | 0.05283 | 0.083019 | 0.365094 | 0.365094 | 0.199057 | 0.129245 | 0.092453 | 0 | 0 | 0.018254 | 0.356486 | 1,958 | 57 | 123 | 34.350877 | 0.823016 | 0.022983 | 0 | 0.431373 | 1 | 0 | 0.245945 | 0.025118 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.156863 | 0 | 0.215686 | 0 | 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 |
5bd10c979768cb263bb303c8132be3d8da1a1217 | 309 | py | Python | FindDeauth.py | MWHSCSC-ORG/CSCTK | bd69614317a91a6c9a408adad05c7c8522066fbf | [
"MIT"
] | 1 | 2016-09-12T07:13:25.000Z | 2016-09-12T07:13:25.000Z | FindDeauth.py | MWHSCSC-ORG/CSCTK | bd69614317a91a6c9a408adad05c7c8522066fbf | [
"MIT"
] | null | null | null | FindDeauth.py | MWHSCSC-ORG/CSCTK | bd69614317a91a6c9a408adad05c7c8522066fbf | [
"MIT"
] | null | null | null | import subprocess, sys, os
# Start to find the BSSID of the network according to it's name
f = open('/usr/share/csctk/DEAUTHOutput.txt', 'r+')
lines=f.readlines()
line = lines[2]
array = line.split(",")
deauth = array[5].replace(" ", "")
f.close()
g = open('/usr/share/csctk/deauth.txt', 'w')
g.write(deauth)
| 28.090909 | 63 | 0.673139 | 51 | 309 | 4.078431 | 0.705882 | 0.067308 | 0.115385 | 0.163462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007407 | 0.126214 | 309 | 10 | 64 | 30.9 | 0.762963 | 0.197411 | 0 | 0 | 0 | 0 | 0.264228 | 0.243902 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 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 |
5bd69725a8a950174cab17f80ef35f31b8220755 | 676 | py | Python | runners/builder.py | zhangzhengde0225/SwinTrack | 526be17f8ef266cb924c6939bd8dda23e9b73249 | [
"MIT"
] | 143 | 2021-12-03T02:33:36.000Z | 2022-03-29T00:01:48.000Z | runners/builder.py | zhangzhengde0225/SwinTrack | 526be17f8ef266cb924c6939bd8dda23e9b73249 | [
"MIT"
] | 33 | 2021-12-03T10:32:05.000Z | 2022-03-31T02:13:55.000Z | runners/builder.py | zhangzhengde0225/SwinTrack | 526be17f8ef266cb924c6939bd8dda23e9b73249 | [
"MIT"
] | 24 | 2021-12-04T06:46:42.000Z | 2022-03-30T07:57:47.000Z | from core.run.event_dispatcher.register import EventRegister
def build_runner(model, runner_config, data_source_context, config, event_register: EventRegister):
if runner_config['type'] == 'default':
from .training.default.builder import build_default_training_runner
return build_default_training_... | 52 | 111 | 0.773669 | 76 | 676 | 6.565789 | 0.421053 | 0.144289 | 0.128257 | 0.092184 | 0.236473 | 0.236473 | 0.236473 | 0.236473 | 0.236473 | 0.236473 | 0 | 0 | 0.142012 | 676 | 12 | 112 | 56.333333 | 0.860345 | 0 | 0 | 0 | 0 | 0 | 0.097633 | 0.036982 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5be1b6f99825144702d0d4f6a5cebb0c78c7496b | 15,311 | py | Python | bin/libsw/wordpress.py | Rondore/sitewrangler | a67a140262281c1f6be48c55f86544e476d7d7b4 | [
"MIT"
] | null | null | null | bin/libsw/wordpress.py | Rondore/sitewrangler | a67a140262281c1f6be48c55f86544e476d7d7b4 | [
"MIT"
] | null | null | null | bin/libsw/wordpress.py | Rondore/sitewrangler | a67a140262281c1f6be48c55f86544e476d7d7b4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
import time
import subprocess
import random
import inquirer
import stat
import wget
from libsw import php, nginx, user, bind, cert, db, settings, input_util
from getpass import getpass
from mysql import connector
from pwd import getpwnam
def list_installations():
"""
List all ... | 37.435208 | 178 | 0.640781 | 2,102 | 15,311 | 4.484301 | 0.156518 | 0.037131 | 0.008593 | 0.009548 | 0.490982 | 0.425843 | 0.335137 | 0.272756 | 0.236898 | 0.224804 | 0 | 0.003701 | 0.241069 | 15,311 | 408 | 179 | 37.526961 | 0.807487 | 0.224218 | 0 | 0.204819 | 0 | 0.008032 | 0.191245 | 0.006053 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088353 | false | 0.092369 | 0.044177 | 0 | 0.204819 | 0.064257 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5beacae18cae7fc6579c242293e30db8a5cae4d0 | 3,060 | py | Python | breachsense/1.0.0/src/app.py | bhagyeshkumar/shuffle-apps | 1abf1e23ccb2ee1094ac0f2e50f31f76f56c7ece | [
"MIT"
] | 41 | 2020-05-21T17:00:46.000Z | 2021-09-23T21:24:12.000Z | breachsense/1.0.0/src/app.py | bhagyeshkumar/shuffle-apps | 1abf1e23ccb2ee1094ac0f2e50f31f76f56c7ece | [
"MIT"
] | 179 | 2020-05-22T08:11:39.000Z | 2021-09-22T15:48:27.000Z | breachsense/1.0.0/src/app.py | bhagyeshkumar/shuffle-apps | 1abf1e23ccb2ee1094ac0f2e50f31f76f56c7ece | [
"MIT"
] | 57 | 2020-07-07T10:38:16.000Z | 2021-09-21T20:43:04.000Z | import socket
import asyncio
import time
import random
import json
import requests
from walkoff_app_sdk.app_base import AppBase
class BreachSense(AppBase):
__version__ = "1.0.0"
app_name = "Breachsense" # this needs to match "name" in api.yaml
def __init__(self, redis, logger, console_logger=None):
... | 36 | 112 | 0.6 | 397 | 3,060 | 4.453401 | 0.211587 | 0.054299 | 0.050905 | 0.113122 | 0.680995 | 0.680995 | 0.680995 | 0.664027 | 0.664027 | 0.625566 | 0 | 0.001361 | 0.279739 | 3,060 | 84 | 113 | 36.428571 | 0.800817 | 0.050654 | 0 | 0.558824 | 0 | 0.073529 | 0.301365 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014706 | false | 0 | 0.102941 | 0 | 0.338235 | 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 |
5beeec4655b90dde7108ce227ce7ffd747b670e5 | 3,074 | py | Python | pyrosim/neuralNetwork.py | jacksonsdean/evolutionary-robotics- | af333afb03dcb3759da233aecd93975dde17df7d | [
"MIT"
] | null | null | null | pyrosim/neuralNetwork.py | jacksonsdean/evolutionary-robotics- | af333afb03dcb3759da233aecd93975dde17df7d | [
"MIT"
] | null | null | null | pyrosim/neuralNetwork.py | jacksonsdean/evolutionary-robotics- | af333afb03dcb3759da233aecd93975dde17df7d | [
"MIT"
] | null | null | null | from pyrosim.neuron import NEURON
from pyrosim.synapse import SYNAPSE
class NEURAL_NETWORK:
def __init__(self,nndfFileName):
self.neurons = {}
self.synapses = {}
f = open(nndfFileName,"r")
for line in f.readlines():
self.Digest(line)
f.close()
def P... | 24.99187 | 99 | 0.6311 | 345 | 3,074 | 5.368116 | 0.171014 | 0.13067 | 0.158747 | 0.074514 | 0.454644 | 0.404428 | 0.263499 | 0.199784 | 0.165767 | 0.165767 | 0 | 0 | 0.253416 | 3,074 | 122 | 100 | 25.196721 | 0.806972 | 0.023097 | 0 | 0.179104 | 0 | 0 | 0.026325 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.223881 | false | 0 | 0.029851 | 0.059701 | 0.343284 | 0.104478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5bf53474d303d3fdf119266b2d8a9c8f3aca01a0 | 2,159 | py | Python | setup.py | RKrahl/pybagit | 5c5bca99b77a4338e9700eae5c6cb7b733b8ac57 | [
"MIT"
] | 7 | 2016-03-07T20:57:43.000Z | 2022-02-10T16:46:36.000Z | setup.py | RKrahl/pybagit | 5c5bca99b77a4338e9700eae5c6cb7b733b8ac57 | [
"MIT"
] | 9 | 2015-05-18T19:21:08.000Z | 2016-04-07T10:48:59.000Z | setup.py | RKrahl/pybagit | 5c5bca99b77a4338e9700eae5c6cb7b733b8ac57 | [
"MIT"
] | 6 | 2015-09-16T09:33:01.000Z | 2019-02-06T20:21:49.000Z | try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
longdesc = """
PyBagIt Version 1.5.3
This module helps with creating an managing BagIt-compliant packages. It has
been created to confor... | 29.986111 | 77 | 0.674849 | 280 | 2,159 | 5.153571 | 0.571429 | 0.024948 | 0.02772 | 0.03465 | 0.091476 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0.008333 | 0.221862 | 2,159 | 71 | 78 | 30.408451 | 0.850595 | 0 | 0 | 0.037037 | 0 | 0 | 0.695692 | 0.014359 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.074074 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5bfc644d6af9fce47c834685af999209750e7895 | 3,315 | py | Python | src/pycycle/compressor.py | OpenMDAO-Plugins/pyCycle | e55f9cbd0d596049bfbc45a9b1c4f0b560c9367d | [
"Apache-2.0"
] | 3 | 2016-11-26T17:19:32.000Z | 2020-07-07T14:50:22.000Z | src/pycycle/compressor.py | jcchin/pyCycle | 1a9807901af9d85b667588e8810d86aefde7bd9e | [
"Apache-2.0"
] | null | null | null | src/pycycle/compressor.py | jcchin/pyCycle | 1a9807901af9d85b667588e8810d86aefde7bd9e | [
"Apache-2.0"
] | 5 | 2015-07-02T07:35:05.000Z | 2016-11-26T17:18:30.000Z | import math
from openmdao.main.api import Component
from openmdao.lib.datatypes.api import Float, VarTree, Event
from pycycle.flowstation import FlowStation, FlowStationVar, GAS_CONSTANT
from pycycle.cycle_component import CycleComponent
class Compressor(CycleComponent):
"""Axial Compressor performance calcu... | 38.546512 | 113 | 0.650075 | 511 | 3,315 | 4.011742 | 0.258317 | 0.024878 | 0.035122 | 0.026341 | 0.246341 | 0.141463 | 0.141463 | 0.141463 | 0.141463 | 0.141463 | 0 | 0.009141 | 0.241026 | 3,315 | 85 | 114 | 39 | 0.805644 | 0.102866 | 0 | 0.072727 | 0 | 0 | 0.186929 | 0 | 0 | 0 | 0 | 0.011765 | 0 | 1 | 0.036364 | false | 0 | 0.109091 | 0 | 0.418182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
7508def38f999b893f97acfbfd990223855ad9e4 | 350 | py | Python | main.py | MrGio7/connect-four | 729cfb07c1276dcdfc739e741c3c7411d1fa85af | [
"MIT"
] | null | null | null | main.py | MrGio7/connect-four | 729cfb07c1276dcdfc739e741c3c7411d1fa85af | [
"MIT"
] | null | null | null | main.py | MrGio7/connect-four | 729cfb07c1276dcdfc739e741c3c7411d1fa85af | [
"MIT"
] | null | null | null | import pygame
from gameplay import Gameplay
pygame.init()
gameplay = Gameplay()
loop = True
while loop:
for e in pygame.event.get():
if e.type == pygame.QUIT:
loop = False
pygame.display.set_caption("Connect Four By MrGio7")
gameplay.gameplay()
gameplay.score_check()
... | 17.5 | 56 | 0.64 | 43 | 350 | 5.162791 | 0.627907 | 0.216216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003861 | 0.26 | 350 | 20 | 57 | 17.5 | 0.853282 | 0 | 0 | 0 | 0 | 0 | 0.062678 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 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 |
750c432d924c47924788c88448777f46f11aa002 | 16,495 | py | Python | src/solutions/common/bizz/group_purchase.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | src/solutions/common/bizz/group_purchase.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | src/solutions/common/bizz/group_purchase.py | goubertbrent/oca-backend | b9f59cc02568aecb55d4b54aec05245790ea25fd | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2020 Green Valley Belgium NV
#
# 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 appl... | 47.128571 | 278 | 0.699606 | 1,954 | 16,495 | 5.642272 | 0.189355 | 0.056599 | 0.03619 | 0.025941 | 0.418413 | 0.381678 | 0.338957 | 0.32517 | 0.276644 | 0.255329 | 0 | 0.010248 | 0.207275 | 16,495 | 349 | 279 | 47.26361 | 0.8329 | 0.041528 | 0 | 0.266667 | 0 | 0.017544 | 0.179607 | 0.123179 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.115789 | 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 |
750e9be985d573ff19e0814aa2ae74af52a4ade4 | 1,719 | py | Python | setup.py | Raamyy/Automatic-Files-Organizer | c280af5faf69284345d08d075da343ba1548948b | [
"MIT"
] | 5 | 2020-12-09T22:47:20.000Z | 2021-09-02T10:56:36.000Z | setup.py | Raamyy/Automatic-Files-Organizer | c280af5faf69284345d08d075da343ba1548948b | [
"MIT"
] | null | null | null | setup.py | Raamyy/Automatic-Files-Organizer | c280af5faf69284345d08d075da343ba1548948b | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(
name = 'organise_files', # How you named your package folder (MyLib)
packages = ['organise_files'], # Chose the same as "name"
include_package_data=True,
version = '0.1.2', # Start with a small number and increase it with every change you make
license='MI... | 59.275862 | 146 | 0.664921 | 221 | 1,719 | 5.122172 | 0.606335 | 0.045936 | 0.0053 | 0.030035 | 0.081272 | 0.081272 | 0.081272 | 0.081272 | 0 | 0 | 0 | 0.011958 | 0.22164 | 1,719 | 29 | 147 | 59.275862 | 0.834081 | 0.355439 | 0 | 0.068966 | 0 | 0.034483 | 0.52925 | 0.034735 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.034483 | 0 | 0.034483 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
751a94f481f8d22ceca5af49cfd0b30d0be0c984 | 416 | py | Python | urls.py | jayvdb/django-package-monitor | 534aa35ccfe187d2c55aeca0cb52b8278254e437 | [
"MIT"
] | null | null | null | urls.py | jayvdb/django-package-monitor | 534aa35ccfe187d2c55aeca0cb52b8278254e437 | [
"MIT"
] | null | null | null | urls.py | jayvdb/django-package-monitor | 534aa35ccfe187d2c55aeca0cb52b8278254e437 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.contrib.staticfiles import views
try:
from django.urls import re_path, include
except ImportError:
from django.conf.urls import url as re_path, include
admin.autodiscover()
urlpatterns = [
re_path(r'^admin/', admin.site.urls),
re_path(r'^package_monitor/', ... | 27.733333 | 75 | 0.721154 | 59 | 416 | 4.966102 | 0.457627 | 0.102389 | 0.071672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141827 | 416 | 14 | 76 | 29.714286 | 0.820728 | 0.009615 | 0 | 0 | 0 | 0 | 0.158537 | 0.05122 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7520724f598446fccfece68aa9a8b9856e5801d4 | 1,872 | py | Python | beacon/IBeacon.py | Zontec/IBeacon-example | 22e3fac079b1cf09f5e9ea3c936b3ffaed5ce4ff | [
"MIT"
] | null | null | null | beacon/IBeacon.py | Zontec/IBeacon-example | 22e3fac079b1cf09f5e9ea3c936b3ffaed5ce4ff | [
"MIT"
] | null | null | null | beacon/IBeacon.py | Zontec/IBeacon-example | 22e3fac079b1cf09f5e9ea3c936b3ffaed5ce4ff | [
"MIT"
] | null | null | null |
class IBeacon():
def __init__(self, driver_instace) -> None:
self.ble_driver_instace = driver_instace
def setUUID(self, uuid : str) -> None:
"uuid is 16 bytes should be represented as a string of hex-decimal format: XX XX XX XX ..."
self.uuid = uuid
def setMajor(self, major : str... | 36 | 118 | 0.615919 | 254 | 1,872 | 4.444882 | 0.346457 | 0.103632 | 0.080602 | 0.124004 | 0.242693 | 0.219663 | 0.132861 | 0.10806 | 0.10806 | 0.10806 | 0 | 0.041033 | 0.297009 | 1,872 | 52 | 119 | 36 | 0.816869 | 0.400641 | 0 | 0 | 0 | 0.04 | 0.224401 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.32 | false | 0 | 0 | 0.04 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
75248354a037c5251b7760067fe3586591a5ad80 | 2,637 | py | Python | src/h5cli/explorer.py | ksunden/h5shell | 5d7f7d9f25c210c16d9628a1c854d05fe0b5f016 | [
"MIT"
] | 3 | 2017-07-17T17:53:59.000Z | 2017-07-30T02:01:45.000Z | src/h5cli/explorer.py | ksunden/h5cli | 5d7f7d9f25c210c16d9628a1c854d05fe0b5f016 | [
"MIT"
] | 53 | 2017-07-16T15:49:35.000Z | 2018-06-02T23:56:41.000Z | src/h5cli/explorer.py | ksunden/h5shell | 5d7f7d9f25c210c16d9628a1c854d05fe0b5f016 | [
"MIT"
] | 1 | 2017-09-30T01:43:17.000Z | 2017-09-30T01:43:17.000Z | import h5py
import os
import re
class H5Explorer(object):
def __init__(self, h5_obj):
self.__filename = h5_obj.file.filename
self.__file = h5_obj
self.__working_dir = h5_obj.name
self.__dir_queue = list()
@staticmethod
def from_file(filename, mode="r"):
filename = ... | 29.3 | 78 | 0.617368 | 335 | 2,637 | 4.543284 | 0.20597 | 0.063075 | 0.045992 | 0.049934 | 0.395532 | 0.395532 | 0.394218 | 0.273325 | 0.273325 | 0.273325 | 0 | 0.008325 | 0.271141 | 2,637 | 89 | 79 | 29.629213 | 0.783559 | 0 | 0 | 0.214286 | 0 | 0 | 0.048161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.228571 | false | 0 | 0.042857 | 0.071429 | 0.471429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
752a1eba0fa5a685ee347615fc893259ec6e44ba | 976 | py | Python | Easy/tandem-bicycle/solution_1/tandem-bicycle.py | moisestech/algoexpert | 35953d3719afdea45a7fa364735a2ea10d2b9a9c | [
"MIT"
] | 1 | 2021-12-20T03:49:34.000Z | 2021-12-20T03:49:34.000Z | Easy/tandem-bicycle/solution_1/tandem-bicycle.py | moisestech/algoexpert | 35953d3719afdea45a7fa364735a2ea10d2b9a9c | [
"MIT"
] | null | null | null | Easy/tandem-bicycle/solution_1/tandem-bicycle.py | moisestech/algoexpert | 35953d3719afdea45a7fa364735a2ea10d2b9a9c | [
"MIT"
] | null | null | null | # SOLUTION 1
# Tandem Bicycle
# Complexity
# Average: Time: O(n log(n)) | Space: O(1)
# Worst: Time: O(n^2) | Space:
# Greedy Algorith, sorting the input
# 1. Pair ther maximum value and minimum value
# 2. Pair the maxium value with the maximum value
# STEPS:
# Reverse an array is O(n)
# Sort array in plac... | 22.697674 | 62 | 0.689549 | 131 | 976 | 5.137405 | 0.496183 | 0.008915 | 0.017831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020752 | 0.210041 | 976 | 42 | 63 | 23.238095 | 0.85214 | 0.395492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
752bd5186bec3bf3f86cd9b75c3a6c5897070f44 | 2,515 | py | Python | 00_main.py | danilo-web/geekBrains_python | 30d048e087bddbf487b310ed84ec45d65e924362 | [
"Apache-2.0"
] | 1 | 2021-01-30T18:09:03.000Z | 2021-01-30T18:09:03.000Z | 00_main.py | danilo-web/geekbrains_python | 30d048e087bddbf487b310ed84ec45d65e924362 | [
"Apache-2.0"
] | null | null | null | 00_main.py | danilo-web/geekbrains_python | 30d048e087bddbf487b310ed84ec45d65e924362 | [
"Apache-2.0"
] | null | null | null | input("как вас зовут? ")
# типы переменных int \ float \ bool \ None - пустой тип \ str
name = "Mike"
print(type(name))
bul_type = True
print(type(bul_type))
date = "22"
print(type(date))
date = int(date)
print(type(date))
new_date = str(date) + " число"
print(type(new_date))
# #######################
# print + se... | 33.533333 | 117 | 0.617893 | 346 | 2,515 | 4.453757 | 0.520231 | 0.029202 | 0.016872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016256 | 0.192843 | 2,515 | 74 | 118 | 33.986486 | 0.742857 | 0.432604 | 0 | 0.153846 | 0 | 0 | 0.20807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.480769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
752d0d558df1ad72aea12f71ac88a4575e5336ea | 4,072 | py | Python | src/documenteer/stackdocs/packagecli.py | lsst-sqre/sphinxkit | a9475d0722b0f6f89fd1c4c54eafad0564667b0b | [
"MIT"
] | 3 | 2019-04-18T02:47:06.000Z | 2021-11-09T03:49:12.000Z | src/documenteer/stackdocs/packagecli.py | lsst-sqre/sphinxkit | a9475d0722b0f6f89fd1c4c54eafad0564667b0b | [
"MIT"
] | 29 | 2016-12-15T01:02:05.000Z | 2022-03-07T12:06:40.000Z | src/documenteer/stackdocs/packagecli.py | lsst-sqre/sphinxkit | a9475d0722b0f6f89fd1c4c54eafad0564667b0b | [
"MIT"
] | 2 | 2016-09-12T17:44:06.000Z | 2016-12-15T00:37:05.000Z | """Implements the ``package-docs`` CLI for single-package documentation builds
in the LSST Stack.
"""
__all__ = ("main",)
import logging
import os
import shutil
import sys
import click
from ..sphinxrunner import run_sphinx
from .rootdiscovery import discover_package_doc_dir
# Add -h as a help shortcut option
CONTE... | 30.162963 | 78 | 0.68664 | 561 | 4,072 | 4.894831 | 0.377897 | 0.020393 | 0.023307 | 0.027677 | 0.02185 | 0.02185 | 0 | 0 | 0 | 0 | 0 | 0.000623 | 0.211935 | 4,072 | 134 | 79 | 30.38806 | 0.855095 | 0.436395 | 0 | 0.171429 | 0 | 0 | 0.180176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0.057143 | 0.1 | 0 | 0.157143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
752e9780be13f144f4647d97659ba0ca808d03af | 22,211 | py | Python | thirdparty/toolcursor/Demo-2010-02-04.py | greydongilmore/tactics | e57008ded07eb798368ccb161d9bf06d9a16f52c | [
"BSD-3-Clause"
] | 5 | 2015-06-02T22:10:36.000Z | 2022-01-02T09:26:47.000Z | thirdparty/toolcursor/Demo-2010-02-04.py | greydongilmore/tactics | e57008ded07eb798368ccb161d9bf06d9a16f52c | [
"BSD-3-Clause"
] | 2 | 2015-06-04T14:52:09.000Z | 2015-06-04T18:58:50.000Z | thirdparty/toolcursor/Demo-2010-02-04.py | greydongilmore/tactics | e57008ded07eb798368ccb161d9bf06d9a16f52c | [
"BSD-3-Clause"
] | 3 | 2015-06-04T15:02:25.000Z | 2021-02-02T01:47:56.000Z | #!/usr/bin/env python
import math
import sys
import vtk
import toolcursor
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# The images are img1 and img2, or the same if only 1 image
img1 = 0
img2 = 0
filenames = []
if len(sys.argv) > 1:
filenames.extend(sys.argv[1:])
if len(sys.ar... | 33.052083 | 77 | 0.644275 | 2,305 | 22,211 | 6.203905 | 0.186117 | 0.011748 | 0.00986 | 0.009231 | 0.236014 | 0.183007 | 0.166643 | 0.151469 | 0.15007 | 0.123566 | 0 | 0.048552 | 0.193238 | 22,211 | 671 | 78 | 33.101341 | 0.749484 | 0.116159 | 0 | 0.246347 | 0 | 0 | 0.015027 | 0 | 0 | 0 | 0.000511 | 0 | 0 | 0 | null | null | 0 | 0.010438 | null | null | 0.012526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
752f3260d4a3418d628bf5b3b7d1a92df8cd28f4 | 670 | py | Python | products/migrations/0002_customers.py | BerRRG/api-teste-python | a5319d27b1f7cf08d48f335cc7e89f0aa8f0434a | [
"MIT"
] | null | null | null | products/migrations/0002_customers.py | BerRRG/api-teste-python | a5319d27b1f7cf08d48f335cc7e89f0aa8f0434a | [
"MIT"
] | null | null | null | products/migrations/0002_customers.py | BerRRG/api-teste-python | a5319d27b1f7cf08d48f335cc7e89f0aa8f0434a | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-09-10 19:15
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('products', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Customers',
fields=[
... | 27.916667 | 112 | 0.583582 | 67 | 670 | 5.776119 | 0.716418 | 0.077519 | 0.093023 | 0.124031 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054054 | 0.28209 | 670 | 23 | 113 | 29.130435 | 0.75052 | 0.067164 | 0 | 0 | 1 | 0 | 0.105939 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.294118 | 0 | 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 |
752ffaa2d74057fd1d16dd9be215e404009c14eb | 1,174 | py | Python | mdx_subscript.py | J08nY/markdown_subscript_extension | b5a3ab0502aba46327e63fa2e15501333543a501 | [
"BSD-2-Clause"
] | 3 | 2015-05-18T07:49:23.000Z | 2019-12-22T21:26:10.000Z | mdx_subscript.py | J08nY/markdown_subscript_extension | b5a3ab0502aba46327e63fa2e15501333543a501 | [
"BSD-2-Clause"
] | 60 | 2015-12-29T13:51:07.000Z | 2019-08-01T16:23:29.000Z | mdx_subscript.py | J08nY/markdown_subscript_extension | b5a3ab0502aba46327e63fa2e15501333543a501 | [
"BSD-2-Clause"
] | 5 | 2019-03-21T08:16:33.000Z | 2021-12-11T14:25:49.000Z | # -*- coding: utf-8 -*-
"""Markdown Subscript Extension
Extends the Python-Markdown library to support subscript text.
Given the text:
The molecular composition of water is H~2~O.
Will output:
<p>The molecular composition of water is H<sub>2</sub>O.</p>
:website: https://github.com/jambonrose/markdown_subscr... | 30.894737 | 77 | 0.712947 | 144 | 1,174 | 5.729167 | 0.583333 | 0.041212 | 0.06303 | 0.060606 | 0.08 | 0.08 | 0.08 | 0 | 0 | 0 | 0 | 0.018443 | 0.168654 | 1,174 | 37 | 78 | 31.72973 | 0.826844 | 0.573254 | 0 | 0 | 0 | 0 | 0.077731 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
75307d0b48ac00ffdfea3cfcaf0a41af045d0961 | 17,154 | py | Python | websiteFunctions/tests.py | uzairAK/serverom-panel | 3dcde05ad618e6bef280db7d3180f926fe2ab1db | [
"MIT"
] | null | null | null | websiteFunctions/tests.py | uzairAK/serverom-panel | 3dcde05ad618e6bef280db7d3180f926fe2ab1db | [
"MIT"
] | null | null | null | websiteFunctions/tests.py | uzairAK/serverom-panel | 3dcde05ad618e6bef280db7d3180f926fe2ab1db | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.test import TestCase
import json
from plogical.CyberCPLogFileWriter import CyberCPLogFileWriter as logging
import requests
import time
from plogical.processUtilities import ProcessUtilities
import urllib3
urllib3.disable_warnings()
# Create your tests here.
class TestWebsiteManagem... | 31.245902 | 199 | 0.607322 | 1,688 | 17,154 | 6.112559 | 0.148104 | 0.081896 | 0.064644 | 0.08112 | 0.743943 | 0.705272 | 0.666602 | 0.626866 | 0.611068 | 0.569006 | 0 | 0.014836 | 0.25341 | 17,154 | 548 | 200 | 31.30292 | 0.790818 | 0.032004 | 0 | 0.625407 | 0 | 0 | 0.294964 | 0.10211 | 0 | 0 | 0 | 0 | 0.149837 | 1 | 0.058632 | false | 0.016287 | 0.032573 | 0 | 0.104235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
75359656961da935fb3f61965cd558b456bbda18 | 2,849 | py | Python | tests/theanolm/score_test.py | vasuneralla/theanolm | 51fbd89082ca3ea5d0178d09b744cf15c0113ab6 | [
"Apache-2.0"
] | 95 | 2016-01-16T16:18:13.000Z | 2022-01-25T16:31:29.000Z | tests/theanolm/score_test.py | nd1511/theanolm | 9eda655ed63e8906234e62ab7da016e64e931afe | [
"Apache-2.0"
] | 43 | 2015-10-16T08:49:26.000Z | 2020-10-12T07:17:04.000Z | tests/theanolm/score_test.py | nd1511/theanolm | 9eda655ed63e8906234e62ab7da016e64e931afe | [
"Apache-2.0"
] | 37 | 2016-03-25T23:21:54.000Z | 2020-11-05T11:21:58.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import unittest
from numpy.testing import assert_almost_equal
from theanolm.commands.score import _merge_subwords
class TestScore(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_merge_subwords(self):
# w... | 47.483333 | 99 | 0.593191 | 386 | 2,849 | 4.23057 | 0.168394 | 0.117575 | 0.016534 | 0.022045 | 0.7624 | 0.6485 | 0.644825 | 0.469075 | 0.392529 | 0.392529 | 0 | 0.054698 | 0.204282 | 2,849 | 59 | 100 | 48.288136 | 0.665637 | 0.110565 | 0 | 0.292683 | 0 | 0 | 0.097744 | 0 | 0 | 0 | 0 | 0 | 0.414634 | 1 | 0.073171 | false | 0.04878 | 0.073171 | 0 | 0.170732 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
753bede58f23026ccbc76fc3a011f9eccc093b1d | 902 | py | Python | graduated_site/migrations/0046_auto_20191225_0817.py | vbacaksiz/KTU-MEBSIS | e1afaa07a16e00ff9be3f39b728603b64f08590e | [
"MIT"
] | null | null | null | graduated_site/migrations/0046_auto_20191225_0817.py | vbacaksiz/KTU-MEBSIS | e1afaa07a16e00ff9be3f39b728603b64f08590e | [
"MIT"
] | null | null | null | graduated_site/migrations/0046_auto_20191225_0817.py | vbacaksiz/KTU-MEBSIS | e1afaa07a16e00ff9be3f39b728603b64f08590e | [
"MIT"
] | null | null | null | # Generated by Django 3.0 on 2019-12-25 08:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('graduated_site', '0045_auto_20191222_1917'),
]
operations = [
migrations.AddField(
model_name='user_internship_post',
... | 37.583333 | 219 | 0.617517 | 105 | 902 | 5.152381 | 0.552381 | 0.066543 | 0.085028 | 0.099815 | 0.528651 | 0.528651 | 0.528651 | 0.528651 | 0.221811 | 0.221811 | 0 | 0.06 | 0.223947 | 902 | 23 | 220 | 39.217391 | 0.712857 | 0.047672 | 0 | 0.352941 | 1 | 0 | 0.27888 | 0.026838 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
754ba47807fe4df7ab97747a5c9bdc2d0e0e4092 | 2,266 | py | Python | joust/protocol.py | softwerks/joust | 6169217abe14a7b15982b1c3f85cb82ac148b823 | [
"Apache-2.0"
] | null | null | null | joust/protocol.py | softwerks/joust | 6169217abe14a7b15982b1c3f85cb82ac148b823 | [
"Apache-2.0"
] | null | null | null | joust/protocol.py | softwerks/joust | 6169217abe14a7b15982b1c3f85cb82ac148b823 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Softwerks LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | 32.371429 | 85 | 0.643425 | 264 | 2,266 | 5.431818 | 0.488636 | 0.041841 | 0.027197 | 0.022315 | 0.073919 | 0.073919 | 0.073919 | 0.073919 | 0 | 0 | 0 | 0.00602 | 0.26699 | 2,266 | 69 | 86 | 32.84058 | 0.857315 | 0.242718 | 0 | 0.130435 | 0 | 0 | 0.110458 | 0.015864 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.152174 | 0 | 0.282609 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
754dac0e8cf500789ecfeda325c3a9fbc0897972 | 1,599 | py | Python | scripts/chlam_hpi.py | SuLab/WikiGenomesBase | ad18eca6e298423fe662030829d87a5fb8c51445 | [
"MIT"
] | 4 | 2018-09-12T20:17:31.000Z | 2020-09-21T19:09:59.000Z | scripts/chlam_hpi.py | sabahzero/WikiGenomesBase | ad18eca6e298423fe662030829d87a5fb8c51445 | [
"MIT"
] | 112 | 2017-06-19T20:00:14.000Z | 2018-07-27T17:09:06.000Z | scripts/chlam_hpi.py | putmantime/wikigenomes2 | ad18eca6e298423fe662030829d87a5fb8c51445 | [
"MIT"
] | 2 | 2017-09-11T17:13:51.000Z | 2018-05-02T22:38:08.000Z | import WD_Utils
from wikidataintegrator import wdi_core, wdi_login
import getpass
username = "djow2019"
password = getpass.getpass("Password:\n")
count = 0
d_strain = "272561"
l2_strain = "471472"
sparql = WD_Utils.WDSparqlQueries()
login = wdi_login.WDLogin(user=username, pwd=password)
ref = wdi_core.WDItemID(value... | 39 | 118 | 0.609756 | 199 | 1,599 | 4.733668 | 0.422111 | 0.037155 | 0.042463 | 0.063694 | 0.046709 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050413 | 0.243277 | 1,599 | 41 | 119 | 39 | 0.728099 | 0 | 0 | 0 | 0 | 0 | 0.105625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0.096774 | 0.096774 | 0 | 0.129032 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
754ddcd238231f49dcf03d24e0df0ee83ab336d3 | 1,491 | py | Python | EkList/migrations/0001_initial.py | HubbeKing/EkList | bc4c16344309a2ebee72792c8a225ba460291fc4 | [
"MIT"
] | null | null | null | EkList/migrations/0001_initial.py | HubbeKing/EkList | bc4c16344309a2ebee72792c8a225ba460291fc4 | [
"MIT"
] | 1 | 2017-05-18T09:54:59.000Z | 2017-05-18T10:11:11.000Z | EkList/migrations/0001_initial.py | HubbeKing/EkList | bc4c16344309a2ebee72792c8a225ba460291fc4 | [
"MIT"
] | 2 | 2017-05-18T09:53:44.000Z | 2019-01-15T08:03:00.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-11-02 09:53
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Auctio... | 35.5 | 114 | 0.558015 | 128 | 1,491 | 6.328125 | 0.53125 | 0.039506 | 0.066667 | 0.088889 | 0.195062 | 0.195062 | 0.195062 | 0.195062 | 0.195062 | 0.195062 | 0 | 0.021154 | 0.302482 | 1,491 | 41 | 115 | 36.365854 | 0.757692 | 0.045607 | 0 | 0.30303 | 1 | 0 | 0.114085 | 0.014789 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.060606 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7555889b53fc0426eb125b9fe89d775face88e34 | 708 | py | Python | models/Shared.py | jfbaeta/hope | 9912344df0f2096a6e961d8549a9d092acceaed7 | [
"MIT"
] | 1 | 2018-02-19T14:39:44.000Z | 2018-02-19T14:39:44.000Z | models/Shared.py | jfbaeta/hope | 9912344df0f2096a6e961d8549a9d092acceaed7 | [
"MIT"
] | null | null | null | models/Shared.py | jfbaeta/hope | 9912344df0f2096a6e961d8549a9d092acceaed7 | [
"MIT"
] | 1 | 2019-01-16T14:09:45.000Z | 2019-01-16T14:09:45.000Z | # -*- coding: UTF-8 -*-
class Shared(object):
'''
Class used for /hana/shared attributes.
Attributes and methods are passed to other LVM Classes.
'''
name = 'shared'
vg_physical_extent_size = '-s 1M'
vg_data_alignment = '--dataalignment 1M'
vg_args = vg_physical_extent... | 29.5 | 76 | 0.562147 | 87 | 708 | 4.183908 | 0.517241 | 0.054945 | 0.087912 | 0.10989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029474 | 0.329096 | 708 | 24 | 77 | 29.5 | 0.736842 | 0.166667 | 0 | 0 | 0 | 0 | 0.136207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.928571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
755a9a3b90bfc3071031f1ea1399103c15652bbe | 2,461 | py | Python | reader.py | neogeek/reader.py | 453b41b110bd900b138c25296ef46a0a01f50646 | [
"MIT"
] | null | null | null | reader.py | neogeek/reader.py | 453b41b110bd900b138c25296ef46a0a01f50646 | [
"MIT"
] | null | null | null | reader.py | neogeek/reader.py | 453b41b110bd900b138c25296ef46a0a01f50646 | [
"MIT"
] | null | null | null | import pickle
from hashlib import sha256
from urlparse import urlparse
from xml.dom import minidom
from fetch_remote_file import *
class Reader():
cache = '/tmp/'
expire = 5
feeds = []
hashes = []
stories = []
def __init__(self):
if not os.path.exists(self.cache):
os... | 28.287356 | 102 | 0.517676 | 255 | 2,461 | 4.964706 | 0.27451 | 0.063981 | 0.041074 | 0.045024 | 0.567141 | 0.383886 | 0.383886 | 0.383886 | 0.383886 | 0.383886 | 0 | 0.020228 | 0.357172 | 2,461 | 86 | 103 | 28.616279 | 0.780025 | 0 | 0 | 0.4 | 0 | 0 | 0.063795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.018182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
756004f380074037d11c4e8ac4acb619eb47ca51 | 321 | py | Python | exercicios/ex016.py | luccasocastro/Curso-Python | 7ad2b980bb2f95f833811291273d6ca1beb0fe77 | [
"MIT"
] | null | null | null | exercicios/ex016.py | luccasocastro/Curso-Python | 7ad2b980bb2f95f833811291273d6ca1beb0fe77 | [
"MIT"
] | null | null | null | exercicios/ex016.py | luccasocastro/Curso-Python | 7ad2b980bb2f95f833811291273d6ca1beb0fe77 | [
"MIT"
] | null | null | null | # seno cosseno e tangente
from math import radians, sin, cos, tan
an = float(input('Digite o ângulo que você deseja: '))
seno = sin(radians(an))
cosseno = cos(radians(an))
tangente = tan(radians(an))
print('O ângulo de {} tem o SENO de {:.2f}, COSSENO de {:.2f} e TANGENTE de {:.2f}'.format(an, seno, cosseno, tangente))... | 40.125 | 120 | 0.685358 | 53 | 321 | 4.150943 | 0.471698 | 0.122727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011029 | 0.152648 | 321 | 7 | 121 | 45.857143 | 0.797794 | 0.071651 | 0 | 0 | 0 | 0.166667 | 0.364865 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 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 |
756026d99e1f732ef54624682c4364e13b916460 | 407 | py | Python | easy/python/000_014_longest_common_prefix/solution.py | bigpick/leetcode | d1ade42df40c55562aa3d50e6f16ec944d9cc862 | [
"MIT"
] | null | null | null | easy/python/000_014_longest_common_prefix/solution.py | bigpick/leetcode | d1ade42df40c55562aa3d50e6f16ec944d9cc862 | [
"MIT"
] | null | null | null | easy/python/000_014_longest_common_prefix/solution.py | bigpick/leetcode | d1ade42df40c55562aa3d50e6f16ec944d9cc862 | [
"MIT"
] | null | null | null | class Solution:
def longestCommonPrefix(self, strs: List[str]) -> str:
shortest = min(strs, key=len)
longest_common = ""
for idx, char in enumerate(shortest):
for word in strs:
if word[idx] != char:
return longest_common
longest_co... | 27.133333 | 58 | 0.55774 | 45 | 407 | 4.955556 | 0.622222 | 0.233184 | 0.170404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.366093 | 407 | 14 | 59 | 29.071429 | 0.864341 | 0.076167 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.4 | 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 |
f32c85710f66bc87f3129749c7f40afbbf32ac48 | 11,519 | py | Python | library/nsxt_logical_routers.py | lcamarda/bap | f1215422ee94d385685fb2dd881a8f840f17acd4 | [
"BSD-2-Clause"
] | 1 | 2019-05-21T09:13:58.000Z | 2019-05-21T09:13:58.000Z | library/nsxt_logical_routers.py | lcamarda/bap | f1215422ee94d385685fb2dd881a8f840f17acd4 | [
"BSD-2-Clause"
] | null | null | null | library/nsxt_logical_routers.py | lcamarda/bap | f1215422ee94d385685fb2dd881a8f840f17acd4 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
#
# Copyright 2018 VMware, Inc.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
# BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL... | 55.917476 | 190 | 0.695981 | 1,436 | 11,519 | 5.241643 | 0.175487 | 0.098446 | 0.050219 | 0.054205 | 0.559054 | 0.446924 | 0.369204 | 0.329746 | 0.306497 | 0.291883 | 0 | 0.003377 | 0.202969 | 11,519 | 205 | 191 | 56.190244 | 0.816469 | 0.074659 | 0 | 0.220859 | 0 | 0 | 0.197839 | 0.022546 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042945 | false | 0.122699 | 0.030675 | 0 | 0.147239 | 0.006135 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f332c5f34ec0f03722736680b2416f6b68860fa0 | 430 | py | Python | LeetCode/Unique Number Of Occurances/Unique_Occurances.py | GSri30/Competetive_programming | 0dc1681500a80b6f0979d0dc9f749357ee07bcb8 | [
"MIT"
] | 22 | 2020-01-03T17:32:00.000Z | 2021-11-07T09:31:44.000Z | LeetCode/Unique Number Of Occurances/Unique_Occurances.py | GSri30/Competetive_programming | 0dc1681500a80b6f0979d0dc9f749357ee07bcb8 | [
"MIT"
] | 10 | 2020-09-30T09:41:18.000Z | 2020-10-11T11:25:09.000Z | LeetCode/Unique Number Of Occurances/Unique_Occurances.py | GSri30/Competetive_programming | 0dc1681500a80b6f0979d0dc9f749357ee07bcb8 | [
"MIT"
] | 25 | 2019-10-14T19:25:01.000Z | 2021-05-26T08:12:20.000Z | class Solution:
def uniqueOccurrences(self, arr: List[int]) -> bool:
dict = {}
for i in arr :
if i in dict :
dict[i] += 1
else :
dict[i] = 1
count = 0
s = set(dict.values())
ns = len(s)
nl = len(... | 22.631579 | 56 | 0.374419 | 46 | 430 | 3.5 | 0.586957 | 0.037267 | 0.074534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014706 | 0.525581 | 430 | 18 | 57 | 23.888889 | 0.77451 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.25 | 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 |
f333ef9c0ffb044d9129a65057061f3d63d48979 | 422 | py | Python | saleor/account/migrations/0038_address_pinyin.py | lorne-luo/thor | 786ce80225e398df292d1b7b0d518f0086ef03ff | [
"CC-BY-4.0"
] | null | null | null | saleor/account/migrations/0038_address_pinyin.py | lorne-luo/thor | 786ce80225e398df292d1b7b0d518f0086ef03ff | [
"CC-BY-4.0"
] | 10 | 2020-03-24T17:40:36.000Z | 2022-02-10T19:22:24.000Z | saleor/account/migrations/0038_address_pinyin.py | lorne-luo/thor | 786ce80225e398df292d1b7b0d518f0086ef03ff | [
"CC-BY-4.0"
] | null | null | null | # Generated by Django 2.2.6 on 2020-02-02 23:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('account', '0037_auto_20200131_1640'),
]
operations = [
migrations.AddField(
model_name='address',
name='pinyin',
... | 22.210526 | 87 | 0.613744 | 47 | 422 | 5.382979 | 0.787234 | 0.079051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113269 | 0.267773 | 422 | 18 | 88 | 23.444444 | 0.705502 | 0.106635 | 0 | 0 | 1 | 0 | 0.130667 | 0.061333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f34016bd7ed4414e1257be5406216b1575ec8a54 | 2,279 | py | Python | purify.py | pgalatic/zeitgeist | 9c74ead7fd3870f3f6d9fbafd96946ce131c8bd8 | [
"MIT"
] | null | null | null | purify.py | pgalatic/zeitgeist | 9c74ead7fd3870f3f6d9fbafd96946ce131c8bd8 | [
"MIT"
] | null | null | null | purify.py | pgalatic/zeitgeist | 9c74ead7fd3870f3f6d9fbafd96946ce131c8bd8 | [
"MIT"
] | null | null | null | # author: Paul Galatic
#
# Program to preprocess Twitter text data and create 'blob files' that contain
# only the text.
#
# STD LIB
import re
import os
import csv
import sys
import time
import string
import pathlib
# EXTERNAL LIB
# PROJECT LIB
from extern import *
# CONSTANTS
TIME_FORMAT = '%H:%M:%S'
def cleanse(... | 32.557143 | 103 | 0.577446 | 313 | 2,279 | 4.086262 | 0.444089 | 0.021892 | 0.043002 | 0.021892 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01863 | 0.269855 | 2,279 | 69 | 104 | 33.028986 | 0.75 | 0.289601 | 0 | 0 | 0 | 0.027778 | 0.180113 | 0.132583 | 0 | 0 | 0 | 0.014493 | 0 | 1 | 0.027778 | false | 0 | 0.222222 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f340401d028dcebbe3c09a2509cbca3beec3aafa | 383 | py | Python | examples/ledclass.py | martinohanlon/microbit-micropython | 1ee0654f97ef8e4696c9b3e6ef04da69e9ead148 | [
"MIT"
] | 19 | 2016-05-29T22:47:50.000Z | 2021-11-17T06:50:14.000Z | examples/ledclass.py | martinohanlon/microbit-micropython | 1ee0654f97ef8e4696c9b3e6ef04da69e9ead148 | [
"MIT"
] | 1 | 2016-08-14T21:05:34.000Z | 2016-08-14T21:05:34.000Z | examples/ledclass.py | martinohanlon/microbit-micropython | 1ee0654f97ef8e4696c9b3e6ef04da69e9ead148 | [
"MIT"
] | 10 | 2015-12-10T10:27:20.000Z | 2018-08-08T09:28:08.000Z | import microbit
class LED():
def __init__(self, x, y):
self.x = x
self.y = y
def on(self, brightness = 9):
microbit.display.set_pixel(self.x, self.y, brightness)
def off(self):
microbit.display.set_pixel(self.x, self.y, 0)
led = LED(2,2)
while True:
led.on()
... | 17.409091 | 62 | 0.574413 | 57 | 383 | 3.754386 | 0.385965 | 0.093458 | 0.084112 | 0.214953 | 0.308411 | 0.308411 | 0.308411 | 0.308411 | 0 | 0 | 0 | 0.03663 | 0.287206 | 383 | 21 | 63 | 18.238095 | 0.747253 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.066667 | 0 | 0.333333 | 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 |
f34949d47f7936e798a53ad64e859cba8c04a2e0 | 645 | py | Python | backend/tabby/app/migrations/0003_auto_20210711_1855.py | WhitePrime/tabby-web | 156341173a42de346b1785602961da40d77a3c66 | [
"MIT"
] | 91 | 2021-11-01T06:02:15.000Z | 2022-03-31T16:02:37.000Z | backend/tabby/app/migrations/0003_auto_20210711_1855.py | WhitePrime/tabby-web | 156341173a42de346b1785602961da40d77a3c66 | [
"MIT"
] | 23 | 2021-11-14T17:10:01.000Z | 2022-03-28T21:40:25.000Z | backend/tabby/app/migrations/0003_auto_20210711_1855.py | WhitePrime/tabby-web | 156341173a42de346b1785602961da40d77a3c66 | [
"MIT"
] | 12 | 2021-12-02T02:25:04.000Z | 2022-03-19T11:48:03.000Z | # Generated by Django 3.2.3 on 2021-07-11 18:55
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('app', '0002_gateway'),
]
operations = [
migrations.AddField(
model_name='gateway',
... | 25.8 | 128 | 0.606202 | 71 | 645 | 5.394366 | 0.619718 | 0.062663 | 0.073107 | 0.114883 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048729 | 0.268217 | 645 | 24 | 129 | 26.875 | 0.762712 | 0.069767 | 0 | 0.111111 | 1 | 0 | 0.100334 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f34b2a78576c3a921dd4f648a56ef62ef6721397 | 921 | py | Python | data_flow/get_spot_check_data_from_kafka.py | ZouJoshua/deeptext_project | efb4db34a4a22951bba4ae724d05c41958bbd347 | [
"Apache-2.0"
] | 2 | 2021-03-01T06:37:27.000Z | 2021-04-07T09:40:55.000Z | data_flow/get_spot_check_data_from_kafka.py | ZouJoshua/deeptext_project | efb4db34a4a22951bba4ae724d05c41958bbd347 | [
"Apache-2.0"
] | 5 | 2020-09-26T01:16:58.000Z | 2022-02-10T01:49:30.000Z | data_flow/get_spot_check_data_from_kafka.py | ZouJoshua/deeptext_project | efb4db34a4a22951bba4ae724d05c41958bbd347 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@Author : Joshua
@Time : 2020/6/30 6:09 下午
@File : get_spot_check_data_from_kafka.py
@Desc : 从kafka队列获取谛听标注数据
"""
import kafka_handler
import time
# kafka.
kafka_user = "recommend_online"
kafka_password = "WGlQV0JCZUVXZg=="
kakfa_servers = "moli-kafka.prd.v... | 24.236842 | 89 | 0.639522 | 120 | 921 | 4.583333 | 0.633333 | 0.014545 | 0.069091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023743 | 0.222584 | 921 | 37 | 90 | 24.891892 | 0.744413 | 0.183496 | 0 | 0 | 0 | 0 | 0.190541 | 0.077027 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.1 | 0.1 | 0 | 0.15 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f351a0555869ea7f93e3a6b5439f13f871425b78 | 1,616 | py | Python | mpol.py | jbro/mpollinate | aa6001397097652169dc3011371249ca87b3fc17 | [
"BSD-3-Clause"
] | null | null | null | mpol.py | jbro/mpollinate | aa6001397097652169dc3011371249ca87b3fc17 | [
"BSD-3-Clause"
] | null | null | null | mpol.py | jbro/mpollinate | aa6001397097652169dc3011371249ca87b3fc17 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import argparse
import fcntl
import getopt
import hashlib
import os
import random
import struct
import sys
import urllib
import urllib2
def add_entropy(rnd, count):
fd = os.open("/dev/random", os.O_WRONLY)
# struct rand_pool_info {
# int entropy_count;
# int buf_size;
# __u32 ... | 31.686275 | 174 | 0.683168 | 232 | 1,616 | 4.663793 | 0.487069 | 0.022181 | 0.033272 | 0.036969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033962 | 0.180074 | 1,616 | 50 | 175 | 32.32 | 0.782642 | 0.058168 | 0 | 0 | 0 | 0 | 0.20066 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.263158 | null | null | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f353a3359955dc76da7cdbc16351ad6042a1a360 | 4,386 | py | Python | pyfoamsetup/coreLibrary/turbulenceProperties.py | BeaAnn/pyfoamsetup | fba265610c3f2d094179c1488fe80451aba8067a | [
"MIT"
] | 7 | 2019-08-29T18:23:42.000Z | 2022-02-17T14:28:37.000Z | pyfoamsetup/coreLibrary/turbulenceProperties.py | aakash30jan/pyfoamsetup | 5908aea41bfbde3fad7d6957feab58a50d58e262 | [
"MIT"
] | null | null | null | pyfoamsetup/coreLibrary/turbulenceProperties.py | aakash30jan/pyfoamsetup | 5908aea41bfbde3fad7d6957feab58a50d58e262 | [
"MIT"
] | 5 | 2021-03-12T02:47:15.000Z | 2021-12-01T13:55:57.000Z | import numpy as np
import os
from collections import OrderedDict
import pyfoamsetup.coreLibrary.FileHandling as FileHandling
import pyfoamsetup.coreLibrary.FoamFile as FoamFile
class Dict(FoamFile.Dict):
def __init__(self, U, L, nu, model, modelType):
super().__init__()
self.U = U
self.L = L
... | 41.771429 | 95 | 0.693114 | 451 | 4,386 | 6.722838 | 0.223947 | 0.213061 | 0.120053 | 0.065303 | 0.488456 | 0.208773 | 0.129947 | 0.03628 | 0 | 0 | 0 | 0.015291 | 0.135203 | 4,386 | 105 | 96 | 41.771429 | 0.784076 | 0.00342 | 0 | 0.091954 | 0 | 0 | 0.298627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045977 | false | 0 | 0.057471 | 0 | 0.114943 | 0.022989 | 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 |
f3594675078aef09a009009c3b72fc19efc15eed | 952 | py | Python | book_sites/book/migrations/0005_auto_20180205_1528.py | Michelle-Hung/Books | 4f38307974cdae03f7f104e6ad1aa3d051979847 | [
"MIT"
] | null | null | null | book_sites/book/migrations/0005_auto_20180205_1528.py | Michelle-Hung/Books | 4f38307974cdae03f7f104e6ad1aa3d051979847 | [
"MIT"
] | null | null | null | book_sites/book/migrations/0005_auto_20180205_1528.py | Michelle-Hung/Books | 4f38307974cdae03f7f104e6ad1aa3d051979847 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.9 on 2018-02-05 07:28
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
import django.utils.timezone
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('book', '0... | 27.2 | 105 | 0.610294 | 104 | 952 | 5.442308 | 0.557692 | 0.056537 | 0.100707 | 0.090106 | 0.130742 | 0.130742 | 0 | 0 | 0 | 0 | 0 | 0.057971 | 0.27521 | 952 | 34 | 106 | 28 | 0.762319 | 0.071429 | 0 | 0.296296 | 1 | 0 | 0.07832 | 0.024972 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.185185 | 0 | 0.296296 | 0 | 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 |
f35f68a6fc83bd3edabd1e473650c4c873f12112 | 2,320 | py | Python | tests/adaptors/residueadaptortestcase.py | tlb-lab/credoscript | 32bdf08d84703dc2062dae4df1a95587d36c3cf7 | [
"MIT"
] | null | null | null | tests/adaptors/residueadaptortestcase.py | tlb-lab/credoscript | 32bdf08d84703dc2062dae4df1a95587d36c3cf7 | [
"MIT"
] | null | null | null | tests/adaptors/residueadaptortestcase.py | tlb-lab/credoscript | 32bdf08d84703dc2062dae4df1a95587d36c3cf7 | [
"MIT"
] | null | null | null | from credoscript import adaptors, models
from tests import CredoAdaptorTestCase
class ResidueAdaptorTestCase(CredoAdaptorTestCase):
def setUp(self):
self.adaptor = adaptors.ResidueAdaptor()
self.expected_entity = models.Residue
def test_fetch_by_residue_id(self):
"""Fetch a si... | 46.4 | 98 | 0.714224 | 293 | 2,320 | 5.303754 | 0.204778 | 0.108108 | 0.069498 | 0.07722 | 0.584299 | 0.507722 | 0.383526 | 0.342342 | 0.166667 | 0.137066 | 0 | 0.013065 | 0.20819 | 2,320 | 50 | 99 | 46.4 | 0.83288 | 0.24569 | 0 | 0 | 0 | 0 | 0.165441 | 0.143382 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.37037 | false | 0 | 0.074074 | 0 | 0.481481 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f36c9cc414c0cad33db2e42b3fa6b812f3448a64 | 5,311 | py | Python | tests/test_inspector.py | zsimic/runez | 2a8ca29871a80ce88fb1e72a7e2b7445f2743fe6 | [
"MIT"
] | 2 | 2019-03-15T00:26:57.000Z | 2020-05-21T02:01:39.000Z | tests/test_inspector.py | codrsquad/runez | 54091c012995a16b41a82de78cd45a2f1ef98bc3 | [
"MIT"
] | 4 | 2019-02-18T03:41:05.000Z | 2020-12-18T05:42:36.000Z | tests/test_inspector.py | codrsquad/runez | 54091c012995a16b41a82de78cd45a2f1ef98bc3 | [
"MIT"
] | 2 | 2019-03-25T04:26:49.000Z | 2019-04-10T09:56:53.000Z | import os
import sys
from unittest.mock import MagicMock, patch
import pytest
import runez
from runez.inspector import auto_import_siblings, AutoInstall, ImportTime
def importable_test_py_files(folder):
"""Finds all .py files in tests/ folder, used for auto-import validation"""
for fname in os.listdir(folde... | 34.940789 | 135 | 0.692902 | 720 | 5,311 | 4.972222 | 0.266667 | 0.027933 | 0.045251 | 0.046927 | 0.326816 | 0.290503 | 0.222067 | 0.199721 | 0.163408 | 0.163408 | 0 | 0.004718 | 0.201845 | 5,311 | 151 | 136 | 35.172185 | 0.839821 | 0.129731 | 0 | 0.269231 | 0 | 0 | 0.188302 | 0.021744 | 0 | 0 | 0 | 0 | 0.394231 | 1 | 0.086538 | false | 0.028846 | 0.384615 | 0.009615 | 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 |
f377a8b84c40a692a6e56515de5e2c6a471a42b1 | 1,928 | py | Python | busshaming/models/trip.py | katharosada/busshaming | c8d7cd4baf9ff049cda49c92da4d5ca10f68e6a9 | [
"MIT"
] | 42 | 2018-01-20T01:12:25.000Z | 2022-02-02T01:40:17.000Z | busshaming/models/trip.py | katharosada/busshaming | c8d7cd4baf9ff049cda49c92da4d5ca10f68e6a9 | [
"MIT"
] | 2 | 2018-01-24T03:58:17.000Z | 2018-06-10T01:05:57.000Z | busshaming/models/trip.py | katharosada/busshaming | c8d7cd4baf9ff049cda49c92da4d5ca10f68e6a9 | [
"MIT"
] | 7 | 2018-01-24T05:49:13.000Z | 2018-12-03T08:47:43.000Z | from django.db import models
from django.db import transaction
class Trip(models.Model):
gtfs_trip_id = models.CharField(max_length=200)
version = models.IntegerField(default=0)
active = models.BooleanField()
route = models.ForeignKey('Route')
stop_sequence = models.ForeignKey('StopSequence', blan... | 40.166667 | 90 | 0.64471 | 220 | 1,928 | 5.377273 | 0.327273 | 0.040575 | 0.050719 | 0.057481 | 0.118343 | 0.074387 | 0.074387 | 0.074387 | 0.074387 | 0 | 0 | 0.007774 | 0.266079 | 1,928 | 47 | 91 | 41.021277 | 0.828269 | 0 | 0 | 0 | 0 | 0.02439 | 0.05864 | 0.012455 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0 | 0.04878 | 0.02439 | 0.536585 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f38f79596a44d334b213b43aad7539ce0cb3763a | 1,174 | py | Python | waypoints/migrations/0026_create_dhl_entity.py | Oswaldinho24k/geo-csv | 0100435c5d5a5fd12133b376b305e8fa79ddb8f0 | [
"MIT"
] | null | null | null | waypoints/migrations/0026_create_dhl_entity.py | Oswaldinho24k/geo-csv | 0100435c5d5a5fd12133b376b305e8fa79ddb8f0 | [
"MIT"
] | null | null | null | waypoints/migrations/0026_create_dhl_entity.py | Oswaldinho24k/geo-csv | 0100435c5d5a5fd12133b376b305e8fa79ddb8f0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-10-27 01:09
from __future__ import unicode_literals
from django.db import migrations
def create_entity(apps, schema_editor):
Entity = apps.get_model('waypoints', 'Entity')
WaypointGroup = apps.get_model('waypoints', 'WaypointGroup')
db_alias = s... | 34.529412 | 86 | 0.723169 | 159 | 1,174 | 5.144654 | 0.45283 | 0.059902 | 0.085575 | 0.116137 | 0.415648 | 0.415648 | 0.266504 | 0.227384 | 0.134474 | 0.134474 | 0 | 0.020916 | 0.144804 | 1,174 | 33 | 87 | 35.575758 | 0.793825 | 0.228279 | 0 | 0.181818 | 1 | 0 | 0.107778 | 0.027778 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.318182 | 0 | 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 |
f39148621458918eb97d552100b56d5070c764c3 | 4,845 | py | Python | tests/oper/test_arithmetic.py | BentleyJOakes/rtamt | 5366349c44afb53cffa5fb29e43fea1eb23b6c52 | [
"BSD-2-Clause-FreeBSD",
"BSD-3-Clause"
] | null | null | null | tests/oper/test_arithmetic.py | BentleyJOakes/rtamt | 5366349c44afb53cffa5fb29e43fea1eb23b6c52 | [
"BSD-2-Clause-FreeBSD",
"BSD-3-Clause"
] | null | null | null | tests/oper/test_arithmetic.py | BentleyJOakes/rtamt | 5366349c44afb53cffa5fb29e43fea1eb23b6c52 | [
"BSD-2-Clause-FreeBSD",
"BSD-3-Clause"
] | null | null | null | import unittest
from rtamt.operation.arithmetic.subtraction_operation import SubtractionOperation
from rtamt.operation.arithmetic.addition_operation import AdditionOperation
from rtamt.operation.arithmetic.multiplication_operation import MultiplicationOperation
from rtamt.operation.arithmetic.division_operation import... | 30.28125 | 87 | 0.620433 | 563 | 4,845 | 5.293073 | 0.117229 | 0.125839 | 0.159396 | 0.167785 | 0.636577 | 0.62953 | 0.548993 | 0.434899 | 0.420134 | 0.395302 | 0 | 0.055094 | 0.254489 | 4,845 | 160 | 88 | 30.28125 | 0.769934 | 0 | 0 | 0.418803 | 0 | 0 | 0.037763 | 0 | 0 | 0 | 0 | 0 | 0.213675 | 1 | 0.051282 | false | 0 | 0.059829 | 0 | 0.119658 | 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 |
f3a216ae2cc9f63749307f6639e87dfc3e1df7f0 | 3,919 | py | Python | uploadFile.py | giangpvit/googledrivepythonsample | 16a5186a23f1646d03c194b0d410c92982f80520 | [
"Apache-2.0"
] | null | null | null | uploadFile.py | giangpvit/googledrivepythonsample | 16a5186a23f1646d03c194b0d410c92982f80520 | [
"Apache-2.0"
] | null | null | null | uploadFile.py | giangpvit/googledrivepythonsample | 16a5186a23f1646d03c194b0d410c92982f80520 | [
"Apache-2.0"
] | null | null | null | import os
from os.path import basename
import apiclient
from oauth2client import client
from oauth2client import tools
from oauth2client.file import Storage
import httplib2
try:
import argparse
flags = argparse.ArgumentParser(parents=[tools.argparser]).parse_args()
except ImportError:
flags = None
# If m... | 35.306306 | 105 | 0.684869 | 480 | 3,919 | 5.470833 | 0.327083 | 0.050267 | 0.011424 | 0.01904 | 0.120335 | 0.041889 | 0.041889 | 0.041889 | 0 | 0 | 0 | 0.003849 | 0.204389 | 3,919 | 110 | 106 | 35.627273 | 0.838358 | 0.111253 | 0 | 0.027397 | 0 | 0 | 0.123574 | 0.050538 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.123288 | null | null | 0.054795 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f3a280b57c4cdbb4cfefafb7f670a543bfcf8123 | 3,246 | py | Python | gcn/greedy_sampling/graph_generator.py | floregol/gcn | 23cad65c4f77a4eb007cf5f85a16d428d0928826 | [
"MIT"
] | 1 | 2018-07-09T20:08:07.000Z | 2018-07-09T20:08:07.000Z | gcn/greedy_sampling/graph_generator.py | floregol/gcn | 23cad65c4f77a4eb007cf5f85a16d428d0928826 | [
"MIT"
] | null | null | null | gcn/greedy_sampling/graph_generator.py | floregol/gcn | 23cad65c4f77a4eb007cf5f85a16d428d0928826 | [
"MIT"
] | null | null | null | import numpy as np
import networkx as nx
from itertools import combinations
from random import randrange, uniform
from numpy.linalg import inv
import scipy.sparse as sp
import pickle as pk
import os
def get_sparse_eigen_decomposition(graph, K):
adj = nx.adjacency_matrix(graph, nodelist=sorted(graph.nodes()), weig... | 34.903226 | 104 | 0.69809 | 481 | 3,246 | 4.463617 | 0.286902 | 0.074523 | 0.041919 | 0.050303 | 0.392641 | 0.378668 | 0.361435 | 0.333489 | 0.29809 | 0.29809 | 0 | 0.011206 | 0.202711 | 3,246 | 93 | 105 | 34.903226 | 0.818393 | 0.163586 | 0 | 0.294118 | 0 | 0 | 0.011469 | 0 | 0 | 0 | 0 | 0.010753 | 0 | 1 | 0.132353 | false | 0 | 0.117647 | 0 | 0.382353 | 0.014706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
f3a52688295daac831b440103bafd1aa5b75082d | 477 | py | Python | constants/logs.py | wssholmes/CapsuleNet | 14799f21b85f1b39605cee43e237e2999b8b490f | [
"MIT"
] | null | null | null | constants/logs.py | wssholmes/CapsuleNet | 14799f21b85f1b39605cee43e237e2999b8b490f | [
"MIT"
] | null | null | null | constants/logs.py | wssholmes/CapsuleNet | 14799f21b85f1b39605cee43e237e2999b8b490f | [
"MIT"
] | null | null | null | LOG_EPOCH = 'epoch'
LOG_TRAIN_LOSS = 'train_loss'
LOG_TRAIN_ACC = 'train_acc'
LOG_VAL_LOSS = 'val_loss'
LOG_VAL_ACC = 'val_acc'
LOG_FIELDS = [LOG_EPOCH, LOG_TRAIN_LOSS, LOG_TRAIN_ACC, LOG_VAL_LOSS, LOG_VAL_ACC]
LOG_COLOR_HEADER = '\033[95m'
LOG_COLOR_OKBLUE = '\033[94m'
LOG_COLOR_OKCYAN = '\033[96m'
LOG_COLOR_OKGREEN =... | 29.8125 | 82 | 0.756813 | 84 | 477 | 3.809524 | 0.321429 | 0.225 | 0.08125 | 0.10625 | 0.290625 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098131 | 0.102725 | 477 | 15 | 83 | 31.8 | 0.649533 | 0 | 0 | 0 | 0 | 0 | 0.226415 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
f3a792bf4e8d9486c994fc86bce73540a63f3c76 | 474 | py | Python | project/migrations/0037_auto_20210201_1146.py | ARCCA/cogs3 | bcfe4397e1c91607e231f97df7d05b924e6598da | [
"MIT"
] | 1 | 2020-03-28T23:55:02.000Z | 2020-03-28T23:55:02.000Z | project/migrations/0037_auto_20210201_1146.py | ARCCA/cogs3 | bcfe4397e1c91607e231f97df7d05b924e6598da | [
"MIT"
] | 60 | 2018-04-16T13:40:23.000Z | 2020-06-05T18:02:01.000Z | project/migrations/0037_auto_20210201_1146.py | ARCCA/cogs3 | bcfe4397e1c91607e231f97df7d05b924e6598da | [
"MIT"
] | 10 | 2018-03-14T22:25:50.000Z | 2020-01-09T21:32:22.000Z | # Generated by Django 2.2.13 on 2021-02-01 11:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('project', '0036_auto_20210201_1120'),
]
operations = [
migrations.AlterField(
model_name='project',
name='pi',
... | 24.947368 | 140 | 0.635021 | 54 | 474 | 5.462963 | 0.814815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098592 | 0.251055 | 474 | 18 | 141 | 26.333333 | 0.732394 | 0.097046 | 0 | 0 | 1 | 0 | 0.232394 | 0.053991 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f3af65b1de4b29cbe566a4440676bdeae17d2d3e | 1,853 | py | Python | Costs_DM.py | iosifidisvasileios/AdaFair | 5e4ad12a670a767dd8aaf4f7d0a68b871d1f4d1a | [
"MIT"
] | 8 | 2019-11-22T02:42:49.000Z | 2022-03-22T14:00:37.000Z | Costs_DM.py | iosifidisvasileios/AdaFair | 5e4ad12a670a767dd8aaf4f7d0a68b871d1f4d1a | [
"MIT"
] | null | null | null | Costs_DM.py | iosifidisvasileios/AdaFair | 5e4ad12a670a767dd8aaf4f7d0a68b871d1f4d1a | [
"MIT"
] | 6 | 2020-02-24T20:53:20.000Z | 2021-01-13T15:27:03.000Z | import matplotlib
import numpy
from AdaFair import AdaFair
from AdaFairEQOP import AdaFairEQOP
from my_useful_functions import plot_costs_per_round_eqop, plot_costs_per_round
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import sys
sys.path.insert(0, 'DataPreprocessing')
from Competitors.AdaCost import Ada... | 29.412698 | 116 | 0.712898 | 273 | 1,853 | 4.545788 | 0.274725 | 0.056406 | 0.051571 | 0.083803 | 0.311845 | 0.311845 | 0.311845 | 0.311845 | 0.311845 | 0.211926 | 0 | 0.007256 | 0.181867 | 1,853 | 62 | 117 | 29.887097 | 0.811346 | 0.043713 | 0 | 0 | 0 | 0 | 0.06678 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.071429 | 0.285714 | 0 | 0.380952 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f3b97da1625e48a1676a1527212bb09002616cb0 | 588 | py | Python | src/nti/app/pyramid_zope/tests/__init__.py | NextThought/nti.app.pyramid_zope | 7d2f2b1fa0a04e4973358820c1c777b6ad7e8a3c | [
"Apache-2.0"
] | 1 | 2020-05-06T04:19:59.000Z | 2020-05-06T04:19:59.000Z | src/nti/app/pyramid_zope/tests/__init__.py | NextThought/nti.app.pyramid_zope | 7d2f2b1fa0a04e4973358820c1c777b6ad7e8a3c | [
"Apache-2.0"
] | 18 | 2019-12-31T20:39:02.000Z | 2021-04-09T16:00:15.000Z | src/nti/app/pyramid_zope/tests/__init__.py | NextThought/nti.app.pyramid_zope | 7d2f2b1fa0a04e4973358820c1c777b6ad7e8a3c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function, absolute_import, division
from nti.testing.layers import ZopeComponentLayer
from nti.testing.layers import ConfiguringLayerMixin
class ConfiguringLayer(ZopeComponentLayer,
ConfiguringLayerMixin):
set_up_pa... | 22.615385 | 64 | 0.690476 | 58 | 588 | 6.844828 | 0.655172 | 0.105793 | 0.070529 | 0.100756 | 0.130982 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002179 | 0.219388 | 588 | 25 | 65 | 23.52 | 0.862745 | 0.093537 | 0 | 0.1875 | 0 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.1875 | 0 | 0.5625 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
45ee9a65faf5636e2f7d3c2a885a57d93e4c0dfc | 2,292 | py | Python | BirthdayParadox/birthday_paradox.py | tarunchhabra26/PythonPlayground | c6b7a64a37636059dbdd6f488709633c69f39f83 | [
"MIT"
] | null | null | null | BirthdayParadox/birthday_paradox.py | tarunchhabra26/PythonPlayground | c6b7a64a37636059dbdd6f488709633c69f39f83 | [
"MIT"
] | null | null | null | BirthdayParadox/birthday_paradox.py | tarunchhabra26/PythonPlayground | c6b7a64a37636059dbdd6f488709633c69f39f83 | [
"MIT"
] | 1 | 2018-06-21T21:58:33.000Z | 2018-06-21T21:58:33.000Z | #!/bin/python
"""
1. Write a function called has_duplicates that takes a list and returns True if there is any
element that appears more than once. It should not modify the original list.
2. If there are 23 students in your class, what are the chances that two of you have the same
birthday? You can estimate this prob... | 28.65 | 107 | 0.699825 | 316 | 2,292 | 4.93038 | 0.414557 | 0.028883 | 0.025032 | 0.023107 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016959 | 0.228185 | 2,292 | 79 | 108 | 29.012658 | 0.863765 | 0.027051 | 0 | 0.054054 | 0 | 0 | 0.130724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.054054 | null | null | 0.108108 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
45eebb13d449b037fae3a7bfd016893aeb564e2b | 2,750 | py | Python | testproject/testapp/tests/test_handlers_finalize_pending.py | movermeyer/django-firestone | e045089f6ff4a6686633f9c5909c314a010bd4a0 | [
"WTFPL"
] | 1 | 2017-03-08T22:58:35.000Z | 2017-03-08T22:58:35.000Z | testproject/testapp/tests/test_handlers_finalize_pending.py | movermeyer/django-firestone | e045089f6ff4a6686633f9c5909c314a010bd4a0 | [
"WTFPL"
] | null | null | null | testproject/testapp/tests/test_handlers_finalize_pending.py | movermeyer/django-firestone | e045089f6ff4a6686633f9c5909c314a010bd4a0 | [
"WTFPL"
] | 1 | 2018-03-05T17:40:55.000Z | 2018-03-05T17:40:55.000Z | """
This module tests the ``firestone.handlers.HandlerControlFlow.finalize`` method
"""
from firestone.handlers import BaseHandler
from firestone.handlers import ModelHandler
from django.test import TestCase
from django.test import RequestFactory
from django.contrib.admin.models import LogEntry
from model_mommy import ... | 27.227723 | 79 | 0.636 | 279 | 2,750 | 6.197133 | 0.215054 | 0.108155 | 0.062464 | 0.090226 | 0.656449 | 0.639676 | 0.639676 | 0.632157 | 0.609023 | 0.573742 | 0 | 0.004975 | 0.269091 | 2,750 | 100 | 80 | 27.5 | 0.855224 | 0.06 | 0 | 0.722222 | 0 | 0 | 0.002742 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.138889 | false | 0 | 0.083333 | 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 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
45ef684bc6a43b996e17fda0e6ff76f3c0f9f0b6 | 314 | py | Python | setup.py | sponchcafe/t3r_utils | 284eb1097e53f940be50f32c3bdb9b65390f43be | [
"MIT"
] | null | null | null | setup.py | sponchcafe/t3r_utils | 284eb1097e53f940be50f32c3bdb9b65390f43be | [
"MIT"
] | null | null | null | setup.py | sponchcafe/t3r_utils | 284eb1097e53f940be50f32c3bdb9b65390f43be | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='t3r_utils',
version='0.1.0',
author='sponchcafe',
py_modules=['t3r_utils'],
license='LICENSE.txt',
description='Helper utility to work with t3r timetag files.',
long_description=open('README.md').read(),
install_requires=[
"numpy",
],
)
| 20.933333 | 64 | 0.659236 | 39 | 314 | 5.179487 | 0.820513 | 0.079208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023438 | 0.184713 | 314 | 14 | 65 | 22.428571 | 0.765625 | 0 | 0 | 0 | 0 | 0 | 0.33121 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
45f1ff669f1fcb8a04299fa63f6bf95b5619a708 | 615 | py | Python | pyccolo/fast/__init__.py | smacke/pyccolo | 58a6ea2b57143fcba37d1f52f7fa4d29c712f336 | [
"BSD-3-Clause"
] | 65 | 2022-01-20T09:37:06.000Z | 2022-03-08T23:56:36.000Z | pyccolo/fast/__init__.py | smacke/pyccolo | 58a6ea2b57143fcba37d1f52f7fa4d29c712f336 | [
"BSD-3-Clause"
] | null | null | null | pyccolo/fast/__init__.py | smacke/pyccolo | 58a6ea2b57143fcba37d1f52f7fa4d29c712f336 | [
"BSD-3-Clause"
] | 3 | 2022-01-21T18:16:31.000Z | 2022-01-27T09:19:18.000Z | # -*- coding: utf-8 -*-
import ast
from .._fast import (
EmitterMixin,
FastAst,
make_composite_condition,
make_test,
subscript_to_slice,
)
location_of = FastAst.location_of
kw = FastAst.kw
kwargs = FastAst.kwargs
for name in dir(FastAst):
if hasattr(ast, name):
globals()[name] = getatt... | 18.088235 | 67 | 0.653659 | 76 | 615 | 5 | 0.447368 | 0.078947 | 0.121053 | 0.168421 | 0.526316 | 0.526316 | 0.526316 | 0.526316 | 0.526316 | 0.342105 | 0 | 0.002096 | 0.22439 | 615 | 33 | 68 | 18.636364 | 0.794549 | 0.087805 | 0 | 0 | 0 | 0 | 0.159498 | 0.043011 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.08 | 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 |
45f2836e85d8ac1a51f9d8b7a2030b7567bd7731 | 10,392 | py | Python | isi_sdk/models/settings_global_settings.py | Atomicology/isilon_sdk_python | 91039da803ae37ed4abf8d2a3f59c333f3ef1866 | [
"MIT"
] | null | null | null | isi_sdk/models/settings_global_settings.py | Atomicology/isilon_sdk_python | 91039da803ae37ed4abf8d2a3f59c333f3ef1866 | [
"MIT"
] | null | null | null | isi_sdk/models/settings_global_settings.py | Atomicology/isilon_sdk_python | 91039da803ae37ed4abf8d2a3f59c333f3ef1866 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Copyright 2016 SmartBear Software
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 applica... | 34.072131 | 163 | 0.644246 | 1,204 | 10,392 | 5.333056 | 0.162791 | 0.079427 | 0.139542 | 0.092197 | 0.636972 | 0.579038 | 0.537455 | 0.438405 | 0.37097 | 0.314281 | 0 | 0.001623 | 0.288299 | 10,392 | 304 | 164 | 34.184211 | 0.866549 | 0.492494 | 0 | 0.091743 | 0 | 0 | 0.105458 | 0.047872 | 0 | 0 | 0 | 0 | 0 | 1 | 0.201835 | false | 0 | 0.027523 | 0 | 0.357798 | 0.009174 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
45f33b4bea76f1babf41a1a984159a897bcb05b0 | 752 | py | Python | observatory/lib/pyvcs/utils.py | natestedman/Observatory | 6e810b22d844416b2a3057e99ef23baa0d122ab4 | [
"0BSD"
] | 1 | 2015-01-16T04:17:54.000Z | 2015-01-16T04:17:54.000Z | observatory/lib/pyvcs/utils.py | natestedman/Observatory | 6e810b22d844416b2a3057e99ef23baa0d122ab4 | [
"0BSD"
] | null | null | null | observatory/lib/pyvcs/utils.py | natestedman/Observatory | 6e810b22d844416b2a3057e99ef23baa0d122ab4 | [
"0BSD"
] | null | null | null | from difflib import unified_diff
from lib.pyvcs.exceptions import FileDoesNotExist
def generate_unified_diff(repository, changed_files, commit1, commit2):
diffs = []
for file_name in changed_files:
try:
file1 = repository.file_contents(file_name, commit1)
except FileDoesNotExist:
... | 35.809524 | 86 | 0.647606 | 83 | 752 | 5.710843 | 0.46988 | 0.084388 | 0.092827 | 0.109705 | 0.126582 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02139 | 0.253989 | 752 | 20 | 87 | 37.6 | 0.823529 | 0 | 0 | 0.222222 | 1 | 0 | 0.007979 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0 | 0.222222 | 0 | 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 |
45f8066c2da2bf48679eee0bacde493f8b148404 | 5,831 | py | Python | python/gen/main.py | matheussantana/99tsp-quant | 50470e390b9409b5eb1097ac6b0501cc3c7a47fc | [
"BSD-3-Clause"
] | 25 | 2017-03-17T01:26:49.000Z | 2021-05-22T07:09:18.000Z | python/gen/main.py | matheussantana/99tsp-quant | 50470e390b9409b5eb1097ac6b0501cc3c7a47fc | [
"BSD-3-Clause"
] | 2 | 2016-11-23T03:31:42.000Z | 2021-05-18T00:00:40.000Z | python/gen/main.py | matheussantana/99tsp-quant | 50470e390b9409b5eb1097ac6b0501cc3c7a47fc | [
"BSD-3-Clause"
] | 21 | 2016-11-30T06:36:18.000Z | 2021-08-06T01:45:40.000Z | import random, sys, gzip
class tour:
def __init__(self):
self.path = [None] * 1
self.fit = 0
self.travel = 0
def mutate(self):
a = random.randint(0, len(self.path)-1)
b = random.randint(0, len(self.path)-1)
temp = self.path[a]
self.path[a] = self.path[b]
self.path[b] = temp
def blanktour(self... | 21.596296 | 212 | 0.636769 | 896 | 5,831 | 4.110491 | 0.258929 | 0.043443 | 0.009775 | 0.023079 | 0.096117 | 0.089058 | 0.065707 | 0.020635 | 0.020635 | 0.020635 | 0 | 0.035792 | 0.209398 | 5,831 | 270 | 213 | 21.596296 | 0.763124 | 0.096724 | 0 | 0.098361 | 0 | 0 | 0.009139 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.005464 | null | null | 0.021858 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
45fa824fd7680a9f72028202f3852843dbcfc813 | 571 | py | Python | infra.py | Gabs48/poppy | c9dc459ea06b3a6abf2cdd7370646aa9dabf5699 | [
"MIT"
] | null | null | null | infra.py | Gabs48/poppy | c9dc459ea06b3a6abf2cdd7370646aa9dabf5699 | [
"MIT"
] | null | null | null | infra.py | Gabs48/poppy | c9dc459ea06b3a6abf2cdd7370646aa9dabf5699 | [
"MIT"
] | null | null | null | """ The infra.py file implements routines and process relative to infrastructure management and
distribution """
# Imports
# Additionnal information
__author__ = "Gabriel Urbain"
__copyright__ = "Copyright 2017, Human Brain Projet, SP10"
__license__ = "MIT"
__version__ = "0.1"
__maintainer__ = "Gabriel Urba... | 23.791667 | 96 | 0.740806 | 68 | 571 | 5.691176 | 0.838235 | 0.100775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029536 | 0.169877 | 571 | 23 | 97 | 24.826087 | 0.78692 | 0.070053 | 0 | 0 | 0 | 0 | 0.395498 | 0.073955 | 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 |
45fd4491ea84651e42ff6739cfd9a05f26debc9d | 976 | py | Python | zmq_io/in_lirc.py | flyte/zmq-io-modules | 98566e5c9c33f4ccc49eef3e3c9fadb68967418e | [
"Unlicense"
] | null | null | null | zmq_io/in_lirc.py | flyte/zmq-io-modules | 98566e5c9c33f4ccc49eef3e3c9fadb68967418e | [
"Unlicense"
] | null | null | null | zmq_io/in_lirc.py | flyte/zmq-io-modules | 98566e5c9c33f4ccc49eef3e3c9fadb68967418e | [
"Unlicense"
] | null | null | null | import argparse
import sys
import zmq
import lirc as liblirc
def parse_args():
"""
Specify and parse command line arguments.
"""
p = argparse.ArgumentParser()
p.add_argument("pub_uri")
p.add_argument("lirc_program_name")
p.add_argument("--pub_prefix", default="LIRC")
return p.parse_arg... | 23.804878 | 72 | 0.540984 | 110 | 976 | 4.590909 | 0.481818 | 0.053465 | 0.071287 | 0.059406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003106 | 0.340164 | 976 | 40 | 73 | 24.4 | 0.781056 | 0 | 0 | 0.064516 | 0 | 0 | 0.066449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.129032 | null | null | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
45fdbb6f047b5eb37c9e9e269475c018a353e9fe | 442 | py | Python | conference_scrapper/conference/migrations/0004_conference_source.py | 30mb1/conference-scrapper | 5c1232e9f5f76b1f9d21d2befa0939f95c7da10f | [
"Apache-2.0"
] | null | null | null | conference_scrapper/conference/migrations/0004_conference_source.py | 30mb1/conference-scrapper | 5c1232e9f5f76b1f9d21d2befa0939f95c7da10f | [
"Apache-2.0"
] | null | null | null | conference_scrapper/conference/migrations/0004_conference_source.py | 30mb1/conference-scrapper | 5c1232e9f5f76b1f9d21d2befa0939f95c7da10f | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.1.7 on 2019-03-18 18:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('conference', '0003_auto_20190313_1858'),
]
operations = [
migrations.AddField(
model_name='conference',
name='source... | 22.1 | 65 | 0.604072 | 47 | 442 | 5.553191 | 0.808511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104101 | 0.282805 | 442 | 19 | 66 | 23.263158 | 0.719243 | 0.10181 | 0 | 0 | 1 | 0 | 0.131646 | 0.058228 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
34068aa38f14cc809797d452632155e9752781d7 | 1,611 | py | Python | src/lib/imgproc.py | teetow/botwrunspy | 57d21cd11e9b63e416fd8818644addf66e90e5c6 | [
"Unlicense"
] | 1 | 2020-05-10T00:14:25.000Z | 2020-05-10T00:14:25.000Z | src/lib/imgproc.py | teetow/botwrunspy | 57d21cd11e9b63e416fd8818644addf66e90e5c6 | [
"Unlicense"
] | null | null | null | src/lib/imgproc.py | teetow/botwrunspy | 57d21cd11e9b63e416fd8818644addf66e90e5c6 | [
"Unlicense"
] | null | null | null | import time
from dataclasses import dataclass
import cv2
import numpy
from lib.rect import Rect
from lib.utils import dump
MAX = 255
@dataclass
class Channelmap():
r: numpy.ndarray
g: numpy.ndarray
b: numpy.ndarray
c: numpy.ndarray
m: numpy.ndarray
y: numpy.ndarray
k: numpy.ndarray
... | 22.375 | 79 | 0.623215 | 262 | 1,611 | 3.725191 | 0.278626 | 0.122951 | 0.02459 | 0.032787 | 0.146516 | 0.055328 | 0.055328 | 0.055328 | 0 | 0 | 0 | 0.026424 | 0.248293 | 1,611 | 71 | 80 | 22.690141 | 0.779521 | 0 | 0 | 0.039216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137255 | false | 0 | 0.117647 | 0 | 0.54902 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
340dec30f16023925e7e1257637cbc7468f85941 | 1,695 | py | Python | src/movies/migrations/0001_inital_base_models.py | Little-Pogchamp-Team/kinopoisk_on_django | 06e1b5ee14c7e77dd5b69140732461a02bf44566 | [
"MIT"
] | 10 | 2021-01-10T09:39:16.000Z | 2022-02-05T06:40:47.000Z | src/movies/migrations/0001_inital_base_models.py | Little-Pogchamp-Team/kinopoisk_on_django | 06e1b5ee14c7e77dd5b69140732461a02bf44566 | [
"MIT"
] | null | null | null | src/movies/migrations/0001_inital_base_models.py | Little-Pogchamp-Team/kinopoisk_on_django | 06e1b5ee14c7e77dd5b69140732461a02bf44566 | [
"MIT"
] | 1 | 2021-01-11T17:04:06.000Z | 2021-01-11T17:04:06.000Z | # Generated by Django 3.1.5 on 2021-01-12 17:27
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AU... | 38.522727 | 153 | 0.611209 | 174 | 1,695 | 5.833333 | 0.390805 | 0.031527 | 0.059113 | 0.065025 | 0.428571 | 0.399015 | 0.399015 | 0.399015 | 0.399015 | 0.399015 | 0 | 0.020602 | 0.255457 | 1,695 | 43 | 154 | 39.418605 | 0.783677 | 0.026549 | 0 | 0.416667 | 1 | 0 | 0.06068 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.222222 | 0 | 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 |
34183a289fa44af2672b0625a38541d535332c70 | 912 | py | Python | computer_management/port_scanner.py | Doom-137/Python-Scripts-for-IT | 76128a0f9c976154f405b06b7192187abfad9449 | [
"MIT"
] | null | null | null | computer_management/port_scanner.py | Doom-137/Python-Scripts-for-IT | 76128a0f9c976154f405b06b7192187abfad9449 | [
"MIT"
] | null | null | null | computer_management/port_scanner.py | Doom-137/Python-Scripts-for-IT | 76128a0f9c976154f405b06b7192187abfad9449 | [
"MIT"
] | null | null | null | import socket
import subprocess
import sys
from datetime import datetime
subprocess.call('clear', shell=True)
# Enter the IP address to scan
hostName = raw_input("IP address: ")
hostNameIP = socket.gethostbyname(hostName)
print "Scanning host", hostNameIP
timex = datetime.now()
try:
for port in range(1,5200... | 24.648649 | 64 | 0.664474 | 116 | 912 | 5.189655 | 0.525862 | 0.034884 | 0.033223 | 0.063123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016973 | 0.224781 | 912 | 36 | 65 | 25.333333 | 0.834512 | 0.030702 | 0 | 0.103448 | 0 | 0 | 0.163265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.137931 | null | null | 0.206897 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
341a25ec588a6130b9bf53960ba4bb765bc6ccf2 | 753 | py | Python | tests/argument/completer.py | mauricelam/hashbang | 80f7a335a3d0065b72e691e06882fc6be0729634 | [
"Apache-2.0"
] | 2 | 2020-01-09T08:22:37.000Z | 2022-02-02T08:52:08.000Z | tests/argument/completer.py | mauricelam/hashbang | 80f7a335a3d0065b72e691e06882fc6be0729634 | [
"Apache-2.0"
] | 3 | 2020-04-13T07:07:12.000Z | 2022-03-22T03:03:00.000Z | tests/argument/completer.py | mauricelam/hashbang | 80f7a335a3d0065b72e691e06882fc6be0729634 | [
"Apache-2.0"
] | 1 | 2021-01-26T23:06:59.000Z | 2021-01-26T23:06:59.000Z | #!/usr/bin/env python3
'''
$ completer.py --<TAB>
--arg\x0b--file
$ completer.py --arg <TAB>
app\x0bapk\x0bexe
$ completer.py --arg=<TAB>
--arg=app\x0b--arg=apk\x0b--arg=exe
$ completer.py --arg a<TAB>
app\x0bapk
$ completer.py -f /u/b/e<TAB>
/usr/bin/env
'''
from hashbang import command, Argument
from hashbang.... | 19.815789 | 70 | 0.600266 | 97 | 753 | 4.505155 | 0.43299 | 0.125858 | 0.061785 | 0.077803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011725 | 0.207171 | 753 | 37 | 71 | 20.351351 | 0.720268 | 0.314741 | 0 | 0 | 0 | 0 | 0.110204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | true | 0 | 0.142857 | 0 | 0.214286 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
341cecf1703942282e6dec289b681c8af4f59dbd | 822 | py | Python | Avatar.py | PavlovVitaly/TwistedLongPollServer | c9f5390d02ff5ce1c0bc907a004bec289af7db4c | [
"Apache-2.0"
] | null | null | null | Avatar.py | PavlovVitaly/TwistedLongPollServer | c9f5390d02ff5ce1c0bc907a004bec289af7db4c | [
"Apache-2.0"
] | null | null | null | Avatar.py | PavlovVitaly/TwistedLongPollServer | c9f5390d02ff5ce1c0bc907a004bec289af7db4c | [
"Apache-2.0"
] | null | null | null | from zope.interface import Interface, implementer
class IProtocolAvatar(Interface):
def logout(self):
"""
Clean up per-login resources allocated to this avatar.
"""
@implementer(IProtocolAvatar)
class ClientAvatar(object):
def __init__(self):
super().__init__()
self._... | 18.266667 | 62 | 0.593674 | 92 | 822 | 5.021739 | 0.358696 | 0.051948 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.311436 | 822 | 44 | 63 | 18.681818 | 0.816254 | 0.065693 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0.033333 | 0.033333 | 0.1 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
341f0b3bc4cc4eb0a15a207a62e45e57c0bc4d22 | 443 | py | Python | sample/delete_all_dm.py | techno/python-twoauth | 2608263685ecc70cd80ab22ba9470bce97be9f6e | [
"MIT"
] | 2 | 2021-07-16T14:50:48.000Z | 2021-11-17T11:06:15.000Z | sample/delete_all_dm.py | techno/python-twoauth | 2608263685ecc70cd80ab22ba9470bce97be9f6e | [
"MIT"
] | null | null | null | sample/delete_all_dm.py | techno/python-twoauth | 2608263685ecc70cd80ab22ba9470bce97be9f6e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#-*- coding: utf-8 -*-
import sys
import twoauth
if __name__ == "__main__":
ckey = sys.argv[1]
csecret = sys.argv[2]
atoken = sys.argv[3]
asecret = sys.argv[4]
api = twoauth.api(
ckey, csecret, atoken, asecret)
while True:
dml = api.dm_list()
... | 18.458333 | 39 | 0.51693 | 59 | 443 | 3.711864 | 0.59322 | 0.127854 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017301 | 0.34763 | 443 | 23 | 40 | 19.26087 | 0.740484 | 0.092551 | 0 | 0 | 0 | 0 | 0.03 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.