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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dc4b0baf5cf563aa82426c7becfe7e096241c47b | 562 | py | Python | design/migrations/0032_auto_20191013_2116.py | pincoin/iclover | 890fcbd836ebffa0de8cf9fbabee55f068b3bc8b | [
"MIT"
] | 1 | 2019-07-20T09:51:53.000Z | 2019-07-20T09:51:53.000Z | design/migrations/0032_auto_20191013_2116.py | pincoin/iclover | 890fcbd836ebffa0de8cf9fbabee55f068b3bc8b | [
"MIT"
] | 11 | 2019-07-26T02:23:52.000Z | 2022-03-11T23:41:09.000Z | design/migrations/0032_auto_20191013_2116.py | pincoin/iclover | 890fcbd836ebffa0de8cf9fbabee55f068b3bc8b | [
"MIT"
] | 1 | 2019-07-26T02:16:49.000Z | 2019-07-26T02:16:49.000Z | # Generated by Django 2.1.7 on 2019-10-13 12:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('design', '0031_auto_20191011_1805'),
]
operations = [
migrations.AlterField(
model_name='customerorderinfo',
name='s... | 29.578947 | 217 | 0.562278 | 72 | 562 | 4.319444 | 0.805556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096471 | 0.243772 | 562 | 18 | 218 | 31.222222 | 0.635294 | 0.080071 | 0 | 0 | 1 | 0 | 0.170874 | 0.04466 | 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 |
dc4b5a2dfae5dd0a6b045b9b3d7e9b4dfe946b46 | 890 | py | Python | var/spack/repos/builtin/packages/libestr/package.py | kkauder/spack | 6ae8d5c380c1f42094b05d38be26b03650aafb39 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 2,360 | 2017-11-06T08:47:01.000Z | 2022-03-31T14:45:33.000Z | var/spack/repos/builtin/packages/libestr/package.py | kkauder/spack | 6ae8d5c380c1f42094b05d38be26b03650aafb39 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 13,838 | 2017-11-04T07:49:45.000Z | 2022-03-31T23:38:39.000Z | var/spack/repos/builtin/packages/libestr/package.py | kkauder/spack | 6ae8d5c380c1f42094b05d38be26b03650aafb39 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 1,793 | 2017-11-04T07:45:50.000Z | 2022-03-30T14:31:53.000Z | # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Libestr(AutotoolsPackage):
"""C library for string handling (and a bit more)."""
home... | 38.695652 | 96 | 0.734831 | 99 | 890 | 6.565657 | 0.686869 | 0.055385 | 0.041538 | 0.083077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20156 | 0.135955 | 890 | 22 | 97 | 40.454545 | 0.643693 | 0.266292 | 0 | 0 | 0 | 0.090909 | 0.526398 | 0.298137 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dc4e0990a28bdded3d092c131930f24858724a79 | 8,718 | py | Python | euphrosyne/settings.py | betagouv/euphrosyne | a67857a8716b5060cd9a2c6fa5f3d45c3fff435a | [
"MIT"
] | 1 | 2022-02-21T19:46:20.000Z | 2022-02-21T19:46:20.000Z | euphrosyne/settings.py | betagouv/euphrosyne | a67857a8716b5060cd9a2c6fa5f3d45c3fff435a | [
"MIT"
] | 37 | 2021-10-18T18:33:26.000Z | 2022-03-31T12:38:38.000Z | euphrosyne/settings.py | betagouv/euphrosyne | a67857a8716b5060cd9a2c6fa5f3d45c3fff435a | [
"MIT"
] | 2 | 2022-03-03T15:41:30.000Z | 2022-03-07T14:20:26.000Z | """
Django settings for euphrosyne project.
Generated by 'django-admin startproject' using Django 3.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
# pylint: ... | 28.397394 | 93 | 0.683414 | 1,003 | 8,718 | 5.706879 | 0.313061 | 0.033543 | 0.01747 | 0.039308 | 0.18798 | 0.149371 | 0.085779 | 0.075297 | 0.049616 | 0.021663 | 0 | 0.007305 | 0.183528 | 8,718 | 306 | 94 | 28.490196 | 0.796291 | 0.169993 | 0 | 0.019048 | 1 | 0 | 0.433176 | 0.278966 | 0 | 0 | 0 | 0 | 0 | 1 | 0.004762 | false | 0.038095 | 0.033333 | 0 | 0.047619 | 0.014286 | 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 |
dc664f2499379060918b7f4749bcb872ba8ebc21 | 17,777 | py | Python | app/gui/mainwindow.py | ihor-pyvovarnyk/oae-sound-processing-tool | 602420cd9705997002b6cb9eb86bd09be899bd5d | [
"BSD-2-Clause"
] | null | null | null | app/gui/mainwindow.py | ihor-pyvovarnyk/oae-sound-processing-tool | 602420cd9705997002b6cb9eb86bd09be899bd5d | [
"BSD-2-Clause"
] | null | null | null | app/gui/mainwindow.py | ihor-pyvovarnyk/oae-sound-processing-tool | 602420cd9705997002b6cb9eb86bd09be899bd5d | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/Users/ihor-pyvovarnyk/Documents/Workspace/oae-sound-processing-tool/resources/gui/mainwindow.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
... | 67.851145 | 151 | 0.742645 | 2,191 | 17,777 | 5.696486 | 0.096759 | 0.099271 | 0.068744 | 0.033651 | 0.630398 | 0.413909 | 0.334989 | 0.290842 | 0.169938 | 0.119862 | 0 | 0.033927 | 0.144456 | 17,777 | 261 | 152 | 68.111111 | 0.786705 | 0.015019 | 0 | 0.024292 | 1 | 0 | 0.107816 | 0.024454 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020243 | false | 0 | 0.004049 | 0.012146 | 0.040486 | 0 | 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 |
dc76420646484381b56b7e7f3f12e9344b80d82d | 2,345 | py | Python | django_linter/transformers/models.py | enefeq/django_linter | d5a27004acc9c7caf8663a8fb519060f210c81ec | [
"MIT"
] | 101 | 2015-07-26T15:52:31.000Z | 2021-04-29T14:01:23.000Z | django_linter/transformers/models.py | enefeq/django_linter | d5a27004acc9c7caf8663a8fb519060f210c81ec | [
"MIT"
] | 3 | 2015-08-14T14:22:04.000Z | 2017-09-21T12:24:43.000Z | django_linter/transformers/models.py | enefeq/django_linter | d5a27004acc9c7caf8663a8fb519060f210c81ec | [
"MIT"
] | 4 | 2015-08-14T10:59:48.000Z | 2022-03-22T13:28:58.000Z | from __future__ import (absolute_import, division,
print_function, unicode_literals)
from astroid import MANAGER, Class, Instance, Function, Arguments, Pass
def transform_model_class(cls):
if cls.is_subtype_of('django.db.models.base.Model'):
core_exceptions = MANAGER.ast_from_modu... | 45.980392 | 80 | 0.550959 | 220 | 2,345 | 5.709091 | 0.313636 | 0.042994 | 0.044586 | 0.063694 | 0.183121 | 0.156051 | 0.090764 | 0.090764 | 0 | 0 | 0 | 0.007931 | 0.354797 | 2,345 | 50 | 81 | 46.9 | 0.822208 | 0.049041 | 0 | 0.195122 | 0 | 0 | 0.128205 | 0.084121 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0.097561 | 0.04878 | 0 | 0.073171 | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dc7ad37be6b7a5af56132808c5c36975ae4fdfc1 | 691 | py | Python | API_APPMAP/Myapi/migrations/0007_auto_20200303_1431.py | adeus54/IonicTest | fa7f4786eb8e917e64992672fec3b57b6dc553cf | [
"Apache-2.0"
] | null | null | null | API_APPMAP/Myapi/migrations/0007_auto_20200303_1431.py | adeus54/IonicTest | fa7f4786eb8e917e64992672fec3b57b6dc553cf | [
"Apache-2.0"
] | 7 | 2021-03-10T10:00:11.000Z | 2022-02-26T20:03:44.000Z | API_APPMAP/Myapi/migrations/0007_auto_20200303_1431.py | adeus54/IonicTest | fa7f4786eb8e917e64992672fec3b57b6dc553cf | [
"Apache-2.0"
] | 1 | 2019-11-20T07:11:38.000Z | 2019-11-20T07:11:38.000Z | # Generated by Django 2.2.7 on 2020-03-03 19:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Myapi', '0006_auto_20200303_1419'),
]
operations = [
migrations.AlterField(
model_name='fichaemergencia',
name='aler... | 28.791667 | 116 | 0.596237 | 68 | 691 | 5.955882 | 0.617647 | 0.098765 | 0.123457 | 0.14321 | 0.237037 | 0.237037 | 0 | 0 | 0 | 0 | 0 | 0.068359 | 0.259045 | 691 | 23 | 117 | 30.043478 | 0.722656 | 0.065123 | 0 | 0.352941 | 1 | 0 | 0.226708 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dc7d7f462c9c696177ff50082557395515b9828b | 339 | py | Python | libs/garden/garden.mapview/examples/simple_geojson.py | kellpossible/Kivy_ATC_Simulator | 7ebac6c1561e8cf4ed9d50d15a0e057a27247b90 | [
"MIT"
] | null | null | null | libs/garden/garden.mapview/examples/simple_geojson.py | kellpossible/Kivy_ATC_Simulator | 7ebac6c1561e8cf4ed9d50d15a0e057a27247b90 | [
"MIT"
] | null | null | null | libs/garden/garden.mapview/examples/simple_geojson.py | kellpossible/Kivy_ATC_Simulator | 7ebac6c1561e8cf4ed9d50d15a0e057a27247b90 | [
"MIT"
] | null | null | null | from mapview import MapView
from mapview.geojson import GeoJsonMapLayer
from kivy.base import runTouchApp
import sys
if len(sys.argv) > 1:
source = sys.argv[1]
else:
source = "https://storage.googleapis.com/maps-devrel/google.json"
view = MapView()
layer = GeoJsonMapLayer(source=source)
view.add_layer(layer)
... | 21.1875 | 69 | 0.764012 | 47 | 339 | 5.489362 | 0.553191 | 0.085271 | 0.062016 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00678 | 0.129794 | 339 | 15 | 70 | 22.6 | 0.867797 | 0 | 0 | 0 | 0 | 0 | 0.159292 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
dc7e4eb165fd2ccf6b32809ddd9d42d229c67edf | 740 | py | Python | setup.py | radik/textocat-python-sdk | 3a15cbbc802661adcee74bee2ebd4f88c317b352 | [
"Apache-2.0"
] | 5 | 2015-05-14T22:16:53.000Z | 2015-09-07T23:50:40.000Z | setup.py | radik/textocat-python-sdk | 3a15cbbc802661adcee74bee2ebd4f88c317b352 | [
"Apache-2.0"
] | null | null | null | setup.py | radik/textocat-python-sdk | 3a15cbbc802661adcee74bee2ebd4f88c317b352 | [
"Apache-2.0"
] | 3 | 2015-05-14T21:00:47.000Z | 2015-05-24T05:37:56.000Z | from setuptools import setup, find_packages
setup(
name='textocat',
version='0.1.1',
description='Unofficial Textocat Python SDK',
url='http://github.com/radik/textocat-python-sdk',
author='Radik Fattakhov',
author_email='radikft@gmail.com',
license='Apache License, Version 2.0',
packag... | 32.173913 | 67 | 0.635135 | 76 | 740 | 6.118421 | 0.736842 | 0.051613 | 0.073118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0.209459 | 740 | 23 | 68 | 32.173913 | 0.779487 | 0 | 0 | 0 | 0 | 0 | 0.495277 | 0.02969 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.045455 | 0 | 0.045455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dc879fa8bbcad4dadd920432e5601db5f3e2020d | 1,907 | py | Python | tests/test_table.py | zlj-zz/pygittools | f3baf37c0bfdefa36545ad1650866306e22fbff1 | [
"MIT"
] | null | null | null | tests/test_table.py | zlj-zz/pygittools | f3baf37c0bfdefa36545ad1650866306e22fbff1 | [
"MIT"
] | 10 | 2022-03-14T12:05:03.000Z | 2022-03-26T18:30:58.000Z | tests/test_table.py | zlj-zz/pygittools | f3baf37c0bfdefa36545ad1650866306e22fbff1 | [
"MIT"
] | 1 | 2021-08-25T10:28:34.000Z | 2021-08-25T10:28:34.000Z | import time
import textwrap
import pytest
from pigit.common.table import Table, dTable
@pytest.mark.parametrize(
"header, data, title",
[
(
["name", "age", "gender"],
[
["bob", "20", "f"],
["tom", "19", "f"],
],
"Student"... | 20.728261 | 52 | 0.30624 | 138 | 1,907 | 4.181159 | 0.514493 | 0.069324 | 0.07799 | 0.083189 | 0.114385 | 0.083189 | 0.083189 | 0.083189 | 0 | 0 | 0 | 0.0397 | 0.511274 | 1,907 | 91 | 53 | 20.956044 | 0.579399 | 0.006293 | 0 | 0.341176 | 0 | 0 | 0.175911 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023529 | false | 0 | 0.047059 | 0 | 0.070588 | 0.058824 | 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 |
dc88648b802055afa1c3c4ab3bb691d0e30a9188 | 1,221 | py | Python | client-hello-poisoning/proxy.py | ZeddYu/TLS-poison | ec96daf621f141d507712689d847644840283165 | [
"MIT"
] | 1 | 2021-10-17T06:44:45.000Z | 2021-10-17T06:44:45.000Z | client-hello-poisoning/proxy.py | ZeddYu/TLS-poison | ec96daf621f141d507712689d847644840283165 | [
"MIT"
] | null | null | null | client-hello-poisoning/proxy.py | ZeddYu/TLS-poison | ec96daf621f141d507712689d847644840283165 | [
"MIT"
] | null | null | null | # coding=utf-8
import socket
import threading
source_host = '127.0.0.1'
source_port = 11210
desc_host = '0.0.0.0'
desc_port = 11211
def send(sender, recver):
while 1:
try:
data = sender.recv(2048)
except:
break
print "recv error"
try:
recv... | 25.978723 | 93 | 0.640459 | 163 | 1,221 | 4.607362 | 0.368098 | 0.079893 | 0.083888 | 0.063915 | 0.199734 | 0.122503 | 0.122503 | 0.122503 | 0.122503 | 0 | 0 | 0.032804 | 0.226044 | 1,221 | 47 | 94 | 25.978723 | 0.761905 | 0.009828 | 0 | 0.166667 | 0 | 0 | 0.085265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dc8b85a0debae1b8ddc19bcd1640142ec0f45065 | 645 | py | Python | cwmud/core/commands/admin/commit.py | whutch/cwmud | bee8b126a5e70edd0593dae9753a6be8d52357cf | [
"MIT"
] | 11 | 2016-03-03T03:56:59.000Z | 2021-11-19T15:38:51.000Z | cwmud/core/commands/admin/commit.py | whutch/atria | bee8b126a5e70edd0593dae9753a6be8d52357cf | [
"MIT"
] | 26 | 2016-08-31T23:19:45.000Z | 2019-10-19T21:50:33.000Z | cwmud/core/commands/admin/commit.py | whutch/atria | bee8b126a5e70edd0593dae9753a6be8d52357cf | [
"MIT"
] | 2 | 2016-01-22T21:22:34.000Z | 2016-02-09T06:03:57.000Z | # -*- coding: utf-8 -*-
"""Commit command."""
# Part of Clockwork MUD Server (https://github.com/whutch/cwmud)
# :copyright: (c) 2008 - 2017 Will Hutcheson
# :license: MIT (https://github.com/whutch/cwmud/blob/master/LICENSE.txt)
from .. import Command, COMMANDS
from ...characters import CharacterShell
from ...entitie... | 25.8 | 73 | 0.697674 | 79 | 645 | 5.670886 | 0.670886 | 0.049107 | 0.0625 | 0.089286 | 0.111607 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016544 | 0.156589 | 645 | 24 | 74 | 26.875 | 0.806985 | 0.4 | 0 | 0 | 0 | 0 | 0.024129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
dc9b6dd6a2350a46396a01f352bb542213064fa7 | 529 | py | Python | customer/migrations/0006_purchase_date_created.py | neonexchange/psp_template | c81fc831c1f31db00b29c4f016d073e66866f09b | [
"MIT"
] | 5 | 2018-03-02T09:36:41.000Z | 2018-05-09T15:12:53.000Z | customer/migrations/0006_purchase_date_created.py | neonexchange/psp_template | c81fc831c1f31db00b29c4f016d073e66866f09b | [
"MIT"
] | null | null | null | customer/migrations/0006_purchase_date_created.py | neonexchange/psp_template | c81fc831c1f31db00b29c4f016d073e66866f09b | [
"MIT"
] | null | null | null | # Generated by Django 2.0 on 2018-01-19 04:28
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('customer', '0005_purchase_transfer_id'),
]
operations = [
migrations.AddField(
model_name='purchase',
... | 24.045455 | 94 | 0.610586 | 58 | 529 | 5.431034 | 0.758621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094987 | 0.283554 | 529 | 21 | 95 | 25.190476 | 0.736148 | 0.081285 | 0 | 0 | 1 | 0 | 0.109504 | 0.051653 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dc9d0c2d2fe3257de51c6a34950dea0f513bfd2e | 1,654 | py | Python | scraper.py | CitizenGoose/AmazonScraper | 874a71eb5d6fb49104045aa49ff437a2217c3d8d | [
"MIT"
] | 1 | 2021-06-17T02:51:34.000Z | 2021-06-17T02:51:34.000Z | scraper.py | CitizenGoose/AmazonScraper | 874a71eb5d6fb49104045aa49ff437a2217c3d8d | [
"MIT"
] | null | null | null | scraper.py | CitizenGoose/AmazonScraper | 874a71eb5d6fb49104045aa49ff437a2217c3d8d | [
"MIT"
] | null | null | null | import requests
from bs4 import BeautifulSoup
import smtplib, ssl
urlList = ["https://www.amazon.es/Apple-Macbook-Pro-Ordenador-portátil/dp/B072K5XTLJ/ref=sr_1_1_sspa?keywords=macbook+pro&qid=1562616392&s=computers&sr=1-1-spons&psc=1", "https://www.amazon.es/Apple-MacBook-Pro-Ordenador-procesador/dp/B0721BNHJL/ref=sr_... | 42.410256 | 460 | 0.700726 | 237 | 1,654 | 4.78481 | 0.50211 | 0.015873 | 0.037037 | 0.042328 | 0.21164 | 0.21164 | 0.186949 | 0.186949 | 0.116402 | 0 | 0 | 0.069784 | 0.159613 | 1,654 | 38 | 461 | 43.526316 | 0.746043 | 0.029625 | 0 | 0 | 0 | 0.137931 | 0.444097 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0.068966 | 0.103448 | 0 | 0.172414 | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dc9fa708c32ad33eb8a0730f64b58e1807782e4c | 1,293 | py | Python | plugins/201_on_transactions/__init__.py | bismuthfoundation/BismuthPlugins | 67511d6d432b4e1281b09a91f5a58c5f2174c91c | [
"MIT"
] | 6 | 2018-10-18T17:00:18.000Z | 2021-03-02T14:50:46.000Z | plugins/201_on_transactions/__init__.py | bismuthfoundation/BismuthPlugins | 67511d6d432b4e1281b09a91f5a58c5f2174c91c | [
"MIT"
] | 2 | 2018-06-01T08:41:17.000Z | 2019-07-29T06:22:15.000Z | plugins/201_on_transactions/__init__.py | bismuthfoundation/BismuthPlugins | 67511d6d432b4e1281b09a91f5a58c5f2174c91c | [
"MIT"
] | 1 | 2018-05-29T21:14:26.000Z | 2018-05-29T21:14:26.000Z | """
Plugin demo
"On Transaction" demo.
Calls a webhook upon specific transaction mining.
This will transmit all matching tx info
See https://github.com/bismuthfoundation/BismuthPlugins/blob/master/doc/How-to-Transaction.md
"""
import json
# We get the global plugin manager so we can use plugins (email, ifttt...) ... | 29.386364 | 109 | 0.6628 | 170 | 1,293 | 4.982353 | 0.647059 | 0.046045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046784 | 0.206497 | 1,293 | 43 | 110 | 30.069767 | 0.778752 | 0.365816 | 0 | 0 | 0 | 0 | 0.234201 | 0.069393 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.052632 | 0.052632 | 0 | 0.157895 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
dca0cd9cfea518374218f60b9f0f20ea116243bf | 2,607 | py | Python | netbox_gitlab/migrations/0002_traceelement.py | Solcon/netbox-gitlab | eb80dc288b41fbce8d8b031d108d374e434afe00 | [
"Apache-2.0"
] | 6 | 2020-12-17T00:30:25.000Z | 2021-06-10T09:03:52.000Z | netbox_gitlab/migrations/0002_traceelement.py | Solcon/netbox-gitlab | eb80dc288b41fbce8d8b031d108d374e434afe00 | [
"Apache-2.0"
] | null | null | null | netbox_gitlab/migrations/0002_traceelement.py | Solcon/netbox-gitlab | eb80dc288b41fbce8d8b031d108d374e434afe00 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0.6 on 2020-06-03 18:20
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('circuits', '0018_standardize_description'),
('dcim', '0105_interface_name_collation'),
('netbox_gitlab', '000... | 35.712329 | 64 | 0.448408 | 197 | 2,607 | 5.741117 | 0.375635 | 0.056587 | 0.086649 | 0.136163 | 0.430592 | 0.430592 | 0.430592 | 0.430592 | 0.430592 | 0.388152 | 0 | 0.018595 | 0.443038 | 2,607 | 72 | 65 | 36.208333 | 0.760331 | 0.017261 | 0 | 0.462687 | 1 | 0 | 0.161719 | 0.032813 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.029851 | 0 | 0.074627 | 0 | 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 |
dca5699f2cde293cae830deb1350d4faa2454b56 | 944 | py | Python | Projects/Iris/iris.py | sanjivch/MyML | 28fe99498510deec354d3dc26c1710f3e8886f86 | [
"MIT"
] | null | null | null | Projects/Iris/iris.py | sanjivch/MyML | 28fe99498510deec354d3dc26c1710f3e8886f86 | [
"MIT"
] | 1 | 2020-07-29T05:43:07.000Z | 2020-10-17T18:37:48.000Z | Projects/Iris/iris.py | sanjivch/DataScience | 28fe99498510deec354d3dc26c1710f3e8886f86 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn import datasets
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score
import pickle
import joblib
iris = datasets.load_iris()
df = pd.Dat... | 26.222222 | 100 | 0.757415 | 146 | 944 | 4.712329 | 0.410959 | 0.050872 | 0.040698 | 0.043605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01555 | 0.114407 | 944 | 35 | 101 | 26.971429 | 0.807416 | 0.016949 | 0 | 0 | 0 | 0 | 0.113391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.36 | 0 | 0.36 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dca87be78f192cd04ed982ea9d2ffcb005051f26 | 1,189 | py | Python | UDP_sever.py | thanachote-Frank/SeniorProject | 5bb98a2a0db5a09b5121fc0817df1db5b0233f5d | [
"MIT"
] | null | null | null | UDP_sever.py | thanachote-Frank/SeniorProject | 5bb98a2a0db5a09b5121fc0817df1db5b0233f5d | [
"MIT"
] | null | null | null | UDP_sever.py | thanachote-Frank/SeniorProject | 5bb98a2a0db5a09b5121fc0817df1db5b0233f5d | [
"MIT"
] | null | null | null | import SocketServer
import cv2
import numpy
from sensor_msgs.msg import Image
from cv_bridge import CvBridge, CvBridgeError
import rospy
rospy.init_node('image_converter', anonymous=True)
image_pub = rospy.Publisher("/camera/image_raw",Image)
bridge = CvBridge()
class MyUDPHandler(SocketServer.BaseRequestHandler):
... | 29 | 72 | 0.665265 | 152 | 1,189 | 5.065789 | 0.631579 | 0.042857 | 0.031169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0.246426 | 1,189 | 40 | 73 | 29.725 | 0.828125 | 0 | 0 | 0 | 0 | 0 | 0.062024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.230769 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dcaad22091d8353c9695c50fdb96c944fa254cc1 | 593 | py | Python | simplemes/product/migrations/0004_auto_20190924_2342.py | saulshao/simplemes | fb317570666f776231c1ffd48c6114b9697e47f1 | [
"MIT"
] | null | null | null | simplemes/product/migrations/0004_auto_20190924_2342.py | saulshao/simplemes | fb317570666f776231c1ffd48c6114b9697e47f1 | [
"MIT"
] | null | null | null | simplemes/product/migrations/0004_auto_20190924_2342.py | saulshao/simplemes | fb317570666f776231c1ffd48c6114b9697e47f1 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.5 on 2019-09-24 21:42
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('product', '0003_auto_20190924_2335'),
]
operations = [
migrations.AddField(
model_name='bomtemp... | 25.782609 | 145 | 0.629005 | 65 | 593 | 5.646154 | 0.661538 | 0.065395 | 0.076294 | 0.119891 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072072 | 0.251265 | 593 | 22 | 146 | 26.954545 | 0.754505 | 0.075885 | 0 | 0.125 | 1 | 0 | 0.164835 | 0.042125 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dcae14ba0423882dcd728e2114d494843a80b648 | 3,771 | py | Python | reporter.py | almeidaraul/BSIA | 211cdd4d5fb1a54ccebf9927cea74dc09d37df34 | [
"MIT"
] | null | null | null | reporter.py | almeidaraul/BSIA | 211cdd4d5fb1a54ccebf9927cea74dc09d37df34 | [
"MIT"
] | 9 | 2020-03-29T00:58:39.000Z | 2020-05-04T20:26:05.000Z | reporter.py | almeidaraul/BSIA | 211cdd4d5fb1a54ccebf9927cea74dc09d37df34 | [
"MIT"
] | null | null | null | from analyser import Analyser
from explorer import Explorer
import matplotlib.pyplot as plt
import numpy as np
class Reporter():
def __init__(self, explorer):
self.explorer = explorer
self.analyser = Analyser(self.explorer.df)
def plot_tir(self, in_range, below_range, above_range, fname):
... | 40.98913 | 76 | 0.575179 | 457 | 3,771 | 4.52954 | 0.275711 | 0.037198 | 0.043478 | 0.041063 | 0.118357 | 0.110628 | 0.028986 | 0 | 0 | 0 | 0 | 0.011698 | 0.297269 | 3,771 | 91 | 77 | 41.43956 | 0.769434 | 0.074251 | 0 | 0.052632 | 0 | 0 | 0.121895 | 0.012132 | 0 | 0 | 0 | 0.010989 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.118421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
dcb15c14e404b2c3a92e93570d372cce4188e2c1 | 505 | py | Python | services/web/server/src/simcore_service_webserver/projects/project_models.py | colinRawlings/osparc-simcore | bf2f18d5bc1e574d5f4c238d08ad15156184c310 | [
"MIT"
] | 25 | 2018-04-13T12:44:12.000Z | 2022-03-12T15:01:17.000Z | services/web/server/src/simcore_service_webserver/projects/project_models.py | colinRawlings/osparc-simcore | bf2f18d5bc1e574d5f4c238d08ad15156184c310 | [
"MIT"
] | 2,553 | 2018-01-18T17:11:55.000Z | 2022-03-31T16:26:40.000Z | services/web/server/src/simcore_service_webserver/projects/project_models.py | mguidon/osparc-simcore | 77e64777728f20a5b21362372aefa0e0db5072cd | [
"MIT"
] | 20 | 2018-01-18T19:45:33.000Z | 2022-03-29T07:08:47.000Z | from enum import Enum
from typing import Optional
from simcore_postgres_database.models.projects import ProjectType
class ProjectTypeAPI(str, Enum):
all = "all"
template = "template"
user = "user"
@classmethod
def to_project_type_db(cls, api_type: "ProjectTypeAPI") -> Optional[ProjectType]:
... | 26.578947 | 85 | 0.687129 | 52 | 505 | 6.538462 | 0.538462 | 0.041176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229703 | 505 | 18 | 86 | 28.055556 | 0.874036 | 0 | 0 | 0 | 0 | 0 | 0.057426 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0.071429 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
dcb4b6b8cf1a9422aed87edcbce00af2b6fae8cf | 6,041 | py | Python | src/layer_linter/dependencies/analysis.py | SimonBiggs/layer_linter | 9eb518b74118e4a2d8079e2f32ecc12612ca9e86 | [
"BSD-3-Clause"
] | 63 | 2018-06-21T10:39:54.000Z | 2021-06-04T14:28:44.000Z | src/layer_linter/dependencies/analysis.py | SimonBiggs/layer_linter | 9eb518b74118e4a2d8079e2f32ecc12612ca9e86 | [
"BSD-3-Clause"
] | 86 | 2018-06-20T13:30:30.000Z | 2019-06-04T12:47:28.000Z | src/layer_linter/dependencies/analysis.py | SimonBiggs/layer_linter | 9eb518b74118e4a2d8079e2f32ecc12612ca9e86 | [
"BSD-3-Clause"
] | 4 | 2018-08-14T08:49:55.000Z | 2019-02-16T09:24:47.000Z | from typing import List
import ast
import logging
from ..module import Module, SafeFilenameModule
from .path import ImportPath
logger = logging.getLogger(__name__)
class DependencyAnalyzer:
"""
Analyzes a set of Python modules for imports between them.
Args:
modules: list of all SafeFilenameM... | 43.460432 | 97 | 0.575898 | 681 | 6,041 | 4.935389 | 0.264317 | 0.053555 | 0.020827 | 0.019042 | 0.216602 | 0.159476 | 0.086879 | 0.064862 | 0.046415 | 0.046415 | 0 | 0.00128 | 0.353253 | 6,041 | 138 | 98 | 43.775362 | 0.858971 | 0.29217 | 0 | 0.2 | 0 | 0 | 0.010199 | 0 | 0 | 0 | 0 | 0.007246 | 0.025 | 1 | 0.0625 | false | 0 | 0.4375 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
dcb56ccb2f017a0edb6122c39b8293e031d03433 | 1,876 | py | Python | src/appservice-kube/azext_appservice_kube/tests/latest/test_appservice_kube_scenario.py | sanchitmehta/azure-cli-extensions | cb4c3c459d218e015e24753a6e319da4ee414cb1 | [
"MIT"
] | 2 | 2021-03-24T21:06:20.000Z | 2021-03-24T21:07:58.000Z | src/appservice-kube/azext_appservice_kube/tests/latest/test_appservice_kube_scenario.py | sanchitmehta/azure-cli-extensions | cb4c3c459d218e015e24753a6e319da4ee414cb1 | [
"MIT"
] | 3 | 2020-05-27T20:16:26.000Z | 2020-07-23T19:46:49.000Z | src/appservice-kube/azext_appservice_kube/tests/latest/test_appservice_kube_scenario.py | sanchitmehta/azure-cli-extensions | cb4c3c459d218e015e24753a6e319da4ee414cb1 | [
"MIT"
] | 5 | 2020-05-09T17:47:09.000Z | 2020-10-01T19:52:06.000Z | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 38.285714 | 102 | 0.592217 | 189 | 1,876 | 5.708995 | 0.460317 | 0.050046 | 0.078777 | 0.07785 | 0.144578 | 0.109361 | 0.061168 | 0 | 0 | 0 | 0 | 0.001975 | 0.190299 | 1,876 | 48 | 103 | 39.083333 | 0.708361 | 0.179104 | 0 | 0.2 | 0 | 0 | 0.241694 | 0.03127 | 0 | 0 | 0 | 0 | 0.033333 | 1 | 0.033333 | false | 0.066667 | 0.133333 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
dcb5aa984ad97f07bb7df780875a27689ac49c77 | 6,142 | py | Python | test/kernels/test_rff_kernel.py | Mehdishishehbor/gpytorch | 432e537b3f6679ea4ab3acf33b14626b7e161c92 | [
"MIT"
] | null | null | null | test/kernels/test_rff_kernel.py | Mehdishishehbor/gpytorch | 432e537b3f6679ea4ab3acf33b14626b7e161c92 | [
"MIT"
] | null | null | null | test/kernels/test_rff_kernel.py | Mehdishishehbor/gpytorch | 432e537b3f6679ea4ab3acf33b14626b7e161c92 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import unittest
from unittest.mock import MagicMock, patch
import torch
import Lgpytorch
from Lgpytorch.kernels import RFFKernel
from Lgpytorch.test.base_kernel_test_case import BaseKernelTestCase
class TestModel(Lgpytorch.models.ExactGP):
def __init__(self, train_x, train_y):
li... | 45.835821 | 116 | 0.708727 | 791 | 6,142 | 5.246523 | 0.201011 | 0.046265 | 0.036627 | 0.028675 | 0.73494 | 0.69012 | 0.678072 | 0.671325 | 0.653494 | 0.631807 | 0 | 0.015059 | 0.199935 | 6,142 | 133 | 117 | 46.180451 | 0.829467 | 0.129437 | 0 | 0.421053 | 0 | 0 | 0.024381 | 0.024381 | 0 | 0 | 0 | 0.007519 | 0.126316 | 1 | 0.105263 | false | 0 | 0.063158 | 0.021053 | 0.221053 | 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 |
dcb7035ee8810b25f7e6df643d5047b119e32cfd | 577 | py | Python | tact/sentence.py | pteichman/tact | 24a2c248a5c3f3e523d28b0829474f3bd8e7a455 | [
"MIT"
] | 1 | 2019-04-21T17:30:27.000Z | 2019-04-21T17:30:27.000Z | tact/sentence.py | pteichman/tact | 24a2c248a5c3f3e523d28b0829474f3bd8e7a455 | [
"MIT"
] | null | null | null | tact/sentence.py | pteichman/tact | 24a2c248a5c3f3e523d28b0829474f3bd8e7a455 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import fileinput
import os
import nltk
import sys
from splitta import sbd
model_path = None
for path in sys.path:
mp = os.path.join(path, "splitta/model_svm/")
if os.path.exists(mp):
model_path = mp
break
# This works like sbd.load_sbd_model, but silently.
model = sbd.... | 19.233333 | 65 | 0.708839 | 92 | 577 | 4.326087 | 0.51087 | 0.067839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002088 | 0.169844 | 577 | 29 | 66 | 19.896552 | 0.82881 | 0.121317 | 0 | 0 | 0 | 0 | 0.120792 | 0.061386 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.277778 | 0.111111 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
f496b444ae7f86948ccecf56456ce78411adddef | 278 | py | Python | Hackerrank/LarrysArray.py | PratikGarai/Coding-Challenges | af5f4458505b26538ec2d7dc0ca09aa236b2d01c | [
"MIT"
] | null | null | null | Hackerrank/LarrysArray.py | PratikGarai/Coding-Challenges | af5f4458505b26538ec2d7dc0ca09aa236b2d01c | [
"MIT"
] | 2 | 2020-10-01T16:13:37.000Z | 2020-10-30T19:12:38.000Z | Hackerrank/LarrysArray.py | PratikGarai/Coding-Challenges | af5f4458505b26538ec2d7dc0ca09aa236b2d01c | [
"MIT"
] | 6 | 2020-10-03T09:04:26.000Z | 2022-01-09T11:57:40.000Z | k = int(input())
for z in range(k):
l = int(input())
n = list(map(int,input().split()))
c = 0
for i in range(l-1):
for j in range(i+1,l):
if n[i]>n[j]:
c += 1
if c%2==0:
print('YES')
else:
print('NO')
| 19.857143 | 39 | 0.402878 | 48 | 278 | 2.333333 | 0.479167 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035928 | 0.399281 | 278 | 13 | 40 | 21.384615 | 0.634731 | 0 | 0 | 0 | 0 | 0 | 0.017986 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.153846 | 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 |
f49cc7d00de131a59e445c022047b05d15b2db1e | 5,137 | py | Python | printer/src/cxi/cxifont.py | toringerhartCAMM/czi2tiff | d341a92d4949bbe021ad4de4c816294faf4e8a93 | [
"Apache-2.0"
] | null | null | null | printer/src/cxi/cxifont.py | toringerhartCAMM/czi2tiff | d341a92d4949bbe021ad4de4c816294faf4e8a93 | [
"Apache-2.0"
] | null | null | null | printer/src/cxi/cxifont.py | toringerhartCAMM/czi2tiff | d341a92d4949bbe021ad4de4c816294faf4e8a93 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
##
## /svn-src/printer/src/cxi/cxifont.py
##
import sys
DEBUG = 0
DEFAULT_BIT_SIZE=10
SPACE = " "
EOL = "\r\n"
default_bit_list = {
"A":21, "B":22.4, "C":23.8, "D":23.8, "E":21, "F":19.6, "G":25.2, "H":23.8,
"I":8.5, "J":16, "K":21, "L":18.2, "M":28, "N":23.8, "O":25.2, "P":21,
"Q":25.2, "R"... | 26.209184 | 77 | 0.443255 | 740 | 5,137 | 3.032432 | 0.237838 | 0.016043 | 0.037433 | 0.003565 | 0.108289 | 0.088235 | 0.074866 | 0.074866 | 0.074866 | 0.039216 | 0 | 0.073068 | 0.355266 | 5,137 | 195 | 78 | 26.34359 | 0.604469 | 0.063461 | 0 | 0.24183 | 0 | 0 | 0.080609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.006536 | null | null | 0.104575 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f4a16ee6455541f94e81c9f67a528ca398382a49 | 329 | py | Python | smart-bookmarks-django/smart_bookmarks/core/tests.py | tpiwonski/smart-bookmarks | 747968ad96242937c9369776bbf52bf44b4b87b4 | [
"MIT"
] | null | null | null | smart-bookmarks-django/smart_bookmarks/core/tests.py | tpiwonski/smart-bookmarks | 747968ad96242937c9369776bbf52bf44b4b87b4 | [
"MIT"
] | 1 | 2021-03-10T12:22:14.000Z | 2021-03-10T12:22:14.000Z | smart-bookmarks-django/smart_bookmarks/core/tests.py | tpiwonski/smart-bookmarks | 747968ad96242937c9369776bbf52bf44b4b87b4 | [
"MIT"
] | null | null | null | from urllib.parse import urlparse
from django.test import TestCase
# Create your tests here.
from smart_bookmarks.core.utils import url_guid
def test_foo():
guid = url_guid(
"https://stackoverflow.com/questions/3278077/difference-between-getattr-vs-getattribute/3278104?q=alamakota#1234567"
)
pri... | 23.5 | 124 | 0.756839 | 44 | 329 | 5.568182 | 0.795455 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075 | 0.148936 | 329 | 13 | 125 | 25.307692 | 0.8 | 0.069909 | 0 | 0 | 0 | 0.125 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.5 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f4a20b87b24300a5047271340acecf8637599caf | 2,295 | py | Python | users/migrations/0006_auto_20210723_1056.py | digitaloxford/do-wagtail | 49dd75b95109ebb38bf66aca13d3fdeb8e25d319 | [
"MIT"
] | 2 | 2021-04-11T11:59:51.000Z | 2021-04-12T06:56:23.000Z | users/migrations/0006_auto_20210723_1056.py | digitaloxford/do-wagtail | 49dd75b95109ebb38bf66aca13d3fdeb8e25d319 | [
"MIT"
] | 8 | 2021-04-10T10:40:27.000Z | 2022-01-25T16:32:22.000Z | users/migrations/0006_auto_20210723_1056.py | digitaloxford/do-wagtail | 49dd75b95109ebb38bf66aca13d3fdeb8e25d319 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-07-23 10:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0005_auto_20210723_1047'),
]
operations = [
migrations.AlterModelOptions(
name='user',
options={'ordering':... | 35.859375 | 162 | 0.580828 | 244 | 2,295 | 5.315574 | 0.348361 | 0.061681 | 0.090208 | 0.117965 | 0.432537 | 0.432537 | 0.216654 | 0.158057 | 0.158057 | 0.158057 | 0 | 0.036923 | 0.291939 | 2,295 | 63 | 163 | 36.428571 | 0.761231 | 0.019608 | 0 | 0.473684 | 1 | 0 | 0.146797 | 0.010231 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.017544 | 0 | 0.070175 | 0 | 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 |
f4a4cbe6a2bf35d5ee1562db0379483ba556a385 | 664 | py | Python | wab/core/custom_column_fk/migrations/0003_auto_20210107_0011.py | BinNguyenVNN/wab-rest | daab9e176b5aae60cf822a19563f2e4bc1e02ca1 | [
"MIT"
] | null | null | null | wab/core/custom_column_fk/migrations/0003_auto_20210107_0011.py | BinNguyenVNN/wab-rest | daab9e176b5aae60cf822a19563f2e4bc1e02ca1 | [
"MIT"
] | 1 | 2020-12-17T13:51:12.000Z | 2020-12-17T13:51:12.000Z | wab/core/custom_column_fk/migrations/0003_auto_20210107_0011.py | BinNguyenVNN/wab-rest | daab9e176b5aae60cf822a19563f2e4bc1e02ca1 | [
"MIT"
] | 1 | 2021-05-18T12:30:53.000Z | 2021-05-18T12:30:53.000Z | # Generated by Django 3.0.11 on 2021-01-06 17:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('custom_column_fk', '0002_customcolumnfk'),
]
operations = [
migrations.AlterField(
model_name='customcolumnfk',
nam... | 34.947368 | 312 | 0.59488 | 73 | 664 | 5.191781 | 0.657534 | 0.026385 | 0.036939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041431 | 0.200301 | 664 | 18 | 313 | 36.888889 | 0.672316 | 0.069277 | 0 | 0 | 1 | 0 | 0.298701 | 0.043831 | 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 |
f4a5541f83b7cac7ec0a44bfe733478580ae7d87 | 583 | py | Python | filebrowser/templatetags/fb_compat.py | thomasina-lee/django-filebrowser-no-grappelli | 2b7406b52edb0a9ca6f5fd4d4ef6a18cf767cdb8 | [
"BSD-3-Clause"
] | null | null | null | filebrowser/templatetags/fb_compat.py | thomasina-lee/django-filebrowser-no-grappelli | 2b7406b52edb0a9ca6f5fd4d4ef6a18cf767cdb8 | [
"BSD-3-Clause"
] | null | null | null | filebrowser/templatetags/fb_compat.py | thomasina-lee/django-filebrowser-no-grappelli | 2b7406b52edb0a9ca6f5fd4d4ef6a18cf767cdb8 | [
"BSD-3-Clause"
] | 1 | 2019-12-03T06:17:59.000Z | 2019-12-03T06:17:59.000Z | # coding: utf-8
from django import VERSION as DJANGO_VERSION
from django import template
from django.contrib.admin.templatetags.admin_static import static
register = template.Library()
def static_jquery():
if DJANGO_VERSION < (1, 9):
return static("admin/js/jquery.min.js")
return static("admin/js/v... | 22.423077 | 65 | 0.740995 | 83 | 583 | 5.048193 | 0.385542 | 0.114558 | 0.162291 | 0.076372 | 0.162291 | 0.162291 | 0.162291 | 0.162291 | 0 | 0 | 0 | 0.01006 | 0.147513 | 583 | 25 | 66 | 23.32 | 0.832998 | 0.022298 | 0 | 0.142857 | 0 | 0 | 0.18662 | 0.151408 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.214286 | 0 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f4a70c33f3567a3cadd879670c65eb654f321753 | 1,732 | py | Python | Qshop/Seller/migrations/0001_initial.py | songdanlee/DjangoWorkSpace | 5dea8601f21f5408797a8801f74b76c696a33d83 | [
"MIT"
] | null | null | null | Qshop/Seller/migrations/0001_initial.py | songdanlee/DjangoWorkSpace | 5dea8601f21f5408797a8801f74b76c696a33d83 | [
"MIT"
] | 1 | 2021-05-10T11:45:52.000Z | 2021-05-10T11:45:52.000Z | Qshop/Seller/migrations/0001_initial.py | songdanlee/DjangoWorkSpace | 5dea8601f21f5408797a8801f74b76c696a33d83 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.8 on 2019-09-09 10:12
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Goods',
fields=[
('id', models.AutoField(au... | 40.27907 | 114 | 0.562933 | 173 | 1,732 | 5.479769 | 0.427746 | 0.075949 | 0.084388 | 0.101266 | 0.327004 | 0.327004 | 0.257384 | 0.257384 | 0.257384 | 0.166667 | 0 | 0.03013 | 0.290993 | 1,732 | 42 | 115 | 41.238095 | 0.741857 | 0.025982 | 0 | 0.285714 | 1 | 0 | 0.103858 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.028571 | 0.028571 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f4a752c67676c8ce5adda8f8f2d508968df6fc68 | 1,216 | py | Python | cassiopeia/TreeSolver/simulation_tools/simulation_utils.py | Lioscro/Cassiopeia | fa630e167b3d8e6fb1c88740dff71130224ca54c | [
"MIT"
] | null | null | null | cassiopeia/TreeSolver/simulation_tools/simulation_utils.py | Lioscro/Cassiopeia | fa630e167b3d8e6fb1c88740dff71130224ca54c | [
"MIT"
] | null | null | null | cassiopeia/TreeSolver/simulation_tools/simulation_utils.py | Lioscro/Cassiopeia | fa630e167b3d8e6fb1c88740dff71130224ca54c | [
"MIT"
] | null | null | null | import networkx as nx
def node_to_string(sample):
"""
Given a sample in list format [['0','1','0','2'], uniq_ident] converts to string format, 'Ch1|Ch2|....|Chn_Identifier'
:param sample:
Sample in format [['0','1','0','2'], uniq_ident]
:return:
String formatted version of a given sample
"""
return "|".joi... | 30.4 | 135 | 0.708059 | 201 | 1,216 | 4.144279 | 0.353234 | 0.042017 | 0.052821 | 0.036014 | 0.322929 | 0.322929 | 0.2509 | 0.205282 | 0.177671 | 0.177671 | 0 | 0.017425 | 0.150493 | 1,216 | 39 | 136 | 31.179487 | 0.788964 | 0.583059 | 0 | 0 | 0 | 0 | 0.003914 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f4a78eb7010db640c0d072da9f7061387a78a66c | 1,162 | py | Python | docs/conf.py | ikalnytskyi/holocron | f0bda50f1aab7d1013fac5bd8fb01f7ebeb7bdc3 | [
"BSD-3-Clause"
] | 6 | 2016-11-27T11:53:18.000Z | 2021-02-08T00:37:59.000Z | docs/conf.py | ikalnytskyi/holocron | f0bda50f1aab7d1013fac5bd8fb01f7ebeb7bdc3 | [
"BSD-3-Clause"
] | 25 | 2017-04-12T15:27:55.000Z | 2022-01-21T23:37:37.000Z | docs/conf.py | ikalnytskyi/holocron | f0bda50f1aab7d1013fac5bd8fb01f7ebeb7bdc3 | [
"BSD-3-Clause"
] | 1 | 2020-11-15T17:49:36.000Z | 2020-11-15T17:49:36.000Z | """
Sphinx configuration file for building Holocron"s documentation.
"""
from __future__ import unicode_literals
import os
import re
import sys
import pkg_resources
# project settings
project = "Holocron"
copyright = "2015, the Holocron Team"
release = pkg_resources.get_distribution("holocron").version
version ... | 24.723404 | 71 | 0.761618 | 149 | 1,162 | 5.731544 | 0.563758 | 0.031616 | 0.04918 | 0.042155 | 0.053864 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010859 | 0.128227 | 1,162 | 46 | 72 | 25.26087 | 0.832182 | 0.305508 | 0 | 0 | 0 | 0 | 0.175349 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.347826 | 0 | 0.347826 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f4a88a414d53af645a7bdb4b993c2c6e2da0ea48 | 613 | py | Python | zsh/profiles/default/bin/m4rconvert.py | perdian/dotfiles | f8f59c6859c3a10fe5588c8648e82314f62e82f9 | [
"MIT"
] | null | null | null | zsh/profiles/default/bin/m4rconvert.py | perdian/dotfiles | f8f59c6859c3a10fe5588c8648e82314f62e82f9 | [
"MIT"
] | null | null | null | zsh/profiles/default/bin/m4rconvert.py | perdian/dotfiles | f8f59c6859c3a10fe5588c8648e82314f62e82f9 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import glob
import os
import subprocess
import sys
files = sys.argv[1:] if len(sys.argv) > 1 else glob.glob('*')
for file in files:
if os.path.isfile(file):
fileWithoutExtension = os.path.splitext(file)[0]
fileWithM4rExtension = fileWithoutExtension + ".m4r";
print "Conve... | 23.576923 | 61 | 0.487765 | 63 | 613 | 4.746032 | 0.650794 | 0.046823 | 0.053512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029851 | 0.344209 | 613 | 25 | 62 | 24.52 | 0.71393 | 0.026101 | 0 | 0 | 0 | 0 | 0.098993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.190476 | null | null | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f4aba3796b8473ef9c8fb4564e68075e417b7015 | 398 | py | Python | ch9-user-authentication/django_project/urls.py | dzikrihak/djangoforbeginners | 78e83a8c6ab190ffd547a33d840bd64611a51e66 | [
"MIT"
] | 5 | 2021-12-14T03:33:39.000Z | 2022-01-11T14:13:21.000Z | ch9-user-authentication/django_project/urls.py | dzikrihak/djangoforbeginners | 78e83a8c6ab190ffd547a33d840bd64611a51e66 | [
"MIT"
] | null | null | null | ch9-user-authentication/django_project/urls.py | dzikrihak/djangoforbeginners | 78e83a8c6ab190ffd547a33d840bd64611a51e66 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.urls import path, include # new
from django.views.generic.base import TemplateView # new
urlpatterns = [
path("admin/", admin.site.urls),
path("accounts/", include("accounts.urls")), # new
path("accounts/", include("django.contrib.auth.urls")), # new
pat... | 36.181818 | 82 | 0.688442 | 51 | 398 | 5.333333 | 0.45098 | 0.110294 | 0.139706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145729 | 398 | 10 | 83 | 39.8 | 0.8 | 0.047739 | 0 | 0 | 0 | 0 | 0.198391 | 0.064343 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f4ad7aefce58633760992fc0535c645ac27d3823 | 464 | py | Python | backend/pages/views.py | ranwise/djangochannel | 9c719d292b5c1d0fd008a16a64509a309bdd642e | [
"BSD-3-Clause"
] | 45 | 2019-10-04T10:12:54.000Z | 2022-03-29T18:12:34.000Z | backend/pages/views.py | ranwise/djangochannel | 9c719d292b5c1d0fd008a16a64509a309bdd642e | [
"BSD-3-Clause"
] | 6 | 2019-10-09T07:37:14.000Z | 2022-01-27T16:41:16.000Z | backend/pages/views.py | ranwise/djangochannel | 9c719d292b5c1d0fd008a16a64509a309bdd642e | [
"BSD-3-Clause"
] | 35 | 2019-10-04T10:18:48.000Z | 2022-01-14T22:40:38.000Z | from django.shortcuts import render, get_object_or_404
from django.views.generic.base import View
from .models import Pages
class Page(View):
"""Вывод страниц"""
def get(self, request, slug=None):
if slug is not None:
page = get_object_or_404(Pages, slug=slug, published=True)
else... | 29 | 78 | 0.678879 | 65 | 464 | 4.676923 | 0.507692 | 0.088816 | 0.108553 | 0.138158 | 0.177632 | 0.177632 | 0.177632 | 0 | 0 | 0 | 0 | 0.024862 | 0.219828 | 464 | 15 | 79 | 30.933333 | 0.814917 | 0.028017 | 0 | 0 | 0 | 0 | 0.009009 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f4bab23875af10416f3b74daab5e6245c4af5d00 | 735 | py | Python | usage/parse_mongo.py | benradford/hypnos | 9ca2bd38ff6b1db9dbaddfc63f5ea0d19f71b8cd | [
"MIT"
] | 9 | 2016-07-01T20:15:57.000Z | 2021-02-01T19:03:12.000Z | usage/parse_mongo.py | benradford/hypnos | 9ca2bd38ff6b1db9dbaddfc63f5ea0d19f71b8cd | [
"MIT"
] | 4 | 2016-10-19T20:03:24.000Z | 2019-07-09T20:55:40.000Z | usage/parse_mongo.py | benradford/hypnos | 9ca2bd38ff6b1db9dbaddfc63f5ea0d19f71b8cd | [
"MIT"
] | 4 | 2016-10-26T23:46:10.000Z | 2019-07-09T16:37:08.000Z | import json
import requests
from pymongo import MongoClient
connection = MongoClient()
db = connection.lexisnexis
collection = db["test"]
t = collection.find().limit(500)
output = []
junk = []
# figure out /process and /code
headers = {'Content-Type': 'application/json'}
for i in t:
data = {'text': i['article... | 21.617647 | 77 | 0.601361 | 98 | 735 | 4.489796 | 0.602041 | 0.036364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028419 | 0.234014 | 735 | 33 | 78 | 22.272727 | 0.753108 | 0.039456 | 0 | 0 | 0 | 0 | 0.180398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | 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 |
f4c13b57bb6ac03bb687e5ab9f1877e755679208 | 3,564 | py | Python | Q-document.py | rmcsqrd/Q-Document | 0bbfa8c64a6558d33b94fda83e390e14eeef6edc | [
"MIT"
] | null | null | null | Q-document.py | rmcsqrd/Q-Document | 0bbfa8c64a6558d33b94fda83e390e14eeef6edc | [
"MIT"
] | null | null | null | Q-document.py | rmcsqrd/Q-Document | 0bbfa8c64a6558d33b94fda83e390e14eeef6edc | [
"MIT"
] | null | null | null | ## Imports
import sys
import os
import json
sys.path.insert(1, 'src') # update import path for my custom stuff
import generateJSON
import Qbrain
def ClearScreen():
# clear terminal screen, inspired by https://stackoverflow.com/a/2084628
os.system('cls' if os.name == 'nt' else 'clear')
if __name__ == '__mai... | 36.367347 | 134 | 0.594557 | 435 | 3,564 | 4.795402 | 0.390805 | 0.009588 | 0.004314 | 0.021093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005329 | 0.262907 | 3,564 | 97 | 135 | 36.742268 | 0.788732 | 0.185466 | 0 | 0.074074 | 1 | 0 | 0.411111 | 0.073958 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018519 | false | 0 | 0.092593 | 0 | 0.111111 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f4c233a10b4e4341177ed2e718d9f89094182f31 | 778 | py | Python | Cuda/Benchmarks/ConvSpeed.py | EmilPi/PuzzleLib | 31aa0fab3b5e9472b9b9871ca52e4d94ea683fa9 | [
"Apache-2.0"
] | 52 | 2020-02-28T20:40:15.000Z | 2021-08-25T05:35:17.000Z | Cuda/Benchmarks/ConvSpeed.py | EmilPi/PuzzleLib | 31aa0fab3b5e9472b9b9871ca52e4d94ea683fa9 | [
"Apache-2.0"
] | 2 | 2021-02-14T15:57:03.000Z | 2021-10-05T12:21:34.000Z | Cuda/Benchmarks/ConvSpeed.py | EmilPi/PuzzleLib | 31aa0fab3b5e9472b9b9871ca52e4d94ea683fa9 | [
"Apache-2.0"
] | 8 | 2020-02-28T20:40:11.000Z | 2020-07-09T13:27:23.000Z | import numpy as np
from PuzzleLib.Cuda.Backend import getBackend
def main():
datashape = (128, 32, 64, 64)
Wshape = (64, 32, 11, 11)
stride, pad, dilation, groups = 1, 0, 1, datashape[1] // Wshape[1]
timeConv(getBackend(initmode=1), datashape, Wshape, np.float32, stride, pad, dilation, groups)
def timeConv(bac... | 23.575758 | 95 | 0.717224 | 100 | 778 | 5.5 | 0.42 | 0.065455 | 0.123636 | 0.167273 | 0.156364 | 0.156364 | 0.156364 | 0 | 0 | 0 | 0 | 0.03811 | 0.156812 | 778 | 32 | 96 | 24.3125 | 0.800305 | 0 | 0 | 0.136364 | 0 | 0 | 0.095116 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.181818 | 0.272727 | 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 |
f4c5b17946426c35eaa4426d034c4af39bc7b50b | 246 | py | Python | src/flaskdoc/swagger/validators.py | kulgan/flaskdoc | e61fcbc246bcc3695c0e7dcb474067d47a6d70f0 | [
"Apache-2.0"
] | 4 | 2020-08-17T03:07:26.000Z | 2021-06-24T13:01:56.000Z | src/flaskdoc/swagger/validators.py | kulgan/flaskdoc | e61fcbc246bcc3695c0e7dcb474067d47a6d70f0 | [
"Apache-2.0"
] | 14 | 2019-10-09T13:50:43.000Z | 2020-08-17T02:35:55.000Z | src/flaskdoc/swagger/validators.py | kulgan/flaskdoc | e61fcbc246bcc3695c0e7dcb474067d47a6d70f0 | [
"Apache-2.0"
] | 2 | 2020-08-09T06:10:24.000Z | 2022-03-06T11:23:30.000Z | from urllib import parse
def validate_url(url: str, label: str):
parsed = parse.urlparse(url)
if not all([parsed.scheme, parsed.netloc]):
raise ValueError("{label} entry '{url}' is not a valid url".format(label=label, url=url))
| 30.75 | 97 | 0.682927 | 37 | 246 | 4.513514 | 0.621622 | 0.071856 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178862 | 246 | 7 | 98 | 35.142857 | 0.826733 | 0 | 0 | 0 | 0 | 0 | 0.162602 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f4c740af1b1c94a91a907e7bc6b3d65e22a6b22d | 392 | py | Python | py/codeforces/842A.py | shhuan/algorithms | 2830c7e2ada8dfd3dcdda7c06846116d4f944a27 | [
"MIT"
] | null | null | null | py/codeforces/842A.py | shhuan/algorithms | 2830c7e2ada8dfd3dcdda7c06846116d4f944a27 | [
"MIT"
] | null | null | null | py/codeforces/842A.py | shhuan/algorithms | 2830c7e2ada8dfd3dcdda7c06846116d4f944a27 | [
"MIT"
] | 1 | 2022-03-09T04:52:55.000Z | 2022-03-09T04:52:55.000Z | # -*- coding: utf-8 -*-
import math
import collections
import bisect
import heapq
import time
import random
import itertools
import sys
"""
created by shhuan at 2017/10/20 15:24
"""
l, r, x, y, k = map(int, input().split())
while x <= y:
b = (x+y)//2
if l <= b*k <= r:
print('YES')
exit(0)
... | 13.066667 | 41 | 0.535714 | 66 | 392 | 3.181818 | 0.636364 | 0.028571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062044 | 0.30102 | 392 | 30 | 42 | 13.066667 | 0.70438 | 0.053571 | 0 | 0 | 0 | 0 | 0.015432 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.421053 | 0 | 0.421053 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f4c89e1d24af2be3569f7da738bd2bdd4c4c3d1d | 751 | py | Python | wargame/migrations/0010_auto_20180920_1617.py | radl97/wargame-web | 4062b05717bacb5c1a2c178f3a8bd07af7a18b10 | [
"MIT"
] | 2 | 2020-10-06T17:07:32.000Z | 2020-10-15T09:25:42.000Z | wargame/migrations/0010_auto_20180920_1617.py | radl97/wargame-web | 4062b05717bacb5c1a2c178f3a8bd07af7a18b10 | [
"MIT"
] | 67 | 2018-06-22T09:12:44.000Z | 2022-03-11T23:34:39.000Z | wargame/migrations/0010_auto_20180920_1617.py | radl97/wargame-web | 4062b05717bacb5c1a2c178f3a8bd07af7a18b10 | [
"MIT"
] | 2 | 2020-10-05T21:13:48.000Z | 2020-10-10T13:46:20.000Z | # Generated by Django 2.1.1 on 2018-09-20 14:17
from django.db import migrations, models
import wargame.models
class Migration(migrations.Migration):
dependencies = [("wargame", "0009_auto_20180919_1923")]
operations = [
migrations.AlterField(
model_name="user",
name="userna... | 30.04 | 97 | 0.587217 | 77 | 751 | 5.584416 | 0.753247 | 0.060465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071017 | 0.306258 | 751 | 24 | 98 | 31.291667 | 0.754319 | 0.05992 | 0 | 0 | 1 | 0 | 0.234375 | 0.03267 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f4cb9e71bf80ba1d064ef828b984719895baae0a | 717 | py | Python | null/grifarm/main.py | mikoim/funstuff | 3c391c76784a4bb37983c1a251773bfa61182ce1 | [
"MIT"
] | null | null | null | null/grifarm/main.py | mikoim/funstuff | 3c391c76784a4bb37983c1a251773bfa61182ce1 | [
"MIT"
] | null | null | null | null/grifarm/main.py | mikoim/funstuff | 3c391c76784a4bb37983c1a251773bfa61182ce1 | [
"MIT"
] | null | null | null | from grifarm import *
if __name__ == '__main__':
c = Client()
if c.check_version() and c.handshake1() and c.handshake2() and c.user_home() and c.pvp_home():
while True:
if c.get_user_battle_point() == 0 and c.get_user_quest_point() < 30:
print('Sleeping... 900 seconds')
... | 26.555556 | 98 | 0.490934 | 91 | 717 | 3.593407 | 0.483516 | 0.061162 | 0.055046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043578 | 0.391911 | 717 | 26 | 99 | 27.576923 | 0.706422 | 0.075314 | 0 | 0.222222 | 0 | 0 | 0.04697 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.055556 | 0 | 0.055556 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f4d869ff99012cea8542c9d9ca3ea70c06fd7cef | 6,036 | py | Python | python/subtlenet/convert2.py | sammysiegel/SubtLeNet | 94d1507a8a7c60548b59400109b6c4086ad83141 | [
"MIT"
] | null | null | null | python/subtlenet/convert2.py | sammysiegel/SubtLeNet | 94d1507a8a7c60548b59400109b6c4086ad83141 | [
"MIT"
] | null | null | null | python/subtlenet/convert2.py | sammysiegel/SubtLeNet | 94d1507a8a7c60548b59400109b6c4086ad83141 | [
"MIT"
] | 2 | 2019-07-08T20:18:22.000Z | 2020-06-01T20:04:08.000Z | import argparse
import os
import json
import uproot
import numpy as np
import pandas as pd
import re
# grabbing command line args
parser = argparse.ArgumentParser()
parser.add_argument('--out', type=str, help='dir where output files will be stored')
parser.add_argument('--name', type=str, help='name of sample to proce... | 33.910112 | 236 | 0.651922 | 907 | 6,036 | 4.249173 | 0.288864 | 0.025688 | 0.023352 | 0.01946 | 0.02958 | 0.022314 | 0.00986 | 0 | 0 | 0 | 0 | 0.006593 | 0.221007 | 6,036 | 177 | 237 | 34.101695 | 0.813058 | 0.162194 | 0 | 0.082707 | 0 | 0.015038 | 0.196187 | 0.004369 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015038 | 0.052632 | null | null | 0.12782 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f4de7fffee7618476b54d27c06029e97e7a5f5f6 | 6,766 | py | Python | pddlgym/procedural_generation/hiking.py | agiachris/pddlgym | daea0752a2d12c0cc9e94b97088ef0c37a779305 | [
"MIT"
] | 96 | 2019-12-12T22:21:45.000Z | 2022-03-10T05:14:31.000Z | pddlgym/procedural_generation/hiking.py | agiachris/pddlgym | daea0752a2d12c0cc9e94b97088ef0c37a779305 | [
"MIT"
] | 34 | 2019-12-16T18:33:24.000Z | 2021-10-17T00:44:44.000Z | pddlgym/procedural_generation/hiking.py | agiachris/pddlgym | daea0752a2d12c0cc9e94b97088ef0c37a779305 | [
"MIT"
] | 27 | 2019-12-13T12:04:34.000Z | 2022-03-29T05:49:50.000Z | from pddlgym.parser import PDDLDomainParser, PDDLProblemParser
from pddlgym.structs import LiteralConjunction
import pddlgym
import os
import numpy as np
from itertools import count
np.random.seed(0)
PDDLDIR = os.path.join(os.path.dirname(pddlgym.__file__), "pddl")
I, G, W, P, X, H = range(6)
TRAIN_GRID1 = np.arra... | 29.417391 | 67 | 0.455365 | 1,306 | 6,766 | 2.293262 | 0.097243 | 0.170284 | 0.177295 | 0.176294 | 0.413356 | 0.379967 | 0.358932 | 0.334558 | 0.261102 | 0.218364 | 0 | 0.0097 | 0.329589 | 6,766 | 229 | 68 | 29.545852 | 0.650573 | 0.014484 | 0 | 0.259259 | 0 | 0 | 0.021168 | 0 | 0 | 0 | 0 | 0 | 0.005291 | 1 | 0.015873 | false | 0 | 0.031746 | 0 | 0.047619 | 0.005291 | 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 |
f4f4420ce6b8a8070b88bb07b560ed4ae51138b1 | 1,589 | py | Python | Logistic_Regression/run_demo.py | htt-trangtran/smg | b7a49055e7d48ec456bac67ab473db2183d2f597 | [
"MIT"
] | 1 | 2021-11-25T05:57:13.000Z | 2021-11-25T05:57:13.000Z | Logistic_Regression/run_demo.py | htt-trangtran/smg | b7a49055e7d48ec456bac67ab473db2183d2f597 | [
"MIT"
] | null | null | null | Logistic_Regression/run_demo.py | htt-trangtran/smg | b7a49055e7d48ec456bac67ab473db2183d2f597 | [
"MIT"
] | 1 | 2021-11-25T05:35:21.000Z | 2021-11-25T05:35:21.000Z | ############################
# written by Trang H. Tran and Lam M. Nguyen
############################
"""
Run the experiments - DEMO
"""
import os
import numpy as np
import pandas as pd
from load_data import *
from algorithms import *
from record_history import *
from util_func import *
from schedul... | 28.890909 | 96 | 0.646318 | 208 | 1,589 | 4.721154 | 0.336538 | 0.101833 | 0.076375 | 0.101833 | 0.39613 | 0.379837 | 0.332994 | 0.332994 | 0.332994 | 0.332994 | 0 | 0.021228 | 0.169918 | 1,589 | 55 | 97 | 28.890909 | 0.723275 | 0.181246 | 0 | 0.121212 | 0 | 0 | 0.040678 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.30303 | 0 | 0.30303 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f4f5ae22639a0bec09139d295a23f85c66867c77 | 8,498 | py | Python | statsforecast/core.py | Nixtla/statsforecast | cd7f9630ea3ebaa24049b859d2292bd4a9855116 | [
"MIT"
] | 483 | 2021-11-25T19:58:54.000Z | 2022-03-31T23:53:03.000Z | statsforecast/core.py | Nixtla/statsforecast | cd7f9630ea3ebaa24049b859d2292bd4a9855116 | [
"MIT"
] | 50 | 2021-12-06T21:26:34.000Z | 2022-03-31T16:56:06.000Z | statsforecast/core.py | Nixtla/statsforecast | cd7f9630ea3ebaa24049b859d2292bd4a9855116 | [
"MIT"
] | 29 | 2022-02-03T22:09:19.000Z | 2022-03-31T02:13:51.000Z | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/core.ipynb (unless otherwise specified).
__all__ = ['StatsForecast']
# Cell
import inspect
import logging
from functools import partial
from os import cpu_count
import numpy as np
import pandas as pd
# Internal Cell
logging.basicConfig(
format='%(asctime)s %(name)... | 37.436123 | 105 | 0.578136 | 1,122 | 8,498 | 4.191622 | 0.204991 | 0.019137 | 0.015309 | 0.007017 | 0.261748 | 0.166277 | 0.158197 | 0.149266 | 0.149266 | 0.149266 | 0 | 0.005635 | 0.310897 | 8,498 | 227 | 106 | 37.436123 | 0.797473 | 0.025535 | 0 | 0.252577 | 1 | 0 | 0.084875 | 0.00798 | 0.005155 | 0 | 0 | 0 | 0 | 1 | 0.07732 | false | 0 | 0.051546 | 0.015464 | 0.221649 | 0 | 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 |
f4f7bf7477945cd30d528c318e28b4cbe68ebf84 | 306 | py | Python | orm/client/__init__.py | rafi16jan/rapyd-framework | 436c60a8d2b9739c1b9177f5af985035aa21c8de | [
"BSD-3-Clause"
] | 16 | 2017-10-05T03:52:16.000Z | 2020-01-25T12:01:36.000Z | orm/client/__init__.py | soIu/framework | 436c60a8d2b9739c1b9177f5af985035aa21c8de | [
"BSD-3-Clause"
] | 2 | 2018-01-06T00:21:09.000Z | 2018-01-09T08:22:19.000Z | orm/client/__init__.py | rafi16jan/rapyd-framework | 436c60a8d2b9739c1b9177f5af985035aa21c8de | [
"BSD-3-Clause"
] | 7 | 2017-12-14T13:39:20.000Z | 2020-03-09T07:16:54.000Z | from javascript import Object, asynchronous
from .. import get_db, tools, data
@asynchronous
def init(promise, app):
get_db()
promise.wait()
data.run().wait()
Object.get('Module', 'mount_component').call(app.toRef())
return
def init_compile():
#tools.register_models()
return
| 20.4 | 61 | 0.683007 | 39 | 306 | 5.230769 | 0.615385 | 0.04902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179739 | 306 | 14 | 62 | 21.857143 | 0.812749 | 0.075163 | 0 | 0.181818 | 0 | 0 | 0.074468 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0.090909 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
76045e83f51e3b622d3d296ff2368a054d805d3a | 11,020 | py | Python | guardian/guardian.py | fjl121029xx/myWaterdrop | 4bb3fb435eaff7dcdd0b47e78b167bd79e0ce14a | [
"Apache-2.0"
] | null | null | null | guardian/guardian.py | fjl121029xx/myWaterdrop | 4bb3fb435eaff7dcdd0b47e78b167bd79e0ce14a | [
"Apache-2.0"
] | null | null | null | guardian/guardian.py | fjl121029xx/myWaterdrop | 4bb3fb435eaff7dcdd0b47e78b167bd79e0ce14a | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import json
import sys
import subprocess
import time
import threading
import requests
from datetime import datetime
import config_api
from alert import GuardianAlert, AlertException
# TODO:
# from contacts import contacts
import spark_checker
# TODO:
# start application concurrently
def ... | 25.627907 | 148 | 0.587659 | 1,338 | 11,020 | 4.639761 | 0.187593 | 0.022552 | 0.006765 | 0.010631 | 0.245973 | 0.177513 | 0.143363 | 0.125644 | 0.104704 | 0.104704 | 0 | 0.00786 | 0.30726 | 11,020 | 429 | 149 | 25.687646 | 0.805345 | 0.028221 | 0 | 0.293706 | 0 | 0 | 0.177921 | 0 | 0 | 0 | 0 | 0.002331 | 0 | 0 | null | null | 0.017483 | 0.041958 | null | null | 0.048951 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
76052bc5303af9371a036e0965fda37513bf764b | 1,923 | py | Python | package/spack-poppler-data/package.py | ctuning/ck-spack | 307934efce1be2d4f104251275c82fbc70127105 | [
"BSD-3-Clause"
] | 1 | 2018-07-17T07:45:09.000Z | 2018-07-17T07:45:09.000Z | package/spack-poppler-data/package.py | ctuning/ck-spack | 307934efce1be2d4f104251275c82fbc70127105 | [
"BSD-3-Clause"
] | null | null | null | package/spack-poppler-data/package.py | ctuning/ck-spack | 307934efce1be2d4f104251275c82fbc70127105 | [
"BSD-3-Clause"
] | null | null | null | ##############################################################################
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | 45.785714 | 78 | 0.693188 | 263 | 1,923 | 5.064639 | 0.60076 | 0.039039 | 0.018018 | 0.031532 | 0.076577 | 0.076577 | 0.076577 | 0 | 0 | 0 | 0 | 0.039009 | 0.160166 | 1,923 | 41 | 79 | 46.902439 | 0.785759 | 0.732189 | 0 | 0 | 0 | 0.166667 | 0.451923 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7605faa0046a9fc5812b3ee196a118355b577702 | 49,675 | py | Python | models/create_procs.py | dendisuhubdy/RCN | 94d7322c25c1c02d71aec2a9a2e810170d91c7cd | [
"BSD-3-Clause"
] | 70 | 2016-04-18T21:20:36.000Z | 2021-08-14T09:23:45.000Z | models/create_procs.py | dendisuhubdy/RCN | 94d7322c25c1c02d71aec2a9a2e810170d91c7cd | [
"BSD-3-Clause"
] | 6 | 2016-10-17T16:36:15.000Z | 2020-04-03T21:25:35.000Z | models/create_procs.py | dendisuhubdy/RCN | 94d7322c25c1c02d71aec2a9a2e810170d91c7cd | [
"BSD-3-Clause"
] | 34 | 2016-04-19T08:09:49.000Z | 2020-04-07T12:19:25.000Z | import numpy as np
from collections import OrderedDict
import cPickle as pickle
import time
import sys
sys.setrecursionlimit(2000)
import argparse
import RCN
from RCN.preprocessing.tools import EOF
from RCN.preprocessing.tools import shuffleData, splitData, mergeData
from RCN.preprocessing.preprocess import preprocess_... | 54.587912 | 172 | 0.660433 | 7,067 | 49,675 | 4.284279 | 0.064808 | 0.01189 | 0.031443 | 0.017439 | 0.620603 | 0.552796 | 0.480034 | 0.448129 | 0.409155 | 0.377845 | 0 | 0.029562 | 0.244811 | 49,675 | 909 | 173 | 54.647965 | 0.777523 | 0.058581 | 0 | 0.182353 | 0 | 0.002941 | 0.136518 | 0.013303 | 0 | 0 | 0 | 0 | 0.007353 | 0 | null | null | 0 | 0.032353 | null | null | 0.123529 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
760c951ab1ca819056a40a93e115ca1894252fad | 232 | py | Python | mtml/modeling/__init__.py | crb479/mcdevitt-trauma-ml | 9ed7ed7cd1e4be0071a18f9bbf375414088d5ed2 | [
"MIT"
] | 5 | 2020-03-02T23:38:36.000Z | 2021-01-22T04:00:23.000Z | mtml/modeling/__init__.py | crb479/mcdevitt-trauma-ml | 9ed7ed7cd1e4be0071a18f9bbf375414088d5ed2 | [
"MIT"
] | null | null | null | mtml/modeling/__init__.py | crb479/mcdevitt-trauma-ml | 9ed7ed7cd1e4be0071a18f9bbf375414088d5ed2 | [
"MIT"
] | null | null | null | __doc__ = "Subpackage for model training/optimization utilities."
import os.path
BASE_RESULTS_DIR = os.path.dirname(os.path.abspath(__file__)) + "/results"
"Absolute path to the results directory for the modeling subpackage." | 38.666667 | 75 | 0.775862 | 31 | 232 | 5.483871 | 0.677419 | 0.105882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12931 | 232 | 6 | 76 | 38.666667 | 0.841584 | 0 | 0 | 0 | 0 | 0 | 0.561404 | 0.092105 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
760d70034574ec3ba10fa0ca08d0b46a3308c67a | 1,071 | py | Python | python/20190124/Code/c2.py | Realize0917/career | b5d02ac53cfc3ce3a2ca38d11480c51560283e67 | [
"MIT"
] | 3 | 2019-01-17T05:50:51.000Z | 2019-03-15T10:10:07.000Z | python/20190124/Code/c2.py | Realize0917/career | b5d02ac53cfc3ce3a2ca38d11480c51560283e67 | [
"MIT"
] | 10 | 2019-01-17T06:07:03.000Z | 2019-02-19T05:55:25.000Z | python/20190124/Code/c2.py | Realize0917/career | b5d02ac53cfc3ce3a2ca38d11480c51560283e67 | [
"MIT"
] | 4 | 2018-12-22T07:32:55.000Z | 2019-03-06T09:13:48.000Z | """
collections模块:就是对'组'数据结构的补充
"""
# tuple->namedtuple(命名元组)
from collections import *
point = (1, 2) # 坐标点
Point = namedtuple('Point', ['x', 'y'])
p = Point(1, 2) # 结构化
print('x: %s, y: %s' % (p.x, p.y))
print(isinstance(p, Point))
print(isinstance(p, tuple))
# list(线性存储:查询元素快,插入删除效率低)->deque(双向列表如 队列、栈): 首尾插入删除效率... | 22.3125 | 68 | 0.573296 | 185 | 1,071 | 3.291892 | 0.405405 | 0.01642 | 0.044335 | 0.013136 | 0.101806 | 0.101806 | 0.032841 | 0.032841 | 0.032841 | 0.032841 | 0 | 0.037363 | 0.150327 | 1,071 | 47 | 69 | 22.787234 | 0.631868 | 0.269841 | 0 | 0.129032 | 0 | 0 | 0.096859 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032258 | 0 | 0.032258 | 0.419355 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
760eb506ea11372a876e8717eba97be06772e303 | 255 | py | Python | src/dpn_pyutils/http.py | davidpirogov/dpn_pyutils | 9177b19b8b3fff2410f9653ba24ab7358f552999 | [
"MIT"
] | null | null | null | src/dpn_pyutils/http.py | davidpirogov/dpn_pyutils | 9177b19b8b3fff2410f9653ba24ab7358f552999 | [
"MIT"
] | null | null | null | src/dpn_pyutils/http.py | davidpirogov/dpn_pyutils | 9177b19b8b3fff2410f9653ba24ab7358f552999 | [
"MIT"
] | null | null | null | from urllib import urlparse
def is_url(url: str):
"""
Code from https://stackoverflow.com/a/52455972
"""
try:
result = urlparse(url)
return all([result.scheme, result.netloc])
except ValueError:
return False
| 21.25 | 51 | 0.615686 | 30 | 255 | 5.2 | 0.766667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043243 | 0.27451 | 255 | 11 | 52 | 23.181818 | 0.8 | 0.180392 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
76132ac4a89e9972ee888391adb2bbcc5a9cdc8a | 2,663 | py | Python | src/icolos/core/workflow_steps/openff/openff2gmx.py | CMargreitter/Icolos | fd7b664ce177df875fefa910dc4d5c574b521cb3 | [
"Apache-2.0"
] | 11 | 2022-01-30T14:36:13.000Z | 2022-03-22T09:40:57.000Z | src/icolos/core/workflow_steps/openff/openff2gmx.py | CMargreitter/Icolos | fd7b664ce177df875fefa910dc4d5c574b521cb3 | [
"Apache-2.0"
] | 2 | 2022-03-23T07:56:49.000Z | 2022-03-24T12:01:42.000Z | src/icolos/core/workflow_steps/openff/openff2gmx.py | CMargreitter/Icolos | fd7b664ce177df875fefa910dc4d5c574b521cb3 | [
"Apache-2.0"
] | 8 | 2022-01-28T10:32:31.000Z | 2022-03-22T09:40:59.000Z | from icolos.core.workflow_steps.step import StepBase
from pydantic import BaseModel
from openmm.app import PDBFile
import parmed
from openff.toolkit.topology import Molecule, Topology
from openff.toolkit.typing.engines.smirnoff import ForceField
from openff.toolkit.utils import get_data_file_path
from icolos.utils.en... | 38.594203 | 236 | 0.706722 | 348 | 2,663 | 5.201149 | 0.439655 | 0.029834 | 0.027624 | 0.053039 | 0.120442 | 0.080663 | 0.080663 | 0.038674 | 0.038674 | 0 | 0 | 0.000966 | 0.222306 | 2,663 | 68 | 237 | 39.161765 | 0.873008 | 0.266241 | 0 | 0.04878 | 0 | 0 | 0.008933 | 0 | 0 | 0 | 0 | 0.014706 | 0 | 1 | 0.073171 | false | 0 | 0.219512 | 0 | 0.317073 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
761a04c32e8f7afadfb455fac229da996c418667 | 4,097 | py | Python | nova/conf/configdrive.py | viveknandavanam/nova | 556377b6915936467436c9d5bb33bc0e22244e1e | [
"Apache-2.0"
] | 1 | 2019-07-29T10:30:24.000Z | 2019-07-29T10:30:24.000Z | nova/conf/configdrive.py | viveknandavanam/nova | 556377b6915936467436c9d5bb33bc0e22244e1e | [
"Apache-2.0"
] | 11 | 2017-06-19T01:28:55.000Z | 2017-06-23T02:01:47.000Z | nova/conf/configdrive.py | viveknandavanam/nova | 556377b6915936467436c9d5bb33bc0e22244e1e | [
"Apache-2.0"
] | 7 | 2015-01-20T10:30:08.000Z | 2020-02-05T10:29:05.000Z | # 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 applicable law or agreed to in... | 36.580357 | 78 | 0.753966 | 642 | 4,097 | 4.76324 | 0.327103 | 0.039568 | 0.016351 | 0.021256 | 0.331916 | 0.307717 | 0.289405 | 0.263244 | 0.238391 | 0.238391 | 0 | 0.009096 | 0.195021 | 4,097 | 111 | 79 | 36.90991 | 0.918132 | 0.139126 | 0 | 0.157895 | 0 | 0 | 0.885283 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.013158 | 0.013158 | 0.052632 | 0 | 0 | 0 | 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 |
761a47c31f106e152a6a1707c1c4c1bd91ba89d1 | 1,517 | py | Python | tests/test_delete_contact.py | mihushynmaksym/PythonTrainingV2 | 7be62d5578035d39035e60faa4e1fa8f67d77beb | [
"Apache-2.0"
] | null | null | null | tests/test_delete_contact.py | mihushynmaksym/PythonTrainingV2 | 7be62d5578035d39035e60faa4e1fa8f67d77beb | [
"Apache-2.0"
] | null | null | null | tests/test_delete_contact.py | mihushynmaksym/PythonTrainingV2 | 7be62d5578035d39035e60faa4e1fa8f67d77beb | [
"Apache-2.0"
] | null | null | null | from model.contact import Contact
import random
def test_delete_random_contact(app, db):
if len(db.get_contact_list()) == 0: # precondition rule for test
app.contact.create(Contact(firstname='firstname',
middlename='midlename',
lastna... | 45.969697 | 101 | 0.412657 | 115 | 1,517 | 5.252174 | 0.46087 | 0.072848 | 0.059603 | 0.07947 | 0.162252 | 0.082781 | 0 | 0 | 0 | 0 | 0 | 0.011889 | 0.500989 | 1,517 | 32 | 102 | 47.40625 | 0.785997 | 0.017139 | 0 | 0 | 0 | 0 | 0.081934 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 1 | 0.033333 | false | 0 | 0.066667 | 0 | 0.1 | 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 |
761bb14df397ed51b3a3109cabd90d93a1882feb | 1,036 | py | Python | examples/bokeh_interactive.py | matecsaj/chempy | 2c93f185e4547739331193c06d77282206621517 | [
"BSD-2-Clause"
] | null | null | null | examples/bokeh_interactive.py | matecsaj/chempy | 2c93f185e4547739331193c06d77282206621517 | [
"BSD-2-Clause"
] | null | null | null | examples/bokeh_interactive.py | matecsaj/chempy | 2c93f185e4547739331193c06d77282206621517 | [
"BSD-2-Clause"
] | 1 | 2022-03-21T09:01:48.000Z | 2022-03-21T09:01:48.000Z | """
Interactive kinetics app with sliders.
Start by runing:
$ bokeh serve interactive.py
Add --show argument or navigate to:
http://localhost:5006/interactive
"""
from collections import defaultdict
import sys
from chempy import Reaction, ReactionSystem
from chempy.kinetics.rates import MassAction
from chempy.... | 29.6 | 71 | 0.65251 | 143 | 1,036 | 4.545455 | 0.517483 | 0.018462 | 0.027692 | 0.033846 | 0.036923 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025882 | 0.179537 | 1,036 | 34 | 72 | 30.470588 | 0.738824 | 0.156371 | 0 | 0 | 0 | 0 | 0.123557 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.318182 | 0 | 0.409091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
762098c48f4f6dd186357f35b69f216162d90bd9 | 1,408 | py | Python | tests/helpers.py | pombredanne/tri.table | c5de11b08d8b44506452bf19a1a26d5c19926699 | [
"BSD-3-Clause"
] | 32 | 2016-02-08T11:33:09.000Z | 2021-08-31T05:15:22.000Z | tests/helpers.py | pombredanne/tri.table | c5de11b08d8b44506452bf19a1a26d5c19926699 | [
"BSD-3-Clause"
] | 28 | 2016-01-26T09:29:57.000Z | 2020-10-08T06:52:38.000Z | tests/helpers.py | pombredanne/tri.table | c5de11b08d8b44506452bf19a1a26d5c19926699 | [
"BSD-3-Clause"
] | 9 | 2016-01-06T09:29:10.000Z | 2019-09-06T23:31:26.000Z | from __future__ import division
from __future__ import unicode_literals
import re
from bs4 import BeautifulSoup
from django.contrib.auth.models import AnonymousUser
from django.test import RequestFactory
from tri_table import render_table
def reindent(s, before=" ", after=" "):
def reindent_line(line):
... | 34.341463 | 111 | 0.693182 | 177 | 1,408 | 5.327684 | 0.429379 | 0.050901 | 0.033934 | 0.038176 | 0.074231 | 0.074231 | 0.074231 | 0 | 0 | 0 | 0 | 0.002558 | 0.166903 | 1,408 | 40 | 112 | 35.2 | 0.801364 | 0.050426 | 0 | 0 | 0 | 0 | 0.069644 | 0.027252 | 0 | 0 | 0 | 0 | 0.038462 | 1 | 0.153846 | false | 0 | 0.269231 | 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 |
7620c972179db8c905344132dcacead956ddfd24 | 3,117 | py | Python | calliope_app/api/tests/test_models/test_engage.py | NREL/engage | c25bacc1e98f84671ba0c0e53fc98bace090a4d8 | [
"BSD-3-Clause"
] | 3 | 2021-01-25T18:13:00.000Z | 2021-04-30T12:17:42.000Z | calliope_app/api/tests/test_models/test_engage.py | NREL/engage | c25bacc1e98f84671ba0c0e53fc98bace090a4d8 | [
"BSD-3-Clause"
] | 8 | 2020-12-11T22:28:17.000Z | 2022-03-05T02:08:27.000Z | calliope_app/api/tests/test_models/test_engage.py | NREL/engage | c25bacc1e98f84671ba0c0e53fc98bace090a4d8 | [
"BSD-3-Clause"
] | 1 | 2021-09-15T22:15:12.000Z | 2021-09-15T22:15:12.000Z | """
Unit tests for Django app 'api' models - api/models/configuration.
"""
from mock import patch
from django.contrib.auth.models import User
from django.test import TestCase
from django.utils.html import mark_safe
from django.utils.safestring import SafeString
from api.models.engage import Help_Guide, User_Profile
... | 35.827586 | 88 | 0.674687 | 380 | 3,117 | 5.302632 | 0.223684 | 0.062531 | 0.044665 | 0.032754 | 0.546402 | 0.451613 | 0.378164 | 0.343424 | 0.343424 | 0.195534 | 0 | 0.00488 | 0.2111 | 3,117 | 86 | 89 | 36.244186 | 0.814559 | 0.021174 | 0 | 0.323529 | 0 | 0 | 0.170884 | 0.06211 | 0 | 0 | 0 | 0 | 0.191176 | 1 | 0.161765 | false | 0.058824 | 0.088235 | 0 | 0.279412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
76265dd0161bac80ac85cb3c5f72aba47a8da592 | 1,702 | py | Python | Thief/analyzer.py | mbednarski/PUT-AiSD | 48777e04d83a23e27684c0eb46a914e5c1cc0b8a | [
"MIT"
] | null | null | null | Thief/analyzer.py | mbednarski/PUT-AiSD | 48777e04d83a23e27684c0eb46a914e5c1cc0b8a | [
"MIT"
] | null | null | null | Thief/analyzer.py | mbednarski/PUT-AiSD | 48777e04d83a23e27684c0eb46a914e5c1cc0b8a | [
"MIT"
] | null | null | null | _author__ = 'Mateusz Bednarski'
from museum import *
import numpy as np
import time
density = 10
sizes = np.linspace(10, 300, density).tolist()
guard_percentages = np.linspace(0.1, 10, density).tolist()
repeats = 5
visitors_percentage = 5
def measure_stealing_time(victim):
start = time.time()
stolen = museum.stea... | 26.184615 | 88 | 0.663337 | 243 | 1,702 | 4.497942 | 0.358025 | 0.087832 | 0.069533 | 0.034767 | 0.159195 | 0.111619 | 0.062214 | 0 | 0 | 0 | 0 | 0.021834 | 0.192714 | 1,702 | 64 | 89 | 26.59375 | 0.773654 | 0.012338 | 0 | 0.125 | 0 | 0 | 0.07096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
762e0ea5476a6d325def8a9f0395e3d8f40a9e53 | 8,846 | py | Python | kuon_control/src/kuon_control/PanelConfig.py | roadnarrows-robotics/kuon | c4c61ca9b678a31313b93be078a940ea8169f9d1 | [
"MIT"
] | null | null | null | kuon_control/src/kuon_control/PanelConfig.py | roadnarrows-robotics/kuon | c4c61ca9b678a31313b93be078a940ea8169f9d1 | [
"MIT"
] | null | null | null | kuon_control/src/kuon_control/PanelConfig.py | roadnarrows-robotics/kuon | c4c61ca9b678a31313b93be078a940ea8169f9d1 | [
"MIT"
] | null | null | null | ###############################################################################
#
#
# Package: RoadNarrows Robotics Kuon Robotic Mobile Platform ROS Package
#
# Link: https://github.com/roadnarrows-robotics/kuon
#
# ROS Node: kuon_panel
#
# File: PanelConfig.py
#
## \file
##
## $LastChangedDate$
## $Rev$
... | 25.566474 | 89 | 0.585575 | 1,102 | 8,846 | 4.632486 | 0.285844 | 0.040157 | 0.023702 | 0.008227 | 0.121254 | 0.070519 | 0.070519 | 0.048972 | 0.027816 | 0.016846 | 0 | 0.016391 | 0.22756 | 8,846 | 345 | 90 | 25.64058 | 0.730719 | 0.2695 | 0 | 0.213542 | 0 | 0.010417 | 0.114749 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005208 | 0.046875 | null | null | 0.015625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
762edf12cbbfdcdee8de9bb195082d18cfd062f3 | 7,004 | py | Python | util.py | rogerdoles3/DeepSpying | a820897b21839108c394c09add2d3763ae0c8e27 | [
"MIT"
] | null | null | null | util.py | rogerdoles3/DeepSpying | a820897b21839108c394c09add2d3763ae0c8e27 | [
"MIT"
] | null | null | null | util.py | rogerdoles3/DeepSpying | a820897b21839108c394c09add2d3763ae0c8e27 | [
"MIT"
] | null | null | null | #Utility file of functions and imports
#Doles, Nix, Terlecky
#File includes standard imports and defined functions used in multiple project files
#
#
import random
import itertools
import numpy as np
import pandas as pd
import numpy as np
import glob
from sklearn.model_selection import train_test_split
from sklearn.e... | 32.276498 | 116 | 0.612079 | 1,012 | 7,004 | 4.133399 | 0.202569 | 0.026775 | 0.031078 | 0.028927 | 0.658379 | 0.644992 | 0.644992 | 0.644992 | 0.644992 | 0.621085 | 0 | 0.028951 | 0.270131 | 7,004 | 216 | 117 | 32.425926 | 0.789319 | 0.306539 | 0 | 0.578512 | 0 | 0 | 0.009985 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057851 | false | 0 | 0.090909 | 0.008264 | 0.198347 | 0.016529 | 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 |
57ffb4e120f46a5ada239db2618b6365ce140d83 | 578 | py | Python | main.py | mavnt/disk_cache | 30b7a1a793ed9f7194d131a8c549056e58ef538c | [
"MIT"
] | null | null | null | main.py | mavnt/disk_cache | 30b7a1a793ed9f7194d131a8c549056e58ef538c | [
"MIT"
] | null | null | null | main.py | mavnt/disk_cache | 30b7a1a793ed9f7194d131a8c549056e58ef538c | [
"MIT"
] | null | null | null | import time
from disk_cache import disk_cache
# @disk_cache("/dev/shm")
@disk_cache()
def slow_func(n):
import time
time.sleep(2)
return 0
def main():
# this takes ~2s for n=0
start = time.time()
result = slow_func(0)
print(time.time() - start)
# this takes ~2s for n=1
st... | 16.514286 | 60 | 0.608997 | 87 | 578 | 3.850575 | 0.367816 | 0.167164 | 0.116418 | 0.170149 | 0.510448 | 0.355224 | 0.274627 | 0.274627 | 0.274627 | 0.274627 | 0 | 0.023364 | 0.259516 | 578 | 34 | 61 | 17 | 0.759346 | 0.214533 | 0 | 0.526316 | 0 | 0 | 0.017817 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.157895 | 0 | 0.315789 | 0.157895 | 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 |
5200f5450383dfd898b10582f30b13247884dddf | 3,460 | py | Python | taming/data/wikiart.py | ChenDarYen/artist_vqgan | 835f1a339abd974be3f357b7bedae7fa89dc46b1 | [
"MIT"
] | null | null | null | taming/data/wikiart.py | ChenDarYen/artist_vqgan | 835f1a339abd974be3f357b7bedae7fa89dc46b1 | [
"MIT"
] | null | null | null | taming/data/wikiart.py | ChenDarYen/artist_vqgan | 835f1a339abd974be3f357b7bedae7fa89dc46b1 | [
"MIT"
] | null | null | null | import os
import random
import warnings
import numpy as np
from tqdm import tqdm
from PIL import Image, ImageFile
from torch.utils.data import Dataset
from taming.data.base import ImagePaths
ImageFile.LOAD_TRUNCATED_IMAGES = True
Image.MAX_IMAGE_PIXELS = None
def test_images(root, images):
passed_images = list... | 33.921569 | 96 | 0.643642 | 463 | 3,460 | 4.609071 | 0.241901 | 0.039363 | 0.042174 | 0.052484 | 0.391753 | 0.320525 | 0.292877 | 0.244142 | 0.244142 | 0.207591 | 0 | 0.003752 | 0.229769 | 3,460 | 101 | 97 | 34.257426 | 0.796998 | 0 | 0 | 0.093333 | 0 | 0 | 0.075145 | 0.026012 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106667 | false | 0.106667 | 0.106667 | 0.013333 | 0.32 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5204075b30c9aa2abb48458f537040b330864019 | 2,527 | py | Python | web/FlaskApp.py | dorneanu/netgrafio | f83d245492e88b983e29584d78e80977a9250b6b | [
"MIT"
] | 71 | 2015-03-23T22:12:14.000Z | 2022-02-04T02:56:06.000Z | web/FlaskApp.py | nullsecuritynet/netgrafio | f83d245492e88b983e29584d78e80977a9250b6b | [
"MIT"
] | 1 | 2019-05-01T18:37:17.000Z | 2019-05-05T08:15:48.000Z | web/FlaskApp.py | dorneanu/netgrafio | f83d245492e88b983e29584d78e80977a9250b6b | [
"MIT"
] | 16 | 2015-08-06T12:36:48.000Z | 2019-09-13T15:40:25.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: victor
# @Date: 2014-04-22 18:11:07
# @Last Modified by: victor
# @Last Modified time: 2014-05-06
# @Copyright:
#
# This file is part of the netgrafio project.
#
#
# Copyright (c) 2014 Victor Dorneanu <info AAET dornea DOT nu>
#
# Permission is hereb... | 33.693333 | 97 | 0.71666 | 346 | 2,527 | 5.179191 | 0.528902 | 0.049107 | 0.03125 | 0.035714 | 0.03683 | 0.03683 | 0.03683 | 0 | 0 | 0 | 0 | 0.013493 | 0.208152 | 2,527 | 74 | 98 | 34.148649 | 0.882059 | 0.683815 | 0 | 0 | 0 | 0 | 0.034868 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.357143 | 0 | 0.5 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
520a8f80756ed196d13e1b3a43fca9cae16e8015 | 979 | py | Python | docs/streammarker_connected_sensor/streammarker_connected_sensor_reader.py | urlgrey/streammarker-collector | 41a29be7fcba72cdd40360f8228d6a8fd625f4cc | [
"Apache-2.0"
] | null | null | null | docs/streammarker_connected_sensor/streammarker_connected_sensor_reader.py | urlgrey/streammarker-collector | 41a29be7fcba72cdd40360f8228d6a8fd625f4cc | [
"Apache-2.0"
] | null | null | null | docs/streammarker_connected_sensor/streammarker_connected_sensor_reader.py | urlgrey/streammarker-collector | 41a29be7fcba72cdd40360f8228d6a8fd625f4cc | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import os
import httplib
import serial
import re
import json
ser = serial.Serial('/dev/ttyAMA0', 9600)
headers = {"Content-type": "application/json",
"Accept": "application/json"}
if 'STREAMMARKER_API_KEY' in os.environ:
headers["X-API-KEY"] = os.environ['STREAMMARKER_API_KEY']
r_unwa... | 31.580645 | 361 | 0.634321 | 125 | 979 | 4.872 | 0.624 | 0.029557 | 0.059113 | 0.062397 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058896 | 0.167518 | 979 | 31 | 362 | 31.580645 | 0.688344 | 0.026558 | 0 | 0 | 0 | 0 | 0.338235 | 0.07563 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.208333 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
52168baf51f98fbdfdc8ffab9c74f28497f4d87e | 954 | py | Python | precessor_tests/test_erroneous_input.py | valohai/precessor | c8c88c1841cb004c2872cbb15ddbc23ff273f332 | [
"MIT"
] | null | null | null | precessor_tests/test_erroneous_input.py | valohai/precessor | c8c88c1841cb004c2872cbb15ddbc23ff273f332 | [
"MIT"
] | null | null | null | precessor_tests/test_erroneous_input.py | valohai/precessor | c8c88c1841cb004c2872cbb15ddbc23ff273f332 | [
"MIT"
] | null | null | null | from urllib.parse import parse_qsl
import pytest
from precessor.excs import InvalidParameter, InvalidOperation
from precessor.ops import parse_operations
from precessor.params import parse_params
def test_erroneous_format():
with pytest.raises(InvalidParameter):
parse_params(parse_qsl('format=bmp'))
d... | 28.909091 | 73 | 0.751572 | 123 | 954 | 5.650407 | 0.341463 | 0.069065 | 0.115108 | 0.13813 | 0.410072 | 0.410072 | 0.410072 | 0.410072 | 0.336691 | 0.169784 | 0 | 0.007426 | 0.15304 | 954 | 32 | 74 | 29.8125 | 0.852723 | 0 | 0 | 0.227273 | 0 | 0 | 0.1174 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 1 | 0.181818 | true | 0 | 0.227273 | 0 | 0.409091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5219e2ed2d2059307bd41b4029f372bc998bcbea | 234 | py | Python | Vizualization.py | TheCopyNinjaDev/Orbits | a7126132c27f398742c32589b7e819850f52e904 | [
"Apache-2.0"
] | null | null | null | Vizualization.py | TheCopyNinjaDev/Orbits | a7126132c27f398742c32589b7e819850f52e904 | [
"Apache-2.0"
] | null | null | null | Vizualization.py | TheCopyNinjaDev/Orbits | a7126132c27f398742c32589b7e819850f52e904 | [
"Apache-2.0"
] | null | null | null | import matplotlib.pyplot as plt
import orbits
def show_trajectory(v, r):
e, p = orbits.get_orbit_parameters(v, r)
x, y = orbits.get_trajectory(p, e)
plt.title(orbits.get_orbit_type(e))
plt.plot(x, y)
plt.show()
| 19.5 | 44 | 0.675214 | 40 | 234 | 3.8 | 0.525 | 0.177632 | 0.184211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196581 | 234 | 11 | 45 | 21.272727 | 0.808511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
522e04253f8a84da4de3755605cbf2b38ab08a42 | 11,162 | py | Python | src/main/python/lib/queuesystem/sge.py | emilybache/texttest-runner | 2d5c42b8d37699a2cbcb8f19af7c271d6ad1024a | [
"MIT"
] | null | null | null | src/main/python/lib/queuesystem/sge.py | emilybache/texttest-runner | 2d5c42b8d37699a2cbcb8f19af7c271d6ad1024a | [
"MIT"
] | null | null | null | src/main/python/lib/queuesystem/sge.py | emilybache/texttest-runner | 2d5c42b8d37699a2cbcb8f19af7c271d6ad1024a | [
"MIT"
] | null | null | null |
import os, string, subprocess
import gridqueuesystem
from plugins import gethostname, log, TextTestError
from time import sleep
# Used by master process for submitting, deleting and monitoring slave jobs
class QueueSystem(gridqueuesystem.QueueSystem):
allStatuses = { "qw" : ("PEND", "Pending"),
... | 44.293651 | 167 | 0.573553 | 1,164 | 11,162 | 5.482818 | 0.313574 | 0.017549 | 0.008461 | 0.02037 | 0.121592 | 0.094328 | 0.081166 | 0.076778 | 0.063616 | 0.063616 | 0 | 0.007039 | 0.312668 | 11,162 | 251 | 168 | 44.47012 | 0.824818 | 0.077495 | 0 | 0.122066 | 0 | 0 | 0.120086 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.018779 | 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 |
523707ec39d7d42c4c96b8cf1a43542acefa7785 | 3,246 | py | Python | sdk/python/pulumi_openstack/compute/floating_i_p.py | Frassle/pulumi-openstack | 6fc26edd7c42e7c3d65a01cf9384148cc56466e4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_openstack/compute/floating_i_p.py | Frassle/pulumi-openstack | 6fc26edd7c42e7c3d65a01cf9384148cc56466e4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_openstack/compute/floating_i_p.py | Frassle/pulumi-openstack | 6fc26edd7c42e7c3d65a01cf9384148cc56466e4 | [
"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 pulumi
import pulumi.runtime
class FloatingIP(pulumi.CustomResource):
"""
Manages a V2 floating IP resource within Open... | 39.585366 | 96 | 0.639248 | 392 | 3,246 | 5.053571 | 0.339286 | 0.040384 | 0.02524 | 0.04846 | 0.092882 | 0.033317 | 0.033317 | 0 | 0 | 0 | 0 | 0.002152 | 0.28435 | 3,246 | 81 | 97 | 40.074074 | 0.850624 | 0.205484 | 0 | 0 | 1 | 0 | 0.205255 | 0.021346 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.125 | 0 | 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 |
5242a7407491eb653a1295c7c8ffa3c7978a67e4 | 7,460 | py | Python | tests/test_handlers.py | mobidevke/py-fineract | 712b0c20686accd7d7e0a2356ccaf59c5fe4f7dd | [
"Apache-2.0"
] | 7 | 2019-03-11T16:17:33.000Z | 2020-10-22T21:57:51.000Z | tests/test_handlers.py | mobidevke/py-fineract | 712b0c20686accd7d7e0a2356ccaf59c5fe4f7dd | [
"Apache-2.0"
] | 3 | 2019-11-05T20:22:16.000Z | 2019-12-11T17:09:04.000Z | tests/test_handlers.py | mobidevke/py-fineract | 712b0c20686accd7d7e0a2356ccaf59c5fe4f7dd | [
"Apache-2.0"
] | 2 | 2020-11-19T16:00:36.000Z | 2021-11-19T09:36:13.000Z | import pytest
import requests
from requests import Response, Request
from fineract import BadArgsException, ResourceNotFoundException, BadCredentialsException, FineractException
from fineract.handlers import RequestHandler
class ExampleResponse(Response):
def __init__(self, code):
super(ExampleResponse, ... | 47.515924 | 123 | 0.706836 | 816 | 7,460 | 6.188725 | 0.16299 | 0.127525 | 0.110891 | 0.074257 | 0.729703 | 0.718614 | 0.610495 | 0.574851 | 0.56396 | 0.544554 | 0 | 0.013764 | 0.162466 | 7,460 | 157 | 124 | 47.515924 | 0.794494 | 0 | 0 | 0.317073 | 0 | 0 | 0.260689 | 0.066613 | 0 | 0 | 0 | 0 | 0.056911 | 1 | 0.130081 | false | 0 | 0.04065 | 0.00813 | 0.186992 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5243a57b0cf5c65e8c47e0046780e24530e8c66d | 1,510 | py | Python | python/hackerrank/codeverification/reformate_date.py | r3-3ngin33r/dev | 095f6c4beeaa802b61fd460bd47163492f9b9109 | [
"Unlicense"
] | null | null | null | python/hackerrank/codeverification/reformate_date.py | r3-3ngin33r/dev | 095f6c4beeaa802b61fd460bd47163492f9b9109 | [
"Unlicense"
] | null | null | null | python/hackerrank/codeverification/reformate_date.py | r3-3ngin33r/dev | 095f6c4beeaa802b61fd460bd47163492f9b9109 | [
"Unlicense"
] | null | null | null | #!/bin/python3
import math
import os
import random
import re
import sys
#@author: r33 - r33ngin33r@gmail.com
#@timestamp_creation: 02/18/2019 - 18:44 GMT-3
#
# Complete the 'reformatDate' function below.
#
# The function is expected to return a STRING_ARRAY.
# The function accepts STRING_ARRAY dates as parameter.
#... | 25.59322 | 155 | 0.607947 | 215 | 1,510 | 4.144186 | 0.55814 | 0.071829 | 0.050505 | 0.042649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043808 | 0.213907 | 1,510 | 58 | 156 | 26.034483 | 0.706824 | 0.25298 | 0 | 0 | 0 | 0.03125 | 0.138365 | 0.036837 | 0 | 0 | 0 | 0.017241 | 0 | 1 | 0.03125 | false | 0 | 0.15625 | 0 | 0.21875 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
524f06437cdd20c6ca46506cca535abd539450c6 | 4,051 | py | Python | decksdb/decksdb.py | smlbiobot/SML-Cogs-archive | 8bbc959fd13f1006dd33ff696b02408cc4f47869 | [
"MIT"
] | null | null | null | decksdb/decksdb.py | smlbiobot/SML-Cogs-archive | 8bbc959fd13f1006dd33ff696b02408cc4f47869 | [
"MIT"
] | null | null | null | decksdb/decksdb.py | smlbiobot/SML-Cogs-archive | 8bbc959fd13f1006dd33ff696b02408cc4f47869 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
The MIT License (MIT)
Copyright (c) 2017 SML
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... | 30.231343 | 83 | 0.671686 | 558 | 4,051 | 4.801075 | 0.387097 | 0.032848 | 0.026876 | 0.015677 | 0.116461 | 0.116461 | 0.116461 | 0.089586 | 0.066443 | 0.040314 | 0 | 0.004149 | 0.226611 | 4,051 | 133 | 84 | 30.458647 | 0.850942 | 0.303135 | 0 | 0.119403 | 0 | 0 | 0.074866 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074627 | false | 0.059701 | 0.134328 | 0 | 0.268657 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
525314774a6eb1d7e8d872e7702a24467fcadf34 | 4,280 | py | Python | bin/png2arc.py | OSToastBach/proto-arc | 85c85981176a2c82a63b40380efb21bcd1145f88 | [
"MIT"
] | 3 | 2020-01-10T13:45:26.000Z | 2021-04-07T18:34:29.000Z | bin/png2arc.py | OSToastBach/proto-arc | 85c85981176a2c82a63b40380efb21bcd1145f88 | [
"MIT"
] | null | null | null | bin/png2arc.py | OSToastBach/proto-arc | 85c85981176a2c82a63b40380efb21bcd1145f88 | [
"MIT"
] | 1 | 2021-08-11T06:29:30.000Z | 2021-08-11T06:29:30.000Z | #!/usr/bin/python
import png,argparse,sys,math,arc
##########################################################################
##########################################################################
def save_file(data,path):
if path is not None:
with open(path,'wb') as f:
f.write(''.join([ch... | 35.371901 | 106 | 0.502103 | 524 | 4,280 | 3.956107 | 0.28626 | 0.011577 | 0.031356 | 0.032803 | 0.242644 | 0.137 | 0.137 | 0.082972 | 0.082972 | 0.035697 | 0 | 0.021025 | 0.210981 | 4,280 | 120 | 107 | 35.666667 | 0.592834 | 0.047897 | 0 | 0.128205 | 0 | 0 | 0.117753 | 0 | 0 | 0 | 0.002403 | 0 | 0.064103 | 0 | null | null | 0 | 0.012821 | null | null | 0.089744 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
525a8cb424a3a11d9fea5047ac9c49155403ec86 | 1,199 | py | Python | FlaskTaskr/db_migrate.py | nipunsadvilkar/web-dev-deliberate-practice | 7074f646cee3b3729ab80d4a51072e4df23aedf7 | [
"MIT"
] | null | null | null | FlaskTaskr/db_migrate.py | nipunsadvilkar/web-dev-deliberate-practice | 7074f646cee3b3729ab80d4a51072e4df23aedf7 | [
"MIT"
] | null | null | null | FlaskTaskr/db_migrate.py | nipunsadvilkar/web-dev-deliberate-practice | 7074f646cee3b3729ab80d4a51072e4df23aedf7 | [
"MIT"
] | null | null | null | from views import db
from _config import DATABASE_PATH
import sqlite3
# from datetime import datetime
# migration of tasks table
# with sqlite3.connect(DATABASE_PATH) as conn:
# c = conn.cursor()
# c.execute('ALTER TABLE tasks RENAME TO old_tasks')
# db.create_all()
# c.execute("""SELECT name, due... | 26.644444 | 77 | 0.609675 | 165 | 1,199 | 4.327273 | 0.351515 | 0.067227 | 0.044818 | 0.064426 | 0.593838 | 0.529412 | 0.529412 | 0.364146 | 0.364146 | 0.196078 | 0 | 0.012128 | 0.243536 | 1,199 | 44 | 78 | 27.25 | 0.775083 | 0.517932 | 0 | 0 | 0 | 0 | 0.388988 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.153846 | 0.230769 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
525c4f217751d67f7d2046cf2b3d8a4c325103c2 | 721 | py | Python | tests/test_locales.py | joeblodgett/Snowfakery | 31d026efb55fb840915da046d9e997b3c35de640 | [
"BSD-3-Clause"
] | null | null | null | tests/test_locales.py | joeblodgett/Snowfakery | 31d026efb55fb840915da046d9e997b3c35de640 | [
"BSD-3-Clause"
] | null | null | null | tests/test_locales.py | joeblodgett/Snowfakery | 31d026efb55fb840915da046d9e997b3c35de640 | [
"BSD-3-Clause"
] | null | null | null | from unittest import mock
from io import StringIO
from snowfakery.data_generator import generate
class TestLocales:
def test_locales(self, generated_rows):
yaml = """
- var: snowfakery_locale
value: no_NO
- object: first
fields:
name:
fake: na... | 25.75 | 72 | 0.556172 | 83 | 721 | 4.674699 | 0.578313 | 0.06701 | 0.097938 | 0.123711 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006479 | 0.357836 | 721 | 27 | 73 | 26.703704 | 0.831533 | 0 | 0 | 0.347826 | 1 | 0 | 0.47018 | 0.051318 | 0 | 0 | 0 | 0 | 0.043478 | 1 | 0.043478 | false | 0 | 0.130435 | 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 |
525cbad9ed3cd193ce9da97b6d5b09b14354c41f | 1,078 | py | Python | tests/pricehist/test_exceptions.py | chrisberkhout/pricehist | a54da85a6fae15e2f771e8612aed089407ec5c22 | [
"MIT"
] | 4 | 2021-09-15T03:23:10.000Z | 2022-02-08T23:31:10.000Z | tests/pricehist/test_exceptions.py | chrisberkhout/pricehist | a54da85a6fae15e2f771e8612aed089407ec5c22 | [
"MIT"
] | null | null | null | tests/pricehist/test_exceptions.py | chrisberkhout/pricehist | a54da85a6fae15e2f771e8612aed089407ec5c22 | [
"MIT"
] | null | null | null | import logging
import pytest
from pricehist import exceptions
def test_handler_logs_debug_information(caplog):
with caplog.at_level(logging.DEBUG):
try:
with exceptions.handler():
raise exceptions.RequestError("Some message")
except SystemExit:
pass
a... | 25.069767 | 69 | 0.642857 | 119 | 1,078 | 5.705882 | 0.386555 | 0.064801 | 0.061856 | 0.114875 | 0.466863 | 0.466863 | 0.466863 | 0.346097 | 0.259205 | 0.259205 | 0 | 0.005115 | 0.274583 | 1,078 | 42 | 70 | 25.666667 | 0.863171 | 0 | 0 | 0.387097 | 0 | 0 | 0.076067 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 1 | 0.096774 | false | 0.064516 | 0.096774 | 0 | 0.193548 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
52606b5ad8ac3ed25cdc12fa41aaafe7c2209d62 | 1,909 | py | Python | rn.py | kl0ck/meuspila | d44b05086d196189518d291a0c4e4a538ae5eaf4 | [
"BSD-3-Clause"
] | null | null | null | rn.py | kl0ck/meuspila | d44b05086d196189518d291a0c4e4a538ae5eaf4 | [
"BSD-3-Clause"
] | 3 | 2021-03-26T05:42:08.000Z | 2021-03-26T23:07:47.000Z | rn.py | kl0ck/meuspila | d44b05086d196189518d291a0c4e4a538ae5eaf4 | [
"BSD-3-Clause"
] | null | null | null | from database import Database
from collections import defaultdict
import converters
class RN:
db = None
def __init__(self, operacoes):
self.db = Database()
for o in operacoes:
self.db.addOperacao(o)
# Preço médio de compra ou de venda de um ativo.
def precoM... | 26.887324 | 74 | 0.563122 | 195 | 1,909 | 5.492308 | 0.425641 | 0.060691 | 0.022409 | 0.042017 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004075 | 0.357255 | 1,909 | 70 | 75 | 27.271429 | 0.868786 | 0.193819 | 0 | 0.097561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0 | 1 | 0.170732 | false | 0.04878 | 0.073171 | 0.04878 | 0.414634 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
526420ea15a0b9e3df877a5581169c96776f5d5e | 2,271 | py | Python | zcalc/stdlib/math.py | blackchip-org/zcalc | dbfd09938c5cad7b0adb5004ad3858f1edf560bf | [
"MIT"
] | null | null | null | zcalc/stdlib/math.py | blackchip-org/zcalc | dbfd09938c5cad7b0adb5004ad3858f1edf560bf | [
"MIT"
] | null | null | null | zcalc/stdlib/math.py | blackchip-org/zcalc | dbfd09938c5cad7b0adb5004ad3858f1edf560bf | [
"MIT"
] | null | null | null | import decimal
import operator
from zcalc.lib import CalcError, op, reduce
round_rules_parse = {
'ceiling': decimal.ROUND_CEILING,
'down': decimal.ROUND_DOWN,
'floor': decimal.ROUND_FLOOR,
'half-down': decimal.ROUND_HALF_DOWN,
'half-even': decimal.ROUND_HALF_EVEN,
'half-up': decimal.ROUND_HALF_... | 21.224299 | 66 | 0.620432 | 347 | 2,271 | 3.930836 | 0.244957 | 0.041056 | 0.05132 | 0.052786 | 0.095308 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00932 | 0.19683 | 2,271 | 106 | 67 | 21.424528 | 0.738487 | 0 | 0 | 0.116279 | 0 | 0 | 0.087225 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209302 | false | 0 | 0.034884 | 0 | 0.255814 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5265065aedcb864b34ab9bdf76a6c791e55c2329 | 3,656 | py | Python | troll_the_phishers.py | Grog4r/TrollThePhishers | 9fe41c88efa449b3636ea03993c3718e0c723bf5 | [
"MIT"
] | null | null | null | troll_the_phishers.py | Grog4r/TrollThePhishers | 9fe41c88efa449b3636ea03993c3718e0c723bf5 | [
"MIT"
] | null | null | null | troll_the_phishers.py | Grog4r/TrollThePhishers | 9fe41c88efa449b3636ea03993c3718e0c723bf5 | [
"MIT"
] | null | null | null | import requests
import argparse
import random
class bc:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKCYAN = '\033[96m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'
email_providers = ["gmail.com", "outlo... | 23.286624 | 165 | 0.586707 | 429 | 3,656 | 4.904429 | 0.342657 | 0.074144 | 0.03327 | 0.042776 | 0.295627 | 0.216255 | 0.163498 | 0.135932 | 0.135932 | 0.106464 | 0 | 0.033462 | 0.223468 | 3,656 | 157 | 166 | 23.286624 | 0.707644 | 0 | 0 | 0.117647 | 0 | 0.044118 | 0.25906 | 0.064836 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0.205882 | 0.044118 | 0 | 0.25 | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
526ea2ce54163d9170f17f41da461f2377dfbeca | 519 | py | Python | spots/migrations/0010_alter_musical_album.py | Gimex10/Tunes | 8ad47f21d7c0284bb90d046aeb2f27bf7af0ab82 | [
"MIT"
] | null | null | null | spots/migrations/0010_alter_musical_album.py | Gimex10/Tunes | 8ad47f21d7c0284bb90d046aeb2f27bf7af0ab82 | [
"MIT"
] | null | null | null | spots/migrations/0010_alter_musical_album.py | Gimex10/Tunes | 8ad47f21d7c0284bb90d046aeb2f27bf7af0ab82 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.1 on 2022-01-09 06:21
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('spots', '0009_musical_audio_file_musical_cover_image_and_more'),
]
operations = [
migrations.AlterField(
... | 25.95 | 123 | 0.660886 | 64 | 519 | 5.1875 | 0.671875 | 0.072289 | 0.084337 | 0.13253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047146 | 0.223507 | 519 | 19 | 124 | 27.315789 | 0.776675 | 0.086705 | 0 | 0 | 1 | 0 | 0.169492 | 0.110169 | 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 |
5275f55ee4a7f7479609d9c57c0ba5fb98e0405a | 4,255 | py | Python | Segmentation_UGSCNN/UG-SCNN/regression/model.py | Abdulah-Fawaz/Benchmarking-Surface-DL | 9693379f26d57f9aabf28b973f40a9f6f627d26f | [
"MIT"
] | 2 | 2021-12-04T07:04:56.000Z | 2021-12-13T16:28:50.000Z | Segmentation_UGSCNN/UG-SCNN/regression/model.py | Abdulah-Fawaz/Benchmarking-Surface-DL | 9693379f26d57f9aabf28b973f40a9f6f627d26f | [
"MIT"
] | 1 | 2021-12-21T09:36:11.000Z | 2022-01-25T10:26:43.000Z | Segmentation_UGSCNN/UG-SCNN/regression/model.py | Abdulah-Fawaz/Benchmarking-Surface-DL | 9693379f26d57f9aabf28b973f40a9f6f627d26f | [
"MIT"
] | 1 | 2022-02-27T17:38:19.000Z | 2022-02-27T17:38:19.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Jan 14 22:55:34 2021
@author: logan
"""
import torch
import torch.nn as nn
import torch.nn.functional as F
import sys; sys.path.append("../../meshcnn")
from meshcnn.ops import MeshConv, DownSamp, ResBlock
import os
class DownSamp(nn.Module):
def... | 35.165289 | 100 | 0.6047 | 635 | 4,255 | 3.859843 | 0.171654 | 0.089759 | 0.022032 | 0.065279 | 0.68829 | 0.640147 | 0.628315 | 0.616483 | 0.616483 | 0.602203 | 0 | 0.033546 | 0.264395 | 4,255 | 121 | 101 | 35.165289 | 0.749521 | 0.038308 | 0 | 0.51087 | 0 | 0 | 0.014454 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076087 | false | 0 | 0.065217 | 0 | 0.217391 | 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 |
52790ef0328bb404acc6c728908c7bde62cf15c6 | 2,143 | py | Python | api/views.py | bcunhasa/nutriodonto | 3ff20377bc85bc4960619f63688b7732e6eebba9 | [
"CC0-1.0"
] | null | null | null | api/views.py | bcunhasa/nutriodonto | 3ff20377bc85bc4960619f63688b7732e6eebba9 | [
"CC0-1.0"
] | null | null | null | api/views.py | bcunhasa/nutriodonto | 3ff20377bc85bc4960619f63688b7732e6eebba9 | [
"CC0-1.0"
] | null | null | null | from rest_framework import generics, permissions, status
from rest_framework.authtoken.views import ObtainAuthToken
from rest_framework.authtoken.models import Token
from rest_framework.response import Response
from api.serializers import *
from administracao.models import *
from gerencia.models import *
class Clien... | 34.564516 | 95 | 0.735884 | 216 | 2,143 | 7.222222 | 0.467593 | 0.054487 | 0.089744 | 0.137821 | 0.273077 | 0.207692 | 0.207692 | 0.207692 | 0.207692 | 0.207692 | 0 | 0.001704 | 0.178255 | 2,143 | 61 | 96 | 35.131148 | 0.884157 | 0.141391 | 0 | 0.282051 | 0 | 0 | 0.011062 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.179487 | 0 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
527f48ce9074bac6a8637d2c717d6c9975f3e132 | 335 | py | Python | tests/test_registry.py | furious-luke/polecat | 7be5110f76dc42b15c922c1bb7d49220e916246d | [
"MIT"
] | 4 | 2019-08-10T12:56:12.000Z | 2020-01-21T09:51:20.000Z | tests/test_registry.py | furious-luke/polecat | 7be5110f76dc42b15c922c1bb7d49220e916246d | [
"MIT"
] | 71 | 2019-04-09T05:39:21.000Z | 2020-05-16T23:09:24.000Z | tests/test_registry.py | furious-luke/polecat | 7be5110f76dc42b15c922c1bb7d49220e916246d | [
"MIT"
] | null | null | null | from polecat.core.context import active_context
from polecat.core.registry import Registry
def test_registry_and_context():
a_registry = Registry('a_registry')
b_registry = Registry('b_registry')
ctx = active_context()
assert ctx.registries.a_registry == a_registry
assert ctx.registries.b_registry... | 30.454545 | 50 | 0.770149 | 45 | 335 | 5.444444 | 0.333333 | 0.146939 | 0.208163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146269 | 335 | 10 | 51 | 33.5 | 0.856643 | 0 | 0 | 0 | 0 | 0 | 0.059701 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
527feb6537e75ef334f6a6e859758cf455710f28 | 876 | py | Python | pandas/tests/series/test_analytics.py | dimithras/pandas | d321be6e2a43270625abf671d9e59f16529c4b48 | [
"BSD-3-Clause"
] | 1 | 2021-09-17T14:27:25.000Z | 2021-09-17T14:27:25.000Z | pandas/tests/series/test_analytics.py | BhavarthShah/pandas | efb068f25b911ff3009d5692eb831df35bb042e5 | [
"BSD-3-Clause"
] | null | null | null | pandas/tests/series/test_analytics.py | BhavarthShah/pandas | efb068f25b911ff3009d5692eb831df35bb042e5 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
import pandas as pd
from pandas import Series
class TestSeriesAnalytics:
def test_ptp(self):
# GH21614
N = 1000
arr = np.random.randn(N)
ser = Series(arr)
assert np.ptp(ser) == np.ptp(arr)
def test_is_monotonic(self):
s = Series(np.random.r... | 28.258065 | 57 | 0.634703 | 127 | 876 | 4.251969 | 0.338583 | 0.183333 | 0.177778 | 0.233333 | 0.461111 | 0.366667 | 0.366667 | 0.240741 | 0.240741 | 0.240741 | 0 | 0.056782 | 0.276256 | 876 | 30 | 58 | 29.2 | 0.794953 | 0.007991 | 0 | 0.26087 | 0 | 0 | 0.009227 | 0 | 0 | 0 | 0 | 0 | 0.391304 | 1 | 0.086957 | false | 0 | 0.130435 | 0 | 0.26087 | 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 |
52820e720443fa873b6522a78390e69ffc696e46 | 2,018 | py | Python | server/routes/like.py | nondanee/idol-dev | 1214618125f1ed55437c092991e76bf82300e1e7 | [
"MIT"
] | 4 | 2018-08-27T15:56:48.000Z | 2020-09-08T15:10:09.000Z | server/routes/like.py | nondanee/idol-dev | 1214618125f1ed55437c092991e76bf82300e1e7 | [
"MIT"
] | null | null | null | server/routes/like.py | nondanee/idol-dev | 1214618125f1ed55437c092991e76bf82300e1e7 | [
"MIT"
] | null | null | null | import asyncio
import json
from aiohttp import web
from aiohttp_session import get_session
@asyncio.coroutine
def create(request):
session = yield from get_session(request)
parameters = request.rel_url.query
if 'uid' not in session:
return web.HTTPUnauthorized()
else:
uid = session['u... | 25.544304 | 57 | 0.558474 | 220 | 2,018 | 5.095455 | 0.272727 | 0.104371 | 0.102587 | 0.053524 | 0.633363 | 0.633363 | 0.633363 | 0.601249 | 0.5281 | 0.5281 | 0 | 0.004461 | 0.333499 | 2,018 | 79 | 58 | 25.544304 | 0.828996 | 0 | 0 | 0.725806 | 0 | 0 | 0.086181 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.064516 | 0 | 0.258065 | 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 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
52874d5cf419b3d7969f8238f89cbcf49ee1952a | 489 | py | Python | Python/links.py | Clivern/Thanos | 2fae1d25a07fcc6d140f28059463a65751da8c33 | [
"MIT"
] | null | null | null | Python/links.py | Clivern/Thanos | 2fae1d25a07fcc6d140f28059463a65751da8c33 | [
"MIT"
] | 1 | 2019-08-16T14:48:47.000Z | 2019-08-25T13:07:23.000Z | Python/links.py | Clivern/Thanos | 2fae1d25a07fcc6d140f28059463a65751da8c33 | [
"MIT"
] | null | null | null | """
https://github.com/alexhagiopol/cracking-the-coding-interview
http://jelices.blogspot.com/
https://www.youtube.com/watch?v=bum_19loj9A&list=PLBZBJbE_rGRV8D7XZ08LK6z-4zPoWzu5H
https://www.youtube.com/channel/UCOf7UPMHBjAavgD0Qw5q5ww/videos
https://github.com/TheAlgorithms/Python
https://codesays.com/
https://github.... | 28.764706 | 83 | 0.775051 | 63 | 489 | 5.984127 | 0.634921 | 0.084881 | 0.111406 | 0.095491 | 0.148541 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033898 | 0.034765 | 489 | 16 | 84 | 30.5625 | 0.764831 | 0.685072 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5287e5bf9b716ece49d16eb223f16d6459ed84d7 | 1,392 | gyp | Python | node_modules/compiled_modules/64/node_modules/node-stringprep/binding.gyp | LaPingvino/rizzoma | 25dd819828fa4cf9e8477f1219ed125ea9e31c6a | [
"Apache-2.0"
] | 88 | 2015-01-14T04:34:04.000Z | 2022-03-12T20:21:08.000Z | node_modules/compiled_modules/64/node_modules/node-stringprep/binding.gyp | robintibor/rizzoma | c6bc147ec8c3946cdab51b1321bcdd5487b78586 | [
"Apache-2.0"
] | 17 | 2015-05-16T09:44:07.000Z | 2021-09-18T22:36:21.000Z | node_modules/compiled_modules/64/node_modules/node-stringprep/binding.gyp | robintibor/rizzoma | c6bc147ec8c3946cdab51b1321bcdd5487b78586 | [
"Apache-2.0"
] | 19 | 2015-03-06T12:26:25.000Z | 2021-06-11T20:35:25.000Z | {
'targets': [
{
'target_name': 'node_stringprep',
'cflags_cc!': [ '-fno-exceptions', '-fmax-errors=0' ],
'include_dirs': [
'<!(node -e "require(\'nan\')")'
],
'conditions': [
['OS=="win"', {
'conditions': [
['"<!@(cmd /C where /Q icu-config || e... | 30.26087 | 92 | 0.347701 | 95 | 1,392 | 4.989474 | 0.484211 | 0.113924 | 0.07173 | 0.097046 | 0.453587 | 0.379747 | 0.379747 | 0.202532 | 0.202532 | 0.202532 | 0 | 0.002614 | 0.450431 | 1,392 | 45 | 93 | 30.933333 | 0.616993 | 0.006466 | 0 | 0.355556 | 0 | 0 | 0.430847 | 0.018103 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5288fb1a82fbe1d199af38d51e52208ac46ad7de | 379 | py | Python | myproject/users/urls.py | vikas006/mydjangoproject | df37c2e75d30a53a9d29dc248c4f7348da267bbb | [
"MIT"
] | null | null | null | myproject/users/urls.py | vikas006/mydjangoproject | df37c2e75d30a53a9d29dc248c4f7348da267bbb | [
"MIT"
] | null | null | null | myproject/users/urls.py | vikas006/mydjangoproject | df37c2e75d30a53a9d29dc248c4f7348da267bbb | [
"MIT"
] | null | null | null | from django.urls import path, include
from rest_framework.routers import DefaultRouter
from myproject.users.api.views import UserViewSet
from myproject.users.views import (
user_detail_view,
user_redirect_view,
user_update_view)
app_name = "users"
router = DefaultRouter()
router.register('users', UserView... | 23.6875 | 49 | 0.76781 | 47 | 379 | 6.021277 | 0.531915 | 0.077739 | 0.127208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137203 | 379 | 15 | 50 | 25.266667 | 0.865443 | 0 | 0 | 0 | 0 | 0 | 0.026385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
529510141a36114f935f9d6ef2a65d2cd0e3c5e8 | 4,924 | py | Python | JIL-TO-EXCEL.py | harshit740/JIL-To-Excel | 9490821612fd59797c0190d54e538006f2a10194 | [
"BSD-3-Clause"
] | null | null | null | JIL-TO-EXCEL.py | harshit740/JIL-To-Excel | 9490821612fd59797c0190d54e538006f2a10194 | [
"BSD-3-Clause"
] | null | null | null | JIL-TO-EXCEL.py | harshit740/JIL-To-Excel | 9490821612fd59797c0190d54e538006f2a10194 | [
"BSD-3-Clause"
] | null | null | null | """/**
* @author [Harshit Singh]
* @Github [https://github.com/harshit740]
* @create date 2021-03-03 12:39:36
* @modify date 2021-03-03 12:39:36
* @desc [Converting Autosys Jil Dump to Excel Using Openpyxl]
*/"""
import os
import sys
from openpyxl import Workbook, load_workbook
import re
print("Ji... | 49.24 | 1,230 | 0.640739 | 634 | 4,924 | 4.741325 | 0.33123 | 0.023287 | 0.007984 | 0.025948 | 0.12841 | 0.096474 | 0.081836 | 0.06986 | 0.06986 | 0.06986 | 0 | 0.014011 | 0.188262 | 4,924 | 99 | 1,231 | 49.737374 | 0.738054 | 0.167141 | 0 | 0.236111 | 0 | 0.013889 | 0.386663 | 0.031191 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bfe3735e18f448001e3297a11759d44bd968b0a2 | 6,805 | py | Python | aiforce/annotation/multi_category_adapter.py | AI-Force/aiforce | a64e1d8ea1a6c822cd9742f44371d5402b5e6435 | [
"Apache-2.0"
] | 1 | 2021-06-24T04:04:24.000Z | 2021-06-24T04:04:24.000Z | aiforce/annotation/multi_category_adapter.py | AI-Force/aiforce | a64e1d8ea1a6c822cd9742f44371d5402b5e6435 | [
"Apache-2.0"
] | null | null | null | aiforce/annotation/multi_category_adapter.py | AI-Force/aiforce | a64e1d8ea1a6c822cd9742f44371d5402b5e6435 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: annotation-multi_category_adapter.ipynb (unless otherwise specified).
__all__ = ['DEFAULT_ANNOTATIONS_FILE', 'CSV_FIELDNAMES', 'logger', 'MultiCategoryAnnotationAdapter']
# Cell
import csv
import shutil
import logging
from os.path import join, basename, isfile, splitext
fr... | 42.53125 | 114 | 0.652314 | 750 | 6,805 | 5.693333 | 0.2 | 0.105386 | 0.066745 | 0.021546 | 0.278454 | 0.229742 | 0.179391 | 0.165808 | 0.165808 | 0.165808 | 0 | 0.000198 | 0.258486 | 6,805 | 159 | 115 | 42.798742 | 0.846017 | 0.160029 | 0 | 0.177083 | 1 | 0 | 0.109409 | 0.013676 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052083 | false | 0 | 0.072917 | 0 | 0.1875 | 0 | 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 |
bff990d15a70ab4b5522719708c3e911d0806896 | 342 | py | Python | seleniumapis/setup.py | rikonor/vanguard-api | 5462b2327cacad68bedb945dc323d534ebbdfeee | [
"MIT"
] | 61 | 2016-04-19T00:14:37.000Z | 2022-03-14T03:49:05.000Z | seleniumapis/setup.py | swordfish6975/vanguard-api | 46452e1ffbe175fa82c41f87d9a299be95a2008b | [
"MIT"
] | 4 | 2017-07-10T01:30:33.000Z | 2018-08-07T05:07:54.000Z | seleniumapis/setup.py | swordfish6975/vanguard-api | 46452e1ffbe175fa82c41f87d9a299be95a2008b | [
"MIT"
] | 17 | 2017-07-10T23:26:27.000Z | 2022-02-25T01:46:21.000Z | from setuptools import setup
setup(name='seleniumapis',
version='0.1',
description='Query Vanguard and other sites using the Selenium API',
author='Or Rikon',
author_email='rikonor@gmail.com',
packages=['vanguard'],
install_requires=[
'selenium',
'nose'
],
... | 24.428571 | 74 | 0.608187 | 37 | 342 | 5.540541 | 0.891892 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008032 | 0.27193 | 342 | 13 | 75 | 26.307692 | 0.815261 | 0 | 0 | 0 | 0 | 0 | 0.330409 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bfff1e650fc327fb02cdc8255170140a8a70be1d | 236 | py | Python | docs/tutorial_data-6.py | ankitshah009/dcase_util | 738571ce78faf60b0fdfa1d59fd42f42c8944f3d | [
"MIT"
] | 122 | 2017-11-10T16:51:04.000Z | 2022-03-28T07:04:34.000Z | docs/tutorial_data-6.py | gpinyero/dcase_util | 298b2db13a2ffce7791f4de9d374616793564816 | [
"MIT"
] | 18 | 2018-03-29T01:14:35.000Z | 2022-03-30T11:21:17.000Z | docs/tutorial_data-6.py | gpinyero/dcase_util | 298b2db13a2ffce7791f4de9d374616793564816 | [
"MIT"
] | 39 | 2017-11-16T14:34:26.000Z | 2022-03-27T06:27:52.000Z | import dcase_util
data = dcase_util.utils.Example.feature_container()
data_aggregator = dcase_util.data.Aggregator(
recipe=['flatten'],
win_length_frames=10,
hop_length_frames=1,
)
data_aggregator.aggregate(data)
data.plot() | 26.222222 | 51 | 0.779661 | 32 | 236 | 5.4375 | 0.59375 | 0.155172 | 0.149425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014218 | 0.105932 | 236 | 9 | 52 | 26.222222 | 0.810427 | 0 | 0 | 0 | 0 | 0 | 0.029536 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bfff4ec3da7a20c93c4f9a2d3619ccb6ec3a4d6d | 1,347 | py | Python | models/vgg_simplified_10.py | OpenGridMap/power-grid-detection | 221fcf0461dc869c8c64b11fa48596f83c20e1c8 | [
"Apache-2.0"
] | null | null | null | models/vgg_simplified_10.py | OpenGridMap/power-grid-detection | 221fcf0461dc869c8c64b11fa48596f83c20e1c8 | [
"Apache-2.0"
] | 1 | 2018-07-22T22:43:27.000Z | 2018-07-22T22:43:27.000Z | models/vgg_simplified_10.py | OpenGridMap/power-grid-detection | 221fcf0461dc869c8c64b11fa48596f83c20e1c8 | [
"Apache-2.0"
] | null | null | null | from keras.layers import Input, Convolution2D, MaxPooling2D, Flatten, Dense
from keras.models import Model
def VGG10(weights=None, input_shape=(128, 128, 3)):
input_img = Input(shape=input_shape)
x = Convolution2D(32, 3, 3, activation='relu', border_mode='same', name='B1_C1')(input_img)
x = Convolution2D... | 40.818182 | 95 | 0.638456 | 208 | 1,347 | 4.028846 | 0.245192 | 0.02864 | 0.100239 | 0.133652 | 0.621718 | 0.621718 | 0.621718 | 0.552506 | 0.552506 | 0.5179 | 0 | 0.084897 | 0.169265 | 1,347 | 32 | 96 | 42.09375 | 0.663986 | 0.01856 | 0 | 0 | 0 | 0 | 0.098485 | 0 | 0 | 0 | 0 | 0.03125 | 0 | 1 | 0.045455 | false | 0.045455 | 0.090909 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
87013ba3e176b9dc93a40101afe82271525caead | 1,042 | py | Python | FusionIIIT/applications/gymkhana/migrations/0002_registration_form.py | Ashwani066/Fusion | d914848c6da06bc092e5a7588469e7a30aba4927 | [
"bzip2-1.0.6"
] | 2 | 2020-01-24T16:34:54.000Z | 2020-08-01T05:09:24.000Z | FusionIIIT/applications/gymkhana/migrations/0002_registration_form.py | Ashwani066/Fusion | d914848c6da06bc092e5a7588469e7a30aba4927 | [
"bzip2-1.0.6"
] | null | null | null | FusionIIIT/applications/gymkhana/migrations/0002_registration_form.py | Ashwani066/Fusion | d914848c6da06bc092e5a7588469e7a30aba4927 | [
"bzip2-1.0.6"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.27 on 2020-06-03 21:37
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gymkhana', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | 35.931034 | 173 | 0.550864 | 115 | 1,042 | 4.852174 | 0.582609 | 0.080645 | 0.05914 | 0.071685 | 0.078853 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046875 | 0.262956 | 1,042 | 28 | 174 | 37.214286 | 0.679688 | 0.066219 | 0 | 0 | 1 | 0 | 0.16701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.238095 | 0 | 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 |
870263c2726d4fe1ccd2b3fa18fff377a125f79d | 8,847 | py | Python | examples/annotations.py | ieeg-portal/ieegpy | 080bfa42a8503380ef164b5e7b116613f75073bb | [
"Apache-2.0"
] | 17 | 2015-10-19T17:22:54.000Z | 2022-01-24T23:40:27.000Z | examples/annotations.py | ieeg-portal/ieegpy | 080bfa42a8503380ef164b5e7b116613f75073bb | [
"Apache-2.0"
] | 6 | 2015-09-16T10:11:34.000Z | 2019-11-14T16:35:41.000Z | examples/annotations.py | ieeg-portal/ieegpy | 080bfa42a8503380ef164b5e7b116613f75073bb | [
"Apache-2.0"
] | 7 | 2016-10-17T13:02:12.000Z | 2020-01-19T15:39:51.000Z | '''
Copyright 2019 Trustees of the University of Pennsylvania
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 ... | 37.646809 | 128 | 0.630835 | 1,039 | 8,847 | 5.170356 | 0.20693 | 0.023455 | 0.029039 | 0.033879 | 0.207744 | 0.160276 | 0.087491 | 0.087491 | 0.070179 | 0.058079 | 0 | 0.00781 | 0.276365 | 8,847 | 234 | 129 | 37.807692 | 0.831303 | 0.123658 | 0 | 0.194969 | 0 | 0 | 0.151905 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056604 | false | 0.081761 | 0.044025 | 0 | 0.113208 | 0.100629 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
87079a87c9f971c52689cad15b9701c1a700c50d | 630 | py | Python | tests/design_patterns/recent_calls/test_recent_calls.py | BrianLusina/PyCharm | 144dd4f6b2d254507237f46c8ee175c407fe053d | [
"Apache-2.0",
"MIT"
] | null | null | null | tests/design_patterns/recent_calls/test_recent_calls.py | BrianLusina/PyCharm | 144dd4f6b2d254507237f46c8ee175c407fe053d | [
"Apache-2.0",
"MIT"
] | null | null | null | tests/design_patterns/recent_calls/test_recent_calls.py | BrianLusina/PyCharm | 144dd4f6b2d254507237f46c8ee175c407fe053d | [
"Apache-2.0",
"MIT"
] | null | null | null | import unittest
from design_patterns.recent_counter import RecentCounter
class RecentCounterTest(unittest.TestCase):
def test_3_calls(self):
recent_counter = RecentCounter()
actual_ping_1 = recent_counter.ping(1)
self.assertEquals(actual_ping_1, 1)
actual_ping_100 = recent_count... | 25.2 | 56 | 0.71746 | 78 | 630 | 5.371795 | 0.346154 | 0.190931 | 0.162291 | 0.24821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081511 | 0.201587 | 630 | 24 | 57 | 26.25 | 0.751491 | 0 | 0 | 0 | 0 | 0 | 0.012698 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.266667 | 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 |
870a664114ae12c7b206f42bfd2118669a0f0fa9 | 4,001 | py | Python | argus/presenter/terminal/TerminalMonitor.py | paul-oreilly-nz/Argus | d99d23707a3b681eb9c4e1dd6b436e770b153428 | [
"MIT"
] | null | null | null | argus/presenter/terminal/TerminalMonitor.py | paul-oreilly-nz/Argus | d99d23707a3b681eb9c4e1dd6b436e770b153428 | [
"MIT"
] | null | null | null | argus/presenter/terminal/TerminalMonitor.py | paul-oreilly-nz/Argus | d99d23707a3b681eb9c4e1dd6b436e770b153428 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
Argus Terminal Monitor 0.1
Monitor a single set of data from one provider in a console.
Usage:
terminal-monitor.py <provider_id> [--run_once]
terminal-monitor.py --help | -h
terminal-monitor.py --version
Options:
-h --help Show this screen
... | 32.795082 | 86 | 0.570607 | 463 | 4,001 | 4.820734 | 0.401728 | 0.047043 | 0.026882 | 0.018817 | 0.03853 | 0.025986 | 0 | 0 | 0 | 0 | 0 | 0.004399 | 0.31817 | 4,001 | 121 | 87 | 33.066116 | 0.813783 | 0.27843 | 0 | 0.028169 | 0 | 0 | 0.159285 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070423 | false | 0.056338 | 0.084507 | 0 | 0.169014 | 0.084507 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
870ed6e63f43554f7ae7fa9ee1071f66676cf080 | 253 | py | Python | Chapter18/example4.py | 3DAlgoLab/Mastering-Concurrency-in-Python | 48e4cb4878830b5f3e23346187ba8ada37f1dd2c | [
"MIT"
] | 66 | 2018-11-21T02:07:16.000Z | 2021-11-08T13:13:31.000Z | Chapter18/example4.py | 3DAlgoLab/Mastering-Concurrency-in-Python | 48e4cb4878830b5f3e23346187ba8ada37f1dd2c | [
"MIT"
] | 2 | 2020-03-11T19:56:39.000Z | 2021-11-15T14:07:05.000Z | Chapter18/example4.py | 3DAlgoLab/Mastering-Concurrency-in-Python | 48e4cb4878830b5f3e23346187ba8ada37f1dd2c | [
"MIT"
] | 58 | 2018-11-03T14:06:10.000Z | 2022-03-17T14:06:55.000Z | # ch18/example4.py
def read_data():
for i in range(5):
print('Inside the inner for loop...')
yield i * 2
result = read_data()
for i in range(6):
print('Inside the outer for loop...')
print(next(result))
print('Finished.')
| 18.071429 | 45 | 0.600791 | 39 | 253 | 3.846154 | 0.589744 | 0.106667 | 0.146667 | 0.16 | 0.253333 | 0.253333 | 0 | 0 | 0 | 0 | 0 | 0.031414 | 0.245059 | 253 | 13 | 46 | 19.461538 | 0.753927 | 0.063241 | 0 | 0 | 0 | 0 | 0.276596 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.111111 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.