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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7f0dd7e65d6715b446e76de9e13cfb1f4303b7f4 | 3,846 | py | Python | app/models.py | faylau/microblog | 80af1d86a7fcdae73e79d5db6e76940c40ab8222 | [
"Apache-2.0"
] | null | null | null | app/models.py | faylau/microblog | 80af1d86a7fcdae73e79d5db6e76940c40ab8222 | [
"Apache-2.0"
] | null | null | null | app/models.py | faylau/microblog | 80af1d86a7fcdae73e79d5db6e76940c40ab8222 | [
"Apache-2.0"
] | null | null | null | #coding=utf-8
from hashlib import md5
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, Integer, String, SmallInteger, DateTime, \
ForeignKey, create_engine
from sqlalchemy.orm import relationship, scoped_session, sessionmaker
from app import app
from database import Base, engi... | 31.268293 | 102 | 0.621165 | 460 | 3,846 | 5.015217 | 0.321739 | 0.031209 | 0.020806 | 0.029476 | 0.262679 | 0.262679 | 0.196792 | 0.196792 | 0.156047 | 0.116168 | 0 | 0.013282 | 0.25611 | 3,846 | 122 | 103 | 31.52459 | 0.793079 | 0.423037 | 0 | 0.08 | 0 | 0 | 0.049482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.04 | 0.12 | null | null | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7f1249a2e34fdd460ebc0e3d4256dfb809942aad | 1,432 | py | Python | addresses/hinsdale.py | johncoleman83/attom_python_client | 2fad572162f481a71cccf6003da4cbd8ec4477d4 | [
"MIT"
] | null | null | null | addresses/hinsdale.py | johncoleman83/attom_python_client | 2fad572162f481a71cccf6003da4cbd8ec4477d4 | [
"MIT"
] | null | null | null | addresses/hinsdale.py | johncoleman83/attom_python_client | 2fad572162f481a71cccf6003da4cbd8ec4477d4 | [
"MIT"
] | 1 | 2020-11-20T19:28:36.000Z | 2020-11-20T19:28:36.000Z | #!/usr/bin/env python3
"""
ATTOM API
https://api.developer.attomdata.com
"""
HINSDALE = "HINSDALE, IL"
MADISON_HINSDALE = {}
HOMES = {
"216 S MADISON ST": HINSDALE,
"607 S ADAMS ST": HINSDALE,
"428 MINNEOLA ST": HINSDALE,
"600 S BRUNER ST": HINSDALE,
"637 S BRUNER ST": HINSDALE,
"142 S STOUGH ST": HINSDA... | 26.036364 | 35 | 0.648743 | 220 | 1,432 | 4.218182 | 0.377273 | 0.398707 | 0.109914 | 0.109914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1121 | 0.215084 | 1,432 | 54 | 36 | 26.518519 | 0.713523 | 0.046788 | 0 | 0 | 0 | 0 | 0.465733 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7f1a56970ac25520d7c7f6cff9070fe1d4c9ae3b | 14,102 | py | Python | commandHandler.py | NightKev/Renol-IRC | 8a906402e08e9ae6cce02b61ba728d14b31b578b | [
"MIT"
] | 2 | 2015-10-12T17:52:18.000Z | 2016-08-09T21:26:18.000Z | commandHandler.py | NightKev/Renol-IRC | 8a906402e08e9ae6cce02b61ba728d14b31b578b | [
"MIT"
] | 1 | 2021-04-28T15:28:54.000Z | 2021-04-28T15:28:54.000Z | commandHandler.py | NightKev/Renol-IRC | 8a906402e08e9ae6cce02b61ba728d14b31b578b | [
"MIT"
] | 2 | 2015-09-03T04:32:54.000Z | 2021-05-05T21:48:38.000Z | import imp, os
import Queue
import logging
from time import strftime
from timeit import default_timer
from datetime import datetime
import centralizedThreading
from BotEvents import TimerEvent, MsgEvent, StandardEvent
from IRC_registration import trackVerification
from CommandHelp import HelpModule
from IRCLogging im... | 44.485804 | 137 | 0.5863 | 1,612 | 14,102 | 5.022333 | 0.25062 | 0.039773 | 0.048295 | 0.035326 | 0.286685 | 0.239872 | 0.185894 | 0.152421 | 0.126976 | 0.126976 | 0 | 0.009022 | 0.316196 | 14,102 | 317 | 138 | 44.485804 | 0.830551 | 0.238193 | 0 | 0.244792 | 0 | 0 | 0.113964 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 0.020833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7f1adde1dd7d2f03291405e75dc37c226fafb9bf | 1,014 | py | Python | api/urls.py | gheyderov/E-commerce-website | 9a87e8e6658a69fb017bdc3b36d6dc5417e3124e | [
"MIT"
] | null | null | null | api/urls.py | gheyderov/E-commerce-website | 9a87e8e6658a69fb017bdc3b36d6dc5417e3124e | [
"MIT"
] | null | null | null | api/urls.py | gheyderov/E-commerce-website | 9a87e8e6658a69fb017bdc3b36d6dc5417e3124e | [
"MIT"
] | null | null | null | from os import name
from django.db import router
from django.urls import path
from django.urls.conf import include
from api.views.core_views import SubscribeAPIView
from api.views.order_views import BasketItemDeleteAPIView, BasketView, WishlistAPIView, WishlistDeleteAPIView
from api.views.product_views import ProductAP... | 50.7 | 109 | 0.765286 | 119 | 1,014 | 6.428571 | 0.386555 | 0.054902 | 0.091503 | 0.04183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11144 | 1,014 | 20 | 110 | 50.7 | 0.849057 | 0.101578 | 0 | 0 | 0 | 0 | 0.179318 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4375 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7f1bbfdbdc210deb661fc55f94a9859351ae6909 | 767 | py | Python | bsadiscord/data/sayings.py | perkinsms/bsadiscord | 5a2b3a3b2774e3072e2829da865de4133ffd7d78 | [
"MIT"
] | null | null | null | bsadiscord/data/sayings.py | perkinsms/bsadiscord | 5a2b3a3b2774e3072e2829da865de4133ffd7d78 | [
"MIT"
] | null | null | null | bsadiscord/data/sayings.py | perkinsms/bsadiscord | 5a2b3a3b2774e3072e2829da865de4133ffd7d78 | [
"MIT"
] | null | null | null | SCOUTOATH = '''
On my honor, I will do my best
to do my duty to God and my country
to obey the Scout Law
to help other people at all times
to keep myself physically strong, mentally awake and morally straight.
'''
SCOUTLAW = '''
A scout is:
Trustworthy
Loyal
Helpful
Friendly
Courteous
Kind
... | 17.837209 | 70 | 0.694915 | 120 | 767 | 4.441667 | 0.65 | 0.030019 | 0.026266 | 0.033771 | 0.056285 | 0.056285 | 0 | 0 | 0 | 0 | 0 | 0 | 0.258149 | 767 | 42 | 71 | 18.261905 | 0.936731 | 0 | 0 | 0.102564 | 0 | 0 | 0.899609 | 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 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7f1f527d98313bb665830a8843e1cafe516bed6b | 513 | py | Python | robber/matchers/called.py | pylipp/robber.py | e84bb0c3dd982a383f3d9da2bf334f94836a7507 | [
"MIT"
] | 23 | 2015-10-27T20:13:46.000Z | 2021-12-22T03:18:29.000Z | robber/matchers/called.py | pylipp/robber.py | e84bb0c3dd982a383f3d9da2bf334f94836a7507 | [
"MIT"
] | 70 | 2016-09-29T07:30:06.000Z | 2020-08-26T06:42:50.000Z | robber/matchers/called.py | pylipp/robber.py | e84bb0c3dd982a383f3d9da2bf334f94836a7507 | [
"MIT"
] | 10 | 2015-05-13T17:35:21.000Z | 2021-05-06T12:40:01.000Z | from robber import expect
from robber.explanation import Explanation
from robber.matchers.base import Base
class Called(Base):
"""
expect(mock).to.be.called()
"""
def matches(self):
try:
return self.actual.called
except AttributeError:
raise TypeError('{actual}... | 22.304348 | 80 | 0.662768 | 61 | 513 | 5.557377 | 0.47541 | 0.088496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230019 | 513 | 22 | 81 | 23.318182 | 0.858228 | 0.052632 | 0 | 0 | 0 | 0 | 0.078723 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0.076923 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6134197614170be8e8fcb885b11cc98b5af108f6 | 5,625 | py | Python | libs/sol-REL-1.7.5.0/tests/test_file.py | realms-team/solmanager | 95fa049df041add5f8d37c053ef560d0e5d06dff | [
"BSD-3-Clause"
] | null | null | null | libs/sol-REL-1.7.5.0/tests/test_file.py | realms-team/solmanager | 95fa049df041add5f8d37c053ef560d0e5d06dff | [
"BSD-3-Clause"
] | 104 | 2016-04-10T19:22:20.000Z | 2018-11-20T15:47:14.000Z | libs/sol-REL-1.7.5.0/tests/test_file.py | realms-team/solmanager | 95fa049df041add5f8d37c053ef560d0e5d06dff | [
"BSD-3-Clause"
] | null | null | null | from .context import sol
import os
import random
import pytest
# ============================ defines ===============================
FILENAME = 'temp_test_file.sol'
EXAMPLE_MAC = [0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08]
# ============================ fixtures ==============================
@pytest.fixtur... | 25 | 118 | 0.590044 | 649 | 5,625 | 4.876733 | 0.211094 | 0.101106 | 0.066351 | 0.069826 | 0.700158 | 0.647709 | 0.604739 | 0.570616 | 0.532385 | 0.476461 | 0 | 0.069492 | 0.265778 | 5,625 | 224 | 119 | 25.111607 | 0.696852 | 0.167822 | 0 | 0.503546 | 0 | 0 | 0.035923 | 0.012984 | 0 | 0 | 0.040684 | 0 | 0.049645 | 0 | null | null | 0.007092 | 0.028369 | null | null | 0.014184 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
61342316788f2bfa5dd61c28857f86117afe747a | 1,646 | py | Python | bind9/main.py | tuimac/bind9 | 69b78adbe5da06a6dd94dea916aaf9d5bcb8abcf | [
"MIT"
] | null | null | null | bind9/main.py | tuimac/bind9 | 69b78adbe5da06a6dd94dea916aaf9d5bcb8abcf | [
"MIT"
] | null | null | null | bind9/main.py | tuimac/bind9 | 69b78adbe5da06a6dd94dea916aaf9d5bcb8abcf | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
import path
import logging
import traceback
import yaml
import argparse
import subprocess
from .config.namedConfig import NamedConfig
logger = logging.getLogger('bind9')
def importConfig(path):
try:
path = os.path.expanduser(path)
with open(path, 'r') as conf:
... | 24.567164 | 74 | 0.554678 | 176 | 1,646 | 5.113636 | 0.517045 | 0.022222 | 0.017778 | 0.031111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006301 | 0.32503 | 1,646 | 66 | 75 | 24.939394 | 0.80378 | 0.012758 | 0 | 0.071429 | 0 | 0 | 0.131158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.196429 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
613824d9d6e5242ba778f3dd7cc1090dd06b90ba | 2,420 | py | Python | tap_amazon_advertising/streams/__init__.py | goes-funky/tap-amazon-advertising | 2b19cf673b54063834b20f72298e6fb030a8f3dd | [
"Apache-2.0"
] | 2 | 2019-09-10T15:25:39.000Z | 2019-12-12T14:50:05.000Z | tap_amazon_advertising/streams/__init__.py | goes-funky/tap-amazon-advertising | 2b19cf673b54063834b20f72298e6fb030a8f3dd | [
"Apache-2.0"
] | 1 | 2021-02-17T13:32:02.000Z | 2021-02-24T17:52:02.000Z | tap_amazon_advertising/streams/__init__.py | goes-funky/tap-amazon-advertising | 2b19cf673b54063834b20f72298e6fb030a8f3dd | [
"Apache-2.0"
] | 5 | 2019-09-10T15:25:47.000Z | 2020-11-03T11:55:10.000Z |
from tap_amazon_advertising.streams.profiles import ProfilesStream
from tap_amazon_advertising.streams.portfolios import PortfoliosStream
from tap_amazon_advertising.streams.sponsored_products_campaigns import SponsoredProductsCampaignsStream
from tap_amazon_advertising.streams.sponsored_brands_campaigns import Sponso... | 37.230769 | 111 | 0.838843 | 146 | 2,420 | 13.623288 | 0.287671 | 0.038713 | 0.071895 | 0.13273 | 0.400704 | 0.291604 | 0.291604 | 0.197084 | 0.197084 | 0 | 0 | 0 | 0.118182 | 2,420 | 64 | 112 | 37.8125 | 0.932052 | 0.008678 | 0 | 0 | 0 | 0 | 0.189144 | 0.164092 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.211538 | 0 | 0.211538 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
613ce525b1dad67a201327fe0189b39d9629137d | 2,689 | py | Python | src/ralph/discovery/openstack.py | quamilek/ralph | bf7231ea096924332b874718b33cd1f43f9c783b | [
"Apache-2.0"
] | null | null | null | src/ralph/discovery/openstack.py | quamilek/ralph | bf7231ea096924332b874718b33cd1f43f9c783b | [
"Apache-2.0"
] | null | null | null | src/ralph/discovery/openstack.py | quamilek/ralph | bf7231ea096924332b874718b33cd1f43f9c783b | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import urllib
import urllib2
import json
import datetime
class Error(Exception):
pass
class OpenStack(object):
def __init__(self, url... | 32.792683 | 79 | 0.547044 | 286 | 2,689 | 4.965035 | 0.335664 | 0.028169 | 0.04507 | 0.023944 | 0.204225 | 0.204225 | 0.156338 | 0.135211 | 0 | 0 | 0 | 0.005549 | 0.329862 | 2,689 | 81 | 80 | 33.197531 | 0.782464 | 0.00781 | 0 | 0.115942 | 0 | 0 | 0.149399 | 0.008258 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057971 | false | 0.086957 | 0.115942 | 0 | 0.246377 | 0.014493 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
613e5b5f072feb5bd3aa81dbabdbe1af1cf464fe | 1,592 | py | Python | tests/integration/server/test_Server_join.py | JSchneidler/python-irc | f993c28e6a87b16c9e23c3f1b91fdd1f42ee2b2c | [
"MIT"
] | null | null | null | tests/integration/server/test_Server_join.py | JSchneidler/python-irc | f993c28e6a87b16c9e23c3f1b91fdd1f42ee2b2c | [
"MIT"
] | null | null | null | tests/integration/server/test_Server_join.py | JSchneidler/python-irc | f993c28e6a87b16c9e23c3f1b91fdd1f42ee2b2c | [
"MIT"
] | null | null | null | from socket import socket
from server.Server import Server
from .utils import createClient, readLine, registerClient, readJoin
def test_Server_join(client: socket):
registerClient(client)
client.sendall(b"JOIN #chan\r\n")
responses = readJoin(client)
expectedResponses = [
":test!test@127.0... | 29.481481 | 81 | 0.658291 | 233 | 1,592 | 4.463519 | 0.214592 | 0.028846 | 0.048077 | 0.057692 | 0.444231 | 0.405769 | 0.367308 | 0.296154 | 0.2 | 0.2 | 0 | 0.077287 | 0.203518 | 1,592 | 53 | 82 | 30.037736 | 0.742902 | 0 | 0 | 0.157895 | 0 | 0.131579 | 0.344221 | 0.013819 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.078947 | false | 0.078947 | 0.078947 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6142223b6cdad97ba0c0966b5aed7aede7030b2c | 512 | py | Python | programming-laboratory-I/17gp/mais_elementos.py | MisaelAugusto/computer-science | d21335a2dc824b54ffe828370f0e6717fd0c7c27 | [
"MIT"
] | null | null | null | programming-laboratory-I/17gp/mais_elementos.py | MisaelAugusto/computer-science | d21335a2dc824b54ffe828370f0e6717fd0c7c27 | [
"MIT"
] | null | null | null | programming-laboratory-I/17gp/mais_elementos.py | MisaelAugusto/computer-science | d21335a2dc824b54ffe828370f0e6717fd0c7c27 | [
"MIT"
] | null | null | null | # coding: utf-8
# Aluno: Misael Augusto
# Matrícula: 117110525
# Problema: Conjunto com mais elementos
tamanho = 0
tamanhos = []
while True:
numero = raw_input()
if numero == "fim":
break
else:
if int(numero) >= 0:
tamanho += 1
else:
tamanhos.append(tamanho)
tamanho = 0
if len(tamanhos) > 0:
maior ... | 18.285714 | 61 | 0.640625 | 72 | 512 | 4.541667 | 0.527778 | 0.04893 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047859 | 0.224609 | 512 | 27 | 62 | 18.962963 | 0.775819 | 0.183594 | 0 | 0.2 | 0 | 0 | 0.075061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6145605e03572ac8b056c2fb573e27c4b10e8dd4 | 745 | py | Python | regel/converter.py | heijp06/regel | ca8b97c46ed909832d6d8b50612d6192f58284ca | [
"MIT"
] | null | null | null | regel/converter.py | heijp06/regel | ca8b97c46ed909832d6d8b50612d6192f58284ca | [
"MIT"
] | null | null | null | regel/converter.py | heijp06/regel | ca8b97c46ed909832d6d8b50612d6192f58284ca | [
"MIT"
] | null | null | null | class Converter:
APPLICATION_SINGLE = 0
APPLICATION_MANY = 1
def __init__(self, text, application):
self.text = text
self.application = application
self._function = None
def __repr__(self):
colons = ":" if self.application == Converter.APPLICATION_SINGLE else "::"
... | 29.8 | 85 | 0.625503 | 81 | 745 | 5.54321 | 0.395062 | 0.13363 | 0.173719 | 0.115813 | 0.209354 | 0.209354 | 0.209354 | 0 | 0 | 0 | 0 | 0.003745 | 0.283221 | 745 | 24 | 86 | 31.041667 | 0.837079 | 0 | 0 | 0 | 0 | 0 | 0.038926 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
614b1468ec040d8390c62e365b1ba5687b955081 | 2,073 | py | Python | allianceutils/util/__init__.py | AllianceSoftware/alliance-django-utils | 63a6d87133047522b33703ef9d09b0cf6c6dbd98 | [
"BSD-2-Clause"
] | 2 | 2020-09-14T00:33:03.000Z | 2020-09-14T07:51:17.000Z | allianceutils/util/__init__.py | AllianceSoftware/alliance-django-utils | 63a6d87133047522b33703ef9d09b0cf6c6dbd98 | [
"BSD-2-Clause"
] | 15 | 2020-09-14T00:36:15.000Z | 2021-12-13T03:34:05.000Z | allianceutils/util/__init__.py | AllianceSoftware/alliance-django-utils | 63a6d87133047522b33703ef9d09b0cf6c6dbd98 | [
"BSD-2-Clause"
] | 1 | 2021-08-09T14:54:08.000Z | 2021-08-09T14:54:08.000Z | from pathlib import Path
from typing import Callable
from typing import Iterable
from typing import Tuple
from typing import Union
from django.conf import settings
from django.utils.autoreload import autoreload_started
from django.utils.autoreload import StatReloader
from .camel_case import camel_to_underscore
from .... | 30.043478 | 97 | 0.71973 | 273 | 2,073 | 5.190476 | 0.362637 | 0.056457 | 0.045166 | 0.053634 | 0.14326 | 0.065632 | 0.065632 | 0.065632 | 0.065632 | 0.065632 | 0 | 0.001852 | 0.218524 | 2,073 | 68 | 98 | 30.485294 | 0.87284 | 0.166425 | 0 | 0.044444 | 0 | 0 | 0.081967 | 0.031616 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.355556 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
614e66aebe65ee3039eb4df24d7a746bf56a107a | 513 | py | Python | tests/data/pattern_matching_extras.py | timsampsoncujo/black | 0d1b957d400e2884ad312b4c113ee215effb8256 | [
"MIT"
] | 2 | 2018-12-18T18:14:21.000Z | 2021-12-17T10:58:53.000Z | tests/data/pattern_matching_extras.py | timsampsoncujo/black | 0d1b957d400e2884ad312b4c113ee215effb8256 | [
"MIT"
] | 12 | 2022-01-16T15:58:46.000Z | 2022-03-28T21:22:58.000Z | tests/data/pattern_matching_extras.py | timsampsoncujo/black | 0d1b957d400e2884ad312b4c113ee215effb8256 | [
"MIT"
] | 1 | 2021-06-02T17:46:23.000Z | 2021-06-02T17:46:23.000Z | import match
match something:
case [a as b]:
print(b)
case [a as b, c, d, e as f]:
print(f)
case Point(a as b):
print(b)
case Point(int() as x, int() as y):
print(x, y)
match = 1
case: int = re.match(something)
match re.match(case):
case type("match", match):
... | 17.1 | 43 | 0.500975 | 73 | 513 | 3.520548 | 0.315068 | 0.140078 | 0.046693 | 0.062257 | 0.108949 | 0.108949 | 0 | 0 | 0 | 0 | 0 | 0.003067 | 0.364522 | 513 | 29 | 44 | 17.689655 | 0.785276 | 0 | 0 | 0.26087 | 0 | 0 | 0.009747 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.086957 | 0.043478 | 0 | 0.086957 | 0.173913 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6150a9ac022a856a62fcd337dd299a2f57b02324 | 31,764 | py | Python | SmartObjectFramework/ObjectService/rdflib/term.py | OSIOT/OBSOLETE-IoT-Toolkit | f6cfb116a9f115d5ce288d990b57e0f6855283cc | [
"Apache-2.0"
] | 1 | 2019-06-12T19:37:58.000Z | 2019-06-12T19:37:58.000Z | SmartObjectFramework/ObjectService/rdflib/term.py | OSIOT/OBSOLETE-IoT-Toolkit | f6cfb116a9f115d5ce288d990b57e0f6855283cc | [
"Apache-2.0"
] | null | null | null | SmartObjectFramework/ObjectService/rdflib/term.py | OSIOT/OBSOLETE-IoT-Toolkit | f6cfb116a9f115d5ce288d990b57e0f6855283cc | [
"Apache-2.0"
] | null | null | null | """
This module defines the different types of terms. Terms are the kinds of
objects that can appear in a quoted/asserted triple. This includes those
that are core to RDF:
* Blank Nodes
* URI References
* Literals (which consist of a literal value,datatype and language tag)
Those that extend the RDF model into N3:
... | 30.454458 | 148 | 0.549238 | 3,701 | 31,764 | 4.548771 | 0.158336 | 0.02281 | 0.027799 | 0.012118 | 0.395783 | 0.342441 | 0.309415 | 0.286189 | 0.267538 | 0.245916 | 0 | 0.023336 | 0.317372 | 31,764 | 1,042 | 149 | 30.483685 | 0.753078 | 0.081193 | 0 | 0.394444 | 0 | 0.005556 | 0.122476 | 0.011153 | 0 | 0 | 0 | 0.002879 | 0 | 0 | null | null | 0.003704 | 0.046296 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6150ea6b1cc4800fd81c9745aba7d93661b39346 | 5,234 | py | Python | pydax/_schema.py | SSaishruthi/pydax | 3b556fffe24a2d41afa1b05bb5045778b321fc27 | [
"Apache-2.0"
] | null | null | null | pydax/_schema.py | SSaishruthi/pydax | 3b556fffe24a2d41afa1b05bb5045778b321fc27 | [
"Apache-2.0"
] | null | null | null | pydax/_schema.py | SSaishruthi/pydax | 3b556fffe24a2d41afa1b05bb5045778b321fc27 | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2020 IBM Corp. 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 a... | 35.364865 | 119 | 0.669278 | 675 | 5,234 | 5.084444 | 0.305185 | 0.020396 | 0.036713 | 0.020979 | 0.217657 | 0.187354 | 0.187354 | 0.15472 | 0.121504 | 0.121504 | 0 | 0.00276 | 0.238632 | 5,234 | 147 | 120 | 35.605442 | 0.858218 | 0.611387 | 0 | 0.076923 | 0 | 0 | 0.039888 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0.153846 | 0 | 0.512821 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
615fd3bcf7ec2b6dbea7e7dbdeecab86995f4354 | 4,170 | py | Python | templates/kvm.py | kakwa/kouignamann-core | c56cb10bdc0ba22a8ee693b104d1246a5bb03d4a | [
"MIT"
] | null | null | null | templates/kvm.py | kakwa/kouignamann-core | c56cb10bdc0ba22a8ee693b104d1246a5bb03d4a | [
"MIT"
] | null | null | null | templates/kvm.py | kakwa/kouignamann-core | c56cb10bdc0ba22a8ee693b104d1246a5bb03d4a | [
"MIT"
] | null | null | null | <%
import uuid
import os
import random
imgdir = os.getenv("IMGDIR", "/var/lib/kvm")
isopath = os.getenv("ISOPATH", "/var/lib/kvm/isos/CentOS-7-custom-install.iso")
slot=1
global diskLetter
diskLetter='a'
# increment disk letter
def nextDiskLetter():
global diskLetter
diskLetter = chr(ord(diskLetter) + 1)
# i... | 29.366197 | 86 | 0.618225 | 521 | 4,170 | 4.932822 | 0.37428 | 0.042802 | 0.038132 | 0.054475 | 0.151362 | 0.151362 | 0.140078 | 0.140078 | 0.096887 | 0.096887 | 0 | 0.051447 | 0.179616 | 4,170 | 141 | 87 | 29.574468 | 0.699795 | 0 | 0 | 0.173554 | 0 | 0 | 0.172699 | 0.011634 | 0 | 0 | 0.039038 | 0 | 0 | 0 | null | null | 0 | 0.024793 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
616eca6495a8d49d9bfbafaa5853526447ace1f7 | 3,704 | py | Python | packages/legacycomponents/mcstas2/tests/mcstas2/parserFixtures.py | mcvine/mcvine | 42232534b0c6af729628009bed165cd7d833789d | [
"BSD-3-Clause"
] | 5 | 2017-01-16T03:59:47.000Z | 2020-06-23T02:54:19.000Z | packages/legacycomponents/mcstas2/tests/mcstas2/parserFixtures.py | mcvine/mcvine | 42232534b0c6af729628009bed165cd7d833789d | [
"BSD-3-Clause"
] | 293 | 2015-10-29T17:45:52.000Z | 2022-01-07T16:31:09.000Z | packages/legacycomponents/mcstas2/tests/mcstas2/parserFixtures.py | mcvine/mcvine | 42232534b0c6af729628009bed165cd7d833789d | [
"BSD-3-Clause"
] | 1 | 2019-05-25T00:53:31.000Z | 2019-05-25T00:53:31.000Z | # -*- Python -*-
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Alex Dementsov
# California Institute of Technology
# (C) 2010 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | 34.296296 | 262 | 0.615281 | 538 | 3,704 | 4.104089 | 0.442379 | 0.005435 | 0.027174 | 0.039855 | 0.113225 | 0.097826 | 0.054348 | 0.054348 | 0.054348 | 0.054348 | 0 | 0.051798 | 0.181695 | 3,704 | 107 | 263 | 34.616822 | 0.676674 | 0.106371 | 0 | 0.129412 | 0 | 0.152941 | 0.962963 | 0.138434 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
616f6adf40bdbd49bf3c7503411bb418dd32f96f | 707 | py | Python | src/righter/utils.py | ef-ctx/righter | fea834bf3fea355437af531ed57b1a4343d2ca50 | [
"Apache-2.0"
] | 6 | 2017-12-05T14:09:13.000Z | 2021-04-24T13:46:56.000Z | src/righter/utils.py | ef-ctx/righter | fea834bf3fea355437af531ed57b1a4343d2ca50 | [
"Apache-2.0"
] | null | null | null | src/righter/utils.py | ef-ctx/righter | fea834bf3fea355437af531ed57b1a4343d2ca50 | [
"Apache-2.0"
] | 2 | 2018-01-22T10:42:23.000Z | 2019-12-21T09:26:03.000Z | """
Utilities for text analysis and parsing.
"""
import string
import unicodedata
def contains_digit(text):
"""
Check if text contains any number.
"""
for char in string.digits:
if char in text:
return True
return False
def remove_punctuation(text, ignore=None):
"""
R... | 22.09375 | 138 | 0.640736 | 86 | 707 | 5.244186 | 0.476744 | 0.039911 | 0.039911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241867 | 707 | 31 | 139 | 22.806452 | 0.841418 | 0.152758 | 0 | 0 | 0 | 0 | 0.039216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.125 | 0.0625 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
617414bda6178d15c31bf56f98c1e04ec2884f05 | 4,487 | py | Python | viewer.py | MaddAddaM/LightRender | 3df6aaa944c7ae753028e811dce481bc52b6cc7e | [
"MIT"
] | null | null | null | viewer.py | MaddAddaM/LightRender | 3df6aaa944c7ae753028e811dce481bc52b6cc7e | [
"MIT"
] | 3 | 2016-08-07T07:41:09.000Z | 2016-08-08T05:29:46.000Z | viewer.py | MaddAddaM/LightRender | 3df6aaa944c7ae753028e811dce481bc52b6cc7e | [
"MIT"
] | 2 | 2016-08-06T20:54:41.000Z | 2016-08-07T05:15:38.000Z | #!/usr/bin/env python
import argparse
import sys
import os
import pygame
import pygame.locals
import pygame.key
import pygame.time
from constants import CARTESIAN_COORDS
NUM_PIXELS = len(CARTESIAN_COORDS)
BYTES_PER_FRAME = 3 * NUM_PIXELS
FPS = 20
FRAMES_PER_SKIP = 5 * FPS
CANVAS = pygame.Rect((0, 0), (575, 575))
ST... | 29.913333 | 93 | 0.579675 | 586 | 4,487 | 4.305461 | 0.337884 | 0.028537 | 0.015458 | 0.011891 | 0.121284 | 0.104637 | 0.104637 | 0.085612 | 0.085612 | 0.085612 | 0 | 0.035355 | 0.312904 | 4,487 | 149 | 94 | 30.114094 | 0.783004 | 0.070203 | 0 | 0.113208 | 0 | 0 | 0.06271 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009434 | 0.075472 | null | null | 0.028302 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
618a9b65be5cc5c0afd20bd029e24855e3ab86c0 | 4,064 | py | Python | features/tests/test_urls.py | KDD-OpenSource/fexum | 2288a4be2fcbd5bed0e2549204f313bca50d3265 | [
"MIT"
] | 6 | 2017-05-15T16:07:15.000Z | 2020-05-18T10:04:38.000Z | features/tests/test_urls.py | KDD-OpenSource/fexum | 2288a4be2fcbd5bed0e2549204f313bca50d3265 | [
"MIT"
] | 34 | 2017-05-11T13:45:03.000Z | 2017-07-29T19:18:45.000Z | features/tests/test_urls.py | KDD-OpenSource/fexum | 2288a4be2fcbd5bed0e2549204f313bca50d3265 | [
"MIT"
] | null | null | null | from django.test import TestCase
from django.urls import reverse
class TestExperimentListUrl(TestCase):
def test_sexperiment_list_url(self):
url = reverse('experiment-list')
self.assertEqual(url, '/api/experiments')
class TestExperimentDetailUrl(TestCase):
def test_experiment_detail_url(self... | 40.237624 | 100 | 0.736959 | 446 | 4,064 | 6.591928 | 0.139013 | 0.089796 | 0.119728 | 0.14966 | 0.557143 | 0.418367 | 0.337075 | 0.337075 | 0.337075 | 0.318367 | 0 | 0.138207 | 0.138287 | 4,064 | 100 | 101 | 40.64 | 0.701314 | 0 | 0 | 0 | 0 | 0 | 0.35999 | 0.312992 | 0 | 0 | 0 | 0 | 0.235294 | 1 | 0.235294 | false | 0 | 0.029412 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
619707348c860bc1d435559fd5f80ea142a5f0d5 | 922 | py | Python | contact/migrations/0004_auto_20181010_1631.py | djangulo/integralpsychology.life | 941e6c1ad1f274d7489d8ecdea5ae72f4889cc4b | [
"MIT"
] | null | null | null | contact/migrations/0004_auto_20181010_1631.py | djangulo/integralpsychology.life | 941e6c1ad1f274d7489d8ecdea5ae72f4889cc4b | [
"MIT"
] | null | null | null | contact/migrations/0004_auto_20181010_1631.py | djangulo/integralpsychology.life | 941e6c1ad1f274d7489d8ecdea5ae72f4889cc4b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2018-10-10 16:31
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('contact', '0003_contactcaptchaformfield_hide_label'),
]
operations = [
mig... | 26.342857 | 87 | 0.584599 | 85 | 922 | 6.105882 | 0.6 | 0.069364 | 0.061657 | 0.115607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038941 | 0.303688 | 922 | 34 | 88 | 27.117647 | 0.76947 | 0.074837 | 0 | 0.296296 | 1 | 0 | 0.171765 | 0.072941 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.185185 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
619eedbad5e97df05effd6b0ff5e1de988b725b9 | 1,151 | py | Python | test_fit.py | QianLabUSC/cognitively-enhanced-decision-framework | 1797ddd41edcbfbfafca5b599ff7ab70f5fdc37f | [
"MIT"
] | null | null | null | test_fit.py | QianLabUSC/cognitively-enhanced-decision-framework | 1797ddd41edcbfbfafca5b599ff7ab70f5fdc37f | [
"MIT"
] | 3 | 2021-06-28T15:35:21.000Z | 2021-07-01T06:02:57.000Z | test_fit.py | QianLabUSC/cognitively-enhanced-decision-framework | 1797ddd41edcbfbfafca5b599ff7ab70f5fdc37f | [
"MIT"
] | null | null | null | from scipy import optimize
import matplotlib.pyplot as plt
import numpy as np
x = np.array([1, 1.1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ,11, 12, 13, 14, 15], dtype=float)
y = np.array([5, 3, 7, 9, 11, 13, 15, 28.92, 42.81, 56.7, 70.59,
84.47, 98.36, 112.25, 126.14, 140.03])
# 一个输入序列,4个未知参数,2个分段函数
d... | 34.878788 | 84 | 0.577758 | 215 | 1,151 | 3.060465 | 0.427907 | 0.022796 | 0.048632 | 0.030395 | 0.238602 | 0.180851 | 0.097264 | 0 | 0 | 0 | 0 | 0.141563 | 0.232841 | 1,151 | 33 | 85 | 34.878788 | 0.601359 | 0.282363 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.166667 | 0.111111 | 0.388889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
61abd814f620c5c567ad391dc436cfa563e80ce8 | 809 | py | Python | test/05_environment/setup.py | mtreinish/cibuildwheel | 973ecf53b3e654ec998928ddd5f39169c1fd6ead | [
"BSD-2-Clause"
] | 1 | 2021-07-07T14:30:22.000Z | 2021-07-07T14:30:22.000Z | test/05_environment/setup.py | mtreinish/cibuildwheel | 973ecf53b3e654ec998928ddd5f39169c1fd6ead | [
"BSD-2-Clause"
] | null | null | null | test/05_environment/setup.py | mtreinish/cibuildwheel | 973ecf53b3e654ec998928ddd5f39169c1fd6ead | [
"BSD-2-Clause"
] | 2 | 2019-07-16T02:06:43.000Z | 2019-11-17T02:30:54.000Z | from setuptools import setup, Extension
import sys, os
# explode if environment isn't correct, as set in CIBW_ENVIRONMENT
CIBW_TEST_VAR = os.environ.get('CIBW_TEST_VAR')
CIBW_TEST_VAR_2 = os.environ.get('CIBW_TEST_VAR_2')
PATH = os.environ.get('PATH')
if CIBW_TEST_VAR != 'a b c':
raise Exception('CIBW_TEST_VAR sh... | 33.708333 | 86 | 0.697157 | 140 | 809 | 3.807143 | 0.328571 | 0.180113 | 0.206379 | 0.11257 | 0.409006 | 0.262664 | 0 | 0 | 0 | 0 | 0 | 0.014684 | 0.15822 | 809 | 23 | 87 | 35.173913 | 0.767988 | 0.07911 | 0 | 0 | 0 | 0 | 0.366083 | 0.02961 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
61aeef425695e8751f053122ead3b0b39cb2692b | 249 | py | Python | Desafios/Desafio 014 (Conversor de temp.).py | Kimberly07-Ernane/Pythondesafios | d5bdf9ad412f73c66d0fda558740923925a78a7b | [
"MIT"
] | null | null | null | Desafios/Desafio 014 (Conversor de temp.).py | Kimberly07-Ernane/Pythondesafios | d5bdf9ad412f73c66d0fda558740923925a78a7b | [
"MIT"
] | null | null | null | Desafios/Desafio 014 (Conversor de temp.).py | Kimberly07-Ernane/Pythondesafios | d5bdf9ad412f73c66d0fda558740923925a78a7b | [
"MIT"
] | null | null | null | #Desafio14
#Escreva um programa que converta uma temperatura digitando em
#graus Celsius e converta para graus Fahrenheit
temp=int(input('Digite a temperatura °C: '))
f=9*temp/5+32
print('A temperatura de {}°C corresponde a {}°F!'.format(temp,f))
| 31.125 | 65 | 0.746988 | 43 | 249 | 4.395349 | 0.697674 | 0.126984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02765 | 0.128514 | 249 | 7 | 66 | 35.571429 | 0.829493 | 0.46988 | 0 | 0 | 0 | 0 | 0.511628 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
61bceb587989f53ddc65a1e0a0b02bbde7cd3a88 | 2,442 | py | Python | cluster_viz/make_tree.py | sunlightlabs/fcc-net-neutrality-comments | 56bcc6101a0dd5dcc3dc251014f30c2a2e0cde5b | [
"MIT"
] | 18 | 2015-02-11T20:11:19.000Z | 2020-11-13T23:22:47.000Z | cluster_viz/make_tree.py | sunlightlabs/fcc-net-neutrality-comments | 56bcc6101a0dd5dcc3dc251014f30c2a2e0cde5b | [
"MIT"
] | null | null | null | cluster_viz/make_tree.py | sunlightlabs/fcc-net-neutrality-comments | 56bcc6101a0dd5dcc3dc251014f30c2a2e0cde5b | [
"MIT"
] | 6 | 2015-10-26T20:51:26.000Z | 2021-04-18T16:47:30.000Z | from collections import defaultdict
import csv, json, operator
SAMPLE_THRESHOLD = 150000
SAMPLE_SIZE = 20000
NUM_LEVELS = 11
ADD_CID = False
leaf_prefix = str(NUM_LEVELS - 1)
# map out the parent-child relationships
children = defaultdict(set)
levels = defaultdict(set)
for row in csv.DictReader(open("cluster_tree_ta... | 36.447761 | 159 | 0.667486 | 384 | 2,442 | 4.067708 | 0.236979 | 0.072983 | 0.020487 | 0.03073 | 0.272087 | 0.25032 | 0.213188 | 0.127401 | 0.127401 | 0.06402 | 0 | 0.021652 | 0.186732 | 2,442 | 67 | 160 | 36.447761 | 0.764854 | 0.03317 | 0 | 0 | 0 | 0 | 0.07676 | 0.00933 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.04 | null | null | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
61c0f8a2717be18c143fdd66aad3bcd8c5778e6c | 1,198 | py | Python | NOTES/c1-notes.py | frawst/cs207-chaykowj | 28fd860d9f7ce0bd71ae24d3766ac997c1a0555e | [
"MIT"
] | null | null | null | NOTES/c1-notes.py | frawst/cs207-chaykowj | 28fd860d9f7ce0bd71ae24d3766ac997c1a0555e | [
"MIT"
] | 1 | 2018-01-12T01:28:57.000Z | 2018-01-12T01:28:57.000Z | NOTES/c1-notes.py | frawst/cs207-chaykowj | 28fd860d9f7ce0bd71ae24d3766ac997c1a0555e | [
"MIT"
] | null | null | null | NOTES = """
(c) 2017 JUSTYN CHAYKOWSKI
PROVIDED UNDER MIT LICENSE
SCHOOLOGY.COM
ACCESS CODE: GNH9N-KZ2C2
RIC 115 <-- OFFICE HOURS:
M 4-6 PM
W 12-6 PM
##########################################
# RICE LAB
#
# TEXT BOOK = ARDX ARDUINO EXPERIMENTER'S KIT - OOMLOUT
#
# CLASS PROJECT --MUST-- BUILD OFF OF WORK ALREADY D... | 23.038462 | 81 | 0.676127 | 159 | 1,198 | 4.968553 | 0.742138 | 0.037975 | 0.050633 | 0.037975 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018981 | 0.164441 | 1,198 | 51 | 82 | 23.490196 | 0.77023 | 0 | 0 | 0.051282 | 0 | 0 | 0.901503 | 0.108514 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025641 | 0 | 0.025641 | 0.102564 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
61c67b591e1b55d76457ee687d48ac6e602aff56 | 1,863 | py | Python | Challenges/30/tests/test_hashtable.py | makkahwi/data-structures-and-algorithms | 06551786258bb7dabb9b0ab07c0f80ff78abca41 | [
"MIT"
] | null | null | null | Challenges/30/tests/test_hashtable.py | makkahwi/data-structures-and-algorithms | 06551786258bb7dabb9b0ab07c0f80ff78abca41 | [
"MIT"
] | null | null | null | Challenges/30/tests/test_hashtable.py | makkahwi/data-structures-and-algorithms | 06551786258bb7dabb9b0ab07c0f80ff78abca41 | [
"MIT"
] | null | null | null | from hashtable.hashtable import Hashtable
import pytest
def test_initializing():
ht = Hashtable()
assert ht.size == 100
assert ht.table == [None] * 100
# 7. Successfully hash a key to an in-range value
def test_key_hash():
ht = Hashtable()
actual = ht.hash("key1")
expected = 82
assert a... | 24.194805 | 91 | 0.666667 | 259 | 1,863 | 4.718147 | 0.301158 | 0.051555 | 0.130933 | 0.02455 | 0.175123 | 0.099836 | 0 | 0 | 0 | 0 | 0 | 0.030738 | 0.214171 | 1,863 | 76 | 92 | 24.513158 | 0.803962 | 0.263017 | 0 | 0.270833 | 0 | 0 | 0.096703 | 0 | 0 | 0 | 0 | 0 | 0.208333 | 1 | 0.208333 | false | 0 | 0.041667 | 0 | 0.270833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
61c6e55c409413dcf0373718ee73842eb83d9fd3 | 4,931 | py | Python | examples/Ex4_fit_line_SPT0346-52_CO21.py | dchx/visilens | 215e99d67cf262b75663f2c788e2f3748ebed441 | [
"MIT"
] | 16 | 2017-05-29T08:47:02.000Z | 2021-09-20T15:59:53.000Z | examples/Ex4_fit_line_SPT0346-52_CO21.py | dchx/visilens | 215e99d67cf262b75663f2c788e2f3748ebed441 | [
"MIT"
] | null | null | null | examples/Ex4_fit_line_SPT0346-52_CO21.py | dchx/visilens | 215e99d67cf262b75663f2c788e2f3748ebed441 | [
"MIT"
] | 7 | 2017-05-26T23:37:25.000Z | 2020-09-09T09:16:26.000Z | """
Example 4, to be run in python. In this example, we fit the CO
emission using the data made from Ex2 (which you should be
able to download from the same place you got this script).
For these data, I just fixed the lens properties to those
we got from the ALMA 870um data, because the ALMA data have
way highe... | 40.418033 | 109 | 0.676739 | 800 | 4,931 | 4.15375 | 0.44375 | 0.014445 | 0.021065 | 0.013542 | 0.015649 | 0.003611 | 0 | 0 | 0 | 0 | 0 | 0.072378 | 0.176232 | 4,931 | 121 | 110 | 40.752066 | 0.745692 | 0.373149 | 0 | 0.035088 | 0 | 0 | 0.180561 | 0.023311 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.140351 | null | null | 0.017544 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
61c9c4c9f6217f2c5c8e839280edb88f2a9183b4 | 8,517 | py | Python | python_venv_legacy/mediapipe/calculators/util/landmarks_smoothing_calculator_pb2.py | 4sunshine/mediapipe | 45805ea40f3ea58a013d034184031204502c24ef | [
"Apache-2.0"
] | null | null | null | python_venv_legacy/mediapipe/calculators/util/landmarks_smoothing_calculator_pb2.py | 4sunshine/mediapipe | 45805ea40f3ea58a013d034184031204502c24ef | [
"Apache-2.0"
] | null | null | null | python_venv_legacy/mediapipe/calculators/util/landmarks_smoothing_calculator_pb2.py | 4sunshine/mediapipe | 45805ea40f3ea58a013d034184031204502c24ef | [
"Apache-2.0"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mediapipe/calculators/util/landmarks_smoothing_calculator.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _messag... | 46.288043 | 808 | 0.810497 | 873 | 8,517 | 7.563574 | 0.19244 | 0.026655 | 0.025746 | 0.078752 | 0.557928 | 0.445101 | 0.386945 | 0.354384 | 0.324852 | 0.300318 | 0 | 0.02666 | 0.092756 | 8,517 | 183 | 809 | 46.540984 | 0.827876 | 0.056006 | 0 | 0.518987 | 1 | 0.006329 | 0.228088 | 0.192356 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.044304 | 0 | 0.044304 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
61ca46536624f8052e628dd6cf8bdd4a930a1e3b | 24,328 | py | Python | apps/equipment/views/basicinfor_view.py | kane-zh/MES_server | d8d28768a054eee6433e3900908afd331fd92281 | [
"Apache-2.0"
] | null | null | null | apps/equipment/views/basicinfor_view.py | kane-zh/MES_server | d8d28768a054eee6433e3900908afd331fd92281 | [
"Apache-2.0"
] | null | null | null | apps/equipment/views/basicinfor_view.py | kane-zh/MES_server | d8d28768a054eee6433e3900908afd331fd92281 | [
"Apache-2.0"
] | null | null | null | from rest_framework import viewsets
from rest_framework import filters
from django_filters.rest_framework import DjangoFilterBackend
from rest_framework.authentication import SessionAuthentication
from rest_framework_jwt.authentication import JSONWebTokenAuthentication
from rest_framework.permissions import IsAuth... | 48.851406 | 133 | 0.6421 | 1,907 | 24,328 | 8.016256 | 0.093865 | 0.043828 | 0.029829 | 0.022372 | 0.711062 | 0.709819 | 0.621966 | 0.597436 | 0.585203 | 0.560869 | 0 | 0.00442 | 0.26525 | 24,328 | 498 | 134 | 48.851406 | 0.850797 | 0.089485 | 0 | 0.657635 | 0 | 0 | 0.10045 | 0.036579 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046798 | false | 0 | 0.029557 | 0 | 0.458128 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4ee1ae564e3e1b969df0b92fef6d4a965db7deef | 846 | py | Python | music/file_source.py | MaT1g3R/YasenBaka | c5ff3b0419801c2d37a86bac644d72ffff97d482 | [
"Apache-2.0"
] | 6 | 2017-04-08T15:16:17.000Z | 2019-06-22T20:14:39.000Z | music/file_source.py | MaT1g3R/YasenBaka | c5ff3b0419801c2d37a86bac644d72ffff97d482 | [
"Apache-2.0"
] | 8 | 2017-07-20T22:01:21.000Z | 2018-01-10T18:57:32.000Z | music/file_source.py | MaT1g3R/YasenBaka | c5ff3b0419801c2d37a86bac644d72ffff97d482 | [
"Apache-2.0"
] | 5 | 2017-11-23T21:25:51.000Z | 2019-06-22T20:14:46.000Z | from functools import partial
from music.abstract_source import AbstractSource
from music.music_util import file_detail, get_file_info
class FileSource(AbstractSource):
"""
An audio source from a file.
"""
__slots__ = ('file_path', 'title')
def __init__(self, file_path: str):
"""
... | 23.5 | 75 | 0.618203 | 103 | 846 | 4.737864 | 0.38835 | 0.147541 | 0.098361 | 0.081967 | 0.127049 | 0.127049 | 0 | 0 | 0 | 0 | 0 | 0 | 0.28487 | 846 | 35 | 76 | 24.171429 | 0.806612 | 0.072104 | 0 | 0 | 0 | 0 | 0.020231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.055556 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4eef2b9c8a7122b31e2cf15f614f728388893bc9 | 825 | py | Python | frappe-bench/apps/erpnext/erpnext/patches/v7_2/setup_auto_close_settings.py | Semicheche/foa_frappe_docker | a186b65d5e807dd4caf049e8aeb3620a799c1225 | [
"MIT"
] | 1 | 2021-04-29T14:55:29.000Z | 2021-04-29T14:55:29.000Z | frappe-bench/apps/erpnext/erpnext/patches/v7_2/setup_auto_close_settings.py | Semicheche/foa_frappe_docker | a186b65d5e807dd4caf049e8aeb3620a799c1225 | [
"MIT"
] | null | null | null | frappe-bench/apps/erpnext/erpnext/patches/v7_2/setup_auto_close_settings.py | Semicheche/foa_frappe_docker | a186b65d5e807dd4caf049e8aeb3620a799c1225 | [
"MIT"
] | 1 | 2021-04-29T14:39:01.000Z | 2021-04-29T14:39:01.000Z | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
def execute():
# update the selling settings and set the close_opportunity_after_days
frappe.reload_doc("selling", "doctype", "selling_... | 45.833333 | 96 | 0.781818 | 111 | 825 | 5.594595 | 0.495496 | 0.096618 | 0.067633 | 0.080515 | 0.154589 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013643 | 0.111515 | 825 | 18 | 97 | 45.833333 | 0.833561 | 0.349091 | 0 | 0 | 0 | 0 | 0.550752 | 0.093985 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.222222 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4eefa4648adf133b465526663effedc48c02b240 | 2,214 | py | Python | utils/read_musk_data.py | qiyuangong/ppdpes_core | f4c955401559dcf09f62a7ef163e900df01f499b | [
"MIT"
] | null | null | null | utils/read_musk_data.py | qiyuangong/ppdpes_core | f4c955401559dcf09f62a7ef163e900df01f499b | [
"MIT"
] | null | null | null | utils/read_musk_data.py | qiyuangong/ppdpes_core | f4c955401559dcf09f62a7ef163e900df01f499b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
# Read data and read tree fuctions for musk data
try:
from models.numrange import NumRange
from utils.utility import cmp_str
except ImportError:
from ..models.numrange import NumRange
from ..utils.utility import cmp_str
import pickle
import pdb
# Musk: [other(0, 1... | 27.333333 | 83 | 0.616983 | 307 | 2,214 | 4.273616 | 0.319218 | 0.067073 | 0.018293 | 0.033537 | 0.193598 | 0.161585 | 0.091463 | 0.091463 | 0.091463 | 0.091463 | 0 | 0.011656 | 0.263776 | 2,214 | 80 | 84 | 27.675 | 0.793252 | 0.119241 | 0 | 0.150943 | 0 | 0 | 0.054755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.132075 | null | null | 0.018868 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4ef0871b34b36b58fc4e9a908123e0d579d0e08d | 2,187 | py | Python | pi/scripts/cpu_et_all.py | bergloman/gadgetWiring | 0b3d6b856aa0eb4f80468ebebaf00a19247b7f59 | [
"MIT"
] | 1 | 2020-08-21T06:11:34.000Z | 2020-08-21T06:11:34.000Z | pi/scripts/cpu_et_all.py | bergloman/gadgetWiring | 0b3d6b856aa0eb4f80468ebebaf00a19247b7f59 | [
"MIT"
] | null | null | null | pi/scripts/cpu_et_all.py | bergloman/gadgetWiring | 0b3d6b856aa0eb4f80468ebebaf00a19247b7f59 | [
"MIT"
] | 1 | 2020-08-21T06:12:19.000Z | 2020-08-21T06:12:19.000Z | import os
import sys
import os.path
import datetime
# Return CPU temperature as a character string
def getCPUtemperature():
res = os.popen('vcgencmd measure_temp').readline()
return(res.replace("temp=","").replace("'C\n",""))
# Return RAM information (unit=kb) in a list
# Index 0: total RAM
# Index 1: used RA... | 23.021053 | 99 | 0.651578 | 350 | 2,187 | 3.937143 | 0.265714 | 0.050798 | 0.058055 | 0.034833 | 0.140784 | 0.063861 | 0.063861 | 0.063861 | 0.063861 | 0.063861 | 0 | 0.02413 | 0.185185 | 2,187 | 94 | 100 | 23.265957 | 0.749158 | 0.217193 | 0 | 0.196721 | 0 | 0 | 0.104129 | 0.049671 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.065574 | null | null | 0.147541 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4ef2d9a3739a702985a06fbab1ce4dd2f6691056 | 798 | py | Python | tests/test_pool.py | ndevenish/drmaa_futures | caba0df29b17bb243db4e752b9815008cfca12ba | [
"BSD-3-Clause"
] | null | null | null | tests/test_pool.py | ndevenish/drmaa_futures | caba0df29b17bb243db4e752b9815008cfca12ba | [
"BSD-3-Clause"
] | null | null | null | tests/test_pool.py | ndevenish/drmaa_futures | caba0df29b17bb243db4e752b9815008cfca12ba | [
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
"""Test the pool launching and management capabilities"""
import pytest
from collections import namedtuple
from drmaa_futures.master import bind_to_endpoint
# If we can't import drmaa (e.g. no good environment for it), then
# skip any tests in this file
try:
import drmaa
except RuntimeError:
pyte... | 21.567568 | 66 | 0.713033 | 116 | 798 | 4.853448 | 0.62069 | 0.021314 | 0.049734 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021148 | 0.170426 | 798 | 37 | 67 | 21.567568 | 0.829305 | 0.24812 | 0 | 0.24 | 0 | 0 | 0.07483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0.08 | 0.16 | 0 | 0.28 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4ef316c47cb475988e33f212ff8aa2533e304481 | 5,531 | py | Python | src/CheckersBot.py | kartikkukreja/blog-codes | 1ad66b5ea870141d38e513768dfd509a5dbae04e | [
"MIT"
] | 182 | 2015-01-12T03:58:46.000Z | 2022-03-29T04:15:50.000Z | src/CheckersBot.py | BahFr/blog-codes | 1ad66b5ea870141d38e513768dfd509a5dbae04e | [
"MIT"
] | 4 | 2015-02-25T18:23:11.000Z | 2021-04-05T14:34:41.000Z | src/CheckersBot.py | BahFr/blog-codes | 1ad66b5ea870141d38e513768dfd509a5dbae04e | [
"MIT"
] | 178 | 2015-01-04T08:16:41.000Z | 2022-02-02T10:04:16.000Z | from copy import deepcopy
from time import time
# Global Constants
MaxUtility = 1e9
IsPlayerBlack = True
MaxAllowedTimeInSeconds = 9.5
MaxDepth = 100
class CheckersState:
def __init__(self, grid, blackToMove, moves):
self.grid = grid
self.blackToMove = blackToMove
self.moves = moves # Hops taken by a d... | 37.120805 | 125 | 0.612909 | 754 | 5,531 | 4.46817 | 0.196286 | 0.009498 | 0.016622 | 0.028198 | 0.26358 | 0.20837 | 0.170674 | 0.146037 | 0.132384 | 0.132384 | 0 | 0.015415 | 0.261074 | 5,531 | 148 | 126 | 37.371622 | 0.808906 | 0.08588 | 0 | 0.158333 | 0 | 0 | 0.005352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.016667 | null | null | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4efa26a4ef77f11efb163d9f85f2a8fb8e523820 | 2,001 | py | Python | liquid_extra/filters/additional.py | jg-rp/liquid-extra | 2a98d98bc78950f75cdd06794cf5dfe1629fa81d | [
"MIT"
] | 1 | 2021-07-05T22:59:15.000Z | 2021-07-05T22:59:15.000Z | liquid_extra/filters/additional.py | jg-rp/liquid-extra | 2a98d98bc78950f75cdd06794cf5dfe1629fa81d | [
"MIT"
] | 3 | 2021-04-21T16:27:03.000Z | 2021-05-09T09:32:25.000Z | liquid_extra/filters/additional.py | jg-rp/liquid-extra | 2a98d98bc78950f75cdd06794cf5dfe1629fa81d | [
"MIT"
] | null | null | null | """Some additional filters that don't belong to any specific category."""
import json
from typing import Any
from typing import Optional
from typing import Mapping
from liquid.context import get_item
from liquid.filter import liquid_filter
from liquid.filter import with_context
from liquid.filter import with_environ... | 28.183099 | 87 | 0.674663 | 254 | 2,001 | 5.212598 | 0.362205 | 0.045317 | 0.036254 | 0.049849 | 0.113293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238381 | 2,001 | 70 | 88 | 28.585714 | 0.868766 | 0.337831 | 0 | 0.052632 | 0 | 0 | 0.014996 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.263158 | 0.026316 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4efae5635bb6149f290996d99d0cce5a306d5612 | 213 | py | Python | printevenrange.py | maurendeviia/pythoncharmers | b5775d0f51a6f2e5dc0365345e0436dea4c72c14 | [
"MIT"
] | 37 | 2020-10-01T15:20:12.000Z | 2021-10-04T14:17:06.000Z | printevenrange.py | maurendeviia/pythoncharmers | b5775d0f51a6f2e5dc0365345e0436dea4c72c14 | [
"MIT"
] | 27 | 2020-10-01T12:32:41.000Z | 2021-10-04T11:05:34.000Z | printevenrange.py | maurendeviia/pythoncharmers | b5775d0f51a6f2e5dc0365345e0436dea4c72c14 | [
"MIT"
] | 57 | 2020-10-01T11:24:26.000Z | 2022-02-16T05:09:50.000Z | # Python program to print Even Numbers in given range
start, end = 4, 19
# iterating each number in list
for num in range(start, end + 1):
# checking condition
if num % 2 == 0:
print(num, end = " ")
| 19.363636 | 54 | 0.638498 | 34 | 213 | 4 | 0.735294 | 0.147059 | 0.191176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038217 | 0.262911 | 213 | 10 | 55 | 21.3 | 0.828025 | 0.478873 | 0 | 0 | 0 | 0 | 0.009434 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f60983cd5665d38eb0f4683f887f10ae316b89b4 | 930 | py | Python | src/initialize_constraints.py | petersiemen/P3_Implement_SLAM | a23bf86146ab5d0f08ddfc9c3d2482a7842343dc | [
"MIT"
] | null | null | null | src/initialize_constraints.py | petersiemen/P3_Implement_SLAM | a23bf86146ab5d0f08ddfc9c3d2482a7842343dc | [
"MIT"
] | null | null | null | src/initialize_constraints.py | petersiemen/P3_Implement_SLAM | a23bf86146ab5d0f08ddfc9c3d2482a7842343dc | [
"MIT"
] | null | null | null | import numpy as np
def initialize_constraints(N, num_landmarks, world_size):
''' This function takes in a number of time steps N, number of landmarks, and a world_size,
and returns initialized constraint matrices, omega and xi.'''
## Recommended: Define and store the size (rows/cols) of the constrain... | 31 | 96 | 0.65914 | 152 | 930 | 3.907895 | 0.421053 | 0.060606 | 0.043771 | 0.077441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02726 | 0.250538 | 930 | 29 | 97 | 32.068966 | 0.824964 | 0.524731 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f61422353933f19f462130e88c7c2d78c64f30ac | 4,483 | py | Python | gen_luh2.py | ricardog/raster-project | 37d508ca329d31d4b1d21614371596f4c1bca526 | [
"Apache-2.0"
] | 1 | 2018-02-23T14:26:17.000Z | 2018-02-23T14:26:17.000Z | gen_luh2.py | NaturalHistoryMuseum/raster-project | 319a0f633de8cf2317eba5d82396036f01ce5262 | [
"Apache-2.0"
] | null | null | null | gen_luh2.py | NaturalHistoryMuseum/raster-project | 319a0f633de8cf2317eba5d82396036f01ce5262 | [
"Apache-2.0"
] | 1 | 2017-10-11T15:49:18.000Z | 2017-10-11T15:49:18.000Z | #!/usr/bin/env python
import numpy as np
import numpy.ma as ma
import os
import rasterio
import rasterio.warp as rwarp
import subprocess
import pdb
import projections.poly as poly
from projections.rasterset import Raster, RasterSet
import projections.reproject as reproj
from projections.simpleexpr import SimpleExpr
f... | 34.751938 | 80 | 0.617221 | 635 | 4,483 | 4.226772 | 0.292913 | 0.020492 | 0.028689 | 0.011177 | 0.104322 | 0.067064 | 0.033532 | 0 | 0 | 0 | 0 | 0.028169 | 0.20812 | 4,483 | 128 | 81 | 35.023438 | 0.727887 | 0 | 0 | 0.018692 | 0 | 0.018692 | 0.17754 | 0.01955 | 0 | 0 | 0 | 0 | 0.028037 | 0 | null | null | 0 | 0.11215 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f61c1a186a31fee8af88ca526e14fd790d04c89c | 712 | py | Python | docs/source/conftest.py | chaaklau/pycantonese | 94694fea2f3c3405d3b6bb6d504a56bb05a6496c | [
"MIT"
] | 124 | 2019-08-12T13:10:43.000Z | 2022-03-24T18:35:58.000Z | docs/source/conftest.py | chaaklau/pycantonese | 94694fea2f3c3405d3b6bb6d504a56bb05a6496c | [
"MIT"
] | 13 | 2019-09-03T17:08:49.000Z | 2021-12-28T21:37:17.000Z | docs/source/conftest.py | chaaklau/pycantonese | 94694fea2f3c3405d3b6bb6d504a56bb05a6496c | [
"MIT"
] | 15 | 2019-08-09T04:03:01.000Z | 2022-03-17T10:18:21.000Z | """Test code snippets embedded in the docs.
Reference: https://sybil.readthedocs.io/en/latest/use.html#pytest
"""
from doctest import NORMALIZE_WHITESPACE
from os import chdir, getcwd
from shutil import rmtree
from tempfile import mkdtemp
import pytest
from sybil import Sybil
from sybil.parsers.doctest import DocTes... | 20.941176 | 68 | 0.712079 | 88 | 712 | 5.715909 | 0.545455 | 0.053678 | 0.063618 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185393 | 712 | 33 | 69 | 21.575758 | 0.867241 | 0.150281 | 0 | 0 | 0 | 0 | 0.0301 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.347826 | 0 | 0.391304 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f61c67f808af20e901b483b92ecece7672d26862 | 1,361 | py | Python | setup.py | rcarmo/miniredis | 39f49249cddd11a4b333932fdb8157273a8a1dc4 | [
"MIT"
] | 1 | 2020-11-15T13:35:55.000Z | 2020-11-15T13:35:55.000Z | setup.py | rcarmo/miniredis | 39f49249cddd11a4b333932fdb8157273a8a1dc4 | [
"MIT"
] | null | null | null | setup.py | rcarmo/miniredis | 39f49249cddd11a4b333932fdb8157273a8a1dc4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Copyright (c) 2013, Rui Carmo
Description: Experimental Cython compile script
License: MIT (see LICENSE.md for details)
"""
import os, sys
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
from Cython.Bui... | 24.303571 | 61 | 0.639971 | 171 | 1,361 | 5.023392 | 0.538012 | 0.034924 | 0.044237 | 0.058207 | 0.076834 | 0.076834 | 0 | 0 | 0 | 0 | 0 | 0.007569 | 0.223365 | 1,361 | 55 | 62 | 24.745455 | 0.805109 | 0.03086 | 0 | 0.051282 | 0 | 0 | 0.089992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.179487 | null | null | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f61fefd5ee0b418c1ed7df9741ff347b4841d228 | 1,754 | py | Python | test/test_handlers.py | charles-x-chen/pyaem | 2eecd53d6df3046b1dac2a939cf84e68f1c16a2c | [
"MIT"
] | 17 | 2015-02-16T23:51:30.000Z | 2022-03-22T22:31:26.000Z | test/test_handlers.py | charles-x-chen/pyaem | 2eecd53d6df3046b1dac2a939cf84e68f1c16a2c | [
"MIT"
] | null | null | null | test/test_handlers.py | charles-x-chen/pyaem | 2eecd53d6df3046b1dac2a939cf84e68f1c16a2c | [
"MIT"
] | 17 | 2015-01-12T23:26:13.000Z | 2020-10-05T07:59:00.000Z | import pyaem
import unittest
class TestHandlers(unittest.TestCase):
def test_auth_fail(self):
response = {
'http_code': 401,
'body': 'some body'
}
try:
pyaem.handlers.auth_fail(response)
self.fail('An exception should have been raised')
... | 31.321429 | 110 | 0.612885 | 177 | 1,754 | 5.960452 | 0.299435 | 0.127962 | 0.204739 | 0.056872 | 0.442654 | 0.404739 | 0.404739 | 0.31564 | 0.31564 | 0.31564 | 0 | 0.016922 | 0.292474 | 1,754 | 56 | 111 | 31.321429 | 0.833199 | 0 | 0 | 0.357143 | 0 | 0 | 0.22735 | 0.02963 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.071429 | false | 0.02381 | 0.047619 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f623f1af87dc4bc5dd94fc0ebee1c65414218e53 | 5,739 | py | Python | basic/blog/models.py | mrmonkington/django-basic-apps | 12602ef25898d576895d6365748b360149536215 | [
"BSD-3-Clause"
] | 1 | 2015-01-25T14:03:05.000Z | 2015-01-25T14:03:05.000Z | basic/blog/models.py | mrmonkington/django-basic-apps | 12602ef25898d576895d6365748b360149536215 | [
"BSD-3-Clause"
] | null | null | null | basic/blog/models.py | mrmonkington/django-basic-apps | 12602ef25898d576895d6365748b360149536215 | [
"BSD-3-Clause"
] | null | null | null | import datetime
from django.db import models
from django.utils.safestring import mark_safe
from django.utils.translation import ugettext_lazy as _
from django.db.models import permalink
from django.contrib.auth.models import User
from django.template.defaultfilters import truncatewords_html
from taggit.managers impor... | 37.756579 | 102 | 0.657606 | 692 | 5,739 | 5.268786 | 0.277457 | 0.024685 | 0.030719 | 0.027427 | 0.202688 | 0.159353 | 0.133297 | 0.133297 | 0.09435 | 0.065826 | 0 | 0.005705 | 0.236452 | 5,739 | 151 | 103 | 38.006623 | 0.826335 | 0.13417 | 0 | 0.121495 | 0 | 0 | 0.091835 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093458 | false | 0 | 0.121495 | 0.074766 | 0.598131 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f6398a173c6663115387aa4bb6d53243491d70b5 | 2,677 | py | Python | pybrowser/elements/file.py | abranjith/pybrowser | 8a4d435c7071e64e881f2c274fabd5cd7805ea34 | [
"MIT"
] | 22 | 2019-04-09T07:18:40.000Z | 2021-03-05T22:49:55.000Z | pybrowser/elements/file.py | abranjith/pybrowser | 8a4d435c7071e64e881f2c274fabd5cd7805ea34 | [
"MIT"
] | 3 | 2019-04-09T05:50:21.000Z | 2021-12-13T20:03:15.000Z | pybrowser/elements/file.py | abranjith/pybrowser | 8a4d435c7071e64e881f2c274fabd5cd7805ea34 | [
"MIT"
] | 2 | 2019-04-09T09:51:30.000Z | 2019-04-09T20:27:21.000Z | __author__ = 'Ranjith'
import os
from .utils import find_elements_for_element
from .actions import Action
from ..common_utils import get_user_home_dir
from ..exceptions import InvalidArgumentError
from ..downloader import download_url
class File(Action):
def __init__(self, driver, locator=None, element=None, wait... | 39.367647 | 123 | 0.669406 | 332 | 2,677 | 5.099398 | 0.289157 | 0.06202 | 0.067336 | 0.051979 | 0.128175 | 0.083875 | 0.083875 | 0.064973 | 0.064973 | 0.064973 | 0 | 0.001003 | 0.255136 | 2,677 | 67 | 124 | 39.955224 | 0.848044 | 0.046321 | 0 | 0.181818 | 0 | 0 | 0.061961 | 0 | 0 | 0 | 0 | 0.014925 | 0 | 1 | 0.145455 | false | 0.018182 | 0.109091 | 0.036364 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f64117381fc233401b750b98441cefd6d15855df | 1,448 | py | Python | bids_app/models.py | daniel-afana/Bids | 19e1f9a4700922f0d36b6a325ad449934bfcb39a | [
"MIT"
] | null | null | null | bids_app/models.py | daniel-afana/Bids | 19e1f9a4700922f0d36b6a325ad449934bfcb39a | [
"MIT"
] | null | null | null | bids_app/models.py | daniel-afana/Bids | 19e1f9a4700922f0d36b6a325ad449934bfcb39a | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.postgres.fields import ArrayField
from django.core.exceptions import ValidationError
class Channel(models.Model):
name = models.CharField(max_length=50)
slug = models.CharField(max_length=50)
BID_TYPES_CHOICES = (
("CPC", "CPC"),
("CPM", "... | 26.814815 | 113 | 0.629834 | 180 | 1,448 | 4.916667 | 0.372222 | 0.072316 | 0.081356 | 0.108475 | 0.287006 | 0.257627 | 0.257627 | 0.257627 | 0.164972 | 0.164972 | 0 | 0.00724 | 0.236878 | 1,448 | 53 | 114 | 27.320755 | 0.793665 | 0 | 0 | 0.315789 | 0 | 0 | 0.081604 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.078947 | 0.052632 | 0.552632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f64251c411f34ca05f966c7c7e5903d86a70775d | 2,614 | py | Python | microtbs_rl/utils/plotter.py | alex-petrenko/simple-reinforcement-learning | d0da1d9026d1f05e2552d08e56fbe58ad869fafd | [
"MIT"
] | 8 | 2018-03-05T05:13:39.000Z | 2021-02-27T03:12:05.000Z | microtbs_rl/utils/plotter.py | alex-petrenko/simple-reinforcement-learning | d0da1d9026d1f05e2552d08e56fbe58ad869fafd | [
"MIT"
] | null | null | null | microtbs_rl/utils/plotter.py | alex-petrenko/simple-reinforcement-learning | d0da1d9026d1f05e2552d08e56fbe58ad869fafd | [
"MIT"
] | 4 | 2018-09-04T04:44:26.000Z | 2021-07-22T06:34:51.000Z | """
Plot the training progress data collected by the Monitor.
"""
import csv
import matplotlib.pyplot as plt
from microtbs_rl.utils.common_utils import *
from microtbs_rl.utils.monitor import Monitor
COLORS = ['blue', 'green', 'red', 'cyan', 'magenta', 'black', 'purple', 'pink',
'brown', 'orange', 'teal... | 31.878049 | 95 | 0.63772 | 299 | 2,614 | 5.317726 | 0.394649 | 0.106289 | 0.138994 | 0.204403 | 0.416981 | 0.384906 | 0.356604 | 0.071698 | 0 | 0 | 0 | 0.022994 | 0.218057 | 2,614 | 81 | 96 | 32.271605 | 0.754892 | 0.021806 | 0 | 0.035714 | 0 | 0 | 0.291209 | 0.16248 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017857 | false | 0 | 0.071429 | 0 | 0.089286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f647181f3707650870d3adb4a2126181f5dd57fd | 353 | py | Python | airflow/bin/create_user.py | Ahrli/fast_tools | 144d764e4f169d3ab3753dcc6a79db9f9449de59 | [
"Apache-2.0"
] | 1 | 2021-12-11T16:33:47.000Z | 2021-12-11T16:33:47.000Z | airflow/bin/create_user.py | webclinic017/fast_tools | 144d764e4f169d3ab3753dcc6a79db9f9449de59 | [
"Apache-2.0"
] | null | null | null | airflow/bin/create_user.py | webclinic017/fast_tools | 144d764e4f169d3ab3753dcc6a79db9f9449de59 | [
"Apache-2.0"
] | 3 | 2021-11-22T09:46:43.000Z | 2022-01-28T22:33:07.000Z | import airflow
from airflow import models,settings
from airflow.contrib.auth.backends.password_auth import PasswordUser
user = PasswordUser(models.User())
user.username = 'admin'
user.email = 'zhangyulei@haoqipei.com'
user.password = 'hqp@123'
#user.superuser = '1'
session = settings.Session()
session.add(user)
session... | 25.214286 | 68 | 0.779037 | 46 | 353 | 5.956522 | 0.565217 | 0.080292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012461 | 0.090652 | 353 | 13 | 69 | 27.153846 | 0.841122 | 0.056657 | 0 | 0 | 0 | 0 | 0.105422 | 0.069277 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f64b69837b7eb0f3c15dac0cd190e2cabc00f460 | 1,066 | py | Python | arvestust/models/image.py | lehvitus/arvestust | 2d508317b744eaf12a643a398ff95723893a046a | [
"BSD-3-Clause"
] | 1 | 2021-09-17T23:45:27.000Z | 2021-09-17T23:45:27.000Z | arvestust/models/image.py | lehvitus/arvestust | 2d508317b744eaf12a643a398ff95723893a046a | [
"BSD-3-Clause"
] | 3 | 2020-07-25T05:40:54.000Z | 2020-08-11T04:01:19.000Z | arvestust/models/image.py | lehvitus/arvestust | 2d508317b744eaf12a643a398ff95723893a046a | [
"BSD-3-Clause"
] | null | null | null | import os
import uuid
import inflection
from django.db import models
from django.urls import reverse
from django.template.defaultfilters import slugify
from django.utils.translation import gettext_lazy as _
from django.conf import settings
from .abstracts import ArvestustRecord, ArvestustFile
from .validators.file impo... | 31.352941 | 71 | 0.733583 | 131 | 1,066 | 5.793893 | 0.526718 | 0.065876 | 0.036891 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163227 | 1,066 | 33 | 72 | 32.30303 | 0.850897 | 0 | 0 | 0 | 0 | 0 | 0.143527 | 0.072233 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.37037 | 0.037037 | 0.62963 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f64b8aeb3d128b7bcc0c7b89694495f0e4849565 | 1,066 | py | Python | UServer/test/jwt_test.py | soybean217/lora-python | 9c4324f81bae8b20f6c353447189f724a5cf54c6 | [
"MIT"
] | null | null | null | UServer/test/jwt_test.py | soybean217/lora-python | 9c4324f81bae8b20f6c353447189f724a5cf54c6 | [
"MIT"
] | null | null | null | UServer/test/jwt_test.py | soybean217/lora-python | 9c4324f81bae8b20f6c353447189f724a5cf54c6 | [
"MIT"
] | null | null | null | from flask import Flask
from flask_jwt import JWT, jwt_required, current_identity
from werkzeug.security import safe_str_cmp
class User(object):
def __init__(self, id, username, password):
self.id = id
self.username = username
self.password = password
def __str__(self):
return... | 22.680851 | 86 | 0.673546 | 148 | 1,066 | 4.608108 | 0.371622 | 0.026393 | 0.029326 | 0.020528 | 0.035191 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006961 | 0.19137 | 1,066 | 47 | 87 | 22.680851 | 0.784223 | 0 | 0 | 0 | 0 | 0 | 0.089035 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0.121212 | 0.090909 | 0.060606 | 0.393939 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f64d275b7aa35de5a219b8a185ea10f9e31f7f2b | 3,698 | py | Python | bit_manipulation/bit/bit_challenge.py | stephank007/python_challenges | dfd8d18c03a06735f6e4e02b0660007fe2d02f07 | [
"Apache-2.0"
] | null | null | null | bit_manipulation/bit/bit_challenge.py | stephank007/python_challenges | dfd8d18c03a06735f6e4e02b0660007fe2d02f07 | [
"Apache-2.0"
] | null | null | null | bit_manipulation/bit/bit_challenge.py | stephank007/python_challenges | dfd8d18c03a06735f6e4e02b0660007fe2d02f07 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# This notebook was prepared by [Donne Martin](https://github.com/donnemartin). Source and license info is on [GitHub](https://github.com/donnemartin/interactive-coding-challenges).
# # Challenge Notebook
# ## Problem: Implement common bit manipulation operations: get_bit, set_b... | 25.86014 | 181 | 0.629529 | 467 | 3,698 | 4.843683 | 0.278373 | 0.03183 | 0.074271 | 0.058798 | 0.442529 | 0.320955 | 0.233422 | 0.191424 | 0.10168 | 0.047745 | 0 | 0.079382 | 0.247161 | 3,698 | 142 | 182 | 26.042254 | 0.733118 | 0.507301 | 0 | 0.347826 | 0 | 0 | 0.04712 | 0 | 0 | 0 | 0 | 0.007042 | 0.173913 | 1 | 0.195652 | false | 0.152174 | 0.021739 | 0 | 0.26087 | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f65e7f541bba5e3f9d9922e2cc9d5bec1fda3a35 | 804 | py | Python | setup.py | EarthObservationSimulator/eosim-gui | 3067026f5f32be214e9ec2c4461a734ad25bb6a4 | [
"Apache-2.0"
] | null | null | null | setup.py | EarthObservationSimulator/eosim-gui | 3067026f5f32be214e9ec2c4461a734ad25bb6a4 | [
"Apache-2.0"
] | null | null | null | setup.py | EarthObservationSimulator/eosim-gui | 3067026f5f32be214e9ec2c4461a734ad25bb6a4 | [
"Apache-2.0"
] | null | null | null | from setuptools import setup
def readme():
with open('README.md') as f:
return f.read()
setup(
name='EOSim',
version='0.1',
description='Earth Observation Simulation',
author='BAERI',
author_email='vinay.ravindra@nasa.gov',
packages=['eosim'],
scripts=[
],
# Cartopy in... | 36.545455 | 131 | 0.69403 | 101 | 804 | 5.504951 | 0.742574 | 0.039568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003096 | 0.196517 | 804 | 21 | 132 | 38.285714 | 0.857585 | 0.483831 | 0 | 0 | 0 | 0 | 0.280488 | 0.056098 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | true | 0 | 0.066667 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f661c544da88aaf16ac3459d7539319bd161dc05 | 338 | py | Python | setup.py | natfoster82/ocean-commander | c2346a58df2068a77df06f20f184e5d8a898a32b | [
"MIT"
] | null | null | null | setup.py | natfoster82/ocean-commander | c2346a58df2068a77df06f20f184e5d8a898a32b | [
"MIT"
] | null | null | null | setup.py | natfoster82/ocean-commander | c2346a58df2068a77df06f20f184e5d8a898a32b | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='ocean',
version='0.1',
packages=find_packages(),
include_package_data=True,
install_requires=[
'Click',
],
entry_points='''
[console_scripts]
example=ocean.scripts.example:cli
manage=ocean.scripts.mana... | 18.777778 | 43 | 0.621302 | 36 | 338 | 5.638889 | 0.694444 | 0.118227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007905 | 0.251479 | 338 | 17 | 44 | 19.882353 | 0.794466 | 0 | 0 | 0 | 0 | 0 | 0.372781 | 0.189349 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f66af2ad04c311c1b97ef65e732acae8d31ce34c | 562 | py | Python | app.py | oeg-upm/SOMEF-server | 298f4ad2cd4f823e468175dc6c516eb0d7cdb406 | [
"Apache-2.0"
] | null | null | null | app.py | oeg-upm/SOMEF-server | 298f4ad2cd4f823e468175dc6c516eb0d7cdb406 | [
"Apache-2.0"
] | null | null | null | app.py | oeg-upm/SOMEF-server | 298f4ad2cd4f823e468175dc6c516eb0d7cdb406 | [
"Apache-2.0"
] | null | null | null | import os
import json
from flask import Flask, render_template, jsonify, request, send_from_directory
from werkzeug.utils import secure_filename
#import requests
import sys
app = Flask(__name__)
@app.route("/")
def home():
return render_template('home.html')
if __name__ == '__main__':
if len(sys.argv) == 2... | 23.416667 | 79 | 0.676157 | 87 | 562 | 4.172414 | 0.471264 | 0.134986 | 0.066116 | 0.123967 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015054 | 0.172598 | 562 | 23 | 80 | 24.434783 | 0.765591 | 0.02669 | 0 | 0 | 0 | 0 | 0.033028 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 0.0625 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f66d3a73fa08c664c7d72bdfd430781014a05412 | 385 | py | Python | tastyworks/__init__.py | olyoberdorf/tastyworks_api | a54aa873e804c72374f6654a221904b0428b7fbf | [
"Apache-2.0"
] | 198 | 2018-07-13T20:06:19.000Z | 2022-03-15T04:56:34.000Z | tastyworks/__init__.py | olyoberdorf/tastyworks_api | a54aa873e804c72374f6654a221904b0428b7fbf | [
"Apache-2.0"
] | 56 | 2018-07-08T03:15:12.000Z | 2022-03-29T18:47:05.000Z | tastyworks/__init__.py | olyoberdorf/tastyworks_api | a54aa873e804c72374f6654a221904b0428b7fbf | [
"Apache-2.0"
] | 81 | 2018-07-20T04:26:37.000Z | 2022-03-24T20:28:15.000Z | import logging
import sys
log = logging.getLogger(__name__)
log.propagate = False
out_hdlr = logging.StreamHandler(sys.stdout)
out_hdlr.setFormatter(logging.Formatter('%(asctime)s %(message)s'))
out_hdlr.setLevel(logging.INFO)
log.addHandler(out_hdlr)
log.setLevel(logging.INFO)
root = logging.getLogger()
root.addHand... | 24.0625 | 67 | 0.8 | 53 | 385 | 5.641509 | 0.396226 | 0.117057 | 0.190635 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072727 | 385 | 15 | 68 | 25.666667 | 0.837535 | 0 | 0 | 0 | 0 | 0 | 0.05974 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f6716bfc2a73ea5f08b4023d9c01383e8e7937ef | 1,940 | py | Python | 01Firmware/PDM_USB/PDM_USB/src/endpoint0/chanstringgen.py | simongapp/xmos_usb_mems_interface | e619671d63e775033a1f195b6486b7a0b96134b3 | [
"Unlicense"
] | 9 | 2021-03-01T05:55:07.000Z | 2022-03-24T16:20:10.000Z | 01Firmware/PDM_USB/PDM_USB/src/endpoint0/chanstringgen.py | jiguansghen/xmos_usb_mems_interface | e619671d63e775033a1f195b6486b7a0b96134b3 | [
"Unlicense"
] | null | null | null | 01Firmware/PDM_USB/PDM_USB/src/endpoint0/chanstringgen.py | jiguansghen/xmos_usb_mems_interface | e619671d63e775033a1f195b6486b7a0b96134b3 | [
"Unlicense"
] | 3 | 2021-03-09T07:26:56.000Z | 2021-07-08T23:09:36.000Z |
def genstrings(outputChanCount, chanString, portString, structureString, adc_dac):
for i in range(1,outputChanCount):
print "#if (NUM_USB_CHAN_{c} > {i}-1)\n\
.{s}ChanStr_{i} = \"\"\n\
#if ({i} < I2S_CHANS_{adcdac}+1)\n\
\"Analogue {i}\"\n\
#endif\n\
#if (({i} < SPDI... | 34.035088 | 143 | 0.491237 | 279 | 1,940 | 3.247312 | 0.265233 | 0.055188 | 0.06181 | 0.10596 | 0.42936 | 0.347682 | 0.196468 | 0.196468 | 0.152318 | 0.152318 | 0 | 0.02726 | 0.281443 | 1,940 | 56 | 144 | 34.642857 | 0.622669 | 0 | 0 | 0.234043 | 0 | 0.085106 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.106383 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f678aa0f9a85b61ab8fe04a78766c85f7516bd05 | 2,337 | py | Python | functionaltests/api/camp/test_platform_endpoints.py | ed-/solum | 2d23edb7fb53e1bdeff510710824658575d166c4 | [
"Apache-2.0"
] | null | null | null | functionaltests/api/camp/test_platform_endpoints.py | ed-/solum | 2d23edb7fb53e1bdeff510710824658575d166c4 | [
"Apache-2.0"
] | null | null | null | functionaltests/api/camp/test_platform_endpoints.py | ed-/solum | 2d23edb7fb53e1bdeff510710824658575d166c4 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, soft... | 42.490909 | 78 | 0.654685 | 294 | 2,337 | 5.027211 | 0.411565 | 0.121786 | 0.033153 | 0.064953 | 0.20839 | 0.186739 | 0.096076 | 0 | 0 | 0 | 0 | 0.019318 | 0.246898 | 2,337 | 54 | 79 | 43.277778 | 0.820455 | 0.311083 | 0 | 0.206897 | 0 | 0 | 0.194095 | 0.100503 | 0 | 0 | 0 | 0 | 0.413793 | 1 | 0.034483 | false | 0 | 0.068966 | 0 | 0.137931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f67a4ea970f8737b84191cc1afe12d451d9599bb | 14,017 | py | Python | liberapay/testing/elsewhere.py | virtuchain/liberapay.com | 70f23e64c55e2882cedd12f93e5857f2e7f85fc0 | [
"PostgreSQL",
"CC0-1.0"
] | null | null | null | liberapay/testing/elsewhere.py | virtuchain/liberapay.com | 70f23e64c55e2882cedd12f93e5857f2e7f85fc0 | [
"PostgreSQL",
"CC0-1.0"
] | 1 | 2021-06-02T01:18:36.000Z | 2021-06-02T01:18:36.000Z | liberapay/testing/elsewhere.py | virtuchain/liberapay.com | 70f23e64c55e2882cedd12f93e5857f2e7f85fc0 | [
"PostgreSQL",
"CC0-1.0"
] | null | null | null | # flake8: noqa
"""
Examples of data returned by the APIs of the elsewhere platforms.
They are wrapped in lambdas to prevent tests from persistently modifying the
data.
"""
import xml.etree.ElementTree as ET
bitbucket = lambda: {
"username": "whit537",
"website": "https://www.gittip.com/whit537/",
"disp... | 36.984169 | 341 | 0.600342 | 1,457 | 14,017 | 5.64722 | 0.348662 | 0.031113 | 0.01738 | 0.020661 | 0.361935 | 0.342975 | 0.3228 | 0.273213 | 0.225085 | 0.185343 | 0 | 0.085434 | 0.230078 | 14,017 | 378 | 342 | 37.082011 | 0.676983 | 0.011629 | 0 | 0.135211 | 0 | 0.056338 | 0.626607 | 0.065145 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.002817 | 0 | 0.002817 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f67b826bf07f4664b17599c6e0bc2643701afd74 | 397 | py | Python | pong/paddle.py | Arihant25/beginner-python-projects | 43c6489b6973522246073f2187a682487f1684c1 | [
"Unlicense"
] | 1 | 2020-06-11T06:10:08.000Z | 2020-06-11T06:10:08.000Z | pong/paddle.py | Arihant25/beginner-python-projects | 43c6489b6973522246073f2187a682487f1684c1 | [
"Unlicense"
] | 1 | 2021-07-16T03:50:09.000Z | 2021-07-16T04:00:35.000Z | pong/paddle.py | Arihant25/beginner-python-projects | 43c6489b6973522246073f2187a682487f1684c1 | [
"Unlicense"
] | 1 | 2021-07-16T03:28:39.000Z | 2021-07-16T03:28:39.000Z | from turtle import Turtle
class Paddle(Turtle):
def __init__(self, coordinates):
super().__init__()
self.penup()
self.shape('square')
self.shapesize(stretch_wid=5, stretch_len=1)
self.goto(coordinates)
self.color('white')
def move_up(self):
self.sety(se... | 23.352941 | 52 | 0.599496 | 50 | 397 | 4.52 | 0.56 | 0.070796 | 0.106195 | 0.141593 | 0.19469 | 0.19469 | 0 | 0 | 0 | 0 | 0 | 0.020548 | 0.264484 | 397 | 17 | 53 | 23.352941 | 0.753425 | 0 | 0 | 0 | 0 | 0 | 0.027638 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f67dc3624a5ea82587588a01f68e4ec97a033faf | 703 | py | Python | articles/migrations/0002_auto_20201224_1436.py | dmahon10/django-tiered-membership-web-app | a2b8ba345d3e814aa44422f7b61016538c52de61 | [
"MIT"
] | null | null | null | articles/migrations/0002_auto_20201224_1436.py | dmahon10/django-tiered-membership-web-app | a2b8ba345d3e814aa44422f7b61016538c52de61 | [
"MIT"
] | null | null | null | articles/migrations/0002_auto_20201224_1436.py | dmahon10/django-tiered-membership-web-app | a2b8ba345d3e814aa44422f7b61016538c52de61 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.4 on 2020-12-24 14:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('articles', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='freearticle',
name='tier',
... | 29.291667 | 136 | 0.584637 | 71 | 703 | 5.71831 | 0.577465 | 0.08867 | 0.1133 | 0.133005 | 0.428571 | 0.315271 | 0.315271 | 0.315271 | 0.315271 | 0.315271 | 0 | 0.040153 | 0.256046 | 703 | 23 | 137 | 30.565217 | 0.736138 | 0.064011 | 0 | 0.352941 | 1 | 0 | 0.164634 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c8ad1583ed55f2c15d5dbd6877241e22d705c69 | 207 | py | Python | pyclassyfire/dev_multipage.py | oolonek/pyclassyfire | ddb6699e8738b0afe1b655c386edcdd76031d0a5 | [
"MIT"
] | null | null | null | pyclassyfire/dev_multipage.py | oolonek/pyclassyfire | ddb6699e8738b0afe1b655c386edcdd76031d0a5 | [
"MIT"
] | null | null | null | pyclassyfire/dev_multipage.py | oolonek/pyclassyfire | ddb6699e8738b0afe1b655c386edcdd76031d0a5 | [
"MIT"
] | null | null | null | from pyclassyfire import client
url = "http://classyfire.wishartlab.com"
chunk_size = 50
sleep_interval = 100
tabular_query_multipage('./test_data/sample_table.tsv', 'sanitized_smiles', 'excel-tab')
| 14.785714 | 88 | 0.763285 | 27 | 207 | 5.592593 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027322 | 0.115942 | 207 | 13 | 89 | 15.923077 | 0.797814 | 0 | 0 | 0 | 0 | 0 | 0.412621 | 0.135922 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c8b21b6a44f5568ec89e40b41ce8fc7a5bd4bd2 | 1,220 | py | Python | utils/stats_file_handeling.py | HereIsANiceNickname/CAS19 | 52b8b0dc9ced719c9efe23154e0541336e1e4cd8 | [
"MIT"
] | null | null | null | utils/stats_file_handeling.py | HereIsANiceNickname/CAS19 | 52b8b0dc9ced719c9efe23154e0541336e1e4cd8 | [
"MIT"
] | null | null | null | utils/stats_file_handeling.py | HereIsANiceNickname/CAS19 | 52b8b0dc9ced719c9efe23154e0541336e1e4cd8 | [
"MIT"
] | null | null | null | import threading as th
import queue as q
import yaml
STOP_STAT = "STOP"
class StatsFileHandler:
class StatsWriter(th.Thread):
def __init__(self, queue, file_path):
self.running = True
self.queue = queue
self.file_path = file_path
self.f_pointer_map = {}
... | 24.897959 | 100 | 0.543443 | 149 | 1,220 | 4.241611 | 0.342282 | 0.085443 | 0.03481 | 0.047468 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.345902 | 1,220 | 48 | 101 | 25.416667 | 0.79198 | 0 | 0 | 0 | 0 | 0 | 0.021329 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.228571 | false | 0.028571 | 0.085714 | 0.028571 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c8dcea9bbab180348b53ef150139acbd9953307 | 1,098 | py | Python | line.py | salt-die/Snippets | 982daf3d40cc47f8d3bbb34b6ac5380aac3b00c0 | [
"Unlicense"
] | 3 | 2019-10-03T22:57:59.000Z | 2022-01-08T03:00:49.000Z | line.py | salt-die/Snippets | 982daf3d40cc47f8d3bbb34b6ac5380aac3b00c0 | [
"Unlicense"
] | null | null | null | line.py | salt-die/Snippets | 982daf3d40cc47f8d3bbb34b6ac5380aac3b00c0 | [
"Unlicense"
] | 1 | 2019-10-04T03:00:30.000Z | 2019-10-04T03:00:30.000Z | def line(y1, x1, y2, x2):
"""
Yield integer coordinates for a line from (y1, x1) to (y2, x2).
"""
dy = abs(y2 - y1)
dx = abs(x2 - x1)
if dy == 0: # Horizontal
for x in range(x1, x2 + 1):
yield y1, x
elif dx == 0: # Vertical
for y in range(y1, y2 + 1):
... | 22.408163 | 72 | 0.370674 | 156 | 1,098 | 2.608974 | 0.230769 | 0.039312 | 0.036855 | 0.054054 | 0.257985 | 0.257985 | 0.257985 | 0.211302 | 0.108108 | 0 | 0 | 0.106422 | 0.503643 | 1,098 | 48 | 73 | 22.875 | 0.640367 | 0.108379 | 0 | 0.371429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0 | 0 | 0.028571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c9062316b5579223ce3cace5dabe39877910673 | 346 | py | Python | api/migrate/specs.py | michaelkerrytf/finalproject | de243cde5dfa91ab70a70f0cf09dbae5eaf18f74 | [
"MIT"
] | null | null | null | api/migrate/specs.py | michaelkerrytf/finalproject | de243cde5dfa91ab70a70f0cf09dbae5eaf18f74 | [
"MIT"
] | null | null | null | api/migrate/specs.py | michaelkerrytf/finalproject | de243cde5dfa91ab70a70f0cf09dbae5eaf18f74 | [
"MIT"
] | null | null | null | from ..env import Env
def migrate_specs(spec_list: list, target_env:Env):
"""
migrate from source organization to target
construct response dict
:param target_env:
:param spec_list:
:return:
"""
response_log = []
for spec in spec_list: # spec is a str: 'adex-spec-name'
pas... | 21.625 | 61 | 0.650289 | 47 | 346 | 4.617021 | 0.553191 | 0.110599 | 0.156682 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.263006 | 346 | 15 | 62 | 23.066667 | 0.85098 | 0.421965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9c9a3aa01da92b9da906e163b855038d34005533 | 2,909 | py | Python | data_retrivers/yarn_log_parser.py | IncioMan/ci_data_issue_prediction | b6eb812379c6e9e9a76290b45ee9953e9f186fb3 | [
"MIT"
] | 1 | 2021-12-07T06:57:46.000Z | 2021-12-07T06:57:46.000Z | data_retrivers/yarn_log_parser.py | IncioMan/ci_data_issue_prediction | b6eb812379c6e9e9a76290b45ee9953e9f186fb3 | [
"MIT"
] | null | null | null | data_retrivers/yarn_log_parser.py | IncioMan/ci_data_issue_prediction | b6eb812379c6e9e9a76290b45ee9953e9f186fb3 | [
"MIT"
] | null | null | null | """Test Suites: 370 passed, 370 total
Tests: 4 skipped, 1050 passed, 1054 total
Tests: 28 passed, 28 total
Snapshots: 830 passed, 830 total
Time: 67.988s
Ran all test suites.
Done in 99.84s."""
"""Test Suites: 187 passed, 187 total
Tests: 1 skipped, 579 passed, 580 total
Snapshots: 429 pas... | 29.989691 | 134 | 0.645926 | 458 | 2,909 | 3.866812 | 0.196507 | 0.12987 | 0.079051 | 0.112931 | 0.61039 | 0.60192 | 0.533597 | 0.520045 | 0.520045 | 0.467532 | 0 | 0.071082 | 0.221382 | 2,909 | 97 | 135 | 29.989691 | 0.70596 | 0.084565 | 0 | 0.586207 | 0 | 0.017241 | 0.109247 | 0.036129 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051724 | false | 0.396552 | 0.034483 | 0 | 0.189655 | 0.017241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9c9d0233d478d077cb8bbbf21249c7e605c792e9 | 449 | py | Python | LaundrIT-Project/Pedido/migrations/0040_auto_20191117_1418.py | linikerunk/laundr-it | 79d5403d897233e9354db2d6ec91393117eac24f | [
"MIT"
] | 1 | 2019-11-17T22:28:01.000Z | 2019-11-17T22:28:01.000Z | LaundrIT-Project/Pedido/migrations/0040_auto_20191117_1418.py | linikerunk/laundr-it | 79d5403d897233e9354db2d6ec91393117eac24f | [
"MIT"
] | 4 | 2021-04-08T18:43:19.000Z | 2021-06-10T17:57:30.000Z | LaundrIT-Project/Pedido/migrations/0040_auto_20191117_1418.py | linikerunk/laundr-it | 79d5403d897233e9354db2d6ec91393117eac24f | [
"MIT"
] | 1 | 2019-11-24T04:47:45.000Z | 2019-11-24T04:47:45.000Z | # Generated by Django 2.2.7 on 2019-11-17 17:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Pedido', '0039_auto_20191117_1417'),
]
operations = [
migrations.AlterField(
model_name='pedido',
name='valor_total'... | 23.631579 | 109 | 0.628062 | 52 | 449 | 5.269231 | 0.730769 | 0.065693 | 0.10219 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098802 | 0.256125 | 449 | 18 | 110 | 24.944444 | 0.721557 | 0.100223 | 0 | 0 | 1 | 0 | 0.141791 | 0.057214 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9ca3b9433876f96745dbcf9ddd046037057dd6f2 | 15,306 | py | Python | networkapi/api_network/tests/v3/sanity/allocate/test_network_v6.py | vinicius-marinho/GloboNetworkAPI | 94651d3b4dd180769bc40ec966814f3427ccfb5b | [
"Apache-2.0"
] | 1 | 2019-08-24T22:08:48.000Z | 2019-08-24T22:08:48.000Z | networkapi/api_network/tests/v3/sanity/allocate/test_network_v6.py | leopoldomauricio/GloboNetworkAPI | 3b5b2e336d9eb53b2c113977bfe466b23a50aa29 | [
"Apache-2.0"
] | 3 | 2020-06-05T19:01:55.000Z | 2021-06-10T20:47:40.000Z | networkapi/api_network/tests/v3/sanity/allocate/test_network_v6.py | shildenbrand/GloboNetworkAPI | 515d5e961456cee657c08c275faa1b69b7452719 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import json
from itertools import izip
from django.test.client import Client
from networkapi.test.test_case import NetworkApiTestCase
from networkapi.util.geral import prepare_url
fixtures_base_path = 'networkapi/api_network/fixtures/integration/%s'
class NetworksIntegrationV6TestCase(Netwo... | 29.894531 | 87 | 0.435777 | 1,290 | 15,306 | 5.045736 | 0.137985 | 0.038101 | 0.036872 | 0.033799 | 0.671839 | 0.603318 | 0.508527 | 0.502074 | 0.488401 | 0.469043 | 0 | 0.108647 | 0.416699 | 15,306 | 511 | 88 | 29.953033 | 0.620408 | 0.112244 | 0 | 0.712871 | 0 | 0 | 0.275371 | 0.079824 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017327 | false | 0.002475 | 0.012376 | 0 | 0.039604 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
9ca50720f79e1079a2efc928916b6f128ec24659 | 1,934 | py | Python | tests/test_snappi_lists.py | Rangababu-R/snappi | eaceaa73d705927952fbe456f575959ffc3802db | [
"MIT"
] | 34 | 2021-02-04T16:31:03.000Z | 2022-03-14T08:10:39.000Z | tests/test_snappi_lists.py | Rangababu-R/snappi | eaceaa73d705927952fbe456f575959ffc3802db | [
"MIT"
] | 72 | 2021-02-08T16:26:47.000Z | 2022-03-07T17:01:07.000Z | tests/test_snappi_lists.py | Rangababu-R/snappi | eaceaa73d705927952fbe456f575959ffc3802db | [
"MIT"
] | 2 | 2021-04-19T10:51:53.000Z | 2021-11-17T12:07:17.000Z | import pytest
import snappi
def test_snappi_lists(api):
"""Validate SnappiList object indexing and unpacking
"""
config = api.config()
flows = config.flows.flow(name='1')
assert(flows.__class__ == snappi.FlowIter)
flow = flows[0]
flow.tx_rx.port.tx_name = 'p1'
assert(flow.__class__ ==... | 31.704918 | 69 | 0.628232 | 276 | 1,934 | 4.188406 | 0.188406 | 0.17128 | 0.117647 | 0.086505 | 0.371972 | 0.127163 | 0.127163 | 0.127163 | 0.089965 | 0.089965 | 0 | 0.033058 | 0.18666 | 1,934 | 60 | 70 | 32.233333 | 0.701844 | 0.025336 | 0 | 0.166667 | 0 | 0 | 0.015475 | 0 | 0 | 0 | 0 | 0 | 0.458333 | 1 | 0.020833 | false | 0 | 0.041667 | 0 | 0.0625 | 0.020833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9ca62caa88c6c89a97fe92fc58cd5766241ece80 | 410 | py | Python | imutils/utils/ResizeRight/_setup.py | JacobARose/image-utils | aa0e005c0b4df5198d188b074f4e21f8d8f97962 | [
"MIT"
] | null | null | null | imutils/utils/ResizeRight/_setup.py | JacobARose/image-utils | aa0e005c0b4df5198d188b074f4e21f8d8f97962 | [
"MIT"
] | null | null | null | imutils/utils/ResizeRight/_setup.py | JacobARose/image-utils | aa0e005c0b4df5198d188b074f4e21f8d8f97962 | [
"MIT"
] | null | null | null | # from distutils.core import setup #, find_packages
import sys
from setuptools import find_packages, setup
# print(sys.path)
# print(dir())
setup(
name="ResizeRight",
version="0.1dev",
packages=find_packages(include=["ResizeRight", "resize_right", "resize_right.*"]),
license="Creative Commons Attribu... | 25.625 | 86 | 0.726829 | 49 | 410 | 5.959184 | 0.673469 | 0.123288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005618 | 0.131707 | 410 | 15 | 87 | 27.333333 | 0.814607 | 0.187805 | 0 | 0 | 0 | 0 | 0.381098 | 0.094512 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9ca942fd6d3cc4ace3a2adc95b67863e8d1d56a6 | 4,870 | py | Python | transpile_shr_to_asm.py | N00byEdge/shrush | 04af72d6ca33948bca03bdd92f14174f3da94554 | [
"0BSD"
] | 3 | 2021-11-30T18:42:21.000Z | 2021-12-04T14:29:05.000Z | transpile_shr_to_asm.py | N00byEdge/shrush | 04af72d6ca33948bca03bdd92f14174f3da94554 | [
"0BSD"
] | null | null | null | transpile_shr_to_asm.py | N00byEdge/shrush | 04af72d6ca33948bca03bdd92f14174f3da94554 | [
"0BSD"
] | null | null | null | import sys
def dprint(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)
def read():
c = sys.stdin.read(1)
#dprint(f"Read byte '{c[0]}'")
return c
def clean_read():
while True:
v = read()
#dprint(f"clean_read: '{v[0]}'")
if v == '\n': continue
if v == ' ': ... | 23.52657 | 60 | 0.323819 | 444 | 4,870 | 3.515766 | 0.227477 | 0.10378 | 0.099936 | 0.076233 | 0.327354 | 0.313901 | 0.233184 | 0.214606 | 0.214606 | 0.214606 | 0 | 0.011532 | 0.501437 | 4,870 | 206 | 61 | 23.640777 | 0.631384 | 0.031212 | 0 | 0.473958 | 0 | 0 | 0.306057 | 0 | 0 | 0 | 0.002125 | 0 | 0 | 1 | 0.036458 | false | 0 | 0.005208 | 0.005208 | 0.083333 | 0.15625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9cb16f576ecc27f00f07da74de6bca3c1962920b | 10,762 | py | Python | modules/viewers/TransferFunctionEditor.py | chrisidefix/devide | 99bfe156e710fa47ba7ae88b0ce1eef592a3a439 | [
"BSD-3-Clause"
] | 25 | 2015-08-24T16:05:14.000Z | 2020-12-09T20:07:14.000Z | modules/viewers/TransferFunctionEditor.py | chrisidefix/devide | 99bfe156e710fa47ba7ae88b0ce1eef592a3a439 | [
"BSD-3-Clause"
] | 1 | 2016-02-16T21:18:10.000Z | 2016-02-16T21:18:10.000Z | modules/viewers/TransferFunctionEditor.py | chrisidefix/devide | 99bfe156e710fa47ba7ae88b0ce1eef592a3a439 | [
"BSD-3-Clause"
] | 5 | 2016-02-16T20:05:37.000Z | 2020-01-31T11:27:39.000Z | # - make our own window control for colour-sequence bar
# - this should also have separate (?) line with HSV colour vertices
# - on this line, there should be vertical lines indicating the current
# position of all the opacity transfer function vertices
# - abstract floatcanvas-derived linear function editor into wx_... | 33.736677 | 91 | 0.577402 | 1,252 | 10,762 | 4.701278 | 0.254792 | 0.039755 | 0.046381 | 0.005437 | 0.20914 | 0.156983 | 0.131498 | 0.099558 | 0.08019 | 0.038736 | 0 | 0.083549 | 0.319364 | 10,762 | 318 | 92 | 33.842767 | 0.72 | 0.066809 | 0 | 0.148472 | 0 | 0 | 0.063541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008734 | 0.034935 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9cb7a3015dbeda3ddc4933cf512bf0ee43039f07 | 239 | py | Python | example/drf_integrations_example/integrations/urls.py | yoyowallet/drf-integrations-framework | 7cf5cd28e5aff80c9b1a34b461294f4bd3108fa9 | [
"MIT"
] | 1 | 2020-07-09T11:39:19.000Z | 2020-07-09T11:39:19.000Z | example/drf_integrations_example/integrations/urls.py | yoyowallet/drf-integrations-framework | 7cf5cd28e5aff80c9b1a34b461294f4bd3108fa9 | [
"MIT"
] | 5 | 2020-07-08T11:00:26.000Z | 2021-01-13T09:33:09.000Z | example/drf_integrations_example/integrations/urls.py | yoyowallet/drf-integrations-framework | 7cf5cd28e5aff80c9b1a34b461294f4bd3108fa9 | [
"MIT"
] | 2 | 2021-08-12T12:23:54.000Z | 2021-09-20T06:45:38.000Z | from rest_framework import routers
from . import ecommerce_viewsets
router = routers.DefaultRouter()
router.register(
r"ecommerce/purchase", ecommerce_viewsets.PurchasesViewSet, basename="api-purchases"
)
urlpatterns = router.urls
| 19.916667 | 88 | 0.803347 | 26 | 239 | 7.269231 | 0.692308 | 0.179894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112971 | 239 | 11 | 89 | 21.727273 | 0.891509 | 0 | 0 | 0 | 0 | 0 | 0.129707 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9cc1a4ffc5cb7ba56d4f9aa45b44de80507112f1 | 1,609 | py | Python | tools/reval_discovery.py | AdilSiddiqui131/OIM | eaddb9dadff3bb2e9edcdbf3a4713398c25402ac | [
"MIT"
] | 231 | 2017-03-06T13:21:24.000Z | 2022-03-01T02:49:36.000Z | tools/reval_discovery.py | AdilSiddiqui131/OIM | eaddb9dadff3bb2e9edcdbf3a4713398c25402ac | [
"MIT"
] | 15 | 2017-05-23T07:20:22.000Z | 2021-12-10T21:14:14.000Z | tools/reval_discovery.py | AdilSiddiqui131/OIM | eaddb9dadff3bb2e9edcdbf3a4713398c25402ac | [
"MIT"
] | 58 | 2017-05-12T02:22:02.000Z | 2021-08-24T14:16:57.000Z | #!/usr/bin/env python
# --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# --------------------------------------------------------
"""Reval = re-eval. Re-evaluate saved detections... | 29.796296 | 76 | 0.610938 | 200 | 1,609 | 4.705 | 0.5 | 0.06695 | 0.054198 | 0.034006 | 0.112646 | 0.061637 | 0.061637 | 0 | 0 | 0 | 0 | 0.009441 | 0.210068 | 1,609 | 53 | 77 | 30.358491 | 0.730921 | 0.159105 | 0 | 0 | 0 | 0 | 0.14638 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1875 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9cc2e97671c4f67df0359a32578f80893871a623 | 2,439 | py | Python | test/arch/ia32/test_mov_add.py | Flopz-Project/flopz | eb470811e4a8be5e5d625209b0f8eb7ccd1d5da3 | [
"Apache-2.0"
] | 7 | 2021-11-19T15:53:58.000Z | 2022-03-28T03:38:52.000Z | test/arch/ia32/test_mov_add.py | Flopz-Project/flopz | eb470811e4a8be5e5d625209b0f8eb7ccd1d5da3 | [
"Apache-2.0"
] | null | null | null | test/arch/ia32/test_mov_add.py | Flopz-Project/flopz | eb470811e4a8be5e5d625209b0f8eb7ccd1d5da3 | [
"Apache-2.0"
] | 1 | 2022-03-25T12:44:01.000Z | 2022-03-25T12:44:01.000Z | from flopz.arch.ia32.ia32_generic_arch import IA32GenericArchitecture
from flopz.arch.ia32.auto_instructions import *
import pytest
def test_mov():
arch = IA32GenericArchitecture()
""" Reg to Reg """
mov64 = Mov(arch.rax, arch.rbx)
assert(mov64.bytes() == b'\x48\x89\xd8')
assert(mov64.expand... | 31.269231 | 73 | 0.586716 | 398 | 2,439 | 3.572864 | 0.298995 | 0.07173 | 0.037975 | 0.033755 | 0.147679 | 0.056259 | 0 | 0 | 0 | 0 | 0 | 0.160796 | 0.196802 | 2,439 | 77 | 74 | 31.675325 | 0.565084 | 0 | 0 | 0.044444 | 0 | 0 | 0.168071 | 0.097118 | 0 | 0 | 0.015965 | 0 | 0.466667 | 1 | 0.044444 | false | 0 | 0.066667 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9cc3c00c30888e277328b4367f057d8d32f85c5f | 1,609 | py | Python | backend/orders/api.py | hbutau/product-shop | dfca5d437cfa9b591283e8ca2722d8f10a71ff3f | [
"MIT"
] | null | null | null | backend/orders/api.py | hbutau/product-shop | dfca5d437cfa9b591283e8ca2722d8f10a71ff3f | [
"MIT"
] | null | null | null | backend/orders/api.py | hbutau/product-shop | dfca5d437cfa9b591283e8ca2722d8f10a71ff3f | [
"MIT"
] | null | null | null | from typing import List
from django.shortcuts import get_object_or_404
from ninja import Router
from .models import Order, LineItem
from .schema import OrderSchemaIn, OrderSchemaOut
router = Router()
@router.post("")
def create_order(request, payload: OrderSchemaIn):
order_data = payload.dict()
lineitems =... | 30.942308 | 132 | 0.720945 | 220 | 1,609 | 5.063636 | 0.272727 | 0.081688 | 0.032316 | 0.037702 | 0.118492 | 0.098743 | 0.098743 | 0.098743 | 0.098743 | 0.098743 | 0 | 0.006603 | 0.15289 | 1,609 | 51 | 133 | 31.54902 | 0.810712 | 0.011809 | 0 | 0.052632 | 0 | 0 | 0.06801 | 0 | 0 | 0 | 0 | 0.019608 | 0 | 1 | 0.131579 | false | 0 | 0.131579 | 0 | 0.394737 | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9cc962c91c174eb99c9d0d38206699c4db89bb73 | 1,937 | py | Python | src/tests/sql_regression/test_python.py | margrit2103/github-actions-for-ci | 3098130e92d4ef2bca31049ef3240663faeac540 | [
"MIT"
] | null | null | null | src/tests/sql_regression/test_python.py | margrit2103/github-actions-for-ci | 3098130e92d4ef2bca31049ef3240663faeac540 | [
"MIT"
] | 16 | 2022-01-14T10:48:37.000Z | 2022-01-14T15:04:14.000Z | src/tests/sql_regression/test_python.py | margrit2103/github-actions-for-ci | 3098130e92d4ef2bca31049ef3240663faeac540 | [
"MIT"
] | null | null | null | from datetime import datetime
import sys
import getopt
import glob
import psycopg2
def get_parameters():
__all_pars, remainder = getopt.getopt ( sys.argv[1:], '', ['output-dir=','db-tag=','test-dir='] )
_parameters = {'output-dir':'.'}
print ( f"Parameters {__all_pars}" )
for opt, arg in __all_pars... | 33.396552 | 103 | 0.528653 | 215 | 1,937 | 4.530233 | 0.367442 | 0.073922 | 0.078029 | 0.020534 | 0.057495 | 0.057495 | 0 | 0 | 0 | 0 | 0 | 0.006865 | 0.32318 | 1,937 | 58 | 104 | 33.396552 | 0.736079 | 0.010842 | 0 | 0.037736 | 0 | 0 | 0.213577 | 0.081984 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.037736 | 0.09434 | null | null | 0.09434 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9cca5b4ab274ac08ee8b3606f46a566d37fb94de | 1,396 | py | Python | elstruct/elstruct/run.py | sjklipp/autoio | e2b471e9c9dec933319c98a30d4d519ca5d47645 | [
"Apache-2.0"
] | null | null | null | elstruct/elstruct/run.py | sjklipp/autoio | e2b471e9c9dec933319c98a30d4d519ca5d47645 | [
"Apache-2.0"
] | 1 | 2022-02-15T19:35:14.000Z | 2022-02-15T19:35:14.000Z | elstruct/elstruct/run.py | sjklipp/autoio | e2b471e9c9dec933319c98a30d4d519ca5d47645 | [
"Apache-2.0"
] | 13 | 2020-06-24T05:21:11.000Z | 2021-05-05T19:58:30.000Z | """ core run function
"""
from autorun import from_input_string
def direct(input_writer, script_str, run_dir, prog,
geo, charge, mult, method, basis, **kwargs):
""" Generates an input file for an electronic structure job and
runs it directly.
:param input_writer: elstruct writer modul... | 33.238095 | 76 | 0.657593 | 179 | 1,396 | 5 | 0.357542 | 0.106145 | 0.073743 | 0.03352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000987 | 0.274355 | 1,396 | 41 | 77 | 34.04878 | 0.882527 | 0.56447 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9cd59ba896b9335d3d76f2dbb360ece1f6b00d96 | 353 | py | Python | debate/api/serializers.py | steventimberman/debateIt | 32b17552894b2c54a5f57c36257f4b6bc8846711 | [
"MIT"
] | null | null | null | debate/api/serializers.py | steventimberman/debateIt | 32b17552894b2c54a5f57c36257f4b6bc8846711 | [
"MIT"
] | 4 | 2017-08-16T03:50:16.000Z | 2017-08-22T05:41:04.000Z | debate/api/serializers.py | steventimberman/masterDebater | 32b17552894b2c54a5f57c36257f4b6bc8846711 | [
"MIT"
] | 1 | 2020-11-04T08:39:22.000Z | 2020-11-04T08:39:22.000Z | from rest_framework.serializers import ModelSerializer
from debate.models import DebateTopic
class DebateTopicSerializer(ModelSerializer):
class Meta:
model = DebateTopic
fields = [
'topic',
'description',
'timestamp',
'photo',
'article_U... | 23.533333 | 54 | 0.566572 | 26 | 353 | 7.615385 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.356941 | 353 | 15 | 55 | 23.533333 | 0.872247 | 0 | 0 | 0 | 0 | 0 | 0.127119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.307692 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9cd9036d26a76b999ae345cf5a7f1b85aa5ac041 | 1,550 | py | Python | bluebrain/repo-bluebrain/packages/py-bluepy/package.py | BlueBrain/Spack | dc328512c70e182f3c24bb0ce64fa3586482bdf1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | bluebrain/repo-bluebrain/packages/py-bluepy/package.py | BlueBrain/Spack | dc328512c70e182f3c24bb0ce64fa3586482bdf1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | bluebrain/repo-bluebrain/packages/py-bluepy/package.py | BlueBrain/Spack | dc328512c70e182f3c24bb0ce64fa3586482bdf1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | # Copyright 2013-2018 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyBluepy(PythonPackage):
"""Pythonic Blue Brain data access API"""
homepage = "https:... | 40.789474 | 82 | 0.644516 | 245 | 1,550 | 4.020408 | 0.387755 | 0.109645 | 0.146193 | 0.212183 | 0.381726 | 0.344162 | 0.24264 | 0.163452 | 0.129949 | 0.060914 | 0 | 0.069592 | 0.147097 | 1,550 | 37 | 83 | 41.891892 | 0.675492 | 0.181935 | 0 | 0 | 0 | 0 | 0.410175 | 0.222576 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.130435 | 0 | 0.347826 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9cd98462cd7362979b98ed98418b51b3529bb48d | 4,118 | py | Python | scripts/download_log_archive.py | mmurayama/fujitsu-redfish-samples | 211d4b4d017c3402b845fde81e997c4065fd0853 | [
"MIT"
] | 7 | 2020-08-16T19:02:31.000Z | 2022-03-22T08:37:34.000Z | scripts/download_log_archive.py | amitabhmca/fujitsu-redfish-samples | 211d4b4d017c3402b845fde81e997c4065fd0853 | [
"MIT"
] | 1 | 2020-08-07T09:22:36.000Z | 2020-08-13T21:45:43.000Z | scripts/download_log_archive.py | amitabhmca/fujitsu-redfish-samples | 211d4b4d017c3402b845fde81e997c4065fd0853 | [
"MIT"
] | 3 | 2021-09-06T11:27:08.000Z | 2021-11-03T12:12:39.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Sample script to download a log archive via iRMC Redfish API
in Fujitsu PRIMERGY
[Usage]
- Download a log archive
$ python download_log_archive.py -i 192.168.10.10 -u admin -p admin -f archive.zip
"""
import sys
import time
import argparse
import requests
i... | 32.944 | 145 | 0.63696 | 509 | 4,118 | 5.027505 | 0.341847 | 0.039078 | 0.017194 | 0.022274 | 0.181712 | 0.14068 | 0.14068 | 0.14068 | 0.10551 | 0.10551 | 0 | 0.016018 | 0.226809 | 4,118 | 124 | 146 | 33.209677 | 0.787688 | 0.09592 | 0 | 0.179775 | 0 | 0.011236 | 0.292511 | 0.011625 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022472 | false | 0.078652 | 0.067416 | 0 | 0.089888 | 0.078652 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9cdf431907bda82780031ffc908ad4d3cd01a527 | 1,041 | py | Python | evap/evaluation/migrations/0041_populate_semester_is_archived.py | felixrindt/EvaP | fe65fcc511cc942695ce1edbaab170894f0d37b1 | [
"MIT"
] | 29 | 2020-02-28T23:03:41.000Z | 2022-02-19T09:29:36.000Z | evap/evaluation/migrations/0041_populate_semester_is_archived.py | felixrindt/EvaP | fe65fcc511cc942695ce1edbaab170894f0d37b1 | [
"MIT"
] | 737 | 2015-01-02T17:43:25.000Z | 2018-12-10T20:45:10.000Z | evap/evaluation/migrations/0041_populate_semester_is_archived.py | felixrindt/EvaP | fe65fcc511cc942695ce1edbaab170894f0d37b1 | [
"MIT"
] | 83 | 2015-01-14T12:39:41.000Z | 2018-10-29T16:36:43.000Z | # Generated by Django 1.9.1 on 2016-02-20 21:11
from django.db import migrations
def is_course_archived(course):
assert (course._participant_count is None) == (course._voter_count is None)
return course._participant_count is not None
def is_semester_archived(semester):
if semester.course_set.count() ==... | 29.742857 | 110 | 0.737752 | 136 | 1,041 | 5.345588 | 0.389706 | 0.096286 | 0.066025 | 0.086658 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023121 | 0.169068 | 1,041 | 34 | 111 | 30.617647 | 0.817341 | 0.043228 | 0 | 0 | 1 | 0 | 0.057344 | 0.029175 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.136364 | false | 0 | 0.045455 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9ce20d6d4410bce5ad4ba17ff2482e6b62ec847e | 4,075 | py | Python | flightrl/rpg_baselines/ppo/ppo2_test.py | MarioBonse/flightmare | feb866a997025436a0b5d71ce35f04eb2a115764 | [
"MIT"
] | 596 | 2020-08-12T17:37:51.000Z | 2022-03-31T16:20:48.000Z | flightrl/rpg_baselines/ppo/ppo2_test.py | rodgeliao/flightmare | 4b8f53515914afe268bf89eb93a15fc33547e6b2 | [
"MIT"
] | 142 | 2020-09-02T12:55:43.000Z | 2022-03-27T07:19:10.000Z | flightrl/rpg_baselines/ppo/ppo2_test.py | rodgeliao/flightmare | 4b8f53515914afe268bf89eb93a15fc33547e6b2 | [
"MIT"
] | 268 | 2020-09-03T05:45:45.000Z | 2022-03-31T12:17:08.000Z | import matplotlib.pyplot as plt
import numpy as np
import matplotlib.gridspec as gridspec
def test_model(env, model, render=False):
#
fig = plt.figure(figsize=(18, 12), tight_layout=True)
gs = gridspec.GridSpec(5, 12)
#
ax_x = fig.add_subplot(gs[0, 0:4])
ax_y = fig.add_subplot(gs[0, 4:8])
... | 38.443396 | 78 | 0.542577 | 642 | 4,075 | 3.264798 | 0.15109 | 0.078721 | 0.122137 | 0.183206 | 0.490458 | 0.357347 | 0.357347 | 0.343989 | 0.320611 | 0.289122 | 0 | 0.046636 | 0.263313 | 4,075 | 105 | 79 | 38.809524 | 0.651566 | 0 | 0 | 0.162791 | 0 | 0 | 0.07391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011628 | false | 0 | 0.034884 | 0 | 0.046512 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9ce4895b2a9c2ab57cbf2b1a0dcdffa7645e83dd | 1,483 | py | Python | Aula 03/While.py | IsaacPSilva/LetsCode | 64396ee9fd0ad395598c74c3727a614261e5dd50 | [
"MIT"
] | null | null | null | Aula 03/While.py | IsaacPSilva/LetsCode | 64396ee9fd0ad395598c74c3727a614261e5dd50 | [
"MIT"
] | null | null | null | Aula 03/While.py | IsaacPSilva/LetsCode | 64396ee9fd0ad395598c74c3727a614261e5dd50 | [
"MIT"
] | null | null | null | ### Malha de repetição (loop) - While
'''
O while é bastante parecido com um 'if': ele possui uma expressão,
e é executado caso ela seja verdadeira.
Mas o if é executado apenas uma vez e depois o código segue adiante.
O while não: ao final de sua execução, ele torna a testar a expressão,
e caso ela seja verdadeira, e... | 30.265306 | 77 | 0.705327 | 235 | 1,483 | 4.451064 | 0.52766 | 0.042065 | 0.021033 | 0.040153 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00764 | 0.205664 | 1,483 | 48 | 78 | 30.895833 | 0.880306 | 0.271746 | 0 | 0 | 0 | 0 | 0.284965 | 0 | 0 | 0 | 0 | 0.020833 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.157895 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9ce5893db1a6f4bf754faa8f56d1a807115b784c | 7,624 | py | Python | pysnmp-with-texts/TRAPEZE-NETWORKS-RF-BLACKLIST-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/TRAPEZE-NETWORKS-RF-BLACKLIST-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/TRAPEZE-NETWORKS-RF-BLACKLIST-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module TRAPEZE-NETWORKS-RF-BLACKLIST-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TRAPEZE-NETWORKS-RF-BLACKLIST-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:27:23 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using P... | 129.220339 | 777 | 0.799449 | 809 | 7,624 | 7.53152 | 0.31026 | 0.033481 | 0.058592 | 0.007878 | 0.259642 | 0.13097 | 0.13097 | 0.11784 | 0.11784 | 0.115542 | 0 | 0.051578 | 0.089586 | 7,624 | 58 | 778 | 131.448276 | 0.82625 | 0.047219 | 0 | 0.0625 | 0 | 0.104167 | 0.376844 | 0.053618 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.145833 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9cebbf464d37981436bfea0d65479f391808b3f2 | 16,685 | py | Python | printing/main.py | notatallshaw/Grail-0.6 | 2b850a4a3dcfcb6cb4cf891f2c2f9ee0509c7b43 | [
"CNRI-Jython"
] | null | null | null | printing/main.py | notatallshaw/Grail-0.6 | 2b850a4a3dcfcb6cb4cf891f2c2f9ee0509c7b43 | [
"CNRI-Jython"
] | null | null | null | printing/main.py | notatallshaw/Grail-0.6 | 2b850a4a3dcfcb6cb4cf891f2c2f9ee0509c7b43 | [
"CNRI-Jython"
] | null | null | null | """HTML to PostScript translator.
This module uses the AbstractWriter class interface defined by in the
standard formatter module to generate PostScript corresponding to a
stream of HTML text. The HTMLParser class scans the HTML stream,
generating high-level calls to an AbstractWriter object.
Note that this module c... | 33.039604 | 79 | 0.534013 | 1,875 | 16,685 | 4.637333 | 0.2448 | 0.016906 | 0.017596 | 0.012421 | 0.111788 | 0.045543 | 0.035883 | 0.008281 | 0.008281 | 0 | 0 | 0.005236 | 0.359005 | 16,685 | 504 | 80 | 33.105159 | 0.807761 | 0.090261 | 0 | 0.175182 | 1 | 0 | 0.127321 | 0.001718 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053528 | false | 0.004866 | 0.06326 | 0.014599 | 0.175182 | 0.121655 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9cf3fc37f7f04600fbce7f4bba1111605e0572fe | 3,154 | py | Python | sonic-pde-tests/sonic_pde_tests/test_cpld.py | wbschwar/sonic-platform-pdk-pde | 05273127d9244ace516c950ad3aaf05fc2782bbb | [
"Apache-2.0"
] | 1 | 2020-06-01T14:56:11.000Z | 2020-06-01T14:56:11.000Z | sonic-pde-tests/sonic_pde_tests/test_cpld.py | wbschwar/sonic-platform-pdk-pde | 05273127d9244ace516c950ad3aaf05fc2782bbb | [
"Apache-2.0"
] | 3 | 2019-09-05T00:06:56.000Z | 2020-09-29T02:04:54.000Z | sonic-pde-tests/sonic_pde_tests/test_cpld.py | wbschwar/sonic-platform-pdk-pde | 05273127d9244ace516c950ad3aaf05fc2782bbb | [
"Apache-2.0"
] | 11 | 2019-08-20T13:59:10.000Z | 2022-03-03T06:53:47.000Z | import pytest
import sys
import imp
import subprocess
import time
# Global platform-specific cpldutil class instance
platform_cpldutil = None
# Loads platform specific cpldutil module from source
def load_platform_cpldutil(json_config_data):
global platform_cpldutil
if platform_cpldutil is not... | 34.659341 | 129 | 0.612555 | 370 | 3,154 | 4.975676 | 0.275676 | 0.130364 | 0.091255 | 0.05975 | 0.379685 | 0.273221 | 0.181966 | 0.107007 | 0.072787 | 0.072787 | 0 | 0.006189 | 0.282815 | 3,154 | 90 | 130 | 35.044444 | 0.807692 | 0.031706 | 0 | 0.114286 | 0 | 0 | 0.194143 | 0.013557 | 0 | 0 | 0 | 0 | 0.057143 | 0 | null | null | 0 | 0.142857 | null | null | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9cfafad35a86b87b8774690a01ef5d7dfe619acf | 4,754 | py | Python | Diplomacy/commands.py | CScarame/DiplomacyBot | c30be1fdd63438592f34c8f03238afcc58f8609e | [
"MIT"
] | 2 | 2020-05-05T19:53:59.000Z | 2020-08-17T06:29:49.000Z | Diplomacy/commands.py | CScarame/DiplomacyBot | c30be1fdd63438592f34c8f03238afcc58f8609e | [
"MIT"
] | 14 | 2020-05-03T20:57:09.000Z | 2021-04-30T21:27:20.000Z | Diplomacy/commands.py | CScarame/DiplomacyBot | c30be1fdd63438592f34c8f03238afcc58f8609e | [
"MIT"
] | 1 | 2020-09-11T23:27:52.000Z | 2020-09-11T23:27:52.000Z | #############
# Diplomacy turn.py
# Chris Scaramella
# Set of possible commands that can be sent.
#############
from Diplomacy.types import UnitType, OrderValidationError
from Diplomacy.province import ProvinceBase, LandProvince, WaterProvince, CoastProvince, TwoCoastProvince
from Diplomacy.unit import Unit
... | 34.449275 | 115 | 0.616323 | 524 | 4,754 | 5.450382 | 0.198473 | 0.053221 | 0.026961 | 0.036765 | 0.409664 | 0.330532 | 0.25035 | 0.25035 | 0.10119 | 0.084034 | 0 | 0 | 0.285444 | 4,754 | 138 | 116 | 34.449275 | 0.840742 | 0.142406 | 0 | 0.454545 | 0 | 0 | 0.005131 | 0 | 0 | 0 | 0 | 0.007246 | 0 | 1 | 0.222222 | false | 0 | 0.030303 | 0.020202 | 0.494949 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9cfd6ff3137e152a0038d1048b64ba5a6171febf | 1,362 | py | Python | pycroft/model/session.py | JuKu/pycroft | 15595f9b4327da5c52c77174def73660226da7dc | [
"Apache-2.0"
] | null | null | null | pycroft/model/session.py | JuKu/pycroft | 15595f9b4327da5c52c77174def73660226da7dc | [
"Apache-2.0"
] | null | null | null | pycroft/model/session.py | JuKu/pycroft | 15595f9b4327da5c52c77174def73660226da7dc | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2015 The Pycroft Authors. See the AUTHORS file.
# This file is part of the Pycroft project and licensed under the terms of
# the Apache License, Version 2.0. See the LICENSE file for details.
"""
pycroft.model.session
~~~~~~~~~~~~~~
This module contains the session s... | 24.763636 | 77 | 0.693098 | 160 | 1,362 | 5.76875 | 0.55625 | 0.032503 | 0.056338 | 0.062839 | 0.108342 | 0.108342 | 0.108342 | 0.108342 | 0 | 0 | 0 | 0.01011 | 0.201175 | 1,362 | 54 | 78 | 25.222222 | 0.838235 | 0.276799 | 0 | 0.074074 | 0 | 0 | 0.087774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.037037 | 0.111111 | 0.037037 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
140749c9d714455f295f40f1143ddcd5613baff0 | 2,159 | py | Python | settings.py | guoqiao/graphvizweb | d9215b3384b064c5a1b77889d28024bbab73194f | [
"MIT"
] | null | null | null | settings.py | guoqiao/graphvizweb | d9215b3384b064c5a1b77889d28024bbab73194f | [
"MIT"
] | null | null | null | settings.py | guoqiao/graphvizweb | d9215b3384b064c5a1b77889d28024bbab73194f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from os.path import abspath, dirname, join
import sys
BASE_DIR = dirname(abspath(__file__))
print BASE_DIR
APPS_DIR = join(BASE_DIR, 'apps')
sys.path.insert(0, APPS_DIR)
WWW_DIR = join(BASE_DIR, 'www')
STATIC_ROOT = join(WWW_DIR, 'st... | 23.988889 | 70 | 0.669755 | 232 | 2,159 | 6.043103 | 0.487069 | 0.11127 | 0.03923 | 0.019971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008032 | 0.192682 | 2,159 | 89 | 71 | 24.258427 | 0.796328 | 0.049097 | 0 | 0.029851 | 0 | 0 | 0.480976 | 0.390244 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.044776 | null | null | 0.029851 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
14077b419d6dbf36ea46f83be9a4003121c4101b | 2,787 | py | Python | src/restic_compose_backup/containers_minecraft.py | Silthus/restic-compose-backup | f8ab8b9386695ea5e988e9cb61f29039215ca7a6 | [
"MIT"
] | null | null | null | src/restic_compose_backup/containers_minecraft.py | Silthus/restic-compose-backup | f8ab8b9386695ea5e988e9cb61f29039215ca7a6 | [
"MIT"
] | null | null | null | src/restic_compose_backup/containers_minecraft.py | Silthus/restic-compose-backup | f8ab8b9386695ea5e988e9cb61f29039215ca7a6 | [
"MIT"
] | null | null | null | import os
import logging
from pathlib import Path
from restic_compose_backup.containers import Container
from restic_compose_backup.config import config, Config
from restic_compose_backup import (
commands,
restic,
rcon
)
from restic_compose_backup import utils
logger = logging.getLogger(__name__)
clas... | 35.278481 | 107 | 0.588446 | 310 | 2,787 | 5.13871 | 0.33871 | 0.026365 | 0.043942 | 0.056497 | 0.241682 | 0.122411 | 0.084746 | 0 | 0 | 0 | 0 | 0.001042 | 0.311446 | 2,787 | 79 | 108 | 35.278481 | 0.829078 | 0.066021 | 0 | 0.2 | 0 | 0 | 0.151235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.066667 | 0.116667 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1407fa2f533fab18a7e010b0b173bd79a4b2df6c | 1,030 | py | Python | ddf_utils/chef/procedure/merge_entity.py | semio/ddf_utils | e10c4cb6dc7722415a5863579a552cc7b7e3668d | [
"MIT"
] | 2 | 2016-11-23T12:28:15.000Z | 2019-03-04T16:06:25.000Z | ddf_utils/chef/procedure/merge_entity.py | semio/ddf_utils | e10c4cb6dc7722415a5863579a552cc7b7e3668d | [
"MIT"
] | 124 | 2016-07-14T13:39:41.000Z | 2021-12-24T01:45:23.000Z | ddf_utils/chef/procedure/merge_entity.py | semio/ddf_utils | e10c4cb6dc7722415a5863579a552cc7b7e3668d | [
"MIT"
] | 1 | 2016-11-30T23:42:56.000Z | 2016-11-30T23:42:56.000Z | # -*- coding: utf-8 -*-
"""merge_entity procedure for recipes"""
import logging
from typing import List
from .. helpers import debuggable
from .. model.ingredient import DataPointIngredient
from .. model.chef import Chef
logger = logging.getLogger('merge_entity')
@debuggable
def merge_entity(chef: Chef, ingredie... | 30.294118 | 102 | 0.7 | 119 | 1,030 | 5.92437 | 0.470588 | 0.046809 | 0.062411 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005995 | 0.190291 | 1,030 | 33 | 103 | 31.212121 | 0.839329 | 0.126214 | 0 | 0 | 0 | 0 | 0.067568 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 1 | 0.055556 | false | 0 | 0.333333 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
140a92db0ba293793b0676cb47ec96dafe4d0ac4 | 1,878 | py | Python | main/forms.py | olnikiforov/djangoProject | b8628da12ea6d462ab844e326663990a46f03c4d | [
"MIT"
] | null | null | null | main/forms.py | olnikiforov/djangoProject | b8628da12ea6d462ab844e326663990a46f03c4d | [
"MIT"
] | null | null | null | main/forms.py | olnikiforov/djangoProject | b8628da12ea6d462ab844e326663990a46f03c4d | [
"MIT"
] | null | null | null | """Forms for site."""
from django import forms
from django.forms import ModelForm, Select, Textarea, TextInput
from .models import Author, Comments, Post, Subscriber
class PostForm(ModelForm):
"""Postform class."""
class Meta:
"""Meta class."""
model = Post
fields = ['title', 'descr... | 24.38961 | 63 | 0.486688 | 148 | 1,878 | 6.121622 | 0.358108 | 0.077263 | 0.108168 | 0.162252 | 0.338852 | 0.181015 | 0 | 0 | 0 | 0 | 0 | 0 | 0.372204 | 1,878 | 76 | 64 | 24.710526 | 0.768448 | 0.055911 | 0 | 0.301887 | 0 | 0 | 0.214162 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.056604 | 0 | 0.188679 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1419076e2849f740278ff9e55d0b4a7edd833063 | 5,033 | py | Python | theanet/layer/convpool.py | rakeshvar/theanet | ff77e23c2e823d2ffa91e79bfb01ac97a637eab7 | [
"Apache-2.0"
] | 55 | 2015-01-08T11:43:51.000Z | 2021-01-24T05:25:37.000Z | theanet/layer/convpool.py | rakeshvar/theanet | ff77e23c2e823d2ffa91e79bfb01ac97a637eab7 | [
"Apache-2.0"
] | 2 | 2015-07-04T07:30:39.000Z | 2018-11-02T17:12:29.000Z | theanet/layer/convpool.py | rakeshvar/theanet | ff77e23c2e823d2ffa91e79bfb01ac97a637eab7 | [
"Apache-2.0"
] | 31 | 2015-01-15T22:39:30.000Z | 2017-09-14T00:40:58.000Z | import math
import theano as th
import theano.tensor as tt
import theano.tensor.nnet as nnconv
from theano.tensor.signal import pool
from .layer import Layer, activation_by_name
from .weights import init_wb
float_x = th.config.floatX
# ############################## ConvPool Layer ################################
c... | 34.710345 | 92 | 0.53487 | 635 | 5,033 | 4.015748 | 0.207874 | 0.057647 | 0.042353 | 0.023529 | 0.312157 | 0.243529 | 0.226275 | 0.196471 | 0.131765 | 0.094118 | 0 | 0.013281 | 0.341744 | 5,033 | 144 | 93 | 34.951389 | 0.756414 | 0.116829 | 0 | 0.170213 | 0 | 0.010638 | 0.079857 | 0 | 0 | 0 | 0 | 0.013889 | 0.031915 | 1 | 0.06383 | false | 0 | 0.074468 | 0.031915 | 0.202128 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
141b1ef1d3355d3cc3b275f7ee0992ef87dfeef3 | 550 | py | Python | test/test_edit_contact.py | Gargamellos/python_training | 4af557b023c17e9bee0d64f3dce7a3546cc2ee78 | [
"Apache-2.0"
] | null | null | null | test/test_edit_contact.py | Gargamellos/python_training | 4af557b023c17e9bee0d64f3dce7a3546cc2ee78 | [
"Apache-2.0"
] | null | null | null | test/test_edit_contact.py | Gargamellos/python_training | 4af557b023c17e9bee0d64f3dce7a3546cc2ee78 | [
"Apache-2.0"
] | null | null | null | from model.contact import Contact
def test_edit_first_contact(app):
app.contact.edit_first_contact(Contact(name ="edit", middlename ="edit", surname ="edit", nick ="edit", title ="edit",
company = "edit", address = "edit", homephone = "edit", mobilephone = "edit",
... | 61.111111 | 122 | 0.518182 | 53 | 550 | 5.283019 | 0.509434 | 0.064286 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010929 | 0.334545 | 550 | 8 | 123 | 68.75 | 0.754098 | 0 | 0 | 0 | 0 | 0 | 0.130909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
141f4b5fa831587ad854c2c36a7c592e925f84ff | 1,630 | py | Python | blood/migrations/0001_initial.py | Timoh97/Blood-G | f19be59ac2d6cf7978007e1faa88487c3a7c1710 | [
"MIT"
] | null | null | null | blood/migrations/0001_initial.py | Timoh97/Blood-G | f19be59ac2d6cf7978007e1faa88487c3a7c1710 | [
"MIT"
] | null | null | null | blood/migrations/0001_initial.py | Timoh97/Blood-G | f19be59ac2d6cf7978007e1faa88487c3a7c1710 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2022-01-21 15:51
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('donor', '0002_auto_20210213_1602'),
('patient', '0001_initial'),
]
operations = [
... | 39.756098 | 136 | 0.591411 | 164 | 1,630 | 5.731707 | 0.420732 | 0.079787 | 0.076596 | 0.102128 | 0.459574 | 0.459574 | 0.459574 | 0.459574 | 0.459574 | 0.459574 | 0 | 0.0401 | 0.265644 | 1,630 | 40 | 137 | 40.75 | 0.745196 | 0.027607 | 0 | 0.424242 | 1 | 0 | 0.130133 | 0.014529 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.060606 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
142519a91b4b4984ea5e8049c15c09e9828be0d9 | 250 | py | Python | pichtest.py | PeterWinzell/RadarRPISwitch | 2d7554b5040bbbe55c695e63493c4be584ee34a1 | [
"MIT"
] | null | null | null | pichtest.py | PeterWinzell/RadarRPISwitch | 2d7554b5040bbbe55c695e63493c4be584ee34a1 | [
"MIT"
] | null | null | null | pichtest.py | PeterWinzell/RadarRPISwitch | 2d7554b5040bbbe55c695e63493c4be584ee34a1 | [
"MIT"
] | null | null | null | import os
import subprocess
import sys
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setup(6,GPIO.IN)
while True:
val = GPIO.input(6)
print(val)
if val==1:
break;
time.sleep(0.2)
print(' finished ' )
| 13.157895 | 23 | 0.644 | 40 | 250 | 4.025 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 0.24 | 250 | 18 | 24 | 13.888889 | 0.821053 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.357143 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1427b78629ea7d8f89e0598dfeeff3ca9cfb8d8f | 2,907 | py | Python | qa327_test/integration/test_integration.py | 15vrs/cmpe-327 | aeb1de94604eb0d151ffdd9431b4149f2ec30f9c | [
"MIT"
] | null | null | null | qa327_test/integration/test_integration.py | 15vrs/cmpe-327 | aeb1de94604eb0d151ffdd9431b4149f2ec30f9c | [
"MIT"
] | null | null | null | qa327_test/integration/test_integration.py | 15vrs/cmpe-327 | aeb1de94604eb0d151ffdd9431b4149f2ec30f9c | [
"MIT"
] | null | null | null | import pytest
from seleniumbase import BaseCase
from qa327_test.conftest import base_url
from qa327.models import db, User, Ticket
import qa327.backend as bn
# integration testing: the test case interacts with the
# browser, and test the whole system (frontend+backend).
test_user = User(
email='test_frontend@te... | 33.034091 | 104 | 0.640179 | 366 | 2,907 | 4.942623 | 0.265027 | 0.053068 | 0.033168 | 0.041459 | 0.369265 | 0.305141 | 0.246545 | 0.222222 | 0.135987 | 0.088447 | 0 | 0.011216 | 0.23323 | 2,907 | 87 | 105 | 33.413793 | 0.800359 | 0.142415 | 0 | 0.328358 | 0 | 0 | 0.162819 | 0.017821 | 0 | 0 | 0 | 0 | 0.119403 | 1 | 0.089552 | false | 0.059701 | 0.074627 | 0 | 0.179104 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1427dc6d529f113f16c6ba1a5c278a6dd3a600f1 | 4,407 | py | Python | server/settings.py | AppCraftTeam/appcraft-logs | 5bd7003bda1303b675ff935b5388d217618cc368 | [
"BSD-3-Clause"
] | null | null | null | server/settings.py | AppCraftTeam/appcraft-logs | 5bd7003bda1303b675ff935b5388d217618cc368 | [
"BSD-3-Clause"
] | null | null | null | server/settings.py | AppCraftTeam/appcraft-logs | 5bd7003bda1303b675ff935b5388d217618cc368 | [
"BSD-3-Clause"
] | null | null | null | import os
from datetime import timedelta
from pathlib import Path
from dotenv import load_dotenv
BASE_DIR = Path(__file__).resolve().parent.parent
load_dotenv(dotenv_path=BASE_DIR / '.env')
SECRET_KEY = os.getenv('SECRET_KEY')
DEBUG = True if os.getenv('DEBUG') in ['true', 'True', True] else False
INSTALLED_APPS ... | 27.54375 | 91 | 0.692081 | 442 | 4,407 | 6.656109 | 0.393665 | 0.075119 | 0.040449 | 0.019035 | 0.104691 | 0.084976 | 0.017675 | 0 | 0 | 0 | 0 | 0.008237 | 0.173587 | 4,407 | 159 | 92 | 27.716981 | 0.799561 | 0.019741 | 0 | 0.03252 | 0 | 0 | 0.536998 | 0.417073 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.04878 | 0.03252 | 0 | 0.03252 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.