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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9d3376d22b5fc15107f889d6b79ad0a53a60b57f | 8,993 | py | Python | cfp/migrations/0001_initial.py | JulienPalard/PonyConf | e462fb4bc42a2e7ade4dd230d928b0cecc05fecb | [
"Apache-2.0"
] | 11 | 2016-06-15T12:05:18.000Z | 2017-08-02T14:12:41.000Z | cfp/migrations/0001_initial.py | JulienPalard/PonyConf | e462fb4bc42a2e7ade4dd230d928b0cecc05fecb | [
"Apache-2.0"
] | 110 | 2016-07-06T20:04:57.000Z | 2017-12-01T20:51:52.000Z | cfp/migrations/0001_initial.py | JulienPalard/PonyConf | e462fb4bc42a2e7ade4dd230d928b0cecc05fecb | [
"Apache-2.0"
] | 10 | 2016-08-28T14:13:35.000Z | 2017-06-08T07:27:29.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-06-06 22:14
from __future__ import unicode_literals
import autoslug.fields
import colorful.fields
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migra... | 55.857143 | 305 | 0.595797 | 935 | 8,993 | 5.602139 | 0.209626 | 0.069301 | 0.042764 | 0.054983 | 0.573883 | 0.539519 | 0.506109 | 0.463536 | 0.39328 | 0.365788 | 0 | 0.011123 | 0.250195 | 8,993 | 160 | 306 | 56.20625 | 0.765683 | 0.007339 | 0 | 0.453947 | 1 | 0.006579 | 0.157104 | 0.002689 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.078947 | 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 |
9d3602d2dccd981ebb400e11514c814f41181378 | 441 | py | Python | client/migrations/0007_auto_20210710_1042.py | adwalkz/DjangoDataAnalysis | 1a888fc3a5dc34651a3b25d476e985ff39d8e305 | [
"MIT"
] | 4 | 2021-08-04T17:02:56.000Z | 2021-09-30T07:07:04.000Z | client/migrations/0007_auto_20210710_1042.py | adwalkz/DjangoDataAnalysis | 1a888fc3a5dc34651a3b25d476e985ff39d8e305 | [
"MIT"
] | null | null | null | client/migrations/0007_auto_20210710_1042.py | adwalkz/DjangoDataAnalysis | 1a888fc3a5dc34651a3b25d476e985ff39d8e305 | [
"MIT"
] | null | null | null | # Generated by Django 3.1 on 2021-07-10 10:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('client', '0006_surveyquestion_ques_category'),
]
operations = [
migrations.AlterField(
model_name='surveyquestion',
na... | 23.210526 | 87 | 0.60771 | 46 | 441 | 5.717391 | 0.76087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064417 | 0.260771 | 441 | 18 | 88 | 24.5 | 0.742331 | 0.097506 | 0 | 0 | 1 | 0 | 0.181818 | 0.083333 | 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 |
9d3681fbf2283947596171e4520ab59a9f9de0bd | 4,446 | py | Python | all code (not organized)/tts test thingy full spegram.py | TaylorChris2/Virtuoso | 87a3d59141172d5daff0ae4725b843351b52fe63 | [
"Apache-2.0"
] | null | null | null | all code (not organized)/tts test thingy full spegram.py | TaylorChris2/Virtuoso | 87a3d59141172d5daff0ae4725b843351b52fe63 | [
"Apache-2.0"
] | null | null | null | all code (not organized)/tts test thingy full spegram.py | TaylorChris2/Virtuoso | 87a3d59141172d5daff0ae4725b843351b52fe63 | [
"Apache-2.0"
] | null | null | null | import librosa
import numpy as np
import matplotlib.pyplot as plt
import sounddevice as sd
import copy
from scipy import signal
from scipy.signal import istft
from scipy.signal import stft
class hp:
prepro = True # if True, run `python prepro.py` first before running `python train.py`.
# ... | 28.5 | 195 | 0.621457 | 649 | 4,446 | 4.158706 | 0.383667 | 0.00741 | 0.005558 | 0.006669 | 0.121156 | 0.116339 | 0.074102 | 0.074102 | 0.05113 | 0.05113 | 0 | 0.04887 | 0.263608 | 4,446 | 155 | 196 | 28.683871 | 0.775504 | 0.289924 | 0 | 0.117647 | 0 | 0.011765 | 0.097276 | 0.043155 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.094118 | 0 | 0.564706 | 0.011765 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9d37b9634995ab9b0c0362b6a5ed1258a48516fb | 4,511 | py | Python | company/admin.py | yazdanv/backend | 49da8d46e108bc2000fdabc1b991836f2cc50687 | [
"MIT"
] | 232 | 2021-05-05T06:29:32.000Z | 2022-03-04T18:38:34.000Z | company/admin.py | lmn3x/backend | 5ef2dca266aaf6f2000e0765894045642e48ef98 | [
"MIT"
] | 30 | 2021-05-05T11:55:32.000Z | 2021-11-10T15:15:06.000Z | company/admin.py | lmn3x/backend | 5ef2dca266aaf6f2000e0765894045642e48ef98 | [
"MIT"
] | 69 | 2021-05-05T07:12:18.000Z | 2022-03-06T13:37:31.000Z | from django.contrib import admin
from django.core.cache import cache
from django.conf import settings
from django import forms
from django.utils.safestring import mark_safe
from .models import Company, Industry, Benefit, Province, City, Gallery
def approve_company(modeladmin, request, queryset):
queryset.update(... | 38.228814 | 117 | 0.687652 | 531 | 4,511 | 5.615819 | 0.237288 | 0.036217 | 0.04829 | 0.040241 | 0.381958 | 0.381958 | 0.327968 | 0.327968 | 0.281355 | 0.154594 | 0 | 0.006331 | 0.15961 | 4,511 | 117 | 118 | 38.555556 | 0.780269 | 0 | 0 | 0.121951 | 0 | 0 | 0.255819 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109756 | false | 0 | 0.073171 | 0.036585 | 0.609756 | 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 |
9d3c9d92caf3e7680b0d17fd1f6039dec36548a8 | 1,366 | py | Python | model/person_profile.py | andyzt/convai_router_bot | a5cdbf3e635e3bd57571a918d5611c18876bad1d | [
"Apache-2.0"
] | 3 | 2019-02-21T04:39:58.000Z | 2019-11-16T16:23:47.000Z | model/person_profile.py | andyzt/convai_router_bot | a5cdbf3e635e3bd57571a918d5611c18876bad1d | [
"Apache-2.0"
] | 3 | 2021-06-08T20:12:27.000Z | 2022-03-11T23:56:15.000Z | model/person_profile.py | andyzt/convai_router_bot | a5cdbf3e635e3bd57571a918d5611c18876bad1d | [
"Apache-2.0"
] | 3 | 2019-03-11T13:37:18.000Z | 2019-12-09T13:53:33.000Z | from typing import List, Optional
from mongoengine import *
from .image import Image
from .tools import get_image_from_text
class PersonProfile(Document):
"""Profile assigned to the conversation participant"""
persona: List[str] = ListField(StringField(), required=True)
link_uuid: Optional[str]... | 35.025641 | 69 | 0.633236 | 161 | 1,366 | 5.217391 | 0.31677 | 0.042857 | 0.07619 | 0.057143 | 0.365476 | 0.271429 | 0.17619 | 0.17619 | 0.17619 | 0 | 0 | 0.001972 | 0.257687 | 1,366 | 38 | 70 | 35.947368 | 0.82643 | 0.035139 | 0 | 0.258065 | 0 | 0 | 0.00157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.129032 | 0.032258 | 0.548387 | 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 |
9d4497cb31e98e6e0052dfc05470ad1fa8e99199 | 1,916 | py | Python | backend/lib/nwv/validators/test_enum_value_name_validator.py | jonbeeler/openweave-wdlc | 1609918e46393f22a3e29796adbd91f539c3d883 | [
"Apache-2.0"
] | 1 | 2019-07-16T17:41:15.000Z | 2019-07-16T17:41:15.000Z | backend/lib/nwv/validators/test_enum_value_name_validator.py | jonbeeler/openweave-wdlc | 1609918e46393f22a3e29796adbd91f539c3d883 | [
"Apache-2.0"
] | 25 | 2019-07-01T01:56:52.000Z | 2021-09-29T19:18:56.000Z | backend/lib/nwv/validators/test_enum_value_name_validator.py | jonbeeler/openweave-wdlc | 1609918e46393f22a3e29796adbd91f539c3d883 | [
"Apache-2.0"
] | 8 | 2019-07-02T17:39:49.000Z | 2021-09-27T23:49:23.000Z | #
# Copyright (c) 2019-2020 Google LLC. All Rights Reserved.
# Copyright (c) 2016-2018 Nest Labs Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# ... | 34.214286 | 77 | 0.720772 | 255 | 1,916 | 5.196078 | 0.505882 | 0.045283 | 0.036226 | 0.049811 | 0.202264 | 0.126792 | 0.092075 | 0.092075 | 0 | 0 | 0 | 0.015043 | 0.201983 | 1,916 | 55 | 78 | 34.836364 | 0.851537 | 0.469729 | 0 | 0.090909 | 0 | 0 | 0.135163 | 0.023374 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.090909 | false | 0 | 0.318182 | 0 | 0.454545 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9d49b85620c6636ac888289985c4a00b57d3972c | 12,188 | py | Python | dev/incompressible_liquids/CPIncomp/ExampleObjects.py | pauliacomi/CoolProp | 80eb4601c67ecd04353067663db50937fd7ccdae | [
"MIT"
] | 520 | 2015-01-14T16:49:41.000Z | 2022-03-29T07:48:50.000Z | dev/incompressible_liquids/CPIncomp/ExampleObjects.py | pauliacomi/CoolProp | 80eb4601c67ecd04353067663db50937fd7ccdae | [
"MIT"
] | 1,647 | 2015-01-01T07:42:45.000Z | 2022-03-31T23:48:56.000Z | dev/incompressible_liquids/CPIncomp/ExampleObjects.py | pauliacomi/CoolProp | 80eb4601c67ecd04353067663db50937fd7ccdae | [
"MIT"
] | 320 | 2015-01-02T17:24:27.000Z | 2022-03-19T07:01:00.000Z | from __future__ import division, print_function
import numpy as np
from .DataObjects import PureData, SolutionData, DigitalData,\
CoefficientData
class PureExample(PureData):
def __init__(self):
PureData.__init__(self)
self.name = "ExamplePure"
self.description = "Heat transfer fluid T... | 39.700326 | 237 | 0.60576 | 1,593 | 12,188 | 4.549278 | 0.277464 | 0.036429 | 0.05078 | 0.030357 | 0.402649 | 0.345384 | 0.282738 | 0.245205 | 0.208776 | 0.202705 | 0 | 0.259537 | 0.255825 | 12,188 | 306 | 238 | 39.830065 | 0.539471 | 0.019117 | 0 | 0.178862 | 0 | 0 | 0.026959 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052846 | false | 0 | 0.01626 | 0.028455 | 0.121951 | 0.004065 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9d4f2c944426fc6059da68ba23cece7c8d2d0fa1 | 1,019 | py | Python | minos/migrations/0014_auto_20160726_2108.py | TomWerner/HawkeyeChallenge | 69652978b017ebd443c807b8d0091ded2598c86c | [
"MIT"
] | 1 | 2016-07-27T19:10:20.000Z | 2016-07-27T19:10:20.000Z | minos/migrations/0014_auto_20160726_2108.py | TomWerner/HawkeyeChallenge | 69652978b017ebd443c807b8d0091ded2598c86c | [
"MIT"
] | null | null | null | minos/migrations/0014_auto_20160726_2108.py | TomWerner/HawkeyeChallenge | 69652978b017ebd443c807b8d0091ded2598c86c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-07-27 01:08
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('minos', '0013_startercode'),
]
operations = [
migrations.AlterField(
... | 39.192308 | 256 | 0.581943 | 123 | 1,019 | 4.723577 | 0.430894 | 0.144578 | 0.089501 | 0.099828 | 0.547332 | 0.547332 | 0.547332 | 0.547332 | 0.547332 | 0.547332 | 0 | 0.039506 | 0.205103 | 1,019 | 25 | 257 | 40.76 | 0.677778 | 0.065751 | 0 | 0.444444 | 1 | 0 | 0.347734 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9d614f74d655d0260a3d1dd4ba89f67a2b5ce540 | 5,353 | py | Python | base/site-packages/redis_model/genlucknum.py | B-ROY/TESTGIT | 40221cf254c90d37d21afb981635740aebf11949 | [
"Apache-2.0"
] | 2 | 2017-12-02T13:58:30.000Z | 2018-08-02T17:07:59.000Z | base/site-packages/redis_model/genlucknum.py | B-ROY/TESTGIT | 40221cf254c90d37d21afb981635740aebf11949 | [
"Apache-2.0"
] | null | null | null | base/site-packages/redis_model/genlucknum.py | B-ROY/TESTGIT | 40221cf254c90d37d21afb981635740aebf11949 | [
"Apache-2.0"
] | null | null | null |
#encoding=utf-8
import sys, os
import time
#from redis_model.redis_client import RQueueClient
import json
import sys, traceback
from queue import RedisQueue
import re
"""
这个工具主要是生成靓号表、机器人表、普通号表
MySQL中设计一个表为`SpeNumInfo`,字段为id、begin、end、status,后台人员可以通过CMS系统进行添加号码段,status标记为1、系统预留 2、机器人号段
MySQL中加入另外一个表为`LuckNumInfo`,字... | 31.304094 | 142 | 0.529236 | 681 | 5,353 | 4.123348 | 0.246696 | 0.029915 | 0.035613 | 0.039174 | 0.327279 | 0.297721 | 0.297721 | 0.26745 | 0.22614 | 0.218661 | 0 | 0.096939 | 0.231085 | 5,353 | 170 | 143 | 31.488235 | 0.585277 | 0.033066 | 0 | 0.254902 | 0 | 0.039216 | 0.223245 | 0.158559 | 0 | 0 | 0 | 0.005882 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.039216 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9d61aa3e4c63b25e9d188d27c1a2db3d4149ad50 | 856 | py | Python | misc/collections/list.py | gingerkirsch/playing-with-python | 5c958b22e13207e65bcaa94a982d71e2fe024e22 | [
"MIT"
] | null | null | null | misc/collections/list.py | gingerkirsch/playing-with-python | 5c958b22e13207e65bcaa94a982d71e2fe024e22 | [
"MIT"
] | null | null | null | misc/collections/list.py | gingerkirsch/playing-with-python | 5c958b22e13207e65bcaa94a982d71e2fe024e22 | [
"MIT"
] | null | null | null | # Operations on list
def remove(items, value):
new_items = []
found = False
for item in items:
# Skip the first item which is equal to value
If not found and item == value
found = True
continue
new_items.append(item)
if not found:
raise ValueError('list.remove(x) : x is not in list')
return new_i... | 19.022222 | 56 | 0.690421 | 139 | 856 | 4.122302 | 0.280576 | 0.097731 | 0.062827 | 0.097731 | 0.104712 | 0.104712 | 0.104712 | 0.104712 | 0.104712 | 0 | 0 | 0.005944 | 0.213785 | 856 | 44 | 57 | 19.454545 | 0.845468 | 0.07243 | 0 | 0.285714 | 0 | 0 | 0.042984 | 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 |
19b61f33dcd2fd8dbbbd8fd46d5afb5f20410ba4 | 306 | py | Python | day1/puzzle1.py | MarcoGlauser/advent-of-code-2019 | d602e94ce20ed9862508a956dc203db0997cf426 | [
"MIT"
] | null | null | null | day1/puzzle1.py | MarcoGlauser/advent-of-code-2019 | d602e94ce20ed9862508a956dc203db0997cf426 | [
"MIT"
] | null | null | null | day1/puzzle1.py | MarcoGlauser/advent-of-code-2019 | d602e94ce20ed9862508a956dc203db0997cf426 | [
"MIT"
] | null | null | null | from math import floor
def calculate_fuel_required(mass: int):
return max(0, floor(mass/3) -2)
if __name__ == '__main__':
filename = 'input.txt'
total = 0
with open(filename, 'r') as fp:
for line in fp:
total += calculate_fuel_required(int(line))
print(total)
| 18 | 55 | 0.620915 | 43 | 306 | 4.139535 | 0.72093 | 0.146067 | 0.235955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017699 | 0.261438 | 306 | 16 | 56 | 19.125 | 0.769912 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0.1 | 0.3 | 0.1 | 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 |
19b93309f0616dd6d29a3f0532af66b3ff95bd37 | 575 | py | Python | evernote2/nlp/text_cleansing_pipe/algorithms/html_cleaner.py | JackonYang/evernote-sdk-python | a2a1f88328f51bc963f19491040b1468d937a634 | [
"Apache-2.0",
"BSD-2-Clause"
] | 2 | 2020-11-26T02:07:16.000Z | 2021-04-29T16:38:07.000Z | evernote2/nlp/text_cleansing_pipe/algorithms/html_cleaner.py | JackonYang/evernote-sdk-python | a2a1f88328f51bc963f19491040b1468d937a634 | [
"Apache-2.0",
"BSD-2-Clause"
] | null | null | null | evernote2/nlp/text_cleansing_pipe/algorithms/html_cleaner.py | JackonYang/evernote-sdk-python | a2a1f88328f51bc963f19491040b1468d937a634 | [
"Apache-2.0",
"BSD-2-Clause"
] | 1 | 2021-01-22T09:50:13.000Z | 2021-01-22T09:50:13.000Z | import re
import string
from html.parser import HTMLParser
from .space import collapse_spaces
h = HTMLParser()
regex_html = re.compile('<.*?>')
# Chinese punctuations are not removed, which is not good
regex_punctuation = re.compile('[%s]' % re.escape(string.punctuation))
def clean_html_entity(text):
return ... | 19.166667 | 70 | 0.721739 | 81 | 575 | 4.91358 | 0.45679 | 0.060302 | 0.075377 | 0.095477 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166957 | 575 | 29 | 71 | 19.827586 | 0.830898 | 0.095652 | 0 | 0 | 0 | 0 | 0.021236 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.266667 | 0.066667 | 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 |
19c6361083858caa61189cf4d333f92c0a2ec406 | 1,004 | py | Python | tests/parse_nonlazy_timetest.py | siveroo/osr2mp4-core | 7aaf33e7b4798634bb4151a8246dbf2d5ef49cf9 | [
"MIT"
] | 103 | 2020-06-07T15:28:41.000Z | 2022-03-01T17:07:35.000Z | tests/parse_nonlazy_timetest.py | siveroo/osr2mp4-core | 7aaf33e7b4798634bb4151a8246dbf2d5ef49cf9 | [
"MIT"
] | 50 | 2020-06-07T10:53:21.000Z | 2021-12-19T14:47:47.000Z | tests/parse_nonlazy_timetest.py | siveroo/osr2mp4-core | 7aaf33e7b4798634bb4151a8246dbf2d5ef49cf9 | [
"MIT"
] | 21 | 2020-07-12T16:02:35.000Z | 2022-03-01T17:07:37.000Z | import os
import unittest
from osr2mp4.Parser.osuparser import read_file
from utils import abspath
class TestScore(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.tests = []
cls.tests.append("reimei")
cls.tests.append("dareka")
cls.tests.append("yomi")
cls.tests.append("realyomi")
cls.tests.... | 25.74359 | 98 | 0.710159 | 139 | 1,004 | 5.021583 | 0.446043 | 0.148997 | 0.240688 | 0.048711 | 0.060172 | 0.060172 | 0 | 0 | 0 | 0 | 0 | 0.004551 | 0.124502 | 1,004 | 38 | 99 | 26.421053 | 0.789534 | 0 | 0 | 0 | 0 | 0 | 0.124502 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.233333 | 0.033333 | 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 |
19cbfc410d72276a3ef8529477cb654580c4222b | 510 | py | Python | Py exercises/My code/CSS exercises/03_2.py | arvindkarir/python-pandas-code | fb3b68f07f0438cd0ef6d7ad669ce78650d884a8 | [
"MIT"
] | null | null | null | Py exercises/My code/CSS exercises/03_2.py | arvindkarir/python-pandas-code | fb3b68f07f0438cd0ef6d7ad669ce78650d884a8 | [
"MIT"
] | null | null | null | Py exercises/My code/CSS exercises/03_2.py | arvindkarir/python-pandas-code | fb3b68f07f0438cd0ef6d7ad669ce78650d884a8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Dec 7 16:30:46 2017
@author: User
"""
def makeName():
# commonS = []
s1 = str(input('Enter your first name\n'))
s2 = str(input('Enter your last name\n'))
s3 = str(input('Enter your year of birth YYYY\n'))
print('This is what you entered\n', s1... | 24.285714 | 63 | 0.552941 | 75 | 510 | 3.76 | 0.613333 | 0.085106 | 0.138298 | 0.180851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068783 | 0.258824 | 510 | 20 | 64 | 25.5 | 0.677249 | 0.17451 | 0 | 0 | 0 | 0 | 0.270408 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.090909 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19d646ea28592ea79a40625b2731656f2fa3a9e0 | 20,542 | py | Python | keras_layers/keras_layer_AnchorBoxes.py | xuannianz/ssd_keras | 681e936b834b6a3786562ee8d22f7b07b409bd17 | [
"Apache-2.0"
] | 1 | 2019-10-30T06:53:48.000Z | 2019-10-30T06:53:48.000Z | keras_layers/keras_layer_AnchorBoxes.py | lylaaa/ssd_keras | 681e936b834b6a3786562ee8d22f7b07b409bd17 | [
"Apache-2.0"
] | null | null | null | keras_layers/keras_layer_AnchorBoxes.py | lylaaa/ssd_keras | 681e936b834b6a3786562ee8d22f7b07b409bd17 | [
"Apache-2.0"
] | 1 | 2019-11-17T07:02:26.000Z | 2019-11-17T07:02:26.000Z | """
A custom Keras layer to generate anchor boxes.
Copyright (C) 2018 Pierluigi Ferrari
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 requir... | 52.403061 | 120 | 0.616931 | 2,773 | 20,542 | 4.410025 | 0.172737 | 0.033527 | 0.022242 | 0.026331 | 0.308938 | 0.231581 | 0.188405 | 0.164118 | 0.150298 | 0.123804 | 0 | 0.017188 | 0.283419 | 20,542 | 391 | 121 | 52.537084 | 0.813587 | 0.444699 | 0 | 0.186529 | 1 | 0 | 0.098552 | 0 | 0 | 0 | 0 | 0.002558 | 0 | 1 | 0.025907 | false | 0.005181 | 0.031088 | 0 | 0.07772 | 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 |
19d9004c11c68aadc22868745c930db81ce2d77c | 451 | py | Python | airflow/migrations/versions/561833c1c74b_add_password_column_to_user.py | rahul342/airflow | 2107dc97ca0b17131ad5cbda6c91301acf5a6079 | [
"Apache-2.0"
] | 1 | 2021-07-07T17:15:16.000Z | 2021-07-07T17:15:16.000Z | airflow/migrations/versions/561833c1c74b_add_password_column_to_user.py | rahul342/airflow | 2107dc97ca0b17131ad5cbda6c91301acf5a6079 | [
"Apache-2.0"
] | 1 | 2020-11-17T18:49:50.000Z | 2020-11-17T18:49:50.000Z | airflow/migrations/versions/561833c1c74b_add_password_column_to_user.py | rahul342/airflow | 2107dc97ca0b17131ad5cbda6c91301acf5a6079 | [
"Apache-2.0"
] | 2 | 2015-12-22T15:48:28.000Z | 2016-01-20T22:11:39.000Z | """add password column to user
Revision ID: 561833c1c74b
Revises: 40e67319e3a9
Create Date: 2015-11-30 06:51:25.872557
"""
# revision identifiers, used by Alembic.
revision = '561833c1c74b'
down_revision = '40e67319e3a9'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def upg... | 18.04 | 64 | 0.733925 | 62 | 451 | 5.258065 | 0.66129 | 0.06135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153247 | 0.146341 | 451 | 24 | 65 | 18.791667 | 0.693506 | 0.345898 | 0 | 0 | 0 | 0 | 0.167247 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
19dafec6fd63afa087e1875db4fd6fb754139dbb | 295 | py | Python | UnitTests/ClockTest/check.py | vkf63516/GodotGymAI | a6d4ce5e95f0d3a5e03d8c94cf59fcf27703c391 | [
"MIT"
] | 77 | 2020-11-25T17:57:43.000Z | 2022-03-18T12:50:22.000Z | UnitTests/ClockTest/check.py | vkf63516/GodotGymAI | a6d4ce5e95f0d3a5e03d8c94cf59fcf27703c391 | [
"MIT"
] | 10 | 2020-12-05T14:49:21.000Z | 2022-01-20T20:28:39.000Z | UnitTests/ClockTest/check.py | vkf63516/GodotGymAI | a6d4ce5e95f0d3a5e03d8c94cf59fcf27703c391 | [
"MIT"
] | 12 | 2020-12-05T11:14:05.000Z | 2022-01-29T02:08:46.000Z | import os
import sys
import json
import matplotlib.pylab as plt
if __name__=='__main__':
with open("log.json", 'rt') as fin:
dict = json.load(fin)
plt.subplot(1,2,1)
plt.plot(dict['t'], dict['Kin'])
plt.subplot(1,2,2)
plt.plot(dict['t'], dict['Rig'])
plt.show() | 21.071429 | 39 | 0.60678 | 49 | 295 | 3.489796 | 0.530612 | 0.116959 | 0.128655 | 0.140351 | 0.187135 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025532 | 0.20339 | 295 | 14 | 40 | 21.071429 | 0.702128 | 0 | 0 | 0 | 0 | 0 | 0.087838 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
19db9c7899e4c533748e519836a6e6df11357f27 | 1,786 | py | Python | tests/fixtures/data/dart.py | BenTopping/lighthouse | 649b442ca89f7deb7c01411faa883c1894b72986 | [
"MIT"
] | 1 | 2021-11-14T19:57:03.000Z | 2021-11-14T19:57:03.000Z | tests/fixtures/data/dart.py | BenTopping/lighthouse | 649b442ca89f7deb7c01411faa883c1894b72986 | [
"MIT"
] | 496 | 2020-04-23T07:45:53.000Z | 2022-03-31T14:33:01.000Z | tests/fixtures/data/dart.py | BenTopping/lighthouse | 649b442ca89f7deb7c01411faa883c1894b72986 | [
"MIT"
] | 3 | 2020-11-01T23:41:08.000Z | 2021-02-23T16:09:40.000Z | from lighthouse.constants.fields import (
FIELD_COG_BARCODE,
FIELD_COORDINATE,
FIELD_DART_CONTROL,
FIELD_DART_DESTINATION_BARCODE,
FIELD_DART_DESTINATION_COORDINATE,
FIELD_DART_LAB_ID,
FIELD_DART_RNA_ID,
FIELD_DART_ROOT_SAMPLE_ID,
FIELD_DART_SOURCE_BARCODE,
FIELD_DART_SOURCE_COOR... | 30.271186 | 73 | 0.608623 | 194 | 1,786 | 5.030928 | 0.242268 | 0.221311 | 0.122951 | 0.082992 | 0.376025 | 0.188525 | 0.188525 | 0.096311 | 0 | 0 | 0 | 0.044944 | 0.302352 | 1,786 | 58 | 74 | 30.793103 | 0.738363 | 0.018477 | 0 | 0.070175 | 0 | 0 | 0.079429 | 0.020571 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.017544 | 0 | 0.017544 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19dbd9a0461f4ad20f41fef4c942f8ab0cd1cbeb | 1,241 | py | Python | task/create_doc.py | murnana/study-with-python | 6136164bef014f22a175e22ae66caa0f3c5cea79 | [
"MIT"
] | null | null | null | task/create_doc.py | murnana/study-with-python | 6136164bef014f22a175e22ae66caa0f3c5cea79 | [
"MIT"
] | 4 | 2018-03-15T00:24:22.000Z | 2018-06-14T00:32:25.000Z | task/create_doc.py | murnana/study_with_python | 6136164bef014f22a175e22ae66caa0f3c5cea79 | [
"MIT"
] | null | null | null | """
Sphinxドキュメントを生成するタスク
通常、Paverのdoctoolsを使うのだが、このプロジェクトの構造に合わせたいので作成
"""
import os, shutil, sphinx.cmd.build, sphinx.ext.apidoc
from paver.easy import dry, task, needs
_sphinx_path = 'sphinx'
_doctree_path = 'sphinx/__doctree__'
_api_reSt_path = 'sphinx/api'
_module_path = 'src'
_docs_path = 'docs'
def create_apid... | 17.728571 | 72 | 0.646253 | 148 | 1,241 | 5.148649 | 0.378378 | 0.052493 | 0.043307 | 0.070866 | 0.120735 | 0.089239 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214343 | 1,241 | 70 | 73 | 17.728571 | 0.781538 | 0.242546 | 0 | 0.103448 | 0 | 0 | 0.100703 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.068966 | 0 | 0.275862 | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19dfc347178c79c8f438488266b8919913edd8db | 1,470 | py | Python | timelapse.py | NikoFresh/python-timelapse | c69ec8d5ba8c7fae2216757e81606d7f70251a29 | [
"MIT"
] | null | null | null | timelapse.py | NikoFresh/python-timelapse | c69ec8d5ba8c7fae2216757e81606d7f70251a29 | [
"MIT"
] | null | null | null | timelapse.py | NikoFresh/python-timelapse | c69ec8d5ba8c7fae2216757e81606d7f70251a29 | [
"MIT"
] | null | null | null | import os
class Timelapse:
def __init__(
self, dir: str, duration: int = 30, resolution: str = "1440x1080"
) -> None:
self.dir: str = dir
self.duration: int = duration # Video duration in seconds
self.resolution: str = resolution # Video resolution
def create_video(self)... | 30.625 | 192 | 0.57483 | 174 | 1,470 | 4.775862 | 0.402299 | 0.042118 | 0.036101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028913 | 0.317687 | 1,470 | 47 | 193 | 31.276596 | 0.799601 | 0.205442 | 0 | 0 | 0 | 0.038462 | 0.198694 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.038462 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19dfce55bb0f143959ff02a10a23a12b14d5168c | 821 | py | Python | leetcode/easy/two_sum/py/solution.py | lilsweetcaligula/Online-Judges | 48454a8e6b5b86f80e89eca1b396480df8960cfd | [
"MIT"
] | null | null | null | leetcode/easy/two_sum/py/solution.py | lilsweetcaligula/Online-Judges | 48454a8e6b5b86f80e89eca1b396480df8960cfd | [
"MIT"
] | null | null | null | leetcode/easy/two_sum/py/solution.py | lilsweetcaligula/Online-Judges | 48454a8e6b5b86f80e89eca1b396480df8960cfd | [
"MIT"
] | null | null | null | class Solution(object):
def twoSum(self, numbers, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[int]
"""
indices = sorted(range(len(numbers)), key=lambda x: numbers[x])
for _, i in enumerate(indices):
a = numbers[i]
... | 27.366667 | 71 | 0.347138 | 73 | 821 | 3.890411 | 0.506849 | 0.105634 | 0.119718 | 0.126761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008242 | 0.556638 | 821 | 29 | 72 | 28.310345 | 0.771978 | 0.069428 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0 | 0 | 0.235294 | 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 |
19e522a7a317619c5542348f548bf823392cb26d | 838 | py | Python | exercicios_resolvidos3/exercicios3/capitulo 09/exercicio-09-16.py | tiagosm1/Python_Nilo_Ney | b5380dcc8fcf64e9c047ebc353585caba3d7b397 | [
"MIT"
] | null | null | null | exercicios_resolvidos3/exercicios3/capitulo 09/exercicio-09-16.py | tiagosm1/Python_Nilo_Ney | b5380dcc8fcf64e9c047ebc353585caba3d7b397 | [
"MIT"
] | null | null | null | exercicios_resolvidos3/exercicios3/capitulo 09/exercicio-09-16.py | tiagosm1/Python_Nilo_Ney | b5380dcc8fcf64e9c047ebc353585caba3d7b397 | [
"MIT"
] | null | null | null | ##############################################################################
# Parte do livro Introdução à Programação com Python
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2020
# Primeira edição - Novembro/2010 - ISBN 978-85-7522-250-8
# Segunda edição - Junho/2014 - ISBN 978-85-7522-408-3
# Terce... | 38.090909 | 78 | 0.596659 | 113 | 838 | 4.424779 | 0.752212 | 0.042 | 0.054 | 0.078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103734 | 0.137232 | 838 | 21 | 79 | 39.904762 | 0.587828 | 0.761337 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19ecbe94f790c6faf0a86f393e957ce9ae3b3725 | 935 | py | Python | _unittests/ut_timeseries/test_plot_timeseries.py | sdpython/mlinsights | bae59cda775a69bcce83b16b88df2f34a092cb60 | [
"MIT"
] | 48 | 2017-11-19T14:59:41.000Z | 2022-03-03T15:50:24.000Z | _unittests/ut_timeseries/test_plot_timeseries.py | sdpython/mlinsights | bae59cda775a69bcce83b16b88df2f34a092cb60 | [
"MIT"
] | 87 | 2017-11-20T00:10:32.000Z | 2021-11-20T01:48:09.000Z | _unittests/ut_timeseries/test_plot_timeseries.py | sdpython/mlinsights | bae59cda775a69bcce83b16b88df2f34a092cb60 | [
"MIT"
] | 12 | 2019-05-09T07:45:52.000Z | 2021-06-28T06:55:53.000Z | """
@brief test log(time=2s)
"""
import unittest
import datetime
from pyquickhelper.pycode import ExtTestCase
from mlinsights.timeseries.datasets import artificial_data
from mlinsights.timeseries.agg import aggregate_timeseries
from mlinsights.timeseries.plotting import plot_week_timeseries
class TestPlotTimeSer... | 30.16129 | 64 | 0.669519 | 111 | 935 | 5.405405 | 0.504505 | 0.07 | 0.12 | 0.07 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038356 | 0.219251 | 935 | 30 | 65 | 31.166667 | 0.783562 | 0.055615 | 0 | 0.090909 | 0 | 0 | 0.038857 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 1 | 0.045455 | false | 0 | 0.318182 | 0 | 0.409091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
19ece9592a681cdf4da8f7e52ea1e1983cca635d | 3,302 | py | Python | roast/component/scenario.py | Xilinx/roast | 999594fd5d1f0c92d26bc36741ea85d57a0235e9 | [
"MIT"
] | 1 | 2021-09-01T15:29:15.000Z | 2021-09-01T15:29:15.000Z | roast/component/scenario.py | Xilinx/roast | 999594fd5d1f0c92d26bc36741ea85d57a0235e9 | [
"MIT"
] | null | null | null | roast/component/scenario.py | Xilinx/roast | 999594fd5d1f0c92d26bc36741ea85d57a0235e9 | [
"MIT"
] | 4 | 2020-11-19T11:42:36.000Z | 2021-02-05T04:20:52.000Z | #
# Copyright (c) 2020 Xilinx, Inc. All rights reserved.
# SPDX-License-Identifier: MIT
#
from abc import ABCMeta, abstractmethod
from stevedore import driver, named
class ComponentFactory(metaclass=ABCMeta):
"""This is an abstract factory that defines how the two types of components are created."""
def __i... | 28.713043 | 95 | 0.65536 | 392 | 3,302 | 5.288265 | 0.227041 | 0.057887 | 0.030391 | 0.036179 | 0.426918 | 0.39122 | 0.351182 | 0.27014 | 0.15533 | 0.045345 | 0 | 0.001617 | 0.25106 | 3,302 | 114 | 96 | 28.964912 | 0.836636 | 0.102362 | 0 | 0.207792 | 0 | 0 | 0.02517 | 0.015986 | 0 | 0 | 0 | 0 | 0 | 1 | 0.220779 | false | 0 | 0.025974 | 0.051948 | 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 |
19ee4cc6ec064ab749cc52bd45f2579a260fa765 | 9,608 | py | Python | h1st_contrib/iot_mgmt/maint_ops/views.py | h1st-ai/h1st-contrib | 38fbb1fff4513bb3433bc12f2b436836e5e51c80 | [
"Apache-2.0"
] | 1 | 2022-02-19T18:55:43.000Z | 2022-02-19T18:55:43.000Z | h1st_contrib/iot_mgmt/maint_ops/views.py | h1st-ai/h1st-contrib | 38fbb1fff4513bb3433bc12f2b436836e5e51c80 | [
"Apache-2.0"
] | null | null | null | h1st_contrib/iot_mgmt/maint_ops/views.py | h1st-ai/h1st-contrib | 38fbb1fff4513bb3433bc12f2b436836e5e51c80 | [
"Apache-2.0"
] | null | null | null | """H1st IoT Data Management: API views."""
from rest_framework.authentication import (BasicAuthentication,
RemoteUserAuthentication,
SessionAuthentication,
TokenAuthentication)
from rest_fr... | 29.02719 | 78 | 0.698064 | 809 | 9,608 | 8.075402 | 0.163164 | 0.04041 | 0.062452 | 0.033063 | 0.607072 | 0.573397 | 0.554569 | 0.48079 | 0.412368 | 0.376397 | 0 | 0.000531 | 0.215341 | 9,608 | 330 | 79 | 29.115152 | 0.86603 | 0.134055 | 0 | 0.513661 | 0 | 0 | 0.105802 | 0.017037 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065574 | false | 0 | 0.04918 | 0 | 0.52459 | 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 |
19f54696e20c3e2ecc679ace7b3f80c032345344 | 2,861 | py | Python | PythonBasics.py | myguyfaris/faris_python_tut | 59aca178d20f210eb8af6703ddbaa5a54bd62dad | [
"MIT"
] | null | null | null | PythonBasics.py | myguyfaris/faris_python_tut | 59aca178d20f210eb8af6703ddbaa5a54bd62dad | [
"MIT"
] | null | null | null | PythonBasics.py | myguyfaris/faris_python_tut | 59aca178d20f210eb8af6703ddbaa5a54bd62dad | [
"MIT"
] | null | null | null | # ignore these lines are they are comments
print("Hello World, let me get good at data science and give me a job!")
# this is a single line comment, made with a hash
"""
This is a multi-line comment, created with triple quotes
"""
# you can assign variables just by defining them as below
num1 = 5
num2 = 0.5
result = nu... | 35.320988 | 109 | 0.750087 | 494 | 2,861 | 4.331984 | 0.421053 | 0.023364 | 0.016822 | 0.013084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025608 | 0.181056 | 2,861 | 81 | 110 | 35.320988 | 0.887751 | 0.134219 | 0 | 0 | 0 | 0 | 0.239003 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.407407 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
19f7edf93a361e32e5d312c6a0f630ccdc9fe925 | 4,446 | py | Python | videolist.py | Curt-H/bilidown | 9d2d0e4adea8172f0f5c69fc4e72d1eaa9ba2a76 | [
"MIT"
] | null | null | null | videolist.py | Curt-H/bilidown | 9d2d0e4adea8172f0f5c69fc4e72d1eaa9ba2a76 | [
"MIT"
] | null | null | null | videolist.py | Curt-H/bilidown | 9d2d0e4adea8172f0f5c69fc4e72d1eaa9ba2a76 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import time
from utils import log
from modules.cache import get_content
from modules.json_parse import js_page_count, js_get_posts, js_get_post_info
from settings import SETTINGS
SETTINGS = SETTINGS
api_posts = 'https://api.bilibili.com/x/space/arc/search?mid={}&ps=30&tid=0&pn={}&order=pubdat... | 23.277487 | 111 | 0.52834 | 586 | 4,446 | 3.880546 | 0.25256 | 0.03518 | 0.010554 | 0.026385 | 0.154793 | 0.08883 | 0.072999 | 0 | 0 | 0 | 0 | 0.007872 | 0.28565 | 4,446 | 191 | 112 | 23.277487 | 0.707179 | 0.048133 | 0 | 0.070588 | 0 | 0.011765 | 0.186535 | 0.024631 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | 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 |
19fa7c87d53165aaafc2cd6a3d00c231549bbb36 | 3,902 | py | Python | scripts/train_3d.py | Moctader/Master_thesis | 1852b05e413d3ab3108d4018d86e35b10497f622 | [
"MIT"
] | null | null | null | scripts/train_3d.py | Moctader/Master_thesis | 1852b05e413d3ab3108d4018d86e35b10497f622 | [
"MIT"
] | null | null | null | scripts/train_3d.py | Moctader/Master_thesis | 1852b05e413d3ab3108d4018d86e35b10497f622 | [
"MIT"
] | null | null | null | import numpy as np
import pathlib
import os.path
from torch import optim, cuda, nn
from time import time
import gc
import cv2
import torchvision
from torchvision.models import resnet18
from hmdscollagen.training.models import SimpleNet
from hmdscollagen.training.net import ReconNet
from hmdscollagen.training.SimpleConv... | 40.645833 | 120 | 0.648129 | 441 | 3,902 | 5.535147 | 0.324263 | 0.044244 | 0.04916 | 0.04916 | 0.126178 | 0.091766 | 0 | 0 | 0 | 0 | 0 | 0.012689 | 0.252691 | 3,902 | 95 | 121 | 41.073684 | 0.824417 | 0.188365 | 0 | 0.032787 | 0 | 0.016393 | 0.078219 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.327869 | 0 | 0.327869 | 0.032787 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
19fddc1e2db9ed1025c54d79e115898f6576b2e7 | 7,294 | py | Python | migrations/versions/0d63811baec2_.py | sabigara/book_sns_api | 0310079c2891c63fababf01636ab563e0ca67455 | [
"CC-BY-3.0"
] | null | null | null | migrations/versions/0d63811baec2_.py | sabigara/book_sns_api | 0310079c2891c63fababf01636ab563e0ca67455 | [
"CC-BY-3.0"
] | null | null | null | migrations/versions/0d63811baec2_.py | sabigara/book_sns_api | 0310079c2891c63fababf01636ab563e0ca67455 | [
"CC-BY-3.0"
] | null | null | null | """empty message
Revision ID: 0d63811baec2
Revises:
Create Date: 2019-02-03 17:50:27.904701
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '0d63811baec2'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | 46.75641 | 93 | 0.674801 | 980 | 7,294 | 4.888776 | 0.128571 | 0.115216 | 0.146107 | 0.175329 | 0.740973 | 0.693175 | 0.585473 | 0.463995 | 0.395325 | 0.380296 | 0 | 0.015402 | 0.127639 | 7,294 | 155 | 94 | 47.058065 | 0.737545 | 0.038799 | 0 | 0.328467 | 0 | 0 | 0.192429 | 0.022082 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014599 | false | 0.007299 | 0.014599 | 0 | 0.029197 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c206769b6aa41e2deaba587b718289a01fa96b75 | 1,729 | py | Python | microquake/core/util/serializer.py | jeanphilippemercier/microquake | 0b9d07be11eddd64619e46939c320487531602a3 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | microquake/core/util/serializer.py | jeanphilippemercier/microquake | 0b9d07be11eddd64619e46939c320487531602a3 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | microquake/core/util/serializer.py | jeanphilippemercier/microquake | 0b9d07be11eddd64619e46939c320487531602a3 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | # -*- coding: utf-8 -*-
# ------------------------------------------------------------------
# Filename: serializer.py
# Purpose: utility to encode and decode object using base64
# Author: microquake development team
# Email: devs@microquake.org
#
# Copyright (C) 2016 microquake development team
# ---------------... | 24.7 | 71 | 0.644303 | 207 | 1,729 | 5.299517 | 0.400966 | 0.021878 | 0.068368 | 0.021878 | 0.032817 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025072 | 0.192597 | 1,729 | 69 | 72 | 25.057971 | 0.760745 | 0.574899 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 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 |
c206dd1683c68e7b830bfa0f06d12179fce5dca5 | 3,453 | py | Python | test_pyskyx.py | kbastronomics/pyskyx | e449983fd7e3779dc8028b6a50bd5bb0474fdf50 | [
"MIT"
] | 3 | 2018-10-04T18:46:09.000Z | 2020-06-01T15:53:57.000Z | test_pyskyx.py | kbastronomics/pyskyx | e449983fd7e3779dc8028b6a50bd5bb0474fdf50 | [
"MIT"
] | 1 | 2021-12-03T04:17:07.000Z | 2021-12-04T03:32:55.000Z | test_pyskyx.py | kbastronomics/pyskyx | e449983fd7e3779dc8028b6a50bd5bb0474fdf50 | [
"MIT"
] | 4 | 2017-06-06T18:07:21.000Z | 2021-07-27T17:02:33.000Z | ''' py.test tests for pyskyx
'''
import skyx
import pytest
@pytest.fixture
def skyxconn(skyxhost):
''' Fixture to set up a connection
Need to set the host explicitly here as py.test seems to call it
earlier and as a singleton we get the default host not the one
we want.
'''
co... | 28.53719 | 76 | 0.676803 | 366 | 3,453 | 6.319672 | 0.336066 | 0.054475 | 0.07955 | 0.100303 | 0.346304 | 0.303502 | 0.303502 | 0.303502 | 0.273238 | 0.202335 | 0 | 0.009205 | 0.213438 | 3,453 | 121 | 77 | 28.53719 | 0.842415 | 0.310165 | 0 | 0.178571 | 0 | 0 | 0.056725 | 0.033852 | 0 | 0 | 0 | 0 | 0.303571 | 1 | 0.339286 | false | 0.017857 | 0.035714 | 0 | 0.392857 | 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 |
c2136f2d3b2ef70ca88cf3ef4cd0dd6f5c4fc0b2 | 7,086 | py | Python | conpaas-services/scripts/create_vm/squeeze-vm/resize-scripts/rm-unused-pkgs.py | bopopescu/conpaas-1 | cea3c02f499a729464697de7cf98c2041febc0ab | [
"BSD-3-Clause"
] | 1 | 2015-08-03T03:57:06.000Z | 2015-08-03T03:57:06.000Z | conpaas-services/scripts/create_vm/squeeze-vm/resize-scripts/rm-unused-pkgs.py | bopopescu/conpaas-1 | cea3c02f499a729464697de7cf98c2041febc0ab | [
"BSD-3-Clause"
] | null | null | null | conpaas-services/scripts/create_vm/squeeze-vm/resize-scripts/rm-unused-pkgs.py | bopopescu/conpaas-1 | cea3c02f499a729464697de7cf98c2041febc0ab | [
"BSD-3-Clause"
] | 2 | 2017-05-27T09:07:53.000Z | 2020-07-26T03:15:55.000Z | #!/usr/bin/python
from subprocess import Popen
from subprocess import PIPE
import re
import sys
# Define which are the 'root' packages (form
# which the dependency analysis starts)
debian_pkgs = ['linux-image-2.6.32-5-xen-amd64', 'linux-image-2.6.32-5-amd64',
'initramfs-tools', 'bash', 'apt', 'apt-u... | 31.493333 | 166 | 0.63195 | 971 | 7,086 | 4.477858 | 0.283213 | 0.041398 | 0.028979 | 0.033119 | 0.207222 | 0.170883 | 0.097746 | 0.097746 | 0.067157 | 0.054738 | 0 | 0.015879 | 0.209004 | 7,086 | 224 | 167 | 31.633929 | 0.759857 | 0.089896 | 0 | 0.16129 | 0 | 0.012903 | 0.324568 | 0.02754 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025806 | null | null | 0.070968 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c216d43f4bb23db25010e844433312ae4a2e8bc5 | 1,261 | py | Python | record.py | emem1/modubot | 3bbfd203c5010f07b213595df1cb671156f5736c | [
"MIT"
] | null | null | null | record.py | emem1/modubot | 3bbfd203c5010f07b213595df1cb671156f5736c | [
"MIT"
] | null | null | null | record.py | emem1/modubot | 3bbfd203c5010f07b213595df1cb671156f5736c | [
"MIT"
] | 1 | 2019-05-30T01:27:16.000Z | 2019-05-30T01:27:16.000Z | from pyax12.connection import Connection
from pyax12.instruction_packet import InstructionPacket
import time
#initialise serial port S0
serial_connection = Connection(port="/dev/ttyS0", baudrate=1000000, rpi_gpio=True)
#scanning daisy chain and storing ID numbers in array
ids = serial_connection.scan()
#disable torq... | 23.351852 | 82 | 0.666138 | 181 | 1,261 | 4.552486 | 0.414365 | 0.097087 | 0.033981 | 0.048544 | 0.050971 | 0.050971 | 0 | 0 | 0 | 0 | 0 | 0.046296 | 0.229183 | 1,261 | 53 | 83 | 23.792453 | 0.80144 | 0.112609 | 0 | 0.222222 | 0 | 0 | 0.016158 | 0 | 0 | 0 | 0.010772 | 0 | 0 | 1 | 0.027778 | false | 0.055556 | 0.083333 | 0 | 0.111111 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c229a4ae325414ceefa5ba86d776c45c4835da4f | 1,071 | py | Python | setup.py | DEV3L/python-package-archetype | 96e77be33a18926931cbe4bebd8bc7c67481c558 | [
"MIT"
] | 3 | 2018-01-10T12:41:42.000Z | 2021-08-19T01:58:51.000Z | setup.py | DEV3L/python-package-archetype | 96e77be33a18926931cbe4bebd8bc7c67481c558 | [
"MIT"
] | null | null | null | setup.py | DEV3L/python-package-archetype | 96e77be33a18926931cbe4bebd8bc7c67481c558 | [
"MIT"
] | 6 | 2017-10-19T19:36:17.000Z | 2020-09-27T04:39:29.000Z | from setuptools import setup, find_packages
setup(
name='package_archetype',
packages=find_packages(),
version='0.4',
description='A simple lib that prints out hello world',
author='Justin Beall',
author_email='jus.beall@gmail.com',
url='https://github.com/DEV3L/python-package-archetype',
... | 35.7 | 81 | 0.635854 | 112 | 1,071 | 5.964286 | 0.616071 | 0.095808 | 0.112275 | 0.050898 | 0.131737 | 0.131737 | 0.131737 | 0.131737 | 0 | 0 | 0 | 0.014423 | 0.223156 | 1,071 | 29 | 82 | 36.931034 | 0.788462 | 0.016807 | 0 | 0 | 0 | 0 | 0.570885 | 0.044719 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.035714 | 0 | 0.035714 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c22daf4b6179eddf556974c44c8fe108c3702339 | 440 | py | Python | jobmodel/management/commands/crawl.py | cs02433/job-listings | 6892f563f315f0309ca58e9d881d5203212a63c5 | [
"MIT"
] | null | null | null | jobmodel/management/commands/crawl.py | cs02433/job-listings | 6892f563f315f0309ca58e9d881d5203212a63c5 | [
"MIT"
] | null | null | null | jobmodel/management/commands/crawl.py | cs02433/job-listings | 6892f563f315f0309ca58e9d881d5203212a63c5 | [
"MIT"
] | null | null | null | from django.core.management.base import BaseCommand
from scraper.scraper.spiders.job_site_bot import JobSiteBotSpider
from scrapy.crawler import CrawlerProcess
from scrapy.utils.project import get_project_settings
class Command(BaseCommand):
help = "Release the spiders"
def handle(self, *args, **options):
... | 29.333333 | 65 | 0.768182 | 51 | 440 | 6.509804 | 0.647059 | 0.060241 | 0.108434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154545 | 440 | 14 | 66 | 31.428571 | 0.892473 | 0 | 0 | 0 | 0 | 0 | 0.043182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c235993f371cd28602f7e7ac0a14b6ae5bdb8cca | 5,807 | py | Python | example/wasm/expr.py | bugengine/sly | 666bf0f76d0ae4713455a3d54ba019c584c5abb3 | [
"BSD-3-Clause"
] | 627 | 2016-09-14T21:04:47.000Z | 2022-03-27T22:22:43.000Z | example/wasm/expr.py | bugengine/sly | 666bf0f76d0ae4713455a3d54ba019c584c5abb3 | [
"BSD-3-Clause"
] | 84 | 2017-02-09T13:01:22.000Z | 2022-03-31T03:08:53.000Z | example/wasm/expr.py | bugengine/sly | 666bf0f76d0ae4713455a3d54ba019c584c5abb3 | [
"BSD-3-Clause"
] | 90 | 2017-02-16T03:48:43.000Z | 2022-03-28T19:26:13.000Z | # -----------------------------------------------------------------------------
# expr.py
#
# Proof-of-concept encoding of functions/expressions into Wasm.
#
# This file implements a mini-language for writing Wasm functions as expressions.
# It only supports integers.
#
# Here's a few examples:
#
# # Some basic functio... | 23.605691 | 93 | 0.531944 | 746 | 5,807 | 4.057641 | 0.24933 | 0.047902 | 0.083251 | 0.105715 | 0.345887 | 0.333333 | 0.298646 | 0.242815 | 0.094483 | 0.094483 | 0 | 0.010384 | 0.286895 | 5,807 | 245 | 94 | 23.702041 | 0.720599 | 0.224557 | 0 | 0.282895 | 0 | 0 | 0.144237 | 0.004943 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0.039474 | 0.026316 | 0.019737 | 0.421053 | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c2388fbc871f11b4ae586d7d67207fd6cbf644e7 | 980 | py | Python | client_rpi.py | adrianoff/arduino_car | 44500d3b36487bcf10e541546a41ec540b9880b2 | [
"MIT"
] | null | null | null | client_rpi.py | adrianoff/arduino_car | 44500d3b36487bcf10e541546a41ec540b9880b2 | [
"MIT"
] | null | null | null | client_rpi.py | adrianoff/arduino_car | 44500d3b36487bcf10e541546a41ec540b9880b2 | [
"MIT"
] | null | null | null | import RPi.GPIO as GPIO
import time
import socket
GPIO.setmode(GPIO.BOARD)
GPIO.setup(7, GPIO.OUT)
GPIO.setup(11, GPIO.OUT)
GPIO.setup(13, GPIO.OUT)
GPIO.setup(15, GPIO.OUT)
sock = socket.socket()
sock.connect(('coder-life.ru', 9999))
sock.send("HELLO".encode())
sleep_time = 0.04
while True:
data = sock.recv(1)
... | 20.416667 | 37 | 0.607143 | 151 | 980 | 3.907285 | 0.278146 | 0.20339 | 0.09322 | 0.115254 | 0.437288 | 0.305085 | 0.244068 | 0.244068 | 0 | 0 | 0 | 0.048 | 0.234694 | 980 | 47 | 38 | 20.851064 | 0.738667 | 0 | 0 | 0.324324 | 0 | 0 | 0.022449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.081081 | 0 | 0.081081 | 0.027027 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c2398b0268063fb1417632168b91819fc7d2c15b | 6,971 | py | Python | bfs_play.py | PiperLiu/Amazing-Brick-DFS-and-DRL | 40bc09019d4ebd35fb2152ee101d3b482175e71b | [
"MIT"
] | 26 | 2020-05-07T12:01:29.000Z | 2022-02-15T12:02:43.000Z | bfs_play.py | PiperLiu/Amazing-Brick-DFS-and-DRL | 40bc09019d4ebd35fb2152ee101d3b482175e71b | [
"MIT"
] | 1 | 2021-06-18T01:32:17.000Z | 2021-06-18T02:01:52.000Z | bfs_play.py | PiperLiu/Amazing-Brick-DFS-and-DRL | 40bc09019d4ebd35fb2152ee101d3b482175e71b | [
"MIT"
] | 5 | 2020-07-04T11:33:25.000Z | 2021-11-30T17:32:55.000Z | import os.path as osp
import sys
dirname = osp.dirname(__file__)
sys.path.append(dirname)
import pygame
import numpy as np
import time
from amazing_brick.game.wrapped_amazing_brick import \
GameState, SCREEN
from collections import namedtuple
from queue import Queue
import argparse
parser = argparse.ArgumentP... | 38.513812 | 152 | 0.592741 | 946 | 6,971 | 4.147992 | 0.131078 | 0.188073 | 0.237003 | 0.077982 | 0.611876 | 0.566004 | 0.536442 | 0.506881 | 0.490571 | 0.488532 | 0 | 0.018842 | 0.276718 | 6,971 | 180 | 153 | 38.727778 | 0.759421 | 0.017645 | 0 | 0.41875 | 0 | 0 | 0.029811 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.05625 | 0 | 0.1375 | 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 |
c23d7e29d1d20db11af27fa47d68cc0f9ff02c21 | 2,039 | py | Python | test_compress.py | rylans/text-compression-english | 8734ab462bda879852ee82bd93f36086aefdfa83 | [
"Apache-2.0"
] | null | null | null | test_compress.py | rylans/text-compression-english | 8734ab462bda879852ee82bd93f36086aefdfa83 | [
"Apache-2.0"
] | null | null | null | test_compress.py | rylans/text-compression-english | 8734ab462bda879852ee82bd93f36086aefdfa83 | [
"Apache-2.0"
] | null | null | null | """
test compress
"""
import unittest
from compress import Compress
class TestCompress(unittest.TestCase):
def setUp(self):
self.c = Compress()
def test_encode_word_the(self):
enc = self.c.encode_symbol('the')
binary = int(enc, 2)
self.assertEquals(binary, 19)
def test_e... | 27.554054 | 59 | 0.607651 | 279 | 2,039 | 4.286738 | 0.243728 | 0.06689 | 0.130435 | 0.140468 | 0.56689 | 0.536789 | 0.396321 | 0.162207 | 0.162207 | 0.162207 | 0 | 0.033019 | 0.272192 | 2,039 | 73 | 60 | 27.931507 | 0.772911 | 0 | 0 | 0.309091 | 0 | 0 | 0.072844 | 0 | 0 | 0 | 0 | 0 | 0.218182 | 0 | null | null | 0 | 0.036364 | 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 |
c23fff1f7261d76d2de438da83de99572f98e814 | 508 | py | Python | app/__init__.py | luqee/politico-api | f388f830efc3ecae7aeb9b3bd794135dd69731f7 | [
"MIT"
] | null | null | null | app/__init__.py | luqee/politico-api | f388f830efc3ecae7aeb9b3bd794135dd69731f7 | [
"MIT"
] | null | null | null | app/__init__.py | luqee/politico-api | f388f830efc3ecae7aeb9b3bd794135dd69731f7 | [
"MIT"
] | null | null | null | from flask import Flask
from instance.config import app_config
from app.api.v1.politico import Politico
politico = Politico()
def create_app(config_name):
''' Factory method to create app '''
app = Flask('__name__')
app.config.from_object(app_config[config_name])
from app.api.v1.blueprints import auth... | 29.882353 | 60 | 0.767717 | 69 | 508 | 5.42029 | 0.362319 | 0.096257 | 0.160428 | 0.064171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004608 | 0.145669 | 508 | 16 | 61 | 31.75 | 0.857143 | 0.055118 | 0 | 0 | 0 | 0 | 0.016949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.5 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c24257c6647cc2af2cef5a91828f82d7250350ac | 7,455 | py | Python | unit_tests_keras/test_keras_model.py | galsh17/cartwheel_train | a50abe18cfe8c1f0f24267c3efa8537ecf211e72 | [
"MIT"
] | 32 | 2018-09-04T08:51:08.000Z | 2022-02-22T02:04:38.000Z | unit_tests_keras/test_keras_model.py | galsh17/cartwheel_train | a50abe18cfe8c1f0f24267c3efa8537ecf211e72 | [
"MIT"
] | 5 | 2019-05-27T07:54:52.000Z | 2022-01-11T10:14:25.000Z | unit_tests_keras/test_keras_model.py | galsh17/cartwheel_train | a50abe18cfe8c1f0f24267c3efa8537ecf211e72 | [
"MIT"
] | 14 | 2018-06-22T15:29:39.000Z | 2021-09-28T12:58:37.000Z | """
Inspect's a trained model from keras
"""
# import tensorflow as tf
from keras import backend as K
from keras.engine.topology import Layer
import keras
import code
import numpy as np
import time
import cv2
# Keras CUstom Implementation
from CustomNets import NetVLADLayer
# from CustomNets import make_vgg, mak... | 32.413043 | 143 | 0.628437 | 1,052 | 7,455 | 4.234791 | 0.223384 | 0.032323 | 0.035915 | 0.034568 | 0.54119 | 0.524804 | 0.504602 | 0.480135 | 0.459708 | 0.382492 | 0 | 0.037203 | 0.221194 | 7,455 | 229 | 144 | 32.554585 | 0.730107 | 0.305969 | 0 | 0.231481 | 0 | 0 | 0.109462 | 0.061362 | 0 | 0 | 0 | 0.004367 | 0 | 0 | null | null | 0 | 0.138889 | null | null | 0.101852 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c248a3bcdd8d61932a55a9f83d2d10903ec3134a | 969 | py | Python | bluebottle/bb_projects/migrations/0003_auto_20160815_1658.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 10 | 2015-05-28T18:26:40.000Z | 2021-09-06T10:07:03.000Z | bluebottle/bb_projects/migrations/0003_auto_20160815_1658.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 762 | 2015-01-15T10:00:59.000Z | 2022-03-31T15:35:14.000Z | bluebottle/bb_projects/migrations/0003_auto_20160815_1658.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 9 | 2015-02-20T13:19:30.000Z | 2022-03-08T14:09:17.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-08-15 14:58
from __future__ import unicode_literals
from django.db import migrations
def update_status_names(apps, schema_editor):
ProjectPhase = apps.get_model('bb_projects', 'ProjectPhase')
updates = {
'plan-new': 'Plan - Draft',
... | 24.846154 | 64 | 0.616099 | 103 | 969 | 5.61165 | 0.679612 | 0.041522 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02805 | 0.26419 | 969 | 38 | 65 | 25.5 | 0.782609 | 0.069143 | 0 | 0 | 1 | 0 | 0.243604 | 0.035595 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0.038462 | 0.076923 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c249fd883c477c7ff641a0eeedfdd876f1d46deb | 959 | py | Python | supply/__init__.py | Santadd/storesgha-ksi | b205b6b14d87e3ed799992e276a2ad6eaae160f6 | [
"MIT"
] | null | null | null | supply/__init__.py | Santadd/storesgha-ksi | b205b6b14d87e3ed799992e276a2ad6eaae160f6 | [
"MIT"
] | null | null | null | supply/__init__.py | Santadd/storesgha-ksi | b205b6b14d87e3ed799992e276a2ad6eaae160f6 | [
"MIT"
] | null | null | null | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_bcrypt import Bcrypt
from flask_login import LoginManager
from flask_mail import Mail
from supply.config import Config
login_manager = LoginManager()
login_manager.login_view = 'users.login'
login_manager.log... | 23.975 | 48 | 0.766423 | 133 | 959 | 5.323308 | 0.278195 | 0.076271 | 0.070621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161627 | 959 | 40 | 49 | 23.975 | 0.880597 | 0.051095 | 0 | 0 | 0 | 0 | 0.019802 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.344828 | 0 | 0.413793 | 0.103448 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c24c2ac2d96329528513f6012420a6d489182d8e | 7,785 | py | Python | test/test_spec.py | chen3feng/pywasm | 2f5544bfcc9c2fa99332ca61a22b56f1d426c9ef | [
"MIT"
] | 337 | 2019-01-22T10:07:54.000Z | 2022-03-21T05:49:40.000Z | test/test_spec.py | marat1961/pywasm | efcbf580808dc5a4ce741e4b84434cc3aa56f02d | [
"MIT"
] | 20 | 2019-02-23T04:16:26.000Z | 2021-07-03T14:08:46.000Z | test/test_spec.py | marat1961/pywasm | efcbf580808dc5a4ce741e4b84434cc3aa56f02d | [
"MIT"
] | 37 | 2019-02-22T02:15:30.000Z | 2022-02-26T16:02:55.000Z | import json
import math
import os
import typing
import pywasm
num = pywasm.num
def parse_val(m):
if m['type'] == 'i32':
return pywasm.Value.from_i32(num.int2i32(int(m['value'])))
if m['type'] == 'i64':
return pywasm.Value.from_i64(num.int2i64(int(m['value'])))
if m['type'] == 'f32':
... | 36.378505 | 186 | 0.582274 | 930 | 7,785 | 4.768817 | 0.186022 | 0.102593 | 0.219842 | 0.02841 | 0.389402 | 0.300338 | 0.242616 | 0.185795 | 0.185795 | 0.176776 | 0 | 0.025223 | 0.251381 | 7,785 | 213 | 187 | 36.549296 | 0.735758 | 0.027489 | 0 | 0.229592 | 0 | 0 | 0.266121 | 0.160677 | 0 | 0 | 0 | 0.004695 | 0.102041 | 1 | 0.020408 | false | 0 | 0.040816 | 0 | 0.142857 | 0.020408 | 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 |
df96db42d010399668a00e5c5d1f401d398724e6 | 28,400 | py | Python | digsby/src/gui/status.py | ifwe/digsby | f5fe00244744aa131e07f09348d10563f3d8fa99 | [
"Python-2.0"
] | 35 | 2015-08-15T14:32:38.000Z | 2021-12-09T16:21:26.000Z | digsby/src/gui/status.py | niterain/digsby | 16a62c7df1018a49eaa8151c0f8b881c7e252949 | [
"Python-2.0"
] | 4 | 2015-09-12T10:42:57.000Z | 2017-02-27T04:05:51.000Z | digsby/src/gui/status.py | niterain/digsby | 16a62c7df1018a49eaa8151c0f8b881c7e252949 | [
"Python-2.0"
] | 15 | 2015-07-10T23:58:07.000Z | 2022-01-23T22:16:33.000Z | '''
status message editing GUI
'''
from __future__ import with_statement
from gui.uberwidgets.formattedinput2.formatprefsmixin import StyleFromPref
import wx, sys
from wx import BoxSizer, EXPAND, ALL, LEFT, RIGHT, BOTTOM, TOP
from gui.toolbox import build_button_sizer
from gui import skin
from common.s... | 34.340992 | 135 | 0.606514 | 3,312 | 28,400 | 5.054952 | 0.162742 | 0.037272 | 0.016724 | 0.010154 | 0.176024 | 0.115518 | 0.088341 | 0.067435 | 0.049576 | 0.042528 | 0 | 0.007761 | 0.296761 | 28,400 | 826 | 136 | 34.382567 | 0.830513 | 0.066937 | 0 | 0.195531 | 0 | 0 | 0.047937 | 0.003241 | 0 | 0 | 0 | 0 | 0.001862 | 0 | null | null | 0 | 0.040968 | null | null | 0.005587 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
df99c13aeaa150c23b19d339761a9b60e612b8ba | 376 | py | Python | store/migrations/0004_auto_20200526_1300.py | sabint017/ecommerce | 0a2095d7e47646d0ef9d8474b976c1404ff1a67c | [
"BSD-3-Clause"
] | null | null | null | store/migrations/0004_auto_20200526_1300.py | sabint017/ecommerce | 0a2095d7e47646d0ef9d8474b976c1404ff1a67c | [
"BSD-3-Clause"
] | null | null | null | store/migrations/0004_auto_20200526_1300.py | sabint017/ecommerce | 0a2095d7e47646d0ef9d8474b976c1404ff1a67c | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 3.0.6 on 2020-05-26 07:15
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('store', '0003_auto_20200525_1420'),
]
operations = [
migrations.RenameField(
model_name='order',
old_name='transastion_id',
... | 19.789474 | 47 | 0.598404 | 41 | 376 | 5.292683 | 0.829268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116541 | 0.292553 | 376 | 18 | 48 | 20.888889 | 0.699248 | 0.119681 | 0 | 0 | 1 | 0 | 0.18541 | 0.069909 | 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 |
dfa326fbb913717cc1350ffbff6b84f7045e98e1 | 452 | py | Python | solutions/Reverse String II/solution.py | nilax97/leetcode-solutions | d3c12f2b289662d199510e0431e177bbf3cda121 | [
"MIT"
] | 3 | 2021-06-06T22:03:15.000Z | 2021-06-08T08:49:04.000Z | solutions/Reverse String II/solution.py | nilax97/leetcode-solutions | d3c12f2b289662d199510e0431e177bbf3cda121 | [
"MIT"
] | null | null | null | solutions/Reverse String II/solution.py | nilax97/leetcode-solutions | d3c12f2b289662d199510e0431e177bbf3cda121 | [
"MIT"
] | null | null | null | class Solution:
def reverseStr(self, s: str, k: int) -> str:
ans = []
count = 0
while(True):
start = count * k
end = min((count + 1) * k,len(s))
if start >= len(s):
break
if count % 2 == 0:
ans.append(s[start:end... | 26.588235 | 48 | 0.380531 | 51 | 452 | 3.372549 | 0.509804 | 0.069767 | 0.116279 | 0.174419 | 0.209302 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025532 | 0.480089 | 452 | 16 | 49 | 28.25 | 0.706383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dfa6b464e8447875463cd95ec947d23369cf47ad | 336 | py | Python | pairsubs/migrations/0004_auto_20180729_2000.py | zserg/django-pairsubs | 15b53898b94fcc4362851cb26eaca45dd7b46211 | [
"MIT"
] | 2 | 2019-02-24T09:53:13.000Z | 2019-06-01T19:59:05.000Z | pairsubs/migrations/0004_auto_20180729_2000.py | zserg/django-pairsubs | 15b53898b94fcc4362851cb26eaca45dd7b46211 | [
"MIT"
] | null | null | null | pairsubs/migrations/0004_auto_20180729_2000.py | zserg/django-pairsubs | 15b53898b94fcc4362851cb26eaca45dd7b46211 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.7 on 2018-07-29 20:00
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('pairsubs', '0003_auto_20180707_0858'),
]
operations = [
migrations.RenameModel(
old_name='SubPair',
new_name='PairOfSubs',
... | 18.666667 | 48 | 0.60119 | 36 | 336 | 5.472222 | 0.861111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129707 | 0.28869 | 336 | 17 | 49 | 19.764706 | 0.694561 | 0.133929 | 0 | 0 | 1 | 0 | 0.16609 | 0.079585 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dfab26089a5f2ac4ab67d6d7709f08bc630d4d7a | 4,624 | py | Python | script.py | obfuscurity/arigato | 4f9a8b7612278d0cfd9688977c90363f15fcb2fe | [
"MIT"
] | 1 | 2015-06-23T19:53:25.000Z | 2015-06-23T19:53:25.000Z | script.py | obfuscurity/arigato | 4f9a8b7612278d0cfd9688977c90363f15fcb2fe | [
"MIT"
] | null | null | null | script.py | obfuscurity/arigato | 4f9a8b7612278d0cfd9688977c90363f15fcb2fe | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__license__ = """\
Copyright (c) 2014 Jason Dixon <jdixon@librato.com>
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice ... | 34.766917 | 76 | 0.590614 | 540 | 4,624 | 4.996296 | 0.418519 | 0.047443 | 0.025204 | 0.018903 | 0.021127 | 0.021127 | 0.021127 | 0.021127 | 0.021127 | 0 | 0 | 0.012889 | 0.312067 | 4,624 | 132 | 77 | 35.030303 | 0.835272 | 0.10878 | 0 | 0.076087 | 0 | 0 | 0.367844 | 0.043118 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.086957 | null | null | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dfb54476d7c49963aa2a938bc189a759021dc9bb | 4,894 | py | Python | bcache_stats.py | taoyunxing/github_test | ecba62d2445d95c5c30d003b33a42eae9acde699 | [
"MIT"
] | null | null | null | bcache_stats.py | taoyunxing/github_test | ecba62d2445d95c5c30d003b33a42eae9acde699 | [
"MIT"
] | null | null | null | bcache_stats.py | taoyunxing/github_test | ecba62d2445d95c5c30d003b33a42eae9acde699 | [
"MIT"
] | 1 | 2018-09-11T10:27:03.000Z | 2018-09-11T10:27:03.000Z | #!/usr/bin/env python
import os
import sys
import time
import socket
SYSFS_BCACHE_PATH = '/sys/fs/bcache/'
def file_to_lines(fname):
try:
with open(fname, "r") as fd:
return fd.readlines()
except:
return []
def file_to_line(fname):
ret = file_to_lines(fname)
if ret:
... | 36.522388 | 133 | 0.625255 | 670 | 4,894 | 4.310448 | 0.189552 | 0.033241 | 0.072715 | 0.090028 | 0.472992 | 0.369114 | 0.364612 | 0.344529 | 0.309211 | 0.1991 | 0 | 0.009321 | 0.232734 | 4,894 | 133 | 134 | 36.796992 | 0.759787 | 0.050266 | 0 | 0.115385 | 0 | 0 | 0.1799 | 0.138351 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.048077 | 0.038462 | null | null | 0.115385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dfb8d4d0f7b9d81a1aa7b010ae3b8ffdbaddadbf | 11,238 | py | Python | openapi_client/models/common_runtime_resource.py | hi-artem/twistlock-py | 9888e905f5b9d3cc00f9b84244588c0992f8e4f4 | [
"RSA-MD"
] | null | null | null | openapi_client/models/common_runtime_resource.py | hi-artem/twistlock-py | 9888e905f5b9d3cc00f9b84244588c0992f8e4f4 | [
"RSA-MD"
] | null | null | null | openapi_client/models/common_runtime_resource.py | hi-artem/twistlock-py | 9888e905f5b9d3cc00f9b84244588c0992f8e4f4 | [
"RSA-MD"
] | null | null | null | # coding: utf-8
"""
Prisma Cloud Compute API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 21.04.439
Generated by: https://openapi-generator.tech
"""
try:
from inspect import getfulla... | 29.11399 | 220 | 0.595569 | 1,238 | 11,238 | 5.29483 | 0.11874 | 0.064683 | 0.16476 | 0.141876 | 0.464989 | 0.37315 | 0.312281 | 0.174523 | 0.099466 | 0.099466 | 0 | 0.022447 | 0.314202 | 11,238 | 385 | 221 | 29.18961 | 0.828078 | 0.394999 | 0 | 0.101796 | 1 | 0 | 0.05966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.161677 | false | 0 | 0.041916 | 0 | 0.341317 | 0.011976 | 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 |
dfc4531bdd1c2b9c611bdd2392240b4887a308ef | 1,235 | py | Python | menus/context_menu.py | gbkim000/wxPython | b1604d71cf04801f9efa8b26b935561a88ef1daa | [
"BSD-2-Clause"
] | 80 | 2018-05-25T00:37:25.000Z | 2022-03-13T12:31:02.000Z | menus/context_menu.py | gbkim000/wxPython | b1604d71cf04801f9efa8b26b935561a88ef1daa | [
"BSD-2-Clause"
] | 1 | 2021-01-08T20:22:52.000Z | 2021-01-08T20:22:52.000Z | menus/context_menu.py | gbkim000/wxPython | b1604d71cf04801f9efa8b26b935561a88ef1daa | [
"BSD-2-Clause"
] | 32 | 2018-05-24T05:40:55.000Z | 2022-03-24T00:32:11.000Z | #!/usr/bin/python
"""
ZetCode wxPython tutorial
In this example, we create a context menu.
author: Jan Bodnar
website: www.zetcode.com
last modified: April 2018
"""
import wx
class MyPopupMenu(wx.Menu):
def __init__(self, parent):
super(MyPopupMenu, self).__init__()
self.parent = parent
... | 18.432836 | 58 | 0.610526 | 156 | 1,235 | 4.653846 | 0.435897 | 0.055096 | 0.041322 | 0.053719 | 0.115702 | 0.057851 | 0 | 0 | 0 | 0 | 0 | 0.010753 | 0.246964 | 1,235 | 66 | 59 | 18.712121 | 0.769892 | 0.127126 | 0 | 0 | 0 | 0 | 0.030841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212121 | false | 0 | 0.030303 | 0 | 0.30303 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dfc46c0b53f01d03f4ec3b0ea88bd4edecfd3d40 | 422 | py | Python | disdata/migrations/0026_district_density.py | biswajitpatra/KB198_TechOverflow | cb1dc1c080db792c2a9d7723c67ca7ca0e8baae9 | [
"MIT"
] | 2 | 2020-09-01T18:17:30.000Z | 2020-09-03T09:04:53.000Z | disdata/migrations/0026_district_density.py | biswajitpatra/KB198_TechOverflow | cb1dc1c080db792c2a9d7723c67ca7ca0e8baae9 | [
"MIT"
] | 3 | 2021-04-04T15:41:27.000Z | 2021-06-10T18:24:08.000Z | disdata/migrations/0026_district_density.py | biswajitpatra/KB198_TechOverflow | cb1dc1c080db792c2a9d7723c67ca7ca0e8baae9 | [
"MIT"
] | 2 | 2021-04-04T15:04:05.000Z | 2021-11-15T02:58:47.000Z | # Generated by Django 3.0.7 on 2020-07-24 13:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('disdata', '0025_auto_20200723_1251'),
]
operations = [
migrations.AddField(
model_name='district',
name='density',
... | 21.1 | 49 | 0.597156 | 44 | 422 | 5.613636 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107383 | 0.293839 | 422 | 19 | 50 | 22.210526 | 0.721477 | 0.106635 | 0 | 0 | 1 | 0 | 0.12 | 0.061333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dfc99a73018c8d284407a324e956650e06f02d06 | 5,145 | py | Python | test/test_apply_channel.py | NVlabs/sionna | 488e6c3ff6ff2b3313d0ca0f94e4247b8dd6ff35 | [
"Apache-2.0"
] | 163 | 2022-03-22T19:47:47.000Z | 2022-03-31T23:56:45.000Z | test/test_apply_channel.py | Maryammhsnv/sionna | 527d0f7866b379afffad34a6bef7ed3bf6f33ad2 | [
"Apache-2.0"
] | 2 | 2022-03-24T12:43:07.000Z | 2022-03-29T07:17:16.000Z | test/test_apply_channel.py | Maryammhsnv/sionna | 527d0f7866b379afffad34a6bef7ed3bf6f33ad2 | [
"Apache-2.0"
] | 19 | 2022-03-23T02:31:22.000Z | 2022-03-30T06:35:12.000Z | #
# SPDX-FileCopyrightText: Copyright (c) 2021-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
try:
import sionna
except ImportError as e:
import sys
sys.path.append("../")
from sionna.channel import ApplyTimeChannel, ApplyOFDMChannel
import pytest
impor... | 41.829268 | 103 | 0.408163 | 542 | 5,145 | 3.595941 | 0.223247 | 0.051308 | 0.041047 | 0.043099 | 0.481786 | 0.434582 | 0.424833 | 0.421755 | 0.410467 | 0.410467 | 0 | 0.026063 | 0.515258 | 5,145 | 122 | 104 | 42.172131 | 0.755413 | 0.032264 | 0 | 0.504505 | 0 | 0 | 0.01106 | 0 | 0 | 0 | 0 | 0 | 0.036036 | 1 | 0.018018 | false | 0 | 0.072072 | 0 | 0.108108 | 0.027027 | 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 |
dfccb5738f688a8a605496ac664017bee03637f2 | 2,647 | py | Python | biox/biox/report/monthly_flow_summary/monthly_flow_summary.py | satishvijayan/biox | 18fadbcb8131d5df0e29a7f6ceaaacd5f5d8c844 | [
"MIT"
] | 2 | 2021-01-19T18:17:48.000Z | 2021-07-05T11:33:17.000Z | biox/biox/report/monthly_flow_summary/monthly_flow_summary.py | satishvijayan/biox | 18fadbcb8131d5df0e29a7f6ceaaacd5f5d8c844 | [
"MIT"
] | null | null | null | biox/biox/report/monthly_flow_summary/monthly_flow_summary.py | satishvijayan/biox | 18fadbcb8131d5df0e29a7f6ceaaacd5f5d8c844 | [
"MIT"
] | 1 | 2021-07-05T11:33:18.000Z | 2021-07-05T11:33:18.000Z | # Copyright (c) 2013, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
# Satish Vijayan 6/3/21
# https://github.com/pradeshc/erpnext/blob/client_statement/erpnext/accounts/report/client_statement/client_statement.py
# https://discuss.erpnext.com/t/script-report-adding-col... | 28.462366 | 120 | 0.665281 | 339 | 2,647 | 4.967552 | 0.371681 | 0.039192 | 0.067696 | 0.035629 | 0.204276 | 0.124703 | 0.124703 | 0.046318 | 0.046318 | 0 | 0 | 0.020804 | 0.182849 | 2,647 | 93 | 121 | 28.462366 | 0.757744 | 0.140159 | 0 | 0.131579 | 0 | 0.013158 | 0.605286 | 0.218062 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039474 | false | 0 | 0.052632 | 0.013158 | 0.144737 | 0.039474 | 0 | 0 | 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 |
dfd0c5ebe9fa5867a7caf73098b82b88ed1acb8d | 130 | py | Python | Ch_5_Py Box_Module_Package_Program/5_5.py | brianchiang-tw/Introducing_Python | 557fcddb6329741a177d6ee1d24122b36e106235 | [
"MIT"
] | 1 | 2020-07-21T08:34:08.000Z | 2020-07-21T08:34:08.000Z | Ch_5_Py Box_Module_Package_Program/5_5.py | brianchiang-tw/Introducing_Python | 557fcddb6329741a177d6ee1d24122b36e106235 | [
"MIT"
] | null | null | null | Ch_5_Py Box_Module_Package_Program/5_5.py | brianchiang-tw/Introducing_Python | 557fcddb6329741a177d6ee1d24122b36e106235 | [
"MIT"
] | null | null | null |
plain = dict( )
plain['a'] = 1
plain['b'] = 2
plain['c'] = 3
# expected output:
'''
{'a': 1, 'b': 2, 'c': 3}
'''
print( plain ) | 10.833333 | 24 | 0.461538 | 21 | 130 | 2.857143 | 0.52381 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059406 | 0.223077 | 130 | 12 | 25 | 10.833333 | 0.534653 | 0.123077 | 0 | 0 | 0 | 0 | 0.0375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 |
dfd9f60e6e520a7a43f719e2103b70716aa17d0a | 2,792 | py | Python | examples/chat-with-serial.py | InstaMsg/instamsg-python | 016302427cc28a31a73547a1bcdaa55cd5a3c10f | [
"MIT"
] | null | null | null | examples/chat-with-serial.py | InstaMsg/instamsg-python | 016302427cc28a31a73547a1bcdaa55cd5a3c10f | [
"MIT"
] | null | null | null | examples/chat-with-serial.py | InstaMsg/instamsg-python | 016302427cc28a31a73547a1bcdaa55cd5a3c10f | [
"MIT"
] | null | null | null | import instamsg
import sys
import time
import serial
SER = None
ComPort =1
BaudRate =9600
Parity = serial.PARITY_NONE
ClientId = "Your InstaMsg client id"
AuthKey = "Your InstaMsg auth key"
def start(args):
instaMsg = None
global SER
try:
try:
options={'logLevel':instamsg.INSTAMSG_LOG_... | 27.372549 | 123 | 0.57808 | 309 | 2,792 | 5.038835 | 0.394822 | 0.032113 | 0.012845 | 0.016699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012295 | 0.30086 | 2,792 | 102 | 124 | 27.372549 | 0.785348 | 0.006447 | 0 | 0.218391 | 0 | 0 | 0.166125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.011494 | 0.045977 | null | null | 0.183908 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dfe765cc69f2ccfe5b5e55f240a168b3017a9ac4 | 553 | py | Python | management/commands/translate.py | null-none/django-translate-content | 314039654460ae161b39cf34254d3869c8a27c1f | [
"MIT"
] | 1 | 2019-04-22T06:03:05.000Z | 2019-04-22T06:03:05.000Z | management/commands/translate.py | null-none/django-translate-content | 314039654460ae161b39cf34254d3869c8a27c1f | [
"MIT"
] | null | null | null | management/commands/translate.py | null-none/django-translate-content | 314039654460ae161b39cf34254d3869c8a27c1f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.core.management.base import BaseCommand, CommandError
from django.conf import settings
from yandex_translate import YandexTranslate
from .models import Page
class Command(BaseCommand):
help = 'Translate content'
def handle(self, *args, **options):
translate = Y... | 29.105263 | 73 | 0.701627 | 63 | 553 | 6.111111 | 0.634921 | 0.051948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002237 | 0.191682 | 553 | 19 | 74 | 29.105263 | 0.85906 | 0.037975 | 0 | 0 | 0 | 0 | 0.09434 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.583333 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
dfeb67872a8aa36fca328c865ae2f7ad990834b8 | 21,952 | py | Python | Python/Code/Thermal_Models/models/base_model.py | mhasoba/TPCFitting | 29b5e32c2e830ab0a909034aa439fc4424617401 | [
"MIT"
] | null | null | null | Python/Code/Thermal_Models/models/base_model.py | mhasoba/TPCFitting | 29b5e32c2e830ab0a909034aa439fc4424617401 | [
"MIT"
] | null | null | null | Python/Code/Thermal_Models/models/base_model.py | mhasoba/TPCFitting | 29b5e32c2e830ab0a909034aa439fc4424617401 | [
"MIT"
] | 1 | 2019-03-14T11:46:08.000Z | 2019-03-14T11:46:08.000Z | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import logging
import re
from lmfit import Parameters, minimize, Minimizer, fit_report, conf_interval, printfuncs
class physiological_growth_model:
k = 8.62e-5 #Boltzmann constant
Tref = 273.15 #Reference temperature... | 44.983607 | 263 | 0.59211 | 2,926 | 21,952 | 4.226247 | 0.179084 | 0.013909 | 0.013828 | 0.009704 | 0.33026 | 0.275028 | 0.256914 | 0.234999 | 0.220605 | 0.220605 | 0 | 0.01583 | 0.300702 | 21,952 | 487 | 264 | 45.075975 | 0.789655 | 0.086689 | 0 | 0.257703 | 0 | 0.002801 | 0.085989 | 0 | 0 | 0 | 0 | 0 | 0.005602 | 0 | null | null | 0.008403 | 0.019608 | null | null | 0.011204 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dfec20ca9c917a1ee5872d3c585895d029e2542b | 5,674 | py | Python | src/onegov/wtfs/layouts/municipality.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | src/onegov/wtfs/layouts/municipality.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | src/onegov/wtfs/layouts/municipality.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | from cached_property import cached_property
from onegov.core.elements import Confirm
from onegov.core.elements import Intercooler
from onegov.core.elements import Link
from onegov.wtfs import _
from onegov.wtfs.layouts.default import DefaultLayout
from onegov.wtfs.security import AddModel
from onegov.wtfs.security impo... | 28.089109 | 70 | 0.529609 | 500 | 5,674 | 5.834 | 0.144 | 0.115187 | 0.128214 | 0.065135 | 0.740144 | 0.664724 | 0.618444 | 0.525883 | 0.492287 | 0.492287 | 0 | 0 | 0.369933 | 5,674 | 201 | 71 | 28.228856 | 0.815944 | 0 | 0 | 0.562874 | 0 | 0 | 0.078252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.131737 | false | 0 | 0.077844 | 0.11976 | 0.377246 | 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 |
dfece8822259bfefc700e358282a790389321bd5 | 1,670 | py | Python | api/users.py | YiSang665/fastapi-async-databases | f9041c5b607eefe9d266ab490190c3ace36b0e2f | [
"MIT"
] | null | null | null | api/users.py | YiSang665/fastapi-async-databases | f9041c5b607eefe9d266ab490190c3ace36b0e2f | [
"MIT"
] | null | null | null | api/users.py | YiSang665/fastapi-async-databases | f9041c5b607eefe9d266ab490190c3ace36b0e2f | [
"MIT"
] | null | null | null | from typing import List
from fastapi import APIRouter, HTTPException, status
from .database import db, User
from .schemas import UserSchemaIn, UserSchemaOut
from passlib.hash import pbkdf2_sha256
router = APIRouter(tags=["Users",])
@router.get('/users', response_model=List[UserSchemaOut],
status_code=status... | 37.954545 | 79 | 0.690419 | 222 | 1,670 | 5.036036 | 0.306306 | 0.035778 | 0.057245 | 0.071556 | 0.306798 | 0.169946 | 0.169946 | 0.169946 | 0.107335 | 0.107335 | 0 | 0.014652 | 0.182635 | 1,670 | 44 | 80 | 37.954545 | 0.804396 | 0 | 0 | 0.054054 | 0 | 0 | 0.041293 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.108108 | 0.135135 | 0 | 0.243243 | 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 |
dffc604df730d27885f4a1a8e4e543676b656454 | 558 | py | Python | Display/Pages/NewGameTablePage.py | nataliap13/PT-Warcaby | 3932352245e719bf649693f4341a765520563f11 | [
"MIT"
] | null | null | null | Display/Pages/NewGameTablePage.py | nataliap13/PT-Warcaby | 3932352245e719bf649693f4341a765520563f11 | [
"MIT"
] | null | null | null | Display/Pages/NewGameTablePage.py | nataliap13/PT-Warcaby | 3932352245e719bf649693f4341a765520563f11 | [
"MIT"
] | null | null | null | from selenium.webdriver.common.by import By
from Locators import Locator
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
class NewGameTable(object):
def __init__(self, driver):
self.driver = driver
self.NewGame = driver.f... | 24.26087 | 72 | 0.736559 | 68 | 558 | 5.897059 | 0.5 | 0.089776 | 0.157107 | 0.139651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006536 | 0.177419 | 558 | 22 | 73 | 25.363636 | 0.867102 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.583333 | 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 |
5f1e44b2b2c055b63ed9e0194041735c33c95868 | 1,011 | py | Python | student-work/jeff_beyer/week_2/homeless_api_testout.py | developerQuinnZ/this_will_work | 5587a9fd030b47f9df6514e45c887b6872d2a4a1 | [
"MIT"
] | null | null | null | student-work/jeff_beyer/week_2/homeless_api_testout.py | developerQuinnZ/this_will_work | 5587a9fd030b47f9df6514e45c887b6872d2a4a1 | [
"MIT"
] | null | null | null | student-work/jeff_beyer/week_2/homeless_api_testout.py | developerQuinnZ/this_will_work | 5587a9fd030b47f9df6514e45c887b6872d2a4a1 | [
"MIT"
] | null | null | null | import requests
# Initialize our yearly count dictionary
yearly_count = dict()
# Request data for the years 2008 - 2017
for year in range(2008, 2018):
# Generate the url
url = ('http://service.civicpdx.org/homeless/ethnicity/' +
f'?format=json&page=1&year={year}')
# Submit our request to the AP... | 33.7 | 78 | 0.673591 | 151 | 1,011 | 4.430464 | 0.437086 | 0.115097 | 0.058296 | 0.071749 | 0.104634 | 0.104634 | 0 | 0 | 0 | 0 | 0 | 0.033592 | 0.234421 | 1,011 | 30 | 79 | 33.7 | 0.830749 | 0.39367 | 0 | 0 | 1 | 0 | 0.288079 | 0.087748 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0.133333 | 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 |
5f2630275ea11fea9b4ac12c542e832a14720d6e | 2,924 | py | Python | app/api/base/base_name.py | LifeLaboratory/asi_lifelaboratory_backend | 8da15c239056ed8be09c7937776c77095d9b1dd6 | [
"MIT"
] | null | null | null | app/api/base/base_name.py | LifeLaboratory/asi_lifelaboratory_backend | 8da15c239056ed8be09c7937776c77095d9b1dd6 | [
"MIT"
] | null | null | null | app/api/base/base_name.py | LifeLaboratory/asi_lifelaboratory_backend | 8da15c239056ed8be09c7937776c77095d9b1dd6 | [
"MIT"
] | null | null | null | WARNING = "Warning"
ERROR = "Error"
OK = "Ok"
SUCCESS = "Success"
ANSWER = "Answer"
SESSION = 'session'
DESCRIPTION = "description"
TITLE = "title"
URL = "url"
PHOTO = "photo"
CARD = "card"
BUDGET = "budget"
DATA = "data"
COMPANY = "Company"
LOGIN = "login"
PASSWORD = "password"
TYPE = "type"
QUERY = "query"
FIELD = "... | 21.188406 | 66 | 0.728454 | 336 | 2,924 | 6.03869 | 0.407738 | 0.009857 | 0.01035 | 0.0276 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008193 | 0.165185 | 2,924 | 138 | 67 | 21.188406 | 0.823023 | 0.01197 | 0 | 0.015267 | 0 | 0 | 0.289127 | 0.039127 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.053435 | 0 | 0 | 0 | 0.007634 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5f372c00c7b45768052209a897c57300d2dfbc61 | 2,520 | py | Python | cuehmusicbot.py | Laurys2517/cueh-bot | 93fc17a8ede0d0ddbd99cdbb6a49828e1e4db1c8 | [
"MIT"
] | null | null | null | cuehmusicbot.py | Laurys2517/cueh-bot | 93fc17a8ede0d0ddbd99cdbb6a49828e1e4db1c8 | [
"MIT"
] | 3 | 2018-01-27T09:49:17.000Z | 2018-02-06T09:19:11.000Z | cuehmusicbot.py | Laurys2517/cueh-bot | 93fc17a8ede0d0ddbd99cdbb6a49828e1e4db1c8 | [
"MIT"
] | 2 | 2018-01-01T21:45:29.000Z | 2020-02-03T04:03:01.000Z | import discord
import settings
import datetime as DT
from discord.ext import commands
discord.opus.load_opus('libopus.0.dylib')
bot = commands.Bot(command_prefix=commands.when_mentioned_or('!'), description='Reproduce musica desde youtube')
class Cueh:
def __init__(self, bot):
self.bot = bot
self.... | 39.375 | 112 | 0.655159 | 337 | 2,520 | 4.768546 | 0.296736 | 0.074673 | 0.040448 | 0.062228 | 0.34972 | 0.333541 | 0.333541 | 0.333541 | 0.333541 | 0.333541 | 0 | 0.001031 | 0.230556 | 2,520 | 64 | 113 | 39.375 | 0.827746 | 0 | 0 | 0.283333 | 0 | 0 | 0.093614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016667 | false | 0.15 | 0.066667 | 0 | 0.1 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a025cf0f15dc1681c281ff27744cdd355bc0a953 | 761 | py | Python | setup.py | tillahoffmann/localscope | 3f757edadfa042cbbb90e98cddc2c242be74428b | [
"MIT"
] | 2 | 2020-11-01T20:18:47.000Z | 2021-05-15T21:08:33.000Z | setup.py | tillahoffmann/localscope | 3f757edadfa042cbbb90e98cddc2c242be74428b | [
"MIT"
] | 3 | 2020-10-17T17:51:19.000Z | 2020-10-23T10:37:03.000Z | setup.py | tillahoffmann/localscope | 3f757edadfa042cbbb90e98cddc2c242be74428b | [
"MIT"
] | null | null | null | import re
from setuptools import setup, find_packages
with open('README.rst') as fp:
long_description = fp.read()
long_description = long_description.replace('.. doctest::', '.. code-block:: python')
long_description = re.sub(r'(\.\. autofunction:: .*?$)', r':code:`\1`', long_description)
tests_require = [
... | 23.060606 | 89 | 0.637319 | 85 | 761 | 5.505882 | 0.588235 | 0.25641 | 0.081197 | 0.128205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008197 | 0.198423 | 761 | 32 | 90 | 23.78125 | 0.759016 | 0 | 0 | 0 | 0 | 0 | 0.260184 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.074074 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a029994815b8790ac953ac2719a61a82ac431b84 | 4,518 | py | Python | imapfw/testing/edmp.py | paralax/imapfw | 740a4fed1a1de28e4134a115a1dd9c6e90e29ec1 | [
"MIT"
] | 492 | 2015-10-12T18:18:48.000Z | 2022-02-14T11:46:46.000Z | imapfw/testing/edmp.py | paralax/imapfw | 740a4fed1a1de28e4134a115a1dd9c6e90e29ec1 | [
"MIT"
] | 21 | 2015-11-10T00:49:07.000Z | 2021-12-30T07:51:25.000Z | imapfw/testing/edmp.py | paralax/imapfw | 740a4fed1a1de28e4134a115a1dd9c6e90e29ec1 | [
"MIT"
] | 40 | 2015-10-15T13:27:31.000Z | 2021-12-30T07:52:24.000Z | # The MIT License (MIT)
#
# Copyright (c) 2015, Nicolas Sebrecht & contributors
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
... | 29.92053 | 79 | 0.615095 | 560 | 4,518 | 4.905357 | 0.326786 | 0.070987 | 0.058245 | 0.069894 | 0.348744 | 0.339279 | 0.295231 | 0.295231 | 0.249727 | 0.181289 | 0 | 0.00713 | 0.285967 | 4,518 | 150 | 80 | 30.12 | 0.844389 | 0.282426 | 0 | 0.505155 | 0 | 0 | 0.028927 | 0 | 0 | 0 | 0 | 0 | 0.164948 | 1 | 0.185567 | false | 0.072165 | 0.051546 | 0 | 0.247423 | 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 |
a02aecf97341950791f012519a667d69ba420a71 | 277 | py | Python | client/client/api/api_v1/endpoints/twitter.py | jetoslabs/system-monitor | 830a347e2359e0f03397b057983d5041d8085028 | [
"MIT"
] | null | null | null | client/client/api/api_v1/endpoints/twitter.py | jetoslabs/system-monitor | 830a347e2359e0f03397b057983d5041d8085028 | [
"MIT"
] | null | null | null | client/client/api/api_v1/endpoints/twitter.py | jetoslabs/system-monitor | 830a347e2359e0f03397b057983d5041d8085028 | [
"MIT"
] | null | null | null | from fastapi import APIRouter
from client.controllers.twitter import Twitter
from client.schemas.schema_twitter import TweetReqSchema
router = APIRouter()
@router.post("/tweet")
async def tweet(tweet: TweetReqSchema):
data = Twitter.create_tweet(tweet)
return data
| 21.307692 | 56 | 0.787004 | 34 | 277 | 6.352941 | 0.529412 | 0.092593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133574 | 277 | 12 | 57 | 23.083333 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0.021661 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 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 |
a04b6948c87f6f651a6e2971def2de96f6127a56 | 392 | py | Python | randomGenerator.py | qaidjohar/Random-Number-Generator | f9eaf976f7628caf486746821dbc8d749b42c3e4 | [
"MIT"
] | null | null | null | randomGenerator.py | qaidjohar/Random-Number-Generator | f9eaf976f7628caf486746821dbc8d749b42c3e4 | [
"MIT"
] | null | null | null | randomGenerator.py | qaidjohar/Random-Number-Generator | f9eaf976f7628caf486746821dbc8d749b42c3e4 | [
"MIT"
] | 1 | 2021-08-23T19:53:23.000Z | 2021-08-23T19:53:23.000Z | import random
greaterThan = float(input("Your number will be greater than: "))
lessThan = float(input("Your number will be less than: "))
digits = int(input("Your number will that many decimal digits: "))
count = int(input("How many random numbers to generate: "))
for i in range(0,count):
rounded_number = round(r... | 35.636364 | 73 | 0.732143 | 56 | 392 | 5.089286 | 0.571429 | 0.094737 | 0.157895 | 0.2 | 0.182456 | 0.182456 | 0 | 0 | 0 | 0 | 0 | 0.003003 | 0.15051 | 392 | 10 | 74 | 39.2 | 0.852853 | 0 | 0 | 0 | 0 | 0 | 0.369898 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a04c5532fe23c9587782194dc8352b899fd87f45 | 738 | py | Python | python/datastructure/find-subsets.py | krishnaiitd/eagleicode | 1011b6d1f11c0c26e89fa733c20eb82c8549f3b3 | [
"Apache-2.0"
] | null | null | null | python/datastructure/find-subsets.py | krishnaiitd/eagleicode | 1011b6d1f11c0c26e89fa733c20eb82c8549f3b3 | [
"Apache-2.0"
] | null | null | null | python/datastructure/find-subsets.py | krishnaiitd/eagleicode | 1011b6d1f11c0c26e89fa733c20eb82c8549f3b3 | [
"Apache-2.0"
] | null | null | null | # Given a target sum, populate all subsets, whose sum is equal to the target sum, from an int array
class FindSubset:
def __init__(self):
self.sumInStack = 0
self.stack = []
def populateSubset(self, data, startIndex, endIndex, target):
if self.sumInStack == target:
st = "+" . join(stack)
result = str(ta... | 24.6 | 99 | 0.665312 | 105 | 738 | 4.638095 | 0.466667 | 0.201232 | 0.065708 | 0.078029 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023689 | 0.199187 | 738 | 29 | 100 | 25.448276 | 0.800338 | 0.131436 | 0 | 0 | 0 | 0 | 0.006299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.15 | 0.05 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a04cabc86edc9cdbe791780ae14884767eea8359 | 489 | py | Python | setup.py | lauralwatkins/mgetools | c156874205ecf4eab14ce7615181059829099602 | [
"BSD-2-Clause"
] | 1 | 2019-02-01T13:07:42.000Z | 2019-02-01T13:07:42.000Z | setup.py | lauralwatkins/mgetools | c156874205ecf4eab14ce7615181059829099602 | [
"BSD-2-Clause"
] | null | null | null | setup.py | lauralwatkins/mgetools | c156874205ecf4eab14ce7615181059829099602 | [
"BSD-2-Clause"
] | 1 | 2021-04-01T17:29:25.000Z | 2021-04-01T17:29:25.000Z | #!/usr/bin/env python
from setuptools import setup
setup(
name="mgetools",
version="0.0",
description="A collection of python functions to calculate various "\
+"quantities and perform various tasks for Multi-Gaussian Expansions "\
+"(MGEs).",
author="Laura L Watkins",
author_email... | 25.736842 | 79 | 0.650307 | 54 | 489 | 5.851852 | 0.796296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005181 | 0.210634 | 489 | 18 | 80 | 27.166667 | 0.813472 | 0.0409 | 0 | 0 | 0 | 0 | 0.517094 | 0.049145 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.066667 | 0 | 0.066667 | 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 |
a050bd8fdc4915709804757f0dfe258227383658 | 1,141 | py | Python | django/invoices_app/forms.py | xmudrii/invoices | e34c493370712b4c27636d27a7a6b65c9a6a38c3 | [
"Apache-2.0"
] | null | null | null | django/invoices_app/forms.py | xmudrii/invoices | e34c493370712b4c27636d27a7a6b65c9a6a38c3 | [
"Apache-2.0"
] | null | null | null | django/invoices_app/forms.py | xmudrii/invoices | e34c493370712b4c27636d27a7a6b65c9a6a38c3 | [
"Apache-2.0"
] | null | null | null | from django.forms import ModelForm, Form
import django.forms as f
from .models import Company, City
class InvoicesForm(Form):
date_from = f.DateField(label='Date from', required=False)
date_to = f.DateField(label='Date to', required=False)
company = f.ModelChoiceField(label='Company', queryset=Company.obj... | 49.608696 | 97 | 0.687117 | 166 | 1,141 | 4.548193 | 0.277108 | 0.10596 | 0.05298 | 0.050331 | 0.354967 | 0.29404 | 0.29404 | 0 | 0 | 0 | 0 | 0.002176 | 0.194566 | 1,141 | 22 | 98 | 51.863636 | 0.819369 | 0 | 0 | 0 | 0 | 0 | 0.182296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.157895 | 0 | 0.631579 | 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 |
a05ab898c81125f2573f93a9ac8d2c5bc56158b1 | 1,899 | py | Python | webapp/app.py | npandelakis/cs257 | 1f428412ee3f92dbe0c8a10f2ffabcd130a8cae9 | [
"MIT"
] | null | null | null | webapp/app.py | npandelakis/cs257 | 1f428412ee3f92dbe0c8a10f2ffabcd130a8cae9 | [
"MIT"
] | 21 | 2021-03-01T16:21:34.000Z | 2021-03-15T17:48:24.000Z | webapp/app.py | npandelakis/cs257 | 1f428412ee3f92dbe0c8a10f2ffabcd130a8cae9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
'''
app.py
Grace de Benedetti and Nick Pandelakis
22 February 2021
A Flask web application to display global terrorism data.
'''
import sys
import argparse
import flask
import api
import psycopg2
app = flask.Flask(__name__, static_folder='static', template_folder='templates')
a... | 33.315789 | 115 | 0.709321 | 248 | 1,899 | 5.185484 | 0.350806 | 0.085537 | 0.092535 | 0.136081 | 0.229393 | 0.148523 | 0.148523 | 0.099533 | 0.099533 | 0.099533 | 0 | 0.005105 | 0.174829 | 1,899 | 56 | 116 | 33.910714 | 0.815571 | 0.130595 | 0 | 0.055556 | 0 | 0 | 0.224138 | 0.07697 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.138889 | 0.111111 | 0.472222 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a05c31e6a862bab36310cb4118e2b569832991ae | 536 | py | Python | chat/consumers.py | djet-me/chat | 2f4bcb05e07b392badd49d1745e9138946976422 | [
"MIT"
] | null | null | null | chat/consumers.py | djet-me/chat | 2f4bcb05e07b392badd49d1745e9138946976422 | [
"MIT"
] | 6 | 2021-04-08T20:29:21.000Z | 2022-02-10T13:16:19.000Z | chat/consumers.py | djet-me/chat | 2f4bcb05e07b392badd49d1745e9138946976422 | [
"MIT"
] | null | null | null | import json
from asgiref.sync import async_to_sync
from channels.generic.websocket import WebsocketConsumer
class ChatConsumer(WebsocketConsumer):
def connect(self):
async_to_sync(self.channel_layer.group_add)('general', self.channel_name)
self.accept()
def disconnect(self, close_code):
... | 28.210526 | 85 | 0.729478 | 68 | 536 | 5.529412 | 0.5 | 0.117021 | 0.087766 | 0.079787 | 0.170213 | 0.170213 | 0.170213 | 0 | 0 | 0 | 0 | 0 | 0.164179 | 536 | 18 | 86 | 29.777778 | 0.839286 | 0 | 0 | 0 | 0 | 0 | 0.052239 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.583333 | 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 |
a062b79445f467d36f7e66ec569648df1d22d660 | 990 | py | Python | members/admin/registration.py | Vayel/django-nsigma | f607547c8e977d2d8253f46b6a97272f1848db3d | [
"MIT"
] | null | null | null | members/admin/registration.py | Vayel/django-nsigma | f607547c8e977d2d8253f46b6a97272f1848db3d | [
"MIT"
] | 17 | 2017-03-13T21:47:44.000Z | 2017-03-23T12:43:06.000Z | members/admin/registration.py | Vayel/django-nsigma-members | f607547c8e977d2d8253f46b6a97272f1848db3d | [
"MIT"
] | null | null | null | from django.contrib import admin
from daterange_filter.filter import DateRangeFilter
from inline_actions.admin import InlineActionsModelAdminMixin
from . import tools
from .. import models
class RegistrationAdmin(InlineActionsModelAdminMixin, admin.ModelAdmin):
list_display = ('member', 'date', 'foreigner', 'va... | 30.9375 | 74 | 0.69596 | 103 | 990 | 6.436893 | 0.504854 | 0.045249 | 0.042232 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19798 | 990 | 31 | 75 | 31.935484 | 0.835013 | 0 | 0 | 0 | 0 | 0 | 0.148485 | 0.069697 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.227273 | 0.045455 | 0.681818 | 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 |
a0637235268502c77f2ffb12b104570927a37703 | 268 | py | Python | Mundo1/005.py | eliascastrosousa/exerciciospythonmundo1 | ec6326952e69ca60d018476308b96959b92a24d8 | [
"MIT"
] | null | null | null | Mundo1/005.py | eliascastrosousa/exerciciospythonmundo1 | ec6326952e69ca60d018476308b96959b92a24d8 | [
"MIT"
] | null | null | null | Mundo1/005.py | eliascastrosousa/exerciciospythonmundo1 | ec6326952e69ca60d018476308b96959b92a24d8 | [
"MIT"
] | null | null | null | # Exercício Python 005: Faça um programa que leia um número Inteiro e mostre na
# tela o seu sucessor e seu antecessor.
from time import sleep
n = int(input('Digite um numero: '))
sleep(1)
print('O numero antecessor de {} é {} e o sucessor é {}.'.format(n, n-1, n+1)) | 38.285714 | 79 | 0.701493 | 49 | 268 | 3.836735 | 0.653061 | 0.021277 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027273 | 0.179104 | 268 | 7 | 80 | 38.285714 | 0.827273 | 0.429104 | 0 | 0 | 0 | 0 | 0.443709 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a0661f0a7110ded3f978f3002156059db0ca9861 | 9,558 | py | Python | chrome/test/functional/ispy/tools/rendering_test_manager_unittest.py | kurli/chromium-crosswalk | f4c5d15d49d02b74eb834325e4dff50b16b53243 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/test/functional/ispy/tools/rendering_test_manager_unittest.py | kurli/chromium-crosswalk | f4c5d15d49d02b74eb834325e4dff50b16b53243 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/test/functional/ispy/tools/rendering_test_manager_unittest.py | kurli/chromium-crosswalk | f4c5d15d49d02b74eb834325e4dff50b16b53243 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
from PIL import Image
import sets
import sys
import unittest
sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir))
from tests.rende... | 47.79 | 79 | 0.677652 | 1,120 | 9,558 | 5.729464 | 0.135714 | 0.104566 | 0.104722 | 0.091632 | 0.777466 | 0.744117 | 0.685211 | 0.616332 | 0.575658 | 0.513012 | 0 | 0.018228 | 0.179222 | 9,558 | 199 | 80 | 48.030151 | 0.799745 | 0.096464 | 0 | 0.471698 | 0 | 0 | 0.141381 | 0.040859 | 0 | 0 | 0 | 0 | 0.264151 | 1 | 0.075472 | false | 0 | 0.056604 | 0 | 0.138365 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a0795f16baf15d08a865ea8cbcd0f0680d21618d | 2,722 | py | Python | backend/sources/tests/unit/test_routers/test_user_router.py | TeamUnibuc/SmartForms | db558b057468dafd3adbb85d6405697f8c7b7342 | [
"MIT"
] | null | null | null | backend/sources/tests/unit/test_routers/test_user_router.py | TeamUnibuc/SmartForms | db558b057468dafd3adbb85d6405697f8c7b7342 | [
"MIT"
] | 2 | 2022-02-18T09:43:17.000Z | 2022-03-02T23:18:03.000Z | backend/sources/tests/unit/test_routers/test_user_router.py | TeamUnibuc/SmartForms | db558b057468dafd3adbb85d6405697f8c7b7342 | [
"MIT"
] | null | null | null | import base64
import json
import os, sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))))
import main
import time
import random
import unittest
from main import init_state
import database
import smart_forms_types
from PyPDF2 import PdfFileReader
from fasta... | 30.58427 | 111 | 0.592946 | 288 | 2,722 | 5.4375 | 0.413194 | 0.019157 | 0.033206 | 0.038314 | 0.233716 | 0.181354 | 0.181354 | 0.136654 | 0.136654 | 0.136654 | 0 | 0.007365 | 0.301616 | 2,722 | 88 | 112 | 30.931818 | 0.816412 | 0.173402 | 0 | 0.067797 | 0 | 0 | 0.105579 | 0 | 0 | 0 | 0 | 0.011364 | 0.118644 | 1 | 0.084746 | false | 0 | 0.220339 | 0 | 0.338983 | 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 |
a07b03e47f8e6b5dccea9b659ea9045ec342735f | 5,611 | py | Python | actions.py | ZBiener/BibDeskQuery | 2cf3b2ceeb0b1decce31072128c6cd5d01701ec5 | [
"MIT"
] | null | null | null | actions.py | ZBiener/BibDeskQuery | 2cf3b2ceeb0b1decce31072128c6cd5d01701ec5 | [
"MIT"
] | null | null | null | actions.py | ZBiener/BibDeskQuery | 2cf3b2ceeb0b1decce31072128c6cd5d01701ec5 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# encoding: utf-8
# By Zvi Biener <zbiener@gmail.com>, modified from original script by Stephen Margheim
#
# MIT Licence. See http://opensource.org/licenses/MIT
from __future__ import unicode_literals
import sys
import urllib
import os.path
import subprocess
import workflow
import ccl_bplist
HOME... | 31.346369 | 113 | 0.529139 | 637 | 5,611 | 4.480377 | 0.298273 | 0.03679 | 0.012614 | 0.023826 | 0.228451 | 0.177295 | 0.161878 | 0.131395 | 0.080238 | 0.067274 | 0 | 0.004993 | 0.286045 | 5,611 | 178 | 114 | 31.522472 | 0.707439 | 0.104438 | 0 | 0.208696 | 0 | 0 | 0.207944 | 0.041876 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.06087 | null | null | 0.008696 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a0811e2fb1487063d990250060c53f5c8ee56ee0 | 5,125 | py | Python | utils/lanl.py | Atrus619/CSDGAN | 712be213e59b32a79a4970684d726af63616edaf | [
"MIT"
] | 1 | 2019-06-27T12:14:39.000Z | 2019-06-27T12:14:39.000Z | utils/lanl.py | Atrus619/CSDGAN | 712be213e59b32a79a4970684d726af63616edaf | [
"MIT"
] | 21 | 2019-08-06T12:44:14.000Z | 2019-11-03T14:28:46.000Z | utils/lanl.py | Atrus619/Synthetic_Data_GAN_Capstone | 712be213e59b32a79a4970684d726af63616edaf | [
"MIT"
] | 1 | 2020-07-25T13:14:31.000Z | 2020-07-25T13:14:31.000Z | import tensorflow as tf
import numpy as np
import random
class ValDataGenerator(tf.keras.utils.Sequence):
"""Generates data"""
def __init__(self, data, targets, eval_index, cv_index, cv, batch_size, lookback):
self.data = data
self.data_width = self.data.shape[1]
self.targets = targets... | 41 | 167 | 0.641561 | 697 | 5,125 | 4.516499 | 0.172166 | 0.050826 | 0.045426 | 0.045743 | 0.621347 | 0.565121 | 0.530178 | 0.484117 | 0.444091 | 0.414867 | 0 | 0.010119 | 0.248 | 5,125 | 124 | 168 | 41.330645 | 0.806694 | 0.13639 | 0 | 0.436782 | 1 | 0 | 0.009727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.149425 | false | 0 | 0.034483 | 0.011494 | 0.310345 | 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 |
a081b49d725f577ceb481b11eb236da8e11300d7 | 334 | py | Python | SumVsXor.py | see-why/HackerRank-and-LeetCode-Solutions | 533ed76e8e4c96c924916f56690aae103188f02d | [
"MIT"
] | 5 | 2022-02-22T08:48:52.000Z | 2022-03-03T22:31:16.000Z | SumVsXor.py | see-why/HackerRank-Solutions | 5f3ab61235dc07209664e064292754942f5d41e4 | [
"MIT"
] | null | null | null | SumVsXor.py | see-why/HackerRank-Solutions | 5f3ab61235dc07209664e064292754942f5d41e4 | [
"MIT"
] | null | null | null | # https://www.hackerrank.com/challenges/sum-vs-xor/problem?isFullScreen=true
def sumXor(n):
# Write your code here
counter = 0
binary_string = '{0:b}'.format(n)
print(binary_string)
for bit in binary_string:
if bit == '0':
counter += 1
if n == 0:
counter = 0
retu... | 23.857143 | 76 | 0.592814 | 47 | 334 | 4.148936 | 0.680851 | 0.184615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029046 | 0.278443 | 334 | 13 | 77 | 25.692308 | 0.780083 | 0.284431 | 0 | 0.2 | 0 | 0 | 0.025424 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.2 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a087bdacfa7a6c88911a020a33b66bf10f11486f | 2,144 | py | Python | main.py | atheesh1998/Image-Super-Resolution | ca5be89e457009bcd298f3a03eee144e1d23232e | [
"MIT"
] | 1 | 2020-09-30T14:50:57.000Z | 2020-09-30T14:50:57.000Z | main.py | atheesh1998/Image-Super-Resolution | ca5be89e457009bcd298f3a03eee144e1d23232e | [
"MIT"
] | 1 | 2021-05-15T13:27:48.000Z | 2021-05-15T13:27:48.000Z | main.py | atheesh1998/Image-Super-Resolution | ca5be89e457009bcd298f3a03eee144e1d23232e | [
"MIT"
] | 1 | 2020-07-15T17:51:56.000Z | 2020-07-15T17:51:56.000Z | import sys
import keras
import cv2
import math
import os
import numpy as np
import matplotlib.pyplot as plt
from skimage.measure import compare_ssim as ssim
# neural network architecture
from keras.models import Sequential
from keras.layers import Conv2D
from keras.optimizers import Adam
# misc
from image_... | 33.5 | 111 | 0.65625 | 320 | 2,144 | 4.328125 | 0.2875 | 0.030325 | 0.073646 | 0.077978 | 0.612996 | 0.612996 | 0.561011 | 0.500361 | 0.500361 | 0.500361 | 0 | 0.038917 | 0.173041 | 2,144 | 64 | 112 | 33.5 | 0.742245 | 0.090019 | 0 | 0.444444 | 0 | 0 | 0.134574 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a08d476328ebf58475b047f7b81663945f8eb599 | 11,095 | py | Python | libsf/sfvolgroup.py | cseelye/sfauto | 2a0d8a541431f84e4d887821cd66a5ea525e3026 | [
"MIT"
] | null | null | null | libsf/sfvolgroup.py | cseelye/sfauto | 2a0d8a541431f84e4d887821cd66a5ea525e3026 | [
"MIT"
] | null | null | null | libsf/sfvolgroup.py | cseelye/sfauto | 2a0d8a541431f84e4d887821cd66a5ea525e3026 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
SolidFire volume access group object and related data structures
"""
from . import SolidFireClusterAPI, GetHighestAPIVersion, InvalidArgumentError, UnknownObjectError
from .logutil import GetLogger
def _refresh(fn):
"""Decorator to refresh the attributes of this object from the cluster"""... | 39.204947 | 139 | 0.559171 | 1,077 | 11,095 | 5.675952 | 0.184773 | 0.024538 | 0.029445 | 0.017667 | 0.47538 | 0.450679 | 0.408801 | 0.364796 | 0.352364 | 0.339931 | 0 | 0.003666 | 0.360793 | 11,095 | 282 | 140 | 39.343972 | 0.858291 | 0.225327 | 0 | 0.488095 | 0 | 0 | 0.105761 | 0.024512 | 0 | 0 | 0 | 0 | 0.005952 | 1 | 0.113095 | false | 0.083333 | 0.011905 | 0.017857 | 0.190476 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a096cb457f3320579333e87e4f807e11f7d8ef22 | 1,113 | py | Python | PyUdemy/Day20/SnakeGame/snake.py | JoseArtur/phyton-exercices | f3da4447044e445222233960f991fb2e36311131 | [
"MIT"
] | null | null | null | PyUdemy/Day20/SnakeGame/snake.py | JoseArtur/phyton-exercices | f3da4447044e445222233960f991fb2e36311131 | [
"MIT"
] | null | null | null | PyUdemy/Day20/SnakeGame/snake.py | JoseArtur/phyton-exercices | f3da4447044e445222233960f991fb2e36311131 | [
"MIT"
] | null | null | null | from turtle import Turtle, Screen
class Snake():
def __init__(self):
self.parts = []
self.create()
self.head = self.parts[0]
def create(self):
for i in range(3):
jonny = Turtle(shape="square")
jonny.penup()
jonny.color("white")
jon... | 35.903226 | 91 | 0.563342 | 169 | 1,113 | 3.639053 | 0.378698 | 0.130081 | 0.078049 | 0.143089 | 0.052033 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04522 | 0.304582 | 1,113 | 31 | 92 | 35.903226 | 0.749354 | 0.08805 | 0 | 0 | 0 | 0 | 0.010859 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.259259 | false | 0 | 0.037037 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a0add0c9219e1ea2b14fd779ddfbfbf0d201d445 | 6,826 | py | Python | deprecated/simulation/sub8_montecarlo/sub8_montecarlo_tools/controller_verify.py | ericgorday/SubjuGator | f45ac790f06eb97efc0b0810a7b43d0a6e2facee | [
"MIT"
] | 27 | 2020-02-17T21:54:09.000Z | 2022-03-18T17:49:23.000Z | deprecated/simulation/sub8_montecarlo/sub8_montecarlo_tools/controller_verify.py | ericgorday/SubjuGator | f45ac790f06eb97efc0b0810a7b43d0a6e2facee | [
"MIT"
] | 325 | 2019-09-11T14:13:56.000Z | 2022-03-31T00:38:30.000Z | deprecated/simulation/sub8_montecarlo/sub8_montecarlo_tools/controller_verify.py | ericgorday/SubjuGator | f45ac790f06eb97efc0b0810a7b43d0a6e2facee | [
"MIT"
] | 24 | 2019-09-16T00:29:45.000Z | 2022-03-06T10:56:38.000Z | #!/usr/bin/env python
'''Monte-Carlo controller verification
'''
import rospy
import numpy as np
import time
import mil_ros_tools
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D # noqa
import geometry_msgs.msg as geometry_msgs
import nav_msgs.msg as nav_msgs
from sub8_simulation.srv import Sim... | 34.13 | 102 | 0.560504 | 814 | 6,826 | 4.470516 | 0.308354 | 0.007145 | 0.008244 | 0.007694 | 0.143446 | 0.095631 | 0.095631 | 0.077494 | 0.025831 | 0.012091 | 0 | 0.0191 | 0.332699 | 6,826 | 199 | 103 | 34.301508 | 0.779802 | 0.243481 | 0 | 0.096491 | 0 | 0 | 0.016635 | 0 | 0 | 0 | 0 | 0.025126 | 0 | 1 | 0.070175 | false | 0 | 0.087719 | 0 | 0.192982 | 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 |
a0b3554b0c4817ae6e99c7b78375ef320314a3d1 | 519 | py | Python | server/githubsrm/core/urls.py | Codered9/githubsrm | df5084aa84c9154a62187d07d27f2f2257e26195 | [
"MIT"
] | null | null | null | server/githubsrm/core/urls.py | Codered9/githubsrm | df5084aa84c9154a62187d07d27f2f2257e26195 | [
"MIT"
] | null | null | null | server/githubsrm/core/urls.py | Codered9/githubsrm | df5084aa84c9154a62187d07d27f2f2257e26195 | [
"MIT"
] | null | null | null | """
URL configurations for GitHubSRM
"""
from administrator.views import refresh, verify
from apis.open_views import catch_all
from django.urls import include, path, re_path
from .views import health_check
urlpatterns = [
path("api/", include("apis.urls")),
path("admin/", include("administrator.urls")),
... | 25.95 | 52 | 0.684008 | 64 | 519 | 5.4375 | 0.453125 | 0.094828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142582 | 519 | 19 | 53 | 27.315789 | 0.782022 | 0.061657 | 0 | 0 | 0 | 0 | 0.230126 | 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 |
a0b966096f04505828142e4b10931279492dcd82 | 6,621 | py | Python | data.py | lchloride/manga_rock_crawler | 8b7053e5298b9050bcd1257c6f9feef0e8f93065 | [
"MIT"
] | 1 | 2019-05-27T23:45:24.000Z | 2019-05-27T23:45:24.000Z | data.py | lchloride/manga_rock_crawler | 8b7053e5298b9050bcd1257c6f9feef0e8f93065 | [
"MIT"
] | null | null | null | data.py | lchloride/manga_rock_crawler | 8b7053e5298b9050bcd1257c6f9feef0e8f93065 | [
"MIT"
] | null | null | null | import sqlite3
class Chapter:
def __init__(self, iid=None, chapterId=None, seriesId=None, directory=None,
createTime=None, updateTime=None, name=None, publish_time=None):
self._id = iid
self._chapterId = chapterId
self._seriesId = seriesId
self._directory = directo... | 30.511521 | 132 | 0.599909 | 704 | 6,621 | 5.485795 | 0.15483 | 0.036251 | 0.050751 | 0.048938 | 0.369757 | 0.325997 | 0.311756 | 0.214397 | 0.108234 | 0.108234 | 0 | 0.003773 | 0.279414 | 6,621 | 216 | 133 | 30.652778 | 0.805701 | 0 | 0 | 0.421687 | 0 | 0.024096 | 0.196979 | 0.003323 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26506 | false | 0 | 0.006024 | 0.096386 | 0.421687 | 0.006024 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2606f5d2f15e531392067cf2c38021e5d7ebc49b | 1,365 | py | Python | LFSR_Rand.py | GanSama/Crypto_Func | 43e5e86391d9b10a942bb850ac57a287fe280dc0 | [
"MIT"
] | null | null | null | LFSR_Rand.py | GanSama/Crypto_Func | 43e5e86391d9b10a942bb850ac57a287fe280dc0 | [
"MIT"
] | null | null | null | LFSR_Rand.py | GanSama/Crypto_Func | 43e5e86391d9b10a942bb850ac57a287fe280dc0 | [
"MIT"
] | null | null | null | # File Name : LFSR_Rand.py
# Description : implement a simple LFSR random number generator
# Author : Ganyuan Cao
def lfsr_gen(init, tap, n):
new_lfsr = init
tap_length = len(tap)
curr_sum = 0
exp_length = len(init) + 1
# iteratively fill the LFSR list
while exp_length <= n:
for i i... | 22.016129 | 86 | 0.6 | 198 | 1,365 | 3.974747 | 0.328283 | 0.044473 | 0.022872 | 0.041931 | 0.096569 | 0.038119 | 0 | 0 | 0 | 0 | 0 | 0.027579 | 0.282784 | 1,365 | 62 | 87 | 22.016129 | 0.776302 | 0.147253 | 0 | 0.055556 | 0 | 0 | 0.117444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2608aa97b55ceec0354abdf1d9b635c519824545 | 788 | py | Python | scripts/zscore_to_pvalues.py | Amara-Shaukat/fine_mapping_pipeline | b1aa88ca7fabd2c5b7ff5a60b9b5f80f988f139d | [
"MIT"
] | 1 | 2020-06-08T01:47:26.000Z | 2020-06-08T01:47:26.000Z | scripts/zscore_to_pvalues.py | theboocock/fine_mapping_pipeline | b1aa88ca7fabd2c5b7ff5a60b9b5f80f988f139d | [
"MIT"
] | 1 | 2015-06-08T06:04:26.000Z | 2015-06-11T01:46:03.000Z | scripts/zscore_to_pvalues.py | smilefreak/fine_mapping_pipeline | b1aa88ca7fabd2c5b7ff5a60b9b5f80f988f139d | [
"MIT"
] | 2 | 2016-09-07T05:41:59.000Z | 2019-01-30T17:48:19.000Z | #!/usr/bin/env python
#
# Convert Z scores to pvalues
#
import argparse
from scipy.stats import norm
def print_p_values(zscores):
"""
Read Zscores file, convert the Zscores to pvalues, and print them out
along with the original data.
"""
print "MarkerName\tZscore\tP.value"
with open(z... | 26.266667 | 77 | 0.633249 | 104 | 788 | 4.634615 | 0.596154 | 0.056017 | 0.049793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003384 | 0.25 | 788 | 29 | 78 | 27.172414 | 0.812183 | 0.060914 | 0 | 0 | 0 | 0 | 0.126437 | 0.044335 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0.235294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2608e42cd12d59e82c6bf0ebad1918988968e79a | 2,062 | py | Python | pycoin/tx/script/flags.py | eddieoz/bitencrypt | e4bfa60779b7d5879ba94cf1111ce1be89ce8c07 | [
"Apache-2.0"
] | 7 | 2016-11-14T23:34:32.000Z | 2021-09-22T14:58:00.000Z | pycoin/tx/script/flags.py | eddieoz/bitencrypt | e4bfa60779b7d5879ba94cf1111ce1be89ce8c07 | [
"Apache-2.0"
] | null | null | null | pycoin/tx/script/flags.py | eddieoz/bitencrypt | e4bfa60779b7d5879ba94cf1111ce1be89ce8c07 | [
"Apache-2.0"
] | 4 | 2019-04-07T07:20:32.000Z | 2021-10-31T14:16:53.000Z |
VERIFY_NONE = 0
# Evaluate P2SH subscripts (softfork safe, BIP16).
VERIFY_P2SH = (1 << 0)
# Passing a non-strict-DER signature or one with undefined hashtype to a checksig
# operation causes script failure. Evaluating a pubkey that is not (0x04 + 64 bytes)
# or (0x02 or 0x03 + 32 bytes) by checksig causes script fai... | 40.431373 | 89 | 0.751212 | 324 | 2,062 | 4.722222 | 0.503086 | 0.054902 | 0.062092 | 0.070588 | 0.218954 | 0.198693 | 0.179739 | 0.128105 | 0.128105 | 0.078431 | 0 | 0.042204 | 0.172648 | 2,062 | 50 | 90 | 41.24 | 0.854631 | 0.813773 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
261d592163efa36dff1989edd00d06c5c8086fbd | 439 | py | Python | FMT/FMT/Licences/migrations/0004_auto_20190309_1059.py | DumisanBK/FMT | aa66d1e9597dd5ae7fc4eef8977193ec66ccbaca | [
"MIT"
] | null | null | null | FMT/FMT/Licences/migrations/0004_auto_20190309_1059.py | DumisanBK/FMT | aa66d1e9597dd5ae7fc4eef8977193ec66ccbaca | [
"MIT"
] | 12 | 2021-03-19T12:48:23.000Z | 2022-03-12T00:54:21.000Z | FMT/FMT/Licences/migrations/0004_auto_20190309_1059.py | DumisanBK/FMT | aa66d1e9597dd5ae7fc4eef8977193ec66ccbaca | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.18 on 2019-03-09 09:59
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Licences', '0003_auto_20190309_1049'),
]
operations = [
migrations.RenameField(
... | 20.904762 | 49 | 0.615034 | 48 | 439 | 5.375 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10625 | 0.271071 | 439 | 20 | 50 | 21.95 | 0.7 | 0.157175 | 0 | 0 | 1 | 0 | 0.158038 | 0.06267 | 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 |
262ff1ea2fe659ab9f92a11c5c6fdb1cff36353f | 13,506 | py | Python | robot-server/tests/runs/router/test_commands_router.py | Opentrons/protocol_framework | ebbd6b2fe984edd6ecfcbf1dbe040db7f7356b9f | [
"Apache-2.0"
] | null | null | null | robot-server/tests/runs/router/test_commands_router.py | Opentrons/protocol_framework | ebbd6b2fe984edd6ecfcbf1dbe040db7f7356b9f | [
"Apache-2.0"
] | null | null | null | robot-server/tests/runs/router/test_commands_router.py | Opentrons/protocol_framework | ebbd6b2fe984edd6ecfcbf1dbe040db7f7356b9f | [
"Apache-2.0"
] | null | null | null | """Tests for the /runs/.../commands routes."""
import pytest
from datetime import datetime
from decoy import Decoy, matchers
from opentrons.protocol_engine import (
CommandSlice,
CurrentCommand,
ProtocolEngine,
commands as pe_commands,
errors as pe_errors,
)
from robot_server.errors import ApiErr... | 33.26601 | 88 | 0.677181 | 1,660 | 13,506 | 5.243373 | 0.138554 | 0.039063 | 0.038603 | 0.037224 | 0.752987 | 0.704733 | 0.636604 | 0.615924 | 0.608226 | 0.567555 | 0 | 0.01724 | 0.218347 | 13,506 | 405 | 89 | 33.348148 | 0.807237 | 0.02236 | 0 | 0.53211 | 0 | 0 | 0.061083 | 0.003194 | 0 | 0 | 0 | 0.002469 | 0.076453 | 1 | 0.009174 | false | 0 | 0.033639 | 0 | 0.04893 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
263616e2858b7499147d00148b883a39b003212f | 3,567 | py | Python | plot_scripts/Rain/pp_rain_mean_regrid_trmm_diff.py | peterwilletts24/Python-Scripts | 975d6b2e2923cbde40d2760eb9574acee2e10388 | [
"MIT"
] | 4 | 2017-05-24T09:14:14.000Z | 2019-01-02T19:20:38.000Z | plot_scripts/Rain/pp_rain_mean_regrid_trmm_diff.py | peterwilletts24/Python-Scripts | 975d6b2e2923cbde40d2760eb9574acee2e10388 | [
"MIT"
] | null | null | null | plot_scripts/Rain/pp_rain_mean_regrid_trmm_diff.py | peterwilletts24/Python-Scripts | 975d6b2e2923cbde40d2760eb9574acee2e10388 | [
"MIT"
] | 3 | 2017-05-24T09:14:15.000Z | 2020-09-28T08:32:02.000Z | """
Regrid pp file to TRMM and difference
"""
import os, sys
import datetime
import iris
import iris.unit as unit
import scipy.interpolate
import cPickle as pickle
import numpy as np
diag = 'rain_mean'
pp_file_path='/nfs/a90/eepdw/Data/EMBRACE/Mean_State/pp_files/'
regrid_model='trmm'
fg = '%sdjzn/djznw/%s.pp'... | 29.97479 | 153 | 0.68573 | 497 | 3,567 | 4.641851 | 0.297787 | 0.033377 | 0.019072 | 0.026008 | 0.195059 | 0.069354 | 0.069354 | 0.069354 | 0.069354 | 0 | 0 | 0.005556 | 0.192599 | 3,567 | 118 | 154 | 30.228814 | 0.795486 | 0.062518 | 0 | 0.0625 | 0 | 0.015625 | 0.146484 | 0.073893 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.15625 | null | null | 0.046875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
26375c0272b90184d875bb22d05448d84272bcde | 2,923 | py | Python | attributes_and_methods/gym/gym.py | PetkoAndreev/Python-OOP | 2cc3094940cdf078f0ee60be938e883f843766e4 | [
"MIT"
] | 1 | 2021-05-27T07:59:17.000Z | 2021-05-27T07:59:17.000Z | attributes_and_methods/gym/gym.py | PetkoAndreev/Python-OOP | 2cc3094940cdf078f0ee60be938e883f843766e4 | [
"MIT"
] | null | null | null | attributes_and_methods/gym/gym.py | PetkoAndreev/Python-OOP | 2cc3094940cdf078f0ee60be938e883f843766e4 | [
"MIT"
] | null | null | null | class Gym:
def __init__(self):
self.customers = []
self.trainers = []
self.equipment = []
self.plans = []
self.subscriptions = []
def add_customer(self, customer):
if customer not in self.customers:
self.customers.append(customer)
def add_trainer... | 47.918033 | 140 | 0.596305 | 305 | 2,923 | 5.432787 | 0.098361 | 0.054315 | 0.027158 | 0.043452 | 0.315631 | 0.290284 | 0.213639 | 0.213639 | 0.077248 | 0.077248 | 0 | 0.002473 | 0.308245 | 2,923 | 61 | 141 | 47.918033 | 0.817013 | 0.405063 | 0 | 0 | 0 | 0.032258 | 0.071137 | 0.071137 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0 | 0 | 0 | 0.322581 | 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 |
263aa097d9e2752cb8cbe186408397d183254dd6 | 2,139 | py | Python | src/sklearn_random_cv.py | ternaus/kaggle_wallmart | 073dcf7bbc3e0ac6201b0aae0bba44f5fb71f835 | [
"MIT"
] | null | null | null | src/sklearn_random_cv.py | ternaus/kaggle_wallmart | 073dcf7bbc3e0ac6201b0aae0bba44f5fb71f835 | [
"MIT"
] | null | null | null | src/sklearn_random_cv.py | ternaus/kaggle_wallmart | 073dcf7bbc3e0ac6201b0aae0bba44f5fb71f835 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
__author__ = 'Vladimir Iglovikov'
'''
This script will do randomized search to find the best or almost the best parameters for this problem
for sklearn package
'''
# import xgboost as xgb
import pandas as pd
import numpy as np
from xgboost import XGBRegressor
from sklearn import cross_validatio... | 32.409091 | 126 | 0.702665 | 299 | 2,139 | 4.879599 | 0.458194 | 0.052776 | 0.024674 | 0.035641 | 0.095956 | 0.095956 | 0.095956 | 0.095956 | 0.095956 | 0.095956 | 0 | 0.027058 | 0.17064 | 2,139 | 66 | 127 | 32.409091 | 0.795378 | 0.128565 | 0 | 0.102564 | 0 | 0 | 0.153445 | 0.016792 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.307692 | 0 | 0.333333 | 0.102564 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
264316fcb28e0e3804c2b064e4dcb1424b742ce7 | 691 | py | Python | slybot/slybot/proxy.py | rmdes/portia-dashboard | 97e698c7232c15eff47d20fd3529251bbd284226 | [
"BSD-3-Clause"
] | 223 | 2018-01-22T07:43:58.000Z | 2022-03-25T12:52:30.000Z | slybot/slybot/proxy.py | rmdes/portia-dashboard | 97e698c7232c15eff47d20fd3529251bbd284226 | [
"BSD-3-Clause"
] | 9 | 2018-03-17T15:16:26.000Z | 2019-11-11T09:35:04.000Z | slybot/slybot/proxy.py | rmdes/portia-dashboard | 97e698c7232c15eff47d20fd3529251bbd284226 | [
"BSD-3-Clause"
] | 76 | 2018-01-22T04:20:00.000Z | 2021-11-13T09:53:26.000Z |
# Importing base64 library because we'll need it ONLY in case if the proxy we are going to use requires authentication
import base64
# Start your middleware class
class SquidProxyMiddleware(object):
# overwrite process request
def process_request(self, request, spider):
# Set the location of the prox... | 40.647059 | 118 | 0.7178 | 90 | 691 | 5.411111 | 0.611111 | 0.065708 | 0.053388 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036765 | 0.212735 | 691 | 16 | 119 | 43.1875 | 0.858456 | 0.438495 | 0 | 0 | 0 | 0 | 0.173684 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.428571 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
264329fa3ffc338db1ac77ebc26b12198b9b4db1 | 3,635 | py | Python | tests/callbacks/test_lr_logger.py | shivdhar/pytorch-lightning | e4f7223c6384a65520c958f64b02db1952c61430 | [
"Apache-2.0"
] | 2 | 2020-08-28T12:11:59.000Z | 2020-09-27T09:44:04.000Z | tests/callbacks/test_lr_logger.py | shivdhar/pytorch-lightning | e4f7223c6384a65520c958f64b02db1952c61430 | [
"Apache-2.0"
] | 8 | 2021-01-15T13:15:09.000Z | 2021-04-04T19:52:25.000Z | tests/callbacks/test_lr_logger.py | shivdhar/pytorch-lightning | e4f7223c6384a65520c958f64b02db1952c61430 | [
"Apache-2.0"
] | 1 | 2020-10-19T03:52:27.000Z | 2020-10-19T03:52:27.000Z | import pytest
import tests.base.develop_utils as tutils
from pytorch_lightning import Trainer
from pytorch_lightning.callbacks import LearningRateLogger
from tests.base import EvalModelTemplate
def test_lr_logger_single_lr(tmpdir):
""" Test that learning rates are extracted and logged for single lr scheduler. ""... | 33.045455 | 86 | 0.697662 | 474 | 3,635 | 5.137131 | 0.189873 | 0.072279 | 0.045175 | 0.024641 | 0.697331 | 0.682136 | 0.661191 | 0.661191 | 0.661191 | 0.64271 | 0 | 0.008386 | 0.212655 | 3,635 | 109 | 87 | 33.348624 | 0.842418 | 0.062173 | 0 | 0.638554 | 0 | 0 | 0.161405 | 0 | 0 | 0 | 0 | 0 | 0.168675 | 1 | 0.048193 | false | 0 | 0.060241 | 0 | 0.108434 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
264525deac1df2ea40d5739ef9d08a02c7b44be0 | 2,242 | py | Python | Simulado 04/MenorConjuntoDeInvervalosFechados/src/__main__.py | Dsbaule/INE5452 | 1f9898c1ae5bf5ec1dbdc948e96a0a603a206113 | [
"Apache-2.0"
] | null | null | null | Simulado 04/MenorConjuntoDeInvervalosFechados/src/__main__.py | Dsbaule/INE5452 | 1f9898c1ae5bf5ec1dbdc948e96a0a603a206113 | [
"Apache-2.0"
] | null | null | null | Simulado 04/MenorConjuntoDeInvervalosFechados/src/__main__.py | Dsbaule/INE5452 | 1f9898c1ae5bf5ec1dbdc948e96a0a603a206113 | [
"Apache-2.0"
] | null | null | null | """
Autor: Daniel de Souza Baulé (16200639)
Disciplina: INE5452 - Topicos Especiais em Algoritmos II
Atividade: Quarto simulado - Questoes extra-URI
Menor Conjunto de Intervalos Fechados
É sempre necessário um intervalo que contenha o menor ponto na reta,
e esse intervalo cobre [x, x+1], contendo todos os pontos n... | 27.012048 | 82 | 0.595897 | 280 | 2,242 | 4.771429 | 0.428571 | 0.023952 | 0.006737 | 0.008982 | 0.090569 | 0.080838 | 0.080838 | 0.041916 | 0.041916 | 0.041916 | 0 | 0.019405 | 0.310437 | 2,242 | 83 | 83 | 27.012048 | 0.844761 | 0.336753 | 0 | 0.25 | 0 | 0 | 0.059701 | 0 | 0 | 0 | 0 | 0.012048 | 0 | 1 | 0.045455 | false | 0 | 0 | 0 | 0.068182 | 0.068182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
26454c2308d5154c20a79927e02ac7a5bc0db020 | 1,013 | py | Python | scr/DB.py | ehrakis/3AIT | ac561bbb8e933abe1b26ac964ab6eb3f76229953 | [
"MIT"
] | null | null | null | scr/DB.py | ehrakis/3AIT | ac561bbb8e933abe1b26ac964ab6eb3f76229953 | [
"MIT"
] | null | null | null | scr/DB.py | ehrakis/3AIT | ac561bbb8e933abe1b26ac964ab6eb3f76229953 | [
"MIT"
] | null | null | null | """
inhabitants = [
{
"NationalID": 0,
"FamilyName": "",
"FirstName": "",
"MainAddress": 0,
"Age": "",
"Habitation": {
"owner": [],
"renter": []
},
"Car": [],
"Sex": "",
"Stat... | 21.104167 | 62 | 0.344521 | 61 | 1,013 | 5.704918 | 0.704918 | 0.051724 | 0.045977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032443 | 0.482725 | 1,013 | 47 | 63 | 21.553191 | 0.631679 | 0.824284 | 0 | 0 | 0 | 0 | 0.218935 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2647a8e85cdbda5154c6bd0ed6cf49e3dcb5b59b | 551 | py | Python | solnml/components/models/text_classification/__init__.py | zhengjian2322/soln-ml | ceff6c432921df9809f9552aaa1b0bd5a1b7e8d2 | [
"MIT"
] | null | null | null | solnml/components/models/text_classification/__init__.py | zhengjian2322/soln-ml | ceff6c432921df9809f9552aaa1b0bd5a1b7e8d2 | [
"MIT"
] | null | null | null | solnml/components/models/text_classification/__init__.py | zhengjian2322/soln-ml | ceff6c432921df9809f9552aaa1b0bd5a1b7e8d2 | [
"MIT"
] | null | null | null | import os
from solnml.components.models.base_nn import BaseTextClassificationNeuralNetwork
from solnml.components.utils.class_loader import find_components, ThirdPartyComponents
"""
Load the buildin classifiers.
"""
classifiers_directory = os.path.split(__file__)[0]
_classifiers = find_components(__package__, classifi... | 30.611111 | 103 | 0.842105 | 53 | 551 | 8.396226 | 0.584906 | 0.044944 | 0.089888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001972 | 0.079855 | 551 | 18 | 104 | 30.611111 | 0.87574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.