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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1380169dd4cd836be3480150ff1ffe465adb19ff | 623 | py | Python | libsaas/services/pipedrive/files.py | MidtownFellowship/libsaas | 541bb731b996b08ede1d91a235cb82895765c38a | [
"MIT"
] | 155 | 2015-01-27T15:17:59.000Z | 2022-02-20T00:14:08.000Z | libsaas/services/pipedrive/files.py | MidtownFellowship/libsaas | 541bb731b996b08ede1d91a235cb82895765c38a | [
"MIT"
] | 14 | 2015-01-12T08:22:37.000Z | 2021-06-16T19:49:31.000Z | libsaas/services/pipedrive/files.py | MidtownFellowship/libsaas | 541bb731b996b08ede1d91a235cb82895765c38a | [
"MIT"
] | 43 | 2015-01-28T22:41:45.000Z | 2021-09-21T04:44:26.000Z | from libsaas import http, parsers
from libsaas.services import base
class FilesResource(base.RESTResource):
path = 'files'
def create(self, *args, **kwargs):
raise base.MethodNotSupported()
class Files(FilesResource):
@base.apimethod
def get(self, start=None, limit=None):
"""
... | 21.482759 | 78 | 0.658106 | 71 | 623 | 5.732394 | 0.633803 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002083 | 0.229535 | 623 | 28 | 79 | 22.25 | 0.845833 | 0.166934 | 0 | 0 | 0 | 0 | 0.016701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0.153846 | 0 | 0.692308 | 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 | 1 | 0 | 0 | 2 |
13802b37a97e1f3415215ee44f2fefb7f63bbcfb | 7,174 | py | Python | app/user/tests/test_user_api.py | datilp/recipe-app-api | c62e3c3429b10b354b741d491d90b8297b393a95 | [
"MIT"
] | null | null | null | app/user/tests/test_user_api.py | datilp/recipe-app-api | c62e3c3429b10b354b741d491d90b8297b393a95 | [
"MIT"
] | null | null | null | app/user/tests/test_user_api.py | datilp/recipe-app-api | c62e3c3429b10b354b741d491d90b8297b393a95 | [
"MIT"
] | null | null | null | from django.test import TestCase
from django.contrib.auth import get_user_model
from django.urls import reverse # generates API URL
from rest_framework.test import APIClient # test client
from rest_framework import status # module containing status codes in
# humanreadible strings
CREATE_USER_URL = reverse('u... | 40.761364 | 78 | 0.669222 | 959 | 7,174 | 4.879041 | 0.220021 | 0.029921 | 0.046164 | 0.056422 | 0.285531 | 0.262877 | 0.248344 | 0.197692 | 0.184441 | 0.163924 | 0 | 0.00678 | 0.239336 | 7,174 | 175 | 79 | 40.994286 | 0.850651 | 0.351268 | 0 | 0.326087 | 1 | 0 | 0.107638 | 0.043804 | 0 | 0 | 0 | 0 | 0.228261 | 1 | 0.152174 | false | 0.152174 | 0.054348 | 0 | 0.23913 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
1385bcba889ca778cf2d8c9f42d0168864ae98f4 | 4,089 | py | Python | lib_Partage_BSS/models/COS.py | DSI-Universite-Rennes2/libPythonBssApi | 80477806238f0e98cc962ed0f346660a3f2bfbaf | [
"Apache-2.0"
] | 3 | 2018-05-02T09:37:29.000Z | 2022-02-09T07:58:09.000Z | lib_Partage_BSS/models/COS.py | DSI-Universite-Rennes2/libPythonBssApi | 80477806238f0e98cc962ed0f346660a3f2bfbaf | [
"Apache-2.0"
] | 12 | 2018-05-14T13:17:28.000Z | 2022-03-29T08:21:06.000Z | lib_Partage_BSS/models/COS.py | DSI-Universite-Rennes2/libPythonBssApi | 80477806238f0e98cc962ed0f346660a3f2bfbaf | [
"Apache-2.0"
] | 7 | 2018-05-02T09:38:15.000Z | 2022-02-09T13:03:01.000Z | # -*-coding:utf-8 -*
import json
from lib_Partage_BSS import utils
from lib_Partage_BSS.exceptions.NameException import NameException
from lib_Partage_BSS.models.GlobalModel import GlobalModel
class COS(GlobalModel):
"""
Classe représentant une classe de service dans Partage
:ivar _zimbraDumpsterEnabled... | 51.759494 | 165 | 0.747126 | 213 | 4,089 | 14.075117 | 0.422535 | 0.007005 | 0.014009 | 0.017011 | 0.015344 | 0.015344 | 0 | 0 | 0 | 0 | 0 | 0.001457 | 0.16092 | 4,089 | 78 | 166 | 52.423077 | 0.87234 | 0.461237 | 0 | 0 | 0 | 0 | 0.577381 | 0.543155 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0.043478 | 0.217391 | 0 | 0.347826 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
138f48aa27552779ba86d09691b257ebf2973ae1 | 396 | py | Python | tests/test_vector.py | ashbellett/linear-algebra | 8f0acff9905b2cc2535961ef4e6d87120372d997 | [
"MIT"
] | null | null | null | tests/test_vector.py | ashbellett/linear-algebra | 8f0acff9905b2cc2535961ef4e6d87120372d997 | [
"MIT"
] | null | null | null | tests/test_vector.py | ashbellett/linear-algebra | 8f0acff9905b2cc2535961ef4e6d87120372d997 | [
"MIT"
] | null | null | null | from unittest import TestCase
from linear_algebra.vector import Vector
from tests.data.vector import vector_data, vector_shape
class TestVector(TestCase):
def setUp(self) -> None:
self.vector = Vector(vector_data)
def test_data(self):
self.assertEqual(self.vector.data, vector_data)
def ... | 24.75 | 57 | 0.734848 | 53 | 396 | 5.339623 | 0.339623 | 0.141343 | 0.127208 | 0.120141 | 0.204947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179293 | 396 | 15 | 58 | 26.4 | 0.870769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.3 | false | 0 | 0.3 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
13a673bd26123e786d5e2459bf91775063151526 | 9,861 | py | Python | qcfractal/storage_sockets/models.py | ChayaSt/QCFractal | 2d3c737b0e755d6e5bac743a0beb0714b5a92d0b | [
"BSD-3-Clause"
] | null | null | null | qcfractal/storage_sockets/models.py | ChayaSt/QCFractal | 2d3c737b0e755d6e5bac743a0beb0714b5a92d0b | [
"BSD-3-Clause"
] | null | null | null | qcfractal/storage_sockets/models.py | ChayaSt/QCFractal | 2d3c737b0e755d6e5bac743a0beb0714b5a92d0b | [
"BSD-3-Clause"
] | null | null | null | import mongoengine as db
import datetime
import bson
class Collection(db.DynamicDocument):
"""
A collection of precomuted workflows such as datasets, ..
This is a dynamic document, so it will accept any number of
extra fields (expandable and uncontrolled schema)
"""
collection = ... | 30.248466 | 131 | 0.563939 | 963 | 9,861 | 5.714434 | 0.298027 | 0.061421 | 0.045793 | 0.054516 | 0.204434 | 0.124841 | 0.091223 | 0.082137 | 0.041795 | 0.021806 | 0 | 0.004903 | 0.255451 | 9,861 | 326 | 132 | 30.248466 | 0.74462 | 0.400466 | 0 | 0.236842 | 0 | 0 | 0.099123 | 0 | 0 | 0 | 0 | 0.018405 | 0 | 1 | 0.052632 | false | 0.006579 | 0.019737 | 0.013158 | 0.585526 | 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 | 1 | 0 | 0 | 2 |
13b1845967f7999e939bdb4c09de2b882ef97ab3 | 81,567 | py | Python | colour/colorimetry/datasets/lefs.py | rift-labs-developer/colour | 15112dbe824aab0f21447e0db4a046a28a06f43a | [
"BSD-3-Clause"
] | 1,380 | 2015-01-10T12:30:33.000Z | 2022-03-30T10:19:57.000Z | colour/colorimetry/datasets/lefs.py | rift-labs-developer/colour | 15112dbe824aab0f21447e0db4a046a28a06f43a | [
"BSD-3-Clause"
] | 638 | 2015-01-02T10:49:05.000Z | 2022-03-29T10:16:22.000Z | colour/colorimetry/datasets/lefs.py | rift-labs-developer/colour | 15112dbe824aab0f21447e0db4a046a28a06f43a | [
"BSD-3-Clause"
] | 250 | 2015-01-21T15:27:19.000Z | 2022-03-30T10:23:58.000Z | # -*- coding: utf-8 -*-
"""
Spectral Distributions of the Luminous Efficiency Functions
===========================================================
Defines the spectral distributions of the luminous efficiency functions.
The luminous efficiency data is in the form of a *dict* of
:class:`colour.SpectralDistribution` c... | 28.049175 | 79 | 0.529258 | 9,774 | 81,567 | 4.403724 | 0.335789 | 0.016356 | 0.012825 | 0.010408 | 0.086288 | 0.078179 | 0.071883 | 0.05785 | 0.04024 | 0.029762 | 0 | 0.703704 | 0.351662 | 81,567 | 2,907 | 80 | 28.058824 | 0.110206 | 0.021982 | 0 | 0.025361 | 0 | 0 | 0.042553 | 0.001708 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.001057 | 0 | 0.001057 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
13df751fac00fc613f7ff03cc49c9dc770eb4017 | 436 | py | Python | qsystem/appointments/models.py | afoone/django-booking | 939029c246772a4886063d6ce44d90061613f176 | [
"MIT"
] | null | null | null | qsystem/appointments/models.py | afoone/django-booking | 939029c246772a4886063d6ce44d90061613f176 | [
"MIT"
] | null | null | null | qsystem/appointments/models.py | afoone/django-booking | 939029c246772a4886063d6ce44d90061613f176 | [
"MIT"
] | null | null | null | from django.db import models
from swingtime.models import Occurrence
# Create your models here.
class Appointment(models.Model):
dni = models.CharField(max_length = 16)
email = models.EmailField()
occurrence = models.ManyToManyField(Occurrence)
# class Meta:
# verbose_name = _('appointment')
... | 27.25 | 51 | 0.68578 | 48 | 436 | 6.020833 | 0.625 | 0.076125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005831 | 0.213303 | 436 | 16 | 52 | 27.25 | 0.836735 | 0.247706 | 0 | 0 | 0 | 0 | 0.003086 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0.125 | 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 | 1 | 1 | 0 | 0 | 2 |
13e84709c48488690f81874e4ff8d6064079a47f | 841 | py | Python | app/mod_invoice/models.py | speduardo/flask-boilerplate | d50d8d0f15a08c4905a2029b0ae9637489624c9a | [
"MIT"
] | 1 | 2020-05-26T01:53:58.000Z | 2020-05-26T01:53:58.000Z | app/mod_invoice/models.py | speduardo/flask-boilerplate | d50d8d0f15a08c4905a2029b0ae9637489624c9a | [
"MIT"
] | null | null | null | app/mod_invoice/models.py | speduardo/flask-boilerplate | d50d8d0f15a08c4905a2029b0ae9637489624c9a | [
"MIT"
] | null | null | null | #from app.database import db, ma
#class Base(db.Model):
# __abstract__ = True
# id = db.Column(db.Integer, primary_key=True, autoincrement=True)
#class Order(Base):
# """
# Create as Order table
# """
# __tablename__ = 'order'
# number = db.Column(db.String(20))
# date = db.Column(db.Dat... | 19.113636 | 69 | 0.629013 | 101 | 841 | 5.089109 | 0.415842 | 0.108949 | 0.136187 | 0.099222 | 0.178988 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012158 | 0.217598 | 841 | 43 | 70 | 19.55814 | 0.768997 | 0.916766 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
13e88cebdd5e07108940a83dca0d9c07980132e5 | 4,915 | py | Python | profiles/forms.py | shifat151/heartarcade | 887601bf9774dbbc0dcee9618c3a6e4a59f38717 | [
"MIT"
] | null | null | null | profiles/forms.py | shifat151/heartarcade | 887601bf9774dbbc0dcee9618c3a6e4a59f38717 | [
"MIT"
] | 7 | 2021-02-13T16:45:37.000Z | 2021-08-31T09:26:10.000Z | profiles/forms.py | shifat151/heartarcade | 887601bf9774dbbc0dcee9618c3a6e4a59f38717 | [
"MIT"
] | null | null | null | from django import forms
from registration.models import User
class UsernameChangeForm(forms.Form):
error_messages = {
# 'email_mismatch': "The two e-mail address fields do not match.",
# 'email_inuse': "This e-mail address cannot be used. Please select a different e-mail address.",
'use... | 39.637097 | 110 | 0.659003 | 581 | 4,915 | 5.394148 | 0.201377 | 0.052648 | 0.052648 | 0.034461 | 0.713784 | 0.700383 | 0.648054 | 0.622527 | 0.597001 | 0.542757 | 0 | 0.008253 | 0.235809 | 4,915 | 124 | 111 | 39.637097 | 0.826145 | 0.255137 | 0 | 0.646154 | 0 | 0 | 0.202411 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.138462 | false | 0.123077 | 0.030769 | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
13f37a71bcc3106cd69e4ae7d3db3ee7003c26f6 | 1,425 | py | Python | tests/fixtures.py | xtelligent/xtelligent-serial | 259bcd7d2399d0272aa328f9b22b1681aa1ed989 | [
"MIT"
] | null | null | null | tests/fixtures.py | xtelligent/xtelligent-serial | 259bcd7d2399d0272aa328f9b22b1681aa1ed989 | [
"MIT"
] | null | null | null | tests/fixtures.py | xtelligent/xtelligent-serial | 259bcd7d2399d0272aa328f9b22b1681aa1ed989 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
import pytest
from xtelligent_serial import (deserializer, serializer,
serialization, SequenceOf)
from xtelligent_serial.json import to_json
@serialization
class Boo:
def __init__(self, x):
self.root = x
@property
def y(self):
... | 16.011236 | 65 | 0.618246 | 176 | 1,425 | 4.840909 | 0.318182 | 0.08216 | 0.046948 | 0.028169 | 0.122066 | 0.122066 | 0.122066 | 0.122066 | 0.122066 | 0.122066 | 0 | 0.013146 | 0.252632 | 1,425 | 88 | 66 | 16.193182 | 0.786854 | 0.019649 | 0 | 0.311475 | 0 | 0 | 0.050179 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163934 | false | 0 | 0.065574 | 0.114754 | 0.57377 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
b912da3827601d0dac245b64abf2cf376adc93ec | 2,160 | py | Python | structures_de_donnees/arbre/arbre.py | yostane/python-paradigmes-et-structures-de-donnees | d017094f58240d2457040bb0d1f24c61db96c479 | [
"MIT"
] | null | null | null | structures_de_donnees/arbre/arbre.py | yostane/python-paradigmes-et-structures-de-donnees | d017094f58240d2457040bb0d1f24c61db96c479 | [
"MIT"
] | null | null | null | structures_de_donnees/arbre/arbre.py | yostane/python-paradigmes-et-structures-de-donnees | d017094f58240d2457040bb0d1f24c61db96c479 | [
"MIT"
] | null | null | null | """Arbre binaire - Application"""
# Fonctions utilitaires
# fonction 'arbre_binaire(r)' : construit un arbre sous forme de liste qui contient un noeud racine avec 2 sous-arbres vides (valeur à None)
def arbre_binaire(r):
return [r, [None], [None]]
# fonction 'change_racine(arbre, valeur)' : change l... | 29.589041 | 144 | 0.683333 | 303 | 2,160 | 4.732673 | 0.247525 | 0.125523 | 0.083682 | 0.083682 | 0.421199 | 0.269177 | 0.269177 | 0.269177 | 0.269177 | 0.202232 | 0 | 0.00934 | 0.206944 | 2,160 | 72 | 145 | 30 | 0.827788 | 0.451389 | 0 | 0.314286 | 0 | 0 | 0.032817 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.257143 | false | 0 | 0 | 0.114286 | 0.457143 | 0.114286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 2 |
b916b9d5e3a55c9e706c4144f010f46c0f626698 | 34,019 | py | Python | Framework/LanguageSupport/thrift/gen-py/MMIStandard/avatar/ttypes.py | FG-92/MOSIM_Core | abc32fd0d2213859b11b6d41193d5d7f760e4104 | [
"MIT"
] | 19 | 2020-11-30T09:29:11.000Z | 2021-12-10T06:10:11.000Z | Framework/LanguageSupport/thrift/gen-py/MMIStandard/avatar/ttypes.py | FG-92/MOSIM_Core | abc32fd0d2213859b11b6d41193d5d7f760e4104 | [
"MIT"
] | null | null | null | Framework/LanguageSupport/thrift/gen-py/MMIStandard/avatar/ttypes.py | FG-92/MOSIM_Core | abc32fd0d2213859b11b6d41193d5d7f760e4104 | [
"MIT"
] | 6 | 2021-01-20T01:46:37.000Z | 2021-09-28T10:22:14.000Z | #
# Autogenerated by Thrift Compiler (0.13.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py
#
from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
from thrift.protocol.TProtocol import TProtocolException
from thrift.TRecursive impo... | 35.436458 | 134 | 0.558835 | 3,424 | 34,019 | 5.409755 | 0.103096 | 0.012417 | 0.022351 | 0.013605 | 0.725153 | 0.675323 | 0.634832 | 0.613669 | 0.606489 | 0.602116 | 0 | 0.036688 | 0.330168 | 34,019 | 959 | 135 | 35.47341 | 0.776188 | 0.015433 | 0 | 0.45367 | 1 | 0 | 0.09133 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050542 | false | 0 | 0.00722 | 0.01444 | 0.212996 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b919d1643c792dea73bd5fc2545638b22f43cba3 | 164 | py | Python | main.py | Martlark/compose-explorer | f0c6d24568e16596c99b6c6a4725fd77166f4c15 | [
"CC-BY-3.0"
] | 1 | 2021-08-22T01:59:02.000Z | 2021-08-22T01:59:02.000Z | main.py | Martlark/docker-explorer | f0c6d24568e16596c99b6c6a4725fd77166f4c15 | [
"CC-BY-3.0"
] | null | null | null | main.py | Martlark/docker-explorer | f0c6d24568e16596c99b6c6a4725fd77166f4c15 | [
"CC-BY-3.0"
] | null | null | null | # WSGI start script for gunicorn in docker
# usage: gunicorn -c gunicorn_conf.py main:app --threads 2 -b 0.0.0.0:80
from app import create_app
app = create_app()
| 23.428571 | 72 | 0.737805 | 31 | 164 | 3.806452 | 0.677419 | 0.050847 | 0.050847 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051095 | 0.164634 | 164 | 6 | 73 | 27.333333 | 0.810219 | 0.676829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
b91a39b48154504e119d96855f794b0ab41876ba | 766 | py | Python | alipay/aop/api/response/AlipayOpenAppYufanlingsanyaowuYufalingsanyaowuQueryResponse.py | snowxmas/alipay-sdk-python-all | 96870ced60facd96c5bce18d19371720cbda3317 | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/response/AlipayOpenAppYufanlingsanyaowuYufalingsanyaowuQueryResponse.py | snowxmas/alipay-sdk-python-all | 96870ced60facd96c5bce18d19371720cbda3317 | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/response/AlipayOpenAppYufanlingsanyaowuYufalingsanyaowuQueryResponse.py | snowxmas/alipay-sdk-python-all | 96870ced60facd96c5bce18d19371720cbda3317 | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayOpenAppYufanlingsanyaowuYufalingsanyaowuQueryResponse(AlipayResponse):
def __init__(self):
super(AlipayOpenAppYufanlingsanyaowuYufalingsanyaowuQueryResponse, self).__in... | 29.461538 | 132 | 0.733681 | 70 | 766 | 7.785714 | 0.442857 | 0.073395 | 0.249541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001595 | 0.181462 | 766 | 25 | 133 | 30.64 | 0.867624 | 0.05483 | 0 | 0 | 0 | 0 | 0.016621 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.0625 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b91d1699af09300a9fe5e488f576cbe0df0d0e97 | 842 | py | Python | n00bCTF2017/xorfun/script.py | AngryCder/CTF | d2744dc72e8604ac2116b3b08d520615271935f9 | [
"MIT"
] | null | null | null | n00bCTF2017/xorfun/script.py | AngryCder/CTF | d2744dc72e8604ac2116b3b08d520615271935f9 | [
"MIT"
] | null | null | null | n00bCTF2017/xorfun/script.py | AngryCder/CTF | d2744dc72e8604ac2116b3b08d520615271935f9 | [
"MIT"
] | null | null | null | a =[72,73,75,84,85,87,104,105,107,116,117,119]
b =[97,98,99,100,101,102,103]
c =[97,98,99,100,101,103,106]
d =[65,72,74,75,77,79,90,97,104,106,107,109,111,122]
e =[66,67,78,79,84,85,88,89,98,99,110,111,116,117,120,121]
f =[104,105,106,107,108,109,110,111]
g =[112,113,114,117,118,119]
res = [bytearray([a1, b1, ... | 35.083333 | 132 | 0.599762 | 196 | 842 | 2.566327 | 0.55102 | 0.023857 | 0.023857 | 0.035785 | 0.047714 | 0 | 0 | 0 | 0 | 0 | 0 | 0.381232 | 0.190024 | 842 | 23 | 133 | 36.608696 | 0.356305 | 0 | 0 | 0 | 0 | 0 | 0.014652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0 | 0 | 0.1 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
b9201c4fd74cc7e4f37d97920be443ced062c8a1 | 781 | py | Python | app/admin.py | VamsiSangam/Ishihara | 6e7b431ac1000b7e539fdb6bd9579e67a51e54a8 | [
"MIT"
] | null | null | null | app/admin.py | VamsiSangam/Ishihara | 6e7b431ac1000b7e539fdb6bd9579e67a51e54a8 | [
"MIT"
] | null | null | null | app/admin.py | VamsiSangam/Ishihara | 6e7b431ac1000b7e539fdb6bd9579e67a51e54a8 | [
"MIT"
] | 1 | 2019-12-05T08:46:16.000Z | 2019-12-05T08:46:16.000Z | from django.contrib import admin
from app.models import *
# Register your models here.
class VisionCaseAdmin(admin.ModelAdmin):
list_display = ('title',)
search_fields = ['title']
class QuestionAdmin(admin.ModelAdmin):
list_display = ('text', 'image',)
search_fields = ['text', 'image']
class OptionAd... | 31.24 | 50 | 0.711908 | 85 | 781 | 6.435294 | 0.364706 | 0.109689 | 0.13894 | 0.190128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139565 | 781 | 25 | 51 | 31.24 | 0.813988 | 0.033291 | 0 | 0 | 0 | 0 | 0.129973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.789474 | 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 | 1 | 0 | 0 | 2 |
b9296a3019cdf1cecb1b6f12ef9e295283595d74 | 1,852 | py | Python | tests/test_env.py | ppanero/docker-services-cli | 12a7f9a10220664caf3f9738887a36a5b390efe8 | [
"MIT"
] | null | null | null | tests/test_env.py | ppanero/docker-services-cli | 12a7f9a10220664caf3f9738887a36a5b390efe8 | [
"MIT"
] | null | null | null | tests/test_env.py | ppanero/docker-services-cli | 12a7f9a10220664caf3f9738887a36a5b390efe8 | [
"MIT"
] | 1 | 2020-08-24T08:34:13.000Z | 2020-08-24T08:34:13.000Z | # -*- coding: utf-8 -*-
#
# Copyright (C) 2020 CERN.
#
# Docker-Services-CLI is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see LICENSE file for more
# details.
"""Module tests."""
import os
import pytest
from docker_services_cli.env import _is_version, _load_or_set... | 28.492308 | 73 | 0.713283 | 293 | 1,852 | 4.177474 | 0.25256 | 0.194444 | 0.205882 | 0.078431 | 0.589052 | 0.491013 | 0.337418 | 0.337418 | 0.30719 | 0.30719 | 0 | 0.03135 | 0.156048 | 1,852 | 64 | 74 | 28.9375 | 0.751759 | 0.215443 | 0 | 0.322581 | 0 | 0 | 0.325827 | 0.059113 | 0 | 0 | 0 | 0 | 0.290323 | 1 | 0.16129 | true | 0 | 0.096774 | 0 | 0.258065 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b93585362e162eecf3821cffed3e3d6e876d6153 | 756 | py | Python | show.py | ZMBailey/abstract_oo_example | 8ef90a6f06cc24f9e7b3dc11a4afd17281bdeba5 | [
"MIT"
] | 1 | 2019-05-14T20:26:53.000Z | 2019-05-14T20:26:53.000Z | show.py | ZMBailey/abstract_oo_example | 8ef90a6f06cc24f9e7b3dc11a4afd17281bdeba5 | [
"MIT"
] | null | null | null | show.py | ZMBailey/abstract_oo_example | 8ef90a6f06cc24f9e7b3dc11a4afd17281bdeba5 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
class Show(ABC):
def __init__(self):
self.cast = []
self.add_performers()
def add_performers(self):
for _ in range(4):
self.cast.append(self.get_performer())
@abstractmethod
def get_performer(self... | 16.085106 | 54 | 0.547619 | 81 | 756 | 4.975309 | 0.382716 | 0.119107 | 0.111663 | 0.141439 | 0.282878 | 0.143921 | 0 | 0 | 0 | 0 | 0 | 0.002041 | 0.351852 | 756 | 46 | 55 | 16.434783 | 0.820408 | 0 | 0 | 0.307692 | 0 | 0 | 0.035762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0.076923 | 0.038462 | 0.076923 | 0.653846 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
b9400f5c9c12bd5ff1b8a6ae5b1c54affce230f3 | 146 | py | Python | simp_py_examples/course/SM1801/t017.py | kcfkwok2003/Simp_py | f75e66da01b45dc8688dda602f8b33d4258f0c31 | [
"MIT"
] | null | null | null | simp_py_examples/course/SM1801/t017.py | kcfkwok2003/Simp_py | f75e66da01b45dc8688dda602f8b33d4258f0c31 | [
"MIT"
] | null | null | null | simp_py_examples/course/SM1801/t017.py | kcfkwok2003/Simp_py | f75e66da01b45dc8688dda602f8b33d4258f0c31 | [
"MIT"
] | null | null | null | # t017.py
import time
from simp_py import lcd
from rtc import RTC
x=RTC()
while True:
s=x.now()
lcd.text(0,100,s)
time.sleep(1)
| 12.166667 | 23 | 0.630137 | 28 | 146 | 3.25 | 0.642857 | 0.175824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072727 | 0.246575 | 146 | 11 | 24 | 13.272727 | 0.754545 | 0.047945 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
b9466e25bf5bd36c509db32d2b9fef6492194113 | 387 | py | Python | asynction/utils.py | skytotwo/asynction | e060d0e488b4adb67b8d0bc89b65d905dea9c841 | [
"MIT"
] | 1 | 2022-03-29T12:37:43.000Z | 2022-03-29T12:37:43.000Z | asynction/utils.py | skytotwo/asynction | e060d0e488b4adb67b8d0bc89b65d905dea9c841 | [
"MIT"
] | null | null | null | asynction/utils.py | skytotwo/asynction | e060d0e488b4adb67b8d0bc89b65d905dea9c841 | [
"MIT"
] | null | null | null | from importlib import import_module
from typing import Callable
from typing import TypeVar
def load_handler(handler_id: str) -> Callable:
*module_path_elements, object_name = handler_id.split(".")
module = import_module(".".join(module_path_elements))
return getattr(module, object_name)
T = TypeVar("T"... | 24.1875 | 62 | 0.731266 | 52 | 387 | 5.230769 | 0.442308 | 0.088235 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142119 | 387 | 15 | 63 | 25.8 | 0.819277 | 0 | 0 | 0 | 0 | 0 | 0.007752 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
b9472e9ec23ff1be74524d6e538a22f148c8e88a | 833 | py | Python | csdl/examples/valid/ex_einsum_old_reorder_matrix_sparse.py | LSDOlab/csdl | 04c2c5764f6ca9b865ec87ecfeaf6f22ecacc5a3 | [
"MIT"
] | null | null | null | csdl/examples/valid/ex_einsum_old_reorder_matrix_sparse.py | LSDOlab/csdl | 04c2c5764f6ca9b865ec87ecfeaf6f22ecacc5a3 | [
"MIT"
] | null | null | null | csdl/examples/valid/ex_einsum_old_reorder_matrix_sparse.py | LSDOlab/csdl | 04c2c5764f6ca9b865ec87ecfeaf6f22ecacc5a3 | [
"MIT"
] | 1 | 2021-10-04T19:40:32.000Z | 2021-10-04T19:40:32.000Z | def example(Simulator):
import numpy as np
from csdl import Model
import csdl
class ExampleReorderMatrixSparse(Model):
def define(self):
shape2 = (5, 4)
b = np.arange(20).reshape(shape2)
mat = self.declare_variable('b', val=b)
s... | 26.870968 | 86 | 0.542617 | 83 | 833 | 5.26506 | 0.493976 | 0.128146 | 0.183066 | 0.237986 | 0.132723 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0.351741 | 833 | 31 | 87 | 26.870968 | 0.790741 | 0 | 0 | 0 | 0 | 0 | 0.158273 | 0.139089 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.130435 | 0 | 0.304348 | 0.173913 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
b94f3369738adda103b589431b4f6ad85a878661 | 234 | py | Python | Polymorphism_and_Magic_Methods/non_zip_files/01_execute.py | MNikov/Python-OOP-October-2020 | a53e4555758ec810605e31e7b2c71b65c49b2332 | [
"MIT"
] | null | null | null | Polymorphism_and_Magic_Methods/non_zip_files/01_execute.py | MNikov/Python-OOP-October-2020 | a53e4555758ec810605e31e7b2c71b65c49b2332 | [
"MIT"
] | null | null | null | Polymorphism_and_Magic_Methods/non_zip_files/01_execute.py | MNikov/Python-OOP-October-2020 | a53e4555758ec810605e31e7b2c71b65c49b2332 | [
"MIT"
] | null | null | null | def execute(fn, *args):
return fn(*args)
def say_hello(name, my_name):
print(f"Hello, {name}, I am {my_name}")
def say_bye(name):
print(f"Bye, {name}")
execute(say_hello, "Peter", "George")
execute(say_bye, "Peter")
| 15.6 | 43 | 0.636752 | 38 | 234 | 3.763158 | 0.421053 | 0.083916 | 0.13986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17094 | 234 | 14 | 44 | 16.714286 | 0.737113 | 0 | 0 | 0 | 0 | 0 | 0.239316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0 | 0.125 | 0.5 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
b97c104a29d3982647749a552af93e25a9b2fd34 | 406 | py | Python | kryptobot/workers/learner/tasks.py | eristoddle/Kryptobot | d0c3050a1c924125810946530670c19b2de72d3f | [
"Apache-2.0"
] | 24 | 2018-05-29T13:44:36.000Z | 2022-03-12T20:41:45.000Z | kryptobot/workers/learner/tasks.py | eristoddle/Kryptobot | d0c3050a1c924125810946530670c19b2de72d3f | [
"Apache-2.0"
] | 23 | 2018-07-08T02:31:18.000Z | 2020-06-02T04:07:49.000Z | kryptobot/workers/learner/tasks.py | eristoddle/Kryptobot | d0c3050a1c924125810946530670c19b2de72d3f | [
"Apache-2.0"
] | 14 | 2018-08-10T15:44:27.000Z | 2021-06-14T07:14:52.000Z | from .celery import app
from ..config import core
from ..base_task import BaseTask
import importlib
def title_case(snake_str):
components = snake_str.split('_')
return ''.join(x.title() for x in components)
def dynamic_import(abs_module_path, class_name):
module_object = importlib.import_module(abs_modul... | 27.066667 | 60 | 0.768473 | 58 | 406 | 5.086207 | 0.534483 | 0.054237 | 0.088136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147783 | 406 | 14 | 61 | 29 | 0.852601 | 0 | 0 | 0 | 0 | 0 | 0.002463 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.545455 | 0 | 0.909091 | 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 | 1 | 0 | 0 | 2 |
b97ef5485595b38ec5180f4e383bc7b527d3057e | 540 | py | Python | timeweb/timewebapp/migrations/0082_settingsmodel_assignment_spacing.py | snapsnap123/TimeWeb | 9e3a3459fa71f6edf730addf3c7e15d87b6c80b5 | [
"Apache-2.0"
] | 1 | 2021-11-29T18:37:02.000Z | 2021-11-29T18:37:02.000Z | timeweb/timewebapp/migrations/0082_settingsmodel_assignment_spacing.py | renardtnt1/TimeWeb | 3684bb2ba368b55a4d50995e7e0e3b9405cba004 | [
"Apache-2.0"
] | null | null | null | timeweb/timewebapp/migrations/0082_settingsmodel_assignment_spacing.py | renardtnt1/TimeWeb | 3684bb2ba368b55a4d50995e7e0e3b9405cba004 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2.7 on 2021-11-03 19:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('timewebapp', '0081_timewebmodel_has_alerted_due_date_passed_notice'),
]
operations = [
migrations.AddField(
model_name='settings... | 28.421053 | 155 | 0.65 | 58 | 540 | 5.862069 | 0.775862 | 0.082353 | 0.123529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047393 | 0.218519 | 540 | 18 | 156 | 30 | 0.758294 | 0.083333 | 0 | 0 | 1 | 0 | 0.283976 | 0.105477 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
b99238d84456c9a6bc9a88454a140b340e689654 | 894 | py | Python | config.py | klvnbett/Blogsite | 70f450b0a046530021fb9cf75554dabd5d21ef7e | [
"MIT"
] | null | null | null | config.py | klvnbett/Blogsite | 70f450b0a046530021fb9cf75554dabd5d21ef7e | [
"MIT"
] | null | null | null | config.py | klvnbett/Blogsite | 70f450b0a046530021fb9cf75554dabd5d21ef7e | [
"MIT"
] | null | null | null | import os
class Config:
SQLALCHEMY_TRACK_MODIFICATIONS=True
SECRET_KEY = os.environ.get('SECRET_KEY')
SQLALCHEMY_DATABASE_URI='postgresql+psycopg2://moringa:read432q@localhost/blogs'
#Email configurations
MAIL_SERVER = 'smtp.googlemail.com'
MAIL_PORT = 587
MAIL_USE_TLS = True
MAIL_USERNAME = os.environ... | 27.090909 | 95 | 0.756152 | 108 | 894 | 5.981481 | 0.527778 | 0.139319 | 0.162539 | 0.049536 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010256 | 0.127517 | 894 | 32 | 96 | 27.9375 | 0.817949 | 0.280761 | 0 | 0 | 0 | 0 | 0.230408 | 0.08464 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.095238 | 0.047619 | 0 | 0.761905 | 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 | 1 | 0 | 0 | 2 |
b99428c3c75b271664da19a76c48bd2b4bd4a50c | 459 | py | Python | app/management/commands/start.py | nkmurli/vasuNKproj | 543f87d5ed2812d50b39867bca60c893a4d906d8 | [
"MIT"
] | null | null | null | app/management/commands/start.py | nkmurli/vasuNKproj | 543f87d5ed2812d50b39867bca60c893a4d906d8 | [
"MIT"
] | 7 | 2020-06-05T20:48:26.000Z | 2021-09-22T18:29:26.000Z | app/management/commands/start.py | nkmurli/vasuNKproj | 543f87d5ed2812d50b39867bca60c893a4d906d8 | [
"MIT"
] | null | null | null | import subprocess
from django.core.management.base import BaseCommand
class Command(BaseCommand):
help = 'runs server with gunicorn in a production setting'
def add_arguments(self, parser):
parser.add_argument('addrport', nargs='?', default='0.0.0.0:3000', help='Optional ipaddr:port')
def handle(... | 35.307692 | 103 | 0.694989 | 60 | 459 | 5.283333 | 0.733333 | 0.018927 | 0.018927 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02356 | 0.167756 | 459 | 12 | 104 | 38.25 | 0.806283 | 0 | 0 | 0 | 0 | 0 | 0.27451 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 2 |
b99a30a108bedb9e200a03fbffd710874c5793d3 | 7,144 | py | Python | behaviors/vigir_behavior_pickup_object/src/vigir_behavior_pickup_object/pickup_object_sm.py | team-vigir/vigir_behaviors | 6696e7b7aadb24bb5495475065cc7b10d80b7db4 | [
"BSD-3-Clause"
] | 5 | 2015-08-25T18:47:52.000Z | 2019-12-04T21:40:28.000Z | behaviors/vigir_behavior_pickup_object/src/vigir_behavior_pickup_object/pickup_object_sm.py | team-vigir/vigir_behaviors | 6696e7b7aadb24bb5495475065cc7b10d80b7db4 | [
"BSD-3-Clause"
] | 2 | 2017-08-16T16:09:47.000Z | 2020-08-18T17:25:22.000Z | behaviors/vigir_behavior_pickup_object/src/vigir_behavior_pickup_object/pickup_object_sm.py | team-vigir/vigir_behaviors | 6696e7b7aadb24bb5495475065cc7b10d80b7db4 | [
"BSD-3-Clause"
] | 5 | 2015-11-06T21:57:37.000Z | 2022-03-30T10:15:57.000Z | #!/usr/bin/env python
###########################################################
# WARNING: Generated code! #
# ************************** #
# Manual changes may get lost if file is generated again. #
# Only code inside the [MANUAL] tags will be kept. ... | 41.777778 | 215 | 0.698068 | 818 | 7,144 | 5.816626 | 0.270171 | 0.026902 | 0.033628 | 0.033838 | 0.260404 | 0.211013 | 0.198823 | 0.189996 | 0.174023 | 0.156368 | 0 | 0.016892 | 0.163074 | 7,144 | 170 | 216 | 42.023529 | 0.778893 | 0.12332 | 0 | 0.123596 | 1 | 0 | 0.245493 | 0.055602 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.11236 | null | null | 0.011236 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b9b0e0347c19f993dffa56e9c4a3a3010c9ecc6a | 284 | py | Python | ipyvolume/_version.py | alpeshyadav/ipyvolume | b7f8c1838b075a6e5a023cc957e5d8f99a99faec | [
"MIT"
] | 1 | 2020-07-03T02:21:49.000Z | 2020-07-03T02:21:49.000Z | ipyvolume/_version.py | alpeshyadav/ipyvolume | b7f8c1838b075a6e5a023cc957e5d8f99a99faec | [
"MIT"
] | null | null | null | ipyvolume/_version.py | alpeshyadav/ipyvolume | b7f8c1838b075a6e5a023cc957e5d8f99a99faec | [
"MIT"
] | 1 | 2020-05-28T07:53:47.000Z | 2020-05-28T07:53:47.000Z |
__version_tuple__ = (0, 6, 0, 'alpha.5')
__version__ = '0.6.0-alpha.5'
__version_tuple_js__ = (0, 6, 0, 'alpha.4')
__version_js__ = '0.6.0-alpha.4'
# kept for embedding in offline mode, we don't care about the patch version since it should be compatible
__version_threejs__ = '0.97'
| 35.5 | 105 | 0.71831 | 51 | 284 | 3.509804 | 0.54902 | 0.044693 | 0.067039 | 0.178771 | 0.301676 | 0.301676 | 0 | 0 | 0 | 0 | 0 | 0.078189 | 0.144366 | 284 | 7 | 106 | 40.571429 | 0.658436 | 0.362676 | 0 | 0 | 0 | 0 | 0.247191 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 2 |
b9b1bff3a4ac907f97a95f2e05f0d40242e7d5ca | 37,377 | py | Python | data/base_dataset.py | alx/joliGAN | f6350d78a73a2d705a22f80d97b6565f4372a3db | [
"MIT"
] | null | null | null | data/base_dataset.py | alx/joliGAN | f6350d78a73a2d705a22f80d97b6565f4372a3db | [
"MIT"
] | null | null | null | data/base_dataset.py | alx/joliGAN | f6350d78a73a2d705a22f80d97b6565f4372a3db | [
"MIT"
] | null | null | null | """This module implements an abstract base class (ABC) 'BaseDataset' for datasets.
It also includes common transformation functions (e.g., get_transform, __scale_width), which can be later used in subclasses.
"""
import random
import os.path
import numpy as np
import torch.utils.data as data
from PIL import Image
impo... | 37.754545 | 144 | 0.604998 | 4,944 | 37,377 | 4.42678 | 0.107605 | 0.016814 | 0.020835 | 0.00329 | 0.740885 | 0.714475 | 0.693594 | 0.654208 | 0.625742 | 0.607146 | 0 | 0.014631 | 0.297803 | 37,377 | 989 | 145 | 37.79272 | 0.819249 | 0.390053 | 0 | 0.47191 | 0 | 0 | 0.023501 | 0.002383 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101124 | false | 0 | 0.029213 | 0.011236 | 0.283146 | 0.01573 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
b9bcba11c89b8e9933c4c3a37cc73bbceb684ccb | 551 | py | Python | integrationJazz/WebChat.py | coe-google-apps-support/JazzIntegration | cb78b9d70fc65d362916185b8ecd37e2ed8bbd7f | [
"MIT"
] | null | null | null | integrationJazz/WebChat.py | coe-google-apps-support/JazzIntegration | cb78b9d70fc65d362916185b8ecd37e2ed8bbd7f | [
"MIT"
] | 8 | 2019-12-04T22:51:19.000Z | 2022-02-10T11:57:43.000Z | integrationJazz/WebChat.py | coe-google-apps-support/JazzIntegration | cb78b9d70fc65d362916185b8ecd37e2ed8bbd7f | [
"MIT"
] | null | null | null | from django.shortcuts import render
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from rest_framework.parsers import JSONParser, MultiPartParser
import requests
import json
from requests.auth import HTTPBasicAuth
import os
from decouple import co... | 26.238095 | 68 | 0.811252 | 74 | 551 | 5.986486 | 0.594595 | 0.072235 | 0.153499 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006316 | 0.137931 | 551 | 20 | 69 | 27.55 | 0.926316 | 0 | 0 | 0 | 0 | 0 | 0.059426 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.785714 | 0.071429 | 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 | 1 | 0 | 1 | 0 | 0 | 2 |
b9c8d5f3b1895a31d47992a01b1ecc9b17604830 | 565 | py | Python | inventory/migrations/0004_auto_20210914_1247.py | shoaibsaikat/Django-Office-Management-BackEnd | bb8ec201e4d414c16f5bac1907a2641d80c5970a | [
"Apache-2.0"
] | null | null | null | inventory/migrations/0004_auto_20210914_1247.py | shoaibsaikat/Django-Office-Management-BackEnd | bb8ec201e4d414c16f5bac1907a2641d80c5970a | [
"Apache-2.0"
] | null | null | null | inventory/migrations/0004_auto_20210914_1247.py | shoaibsaikat/Django-Office-Management-BackEnd | bb8ec201e4d414c16f5bac1907a2641d80c5970a | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2.6 on 2021-09-14 06:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('inventory', '0003_auto_20210908_1211'),
]
operations = [
migrations.AlterField(
model_name='inventory',
name='count'... | 23.541667 | 69 | 0.589381 | 53 | 565 | 6.188679 | 0.716981 | 0.121951 | 0.152439 | 0.176829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080808 | 0.299115 | 565 | 23 | 70 | 24.565217 | 0.747475 | 0.079646 | 0 | 0.235294 | 1 | 0 | 0.121622 | 0.044402 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b9dcd851becbf7e2837d5da8b0d78cb0b38d2b58 | 171 | py | Python | main/index-of-first-1-in-a-sorted-array-of-0s-and-1s/index-of-first-1-in-a-sorted-array-of-0s-and-1s.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/index-of-first-1-in-a-sorted-array-of-0s-and-1s/index-of-first-1-in-a-sorted-array-of-0s-and-1s.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/index-of-first-1-in-a-sorted-array-of-0s-and-1s/index-of-first-1-in-a-sorted-array-of-0s-and-1s.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | #!/usr/bin/env python3
for _ in range(int(input())):
input() # don't need n
try:
print(input().index('1') // 2)
except ValueError:
print(-1)
| 17.1 | 38 | 0.532164 | 24 | 171 | 3.75 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03252 | 0.280702 | 171 | 9 | 39 | 19 | 0.699187 | 0.19883 | 0 | 0 | 0 | 0 | 0.007407 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 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 | 2 |
b9dd201d1d0ee272ad52479c247aa15a482671ce | 425 | py | Python | services/stocks-api/app/entities/builders/EntityBuilder.py | krystianbajno/stocks | 0a1a9283cb6debe36cfe01308eb4bc0b85217a02 | [
"MIT"
] | 3 | 2020-08-09T14:43:45.000Z | 2020-08-11T23:22:15.000Z | services/stocks-api/app/entities/builders/EntityBuilder.py | krystianbajno/stocks | 0a1a9283cb6debe36cfe01308eb4bc0b85217a02 | [
"MIT"
] | null | null | null | services/stocks-api/app/entities/builders/EntityBuilder.py | krystianbajno/stocks | 0a1a9283cb6debe36cfe01308eb4bc0b85217a02 | [
"MIT"
] | 1 | 2020-11-11T00:58:42.000Z | 2020-11-11T00:58:42.000Z | from app.entities.Entity import Entity
class EntityBuilder:
def __init__(self):
self.entity = Entity()
def flush(self):
self.__init__()
def set_id(self, identifier: str) -> None:
self.entity.set_id(identifier)
def add_component(self, identifier, component) -> None:
s... | 22.368421 | 59 | 0.656471 | 51 | 425 | 5.235294 | 0.411765 | 0.187266 | 0.104869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.237647 | 425 | 18 | 60 | 23.611111 | 0.824074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.416667 | false | 0 | 0.083333 | 0.083333 | 0.666667 | 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 | 1 | 0 | 0 | 2 |
b9e01858b105fdac329d8866fe7276da05d5cfe6 | 1,448 | py | Python | 2_Iterables/Lists/lists.py | felixdittrich92/Python3 | 16b767465e4bdf0adc652c195d15384bb9faa4cf | [
"MIT"
] | 1 | 2022-03-02T07:16:30.000Z | 2022-03-02T07:16:30.000Z | 2_Iterables/Lists/lists.py | felixdittrich92/Python3 | 16b767465e4bdf0adc652c195d15384bb9faa4cf | [
"MIT"
] | null | null | null | 2_Iterables/Lists/lists.py | felixdittrich92/Python3 | 16b767465e4bdf0adc652c195d15384bb9faa4cf | [
"MIT"
] | null | null | null | # basic features for lists: https://docs.python.org/3/tutorial/datastructures.html
# List: mutable
def main():
my_list = list()
my_list = [1, 2, 3]
print("----------Hinzufügen----------")
# Option 1: Single Value
my_list.append(-10)
print(my_list)
# Option 2: List Concatenation (Verkettu... | 20.985507 | 82 | 0.560083 | 192 | 1,448 | 3.984375 | 0.338542 | 0.25098 | 0.15817 | 0.062745 | 0.130719 | 0.099346 | 0.099346 | 0.091503 | 0.091503 | 0.091503 | 0 | 0.019696 | 0.228591 | 1,448 | 69 | 83 | 20.985507 | 0.665175 | 0.188536 | 0 | 0.317073 | 0 | 0 | 0.170249 | 0.146174 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0 | 0 | 0.02439 | 0.512195 | 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 | 1 | 0 | 2 |
b9f38e87bfaa9f8dbffb00aa972f0ec2a535132a | 2,062 | py | Python | homelette/__init__.py | PhilippJunk/homelette | d6e585a215d7eef75ef6c837d1faf2d0ad8025c1 | [
"MIT"
] | null | null | null | homelette/__init__.py | PhilippJunk/homelette | d6e585a215d7eef75ef6c837d1faf2d0ad8025c1 | [
"MIT"
] | null | null | null | homelette/__init__.py | PhilippJunk/homelette | d6e585a215d7eef75ef6c837d1faf2d0ad8025c1 | [
"MIT"
] | null | null | null | '''
homelette
=========
homelette is an interface for various homology modelling tools, enabling the
user to easily assemble custom homology modelling pipelines.
Please check out the documentation and tutorials at
https://homelette.readthedocs.io/.
The docstring examples assume that `homelette` has been imported as ... | 26.101266 | 79 | 0.714355 | 250 | 2,062 | 5.756 | 0.524 | 0.025017 | 0.025017 | 0.031967 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001202 | 0.193016 | 2,062 | 78 | 80 | 26.435897 | 0.863582 | 0.56741 | 0 | 0.090909 | 0 | 0 | 0.271765 | 0.030588 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.545455 | 0 | 0.590909 | 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 | 1 | 0 | 0 | 2 |
6a0bfe2089b8062d32a302c5316dc4fd64303249 | 3,788 | py | Python | sip.py | AlexBlandin/GreenbookClub | fe232d7f80bad711aa83c4b9e0aa8b4960106564 | [
"MIT"
] | null | null | null | sip.py | AlexBlandin/GreenbookClub | fe232d7f80bad711aa83c4b9e0aa8b4960106564 | [
"MIT"
] | null | null | null | sip.py | AlexBlandin/GreenbookClub | fe232d7f80bad711aa83c4b9e0aa8b4960106564 | [
"MIT"
] | null | null | null | ips = ["127.0.0.1", "255.0.0.1", "137.44.1.20", "48.8.9.72", ".".join(str(x) for x in range(256))]
z_a = ord("z") - ord("a") # apparently I find it hard to remember az is 26 letters
for ip in ips:
sip = []
for byte in ip.split("."):
b, s = int(byte), []
if b < ord("a"):
b += ord("a")
if b > ord... | 60.126984 | 117 | 0.408395 | 656 | 3,788 | 2.352134 | 0.791159 | 0.018146 | 0.032404 | 0.028516 | 0.081011 | 0.054439 | 0.054439 | 0.054439 | 0.054439 | 0.054439 | 0 | 0.315751 | 0.269271 | 3,788 | 62 | 118 | 61.096774 | 0.241691 | 0.017951 | 0 | 0.216667 | 0 | 0 | 0.151735 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
6a15415a9e1d28221856ddae8526f9f44df6a188 | 1,637 | py | Python | src/test.py | KewJS/Customer_Segmentation | b045d5abc88fc25975067fcac4f4c2a4e538ad07 | [
"MIT"
] | null | null | null | src/test.py | KewJS/Customer_Segmentation | b045d5abc88fc25975067fcac4f4c2a4e538ad07 | [
"MIT"
] | 1 | 2020-09-08T16:19:02.000Z | 2020-09-08T16:19:02.000Z | src/test.py | KewJS/Customer_Segmentation | b045d5abc88fc25975067fcac4f4c2a4e538ad07 | [
"MIT"
] | null | null | null | import os, sys, fnmatch
import time, inspect
from collections import OrderedDict
import argparse
import numpy as np
import pandas as pd
from datetime import datetime
__current_module__ = "1.0.0"
__description__ = "Customer Segmentation of Retails Sales (Kaggle)"
__current_module__ = inspect.getfile(inspect.currentfram... | 51.15625 | 148 | 0.662798 | 196 | 1,637 | 5.290816 | 0.52551 | 0.037608 | 0.054966 | 0.050145 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00311 | 0.214417 | 1,637 | 32 | 149 | 51.15625 | 0.803266 | 0.238241 | 0 | 0 | 0 | 0.047619 | 0.250201 | 0 | 0.047619 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
6a165a7aebbe940ccf2e415a319fee7e90576382 | 1,173 | py | Python | setup.py | drnextgis/contextily | cbd968eabefac598f5b975e957f0b1cb453b259f | [
"BSD-3-Clause"
] | null | null | null | setup.py | drnextgis/contextily | cbd968eabefac598f5b975e957f0b1cb453b259f | [
"BSD-3-Clause"
] | null | null | null | setup.py | drnextgis/contextily | cbd968eabefac598f5b975e957f0b1cb453b259f | [
"BSD-3-Clause"
] | null | null | null | from setuptools import setup
# Dependencies.
with open("requirements.txt") as f:
tests_require = f.readlines()
install_requires = [t.strip() for t in tests_require]
with open("README.md") as f:
long_description = f.read()
setup(
name="contextily",
version="1.0.0",
description="Context geo-tiles i... | 31.702703 | 70 | 0.647059 | 132 | 1,173 | 5.636364 | 0.55303 | 0.153226 | 0.201613 | 0.174731 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015005 | 0.204604 | 1,173 | 36 | 71 | 32.583333 | 0.782422 | 0.011083 | 0 | 0 | 0 | 0 | 0.443869 | 0.02418 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.03125 | 0 | 0.03125 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
6a27c7a5b92ac7a4dd86bd407302bb19202d3d9c | 215 | py | Python | v1/src/config.py | marlanmct/SkinCancerClassifier | f0179d01b61f7dbd264bfb9ee4006ff74000a3dd | [
"MIT"
] | null | null | null | v1/src/config.py | marlanmct/SkinCancerClassifier | f0179d01b61f7dbd264bfb9ee4006ff74000a3dd | [
"MIT"
] | 5 | 2021-05-21T16:12:56.000Z | 2022-02-10T02:26:19.000Z | v1/src/config.py | mmcinnestaylor/skin-cancer-classifier | f0179d01b61f7dbd264bfb9ee4006ff74000a3dd | [
"MIT"
] | null | null | null | # for storage of credentials and other sensitive information
email = # email address for footer goes here
github = # repo address
host = # server host ip
uploads = # path up server upload folder relative to py file
| 35.833333 | 60 | 0.767442 | 32 | 215 | 5.15625 | 0.84375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190698 | 215 | 5 | 61 | 43 | 0.948276 | 0.790698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6a38c7af751f3b919b262581e298624ac05875c4 | 275 | py | Python | helpers/TXTHelper.py | DCSO/tiffy | d0207636e10c5822ff9a8c617f33301982ee3e21 | [
"BSD-3-Clause"
] | 5 | 2019-08-23T11:34:00.000Z | 2021-09-15T15:45:25.000Z | helpers/TXTHelper.py | DCSO/tiffy | d0207636e10c5822ff9a8c617f33301982ee3e21 | [
"BSD-3-Clause"
] | null | null | null | helpers/TXTHelper.py | DCSO/tiffy | d0207636e10c5822ff9a8c617f33301982ee3e21 | [
"BSD-3-Clause"
] | 2 | 2019-09-24T10:11:49.000Z | 2021-03-19T12:31:16.000Z | import copy
from datetime import datetime
import hashlib
import json
import uuid
def generate_TXT_File_plain(deduplicated_observations):
txtdict = list()
for key, attr in deduplicated_observations.items():
txtdict.append(attr['value'])
return txtdict
| 18.333333 | 55 | 0.756364 | 34 | 275 | 5.970588 | 0.705882 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178182 | 275 | 14 | 56 | 19.642857 | 0.89823 | 0 | 0 | 0 | 1 | 0 | 0.018182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.5 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
6a3bc5403ef12fdb013b8d66f8297335a55be6e6 | 504 | py | Python | ex09_sed/testfiles/parseargs.py | techieguy007/learn-more-python-the-hard-way-solutions | 7886c860f69d69739a41d6490b8dc3fa777f227b | [
"Zed",
"Unlicense"
] | 466 | 2016-11-01T19:40:59.000Z | 2022-03-23T16:34:13.000Z | ex09_sed/testfiles/parseargs.py | Desperaaado/learn-more-python-the-hard-way-solutions | 7886c860f69d69739a41d6490b8dc3fa777f227b | [
"Zed",
"Unlicense"
] | 2 | 2017-09-20T09:01:53.000Z | 2017-09-21T15:03:56.000Z | ex09_sed/testfiles/parseargs.py | Desperaaado/learn-more-python-the-hard-way-solutions | 7886c860f69d69739a41d6490b8dc3fa777f227b | [
"Zed",
"Unlicense"
] | 241 | 2017-06-17T08:02:26.000Z | 2022-03-30T09:09:39.000Z | import argparse
parser = argparse.ArgumentParser()
parser.add_argument('integers', metavar='N', type=int, nargs='+')
parser.add_argument('-f', '--foo', help='foo help')
parser.add_argument('-b', '--bar', help='bar help')
parser.add_argument('-z', '--baz', help='baz help')
parser.add_argument('-t', '--turn-on', ac... | 38.769231 | 66 | 0.674603 | 69 | 504 | 4.768116 | 0.478261 | 0.191489 | 0.361702 | 0.191489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093254 | 504 | 12 | 67 | 42 | 0.719912 | 0 | 0 | 0 | 0 | 0 | 0.237805 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.090909 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
6a46bab2139a95528a7b9f68beb92bfbedfcd0ce | 356 | py | Python | jsl/gym_envs/envs/__init__.py | apoorvagnihotri/JSL | 83e12645de833cb595bd554b9a14704a3fb1449c | [
"MIT"
] | null | null | null | jsl/gym_envs/envs/__init__.py | apoorvagnihotri/JSL | 83e12645de833cb595bd554b9a14704a3fb1449c | [
"MIT"
] | null | null | null | jsl/gym_envs/envs/__init__.py | apoorvagnihotri/JSL | 83e12645de833cb595bd554b9a14704a3fb1449c | [
"MIT"
] | null | null | null | from gym.envs.registration import register
from . import base
from .classification_env import ClassificationEnv
from .regression_env import RegressionEnv
register(
id="seqcls-v0",
entry_point="jsl.gym_envs.envs.classification_env:ClassificationEnv")
register(
id="seqreg-v0",
entry_point="jsl.gym_envs... | 27.384615 | 73 | 0.794944 | 45 | 356 | 6.111111 | 0.422222 | 0.076364 | 0.087273 | 0.109091 | 0.189091 | 0.189091 | 0.189091 | 0 | 0 | 0 | 0 | 0.006329 | 0.11236 | 356 | 13 | 74 | 27.384615 | 0.863924 | 0 | 0 | 0.2 | 0 | 0 | 0.330532 | 0.280112 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
dbf9e0b256790f00ed4feec6254b0563043a1c34 | 1,679 | py | Python | setup.py | cclauss/nose2pytest | 47fef2bb8d097e11ebc9441b3969dd4d9c61f25d | [
"BSD-3-Clause"
] | 24 | 2016-09-06T15:59:55.000Z | 2022-03-05T19:18:51.000Z | setup.py | cclauss/nose2pytest | 47fef2bb8d097e11ebc9441b3969dd4d9c61f25d | [
"BSD-3-Clause"
] | 20 | 2016-10-21T00:22:59.000Z | 2021-11-08T12:35:24.000Z | setup.py | cclauss/nose2pytest | 47fef2bb8d097e11ebc9441b3969dd4d9c61f25d | [
"BSD-3-Clause"
] | 10 | 2016-06-18T17:39:23.000Z | 2021-11-07T23:10:32.000Z | from setuptools import setup
setup(
name='nose2pytest',
version='1.0.8',
packages=['nose2pytest'],
# py_modules=['assert_tools', 'nose2pytest'],
entry_points={
'console_scripts': [
'nose2pytest = nose2pytest.script:main',
],
'... | 36.5 | 115 | 0.559857 | 164 | 1,679 | 5.664634 | 0.591463 | 0.122713 | 0.161464 | 0.167923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025618 | 0.325789 | 1,679 | 45 | 116 | 37.311111 | 0.795053 | 0.169744 | 0 | 0.064516 | 0 | 0 | 0.524188 | 0.070758 | 0 | 0 | 0 | 0 | 0.064516 | 1 | 0 | true | 0 | 0.032258 | 0 | 0.032258 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
dbfe0dc1e03c84f1e88506e43fc69c0aeab81b50 | 1,900 | py | Python | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/tests/conftest.py | e-dang/cookiecutter-django | 2ba986296de1d5a086e73cde746d6fc7366f149c | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/tests/conftest.py | e-dang/cookiecutter-django | 2ba986296de1d5a086e73cde746d6fc7366f149c | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/tests/conftest.py | e-dang/cookiecutter-django | 2ba986296de1d5a086e73cde746d6fc7366f149c | [
"BSD-3-Clause"
] | null | null | null | from pathlib import Path
import pytest
from pytest_factoryboy import register as factory_register
from pytest_factoryboy.fixture import get_caller_module, get_model_name, make_fixture
{%- if cookiecutter.use_drf == "y" %}
from rest_framework.test import APIClient
{%- endif %}
from {{cookiecutter.project_slug}}.tests.... | 28.358209 | 85 | 0.715789 | 247 | 1,900 | 5.263158 | 0.376518 | 0.049231 | 0.036923 | 0.027692 | 0.126923 | 0.057692 | 0.057692 | 0 | 0 | 0 | 0 | 0.003177 | 0.171579 | 1,900 | 66 | 86 | 28.787879 | 0.822745 | 0 | 0 | 0.06383 | 0 | 0 | 0.074602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.106383 | 0.12766 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
e0023acb43b8dce9875f69ca3f600c8fa2ab6d15 | 643 | py | Python | src/OpenDrive/client_side/gui/authentication/authentication.py | JulianSobott/OpenDrive | 0593c994c3bccccc4351557c42d13f3535b6b6c1 | [
"Apache-2.0"
] | 1 | 2021-03-18T16:20:46.000Z | 2021-03-18T16:20:46.000Z | src/OpenDrive/client_side/gui/authentication/authentication.py | JulianSobott/OpenDrive | 0593c994c3bccccc4351557c42d13f3535b6b6c1 | [
"Apache-2.0"
] | 2 | 2019-06-04T21:50:23.000Z | 2019-06-14T13:20:50.000Z | src/OpenDrive/client_side/gui/authentication/authentication.py | JulianSobott/OpenDrive | 0593c994c3bccccc4351557c42d13f3535b6b6c1 | [
"Apache-2.0"
] | null | null | null | """
:module: OpenDrive.client_side.gui.authentication.authentication
:synopsis: authenticating the user
:author: Julian Sobott
public functions
----------------
.. autofunction:: authenticate
private functions
-----------------
"""
from OpenDrive.client_side.authentication import login_auto
from OpenDrive.client_si... | 23.814815 | 76 | 0.729393 | 75 | 643 | 6.08 | 0.586667 | 0.131579 | 0.166667 | 0.151316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144635 | 643 | 26 | 77 | 24.730769 | 0.829091 | 0.455677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.111111 | 0.333333 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
e013d834ae0546bf17f90f41b9509e67cfa26cf5 | 276 | py | Python | lang/py/cookbook/v2/source/cb2_18_6_sol_1.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/cookbook/v2/source/cb2_18_6_sol_1.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/cookbook/v2/source/cb2_18_6_sol_1.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | class Fifo(list):
def __init__(self):
self.back = []
self.append = self.back.append
def pop(self):
if not self:
self.back.reverse()
self[:] = self.back
del self.back[:]
return super(Fifo, self).pop()
| 25.090909 | 38 | 0.503623 | 33 | 276 | 4.090909 | 0.454545 | 0.296296 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.362319 | 276 | 10 | 39 | 27.6 | 0.767045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 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 | 2 |
e035a7da76f14b31fe24cc126b4a82f28e05e09c | 551 | py | Python | apps/account/api/urls.py | mobius-labs/app | bdf8226d8b16cea609a7af01be51c9bd4b867ab3 | [
"MIT"
] | 1 | 2021-11-13T10:52:08.000Z | 2021-11-13T10:52:08.000Z | apps/account/api/urls.py | mobius-labs/app | bdf8226d8b16cea609a7af01be51c9bd4b867ab3 | [
"MIT"
] | 1 | 2021-11-13T04:25:00.000Z | 2021-11-13T04:25:00.000Z | apps/account/api/urls.py | mobius-labs/app | bdf8226d8b16cea609a7af01be51c9bd4b867ab3 | [
"MIT"
] | null | null | null | from django.urls import path
from apps.account.api.views import *
from rest_framework.authtoken.views import obtain_auth_token
app_name = "account"
urlpatterns = [
path('register', registration_view, name="register"),
path('login', obtain_auth_token, name="login"),
path('get_business_card_visibility', get... | 39.357143 | 117 | 0.785844 | 71 | 551 | 5.732394 | 0.408451 | 0.176904 | 0.324324 | 0.184275 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101633 | 551 | 13 | 118 | 42.384615 | 0.822222 | 0 | 0 | 0 | 0 | 0 | 0.299456 | 0.214156 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
e0384ed25a7082309265050043e2d9916bcda329 | 189 | wsgi | Python | demo/api.wsgi | pascalberinguie/castor | e727bdf6901af97157a7028e36b0c11260f1fb36 | [
"Apache-2.0"
] | 1 | 2019-02-12T19:50:51.000Z | 2019-02-12T19:50:51.000Z | demo/api.wsgi | pascalberinguie/castor | e727bdf6901af97157a7028e36b0c11260f1fb36 | [
"Apache-2.0"
] | null | null | null | demo/api.wsgi | pascalberinguie/castor | e727bdf6901af97157a7028e36b0c11260f1fb36 | [
"Apache-2.0"
] | null | null | null | import sys, os
#.py is in the same dir than .wsgi
path=os.path.dirname(os.path.realpath(__file__))
sys.path.insert (0,path)
os.chdir(path)
from castor_wsgi_apis import app as application
| 21 | 48 | 0.767196 | 35 | 189 | 3.971429 | 0.685714 | 0.086331 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006024 | 0.121693 | 189 | 8 | 49 | 23.625 | 0.831325 | 0.174603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
e03866b6319c3d9d6758ee64ff39e15b1b4355db | 282 | py | Python | src/plan/plan_base.py | 9h03n1x/AD_project | 3f6d2635bb46a7f8c46adef9b576cc4cb6548d44 | [
"Apache-2.0"
] | 1 | 2019-03-10T20:16:57.000Z | 2019-03-10T20:16:57.000Z | src/plan/plan_base.py | 9h03n1x/AD_project | 3f6d2635bb46a7f8c46adef9b576cc4cb6548d44 | [
"Apache-2.0"
] | null | null | null | src/plan/plan_base.py | 9h03n1x/AD_project | 3f6d2635bb46a7f8c46adef9b576cc4cb6548d44 | [
"Apache-2.0"
] | null | null | null | '''
Created on 09.03.2019
@author: Nicco
'''
class plan_base(object):
'''
plan base is providing alle the methods to connect to act, perception and the simulator
'''
def __init__(self, params):
'''
Constructor
'''
| 16.588235 | 92 | 0.539007 | 31 | 282 | 4.741935 | 0.870968 | 0.108844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043956 | 0.35461 | 282 | 17 | 93 | 16.588235 | 0.763736 | 0.485816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e03a61f2d61a4be6e19f4e96adc413c3b29f9d4b | 1,431 | py | Python | tenants/migrations/0007_auto_20200715_2254.py | Zayanto/Protocol-CRM | c81489d69de581d8216e20f7dd80089116f85c7b | [
"MIT"
] | null | null | null | tenants/migrations/0007_auto_20200715_2254.py | Zayanto/Protocol-CRM | c81489d69de581d8216e20f7dd80089116f85c7b | [
"MIT"
] | null | null | null | tenants/migrations/0007_auto_20200715_2254.py | Zayanto/Protocol-CRM | c81489d69de581d8216e20f7dd80089116f85c7b | [
"MIT"
] | null | null | null | # Generated by Django 3.0.7 on 2020-07-15 22:54
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('properties', '0013_monthlymaintenance_renovationteam_renovationteamexpenses'),
migr... | 33.27907 | 131 | 0.626136 | 146 | 1,431 | 5.979452 | 0.472603 | 0.114548 | 0.143184 | 0.166094 | 0.292096 | 0.292096 | 0 | 0 | 0 | 0 | 0 | 0.037771 | 0.259958 | 1,431 | 42 | 132 | 34.071429 | 0.786591 | 0.031447 | 0 | 0.416667 | 1 | 0 | 0.138728 | 0.060694 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e03acf9902e5808a78f510fdd7ef6ed9c6f3016f | 753 | py | Python | REST_FindSim/tasks/migrations/0010_auto_20190528_0947.py | surbhit21/GSoC-2019 | 5ab22331b97d379f7f3c9c02f4cf3359a9184ddf | [
"MIT"
] | 1 | 2019-05-07T08:35:00.000Z | 2019-05-07T08:35:00.000Z | REST_FindSim/tasks/migrations/0010_auto_20190528_0947.py | surbhit21/GSoC-2019 | 5ab22331b97d379f7f3c9c02f4cf3359a9184ddf | [
"MIT"
] | 4 | 2019-05-08T04:46:01.000Z | 2019-08-01T06:59:23.000Z | REST_FindSim/tasks/migrations/0010_auto_20190528_0947.py | surbhit21/GSoC-2019 | 5ab22331b97d379f7f3c9c02f4cf3359a9184ddf | [
"MIT"
] | 1 | 2019-05-07T11:55:20.000Z | 2019-05-07T11:55:20.000Z | # Generated by Django 2.2.1 on 2019-05-28 09:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tasks', '0009_auto_20190528_0936'),
]
operations = [
migrations.AlterField(
model_name='task',
name='figure',
... | 25.965517 | 74 | 0.571049 | 77 | 753 | 5.506494 | 0.506494 | 0.141509 | 0.176887 | 0.205189 | 0.615566 | 0.615566 | 0.528302 | 0.528302 | 0.528302 | 0.410377 | 0 | 0.059387 | 0.306773 | 753 | 28 | 75 | 26.892857 | 0.752874 | 0.059761 | 0 | 0.545455 | 1 | 0 | 0.077904 | 0.032578 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e04a40d455b897ff1fd6ff101a96ac886ffdb001 | 6,755 | py | Python | airflow/contrib/auth/backends/password_auth.py | lukeplus/docker-airflow | dbdba3ec537913601541f99d9ed6b13dfe5f3619 | [
"Apache-2.0"
] | 2 | 2021-01-27T09:27:21.000Z | 2021-05-14T05:49:23.000Z | airflow/contrib/auth/backends/password_auth.py | lukeplus/docker-airflow | dbdba3ec537913601541f99d9ed6b13dfe5f3619 | [
"Apache-2.0"
] | 22 | 2019-12-09T23:22:07.000Z | 2021-05-12T23:15:40.000Z | airflow/contrib/auth/backends/password_auth.py | lukeplus/docker-airflow | dbdba3ec537913601541f99d9ed6b13dfe5f3619 | [
"Apache-2.0"
] | 5 | 2019-11-18T13:19:29.000Z | 2020-03-25T13:20:29.000Z | # -*- coding: 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 License, Version 2.0 (the
#... | 28.867521 | 89 | 0.683938 | 783 | 6,755 | 5.803321 | 0.318008 | 0.017606 | 0.013204 | 0.017606 | 0.033011 | 0.027289 | 0.020687 | 0.020687 | 0.020687 | 0.020687 | 0 | 0.00627 | 0.220873 | 6,755 | 233 | 90 | 28.991416 | 0.857116 | 0.291932 | 0 | 0.128205 | 0 | 0 | 0.062269 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.205128 | 0.145299 | 0.008547 | 0.521368 | 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 | 1 | 0 | 0 | 2 |
e05e413982c0bc1ef93cb919911498a9a3cc4bae | 9,396 | py | Python | pyGPs/Demo/generate_data_for_Rasmussen_examples.py | Corentin-LF/pyGPs | b9d36777584cd53756bd4311c3c20ea52e945451 | [
"BSD-2-Clause"
] | 196 | 2015-03-02T06:42:52.000Z | 2022-03-01T03:32:00.000Z | pyGPs/Demo/generate_data_for_Rasmussen_examples.py | Corentin-LF/pyGPs | b9d36777584cd53756bd4311c3c20ea52e945451 | [
"BSD-2-Clause"
] | 36 | 2015-01-16T12:34:46.000Z | 2022-03-14T06:32:23.000Z | pyGPs/Demo/generate_data_for_Rasmussen_examples.py | Corentin-LF/pyGPs | b9d36777584cd53756bd4311c3c20ea52e945451 | [
"BSD-2-Clause"
] | 77 | 2015-01-30T16:25:34.000Z | 2021-01-03T18:25:24.000Z | from builtins import zip
from builtins import range
import numpy as np
def save_data_regresssion():
# n = 20 # number of labeled/training data
# D = 1 # dimension of input data
x = np.array([[2.083970427750732, -0.821018066101379, -0.617870699182597, -1.183822608860694,\
0.2740... | 51.626374 | 128 | 0.620903 | 932 | 9,396 | 6.23927 | 0.446352 | 0.010834 | 0.004127 | 0.002408 | 0.023732 | 0.008942 | 0.004471 | 0 | 0 | 0 | 0 | 0.635374 | 0.227969 | 9,396 | 181 | 129 | 51.911602 | 0.166253 | 0.082375 | 0 | 0 | 0 | 0 | 0.007904 | 0.006974 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012987 | false | 0 | 0.019481 | 0 | 0.032468 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
e069fc983914d6d8bae8559359697622094f1728 | 598 | py | Python | libs/glee/glee.py | Inokinoki/craft-blueprints-kde | 24eb81cac04d7fe0256d3251a3ca7e3b3219190b | [
"BSD-2-Clause"
] | null | null | null | libs/glee/glee.py | Inokinoki/craft-blueprints-kde | 24eb81cac04d7fe0256d3251a3ca7e3b3219190b | [
"BSD-2-Clause"
] | 1 | 2020-01-10T01:06:16.000Z | 2020-01-10T01:06:16.000Z | libs/glee/glee.py | Inokinoki/craft-blueprints-kde | 24eb81cac04d7fe0256d3251a3ca7e3b3219190b | [
"BSD-2-Clause"
] | 2 | 2020-01-02T18:22:12.000Z | 2020-08-05T13:39:21.000Z | import info
class subinfo(info.infoclass):
def setTargets(self):
self.targets['5.4'] = 'http://elf-stone.com/downloads/GLee/GLee5_4.zip'
self.patchToApply['5.4'] = ("glee-src-5.4.diff", 1)
self.description = "GLee (GL Easy Extension library) is a free cross-platform extension loading libra... | 28.47619 | 123 | 0.687291 | 74 | 598 | 5.432432 | 0.621622 | 0.019901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02268 | 0.188963 | 598 | 20 | 124 | 29.9 | 0.806186 | 0 | 0 | 0 | 0 | 0 | 0.299331 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.153846 | 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 | 1 | 0 | 0 | 2 |
e07413f9af7a8bbcde3f2bdc6b28c7373d578adb | 889 | py | Python | app/auth/views.py | taogeT/livetv_server | 3002008b55141bef008b6ef8e152fd8fa3ff680d | [
"Apache-2.0"
] | 283 | 2016-04-07T15:51:01.000Z | 2022-02-17T15:50:25.000Z | app/auth/views.py | taogeT/livetv_server | 3002008b55141bef008b6ef8e152fd8fa3ff680d | [
"Apache-2.0"
] | 2 | 2017-03-15T07:56:49.000Z | 2018-09-20T05:56:23.000Z | app/auth/views.py | taogeT/livetv_server | 3002008b55141bef008b6ef8e152fd8fa3ff680d | [
"Apache-2.0"
] | 127 | 2016-04-15T14:40:45.000Z | 2021-04-07T07:57:02.000Z | # -*- coding: UTF-8 -*-
from flask import url_for, g, redirect
from flask_login import logout_user, current_user
from datetime import datetime
from importlib import import_module
from .. import db, login_manager
from ..models import User
from . import auth
@auth.route('/login/<string:authtype>')
def login_authorize(... | 24.694444 | 99 | 0.724409 | 122 | 889 | 5.057377 | 0.434426 | 0.032415 | 0.048622 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001323 | 0.149606 | 889 | 35 | 100 | 25.4 | 0.814815 | 0.023622 | 0 | 0 | 0 | 0 | 0.058891 | 0.027714 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.32 | 0.04 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
0eb8ff1db2ce542218683905b3b6421215e35e14 | 990 | py | Python | test_piskvorky.py | sspiglazova/1D_piskvorky | db39a32a57410f1eb93532ffc242cdb74ce98b1a | [
"Apache-2.0"
] | null | null | null | test_piskvorky.py | sspiglazova/1D_piskvorky | db39a32a57410f1eb93532ffc242cdb74ce98b1a | [
"Apache-2.0"
] | null | null | null | test_piskvorky.py | sspiglazova/1D_piskvorky | db39a32a57410f1eb93532ffc242cdb74ce98b1a | [
"Apache-2.0"
] | null | null | null | import piskvorky, ai, util, pytest
# test funkce vyhodnot
def test_vyhodnot_x():
assert piskvorky.vyhodnot("----xxx-------------") == ('x', "----xxx-------------")
def test_vyhodnot_o():
assert piskvorky.vyhodnot("----ooo-------------") == ('o', "----ooo-------------")
def test_vyhodnot_remiza():
assert ... | 33 | 86 | 0.543434 | 120 | 990 | 4.316667 | 0.275 | 0.108108 | 0.11583 | 0.019305 | 0.07722 | 0.07722 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0.133333 | 990 | 30 | 87 | 33 | 0.588578 | 0.087879 | 0 | 0 | 0 | 0 | 0.319244 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0.444444 | false | 0 | 0.055556 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0ec7aa9b442b87513edeae406eab3da1c2fc540a | 3,114 | py | Python | ooobuild/lo/io/x_markable_stream.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/io/x_markable_stream.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/io/x_markable_stream.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2022 :Barry-Thomas-Paul: Moss
#
# 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 applicab... | 36.635294 | 241 | 0.680796 | 390 | 3,114 | 5.341026 | 0.453846 | 0.034566 | 0.057609 | 0.051848 | 0.259722 | 0.259722 | 0.221795 | 0.221795 | 0.221795 | 0.167067 | 0 | 0.012949 | 0.231214 | 3,114 | 84 | 242 | 37.071429 | 0.857143 | 0.664419 | 0 | 0.277778 | 0 | 0 | 0.133421 | 0.081902 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0.111111 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 2 |
0ed09949f731272c3e91e78798fdfc2cb500495a | 1,345 | py | Python | tests/run_shipdemo.py | bas-sof/rapidkrill | 244eabcce502f82b778381d9efa9650df4755e7d | [
"MIT"
] | 5 | 2020-10-28T21:18:50.000Z | 2021-05-20T11:52:05.000Z | tests/run_shipdemo.py | bas-sof/rapidkrill | 244eabcce502f82b778381d9efa9650df4755e7d | [
"MIT"
] | null | null | null | tests/run_shipdemo.py | bas-sof/rapidkrill | 244eabcce502f82b778381d9efa9650df4755e7d | [
"MIT"
] | 4 | 2019-09-05T10:15:45.000Z | 2021-03-05T16:06:32.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Example script to run shipdemo.py
shipdemo copies RAW files to a "collector" folder, simulating an echosounder
when collecting data. shipdemo is useful for testing the RapidKrill listening
routine.
Created on Thu Aug 15 12:40:32 2019
@author: Alejandro Ariza, British... | 40.757576 | 79 | 0.626766 | 180 | 1,345 | 4.683333 | 0.644444 | 0.039146 | 0.052195 | 0.068802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027948 | 0.148699 | 1,345 | 33 | 80 | 40.757576 | 0.708297 | 0.92342 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
0ede1c21eefb53d489e6c1eb4566564b8d688ffe | 31,598 | py | Python | python/onos_e2_sm/validate/v1/__init__.py | AbdouTlili/onos-e2-em | fa751f55ef2dfcbf92a9e3aa9722cd417ef8ffae | [
"Apache-2.0"
] | null | null | null | python/onos_e2_sm/validate/v1/__init__.py | AbdouTlili/onos-e2-em | fa751f55ef2dfcbf92a9e3aa9722cd417ef8ffae | [
"Apache-2.0"
] | null | null | null | python/onos_e2_sm/validate/v1/__init__.py | AbdouTlili/onos-e2-em | fa751f55ef2dfcbf92a9e3aa9722cd417ef8ffae | [
"Apache-2.0"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# sources: validate/v1/validate.proto
# plugin: python-betterproto
from dataclasses import dataclass
from datetime import datetime, timedelta
from typing import List
import betterproto
from betterproto.grpc.grpclib_server import ServiceBase
class KnownRegex(... | 47.515789 | 83 | 0.726976 | 4,573 | 31,598 | 4.965668 | 0.070851 | 0.085873 | 0.101814 | 0.129822 | 0.768143 | 0.69786 | 0.668135 | 0.653382 | 0.609036 | 0.594284 | 0 | 0.021663 | 0.205266 | 31,598 | 664 | 84 | 47.587349 | 0.882606 | 0.572821 | 0 | 0.13617 | 1 | 0 | 0.03818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021277 | 0 | 0.902128 | 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 | 1 | 0 | 0 | 2 |
0ee46129e47a4c8801022e9b834d9cfb48c8af86 | 9,138 | py | Python | pysnmp-with-texts/BAY-STACK-PIM-EXT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/BAY-STACK-PIM-EXT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/BAY-STACK-PIM-EXT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module BAY-STACK-PIM-EXT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BAY-STACK-PIM-EXT-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:36:08 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (def... | 132.434783 | 1,163 | 0.807179 | 938 | 9,138 | 7.861407 | 0.254797 | 0.050448 | 0.088283 | 0.009764 | 0.264578 | 0.151885 | 0.111337 | 0.111337 | 0.102929 | 0.101437 | 0 | 0.047285 | 0.078901 | 9,138 | 68 | 1,164 | 134.382353 | 0.828799 | 0.03677 | 0 | 0 | 0 | 0.033333 | 0.276129 | 0.050267 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0eee12ce47612b911a95e84c99fa2327827632fa | 1,728 | py | Python | gym_paneldepon/bitboard.py | frostburn/gym-paneldepon | 36067c25eb244c206ce5a64bd54be3172d7ed578 | [
"MIT"
] | null | null | null | gym_paneldepon/bitboard.py | frostburn/gym-paneldepon | 36067c25eb244c206ce5a64bd54be3172d7ed578 | [
"MIT"
] | 1 | 2017-12-10T06:58:47.000Z | 2017-12-10T17:11:41.000Z | gym_paneldepon/bitboard.py | frostburn/gym_paneldepon | 36067c25eb244c206ce5a64bd54be3172d7ed578 | [
"MIT"
] | null | null | null | import sys
WIDTH = 6
HEIGHT = 12
NUM_BLOCKS = WIDTH * HEIGHT
FULL = sum(1 << i for i in range(NUM_BLOCKS))
TOP = sum(1 << i for i in range(WIDTH))
BOTTOM = TOP << ((HEIGHT - 1) * WIDTH)
LEFT_WALL = sum(1 << i for i in range(0, NUM_BLOCKS, WIDTH))
RIGHT_BLOCK = FULL ^ LEFT_WALL
RIGHT_WALL = LEFT_WALL << (WIDTH - 1)
... | 21.073171 | 71 | 0.594329 | 237 | 1,728 | 4.244726 | 0.232068 | 0.048708 | 0.035785 | 0.065606 | 0.126243 | 0.126243 | 0.126243 | 0.073559 | 0.073559 | 0.073559 | 0 | 0.016773 | 0.275463 | 1,728 | 81 | 72 | 21.333333 | 0.786741 | 0 | 0 | 0.037736 | 0 | 0 | 0.003472 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.207547 | false | 0 | 0.018868 | 0.132075 | 0.415094 | 0.018868 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 2 |
0efeb6042999c080ffbc3148ecdc5caca5c24f90 | 711 | py | Python | part-2/collect/reference.py | kumalee/python-101 | 30067b3ada2d620efd57a67b8693a0048f1474b5 | [
"MIT"
] | null | null | null | part-2/collect/reference.py | kumalee/python-101 | 30067b3ada2d620efd57a67b8693a0048f1474b5 | [
"MIT"
] | null | null | null | part-2/collect/reference.py | kumalee/python-101 | 30067b3ada2d620efd57a67b8693a0048f1474b5 | [
"MIT"
] | null | null | null | #! /usr/bin/python
# encoding: utf-8
print '''
is 如果两个变量指向同一个 object, 返回 True
== 如果两个变量的值相同,返回 True
'''
a = b = 1
print 'a = b = 1; a == b', a == b
print 'a is b', a is b
a = b = [1]
print 'a = b =[1], a == b', a == b
print 'a is b', a is b
c = [1]
print 'c = [1]; c == b', c == b
print 'c is b', c is b
print '''
nu... | 18.710526 | 39 | 0.607595 | 143 | 711 | 2.86014 | 0.223776 | 0.134474 | 0.132029 | 0.136919 | 0.581907 | 0.520782 | 0.486553 | 0.486553 | 0.376528 | 0.376528 | 0 | 0.021164 | 0.202532 | 711 | 37 | 40 | 19.216216 | 0.700176 | 0.046414 | 0 | 0.4 | 0 | 0 | 0.426036 | 0.032544 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.566667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 2 |
16125f9120f175471cb1695a72eb501ca4953bdb | 151 | py | Python | test.py | wireless-network-safety/BT | 524f479f477f533cade441b8aa84437bc8b94435 | [
"MIT"
] | null | null | null | test.py | wireless-network-safety/BT | 524f479f477f533cade441b8aa84437bc8b94435 | [
"MIT"
] | null | null | null | test.py | wireless-network-safety/BT | 524f479f477f533cade441b8aa84437bc8b94435 | [
"MIT"
] | 1 | 2019-07-04T14:26:35.000Z | 2019-07-04T14:26:35.000Z | from lightblue import *
s = socket() # or socket(L2CAP) to create an L2CAP socket
s.connect(("00:12:2c:45:8a:7b", 5))
s.send("hello")
s.close()
| 25.166667 | 64 | 0.642384 | 27 | 151 | 3.592593 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096 | 0.172185 | 151 | 5 | 65 | 30.2 | 0.68 | 0.278146 | 0 | 0 | 0 | 0 | 0.205607 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 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 | 2 |
1617bf13b9e077ecf390031e3264247816be4d70 | 827 | py | Python | lib/coloraide/distance/__init__.py | CodeByZach/sublime_color_helper | 9d881e1f036c886fedd94b026735c4727b7a34d3 | [
"MIT"
] | 14 | 2021-12-07T02:40:08.000Z | 2022-01-24T19:38:17.000Z | lib/coloraide/distance/__init__.py | CodeByZach/sublime_color_helper | 9d881e1f036c886fedd94b026735c4727b7a34d3 | [
"MIT"
] | null | null | null | lib/coloraide/distance/__init__.py | CodeByZach/sublime_color_helper | 9d881e1f036c886fedd94b026735c4727b7a34d3 | [
"MIT"
] | null | null | null | """Distance and Delta E."""
from abc import ABCMeta, abstractmethod
from .. import util
import math
from typing import TYPE_CHECKING, Any
if TYPE_CHECKING: # pragma: no cover
from ..color import Color
def distance_euclidean(color: 'Color', sample: 'Color', space: str = "lab") -> float:
"""
Euclidean dis... | 25.060606 | 85 | 0.657799 | 107 | 827 | 5.028037 | 0.523364 | 0.022305 | 0.05948 | 0.078067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009023 | 0.195889 | 827 | 32 | 86 | 25.84375 | 0.8 | 0.205562 | 0 | 0 | 0 | 0 | 0.036977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.333333 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 2 |
161895632ff4974cad3ad7d33ba0f60723f5cda0 | 4,584 | py | Python | multiplayer-rl/mprl/utility_services/lock_server/protobuf/lock_server_pb2_grpc.py | oslumbers/pipeline-psro | 479ca386bf43a99fe7db372ce0017b6d3c4b7949 | [
"MIT"
] | 26 | 2020-11-04T13:50:58.000Z | 2022-03-11T08:09:00.000Z | multiplayer-rl/mprl/utility_services/lock_server/protobuf/lock_server_pb2_grpc.py | JBLanier/distributed-rl-for-imperfect-info-games | e150e99e433cadae27aa3ae5f6c7134f7e5c6fda | [
"MIT"
] | null | null | null | multiplayer-rl/mprl/utility_services/lock_server/protobuf/lock_server_pb2_grpc.py | JBLanier/distributed-rl-for-imperfect-info-games | e150e99e433cadae27aa3ae5f6c7134f7e5c6fda | [
"MIT"
] | 13 | 2020-12-07T11:39:37.000Z | 2021-11-04T15:59:17.000Z | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
import lock_server_pb2 as lock__server__pb2
class LockServerStub(object):
# missing associated documentation comment in .proto file
pass
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
... | 39.86087 | 83 | 0.754363 | 451 | 4,584 | 7.312639 | 0.157428 | 0.066707 | 0.086719 | 0.069739 | 0.710734 | 0.654336 | 0.626743 | 0.569133 | 0.501213 | 0.476956 | 0 | 0.005796 | 0.171902 | 4,584 | 114 | 84 | 40.210526 | 0.863014 | 0.110602 | 0 | 0.443182 | 1 | 0 | 0.105653 | 0.031844 | 0 | 0 | 0 | 0 | 0 | 1 | 0.079545 | false | 0.079545 | 0.022727 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
1627da766e19041f003aa24c2e8beee26605267c | 1,535 | py | Python | Lib/typerig/proxy/fl/objects/composer.py | kateliev/TypeR | 669e435576197e90f02212c5fa18a7b03827b591 | [
"BSD-3-Clause"
] | 35 | 2018-02-05T22:19:35.000Z | 2022-03-09T14:23:27.000Z | Lib/typerig/proxy/objects/composer.py | hwk1984/TypeRig | 34eda9b3eaa57d132a0a9b62e699d6e862d18382 | [
"BSD-3-Clause"
] | 56 | 2018-01-27T19:41:11.000Z | 2022-03-31T17:01:45.000Z | Lib/typerig/proxy/objects/composer.py | hwk1984/TypeRig | 34eda9b3eaa57d132a0a9b62e699d6e862d18382 | [
"BSD-3-Clause"
] | 3 | 2019-08-26T01:19:19.000Z | 2020-06-27T04:30:28.000Z | # MODULE: Typerig / Proxy / Composer (Objects)
# ------------------------------------------------------
# (C) Vassil Kateliev, 2017 (http://www.kateliev.com)
# (C) Karandash Type Foundry (http://www.karandash.eu)
#--------------------------------------------------------
# www.typerig.com
# No warranties. By using th... | 26.465517 | 114 | 0.568078 | 186 | 1,535 | 4.526882 | 0.473118 | 0.038005 | 0.026128 | 0.04038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013189 | 0.160261 | 1,535 | 58 | 115 | 26.465517 | 0.640031 | 0.339414 | 0 | 0.129032 | 0 | 0 | 0.013039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0 | 0.032258 | 0.16129 | 0.483871 | 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 | 1 | 0 | 0 | 0 | 2 |
16299f30f345ef75ec2d3d587322379c8bb228f1 | 1,871 | py | Python | snapview.py | aouelete/glio | 89cdff704c4751036688ff87ab7c359c4617b352 | [
"MIT"
] | 3 | 2019-03-06T15:06:25.000Z | 2020-05-10T12:50:06.000Z | snapview.py | aouelete/glio | 89cdff704c4751036688ff87ab7c359c4617b352 | [
"MIT"
] | 2 | 2016-03-18T01:33:56.000Z | 2017-07-31T15:04:45.000Z | snapview.py | aouelete/glio | 89cdff704c4751036688ff87ab7c359c4617b352 | [
"MIT"
] | 1 | 2020-01-15T16:32:05.000Z | 2020-01-15T16:32:05.000Z | class SnapshotView(object):
"""
A view into some subset of a snapshot instance.
The attributes of the view depend on the snapshot from which it was derived,
and the kind of view requested. All available attributes from the snapshot
are available via the fields property, which returns a tuple.
... | 37.42 | 80 | 0.645644 | 248 | 1,871 | 4.75 | 0.354839 | 0.033956 | 0.03056 | 0.037351 | 0.203735 | 0.203735 | 0.190153 | 0.137521 | 0 | 0 | 0 | 0.008753 | 0.267237 | 1,871 | 49 | 81 | 38.183673 | 0.850474 | 0.638161 | 0 | 0 | 0 | 0 | 0.119643 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.25 | false | 0 | 0 | 0.083333 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
162ec77c3e8b5cad5b6ea1e5097841ff6e8706b9 | 1,745 | py | Python | logger/LoggerClass.py | DScienceProjects/CementStrengthPrediction | 319d2cf5156900a2a564202dae6676d87df0a7c9 | [
"Apache-2.0"
] | null | null | null | logger/LoggerClass.py | DScienceProjects/CementStrengthPrediction | 319d2cf5156900a2a564202dae6676d87df0a7c9 | [
"Apache-2.0"
] | null | null | null | logger/LoggerClass.py | DScienceProjects/CementStrengthPrediction | 319d2cf5156900a2a564202dae6676d87df0a7c9 | [
"Apache-2.0"
] | null | null | null | import logging
class LoggerFileClass:
LOGGER_TYPE_FILE = "file"
LOGGER_TYPE_MONGO_DB = "mongo_db"
LOG_FILE_NM = "LoggerFile.log"
"""
Description: This class is used to do logging of events, events like user action, exception, error.
"""
def __init__(self, logger_nm):
"""
... | 26.439394 | 108 | 0.583381 | 204 | 1,745 | 4.843137 | 0.269608 | 0.080972 | 0.050607 | 0.106275 | 0.334008 | 0.334008 | 0.334008 | 0.187247 | 0 | 0 | 0 | 0 | 0.318052 | 1,745 | 65 | 109 | 26.846154 | 0.830252 | 0.291691 | 0 | 0 | 0 | 0 | 0.081172 | 0.05186 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.047619 | 0 | 0.52381 | 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 | 1 | 0 | 0 | 2 |
163f1c2dc6f26c0f27a5997d1625fed007ce8618 | 1,344 | py | Python | neuralmonkey/runners/xent_runner.py | ufal/neuralmonkey | 8b1465270f6bb28d5417a85cec492f7179036ede | [
"BSD-3-Clause"
] | 446 | 2016-06-16T11:31:12.000Z | 2021-12-04T04:19:26.000Z | neuralmonkey/runners/xent_runner.py | ufal/neuralmonkey | 8b1465270f6bb28d5417a85cec492f7179036ede | [
"BSD-3-Clause"
] | 673 | 2016-06-20T09:10:50.000Z | 2020-10-13T17:37:34.000Z | neuralmonkey/runners/xent_runner.py | ufal/neuralmonkey | 8b1465270f6bb28d5417a85cec492f7179036ede | [
"BSD-3-Clause"
] | 116 | 2016-06-16T18:23:13.000Z | 2021-02-06T06:45:20.000Z | from typing import Dict, List, Union
from typeguard import check_argument_types
import tensorflow as tf
import numpy as np
from neuralmonkey.decoders.autoregressive import AutoregressiveDecoder
from neuralmonkey.decoders.sequence_labeler import SequenceLabeler
from neuralmonkey.decorators import tensor
from neuralmon... | 33.6 | 70 | 0.697917 | 151 | 1,344 | 6.072848 | 0.516556 | 0.069793 | 0.039258 | 0.041439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004677 | 0.204613 | 1,344 | 39 | 71 | 34.461538 | 0.853134 | 0.103423 | 0 | 0 | 0 | 0 | 0.019983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.307692 | 0.076923 | 0.615385 | 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 | 1 | 0 | 0 | 2 |
1646f2896b6701d4470be763904fcc6240b1fd66 | 45,021 | py | Python | smoke-test/test_e2e.py | ShubhamThakre/datahub | 08a5fcfd017d4a2903a7b637f1e2129b9d7793ea | [
"Apache-2.0"
] | 289 | 2022-03-16T00:30:15.000Z | 2022-03-31T23:16:21.000Z | smoke-test/test_e2e.py | ShubhamThakre/datahub | 08a5fcfd017d4a2903a7b637f1e2129b9d7793ea | [
"Apache-2.0"
] | 155 | 2022-03-15T19:43:07.000Z | 2022-03-31T20:33:41.000Z | smoke-test/test_e2e.py | ShubhamThakre/datahub | 08a5fcfd017d4a2903a7b637f1e2129b9d7793ea | [
"Apache-2.0"
] | 46 | 2022-03-15T19:08:32.000Z | 2022-03-31T17:56:26.000Z | import time
import urllib
import pytest
import requests
from datahub.cli.docker import check_local_docker_containers
from datahub.ingestion.run.pipeline import Pipeline
from tests.utils import ingest_file_via_rest
GMS_ENDPOINT = "http://localhost:8080"
FRONTEND_ENDPOINT = "http://localhost:9002"
KAFKA_BROKER = "loca... | 31.091851 | 143 | 0.545101 | 4,399 | 45,021 | 5.390771 | 0.095931 | 0.052543 | 0.065236 | 0.05735 | 0.778612 | 0.721768 | 0.683478 | 0.663659 | 0.636375 | 0.603188 | 0 | 0.006377 | 0.320739 | 45,021 | 1,447 | 144 | 31.113338 | 0.769072 | 0.033473 | 0 | 0.616327 | 0 | 0.004082 | 0.448695 | 0.119126 | 0 | 0 | 0 | 0 | 0.124082 | 1 | 0.031837 | false | 0.003265 | 0.005714 | 0 | 0.037551 | 0.004082 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
165abec5dc447dfffb1c076a384507b5b75d1003 | 146 | py | Python | clouds/url.py | tongmake/restgang | 8646d816f06c8b8f2e3c84ec0f566736c7f7f7de | [
"Apache-2.0"
] | null | null | null | clouds/url.py | tongmake/restgang | 8646d816f06c8b8f2e3c84ec0f566736c7f7f7de | [
"Apache-2.0"
] | null | null | null | clouds/url.py | tongmake/restgang | 8646d816f06c8b8f2e3c84ec0f566736c7f7f7de | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
__author__ = 'menghui'
import clouds.cloudservice as cloudservice
urls = [
(r"/clouds/(\w+)", cloudservice.CloudSrvHandler)
]
| 18.25 | 52 | 0.712329 | 16 | 146 | 6.25 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007937 | 0.136986 | 146 | 7 | 53 | 20.857143 | 0.785714 | 0.082192 | 0 | 0 | 0 | 0 | 0.151515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 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 | 2 |
167031a514172aa760dd8fc1d2a638469c7cbad5 | 332 | py | Python | helloworld/test.py | autools4test/docker_selenium_distributed | b9c7934e03ba98bbfbae1ee94eaab9ec6a898897 | [
"MIT"
] | null | null | null | helloworld/test.py | autools4test/docker_selenium_distributed | b9c7934e03ba98bbfbae1ee94eaab9ec6a898897 | [
"MIT"
] | null | null | null | helloworld/test.py | autools4test/docker_selenium_distributed | b9c7934e03ba98bbfbae1ee94eaab9ec6a898897 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import unittest
class HelloWorldTest(unittest.TestCase):
def setUp(self):
pass
def test_say_hello(self):
out_string = "hello"
self.assertEqual(out_string, "hello")
def tearDown(self):
pass
if __name__ == '__main__':
uni... | 16.6 | 45 | 0.61747 | 39 | 332 | 4.948718 | 0.666667 | 0.082902 | 0.145078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004016 | 0.25 | 332 | 20 | 46 | 16.6 | 0.771084 | 0.126506 | 0 | 0.181818 | 0 | 0 | 0.062284 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.272727 | false | 0.181818 | 0.090909 | 0 | 0.454545 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
167ff32de303918e6ebbb94e989384d5db4a6e7d | 59,286 | py | Python | removestar/tests/test_removestar.py | asmeurer/removestar | 1cb91bb11ec3ac1c6b29798a4e702fa07e8ce8d6 | [
"MIT"
] | 102 | 2019-07-21T04:14:30.000Z | 2022-02-19T09:36:45.000Z | removestar/tests/test_removestar.py | asmeurer/removestar | 1cb91bb11ec3ac1c6b29798a4e702fa07e8ce8d6 | [
"MIT"
] | 21 | 2019-07-21T04:07:22.000Z | 2021-09-02T22:17:17.000Z | removestar/tests/test_removestar.py | asmeurer/removestar | 1cb91bb11ec3ac1c6b29798a4e702fa07e8ce8d6 | [
"MIT"
] | 5 | 2019-10-30T07:27:32.000Z | 2021-08-14T08:15:48.000Z | from pyflakes.checker import Checker
import sys
import ast
import os
from pathlib import Path
from filecmp import dircmp
import subprocess
from pytest import raises
import pytest
from ..removestar import (names_to_replace, star_imports, get_names,
get_names_from_dir, get_names_dynamically, ... | 41.028374 | 176 | 0.667223 | 7,645 | 59,286 | 4.928581 | 0.041203 | 0.042252 | 0.045224 | 0.05653 | 0.813981 | 0.757451 | 0.688553 | 0.628918 | 0.567717 | 0.504976 | 0 | 0.022045 | 0.194295 | 59,286 | 1,444 | 177 | 41.056787 | 0.766764 | 0.018959 | 0 | 0.357383 | 0 | 0.021812 | 0.329085 | 0.065659 | 0 | 0 | 0 | 0.000693 | 0.307047 | 1 | 0.014262 | false | 0.001678 | 0.182886 | 0 | 0.215604 | 0.001678 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 2 |
168ee0171ef447e62ddc3ff8b93742868c5785fe | 73 | py | Python | snooty/__init__.py | madelinezec/snooty-parser | ad75cb9a812eb37d65cced2eb73e51507b3f18fb | [
"Apache-2.0",
"CNRI-Python-GPL-Compatible"
] | null | null | null | snooty/__init__.py | madelinezec/snooty-parser | ad75cb9a812eb37d65cced2eb73e51507b3f18fb | [
"Apache-2.0",
"CNRI-Python-GPL-Compatible"
] | null | null | null | snooty/__init__.py | madelinezec/snooty-parser | ad75cb9a812eb37d65cced2eb73e51507b3f18fb | [
"Apache-2.0",
"CNRI-Python-GPL-Compatible"
] | null | null | null | """The Snooty documentation writer's tool."""
__version__ = "0.6.2.dev"
| 18.25 | 45 | 0.684932 | 11 | 73 | 4.181818 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046875 | 0.123288 | 73 | 3 | 46 | 24.333333 | 0.671875 | 0.534247 | 0 | 0 | 0 | 0 | 0.321429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
169703ad443d09ff0433879cd756fee5c4d8e75b | 704 | py | Python | Algorithms/0260_Single_Number_III/Python/Single_Number_III_Solution_2.py | lht19900714/Leetcode_Python | 645211f0ec71de579f1b091453db9eea80de9816 | [
"MIT"
] | null | null | null | Algorithms/0260_Single_Number_III/Python/Single_Number_III_Solution_2.py | lht19900714/Leetcode_Python | 645211f0ec71de579f1b091453db9eea80de9816 | [
"MIT"
] | null | null | null | Algorithms/0260_Single_Number_III/Python/Single_Number_III_Solution_2.py | lht19900714/Leetcode_Python | 645211f0ec71de579f1b091453db9eea80de9816 | [
"MIT"
] | null | null | null |
# Space: O(1)
# Time: O(n)
class Solution:
def singleNumber(self, nums):
res = []
length = len(nums)
nums.sort()
status = 0
for i in range(length):
if i == 0:
if nums[i] != nums[i + 1]:
res.append(nums[i])
... | 22.709677 | 69 | 0.369318 | 82 | 704 | 3.170732 | 0.341463 | 0.211538 | 0.138462 | 0.153846 | 0.434615 | 0.434615 | 0.384615 | 0.384615 | 0.384615 | 0.384615 | 0 | 0.034384 | 0.504261 | 704 | 30 | 70 | 23.466667 | 0.710602 | 0.03125 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
169f2000998219a0bd3ad0d5fc421c6dafcfdd6e | 87 | py | Python | abc/053/B.py | tonko2/AtCoder | 5d617072517881d226d7c8af09cb88684d41af7e | [
"Xnet",
"X11",
"CECILL-B"
] | 2 | 2022-01-22T07:56:58.000Z | 2022-01-24T00:29:37.000Z | abc/053/B.py | tonko2/AtCoder | 5d617072517881d226d7c8af09cb88684d41af7e | [
"Xnet",
"X11",
"CECILL-B"
] | null | null | null | abc/053/B.py | tonko2/AtCoder | 5d617072517881d226d7c8af09cb88684d41af7e | [
"Xnet",
"X11",
"CECILL-B"
] | null | null | null | S = input()
first = S.index("A")
last = S[::-1].index("Z")
print(len(S) - last - first) | 21.75 | 28 | 0.551724 | 16 | 87 | 3 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 0.149425 | 87 | 4 | 28 | 21.75 | 0.635135 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 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 | 2 |
16a08e6a8b27fdf2a6667d5d4eb515b488009067 | 499 | py | Python | applications/DamApplication/DamApplication.py | clazaro/Kratos | b947b82c90dfcbf13d60511427f85990d36b90be | [
"BSD-4-Clause"
] | 2 | 2020-12-22T11:50:11.000Z | 2021-09-15T11:36:30.000Z | applications/DamApplication/DamApplication.py | clazaro/Kratos | b947b82c90dfcbf13d60511427f85990d36b90be | [
"BSD-4-Clause"
] | 3 | 2021-08-18T16:12:20.000Z | 2021-09-02T07:36:15.000Z | applications/DamApplication/DamApplication.py | clazaro/Kratos | b947b82c90dfcbf13d60511427f85990d36b90be | [
"BSD-4-Clause"
] | 1 | 2020-12-28T15:39:39.000Z | 2020-12-28T15:39:39.000Z | # makes KratosMultiphysics backward compatible with python 2.6 and 2.7
from __future__ import print_function, absolute_import, division
# Application dependent names and paths
from KratosMultiphysics import _ImportApplication
import KratosMultiphysics.StructuralMechanicsApplication
import KratosMultiphysics.Poromechan... | 38.384615 | 70 | 0.877756 | 46 | 499 | 9.304348 | 0.565217 | 0.11215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008772 | 0.086172 | 499 | 12 | 71 | 41.583333 | 0.929825 | 0.212425 | 0 | 0 | 0 | 0 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
16b6fd7515208a3c81fd7a949d6b0454e87c7c8b | 55,848 | py | Python | ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/fipElpSwAccFcf_template.py | OpenIxia/ixnetwork_restpy | f628db450573a104f327cf3c737ca25586e067ae | [
"MIT"
] | 20 | 2019-05-07T01:59:14.000Z | 2022-02-11T05:24:47.000Z | ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/fipElpSwAccFcf_template.py | OpenIxia/ixnetwork_restpy | f628db450573a104f327cf3c737ca25586e067ae | [
"MIT"
] | 60 | 2019-04-03T18:59:35.000Z | 2022-02-22T12:05:05.000Z | ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/fipElpSwAccFcf_template.py | OpenIxia/ixnetwork_restpy | f628db450573a104f327cf3c737ca25586e067ae | [
"MIT"
] | 13 | 2019-05-20T10:48:31.000Z | 2021-10-06T07:45:44.000Z | from ixnetwork_restpy.base import Base
from ixnetwork_restpy.files import Files
class FipElpSwAccFcf(Base):
__slots__ = ()
_SDM_NAME = 'fipElpSwAccFcf'
_SDM_ATT_MAP = {
'HeaderFipVersion': 'fipElpSwAccFcf.header.fipVersion-1',
'HeaderFipReserved': 'fipElpSwAccFcf.header.fipReserved-2',
... | 60.441558 | 532 | 0.792365 | 3,608 | 55,848 | 12.116131 | 0.127217 | 0.024385 | 0.03564 | 0.024088 | 0.473018 | 0.45831 | 0.429807 | 0.409631 | 0.270639 | 0.237356 | 0 | 0.011655 | 0.14885 | 55,848 | 923 | 533 | 60.507042 | 0.907984 | 0.128187 | 0 | 0.389294 | 0 | 0.012165 | 0.538307 | 0.523619 | 0 | 0 | 0 | 0 | 0 | 1 | 0.199513 | false | 0 | 0.199513 | 0.002433 | 0.605839 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
16b90b1c6d800910aaf9296fb311e854caf5c49d | 371 | py | Python | EngLearner/Forum/forms.py | jiangyifan123/EngLearner | a54c205a6e6bf3b2af366b56a7b7f97344fa1466 | [
"bzip2-1.0.6"
] | null | null | null | EngLearner/Forum/forms.py | jiangyifan123/EngLearner | a54c205a6e6bf3b2af366b56a7b7f97344fa1466 | [
"bzip2-1.0.6"
] | null | null | null | EngLearner/Forum/forms.py | jiangyifan123/EngLearner | a54c205a6e6bf3b2af366b56a7b7f97344fa1466 | [
"bzip2-1.0.6"
] | null | null | null | from django import forms
class New_page_form(forms.Form):
title = forms.CharField(required = True, min_length = 1, max_length = 30, error_messages = {"required": "名字不能为空或者超过30个字"})
area = forms.CharField(required = True, min_length = 0, max_length = 2000, error_messages={
"required": "内容不能为空",
"min_length"... | 37.1 | 123 | 0.698113 | 46 | 371 | 5.413043 | 0.543478 | 0.108434 | 0.176707 | 0.208835 | 0.281125 | 0.281125 | 0 | 0 | 0 | 0 | 0 | 0.044872 | 0.15903 | 371 | 9 | 124 | 41.222222 | 0.753205 | 0 | 0 | 0 | 0 | 0 | 0.199461 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 2 |
16bba4d781d778523c294bb580ab1618d31c3aba | 784 | py | Python | indico/modules/events/notes/__init__.py | uxmaster/indico | ecd19f17ef6fdc9f5584f59c87ec647319ce5d31 | [
"MIT"
] | 1 | 2019-11-03T11:34:16.000Z | 2019-11-03T11:34:16.000Z | indico/modules/events/notes/__init__.py | NP-compete/indico | 80db7ca0ef9d1f3240a16b9ff2d84bf0bf26c549 | [
"MIT"
] | null | null | null | indico/modules/events/notes/__init__.py | NP-compete/indico | 80db7ca0ef9d1f3240a16b9ff2d84bf0bf26c549 | [
"MIT"
] | null | null | null | # This file is part of Indico.
# Copyright (C) 2002 - 2019 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
from __future__ import unicode_literals
from indico.core import signals
from indico.core.logger import Lo... | 29.037037 | 92 | 0.783163 | 111 | 784 | 5.405405 | 0.576577 | 0.066667 | 0.046667 | 0.076667 | 0.113333 | 0.113333 | 0 | 0 | 0 | 0 | 0 | 0.011747 | 0.131378 | 784 | 26 | 93 | 30.153846 | 0.86931 | 0.255102 | 0 | 0 | 0 | 0 | 0.020797 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.416667 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 2 |
16c02a8b4f1196552ac457b8cc4ae1e6eb9e8794 | 536 | py | Python | todo-piranha-form/todopiranhaform/forms.py | areski/todo-piranha | 99c3ede5d997eb90974476673aba53f9111b859b | [
"MIT"
] | 1 | 2015-06-06T01:31:21.000Z | 2015-06-06T01:31:21.000Z | todo-piranha-form/todopiranhaform/forms.py | areski/todo-piranha | 99c3ede5d997eb90974476673aba53f9111b859b | [
"MIT"
] | null | null | null | todo-piranha-form/todopiranhaform/forms.py | areski/todo-piranha | 99c3ede5d997eb90974476673aba53f9111b859b | [
"MIT"
] | null | null | null | from wtforms import Form, BooleanField, StringField, validators
# from wtforms import HiddenField
from wtforms import PasswordField
class LoginForm(Form):
login = StringField('Username', [validators.Length(min=4, max=40)])
password = PasswordField('password', [validators.Length(min=4, max=40)])
class TaskFo... | 33.5 | 76 | 0.666045 | 55 | 536 | 6.490909 | 0.509091 | 0.092437 | 0.142857 | 0.112045 | 0.140056 | 0.140056 | 0 | 0 | 0 | 0 | 0 | 0.023641 | 0.210821 | 536 | 15 | 77 | 35.733333 | 0.820331 | 0.113806 | 0 | 0 | 0 | 0 | 0.055085 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.222222 | 0.222222 | 0 | 0.888889 | 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 | 1 | 0 | 0 | 2 |
16cc0207a6c57808017998485cb291e9d4eec4d3 | 596 | py | Python | api/routers.py | photoboard/photoboard-django | 732a7ba39581de12f142d4180ddb0d2007807cdf | [
"MIT"
] | null | null | null | api/routers.py | photoboard/photoboard-django | 732a7ba39581de12f142d4180ddb0d2007807cdf | [
"MIT"
] | null | null | null | api/routers.py | photoboard/photoboard-django | 732a7ba39581de12f142d4180ddb0d2007807cdf | [
"MIT"
] | null | null | null | from rest_framework import routers
from api.viewsets import UserViewSet, PictureViewSet, StudentViewSet, PictureServerViewSet, PictureRequestViewSet, \
SubjectGalleryViewSet
"""Defining urls for API"""
default_router = routers.DefaultRouter()
default_router.register(r'users', UserViewSet)
default_router.register(... | 45.846154 | 116 | 0.845638 | 61 | 596 | 8.114754 | 0.47541 | 0.183838 | 0.254545 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063758 | 596 | 13 | 117 | 45.846154 | 0.887097 | 0 | 0 | 0 | 0 | 0 | 0.107018 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
16d60db0368d82099cdb91a7cf5f6573918f965a | 2,056 | py | Python | patientKG/priorKnowledge/Creactive.py | rollend/PUProjectPublish | b899793229d949895343242cfc42abe4e2153b70 | [
"MIT"
] | null | null | null | patientKG/priorKnowledge/Creactive.py | rollend/PUProjectPublish | b899793229d949895343242cfc42abe4e2153b70 | [
"MIT"
] | null | null | null | patientKG/priorKnowledge/Creactive.py | rollend/PUProjectPublish | b899793229d949895343242cfc42abe4e2153b70 | [
"MIT"
] | null | null | null | # Copyright 2018 The GraphNets Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | 43.744681 | 82 | 0.672665 | 269 | 2,056 | 5.100372 | 0.434944 | 0.124636 | 0.193878 | 0.26312 | 0.312682 | 0.145044 | 0.055394 | 0 | 0 | 0 | 0 | 0.00984 | 0.209144 | 2,056 | 46 | 83 | 44.695652 | 0.833948 | 0.7393 | 0 | 0 | 0 | 0 | 0.192 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
16dc46de783f880ec7c3f1302b84604ea70904de | 652 | py | Python | Python/prokaryote/upload/forms.py | MR-biosoft/AnnotationWebsite | 963c166a65c59aff299ceac034ba2f0ca19f4553 | [
"MIT"
] | 1 | 2021-12-16T17:23:08.000Z | 2021-12-16T17:23:08.000Z | Python/prokaryote/upload/forms.py | MR-biosoft/AnnotationWebsite | 963c166a65c59aff299ceac034ba2f0ca19f4553 | [
"MIT"
] | null | null | null | Python/prokaryote/upload/forms.py | MR-biosoft/AnnotationWebsite | 963c166a65c59aff299ceac034ba2f0ca19f4553 | [
"MIT"
] | 1 | 2021-12-09T12:03:56.000Z | 2021-12-09T12:03:56.000Z | """ Custom forms for file handling """
from django import forms
class UploadFileForm(forms.Form):
"""Basic file form"""
FILE_TYPE_CHOICES = (
("genome", "genome"),
("genes", "genes"),
("proteins", "proteins"),
)
file = forms.FileField(required=True)
specie = forms.CharFie... | 27.166667 | 60 | 0.673313 | 74 | 652 | 5.810811 | 0.459459 | 0.055814 | 0.125581 | 0.181395 | 0.386047 | 0.176744 | 0.176744 | 0 | 0 | 0 | 0 | 0.00759 | 0.191718 | 652 | 23 | 61 | 28.347826 | 0.808349 | 0.246933 | 0 | 0 | 0 | 0 | 0.080338 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 2 |
bc47b70be88df391d134929b7837318ed191d7a4 | 456 | py | Python | apps/bible/utils/translations.py | goztrk/django-htk | c56bf112e5d627780d2f4288460eae5cce80fa9e | [
"MIT"
] | 206 | 2015-10-15T07:05:08.000Z | 2021-02-19T11:48:36.000Z | apps/bible/utils/translations.py | goztrk/django-htk | c56bf112e5d627780d2f4288460eae5cce80fa9e | [
"MIT"
] | 8 | 2017-10-16T10:18:31.000Z | 2022-03-09T14:24:27.000Z | apps/bible/utils/translations.py | goztrk/django-htk | c56bf112e5d627780d2f4288460eae5cce80fa9e | [
"MIT"
] | 61 | 2015-10-15T08:12:44.000Z | 2022-03-10T12:25:06.000Z | # HTK Imports
from htk.utils import htk_setting
from htk.utils.general import resolve_model_dynamically
def get_translation_model(translation):
translations_map = htk_setting('HTK_BIBLE_TRANSLATIONS_MAP')
translation_model_class = translations_map.get(translation.upper())
translation_model = (
res... | 30.4 | 71 | 0.780702 | 54 | 456 | 6.203704 | 0.407407 | 0.286567 | 0.18806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 456 | 14 | 72 | 32.571429 | 0.881579 | 0.024123 | 0 | 0 | 0 | 0 | 0.058691 | 0.058691 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 1 | 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 | 2 |
bc572375e66933ee687e51cd8ca4390a1f9e1514 | 1,117 | py | Python | DELL_PMBUS_F5.py | icemanzz/SPS_NM_Scripts | f7b9e05e441d35715ee98bf1e2a73765a3a8d7c9 | [
"Apache-2.0"
] | null | null | null | DELL_PMBUS_F5.py | icemanzz/SPS_NM_Scripts | f7b9e05e441d35715ee98bf1e2a73765a3a8d7c9 | [
"Apache-2.0"
] | null | null | null | DELL_PMBUS_F5.py | icemanzz/SPS_NM_Scripts | f7b9e05e441d35715ee98bf1e2a73765a3a8d7c9 | [
"Apache-2.0"
] | null | null | null | import pyipmi
import pyipmi.interfaces
import os
import re
import datetime
import os.path
import time
import math
import numpy
import mmap
import array
import getopt
import sys
from termcolor import colored
#Import path
from os_parameters_define import *
from utility_function import *
from nm_ipmi_raw_to_str import *
... | 22.34 | 114 | 0.717995 | 167 | 1,117 | 4.598802 | 0.48503 | 0.070313 | 0.067708 | 0.09375 | 0.065104 | 0.015625 | 0 | 0 | 0 | 0 | 0 | 0.026786 | 0.197851 | 1,117 | 49 | 115 | 22.795918 | 0.830357 | 0.087735 | 0 | 0 | 0 | 0 | 0.152626 | 0 | 0 | 0 | 0.019822 | 0 | 0 | 0 | null | null | 0.032258 | 0.677419 | null | null | 0.129032 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
bc66d68adc1c0ab5e9aad7362d7c37eb759821a3 | 285 | py | Python | 4-acmilannesta/code/init.py | NASA-Tournament-Lab/CDC-NLP-Occ-Injury-Coding | 7012b6726c9178ba4914b3de25578a75ad7d3e87 | [
"CC0-1.0"
] | 3 | 2020-01-16T11:56:57.000Z | 2021-04-26T21:02:37.000Z | 4-acmilannesta/code/init.py | NASA-Tournament-Lab/CDC-NLP-Occ-Injury-Coding | 7012b6726c9178ba4914b3de25578a75ad7d3e87 | [
"CC0-1.0"
] | 13 | 2020-01-28T22:20:49.000Z | 2022-02-10T01:07:42.000Z | 4-acmilannesta/code/init.py | NASA-Tournament-Lab/CDC-NLP-Occ-Injury-Coding | 7012b6726c9178ba4914b3de25578a75ad7d3e87 | [
"CC0-1.0"
] | 4 | 2020-09-30T16:34:39.000Z | 2022-02-24T14:17:46.000Z | import boto3
import os
os.environ['AWS_SHARED_CREDENTIALS_FILE'] = './AWS.txt'
s3 = boto3.Session(profile_name='default').client('s3')
for i in range(1, 16):
s3.download_file(Bucket='acmilannesta', Key='model-oof-'+str(i+1)+'.h5', Filename='/wdata/model-oof-'+str(i+1)+'.h5')
| 35.625 | 119 | 0.684211 | 46 | 285 | 4.130435 | 0.673913 | 0.084211 | 0.115789 | 0.126316 | 0.157895 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0.046512 | 0.094737 | 285 | 7 | 120 | 40.714286 | 0.689922 | 0 | 0 | 0 | 0 | 0 | 0.323741 | 0.097122 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
bc6b2b8203e99eed01f9054c08e87401cb5f3e5d | 443 | py | Python | ietf/mailinglists/factories.py | hassanakbar4/ietfdb | cabee059092ae776015410640226064331c293b7 | [
"BSD-3-Clause"
] | 25 | 2022-03-05T08:26:52.000Z | 2022-03-30T15:45:42.000Z | ietf/mailinglists/factories.py | hassanakbar4/ietfdb | cabee059092ae776015410640226064331c293b7 | [
"BSD-3-Clause"
] | 219 | 2022-03-04T17:29:12.000Z | 2022-03-31T21:16:14.000Z | ietf/mailinglists/factories.py | hassanakbar4/ietfdb | cabee059092ae776015410640226064331c293b7 | [
"BSD-3-Clause"
] | 22 | 2022-03-04T15:34:34.000Z | 2022-03-28T13:30:59.000Z | # Copyright The IETF Trust 2018-2020, All Rights Reserved
# -*- coding: utf-8 -*-
import factory
import random
from ietf.mailinglists.models import List
class ListFactory(factory.django.DjangoModelFactory):
class Meta:
model = List
name = factory.Sequence(lambda n: "list-name-%s" % n)
descripti... | 23.315789 | 72 | 0.706546 | 56 | 443 | 5.571429 | 0.75 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035912 | 0.182844 | 443 | 18 | 73 | 24.611111 | 0.825967 | 0.173815 | 0 | 0 | 0 | 0 | 0.055096 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.888889 | 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 | 1 | 0 | 0 | 2 |
bc6bb0866b9c0079a7d59faf1e41abd0ca79c0e8 | 1,965 | py | Python | tests/parser/features/iteration/test_break.py | siraben/vyper | fc9348b997b571e2b608e89b899362143f78d754 | [
"MIT"
] | 4 | 2018-09-28T20:01:47.000Z | 2022-02-22T19:54:31.000Z | tests/parser/features/iteration/test_break.py | siraben/vyper | fc9348b997b571e2b608e89b899362143f78d754 | [
"MIT"
] | 1 | 2019-02-22T23:21:51.000Z | 2019-02-23T00:46:17.000Z | tests/parser/features/iteration/test_break.py | siraben/vyper | fc9348b997b571e2b608e89b899362143f78d754 | [
"MIT"
] | 3 | 2021-04-05T15:25:53.000Z | 2021-04-05T15:26:13.000Z | from decimal import Decimal
def test_break_test(get_contract_with_gas_estimation):
break_test = """
@public
def log(n: decimal) -> int128:
c: decimal = n * 1.0
output: int128 = 0
for i in range(400):
c = c / 1.2589
if c < 1.0:
output = i
break
return output
... | 23.963415 | 56 | 0.55827 | 296 | 1,965 | 3.564189 | 0.14527 | 0.092891 | 0.132701 | 0.145024 | 0.807583 | 0.747867 | 0.696682 | 0.661611 | 0.587678 | 0.544076 | 0 | 0.103627 | 0.312468 | 1,965 | 81 | 57 | 24.259259 | 0.677276 | 0 | 0 | 0.628571 | 0 | 0 | 0.518575 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.042857 | false | 0.042857 | 0.014286 | 0 | 0.1 | 0.042857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 2 |
bc795bc7fc1511b3c935cfae3131c628e20334b1 | 851 | py | Python | src/sentry/models/projectbookmark.py | lauryndbrown/sentry | c5304e303966566386f5e61df1b72624a30803b4 | [
"BSD-3-Clause"
] | 1 | 2019-07-29T16:21:39.000Z | 2019-07-29T16:21:39.000Z | src/sentry/models/projectbookmark.py | lauryndbrown/sentry | c5304e303966566386f5e61df1b72624a30803b4 | [
"BSD-3-Clause"
] | 1 | 2020-11-05T14:54:44.000Z | 2020-11-19T21:54:19.000Z | src/sentry/models/projectbookmark.py | lauryndbrown/sentry | c5304e303966566386f5e61df1b72624a30803b4 | [
"BSD-3-Clause"
] | 1 | 2017-02-09T06:36:57.000Z | 2017-02-09T06:36:57.000Z | from __future__ import absolute_import
from django.conf import settings
from django.db import models
from django.utils import timezone
from sentry.db.models import (
FlexibleForeignKey, Model, BaseManager, sane_repr
)
from sentry.models import Project
class ProjectBookmark(Model):
"""
Identifies a bookm... | 26.59375 | 85 | 0.723854 | 99 | 851 | 5.969697 | 0.515152 | 0.050761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189189 | 851 | 31 | 86 | 27.451613 | 0.856522 | 0.096357 | 0 | 0 | 0 | 0 | 0.074766 | 0.029373 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.315789 | 0 | 0.736842 | 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 | 1 | 0 | 0 | 2 |
bc8bb9abedb5d96f94c0a1440db3e774cc52b8c3 | 2,409 | py | Python | lib/python2.7/site-packages/networkx/__init__.py | nishaero/wifi-userseg-ryu | 1132f2c813b79eff755bdd1a9e73e7ad3980af7c | [
"Apache-2.0"
] | 15 | 2018-04-26T08:17:18.000Z | 2021-03-05T08:44:13.000Z | lib/python2.7/site-packages/networkx/__init__.py | nishaero/wifi-userseg-ryu | 1132f2c813b79eff755bdd1a9e73e7ad3980af7c | [
"Apache-2.0"
] | null | null | null | lib/python2.7/site-packages/networkx/__init__.py | nishaero/wifi-userseg-ryu | 1132f2c813b79eff755bdd1a9e73e7ad3980af7c | [
"Apache-2.0"
] | 6 | 2018-04-12T15:49:27.000Z | 2022-01-27T12:34:50.000Z | """
NetworkX
========
NetworkX (NX) is a Python package for the creation, manipulation, and
study of the structure, dynamics, and functions of complex networks.
https://networkx.lanl.gov/
Using
-----
Just write in Python
>>> import networkx as nx
>>> G=nx.Graph()
>>> G.add_edge(1,2)
... | 24.09 | 79 | 0.712329 | 325 | 2,409 | 5.184615 | 0.455385 | 0.099703 | 0.083086 | 0.016617 | 0.004748 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022388 | 0.165629 | 2,409 | 99 | 80 | 24.333333 | 0.81592 | 0.306766 | 0 | 0 | 0 | 0.021739 | 0.357965 | 0.023016 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.565217 | 0 | 0.565217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
bc8ee2bf75b9018e513b8746f766aa5452b3cd46 | 519 | py | Python | tareas/3/ManzanaresJorge-SalazarJesus/process.py | jorgelmp/sistop-2022-1 | 5c3b7e5215247533446aa006affe6cc64a48d989 | [
"CC-BY-4.0"
] | 6 | 2021-08-30T19:11:57.000Z | 2021-09-05T01:30:59.000Z | tareas/3/ManzanaresJorge-SalazarJesus/process.py | jorgelmp/sistop-2022-1 | 5c3b7e5215247533446aa006affe6cc64a48d989 | [
"CC-BY-4.0"
] | 13 | 2021-09-07T22:24:47.000Z | 2021-11-23T05:26:38.000Z | tareas/3/ManzanaresJorge-SalazarJesus/process.py | jorgelmp/sistop-2022-1 | 5c3b7e5215247533446aa006affe6cc64a48d989 | [
"CC-BY-4.0"
] | 33 | 2021-09-01T00:44:27.000Z | 2022-02-09T06:17:55.000Z | class Process:
def __init__(self, id, arrvl_time, exec_time):
self.id = id
self.arrvl_time = arrvl_time
self.exec_time = exec_time
self.compl_time = 0
self.timeLeft = exec_time
def execute(self, quantum):
#self.timeLeft = self.timeLeft - quantum if self.timeLeft ... | 28.833333 | 82 | 0.589595 | 63 | 519 | 4.666667 | 0.301587 | 0.326531 | 0.258503 | 0.108844 | 0.258503 | 0.258503 | 0 | 0 | 0 | 0 | 0 | 0.008721 | 0.337187 | 519 | 17 | 83 | 30.529412 | 0.84593 | 0.140655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 1 | 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 | 2 |
bc97bbf88a5a1f2547ae14df610f315d32005605 | 2,712 | py | Python | tests/test_k8s_descriptor.py | looztra/kubespl | 44f336614af806b2ca6e8f0ce2482995fa017f86 | [
"Apache-2.0"
] | 21 | 2019-07-17T06:50:30.000Z | 2021-08-31T11:30:37.000Z | tests/test_k8s_descriptor.py | looztra/kubespl | 44f336614af806b2ca6e8f0ce2482995fa017f86 | [
"Apache-2.0"
] | 16 | 2019-11-13T19:09:33.000Z | 2021-05-23T17:05:43.000Z | tests/test_k8s_descriptor.py | looztra/kubesplit | 44f336614af806b2ca6e8f0ce2482995fa017f86 | [
"Apache-2.0"
] | null | null | null | """Test the K8SDescriptor wrapper."""
import pytest
from kubesplit.k8s_descriptor import K8SDescriptor
data_for_test_get_order_prefix = [
("Namespace"),
("ServiceAccount"),
("ClusterRole"),
("Role"),
("ClusterRoleBinding"),
("RoleBinding"),
("Deployment"),
("Service"),
("Ingress"),
... | 27.12 | 73 | 0.677729 | 329 | 2,712 | 5.161094 | 0.173252 | 0.084217 | 0.074205 | 0.084806 | 0.833333 | 0.749117 | 0.6649 | 0.577739 | 0.544759 | 0.520024 | 0 | 0.008768 | 0.200959 | 2,712 | 99 | 74 | 27.393939 | 0.774804 | 0.113201 | 0 | 0.424658 | 0 | 0 | 0.098771 | 0 | 0 | 0 | 0 | 0 | 0.109589 | 1 | 0.109589 | false | 0 | 0.027397 | 0 | 0.136986 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 2 |
bc9be16eac1e18874c9fc1280418603a7187f9e9 | 445 | py | Python | date.py | blizzardzheng/python-tools-for-mongo | e69cc0394b43e44a8151a99d7f9fe88cf0942121 | [
"MIT"
] | null | null | null | date.py | blizzardzheng/python-tools-for-mongo | e69cc0394b43e44a8151a99d7f9fe88cf0942121 | [
"MIT"
] | null | null | null | date.py | blizzardzheng/python-tools-for-mongo | e69cc0394b43e44a8151a99d7f9fe88cf0942121 | [
"MIT"
] | null | null | null | #coding=gbk
#coding=utf-8
#-*- coding: UTF-8 -*-
from pymongo import MongoClient
from datetime import datetime
import sys
import re
import csv
client = MongoClient()
start = datetime(2016, 04, 01, 0, 0, 0)
end = datetime(2016, 05, 01, 0, 0, 0)
db = client['philips_gr']
result = db.surveyanswers.find({"updateTimeS... | 18.541667 | 79 | 0.683146 | 65 | 445 | 4.661538 | 0.553846 | 0.026403 | 0.066007 | 0.033003 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063492 | 0.150562 | 445 | 23 | 80 | 19.347826 | 0.738095 | 0.096629 | 0 | 0 | 0 | 0 | 0.135338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.384615 | null | null | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
bca3195b39c267551fd92a6af0754d02b6d5eca5 | 1,194 | py | Python | distributed/__init__.py | fbriol/distributed | 4863bba2b7b906cff38ef4ed6cddfd7f14650c74 | [
"BSD-3-Clause"
] | null | null | null | distributed/__init__.py | fbriol/distributed | 4863bba2b7b906cff38ef4ed6cddfd7f14650c74 | [
"BSD-3-Clause"
] | null | null | null | distributed/__init__.py | fbriol/distributed | 4863bba2b7b906cff38ef4ed6cddfd7f14650c74 | [
"BSD-3-Clause"
] | null | null | null | from . import config
from dask.config import config
from .actor import Actor, ActorFuture
from .core import connect, rpc
from .deploy import LocalCluster, Adaptive, SpecCluster, SSHCluster
from .diagnostics.progressbar import progress
from .diagnostics.plugin import WorkerPlugin, SchedulerPlugin, PipInstall
from .clien... | 28.428571 | 73 | 0.79397 | 147 | 1,194 | 6.258503 | 0.469388 | 0.03587 | 0.034783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149079 | 1,194 | 41 | 74 | 29.121951 | 0.905512 | 0 | 0 | 0 | 0 | 0 | 0.018425 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.564103 | 0 | 0.564103 | 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 | 1 | 0 | 0 | 2 |
bcb239c36bfa65045db633ccefc0a410d3fbea07 | 837 | py | Python | python/popart.ir/python_files/ops/utils.py | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | null | null | null | python/popart.ir/python_files/ops/utils.py | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | null | null | null | python/popart.ir/python_files/ops/utils.py | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | null | null | null | # Copyright (c) 2021 Graphcore Ltd. All rights reserved.
from popart.ir.tensor import Tensor
from popart.ir.graph import Graph
import popart._internal.ir as _ir
from popart.ir import dtypes
from typing import Optional
def cast_if_needed(t: Tensor, data_type: dtypes.dtype) -> Tensor:
from popart.ir.ops.cast impor... | 29.892857 | 81 | 0.692951 | 126 | 837 | 4.5 | 0.404762 | 0.070547 | 0.084656 | 0.063492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006135 | 0.221027 | 837 | 27 | 82 | 31 | 0.863497 | 0.13859 | 0 | 0 | 0 | 0 | 0.086713 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.055556 | 0.666667 | 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 | 1 | 0 | 0 | 2 |
bcb6ad4987878af8e5e24079f10056fbfd945ab9 | 492 | py | Python | rq/__init__.py | bizmate-oss/rq | f432c606904d830f23d862f2eb3280c4f3ecd889 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | rq/__init__.py | bizmate-oss/rq | f432c606904d830f23d862f2eb3280c4f3ecd889 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | rq/__init__.py | bizmate-oss/rq | f432c606904d830f23d862f2eb3280c4f3ecd889 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | # -*- coding: utf-8 -*-
# flake8: noqa
from __future__ import (absolute_import, division, print_function,
unicode_literals)
from .connections import (Connection, get_current_connection, pop_connection,
push_connection, use_connection)
from .job import cancel_job, get_c... | 35.142857 | 77 | 0.727642 | 56 | 492 | 6.035714 | 0.535714 | 0.059172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005102 | 0.203252 | 492 | 13 | 78 | 37.846154 | 0.857143 | 0.069106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
bcbcb67d92d950042db369b5c275d7bc4c91c9a0 | 5,342 | py | Python | tests/core/test_jose/test_jwk.py | jonathanunderwood/authlib | 3834a2a80876a87cdaab4240d77185179970c3ab | [
"BSD-3-Clause"
] | 1 | 2021-12-09T07:11:05.000Z | 2021-12-09T07:11:05.000Z | tests/core/test_jose/test_jwk.py | jonathanunderwood/authlib | 3834a2a80876a87cdaab4240d77185179970c3ab | [
"BSD-3-Clause"
] | null | null | null | tests/core/test_jose/test_jwk.py | jonathanunderwood/authlib | 3834a2a80876a87cdaab4240d77185179970c3ab | [
"BSD-3-Clause"
] | 2 | 2021-05-24T20:34:12.000Z | 2022-03-26T07:46:17.000Z | import unittest
from authlib.jose import JsonWebKey, jwk
from authlib.jose.rfc7517.jwk import EC_TYPES, RSA_TYPES
from authlib.common.encoding import base64_to_int
from tests.util import read_file_path
RSA_PRIVATE_KEY = read_file_path('jwk_private.json')
class JWKTest(unittest.TestCase):
def assertBase64IntEqual... | 38.157143 | 71 | 0.596406 | 653 | 5,342 | 4.698315 | 0.14242 | 0.068449 | 0.202412 | 0.224902 | 0.733377 | 0.679922 | 0.535854 | 0.508149 | 0.465776 | 0.432855 | 0 | 0.035573 | 0.242231 | 5,342 | 139 | 72 | 38.431655 | 0.722332 | 0.043804 | 0 | 0.457627 | 0 | 0 | 0.105356 | 0.04277 | 0 | 0 | 0 | 0 | 0.389831 | 1 | 0.101695 | false | 0 | 0.042373 | 0 | 0.152542 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
bcbf207ec8dd204966ed4dbfee41cc4fa0ad83e7 | 85 | py | Python | submissions/abc007/b.py | m-star18/atcoder | 08e475810516602fa088f87daf1eba590b4e07cc | [
"Unlicense"
] | 1 | 2021-05-10T01:16:28.000Z | 2021-05-10T01:16:28.000Z | submissions/abc007/b.py | m-star18/atcoder | 08e475810516602fa088f87daf1eba590b4e07cc | [
"Unlicense"
] | 3 | 2021-05-11T06:14:15.000Z | 2021-06-19T08:18:36.000Z | submissions/abc007/b.py | m-star18/atcoder | 08e475810516602fa088f87daf1eba590b4e07cc | [
"Unlicense"
] | null | null | null | a = input()
if len(a) == 1 and 'a' in a:
ans = -1
else:
ans = 'a'
print(ans)
| 12.142857 | 28 | 0.470588 | 17 | 85 | 2.352941 | 0.588235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.317647 | 85 | 6 | 29 | 14.166667 | 0.655172 | 0 | 0 | 0 | 0 | 0 | 0.023529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 1 | 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 | 2 |
bcc1b7a4722ba9c671501cb9d3661ac3f506dd02 | 1,058 | py | Python | var/spack/repos/builtin/packages/r-pcapp/package.py | RemoteConnectionManager/spack | f2967b6c16effd26ce007cf86cadbb645c574f50 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | null | null | null | var/spack/repos/builtin/packages/r-pcapp/package.py | RemoteConnectionManager/spack | f2967b6c16effd26ce007cf86cadbb645c574f50 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 17 | 2018-09-20T18:32:50.000Z | 2019-12-04T16:58:12.000Z | var/spack/repos/builtin/packages/r-pcapp/package.py | RemoteConnectionManager/spack | f2967b6c16effd26ce007cf86cadbb645c574f50 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 1 | 2019-09-21T07:45:10.000Z | 2019-09-21T07:45:10.000Z | # Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class RPcapp(RPackage):
"""Provides functions for robust PCA by projection pursuit."""
home... | 42.32 | 98 | 0.741966 | 121 | 1,058 | 6.46281 | 0.636364 | 0.02046 | 0.080563 | 0.069054 | 0.113811 | 0.086957 | 0.086957 | 0.086957 | 0 | 0 | 0 | 0.247854 | 0.119093 | 1,058 | 24 | 99 | 44.083333 | 0.591202 | 0.232514 | 0 | 0 | 0 | 0.076923 | 0.625156 | 0.358655 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.