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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1cf7cd31d835d561c98ce25133f916ba86e3848f | 304 | py | Python | examen_2/p2/p2.py | Jhoselyn-Carballo/computacion_para_ingenieria | 4b5ed7d4aa0017fb4993ccfdcc9fcef0fb5b3898 | [
"Apache-2.0"
] | null | null | null | examen_2/p2/p2.py | Jhoselyn-Carballo/computacion_para_ingenieria | 4b5ed7d4aa0017fb4993ccfdcc9fcef0fb5b3898 | [
"Apache-2.0"
] | null | null | null | examen_2/p2/p2.py | Jhoselyn-Carballo/computacion_para_ingenieria | 4b5ed7d4aa0017fb4993ccfdcc9fcef0fb5b3898 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Feb 17 09:10:05 2022
@author: JHOSS
"""
from tkinter import *
def contador(accion, contador):
if accion == 'countUp':
contador == contador + 1
elif accion == 'coundDown':
contador == contador -1
elif accion == 'reset':
contador == 0
return contador
| 17.882353 | 35 | 0.644737 | 40 | 304 | 4.9 | 0.7 | 0.163265 | 0.173469 | 0.214286 | 0.27551 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065844 | 0.200658 | 304 | 16 | 36 | 19 | 0.740741 | 0.243421 | 0 | 0 | 0 | 0 | 0.094595 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 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 |
1cf95ca934131253ff13ec5e02a3e110c4125705 | 1,838 | py | Python | scripts/preprocess.py | umd-lib/solr-irroc | 860be84ea1847cbb96c1a7a70b03f59dc6e0366b | [
"Apache-2.0"
] | null | null | null | scripts/preprocess.py | umd-lib/solr-irroc | 860be84ea1847cbb96c1a7a70b03f59dc6e0366b | [
"Apache-2.0"
] | null | null | null | scripts/preprocess.py | umd-lib/solr-irroc | 860be84ea1847cbb96c1a7a70b03f59dc6e0366b | [
"Apache-2.0"
] | 1 | 2019-11-04T13:19:34.000Z | 2019-11-04T13:19:34.000Z | #!/user/bin/env python3
# -*- coding: utf8 -*-
#===================================================#
# cleanup.py #
# Joshua Westgard #
# 2015-08-13 #
# #
#... | 36.039216 | 77 | 0.516322 | 207 | 1,838 | 4.449275 | 0.487923 | 0.078176 | 0.060803 | 0.036916 | 0.103149 | 0.036916 | 0.036916 | 0 | 0 | 0 | 0 | 0.012232 | 0.288357 | 1,838 | 50 | 78 | 36.76 | 0.691896 | 0.404788 | 0 | 0 | 0 | 0 | 0.272217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05 | 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 |
1cf9fe0aeeda656a56200c7ffd6e72f3aa0fd6c3 | 783 | py | Python | fmoe/gates/utils.py | GODVIX/fastmoe | 7f6463f0367205a1e95139c6d7e930be6e7fa746 | [
"Apache-2.0"
] | null | null | null | fmoe/gates/utils.py | GODVIX/fastmoe | 7f6463f0367205a1e95139c6d7e930be6e7fa746 | [
"Apache-2.0"
] | 1 | 2021-05-24T03:13:50.000Z | 2021-05-24T03:13:50.000Z | fmoe/gates/utils.py | Co1lin/fastmoe | ff7333c7a164a8e1f54954b1b56095dc4cde7bfc | [
"Apache-2.0"
] | null | null | null | r"""
Utilities that may be used in the gates
"""
import torch
from fmoe.functions import count_by_gate
import fmoe_cuda as fmoe_native
def limit_by_capacity(topk_idx, num_expert, world_size, capacity):
capacity = torch.ones(num_expert, dtype=torch.int32,
device=topk_idx.device) * capacity
pos, le... | 30.115385 | 79 | 0.711367 | 119 | 783 | 4.327731 | 0.386555 | 0.104854 | 0.135922 | 0.174757 | 0.097087 | 0.097087 | 0 | 0 | 0 | 0 | 0 | 0.008065 | 0.208174 | 783 | 25 | 80 | 31.32 | 0.822581 | 0.049808 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.166667 | 0 | 0.277778 | 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 |
1cff9155874f3a3bbd07b635d9ad399b58f00a6d | 1,581 | py | Python | decorator.py | zengboming/python | 13018f476554adc3bff831af27c08f7c216d4b09 | [
"Apache-2.0"
] | null | null | null | decorator.py | zengboming/python | 13018f476554adc3bff831af27c08f7c216d4b09 | [
"Apache-2.0"
] | null | null | null | decorator.py | zengboming/python | 13018f476554adc3bff831af27c08f7c216d4b09 | [
"Apache-2.0"
] | null | null | null | #decorator
def now():
print "2015-11-18"
f=now
f()
print now.__name__
print f.__name__
def log(func):
def wrapper(*args,**kw):
print 'begin call %s():' %func.__name__
func(*args,**kw)
print 'end call %s():' %func.__name__
return wrapper
@log
def now1():
print now1.__name__
now1()
now1=log(now1)
now1()
def... | 17.566667 | 53 | 0.655914 | 228 | 1,581 | 4.25 | 0.166667 | 0.074303 | 0.102167 | 0.099071 | 0.546956 | 0.508772 | 0.484004 | 0.484004 | 0.413829 | 0.25903 | 0 | 0.02881 | 0.165718 | 1,581 | 90 | 54 | 17.566667 | 0.705838 | 0.005693 | 0 | 0.38961 | 0 | 0 | 0.099237 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.012987 | null | null | 0.233766 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e80430c85971413d707279b7c247a402de4c954e | 916 | py | Python | core/migrations/0004_auto_20210929_2354.py | codefair114/Inventory-App-Django | f09f43ca282f82be981cac26a92d614fdf2ff5ef | [
"MIT"
] | null | null | null | core/migrations/0004_auto_20210929_2354.py | codefair114/Inventory-App-Django | f09f43ca282f82be981cac26a92d614fdf2ff5ef | [
"MIT"
] | null | null | null | core/migrations/0004_auto_20210929_2354.py | codefair114/Inventory-App-Django | f09f43ca282f82be981cac26a92d614fdf2ff5ef | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-09-29 23:54
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0003_auto_20210929_2353'),
]
operations = [
migrations.AlterField(
model_name='order',
... | 30.533333 | 117 | 0.618996 | 100 | 916 | 5.58 | 0.43 | 0.071685 | 0.100358 | 0.157706 | 0.591398 | 0.591398 | 0.387097 | 0.387097 | 0.387097 | 0.387097 | 0 | 0.045388 | 0.254367 | 916 | 29 | 118 | 31.586207 | 0.771596 | 0.049127 | 0 | 0.391304 | 1 | 0 | 0.126582 | 0.026467 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e80867dca8c2989991af1d5f2e487d3e8fa8b0f5 | 13,314 | py | Python | sdk/python/pulumi_azure/lb/outbound_rule.py | suresh198526/pulumi-azure | bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure/lb/outbound_rule.py | suresh198526/pulumi-azure | bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure/lb/outbound_rule.py | suresh198526/pulumi-azure | bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from .. import _utilitie... | 53.043825 | 207 | 0.686646 | 1,580 | 13,314 | 5.532911 | 0.148101 | 0.052848 | 0.035232 | 0.032029 | 0.630634 | 0.596774 | 0.582819 | 0.560284 | 0.531686 | 0.513612 | 0 | 0.003521 | 0.232011 | 13,314 | 250 | 208 | 53.256 | 0.851443 | 0.435106 | 0 | 0.244094 | 1 | 0 | 0.178529 | 0.078676 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102362 | false | 0.007874 | 0.055118 | 0.015748 | 0.259843 | 0 | 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 |
e8094e0dbe640e5e2094dda3ca82426a4117f2ae | 21,377 | py | Python | orbit_predictor/predictors/base.py | Juanlu001/orbit-predictor | ca67e2e859932938627ed24e5cbf58c887cd99c0 | [
"MIT"
] | null | null | null | orbit_predictor/predictors/base.py | Juanlu001/orbit-predictor | ca67e2e859932938627ed24e5cbf58c887cd99c0 | [
"MIT"
] | null | null | null | orbit_predictor/predictors/base.py | Juanlu001/orbit-predictor | ca67e2e859932938627ed24e5cbf58c887cd99c0 | [
"MIT"
] | null | null | null | # MIT License
#
# Copyright (c) 2017 Satellogic SA
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge... | 38.105169 | 98 | 0.635449 | 2,626 | 21,377 | 4.925362 | 0.178218 | 0.029767 | 0.012757 | 0.011597 | 0.263801 | 0.201253 | 0.166615 | 0.118679 | 0.109943 | 0.105149 | 0 | 0.004975 | 0.29485 | 21,377 | 560 | 99 | 38.173214 | 0.852793 | 0.224821 | 0 | 0.211699 | 0 | 0 | 0.040015 | 0 | 0 | 0 | 0 | 0.001786 | 0.002786 | 1 | 0.128134 | false | 0.075209 | 0.038997 | 0.022284 | 0.289694 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e81163dfe2d224db06c949798465e50a5cb2ce2e | 7,702 | py | Python | python/GafferUI/ScriptEditor.py | PaulDoessel/gaffer-play | 8b72dabb388e12424c230acfb0bd209049b01bd6 | [
"BSD-3-Clause"
] | null | null | null | python/GafferUI/ScriptEditor.py | PaulDoessel/gaffer-play | 8b72dabb388e12424c230acfb0bd209049b01bd6 | [
"BSD-3-Clause"
] | null | null | null | python/GafferUI/ScriptEditor.py | PaulDoessel/gaffer-play | 8b72dabb388e12424c230acfb0bd209049b01bd6 | [
"BSD-3-Clause"
] | 1 | 2020-02-15T16:15:54.000Z | 2020-02-15T16:15:54.000Z | ##########################################################################
#
# Copyright (c) 2011-2012, John Haddon. All rights reserved.
# Copyright (c) 2011-2013, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted prov... | 36.67619 | 141 | 0.692288 | 868 | 7,702 | 6 | 0.362903 | 0.024578 | 0.015361 | 0.017281 | 0.185484 | 0.154378 | 0.137097 | 0.137097 | 0.137097 | 0.120584 | 0 | 0.006358 | 0.183199 | 7,702 | 209 | 142 | 36.851675 | 0.821491 | 0.305635 | 0 | 0.137931 | 0 | 0.008621 | 0.055556 | 0.018065 | 0 | 0 | 0 | 0.004785 | 0 | 0 | null | null | 0 | 0.068966 | 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 |
e81446098f632747c9bb69739c5cdbc90d7e2461 | 946 | py | Python | superset/superset_config.py | panchohumeres/dynamo-covid | cf473be3eeca436efccd8891a61b721192cf6d34 | [
"MIT"
] | 4 | 2020-08-10T07:35:10.000Z | 2022-03-31T23:03:32.000Z | superset/superset_config.py | panchohumeres/superJupyter | cc0ce98da2c58a7ab0ae502b5b07250db0c78b89 | [
"MIT"
] | 1 | 2021-06-02T02:51:12.000Z | 2021-06-02T02:51:12.000Z | superset/superset_config.py | panchohumeres/dynamo-covid | cf473be3eeca436efccd8891a61b721192cf6d34 | [
"MIT"
] | 1 | 2022-02-08T01:46:19.000Z | 2022-02-08T01:46:19.000Z | import os
SERVER_NAME = os.getenv('DOMAIN_SUPERSET')
PUBLIC_ROLE_LIKE_GAMMA = True
SESSION_COOKIE_SAMESITE = None # One of [None, 'Lax', 'Strict']
SESSION_COOKIE_HTTPONLY = False
MAPBOX_API_KEY = os.getenv('MAPBOX_API_KEY', '')
POSTGRES_DB=os.getenv('POSTGRES_DB')
POSTGRES_PASSWORD=os.getenv('POSTGRES_PASSWORD')
POSTG... | 35.037037 | 122 | 0.756871 | 125 | 946 | 5.32 | 0.496 | 0.07218 | 0.096241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021127 | 0.099366 | 946 | 27 | 123 | 35.037037 | 0.75939 | 0.031712 | 0 | 0 | 0 | 0 | 0.333333 | 0.046995 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.041667 | 0 | 0.041667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e8175b6a8041e64371cfdfe4643c61104dee988c | 2,189 | py | Python | dataclassses_howto.py | CvanderStoep/VideosSampleCode | 38a8d2538a041d5664d0040807ffac463d0fb79c | [
"MIT"
] | 285 | 2021-02-16T21:08:57.000Z | 2022-03-31T10:58:41.000Z | dataclassses_howto.py | CvanderStoep/VideosSampleCode | 38a8d2538a041d5664d0040807ffac463d0fb79c | [
"MIT"
] | 10 | 2021-05-01T17:20:50.000Z | 2022-03-09T21:46:46.000Z | dataclassses_howto.py | CvanderStoep/VideosSampleCode | 38a8d2538a041d5664d0040807ffac463d0fb79c | [
"MIT"
] | 96 | 2021-02-15T14:23:15.000Z | 2022-03-31T10:58:50.000Z | import dataclasses
import inspect
from dataclasses import dataclass, field
from pprint import pprint
import attr
class ManualComment:
def __init__(self, id: int, text: str):
self.id: int = id
self.text: str = text
def __repr__(self):
return "{}(id={}, text={})".format(self.__class__.... | 25.752941 | 87 | 0.616263 | 264 | 2,189 | 4.727273 | 0.246212 | 0.043269 | 0.064103 | 0.078526 | 0.405449 | 0.378205 | 0.378205 | 0.378205 | 0.378205 | 0.378205 | 0 | 0.002505 | 0.270443 | 2,189 | 84 | 88 | 26.059524 | 0.778961 | 0.014619 | 0 | 0.301587 | 0 | 0 | 0.020427 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15873 | false | 0 | 0.079365 | 0.031746 | 0.587302 | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e81b3e433344ddf1234f763d89e92536bfcf4280 | 108,927 | py | Python | corehq/apps/domain/views.py | johan--/commcare-hq | 86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd | [
"BSD-3-Clause"
] | null | null | null | corehq/apps/domain/views.py | johan--/commcare-hq | 86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd | [
"BSD-3-Clause"
] | 1 | 2022-03-12T01:03:25.000Z | 2022-03-12T01:03:25.000Z | corehq/apps/domain/views.py | johan--/commcare-hq | 86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd | [
"BSD-3-Clause"
] | null | null | null | import copy
import datetime
from decimal import Decimal
import logging
import uuid
import json
import cStringIO
from couchdbkit import ResourceNotFound
import dateutil
from django.core.paginator import Paginator
from django.views.generic import View
from django.db.models import Sum
from django.conf import settings
fro... | 38.750267 | 130 | 0.636215 | 11,505 | 108,927 | 5.782877 | 0.084224 | 0.028558 | 0.017315 | 0.01231 | 0.421842 | 0.342362 | 0.267631 | 0.217534 | 0.179357 | 0.152739 | 0 | 0.002254 | 0.275092 | 108,927 | 2,810 | 131 | 38.764057 | 0.840328 | 0.007914 | 0 | 0.349274 | 0 | 0.000427 | 0.110778 | 0.023874 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.001708 | 0.03117 | 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 |
e81ba3ad3b0b7d369560fab0313b86525e0c16f1 | 5,668 | py | Python | src/anmi/T2/funcs_met_iters.py | alexmascension/ANMI | 9c51a497a5fa2650f1429f847c7f9df69271168b | [
"BSD-3-Clause"
] | 1 | 2021-11-30T23:30:45.000Z | 2021-11-30T23:30:45.000Z | src/anmi/T2/funcs_met_iters.py | alexmascension/ANMI | 9c51a497a5fa2650f1429f847c7f9df69271168b | [
"BSD-3-Clause"
] | 2 | 2021-04-11T20:39:15.000Z | 2021-04-13T17:45:43.000Z | src/anmi/T2/funcs_met_iters.py | alexmascension/ANMI | 9c51a497a5fa2650f1429f847c7f9df69271168b | [
"BSD-3-Clause"
] | 1 | 2021-11-30T23:31:11.000Z | 2021-11-30T23:31:11.000Z | from sympy import simplify, zeros
from sympy import Matrix as mat
import numpy as np
from ..genericas import print_verbose, matriz_inversa
def criterio_radio_espectral(H, verbose=True):
eigs = [simplify(i) for i in list(H.eigenvals().keys())]
print_verbose("||Criterio de radio espectral||", verbose)
try... | 32.574713 | 165 | 0.572689 | 774 | 5,668 | 4.109819 | 0.226098 | 0.082993 | 0.035209 | 0.050299 | 0.309337 | 0.175731 | 0.127947 | 0.072619 | 0.072619 | 0.017919 | 0 | 0.014212 | 0.317219 | 5,668 | 173 | 166 | 32.763006 | 0.807752 | 0.124206 | 0 | 0.328358 | 0 | 0.037313 | 0.307818 | 0.004479 | 0 | 0 | 0 | 0.028902 | 0 | 1 | 0.044776 | false | 0 | 0.029851 | 0 | 0.097015 | 0.164179 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
e81d7c04c616831d43d69c14fef3ddcc06add40b | 5,766 | py | Python | trainer/dataset.py | vinay-swamy/gMVP | 62202baa0769dfe0e47c230e78dffa42fb1280f1 | [
"MIT"
] | 2 | 2021-04-24T03:23:40.000Z | 2021-06-28T11:51:10.000Z | trainer/dataset.py | vinay-swamy/gMVP | 62202baa0769dfe0e47c230e78dffa42fb1280f1 | [
"MIT"
] | null | null | null | trainer/dataset.py | vinay-swamy/gMVP | 62202baa0769dfe0e47c230e78dffa42fb1280f1 | [
"MIT"
] | 2 | 2021-09-14T13:03:38.000Z | 2022-03-23T02:49:19.000Z | import tensorflow as tf
import os
import pickle
import numpy as np
from constant_params import input_feature_dim, window_size
def build_dataset(input_tfrecord_files, batch_size):
drop_remainder = False
feature_description = {
'label': tf.io.FixedLenFeature([], tf.int64),
'ref_aa': tf.io.Fixe... | 33.137931 | 125 | 0.601283 | 742 | 5,766 | 4.443396 | 0.17655 | 0.020625 | 0.063391 | 0.070064 | 0.668487 | 0.643312 | 0.62754 | 0.62754 | 0.62754 | 0.62754 | 0 | 0.023029 | 0.269511 | 5,766 | 173 | 126 | 33.32948 | 0.759734 | 0.028789 | 0 | 0.535088 | 0 | 0.008772 | 0.051779 | 0.026737 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.04386 | 0 | 0.140351 | 0.008772 | 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 |
e81e5aa3bb914c6f0bd68fa448159f5b4cf4de2f | 348 | py | Python | setup.py | flother/pdf-search | fa4c519a673bf5a5d25e1ab44e971690ab3cf781 | [
"MIT"
] | 5 | 2018-06-18T10:31:20.000Z | 2020-06-10T01:05:02.000Z | setup.py | flother/pdf-search | fa4c519a673bf5a5d25e1ab44e971690ab3cf781 | [
"MIT"
] | null | null | null | setup.py | flother/pdf-search | fa4c519a673bf5a5d25e1ab44e971690ab3cf781 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='espdf',
version='0.1.0-dev',
url='https://github.com/flother/pdf-search',
py_modules=(
'espdf',
),
install_requires=(
'certifi',
'elasticsearch-dsl',
),
entry_points={
'console_scripts': (
'espdf=espd... | 16.571429 | 48 | 0.514368 | 34 | 348 | 5.147059 | 0.852941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012712 | 0.321839 | 348 | 20 | 49 | 17.4 | 0.728814 | 0 | 0 | 0.166667 | 0 | 0 | 0.316092 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.055556 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e81f767a21388acf235edc3f3bc49f314ff2619e | 10,376 | py | Python | pywallet/network.py | martexcoin/pywallet | dca53f124452869890b0247c40afba821b650c6b | [
"MIT"
] | 1 | 2021-01-04T04:11:42.000Z | 2021-01-04T04:11:42.000Z | pywallet/network.py | martexcoin/pywallet | dca53f124452869890b0247c40afba821b650c6b | [
"MIT"
] | null | null | null | pywallet/network.py | martexcoin/pywallet | dca53f124452869890b0247c40afba821b650c6b | [
"MIT"
] | 1 | 2021-07-09T21:21:07.000Z | 2021-07-09T21:21:07.000Z | class BitcoinGoldMainNet(object):
"""Bitcoin Gold MainNet version bytes. """
NAME = "Bitcoin Gold Main Net"
COIN = "BTG"
SCRIPT_ADDRESS = 0x17 # int(0x17) = 23
PUBKEY_ADDRESS = 0x26 # int(0x26) = 38 # Used to create payment addresses
SECRET_KEY = 0x80 # int(0x80) = 128 # Used for WIF fo... | 37.189964 | 88 | 0.673092 | 1,377 | 10,376 | 4.958606 | 0.147422 | 0.050088 | 0.052724 | 0.031634 | 0.762009 | 0.698448 | 0.682484 | 0.638987 | 0.610574 | 0.593878 | 0 | 0.112875 | 0.223015 | 10,376 | 278 | 89 | 37.323741 | 0.734061 | 0.487278 | 0 | 0.462963 | 0 | 0 | 0.117623 | 0 | 0 | 0 | 0.112975 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e820480eb7c2b0f9e9f4f3e9695e4d3110de174e | 20,078 | py | Python | yacos/algorithm/metaheuristics.py | ComputerSystemsLaboratory/YaCoS | abd5d3c6e227e5c7a563493f7855ebf58ba3de05 | [
"Apache-2.0"
] | 8 | 2022-02-03T16:41:01.000Z | 2022-02-09T11:29:20.000Z | yacos/algorithm/metaheuristics.py | ComputerSystemsLaboratory/YaCoS | abd5d3c6e227e5c7a563493f7855ebf58ba3de05 | [
"Apache-2.0"
] | null | null | null | yacos/algorithm/metaheuristics.py | ComputerSystemsLaboratory/YaCoS | abd5d3c6e227e5c7a563493f7855ebf58ba3de05 | [
"Apache-2.0"
] | null | null | null | """
Copyright 2021 Anderson Faustino da Silva.
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,... | 28.60114 | 76 | 0.456121 | 1,688 | 20,078 | 5.227488 | 0.165284 | 0.058137 | 0.019946 | 0.019039 | 0.603128 | 0.577856 | 0.557684 | 0.521419 | 0.521419 | 0.502267 | 0 | 0.003841 | 0.481373 | 20,078 | 701 | 77 | 28.64194 | 0.843561 | 0.295896 | 0 | 0.540193 | 0 | 0 | 0.013773 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048232 | false | 0.051447 | 0.019293 | 0 | 0.141479 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e8213e750200485b12b34726d6bd13c4476d653d | 843 | py | Python | aries_cloudagent/protocols/actionmenu/v1_0/messages/menu_request.py | panickervinod/aries-cloudagent-python | bb4627fe62ee42ffeeb435cf3d8bfbd66c10d02f | [
"Apache-2.0"
] | null | null | null | aries_cloudagent/protocols/actionmenu/v1_0/messages/menu_request.py | panickervinod/aries-cloudagent-python | bb4627fe62ee42ffeeb435cf3d8bfbd66c10d02f | [
"Apache-2.0"
] | 1 | 2020-06-16T20:20:55.000Z | 2020-06-16T20:20:55.000Z | aries_cloudagent/protocols/actionmenu/v1_0/messages/menu_request.py | panickervinod/aries-cloudagent-python | bb4627fe62ee42ffeeb435cf3d8bfbd66c10d02f | [
"Apache-2.0"
] | null | null | null | """Represents a request for an action menu."""
from .....messaging.agent_message import AgentMessage, AgentMessageSchema
from ..message_types import MENU_REQUEST, PROTOCOL_PACKAGE
HANDLER_CLASS = f"{PROTOCOL_PACKAGE}.handlers.menu_request_handler.MenuRequestHandler"
class MenuRequest(AgentMessage):
"""Class re... | 26.34375 | 86 | 0.702254 | 87 | 843 | 6.551724 | 0.425287 | 0.096491 | 0.038596 | 0.045614 | 0.080702 | 0.080702 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194543 | 843 | 31 | 87 | 27.193548 | 0.83947 | 0.251483 | 0 | 0.153846 | 0 | 0 | 0.14 | 0.111667 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e8221f351de78d1c4212826efb9039a3b827c105 | 410 | py | Python | joulia/unit_conversions_test.py | willjschmitt/joulia-webserver | 712decb749c2d1bda71af49ecab245378bf30078 | [
"FTL"
] | null | null | null | joulia/unit_conversions_test.py | willjschmitt/joulia-webserver | 712decb749c2d1bda71af49ecab245378bf30078 | [
"FTL"
] | 95 | 2016-08-04T01:59:37.000Z | 2021-06-10T18:41:46.000Z | joulia/unit_conversions_test.py | willjschmitt/joulia-webserver | 712decb749c2d1bda71af49ecab245378bf30078 | [
"FTL"
] | null | null | null | """Tests joulia.unit_conversions.
"""
from django.test import TestCase
from joulia import unit_conversions
class GramsToPoundsTest(TestCase):
def test_grams_to_pounds(self):
self.assertEquals(unit_conversions.grams_to_pounds(1000.0), 2.20462)
class GramsToOuncesTest(TestCase):
def test_grams_to_ou... | 24.117647 | 77 | 0.77561 | 54 | 410 | 5.62963 | 0.462963 | 0.197368 | 0.098684 | 0.131579 | 0.421053 | 0.276316 | 0.276316 | 0 | 0 | 0 | 0 | 0.064426 | 0.129268 | 410 | 16 | 78 | 25.625 | 0.787115 | 0.073171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e824b59433bad7c9a547eb3af6d1a2e1fb6af9c5 | 2,504 | py | Python | scripts/train_presets/beads.py | kreshuklab/hylfm-net | 9f1013640e40e998674b65176023367b1e978782 | [
"MIT"
] | 8 | 2020-11-13T05:46:59.000Z | 2022-01-30T06:12:04.000Z | scripts/train_presets/beads.py | kreshuklab/hylfm-net | 9f1013640e40e998674b65176023367b1e978782 | [
"MIT"
] | 1 | 2020-11-13T08:29:23.000Z | 2022-02-10T16:45:19.000Z | scripts/train_presets/beads.py | kreshuklab/hylfm-net | 9f1013640e40e998674b65176023367b1e978782 | [
"MIT"
] | 2 | 2020-10-30T11:02:42.000Z | 2021-01-12T06:51:33.000Z | from pathlib import Path
from hylfm.hylfm_types import (
CriterionChoice,
DatasetChoice,
LRSchedThresMode,
LRSchedulerChoice,
MetricChoice,
OptimizerChoice,
PeriodUnit,
)
from hylfm.model import HyLFM_Net
from hylfm.train import train
if __name__ == "__main__":
train(
dataset=... | 23.185185 | 57 | 0.5623 | 341 | 2,504 | 3.777126 | 0.381232 | 0.044255 | 0.046584 | 0.031056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152147 | 0.349042 | 2,504 | 107 | 58 | 23.401869 | 0.638037 | 0.004792 | 0 | 0 | 0 | 0 | 0.003214 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.038835 | 0 | 0.038835 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e82d0945219e52cb12d826deeb2607fdf4a302a4 | 1,353 | py | Python | bot/ganjoor/category_choose.py | MmeK/ganjoor-telegram-bot | 3992bdd860ea3626dccd79b0c1993a3662e92aa5 | [
"MIT"
] | null | null | null | bot/ganjoor/category_choose.py | MmeK/ganjoor-telegram-bot | 3992bdd860ea3626dccd79b0c1993a3662e92aa5 | [
"MIT"
] | 3 | 2021-11-17T08:03:59.000Z | 2021-11-17T14:00:23.000Z | bot/ganjoor/category_choose.py | MmeK/ganjoor-telegram-bot | 3992bdd860ea3626dccd79b0c1993a3662e92aa5 | [
"MIT"
] | null | null | null |
# Copyright 2021 Mohammad Kazemi <kazemi.me.222@gmail.com>.
# SPDX-License-Identifier: MIT
# Telegram API framework core imports
from collections import namedtuple
from functools import partial
from ganjoor.ganjoor import Ganjoor
from telegram.ext import Dispatcher, CallbackContext
from telegram import Update
# Helper... | 33 | 86 | 0.764967 | 168 | 1,353 | 5.958333 | 0.458333 | 0.055944 | 0.03996 | 0.041958 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007705 | 0.136733 | 1,353 | 40 | 87 | 33.825 | 0.849315 | 0.219512 | 0 | 0 | 0 | 0 | 0.038573 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.380952 | 0 | 0.47619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e8308aa03da4eb51baf9d04fa863c427d1808871 | 257,168 | py | Python | scripts/emoji-to-scl.py | SilverWingedSeraph/sws-dotfiles | 6bee2b2ece03439101848673d6bcd9196359f7c4 | [
"Apache-2.0"
] | 3 | 2018-03-07T15:15:50.000Z | 2018-05-22T17:50:34.000Z | scripts/emoji-to-scl.py | SilverWingedSeraph/sws-dotfiles | 6bee2b2ece03439101848673d6bcd9196359f7c4 | [
"Apache-2.0"
] | null | null | null | scripts/emoji-to-scl.py | SilverWingedSeraph/sws-dotfiles | 6bee2b2ece03439101848673d6bcd9196359f7c4 | [
"Apache-2.0"
] | 1 | 2020-01-30T15:07:29.000Z | 2020-01-30T15:07:29.000Z | #!/usr/bin/python3
# -*- coding: utf-8 -*-
from subprocess import Popen, PIPE
emojis="""⛑🏻 Helmet With White Cross, Type-1-2
⛑🏼 Helmet With White Cross, Type-3
⛑🏽 Helmet With White Cross, Type-4
⛑🏾 Helmet With White Cross, Type-5
⛑🏿 Helmet With White Cross, Type-6
💏🏻 Kiss, Type-1-2
💏🏼 Kiss, Type-3
💏🏽 Kiss,... | 35.752537 | 141 | 0.63422 | 45,956 | 257,168 | 4.311363 | 0.294107 | 0.130049 | 0.073224 | 0.05351 | 0.279444 | 0.217354 | 0.187899 | 0.180566 | 0.164506 | 0.134193 | 0 | 0.018066 | 0.160778 | 257,168 | 7,192 | 142 | 35.757508 | 0.737658 | 0.000152 | 0 | 0 | 0 | 0.033398 | 0.999242 | 0.00063 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.000417 | 0.000139 | 0 | 0.000139 | 0.000278 | 0 | 0 | 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 |
e8327e8e634b6bfa67228d199235d028b776af03 | 3,104 | py | Python | openquake.hazardlib/openquake/hazardlib/tests/gsim/campbell_2003_test.py | rainzhop/ConvNetQuake | a3e6de3f7992eac72f1b9883fec36b8c7fdefd48 | [
"MIT"
] | null | null | null | openquake.hazardlib/openquake/hazardlib/tests/gsim/campbell_2003_test.py | rainzhop/ConvNetQuake | a3e6de3f7992eac72f1b9883fec36b8c7fdefd48 | [
"MIT"
] | null | null | null | openquake.hazardlib/openquake/hazardlib/tests/gsim/campbell_2003_test.py | rainzhop/ConvNetQuake | a3e6de3f7992eac72f1b9883fec36b8c7fdefd48 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright (C) 2012-2016 GEM Foundation
#
# OpenQuake is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the Licen... | 31.673469 | 79 | 0.715206 | 365 | 3,104 | 5.928767 | 0.342466 | 0.032348 | 0.060074 | 0.073937 | 0.474584 | 0.411738 | 0.39695 | 0.340573 | 0.325323 | 0.255083 | 0 | 0.097166 | 0.204253 | 3,104 | 97 | 80 | 32 | 0.778947 | 0.320232 | 0 | 0.408163 | 0 | 0 | 0.139435 | 0.131768 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204082 | false | 0 | 0.061224 | 0 | 0.469388 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e8361342f0f0d1a04e77282debfd9e4a5b53ef3e | 16,223 | py | Python | SimpleCV/MachineLearning/query_imgs/get_imgs_geo_gps_search.py | nikhilgk/SimpleCV | ee64451c16db1f40b4da221115273020a6a7b01a | [
"BSD-3-Clause"
] | 2 | 2016-04-30T12:23:05.000Z | 2022-03-02T00:01:10.000Z | SimpleCV/MachineLearning/query_imgs/get_imgs_geo_gps_search.py | nikhilgk/SimpleCV | ee64451c16db1f40b4da221115273020a6a7b01a | [
"BSD-3-Clause"
] | null | null | null | SimpleCV/MachineLearning/query_imgs/get_imgs_geo_gps_search.py | nikhilgk/SimpleCV | ee64451c16db1f40b4da221115273020a6a7b01a | [
"BSD-3-Clause"
] | 2 | 2015-04-16T12:14:55.000Z | 2019-08-07T14:12:04.000Z | #!/usr/bin/python
#
# So this script is in a bit of a hack state right now.
# This script reads
#
#
#
# Graciously copied and modified from:
# http://graphics.cs.cmu.edu/projects/im2gps/flickr_code.html
#Image querying script written by Tamara Berg,
#and extended heavily James Hays
#9/26/2007 added dynamic timesli... | 47.023188 | 133 | 0.513715 | 1,750 | 16,223 | 4.652571 | 0.272571 | 0.022353 | 0.035372 | 0.02874 | 0.285065 | 0.237534 | 0.211005 | 0.175633 | 0.160157 | 0.160157 | 0 | 0.031157 | 0.376811 | 16,223 | 344 | 134 | 47.159884 | 0.774184 | 0.2915 | 0 | 0.252525 | 0 | 0 | 0.121397 | 0.002873 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.030303 | null | null | 0.20202 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e8367fbdc5ace072208dddf385f21c1015f73383 | 384 | py | Python | safemasks/resources/rest/router.py | Safemasks/safemasks-app | 44c1cf16f81b15b74fa5eb38d36eaa078180e975 | [
"BSD-3-Clause"
] | 1 | 2020-11-04T09:42:29.000Z | 2020-11-04T09:42:29.000Z | safemasks/resources/rest/router.py | Safemasks/safemasks-app | 44c1cf16f81b15b74fa5eb38d36eaa078180e975 | [
"BSD-3-Clause"
] | null | null | null | safemasks/resources/rest/router.py | Safemasks/safemasks-app | 44c1cf16f81b15b74fa5eb38d36eaa078180e975 | [
"BSD-3-Clause"
] | 1 | 2022-02-16T12:58:28.000Z | 2022-02-16T12:58:28.000Z | """
"""
from rest_framework import routers
from safemasks.resources.rest.serializers import SupplierViewSet, TrustedSupplierViewSet
# Routers provide an easy way of automatically determining the URL conf.
ROUTER = routers.DefaultRouter()
ROUTER.register(r"suppliers", SupplierViewSet, "suppliers")
ROUTER.register(r"s... | 32 | 88 | 0.815104 | 41 | 384 | 7.609756 | 0.634146 | 0.089744 | 0.096154 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091146 | 384 | 11 | 89 | 34.909091 | 0.893983 | 0.182292 | 0 | 0 | 0 | 0 | 0.170492 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e8372d789b4ce7a9e159e03cce618e0ad5219646 | 410 | py | Python | waterApp/migrations/0011_auto_20210911_1043.py | csisarep/groundwater_dashboard | 4f93d7b7c9fd6b48ace54e7b62cae717decc98d2 | [
"MIT"
] | null | null | null | waterApp/migrations/0011_auto_20210911_1043.py | csisarep/groundwater_dashboard | 4f93d7b7c9fd6b48ace54e7b62cae717decc98d2 | [
"MIT"
] | null | null | null | waterApp/migrations/0011_auto_20210911_1043.py | csisarep/groundwater_dashboard | 4f93d7b7c9fd6b48ace54e7b62cae717decc98d2 | [
"MIT"
] | null | null | null | # Generated by Django 2.2 on 2021-09-11 04:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('waterApp', '0010_auto_20210911_1041'),
]
operations = [
migrations.AlterField(
model_name='gwmonitoring',
name='id',
... | 21.578947 | 73 | 0.617073 | 43 | 410 | 5.767442 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100671 | 0.273171 | 410 | 18 | 74 | 22.777778 | 0.731544 | 0.104878 | 0 | 0 | 1 | 0 | 0.123288 | 0.063014 | 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 |
08fa0ae611479cbc0414a8eece26a08f791be531 | 928 | py | Python | src/exporter/management/commands/test_export.py | xmdy/h9eNi8F5Ut | 4128d7cbc6105ec0fe69157bd88ef8e30415d6ca | [
"Unlicense"
] | null | null | null | src/exporter/management/commands/test_export.py | xmdy/h9eNi8F5Ut | 4128d7cbc6105ec0fe69157bd88ef8e30415d6ca | [
"Unlicense"
] | null | null | null | src/exporter/management/commands/test_export.py | xmdy/h9eNi8F5Ut | 4128d7cbc6105ec0fe69157bd88ef8e30415d6ca | [
"Unlicense"
] | null | null | null | from django.core.management import BaseCommand
import logging
# These two lines enable debugging at httplib level (requests->urllib3->http.client)
# You will see the REQUEST, including HEADERS and DATA, and RESPONSE with HEADERS but without DATA.
# The only thing missing will be the response.body which is not logged.
... | 37.12 | 99 | 0.774784 | 122 | 928 | 5.844262 | 0.614754 | 0.070126 | 0.033661 | 0.078541 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006337 | 0.149784 | 928 | 25 | 100 | 37.12 | 0.897338 | 0.352371 | 0 | 0 | 0 | 0 | 0.041946 | 0.041946 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.352941 | 0 | 0.470588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
08fed17a5871561cc999432b467a8117b686ae74 | 20,180 | py | Python | tools/generate_serialization_header.py | StableCoder/vulkan-mini-libs-2 | e048f45149816e100d3f4f51306626ebf547b032 | [
"Apache-2.0"
] | 1 | 2022-02-28T20:58:44.000Z | 2022-02-28T20:58:44.000Z | tools/generate_serialization_header.py | StableCoder/vulkan-mini-libs-2 | e048f45149816e100d3f4f51306626ebf547b032 | [
"Apache-2.0"
] | null | null | null | tools/generate_serialization_header.py | StableCoder/vulkan-mini-libs-2 | e048f45149816e100d3f4f51306626ebf547b032 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import sys
import getopt
import xml.etree.ElementTree as ET
def processVendors(outFile, vendors):
outFile.writelines(["\nconstexpr std::array<std::string_view, ", str(
len(vendors)), "> vendors = {{\n"])
for vendor in vendors:
outFile.writelines([' \"', vendor.tag, '\"... | 30.345865 | 101 | 0.607334 | 2,358 | 20,180 | 5.141645 | 0.15352 | 0.04157 | 0.028951 | 0.017239 | 0.403827 | 0.353184 | 0.330584 | 0.319367 | 0.305345 | 0.29421 | 0 | 0.006486 | 0.266601 | 20,180 | 664 | 102 | 30.391566 | 0.812703 | 0.021754 | 0 | 0.361111 | 0 | 0.011111 | 0.751369 | 0.080426 | 0 | 0 | 0 | 0 | 0.003704 | 1 | 0.007407 | false | 0 | 0.005556 | 0 | 0.077778 | 0.007407 | 0 | 0 | 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 |
1c00a5891e5e90872bc713f8239c14e5c3378b1b | 5,624 | py | Python | tests/test_charge.py | fossabot/MolVS | dc5afca7fcea93ebb0a342b766d70e88d2c0b841 | [
"MIT"
] | 1 | 2019-03-15T03:42:37.000Z | 2019-03-15T03:42:37.000Z | tests/test_charge.py | fossabot/MolVS | dc5afca7fcea93ebb0a342b766d70e88d2c0b841 | [
"MIT"
] | null | null | null | tests/test_charge.py | fossabot/MolVS | dc5afca7fcea93ebb0a342b766d70e88d2c0b841 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for charge.py"""
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
import logging
from rdkit import Chem
from molvs.standardize import Standardizer, standardize_smiles
from molvs.charge import Reionizer... | 35.594937 | 229 | 0.628912 | 845 | 5,624 | 4.080473 | 0.242604 | 0.031323 | 0.014791 | 0.083527 | 0.417343 | 0.364269 | 0.343677 | 0.263921 | 0.25464 | 0.236659 | 0 | 0.018864 | 0.142248 | 5,624 | 157 | 230 | 35.821656 | 0.695896 | 0.359708 | 0 | 0.096774 | 0 | 0.145161 | 0.314269 | 0.230791 | 0 | 0 | 0 | 0.006369 | 0.33871 | 1 | 0.322581 | false | 0 | 0.112903 | 0 | 0.451613 | 0.016129 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1c026bf515ed2ee75cb046511de891145466adbe | 10,188 | py | Python | gym_flock/envs/old/mapping.py | katetolstaya/gym-flock | 3236d1dafcb1b9be0cf78b471672e8becb2d37af | [
"MIT"
] | 19 | 2019-07-29T22:19:58.000Z | 2022-01-27T04:38:38.000Z | gym_flock/envs/old/mapping.py | henghenghahei849/gym-flock | b09bdfbbe4a96fe052958d1f9e1e9dd314f58419 | [
"MIT"
] | null | null | null | gym_flock/envs/old/mapping.py | henghenghahei849/gym-flock | b09bdfbbe4a96fe052958d1f9e1e9dd314f58419 | [
"MIT"
] | 5 | 2019-10-03T14:44:49.000Z | 2021-12-09T20:39:39.000Z | import gym
from gym import spaces, error, utils
from gym.utils import seeding
import numpy as np
import configparser
from os import path
import matplotlib.pyplot as plt
from matplotlib.pyplot import gca
font = {'family': 'sans-serif',
'weight': 'bold',
'size': 14}
class MappingEnv(gym.Env):
def ... | 38.014925 | 120 | 0.565077 | 1,431 | 10,188 | 3.871419 | 0.176101 | 0.027978 | 0.059567 | 0.027076 | 0.312996 | 0.235379 | 0.197653 | 0.152527 | 0.145487 | 0.127798 | 0 | 0.029801 | 0.288575 | 10,188 | 267 | 121 | 38.157303 | 0.734547 | 0.213683 | 0 | 0.064103 | 0 | 0 | 0.007733 | 0 | 0 | 0 | 0 | 0.011236 | 0.00641 | 1 | 0.057692 | false | 0.012821 | 0.051282 | 0 | 0.141026 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
1c04cbdee0c3246cf3dd07ebf05dec05475d975b | 1,379 | py | Python | 1-Chapter/htmlcomponents.py | DSandovalFlavio/Dashboards-Plotly-Dash | 58867c2e813bc9273838dec12e7bd15be25504fa | [
"MIT"
] | null | null | null | 1-Chapter/htmlcomponents.py | DSandovalFlavio/Dashboards-Plotly-Dash | 58867c2e813bc9273838dec12e7bd15be25504fa | [
"MIT"
] | null | null | null | 1-Chapter/htmlcomponents.py | DSandovalFlavio/Dashboards-Plotly-Dash | 58867c2e813bc9273838dec12e7bd15be25504fa | [
"MIT"
] | null | null | null | import dash
from dash import html
app = dash.Dash(__name__)
app.layout = html.Div(children=[html.H1('Data Science',
style = {'textAlign': 'center',
'color': '#0FD08D',
'font-size': '... | 55.16 | 175 | 0.354605 | 112 | 1,379 | 4.25 | 0.526786 | 0.05042 | 0.07563 | 0.10084 | 0.380252 | 0.340336 | 0.340336 | 0.340336 | 0.340336 | 0.340336 | 0 | 0.044615 | 0.528644 | 1,379 | 25 | 176 | 55.16 | 0.687692 | 0 | 0 | 0.227273 | 0 | 0.090909 | 0.267391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 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 |
1c051afc13411020a3654ad65fd96dd86b2c6979 | 75,380 | py | Python | baadalinstallation/baadal/modules/vm_helper.py | iitd-plos/baadal2.0 | 0496a8ddb5c0620f3448f018ba48b080b96cbe61 | [
"Apache-2.0"
] | 8 | 2017-01-30T17:40:18.000Z | 2022-02-07T19:37:32.000Z | baadalinstallation/baadal/modules/vm_helper.py | iitd-plos/baadal2.0 | 0496a8ddb5c0620f3448f018ba48b080b96cbe61 | [
"Apache-2.0"
] | null | null | null | baadalinstallation/baadal/modules/vm_helper.py | iitd-plos/baadal2.0 | 0496a8ddb5c0620f3448f018ba48b080b96cbe61 | [
"Apache-2.0"
] | 7 | 2016-11-08T13:38:10.000Z | 2019-11-26T04:33:17.000Z | # -*- coding: utf-8 -*-
###################################################################################
from gluon import current
from helper import get_constant, execute_remote_cmd, config, get_datetime, \
log_exception, is_pingable, get_context_path
from libvirt import * # @UnusedWildImport
from log_handler ... | 44.789067 | 237 | 0.655399 | 9,377 | 75,380 | 4.97046 | 0.0642 | 0.046537 | 0.015813 | 0.02079 | 0.614036 | 0.524331 | 0.447863 | 0.396305 | 0.356634 | 0.329171 | 0 | 0.003589 | 0.242266 | 75,380 | 1,682 | 238 | 44.815696 | 0.812406 | 0.034014 | 0 | 0.366234 | 0 | 0 | 0.136538 | 0.005075 | 0 | 0 | 0 | 0 | 0.000866 | 0 | null | null | 0.001732 | 0.006926 | 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 |
1c073d575249e6f524c3e4fa1ac84edb0ff05cc7 | 984 | py | Python | UAS/UAS 11 & 12/main.py | Archedar/UAS | 3237d9304026340acc93c8f36b358578dc0ae66f | [
"BSD-Source-Code"
] | null | null | null | UAS/UAS 11 & 12/main.py | Archedar/UAS | 3237d9304026340acc93c8f36b358578dc0ae66f | [
"BSD-Source-Code"
] | null | null | null | UAS/UAS 11 & 12/main.py | Archedar/UAS | 3237d9304026340acc93c8f36b358578dc0ae66f | [
"BSD-Source-Code"
] | null | null | null | #Main Program
from Class import Barang
import Menu
histori = list()
listBarang = [
Barang('Rinso', 5000, 20),
Barang('Sabun', 3000, 20),
Barang('Pulpen', 2500, 20),
Barang('Tisu', 10000, 20),
Barang('Penggaris', 1000, 20)
]
while True:
print('''
Menu
1. Tampilkan Barang
2. Tambahkan Barang
3. Ta... | 20.93617 | 37 | 0.645325 | 127 | 984 | 5 | 0.472441 | 0.110236 | 0.133858 | 0.170079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069767 | 0.213415 | 984 | 47 | 38 | 20.93617 | 0.750646 | 0.012195 | 0 | 0 | 0 | 0 | 0.311015 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.047619 | 0.071429 | 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 |
1c075f34dca283714195a979ceda054e43bd4f75 | 13,010 | py | Python | original/baselines/train/JointE+ONE.py | thunlp/JointNRE | 29e2070910d0940bf4d32a8b8c97800bceff98fb | [
"MIT"
] | 186 | 2018-01-29T09:33:59.000Z | 2022-03-17T08:20:44.000Z | original/baselines/train/JointE+ONE.py | thunlp/JointNRE | 29e2070910d0940bf4d32a8b8c97800bceff98fb | [
"MIT"
] | 19 | 2018-03-01T01:55:08.000Z | 2022-02-17T03:38:21.000Z | original/baselines/train/JointE+ONE.py | thunlp/JointNRE | 29e2070910d0940bf4d32a8b8c97800bceff98fb | [
"MIT"
] | 36 | 2018-02-02T06:29:29.000Z | 2021-01-22T08:36:00.000Z | #coding:utf-8
import numpy as np
import tensorflow as tf
import os
import time
import datetime
import ctypes
import threading
import json
ll1 = ctypes.cdll.LoadLibrary
lib_cnn = ll1("./init_cnn.so")
ll2 = ctypes.cdll.LoadLibrary
lib_kg = ll2("./init_know.so")
class Config(object):
def __init__(self):
self.in... | 41.301587 | 321 | 0.711299 | 2,131 | 13,010 | 4.012201 | 0.119193 | 0.010292 | 0.019298 | 0.021053 | 0.362573 | 0.310643 | 0.254152 | 0.209708 | 0.172281 | 0.118363 | 0 | 0.021304 | 0.152114 | 13,010 | 314 | 322 | 41.433121 | 0.753785 | 0.001691 | 0 | 0.044444 | 0 | 0 | 0.036746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02963 | null | null | 0.007407 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1c07e719407fcda373a642abe4461b09f4086e6c | 4,041 | py | Python | CRNitschke/get_sextract_thresholds.py | deapplegate/wtgpipeline | 9693e8562022cc97bf5a96427e22965e1a5e8497 | [
"MIT"
] | 1 | 2019-03-15T04:01:19.000Z | 2019-03-15T04:01:19.000Z | CRNitschke/get_sextract_thresholds.py | deapplegate/wtgpipeline | 9693e8562022cc97bf5a96427e22965e1a5e8497 | [
"MIT"
] | 5 | 2017-12-11T00:11:39.000Z | 2021-07-09T17:05:16.000Z | CRNitschke/get_sextract_thresholds.py | deapplegate/wtgpipeline | 9693e8562022cc97bf5a96427e22965e1a5e8497 | [
"MIT"
] | 2 | 2017-08-15T21:19:11.000Z | 2017-10-12T00:36:35.000Z | #! /usr/bin/env python
#adam-does# runs SeeingClearly to get the seeing and rms of the image, then uses those to get sextractor thresholds for CR detection
#adam-use# use with CRNitschke pipeline
#adam-call_example# call it like ./get_sextract_thresholds.py /path/flname.fits output_file.txt
#IO stuff:
import sys ; sys... | 36.736364 | 213 | 0.732739 | 690 | 4,041 | 4.12029 | 0.308696 | 0.04643 | 0.016884 | 0.012663 | 0.10904 | 0.10904 | 0.081604 | 0.066831 | 0.038692 | 0.038692 | 0 | 0.034751 | 0.109874 | 4,041 | 109 | 214 | 37.073395 | 0.75563 | 0.329374 | 0 | 0 | 0 | 0.013158 | 0.150019 | 0.015077 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.157895 | 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 |
1c10af158381d3bf41fbdb21d408b7a2f5c450b9 | 2,336 | py | Python | python/swap_header.py | daniestevez/gr-csp | 0a10e4d2e5cf4a51256e5dc72aa42f8d3d54c232 | [
"Unlicense"
] | 19 | 2016-05-27T15:12:31.000Z | 2021-04-19T09:42:35.000Z | python/swap_header.py | daniestevez/gr-csp | 0a10e4d2e5cf4a51256e5dc72aa42f8d3d54c232 | [
"Unlicense"
] | null | null | null | python/swap_header.py | daniestevez/gr-csp | 0a10e4d2e5cf4a51256e5dc72aa42f8d3d54c232 | [
"Unlicense"
] | 5 | 2017-04-26T22:48:40.000Z | 2022-02-19T23:49:33.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2016 Daniel Estevez <daniel@destevez.net>.
#
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
... | 36.5 | 90 | 0.704195 | 342 | 2,336 | 4.707602 | 0.494152 | 0.018634 | 0.02795 | 0.028571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005959 | 0.20976 | 2,336 | 63 | 91 | 37.079365 | 0.866197 | 0.558647 | 0 | 0 | 0 | 0 | 0.078782 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c10ce60247554a61b0b5d48488c8c6ceac709b6 | 2,149 | py | Python | start.py | gleenn/dfplayer | dd390a6f54b3bd8b2a3397fddd6caacfba01b29d | [
"MIT"
] | null | null | null | start.py | gleenn/dfplayer | dd390a6f54b3bd8b2a3397fddd6caacfba01b29d | [
"MIT"
] | null | null | null | start.py | gleenn/dfplayer | dd390a6f54b3bd8b2a3397fddd6caacfba01b29d | [
"MIT"
] | null | null | null | #!/usr/bin/python
#
# Start dfplayer.
import argparse
import os
import shutil
import subprocess
import sys
import time
_PROJ_DIR = os.path.dirname(__file__)
def main():
os.chdir(_PROJ_DIR)
os.environ['LD_LIBRARY_PATH'] = '/lib:/usr/lib:/usr/local/lib'
arg_parser = argparse.ArgumentParser(description='Star... | 28.653333 | 76 | 0.68497 | 302 | 2,149 | 4.695364 | 0.311258 | 0.076164 | 0.084626 | 0.141044 | 0.3378 | 0.2433 | 0.2433 | 0.14457 | 0.059238 | 0 | 0 | 0.00933 | 0.152164 | 2,149 | 74 | 77 | 29.040541 | 0.768935 | 0.035831 | 0 | 0.035088 | 0 | 0 | 0.278181 | 0.035317 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | null | null | 0.070175 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1c119d6282e07a22b49176d0f6616aca7099e5dc | 3,159 | py | Python | options/base_option.py | lime-j/YTMT-Strategy-1 | aacc38c4e61b91e187cac81aa95500e0422d4d0f | [
"Apache-2.0"
] | 26 | 2021-11-08T07:49:34.000Z | 2022-03-28T14:09:27.000Z | options/base_option.py | lime-j/YTMT-Strategy-1 | aacc38c4e61b91e187cac81aa95500e0422d4d0f | [
"Apache-2.0"
] | 2 | 2021-10-22T02:53:10.000Z | 2021-12-29T12:35:13.000Z | options/base_option.py | lime-j/YTMT-Strategy-1 | aacc38c4e61b91e187cac81aa95500e0422d4d0f | [
"Apache-2.0"
] | 1 | 2021-10-18T08:00:22.000Z | 2021-10-18T08:00:22.000Z | import argparse
import models
model_names = sorted(name for name in models.__dict__
if name.islower() and not name.startswith("__")
and callable(models.__dict__[name]))
class BaseOptions():
def __init__(self):
self.parser = argparse.ArgumentParser(formatter_class... | 65.8125 | 174 | 0.652738 | 404 | 3,159 | 4.955446 | 0.351485 | 0.104895 | 0.12987 | 0.20979 | 0.242757 | 0.062937 | 0.062937 | 0.062937 | 0.062937 | 0.062937 | 0 | 0.010958 | 0.220006 | 3,159 | 47 | 175 | 67.212766 | 0.801542 | 0.015828 | 0 | 0 | 0 | 0.054054 | 0.365217 | 0.008696 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0.054054 | 0 | 0.135135 | 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 |
1c11a09e91a9f24c73ca32bb8e2bc358e52c7c63 | 2,277 | py | Python | bookstore/__init__.py | JanhaviSoni/Book-Recommendation-Analysis | d2697e1f2eb9b9b4e0bafc0dd43d486ceb3d1707 | [
"MIT"
] | 23 | 2021-01-15T15:46:45.000Z | 2021-11-16T12:26:58.000Z | bookstore/__init__.py | JanhaviSoni/Book-Recommendation-Analysis | d2697e1f2eb9b9b4e0bafc0dd43d486ceb3d1707 | [
"MIT"
] | 108 | 2021-01-13T11:02:31.000Z | 2022-03-21T17:47:24.000Z | bookstore/__init__.py | JanhaviSoni/Book-Recommendation-Analysis | d2697e1f2eb9b9b4e0bafc0dd43d486ceb3d1707 | [
"MIT"
] | 46 | 2021-01-14T17:27:28.000Z | 2022-03-20T10:12:24.000Z |
from flask import Flask, Response
from flask_basicauth import BasicAuth
from flask_cors import CORS, cross_origin
import os
#from flask_admin import Admin,AdminIndexView
#from flask_admin.contrib.sqla import ModelView
from flask_sqlalchemy import SQLAlchemy as _BaseSQLAlchemy
from flask_migrate import Migrate, Migr... | 25.021978 | 104 | 0.798858 | 323 | 2,277 | 5.495356 | 0.442724 | 0.045634 | 0.030986 | 0.014648 | 0.04338 | 0.024789 | 0 | 0 | 0 | 0 | 0 | 0.004028 | 0.1278 | 2,277 | 90 | 105 | 25.3 | 0.889728 | 0.452789 | 0 | 0 | 0 | 0 | 0.042834 | 0.019769 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.363636 | 0 | 0.424242 | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1c192652847b82c847977050650f6dd9bf312075 | 7,587 | py | Python | research/object_detection/core/freezable_batch_norm_test.py | baranshad/models | aaf008855e9764f32d974e86f8e1f9cfddfafd9a | [
"Apache-2.0"
] | 3 | 2019-12-15T18:05:04.000Z | 2021-04-30T16:26:04.000Z | research/object_detection/core/freezable_batch_norm_test.py | baranshad/models | aaf008855e9764f32d974e86f8e1f9cfddfafd9a | [
"Apache-2.0"
] | 10 | 2020-01-28T23:15:47.000Z | 2022-03-12T00:11:34.000Z | research/object_detection/core/freezable_batch_norm_test.py | baranshad/models | aaf008855e9764f32d974e86f8e1f9cfddfafd9a | [
"Apache-2.0"
] | 5 | 2020-06-02T09:14:45.000Z | 2022-02-05T17:32:44.000Z | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 41.010811 | 80 | 0.63991 | 925 | 7,587 | 4.963243 | 0.194595 | 0.038336 | 0.076672 | 0.070137 | 0.689828 | 0.651492 | 0.640601 | 0.62274 | 0.62274 | 0.62274 | 0 | 0.011743 | 0.281666 | 7,587 | 184 | 81 | 41.233696 | 0.830642 | 0.223936 | 0 | 0.669492 | 0 | 0 | 0.002395 | 0 | 0 | 0 | 0 | 0 | 0.016949 | 1 | 0.042373 | false | 0 | 0.025424 | 0 | 0.09322 | 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 |
1c1fc5837c8db7a7bfccee73b5ceb661f8e4a0b9 | 3,477 | py | Python | unittests/test_apiv2_user.py | mtcolman/django-DefectDojo | 76175aca446e077884bdb5e1d8e2a671a0840775 | [
"BSD-3-Clause"
] | 249 | 2016-09-06T21:04:40.000Z | 2018-01-19T15:59:44.000Z | unittests/test_apiv2_user.py | mtcolman/django-DefectDojo | 76175aca446e077884bdb5e1d8e2a671a0840775 | [
"BSD-3-Clause"
] | 275 | 2021-02-19T15:16:15.000Z | 2022-03-31T21:09:29.000Z | unittests/test_apiv2_user.py | mtcolman/django-DefectDojo | 76175aca446e077884bdb5e1d8e2a671a0840775 | [
"BSD-3-Clause"
] | 152 | 2016-09-06T21:04:54.000Z | 2018-01-18T08:52:24.000Z | from rest_framework.test import APITestCase, APIClient
from django.urls import reverse
from rest_framework.authtoken.models import Token
class UserTest(APITestCase):
"""
Test the User APIv2 endpoint.
"""
fixtures = ['dojo_testdata.json']
def setUp(self):
token = Token.objects.get(user__us... | 39.067416 | 100 | 0.581823 | 423 | 3,477 | 4.699764 | 0.229314 | 0.064386 | 0.078471 | 0.110664 | 0.621227 | 0.576962 | 0.576962 | 0.576962 | 0.576962 | 0.576962 | 0 | 0.041939 | 0.252517 | 3,477 | 88 | 101 | 39.511364 | 0.72297 | 0.043428 | 0 | 0.537313 | 0 | 0 | 0.191773 | 0 | 0 | 0 | 0 | 0 | 0.238806 | 1 | 0.059701 | false | 0.164179 | 0.044776 | 0 | 0.134328 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1c20efc185d3c6e0666c4268894d9c9ea652083d | 371 | py | Python | src/init.py | ankit-kushwaha-51/RESTful_API | 4513e8a058cb0200b41d47830b93b8a23ea38d7b | [
"MIT"
] | null | null | null | src/init.py | ankit-kushwaha-51/RESTful_API | 4513e8a058cb0200b41d47830b93b8a23ea38d7b | [
"MIT"
] | null | null | null | src/init.py | ankit-kushwaha-51/RESTful_API | 4513e8a058cb0200b41d47830b93b8a23ea38d7b | [
"MIT"
] | null | null | null | from flask import Flask
from src.models import db
from . import config
def create_app():
flask_app = Flask(__name__)
flask_app.config['SQLALCHEMY_DATABASE_URI'] = config.DATABASE_CONNECTION_URI
flask_app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
flask_app.app_context().push()
db.init_app(f... | 24.733333 | 80 | 0.752022 | 52 | 371 | 4.980769 | 0.442308 | 0.185328 | 0.084942 | 0.185328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15903 | 371 | 14 | 81 | 26.5 | 0.830128 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.454545 | 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 |
1c27cd5f5bfc380cd284613d082bf0df751fd64e | 43,000 | py | Python | utils.py | jiangycTarheel/Compositional-Auxseq | e4645a92c21c893cd320eb186c19d392bc147b43 | [
"MIT"
] | 8 | 2021-10-02T00:08:27.000Z | 2022-02-15T17:23:14.000Z | utils.py | jiangycTarheel/compositional-auxseq | e4645a92c21c893cd320eb186c19d392bc147b43 | [
"MIT"
] | null | null | null | utils.py | jiangycTarheel/compositional-auxseq | e4645a92c21c893cd320eb186c19d392bc147b43 | [
"MIT"
] | null | null | null | import os
import json
import gzip
from copy import deepcopy, copy
import numpy as np
import csv
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.utils.data import Dataset, DataLoader, RandomSampler
from transformers.tokenization_utils import trim_batch
class LabelSmoothingLoss(nn.Module)... | 49.768519 | 158 | 0.548721 | 5,425 | 43,000 | 4 | 0.060092 | 0.089401 | 0.098848 | 0.076175 | 0.734055 | 0.701797 | 0.681336 | 0.659677 | 0.619032 | 0.594147 | 0 | 0.016724 | 0.342279 | 43,000 | 863 | 159 | 49.826188 | 0.750548 | 0.137698 | 0 | 0.558029 | 0 | 0 | 0.044011 | 0.001846 | 0 | 0 | 0 | 0 | 0.022258 | 1 | 0.041335 | false | 0 | 0.017488 | 0 | 0.104928 | 0.007949 | 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 |
1c28644cccaa9b7ccc104007acdb7fe41da7c7ad | 1,198 | py | Python | python/graphscope/experimental/nx/tests/algorithms/forward/operators/test_product.py | wenyuanyu/GraphScope | a40ccaf70557e608d8b091eb25ab04477f99ce21 | [
"Apache-2.0"
] | 2 | 2020-12-15T08:42:10.000Z | 2022-01-14T09:13:16.000Z | python/graphscope/experimental/nx/tests/algorithms/forward/operators/test_product.py | wenyuanyu/GraphScope | a40ccaf70557e608d8b091eb25ab04477f99ce21 | [
"Apache-2.0"
] | 1 | 2020-12-22T13:15:40.000Z | 2020-12-22T13:15:40.000Z | python/graphscope/experimental/nx/tests/algorithms/forward/operators/test_product.py | wenyuanyu/GraphScope | a40ccaf70557e608d8b091eb25ab04477f99ce21 | [
"Apache-2.0"
] | 1 | 2021-11-23T03:40:43.000Z | 2021-11-23T03:40:43.000Z | import networkx.algorithms.operators.tests.test_product
import pytest
from graphscope.experimental.nx.utils.compat import import_as_graphscope_nx
import_as_graphscope_nx(networkx.algorithms.operators.tests.test_product,
decorators=pytest.mark.usefixtures("graphscope_session"))
def test_tenso... | 27.860465 | 81 | 0.724541 | 176 | 1,198 | 4.693182 | 0.301136 | 0.042373 | 0.01937 | 0.077482 | 0.576271 | 0.549637 | 0.445521 | 0.445521 | 0.445521 | 0.445521 | 0 | 0.028084 | 0.16778 | 1,198 | 42 | 82 | 28.52381 | 0.800401 | 0.045075 | 0 | 0.5 | 0 | 0 | 0.054291 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.178571 | false | 0.071429 | 0.142857 | 0 | 0.321429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1c2b5a500905db564cebad53847b80d4840a37d9 | 3,947 | py | Python | manpages.py | mba811/dash-manpages-zh | 94f7345f48084c2fa22ae00996920d1309458649 | [
"Apache-2.0"
] | 1 | 2020-04-09T10:51:01.000Z | 2020-04-09T10:51:01.000Z | manpages.py | mba811/dash-manpages-zh | 94f7345f48084c2fa22ae00996920d1309458649 | [
"Apache-2.0"
] | null | null | null | manpages.py | mba811/dash-manpages-zh | 94f7345f48084c2fa22ae00996920d1309458649 | [
"Apache-2.0"
] | 1 | 2020-09-16T03:04:18.000Z | 2020-09-16T03:04:18.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@author: Wu Liang
@contact:
@date: 2014/06/23
"""
import os
import sqlite3
import urllib2
import shutil
import tarfile
import hashlib
import codecs
from mako.template import Template
from pyquery import PyQuery
currentPath = os.path.join(os.path.dirname(os.path.real... | 30.835938 | 122 | 0.698759 | 519 | 3,947 | 5.306358 | 0.331407 | 0.045752 | 0.061728 | 0.091503 | 0.265069 | 0.217139 | 0.179739 | 0.065723 | 0.065723 | 0 | 0 | 0.011501 | 0.118824 | 3,947 | 127 | 123 | 31.07874 | 0.780334 | 0.057512 | 0 | 0.113402 | 0 | 0.020619 | 0.319934 | 0.115942 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010309 | 0.092784 | null | null | 0.010309 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1c2c1ecff02208f628aa2e65eae53abaf0c94bd6 | 1,527 | py | Python | docs/conf.py | alexweav/nisystemlink-clients-python | f19a30907a7fef536043ecbddc5a755e5fedf846 | [
"MIT"
] | null | null | null | docs/conf.py | alexweav/nisystemlink-clients-python | f19a30907a7fef536043ecbddc5a755e5fedf846 | [
"MIT"
] | null | null | null | docs/conf.py | alexweav/nisystemlink-clients-python | f19a30907a7fef536043ecbddc5a755e5fedf846 | [
"MIT"
] | null | null | null | import os
import sys
sys.path.insert(0, os.path.abspath(".."))
# --------------------------------------------------------------------------------------
project = "nisystemlink"
copyright = "2020, National Instruments"
author = "National Instruments"
# The short X.Y version
version = "0.1"
# The full version, includ... | 26.789474 | 88 | 0.587426 | 173 | 1,527 | 5.028902 | 0.537572 | 0.062069 | 0.124138 | 0.045977 | 0.062069 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007675 | 0.146693 | 1,527 | 56 | 89 | 27.267857 | 0.660015 | 0.237721 | 0 | 0 | 0 | 0 | 0.432152 | 0.020743 | 0 | 0 | 0 | 0.017857 | 0 | 1 | 0 | false | 0 | 0.046512 | 0 | 0.046512 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
1c2f9886c30209c8f8c18348757a2729fc8d5b30 | 1,832 | py | Python | sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01/models/_application_insights_management_client_enums.py | iscai-msft/azure-sdk-for-python | 83715b95c41e519d5be7f1180195e2fba136fc0f | [
"MIT"
] | 8 | 2021-01-13T23:44:08.000Z | 2021-03-17T10:13:36.000Z | sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01/models/_application_insights_management_client_enums.py | iscai-msft/azure-sdk-for-python | 83715b95c41e519d5be7f1180195e2fba136fc0f | [
"MIT"
] | 226 | 2019-07-24T07:57:21.000Z | 2019-10-15T01:07:24.000Z | sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01/models/_application_insights_management_client_enums.py | iscai-msft/azure-sdk-for-python | 83715b95c41e519d5be7f1180195e2fba136fc0f | [
"MIT"
] | 2 | 2020-05-21T22:51:22.000Z | 2020-05-26T20:53:01.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 17.960784 | 76 | 0.600437 | 179 | 1,832 | 6.134078 | 0.497207 | 0.082878 | 0.023679 | 0.034608 | 0.15847 | 0.15847 | 0.15847 | 0.100182 | 0.100182 | 0 | 0 | 0.000697 | 0.217249 | 1,832 | 101 | 77 | 18.138614 | 0.764993 | 0.246725 | 0 | 0.313725 | 0 | 0 | 0.189189 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.019608 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1c30848fe8db838bf2ea7ab14ebea0d07ae3d297 | 2,311 | py | Python | setup.py | mark-mishyn/django-axes | dfaf67810abd21a0e76200a4906c1bffdd4fa9c9 | [
"MIT"
] | null | null | null | setup.py | mark-mishyn/django-axes | dfaf67810abd21a0e76200a4906c1bffdd4fa9c9 | [
"MIT"
] | null | null | null | setup.py | mark-mishyn/django-axes | dfaf67810abd21a0e76200a4906c1bffdd4fa9c9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="django-axes",
description="Keep track of failed login attempts in Django-powered sites.",
long_description="\n".join(
[
open("README.rst", encoding="utf-8").read(),
open("CHANGES.rst", encoding="... | 34.492537 | 87 | 0.581134 | 229 | 2,311 | 5.79476 | 0.528384 | 0.100226 | 0.131876 | 0.078372 | 0.10098 | 0.072344 | 0 | 0 | 0 | 0 | 0 | 0.016384 | 0.260493 | 2,311 | 66 | 88 | 35.015152 | 0.760094 | 0.008654 | 0 | 0.031746 | 0 | 0 | 0.541048 | 0.00917 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.015873 | 0 | 0.015873 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1c33dae046d778c2acefa8efab3c4ae7565e1bc3 | 348 | py | Python | spark_work.py | nszceta/spark-python-celery-demo | c5b03be4bb96699f8e41aa8a42fecd4c25c76331 | [
"MIT"
] | 8 | 2016-01-19T15:59:36.000Z | 2018-04-25T09:00:57.000Z | spark_work.py | nszceta/spark-python-celery-demo | c5b03be4bb96699f8e41aa8a42fecd4c25c76331 | [
"MIT"
] | null | null | null | spark_work.py | nszceta/spark-python-celery-demo | c5b03be4bb96699f8e41aa8a42fecd4c25c76331 | [
"MIT"
] | null | null | null | import sys
from pyspark import SparkContext
import json
print('spark got python path -> ' + str(sys.executable))
logfile = sys.argv[1]
sc = SparkContext()
logdata = sc.textFile(logfile).cache()
a_count = logdata.filter(lambda s: 'a' in s).count()
b_count = logdata.filter(lambda s: 'b' in s).count()
print(json.dumps({'a... | 31.636364 | 56 | 0.70977 | 56 | 348 | 4.339286 | 0.5 | 0.049383 | 0.148148 | 0.197531 | 0.205761 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003279 | 0.123563 | 348 | 10 | 57 | 34.8 | 0.793443 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 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 |
1c3521323cf7d57dc8b2b240d95a181b90cc3144 | 1,188 | py | Python | src/recognizeDigit.py | RsTaK/Sudoku | 8daa0a06906ce61d9a71586a8d28a3931ca4e5e3 | [
"MIT"
] | 2 | 2020-01-22T14:32:40.000Z | 2021-12-23T20:42:52.000Z | src/recognizeDigit.py | RsTaK/Sudoku | 8daa0a06906ce61d9a71586a8d28a3931ca4e5e3 | [
"MIT"
] | 4 | 2020-11-13T18:54:24.000Z | 2022-02-10T02:10:00.000Z | src/recognizeDigit.py | RsTaK/Sudoku | 8daa0a06906ce61d9a71586a8d28a3931ca4e5e3 | [
"MIT"
] | 1 | 2020-01-22T14:02:50.000Z | 2020-01-22T14:02:50.000Z | from keras.models import load_model
import cv2
import pickle
import keras.backend as K
import numpy as np
from src.model_path import MODEL_PATH
'''def predict(self, cell):
model = load_model('./model/Model.h5')
f = K.function([model.layers[0].input, K.learning_phase()],[model.layers[-1].output])
rescaled_cell = ... | 27 | 87 | 0.705387 | 165 | 1,188 | 4.933333 | 0.363636 | 0.039312 | 0.034398 | 0.044226 | 0.250614 | 0.090909 | 0.090909 | 0.090909 | 0 | 0 | 0 | 0.02006 | 0.160774 | 1,188 | 44 | 88 | 27 | 0.796389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.3 | 0.05 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1c357d3712292b01ee95a5bca2342315acb4f8ef | 623 | py | Python | dojo/db_migrations/0147_rename_sslyze_parser.py | dant24/django-DefectDojo | caf5c91b3f8870d5f466dfaaf5a3a096f8812ad9 | [
"BSD-3-Clause"
] | 249 | 2016-09-06T21:04:40.000Z | 2018-01-19T15:59:44.000Z | dojo/db_migrations/0147_rename_sslyze_parser.py | dant24/django-DefectDojo | caf5c91b3f8870d5f466dfaaf5a3a096f8812ad9 | [
"BSD-3-Clause"
] | 255 | 2016-09-06T21:36:37.000Z | 2018-01-19T19:57:57.000Z | dojo/db_migrations/0147_rename_sslyze_parser.py | dant24/django-DefectDojo | caf5c91b3f8870d5f466dfaaf5a3a096f8812ad9 | [
"BSD-3-Clause"
] | 152 | 2016-09-06T21:04:54.000Z | 2018-01-18T08:52:24.000Z | from django.db import migrations
def rename_sslyze_parser(apps, schema_editor):
Test_Type_model = apps.get_model('dojo', 'Test_Type')
try:
test_type_sslyze = Test_Type_model.objects.get(name='SSLyze 3 Scan (JSON)')
test_type_sslyze.name = 'SSLyze Scan (JSON)'
test_type_sslyze.save()
... | 25.958333 | 83 | 0.678973 | 77 | 623 | 5.220779 | 0.584416 | 0.139303 | 0.097015 | 0.079602 | 0.109453 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010373 | 0.226324 | 623 | 23 | 84 | 27.086957 | 0.823651 | 0.085072 | 0 | 0 | 0 | 0 | 0.128521 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.0625 | 0.0625 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1c38a65740967a1e49c94a99e84549d3470de0b7 | 493 | py | Python | TwoPointers/Leetcode11.py | Rylie-W/LeetRecord | 623c4efe88b3af54b8a65f6ec23db850b8c6f46f | [
"Apache-2.0"
] | null | null | null | TwoPointers/Leetcode11.py | Rylie-W/LeetRecord | 623c4efe88b3af54b8a65f6ec23db850b8c6f46f | [
"Apache-2.0"
] | null | null | null | TwoPointers/Leetcode11.py | Rylie-W/LeetRecord | 623c4efe88b3af54b8a65f6ec23db850b8c6f46f | [
"Apache-2.0"
] | null | null | null | class Solution:
def maxArea(self, height) -> int:
left=0
right=len(height)-1
res=min(height[left],height[right])*(right-left)
while right>left:
res=max(res,(right-left)*min(height[right],height[left]))
if height[left]<height[right]:
left+=1
... | 25.947368 | 69 | 0.543611 | 66 | 493 | 3.939394 | 0.424242 | 0.138462 | 0.123077 | 0.161538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043228 | 0.296146 | 493 | 18 | 70 | 27.388889 | 0.706052 | 0.030426 | 0 | 0 | 0 | 0 | 0.016807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.2 | 0.066667 | 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 |
1c3c2ebbf2a88dc388bb0314813d8b32b385e4b0 | 3,133 | py | Python | rqalpha/data/instrument_mixin.py | mysky528/rqalpha | ecd550fc30aee96f9995e8152e2c48f5512f8b11 | [
"Apache-2.0"
] | 3 | 2017-07-11T15:37:24.000Z | 2021-11-22T14:21:13.000Z | rqalpha/data/instrument_mixin.py | mysky528/rqalpha | ecd550fc30aee96f9995e8152e2c48f5512f8b11 | [
"Apache-2.0"
] | null | null | null | rqalpha/data/instrument_mixin.py | mysky528/rqalpha | ecd550fc30aee96f9995e8152e2c48f5512f8b11 | [
"Apache-2.0"
] | 2 | 2019-04-26T07:51:08.000Z | 2020-12-01T20:59:04.000Z | # -*- coding: utf-8 -*-
#
# Copyright 2017 Ricequant, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 40.166667 | 100 | 0.620172 | 444 | 3,133 | 4.209459 | 0.326577 | 0.096308 | 0.035313 | 0.025682 | 0.256822 | 0.197432 | 0.17924 | 0.146067 | 0.101124 | 0.101124 | 0 | 0.029333 | 0.281838 | 3,133 | 77 | 101 | 40.688312 | 0.801333 | 0.21481 | 0 | 0.23913 | 0 | 0 | 0.026639 | 0 | 0 | 0 | 0 | 0.012987 | 0 | 1 | 0.173913 | false | 0.021739 | 0.021739 | 0.086957 | 0.456522 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
1c3e669806f961c690e3e607d0c5ebaae5ffefbe | 2,503 | py | Python | articles/views.py | qwghlm/CommentIsMee | 2c11be1376ec693df28123727c3d86b38404fd71 | [
"MIT"
] | null | null | null | articles/views.py | qwghlm/CommentIsMee | 2c11be1376ec693df28123727c3d86b38404fd71 | [
"MIT"
] | null | null | null | articles/views.py | qwghlm/CommentIsMee | 2c11be1376ec693df28123727c3d86b38404fd71 | [
"MIT"
] | null | null | null | from django.http import HttpResponse
from django.template import RequestContext, loader
from django.shortcuts import render, get_object_or_404, redirect
from django.core.urlresolvers import reverse
from django.core.cache import cache
from articles.models import CIFArticle
from .forms import CIFArticleForm
def index(r... | 32.934211 | 86 | 0.62485 | 299 | 2,503 | 5.103679 | 0.334448 | 0.057667 | 0.049148 | 0.060944 | 0.057667 | 0.057667 | 0.057667 | 0.057667 | 0.057667 | 0 | 0 | 0.009939 | 0.276468 | 2,503 | 75 | 87 | 33.373333 | 0.832689 | 0.09189 | 0 | 0.137255 | 0 | 0 | 0.088439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.137255 | 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 |
1c41c0dd3400c46c01883be0652a07078deef3cb | 2,616 | py | Python | pydoc_fork/__main__.py | matthewdeanmartin/pydoc_fork | 174475b15be966f3751d5563b4db0beecc3ab1f9 | [
"MIT"
] | null | null | null | pydoc_fork/__main__.py | matthewdeanmartin/pydoc_fork | 174475b15be966f3751d5563b4db0beecc3ab1f9 | [
"MIT"
] | 1 | 2022-01-17T16:28:45.000Z | 2022-01-17T16:28:45.000Z | pydoc_fork/__main__.py | matthewdeanmartin/pydoc_fork | 174475b15be966f3751d5563b4db0beecc3ab1f9 | [
"MIT"
] | null | null | null | # noinspection PyPep8
"""pydoc_fork
A fork of pydoc that is optimized for generating html documentation in a CI context
Usage:
pydoc_fork <package>... [options]
pydoc_fork (-h | --help)
pydoc_fork --version
Options:
-h --help Show this screen.
-v --version Show version.
... | 31.518072 | 86 | 0.64526 | 302 | 2,616 | 5.337748 | 0.413907 | 0.055831 | 0.039702 | 0.047146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003018 | 0.240061 | 2,616 | 82 | 87 | 31.902439 | 0.807847 | 0.41208 | 0 | 0 | 0 | 0 | 0.176781 | 0.031662 | 0 | 0 | 0 | 0.012195 | 0 | 1 | 0.026316 | false | 0 | 0.131579 | 0 | 0.184211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
1c4262cdeb92ebd6c335d957cdc8fd8bfca03129 | 190 | py | Python | Learning Python/Exercise Files/Ch2/helloworld_my.py | RomanShevtsiv/linkedin-learning | d7ec85953b7e88905f87928ede067d32344b984f | [
"MIT"
] | null | null | null | Learning Python/Exercise Files/Ch2/helloworld_my.py | RomanShevtsiv/linkedin-learning | d7ec85953b7e88905f87928ede067d32344b984f | [
"MIT"
] | null | null | null | Learning Python/Exercise Files/Ch2/helloworld_my.py | RomanShevtsiv/linkedin-learning | d7ec85953b7e88905f87928ede067d32344b984f | [
"MIT"
] | null | null | null | #
# Example file for HelloWorld
#
def main():
print("Hello World")
name = input("What is your name? ")
print("Nice to meet you,", name)
if __name__ == "__main__":
main()
| 13.571429 | 39 | 0.594737 | 25 | 190 | 4.2 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252632 | 190 | 13 | 40 | 14.615385 | 0.739437 | 0.142105 | 0 | 0 | 0 | 0 | 0.345912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.166667 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c49c9837d339902372100015afa8dd09aa825df | 718 | py | Python | tests/main.py | deeso/json-search-replace | d1dd75cfaecb65bf8fcbad0c80a0bd839eccaa8d | [
"Apache-2.0"
] | 1 | 2019-02-08T14:42:45.000Z | 2019-02-08T14:42:45.000Z | tests/main.py | deeso/manipin-json | d1dd75cfaecb65bf8fcbad0c80a0bd839eccaa8d | [
"Apache-2.0"
] | null | null | null | tests/main.py | deeso/manipin-json | d1dd75cfaecb65bf8fcbad0c80a0bd839eccaa8d | [
"Apache-2.0"
] | null | null | null | from wrapper_tests.upsert_test import *
from wrapper_tests.upsertvaluedict_test import *
import os
import logging
import sys
import argparse
import signal
logging.getLogger().setLevel(logging.DEBUG)
ch = logging.StreamHandler(sys.stdout)
ch.setLevel(logging.DEBUG)
formatter = logging.Formatter('[%(asctime)s - %(name)s... | 26.592593 | 71 | 0.721448 | 90 | 718 | 5.611111 | 0.588889 | 0.043564 | 0.063366 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157382 | 718 | 26 | 72 | 27.615385 | 0.834711 | 0 | 0 | 0 | 0 | 0 | 0.169916 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.35 | 0 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1c4b4d3e7fde53ff67c2f5b9ffd3aee5b505137c | 598 | py | Python | Sending_email/email.py | Satyam-Bhalla/Python-Scripts | 39c46a362acd63cc5d1b9ab57ecb7250eaff35f7 | [
"MIT"
] | 8 | 2018-09-25T16:30:12.000Z | 2022-03-25T05:13:43.000Z | Sending_email/email.py | Satyam-Bhalla/Python-Scripts | 39c46a362acd63cc5d1b9ab57ecb7250eaff35f7 | [
"MIT"
] | 1 | 2021-03-31T18:43:43.000Z | 2021-03-31T18:43:43.000Z | Sending_email/email.py | Satyam-Bhalla/Python-Scripts | 39c46a362acd63cc5d1b9ab57ecb7250eaff35f7 | [
"MIT"
] | 6 | 2018-01-29T19:00:42.000Z | 2022-03-25T05:13:47.000Z | import smtplib
gmail_user = 'your email'
gmail_password = 'your password'
sent_from = gmail_user
to = ['reciever email'] #Create a list for all the recievers
subject = 'OMG Super Important Message'
body = 'Hey, what\'s up?\n- You'
email_text = """\
From: %s
To: %s
Subject: %s
%s
""" % (sent_from, ", ".... | 21.357143 | 61 | 0.653846 | 86 | 598 | 4.418605 | 0.546512 | 0.071053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006303 | 0.204013 | 598 | 27 | 62 | 22.148148 | 0.792017 | 0.058528 | 0 | 0 | 0 | 0 | 0.251337 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.090909 | 0 | 0.090909 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1c4b532b4b156dd08dc3bcca54d167230e8c8b2a | 4,532 | py | Python | FlaskDaemon/load_test.py | caffeinate/test-pylot | 3380208ea0e7ee5fed4299f22ab592a3d3232b3a | [
"MIT"
] | null | null | null | FlaskDaemon/load_test.py | caffeinate/test-pylot | 3380208ea0e7ee5fed4299f22ab592a3d3232b3a | [
"MIT"
] | 1 | 2021-10-31T17:46:54.000Z | 2021-10-31T17:46:54.000Z | FlaskDaemon/load_test.py | caffeinate/test-pylot | 3380208ea0e7ee5fed4299f22ab592a3d3232b3a | [
"MIT"
] | 1 | 2020-07-20T04:10:40.000Z | 2020-07-20T04:10:40.000Z | '''
Created on 11 Sep 2015
@author: si
'''
import json
import random
import time
from threading import Thread
# import urllib
import urllib2
from Queue import Queue
import logging
logger = logging.getLogger(__name__)
API_URL = "http://127.0.0.1:5000/"
class LoadTest(object):
"""
Create a single process with... | 29.23871 | 86 | 0.559797 | 552 | 4,532 | 4.349638 | 0.262681 | 0.052478 | 0.059975 | 0.029988 | 0.205331 | 0.118284 | 0.058309 | 0.03082 | 0.03082 | 0 | 0 | 0.01297 | 0.336496 | 4,532 | 154 | 87 | 29.428571 | 0.785501 | 0.081421 | 0 | 0.11236 | 0 | 0 | 0.118376 | 0.027683 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.078652 | null | null | 0.033708 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1c4b641cf08d14aaba12ee7b055b0523dd40710b | 407 | py | Python | urls.py | jeylani99/Real-Estate | 5ccb4bf23c73b4acb77427faa202a15216ef58c3 | [
"Apache-2.0"
] | null | null | null | urls.py | jeylani99/Real-Estate | 5ccb4bf23c73b4acb77427faa202a15216ef58c3 | [
"Apache-2.0"
] | null | null | null | urls.py | jeylani99/Real-Estate | 5ccb4bf23c73b4acb77427faa202a15216ef58c3 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from django.conf.urls import include,url
from .import views
urlpatterns = [
url(r'^$', views.IndexView.as_view(),name='index'),
#homeapp_detail_view_url
url(r'^(?P<pk>[0-9]+)/$',views.LocationView.as_view(),name='property'),
#homeapp/detailview/moredetailview
url(r'... | 29.071429 | 88 | 0.668305 | 57 | 407 | 4.666667 | 0.491228 | 0.045113 | 0.112782 | 0.037594 | 0.075188 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016713 | 0.117936 | 407 | 14 | 89 | 29.071429 | 0.724234 | 0.137592 | 0 | 0 | 0 | 0 | 0.2 | 0.074286 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1c5289b76fb10d8b256a4000027a462353b8a389 | 1,342 | py | Python | SSOKeyGen/ssokeygendialog.py | chrcoe/sso-keygen | c149f6202fbecb38874c75bf82e0d4857d1249f9 | [
"MIT"
] | null | null | null | SSOKeyGen/ssokeygendialog.py | chrcoe/sso-keygen | c149f6202fbecb38874c75bf82e0d4857d1249f9 | [
"MIT"
] | null | null | null | SSOKeyGen/ssokeygendialog.py | chrcoe/sso-keygen | c149f6202fbecb38874c75bf82e0d4857d1249f9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ssokeygendialog.ui'
#
# Created: Sun Feb 1 12:33:36 2015
# by: PyQt5 UI code generator 5.4
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(s... | 38.342857 | 106 | 0.708644 | 148 | 1,342 | 6.398649 | 0.554054 | 0.096093 | 0.040127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037341 | 0.181818 | 1,342 | 34 | 107 | 39.470588 | 0.825137 | 0.161699 | 0 | 0 | 1 | 0 | 0.050179 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.047619 | 0 | 0.190476 | 0 | 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 |
1c54af7d2bc1fc02891b6239b955a52d082c20b2 | 936 | py | Python | pycuda/characterize.py | grlee77/pycuda | cfb787ac73a523fe4b32eff31ecffac485388bbf | [
"Apache-2.0"
] | null | null | null | pycuda/characterize.py | grlee77/pycuda | cfb787ac73a523fe4b32eff31ecffac485388bbf | [
"Apache-2.0"
] | null | null | null | pycuda/characterize.py | grlee77/pycuda | cfb787ac73a523fe4b32eff31ecffac485388bbf | [
"Apache-2.0"
] | 1 | 2020-08-31T08:52:24.000Z | 2020-08-31T08:52:24.000Z | from __future__ import division
from __future__ import absolute_import
from pycuda.tools import context_dependent_memoize
import numpy as np
def platform_bits():
return tuple.__itemsize__ * 8
def has_stack():
from pycuda.driver import Context
return Context.get_device().compute_capability() >= (2, 0)
... | 24 | 72 | 0.700855 | 123 | 936 | 5.03252 | 0.479675 | 0.06462 | 0.051696 | 0.071082 | 0.219709 | 0.219709 | 0.219709 | 0.219709 | 0.219709 | 0.219709 | 0 | 0.013106 | 0.184829 | 936 | 38 | 73 | 24.631579 | 0.798165 | 0 | 0 | 0.074074 | 0 | 0 | 0.132479 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.296296 | 0.037037 | 0.592593 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1c556489b0d99f41db32e59ce5f01f383067703c | 2,797 | py | Python | pygs/graphserver/compiler/dedupe.py | abyrd/graphserver | 42edcad2618635310c57fa6ab4a13974025248ba | [
"BSD-3-Clause-Clear"
] | 2 | 2015-02-25T21:46:02.000Z | 2019-04-27T20:22:33.000Z | pygs/graphserver/compiler/dedupe.py | ninowalker/graphserver | dc08070bc6e295986633cf510ca46a2f8d451b92 | [
"BSD-3-Clause-Clear"
] | null | null | null | pygs/graphserver/compiler/dedupe.py | ninowalker/graphserver | dc08070bc6e295986633cf510ca46a2f8d451b92 | [
"BSD-3-Clause-Clear"
] | null | null | null | # eliminate duplicate service periods from a GTFS database
from graphserver.ext.gtfs.gtfsdb import GTFSDatabase
import sys
from optparse import OptionParser
def main():
usage = """usage: python dedupe.py <graphdb_filename>"""
parser = OptionParser(usage=usage)
(options, args) = parser.parse_args()
... | 39.957143 | 271 | 0.631748 | 370 | 2,797 | 4.556757 | 0.3 | 0.099644 | 0.049822 | 0.066429 | 0.297746 | 0.286477 | 0.282325 | 0.231317 | 0.231317 | 0.231317 | 0 | 0.002431 | 0.264569 | 2,797 | 70 | 272 | 39.957143 | 0.81721 | 0.108688 | 0 | 0 | 0 | 0.02439 | 0.274226 | 0.009248 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.073171 | null | null | 0.04878 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1c59215728acaff76dbcdca05ce20bf9c254f9f4 | 1,627 | py | Python | tests/test_deepsv.py | lsantuari/deepsv | debaa1442d1d97b8220be70e12321cf047d3e6a0 | [
"Apache-2.0"
] | null | null | null | tests/test_deepsv.py | lsantuari/deepsv | debaa1442d1d97b8220be70e12321cf047d3e6a0 | [
"Apache-2.0"
] | null | null | null | tests/test_deepsv.py | lsantuari/deepsv | debaa1442d1d97b8220be70e12321cf047d3e6a0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import pytest
from deepsv import deepsv
from unittest.mock import patch
"""Tests for the deepsv module.
"""
def test_something():
assert True
def test_adding_numbers():
assert deepsv.add_numbers(1, 1) == 2
assert deepsv.add_numbers(1, 2) != 2
def test_wi... | 22.287671 | 71 | 0.695144 | 238 | 1,627 | 4.546218 | 0.357143 | 0.051756 | 0.069316 | 0.085028 | 0.356747 | 0.218115 | 0.177449 | 0.110906 | 0.110906 | 0.110906 | 0 | 0.032138 | 0.177628 | 1,627 | 72 | 72 | 22.597222 | 0.776532 | 0.095267 | 0 | 0 | 0 | 0 | 0.146648 | 0.037011 | 0 | 0 | 0 | 0 | 0.282051 | 1 | 0.282051 | false | 0 | 0.076923 | 0.051282 | 0.435897 | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1c5cd63de747901926f8ddd0a4d149ca05999677 | 2,575 | py | Python | python-framework/handlers/base/auth.py | huangxingx/python-framework | a62618b0ee5ecff9de426327892cdd690d10510d | [
"MIT"
] | 7 | 2019-10-24T03:26:22.000Z | 2019-10-27T14:55:07.000Z | python-framework/handlers/base/auth.py | PJoemu/python-framework | a62618b0ee5ecff9de426327892cdd690d10510d | [
"MIT"
] | 3 | 2021-06-08T19:13:10.000Z | 2022-01-13T00:38:48.000Z | python-framework/handlers/base/auth.py | PJoemu/python-framework | a62618b0ee5ecff9de426327892cdd690d10510d | [
"MIT"
] | 2 | 2019-10-25T03:54:51.000Z | 2020-06-28T08:50:12.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @author: x.huang
# @date:17-8-4
import logging
from pony.orm import db_session
from handlers.base.base import BaseRequestHandler
class LoginRequireError(Exception):
pass
class AuthBaseHandler(BaseRequestHandler):
""" 登录验证的基类 """
def prepare(self):
... | 32.1875 | 107 | 0.533204 | 282 | 2,575 | 4.652482 | 0.308511 | 0.074695 | 0.045732 | 0.036585 | 0.536585 | 0.536585 | 0.536585 | 0.536585 | 0.536585 | 0.509909 | 0 | 0.005109 | 0.391845 | 2,575 | 79 | 108 | 32.594937 | 0.832695 | 0.031456 | 0 | 0.633333 | 0 | 0 | 0.011272 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.166667 | 0.05 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1c5e34faccefb41600dc36e2445e46683f4cb6c1 | 5,213 | py | Python | tests/test_command.py | paulfurley/Mailpile | f89611d916e41e74dd00997327a2c2d042a96399 | [
"Apache-2.0"
] | 1 | 2017-04-19T11:10:05.000Z | 2017-04-19T11:10:05.000Z | tests/test_command.py | paulfurley/Mailpile | f89611d916e41e74dd00997327a2c2d042a96399 | [
"Apache-2.0"
] | null | null | null | tests/test_command.py | paulfurley/Mailpile | f89611d916e41e74dd00997327a2c2d042a96399 | [
"Apache-2.0"
] | null | null | null | import unittest
import mailpile
from mock import patch
from mailpile.commands import Action as action
from tests import MailPileUnittest
class TestCommands(MailPileUnittest):
def test_index(self):
res = self.mp.rescan()
self.assertEqual(res.as_dict()["status"], 'success')
def test_search(sel... | 32.378882 | 87 | 0.619029 | 636 | 5,213 | 4.850629 | 0.201258 | 0.061264 | 0.05543 | 0.075851 | 0.514749 | 0.420746 | 0.351053 | 0.269044 | 0.21718 | 0.20389 | 0 | 0.02454 | 0.249568 | 5,213 | 160 | 88 | 32.58125 | 0.764059 | 0.011702 | 0 | 0.190083 | 0 | 0 | 0.127961 | 0.028544 | 0 | 0 | 0 | 0 | 0.256198 | 1 | 0.223141 | false | 0.024793 | 0.057851 | 0 | 0.31405 | 0.016529 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1c6036ce4a4bea03f2bf60037b8ba69bf71a83e1 | 713 | py | Python | tests/backends/test_cookie.py | euri10/starsessions | 6bd258a0f94d30b6ec4a8da41910f97c5dabbe54 | [
"MIT"
] | 31 | 2021-07-15T13:00:06.000Z | 2022-03-17T08:25:52.000Z | tests/backends/test_cookie.py | euri10/starsessions | 6bd258a0f94d30b6ec4a8da41910f97c5dabbe54 | [
"MIT"
] | 6 | 2021-09-01T15:25:20.000Z | 2022-03-13T07:29:19.000Z | tests/backends/test_cookie.py | euri10/starsessions | 6bd258a0f94d30b6ec4a8da41910f97c5dabbe54 | [
"MIT"
] | 5 | 2021-08-19T04:46:35.000Z | 2022-03-09T15:27:22.000Z | import pytest
from starsessions import SessionBackend
@pytest.mark.asyncio
async def test_cookie_read_write(cookie: SessionBackend, session_payload: dict) -> None:
new_id = await cookie.write(session_payload, "session_id")
assert await cookie.read(new_id) == session_payload
@pytest.mark.asyncio
async def t... | 27.423077 | 88 | 0.775596 | 96 | 713 | 5.541667 | 0.291667 | 0.103383 | 0.12782 | 0.165414 | 0.338346 | 0.263158 | 0.263158 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 713 | 25 | 89 | 28.52 | 0.858065 | 0 | 0 | 0.25 | 0 | 0 | 0.042076 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 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 |
1c60d6b7074a5670b3d1308323fd21a043a33869 | 4,888 | py | Python | sqlalchemy_dremio/db.py | thbeh/sqlalchemy_dremio | 180169a86200977a8087d39afe67d3594bd66523 | [
"Apache-2.0"
] | 14 | 2020-04-19T16:14:37.000Z | 2021-11-14T01:45:51.000Z | sqlalchemy_dremio/db.py | thbeh/sqlalchemy_dremio | 180169a86200977a8087d39afe67d3594bd66523 | [
"Apache-2.0"
] | 13 | 2020-04-18T14:44:49.000Z | 2022-03-14T13:45:22.000Z | sqlalchemy_dremio/db.py | thbeh/sqlalchemy_dremio | 180169a86200977a8087d39afe67d3594bd66523 | [
"Apache-2.0"
] | 6 | 2020-04-29T10:18:59.000Z | 2021-08-19T13:46:30.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import logging
from pyarrow import flight
from sqlalchemy_dremio.exceptions import Error, NotSupportedError
from sqlalchemy_dremio.flight_auth import HttpDremioClientAu... | 25.591623 | 115 | 0.618658 | 579 | 4,888 | 5.069085 | 0.29361 | 0.059966 | 0.07155 | 0.024532 | 0.201704 | 0.12879 | 0.07155 | 0.050426 | 0.02385 | 0.02385 | 0 | 0.003743 | 0.289484 | 4,888 | 190 | 116 | 25.726316 | 0.841348 | 0.21829 | 0 | 0.344828 | 0 | 0 | 0.034314 | 0 | 0 | 0 | 0 | 0.005263 | 0 | 1 | 0.206897 | false | 0.043103 | 0.077586 | 0.034483 | 0.431034 | 0.008621 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1c61e6c641ff5d3b13cd3eb58254039918bc75f6 | 2,081 | py | Python | docker-images/rasa2/snips_services/tts_server.py | sanyaade-machine-learning/opensnips_original | 3c7d4aa2ef7dec7b0b8c532a537b79c3ef9df7cc | [
"MIT"
] | 57 | 2017-12-28T22:50:20.000Z | 2022-01-25T16:05:36.000Z | docker-images/rasa2/snips_services/tts_server.py | sanyaade-machine-learning/opensnips_original | 3c7d4aa2ef7dec7b0b8c532a537b79c3ef9df7cc | [
"MIT"
] | 28 | 2018-04-18T06:45:20.000Z | 2022-03-08T22:50:50.000Z | docker-images/rasa2/snips_services/tts_server.py | sanyaade-machine-learning/opensnips_original | 3c7d4aa2ef7dec7b0b8c532a537b79c3ef9df7cc | [
"MIT"
] | 18 | 2017-12-27T01:57:14.000Z | 2021-03-02T14:13:06.000Z | #!/opt/rasa/anaconda/bin/python
# -*-: coding utf-8 -*-
""" Snips core and nlu server. """
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import json
import time
import os
from socket import error as socket_error
fr... | 29.728571 | 166 | 0.605478 | 233 | 2,081 | 5.248927 | 0.480687 | 0.032706 | 0.05233 | 0.032706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023087 | 0.271504 | 2,081 | 69 | 167 | 30.15942 | 0.783641 | 0.189332 | 0 | 0 | 0 | 0 | 0.099099 | 0.018619 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.333333 | 0 | 0.410256 | 0.051282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1c625b305422a96fe496b35f015f87dde84dd1cd | 462 | py | Python | gtd/migrations/0018_context_color.py | jimbofreedman/naggingnelly-api | 510d801791dcce39560bac227c12e5f6d9e80dcc | [
"BSD-3-Clause"
] | null | null | null | gtd/migrations/0018_context_color.py | jimbofreedman/naggingnelly-api | 510d801791dcce39560bac227c12e5f6d9e80dcc | [
"BSD-3-Clause"
] | null | null | null | gtd/migrations/0018_context_color.py | jimbofreedman/naggingnelly-api | 510d801791dcce39560bac227c12e5f6d9e80dcc | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.9 on 2018-08-02 17:53
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gtd', '0017_auto_20180108_1508'),
]
operations = [
migrations.AddField(
... | 22 | 67 | 0.614719 | 52 | 462 | 5.269231 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099707 | 0.261905 | 462 | 20 | 68 | 23.1 | 0.703812 | 0.147186 | 0 | 0 | 1 | 0 | 0.112532 | 0.058824 | 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 |
1c63f92718131c9edb3951c411929fc66600dca1 | 607 | py | Python | cogs/TieThePie.py | Engineer152/Engineer-Bot | 9654666776d5ba91b1c8afdb32c86a7aedad7143 | [
"MIT"
] | null | null | null | cogs/TieThePie.py | Engineer152/Engineer-Bot | 9654666776d5ba91b1c8afdb32c86a7aedad7143 | [
"MIT"
] | null | null | null | cogs/TieThePie.py | Engineer152/Engineer-Bot | 9654666776d5ba91b1c8afdb32c86a7aedad7143 | [
"MIT"
] | null | null | null | import discord
from discord.ext import commands
client = commands.Bot(command_prefix='your prefix',owner_ids = {your user id},case_insensitive=True )
class TieThePie(commands.Cog):
def __init__(self,client):
self.client=client
@commands.command()
async def tiethepie(self,ctx):
embed=discord.Embed(title... | 33.722222 | 224 | 0.742998 | 85 | 607 | 5.211765 | 0.658824 | 0.063205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011132 | 0.112026 | 607 | 18 | 225 | 33.722222 | 0.810761 | 0 | 0 | 0 | 0 | 0.083333 | 0.282895 | 0 | 0 | 0 | 0.013158 | 0 | 0 | 0 | null | null | 0 | 0.166667 | 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 |
1c6537848455d77ed4e22e5c61b4d2a5153fa5e0 | 3,359 | py | Python | python/lsst/eotest/simulation/generate_Fe55_images.py | tguillemLSST/eotest | c6f150984fa5dff85b9805028645bf46fc846f11 | [
"BSD-3-Clause-LBNL"
] | 3 | 2016-04-21T07:05:45.000Z | 2020-08-05T08:37:37.000Z | python/lsst/eotest/simulation/generate_Fe55_images.py | tguillemLSST/eotest | c6f150984fa5dff85b9805028645bf46fc846f11 | [
"BSD-3-Clause-LBNL"
] | 70 | 2015-03-26T09:48:53.000Z | 2020-04-22T16:29:43.000Z | python/lsst/eotest/simulation/generate_Fe55_images.py | tguillemLSST/eotest | c6f150984fa5dff85b9805028645bf46fc846f11 | [
"BSD-3-Clause-LBNL"
] | 5 | 2017-08-15T20:52:44.000Z | 2022-03-25T12:54:07.000Z | """
@brief Generate Fe55 images and associated darks and bias images
according to section 5.4 of the E/O document (Dec 19, 2012 version).
@author J. Chiang <jchiang@slac.stanford.edu>
"""
import os
import numpy as np
from sim_inputs import *
from sim_tools import *
def generate_Fe55_images(exptimes, nxrays, outdir, ... | 39.988095 | 74 | 0.61953 | 430 | 3,359 | 4.609302 | 0.237209 | 0.052977 | 0.098385 | 0.045409 | 0.567608 | 0.469728 | 0.264884 | 0.264884 | 0.264884 | 0.241675 | 0 | 0.034525 | 0.267044 | 3,359 | 83 | 75 | 40.46988 | 0.770512 | 0.093778 | 0 | 0.209677 | 1 | 0 | 0.060265 | 0.021523 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016129 | false | 0 | 0.064516 | 0 | 0.080645 | 0 | 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 |
1c67babe06797acaab8d0e9b738376ce3cb3ee88 | 376 | py | Python | lessons/day_05/python/app.py | jiaguilera/a-walk-in-graphql | ed4f44b4f4bf283cc7342141eb8127a2745ea2d7 | [
"MIT"
] | 16 | 2020-06-16T17:12:16.000Z | 2021-12-03T14:19:38.000Z | lessons/day_05/python/app.py | martinarnesi/a-walk-in-graphql | 56cd949cbeb4c4322882bd15398a867b16900ccd | [
"MIT"
] | 8 | 2020-06-11T21:53:03.000Z | 2020-07-26T01:47:10.000Z | lessons/day_05/python/app.py | martinarnesi/a-walk-in-graphql | 56cd949cbeb4c4322882bd15398a867b16900ccd | [
"MIT"
] | 9 | 2020-06-15T13:09:57.000Z | 2022-03-06T14:49:17.000Z | from ariadne import make_executable_schema, load_schema_from_path
from ariadne.asgi import GraphQL
from resolvers import query, skill, person, eye_color, mutation
# import schema from GraphQL file
type_defs = load_schema_from_path("./schema.gql")
schema = make_executable_schema(
type_defs, query, skill, person, ... | 28.923077 | 65 | 0.800532 | 54 | 376 | 5.314815 | 0.444444 | 0.10453 | 0.139373 | 0.125436 | 0.222997 | 0.222997 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 376 | 12 | 66 | 31.333333 | 0.87234 | 0.082447 | 0 | 0 | 0 | 0 | 0.034985 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1c6bbe01f2a25c56bbd4e7b84c94d14c49d0cee9 | 1,127 | py | Python | src/__main__.py | andreaswatch/piTomation | 140bff77ad0b84ad17898106c7be7dc48a2d0783 | [
"MIT"
] | null | null | null | src/__main__.py | andreaswatch/piTomation | 140bff77ad0b84ad17898106c7be7dc48a2d0783 | [
"MIT"
] | null | null | null | src/__main__.py | andreaswatch/piTomation | 140bff77ad0b84ad17898106c7be7dc48a2d0783 | [
"MIT"
] | null | null | null | import importlib
import time
from pathlib import Path
import os
import sys
def import_plugins():
#find actual path
realpath = os.path.realpath(__file__)
dirname = os.path.dirname(realpath)
#add modules & plugins
plugin_path = os.path.join(dirname, "plugins")
for dir_path in Path(plugin_path).... | 21.673077 | 92 | 0.624667 | 148 | 1,127 | 4.648649 | 0.452703 | 0.075581 | 0.069767 | 0.055233 | 0.075581 | 0.075581 | 0 | 0 | 0 | 0 | 0 | 0.004728 | 0.249335 | 1,127 | 51 | 93 | 22.098039 | 0.808511 | 0.100266 | 0 | 0 | 0 | 0 | 0.080233 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.37931 | 0 | 0.413793 | 0.172414 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1c7b1f4e4b7bfbf72b788463867c6a1ec1a46c6d | 900 | py | Python | testing/python/telBuggyScript2.py | sys-bio/rrplugins | 03af6ea70d73462ad88103f1e446dc0c5f3f971c | [
"Apache-2.0"
] | null | null | null | testing/python/telBuggyScript2.py | sys-bio/rrplugins | 03af6ea70d73462ad88103f1e446dc0c5f3f971c | [
"Apache-2.0"
] | 8 | 2015-12-02T18:20:43.000Z | 2021-08-20T17:13:34.000Z | testing/python/telBuggyScript2.py | sys-bio/telPlugins | 03af6ea70d73462ad88103f1e446dc0c5f3f971c | [
"Apache-2.0"
] | 3 | 2015-01-27T18:53:45.000Z | 2015-07-13T17:07:50.000Z | import roadrunner
import teplugins as tel
i = 0
#for i in range(100):
try:
noisePlugin = tel.Plugin ("tel_add_noise")
print noisePlugin.listOfProperties()
# Create a roadrunner instance
rr = roadrunner.RoadRunner()
rr.load("sbml_test_0001.xml")
# Generate data
data = rr.simulate(0, 10, 51... | 20 | 52 | 0.637778 | 113 | 900 | 5.044248 | 0.557522 | 0.021053 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031963 | 0.27 | 900 | 45 | 53 | 20 | 0.835616 | 0.278889 | 0 | 0 | 0 | 0 | 0.109375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1c7ea7eccdeaa85272171df846b591a0afd65d34 | 9,843 | py | Python | francoralite/apps/francoralite_front/tools.py | Francoralite/francoralite | f8c5eeffe6d395c7e4222a9f5a4a7a01841b503c | [
"BSD-3-Clause"
] | 2 | 2021-07-26T08:29:26.000Z | 2021-07-26T08:29:27.000Z | francoralite/apps/francoralite_front/tools.py | lluc/telemeta-integration | c2fb116471235674eae597abac84a7113e0f7c82 | [
"BSD-3-Clause"
] | 167 | 2018-10-20T14:34:46.000Z | 2021-06-01T10:40:55.000Z | francoralite/apps/francoralite_front/tools.py | Francoralite/francoralite | f8c5eeffe6d395c7e4222a9f5a4a7a01841b503c | [
"BSD-3-Clause"
] | 1 | 2021-06-06T12:16:49.000Z | 2021-06-06T12:16:49.000Z | # -*- coding: utf-8 -*-
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# Authors: Luc LEGER / Coopérative ARTEFACTS <artefacts.lle@gmail.com>
import requests
from django.conf import settings
from django.contrib impor... | 30.286154 | 90 | 0.607843 | 1,034 | 9,843 | 5.559961 | 0.193424 | 0.027831 | 0.03131 | 0.029222 | 0.573491 | 0.503392 | 0.451557 | 0.402157 | 0.357627 | 0.333623 | 0 | 0.009347 | 0.282637 | 9,843 | 324 | 91 | 30.37963 | 0.804844 | 0.082089 | 0 | 0.46729 | 0 | 0 | 0.093021 | 0 | 0 | 0 | 0 | 0.030864 | 0 | 1 | 0.046729 | false | 0.004673 | 0.046729 | 0 | 0.186916 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
1c7f5af1d319f74fdb488cde790b4cffce3502aa | 5,173 | py | Python | python2.7/site-packages/twisted/internet/iocpreactor/client.py | 84KaliPleXon3/sslstrip-hsts-openwrt | f875ded48078a3ed84bffef1e69dcbeaf2e77ae3 | [
"MIT"
] | 4 | 2020-10-31T19:52:05.000Z | 2021-09-22T11:39:27.000Z | python2.7/site-packages/twisted/internet/iocpreactor/client.py | 84KaliPleXon3/sslstrip-hsts-openwrt | f875ded48078a3ed84bffef1e69dcbeaf2e77ae3 | [
"MIT"
] | null | null | null | python2.7/site-packages/twisted/internet/iocpreactor/client.py | 84KaliPleXon3/sslstrip-hsts-openwrt | f875ded48078a3ed84bffef1e69dcbeaf2e77ae3 | [
"MIT"
] | 2 | 2020-02-27T08:28:35.000Z | 2020-09-13T12:39:26.000Z | # Copyright (c) 2001-2004 Twisted Matrix Laboratories.
# See LICENSE for details.
import socket
from twisted.persisted import styles
from twisted.internet.base import BaseConnector
from twisted.internet import defer, interfaces, error
from twisted.python import failure
from abstract import ConnectedSocket
from ops ... | 30.429412 | 127 | 0.64972 | 532 | 5,173 | 6.197368 | 0.272556 | 0.020018 | 0.020018 | 0.018198 | 0.204125 | 0.150743 | 0.150743 | 0.142554 | 0.11647 | 0.095238 | 0 | 0.003925 | 0.261164 | 5,173 | 169 | 128 | 30.609467 | 0.858713 | 0.036149 | 0 | 0.263566 | 0 | 0 | 0.038964 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015504 | 0.077519 | 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 |
1c7f78b673d9e154cc86707fcd75f178c99f6089 | 2,678 | py | Python | pypika/tests/dialects/test_mssql.py | uhrm/pypika | b390aa33c980704555d75d27ade5bfa4d1d4bae7 | [
"Apache-2.0"
] | null | null | null | pypika/tests/dialects/test_mssql.py | uhrm/pypika | b390aa33c980704555d75d27ade5bfa4d1d4bae7 | [
"Apache-2.0"
] | null | null | null | pypika/tests/dialects/test_mssql.py | uhrm/pypika | b390aa33c980704555d75d27ade5bfa4d1d4bae7 | [
"Apache-2.0"
] | null | null | null | import unittest
from pypika import Table
from pypika.analytics import Count
from pypika.dialects import MSSQLQuery
from pypika.utils import QueryException
class SelectTests(unittest.TestCase):
def test_normal_select(self):
q = MSSQLQuery.from_("abc").select("def")
self.assertEqual('SELECT "def" ... | 38.257143 | 118 | 0.647872 | 375 | 2,678 | 4.466667 | 0.170667 | 0.071045 | 0.089552 | 0.123582 | 0.698507 | 0.652537 | 0.580299 | 0.567761 | 0.477612 | 0.421493 | 0 | 0.017098 | 0.191934 | 2,678 | 69 | 119 | 38.811594 | 0.756932 | 0 | 0 | 0.086957 | 0 | 0.086957 | 0.249066 | 0 | 0 | 0 | 0 | 0 | 0.23913 | 1 | 0.23913 | false | 0 | 0.108696 | 0 | 0.369565 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1c828f50eb6739af4655f73774016c25d4ee4ac9 | 1,389 | py | Python | suplemon/helpers.py | johnmbaughman/suplemon | fdde20f2181c280236d40f89b89b9bbe5843440e | [
"MIT"
] | null | null | null | suplemon/helpers.py | johnmbaughman/suplemon | fdde20f2181c280236d40f89b89b9bbe5843440e | [
"MIT"
] | null | null | null | suplemon/helpers.py | johnmbaughman/suplemon | fdde20f2181c280236d40f89b89b9bbe5843440e | [
"MIT"
] | null | null | null | # -*- encoding: utf-8
"""
Various helper constants and functions.
"""
import os
import re
import sys
import time
import traceback
def curr_time():
"""Current time in %H:%M"""
return time.strftime("%H:%M")
def curr_time_sec():
"""Current time in %H:%M:%S"""
return time.strftime("%H:%M:%S")
def mul... | 21.369231 | 83 | 0.592513 | 206 | 1,389 | 3.946602 | 0.427184 | 0.00984 | 0.02706 | 0.03444 | 0.120541 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014423 | 0.25126 | 1,389 | 64 | 84 | 21.703125 | 0.767308 | 0.24622 | 0 | 0.051282 | 0 | 0 | 0.024777 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.179487 | false | 0 | 0.128205 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1c8bf817623bc83ae0e3cfb38c83d93d7647579a | 1,068 | py | Python | madlib/main.py | FredericIV/PythonPractice | 36b3a321eb8fefc38befe83b15a7596418250756 | [
"CC0-1.0"
] | null | null | null | madlib/main.py | FredericIV/PythonPractice | 36b3a321eb8fefc38befe83b15a7596418250756 | [
"CC0-1.0"
] | null | null | null | madlib/main.py | FredericIV/PythonPractice | 36b3a321eb8fefc38befe83b15a7596418250756 | [
"CC0-1.0"
] | null | null | null | #!/bin/python3
# Libraries
import sys
import array
import textwrap
# Variable Declaration
madlib_selection = "example.txt"
madlib_array = array.array('i')
copy_state = False
user_filler = ""
new_madlib = []
if len(sys.argv) != 1:
print(len(sys.argv))
if sys.argv[1] == "-":
print("This program takes t... | 31.411765 | 93 | 0.659176 | 149 | 1,068 | 4.590604 | 0.489933 | 0.131579 | 0.035088 | 0.038012 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010626 | 0.206929 | 1,068 | 33 | 94 | 32.363636 | 0.79693 | 0.136704 | 0 | 0 | 0 | 0 | 0.125683 | 0 | 0 | 0 | 0 | 0.030303 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c8e802ab7e5ab17bb7b662f2406ded9d3de6507 | 11,773 | py | Python | mcp/augmentation/album.py | j20232/moco_image_pipeline | 997ae76e795548e75f95e862284c1fc0a3c7541a | [
"BSD-3-Clause"
] | 5 | 2020-03-18T14:36:12.000Z | 2022-01-26T09:36:11.000Z | mcp/augmentation/album.py | j20232/moco_image_pipeline | 997ae76e795548e75f95e862284c1fc0a3c7541a | [
"BSD-3-Clause"
] | null | null | null | mcp/augmentation/album.py | j20232/moco_image_pipeline | 997ae76e795548e75f95e862284c1fc0a3c7541a | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
from PIL import Image, ImageOps, ImageEnhance
import albumentations as A
# ndarray: H x W x C
def apply_aug(aug, image):
return aug(image=image)["image"]
# ----------------------------------- Blur -------------------------------------------
class RandomBlur():
def __init__(self, prob, bl... | 35.460843 | 99 | 0.599507 | 1,544 | 11,773 | 4.368523 | 0.148964 | 0.032024 | 0.016012 | 0.024463 | 0.447294 | 0.427279 | 0.402817 | 0.374055 | 0.365456 | 0.30467 | 0 | 0.026854 | 0.256689 | 11,773 | 331 | 100 | 35.567976 | 0.743915 | 0.179903 | 0 | 0.283582 | 0 | 0 | 0.003677 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208955 | false | 0 | 0.014925 | 0.054726 | 0.437811 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1c8ea0dcd3e4b0f8ab68d4a876a677661904e6f8 | 2,959 | py | Python | website/util/sanitize.py | bdyetton/prettychart | e8b33a7dfdc8c33d15969586be7f68172795f76d | [
"Apache-2.0"
] | null | null | null | website/util/sanitize.py | bdyetton/prettychart | e8b33a7dfdc8c33d15969586be7f68172795f76d | [
"Apache-2.0"
] | null | null | null | website/util/sanitize.py | bdyetton/prettychart | e8b33a7dfdc8c33d15969586be7f68172795f76d | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import bleach
import json
def strip_html(unclean):
"""Sanitize a string, removing (as opposed to escaping) HTML tags
:param unclean: A string to be stripped of HTML tags
:return: stripped string
:rtype: str
"""
return bleach.clean(unclean, strip=True, tags=[], attribu... | 26.185841 | 103 | 0.627239 | 383 | 2,959 | 4.744125 | 0.310705 | 0.034673 | 0.019813 | 0.018162 | 0.127683 | 0.096863 | 0.036324 | 0 | 0 | 0 | 0 | 0.005071 | 0.266982 | 2,959 | 112 | 104 | 26.419643 | 0.832642 | 0.404867 | 0 | 0.12 | 0 | 0 | 0.029066 | 0 | 0 | 0 | 0 | 0.017857 | 0.02 | 1 | 0.16 | false | 0 | 0.04 | 0 | 0.46 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
1c9014f0cf5d96c8108b4c96a94c876f92838ff8 | 530 | py | Python | dags/exercise1.py | mikef-nl/airflow-training-skeleton | 85a0e9103772be012a41ee0daa9f67ba401bfddc | [
"Apache-2.0"
] | null | null | null | dags/exercise1.py | mikef-nl/airflow-training-skeleton | 85a0e9103772be012a41ee0daa9f67ba401bfddc | [
"Apache-2.0"
] | null | null | null | dags/exercise1.py | mikef-nl/airflow-training-skeleton | 85a0e9103772be012a41ee0daa9f67ba401bfddc | [
"Apache-2.0"
] | null | null | null | import airflow
from airflow.models import DAG
from airflow.operators.dummy_operator import DummyOperator
args = {
'owner': 'Mike',
'start_date': airflow.utils.dates.days_ago(2),
}
dag = DAG(
dag_id='exercise1',
default_args=args,
schedule_interval=None
)
t1 = DummyOperator(task_id='task1', dag=da... | 23.043478 | 58 | 0.70566 | 76 | 530 | 4.776316 | 0.473684 | 0.115702 | 0.261708 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037445 | 0.143396 | 530 | 22 | 59 | 24.090909 | 0.762115 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c95c503cb53578803e2dbe2dd22ba875018dd47 | 817 | py | Python | stix_shifter_modules/elastic/entry_point.py | 6un9-h0-Dan/stix-shifter | f99feee8c247b9fc1d79f6db623c301b49685b63 | [
"Apache-2.0"
] | 1 | 2020-04-06T21:28:19.000Z | 2020-04-06T21:28:19.000Z | stix_shifter_modules/elastic/entry_point.py | 6un9-h0-Dan/stix-shifter | f99feee8c247b9fc1d79f6db623c301b49685b63 | [
"Apache-2.0"
] | null | null | null | stix_shifter_modules/elastic/entry_point.py | 6un9-h0-Dan/stix-shifter | f99feee8c247b9fc1d79f6db623c301b49685b63 | [
"Apache-2.0"
] | null | null | null | from stix_shifter_utils.utils.entry_point_base import EntryPointBase
from stix_shifter_utils.modules.cim.stix_translation.cim_data_mapper import CimDataMapper
from stix_shifter_utils.modules.car.stix_translation.car_data_mapper import CarDataMapper
from .stix_translation.stix_to_elastic import StixToElastic
class Entr... | 74.272727 | 124 | 0.812729 | 97 | 817 | 6.474227 | 0.381443 | 0.079618 | 0.071656 | 0.095541 | 0.353503 | 0.207006 | 0.207006 | 0.207006 | 0 | 0 | 0 | 0 | 0.089351 | 817 | 11 | 125 | 74.272727 | 0.844086 | 0 | 0 | 0 | 0 | 0 | 0.015892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
1c967254ce0d2a6e7d37a5e738a1749e4d64b857 | 6,324 | py | Python | genetic_pwdcrack.py | robotenique/AI-programming | 41a690963b452165342cfd3caa81bfad13d1cc76 | [
"Unlicense"
] | 3 | 2018-04-05T16:38:48.000Z | 2020-11-15T21:24:57.000Z | genetic_pwdcrack.py | robotenique/AI-programming | 41a690963b452165342cfd3caa81bfad13d1cc76 | [
"Unlicense"
] | null | null | null | genetic_pwdcrack.py | robotenique/AI-programming | 41a690963b452165342cfd3caa81bfad13d1cc76 | [
"Unlicense"
] | null | null | null | """
Crack a password using a genetic algorithm!
"""
import random as rnd
def main():
"""
This file implements a genetic algorithm to solve the problem of
cracking a given password, by creating 'generations' of different
words, selecting the best, breeeding them, applying a simple crossover
(randomi... | 34 | 108 | 0.669355 | 868 | 6,324 | 4.691244 | 0.228111 | 0.027505 | 0.022348 | 0.022102 | 0.097495 | 0.082024 | 0.072692 | 0.056974 | 0.056974 | 0.03389 | 0 | 0.011125 | 0.232448 | 6,324 | 185 | 109 | 34.183784 | 0.827771 | 0.346616 | 0 | 0.065217 | 0 | 0 | 0.106966 | 0.010957 | 0 | 0 | 0 | 0 | 0 | 1 | 0.141304 | false | 0.195652 | 0.01087 | 0 | 0.304348 | 0.065217 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1c98d508fd84565e1b07d0b60db1b387344d3b53 | 2,852 | py | Python | scaffolds/__init__.py | chhsiao1981/frontend_template | fcd68c47d9ba3b04c8eb59c684c93baa20a688aa | [
"MIT"
] | null | null | null | scaffolds/__init__.py | chhsiao1981/frontend_template | fcd68c47d9ba3b04c8eb59c684c93baa20a688aa | [
"MIT"
] | null | null | null | scaffolds/__init__.py | chhsiao1981/frontend_template | fcd68c47d9ba3b04c8eb59c684c93baa20a688aa | [
"MIT"
] | null | null | null | # API
from pyramid.scaffolds import PyramidTemplate
import os
import re
import logging
def _camelcase_to_upper_camel_case(the_str):
if not the_str:
return ''
return the_str[0].upper() + the_str[1:]
def _upper_camelcase_to_camelcase(the_str):
if not the_str:
return ''
return the_str[... | 29.102041 | 141 | 0.678822 | 382 | 2,852 | 4.719895 | 0.222513 | 0.043261 | 0.039933 | 0.033278 | 0.132557 | 0.069884 | 0.039933 | 0.039933 | 0.039933 | 0.039933 | 0 | 0.0062 | 0.208275 | 2,852 | 97 | 142 | 29.402062 | 0.792294 | 0.001052 | 0 | 0.0625 | 0 | 0 | 0.128908 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078125 | false | 0 | 0.0625 | 0 | 0.53125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1c9a0955e72ca504725f135176d44e72aae8607c | 1,237 | py | Python | tests/periodicities/gen_makefile.py | jmabry/pyaf | afbc15a851a2445a7824bf255af612dc429265af | [
"BSD-3-Clause"
] | 377 | 2016-10-13T20:52:44.000Z | 2022-03-29T18:04:14.000Z | tests/periodicities/gen_makefile.py | jmabry/pyaf | afbc15a851a2445a7824bf255af612dc429265af | [
"BSD-3-Clause"
] | 160 | 2016-10-13T16:11:53.000Z | 2022-03-28T04:21:34.000Z | tests/periodicities/gen_makefile.py | jmabry/pyaf | afbc15a851a2445a7824bf255af612dc429265af | [
"BSD-3-Clause"
] | 63 | 2017-03-09T14:51:18.000Z | 2022-03-27T20:52:57.000Z | import os
import glob
subdirs = glob.glob("tests/periodicities/*");
subdirs = ['tests/periodicities/Month',
'tests/periodicities/Minute',
'tests/periodicities/Week',
'tests/periodicities/Business_Hour',
'tests/periodicities/Business_Day',
'tests/periodicities/Seco... | 32.552632 | 89 | 0.5481 | 123 | 1,237 | 5.439024 | 0.333333 | 0.269058 | 0.068759 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006329 | 0.23363 | 1,237 | 37 | 90 | 33.432432 | 0.699367 | 0.011318 | 0 | 0 | 0 | 0 | 0.356792 | 0.253682 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.214286 | 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 |
98bad417651d09071c208452c18aa4573b275f66 | 1,683 | py | Python | core/log.py | dl-stuff/dl9 | 1cbe98afc53a1de9d413797fb130946acc4b6ba4 | [
"MIT"
] | null | null | null | core/log.py | dl-stuff/dl9 | 1cbe98afc53a1de9d413797fb130946acc4b6ba4 | [
"MIT"
] | null | null | null | core/log.py | dl-stuff/dl9 | 1cbe98afc53a1de9d413797fb130946acc4b6ba4 | [
"MIT"
] | null | null | null | """Simulation logs"""
from __future__ import annotations # default once 3.10
import sys
from enum import Enum
from typing import Type, TYPE_CHECKING
if TYPE_CHECKING:
from core.timeline import Timeline
class LogKind(Enum):
def __str__(self) -> str:
return self.name
DEBUG = 0
SIM = 1
class... | 25.119403 | 97 | 0.60309 | 210 | 1,683 | 4.566667 | 0.357143 | 0.04171 | 0.022941 | 0.050052 | 0.064651 | 0.064651 | 0.064651 | 0 | 0 | 0 | 0 | 0.007276 | 0.265003 | 1,683 | 66 | 98 | 25.5 | 0.767987 | 0.066548 | 0 | 0.045455 | 0 | 0 | 0.049032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.045455 | 0.113636 | 0.022727 | 0.545455 | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
98be793b0386d37224cb563ae56376daaaeb6f10 | 507 | py | Python | linter.py | CudaText-addons/cuda_lint_htmltidy | afcf1dbfaa2dfc2d63e1ded4781d5f3e4b40a21c | [
"MIT"
] | null | null | null | linter.py | CudaText-addons/cuda_lint_htmltidy | afcf1dbfaa2dfc2d63e1ded4781d5f3e4b40a21c | [
"MIT"
] | null | null | null | linter.py | CudaText-addons/cuda_lint_htmltidy | afcf1dbfaa2dfc2d63e1ded4781d5f3e4b40a21c | [
"MIT"
] | null | null | null | # Copyright (c) 2013 Aparajita Fishman
# Change for CudaLint: Alexey T.
# License: MIT
import os
from cuda_lint import Linter, util
if os.name=='nt':
_exe = os.path.join(os.path.dirname(__file__), 'tidy_win32', 'tidy')
else:
_exe = 'tidy'
class HtmlTidy(Linter):
syntax = ('HTML', 'HTML_')
cmd = (_exe... | 26.684211 | 115 | 0.627219 | 72 | 507 | 4.25 | 0.694444 | 0.039216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016588 | 0.167653 | 507 | 18 | 116 | 28.166667 | 0.708531 | 0.157791 | 0 | 0 | 0 | 0.090909 | 0.347518 | 0.099291 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 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 |
98bf61f5f3abef89b085be204210156d6a5477f5 | 3,006 | py | Python | airtech_api/utils/error_messages/serialization_errors.py | chidioguejiofor/airtech-api | 45d77da0cc4230dd3cb7ab4cbb5168a9239850f5 | [
"MIT"
] | 1 | 2019-04-04T12:27:55.000Z | 2019-04-04T12:27:55.000Z | airtech_api/utils/error_messages/serialization_errors.py | chidioguejiofor/airtech-api | 45d77da0cc4230dd3cb7ab4cbb5168a9239850f5 | [
"MIT"
] | 34 | 2019-03-26T11:18:17.000Z | 2022-02-10T08:12:36.000Z | airtech_api/utils/error_messages/serialization_errors.py | chidioguejiofor/airtech-api | 45d77da0cc4230dd3cb7ab4cbb5168a9239850f5 | [
"MIT"
] | null | null | null | msg_dict = {
'resource_not_found':
'The resource you specified was not found',
'invalid_gender':
"The gender you specified is invalid!!",
'many_invalid_fields':
'Some errors occured while validating some fields. Please check and try again',
'unique':
'The {} you inputted already exists',... | 42.338028 | 83 | 0.706254 | 430 | 3,006 | 4.762791 | 0.339535 | 0.039551 | 0.029297 | 0.027832 | 0.094727 | 0.074219 | 0.042969 | 0.042969 | 0.042969 | 0.042969 | 0 | 0.002107 | 0.210579 | 3,006 | 70 | 84 | 42.942857 | 0.860936 | 0 | 0 | 0 | 0 | 0 | 0.815037 | 0.107119 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.042857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
98c14c64fb91ce8b039d5c03cf8ab0036d83b74c | 3,810 | py | Python | cogs/memes.py | Code-Cecilia/botman-rewrite | 9d8baeebf267c62df975d2f209e85589b81934af | [
"MIT"
] | 2 | 2022-02-21T14:10:15.000Z | 2022-02-21T14:10:50.000Z | cogs/memes.py | Code-Cecilia/botman-rewrite | 9d8baeebf267c62df975d2f209e85589b81934af | [
"MIT"
] | null | null | null | cogs/memes.py | Code-Cecilia/botman-rewrite | 9d8baeebf267c62df975d2f209e85589b81934af | [
"MIT"
] | null | null | null | import json
import discord
from discord.ext import commands
from assets import internet_funcs
from assets.list_funcs import chunks
class Memes(commands.Cog, description="Memes from https://imgflip.com/"):
def __init__(self, bot):
self.bot = bot
with open("config.json") as configFile:
... | 38.877551 | 109 | 0.574803 | 475 | 3,810 | 4.494737 | 0.303158 | 0.033724 | 0.022482 | 0.035597 | 0.179391 | 0.153162 | 0.067447 | 0.067447 | 0.037471 | 0.037471 | 0 | 0.008886 | 0.291076 | 3,810 | 97 | 110 | 39.278351 | 0.781562 | 0.028871 | 0 | 0.118421 | 0 | 0 | 0.165917 | 0.02306 | 0 | 0 | 0.00225 | 0.010309 | 0 | 1 | 0.026316 | false | 0.026316 | 0.065789 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
98c28b91f69f483e365aff3baa53ce90ba90427d | 937 | py | Python | aquarius/app/auth_util.py | oceanprotocol/provider-backend | f9e36e3d6b880de548c6b92c38d10d76daf369ba | [
"Apache-2.0"
] | null | null | null | aquarius/app/auth_util.py | oceanprotocol/provider-backend | f9e36e3d6b880de548c6b92c38d10d76daf369ba | [
"Apache-2.0"
] | 1 | 2018-08-15T09:57:01.000Z | 2018-08-15T09:57:01.000Z | aquarius/app/auth_util.py | oceanprotocol/provider-backend | f9e36e3d6b880de548c6b92c38d10d76daf369ba | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2021 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
from eth_utils import is_address
from web3 import Web3
def sanitize_addresses(addresses):
return [Web3.toChecksumAddress(a) for a in addresses if is_address(a)]
def compare_eth_addresses(address, checker, logger):
"""
C... | 31.233333 | 77 | 0.71825 | 124 | 937 | 5.330645 | 0.387097 | 0.054463 | 0.086233 | 0.078669 | 0.166415 | 0.075643 | 0 | 0 | 0 | 0 | 0 | 0.01731 | 0.198506 | 937 | 29 | 78 | 32.310345 | 0.86285 | 0.276414 | 0 | 0.142857 | 0 | 0 | 0.180404 | 0.065319 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.071429 | 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 |
98c9bbdcbfc1d4a76b6ddc9df442f68e0236c7a7 | 519 | py | Python | prayer_times_v2.py | danish09/request_api | 67aac9079cb30fc0069a9273c8b4074122ea4d3b | [
"MIT"
] | null | null | null | prayer_times_v2.py | danish09/request_api | 67aac9079cb30fc0069a9273c8b4074122ea4d3b | [
"MIT"
] | null | null | null | prayer_times_v2.py | danish09/request_api | 67aac9079cb30fc0069a9273c8b4074122ea4d3b | [
"MIT"
] | null | null | null | import json
import requests
from datetime import datetime
from playsound import playsound
tday=datetime.today().strftime('%Y-%m-%d')
right_now=datetime.today().strftime('%I-%M-%p')
response = requests.get("https://www.londonprayertimes.com/api/times/?format=json&key=0239f686-4423-408e-9a0c-7968a403d197&year=&mont... | 23.590909 | 137 | 0.693642 | 74 | 519 | 4.851351 | 0.72973 | 0.072423 | 0.116992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0783 | 0.138728 | 519 | 22 | 138 | 23.590909 | 0.724832 | 0.084778 | 0 | 0 | 0 | 0.090909 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
98d56156be74bebcd376e40f41b92a8ab49e898e | 5,833 | py | Python | wificontrol/utils/networkstranslate.py | patrislav1/pywificontrol | 1edf9cdb95158804033dba8fcb860e5214ded10f | [
"BSD-3-Clause"
] | 1 | 2019-02-12T14:08:08.000Z | 2019-02-12T14:08:08.000Z | wificontrol/utils/networkstranslate.py | patrislav1/pywificontrol | 1edf9cdb95158804033dba8fcb860e5214ded10f | [
"BSD-3-Clause"
] | null | null | null | wificontrol/utils/networkstranslate.py | patrislav1/pywificontrol | 1edf9cdb95158804033dba8fcb860e5214ded10f | [
"BSD-3-Clause"
] | 2 | 2018-12-05T15:55:22.000Z | 2019-01-28T03:44:21.000Z | # Written by Ivan Sapozhkov and Denis Chagin <denis.chagin@emlid.com>
#
# Copyright (c) 2016, Emlid Limited
# All rights reserved.
#
# Redistribution and use in source and binary forms,
# with or without modification,
# are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code ... | 36.006173 | 113 | 0.603806 | 680 | 5,833 | 5.083824 | 0.301471 | 0.028348 | 0.045126 | 0.032977 | 0.33584 | 0.265548 | 0.214637 | 0.16604 | 0.16604 | 0.125832 | 0 | 0.005967 | 0.281673 | 5,833 | 161 | 114 | 36.229814 | 0.819093 | 0.265044 | 0 | 0.394495 | 0 | 0 | 0.162003 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073395 | false | 0.073395 | 0 | 0.018349 | 0.192661 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
98df6d63c240e8262eac8f0396a8b8f0ecd76ac8 | 10,728 | py | Python | PrometheusScrapper/scrapper.py | masterchef/webscraper | f47220e941980e2a6dda593d74696062784062e1 | [
"MIT"
] | null | null | null | PrometheusScrapper/scrapper.py | masterchef/webscraper | f47220e941980e2a6dda593d74696062784062e1 | [
"MIT"
] | null | null | null | PrometheusScrapper/scrapper.py | masterchef/webscraper | f47220e941980e2a6dda593d74696062784062e1 | [
"MIT"
] | null | null | null | import datetime
import getpass
import logging
import os
import pathlib
import platform
import re
import smtplib
import sys
from contextlib import contextmanager
from email.message import EmailMessage
from functools import wraps
import azure.functions as func
import click
import gspread
import pandas as pd
from apsched... | 34.495177 | 175 | 0.646905 | 1,316 | 10,728 | 5.156535 | 0.259119 | 0.017683 | 0.022104 | 0.014736 | 0.238285 | 0.203655 | 0.180666 | 0.146183 | 0.146183 | 0.113469 | 0 | 0.004236 | 0.207774 | 10,728 | 310 | 176 | 34.606452 | 0.794211 | 0.033464 | 0 | 0.18 | 0 | 0.024 | 0.20785 | 0.055008 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056 | false | 0.072 | 0.096 | 0 | 0.188 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
98e581895367116db85fb5bcc24f1ed7b42ed751 | 2,181 | py | Python | bbio/bbio.py | timgates42/PyBBIO | 0d46115059ed7ec0c17afb6dd7ed2f507b4f2b8a | [
"MIT"
] | 102 | 2015-01-29T04:28:49.000Z | 2022-01-03T18:27:50.000Z | bbio/bbio.py | timgates42/PyBBIO | 0d46115059ed7ec0c17afb6dd7ed2f507b4f2b8a | [
"MIT"
] | 62 | 2015-01-29T11:05:13.000Z | 2019-12-03T04:30:34.000Z | bbio/bbio.py | timgates42/PyBBIO | 0d46115059ed7ec0c17afb6dd7ed2f507b4f2b8a | [
"MIT"
] | 58 | 2015-02-10T14:31:18.000Z | 2022-03-29T13:24:03.000Z | """
PyBBIO - bbio.py
Copyright (c) 2012-2015 - Alexander Hiam <alex@graycat.io>
Released under the MIT license
https://github.com/graycatlabs/PyBBIO
"""
import sys, atexit
from .platform import platform_init, platform_cleanup
from .common import ADDITIONAL_CLEANUP, util_init
def bbio_init():
""" Pre-run initia... | 32.073529 | 85 | 0.692343 | 305 | 2,181 | 4.859016 | 0.495082 | 0.016194 | 0.014845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009373 | 0.217332 | 2,181 | 67 | 86 | 32.552239 | 0.858817 | 0.2884 | 0 | 0.117647 | 0 | 0 | 0.119256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0.088235 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
98ee2fa044a20258e55e590fef0af310684f4e34 | 433 | py | Python | tests/unit_tests/cx_core/integration/integration_test.py | clach04/controllerx | b5cd92d3371c352c50f7d5ba7dae4538d7c15dfe | [
"MIT"
] | 204 | 2020-01-18T10:12:13.000Z | 2022-03-27T09:40:17.000Z | tests/unit_tests/cx_core/integration/integration_test.py | clach04/controllerx | b5cd92d3371c352c50f7d5ba7dae4538d7c15dfe | [
"MIT"
] | 329 | 2020-01-17T17:18:53.000Z | 2022-03-29T11:20:30.000Z | tests/unit_tests/cx_core/integration/integration_test.py | clach04/controllerx | b5cd92d3371c352c50f7d5ba7dae4538d7c15dfe | [
"MIT"
] | 66 | 2020-01-19T20:17:21.000Z | 2022-03-13T15:03:41.000Z | from cx_core import integration as integration_module
from cx_core.controller import Controller
def test_get_integrations(fake_controller: Controller):
integrations = integration_module.get_integrations(fake_controller, {})
inteagration_names = {i.name for i in integrations}
assert inteagration_names == {... | 27.0625 | 75 | 0.678984 | 46 | 433 | 6.130435 | 0.586957 | 0.042553 | 0.070922 | 0.205674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003012 | 0.233256 | 433 | 15 | 76 | 28.866667 | 0.846386 | 0 | 0 | 0 | 0 | 0 | 0.078522 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.230769 | 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 |
98fc678951f86f4c4317fc775c6ba763f66da302 | 8,717 | py | Python | ambari-server/src/test/python/stacks/2.3/ATLAS/test_metadata_server.py | gcxtx/ambari | 133d9c4661b21182482c25f96c3f0bf0a9740a9f | [
"Apache-2.0"
] | 1 | 2021-05-06T06:24:04.000Z | 2021-05-06T06:24:04.000Z | ambari-server/src/test/python/stacks/2.3/ATLAS/test_metadata_server.py | gcxtx/ambari | 133d9c4661b21182482c25f96c3f0bf0a9740a9f | [
"Apache-2.0"
] | null | null | null | ambari-server/src/test/python/stacks/2.3/ATLAS/test_metadata_server.py | gcxtx/ambari | 133d9c4661b21182482c25f96c3f0bf0a9740a9f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
'''
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License")... | 46.367021 | 141 | 0.494207 | 725 | 8,717 | 5.835862 | 0.256552 | 0.102104 | 0.046088 | 0.064524 | 0.597967 | 0.578823 | 0.535334 | 0.520681 | 0.500355 | 0.46632 | 0 | 0.013406 | 0.409545 | 8,717 | 187 | 142 | 46.614973 | 0.808626 | 0.002294 | 0 | 0.547771 | 0 | 0.019108 | 0.212278 | 0.123409 | 0 | 0 | 0 | 0 | 0.127389 | 0 | null | null | 0 | 0.031847 | 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 |
c70662701931e0df30976bfadaca0ac6c230e738 | 1,401 | py | Python | Day3/Day3.py | ErAgOn-AmAnSiRoHi/Advent-of-Code-2021 | 0f0d59483d93f6fce4aa06fb36101aea08b02fc3 | [
"MIT"
] | null | null | null | Day3/Day3.py | ErAgOn-AmAnSiRoHi/Advent-of-Code-2021 | 0f0d59483d93f6fce4aa06fb36101aea08b02fc3 | [
"MIT"
] | null | null | null | Day3/Day3.py | ErAgOn-AmAnSiRoHi/Advent-of-Code-2021 | 0f0d59483d93f6fce4aa06fb36101aea08b02fc3 | [
"MIT"
] | null | null | null | with open("inputday3.txt") as f:
data = [x for x in f.read().split()]
gamma = ""
epsilon = ""
for b in range(0, len(data[0])):
one = 0
zero = 0
for c in range(0, len(data)):
if data[c][b] == '0':
zero += 1
else:
one += 1
if zero > one:
... | 18.932432 | 41 | 0.417559 | 186 | 1,401 | 3.145161 | 0.209677 | 0.059829 | 0.054701 | 0.075214 | 0.470085 | 0.444444 | 0.444444 | 0.444444 | 0.444444 | 0.444444 | 0 | 0.053885 | 0.430407 | 1,401 | 73 | 42 | 19.191781 | 0.679198 | 0 | 0 | 0.703125 | 0 | 0 | 0.024096 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c706f98a7ed12b68d12a292394d4a9f058dbea40 | 12,449 | py | Python | keras2pytorch_dataset.py | MPCAICDM/MPCA | c996435a0578ea4160f934bc01041c2ef23468f3 | [
"MIT"
] | null | null | null | keras2pytorch_dataset.py | MPCAICDM/MPCA | c996435a0578ea4160f934bc01041c2ef23468f3 | [
"MIT"
] | null | null | null | keras2pytorch_dataset.py | MPCAICDM/MPCA | c996435a0578ea4160f934bc01041c2ef23468f3 | [
"MIT"
] | null | null | null | from __future__ import print_function
from PIL import Image
import os
import os.path
import numpy as np
import sys
from misc import AverageMeter
from eval_accuracy import simple_accuracy
if sys.version_info[0] == 2:
import cPickle as pickle
else:
import pickle
import torch.utils.data as data
import torch
from ... | 34.969101 | 139 | 0.618684 | 1,570 | 12,449 | 4.684713 | 0.115287 | 0.055065 | 0.033583 | 0.029368 | 0.719103 | 0.687695 | 0.65656 | 0.617811 | 0.617811 | 0.617811 | 0 | 0.006711 | 0.28187 | 12,449 | 356 | 140 | 34.969101 | 0.815996 | 0.087397 | 0 | 0.592593 | 0 | 0 | 0.020534 | 0 | 0.00823 | 0 | 0 | 0 | 0.012346 | 1 | 0.106996 | false | 0 | 0.053498 | 0.024691 | 0.283951 | 0.00823 | 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 |
c709d0df6d7c96b0dace86ff6283e481bd4f3000 | 8,584 | py | Python | sdk/python/pulumi_azure_nextgen/marketplace/private_store_offer.py | pulumi/pulumi-azure-nextgen | 452736b0a1cf584c2d4c04666e017af6e9b2c15c | [
"Apache-2.0"
] | 31 | 2020-09-21T09:41:01.000Z | 2021-02-26T13:21:59.000Z | sdk/python/pulumi_azure_nextgen/marketplace/private_store_offer.py | pulumi/pulumi-azure-nextgen | 452736b0a1cf584c2d4c04666e017af6e9b2c15c | [
"Apache-2.0"
] | 231 | 2020-09-21T09:38:45.000Z | 2021-03-01T11:16:03.000Z | sdk/python/pulumi_azure_nextgen/marketplace/private_store_offer.py | pulumi/pulumi-azure-nextgen | 452736b0a1cf584c2d4c04666e017af6e9b2c15c | [
"Apache-2.0"
] | 4 | 2020-09-29T14:14:59.000Z | 2021-02-10T20:38:16.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from .. import _utilities, _tables
from ... | 40.11215 | 230 | 0.646086 | 991 | 8,584 | 5.324924 | 0.194753 | 0.045859 | 0.04927 | 0.046807 | 0.401554 | 0.289748 | 0.162592 | 0.137199 | 0.070495 | 0.070495 | 0 | 0.002658 | 0.254893 | 8,584 | 213 | 231 | 40.300469 | 0.822389 | 0.230079 | 0 | 0.144 | 1 | 0 | 0.16851 | 0.059694 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136 | false | 0.008 | 0.064 | 0.016 | 0.336 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.