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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
735f2dedd70c25037b4930b6dd45668bb57b0b71 | 2,758 | py | Python | judgement.py | Super-Gil/connect4 | 1bc00cb2ff831ee0e77e095ed154a9bd35d03a37 | [
"MIT"
] | 1 | 2019-11-24T05:19:12.000Z | 2019-11-24T05:19:12.000Z | judgement.py | Super-Gil/connect4 | 1bc00cb2ff831ee0e77e095ed154a9bd35d03a37 | [
"MIT"
] | null | null | null | judgement.py | Super-Gil/connect4 | 1bc00cb2ff831ee0e77e095ed154a9bd35d03a37 | [
"MIT"
] | null | null | null | from termcolor import cprint
class Judge:
lFlag = False
def __init__(self, user, x_loc, y_loc, array, counter):
self.user = user
self.x_loc = x_loc
self.y_loc = y_loc
self.array = array
self.counter = counter
def simplify(self, a, b, c, d):
t... | 29.978261 | 86 | 0.3876 | 320 | 2,758 | 3.2125 | 0.159375 | 0.070039 | 0.068093 | 0.070039 | 0.59144 | 0.59144 | 0.59144 | 0.59144 | 0.59144 | 0.59144 | 0 | 0.019231 | 0.528644 | 2,758 | 91 | 87 | 30.307692 | 0.771538 | 0.034808 | 0 | 0.658228 | 0 | 0 | 0.006625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037975 | false | 0.088608 | 0.012658 | 0 | 0.177215 | 0.025316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
7362539b6ce6233b1738b9a4780cad8cc9dc0f89 | 11,983 | py | Python | terra_sdk/protobuf/cosmos/staking/v1beta1/genesis_pb2.py | sejalsahni/terra.py | 0fd84969441c58427a21448520697c3ab3ec2d0c | [
"MIT"
] | 24 | 2021-05-30T05:48:33.000Z | 2021-10-07T04:47:15.000Z | terra_sdk/protobuf/cosmos/staking/v1beta1/genesis_pb2.py | sejalsahni/terra.py | 0fd84969441c58427a21448520697c3ab3ec2d0c | [
"MIT"
] | 18 | 2021-05-30T09:05:26.000Z | 2021-10-17T07:12:12.000Z | terra_sdk/protobuf/cosmos/staking/v1beta1/genesis_pb2.py | sejalsahni/terra.py | 0fd84969441c58427a21448520697c3ab3ec2d0c | [
"MIT"
] | 10 | 2021-02-11T00:56:04.000Z | 2021-05-27T08:37:49.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: cosmos/staking/v1beta1/genesis.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflect... | 37.446875 | 1,321 | 0.653008 | 1,312 | 11,983 | 5.643293 | 0.152439 | 0.034576 | 0.075635 | 0.042139 | 0.683684 | 0.626418 | 0.517558 | 0.452458 | 0.417612 | 0.417612 | 0 | 0.059746 | 0.244346 | 11,983 | 319 | 1,322 | 37.564263 | 0.757924 | 0.031962 | 0 | 0.616162 | 1 | 0.006734 | 0.242492 | 0.20806 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.020202 | 0 | 0.020202 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7df600be6844d70fdc88b712814ff9893c5d9012 | 1,668 | py | Python | python/test/test_utils.py | Andrewosh/thunder | 500892f80f758313e3788d50d2c281da64561cbf | [
"Apache-2.0"
] | null | null | null | python/test/test_utils.py | Andrewosh/thunder | 500892f80f758313e3788d50d2c281da64561cbf | [
"Apache-2.0"
] | null | null | null | python/test/test_utils.py | Andrewosh/thunder | 500892f80f758313e3788d50d2c281da64561cbf | [
"Apache-2.0"
] | null | null | null | import shutil
import tempfile
import unittest
import os
from numpy import vstack
from pyspark import SparkContext
class PySparkTestCase(unittest.TestCase):
def setUp(self):
class_name = self.__class__.__name__
self.sc = SparkContext('local', class_name)
self.sc._jvm.System.setProperty("spa... | 26.0625 | 80 | 0.691247 | 202 | 1,668 | 5.643564 | 0.39604 | 0.026316 | 0.052632 | 0.05 | 0.173684 | 0.089474 | 0.089474 | 0.089474 | 0 | 0 | 0 | 0.007547 | 0.205635 | 1,668 | 63 | 81 | 26.47619 | 0.85283 | 0.053357 | 0 | 0.255814 | 0 | 0 | 0.034943 | 0.017789 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209302 | false | 0.046512 | 0.209302 | 0 | 0.55814 | 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 |
b41529ac15f2d6a0f99f65fba405ca617c6cf5bb | 998 | py | Python | sherpa-seq-testing/sherpa/__init__.py | LarsHH/reproducible-hyperparameter-optimization-jcgs-2019 | 5feffcfc9da4533f11acf09f1f850c3e7dd7b21a | [
"MIT"
] | 1 | 2021-08-12T12:54:45.000Z | 2021-08-12T12:54:45.000Z | sherpa-seq-testing/sherpa/__init__.py | LarsHH/reproducible-hyperparameter-optimization-jcgs-2019 | 5feffcfc9da4533f11acf09f1f850c3e7dd7b21a | [
"MIT"
] | null | null | null | sherpa-seq-testing/sherpa/__init__.py | LarsHH/reproducible-hyperparameter-optimization-jcgs-2019 | 5feffcfc9da4533f11acf09f1f850c3e7dd7b21a | [
"MIT"
] | null | null | null | """
SHERPA is a Python library for hyperparameter tuning of machine learning models.
Copyright (C) 2018 Lars Hertel, Peter Sadowski, and Julian Collado.
This file is part of SHERPA.
SHERPA is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the... | 33.266667 | 80 | 0.787575 | 158 | 998 | 4.917722 | 0.620253 | 0.030888 | 0.050193 | 0.073359 | 0.105534 | 0.072072 | 0 | 0 | 0 | 0 | 0 | 0.009558 | 0.161323 | 998 | 29 | 81 | 34.413793 | 0.918757 | 0.775551 | 0 | 0 | 0 | 0 | 0.023148 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 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 |
b41b2e5da0dba49b7cf0daaff577e5607d3fbfed | 779 | py | Python | recipe/models.py | IndraTeja/djangoRecipeAPI | 4f7e7a2d7393cf668a71456fcee4485d5d344d19 | [
"MIT"
] | null | null | null | recipe/models.py | IndraTeja/djangoRecipeAPI | 4f7e7a2d7393cf668a71456fcee4485d5d344d19 | [
"MIT"
] | 4 | 2021-06-05T00:06:23.000Z | 2021-09-22T19:45:38.000Z | recipe/models.py | IndraTeja/djangoRecipeAPI | 4f7e7a2d7393cf668a71456fcee4485d5d344d19 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
class Recipe(models.Model):
recipe_name = models.CharField(max_length=50, null=False, unique=True, blank=False, primary_key=True)
author = models.ForeignKey(User(), on_delete=models.CASCADE, blank=False)
def __str__(self):
ret... | 32.458333 | 105 | 0.738126 | 103 | 779 | 5.359223 | 0.38835 | 0.065217 | 0.076087 | 0.11413 | 0.326087 | 0.289855 | 0.148551 | 0.148551 | 0.148551 | 0 | 0 | 0.010622 | 0.154044 | 779 | 23 | 106 | 33.869565 | 0.827011 | 0 | 0 | 0.176471 | 0 | 0 | 0.020566 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.117647 | 0.176471 | 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 |
b42cac376161e51501b66f7106849e49b32d28d8 | 490 | py | Python | python/enthic/database/mysql.py | Enthic/enthic-backend | a23c47afe53bb81aecf7d93119d7d6ce8bb4124d | [
"WTFPL"
] | 10 | 2019-12-06T14:19:24.000Z | 2020-11-19T13:12:35.000Z | python/enthic/database/mysql.py | Enthic/enthic-backend | a23c47afe53bb81aecf7d93119d7d6ce8bb4124d | [
"WTFPL"
] | 25 | 2020-03-31T17:08:22.000Z | 2022-02-10T22:27:43.000Z | python/enthic/database/mysql.py | Enthic/enthic-backend | a23c47afe53bb81aecf7d93119d7d6ce8bb4124d | [
"WTFPL"
] | null | null | null | # -*- coding: utf-8 -*-
"""
==========================
Flask MySQL initialisation
==========================
PROGRAM BY PAPIT SASU, 2019
Coding Rules:
- Snake case for variables.
- Only argument is configuration file.
- No output or print, just log and files.
"""
from flask_mysqldb import MySQL
from flask import cur... | 23.333333 | 88 | 0.667347 | 59 | 490 | 5.508475 | 0.830508 | 0.055385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012165 | 0.161224 | 490 | 20 | 89 | 24.5 | 0.778589 | 0.681633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
b4378f7cd63ef78d7c5ccb97734908ede4de1a5a | 830 | py | Python | adrt/__init__.py | DNRY/adrt | b5973d6e49cbdf841757e4e4b7056f6b5e2e6714 | [
"BSD-3-Clause"
] | null | null | null | adrt/__init__.py | DNRY/adrt | b5973d6e49cbdf841757e4e4b7056f6b5e2e6714 | [
"BSD-3-Clause"
] | null | null | null | adrt/__init__.py | DNRY/adrt | b5973d6e49cbdf841757e4e4b7056f6b5e2e6714 | [
"BSD-3-Clause"
] | 1 | 2020-03-03T14:07:56.000Z | 2020-03-03T14:07:56.000Z | """
ADRT
===============
``adrt`` is a software package written in ``Python`` for Discrete Random Transform.
Example
-------
Examples can be given using either the ``Example`` or ``Examples``
sections. Sections support any reStructuredText formatting, including
literal blocks.
$ python example_numpy.py
Section br... | 25.9375 | 83 | 0.737349 | 121 | 830 | 5.016529 | 0.694215 | 0.042834 | 0.052718 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005731 | 0.159036 | 830 | 32 | 84 | 25.9375 | 0.863897 | 0.883133 | 0 | 0 | 0 | 0 | 0.590909 | 0.218182 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
b43eaa39fc15e02e2523a7d5c0663a9b13f406e8 | 6,381 | py | Python | scripts/management_email.py | univ-of-utah-marriott-library-apple/management_tools | 6c584577c33c134f248e3f248737ef4e9b12e3b8 | [
"MIT"
] | 82 | 2015-02-10T14:07:29.000Z | 2022-01-12T11:33:38.000Z | scripts/management_email.py | meshyamsundar/management_tools | 6c584577c33c134f248e3f248737ef4e9b12e3b8 | [
"MIT"
] | 5 | 2015-01-19T15:59:58.000Z | 2015-04-03T00:17:36.000Z | scripts/management_email.py | meshyamsundar/management_tools | 6c584577c33c134f248e3f248737ef4e9b12e3b8 | [
"MIT"
] | 7 | 2015-05-11T03:54:15.000Z | 2020-07-10T16:41:10.000Z | #!/usr/bin/env python
import argparse
import email
import os
import smtplib
import sys
from management_tools import loggers
def set_globals():
global options
options = {}
options['long_name'] = "Management Email Helper"
options['name'] = '_'.join(options['long_name'].lower().split()) + '... | 37.535294 | 110 | 0.629525 | 810 | 6,381 | 4.820988 | 0.275309 | 0.059155 | 0.056594 | 0.033803 | 0.066581 | 0.041997 | 0 | 0 | 0 | 0 | 0 | 0.00182 | 0.224886 | 6,381 | 169 | 111 | 37.757396 | 0.787707 | 0.048738 | 0 | 0.045455 | 0 | 0.015152 | 0.43446 | 0.024319 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.060606 | 0.045455 | null | null | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
b4447a055cb60ded8432ab6db1c8eb94a14b17f7 | 995 | py | Python | Latest/venv/Lib/site-packages/apptools/appscripting/api.py | adamcvj/SatelliteTracker | 49a8f26804422fdad6f330a5548e9f283d84a55d | [
"Apache-2.0"
] | 1 | 2022-01-09T20:04:31.000Z | 2022-01-09T20:04:31.000Z | Latest/venv/Lib/site-packages/apptools/appscripting/api.py | adamcvj/SatelliteTracker | 49a8f26804422fdad6f330a5548e9f283d84a55d | [
"Apache-2.0"
] | 1 | 2022-02-15T12:01:57.000Z | 2022-03-24T19:48:47.000Z | Latest/venv/Lib/site-packages/apptools/appscripting/api.py | adamcvj/SatelliteTracker | 49a8f26804422fdad6f330a5548e9f283d84a55d | [
"Apache-2.0"
] | null | null | null | #------------------------------------------------------------------------------
# Copyright (c) 2008, Riverbank Computing Limited
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD
# license included in enthought/LICENSE.txt and may be redistributed only
# under the conditi... | 47.380952 | 79 | 0.696482 | 112 | 995 | 6.053571 | 0.625 | 0.076696 | 0.073746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004489 | 0.104523 | 995 | 20 | 80 | 49.75 | 0.756453 | 0.656281 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
b450dfd42bd273aad8a24030485cb17cda570b34 | 711 | py | Python | dlcli/api/packs.py | outlyerapp/dlcli | 57458b7346a9b9c92cf99628f6c051589a9edb27 | [
"Apache-2.0"
] | 1 | 2017-12-06T11:07:48.000Z | 2017-12-06T11:07:48.000Z | dlcli/api/packs.py | outlyerapp/dlcli | 57458b7346a9b9c92cf99628f6c051589a9edb27 | [
"Apache-2.0"
] | 1 | 2020-02-22T20:29:15.000Z | 2020-02-22T20:29:15.000Z | dlcli/api/packs.py | outlyerapp/dlcli | 57458b7346a9b9c92cf99628f6c051589a9edb27 | [
"Apache-2.0"
] | null | null | null | import logging
import utils
from wrapper import *
logger = logging.getLogger(__name__)
# noinspection PyUnusedLocal
def get_packs(url='', org='', account='', key='', timeout=60, **kwargs):
return get(utils.build_api_url(url, org, account,
endpoint='/packs'),
head... | 35.55 | 83 | 0.596343 | 74 | 711 | 5.594595 | 0.432432 | 0.057971 | 0.125604 | 0.077295 | 0.410628 | 0.410628 | 0.202899 | 0.202899 | 0.202899 | 0 | 0 | 0.007463 | 0.246132 | 711 | 19 | 84 | 37.421053 | 0.764925 | 0.074543 | 0 | 0 | 0 | 0 | 0.096183 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0.166667 | 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 | 0 | 1 | 1 | 0 | 0 | 2 |
b45dc3e00f5bce72ae016f3f66c3edd978f06622 | 16,690 | py | Python | COMPASSExperiment.py | virthead/COMPASS-multijob-pilot | beac49ec432d24382d4d23aacfe6c9674a59e118 | [
"Apache-2.0"
] | null | null | null | COMPASSExperiment.py | virthead/COMPASS-multijob-pilot | beac49ec432d24382d4d23aacfe6c9674a59e118 | [
"Apache-2.0"
] | null | null | null | COMPASSExperiment.py | virthead/COMPASS-multijob-pilot | beac49ec432d24382d4d23aacfe6c9674a59e118 | [
"Apache-2.0"
] | null | null | null | # Class definition:
# COMPASSExperiment
# This class is the prototype of an experiment class inheriting from Experiment
# Instances are generated with ExperimentFactory via pUtil::getExperiment()
# Implemented as a singleton class
# http://stackoverflow.com/questions/42558/python-and-the-singleton-pattern
# ... | 45.726027 | 214 | 0.597603 | 1,917 | 16,690 | 5.045905 | 0.211789 | 0.033909 | 0.045901 | 0.029463 | 0.321927 | 0.256074 | 0.211 | 0.17461 | 0.13884 | 0.13884 | 0 | 0.010016 | 0.312043 | 16,690 | 364 | 215 | 45.851648 | 0.832433 | 0.1429 | 0 | 0.1875 | 1 | 0 | 0.194009 | 0.017012 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.025 | 0.041667 | null | null | 0.004167 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b464601cc7f9c306e46a17ee7230420bb0859c4e | 180 | py | Python | examples/get_account.py | blazingdocs/blazingdocs-python | b08fb689e233caf85e22ca6e451af99a2fce0adf | [
"MIT"
] | 1 | 2021-08-20T11:01:19.000Z | 2021-08-20T11:01:19.000Z | examples/get_account.py | blazingdocs/blazingdocs-python | b08fb689e233caf85e22ca6e451af99a2fce0adf | [
"MIT"
] | null | null | null | examples/get_account.py | blazingdocs/blazingdocs-python | b08fb689e233caf85e22ca6e451af99a2fce0adf | [
"MIT"
] | null | null | null | from blazingdocs import BlazingClient
def get_account():
client = BlazingClient('API-KEY')
account = client.get_account()
if __name__ == '__main__':
get_account()
| 15 | 37 | 0.7 | 20 | 180 | 5.75 | 0.65 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188889 | 180 | 11 | 38 | 16.363636 | 0.787671 | 0 | 0 | 0 | 0 | 0 | 0.083799 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 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 |
b487af0ae08d2a42144f594a812fd9a135ca244f | 624 | py | Python | apps/web/decorators.py | sparcs-kaist/sparcssso | 9aeedc02652dadacb44c6a4ba06901f6d2372223 | [
"MIT"
] | 18 | 2015-07-06T06:20:14.000Z | 2022-03-20T23:45:40.000Z | apps/web/decorators.py | sparcs-kaist/sparcssso | 9aeedc02652dadacb44c6a4ba06901f6d2372223 | [
"MIT"
] | 170 | 2015-07-07T08:42:03.000Z | 2022-03-24T17:31:17.000Z | apps/web/decorators.py | sparcs-kaist/sparcssso | 9aeedc02652dadacb44c6a4ba06901f6d2372223 | [
"MIT"
] | 11 | 2015-07-07T20:42:19.000Z | 2022-01-12T22:39:59.000Z | from functools import wraps
from rest_framework import status
from rest_framework.response import Response
from apps.core.backends import sudo_password_needed, sudo_renew
def api_sudo_required(view_func):
@wraps(view_func)
def _wrapped_view(request, *args, **kwargs):
if not request.user.has_usable_p... | 32.842105 | 71 | 0.727564 | 80 | 624 | 5.3875 | 0.4375 | 0.074246 | 0.118329 | 0.088167 | 0.206497 | 0.143852 | 0 | 0 | 0 | 0 | 0 | 0.005952 | 0.192308 | 624 | 18 | 72 | 34.666667 | 0.849206 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.214286 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
b487b8d7a747bcd95d074ca9d9d76256f1fec86c | 1,381 | py | Python | inputs.py | timdeklijn/answering_machine | 563f595e5063f8cb936bd6d74eae366fc52be78f | [
"MIT"
] | null | null | null | inputs.py | timdeklijn/answering_machine | 563f595e5063f8cb936bd6d74eae366fc52be78f | [
"MIT"
] | null | null | null | inputs.py | timdeklijn/answering_machine | 563f595e5063f8cb936bd6d74eae366fc52be78f | [
"MIT"
] | null | null | null | text = """
Formula 1 is to abandon plans to race in the Americas this year, with new races at Imola, the Nurburgring and Algarve
now set to join the calendar. The sport's owner Liberty Media has been weighing up how best to fill out its schedule,
with the coronavirus pandemic still moving at different speeds around t... | 81.235294 | 119 | 0.790731 | 245 | 1,381 | 4.457143 | 0.595918 | 0.025641 | 0.031136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.185373 | 1,381 | 16 | 120 | 86.3125 | 0.957333 | 0 | 0 | 0 | 0 | 0.666667 | 0.979001 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b48dda1550bc9e4569d90ccf87f7b449eb7893df | 985 | py | Python | anees/forms.py | ashish2020kashyap/cessini | 9713fd76d2e31a95266ec69da2abc98424a46e52 | [
"MIT"
] | null | null | null | anees/forms.py | ashish2020kashyap/cessini | 9713fd76d2e31a95266ec69da2abc98424a46e52 | [
"MIT"
] | null | null | null | anees/forms.py | ashish2020kashyap/cessini | 9713fd76d2e31a95266ec69da2abc98424a46e52 | [
"MIT"
] | null | null | null | from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from .models import *
from django import forms
from django.forms import ModelForm
class CreateUserForm(UserCreationForm):
class Meta:
model = User
fields = ['username', 'email', 'password1', 'pass... | 20.102041 | 65 | 0.640609 | 98 | 985 | 6.204082 | 0.326531 | 0.138158 | 0.138158 | 0.189145 | 0.355263 | 0.355263 | 0.355263 | 0.223684 | 0.223684 | 0.223684 | 0 | 0.002729 | 0.255838 | 985 | 48 | 66 | 20.520833 | 0.826739 | 0 | 0 | 0.46875 | 0 | 0 | 0.13198 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.03125 | 0.15625 | 0 | 0.53125 | 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 |
81ed8bef973cfb01ba156fd5dbba2994068140dc | 4,545 | py | Python | recipes/Python/286223_ohmysqldump/recipe-286223.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/286223_ohmysqldump/recipe-286223.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/286223_ohmysqldump/recipe-286223.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | #!/export/home/www.netuni.nl/local/bin/python
import sys, os, getopt, getpass
import MySQLdb
def ohmysqldump(db, user, passwd, excluded, options, host=''):
conn = MySQLdb.connect(host='', db=db, user=user, passwd=passwd)
c = conn.cursor()
sql = 'show tables;'
c.execute(sql)
tables = c.fetchall()
... | 31.344828 | 87 | 0.557536 | 535 | 4,545 | 4.717757 | 0.381308 | 0.011886 | 0.017829 | 0.018225 | 0.058637 | 0.033281 | 0.033281 | 0 | 0 | 0 | 0 | 0.006598 | 0.29967 | 4,545 | 144 | 88 | 31.5625 | 0.786365 | 0.088669 | 0 | 0.169643 | 0 | 0 | 0.311789 | 0.026386 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.133929 | 0.017857 | null | null | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
81f5f65111ef4832cd7a01705965091776a6b7e3 | 27,466 | py | Python | module_meshes.py | invisiblebob395/awefawe | 42daf9d3ae06bcdb3b91973d94eed8bed1303e2b | [
"BSD-3-Clause"
] | null | null | null | module_meshes.py | invisiblebob395/awefawe | 42daf9d3ae06bcdb3b91973d94eed8bed1303e2b | [
"BSD-3-Clause"
] | null | null | null | module_meshes.py | invisiblebob395/awefawe | 42daf9d3ae06bcdb3b91973d94eed8bed1303e2b | [
"BSD-3-Clause"
] | null | null | null | from header_meshes import *
####################################################################################################################
# Each mesh record contains the following fields:
# 1) Mesh id: used for referencing meshes in other files. The prefix mesh_ is automatically added before each mesh id.
# ... | 67.817284 | 120 | 0.554431 | 5,869 | 27,466 | 2.353723 | 0.072074 | 0.177501 | 0.128782 | 0.097872 | 0.647025 | 0.605038 | 0.552845 | 0.509628 | 0.509628 | 0.507456 | 0 | 0.225282 | 0.192092 | 27,466 | 404 | 121 | 67.985149 | 0.397251 | 0.036591 | 0 | 0 | 0 | 0 | 0.399977 | 0.122683 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.002786 | 0 | 0.002786 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c30c1ae563f44f97533440b40b7562212f48de5a | 45,787 | py | Python | proto/gen/python/outech_pb2.py | outech-robotic/code | b57acba3faae606f4d0c3cf210bc0716d7fef4e7 | [
"MIT"
] | 7 | 2020-04-15T16:42:56.000Z | 2021-12-25T10:12:13.000Z | proto/gen/python/outech_pb2.py | outech-robotic/code | b57acba3faae606f4d0c3cf210bc0716d7fef4e7 | [
"MIT"
] | 37 | 2020-04-15T15:49:31.000Z | 2022-02-27T03:53:48.000Z | proto/gen/python/outech_pb2.py | outech-robotic/code | b57acba3faae606f4d0c3cf210bc0716d7fef4e7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: outech.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_da... | 41.398734 | 3,299 | 0.76513 | 5,534 | 45,787 | 5.96133 | 0.058005 | 0.043407 | 0.063353 | 0.060564 | 0.705244 | 0.621946 | 0.614974 | 0.609791 | 0.579661 | 0.572719 | 0 | 0.032013 | 0.115841 | 45,787 | 1,105 | 3,300 | 41.436199 | 0.782897 | 0.025793 | 0 | 0.670286 | 1 | 0.000987 | 0.182477 | 0.097889 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.003949 | 0 | 0.003949 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c3290f80cd14a8f9bb5e6bdcb31c19f57b27d803 | 709 | py | Python | tests/integration/modules/test_win_servermanager.py | byteskeptical/salt | 637fe0b04f38b2274191b005d73b3c6707d7f400 | [
"Apache-2.0"
] | 5 | 2017-02-07T05:39:29.000Z | 2020-06-13T02:07:33.000Z | tests/integration/modules/test_win_servermanager.py | byteskeptical/salt | 637fe0b04f38b2274191b005d73b3c6707d7f400 | [
"Apache-2.0"
] | 86 | 2017-01-27T11:54:46.000Z | 2020-05-20T06:25:26.000Z | tests/integration/modules/test_win_servermanager.py | byteskeptical/salt | 637fe0b04f38b2274191b005d73b3c6707d7f400 | [
"Apache-2.0"
] | 11 | 2017-01-26T19:36:29.000Z | 2021-12-11T07:54:16.000Z | # -*- coding: utf-8 -*-
# Import Python libs
from __future__ import absolute_import
# Import Salt Testing libs
from tests.support.case import ModuleCase
from tests.support.unit import skipIf
# Import Salt libs
import salt.utils.platform
@skipIf(not salt.utils.platform.is_windows(), 'windows test only')
class WinSe... | 26.259259 | 67 | 0.698166 | 84 | 709 | 5.75 | 0.52381 | 0.062112 | 0.066253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001757 | 0.197461 | 709 | 26 | 68 | 27.269231 | 0.8471 | 0.229901 | 0 | 0 | 0 | 0 | 0.160714 | 0.063492 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.545455 | 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 |
c32a9f50d0f88d5bb87e2094118a4ced43db1729 | 1,077 | py | Python | aoc/src/2.py | 1pkg/dump | 0ee579cb6a97ae64d5367cc624b2407d7d4b1c7b | [
"MIT"
] | null | null | null | aoc/src/2.py | 1pkg/dump | 0ee579cb6a97ae64d5367cc624b2407d7d4b1c7b | [
"MIT"
] | 3 | 2020-12-11T10:01:27.000Z | 2022-02-13T22:12:05.000Z | aoc/src/2.py | 1pkg/dump | 0ee579cb6a97ae64d5367cc624b2407d7d4b1c7b | [
"MIT"
] | null | null | null | le = [1,12,2,3,1,1,2,3,1,3,4,3,1,5,0,3,2,1,9,19,1,19,5,23,1,13,23,27,1,27,6,31,2,31,6,35,2,6,35,39,1,39,5,43,1,13,43,47,1,6,47,51,2,13,51,55,1,10,55,59,1,59,5,63,1,10,63,67,1,67,5,71,1,71,10,75,1,9,75,79,2,13,79,83,1,9,83,87,2,87,13,91,1,10,91,95,1,95,9,99,1,13,99,103,2,103,13,107,1,107,10,111,2,10,111,115,1,115,9,119,... | 32.636364 | 477 | 0.599814 | 303 | 1,077 | 2.112211 | 0.250825 | 0.0375 | 0.039063 | 0.028125 | 0.05 | 0.05 | 0.05 | 0.05 | 0.05 | 0 | 0 | 0.371488 | 0.107707 | 1,077 | 33 | 478 | 32.636364 | 0.294485 | 0 | 0 | 0 | 0 | 0 | 0.043599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.133333 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c34fdc698347a6bb7faf56d85c8d4f67246a927a | 436 | py | Python | backend/migrations/_version_template.py | ItsaMeTuni/tome | acc037b6e0b2d6d08f18cac088f954f4799c83a2 | [
"Apache-2.0"
] | null | null | null | backend/migrations/_version_template.py | ItsaMeTuni/tome | acc037b6e0b2d6d08f18cac088f954f4799c83a2 | [
"Apache-2.0"
] | null | null | null | backend/migrations/_version_template.py | ItsaMeTuni/tome | acc037b6e0b2d6d08f18cac088f954f4799c83a2 | [
"Apache-2.0"
] | null | null | null | """this is a template file for migration versions"""
import asyncpg # type: ignore
async def upgrade(conn: asyncpg.Connection) -> None:
"""perform some queries to upgrade the database
when creating extensions, use "create extension if not exists foo_ext" """
...
async def downgrade(conn: asyncpg.Conn... | 24.222222 | 78 | 0.694954 | 56 | 436 | 5.392857 | 0.696429 | 0.05298 | 0.139073 | 0.165563 | 0.298013 | 0.298013 | 0.298013 | 0.298013 | 0 | 0 | 0 | 0 | 0.204128 | 436 | 17 | 79 | 25.647059 | 0.870317 | 0.137615 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c36daf31503779953cda84c88e2bc2727962185b | 891 | py | Python | funmode2.py | jyhh1992/test_tello | 56b693a1f59620254a17723d13875ab39b0fb1aa | [
"Apache-2.0"
] | null | null | null | funmode2.py | jyhh1992/test_tello | 56b693a1f59620254a17723d13875ab39b0fb1aa | [
"Apache-2.0"
] | null | null | null | funmode2.py | jyhh1992/test_tello | 56b693a1f59620254a17723d13875ab39b0fb1aa | [
"Apache-2.0"
] | null | null | null | from djitellopy import Tello
import cv2
def fun():
tello = Tello()
tello.connect()
# move key control
while True:
key = cv2.waitKey(1)
# 키입력을 받기위해서 1초동안 기다림
if key == ord('r'):
break
elif key == ord('w'):
tello.move_up(20)
elif key == o... | 22.275 | 46 | 0.469136 | 108 | 891 | 3.787037 | 0.444444 | 0.161369 | 0.244499 | 0.176039 | 0.102689 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036969 | 0.392817 | 891 | 39 | 47 | 22.846154 | 0.719039 | 0.040404 | 0 | 0 | 0 | 0 | 0.012911 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.066667 | 0 | 0.133333 | 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 |
c36f6d38cfdbc67cb8acc7753e4edde5677efa90 | 3,325 | py | Python | yabt/fs_global_cache.py | resonai/ybt | 48e9f9b8bc02686c95b2afc29265b799ff9d80da | [
"Apache-2.0"
] | 2 | 2018-10-10T09:13:47.000Z | 2021-08-18T08:57:19.000Z | yabt/fs_global_cache.py | resonai/ybt | 48e9f9b8bc02686c95b2afc29265b799ff9d80da | [
"Apache-2.0"
] | 123 | 2018-02-05T08:36:47.000Z | 2022-03-29T07:44:24.000Z | yabt/fs_global_cache.py | resonai/ybt | 48e9f9b8bc02686c95b2afc29265b799ff9d80da | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2019 Resonai Ltd. All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | 38.662791 | 79 | 0.686617 | 453 | 3,325 | 4.834437 | 0.278146 | 0.086758 | 0.057534 | 0.069863 | 0.435616 | 0.382648 | 0.295434 | 0.215068 | 0.179452 | 0.179452 | 0 | 0.003458 | 0.217143 | 3,325 | 85 | 80 | 39.117647 | 0.837879 | 0.203008 | 0 | 0.163265 | 0 | 0 | 0.005325 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.244898 | false | 0 | 0.102041 | 0.081633 | 0.530612 | 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 |
5eed93ce00944556e6c05b5b192b808d51686778 | 5,988 | py | Python | rmgpy/test_data/testing_database/kinetics/families/R_Addition_MultipleBond/groups.py | connie/RMG-Py | 35d85d2f1035a6858ef3d5712884b64b51ce788a | [
"MIT"
] | null | null | null | rmgpy/test_data/testing_database/kinetics/families/R_Addition_MultipleBond/groups.py | connie/RMG-Py | 35d85d2f1035a6858ef3d5712884b64b51ce788a | [
"MIT"
] | null | null | null | rmgpy/test_data/testing_database/kinetics/families/R_Addition_MultipleBond/groups.py | connie/RMG-Py | 35d85d2f1035a6858ef3d5712884b64b51ce788a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
name = "R_Addition_MultipleBond/groups"
shortDesc = u""
longDesc = u"""
The reaction site *3 should be a triplet, otherwise it will react via the 1+2_Cycloaddition family instead.
"""
template(reactants=["R_R", "YJ"], products=["RJ_R_Y"], ownReverse=False)
reverse = "Beta_Scis... | 12.82227 | 107 | 0.475618 | 903 | 5,988 | 3.060908 | 0.173865 | 0.1411 | 0.233719 | 0.30246 | 0.361795 | 0.285818 | 0.224674 | 0.210564 | 0.168234 | 0.168234 | 0 | 0.107606 | 0.34352 | 5,988 | 466 | 108 | 12.849785 | 0.595523 | 0.006012 | 0 | 0.388889 | 0 | 0.003472 | 0.170982 | 0.007328 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
5ef1364da8c1241e83e0ed923e5390bb87f602af | 2,311 | py | Python | reconspider.py | Nirj2004/reconspider_modified | 45144d6e0e2b5227c62e50ac1b9d68ed67c3d340 | [
"MIT"
] | 3 | 2021-05-31T21:19:47.000Z | 2022-02-27T11:04:46.000Z | reconspider.py | Nirj2004/reconspider_modified | 45144d6e0e2b5227c62e50ac1b9d68ed67c3d340 | [
"MIT"
] | null | null | null | reconspider.py | Nirj2004/reconspider_modified | 45144d6e0e2b5227c62e50ac1b9d68ed67c3d340 | [
"MIT"
] | null | null | null | import sys
def banner():
return("""
__________ _________ __ ___
\______ \ ____ ____ ____ ____ / _____/_____ |__| __| _/___________
| _// __ \_/ ___\/ _ \ / \ \_____ \\\____ \| |/ __ |/ __ \_ __ \\
| | \ ___/\ \__( <_> ) | \ / ... | 50.23913 | 124 | 0.502813 | 201 | 2,311 | 4.995025 | 0.61194 | 0.047809 | 0.043825 | 0.035857 | 0.201195 | 0.201195 | 0.141434 | 0 | 0 | 0 | 0 | 0.019447 | 0.421463 | 2,311 | 46 | 125 | 50.23913 | 0.731488 | 0 | 0 | 0.190476 | 0 | 0.071429 | 0.76577 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.095238 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5ef47610ab5b05ee02ef5868d059939c111629bc | 41,196 | py | Python | src/harness/testcases/WINNF_FT_S_PCR_testcase.py | ericjohnlucas/Spectrum-Access-System | b029e87e8e7a495d505d4ee4c0996e154ce46e6e | [
"Apache-2.0"
] | null | null | null | src/harness/testcases/WINNF_FT_S_PCR_testcase.py | ericjohnlucas/Spectrum-Access-System | b029e87e8e7a495d505d4ee4c0996e154ce46e6e | [
"Apache-2.0"
] | null | null | null | src/harness/testcases/WINNF_FT_S_PCR_testcase.py | ericjohnlucas/Spectrum-Access-System | b029e87e8e7a495d505d4ee4c0996e154ce46e6e | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 SAS Project Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | 43.593651 | 114 | 0.684387 | 4,999 | 41,196 | 5.443289 | 0.106421 | 0.019551 | 0.011172 | 0.013891 | 0.732682 | 0.711808 | 0.695748 | 0.68623 | 0.661571 | 0.656977 | 0 | 0.016567 | 0.229318 | 41,196 | 944 | 115 | 43.639831 | 0.840499 | 0.320686 | 0 | 0.682353 | 0 | 0 | 0.215801 | 0.023218 | 0 | 0 | 0 | 0 | 0.054902 | 1 | 0.035294 | false | 0 | 0.02549 | 0 | 0.068627 | 0.003922 | 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 |
6f02bc7ef24f6364297e57332e818a2cd1a92c79 | 400 | py | Python | tests/conftest.py | leadhub-code/overwatch-hub | 5ddf650e024a7746cfcf844ac418303fde806c70 | [
"MIT"
] | 2 | 2017-12-20T21:56:38.000Z | 2018-02-26T15:17:31.000Z | tests/conftest.py | leadhub-code/overwatch-hub | 5ddf650e024a7746cfcf844ac418303fde806c70 | [
"MIT"
] | null | null | null | tests/conftest.py | leadhub-code/overwatch-hub | 5ddf650e024a7746cfcf844ac418303fde806c70 | [
"MIT"
] | null | null | null | import logging
from pathlib import Path
from pytest import fixture
import sys
logging.basicConfig(
format='~ %(asctime)s %(name)-20s %(levelname)5s: %(message)s',
stream=sys.stdout,
level=logging.DEBUG)
@fixture
def temp_dir(tmpdir):
# use stdlib Path instead of py.path
return Path(str(tmpdir))
... | 18.181818 | 67 | 0.7125 | 55 | 400 | 5.072727 | 0.654545 | 0.071685 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009009 | 0.1675 | 400 | 21 | 68 | 19.047619 | 0.828829 | 0.085 | 0 | 0.142857 | 0 | 0 | 0.145604 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 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 |
6f16c99391f1582a97383ec73b849475c41637ca | 4,922 | py | Python | towhee/trainer/models/swin_transformer/configs.py | ThyeeZz/towhee | 4e1ace5e24f995b6f0f9b9bfac46d28ba8e0ce1d | [
"Apache-2.0"
] | 365 | 2021-07-13T09:21:46.000Z | 2022-03-31T19:54:30.000Z | towhee/trainer/models/swin_transformer/configs.py | Nydclky/towhee | 7cad1b64a44ccfedb18f3064dd33e44eac88ac65 | [
"Apache-2.0"
] | 911 | 2021-07-14T05:05:31.000Z | 2022-03-31T14:11:59.000Z | towhee/trainer/models/swin_transformer/configs.py | Nydclky/towhee | 7cad1b64a44ccfedb18f3064dd33e44eac88ac65 | [
"Apache-2.0"
] | 199 | 2021-07-13T08:40:43.000Z | 2022-03-31T19:10:23.000Z | # Copyright 2021 Zilliz. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the 'License');
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | 45.155963 | 125 | 0.6859 | 739 | 4,922 | 4.270636 | 0.207037 | 0.074144 | 0.091255 | 0.053866 | 0.732256 | 0.703739 | 0.68251 | 0.681876 | 0.668568 | 0.652725 | 0 | 0.12119 | 0.173507 | 4,922 | 108 | 126 | 45.574074 | 0.654621 | 0.120886 | 0 | 0.235294 | 0 | 0.147059 | 0.419063 | 0.145176 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0 | 0.014706 | 0.058824 | 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 |
6f1f6d9cdeaefb704c6b35ff2e6d92d03a95bb5a | 531 | py | Python | rllib/models/__init__.py | vermashresth/ray | 9aaaa508cacb90a5be714478970b2191aaa43170 | [
"Apache-2.0"
] | 78 | 2022-02-02T00:23:02.000Z | 2022-03-15T11:44:02.000Z | rllib/models/__init__.py | vermashresth/ray | 9aaaa508cacb90a5be714478970b2191aaa43170 | [
"Apache-2.0"
] | 8 | 2020-11-13T19:02:47.000Z | 2022-03-12T00:44:51.000Z | rllib/models/__init__.py | vermashresth/ray | 9aaaa508cacb90a5be714478970b2191aaa43170 | [
"Apache-2.0"
] | 3 | 2022-01-30T05:10:14.000Z | 2022-03-04T21:18:44.000Z | from ray.rllib.models.action_dist import ActionDistribution
from ray.rllib.models.catalog import ModelCatalog, MODEL_DEFAULTS
from ray.rllib.models.model import Model
from ray.rllib.models.preprocessors import Preprocessor
from ray.rllib.models.tf.fcnet_v1 import FullyConnectedNetwork
from ray.rllib.models.tf.visionnet... | 31.235294 | 65 | 0.777778 | 60 | 531 | 6.733333 | 0.366667 | 0.10396 | 0.178218 | 0.267327 | 0.09901 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004348 | 0.13371 | 531 | 16 | 66 | 33.1875 | 0.873913 | 0.024482 | 0 | 0 | 0 | 0 | 0.184466 | 0.040777 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 |
6f2710b59931d28dfac0fb3f72743a1c0ba64551 | 760 | py | Python | src/modules.py | aspnetcs/Beta-CROWN | 5ebe53ccccd023cbaef254edd90169516afa6a3d | [
"BSD-2-Clause"
] | 14 | 2021-01-27T04:14:41.000Z | 2022-01-20T11:54:35.000Z | src/modules.py | aspnetcs/Beta-CROWN | 5ebe53ccccd023cbaef254edd90169516afa6a3d | [
"BSD-2-Clause"
] | 2 | 2020-05-02T19:01:11.000Z | 2020-11-22T08:02:53.000Z | src/modules.py | aspnetcs/Beta-CROWN | 5ebe53ccccd023cbaef254edd90169516afa6a3d | [
"BSD-2-Clause"
] | 2 | 2020-02-26T18:49:50.000Z | 2021-03-08T06:27:34.000Z | from torch import nn
class Flatten(nn.Module):
def forward(self, x):
return x.view(x.size(0), -1)
class View(nn.Module):
'''
This is necessary in order to reshape "flat activations" such as used by
nn.Linear with those that comes from MaxPooling
'''
def __init__(self, out_shape):
... | 28.148148 | 76 | 0.639474 | 115 | 760 | 4.086957 | 0.504348 | 0.068085 | 0.076596 | 0.068085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005474 | 0.278947 | 760 | 26 | 77 | 29.230769 | 0.85219 | 0.389474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0.076923 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
6f27e7da66d5b81ae2c32bd8ac2760a5cb169a22 | 600 | py | Python | controllers/error.py | Kdy0115/ThermalAgentSimulator | 988a9c0396c4c2796b38385c925e17b347be112c | [
"MIT"
] | null | null | null | controllers/error.py | Kdy0115/ThermalAgentSimulator | 988a9c0396c4c2796b38385c925e17b347be112c | [
"MIT"
] | 4 | 2021-11-15T15:55:25.000Z | 2021-11-16T04:42:44.000Z | controllers/error.py | Kdy0115/agent-simulation-system | b3cdf7aec96c9e8d4d24f5d2949d13d224812d23 | [
"MIT"
] | null | null | null | DETAIL_FILE = "詳細はhttps://github.com/Kdy0115/agent-simulation-system を参照して下さい。"
ENV_ERROR = """Error:実行環境エラー
マルチプロセスと非バッチ処理は対応していません。マルチプロセスを行う場合はバッチ処理に設定してください。
./controllers/env.pyの実行環境設定ファイルを編集してください。
{}""".format(DETAIL_FILE)
FILE_NOT_FIND_ERROR = """ファイルが正しく読み込まれませんでした。正しいパス名を選択してください。
./config/config.ini内のパスを正し... | 31.578947 | 79 | 0.815 | 55 | 600 | 8.618182 | 0.672727 | 0.105485 | 0.135021 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007005 | 0.048333 | 600 | 19 | 80 | 31.578947 | 0.823117 | 0 | 0 | 0.2 | 0 | 0 | 0.628952 | 0.445923 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6f325b35a114ace8e519ca9c33cc55ff5777e8e9 | 1,894 | py | Python | hub_app/tests/test_pending_credential_recovery_model.py | passiopeia/passiopeia-hub | 4eed28297a0b134d6b942fa15a9423448dcc2b7e | [
"MIT"
] | null | null | null | hub_app/tests/test_pending_credential_recovery_model.py | passiopeia/passiopeia-hub | 4eed28297a0b134d6b942fa15a9423448dcc2b7e | [
"MIT"
] | 29 | 2020-02-09T18:28:01.000Z | 2021-06-25T15:32:48.000Z | hub_app/tests/test_pending_credential_recovery_model.py | passiopeia/passiopeia-hub | 4eed28297a0b134d6b942fa15a9423448dcc2b7e | [
"MIT"
] | null | null | null | """
Test the pending registration model
"""
from django.test import TestCase
from django.utils.timezone import now
from hub_app.models import HubUser, PendingCredentialRecovery
class PendingCredentialRecoveryModelTest(TestCase):
"""
Test the simple str method
"""
@classmethod
def setUpTestData(c... | 27.449275 | 95 | 0.624604 | 199 | 1,894 | 5.743719 | 0.296482 | 0.144357 | 0.166229 | 0.044619 | 0.295713 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003634 | 0.273495 | 1,894 | 68 | 96 | 27.852941 | 0.827035 | 0.115628 | 0 | 0 | 0 | 0 | 0.075297 | 0.062748 | 0 | 0 | 0 | 0 | 0.264706 | 1 | 0.205882 | false | 0.058824 | 0.088235 | 0 | 0.323529 | 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 |
6f3b471b77dbd53c17284fc8a2cf11f669acdf33 | 696 | py | Python | app_account/forms.py | bogdandrienko/chrysotile-minerals | 47a4097e29ee40f2606807e28b2da466dfd7f3f4 | [
"MIT"
] | 1 | 2021-02-13T08:40:51.000Z | 2021-02-13T08:40:51.000Z | app_account/forms.py | bogdandrienko/chrysotile-minerals | 47a4097e29ee40f2606807e28b2da466dfd7f3f4 | [
"MIT"
] | null | null | null | app_account/forms.py | bogdandrienko/chrysotile-minerals | 47a4097e29ee40f2606807e28b2da466dfd7f3f4 | [
"MIT"
] | null | null | null | from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
class SignUpForm(UserCreationForm):
first_name = forms.CharField(label='Имя', max_length=100, required=False)
last_name = forms.CharField(label='Фамилия', max_length=100, required=False)
us... | 43.5 | 134 | 0.767241 | 89 | 696 | 5.898876 | 0.539326 | 0.057143 | 0.068571 | 0.114286 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017742 | 0.109195 | 696 | 15 | 135 | 46.4 | 0.829032 | 0 | 0 | 0 | 0 | 0 | 0.238506 | 0.033046 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.272727 | 0 | 0.818182 | 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 |
6f426cacd22a3f3f7735c3be3a07fc128048f788 | 3,832 | py | Python | web/addons/mail/__openerp__.py | diogocs1/comps | 63df07f6cf21c41e4527c06e2d0499f23f4322e7 | [
"Apache-2.0"
] | null | null | null | web/addons/mail/__openerp__.py | diogocs1/comps | 63df07f6cf21c41e4527c06e2d0499f23f4322e7 | [
"Apache-2.0"
] | null | null | null | web/addons/mail/__openerp__.py | diogocs1/comps | 63df07f6cf21c41e4527c06e2d0499f23f4322e7 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2010-Today OpenERP S.A. (<http://www.openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the term... | 42.577778 | 243 | 0.659447 | 484 | 3,832 | 5.13843 | 0.481405 | 0.030961 | 0.026538 | 0.022919 | 0.040209 | 0.040209 | 0.027342 | 0 | 0 | 0 | 0 | 0.0039 | 0.197025 | 3,832 | 89 | 244 | 43.05618 | 0.804355 | 0.224165 | 0 | 0.061538 | 0 | 0.046154 | 0.790132 | 0.173758 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6f51b0d2a1cefe96e382474fb2ce89278ac214d6 | 38,140 | py | Python | batch.py | othesoluciones/TFM | 8ed46985604c83c517612b38326b39a61b4cf102 | [
"MIT"
] | null | null | null | batch.py | othesoluciones/TFM | 8ed46985604c83c517612b38326b39a61b4cf102 | [
"MIT"
] | null | null | null | batch.py | othesoluciones/TFM | 8ed46985604c83c517612b38326b39a61b4cf102 | [
"MIT"
] | null | null | null | import os
import time
import base64
import smtplib
from apscheduler.schedulers.blocking import BlockingScheduler
import logging
import datetime
import unicodedata
logging.basicConfig()
scheduler = BlockingScheduler()
def elimina_tildes(s):
return ''.join((c for c in unicodedata.normalize('NFD', s) if unicodedata.... | 37.53937 | 1,078 | 0.629864 | 4,467 | 38,140 | 5.338706 | 0.193418 | 0.006709 | 0.001887 | 0.005535 | 0.334829 | 0.301577 | 0.26954 | 0.222283 | 0.196285 | 0.153598 | 0 | 0.03136 | 0.233325 | 38,140 | 1,015 | 1,079 | 37.576355 | 0.784207 | 0.068642 | 0 | 0.280503 | 0 | 0.007547 | 0.216695 | 0.027514 | 0 | 0 | 0 | 0.000985 | 0 | 0 | null | null | 0.002516 | 0.100629 | null | null | 0.054088 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6f55619fc553bff32dc0f080aead629a8aa8324f | 893 | py | Python | projects/crawler/crawler.py | 07734willy/Python-Playground | a0021d67de40b5e927026e4fb5ad882e1d7ec984 | [
"MIT"
] | null | null | null | projects/crawler/crawler.py | 07734willy/Python-Playground | a0021d67de40b5e927026e4fb5ad882e1d7ec984 | [
"MIT"
] | null | null | null | projects/crawler/crawler.py | 07734willy/Python-Playground | a0021d67de40b5e927026e4fb5ad882e1d7ec984 | [
"MIT"
] | null | null | null | def main():
print("I am a webscraper")
if __name__ == "__main__":
return main()
class Website(object):
#create a function that gets URL (def URL)
#create a function that turns HTML elements into an array of strings based on white space or '<> (def elements)
#create a function that uses REGEX to find links tha... | 27.90625 | 112 | 0.725644 | 149 | 893 | 4.295302 | 0.422819 | 0.046875 | 0.09375 | 0.11875 | 0.15 | 0.078125 | 0.078125 | 0.078125 | 0 | 0 | 0 | 0 | 0.194849 | 893 | 31 | 113 | 28.806452 | 0.890125 | 0.714446 | 0 | 0.357143 | 0 | 0 | 0.102041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | true | 0.357143 | 0 | 0 | 0.5 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
6f65998d9ac0998ce3270f241e405de9434b0257 | 2,156 | py | Python | ProgramacaoOOAvancado/evolucao_v6.py | VictorMello1993/CursoPythonUdemy | d3e2e542a7c3d3f9635f2b88d0e75ab4fa84236d | [
"MIT"
] | null | null | null | ProgramacaoOOAvancado/evolucao_v6.py | VictorMello1993/CursoPythonUdemy | d3e2e542a7c3d3f9635f2b88d0e75ab4fa84236d | [
"MIT"
] | 4 | 2021-04-08T21:54:09.000Z | 2022-02-10T14:35:13.000Z | ProgramacaoOOAvancado/evolucao_v6.py | VictorMello1993/CursoPythonUdemy | d3e2e542a7c3d3f9635f2b88d0e75ab4fa84236d | [
"MIT"
] | null | null | null | # Classes abstratas (versão 2)
from abc import ABCMeta, abstractproperty, abstractmethod
class Humano(metaclass=ABCMeta):
# Atributo de classe (estática), onde a cada instância de uma classe
# recebe o mesmo valor setado na classe
especie = 'Homo Sapiens'
def __init__(self, nome):
self.nome =... | 28.746667 | 97 | 0.624768 | 227 | 2,156 | 5.788546 | 0.46696 | 0.027397 | 0.041096 | 0.041096 | 0.094368 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003205 | 0.276438 | 2,156 | 74 | 98 | 29.135135 | 0.839103 | 0.247681 | 0 | 0.136364 | 0 | 0 | 0.129273 | 0 | 0 | 0 | 0 | 0.013514 | 0 | 1 | 0.204545 | false | 0.022727 | 0.022727 | 0.090909 | 0.5 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6f708a3be778eff61ee89ef09cb6f97306b6c0d5 | 520 | py | Python | app/api/dependencies.py | Radarslan/stocks | d0a1ca0808b5ac13c0ade4461832c1fb9bac8f0f | [
"MIT"
] | null | null | null | app/api/dependencies.py | Radarslan/stocks | d0a1ca0808b5ac13c0ade4461832c1fb9bac8f0f | [
"MIT"
] | null | null | null | app/api/dependencies.py | Radarslan/stocks | d0a1ca0808b5ac13c0ade4461832c1fb9bac8f0f | [
"MIT"
] | null | null | null | import logging
from typing import AsyncGenerator
from aioredis import ConnectionError
from aioredis import RedisError
from app.db.redis import redis
async def get_redis() -> AsyncGenerator:
try:
await redis.set("health_check", "OK")
yield redis
except ConnectionError as e:
logging.er... | 24.761905 | 69 | 0.671154 | 64 | 520 | 5.421875 | 0.5 | 0.069164 | 0.103746 | 0.086455 | 0.230548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253846 | 520 | 20 | 70 | 26 | 0.89433 | 0 | 0 | 0.125 | 0 | 0 | 0.161538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.3125 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
6f73e56a9b341b83c367eece43168671a3a58ac5 | 459 | py | Python | src/bugengine/3rdparty/graphics/DirectX/mak/build.py | bugengine/BugEngine | 1b3831d494ee06b0bd74a8227c939dd774b91226 | [
"BSD-3-Clause"
] | 4 | 2015-05-13T16:28:36.000Z | 2017-05-24T15:34:14.000Z | src/bugengine/3rdparty/graphics/DirectX/mak/build.py | bugengine/BugEngine | 1b3831d494ee06b0bd74a8227c939dd774b91226 | [
"BSD-3-Clause"
] | null | null | null | src/bugengine/3rdparty/graphics/DirectX/mak/build.py | bugengine/BugEngine | 1b3831d494ee06b0bd74a8227c939dd774b91226 | [
"BSD-3-Clause"
] | 1 | 2017-03-21T08:28:07.000Z | 2017-03-21T08:28:07.000Z | from be_typing import TYPE_CHECKING
def build(build_context):
# type: (Build.BuildContext) -> None
build_context.thirdparty('bugengine.3rdparty.graphics.DirectX9', var='dx9', feature='DirectX9')
build_context.thirdparty('bugengine.3rdparty.graphics.DirectX10', var='dx10', feature='DirectX10')
build_co... | 38.25 | 102 | 0.764706 | 54 | 459 | 6.37037 | 0.462963 | 0.139535 | 0.19186 | 0.270349 | 0.409884 | 0.409884 | 0 | 0 | 0 | 0 | 0 | 0.043902 | 0.106754 | 459 | 12 | 103 | 38.25 | 0.795122 | 0.074074 | 0 | 0 | 0 | 0 | 0.346698 | 0.259434 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 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 |
48907cba186e73b51751fb4258882206f364d855 | 1,328 | py | Python | AutoCrab2/python/commands/check.py | TC01/autocrab | e1e2c31550edb56ddab0ca01312a331c90b5036e | [
"MIT"
] | null | null | null | AutoCrab2/python/commands/check.py | TC01/autocrab | e1e2c31550edb56ddab0ca01312a331c90b5036e | [
"MIT"
] | null | null | null | AutoCrab2/python/commands/check.py | TC01/autocrab | e1e2c31550edb56ddab0ca01312a331c90b5036e | [
"MIT"
] | null | null | null | # The 'autocrab check' plugin command.
import os
import shutil
from AutoCrab.AutoCrab2 import aliases
from AutoCrab.AutoCrab2 import crabutil
def autocrab(dir):
"""Creates a CrabStats object by running crab -status -get all
and summarizing the results."""
crabline = aliases.crab_command + " " + aliases.dir_comm... | 35.891892 | 102 | 0.698042 | 178 | 1,328 | 5.196629 | 0.5 | 0.060541 | 0.029189 | 0.058378 | 0.056216 | 0.056216 | 0 | 0 | 0 | 0 | 0 | 0.008137 | 0.167169 | 1,328 | 36 | 103 | 36.888889 | 0.82821 | 0.09262 | 0 | 0.08 | 0 | 0 | 0.238009 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.16 | 0.16 | null | null | 0.12 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
48a38c98ec39c7f225885811ed8c9662bd0c55d6 | 336 | py | Python | scribdl/base.py | vaibhavkaushal11/scribd-downloader | 008e536f53df3478ae0ad48f4a0cba8ea6fff147 | [
"MIT"
] | 6 | 2019-05-23T08:50:26.000Z | 2021-04-04T03:54:31.000Z | scribdl/base.py | vaibhavkaushal11/scribd-downloader | 008e536f53df3478ae0ad48f4a0cba8ea6fff147 | [
"MIT"
] | null | null | null | scribdl/base.py | vaibhavkaushal11/scribd-downloader | 008e536f53df3478ae0ad48f4a0cba8ea6fff147 | [
"MIT"
] | 3 | 2019-06-13T05:50:34.000Z | 2019-08-16T16:58:23.000Z | from abc import ABCMeta, abstractmethod
import six
@six.add_metaclass(ABCMeta)
class ScribdBase:
"""
An Abstract Base Class for Scribd books and documents.
"""
@abstractmethod
def get_content(self):
"""
An abstract method for fetching content off Scribd book or document.
"... | 19.764706 | 76 | 0.651786 | 39 | 336 | 5.564103 | 0.74359 | 0.092166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.276786 | 336 | 16 | 77 | 21 | 0.893004 | 0.366071 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
48c4aec3e1c47ae6dfdbc469d8ee0cd00a284cba | 172 | py | Python | data/groups.py | Natashka89/python_training | e95c5ba8fba0848286fd2dd876211f27764266c3 | [
"Apache-2.0"
] | null | null | null | data/groups.py | Natashka89/python_training | e95c5ba8fba0848286fd2dd876211f27764266c3 | [
"Apache-2.0"
] | null | null | null | data/groups.py | Natashka89/python_training | e95c5ba8fba0848286fd2dd876211f27764266c3 | [
"Apache-2.0"
] | null | null | null | from model.group import Group
testdata = [
Group(name="name1", header = "header1", footer= "footer1"),
Group(name="name2", header = "header2", footer= "footer2")
] | 28.666667 | 63 | 0.656977 | 20 | 172 | 5.65 | 0.7 | 0.159292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0.162791 | 172 | 6 | 64 | 28.666667 | 0.743056 | 0 | 0 | 0 | 0 | 0 | 0.219653 | 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 |
48cbeb8c45ced3bc810c55353481f7c8015f37b2 | 731 | py | Python | dev/wc_totals.py | broxeph/ameryn | e1289c280ca865ec84625b712adc52c536b4b174 | [
"MIT"
] | null | null | null | dev/wc_totals.py | broxeph/ameryn | e1289c280ca865ec84625b712adc52c536b4b174 | [
"MIT"
] | null | null | null | dev/wc_totals.py | broxeph/ameryn | e1289c280ca865ec84625b712adc52c536b4b174 | [
"MIT"
] | null | null | null | import math
import numpy
COLUMNS = 10
with open('order_totals.txt', 'r') as txt:
totals = [float(each.rstrip('\n')) for each in txt.readlines()]
print 'totals:', totals
print 'median:', numpy.median(totals)
print 'mean:', round(numpy.mean(totals), 2)
print 'totals max:', max(totals)
totals_log = int(math.log10(max... | 33.227273 | 114 | 0.659371 | 126 | 731 | 3.769841 | 0.388889 | 0.075789 | 0.056842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0848 | 0.145007 | 731 | 22 | 114 | 33.227273 | 0.6752 | 0.093023 | 0 | 0 | 0 | 0 | 0.120664 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.4375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
48e388eea2f9438a4f7a3ec3f6801d79d144358f | 1,427 | py | Python | cli/kaos_cli/resources/templates/mnist/model-serve/mnist/model/predict.py | aalhour/kaos | 321f596413ae0faea1aa86534eee9449cc53e287 | [
"Apache-2.0"
] | 98 | 2019-10-17T14:46:53.000Z | 2021-12-29T08:28:43.000Z | cli/kaos_cli/resources/templates/mnist/model-serve/mnist/model/predict.py | aalhour/kaos | 321f596413ae0faea1aa86534eee9449cc53e287 | [
"Apache-2.0"
] | 78 | 2019-10-17T16:14:34.000Z | 2020-02-10T13:31:49.000Z | cli/kaos_cli/resources/templates/mnist/model-serve/mnist/model/predict.py | aalhour/kaos | 321f596413ae0faea1aa86534eee9449cc53e287 | [
"Apache-2.0"
] | 11 | 2019-10-17T15:41:33.000Z | 2021-08-29T20:07:14.000Z | import logging
import multiprocessing
import os
import sys
import flask
# flask app for serving predictions
app = flask.Flask(__name__)
logging.basicConfig(format='%(asctime)s:%(levelname)s:%(message)s', level=logging.INFO)
# ============================== #
# REQUIRED ENVIRONMENT VARIABLES #
# ====================... | 26.425926 | 114 | 0.611072 | 160 | 1,427 | 5.36875 | 0.5875 | 0.023283 | 0.041909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003587 | 0.218641 | 1,427 | 53 | 115 | 26.924528 | 0.766816 | 0.302032 | 0 | 0.076923 | 0 | 0 | 0.193075 | 0.038825 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0.038462 | false | 0 | 0.307692 | 0 | 0.423077 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
48e71f8c69495c6c0e64f853564f09cbe75ec92e | 604 | py | Python | tests/nonrealtime/test_nonrealtime_Session_pickle.py | butayama/supriya | 0c197324ecee4232381221880d1f40e109bb756c | [
"MIT"
] | 191 | 2015-11-13T02:28:42.000Z | 2022-03-29T10:26:44.000Z | tests/nonrealtime/test_nonrealtime_Session_pickle.py | butayama/supriya | 0c197324ecee4232381221880d1f40e109bb756c | [
"MIT"
] | 130 | 2016-01-04T16:59:02.000Z | 2022-02-26T15:37:20.000Z | tests/nonrealtime/test_nonrealtime_Session_pickle.py | butayama/supriya | 0c197324ecee4232381221880d1f40e109bb756c | [
"MIT"
] | 22 | 2016-05-04T10:32:16.000Z | 2022-02-26T19:22:45.000Z | import pickle
import supriya
def test_01():
old_session = supriya.Session()
new_session = pickle.loads(pickle.dumps(old_session))
old_bundles = old_session.to_osc_bundles()
new_bundles = new_session.to_osc_bundles()
assert old_bundles == new_bundles
def test_02():
old_session = supriya.Sess... | 27.454545 | 57 | 0.740066 | 86 | 604 | 4.837209 | 0.267442 | 0.168269 | 0.115385 | 0.182692 | 0.634615 | 0.634615 | 0.634615 | 0.634615 | 0.634615 | 0.634615 | 0 | 0.017787 | 0.162252 | 604 | 21 | 58 | 28.761905 | 0.804348 | 0 | 0 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
48eb6ec693a1d422d6a1f79e6c1a75a64b6f0cd2 | 190 | py | Python | homework/homework 5.py | CoderLoveMath/Jeju-IOSEFTGS-python | 0efe26e3840817197c1584ac4cf90d35c3699988 | [
"FSFAP"
] | null | null | null | homework/homework 5.py | CoderLoveMath/Jeju-IOSEFTGS-python | 0efe26e3840817197c1584ac4cf90d35c3699988 | [
"FSFAP"
] | null | null | null | homework/homework 5.py | CoderLoveMath/Jeju-IOSEFTGS-python | 0efe26e3840817197c1584ac4cf90d35c3699988 | [
"FSFAP"
] | null | null | null | import math
a = int(input('integer: '))
b = int(input('integer: '))
# math library
print(str(int(math.fabs(a-b))))
# comparing
if a > b:
print(str(a - b))
else:
print(str(b - a))
| 13.571429 | 31 | 0.584211 | 32 | 190 | 3.46875 | 0.4375 | 0.216216 | 0.27027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 190 | 13 | 32 | 14.615385 | 0.730263 | 0.115789 | 0 | 0 | 0 | 0 | 0.109091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.375 | 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 |
48ecb3d40571eebfaab158f97bba9ec48445e985 | 1,705 | py | Python | tests/sentry/api/endpoints/test_organization_api_key_index.py | Munyola/sentry | ab8923b2801d7d72d6903e0d9180584817bb1b9a | [
"BSD-3-Clause"
] | 1 | 2017-10-18T19:40:14.000Z | 2017-10-18T19:40:14.000Z | tests/sentry/api/endpoints/test_organization_api_key_index.py | Munyola/sentry | ab8923b2801d7d72d6903e0d9180584817bb1b9a | [
"BSD-3-Clause"
] | null | null | null | tests/sentry/api/endpoints/test_organization_api_key_index.py | Munyola/sentry | ab8923b2801d7d72d6903e0d9180584817bb1b9a | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import
from django.core.urlresolvers import reverse
from sentry.testutils import APITestCase
class OrganizationApiKeyIndex(APITestCase):
def test_org_admin_can_access(self):
self.login_as(user=self.user)
organization = self.create_organization(name='foo', owner=s... | 25.833333 | 77 | 0.615836 | 195 | 1,705 | 5.210256 | 0.266667 | 0.068898 | 0.054134 | 0.059055 | 0.704724 | 0.704724 | 0.61811 | 0.61811 | 0.61811 | 0.61811 | 0 | 0.009772 | 0.279765 | 1,705 | 65 | 78 | 26.230769 | 0.81759 | 0 | 0 | 0.533333 | 0 | 0 | 0.09912 | 0.068622 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.155556 | 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 |
48f363ccebce60fa0ff96bd4c046c6e0aa3248e6 | 194 | py | Python | number-lists/main.py | heyalvaro/Input-Output | 6f939a69b26bca159c21ea34f2b9e2e57a7cd720 | [
"MIT"
] | 1 | 2021-01-24T18:05:28.000Z | 2021-01-24T18:05:28.000Z | number-lists/main.py | heyapricot/Input-Output | 6f939a69b26bca159c21ea34f2b9e2e57a7cd720 | [
"MIT"
] | null | null | null | number-lists/main.py | heyapricot/Input-Output | 6f939a69b26bca159c21ea34f2b9e2e57a7cd720 | [
"MIT"
] | null | null | null | def do_stuff(ar):
#print array if you want:
print " ".join(map(str,ar))
t = input()
for x in range(0, t):
m = input()
ar = [int(i) for i in raw_input().strip().split()]
do_stuff(ar)
| 19.4 | 52 | 0.592784 | 37 | 194 | 3.027027 | 0.675676 | 0.125 | 0.160714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006536 | 0.21134 | 194 | 9 | 53 | 21.555556 | 0.72549 | 0.123711 | 0 | 0 | 0 | 0 | 0.005952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
48f40fdddaadf132905fe6650f30a58b074e0a49 | 226 | wsgi | Python | src/SDT.wsgi | arshPratap/software-discovery-tool | a1c4b7ba1ae2e28ec619e618ce5076b5cdecd08a | [
"Apache-2.0"
] | 8 | 2021-05-08T08:41:44.000Z | 2022-03-15T00:55:40.000Z | src/SDT.wsgi | arshPratap/software-discovery-tool | a1c4b7ba1ae2e28ec619e618ce5076b5cdecd08a | [
"Apache-2.0"
] | 54 | 2020-07-09T00:01:22.000Z | 2022-03-25T19:12:53.000Z | src/SDT.wsgi | arshPratap/software-discovery-tool | a1c4b7ba1ae2e28ec619e618ce5076b5cdecd08a | [
"Apache-2.0"
] | 7 | 2021-01-13T13:58:27.000Z | 2022-03-14T00:26:25.000Z | import sys
sys.path.append('/opt/software-discovery-tool/src/')
from main import app as application
from config import DEBUG_LEVEL, server_host, server_port
from classes import PackageSearch
package_search = PackageSearch() | 25.111111 | 56 | 0.818584 | 32 | 226 | 5.65625 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106195 | 226 | 9 | 57 | 25.111111 | 0.89604 | 0 | 0 | 0 | 0 | 0 | 0.145374 | 0.145374 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 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 |
5b1b959e55bc9443f2889c9b10c2d6a05ad16244 | 157 | py | Python | tests/test_skeleton.py | adityastic/gaanadl | d773b09a8d4045b549d639c1348f4d5e716264a5 | [
"MIT"
] | 2 | 2020-08-10T05:25:10.000Z | 2020-09-15T05:49:03.000Z | tests/test_skeleton.py | adityastic/gaanadl | d773b09a8d4045b549d639c1348f4d5e716264a5 | [
"MIT"
] | 1 | 2021-06-25T15:43:37.000Z | 2021-06-25T15:43:37.000Z | tests/test_skeleton.py | adityastic/gaanadl | d773b09a8d4045b549d639c1348f4d5e716264a5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import pytest
__author__ = "Aditya Gupta"
__copyright__ = "Aditya Gupta"
__license__ = "mit"
def test_dummy():
assert 1 == 1
| 13.083333 | 30 | 0.649682 | 19 | 157 | 4.684211 | 0.842105 | 0.247191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024 | 0.203822 | 157 | 11 | 31 | 14.272727 | 0.688 | 0.133758 | 0 | 0 | 0 | 0 | 0.201493 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 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 |
5b1ea6b88c4631b0fbd6a21aa1d0dd2ee3f82dad | 470 | py | Python | pandaserver/test/callbackDDM.py | rybkine/panda-server | 30fdeaa658a38fe2049849446c300c1e1f5b5231 | [
"Apache-2.0"
] | 1 | 2019-08-30T13:47:51.000Z | 2019-08-30T13:47:51.000Z | pandaserver/test/callbackDDM.py | mkycanopus/panda-server | 0f7c36800c033fada8bbde53dceaab98770b6df2 | [
"Apache-2.0"
] | null | null | null | pandaserver/test/callbackDDM.py | mkycanopus/panda-server | 0f7c36800c033fada8bbde53dceaab98770b6df2 | [
"Apache-2.0"
] | null | null | null | import sys
import urllib2,urllib
from taskbuffer.TaskBuffer import taskBuffer
from config import panda_config
taskBuffer.init(panda_config.dbhost,panda_config.dbpasswd,nDBConnection=1)
d = taskBuffer.queryDatasetWithMap({'name':sys.argv[1]})
node={}
node['vuid']=d.vuid
node['site']=sys.argv[2]
url='https://localhost:... | 24.736842 | 74 | 0.793617 | 67 | 470 | 5.522388 | 0.537313 | 0.089189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025057 | 0.065957 | 470 | 18 | 75 | 26.111111 | 0.817768 | 0 | 0 | 0 | 0 | 0 | 0.138298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.066667 | 0.266667 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
5b223519e05224555a9b18f4da58066c3de1be55 | 953 | py | Python | shelter/web/views/__init__.py | cedricbonhomme/shelter-database | ca5a4b0e13676879df2b1ebcc190498a8b9b6c21 | [
"MIT"
] | 1 | 2016-10-27T05:06:06.000Z | 2016-10-27T05:06:06.000Z | shelter/web/views/__init__.py | cedricbonhomme/shelter-database | ca5a4b0e13676879df2b1ebcc190498a8b9b6c21 | [
"MIT"
] | null | null | null | shelter/web/views/__init__.py | cedricbonhomme/shelter-database | ca5a4b0e13676879df2b1ebcc190498a8b9b6c21 | [
"MIT"
] | 3 | 2016-08-19T19:49:17.000Z | 2016-10-27T05:06:29.000Z | from web.views.shelter import shelter_bp, shelters_bp
from web.views.user import user_bp
from web.views.administration import admin_bp
from web.views import views
from web.views.page import recommendations
from web.views.admin import *
from web.views.session_mgmt import *
from web.views import api
import conf
from fla... | 30.741935 | 69 | 0.752361 | 146 | 953 | 4.815068 | 0.390411 | 0.079659 | 0.136558 | 0.059744 | 0.099573 | 0.099573 | 0.099573 | 0.099573 | 0.099573 | 0.099573 | 0 | 0 | 0.177335 | 953 | 30 | 70 | 31.766667 | 0.896684 | 0.320042 | 0 | 0 | 0 | 0 | 0.00626 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.647059 | 0 | 0.823529 | 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 |
d2891800a15b48a4a1263fc76791ba621fe10110 | 2,149 | py | Python | src/lesson23/__init__.py | kpnr/otus_2109_hkm_mail_ru | 80966fdc8afd02bfd85091147cc09735a3aeeb9c | [
"Unlicense"
] | null | null | null | src/lesson23/__init__.py | kpnr/otus_2109_hkm_mail_ru | 80966fdc8afd02bfd85091147cc09735a3aeeb9c | [
"Unlicense"
] | null | null | null | src/lesson23/__init__.py | kpnr/otus_2109_hkm_mail_ru | 80966fdc8afd02bfd85091147cc09735a3aeeb9c | [
"Unlicense"
] | null | null | null | """
Урок 23. Состояние
Смена режимов обработки команд
Цель:
Применить паттерн Состояние для изменения поведения обработчиков Команд.
В домашнем задании №2 была реализована многопоточная обработка очереди команд.
Предлагалось два режима остановки этой очереди - hard и soft.
Однако вариантов завершения и режимов обраб... | 39.796296 | 89 | 0.822243 | 285 | 2,149 | 6.207018 | 0.57193 | 0.016959 | 0.022046 | 0.027134 | 0.197287 | 0.197287 | 0.179763 | 0.179763 | 0.081402 | 0 | 0 | 0.007638 | 0.147045 | 2,149 | 54 | 90 | 39.796296 | 0.956356 | 0.996277 | 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 |
d297ad1765b3c02fc47ba37eb3641c25075edb08 | 2,611 | py | Python | custom_user/models.py | EE/flexdb | 08a80b9e56201e678ef055af27bdefa6d52bcbf5 | [
"MIT"
] | null | null | null | custom_user/models.py | EE/flexdb | 08a80b9e56201e678ef055af27bdefa6d52bcbf5 | [
"MIT"
] | null | null | null | custom_user/models.py | EE/flexdb | 08a80b9e56201e678ef055af27bdefa6d52bcbf5 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, PermissionsMixin
from flexdb.utils import get_config, PermissionExeption
class CustomUserManager(BaseUserManager):
def create_user(self, username=None, email=None, password=None):
if not username:
... | 35.767123 | 117 | 0.692455 | 318 | 2,611 | 5.477987 | 0.251572 | 0.040184 | 0.072331 | 0.060276 | 0.19403 | 0.19403 | 0.0907 | 0.057405 | 0.057405 | 0.057405 | 0 | 0.007741 | 0.208349 | 2,611 | 72 | 118 | 36.263889 | 0.835027 | 0 | 0 | 0.145455 | 0 | 0 | 0.038683 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145455 | false | 0.072727 | 0.054545 | 0.054545 | 0.636364 | 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 |
d29b4b0d136ed99bf5f9ab9f0d01bb554bac2f8d | 795 | py | Python | rxbp/observables/mapobservable.py | MichaelSchneeberger/rx_backpressure | 16173827498bf1bbee3344933cb9efbfd19699f5 | [
"Apache-2.0"
] | 24 | 2018-11-22T21:04:49.000Z | 2021-11-08T11:18:09.000Z | rxbp/observables/mapobservable.py | MichaelSchneeberger/rx_backpressure | 16173827498bf1bbee3344933cb9efbfd19699f5 | [
"Apache-2.0"
] | 1 | 2019-02-06T15:58:46.000Z | 2019-02-12T20:31:50.000Z | rxbp/observables/mapobservable.py | MichaelSchneeberger/rx_backpressure | 16173827498bf1bbee3344933cb9efbfd19699f5 | [
"Apache-2.0"
] | 1 | 2021-01-26T12:41:37.000Z | 2021-01-26T12:41:37.000Z | from dataclasses import dataclass
from typing import Callable, Any
from rxbp.observable import Observable
from rxbp.observerinfo import ObserverInfo
from rxbp.observers.mapobserver import MapObserver
@dataclass
class MapObservable(Observable):
source: Observable
func: Callable[[Any], Any]
# stack: List[F... | 28.392857 | 79 | 0.649057 | 79 | 795 | 6.468354 | 0.481013 | 0.046967 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.272956 | 795 | 27 | 80 | 29.444444 | 0.884083 | 0.237736 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 0.0625 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d2a59519d03a8710c6e3ba174d2b97d73844fcb0 | 361 | py | Python | functions/prime.py | KKishikawa/project-euler-for-study-code | fd46f1ee3211b5daa6d042cc993e55f631c9caac | [
"MIT"
] | null | null | null | functions/prime.py | KKishikawa/project-euler-for-study-code | fd46f1ee3211b5daa6d042cc993e55f631c9caac | [
"MIT"
] | null | null | null | functions/prime.py | KKishikawa/project-euler-for-study-code | fd46f1ee3211b5daa6d042cc993e55f631c9caac | [
"MIT"
] | null | null | null | # 素数のリストを得る
def primes(num):
is_prime_list = [True] * (num + 1)
is_prime_list[0] = False
is_prime_list[1] = False
for i in range(2, int(num**0.5) + 1):
if not is_prime_list[i]:
continue
for j in range(i * 2, num + 1, i):
is_prime_list[j] = False
return [i for ... | 30.083333 | 58 | 0.562327 | 64 | 361 | 2.984375 | 0.359375 | 0.219895 | 0.34555 | 0.115183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.307479 | 361 | 11 | 59 | 32.818182 | 0.724 | 0.024931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.2 | 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 |
d2b3612c3a4caaadd28334e24ae2d5fb2e9b72fe | 106 | py | Python | jp.atcoder/abc247/abc247_a/30882599.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-09T03:06:25.000Z | 2022-02-09T03:06:25.000Z | jp.atcoder/abc247/abc247_a/30882599.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-05T22:53:18.000Z | 2022-02-09T01:29:30.000Z | jp.atcoder/abc247/abc247_a/30882599.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | null | null | null | def main() -> None:
s = input()
print("0" + s[:3])
if __name__ == "__main__":
main()
| 13.25 | 27 | 0.443396 | 13 | 106 | 3 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0.339623 | 106 | 7 | 28 | 15.142857 | 0.528571 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.2 | 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 |
d2b499dfae1db9d9567716a3e99bee6230d5b640 | 5,298 | py | Python | arjuna/tpi/enums.py | test-mile/arjuna | 21880b41e061e11bac2e600a3614684f8af75b2f | [
"Apache-2.0"
] | 9 | 2018-11-15T10:09:17.000Z | 2021-01-12T05:59:19.000Z | arjuna/tpi/enums.py | test-mile/arjuna | 21880b41e061e11bac2e600a3614684f8af75b2f | [
"Apache-2.0"
] | 2 | 2019-07-01T15:33:46.000Z | 2019-07-12T13:04:08.000Z | arjuna/tpi/enums.py | test-mile/arjuna | 21880b41e061e11bac2e600a3614684f8af75b2f | [
"Apache-2.0"
] | 4 | 2018-12-02T15:14:04.000Z | 2020-05-28T12:57:24.000Z | from enum import Enum, auto
class ArjunaOption(Enum):
ARJUNA_ROOT_DIR = auto()
ARJUNA_EXTERNAL_TOOLS_DIR = auto()
ARJUNA_EXTERNAL_IMPORTS_DIR = auto()
PYTHON_LOG_NAME = auto()
LOG_NAME = auto()
LOG_DIR = auto()
LOG_CONSOLE_LEVEL = auto()
LOG_FILE_LEVEL = auto()
PROJECT_NAME = aut... | 24.64186 | 61 | 0.686485 | 666 | 5,298 | 5.039039 | 0.297297 | 0.122169 | 0.207688 | 0.089392 | 0.279797 | 0.218117 | 0.118296 | 0 | 0 | 0 | 0 | 0.005958 | 0.208003 | 5,298 | 215 | 62 | 24.64186 | 0.793851 | 0 | 0 | 0.02139 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02139 | 0 | 1.016043 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d2b8dd95e9579426a55d971457b85689f8e6a43c | 23,520 | py | Python | tests/unit/utils/test_migration_utils.py | jgweir/hammr | 38adaab005e58294c1314b56957e4f040ad75749 | [
"Apache-2.0"
] | null | null | null | tests/unit/utils/test_migration_utils.py | jgweir/hammr | 38adaab005e58294c1314b56957e4f040ad75749 | [
"Apache-2.0"
] | null | null | null | tests/unit/utils/test_migration_utils.py | jgweir/hammr | 38adaab005e58294c1314b56957e4f040ad75749 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2007-2018 UShareSoft, 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 requi... | 40.343053 | 182 | 0.684821 | 2,672 | 23,520 | 5.70771 | 0.096557 | 0.044981 | 0.015737 | 0.031473 | 0.775162 | 0.714379 | 0.699167 | 0.644154 | 0.617205 | 0.611304 | 0 | 0.004339 | 0.225893 | 23,520 | 582 | 183 | 40.412371 | 0.833306 | 0.049022 | 0 | 0.467836 | 0 | 0.01462 | 0.177618 | 0.047461 | 0 | 0 | 0 | 0 | 0.192982 | 1 | 0.108187 | false | 0.020468 | 0.020468 | 0 | 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 |
d2ba24076e70adfc763fe8daf5501a2b95c7ea17 | 1,907 | py | Python | enterprise/backend/views_check_functions.py | romic-kid/project-kfsystem | 3ed63c5c063493dc0dd7e0c4b62ba7481bf63311 | [
"BSD-3-Clause"
] | 2 | 2018-03-22T08:42:41.000Z | 2018-07-03T09:22:28.000Z | enterprise/backend/views_check_functions.py | romic-kid/project-kfsystem | 3ed63c5c063493dc0dd7e0c4b62ba7481bf63311 | [
"BSD-3-Clause"
] | 2 | 2019-04-25T02:10:10.000Z | 2022-03-02T01:11:28.000Z | enterprise/backend/views_check_functions.py | romic-kid/project-kfsystem | 3ed63c5c063493dc0dd7e0c4b62ba7481bf63311 | [
"BSD-3-Clause"
] | 1 | 2019-03-14T03:13:05.000Z | 2019-03-14T03:13:05.000Z | from .views_helper_functions import *
def customer_create_check(json_receive):
test_json = json_testing(json_receive, ['email', 'nickname', 'password', 'telephone', 'location', 'description'], 6)
if test_json == 1:
return 0, 'ERROR, incomplete information.'
if test_json == 2:
return 0, 'ER... | 35.981132 | 120 | 0.679601 | 250 | 1,907 | 4.932 | 0.216 | 0.073804 | 0.126521 | 0.068938 | 0.718573 | 0.70073 | 0.633414 | 0.633414 | 0.633414 | 0.596107 | 0 | 0.019129 | 0.205034 | 1,907 | 52 | 121 | 36.673077 | 0.794195 | 0 | 0 | 0.642857 | 0 | 0 | 0.262192 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119048 | false | 0.047619 | 0.02381 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d2c29bd6b787d97ef291d915689a746fa9089bb9 | 9,380 | py | Python | tests/previs/test_clip.py | tws0002/anima | 73c256d1f7716a2db7933d6d8519a51333c7e5b4 | [
"BSD-2-Clause"
] | 7 | 2016-03-30T14:43:33.000Z | 2020-11-12T17:56:40.000Z | tests/previs/test_clip.py | tws0002/anima | 73c256d1f7716a2db7933d6d8519a51333c7e5b4 | [
"BSD-2-Clause"
] | null | null | null | tests/previs/test_clip.py | tws0002/anima | 73c256d1f7716a2db7933d6d8519a51333c7e5b4 | [
"BSD-2-Clause"
] | 3 | 2017-04-13T04:29:04.000Z | 2019-05-08T00:28:44.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2012-2015, Anima Istanbul
#
# This module is part of anima-tools and is released under the BSD 2
# License: http://www.opensource.org/licenses/BSD-2-Clause
import unittest
from anima.edit import Clip, File, Rate
class ClipTestCase(unittest.TestCase):
"""tests the anima.prev... | 30.855263 | 90 | 0.594776 | 1,213 | 9,380 | 4.460016 | 0.126958 | 0.072089 | 0.083179 | 0.080407 | 0.778928 | 0.730314 | 0.685767 | 0.661738 | 0.627172 | 0.586506 | 0 | 0.024966 | 0.286887 | 9,380 | 303 | 91 | 30.957096 | 0.783824 | 0.166311 | 0 | 0.72093 | 0 | 0 | 0.093168 | 0.04146 | 0 | 0 | 0 | 0 | 0.186047 | 1 | 0.075581 | false | 0 | 0.02907 | 0 | 0.110465 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d2d6dff36195af1a6712ca4f5d497089b5d34864 | 1,234 | py | Python | src/pyams_portal/portlets/jumbotron/zmi/__init__.py | Py-AMS/pyams-portal | a19f48079e683711394b8e57c05cf7cd9d20a888 | [
"ZPL-2.1"
] | null | null | null | src/pyams_portal/portlets/jumbotron/zmi/__init__.py | Py-AMS/pyams-portal | a19f48079e683711394b8e57c05cf7cd9d20a888 | [
"ZPL-2.1"
] | null | null | null | src/pyams_portal/portlets/jumbotron/zmi/__init__.py | Py-AMS/pyams-portal | a19f48079e683711394b8e57c05cf7cd9d20a888 | [
"ZPL-2.1"
] | null | null | null | #
# Copyright (c) 2015-2021 Thierry Florac <tflorac AT ulthar.net>
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRAN... | 36.294118 | 88 | 0.806321 | 149 | 1,234 | 6.577181 | 0.57047 | 0.055102 | 0.045918 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009268 | 0.125608 | 1,234 | 33 | 89 | 37.393939 | 0.898981 | 0.43517 | 0 | 0 | 0 | 0 | 0.068249 | 0.04451 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.583333 | 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 |
d2dafff58bb81d2bf7da571d07ac319f430ed81d | 1,000 | py | Python | filebrowser/upload_frontends/uploadify/decorators.py | bendavis78/django-filebrowser | 37f449964790fd892b914ca6bcf3ffa7e9249daa | [
"BSD-3-Clause"
] | null | null | null | filebrowser/upload_frontends/uploadify/decorators.py | bendavis78/django-filebrowser | 37f449964790fd892b914ca6bcf3ffa7e9249daa | [
"BSD-3-Clause"
] | null | null | null | filebrowser/upload_frontends/uploadify/decorators.py | bendavis78/django-filebrowser | 37f449964790fd892b914ca6bcf3ffa7e9249daa | [
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
# django imports
from django.contrib.sessions.models import Session
from django.shortcuts import get_object_or_404, render_to_response
from django.contrib.auth.models import User
from django.template import RequestContext
from django.conf import settings
def flash_login_required(function):
"""
... | 34.482759 | 76 | 0.696 | 128 | 1,000 | 5.257813 | 0.46875 | 0.074294 | 0.093611 | 0.041605 | 0.092125 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012739 | 0.215 | 1,000 | 28 | 77 | 35.714286 | 0.844586 | 0.169 | 0 | 0 | 0 | 0 | 0.029666 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.411765 | 0 | 0.647059 | 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 |
d2e813ce77e8304189dfe578a586911bdc538d96 | 2,867 | py | Python | docker-examples/jupyterhub-singleuser-streamlit-native/intro.py | bruwozniak/jhsingle-native-proxy | 38878fcae7d47e59d14413b121e864feb8df679b | [
"Apache-2.0",
"BSD-3-Clause"
] | 45 | 2020-02-29T07:57:01.000Z | 2022-03-31T11:48:09.000Z | docker-examples/jupyterhub-singleuser-streamlit-native/intro.py | bruwozniak/jhsingle-native-proxy | 38878fcae7d47e59d14413b121e864feb8df679b | [
"Apache-2.0",
"BSD-3-Clause"
] | 18 | 2020-03-05T06:17:03.000Z | 2021-11-26T16:35:45.000Z | docker-examples/jupyterhub-singleuser-streamlit-native/intro.py | bruwozniak/jhsingle-native-proxy | 38878fcae7d47e59d14413b121e864feb8df679b | [
"Apache-2.0",
"BSD-3-Clause"
] | 19 | 2020-03-06T11:58:32.000Z | 2022-02-16T11:49:10.000Z | import pandas
import numpy
import streamlit as st
st.title("Streamlit intro test")
st.write("Examples below were taken from: https://streamlit.io/docs/getting_started.html#get-started")
st.subheader("Here's our first attempt at using data to create a table:")
st.code("""
df = pandas.DataFrame({
'first column':... | 22.053846 | 103 | 0.644227 | 438 | 2,867 | 4.16895 | 0.310502 | 0.065717 | 0.062432 | 0.078861 | 0.673604 | 0.673604 | 0.659365 | 0.659365 | 0.659365 | 0.659365 | 0 | 0.036627 | 0.181025 | 2,867 | 129 | 104 | 22.224806 | 0.741056 | 0.076386 | 0 | 0.827586 | 0 | 0.022989 | 0.56813 | 0.065102 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.057471 | 0 | 0.057471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d2ee8542c387887b7d5af3ae564a24fae8dfc9e6 | 2,007 | py | Python | conanfile.py | lucteo/structured_concurrency_example | 47c977202a2d1f40fa4fc3bfa8c00c1b0788fed6 | [
"MIT"
] | null | null | null | conanfile.py | lucteo/structured_concurrency_example | 47c977202a2d1f40fa4fc3bfa8c00c1b0788fed6 | [
"MIT"
] | null | null | null | conanfile.py | lucteo/structured_concurrency_example | 47c977202a2d1f40fa4fc3bfa8c00c1b0788fed6 | [
"MIT"
] | null | null | null | from conans import ConanFile, CMake, tools
import re
from os import path
class StructuredConcurrencyExampleRecipe(ConanFile):
name = "structured_concurrency_example"
description = "example code for using structure concurrency with senders/receivers"
author = "Lucian Radu Teodorescu"
topics = ("C++", "concu... | 34.603448 | 102 | 0.691579 | 246 | 2,007 | 5.49187 | 0.471545 | 0.048113 | 0.082902 | 0.029608 | 0.112509 | 0.071058 | 0.071058 | 0 | 0 | 0 | 0 | 0.007985 | 0.188839 | 2,007 | 57 | 103 | 35.210526 | 0.821867 | 0.122571 | 0 | 0.05 | 0 | 0 | 0.277239 | 0.073018 | 0 | 0 | 0 | 0.017544 | 0 | 1 | 0.175 | false | 0 | 0.075 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
960d88fa89f7cbdac15625f7c714d69a6beaa73a | 3,934 | py | Python | pynion/abstractclass/jsoner.py | jaumebonet/pynion | 4052aee023df7206c2e56a28c361d4a5a445a6d4 | [
"MIT"
] | null | null | null | pynion/abstractclass/jsoner.py | jaumebonet/pynion | 4052aee023df7206c2e56a28c361d4a5a445a6d4 | [
"MIT"
] | null | null | null | pynion/abstractclass/jsoner.py | jaumebonet/pynion | 4052aee023df7206c2e56a28c361d4a5a445a6d4 | [
"MIT"
] | 1 | 2019-01-09T20:16:46.000Z | 2019-01-09T20:16:46.000Z | from abc import ABCMeta
import json
import jsonpickle
try:
from .numpy_handlers import NPReadable
from .numpy_handlers import register_numpy_handlers
np_readable = NPReadable()
register_numpy_handlers()
except:
np_readable = None
class JSONer(object):
"""The abstract class **JSONer** adds to... | 37.826923 | 79 | 0.654804 | 506 | 3,934 | 5.029644 | 0.262846 | 0.031827 | 0.033006 | 0.042436 | 0.647544 | 0.627898 | 0.627898 | 0.627898 | 0.627898 | 0.627898 | 0 | 0 | 0.28241 | 3,934 | 103 | 80 | 38.194175 | 0.901523 | 0.653279 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
9613fd2ad553730926e3aeb6ecfedd8dc01ee780 | 769 | py | Python | Chapter10/moviereviewsproject/movie/views.py | PacktPublishing/Django-4-for-the-Impatient | a7571124eb414fb0f8bcabe7ae23d64460a1a882 | [
"MIT"
] | null | null | null | Chapter10/moviereviewsproject/movie/views.py | PacktPublishing/Django-4-for-the-Impatient | a7571124eb414fb0f8bcabe7ae23d64460a1a882 | [
"MIT"
] | null | null | null | Chapter10/moviereviewsproject/movie/views.py | PacktPublishing/Django-4-for-the-Impatient | a7571124eb414fb0f8bcabe7ae23d64460a1a882 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponse
from django.shortcuts import get_object_or_404
from .models import Movie
def home(request):
searchTerm = request.GET.get('searchMovie')
if searchTerm:
movies = Movie.objects.filter(title__icontains=searchTerm)
else:
mo... | 32.041667 | 84 | 0.719116 | 100 | 769 | 5.43 | 0.38 | 0.055249 | 0.104972 | 0.092081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012289 | 0.153446 | 769 | 23 | 85 | 33.434783 | 0.821813 | 0 | 0 | 0 | 0 | 0 | 0.13394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.210526 | 0.052632 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
9616b211ae836360617ee340017f8a8e73d34ae6 | 538 | py | Python | onconet/models/blocks/factory.py | harrivle/Mirai | ea2d4839f1f8b9f881798b819b2192ce2795bd5d | [
"MIT"
] | 37 | 2021-01-28T06:00:34.000Z | 2022-03-29T21:14:12.000Z | onconet/models/blocks/factory.py | NkwamPhilip/Mirai | 70413de690da36c5878e2e6006711476e166bb1d | [
"MIT"
] | null | null | null | onconet/models/blocks/factory.py | NkwamPhilip/Mirai | 70413de690da36c5878e2e6006711476e166bb1d | [
"MIT"
] | 14 | 2021-02-02T09:42:18.000Z | 2022-03-23T00:36:41.000Z | BLOCK_REGISTRY = {}
NO_BLOCK_ERR = 'Block {} not in BLOCK_REGISTRY! Available blocks are {}'
def RegisterBlock(block_name):
"""Registers a block."""
def decorator(f):
BLOCK_REGISTRY[block_name] = f
return f
return decorator
def get_block(block_name):
"""Get block from BLOCK_REGISTRY... | 22.416667 | 72 | 0.678439 | 71 | 538 | 4.873239 | 0.366197 | 0.263006 | 0.057803 | 0.127168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228625 | 538 | 23 | 73 | 23.391304 | 0.833735 | 0.128253 | 0 | 0 | 0 | 0 | 0.120087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0 | 0 | 0.461538 | 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 |
824e9c422e5c007aa656fc0c20f2859c7187ced5 | 569 | py | Python | app/routes/user.py | wangonya/ampleanalytics | 54d2cbf7df55c252d3e356a07e11266229a5d821 | [
"Apache-2.0"
] | null | null | null | app/routes/user.py | wangonya/ampleanalytics | 54d2cbf7df55c252d3e356a07e11266229a5d821 | [
"Apache-2.0"
] | null | null | null | app/routes/user.py | wangonya/ampleanalytics | 54d2cbf7df55c252d3e356a07e11266229a5d821 | [
"Apache-2.0"
] | null | null | null | from fastapi import APIRouter, Depends
from app.models.user import Token, User, UserCreate
from app.services.user import UserService
router = APIRouter(prefix="/users", tags=["Users"])
@router.post("/login", response_model=Token)
def login():
return UserService().login_user(form_data)
@router.get("/me", respo... | 23.708333 | 57 | 0.759227 | 76 | 569 | 5.486842 | 0.381579 | 0.105516 | 0.081535 | 0.095923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112478 | 569 | 23 | 58 | 24.73913 | 0.825743 | 0 | 0 | 0 | 0 | 0 | 0.035149 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 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 | 0 | 1 | 1 | 0 | 0 | 2 |
8251573ea84a1cf7446586b7ee93236b0dba018b | 372 | py | Python | exception.py | namsaech/astr-119-session-4 | 37e0e28698f15f71ea96f224105c85be6bf8a5b7 | [
"MIT"
] | null | null | null | exception.py | namsaech/astr-119-session-4 | 37e0e28698f15f71ea96f224105c85be6bf8a5b7 | [
"MIT"
] | null | null | null | exception.py | namsaech/astr-119-session-4 | 37e0e28698f15f71ea96f224105c85be6bf8a5b7 | [
"MIT"
] | null | null | null | #unexpected results, can use try statement to make trial statement
try:
print(a) #have not defined a, will return exception
except:
print("a is not defined!")
#these are specific errors
try:
print(a) # a still not defined
except NameError:
print("a is still not defined")
except:
print("something else went wrong... | 26.571429 | 66 | 0.75 | 60 | 372 | 4.65 | 0.533333 | 0.107527 | 0.064516 | 0.150538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 372 | 14 | 67 | 26.571429 | 0.9 | 0.513441 | 0 | 0.636364 | 0 | 0 | 0.361582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.545455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
8254aff9055f9500adc5c500f35b6fa21005daf3 | 109 | py | Python | arquivo.py | nereshebert/site | 4687db54d11a24e19dd62e8d8c1e5556e99b839e | [
"Apache-2.0"
] | null | null | null | arquivo.py | nereshebert/site | 4687db54d11a24e19dd62e8d8c1e5556e99b839e | [
"Apache-2.0"
] | null | null | null | arquivo.py | nereshebert/site | 4687db54d11a24e19dd62e8d8c1e5556e99b839e | [
"Apache-2.0"
] | null | null | null | MHP = open('numeros.txt','w')
for linha in range(1,101):
arquivo.write('%d\n'%linha)
arquivo.close()
| 12.111111 | 31 | 0.623853 | 18 | 109 | 3.777778 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.155963 | 109 | 8 | 32 | 13.625 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0.146789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
826ae5882558f479dc7ccfe9c87e37300243f4f0 | 484 | py | Python | unittests.py | juliendelplanque/lcddaemon | 77fe0587fe88418aa72897c3a60eff8e7be01372 | [
"MIT"
] | null | null | null | unittests.py | juliendelplanque/lcddaemon | 77fe0587fe88418aa72897c3a60eff8e7be01372 | [
"MIT"
] | 21 | 2015-05-30T16:17:02.000Z | 2015-07-29T17:30:12.000Z | unittests.py | juliendelplanque/lcddaemon | 77fe0587fe88418aa72897c3a60eff8e7be01372 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
""" This script is the launcher of the unit tests.
"""
import unittest
from tests.messagetests import MessageTest
from tests.queuetests import MessageQueueTest
if __name__ == '__main__':
suite = unittest.TestLoader().loadTestsFromTestCase(MessageTest)
unittest.T... | 30.25 | 73 | 0.762397 | 53 | 484 | 6.811321 | 0.603774 | 0.049862 | 0.127424 | 0.243767 | 0.221607 | 0.221607 | 0 | 0 | 0 | 0 | 0 | 0.009412 | 0.121901 | 484 | 15 | 74 | 32.266667 | 0.84 | 0.18595 | 0 | 0.25 | 0 | 0 | 0.020779 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 |
826fbd69e05054e08746b761055ad849b4294f4e | 6,368 | py | Python | lms/lms/settings.py | thevibegod/lms | 4b7f03acb44e63a3f6294c9224d6376ad22800c2 | [
"MIT"
] | null | null | null | lms/lms/settings.py | thevibegod/lms | 4b7f03acb44e63a3f6294c9224d6376ad22800c2 | [
"MIT"
] | 6 | 2021-06-09T18:28:28.000Z | 2022-03-12T00:53:22.000Z | lms/lms/settings.py | thevibegod/lms | 4b7f03acb44e63a3f6294c9224d6376ad22800c2 | [
"MIT"
] | null | null | null | """
Django settings for lms project.
Generated by 'django-admin startproject' using Django 3.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
import os
import ... | 28.684685 | 107 | 0.702732 | 715 | 6,368 | 6.002797 | 0.321678 | 0.048462 | 0.031687 | 0.040774 | 0.225303 | 0.199674 | 0.070596 | 0.052889 | 0.018639 | 0 | 0 | 0.01268 | 0.170226 | 6,368 | 221 | 108 | 28.81448 | 0.799584 | 0.167242 | 0 | 0.038961 | 1 | 0 | 0.548797 | 0.42581 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.038961 | 0.019481 | 0 | 0.019481 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8277a9886077b5de2434ff5270e12301badeab02 | 305 | py | Python | tests/apps/overriding/abstract_models.py | samuelmaudo/yepes | 1ef9a42d4eaa70d9b3e6e7fa519396c1e1174fcb | [
"BSD-3-Clause"
] | null | null | null | tests/apps/overriding/abstract_models.py | samuelmaudo/yepes | 1ef9a42d4eaa70d9b3e6e7fa519396c1e1174fcb | [
"BSD-3-Clause"
] | null | null | null | tests/apps/overriding/abstract_models.py | samuelmaudo/yepes | 1ef9a42d4eaa70d9b3e6e7fa519396c1e1174fcb | [
"BSD-3-Clause"
] | null | null | null | # -*- coding:utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from ..overridable.abstract_models import AbstractArticle as BaseArticle
class AbstractArticle(BaseArticle):
extract = models.TextField(
blank=True)
class Meta:
abstract = True
| 16.944444 | 72 | 0.711475 | 33 | 305 | 6.393939 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004167 | 0.213115 | 305 | 17 | 73 | 17.941176 | 0.875 | 0.065574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.75 | 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 |
82794b1e22d7661fda871b9953e2e7047eca8ba0 | 1,555 | py | Python | tutorials/text-processing.py | JoslaTech/casba-web-master | c405cca76b8c1b0d3681242f837af9ca51f4f70d | [
"Apache-2.0"
] | null | null | null | tutorials/text-processing.py | JoslaTech/casba-web-master | c405cca76b8c1b0d3681242f837af9ca51f4f70d | [
"Apache-2.0"
] | null | null | null | tutorials/text-processing.py | JoslaTech/casba-web-master | c405cca76b8c1b0d3681242f837af9ca51f4f70d | [
"Apache-2.0"
] | 1 | 2019-01-16T08:35:42.000Z | 2019-01-16T08:35:42.000Z | # Simple Bag of Word model for Sentiment Analysis on a Single tweet
tweet='Ok'
print tweet
print len(tweet)
## Create dictionary for linguistic query
positive_words=['awesome','good','nice','super','fun']
positive_words.append('delightful')
print positive_words
negative_words=['awful','lame','horrible','bad']
print ... | 23.208955 | 108 | 0.719614 | 217 | 1,555 | 5.073733 | 0.317972 | 0.049046 | 0.040872 | 0.063579 | 0.26158 | 0.217984 | 0.199818 | 0.199818 | 0.185286 | 0.185286 | 0 | 0 | 0.182637 | 1,555 | 66 | 109 | 23.560606 | 0.866247 | 0.245659 | 0 | 0.358974 | 0 | 0 | 0.154246 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025641 | null | null | 0.435897 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
82852a989d8772169bc818530836304d2b20e916 | 235 | py | Python | setup.py | nestauk/funding_analytics_eu | 42fad368a90af2d0530ad83ac5c443c04fda1c73 | [
"MIT"
] | null | null | null | setup.py | nestauk/funding_analytics_eu | 42fad368a90af2d0530ad83ac5c443c04fda1c73 | [
"MIT"
] | null | null | null | setup.py | nestauk/funding_analytics_eu | 42fad368a90af2d0530ad83ac5c443c04fda1c73 | [
"MIT"
] | 2 | 2020-03-02T12:56:25.000Z | 2020-03-11T13:10:35.000Z | from setuptools import find_packages, setup
setup(
name='eurito_funding',
packages=find_packages(),
version='0.1.0',
description='EURITO: Advanced R&I funding analytics pilot',
author='nesta',
license='MIT',
)
| 21.363636 | 63 | 0.685106 | 29 | 235 | 5.448276 | 0.758621 | 0.151899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015625 | 0.182979 | 235 | 10 | 64 | 23.5 | 0.807292 | 0 | 0 | 0 | 0 | 0 | 0.302128 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
82877a3e306ed1746305a96df93003c53ac5fc7e | 5,184 | py | Python | external/trappy/trappy/stats/Topology.py | qais-yousef/lisa | 8343e26bf0565589928a69ccbe67b1be03403db7 | [
"Apache-2.0"
] | 62 | 2015-08-14T11:30:37.000Z | 2022-02-26T13:22:53.000Z | external/trappy/trappy/stats/Topology.py | qais-yousef/lisa | 8343e26bf0565589928a69ccbe67b1be03403db7 | [
"Apache-2.0"
] | 208 | 2015-08-13T20:43:38.000Z | 2021-07-20T10:59:53.000Z | external/trappy/trappy/stats/Topology.py | qais-yousef/lisa | 8343e26bf0565589928a69ccbe67b1be03403db7 | [
"Apache-2.0"
] | 47 | 2015-08-13T14:49:05.000Z | 2022-02-26T13:22:52.000Z | # Copyright 2015-2017 ARM Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | 28.173913 | 74 | 0.553819 | 639 | 5,184 | 4.344288 | 0.267606 | 0.058357 | 0.022695 | 0.025937 | 0.145173 | 0.145173 | 0.135447 | 0.135447 | 0.108069 | 0.108069 | 0 | 0.009052 | 0.318094 | 5,184 | 183 | 75 | 28.327869 | 0.776238 | 0.563657 | 0 | 0.081633 | 0 | 0 | 0.010371 | 0 | 0 | 0 | 0 | 0.005464 | 0 | 1 | 0.204082 | false | 0 | 0.081633 | 0.020408 | 0.510204 | 0.020408 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
82906434545e572a26e94f05018dbd1678706f7e | 396 | py | Python | estruturas_de_controle/switch_2.py | ian0011/PythonStudy | e5ff91e5b693f1b9d3bece916ae6fc49284675f6 | [
"MIT"
] | 2 | 2021-11-23T22:16:52.000Z | 2021-11-23T23:09:31.000Z | estruturas_de_controle/switch_2.py | ian0011/PythonStudy | e5ff91e5b693f1b9d3bece916ae6fc49284675f6 | [
"MIT"
] | null | null | null | estruturas_de_controle/switch_2.py | ian0011/PythonStudy | e5ff91e5b693f1b9d3bece916ae6fc49284675f6 | [
"MIT"
] | null | null | null | def get_tipo_dia(dia):
dias = {
1: 'Fim de semana',
2: 'Dia de semana',
3: 'Dia de semana',
4: 'Dia de semana',
5: 'Dia de semana',
6: 'Dia de semana',
7: 'Fim de semana',
}
return dias.get(dia, '** inválido **')
if __name__ == '__main__... | 23.294118 | 45 | 0.469697 | 54 | 396 | 3.222222 | 0.481481 | 0.321839 | 0.316092 | 0.149425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032129 | 0.371212 | 396 | 16 | 46 | 24.75 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.365789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.142857 | 0.071429 | 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 |
8291df4a86d029250c3702d20a31b4db1e245be3 | 23,419 | py | Python | billforward/models/timer_amendment.py | billforward/bf-python | d2b812329ca3ed1fd94364d7f46f69ad74665596 | [
"Apache-2.0"
] | 2 | 2016-11-23T17:32:37.000Z | 2022-02-24T05:13:20.000Z | billforward/models/timer_amendment.py | billforward/bf-python | d2b812329ca3ed1fd94364d7f46f69ad74665596 | [
"Apache-2.0"
] | null | null | null | billforward/models/timer_amendment.py | billforward/bf-python | d2b812329ca3ed1fd94364d7f46f69ad74665596 | [
"Apache-2.0"
] | 1 | 2016-12-30T20:02:48.000Z | 2016-12-30T20:02:48.000Z | # coding: utf-8
"""
BillForward REST API
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
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... | 36.880315 | 3,704 | 0.623895 | 2,202 | 23,419 | 6.476839 | 0.190282 | 0.031973 | 0.106577 | 0.047819 | 0.43374 | 0.351984 | 0.290843 | 0.223391 | 0.158463 | 0.143598 | 0 | 0.001451 | 0.264102 | 23,419 | 634 | 3,705 | 36.938486 | 0.8261 | 0.318758 | 0 | 0.264 | 1 | 0 | 0.349042 | 0.135381 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176 | false | 0.004 | 0.012 | 0 | 0.288 | 0.004 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
829615c73b45a7fe272e9d7bc522c6be863482e3 | 95 | py | Python | main.py | jackhirsh/db_final_project | 5d041fefd0e4ae8794582fd6a3d9a84271e70008 | [
"MIT"
] | 1 | 2019-11-21T18:20:03.000Z | 2019-11-21T18:20:03.000Z | main.py | jackhirsh/db_final_project | 5d041fefd0e4ae8794582fd6a3d9a84271e70008 | [
"MIT"
] | null | null | null | main.py | jackhirsh/db_final_project | 5d041fefd0e4ae8794582fd6a3d9a84271e70008 | [
"MIT"
] | null | null | null | from ui.app import ClimateApp
if __name__ == "__main__":
app = ClimateApp()
app.run()
| 15.833333 | 29 | 0.652632 | 12 | 95 | 4.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221053 | 95 | 5 | 30 | 19 | 0.72973 | 0 | 0 | 0 | 0 | 0 | 0.084211 | 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 |
82a481d3a9a12da6837eae02494b3a638c9d5c21 | 1,282 | py | Python | adanet/core/timer.py | eustomaqua/adanet | 9c1de82428a4e661768af8e764041afebfec2e6f | [
"Apache-2.0"
] | 3,323 | 2018-10-30T15:24:26.000Z | 2022-03-26T02:39:29.000Z | adanet/core/timer.py | eustomaqua/adanet | 9c1de82428a4e661768af8e764041afebfec2e6f | [
"Apache-2.0"
] | 136 | 2018-10-30T18:22:45.000Z | 2022-02-02T20:39:26.000Z | adanet/core/timer.py | eustomaqua/adanet | 9c1de82428a4e661768af8e764041afebfec2e6f | [
"Apache-2.0"
] | 542 | 2018-10-30T18:18:04.000Z | 2022-03-31T12:41:50.000Z | """A simple timer implementation.
Copyright 2018 The AdaNet Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless re... | 27.869565 | 72 | 0.75117 | 176 | 1,282 | 5.272727 | 0.5625 | 0.064655 | 0.051724 | 0.034483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008515 | 0.175507 | 1,282 | 45 | 73 | 28.488889 | 0.869442 | 0.642746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.363636 | 0 | 0.727273 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
82ad5ca14e22a100a8571956567f7e72d963b014 | 21,819 | py | Python | tests/test_stimulus.py | Ronjaa95/neurolib | 6d066a6428718ec85c9b1b87707ea73bc179ebf9 | [
"MIT"
] | 258 | 2020-01-26T14:38:09.000Z | 2022-03-31T14:54:04.000Z | tests/test_stimulus.py | Ronjaa95/neurolib | 6d066a6428718ec85c9b1b87707ea73bc179ebf9 | [
"MIT"
] | 172 | 2020-01-27T11:02:28.000Z | 2022-03-22T22:25:38.000Z | tests/test_stimulus.py | Ronjaa95/neurolib | 6d066a6428718ec85c9b1b87707ea73bc179ebf9 | [
"MIT"
] | 49 | 2020-02-04T08:34:44.000Z | 2022-03-28T09:29:12.000Z | """
Tests of noise input.
"""
import unittest
import numpy as np
from chspy import CubicHermiteSpline
from neurolib.models.aln import ALNModel
from neurolib.utils.stimulus import (
ConcatenatedStimulus,
ExponentialInput,
LinearRampInput,
OrnsteinUhlenbeckProcess,
RectifiedInput,
SinusoidalInpu... | 32.61435 | 108 | 0.572574 | 2,593 | 21,819 | 4.659853 | 0.069418 | 0.010924 | 0.022345 | 0.029794 | 0.800381 | 0.758917 | 0.694861 | 0.640652 | 0.611934 | 0.584292 | 0 | 0.028787 | 0.302672 | 21,819 | 668 | 109 | 32.663174 | 0.765363 | 0.000962 | 0 | 0.654639 | 0 | 0 | 0.027857 | 0 | 0 | 0 | 0 | 0 | 0.19244 | 1 | 0.089347 | false | 0 | 0.008591 | 0 | 0.147766 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
82b25b6eddac252bc3b50a6af0bb3c3a8024e6b4 | 845 | py | Python | lib/services/service.py | Juniper/YAPT | b1a54998867c70352001415d5e4b70408480dab9 | [
"BSD-3-Clause"
] | 33 | 2018-05-17T04:16:56.000Z | 2021-11-25T21:21:02.000Z | lib/services/service.py | Juniper/YAPT | b1a54998867c70352001415d5e4b70408480dab9 | [
"BSD-3-Clause"
] | 4 | 2021-01-10T20:45:31.000Z | 2021-09-23T23:21:16.000Z | lib/services/service.py | Juniper/YAPT | b1a54998867c70352001415d5e4b70408480dab9 | [
"BSD-3-Clause"
] | 8 | 2018-09-19T12:18:54.000Z | 2021-01-10T03:49:10.000Z | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
# Copyright (c) 2018 Juniper Networks, Inc.
# All rights reserved.
# Use is subject to license terms.
#
# Author: cklewar
import abc
import lib.constants as c
from lib.processor import BackendClientProcessor
class Service(object):
def __init__(self,... | 25.606061 | 98 | 0.711243 | 101 | 845 | 5.792079 | 0.584158 | 0.030769 | 0.102564 | 0.179487 | 0.188034 | 0.188034 | 0.188034 | 0 | 0 | 0 | 0 | 0.006015 | 0.213018 | 845 | 32 | 99 | 26.40625 | 0.873684 | 0.20355 | 0 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.157895 | 0 | 0.421053 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
82b469064cd35b22ab81e20087dfcd6cd5ef5475 | 332 | py | Python | mundo 1/035.py | thiagofreitascarneiro/Curso-de-Python---Curso-em-Video | 0342e482780b5a1c6f78cddd51d9bfad785c79fa | [
"MIT"
] | 1 | 2021-08-04T13:21:22.000Z | 2021-08-04T13:21:22.000Z | mundo 1/035.py | thiagofreitascarneiro/Curso-de-Python---Curso-em-Video | 0342e482780b5a1c6f78cddd51d9bfad785c79fa | [
"MIT"
] | null | null | null | mundo 1/035.py | thiagofreitascarneiro/Curso-de-Python---Curso-em-Video | 0342e482780b5a1c6f78cddd51d9bfad785c79fa | [
"MIT"
] | null | null | null | seg1 = float(input('Primeiro segmento:'))
seg2 = float(input('Segundo segmento:'))
seg3 = float(input('Terceiro Segmento:'))
if seg1 < seg2 + seg3 and seg2 < seg1 + seg3 and seg3 < seg1 +seg2:
print('\033[1;30;45mOs segmentos acima PODEM FORMAR Triângulo\033[m')
else:
print('\033[1;36;40mNão podem formar triâng... | 41.5 | 73 | 0.698795 | 50 | 332 | 4.64 | 0.5 | 0.12931 | 0.077586 | 0.198276 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119718 | 0.144578 | 332 | 7 | 74 | 47.428571 | 0.697183 | 0 | 0 | 0 | 0 | 0 | 0.475904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 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 |
82b6927dd1f858697b7650634af2344f9510c6a6 | 583 | py | Python | src/SCXML_Parser/Scxml_parsor.py | madkira/SCXML_to_FSM_for_Arduino | 2e2443eca70ff6d5a8b8ac8c32b0c7e1d4440201 | [
"MIT"
] | 1 | 2020-05-13T23:03:19.000Z | 2020-05-13T23:03:19.000Z | src/SCXML_Parser/Scxml_parsor.py | madkira/SCXML_to_FSM_for_Arduino | 2e2443eca70ff6d5a8b8ac8c32b0c7e1d4440201 | [
"MIT"
] | null | null | null | src/SCXML_Parser/Scxml_parsor.py | madkira/SCXML_to_FSM_for_Arduino | 2e2443eca70ff6d5a8b8ac8c32b0c7e1d4440201 | [
"MIT"
] | 1 | 2019-01-20T12:46:37.000Z | 2019-01-20T12:46:37.000Z | import untangle
from src.Data_Model.State import State
from src.SCXML_Parser.State_parsor import State_parsor
class Scxml_parsor(object):
def __init__(self, file):
self._tree = untangle.parse(file).scxml
self._first = State_parsor(self._tree).obtain_Initial()
self._states = []
... | 20.103448 | 63 | 0.660377 | 74 | 583 | 4.891892 | 0.378378 | 0.121547 | 0.077348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.250429 | 583 | 28 | 64 | 20.821429 | 0.828375 | 0 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.176471 | 0.117647 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
82ba1104b8d735766d0f4e2748746b2296fd2442 | 15,876 | py | Python | unparse/test/testcombinators.py | mattfenwick/UnParse | 4a445267755d6567d02b91d9813defa0deb2df85 | [
"MIT"
] | 2 | 2017-01-21T02:09:12.000Z | 2020-05-11T01:39:43.000Z | unparse/test/testcombinators.py | mattfenwick/UnParse | 4a445267755d6567d02b91d9813defa0deb2df85 | [
"MIT"
] | 1 | 2018-12-04T12:38:28.000Z | 2018-12-04T12:38:28.000Z | unparse/test/testcombinators.py | mattfenwick/UnParse | 4a445267755d6567d02b91d9813defa0deb2df85 | [
"MIT"
] | null | null | null | from .. import combinators as c
from .. import maybeerror as me
import unittest as u
m = me.MaybeError
l = c.ConsList
def good(rest, state, result):
return m.pure({'rest': rest, 'state': state, 'result': result})
iz1 = c.basic
iz2 = c.position
iz3 = c.count
class Checks(u.TestCase):
def testCheckFunctio... | 41.34375 | 95 | 0.530927 | 2,299 | 15,876 | 3.662897 | 0.108743 | 0.229783 | 0.081226 | 0.101057 | 0.648142 | 0.543641 | 0.464909 | 0.358152 | 0.27562 | 0.23097 | 0 | 0.062257 | 0.239166 | 15,876 | 383 | 96 | 41.451697 | 0.634904 | 0.012346 | 0 | 0.232026 | 0 | 0 | 0.052185 | 0 | 0 | 0 | 0 | 0 | 0.447712 | 1 | 0.183007 | false | 0 | 0.009804 | 0.003268 | 0.212418 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
82bcb3a58f18c43b6fba94bec1f9d1bdf775ef1f | 382 | py | Python | app/Http/Controllers/Full_Auth/Full_Auth.py | muhammad123410/MsAccess | 3ac1461cb1795312257da4875c6d7e9dbc4b4a5d | [
"MIT"
] | null | null | null | app/Http/Controllers/Full_Auth/Full_Auth.py | muhammad123410/MsAccess | 3ac1461cb1795312257da4875c6d7e9dbc4b4a5d | [
"MIT"
] | null | null | null | app/Http/Controllers/Full_Auth/Full_Auth.py | muhammad123410/MsAccess | 3ac1461cb1795312257da4875c6d7e9dbc4b4a5d | [
"MIT"
] | null | null | null | import sys
from docxtpl import DocxTemplate
import jinja2
import json
import os
import ast
files=sys.argv[1]
# print(files)
# print(sys.argv[2])
context = eval(sys.argv[2])
print(type(context))
doc = DocxTemplate(files+'\Http\Controllers\Full_Auth\Full_AuthComplete.docx')
doc.render(context)
do... | 19.1 | 79 | 0.73822 | 55 | 382 | 5.054545 | 0.490909 | 0.07554 | 0.057554 | 0.172662 | 0.230216 | 0.230216 | 0 | 0 | 0 | 0 | 0 | 0.012121 | 0.136126 | 382 | 20 | 80 | 19.1 | 0.830303 | 0.081152 | 0 | 0 | 0 | 0 | 0.290909 | 0.290909 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
82c65c29b28feb81b40b8a275848005fd3253eca | 5,784 | py | Python | tempest/api/orchestration/base_multipleusers.py | BeenzSyed/tempest | 7a64ee1216d844f6b99928b53f5c665b84cb8719 | [
"Apache-2.0"
] | null | null | null | tempest/api/orchestration/base_multipleusers.py | BeenzSyed/tempest | 7a64ee1216d844f6b99928b53f5c665b84cb8719 | [
"Apache-2.0"
] | null | null | null | tempest/api/orchestration/base_multipleusers.py | BeenzSyed/tempest | 7a64ee1216d844f6b99928b53f5c665b84cb8719 | [
"Apache-2.0"
] | null | null | null | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# 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... | 34.224852 | 80 | 0.570885 | 596 | 5,784 | 5.39094 | 0.33557 | 0.029879 | 0.048553 | 0.043573 | 0.18145 | 0.129474 | 0.070962 | 0.070962 | 0.070962 | 0.070962 | 0 | 0.013058 | 0.338001 | 5,784 | 169 | 81 | 34.224852 | 0.826064 | 0.13278 | 0 | 0.179688 | 0 | 0 | 0.089638 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.054688 | 0.046875 | null | null | 0.015625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
82c74e651098e89432a466d1228595aad2381262 | 3,184 | py | Python | MeetMap/mainapp/models.py | kbMSU/Meetmap-Django | 3efb2d908066720e9802e628d7826f6bc00f4b1a | [
"Apache-2.0"
] | null | null | null | MeetMap/mainapp/models.py | kbMSU/Meetmap-Django | 3efb2d908066720e9802e628d7826f6bc00f4b1a | [
"Apache-2.0"
] | null | null | null | MeetMap/mainapp/models.py | kbMSU/Meetmap-Django | 3efb2d908066720e9802e628d7826f6bc00f4b1a | [
"Apache-2.0"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
class InterestManager(models.Manager):
def get_by_natural_key(self, interest_name):
return self.get(interest_name=interest_name)
class Interest(models.Model):
objects = InterestManager()
interest_name = models.CharField(ma... | 33.87234 | 96 | 0.668656 | 351 | 3,184 | 5.871795 | 0.210826 | 0.04852 | 0.078603 | 0.104803 | 0.39738 | 0.263464 | 0.179039 | 0.097525 | 0.046579 | 0.046579 | 0 | 0.011784 | 0.227073 | 3,184 | 93 | 97 | 34.236559 | 0.825681 | 0 | 0 | 0.101449 | 0 | 0 | 0.023555 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.144928 | false | 0 | 0.028986 | 0.144928 | 0.782609 | 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 |
82d4eb2d432b491345f100b97c33b0f31f05236b | 376 | py | Python | clouseau/clients/abstract.py | sking963/clouseau | b524804988c98525944f8ea26b2fb31c58e7ce45 | [
"CC0-1.0"
] | null | null | null | clouseau/clients/abstract.py | sking963/clouseau | b524804988c98525944f8ea26b2fb31c58e7ce45 | [
"CC0-1.0"
] | null | null | null | clouseau/clients/abstract.py | sking963/clouseau | b524804988c98525944f8ea26b2fb31c58e7ce45 | [
"CC0-1.0"
] | null | null | null | from builtins import object
from abc import ABCMeta, abstractmethod
from future.utils import with_metaclass
class AbstractClient(with_metaclass(ABCMeta, object)):
@abstractmethod
def render(self,data):
"""
Each instance of an AbstractClient must implement a render method,
which is c... | 20.888889 | 75 | 0.699468 | 43 | 376 | 6.069767 | 0.744186 | 0.099617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24734 | 376 | 17 | 76 | 22.117647 | 0.922261 | 0.25266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
82db88f4ee6f4bbb7589f752232d8fa3bc705e62 | 787 | py | Python | src/scheduler/__init__.py | borhanMorphy/speech-emotion-recognition | 8ac85c0699cc1d80c56fc026729beef18e0c05ec | [
"MIT"
] | 2 | 2021-05-01T17:30:55.000Z | 2021-05-02T13:30:01.000Z | src/scheduler/__init__.py | borhanMorphy/speech-emotion-recognition | 8ac85c0699cc1d80c56fc026729beef18e0c05ec | [
"MIT"
] | null | null | null | src/scheduler/__init__.py | borhanMorphy/speech-emotion-recognition | 8ac85c0699cc1d80c56fc026729beef18e0c05ec | [
"MIT"
] | null | null | null | from typing import List
from torch.optim import Optimizer
__scheduler_mapper__ = {}
def list_schedulers() -> List[str]:
"""Returns list of available schedulers names
Returns:
List[str]: list of scheduler names as string
>>> import src
>>> src.list_schedulers()
[]
"""
return sorte... | 28.107143 | 97 | 0.691233 | 90 | 787 | 5.766667 | 0.422222 | 0.115607 | 0.080925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.200762 | 787 | 27 | 98 | 29.148148 | 0.825119 | 0.383736 | 0 | 0 | 0 | 0 | 0.071926 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 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 |
82e41f8b5c32ed5cd299842baf0b66d4dd9f873e | 24,753 | py | Python | src/oci/usage_api/models/usage_summary.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/usage_api/models/usage_summary.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/oci/usage_api/models/usage_summary.py | LaudateCorpus1/oci-python-sdk | b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 26.361022 | 245 | 0.596332 | 2,797 | 24,753 | 5.094387 | 0.068287 | 0.061478 | 0.183171 | 0.08955 | 0.614991 | 0.511474 | 0.395607 | 0.273282 | 0.19847 | 0.122395 | 0 | 0.001086 | 0.330223 | 24,753 | 938 | 246 | 26.389126 | 0.858375 | 0.48281 | 0 | 0.104317 | 0 | 0 | 0.1073 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.223022 | false | 0 | 0.007194 | 0.007194 | 0.352518 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7d5c4c2a6a3d326ade27b99b95e5b5e2510c083d | 838 | py | Python | Based.py | Hellscap3d/Based | e22f501c8ef110d89d45e9e9632f423b48487d71 | [
"CC0-1.0"
] | null | null | null | Based.py | Hellscap3d/Based | e22f501c8ef110d89d45e9e9632f423b48487d71 | [
"CC0-1.0"
] | null | null | null | Based.py | Hellscap3d/Based | e22f501c8ef110d89d45e9e9632f423b48487d71 | [
"CC0-1.0"
] | null | null | null | import json,os
class Based:
def __init__(self,name):
self.db = {}
self.name = name
if os.path.isfile(f"{self.name}.json"):
self.db = json.loads(open(f"{self.name}.json","r").read())
def internal_function_set_db_DONOTUSE(self,newDb):
self.db = newDb
d... | 17.458333 | 64 | 0.551313 | 114 | 838 | 3.947368 | 0.377193 | 0.106667 | 0.06 | 0.086667 | 0.222222 | 0.146667 | 0 | 0 | 0 | 0 | 0 | 0 | 0.304296 | 838 | 47 | 65 | 17.829787 | 0.77187 | 0 | 0 | 0 | 0 | 0 | 0.136038 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28 | 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 |
7d6c1b3ea90526a7c510fdc444b0d14667a66643 | 133 | py | Python | task5.py | koshikka/assingment1 | c22bcb684fcdde377250ffaf5d0579bfba47abc1 | [
"BSD-3-Clause"
] | null | null | null | task5.py | koshikka/assingment1 | c22bcb684fcdde377250ffaf5d0579bfba47abc1 | [
"BSD-3-Clause"
] | null | null | null | task5.py | koshikka/assingment1 | c22bcb684fcdde377250ffaf5d0579bfba47abc1 | [
"BSD-3-Clause"
] | null | null | null | import statistics
power_arr = [4, 5, 2, 6, 3, 7, 8, 9, 6, 5, 2]
median = statistics.median(power_arr)
print("The median is", median)
| 26.6 | 45 | 0.669173 | 25 | 133 | 3.48 | 0.64 | 0.183908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099099 | 0.165414 | 133 | 4 | 46 | 33.25 | 0.684685 | 0 | 0 | 0 | 0 | 0 | 0.097744 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7d77a1186d4910b5742c8e1050d93393b5a2cacf | 72 | py | Python | src/data/datasets/__init__.py | cmlab-mira/template | ae462f6eed9f3aa71d130c281c01c22fe0124a7b | [
"MIT"
] | 4 | 2019-08-10T16:56:55.000Z | 2020-02-21T03:42:41.000Z | src/data/datasets/__init__.py | cmlab-mira/template | ae462f6eed9f3aa71d130c281c01c22fe0124a7b | [
"MIT"
] | 19 | 2019-05-21T12:48:37.000Z | 2020-04-01T09:56:42.000Z | src/data/datasets/__init__.py | cmlab-mira/template | ae462f6eed9f3aa71d130c281c01c22fe0124a7b | [
"MIT"
] | 1 | 2019-08-09T17:06:56.000Z | 2019-08-09T17:06:56.000Z | from .base_dataset import BaseDataset
__all__ = [
'BaseDataset',
]
| 12 | 37 | 0.708333 | 7 | 72 | 6.571429 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194444 | 72 | 5 | 38 | 14.4 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0.152778 | 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 |
7d8d61ffedd7e1af3701108c5dad18fbf9c7a007 | 349 | py | Python | q2_chemistree/_transformer.py | mwang87/q2-chemistree | 950b1f8217a73f0eefaa4f285f0cb4accfffb8d7 | [
"BSD-2-Clause"
] | null | null | null | q2_chemistree/_transformer.py | mwang87/q2-chemistree | 950b1f8217a73f0eefaa4f285f0cb4accfffb8d7 | [
"BSD-2-Clause"
] | null | null | null | q2_chemistree/_transformer.py | mwang87/q2-chemistree | 950b1f8217a73f0eefaa4f285f0cb4accfffb8d7 | [
"BSD-2-Clause"
] | null | null | null | from .plugin_setup import plugin
from ._semantics import FingerprintNetworkEdgesFile
import pandas as pd
@plugin.register_transformer
def dataframe_to_edges(data: pd.DataFrame) -> FingerprintNetworkEdgesFile:
ff = FingerprintNetworkEdgesFile()
with ff.open() as fh:
data.to_csv(path_or_buf=fh, sep="\t"... | 29.083333 | 74 | 0.767908 | 44 | 349 | 5.909091 | 0.659091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148997 | 349 | 11 | 75 | 31.727273 | 0.875421 | 0 | 0 | 0 | 0 | 0 | 0.005731 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
7d8f29df89bda0cc57224dfc39ac891906263027 | 6,299 | py | Python | test/test_encode.py | ianco/von_anchor | ec19cda85a934307d5338858bc4fb323306e5b21 | [
"Apache-2.0"
] | null | null | null | test/test_encode.py | ianco/von_anchor | ec19cda85a934307d5338858bc4fb323306e5b21 | [
"Apache-2.0"
] | null | null | null | test/test_encode.py | ianco/von_anchor | ec19cda85a934307d5338858bc4fb323306e5b21 | [
"Apache-2.0"
] | null | null | null | """
Copyright 2017-2019 Government of Canada - Public Services and Procurement Canada - buyandsell.gc.ca
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
... | 33.152632 | 103 | 0.552469 | 538 | 6,299 | 6.427509 | 0.371747 | 0.005784 | 0.004627 | 0.004338 | 0.122614 | 0.122614 | 0.092539 | 0.039907 | 0.023135 | 0 | 0 | 0.367481 | 0.324337 | 6,299 | 189 | 104 | 33.328042 | 0.445019 | 0.101127 | 0 | 0.049383 | 0 | 0 | 0.351963 | 0.218253 | 0 | 0 | 0 | 0 | 0.037037 | 1 | 0 | false | 0.006173 | 0.049383 | 0 | 0.049383 | 0.061728 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7d992b95da47ef5083fe7539b6fc26ed54d36cb8 | 332 | py | Python | tests/core/engines/test_Engine.py | mariosanroman/PyAspect | 02084cb781115c58c0a4155822d54a0e31fbdfbe | [
"Apache-2.0"
] | 1 | 2019-12-12T11:11:21.000Z | 2019-12-12T11:11:21.000Z | tests/core/engines/test_Engine.py | mariosanroman/PyAspect | 02084cb781115c58c0a4155822d54a0e31fbdfbe | [
"Apache-2.0"
] | null | null | null | tests/core/engines/test_Engine.py | mariosanroman/PyAspect | 02084cb781115c58c0a4155822d54a0e31fbdfbe | [
"Apache-2.0"
] | 1 | 2019-12-03T08:54:20.000Z | 2019-12-03T08:54:20.000Z | #
import pytest
from aspect.core.engines.Engine import Engine
@pytest.fixture
def engine():
return Engine()
def test_engine_instantiation(engine):
assert engine.target == "PythonMemoryModel"
def test_engine_get_operation(engine):
with pytest.raises(NotImplementedError):
engine.get_operation("com... | 20.75 | 47 | 0.762048 | 39 | 332 | 6.333333 | 0.564103 | 0.05668 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141566 | 332 | 15 | 48 | 22.133333 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0.087613 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.3 | false | 0 | 0.2 | 0.1 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
7d9cb51f5374214f1bcae5637690fef0fa1d35de | 2,697 | py | Python | scripts/test_reports/testrail_client/api/milestone.py | xuhao8210/qm | dd571aa7ada901786063135168c9b28f67d6a99f | [
"Apache-2.0"
] | 5 | 2018-11-05T16:10:11.000Z | 2022-03-23T15:56:45.000Z | scripts/test_reports/testrail_client/api/milestone.py | xuhao8210/qm | dd571aa7ada901786063135168c9b28f67d6a99f | [
"Apache-2.0"
] | 7 | 2018-06-25T08:40:31.000Z | 2020-01-13T06:14:52.000Z | scripts/test_reports/testrail_client/api/milestone.py | xuhao8210/qm | dd571aa7ada901786063135168c9b28f67d6a99f | [
"Apache-2.0"
] | 5 | 2018-06-25T06:29:23.000Z | 2019-09-20T08:02:03.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from testrail_client.api.base import TestRailAPIBase
class MileStone(TestRailAPIBase):
"""
Use the following API methods to request details
about milestones and to create or modify milestones.
"""
def __repr__(self):
return '<TestRailAPI miles... | 39.086957 | 89 | 0.626622 | 331 | 2,697 | 4.957704 | 0.280967 | 0.033516 | 0.076782 | 0.027422 | 0.373553 | 0.373553 | 0.373553 | 0.373553 | 0.314442 | 0.314442 | 0 | 0.003619 | 0.282907 | 2,697 | 68 | 90 | 39.661765 | 0.844881 | 0.426029 | 0 | 0.083333 | 0 | 0 | 0.136997 | 0.04257 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.041667 | 0.041667 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
7da1df6d243e6f3717b03f39f772c532aad5fb82 | 609 | py | Python | src/utils/infinite_dataloader.py | perceivelab/surfacenet | 811682abe4ee6a103ce4abfd8d1a417a17d52497 | [
"MIT"
] | 5 | 2021-07-26T08:04:13.000Z | 2022-01-22T05:41:36.000Z | src/utils/infinite_dataloader.py | perceivelab/surfacenet | 811682abe4ee6a103ce4abfd8d1a417a17d52497 | [
"MIT"
] | 1 | 2022-01-08T19:11:08.000Z | 2022-01-08T19:11:08.000Z | src/utils/infinite_dataloader.py | perceivelab/surfacenet | 811682abe4ee6a103ce4abfd8d1a417a17d52497 | [
"MIT"
] | 1 | 2021-09-27T17:18:11.000Z | 2021-09-27T17:18:11.000Z | from torch.utils.data import DataLoader
class InfiniteDataLoader(DataLoader):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
# Initialize an iterator over the dataset.
self.dataset_iterator = super().__iter__()
def __iter__(self):
return self
def _... | 29 | 58 | 0.627258 | 64 | 609 | 5.53125 | 0.5 | 0.124294 | 0.214689 | 0.135593 | 0.316384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.279146 | 609 | 20 | 59 | 30.45 | 0.806378 | 0.139573 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0.071429 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.