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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
713478f30c2e4653c15e6f9f5284158df84950ad | 4,042 | py | Python | AirzoneCloudDaikin/Installation.py | oobayly/AirzoneCloudDaikin | c1b3ebdc6518b4ba14604ba4b479ca55bccf4f9a | [
"MIT"
] | 7 | 2020-05-24T09:25:00.000Z | 2021-12-02T15:11:26.000Z | AirzoneCloudDaikin/Installation.py | oobayly/AirzoneCloudDaikin | c1b3ebdc6518b4ba14604ba4b479ca55bccf4f9a | [
"MIT"
] | 2 | 2021-01-12T12:53:27.000Z | 2021-03-08T13:57:25.000Z | AirzoneCloudDaikin/Installation.py | oobayly/AirzoneCloudDaikin | c1b3ebdc6518b4ba14604ba4b479ca55bccf4f9a | [
"MIT"
] | 3 | 2020-05-24T11:21:21.000Z | 2021-01-12T12:34:09.000Z | import logging
from .Device import Device
_LOGGER = logging.getLogger(__name__)
class Installation:
"""Manage a Daikin AirzoneCloud installation"""
_api = None
_data = {}
_devices = []
def __init__(self, api, data):
self._api = api
self._data = data
# log
_LOGG... | 26.418301 | 107 | 0.565809 | 408 | 4,042 | 5.39951 | 0.259804 | 0.036314 | 0.079891 | 0.054017 | 0.068997 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011445 | 0.308263 | 4,042 | 152 | 108 | 26.592105 | 0.776466 | 0.300099 | 0 | 0.202703 | 0 | 0 | 0.083027 | 0.01543 | 0 | 0 | 0 | 0 | 0 | 1 | 0.202703 | false | 0 | 0.027027 | 0.040541 | 0.432432 | 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 |
713abd546c1ad241a91ed0510d858ff960640523 | 608 | py | Python | __init__.py | enveezee/duckit | 0243a39172654e3ab1fbbc15c4839438eb806885 | [
"MIT"
] | 1 | 2021-04-09T22:28:54.000Z | 2021-04-09T22:28:54.000Z | __init__.py | enveezee/duckit | 0243a39172654e3ab1fbbc15c4839438eb806885 | [
"MIT"
] | null | null | null | __init__.py | enveezee/duckit | 0243a39172654e3ab1fbbc15c4839438eb806885 | [
"MIT"
] | null | null | null | """
DuckIt - Get search results from DuckDuckGo. If you can't DuckIt...
"""
import supybot
import supybot.world as world
__version__ = "0.3"
__author__ = supybot.Author("nvz", "enveezee", "https://github.com/enveezee")
__maintainer__ = getattr(
supybot.authors,
"nvz",
supybot.Author("nvz", "enveezee", "... | 18.424242 | 77 | 0.707237 | 75 | 608 | 5.466667 | 0.48 | 0.080488 | 0.102439 | 0.160976 | 0.22439 | 0.22439 | 0.22439 | 0.22439 | 0 | 0 | 0 | 0.003891 | 0.154605 | 608 | 32 | 78 | 19 | 0.793774 | 0.110197 | 0 | 0 | 0 | 0 | 0.206767 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 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 |
713e4be48987a46e74a8f537ddd88ca7843c35eb | 2,686 | py | Python | abandonedio/urls.py | Kunstmord/abandoned | d6ed86ace6521144699b668d0e91497a7b3b6dc2 | [
"MIT"
] | null | null | null | abandonedio/urls.py | Kunstmord/abandoned | d6ed86ace6521144699b668d0e91497a7b3b6dc2 | [
"MIT"
] | 10 | 2015-01-10T15:08:50.000Z | 2015-03-28T18:48:49.000Z | abandonedio/urls.py | Kunstmord/abandoned | d6ed86ace6521144699b668d0e91497a7b3b6dc2 | [
"MIT"
] | null | null | null | import abandoned.views
from django.conf.urls import patterns, include, url
from django.contrib import admin
from rest_framework import routers
router = routers.DefaultRouter()
router.register(r'tags', abandoned.views.TagViewSet)
router.register(r'authors', abandoned.views.AuthorViewSet)
router.register(r'reasons', ab... | 72.594595 | 119 | 0.595681 | 303 | 2,686 | 5.145215 | 0.181518 | 0.233483 | 0.057729 | 0.057729 | 0.318794 | 0.230917 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233805 | 2,686 | 37 | 120 | 72.594595 | 0.757532 | 0 | 0 | 0 | 0 | 0 | 0.226275 | 0.110532 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
852f5aa61a4e12d54382cc9a0c3649756c7c34a6 | 1,286 | py | Python | lojavirtual/main/models.py | ErickMBS/dj-seller | ebaff4e05f65e3b6bccf127549492460b9e73a08 | [
"MIT"
] | null | null | null | lojavirtual/main/models.py | ErickMBS/dj-seller | ebaff4e05f65e3b6bccf127549492460b9e73a08 | [
"MIT"
] | null | null | null | lojavirtual/main/models.py | ErickMBS/dj-seller | ebaff4e05f65e3b6bccf127549492460b9e73a08 | [
"MIT"
] | null | null | null | from django.db import models
class Categoria(models.Model):
nome = models.CharField(max_length=150, db_index=True)
slug = models.SlugField(max_length=150, unique=True, db_index=True)
data_criacao = models.DateTimeField(auto_now_add=True)
data_ultima_alteracao = models.DateTimeField(auto_now=True)
... | 34.756757 | 108 | 0.713841 | 158 | 1,286 | 5.575949 | 0.424051 | 0.040863 | 0.049943 | 0.118048 | 0.493757 | 0.413167 | 0.358683 | 0.297389 | 0.211124 | 0.211124 | 0 | 0.014124 | 0.174184 | 1,286 | 36 | 109 | 35.722222 | 0.815443 | 0 | 0 | 0.428571 | 0 | 0 | 0.051322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.035714 | 0.071429 | 0.821429 | 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 |
8539ee74f4e2f507f8567ee3b13ee8c97c86dc48 | 682 | py | Python | component/intent/response.py | bkosciow/tenchi | 91be84169c72d470c72cb706cde7d31d337c0f7a | [
"MIT"
] | null | null | null | component/intent/response.py | bkosciow/tenchi | 91be84169c72d470c72cb706cde7d31d337c0f7a | [
"MIT"
] | null | null | null | component/intent/response.py | bkosciow/tenchi | 91be84169c72d470c72cb706cde7d31d337c0f7a | [
"MIT"
] | null | null | null |
class Response(object):
def __init__(self, request=None):
self.intent_name = request.intent_name if request else ''
self.lang = request.lang if request else ''
self.data = request.data if request else ''
self._speech = ''
self._text = ''
@property
def text(self):
... | 22.733333 | 65 | 0.570381 | 79 | 682 | 4.721519 | 0.253165 | 0.134048 | 0.104558 | 0.136729 | 0.209115 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.325513 | 682 | 29 | 66 | 23.517241 | 0.81087 | 0 | 0 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0 | 0 | 0.434783 | 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 |
853be0c6798aaf2b14b7b2e584c555f9aef1bad2 | 1,685 | py | Python | project_template.py | dvillega/scripts | ce335d90e0fc2ddab318c6b4cc9f3ede4153d569 | [
"MIT"
] | null | null | null | project_template.py | dvillega/scripts | ce335d90e0fc2ddab318c6b4cc9f3ede4153d569 | [
"MIT"
] | null | null | null | project_template.py | dvillega/scripts | ce335d90e0fc2ddab318c6b4cc9f3ede4153d569 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Creates a base directory structure ala Project Template (from R)
author - Devin Villegas
2013/08/19
"""
import argparse
import errno
import os
import sys
def make_sure_path_exists(path):
try:
os.makedirs(path)
except OSError as exception:
if exception.errno != errno.... | 25.530303 | 90 | 0.697923 | 235 | 1,685 | 4.87234 | 0.46383 | 0.086463 | 0.052402 | 0.078603 | 0.075109 | 0.054148 | 0 | 0 | 0 | 0 | 0 | 0.010745 | 0.171513 | 1,685 | 65 | 91 | 25.923077 | 0.809456 | 0.086053 | 0 | 0 | 0 | 0 | 0.259285 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.095238 | null | null | 0.119048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8542ff84881317f1133bae853eeab1c7866fabd5 | 270 | py | Python | introduction_to_classic_ciphers/lesson6/task1/question_01.py | behzod/pycharm-courses | 0ba74ff0ff87e7747173c60cd139c25b8d7f3b0e | [
"Apache-2.0"
] | 213 | 2015-01-03T19:25:02.000Z | 2020-02-06T03:08:43.000Z | introduction_to_classic_ciphers/lesson6/task1/question_01.py | behzod/pycharm-courses | 0ba74ff0ff87e7747173c60cd139c25b8d7f3b0e | [
"Apache-2.0"
] | 24 | 2015-01-01T17:03:09.000Z | 2019-12-22T10:28:22.000Z | introduction_to_classic_ciphers/lesson6/task1/question_01.py | behzod/pycharm-courses | 0ba74ff0ff87e7747173c60cd139c25b8d7f3b0e | [
"Apache-2.0"
] | 139 | 2015-01-03T19:24:22.000Z | 2020-01-24T18:05:51.000Z | ENCRYPTED_MESSAGE = 'MORA EVOCU ECCLESIA TUTIS AUT TIBI NISI OLIM OCIUS NOVEM'
DECRYPTED_MESSAGE = 'MEETATNOON'
CIPHER_OPTIONS = ['null','caesar','atbash']
cipher_used_in_this_example = CIPHER_OPTIONS[0] # replace with the index of the cipher used in this encryption
| 38.571429 | 111 | 0.788889 | 39 | 270 | 5.25641 | 0.769231 | 0.126829 | 0.117073 | 0.156098 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004274 | 0.133333 | 270 | 6 | 112 | 45 | 0.871795 | 0.222222 | 0 | 0 | 0 | 0 | 0.394231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
85441ecc504f29d655f4a74eeb5bf036fb4563fd | 220 | py | Python | briefcase/urls.py | Murtrag/AutoResume | 20a4874904454a19ff6edba412429c543451642b | [
"MIT"
] | null | null | null | briefcase/urls.py | Murtrag/AutoResume | 20a4874904454a19ff6edba412429c543451642b | [
"MIT"
] | 47 | 2020-12-07T18:25:02.000Z | 2022-03-30T08:01:32.000Z | briefcase/urls.py | Murtrag/AutoResume | 20a4874904454a19ff6edba412429c543451642b | [
"MIT"
] | null | null | null | from django.urls import re_path
from briefcase import views
urlpatterns = [
re_path(
"documents/(?P<info_id>\w+)/(?P<type>\w+)/$",
views.DocumentListView.as_view(),
name="briefcase",
)
]
| 20 | 53 | 0.609091 | 27 | 220 | 4.814815 | 0.703704 | 0.092308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 220 | 10 | 54 | 22 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0.231818 | 0.190909 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
854a6cfeeefe3508ac03e1289dd8e7bcfdbef648 | 5,348 | py | Python | openslides/agenda/signals.py | DerPate/OpenSlides | 2733a47d315fec9b8f3cb746fd5f3739be225d65 | [
"MIT"
] | 1 | 2015-03-22T02:07:23.000Z | 2015-03-22T02:07:23.000Z | openslides/agenda/signals.py | frauenknecht/OpenSlides | 6521d6b095bca33dc0c5f09f59067551800ea1e3 | [
"MIT"
] | null | null | null | openslides/agenda/signals.py | frauenknecht/OpenSlides | 6521d6b095bca33dc0c5f09f59067551800ea1e3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from datetime import datetime
from django import forms
from django.contrib.contenttypes.models import ContentType
from django.core.exceptions import ValidationError
from django.db.models.signals import pre_delete
from django.dispatch import receiver
from django.template.loader import render_to... | 39.036496 | 119 | 0.649776 | 627 | 5,348 | 5.304625 | 0.301435 | 0.01804 | 0.037883 | 0.026458 | 0.149128 | 0.09561 | 0.034275 | 0.034275 | 0.034275 | 0.034275 | 0 | 0.001779 | 0.264398 | 5,348 | 136 | 120 | 39.323529 | 0.843671 | 0.103777 | 0 | 0.043478 | 0 | 0 | 0.166845 | 0.074343 | 0 | 0 | 0 | 0.022059 | 0 | 1 | 0.065217 | false | 0 | 0.163043 | 0 | 0.271739 | 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 |
854aa23b3280de0e4afd73967f034272485b62d7 | 2,114 | py | Python | run.py | knowsuchagency/shell-utils | fd6e8458917e20f4384ea812ca767227b27fc50a | [
"Apache-2.0"
] | 4 | 2018-10-01T08:56:14.000Z | 2020-01-04T19:47:45.000Z | run.py | knowsuchagency/shell-utils | fd6e8458917e20f4384ea812ca767227b27fc50a | [
"Apache-2.0"
] | null | null | null | run.py | knowsuchagency/shell-utils | fd6e8458917e20f4384ea812ca767227b27fc50a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
"""Task runner for the shell-utils project."""
from tempfile import NamedTemporaryFile
from textwrap import dedent
from pathlib import Path
import subprocess as sp
import os
import re
from shell_utils import shell, cd
import click
@click.group()
def main():
"""
Development tasks for s... | 25.780488 | 96 | 0.645222 | 268 | 2,114 | 4.985075 | 0.432836 | 0.037425 | 0.062874 | 0.049401 | 0.053892 | 0.053892 | 0.053892 | 0 | 0 | 0 | 0 | 0.003619 | 0.215705 | 2,114 | 81 | 97 | 26.098765 | 0.802171 | 0.139073 | 0 | 0.155556 | 0 | 0 | 0.263517 | 0.01366 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.066667 | 0.2 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
85559a0895ca30ec4281e2e060e83e832fa7fa84 | 385 | py | Python | model.py | niklasschmitz/DeepQLearning | 8e8b348607f70a6d7551659699d0667da180d01a | [
"MIT"
] | 4 | 2019-06-01T02:35:24.000Z | 2020-03-22T15:14:02.000Z | model.py | niklasschmitz/DeepQLearning | 8e8b348607f70a6d7551659699d0667da180d01a | [
"MIT"
] | null | null | null | model.py | niklasschmitz/DeepQLearning | 8e8b348607f70a6d7551659699d0667da180d01a | [
"MIT"
] | null | null | null | from jax.experimental import stax
from jax.experimental.stax import Dense, Conv, Relu, Flatten
def DeepQNetwork():
init_fun, predict_fun = stax.serial(
Conv(16, (8, 8), strides=(4, 4)), Relu,
Conv(32, (4, 4), strides=(2, 2)), Relu,
Conv(64, (3, 3)), Relu,
Flatten,
Dense(256... | 25.666667 | 60 | 0.587013 | 54 | 385 | 4.111111 | 0.481481 | 0.063063 | 0.171171 | 0.153153 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070922 | 0.267532 | 385 | 14 | 61 | 27.5 | 0.716312 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | true | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
855807b689ca7b1a73c362d8a24d676efdfc59b6 | 731 | py | Python | day 17/Toon D - Python/day17.py | AE-nv/aedvent-code-2021 | 7ce199d6be5f6cce2e61a9c0d26afd6d064a86a7 | [
"MIT"
] | 1 | 2021-12-02T12:09:11.000Z | 2021-12-02T12:09:11.000Z | day 17/Toon D - Python/day17.py | AE-nv/aedvent-code-2021 | 7ce199d6be5f6cce2e61a9c0d26afd6d064a86a7 | [
"MIT"
] | null | null | null | day 17/Toon D - Python/day17.py | AE-nv/aedvent-code-2021 | 7ce199d6be5f6cce2e61a9c0d26afd6d064a86a7 | [
"MIT"
] | 1 | 2021-12-01T21:14:41.000Z | 2021-12-01T21:14:41.000Z | x1, x2, y1, y2 = 150, 193, -86, -136
def passes_through(vx, vy):
nx, ny = 0, 0
points = []
while nx <= x2 and ny >= y2:
nx, ny = nx + vx, ny + vy
points += [[nx, ny]]
if vx > 0:
vx = vx - 1
vy = vy - 1
if x1 <= nx and nx <= x2 and y2 <= ny and ny <= y1:... | 22.151515 | 59 | 0.507524 | 134 | 731 | 2.679104 | 0.313433 | 0.044568 | 0.041783 | 0.066852 | 0.072423 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104628 | 0.320109 | 731 | 32 | 60 | 22.84375 | 0.617706 | 0 | 0 | 0 | 0 | 0 | 0.028728 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0.130435 | 0 | 0.043478 | 0.217391 | 0.173913 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
855d9960600291e16f7349f1ffd2fd5d87e40ac5 | 4,984 | py | Python | hearthstone/battlebots/priority_storage_bot.py | dianarvp/stone_ground_hearth_battles | 450e70eaef21b543be579a6d696676fb148a99b0 | [
"Apache-2.0"
] | null | null | null | hearthstone/battlebots/priority_storage_bot.py | dianarvp/stone_ground_hearth_battles | 450e70eaef21b543be579a6d696676fb148a99b0 | [
"Apache-2.0"
] | null | null | null | hearthstone/battlebots/priority_storage_bot.py | dianarvp/stone_ground_hearth_battles | 450e70eaef21b543be579a6d696676fb148a99b0 | [
"Apache-2.0"
] | null | null | null | import random
import typing
from typing import List, Callable
from hearthstone.agent import Agent, Action, generate_valid_actions, BuyAction, EndPhaseAction, SummonAction, \
TavernUpgradeAction, RerollAction, SellFromHandAction
if typing.TYPE_CHECKING:
from hearthstone.cards import Card, MonsterCard
from ... | 46.579439 | 184 | 0.665931 | 605 | 4,984 | 5.279339 | 0.178512 | 0.084534 | 0.045085 | 0.03444 | 0.427364 | 0.349092 | 0.324045 | 0.324045 | 0.301503 | 0.294615 | 0 | 0.006102 | 0.24378 | 4,984 | 106 | 185 | 47.018868 | 0.841337 | 0 | 0 | 0.204819 | 1 | 0 | 0.030698 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084337 | false | 0.012048 | 0.072289 | 0 | 0.325301 | 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 |
855f35e522206636b5e46dd85318feeb2dc789f9 | 335 | py | Python | Photon/photonVision.py | Oscats/RomiVision | 6390cf7bd3e0b4bd8e888b822bc058a4aaeff0c1 | [
"BSD-3-Clause"
] | null | null | null | Photon/photonVision.py | Oscats/RomiVision | 6390cf7bd3e0b4bd8e888b822bc058a4aaeff0c1 | [
"BSD-3-Clause"
] | null | null | null | Photon/photonVision.py | Oscats/RomiVision | 6390cf7bd3e0b4bd8e888b822bc058a4aaeff0c1 | [
"BSD-3-Clause"
] | null | null | null | import sys
import os
try:
os.system("java -jar photonvision.jar") #change photovision.jar to match the filename of your photon jar file.
print ("Photon Vision has started. Visit wpilibpi.local:5800 (or your Romi's ip address:5800) to tune your pipelines.")
except:
print("Unexpected error:", sys.exc_info()... | 30.454545 | 123 | 0.722388 | 52 | 335 | 4.634615 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032491 | 0.173134 | 335 | 10 | 124 | 33.5 | 0.837545 | 0.20597 | 0 | 0 | 0 | 0.125 | 0.573585 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8564cd6daf7081718ea88bca6dbf50707ced6d6f | 2,337 | py | Python | scripts/call_logs.py | asad-saleem-confiz/general-congress-hotline | 8df3db800804ff4a672848b33b618a3a2275c83d | [
"Unlicense",
"MIT"
] | 44 | 2016-06-16T13:07:05.000Z | 2021-05-05T14:25:10.000Z | scripts/call_logs.py | asad-saleem-confiz/general-congress-hotline | 8df3db800804ff4a672848b33b618a3a2275c83d | [
"Unlicense",
"MIT"
] | 36 | 2017-01-08T22:55:49.000Z | 2018-11-14T13:02:12.000Z | scripts/call_logs.py | asad-saleem-confiz/general-congress-hotline | 8df3db800804ff4a672848b33b618a3a2275c83d | [
"Unlicense",
"MIT"
] | 75 | 2017-01-08T23:06:06.000Z | 2021-12-06T08:40:00.000Z | import csv
import operator
import os
from collections import defaultdict
from datetime import datetime
from twilio.rest import TwilioRestClient
FAILED_STATUSES = set(['busy', 'no-answer', 'ringing', 'failed', 'canceled'])
account_sid = os.environ['TWILIO_ACCOUNT_SID']
auth_token = os.environ['TWILIO_AUT... | 29.961538 | 96 | 0.625588 | 272 | 2,337 | 5.261029 | 0.316176 | 0.055905 | 0.031447 | 0.026555 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010704 | 0.240479 | 2,337 | 77 | 97 | 30.350649 | 0.795493 | 0 | 0 | 0.032258 | 0 | 0 | 0.135901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.096774 | null | null | 0.193548 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8565b5a489739996f57ad6ee62b64bee416266f5 | 5,110 | py | Python | old/scripts/fccbcc.py | Van-der-Ven-Group/thermoplotting | d826d728f406896b7a56207f3f4e9b4176de0e97 | [
"MIT"
] | 10 | 2015-04-28T18:53:00.000Z | 2020-09-23T13:29:07.000Z | old/scripts/fccbcc.py | Van-der-Ven-Group/thermoplotting | d826d728f406896b7a56207f3f4e9b4176de0e97 | [
"MIT"
] | 1 | 2019-05-20T19:20:24.000Z | 2019-05-20T19:20:24.000Z | old/scripts/fccbcc.py | goirijo/thermoplotting | d826d728f406896b7a56207f3f4e9b4176de0e97 | [
"MIT"
] | 4 | 2015-08-03T18:36:46.000Z | 2022-03-30T23:13:04.000Z | import matplotlib.pyplot as plt
import numpy as np
import re
import thermoplotting as tp
def E_X(energyfile):
"""Return array with just a column for energy
and a column for composition based on an energy
file from casm for a binary system"""
dump=np.genfromtxt(energyfile,dtype="str")
names=dump[:... | 27.923497 | 121 | 0.662035 | 750 | 5,110 | 4.473333 | 0.324 | 0.018778 | 0.014307 | 0.01073 | 0.335022 | 0.29389 | 0.242623 | 0.224739 | 0.224739 | 0.164531 | 0 | 0.027703 | 0.12407 | 5,110 | 182 | 122 | 28.076923 | 0.72185 | 0.279648 | 0 | 0.141176 | 0 | 0 | 0.099541 | 0 | 0 | 0 | 0 | 0.016484 | 0 | 1 | 0.058824 | false | 0 | 0.047059 | 0 | 0.164706 | 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 |
8566a0138af4c968bd9bb92c13a13e07508be55a | 2,560 | py | Python | core/models.py | CAPTools/CAPCollector | 9d890b0f9a0d9a655e4042315ff94133621530e9 | [
"BSD-3-Clause"
] | 11 | 2015-01-24T03:04:31.000Z | 2022-01-12T23:33:49.000Z | core/models.py | CAPTools/CAPCollector | 9d890b0f9a0d9a655e4042315ff94133621530e9 | [
"BSD-3-Clause"
] | null | null | null | core/models.py | CAPTools/CAPCollector | 9d890b0f9a0d9a655e4042315ff94133621530e9 | [
"BSD-3-Clause"
] | 8 | 2015-04-19T18:22:53.000Z | 2021-12-15T11:21:02.000Z | """CAP Collector models."""
__author__ = "arcadiy@google.com (Arkadii Yakovets)"
from django.db import models
from django.utils.translation import ugettext as _
class Alert(models.Model):
"""Alert entity definition."""
uuid = models.CharField(_("Alert UUID"), max_length=36, db_index=True)
created_at = models... | 34.133333 | 79 | 0.671875 | 284 | 2,560 | 5.760563 | 0.295775 | 0.03912 | 0.102689 | 0.06846 | 0.488998 | 0.420538 | 0.420538 | 0.420538 | 0.420538 | 0.388142 | 0 | 0.004475 | 0.214453 | 2,560 | 74 | 80 | 34.594595 | 0.80905 | 0.061719 | 0 | 0.44 | 0 | 0 | 0.193182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.04 | 0.1 | 0.72 | 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 |
856edceccf3332577f93a3e953b099c29f5705f6 | 37,419 | py | Python | DrawYourTaf.py | eflowbeach/draw-your-taf | 1162eeb3cb677047e19b88d49947611bd348f126 | [
"MIT"
] | null | null | null | DrawYourTaf.py | eflowbeach/draw-your-taf | 1162eeb3cb677047e19b88d49947611bd348f126 | [
"MIT"
] | null | null | null | DrawYourTaf.py | eflowbeach/draw-your-taf | 1162eeb3cb677047e19b88d49947611bd348f126 | [
"MIT"
] | null | null | null | import os
import sys
import time
import calendar
import copy
import math
import Tkinter as Tk
import tkMessageBox
import re
import cPickle as pickle
try:
import Pmw
except ImportError:
pmwpath = "./Pmw"
sys.path.append(pmwpath)
import Pmw
# Configure
taf_out_file = './taf_out_file/'
tafdir2 = './tafo... | 37.493988 | 238 | 0.525134 | 4,867 | 37,419 | 3.8609 | 0.1015 | 0.02895 | 0.031824 | 0.042148 | 0.59454 | 0.518972 | 0.465276 | 0.420254 | 0.360598 | 0.330105 | 0 | 0.033044 | 0.341671 | 37,419 | 997 | 239 | 37.531595 | 0.729764 | 0.037655 | 0 | 0.316883 | 0 | 0.003896 | 0.05174 | 0.004295 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007792 | 0.016883 | null | null | 0.019481 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
85748b7d71e67c9b23452755735e5b117c3f8b28 | 361 | py | Python | Digit_Recognizer/digit_recognizer.py | williamyao66/Projects | 0559872f120ae1a746ff5df64a5bc21df0da729b | [
"MIT"
] | null | null | null | Digit_Recognizer/digit_recognizer.py | williamyao66/Projects | 0559872f120ae1a746ff5df64a5bc21df0da729b | [
"MIT"
] | null | null | null | Digit_Recognizer/digit_recognizer.py | williamyao66/Projects | 0559872f120ae1a746ff5df64a5bc21df0da729b | [
"MIT"
] | null | null | null | import pandas as pd
import os
from tensorflow.keras.models import load_model
tr = pd.read_csv('./Digit-Recognizer/train.csv')
te = pd.read_csv('./Digit-Recognizer/test.csv')
x_te = te.values.copy().astype('float64')
final_model = load_model(os.getcwd() + '/model/')
predictions = final_model.predict(x_te)
test_pre... | 27.769231 | 49 | 0.747922 | 56 | 361 | 4.660714 | 0.571429 | 0.068966 | 0.068966 | 0.10728 | 0.183908 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009231 | 0.099723 | 361 | 13 | 50 | 27.769231 | 0.793846 | 0 | 0 | 0 | 0 | 0 | 0.190608 | 0.151934 | 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 |
857593da599f9681e200c739844ef858bf030ef6 | 1,140 | py | Python | src/modules/ArpFilter.py | olivervbk/inactmon | 5ef2c0795f2e146db2311e6ec3f8aed231bfb6cc | [
"RSA-MD"
] | null | null | null | src/modules/ArpFilter.py | olivervbk/inactmon | 5ef2c0795f2e146db2311e6ec3f8aed231bfb6cc | [
"RSA-MD"
] | null | null | null | src/modules/ArpFilter.py | olivervbk/inactmon | 5ef2c0795f2e146db2311e6ec3f8aed231bfb6cc | [
"RSA-MD"
] | null | null | null | from impacket import ImpactDecoder
import inspect
def dump(obj):
for name, data in inspect.getmembers(obj):
if name == '__builtins__':
continue
print '%s :' % name, repr(data)
class ArpFilter():
attributes = None
myIpAddresses = None
logger = None
def __init__(self, attributes, logger, myIpAdd... | 20.727273 | 58 | 0.673684 | 159 | 1,140 | 4.672956 | 0.45912 | 0.040377 | 0.043069 | 0.026918 | 0.056528 | 0.056528 | 0.056528 | 0.056528 | 0 | 0 | 0 | 0.005411 | 0.189474 | 1,140 | 54 | 59 | 21.111111 | 0.798701 | 0.016667 | 0 | 0.052632 | 0 | 0 | 0.08311 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.026316 | 0.052632 | null | null | 0.157895 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
857bad846487a40ce70e32284327f6dc8b6aaf1f | 3,693 | py | Python | src/genie/libs/parser/iosxe/tests/ShowIsisRib/cli/equal/golden_output_17_expected.py | ykoehler/genieparser | b62cf622c3d8eab77c7b69e932c214ed04a2565a | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/iosxe/tests/ShowIsisRib/cli/equal/golden_output_17_expected.py | ykoehler/genieparser | b62cf622c3d8eab77c7b69e932c214ed04a2565a | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/iosxe/tests/ShowIsisRib/cli/equal/golden_output_17_expected.py | ykoehler/genieparser | b62cf622c3d8eab77c7b69e932c214ed04a2565a | [
"Apache-2.0"
] | null | null | null | expected_output = {
"tag": {
"1": {
"topo_type": "unicast",
"topo_name": "base",
"tid": 0,
"topo_id": "0x0",
"flex_algo": {
"None": {
"prefix": {
"4.4.4.4": {
"... | 50.589041 | 80 | 0.134579 | 135 | 3,693 | 3.422222 | 0.474074 | 0.038961 | 0.038961 | 0.025974 | 0.209957 | 0.209957 | 0.168831 | 0.168831 | 0.168831 | 0.168831 | 0 | 0.085639 | 0.794476 | 3,693 | 73 | 81 | 50.589041 | 0.523057 | 0 | 0 | 0.205479 | 0 | 0 | 0.112074 | 0 | 0 | 0 | 0.000812 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
85801e5fa12335248fd2c775b708477cd6d12874 | 1,108 | py | Python | uim/utils/matrix.py | Wacom-Developer/universal-ink-library | 689ed90e09e912b8fc9ac249984df43a7b59aa59 | [
"Apache-2.0"
] | 5 | 2021-09-06T11:45:37.000Z | 2022-03-24T15:56:06.000Z | uim/utils/matrix.py | Wacom-Developer/universal-ink-library | 689ed90e09e912b8fc9ac249984df43a7b59aa59 | [
"Apache-2.0"
] | null | null | null | uim/utils/matrix.py | Wacom-Developer/universal-ink-library | 689ed90e09e912b8fc9ac249984df43a7b59aa59 | [
"Apache-2.0"
] | 2 | 2021-09-03T09:08:45.000Z | 2021-12-15T14:03:16.000Z | # -*- coding: utf-8 -*-
# Copyright © 2021 Wacom Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unle... | 29.945946 | 75 | 0.619134 | 155 | 1,108 | 4.425806 | 0.683871 | 0.026239 | 0.026239 | 0.034985 | 0.039359 | 0.039359 | 0.039359 | 0.039359 | 0.039359 | 0.039359 | 0 | 0.072956 | 0.282491 | 1,108 | 36 | 76 | 30.777778 | 0.788679 | 0.712996 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.125 | 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 |
8580fb40531f6ea45e10febdcc84b3886e7691a7 | 3,386 | py | Python | Python/site_dpm/validation/human_cell_cycle.py | JohnReid/biopsy | 1eeb714ba5b53f2ecf776d865d32e2078cbc0338 | [
"MIT"
] | null | null | null | Python/site_dpm/validation/human_cell_cycle.py | JohnReid/biopsy | 1eeb714ba5b53f2ecf776d865d32e2078cbc0338 | [
"MIT"
] | null | null | null | Python/site_dpm/validation/human_cell_cycle.py | JohnReid/biopsy | 1eeb714ba5b53f2ecf776d865d32e2078cbc0338 | [
"MIT"
] | null | null | null | #
# Copyright John Reid 2009
#
import biopsy.identifiers.synergizer as S
import biopsy.identifiers.biomart as B
import csv, os, sys
from itertools import chain, imap
import transfac_factors
def ens_genes_for(factor_name, pssm_map):
return set(
pssm_map[m]
for m
in set(str(m.acc) for m in ... | 29.189655 | 135 | 0.680449 | 499 | 3,386 | 4.41483 | 0.310621 | 0.031775 | 0.031775 | 0.013618 | 0.278711 | 0.272356 | 0.272356 | 0.272356 | 0.272356 | 0.272356 | 0 | 0.018201 | 0.172475 | 3,386 | 115 | 136 | 29.443478 | 0.768023 | 0.15446 | 0 | 0.117647 | 0 | 0 | 0.153629 | 0.033468 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.073529 | null | null | 0.044118 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8581a316cbdf78dfe04f435283826c61a39677a6 | 2,494 | py | Python | gestion/migrations/0001_initial.py | darkdrei/covidudc | 3c8e96b22d1f0ed7f3c929c11cbc98de72d2dc58 | [
"MIT"
] | null | null | null | gestion/migrations/0001_initial.py | darkdrei/covidudc | 3c8e96b22d1f0ed7f3c929c11cbc98de72d2dc58 | [
"MIT"
] | null | null | null | gestion/migrations/0001_initial.py | darkdrei/covidudc | 3c8e96b22d1f0ed7f3c929c11cbc98de72d2dc58 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-04-02 09:03
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('preg... | 43 | 152 | 0.600642 | 240 | 2,494 | 6.075 | 0.329167 | 0.067901 | 0.057613 | 0.090535 | 0.469136 | 0.437586 | 0.437586 | 0.437586 | 0.437586 | 0.401235 | 0 | 0.010428 | 0.269447 | 2,494 | 57 | 153 | 43.754386 | 0.789791 | 0.018043 | 0 | 0.4 | 1 | 0 | 0.172456 | 0.018799 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.06 | 0 | 0.14 | 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 |
8583e786a0f4dc40a1a906dd14113b58c941fed6 | 22,906 | py | Python | scripts/P24qp.py | bopopescu/Bus-Pirate-1 | 62a449f4aa6edb2160e00537f06024b2e1ce6c48 | [
"CC0-1.0"
] | null | null | null | scripts/P24qp.py | bopopescu/Bus-Pirate-1 | 62a449f4aa6edb2160e00537f06024b2e1ce6c48 | [
"CC0-1.0"
] | null | null | null | scripts/P24qp.py | bopopescu/Bus-Pirate-1 | 62a449f4aa6edb2160e00537f06024b2e1ce6c48 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/python
### Bus Pirate Programmer (should work for other PIC24F devices as well)
### (C) 2009 Joseph Jezak <josejx@gentoo.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either ... | 30.339073 | 168 | 0.627608 | 3,323 | 22,906 | 4.288896 | 0.16461 | 0.030873 | 0.006175 | 0.006385 | 0.250351 | 0.187903 | 0.168257 | 0.136893 | 0.130578 | 0.114159 | 0 | 0.02678 | 0.210993 | 22,906 | 754 | 169 | 30.37931 | 0.761799 | 0.249367 | 0 | 0.337349 | 0 | 0 | 0.223839 | 0 | 0 | 0 | 0.007125 | 0 | 0 | 0 | null | null | 0.008032 | 0.012048 | null | null | 0.130522 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8588eed9459ce39c2b699d391105767498390f23 | 2,107 | py | Python | pyedgeconnect/orch/_net_flow.py | SPOpenSource/edgeconnect-python | 158aad220f8cacfa029df41b0ac2a37f7dac943f | [
"MIT"
] | 15 | 2021-07-02T17:09:13.000Z | 2022-02-08T17:06:51.000Z | pyedgeconnect/orch/_net_flow.py | SPOpenSource/edgeconnect-python | 158aad220f8cacfa029df41b0ac2a37f7dac943f | [
"MIT"
] | null | null | null | pyedgeconnect/orch/_net_flow.py | SPOpenSource/edgeconnect-python | 158aad220f8cacfa029df41b0ac2a37f7dac943f | [
"MIT"
] | 4 | 2021-07-16T00:05:24.000Z | 2022-03-26T02:04:17.000Z | # MIT License
# (C) Copyright 2021 Hewlett Packard Enterprise Development LP.
#
# netFlow : ECOS Netflow configuration
def get_net_flow_configuration(
self,
ne_id: str,
cached: bool,
) -> dict:
"""Get netflow configurations from Edge Connect appliance
.. list-table::
:header-rows: 1
... | 38.309091 | 72 | 0.60655 | 242 | 2,107 | 5.173554 | 0.429752 | 0.072684 | 0.095048 | 0.134185 | 0.293131 | 0.293131 | 0.118211 | 0 | 0 | 0 | 0 | 0.01297 | 0.268154 | 2,107 | 54 | 73 | 39.018519 | 0.798962 | 0.842905 | 0 | 0 | 0 | 0 | 0.126506 | 0.126506 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8594b3b7d8b37cd135c373d5b9112abcdfc04e12 | 1,992 | py | Python | recognizeApp/forms.py | alvexs/melanoma-recognition | b8c6a03606109005853217a114688059cdd827e8 | [
"MIT"
] | 1 | 2019-02-22T19:28:36.000Z | 2019-02-22T19:28:36.000Z | recognizeApp/forms.py | alvexs/Melanoma-recognition | b8c6a03606109005853217a114688059cdd827e8 | [
"MIT"
] | null | null | null | recognizeApp/forms.py | alvexs/Melanoma-recognition | b8c6a03606109005853217a114688059cdd827e8 | [
"MIT"
] | null | null | null | from .models import Image
from django import forms
from django.core.exceptions import ValidationError
from django.core.validators import validate_email
from django.contrib.auth.models import User
class UploadFileForm(forms.Form):
file = forms.FileField(widget=forms.FileInput({'class': 'inputfiles', 'onchange': 'an... | 36.888889 | 96 | 0.639056 | 217 | 1,992 | 5.75576 | 0.276498 | 0.114492 | 0.144115 | 0.064051 | 0.176942 | 0.060849 | 0.060849 | 0 | 0 | 0 | 0 | 0.00134 | 0.250502 | 1,992 | 53 | 97 | 37.584906 | 0.835231 | 0 | 0 | 0.068182 | 0 | 0 | 0.113956 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.25 | 0.113636 | 0 | 0.522727 | 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 |
85957d7e446c05df1361f19cbd62a6f37234868a | 533 | gyp | Python | binding.gyp | arobson/baseJump | 82a00a39d115f197b54f8fd9a08c571b5648e410 | [
"MIT"
] | 2 | 2018-12-17T03:44:26.000Z | 2020-09-28T07:09:05.000Z | binding.gyp | arobson/baseJump | 82a00a39d115f197b54f8fd9a08c571b5648e410 | [
"MIT"
] | 3 | 2020-07-16T04:34:20.000Z | 2021-01-29T21:49:18.000Z | binding.gyp | arobson/baseJump | 82a00a39d115f197b54f8fd9a08c571b5648e410 | [
"MIT"
] | 1 | 2015-08-21T22:14:53.000Z | 2015-08-21T22:14:53.000Z | {
"targets": [
{
"target_name": "baseJump",
"sources": [
"cc/baseJump.cc",
"cc/BigInteger.cc",
"cc/BigIntegerAlgorithms.cc",
"cc/BigIntegerUtils.cc",
"cc/BigUnsigned.cc",
"cc/BigUnsignedInABase.cc"
],
"include_dirs": [
"<!(node -e \"require('nan')\")"
],
"cflags!": [ "-f... | 17.193548 | 41 | 0.49531 | 46 | 533 | 5.586957 | 0.630435 | 0.077821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.277674 | 533 | 30 | 42 | 17.766667 | 0.667532 | 0 | 0 | 0.066667 | 0 | 0 | 0.530957 | 0.180113 | 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 |
859db22dcad7df828b2ac02de3134c47c7522902 | 409 | py | Python | startup/GafferSceneUI/gafferSceneExamples.py | ddesmond/gaffer | 4f25df88103b7893df75865ea919fb035f92bac0 | [
"BSD-3-Clause"
] | 561 | 2016-10-18T04:30:48.000Z | 2022-03-30T06:52:04.000Z | startup/GafferSceneUI/gafferSceneExamples.py | ddesmond/gaffer | 4f25df88103b7893df75865ea919fb035f92bac0 | [
"BSD-3-Clause"
] | 1,828 | 2016-10-14T19:01:46.000Z | 2022-03-30T16:07:19.000Z | startup/GafferSceneUI/gafferSceneExamples.py | ddesmond/gaffer | 4f25df88103b7893df75865ea919fb035f92bac0 | [
"BSD-3-Clause"
] | 120 | 2016-10-18T15:19:13.000Z | 2021-12-20T16:28:23.000Z | import Gaffer
import GafferUI
import GafferScene
GafferUI.Examples.registerExample(
"Scene Processing/Per-location Transform Spreadsheet",
"$GAFFER_ROOT/resources/examples/sceneProcessing/perLocationTransformSpreadsheet.gfr",
description = """
Demonstrates how to use the Spreadsheet node to vary transform
values ... | 24.058824 | 87 | 0.799511 | 41 | 409 | 7.95122 | 0.658537 | 0.067485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119804 | 409 | 16 | 88 | 25.5625 | 0.905556 | 0 | 0 | 0 | 0 | 0 | 0.542787 | 0.259169 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
85a85c2fd120c699133fed71a142a8aea55c9f2c | 946 | py | Python | molecule/certbot_auto_install/tests/test_default.py | kube-cloud/ansible-role-certbot | 6ce17012717cc7987caba56548487bd69c5cef14 | [
"Apache-2.0"
] | null | null | null | molecule/certbot_auto_install/tests/test_default.py | kube-cloud/ansible-role-certbot | 6ce17012717cc7987caba56548487bd69c5cef14 | [
"Apache-2.0"
] | null | null | null | molecule/certbot_auto_install/tests/test_default.py | kube-cloud/ansible-role-certbot | 6ce17012717cc7987caba56548487bd69c5cef14 | [
"Apache-2.0"
] | null | null | null | import os
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
def test_certbot_installed(host):
# Certbot command path
command_path = '/usr/local/bin/certbot-auto'
# Certbot command link path
... | 25.567568 | 65 | 0.733615 | 132 | 946 | 5.05303 | 0.318182 | 0.131934 | 0.134933 | 0.157421 | 0.367316 | 0.208396 | 0 | 0 | 0 | 0 | 0 | 0.0013 | 0.187104 | 946 | 36 | 66 | 26.277778 | 0.86606 | 0.252643 | 0 | 0 | 0 | 0 | 0.114778 | 0.110473 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
85ab48c076da64482814f971bea1ef3f14f2d234 | 12,277 | py | Python | lucent/misc/io/showing.py | fuzhanrahmanian/lucent | 13b24c3c37784185275da73c7a11095b2ae809c5 | [
"Apache-2.0"
] | 449 | 2020-05-14T13:57:02.000Z | 2022-03-31T16:54:54.000Z | lucent/misc/io/showing.py | fuzhanrahmanian/lucent | 13b24c3c37784185275da73c7a11095b2ae809c5 | [
"Apache-2.0"
] | 32 | 2020-05-15T18:13:20.000Z | 2021-12-23T09:49:35.000Z | lucent/misc/io/showing.py | fuzhanrahmanian/lucent | 13b24c3c37784185275da73c7a11095b2ae809c5 | [
"Apache-2.0"
] | 60 | 2020-05-15T16:06:05.000Z | 2022-02-28T18:02:07.000Z | # Slightly modified from original Lucid library
# Copyright 2018 The Lucid Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/license... | 35.278736 | 108 | 0.612202 | 1,488 | 12,277 | 4.981855 | 0.295699 | 0.01295 | 0.008094 | 0.007689 | 0.113989 | 0.100094 | 0.086605 | 0.076083 | 0.065291 | 0.065291 | 0 | 0.016909 | 0.272624 | 12,277 | 347 | 109 | 35.380403 | 0.813214 | 0.286063 | 0 | 0.139303 | 0 | 0.019901 | 0.619042 | 0.121977 | 0 | 0 | 0.000939 | 0 | 0 | 1 | 0.044776 | false | 0 | 0.034826 | 0 | 0.104478 | 0.014925 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
85b2dcda2816f58440174c4e537af980db53dd12 | 2,585 | py | Python | junction/conferences/admin.py | rekenerd/junction | f81e3cd9c7420fe008380c05004ba5c0a19cd7e8 | [
"MIT"
] | 1 | 2019-04-15T10:35:46.000Z | 2019-04-15T10:35:46.000Z | junction/conferences/admin.py | rekenerd/junction | f81e3cd9c7420fe008380c05004ba5c0a19cd7e8 | [
"MIT"
] | null | null | null | junction/conferences/admin.py | rekenerd/junction | f81e3cd9c7420fe008380c05004ba5c0a19cd7e8 | [
"MIT"
] | 1 | 2017-06-01T06:03:14.000Z | 2017-06-01T06:03:14.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
# Third Party Stuff
from django.contrib import admin
from simple_history.admin import SimpleHistoryAdmin
# Junction Stuff
from junction.base.admin import AuditAdmin
from . import models, service
class ConferenceAdmin(AuditAdmin):
... | 36.928571 | 97 | 0.72766 | 272 | 2,585 | 6.75 | 0.246324 | 0.04793 | 0.068627 | 0.075163 | 0.496187 | 0.44281 | 0.44281 | 0.425381 | 0.425381 | 0.425381 | 0 | 0.000468 | 0.174081 | 2,585 | 69 | 98 | 37.463768 | 0.859485 | 0.02089 | 0 | 0.469388 | 0 | 0 | 0.05461 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081633 | false | 0 | 0.102041 | 0 | 0.591837 | 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 |
85c2e63070045848f4e771bd754d9942913493e3 | 566 | py | Python | setup.py | ram6ler/ibdp_classes | bc4335a7d5e8d7bf2a983e317cd46164f57e155c | [
"MIT"
] | null | null | null | setup.py | ram6ler/ibdp_classes | bc4335a7d5e8d7bf2a983e317cd46164f57e155c | [
"MIT"
] | null | null | null | setup.py | ram6ler/ibdp_classes | bc4335a7d5e8d7bf2a983e317cd46164f57e155c | [
"MIT"
] | null | null | null | import pathlib
from setuptools import setup, find_packages
setup(
name="ibdp_classes",
version="0.3.0",
description="A interpreter and class implementation for pseudocode that may be used in IBDP Computer Science exams",
long_description=(pathlib.Path(__file__).parent / "readme.md").read_text(),
l... | 31.444444 | 120 | 0.727915 | 72 | 566 | 5.513889 | 0.791667 | 0.060453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008316 | 0.150177 | 566 | 17 | 121 | 33.294118 | 0.817048 | 0 | 0 | 0 | 0 | 0 | 0.386926 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.133333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
85c3abf1f7f72a0cb919929c40b7edd02a250666 | 1,065 | py | Python | practice_problems/prog1_vi.py | vishwasks32/python3-learning | 39f39238428727ef0c97c74c8de2570bd84da403 | [
"Apache-2.0"
] | 3 | 2018-02-08T21:09:27.000Z | 2021-06-15T04:48:46.000Z | practice_problems/prog1_vi.py | vishwasks32/python3-learning | 39f39238428727ef0c97c74c8de2570bd84da403 | [
"Apache-2.0"
] | null | null | null | practice_problems/prog1_vi.py | vishwasks32/python3-learning | 39f39238428727ef0c97c74c8de2570bd84da403 | [
"Apache-2.0"
] | 1 | 2018-02-08T21:09:31.000Z | 2018-02-08T21:09:31.000Z | #!/usr/bin/env python3
#
# Author: Vishwas K Singh
# Email: vishwasks32@gmail.com
#
# Script to Program to find Sum, Diff, Prod, Avg, Div
num1 = input("Enter the first Number: ")
num2 = input("Enter the second Number: ")
# Check if the user has entered the number itself
try:
# Convert the numbers to double always... | 28.783784 | 72 | 0.692019 | 164 | 1,065 | 4.493902 | 0.463415 | 0.065129 | 0.081411 | 0.09498 | 0.264586 | 0.240163 | 0.210312 | 0.210312 | 0.100407 | 0.100407 | 0 | 0.033526 | 0.187793 | 1,065 | 36 | 73 | 29.583333 | 0.818497 | 0.343662 | 0 | 0.210526 | 0 | 0 | 0.479532 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.421053 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
85c5a05d2ebd508d2d8144bf7f60953628ba5a01 | 414 | py | Python | classes/Area.py | avalanche05/twotwo | 39753aa7fb45846c75decec0a80a140286b8a4b7 | [
"Apache-2.0"
] | null | null | null | classes/Area.py | avalanche05/twotwo | 39753aa7fb45846c75decec0a80a140286b8a4b7 | [
"Apache-2.0"
] | null | null | null | classes/Area.py | avalanche05/twotwo | 39753aa7fb45846c75decec0a80a140286b8a4b7 | [
"Apache-2.0"
] | null | null | null | import Constant
class Area:
def __init__(self, title, login, password, area_id=-1):
self.values_name = f'{Constant.TITLE}, {Constant.LOGIN}, {Constant.PASSWORD}'
self.title = title
self.login = login
self.password = password
self.id = area_id
def get_values(self) -> st... | 29.571429 | 90 | 0.615942 | 54 | 414 | 4.574074 | 0.407407 | 0.109312 | 0.11336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003165 | 0.236715 | 414 | 13 | 91 | 31.846154 | 0.778481 | 0 | 0 | 0 | 0 | 0 | 0.149758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.4 | 0.1 | 0.1 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a413b30f9ea1a06f58c1a4b67aa216f34b37ad3b | 3,794 | py | Python | supervisor_checks/bin/xmlrpc_check.py | JakubOnderka/supervisor_checks | d35d4ba4a177eab303cb01a8a72d9007aae93e09 | [
"MIT"
] | 70 | 2015-07-04T05:47:23.000Z | 2022-02-10T09:37:42.000Z | supervisor_checks/bin/xmlrpc_check.py | JakubOnderka/supervisor_checks | d35d4ba4a177eab303cb01a8a72d9007aae93e09 | [
"MIT"
] | 14 | 2016-07-07T09:19:09.000Z | 2022-03-01T14:04:39.000Z | supervisor_checks/bin/xmlrpc_check.py | JakubOnderka/supervisor_checks | d35d4ba4a177eab303cb01a8a72d9007aae93e09 | [
"MIT"
] | 25 | 2016-02-07T21:00:12.000Z | 2022-03-30T07:04:38.000Z | #! /usr/bin/env python3
"""Example configuration:
[eventlistener:example_check]
command=/usr/local/bin/supervisor_xmlrpc_check -g example_service -n example_check -u /ping -r 3 -p 8080
events=TICK_60
"""
import argparse
import sys
from supervisor_checks import check_runner
from supervisor_checks.check_modules impor... | 41.692308 | 104 | 0.541645 | 398 | 3,794 | 5 | 0.276382 | 0.049749 | 0.09397 | 0.060302 | 0.207538 | 0.150251 | 0.150251 | 0.090452 | 0.048241 | 0 | 0 | 0.003199 | 0.340801 | 3,794 | 90 | 105 | 42.155556 | 0.792483 | 0.059831 | 0 | 0.125 | 0 | 0 | 0.239449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0.0625 | 0.0625 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a41e9eeba8d806f8e91a4a355a1432e4a00885aa | 2,060 | py | Python | app/__init__.py | HK-Zhang/FlaskAADB2C | 94f9f9a2b0f7ab8ff7b2c2f0ea601ef7bec03ca7 | [
"MIT"
] | null | null | null | app/__init__.py | HK-Zhang/FlaskAADB2C | 94f9f9a2b0f7ab8ff7b2c2f0ea601ef7bec03ca7 | [
"MIT"
] | 5 | 2021-03-11T02:37:05.000Z | 2022-02-27T08:46:36.000Z | app/__init__.py | HK-Zhang/FlaskAADB2C | 94f9f9a2b0f7ab8ff7b2c2f0ea601ef7bec03ca7 | [
"MIT"
] | null | null | null | from flask import Flask,url_for
from flask_session import Session # https://pythonhosted.org/Flask-Session
from flask_cors import CORS
from config import appinsightKey,apiversion,load_config
from opencensus.ext.azure.trace_exporter import AzureExporter
from opencensus.ext.azure.log_exporter import AzureLogHandler
from... | 39.615385 | 154 | 0.814563 | 292 | 2,060 | 5.582192 | 0.438356 | 0.034356 | 0.031288 | 0.026994 | 0.058896 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005336 | 0.090291 | 2,060 | 51 | 155 | 40.392157 | 0.864461 | 0.172816 | 0 | 0 | 0 | 0 | 0.109145 | 0.053687 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.45 | 0 | 0.45 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a422d75e4628dede77969e08c43cbadef199a0b1 | 221 | py | Python | demos/simple_usage.py | mivade/arghelp | f6607e8362abddab9309886c28c095e6d788654b | [
"MIT"
] | 1 | 2021-11-11T16:35:38.000Z | 2021-11-11T16:35:38.000Z | demos/simple_usage.py | mivade/arghelp | f6607e8362abddab9309886c28c095e6d788654b | [
"MIT"
] | null | null | null | demos/simple_usage.py | mivade/arghelp | f6607e8362abddab9309886c28c095e6d788654b | [
"MIT"
] | null | null | null | from arghelp import Application, arg
app = Application([arg("-v", "--verbose", action="store_true"), arg("name")])
args = app.parse_args()
greeting = "hello" if args.verbose else "hi"
print(f"{greeting}, {args.name}")
| 24.555556 | 77 | 0.678733 | 31 | 221 | 4.774194 | 0.677419 | 0.189189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 221 | 8 | 78 | 27.625 | 0.758974 | 0 | 0 | 0 | 0 | 0 | 0.248869 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 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 |
a42382b4a60bc477181f2ab128c163f655f3a4ad | 2,453 | py | Python | emoji_predictor/train.py | adarsa/GnabGib | b94d376599d8a846e3df269dfb36dcba3054a166 | [
"MIT"
] | null | null | null | emoji_predictor/train.py | adarsa/GnabGib | b94d376599d8a846e3df269dfb36dcba3054a166 | [
"MIT"
] | null | null | null | emoji_predictor/train.py | adarsa/GnabGib | b94d376599d8a846e3df269dfb36dcba3054a166 | [
"MIT"
] | null | null | null | # script that trains model
# ex run: python train.py datasets/1k_tweets.txt datasets/1k_labels.txt
# standard library
import sys
import time
# numpy
import numpy as np
# scikit imports
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfTransformer
from sklearn.... | 31.050633 | 83 | 0.736241 | 308 | 2,453 | 5.730519 | 0.418831 | 0.068555 | 0.063456 | 0.087252 | 0.184703 | 0.043059 | 0 | 0 | 0 | 0 | 0 | 0.003455 | 0.174073 | 2,453 | 78 | 84 | 31.448718 | 0.86772 | 0.336323 | 0 | 0 | 0 | 0 | 0.094081 | 0.048598 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0 | 0.390244 | 0 | 0.463415 | 0.073171 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a423d22a6b2168320a4fb4fa81be54cb8c95a4a9 | 923 | py | Python | cleanup.py | greencoder/noaa-alerts-pushover | 8e4c181950b09a2db5a37634ff74d34139f15334 | [
"MIT"
] | 4 | 2016-02-12T18:37:48.000Z | 2018-04-09T05:35:54.000Z | cleanup.py | greencoder/noaa-alerts-pushover | 8e4c181950b09a2db5a37634ff74d34139f15334 | [
"MIT"
] | 2 | 2018-04-09T05:35:46.000Z | 2020-09-16T14:24:47.000Z | cleanup.py | greencoder/noaa-alerts-pushover | 8e4c181950b09a2db5a37634ff74d34139f15334 | [
"MIT"
] | 2 | 2016-07-11T20:23:25.000Z | 2021-05-11T14:23:26.000Z | import arrow
import bs4
import os
import time
CUR_DIR = os.path.dirname(os.path.realpath(__file__))
OUTPUT_DIR = os.path.join(CUR_DIR, 'output')
files_to_delete = []
output_files = os.listdir(OUTPUT_DIR)
for filename in output_files:
if filename.endswith('.html'):
filepath = os.path.join(OUTPUT_DIR... | 23.075 | 61 | 0.624052 | 121 | 923 | 4.545455 | 0.471074 | 0.043636 | 0.070909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002941 | 0.263272 | 923 | 39 | 62 | 23.666667 | 0.805882 | 0 | 0 | 0.074074 | 0 | 0 | 0.07909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.148148 | null | null | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a424e745014ad956e3effb0692265f81e1f39a6f | 2,544 | py | Python | tests/core/test_utils.py | laurenrevere/waterbutler | 4f358d94376997cd9592b18b67d13a7482c7aa2a | [
"Apache-2.0"
] | null | null | null | tests/core/test_utils.py | laurenrevere/waterbutler | 4f358d94376997cd9592b18b67d13a7482c7aa2a | [
"Apache-2.0"
] | null | null | null | tests/core/test_utils.py | laurenrevere/waterbutler | 4f358d94376997cd9592b18b67d13a7482c7aa2a | [
"Apache-2.0"
] | null | null | null | import asyncio
from unittest import mock
import pytest
from tests.utils import async
from waterbutler.core import utils
class TestAsyncRetry:
@async
def test_returns_success(self):
mock_func = mock.Mock(return_value='Foo')
retryable = utils.async_retry(5, 0, raven=None)(mock_func)
... | 26.778947 | 67 | 0.599843 | 321 | 2,544 | 4.579439 | 0.246106 | 0.081633 | 0.090476 | 0.114286 | 0.512245 | 0.480272 | 0.438776 | 0.438776 | 0.393878 | 0.338095 | 0 | 0.014286 | 0.284591 | 2,544 | 94 | 68 | 27.06383 | 0.793407 | 0 | 0 | 0.338462 | 0 | 0 | 0.027789 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 0 | null | null | 0.015385 | 0.076923 | 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 |
a431557429a08916c4d101567d9c0aa248db84c7 | 1,017 | py | Python | apps/cards/admin.py | silverlogic/plum-back | a3c5e0ec2bfd060456d70146d29bf4c70974f132 | [
"MIT"
] | 1 | 2019-06-19T21:51:17.000Z | 2019-06-19T21:51:17.000Z | apps/cards/admin.py | silverlogic/plum-back | a3c5e0ec2bfd060456d70146d29bf4c70974f132 | [
"MIT"
] | null | null | null | apps/cards/admin.py | silverlogic/plum-back | a3c5e0ec2bfd060456d70146d29bf4c70974f132 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Card, Rule, Transfer, Transaction
class CardAdmin(admin.ModelAdmin):
fieldsets = (
(None, {
'fields': ('owner_id', 'owner_type', 'name_on_card', 'number',
'expiration_date', 'type', 'sub_type', 'amount_on_card',
... | 23.113636 | 79 | 0.571288 | 93 | 1,017 | 6.107527 | 0.387097 | 0.105634 | 0.169014 | 0.197183 | 0.253521 | 0.133803 | 0 | 0 | 0 | 0 | 0 | 0 | 0.27532 | 1,017 | 43 | 80 | 23.651163 | 0.770692 | 0 | 0 | 0.375 | 0 | 0 | 0.185841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.3125 | 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 |
a4330f011b658aabc4d1b1da3b4301278edf1984 | 2,880 | py | Python | firestore/examples/end2end/src/UpdateDocument.py | qixuanl1/grpc-gcp-python | 5a2cd9807bbaf1b85402a2a364775e5b65853df6 | [
"Apache-2.0"
] | 10 | 2019-01-14T19:05:06.000Z | 2021-03-08T18:48:47.000Z | firestore/examples/end2end/src/UpdateDocument.py | qixuanl1/grpc-gcp-python | 5a2cd9807bbaf1b85402a2a364775e5b65853df6 | [
"Apache-2.0"
] | 3 | 2018-09-10T17:52:44.000Z | 2019-03-28T00:44:21.000Z | firestore/examples/end2end/src/UpdateDocument.py | qixuanl1/grpc-gcp-python | 5a2cd9807bbaf1b85402a2a364775e5b65853df6 | [
"Apache-2.0"
] | 11 | 2018-08-28T11:48:19.000Z | 2021-10-09T16:18:36.000Z | #! /usr/bin/python
import sys
import os
import json
import grpc
import time
import subprocess
from google.oauth2 import service_account
import google.oauth2.credentials
import google.auth.transport.requests
import google.auth.transport.grpc
from google.firestore.v1beta1 import firestore_pb2
from google.firestore.v1be... | 38.4 | 154 | 0.671181 | 343 | 2,880 | 5.431487 | 0.291545 | 0.059045 | 0.081589 | 0.111648 | 0.329039 | 0.292002 | 0.258722 | 0.049383 | 0 | 0 | 0 | 0.017455 | 0.244097 | 2,880 | 74 | 155 | 38.918919 | 0.83831 | 0.017708 | 0 | 0 | 0 | 0.020833 | 0.151044 | 0.009904 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020833 | false | 0 | 0.416667 | 0 | 0.4375 | 0.020833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a44abac7013360c42d9c77b79ddbfb607ac24828 | 711 | py | Python | core/settings/local.py | convers39/IR-ecommerce | 57665aace80c14b52a40a9576de8b433a13f8f3f | [
"MIT"
] | 2 | 2021-10-12T11:04:57.000Z | 2022-01-04T08:17:11.000Z | core/settings/local.py | convers39/IR-ecommerce | 57665aace80c14b52a40a9576de8b433a13f8f3f | [
"MIT"
] | null | null | null | core/settings/local.py | convers39/IR-ecommerce | 57665aace80c14b52a40a9576de8b433a13f8f3f | [
"MIT"
] | 1 | 2021-04-30T16:43:29.000Z | 2021-04-30T16:43:29.000Z | from .base import *
DEBUG = True
DOMAIN = 'http://127.0.0.1:8080'
STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static'), ]
# for debug tool:
DEBUG_TOOLBAR_PATCH_SETTINGS = False
if DEBUG:
INSTALLED_APPS += ['debug_toolbar']
MIDDLEWARE += ['debug_toolbar.middleware.DebugToolbarMiddleware', ]
DEBUG_TOOLBAR_C... | 30.913043 | 71 | 0.745429 | 98 | 711 | 5.081633 | 0.5 | 0.108434 | 0.156627 | 0.10241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016026 | 0.122363 | 711 | 22 | 72 | 32.318182 | 0.782051 | 0.021097 | 0 | 0 | 0 | 0 | 0.32853 | 0.159942 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.055556 | 0.055556 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a452b0b8f9138fee0d18bddd93e9d01a0fc4ceaa | 34,390 | py | Python | tests/test_client.py | fjarri/pons | ab3579e142f7b7adb86b0476ec25c722051134c7 | [
"MIT"
] | null | null | null | tests/test_client.py | fjarri/pons | ab3579e142f7b7adb86b0476ec25c722051134c7 | [
"MIT"
] | 1 | 2022-03-21T05:53:06.000Z | 2022-03-21T05:53:06.000Z | tests/test_client.py | fjarri/pons | ab3579e142f7b7adb86b0476ec25c722051134c7 | [
"MIT"
] | null | null | null | from contextlib import contextmanager
import os
from pathlib import Path
import pytest
import trio
from pons import (
abi,
ABIDecodingError,
Address,
Amount,
ContractABI,
DeployedContract,
ReadMethod,
TxHash,
BlockHash,
Block,
Either,
ContractPanic,
ContractLegacyEr... | 40.222222 | 100 | 0.734603 | 4,390 | 34,390 | 5.522323 | 0.098633 | 0.079693 | 0.03403 | 0.050283 | 0.755435 | 0.716413 | 0.684899 | 0.656313 | 0.616962 | 0.554841 | 0 | 0.023681 | 0.173626 | 34,390 | 854 | 101 | 40.269321 | 0.829375 | 0.072288 | 0 | 0.441941 | 0 | 0 | 0.051536 | 0.002563 | 0 | 0 | 0.000348 | 0.001171 | 0.135182 | 1 | 0.019064 | false | 0.001733 | 0.020797 | 0 | 0.045061 | 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 |
a4548570e9100b45dc7f3ed1d57f183d03d53890 | 2,624 | py | Python | marsyas-vamp/marsyas/src/marsyas_python/chuck_like.py | jaouahbi/VampPlugins | 27c2248d1c717417fe4d448cdfb4cb882a8a336a | [
"Apache-2.0"
] | null | null | null | marsyas-vamp/marsyas/src/marsyas_python/chuck_like.py | jaouahbi/VampPlugins | 27c2248d1c717417fe4d448cdfb4cb882a8a336a | [
"Apache-2.0"
] | null | null | null | marsyas-vamp/marsyas/src/marsyas_python/chuck_like.py | jaouahbi/VampPlugins | 27c2248d1c717417fe4d448cdfb4cb882a8a336a | [
"Apache-2.0"
] | null | null | null | import marsyas
import random
import math
def mtof(pitch):
return 440.0 * math.pow(2.0, (pitch-69.0) / 12.0)
def set_freq(control, freq):
control.setValue_real(freq)
def dispatch(time, times, f, control, freq):
if (len(times) > 0):
if (time > times[0]):
f(control,freq)
... | 29.818182 | 103 | 0.636814 | 352 | 2,624 | 4.653409 | 0.298295 | 0.042735 | 0.07326 | 0.051282 | 0.151404 | 0.041514 | 0 | 0 | 0 | 0 | 0 | 0.042954 | 0.210366 | 2,624 | 87 | 104 | 30.16092 | 0.747587 | 0.060595 | 0 | 0.033898 | 0 | 0 | 0.176303 | 0.101384 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.050847 | null | null | 0.016949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a45873f23dc48f76e4b291b277ee7e0c9f287d84 | 520 | py | Python | x/migrations/0014_gpior2_image.py | Girbonsp/Domotic_Control | 6d4f53266aca3629cb924830335a2386cec9d248 | [
"BSD-2-Clause"
] | null | null | null | x/migrations/0014_gpior2_image.py | Girbonsp/Domotic_Control | 6d4f53266aca3629cb924830335a2386cec9d248 | [
"BSD-2-Clause"
] | 2 | 2016-11-26T15:39:03.000Z | 2016-11-26T15:41:20.000Z | x/migrations/0014_gpior2_image.py | Girbons/Domotic_Control | 6d4f53266aca3629cb924830335a2386cec9d248 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-04-21 06:38
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('x', '0013_icon_text'),
]
operations = [
migra... | 23.636364 | 107 | 0.630769 | 62 | 520 | 5.145161 | 0.693548 | 0.075235 | 0.087774 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050505 | 0.238462 | 520 | 21 | 108 | 24.761905 | 0.755051 | 0.125 | 0 | 0 | 1 | 0 | 0.070796 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a458ccfcc3eea8a96be1112eb54618907558119d | 3,252 | py | Python | flaskshop/api/product.py | bhardwajRahul/flask-shop | 66c82f6e2cea81b7a1dd64b75b2c356f2b464f5a | [
"BSD-3-Clause"
] | null | null | null | flaskshop/api/product.py | bhardwajRahul/flask-shop | 66c82f6e2cea81b7a1dd64b75b2c356f2b464f5a | [
"BSD-3-Clause"
] | null | null | null | flaskshop/api/product.py | bhardwajRahul/flask-shop | 66c82f6e2cea81b7a1dd64b75b2c356f2b464f5a | [
"BSD-3-Clause"
] | null | null | null | from flask_restplus import Namespace, Resource, fields
from flask_login import current_user
from flask import request
from flask_babel import lazy_gettext
from flaskshop.product.models import Product
from flaskshop.checkout.models import Cart
api = Namespace("products", description=lazy_gettext("Products related oper... | 39.658537 | 96 | 0.683579 | 388 | 3,252 | 5.608247 | 0.229381 | 0.111213 | 0.122243 | 0.183824 | 0.46921 | 0.440257 | 0.440257 | 0.396599 | 0.362592 | 0.233456 | 0 | 0.004114 | 0.177737 | 3,252 | 81 | 97 | 40.148148 | 0.809648 | 0.02091 | 0 | 0.142857 | 0 | 0 | 0.192866 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042857 | false | 0 | 0.085714 | 0 | 0.2 | 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 |
a45a7bcbf00e41579e49158eeed1b17e8088d715 | 869 | py | Python | fleet/auth_hooks.py | Dreadbomb/allianceauth-fleet | 5eb23018a2bd20602cf1c9aa2cda88b80a1a5514 | [
"MIT"
] | 1 | 2020-08-16T21:10:45.000Z | 2020-08-16T21:10:45.000Z | fleet/auth_hooks.py | Dreadbomb/allianceauth-fleet | 5eb23018a2bd20602cf1c9aa2cda88b80a1a5514 | [
"MIT"
] | 6 | 2020-06-13T03:51:26.000Z | 2020-09-16T17:17:28.000Z | fleet/auth_hooks.py | Dreadbomb/allianceauth-fleet | 5eb23018a2bd20602cf1c9aa2cda88b80a1a5514 | [
"MIT"
] | 4 | 2020-09-16T16:07:15.000Z | 2020-12-13T15:34:27.000Z | from django.utils.translation import ugettext_lazy as _
from allianceauth.services.hooks import MenuItemHook, UrlHook
from allianceauth import hooks
from . import urls
class FleetMenuItem(MenuItemHook):
""" This class ensures only authorized users will see the menu entry """
def __init__(self):
# s... | 24.138889 | 76 | 0.64672 | 97 | 869 | 5.608247 | 0.505155 | 0.058824 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247411 | 869 | 35 | 77 | 24.828571 | 0.831804 | 0.109321 | 0 | 0 | 0 | 0 | 0.123859 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.173913 | 0.086957 | 0.565217 | 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 |
a45fa1b681419017847f1b2b3185b4cbcfe5debf | 492 | py | Python | txircd/modules/rfc/response_error.py | guyguy2001/txircd | d548975a775a3582ebb2f480474cfa3e79a26b8c | [
"BSD-3-Clause"
] | 19 | 2015-07-06T21:24:15.000Z | 2021-04-01T13:05:46.000Z | txircd/modules/rfc/response_error.py | guyguy2001/txircd | d548975a775a3582ebb2f480474cfa3e79a26b8c | [
"BSD-3-Clause"
] | 37 | 2015-01-16T10:01:28.000Z | 2021-06-01T14:17:49.000Z | txircd/modules/rfc/response_error.py | guyguy2001/txircd | d548975a775a3582ebb2f480474cfa3e79a26b8c | [
"BSD-3-Clause"
] | 4 | 2016-09-15T02:48:43.000Z | 2020-01-14T17:23:50.000Z | from twisted.plugin import IPlugin
from txircd.module_interface import IModuleData, ModuleData
from zope.interface import implements
class ErrorResponse(ModuleData):
implements(IPlugin, IModuleData)
name = "ErrorResponse"
core = True
def actions(self):
return [ ("quit", 10, self.sendError) ]
def sendError... | 28.941176 | 117 | 0.739837 | 57 | 492 | 6.368421 | 0.631579 | 0.082645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004662 | 0.128049 | 492 | 17 | 118 | 28.941176 | 0.841492 | 0 | 0 | 0 | 0 | 0 | 0.093306 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0.083333 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a4623f0c29cef64fe31b396a96ef61d23852bed2 | 3,973 | py | Python | python/scrap.py | AIJakel/ForexPredictorBackend | 072ce19fab9a4b8cfdea50e6a405b21f781ea7ec | [
"MIT"
] | null | null | null | python/scrap.py | AIJakel/ForexPredictorBackend | 072ce19fab9a4b8cfdea50e6a405b21f781ea7ec | [
"MIT"
] | null | null | null | python/scrap.py | AIJakel/ForexPredictorBackend | 072ce19fab9a4b8cfdea50e6a405b21f781ea7ec | [
"MIT"
] | 1 | 2019-08-24T14:49:24.000Z | 2019-08-24T14:49:24.000Z | from tensorflow.keras.callbacks import TensorBoard
import tensorflow as tf
from keras.layers import Dropout
from sqlalchemy import create_engine
from sklearn.preprocessing import StandardScaler
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import time
import constants
# creates the ... | 40.131313 | 201 | 0.655928 | 616 | 3,973 | 4.131494 | 0.297078 | 0.078585 | 0.094303 | 0.033006 | 0.168173 | 0.167387 | 0.157171 | 0.157171 | 0.141454 | 0.141454 | 0 | 0.028857 | 0.14523 | 3,973 | 98 | 202 | 40.540816 | 0.720554 | 0.095394 | 0 | 0 | 0 | 0 | 0.183252 | 0.018354 | 0 | 0 | 0 | 0.010204 | 0 | 1 | 0 | false | 0.028169 | 0.140845 | 0 | 0.140845 | 0.126761 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
a464cd2d73a850bc4e84c66e6a04e6f3ef511449 | 7,004 | py | Python | sdk/python/pulumi_aws_native/glue/data_catalog_encryption_settings.py | AaronFriel/pulumi-aws-native | 5621690373ac44accdbd20b11bae3be1baf022d1 | [
"Apache-2.0"
] | 29 | 2021-09-30T19:32:07.000Z | 2022-03-22T21:06:08.000Z | sdk/python/pulumi_aws_native/glue/data_catalog_encryption_settings.py | AaronFriel/pulumi-aws-native | 5621690373ac44accdbd20b11bae3be1baf022d1 | [
"Apache-2.0"
] | 232 | 2021-09-30T19:26:26.000Z | 2022-03-31T23:22:06.000Z | sdk/python/pulumi_aws_native/glue/data_catalog_encryption_settings.py | AaronFriel/pulumi-aws-native | 5621690373ac44accdbd20b11bae3be1baf022d1 | [
"Apache-2.0"
] | 4 | 2021-11-10T19:42:01.000Z | 2022-02-05T10:15:49.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | 48.303448 | 228 | 0.702313 | 723 | 7,004 | 6.46888 | 0.197787 | 0.032713 | 0.076331 | 0.105409 | 0.504383 | 0.46718 | 0.440881 | 0.399829 | 0.342313 | 0.315801 | 0 | 0.000182 | 0.215734 | 7,004 | 144 | 229 | 48.638889 | 0.851265 | 0.15434 | 0 | 0.340206 | 1 | 0.030928 | 0.247785 | 0.128931 | 0 | 0 | 0 | 0 | 0 | 1 | 0.123711 | false | 0.010309 | 0.072165 | 0.041237 | 0.268041 | 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 |
a46ddbb9b44de85b95df955db8f634a085eb2b42 | 5,777 | py | Python | PBKDF2.py | greenteadigital/pycrypto | e6aa3bfbcf22e95fd15b710311b05e82bae8bdec | [
"MIT"
] | 1 | 2015-10-26T16:25:55.000Z | 2015-10-26T16:25:55.000Z | PBKDF2.py | greenteadigital/pycrypto | e6aa3bfbcf22e95fd15b710311b05e82bae8bdec | [
"MIT"
] | null | null | null | PBKDF2.py | greenteadigital/pycrypto | e6aa3bfbcf22e95fd15b710311b05e82bae8bdec | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import getpass
from hashlib import sha512, sha384, sha256, sha224
import os
import struct
import sys
import zlib
import bz2
from io import BytesIO as _bio
import userinput as usr
import traceback
from nullcompressor import NullCompressor
ALGOS = {
0: sha224,
1: sha256,
2: sha384,
3: sha512
}... | 26.74537 | 97 | 0.665743 | 773 | 5,777 | 4.84088 | 0.263907 | 0.033672 | 0.014965 | 0.019241 | 0.16248 | 0.112507 | 0.102352 | 0.095136 | 0.079637 | 0.033672 | 0 | 0.024281 | 0.187294 | 5,777 | 216 | 98 | 26.74537 | 0.772737 | 0.0251 | 0 | 0.268817 | 0 | 0 | 0.100338 | 0 | 0 | 0 | 0.001423 | 0 | 0.048387 | 1 | 0.032258 | false | 0.112903 | 0.05914 | 0 | 0.11828 | 0.091398 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a47214f08cdb9179511e45f4e2cbf4cbefb633ee | 1,708 | py | Python | mention/helper.py | abhi1010/mention-bot-gitlab | 3738dcee941ea7b268277bfaeac0b097ee487d27 | [
"MIT"
] | null | null | null | mention/helper.py | abhi1010/mention-bot-gitlab | 3738dcee941ea7b268277bfaeac0b097ee487d27 | [
"MIT"
] | null | null | null | mention/helper.py | abhi1010/mention-bot-gitlab | 3738dcee941ea7b268277bfaeac0b097ee487d27 | [
"MIT"
] | null | null | null | import yaml
import json
import json, ast, datetime
from datetime import timedelta
_DATE_FMT = '%Y-%m-%dT%H:%M:%S'
# returns a dictionary
def load_dictionary(encoded_dict):
e = yaml.dump(encoded_dict).replace('!!python/unicode ', '')
return yaml.load(e)
# returns a string
def load_yaml_as_str(encoded_dict):
... | 25.878788 | 78 | 0.686768 | 250 | 1,708 | 4.416 | 0.288 | 0.059783 | 0.048913 | 0.057065 | 0.435688 | 0.412138 | 0.344203 | 0.217391 | 0.217391 | 0.217391 | 0 | 0.006623 | 0.204333 | 1,708 | 65 | 79 | 26.276923 | 0.80574 | 0.046253 | 0 | 0.272727 | 0 | 0 | 0.048059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204545 | false | 0 | 0.090909 | 0 | 0.477273 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a47718cf1297f19333b3580688a58b30f04e575d | 2,534 | py | Python | pages/error404.py | LucaMenestrina/SARS-CoV-2_Networker | 733eb8e4cf4fcfad06b7776067e5a87e9ee92ddb | [
"MIT"
] | null | null | null | pages/error404.py | LucaMenestrina/SARS-CoV-2_Networker | 733eb8e4cf4fcfad06b7776067e5a87e9ee92ddb | [
"MIT"
] | null | null | null | pages/error404.py | LucaMenestrina/SARS-CoV-2_Networker | 733eb8e4cf4fcfad06b7776067e5a87e9ee92ddb | [
"MIT"
] | null | null | null | import dash_core_components as dcc
import dash_bootstrap_components as dbc
import dash_html_components as html
from building_blocks import *
from callbacks import *
prefix = "error404"
print("Loading " + prefix.capitalize() + " ...")
layout = dbc.Col(
[
dbc.Col(
[
html.Br(),
... | 38.984615 | 92 | 0.219811 | 125 | 2,534 | 4.4 | 0.608 | 0.054545 | 0.036364 | 0.047273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026702 | 0.70442 | 2,534 | 64 | 93 | 39.59375 | 0.70761 | 0 | 0 | 0.35 | 0 | 0 | 0.110497 | 0.012628 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.016667 | 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 |
a47a0914c862fd22b7834eb56b21f958c7bc2bd8 | 755 | py | Python | fact-bounty-flask/migrations/versions/f766ca85916b_add_type.py | prakashujjwal1010/fact-Bounty | 18cf8ff12b0bcc8ffda4e046d2638e5d2fcbce60 | [
"Apache-2.0"
] | null | null | null | fact-bounty-flask/migrations/versions/f766ca85916b_add_type.py | prakashujjwal1010/fact-Bounty | 18cf8ff12b0bcc8ffda4e046d2638e5d2fcbce60 | [
"Apache-2.0"
] | null | null | null | fact-bounty-flask/migrations/versions/f766ca85916b_add_type.py | prakashujjwal1010/fact-Bounty | 18cf8ff12b0bcc8ffda4e046d2638e5d2fcbce60 | [
"Apache-2.0"
] | null | null | null | """add type
Revision ID: f766ca85916b
Revises:
Create Date: 2019-03-23 11:29:46.634200
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'f766ca85916b'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated... | 22.878788 | 65 | 0.643709 | 89 | 755 | 5.382022 | 0.573034 | 0.056367 | 0.087683 | 0.096033 | 0.438413 | 0.438413 | 0.438413 | 0.438413 | 0.438413 | 0.438413 | 0 | 0.072539 | 0.233113 | 755 | 32 | 66 | 23.59375 | 0.75475 | 0.368212 | 0 | 0.285714 | 0 | 0 | 0.081818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.142857 | 0 | 0.285714 | 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 |
a47b1f621703c253f06ea1bf1bd46c91350c4b1f | 7,965 | py | Python | setup.py | Leibniz-HBI/RADICES | 37ce6303c646b9683c5a9c3159489d290bb16ade | [
"MIT"
] | 13 | 2019-07-18T15:28:02.000Z | 2022-01-03T15:16:06.000Z | setup.py | manilevian/RADICES | 23d119c9c648dc07be4f39dc070b447f89e192f3 | [
"MIT"
] | 23 | 2019-07-12T15:43:27.000Z | 2021-12-15T14:41:11.000Z | setup.py | manilevian/RADICES | 23d119c9c648dc07be4f39dc070b447f89e192f3 | [
"MIT"
] | 2 | 2020-05-05T10:22:50.000Z | 2020-08-31T11:10:07.000Z | import json
from json import JSONDecodeError
import pandas as pd
from requests import post
import yaml
# General class for necessary file imports
class FileImport():
def read_app_key_file(self, filename: str = "keys.json") -> tuple:
"""Reads file with consumer key and consumer secret (JSON)
Args:... | 40.025126 | 98 | 0.564595 | 913 | 7,965 | 4.800657 | 0.234392 | 0.025097 | 0.022587 | 0.02601 | 0.141456 | 0.091946 | 0.046087 | 0.02966 | 0 | 0 | 0 | 0.000956 | 0.343377 | 7,965 | 198 | 99 | 40.227273 | 0.837094 | 0.243063 | 0 | 0.159292 | 0 | 0 | 0.256046 | 0.008938 | 0 | 0 | 0 | 0.015152 | 0 | 1 | 0.044248 | false | 0.017699 | 0.053097 | 0 | 0.159292 | 0.044248 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
a47b939badc4b1840af374daa1d95d8453542815 | 376 | py | Python | khipu/admin.py | josematiasarevalo/django-khipu | d21c21ee3d3a1bb460a9eb942359d97ccda6fe05 | [
"MIT"
] | 4 | 2018-01-03T02:41:20.000Z | 2022-02-11T20:54:06.000Z | khipu/admin.py | josematiasarevalo/django-khipu | d21c21ee3d3a1bb460a9eb942359d97ccda6fe05 | [
"MIT"
] | null | null | null | khipu/admin.py | josematiasarevalo/django-khipu | d21c21ee3d3a1bb460a9eb942359d97ccda6fe05 | [
"MIT"
] | 3 | 2018-07-18T06:52:11.000Z | 2020-03-03T04:36:44.000Z | from django.contrib import admin
from .models import Payment
class PaymentAdmin(admin.ModelAdmin):
"""
Modelo de administracion de Ordenes de Khipu
"""
list_display = (
"id", "payment_id", "subject", "currency", "amount",
"status"
)
search_fields = ["payment_id"]
list_per_... | 19.789474 | 60 | 0.656915 | 42 | 376 | 5.738095 | 0.690476 | 0.074689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010345 | 0.228723 | 376 | 18 | 61 | 20.888889 | 0.82069 | 0.117021 | 0 | 0 | 0 | 0 | 0.155063 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 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 |
a486be157a5c244e4d37155069b4573a977312f9 | 784 | py | Python | ktrain/vision/__init__.py | RobWillison/ktrain | 4c690bad3046a43c0cae7b86a8e28463f8cba0a8 | [
"Apache-2.0"
] | 1,013 | 2019-06-04T14:25:24.000Z | 2022-03-26T05:52:00.000Z | ktrain/vision/__init__.py | Shifath472533/ktrain | 3228f336ba5be4d317538c1b79f8ad0259892b2d | [
"Apache-2.0"
] | 427 | 2019-06-17T13:45:50.000Z | 2022-03-25T16:23:49.000Z | ktrain/vision/__init__.py | Shifath472533/ktrain | 3228f336ba5be4d317538c1b79f8ad0259892b2d | [
"Apache-2.0"
] | 272 | 2019-06-05T03:19:07.000Z | 2022-03-28T02:23:37.000Z | from .models import print_image_classifiers, image_classifier
from .models import print_image_regression_models, image_regression_model
from .data import show_image, show_random_images, preview_data_aug, get_data_aug
from .data import images_from_folder, images_from_csv, images_from_array, images_from_fname, preprocess... | 43.555556 | 107 | 0.72449 | 92 | 784 | 5.608696 | 0.26087 | 0.155039 | 0.062016 | 0.081395 | 0.48062 | 0.379845 | 0.379845 | 0.379845 | 0.228682 | 0.228682 | 0 | 0 | 0.201531 | 784 | 17 | 108 | 46.117647 | 0.824281 | 0 | 0 | 0 | 0 | 0 | 0.307791 | 0.094508 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.3125 | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a49e1c8720b1330cc6e9a35dbca16a64381e775e | 321 | py | Python | examples/full_example_service/launcher.py | tegin/telegram-broker | 1258c6cc770b84c29989cb2f31521593d7c07fe4 | [
"BSD-3-Clause"
] | 1 | 2020-07-24T08:00:28.000Z | 2020-07-24T08:00:28.000Z | examples/full_example_service/launcher.py | tegin/telegram-broker | 1258c6cc770b84c29989cb2f31521593d7c07fe4 | [
"BSD-3-Clause"
] | null | null | null | examples/full_example_service/launcher.py | tegin/telegram-broker | 1258c6cc770b84c29989cb2f31521593d7c07fe4 | [
"BSD-3-Clause"
] | null | null | null | import logging.config
import os
from telegram_broker import OdooSecureBroker as Broker
path = os.path.dirname(os.path.realpath(__file__))
log_folder = path + "/log"
if not os.path.isdir(log_folder):
os.mkdir(log_folder)
logging.config.fileConfig(path + "/telegram.logging.conf")
Broker(path + "/broker.conf").run()... | 26.75 | 58 | 0.760125 | 47 | 321 | 5.021277 | 0.468085 | 0.076271 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105919 | 321 | 11 | 59 | 29.181818 | 0.8223 | 0 | 0 | 0 | 0 | 0 | 0.11838 | 0.068536 | 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 |
a4a08a12f64e0848af1f86b7b67e4c220433ce8f | 3,272 | py | Python | ircbot.py | Technik-Tueftler/TeTueTwitchBot | e67abc1493d02ec890a4d31dd57a5bc7715f85c5 | [
"BSD-3-Clause"
] | 2 | 2021-04-03T23:19:55.000Z | 2021-04-12T19:50:39.000Z | ircbot.py | Technik-Tueftler/TeTueTwitchBot | e67abc1493d02ec890a4d31dd57a5bc7715f85c5 | [
"BSD-3-Clause"
] | 4 | 2020-12-27T11:35:46.000Z | 2021-02-28T00:35:04.000Z | ircbot.py | Technik-Tueftler/TeTueTwitchBot | e67abc1493d02ec890a4d31dd57a5bc7715f85c5 | [
"BSD-3-Clause"
] | null | null | null | import logging
import sys
import tetueSrc
from irc.bot import SingleServerIRCBot
# config
HOST = 'irc.twitch.tv'
PORT = 6667
read_successful, cfg = tetueSrc.get_configuration("bot")
CLIENT_ID = cfg["client_id"]
owner = cfg["owner"]
USERNAME = cfg["name"].lower()
TOKEN = cfg["token"]
PASSWORD = f"oauth:{TOKEN}"
CHANNE... | 33.387755 | 100 | 0.667176 | 399 | 3,272 | 5.218045 | 0.273183 | 0.036984 | 0.043228 | 0.048031 | 0.245437 | 0.184918 | 0.170989 | 0.101825 | 0.060519 | 0.060519 | 0 | 0.005378 | 0.204462 | 3,272 | 98 | 101 | 33.387755 | 0.794468 | 0.014364 | 0 | 0.052632 | 0 | 0 | 0.11511 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.118421 | false | 0.052632 | 0.052632 | 0.013158 | 0.223684 | 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 |
a4a14edadd5565f51a05913cfdbda7aa56a87626 | 16,092 | py | Python | speechcoder_ext/grammar/test.py | bcgrendel/Speechcoder | 314d986c6fd12378f1515d561fc472ba3e143f76 | [
"MIT"
] | null | null | null | speechcoder_ext/grammar/test.py | bcgrendel/Speechcoder | 314d986c6fd12378f1515d561fc472ba3e143f76 | [
"MIT"
] | null | null | null | speechcoder_ext/grammar/test.py | bcgrendel/Speechcoder | 314d986c6fd12378f1515d561fc472ba3e143f76 | [
"MIT"
] | null | null | null | """
from dragonfly.grammar.grammar import Grammar
from dragonfly.grammar.context import AppContext
from dragonfly.grammar.rule_mapping import MappingRule
from dragonfly.grammar.elements import Dictation
from dragonfly.actions.actions import Key, Text
from dragonfly import (Grammar, AppContext, CompoundRu... | 22.664789 | 163 | 0.543127 | 2,449 | 16,092 | 3.447938 | 0.133524 | 0.017054 | 0.008527 | 0.007816 | 0.375415 | 0.331833 | 0.280317 | 0.2545 | 0.22063 | 0.215538 | 0 | 0.009588 | 0.222222 | 16,092 | 709 | 164 | 22.696756 | 0.665069 | 0.074447 | 0 | 0.436823 | 0 | 0.00361 | 0.139359 | 0.019096 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.016245 | 0.01444 | null | null | 0.009025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a4a7f1f6b21cd194fb13c6a6ea902f71976553d3 | 192 | py | Python | Standard_deviation.py | shsarv/Hackerrank-10-Days-of-Statistics | dc42865d64c183db3e6aee7346e119d8a6fc021a | [
"MIT"
] | 1 | 2020-10-16T16:04:38.000Z | 2020-10-16T16:04:38.000Z | Standard_deviation.py | shsarv/Hackerrank-10-Days-of-Statistics | dc42865d64c183db3e6aee7346e119d8a6fc021a | [
"MIT"
] | null | null | null | Standard_deviation.py | shsarv/Hackerrank-10-Days-of-Statistics | dc42865d64c183db3e6aee7346e119d8a6fc021a | [
"MIT"
] | 1 | 2021-02-06T23:52:42.000Z | 2021-02-06T23:52:42.000Z | n=int(input())
arr=list(map(int,input().split()))
a=0
p=0
for k in range(0,n):
a=a+arr[k]
for j in range(0,n):
d=(arr[j] - (a/n))**2
p=p+d
sigma=float ((p/n)**(1/2))
print(sigma)
| 14.769231 | 34 | 0.536458 | 46 | 192 | 2.23913 | 0.456522 | 0.15534 | 0.15534 | 0.174757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044025 | 0.171875 | 192 | 12 | 35 | 16 | 0.603774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8ef665c141aa408f37103b9888a64b434ab800d0 | 858 | py | Python | search.py | jssuoyii/ac_automaton | d41a396f3b33676d0a335802f7e0b54388e6eacd | [
"MIT"
] | 2 | 2018-07-05T08:58:31.000Z | 2018-12-17T04:00:44.000Z | search.py | jssuoyii/ac_automaton | d41a396f3b33676d0a335802f7e0b54388e6eacd | [
"MIT"
] | null | null | null | search.py | jssuoyii/ac_automaton | d41a396f3b33676d0a335802f7e0b54388e6eacd | [
"MIT"
] | null | null | null | import ac_automaton
import sys
class Filter(object):
def __init__(self):
bad_words = set()
fp = open(sys.argv[1], 'rb')
for word in fp:
bad_words.add(word.strip('\n').decode('utf-8'))
fp.close()
self.ac = ac_automaton.Ac_automaton(bad_words)
def get(self, t... | 27.677419 | 79 | 0.543124 | 115 | 858 | 3.921739 | 0.408696 | 0.070953 | 0.066519 | 0.079823 | 0.181818 | 0.097561 | 0 | 0 | 0 | 0 | 0 | 0.016949 | 0.312354 | 858 | 30 | 80 | 28.6 | 0.747458 | 0 | 0 | 0.153846 | 0 | 0 | 0.02331 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8ef8d8532f484296591b59e593ed0594fb65b9fb | 77,254 | py | Python | misp_stix_converter/stix2misp/internal_stix2_to_misp.py | chrisr3d/Py-MISP-STIX-Converter | 8eb77e47ca0ceb67d17222d2ac632725ddf65863 | [
"BSD-2-Clause"
] | null | null | null | misp_stix_converter/stix2misp/internal_stix2_to_misp.py | chrisr3d/Py-MISP-STIX-Converter | 8eb77e47ca0ceb67d17222d2ac632725ddf65863 | [
"BSD-2-Clause"
] | null | null | null | misp_stix_converter/stix2misp/internal_stix2_to_misp.py | chrisr3d/Py-MISP-STIX-Converter | 8eb77e47ca0ceb67d17222d2ac632725ddf65863 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from .exceptions import (
AttributeFromPatternParsingError, UndefinedSTIXObjectError,
UndefinedIndicatorError, UndefinedObservableError, UnknownParsingFunctionError)
from .internal_stix2_mapping import InternalSTIX2Mapping
from .stix2_to_misp import STIX2toMISPPar... | 49.617213 | 128 | 0.63154 | 7,829 | 77,254 | 5.837783 | 0.036403 | 0.061964 | 0.029057 | 0.04411 | 0.751291 | 0.70123 | 0.647099 | 0.602223 | 0.565049 | 0.544351 | 0 | 0.010641 | 0.267688 | 77,254 | 1,556 | 129 | 49.6491 | 0.797221 | 0.007236 | 0 | 0.467153 | 0 | 0 | 0.066226 | 0.01937 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111679 | false | 0 | 0.008759 | 0.00438 | 0.142336 | 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 |
8efd4534ae8e246cb995db6e29c0014b7e110b8d | 975 | py | Python | tools/host_tests/example/MulticastSend.py | pradeep-gr/mbed-os5-onsemi | 576d096f2d9933c39b8a220f486e9756d89173f2 | [
"Apache-2.0"
] | 54 | 2015-12-21T13:07:43.000Z | 2019-04-16T20:06:25.000Z | tools/host_tests/example/MulticastSend.py | pradeep-gr/mbed-os5-onsemi | 576d096f2d9933c39b8a220f486e9756d89173f2 | [
"Apache-2.0"
] | 12 | 2017-12-20T10:12:34.000Z | 2018-11-07T21:17:37.000Z | tools/host_tests/example/MulticastSend.py | pradeep-gr/mbed-os5-onsemi | 576d096f2d9933c39b8a220f486e9756d89173f2 | [
"Apache-2.0"
] | 30 | 2015-12-27T21:44:56.000Z | 2019-03-26T07:13:26.000Z | """
mbed SDK
Copyright (c) 2011-2013 ARM Limited
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 wr... | 31.451613 | 75 | 0.751795 | 157 | 975 | 4.598726 | 0.630573 | 0.083102 | 0.036011 | 0.044321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029304 | 0.16 | 975 | 30 | 76 | 32.5 | 0.852259 | 0 | 0 | 0 | 0 | 0 | 0.120603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.181818 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f100f0a87e3662672bd129ec155c603e44a2c97a | 1,057 | py | Python | scraper/storage_spiders/balosaigoncom.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | null | null | null | scraper/storage_spiders/balosaigoncom.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | 10 | 2020-02-11T23:34:28.000Z | 2022-03-11T23:16:12.000Z | scraper/storage_spiders/balosaigoncom.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | 3 | 2018-08-05T14:54:25.000Z | 2021-06-07T01:49:59.000Z | # Auto generated by generator.py. Delete this line if you make modification.
from scrapy.spiders import Rule
from scrapy.linkextractors import LinkExtractor
XPATH = {
'name' : "//div[@class='item_detail_right']/div[@class='item_detail_title']",
'price' : "//div[@class='item_detail_price']/span[2]",
'catego... | 35.233333 | 81 | 0.625355 | 124 | 1,057 | 5.145161 | 0.580645 | 0.100313 | 0.094044 | 0.112853 | 0.109718 | 0.109718 | 0.109718 | 0.109718 | 0 | 0 | 0 | 0.003293 | 0.138127 | 1,057 | 29 | 82 | 36.448276 | 0.697036 | 0.113529 | 0 | 0 | 1 | 0 | 0.493576 | 0.29015 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f100fb548972a621e214b9c438396f1b9165568f | 625 | py | Python | fullwavepy/seismic/exp.py | kmch/FullwavePy | 3c704b9b6ae2c6c585adb61e57991caf30ab240e | [
"MIT"
] | 2 | 2020-12-24T01:02:16.000Z | 2021-02-17T10:00:58.000Z | fullwavepy/seismic/exp.py | kmch/FullwavePy | 3c704b9b6ae2c6c585adb61e57991caf30ab240e | [
"MIT"
] | null | null | null | fullwavepy/seismic/exp.py | kmch/FullwavePy | 3c704b9b6ae2c6c585adb61e57991caf30ab240e | [
"MIT"
] | null | null | null | """
Handle for various (meta)data associated
with specific seismic experiments.
To add your own experiment,
subclass the abstract `Experiment` class:
class MyOwn(Experiment):
pass
"""
from abc import ABC, abstractmethod
# from autologging import logged, traced
class Experiment(ABC):
@abstract... | 20.833333 | 42 | 0.6624 | 73 | 625 | 5.60274 | 0.671233 | 0.08313 | 0.102689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2528 | 625 | 29 | 43 | 21.551724 | 0.875803 | 0.3584 | 0 | 0.25 | 0 | 0 | 0.019284 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0.125 | 0.0625 | 0 | 0.4375 | 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 |
f1037fcc1c5a41bac98070c5aabc97d100080613 | 959 | py | Python | radical_translations/agents/migrations/0005_add_person_place_fields.py | kingsdigitallab/radical_translations | c18ca1ccc0ab2d88ae472dc2eda58e2ff9dcc76a | [
"MIT"
] | 3 | 2022-02-08T18:03:44.000Z | 2022-03-18T18:10:43.000Z | radical_translations/agents/migrations/0005_add_person_place_fields.py | kingsdigitallab/radical_translations | c18ca1ccc0ab2d88ae472dc2eda58e2ff9dcc76a | [
"MIT"
] | 19 | 2020-05-11T15:36:35.000Z | 2022-02-08T11:26:40.000Z | radical_translations/agents/migrations/0005_add_person_place_fields.py | kingsdigitallab/radical_translations | c18ca1ccc0ab2d88ae472dc2eda58e2ff9dcc76a | [
"MIT"
] | null | null | null | # Generated by Django 2.2.10 on 2020-03-05 10:48
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('geonames_place', '0004_change_meta_options_on_country'),
('agents', '0004_alter_agent_based_near'),
]
oper... | 36.884615 | 205 | 0.667362 | 119 | 959 | 5.193277 | 0.462185 | 0.05178 | 0.067961 | 0.106796 | 0.521036 | 0.521036 | 0.521036 | 0.385113 | 0.385113 | 0.385113 | 0 | 0.031704 | 0.210636 | 959 | 25 | 206 | 38.36 | 0.784676 | 0.047967 | 0 | 0.315789 | 1 | 0 | 0.265642 | 0.068057 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.263158 | 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 |
f1094ca7e088b2e7d3935337193252b9ed190ab6 | 375 | py | Python | sknano/core/tests/test_extras.py | haidi-ustc/scikit-nano | ef9b24165ba37918b3f520657f7311ba139b3e7d | [
"BSD-2-Clause"
] | 21 | 2016-06-08T18:27:20.000Z | 2022-03-22T08:27:46.000Z | sknano/core/tests/test_extras.py | haidi-ustc/scikit-nano | ef9b24165ba37918b3f520657f7311ba139b3e7d | [
"BSD-2-Clause"
] | 8 | 2016-06-24T19:45:58.000Z | 2021-03-25T21:42:29.000Z | sknano/core/tests/test_extras.py | scikit-nano/scikit-nano | ef9b24165ba37918b3f520657f7311ba139b3e7d | [
"BSD-2-Clause"
] | 9 | 2016-12-08T16:35:52.000Z | 2021-06-23T17:13:44.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
from __future__ import unicode_literals
import nose
from nose.tools import *
from sknano.core import dedupe, rezero_array
def test1():
lst = [1, 2, 2, 3, 4, 50, 50, 4, 5]
assert_equal(list(dedupe(lst)), [1, 2, 3, 4, 50,... | 20.833333 | 64 | 0.68 | 57 | 375 | 4.105263 | 0.614035 | 0.08547 | 0.136752 | 0.042735 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065359 | 0.184 | 375 | 17 | 65 | 22.058824 | 0.699346 | 0.056 | 0 | 0 | 0 | 0 | 0.022727 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.1 | false | 0 | 0.5 | 0 | 0.6 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f10a7fc35db9cd240666b9cfa13a26f311bd3e53 | 6,225 | py | Python | atyimo_spark/05_correlation.py | marcosebarreto/atyimo | e954ce250b900a1eb56b858c2253c1db868ed4fe | [
"MIT"
] | 10 | 2018-04-10T16:57:31.000Z | 2021-07-28T16:05:39.000Z | atyimo_spark/05_correlation.py | marcosebarreto/atyimo | e954ce250b900a1eb56b858c2253c1db868ed4fe | [
"MIT"
] | null | null | null | atyimo_spark/05_correlation.py | marcosebarreto/atyimo | e954ce250b900a1eb56b858c2253c1db868ed4fe | [
"MIT"
] | 4 | 2017-12-11T10:01:59.000Z | 2020-02-07T11:04:21.000Z | #!/bin/env python
# coding: utf-8
## FEDERAL UNIVERSITY OF BAHIA (UFBA)
## ATYIMOLAB (www.atyimolab.ufba.br)
## University College London
## Denaxas Lab (www.denaxaslab.org)
# File: $05_correlation.py$
# Version: $v1$
# Last changed: $Date: 2017/12/04 12:00:00$
# Purpose: $Correlate records,... | 29.50237 | 122 | 0.698153 | 839 | 6,225 | 5.028605 | 0.313468 | 0.056411 | 0.044797 | 0.034131 | 0.258592 | 0.194596 | 0.115904 | 0.088647 | 0.069211 | 0.069211 | 0 | 0.019823 | 0.181526 | 6,225 | 210 | 123 | 29.642857 | 0.808243 | 0.144096 | 0 | 0.163522 | 0 | 0 | 0.095023 | 0.004713 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.08805 | null | null | 0.037736 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f10bd1ded227853aeb96efd374b6204a53446b34 | 282 | py | Python | challenges/3.5.Less_Than_Equal_To_Operator/main.py | pradeepsaiu/python-coding-challenges | b435ab650d85de267eeaa31a55ff77ef5dbff86b | [
"BSD-3-Clause"
] | 141 | 2017-05-07T00:38:22.000Z | 2022-03-25T10:14:25.000Z | challenges/3.5.Less_Than_Equal_To_Operator/main.py | pradeepsaiu/python-coding-challenges | b435ab650d85de267eeaa31a55ff77ef5dbff86b | [
"BSD-3-Clause"
] | 23 | 2017-05-06T23:57:37.000Z | 2018-03-23T19:07:32.000Z | challenges/3.5.Less_Than_Equal_To_Operator/main.py | pradeepsaiu/python-coding-challenges | b435ab650d85de267eeaa31a55ff77ef5dbff86b | [
"BSD-3-Clause"
] | 143 | 2017-05-07T09:33:35.000Z | 2022-03-12T21:04:13.000Z | def less_or_equal(value):
if value : # Change this line
return "25 or less"
elif value : # Change this line
return "75 or less"
else:
return "More than 75"
# Change the value 1 below to experiment with different values
print(less_or_equal(1))
| 25.636364 | 62 | 0.648936 | 43 | 282 | 4.162791 | 0.581395 | 0.067039 | 0.122905 | 0.212291 | 0.27933 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039604 | 0.283688 | 282 | 10 | 63 | 28.2 | 0.846535 | 0.333333 | 0 | 0 | 0 | 0 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.5 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f10bf6b4387e80f4ade94a2cec91edc779059654 | 3,598 | py | Python | nsl/passes/ValidateVariableNames.py | Anteru/nsl | ac3b0d5ae63c9c5b9ffa603f835f799e2e727496 | [
"BSD-2-Clause"
] | null | null | null | nsl/passes/ValidateVariableNames.py | Anteru/nsl | ac3b0d5ae63c9c5b9ffa603f835f799e2e727496 | [
"BSD-2-Clause"
] | null | null | null | nsl/passes/ValidateVariableNames.py | Anteru/nsl | ac3b0d5ae63c9c5b9ffa603f835f799e2e727496 | [
"BSD-2-Clause"
] | null | null | null | from typing import Optional
from nsl import ast, Errors, Visitor
class ValidateVariableNamesVisitor(Visitor.DefaultVisitor):
'''Validate that variable names are unique in their scope. We don't allow
shadowing a variable with another (if we wanted to, we have to generate
unique variable names per scope.)'''... | 34.266667 | 77 | 0.611173 | 355 | 3,598 | 6.028169 | 0.276056 | 0.051402 | 0.03271 | 0.045794 | 0.415888 | 0.383645 | 0.37243 | 0.309813 | 0.309813 | 0.309813 | 0 | 0 | 0.305447 | 3,598 | 105 | 78 | 34.266667 | 0.856343 | 0.061701 | 0 | 0.333333 | 0 | 0 | 0.006839 | 0.006839 | 0 | 0 | 0 | 0 | 0.012821 | 1 | 0.205128 | false | 0.038462 | 0.038462 | 0.025641 | 0.346154 | 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 |
f113d615a1ea42ff30ec656fc54cb3fda5a603b8 | 11,697 | py | Python | DexLab/client.py | LeeChunHao2000/dexlab-api-wrapper-python3 | 1454242965fd9a8f6d5f460272a977a36b5c37c9 | [
"MIT"
] | 9 | 2021-02-08T17:20:05.000Z | 2022-02-14T08:07:38.000Z | DexLab/client.py | LeeChunHao2000/dexlab-api-wrapper-python3 | 1454242965fd9a8f6d5f460272a977a36b5c37c9 | [
"MIT"
] | 1 | 2021-10-09T01:15:23.000Z | 2021-10-09T12:54:23.000Z | DexLab/client.py | LeeChunHao2000/dexlab-api-wrapper-python3 | 1454242965fd9a8f6d5f460272a977a36b5c37c9 | [
"MIT"
] | 6 | 2021-02-08T17:20:07.000Z | 2021-12-30T11:17:41.000Z | import hashlib
import hmac
import json
import requests
import urllib
from urllib.parse import quote_from_bytes, urlencode
from .constants import *
from .helpers import *
# The order API is still in preparation.
class Client(object):
def __init__(self, key, timeout=30):
self.key = key
self._api_tim... | 34.002907 | 144 | 0.607763 | 1,411 | 11,697 | 4.937633 | 0.134656 | 0.039472 | 0.051672 | 0.060284 | 0.684656 | 0.629826 | 0.556481 | 0.524616 | 0.477393 | 0.440362 | 0 | 0.00272 | 0.277165 | 11,697 | 344 | 145 | 34.002907 | 0.821289 | 0.011712 | 0 | 0.272727 | 0 | 0 | 0.181721 | 0.038426 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055944 | null | null | 0.013986 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f120a001cb4d2ed2d4a78d4ed67ae8d532a4e727 | 7,812 | py | Python | test/terra/reference/ref_snapshot_state.py | jakelishman/qiskit-aer | 7512ecede820e0d2bc7ad7b6704bcf06a861ca3a | [
"Apache-2.0"
] | 1 | 2020-07-14T15:32:04.000Z | 2020-07-14T15:32:04.000Z | test/terra/reference/ref_snapshot_state.py | jakelishman/qiskit-aer | 7512ecede820e0d2bc7ad7b6704bcf06a861ca3a | [
"Apache-2.0"
] | null | null | null | test/terra/reference/ref_snapshot_state.py | jakelishman/qiskit-aer | 7512ecede820e0d2bc7ad7b6704bcf06a861ca3a | [
"Apache-2.0"
] | null | null | null | # This code is part of Qiskit.
#
# (C) Copyright IBM 2018, 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivat... | 32.823529 | 77 | 0.581797 | 929 | 7,812 | 4.800861 | 0.137783 | 0.03722 | 0.043049 | 0.042152 | 0.785202 | 0.730493 | 0.68991 | 0.652242 | 0.621749 | 0.6 | 0 | 0.068769 | 0.28149 | 7,812 | 237 | 78 | 32.962025 | 0.725815 | 0.221198 | 0 | 0.527397 | 0 | 0 | 0.035129 | 0 | 0 | 0 | 0.03011 | 0 | 0 | 1 | 0.082192 | false | 0 | 0.027397 | 0 | 0.191781 | 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 |
f12876f2d0295ae9daa4d39b112a89ce784ccf20 | 1,400 | py | Python | v2/imggen/accessorygen/accessory_gen.py | poonchoi/nft-generator | 1a207d6a1609c175441d640d0a96a57137f8b56c | [
"MIT"
] | 13 | 2021-12-05T22:40:41.000Z | 2022-03-13T23:57:45.000Z | v2/imggen/accessorygen/accessory_gen.py | poonchoi/image-generator | 1a207d6a1609c175441d640d0a96a57137f8b56c | [
"MIT"
] | 1 | 2022-02-21T23:05:35.000Z | 2022-02-21T23:05:35.000Z | v2/imggen/accessorygen/accessory_gen.py | poonchoi/image-generator | 1a207d6a1609c175441d640d0a96a57137f8b56c | [
"MIT"
] | 4 | 2021-12-06T22:59:55.000Z | 2022-01-21T21:53:09.000Z | import random
import numpy as np
from imggen.accessorygen.all_accessories import hats, eyes, mouth, body
def accessory_gen():
"""
Generates all the accessories that will be on the duck
"""
accessory_bool = np.random.choice([True, False], 1, p=[0.9, 0.1])
if accessory_bool:
hat_item_bool =... | 24.561404 | 71 | 0.575714 | 179 | 1,400 | 4.212291 | 0.217877 | 0.169761 | 0.079576 | 0.119363 | 0.200265 | 0.200265 | 0.164456 | 0 | 0 | 0 | 0 | 0.005459 | 0.345714 | 1,400 | 56 | 72 | 25 | 0.817686 | 0.038571 | 0 | 0.288889 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0 | 0.066667 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f12cf5619a088ded1283eec44ed7979365a18a03 | 1,201 | py | Python | Mundo #02/ex-044-a11-calcular-valor.py | freitasSystemOutPrint/Python3 | e5e88fbe8e7e0c5472573d2c901844270385194b | [
"MIT"
] | 1 | 2020-06-02T07:31:16.000Z | 2020-06-02T07:31:16.000Z | Mundo #02/ex-044-a11-calcular-valor.py | freitasSystemOutPrint/Python3 | e5e88fbe8e7e0c5472573d2c901844270385194b | [
"MIT"
] | null | null | null | Mundo #02/ex-044-a11-calcular-valor.py | freitasSystemOutPrint/Python3 | e5e88fbe8e7e0c5472573d2c901844270385194b | [
"MIT"
] | null | null | null | n = float(input('Digite o valor do produto: ' ))
print('digite 1 para > À vista dinheiro/cheque 10 % de desconto: ')
print()
print('digite 2 para > À vista no cartão - 5 % de desconto : ' )
print()
print('digite 3 para > Em até 2x nos cartão Preço normal : ' )
print()
print('digite 4 para > 3x ou mai... | 18.476923 | 73 | 0.601166 | 191 | 1,201 | 3.780105 | 0.335079 | 0.062327 | 0.083102 | 0.094183 | 0.529086 | 0.468144 | 0.301939 | 0.069252 | 0 | 0 | 0 | 0.071111 | 0.250624 | 1,201 | 64 | 74 | 18.765625 | 0.731111 | 0.025812 | 0 | 0.137931 | 0 | 0 | 0.481891 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.448276 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f137328088fefd2c868df457d2c27ccfb110076b | 1,140 | py | Python | sample/ch2/login-getfav.py | wagase/scraping | 81e886abe0f8a88830507c978f10f92faf4f19c6 | [
"MIT"
] | null | null | null | sample/ch2/login-getfav.py | wagase/scraping | 81e886abe0f8a88830507c978f10f92faf4f19c6 | [
"MIT"
] | null | null | null | sample/ch2/login-getfav.py | wagase/scraping | 81e886abe0f8a88830507c978f10f92faf4f19c6 | [
"MIT"
] | 2 | 2017-11-21T07:30:01.000Z | 2018-10-18T01:45:58.000Z | # 作詞掲示板にログインしてお気に入りの詞を取得する
import requests
from bs4 import BeautifulSoup
from urllib.parse import urljoin
# ユーザー名とパスワードの指定 --- (※1)
USER = "JS-TESTER"
PASS = "ipCU12ySxI"
# セッションを開始 --- (※2)
session = requests.session()
# ログイン --- (※3)
login_info = {
"username_mmlbbs6": USER, # ユーザー名を指定
"password_mmlbbs6": ... | 23.75 | 66 | 0.665789 | 149 | 1,140 | 5.020134 | 0.557047 | 0.032086 | 0.029412 | 0.045455 | 0.090909 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0.012658 | 0.168421 | 1,140 | 47 | 67 | 24.255319 | 0.770042 | 0.199123 | 0 | 0.133333 | 0 | 0 | 0.225446 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.066667 | 0.1 | 0 | 0.1 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f140c359d0825216ceca1137cb32f21d57fda080 | 2,512 | py | Python | SimpleGP/tests/test_generational.py | mgraffg/simplegp | 7e4639e3ac76571a4e67669cad6e8e775b3fc345 | [
"Apache-2.0"
] | 2 | 2015-03-18T17:26:20.000Z | 2019-03-18T17:28:16.000Z | SimpleGP/tests/test_generational.py | mgraffg/simplegp | 7e4639e3ac76571a4e67669cad6e8e775b3fc345 | [
"Apache-2.0"
] | 1 | 2015-04-19T17:02:49.000Z | 2015-07-21T18:48:34.000Z | SimpleGP/tests/test_generational.py | mgraffg/simplegp | 7e4639e3ac76571a4e67669cad6e8e775b3fc345 | [
"Apache-2.0"
] | null | null | null | # Copyright 2013 Mario Graff Guerrero
# 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 wri... | 36.405797 | 79 | 0.627389 | 372 | 2,512 | 4.094086 | 0.362903 | 0.029547 | 0.015758 | 0.026264 | 0.182534 | 0.182534 | 0.182534 | 0.137886 | 0.137886 | 0.137886 | 0 | 0.021425 | 0.256768 | 2,512 | 68 | 80 | 36.941176 | 0.794322 | 0.221736 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 0 | null | null | 0 | 0.041667 | null | null | 0.020833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f149c10e4272064a9ecdbe77d95c4645b0f09de0 | 968 | py | Python | tests/store/conftest.py | aequitas/munerator | deb1d2ed6c06d17bf3005d75a03e4f2eb7a9938e | [
"MIT"
] | null | null | null | tests/store/conftest.py | aequitas/munerator | deb1d2ed6c06d17bf3005d75a03e4f2eb7a9938e | [
"MIT"
] | null | null | null | tests/store/conftest.py | aequitas/munerator | deb1d2ed6c06d17bf3005d75a03e4f2eb7a9938e | [
"MIT"
] | null | null | null | import munerator.common.database
import mongomock
import mongoengine
import eve.io.mongo.mongo
import pytest
from mock import Mock
con = mongomock.Connection()
_db = con['default']
@pytest.fixture(scope='function')
def uuid():
"""
Random id to be used in database tests.
"""
import uuid
return st... | 24.2 | 104 | 0.704545 | 119 | 968 | 5.613445 | 0.445378 | 0.04491 | 0.068862 | 0.04491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001247 | 0.171488 | 968 | 39 | 105 | 24.820513 | 0.831671 | 0.107438 | 0 | 0 | 0 | 0 | 0.080432 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.304348 | 0 | 0.478261 | 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 |
f14f40bad7ff513f2869708cd2f52a58014f30eb | 2,751 | py | Python | src/folio_migration_tools/migration_report.py | chadmcinnis/folio_migration_tools | 39ee044a713a34c323324a956e3e8b54ee05c194 | [
"MIT"
] | null | null | null | src/folio_migration_tools/migration_report.py | chadmcinnis/folio_migration_tools | 39ee044a713a34c323324a956e3e8b54ee05c194 | [
"MIT"
] | null | null | null | src/folio_migration_tools/migration_report.py | chadmcinnis/folio_migration_tools | 39ee044a713a34c323324a956e3e8b54ee05c194 | [
"MIT"
] | null | null | null | import logging
from folio_migration_tools.report_blurbs import Blurbs
class MigrationReport:
"""Class responsible for handling the migration report"""
def __init__(self):
self.report = {}
self.stats = {}
def add(self, blurb_tuple: tuple, measure_to_add, number=1):
"""Add section... | 38.208333 | 97 | 0.559796 | 357 | 2,751 | 4.120448 | 0.238095 | 0.115568 | 0.101971 | 0.076139 | 0.397009 | 0.297077 | 0.261047 | 0.218899 | 0.218899 | 0.165874 | 0 | 0.008836 | 0.300618 | 2,751 | 71 | 98 | 38.746479 | 0.755717 | 0.107234 | 0 | 0.264151 | 0 | 0 | 0.145679 | 0.028807 | 0 | 0 | 0 | 0.014085 | 0 | 1 | 0.132075 | false | 0 | 0.037736 | 0 | 0.226415 | 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 |
f1563832ba35f381c176570daa72c2dbce89c7bd | 2,572 | py | Python | Ciclo3/main.py | jacareds/Exercicios-Unis-Linguagem-Programacao-Ciclo3 | 6efd9bfe983d0b7b7c9304b7a817b459dd5fdc6c | [
"MIT"
] | null | null | null | Ciclo3/main.py | jacareds/Exercicios-Unis-Linguagem-Programacao-Ciclo3 | 6efd9bfe983d0b7b7c9304b7a817b459dd5fdc6c | [
"MIT"
] | null | null | null | Ciclo3/main.py | jacareds/Exercicios-Unis-Linguagem-Programacao-Ciclo3 | 6efd9bfe983d0b7b7c9304b7a817b459dd5fdc6c | [
"MIT"
] | null | null | null | # importamos o frame principal
import frame_principal
#importe da biblioteca wxpython
import wx
# Aqui criamos uma classe que é herdada frame principal
class FramePrincipal(frame_principal.MyFrame1):
def __init__(self, parent):
frame_principal.MyFrame1.__init__(self,parent)
def func_calcular(self,... | 37.275362 | 105 | 0.539658 | 283 | 2,572 | 4.844523 | 0.282686 | 0.13275 | 0.066375 | 0.086798 | 0.516411 | 0.449307 | 0.449307 | 0.449307 | 0.449307 | 0.449307 | 0 | 0.025366 | 0.310264 | 2,572 | 69 | 106 | 37.275362 | 0.747463 | 0.043546 | 0 | 0.320755 | 0 | 0 | 0.136752 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09434 | false | 0 | 0.037736 | 0 | 0.169811 | 0.415094 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f15a8cf98616bd13757eb8f1f0b3d12392801697 | 8,992 | py | Python | typhon/nanopass.py | monte-language/typhon | ee7cd9712407370116fea076819e5a9891010219 | [
"Apache-2.0"
] | 63 | 2015-02-19T20:47:16.000Z | 2021-12-27T23:29:54.000Z | typhon/nanopass.py | monte-language/typhon | ee7cd9712407370116fea076819e5a9891010219 | [
"Apache-2.0"
] | 197 | 2015-02-23T23:05:24.000Z | 2021-04-05T16:15:04.000Z | typhon/nanopass.py | monte-language/typhon | ee7cd9712407370116fea076819e5a9891010219 | [
"Apache-2.0"
] | 9 | 2015-02-15T09:27:09.000Z | 2018-02-14T17:27:40.000Z | import py
from rpython.rlib.debug import debug_print
from rpython.rlib.unroll import unrolling_iterable
class CompilerFailed(Exception):
"""
An invariant in the compiler failed.
"""
def __init__(self, problem, span):
self.problem = problem
self.span = span
def __str__(self):
... | 36.852459 | 88 | 0.483319 | 864 | 8,992 | 4.965278 | 0.268519 | 0.023776 | 0.013986 | 0.013054 | 0.067133 | 0.028438 | 0.008392 | 0 | 0 | 0 | 0 | 0.002273 | 0.412923 | 8,992 | 243 | 89 | 37.004115 | 0.810381 | 0.121997 | 0 | 0.12 | 0 | 0 | 0.11181 | 0.010748 | 0 | 0 | 0 | 0 | 0.017143 | 0 | null | null | 0.045714 | 0.022857 | null | null | 0.011429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f161af4fa653cd39552e9920f5ca3b5c62d2bcf4 | 16,465 | py | Python | geotraf.py | hokru/geotrafo | ea9b5e42c0798cc10c868deaac47ba1c640ef639 | [
"MIT"
] | null | null | null | geotraf.py | hokru/geotrafo | ea9b5e42c0798cc10c868deaac47ba1c640ef639 | [
"MIT"
] | null | null | null | geotraf.py | hokru/geotrafo | ea9b5e42c0798cc10c868deaac47ba1c640ef639 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import sys
import numpy as np
from math import sqrt,cos,sin,acos,radians
import argparse
"""
rotation around arbitrary torsional angles
ToDo:
- PDB files:
- read
- recognize backbone angles by name from PDB files
- translation
"""
nat=0
elem = []
xyz = []
SYM=[] # matrix to do symmetry ope... | 28.387931 | 205 | 0.56277 | 2,631 | 16,465 | 3.496389 | 0.219688 | 0.005218 | 0.003261 | 0.003479 | 0.215132 | 0.145559 | 0.117078 | 0.109686 | 0.107947 | 0.098163 | 0 | 0.070441 | 0.249013 | 16,465 | 579 | 206 | 28.43696 | 0.673514 | 0.169025 | 0 | 0.195122 | 0 | 0 | 0.104478 | 0.001822 | 0 | 0 | 0 | 0.001727 | 0 | 0 | null | null | 0 | 0.012195 | null | null | 0.064024 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f1665ae63d02bd8e34fd164f6b9ba71548ba7b21 | 1,093 | py | Python | class_evento_has_publico.py | politecnicomodelopoo2018/ProyectoWeb-Albisetti | 47f6f809202eac8c62eb4064912b194804d6f182 | [
"MIT"
] | null | null | null | class_evento_has_publico.py | politecnicomodelopoo2018/ProyectoWeb-Albisetti | 47f6f809202eac8c62eb4064912b194804d6f182 | [
"MIT"
] | null | null | null | class_evento_has_publico.py | politecnicomodelopoo2018/ProyectoWeb-Albisetti | 47f6f809202eac8c62eb4064912b194804d6f182 | [
"MIT"
] | 2 | 2018-09-14T11:45:32.000Z | 2018-10-10T11:09:31.000Z | from database import *
class evento_has_publico(object):
idEvento = None
idPublico = None
def __init__(self, idEvento = None, idPublico = None):
self.idEvento = idEvento
self.idPublico = idPublico
@staticmethod
def cargar(idP, idE):
info = Database().run("Select * FROM e... | 32.147059 | 116 | 0.592864 | 117 | 1,093 | 5.376068 | 0.299145 | 0.09539 | 0.108108 | 0.100159 | 0.27663 | 0.27663 | 0.27663 | 0.27663 | 0.27663 | 0.27663 | 0 | 0 | 0.295517 | 1,093 | 34 | 117 | 32.147059 | 0.816883 | 0 | 0 | 0 | 0 | 0 | 0.243144 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.047619 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f16afc9bf79555db25042b5f6bbaba8e5807a3d2 | 1,006 | py | Python | vbb_backend/session/migrations/0003_auto_20210218_1512.py | patrickb42/backend-vbb-portal | 88362bc5b4d5cab95aa67e12694f98371604b65a | [
"MIT"
] | 3 | 2021-04-14T02:59:09.000Z | 2021-06-08T00:17:27.000Z | vbb_backend/session/migrations/0003_auto_20210218_1512.py | patrickb42/backend-vbb-portal | 88362bc5b4d5cab95aa67e12694f98371604b65a | [
"MIT"
] | 81 | 2020-12-08T00:11:52.000Z | 2021-08-09T18:13:32.000Z | vbb_backend/session/migrations/0003_auto_20210218_1512.py | patrickb42/backend-vbb-portal | 88362bc5b4d5cab95aa67e12694f98371604b65a | [
"MIT"
] | 5 | 2021-01-12T04:50:26.000Z | 2021-06-04T02:00:03.000Z | # Generated by Django 3.0.10 on 2021-02-18 15:12
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('users', '0006_auto_20210209_0849'),
('program', '0010_mentorslotassociation_is_confirmed'),
('session', '00... | 31.4375 | 112 | 0.625249 | 99 | 1,006 | 6.212121 | 0.555556 | 0.039024 | 0.112195 | 0.131707 | 0.315447 | 0.185366 | 0 | 0 | 0 | 0 | 0 | 0.068874 | 0.249503 | 1,006 | 31 | 113 | 32.451613 | 0.745695 | 0.045726 | 0 | 0.36 | 1 | 0 | 0.256785 | 0.156576 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f175941c7eeec9db56eb62f038afcb947ce02721 | 1,309 | py | Python | api/Trainning-Model/main.py | muhammadtarek/excelify | 9f9a5b367df5a2714bd64ffa7c0e83a3a721b405 | [
"MIT"
] | 3 | 2019-04-13T14:52:01.000Z | 2021-06-03T23:20:01.000Z | api/Trainning-Model/main.py | muhammadtarek/excelify | 9f9a5b367df5a2714bd64ffa7c0e83a3a721b405 | [
"MIT"
] | 21 | 2019-12-03T08:37:20.000Z | 2021-01-05T09:33:46.000Z | api/Trainning-Model/main.py | muhammadtarek/excelify | 9f9a5b367df5a2714bd64ffa7c0e83a3a721b405 | [
"MIT"
] | 1 | 2020-08-18T21:00:30.000Z | 2020-08-18T21:00:30.000Z | import os
import cv2
from multiprocessing import Pool
from preprocessing import preProcessing
def fun(t):
root,charFolder = t
#print('CHAR ', bytearray.fromhex(charFolder).decode())
try:
if int(charFolder,16) >= 97:
filename = bytearray.fromhex(charFolder).decode()+' S.txt'
els... | 33.564103 | 110 | 0.514897 | 144 | 1,309 | 4.548611 | 0.458333 | 0.064122 | 0.119084 | 0.146565 | 0.241221 | 0.119084 | 0.119084 | 0 | 0 | 0 | 0 | 0.014151 | 0.352177 | 1,309 | 39 | 111 | 33.564103 | 0.758255 | 0.078686 | 0 | 0.176471 | 0 | 0 | 0.083957 | 0.049044 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0.058824 | 0.117647 | 0 | 0.147059 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f17a7a269b5c31ee1845de9c1874e178a2037fb9 | 2,238 | py | Python | test/t1000/integration/application/dependency_injection/result_factory/__init__.py | helcerion/T1000 | 25684e88dc8adb37fe07ff358f84f797f7b9c716 | [
"MIT"
] | 1 | 2021-08-23T01:33:03.000Z | 2021-08-23T01:33:03.000Z | test/t1000/integration/application/dependency_injection/result_factory/__init__.py | helcerion/T1000 | 25684e88dc8adb37fe07ff358f84f797f7b9c716 | [
"MIT"
] | 20 | 2019-10-29T10:55:27.000Z | 2022-03-12T00:04:50.000Z | test/t1000/integration/application/dependency_injection/result_factory/__init__.py | helcerion/T1000 | 25684e88dc8adb37fe07ff358f84f797f7b9c716 | [
"MIT"
] | null | null | null | import unittest
from src.t1000.application.dependency_injection.result_factory import EventsResultFactory, ConsoleEventsResult, HtmlEventsResult
class EventsResultFactoryTestCase(unittest.TestCase):
def setUp(self):
return super().setUp()
def tearDown(self):
return super().tearDown()
... | 44.76 | 128 | 0.704647 | 238 | 2,238 | 6.436975 | 0.201681 | 0.031984 | 0.059399 | 0.055483 | 0.690601 | 0.690601 | 0.690601 | 0.667102 | 0.431462 | 0.431462 | 0 | 0.002195 | 0.18588 | 2,238 | 49 | 129 | 45.673469 | 0.838639 | 0 | 0 | 0.151515 | 0 | 0 | 0.245755 | 0.02815 | 0 | 0 | 0 | 0 | 0.363636 | 1 | 0.272727 | false | 0 | 0.060606 | 0.060606 | 0.424242 | 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 |
f18816ebd36393167071cb2baed10daa364e225c | 1,094 | py | Python | python/915_Partition_Array_into_Disjoint_Intervals.py | LiangRong3020/leetcode | 63579052b20f5260e4a2858dc38a60d0582d4efd | [
"MIT"
] | null | null | null | python/915_Partition_Array_into_Disjoint_Intervals.py | LiangRong3020/leetcode | 63579052b20f5260e4a2858dc38a60d0582d4efd | [
"MIT"
] | null | null | null | python/915_Partition_Array_into_Disjoint_Intervals.py | LiangRong3020/leetcode | 63579052b20f5260e4a2858dc38a60d0582d4efd | [
"MIT"
] | null | null | null | class Solution(object):
def partitionDisjoint(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
now_min= 10^6
nearly_max= nums[0]
last_time_max_value = nums[0]
last_time_max= -1
record_list = []
for i, v in enumerate(nums):
... | 28.789474 | 63 | 0.506399 | 146 | 1,094 | 3.493151 | 0.239726 | 0.156863 | 0.215686 | 0.117647 | 0.303922 | 0.194118 | 0 | 0 | 0 | 0 | 0 | 0.038922 | 0.389397 | 1,094 | 37 | 64 | 29.567568 | 0.724551 | 0.030165 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0 | 0 | 0.222222 | 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 |
f188d10ad7dbbe987197b17384f5fe81106872a0 | 2,657 | py | Python | weather2.py | liurenjie520/sendemailv3 | 92adcb6c691641a81cb11962e3f7babdb53d2763 | [
"Apache-2.0"
] | null | null | null | weather2.py | liurenjie520/sendemailv3 | 92adcb6c691641a81cb11962e3f7babdb53d2763 | [
"Apache-2.0"
] | null | null | null | weather2.py | liurenjie520/sendemailv3 | 92adcb6c691641a81cb11962e3f7babdb53d2763 | [
"Apache-2.0"
] | null | null | null | #-*- codeing = utf-8 -*-
#@Time : 2020/6/2 20:26
#@Author : dele
#@File : weather.py
#@Software: PyCharm
import requests
from bs4 import BeautifulSoup
import io
import sys
import pandas
from matplotlib import pyplot as plt
sys.stdout = io.TextIOWrapper(sys... | 30.895349 | 91 | 0.596914 | 350 | 2,657 | 4.422857 | 0.434286 | 0.034884 | 0.021318 | 0.027132 | 0.203488 | 0.203488 | 0.167313 | 0.167313 | 0.137597 | 0 | 0 | 0.035225 | 0.230711 | 2,657 | 85 | 92 | 31.258824 | 0.720157 | 0.222808 | 0 | 0 | 0 | 0 | 0.088998 | 0.015648 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | null | null | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f18d6f484443abb3fd7b5a97228e5371eea9774f | 810 | py | Python | txq/pipes/internal_pipe.py | agratoth/txq | 767caf65fcdd287fe8fb0d752acee4fa6ef06337 | [
"MIT"
] | null | null | null | txq/pipes/internal_pipe.py | agratoth/txq | 767caf65fcdd287fe8fb0d752acee4fa6ef06337 | [
"MIT"
] | null | null | null | txq/pipes/internal_pipe.py | agratoth/txq | 767caf65fcdd287fe8fb0d752acee4fa6ef06337 | [
"MIT"
] | null | null | null | from .base_pipe import BasePipe
class InternalPipe(BasePipe):
def __init__(self, **params):
self._instance = params.get('instance')
self._instance_obj = None
BasePipe.__init__(self, **params)
def set_instance(self, instance_obj):
self._instance_obj = instance_obj
async d... | 31.153846 | 65 | 0.653086 | 97 | 810 | 5.092784 | 0.309278 | 0.194332 | 0.182186 | 0.093117 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248148 | 810 | 26 | 66 | 31.153846 | 0.811166 | 0 | 0 | 0 | 0 | 0 | 0.035758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.052632 | 0 | 0.368421 | 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 |
74b54a191f352568c5afc4dd7078acc305036ecc | 796 | py | Python | experiments/gym/ppo_ray.py | iminders/maddpg | 59f63579f4efbd2432e32ba817761549f62c3cb6 | [
"MIT"
] | 1 | 2020-12-15T08:44:36.000Z | 2020-12-15T08:44:36.000Z | experiments/gym/ppo_ray.py | iminders/maddpg | 59f63579f4efbd2432e32ba817761549f62c3cb6 | [
"MIT"
] | 11 | 2020-10-20T17:51:18.000Z | 2020-12-23T07:26:17.000Z | experiments/gym/ppo_ray.py | iminders/maddpg | 59f63579f4efbd2432e32ba817761549f62c3cb6 | [
"MIT"
] | 1 | 2020-12-22T11:38:52.000Z | 2020-12-22T11:38:52.000Z | import gym
from gym.spaces import Box, Discrete
from ray import tune
class SimpleCorridor(gym.Env):
def __init__(self, config):
self.end_pos = config["corridor_length"]
self.cur_pos = 0
self.action_space = Discrete(2)
self.observation_space = Box(0.0, self.end_pos, shape=(1, ))
... | 24.875 | 68 | 0.579146 | 111 | 796 | 3.963964 | 0.36036 | 0.127273 | 0.181818 | 0.075 | 0.068182 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026834 | 0.297739 | 796 | 31 | 69 | 25.677419 | 0.760286 | 0 | 0 | 0.08 | 0 | 0 | 0.071608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.12 | 0 | 0.36 | 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 |
74c3300142f809aec694de11c78f9abac0ae834d | 1,491 | py | Python | spoofident.py | KoraggKnightWolf/spoofident | e50ff73730dbf6751a8465cc21f1031b6454696e | [
"MIT"
] | 6 | 2015-02-18T19:30:13.000Z | 2020-02-03T22:16:39.000Z | spoofident.py | Heisenburg01/spoofident | 0b6525b9a098bc37e4e2ccfd1f5738612589b569 | [
"MIT"
] | 1 | 2020-09-20T11:51:22.000Z | 2022-03-29T15:37:51.000Z | spoofident.py | Heisenburg01/spoofident | 0b6525b9a098bc37e4e2ccfd1f5738612589b569 | [
"MIT"
] | 5 | 2015-10-18T18:53:08.000Z | 2021-03-20T01:23:03.000Z | #!/usr/bin/python
from os import setuid,setgid,path
from json import load
from time import time
from select import select
import socket
def handleIdent(fd):
fd.settimeout(1)
try:
data=fd.recv(1024).strip()
except:
fd.send('0,0:ERROR:UNKNOWN-ERROR\r\n') # TODO: catch exceptions which are actual errors, as opposed... | 26.625 | 120 | 0.700872 | 223 | 1,491 | 4.605381 | 0.466368 | 0.046738 | 0.013632 | 0.015579 | 0.089581 | 0.064265 | 0 | 0 | 0 | 0 | 0 | 0.018648 | 0.136821 | 1,491 | 55 | 121 | 27.109091 | 0.779332 | 0.092555 | 0 | 0.185185 | 0 | 0 | 0.08963 | 0.039259 | 0 | 0 | 0 | 0.018182 | 0 | 1 | 0.037037 | false | 0.018519 | 0.092593 | 0 | 0.203704 | 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 |
74c45abb5302dad1c33d22938edf6e4c7edb4f60 | 291 | py | Python | TestScenes/test.py | piakos314/mathmizo | c565ea802cca30ac64b66282f11e8ba60b1ad669 | [
"MIT"
] | 1 | 2021-06-07T08:22:26.000Z | 2021-06-07T08:22:26.000Z | TestScenes/test.py | piakos314/mathmizo | c565ea802cca30ac64b66282f11e8ba60b1ad669 | [
"MIT"
] | null | null | null | TestScenes/test.py | piakos314/mathmizo | c565ea802cca30ac64b66282f11e8ba60b1ad669 | [
"MIT"
] | 1 | 2021-06-07T14:08:53.000Z | 2021-06-07T14:08:53.000Z | from manim import *
class TestTransform(Scene):
def construct(self):
cir = Circle(color = BLUE_C)
sir = CircleCurvy(color = BLUE_C, frequency=10, phase=PI/2).rotate(PI/2)
self.play(Create(cir), Write(sir), run_time=3)
self.play(sir.animate.set_color(RED).scale(0.8))
self.wait()
| 29.1 | 74 | 0.707904 | 48 | 291 | 4.208333 | 0.729167 | 0.089109 | 0.09901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027559 | 0.127148 | 291 | 9 | 75 | 32.333333 | 0.767717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
74c84e6cfc663998ebb1e193d2cffb2f0265e5a1 | 3,029 | py | Python | App/Paste in View Center.py | schriftgestalt/Mekka-Scripts | d745ae8ffc1cf9f7f13907ad749566dc05306307 | [
"Apache-2.0"
] | null | null | null | App/Paste in View Center.py | schriftgestalt/Mekka-Scripts | d745ae8ffc1cf9f7f13907ad749566dc05306307 | [
"Apache-2.0"
] | null | null | null | App/Paste in View Center.py | schriftgestalt/Mekka-Scripts | d745ae8ffc1cf9f7f13907ad749566dc05306307 | [
"Apache-2.0"
] | null | null | null | #MenuTitle: Paste in View Center
# -*- coding: utf-8 -*-
__doc__="""
Pastes components and paths in clipboard into the center of the Edit view.
"""
import math
def transform(shiftX=0.0, shiftY=0.0, rotate=0.0, skew=0.0, scale=1.0):
myTransform = NSAffineTransform.transform()
if rotate:
myTransform.rotateByDegrees... | 32.923913 | 93 | 0.757016 | 339 | 3,029 | 6.713864 | 0.427729 | 0.005272 | 0.009666 | 0.014938 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0.144932 | 3,029 | 91 | 94 | 33.285714 | 0.864479 | 0.061076 | 0 | 0.081081 | 0 | 0 | 0.068735 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.027027 | 0.013514 | null | null | 0.013514 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
74ce65a8533810988b2af144ac7e606975138a9d | 417 | py | Python | tests/api_test.py | dave-miles/jenkins-bootstrap-jervis | fbb586f0c58e28f1c3551ad5802b09cd00a8cc1f | [
"Apache-2.0"
] | 290 | 2017-09-01T20:20:01.000Z | 2022-03-25T07:03:02.000Z | tests/api_test.py | dave-miles/jenkins-bootstrap-jervis | fbb586f0c58e28f1c3551ad5802b09cd00a8cc1f | [
"Apache-2.0"
] | 15 | 2015-06-07T03:01:08.000Z | 2020-04-10T05:21:28.000Z | tests/api_test.py | dave-miles/jenkins-bootstrap-jervis | fbb586f0c58e28f1c3551ad5802b09cd00a8cc1f | [
"Apache-2.0"
] | 129 | 2017-12-06T15:25:06.000Z | 2022-01-28T09:04:26.000Z | #!/usr/bin/env python
#Created by Sam Gleske
#Meant to read from stdin a JSON blob from Jenkins master root
import json
import sys
response = json.load(sys.stdin)
jobs = map(lambda x: x['name'], response['jobs'])
views = map(lambda x: x['name'], response['views'])
assert '_jervis_generator' in jobs
assert 'GitHub Organ... | 32.076923 | 62 | 0.736211 | 64 | 417 | 4.765625 | 0.578125 | 0.108197 | 0.065574 | 0.072131 | 0.15082 | 0.15082 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129496 | 417 | 12 | 63 | 34.75 | 0.84022 | 0.244604 | 0 | 0 | 0 | 0 | 0.266026 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
74d0084ac7d651662277f3693248afe1b363b8dd | 21,644 | py | Python | ironicclient/tests/unit/test_shell.py | sapcc/python-ironicclient | 8dcbf5b6d0bc2c2dc3881dbc557e2e403e2fe2b4 | [
"Apache-2.0"
] | null | null | null | ironicclient/tests/unit/test_shell.py | sapcc/python-ironicclient | 8dcbf5b6d0bc2c2dc3881dbc557e2e403e2fe2b4 | [
"Apache-2.0"
] | null | null | null | ironicclient/tests/unit/test_shell.py | sapcc/python-ironicclient | 8dcbf5b6d0bc2c2dc3881dbc557e2e403e2fe2b4 | [
"Apache-2.0"
] | null | null | null | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distribu... | 41.543186 | 78 | 0.607651 | 2,506 | 21,644 | 4.96648 | 0.135674 | 0.030934 | 0.028282 | 0.015025 | 0.669854 | 0.613771 | 0.574241 | 0.559457 | 0.545959 | 0.51615 | 0 | 0.017443 | 0.279523 | 21,644 | 520 | 79 | 41.623077 | 0.780685 | 0.057337 | 0 | 0.497717 | 0 | 0 | 0.200491 | 0.016344 | 0 | 0 | 0 | 0 | 0.093607 | 1 | 0.073059 | false | 0.077626 | 0.038813 | 0 | 0.130137 | 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 |
74d260bbf855711fc4e97a5f8727acf71761c919 | 551 | py | Python | examples/src/Shapes/GetLightRigEffectiveData.py | aspose-slides/Aspose.Slides-for-Python-via-.NET | c55ad5c71f942598f1e67e22a52cbcd1cb286467 | [
"MIT"
] | null | null | null | examples/src/Shapes/GetLightRigEffectiveData.py | aspose-slides/Aspose.Slides-for-Python-via-.NET | c55ad5c71f942598f1e67e22a52cbcd1cb286467 | [
"MIT"
] | null | null | null | examples/src/Shapes/GetLightRigEffectiveData.py | aspose-slides/Aspose.Slides-for-Python-via-.NET | c55ad5c71f942598f1e67e22a52cbcd1cb286467 | [
"MIT"
] | null | null | null | import aspose.slides as slides
#ExStart:GetLightRigEffectiveData
# The path to the documents directory.
dataDir = "./examples/data/"
outDir = "./examples/out/"
with slides.Presentation(dataDir + "shapes_3d_effective.pptx") as pres:
threeDEffectiveData = pres.slides[0].shapes[0].three_dformat.get_eff... | 32.411765 | 80 | 0.742287 | 62 | 551 | 6.5 | 0.596774 | 0.059553 | 0.133995 | 0.148883 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006303 | 0.136116 | 551 | 16 | 81 | 34.4375 | 0.838235 | 0.179673 | 0 | 0 | 0 | 0 | 0.236607 | 0.053571 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
74da97ae3728e432fae2340be9c93a6906fa9307 | 512 | py | Python | src/0020_valid_parens.py | soamsy/leetcode | 091f3b33e44613fac130ff1018c8b63493798f09 | [
"MIT"
] | null | null | null | src/0020_valid_parens.py | soamsy/leetcode | 091f3b33e44613fac130ff1018c8b63493798f09 | [
"MIT"
] | null | null | null | src/0020_valid_parens.py | soamsy/leetcode | 091f3b33e44613fac130ff1018c8b63493798f09 | [
"MIT"
] | null | null | null | def isValid(s: str) -> bool:
open_to_close = {
'(': ')',
'{': '}',
'[': ']'
}
close_to_open = {v: k for k, v in open_to_close.items()}
stack = []
for i in s:
if i in open_to_close:
stack.append(i)
elif i in close_to_open:
... | 23.272727 | 60 | 0.435547 | 64 | 512 | 3.265625 | 0.375 | 0.114833 | 0.210526 | 0.124402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006897 | 0.433594 | 512 | 22 | 61 | 23.272727 | 0.713793 | 0 | 0 | 0.111111 | 0 | 0 | 0.011696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.222222 | 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 |
74dcc114dc98b1a47d15478b8c6951e4fa583577 | 367 | py | Python | algorithms/warmup/python3/plus_minus.py | costincaraivan/hackerrank | b69c27c54e765a0c23f37d64d20308bcfdd5bc3a | [
"MIT"
] | 1 | 2018-06-12T12:01:42.000Z | 2018-06-12T12:01:42.000Z | algorithms/warmup/python3/plus_minus.py | costincaraivan/hackerrank | b69c27c54e765a0c23f37d64d20308bcfdd5bc3a | [
"MIT"
] | null | null | null | algorithms/warmup/python3/plus_minus.py | costincaraivan/hackerrank | b69c27c54e765a0c23f37d64d20308bcfdd5bc3a | [
"MIT"
] | null | null | null | #!/bin/python3
import sys
n = int(input().strip())
arr = [int(arr_temp) for arr_temp in input().strip().split(' ')]
positives = 0
negatives = 0
for _ in arr:
if _ > 0:
positives += 1
elif _ < 0:
negatives += 1
print('{:4f}'.format(positives / n))
print('{:4f}'.format(negatives / n))
print('{... | 19.315789 | 64 | 0.580381 | 51 | 367 | 4.078431 | 0.431373 | 0.100962 | 0.1875 | 0.134615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034722 | 0.215259 | 367 | 18 | 65 | 20.388889 | 0.6875 | 0.035422 | 0 | 0 | 0 | 0 | 0.045326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.230769 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.