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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0c9b6c9c5f4b186068f0fcfe5f2c329ce7772e4d | 740 | py | Python | Module 2/Chapter08/template_simple.py | real-slim-chadi/Python_Master-the-Art-of-Design-Patterns | 95ec92272374e330b04d931208abbb184c7c7908 | [
"MIT"
] | 73 | 2016-09-15T23:07:04.000Z | 2022-03-05T15:09:48.000Z | Module 2/Chapter08/template_simple.py | real-slim-chadi/Python_Master-the-Art-of-Design-Patterns | 95ec92272374e330b04d931208abbb184c7c7908 | [
"MIT"
] | null | null | null | Module 2/Chapter08/template_simple.py | real-slim-chadi/Python_Master-the-Art-of-Design-Patterns | 95ec92272374e330b04d931208abbb184c7c7908 | [
"MIT"
] | 51 | 2016-10-07T20:47:51.000Z | 2021-12-22T21:00:24.000Z | __author__ = 'Chetan'
from abc import ABCMeta, abstractmethod
class AbstractClass(metaclass=ABCMeta):
def __init__(self):
pass
@abstractmethod
def operation1(self):
pass
@abstractmethod
def operation2(self):
pass
def template_method(self):
print("Defining the... | 19.473684 | 70 | 0.660811 | 74 | 740 | 6.472973 | 0.445946 | 0.11691 | 0.091858 | 0.104384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017953 | 0.247297 | 740 | 38 | 71 | 19.473684 | 0.842011 | 0 | 0 | 0.346154 | 0 | 0 | 0.1417 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.269231 | false | 0.115385 | 0.038462 | 0 | 0.423077 | 0.115385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
0cb6a5d9b64c81ee9b97838a133419cdba2cb50d | 326 | py | Python | benchmark/mysql_benchmark.py | AlonFischer/SpatialDatabaseBench | 1fe933bd4196ba17c687f04c37cb5a34acc6d824 | [
"Apache-2.0"
] | 1 | 2020-11-17T22:56:56.000Z | 2020-11-17T22:56:56.000Z | benchmark/mysql_benchmark.py | AlonFischer/SpatialDatabaseBench | 1fe933bd4196ba17c687f04c37cb5a34acc6d824 | [
"Apache-2.0"
] | null | null | null | benchmark/mysql_benchmark.py | AlonFischer/SpatialDatabaseBench | 1fe933bd4196ba17c687f04c37cb5a34acc6d824 | [
"Apache-2.0"
] | null | null | null | from benchmark.benchmark import Benchmark
from mysqlutils.mysqladapter import MySQLAdapter
class MysqlBenchmark(Benchmark):
"""Abstract parent class for mysql benchmarks"""
def __init__(self, adapter, title, repeat_count=7):
super().__init__(title, repeat_count=repeat_count)
self.adapter = ad... | 29.636364 | 58 | 0.754601 | 37 | 326 | 6.351351 | 0.567568 | 0.140426 | 0.13617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003663 | 0.162577 | 326 | 10 | 59 | 32.6 | 0.857143 | 0.128834 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | 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 |
0cc0715c89b9cf37ccc8268295889e035e429cd7 | 4,118 | py | Python | forms.py | godsgift/gdohs | fc7fa4e010b7c508c3c1154255fa2ded0534fb1d | [
"MIT"
] | null | null | null | forms.py | godsgift/gdohs | fc7fa4e010b7c508c3c1154255fa2ded0534fb1d | [
"MIT"
] | null | null | null | forms.py | godsgift/gdohs | fc7fa4e010b7c508c3c1154255fa2ded0534fb1d | [
"MIT"
] | null | null | null | from flask_wtf import Form
from wtforms import TextField, PasswordField, validators, IntegerField, BooleanField, SelectField, SubmitField
from wtforms.validators import Required, Length, Email, ValidationError, Regexp, EqualTo, NumberRange
from wtforms.widgets import SubmitInput
class SignUp(Form):
username = TextFie... | 52.126582 | 118 | 0.723409 | 513 | 4,118 | 5.79922 | 0.220273 | 0.083025 | 0.091429 | 0.070588 | 0.63563 | 0.622521 | 0.577479 | 0.568067 | 0.49479 | 0.49479 | 0 | 0.019505 | 0.116076 | 4,118 | 78 | 119 | 52.794872 | 0.797802 | 0 | 0 | 0.357143 | 0 | 0 | 0.432492 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.357143 | 0.071429 | 0 | 0.642857 | 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 |
0cc31eec76a99a4705096b18e21f9ea4dd88bce8 | 523 | py | Python | web/pyshop/admin.py | Andrew7891-kip/Ecommerce-pyshop | 2eaa7b553789b65992cbd80f80a68fcf25ef0efd | [
"Apache-2.0"
] | null | null | null | web/pyshop/admin.py | Andrew7891-kip/Ecommerce-pyshop | 2eaa7b553789b65992cbd80f80a68fcf25ef0efd | [
"Apache-2.0"
] | null | null | null | web/pyshop/admin.py | Andrew7891-kip/Ecommerce-pyshop | 2eaa7b553789b65992cbd80f80a68fcf25ef0efd | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from .models import *
class ProductAdmin(admin.ModelAdmin):
list_display=['name','category','price_is']
prepopulated_fields = {"slug": ("name",)}
class CartAdmin(admin.ModelAdmin):
list_display=['item','user','created']
class OrderAdmin(admin.ModelAdmin):
list_displ... | 20.115385 | 47 | 0.743786 | 62 | 523 | 6.193548 | 0.516129 | 0.09375 | 0.177083 | 0.203125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108987 | 523 | 25 | 48 | 20.92 | 0.824034 | 0.049713 | 0 | 0 | 0 | 0 | 0.109091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.692308 | 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 |
0ccde3d4f64a774d9d8fa84b6c6fe3d0ad69c35d | 3,997 | py | Python | backup/guitemplates/custominvocationcutdurationdialog.py | calebtrahan/KujiIn_Python | 0599d36993fa1d5988a4cf3206a12fdbe63781d8 | [
"MIT"
] | null | null | null | backup/guitemplates/custominvocationcutdurationdialog.py | calebtrahan/KujiIn_Python | 0599d36993fa1d5988a4cf3206a12fdbe63781d8 | [
"MIT"
] | null | null | null | backup/guitemplates/custominvocationcutdurationdialog.py | calebtrahan/KujiIn_Python | 0599d36993fa1d5988a4cf3206a12fdbe63781d8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'custominvocationcutdurationdialog.ui'
#
# Created by: PyQt4 UI code generator 4.11.2
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeErro... | 60.560606 | 138 | 0.788341 | 305 | 3,997 | 10.259016 | 0.360656 | 0.060403 | 0.035155 | 0.035794 | 0.052413 | 0.052413 | 0.052413 | 0.052413 | 0.052413 | 0.052413 | 0 | 0.021789 | 0.127346 | 3,997 | 65 | 139 | 61.492308 | 0.875287 | 0.051789 | 0 | 0.117647 | 1 | 0 | 0.130619 | 0.111581 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098039 | false | 0 | 0.019608 | 0.058824 | 0.196078 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0cd1d7ce809f4555127103b9f2ebc53cd22fdca6 | 2,885 | py | Python | Curso Python Completo - Udemy/Teste/core/poo1.py | Cauenumo/Python | 6414ee2013c651e9d45cd328a381a476c6c9073b | [
"Apache-2.0"
] | null | null | null | Curso Python Completo - Udemy/Teste/core/poo1.py | Cauenumo/Python | 6414ee2013c651e9d45cd328a381a476c6c9073b | [
"Apache-2.0"
] | null | null | null | Curso Python Completo - Udemy/Teste/core/poo1.py | Cauenumo/Python | 6414ee2013c651e9d45cd328a381a476c6c9073b | [
"Apache-2.0"
] | null | null | null | # class Circle(object):
# pi = 3.14
# # O círculo é instanciado com um raio (o padrão é 1)
# def __init__(self, radius=1):
# self.radius = radius
# # Método de cálculo da área. Observe o uso de si mesmo.
# def area(self):
# return self.radius * self.radius * Circle.pi
# # Mét... | 20.316901 | 64 | 0.533449 | 367 | 2,885 | 4.06267 | 0.269755 | 0.04829 | 0.059021 | 0.034205 | 0.163649 | 0.101945 | 0.101945 | 0.033535 | 0 | 0 | 0 | 0.02887 | 0.30364 | 2,885 | 141 | 65 | 20.460993 | 0.71329 | 0.902946 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0.007092 | 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 |
0cdb9744480da6f8e1b4899b7fcf04b7238e340b | 1,551 | py | Python | MachineLearning.BayesianNetwork/python-imp/bayes_core.py | JillyMan/decision-tree | 8e2efc914aaade9cc97a2c94052bc909e50fdb48 | [
"MIT"
] | null | null | null | MachineLearning.BayesianNetwork/python-imp/bayes_core.py | JillyMan/decision-tree | 8e2efc914aaade9cc97a2c94052bc909e50fdb48 | [
"MIT"
] | 1 | 2019-12-29T13:49:52.000Z | 2019-12-29T13:49:52.000Z | MachineLearning.BayesianNetwork/python-imp/bayes_core.py | JillyMan/MachineLerningFramework | 8e2efc914aaade9cc97a2c94052bc909e50fdb48 | [
"MIT"
] | null | null | null | import math
RangeType = 'Range'
BinaryType = 'Binary'
class Hipothesis:
def __init__(self, id, name, p):
self.id = id
self.name = name
self.p = p
class Attribute:
def __init__(self, id, name, question, _type):
self.id = id
self.name = name
self.question = quest... | 23.149254 | 54 | 0.588008 | 218 | 1,551 | 3.981651 | 0.215596 | 0.073733 | 0.076037 | 0.069124 | 0.152074 | 0.0553 | 0.0553 | 0 | 0 | 0 | 0 | 0.009132 | 0.294004 | 1,551 | 66 | 55 | 23.5 | 0.783562 | 0 | 0 | 0.115385 | 0 | 0 | 0.007092 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.019231 | 0.057692 | 0.519231 | 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 |
0cdfbe0659d37b3cc8cc00e18f2f0edb48d21d4a | 3,410 | py | Python | src/scs_airnow/cmd/cmd_csv_join.py | south-coast-science/scs_airnow | 7f0657bd434aa3abe667f58bc971edaa00d0c24c | [
"MIT"
] | null | null | null | src/scs_airnow/cmd/cmd_csv_join.py | south-coast-science/scs_airnow | 7f0657bd434aa3abe667f58bc971edaa00d0c24c | [
"MIT"
] | null | null | null | src/scs_airnow/cmd/cmd_csv_join.py | south-coast-science/scs_airnow | 7f0657bd434aa3abe667f58bc971edaa00d0c24c | [
"MIT"
] | null | null | null | """
Created on 22 Feb 2019
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
source repo: scs_analysis
"""
import optparse
# --------------------------------------------------------------------------------------------------------------------
class CmdCSVJoin(object):
"""unix command line handler"""
... | 31.284404 | 118 | 0.509091 | 368 | 3,410 | 4.48913 | 0.269022 | 0.096852 | 0.058111 | 0.058111 | 0.319007 | 0.307506 | 0.2954 | 0.238499 | 0.238499 | 0.18523 | 0 | 0.017503 | 0.246041 | 3,410 | 108 | 119 | 31.574074 | 0.625049 | 0.184751 | 0 | 0.173077 | 0 | 0.038462 | 0.193501 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.019231 | 0.192308 | 0.519231 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0ce058cd8a6d65a8bc31474a1e02dc8c29923fe6 | 338 | py | Python | test/receive_message.py | unknown-admin/easymq | e29b8f63402e385059ff8c263b0e7bb8e9fbd24b | [
"Apache-2.0"
] | 1 | 2020-04-20T14:01:34.000Z | 2020-04-20T14:01:34.000Z | test/receive_message.py | unknown-admin/easymq | e29b8f63402e385059ff8c263b0e7bb8e9fbd24b | [
"Apache-2.0"
] | null | null | null | test/receive_message.py | unknown-admin/easymq | e29b8f63402e385059ff8c263b0e7bb8e9fbd24b | [
"Apache-2.0"
] | 1 | 2022-02-18T08:18:08.000Z | 2022-02-18T08:18:08.000Z | import os
from easymq.mq import MQ
def receive(headers, body):
print("---->", body)
mq = MQ(
mq_user=os.environ.get("mq_user"),
password=os.environ.get("password"),
host_and_ports=[
(os.environ.get("host"), os.environ.get("port")),
],
func=receive,
queue_name="/queue/test_queue"... | 16.095238 | 57 | 0.612426 | 47 | 338 | 4.276596 | 0.468085 | 0.179104 | 0.238806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195266 | 338 | 20 | 58 | 16.9 | 0.738971 | 0 | 0 | 0 | 0 | 0 | 0.133136 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.071429 | 0.142857 | 0 | 0.214286 | 0.071429 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
0cf0a226855cb91425b2c33151d95bfc025b95b0 | 624 | py | Python | tests/retrieve/test_segment.py | openghg/openghg | 9a05dd6fe3cee6123898b8f390cfaded08dbb408 | [
"Apache-2.0"
] | 5 | 2021-03-02T09:04:07.000Z | 2022-01-25T09:58:16.000Z | tests/retrieve/test_segment.py | openghg/openghg | 9a05dd6fe3cee6123898b8f390cfaded08dbb408 | [
"Apache-2.0"
] | 229 | 2020-09-30T15:08:39.000Z | 2022-03-31T14:23:55.000Z | tests/retrieve/test_segment.py | openghg/openghg | 9a05dd6fe3cee6123898b8f390cfaded08dbb408 | [
"Apache-2.0"
] | null | null | null | # import os
# import uuid
# import numpy as np
# import pandas as pd
# import pytest
# mocked_uuid = "00000000-0000-1111-00000-000000000000"
# @pytest.fixture(scope="session")
# def data():
# filename = "bsd.picarro.1minute.248m.dat"
# dir_path = os.path.dirname(__file__)
# test_data = "../data/proc_t... | 21.517241 | 71 | 0.674679 | 85 | 624 | 4.764706 | 0.576471 | 0.059259 | 0.054321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076321 | 0.18109 | 624 | 28 | 72 | 22.285714 | 0.716243 | 0.924679 | 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 |
0b3d35d3fa9e0c6688b8c47ccf07458bfaa3bde8 | 231 | py | Python | engine/core/it_singleton.py | torrotitans/torro_community | a3f153e69a860f0d6c831145f529d9e92193a0ae | [
"MIT"
] | 1 | 2022-01-12T08:31:59.000Z | 2022-01-12T08:31:59.000Z | engine/core/it_singleton.py | torrotitans/torro_community | a3f153e69a860f0d6c831145f529d9e92193a0ae | [
"MIT"
] | null | null | null | engine/core/it_singleton.py | torrotitans/torro_community | a3f153e69a860f0d6c831145f529d9e92193a0ae | [
"MIT"
] | 2 | 2022-01-19T06:26:32.000Z | 2022-01-26T15:25:15.000Z | #!/usr/bin/python
# -*- coding: UTF-8 -*
from db.it.db_it_mgr import it_mgr
__all__ = {"itSingleton"}
class itSingleton():
def get_cmd_sql(self, sql):
return it_mgr.get_cmd_sql(sql)
it_singleton = itSingleton()
| 13.588235 | 38 | 0.670996 | 35 | 231 | 4.057143 | 0.6 | 0.105634 | 0.126761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005319 | 0.186147 | 231 | 16 | 39 | 14.4375 | 0.75 | 0.160173 | 0 | 0 | 0 | 0 | 0.057292 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 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 | 0 | 1 | 1 | 0 | 0 | 2 |
0b4a7fb8ebee09432022b77e8750863d12e69e9f | 134 | py | Python | python/pangram.py | emiliot/hackerrank | 7a3081f6b0a33f8402c63b94a6a54728a9adf47e | [
"MIT"
] | null | null | null | python/pangram.py | emiliot/hackerrank | 7a3081f6b0a33f8402c63b94a6a54728a9adf47e | [
"MIT"
] | null | null | null | python/pangram.py | emiliot/hackerrank | 7a3081f6b0a33f8402c63b94a6a54728a9adf47e | [
"MIT"
] | null | null | null | s = input().strip()
res = [c for c in set(s.lower()) if c.isalpha()]
if len(res) == 26:
print("pangram")
else:
print("not pangram")
| 19.142857 | 48 | 0.604478 | 24 | 134 | 3.375 | 0.708333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0.164179 | 134 | 6 | 49 | 22.333333 | 0.705357 | 0 | 0 | 0 | 0 | 0 | 0.134328 | 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 |
0b4afb977af41e7750f169c98501350be4fa6ae6 | 247 | py | Python | app/db/connection.py | melhin/streamchat | 8a3e7ffdcf4bc84045df71259556f4267a755351 | [
"MIT"
] | null | null | null | app/db/connection.py | melhin/streamchat | 8a3e7ffdcf4bc84045df71259556f4267a755351 | [
"MIT"
] | 3 | 2020-09-16T13:30:17.000Z | 2020-09-19T09:56:50.000Z | app/db/connection.py | melhin/streamchat | 8a3e7ffdcf4bc84045df71259556f4267a755351 | [
"MIT"
] | null | null | null | import logging
import aioredis
from app.core.config import REDIS_DSN, REDIS_PASSWORD
logger = logging.getLogger(__name__)
async def get_redis_pool():
return await aioredis.create_redis(REDIS_DSN, encoding='utf-8', password=REDIS_PASSWORD)
| 22.454545 | 92 | 0.805668 | 35 | 247 | 5.371429 | 0.657143 | 0.085106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004566 | 0.11336 | 247 | 10 | 93 | 24.7 | 0.853881 | 0 | 0 | 0 | 0 | 0 | 0.020243 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 0.5 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
0b5cea9d906ea2c35bda5ccee23fdca482e7e9b4 | 335 | py | Python | atest/testresources/testlibs/objecttoreturn.py | userzimmermann/robotframework | 7aa16338ce2120cb082605cf548c0794956ec901 | [
"Apache-2.0"
] | 7 | 2015-02-25T10:55:02.000Z | 2015-11-04T03:20:05.000Z | atest/testresources/testlibs/objecttoreturn.py | userzimmermann/robotframework | 7aa16338ce2120cb082605cf548c0794956ec901 | [
"Apache-2.0"
] | 12 | 2015-02-24T17:00:06.000Z | 2015-07-31T08:32:07.000Z | atest/testresources/testlibs/objecttoreturn.py | userzimmermann/robotframework | 7aa16338ce2120cb082605cf548c0794956ec901 | [
"Apache-2.0"
] | 2 | 2015-12-15T11:00:35.000Z | 2018-02-24T18:11:24.000Z | try:
import exceptions
except ImportError: # Python 3
import builtins as exceptions
class ObjectToReturn:
def __init__(self, name):
self.name = name
def __str__(self):
return self.name
def exception(self, name, msg=""):
exception = getattr(exceptions, name)
raise ... | 19.705882 | 45 | 0.647761 | 38 | 335 | 5.5 | 0.552632 | 0.15311 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004082 | 0.268657 | 335 | 16 | 46 | 20.9375 | 0.84898 | 0.023881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 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 |
0b61cadfab29026982ee72c19310998fdc907aa6 | 1,312 | py | Python | aio_binance/futures/usdt/api/methods/stream.py | GRinvest/aiobinance | 49ce0bdf955d9fa9363c41eb9cec3da2f121e611 | [
"MIT"
] | 5 | 2022-01-30T19:32:16.000Z | 2022-03-12T15:00:13.000Z | aio_binance/futures/usdt/api/methods/stream.py | GRinvest/aio-binance-library | 49ce0bdf955d9fa9363c41eb9cec3da2f121e611 | [
"MIT"
] | null | null | null | aio_binance/futures/usdt/api/methods/stream.py | GRinvest/aio-binance-library | 49ce0bdf955d9fa9363c41eb9cec3da2f121e611 | [
"MIT"
] | null | null | null |
class DataStream:
async def create_private_listen_key(self) -> dict:
"""**Create a ListenKey (USER_STREAM)**
Notes:
``POST /fapi/v1/listenKey``
See Also:
https://binance-docs.github.io/apidocs/futures/en/#start-user-data-stream-user_stream
"""
retu... | 29.155556 | 101 | 0.55564 | 142 | 1,312 | 4.943662 | 0.288732 | 0.111111 | 0.136752 | 0.08547 | 0.817664 | 0.608262 | 0.564103 | 0.564103 | 0.452991 | 0.264957 | 0 | 0.006689 | 0.316311 | 1,312 | 44 | 102 | 29.818182 | 0.77592 | 0 | 0 | 0.315789 | 0 | 0 | 0.226115 | 0.119427 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 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 |
0b71623dce279f8394f45396a0c88a69e51e39e7 | 272 | py | Python | 3d_cnn/src/constants/particles.py | mrmattuschka/DeePiCt | ef3e81ea25705076f340175d97ccff98f8d11799 | [
"Apache-2.0"
] | null | null | null | 3d_cnn/src/constants/particles.py | mrmattuschka/DeePiCt | ef3e81ea25705076f340175d97ccff98f8d11799 | [
"Apache-2.0"
] | 2 | 2022-03-08T09:22:23.000Z | 2022-03-20T21:13:07.000Z | 3d_cnn/src/constants/particles.py | ZauggGroup/DeePiCt | 0bdf1cd845cc306e66e30face1010c12ca3a38d0 | [
"Apache-2.0"
] | null | null | null | from os.path import join
def create_particle_file_name(folder_path: str, img_number: int,
coord_indx: int, ext: str) -> str:
file_name = str(img_number) + 'particle' + str(coord_indx) + '.' + ext
return join(folder_path, file_name)
| 34 | 74 | 0.636029 | 38 | 272 | 4.263158 | 0.5 | 0.148148 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253676 | 272 | 7 | 75 | 38.857143 | 0.79803 | 0 | 0 | 0 | 0 | 0 | 0.033088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
0ba8551d5076fefbf31d48a58d0338bdc2763c0b | 181 | py | Python | src/misc/helpers.py | dnmarkon/kaggle_elo_merchant | 92ac552d72234455455c95f53e6091017f048504 | [
"MIT"
] | null | null | null | src/misc/helpers.py | dnmarkon/kaggle_elo_merchant | 92ac552d72234455455c95f53e6091017f048504 | [
"MIT"
] | null | null | null | src/misc/helpers.py | dnmarkon/kaggle_elo_merchant | 92ac552d72234455455c95f53e6091017f048504 | [
"MIT"
] | null | null | null | import pandas as pd
def one_hot(df, column):
df = pd.concat([df, pd.get_dummies(df[column], prefix=column)], axis=1)
df.drop([column], axis=1, inplace=True)
return df
| 22.625 | 75 | 0.662983 | 31 | 181 | 3.806452 | 0.612903 | 0.135593 | 0.186441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013423 | 0.176796 | 181 | 7 | 76 | 25.857143 | 0.778523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 |
0baa80eb9ba40c6d66b4f05785427f91545460d9 | 81 | py | Python | Extensions/BabaGUI/config.py | siva-msft/baba-is-auto | 3237b5b70167130558827979bde7dcee14ef39f3 | [
"MIT"
] | 108 | 2019-09-11T06:31:35.000Z | 2022-03-28T13:02:56.000Z | Extensions/BabaGUI/config.py | siva-msft/baba-is-auto | 3237b5b70167130558827979bde7dcee14ef39f3 | [
"MIT"
] | 29 | 2019-09-12T00:28:04.000Z | 2022-02-20T14:56:27.000Z | Extensions/BabaGUI/config.py | utilForever/baba-is-auto | 11937742e25b37b1e27de87fe74d10f09062d6ce | [
"MIT"
] | 14 | 2020-02-24T05:41:43.000Z | 2022-03-28T12:43:34.000Z | import pygame
FPS = 60
BLOCK_SIZE = 48
COLOR_BACKGROUND = pygame.Color(0, 0, 0)
| 13.5 | 40 | 0.728395 | 14 | 81 | 4.071429 | 0.714286 | 0.070175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104478 | 0.17284 | 81 | 5 | 41 | 16.2 | 0.746269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
0bab9c96a95c9a1b5bf24f9a433d56e2555e1a77 | 392 | py | Python | simulation/strategies/bucketing.py | kantai/hyperbolic-caching | 884c466c311bb5b9fbdd09791d829b04032f3947 | [
"MIT"
] | 15 | 2017-07-13T17:30:01.000Z | 2021-05-18T11:51:13.000Z | simulation/strategies/bucketing.py | kantai/hyperbolic-caching | 884c466c311bb5b9fbdd09791d829b04032f3947 | [
"MIT"
] | null | null | null | simulation/strategies/bucketing.py | kantai/hyperbolic-caching | 884c466c311bb5b9fbdd09791d829b04032f3947 | [
"MIT"
] | 6 | 2017-07-13T21:09:04.000Z | 2021-04-12T15:22:57.000Z | class AveragingBucketUpkeep:
def __init__(self):
self.numer = 0.0
self.denom = 0
def add_cost(self, cost):
self.numer += cost
self.denom += 1
return self.numer / self.denom
def rem_cost(self, cost):
self.numer -= cost
self.denom -= 1
if self.... | 23.058824 | 38 | 0.543367 | 50 | 392 | 4.14 | 0.28 | 0.26087 | 0.096618 | 0.154589 | 0.570048 | 0.338164 | 0.338164 | 0.338164 | 0.338164 | 0 | 0 | 0.027778 | 0.357143 | 392 | 16 | 39 | 24.5 | 0.793651 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0baf09cfe2bff0d7d8fbadcb0dcd9e76b3f75e76 | 284 | py | Python | venv/lib/python3.8/site-packages/crispy_forms/templates/uni_form/uni_form.html.py | Solurix/Flashcards-Django | 03c863f6722936093927785a2b20b6b668bb743d | [
"MIT"
] | 1 | 2021-05-16T03:20:23.000Z | 2021-05-16T03:20:23.000Z | venv/lib/python3.8/site-packages/crispy_forms/templates/uni_form/uni_form.html.py | Solurix/Flashcards-Django | 03c863f6722936093927785a2b20b6b668bb743d | [
"MIT"
] | 4 | 2021-03-30T14:06:09.000Z | 2021-09-22T19:26:31.000Z | venv/lib/python3.8/site-packages/crispy_forms/templates/uni_form/uni_form.html.py | Solurix/Flashcards-Django | 03c863f6722936093927785a2b20b6b668bb743d | [
"MIT"
] | null | null | null | BB BBBBBBBBBBBBBBBBBB
BB BBBBBBBBBBBBBBBB
BBBBBBB BBBBBBBBBBBBBBBBBBBBBB
BBBBB
BB BBBBBBBBBB BB BB BB BBBBBBBBBB
XXXXXXXXX XXXXXXXXX
XXXXXXXXXXXXXXXXX
BBBBB
BBB BBBBB BB BBBB
BBBBBBB BBBBBBBBBBBBBB
BBBBBB
BB BBBBBBBBBB BB BB BB BBBBBBBBBB
XXXXXXXXXXX
BBBBB
| 15.777778 | 34 | 0.792254 | 32 | 284 | 7.03125 | 0.4375 | 0.213333 | 0.124444 | 0.142222 | 0.248889 | 0.248889 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207746 | 284 | 17 | 35 | 16.705882 | 1 | 0 | 0 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0bb89e9bc4b11618566c516b525db418c9d0a1b7 | 742 | py | Python | 079_039_189/ngram_2/get_10_summary.py | Aditya-AS/Question-Answering-System | 22c3fe549c03a3b5ba1f86befef3c9f91278d3fc | [
"MIT"
] | null | null | null | 079_039_189/ngram_2/get_10_summary.py | Aditya-AS/Question-Answering-System | 22c3fe549c03a3b5ba1f86befef3c9f91278d3fc | [
"MIT"
] | null | null | null | 079_039_189/ngram_2/get_10_summary.py | Aditya-AS/Question-Answering-System | 22c3fe549c03a3b5ba1f86befef3c9f91278d3fc | [
"MIT"
] | null | null | null | """
Sanjay Reddy S-2013A7PS189P
Aditya Sarma -2013A7PS079P
Vamsi T -2013A7PS039P
Artificial Intelligence Term Project
"""
import pickle
import BeautifulSoup
import re
import boto
from boto.s3.connection import S3Connection
from boto.s3.key import Key
from google import search
def get_10_summary(query, sourc... | 25.586207 | 144 | 0.669811 | 99 | 742 | 5 | 0.656566 | 0.032323 | 0.040404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051581 | 0.190027 | 742 | 28 | 145 | 26.5 | 0.772047 | 0.603774 | 0 | 0 | 0 | 0 | 0.022642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.7 | 0 | 0.9 | 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 |
0bba1e28f68dedeccae5371afea0ac4ab68e2473 | 68,549 | py | Python | tests/examples/minlplib/waterno2_03.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | 2 | 2021-07-03T13:19:10.000Z | 2022-02-06T10:48:13.000Z | tests/examples/minlplib/waterno2_03.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | 1 | 2021-07-04T14:52:14.000Z | 2021-07-15T10:17:11.000Z | tests/examples/minlplib/waterno2_03.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | null | null | null | # MINLP written by GAMS Convert at 04/21/18 13:55:18
#
# Equation counts
# Total E G L N X C B
# 617 367 103 147 0 0 0 0
#
# Variable counts
# x b i s1s s2s sc ... | 38.381299 | 117 | 0.65222 | 12,645 | 68,549 | 3.535706 | 0.101938 | 0.039545 | 0.147487 | 0.210696 | 0.619942 | 0.48715 | 0.463777 | 0.45823 | 0.427856 | 0.16292 | 0 | 0.235626 | 0.135086 | 68,549 | 1,785 | 118 | 38.402801 | 0.51846 | 0.00992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.000873 | 0 | 0.000873 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0bbb896c1f766d40e02d03530e5012bd42f6b56e | 660 | py | Python | app/schemas/treatment_type.py | DzhonPetrus/Treatment-Management | 6b08c59d2d4e79181bbae4e951b7a5fd2e3162f1 | [
"MIT"
] | null | null | null | app/schemas/treatment_type.py | DzhonPetrus/Treatment-Management | 6b08c59d2d4e79181bbae4e951b7a5fd2e3162f1 | [
"MIT"
] | null | null | null | app/schemas/treatment_type.py | DzhonPetrus/Treatment-Management | 6b08c59d2d4e79181bbae4e951b7a5fd2e3162f1 | [
"MIT"
] | null | null | null | from datetime import datetime as dt
from typing import Optional, List
from pydantic import BaseModel
from ..utils.schemaHelper import Base, as_form
class TreatmentTypeBase(Base):
name: str
room: str
description: str
fee: float
is_active: Optional[str] = None
@as_form
class CreateTreatmentTy... | 19.411765 | 46 | 0.721212 | 78 | 660 | 6.038462 | 0.487179 | 0.025478 | 0.046709 | 0.067941 | 0.135881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209091 | 660 | 34 | 47 | 19.411765 | 0.902299 | 0 | 0 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.04 | 0.16 | 0 | 0.92 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
0bc10ee1d8cb8fa794fa00533f0e4782089ee855 | 107 | py | Python | app/search/urlmap.py | Hanaasagi/Ushio | 007f8e50e68bf71a1822b09291b1236a1a37c515 | [
"MIT"
] | 5 | 2016-10-24T14:01:48.000Z | 2017-09-26T07:33:20.000Z | app/search/urlmap.py | Hanaasagi/Ushio | 007f8e50e68bf71a1822b09291b1236a1a37c515 | [
"MIT"
] | null | null | null | app/search/urlmap.py | Hanaasagi/Ushio | 007f8e50e68bf71a1822b09291b1236a1a37c515 | [
"MIT"
] | null | null | null | # -*-coding:UTF-8-*-
from handler import SearchHandler
urlpattern = (
(r'/search', SearchHandler),
)
| 13.375 | 33 | 0.654206 | 11 | 107 | 6.363636 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 0.168224 | 107 | 7 | 34 | 15.285714 | 0.775281 | 0.168224 | 0 | 0 | 0 | 0 | 0.08046 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
e7e78d1aba44146a11b4493e469f13a8468f2449 | 420 | py | Python | nimble-newts/askgrieves/chatbot/models.py | Vthechamp22/summer-code-jam-2021 | 0a8bf1f22f6c73300891fd779da36efd8e1304c1 | [
"MIT"
] | 40 | 2020-08-02T07:38:22.000Z | 2021-07-26T01:46:50.000Z | nimble-newts/askgrieves/chatbot/models.py | Vthechamp22/summer-code-jam-2021 | 0a8bf1f22f6c73300891fd779da36efd8e1304c1 | [
"MIT"
] | 134 | 2020-07-31T12:15:45.000Z | 2020-12-13T04:42:19.000Z | nimble-newts/askgrieves/chatbot/models.py | AvianAnalyst/summer-code-jam-2020 | c5e2aeb4ce399c438a1b8aad393d9c2e9ef98a75 | [
"MIT"
] | 101 | 2020-07-31T12:00:47.000Z | 2021-11-01T09:06:58.000Z | from django.db import models
class Chatbot(models.Model):
name = models.CharField(max_length=500)
def __str__(self):
return f"name={self.name}"
class WikiArticle(models.Model):
name = models.CharField(max_length=500)
summary = models.TextField(max_length=100)
full_page = models.TextFiel... | 23.333333 | 57 | 0.7 | 57 | 420 | 4.929825 | 0.421053 | 0.128114 | 0.128114 | 0.149466 | 0.548043 | 0.548043 | 0.548043 | 0.548043 | 0.291815 | 0.291815 | 0 | 0.034783 | 0.178571 | 420 | 17 | 58 | 24.705882 | 0.77971 | 0 | 0 | 0.363636 | 0 | 0 | 0.130952 | 0.052381 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0.181818 | 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 |
e7ed80b597ccfb79e5e0d84b01e14970f4384658 | 434 | py | Python | day22/day22.py | norbert-e-horn/adventofcode-2017 | 81a6a8eb6f23f2191786d1ea8b2aad1f54d9c12a | [
"Apache-2.0"
] | null | null | null | day22/day22.py | norbert-e-horn/adventofcode-2017 | 81a6a8eb6f23f2191786d1ea8b2aad1f54d9c12a | [
"Apache-2.0"
] | null | null | null | day22/day22.py | norbert-e-horn/adventofcode-2017 | 81a6a8eb6f23f2191786d1ea8b2aad1f54d9c12a | [
"Apache-2.0"
] | null | null | null | import sys
c=[[2if a=="#"else 0for a in i]for i in sys.argv[1].split("\n")]
n=len(c)
def m(x):
d[0]=(d[0]+a[d[1]]+3)%4
a[d[1]]=(x+a[d[1]])%4
if a[d[1]]==2:d[2]+=1
d[1]+=(s+(1-s)*(d[0]&1))*(-1+2*(d[0]&1^(d[0]&2)>>1))
s=1001
a=[]
k=(s-n)//2
for i in range(s):a+=[0]*k+c[i-k]+k*[0]if k<=i<(s+n)/2else[0]*s
b=list(a)
d=[... | 20.666667 | 64 | 0.495392 | 131 | 434 | 1.641221 | 0.259542 | 0.065116 | 0.111628 | 0.153488 | 0.15814 | 0.15814 | 0.15814 | 0.15814 | 0.15814 | 0.15814 | 0 | 0.154242 | 0.103687 | 434 | 20 | 65 | 21.7 | 0.398458 | 0 | 0 | 0.2 | 0 | 0 | 0.006912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.1 | 0.1 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e7f06cecae55d479e6604b53a295b76a9bdf0276 | 5,005 | py | Python | backend/tests/unit/protocols/application/test_lists.py | pez-globo/pufferfish-software | b42fecd652731dd80fbe366e95983503fced37a4 | [
"Apache-2.0"
] | 1 | 2020-10-20T23:47:23.000Z | 2020-10-20T23:47:23.000Z | backend/tests/unit/protocols/application/test_lists.py | pez-globo/pufferfish-software | b42fecd652731dd80fbe366e95983503fced37a4 | [
"Apache-2.0"
] | 242 | 2020-10-23T06:44:01.000Z | 2022-01-28T05:50:45.000Z | backend/tests/unit/protocols/application/test_lists.py | pez-globo/pufferfish-vent-software | f1e5e47acf1941e7c729adb750b85bf26c38b274 | [
"Apache-2.0"
] | 1 | 2021-04-12T02:10:18.000Z | 2021-04-12T02:10:18.000Z | """Test the functionality of protocols.application.states classes."""
from ventserver.protocols.application import lists
from ventserver.protocols.protobuf import mcu_pb as pb
def test_send_new_elements() -> None:
"""Test adding new elements to a list for sending."""
example_sequence = [
lists.Update... | 36.532847 | 77 | 0.675524 | 653 | 5,005 | 5.029096 | 0.145482 | 0.120585 | 0.098356 | 0.066991 | 0.762485 | 0.686663 | 0.642509 | 0.612667 | 0.612667 | 0.602923 | 0 | 0.022627 | 0.231768 | 5,005 | 136 | 78 | 36.801471 | 0.831469 | 0.085714 | 0 | 0.554545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007353 | 0.454545 | 1 | 0.018182 | false | 0 | 0.018182 | 0 | 0.036364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e7f7aa1ed993e5ba94893e2ddce56e42c0e3c43a | 586 | py | Python | java/test/src/main/resources/test_cross_language_invocation.py | hershg/ray | a1744f67fe954d8408c5b84e28ecccc130157f8e | [
"Apache-2.0"
] | 2 | 2017-12-15T19:36:55.000Z | 2019-02-24T16:56:06.000Z | java/test/src/main/resources/test_cross_language_invocation.py | hershg/ray | a1744f67fe954d8408c5b84e28ecccc130157f8e | [
"Apache-2.0"
] | 4 | 2019-03-04T13:03:24.000Z | 2019-06-06T11:25:07.000Z | java/test/src/main/resources/test_cross_language_invocation.py | hershg/ray | a1744f67fe954d8408c5b84e28ecccc130157f8e | [
"Apache-2.0"
] | 2 | 2017-10-31T23:20:07.000Z | 2019-11-13T20:16:03.000Z | # This file is used by CrossLanguageInvocationTest.java to test cross-language
# invocation.
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import six
import ray
@ray.remote
def py_func(value):
assert isinstance(value, bytes)
return b"Response f... | 21.703704 | 78 | 0.723549 | 81 | 586 | 5 | 0.592593 | 0.111111 | 0.118519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004202 | 0.187713 | 586 | 26 | 79 | 22.538462 | 0.846639 | 0.150171 | 0 | 0.125 | 0 | 0 | 0.054545 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.1875 | false | 0 | 0.3125 | 0 | 0.6875 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
f009b3d518e1b8520f28ad27fc966139292e346f | 15,818 | py | Python | robotpy_build/hooks_datacfg.py | ConnectionMaster/robotpy-build | 9571a84fdd6268be5e945b31ea8929d84355071a | [
"BSD-3-Clause"
] | null | null | null | robotpy_build/hooks_datacfg.py | ConnectionMaster/robotpy-build | 9571a84fdd6268be5e945b31ea8929d84355071a | [
"BSD-3-Clause"
] | null | null | null | robotpy_build/hooks_datacfg.py | ConnectionMaster/robotpy-build | 9571a84fdd6268be5e945b31ea8929d84355071a | [
"BSD-3-Clause"
] | null | null | null | #
# Defines data that is consumed by the header2whatever hooks/templates
# to modify the generated files
#
import enum
from typing import Dict, List, Tuple, Optional
from pydantic import validator
from .util import Model, _generating_documentation
class ParamData(Model):
"""Various ways to modify parameters"""
... | 29.845283 | 123 | 0.637249 | 2,012 | 15,818 | 4.962724 | 0.219185 | 0.022434 | 0.045068 | 0.014422 | 0.262394 | 0.241362 | 0.203105 | 0.186279 | 0.178067 | 0.164947 | 0 | 0.001639 | 0.267101 | 15,818 | 529 | 124 | 29.901701 | 0.859657 | 0.566886 | 0 | 0.428571 | 1 | 0 | 0.028204 | 0 | 0 | 0 | 0 | 0.00189 | 0 | 1 | 0.049689 | false | 0 | 0.024845 | 0 | 0.78882 | 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 |
f012b80503a597191471f367c16412e1f714452d | 2,396 | py | Python | new_corpus/_sympy.py | y-akinobu/multiese | e28e6424b9714c5f145f438c8502c4194b70fe25 | [
"MIT"
] | null | null | null | new_corpus/_sympy.py | y-akinobu/multiese | e28e6424b9714c5f145f438c8502c4194b70fe25 | [
"MIT"
] | null | null | null | new_corpus/_sympy.py | y-akinobu/multiese | e28e6424b9714c5f145f438c8502c4194b70fe25 | [
"MIT"
] | null | null | null | import sympy
'''
@test($$;type(sympy))
@alt(シンボル|記号|変数)
@alt(数式として、|)
[代数計算|シンボル計算|数式処理][|ライブラリ]を使う
'''
s = 'z'
sympy.symbol(s)
'''
@test(sympy=missing;$$)
数式として、sをシンボルに変換する
'''
z = sympy.symbol(s)
'''
@test(sympy=missing;$$;z)
@prefix(z;[変数|式])
数式として、sを[シンボル|変数][に|化]して、zにする
'''
e = e2 = sympy.symbol(s)
n = 2
e.subs... | 14.261905 | 55 | 0.604758 | 408 | 2,396 | 3.522059 | 0.269608 | 0.029228 | 0.211552 | 0.201113 | 0.418232 | 0.350731 | 0.350731 | 0.173974 | 0.156576 | 0.12039 | 0 | 0.013284 | 0.088898 | 2,396 | 167 | 56 | 14.347305 | 0.644984 | 0.070952 | 0 | 0 | 0 | 0 | 0.00207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.038462 | 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 |
f02ceba7181acc45bf9bae1d138dd71123a318a6 | 422 | py | Python | my_wallet/apiv1/permissions.py | ibolorino/wallet_backend | 20c80e419eaef6b0577ca45ff35bf4eb9501e3a3 | [
"MIT"
] | null | null | null | my_wallet/apiv1/permissions.py | ibolorino/wallet_backend | 20c80e419eaef6b0577ca45ff35bf4eb9501e3a3 | [
"MIT"
] | null | null | null | my_wallet/apiv1/permissions.py | ibolorino/wallet_backend | 20c80e419eaef6b0577ca45ff35bf4eb9501e3a3 | [
"MIT"
] | null | null | null | from rest_framework import permissions
class IsAadminOrReadOnly(permissions.BasePermission):
"""
The request is authenticated as a admin, or is a read-only request.
"""
def has_permission(self, request, view):
return bool(
(request.user and request.user.is_authenticated and request... | 35.166667 | 110 | 0.699052 | 52 | 422 | 5.576923 | 0.615385 | 0.151724 | 0.096552 | 0.144828 | 0.186207 | 0.186207 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225118 | 422 | 12 | 111 | 35.166667 | 0.88685 | 0.158768 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
f03ac5d7659f10dfb37b2809abf402ff19dbec0f | 338 | py | Python | Algorithms/Problems/MaximumSubarray/tests/maximum_substring_naive_test.py | Nalhin/AlgorithmsAndDataStructures | 2d2c87d0572e107c993c3c8866b8beefd4d22082 | [
"MIT"
] | 1 | 2021-11-16T13:02:25.000Z | 2021-11-16T13:02:25.000Z | Algorithms/Problems/MaximumSubarray/tests/maximum_substring_naive_test.py | Nalhin/AlgorithmsAndDataStructures | 2d2c87d0572e107c993c3c8866b8beefd4d22082 | [
"MIT"
] | null | null | null | Algorithms/Problems/MaximumSubarray/tests/maximum_substring_naive_test.py | Nalhin/AlgorithmsAndDataStructures | 2d2c87d0572e107c993c3c8866b8beefd4d22082 | [
"MIT"
] | null | null | null | from Algorithms.Problems.MaximumSubarray.maximum_substring_naive import (
maximum_subarray_naive,
)
class TestMaximumSubarrayNaive:
def test_returns_maximum_subarray(self):
data = [1, -2, 3, 10, -5, 14]
expected = [3, 10, -5, 14]
result = maximum_subarray_naive(data)
assert r... | 24.142857 | 73 | 0.683432 | 39 | 338 | 5.692308 | 0.641026 | 0.202703 | 0.18018 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053232 | 0.221893 | 338 | 13 | 74 | 26 | 0.790875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.333333 | 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 |
f0476c6057fe6e189aeed8a5c7b88b67234d582d | 78 | py | Python | svae/__init__.py | APodolskiy/SentenceVAE | afe82504922de700810b24638f7df0dbf1d8fa11 | [
"MIT"
] | null | null | null | svae/__init__.py | APodolskiy/SentenceVAE | afe82504922de700810b24638f7df0dbf1d8fa11 | [
"MIT"
] | null | null | null | svae/__init__.py | APodolskiy/SentenceVAE | afe82504922de700810b24638f7df0dbf1d8fa11 | [
"MIT"
] | null | null | null | import torch.nn as nn
RNN_TYPES = {
'lstm': nn.LSTM,
'gru': nn.GRU
}
| 11.142857 | 21 | 0.564103 | 13 | 78 | 3.307692 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.269231 | 78 | 6 | 22 | 13 | 0.754386 | 0 | 0 | 0 | 0 | 0 | 0.089744 | 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 |
f04b25d10196843175ed158d8658c6dd85f4722b | 2,009 | py | Python | src/autodoc/python/rst/base/block_quote.py | LudditeLabs/autodoc-tool | b4ae7e3b61907e7e9c3a1b534fce055e5860ffab | [
"Apache-2.0"
] | null | null | null | src/autodoc/python/rst/base/block_quote.py | LudditeLabs/autodoc-tool | b4ae7e3b61907e7e9c3a1b534fce055e5860ffab | [
"Apache-2.0"
] | null | null | null | src/autodoc/python/rst/base/block_quote.py | LudditeLabs/autodoc-tool | b4ae7e3b61907e7e9c3a1b534fce055e5860ffab | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Luddite Labs Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | 34.637931 | 79 | 0.621702 | 252 | 2,009 | 4.912698 | 0.59127 | 0.048465 | 0.029079 | 0.025848 | 0.035541 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006579 | 0.243405 | 2,009 | 57 | 80 | 35.245614 | 0.807895 | 0.797412 | 0 | 0 | 0 | 0 | 0.023256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0.1 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f04e299a6b487778e8fe610c813dd85847139172 | 529 | py | Python | tests/frontend/detector/test_fast.py | swershrimpy/gtsfm | 8d301eb3ef9172345a1ac1369fd4e19764d28946 | [
"Apache-2.0"
] | 122 | 2021-02-07T23:01:58.000Z | 2022-03-30T13:10:35.000Z | tests/frontend/detector/test_fast.py | swershrimpy/gtsfm | 8d301eb3ef9172345a1ac1369fd4e19764d28946 | [
"Apache-2.0"
] | 273 | 2021-01-30T16:45:26.000Z | 2022-03-16T15:02:33.000Z | tests/frontend/detector/test_fast.py | swershrimpy/gtsfm | 8d301eb3ef9172345a1ac1369fd4e19764d28946 | [
"Apache-2.0"
] | 13 | 2021-03-12T03:01:27.000Z | 2022-03-11T03:16:54.000Z | """Tests for frontend's FAST detector class.
Authors: Ayush Baid
"""
import unittest
import tests.frontend.detector.test_detector_base as test_detector_base
from gtsfm.frontend.detector.fast import Fast
class TestFast(test_detector_base.TestDetectorBase):
"""Test class for FAST detector class in frontend.
... | 22.041667 | 78 | 0.729679 | 67 | 529 | 5.552239 | 0.507463 | 0.096774 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181474 | 529 | 23 | 79 | 23 | 0.859122 | 0.351607 | 0 | 0 | 0 | 0 | 0.024845 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
f05afdbd5aec954079117e24e6a1f75f80dba71c | 1,523 | py | Python | Consumer_test.py | image-store-org/image-store-py-web-api-consumer-test | 59d805e8a7b459a97ede7285f6e4a67e87cfba02 | [
"MIT"
] | null | null | null | Consumer_test.py | image-store-org/image-store-py-web-api-consumer-test | 59d805e8a7b459a97ede7285f6e4a67e87cfba02 | [
"MIT"
] | null | null | null | Consumer_test.py | image-store-org/image-store-py-web-api-consumer-test | 59d805e8a7b459a97ede7285f6e4a67e87cfba02 | [
"MIT"
] | null | null | null | import sys
sys.path.append('dependencies/image-store-py-web-api-consumer')
from Consumer import Consumer
class Consumer_test:
def __init__(self):
self.c = Consumer()
def get(self):
print('\x1b[6;30;42m' + 'GET' + '\x1b[0m')
print(self.c.get())
print('{}\n'.format(self.c... | 30.46 | 69 | 0.570584 | 227 | 1,523 | 3.731278 | 0.255507 | 0.064935 | 0.063754 | 0.077922 | 0.447462 | 0.343566 | 0.201889 | 0 | 0 | 0 | 0 | 0.043814 | 0.235719 | 1,523 | 50 | 70 | 30.46 | 0.683849 | 0.143139 | 0 | 0 | 0 | 0 | 0.178599 | 0.033872 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0.2 | false | 0 | 0.057143 | 0 | 0.285714 | 0.457143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
f05bdaed59cf5073cab62db01710a16ba5ff7771 | 7,597 | py | Python | app/views.py | PaulMurrayCbr/GameNight | 838c19dda765027abbe8e12e331268b01cb859c2 | [
"Unlicense"
] | null | null | null | app/views.py | PaulMurrayCbr/GameNight | 838c19dda765027abbe8e12e331268b01cb859c2 | [
"Unlicense"
] | null | null | null | app/views.py | PaulMurrayCbr/GameNight | 838c19dda765027abbe8e12e331268b01cb859c2 | [
"Unlicense"
] | null | null | null | from app import app, db
from flask import render_template, flash, redirect, get_flashed_messages
import forms
import models
import Character
from flask.globals import request
from sqlalchemy.orm.exc import NoResultFound, MultipleResultsFound
def menugear() :
return {
'pcs': models.Character.query.all()
}
@a... | 26.939716 | 94 | 0.612874 | 1,051 | 7,597 | 4.384396 | 0.11608 | 0.022135 | 0.027344 | 0.038194 | 0.715495 | 0.655599 | 0.605252 | 0.605252 | 0.605252 | 0.605252 | 0 | 0.000165 | 0.201395 | 7,597 | 281 | 95 | 27.035587 | 0.759354 | 0 | 0 | 0.607143 | 0 | 0 | 0.205503 | 0.019352 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.03125 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f06c0a436a6bd375e7b53e8c96203ec37cc92572 | 1,624 | py | Python | tests/fixtures/specification.py | FlyingBird95/openapi_generator | df4649b9723eb89fa370b02220356b7596794069 | [
"MIT"
] | 3 | 2022-01-10T12:43:36.000Z | 2022-01-13T18:08:15.000Z | tests/fixtures/specification.py | FlyingBird95/openapi_generator | df4649b9723eb89fa370b02220356b7596794069 | [
"MIT"
] | 6 | 2021-12-09T20:08:19.000Z | 2021-12-21T13:31:54.000Z | tests/fixtures/specification.py | FlyingBird95/openapi-builder | df4649b9723eb89fa370b02220356b7596794069 | [
"MIT"
] | 2 | 2021-12-17T17:26:06.000Z | 2021-12-17T17:39:00.000Z | from pytest_factoryboy import register
from tests.factories.specification import (
CallbackFactory,
ComponentsFactory,
ContactFactory,
DiscriminatorFactory,
EncodingFactory,
ExampleFactory,
ExternalDocumentationFactory,
HeaderFactory,
InfoFactory,
LicenseFactory,
LinkFactory... | 24.606061 | 47 | 0.816502 | 110 | 1,624 | 12 | 0.381818 | 0.027273 | 0.025758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117611 | 1,624 | 65 | 48 | 24.984615 | 0.921144 | 0 | 0 | 0 | 0 | 0 | 0.031404 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.031746 | 0 | 0.031746 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f06f16ee399ccb9faac16cda8b08d3cc4df552cb | 1,480 | py | Python | projectenv/main/forms.py | rzsaglam/project-env | f4c02b15cf924ba5d69d8a4a89efcc686b73aa9c | [
"MIT"
] | null | null | null | projectenv/main/forms.py | rzsaglam/project-env | f4c02b15cf924ba5d69d8a4a89efcc686b73aa9c | [
"MIT"
] | null | null | null | projectenv/main/forms.py | rzsaglam/project-env | f4c02b15cf924ba5d69d8a4a89efcc686b73aa9c | [
"MIT"
] | null | null | null | from django import forms
from django.contrib.auth import models
from django.db.models.base import Model
from django.forms import ModelForm, fields
from .models import Paint
from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm, AuthenticationForm
c... | 27.924528 | 85 | 0.667568 | 171 | 1,480 | 5.71345 | 0.274854 | 0.071648 | 0.057318 | 0.064483 | 0.603889 | 0.560901 | 0.505629 | 0.505629 | 0.333675 | 0.333675 | 0 | 0.009565 | 0.222973 | 1,480 | 52 | 86 | 28.461538 | 0.84 | 0 | 0 | 0.525 | 0 | 0 | 0.080405 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.075 | 0.2 | 0 | 0.575 | 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 |
f0791e37af8f0e6bb45c78c7fc37667ac15c9e8a | 627 | py | Python | test/scripts/functions.py | JetBrains-Research/jpt-nb-corpus | d93ac84ff885b30ef736cd82f5ce8b09c28ef3d1 | [
"MIT"
] | 3 | 2022-03-25T10:17:22.000Z | 2022-03-27T14:13:03.000Z | test/scripts/functions.py | JetBrains-Research/Matroskin | 053ed3d7e9dffb0aee4012bc49a194e0c60217c7 | [
"MIT"
] | null | null | null | test/scripts/functions.py | JetBrains-Research/Matroskin | 053ed3d7e9dffb0aee4012bc49a194e0c60217c7 | [
"MIT"
] | 1 | 2021-07-06T16:22:11.000Z | 2021-07-06T16:22:11.000Z | # Explicit API functions
from api_functions import api_function1, api_function2
from package3 import api_function3
# API Packages
import package1, package2
import package3
from package4 import api_class1
# Defined functions
def defined_function_1(d_f_arg1, d_f_arg2):
a = api_function1(d_f_arg1)
b = (api_fun... | 24.115385 | 60 | 0.77193 | 103 | 627 | 4.291262 | 0.291262 | 0.049774 | 0.067873 | 0.047511 | 0.126697 | 0.108597 | 0.081448 | 0.081448 | 0.081448 | 0 | 0 | 0.078505 | 0.14673 | 627 | 26 | 61 | 24.115385 | 0.747664 | 0.08453 | 0 | 0 | 0 | 0 | 0.001751 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.333333 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
f082e2a2d09bf1830b2b1fcb472bd7a239f75622 | 716 | py | Python | layers/modules/fast_mask_iou.py | sebastian-ruiz/yolact | 0fdce34ddd38d8895445444f04c5a9d4e0384a3e | [
"MIT"
] | 1 | 2021-11-08T14:06:49.000Z | 2021-11-08T14:06:49.000Z | layers/modules/fast_mask_iou.py | sebastian-ruiz/yolact | 0fdce34ddd38d8895445444f04c5a9d4e0384a3e | [
"MIT"
] | null | null | null | layers/modules/fast_mask_iou.py | sebastian-ruiz/yolact | 0fdce34ddd38d8895445444f04c5a9d4e0384a3e | [
"MIT"
] | null | null | null | import torch
from torch import nn
import torch.nn.functional as F
#locals
from data.config import Config
from utils.functions import make_net
from utils.script_module_wrapper import ScriptModuleWrapper, script_method_wrapper
class FastMaskIoUNet(ScriptModuleWrapper):
def __init__(self, config:Config):
su... | 28.64 | 108 | 0.706704 | 99 | 716 | 4.818182 | 0.474747 | 0.062893 | 0.0587 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012132 | 0.194134 | 716 | 24 | 109 | 29.833333 | 0.814558 | 0.00838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.352941 | 0 | 0.588235 | 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 |
b2b2c142b45b87b8147bfd47d58eb146d6e75472 | 610 | py | Python | schoolport/app_core/migrations/0024_auto_20210513_1020.py | yotink522/schoolport | c6cfd0230ca05fb44f77c2f27c7e200828547bd5 | [
"MIT"
] | null | null | null | schoolport/app_core/migrations/0024_auto_20210513_1020.py | yotink522/schoolport | c6cfd0230ca05fb44f77c2f27c7e200828547bd5 | [
"MIT"
] | null | null | null | schoolport/app_core/migrations/0024_auto_20210513_1020.py | yotink522/schoolport | c6cfd0230ca05fb44f77c2f27c7e200828547bd5 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-05-13 02:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app_core', '0023_auto_20210513_1004'),
]
operations = [
migrations.AlterField(
model_name='tb_course',
name='pricing... | 25.416667 | 75 | 0.603279 | 68 | 610 | 5.235294 | 0.661765 | 0.11236 | 0.140449 | 0.162921 | 0.44382 | 0.44382 | 0.44382 | 0 | 0 | 0 | 0 | 0.086758 | 0.281967 | 610 | 23 | 76 | 26.521739 | 0.726027 | 0.07377 | 0 | 0.352941 | 1 | 0 | 0.134991 | 0.040853 | 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 |
b2b8a861bf96a35529dc0c381016dc12ddf8518f | 7,217 | py | Python | layers/layers.py | yangzonglin1994/yangzl-deep-text-matching | 2beadd1c2ebf2b169558b9978e0cbc66d1d25fc6 | [
"MIT"
] | 2 | 2018-08-10T20:02:44.000Z | 2018-08-10T20:02:50.000Z | layers/layers.py | yangzonglin1994/yangzl-text-matching | 2beadd1c2ebf2b169558b9978e0cbc66d1d25fc6 | [
"MIT"
] | 1 | 2018-07-30T08:54:35.000Z | 2018-07-30T08:54:35.000Z | layers/layers.py | yangzonglin1994/yangzl-text-matching | 2beadd1c2ebf2b169558b9978e0cbc66d1d25fc6 | [
"MIT"
] | null | null | null | import tensorflow as tf
from keras import backend as K
from keras.engine.topology import Layer
from keras.initializers import Ones, Zeros
from layers import transformer
class LayerNormalization(Layer):
def __init__(self, eps=1e-6, **kwargs):
super(LayerNormalization, self).__init__(**kwargs)
self... | 35.033981 | 100 | 0.620479 | 977 | 7,217 | 4.328557 | 0.146366 | 0.073303 | 0.028612 | 0.034051 | 0.476472 | 0.417593 | 0.367936 | 0.307165 | 0.253015 | 0.232679 | 0 | 0.012773 | 0.25149 | 7,217 | 205 | 101 | 35.204878 | 0.770085 | 0.113066 | 0 | 0.352113 | 0 | 0 | 0.016627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.232394 | false | 0 | 0.035211 | 0.06338 | 0.507042 | 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 |
b2c4382563bdc135f87a0336d22aa149de5f9c44 | 9,203 | py | Python | rollon_erpnext/hooks_property_setter.py | santoshbb/rhplrepo | 8ce4792ea47b66ab2b7aed9da468104a2d37ae2b | [
"MIT"
] | null | null | null | rollon_erpnext/hooks_property_setter.py | santoshbb/rhplrepo | 8ce4792ea47b66ab2b7aed9da468104a2d37ae2b | [
"MIT"
] | null | null | null | rollon_erpnext/hooks_property_setter.py | santoshbb/rhplrepo | 8ce4792ea47b66ab2b7aed9da468104a2d37ae2b | [
"MIT"
] | null | null | null | property_setter = {
"dt": "Property Setter",
"filters": [
["name", "in", [
'Purchase Order-read_only_onload',
'Purchase Order-default_print_format',
'Purchase Invoice-naming_series-options',
'Purchase Invoice-naming_series-default',
'Delivery Note-naming_series-options',
'Delivery Note-naming_seri... | 40.013043 | 61 | 0.757688 | 1,211 | 9,203 | 5.466557 | 0.123865 | 0.053021 | 0.042296 | 0.038066 | 0.425227 | 0.21148 | 0.053625 | 0 | 0 | 0 | 0 | 0.000124 | 0.122786 | 9,203 | 230 | 62 | 40.013043 | 0.819893 | 0 | 0 | 0 | 0 | 0 | 0.824424 | 0.565732 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.182609 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b2c664ce7bd387984bca2a25d6741d8d39b481e1 | 2,624 | py | Python | django/contrib/sessions/tests.py | rawwell/django | 6b3264671ead4604f26cbd2b71e8d6a02945bf0c | [
"BSD-3-Clause"
] | 1 | 2016-05-08T12:24:22.000Z | 2016-05-08T12:24:22.000Z | django/contrib/sessions/tests.py | rawwell/django | 6b3264671ead4604f26cbd2b71e8d6a02945bf0c | [
"BSD-3-Clause"
] | null | null | null | django/contrib/sessions/tests.py | rawwell/django | 6b3264671ead4604f26cbd2b71e8d6a02945bf0c | [
"BSD-3-Clause"
] | 1 | 2015-11-19T14:45:16.000Z | 2015-11-19T14:45:16.000Z | r"""
>>> from django.conf import settings
>>> from django.contrib.sessions.backends.db import SessionStore as DatabaseSession
>>> from django.contrib.sessions.backends.cache import SessionStore as CacheSession
>>> from django.contrib.sessions.backends.file import SessionStore as FileSession
>>> from django.contrib.ses... | 27.333333 | 222 | 0.722942 | 363 | 2,624 | 5.066116 | 0.247934 | 0.063622 | 0.065253 | 0.040783 | 0.324089 | 0.228385 | 0.228385 | 0.1354 | 0.1354 | 0.116911 | 0 | 0 | 0.115091 | 2,624 | 95 | 223 | 27.621053 | 0.79199 | 0.969512 | 0 | 0 | 0 | 0 | 0.112676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b2cacff06725bd2d9718bd414438fed14a74ef43 | 589 | py | Python | src/django_version_checks/apps.py | adamchainz/django-version-checks | 94f6d696f5279a7bb579c7d2a177a231d6b61e45 | [
"MIT"
] | 33 | 2020-12-13T23:02:39.000Z | 2022-03-28T06:19:09.000Z | src/django_version_checks/apps.py | adamchainz/django-version-checks | 94f6d696f5279a7bb579c7d2a177a231d6b61e45 | [
"MIT"
] | 47 | 2020-12-14T01:33:56.000Z | 2021-11-06T09:17:38.000Z | src/django_version_checks/apps.py | adamchainz/django-version-checks | 94f6d696f5279a7bb579c7d2a177a231d6b61e45 | [
"MIT"
] | 2 | 2021-11-13T22:56:21.000Z | 2022-02-15T14:24:53.000Z | from django.apps import AppConfig
from django.core.checks import Tags, register
from django_version_checks import checks
class DjangoVersionChecksAppConfig(AppConfig):
name = "django_version_checks"
verbose_name = "django-version-checks"
def ready(self) -> None:
register(Tags.compatibility)(chec... | 34.647059 | 65 | 0.7691 | 68 | 589 | 6.455882 | 0.382353 | 0.136674 | 0.129841 | 0.18451 | 0.42369 | 0.259681 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14601 | 589 | 16 | 66 | 36.8125 | 0.872763 | 0 | 0 | 0 | 0 | 0 | 0.071307 | 0.071307 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.583333 | 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 |
b2cdb0c942905c9f4fb6dbf73dca96d1a9a5f768 | 415 | py | Python | dms/v2/meal/__init__.py | moreal/DMS-api | 9624e28764ec4535002677671e10a09d762d19a8 | [
"MIT"
] | null | null | null | dms/v2/meal/__init__.py | moreal/DMS-api | 9624e28764ec4535002677671e10a09d762d19a8 | [
"MIT"
] | null | null | null | dms/v2/meal/__init__.py | moreal/DMS-api | 9624e28764ec4535002677671e10a09d762d19a8 | [
"MIT"
] | 1 | 2018-09-29T14:35:20.000Z | 2018-09-29T14:35:20.000Z | import datetime
import requests
import json
from dms.v2.config import DMS_URL
class Meal():
@staticmethod
def get(date: datetime.date or str=datetime.date.today()):
if not isinstance(date, str):
date = str(date)
resp = requests.get(f"http://{DMS_URL}/v2/meal/{date}")
mea... | 21.842105 | 66 | 0.636145 | 56 | 415 | 4.678571 | 0.553571 | 0.045802 | 0.083969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006211 | 0.224096 | 415 | 18 | 67 | 23.055556 | 0.807453 | 0 | 0 | 0 | 0 | 0 | 0.122892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
b2d18501d17a461813526ffc739b3386958593ec | 2,829 | py | Python | backend/fief/schemas/workspace.py | fief-dev/fief | cbfeec11da7a03aa345cb7ceb088b5d8ec9d6ab1 | [
"MIT"
] | 1 | 2022-02-13T17:39:42.000Z | 2022-02-13T17:39:42.000Z | backend/fief/schemas/workspace.py | fief-dev/fief | cbfeec11da7a03aa345cb7ceb088b5d8ec9d6ab1 | [
"MIT"
] | 1 | 2022-02-13T14:46:24.000Z | 2022-02-13T14:46:24.000Z | backend/fief/schemas/workspace.py | fief-dev/fief | cbfeec11da7a03aa345cb7ceb088b5d8ec9d6ab1 | [
"MIT"
] | null | null | null | from typing import Optional
from pydantic import BaseModel, root_validator, validator
from fief.crypto.encryption import decrypt
from fief.db.types import DatabaseType
from fief.errors import APIErrorCode
from fief.schemas.generics import UUIDSchema
from fief.settings import settings
def validate_all_database_setti... | 28.29 | 85 | 0.721456 | 318 | 2,829 | 6.166667 | 0.201258 | 0.097909 | 0.060683 | 0.068842 | 0.532381 | 0.445691 | 0.429373 | 0.36308 | 0.329934 | 0.329934 | 0 | 0 | 0.203252 | 2,829 | 99 | 86 | 28.575758 | 0.870009 | 0 | 0 | 0.350649 | 0 | 0 | 0.060799 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038961 | false | 0.077922 | 0.090909 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
b2d2f0394cea895eb88a51c785769332faca9031 | 844 | py | Python | blog/tasks.py | iloveyougit/ylink2 | a87d8fde79ab259012cd6486299fcf86e1afc740 | [
"MIT"
] | null | null | null | blog/tasks.py | iloveyougit/ylink2 | a87d8fde79ab259012cd6486299fcf86e1afc740 | [
"MIT"
] | null | null | null | blog/tasks.py | iloveyougit/ylink2 | a87d8fde79ab259012cd6486299fcf86e1afc740 | [
"MIT"
] | null | null | null |
from __future__ import absolute_import, unicode_literals
import string
from django.contrib.auth.models import User
from django.utils.crypto import get_random_string
from celery import shared_task, current_task
@shared_task
def create_random_user_accounts(total_user):
for i in range(total_user):
use... | 29.103448 | 87 | 0.667062 | 104 | 844 | 5.134615 | 0.461538 | 0.101124 | 0.08427 | 0.078652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015456 | 0.233412 | 844 | 28 | 88 | 30.142857 | 0.809892 | 0 | 0 | 0 | 0 | 0 | 0.079762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.125 | 0.3125 | 0 | 0.4375 | 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 |
b2e0de9c060c5c18b08f58d054b60642948a19ab | 13,975 | py | Python | SViTE/backup/sparselearning/snip.py | VITA-Group/SViTE | b0c62fd153c8b0b99917ab935ee76925c9de1149 | [
"MIT"
] | 50 | 2021-05-29T00:52:45.000Z | 2022-03-17T11:39:47.000Z | SViTE/backup/sparselearning/snip.py | VITA-Group/SViTE | b0c62fd153c8b0b99917ab935ee76925c9de1149 | [
"MIT"
] | 2 | 2022-01-16T07:24:52.000Z | 2022-03-29T01:56:24.000Z | SViTE/backup/sparselearning/snip.py | VITA-Group/SViTE | b0c62fd153c8b0b99917ab935ee76925c9de1149 | [
"MIT"
] | 6 | 2021-06-27T22:24:16.000Z | 2022-01-17T02:45:32.000Z | import torch
import torch.autograd as autograd
import torch.nn as nn
import torch.nn.functional as F
import math
import copy
import types
def fgsm_attack(image, epsilon, data_grad):
print('Attacking...')
# Collect the element-wise sign of the data gradient
sign_data_grad = data_grad.sign()
# Create th... | 34.506173 | 129 | 0.606082 | 1,878 | 13,975 | 4.347178 | 0.126731 | 0.019598 | 0.05414 | 0.037237 | 0.728564 | 0.714356 | 0.689245 | 0.681651 | 0.660828 | 0.651029 | 0 | 0.01069 | 0.270411 | 13,975 | 405 | 130 | 34.506173 | 0.790016 | 0.134025 | 0 | 0.628472 | 0 | 0 | 0.011537 | 0 | 0 | 0 | 0 | 0.002469 | 0 | 1 | 0.034722 | false | 0 | 0.024306 | 0.006944 | 0.09375 | 0.065972 | 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 |
b2e290a686a1065fd69b5d2e7d362f288caf266f | 117 | py | Python | Module01/OOP/FirstClassDef.py | fenglihanxiao/Python | 872baf3a3a5ee42740161152605ca2b1ddf4cd30 | [
"MIT"
] | null | null | null | Module01/OOP/FirstClassDef.py | fenglihanxiao/Python | 872baf3a3a5ee42740161152605ca2b1ddf4cd30 | [
"MIT"
] | null | null | null | Module01/OOP/FirstClassDef.py | fenglihanxiao/Python | 872baf3a3a5ee42740161152605ca2b1ddf4cd30 | [
"MIT"
] | null | null | null | """ First class definition"""
class Cat:
pass
class RaceCar:
pass
cat1 = Cat()
cat2 = Cat()
cat3 = Cat() | 9 | 29 | 0.589744 | 15 | 117 | 4.6 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034884 | 0.264957 | 117 | 13 | 30 | 9 | 0.767442 | 0.188034 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.285714 | 0 | 0 | 0.285714 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
b2f42395c99cb32b176d6e1140d0291edc965ff1 | 1,210 | py | Python | src/amuse/community/sei/test_sei.py | joshuawall/amuse | c2034074ee76c08057c4faa96c32044ab40952e9 | [
"Apache-2.0"
] | 1 | 2019-12-28T22:47:51.000Z | 2019-12-28T22:47:51.000Z | src/amuse/community/sei/test_sei.py | joshuawall/amuse | c2034074ee76c08057c4faa96c32044ab40952e9 | [
"Apache-2.0"
] | null | null | null | src/amuse/community/sei/test_sei.py | joshuawall/amuse | c2034074ee76c08057c4faa96c32044ab40952e9 | [
"Apache-2.0"
] | 2 | 2021-11-19T04:41:37.000Z | 2021-11-20T02:11:17.000Z | from amuse.test.amusetest import TestWithMPI
from amuse.units import nbody_system
from amuse.units import units
import os
import sys
import numpy
import math
from amuse.community.sei.interface import SeiInterface
from amuse.community.sei.interface import Sei
from amuse import datamodel
class TestSeiInterface(TestWit... | 29.512195 | 80 | 0.661157 | 168 | 1,210 | 4.690476 | 0.345238 | 0.025381 | 0.022843 | 0.020305 | 0.208122 | 0.208122 | 0.101523 | 0.101523 | 0.101523 | 0 | 0 | 0.051948 | 0.236364 | 1,210 | 40 | 81 | 30.25 | 0.800866 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.3125 | null | null | 0.09375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
65036c3303afa1e8b9728043f619a82fc6c9e04f | 261 | py | Python | demo/test_scans.py | zhanwj/multi-task-pytorch | 7d57645ec8be0ca0c258cfa99fb788e3cd37f106 | [
"MIT"
] | 2 | 2019-06-11T16:16:11.000Z | 2020-07-21T10:34:40.000Z | demo/test_scans.py | zhanwj/multi-task-pytorch | 7d57645ec8be0ca0c258cfa99fb788e3cd37f106 | [
"MIT"
] | null | null | null | demo/test_scans.py | zhanwj/multi-task-pytorch | 7d57645ec8be0ca0c258cfa99fb788e3cd37f106 | [
"MIT"
] | 2 | 2019-05-21T11:07:29.000Z | 2019-06-11T16:17:02.000Z | import torch
maxdisp = 10
disp_scans = torch.arange(maxdisp).view(1,maxdisp,1,1)
zeros_scans = torch.arange(maxdisp).view(1,maxdisp,1,1)
semseg = torch.arange(16).view(4,4)
zeros_scans = torch.cat([zeros_scans.repeat(1, repeat,1, 1) for i in range(1)],dim=0)
| 32.625 | 85 | 0.731801 | 49 | 261 | 3.816327 | 0.428571 | 0.160428 | 0.171123 | 0.245989 | 0.395722 | 0.395722 | 0.395722 | 0.395722 | 0.395722 | 0 | 0 | 0.072034 | 0.095785 | 261 | 7 | 86 | 37.285714 | 0.720339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 |
65054cfd998e3e6858fee00ff01c36b5dddea1ff | 383 | py | Python | models.py | collingreen/yaib_plugin_leavemessage | c1e7254edee5255167c2015ee2566f9770b35412 | [
"MIT"
] | null | null | null | models.py | collingreen/yaib_plugin_leavemessage | c1e7254edee5255167c2015ee2566f9770b35412 | [
"MIT"
] | 1 | 2015-06-06T06:28:45.000Z | 2015-06-06T06:28:45.000Z | models.py | collingreen/yaib_plugin_leavemessage | c1e7254edee5255167c2015ee2566f9770b35412 | [
"MIT"
] | null | null | null | from sqlalchemy import Table, Column, String, DateTime, Text
from modules.persistence import Base, getModelBase
CustomBase = getModelBase('leavemessage')
class Message(Base, CustomBase):
user = Column(String(200))
nick = Column(String(100))
message_time = Column(DateTime)
to_nick = Column(String(100... | 25.533333 | 60 | 0.723238 | 45 | 383 | 6.111111 | 0.533333 | 0.218182 | 0.116364 | 0.138182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034591 | 0.169713 | 383 | 14 | 61 | 27.357143 | 0.830189 | 0 | 0 | 0 | 0 | 0 | 0.031332 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.9 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
65106635994d91a479c18b140e8932588b6e8457 | 2,385 | py | Python | result/forms.py | Uqhs-1/uqhs | 1c7199d8c23a9d9eb3f75b1e36633a145fd2cd40 | [
"MIT"
] | 3 | 2020-06-16T20:03:31.000Z | 2021-01-17T20:45:51.000Z | result/forms.py | Uqhs-1/uqhs | 1c7199d8c23a9d9eb3f75b1e36633a145fd2cd40 | [
"MIT"
] | 8 | 2020-02-08T09:04:08.000Z | 2021-06-09T18:31:03.000Z | result/forms.py | Uqhs-1/uqhs | 1c7199d8c23a9d9eb3f75b1e36633a145fd2cd40 | [
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
"""
Created on Wed Jan 23 08:25:37 2019
@author: AdeolaOlalekan
"""
from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from .models import BTUTOR, CNAME, Edit_User, QSUBJECT, Post
class login_form(forms.Fo... | 29.8125 | 154 | 0.609224 | 267 | 2,385 | 5.307116 | 0.393258 | 0.04446 | 0.06916 | 0.097389 | 0.175018 | 0.063514 | 0.063514 | 0.063514 | 0 | 0 | 0 | 0.012575 | 0.233124 | 2,385 | 80 | 155 | 29.8125 | 0.762165 | 0.048218 | 0 | 0.207547 | 0 | 0 | 0.157556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056604 | false | 0.075472 | 0.075472 | 0 | 0.566038 | 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 |
651f360c505b719ccafc01d1fe50f1f24c9b71d7 | 117 | py | Python | pype/modules/idle_manager/__init__.py | simonebarbieri/pype | a6dc83aa1300738749cbe8e5e2e6d2d1794e0289 | [
"MIT"
] | null | null | null | pype/modules/idle_manager/__init__.py | simonebarbieri/pype | a6dc83aa1300738749cbe8e5e2e6d2d1794e0289 | [
"MIT"
] | null | null | null | pype/modules/idle_manager/__init__.py | simonebarbieri/pype | a6dc83aa1300738749cbe8e5e2e6d2d1794e0289 | [
"MIT"
] | null | null | null | from .idle_module import (
IdleManager,
IIdleManager
)
__all__ = (
"IdleManager",
"IIdleManager"
)
| 10.636364 | 26 | 0.632479 | 9 | 117 | 7.666667 | 0.777778 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.264957 | 117 | 10 | 27 | 11.7 | 0.802326 | 0 | 0 | 0 | 0 | 0 | 0.196581 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
652012211d75f39757469a76ffbd1e2d590d912a | 289 | py | Python | server/src/tests/samples/typeConstraint3.py | higoshi/pyright | 183c0ef56d2c010d28018149949cda1a40aa59b8 | [
"MIT"
] | null | null | null | server/src/tests/samples/typeConstraint3.py | higoshi/pyright | 183c0ef56d2c010d28018149949cda1a40aa59b8 | [
"MIT"
] | null | null | null | server/src/tests/samples/typeConstraint3.py | higoshi/pyright | 183c0ef56d2c010d28018149949cda1a40aa59b8 | [
"MIT"
] | null | null | null | # This sample exercises the type analyzer's assert type constraint logic.
from typing import Union
def foo(a: Union[str, int]) -> int:
if True:
# This should generate an error because
# a could be a str.
return a
assert isinstance(a, int)
return a
| 19.266667 | 73 | 0.643599 | 43 | 289 | 4.325581 | 0.697674 | 0.075269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.290657 | 289 | 14 | 74 | 20.642857 | 0.907317 | 0.439446 | 0 | 0.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
6524869e78875d68bc7830017790dd24a2253209 | 738 | py | Python | app/libpinanny/__init__.py | MelonSmasher/piNanny | 2bc3a7b5eda83615e21518a2f36c3844b241d201 | [
"MIT"
] | null | null | null | app/libpinanny/__init__.py | MelonSmasher/piNanny | 2bc3a7b5eda83615e21518a2f36c3844b241d201 | [
"MIT"
] | 2 | 2021-03-10T05:28:36.000Z | 2021-09-02T05:40:44.000Z | app/libpinanny/__init__.py | MelonSmasher/piNanny | 2bc3a7b5eda83615e21518a2f36c3844b241d201 | [
"MIT"
] | null | null | null | from subprocess import PIPE, Popen
# Converts celsius temps to fahrenheit
def c2f(celsius):
return (9.0 / 5) * celsius + 32
# Gets the CPU temperature in degrees C
def get_cpu_temperature():
process = Popen(['vcgencmd', 'measure_temp'], stdout=PIPE)
output, _error = process.communicate()
return floa... | 25.448276 | 62 | 0.609756 | 91 | 738 | 4.901099 | 0.527473 | 0.073991 | 0.080717 | 0.098655 | 0.255605 | 0.255605 | 0.255605 | 0.255605 | 0.255605 | 0.255605 | 0 | 0.013582 | 0.201897 | 738 | 28 | 63 | 26.357143 | 0.743633 | 0.100271 | 0 | 0.444444 | 0 | 0 | 0.1059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 0.055556 | 0.388889 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
6526bd14e91e02ab2897caf04024aa618b204008 | 956 | py | Python | automon/integrations/slack/config.py | TheShellLand/automonisaur | b5f304a44449b8664c93d8a8a3c3cf2d73aa0ce9 | [
"MIT"
] | 2 | 2021-09-15T18:35:44.000Z | 2022-01-18T05:36:54.000Z | automon/integrations/slack/config.py | TheShellLand/automonisaur | b5f304a44449b8664c93d8a8a3c3cf2d73aa0ce9 | [
"MIT"
] | 16 | 2021-08-29T22:51:53.000Z | 2022-03-09T16:08:19.000Z | automon/integrations/slack/config.py | TheShellLand/automonisaur | b5f304a44449b8664c93d8a8a3c3cf2d73aa0ce9 | [
"MIT"
] | null | null | null | import os
from automon.log import Logging
log = Logging(name=__name__, level=Logging.ERROR)
class ConfigSlack:
slack_name = os.getenv('SLACK_USER') or ''
slack_webhook = os.getenv('SLACK_WEBHOOK') or ''
slack_proxy = os.getenv('SLACK_PROXY') or ''
slack_token = os.getenv('SLACK_TOKEN') or ''
SL... | 35.407407 | 70 | 0.707113 | 134 | 956 | 4.671642 | 0.246269 | 0.153355 | 0.249201 | 0.223642 | 0.105431 | 0.105431 | 0.105431 | 0.105431 | 0 | 0 | 0 | 0 | 0.167364 | 956 | 26 | 71 | 36.769231 | 0.786432 | 0 | 0 | 0 | 0 | 0 | 0.218619 | 0.044979 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.105263 | 0 | 0.789474 | 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 |
652a2bec3a1bbb15dcd3f0465f2e3a5760856d24 | 182 | py | Python | z2z_metadata/__init__.py | Mitchellpkt/z2z-metadata | 261a694225efc21d65a9f3be69a9017bbc29864e | [
"MIT"
] | null | null | null | z2z_metadata/__init__.py | Mitchellpkt/z2z-metadata | 261a694225efc21d65a9f3be69a9017bbc29864e | [
"MIT"
] | null | null | null | z2z_metadata/__init__.py | Mitchellpkt/z2z-metadata | 261a694225efc21d65a9f3be69a9017bbc29864e | [
"MIT"
] | null | null | null | """Top-level package for z2z Metadata analysis."""
__author__ = """Isthmus // Mitchell P. Krawiec-Thayer"""
__email__ = 'project_z2z_metadata@mitchellpkt.com'
__version__ = '0.0.1'
| 30.333333 | 56 | 0.730769 | 23 | 182 | 5.173913 | 0.869565 | 0.184874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030864 | 0.10989 | 182 | 5 | 57 | 36.4 | 0.703704 | 0.241758 | 0 | 0 | 0 | 0 | 0.590909 | 0.272727 | 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 |
653275e0a6bf64ffd7bef701a34270c76bd37631 | 1,854 | py | Python | clisk/player/player.py | etano/clisk | 70067eb98568a97d896ee486bae56b49c77bcb11 | [
"MIT"
] | null | null | null | clisk/player/player.py | etano/clisk | 70067eb98568a97d896ee486bae56b49c77bcb11 | [
"MIT"
] | null | null | null | clisk/player/player.py | etano/clisk | 70067eb98568a97d896ee486bae56b49c77bcb11 | [
"MIT"
] | null | null | null | class Player(object):
"""Player class
Attributes:
name (str): Player name
"""
def __init__(self, name):
"""Initialize player
Args:
name (str): Player name
"""
self.name = name
def place_troops(self, board, n_troops):
"""Plac... | 26.112676 | 95 | 0.553937 | 185 | 1,854 | 5.437838 | 0.264865 | 0.059642 | 0.089463 | 0.104374 | 0.345924 | 0.316103 | 0.262425 | 0.204771 | 0.204771 | 0.109344 | 0 | 0 | 0.364078 | 1,854 | 70 | 96 | 26.485714 | 0.853265 | 0.459008 | 0 | 0 | 0 | 0 | 0.205928 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.461538 | false | 0 | 0 | 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 |
6532a25e13d94b833b61abb8bf5f04bc39b60efe | 91 | py | Python | bai03.py | trietto/python | b89b990fc509228445157465f6af3371c4b4d159 | [
"Apache-2.0"
] | null | null | null | bai03.py | trietto/python | b89b990fc509228445157465f6af3371c4b4d159 | [
"Apache-2.0"
] | null | null | null | bai03.py | trietto/python | b89b990fc509228445157465f6af3371c4b4d159 | [
"Apache-2.0"
] | null | null | null | n=int(input("Nhap vao mot so:"))
d=dict()
for i in range(1, n+1):
d[i]=i*i
print(d) | 18.2 | 32 | 0.549451 | 22 | 91 | 2.272727 | 0.681818 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.208791 | 91 | 5 | 33 | 18.2 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6536be01b7eb4b8a845b975aa35e3be000f854f3 | 1,182 | py | Python | lib/googlecloudsdk/command_lib/filestore/operations/flags.py | bshaffer/google-cloud-sdk | f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9 | [
"Apache-2.0"
] | null | null | null | lib/googlecloudsdk/command_lib/filestore/operations/flags.py | bshaffer/google-cloud-sdk | f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9 | [
"Apache-2.0"
] | null | null | null | lib/googlecloudsdk/command_lib/filestore/operations/flags.py | bshaffer/google-cloud-sdk | f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*- #
# Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | 40.758621 | 141 | 0.716582 | 163 | 1,182 | 5.147239 | 0.699387 | 0.071514 | 0.030989 | 0.038141 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014242 | 0.168359 | 1,182 | 28 | 142 | 42.214286 | 0.839268 | 0.554146 | 0 | 0 | 0 | 0.090909 | 0.826087 | 0.664032 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e8e431aaa0e0c0342df0906099d3bfe584c4dc40 | 262 | py | Python | MUNDO 1/ex023.py | athavus/Curso-em-video-Python-3 | a32be95adbccfcbe512a1ed30d3859141a230b5e | [
"MIT"
] | 1 | 2020-11-12T14:03:32.000Z | 2020-11-12T14:03:32.000Z | MUNDO 1/ex023.py | athavus/Curso-em-video-Python-3 | a32be95adbccfcbe512a1ed30d3859141a230b5e | [
"MIT"
] | null | null | null | MUNDO 1/ex023.py | athavus/Curso-em-video-Python-3 | a32be95adbccfcbe512a1ed30d3859141a230b5e | [
"MIT"
] | 1 | 2021-01-05T22:18:46.000Z | 2021-01-05T22:18:46.000Z | n1 = int(input('Digite um número entre 0 e 9999: '))
u = n1 // 1 % 10
d = n1 // 10 % 10
c = n1 // 100 % 10
m = n1 // 1000 % 10
print(f'Analisando o número {n1}')
print(f'unidade: {u}')
print(f'dezena: {d}')
print(f'centena: {c}')
print(f'milhar: {m}')
| 23.818182 | 53 | 0.549618 | 48 | 262 | 3 | 0.541667 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143564 | 0.229008 | 262 | 10 | 54 | 26.2 | 0.569307 | 0 | 0 | 0 | 0 | 0 | 0.40873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 |
e8f09f4acc1e578e6bbb291e4f8a3a87b3a0b297 | 908 | py | Python | chat/views.py | xiaoqiao99/chat | ca65ed25fbc277828390b890a50ecadf4675cfb4 | [
"MIT"
] | 2 | 2019-06-21T10:30:18.000Z | 2019-07-12T07:46:25.000Z | chat/views.py | xiaoqiao99/chat | ca65ed25fbc277828390b890a50ecadf4675cfb4 | [
"MIT"
] | 8 | 2020-06-05T19:56:53.000Z | 2022-03-11T23:41:44.000Z | chat/views.py | xiaoqiao99/chat | ca65ed25fbc277828390b890a50ecadf4675cfb4 | [
"MIT"
] | 3 | 2020-03-13T03:22:40.000Z | 2020-07-03T03:03:02.000Z | from django.shortcuts import render
# Create your views here.
# chat/views.py
from django.shortcuts import render
from django.utils.safestring import mark_safe
import json
from chat.models import Room
def index(request):
# from channels.layers import get_channel_layer
# from asgiref.sync import async_to_sync
... | 27.515152 | 93 | 0.654185 | 115 | 908 | 5.008696 | 0.46087 | 0.083333 | 0.065972 | 0.086806 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035461 | 0.223568 | 908 | 33 | 94 | 27.515152 | 0.78156 | 0.429515 | 0 | 0.133333 | 0 | 0 | 0.099602 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.333333 | 0.066667 | 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 |
e8fc72a77fdd416f9afae8ddad6132491cc5fabf | 4,405 | py | Python | c4/system/history.py | Brewgarten/c4-system-manager | 6fdec33ced4b1cb32d82a24cd168447a899b7e10 | [
"MIT"
] | null | null | null | c4/system/history.py | Brewgarten/c4-system-manager | 6fdec33ced4b1cb32d82a24cd168447a899b7e10 | [
"MIT"
] | 1 | 2017-10-17T21:51:40.000Z | 2017-10-17T21:51:40.000Z | c4/system/history.py | Brewgarten/c4-system-manager | 6fdec33ced4b1cb32d82a24cd168447a899b7e10 | [
"MIT"
] | null | null | null | """
Copyright (c) IBM 2015-2017. All Rights Reserved.
Project name: c4-system-manager
This project is licensed under the MIT License, see LICENSE
"""
from abc import ABCMeta, abstractmethod
class DeviceHistory(object):
"""
Device manager history
"""
__metaclass__ = ABCMeta
@abstractmethod
def... | 26.065089 | 90 | 0.595687 | 506 | 4,405 | 5.162055 | 0.171937 | 0.036753 | 0.039816 | 0.052067 | 0.743492 | 0.725115 | 0.690276 | 0.642802 | 0.642802 | 0.548622 | 0 | 0.003031 | 0.325993 | 4,405 | 168 | 91 | 26.220238 | 0.876726 | 0.604994 | 0 | 0.482759 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.37931 | false | 0 | 0.034483 | 0 | 0.586207 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
330bcb8284fec7ff83c5b51b2973e481ae9b2a12 | 1,376 | py | Python | app/main/models/utils.py | tmeftah/e-invoice | 7cfe31e9391eb60ab3d06f0055bd2f1e9a524971 | [
"MIT"
] | 2 | 2019-06-10T19:30:06.000Z | 2020-04-30T01:05:04.000Z | app/main/models/utils.py | tmeftah/e-invoice | 7cfe31e9391eb60ab3d06f0055bd2f1e9a524971 | [
"MIT"
] | null | null | null | app/main/models/utils.py | tmeftah/e-invoice | 7cfe31e9391eb60ab3d06f0055bd2f1e9a524971 | [
"MIT"
] | 3 | 2019-01-23T21:37:29.000Z | 2020-04-08T13:22:29.000Z | from datetime import datetime
import sqlalchemy as sa
from flask_sqlalchemy import Model
from sqlalchemy import ForeignKey
from sqlalchemy.ext.declarative import declared_attr
from sqlalchemy.orm import relationship
from app.main.extensions import db
class BaseMixin(Model):
def save_to_db(self):
try:
... | 23.322034 | 62 | 0.634448 | 157 | 1,376 | 5.44586 | 0.324841 | 0.098246 | 0.105263 | 0.079532 | 0.423392 | 0.381287 | 0.318129 | 0.215205 | 0.215205 | 0.105263 | 0 | 0 | 0.277616 | 1,376 | 58 | 63 | 23.724138 | 0.860161 | 0 | 0 | 0.409091 | 0 | 0 | 0.024709 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.159091 | 0.136364 | 0.522727 | 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 |
33119609fa28c4ed894cccea42375ff194c70e59 | 4,719 | py | Python | mboxstats/mboxstats.py | ruettet/mailboxstatistics | ba1296ca441ab646fc92b9bcc5962a8ccf532f19 | [
"Apache-2.0"
] | null | null | null | mboxstats/mboxstats.py | ruettet/mailboxstatistics | ba1296ca441ab646fc92b9bcc5962a8ccf532f19 | [
"Apache-2.0"
] | null | null | null | mboxstats/mboxstats.py | ruettet/mailboxstatistics | ba1296ca441ab646fc92b9bcc5962a8ccf532f19 | [
"Apache-2.0"
] | null | null | null | import codecs
import locale
from mailbox import mbox
from re import sub
from re import compile
from re import IGNORECASE
from datetime import datetime
from collections import Counter
class MailboxStatistics(object):
def __init__(self):
""" Generic MailboxStatistics object that contains the statistics calc... | 43.293578 | 116 | 0.647171 | 618 | 4,719 | 4.68932 | 0.20712 | 0.05245 | 0.038647 | 0.046929 | 0.376121 | 0.291235 | 0.284334 | 0.204279 | 0.118357 | 0.091442 | 0 | 0.003922 | 0.243484 | 4,719 | 109 | 117 | 43.293578 | 0.807843 | 0.342022 | 0 | 0 | 0 | 0 | 0.049653 | 0 | 0 | 0 | 0 | 0.009174 | 0 | 1 | 0.254902 | false | 0 | 0.156863 | 0.078431 | 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 |
331f06145206acb198e0044dbd6333cd441dd2cf | 1,073 | py | Python | doc/programming/parts/python-columninfo.py | laigor/sqlrelay-non-english-fixes- | 7803f862ddbf88bca078c50d621c64c22fc0a405 | [
"PHP-3.01",
"CC-BY-3.0"
] | 16 | 2018-04-23T09:58:33.000Z | 2022-01-31T13:40:20.000Z | doc/programming/parts/python-columninfo.py | laigor/sqlrelay-non-english-fixes- | 7803f862ddbf88bca078c50d621c64c22fc0a405 | [
"PHP-3.01",
"CC-BY-3.0"
] | null | null | null | doc/programming/parts/python-columninfo.py | laigor/sqlrelay-non-english-fixes- | 7803f862ddbf88bca078c50d621c64c22fc0a405 | [
"PHP-3.01",
"CC-BY-3.0"
] | 4 | 2020-12-23T12:17:54.000Z | 2022-01-04T20:46:34.000Z | from SQLRelay import PySQLRClient
con=PySQLRClient.sqlrconnection('sqlrserver',9000,'/tmp/example.socket','user','password',0,1)
cur=PySQLRClient.sqlrcursor(con)
cur.sendQuery('select * from my_table')
con.endSession()
for i in range(0,cur.colCount()-1):
print 'Name: ', cur.getColumnName(i)
... | 44.708333 | 94 | 0.629077 | 112 | 1,073 | 6.017857 | 0.544643 | 0.115727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009816 | 0.240447 | 1,073 | 23 | 95 | 46.652174 | 0.817178 | 0 | 0 | 0 | 0 | 0 | 0.254427 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.05 | 0.05 | null | null | 0.7 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
33257a0af8469e27f7a0ccf12276dbf023a6e9b0 | 276 | py | Python | pythonx/lints/vim/vint.py | maralla/validator.vim | fd5ec0891cbd035bd572e74d684b8afd852b87bf | [
"MIT"
] | 255 | 2016-09-08T12:12:26.000Z | 2022-03-10T01:50:06.000Z | pythonx/lints/vim/vint.py | maralla/vim-fixup | fd5ec0891cbd035bd572e74d684b8afd852b87bf | [
"MIT"
] | 56 | 2016-09-09T05:53:24.000Z | 2020-11-11T16:02:05.000Z | pythonx/lints/vim/vint.py | maralla/vim-linter | fd5ec0891cbd035bd572e74d684b8afd852b87bf | [
"MIT"
] | 23 | 2016-09-09T13:37:51.000Z | 2019-04-08T22:31:24.000Z | # -*- coding: utf-8 -*-
from validator import Validator
class VimVint(Validator):
__filetype__ = 'vim'
checker = 'vint'
args = '-w --no-color'
regex = r"""
.+?:
(?P<lnum>\d+):
(?P<col>\d+):
\s(?P<text>.+)"""
| 17.25 | 31 | 0.434783 | 29 | 276 | 4 | 0.827586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005556 | 0.347826 | 276 | 15 | 32 | 18.4 | 0.638889 | 0.076087 | 0 | 0 | 0 | 0 | 0.462451 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
3335e848cff8038f4a309c43400a1a6a921170c6 | 985 | py | Python | isomyr/tests/test_thing.py | dave-leblanc/isomyr | 2eae8067687408ba48e0a88de97fbd4fe6d57848 | [
"BSD-3-Clause"
] | null | null | null | isomyr/tests/test_thing.py | dave-leblanc/isomyr | 2eae8067687408ba48e0a88de97fbd4fe6d57848 | [
"BSD-3-Clause"
] | null | null | null | isomyr/tests/test_thing.py | dave-leblanc/isomyr | 2eae8067687408ba48e0a88de97fbd4fe6d57848 | [
"BSD-3-Clause"
] | null | null | null | from unittest import TestCase
from isomyr.thing import Thing
from isomyr.world.world import Scene
class ThingOfThingsRemoveObjectTestCase(TestCase):
def setUp(self):
self.scene = Scene(0)
self.scene.addObject(Thing(name="apple"))
self.scene.addObject(Thing(name="orange"))
self.sc... | 29.848485 | 59 | 0.684264 | 112 | 985 | 5.982143 | 0.303571 | 0.147761 | 0.113433 | 0.137313 | 0.423881 | 0.343284 | 0.343284 | 0.343284 | 0.214925 | 0.214925 | 0 | 0.006378 | 0.204061 | 985 | 32 | 60 | 30.78125 | 0.848214 | 0 | 0 | 0.333333 | 0 | 0 | 0.022335 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.208333 | false | 0.083333 | 0.125 | 0 | 0.375 | 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 |
33442932bed34ae8a7cfa58a82b7cd61d3e5042f | 145 | py | Python | tests/conftest.py | Anishmourya/flask-restx-api | 6e64a22ce14dd97d69809c3b50cb5781918fd1d4 | [
"MIT"
] | 3 | 2020-04-01T15:10:59.000Z | 2021-09-30T13:00:20.000Z | tests/conftest.py | Anishmourya/flask-restx-api | 6e64a22ce14dd97d69809c3b50cb5781918fd1d4 | [
"MIT"
] | null | null | null | tests/conftest.py | Anishmourya/flask-restx-api | 6e64a22ce14dd97d69809c3b50cb5781918fd1d4 | [
"MIT"
] | null | null | null | import pytest
from app import create_app
@pytest.fixture
def client():
app = create_app()
client = app.test_client()
return client
| 14.5 | 30 | 0.703448 | 20 | 145 | 4.95 | 0.5 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213793 | 145 | 9 | 31 | 16.111111 | 0.868421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 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 |
3353952224984b77381aeb9e737b1658da3774db | 727 | py | Python | src/bioregistry/export/cli.py | biopragmatics/bioregistry | 1c994b97f5bfe7151e01edb8e6a26edbaa30f33c | [
"MIT"
] | 17 | 2021-09-14T17:58:16.000Z | 2022-03-11T06:22:11.000Z | src/bioregistry/export/cli.py | biopragmatics/bioregistry | 1c994b97f5bfe7151e01edb8e6a26edbaa30f33c | [
"MIT"
] | 148 | 2021-09-18T08:52:46.000Z | 2022-03-23T15:57:35.000Z | src/bioregistry/export/cli.py | biopragmatics/bioregistry | 1c994b97f5bfe7151e01edb8e6a26edbaa30f33c | [
"MIT"
] | 9 | 2021-09-28T20:18:53.000Z | 2022-03-14T17:23:35.000Z | # -*- coding: utf-8 -*-
"""Export the Bioregistry."""
import click
@click.command()
@click.pass_context
def export(ctx: click.Context):
"""Export the Bioregistry."""
from .prefix_maps import generate_contexts
from .rdf_export import export_rdf
from .sssom_export import export_sssom
from .tables_... | 23.451613 | 48 | 0.727648 | 95 | 727 | 5.252632 | 0.294737 | 0.126253 | 0.216433 | 0.076152 | 0.1002 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001672 | 0.177442 | 727 | 30 | 49 | 24.233333 | 0.832776 | 0.096286 | 0 | 0 | 0 | 0 | 0.012384 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.05 | 0.4 | 0 | 0.45 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
3360e8ecae40c8b015c6b7e2a1cd267c16fb7712 | 502 | py | Python | model/combination_file.py | dokzai/WholeFoodsFrugality | 0239dca601353524af0e1b317def40cdd51e4ea3 | [
"CC0-1.0"
] | 42 | 2021-06-05T01:16:23.000Z | 2021-07-05T02:51:54.000Z | model/combination_file.py | dokzai/WholeFoodsFrugality | 0239dca601353524af0e1b317def40cdd51e4ea3 | [
"CC0-1.0"
] | 2 | 2021-06-05T19:29:06.000Z | 2021-09-01T19:10:53.000Z | model/combination_file.py | dokzai/WholeFoodsFrugality | 0239dca601353524af0e1b317def40cdd51e4ea3 | [
"CC0-1.0"
] | 6 | 2021-06-05T02:44:16.000Z | 2021-08-06T14:54:59.000Z | import model
from model import whole_foods_sale
from model import aldis_au_sale
from model import aldis_us_sale
from model import aldis_uk_sale
def go(inputs, store_name):
if store_name == 'WholeFoods':
final_df = whole_foods_sale.items_on_sale()
elif store_name == 'Aldi AU':
final_df = aldis_au_sale.items_on_s... | 27.888889 | 45 | 0.7749 | 87 | 502 | 4.068966 | 0.298851 | 0.127119 | 0.169492 | 0.169492 | 0.474576 | 0.271186 | 0.271186 | 0.271186 | 0 | 0 | 0 | 0 | 0.139442 | 502 | 18 | 46 | 27.888889 | 0.819444 | 0 | 0 | 0 | 0 | 0 | 0.06163 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.466667 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
68272da9ef5f1c688a86d4dfd33eef8b07b524c3 | 2,447 | py | Python | laceworksdk/api/run_reports.py | kiddinn/python-sdk | 23a33313f97337fddea155bcb19c8d5270fc8013 | [
"MIT"
] | 10 | 2021-03-20T18:12:16.000Z | 2022-02-14T21:33:23.000Z | laceworksdk/api/run_reports.py | kiddinn/python-sdk | 23a33313f97337fddea155bcb19c8d5270fc8013 | [
"MIT"
] | 10 | 2021-02-22T23:31:32.000Z | 2022-03-25T14:11:27.000Z | laceworksdk/api/run_reports.py | kiddinn/python-sdk | 23a33313f97337fddea155bcb19c8d5270fc8013 | [
"MIT"
] | 7 | 2021-06-18T18:17:12.000Z | 2022-03-25T13:52:14.000Z | """
Lacework Run Reports API wrapper.
"""
import logging
logger = logging.getLogger(__name__)
class RunReportsAPI(object):
"""
Lacework RunReports API.
"""
def __init__(self, session):
"""
Initializes the RunReportsAPI object.
:param session: An instance of the HttpSession ... | 25.489583 | 118 | 0.624029 | 282 | 2,447 | 5.255319 | 0.234043 | 0.016194 | 0.076923 | 0.07085 | 0.339406 | 0.24224 | 0.24224 | 0.217274 | 0.217274 | 0.060729 | 0 | 0.000585 | 0.302002 | 2,447 | 95 | 119 | 25.757895 | 0.867096 | 0.470781 | 0 | 0 | 0 | 0 | 0.120388 | 0.04466 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0.04 | 0 | 0.52 | 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 |
68306374b036197a8b5db541b5852c5594665fb4 | 291 | py | Python | coursera/a_8_4_romeo.py | polde-live/learnpython | ff8ec96db1951d99797205d0bd491e542152a36f | [
"Unlicense"
] | null | null | null | coursera/a_8_4_romeo.py | polde-live/learnpython | ff8ec96db1951d99797205d0bd491e542152a36f | [
"Unlicense"
] | null | null | null | coursera/a_8_4_romeo.py | polde-live/learnpython | ff8ec96db1951d99797205d0bd491e542152a36f | [
"Unlicense"
] | null | null | null | # fname = raw_input("Enter file name: ")
fname = "romeo.txt"
fh = open(fname)
lst = list()
def add_to_list(words):
for word in words:
if word not in lst:
lst.append(word)
for line in fh:
words = line.split()
add_to_list(words)
lst.sort()
print lst | 17.117647 | 40 | 0.597938 | 46 | 291 | 3.673913 | 0.565217 | 0.059172 | 0.106509 | 0.16568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.281787 | 291 | 17 | 41 | 17.117647 | 0.808612 | 0.130584 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.083333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6831702b54dbaea7d1289e2c3040f25037a1de8b | 262 | py | Python | third_party/pdfium/build/gyp_pdfium.py | satorumpen/node-pdfium-native | 90e5bf8bc69c80620f9f4231ebf8e39ef1178b8c | [
"BSD-2-Clause"
] | 303 | 2015-03-13T08:31:24.000Z | 2022-03-21T10:06:45.000Z | third_party/pdfium/build/gyp_pdfium.py | satorumpen/node-pdfium-native | 90e5bf8bc69c80620f9f4231ebf8e39ef1178b8c | [
"BSD-2-Clause"
] | 15 | 2015-04-03T02:33:53.000Z | 2020-01-28T10:42:29.000Z | third_party/pdfium/build/gyp_pdfium.py | satorumpen/node-pdfium-native | 90e5bf8bc69c80620f9f4231ebf8e39ef1178b8c | [
"BSD-2-Clause"
] | 100 | 2015-03-13T08:28:56.000Z | 2022-02-18T03:19:39.000Z | # Copyright 2014 PDFium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
path = os.path.abspath(os.path.split(__file__)[0])
execfile(os.path.join(path, 'gyp_pdfium'))
| 29.111111 | 72 | 0.751908 | 45 | 262 | 4.266667 | 0.777778 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022321 | 0.145038 | 262 | 8 | 73 | 32.75 | 0.834821 | 0.568702 | 0 | 0 | 0 | 0 | 0.091743 | 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 | 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 |
6833573a8789e8696ad0b078fc32733ac35d4da7 | 3,005 | py | Python | tests/test_inlinequeryresultgame.py | ehsanbarkhordar/botcup | 4e45c3df2dceb8afe3833c0e89813fa9493295ed | [
"MIT"
] | 1 | 2019-10-22T03:46:17.000Z | 2019-10-22T03:46:17.000Z | python-telegram-bot/tests/test_inlinequeryresultgame.py | shyguy-ry/paddingCheckBot | d0a60cc2f397b9b8e4d60bdea699a94beaff2ea1 | [
"Apache-2.0"
] | null | null | null | python-telegram-bot/tests/test_inlinequeryresultgame.py | shyguy-ry/paddingCheckBot | d0a60cc2f397b9b8e4d60bdea699a94beaff2ea1 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2018
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
#... | 39.539474 | 85 | 0.702163 | 389 | 3,005 | 5.179949 | 0.311054 | 0.098263 | 0.151861 | 0.187593 | 0.373697 | 0.25062 | 0.137965 | 0.066998 | 0 | 0 | 0 | 0.003822 | 0.216306 | 3,005 | 75 | 86 | 40.066667 | 0.851805 | 0.257238 | 0 | 0 | 0 | 0 | 0.032069 | 0 | 0 | 0 | 0 | 0 | 0.418605 | 1 | 0.093023 | false | 0 | 0.046512 | 0.023256 | 0.27907 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
683ea3da0b0b99dd76dd80bf6093b1dfbb0b984c | 8,145 | py | Python | lowendspirit/cloudflareAPI.py | boxcontrol/lowendspirit | d6ca41d14c1a974794c483d3baf885f1f3a40baf | [
"MIT"
] | 3 | 2017-04-25T20:00:35.000Z | 2021-12-03T01:28:38.000Z | lowendspirit/cloudflareAPI.py | boxcontrol/lowendspirit | d6ca41d14c1a974794c483d3baf885f1f3a40baf | [
"MIT"
] | null | null | null | lowendspirit/cloudflareAPI.py | boxcontrol/lowendspirit | d6ca41d14c1a974794c483d3baf885f1f3a40baf | [
"MIT"
] | 2 | 2020-05-14T23:07:47.000Z | 2022-01-08T16:49:05.000Z | import requests
from requests.auth import HTTPBasicAuth
import json
import pprint
class Cloudflare_Enduser_API:
def __init__(self, cf_token, cf_email):
self.cf_token = cf_token
self.cf_email = cf_email
self.headers = {
'Content-Type': 'application/json',
'X-Auth-Key... | 35.881057 | 108 | 0.59558 | 977 | 8,145 | 4.818833 | 0.14739 | 0.056075 | 0.075828 | 0.040782 | 0.490229 | 0.402082 | 0.385089 | 0.339847 | 0.265506 | 0.24554 | 0 | 0.000663 | 0.259177 | 8,145 | 226 | 109 | 36.039823 | 0.779582 | 0.210681 | 0 | 0.122642 | 0 | 0 | 0.112404 | 0.05477 | 0.009434 | 0 | 0 | 0 | 0 | 1 | 0.283019 | false | 0.018868 | 0.037736 | 0.056604 | 0.622642 | 0.056604 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
683fdfc38c6be9c97c19d59c1851c1bf1394efb9 | 1,912 | py | Python | src/images/migrations/0004_auto_20200713_1943.py | thesus/bokstaever | e0a5e2614dd222ccd56a8945aba4fd28de85dd31 | [
"MIT"
] | null | null | null | src/images/migrations/0004_auto_20200713_1943.py | thesus/bokstaever | e0a5e2614dd222ccd56a8945aba4fd28de85dd31 | [
"MIT"
] | 7 | 2019-11-18T16:11:01.000Z | 2019-11-18T16:11:04.000Z | src/images/migrations/0004_auto_20200713_1943.py | thesus/bokstaever | e0a5e2614dd222ccd56a8945aba4fd28de85dd31 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.8 on 2020-07-13 19:43
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
("images", "0003_image_creation_date"),
]
operations = [
migrations.AddField(
model_name="image",... | 30.83871 | 88 | 0.550732 | 174 | 1,912 | 5.896552 | 0.37931 | 0.070175 | 0.170565 | 0.197856 | 0.391813 | 0.270955 | 0 | 0 | 0 | 0 | 0 | 0.017228 | 0.332113 | 1,912 | 61 | 89 | 31.344262 | 0.786218 | 0.023536 | 0 | 0.436364 | 1 | 0 | 0.128686 | 0.012869 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.036364 | 0 | 0.090909 | 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 |
685bdb02c954b53c73259dab606713b94ba02c39 | 330 | py | Python | exec.py | developerHaneum/listBug | d3828813b36a533aef93ac691eeafb08a62a03c0 | [
"MIT"
] | 2 | 2021-07-07T06:38:05.000Z | 2021-07-07T07:07:35.000Z | exec.py | developerHaneum/listBug | d3828813b36a533aef93ac691eeafb08a62a03c0 | [
"MIT"
] | null | null | null | exec.py | developerHaneum/listBug | d3828813b36a533aef93ac691eeafb08a62a03c0 | [
"MIT"
] | 1 | 2021-07-07T06:38:06.000Z | 2021-07-07T06:38:06.000Z | from clint.textui import *
def Write():
i = 0
while True:
i += 1
text = input(colored.cyan("%d: "%i))
if text == "q":
sys.exit(0)
def Print():
print(colored.cyan("-- Bug list --"))
print(colored.cyan("-- ") + colored.red("<q:quit>") + colored.cyan(" --"))
Write(... | 22 | 78 | 0.490909 | 42 | 330 | 3.857143 | 0.595238 | 0.271605 | 0.197531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012821 | 0.290909 | 330 | 14 | 79 | 23.571429 | 0.679487 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 0 | 0.230769 | 0.153846 | 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 |
6865502dfb12453a7c664da7a679fbf4159aa717 | 477 | py | Python | src/features/test_outlier_correction.py | KennedyMurphy/elomerchant | b6561de4e13a0bcfcda72bb99cec722a58e8f09e | [
"FTL"
] | null | null | null | src/features/test_outlier_correction.py | KennedyMurphy/elomerchant | b6561de4e13a0bcfcda72bb99cec722a58e8f09e | [
"FTL"
] | 12 | 2019-12-26T17:02:54.000Z | 2022-03-21T22:16:55.000Z | src/features/test_outlier_correction.py | KennedyMurphy/elomerchant | b6561de4e13a0bcfcda72bb99cec722a58e8f09e | [
"FTL"
] | null | null | null | import unittest
import pandas as pd
import numpy as np
import src.features.outlier_correction as oc
class TestFlagNormalOutliers(unittest.TestCase):
def setUp(self):
self.series = pd.Series(np.random.normal(0, 0.1, 1000))
self.series.loc[500] = -5
self.series.loc[42] = 5
def test... | 26.5 | 63 | 0.677149 | 67 | 477 | 4.761194 | 0.477612 | 0.125392 | 0.081505 | 0.15674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053191 | 0.21174 | 477 | 18 | 64 | 26.5 | 0.795213 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.153846 | false | 0 | 0.307692 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
68725e7d29c539b971a9d4373987ad3774e42e53 | 1,950 | py | Python | testAppium/conf/getStartActivityConfig.py | moulage/appium-android | 082e4018673fecd260552d758f8a8ba154838b9a | [
"Apache-2.0"
] | null | null | null | testAppium/conf/getStartActivityConfig.py | moulage/appium-android | 082e4018673fecd260552d758f8a8ba154838b9a | [
"Apache-2.0"
] | null | null | null | testAppium/conf/getStartActivityConfig.py | moulage/appium-android | 082e4018673fecd260552d758f8a8ba154838b9a | [
"Apache-2.0"
] | null | null | null | # !/usr/bin/env python
# -*- coding = utf-8 -*-
# @Author:wanghui
# @Time:
# @File:getStartActivityConfig.py
import configparser
import os
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
class GetStartActivityConfig(object):
def __init__(self):
self.config = configparser.ConfigParser()
s... | 25 | 66 | 0.578462 | 208 | 1,950 | 5.235577 | 0.379808 | 0.091827 | 0.102847 | 0.057851 | 0.064279 | 0.064279 | 0 | 0 | 0 | 0 | 0 | 0.009441 | 0.293846 | 1,950 | 77 | 67 | 25.324675 | 0.781409 | 0.177949 | 0 | 0.25 | 0 | 0 | 0.019317 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0.022727 | 0.045455 | 0 | 0.568182 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
687be2e6d6e71a7b227db867acdd0430e68a8454 | 1,977 | py | Python | testing/composite.py | aheadley/pynemap | f2aa373e7c43755ce73c0a60110b609018cd2dcb | [
"MIT"
] | 6 | 2015-10-15T08:28:19.000Z | 2021-11-17T23:02:02.000Z | testing/composite.py | aheadley/pynemap | f2aa373e7c43755ce73c0a60110b609018cd2dcb | [
"MIT"
] | null | null | null | testing/composite.py | aheadley/pynemap | f2aa373e7c43755ce73c0a60110b609018cd2dcb | [
"MIT"
] | null | null | null | #!/usr/bin/python
import numpy
class Color(object):
lower_bound = 0
upper_bound = 255
def __init__(self, r, g, b, a):
self.r = r
self.g = g
self.b = b
self.a = a
def __str__(self):
return '(%s, %s, %s, %s)' % (self.r, self.g, self.b, self.a)
def composite_pixels(src, dest):
new_color = Color(0,0,0,0)... | 35.303571 | 92 | 0.494689 | 371 | 1,977 | 2.557951 | 0.145553 | 0.096944 | 0.088514 | 0.069547 | 0.404636 | 0.387777 | 0.363541 | 0.306639 | 0.246575 | 0.246575 | 0 | 0.144869 | 0.245827 | 1,977 | 56 | 93 | 35.303571 | 0.491616 | 0.008093 | 0 | 0.166667 | 0 | 0 | 0.012239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.020833 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
687e76240c6372225f7e38483f2cc12aea5247cb | 611 | py | Python | autocomplete/survey.py | converj/reasonSurvey | dd40784da4b07cfeb9fd873bab820d627cb026c1 | [
"Apache-2.0"
] | null | null | null | autocomplete/survey.py | converj/reasonSurvey | dd40784da4b07cfeb9fd873bab820d627cb026c1 | [
"Apache-2.0"
] | null | null | null | autocomplete/survey.py | converj/reasonSurvey | dd40784da4b07cfeb9fd873bab820d627cb026c1 | [
"Apache-2.0"
] | null | null | null | # Import external modules.
from google.appengine.ext import ndb
import logging
# Import local modules.
from configAutocomplete import const as conf
from constants import Constants
class Survey(ndb.Model):
surveyId = ndb.StringProperty() # Primary key
title = ndb.StringProperty()
introduction = ndb.Str... | 27.772727 | 77 | 0.747954 | 63 | 611 | 7.253968 | 0.587302 | 0.185996 | 0.109409 | 0.131291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173486 | 611 | 21 | 78 | 29.095238 | 0.904951 | 0.140753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
688122f978cd09ce576380b1318b3268f2968ae6 | 271 | py | Python | python/cuspatial/cuspatial/utils/traj_utils.py | kkraus14/cuspatial | efe4c6de76c7e4f4888fb27425f3cfb42493a5ac | [
"Apache-2.0"
] | 2 | 2020-01-30T15:10:05.000Z | 2020-07-13T04:16:42.000Z | python/cuspatial/cuspatial/utils/traj_utils.py | kkraus14/cuspatial | efe4c6de76c7e4f4888fb27425f3cfb42493a5ac | [
"Apache-2.0"
] | null | null | null | python/cuspatial/cuspatial/utils/traj_utils.py | kkraus14/cuspatial | efe4c6de76c7e4f4888fb27425f3cfb42493a5ac | [
"Apache-2.0"
] | 1 | 2021-02-22T08:31:00.000Z | 2021-02-22T08:31:00.000Z | def get_ts_struct(ts):
y=ts&0x3f
ts=ts>>6
m=ts&0xf
ts=ts>>4
d=ts&0x1f
ts=ts>>5
hh=ts&0x1f
ts=ts>>5
mm=ts&0x3f
ts=ts>>6
ss=ts&0x3f
ts=ts>>6
wd=ts&0x8
ts=ts>>3
yd=ts&0x1ff
ts=ts>>9
ms=ts&0x3ff
ts=ts>>10
pid=ts&0x3ff
return y,m,d,hh,mm,ss,wd,yd,ms,pid
| 11.291667 | 35 | 0.616236 | 73 | 271 | 2.260274 | 0.369863 | 0.218182 | 0.145455 | 0.181818 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128319 | 0.166052 | 271 | 23 | 36 | 11.782609 | 0.60177 | 0 | 0 | 0.238095 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151852 | 0 | 0 | 1 | 0.047619 | false | 0 | 0 | 0 | 0.095238 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
68855b61bab7f85695a5b52312067872e87f33fd | 295 | py | Python | tests/basics/builtin_sorted.py | 84KaliPleXon3/micropython-esp32 | a64dc82742749cf4a4bbe5688dde05122fb38f56 | [
"MIT"
] | 1 | 2020-04-24T06:09:44.000Z | 2020-04-24T06:09:44.000Z | tests/basics/builtin_sorted.py | 84KaliPleXon3/micropython-esp32 | a64dc82742749cf4a4bbe5688dde05122fb38f56 | [
"MIT"
] | null | null | null | tests/basics/builtin_sorted.py | 84KaliPleXon3/micropython-esp32 | a64dc82742749cf4a4bbe5688dde05122fb38f56 | [
"MIT"
] | null | null | null | # test builtin sorted
try:
sorted
set
except:
import sys
print("SKIP")
sys.exit()
print(sorted(set(range(100))))
print(sorted(set(range(100)), key=lambda x: x + 100*(x % 2)))
# need to use keyword argument
try:
sorted([], None)
except TypeError:
print("TypeError")
| 16.388889 | 61 | 0.630508 | 42 | 295 | 4.428571 | 0.571429 | 0.145161 | 0.150538 | 0.204301 | 0.236559 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043103 | 0.213559 | 295 | 17 | 62 | 17.352941 | 0.758621 | 0.162712 | 0 | 0.153846 | 0 | 0 | 0.053279 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 0.307692 | 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 |
6885709e154f6ae3d0952842e393c4c290d87e3b | 643 | py | Python | addons/mendeley/tests/test_serializer.py | gaybro8777/osf.io | 30408511510a40bc393565817b343ef5fd76ab14 | [
"Apache-2.0"
] | 628 | 2015-01-15T04:33:22.000Z | 2022-03-30T06:40:10.000Z | addons/mendeley/tests/test_serializer.py | gaybro8777/osf.io | 30408511510a40bc393565817b343ef5fd76ab14 | [
"Apache-2.0"
] | 4,712 | 2015-01-02T01:41:53.000Z | 2022-03-30T14:18:40.000Z | addons/mendeley/tests/test_serializer.py | Johnetordoff/osf.io | de10bf249c46cede04c78f7e6f7e352c69e6e6b5 | [
"Apache-2.0"
] | 371 | 2015-01-12T16:14:08.000Z | 2022-03-31T18:58:29.000Z | # -*- coding: utf-8 -*-
"""Serializer tests for the Mendeley addon."""
import pytest
from addons.base.tests.serializers import CitationAddonSerializerTestSuiteMixin
from addons.base.tests.utils import MockFolder
from addons.mendeley.tests.factories import MendeleyAccountFactory
from addons.mendeley.serializer import M... | 30.619048 | 81 | 0.819596 | 62 | 643 | 8.451613 | 0.516129 | 0.076336 | 0.053435 | 0.072519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001754 | 0.11353 | 643 | 20 | 82 | 32.15 | 0.917544 | 0.097978 | 0 | 0 | 0 | 0 | 0.013937 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.916667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
688600d6cad34394de4e5a48da1144fe75003447 | 465 | py | Python | src/project/_tests/base.py | pviojo/boilerplate-flask-api | 4e3832cc1a6979019311e01f60227ace0f2c3259 | [
"MIT"
] | null | null | null | src/project/_tests/base.py | pviojo/boilerplate-flask-api | 4e3832cc1a6979019311e01f60227ace0f2c3259 | [
"MIT"
] | null | null | null | src/project/_tests/base.py | pviojo/boilerplate-flask-api | 4e3832cc1a6979019311e01f60227ace0f2c3259 | [
"MIT"
] | null | null | null | from app import run_migration
from flask import current_app as app
from flask_testing import TestCase
from project import db
class BaseTestCase(TestCase):
def create_app(self):
app.config.from_object('project.configs.TestingConfig')
return app
def setUp(self):
run_migration()
def... | 22.142857 | 63 | 0.692473 | 60 | 465 | 5.233333 | 0.55 | 0.076433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016713 | 0.227957 | 465 | 20 | 64 | 23.25 | 0.857939 | 0 | 0 | 0 | 0 | 0 | 0.062366 | 0.062366 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.266667 | false | 0 | 0.266667 | 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 |
68907c9f56a7dff7255659e5fac49a90b9c790a1 | 1,444 | py | Python | chemreg/auth/tests/test_views.py | Chemical-Curation/chemcurator | bcd7fab84e407f06502e6873c38820724d4e54e7 | [
"MIT"
] | 1 | 2020-10-05T18:02:24.000Z | 2020-10-05T18:02:24.000Z | chemreg/auth/tests/test_views.py | Chemical-Curation/chemcurator_django | bcd7fab84e407f06502e6873c38820724d4e54e7 | [
"MIT"
] | 207 | 2020-01-30T19:17:44.000Z | 2021-02-24T19:45:29.000Z | chemreg/auth/tests/test_views.py | Chemical-Curation/chemcurator_django | bcd7fab84e407f06502e6873c38820724d4e54e7 | [
"MIT"
] | null | null | null | from base64 import b64encode
import pytest
@pytest.mark.django_db
def test_login_view(user, client, settings):
"""Test that the login view can login and logout."""
login_url = f"/{settings.LOGIN_URL.strip('/')}/"
# Django doesn't store the raw password, so we need to set one we know.
password = "A ... | 32.088889 | 75 | 0.702216 | 191 | 1,444 | 5.198953 | 0.340314 | 0.140987 | 0.084592 | 0.132931 | 0.469285 | 0.469285 | 0.469285 | 0.466264 | 0.4572 | 0.21148 | 0 | 0.020478 | 0.188366 | 1,444 | 44 | 76 | 32.818182 | 0.826792 | 0.166898 | 0 | 0.551724 | 0 | 0 | 0.108131 | 0.049455 | 0 | 0 | 0 | 0 | 0.413793 | 1 | 0.034483 | false | 0.103448 | 0.068966 | 0 | 0.103448 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
68aaa854df265e745f3f5094661f5862c8bd4125 | 846 | py | Python | tests/test_android_here.py | b3b/pythonhere | edd45b4f5087d63e1bf265ec6a7c6ade23580de3 | [
"MIT"
] | 2 | 2021-01-06T19:38:25.000Z | 2022-01-25T10:00:20.000Z | tests/test_android_here.py | b3b/pythonhere | edd45b4f5087d63e1bf265ec6a7c6ade23580de3 | [
"MIT"
] | 1 | 2021-01-04T10:44:12.000Z | 2021-01-04T10:44:12.000Z | tests/test_android_here.py | b3b/pythonhere | edd45b4f5087d63e1bf265ec6a7c6ade23580de3 | [
"MIT"
] | null | null | null | import pytest
@pytest.mark.parametrize(
"script", (None, "test.py"),
)
def test_restart_app(mocked_android_modules, app_instance, test_py_script, script):
from android_here import restart_app
restart_app(script)
def test_script_path_resolved(mocked_android_modules, app_instance, test_py_script):
fro... | 32.538462 | 93 | 0.795508 | 121 | 846 | 5.140496 | 0.239669 | 0.096463 | 0.115756 | 0.14791 | 0.607717 | 0.490354 | 0.490354 | 0.490354 | 0.421222 | 0.421222 | 0 | 0 | 0.122931 | 846 | 25 | 94 | 33.84 | 0.838275 | 0 | 0 | 0.117647 | 0 | 0 | 0.053191 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.235294 | false | 0 | 0.294118 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d799c19014a1b79f5fe8a1069ce05224e3482da3 | 1,591 | py | Python | workflows/pipe-common/pipeline/autoscaling/cloudprovider.py | NShaforostov/cloud-pipeline | 8d25b2b5f4838be569d9c25a307b77df5b0e73fc | [
"Apache-2.0"
] | null | null | null | workflows/pipe-common/pipeline/autoscaling/cloudprovider.py | NShaforostov/cloud-pipeline | 8d25b2b5f4838be569d9c25a307b77df5b0e73fc | [
"Apache-2.0"
] | 378 | 2021-03-25T20:09:54.000Z | 2021-10-01T01:02:39.000Z | workflows/pipe-common/pipeline/autoscaling/cloudprovider.py | NShaforostov/cloud-pipeline | 8d25b2b5f4838be569d9c25a307b77df5b0e73fc | [
"Apache-2.0"
] | 2 | 2019-08-09T18:04:54.000Z | 2019-08-11T19:03:06.000Z | # Copyright 2017-2019 EPAM Systems, Inc. (https://www.epam.com/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 32.469388 | 125 | 0.715273 | 245 | 1,591 | 4.42449 | 0.510204 | 0.0369 | 0.041513 | 0.02952 | 0.135609 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010359 | 0.211188 | 1,591 | 48 | 126 | 33.145833 | 0.853386 | 0.366436 | 0 | 0.347826 | 0 | 0 | 0.092555 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.391304 | false | 0.347826 | 0 | 0 | 0.478261 | 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 |
d79e215cb8f499e47e5107fabf650f63a2a2ff52 | 305 | py | Python | text-classify/test.py | ubear/MachineLearn | c24947f7078269f51bf7ee0d2167ca6b71152d1e | [
"MIT"
] | null | null | null | text-classify/test.py | ubear/MachineLearn | c24947f7078269f51bf7ee0d2167ca6b71152d1e | [
"MIT"
] | null | null | null | text-classify/test.py | ubear/MachineLearn | c24947f7078269f51bf7ee0d2167ca6b71152d1e | [
"MIT"
] | null | null | null | #coding:utf-8
import re
import math
from docclass import Classifier
def test_infc_func():
c = Classifier(getfeatures=None)
c.infc("python", "good")
c.infc("python", "good")
c.infc("the", "bad")
c.infc("the", "good")
print c.fc
if __name__ == "__main__":
test_infc_func()
| 15.25 | 36 | 0.629508 | 44 | 305 | 4.090909 | 0.568182 | 0.111111 | 0.133333 | 0.166667 | 0.194444 | 0.194444 | 0 | 0 | 0 | 0 | 0 | 0.004132 | 0.206557 | 305 | 19 | 37 | 16.052632 | 0.739669 | 0.039344 | 0 | 0.166667 | 0 | 0 | 0.140411 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.083333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d79fcf121072d7dc68656d391c409e397c811e06 | 333 | py | Python | src/chapter2/exercise7.py | group6BCS1/BCS-2021 | 272b1117922163cde03901cfdd82f8e0cfab9a67 | [
"MIT"
] | null | null | null | src/chapter2/exercise7.py | group6BCS1/BCS-2021 | 272b1117922163cde03901cfdd82f8e0cfab9a67 | [
"MIT"
] | null | null | null | src/chapter2/exercise7.py | group6BCS1/BCS-2021 | 272b1117922163cde03901cfdd82f8e0cfab9a67 | [
"MIT"
] | null | null | null | c = float(input("Enter Amount Between 0-99 :"))
print(c // 20, "Twenties")
c = c % 20
print(c // 10, "Tens")
c = c % 10
print(c // 5, "Fives")
c = c % 5
print(c // 1, "Ones")
c = c % 1
print(c // 0.25, "Quarters")
c = c % 0.25
print(c // 0.1, "Dimes")
c = c % 0.1
print(c // 0.05, "Nickles")
c = c % 0.05
print(c // 0.01... | 19.588235 | 47 | 0.51952 | 68 | 333 | 2.544118 | 0.352941 | 0.277457 | 0.16185 | 0.092486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131274 | 0.222222 | 333 | 16 | 48 | 20.8125 | 0.53668 | 0 | 0 | 0 | 0 | 0 | 0.225225 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 |
d7bb7502a2e24be8eaf3bc4172023cbaaaa79d16 | 1,716 | py | Python | PythonExercicios/ex045.py | Caio-Moretti/115.Exercicios-Python | 7e66fb1f44ea3eb4ade63f37d843242ac42ade84 | [
"MIT"
] | null | null | null | PythonExercicios/ex045.py | Caio-Moretti/115.Exercicios-Python | 7e66fb1f44ea3eb4ade63f37d843242ac42ade84 | [
"MIT"
] | null | null | null | PythonExercicios/ex045.py | Caio-Moretti/115.Exercicios-Python | 7e66fb1f44ea3eb4ade63f37d843242ac42ade84 | [
"MIT"
] | null | null | null | from random import choice
from time import sleep
jokenpo = ['Pedra', 'Papel', 'Tesoura']
jokenposter_stainger = choice(jokenpo)
jogador = int(input('Qual a sua jogada?'
'\n1. Pedra'
'\n2. Papel'
'\n3. Tesoura'
'\nEscolha: '))
print('\nJO.... | 23.189189 | 64 | 0.597902 | 212 | 1,716 | 4.787736 | 0.268868 | 0.280788 | 0.181281 | 0.050246 | 0.470936 | 0.431527 | 0.370443 | 0.299507 | 0.22069 | 0.22069 | 0 | 0.026174 | 0.243007 | 1,716 | 73 | 65 | 23.506849 | 0.755196 | 0 | 0 | 0.387097 | 0 | 0 | 0.269231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032258 | 0 | 0.032258 | 0.370968 | 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 |
d7c2573fe1dc3783d90bd1abbefb46141b4afea9 | 15,240 | py | Python | data/test/test_queue.py | giuseppe/quay | a1b7e4b51974edfe86f66788621011eef2667e6a | [
"Apache-2.0"
] | 2,027 | 2019-11-12T18:05:48.000Z | 2022-03-31T22:25:04.000Z | data/test/test_queue.py | giuseppe/quay | a1b7e4b51974edfe86f66788621011eef2667e6a | [
"Apache-2.0"
] | 496 | 2019-11-12T18:13:37.000Z | 2022-03-31T10:43:45.000Z | data/test/test_queue.py | giuseppe/quay | a1b7e4b51974edfe86f66788621011eef2667e6a | [
"Apache-2.0"
] | 249 | 2019-11-12T18:02:27.000Z | 2022-03-22T12:19:19.000Z | import json
import time
import pytest
from contextlib import contextmanager
from datetime import datetime, timedelta
from functools import wraps
from data.database import QueueItem
from data.queue import (
WorkQueue,
MINIMUM_EXTENSION,
queue_items_locked,
queue_items_available,
queue_items_availa... | 34.247191 | 98 | 0.720997 | 2,101 | 15,240 | 4.940505 | 0.098049 | 0.054913 | 0.060694 | 0.080925 | 0.735934 | 0.711079 | 0.697977 | 0.658382 | 0.631792 | 0.611175 | 0 | 0.014407 | 0.175656 | 15,240 | 444 | 99 | 34.324324 | 0.811828 | 0.087992 | 0 | 0.519298 | 0 | 0 | 0.038742 | 0 | 0 | 0 | 0 | 0 | 0.364912 | 1 | 0.080702 | false | 0 | 0.031579 | 0.010526 | 0.140351 | 0 | 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 |
d7c7d36b08b7910b33e0fece9387522df88e2cd2 | 3,105 | py | Python | commands/FBTextInputCommands.py | zddd/chisel | 7782bdde3062e15ccbdc5f617aa3a8f096b6751b | [
"MIT"
] | 1 | 2020-03-04T20:24:33.000Z | 2020-03-04T20:24:33.000Z | commands/FBTextInputCommands.py | zddd/chisel | 7782bdde3062e15ccbdc5f617aa3a8f096b6751b | [
"MIT"
] | null | null | null | commands/FBTextInputCommands.py | zddd/chisel | 7782bdde3062e15ccbdc5f617aa3a8f096b6751b | [
"MIT"
] | null | null | null | #!/usr/bin/python
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import os
import lldb
import fblldbbase as fb
import fblldbviewhelpers as viewHelpers
ACCESSIBILITY_I... | 30.145631 | 113 | 0.732689 | 329 | 3,105 | 6.896657 | 0.349544 | 0.028206 | 0.056413 | 0.022477 | 0.196562 | 0.163949 | 0.092552 | 0.058175 | 0.058175 | 0.058175 | 0 | 0.001915 | 0.159098 | 3,105 | 102 | 114 | 30.441176 | 0.867101 | 0.070209 | 0 | 0.304348 | 0 | 0 | 0.153766 | 0.015967 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275362 | false | 0 | 0.057971 | 0.202899 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
d7d7eb91cc6291ffc2e3931f28156e9ccd13a035 | 1,826 | py | Python | inaworld/tokens.py | epfahl/inaworld | 886bd1c0ce143eb09d5fe3c479e0ed0e796bf836 | [
"MIT"
] | null | null | null | inaworld/tokens.py | epfahl/inaworld | 886bd1c0ce143eb09d5fe3c479e0ed0e796bf836 | [
"MIT"
] | null | null | null | inaworld/tokens.py | epfahl/inaworld | 886bd1c0ce143eb09d5fe3c479e0ed0e796bf836 | [
"MIT"
] | null | null | null | """Tokenize a document.
*** NLTK tokenization and this module have been deprecated in favor of a
sklearn-based solution. However, NLTK may offer more options for tokenization,
stemming, etc., this module is retained for future reference.
"""
import re
import nltk
import toolz as tz
re_not_alpha = re.compile('[^a-zA... | 25.71831 | 79 | 0.624863 | 261 | 1,826 | 4.306513 | 0.348659 | 0.072064 | 0.087189 | 0.058719 | 0.238434 | 0.238434 | 0.238434 | 0.238434 | 0.238434 | 0.142349 | 0 | 0.00563 | 0.221796 | 1,826 | 70 | 80 | 26.085714 | 0.785362 | 0.461665 | 0 | 0 | 0 | 0 | 0.021205 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.241379 | false | 0 | 0.103448 | 0 | 0.586207 | 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 |
d7d93021ccae0a77677be8252a5390c6ed0ed049 | 686 | py | Python | sympycore/heads/arithmetic.py | radovankavicky/pymaclab | 21da758f64ed0b62969c9289576f677e977cfd98 | [
"Apache-2.0"
] | 96 | 2015-01-25T05:59:56.000Z | 2021-12-29T14:05:22.000Z | sympycore/heads/arithmetic.py | 1zinnur9/pymaclab | 21da758f64ed0b62969c9289576f677e977cfd98 | [
"Apache-2.0"
] | 3 | 2015-12-17T19:25:46.000Z | 2018-06-19T07:05:20.000Z | sympycore/heads/arithmetic.py | 1zinnur9/pymaclab | 21da758f64ed0b62969c9289576f677e977cfd98 | [
"Apache-2.0"
] | 36 | 2016-01-31T15:22:01.000Z | 2021-03-29T07:03:07.000Z |
#obsolete, each head should be defined in a separate file
__all__ = ['FLOORDIV', 'MOD']
from .base import NaryHead
class ModHead(NaryHead):
"""
ModHead represents module n-ary operation,
data is a n-tuple of expression operands.
"""
op_mth = '__mod__'
op_rmth = '__rmod__'
op_symbol = '... | 18.540541 | 59 | 0.653061 | 82 | 686 | 5.04878 | 0.52439 | 0.05314 | 0.062802 | 0.082126 | 0.36715 | 0.36715 | 0.246377 | 0.246377 | 0.246377 | 0.246377 | 0 | 0 | 0.237609 | 686 | 36 | 60 | 19.055556 | 0.791587 | 0.348397 | 0 | 0 | 0 | 0 | 0.160099 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 0.142857 | 0.785714 | 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 |
d7ddf28312cf505e16bdb958ec521e74d90b4d5b | 898 | py | Python | glycowork/tests/test_hierarchyfilter.py | Old-Shatterhand/glycowork | 544fde03dd38cf95fb97792e050d7ff68f5637b1 | [
"MIT"
] | 22 | 2021-04-22T23:53:26.000Z | 2022-03-21T00:36:32.000Z | glycowork/tests/test_hierarchyfilter.py | Old-Shatterhand/glycowork | 544fde03dd38cf95fb97792e050d7ff68f5637b1 | [
"MIT"
] | 3 | 2021-04-23T13:01:07.000Z | 2022-03-16T19:13:12.000Z | glycowork/tests/test_hierarchyfilter.py | Old-Shatterhand/glycowork | 544fde03dd38cf95fb97792e050d7ff68f5637b1 | [
"MIT"
] | 2 | 2021-07-06T14:13:40.000Z | 2021-12-15T15:12:37.000Z | import glycowork
from glycowork.glycan_data.loader import df_species
from glycowork.ml.train_test_split import *
train_x, val_x, train_y, val_y, id_val, class_list, class_converter = hierarchy_filter(df_species,
rank = 'Kingdom')
p... | 56.125 | 112 | 0.406459 | 74 | 898 | 4.567568 | 0.418919 | 0.071006 | 0.053254 | 0.059172 | 0.491124 | 0.491124 | 0.491124 | 0.491124 | 0.491124 | 0.491124 | 0 | 0.009639 | 0.537862 | 898 | 15 | 113 | 59.866667 | 0.804819 | 0 | 0 | 0.166667 | 0 | 0 | 0.020045 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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.