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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a671987b4aec698f200fd1e8f711ebabd9e8fdf6 | 359 | py | Python | afwf_fts_anything/__init__.py | MacHu-GWU/afwf_fts_anything-project | 7050f12f6df9688fd553a5673ab21e10fa571cf2 | [
"MIT"
] | 20 | 2019-01-03T22:31:41.000Z | 2021-10-14T11:32:29.000Z | afwf_fts_anything/__init__.py | MacHu-GWU/afwf_fts_anything-project | 7050f12f6df9688fd553a5673ab21e10fa571cf2 | [
"MIT"
] | 2 | 2019-01-02T21:36:40.000Z | 2020-08-23T18:03:54.000Z | afwf_fts_anything/__init__.py | MacHu-GWU/afwf_fts_anything-project | 7050f12f6df9688fd553a5673ab21e10fa571cf2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Full text search workflow for Alfred.
"""
from ._version import __version__
__short_description__ = "Full text search workflow for Alfred."
__license__ = "MIT"
__author__ = "Sanhe Hu"
__author_email__ = "husanhe@gmail.com"
__maintainer__ = "Sanhe Hu"
__maintainer_email__ = "husanhe@gmail.... | 22.4375 | 63 | 0.743733 | 43 | 359 | 5.348837 | 0.651163 | 0.069565 | 0.121739 | 0.191304 | 0.269565 | 0.269565 | 0 | 0 | 0 | 0 | 0 | 0.003215 | 0.133705 | 359 | 15 | 64 | 23.933333 | 0.736334 | 0.167131 | 0 | 0 | 0 | 0 | 0.340206 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a6736259f691ee42e01b77cfe927dab8c82e2223 | 609 | py | Python | users/home_work.py | annadokuchaeva2002/python-home-bot | 662acd3e3998d5c58a034004e0eef9e782d57447 | [
"MIT"
] | null | null | null | users/home_work.py | annadokuchaeva2002/python-home-bot | 662acd3e3998d5c58a034004e0eef9e782d57447 | [
"MIT"
] | null | null | null | users/home_work.py | annadokuchaeva2002/python-home-bot | 662acd3e3998d5c58a034004e0eef9e782d57447 | [
"MIT"
] | null | null | null | from main import dp
from aiogram import types
from aiogram.dispatcher.filters.builtin import Text
@dp.message_handler(Text(equals="Все задания 🤩"))
async def vse_zadaniya(msg: types.Message):
await msg.answer(text="<b>Ваши задания:</b>\n\nскоро наполню")
@dp.message_handler(Text(equals="Добавить 📝"))
async d... | 29 | 107 | 0.758621 | 88 | 609 | 5.227273 | 0.511364 | 0.058696 | 0.104348 | 0.130435 | 0.45 | 0.280435 | 0.280435 | 0.208696 | 0.208696 | 0.208696 | 0 | 0 | 0.108374 | 609 | 20 | 108 | 30.45 | 0.841621 | 0 | 0 | 0.166667 | 0 | 0 | 0.226974 | 0.034539 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a674f43bddee54cbea1107c11705b1d7ee339b2f | 583 | py | Python | vcorelib/paths/context.py | vkottler/vcorelib | 97c3b92932d5b2f8c6d9cdca55f34bf167980a21 | [
"MIT"
] | 1 | 2022-03-31T09:26:04.000Z | 2022-03-31T09:26:04.000Z | vcorelib/paths/context.py | vkottler/vcorelib | 97c3b92932d5b2f8c6d9cdca55f34bf167980a21 | [
"MIT"
] | 2 | 2022-03-31T09:35:06.000Z | 2022-03-31T09:38:07.000Z | vcorelib/paths/context.py | vkottler/vcorelib | 97c3b92932d5b2f8c6d9cdca55f34bf167980a21 | [
"MIT"
] | null | null | null | """
A module for context managers related to file-system paths.
"""
# built-in
from contextlib import contextmanager
from os import chdir as _chdir
from pathlib import Path as _Path
from typing import Iterator as _Iterator
# internal
from vcorelib.paths import Pathlike as _Pathlike
from vcorelib.paths import normaliz... | 22.423077 | 68 | 0.728988 | 77 | 583 | 5.363636 | 0.519481 | 0.058111 | 0.082324 | 0.11138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.200686 | 583 | 25 | 69 | 23.32 | 0.886266 | 0.234991 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.428571 | 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 |
a675cde92791cd0863858fcb8d5b4afd657a5c32 | 467 | py | Python | tf.py | thuyduongtt/region_based_active_learning | b3653c31a44135b5680949790549799c83a5a18b | [
"MIT"
] | null | null | null | tf.py | thuyduongtt/region_based_active_learning | b3653c31a44135b5680949790549799c83a5a18b | [
"MIT"
] | null | null | null | tf.py | thuyduongtt/region_based_active_learning | b3653c31a44135b5680949790549799c83a5a18b | [
"MIT"
] | null | null | null | def test_tf():
import tensorflow as tf
from utils import list_devices
list_devices()
gpu_available = tf.test.is_gpu_available()
print('GPU available:', gpu_available)
with tf.Session(config=tf.ConfigProto(log_device_placement=True)).as_default() as sess:
print('Session has started!')
... | 22.238095 | 91 | 0.683084 | 63 | 467 | 4.714286 | 0.507937 | 0.20202 | 0.114478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197002 | 467 | 20 | 92 | 23.35 | 0.792 | 0.019272 | 0 | 0 | 0 | 0 | 0.122807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0 | 0.384615 | 0.230769 | 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 |
a68504f4c7d13cc8c0e0489a51095d8397a4bb6d | 1,370 | gyp | Python | binding.gyp | Ciccio99/electron-overlay-window | f25e29ec1ffe8f4ccb942051a986d217fb36a2b8 | [
"MIT"
] | null | null | null | binding.gyp | Ciccio99/electron-overlay-window | f25e29ec1ffe8f4ccb942051a986d217fb36a2b8 | [
"MIT"
] | null | null | null | binding.gyp | Ciccio99/electron-overlay-window | f25e29ec1ffe8f4ccb942051a986d217fb36a2b8 | [
"MIT"
] | null | null | null | {
'targets': [
{
'target_name': 'overlay_window',
'sources': [
'src/lib/addon.c',
'src/lib/napi_helpers.c'
],
'include_dirs': [
'src/lib'
],
'conditions': [
['OS=="win"', {
'defines': [
'WIN32_LEAN_AND_MEAN'
],
... | 22.459016 | 80 | 0.350365 | 90 | 1,370 | 5.177778 | 0.544444 | 0.090129 | 0.111588 | 0.085837 | 0.188841 | 0.188841 | 0.188841 | 0.188841 | 0.188841 | 0 | 0 | 0.010974 | 0.467883 | 1,370 | 60 | 81 | 22.833333 | 0.628258 | 0 | 0 | 0.333333 | 0 | 0 | 0.388321 | 0.041606 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a689a5d6a9c1f320fa1c6a898b3f880278371c7b | 769 | py | Python | directory/models/directory_access_group.py | darkismus/kompassi | 35dea2c7af2857a69cae5c5982b48f01ba56da1f | [
"CC-BY-3.0"
] | 13 | 2015-11-29T12:19:12.000Z | 2021-02-21T15:42:11.000Z | directory/models/directory_access_group.py | darkismus/kompassi | 35dea2c7af2857a69cae5c5982b48f01ba56da1f | [
"CC-BY-3.0"
] | 23 | 2015-04-29T19:43:34.000Z | 2021-02-10T05:50:17.000Z | directory/models/directory_access_group.py | darkismus/kompassi | 35dea2c7af2857a69cae5c5982b48f01ba56da1f | [
"CC-BY-3.0"
] | 11 | 2015-09-20T18:59:00.000Z | 2020-02-07T08:47:34.000Z | from django.db import models
from django.utils.translation import ugettext_lazy as _
class DirectoryAccessGroup(models.Model):
"""
Grants expiring group access to the personnel directory.
"""
organization = models.ForeignKey('core.Organization', on_delete=models.CASCADE)
group = models.ForeignKey... | 34.954545 | 83 | 0.73212 | 90 | 769 | 6.077778 | 0.511111 | 0.13894 | 0.051188 | 0.076782 | 0.234004 | 0.131627 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16775 | 769 | 21 | 84 | 36.619048 | 0.854688 | 0.072822 | 0 | 0 | 0 | 0 | 0.12769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a695aa6f1ab93783e6c03d418b1565d4a3c0d64d | 2,696 | py | Python | cli.py | hiway/adventofcode | c4b3e94ad2bc967bc684a10ddc90541d6e1657fc | [
"MIT"
] | null | null | null | cli.py | hiway/adventofcode | c4b3e94ad2bc967bc684a10ddc90541d6e1657fc | [
"MIT"
] | null | null | null | cli.py | hiway/adventofcode | c4b3e94ad2bc967bc684a10ddc90541d6e1657fc | [
"MIT"
] | null | null | null | import click
import collections
@click.group()
def cli():
pass
@cli.group()
def day1():
pass
@day1.command()
@click.argument('input_file', type=click.File())
def part1(input_file):
from day1 import part1_stanta_floor_positioning_system
for directions in input_file:
floor = part1_stanta_flo... | 23.241379 | 91 | 0.709941 | 367 | 2,696 | 5.00545 | 0.190736 | 0.102885 | 0.097986 | 0.095264 | 0.510615 | 0.375068 | 0.323353 | 0.288514 | 0.288514 | 0.21448 | 0 | 0.027975 | 0.164688 | 2,696 | 115 | 92 | 23.443478 | 0.787744 | 0 | 0 | 0.5 | 0 | 0 | 0.084972 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0.071429 | 0.130952 | 0 | 0.309524 | 0.119048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a698ed363c72fb8db096b455d881f891dde49eb2 | 6,282 | py | Python | src/src/graph_environments.py | aka-cs/ia-sim-cmp | fa26f3d961a992698ca08f4213d6eae39f3ec039 | [
"MIT"
] | null | null | null | src/src/graph_environments.py | aka-cs/ia-sim-cmp | fa26f3d961a992698ca08f4213d6eae39f3ec039 | [
"MIT"
] | null | null | null | src/src/graph_environments.py | aka-cs/ia-sim-cmp | fa26f3d961a992698ca08f4213d6eae39f3ec039 | [
"MIT"
] | null | null | null | from __future__ import annotations
from .base_classes import Event, SetEvent, DeleteEvent, GenerateEvent, MapObject, Agent, Position, Generator, \
Environment
class GraphEnvironment(Environment):
"""
Implementación particular de entorno, en el que hay noción de localizaciones y adyacencias entre estas.
... | 40.269231 | 115 | 0.639128 | 745 | 6,282 | 5.316779 | 0.216107 | 0.033325 | 0.024236 | 0.012118 | 0.34158 | 0.299419 | 0.26357 | 0.244888 | 0.225701 | 0.225701 | 0 | 0.000444 | 0.282553 | 6,282 | 155 | 116 | 40.529032 | 0.878411 | 0.334925 | 0 | 0.109589 | 1 | 0 | 0.016984 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.150685 | false | 0 | 0.027397 | 0 | 0.356164 | 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 |
a699cfaf6878aec2d41bc0a3750f8c53d818736b | 638 | py | Python | award/migrations/0002_auto_20190701_0754.py | maurinesinami/awards | 0f8e390a41a0c462cdb2104797daa4b59c986656 | [
"MIT"
] | null | null | null | award/migrations/0002_auto_20190701_0754.py | maurinesinami/awards | 0f8e390a41a0c462cdb2104797daa4b59c986656 | [
"MIT"
] | null | null | null | award/migrations/0002_auto_20190701_0754.py | maurinesinami/awards | 0f8e390a41a0c462cdb2104797daa4b59c986656 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-07-01 04:54
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('award', '0001_initial'),
]
operations = [
migrations.RenameField(
... | 23.62963 | 61 | 0.587774 | 66 | 638 | 5.454545 | 0.742424 | 0.1 | 0.077778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051454 | 0.299373 | 638 | 26 | 62 | 24.538462 | 0.753915 | 0.103448 | 0 | 0.210526 | 1 | 0 | 0.115993 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a69c988cc5ea3fab5e018e4dee803ea9a79a1f3a | 938 | py | Python | backend/gsr_booking/management/commands/load_gsrs.py | pennlabs/penn-mobile | fb3b514a55afbf6f29dd8bd589b4e76bf52e3e90 | [
"MIT"
] | 2 | 2021-11-23T18:06:40.000Z | 2022-01-05T19:13:33.000Z | backend/gsr_booking/management/commands/load_gsrs.py | pennlabs/penn-mobile | fb3b514a55afbf6f29dd8bd589b4e76bf52e3e90 | [
"MIT"
] | 30 | 2021-10-17T23:29:44.000Z | 2022-03-31T02:03:13.000Z | backend/gsr_booking/management/commands/load_gsrs.py | pennlabs/penn-mobile | fb3b514a55afbf6f29dd8bd589b4e76bf52e3e90 | [
"MIT"
] | null | null | null | import csv
from django.core.management.base import BaseCommand
from gsr_booking.models import GSR
class Command(BaseCommand):
def handle(self, *args, **kwargs):
with open("gsr_booking/data/gsr_data.csv") as data:
reader = csv.reader(data)
for i, row in enumerate(reader):
... | 31.266667 | 95 | 0.559701 | 119 | 938 | 4.344538 | 0.563025 | 0.061896 | 0.05029 | 0.061896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006452 | 0.339019 | 938 | 29 | 96 | 32.344828 | 0.827419 | 0.102345 | 0 | 0 | 0 | 0.058824 | 0.144391 | 0.034606 | 0 | 0 | 0 | 0.034483 | 0 | 1 | 0.058824 | false | 0 | 0.176471 | 0 | 0.294118 | 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 |
a6a173dfa16946d1b343a80b4e42d5cc67ea6e07 | 397 | py | Python | lolexport/log.py | dleiferives/lolexport | 894c97240893da829e96f46e2c4cdebf85846412 | [
"MIT"
] | 2 | 2021-02-23T09:21:07.000Z | 2022-03-25T15:02:50.000Z | lolexport/log.py | dleiferives/lolexport | 894c97240893da829e96f46e2c4cdebf85846412 | [
"MIT"
] | 5 | 2021-02-24T01:26:36.000Z | 2022-02-27T13:05:27.000Z | lolexport/log.py | dleiferives/lolexport | 894c97240893da829e96f46e2c4cdebf85846412 | [
"MIT"
] | 1 | 2022-02-27T02:17:17.000Z | 2022-02-27T02:17:17.000Z | from os import environ
import logging
from logzero import setup_logger # type: ignore[import]
# https://docs.python.org/3/library/logging.html#logging-levels
loglevel: int = logging.DEBUG # (10)
if "LOLEXPORT" in environ:
loglevel = int(environ["LOLEXPORT"])
# logzero handles this fine, can be imported/configu... | 28.357143 | 63 | 0.758186 | 54 | 397 | 5.537037 | 0.666667 | 0.073579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008696 | 0.130982 | 397 | 13 | 64 | 30.538462 | 0.857971 | 0.390428 | 0 | 0 | 0 | 0 | 0.114894 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a6b27c6859301d1606a8d5f073f133b9b73bc5e5 | 188 | py | Python | Code/circle.py | notha99y/Satellite-Scheduling | 6231eccf353f37ba643a7e37aa60525355f5d005 | [
"MIT"
] | 14 | 2018-04-06T22:36:30.000Z | 2022-02-15T02:36:58.000Z | Code/circle.py | notha99y/Satellite-Scheduling | 6231eccf353f37ba643a7e37aa60525355f5d005 | [
"MIT"
] | null | null | null | Code/circle.py | notha99y/Satellite-Scheduling | 6231eccf353f37ba643a7e37aa60525355f5d005 | [
"MIT"
] | 4 | 2018-04-06T22:36:57.000Z | 2022-02-15T02:37:00.000Z | import matplotlib.pyplot as plt
circle = plt.Circle((0,0),5, fill=False)
fig, ax = plt.subplots()
ax.add_artist(circle)
ax.set_xlim((-10, 10))
ax.set_ylim((-10, 10))
plt.show()
| 18.8 | 41 | 0.654255 | 33 | 188 | 3.636364 | 0.606061 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069182 | 0.154255 | 188 | 9 | 42 | 20.888889 | 0.685535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a6b564871deacaebf5076f647494e02a77ffcc72 | 2,129 | py | Python | keystoneworkout/benchmark.py | dstanek/keystone-exercises | 5023fe87896ffefb462936ca9e6a982b9d099d6c | [
"Apache-2.0"
] | null | null | null | keystoneworkout/benchmark.py | dstanek/keystone-exercises | 5023fe87896ffefb462936ca9e6a982b9d099d6c | [
"Apache-2.0"
] | null | null | null | keystoneworkout/benchmark.py | dstanek/keystone-exercises | 5023fe87896ffefb462936ca9e6a982b9d099d6c | [
"Apache-2.0"
] | null | null | null | import shelve
import sys
import threading
import time
class Benchmark(object):
def __init__(self, concurrency=10, iterations=10):
self.concurrency = concurrency
self.iterations = iterations
self.shelf = Shelf()
def __call__(self, f):
def wrapped(*args, **kwargs):
p... | 30.855072 | 103 | 0.550493 | 240 | 2,129 | 4.7 | 0.3 | 0.055851 | 0.035461 | 0.050532 | 0.238475 | 0.20656 | 0.179965 | 0.141844 | 0.076241 | 0.076241 | 0 | 0.015827 | 0.347111 | 2,129 | 68 | 104 | 31.308824 | 0.795683 | 0.006106 | 0 | 0.218182 | 0 | 0.036364 | 0.092242 | 0.015137 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.018182 | 0.072727 | null | null | 0.054545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a6b8534dfb59965e01c0a204829dc917ef20d463 | 5,938 | py | Python | src/dipus/search_js_t.py | shirou/dipus | 1c8a9cc89fb95a5c6ae99e692488496bd3fbec34 | [
"BSD-2-Clause"
] | null | null | null | src/dipus/search_js_t.py | shirou/dipus | 1c8a9cc89fb95a5c6ae99e692488496bd3fbec34 | [
"BSD-2-Clause"
] | null | null | null | src/dipus/search_js_t.py | shirou/dipus | 1c8a9cc89fb95a5c6ae99e692488496bd3fbec34 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
template = """/*
* * search_dipus
* * ~~~~~~~~~~~~~~
* *
* * Dipus JavaScript utilties for the full-text search.
* * This files is based on searchtools.js of Sphinx.
* *
* * :copyright: Copyright 2007-2012 by the Sphinx team.
* * :license: BSD, see LICENSE ... | 35.556886 | 184 | 0.492253 | 555 | 5,938 | 5.189189 | 0.376577 | 0.026736 | 0.023611 | 0.027083 | 0.097222 | 0.075 | 0.048611 | 0.033333 | 0 | 0 | 0 | 0.011902 | 0.349107 | 5,938 | 166 | 185 | 35.771084 | 0.733247 | 0.007073 | 0 | 0.3 | 0 | 0.02 | 0.996437 | 0.238887 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.006667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a6ba1034d83cf267912fbc83efe67828fa37bf25 | 2,393 | py | Python | samples/sample_file_handling.py | Wacom-Developer/universal-ink-library | 689ed90e09e912b8fc9ac249984df43a7b59aa59 | [
"Apache-2.0"
] | 5 | 2021-09-06T11:45:37.000Z | 2022-03-24T15:56:06.000Z | samples/sample_file_handling.py | Wacom-Developer/universal-ink-library | 689ed90e09e912b8fc9ac249984df43a7b59aa59 | [
"Apache-2.0"
] | null | null | null | samples/sample_file_handling.py | Wacom-Developer/universal-ink-library | 689ed90e09e912b8fc9ac249984df43a7b59aa59 | [
"Apache-2.0"
] | 2 | 2021-09-03T09:08:45.000Z | 2021-12-15T14:03:16.000Z | # -*- coding: utf-8 -*-
# Copyright © 2021 Wacom Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unle... | 50.914894 | 120 | 0.558713 | 310 | 2,393 | 4.216129 | 0.33871 | 0.012242 | 0.019128 | 0.033665 | 0.370314 | 0.370314 | 0.359602 | 0.348891 | 0.348891 | 0.295333 | 0 | 0.034913 | 0.16214 | 2,393 | 46 | 121 | 52.021739 | 0.616459 | 0.578771 | 0 | 0.117647 | 0 | 0.058824 | 0.206122 | 0.02551 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.294118 | 0 | 0.294118 | 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 |
a6c04b1be112a409e5c402b61de90de419055381 | 389 | py | Python | autharch_sharc/editor/migrations/0042_sharciiif_order.py | kingsdigitallab/autharch_sharc | 92de5fbec8cc72ce48a9e25eb634d40ac2cc83ca | [
"MIT"
] | null | null | null | autharch_sharc/editor/migrations/0042_sharciiif_order.py | kingsdigitallab/autharch_sharc | 92de5fbec8cc72ce48a9e25eb634d40ac2cc83ca | [
"MIT"
] | null | null | null | autharch_sharc/editor/migrations/0042_sharciiif_order.py | kingsdigitallab/autharch_sharc | 92de5fbec8cc72ce48a9e25eb634d40ac2cc83ca | [
"MIT"
] | null | null | null | # Generated by Django 3.0.10 on 2021-07-09 09:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('editor', '0041_themeobject_sort_order'),
]
operations = [
migrations.AddField(
model_name='sharciiif',
name='order'... | 20.473684 | 50 | 0.601542 | 41 | 389 | 5.609756 | 0.804878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07554 | 0.285347 | 389 | 18 | 51 | 21.611111 | 0.751799 | 0.118252 | 0 | 0 | 1 | 0 | 0.13783 | 0.079179 | 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 |
a6c079133086435312474069fd2c024714d94107 | 13,761 | py | Python | turtlebot3_dqn/src/turtlebot3_dqn/simulation_environment_real.py | 2529342549/turtlebot3_m_learning | 19fc961de8a993eafcd421186ad1c38473d04818 | [
"Apache-2.0"
] | 3 | 2020-01-27T09:23:50.000Z | 2022-03-24T09:58:48.000Z | turtlebot3_dqn/src/turtlebot3_dqn/simulation_environment_real.py | 2529342549/turtlebot3_machine_learning | bdb8cc0fa0110269cd3573d3f78011c3e0201e09 | [
"Apache-2.0"
] | null | null | null | turtlebot3_dqn/src/turtlebot3_dqn/simulation_environment_real.py | 2529342549/turtlebot3_machine_learning | bdb8cc0fa0110269cd3573d3f78011c3e0201e09 | [
"Apache-2.0"
] | 2 | 2020-01-27T09:23:54.000Z | 2021-09-20T04:07:13.000Z | #!/usr/bin/env python
#################################################################################
# Copyright 2018 ROBOTIS CO., LTD.
#
# 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
#
# ... | 37.70137 | 129 | 0.534263 | 1,680 | 13,761 | 4.098214 | 0.147619 | 0.049964 | 0.024837 | 0.018882 | 0.472331 | 0.397821 | 0.354829 | 0.329702 | 0.290051 | 0.279593 | 0 | 0.025331 | 0.357387 | 13,761 | 364 | 130 | 37.804945 | 0.753251 | 0.160235 | 0 | 0.384921 | 0 | 0 | 0.033295 | 0.010951 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007937 | 0.047619 | null | null | 0.06746 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a6c390b45f2052455e5898ffbc22af9be8ea36fa | 878 | py | Python | run.py | sulavmhrzn/facebook-autoreply-bot | 2196f392c03305a9d9eca9bd70e2e6dafc38c995 | [
"MIT"
] | null | null | null | run.py | sulavmhrzn/facebook-autoreply-bot | 2196f392c03305a9d9eca9bd70e2e6dafc38c995 | [
"MIT"
] | null | null | null | run.py | sulavmhrzn/facebook-autoreply-bot | 2196f392c03305a9d9eca9bd70e2e6dafc38c995 | [
"MIT"
] | null | null | null | from utils.app import SendBot
try:
from dotenv import load_dotenv
import os
except ModuleNotFoundError:
print('Required modules not found.')
exit()
load_dotenv()
env = input('Load environment variables? (y/n): ').lower()
options = ['y', 'n']
if env in options:
if env == 'n':
email = inpu... | 24.388889 | 60 | 0.595672 | 99 | 878 | 5.242424 | 0.484848 | 0.046243 | 0.061657 | 0.073218 | 0.350674 | 0.350674 | 0.350674 | 0.350674 | 0.350674 | 0.350674 | 0 | 0.0096 | 0.288155 | 878 | 35 | 61 | 25.085714 | 0.8208 | 0.042141 | 0 | 0.259259 | 0 | 0 | 0.156325 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.148148 | 0.111111 | 0 | 0.111111 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a6c7dfeaf23ecebc079761c27c16e7671b2bf8e6 | 334 | py | Python | data/ratings/tezxt.py | SLAB-NLP/Akk | baa07b0fdf8c7d8623fbd78508867c30a8a7ff6d | [
"MIT"
] | 5 | 2021-09-14T07:09:07.000Z | 2021-11-15T19:43:13.000Z | data/ratings/tezxt.py | SLAB-NLP/Akk | baa07b0fdf8c7d8623fbd78508867c30a8a7ff6d | [
"MIT"
] | null | null | null | data/ratings/tezxt.py | SLAB-NLP/Akk | baa07b0fdf8c7d8623fbd78508867c30a8a7ff6d | [
"MIT"
] | 1 | 2021-11-15T19:43:19.000Z | 2021-11-15T19:43:19.000Z | with open(r"D:\Drive\לימודים\מאגרי מידע\זמני\ancient-text-processing\jsons_unzipped\saao\saa01\catalogue.json","r",encoding="utf_8") as file:
catalog = eval(file.read())["members"]
rulers = []
for c in catalog:
cat = catalog[c]
if cat["period"] == "Neo-Assyrian" and cat.get("ruler"):
rulers +=... | 33.4 | 141 | 0.652695 | 49 | 334 | 4.408163 | 0.795918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010676 | 0.158683 | 334 | 9 | 142 | 37.111111 | 0.758007 | 0 | 0 | 0 | 0 | 0.142857 | 0.413174 | 0.287425 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a6cd531ba3259edc8b54ccf233a89ab0a561de13 | 2,179 | py | Python | tests/events/test_api_gateway_authorizer.py | chuckwondo/aws-lambda-typing | 8417ab67f2492be1508fe38b2c34bc106619a56d | [
"MIT"
] | 29 | 2021-01-07T13:35:16.000Z | 2022-03-25T07:20:54.000Z | tests/events/test_api_gateway_authorizer.py | chuckwondo/aws-lambda-typing | 8417ab67f2492be1508fe38b2c34bc106619a56d | [
"MIT"
] | 13 | 2021-02-28T00:31:00.000Z | 2022-03-29T15:24:01.000Z | tests/events/test_api_gateway_authorizer.py | chuckwondo/aws-lambda-typing | 8417ab67f2492be1508fe38b2c34bc106619a56d | [
"MIT"
] | 5 | 2021-02-27T13:50:42.000Z | 2022-01-13T15:05:44.000Z | from aws_lambda_typing.events import (
APIGatewayRequestAuthorizerEvent,
APIGatewayTokenAuthorizerEvent,
)
def test_api_gateway_token_authorizer_event() -> None:
event: APIGatewayTokenAuthorizerEvent = {
"type": "TOKEN",
"authorizationToken": "allow",
"methodArn": "arn:aws:execute-... | 36.316667 | 107 | 0.502065 | 169 | 2,179 | 6.39645 | 0.609467 | 0.055504 | 0.077706 | 0.096207 | 0.079556 | 0.079556 | 0.029602 | 0.029602 | 0.029602 | 0.029602 | 0 | 0.080745 | 0.335016 | 2,179 | 59 | 108 | 36.932203 | 0.665286 | 0.014686 | 0 | 0.072727 | 0 | 0.036364 | 0.417639 | 0.140924 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036364 | true | 0 | 0.018182 | 0 | 0.054545 | 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 |
a6cea9ab25c6ee3d7b3a6630ab209a88876c39c1 | 713 | py | Python | airflow/pyspark/weekday/avg_temperature.py | juliocnsouzadev/gcp-data-engineer | c32a516440c8989f28a33234a05a02873c7fc5b8 | [
"MIT"
] | null | null | null | airflow/pyspark/weekday/avg_temperature.py | juliocnsouzadev/gcp-data-engineer | c32a516440c8989f28a33234a05a02873c7fc5b8 | [
"MIT"
] | null | null | null | airflow/pyspark/weekday/avg_temperature.py | juliocnsouzadev/gcp-data-engineer | c32a516440c8989f28a33234a05a02873c7fc5b8 | [
"MIT"
] | null | null | null | #!/usr/bin/python
from pyspark.sql import SparkSession
spark = (
SparkSession.builder.master("yarn")
.appName("bigquery-analytics-avg-temperature")
.getOrCreate()
)
bucket = "01-logistics-backup"
spark.conf.set("temporaryGcsBucket", bucket)
history = (
spark.read.format("bigquery").option("table", "v... | 26.407407 | 105 | 0.748948 | 82 | 713 | 6.390244 | 0.54878 | 0.21374 | 0.087786 | 0.09542 | 0.259542 | 0.156489 | 0 | 0 | 0 | 0 | 0 | 0.003135 | 0.105189 | 713 | 26 | 106 | 27.423077 | 0.818182 | 0.02244 | 0 | 0 | 0 | 0 | 0.389368 | 0.132184 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 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 |
a6d31d9e8aa8ac0ef8afc1f1dce26c8c8fb6d88e | 422 | py | Python | py/tests/test_cli.py | sthagen/odata-url-parser | b05397c5fb9f33bcd2b883f82bda0a5a388eadae | [
"MIT"
] | 2 | 2020-09-11T20:01:08.000Z | 2020-09-12T11:40:43.000Z | py/tests/test_cli.py | sthagen/python-odata_url_parser | b05397c5fb9f33bcd2b883f82bda0a5a388eadae | [
"MIT"
] | 11 | 2020-09-10T20:55:45.000Z | 2020-09-12T12:51:02.000Z | py/tests/test_cli.py | sthagen/python-odata_url_parser | b05397c5fb9f33bcd2b883f82bda0a5a388eadae | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# pylint: disable=missing-docstring,unused-import,reimported
import io
import pytest # type: ignore
import odata_url_parser.cli as cli
import odata_url_parser.odata_url_parser as oup
def test_main_ok_minimal(capsys):
job = ['does not matter']
report_expected = job[0]
assert cli.m... | 26.375 | 60 | 0.725118 | 62 | 422 | 4.758065 | 0.645161 | 0.081356 | 0.142373 | 0.135593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005666 | 0.163507 | 422 | 15 | 61 | 28.133333 | 0.830028 | 0.220379 | 0 | 0 | 0 | 0 | 0.046154 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.1 | false | 0 | 0.4 | 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 |
a6d47efb044c92d4dfec30a904a3f3088fdb915c | 1,005 | py | Python | openapi_documentor/openapi/views.py | codeasashu/openapi-documentor | dde825edaac85bb117d06adf0a4eabf1f5da44f5 | [
"MIT"
] | null | null | null | openapi_documentor/openapi/views.py | codeasashu/openapi-documentor | dde825edaac85bb117d06adf0a4eabf1f5da44f5 | [
"MIT"
] | 5 | 2021-04-06T07:46:47.000Z | 2022-03-02T13:12:20.000Z | openapi_documentor/openapi/views.py | codeasashu/openapi-documentor | dde825edaac85bb117d06adf0a4eabf1f5da44f5 | [
"MIT"
] | null | null | null | from django.contrib.auth.mixins import LoginRequiredMixin
from django.shortcuts import get_object_or_404
from django.views.generic import DetailView, ListView
from taggit.models import Tag
from .models import Document
class OpenapiListView(LoginRequiredMixin, ListView):
model = Document
context_object_name =... | 24.512195 | 57 | 0.734328 | 119 | 1,005 | 5.983193 | 0.428571 | 0.042135 | 0.071629 | 0.039326 | 0.15309 | 0.092697 | 0.092697 | 0 | 0 | 0 | 0 | 0.01227 | 0.189055 | 1,005 | 40 | 58 | 25.125 | 0.86135 | 0 | 0 | 0.230769 | 0 | 0 | 0.031841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.192308 | 0 | 0.730769 | 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 |
a6da3998b2da3e2208b50eecda9469f494a116aa | 630 | py | Python | app/config.py | midnights-straychild/weatherman | 50354f0639fbcdde01e1ac6290bf71379581868b | [
"MIT"
] | null | null | null | app/config.py | midnights-straychild/weatherman | 50354f0639fbcdde01e1ac6290bf71379581868b | [
"MIT"
] | null | null | null | app/config.py | midnights-straychild/weatherman | 50354f0639fbcdde01e1ac6290bf71379581868b | [
"MIT"
] | null | null | null | class Config:
conf = {
"labels": {
"pageTitle": "Weatherman V0.0.1"
},
"db.database": "weatherman",
"db.username": "postgres",
"db.password": "postgres",
"navigation": [
{
"url": "/",
"name": "Home"
}... | 21 | 44 | 0.339683 | 45 | 630 | 4.733333 | 0.555556 | 0.056338 | 0.131455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009615 | 0.504762 | 630 | 29 | 45 | 21.724138 | 0.673077 | 0 | 0 | 0 | 0 | 0 | 0.233333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0.037037 | 0 | 0.074074 | 0.222222 | 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 |
a6e3c3ffa2830e6dc6e8d6bc0393272aef1d0fd6 | 349 | py | Python | tab2comma.py | Guerillero/GeolocationFun | f61be4f2b3e0a6a2c4641f83ae29ff161eb861fe | [
"MIT"
] | 1 | 2016-03-11T10:26:08.000Z | 2016-03-11T10:26:08.000Z | tab2comma.py | Guerillero/GeolocationFun | f61be4f2b3e0a6a2c4641f83ae29ff161eb861fe | [
"MIT"
] | null | null | null | tab2comma.py | Guerillero/GeolocationFun | f61be4f2b3e0a6a2c4641f83ae29ff161eb861fe | [
"MIT"
] | null | null | null | #Converts the geo_data tvs into a more ArcMap friendly csv
import csv
import sys
fin = open('geo_data.tsv', 'r')
fout = open('geo_data.csv', 'w')
csv.field_size_limit(sys.maxsize)
tabfile = csv.reader(fin, dialect=csv.excel_tab)
commafile = csv.writer(fout, dialect=csv.excel)
for row in tabfile:
commafile.... | 20.529412 | 58 | 0.724928 | 57 | 349 | 4.333333 | 0.631579 | 0.08502 | 0.089069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151862 | 349 | 16 | 59 | 21.8125 | 0.834459 | 0.163324 | 0 | 0 | 0 | 0 | 0.103093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a6e636c3407d17a05d2d215c473b50da1c8bf471 | 464 | py | Python | systemfixtures/tests/test_users.py | alejdg/systemfixtures | d1c42d83c3dca2a36b52e8fc214639ebcb1cd8a1 | [
"MIT"
] | 13 | 2017-01-24T15:25:47.000Z | 2022-01-06T23:56:06.000Z | systemfixtures/tests/test_users.py | cjwatson/systemfixtures | 6ff52e224585d8fab2908dc08a22fe36dcaf93d4 | [
"MIT"
] | 10 | 2017-03-08T09:36:01.000Z | 2022-02-09T11:08:00.000Z | systemfixtures/tests/test_users.py | cjwatson/systemfixtures | 6ff52e224585d8fab2908dc08a22fe36dcaf93d4 | [
"MIT"
] | 5 | 2017-03-08T09:30:51.000Z | 2022-02-05T23:22:25.000Z | import pwd
from testtools import TestCase
from ..users import FakeUsers
class FakeUsersTest(TestCase):
def setUp(self):
super(FakeUsersTest, self).setUp()
self.users = self.useFixture(FakeUsers())
def test_real(self):
info = pwd.getpwnam("root")
self.assertEqual(0, info.pw_... | 21.090909 | 49 | 0.642241 | 58 | 464 | 5.068966 | 0.465517 | 0.061224 | 0.102041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019774 | 0.237069 | 464 | 21 | 50 | 22.095238 | 0.810734 | 0 | 0 | 0 | 0 | 0 | 0.021552 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.214286 | false | 0 | 0.214286 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a6e82e8401f083b412aeb15f384d0aa8ee6b7b91 | 5,666 | py | Python | StatisticalModelling.py | bdolenc/Zemanta-challenge | 5ece77c48bf6da4e96de6bceb910ac77496f54e2 | [
"MIT"
] | null | null | null | StatisticalModelling.py | bdolenc/Zemanta-challenge | 5ece77c48bf6da4e96de6bceb910ac77496f54e2 | [
"MIT"
] | null | null | null | StatisticalModelling.py | bdolenc/Zemanta-challenge | 5ece77c48bf6da4e96de6bceb910ac77496f54e2 | [
"MIT"
] | null | null | null | #The code is published under MIT license.
from sklearn.ensemble import RandomForestClassifier
from sklearn.ensemble import ExtraTreesClassifier
from sklearn.ensemble import GradientBoostingClassifier
from sklearn import cross_validation
from sklearn.cross_validation import StratifiedKFold
from sklearn.metrics import ro... | 35.192547 | 116 | 0.667137 | 844 | 5,666 | 4.242891 | 0.228673 | 0.018989 | 0.006981 | 0.01117 | 0.26138 | 0.201899 | 0.159453 | 0.105557 | 0.080983 | 0.080983 | 0 | 0.010486 | 0.208966 | 5,666 | 160 | 117 | 35.4125 | 0.788487 | 0.229615 | 0 | 0.025974 | 0 | 0 | 0.107629 | 0.039301 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.12987 | null | null | 0.077922 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a6efb681feeb49e4829de2d74d70c18a039c51a6 | 719 | py | Python | PythonEdition/03_lengthOfLongestSubstring.py | cxiaolong/Algorithm-Practice | 6f3d3f4b14a3fc170a3dc47b2ab24f8e37cb941c | [
"MIT"
] | null | null | null | PythonEdition/03_lengthOfLongestSubstring.py | cxiaolong/Algorithm-Practice | 6f3d3f4b14a3fc170a3dc47b2ab24f8e37cb941c | [
"MIT"
] | null | null | null | PythonEdition/03_lengthOfLongestSubstring.py | cxiaolong/Algorithm-Practice | 6f3d3f4b14a3fc170a3dc47b2ab24f8e37cb941c | [
"MIT"
] | null | null | null | class Solution:
def lengthOfLongestSubstring(self, s: str) -> int:
occ = set()
n = len(s)
max_length = 0
cur = 0
for i in range(n):
if i != 0:
# 左指针向右移动一格,移除一个字符
occ.remove(s[i-1])
while cur < n and s[cur] not in occ:
... | 27.653846 | 54 | 0.527121 | 84 | 719 | 4.369048 | 0.464286 | 0.098093 | 0.326975 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023707 | 0.354659 | 719 | 26 | 55 | 27.653846 | 0.767241 | 0.022253 | 0 | 0 | 0 | 0 | 0.038462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0 | 0 | 0.130435 | 0.173913 | 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 |
a6f04c096ac02af94095dc0b90b868e0e2b87e2f | 2,750 | py | Python | gefen-hdsdi2dvi.py | timvideos/panacontrol | 3fbaec8d9491255735b8f685fc05bd1abc078a96 | [
"Apache-2.0"
] | null | null | null | gefen-hdsdi2dvi.py | timvideos/panacontrol | 3fbaec8d9491255735b8f685fc05bd1abc078a96 | [
"Apache-2.0"
] | 2 | 2015-01-06T02:36:27.000Z | 2015-01-20T00:06:51.000Z | gefen-hdsdi2dvi.py | timvideos/panacontrol | 3fbaec8d9491255735b8f685fc05bd1abc078a96 | [
"Apache-2.0"
] | 2 | 2015-01-05T21:20:54.000Z | 2022-01-13T00:20:48.000Z | #!/usr/bin/python
import fcntl
import struct
import sys
import termios
import time
import math
import os
class SerialPort(object):
def __init__(self, tty_name):
self.tty_name = tty_name
self.tty = None
self.old_termios = None
self.InitTTY()
def __del__(self):
if self.tty and self.old_termios:... | 26.960784 | 108 | 0.560727 | 353 | 2,750 | 4.240793 | 0.325779 | 0.056112 | 0.04676 | 0.050768 | 0.167001 | 0.167001 | 0.167001 | 0.167001 | 0.167001 | 0.167001 | 0 | 0.022085 | 0.292 | 2,750 | 101 | 109 | 27.227723 | 0.74679 | 0.258182 | 0 | 0.151515 | 0 | 0 | 0.048187 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015152 | 0.106061 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a6f141e9d9f97e34bca576e7230af21be66d021b | 18,603 | py | Python | main.py | 3ntr0phy/Binance_New_Coins_Scraper | 8d5dadf937f818f079aa64b3bc56381d7caff56b | [
"MIT"
] | null | null | null | main.py | 3ntr0phy/Binance_New_Coins_Scraper | 8d5dadf937f818f079aa64b3bc56381d7caff56b | [
"MIT"
] | null | null | null | main.py | 3ntr0phy/Binance_New_Coins_Scraper | 8d5dadf937f818f079aa64b3bc56381d7caff56b | [
"MIT"
] | null | null | null | import os
import re
import time
import json
import requests
import threading
import traceback
from json_manage import *
from binance_key import *
from config import *
from datetime import datetime, timedelta
import dateutil.parser as dparser
ARTICLES_URL = 'https://www.binance.com/bapi/composite/v1/public/cms/articl... | 40.975771 | 2,739 | 0.563619 | 2,142 | 18,603 | 4.729225 | 0.339402 | 0.012438 | 0.019546 | 0.017966 | 0.287167 | 0.215597 | 0.199013 | 0.166041 | 0.140276 | 0.131787 | 0 | 0.008344 | 0.2849 | 18,603 | 454 | 2,740 | 40.975771 | 0.753138 | 0.039295 | 0 | 0.302469 | 0 | 0.009259 | 0.187398 | 0.010931 | 0 | 0 | 0 | 0.002203 | 0 | 1 | 0.058642 | false | 0.003086 | 0.037037 | 0.003086 | 0.12037 | 0.012346 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a6fed8cafb5d0edd2dc00b848834bd0e891d7ca5 | 379 | py | Python | Drawing Book/code.py | swy20190/HackerRankChallenge | c7f73e72daa5a9f892e07ab8fc1bc4d71f240c2a | [
"MIT"
] | null | null | null | Drawing Book/code.py | swy20190/HackerRankChallenge | c7f73e72daa5a9f892e07ab8fc1bc4d71f240c2a | [
"MIT"
] | null | null | null | Drawing Book/code.py | swy20190/HackerRankChallenge | c7f73e72daa5a9f892e07ab8fc1bc4d71f240c2a | [
"MIT"
] | null | null | null | import os
def pageCount(n, p):
# Write your code here
front_flip = int(p/2)
end_flip = int(n/2)-front_flip
return min(front_flip, end_flip)
if __name__ == '__main__':
fptr = open(os.environ['OUTPUT_PATH'], 'w')
n = int(input().strip())
p = int(input().strip())
result = pageCount(n... | 16.478261 | 47 | 0.591029 | 57 | 379 | 3.684211 | 0.54386 | 0.128571 | 0.104762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00692 | 0.237467 | 379 | 22 | 48 | 17.227273 | 0.719723 | 0.05277 | 0 | 0 | 0 | 0 | 0.061625 | 0 | 0 | 0 | 0 | 0.045455 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a6ff14ad05f8ebe1c83e39372f5bf76d98c7dc1d | 4,944 | py | Python | pylearn2/sampling/replace_samples.py | CKehl/pylearn2 | 086a198b9f437cf03c35d606e6b3b56b4634ebd8 | [
"BSD-3-Clause"
] | null | null | null | pylearn2/sampling/replace_samples.py | CKehl/pylearn2 | 086a198b9f437cf03c35d606e6b3b56b4634ebd8 | [
"BSD-3-Clause"
] | null | null | null | pylearn2/sampling/replace_samples.py | CKehl/pylearn2 | 086a198b9f437cf03c35d606e6b3b56b4634ebd8 | [
"BSD-3-Clause"
] | null | null | null | '''
Created on Apr 16, 2015
@author: christian
'''
from optparse import OptionParser
import numpy
import os
from os import listdir
from os.path import isfile, join
import cPickle
import glob
def unpickle(file):
fo = open(file, 'rb')
dictionary = cPickle.load(fo)
fo.close()
return dictionary
if __na... | 34.573427 | 145 | 0.63835 | 733 | 4,944 | 4.061392 | 0.188267 | 0.032247 | 0.024185 | 0.02956 | 0.327511 | 0.289889 | 0.217669 | 0.176688 | 0.142425 | 0.095398 | 0 | 0.012456 | 0.204288 | 4,944 | 142 | 146 | 34.816901 | 0.744281 | 0.054409 | 0 | 0.125 | 0 | 0 | 0.137336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.067308 | null | null | 0.048077 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a6ff7fff18ec58c6987302477424ca3924375eef | 4,332 | py | Python | GAN/CGAN/cgan_mnist.py | fengjiran/scholar_project | 35e86b7a8d0226ad0fee3b2983821a3f331f68aa | [
"Apache-2.0"
] | 3 | 2017-08-20T08:47:18.000Z | 2019-06-21T06:09:27.000Z | GAN/CGAN/cgan_mnist.py | fengjiran/scholar_project | 35e86b7a8d0226ad0fee3b2983821a3f331f68aa | [
"Apache-2.0"
] | null | null | null | GAN/CGAN/cgan_mnist.py | fengjiran/scholar_project | 35e86b7a8d0226ad0fee3b2983821a3f331f68aa | [
"Apache-2.0"
] | null | null | null | from __future__ import division
import numpy as np
from keras.models import Model, Sequential
from keras.optimizers import SGD, Adam
from keras.layers import Input, Dense, Dropout, LeakyReLU, concatenate
from keras.layers.normalization import BatchNormalization
from keras.regularizers import l1, l1_l2
from keras... | 35.801653 | 99 | 0.560018 | 513 | 4,332 | 4.520468 | 0.280702 | 0.025873 | 0.028029 | 0.045278 | 0.138853 | 0.080207 | 0.080207 | 0.018111 | 0.018111 | 0 | 0 | 0.036547 | 0.336796 | 4,332 | 120 | 100 | 36.1 | 0.770623 | 0.035088 | 0 | 0.082353 | 0 | 0 | 0.030258 | 0.007937 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.129412 | null | null | 0.035294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a6ffb2cce71e31e979d8246a2d1f4abb5ecfebb0 | 1,516 | py | Python | user/migrations/0002_auto_20200816_0510.py | moewahed/trade_cycle | 8ace51f08781a568ef087234b65a7864236dfcaf | [
"MIT"
] | null | null | null | user/migrations/0002_auto_20200816_0510.py | moewahed/trade_cycle | 8ace51f08781a568ef087234b65a7864236dfcaf | [
"MIT"
] | null | null | null | user/migrations/0002_auto_20200816_0510.py | moewahed/trade_cycle | 8ace51f08781a568ef087234b65a7864236dfcaf | [
"MIT"
] | null | null | null | # Generated by Django 2.2 on 2020-08-16 02:10
import django.core.validators
from django.db import migrations, models
import user.model_addon
class Migration(migrations.Migration):
dependencies = [
('user', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name=... | 43.314286 | 364 | 0.64314 | 169 | 1,516 | 5.656805 | 0.408284 | 0.033473 | 0.062762 | 0.091004 | 0.563808 | 0.563808 | 0.384937 | 0.246862 | 0.117155 | 0.117155 | 0 | 0.028053 | 0.200528 | 1,516 | 34 | 365 | 44.588235 | 0.760726 | 0.028364 | 0 | 0.357143 | 1 | 0.071429 | 0.275323 | 0.059823 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.107143 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4701b69ece1ffb86a010433c4dab85c899b9d3ee | 951 | py | Python | App/migrations/0001_initial.py | GnomGad/BackendDjangoTodoServer | 0aae8e5dc751b8914ee81e280a248a4154d8d5c0 | [
"MIT"
] | null | null | null | App/migrations/0001_initial.py | GnomGad/BackendDjangoTodoServer | 0aae8e5dc751b8914ee81e280a248a4154d8d5c0 | [
"MIT"
] | null | null | null | App/migrations/0001_initial.py | GnomGad/BackendDjangoTodoServer | 0aae8e5dc751b8914ee81e280a248a4154d8d5c0 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.6 on 2020-07-10 22:53
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Person',
fields=[
... | 29.71875 | 114 | 0.566772 | 94 | 951 | 5.648936 | 0.542553 | 0.045198 | 0.052731 | 0.082863 | 0.297552 | 0.297552 | 0.297552 | 0.297552 | 0.297552 | 0.297552 | 0 | 0.026946 | 0.297581 | 951 | 31 | 115 | 30.677419 | 0.767964 | 0.047319 | 0 | 0.416667 | 1 | 0 | 0.057522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4708f606f6729a7f4233abfc1e9dcd8087cb2f67 | 196 | py | Python | python-objects_statements_and_data_structures-practice-master/even_in_range.py | valcal/python_practice | bbc9b7075a5af7b7461afa322acb8c946bad1024 | [
"MIT"
] | null | null | null | python-objects_statements_and_data_structures-practice-master/even_in_range.py | valcal/python_practice | bbc9b7075a5af7b7461afa322acb8c946bad1024 | [
"MIT"
] | null | null | null | python-objects_statements_and_data_structures-practice-master/even_in_range.py | valcal/python_practice | bbc9b7075a5af7b7461afa322acb8c946bad1024 | [
"MIT"
] | null | null | null | """
EVEN IN RANGE: Use range() to print all the even numbers from 0 to 10.
"""
for number in range(11):
if number % 2 == 0:
if number == 0:
continue
print(number)
| 19.6 | 70 | 0.55102 | 30 | 196 | 3.6 | 0.6 | 0.12963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061538 | 0.336735 | 196 | 9 | 71 | 21.777778 | 0.769231 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
470a71e16d544812e51ec3558f13c543292f57e3 | 935 | py | Python | DummyTile.py | godesab/minesweep | 06396f5be237438411a4df6370b739d0d38e89f3 | [
"MIT"
] | null | null | null | DummyTile.py | godesab/minesweep | 06396f5be237438411a4df6370b739d0d38e89f3 | [
"MIT"
] | null | null | null | DummyTile.py | godesab/minesweep | 06396f5be237438411a4df6370b739d0d38e89f3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
class DummyTile:
def __init__(self, pos, label=None):
self.pos = pos
# Label tells adjacent mine count for this tile. Int between 0...8 or None if unknown
self.label = label
self.checked = False
self.marked = False
self.adj_mines = None
... | 23.974359 | 93 | 0.605348 | 127 | 935 | 4.259843 | 0.283465 | 0.12939 | 0.103512 | 0.118299 | 0.160813 | 0.088725 | 0 | 0 | 0 | 0 | 0 | 0.009245 | 0.305882 | 935 | 38 | 94 | 24.605263 | 0.824345 | 0.112299 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0 | 0 | 0.346154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
470c68bee171c558b2fa27895830521e28ccc585 | 7,758 | py | Python | tests/acceptance/features/component/environment.py | AlvaroVega/fiware-facts | 6224dd8d87c361bde5eb87f1d9d61a386c5632a8 | [
"Apache-2.0"
] | 1 | 2017-11-28T14:52:49.000Z | 2017-11-28T14:52:49.000Z | tests/acceptance/features/component/environment.py | AlvaroVega/fiware-facts | 6224dd8d87c361bde5eb87f1d9d61a386c5632a8 | [
"Apache-2.0"
] | 70 | 2015-01-26T17:32:39.000Z | 2018-08-15T14:28:19.000Z | tests/acceptance/features/component/environment.py | AlvaroVega/fiware-facts | 6224dd8d87c361bde5eb87f1d9d61a386c5632a8 | [
"Apache-2.0"
] | 9 | 2015-01-22T09:29:19.000Z | 2020-03-05T19:27:56.000Z | # -*- coding: utf-8 -*-
#
# Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U
#
# This file is parpt of FI-WARE project.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
#
# You may obtain a copy of the License at:
#
# ... | 45.905325 | 121 | 0.792472 | 928 | 7,758 | 6.204741 | 0.231681 | 0.172282 | 0.123828 | 0.141716 | 0.502084 | 0.435742 | 0.413512 | 0.413512 | 0.372178 | 0.338138 | 0 | 0.001786 | 0.134055 | 7,758 | 168 | 122 | 46.178571 | 0.855314 | 0.195669 | 0 | 0.133333 | 0 | 0 | 0.059981 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.055556 | 0.111111 | 0 | 0.177778 | 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 |
470f7eeda75283f4e7198eb5c53e3a28834ff646 | 1,227 | py | Python | config.py | paris3200/flask-inventory | fe858e5c12a8e193590e978e573a3891dfde37de | [
"MIT"
] | 6 | 2016-05-29T05:24:39.000Z | 2021-12-02T14:23:36.000Z | config.py | paris3200/flask-inventory | fe858e5c12a8e193590e978e573a3891dfde37de | [
"MIT"
] | 20 | 2016-11-04T23:22:25.000Z | 2019-10-21T13:39:49.000Z | config.py | paris3200/flask-inventory | fe858e5c12a8e193590e978e573a3891dfde37de | [
"MIT"
] | 7 | 2016-03-27T12:19:33.000Z | 2019-11-18T23:11:23.000Z | # config.jinja2
import os
basedir = os.path.abspath(os.path.dirname(__file__))
class BaseConfig(object):
"""Base configuration."""
SECRET_KEY = '8abcd123352a91a90aecd86d3d0dc5a5844894c24338ad13639bc593fdb20330d67a'
DEBUG = False
BCRYPT_LOG_ROUNDS = 13
WTF_CSRF_ENABLED = True
DEBUG_TB_ENABLED ... | 27.886364 | 87 | 0.731051 | 125 | 1,227 | 6.872 | 0.416 | 0.083818 | 0.065192 | 0.088475 | 0.209546 | 0.153667 | 0.153667 | 0.153667 | 0.153667 | 0.153667 | 0 | 0.058128 | 0.172779 | 1,227 | 43 | 88 | 28.534884 | 0.788177 | 0.08965 | 0 | 0.413793 | 0 | 0 | 0.187044 | 0.144161 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.965517 | 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 |
4715857bcca4a207ecfd692fa8d2496336300ae1 | 449,136 | py | Python | py-fedex/pyfedex/location_service_v11.py | QwadwoNyamekye/purplship-carriers | ce34e3054de246e3d85ddf6928b607193d061ae2 | [
"MIT"
] | 2 | 2021-04-12T22:40:28.000Z | 2021-04-21T18:28:31.000Z | py-fedex/pyfedex/location_service_v11.py | QwadwoNyamekye/purplship-carriers | ce34e3054de246e3d85ddf6928b607193d061ae2 | [
"MIT"
] | 2 | 2021-01-29T07:14:31.000Z | 2021-02-18T18:29:23.000Z | py-fedex/pyfedex/location_service_v11.py | QwadwoNyamekye/purplship-carriers | ce34e3054de246e3d85ddf6928b607193d061ae2 | [
"MIT"
] | 3 | 2020-09-09T17:04:46.000Z | 2021-03-05T00:32:32.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated Fri Mar 6 15:54:36 2020 by generateDS.py version 2.35.15.
# Python 3.8.1 (v3.8.1:1b293b6006, Dec 18 2019, 14:08:53) [Clang 6.0 (clang-600.0.57)]
#
# Command line options:
# ('--no-namespace-defs', '')
# ('-o', './python/location_service_v11.py')
#
# Com... | 51.282941 | 513 | 0.664514 | 44,658 | 449,136 | 6.357047 | 0.024968 | 0.020959 | 0.017785 | 0.017591 | 0.708707 | 0.640562 | 0.61966 | 0.578496 | 0.563219 | 0.530608 | 0 | 0.001814 | 0.245182 | 449,136 | 8,757 | 514 | 51.288798 | 0.835589 | 0.026929 | 0 | 0.601674 | 1 | 0.000121 | 0.082148 | 0.038459 | 0 | 0 | 0 | 0 | 0 | 1 | 0.132371 | false | 0.013225 | 0.017957 | 0.032031 | 0.273235 | 0.06018 | 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 |
4718c3e6f88080fb3ddbf1b2d1feee70ac12c913 | 1,669 | py | Python | src/beanmachine/applications/hme/interface.py | horizon-blue/beanmachine-1 | b13e4e3e28ffb860947eb8046863b0cabb581222 | [
"MIT"
] | 177 | 2021-12-12T14:19:05.000Z | 2022-03-24T05:48:10.000Z | src/beanmachine/applications/hme/interface.py | horizon-blue/beanmachine-1 | b13e4e3e28ffb860947eb8046863b0cabb581222 | [
"MIT"
] | 171 | 2021-12-11T06:12:05.000Z | 2022-03-31T20:26:29.000Z | src/beanmachine/applications/hme/interface.py | horizon-blue/beanmachine-1 | b13e4e3e28ffb860947eb8046863b0cabb581222 | [
"MIT"
] | 31 | 2021-12-11T06:27:19.000Z | 2022-03-25T13:31:56.000Z | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from typing import Tuple
import pandas as pd
from .configs import InferConfig, ModelConfig
from .null_mixture_model import NullMixtureMixe... | 34.770833 | 78 | 0.720791 | 200 | 1,669 | 5.905 | 0.415 | 0.077053 | 0.067739 | 0.040644 | 0.140559 | 0.140559 | 0.066046 | 0 | 0 | 0 | 0 | 0 | 0.218095 | 1,669 | 47 | 79 | 35.510638 | 0.904981 | 0.456561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
472102e62d417732e12272e8b4c6fc0b9a1fb145 | 352 | py | Python | api/migrations/0002_auto_20181108_2243.py | apigram/jade-api | 1aece29c3109db68897fdf854be431554e7f2863 | [
"Apache-2.0"
] | null | null | null | api/migrations/0002_auto_20181108_2243.py | apigram/jade-api | 1aece29c3109db68897fdf854be431554e7f2863 | [
"Apache-2.0"
] | null | null | null | api/migrations/0002_auto_20181108_2243.py | apigram/jade-api | 1aece29c3109db68897fdf854be431554e7f2863 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.1.3 on 2018-11-08 11:43
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('api', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='company',
old_name='contact',
new_na... | 18.526316 | 47 | 0.571023 | 37 | 352 | 5.324324 | 0.810811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078512 | 0.3125 | 352 | 18 | 48 | 19.555556 | 0.735537 | 0.127841 | 0 | 0 | 1 | 0 | 0.121311 | 0 | 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 |
5b25cfe6974828d106200cab739a7140d4fcfc56 | 306 | py | Python | settings/settings.py | guilhermegch/telegram-twitter-bot | 463517569e60d4caab5bf4fd36deac9b7f1bc2cd | [
"MIT"
] | 2 | 2020-12-24T15:10:43.000Z | 2021-02-13T05:23:10.000Z | settings/settings.py | guilhermegch/telegram-twitter-bot | 463517569e60d4caab5bf4fd36deac9b7f1bc2cd | [
"MIT"
] | 1 | 2021-02-26T16:30:36.000Z | 2021-02-26T16:30:36.000Z | settings/settings.py | guilhermegch/telegram-twitter-bot | 463517569e60d4caab5bf4fd36deac9b7f1bc2cd | [
"MIT"
] | null | null | null | import os
from dotenv import load_dotenv
load_dotenv()
TELEGRAM_TOKEN = os.getenv("TELEGRAM_TOKEN")
CHAT_ID = os.getenv("CHAT_ID")
API_KEY = os.getenv("API_KEY")
API_SECRET_KEY = os.getenv("API_SECRET_KEY")
ACCESS_TOKEN = os.getenv("ACCESS_TOKEN")
ACCESS_TOKEN_SECRET = os.getenv("ACCESS_TOKEN_SECRET")
| 23.538462 | 54 | 0.784314 | 49 | 306 | 4.530612 | 0.285714 | 0.216216 | 0.117117 | 0.126126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091503 | 306 | 12 | 55 | 25.5 | 0.798561 | 0 | 0 | 0 | 0 | 0 | 0.238562 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 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 |
5b26ea4b942bbea2547de23d670546a45074eb42 | 292 | py | Python | Python Basics/Week 4/assess_ac4_1_1_8.py | sasathornt/Python-3-Programming-Specialization | 34a204662112f8977bdd2831687a020d775d6f39 | [
"MIT"
] | 1 | 2020-04-17T14:22:15.000Z | 2020-04-17T14:22:15.000Z | Python Basics/Week 4/assess_ac4_1_1_8.py | sasathornt/Python-3-Programming-Specialization | 34a204662112f8977bdd2831687a020d775d6f39 | [
"MIT"
] | null | null | null | Python Basics/Week 4/assess_ac4_1_1_8.py | sasathornt/Python-3-Programming-Specialization | 34a204662112f8977bdd2831687a020d775d6f39 | [
"MIT"
] | null | null | null |
##Write code to switch the order of the winners list so that it is now Z to A. Assign this list to the variable z_winners.
winners = ['Alice Munro', 'Alvin E. Roth', 'Kazuo Ishiguro', 'Malala Yousafzai', 'Rainer Weiss', 'Youyou Tu']
z_winners = winners
z_winners.reverse()
print(z_winners) | 36.5 | 122 | 0.732877 | 49 | 292 | 4.285714 | 0.693878 | 0.152381 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160959 | 292 | 8 | 123 | 36.5 | 0.857143 | 0.410959 | 0 | 0 | 0 | 0 | 0.441176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
5b31e7140c554c44dbfaf956752e0ce5c615d9a0 | 3,647 | py | Python | sinfo/perifericos/views.py | webdesigncuba/Sinfo | 15998b43057b0c0f13083a3017f27740c64239bf | [
"MIT"
] | null | null | null | sinfo/perifericos/views.py | webdesigncuba/Sinfo | 15998b43057b0c0f13083a3017f27740c64239bf | [
"MIT"
] | null | null | null | sinfo/perifericos/views.py | webdesigncuba/Sinfo | 15998b43057b0c0f13083a3017f27740c64239bf | [
"MIT"
] | null | null | null | #
# Created on Sat Dec 25 2021
#
# The MIT License (MIT)
# Copyright (c) 2021 David Cordero Rosales
#
# 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 li... | 33.458716 | 122 | 0.718124 | 466 | 3,647 | 5.527897 | 0.38412 | 0.03882 | 0.048913 | 0.026398 | 0.258152 | 0.173137 | 0.173137 | 0.144798 | 0.127717 | 0.065994 | 0 | 0.004104 | 0.198245 | 3,647 | 108 | 123 | 33.768519 | 0.876881 | 0.337538 | 0 | 0.322034 | 0 | 0 | 0.080571 | 0.024339 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084746 | false | 0 | 0.20339 | 0 | 0.694915 | 0.050847 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5b332c72b302cfe177178082cf6acc6352315dcc | 2,548 | py | Python | autogluon/utils/tabular/ml/models/tab_transformer/hyperparameters/parameters.py | joshr17/autogluon | 893cf20ad761751886a827e2d10710eb6df61291 | [
"Apache-2.0"
] | null | null | null | autogluon/utils/tabular/ml/models/tab_transformer/hyperparameters/parameters.py | joshr17/autogluon | 893cf20ad761751886a827e2d10710eb6df61291 | [
"Apache-2.0"
] | null | null | null | autogluon/utils/tabular/ml/models/tab_transformer/hyperparameters/parameters.py | joshr17/autogluon | 893cf20ad761751886a827e2d10710eb6df61291 | [
"Apache-2.0"
] | null | null | null | from ....constants import BINARY, MULTICLASS, REGRESSION
def get_fixed_params():
""" Parameters that currently cannot be searched during HPO
TODO: HPO NOT CURRENTLY IMPLEMENTED FOR TABTRANSFORMER
Will need to figure out what (in future PR) is "fixed" and what is searchable. """
fixed_params = {'batch_s... | 44.701754 | 86 | 0.431319 | 203 | 2,548 | 5.147783 | 0.615764 | 0.063158 | 0.040191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030712 | 0.47606 | 2,548 | 56 | 87 | 45.5 | 0.75206 | 0.086735 | 0 | 0 | 0 | 0 | 0.245455 | 0.039394 | 0 | 0 | 0 | 0.017857 | 0 | 1 | 0.043478 | false | 0 | 0.021739 | 0 | 0.108696 | 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 |
5b346d8eb912e92694627beff6d3cb24dfe08b7c | 327 | py | Python | Accounts/migrations/0014_remove_timetable_class_time.py | Anand911/E-LEARNING-SCLMAXO- | a16c317ae482c91f4f91c967ddc3e498a43ac7e9 | [
"MIT"
] | 1 | 2021-02-14T10:43:21.000Z | 2021-02-14T10:43:21.000Z | Accounts/migrations/0014_remove_timetable_class_time.py | Anand911/E-LEARNING-SCLMAXO- | a16c317ae482c91f4f91c967ddc3e498a43ac7e9 | [
"MIT"
] | 1 | 2021-01-12T07:22:08.000Z | 2021-01-13T19:07:02.000Z | Accounts/migrations/0014_remove_timetable_class_time.py | Anand911/E-LEARNING-SCLMAXO- | a16c317ae482c91f4f91c967ddc3e498a43ac7e9 | [
"MIT"
] | 6 | 2020-12-13T17:46:37.000Z | 2021-02-10T13:47:25.000Z | # Generated by Django 3.1.3 on 2020-12-18 12:59
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Accounts', '0013_timetable'),
]
operations = [
migrations.RemoveField(
model_name='timetable',
name='class_time',
),... | 18.166667 | 47 | 0.590214 | 34 | 327 | 5.588235 | 0.735294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082609 | 0.296636 | 327 | 17 | 48 | 19.235294 | 0.743478 | 0.137615 | 0 | 0 | 1 | 0 | 0.146429 | 0 | 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 |
5b37b2fb348d45fd02d8f2acaf70e041233fe2f7 | 1,334 | py | Python | fastflix/encoders/copy/settings_panel.py | AwesomeGitHubRepos/FastFlix | 60adf2b68a13907ac17013cb621867b2b302c101 | [
"MIT"
] | 1 | 2021-06-14T04:35:50.000Z | 2021-06-14T04:35:50.000Z | fastflix/encoders/copy/settings_panel.py | AwesomeGitHubRepos/FastFlix | 60adf2b68a13907ac17013cb621867b2b302c101 | [
"MIT"
] | 1 | 2020-12-24T13:08:56.000Z | 2020-12-24T13:08:56.000Z | fastflix/encoders/copy/settings_panel.py | leonardyan/FastFlix | 01f19c2de74945a4c60db61711aea9d3fe01b0cc | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import logging
from qtpy import QtWidgets
from fastflix.encoders.common.setting_panel import SettingPanel
from fastflix.language import t
from fastflix.models.encode import CopySettings
from fastflix.models.fastflix_app import FastFlixApp
logger = logging.getLogger("fastflix")
class Copy(Se... | 36.054054 | 109 | 0.715142 | 173 | 1,334 | 5.317919 | 0.462428 | 0.052174 | 0.086957 | 0.071739 | 0.269565 | 0.206522 | 0.206522 | 0.206522 | 0.206522 | 0.206522 | 0 | 0.013799 | 0.185157 | 1,334 | 36 | 110 | 37.055556 | 0.832567 | 0.015742 | 0 | 0 | 0 | 0 | 0.099924 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.230769 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5b3912de771cac5c847fca87045280e13b237dd4 | 2,048 | py | Python | tests/test_params.py | matthewjohnpayne/MPCData | bf5cc4b846437928d3c7e4bfb8d809f8bf9f9dc4 | [
"MIT"
] | null | null | null | tests/test_params.py | matthewjohnpayne/MPCData | bf5cc4b846437928d3c7e4bfb8d809f8bf9f9dc4 | [
"MIT"
] | null | null | null | tests/test_params.py | matthewjohnpayne/MPCData | bf5cc4b846437928d3c7e4bfb8d809f8bf9f9dc4 | [
"MIT"
] | null | null | null | # mpcdata/tests/test_query.py
# import pytest
# Third-party imports
import os
# Import the specific package/module/function we are testing
import mpcdata.params as params
# from .context import mpcdata
def test_required_dictionaries_exist():
"""
Does params.py contain all of the required dictionaries ?
"... | 32 | 111 | 0.679199 | 244 | 2,048 | 5.577869 | 0.307377 | 0.039677 | 0.036738 | 0.05878 | 0.188832 | 0.173402 | 0.06025 | 0.06025 | 0 | 0 | 0 | 0 | 0.202148 | 2,048 | 63 | 112 | 32.507937 | 0.832925 | 0.244629 | 0 | 0 | 0 | 0 | 0.135154 | 0 | 0 | 0 | 0 | 0 | 0.433333 | 1 | 0.166667 | false | 0 | 0.066667 | 0 | 0.233333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5b3c6f097c1609e8407e35a3ba36afcad1ca179f | 1,290 | py | Python | python/exercicios mundo 2/ex36_45.py/ex011.py | LEXW3B/PYTHON | 1ae54ea709c008bd7fab7602e034773610e7985e | [
"MIT"
] | 1 | 2022-01-05T08:51:16.000Z | 2022-01-05T08:51:16.000Z | python/exercicios mundo 2/ex36_45.py/ex011.py | LEXW3B/PYTHON | 1ae54ea709c008bd7fab7602e034773610e7985e | [
"MIT"
] | null | null | null | python/exercicios mundo 2/ex36_45.py/ex011.py | LEXW3B/PYTHON | 1ae54ea709c008bd7fab7602e034773610e7985e | [
"MIT"
] | null | null | null | #45-crie um programa que faça o computador jogar jokenpo com voce.
print('=====JOKENPO=====')
print('')
from random import randint
from time import sleep
itens = ('pedra','papel','tesoura')
computador = randint(0, 2)
print('''FAÇA SUA ESCOLHA
[ 0 ] pedra
[ 1 ] papel
[ 2 ] tesoura
''')
jogador = int(input('Qual a sua j... | 20.47619 | 66 | 0.589922 | 155 | 1,290 | 4.909677 | 0.296774 | 0.047306 | 0.0841 | 0.059133 | 0.290407 | 0.110381 | 0.110381 | 0 | 0 | 0 | 0 | 0.023013 | 0.258915 | 1,290 | 63 | 67 | 20.47619 | 0.773013 | 0.109302 | 0 | 0.574468 | 0 | 0 | 0.265502 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.042553 | 0 | 0.042553 | 0.425532 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5b3d25843802a6a90ece238f7b25e27cfaa9ff9d | 8,105 | py | Python | backend/api/models.py | ezequielaranda/solservicios | 275405e628b17543a42b28a9bc25bea345669aae | [
"MIT"
] | null | null | null | backend/api/models.py | ezequielaranda/solservicios | 275405e628b17543a42b28a9bc25bea345669aae | [
"MIT"
] | 6 | 2020-05-07T19:32:26.000Z | 2021-06-10T22:56:56.000Z | backend/api/models.py | ezequielaranda/solservicios | 275405e628b17543a42b28a9bc25bea345669aae | [
"MIT"
] | null | null | null | from django.db import models
from rest_framework import serializers
from django.utils import timezone
from django.contrib.auth.models import User
class Empresa(models.Model):
nombre = models.CharField(max_length=150, null=True)
domicilio = models.CharField(max_length=150, null=True)
ciudad = models.CharFie... | 41.142132 | 109 | 0.744232 | 966 | 8,105 | 6.060041 | 0.182195 | 0.049197 | 0.086095 | 0.106594 | 0.557909 | 0.51657 | 0.452169 | 0.390331 | 0.365733 | 0.320465 | 0 | 0.00916 | 0.151388 | 8,105 | 196 | 110 | 41.352041 | 0.84196 | 0.070574 | 0 | 0.287671 | 0 | 0 | 0.044897 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041096 | false | 0 | 0.047945 | 0.041096 | 0.90411 | 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 |
5b3e1ecc5b38c542cefb82dcef9d99e754c07ad0 | 8,113 | py | Python | Leak #5 - Lost In Translation/windows/Resources/Dsz/PyScripts/Lib/dsz/mca/survey/cmd/passworddump/errors.py | bidhata/EquationGroupLeaks | 1ff4bc115cb2bd5bf2ed6bf769af44392926830c | [
"Unlicense"
] | 9 | 2019-11-22T04:58:40.000Z | 2022-02-26T16:47:28.000Z | Leak #5 - Lost In Translation/windows/Resources/Dsz/PyScripts/Lib/dsz/mca/survey/cmd/passworddump/errors.py | bidhata/EquationGroupLeaks | 1ff4bc115cb2bd5bf2ed6bf769af44392926830c | [
"Unlicense"
] | null | null | null | Leak #5 - Lost In Translation/windows/Resources/Dsz/PyScripts/Lib/dsz/mca/survey/cmd/passworddump/errors.py | bidhata/EquationGroupLeaks | 1ff4bc115cb2bd5bf2ed6bf769af44392926830c | [
"Unlicense"
] | 8 | 2017-09-27T10:31:18.000Z | 2022-01-08T10:30:46.000Z | # uncompyle6 version 2.9.10
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10)
# [GCC 6.2.0 20161005]
# Embedded file name: errors.py
import mcl.status
ERR_SUCCESS = mcl.status.MCL_SUCCESS
ERR_INVALID_PARAM = mcl.status.framework.ERR_START
ERR_NOT_IMPLEMENTED = mcl.status.... | 68.754237 | 109 | 0.824972 | 1,193 | 8,113 | 5.218776 | 0.162615 | 0.112753 | 0.159011 | 0.185512 | 0.640379 | 0.383874 | 0.166078 | 0.011886 | 0 | 0 | 0 | 0.02488 | 0.103291 | 8,113 | 118 | 110 | 68.754237 | 0.830928 | 0.020954 | 0 | 0 | 0 | 0 | 0.304737 | 0.033006 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.026549 | 0.00885 | 0 | 0.00885 | 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 |
5b3f258a42659e83c84a193664cad0abb36435d6 | 22,508 | py | Python | inversehaar.py | matthewearl/inversehaar | 876cfb055e656e1c75ef25dbfbecdf3ce9f8ad3b | [
"MIT"
] | 20 | 2016-01-18T12:26:06.000Z | 2019-04-15T11:13:49.000Z | inversehaar.py | matthewearl/inversehaar | 876cfb055e656e1c75ef25dbfbecdf3ce9f8ad3b | [
"MIT"
] | null | null | null | inversehaar.py | matthewearl/inversehaar | 876cfb055e656e1c75ef25dbfbecdf3ce9f8ad3b | [
"MIT"
] | 4 | 2017-05-31T02:40:41.000Z | 2020-04-22T10:38:03.000Z | #!/usr/bin/env python
# Copyright (c) 2015 Matthew Earl
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify,... | 36.070513 | 83 | 0.571708 | 2,734 | 22,508 | 4.579371 | 0.20117 | 0.009585 | 0.00623 | 0.005192 | 0.223482 | 0.172204 | 0.136342 | 0.10655 | 0.094888 | 0.078115 | 0 | 0.010971 | 0.335836 | 22,508 | 623 | 84 | 36.128411 | 0.826544 | 0.089168 | 0 | 0.128028 | 0 | 0 | 0.073464 | 0 | 0 | 0 | 0 | 0 | 0.00346 | 0 | null | null | 0.034602 | 0.031142 | null | null | 0.027682 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5b46be0de52122650ce7b53028183e21f425fa14 | 185 | py | Python | ex048.py | CarlosEduardoAS/Python-exercicios | c0063660191a86e83f25708239b62b6764a51670 | [
"MIT"
] | null | null | null | ex048.py | CarlosEduardoAS/Python-exercicios | c0063660191a86e83f25708239b62b6764a51670 | [
"MIT"
] | null | null | null | ex048.py | CarlosEduardoAS/Python-exercicios | c0063660191a86e83f25708239b62b6764a51670 | [
"MIT"
] | null | null | null | s = 0
cont = 0
for c in range(1, 501, 2):
if c % 3 == 0:
cont += 1
s += c
print('A soma ente todos os {} ímpares múltiplos de 3 entre 1 e 500 é {}.'.format(cont, s)) | 26.428571 | 91 | 0.524324 | 37 | 185 | 2.621622 | 0.702703 | 0.103093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 0.324324 | 185 | 7 | 91 | 26.428571 | 0.656 | 0 | 0 | 0 | 0 | 0 | 0.354839 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 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 |
5b487a8b99ccb82c0f1a7123624b4438aa8ebb71 | 1,767 | py | Python | app.py | ruturajshete1008/Heart-health-prediction | 75fe4232f19014ed2b6fb2463c815ba023ad7a0d | [
"MIT"
] | 3 | 2018-11-28T04:30:15.000Z | 2019-01-02T09:13:03.000Z | app.py | ruturajshete1008/Heart-health-prediction | 75fe4232f19014ed2b6fb2463c815ba023ad7a0d | [
"MIT"
] | null | null | null | app.py | ruturajshete1008/Heart-health-prediction | 75fe4232f19014ed2b6fb2463c815ba023ad7a0d | [
"MIT"
] | null | null | null | from flask import Flask, jsonify, render_template
import pandas as pd
import os
import pymongo
from flask import send_from_directory
from pymongo import MongoClient
# initialize flask app
app = Flask(__name__)
app.config['JSON_SORT_KEYS'] = False
# read the data and merge it
df_labels = pd.read_csv('train_labels.csv... | 26.772727 | 89 | 0.710243 | 265 | 1,767 | 4.501887 | 0.415094 | 0.073764 | 0.067058 | 0.02347 | 0.090528 | 0.090528 | 0.090528 | 0.090528 | 0.090528 | 0.090528 | 0 | 0.007275 | 0.144312 | 1,767 | 65 | 90 | 27.184615 | 0.781746 | 0.083758 | 0 | 0 | 0 | 0 | 0.16491 | 0.029758 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145833 | false | 0 | 0.125 | 0.125 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
5b4a8c62ba6b42395b0ef146b30118ae4a735b55 | 539 | py | Python | train.py | ex7763/pytorch-HED | 8695c996af48d917851bfe629ca219471d40aa5c | [
"MIT"
] | null | null | null | train.py | ex7763/pytorch-HED | 8695c996af48d917851bfe629ca219471d40aa5c | [
"MIT"
] | null | null | null | train.py | ex7763/pytorch-HED | 8695c996af48d917851bfe629ca219471d40aa5c | [
"MIT"
] | null | null | null | import torch
import yaml
import argparse
from dataset.BSD500 import BSD500Dataset
from models.HED import HED
###############
# parse cfg
###############
parser = argparse.ArgumentParser()
parser.add_argument('--cfg', dest='cfg', required=True, help='path to config file')
args = parser.parse_known_args()
args = pars... | 17.387097 | 83 | 0.625232 | 71 | 539 | 4.633803 | 0.478873 | 0.085106 | 0.091185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012793 | 0.12987 | 539 | 30 | 84 | 17.966667 | 0.688699 | 0.037106 | 0 | 0 | 0 | 0 | 0.100897 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5b4efefa7c72bf1ac0d47d8be34d61c51dd67ac7 | 571 | py | Python | geinos/app/core/radius/radius.py | falhenaki/GEINOS | c0bf883c582972b08ab5ee45d2bd0463d6c48087 | [
"MIT"
] | 3 | 2018-03-19T16:51:21.000Z | 2019-01-18T22:52:19.000Z | geinos/app/core/radius/radius.py | falhenaki/GEINOS | c0bf883c582972b08ab5ee45d2bd0463d6c48087 | [
"MIT"
] | 261 | 2018-02-08T16:24:26.000Z | 2018-08-07T03:38:16.000Z | geinos/app/core/radius/radius.py | falhenaki/GEINOS | c0bf883c582972b08ab5ee45d2bd0463d6c48087 | [
"MIT"
] | null | null | null | from sqlalchemy import *
from sqlalchemy import Column, String
from sqlalchemy.ext.declarative import declarative_base
from app.core.sqlalchemy_base.augmented_base import CustomMixin
Base = declarative_base()
class Radius(CustomMixin, Base):
__tablename__ = "Radius"
host = Column(String, primary_key=True)
... | 33.588235 | 76 | 0.628722 | 60 | 571 | 5.766667 | 0.416667 | 0.121387 | 0.115607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176883 | 571 | 16 | 77 | 35.6875 | 0.73617 | 0.122592 | 0 | 0 | 0 | 0 | 0.012024 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.285714 | 0 | 0.714286 | 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 |
5b5975a909c1137119120f7fc6fd7242b0e2d766 | 656 | py | Python | regtests/list/slice.py | ahakingdom/Rusthon | 5b6b78111b62281cd1381e53362c5d4b520ade30 | [
"BSD-3-Clause"
] | 622 | 2015-01-01T14:53:51.000Z | 2022-03-27T14:52:25.000Z | regtests/list/slice.py | ahakingdom/Rusthon | 5b6b78111b62281cd1381e53362c5d4b520ade30 | [
"BSD-3-Clause"
] | 74 | 2015-01-05T01:24:09.000Z | 2021-04-26T00:06:38.000Z | regtests/list/slice.py | ahakingdom/Rusthon | 5b6b78111b62281cd1381e53362c5d4b520ade30 | [
"BSD-3-Clause"
] | 67 | 2015-01-18T22:54:54.000Z | 2022-03-01T12:54:23.000Z | from runtime import *
"""list slice"""
class XXX:
def __init__(self):
self.v = range(10)
def method(self, a):
return a
def main():
a = range(10)[:-5]
assert( len(a)==5 )
assert( a[4]==4 )
print '--------'
b = range(10)[::2]
print b
assert( len(b)==5 )
assert( b[0]==0 )
assert( b[1]==2 )
assert( b[2]=... | 13.387755 | 29 | 0.501524 | 115 | 656 | 2.826087 | 0.347826 | 0.138462 | 0.092308 | 0.110769 | 0.092308 | 0.092308 | 0 | 0 | 0 | 0 | 0 | 0.054902 | 0.222561 | 656 | 48 | 30 | 13.666667 | 0.582353 | 0.143293 | 0 | 0 | 0 | 0 | 0.01487 | 0 | 0 | 0 | 0 | 0 | 0.392857 | 0 | null | null | 0 | 0.035714 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5b5b10607266561433613c17a985d903f65eb540 | 524 | py | Python | forums/migrations/0007_auto_20191203_0820.py | phiratio/django-forums-app | a8d50b436bc34f74ab8c58234f5f7cf5175e00c5 | [
"MIT"
] | 22 | 2019-10-14T20:57:18.000Z | 2022-01-13T11:32:16.000Z | forums/migrations/0007_auto_20191203_0820.py | phiratio/django-forums-app | a8d50b436bc34f74ab8c58234f5f7cf5175e00c5 | [
"MIT"
] | 22 | 2019-10-16T12:21:59.000Z | 2021-12-16T14:05:46.000Z | forums/migrations/0007_auto_20191203_0820.py | phiratio/django-forums-app | a8d50b436bc34f74ab8c58234f5f7cf5175e00c5 | [
"MIT"
] | 10 | 2019-10-15T19:55:30.000Z | 2022-02-27T13:53:55.000Z | # Generated by Django 2.2.5 on 2019-12-03 08:20
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('forums', '0006_auto_20191203_0758'),
]
operations = [
migrations.AlterField(
model_name='post',
... | 26.2 | 102 | 0.599237 | 57 | 524 | 5.403509 | 0.666667 | 0.077922 | 0.090909 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082888 | 0.28626 | 524 | 19 | 103 | 27.578947 | 0.740642 | 0.085878 | 0 | 0 | 1 | 0 | 0.119497 | 0.048218 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.357143 | 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 |
5b5eb638f3c45dd8372789c8fa5a6b4ca5ba99fc | 738 | py | Python | app/middlewares/apikey_auth.py | meongbego/IOT_ADRINI | 0923b86a9d1da5d6859b70726ad1e041aecc97b2 | [
"MIT"
] | 1 | 2019-07-27T12:17:23.000Z | 2019-07-27T12:17:23.000Z | app/middlewares/apikey_auth.py | meongbego/ADRINI_IOT_PLATFORM | 0923b86a9d1da5d6859b70726ad1e041aecc97b2 | [
"MIT"
] | 4 | 2021-04-18T11:41:31.000Z | 2021-06-01T23:12:19.000Z | app/middlewares/apikey_auth.py | sofyan48/ADRINI_IOT_PLATFORM | 0923b86a9d1da5d6859b70726ad1e041aecc97b2 | [
"MIT"
] | null | null | null | from functools import wraps
from app.helpers.rest import *
from app import redis_store
from flask import request
from app.models import model as db
import hashlib
def apikey_required(f):
@wraps(f)
def decorated_function(*args, **kwargs):
if 'apikey' not in request.headers:
return response... | 29.52 | 71 | 0.605691 | 86 | 738 | 5.081395 | 0.523256 | 0.048055 | 0.077803 | 0.10984 | 0.196796 | 0.196796 | 0.196796 | 0 | 0 | 0 | 0 | 0.011858 | 0.314363 | 738 | 25 | 72 | 29.52 | 0.851779 | 0 | 0 | 0.095238 | 0 | 0 | 0.109608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5b67e852602727d6512e5eacbc68b00f61443e8e | 9,486 | py | Python | rel2/bluecat_app/bin/bluecat/entity.py | mheidir/BlueCatSG-SplunkApp-UnOfficial | bd914b8650d191e48c18acda5bdd70aeabb99207 | [
"Apache-2.0"
] | 1 | 2018-06-26T14:57:54.000Z | 2018-06-26T14:57:54.000Z | rel2/bluecat_app/bin/bluecat/entity.py | mheidir/BlueCatSG-SplunkApp-UnOfficial | bd914b8650d191e48c18acda5bdd70aeabb99207 | [
"Apache-2.0"
] | null | null | null | rel2/bluecat_app/bin/bluecat/entity.py | mheidir/BlueCatSG-SplunkApp-UnOfficial | bd914b8650d191e48c18acda5bdd70aeabb99207 | [
"Apache-2.0"
] | null | null | null | from suds import WebFault
from api_exception import api_exception
from util import *
from version import version
from wrappers.generic_setters import *
class entity(object):
"""Instantiate an entity. Entities are hashable and comparable with the = operator.
:param api: API instance used by the entity to com... | 34.747253 | 151 | 0.613641 | 1,028 | 9,486 | 5.494163 | 0.222763 | 0.041076 | 0.03966 | 0.029745 | 0.232472 | 0.20255 | 0.190333 | 0.180595 | 0.13704 | 0.123938 | 0 | 0.007777 | 0.295172 | 9,486 | 272 | 152 | 34.875 | 0.836973 | 0 | 0 | 0.237864 | 0 | 0 | 0.132448 | 0.008729 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.024272 | null | null | 0.004854 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5b6a869041b8f7099f1366b7e23ffabaa5619e62 | 1,083 | py | Python | selenium/load-html-from-string-instead-of-url/main.py | whitmans-max/python-examples | 881a8f23f0eebc76816a0078e19951893f0daaaa | [
"MIT"
] | 140 | 2017-02-21T22:49:04.000Z | 2022-03-22T17:51:58.000Z | selenium/load-html-from-string-instead-of-url/main.py | whitmans-max/python-examples | 881a8f23f0eebc76816a0078e19951893f0daaaa | [
"MIT"
] | 5 | 2017-12-02T19:55:00.000Z | 2021-09-22T23:18:39.000Z | selenium/load-html-from-string-instead-of-url/main.py | whitmans-max/python-examples | 881a8f23f0eebc76816a0078e19951893f0daaaa | [
"MIT"
] | 79 | 2017-01-25T10:53:33.000Z | 2022-03-11T16:13:57.000Z | #!/usr/bin/env python3
# date: 2019.11.24
import selenium.webdriver
driver = selenium.webdriver.Firefox()
html_content = """
<div class=div1>
<ul>
<li>
<a href='path/to/div1stuff/1'>Generic string 1</a>
<a href='path/to/div1stuff/2'>Generic string 2</a>
... | 26.414634 | 99 | 0.54663 | 144 | 1,083 | 4.034722 | 0.368056 | 0.156627 | 0.092943 | 0.113597 | 0.409639 | 0.378657 | 0.26506 | 0.26506 | 0.185886 | 0 | 0 | 0.042636 | 0.285319 | 1,083 | 40 | 100 | 27.075 | 0.70801 | 0.036011 | 0 | 0.344828 | 0 | 0 | 0.693858 | 0.269674 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.034483 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5b74ca87ccbb7137e1d1ff7086010eae374775ba | 1,646 | py | Python | src/oci_cli/cli_clients.py | honzajavorek/oci-cli | 6ea058afba323c6b3b70e98212ffaebb0d31985e | [
"Apache-2.0"
] | null | null | null | src/oci_cli/cli_clients.py | honzajavorek/oci-cli | 6ea058afba323c6b3b70e98212ffaebb0d31985e | [
"Apache-2.0"
] | null | null | null | src/oci_cli/cli_clients.py | honzajavorek/oci-cli | 6ea058afba323c6b3b70e98212ffaebb0d31985e | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
import os
import pkgutil
from os.path import abspath
from inspect import getsourcefile
CLIENT_MAP = {}
MODULE_TO_TYPE_MAPPINGS = {}
ALL_SERVICES_DIR = "services"
this_file_path = abspath(getsourcefile(lambda: 0))
if "site-p... | 51.4375 | 128 | 0.727825 | 230 | 1,646 | 4.821739 | 0.304348 | 0.054103 | 0.075744 | 0.072137 | 0.32101 | 0.281335 | 0.281335 | 0.218215 | 0.218215 | 0.167719 | 0 | 0.015988 | 0.164034 | 1,646 | 31 | 129 | 53.096774 | 0.789971 | 0.149453 | 0 | 0 | 0 | 0 | 0.086022 | 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 |
5b75521d38171fc3f17cd63f930032aca3a11c04 | 799 | py | Python | main.py | neohanju/GoogleImageSearchDownload | 09344be0f356816ee16921f75b16114340e40b67 | [
"MIT"
] | null | null | null | main.py | neohanju/GoogleImageSearchDownload | 09344be0f356816ee16921f75b16114340e40b67 | [
"MIT"
] | null | null | null | main.py | neohanju/GoogleImageSearchDownload | 09344be0f356816ee16921f75b16114340e40b67 | [
"MIT"
] | null | null | null | # reference: http://icrawler.readthedocs.io/en/latest/usage.html
from icrawler.builtin import GoogleImageCrawler
import os
dataset_base_dir = 'D:/Workspace/Dataset/fake_image_detection/task_2'
keyword_lists = ['snapchat face swap', 'MSQRD']
for keyword in keyword_lists:
folder_path = dataset_base_dir + '/' + ke... | 27.551724 | 79 | 0.669587 | 95 | 799 | 5.410526 | 0.642105 | 0.097276 | 0.054475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012638 | 0.20776 | 799 | 28 | 80 | 28.535714 | 0.799368 | 0.102628 | 0 | 0 | 0 | 0 | 0.15568 | 0.067321 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0625 | 0.125 | 0 | 0.125 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5b77b55412440ca872621e6080c45d3d24321ec7 | 1,632 | py | Python | src/daipeproject/silver/01_some_notebook.py | DataSentics/daipe-bad-practices-1 | a23c1b42908f646763a3a1d0821600f8d0d78db2 | [
"MIT"
] | null | null | null | src/daipeproject/silver/01_some_notebook.py | DataSentics/daipe-bad-practices-1 | a23c1b42908f646763a3a1d0821600f8d0d78db2 | [
"MIT"
] | null | null | null | src/daipeproject/silver/01_some_notebook.py | DataSentics/daipe-bad-practices-1 | a23c1b42908f646763a3a1d0821600f8d0d78db2 | [
"MIT"
] | null | null | null | # Databricks notebook source
# MAGIC %run ../app/bootstrap
# COMMAND ----------
from pyspark.sql.dataframe import DataFrame
from datalakebundle.imports import transformation
# COMMAND ----------
datasets = [
{
"id": "123",
"name": "knihydobrovsky_cz",
"custom_attrs": {
105: "... | 27.661017 | 111 | 0.628676 | 196 | 1,632 | 5.040816 | 0.423469 | 0.064777 | 0.036437 | 0.01417 | 0.202429 | 0.202429 | 0.202429 | 0.202429 | 0.202429 | 0.202429 | 0 | 0.015898 | 0.229167 | 1,632 | 58 | 112 | 28.137931 | 0.769475 | 0.170956 | 0 | 0.102564 | 0 | 0 | 0.194196 | 0.074405 | 0 | 0 | 0 | 0.017241 | 0 | 1 | 0.128205 | false | 0 | 0.051282 | 0.076923 | 0.25641 | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5b789ac50113811cea9f5671853ed49ad42da467 | 560 | py | Python | tests/pyspark_utils/test_convert_cerberus_schema_to_pyspark.py | ONS-SST/cis_households | e475df5929e6763a46cd05aff1f7e960ccbe8e21 | [
"MIT"
] | null | null | null | tests/pyspark_utils/test_convert_cerberus_schema_to_pyspark.py | ONS-SST/cis_households | e475df5929e6763a46cd05aff1f7e960ccbe8e21 | [
"MIT"
] | 252 | 2021-05-19T11:12:43.000Z | 2022-03-02T10:39:10.000Z | tests/pyspark_utils/test_convert_cerberus_schema_to_pyspark.py | ONS-SST/cis_households | e475df5929e6763a46cd05aff1f7e960ccbe8e21 | [
"MIT"
] | null | null | null | from pyspark.sql.types import StructField
from cishouseholds.pyspark_utils import convert_cerberus_schema_to_pyspark
def test_conversion():
cerberus_schema = {"id": {"type": "string"}, "whole_number": {"type": "integer"}}
pyspark_schema = convert_cerberus_schema_to_pyspark(cerberus_schema)
assert len(p... | 40 | 109 | 0.783929 | 71 | 560 | 5.859155 | 0.43662 | 0.201923 | 0.100962 | 0.110577 | 0.288462 | 0.144231 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116071 | 560 | 13 | 110 | 43.076923 | 0.840404 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0.375 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 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 |
5b85533c3707d4c478552c5ac09e55d8b975b426 | 201 | py | Python | inference.py | andreasr27/bidding_simulator | c2e1665b5eb72d6464025ce330682fb25780cb56 | [
"Apache-2.0"
] | null | null | null | inference.py | andreasr27/bidding_simulator | c2e1665b5eb72d6464025ce330682fb25780cb56 | [
"Apache-2.0"
] | null | null | null | inference.py | andreasr27/bidding_simulator | c2e1665b5eb72d6464025ce330682fb25780cb56 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import regret as r
import sys
import os
n=int(sys.argv[1])
fout=open(sys.argv[3],'w')
print >>fout, n
for i in range(0,n):
print >>fout, i, r.mult_valuation(sys.argv[2],i)
| 15.461538 | 56 | 0.646766 | 41 | 201 | 3.146341 | 0.634146 | 0.162791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.164179 | 201 | 12 | 57 | 16.75 | 0.744048 | 0.079602 | 0 | 0 | 0 | 0 | 0.005435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5b8868ab4678426738010cc86dd5157444746730 | 339 | py | Python | tests/__init__.py | jfardello/dyn53 | bf40f9f979273cfcb64817ae8117992ce03acbac | [
"MIT"
] | null | null | null | tests/__init__.py | jfardello/dyn53 | bf40f9f979273cfcb64817ae8117992ce03acbac | [
"MIT"
] | null | null | null | tests/__init__.py | jfardello/dyn53 | bf40f9f979273cfcb64817ae8117992ce03acbac | [
"MIT"
] | null | null | null | import unittest
from . import test_cli, test_client
def suite():
test_suite = unittest.TestSuite()
test_suite.addTests(unittest.makeSuite(test_cli.TestCli))
test_suite.addTests(unittest.makeSuite(test_client.TestClient))
return test_suite
if __name__ == '__main__':
unittest.TextTestRunner(verbosi... | 26.076923 | 67 | 0.761062 | 42 | 339 | 5.761905 | 0.5 | 0.14876 | 0.140496 | 0.206612 | 0.31405 | 0.31405 | 0 | 0 | 0 | 0 | 0 | 0.00339 | 0.129794 | 339 | 12 | 68 | 28.25 | 0.816949 | 0 | 0 | 0 | 0 | 0 | 0.023599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.444444 | 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 |
5b96dfeca9efe5e44a9af8ca8317c32891758506 | 1,489 | py | Python | tests/seahub/invitations/test_views.py | Xandersoft/seahub | f75f238b3e0a907e8a8003f419e367fa36e992e7 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | tests/seahub/invitations/test_views.py | Xandersoft/seahub | f75f238b3e0a907e8a8003f419e367fa36e992e7 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | tests/seahub/invitations/test_views.py | Xandersoft/seahub | f75f238b3e0a907e8a8003f419e367fa36e992e7 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | from django.utils import timezone
from django.core.urlresolvers import reverse
from seahub.invitations.models import Invitation
from seahub.test_utils import BaseTestCase
class TokenViewTest(BaseTestCase):
def setUp(self):
self.accepter = 'random@foo.com'
self.iv = Invitation.objects.add(inviter=... | 33.840909 | 76 | 0.650772 | 189 | 1,489 | 5.026455 | 0.333333 | 0.050526 | 0.058947 | 0.050526 | 0.387368 | 0.387368 | 0.387368 | 0.387368 | 0.305263 | 0.305263 | 0 | 0.010629 | 0.241773 | 1,489 | 43 | 77 | 34.627907 | 0.830824 | 0 | 0 | 0.285714 | 0 | 0 | 0.050369 | 0.014775 | 0 | 0 | 0 | 0 | 0.257143 | 1 | 0.171429 | false | 0.114286 | 0.114286 | 0 | 0.314286 | 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 |
5b994b983a9b32668d74419e6514f5b302e70c33 | 445 | py | Python | django101/django101/urls.py | nrgxtra/web_basics | 073ccb361af666c9fe2b3fa0b5cf74d721acb1b4 | [
"MIT"
] | null | null | null | django101/django101/urls.py | nrgxtra/web_basics | 073ccb361af666c9fe2b3fa0b5cf74d721acb1b4 | [
"MIT"
] | null | null | null | django101/django101/urls.py | nrgxtra/web_basics | 073ccb361af666c9fe2b3fa0b5cf74d721acb1b4 | [
"MIT"
] | null | null | null |
from django.contrib import admin
from django.urls import path, include
from django101 import cities
from django101.cities.views import index, list_phones, test_index, create_person
urlpatterns = [
path('admin/', admin.site.urls),
path('test/', test_index),
path('create/', create_person, name='c... | 29.666667 | 81 | 0.694382 | 55 | 445 | 5.527273 | 0.381818 | 0.118421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.164045 | 445 | 14 | 82 | 31.785714 | 0.784946 | 0 | 0 | 0 | 0 | 0 | 0.186047 | 0.097674 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5ba693f02b6eec231bd51eee1c8015fbc38f46e9 | 2,882 | py | Python | obj_sys/obj_tools.py | weijia/obj_sys | 7654a84f155f8e0da942f980d06c6ada34a6d71e | [
"BSD-3-Clause"
] | null | null | null | obj_sys/obj_tools.py | weijia/obj_sys | 7654a84f155f8e0da942f980d06c6ada34a6d71e | [
"BSD-3-Clause"
] | null | null | null | obj_sys/obj_tools.py | weijia/obj_sys | 7654a84f155f8e0da942f980d06c6ada34a6d71e | [
"BSD-3-Clause"
] | null | null | null | import socket
import logging
from ufs_tools import format_path
def get_fs_protocol_separator():
try:
import configurationTools as config
return config.getFsProtocolSeparator()
except ImportError:
return "://"
gUfsObjUrlPrefix = u'ufs' + get_fs_protocol_separator()
gUfsObjUrlSeparator... | 22 | 91 | 0.683206 | 415 | 2,882 | 4.440964 | 0.20241 | 0.061856 | 0.042322 | 0.071622 | 0.226804 | 0.08573 | 0.032556 | 0 | 0 | 0 | 0 | 0.007052 | 0.2127 | 2,882 | 130 | 92 | 22.169231 | 0.805201 | 0.041985 | 0 | 0.103896 | 0 | 0 | 0.02881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.064935 | null | null | 0.012987 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5ba7d313b7cd41420e9e5febeab4e32d8628ee1f | 2,304 | py | Python | src/apps/recommendations/tests/x_test_comparable_inventories.py | Remy-TPP/q-api | 761dd2d15557cb9a8bdc0b397fc10e0cf7c95c03 | [
"MIT"
] | null | null | null | src/apps/recommendations/tests/x_test_comparable_inventories.py | Remy-TPP/q-api | 761dd2d15557cb9a8bdc0b397fc10e0cf7c95c03 | [
"MIT"
] | 14 | 2020-06-23T20:32:16.000Z | 2022-01-13T03:13:20.000Z | src/apps/recommendations/tests/x_test_comparable_inventories.py | MartinCura/q-api | 761dd2d15557cb9a8bdc0b397fc10e0cf7c95c03 | [
"MIT"
] | null | null | null | from unittest import TestCase
from apps.profiles.models import Profile
from apps.recipes.models import Recipe, Ingredient
from apps.recommendations.utils import ComparableInventory
# TODO: written for manual testing with preloaded db; for general use should create resources in setUp()
class ComparableInventoryTest(T... | 32 | 104 | 0.656684 | 297 | 2,304 | 4.993266 | 0.306397 | 0.113284 | 0.064734 | 0.084963 | 0.41942 | 0.41942 | 0.41942 | 0.397168 | 0.2441 | 0.190155 | 0 | 0.033296 | 0.230903 | 2,304 | 71 | 105 | 32.450704 | 0.803612 | 0.080729 | 0 | 0.294118 | 0 | 0 | 0.025083 | 0 | 0 | 0 | 0 | 0.014085 | 0.176471 | 1 | 0.137255 | false | 0.019608 | 0.078431 | 0 | 0.235294 | 0.254902 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
5bac7ae6136379e32a79e0f45ffc9c4c50e02c35 | 274 | py | Python | pacote-download/pythonProject/exercicios_python_guanabara/ex019.py | oliveirajonathas/python_estudos | 28921672d7e5d0866030c45b077a28998905f752 | [
"MIT"
] | null | null | null | pacote-download/pythonProject/exercicios_python_guanabara/ex019.py | oliveirajonathas/python_estudos | 28921672d7e5d0866030c45b077a28998905f752 | [
"MIT"
] | null | null | null | pacote-download/pythonProject/exercicios_python_guanabara/ex019.py | oliveirajonathas/python_estudos | 28921672d7e5d0866030c45b077a28998905f752 | [
"MIT"
] | null | null | null | import random
aluno1 = input('Nome aluno 1: ')
aluno2 = input('Nome aluno 2: ')
aluno3 = input('Nome aluno 3: ')
aluno4 = input('Nome aluno 4: ')
sorteado = random.choice([aluno1, aluno2, aluno3, aluno4])
print('O sorteado para apagar o quadro foi: {}'.format(sorteado))
| 24.909091 | 65 | 0.686131 | 39 | 274 | 4.820513 | 0.564103 | 0.191489 | 0.297872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051948 | 0.156934 | 274 | 10 | 66 | 27.4 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0.346715 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 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 |
5badd82fc3129e47361d6ac0510385c34b87a716 | 306 | py | Python | tests/test_reset_plot.py | l-johnston/toolbag | 1bd6ca61bfaf5856e5de320926d5593291e39e9c | [
"MIT"
] | null | null | null | tests/test_reset_plot.py | l-johnston/toolbag | 1bd6ca61bfaf5856e5de320926d5593291e39e9c | [
"MIT"
] | null | null | null | tests/test_reset_plot.py | l-johnston/toolbag | 1bd6ca61bfaf5856e5de320926d5593291e39e9c | [
"MIT"
] | null | null | null | """Test reset_plot"""
import matplotlib.pyplot as plt
from toolbag import reset_plot
plt.ion()
# pylint: disable = missing-function-docstring
def test_reset_plot():
fig, ax = plt.subplots()
ax.plot([1, 2, 3])
plt.close()
reset_plot(fig)
assert id(ax) == id(fig.gca())
plt.close()
| 20.4 | 46 | 0.656863 | 46 | 306 | 4.26087 | 0.586957 | 0.183673 | 0.132653 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012097 | 0.189542 | 306 | 14 | 47 | 21.857143 | 0.778226 | 0.199346 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.1 | true | 0 | 0.2 | 0 | 0.3 | 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 |
5bade8022eec80f2a26ec5d44c9c7347683447d6 | 330 | py | Python | af/shovel/oonipl/popen.py | mimi89999/pipeline | 3e9eaf74c0966df907a230fbe89407c2bbc3d930 | [
"BSD-3-Clause"
] | null | null | null | af/shovel/oonipl/popen.py | mimi89999/pipeline | 3e9eaf74c0966df907a230fbe89407c2bbc3d930 | [
"BSD-3-Clause"
] | null | null | null | af/shovel/oonipl/popen.py | mimi89999/pipeline | 3e9eaf74c0966df907a230fbe89407c2bbc3d930 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
from subprocess import Popen, PIPE
from contextlib import contextmanager
@contextmanager
def ScopedPopen(*args, **kwargs):
proc = Popen(*args, **kwargs)
try:
yield proc
finally:
try:
proc.kill()
except Exception:
... | 18.333333 | 37 | 0.593939 | 36 | 330 | 5.444444 | 0.75 | 0.102041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012821 | 0.290909 | 330 | 17 | 38 | 19.411765 | 0.824786 | 0.136364 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.083333 | 0.166667 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5bb69ffabb9285aa28e934c2aba594cdec056ae0 | 519 | py | Python | jobs/migrations/0055_savedfeatureselection_uid.py | hotosm/hot-exports-two | d60530445e89b2a46bd55ea3b7c2e72409b0f493 | [
"BSD-3-Clause"
] | 95 | 2017-09-29T13:20:38.000Z | 2022-03-14T06:43:47.000Z | jobs/migrations/0055_savedfeatureselection_uid.py | hotosm/hot-exports-two | d60530445e89b2a46bd55ea3b7c2e72409b0f493 | [
"BSD-3-Clause"
] | 229 | 2015-07-29T08:50:27.000Z | 2017-09-21T18:05:56.000Z | jobs/migrations/0055_savedfeatureselection_uid.py | hotosm/hot-exports-two | d60530445e89b2a46bd55ea3b7c2e72409b0f493 | [
"BSD-3-Clause"
] | 30 | 2017-10-06T23:53:48.000Z | 2022-03-10T06:17:07.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-06-26 12:06
from __future__ import unicode_literals
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('jobs', '0054_savedfeatureselection'),
]
operations = [
migrations.... | 23.590909 | 99 | 0.645472 | 56 | 519 | 5.839286 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050761 | 0.240848 | 519 | 21 | 100 | 24.714286 | 0.779188 | 0.125241 | 0 | 0 | 1 | 0 | 0.119734 | 0.104213 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5bbbb9f34d714ae4dbca7523d97576b3cc0761f0 | 227 | py | Python | test_client.py | lilydjwg/udt_py | 90cb36f3ef503bb45a9aa4f9dad5c86eddce0abd | [
"BSD-3-Clause"
] | 9 | 2015-01-11T06:59:40.000Z | 2022-02-02T14:57:59.000Z | test_client.py | lilydjwg/udt_py | 90cb36f3ef503bb45a9aa4f9dad5c86eddce0abd | [
"BSD-3-Clause"
] | 1 | 2015-01-15T21:03:51.000Z | 2015-01-16T03:05:25.000Z | test_client.py | lilydjwg/udt_py | 90cb36f3ef503bb45a9aa4f9dad5c86eddce0abd | [
"BSD-3-Clause"
] | 1 | 2020-06-20T08:39:06.000Z | 2020-06-20T08:39:06.000Z | #!/usr/bin/env python3
import udt
import socket
import time
s = udt.socket(socket.AF_INET, socket.SOCK_STREAM, 0)
s.connect(("localhost", 5555))
print("Sending...")
s.send(b"Hello", 0)
buf = s.recv(1024, 0)
print(repr(buf))
| 16.214286 | 53 | 0.696035 | 39 | 227 | 4 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059701 | 0.114537 | 227 | 13 | 54 | 17.461538 | 0.716418 | 0.092511 | 0 | 0 | 0 | 0 | 0.117073 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5bbfc3eb5cd5c998c4f1c0a160a1b3c4c4e0bd4e | 1,060 | py | Python | obkey_parts/__version__.py | evyd13/obkey3 | bb49ed6d6696299a410c43d0ba6471ee3f594c26 | [
"MIT"
] | 4 | 2018-12-17T03:53:26.000Z | 2022-01-06T19:40:02.000Z | obkey_parts/__version__.py | evyd13/obkey3 | bb49ed6d6696299a410c43d0ba6471ee3f594c26 | [
"MIT"
] | 9 | 2016-05-01T09:42:23.000Z | 2022-01-10T11:10:12.000Z | obkey_parts/__version__.py | evyd13/obkey3 | bb49ed6d6696299a410c43d0ba6471ee3f594c26 | [
"MIT"
] | 6 | 2019-03-11T13:14:22.000Z | 2022-01-02T23:55:17.000Z | """
Obkey package informations.
This file is a part of Openbox Key Editor
Code under GPL (originally MIT) from version 1.3 - 2018.
See Licenses information in ../obkey .
"""
MAJOR = 1
MINOR = 3
PATCH = 2
__version__ = "{0}.{1}.{2}".format(MAJOR, MINOR, PATCH)
__description__ = 'Openbox Key Editor'
__long_des... | 32.121212 | 124 | 0.700943 | 155 | 1,060 | 4.709677 | 0.645161 | 0.027397 | 0.043836 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014475 | 0.217925 | 1,060 | 32 | 125 | 33.125 | 0.866104 | 0.156604 | 0 | 0 | 0 | 0.1 | 0.853075 | 0.023918 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5bc679b5e30f69fabf91b151ec50839acee5a93d | 1,227 | py | Python | hermione/module_templates/__IMPLEMENTED_BASE__/src/ml/preprocessing/preprocessing.py | RodrigoATorres/hermione | 6cbed73e309f8025a48f33165d8f29561c6a3cc7 | [
"Apache-2.0"
] | 183 | 2020-06-03T22:43:14.000Z | 2022-03-17T22:39:07.000Z | hermione/module_templates/__IMPLEMENTED_BASE__/src/ml/preprocessing/preprocessing.py | RodrigoATorres/hermione | 6cbed73e309f8025a48f33165d8f29561c6a3cc7 | [
"Apache-2.0"
] | 31 | 2020-06-03T22:55:18.000Z | 2022-03-27T20:06:17.000Z | hermione/module_templates/__IMPLEMENTED_BASE__/src/ml/preprocessing/preprocessing.py | RodrigoATorres/hermione | 6cbed73e309f8025a48f33165d8f29561c6a3cc7 | [
"Apache-2.0"
] | 43 | 2020-06-03T22:45:03.000Z | 2021-12-29T19:43:54.000Z | import pandas as pd
from ml.preprocessing.normalization import Normalizer
from category_encoders import *
import logging
logging.getLogger().setLevel(logging.INFO)
class Preprocessing:
"""
Class to perform data preprocessing before training
"""
def clean_data(self, df: pd.DataFrame):
"""... | 23.596154 | 59 | 0.546862 | 123 | 1,227 | 5.341463 | 0.390244 | 0.109589 | 0.060883 | 0.091324 | 0.401826 | 0.328767 | 0.273973 | 0.273973 | 0.273973 | 0.273973 | 0 | 0 | 0.356153 | 1,227 | 51 | 60 | 24.058824 | 0.831646 | 0.331703 | 0 | 0.235294 | 0 | 0 | 0.066879 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.235294 | 0 | 0.529412 | 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 |
5bc7db691db6bd3aeb10eeebc1044c688e5b67aa | 3,124 | py | Python | DevTools/lineCount.py | spiiin/CadEditor | b28316ddd9be4e79ac5e6adf89b7751df609d94e | [
"MIT"
] | 164 | 2015-01-16T17:09:45.000Z | 2022-03-17T03:39:08.000Z | DevTools/lineCount.py | spiiin/CadEditor | b28316ddd9be4e79ac5e6adf89b7751df609d94e | [
"MIT"
] | 13 | 2015-02-20T17:07:40.000Z | 2021-07-11T05:33:17.000Z | DevTools/lineCount.py | spiiin/CadEditor | b28316ddd9be4e79ac5e6adf89b7751df609d94e | [
"MIT"
] | 23 | 2015-09-01T22:29:11.000Z | 2022-01-10T01:32:32.000Z | #!/usr/bin/env python2
#Script for calculate LoC of all source files of project
import os,string
import sys
extension_list = ['h','hpp','cpp','c','pas','dpr','asm','py','q3asm','def','sh','bat','cs','java','cl','lisp','ui',"nut"]
comment_sims = {'asm' : ';', 'py' : '#', 'cl':';','lisp':';'}
source_files = { }
... | 34.32967 | 121 | 0.604033 | 440 | 3,124 | 4.045455 | 0.297727 | 0.078652 | 0.067416 | 0.033708 | 0.147191 | 0.130337 | 0.035955 | 0 | 0 | 0 | 0 | 0.019674 | 0.235275 | 3,124 | 91 | 122 | 34.32967 | 0.725408 | 0.054417 | 0 | 0.140845 | 0 | 0 | 0.168871 | 0.017294 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.028169 | null | null | 0.211268 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5bcb08c67e2fb3285c52b357489d036e67867bc6 | 1,546 | py | Python | src/dataset.py | EmanuelSamir/adaptive-learning-qpcbfclf-elm | d913a8b98600a0d844adf156700b3b69c73c694a | [
"MIT"
] | null | null | null | src/dataset.py | EmanuelSamir/adaptive-learning-qpcbfclf-elm | d913a8b98600a0d844adf156700b3b69c73c694a | [
"MIT"
] | null | null | null | src/dataset.py | EmanuelSamir/adaptive-learning-qpcbfclf-elm | d913a8b98600a0d844adf156700b3b69c73c694a | [
"MIT"
] | null | null | null | from collections import deque, namedtuple
import random
class ELMDataset:
def __init__(self, dt, features = ('x'), time_th = 0.5, maxlen = 5):
self.time_th = time_th
self._maxlen = maxlen
self.D_pre = deque()
self.D_post = deque(maxlen = self._maxlen)
self.dt = dt
... | 28.62963 | 72 | 0.510996 | 190 | 1,546 | 4.005263 | 0.205263 | 0.098555 | 0.070959 | 0.099869 | 0.550591 | 0.406045 | 0.345598 | 0.247043 | 0.247043 | 0.247043 | 0 | 0.004044 | 0.360285 | 1,546 | 54 | 73 | 28.62963 | 0.76542 | 0.015524 | 0 | 0.439024 | 0 | 0 | 0.00789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.243902 | false | 0 | 0.04878 | 0 | 0.414634 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5bcd4fe94307999ec0e963c569a27c56d4a42eff | 985 | py | Python | common/stat.py | 7workday/TT | 8887a85652c387a50a65e2598abdc833400e56f3 | [
"Apache-2.0"
] | null | null | null | common/stat.py | 7workday/TT | 8887a85652c387a50a65e2598abdc833400e56f3 | [
"Apache-2.0"
] | null | null | null | common/stat.py | 7workday/TT | 8887a85652c387a50a65e2598abdc833400e56f3 | [
"Apache-2.0"
] | null | null | null | '''程序的状态码'''
OK = 0
class LogicErr(Exception):
code = None
data = None
def __init__(self,data=None):
self.data = data or self.__class__.__name__ # 如果 data 为 None, 使用类的名字作为 data 值
def gen_logic_err(name, code):
'''生成一个新的 LogicErr 的子类 (LogicErr 的工厂函数)'''
return type(name, (LogicErr,), {'... | 35.178571 | 85 | 0.690355 | 116 | 985 | 5.568966 | 0.482759 | 0.136223 | 0.187307 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051443 | 0.190863 | 985 | 28 | 86 | 35.178571 | 0.759097 | 0.148223 | 0 | 0 | 0 | 0 | 0.147741 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.333333 | 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 |
5bcff95678159476daf98ca938631d4f52d0298a | 380 | py | Python | Aula07/chef007.py | AdryanPablo/Python | d469d394b41f44dbd753bf9a7f7eebaa81096562 | [
"MIT"
] | null | null | null | Aula07/chef007.py | AdryanPablo/Python | d469d394b41f44dbd753bf9a7f7eebaa81096562 | [
"MIT"
] | null | null | null | Aula07/chef007.py | AdryanPablo/Python | d469d394b41f44dbd753bf9a7f7eebaa81096562 | [
"MIT"
] | null | null | null | # Desenvolva um programa que leia as duas notas de um aluno, calcule e mostre a sua média.
nome = str(input("Digite o nome do(a) aluno(a): "))
not1 = float(input("Digite a 1ª nota de {}: ".format(nome)))
not2 = float(input("Digite a 2ª nota de {}: ".format(nome)))
media = (not1 + not2) / 2
print("Já que {} tirou {} ... | 38 | 90 | 0.642105 | 65 | 380 | 3.753846 | 0.553846 | 0.135246 | 0.131148 | 0.139344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032051 | 0.178947 | 380 | 9 | 91 | 42.222222 | 0.75 | 0.231579 | 0 | 0 | 0 | 0 | 0.42069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5bd168e636c697b8dbaf73f30e8402fe9d300c82 | 1,035 | py | Python | mriutils/utils/tonii.py | kuangmeng/MRIUtils | 3a79e8104071deb0dc17c402ac878f94161d9b4a | [
"MIT"
] | null | null | null | mriutils/utils/tonii.py | kuangmeng/MRIUtils | 3a79e8104071deb0dc17c402ac878f94161d9b4a | [
"MIT"
] | null | null | null | mriutils/utils/tonii.py | kuangmeng/MRIUtils | 3a79e8104071deb0dc17c402ac878f94161d9b4a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import skimage.io as skio
from skimage.transform import resize
import nibabel as nib
class SaveNiiFile():
def __init__(self, data, save_path, new_shape = (10, 256, 256), order = 3):
self.data = data
self.save_path = save_path
self.new_shape = new_shape
def ... | 28.75 | 90 | 0.607729 | 141 | 1,035 | 4.304965 | 0.375887 | 0.105437 | 0.039539 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014745 | 0.279227 | 1,035 | 36 | 91 | 28.75 | 0.798928 | 0.019324 | 0 | 0 | 0 | 0 | 0.007882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.125 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5bd77e4c61c0d5d7f63689e483c2e6eeec0b5053 | 310 | py | Python | kitsune/community/urls.py | yfdyh000/kitsune | 9a50b03b715bbabe0543b45d2146875995a6d1e4 | [
"BSD-3-Clause"
] | null | null | null | kitsune/community/urls.py | yfdyh000/kitsune | 9a50b03b715bbabe0543b45d2146875995a6d1e4 | [
"BSD-3-Clause"
] | null | null | null | kitsune/community/urls.py | yfdyh000/kitsune | 9a50b03b715bbabe0543b45d2146875995a6d1e4 | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls import patterns, url
urlpatterns = patterns(
'kitsune.community.views',
url(r'^/contributor_results$', 'contributor_results', name='community.contributor_results'),
url(r'^/view_all$', 'view_all', name='community.view_all'),
url(r'^$', 'home', name='community.home'),
)
| 31 | 96 | 0.693548 | 38 | 310 | 5.5 | 0.473684 | 0.057416 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119355 | 310 | 9 | 97 | 34.444444 | 0.765568 | 0 | 0 | 0 | 0 | 0 | 0.483871 | 0.23871 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5bd81eabed49d75dd2407602a6036e1582495777 | 4,650 | py | Python | sw/groundstation/tools/imu-raw-logger.py | nzjrs/wasp | b763309af59e7784811baa6dd80e17dba1b27d81 | [
"MIT"
] | 2 | 2021-07-11T13:47:17.000Z | 2021-11-08T11:21:51.000Z | sw/groundstation/tools/imu-raw-logger.py | nzjrs/wasp | b763309af59e7784811baa6dd80e17dba1b27d81 | [
"MIT"
] | null | null | null | sw/groundstation/tools/imu-raw-logger.py | nzjrs/wasp | b763309af59e7784811baa6dd80e17dba1b27d81 | [
"MIT"
] | 2 | 2015-10-03T06:24:07.000Z | 2016-01-21T11:36:20.000Z | #!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
import time
import os.path
import optparse
import gobject
import wasp
import wasp.transport as transport
import wasp.communication as communication
import wasp.messages as messages
import calibration
import calibration.utils
FREQ = 25.0 #Hz
STEP_DELAY = 5 ... | 34.191176 | 93 | 0.585161 | 549 | 4,650 | 4.779599 | 0.324226 | 0.021341 | 0.022866 | 0.019436 | 0.089177 | 0.016006 | 0 | 0 | 0 | 0 | 0 | 0.011388 | 0.30129 | 4,650 | 135 | 94 | 34.444444 | 0.796245 | 0.012043 | 0 | 0.119266 | 0 | 0 | 0.102419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009174 | 0.091743 | null | null | 0.018349 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5be00ec4042c62d09e71fd43458751614ef646dd | 1,182 | py | Python | emendation_box/serializers.py | fga-eps-mds/2017.2-SiGI-Op_API | 4532019c15414fd17e06bb3aa78501886e00da1d | [
"BSD-3-Clause"
] | 6 | 2017-08-24T13:18:21.000Z | 2017-10-03T18:06:13.000Z | emendation_box/serializers.py | fga-gpp-mds/2017.2-Grupo9 | 4532019c15414fd17e06bb3aa78501886e00da1d | [
"BSD-3-Clause"
] | 173 | 2017-08-31T15:29:01.000Z | 2017-12-14T13:40:13.000Z | emendation_box/serializers.py | fga-gpp-mds/2017.2-SiGI-Op_API | 4532019c15414fd17e06bb3aa78501886e00da1d | [
"BSD-3-Clause"
] | 2 | 2018-11-19T10:33:00.000Z | 2019-06-19T22:35:43.000Z | from rest_framework import serializers
from .models import EmendationBoxStructure, EmendationBoxType, EmendationBox
class EmendationBoxTypeSerializer(serializers.ModelSerializer):
class Meta:
model = EmendationBoxType
fields = [
'id',
'description',
]
class Emenda... | 28.829268 | 79 | 0.555838 | 72 | 1,182 | 8.986111 | 0.472222 | 0.120556 | 0.14374 | 0.162287 | 0.247295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.375635 | 1,182 | 40 | 80 | 29.55 | 0.876694 | 0 | 0 | 0.382353 | 0 | 0 | 0.110829 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 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 |
5bf36b81a5557f4a83bb24b4b66ced5aca960191 | 8,132 | py | Python | PDBtoDots.py | RMeli/sensaas | f9a23c65cf6b70d4a6ccf482b233bf17b86c7b3b | [
"BSD-3-Clause"
] | 12 | 2021-06-18T07:58:00.000Z | 2022-01-19T04:57:46.000Z | PDBtoDots.py | RMeli/sensaas | f9a23c65cf6b70d4a6ccf482b233bf17b86c7b3b | [
"BSD-3-Clause"
] | 11 | 2021-06-18T14:38:09.000Z | 2022-01-21T11:53:16.000Z | PDBtoDots.py | RMeli/sensaas | f9a23c65cf6b70d4a6ccf482b233bf17b86c7b3b | [
"BSD-3-Clause"
] | 3 | 2021-06-18T14:28:01.000Z | 2022-01-19T01:16:43.000Z | #!/usr/bin/python3.7
#Author: Lucas GRANDMOUGIN
import sys
import os
import math
import re
import numpy as np
#print('usage: <>.py <file.pdb> \nexecute nsc to generate point-based surface and create tables and if verbose==1 files dotslabel1.xyzrgb dotslabel2.xyzrgb dotslabel3.xyzrgb and dotslabel4.xyzrgb\n')
def p... | 34.457627 | 288 | 0.564191 | 1,083 | 8,132 | 4.23638 | 0.182825 | 0.034002 | 0.031386 | 0.026155 | 0.188317 | 0.162598 | 0.141456 | 0.118134 | 0.058849 | 0.024194 | 0 | 0.064454 | 0.236842 | 8,132 | 235 | 289 | 34.604255 | 0.674831 | 0.049803 | 0 | 0.203209 | 1 | 0 | 0.078259 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005348 | false | 0 | 0.026738 | 0 | 0.037433 | 0.016043 | 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 |
5bfb60401fb3180662fe2cf6854036c39c7bffb8 | 3,352 | py | Python | tests/test_neofoodclub.py | diceroll123/neofoodclub.py | ac82ee32bb6ed4f98ebce222273910bc8acfcd95 | [
"MIT"
] | 2 | 2021-04-21T06:34:50.000Z | 2021-04-21T06:38:09.000Z | tests/test_neofoodclub.py | diceroll123/neofoodclub.py | ac82ee32bb6ed4f98ebce222273910bc8acfcd95 | [
"MIT"
] | 2 | 2021-12-14T00:19:42.000Z | 2022-02-19T02:15:52.000Z | tests/test_neofoodclub.py | diceroll123/neofoodclub.py | ac82ee32bb6ed4f98ebce222273910bc8acfcd95 | [
"MIT"
] | 1 | 2021-05-05T02:25:20.000Z | 2021-05-05T02:25:20.000Z | import unittest
from typing import Tuple
from neofoodclub import NeoFoodClub # type: ignore
from neofoodclub.types import RoundData # type: ignore
# i picked the smallest round I could quickly find
test_round_data: RoundData = {
"currentOdds": [
[1, 2, 13, 3, 5],
[1, 4, 2, 4, 6],
[1, 3, ... | 27.47541 | 120 | 0.498807 | 462 | 3,352 | 3.474026 | 0.24026 | 0.011215 | 0.041122 | 0.048598 | 0.237383 | 0.204984 | 0.161994 | 0.109034 | 0.109034 | 0.109034 | 0 | 0.187553 | 0.295346 | 3,352 | 121 | 121 | 27.702479 | 0.491956 | 0.025955 | 0 | 0.216981 | 0 | 0 | 0.111147 | 0.063694 | 0 | 0 | 0.022293 | 0 | 0.037736 | 1 | 0.037736 | false | 0 | 0.037736 | 0 | 0.09434 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5bfcf311b8aa728cf923ee0a028bdc0a9bd5b881 | 384 | py | Python | backend/api/migrations/0023_auto_20190823_1611.py | yamamz/BRMI_LOANAPP | e6f79789855a633ee78a168452bca508622bcca8 | [
"MIT"
] | null | null | null | backend/api/migrations/0023_auto_20190823_1611.py | yamamz/BRMI_LOANAPP | e6f79789855a633ee78a168452bca508622bcca8 | [
"MIT"
] | 6 | 2020-06-05T22:43:22.000Z | 2022-02-10T12:32:19.000Z | backend/api/migrations/0023_auto_20190823_1611.py | yamamz/BRMI_LOANAPP | e6f79789855a633ee78a168452bca508622bcca8 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.1 on 2019-08-23 08:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0022_auto_20190823_1553'),
]
operations = [
migrations.AlterField(
model_name='loan',
name='loan_period',
... | 20.210526 | 49 | 0.59375 | 43 | 384 | 5.186047 | 0.767442 | 0.071749 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120879 | 0.289063 | 384 | 18 | 50 | 21.333333 | 0.695971 | 0.117188 | 0 | 0 | 1 | 0 | 0.121662 | 0.068249 | 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 |
75022887b6f82317b30d98bb409f69f029c65114 | 486 | py | Python | tests/frameworks/fast/test_fast_template.py | Jhsmit/awesome-panel-extensions | 41eba7cf84caa911be4ed0df2a96e16fc1e70263 | [
"CC-BY-4.0"
] | 3 | 2020-07-16T07:28:45.000Z | 2020-07-17T12:53:56.000Z | tests/frameworks/fast/test_fast_template.py | MarcSkovMadsen/panel-extensions-template | f41ad8d8fb8502f87de3a4992917cbffb6299012 | [
"CC-BY-4.0"
] | null | null | null | tests/frameworks/fast/test_fast_template.py | MarcSkovMadsen/panel-extensions-template | f41ad8d8fb8502f87de3a4992917cbffb6299012 | [
"CC-BY-4.0"
] | null | null | null | # pylint: disable=redefined-outer-name,protected-access
# pylint: disable=missing-function-docstring,missing-module-docstring,missing-class-docstring
import panel as pn
from panel import Template
from awesome_panel_extensions.frameworks.fast import FastTemplate
def test_constructor():
# Given
column = pn.Col... | 27 | 93 | 0.753086 | 57 | 486 | 6.368421 | 0.578947 | 0.071625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158436 | 486 | 17 | 94 | 28.588235 | 0.887531 | 0.331276 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.444444 | 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 |
7502dff8f0fd39e9a5e925ef11b5e1b9ca9564a0 | 2,371 | py | Python | doc2json/jats2json/pmc_utils/back_tag_utils.py | josephcc/s2orc-doc2json | 8a6a21b7a8a3c6ad11cd42bdd0d46ee32a5a990d | [
"Apache-2.0"
] | 132 | 2021-02-15T18:16:12.000Z | 2022-03-29T04:47:17.000Z | doc2json/jats2json/pmc_utils/back_tag_utils.py | josephcc/s2orc-doc2json | 8a6a21b7a8a3c6ad11cd42bdd0d46ee32a5a990d | [
"Apache-2.0"
] | 6 | 2021-02-21T09:52:11.000Z | 2022-02-01T17:45:43.000Z | doc2json/jats2json/pmc_utils/back_tag_utils.py | josephcc/s2orc-doc2json | 8a6a21b7a8a3c6ad11cd42bdd0d46ee32a5a990d | [
"Apache-2.0"
] | 18 | 2021-02-15T18:18:05.000Z | 2022-03-11T19:37:47.000Z | from typing import Dict, List
def _wrap_text(tag):
return tag.text if tag else ''
def parse_authors(authors_tag) -> List:
"""The PMC XML has a slightly different format than authors listed in front tag."""
if not authors_tag:
return []
authors = []
for name_tag in authors_t... | 42.339286 | 122 | 0.564319 | 309 | 2,371 | 4.113269 | 0.307443 | 0.08812 | 0.078678 | 0.04406 | 0.056648 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00674 | 0.311683 | 2,371 | 56 | 123 | 42.339286 | 0.772059 | 0.113454 | 0 | 0 | 0 | 0 | 0.120529 | 0.012249 | 0 | 0 | 0 | 0.017857 | 0 | 1 | 0.065217 | false | 0 | 0.021739 | 0.021739 | 0.173913 | 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 |
75054ce723fd893b6681ad004d075813a927586a | 2,593 | py | Python | gachianalyzer/analysis_organizer.py | mitsu-ksgr/splatoon2-gachianalyzer | 9d964f514c85b626bc8e604a0bf3a2598ac91765 | [
"MIT"
] | null | null | null | gachianalyzer/analysis_organizer.py | mitsu-ksgr/splatoon2-gachianalyzer | 9d964f514c85b626bc8e604a0bf3a2598ac91765 | [
"MIT"
] | 1 | 2019-07-15T16:54:57.000Z | 2019-07-15T18:41:39.000Z | gachianalyzer/analysis_organizer.py | mitsu-ksgr/splatoon2-gachianalyzer | 9d964f514c85b626bc8e604a0bf3a2598ac91765 | [
"MIT"
] | null | null | null | import cv2
from .video_analyzer import VideoAnalyzer
class AnalysisOrganizer:
"""
VideoAnalyzer の結果を編成します.
"""
def __organize(self):
"""
self.result をイベント毎に編成しなおします.
"""
events = []
prev = self.result[0]
for i in range(1, len(self.result)):
... | 30.505882 | 81 | 0.482838 | 245 | 2,593 | 4.942857 | 0.330612 | 0.044591 | 0.046243 | 0.056152 | 0.117258 | 0.084228 | 0 | 0 | 0 | 0 | 0 | 0.00646 | 0.403008 | 2,593 | 84 | 82 | 30.869048 | 0.775194 | 0.110297 | 0 | 0.107143 | 0 | 0.017857 | 0.133092 | 0 | 0 | 0 | 0 | 0.011905 | 0 | 1 | 0.071429 | false | 0.017857 | 0.035714 | 0 | 0.160714 | 0.017857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
7509211755a7245800dfbd3042066dfd9b209c87 | 288 | py | Python | answers/x_2_6.py | ofl/kuku | 76eefc0d3d859051473ee0d5f48b5d42d17d05a6 | [
"MIT"
] | null | null | null | answers/x_2_6.py | ofl/kuku | 76eefc0d3d859051473ee0d5f48b5d42d17d05a6 | [
"MIT"
] | 4 | 2021-09-23T03:19:52.000Z | 2021-11-13T10:38:21.000Z | answers/x_2_6.py | ofl/kuku | 76eefc0d3d859051473ee0d5f48b5d42d17d05a6 | [
"MIT"
] | null | null | null | # x_2_6
#
# ヒントを参考に「a」「b」「c」「d」がそれぞれどんな値となるかを予想してください
# ヒント
print(type('桃太郎'))
print(type(10))
print(type(12.3))
a = type('777') # => str
b = type(10 + 3.5) # => float
c = type(14 / 7) # => float
d = type(10_000_000) # => int
# print(a)
# print(b)
# print(c)
# print(d)
| 15.157895 | 43 | 0.541667 | 49 | 288 | 3.102041 | 0.489796 | 0.177632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111607 | 0.222222 | 288 | 18 | 44 | 16 | 0.566964 | 0.413194 | 0 | 0 | 0 | 0 | 0.038462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
75141fdc0d4a4c71c0178c6ccd7f200961cef89d | 8,204 | py | Python | analysis/gfp/seqtools.py | johli/genesis | 5424c1888d4330e505ad87412e7f1cc5dd828888 | [
"MIT"
] | 12 | 2020-02-02T14:29:15.000Z | 2021-09-12T08:05:43.000Z | analysis/gfp/seqtools.py | johli/genesis | 5424c1888d4330e505ad87412e7f1cc5dd828888 | [
"MIT"
] | 1 | 2022-01-04T08:04:00.000Z | 2022-01-10T08:49:04.000Z | analysis/gfp/seqtools.py | johli/genesis | 5424c1888d4330e505ad87412e7f1cc5dd828888 | [
"MIT"
] | 3 | 2020-03-10T22:24:05.000Z | 2021-05-05T13:23:01.000Z | import numpy as np
class SequenceTools(object):
dna2gray_ = {'c': (0, 0), 't': (1, 0), 'g': (1, 1), 'a': (0, 1)}
gray2dna_ = {(0, 0): 'c', (1, 0): 't', (1, 1): 'g', (0, 1): 'a'}
codon2protein_ = {'ttt': 'f', 'ttc': 'f', 'tta': 'l', 'ttg': 'l', 'tct': 's', 'tcc': 's', 'tca': 's',
'tc... | 44.345946 | 112 | 0.384203 | 1,096 | 8,204 | 2.758212 | 0.213504 | 0.035726 | 0.006947 | 0.006616 | 0.292425 | 0.202117 | 0.149851 | 0.127688 | 0.093285 | 0.093285 | 0 | 0.046084 | 0.304364 | 8,204 | 184 | 113 | 44.586957 | 0.483617 | 0.034252 | 0 | 0.186335 | 0 | 0 | 0.108748 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074534 | false | 0 | 0.006211 | 0.006211 | 0.198758 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
751dc8bcc74a49ad7a489ad38470f4ef64fc97a5 | 12,715 | py | Python | launch/test/launch/test_logging.py | pal-robotics-forks/launch | 9a0a01924cd88f832c5a50903553ddcec6ef648d | [
"Apache-2.0"
] | null | null | null | launch/test/launch/test_logging.py | pal-robotics-forks/launch | 9a0a01924cd88f832c5a50903553ddcec6ef648d | [
"Apache-2.0"
] | null | null | null | launch/test/launch/test_logging.py | pal-robotics-forks/launch | 9a0a01924cd88f832c5a50903553ddcec6ef648d | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Open Source Robotics Foundation, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 39.243827 | 98 | 0.683366 | 1,790 | 12,715 | 4.627933 | 0.128492 | 0.120835 | 0.135321 | 0.175036 | 0.680106 | 0.636045 | 0.594037 | 0.550217 | 0.511347 | 0.445799 | 0 | 0.00538 | 0.181361 | 12,715 | 323 | 99 | 39.365325 | 0.79047 | 0.125757 | 0 | 0.461538 | 0 | 0 | 0.11094 | 0.005158 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.051282 | false | 0 | 0.034188 | 0.004274 | 0.098291 | 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 |
751f0dac6fc587c1fb5bfe7b2c73eb70a7dff82d | 690 | py | Python | code/C10/pkg/mysql.py | DataScienceCoding/Python-Web-Crawler | 7348f20b09fc89263ac4a7109b3890c64b687265 | [
"MIT"
] | 2 | 2020-12-17T06:33:48.000Z | 2020-12-26T01:21:13.000Z | code/C10/pkg/mysql.py | DataScienceCoding/Python-Web-Crawler | 7348f20b09fc89263ac4a7109b3890c64b687265 | [
"MIT"
] | null | null | null | code/C10/pkg/mysql.py | DataScienceCoding/Python-Web-Crawler | 7348f20b09fc89263ac4a7109b3890c64b687265 | [
"MIT"
] | null | null | null | import pymysql
from conf.cfg import Conf
class MysqlCli():
def __init__(self):
conf = Conf()
option = conf.section('mysql')
try:
self._db = pymysql.connect(host=option['host'],
port=int(option['port']),
... | 28.75 | 67 | 0.484058 | 70 | 690 | 4.6 | 0.542857 | 0.074534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.394203 | 690 | 23 | 68 | 30 | 0.770335 | 0.097101 | 0 | 0 | 0 | 0 | 0.080645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.058824 | 0.117647 | 0 | 0.294118 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
75218be058245f88ba545a6dbbbb4d1e406ae82c | 658 | py | Python | HookMandrill2Mongo.py | krisfremen/hookmandrill2mongo | 2533ba8ec3e7d38ecccd0529c1f2e86175233156 | [
"MIT"
] | null | null | null | HookMandrill2Mongo.py | krisfremen/hookmandrill2mongo | 2533ba8ec3e7d38ecccd0529c1f2e86175233156 | [
"MIT"
] | null | null | null | HookMandrill2Mongo.py | krisfremen/hookmandrill2mongo | 2533ba8ec3e7d38ecccd0529c1f2e86175233156 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
from flask import *
from pymongo import MongoClient
application = app = Flask(__name__)
dbhost = "localhost"
dbname = "webhooks"
dbcoll = "mandrill"
@app.route('/', methods=['GET', 'POST'])
def hook():
try:
mongo = MongoClient(host=dbhost)
mandrillhookjso... | 25.307692 | 70 | 0.642857 | 77 | 658 | 5.324675 | 0.701299 | 0.014634 | 0.014634 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015267 | 0.203647 | 658 | 26 | 71 | 25.307692 | 0.767176 | 0.057751 | 0 | 0 | 0 | 0 | 0.11147 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | 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 |
7523dddeccce7c26beff51912adb1dd4fceff950 | 11,210 | py | Python | logging_automation.py | aws-samples/aws-centeralized-logging-with-datadog | f1fb778664915b645a0fec5c56a34654ac761233 | [
"MIT-0"
] | 3 | 2020-02-05T03:52:33.000Z | 2021-10-30T01:41:04.000Z | logging_automation.py | aws-samples/aws-centeralized-logging-with-datadog | f1fb778664915b645a0fec5c56a34654ac761233 | [
"MIT-0"
] | null | null | null | logging_automation.py | aws-samples/aws-centeralized-logging-with-datadog | f1fb778664915b645a0fec5c56a34654ac761233 | [
"MIT-0"
] | 6 | 2018-09-06T05:48:07.000Z | 2021-10-30T01:40:56.000Z | # Copyright 2008-2018 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
# http://aws.amazon.com/apache2.0/
# or in the "license" file accompanying... | 46.322314 | 268 | 0.632739 | 1,108 | 11,210 | 6.168773 | 0.234657 | 0.018435 | 0.019459 | 0.010241 | 0.317484 | 0.276372 | 0.212729 | 0.139868 | 0.122604 | 0.108852 | 0 | 0.005819 | 0.233452 | 11,210 | 242 | 269 | 46.322314 | 0.789596 | 0.04826 | 0 | 0.194737 | 0 | 0 | 0.2195 | 0.043842 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047368 | null | null | 0.168421 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
75256c2774647f7511c9c5789e9a1b6ac39eb890 | 661 | py | Python | scripts/tweakstatus.py | willingc/pc-bot | 8a8ba6bc4c1fbb4bd3dbc740509bf30b3077b06c | [
"BSD-3-Clause"
] | 5 | 2015-05-29T04:18:15.000Z | 2020-07-01T00:28:27.000Z | scripts/tweakstatus.py | alex/pc-bot | ff6d9fcb16363c447e9abff1079708f945f795e9 | [
"BSD-3-Clause"
] | 1 | 2022-02-11T03:48:57.000Z | 2022-02-11T03:48:57.000Z | scripts/tweakstatus.py | willingc/pc-bot | 8a8ba6bc4c1fbb4bd3dbc740509bf30b3077b06c | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
"""
Manually tweak a talk's status, leaving a note about why.
"""
import sys
import argparse
import pycon_bot.mongo
from pycon_bot.models import TalkProposal, Note
p = argparse.ArgumentParser()
p.add_argument('talk_id', type=int)
p.add_argument('new_status', choices=[c[0] for c in TalkProposal.S... | 25.423077 | 75 | 0.733737 | 110 | 661 | 4.245455 | 0.536364 | 0.034261 | 0.102784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003454 | 0.124054 | 661 | 25 | 76 | 26.44 | 0.803109 | 0.118003 | 0 | 0 | 0 | 0 | 0.116522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.055556 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.