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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3c5d0a9730bee5c5187caf356fe15d53349183dc | 21,612 | py | Python | extras/tests/net_test/sock_diag_test.py | Keneral/asystem | df12381b72ef3d629c8efc61100cc8c714195320 | [
"Unlicense"
] | null | null | null | extras/tests/net_test/sock_diag_test.py | Keneral/asystem | df12381b72ef3d629c8efc61100cc8c714195320 | [
"Unlicense"
] | null | null | null | extras/tests/net_test/sock_diag_test.py | Keneral/asystem | df12381b72ef3d629c8efc61100cc8c714195320 | [
"Unlicense"
] | null | null | null | #!/usr/bin/python
#
# Copyright 2015 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | 39.36612 | 92 | 0.679206 | 2,749 | 21,612 | 5.191342 | 0.189523 | 0.044846 | 0.047089 | 0.015696 | 0.388901 | 0.311821 | 0.247215 | 0.17455 | 0.13552 | 0.086819 | 0 | 0.030139 | 0.223163 | 21,612 | 548 | 93 | 39.437956 | 0.819882 | 0.103692 | 0 | 0.183616 | 0 | 0 | 0.043825 | 0.005356 | 0 | 0 | 0.001339 | 0.007299 | 0.155367 | 0 | null | null | 0 | 0.036723 | 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 |
3c612629053b5b8fb9512f8746224f54201c6a04 | 1,542 | py | Python | common/models.py | gldecurtins/objektor-django | 5d723fe90982fd3435b7ba76f2523f32b4b687b4 | [
"MIT"
] | null | null | null | common/models.py | gldecurtins/objektor-django | 5d723fe90982fd3435b7ba76f2523f32b4b687b4 | [
"MIT"
] | 12 | 2021-12-02T06:22:29.000Z | 2022-01-20T06:25:03.000Z | common/models.py | gldecurtins/objektor | 5d723fe90982fd3435b7ba76f2523f32b4b687b4 | [
"MIT"
] | null | null | null | from django.db import models
from rules.contrib.models import RulesModel
from django.contrib.auth.models import AbstractUser, Group
import uuid
import pathlib
class User(AbstractUser):
pass
def team_image_upload_handler(instance, filename):
file_name = str(uuid.uuid1()) # uuid1 -> uuid + timestamp
file... | 27.052632 | 66 | 0.663424 | 192 | 1,542 | 5.114583 | 0.427083 | 0.027495 | 0.04277 | 0.044807 | 0.057026 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003373 | 0.230869 | 1,542 | 56 | 67 | 27.535714 | 0.824621 | 0.016213 | 0 | 0.044444 | 0 | 0 | 0.073267 | 0.023102 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.022222 | 0.111111 | 0.044444 | 0.533333 | 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 |
3c61a73d9baca7cd26c9257fae03926815bae3d4 | 963 | py | Python | packages/mccomponents/python/mccomponents/sample/diffraction/SingleCrystalDiffractionKernel.py | mcvine/mcvine | 42232534b0c6af729628009bed165cd7d833789d | [
"BSD-3-Clause"
] | 5 | 2017-01-16T03:59:47.000Z | 2020-06-23T02:54:19.000Z | packages/mccomponents/python/mccomponents/sample/diffraction/SingleCrystalDiffractionKernel.py | mcvine/mcvine | 42232534b0c6af729628009bed165cd7d833789d | [
"BSD-3-Clause"
] | 293 | 2015-10-29T17:45:52.000Z | 2022-01-07T16:31:09.000Z | packages/mccomponents/python/mccomponents/sample/diffraction/SingleCrystalDiffractionKernel.py | mcvine/mcvine | 42232534b0c6af729628009bed165cd7d833789d | [
"BSD-3-Clause"
] | 1 | 2019-05-25T00:53:31.000Z | 2019-05-25T00:53:31.000Z | #!/usr/bin/env python
#
# Jiao Lin <jiao.lin@gmail.com>
#
from mccomponents.homogeneous_scatterer.Kernel import Kernel
class SingleCrystalDiffractionKernel(Kernel):
'''single crystal diffraction kernel
'''
def __init__(self, basis_vectors, hkllist, mosaic, Dd_over_d, abs_xs):
'''new SingleCrystal... | 24.075 | 74 | 0.64486 | 120 | 963 | 4.991667 | 0.5 | 0.100167 | 0.046745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005658 | 0.265836 | 963 | 39 | 75 | 24.692308 | 0.841584 | 0.418484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.083333 | 0.083333 | 0.083333 | 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 |
3c67ab43e841579037358ec5bd100153ddae7f07 | 1,250 | py | Python | netflix_notify/management/commands/notify.py | mikeengland/netflix-notify | 7c49f171e62680a6882822a4f57346cd3cc3f828 | [
"Apache-2.0"
] | 1 | 2017-06-07T11:46:46.000Z | 2017-06-07T11:46:46.000Z | netflix_notify/management/commands/notify.py | mikeengland/netflix-notify | 7c49f171e62680a6882822a4f57346cd3cc3f828 | [
"Apache-2.0"
] | null | null | null | netflix_notify/management/commands/notify.py | mikeengland/netflix-notify | 7c49f171e62680a6882822a4f57346cd3cc3f828 | [
"Apache-2.0"
] | null | null | null | import logging
from datetime import (datetime,
timedelta)
from django.core.management.base import BaseCommand
from netflix_notify.models import (Title,
Notification,
Watcher)
logger = logging.getLogger(__name__)
class Comma... | 29.761905 | 106 | 0.6224 | 140 | 1,250 | 5.414286 | 0.514286 | 0.084433 | 0.079156 | 0.029024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004592 | 0.3032 | 1,250 | 41 | 107 | 30.487805 | 0.865672 | 0.132 | 0 | 0.086957 | 0 | 0 | 0.022243 | 0 | 0 | 0 | 0 | 0.02439 | 0 | 1 | 0.086957 | false | 0.043478 | 0.173913 | 0 | 0.347826 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3c718e54cf5919b59ffc5c9c4b79adae251651cd | 977 | py | Python | djf_surveys/admin.py | irfanpule/django-form-surveys | ae27133f040e4bdf40c02944c6d5af65562b216d | [
"MIT"
] | 5 | 2022-03-22T08:10:07.000Z | 2022-03-30T11:52:01.000Z | djf_surveys/admin.py | irfanpule/django-form-surveys | ae27133f040e4bdf40c02944c6d5af65562b216d | [
"MIT"
] | 1 | 2022-03-14T08:49:49.000Z | 2022-03-14T09:40:10.000Z | djf_surveys/admin.py | irfanpule/django-form-surveys | ae27133f040e4bdf40c02944c6d5af65562b216d | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Survey, Question, Answer, UserAnswer
class AdminQuestion(admin.ModelAdmin):
list_display = ('survey', 'label', 'type_field', 'help_text', 'required')
search_fields = ('survey', )
class AdminAnswer(admin.ModelAdmin):
list_display = ('question', 'get_la... | 28.735294 | 77 | 0.721597 | 111 | 977 | 6.144144 | 0.405405 | 0.087977 | 0.111437 | 0.152493 | 0.093842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141249 | 977 | 33 | 78 | 29.606061 | 0.812872 | 0 | 0 | 0 | 0 | 0 | 0.171955 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.090909 | 0.045455 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3c75ec8c8c9d4871e531f02c51a947216e2ff3d9 | 618 | py | Python | apps/support/migrations/0003_qq.py | parekhpriyanshu/website | b8303c0b4911009e13928fc368794c8ba6262626 | [
"MIT"
] | 312 | 2019-02-22T02:12:39.000Z | 2022-03-28T03:51:44.000Z | apps/support/migrations/0003_qq.py | Atheny/website | 28cf598488465695e4d1e2691e8d162b9c253e27 | [
"MIT"
] | 21 | 2019-04-01T04:38:50.000Z | 2022-03-11T23:43:55.000Z | apps/support/migrations/0003_qq.py | Atheny/website | 28cf598488465695e4d1e2691e8d162b9c253e27 | [
"MIT"
] | 97 | 2019-01-29T02:23:09.000Z | 2022-02-26T17:25:41.000Z | # Generated by Django 2.0.8 on 2019-04-15 16:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('support', '0002_banners_url'),
]
operations = [
migrations.CreateModel(
name='QQ',
fields=[
('id', m... | 26.869565 | 114 | 0.561489 | 62 | 618 | 5.483871 | 0.790323 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050926 | 0.300971 | 618 | 22 | 115 | 28.090909 | 0.736111 | 0.072816 | 0 | 0 | 1 | 0 | 0.078809 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3c76c244c7195795b845406623a2012422c590d4 | 840 | py | Python | ProfanityBlocker/ProfanityException.py | voarsh/ProfanityBlocker-Python-Implementation | 226b186510a50640973f9c103307390ffe7e6918 | [
"MIT"
] | 2 | 2019-10-02T19:31:19.000Z | 2019-10-02T19:48:05.000Z | ProfanityBlocker/ProfanityException.py | voarsh/ProfanityBlocker-Python-Implementation | 226b186510a50640973f9c103307390ffe7e6918 | [
"MIT"
] | null | null | null | ProfanityBlocker/ProfanityException.py | voarsh/ProfanityBlocker-Python-Implementation | 226b186510a50640973f9c103307390ffe7e6918 | [
"MIT"
] | null | null | null | class ServiceError(Exception):
pass
class LicenceError(Exception):
pass
class AccountError(Exception):
pass
class RateLimited(Exception):
pass
codeToError = {
0: "There was an error contacting the ProfanityBlocker service. Please try again later.",
104: "There was an error with your licence ... | 28 | 132 | 0.72381 | 107 | 840 | 5.682243 | 0.523364 | 0.085526 | 0.088816 | 0.074013 | 0.075658 | 0.075658 | 0 | 0 | 0 | 0 | 0 | 0.038864 | 0.203571 | 840 | 30 | 133 | 28 | 0.869955 | 0 | 0 | 0.166667 | 0 | 0.083333 | 0.451843 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0.166667 | 0 | 0 | 0.208333 | 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 |
3c782d29486e5f61010839a17273e0fc093e23fd | 1,614 | py | Python | tests/test_scrape_imdb.py | mantaspieza/IMDB_Movie_Scraper | 4dd8f3e588cee792bca99d3d75258baaf43de814 | [
"MIT"
] | null | null | null | tests/test_scrape_imdb.py | mantaspieza/IMDB_Movie_Scraper | 4dd8f3e588cee792bca99d3d75258baaf43de814 | [
"MIT"
] | null | null | null | tests/test_scrape_imdb.py | mantaspieza/IMDB_Movie_Scraper | 4dd8f3e588cee792bca99d3d75258baaf43de814 | [
"MIT"
] | null | null | null | from IMDB_scraper.IMDB_scrapper_class import Scraper
from bs4 import BeautifulSoup
with open(
"/test_data/test_movie_data.html"
) as v:
list_of_movies = BeautifulSoup(v.read(), "html.parser")
def test_get_movie_title():
scraper = Scraper()
title = scraper.get_movie_title(movie_info=list_of_movies... | 25.619048 | 74 | 0.741636 | 221 | 1,614 | 5.027149 | 0.221719 | 0.129613 | 0.108011 | 0.121512 | 0.218722 | 0.218722 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.167286 | 1,614 | 62 | 75 | 26.032258 | 0.805804 | 0 | 0 | 0.214286 | 0 | 0 | 0.057037 | 0.019219 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.214286 | false | 0 | 0.047619 | 0 | 0.261905 | 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 |
3c84dc7708c5a4fe7fa4eae4f90fc7be319ee91e | 1,048 | py | Python | preprocess.py | juliakreutzer/wtfrnn | 7ce3597833247fbff7d9b5e62db98e1c25710eca | [
"MIT"
] | 4 | 2016-04-09T08:45:19.000Z | 2018-08-22T05:30:42.000Z | preprocess.py | juliakreutzer/wtfrnn | 7ce3597833247fbff7d9b5e62db98e1c25710eca | [
"MIT"
] | null | null | null | preprocess.py | juliakreutzer/wtfrnn | 7ce3597833247fbff7d9b5e62db98e1c25710eca | [
"MIT"
] | null | null | null | from nltk.tokenize import word_tokenize
from nltk.corpus import stopwords
import sys
import codecs
import re
#remove empty lines
#tokenize and remove stopwords
def preprocess(doc):
""" Preprocess a document: tokenize words, lowercase, remove stopwords, non-alphabetic characters and empty lines"""
sw = stopwor... | 34.933333 | 140 | 0.678435 | 138 | 1,048 | 5.07971 | 0.492754 | 0.022825 | 0.022825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008178 | 0.183206 | 1,048 | 29 | 141 | 36.137931 | 0.810748 | 0.072519 | 0 | 0 | 0 | 0 | 0.096244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.227273 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3c851c6838338eccb5961a0d01c240cf71fb5909 | 6,671 | py | Python | iterm2_tools/shell_integration.py | asmeurer/iterm2-tools | 97b1b593bb02884521c2c05ed414f178de0b934e | [
"MIT"
] | 19 | 2015-08-26T05:52:38.000Z | 2019-12-15T22:07:00.000Z | iterm2_tools/shell_integration.py | iamthad/iterm2-tools | 97b1b593bb02884521c2c05ed414f178de0b934e | [
"MIT"
] | 12 | 2015-08-29T19:45:47.000Z | 2019-09-09T16:42:45.000Z | iterm2_tools/shell_integration.py | iamthad/iterm2-tools | 97b1b593bb02884521c2c05ed414f178de0b934e | [
"MIT"
] | 2 | 2016-06-01T19:02:27.000Z | 2016-07-11T12:16:00.000Z | """
Shell integration
See https://groups.google.com/d/msg/iterm2-discuss/URKCBtS0228/rs5Ive4PCAAJ
for documentation on the sequences,
https://github.com/gnachman/iterm2-website/tree/master/source/misc for example
implementations, and https://iterm2.com/shell_integration.html for a list of
what this lets you do in iTer... | 32.70098 | 93 | 0.70724 | 946 | 6,671 | 4.862579 | 0.290698 | 0.048043 | 0.014783 | 0.009565 | 0.172391 | 0.138261 | 0.135652 | 0.106087 | 0.096522 | 0.096522 | 0 | 0.020034 | 0.206866 | 6,671 | 203 | 94 | 32.862069 | 0.849367 | 0.73782 | 0 | 0.073171 | 0 | 0 | 0.220114 | 0.158128 | 0 | 0 | 0 | 0 | 0 | 1 | 0.243902 | false | 0 | 0.073171 | 0 | 0.390244 | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3c895f6854062d2d0c2fc56e11c156f6c6195558 | 5,307 | py | Python | sys/controller/AuthorController.py | frankdede/CMPUT410W14T07 | 18b88ae8d12459eeb0073c48e0708fb2b175b9ba | [
"Apache-2.0"
] | 1 | 2017-01-04T11:55:21.000Z | 2017-01-04T11:55:21.000Z | sys/controller/AuthorController.py | frankdede/CMPUT410W14T07 | 18b88ae8d12459eeb0073c48e0708fb2b175b9ba | [
"Apache-2.0"
] | null | null | null | sys/controller/AuthorController.py | frankdede/CMPUT410W14T07 | 18b88ae8d12459eeb0073c48e0708fb2b175b9ba | [
"Apache-2.0"
] | null | null | null | from AuthorHelper import *
from RequestController import *
from CircleController import *
from DatabaseAdapter import *
from ServerHelper import *
import sys
sys.path.append("sys/model")
import json
import Utility
class AuthorController:
"""
Author Contoller is used to control author helper
"""
def ... | 31.778443 | 90 | 0.55587 | 511 | 5,307 | 5.708415 | 0.232877 | 0.071306 | 0.020569 | 0.019198 | 0.439493 | 0.386013 | 0.373672 | 0.349674 | 0.32362 | 0.296195 | 0 | 0.005239 | 0.352553 | 5,307 | 166 | 91 | 31.96988 | 0.843714 | 0 | 0 | 0.517544 | 0 | 0 | 0.034713 | 0.005785 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017544 | 0.070175 | null | null | 0.017544 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3c8f70d0b759dec832314b2dd14db86587f44209 | 875 | py | Python | ex112/utilidadescev/moeda/__init__.py | Matheus-Pontes/Curso-Python-3 | a55f6730112ee58d6b23158d50b9d3051dce4448 | [
"MIT"
] | null | null | null | ex112/utilidadescev/moeda/__init__.py | Matheus-Pontes/Curso-Python-3 | a55f6730112ee58d6b23158d50b9d3051dce4448 | [
"MIT"
] | null | null | null | ex112/utilidadescev/moeda/__init__.py | Matheus-Pontes/Curso-Python-3 | a55f6730112ee58d6b23158d50b9d3051dce4448 | [
"MIT"
] | null | null | null | def dobro(n=0, formato=False):
res = n*2
return res if formato is False else moeda(res)
def metade(n=0, formato=False):
res = n/2
return res if formato is False else moeda(res)
def aumento(n=0, formato=False):
res = n + (n * 0.1)
return res if formato is False else moeda(res)
def diminuir(... | 25 | 51 | 0.598857 | 151 | 875 | 3.470199 | 0.251656 | 0.030534 | 0.068702 | 0.10687 | 0.454198 | 0.454198 | 0.454198 | 0.454198 | 0.377863 | 0.377863 | 0 | 0.042151 | 0.213714 | 875 | 34 | 52 | 25.735294 | 0.719477 | 0 | 0 | 0.291667 | 0 | 0 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.041667 | 0.458333 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3c94d3e4ee12d1b910248ca11e236e24856b6995 | 596 | py | Python | ProjectSoftUni/ProjectSoftUni/common/validators.py | BogdanTopalov/Django-Projects | 04d82845fc6f891c01b38e8530ea6ee4aba2ad57 | [
"MIT"
] | null | null | null | ProjectSoftUni/ProjectSoftUni/common/validators.py | BogdanTopalov/Django-Projects | 04d82845fc6f891c01b38e8530ea6ee4aba2ad57 | [
"MIT"
] | null | null | null | ProjectSoftUni/ProjectSoftUni/common/validators.py | BogdanTopalov/Django-Projects | 04d82845fc6f891c01b38e8530ea6ee4aba2ad57 | [
"MIT"
] | null | null | null | from django.core.exceptions import ValidationError
from django.utils.deconstruct import deconstructible
# Validator for Profile model names
def only_letters_validator(value):
for ch in value:
if not ch.isalpha():
raise ValidationError('The name must contain only letters!')
@deconstructible
c... | 28.380952 | 72 | 0.70302 | 75 | 596 | 5.4 | 0.56 | 0.049383 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019481 | 0.224832 | 596 | 20 | 73 | 29.8 | 0.857143 | 0.055369 | 0 | 0 | 0 | 0 | 0.115865 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 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 |
3c96fe6a5aec54776bac1d8a008285d625f05c52 | 467 | py | Python | neuromaps/tests/test_utils.py | VinceBaz/neuromaps | 6758b53e127d1563fa06eb26bc5f08a4e24ae7e7 | [
"BSD-3-Clause"
] | null | null | null | neuromaps/tests/test_utils.py | VinceBaz/neuromaps | 6758b53e127d1563fa06eb26bc5f08a4e24ae7e7 | [
"BSD-3-Clause"
] | null | null | null | neuromaps/tests/test_utils.py | VinceBaz/neuromaps | 6758b53e127d1563fa06eb26bc5f08a4e24ae7e7 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
For testing neuromaps.utils functionality
"""
import os
import pytest
from neuromaps import utils
def test_tmpname(tmp_path):
out = utils.tmpname('.nii.gz', prefix='test', directory=tmp_path)
assert (isinstance(out, os.PathLike) and out.name.startswith('test')
and out... | 17.961538 | 72 | 0.691649 | 65 | 467 | 4.861538 | 0.553846 | 0.066456 | 0.063291 | 0.113924 | 0.139241 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002577 | 0.169165 | 467 | 25 | 73 | 18.68 | 0.811856 | 0.137045 | 0 | 0.307692 | 0 | 0 | 0.055696 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.230769 | false | 0 | 0.230769 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3c992e384b2af0f81ff3b305f8743adcc4d612b0 | 1,347 | py | Python | 103. Linked List Cycle II.py | Wangbicong/leetcode | 23ba29677b4d4b0a90014dc3a92ab7fae5a4d980 | [
"MIT"
] | 4 | 2018-04-14T17:12:11.000Z | 2018-05-04T05:52:01.000Z | 103. Linked List Cycle II.py | Wangbicong/leetcode-python | 23ba29677b4d4b0a90014dc3a92ab7fae5a4d980 | [
"MIT"
] | null | null | null | 103. Linked List Cycle II.py | Wangbicong/leetcode-python | 23ba29677b4d4b0a90014dc3a92ab7fae5a4d980 | [
"MIT"
] | null | null | null | """
Definition of ListNode
class ListNode(object):
def __init__(self, val, next=None):
self.val = val
self.next = next
"""
# Solution 1: Solve the challenge:
# "Can you solve it without using extra space?"
#
# Hint:
# 1. like 102 Linked List Cycle, you can figure out if there is a cycle
# 2. if... | 31.325581 | 105 | 0.544172 | 185 | 1,347 | 3.940541 | 0.421622 | 0.010974 | 0.037037 | 0.027435 | 0.11797 | 0.076818 | 0.076818 | 0 | 0 | 0 | 0 | 0.018454 | 0.356347 | 1,347 | 42 | 106 | 32.071429 | 0.822376 | 0.632517 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b1af899a95a1e6d50fa9815dabbdb7f37f972cd3 | 1,753 | py | Python | phiimages/migrations/0009_auto_20210918_0109.py | denn-is-njeruh/Instaclone | a2f3c36822c419bfeadc56adccce00ce77e1d16e | [
"MIT"
] | null | null | null | phiimages/migrations/0009_auto_20210918_0109.py | denn-is-njeruh/Instaclone | a2f3c36822c419bfeadc56adccce00ce77e1d16e | [
"MIT"
] | null | null | null | phiimages/migrations/0009_auto_20210918_0109.py | denn-is-njeruh/Instaclone | a2f3c36822c419bfeadc56adccce00ce77e1d16e | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-09-17 22:09
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('phiimages', '0008_remove_image_profile'),
]
operations = [
migrations.AlterMod... | 28.737705 | 138 | 0.553908 | 156 | 1,753 | 6.096154 | 0.391026 | 0.07571 | 0.067298 | 0.07571 | 0.409043 | 0.339642 | 0.136698 | 0.136698 | 0.136698 | 0.136698 | 0 | 0.016034 | 0.324016 | 1,753 | 60 | 139 | 29.216667 | 0.786498 | 0.02567 | 0 | 0.611111 | 1 | 0 | 0.12544 | 0.014654 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 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 |
b1affa0cb02c8d7369f3376a681dd936e47e1fd1 | 534 | py | Python | tests/completers/test_completer_command.py | cryzed/xonsh | e02c7d76c4ae169408078c8695214589552617c9 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | tests/completers/test_completer_command.py | cryzed/xonsh | e02c7d76c4ae169408078c8695214589552617c9 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | tests/completers/test_completer_command.py | cryzed/xonsh | e02c7d76c4ae169408078c8695214589552617c9 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | from xonsh.parsers.completion_context import CommandArg, CommandContext, CompletionContext
from xonsh.completers.completer import complete_completer
def test_options():
assert complete_completer(CompletionContext(CommandContext(
args=(CommandArg("completer"),), arg_index=1,
))) == {"add", "remove", "l... | 35.6 | 90 | 0.726592 | 54 | 534 | 7.018519 | 0.462963 | 0.134565 | 0.110818 | 0.158311 | 0.443272 | 0.443272 | 0.443272 | 0.443272 | 0.443272 | 0 | 0 | 0.004301 | 0.129213 | 534 | 14 | 91 | 38.142857 | 0.810753 | 0 | 0 | 0.2 | 0 | 0 | 0.097378 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | true | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b1b7e6c2f021acface8637dd1530d9130979b2f0 | 2,517 | py | Python | src/book.py | Amatsukan/TechnicalAssessment | b30eaa2b94b9e34e61ee2372b61eb151fa8aa95c | [
"Unlicense"
] | null | null | null | src/book.py | Amatsukan/TechnicalAssessment | b30eaa2b94b9e34e61ee2372b61eb151fa8aa95c | [
"Unlicense"
] | null | null | null | src/book.py | Amatsukan/TechnicalAssessment | b30eaa2b94b9e34e61ee2372b61eb151fa8aa95c | [
"Unlicense"
] | null | null | null | import json
from sort_strategy import *
class SortingServiceException(Exception):
def __init__(self, value):
self.value = value
def __str__(self):
return repr(self.value)
def create_book_by_dict(book_dict):
title = ('%(title)s' % book_dict)
author = ('%(author)s' % book_dict)
year ... | 27.659341 | 109 | 0.577672 | 308 | 2,517 | 4.519481 | 0.237013 | 0.090517 | 0.038793 | 0.022989 | 0.176724 | 0.176724 | 0.08477 | 0.08477 | 0.08477 | 0.08477 | 0 | 0.00057 | 0.303139 | 2,517 | 90 | 110 | 27.966667 | 0.793044 | 0.016687 | 0 | 0.277778 | 0 | 0 | 0.074778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.027778 | 0.027778 | 0.402778 | 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 |
b1c6f633b3e8e154cc2a038c98ca2d141e58f09c | 437 | py | Python | service2/application/routes.py | Ashley-Edge/DnD_character_generator | 7804b2cbc9def9fad8993ba8af0ae4c94da01c01 | [
"MIT"
] | 1 | 2021-04-21T10:59:45.000Z | 2021-04-21T10:59:45.000Z | service2/application/routes.py | Ashley-Edge/DnD_character_generator | 7804b2cbc9def9fad8993ba8af0ae4c94da01c01 | [
"MIT"
] | null | null | null | service2/application/routes.py | Ashley-Edge/DnD_character_generator | 7804b2cbc9def9fad8993ba8af0ae4c94da01c01 | [
"MIT"
] | 1 | 2021-04-21T10:59:48.000Z | 2021-04-21T10:59:48.000Z | #!/usr/bin/python3
# Routes.py file
##### Imports #####
from flask import Flask, Response, request
import random
from application import app
##### Race route #####
@app.route('/race', methods=['GET'])
def character_race():
character_races = ["a Dwarf", "an Elf", "a Halfling", "a Human"]
... | 29.133333 | 68 | 0.647597 | 54 | 437 | 5.148148 | 0.648148 | 0.140288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005602 | 0.183066 | 437 | 15 | 69 | 29.133333 | 0.773109 | 0.171625 | 0 | 0 | 0 | 0 | 0.141176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 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 |
b1cfd95e37f924bbbcd9fb33eac2dd292918c5f1 | 450 | py | Python | freegames_study/pack_turtle.py | xtawfnhdx/free-python-games | be5f61240d5f3b67225e62b23513cd6effe312d4 | [
"Apache-2.0"
] | null | null | null | freegames_study/pack_turtle.py | xtawfnhdx/free-python-games | be5f61240d5f3b67225e62b23513cd6effe312d4 | [
"Apache-2.0"
] | null | null | null | freegames_study/pack_turtle.py | xtawfnhdx/free-python-games | be5f61240d5f3b67225e62b23513cd6effe312d4 | [
"Apache-2.0"
] | null | null | null | import turtle
import time
'''
turtle.goto(100,100)
turtle.goto(100,0)
turtle.goto(0,0)
turtle.rt(90)
turtle.fd(100)
turtle.goto(0,0)
time.sleep(3)
turtle.clear()
turtle.left(45)
turtle.fd(150)
turtle.right(135)
turtle.fd(150)
turtle.left(135)
turtle.fd(150)
time.sleep(3)
turtle.clear()
'''
turtle.pensize(10)
turtl... | 13.636364 | 30 | 0.715556 | 85 | 450 | 3.788235 | 0.305882 | 0.173913 | 0.093168 | 0.074534 | 0.167702 | 0.167702 | 0 | 0 | 0 | 0 | 0 | 0.159036 | 0.077778 | 450 | 33 | 31 | 13.636364 | 0.616867 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | 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 |
b1d895b4d0683da4df1c05cc6e2696930f70adfa | 3,803 | py | Python | sdk/python/pulumi_keycloak/get_user_realm_roles.py | pulumi/pulumi-keycloak | ac6174c60f7dea3ff10f078e3a2dfd7d43cfb5bb | [
"ECL-2.0",
"Apache-2.0"
] | 13 | 2020-04-28T15:20:56.000Z | 2022-03-24T18:00:17.000Z | sdk/python/pulumi_keycloak/get_user_realm_roles.py | pulumi/pulumi-keycloak | ac6174c60f7dea3ff10f078e3a2dfd7d43cfb5bb | [
"ECL-2.0",
"Apache-2.0"
] | 49 | 2020-02-06T17:53:35.000Z | 2022-03-25T19:36:08.000Z | sdk/python/pulumi_keycloak/get_user_realm_roles.py | pulumi/pulumi-keycloak | ac6174c60f7dea3ff10f078e3a2dfd7d43cfb5bb | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2020-06-09T01:08:56.000Z | 2021-12-07T15:30:37.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import ... | 33.654867 | 145 | 0.664212 | 476 | 3,803 | 5.010504 | 0.271008 | 0.055765 | 0.02935 | 0.050314 | 0.152201 | 0.116562 | 0.052411 | 0.028931 | 0 | 0 | 0 | 0.000345 | 0.237444 | 3,803 | 112 | 146 | 33.955357 | 0.822069 | 0.259795 | 0 | 0.060606 | 1 | 0 | 0.137905 | 0.039135 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106061 | false | 0 | 0.075758 | 0.030303 | 0.30303 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b1d9625f2a1b02d052fda3283f4bb43a139fdb92 | 694 | py | Python | library/books/models.py | valdergallo/books-graphql | aa9619c4767bc27969a19ebf2316d55602f6a41d | [
"MIT"
] | 1 | 2017-10-23T09:02:55.000Z | 2017-10-23T09:02:55.000Z | library/books/models.py | valdergallo/books-graphql | aa9619c4767bc27969a19ebf2316d55602f6a41d | [
"MIT"
] | null | null | null | library/books/models.py | valdergallo/books-graphql | aa9619c4767bc27969a19ebf2316d55602f6a41d | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from django.db import models
from core.models import Tags
from authors.models import Author
class Book(models.Model):
name = models.CharField(max_length=150)
slug = models.SlugField(null=True, blank=True)
description = models.TextField(null=True, blank=True)
auth... | 30.173913 | 67 | 0.740634 | 88 | 694 | 5.670455 | 0.522727 | 0.096192 | 0.052104 | 0.068136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005164 | 0.162824 | 694 | 23 | 67 | 30.173913 | 0.853701 | 0 | 0 | 0 | 0 | 0 | 0.017266 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.222222 | 0.055556 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b1db9d8b497fe8db07ae83efd11b60c1a8c123d8 | 996 | py | Python | background/StartScreen.py | Quikks1lver/gran-forest | 894dc8a05d7067dd14f05cc3318fbc584df748c1 | [
"MIT"
] | 1 | 2021-06-13T19:40:30.000Z | 2021-06-13T19:40:30.000Z | background/StartScreen.py | Quikks1lver/sweet-retreat | 894dc8a05d7067dd14f05cc3318fbc584df748c1 | [
"MIT"
] | 50 | 2021-05-11T00:34:42.000Z | 2021-11-15T02:15:05.000Z | background/StartScreen.py | Quikks1lver/sweet-retreat | 894dc8a05d7067dd14f05cc3318fbc584df748c1 | [
"MIT"
] | null | null | null | import pygame
from color.Colors import Colors
from text.Text import Text
from timing.ClockMethods import Clock_Methods
class Start_Screen():
"""
Represents a (starting) game screen
"""
TIMER_DELAY = 500
def __init__(self, image_path: str) -> None:
self.TARGET_TIME = Clock_Methods.get_curr... | 34.344828 | 109 | 0.660643 | 130 | 996 | 4.823077 | 0.484615 | 0.095694 | 0.089314 | 0.060606 | 0.328549 | 0.328549 | 0.328549 | 0.328549 | 0.328549 | 0.328549 | 0 | 0.021136 | 0.23996 | 996 | 29 | 110 | 34.344828 | 0.807133 | 0.133534 | 0 | 0.133333 | 0 | 0 | 0.0306 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.266667 | 0 | 0.533333 | 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 |
b1df7b37a3bc896f3f3f66e814342a0a3c67b3e3 | 11,053 | py | Python | src/courses/models.py | graipher/TeaRoom | 0beb8c2c889b8685d5b7a463206de41947c2d669 | [
"MIT"
] | null | null | null | src/courses/models.py | graipher/TeaRoom | 0beb8c2c889b8685d5b7a463206de41947c2d669 | [
"MIT"
] | 15 | 2015-05-20T12:55:13.000Z | 2022-03-11T23:26:40.000Z | src/courses/models.py | graipher/TeaRoom | 0beb8c2c889b8685d5b7a463206de41947c2d669 | [
"MIT"
] | 2 | 2016-11-17T11:07:41.000Z | 2017-07-07T11:18:36.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: Salvatore Zaza
# @Date: 2015-08-02 18:38:54
# @Last Modified by: Salvatore Zaza
# @Last Modified time: 2015-09-28 20:06:48
from django.db import models
# Create your models here.
from datetime import date
import datetime
from django.core.exceptions import Va... | 36.239344 | 131 | 0.661811 | 1,366 | 11,053 | 5.190337 | 0.176428 | 0.03103 | 0.012412 | 0.019182 | 0.416643 | 0.380536 | 0.307334 | 0.2811 | 0.253032 | 0.229619 | 0 | 0.008907 | 0.227992 | 11,053 | 304 | 132 | 36.358553 | 0.821985 | 0.118429 | 0 | 0.228426 | 0 | 0 | 0.071019 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121827 | false | 0.015228 | 0.060914 | 0.06599 | 0.583756 | 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 |
b1e7abeec90a3625d80fec79e67e5c7c5e86b695 | 13,777 | py | Python | webui/archive/houseHunter_mongod.py | glennklockwood/procmon | c6e67d63e7c9c24f85a46b6d8965b8c615097edc | [
"BSD-3-Clause-LBNL"
] | null | null | null | webui/archive/houseHunter_mongod.py | glennklockwood/procmon | c6e67d63e7c9c24f85a46b6d8965b8c615097edc | [
"BSD-3-Clause-LBNL"
] | null | null | null | webui/archive/houseHunter_mongod.py | glennklockwood/procmon | c6e67d63e7c9c24f85a46b6d8965b8c615097edc | [
"BSD-3-Clause-LBNL"
] | null | null | null | import os
import sys
import re
import json
import cgi
import threading
import datetime
import time
from BaseHTTPServer import BaseHTTPRequestHandler
from BaseHTTPServer import HTTPServer
import urlparse
class AMQPBridgeServer(HTTPServer):
def __init__(self, config, requestHandler):
HTTPServer.__init__(... | 37.134771 | 150 | 0.547652 | 1,512 | 13,777 | 4.881614 | 0.17791 | 0.016258 | 0.013413 | 0.013006 | 0.412004 | 0.35063 | 0.327056 | 0.298063 | 0.290476 | 0.24956 | 0 | 0.009904 | 0.318429 | 13,777 | 370 | 151 | 37.235135 | 0.776145 | 0.026856 | 0 | 0.341772 | 0 | 0 | 0.164726 | 0.007986 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006329 | 0.037975 | null | null | 0.012658 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b1e7b9013b3d9b53f38a6ffa7191cf6e3cb66511 | 721 | py | Python | ituro/sumo/management/commands/printstagematches.py | kayduemre/ituro | eb5bb0655c2d85eed212d28c1d154006c57a4f03 | [
"MIT"
] | 9 | 2015-03-18T01:59:24.000Z | 2022-03-09T06:36:21.000Z | ituro/sumo/management/commands/printstagematches.py | kayduemre/ituro | eb5bb0655c2d85eed212d28c1d154006c57a4f03 | [
"MIT"
] | 29 | 2015-03-18T01:59:49.000Z | 2021-06-10T20:39:03.000Z | ituro/sumo/management/commands/printstagematches.py | kayduemre/ituro | eb5bb0655c2d85eed212d28c1d154006c57a4f03 | [
"MIT"
] | 10 | 2016-01-31T05:44:46.000Z | 2019-10-15T06:12:27.000Z | from django.core.management.base import BaseCommand, CommandError
from sumo.models import SumoStageMatch, SumoGroupTeam, SumoGroup, SumoStage
from random import shuffle
class Command(BaseCommand):
args = "<int>"
help = 'Generates stage matches'
def handle(self, *args, **options):
try:
... | 32.772727 | 75 | 0.640777 | 81 | 721 | 5.654321 | 0.654321 | 0.09607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005576 | 0.253814 | 721 | 21 | 76 | 34.333333 | 0.845725 | 0 | 0 | 0 | 0 | 0 | 0.140083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.176471 | null | null | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b1f0f947e84f2fed89f75c391040b5a46be9598b | 1,860 | py | Python | setup.py | osynge/pmpman | 9b444bab6c890565a95714502902e18b8c9a1807 | [
"MIT"
] | null | null | null | setup.py | osynge/pmpman | 9b444bab6c890565a95714502902e18b8c9a1807 | [
"MIT"
] | null | null | null | setup.py | osynge/pmpman | 9b444bab6c890565a95714502902e18b8c9a1807 | [
"MIT"
] | null | null | null | from pmpmanager.__version__ import version
from sys import version_info
if version_info < (2, 6):
import sys
print "Please use a newer version of python"
sys.exit(1)
try:
from setuptools import setup, find_packages
except ImportError:
try:
from distutils.core import setup
except Import... | 30 | 120 | 0.634946 | 216 | 1,860 | 5.375 | 0.574074 | 0.028424 | 0.034453 | 0.043066 | 0.175711 | 0.175711 | 0.111972 | 0.111972 | 0.111972 | 0.111972 | 0 | 0.012082 | 0.243548 | 1,860 | 61 | 121 | 30.491803 | 0.813077 | 0.03871 | 0 | 0.25 | 0 | 0 | 0.427451 | 0.015686 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.019231 | 0.211538 | null | null | 0.019231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b1f51709ac4c7dd98287482cbf8325434ff823eb | 1,063 | py | Python | setup.py | ericmjl/pymc3-models | 6294f05ce5377dec74b616c97e6aff1f5b5db036 | [
"BSD-3-Clause"
] | 1 | 2020-09-29T03:49:52.000Z | 2020-09-29T03:49:52.000Z | setup.py | ericmjl/pymc3-models | 6294f05ce5377dec74b616c97e6aff1f5b5db036 | [
"BSD-3-Clause"
] | null | null | null | setup.py | ericmjl/pymc3-models | 6294f05ce5377dec74b616c97e6aff1f5b5db036 | [
"BSD-3-Clause"
] | null | null | null | import os
from setuptools import setup, find_packages
from pip.req import parse_requirements
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
d... | 35.433333 | 79 | 0.696143 | 147 | 1,063 | 4.931973 | 0.639456 | 0.041379 | 0.035862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013746 | 0.178739 | 1,063 | 29 | 80 | 36.655172 | 0.816724 | 0.202258 | 0 | 0 | 0 | 0 | 0.298932 | 0.054567 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | 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 |
590595e0d393c6f58aad0efeff177eb51e771e39 | 298 | py | Python | Segger/__init__.py | gregdp/segger | d4c112fd43f0b088145e225f976335800874ebe5 | [
"MIT"
] | 6 | 2019-03-27T22:53:12.000Z | 2021-11-19T09:02:05.000Z | Segger/__init__.py | gregdp/segger | d4c112fd43f0b088145e225f976335800874ebe5 | [
"MIT"
] | 1 | 2017-03-07T16:52:30.000Z | 2019-11-25T21:37:21.000Z | Segger/__init__.py | gregdp/segger | d4c112fd43f0b088145e225f976335800874ebe5 | [
"MIT"
] | 5 | 2019-05-30T19:10:01.000Z | 2022-02-09T07:04:59.000Z | dev_menus = False # Include under-development menus.
showDevTools = False # some new also under-development tools
timing = False # Report execution times for optimizing code.
seggerVersion = '2.8.2'
mapqVersion = '1.8.2'
from regions import Segmentation, Region, SelectedRegions
| 37.25 | 69 | 0.734899 | 37 | 298 | 5.891892 | 0.783784 | 0.146789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024896 | 0.191275 | 298 | 7 | 70 | 42.571429 | 0.879668 | 0.38255 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 |
590e5c9fd27c862dea3eb06653a18344f9b04339 | 1,392 | py | Python | login.py | karwootang-gft/tb-houston-service | cd22d334bdac7ecea93f6640b9825286d10d1f26 | [
"Apache-2.0"
] | 1 | 2020-03-06T17:34:45.000Z | 2020-03-06T17:34:45.000Z | login.py | karwootang-gft/tb-houston-service | cd22d334bdac7ecea93f6640b9825286d10d1f26 | [
"Apache-2.0"
] | 67 | 2020-05-29T08:23:26.000Z | 2021-07-28T06:59:45.000Z | login.py | karwootang-gft/tb-houston-service | cd22d334bdac7ecea93f6640b9825286d10d1f26 | [
"Apache-2.0"
] | null | null | null | """
Login module - supports all the ReST actions login.
"""
# 3rd party modules
from flask import abort
from config import app
from pprint import pformat
from models import ModelTools
from models import User
from extendedSchemas import ExtendedUserSchema
def check_credentials(login_details):
"""
Responds to... | 30.26087 | 95 | 0.672414 | 169 | 1,392 | 5.467456 | 0.426036 | 0.077922 | 0.090909 | 0.107143 | 0.396104 | 0.32684 | 0.32684 | 0.32684 | 0.32684 | 0.32684 | 0 | 0.010949 | 0.212644 | 1,392 | 45 | 96 | 30.933333 | 0.832117 | 0.109195 | 0 | 0.448276 | 0 | 0 | 0.112119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0.103448 | 0.206897 | 0 | 0.310345 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5914d2a6fd7f26352649df6d9db9a3cc8a2f40d6 | 1,035 | py | Python | packages/Mock/PathEditor/PathEditor.py | tommo/gii | 03624a57cf74a07e38bfdc7f53c50bd926b7b5a7 | [
"MIT"
] | 7 | 2016-02-13T18:47:23.000Z | 2020-07-03T13:47:49.000Z | packages/Mock/PathEditor/PathEditor.py | tommo/gii | 03624a57cf74a07e38bfdc7f53c50bd926b7b5a7 | [
"MIT"
] | 1 | 2018-06-13T04:55:27.000Z | 2021-11-05T05:52:51.000Z | packages/Mock/PathEditor/PathEditor.py | tommo/gii | 03624a57cf74a07e38bfdc7f53c50bd926b7b5a7 | [
"MIT"
] | 4 | 2016-02-15T13:32:46.000Z | 2019-12-12T17:22:31.000Z | import random
##----------------------------------------------------------------##
from gii.core import app, signals
from gii.SceneEditor import SceneEditorModule, getSceneSelectionManager, SceneTool, SceneToolButton
from mock import SceneViewTool
def _getModulePath( path ):
import os.path
return os.path.dir... | 26.538462 | 99 | 0.56715 | 90 | 1,035 | 6.344444 | 0.511111 | 0.087566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150725 | 1,035 | 38 | 100 | 27.236842 | 0.649602 | 0.185507 | 0 | 0 | 0 | 0 | 0.157641 | 0.025271 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.037037 | 0.185185 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5921ae232b00d8d70fdccabfca8dd9b72b82be9e | 1,057 | py | Python | pdf_all.py | moshekaplan/PDF-Tools | 45891adc0baea530c6c653fea42bb821d8e05591 | [
"BSD-2-Clause"
] | 7 | 2017-08-04T05:15:37.000Z | 2018-12-12T08:01:18.000Z | pdf_all.py | moshekaplan/PDF-Tools | 45891adc0baea530c6c653fea42bb821d8e05591 | [
"BSD-2-Clause"
] | 4 | 2016-10-11T14:05:10.000Z | 2016-10-11T14:23:07.000Z | pdf_all.py | moshekaplan/pdf_analysis_tools | 45891adc0baea530c6c653fea42bb821d8e05591 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
# encoding:UTF-8
"""
This script runs a file through all of the PDF tools
"""
import os
import sys
import pdf_js
import pdf_links
import pdf_strings
import pdf_openaction
def run_all(fpath):
print "*"*20 + "PDF OpenAction" + "*"*20
pdf_openaction.extract_openactions(fpath)
print ... | 23.488889 | 71 | 0.564806 | 144 | 1,057 | 3.986111 | 0.416667 | 0.060976 | 0.083624 | 0.10453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028378 | 0.299905 | 1,057 | 44 | 72 | 24.022727 | 0.747297 | 0.033113 | 0 | 0.064516 | 0 | 0 | 0.094792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.193548 | null | null | 0.225806 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
592406123280383662bde69529a2441dd41f7632 | 181 | py | Python | connpy/__main__.py | fluzzi/connpy | 38eb2e2d371f4b97e60add461c4bea9d6540f616 | [
"MIT"
] | null | null | null | connpy/__main__.py | fluzzi/connpy | 38eb2e2d371f4b97e60add461c4bea9d6540f616 | [
"MIT"
] | null | null | null | connpy/__main__.py | fluzzi/connpy | 38eb2e2d371f4b97e60add461c4bea9d6540f616 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
from connpy import *
def main():
conf = configfile()
app = connapp(conf)
app.start()
if __name__ == '__main__':
sys.exit(main())
| 15.083333 | 26 | 0.624309 | 24 | 181 | 4.375 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007092 | 0.220994 | 181 | 11 | 27 | 16.454545 | 0.737589 | 0.116022 | 0 | 0 | 0 | 0 | 0.050314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 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 |
592593deff32925c6ef931a0c03b42cfc41c7638 | 535 | py | Python | Audio/Speech-Emotion-Analyzer/preprocess.py | LiuHaolan/models | 1639b3039237c3997c51ff87f0b6113bb2e8d236 | [
"Apache-2.0"
] | 43 | 2021-06-03T09:07:08.000Z | 2022-03-31T15:21:48.000Z | Audio/Speech-Emotion-Analyzer/preprocess.py | LiuHaolan/models | 1639b3039237c3997c51ff87f0b6113bb2e8d236 | [
"Apache-2.0"
] | 64 | 2021-05-31T10:34:06.000Z | 2022-01-17T03:44:58.000Z | Audio/Speech-Emotion-Analyzer/preprocess.py | LiuHaolan/models | 1639b3039237c3997c51ff87f0b6113bb2e8d236 | [
"Apache-2.0"
] | 37 | 2021-07-04T03:13:18.000Z | 2022-03-25T07:30:47.000Z | """Extracting and saving the features of the audio in the dataset"""
import extract_feats.opensmile as of
import extract_feats.librosa as lf
from utils import parse_opt
import os
config = parse_opt()
os.makedirs(config.checkpoint_path)
os.makedirs(config.feature_path)
if config.feature_method == "o":
of.get_data... | 28.157895 | 88 | 0.773832 | 81 | 535 | 4.888889 | 0.432099 | 0.098485 | 0.090909 | 0.09596 | 0.247475 | 0.247475 | 0.247475 | 0.247475 | 0.247475 | 0.247475 | 0 | 0 | 0.134579 | 535 | 18 | 89 | 29.722222 | 0.855292 | 0.115888 | 0 | 0 | 0 | 0 | 0.004283 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
592b2dd1b0aae9f9a59f4e539317e9c0152cdc08 | 629 | py | Python | Tools/gen_proto.py | fuliufuliu/UnitySocketProtobuf3Demo | 3a07104d6fa2707fd73751dca52b1e03736e22ea | [
"MIT"
] | 2 | 2020-07-21T07:59:22.000Z | 2020-07-21T07:59:25.000Z | Tools/gen_proto.py | fuliufuliu/UnitySocketProtobuf3Demo | 3a07104d6fa2707fd73751dca52b1e03736e22ea | [
"MIT"
] | null | null | null | Tools/gen_proto.py | fuliufuliu/UnitySocketProtobuf3Demo | 3a07104d6fa2707fd73751dca52b1e03736e22ea | [
"MIT"
] | null | null | null | from MsgID.csfile import genCSfile
from MsgID.gofile import genGolangfile
from MsgID.proto import loadProto
import subprocess
from const import cs_msg_path, go_msg_path, proto_path
protocCsCmd = 'protoc --proto_path=./Proto/src --csharp_out=' + cs_msg_path + ' ' + proto_path + '/*.proto'
protocGoCmd = 'protoc --prot... | 24.192308 | 108 | 0.736089 | 78 | 629 | 5.74359 | 0.346154 | 0.140625 | 0.125 | 0.107143 | 0.241071 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124006 | 629 | 25 | 109 | 25.16 | 0.813067 | 0 | 0 | 0 | 0 | 0 | 0.23114 | 0.077047 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.3125 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
592da66114218feeca60470f138c2bc4309a2f18 | 3,956 | py | Python | tests/test_speed_test.py | NateV/ispi | d8fd9c7cb8f77da23622d943033012fd1b196652 | [
"MIT"
] | null | null | null | tests/test_speed_test.py | NateV/ispi | d8fd9c7cb8f77da23622d943033012fd1b196652 | [
"MIT"
] | null | null | null | tests/test_speed_test.py | NateV/ispi | d8fd9c7cb8f77da23622d943033012fd1b196652 | [
"MIT"
] | null | null | null | from ispi import SpeedTest
import os
import pytest
import sqlite3
import re
class TestSpeedTest:
def setup_method(self, method):
self.tester = SpeedTest()
def teardown_method(self, method):
if os.path.exists(os.path.join(self.tester.DB_PATH,\
self.tester.SCHEMA['DB_NAME'])... | 38.407767 | 83 | 0.625885 | 509 | 3,956 | 4.656189 | 0.269155 | 0.147679 | 0.074262 | 0.047257 | 0.295359 | 0.22616 | 0.216456 | 0.216456 | 0.216456 | 0.181857 | 0 | 0.002387 | 0.258847 | 3,956 | 102 | 84 | 38.784314 | 0.805935 | 0.118049 | 0 | 0.191781 | 0 | 0 | 0.111078 | 0.015574 | 0 | 0 | 0 | 0.019608 | 0.260274 | 1 | 0.164384 | false | 0 | 0.068493 | 0 | 0.246575 | 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 |
592e934fa3d1cfd9779e32eea1032478ebf9a2d1 | 210 | py | Python | loops/duplicates.py | Rhoynar/pysel | 7a283cfdcaea3b1e33e615d1e655b6bd1f23f09f | [
"MIT"
] | 1 | 2019-09-09T12:58:36.000Z | 2019-09-09T12:58:36.000Z | loops/duplicates.py | Rhoynar/pysel | 7a283cfdcaea3b1e33e615d1e655b6bd1f23f09f | [
"MIT"
] | null | null | null | loops/duplicates.py | Rhoynar/pysel | 7a283cfdcaea3b1e33e615d1e655b6bd1f23f09f | [
"MIT"
] | null | null | null | names = [
'John',
'Mary',
'Joe',
'Matt',
'David',
'Matt',
'John'
]
results = []
for name in names:
if name in results:
continue
results.append(name)
print(results) | 11.666667 | 24 | 0.504762 | 23 | 210 | 4.608696 | 0.608696 | 0.113208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.338095 | 210 | 18 | 25 | 11.666667 | 0.76259 | 0 | 0 | 0.133333 | 0 | 0 | 0.132701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.066667 | 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 |
593784afe868734cc4844a060f2c94ed5f4ce3f9 | 486 | py | Python | models/Aircraft.py | dev10110/AVD_Initial_Sizing | e25a9fc2f829b3e73e9933da78b41ff1d55e610b | [
"MIT"
] | 1 | 2019-11-05T00:14:15.000Z | 2019-11-05T00:14:15.000Z | models/Aircraft.py | dev10110/AVD_Initial_Sizing | e25a9fc2f829b3e73e9933da78b41ff1d55e610b | [
"MIT"
] | null | null | null | models/Aircraft.py | dev10110/AVD_Initial_Sizing | e25a9fc2f829b3e73e9933da78b41ff1d55e610b | [
"MIT"
] | 1 | 2019-11-04T21:38:12.000Z | 2019-11-04T21:38:12.000Z | from .Component import Component
class Aircraft(Component):
def __init__(self, fuselage, wing, engines, tail):
self.fuselage = fuselage
self.wing = wing
self.engines = engines
self.tail = tail
self.TW = None
self.MTOW = None
@property
def TW(self):
self._TW = self.engines._thrust/self._MTOW
retu... | 17.357143 | 51 | 0.705761 | 66 | 486 | 5.060606 | 0.378788 | 0.071856 | 0.053892 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 486 | 27 | 52 | 18 | 0.843434 | 0.024691 | 0 | 0.105263 | 0 | 0 | 0.042283 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.210526 | false | 0 | 0.052632 | 0 | 0.368421 | 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 |
593c2279b0dec43ba307d52d9dbad4a1e51d636a | 3,005 | py | Python | sim-vert-layers/py/sim-vert-layers.py | jrminter/dtsa2scripts | a7a4f3a63f47f0a8abe7ee13c72f5a27196c3a1b | [
"MIT"
] | 2 | 2018-04-19T12:25:29.000Z | 2018-11-24T12:55:46.000Z | sim-vert-layers/py/sim-vert-layers.py | jrminter/dtsa2Scripts | a7a4f3a63f47f0a8abe7ee13c72f5a27196c3a1b | [
"MIT"
] | null | null | null | sim-vert-layers/py/sim-vert-layers.py | jrminter/dtsa2Scripts | a7a4f3a63f47f0a8abe7ee13c72f5a27196c3a1b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# 1 2 3 4 5 6 7 |
# 23456789012345678901234567890123456789012345678901234567890123456789012
#
# sim-vert-layers.py
# jrm 2015-07-09 - use mc3 to simulate vertical layers
import sys
sys.packageManager.makeJavaPackage("gov.nist.microanalysis.... | 37.5625 | 190 | 0.734775 | 416 | 3,005 | 5.300481 | 0.461538 | 0.031746 | 0.054422 | 0.058957 | 0.178685 | 0.097506 | 0.03356 | 0.03356 | 0 | 0 | 0 | 0.072041 | 0.145424 | 3,005 | 80 | 191 | 37.5625 | 0.786604 | 0.243594 | 0 | 0.035088 | 0 | 0 | 0.105287 | 0.068414 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.245614 | null | null | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
593e393b10e6ba607bf09d636b944886c864fc33 | 706 | py | Python | pyke/tests/test_kepbls.py | ecalifornica/pyke | 6a3fcc0513cf012044e4420cc4d17064e582d142 | [
"MIT"
] | null | null | null | pyke/tests/test_kepbls.py | ecalifornica/pyke | 6a3fcc0513cf012044e4420cc4d17064e582d142 | [
"MIT"
] | 1 | 2017-07-25T19:23:05.000Z | 2017-07-25T19:23:05.000Z | pyke/tests/test_kepbls.py | mirca/PyKE | 6a3fcc0513cf012044e4420cc4d17064e582d142 | [
"MIT"
] | null | null | null | import pytest
from astropy.io import fits as pyfits
from astropy.utils.data import get_pkg_data_filename
from ..kepbls import kepbls
from ..kepio import delete
# fake light curve with transits of period = 2.02 days
# and duration 0.18 days
fake_lc = get_pkg_data_filename("data/golden-lc.fits")
def test_kepbls():
... | 35.3 | 77 | 0.692635 | 114 | 706 | 4.175439 | 0.552632 | 0.063025 | 0.042017 | 0.07563 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049404 | 0.168555 | 706 | 19 | 78 | 37.157895 | 0.761499 | 0.106232 | 0 | 0 | 0 | 0 | 0.165605 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
594191f37ad31bc9f1bda09fb24c05ce71209fd9 | 4,561 | py | Python | examples/model_examples.py | avigad/boole | 2a436c2967dbc968f6a5877c220b9757c3bc17c3 | [
"Apache-2.0"
] | 16 | 2015-01-01T18:21:35.000Z | 2021-11-20T00:39:25.000Z | examples/model_examples.py | avigad/boole | 2a436c2967dbc968f6a5877c220b9757c3bc17c3 | [
"Apache-2.0"
] | null | null | null | examples/model_examples.py | avigad/boole | 2a436c2967dbc968f6a5877c220b9757c3bc17c3 | [
"Apache-2.0"
] | 1 | 2021-05-14T11:12:31.000Z | 2021-05-14T11:12:31.000Z | ################################################################################
#
# model_examples.py
#
# authors:
# Jeremy Avigad
#
################################################################################
from boole.elaboration.prelude import *
from boole.semantics.value import *
from boole.elaboration.terms... | 33.785185 | 96 | 0.487612 | 672 | 4,561 | 3.28869 | 0.168155 | 0.022624 | 0.013575 | 0.038009 | 0.298643 | 0.280091 | 0.243439 | 0.21991 | 0.195475 | 0.195475 | 0 | 0.01794 | 0.242271 | 4,561 | 134 | 97 | 34.037313 | 0.621528 | 0.05569 | 0 | 0.103093 | 0 | 0 | 0.038297 | 0 | 0 | 0 | 0 | 0.007463 | 0 | 0 | null | null | 0 | 0.030928 | null | null | 0.092784 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
594376fe1bb779cef7aa311532f721c59a48685b | 7,965 | py | Python | custom_components/hilo/sensor.py | francispoisson/hilo | d2a1fe644d456a3663b915c64b00f72921df6578 | [
"Unlicense"
] | 26 | 2021-01-29T15:55:51.000Z | 2022-03-31T16:42:29.000Z | custom_components/hilo/sensor.py | valleedelisle/hilo | ebd2c515c2a7613960090f0ecb089a8745794113 | [
"Unlicense"
] | 50 | 2021-02-01T22:43:50.000Z | 2021-12-23T17:22:11.000Z | custom_components/hilo/sensor.py | francispoisson/hilo | d2a1fe644d456a3663b915c64b00f72921df6578 | [
"Unlicense"
] | 15 | 2021-02-07T21:24:12.000Z | 2022-02-03T18:41:09.000Z | from homeassistant.const import (
ENERGY_KILO_WATT_HOUR,
ENERGY_WATT_HOUR,
DEVICE_CLASS_ENERGY,
DEVICE_CLASS_POWER,
DEVICE_CLASS_TEMPERATURE,
TEMP_CELSIUS,
POWER_WATT,
)
from homeassistant.components.sensor import (
STATE_CLASS_MEASUREMENT,
)
from homeassistant.components.integration.sen... | 33.049793 | 130 | 0.669931 | 961 | 7,965 | 5.233091 | 0.193548 | 0.041758 | 0.030424 | 0.020879 | 0.37065 | 0.266256 | 0.245576 | 0.163651 | 0.149334 | 0.149334 | 0 | 0.001004 | 0.249969 | 7,965 | 240 | 131 | 33.1875 | 0.84081 | 0.070182 | 0 | 0.34359 | 0 | 0.005128 | 0.101616 | 0.016708 | 0 | 0 | 0 | 0 | 0 | 1 | 0.123077 | false | 0 | 0.05641 | 0.102564 | 0.323077 | 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 |
594c431c05231aad0a8671bb5b9de053a9fb036d | 465 | py | Python | app/user/migrations/0033_userreviewlist_event_host.py | Sovol2018/sovolo | 54250e42b4af3391d2f99690f45b93ab240563c2 | [
"MIT"
] | 2 | 2017-06-06T11:34:49.000Z | 2017-10-24T13:09:50.000Z | app/user/migrations/0033_userreviewlist_event_host.py | Sovol2018/sovolo | 54250e42b4af3391d2f99690f45b93ab240563c2 | [
"MIT"
] | 346 | 2016-08-09T20:50:57.000Z | 2018-08-28T06:52:17.000Z | app/user/migrations/0033_userreviewlist_event_host.py | hejob/sovolo | 8b73253d7bf0427c7ae0ebb6d8e3d70e118e8427 | [
"MIT"
] | 3 | 2017-11-27T14:07:57.000Z | 2018-08-13T15:51:01.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-21 23:55
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0032_auto_20170818_0930'),
]
operations = [
migrations.AddField(
... | 22.142857 | 57 | 0.627957 | 50 | 465 | 5.64 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095652 | 0.258065 | 465 | 20 | 58 | 23.25 | 0.721739 | 0.146237 | 0 | 0 | 1 | 0 | 0.129442 | 0.058376 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
594d8d4e3596c72fafa74d4367da0c1cf95b6806 | 7,134 | py | Python | bin/removeAdapterPolyA.py | gaofeng21cn/IDP-fusion | 052ac4f868fd416e10165ef4891804d25edc8862 | [
"Apache-2.0"
] | 4 | 2019-04-11T15:06:23.000Z | 2021-12-20T05:56:18.000Z | bin/removeAdapterPolyA.py | gaofeng21cn/IDP-fusion | 052ac4f868fd416e10165ef4891804d25edc8862 | [
"Apache-2.0"
] | 1 | 2016-05-16T02:37:48.000Z | 2016-08-10T18:09:56.000Z | bin/removeAdapterPolyA.py | gaofeng21cn/IDP-fusion | 052ac4f868fd416e10165ef4891804d25edc8862 | [
"Apache-2.0"
] | 4 | 2018-01-02T13:08:14.000Z | 2020-10-30T01:07:58.000Z | #!/usr/bin/python
import sys
import os
if len(sys.argv)>=6:
in_filename = sys.argv[1]
idx_filename =sys.argv[2]
Three_filename =sys.argv[3]
Five_filename = sys.argv[4]
polyA_min_len = int(sys.argv[5])
out_filename = sys.argv[6]
else:
print("usage: removeAdapterPolyA.py in_filename id... | 29.358025 | 122 | 0.506869 | 935 | 7,134 | 3.617112 | 0.122995 | 0.029568 | 0.023655 | 0.021289 | 0.418096 | 0.334713 | 0.316085 | 0.274394 | 0.210526 | 0.19929 | 0 | 0.015088 | 0.26605 | 7,134 | 242 | 123 | 29.479339 | 0.630825 | 0.050322 | 0 | 0.406593 | 0 | 0 | 0.030288 | 0.003476 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.010989 | null | null | 0.016484 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3cad9f6021e7cc0bd16b49547526edb7185342fe | 1,669 | py | Python | shopping_basket/migrations/0001_initial.py | Nor-Mal/django-ecommerce | e57d316cb78fbe4315fb0a4b07a79779143981dd | [
"Apache-2.0"
] | 2 | 2021-09-05T20:45:59.000Z | 2021-11-03T11:55:20.000Z | shopping_basket/migrations/0001_initial.py | Nor-Mal/django-ecommerce | e57d316cb78fbe4315fb0a4b07a79779143981dd | [
"Apache-2.0"
] | null | null | null | shopping_basket/migrations/0001_initial.py | Nor-Mal/django-ecommerce | e57d316cb78fbe4315fb0a4b07a79779143981dd | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.7 on 2021-07-23 18:49
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('accounts', '0001_initial'),
('products', '0001_initial'),
]
operations =... | 40.707317 | 131 | 0.577591 | 163 | 1,669 | 5.779141 | 0.435583 | 0.03397 | 0.044586 | 0.070064 | 0.422505 | 0.358811 | 0.358811 | 0.267516 | 0.267516 | 0.267516 | 0 | 0.020886 | 0.282804 | 1,669 | 40 | 132 | 41.725 | 0.766082 | 0.026962 | 0 | 0.363636 | 1 | 0 | 0.133375 | 0.015803 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.060606 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3cb9dd8bf3797ea55915a7b16655db199d9609c7 | 595 | py | Python | test_ResNet50.py | ElliOsm/pneumonia-detection | 82fa743ebf96ab39ba090cb7329cc59f7f366009 | [
"MIT"
] | null | null | null | test_ResNet50.py | ElliOsm/pneumonia-detection | 82fa743ebf96ab39ba090cb7329cc59f7f366009 | [
"MIT"
] | null | null | null | test_ResNet50.py | ElliOsm/pneumonia-detection | 82fa743ebf96ab39ba090cb7329cc59f7f366009 | [
"MIT"
] | null | null | null | import os
import logging
# Environment Variables
##Supresses tensorflow warnings and errors, change to 2 to show errors
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' # FATAL
logging.getLogger('tensorflow').setLevel(logging.FATAL)
from thesis.models.ResNet50 import resnet50_compile
from thesis.data import data_... | 29.75 | 98 | 0.778151 | 72 | 595 | 6.222222 | 0.638889 | 0.044643 | 0.098214 | 0.120536 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02924 | 0.137815 | 595 | 20 | 99 | 29.75 | 0.844055 | 0.159664 | 0 | 0 | 0 | 0 | 0.199161 | 0.134172 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3cc0924bbd287efe520c14eba43bf559e775b22f | 1,028 | py | Python | Evaulation_Regression_Model_Performance_w_r-Square/evaluation_regression_models_RSquare_linear_reg.py | malidrsn/Machine-Learning-Prediction-Algorithms-w-Examples-V1 | cc2eb5f0e8e8640bb6d5651f2eae961d7dcac702 | [
"MIT"
] | null | null | null | Evaulation_Regression_Model_Performance_w_r-Square/evaluation_regression_models_RSquare_linear_reg.py | malidrsn/Machine-Learning-Prediction-Algorithms-w-Examples-V1 | cc2eb5f0e8e8640bb6d5651f2eae961d7dcac702 | [
"MIT"
] | null | null | null | Evaulation_Regression_Model_Performance_w_r-Square/evaluation_regression_models_RSquare_linear_reg.py | malidrsn/Machine-Learning-Prediction-Algorithms-w-Examples-V1 | cc2eb5f0e8e8640bb6d5651f2eae961d7dcac702 | [
"MIT"
] | null | null | null | # import libraries
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
# import data
df = pd.read_csv("Linear_regresyon.csv", sep=",")
# plot data
plt.scatter(df.deneyim, df.maas)
plt.xlabel("deneyim")
plt.ylabel("maas")
"""
sklearn kütüphanesini kullanacağız. Burada machine learning algoritmaları... | 26.358974 | 98 | 0.766537 | 150 | 1,028 | 5.166667 | 0.513333 | 0.034839 | 0.025806 | 0.04129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012277 | 0.128405 | 1,028 | 38 | 99 | 27.052632 | 0.852679 | 0.310311 | 0 | 0 | 0 | 0 | 0.086629 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.3125 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3cc429ef37f837d85bce5659442e74a33d7253bb | 719 | py | Python | test_nonzeros.py | husseinalijaafar/pb-value-iteration-networks | b54599ba3127b34176e612420644499a60578aa7 | [
"BSD-3-Clause"
] | null | null | null | test_nonzeros.py | husseinalijaafar/pb-value-iteration-networks | b54599ba3127b34176e612420644499a60578aa7 | [
"BSD-3-Clause"
] | null | null | null | test_nonzeros.py | husseinalijaafar/pb-value-iteration-networks | b54599ba3127b34176e612420644499a60578aa7 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
a = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
print(a>3) #Where is A>3?
'''
[[False False False]
[ True True True]
[ True True True]]
gives the above.
So in 0th list, none are true. Then you have 1st list, 0th is true. 1st list 1th is true. 1st list 2nd is true
so you have 1-0, 1-1, 1-2, w... | 31.26087 | 110 | 0.630042 | 155 | 719 | 2.922581 | 0.296774 | 0.022075 | 0.10596 | 0.10596 | 0.119205 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101266 | 0.230876 | 719 | 23 | 111 | 31.26087 | 0.717902 | 0.018081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3cc47e008515380bdc6011c5d339daca730120a9 | 801 | py | Python | main.py | aleaforny/python-wordpress-api-jwt | 5cee24f2e8c75a189520d4357dd33a2dce6fd1be | [
"MIT"
] | 1 | 2021-09-06T20:04:27.000Z | 2021-09-06T20:04:27.000Z | main.py | webclinic017/python-wordpress-api-jwt | 5cee24f2e8c75a189520d4357dd33a2dce6fd1be | [
"MIT"
] | null | null | null | main.py | webclinic017/python-wordpress-api-jwt | 5cee24f2e8c75a189520d4357dd33a2dce6fd1be | [
"MIT"
] | 1 | 2021-09-06T20:04:25.000Z | 2021-09-06T20:04:25.000Z | # This is an example code
# Feel free to replace this with your own WordPress integration so that you can quickly test the API.
from wpapijwt.wp_api import WordPressAPI
if __name__ == '__main__':
# First, define the WP API object
wp_api = WordPressAPI(domain="www.my-url-without-protocol.com", username="imthebe... | 34.826087 | 136 | 0.677903 | 115 | 801 | 4.582609 | 0.591304 | 0.066414 | 0.037951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001597 | 0.218477 | 801 | 22 | 137 | 36.409091 | 0.840256 | 0.404494 | 0 | 0 | 0 | 0 | 0.337607 | 0.117521 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.1 | 0 | 0.1 | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3cc54eafb4496b9b392d06df1a1a07dbb16379e2 | 1,647 | py | Python | setup.py | petermlm/ProbPy | efb55962283e1c6c2422de812ec8689ffb9dbf16 | [
"MIT"
] | 16 | 2015-01-05T19:14:24.000Z | 2021-08-19T22:25:04.000Z | setup.py | petermlm/ProbPy | efb55962283e1c6c2422de812ec8689ffb9dbf16 | [
"MIT"
] | null | null | null | setup.py | petermlm/ProbPy | efb55962283e1c6c2422de812ec8689ffb9dbf16 | [
"MIT"
] | 7 | 2015-04-10T18:24:58.000Z | 2018-01-26T23:54:59.000Z | #!/usr/bin/env python3
from setuptools import setup
import sys
sys.path.append("ProbPy")
long_description = """ProbPy is a Python library that aims at simplifying calculations with
discrete multi variable probabilistic distributions by offering an abstraction
over how data is stored and how the operations be... | 35.804348 | 91 | 0.683667 | 177 | 1,647 | 6.338983 | 0.700565 | 0.057041 | 0.024955 | 0.039216 | 0.049911 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003879 | 0.217365 | 1,647 | 45 | 92 | 36.6 | 0.866563 | 0.01275 | 0 | 0 | 0 | 0 | 0.656 | 0.026462 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3cc8c9447716b54f500ee721d163d312a00f08d0 | 381 | py | Python | example_python_package/core.py | billingsley-john/example_python_package | 262d732d0e02a91d23b9382c1d22bfeba1dfda3a | [
"MIT"
] | null | null | null | example_python_package/core.py | billingsley-john/example_python_package | 262d732d0e02a91d23b9382c1d22bfeba1dfda3a | [
"MIT"
] | 1 | 2021-06-30T19:32:40.000Z | 2021-06-30T19:32:40.000Z | example_python_package/core.py | billingsley-john/example_python_package | 262d732d0e02a91d23b9382c1d22bfeba1dfda3a | [
"MIT"
] | null | null | null |
import paramak as p
def multiply_two_numbers(number_1, number_2):
return number_1 * number_2
def make_example_paramak_shape(height, inner_radius, outer_radius, rotation_angle):
shape = p.CenterColumnShieldCylinder(
height=height,
inner_radius=inner_radius,
outer_radius=outer_radius,
... | 23.8125 | 83 | 0.737533 | 48 | 381 | 5.479167 | 0.458333 | 0.125475 | 0.193916 | 0.106464 | 0.228137 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013201 | 0.204724 | 381 | 16 | 84 | 23.8125 | 0.854785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0.090909 | 0.454545 | 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 |
3cd992ab04be5b290d67e39e6074d1142ef3fcbc | 2,891 | py | Python | packages/pyright-internal/src/tests/samples/subscript3.py | sasano8/pyright | e804f324ee5dbd25fd37a258791b3fd944addecd | [
"MIT"
] | 4,391 | 2019-05-07T01:18:57.000Z | 2022-03-31T20:45:44.000Z | packages/pyright-internal/src/tests/samples/subscript3.py | sasano8/pyright | e804f324ee5dbd25fd37a258791b3fd944addecd | [
"MIT"
] | 2,740 | 2019-05-07T03:29:30.000Z | 2022-03-31T12:57:46.000Z | packages/pyright-internal/src/tests/samples/subscript3.py | sasano8/pyright | e804f324ee5dbd25fd37a258791b3fd944addecd | [
"MIT"
] | 455 | 2019-05-07T12:55:14.000Z | 2022-03-31T17:09:15.000Z | # This sample tests subscript forms specified in PEP 637 -
# keyword and unpacked args.
from typing import Any, Literal, Tuple, Union, overload
class ClassA:
@overload
def __getitem__(self, index: int) -> int:
...
@overload
def __getitem__(self, index: Tuple[int, ...]) -> float:
...
... | 21.257353 | 88 | 0.625043 | 477 | 2,891 | 3.574423 | 0.171908 | 0.058651 | 0.052786 | 0.117302 | 0.584751 | 0.508504 | 0.358358 | 0.314956 | 0.270968 | 0.270968 | 0 | 0.054209 | 0.21515 | 2,891 | 135 | 89 | 21.414815 | 0.697223 | 0.250778 | 0 | 0.232877 | 0 | 0 | 0.02183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.013699 | 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 |
3cf662d7470382522962105d2e0e4ef1bb731f4f | 2,214 | py | Python | preprocess/fill_missing.py | rhwhite/eventTracking | a9498cf56a4d82259c47555b7e5fae2f7c8a0b16 | [
"MIT"
] | 1 | 2017-11-28T02:35:01.000Z | 2017-11-28T02:35:01.000Z | preprocess/fill_missing.py | rhwhite/eventTracking | a9498cf56a4d82259c47555b7e5fae2f7c8a0b16 | [
"MIT"
] | null | null | null | preprocess/fill_missing.py | rhwhite/eventTracking | a9498cf56a4d82259c47555b7e5fae2f7c8a0b16 | [
"MIT"
] | 2 | 2019-07-02T02:42:00.000Z | 2020-07-28T05:56:45.000Z | # -*- coding: utf-8 -*-
import os, errno
import numpy as np
import numpy.ma as ma
import netCDF4
from netCDF4 import Dataset
import datetime as dt
import re
import sys
import xray
#Thresholds are in mm/day, data is in mm/hr
startyr = 1998
endyr = 2014
#FileP = 'TRMM_pcp_3hrly_nonan2.2005.nc'
FileP = 'TRMM_' + str... | 28.753247 | 121 | 0.636856 | 373 | 2,214 | 3.761394 | 0.348525 | 0.034212 | 0.047042 | 0.06985 | 0.228083 | 0.188168 | 0.188168 | 0.188168 | 0.139701 | 0.139701 | 0 | 0.052572 | 0.200994 | 2,214 | 76 | 122 | 29.131579 | 0.740531 | 0 | 0 | 0.086957 | 0 | 0 | 0.133452 | 0.037367 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.195652 | null | null | 0.152174 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3cf92d0b9790813282e7785cd762582fe408bd4c | 484 | py | Python | shared/os_helpers.py | hyperwave-research/terraform-aws-shopper | 9a6bc785b8155ec5568ca2dea62ca83681759691 | [
"MIT"
] | null | null | null | shared/os_helpers.py | hyperwave-research/terraform-aws-shopper | 9a6bc785b8155ec5568ca2dea62ca83681759691 | [
"MIT"
] | 672 | 2019-10-04T00:40:51.000Z | 2021-08-02T06:25:07.000Z | shared/os_helpers.py | hyperwave-research/terraform-aws-shopper | 9a6bc785b8155ec5568ca2dea62ca83681759691 | [
"MIT"
] | null | null | null | import os
import daiquiri
logger = daiquiri.getLogger(__name__)
def get_env_variable(env_var_name: str):
variable = os.environ.get(env_var_name, None)
if variable is None:
logger.error(f"The environment variable {env_var_name} is not set.")
raise ReferenceError(f"The environment variable {en... | 25.473684 | 84 | 0.745868 | 74 | 484 | 4.581081 | 0.364865 | 0.106195 | 0.176991 | 0.159292 | 0.371681 | 0.371681 | 0.241888 | 0.241888 | 0.241888 | 0.241888 | 0 | 0 | 0.169421 | 484 | 18 | 85 | 26.888889 | 0.843284 | 0 | 0 | 0 | 0 | 0 | 0.210744 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0.090909 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3cfb5758546ebce3e75bd3084d020d9456154569 | 3,995 | py | Python | utils/gml2py-statscan.py | wlach/neocoder | 385ecd7eab46c5644fd148734bdcb01bce17de46 | [
"MIT"
] | 1 | 2016-08-05T10:34:15.000Z | 2016-08-05T10:34:15.000Z | utils/gml2py-statscan.py | wlach/neocoder | 385ecd7eab46c5644fd148734bdcb01bce17de46 | [
"MIT"
] | null | null | null | utils/gml2py-statscan.py | wlach/neocoder | 385ecd7eab46c5644fd148734bdcb01bce17de46 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import re
import sys
import xml.sax
# A simple script which turns a gml file into a set of python dictionaries with
# the same set of information, restricted to a bounding box. The goal is to
# speed up subsequent processing of the same data as well as to distribute
# the complexity of parsing an ... | 36.651376 | 99 | 0.568711 | 433 | 3,995 | 5.168591 | 0.274827 | 0.160858 | 0.068811 | 0.03798 | 0.13941 | 0.057194 | 0.029491 | 0.029491 | 0.029491 | 0 | 0 | 0.005193 | 0.325156 | 3,995 | 108 | 100 | 36.990741 | 0.824926 | 0.09587 | 0 | 0.13253 | 0 | 0.012048 | 0.088562 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.036145 | 0.036145 | null | null | 0.024096 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a7017cc5c4f847338307b4e31e80b93076688b49 | 572 | py | Python | readthedocs/projects/migrations/0057_add_page_rank.py | alanadiprastyo/readthedocs.org | 505be8cc8fabc0dbdf290336dd263c887ede459b | [
"MIT"
] | null | null | null | readthedocs/projects/migrations/0057_add_page_rank.py | alanadiprastyo/readthedocs.org | 505be8cc8fabc0dbdf290336dd263c887ede459b | [
"MIT"
] | null | null | null | readthedocs/projects/migrations/0057_add_page_rank.py | alanadiprastyo/readthedocs.org | 505be8cc8fabc0dbdf290336dd263c887ede459b | [
"MIT"
] | 1 | 2021-07-09T14:02:39.000Z | 2021-07-09T14:02:39.000Z | # Generated by Django 2.2.12 on 2020-06-25 18:44
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('projects', '0056_add_disable_analytics'),
]
operations = [
migrations.AddField(
model_name='impor... | 28.6 | 199 | 0.673077 | 63 | 572 | 6.031746 | 0.698413 | 0.078947 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055188 | 0.208042 | 572 | 19 | 200 | 30.105263 | 0.783664 | 0.08042 | 0 | 0 | 1 | 0 | 0.125954 | 0.049618 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.230769 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a70372424bdf589bfaaf14a2e8cb74e63e9c0ab3 | 990 | py | Python | setup.py | ExpressAI/eaas_client | 3748723a42cd2062b0dc6a16d7a76fa0a08577e8 | [
"Apache-2.0"
] | null | null | null | setup.py | ExpressAI/eaas_client | 3748723a42cd2062b0dc6a16d7a76fa0a08577e8 | [
"Apache-2.0"
] | 3 | 2022-03-15T23:33:58.000Z | 2022-03-16T17:59:24.000Z | setup.py | ExpressAI/eaas_client | 3748723a42cd2062b0dc6a16d7a76fa0a08577e8 | [
"Apache-2.0"
] | null | null | null | from setuptools import setup, find_packages
import codecs
import eaas
import eaas.client
setup(
name="eaas",
version=eaas.__version__,
description="Evaluation as a Service for Natural Language Processing",
long_description=codecs.open("README.md", encoding="utf-8").read(),
long_description_content_type="te... | 23.571429 | 72 | 0.666667 | 109 | 990 | 5.899083 | 0.724771 | 0.037325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007453 | 0.186869 | 990 | 41 | 73 | 24.146341 | 0.791304 | 0 | 0 | 0.078947 | 0 | 0 | 0.445455 | 0.049495 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.105263 | 0 | 0.105263 | 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 |
a70637c74056f7686e800a9a333ad23afb0b1353 | 3,963 | py | Python | resources/models/unit.py | haltu/hmlvaraus-backend | 181898f3c947298949adaf2156ad2d25da1e6002 | [
"MIT"
] | 1 | 2018-11-13T06:03:27.000Z | 2018-11-13T06:03:27.000Z | resources/models/unit.py | CityOfHameenlinna/hmlvaraus-backend | 181898f3c947298949adaf2156ad2d25da1e6002 | [
"MIT"
] | null | null | null | resources/models/unit.py | CityOfHameenlinna/hmlvaraus-backend | 181898f3c947298949adaf2156ad2d25da1e6002 | [
"MIT"
] | null | null | null | import pytz
from django.conf import settings
from django.contrib.gis.db import models
from django.utils import timezone
from django.utils.translation import ugettext_lazy as _
from autoslug import AutoSlugField
from .base import AutoIdentifiedModel, ModifiableModel
from .utils import create_reservable_before_datetime,... | 46.623529 | 111 | 0.68004 | 464 | 3,963 | 5.551724 | 0.299569 | 0.089674 | 0.050466 | 0.065994 | 0.120342 | 0.05823 | 0.045031 | 0 | 0 | 0 | 0 | 0.010852 | 0.209437 | 3,963 | 84 | 112 | 47.178571 | 0.811363 | 0.063841 | 0 | 0.101695 | 0 | 0 | 0.106325 | 0.014995 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084746 | false | 0 | 0.169492 | 0.067797 | 0.728814 | 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 |
a707d8c78b04b7b47e861109b13db3135d145897 | 192 | py | Python | minpizzas.py | jahnavi-yelamanchi/codechef-practice | c17bbec4aa8589d7d378b3dfa7cb934112f6aa35 | [
"MIT"
] | null | null | null | minpizzas.py | jahnavi-yelamanchi/codechef-practice | c17bbec4aa8589d7d378b3dfa7cb934112f6aa35 | [
"MIT"
] | null | null | null | minpizzas.py | jahnavi-yelamanchi/codechef-practice | c17bbec4aa8589d7d378b3dfa7cb934112f6aa35 | [
"MIT"
] | null | null | null | # question => https://www.codechef.com/LP2TO301/problems/MINPIZZAS
import math
t = int(input())
for i in range(t):
n,k = map(int,input().split())
print(n//math.gcd(n,k))
print("\n")
| 19.2 | 66 | 0.635417 | 32 | 192 | 3.8125 | 0.71875 | 0.131148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0.145833 | 192 | 9 | 67 | 21.333333 | 0.719512 | 0.333333 | 0 | 0 | 0 | 0 | 0.015873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.333333 | 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 |
a70e116f80fc3de9164a0fc170f79b0fd66e892b | 1,380 | py | Python | realm.py | syndbg/ssh-chat | 82902141edf7fe5cd64b019810ca22e425632da1 | [
"MIT"
] | 6 | 2015-06-28T23:35:39.000Z | 2019-04-14T20:27:34.000Z | realm.py | syndbg/ssh-chat | 82902141edf7fe5cd64b019810ca22e425632da1 | [
"MIT"
] | null | null | null | realm.py | syndbg/ssh-chat | 82902141edf7fe5cd64b019810ca22e425632da1 | [
"MIT"
] | 2 | 2019-10-28T19:17:20.000Z | 2019-12-17T15:43:51.000Z | from twisted.conch.avatar import ConchUser
from twisted.conch.insults import insults
from twisted.conch.interfaces import IConchUser, ISession
from twisted.conch.ssh import session
from twisted.cred.portal import IRealm
from twisted.python import log
from zope.interface import implementer
from protocol import ChatProt... | 30.666667 | 74 | 0.739855 | 149 | 1,380 | 6.765101 | 0.436242 | 0.065476 | 0.063492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001767 | 0.17971 | 1,380 | 44 | 75 | 31.363636 | 0.888693 | 0 | 0 | 0 | 0 | 0 | 0.042754 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.25 | 0.03125 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a70ebce62dc3d76bce7a29df7173577872a82c89 | 3,387 | py | Python | padcontrol/gestion/migrations/0001_initial.py | EduardoPerez98/RelOffice | 55094a679759b7dfd24681171e2ca87b15d761f0 | [
"MIT"
] | null | null | null | padcontrol/gestion/migrations/0001_initial.py | EduardoPerez98/RelOffice | 55094a679759b7dfd24681171e2ca87b15d761f0 | [
"MIT"
] | null | null | null | padcontrol/gestion/migrations/0001_initial.py | EduardoPerez98/RelOffice | 55094a679759b7dfd24681171e2ca87b15d761f0 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2021-12-07 18:13
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Analistas',
fields=[
... | 42.3375 | 177 | 0.544435 | 316 | 3,387 | 5.670886 | 0.268987 | 0.073661 | 0.050781 | 0.066406 | 0.484375 | 0.363839 | 0.266183 | 0.245536 | 0.245536 | 0.091518 | 0 | 0.01079 | 0.315914 | 3,387 | 79 | 178 | 42.873418 | 0.762624 | 0.013286 | 0 | 0.361111 | 1 | 0 | 0.182635 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027778 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a713b88a553581efba4a1d3aebe651eff0f231b4 | 681 | py | Python | fosdick/config.py | sayonetech/fosdick-api-python-client | e1ba3f4451f6e0925c2f0009e7e130d8b8390520 | [
"MIT"
] | 2 | 2018-01-19T18:06:58.000Z | 2019-11-03T13:25:37.000Z | fosdick/config.py | sayonetech/fosdick-api-python-client | e1ba3f4451f6e0925c2f0009e7e130d8b8390520 | [
"MIT"
] | 1 | 2018-01-18T21:58:31.000Z | 2018-02-27T07:23:00.000Z | fosdick/config.py | sayonetech/fosdick-api-python-client | e1ba3f4451f6e0925c2f0009e7e130d8b8390520 | [
"MIT"
] | 4 | 2017-01-29T16:15:01.000Z | 2019-11-03T13:25:18.000Z | """
Fosdick SDK configuration
"""
# Used for puling information
FOSDICK_API_USERNAME = '<YOUR_API_USERNAME>'
FOSDICK_API_PASSWORD = '<YOUR_API_PASSWORD>'
# Used for order posting.
CLIENT_CODE = '<YOUR_CLIENT_CODE>'
CLIENT_NAME = '<YOUR_CLIENT_NAME>'
# To denote test order.
TESTFLAG = 'y'
# Url's used for pulling in... | 24.321429 | 59 | 0.684288 | 80 | 681 | 5.6125 | 0.525 | 0.046771 | 0.057906 | 0.071269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176211 | 681 | 27 | 60 | 25.222222 | 0.800357 | 0.23348 | 0 | 0 | 0 | 0 | 0.524462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a718ebdf674a544bb2f793cbc8c3c3a8720fabaa | 385 | py | Python | Older_progress/tsdate_truncated/tsdate_truncated.py | marianne-aspbury/HIVsimulation | 56e110f84474010f1866e299da4c41acd567e0b3 | [
"MIT"
] | null | null | null | Older_progress/tsdate_truncated/tsdate_truncated.py | marianne-aspbury/HIVsimulation | 56e110f84474010f1866e299da4c41acd567e0b3 | [
"MIT"
] | null | null | null | Older_progress/tsdate_truncated/tsdate_truncated.py | marianne-aspbury/HIVsimulation | 56e110f84474010f1866e299da4c41acd567e0b3 | [
"MIT"
] | 1 | 2019-12-09T12:15:35.000Z | 2019-12-09T12:15:35.000Z | import sys
sys.path.insert(1, '/Users/anthonywohns/Documents/mcvean_group/age_inference/tsdate')
import tsdate
import tskit
import tsinfer
ts = tskit.load('truncated_simulation_tree.trees')
tip_weights = tsdate.find_node_tip_weights_ts(ts)
prior = tsdate.make_prior(ts.num_samples, 10000)
mixture_prior = tsdate.get_m... | 27.5 | 85 | 0.828571 | 59 | 385 | 5.101695 | 0.559322 | 0.099668 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016807 | 0.072727 | 385 | 13 | 86 | 29.615385 | 0.826331 | 0 | 0 | 0 | 0 | 0 | 0.244156 | 0.244156 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a719732d7a701d8473e55c07826bcc42efe93c4a | 6,481 | py | Python | SolrCloud/shell/config_solrcloud.py | XiaoYang1127/SeachEngine | 971049ff40c9cd6217f59fb8e58a9b6c84be23d4 | [
"Apache-2.0"
] | null | null | null | SolrCloud/shell/config_solrcloud.py | XiaoYang1127/SeachEngine | 971049ff40c9cd6217f59fb8e58a9b6c84be23d4 | [
"Apache-2.0"
] | null | null | null | SolrCloud/shell/config_solrcloud.py | XiaoYang1127/SeachEngine | 971049ff40c9cd6217f59fb8e58a9b6c84be23d4 | [
"Apache-2.0"
] | null | null | null | # encoding:utf-8
"""
配置zookeeper + solrcloud + 伪分布式 + 中文分词
zookeeper: zookeeper-3.4.14.tar.gz
solr: solr-8.2.0.tgz
"""
import os
import sys
TOOLS_PATH = "/tmp/solr"
BASE_PATH = "/opt"
INSTALL_NAME = "solrcloud"
INSTALL_PATH = BASE_PATH + "/" + INSTALL_NAME
LOCALHOST = "192.168.122.128"
MAX_SOLR = 5
MAX_Z... | 24.926923 | 129 | 0.570128 | 913 | 6,481 | 3.897043 | 0.173056 | 0.074199 | 0.015177 | 0.030354 | 0.512085 | 0.387858 | 0.346262 | 0.312535 | 0.265318 | 0.241709 | 0 | 0.022673 | 0.28545 | 6,481 | 259 | 130 | 25.023166 | 0.745627 | 0.016201 | 0 | 0.446701 | 0 | 0.005076 | 0.306178 | 0.049456 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010152 | 0.010152 | null | null | 0.020305 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a7221d2cbeac0d63c5a4ed27aa5430eca576029a | 2,284 | py | Python | rsmtpd/__init__.py | alfmel/rsmtpd | 10900876b1f83d6c141070a413f81edf3c98ac51 | [
"Apache-2.0"
] | 1 | 2017-06-12T04:10:07.000Z | 2017-06-12T04:10:07.000Z | rsmtpd/__init__.py | alfmel/rsmtpd | 10900876b1f83d6c141070a413f81edf3c98ac51 | [
"Apache-2.0"
] | null | null | null | rsmtpd/__init__.py | alfmel/rsmtpd | 10900876b1f83d6c141070a413f81edf3c98ac51 | [
"Apache-2.0"
] | null | null | null | """
Main execution entry point: starts RSMTPD
"""
import sys
from argparse import ArgumentParser
from rsmtpd.core.logger_factory import LoggerFactory
from rsmtpd.core.server import Server
from rsmtpd.core.config_loader import ConfigLoader
def main(argv):
"""
Starts RSMTPD. The start-up process entails:
... | 42.296296 | 115 | 0.654553 | 299 | 2,284 | 4.87291 | 0.381271 | 0.055594 | 0.057653 | 0.096088 | 0.034317 | 0.034317 | 0 | 0 | 0 | 0 | 0 | 0.006912 | 0.23993 | 2,284 | 53 | 116 | 43.09434 | 0.832373 | 0.174256 | 0 | 0 | 0 | 0 | 0.3281 | 0 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0.035714 | false | 0 | 0.178571 | 0 | 0.214286 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a72b60dc38a14238b2665ff8843ed97d7e82b99b | 13,398 | py | Python | apps/agent/worker.py | Jumpscale/jumpscale6_core | 0502ddc1abab3c37ed982c142d21ea3955d471d3 | [
"BSD-2-Clause"
] | 1 | 2015-10-26T10:38:13.000Z | 2015-10-26T10:38:13.000Z | apps/agent/worker.py | Jumpscale/jumpscale6_core | 0502ddc1abab3c37ed982c142d21ea3955d471d3 | [
"BSD-2-Clause"
] | null | null | null | apps/agent/worker.py | Jumpscale/jumpscale6_core | 0502ddc1abab3c37ed982c142d21ea3955d471d3 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
from JumpScale import j
import sys
import time
try:
import ujson as json
except:
import json
import psutil
import imp
import random
import JumpScale.baselib.taskletengine
from JumpScale.baselib import cmdutils
# Preload libraries
j.system.platform.psutil=psutil
import JumpScale.baselib.gr... | 41.09816 | 160 | 0.527691 | 1,387 | 13,398 | 5.061283 | 0.244412 | 0.009972 | 0.014957 | 0.005128 | 0.257692 | 0.212963 | 0.198006 | 0.189744 | 0.148291 | 0.114815 | 0 | 0.013782 | 0.371772 | 13,398 | 325 | 161 | 41.224615 | 0.820245 | 0.086356 | 0 | 0.343096 | 0 | 0.004184 | 0.133494 | 0.009232 | 0 | 0 | 0 | 0.003077 | 0 | 0 | null | null | 0 | 0.083682 | null | null | 0.046025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a72c20dee8777466adfc9c39aa3255718d1603fb | 996 | py | Python | pybottle/storm_games.py | stormdragon2976/storm-games | b3fcec3f81ec00852e59af2a1a5cb142b7e71386 | [
"WTFPL"
] | 1 | 2021-03-26T12:00:10.000Z | 2021-03-26T12:00:10.000Z | pybottle/storm_games.py | stormdragon2976/storm-games | b3fcec3f81ec00852e59af2a1a5cb142b7e71386 | [
"WTFPL"
] | 1 | 2016-02-06T23:30:41.000Z | 2016-02-06T23:30:41.000Z | pybottle/storm_games.py | stormdragon2976/storm-games | b3fcec3f81ec00852e59af2a1a5cb142b7e71386 | [
"WTFPL"
] | 2 | 2017-01-14T16:33:37.000Z | 2022-01-22T03:40:47.000Z | #!/bin/python
# -*- coding: utf-8 -*-
"""Standard initializations and functions shared by all games."""
from espeak import espeak
import os
from os import listdir
from os.path import isfile, join
import pygame
import time
def speak(text, interupt = True):
if interupt == True: espeak.cancel()
espeak.set_voice(... | 33.2 | 125 | 0.674699 | 140 | 996 | 4.771429 | 0.557143 | 0.035928 | 0.047904 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011043 | 0.181727 | 996 | 29 | 126 | 34.344828 | 0.808589 | 0.321285 | 0 | 0 | 0 | 0 | 0.051128 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.315789 | 0 | 0.473684 | 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 |
a72cc1c5f10d655033c4ea1946a83d1a129b93d8 | 3,313 | py | Python | quadratic_penalty.py | JakobGM/robotarm-optimization | aa64b5472e78f3d9ac7f42048ebbb905d366d9bc | [
"MIT"
] | null | null | null | quadratic_penalty.py | JakobGM/robotarm-optimization | aa64b5472e78f3d9ac7f42048ebbb905d366d9bc | [
"MIT"
] | null | null | null | quadratic_penalty.py | JakobGM/robotarm-optimization | aa64b5472e78f3d9ac7f42048ebbb905d366d9bc | [
"MIT"
] | null | null | null | import numpy as np
from functools import partial
from problem import (
generate_objective_function,
generate_objective_gradient_function,
)
from constraints import (
generate_constraints_function,
generate_constraint_gradients_function,
)
from methods import BFGS, MaximumIterationError, gradient_descen... | 31.855769 | 81 | 0.681256 | 406 | 3,313 | 5.317734 | 0.238916 | 0.062992 | 0.129226 | 0.072256 | 0.323298 | 0.311255 | 0.267717 | 0.220472 | 0.220472 | 0.202872 | 0 | 0.010338 | 0.240869 | 3,313 | 103 | 82 | 32.165049 | 0.848111 | 0.06067 | 0 | 0.239437 | 1 | 0 | 0.066796 | 0.006809 | 0 | 0 | 0 | 0 | 0.028169 | 1 | 0.112676 | false | 0 | 0.084507 | 0.028169 | 0.309859 | 0.028169 | 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 |
a72d30b9e64976857a070d737df6b30d011ed699 | 1,998 | py | Python | team_fundraising/migrations/0001_initial.py | namtel-hp/fundraising-website | 30cb0cd2bd4505454295d11715e70712525234a3 | [
"MIT"
] | 5 | 2019-10-26T12:41:31.000Z | 2022-03-13T08:30:29.000Z | team_fundraising/migrations/0001_initial.py | Maalik1/fundraising-website | a5fcd7e8a5966f299f57c22af8c739a3d6cd501a | [
"MIT"
] | 9 | 2021-03-18T21:27:36.000Z | 2022-03-11T23:42:46.000Z | team_fundraising/migrations/0001_initial.py | Maalik1/fundraising-website | a5fcd7e8a5966f299f57c22af8c739a3d6cd501a | [
"MIT"
] | 2 | 2021-01-11T14:19:01.000Z | 2022-02-18T19:18:38.000Z | # Generated by Django 2.1.2 on 2018-11-15 06:07
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Campaign',
fields=[
... | 38.423077 | 125 | 0.57007 | 192 | 1,998 | 5.8125 | 0.34375 | 0.064516 | 0.096774 | 0.129032 | 0.617384 | 0.540323 | 0.418459 | 0.418459 | 0.418459 | 0.418459 | 0 | 0.028229 | 0.290791 | 1,998 | 51 | 126 | 39.176471 | 0.759351 | 0.022523 | 0 | 0.568182 | 1 | 0 | 0.097899 | 0.026653 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.136364 | 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 |
a730e4cba2b6ffeb8907fb38cc6cecf9d2879473 | 1,019 | py | Python | app_english_dic/utils.py | falken20/falken_home | 3f34e3efc403591293a582ac95f49c5721db18b6 | [
"MIT"
] | null | null | null | app_english_dic/utils.py | falken20/falken_home | 3f34e3efc403591293a582ac95f49c5721db18b6 | [
"MIT"
] | 9 | 2021-06-04T23:49:09.000Z | 2022-01-03T22:53:49.000Z | app_english_dic/utils.py | falken20/falken_home | 3f34e3efc403591293a582ac95f49c5721db18b6 | [
"MIT"
] | null | null | null | import random
from django.db import models
import logging
import os
from .models import WordItem
def get_count_words(model):
""" Return the objects number in the model
:return: Return integer with the number of objects
"""
return WordItem.objects.all().count()
def __get_max_id(model):
""" Retur... | 29.114286 | 84 | 0.65947 | 155 | 1,019 | 4.2 | 0.354839 | 0.084485 | 0.059908 | 0.069124 | 0.119816 | 0.119816 | 0.119816 | 0 | 0 | 0 | 0 | 0.001245 | 0.211973 | 1,019 | 34 | 85 | 29.970588 | 0.809465 | 0.208047 | 0 | 0 | 0 | 0 | 0.215661 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.263158 | 0 | 0.578947 | 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 |
a7327d78c63a283764614c5b7c0fe146cff60714 | 1,613 | py | Python | moistmaster/moistmaster/urls.py | benjohnsonnlp/robosquirt | f96c58421532f9b956cec2277b7978022c7c1d80 | [
"BSD-3-Clause"
] | null | null | null | moistmaster/moistmaster/urls.py | benjohnsonnlp/robosquirt | f96c58421532f9b956cec2277b7978022c7c1d80 | [
"BSD-3-Clause"
] | 7 | 2020-02-12T00:56:32.000Z | 2022-02-10T09:57:40.000Z | moistmaster/moistmaster/urls.py | benjohnsonnlp/robosquirt | f96c58421532f9b956cec2277b7978022c7c1d80 | [
"BSD-3-Clause"
] | null | null | null | from django.conf import settings
from django.conf.urls import url
from django.urls import include, path
from django.views import defaults as default_views
import debug_toolbar
from analytics.views import WateringSessions
from .views import Login, Index, ResetPassword, SetPassword, Toggle
from geo.views import Location... | 36.659091 | 79 | 0.652201 | 186 | 1,613 | 5.526882 | 0.370968 | 0.046693 | 0.077821 | 0.035019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009449 | 0.212647 | 1,613 | 43 | 80 | 37.511628 | 0.8 | 0.083075 | 0 | 0.162162 | 0 | 0 | 0.168699 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.081081 | 0.216216 | 0 | 0.216216 | 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 |
a7362534b03634458c9395711aaf1f6da61c04e3 | 1,033 | py | Python | WhiteMatter/general_conversations.py | farrelaryowahyudi/Alicia_VirtualAssitant | 45e1b1e71187afe6d2978c5a41c11057fecaa131 | [
"MIT"
] | null | null | null | WhiteMatter/general_conversations.py | farrelaryowahyudi/Alicia_VirtualAssitant | 45e1b1e71187afe6d2978c5a41c11057fecaa131 | [
"MIT"
] | null | null | null | WhiteMatter/general_conversations.py | farrelaryowahyudi/Alicia_VirtualAssitant | 45e1b1e71187afe6d2978c5a41c11057fecaa131 | [
"MIT"
] | null | null | null | import random
from WhiteMatter.SenseCells.tts import tts
def who_are_you():
message = ['I am Alicia, your lovely personal assistant.', 'Alicia, havent i told you before?',
'You have asked that question so many times, Its Alicia.', 'Its Alicia']
tts(random.choice(message))
def how_am_i():
replies =['... | 43.041667 | 100 | 0.68151 | 169 | 1,033 | 4.106509 | 0.579882 | 0.038905 | 0.064842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.200387 | 1,033 | 24 | 101 | 43.041667 | 0.840194 | 0 | 0 | 0 | 0 | 0 | 0.572534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.318182 | false | 0 | 0.090909 | 0 | 0.409091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a73ad97a68c831fc1dcf89b3a1013e814df6bb34 | 737 | py | Python | experiments/lora/experiment_gpio.py | skyforcetw/smart-watt-hour-meter | 4a7ac8ba7d3612e033d0a04e1fbd5f65a245cb96 | [
"MIT"
] | null | null | null | experiments/lora/experiment_gpio.py | skyforcetw/smart-watt-hour-meter | 4a7ac8ba7d3612e033d0a04e1fbd5f65a245cb96 | [
"MIT"
] | null | null | null | experiments/lora/experiment_gpio.py | skyforcetw/smart-watt-hour-meter | 4a7ac8ba7d3612e033d0a04e1fbd5f65a245cb96 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Sep 10 14:43:05 2019
@author: skyforce.shen
"""
import RPi.GPIO as GPIO #引入RPi.GPIO库
import serial
import time
GPIO.setmode(GPIO.BCM)
pin_aux = 18
pin_md1 = 17
pin_md0 = 27
GPIO.setup(pin_aux, GPIO.IN)
GPIO.setup(pin_md1, GPIO.OUT, initial=GPIO.LOW)
GPIO.setup(pin_md0... | 18.425 | 58 | 0.667571 | 126 | 737 | 3.84127 | 0.52381 | 0.07438 | 0.07438 | 0.11157 | 0.123967 | 0.123967 | 0.123967 | 0 | 0 | 0 | 0 | 0.061564 | 0.184532 | 737 | 39 | 59 | 18.897436 | 0.74376 | 0.272727 | 0 | 0 | 0 | 0 | 0.026144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.157895 | null | null | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
59556508887ad4b8ac6f7f049c6b135edc3058e6 | 3,415 | py | Python | users/api/views.py | maks-nurgazy/student-attendance-menegement | 6389b02ee8309aacbadfeac135146ee7091a85bb | [
"MIT"
] | null | null | null | users/api/views.py | maks-nurgazy/student-attendance-menegement | 6389b02ee8309aacbadfeac135146ee7091a85bb | [
"MIT"
] | null | null | null | users/api/views.py | maks-nurgazy/student-attendance-menegement | 6389b02ee8309aacbadfeac135146ee7091a85bb | [
"MIT"
] | null | null | null | from django.core.exceptions import ObjectDoesNotExist
from rest_framework import status
from rest_framework.exceptions import ValidationError
from rest_framework.generics import GenericAPIView, ListAPIView, RetrieveAPIView
from rest_framework.permissions import AllowAny
from rest_framework.response import Response
from... | 33.480392 | 113 | 0.691947 | 326 | 3,415 | 7.09816 | 0.315951 | 0.051858 | 0.04408 | 0.043215 | 0.135696 | 0.095073 | 0.095073 | 0.095073 | 0.095073 | 0.095073 | 0 | 0.00114 | 0.229283 | 3,415 | 101 | 114 | 33.811881 | 0.87804 | 0.0041 | 0 | 0.151899 | 0 | 0 | 0.041851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075949 | false | 0 | 0.126582 | 0 | 0.544304 | 0.012658 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5957400f04b693f601142ca233771aea3229d79b | 5,483 | py | Python | wxagent.py | snowyxx/WeChatAgent | 46605d1debee74fb1be62ebc799de45661bbdb1d | [
"MIT"
] | null | null | null | wxagent.py | snowyxx/WeChatAgent | 46605d1debee74fb1be62ebc799de45661bbdb1d | [
"MIT"
] | null | null | null | wxagent.py | snowyxx/WeChatAgent | 46605d1debee74fb1be62ebc799de45661bbdb1d | [
"MIT"
] | null | null | null | # encoding=utf-8
from multiprocessing.connection import Listener
from threading import Thread
import itchat
from itchat.content import TEXT
import pdb
import json
import re
import urllib
import urllib2
from conf import WECHATGROUP, SDPURL, SDPAPIKEY, OPMURL, OPMAPIKEY, LISTENERHOST, LISTENERPORT, TULINGKEY
address = ... | 38.886525 | 326 | 0.607697 | 576 | 5,483 | 5.756944 | 0.378472 | 0.018999 | 0.006333 | 0.022618 | 0.073884 | 0.06544 | 0.06544 | 0.028347 | 0.028347 | 0.028347 | 0 | 0.022917 | 0.236002 | 5,483 | 140 | 327 | 39.164286 | 0.76868 | 0.046507 | 0 | 0.087719 | 0 | 0.017544 | 0.226719 | 0.038703 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.087719 | null | null | 0.087719 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
595a8834f051ab99e06bf085d2bb907773429369 | 414 | py | Python | app/main.py | guhuajun/azwebapp-demo | d775c4ae2bc788dc4761932d3db98f1817ea90e5 | [
"MIT"
] | null | null | null | app/main.py | guhuajun/azwebapp-demo | d775c4ae2bc788dc4761932d3db98f1817ea90e5 | [
"MIT"
] | null | null | null | app/main.py | guhuajun/azwebapp-demo | d775c4ae2bc788dc4761932d3db98f1817ea90e5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# pylint: disable=
from starlette.applications import Starlette
from starlette.responses import JSONResponse
from starlette.routing import Route
import uvicorn
async def index(request):
return JSONResponse({'hello': 'world'})
routes = [
Route('/', index),
]
app = Starlette(debug=Fals... | 20.7 | 47 | 0.705314 | 52 | 414 | 5.461538 | 0.634615 | 0.137324 | 0.021127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025568 | 0.149758 | 414 | 19 | 48 | 21.789474 | 0.78125 | 0.091787 | 0 | 0 | 0 | 0 | 0.069705 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
595b74b79744e8ac55fdeea494a8743f0e953054 | 393 | py | Python | workshops/migrations/0006_workshop_published.py | WebCampZg/conference-web | 76ccae83924fdcd040d9280db5cf3a249d668606 | [
"BSD-3-Clause"
] | 4 | 2015-03-03T17:48:14.000Z | 2019-02-27T20:28:42.000Z | workshops/migrations/0006_workshop_published.py | WebCampZg/conference-web | 76ccae83924fdcd040d9280db5cf3a249d668606 | [
"BSD-3-Clause"
] | 104 | 2015-02-25T18:09:15.000Z | 2019-06-21T10:02:53.000Z | workshops/migrations/0006_workshop_published.py | WebCampZg/conference-web | 76ccae83924fdcd040d9280db5cf3a249d668606 | [
"BSD-3-Clause"
] | 9 | 2015-03-01T18:59:14.000Z | 2019-06-10T06:48:45.000Z | # Generated by Django 2.0.4 on 2018-09-14 20:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('workshops', '0005_auto_20170924_1012'),
]
operations = [
migrations.AddField(
model_name='workshop',
name='published... | 20.684211 | 52 | 0.605598 | 41 | 393 | 5.707317 | 0.853659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109929 | 0.282443 | 393 | 18 | 53 | 21.833333 | 0.719858 | 0.114504 | 0 | 0 | 1 | 0 | 0.141619 | 0.066474 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
595cb95146a4181d85565cd527c8546b9224de4c | 341 | py | Python | 202. Happy Number.py | MapleLove2014/leetcode | 135c79ebe98815d0e38280edfadaba90e677aff5 | [
"Apache-2.0"
] | null | null | null | 202. Happy Number.py | MapleLove2014/leetcode | 135c79ebe98815d0e38280edfadaba90e677aff5 | [
"Apache-2.0"
] | null | null | null | 202. Happy Number.py | MapleLove2014/leetcode | 135c79ebe98815d0e38280edfadaba90e677aff5 | [
"Apache-2.0"
] | null | null | null | class Solution:
def isHappy(self, n: int) -> bool:
l = set()
while True:
s = 0
while n > 0:
s += (n % 10) ** 2
n = n // 10
if s == 1:
return True
if s in l:
return False
n = s
... | 22.733333 | 38 | 0.304985 | 40 | 341 | 2.6 | 0.55 | 0.057692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058394 | 0.59824 | 341 | 14 | 39 | 24.357143 | 0.70073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.285714 | 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 |
595cf63d2675bb0a15d36ca4ea0c3f40a5be396b | 738 | py | Python | sa/profiles/MikroTik/RouterOS/get_fqdn.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 84 | 2017-10-22T11:01:39.000Z | 2022-02-27T03:43:48.000Z | sa/profiles/MikroTik/RouterOS/get_fqdn.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 22 | 2017-12-11T07:21:56.000Z | 2021-09-23T02:53:50.000Z | sa/profiles/MikroTik/RouterOS/get_fqdn.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 23 | 2017-12-06T06:59:52.000Z | 2022-02-24T00:02:25.000Z | # ---------------------------------------------------------------------
# MikroTik.RouterOS.get_fqdn
# ---------------------------------------------------------------------
# Copyright (C) 2007-2020 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
# NOC ... | 32.086957 | 71 | 0.47832 | 72 | 738 | 4.833333 | 0.638889 | 0.060345 | 0.109195 | 0.132184 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016155 | 0.161247 | 738 | 22 | 72 | 33.545455 | 0.546042 | 0.422764 | 0 | 0 | 0 | 0 | 0.15311 | 0.062201 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.818182 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
59635f046f29862deedc5538e5f35e8f9dc85394 | 4,126 | py | Python | inmoov/scripts/Frame_Thread.py | mish3albaiz/Robotics_ECE579 | efb654040015671a0656eaee4c78ec085d862996 | [
"BSD-3-Clause"
] | 1 | 2020-02-13T21:13:08.000Z | 2020-02-13T21:13:08.000Z | inmoov/scripts/Frame_Thread.py | mish3albaiz/Robotics_ECE579 | efb654040015671a0656eaee4c78ec085d862996 | [
"BSD-3-Clause"
] | null | null | null | inmoov/scripts/Frame_Thread.py | mish3albaiz/Robotics_ECE579 | efb654040015671a0656eaee4c78ec085d862996 | [
"BSD-3-Clause"
] | null | null | null |
# Brian Henson
# member of the servo object, launched when servo object is created.
# connects to the servo object, accessses several of its members & functions
# each frame is a sub-pose interpolated between poses.
# exactly 1 thread per servo, reusable. locks exist on pwm object, per-servo frame_queue, per-servo s... | 42.102041 | 155 | 0.691226 | 606 | 4,126 | 4.59736 | 0.366337 | 0.028715 | 0.025126 | 0.022613 | 0.052046 | 0.033381 | 0.033381 | 0.033381 | 0.02369 | 0 | 0 | 0.00321 | 0.245032 | 4,126 | 97 | 156 | 42.536082 | 0.891172 | 0.627727 | 0 | 0.242424 | 0 | 0 | 0.03557 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0.090909 | 0.030303 | 0 | 0.121212 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
596576fefe3eec31430bd0552e32e254b930d63b | 6,125 | py | Python | main.py | sriram-sridharan/rtl_433-based-Temperature-Sensor | 3123ad3738dd763cb6519f8252eca06b9bfc6c9a | [
"MIT"
] | 6 | 2018-05-23T19:54:19.000Z | 2022-01-29T22:36:57.000Z | main.py | sriram-sridharan/rtl_433-based-Temperature-Sensor | 3123ad3738dd763cb6519f8252eca06b9bfc6c9a | [
"MIT"
] | null | null | null | main.py | sriram-sridharan/rtl_433-based-Temperature-Sensor | 3123ad3738dd763cb6519f8252eca06b9bfc6c9a | [
"MIT"
] | null | null | null | #!/usr/bin/python
import sys
import os
import json
import urllib
import urllib2
import xml.etree.cElementTree as ET
import time
# ***************************** ***************************** #
# ******************* Configuration - edit this ******************* #
# I'm hardcoding sensor IDs to prevent reading... | 39.772727 | 141 | 0.683592 | 832 | 6,125 | 4.901442 | 0.265625 | 0.035311 | 0.037764 | 0.037273 | 0.434527 | 0.397989 | 0.301618 | 0.259686 | 0.224375 | 0.17999 | 0 | 0.027838 | 0.173061 | 6,125 | 154 | 142 | 39.772727 | 0.777295 | 0.272 | 0 | 0.284314 | 0 | 0 | 0.215709 | 0 | 0.009804 | 0 | 0 | 0 | 0 | 0 | null | null | 0.019608 | 0.068627 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5967e16f5257e2e2b440eef72e02dd4d714320bd | 2,154 | py | Python | camp/StructuredGridOperators/BinaryOperators/ComposeGridsFilter.py | blakezim/CAMP | a42a407dc62151ab8a7eb4be3aee1318b984502c | [
"MIT"
] | 4 | 2021-03-02T05:18:06.000Z | 2021-11-29T16:06:39.000Z | camp/StructuredGridOperators/BinaryOperators/ComposeGridsFilter.py | blakezim/CAMP | a42a407dc62151ab8a7eb4be3aee1318b984502c | [
"MIT"
] | null | null | null | camp/StructuredGridOperators/BinaryOperators/ComposeGridsFilter.py | blakezim/CAMP | a42a407dc62151ab8a7eb4be3aee1318b984502c | [
"MIT"
] | 1 | 2021-03-26T20:38:11.000Z | 2021-03-26T20:38:11.000Z | import torch
from ..UnaryOperators.ApplyGridFilter import ApplyGrid
from ...Core.StructuredGridClass import StructuredGrid
from ._BinaryFilter import Filter
class ComposeGrids(Filter):
def __init__(self, padding_mode='border', device='cpu', dtype=torch.float32):
super(ComposeGrids, self).__init__()
... | 34.741935 | 115 | 0.620706 | 271 | 2,154 | 4.822878 | 0.361624 | 0.058914 | 0.036725 | 0.035195 | 0.093344 | 0.0658 | 0.0658 | 0.0658 | 0 | 0 | 0 | 0.008453 | 0.28598 | 2,154 | 61 | 116 | 35.311475 | 0.841352 | 0.427577 | 0 | 0 | 0 | 0 | 0.01676 | 0 | 0 | 0 | 0 | 0.016393 | 0 | 1 | 0.111111 | false | 0 | 0.148148 | 0 | 0.37037 | 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 |
596b4a6a64dd8745077d995fb905b1e8f942e437 | 2,501 | py | Python | nagios.15s.py | zessx/xbar-nagios | e8f0c1c90a305c8e234f40c25d04eabd46e927c6 | [
"MIT"
] | null | null | null | nagios.15s.py | zessx/xbar-nagios | e8f0c1c90a305c8e234f40c25d04eabd46e927c6 | [
"MIT"
] | null | null | null | nagios.15s.py | zessx/xbar-nagios | e8f0c1c90a305c8e234f40c25d04eabd46e927c6 | [
"MIT"
] | null | null | null | #! /usr/bin/env PYTHONIOENCODING=utf8 PYTHONUNBUFFERED=1 /usr/local/bin/python3
# <xbar.title>Nagios</xbar.title>
# <xbar.version>1.0</xbar.version>
# <xbar.author>Samuel Marchal</xbar.author>
# <xbar.author.github>zessx</xbar.author.github>
# <xbar.desc>Monitor Nagios instance.</xbar.desc>
# <xbar.dependencies>python... | 38.476923 | 132 | 0.657337 | 332 | 2,501 | 4.915663 | 0.316265 | 0.055147 | 0.026961 | 0.029412 | 0.112745 | 0.112745 | 0.051471 | 0.051471 | 0.051471 | 0.051471 | 0 | 0.010053 | 0.164734 | 2,501 | 64 | 133 | 39.078125 | 0.768789 | 0.243902 | 0 | 0.097561 | 0 | 0.04878 | 0.272872 | 0.071277 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.073171 | 0.073171 | 0 | 0.073171 | 0.195122 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
596b4e95084d6cf03a93a5c658a23689d3dcc076 | 527 | py | Python | tests/test_iam.py | calebmarcus/awacs | ce7d32cea496c714f501bede4e4052db6f1ee8a2 | [
"BSD-2-Clause"
] | 358 | 2015-01-01T05:11:05.000Z | 2022-03-20T14:11:39.000Z | tests/test_iam.py | calebmarcus/awacs | ce7d32cea496c714f501bede4e4052db6f1ee8a2 | [
"BSD-2-Clause"
] | 171 | 2015-01-17T00:32:48.000Z | 2022-03-28T02:02:57.000Z | tests/test_iam.py | calebmarcus/awacs | ce7d32cea496c714f501bede4e4052db6f1ee8a2 | [
"BSD-2-Clause"
] | 100 | 2015-01-04T16:34:34.000Z | 2022-02-21T06:17:17.000Z | import unittest
from awacs.iam import ARN
class TestARN(unittest.TestCase):
def test_aws(self):
arn = ARN("root", "us-east-1", "account")
self.assertEqual(arn.JSONrepr(), "arn:aws:iam::account:root")
def test_cn(self):
arn = ARN("root", "cn-north-1", "account")
self.assertEqu... | 29.277778 | 76 | 0.622391 | 75 | 527 | 4.333333 | 0.32 | 0.064615 | 0.092308 | 0.129231 | 0.596923 | 0.369231 | 0.369231 | 0.369231 | 0 | 0 | 0 | 0.007026 | 0.189753 | 527 | 17 | 77 | 31 | 0.754098 | 0 | 0 | 0 | 0 | 0 | 0.28463 | 0.16129 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5972ecfc2f8cfebdd212908283e99459c1e17b1d | 4,776 | py | Python | src/LOPEXTftp-v1a.py | swharden/Lopora | 20afe72416579f8b7d3c8861532c71a95b904066 | [
"MIT"
] | 3 | 2019-12-24T06:23:58.000Z | 2021-03-01T10:33:48.000Z | src/LOPEXTftp-v1a.py | swharden/Lopora | 20afe72416579f8b7d3c8861532c71a95b904066 | [
"MIT"
] | null | null | null | src/LOPEXTftp-v1a.py | swharden/Lopora | 20afe72416579f8b7d3c8861532c71a95b904066 | [
"MIT"
] | 1 | 2021-08-19T13:02:25.000Z | 2021-08-19T13:02:25.000Z | # LOPEXTftp-v1a.py(w) (18-10-2018)
# For External uploading of the LOPORA pictures
# For Python version 3
# With external module None
# Made by Onno Hoekstra (pa2ohh)
import os
import time
import ftplib
from time import gmtime, strftime
FTPFILES = "FTPuploads.txt"
# ============================================ Mai... | 30.812903 | 164 | 0.494137 | 516 | 4,776 | 4.573643 | 0.302326 | 0.041949 | 0.061017 | 0.074576 | 0.305932 | 0.272881 | 0.170339 | 0.170339 | 0.122034 | 0.105085 | 0 | 0.012508 | 0.380653 | 4,776 | 154 | 165 | 31.012987 | 0.785328 | 0.2433 | 0 | 0.410256 | 0 | 0 | 0.155971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017094 | false | 0.051282 | 0.034188 | 0 | 0.051282 | 0.188034 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
59732e21fb767eb7e4b944ba5ebd82127527eb7b | 737 | py | Python | tests.py | thautwarm/BioInfoPlus | b3f404d3f13cfccf4694cfba586ac7efcbf5bf29 | [
"Apache-2.0"
] | null | null | null | tests.py | thautwarm/BioInfoPlus | b3f404d3f13cfccf4694cfba586ac7efcbf5bf29 | [
"Apache-2.0"
] | 1 | 2017-10-31T15:27:03.000Z | 2018-02-08T18:38:38.000Z | tests.py | thautwarm/BioInfoPlus | b3f404d3f13cfccf4694cfba586ac7efcbf5bf29 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Oct 31 17:25:51 2017
@author: misaka-wa
"""
# <Test> [preprocessing::BioParser]
from preprocess.BioParser import bio_parse
dataframe = bio_parse('./dssp/sources/1a00.dssp')
AA = dataframe.AA.map(lambda x:x.replace(' ', '')) # amino acid
Structure = dataframe.STRUCTURE # seco... | 26.321429 | 67 | 0.713704 | 116 | 737 | 4.413793 | 0.551724 | 0.039063 | 0.050781 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03858 | 0.12076 | 737 | 27 | 68 | 27.296296 | 0.751543 | 0.276798 | 0 | 0 | 0 | 0 | 0.052023 | 0.046243 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
59733ba7557ba1a73a8b21a58b8904460668c51c | 576 | py | Python | userbot/plugins/lightning.py | justteen/BUZZ-USERBOT | 55651cce150e1d04d2c61efb2565ef9f46b42933 | [
"BSL-1.0"
] | null | null | null | userbot/plugins/lightning.py | justteen/BUZZ-USERBOT | 55651cce150e1d04d2c61efb2565ef9f46b42933 | [
"BSL-1.0"
] | null | null | null | userbot/plugins/lightning.py | justteen/BUZZ-USERBOT | 55651cce150e1d04d2c61efb2565ef9f46b42933 | [
"BSL-1.0"
] | null | null | null | #Plugin by @Rishisuperyo
#Animation by Rishisuperyo
#kang =gey ,keep credits = cool coder 😶
#usage .lightning
from telethon import events
import asyncio
from userbot.utils import lightning_cmd
from userbot import CMD_HELP
@borg.on(lightning_cmd(pattern=r"lightning"))
async def hapy(event):
a="ㅤㅤ █\n ... | 33.882353 | 255 | 0.543403 | 75 | 576 | 4.293333 | 0.56 | 0.049689 | 0.065217 | 0.074534 | 0.052795 | 0.052795 | 0.052795 | 0.049689 | 0 | 0 | 0 | 0 | 0.309028 | 576 | 16 | 256 | 36 | 0.701005 | 0.177083 | 0 | 0 | 0 | 0.125 | 0.542553 | 0.159574 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
597d58556262ee0d807e0a4d5d9adc9b1c04f82a | 2,358 | py | Python | api/tasks.py | tdloi/mangaa | cf382e22ad328264a4e90f88ec2706b93426f425 | [
"Apache-2.0",
"MIT"
] | 3 | 2020-10-02T17:07:17.000Z | 2021-12-12T01:19:15.000Z | api/tasks.py | tdloi/mangaa | cf382e22ad328264a4e90f88ec2706b93426f425 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-04-30T20:46:01.000Z | 2021-04-30T20:46:01.000Z | api/tasks.py | tdloi/mangaa | cf382e22ad328264a4e90f88ec2706b93426f425 | [
"Apache-2.0",
"MIT"
] | null | null | null | import subprocess
from os import environ, remove
from os.path import exists, splitext
from urllib.parse import urljoin
from celery.task.control import revoke
from flask import jsonify
from . import celery, create_app
from .models import Images, db
from .utils.helpers import generate_expires_field, s3_bucket
@celery... | 29.848101 | 78 | 0.577608 | 267 | 2,358 | 4.962547 | 0.393258 | 0.018113 | 0.040755 | 0.039245 | 0.075472 | 0.046792 | 0.046792 | 0.046792 | 0 | 0 | 0 | 0.003032 | 0.300679 | 2,358 | 78 | 79 | 30.230769 | 0.800485 | 0.089907 | 0 | 0.169492 | 0 | 0 | 0.155367 | 0.04096 | 0 | 0 | 0 | 0.012821 | 0 | 1 | 0.033898 | false | 0 | 0.152542 | 0 | 0.20339 | 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 |
597ebbc39aa08d13ae5ecbab383a41168a0fc5c4 | 7,769 | py | Python | src/arclink/apps/webinterface/html_chunks.py | yannikbehr/seiscomp3 | ebb44c77092555eef7786493d00ac4efc679055f | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 94 | 2015-02-04T13:57:34.000Z | 2021-11-01T15:10:06.000Z | src/arclink/apps/webinterface/html_chunks.py | yannikbehr/seiscomp3 | ebb44c77092555eef7786493d00ac4efc679055f | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 233 | 2015-01-28T15:16:46.000Z | 2021-08-23T11:31:37.000Z | src/arclink/apps/webinterface/html_chunks.py | yannikbehr/seiscomp3 | ebb44c77092555eef7786493d00ac4efc679055f | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 95 | 2015-02-13T15:53:30.000Z | 2021-11-02T14:54:54.000Z |
try:
fd = file("/srv/www/htdocs/index.html")
_head = ""
buf = fd.readline()
while buf:
if buf.startswith("<!-- end header -->"):
break
_head += buf
buf = fd.readline()
except IOError:
_head="""<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//E... | 30.229572 | 239 | 0.646029 | 1,121 | 7,769 | 4.452275 | 0.185549 | 0.037868 | 0.049489 | 0.083751 | 0.598477 | 0.570226 | 0.499499 | 0.439191 | 0.411541 | 0.37768 | 0 | 0.025255 | 0.118291 | 7,769 | 256 | 240 | 30.347656 | 0.703358 | 0 | 0 | 0.554054 | 0 | 0.112613 | 0.930733 | 0.152955 | 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 | 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 |
5983d427cef8acb25f52726bc1136c520e45b8a0 | 41,616 | py | Python | kubespec/k8s/policy/v1beta1.py | machinezone/kubespec | 0d493d8d834643968d7c852c561e6c634c8c1556 | [
"BSD-3-Clause"
] | 7 | 2019-10-22T14:21:16.000Z | 2021-03-18T15:57:41.000Z | kubespec/k8s/policy/v1beta1.py | machinezone/kubespec | 0d493d8d834643968d7c852c561e6c634c8c1556 | [
"BSD-3-Clause"
] | null | null | null | kubespec/k8s/policy/v1beta1.py | machinezone/kubespec | 0d493d8d834643968d7c852c561e6c634c8c1556 | [
"BSD-3-Clause"
] | null | null | null | # Code is generated: DO NOT EDIT
# Copyright 2019 Machine Zone, Inc. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
from kubespec import context
from kubespec import types
from kubespec.k8s import base
from kubespec.k8s import v1 as k8sv1
fr... | 36.250871 | 124 | 0.635813 | 4,688 | 41,616 | 5.4343 | 0.099616 | 0.018017 | 0.015544 | 0.01735 | 0.448187 | 0.38762 | 0.32246 | 0.299537 | 0.264641 | 0.238852 | 0 | 0.002062 | 0.277345 | 41,616 | 1,147 | 125 | 36.282476 | 0.845049 | 0.273308 | 0 | 0.383126 | 1 | 0 | 0.115164 | 0.038459 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113416 | false | 0 | 0.009682 | 0 | 0.236515 | 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 |
5994f96323a7e6d2369cbf0f42a4e35b37b877de | 1,637 | py | Python | dialog.py | dlb123/pipebend-caculate | a548e19720fef2f332b0266f9c3722e57fca8713 | [
"MIT"
] | null | null | null | dialog.py | dlb123/pipebend-caculate | a548e19720fef2f332b0266f9c3722e57fca8713 | [
"MIT"
] | null | null | null | dialog.py | dlb123/pipebend-caculate | a548e19720fef2f332b0266f9c3722e57fca8713 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'dialog.ui'
#
# Created by: PyQt5 UI code generator 5.15.2
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtC... | 39.926829 | 108 | 0.687844 | 180 | 1,637 | 6.233333 | 0.533333 | 0.092692 | 0.033868 | 0.071301 | 0.137255 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026965 | 0.207086 | 1,637 | 40 | 109 | 40.925 | 0.837442 | 0.253513 | 0 | 0 | 1 | 0 | 0.037543 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.041667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5995b94aaa194177b75eefdc2f470374332be2f9 | 655 | py | Python | read.py | meyskens/raspi-ir-distance | 97f9f43ade97d01e1d1c0581e186cdd8e4976f58 | [
"MIT"
] | 1 | 2019-10-27T05:49:59.000Z | 2019-10-27T05:49:59.000Z | read.py | meyskens/raspi-ir-distance | 97f9f43ade97d01e1d1c0581e186cdd8e4976f58 | [
"MIT"
] | null | null | null | read.py | meyskens/raspi-ir-distance | 97f9f43ade97d01e1d1c0581e186cdd8e4976f58 | [
"MIT"
] | 3 | 2018-05-02T16:57:33.000Z | 2019-03-07T15:36:03.000Z | import cgitb
import spidev
import RPi.GPIO as GPIO
import time
import sys
cgitb.enable()
spi = spidev.SpiDev() # create spi object
spi.open(0, 0) # open spi port 0, device (CS) 0, for the MCP8008
def readadc(adcnum): # read out the ADC
if ((adcnum > 7) or (adcnum < 0)):
return -1
r = spi.xfer2([... | 21.129032 | 77 | 0.6 | 108 | 655 | 3.638889 | 0.611111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093306 | 0.247328 | 655 | 30 | 78 | 21.833333 | 0.703854 | 0.28855 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.263158 | null | null | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
59966241b63a1d58f378501c158022ea866e6426 | 4,581 | py | Python | chrononaut/change_info.py | onecodex/chrononaut | 5beb50ab6f1c7e22169a681ef036c6533e2c5dfa | [
"MIT"
] | 18 | 2017-04-20T16:12:13.000Z | 2022-02-24T15:38:16.000Z | chrononaut/change_info.py | onecodex/chrononaut | 5beb50ab6f1c7e22169a681ef036c6533e2c5dfa | [
"MIT"
] | 11 | 2017-07-24T20:01:30.000Z | 2021-07-07T15:03:00.000Z | chrononaut/change_info.py | onecodex/chrononaut | 5beb50ab6f1c7e22169a681ef036c6533e2c5dfa | [
"MIT"
] | 5 | 2017-06-06T19:27:59.000Z | 2020-12-14T16:27:51.000Z | """Change info mixins. Require Flask for getting request and app context variables.
"""
from datetime import datetime
from flask import current_app, g, request
from flask.globals import _app_ctx_stack, _request_ctx_stack
from sqlalchemy import Column, DateTime
from sqlalchemy.dialects import postgresql
from chrononau... | 36.943548 | 100 | 0.695481 | 610 | 4,581 | 5.008197 | 0.314754 | 0.075286 | 0.02946 | 0.017676 | 0.119149 | 0.051064 | 0.051064 | 0.036007 | 0.036007 | 0.036007 | 0 | 0.001707 | 0.232919 | 4,581 | 123 | 101 | 37.243902 | 0.867672 | 0.40406 | 0 | 0.174603 | 0 | 0 | 0.110274 | 0.05117 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.15873 | 0 | 0.507937 | 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 |
5998ba35faaef29ba18941219ab06b2245f6069e | 1,083 | py | Python | lc0252_meeting_rooms.py | bowen0701/python-algorithms-data-structures | e625f59a9fc59e4728825078d4434a7968a724e5 | [
"BSD-2-Clause"
] | 8 | 2019-03-18T06:37:24.000Z | 2022-01-30T07:50:58.000Z | lc0252_meeting_rooms.py | bowen0701/python-algorithms-data-structures | e625f59a9fc59e4728825078d4434a7968a724e5 | [
"BSD-2-Clause"
] | null | null | null | lc0252_meeting_rooms.py | bowen0701/python-algorithms-data-structures | e625f59a9fc59e4728825078d4434a7968a724e5 | [
"BSD-2-Clause"
] | null | null | null | """Leetcode 252. Meeting Rooms (Premium)
Easy
URL: https://leetcode.com/problems/meeting-rooms
Given an array of meeting time intervals consisting of start and end times
[[s1,e1],[s2,e2],...] (si < ei), determine if a person could attend all meetings.
Example 1:
Input: [[0,30],[5,10],[15,20]]
Output: false
Example ... | 23.042553 | 81 | 0.616805 | 140 | 1,083 | 4.714286 | 0.557143 | 0.036364 | 0.012121 | 0.018182 | 0.030303 | 0.030303 | 0 | 0 | 0 | 0 | 0 | 0.052184 | 0.239151 | 1,083 | 46 | 82 | 23.543478 | 0.748786 | 0.097876 | 0 | 0.142857 | 0 | 0 | 0.014981 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
59ac07b35ce1fda95248c07fc5499504a70b9ad8 | 2,930 | py | Python | grpc_api_client/grpc/api.py | djtaylor/python-grpc-api-client | d094650ee0e13ae63506b94a10559e719b2fc543 | [
"MIT"
] | null | null | null | grpc_api_client/grpc/api.py | djtaylor/python-grpc-api-client | d094650ee0e13ae63506b94a10559e719b2fc543 | [
"MIT"
] | null | null | null | grpc_api_client/grpc/api.py | djtaylor/python-grpc-api-client | d094650ee0e13ae63506b94a10559e719b2fc543 | [
"MIT"
] | null | null | null | import json
from importlib import import_module
from google.protobuf.json_format import MessageToJson
class gRPC_API_Response(object):
"""
Class object for handling responses from Dex gRPC server.
"""
def __init__(self, response, output_handler, fields):
self.json = json.loads(MessageToJ... | 31.170213 | 93 | 0.628669 | 351 | 2,930 | 5.005698 | 0.253561 | 0.035857 | 0.027319 | 0.034149 | 0.114969 | 0.066022 | 0.038702 | 0 | 0 | 0 | 0 | 0.001874 | 0.271672 | 2,930 | 93 | 94 | 31.505376 | 0.821462 | 0.25256 | 0 | 0.051282 | 0 | 0 | 0.030912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0 | 0.487179 | 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 |
59b119d282ea5541697c3fe52c3ad6d3ee9f2e81 | 2,748 | py | Python | tests/test_data_types.py | manoldonev/python-bin | 6bcf93e9b745d786b7288c01775d1441668da1aa | [
"MIT"
] | null | null | null | tests/test_data_types.py | manoldonev/python-bin | 6bcf93e9b745d786b7288c01775d1441668da1aa | [
"MIT"
] | null | null | null | tests/test_data_types.py | manoldonev/python-bin | 6bcf93e9b745d786b7288c01775d1441668da1aa | [
"MIT"
] | null | null | null |
"""Test Cases"""
from nose.tools import assert_raises
from dataStructures.data_types import LinkedList
from dataStructures.data_types import LinkedList2
from dataStructures.data_types import Stack
from dataStructures.data_types import Queue
def test_llist_remove_from_empty():
llist = LinkedList()
assert_ra... | 19.628571 | 49 | 0.669942 | 400 | 2,748 | 4.4425 | 0.095 | 0.154755 | 0.135059 | 0.135059 | 0.619584 | 0.492966 | 0.425999 | 0.339336 | 0.310636 | 0.181767 | 0 | 0.030755 | 0.219068 | 2,748 | 139 | 50 | 19.769784 | 0.797297 | 0.003639 | 0 | 0.673913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.434783 | 1 | 0.108696 | false | 0 | 0.054348 | 0 | 0.163043 | 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 |
59b657e93a7794fc5090870a6cd9a7e398eafc12 | 17,717 | py | Python | batchrefresh/batchrefresh.py | ramboma/batchrefresh | 5e366c126fd520d79d4f785e5af69a535b7ac178 | [
"MIT"
] | null | null | null | batchrefresh/batchrefresh.py | ramboma/batchrefresh | 5e366c126fd520d79d4f785e5af69a535b7ac178 | [
"MIT"
] | null | null | null | batchrefresh/batchrefresh.py | ramboma/batchrefresh | 5e366c126fd520d79d4f785e5af69a535b7ac178 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import decorator
import sys
import os
import queue
import logging
import copy
import threading
import fileexport
import publish
import httpinvoke
from majorcollege2dict import majorcollege2dict
import util
"""Main module."""
logger=util.create_logger(logging.INFO,__name__)
back_logger=util.... | 56.423567 | 4,771 | 0.644127 | 1,799 | 17,717 | 6.211784 | 0.223457 | 0.073915 | 0.106309 | 0.035705 | 0.549172 | 0.547025 | 0.523669 | 0.515347 | 0.508009 | 0.503803 | 0 | 0.042098 | 0.166055 | 17,717 | 314 | 4,772 | 56.423567 | 0.714179 | 0.04967 | 0 | 0.439516 | 0 | 0.012097 | 0.436549 | 0.197244 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024194 | false | 0 | 0.048387 | 0 | 0.076613 | 0.092742 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
59c1e843d196fbdec007772c93f26907f227188b | 1,311 | py | Python | list_methods.py | ashwithaDevireddy/PythonPrograms | 1af1efd3c6af0ba63b556f267d714fc204d4b4b0 | [
"MIT"
] | null | null | null | list_methods.py | ashwithaDevireddy/PythonPrograms | 1af1efd3c6af0ba63b556f267d714fc204d4b4b0 | [
"MIT"
] | null | null | null | list_methods.py | ashwithaDevireddy/PythonPrograms | 1af1efd3c6af0ba63b556f267d714fc204d4b4b0 | [
"MIT"
] | null | null | null | dir(list)
['__add__', '__class__', '__contains__', '__delattr__', '__delitem__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__gt__', '__hash__', '__iadd__', '__imul__', '__init__', '__init_subclass__', '__iter__', '__le__', '__len__', '__lt__', '__mul__', '__ne__', '__n... | 29.133333 | 607 | 0.649123 | 162 | 1,311 | 4.376543 | 0.512346 | 0.088858 | 0.105783 | 0.119887 | 0.229901 | 0.229901 | 0.196051 | 0.142454 | 0.098731 | 0.098731 | 0 | 0.014235 | 0.142639 | 1,311 | 44 | 608 | 29.795455 | 0.616548 | 0 | 0 | 0.25 | 0 | 0 | 0.422633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
59cf7dead3c9e0c5f859b1da78469d434f9d076c | 6,444 | py | Python | tests/analyzers/morphological/test_adverb_morphological_analyzer.py | fidelisrafael/esperanto-analyzer | af1e8609ec0696e3d1975aa0ba0c88e5f04f8468 | [
"BSD-2-Clause"
] | 18 | 2018-09-05T00:46:47.000Z | 2021-12-08T08:54:35.000Z | tests/analyzers/morphological/test_adverb_morphological_analyzer.py | fidelisrafael/esperanto-analyzer | af1e8609ec0696e3d1975aa0ba0c88e5f04f8468 | [
"BSD-2-Clause"
] | null | null | null | tests/analyzers/morphological/test_adverb_morphological_analyzer.py | fidelisrafael/esperanto-analyzer | af1e8609ec0696e3d1975aa0ba0c88e5f04f8468 | [
"BSD-2-Clause"
] | 3 | 2019-03-12T17:54:18.000Z | 2020-01-11T13:05:03.000Z | # pylint: disable=missing-docstring,no-self-use
import re
import pytest
from context import esperanto_analyzer
from esperanto_analyzer.speech import Adverb
from esperanto_analyzer.analyzers.morphological import AdverbMorphologicalAnalyzer
class TestAdverbMorphologicalAnalyzerBasic():
TEST_WORD = 'bonege'
d... | 33.5625 | 271 | 0.6527 | 648 | 6,444 | 6.316358 | 0.200617 | 0.046176 | 0.040313 | 0.047642 | 0.614952 | 0.555094 | 0.551674 | 0.490105 | 0.406548 | 0.373565 | 0 | 0.004069 | 0.237275 | 6,444 | 191 | 272 | 33.73822 | 0.828688 | 0.038175 | 0 | 0.430769 | 0 | 0.007692 | 0.074277 | 0.029549 | 0.007692 | 0 | 0 | 0 | 0.238462 | 1 | 0.207692 | false | 0 | 0.046154 | 0 | 0.323077 | 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 |
59cf9796d470db07d8c49fd17539c138ffd4c503 | 50,394 | py | Python | userPortal/appName/views.py | luqitao/WebPOS | 441df2d01d2a35ee1f240bd55e97c1b46b01d04b | [
"MIT"
] | null | null | null | userPortal/appName/views.py | luqitao/WebPOS | 441df2d01d2a35ee1f240bd55e97c1b46b01d04b | [
"MIT"
] | null | null | null | userPortal/appName/views.py | luqitao/WebPOS | 441df2d01d2a35ee1f240bd55e97c1b46b01d04b | [
"MIT"
] | null | null | null | # coding=utf-8
from appName.route.key_store_api import _getToken as getToken
from appName.route.test import *
from appName.route.cinder_api import *
from appName.route import ceilometer_api as ceilometer
from appName.api import nova
from django.http import HttpResponse
from django.http import HttpResponseRedirect
impo... | 40.3152 | 221 | 0.595408 | 5,735 | 50,394 | 5.055275 | 0.068875 | 0.029491 | 0.066018 | 0.081022 | 0.604374 | 0.563673 | 0.519626 | 0.456678 | 0.420771 | 0.40418 | 0 | 0.006984 | 0.27543 | 50,394 | 1,249 | 222 | 40.347478 | 0.787013 | 0.08249 | 0 | 0.453362 | 0 | 0 | 0.123029 | 0.008208 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003254 | 0.016269 | null | null | 0.007592 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.