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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
81624fcd965529b6375ff1a7c827a489ec668951 | 10,153 | py | Python | src-py/libcloud-trunk/javaimpl/compute/drivers/Ibm_sceComputeContext.py | Schnitzl42/JLibcloud | 42914a5e1b0e80b2d2fd61a37592998ecb4a4de1 | [
"Apache-2.0"
] | 1 | 2016-01-30T19:23:16.000Z | 2016-01-30T19:23:16.000Z | src-py/libcloud-trunk/javaimpl/compute/drivers/Ibm_sceComputeContext.py | Schnitzl42/JLibcloud | 42914a5e1b0e80b2d2fd61a37592998ecb4a4de1 | [
"Apache-2.0"
] | null | null | null | src-py/libcloud-trunk/javaimpl/compute/drivers/Ibm_sceComputeContext.py | Schnitzl42/JLibcloud | 42914a5e1b0e80b2d2fd61a37592998ecb4a4de1 | [
"Apache-2.0"
] | null | null | null | # Parts or the whole documentation of this module
# are copied from the respective module:
# libcloud/compute/drivers/ibm_sce.py
# see also:
# https://github.com/apache/libcloud/tree/trunk/libcloud/compute/drivers/ibm_sce.py
#
# Apache Libcloud is licensed under the Apache 2.0 license.
# For more information, please se... | 28.281337 | 97 | 0.677435 | 1,272 | 10,153 | 5.262579 | 0.211478 | 0.032865 | 0.02689 | 0.029579 | 0.337018 | 0.304153 | 0.278608 | 0.255154 | 0.231252 | 0.171497 | 0 | 0.002662 | 0.22289 | 10,153 | 358 | 98 | 28.360335 | 0.845754 | 0.037033 | 0 | 0.569231 | 0 | 0 | 0.019532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | 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 |
8164c9abc9b114ac16458eee85da9c7ee3c3f2de | 360 | py | Python | bireme/title/admin.py | wilsonmoura/fi-admin | ad889b8419381db039fe753166277d9000179690 | [
"MIT",
"Python-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | bireme/title/admin.py | wilsonmoura/fi-admin | ad889b8419381db039fe753166277d9000179690 | [
"MIT",
"Python-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | bireme/title/admin.py | wilsonmoura/fi-admin | ad889b8419381db039fe753166277d9000179690 | [
"MIT",
"Python-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | from django.utils.translation import ugettext_lazy as _
from django.contrib import admin
from models import *
@admin.register(Mask)
class MaskAdmin(admin.ModelAdmin):
readonly_fields = ["mask"]
models = [Title, TitleVariance, BVSSpecialty, IndexRange, Audit, OnlineResources, OwnerList, IndexCode, Users, Issue, C... | 27.692308 | 129 | 0.788889 | 42 | 360 | 6.690476 | 0.714286 | 0.071174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116667 | 360 | 12 | 130 | 30 | 0.883648 | 0 | 0 | 0 | 0 | 0 | 0.011111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
816bf4a45befde0ac4bc2c43c9fc7d3a67b60f63 | 9,852 | py | Python | tests/instances_tests.py | sureshanaparti/cloudstack-gcestack | de273cef53e29c40b0043761dad13b8a91239f17 | [
"Apache-2.0"
] | 6 | 2015-05-06T13:37:06.000Z | 2021-11-09T21:38:44.000Z | tests/instances_tests.py | sureshanaparti/cloudstack-gcestack | de273cef53e29c40b0043761dad13b8a91239f17 | [
"Apache-2.0"
] | 2 | 2018-07-19T07:45:59.000Z | 2021-05-20T12:35:01.000Z | tests/instances_tests.py | sureshanaparti/cloudstack-gcestack | de273cef53e29c40b0043761dad13b8a91239f17 | [
"Apache-2.0"
] | 11 | 2015-05-06T13:56:57.000Z | 2021-11-09T21:38:35.000Z | #!/usr/bin/env python
# encoding: utf-8
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache Licens... | 38.186047 | 142 | 0.576228 | 999 | 9,852 | 5.479479 | 0.202202 | 0.050237 | 0.034161 | 0.052795 | 0.680124 | 0.660212 | 0.654001 | 0.647059 | 0.634636 | 0.603581 | 0 | 0.00901 | 0.324097 | 9,852 | 257 | 143 | 38.33463 | 0.813035 | 0.081506 | 0 | 0.586735 | 0 | 0.020408 | 0.27168 | 0.173109 | 0 | 0 | 0 | 0 | 0.045918 | 1 | 0.040816 | false | 0 | 0.02551 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
81790dc4230e94539a55f10fd2964bfa540aa962 | 5,082 | py | Python | shfl/model/recommender.py | SSSuperTIan/Sherpa.ai-Federated-Learning-Framework | a30d73a018526f1033ee0ec57489c4c6e2f15b0a | [
"Apache-2.0"
] | 1 | 2021-03-18T07:31:36.000Z | 2021-03-18T07:31:36.000Z | shfl/model/recommender.py | SSSuperTIan/Sherpa.ai-Federated-Learning-Framework | a30d73a018526f1033ee0ec57489c4c6e2f15b0a | [
"Apache-2.0"
] | null | null | null | shfl/model/recommender.py | SSSuperTIan/Sherpa.ai-Federated-Learning-Framework | a30d73a018526f1033ee0ec57489c4c6e2f15b0a | [
"Apache-2.0"
] | null | null | null | import abc
import numpy as np
from shfl.model.model import TrainableModel
def _check_data(data):
"""
Method that checks if the data corresponds to a single user
# Arguments:
data: array with data
"""
number_of_clients = len(np.unique(data[:, 0]))
if number_of_clients > 1:
ra... | 31.37037 | 119 | 0.620228 | 615 | 5,082 | 5.030894 | 0.196748 | 0.054945 | 0.043956 | 0.036846 | 0.638655 | 0.585326 | 0.478345 | 0.478345 | 0.4415 | 0.4415 | 0 | 0.001442 | 0.317592 | 5,082 | 161 | 120 | 31.565217 | 0.890715 | 0.492523 | 0 | 0.282609 | 0 | 0 | 0.085117 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 1 | 0.282609 | false | 0 | 0.065217 | 0 | 0.434783 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8179fc46c2e7f796b1c6b8ca7005910ebdf32994 | 4,207 | py | Python | src/backlogapiprocessmodule/utils/Issue.py | tys-hiroshi/BacklogProcessing | 3ca95242045fb867295cfc2f363ee6a980bd8dc9 | [
"MIT"
] | null | null | null | src/backlogapiprocessmodule/utils/Issue.py | tys-hiroshi/BacklogProcessing | 3ca95242045fb867295cfc2f363ee6a980bd8dc9 | [
"MIT"
] | null | null | null | src/backlogapiprocessmodule/utils/Issue.py | tys-hiroshi/BacklogProcessing | 3ca95242045fb867295cfc2f363ee6a980bd8dc9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
from datetime import datetime, timedelta
from backlogapiprocessmodule.utils.time_utils import TimeUtils
class Issue(object):
def __init__(self, issueKey, client, logger, beginDate, endDate):
self.issueKey = issueKey
self.client = client
self.lo... | 43.371134 | 132 | 0.624435 | 466 | 4,207 | 5.534335 | 0.285408 | 0.086855 | 0.062427 | 0.037224 | 0.16518 | 0.11012 | 0.11012 | 0.089182 | 0.089182 | 0.050407 | 0 | 0.013325 | 0.2686 | 4,207 | 96 | 133 | 43.822917 | 0.824829 | 0.164725 | 0 | 0.029851 | 0 | 0 | 0.125537 | 0 | 0 | 0 | 0 | 0.010417 | 0 | 1 | 0.059701 | false | 0.014925 | 0.029851 | 0 | 0.179104 | 0.014925 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
817faa8e9b51c476f2c0d7ac09aad1046fe3ecdb | 1,508 | py | Python | tariff/models.py | zhouyuangan/parkingweb | a9c97b47adda9fc3ce5531121489087a3f22b576 | [
"MIT"
] | 2 | 2019-07-17T14:13:31.000Z | 2019-07-17T14:13:36.000Z | tariff/models.py | zhouyuangan/parkingweb | a9c97b47adda9fc3ce5531121489087a3f22b576 | [
"MIT"
] | 1 | 2018-10-24T17:34:46.000Z | 2018-10-27T02:12:35.000Z | tariff/models.py | zhouyuangan/parkingweb | a9c97b47adda9fc3ce5531121489087a3f22b576 | [
"MIT"
] | 1 | 2018-10-30T16:45:54.000Z | 2018-10-30T16:45:54.000Z | from django.db import models
from users.models import UserInfo
# Create your models here.
class Tariffs(models.Model):
# user = models.ForeignKey(UserInfo,on_delete=models.CASCADE)
user_name = models.CharField(u'用户',default='abc',max_length = 20)
car_number = models.CharField(u'车牌号',max_length=20)
star... | 39.684211 | 101 | 0.639257 | 192 | 1,508 | 4.796875 | 0.364583 | 0.095548 | 0.06949 | 0.117264 | 0.424539 | 0.32899 | 0.29316 | 0.29316 | 0.29316 | 0.29316 | 0 | 0.014035 | 0.244032 | 1,508 | 38 | 102 | 39.684211 | 0.79386 | 0.055703 | 0 | 0.375 | 0 | 0 | 0.058369 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.0625 | 0.03125 | 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 |
8182ae5e1eca7b05d3b2593a8f3c695bc864eb92 | 3,470 | py | Python | cli/engine/InitEngine.py | mkyc/epiphany | 578b3a0cfbdd307fe8d672cf4d01190276898f4d | [
"Apache-2.0"
] | 130 | 2019-01-08T19:03:56.000Z | 2022-03-11T14:13:37.000Z | cli/engine/InitEngine.py | mkyc/epiphany | 578b3a0cfbdd307fe8d672cf4d01190276898f4d | [
"Apache-2.0"
] | 1,925 | 2019-01-09T08:33:44.000Z | 2022-03-31T14:37:13.000Z | cli/engine/InitEngine.py | mkyc/epiphany | 578b3a0cfbdd307fe8d672cf4d01190276898f4d | [
"Apache-2.0"
] | 166 | 2019-01-08T16:03:37.000Z | 2022-01-09T13:56:33.000Z | import os
from cli.helpers.Step import Step
from cli.helpers.build_io import save_manifest, get_build_path
from cli.helpers.data_loader import load_all_schema_objs, types
from cli.engine.ApplyEngine import ApplyEngine
from cli.helpers.objdict_helpers import remove_value
from cli.version import VERSION
from cli.helpers... | 40.348837 | 143 | 0.649568 | 440 | 3,470 | 4.909091 | 0.311364 | 0.02963 | 0.032407 | 0.023611 | 0.171759 | 0.152778 | 0.037963 | 0.037963 | 0 | 0 | 0 | 0.001173 | 0.262824 | 3,470 | 85 | 144 | 40.823529 | 0.843237 | 0.199712 | 0 | 0.092593 | 0 | 0 | 0.087287 | 0.031873 | 0 | 0 | 0 | 0.011765 | 0 | 1 | 0.111111 | false | 0.018519 | 0.148148 | 0 | 0.351852 | 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 |
818c37b319f6eb766d943536425095fc877c7a30 | 9,496 | py | Python | ginger/pretenses/streams.py | vivsh/django-ginger | d293109becc72845a23f2aeb732ed808a7a67d69 | [
"MIT"
] | null | null | null | ginger/pretenses/streams.py | vivsh/django-ginger | d293109becc72845a23f2aeb732ed808a7a67d69 | [
"MIT"
] | null | null | null | ginger/pretenses/streams.py | vivsh/django-ginger | d293109becc72845a23f2aeb732ed808a7a67d69 | [
"MIT"
] | null | null | null |
from decimal import Decimal
from datetime import datetime, timedelta, date, time
from django.core.files import File
from django.contrib.gis.geos.point import Point
import random
import string
from django.core.files.base import ContentFile
from . import utils
__all__ = [
"IntegerStream",
"FloatStream",
"... | 27.445087 | 113 | 0.62321 | 1,109 | 9,496 | 5.207394 | 0.174932 | 0.037403 | 0.04381 | 0.063723 | 0.287446 | 0.224935 | 0.152035 | 0.102165 | 0.053506 | 0.038961 | 0 | 0.018865 | 0.257582 | 9,496 | 345 | 114 | 27.524638 | 0.800284 | 0 | 0 | 0.236 | 0 | 0 | 0.048763 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.168 | false | 0.064 | 0.044 | 0.044 | 0.42 | 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 |
818efa69cd5ce593658b9cb3cead5ccb5cc1879a | 2,464 | py | Python | lightedge_core/subscription.py | lightedge/lightedge-rniservice-mananger | 9c140104c9693330163f28f3a747dfbc0cf0da20 | [
"Apache-2.0"
] | 1 | 2021-06-16T11:59:04.000Z | 2021-06-16T11:59:04.000Z | lightedge_core/subscription.py | lightedge/lightedge-rniservice-mananger | 9c140104c9693330163f28f3a747dfbc0cf0da20 | [
"Apache-2.0"
] | null | null | null | lightedge_core/subscription.py | lightedge/lightedge-rniservice-mananger | 9c140104c9693330163f28f3a747dfbc0cf0da20 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
#
# Copyright (c) 2020 Roberto Riggio
#
# 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 applicabl... | 26.212766 | 79 | 0.659497 | 286 | 2,464 | 5.576923 | 0.433566 | 0.037618 | 0.041379 | 0.020063 | 0.05768 | 0.05768 | 0.05768 | 0 | 0 | 0 | 0 | 0.004762 | 0.232955 | 2,464 | 93 | 80 | 26.494624 | 0.839153 | 0.330357 | 0 | 0.128205 | 0 | 0 | 0.120025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.051282 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8194fce56c8e4453ca0695044d909d43ba2fa113 | 10,880 | py | Python | Daemons/daemon.py | dalyIsaac/PIM_Mini_Tests_WPF | 9cea47af6563423b7c6ad7fc7f8ace03d1aae70e | [
"Unlicense",
"BSD-3-Clause"
] | null | null | null | Daemons/daemon.py | dalyIsaac/PIM_Mini_Tests_WPF | 9cea47af6563423b7c6ad7fc7f8ace03d1aae70e | [
"Unlicense",
"BSD-3-Clause"
] | null | null | null | Daemons/daemon.py | dalyIsaac/PIM_Mini_Tests_WPF | 9cea47af6563423b7c6ad7fc7f8ace03d1aae70e | [
"Unlicense",
"BSD-3-Clause"
] | null | null | null | """
Daemon which allows the automation of the execution of tests.
"""
import sys
import os
import socket
import logging
from datetime import datetime, timedelta
import time
import atexit
from signal import SIGTERM
import user_inputs
import leds
import comms
class Daemon(object):
"""
A generic daemon class.
... | 36.510067 | 117 | 0.530239 | 1,200 | 10,880 | 4.6975 | 0.233333 | 0.062445 | 0.034593 | 0.035125 | 0.25581 | 0.217846 | 0.206493 | 0.182367 | 0.134823 | 0.118148 | 0 | 0.020066 | 0.358732 | 10,880 | 297 | 118 | 36.632997 | 0.787874 | 0.052482 | 0 | 0.242152 | 0 | 0 | 0.122096 | 0.005209 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.049327 | null | null | 0.008969 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8197be5044f152dc12fb493316f9e509698b2375 | 1,286 | py | Python | venv/Lib/site-packages/nornir/plugins/tasks/connections/paramiko_connection.py | melihteke/ebook_study | 4848ea42e37ee1d6ec777bfc33f49984653ace34 | [
"MIT"
] | null | null | null | venv/Lib/site-packages/nornir/plugins/tasks/connections/paramiko_connection.py | melihteke/ebook_study | 4848ea42e37ee1d6ec777bfc33f49984653ace34 | [
"MIT"
] | null | null | null | venv/Lib/site-packages/nornir/plugins/tasks/connections/paramiko_connection.py | melihteke/ebook_study | 4848ea42e37ee1d6ec777bfc33f49984653ace34 | [
"MIT"
] | null | null | null | import os
import paramiko
def paramiko_connection(task=None):
"""
This tasks connects to the device with paramiko to the device and sets the
relevant connection.
"""
host = task.host
client = paramiko.SSHClient()
client._policy = paramiko.WarningPolicy()
client.set_missing_host_key_p... | 27.956522 | 79 | 0.662519 | 153 | 1,286 | 5.366013 | 0.366013 | 0.076736 | 0.063337 | 0.08039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229393 | 1,286 | 45 | 80 | 28.577778 | 0.828456 | 0.139191 | 0 | 0 | 0 | 0 | 0.110599 | 0 | 0 | 0 | 0 | 0.022222 | 0 | 1 | 0.035714 | false | 0.035714 | 0.071429 | 0 | 0.107143 | 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 |
81993dd04fb8539904d5673f2d6af1572ca89e4d | 418 | py | Python | src/mars/dataAPI/models.py | SERLatBTH/Developer-Wearables-API | 4f0313162f2677bbfb92ea6d01ab22251c7e5168 | [
"MIT"
] | 1 | 2020-03-25T08:38:18.000Z | 2020-03-25T08:38:18.000Z | src/mars/dataAPI/models.py | SERLatBTH/SP-Developer-Wearables-API | 4f0313162f2677bbfb92ea6d01ab22251c7e5168 | [
"MIT"
] | null | null | null | src/mars/dataAPI/models.py | SERLatBTH/SP-Developer-Wearables-API | 4f0313162f2677bbfb92ea6d01ab22251c7e5168 | [
"MIT"
] | null | null | null | from django.db import models
from django.conf import settings
class Data(models.Model):
user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
device_id = models.PositiveIntegerField()
activity_id = models.PositiveIntegerField()
type_of_data = models.CharField(max_length=50)
d... | 38 | 80 | 0.777512 | 55 | 418 | 5.690909 | 0.636364 | 0.095847 | 0.178914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00551 | 0.131579 | 418 | 10 | 81 | 41.8 | 0.856749 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
819a11fe278d73a423a94cc89b63aa9bf465f7d4 | 1,227 | py | Python | pipNuke.py | beeedy/pipNuke | 63e2e1578c3cb43fbb44394e894e7c3a67748e47 | [
"MIT"
] | null | null | null | pipNuke.py | beeedy/pipNuke | 63e2e1578c3cb43fbb44394e894e7c3a67748e47 | [
"MIT"
] | null | null | null | pipNuke.py | beeedy/pipNuke | 63e2e1578c3cb43fbb44394e894e7c3a67748e47 | [
"MIT"
] | null | null | null | import subprocess
import os
def nuke(name, wait_for_finish=True):
test = subprocess.Popen(["pip", "freeze"], stdout=subprocess.PIPE).communicate()[0]
packages = [a.split("==")[0] for a in test.split("\n")][:-1]
processes = []
for package in packages:
if name in package:
print "Removing {}".format(package)
... | 24.54 | 112 | 0.682152 | 172 | 1,227 | 4.77907 | 0.482558 | 0.025547 | 0.03163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005888 | 0.169519 | 1,227 | 50 | 113 | 24.54 | 0.800785 | 0 | 0 | 0.081081 | 0 | 0 | 0.263029 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.081081 | null | null | 0.189189 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
819be90f7d4e0f9d8942a8085b876d37b07fa9fc | 2,568 | py | Python | pyjac/libgen/__main__.py | stgeke/pyJac-v2 | c2716a05df432efd8e5f6cc5cc3d46b72c24c019 | [
"MIT"
] | 9 | 2018-10-08T07:49:20.000Z | 2021-06-26T15:28:30.000Z | pyjac/libgen/__main__.py | stgeke/pyJac-v2 | c2716a05df432efd8e5f6cc5cc3d46b72c24c019 | [
"MIT"
] | 13 | 2018-09-01T14:17:51.000Z | 2021-07-30T16:19:33.000Z | pyjac/libgen/__main__.py | arghdos/spyJac | bdd6940c27681e3b19ee41efb31abd20a89d1be8 | [
"MIT"
] | 7 | 2018-09-08T11:57:34.000Z | 2022-02-14T13:57:20.000Z | from argparse import ArgumentParser
from pyjac.libgen import generate_library
from pyjac.core.enum_types import KernelType
from pyjac import utils
if __name__ == '__main__':
parser = ArgumentParser(
description='Generates a shared/static library '
'from previously generated pyJac files... | 43.525424 | 80 | 0.471573 | 224 | 2,568 | 5.276786 | 0.370536 | 0.053299 | 0.100677 | 0.055838 | 0.187817 | 0.187817 | 0.187817 | 0.187817 | 0.187817 | 0.109983 | 0 | 0 | 0.441589 | 2,568 | 58 | 81 | 44.275862 | 0.824268 | 0 | 0 | 0.309091 | 1 | 0 | 0.236371 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.072727 | 0 | 0.072727 | 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 |
81a21714e575fc20ab9a24d16e7b24705f68059b | 1,528 | py | Python | examples/03_arrays.py | gkovelman/Hydra | 8668719d37bc3c9c656a43f647d18ab6ee8db093 | [
"MIT"
] | null | null | null | examples/03_arrays.py | gkovelman/Hydra | 8668719d37bc3c9c656a43f647d18ab6ee8db093 | [
"MIT"
] | null | null | null | examples/03_arrays.py | gkovelman/Hydra | 8668719d37bc3c9c656a43f647d18ab6ee8db093 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
:file: 03_arrays.py
A review of the Array type.
:date: 11/06/2016
:authors:
- Gilad Naaman <gilad.naaman@gmail.com>
"""
from hydra import *
import binascii
class SmallStruct(Struct):
a = uint8_t(0xAA)
b = uint8_t(0xFF)
class HasArraysInIt(Struct):
byte_array = Array(8)
... | 22.470588 | 57 | 0.612565 | 161 | 1,528 | 5.670807 | 0.397516 | 0.017525 | 0.019715 | 0.021906 | 0.219058 | 0.043812 | 0.043812 | 0.035049 | 0.035049 | 0.035049 | 0 | 0.171556 | 0.263743 | 1,528 | 68 | 58 | 22.470588 | 0.64 | 0.304974 | 0 | 0.28 | 0 | 0 | 0.008762 | 0 | 0 | 0 | 0.056955 | 0 | 0 | 0 | null | null | 0 | 0.08 | null | null | 0.32 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
81a3d2a00a7bc46566388a8bdf8bbf86297741bb | 728 | py | Python | server/memcache_chunker.py | metzen/ingress-notify | bea0f67606ff7579c78cd97b218980fa5db15b20 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | server/memcache_chunker.py | metzen/ingress-notify | bea0f67606ff7579c78cd97b218980fa5db15b20 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2020-07-01T22:19:43.000Z | 2020-07-01T22:19:43.000Z | server/memcache_chunker.py | metzen/ingress-notify | bea0f67606ff7579c78cd97b218980fa5db15b20 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | """Memcache API with chunking support for storing large objects."""
import pickle
from google.appengine.api import memcache
def set(key, value, chunksize=950000):
serialized = pickle.dumps(value, 2)
values = {}
for i in xrange(0, len(serialized), chunksize):
values['%s' % (i // chunksize)] = serialized[i:... | 29.12 | 67 | 0.686813 | 108 | 728 | 4.574074 | 0.509259 | 0.016194 | 0.024292 | 0.048583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016779 | 0.181319 | 728 | 24 | 68 | 30.333333 | 0.812081 | 0.142857 | 0 | 0 | 0 | 0 | 0.006472 | 0 | 0 | 0 | 0 | 0.041667 | 0 | 1 | 0.117647 | false | 0 | 0.117647 | 0 | 0.352941 | 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 |
81b591364e2c0facbc6aa9057c052964c9b73405 | 1,277 | py | Python | test/lmp/util/cfg/test_signature.py | ProFatXuanAll/char-RNN | 531f101b3d1ba20bafd28ca060aafe6f583d1efb | [
"Beerware"
] | null | null | null | test/lmp/util/cfg/test_signature.py | ProFatXuanAll/char-RNN | 531f101b3d1ba20bafd28ca060aafe6f583d1efb | [
"Beerware"
] | null | null | null | test/lmp/util/cfg/test_signature.py | ProFatXuanAll/char-RNN | 531f101b3d1ba20bafd28ca060aafe6f583d1efb | [
"Beerware"
] | null | null | null | """Test :py:mod:`lmp.util.cfg` signatures."""
import argparse
import inspect
from inspect import Parameter, Signature
import lmp.util.cfg
def test_module_attribute():
"""Ensure module attributes' signatures."""
assert hasattr(lmp.util.cfg, 'FILE_NAME')
assert lmp.util.cfg.FILE_NAME == 'cfg.json'
def test_mo... | 25.54 | 59 | 0.666406 | 145 | 1,277 | 5.758621 | 0.289655 | 0.083832 | 0.11976 | 0.071856 | 0.632335 | 0.585629 | 0.31976 | 0.31976 | 0.31976 | 0.244311 | 0 | 0 | 0.207518 | 1,277 | 49 | 60 | 26.061224 | 0.825099 | 0.087706 | 0 | 0.5 | 0 | 0 | 0.039164 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.05 | true | 0 | 0.1 | 0 | 0.15 | 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 |
81bb9464bd79623c8ba41e3f3640d87ec7ca23b4 | 1,921 | py | Python | src/OTLMOW/OTLModel/Datatypes/KlWegbermType.py | davidvlaminck/OTLClassPython | 71330afeb37c3ea6d9981f521ff8f4a3f8b946fc | [
"MIT"
] | 2 | 2022-02-01T08:58:11.000Z | 2022-02-08T13:35:17.000Z | src/OTLMOW/OTLModel/Datatypes/KlWegbermType.py | davidvlaminck/OTLMOW | 71330afeb37c3ea6d9981f521ff8f4a3f8b946fc | [
"MIT"
] | null | null | null | src/OTLMOW/OTLModel/Datatypes/KlWegbermType.py | davidvlaminck/OTLMOW | 71330afeb37c3ea6d9981f521ff8f4a3f8b946fc | [
"MIT"
] | null | null | null | # coding=utf-8
from OTLMOW.OTLModel.Datatypes.KeuzelijstField import KeuzelijstField
from OTLMOW.OTLModel.Datatypes.KeuzelijstWaarde import KeuzelijstWaarde
# Generated with OTLEnumerationCreator. To modify: extend, do not edit
class KlWegbermType(KeuzelijstField):
"""Types van wegberm die de plaats ten opzichte ... | 66.241379 | 193 | 0.637689 | 181 | 1,921 | 6.767956 | 0.430939 | 0.077551 | 0.093878 | 0.134694 | 0.346939 | 0.314286 | 0.248163 | 0.248163 | 0.248163 | 0.086531 | 0 | 0.000724 | 0.280583 | 1,921 | 28 | 194 | 68.607143 | 0.885673 | 0.077043 | 0 | 0 | 1 | 0.045455 | 0.490652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.409091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
81c52f11b37294920725b3b05d874806c0531d5d | 2,283 | py | Python | noxfile.py | Forst/nb4mna | a7f5bd054726d787e276e7601aec0229527c4b3d | [
"MIT"
] | null | null | null | noxfile.py | Forst/nb4mna | a7f5bd054726d787e276e7601aec0229527c4b3d | [
"MIT"
] | null | null | null | noxfile.py | Forst/nb4mna | a7f5bd054726d787e276e7601aec0229527c4b3d | [
"MIT"
] | null | null | null | # Based on 'Hypermodern Python' article series by Claudio Jolowicz
# https://cjolowicz.github.io/posts/hypermodern-python-03-linting/
from contextlib import contextmanager
import tempfile
from typing import Iterator, Protocol
import nox
import nox_poetry
# Default list of files to check
locations = ['src', 'noxfile... | 28.5375 | 106 | 0.659658 | 254 | 2,283 | 5.850394 | 0.417323 | 0.036339 | 0.092867 | 0.059219 | 0.274563 | 0.274563 | 0.274563 | 0.274563 | 0.271871 | 0.135935 | 0 | 0.01105 | 0.207184 | 2,283 | 79 | 107 | 28.898734 | 0.809945 | 0.16382 | 0 | 0.163636 | 0 | 0 | 0.173776 | 0.046867 | 0 | 0 | 0 | 0.012658 | 0 | 1 | 0.090909 | false | 0 | 0.109091 | 0 | 0.236364 | 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 |
81c87dcd71bd52d95e791f89d6a7176ecd924770 | 3,127 | py | Python | archive/mitsuscreenshots/mitsuscreenshots/mainwindow.py | NikhilPal2468/python-projects | 1dc0444d22e35ddd1a774458b9231f2d4b53ef91 | [
"Unlicense"
] | 3 | 2020-04-06T07:36:00.000Z | 2020-04-07T12:07:38.000Z | archive/mitsuscreenshots/mitsuscreenshots/mainwindow.py | NikhilPal2468/python-projects | 1dc0444d22e35ddd1a774458b9231f2d4b53ef91 | [
"Unlicense"
] | null | null | null | archive/mitsuscreenshots/mitsuscreenshots/mainwindow.py | NikhilPal2468/python-projects | 1dc0444d22e35ddd1a774458b9231f2d4b53ef91 | [
"Unlicense"
] | 1 | 2020-09-30T19:17:03.000Z | 2020-09-30T19:17:03.000Z | import PyQt5.QtCore as C
import PyQt5.QtGui as G
import PyQt5.QtWidgets as W
import mitsuscreenshots.organize as organize
import mitsuscreenshots.uimainwindow as uimw
__author__ = "IceArrow256"
__version__ = '4'
class ConsoleHandler(C.QObject):
signal_print = C.pyqtSignal(str)
def __init__(self, console: W... | 31.27 | 114 | 0.670931 | 337 | 3,127 | 5.976261 | 0.272997 | 0.029791 | 0.04717 | 0.03426 | 0.319762 | 0.238332 | 0.181728 | 0.119166 | 0.119166 | 0.065541 | 0 | 0.002926 | 0.23505 | 3,127 | 99 | 115 | 31.585859 | 0.839047 | 0.007355 | 0 | 0.117647 | 0 | 0 | 0.021917 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0 | 0.073529 | 0 | 0.352941 | 0.132353 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
81cb56c760ec7863220ebd15c3dd7297e62654c5 | 27,041 | py | Python | telemetry/third_party/web-page-replay/platformsettings.py | ravitejavalluri/catapult | 246a39a82c2213d913a96fff020a263838dc76e6 | [
"BSD-3-Clause"
] | 27 | 2016-04-27T01:02:03.000Z | 2021-12-13T08:53:19.000Z | telemetry/third_party/web-page-replay/platformsettings.py | ravitejavalluri/catapult | 246a39a82c2213d913a96fff020a263838dc76e6 | [
"BSD-3-Clause"
] | 9 | 2017-09-10T19:49:04.000Z | 2018-04-14T04:39:55.000Z | telemetry/third_party/web-page-replay/platformsettings.py | ravitejavalluri/catapult | 246a39a82c2213d913a96fff020a263838dc76e6 | [
"BSD-3-Clause"
] | 17 | 2016-04-27T02:06:39.000Z | 2019-12-18T08:07:00.000Z | #!/usr/bin/env python
# Copyright 2010 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required... | 34.013836 | 80 | 0.687253 | 3,584 | 27,041 | 4.979911 | 0.175223 | 0.008404 | 0.015296 | 0.010982 | 0.306645 | 0.239747 | 0.155143 | 0.125168 | 0.121134 | 0.10948 | 0 | 0.010134 | 0.21179 | 27,041 | 794 | 81 | 34.056675 | 0.82725 | 0.053696 | 0 | 0.272727 | 0 | 0.002066 | 0.115743 | 0.01427 | 0 | 0 | 0 | 0.003778 | 0.004132 | 0 | null | null | 0.012397 | 0.041322 | null | null | 0.006198 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
81d87d82bd78950629621c0f8f378df9df59573a | 594 | py | Python | deepclustering/dataloader/__init__.py | jizongFox/deep-clustering-toolbox | 0721cbbb278af027409ed4c115ccc743b6daed1b | [
"MIT"
] | 34 | 2019-08-05T03:48:36.000Z | 2022-03-29T03:04:51.000Z | deepclustering/dataloader/__init__.py | jizongFox/deep-clustering-toolbox | 0721cbbb278af027409ed4c115ccc743b6daed1b | [
"MIT"
] | 10 | 2019-05-03T21:02:50.000Z | 2021-12-23T08:01:30.000Z | deepclustering/dataloader/__init__.py | ETS-Research-Repositories/deep-clustering-toolbox | 0721cbbb278af027409ed4c115ccc743b6daed1b | [
"MIT"
] | 5 | 2019-09-29T07:56:03.000Z | 2021-04-22T12:08:50.000Z | # this is to copy the original dataloader code. in order to investigate
from .sampler import (
Sampler,
SequentialSampler,
RandomSampler,
SubsetRandomSampler,
WeightedRandomSampler,
BatchSampler,
) # noqa: F401
from .distributed import DistributedSampler # noqa: F401
from .dataset import (
... | 27 | 79 | 0.740741 | 58 | 594 | 7.5 | 0.655172 | 0.073563 | 0.110345 | 0.101149 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025263 | 0.200337 | 594 | 21 | 80 | 28.285714 | 0.890526 | 0.190236 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
81e3dc8d05155a0be66bb340ca8f1d2aae67066e | 11,867 | py | Python | tools/test/topos/bmv2-demo.py | JustinChen1975/ONOS | f63eb9b4bbe49a170d17d00d53172946e34d0805 | [
"Apache-2.0"
] | null | null | null | tools/test/topos/bmv2-demo.py | JustinChen1975/ONOS | f63eb9b4bbe49a170d17d00d53172946e34d0805 | [
"Apache-2.0"
] | null | null | null | tools/test/topos/bmv2-demo.py | JustinChen1975/ONOS | f63eb9b4bbe49a170d17d00d53172946e34d0805 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import os
import sys
import json
import argparse
from collections import OrderedDict
TEMP_NETCFG_FILE = '/tmp/bmv2-demo-cfg.json'
BASE_LONGITUDE = -115
SWITCH_BASE_LATITUDE = 25
HOST_BASE_LATITUDE = 28
BASE_SHIFT = 8
VLAN_NONE = -1
DEFAULT_SW_BW = 50
DEFAULT_HOST_BW = 25
# Jumbo frame
JUMBO_MTU=9000... | 34.002865 | 80 | 0.532822 | 1,282 | 11,867 | 4.847894 | 0.24805 | 0.010137 | 0.021883 | 0.030893 | 0.191955 | 0.143041 | 0.129204 | 0.078037 | 0.070957 | 0.070957 | 0 | 0.025326 | 0.347855 | 11,867 | 348 | 81 | 34.100575 | 0.777749 | 0.06042 | 0 | 0.185606 | 0 | 0 | 0.125868 | 0.006767 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.060606 | null | null | 0.049242 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
81e70fcb6a45b92e1db0677c5873eecafc814300 | 418 | py | Python | Laelia/apps/base/migrations/0032_auto_20201008_2135.py | arantesdv/LaeliaAppProject | 93fca5393cb8406694903d9adde02067480c792e | [
"MIT"
] | null | null | null | Laelia/apps/base/migrations/0032_auto_20201008_2135.py | arantesdv/LaeliaAppProject | 93fca5393cb8406694903d9adde02067480c792e | [
"MIT"
] | null | null | null | Laelia/apps/base/migrations/0032_auto_20201008_2135.py | arantesdv/LaeliaAppProject | 93fca5393cb8406694903d9adde02067480c792e | [
"MIT"
] | null | null | null | # Generated by Django 3.0.6 on 2020-10-09 00:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('base', '0031_auto_20201008_2135'),
]
operations = [
migrations.AddConstraint(
model_name='relation',
constraint=mode... | 23.222222 | 107 | 0.638756 | 43 | 418 | 6.093023 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097484 | 0.239234 | 418 | 17 | 108 | 24.588235 | 0.726415 | 0.107656 | 0 | 0 | 1 | 0 | 0.185984 | 0.061995 | 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 |
c48b8b23d20f7b31a3a561c78fa7d16c57a72968 | 882 | py | Python | gs_quant/timeseries/log.py | skyquant2/gs-quant | b7e648fa7912b13ad1fd503b643389e34587aa1e | [
"Apache-2.0"
] | 4 | 2021-05-11T14:35:53.000Z | 2022-03-14T03:52:34.000Z | gs_quant/timeseries/log.py | skyquant2/gs-quant | b7e648fa7912b13ad1fd503b643389e34587aa1e | [
"Apache-2.0"
] | null | null | null | gs_quant/timeseries/log.py | skyquant2/gs-quant | b7e648fa7912b13ad1fd503b643389e34587aa1e | [
"Apache-2.0"
] | null | null | null | """
Copyright 2020 Goldman Sachs.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software di... | 33.923077 | 80 | 0.756236 | 142 | 882 | 4.584507 | 0.535211 | 0.110599 | 0.067588 | 0.09831 | 0.233487 | 0.233487 | 0.233487 | 0.233487 | 0.119816 | 0.119816 | 0 | 0.010624 | 0.146259 | 882 | 25 | 81 | 35.28 | 0.853918 | 0.62585 | 0 | 0 | 0 | 0 | 0.28882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c49383466bc661410f428380f8724078cdff842f | 2,151 | py | Python | Lib/objc/_ToneLibrary.py | kanishpatel/Pyto | feec7a1a54f635a6375fa7ede074ff35afbfbb95 | [
"MIT"
] | null | null | null | Lib/objc/_ToneLibrary.py | kanishpatel/Pyto | feec7a1a54f635a6375fa7ede074ff35afbfbb95 | [
"MIT"
] | null | null | null | Lib/objc/_ToneLibrary.py | kanishpatel/Pyto | feec7a1a54f635a6375fa7ede074ff35afbfbb95 | [
"MIT"
] | null | null | null | '''
Classes from the 'ToneLibrary' framework.
'''
try:
from rubicon.objc import ObjCClass
except ValueError:
def ObjCClass(name):
return None
def _Class(name):
try:
return ObjCClass(name)
except NameError:
return None
TLAlertQueuePlayerController = _Class('TLAlertQueuePl... | 42.176471 | 97 | 0.835425 | 125 | 2,151 | 14.112 | 0.4 | 0.014739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079963 | 2,151 | 50 | 98 | 43.02 | 0.891359 | 0.019061 | 0 | 0.095238 | 0 | 0 | 0.341579 | 0.234539 | 0 | 0 | 0 | 0 | 0.02381 | 1 | 0.047619 | false | 0 | 0.047619 | 0.02381 | 0.166667 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c4985175674720f40c959374f7a91f8f06b265a5 | 2,511 | py | Python | contrast/motors/PseudoMotor.py | Lexelius/contrast | 175a289e33775bc5b7a6a2a65c6b13761c618272 | [
"MIT"
] | 3 | 2021-05-20T07:49:53.000Z | 2021-07-12T11:27:39.000Z | contrast/motors/PseudoMotor.py | alexbjorling/contrast | ef7d6d8c51fb922e89c1c46db734e3c09f88a9fc | [
"MIT"
] | 1 | 2021-04-20T10:09:17.000Z | 2021-04-20T10:09:17.000Z | contrast/motors/PseudoMotor.py | alexbjorling/contrast | ef7d6d8c51fb922e89c1c46db734e3c09f88a9fc | [
"MIT"
] | 2 | 2021-08-03T15:13:06.000Z | 2021-09-02T09:47:37.000Z | """
Provides base and example classes for pseudo motors, which are
combinations of other motors.
"""
from . import Motor
class PseudoMotor(Motor):
"""
Pseudo motor base class.
"""
def __init__(self, motors, dry_run=False, *args, **kwargs):
"""
Abstract base class for pseudo motors. The... | 28.862069 | 88 | 0.620868 | 289 | 2,511 | 5.280277 | 0.314879 | 0.039318 | 0.011796 | 0.019659 | 0.152687 | 0.108126 | 0 | 0 | 0 | 0 | 0 | 0.003365 | 0.289924 | 2,511 | 86 | 89 | 29.197674 | 0.852496 | 0.323775 | 0 | 0.166667 | 0 | 0 | 0.012943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0.027778 | 0.083333 | 0.5 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c49b2ace3fb0643dec47142beb900d2f7e6d6781 | 502 | py | Python | ezdfstree.py | eigencode/Caerus | cb00635767b38665f20220699cbe2a2d10aae9ed | [
"Apache-2.0"
] | null | null | null | ezdfstree.py | eigencode/Caerus | cb00635767b38665f20220699cbe2a2d10aae9ed | [
"Apache-2.0"
] | null | null | null | ezdfstree.py | eigencode/Caerus | cb00635767b38665f20220699cbe2a2d10aae9ed | [
"Apache-2.0"
] | null | null | null | #!/system/xbin/env python3
import census
import os
import re
import sys
# {{{
# 20151201.192009.2997008
# 20151208.185909.3024239
# }}}
def main(sysArgv: list, kwargs=None):
census.main(sysArgv, kwargs)
if __name__ == '__main__':
if not (re.search('\A utf [-] 8 \Z', sys.stdout.encoding, re.IGN... | 25.1 | 92 | 0.643426 | 66 | 502 | 4.69697 | 0.681818 | 0.070968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114144 | 0.197211 | 502 | 19 | 93 | 26.421053 | 0.655087 | 0.161355 | 0 | 0 | 0 | 0 | 0.198992 | 0.057935 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.454545 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c4a6afb8e305a3edcd7acbac102645403ad119e1 | 929 | py | Python | sterna/__init__.py | Ritkuli/sterna | 035ddf0a8856d0570ccc0098efd40cd301409544 | [
"MIT"
] | 1 | 2021-09-03T05:50:46.000Z | 2021-09-03T05:50:46.000Z | sterna/__init__.py | Ritkuli/rnapoly | 035ddf0a8856d0570ccc0098efd40cd301409544 | [
"MIT"
] | null | null | null | sterna/__init__.py | Ritkuli/rnapoly | 035ddf0a8856d0570ccc0098efd40cd301409544 | [
"MIT"
] | 1 | 2019-05-13T18:51:52.000Z | 2019-05-13T18:51:52.000Z | bl_info = {
'name': 'Sterna',
'author': 'Antti Elonen',
'category': 'All',
'version': (1, 0, 20200203),
'blender': (2, 82, 0)
}
try:
import importlib
importlib.reload(blenderEdgeGroups)
importlib.reload(sternaMain)
importlib.reload(sternaEdit)
importlib.reload(sternaExport)
... | 23.820513 | 111 | 0.699677 | 83 | 929 | 7.722892 | 0.445783 | 0.163807 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018397 | 0.18084 | 929 | 38 | 112 | 24.447368 | 0.823916 | 0 | 0 | 0 | 0 | 0 | 0.065662 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.363636 | 0 | 0.424242 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c4add1721e9e5c2f0453866201dd35320ad48157 | 984 | py | Python | locations/spiders/noted/louisa_coffee.py | bealbrown/allhours | f750ee7644246a97bd16879f14115d7845f76b89 | [
"MIT"
] | null | null | null | locations/spiders/noted/louisa_coffee.py | bealbrown/allhours | f750ee7644246a97bd16879f14115d7845f76b89 | [
"MIT"
] | null | null | null | locations/spiders/noted/louisa_coffee.py | bealbrown/allhours | f750ee7644246a97bd16879f14115d7845f76b89 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import scrapy
from locations.hourstudy import inputoutput
class LouisaCoffeeSpider(scrapy.Spider):
name = "louisa_coffee"
allowed_domains = ["www.louisacoffee.com.tw"]
start_urls = (
'http://www.louisacoffee.com.tw/visit_result',
)
def parse(self, response):
... | 37.846154 | 124 | 0.619919 | 113 | 984 | 5.238938 | 0.539823 | 0.121622 | 0.143581 | 0.168919 | 0.282095 | 0.239865 | 0.138514 | 0.138514 | 0 | 0 | 0 | 0.001323 | 0.231707 | 984 | 25 | 125 | 39.36 | 0.781746 | 0.066057 | 0 | 0 | 0 | 0 | 0.227074 | 0.025109 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.105263 | 0 | 0.368421 | 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 |
c4bb322d0a801f73d1694e326bd3ad6d55d1b50a | 3,089 | py | Python | jdcloud_sdk/services/vm/apis/ModifyInstanceAttributeRequest.py | jdcloud-apigateway/jdcloud-sdk-python | 0886769bcf1fb92128a065ff0f4695be099571cc | [
"Apache-2.0"
] | 14 | 2018-04-19T09:53:56.000Z | 2022-01-27T06:05:48.000Z | jdcloud_sdk/services/vm/apis/ModifyInstanceAttributeRequest.py | jdcloud-apigateway/jdcloud-sdk-python | 0886769bcf1fb92128a065ff0f4695be099571cc | [
"Apache-2.0"
] | 15 | 2018-09-11T05:39:54.000Z | 2021-07-02T12:38:02.000Z | jdcloud_sdk/services/vm/apis/ModifyInstanceAttributeRequest.py | jdcloud-apigateway/jdcloud-sdk-python | 0886769bcf1fb92128a065ff0f4695be099571cc | [
"Apache-2.0"
] | 33 | 2018-04-20T05:29:16.000Z | 2022-02-17T09:10:05.000Z | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | 30.584158 | 106 | 0.670444 | 346 | 3,089 | 5.945087 | 0.552023 | 0.029169 | 0.023335 | 0.02771 | 0.052504 | 0.052504 | 0.052504 | 0 | 0 | 0 | 0 | 0.013704 | 0.196827 | 3,089 | 100 | 107 | 30.89 | 0.815397 | 0.594367 | 0 | 0 | 0 | 0 | 0.06383 | 0.058511 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28 | false | 0 | 0.04 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c4bb6f037b4980aa6b6dfbb54a0419d3df11b6dd | 384 | py | Python | Question16.py | Schrodinger73/PracticalJournal_Class11 | cf098a87bcba807858ea7e904e8ac57742f19e70 | [
"MIT"
] | 13 | 2020-10-22T05:12:27.000Z | 2022-01-10T10:59:10.000Z | Question16.py | Schrodinger73/PracticalJournal_Class11 | cf098a87bcba807858ea7e904e8ac57742f19e70 | [
"MIT"
] | 2 | 2020-10-25T19:34:18.000Z | 2020-11-03T19:02:22.000Z | Question16.py | Schrodinger73/PracticalJournal_Class11 | cf098a87bcba807858ea7e904e8ac57742f19e70 | [
"MIT"
] | 7 | 2020-10-25T18:53:09.000Z | 2020-12-25T03:15:03.000Z | # Question
# 16. Write a program to check whether a number is an Armstrong number
# Code
a = input("Number:\n")
sum = 0
pwr = (3 if input("Enter y for power 3 or n for power digit length") == "y" else len(a))
for digit in a: sum += int(digit) ** pwr
print("Armstrong Number") if sum == int(a) else print("Not an armst... | 24 | 88 | 0.661458 | 66 | 384 | 3.848485 | 0.530303 | 0.23622 | 0.133858 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026403 | 0.210938 | 384 | 16 | 89 | 24 | 0.811881 | 0.322917 | 0 | 0 | 0 | 0 | 0.379447 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 |
c4bcf4bd0af8fe0dc9d55802b59f13f59f8f058b | 298 | py | Python | demo-django/ENV/lib/python2.7/site-packages/onelogin/api/models/device.py | poupyi/python-saml | f5756e297e0066479ced20176cfcd825d9a82307 | [
"MIT"
] | 31 | 2017-10-25T22:35:36.000Z | 2022-03-18T05:03:55.000Z | demo-django/ENV/lib/python2.7/site-packages/onelogin/api/models/device.py | poupyi/python-saml | f5756e297e0066479ced20176cfcd825d9a82307 | [
"MIT"
] | 37 | 2017-10-05T16:49:10.000Z | 2022-01-27T00:03:58.000Z | demo-django/ENV/lib/python2.7/site-packages/onelogin/api/models/device.py | poupyi/python-saml | f5756e297e0066479ced20176cfcd825d9a82307 | [
"MIT"
] | 28 | 2017-10-25T21:17:11.000Z | 2022-03-12T01:50:32.000Z | #!/usr/bin/python
class Device(object):
def __init__(self, data):
self.id = data.get('device_id', None)
self.type = data.get('device_type', '')
self.duo_api_hostname = data.get('duo_api_hostname', None)
self.duo_sig_request = data.get('duo_sig_request', None)
| 29.8 | 66 | 0.644295 | 43 | 298 | 4.139535 | 0.44186 | 0.157303 | 0.146067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201342 | 298 | 9 | 67 | 33.111111 | 0.747899 | 0.053691 | 0 | 0 | 0 | 0 | 0.181495 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c4c98173558c770bab4f61048071758c52d655e7 | 11,525 | py | Python | onir/datasets/mixmsmbcord.py | tgeral68/OpenNIR | 225b26185bd67fdc00f24de3ef70d35768e22243 | [
"MIT"
] | 3 | 2021-01-07T15:44:38.000Z | 2021-08-23T03:44:47.000Z | onir/datasets/mixmsmbcord.py | tgeral68/OpenNIR | 225b26185bd67fdc00f24de3ef70d35768e22243 | [
"MIT"
] | null | null | null | onir/datasets/mixmsmbcord.py | tgeral68/OpenNIR | 225b26185bd67fdc00f24de3ef70d35768e22243 | [
"MIT"
] | 1 | 2021-11-16T09:10:47.000Z | 2021-11-16T09:10:47.000Z | import os
import io
import itertools
import gzip
import tarfile
import zipfile
import contextlib
import functools
from tqdm import tqdm
from pytools import memoize_method
import onir
from onir import util, datasets, indices
from onir.interfaces import trec, plaintext
import pandas as pd
import numpy as np
from onir.dat... | 50.327511 | 2,018 | 0.624121 | 1,380 | 11,525 | 5.065942 | 0.318116 | 0.025175 | 0.020598 | 0.027464 | 0.396653 | 0.361036 | 0.346302 | 0.340724 | 0.304391 | 0.25776 | 0 | 0.160084 | 0.215705 | 11,525 | 229 | 2,019 | 50.327511 | 0.613342 | 0.010759 | 0 | 0.273224 | 0 | 0 | 0.23896 | 0.029352 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081967 | false | 0 | 0.092896 | 0.016393 | 0.245902 | 0 | 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 |
c4cbbb18680ca29bd8b4659fabbfd5f8932925ee | 2,057 | py | Python | applications/hw4/models/tables.py | ayusharora99/E-CollegeBooks | bc9897215a9ed4d17e372a0371318967e3d480eb | [
"BSD-3-Clause"
] | 2 | 2018-12-08T23:59:12.000Z | 2019-02-13T23:04:36.000Z | applications/hw4/models/tables.py | ayusharora99/E-CollegeBooks | bc9897215a9ed4d17e372a0371318967e3d480eb | [
"BSD-3-Clause"
] | null | null | null | applications/hw4/models/tables.py | ayusharora99/E-CollegeBooks | bc9897215a9ed4d17e372a0371318967e3d480eb | [
"BSD-3-Clause"
] | 3 | 2018-12-08T23:59:17.000Z | 2019-02-13T23:04:38.000Z | # Define your tables below (or better in another model file) for example
#
# >>> db.define_table('mytable', Field('myfield', 'string'))
#
# Fields can be 'string','text','password','integer','double','boolean'
# 'date','time','datetime','blob','upload', 'reference TABLENAME'
# There is an implicit 'id integer aut... | 33.177419 | 100 | 0.566359 | 227 | 2,057 | 4.955947 | 0.444934 | 0.128 | 0.057778 | 0.035556 | 0.096 | 0.053333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.297521 | 2,057 | 61 | 101 | 33.721311 | 0.778547 | 0.296062 | 0 | 0.055556 | 0 | 0 | 0.231844 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | true | 0 | 0.027778 | 0.055556 | 0.138889 | 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 |
c4d1212d2023eb14b6df930b32d8385750263665 | 1,380 | py | Python | peering/management/commands/import_all_ix_sessions.py | awlx/peering-manager | e3d272851e11edbf374a8cd640b445c4b1941e9f | [
"Apache-2.0"
] | null | null | null | peering/management/commands/import_all_ix_sessions.py | awlx/peering-manager | e3d272851e11edbf374a8cd640b445c4b1941e9f | [
"Apache-2.0"
] | 1 | 2021-08-16T19:34:26.000Z | 2021-08-16T19:34:26.000Z | peering/management/commands/import_all_ix_sessions.py | awlx/peering-manager | e3d272851e11edbf374a8cd640b445c4b1941e9f | [
"Apache-2.0"
] | null | null | null | import logging
from django.core.management.base import BaseCommand
from net.models import Connection
from peering.models import InternetExchange
class Command(BaseCommand):
help = "Import existing sessions from Internet Exchanges."
logger = logging.getLogger("peering.manager.peering")
def handle(self, ... | 37.297297 | 105 | 0.619565 | 143 | 1,380 | 5.895105 | 0.433566 | 0.059312 | 0.083037 | 0.071174 | 0.087782 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001043 | 0.305072 | 1,380 | 36 | 106 | 38.333333 | 0.877998 | 0 | 0 | 0.142857 | 0 | 0 | 0.242754 | 0.016667 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.321429 | 0 | 0.464286 | 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 |
c4d64bf1433b3b704525bd8f5d9f396e1ab64ea2 | 2,719 | py | Python | riak/tests/__init__.py | albeus/riak-python-client | 51bf875f1f5e394d45540a3850a8453db0951c40 | [
"Apache-2.0"
] | null | null | null | riak/tests/__init__.py | albeus/riak-python-client | 51bf875f1f5e394d45540a3850a8453db0951c40 | [
"Apache-2.0"
] | null | null | null | riak/tests/__init__.py | albeus/riak-python-client | 51bf875f1f5e394d45540a3850a8453db0951c40 | [
"Apache-2.0"
] | null | null | null | import os
from riak.test_server import TestServer
from riak.security import SecurityCreds
USE_TEST_SERVER = int(os.environ.get('USE_TEST_SERVER', '0'))
if USE_TEST_SERVER:
HTTP_PORT = 9000
PB_PORT = 9002
test_server = TestServer()
test_server.cleanup()
test_server.prepare()
test_server.start()
... | 39.405797 | 77 | 0.679294 | 372 | 2,719 | 4.663978 | 0.263441 | 0.129683 | 0.172911 | 0.129107 | 0.357925 | 0.282421 | 0.151009 | 0 | 0 | 0 | 0 | 0.017407 | 0.197131 | 2,719 | 68 | 78 | 39.985294 | 0.777371 | 0.075395 | 0 | 0 | 0 | 0 | 0.267836 | 0.151455 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.096154 | 0 | 0.096154 | 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 |
c4dbb4e887dc87813aab87478527311fa2bc413d | 224 | py | Python | HACKERRANK_Regrex&Parsing/group.py | StefaniaSferragatta/ADM2020-HW1 | 8f85ac1c8dd4bff52c5c17987c9e96b209a93830 | [
"MIT"
] | null | null | null | HACKERRANK_Regrex&Parsing/group.py | StefaniaSferragatta/ADM2020-HW1 | 8f85ac1c8dd4bff52c5c17987c9e96b209a93830 | [
"MIT"
] | null | null | null | HACKERRANK_Regrex&Parsing/group.py | StefaniaSferragatta/ADM2020-HW1 | 8f85ac1c8dd4bff52c5c17987c9e96b209a93830 | [
"MIT"
] | null | null | null | import re
S = str(input())
if len(S)> 0 and len(S)< 100:
m = re.search(r'([A-Za-z0-9])\1+', S)
if m != None:
output = m.group(1)
print (output)
else:
output = "-1"
print (output)
| 18.666667 | 41 | 0.46875 | 37 | 224 | 2.837838 | 0.621622 | 0.07619 | 0.228571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060403 | 0.334821 | 224 | 11 | 42 | 20.363636 | 0.644295 | 0 | 0 | 0.2 | 0 | 0 | 0.080357 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.2 | 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 |
c4de35629941f1a042188ff122339717faec497a | 404 | py | Python | analytics/migrations/0002_movieview_media_type.py | SmithJesko/volny-films | 7c50713eb1d2c2d5984700a5de20a12e4045e1b9 | [
"MIT"
] | 1 | 2021-02-23T00:12:43.000Z | 2021-02-23T00:12:43.000Z | analytics/migrations/0002_movieview_media_type.py | SmithJesko/volny-films | 7c50713eb1d2c2d5984700a5de20a12e4045e1b9 | [
"MIT"
] | null | null | null | analytics/migrations/0002_movieview_media_type.py | SmithJesko/volny-films | 7c50713eb1d2c2d5984700a5de20a12e4045e1b9 | [
"MIT"
] | 1 | 2021-02-23T06:04:13.000Z | 2021-02-23T06:04:13.000Z | # Generated by Django 2.2 on 2021-02-15 04:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('analytics', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='movieview',
name='media_type',
... | 21.263158 | 74 | 0.60396 | 44 | 404 | 5.454545 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072165 | 0.279703 | 404 | 18 | 75 | 22.444444 | 0.752577 | 0.106436 | 0 | 0 | 1 | 0 | 0.111421 | 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 |
c4e73e1bb9490a972b0dda33253155bc19af54b1 | 8,622 | py | Python | docs/sphinxext/doxybridge/renderer/rst/doxygen/filter.py | Oghma/speect | f618e8d651cb9ec4c90cc244af3e7aa993599f6d | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 5 | 2016-01-29T14:39:46.000Z | 2019-04-24T14:45:55.000Z | docs/sphinxext/doxybridge/renderer/rst/doxygen/filter.py | Oghma/speect | f618e8d651cb9ec4c90cc244af3e7aa993599f6d | [
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | docs/sphinxext/doxybridge/renderer/rst/doxygen/filter.py | Oghma/speect | f618e8d651cb9ec4c90cc244af3e7aa993599f6d | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 7 | 2015-09-17T14:45:05.000Z | 2020-03-30T13:19:29.000Z | """
doxybridge.renderer.rst.doxygen.filter
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: Copyright (c) 2009, Michael Jones
:license: BSD, see LICENSE for details.
"""
class Selecter(object):
pass
class Parent(Selecter):
def __call__(self, parent_data_object, child_data_objec... | 28.74 | 106 | 0.618882 | 885 | 8,622 | 5.712994 | 0.167232 | 0.120649 | 0.091772 | 0.116297 | 0.486353 | 0.428995 | 0.402294 | 0.374011 | 0.347706 | 0.293513 | 0 | 0.000654 | 0.290304 | 8,622 | 299 | 107 | 28.83612 | 0.825625 | 0.046277 | 0 | 0.359116 | 0 | 0 | 0.018352 | 0 | 0 | 0 | 0 | 0.003344 | 0 | 0 | null | null | 0.005525 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c4efc167f486b789763b2ad48101089cefb0f3c0 | 1,796 | py | Python | tests/pytorch/test_readout.py | astonzhang/dgl | 2664ed2dff9d0e9e45d2349c531b460b31cec215 | [
"Apache-2.0"
] | 1 | 2020-03-06T01:30:23.000Z | 2020-03-06T01:30:23.000Z | tests/pytorch/test_readout.py | astonzhang/dgl | 2664ed2dff9d0e9e45d2349c531b460b31cec215 | [
"Apache-2.0"
] | null | null | null | tests/pytorch/test_readout.py | astonzhang/dgl | 2664ed2dff9d0e9e45d2349c531b460b31cec215 | [
"Apache-2.0"
] | 1 | 2019-07-05T17:10:08.000Z | 2019-07-05T17:10:08.000Z | import torch as th
import dgl
import utils as U
def test_simple_readout():
g1 = dgl.DGLGraph()
g1.add_nodes(3)
g2 = dgl.DGLGraph()
g2.add_nodes(4) # no edges
g1.add_edges([0, 1, 2], [2, 0, 1])
n1 = th.randn(3, 5)
n2 = th.randn(4, 5)
e1 = th.randn(3, 5)
s1 = n1.sum(0) # node su... | 31.508772 | 81 | 0.541759 | 315 | 1,796 | 3.003175 | 0.206349 | 0.088795 | 0.190275 | 0.114165 | 0.427061 | 0.274841 | 0.22833 | 0.17759 | 0 | 0 | 0 | 0.078752 | 0.250557 | 1,796 | 56 | 82 | 32.071429 | 0.624071 | 0.049555 | 0 | 0 | 0 | 0 | 0.017069 | 0 | 0 | 0 | 0 | 0 | 0.24 | 1 | 0.02 | false | 0 | 0.06 | 0 | 0.08 | 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 |
c4f25d643a6deaf641225a4d53c75f9c1d1bc574 | 1,321 | py | Python | src/waldur_mastermind/support/urls.py | opennode/nodeconductor-assembly-waldur | cad9966389dc9b52b13d2301940c99cf4b243900 | [
"MIT"
] | 2 | 2017-01-20T15:26:25.000Z | 2017-08-03T04:38:08.000Z | src/waldur_mastermind/support/urls.py | opennode/nodeconductor-assembly-waldur | cad9966389dc9b52b13d2301940c99cf4b243900 | [
"MIT"
] | null | null | null | src/waldur_mastermind/support/urls.py | opennode/nodeconductor-assembly-waldur | cad9966389dc9b52b13d2301940c99cf4b243900 | [
"MIT"
] | null | null | null | from django.urls import re_path
from waldur_mastermind.support import views
def register_in(router):
router.register(r'support-issues', views.IssueViewSet, basename='support-issue')
router.register(
r'support-priorities', views.PriorityViewSet, basename='support-priority'
)
router.register(
... | 29.355556 | 88 | 0.669947 | 134 | 1,321 | 6.537313 | 0.38806 | 0.111872 | 0.119863 | 0.175799 | 0.133562 | 0.057078 | 0 | 0 | 0 | 0 | 0 | 0 | 0.200606 | 1,321 | 44 | 89 | 30.022727 | 0.829545 | 0 | 0 | 0.282051 | 0 | 0 | 0.292203 | 0.112793 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.051282 | 0 | 0.076923 | 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 |
c4f357e8d52e843384bc39241f7cbe0091fec711 | 24,569 | py | Python | vendor/packages/translate-toolkit/translate/search/indexing/CommonIndexer.py | jgmize/kitsune | 8f23727a9c7fcdd05afc86886f0134fb08d9a2f0 | [
"BSD-3-Clause"
] | 2 | 2019-08-19T17:08:47.000Z | 2019-10-05T11:37:02.000Z | vendor/packages/translate-toolkit/translate/search/indexing/CommonIndexer.py | jgmize/kitsune | 8f23727a9c7fcdd05afc86886f0134fb08d9a2f0 | [
"BSD-3-Clause"
] | null | null | null | vendor/packages/translate-toolkit/translate/search/indexing/CommonIndexer.py | jgmize/kitsune | 8f23727a9c7fcdd05afc86886f0134fb08d9a2f0 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright 2008 Zuza Software Foundation
#
# This file is part of translate.
#
# translate is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at ... | 40.8802 | 85 | 0.61777 | 2,860 | 24,569 | 5.207343 | 0.161189 | 0.007386 | 0.041093 | 0.046801 | 0.271268 | 0.215538 | 0.188276 | 0.17619 | 0.161821 | 0.144497 | 0 | 0.003544 | 0.310961 | 24,569 | 600 | 86 | 40.948333 | 0.876189 | 0.079897 | 0 | 0.178404 | 0 | 0 | 0.144242 | 0.017487 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.00939 | 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 |
c4f46e9a1bb3ebcb0285bcbbcfc53ccea6533f6f | 537 | py | Python | pyVenv/src/InventoryManagement/InvManage/migrations/0014_auto_20200404_2343.py | thephilosophicaljijutsumaster/InventoryManagement | 7c57fcc435976c39b249106642ee848da2eea201 | [
"MIT"
] | null | null | null | pyVenv/src/InventoryManagement/InvManage/migrations/0014_auto_20200404_2343.py | thephilosophicaljijutsumaster/InventoryManagement | 7c57fcc435976c39b249106642ee848da2eea201 | [
"MIT"
] | 12 | 2020-07-05T14:30:46.000Z | 2020-08-06T21:06:00.000Z | pyVenv/src/InventoryManagement/InvManage/migrations/0014_auto_20200404_2343.py | thephilosophicaljijutsumaster/InventoryManagement | 7c57fcc435976c39b249106642ee848da2eea201 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.12 on 2020-04-04 18:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('InvManage', '0013_auto_20200404_2309'),
]
operations = [
migrations.RemoveField(
model_name='productpurchaseentry',
... | 23.347826 | 78 | 0.60149 | 49 | 537 | 6.489796 | 0.693878 | 0.056604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08377 | 0.288641 | 537 | 22 | 79 | 24.409091 | 0.748691 | 0.085661 | 0 | 0.125 | 1 | 0 | 0.214724 | 0.108384 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c4fc8d2d70c1038867f5386194a2e2900a5cf6e3 | 2,678 | py | Python | apps/accounts/views.py | pedro-hs/financial-account | 7e8e4d0f3ac888fa36a091d0e733a8e1926180d2 | [
"MIT"
] | null | null | null | apps/accounts/views.py | pedro-hs/financial-account | 7e8e4d0f3ac888fa36a091d0e733a8e1926180d2 | [
"MIT"
] | null | null | null | apps/accounts/views.py | pedro-hs/financial-account | 7e8e4d0f3ac888fa36a091d0e733a8e1926180d2 | [
"MIT"
] | null | null | null | from common.errors import BadRequest
from common.permissions import IsBackOffice, IsUser, IsUserCompany
from django.shortcuts import get_object_or_404
from rest_framework import generics, viewsets
from rest_framework.decorators import action
from rest_framework.response import Response
from .constants import ACCOUNT_S... | 31.505882 | 90 | 0.679985 | 251 | 2,678 | 7.115538 | 0.318725 | 0.013438 | 0.047032 | 0.015677 | 0.258679 | 0.258679 | 0.258679 | 0.211646 | 0.211646 | 0.211646 | 0 | 0.004403 | 0.236744 | 2,678 | 84 | 91 | 31.880952 | 0.869374 | 0 | 0 | 0.288136 | 0 | 0 | 0.053771 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084746 | false | 0 | 0.152542 | 0 | 0.559322 | 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 |
c4fe6686e84cc92b8fd6f0b8da3a824335539049 | 379 | py | Python | Django/blog01/myblog/templatetags/mytags.py | bosichong/17python.com | 378754e1288b444ab3657093aa18b7e3f03b5145 | [
"Apache-2.0"
] | 9 | 2017-09-02T05:54:06.000Z | 2019-04-11T02:34:41.000Z | Django/blog01/myblog/templatetags/mytags.py | bosichong/17python.com | 378754e1288b444ab3657093aa18b7e3f03b5145 | [
"Apache-2.0"
] | null | null | null | Django/blog01/myblog/templatetags/mytags.py | bosichong/17python.com | 378754e1288b444ab3657093aa18b7e3f03b5145 | [
"Apache-2.0"
] | 6 | 2017-10-25T02:47:45.000Z | 2019-12-21T06:35:01.000Z | # coding=utf-8
# 导入基本配置文件
from django import template
# 导入markdown模块
from markdown import markdown
from ..models import Article
register = template.Library()
# 自定义过滤器编写
@register.filter
def toMarkdown(str):
####markdown解析器
return markdown(str)
@register.filter
def cat_count(cat_id):
"""统计分类下边的日志数"""
... | 15.791667 | 58 | 0.736148 | 46 | 379 | 6 | 0.586957 | 0.101449 | 0.123188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003115 | 0.153034 | 379 | 23 | 59 | 16.478261 | 0.856698 | 0.174142 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.3 | 0.1 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c4fecf292b815e4f6d78cbe85caea1882e8feafe | 4,806 | py | Python | schema_salad/codegen.py | dfornika/schema_salad | fbe70a3e8564e80a025beaf7aeee748f0a2e59e9 | [
"Apache-2.0"
] | 1 | 2020-05-11T18:49:10.000Z | 2020-05-11T18:49:10.000Z | schema_salad/codegen.py | dfornika/schema_salad | fbe70a3e8564e80a025beaf7aeee748f0a2e59e9 | [
"Apache-2.0"
] | null | null | null | schema_salad/codegen.py | dfornika/schema_salad | fbe70a3e8564e80a025beaf7aeee748f0a2e59e9 | [
"Apache-2.0"
] | null | null | null | """Generate langauge specific loaders for a particular SALAD schema."""
import sys
from io import open
from typing import Any, Dict, List, MutableMapping, Optional
from . import schema
from .codegen_base import CodeGenBase
from .exceptions import SchemaSaladException
from .java_codegen import JavaCodeGen
from .python_... | 34.826087 | 87 | 0.503537 | 489 | 4,806 | 4.824131 | 0.263804 | 0.059347 | 0.027554 | 0.022043 | 0.234845 | 0.21365 | 0.152607 | 0.111488 | 0.111488 | 0.08139 | 0 | 0.001332 | 0.374948 | 4,806 | 137 | 88 | 35.080292 | 0.783955 | 0.058677 | 0 | 0.160714 | 1 | 0 | 0.095629 | 0 | 0 | 0 | 0 | 0 | 0.008929 | 1 | 0.008929 | false | 0 | 0.098214 | 0 | 0.107143 | 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 |
f204c40770c5305078f6043ceaaec4e1405ae052 | 3,863 | py | Python | BuildingDepot-v3.2.8/buildingdepot/CentralService/app/models/cs_models.py | Entromorgan/GIoTTo | 53ba7519c56d46af1e32a77aab5cf1c5cd8143fc | [
"MIT"
] | null | null | null | BuildingDepot-v3.2.8/buildingdepot/CentralService/app/models/cs_models.py | Entromorgan/GIoTTo | 53ba7519c56d46af1e32a77aab5cf1c5cd8143fc | [
"MIT"
] | null | null | null | BuildingDepot-v3.2.8/buildingdepot/CentralService/app/models/cs_models.py | Entromorgan/GIoTTo | 53ba7519c56d46af1e32a77aab5cf1c5cd8143fc | [
"MIT"
] | null | null | null | """
CentralService.models
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Contains all the class definitions that are required for the CentralService.
Each class here is a Table in MongoDB where each value that is inserted into
these tables can have any of the paramteres defined within the class
@copyright: (c) 2016 SynergyLabs
@licens... | 26.101351 | 76 | 0.704634 | 392 | 3,863 | 6.864796 | 0.334184 | 0.091787 | 0.111111 | 0.080268 | 0.31178 | 0.248235 | 0.18469 | 0.124489 | 0.124489 | 0 | 0 | 0.001285 | 0.19415 | 3,863 | 147 | 77 | 26.278912 | 0.863155 | 0.09371 | 0 | 0.319149 | 0 | 0 | 0.011451 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0.042553 | 0.053191 | 0.042553 | 0.925532 | 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 |
f207e7ca5383dad7d3dabe25c1d6b0680e7219dd | 3,603 | py | Python | mpmorph/fireworks/powerups.py | jic198/mpmorph | 43369d7d6beaf590fb9819821919f9ed43d0ca2e | [
"BSD-3-Clause-LBNL"
] | 36 | 2018-03-26T01:17:17.000Z | 2022-03-21T00:08:51.000Z | mpmorph/fireworks/powerups.py | yu-yang-sjtu/mpmorph | 22dbcaf21529d5eb224deddb945760872e704400 | [
"BSD-3-Clause-LBNL"
] | 5 | 2019-09-10T22:03:40.000Z | 2020-10-16T23:45:23.000Z | mpmorph/fireworks/powerups.py | yu-yang-sjtu/mpmorph | 22dbcaf21529d5eb224deddb945760872e704400 | [
"BSD-3-Clause-LBNL"
] | 22 | 2017-01-27T22:08:38.000Z | 2022-03-31T17:34:42.000Z | from mpmorph.firetasks.dbtasks import VaspMDToDb, TrajectoryDBTask
from mpmorph.firetasks.glue_tasks import PreviousStructureTask, SaveStructureTask, \
PassPVTask
from mpmorph.firetasks.mdtasks import RescaleVolumeTask, ConvergeTask, PVRescaleTask, \
DiffusionTask
__author__ = 'Eric Sivonxay and Jianli Cheng'
... | 29.292683 | 118 | 0.660561 | 460 | 3,603 | 4.969565 | 0.258696 | 0.039808 | 0.043307 | 0.045932 | 0.455381 | 0.389326 | 0.389326 | 0.364829 | 0.364829 | 0.328959 | 0 | 0.001075 | 0.225645 | 3,603 | 122 | 119 | 29.532787 | 0.81828 | 0.147655 | 0 | 0.544304 | 0 | 0 | 0.161065 | 0.084859 | 0 | 0 | 0 | 0.008197 | 0 | 1 | 0.126582 | false | 0.075949 | 0.037975 | 0 | 0.291139 | 0.025316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f20ae5047da991d5f1ce3bace3210b4a75562ea9 | 9,069 | py | Python | kafkatos3/MessageArchiveKafka.py | ConnectedHomes/kafkatos3 | 34c43fabd08524ea2ebd95d0e97266071c077e1f | [
"Apache-2.0"
] | 6 | 2016-10-18T12:55:23.000Z | 2019-08-30T08:25:36.000Z | kafkatos3/MessageArchiveKafka.py | ConnectedHomes/kafkatos3 | 34c43fabd08524ea2ebd95d0e97266071c077e1f | [
"Apache-2.0"
] | null | null | null | kafkatos3/MessageArchiveKafka.py | ConnectedHomes/kafkatos3 | 34c43fabd08524ea2ebd95d0e97266071c077e1f | [
"Apache-2.0"
] | 4 | 2016-10-18T13:00:51.000Z | 2021-03-22T08:37:50.000Z | '''module with classes to read and write to mak files'''
import json
import struct
import os
from collections import namedtuple
import portalocker
KafkaMessage = namedtuple("KafkaMessage",
["key", "value", "offset"])
class MessageArchiveKafkaWriter(object):
'''Class to write to a MAK fi... | 29.930693 | 100 | 0.613849 | 1,160 | 9,069 | 4.673276 | 0.147414 | 0.075263 | 0.054234 | 0.018447 | 0.351965 | 0.288877 | 0.198856 | 0.141487 | 0.117322 | 0.093341 | 0 | 0.005787 | 0.275885 | 9,069 | 302 | 101 | 30.029801 | 0.819705 | 0.212482 | 0 | 0.248588 | 0 | 0 | 0.023405 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.259887 | false | 0 | 0.028249 | 0 | 0.429379 | 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 |
f20cbc3fe41491a0470f825250bd88b7d8b4a800 | 1,172 | py | Python | stack.py | theantichris/python-towers-of-hanoi | ffa848d7cf2e46cf6aeae0a36665d4828683cf30 | [
"MIT"
] | null | null | null | stack.py | theantichris/python-towers-of-hanoi | ffa848d7cf2e46cf6aeae0a36665d4828683cf30 | [
"MIT"
] | null | null | null | stack.py | theantichris/python-towers-of-hanoi | ffa848d7cf2e46cf6aeae0a36665d4828683cf30 | [
"MIT"
] | null | null | null | from node import Node
class Stack:
def __init__(self, name):
self.name = name
self.top_item = None
self.limit = 1000
self.size = 0
def push(self, value):
if self.has_space():
item = Node(value)
item.set_next_node(self.top_item)
self.top_item = item
self.size += 1
el... | 21.703704 | 63 | 0.635666 | 177 | 1,172 | 3.988701 | 0.248588 | 0.069405 | 0.109065 | 0.063739 | 0.21813 | 0.21813 | 0.161473 | 0.087819 | 0 | 0 | 0 | 0.011299 | 0.244881 | 1,172 | 53 | 64 | 22.113208 | 0.786441 | 0 | 0 | 0.095238 | 0 | 0 | 0.059727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.02381 | 0.095238 | 0.404762 | 0.190476 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f2171e08c3d339cf5763952d957238a86697a626 | 5,743 | py | Python | AnonymousClipboard/settings.py | NathanHarger/AnonymousClipboard | d6a99739caafaf961f512757b0673eb9ec51ae6a | [
"MIT"
] | null | null | null | AnonymousClipboard/settings.py | NathanHarger/AnonymousClipboard | d6a99739caafaf961f512757b0673eb9ec51ae6a | [
"MIT"
] | 1 | 2021-04-30T20:38:37.000Z | 2021-04-30T20:38:37.000Z | AnonymousClipboard/settings.py | NathanHarger/Clipboard | d6a99739caafaf961f512757b0673eb9ec51ae6a | [
"MIT"
] | null | null | null | """
Django settings for AnonymousClipboard project.
Generated by 'django-admin startproject' using Django 2.0.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
imp... | 26.962441 | 123 | 0.699983 | 627 | 5,743 | 6.232855 | 0.392345 | 0.053224 | 0.0348 | 0.04478 | 0.160952 | 0.129734 | 0.068321 | 0.068321 | 0.030706 | 0 | 0 | 0.019034 | 0.167508 | 5,743 | 212 | 124 | 27.089623 | 0.798369 | 0.194324 | 0 | 0.022222 | 1 | 0 | 0.527277 | 0.392958 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.044444 | 0.014815 | 0 | 0.014815 | 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 |
f217cb880c9949ba86996ad8d962ec725ee22f91 | 2,163 | py | Python | label_studio/core/permissions.py | mehdibenamorr/label-studio | 213252d360b028eb031ca127969fb35a897dc2b6 | [
"Apache-2.0"
] | 4 | 2022-01-22T14:59:22.000Z | 2022-02-23T18:52:36.000Z | label_studio/core/permissions.py | mehdibenamorr/label-studio | 213252d360b028eb031ca127969fb35a897dc2b6 | [
"Apache-2.0"
] | 100 | 2021-09-30T21:28:32.000Z | 2022-03-22T01:16:38.000Z | label_studio/core/permissions.py | mehdibenamorr/label-studio | 213252d360b028eb031ca127969fb35a897dc2b6 | [
"Apache-2.0"
] | 1 | 2021-11-18T17:01:46.000Z | 2021-11-18T17:01:46.000Z | """This file and its contents are licensed under the Apache License 2.0. Please see the included NOTICE for copyright information and LICENSE for a copy of the license.
"""
import logging
import rules
from pydantic import BaseModel
from typing import Optional
from django.shortcuts import redirect, reverse
from django... | 32.283582 | 168 | 0.760518 | 253 | 2,163 | 6.324111 | 0.411067 | 0.03125 | 0.046875 | 0.0425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001107 | 0.164586 | 2,163 | 66 | 169 | 32.772727 | 0.884339 | 0.076283 | 0 | 0 | 0 | 0 | 0.156705 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0 | 0.24 | 0 | 0.82 | 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 |
f21d9702e8740a24da6290141f78e7b6321e59ea | 330 | py | Python | basic-imaging/save-image.py | martinmcbride/python-imaging-book-examples | 37e4ccf9b7b2fc3ff75b1fdb9f772de452a843b2 | [
"MIT"
] | 1 | 2021-08-22T17:09:44.000Z | 2021-08-22T17:09:44.000Z | basic-imaging/save-image.py | sthagen/python-imaging-book-examples | 2a079c5271f9849bc90a33bed6f3288142035ea7 | [
"MIT"
] | null | null | null | basic-imaging/save-image.py | sthagen/python-imaging-book-examples | 2a079c5271f9849bc90a33bed6f3288142035ea7 | [
"MIT"
] | 1 | 2021-08-22T17:09:48.000Z | 2021-08-22T17:09:48.000Z | # Author: Martin McBride
# Created: 2021-05-09
# Copyright (C) 2021, Martin McBride
# License: MIT
# Create a mandelbrot image using the Image factory function effect_mandelbrot.
# Save the image to file.
from PIL import Image
image = Image.effect_mandelbrot((520, 440), (-2, -1.1, 0.6, 1.1), 256)
image.save("mandel... | 27.5 | 79 | 0.724242 | 52 | 330 | 4.557692 | 0.653846 | 0.109705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.151515 | 330 | 12 | 80 | 27.5 | 0.746429 | 0.584848 | 0 | 0 | 0 | 0 | 0.10687 | 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 |
f2282dcb152dfd2bac923d068f6a6b201940fa60 | 4,472 | py | Python | sdk/python/pulumi_aws/ec2/eip.py | pulumi-bot/pulumi-aws | 756c60135851e015232043c8206567101b8ebd85 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/ec2/eip.py | pulumi-bot/pulumi-aws | 756c60135851e015232043c8206567101b8ebd85 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/ec2/eip.py | pulumi-bot/pulumi-aws | 756c60135851e015232043c8206567101b8ebd85 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import pulumi
import pulumi.runtime
class Eip(pulumi.CustomResource):
"""
Provides an Elastic IP resource.
~> **Note:... | 41.407407 | 258 | 0.640206 | 526 | 4,472 | 5.13308 | 0.254753 | 0.046667 | 0.037037 | 0.065185 | 0.127037 | 0.024444 | 0 | 0 | 0 | 0 | 0 | 0.000927 | 0.276163 | 4,472 | 107 | 259 | 41.794393 | 0.833179 | 0.147809 | 0 | 0 | 1 | 0 | 0.203476 | 0.028752 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.032258 | 0 | 0.080645 | 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 |
1ee927bde6fbc710effcd996ae008caeef987d6c | 5,986 | py | Python | spot-setup/migration/spot_conf_migration.py | yellingviv/incubator-spot | b97128edc645be45a09fccdc449cae2fd2225681 | [
"Apache-2.0"
] | 365 | 2016-09-27T22:51:20.000Z | 2022-03-16T07:23:00.000Z | spot-setup/migration/spot_conf_migration.py | yellingviv/incubator-spot | b97128edc645be45a09fccdc449cae2fd2225681 | [
"Apache-2.0"
] | 155 | 2016-12-13T16:13:27.000Z | 2020-07-13T03:33:29.000Z | spot-setup/migration/spot_conf_migration.py | yellingviv/incubator-spot | b97128edc645be45a09fccdc449cae2fd2225681 | [
"Apache-2.0"
] | 241 | 2016-11-07T06:07:05.000Z | 2022-01-07T07:40:10.000Z | #!/bin/env python
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "Licens... | 44.014706 | 110 | 0.639492 | 894 | 5,986 | 4.138702 | 0.234899 | 0.092432 | 0.089189 | 0.098108 | 0.317027 | 0.272973 | 0.184865 | 0.12 | 0.092973 | 0.024865 | 0 | 0.017611 | 0.165219 | 5,986 | 135 | 111 | 44.340741 | 0.722834 | 0.146007 | 0 | 0.022989 | 0 | 0 | 0.320236 | 0.039489 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057471 | null | null | 0.011494 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1ef5cf986e4c0b500fcc565c9903a911f6811888 | 1,335 | py | Python | utilities/utility.py | cyber-physical-systems/SolarTrader | 6692b6c244b282c49eefa19893329daca24e5feb | [
"MIT"
] | 4 | 2021-03-04T01:30:42.000Z | 2021-12-26T08:26:56.000Z | utilities/utility.py | wuyou33/SolarTrader | 6692b6c244b282c49eefa19893329daca24e5feb | [
"MIT"
] | 5 | 2021-06-08T22:31:01.000Z | 2022-03-12T00:49:00.000Z | utilities/utility.py | wuyou33/SolarTrader | 6692b6c244b282c49eefa19893329daca24e5feb | [
"MIT"
] | 1 | 2021-12-02T10:46:11.000Z | 2021-12-02T10:46:11.000Z | # Logger
class Logger(object):
DEBUG = True
groups = {}
def __init__(self, msg):
pass
@classmethod
def debug_on(cls):
cls.DEBUG = True
@classmethod
def debug_off(cls):
cls.DEBUG = False
@classmethod
def print(cls, *args):
if not cls.DEBUG:
... | 22.627119 | 61 | 0.525843 | 153 | 1,335 | 4.503268 | 0.320261 | 0.162554 | 0.060958 | 0.03193 | 0.145138 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011641 | 0.356554 | 1,335 | 58 | 62 | 23.017241 | 0.790454 | 0.004494 | 0 | 0.227273 | 0 | 0 | 0.073152 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204545 | false | 0.022727 | 0 | 0 | 0.295455 | 0.159091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1ef97c0b1e22fb8d0bda7a75207d7e6ec4a54950 | 20,189 | py | Python | wikifyer-cmd.py | yamaha5/fawikipedia | 4d62d01ec93741fb4af31eb87fb899c7e67468a2 | [
"MIT"
] | null | null | null | wikifyer-cmd.py | yamaha5/fawikipedia | 4d62d01ec93741fb4af31eb87fb899c7e67468a2 | [
"MIT"
] | null | null | null | wikifyer-cmd.py | yamaha5/fawikipedia | 4d62d01ec93741fb4af31eb87fb899c7e67468a2 | [
"MIT"
] | 1 | 2022-02-26T03:56:05.000Z | 2022-02-26T03:56:05.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# # Reza (User:yamaha5) , 2013
#
# Distributed under the terms of the CC-BY-SA 3.0 .
# -*- coding: utf-8 -*-
import wikipedia,pagegenerators,re,pywikibot,query,json
import fa_cosmetic_changes,sys,codecs,string,login,time
wikipedia.config.put_throttle = 0
wikipedia.put... | 47.060606 | 326 | 0.479469 | 2,306 | 20,189 | 4.101041 | 0.189506 | 0.030348 | 0.032991 | 0.034895 | 0.261922 | 0.224701 | 0.207148 | 0.170033 | 0.156181 | 0.137359 | 0 | 0.009905 | 0.334885 | 20,189 | 428 | 327 | 47.170561 | 0.693029 | 0.048838 | 0 | 0.256757 | 0 | 0 | 0.147178 | 0.043753 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.035135 | 0.005405 | null | null | 0.010811 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1ef9bdb6c9f869aedf66aa874bd44da4647af668 | 2,215 | py | Python | fquery/view_model.py | facebookexperimental/fquery | 26482e3f7e9df8135e9607e54f01cf19950dd1bd | [
"MIT"
] | 11 | 2020-02-27T07:09:13.000Z | 2020-11-16T00:54:41.000Z | fquery/view_model.py | facebookexperimental/fquery | 26482e3f7e9df8135e9607e54f01cf19950dd1bd | [
"MIT"
] | 1 | 2020-06-09T02:02:54.000Z | 2020-06-09T02:02:54.000Z | fquery/view_model.py | facebookexperimental/fquery | 26482e3f7e9df8135e9607e54f01cf19950dd1bd | [
"MIT"
] | 6 | 2020-02-29T05:36:34.000Z | 2021-08-31T13:25:34.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# Copyright (c) 2016-present, Facebook, Inc. All rights reserved.
from collections import OrderedDict
from dataclasses import dataclass
from re... | 26.369048 | 69 | 0.624831 | 270 | 2,215 | 4.766667 | 0.37037 | 0.087024 | 0.041958 | 0.037296 | 0.105672 | 0.105672 | 0.066822 | 0 | 0 | 0 | 0 | 0.003115 | 0.275395 | 2,215 | 83 | 70 | 26.686747 | 0.798754 | 0.15395 | 0 | 0.072727 | 0 | 0 | 0.015119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.054545 | 0.036364 | 0.509091 | 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 |
1efb69e9b4f5ad6105ea14afea87bbc55a97ad0d | 9,606 | py | Python | PreCruiseRoutines/CruiseTimelinePlanning/CruiseTimeline.py | NOAA-PMEL/AtSeaPrograms | 839ee4dc1cf7a85bce1de82b04379c6d1670c414 | [
"MIT"
] | 1 | 2017-03-07T19:35:35.000Z | 2017-03-07T19:35:35.000Z | PreCruiseRoutines/CruiseTimelinePlanning/CruiseTimeline.py | shaunwbell/AtSeaPrograms | 839ee4dc1cf7a85bce1de82b04379c6d1670c414 | [
"MIT"
] | 2 | 2016-07-25T17:25:55.000Z | 2016-10-05T22:29:43.000Z | PreCruiseRoutines/CruiseTimelinePlanning/CruiseTimeline.py | shaunwbell/AtSeaPrograms | 839ee4dc1cf7a85bce1de82b04379c6d1670c414 | [
"MIT"
] | 1 | 2020-01-15T06:22:23.000Z | 2020-01-15T06:22:23.000Z | #!/usr/bin/env
"""
Background:
--------
CruiseTimeline.py
Purpose:
--------
Reads csv/google earth file with lat/lon and operations and determines distance and time for cruise
planning purposes
From given locations and operations, depth is retrieved from ETOPO5 dataset. Great circle distance is
cal... | 35.186813 | 132 | 0.583385 | 1,236 | 9,606 | 4.400485 | 0.285599 | 0.03861 | 0.049641 | 0.022063 | 0.287553 | 0.257033 | 0.228719 | 0.210333 | 0.201508 | 0.187167 | 0 | 0.025408 | 0.266604 | 9,606 | 273 | 133 | 35.186813 | 0.746629 | 0.102748 | 0 | 0.237805 | 0 | 0.006098 | 0.122836 | 0.023958 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006098 | 0.054878 | null | null | 0.04878 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4802dc7c9730d0009563791467feb8d20c85ab5b | 2,821 | py | Python | utility_func.py | shivamdubey7466/Image_Classifier | 402a3aa51c3f28240919b44e61ff15b0ea5b3ffe | [
"MIT"
] | null | null | null | utility_func.py | shivamdubey7466/Image_Classifier | 402a3aa51c3f28240919b44e61ff15b0ea5b3ffe | [
"MIT"
] | null | null | null | utility_func.py | shivamdubey7466/Image_Classifier | 402a3aa51c3f28240919b44e61ff15b0ea5b3ffe | [
"MIT"
] | null | null | null | import numpy as np
import torch
from torch import nn,optim
import torch.nn.functional as F
from torchvision import datasets,transforms,models
from PIL import Image
def load_data(data_dir):
train_transforms = transforms.Compose([transforms.RandomRotation(30),
transfor... | 49.491228 | 94 | 0.547678 | 277 | 2,821 | 5.476534 | 0.277978 | 0.018457 | 0.071193 | 0.097561 | 0.417271 | 0.350033 | 0.290705 | 0.290705 | 0.290705 | 0.290705 | 0 | 0.069599 | 0.363346 | 2,821 | 56 | 95 | 50.375 | 0.775056 | 0.090039 | 0 | 0.375 | 0 | 0 | 0.00668 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 1 | 0.05 | false | 0 | 0.15 | 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 |
48073dc786df415dea75e0f15f2ff9c364b876ed | 2,614 | py | Python | django/app/hivernants/migrations/0001_initial.py | jeanpommier/ker51 | 74c173253f3db418ead716f41b9626a4a63cf1e1 | [
"Apache-2.0"
] | null | null | null | django/app/hivernants/migrations/0001_initial.py | jeanpommier/ker51 | 74c173253f3db418ead716f41b9626a4a63cf1e1 | [
"Apache-2.0"
] | null | null | null | django/app/hivernants/migrations/0001_initial.py | jeanpommier/ker51 | 74c173253f3db418ead716f41b9626a4a63cf1e1 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2.5 on 2021-08-01 07:44
import django.contrib.gis.db.models.fields
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
n... | 48.407407 | 194 | 0.609793 | 271 | 2,614 | 5.752768 | 0.324723 | 0.091725 | 0.071841 | 0.056446 | 0.556126 | 0.556126 | 0.497114 | 0.4195 | 0.4195 | 0.4195 | 0 | 0.015091 | 0.23948 | 2,614 | 53 | 195 | 49.320755 | 0.769115 | 0.017215 | 0 | 0.5 | 1 | 0 | 0.11531 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.065217 | 0 | 0.152174 | 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 |
48078e6c694b89e654e75e836b5dc00a7d5737a1 | 6,424 | py | Python | hypha/apply/determinations/management/commands/migrate_concept_determinations.py | maxpearl/hypha | e181ebadfb744aab34617bb766e746368d6f2de0 | [
"BSD-3-Clause"
] | 20 | 2021-04-08T16:38:49.000Z | 2022-02-09T20:05:57.000Z | hypha/apply/determinations/management/commands/migrate_concept_determinations.py | maxpearl/hypha | e181ebadfb744aab34617bb766e746368d6f2de0 | [
"BSD-3-Clause"
] | 1,098 | 2017-12-15T11:23:03.000Z | 2020-01-24T07:58:07.000Z | hypha/apply/determinations/management/commands/migrate_concept_determinations.py | maxpearl/hypha | e181ebadfb744aab34617bb766e746368d6f2de0 | [
"BSD-3-Clause"
] | 17 | 2020-02-07T14:55:54.000Z | 2021-04-04T19:32:38.000Z | import argparse
import json
from datetime import datetime, timezone
from django.contrib.auth import get_user_model
from django.core.management.base import BaseCommand
from django.db import transaction
from django.db.utils import IntegrityError
from hypha.apply.determinations.models import Determination
from hypha.app... | 34.170213 | 101 | 0.550592 | 662 | 6,424 | 5.193353 | 0.255287 | 0.047993 | 0.026178 | 0.023269 | 0.129727 | 0.032868 | 0.025305 | 0 | 0 | 0 | 0 | 0.003542 | 0.340753 | 6,424 | 187 | 102 | 34.352941 | 0.808264 | 0.057441 | 0 | 0.198676 | 0 | 0 | 0.124896 | 0.023042 | 0 | 0 | 0 | 0.010695 | 0 | 1 | 0.05298 | false | 0.013245 | 0.059603 | 0.006623 | 0.18543 | 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 |
480fc46261b7d3255b6bffe1874a3e50af5e9e04 | 249 | py | Python | rali/python/rali_common.py | streamhsa/MIVisionX | 0d0e927d8fbfdce0305b1158bfb24903ae275f99 | [
"MIT"
] | null | null | null | rali/python/rali_common.py | streamhsa/MIVisionX | 0d0e927d8fbfdce0305b1158bfb24903ae275f99 | [
"MIT"
] | null | null | null | rali/python/rali_common.py | streamhsa/MIVisionX | 0d0e927d8fbfdce0305b1158bfb24903ae275f99 | [
"MIT"
] | null | null | null | RALI_LIB_NAME = 'librali.so'
from enum import Enum
class ColorFormat(Enum):
IMAGE_RGB24 = 0
IMAGE_BGR24 = 1
IMAGE_U8 = 2
class Affinity(Enum):
PROCESS_GPU = 0
PROCESS_CPU = 1
class TensorLayout(Enum):
NHWC = 0
NCHW = 1
| 16.6 | 28 | 0.662651 | 37 | 249 | 4.27027 | 0.648649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064865 | 0.257028 | 249 | 14 | 29 | 17.785714 | 0.789189 | 0 | 0 | 0 | 0 | 0 | 0.040161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.916667 | 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 |
4811f934548f19d4f369258813a882f835429304 | 1,458 | py | Python | selfdrive/messaging.py | Orbbec-3DPG/openpilot | 27e0adc434906e37fd7674160a0a8c2dd5c3c180 | [
"MIT"
] | 41 | 2018-07-30T17:36:37.000Z | 2021-04-05T13:24:19.000Z | selfdrive/messaging.py | Orbbec-3DPG/openpilot | 27e0adc434906e37fd7674160a0a8c2dd5c3c180 | [
"MIT"
] | 14 | 2018-06-18T17:47:59.000Z | 2019-01-10T00:18:00.000Z | selfdrive/messaging.py | Orbbec-3DPG/openpilot | 27e0adc434906e37fd7674160a0a8c2dd5c3c180 | [
"MIT"
] | 29 | 2018-07-31T07:43:25.000Z | 2020-08-30T16:44:27.000Z | import zmq
from cereal import log
from common import realtime
def new_message():
dat = log.Event.new_message()
dat.logMonoTime = int(realtime.sec_since_boot() * 1e9)
return dat
def pub_sock(context, port, addr="*"):
sock = context.socket(zmq.PUB)
sock.bind("tcp://%s:%d" % (addr, port))
return sock
def s... | 22.78125 | 75 | 0.650892 | 226 | 1,458 | 4.110619 | 0.314159 | 0.051668 | 0.047363 | 0.073197 | 0.336921 | 0.245425 | 0.19591 | 0.137783 | 0.077503 | 0 | 0 | 0.010526 | 0.218107 | 1,458 | 63 | 76 | 23.142857 | 0.804386 | 0.022634 | 0 | 0.415094 | 0 | 0 | 0.022488 | 0 | 0 | 0 | 0 | 0.015873 | 0 | 1 | 0.132075 | false | 0 | 0.056604 | 0.018868 | 0.339623 | 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 |
4817a06663aa38067327c35087d41f749d082dce | 1,262 | py | Python | Day7_Arrays/arrays.py | EstherWaweru/30DaysOfCode | 845c33349e3d732bc1fda081fa910ac33d92e204 | [
"MIT"
] | 2 | 2021-01-13T10:10:43.000Z | 2021-10-06T04:08:36.000Z | Day7_Arrays/arrays.py | EstherWaweru/30DaysOfCode | 845c33349e3d732bc1fda081fa910ac33d92e204 | [
"MIT"
] | null | null | null | Day7_Arrays/arrays.py | EstherWaweru/30DaysOfCode | 845c33349e3d732bc1fda081fa910ac33d92e204 | [
"MIT"
] | null | null | null | #!/bin/python3
# Objective
# Today, we will learn about the Array data structure. Check out the Tutorial tab for learning materials and an instructional video.
# Task
# Given an array,
# , of integers, print
# 's elements in reverse order as a single line of space-separated numbers.
# Example
# Print 4 3 2 1. Each ... | 19.415385 | 132 | 0.698098 | 192 | 1,262 | 4.53125 | 0.515625 | 0.048276 | 0.032184 | 0.036782 | 0.114943 | 0.114943 | 0.114943 | 0.114943 | 0.114943 | 0.114943 | 0 | 0.015091 | 0.212361 | 1,262 | 65 | 133 | 19.415385 | 0.860161 | 0.704437 | 0 | 0 | 0 | 0 | 0.026316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 0 | 0.454545 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
48181299227fbf7eee2d193817fb6ca832445f5e | 3,094 | py | Python | export-wsdl-v2.py | dorser/export-wsdl | 3771a6eba0d6b138eceb1e52ec7e7666e5afe100 | [
"MIT"
] | 1 | 2017-05-14T18:30:14.000Z | 2017-05-14T18:30:14.000Z | export-wsdl-v2.py | dorser/export-wsdl | 3771a6eba0d6b138eceb1e52ec7e7666e5afe100 | [
"MIT"
] | null | null | null | export-wsdl-v2.py | dorser/export-wsdl | 3771a6eba0d6b138eceb1e52ec7e7666e5afe100 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import urllib2
import xml.etree.ElementTree
import sys, getopt
import os
import itertools
schemaUrls = []
schemaFilenames = []
dirName = ''
def urlGet(url):
try:
urlContent = urllib2.urlopen(url)
except:
print 'Error opening URL:' + url
sys.exit(2)
return urlCont... | 28.127273 | 83 | 0.626697 | 312 | 3,094 | 6.150641 | 0.38141 | 0.013028 | 0.012507 | 0.02345 | 0.076081 | 0.076081 | 0.076081 | 0.039604 | 0.039604 | 0.039604 | 0 | 0.006058 | 0.25307 | 3,094 | 109 | 84 | 28.385321 | 0.824318 | 0.156432 | 0 | 0.191781 | 0 | 0 | 0.13169 | 0.008086 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.09589 | null | null | 0.136986 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
481c3deb225025fa580f2fbe2970954c2b6d46fe | 499 | py | Python | todo/migrations/0006_auto_20161023_1148.py | tgy/getshitdone | 777f1e6c366fa6317617a9ca85cbaf29faf4f523 | [
"MIT"
] | null | null | null | todo/migrations/0006_auto_20161023_1148.py | tgy/getshitdone | 777f1e6c366fa6317617a9ca85cbaf29faf4f523 | [
"MIT"
] | null | null | null | todo/migrations/0006_auto_20161023_1148.py | tgy/getshitdone | 777f1e6c366fa6317617a9ca85cbaf29faf4f523 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-10-23 11:48
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('todo', '0005_board_color'),
]
operations = [
migrations.AlterField(
... | 23.761905 | 110 | 0.577154 | 60 | 499 | 4.65 | 0.766667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072973 | 0.258517 | 499 | 20 | 111 | 24.95 | 0.681081 | 0.136273 | 0 | 0 | 1 | 0 | 0.079439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
481c4bc5149e4571c0978de1a878f32105806677 | 3,176 | py | Python | Sketches/PT/sadns.py | sparkslabs/kamaelia_orig | 24b5f855a63421a1f7c6c7a35a7f4629ed955316 | [
"Apache-2.0"
] | 12 | 2015-10-20T10:22:01.000Z | 2021-07-19T10:09:44.000Z | Sketches/PT/sadns.py | sparkslabs/kamaelia_orig | 24b5f855a63421a1f7c6c7a35a7f4629ed955316 | [
"Apache-2.0"
] | 2 | 2015-10-20T10:22:55.000Z | 2017-02-13T11:05:25.000Z | Sketches/PT/sadns.py | sparkslabs/kamaelia_orig | 24b5f855a63421a1f7c6c7a35a7f4629ed955316 | [
"Apache-2.0"
] | 6 | 2015-03-09T12:51:59.000Z | 2020-03-01T13:06:21.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1)
#
# (1) Kamaelia Contributors are listed in the AUTHORS file and at
# http://www.kamaelia.org/AUTHORS - please extend this file,
# not this notice.
#
# Licensed under the Apache License,... | 38.26506 | 138 | 0.661839 | 455 | 3,176 | 4.567033 | 0.503297 | 0.028874 | 0.008662 | 0.015399 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023505 | 0.236461 | 3,176 | 83 | 139 | 38.26506 | 0.833402 | 0.406801 | 0 | 0.097561 | 0 | 0 | 0.073154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02439 | null | null | 0.04878 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
481ca739bac22d802f5ecfc3dc580656ffbb4d25 | 602 | py | Python | source/Advinha numero/advinha.py | rafael-figueiredo-alves/python-scripts | a1b08463c2538e33c90748bdc705269d34d43ad1 | [
"MIT"
] | 3 | 2021-05-17T00:50:37.000Z | 2021-11-29T02:37:14.000Z | source/Advinha numero/advinha.py | rafael-figueiredo-alves/python-scripts | a1b08463c2538e33c90748bdc705269d34d43ad1 | [
"MIT"
] | null | null | null | source/Advinha numero/advinha.py | rafael-figueiredo-alves/python-scripts | a1b08463c2538e33c90748bdc705269d34d43ad1 | [
"MIT"
] | null | null | null | from random import randint
numero = int(randint(1, 10))
palpite = 0
tentativa = 0
print('####### Adivinhe o número que estou pensando de 1 a 10 #######')
print('')
while palpite != numero:
palpite = int(input('Digite o seu palpite: '))
tentativa += 1
if palpite == numero:
print('')
... | 23.153846 | 71 | 0.543189 | 68 | 602 | 4.808824 | 0.558824 | 0.122324 | 0.110092 | 0.140673 | 0.140673 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021077 | 0.290698 | 602 | 26 | 72 | 23.153846 | 0.744731 | 0 | 0 | 0.25 | 0 | 0 | 0.311774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
481ec03d69ee2530aa2e5c5cd5b1cbcdf1bfac68 | 472 | py | Python | dataStructure/ds_reference.py | mrgiser/helloworld-python | 7af347e125e7189f4ed26c24d25e4c7664072892 | [
"Apache-2.0"
] | null | null | null | dataStructure/ds_reference.py | mrgiser/helloworld-python | 7af347e125e7189f4ed26c24d25e4c7664072892 | [
"Apache-2.0"
] | null | null | null | dataStructure/ds_reference.py | mrgiser/helloworld-python | 7af347e125e7189f4ed26c24d25e4c7664072892 | [
"Apache-2.0"
] | null | null | null | print('Simple Assignment')
shoplist = ['apple', 'mango', 'carrot', 'banana']
# mylist 只是指向同一对象的另一种名称
mylist = shoplist
# 我购买了第一项项目, 所以我将其从列表中删除
del shoplist[0]
print('shoplist is', shoplist)
print('mylist is', mylist)
# 注意到 shoplist 和 mylist 二者都
# 打印出了其中都没有 apple 的同样的列表, 以此我们确认
# 它们指向的是同一个对象
print('Copy by making a ful... | 24.842105 | 49 | 0.743644 | 58 | 472 | 6.051724 | 0.534483 | 0.079772 | 0.079772 | 0.091168 | 0.245014 | 0.245014 | 0.245014 | 0.245014 | 0.245014 | 0 | 0 | 0.004854 | 0.127119 | 472 | 19 | 50 | 24.842105 | 0.847087 | 0.332627 | 0 | 0.363636 | 0 | 0 | 0.345277 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.545455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4821ad074b7745668a8a8a4fda061c6f50560eef | 3,348 | py | Python | anchors_to_rels.py | simberaj/mobilib | ae350d095a34f53704bd4aaaf7f45e573bda779a | [
"MIT"
] | null | null | null | anchors_to_rels.py | simberaj/mobilib | ae350d095a34f53704bd4aaaf7f45e573bda779a | [
"MIT"
] | null | null | null | anchors_to_rels.py | simberaj/mobilib | ae350d095a34f53704bd4aaaf7f45e573bda779a | [
"MIT"
] | null | null | null | '''Generate spatial interaction tables from an anchor point table.
'''
import os
import argparse
import numpy
import pandas as pd
import mobilib.relations
parser = argparse.ArgumentParser(
description=__doc__,
formatter_class=argparse.ArgumentDefaultsHelpFormatter
)
parser.add_argument('infile',
help=... | 31.584906 | 87 | 0.654421 | 434 | 3,348 | 4.868664 | 0.322581 | 0.046853 | 0.0885 | 0.04354 | 0.118315 | 0.103644 | 0.051112 | 0 | 0 | 0 | 0 | 0.001138 | 0.212664 | 3,348 | 105 | 88 | 31.885714 | 0.800455 | 0.018817 | 0 | 0.032258 | 1 | 0 | 0.181263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010753 | false | 0 | 0.107527 | 0 | 0.129032 | 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 |
482d2ebae6545feb01aaa0e09b3256b98f21f669 | 2,806 | py | Python | tencentcloud/bmvpc/v20180625/errorcodes.py | PlasticMem/tencentcloud-sdk-python | 666db85623d51d640a165907a19aef5fba53b38d | [
"Apache-2.0"
] | 465 | 2018-04-27T09:54:59.000Z | 2022-03-29T02:18:01.000Z | tencentcloud/bmvpc/v20180625/errorcodes.py | PlasticMem/tencentcloud-sdk-python | 666db85623d51d640a165907a19aef5fba53b38d | [
"Apache-2.0"
] | 91 | 2018-04-27T09:48:11.000Z | 2022-03-12T08:04:04.000Z | tencentcloud/bmvpc/v20180625/errorcodes.py | PlasticMem/tencentcloud-sdk-python | 666db85623d51d640a165907a19aef5fba53b38d | [
"Apache-2.0"
] | 232 | 2018-05-02T08:02:46.000Z | 2022-03-30T08:02:48.000Z | # -*- coding: utf8 -*-
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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... | 28.06 | 99 | 0.824305 | 226 | 2,806 | 10.150442 | 0.575221 | 0.026155 | 0.011334 | 0.013949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005945 | 0.100855 | 2,806 | 99 | 100 | 28.343434 | 0.90329 | 0.334284 | 0 | 0 | 0 | 0 | 0.434521 | 0.366027 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4832a89524384bb463674d2e66f61c4b983254af | 1,265 | py | Python | examples/matplot_module.py | Mira-13/figure-gen | fd1b8814423dd34973a3fafe68ff5c0f95c08590 | [
"MIT"
] | 75 | 2020-09-17T17:17:17.000Z | 2022-01-21T14:28:14.000Z | examples/matplot_module.py | Mira-13/figure-gen | fd1b8814423dd34973a3fafe68ff5c0f95c08590 | [
"MIT"
] | 3 | 2020-09-29T11:51:35.000Z | 2020-10-22T15:27:40.000Z | examples/matplot_module.py | Mira-13/figure-gen | fd1b8814423dd34973a3fafe68ff5c0f95c08590 | [
"MIT"
] | 2 | 2020-10-24T05:57:49.000Z | 2022-03-14T17:06:02.000Z | import figuregen
import figuregen.util
import numpy as np
# generate test data
seconds = np.linspace(1, 60, 42) #linespace(start, stop, num): Return evenly spaced numbers over a specified interval
errors_1 = 100/seconds
errors_2 = 80/seconds
data = [
(seconds, errors_1), (seconds, errors_2)
]
plot_color = [
... | 37.205882 | 117 | 0.734387 | 195 | 1,265 | 4.507692 | 0.487179 | 0.047782 | 0.050057 | 0.098976 | 0.292378 | 0.292378 | 0.215017 | 0.215017 | 0.215017 | 0.215017 | 0 | 0.063773 | 0.10751 | 1,265 | 34 | 118 | 37.205882 | 0.714792 | 0.098814 | 0 | 0 | 1 | 0 | 0.077397 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.115385 | 0 | 0.115385 | 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 |
4836c908345183c81701a5b7c6168e9052b1180b | 1,278 | py | Python | solutions/day25.py | melnig/aoc | cafb9bce9d74f38e801f0d6b1e4d51f4c036109e | [
"BSD-3-Clause"
] | null | null | null | solutions/day25.py | melnig/aoc | cafb9bce9d74f38e801f0d6b1e4d51f4c036109e | [
"BSD-3-Clause"
] | null | null | null | solutions/day25.py | melnig/aoc | cafb9bce9d74f38e801f0d6b1e4d51f4c036109e | [
"BSD-3-Clause"
] | null | null | null | '''
Author: Griffin Melnick, melnick.griffin@gmail.com
File: day25.py
Purpose: Advent of Code 2017, day 25
'''
from collections import defaultdict
import sys
steps = 12861455
states = {
'a': ( (1, +1, 'b'), (0, -1, 'b') ),
'b': ( (1, -1, 'c'), (0, +1, 'e') ),
'c': ( (1, +1, 'e'), (0,... | 23.666667 | 64 | 0.395931 | 136 | 1,278 | 3.625 | 0.470588 | 0.028398 | 0.018256 | 0.060852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043833 | 0.232394 | 1,278 | 53 | 65 | 24.113208 | 0.458716 | 0.28795 | 0 | 0 | 0 | 0 | 0.075032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.230769 | 0.038462 | 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 |
48383ab95321aa8f7dc9426bc8ce6ce7aace06db | 1,756 | py | Python | MiscDemo/stream_load/python/py2/ReqStreamLoad.py | StarRocks/demo | cfb03519c988f2d257cade4764f6078ba3e27058 | [
"Apache-2.0"
] | 15 | 2021-09-30T10:22:55.000Z | 2022-03-29T14:26:39.000Z | MiscDemo/stream_load/python/py2/ReqStreamLoad.py | StarRocks/demo | cfb03519c988f2d257cade4764f6078ba3e27058 | [
"Apache-2.0"
] | 3 | 2021-12-09T08:26:18.000Z | 2022-01-14T03:16:07.000Z | MiscDemo/stream_load/python/py2/ReqStreamLoad.py | StarRocks/demo | cfb03519c988f2d257cade4764f6078ba3e27058 | [
"Apache-2.0"
] | 11 | 2021-11-14T10:26:56.000Z | 2022-03-24T08:23:36.000Z | #!/bin/python
# -*- coding: utf-8 -*-
"""
# Copyright (c) 2021 Beijing Dingshi Zongheng Technology Co., Ltd. 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:... | 30.275862 | 93 | 0.653759 | 223 | 1,756 | 5.076233 | 0.672646 | 0.053004 | 0.022968 | 0.028269 | 0.074205 | 0.074205 | 0.074205 | 0.074205 | 0 | 0 | 0 | 0.020999 | 0.213554 | 1,756 | 57 | 94 | 30.807018 | 0.798697 | 0.497153 | 0 | 0 | 0 | 0 | 0.254854 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.083333 | 0.083333 | 0 | 0.208333 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
48436779d8b00b815c6ec79abd982f3b01a3dc18 | 17,797 | py | Python | marconi/queues/storage/base.py | andrew-vant/marconi | 9afe7ba27efe597cca8baac77fd0aa387c75001a | [
"Apache-2.0"
] | null | null | null | marconi/queues/storage/base.py | andrew-vant/marconi | 9afe7ba27efe597cca8baac77fd0aa387c75001a | [
"Apache-2.0"
] | null | null | null | marconi/queues/storage/base.py | andrew-vant/marconi | 9afe7ba27efe597cca8baac77fd0aa387c75001a | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2013 Red Hat, 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 or agreed to in writ... | 31.222807 | 78 | 0.643704 | 2,123 | 17,797 | 5.348563 | 0.158267 | 0.078203 | 0.058124 | 0.093879 | 0.555086 | 0.499956 | 0.41638 | 0.349538 | 0.243153 | 0.190137 | 0 | 0.002272 | 0.282913 | 17,797 | 569 | 79 | 31.27768 | 0.887478 | 0.572063 | 0 | 0.583893 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275168 | false | 0 | 0.013423 | 0 | 0.348993 | 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 |
484714aa14817649ddf7c53750d3884c8e065d20 | 2,239 | py | Python | tl/candidate_generation/phrase_query_candidates.py | mtang724/table-linker | 67201fa3c35df244750892155239cafe4085e15a | [
"MIT"
] | 21 | 2020-05-22T07:12:37.000Z | 2022-03-22T20:21:02.000Z | tl/candidate_generation/phrase_query_candidates.py | mtang724/table-linker | 67201fa3c35df244750892155239cafe4085e15a | [
"MIT"
] | 24 | 2020-04-15T00:08:49.000Z | 2021-11-13T05:46:11.000Z | tl/candidate_generation/phrase_query_candidates.py | mtang724/table-linker | 67201fa3c35df244750892155239cafe4085e15a | [
"MIT"
] | 11 | 2020-07-12T14:50:27.000Z | 2022-02-17T07:39:06.000Z | import pandas as pd
from tl.candidate_generation.es_search import Search
from tl.candidate_generation.utility import Utility
from tl.exceptions import RequiredInputParameterMissingException
from tl.utility.filter import Filter
class PhraseQueryMatches(object):
def __init__(self, es_url, es_index, es_user=None, es... | 41.462963 | 132 | 0.68736 | 292 | 2,239 | 5.054795 | 0.363014 | 0.03252 | 0.02439 | 0.033875 | 0.060976 | 0.02439 | 0 | 0 | 0 | 0 | 0 | 0.00355 | 0.245199 | 2,239 | 53 | 133 | 42.245283 | 0.869822 | 0.2318 | 0 | 0.066667 | 0 | 0 | 0.072348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.066667 | 0.2 | 0 | 0.333333 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
48479a90bb93611bbbd329f50666de3146f267f0 | 4,398 | py | Python | BuildNetwork-new.py | Neural-Network/TicTacToe | 59a442a882a2928ee28102e8cb2c3e92bb3a775d | [
"BSD-3-Clause"
] | 2 | 2015-02-24T06:19:13.000Z | 2015-02-25T01:34:21.000Z | BuildNetwork-new.py | Neural-Network/TicTacToe | 59a442a882a2928ee28102e8cb2c3e92bb3a775d | [
"BSD-3-Clause"
] | null | null | null | BuildNetwork-new.py | Neural-Network/TicTacToe | 59a442a882a2928ee28102e8cb2c3e92bb3a775d | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from pybrain.tools.shortcuts import buildNetwork
from pybrain.datasets import SupervisedDataSet
from pybrain.supervised.trainers import BackpropTrainer
from pybrain.structure.modules import SoftmaxLayer
import random
ds = SupervisedDataSet(9, 9)
#get training set: combo + result
targetFile... | 40.348624 | 424 | 0.541382 | 680 | 4,398 | 3.501471 | 0.226471 | 0.033599 | 0.047039 | 0.02268 | 0.288954 | 0.250315 | 0.212516 | 0.187316 | 0.187316 | 0.187316 | 0 | 0.059219 | 0.255116 | 4,398 | 108 | 425 | 40.722222 | 0.667582 | 0.128922 | 0 | 0.235294 | 0 | 0 | 0.034872 | 0.008915 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.235294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4852ebfad279025741d4f60df4c1078d14e5667f | 1,844 | py | Python | tools/logscsv2dwells.py | yitzikc/mre-gatekeeper | d4e9e6637e607a5910160c4c985dff7813be472d | [
"MIT"
] | 1 | 2021-12-20T23:26:28.000Z | 2021-12-20T23:26:28.000Z | tools/logscsv2dwells.py | yitzikc/mre-gatekeeper | d4e9e6637e607a5910160c4c985dff7813be472d | [
"MIT"
] | 1 | 2021-05-11T17:32:11.000Z | 2021-05-11T17:32:11.000Z | tools/logscsv2dwells.py | yitzikc/mre-gatekeeper | d4e9e6637e607a5910160c4c985dff7813be472d | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import argparse
import pandas as pd
def match_entrances_and_exits(entrances_and_exits: pd.DataFrame) -> pd.DataFrame:
entrances = entrances_and_exits[entrances_and_exits.decision != "parting"].rename(
columns={"time": "arrived"})
exits = entrances_and_exits[entrances_and_exits.... | 33.527273 | 139 | 0.661063 | 226 | 1,844 | 5.132743 | 0.327434 | 0.144828 | 0.205172 | 0.094828 | 0.267241 | 0.267241 | 0.267241 | 0.167241 | 0.082759 | 0.082759 | 0 | 0.00203 | 0.198482 | 1,844 | 54 | 140 | 34.148148 | 0.782815 | 0.011388 | 0 | 0 | 0 | 0 | 0.211306 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.047619 | 0 | 0.214286 | 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 |
485cd701fe8cfe18844ec4aa91d0fe2aa0b2092f | 887 | py | Python | setup.py | himanshub16/its.py | c1d6472f4f76e2e3415ee97f15ad0b82a275feaa | [
"BSD-2-Clause"
] | 11 | 2015-01-06T18:39:35.000Z | 2017-03-27T03:48:42.000Z | setup.py | kennethreitz-archive/its.py | c1d6472f4f76e2e3415ee97f15ad0b82a275feaa | [
"BSD-2-Clause"
] | 1 | 2016-02-04T12:43:50.000Z | 2016-02-04T12:43:50.000Z | setup.py | kennethreitz-archive/its.py | c1d6472f4f76e2e3415ee97f15ad0b82a275feaa | [
"BSD-2-Clause"
] | 4 | 2017-05-18T04:38:17.000Z | 2018-11-26T23:05:31.000Z | # -*- coding: utf-8 -*-
"""
is.py
~~~~~
This simple module gives you a set of Python runtime environment flags.
"""
from setuptools import setup
setup(
name='its',
version='0.1.0',
url='https://github.com/kennethreitz/its',
license='BSD',
author='Kenneth Reitz',
author_email='me@kennethreitz... | 25.342857 | 71 | 0.627959 | 95 | 887 | 5.757895 | 0.768421 | 0.047532 | 0.087751 | 0.106033 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005848 | 0.228861 | 887 | 34 | 72 | 26.088235 | 0.79386 | 0.120631 | 0 | 0 | 0 | 0 | 0.50454 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.041667 | 0 | 0.041667 | 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 |
4861702720e4dd1e1a5b33df1039a86ce4010f39 | 7,452 | py | Python | api/feature_access.py | IlyaLab/ISB-LSDF | 897825832aabb819659bb5ad6f0b1df941619bc9 | [
"Apache-2.0"
] | null | null | null | api/feature_access.py | IlyaLab/ISB-LSDF | 897825832aabb819659bb5ad6f0b1df941619bc9 | [
"Apache-2.0"
] | null | null | null | api/feature_access.py | IlyaLab/ISB-LSDF | 897825832aabb819659bb5ad6f0b1df941619bc9 | [
"Apache-2.0"
] | null | null | null | """
Copyright 2015, Institute for Systems Biology
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... | 42.101695 | 135 | 0.713366 | 800 | 7,452 | 6.47125 | 0.25 | 0.038246 | 0.028974 | 0.046359 | 0.327603 | 0.267529 | 0.164188 | 0.15028 | 0.15028 | 0.143713 | 0 | 0.006506 | 0.216184 | 7,452 | 176 | 136 | 42.340909 | 0.879815 | 0.095813 | 0 | 0.22963 | 0 | 0 | 0.058683 | 0.012809 | 0 | 0 | 0 | 0.005682 | 0 | 1 | 0.022222 | false | 0 | 0.155556 | 0 | 0.518519 | 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 |
48630cee4db89d2980da64f726cdd465be451c36 | 264 | py | Python | data/weapons/CPike.py | sharmavins23/Zhongli-Artifact-and-Weapon-Calcs | 3254ca25238604865f34ac7084c10202db5713e0 | [
"MIT"
] | null | null | null | data/weapons/CPike.py | sharmavins23/Zhongli-Artifact-and-Weapon-Calcs | 3254ca25238604865f34ac7084c10202db5713e0 | [
"MIT"
] | null | null | null | data/weapons/CPike.py | sharmavins23/Zhongli-Artifact-and-Weapon-Calcs | 3254ca25238604865f34ac7084c10202db5713e0 | [
"MIT"
] | null | null | null | # Static data class for crescent pike
class CrescentPike:
level = 90
refinementLevel = 1
name = "Crescent Pike (R1)"
# Base stat values
baseATK = 565
physDMG = 0.345
# Passive values
mvAdditive = 0.2 + ((refinementLevel-1)*0.05)
| 18.857143 | 49 | 0.632576 | 33 | 264 | 5.060606 | 0.757576 | 0.143713 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089005 | 0.276515 | 264 | 13 | 50 | 20.307692 | 0.78534 | 0.253788 | 0 | 0 | 0 | 0 | 0.093264 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4864719c4c7de2b44006117f6d2e330ef7e6ef47 | 1,662 | py | Python | devices/migrations/0006_macosapp.py | yellowjaguar5/lnldb | dea7708f5e4e103ef6ef968c9f3a4deaa58861c5 | [
"MIT"
] | 5 | 2017-09-25T21:24:59.000Z | 2021-12-18T17:08:13.000Z | devices/migrations/0006_macosapp.py | yellowjaguar5/lnldb | dea7708f5e4e103ef6ef968c9f3a4deaa58861c5 | [
"MIT"
] | 304 | 2015-03-24T17:44:22.000Z | 2022-03-29T14:09:41.000Z | devices/migrations/0006_macosapp.py | yellowjaguar5/lnldb | dea7708f5e4e103ef6ef968c9f3a4deaa58861c5 | [
"MIT"
] | 10 | 2017-10-24T02:18:12.000Z | 2021-09-20T20:40:25.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2020-08-27 18:12
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('devices', '0005_auto_20200826_1650'),
]
operations = [
migrations.CreateMo... | 46.166667 | 163 | 0.604693 | 171 | 1,662 | 5.707602 | 0.502924 | 0.064549 | 0.079918 | 0.092213 | 0.205943 | 0.205943 | 0.13832 | 0 | 0 | 0 | 0 | 0.0344 | 0.247894 | 1,662 | 35 | 164 | 47.485714 | 0.7464 | 0.041516 | 0 | 0 | 1 | 0 | 0.240881 | 0.014465 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.178571 | 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 |
4865e61a4093fb3e04ad66541ea19779aa91f5a1 | 1,400 | py | Python | TournamentService.py | PaulieC/sprint1_Council_a | 91c08abf25229903d13af836bd679fe24864f62f | [
"Apache-2.0"
] | null | null | null | TournamentService.py | PaulieC/sprint1_Council_a | 91c08abf25229903d13af836bd679fe24864f62f | [
"Apache-2.0"
] | null | null | null | TournamentService.py | PaulieC/sprint1_Council_a | 91c08abf25229903d13af836bd679fe24864f62f | [
"Apache-2.0"
] | null | null | null | __author__ = "Joe Kvedaras and Collin Day"
#Set up a tournament with a game and register players
from AllPlayAll import *
class TournamentService:
def __init__(self):
#Is tournament service the one to create a new tournament?
self.tournament = AllPlayAll()
self.game = None
def regist... | 30.434783 | 66 | 0.634286 | 172 | 1,400 | 5.075581 | 0.302326 | 0.160367 | 0.054983 | 0.061856 | 0.246277 | 0.246277 | 0.098511 | 0.098511 | 0.098511 | 0 | 0 | 0 | 0.289286 | 1,400 | 45 | 67 | 31.111111 | 0.877387 | 0.275 | 0 | 0.230769 | 0 | 0 | 0.127421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.038462 | 0 | 0.307692 | 0.115385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4872c11eb6e895832120c04c9d0b6144a6cd735b | 945 | py | Python | hivs_clients/migrations/0003_add_field_street_and_area_to_profile.py | tehamalab/hivs | db7dfa7f89174be07d42bd469fd23c8553c0eff2 | [
"MIT"
] | null | null | null | hivs_clients/migrations/0003_add_field_street_and_area_to_profile.py | tehamalab/hivs | db7dfa7f89174be07d42bd469fd23c8553c0eff2 | [
"MIT"
] | null | null | null | hivs_clients/migrations/0003_add_field_street_and_area_to_profile.py | tehamalab/hivs | db7dfa7f89174be07d42bd469fd23c8553c0eff2 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.7 on 2018-08-02 09:17
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('hivs_administrative', '0002_create_model_street'),
('hivs_clients', '0002_alter_verbose_names_on_profile'),
]
... | 36.346154 | 205 | 0.67619 | 110 | 945 | 5.590909 | 0.418182 | 0.052033 | 0.068293 | 0.107317 | 0.517073 | 0.517073 | 0.393496 | 0.393496 | 0.393496 | 0.393496 | 0 | 0.030504 | 0.202116 | 945 | 25 | 206 | 37.8 | 0.785146 | 0.047619 | 0 | 0.315789 | 1 | 0 | 0.246102 | 0.121381 | 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 |
4878e7c98962892ae191e92f801d842e1631d0e0 | 4,995 | py | Python | datasketch/weighted_minhash.py | axellos162/datasketch-metabob-trial | 1c6778b6faf12cfa4d0d698c6b9081d17f75d69f | [
"MIT"
] | 1 | 2021-10-03T19:38:34.000Z | 2021-10-03T19:38:34.000Z | datasketch/weighted_minhash.py | axellos162/datasketch-metabob-trial | 1c6778b6faf12cfa4d0d698c6b9081d17f75d69f | [
"MIT"
] | 13 | 2021-10-14T18:36:35.000Z | 2022-03-11T20:59:53.000Z | datasketch/weighted_minhash.py | newestemail439/datasketch-metabob-trial | 3c9f4fdb60e6e05e33ee2572402e7dd1f08b2ec4 | [
"MIT"
] | 14 | 2020-08-12T22:42:50.000Z | 2022-03-30T01:07:57.000Z | import collections
import copy
import numpy as np
class WeightedMinHash(object):
'''New weighted MinHash is generated by
:class:`datasketch.WeightedMinHashGenerator`.
You can also initialize weighted MinHash by using the state
from an existing one.
Args:
seed (int): The random seed used ... | 36.195652 | 111 | 0.61041 | 612 | 4,995 | 4.924837 | 0.302288 | 0.064698 | 0.03152 | 0.013935 | 0.141009 | 0.091241 | 0.091241 | 0.081619 | 0.081619 | 0.081619 | 0 | 0.011949 | 0.296296 | 4,995 | 137 | 112 | 36.459854 | 0.845519 | 0.387588 | 0 | 0.066667 | 1 | 0 | 0.032629 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.05 | 0 | 0.316667 | 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 |
487c20704a38f3660b4119917b8df9dbb207f816 | 4,670 | py | Python | finsky/protos/library_replication_pb2.py | mmcloughlin/finsky | f21ccdbebf86e55a542c658b6972cb1f3fb5f119 | [
"MIT"
] | 59 | 2015-07-11T18:53:59.000Z | 2021-09-08T03:16:17.000Z | finsky/protos/library_replication_pb2.py | mmcloughlin/finsky | f21ccdbebf86e55a542c658b6972cb1f3fb5f119 | [
"MIT"
] | 10 | 2015-07-01T08:09:29.000Z | 2021-12-06T01:23:00.000Z | finsky/protos/library_replication_pb2.py | mmcloughlin/finsky | f21ccdbebf86e55a542c658b6972cb1f3fb5f119 | [
"MIT"
] | 14 | 2015-08-15T22:04:02.000Z | 2021-03-03T09:14:39.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: library_replication.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflecti... | 38.278689 | 481 | 0.799143 | 479 | 4,670 | 7.457203 | 0.277662 | 0.024636 | 0.025196 | 0.033595 | 0.37402 | 0.321948 | 0.268757 | 0.268757 | 0.268757 | 0.268757 | 0 | 0.024506 | 0.1 | 4,670 | 121 | 482 | 38.595041 | 0.825363 | 0.070664 | 0 | 0.55102 | 1 | 0.010204 | 0.266097 | 0.246481 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 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 |
488323192ddf2c4eef75e1923495db8d028260c5 | 646 | py | Python | dg_models/skew_model.py | davedavis/marketing-etl | f1a2dfeaa41bf4ef7645dc113912fe994bd5707d | [
"Apache-2.0"
] | null | null | null | dg_models/skew_model.py | davedavis/marketing-etl | f1a2dfeaa41bf4ef7645dc113912fe994bd5707d | [
"Apache-2.0"
] | null | null | null | dg_models/skew_model.py | davedavis/marketing-etl | f1a2dfeaa41bf4ef7645dc113912fe994bd5707d | [
"Apache-2.0"
] | null | null | null | import sys
from sqlalchemy import Column, Integer, Float, ForeignKey
from dg_config import settingsfile
from dg_models.base_model import Base
from dg_models.account_model import Account
settings = settingsfile.get_settings()
class Skew(Base):
__tablename__ = 'Skew'
__tableargs__ = {'schema': settings['db_d... | 23.925926 | 57 | 0.721362 | 80 | 646 | 5.5375 | 0.4875 | 0.146727 | 0.115124 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181115 | 646 | 26 | 58 | 24.846154 | 0.837429 | 0 | 0 | 0 | 0 | 0 | 0.071207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.277778 | 0.055556 | 0.944444 | 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 |
48835e871775f20c151c5208165f0fc48e69d47e | 1,692 | py | Python | spiders/baike/url_manager.py | aollio/toys | 1f796f80dae022eee2db03f92b55fb3158c762fd | [
"MIT"
] | null | null | null | spiders/baike/url_manager.py | aollio/toys | 1f796f80dae022eee2db03f92b55fb3158c762fd | [
"MIT"
] | null | null | null | spiders/baike/url_manager.py | aollio/toys | 1f796f80dae022eee2db03f92b55fb3158c762fd | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import hashlib
import pickle
__author__ = 'Aollio Hou'
__email__ = 'aollio@outlook.com'
def md5(url):
md5lib = hashlib.md5()
md5lib.update(url.encode('utf-8'))
return md5lib.hexdigest()[8:-8]
class UrlManager:
def __init__(self):
self.new_urls = set()
self.ol... | 21.417722 | 70 | 0.528369 | 218 | 1,692 | 3.908257 | 0.33945 | 0.06338 | 0.064554 | 0.028169 | 0.056338 | 0.056338 | 0 | 0 | 0 | 0 | 0 | 0.011851 | 0.351655 | 1,692 | 78 | 71 | 21.692308 | 0.764813 | 0.095154 | 0 | 0.045455 | 0 | 0 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.045455 | 0.068182 | 0.5 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f8163e992300c86b642dd996971b186a286b3d6 | 561 | py | Python | integration_tests/app/entities.py | haribo0915/Spring-Cloud-in-Python | 0bcd7093869c797df14428bf2d1b0a779f96e573 | [
"Apache-2.0"
] | 5 | 2020-10-06T09:48:23.000Z | 2020-10-07T13:19:46.000Z | integration_tests/app/entities.py | haribo0915/Spring-Cloud-in-Python | 0bcd7093869c797df14428bf2d1b0a779f96e573 | [
"Apache-2.0"
] | 5 | 2020-10-05T09:57:01.000Z | 2020-10-12T19:52:48.000Z | integration_tests/app/entities.py | haribo0915/Spring-Cloud-in-Python | 0bcd7093869c797df14428bf2d1b0a779f96e573 | [
"Apache-2.0"
] | 8 | 2020-10-05T06:34:49.000Z | 2020-10-07T13:19:46.000Z | # -*- coding: utf-8 -*-
__author__ = "Waterball (johnny850807@gmail.com)"
__license__ = "Apache 2.0"
# standard library
# -*- coding: utf-8 -*-
from typing import Optional
class User:
def __init__(self, name, account, password, id_: Optional[str] = None):
self.id = id_
self.name = name
s... | 23.375 | 80 | 0.629234 | 70 | 561 | 4.714286 | 0.471429 | 0.054545 | 0.060606 | 0.072727 | 0.09697 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023697 | 0.247772 | 561 | 23 | 81 | 24.391304 | 0.758294 | 0.106952 | 0 | 0.142857 | 0 | 0 | 0.088531 | 0.04829 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.071429 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6f82bf8375863dc12a63dca2701dc0bcef62db5a | 6,764 | py | Python | Backend/hadoop.py | TheInvincibleLearner/simranquirky.github.io | 21a2524b321493b9ff82eb8b4fcc10af8f8face7 | [
"MIT"
] | null | null | null | Backend/hadoop.py | TheInvincibleLearner/simranquirky.github.io | 21a2524b321493b9ff82eb8b4fcc10af8f8face7 | [
"MIT"
] | 10 | 2021-09-29T13:25:21.000Z | 2021-10-05T13:51:36.000Z | Backend/hadoop.py | TheInvincibleLearner/simranquirky.github.io | 21a2524b321493b9ff82eb8b4fcc10af8f8face7 | [
"MIT"
] | 7 | 2021-09-22T13:26:35.000Z | 2021-10-05T03:07:43.000Z | #! /usr/bin/python3
print("content-type: text/html")
print()
print('''<style>
pre{
color: #ffb78c;
font-weight: bold;
font-size: 20px;
}
span{
color: #ffb78c;
font-weight: bold;
font-size: 26px;
}
</style>
''')
print('<body style="padding: 40px;">')
print('<h1 style="color: #71daeb;... | 38.873563 | 294 | 0.55411 | 820 | 6,764 | 4.484146 | 0.180488 | 0.063095 | 0.134077 | 0.165624 | 0.551809 | 0.471036 | 0.393255 | 0.333968 | 0.28012 | 0.213217 | 0 | 0.012385 | 0.24793 | 6,764 | 173 | 295 | 39.098266 | 0.710438 | 0.007983 | 0 | 0.217391 | 0 | 0.014493 | 0.400828 | 0.089362 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021739 | 0 | 0.021739 | 0.188406 | 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 |
6f8509e2d613bb2303104de0e3eb0f58a2208b4d | 5,044 | py | Python | dist/micropy-cli/frozen/framebuf.py | kevindawson/Pico-Stub | 6f9112779d4d81f821a3af273a450b9329ccdbab | [
"Apache-2.0"
] | 19 | 2021-01-25T23:56:09.000Z | 2022-02-21T13:55:16.000Z | dist/micropy-cli/frozen/framebuf.py | kevindawson/Pico-Stub | 6f9112779d4d81f821a3af273a450b9329ccdbab | [
"Apache-2.0"
] | 18 | 2021-02-06T09:03:09.000Z | 2021-10-04T16:36:35.000Z | dist/micropy-cli/frozen/framebuf.py | kevindawson/Pico-Stub | 6f9112779d4d81f821a3af273a450b9329ccdbab | [
"Apache-2.0"
] | 6 | 2021-01-26T08:41:47.000Z | 2021-04-27T11:33:33.000Z | """Frame buffer manipulation
This module provides a general frame buffer which can be used to create
bitmap images, which can then be sent to a display.
"""
from typing import Any, Optional, overload
class FrameBuffer:
"""
The FrameBuffer class provides a pixel buffer which can be drawn upon with
pixels,... | 35.77305 | 89 | 0.604877 | 701 | 5,044 | 4.338088 | 0.323823 | 0.046037 | 0.013154 | 0.021046 | 0.210457 | 0.181519 | 0.166721 | 0.14173 | 0.115423 | 0.115423 | 0 | 0.016408 | 0.311261 | 5,044 | 141 | 90 | 35.77305 | 0.858952 | 0.629461 | 0 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.025641 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f8c01ba42e9115d397a0af0c04ea4074ca30952 | 2,459 | py | Python | feder/cases/viewsets.py | dzemeuksis/feder | 32ef7793af6256d4ecada61505c7baf334b34419 | [
"MIT"
] | 16 | 2015-08-11T17:20:26.000Z | 2022-02-11T20:15:41.000Z | feder/cases/viewsets.py | dzemeuksis/feder | 32ef7793af6256d4ecada61505c7baf334b34419 | [
"MIT"
] | 534 | 2015-08-04T00:10:54.000Z | 2022-03-17T10:44:47.000Z | feder/cases/viewsets.py | dzemeuksis/feder | 32ef7793af6256d4ecada61505c7baf334b34419 | [
"MIT"
] | 10 | 2017-08-30T13:34:32.000Z | 2022-02-18T13:00:35.000Z | from django.utils.translation import ugettext_lazy as _
from django_filters import rest_framework as filters
from rest_framework import viewsets
from rest_framework.settings import api_settings
from .filters import CaseReportFilter
from .models import Case
from .serializers import CaseSerializer, CaseReportSerializer
... | 33.22973 | 88 | 0.681985 | 227 | 2,459 | 7.022026 | 0.409692 | 0.037641 | 0.02133 | 0.050188 | 0.121706 | 0.06399 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216348 | 2,459 | 73 | 89 | 33.684932 | 0.827193 | 0.00732 | 0 | 0.067797 | 0 | 0 | 0.173432 | 0.04551 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050847 | false | 0 | 0.152542 | 0.033898 | 0.525424 | 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 |
6f91bb712bd344711a92be5137793005342aef1a | 6,459 | py | Python | Chapter_8/ch08_ex1.py | appleDev20/Python-Essentials | 5b36560ff3501ce4e52c70d516ed56c6641b0ddc | [
"MIT"
] | null | null | null | Chapter_8/ch08_ex1.py | appleDev20/Python-Essentials | 5b36560ff3501ce4e52c70d516ed56c6641b0ddc | [
"MIT"
] | null | null | null | Chapter_8/ch08_ex1.py | appleDev20/Python-Essentials | 5b36560ff3501ce4e52c70d516ed56c6641b0ddc | [
"MIT"
] | 4 | 2019-05-13T01:26:10.000Z | 2021-09-02T11:15:29.000Z | #!/usr/bin/env python3
"""Python Essentials
Chapter 8, Example Set 1
Note that there are a several platform-specific examples in here which
may not work precisely as shown.
Most floating-point math should be wrapped in ``round( , 4)`` to be
completely platform-neutral.
"""
generators= """
>>> (2*x+1 for x in range(... | 31.661765 | 483 | 0.55442 | 1,006 | 6,459 | 3.517893 | 0.263419 | 0.023736 | 0.013563 | 0.018649 | 0.20486 | 0.183385 | 0.172365 | 0.168409 | 0.143261 | 0.143261 | 0 | 0.114199 | 0.186561 | 6,459 | 204 | 484 | 31.661765 | 0.55748 | 0.116736 | 0 | 0.229167 | 0 | 0.166667 | 0.812881 | 0.025296 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020833 | false | 0 | 0.041667 | 0 | 0.076389 | 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 |
6f926f62698d2aa5aa82d99657fc4ba6e39aced9 | 463 | py | Python | committees/migrations/0006_committee_formation_type.py | meagles/site | c54a61a0e9e98788086d0d9300baebbcac7fb625 | [
"MIT"
] | 4 | 2021-08-16T23:42:50.000Z | 2022-01-09T23:59:23.000Z | committees/migrations/0006_committee_formation_type.py | meagles/site | c54a61a0e9e98788086d0d9300baebbcac7fb625 | [
"MIT"
] | 29 | 2020-12-30T20:43:48.000Z | 2022-03-23T01:57:32.000Z | committees/migrations/0006_committee_formation_type.py | meagles/site | c54a61a0e9e98788086d0d9300baebbcac7fb625 | [
"MIT"
] | 2 | 2021-08-20T01:18:07.000Z | 2021-12-02T21:38:55.000Z | # Generated by Django 3.0.5 on 2020-04-12 23:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('committees', '0005_auto_20200412_1728'),
]
operations = [
migrations.AddField(
model_name='committee',
name='formati... | 24.368421 | 115 | 0.606911 | 51 | 463 | 5.392157 | 0.862745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092486 | 0.2527 | 463 | 18 | 116 | 25.722222 | 0.702312 | 0.097192 | 0 | 0 | 1 | 0 | 0.194712 | 0.055288 | 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 |
6f9530460df3a0bd5bdacf5968832774f6e98e4a | 9,954 | py | Python | intersight/models/ucsd_connector_pack_all_of.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 21 | 2018-03-29T14:20:35.000Z | 2021-10-13T05:11:41.000Z | intersight/models/ucsd_connector_pack_all_of.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 14 | 2018-01-30T15:45:46.000Z | 2022-02-23T14:23:21.000Z | intersight/models/ucsd_connector_pack_all_of.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 18 | 2018-01-03T15:09:56.000Z | 2021-07-16T02:21:54.000Z | # coding: utf-8
"""
Cisco Intersight
Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environmen... | 34.089041 | 1,052 | 0.631304 | 1,112 | 9,954 | 5.539568 | 0.186151 | 0.044156 | 0.127273 | 0.109091 | 0.455682 | 0.385714 | 0.371104 | 0.31526 | 0.250974 | 0.175162 | 0 | 0.016645 | 0.293852 | 9,954 | 291 | 1,053 | 34.206186 | 0.859724 | 0.44997 | 0 | 0.069231 | 0 | 0 | 0.059598 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.030769 | 0 | 0.315385 | 0.015385 | 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 |
6f965f47c8c2e2c90c33944d0772c73fd38ee5bb | 14,627 | py | Python | python/taichi/_funcs.py | Bl00per72/taichi | fe0ae9afa03f2008534e9b698491be740021d7a7 | [
"MIT"
] | 1 | 2022-02-07T06:34:03.000Z | 2022-02-07T06:34:03.000Z | python/taichi/_funcs.py | Bl00per72/taichi | fe0ae9afa03f2008534e9b698491be740021d7a7 | [
"MIT"
] | null | null | null | python/taichi/_funcs.py | Bl00per72/taichi | fe0ae9afa03f2008534e9b698491be740021d7a7 | [
"MIT"
] | null | null | null | import math
from taichi.lang import impl, matrix, ops
from taichi.lang.impl import expr_init, get_runtime, static
from taichi.lang.kernel_impl import func, pyfunc
from taichi.lang.matrix import Matrix, Vector
from taichi.types import f32, f64
@func
def _randn(dt):
'''
Generates a random number from standard ... | 34.416471 | 233 | 0.60696 | 2,225 | 14,627 | 3.946966 | 0.111011 | 0.009565 | 0.005124 | 0.042359 | 0.760533 | 0.712138 | 0.647461 | 0.587793 | 0.568549 | 0.533364 | 0 | 0.043999 | 0.257264 | 14,627 | 424 | 234 | 34.497642 | 0.764359 | 0.460108 | 0 | 0.278846 | 0 | 0 | 0.041968 | 0 | 0 | 0 | 0 | 0 | 0.033654 | 1 | 0.086538 | false | 0 | 0.028846 | 0.009615 | 0.211538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6fa3f3c5f7b396f9007b8ea9b92e56bd50808f98 | 2,313 | py | Python | data/tmdb/query_tmdb.py | shaojintian/search-engine | 88913c990499d1e25f8b7ad0312d064f16222000 | [
"MIT"
] | 2 | 2020-02-17T10:38:52.000Z | 2021-04-08T06:04:21.000Z | data/tmdb/query_tmdb.py | shaojintian/search-engine | 88913c990499d1e25f8b7ad0312d064f16222000 | [
"MIT"
] | 16 | 2020-03-05T00:22:51.000Z | 2022-02-27T12:06:11.000Z | data/tmdb/query_tmdb.py | shaojintian/search-engine | 88913c990499d1e25f8b7ad0312d064f16222000 | [
"MIT"
] | null | null | null | import requests
import json
import os
import sys
indexName ="tmdb"
queryFolder ="./query"
headers={"Content-Type":"application/json","Accept":"application/json"}
def search(query, printHighlight):
print query
url = "http://localhost:9200/%s/_search" %indexName
resp = requests.get(url,headers=headers,data=... | 37.306452 | 118 | 0.554259 | 294 | 2,313 | 4.312925 | 0.343537 | 0.012618 | 0.037855 | 0.025237 | 0.119874 | 0.119874 | 0.119874 | 0.119874 | 0.119874 | 0.119874 | 0 | 0.035616 | 0.210981 | 2,313 | 61 | 119 | 37.918033 | 0.659178 | 0 | 0 | 0 | 0 | 0.036364 | 0.299179 | 0.054907 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.072727 | null | null | 0.236364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6fa511c4893f982eb72d725b915392ad38040659 | 737 | py | Python | GoProDeleteAll.py | robdobsn/GoProTimelapse | 87522bc8d6f01dbd0a65e2747498f8da2c65060d | [
"MIT"
] | 6 | 2017-04-06T05:28:49.000Z | 2021-03-03T04:09:52.000Z | GoProDeleteAll.py | robdobsn/GoProTimelapse | 87522bc8d6f01dbd0a65e2747498f8da2c65060d | [
"MIT"
] | null | null | null | GoProDeleteAll.py | robdobsn/GoProTimelapse | 87522bc8d6f01dbd0a65e2747498f8da2c65060d | [
"MIT"
] | 1 | 2017-11-03T15:22:51.000Z | 2017-11-03T15:22:51.000Z | from GoProCamera import GoProCamera
import time, datetime
import configparser
import logging
# Logging
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(message)s')
# Get config
config = configparser.ConfigParser()
config.read("config.ini")
cameraPassword = config["Camera"]["Password"]
jpegFolder = "/DC... | 24.566667 | 74 | 0.716418 | 93 | 737 | 5.677419 | 0.55914 | 0.064394 | 0.075758 | 0.113636 | 0.231061 | 0.231061 | 0.231061 | 0.231061 | 0.231061 | 0.231061 | 0 | 0.021875 | 0.131615 | 737 | 29 | 75 | 25.413793 | 0.803125 | 0.024423 | 0 | 0.190476 | 0 | 0 | 0.217877 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.095238 | 0.190476 | 0 | 0.190476 | 0.190476 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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.