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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
929c12a03f51b42b1d18466bb52a5ffe229fa164 | 1,662 | py | Python | src/heprnhci/db/mongo.py | i-shah/heprn-hci-nam | 2fffeb773e01153d1b91314db59c2411a2c34858 | [
"MIT"
] | null | null | null | src/heprnhci/db/mongo.py | i-shah/heprn-hci-nam | 2fffeb773e01153d1b91314db59c2411a2c34858 | [
"MIT"
] | 4 | 2021-06-08T21:52:15.000Z | 2022-03-12T00:36:55.000Z | src/heprnhci/db/mongo.py | i-shah/heprn-hci-nam | 2fffeb773e01153d1b91314db59c2411a2c34858 | [
"MIT"
] | null | null | null | import getpass
import pymongo
import os
import mongoengine
def openMongo(host="pb.epa.gov",user=None,passwd=None,db=None,auth=True):
if auth:
if not user or passwd:
user,passwd = open(os.getenv('HOME')+'/.mngdb/passwd').read().strip().split(':')
con2 = pymongo.MongoClient("mongodb://%s... | 31.961538 | 96 | 0.611913 | 232 | 1,662 | 4.349138 | 0.314655 | 0.017839 | 0.014866 | 0.035679 | 0.369673 | 0.332012 | 0.251734 | 0.198216 | 0.124876 | 0.071358 | 0 | 0.011329 | 0.203369 | 1,662 | 52 | 97 | 31.961538 | 0.750755 | 0.009025 | 0 | 0.219512 | 0 | 0 | 0.180328 | 0.043716 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121951 | false | 0.317073 | 0.097561 | 0 | 0.292683 | 0.121951 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
929d3c5b46a27e2f50bb4ac6c78017b739c48bbf | 751 | py | Python | setup.py | renanbs/website-downloader | d7ffaf3b17b0467550dc0e6064b12bed7d134ba4 | [
"MIT"
] | null | null | null | setup.py | renanbs/website-downloader | d7ffaf3b17b0467550dc0e6064b12bed7d134ba4 | [
"MIT"
] | null | null | null | setup.py | renanbs/website-downloader | d7ffaf3b17b0467550dc0e6064b12bed7d134ba4 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(name='website-downloader',
description='A simple website downloader',
long_description='A simple website downloader',
packages=find_packages(exclude=["*tests*"]),
package_data={'': ['*.yaml']},
version='1.0.0',
install_requires=[
... | 27.814815 | 53 | 0.488682 | 84 | 751 | 4.297619 | 0.535714 | 0.141274 | 0.099723 | 0.138504 | 0.193906 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073852 | 0.332889 | 751 | 26 | 54 | 28.884615 | 0.646707 | 0 | 0 | 0.083333 | 0 | 0 | 0.366178 | 0.062583 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.041667 | 0 | 0.041667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
92a4ed9d1b02b073a82d4945184f91a19b59ee57 | 571 | py | Python | main.py | Rajmeet/Image-to-Speech | b91d37c9133711818f167971f0e690557c83e2e2 | [
"MIT"
] | null | null | null | main.py | Rajmeet/Image-to-Speech | b91d37c9133711818f167971f0e690557c83e2e2 | [
"MIT"
] | null | null | null | main.py | Rajmeet/Image-to-Speech | b91d37c9133711818f167971f0e690557c83e2e2 | [
"MIT"
] | null | null | null | # **** IMPORTING **** #
import cv2
import os
from gtts import gTTS
from PIL import Image
import pytesseract
pytesseract.pytesseract.tesseract_cmd = (r"C:\Program Files\Tesseract-OCR\tesseract.exe")
# **** CONVERSION **** #
def ImageConversionToText(file):
img = cv2.imread(file)
text = pytesseract.... | 21.961538 | 90 | 0.646235 | 69 | 571 | 5.304348 | 0.594203 | 0.120219 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008791 | 0.203152 | 571 | 25 | 91 | 22.84 | 0.795604 | 0.099825 | 0 | 0 | 0 | 0 | 0.240586 | 0.069038 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.4 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
92a89a15c9b959b07d6e93619afa589e9eac7805 | 1,948 | py | Python | lab_2/tokenize_big_file_test.py | papudova/2020-2-level-labs | 2e3da84de2608cec1557d41af216756cdad92799 | [
"MIT"
] | null | null | null | lab_2/tokenize_big_file_test.py | papudova/2020-2-level-labs | 2e3da84de2608cec1557d41af216756cdad92799 | [
"MIT"
] | null | null | null | lab_2/tokenize_big_file_test.py | papudova/2020-2-level-labs | 2e3da84de2608cec1557d41af216756cdad92799 | [
"MIT"
] | null | null | null | """
Tests tokenize_big_file function
"""
import unittest
import timeit
from memory_profiler import memory_usage
from lab_2.main import tokenize_big_file, tokenize_by_lines
class TokenizeBigFileTest(unittest.TestCase):
"""
Checks for tokenize_big_file function
"""
def test_tokenize_big_file_ideal_cas... | 34.785714 | 86 | 0.669405 | 238 | 1,948 | 5.201681 | 0.298319 | 0.159935 | 0.205977 | 0.148627 | 0.488691 | 0.441842 | 0.336834 | 0.109855 | 0.074313 | 0 | 0 | 0.030075 | 0.248973 | 1,948 | 55 | 87 | 35.418182 | 0.816131 | 0.149897 | 0 | 0.068966 | 0 | 0 | 0.261688 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 1 | 0.103448 | false | 0 | 0.137931 | 0 | 0.275862 | 0.206897 | 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 |
92b4f0b981bafb55a4b60fc6e770dcb8a1486763 | 1,984 | py | Python | tests/test_writer.py | fish2000/swatch | 1c7fd2b7f3c88ac61a830b779de7af834afb0e1f | [
"MIT"
] | 1 | 2022-02-06T02:17:43.000Z | 2022-02-06T02:17:43.000Z | tests/test_writer.py | fish2000/swatch | 1c7fd2b7f3c88ac61a830b779de7af834afb0e1f | [
"MIT"
] | null | null | null | tests/test_writer.py | fish2000/swatch | 1c7fd2b7f3c88ac61a830b779de7af834afb0e1f | [
"MIT"
] | null | null | null | # encoding: utf-8
"""
swatch.tests.test_writer
Solarized color palette using LAB data from
http://ethanschoonover.com/solarized
Copyright (c) 2019 Marcos A. Ojeda http://generic.cx/
All Rights Reserved
MIT Licensed, see LICENSE.TXT for details
"""
from __future__ import print_function
import unittest
class TestSwat... | 34.807018 | 87 | 0.679435 | 255 | 1,984 | 5.105882 | 0.360784 | 0.110599 | 0.075269 | 0.092166 | 0.264977 | 0.156682 | 0.156682 | 0 | 0 | 0 | 0 | 0.005803 | 0.218246 | 1,984 | 56 | 88 | 35.428571 | 0.833656 | 0.131552 | 0 | 0 | 0 | 0 | 0.197776 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.242424 | false | 0 | 0.090909 | 0 | 0.393939 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
92b955252235b4e6d7cc32870bd4c7bfd9638f92 | 4,124 | py | Python | lego/apps/external_sync/external/tests/test_ldap.py | ollfkaih/lego | b15aacaf09efe90e7f984d25b0e7bddbe12647e8 | [
"MIT"
] | 45 | 2017-10-24T12:09:06.000Z | 2021-11-03T21:21:03.000Z | lego/apps/external_sync/external/tests/test_ldap.py | ollfkaih/lego | b15aacaf09efe90e7f984d25b0e7bddbe12647e8 | [
"MIT"
] | 980 | 2017-10-24T12:29:07.000Z | 2022-03-31T04:04:31.000Z | lego/apps/external_sync/external/tests/test_ldap.py | wahello/lego | a0b02f3abc997fe96326e9c9c05b49847170041b | [
"MIT"
] | 23 | 2018-04-11T16:34:22.000Z | 2021-11-23T12:28:30.000Z | from unittest import mock
from unittest.mock import call
from django.test import override_settings
from lego.apps.external_sync.external import ldap
from lego.apps.users.constants import GROUP_COMMITTEE
from lego.apps.users.models import AbakusGroup, User
from lego.utils.test_utils import BaseTestCase
class LDAPTes... | 35.551724 | 93 | 0.660039 | 513 | 4,124 | 5.105263 | 0.214425 | 0.076365 | 0.064147 | 0.053456 | 0.461627 | 0.394425 | 0.295151 | 0.171821 | 0.142039 | 0.142039 | 0 | 0.001901 | 0.234724 | 4,124 | 115 | 94 | 35.86087 | 0.827947 | 0.116149 | 0 | 0.2 | 0 | 0 | 0.063812 | 0.019032 | 0 | 0 | 0 | 0 | 0.1625 | 1 | 0.125 | false | 0.0875 | 0.0875 | 0 | 0.2375 | 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 |
2b836e5cc23b2cbb6380a519ffa6029d8be7e4b2 | 8,040 | py | Python | eventapp/models.py | peterkuma/tjrapid | 8813cb0a3633785754d20263f180428688bcb026 | [
"MIT"
] | null | null | null | eventapp/models.py | peterkuma/tjrapid | 8813cb0a3633785754d20263f180428688bcb026 | [
"MIT"
] | 1 | 2021-05-16T16:40:00.000Z | 2021-05-16T16:40:00.000Z | eventapp/models.py | peterkuma/tjrapid | 8813cb0a3633785754d20263f180428688bcb026 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (c) 2010-2012 Peter Kuma
from os import urandom
import datetime
from django.db.models import *
from django.utils.translation import ugettext_lazy as _
from django.urls import reverse
from django.core.validators import validate_comma_separated_integer_list
ACCOMMNIGHTS_CHOICES = ... | 31.162791 | 190 | 0.691667 | 1,048 | 8,040 | 5.072519 | 0.210878 | 0.028781 | 0.029345 | 0.038375 | 0.449586 | 0.418172 | 0.394281 | 0.376975 | 0.334838 | 0.288751 | 0 | 0.021028 | 0.136443 | 8,040 | 257 | 191 | 31.284047 | 0.744491 | 0.006965 | 0 | 0.311628 | 0 | 0.004651 | 0.147118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097674 | false | 0 | 0.027907 | 0.07907 | 0.562791 | 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 |
2b881f23de7b8883b50fef8a0ce33b86566c39b9 | 2,563 | py | Python | lib/RunnerFactory.py | tudasc/PIRA | 2a30dfaa39e4bbdeaf86685e65e4d8e05995e664 | [
"BSD-3-Clause"
] | 8 | 2021-04-04T01:12:42.000Z | 2022-02-06T18:13:49.000Z | lib/RunnerFactory.py | tudasc/pira | 00d6e9959739ac87f53ea1cd9c8322fca1dbd8ee | [
"BSD-3-Clause"
] | 4 | 2020-10-07T14:29:31.000Z | 2020-11-14T08:36:36.000Z | lib/RunnerFactory.py | tudasc/PIRA | 2a30dfaa39e4bbdeaf86685e65e4d8e05995e664 | [
"BSD-3-Clause"
] | 2 | 2020-10-09T09:54:55.000Z | 2020-11-11T16:39:39.000Z | """
File: RunnerFactory.py
License: Part of the PIRA project. Licensed under BSD 3 clause license. See LICENSE.txt file at https://github.com/jplehr/pira/LICENSE.txt
Description: Module to create different Runner objects, depending on the configuration.
"""
import lib.Logging as L
from lib.Configuration import PiraCon... | 43.440678 | 138 | 0.726883 | 314 | 2,563 | 5.719745 | 0.356688 | 0.022272 | 0.100223 | 0.164811 | 0.227171 | 0.223274 | 0.20657 | 0.20657 | 0.150891 | 0.062361 | 0 | 0.000475 | 0.178307 | 2,563 | 58 | 139 | 44.189655 | 0.852327 | 0.180258 | 0 | 0 | 0 | 0 | 0.239349 | 0.152226 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0 | 0.135135 | 0.027027 | 0.297297 | 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 |
2b943f71ac95510b47d9f3ecf94b1a9e3e910b98 | 2,583 | py | Python | data/ilsvrc12/process_imagenet.py | kuitang/convbayes-caffe | 81aa7f9d28efea7fe89ca87100d59959dcccb353 | [
"BSD-2-Clause"
] | null | null | null | data/ilsvrc12/process_imagenet.py | kuitang/convbayes-caffe | 81aa7f9d28efea7fe89ca87100d59959dcccb353 | [
"BSD-2-Clause"
] | null | null | null | data/ilsvrc12/process_imagenet.py | kuitang/convbayes-caffe | 81aa7f9d28efea7fe89ca87100d59959dcccb353 | [
"BSD-2-Clause"
] | null | null | null | __author__ = 'Sameer Lal'
import numpy as np
import sys
import caffe
import wget
import os
import time
import subprocess
def pre_process(limit,net,classes):
syn_ids=[]
#getting synsets
with open('synset_words.txt') as f:
for line in f:
comps=line.rstrip('\n').split()
synset=comps[0]
if len(syns... | 33.115385 | 120 | 0.562524 | 322 | 2,583 | 4.369565 | 0.42236 | 0.039801 | 0.023454 | 0.021322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019005 | 0.307395 | 2,583 | 77 | 121 | 33.545455 | 0.767468 | 0.165699 | 0 | 0.033898 | 0 | 0 | 0.152519 | 0.076959 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.118644 | null | null | 0.067797 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2b94863bf6195dee8f3f5b4b353083e14ca6f472 | 450 | py | Python | apps/account/migrations/0012_auto_20200602_1058.py | SilviaZeta/abclassroom | a8f3f6f70f8c10999a1716b19bdc5e5d1a682b65 | [
"Apache-2.0"
] | null | null | null | apps/account/migrations/0012_auto_20200602_1058.py | SilviaZeta/abclassroom | a8f3f6f70f8c10999a1716b19bdc5e5d1a682b65 | [
"Apache-2.0"
] | null | null | null | apps/account/migrations/0012_auto_20200602_1058.py | SilviaZeta/abclassroom | a8f3f6f70f8c10999a1716b19bdc5e5d1a682b65 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0.6 on 2020-06-02 10:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('account', '0011_auto_20200601_1458'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='picture',
... | 23.684211 | 112 | 0.62 | 50 | 450 | 5.48 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092262 | 0.253333 | 450 | 18 | 113 | 25 | 0.723214 | 0.1 | 0 | 0 | 1 | 0 | 0.176179 | 0.124069 | 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 |
2b9df34d73822d150c931f85f586930ed53584af | 1,988 | py | Python | scripts/EZpanda/EZmouse.py | K9Kraken/EZpanda | aa4b13c1391f864be4f34fb7f258aa954baf32ca | [
"BSD-3-Clause"
] | null | null | null | scripts/EZpanda/EZmouse.py | K9Kraken/EZpanda | aa4b13c1391f864be4f34fb7f258aa954baf32ca | [
"BSD-3-Clause"
] | 1 | 2021-09-21T19:05:18.000Z | 2021-09-21T20:19:22.000Z | scripts/EZpanda/EZmouse.py | K9Kraken/EZpanda | aa4b13c1391f864be4f34fb7f258aa954baf32ca | [
"BSD-3-Clause"
] | null | null | null | class Mouse:
__slots__=(
'_system_cursor',
'has_mouse'
)
def __init__(self):
self._system_cursor = ez.window.panda_winprops.get_cursor_filename()
self.has_mouse = ez.panda_showbase.mouseWatcherNode.has_mouse
def hide(self):
ez.window.panda_winprops.set_curso... | 32.590164 | 77 | 0.653421 | 263 | 1,988 | 4.69962 | 0.254753 | 0.071197 | 0.105178 | 0.169903 | 0.490291 | 0.449838 | 0.386731 | 0.263754 | 0.199029 | 0.199029 | 0 | 0.005362 | 0.249497 | 1,988 | 61 | 78 | 32.590164 | 0.823056 | 0.108149 | 0 | 0.152174 | 0 | 0 | 0.013009 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0 | 0.021739 | 0.282609 | 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 |
2ba0a10d073829da7697fdf45919946824408ea8 | 4,761 | py | Python | src/presenters/Classy2Presenter.py | Walid-Shouman/langform | 2f02784f50aff59e1af4184a9f7543cca983a1e3 | [
"MIT"
] | null | null | null | src/presenters/Classy2Presenter.py | Walid-Shouman/langform | 2f02784f50aff59e1af4184a9f7543cca983a1e3 | [
"MIT"
] | null | null | null | src/presenters/Classy2Presenter.py | Walid-Shouman/langform | 2f02784f50aff59e1af4184a9f7543cca983a1e3 | [
"MIT"
] | null | null | null | import re
from presenters.ClassyPresenter import ClassyPresenter
from models.pyt import PythonTypeDefault as ptd
from lib.Language import Language
class Classy2Presenter(ClassyPresenter):
def __init__(self, cl):
super(Classy2Presenter, self).__init__(cl)
self.initVariableNamesWithCommas = self.get_init_variable_... | 29.030488 | 116 | 0.708465 | 532 | 4,761 | 6.238722 | 0.268797 | 0.043387 | 0.037963 | 0.036155 | 0.190419 | 0.190419 | 0.190419 | 0.169931 | 0.149443 | 0.125339 | 0 | 0.005097 | 0.175803 | 4,761 | 164 | 117 | 29.030488 | 0.840724 | 0.074564 | 0 | 0.354545 | 0 | 0 | 0.058797 | 0 | 0 | 0 | 0 | 0.012195 | 0 | 1 | 0.109091 | false | 0 | 0.036364 | 0.009091 | 0.290909 | 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 |
2ba56ef3e7c13395741e218d2246806baa919e6a | 1,001 | py | Python | django_languageselect/views.py | RegioHelden/django-languageselect | dd19d282209d7eb08d1d946c098dfe91fd50716d | [
"MIT"
] | 3 | 2016-04-14T06:36:17.000Z | 2018-09-03T20:15:53.000Z | django_languageselect/views.py | RegioHelden/django-languageselect | dd19d282209d7eb08d1d946c098dfe91fd50716d | [
"MIT"
] | 3 | 2019-11-04T15:00:54.000Z | 2021-03-25T09:36:27.000Z | django_languageselect/views.py | RegioHelden/django-languageselect | dd19d282209d7eb08d1d946c098dfe91fd50716d | [
"MIT"
] | 2 | 2015-12-25T13:37:51.000Z | 2021-01-22T12:49:28.000Z | from django.views.generic import View
from django.conf import settings
from django.http import HttpResponseRedirect
from . import forms
class IndexView(View):
def get(self, request):
next = "/"
if "next" in request.GET:
next = request.GET.get("next")
response = HttpResponseRe... | 27.054054 | 55 | 0.641359 | 105 | 1,001 | 5.942857 | 0.380952 | 0.179487 | 0.246795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.286713 | 1,001 | 36 | 56 | 27.805556 | 0.87395 | 0 | 0 | 0.111111 | 0 | 0 | 0.016983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.148148 | 0 | 0.333333 | 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 |
2ba9d8b344c970f5129ef32bd993c1ca29190cdf | 1,341 | py | Python | tests/test_scraper.py | LeonMilosevic/ebay-phone-scraper | 918ba4cddca20ad772356bf75989aadb068d496a | [
"MIT"
] | null | null | null | tests/test_scraper.py | LeonMilosevic/ebay-phone-scraper | 918ba4cddca20ad772356bf75989aadb068d496a | [
"MIT"
] | null | null | null | tests/test_scraper.py | LeonMilosevic/ebay-phone-scraper | 918ba4cddca20ad772356bf75989aadb068d496a | [
"MIT"
] | null | null | null | def test_get_condition_new():
scraper = Scraper('Apple', 3000, 'new')
result = scraper.condition_code
assert result == 1000
def test_get_condition_used():
scraper = Scraper('Apple', 3000, 'used')
result = scraper.condition_code
assert result == 3000
def test_get_condition_error():
scraper = Scraper('A... | 23.946429 | 52 | 0.718867 | 184 | 1,341 | 4.961957 | 0.195652 | 0.07667 | 0.109529 | 0.115005 | 0.616648 | 0.473165 | 0.36035 | 0.295728 | 0.120482 | 0.120482 | 0 | 0.062888 | 0.158091 | 1,341 | 56 | 53 | 23.946429 | 0.745793 | 0 | 0 | 0.25 | 0 | 0 | 0.087928 | 0 | 0 | 0 | 0 | 0 | 0.175 | 1 | 0.25 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2bacd5c8787fd8d348fa6d512dc6f124e51c6a6e | 500 | py | Python | league.py | priyabrs/football_data | 57441b150b3cd6b9aa49322a538b2c12179f5358 | [
"MIT"
] | null | null | null | league.py | priyabrs/football_data | 57441b150b3cd6b9aa49322a538b2c12179f5358 | [
"MIT"
] | null | null | null | league.py | priyabrs/football_data | 57441b150b3cd6b9aa49322a538b2c12179f5358 | [
"MIT"
] | null | null | null | from unicodedata import name
class League():
def __init__(self, league_id, league_name, league_type, country, seasons, teams=[]) -> None:
self.league_id = league_id
self.league_name = league_name
self.league_type = league_type
self.country = country
self.seasons = seasons
... | 27.777778 | 96 | 0.634 | 62 | 500 | 4.806452 | 0.354839 | 0.201342 | 0.161074 | 0.120805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.276 | 500 | 17 | 97 | 29.411765 | 0.823204 | 0.246 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.333333 | 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 |
2bb038546a43b0b5cadbd8981dd7502121c74c01 | 419 | py | Python | pyAitu/models/constants/__init__.py | waihislam/pyAitu | 6e7c3bfa7454d6ae91ba998017cf772bb6a25770 | [
"Apache-2.0"
] | 11 | 2019-09-26T05:09:20.000Z | 2021-05-20T10:45:28.000Z | pyAitu/models/constants/__init__.py | waihislam/pyAitu | 6e7c3bfa7454d6ae91ba998017cf772bb6a25770 | [
"Apache-2.0"
] | 8 | 2019-10-08T13:41:09.000Z | 2020-06-25T11:35:56.000Z | pyAitu/models/constants/__init__.py | waihislam/pyAitu | 6e7c3bfa7454d6ae91ba998017cf772bb6a25770 | [
"Apache-2.0"
] | 4 | 2020-02-18T09:02:37.000Z | 2020-11-25T06:11:05.000Z | from .alignment import Alignment
from .currency import Currency
from .file_type import FileType
from .orientation import Orientation
from .text_size import TextSize
from .text_style import TextStyle
from .option_media_type import OptionMediaType
from .input_type import InputType
__all__ = [
Alignment,
Currency... | 22.052632 | 46 | 0.77327 | 47 | 419 | 6.680851 | 0.404255 | 0.095541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181384 | 419 | 19 | 47 | 22.052632 | 0.915452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 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 |
2bb2378ecd17be42c9a19245542b899a9ff4b719 | 1,605 | py | Python | main.py | ErikRichardS/mnist-ann | 3fb34a25ec41177d34445d2ccda6cf42b7d4175e | [
"MIT"
] | null | null | null | main.py | ErikRichardS/mnist-ann | 3fb34a25ec41177d34445d2ccda6cf42b7d4175e | [
"MIT"
] | null | null | null | main.py | ErikRichardS/mnist-ann | 3fb34a25ec41177d34445d2ccda6cf42b7d4175e | [
"MIT"
] | null | null | null | import torch
import torchvision
#import torchvision.datasets as datasets
import torchvision.transforms as transforms
from torch.utils.data import DataLoader
import numpy as np
from os.path import isfile
from os import remove
from random import shuffle
from ann import VGG, Ensemble
from datamanager import *
from tra... | 21.118421 | 64 | 0.753271 | 245 | 1,605 | 4.82449 | 0.367347 | 0.020305 | 0.050761 | 0.037225 | 0.038917 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008197 | 0.163863 | 1,605 | 75 | 65 | 21.4 | 0.872578 | 0.323988 | 0 | 0 | 0 | 0 | 0.089636 | 0.046685 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.363636 | 0 | 0.393939 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
2bb80efc56df17749c1773c01a133e2d39d443f8 | 794 | py | Python | fancyimpute/__init__.py | WINGHARE/Actmatcomp | 4685e235d552fe785fed4b5199a047be7c787903 | [
"IJG"
] | null | null | null | fancyimpute/__init__.py | WINGHARE/Actmatcomp | 4685e235d552fe785fed4b5199a047be7c787903 | [
"IJG"
] | null | null | null | fancyimpute/__init__.py | WINGHARE/Actmatcomp | 4685e235d552fe785fed4b5199a047be7c787903 | [
"IJG"
] | null | null | null | from __future__ import absolute_import, print_function, division
from .solver import Solver
#from .nuclear_norm_minimization import NuclearNormMinimization
#from .bayesian_ridge_regression import BayesianRidgeRegression
#from .mice import MICE
#from .matrix_factorization import MatrixFactorization
#from .iterative_svd... | 28.357143 | 71 | 0.777078 | 74 | 794 | 8.067568 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139798 | 794 | 27 | 72 | 29.407407 | 0.874085 | 0.687657 | 0 | 0 | 0 | 0 | 0.069565 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 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 |
2bb8806ebbd25cdf796fe312660880294f96a17c | 397 | py | Python | tasks/migrations/0023_auto_20190306_1228.py | Adinetti/TODO-List-site | 31db8b5726ce4ace2359a329938f31c1ddf1e224 | [
"MIT"
] | null | null | null | tasks/migrations/0023_auto_20190306_1228.py | Adinetti/TODO-List-site | 31db8b5726ce4ace2359a329938f31c1ddf1e224 | [
"MIT"
] | null | null | null | tasks/migrations/0023_auto_20190306_1228.py | Adinetti/TODO-List-site | 31db8b5726ce4ace2359a329938f31c1ddf1e224 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.7 on 2019-03-06 12:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tasks', '0022_auto_20190305_2121'),
]
operations = [
migrations.AlterField(
model_name='tag',
name='username',
... | 20.894737 | 64 | 0.596977 | 44 | 397 | 5.272727 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115789 | 0.282116 | 397 | 18 | 65 | 22.055556 | 0.698246 | 0.11335 | 0 | 0 | 1 | 0 | 0.117143 | 0.065714 | 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 |
2bb906f123a923dfffda8d0e015cda8fe0ae2f36 | 3,940 | py | Python | tests/resconfig/test_fields.py | okomestudio/resconfig | cdf6e4fdae151a0e2c71ce503c9139f8b2a6013b | [
"Apache-2.0"
] | 6 | 2020-04-08T02:30:02.000Z | 2020-04-24T23:26:37.000Z | tests/resconfig/test_fields.py | okomestudio/resconfig | cdf6e4fdae151a0e2c71ce503c9139f8b2a6013b | [
"Apache-2.0"
] | 26 | 2019-04-08T22:38:38.000Z | 2020-05-03T23:57:27.000Z | tests/resconfig/test_fields.py | okomestudio/resconfig | cdf6e4fdae151a0e2c71ce503c9139f8b2a6013b | [
"Apache-2.0"
] | null | null | null | from datetime import datetime
from datetime import timezone
import pytest
from resconfig.fields import Bool
from resconfig.fields import Datetime
from resconfig.fields import Float
from resconfig.fields import Int
from resconfig.fields import NullableBool
from resconfig.fields import NullableDatetime
from resconfig.f... | 26.442953 | 83 | 0.675381 | 489 | 3,940 | 5.239264 | 0.137014 | 0.040984 | 0.065964 | 0.09758 | 0.564012 | 0.490632 | 0.432475 | 0.415301 | 0.391881 | 0.357533 | 0 | 0.030353 | 0.230711 | 3,940 | 148 | 84 | 26.621622 | 0.814913 | 0 | 0 | 0.418182 | 0 | 0 | 0.037563 | 0.025381 | 0 | 0 | 0 | 0 | 0.109091 | 1 | 0.127273 | false | 0 | 0.118182 | 0.018182 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
2bbd151b8da17ed3aae5c8fbd60b679ae0543267 | 498 | py | Python | server/rating/migrations/0002_auto_20180211_1340.py | Xelia/mahjong-portal | 1baa2eab57875a64a7f09537d1f43872b577f205 | [
"MIT"
] | 10 | 2018-02-12T10:30:22.000Z | 2020-06-29T21:06:15.000Z | server/rating/migrations/0002_auto_20180211_1340.py | Xelia/mahjong-portal | 1baa2eab57875a64a7f09537d1f43872b577f205 | [
"MIT"
] | 62 | 2018-01-05T04:52:38.000Z | 2021-04-10T07:14:45.000Z | server/rating/migrations/0002_auto_20180211_1340.py | MahjongRepository/mahjong-leaderboard | 77dfd26cb812c12fa7c2b11e862bb80a9135ccb0 | [
"MIT"
] | 8 | 2018-05-11T11:05:41.000Z | 2021-03-10T08:10:50.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-02-11 13:40
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rating', '0001_initial'),
]
operations = [
migrations.AlterField(
... | 23.714286 | 111 | 0.588353 | 54 | 498 | 5.296296 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067385 | 0.25502 | 498 | 20 | 112 | 24.9 | 0.703504 | 0.136546 | 0 | 0 | 1 | 0 | 0.098361 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2bbd628cf59423cc52465f6f2079df95092f7f53 | 801 | py | Python | app/lib/models/webpush.py | didi9575/crackerjack | e21032fe4867072b3ea25d0f89f76ae53c25b36d | [
"MIT"
] | 237 | 2020-03-26T12:39:24.000Z | 2022-03-28T04:46:22.000Z | app/lib/models/webpush.py | avineshwar/crackerjack | 6920304d3a5a97a236a9e6db7e7f16470d0d3869 | [
"MIT"
] | 18 | 2020-03-31T14:59:00.000Z | 2022-03-19T08:37:07.000Z | app/lib/models/webpush.py | avineshwar/crackerjack | 6920304d3a5a97a236a9e6db7e7f16470d0d3869 | [
"MIT"
] | 61 | 2020-03-29T13:53:54.000Z | 2022-03-22T12:36:14.000Z | from app import db
class WebPushSubscriptionModel(db.Model):
__tablename__ = 'webpush_subscriptions'
id = db.Column(db.Integer, primary_key=True)
user_id = db.Column(db.Integer, default=0, index=True, nullable=True)
endpoint = db.Column(db.String, default='', index=False, nullable=True)
key = db.C... | 40.05 | 77 | 0.717853 | 111 | 801 | 5.036036 | 0.297297 | 0.143113 | 0.178891 | 0.085868 | 0.660107 | 0.660107 | 0.660107 | 0.545617 | 0.545617 | 0.304114 | 0 | 0.00292 | 0.144819 | 801 | 19 | 78 | 42.157895 | 0.813139 | 0 | 0 | 0.266667 | 0 | 0 | 0.041199 | 0.026217 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
2bc63fbb5a76b78c507d3bbb34ad6f59cb862619 | 8,889 | py | Python | pants/ingredients/models.py | osagga/PriceAndNutritionTrackingSystem | 6b654dcb6ad5902554471d98000a719f06ec03d9 | [
"Apache-2.0"
] | 72 | 2019-01-29T13:22:34.000Z | 2022-01-06T09:42:33.000Z | pants/ingredients/models.py | osagga/PriceAndNutritionTrackingSystem | 6b654dcb6ad5902554471d98000a719f06ec03d9 | [
"Apache-2.0"
] | 14 | 2019-05-10T19:59:26.000Z | 2021-01-11T00:37:17.000Z | pants/ingredients/models.py | osagga/PriceAndNutritionTrackingSystem | 6b654dcb6ad5902554471d98000a719f06ec03d9 | [
"Apache-2.0"
] | 17 | 2020-03-03T21:24:09.000Z | 2022-01-06T09:42:37.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from decimal import Decimal
from django.apps import apps
from django.conf import settings
from django.contrib.auth.models import User
from django.core.validators import MinValueValidator
from django.db import models
from django.db.models import F
from dja... | 31.189474 | 90 | 0.675217 | 1,159 | 8,889 | 5.075928 | 0.329594 | 0.024477 | 0.032126 | 0.026007 | 0.193099 | 0.165562 | 0.148224 | 0.137685 | 0.120687 | 0.120687 | 0 | 0.008786 | 0.244572 | 8,889 | 284 | 91 | 31.299296 | 0.867312 | 0.401282 | 0 | 0.402439 | 0 | 0 | 0.035757 | 0 | 0 | 0 | 0 | 0.014085 | 0 | 1 | 0.060976 | false | 0 | 0.067073 | 0.012195 | 0.347561 | 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 |
2bc85bd481ea9c4977b2e7214302580ed40628c7 | 1,138 | py | Python | brickschool/quiz/models.py | urbrob/BrickSchool | 20c72c6e8093c598263f68ad6331064f5f7919a6 | [
"MIT"
] | null | null | null | brickschool/quiz/models.py | urbrob/BrickSchool | 20c72c6e8093c598263f68ad6331064f5f7919a6 | [
"MIT"
] | 21 | 2019-09-27T15:41:41.000Z | 2021-06-10T22:00:53.000Z | brickschool/quiz/models.py | urbrob/BrickSchool | 20c72c6e8093c598263f68ad6331064f5f7919a6 | [
"MIT"
] | 4 | 2019-09-27T18:38:55.000Z | 2020-03-17T18:36:14.000Z | from django.db import models
# Create your models here.
class Quiz(models.Model):
title = models.CharField(max_length=250)
def __str__(self):
return self.title
class Question(models.Model):
CATEGORIES_CHOICES = (
('Inteligencja logiczno-matematyczna', 'Inteligencja logiczno-matematyczna')... | 40.642857 | 88 | 0.70826 | 104 | 1,138 | 7.615385 | 0.432692 | 0.056818 | 0.068182 | 0.090909 | 0.156566 | 0.156566 | 0.075758 | 0 | 0 | 0 | 0 | 0.010707 | 0.179262 | 1,138 | 27 | 89 | 42.148148 | 0.837259 | 0.02109 | 0 | 0.26087 | 0 | 0 | 0.420863 | 0.115108 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.043478 | 0.086957 | 0.565217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
2bc9238e17627f316f0a6f311493c514a65dfbed | 630 | py | Python | src/condor_tools/htcondor_cli/verb.py | datadvance/htcondor | aa9cc9e87832003fb2533e6be5bc95ead4222318 | [
"Apache-2.0"
] | 217 | 2015-01-08T04:49:42.000Z | 2022-03-27T10:11:58.000Z | src/condor_tools/htcondor_cli/verb.py | datadvance/htcondor | aa9cc9e87832003fb2533e6be5bc95ead4222318 | [
"Apache-2.0"
] | 185 | 2015-05-03T13:26:31.000Z | 2022-03-28T03:08:59.000Z | src/condor_tools/htcondor_cli/verb.py | datadvance/htcondor | aa9cc9e87832003fb2533e6be5bc95ead4222318 | [
"Apache-2.0"
] | 133 | 2015-02-11T09:17:45.000Z | 2022-03-31T07:28:54.000Z | from abc import ABC, abstractmethod
class Verb(ABC):
"""
This docstring is used in the help message when doing
`htcondor noun verb --help`
"""
# The options class dict is a nested dict containing kwargs
# per option for the add_argument method of ArgumentParser,
# see COMMON_OPTIONS in __... | 30 | 63 | 0.693651 | 86 | 630 | 4.918605 | 0.686047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.244444 | 630 | 20 | 64 | 31.5 | 0.888655 | 0.62381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
2bca429b87f78bd94efe5b5a0b706aeb2955ef91 | 869 | py | Python | tests/test_scheduled_external_program.py | PavlidisLab/luigi-biotasks | fec1c247752278518b2906a2ce968477349fee45 | [
"Apache-2.0"
] | 5 | 2019-11-14T18:41:46.000Z | 2020-03-21T17:56:32.000Z | tests/test_scheduled_external_program.py | PavlidisLab/luigi-biotasks | fec1c247752278518b2906a2ce968477349fee45 | [
"Apache-2.0"
] | 8 | 2019-11-13T21:40:32.000Z | 2022-03-04T20:31:37.000Z | tests/test_scheduled_external_program.py | PavlidisLab/luigi-biotasks | fec1c247752278518b2906a2ce968477349fee45 | [
"Apache-2.0"
] | null | null | null | import os
import luigi
from bioluigi.scheduled_external_program import ScheduledExternalProgramTask, Scheduler, SlurmScheduler
from distutils.spawn import find_executable
import pytest
class MyTask(ScheduledExternalProgramTask):
def program_args(self):
return ['true']
def test_default_scheduler():
ass... | 34.76 | 103 | 0.749137 | 103 | 869 | 6.15534 | 0.417476 | 0.141956 | 0.05205 | 0.066246 | 0.078864 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00133 | 0.134638 | 869 | 24 | 104 | 36.208333 | 0.841755 | 0 | 0 | 0 | 0 | 0 | 0.100115 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.25 | 0.05 | 0.55 | 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 |
2bd06157fe4ebfc756411c27478562b6110b2d77 | 1,556 | py | Python | Statistics/Day_1_Interquartile Range/interquartile_range.py | brianchiang-tw/HackerRank | 02a30a0033b881206fa15b8d6b4ef99b2dc420c8 | [
"MIT"
] | 2 | 2020-05-28T07:15:00.000Z | 2020-07-21T08:34:06.000Z | Statistics/Day_1_Interquartile Range/interquartile_range.py | brianchiang-tw/HackerRank | 02a30a0033b881206fa15b8d6b4ef99b2dc420c8 | [
"MIT"
] | null | null | null | Statistics/Day_1_Interquartile Range/interquartile_range.py | brianchiang-tw/HackerRank | 02a30a0033b881206fa15b8d6b4ef99b2dc420c8 | [
"MIT"
] | null | null | null |
def get_median( arr ):
size = len(arr)
mid_pos = size // 2
if size % 2 == 0:
# size is even
median = ( arr[mid_pos-1] + arr[mid_pos] ) / 2
else:
# size is odd
median = arr[mid_pos]
return (median)
def collect_Q1_Q2_Q3( arr ):
# Preprocessing
# in-pl... | 17.681818 | 69 | 0.580334 | 216 | 1,556 | 3.907407 | 0.291667 | 0.063981 | 0.085308 | 0.07109 | 0.36019 | 0.322275 | 0.260664 | 0.135071 | 0.135071 | 0.080569 | 0 | 0.026877 | 0.306555 | 1,556 | 87 | 70 | 17.885057 | 0.755329 | 0.122751 | 0 | 0.210526 | 0 | 0 | 0.008856 | 0 | 0 | 0 | 0 | 0.011494 | 0 | 1 | 0.105263 | false | 0 | 0 | 0 | 0.210526 | 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 |
2bd4725ba79028850e40b5270538cd6a2799b7e7 | 719 | py | Python | examples/python/utils.py | uraj/incubator-mesatee | 996096a40a5e423c1efa92182ed6fafb7e57ea1c | [
"Apache-2.0"
] | null | null | null | examples/python/utils.py | uraj/incubator-mesatee | 996096a40a5e423c1efa92182ed6fafb7e57ea1c | [
"Apache-2.0"
] | null | null | null | examples/python/utils.py | uraj/incubator-mesatee | 996096a40a5e423c1efa92182ed6fafb7e57ea1c | [
"Apache-2.0"
] | null | null | null | import os
HOSTNAME = 'localhost'
AUTHENTICATION_SERVICE_ADDRESS = (HOSTNAME, 7776)
FRONTEND_SERVICE_ADDRESS = (HOSTNAME, 7777)
USER_ID = "example_user"
USER_PASSWORD = "test_password"
if os.environ.get('DCAP'):
AS_ROOT_CERT_FILENAME = "dcap_root_ca_cert.pem"
else:
AS_ROOT_CERT_FILENAME = "ias_root_ca_cert.pe... | 29.958333 | 66 | 0.737135 | 100 | 719 | 4.84 | 0.36 | 0.07438 | 0.082645 | 0.14876 | 0.446281 | 0.27686 | 0.152893 | 0.152893 | 0 | 0 | 0 | 0.012882 | 0.1363 | 719 | 23 | 67 | 31.26087 | 0.766506 | 0 | 0 | 0.111111 | 0 | 0 | 0.317549 | 0.213092 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.055556 | 0.055556 | 0 | 0.055556 | 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 |
2bd92cc2b3932fb4a9ac1d54f7dab2c4dd8f0294 | 481 | py | Python | back/migrations/0011_alter_instance_phone.py | Bash-Air/bashair | 76d07c0cca9323f5089d0c49450470bde887c4ea | [
"MIT"
] | null | null | null | back/migrations/0011_alter_instance_phone.py | Bash-Air/bashair | 76d07c0cca9323f5089d0c49450470bde887c4ea | [
"MIT"
] | null | null | null | back/migrations/0011_alter_instance_phone.py | Bash-Air/bashair | 76d07c0cca9323f5089d0c49450470bde887c4ea | [
"MIT"
] | 1 | 2022-02-14T11:27:50.000Z | 2022-02-14T11:27:50.000Z | # Generated by Django 3.2.12 on 2022-02-11 23:52
from django.db import migrations
import phonenumber_field.modelfields
class Migration(migrations.Migration):
dependencies = [
('back', '0010_auto_20220212_0441'),
]
operations = [
migrations.AlterField(
model_name='instance',
... | 24.05 | 117 | 0.654886 | 53 | 481 | 5.811321 | 0.792453 | 0.103896 | 0.175325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095628 | 0.239085 | 481 | 19 | 118 | 25.315789 | 0.745902 | 0.095634 | 0 | 0 | 1 | 0 | 0.092379 | 0.053118 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2bdc3cc6f80a2396148d4e71aecfe48289817f88 | 470 | py | Python | store/migrations/0002_product_sku.py | fobiero/jewelley-Store | 02aafb0fbe2d320b1be837b3de44cafe5ff5a419 | [
"MIT"
] | null | null | null | store/migrations/0002_product_sku.py | fobiero/jewelley-Store | 02aafb0fbe2d320b1be837b3de44cafe5ff5a419 | [
"MIT"
] | null | null | null | store/migrations/0002_product_sku.py | fobiero/jewelley-Store | 02aafb0fbe2d320b1be837b3de44cafe5ff5a419 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.3 on 2021-05-22 12:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('store', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='product',
name='sku',
field=m... | 23.5 | 115 | 0.604255 | 53 | 470 | 5.264151 | 0.773585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067647 | 0.276596 | 470 | 19 | 116 | 24.736842 | 0.752941 | 0.095745 | 0 | 0 | 1 | 0 | 0.118203 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.307692 | 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 |
2bde9291cfa1e21c857fdac492da2aa7634cb13f | 2,860 | py | Python | Scripts/HighLayer/GenePrioritization/src/FormatFileQTLR.py | mxjan/Systems_Genetics_of_Sleep_Regulation | eb0f352d36afb3c09a5419dc29b4b3d1b8f2d715 | [
"CC-BY-4.0"
] | null | null | null | Scripts/HighLayer/GenePrioritization/src/FormatFileQTLR.py | mxjan/Systems_Genetics_of_Sleep_Regulation | eb0f352d36afb3c09a5419dc29b4b3d1b8f2d715 | [
"CC-BY-4.0"
] | null | null | null | Scripts/HighLayer/GenePrioritization/src/FormatFileQTLR.py | mxjan/Systems_Genetics_of_Sleep_Regulation | eb0f352d36afb3c09a5419dc29b4b3d1b8f2d715 | [
"CC-BY-4.0"
] | null | null | null | #!/usr/bin/python2
import fileinput
import sys
# Format Genotyped file (GeneNetwork Format) into a text file for QTL/R
# Require a phenotype file (tab-delimited) with a header and row name in 1st column (example BXD_trait.txt)
# Usage: ./FormatFileQTLR.py <genotyped file> <Phenotype file> <output>
genof = sys.argv... | 24.869565 | 107 | 0.611189 | 465 | 2,860 | 3.675269 | 0.253763 | 0.061439 | 0.068461 | 0.057343 | 0.346987 | 0.247513 | 0.23464 | 0.210064 | 0.145699 | 0.145699 | 0 | 0.027288 | 0.167133 | 2,860 | 114 | 108 | 25.087719 | 0.690176 | 0.234965 | 0 | 0.169014 | 0 | 0 | 0.061489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.042254 | 0.028169 | null | null | 0.028169 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2be14db1f4b039fb8291a8c099875842d5c2dab5 | 2,761 | py | Python | absentismo/models.py | jjmartinr01/gauss3 | 1c71c44430e0f15fb2f3f83d32ad66bb1b7e3e94 | [
"MIT"
] | null | null | null | absentismo/models.py | jjmartinr01/gauss3 | 1c71c44430e0f15fb2f3f83d32ad66bb1b7e3e94 | [
"MIT"
] | null | null | null | absentismo/models.py | jjmartinr01/gauss3 | 1c71c44430e0f15fb2f3f83d32ad66bb1b7e3e94 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from entidades.models import Gauser_extra
# Create your models here.
class ExpedienteAbsentismo(models.Model):
expedientado = models.ForeignKey(Gauser_extra, related_name="actuaciones", on_delete=models.CASCADE)
matr... | 53.096154 | 118 | 0.719667 | 340 | 2,761 | 5.682353 | 0.329412 | 0.069876 | 0.066253 | 0.083851 | 0.408903 | 0.291925 | 0.238095 | 0.191511 | 0.167702 | 0.124224 | 0 | 0.008768 | 0.17385 | 2,761 | 51 | 119 | 54.137255 | 0.838229 | 0.101775 | 0 | 0.216216 | 0 | 0 | 0.263945 | 0.018189 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0 | 0.081081 | 0.081081 | 0.810811 | 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 |
2be23f5f41ee9b6cc40680fcfdfd3537acb2557a | 221 | py | Python | Algorithms/VowelCount/vowelCount.py | JJessee1371/codewars---python | d52dc515bc39779f8daa9415a48027550a9c9ad7 | [
"MIT"
] | null | null | null | Algorithms/VowelCount/vowelCount.py | JJessee1371/codewars---python | d52dc515bc39779f8daa9415a48027550a9c9ad7 | [
"MIT"
] | null | null | null | Algorithms/VowelCount/vowelCount.py | JJessee1371/codewars---python | d52dc515bc39779f8daa9415a48027550a9c9ad7 | [
"MIT"
] | null | null | null | def vowelCount(str):
count = 0
for i in str:
if i == "a" or i == "e" or i == "u" or i == "i" or i == "o":
count += 1
print(count)
exString = "Count the vowels in me!"
vowelCount(exString)
| 22.1 | 68 | 0.502262 | 36 | 221 | 3.083333 | 0.555556 | 0.108108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013605 | 0.334842 | 221 | 9 | 69 | 24.555556 | 0.741497 | 0 | 0 | 0 | 0 | 0 | 0.126697 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.125 | 0.125 | 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 |
2be6ec34088d854a96aa7da5ca60ca97f85fc267 | 5,240 | py | Python | Code/UTR_feature_calculation.py | DeMeylab/2018---yUTR-calculator | 775e142b6378cb8dae3631737601ad9e453c9e2d | [
"MIT"
] | null | null | null | Code/UTR_feature_calculation.py | DeMeylab/2018---yUTR-calculator | 775e142b6378cb8dae3631737601ad9e453c9e2d | [
"MIT"
] | null | null | null | Code/UTR_feature_calculation.py | DeMeylab/2018---yUTR-calculator | 775e142b6378cb8dae3631737601ad9e453c9e2d | [
"MIT"
] | null | null | null | import re, string, subprocess, random, os, itertools, os.path
def RNAfold_call(sequence,path='',unique_string=''): #calls RNAfold and returns stdout
if unique_string == '':
unique_string = randomstring(25)
sequence = translate_to_RNA(sequence)
if len(path)>0:
p = subprocess.Popen(['cd '+path+' && printf ">'+uni... | 45.964912 | 725 | 0.756107 | 749 | 5,240 | 5.040053 | 0.24032 | 0.031788 | 0.012715 | 0.020132 | 0.265695 | 0.234702 | 0.234702 | 0.196026 | 0.196026 | 0.196026 | 0 | 0.027671 | 0.103435 | 5,240 | 113 | 726 | 46.371681 | 0.775862 | 0.07042 | 0 | 0.105263 | 0 | 0 | 0.272727 | 0.1703 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010526 | 0.010526 | null | null | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2beb463446fec1589275c586e365105c8dfdbfba | 7,551 | py | Python | wallriori/wallmodels/wallmodels.py | timofeymukha/wallriori | a24961da70f79fd51cd0ab70a9bbeac2d939103b | [
"MIT"
] | null | null | null | wallriori/wallmodels/wallmodels.py | timofeymukha/wallriori | a24961da70f79fd51cd0ab70a9bbeac2d939103b | [
"MIT"
] | null | null | null | wallriori/wallmodels/wallmodels.py | timofeymukha/wallriori | a24961da70f79fd51cd0ab70a9bbeac2d939103b | [
"MIT"
] | 1 | 2019-03-20T22:41:47.000Z | 2019-03-20T22:41:47.000Z | # This file is part of wallriori
# (c) Timofey Mukha
# The code is released under the MIT Licence.
# See LICENCE.txt and the Legal section in the README for more information
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
from functools im... | 24.676471 | 84 | 0.569991 | 919 | 7,551 | 4.584331 | 0.173014 | 0.063138 | 0.029907 | 0.019938 | 0.554474 | 0.542606 | 0.505103 | 0.478282 | 0.43342 | 0.413007 | 0 | 0.01045 | 0.328301 | 7,551 | 305 | 85 | 24.757377 | 0.820189 | 0.272414 | 0 | 0.5 | 0 | 0 | 0.014789 | 0.004791 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227941 | false | 0 | 0.051471 | 0.066176 | 0.441176 | 0.014706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2bebfdea753417551d4a6978356004a6ba07cbe1 | 299 | py | Python | _site/lectures/Week 01 - Language basics, Generating Data, Storing Data/inclass-test.py | BrianKolowitz/data-focused-python | 80c9345717745c54c77445e30452a9e9d9df6e5d | [
"MIT"
] | 29 | 2019-03-20T22:02:52.000Z | 2021-11-03T12:46:20.000Z | lectures/Week 01 - Language basics, Generating Data, Storing Data/inclass-test.py | xiangyuzeng/data-focused-python | db0b289875b1cc01744c126cf0f54d4d70d5d2af | [
"MIT"
] | 2 | 2019-10-31T20:36:36.000Z | 2019-10-31T20:36:36.000Z | lectures/Week 01 - Language basics, Generating Data, Storing Data/inclass-test.py | xiangyuzeng/data-focused-python | db0b289875b1cc01744c126cf0f54d4d70d5d2af | [
"MIT"
] | 33 | 2019-03-20T22:45:40.000Z | 2022-01-26T03:56:59.000Z |
def test_add_two_params():
expected = 5
actual = add(2, 3)
assert expected == actual
def test_add_three_params():
expected = 9
actual = add(2, 3, 4)
assert expected == actual
def add(a, b, c=None):
if c is None:
return a + b
else:
return a + b + c | 17.588235 | 29 | 0.568562 | 47 | 299 | 3.489362 | 0.468085 | 0.036585 | 0.121951 | 0.134146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034653 | 0.324415 | 299 | 17 | 30 | 17.588235 | 0.777228 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.230769 | false | 0 | 0 | 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 |
2bf10e3fb58c485f9473108231b6de44288634d0 | 2,943 | py | Python | Nstr/nstr.py | neutronspelling/NStr | 112b57fc2d013ece0b5e53de88b71d6ab6690aaa | [
"MIT"
] | null | null | null | Nstr/nstr.py | neutronspelling/NStr | 112b57fc2d013ece0b5e53de88b71d6ab6690aaa | [
"MIT"
] | null | null | null | Nstr/nstr.py | neutronspelling/NStr | 112b57fc2d013ece0b5e53de88b71d6ab6690aaa | [
"MIT"
] | null | null | null | # versi 1.26.11
from string import ascii_lowercase, ascii_uppercase
from random import randint
from datetime import datetime
class NStr:
def __init__(self):
self.nstr = ""
self.dt = datetime.now()
def cap_random(self, alpa: str, cap: str) -> str:
# null = ""
lower_to_upper = {k... | 29.43 | 85 | 0.525994 | 388 | 2,943 | 3.835052 | 0.195876 | 0.052419 | 0.066532 | 0.096774 | 0.505376 | 0.370296 | 0.318548 | 0.254032 | 0.241263 | 0.168011 | 0 | 0.025547 | 0.348284 | 2,943 | 100 | 86 | 29.43 | 0.750261 | 0.013931 | 0 | 0.426829 | 0 | 0 | 0.012418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.170732 | false | 0 | 0.04878 | 0.036585 | 0.512195 | 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 |
2bf777c3475351efc1a2aa4920ee4dcb2c1c37ec | 1,012 | py | Python | compile.py | ilausuch/il.angularUI | 6178adb3b1527b724d0ac112d3ee150f5f786a41 | [
"MIT"
] | null | null | null | compile.py | ilausuch/il.angularUI | 6178adb3b1527b724d0ac112d3ee150f5f786a41 | [
"MIT"
] | null | null | null | compile.py | ilausuch/il.angularUI | 6178adb3b1527b724d0ac112d3ee150f5f786a41 | [
"MIT"
] | null | null | null | import re
def compile(name):
print "Compiling "+name+"..."
file = open('src/' + name + '/' + name + '.tpl.html', 'r')
tpl=file.read()
tpl=tpl.replace("'","\\'");
tpl=tpl.replace("\n","").replace("\r","").replace("\t"," ")
tpl=re.sub("\s\s+" , " ", tpl)
file = open('src/' + name + '/' + name + '.js', 'r')
js=... | 22.488889 | 60 | 0.615613 | 127 | 1,012 | 4.858268 | 0.377953 | 0.077796 | 0.053485 | 0.072934 | 0.251216 | 0.094003 | 0.094003 | 0.094003 | 0 | 0 | 0 | 0.001134 | 0.128459 | 1,012 | 45 | 61 | 22.488889 | 0.698413 | 0 | 0 | 0.153846 | 0 | 0 | 0.253702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.025641 | 0.025641 | 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 |
2bfa8acdb3e6dbc79c3509d043c07916584482a1 | 3,442 | py | Python | hit_finding/hit_finder/VMXI/vmxi_finder.py | beamline-i24/Serial_processing_scripts | ca97e3cd7ba991636171eafa126dc6e1aa4c53cc | [
"Apache-2.0"
] | null | null | null | hit_finding/hit_finder/VMXI/vmxi_finder.py | beamline-i24/Serial_processing_scripts | ca97e3cd7ba991636171eafa126dc6e1aa4c53cc | [
"Apache-2.0"
] | null | null | null | hit_finding/hit_finder/VMXI/vmxi_finder.py | beamline-i24/Serial_processing_scripts | ca97e3cd7ba991636171eafa126dc6e1aa4c53cc | [
"Apache-2.0"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import re
import argparse
image_finder= re.compile(r'<file-pattern-index>(\d+)</file-pattern-index>')
spot_count= re.compile(r'<spot_count_no_ice>(\d+)</spot_count_no_ice>')
spot_ice= re.compile(r'<spot_count>(\d+)</spot_count>')
total_intensity= re.compile(r'<total_i... | 36.617021 | 113 | 0.633062 | 462 | 3,442 | 4.430736 | 0.25974 | 0.057157 | 0.043967 | 0.02638 | 0.071812 | 0.027357 | 0 | 0 | 0 | 0 | 0 | 0.009653 | 0.247531 | 3,442 | 93 | 114 | 37.010753 | 0.780695 | 0 | 0 | 0.071429 | 0 | 0 | 0.103138 | 0.061011 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2bfadefe7c5d9b280d27365626957bac9db2347e | 798 | py | Python | project/config/wsgi.py | beijbom/coralnet | c3f4a44eeb60cb41a079329a0068dc8b34096e89 | [
"BSD-2-Clause"
] | 31 | 2019-12-08T14:22:52.000Z | 2021-12-27T04:58:12.000Z | project/config/wsgi.py | beijbom/coralnet | c3f4a44eeb60cb41a079329a0068dc8b34096e89 | [
"BSD-2-Clause"
] | 193 | 2019-12-07T23:27:43.000Z | 2022-03-05T08:05:46.000Z | project/config/wsgi.py | beijbom/coralnet | c3f4a44eeb60cb41a079329a0068dc8b34096e89 | [
"BSD-2-Clause"
] | null | null | null | """
WSGI config for this Django project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/
"""
import os
from django.core.exceptions import ImproperlyConfigured
from django.core.wsgi impo... | 33.25 | 78 | 0.774436 | 117 | 798 | 5.213675 | 0.641026 | 0.114754 | 0.045902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14787 | 798 | 23 | 79 | 34.695652 | 0.897059 | 0.535088 | 0 | 0 | 0 | 0 | 0.32687 | 0.185596 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
2bfafb5fe43769d0ca585c2617530540be86bff1 | 922 | py | Python | Codes/gracekoo/interview_26.py | liuxiaohui1221/algorithm | d80e64185ceb4798ac5389bfbd226dc1d406f6b5 | [
"Apache-2.0"
] | null | null | null | Codes/gracekoo/interview_26.py | liuxiaohui1221/algorithm | d80e64185ceb4798ac5389bfbd226dc1d406f6b5 | [
"Apache-2.0"
] | null | null | null | Codes/gracekoo/interview_26.py | liuxiaohui1221/algorithm | d80e64185ceb4798ac5389bfbd226dc1d406f6b5 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# @Time: 2020/6/22 22:33
# @Author: GraceKoo
# @File: interview_26.py
# @Desc: https://leetcode-cn.com/problems/
# er-cha-sou-suo-shu-yu-shuang-xiang-lian-biao-lcof/
"""
# Definition for a Node.
class Node:
def __init__(self, val, left=None, right=None):
self.val = val
self... | 26.342857 | 74 | 0.587852 | 128 | 922 | 4.125 | 0.476563 | 0.170455 | 0.083333 | 0.05303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029542 | 0.265727 | 922 | 34 | 75 | 27.117647 | 0.750369 | 0.389371 | 0 | 0 | 0 | 0 | 0.014599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
2bfbae0f25a7d24978b7605f1f2482e82d219c1c | 1,603 | py | Python | tests/connection_integration_tests/pub_sub_test.py | ZacharyATanenbaum/service_framework | b5dde4407998350d1b7ad09284110b986fd4e12a | [
"MIT"
] | 1 | 2020-03-20T21:33:56.000Z | 2020-03-20T21:33:56.000Z | tests/connection_integration_tests/pub_sub_test.py | ZacharyATanenbaum/service_framework | b5dde4407998350d1b7ad09284110b986fd4e12a | [
"MIT"
] | 1 | 2020-03-22T03:48:45.000Z | 2020-03-22T03:48:45.000Z | tests/connection_integration_tests/pub_sub_test.py | ZacharyATanenbaum/service_framework | b5dde4407998350d1b7ad09284110b986fd4e12a | [
"MIT"
] | null | null | null | """ File to test the Publisher and Subscriber Connections """
import subprocess
from connection_testing_utils import get_exec_command_for_python_program
from service_framework import get_logger
BASE_DIR = './tests/connection_integration_tests/data/pub_sub_test'
LOG = get_logger()
def test_regular_pub_sub_connection... | 32.06 | 82 | 0.766687 | 229 | 1,603 | 4.934498 | 0.266376 | 0.056637 | 0.061947 | 0.075221 | 0.702655 | 0.638938 | 0.612389 | 0.60177 | 0.60177 | 0.60177 | 0 | 0 | 0.166563 | 1,603 | 49 | 83 | 32.714286 | 0.845808 | 0.150967 | 0 | 0.62069 | 0 | 0 | 0.203184 | 0.203184 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.103448 | 0 | 0.172414 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2bfe23ab8484d9e91e871306155dc129555268e0 | 482 | py | Python | polyaxon/events_handlers/tasks/record.py | elyase/polyaxon | 1c19f059a010a6889e2b7ea340715b2bcfa382a0 | [
"MIT"
] | null | null | null | polyaxon/events_handlers/tasks/record.py | elyase/polyaxon | 1c19f059a010a6889e2b7ea340715b2bcfa382a0 | [
"MIT"
] | null | null | null | polyaxon/events_handlers/tasks/record.py | elyase/polyaxon | 1c19f059a010a6889e2b7ea340715b2bcfa382a0 | [
"MIT"
] | null | null | null | import auditor
from polyaxon.celery_api import celery_app
from polyaxon.settings import EventsCeleryTasks
@celery_app.task(name=EventsCeleryTasks.EVENTS_NOTIFY, ignore_result=True)
def events_notify(event):
auditor.notify(event)
@celery_app.task(name=EventsCeleryTasks.EVENTS_LOG, ignore_result=True)
def events... | 24.1 | 74 | 0.817427 | 65 | 482 | 5.846154 | 0.307692 | 0.094737 | 0.102632 | 0.134211 | 0.539474 | 0.342105 | 0.236842 | 0 | 0 | 0 | 0 | 0 | 0.091286 | 482 | 19 | 75 | 25.368421 | 0.86758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 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 |
920567a19c4c1bfd44713ea97fb3c4b5105068e6 | 1,755 | py | Python | csv_uploader/models.py | treebohotels/treebo-csv-uploader | 6fad3c33e34627bf3be1365c4526ab2f7d385741 | [
"MIT"
] | null | null | null | csv_uploader/models.py | treebohotels/treebo-csv-uploader | 6fad3c33e34627bf3be1365c4526ab2f7d385741 | [
"MIT"
] | null | null | null | csv_uploader/models.py | treebohotels/treebo-csv-uploader | 6fad3c33e34627bf3be1365c4526ab2f7d385741 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from datetime import datetime, timedelta
from django.db import models
from django.conf import settings
from djutil.models import TimeStampedModel
class CsvJob(TimeStampedModel):
SuccessStatus = 'success'
FailedStatus = 'failed'
PendingStatus = 'pending'
STATUSES = (
... | 28.306452 | 104 | 0.673504 | 189 | 1,755 | 6.116402 | 0.391534 | 0.043253 | 0.110727 | 0.131488 | 0.384083 | 0.384083 | 0.384083 | 0.384083 | 0.302768 | 0.214533 | 0 | 0.01013 | 0.212536 | 1,755 | 61 | 105 | 28.770492 | 0.826339 | 0.011966 | 0 | 0.363636 | 0 | 0 | 0.050838 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0.045455 | 0.613636 | 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 |
920d1aeab68386ef1d011d1af560c870c4869f72 | 3,667 | py | Python | data_prep/yelp_dataset/import_into_neo.py | Nithanaroy/GeoReachRecommender | 74443bad1cb363582736f8fa9294a91321848def | [
"MIT"
] | 1 | 2020-03-25T17:39:10.000Z | 2020-03-25T17:39:10.000Z | data_prep/yelp_dataset/import_into_neo.py | Nithanaroy/GeoReachRecommender | 74443bad1cb363582736f8fa9294a91321848def | [
"MIT"
] | null | null | null | data_prep/yelp_dataset/import_into_neo.py | Nithanaroy/GeoReachRecommender | 74443bad1cb363582736f8fa9294a91321848def | [
"MIT"
] | 4 | 2017-01-21T15:16:55.000Z | 2020-03-28T17:43:47.000Z | """
Creates the social and spatial graph in neo4j
For creating social graph we use user.json
For creating spatial graph we use business.json
For linking both these graphs we use review.json
"""
import json, time, gc
from py2neo import Graph
from py2neo.packages.httpstream import http
import os, secrets
def insert(g... | 35.259615 | 111 | 0.583856 | 493 | 3,667 | 4.263692 | 0.269777 | 0.052331 | 0.048525 | 0.019981 | 0.20647 | 0.110847 | 0.075167 | 0.075167 | 0.075167 | 0 | 0 | 0.011215 | 0.270521 | 3,667 | 103 | 112 | 35.601942 | 0.774579 | 0.084265 | 0 | 0.26087 | 0 | 0.057971 | 0.349267 | 0.018144 | 0 | 0 | 0 | 0.009709 | 0 | 0 | null | null | 0 | 0.057971 | null | null | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
920f43c98c03f2b0a7a1286e87634b8055207966 | 1,874 | gyp | Python | binding.gyp | ionagamed/node-rsvg | bad9eb5e0d52dc9d128ee24ce304f3091a9d2afb | [
"MIT"
] | 32 | 2015-10-04T03:39:54.000Z | 2020-11-09T14:59:30.000Z | binding.gyp | ionagamed/node-rsvg | bad9eb5e0d52dc9d128ee24ce304f3091a9d2afb | [
"MIT"
] | 16 | 2016-04-04T14:57:30.000Z | 2019-09-09T12:18:58.000Z | binding.gyp | ionagamed/node-rsvg | bad9eb5e0d52dc9d128ee24ce304f3091a9d2afb | [
"MIT"
] | 25 | 2015-10-17T09:58:01.000Z | 2021-06-23T07:43:03.000Z | {
"variables": {
"GTK_Root%": "c:\\gtk",
"conditions": [
[ "OS == 'mac'", {
"pkg_env": "PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig"
}, {
"pkg_env": ""
}]
]
},
"targets": [
{
"target_name": "rsvg",
"sources": [
"src/Rsvg.cc",
"src/Enums.cc",
"src/Autocrop.cc"
],
"include_d... | 19.93617 | 89 | 0.437567 | 161 | 1,874 | 4.962733 | 0.434783 | 0.037547 | 0.045056 | 0.075094 | 0.145181 | 0.060075 | 0.060075 | 0 | 0 | 0 | 0 | 0.009397 | 0.31857 | 1,874 | 93 | 90 | 20.150538 | 0.616288 | 0.007471 | 0 | 0.365591 | 0 | 0.010753 | 0.532831 | 0.062433 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9215c7e0ec4d6c69d00143dadaab1537c45c9411 | 592 | py | Python | Courses/MIT-OpenCourseWare/MIT-6.0001/Lecture 4 - Decomposition, Abstraction, and Functions/My codes/Experimenting functions.py | keivanipchihagh/Intro_To_ML | 2739b58455cac48366dc6be10d3daa494f35eb37 | [
"Apache-2.0"
] | 7 | 2021-02-03T18:57:34.000Z | 2021-02-09T10:37:15.000Z | Courses/MIT-OpenCourseWare/MIT-6.0001/Lecture 4 - Decomposition, Abstraction, and Functions/My codes/Experimenting functions.py | keivanipchihagh/Intro_To_ML | 2739b58455cac48366dc6be10d3daa494f35eb37 | [
"Apache-2.0"
] | null | null | null | Courses/MIT-OpenCourseWare/MIT-6.0001/Lecture 4 - Decomposition, Abstraction, and Functions/My codes/Experimenting functions.py | keivanipchihagh/Intro_To_ML | 2739b58455cac48366dc6be10d3daa494f35eb37 | [
"Apache-2.0"
] | 1 | 2020-07-22T00:21:29.000Z | 2020-07-22T00:21:29.000Z | def is_even_with_return(i):
print('with return')
remainder = i % 2
return remainder == 0
print(is_even_with_return(132))
def is_even(i):
return i % 2 == 0
print("All numbers between 0 and 20: even or not")
for i in range(20):
if is_even(i):
print(i, "even")
else:
print(i, "odd... | 15.578947 | 50 | 0.58277 | 104 | 592 | 3.163462 | 0.346154 | 0.072948 | 0.136778 | 0.097264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032483 | 0.271959 | 592 | 37 | 51 | 16 | 0.730858 | 0 | 0 | 0 | 0 | 0 | 0.165541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.071429 | 0.464286 | 0.357143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
921a60c72627de7c603827db2ae26aa6b0b3de43 | 4,210 | py | Python | ebl/transliteration/domain/text_line.py | ElectronicBabylonianLiterature/dictionary | 5977a57314cf57f94f75cd12520f178b1d6a6555 | [
"MIT"
] | 4 | 2020-04-12T14:24:51.000Z | 2020-10-15T15:48:15.000Z | ebl/transliteration/domain/text_line.py | ElectronicBabylonianLiterature/dictionary | 5977a57314cf57f94f75cd12520f178b1d6a6555 | [
"MIT"
] | 200 | 2019-12-04T09:53:20.000Z | 2022-03-30T20:11:31.000Z | ebl/transliteration/domain/text_line.py | ElectronicBabylonianLiterature/dictionary | 5977a57314cf57f94f75cd12520f178b1d6a6555 | [
"MIT"
] | 1 | 2021-09-06T16:22:39.000Z | 2021-09-06T16:22:39.000Z | from itertools import zip_longest
from typing import Callable, Iterable, Optional, Sequence, Type, TypeVar, Union, cast
import attr
import pydash
from ebl.lemmatization.domain.lemmatization import (
LemmatizationError,
LemmatizationToken,
)
from ebl.merger import Merger
from ebl.transliteration.domain.alignme... | 31.893939 | 85 | 0.684086 | 482 | 4,210 | 5.834025 | 0.213693 | 0.027383 | 0.070413 | 0.089616 | 0.173542 | 0.065434 | 0.04623 | 0.04623 | 0.04623 | 0.04623 | 0 | 0.000607 | 0.217815 | 4,210 | 131 | 86 | 32.137405 | 0.852111 | 0 | 0 | 0.126214 | 0 | 0 | 0.024941 | 0.009976 | 0 | 0 | 0 | 0 | 0 | 1 | 0.165049 | false | 0 | 0.145631 | 0.087379 | 0.504854 | 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 |
921c088ee8a30e9fff434966ea8216d50b7b5b22 | 3,104 | py | Python | python/schedule/threaded_scheduler.py | bdastur/notes | ee1bebe194f5ec5a8319cf79f7b3e3142e510d41 | [
"Apache-2.0"
] | 4 | 2018-02-14T14:28:27.000Z | 2022-01-20T18:06:02.000Z | python/schedule/threaded_scheduler.py | bdastur/notes | ee1bebe194f5ec5a8319cf79f7b3e3142e510d41 | [
"Apache-2.0"
] | null | null | null | python/schedule/threaded_scheduler.py | bdastur/notes | ee1bebe194f5ec5a8319cf79f7b3e3142e510d41 | [
"Apache-2.0"
] | 1 | 2020-02-18T20:22:01.000Z | 2020-02-18T20:22:01.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
For jobs that take longer to run it is not recommended to run them
'''
import datetime
import threading
import time
import schedule
import queue
def check_password_policy(**kwargs):
startTime = datetime.datetime.now()
print("[%s] passwd policy check %s" % (... | 32.673684 | 97 | 0.615335 | 388 | 3,104 | 4.791237 | 0.255155 | 0.068854 | 0.081764 | 0.053792 | 0.49489 | 0.418505 | 0.376547 | 0.268962 | 0.204411 | 0.204411 | 0 | 0.011581 | 0.193299 | 3,104 | 94 | 98 | 33.021277 | 0.730831 | 0.190722 | 0 | 0.181818 | 0 | 0 | 0.173023 | 0.02489 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109091 | false | 0.090909 | 0.090909 | 0 | 0.2 | 0.254545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ecf73510cb33acb15acba4975e0ae2e7028ca1b3 | 1,861 | py | Python | registry/sql/models/module.py | rmb938/tf-registry | bce809ae52e65549b05b836d3f70e8a1de2f2cec | [
"MIT"
] | 3 | 2019-02-25T05:15:39.000Z | 2020-11-26T02:56:10.000Z | registry/sql/models/module.py | rmb938/tf-registry | bce809ae52e65549b05b836d3f70e8a1de2f2cec | [
"MIT"
] | null | null | null | registry/sql/models/module.py | rmb938/tf-registry | bce809ae52e65549b05b836d3f70e8a1de2f2cec | [
"MIT"
] | null | null | null | import uuid
from sqlalchemy import Column, String, func, Index, ForeignKey
from sqlalchemy_utils import ArrowType, UUIDType
from registry.sql.database import Base
class Module(Base):
__tablename__ = 'modules'
id = Column(UUIDType, primary_key=True, default=uuid.uuid4)
organization_id = Column(UUIDType,... | 35.788462 | 98 | 0.733477 | 227 | 1,861 | 5.740088 | 0.207048 | 0.119724 | 0.073676 | 0.119724 | 0.607061 | 0.556408 | 0.556408 | 0.556408 | 0.556408 | 0.450499 | 0 | 0.001893 | 0.148307 | 1,861 | 51 | 99 | 36.490196 | 0.820189 | 0 | 0 | 0.411765 | 0 | 0 | 0.084363 | 0.038152 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.823529 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ecf78edbefe4047af98876515bd285cc43f6fea2 | 2,577 | py | Python | public/htbin/db.py | aceeu/hotels | 49d2e0c21a3e24f0a1c76c6fb851bc36c335aa13 | [
"MIT"
] | null | null | null | public/htbin/db.py | aceeu/hotels | 49d2e0c21a3e24f0a1c76c6fb851bc36c335aa13 | [
"MIT"
] | null | null | null | public/htbin/db.py | aceeu/hotels | 49d2e0c21a3e24f0a1c76c6fb851bc36c335aa13 | [
"MIT"
] | 1 | 2020-02-08T19:07:19.000Z | 2020-02-08T19:07:19.000Z | import sqlite3
import os
path = os.path.dirname(os.path.abspath(__file__))
hotelsfilename = os.path.join(path, 'hotels.db')
conn = sqlite3.connect(hotelsfilename)
cursor = conn.cursor()
#user
def addUser(name, password , hotel, type):
try:
cursor.execute("""INSERT INTO users (name, password, ... | 32.620253 | 126 | 0.612728 | 283 | 2,577 | 5.565371 | 0.265018 | 0.107302 | 0.060952 | 0.118095 | 0.389841 | 0.254603 | 0.191746 | 0.063492 | 0.063492 | 0 | 0 | 0.004541 | 0.230889 | 2,577 | 78 | 127 | 33.038462 | 0.790111 | 0.00388 | 0 | 0.4375 | 0 | 0 | 0.299558 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.171875 | false | 0.1875 | 0.03125 | 0 | 0.28125 | 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 |
ecf862837670c745ba3a3855185c2c4e38d8864d | 5,713 | py | Python | agents/seqseq_agent.py | sidg54/textgeneration | 777680232d89304678450f82e34558c857a69e8d | [
"Unlicense"
] | null | null | null | agents/seqseq_agent.py | sidg54/textgeneration | 777680232d89304678450f82e34558c857a69e8d | [
"Unlicense"
] | null | null | null | agents/seqseq_agent.py | sidg54/textgeneration | 777680232d89304678450f82e34558c857a69e8d | [
"Unlicense"
] | null | null | null | r'''
'''
# standard library imports
from __future__ import absolute_import
import math
import tqdm
import random
import shutil
from os import getcwd
from datetime import datetime
# third party imports
import numpy as np
import torch
import torch.nn as nn
import torch.optim as optim
from torch.backends import cudnn
fro... | 31.39011 | 97 | 0.593559 | 670 | 5,713 | 4.935821 | 0.28806 | 0.048382 | 0.038101 | 0.027215 | 0.128818 | 0.109767 | 0.05322 | 0.05322 | 0.026005 | 0 | 0 | 0.004079 | 0.313321 | 5,713 | 182 | 98 | 31.39011 | 0.838899 | 0.042885 | 0 | 0.123894 | 0 | 0 | 0.071413 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.035398 | 0.141593 | null | null | 0.026549 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a602bbe1133307328f6b958ca5a2d6d04967da79 | 384 | py | Python | 278-First-Bad-Version/solution.py | alfmunny/leetcode | e35d2164c7e6e66410309fe1667ceab5a7689bef | [
"MIT"
] | null | null | null | 278-First-Bad-Version/solution.py | alfmunny/leetcode | e35d2164c7e6e66410309fe1667ceab5a7689bef | [
"MIT"
] | null | null | null | 278-First-Bad-Version/solution.py | alfmunny/leetcode | e35d2164c7e6e66410309fe1667ceab5a7689bef | [
"MIT"
] | null | null | null | class Solution:
def firstBadVersion(self, n):
if n == 1:
return 1
l, r = 2, n
while l <= r:
mid = (l + r) // 2
if isBadVersion(mid) and not isBadVersion(mid - 1):
return mid
elif isBadVersion(mid):
r = mid - 1... | 21.333333 | 63 | 0.395833 | 44 | 384 | 3.454545 | 0.431818 | 0.138158 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043011 | 0.515625 | 384 | 17 | 64 | 22.588235 | 0.774194 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.357143 | 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 |
a60a55495e356f4a1729d8e89c609c6706aff3e8 | 1,172 | py | Python | setup.py | litedesk/litedesk-lib-airwatch | 19c47a50d606f966497a6e24fd892bca1bf11354 | [
"Apache-2.0"
] | 1 | 2016-12-22T07:10:45.000Z | 2016-12-22T07:10:45.000Z | setup.py | litedesk/litedesk-lib-airwatch | 19c47a50d606f966497a6e24fd892bca1bf11354 | [
"Apache-2.0"
] | null | null | null | setup.py | litedesk/litedesk-lib-airwatch | 19c47a50d606f966497a6e24fd892bca1bf11354 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Copyright 2014, Deutsche Telekom AG - Laboratories (T-Labs)
#
# 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
#
# Unl... | 31.675676 | 74 | 0.716724 | 157 | 1,172 | 5.305732 | 0.681529 | 0.072029 | 0.031212 | 0.038415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011329 | 0.171502 | 1,172 | 36 | 75 | 32.555556 | 0.84655 | 0.513652 | 0 | 0 | 0 | 0 | 0.361511 | 0.082734 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.058824 | 0 | 0.058824 | 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 |
a60c1d6775b19dad03f464477054aa18719e03a6 | 2,878 | py | Python | alembic/env.py | eduardolujan/hexagonal_architecture_django | 8055927cb460bc40f3a2651c01a9d1da696177e8 | [
"BSD-3-Clause"
] | 6 | 2020-08-09T23:41:08.000Z | 2021-03-16T22:05:40.000Z | alembic/env.py | eduardolujan/hexagonal_architecture_django | 8055927cb460bc40f3a2651c01a9d1da696177e8 | [
"BSD-3-Clause"
] | 1 | 2020-10-02T02:59:38.000Z | 2020-10-02T02:59:38.000Z | alembic/env.py | eduardolujan/hexagonal_architecture_django | 8055927cb460bc40f3a2651c01a9d1da696177e8 | [
"BSD-3-Clause"
] | 2 | 2021-03-16T22:05:43.000Z | 2021-04-30T06:35:25.000Z |
import os
import sys
from path import Path
from logging.config import fileConfig
from sqlalchemy import engine_from_config
from sqlalchemy import pool
from alembic import context
from environ import Env as get_env
env = get_env()
current_path = os.path.join(__file__)
root_path = Path(current_path).parent.parent
... | 27.941748 | 127 | 0.722724 | 388 | 2,878 | 5.170103 | 0.371134 | 0.051844 | 0.034895 | 0.018943 | 0.046859 | 0.046859 | 0.046859 | 0 | 0 | 0 | 0 | 0.002137 | 0.186935 | 2,878 | 102 | 128 | 28.215686 | 0.855128 | 0.30959 | 0 | 0.113208 | 0 | 0 | 0.134896 | 0.053646 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037736 | false | 0.056604 | 0.150943 | 0 | 0.188679 | 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 |
a62206736b178ba52f2e42117e1a26934e2cd56a | 5,694 | py | Python | epp/useq_route_artifacts.py | UMCUGenetics/clarity_utils | 85c79a906bc587fbdc67d1329e0bc56923769d53 | [
"MIT"
] | 1 | 2018-06-18T16:15:48.000Z | 2018-06-18T16:15:48.000Z | epp/useq_route_artifacts.py | UMCUGenetics/clarity_utils | 85c79a906bc587fbdc67d1329e0bc56923769d53 | [
"MIT"
] | 1 | 2018-06-20T13:00:40.000Z | 2018-06-26T12:10:58.000Z | epp/useq_route_artifacts.py | UMCUGenetics/clarity_utils_usf | 85c79a906bc587fbdc67d1329e0bc56923769d53 | [
"MIT"
] | null | null | null | from genologics.entities import Step
from config import Config
from epp.useq_run_status_mail import run_finished
def routeArtifacts(lims, step_uri, input):
step = Step(lims, uri=step_uri)
current_step = step.configuration.name
print(current_step)
to_route = {}
for io_map in step.details.input_out... | 57.515152 | 202 | 0.616087 | 644 | 5,694 | 5.228261 | 0.167702 | 0.087318 | 0.118503 | 0.17226 | 0.614791 | 0.566974 | 0.517375 | 0.446688 | 0.407484 | 0.362043 | 0 | 0.003031 | 0.246751 | 5,694 | 98 | 203 | 58.102041 | 0.782 | 0.144714 | 0 | 0.235294 | 0 | 0 | 0.256654 | 0.015886 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.044118 | 0 | 0.073529 | 0.044118 | 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 |
a623ffaf83512693ae589b85f6c1ceb0edaab094 | 1,580 | py | Python | Source/python/boot.py | SvenMatzke/PlantMonitor | 39ad212557fd822fe826142c8e9fada15283e6cc | [
"MIT"
] | 8 | 2018-01-09T16:40:54.000Z | 2020-06-26T04:27:58.000Z | Source/python/boot.py | SvenMatzke/PlantMonitor | 39ad212557fd822fe826142c8e9fada15283e6cc | [
"MIT"
] | 7 | 2018-04-17T19:17:39.000Z | 2018-06-05T16:50:24.000Z | Source/python/boot.py | SvenMatzke/PlantMonitor | 39ad212557fd822fe826142c8e9fada15283e6cc | [
"MIT"
] | 2 | 2018-06-23T13:06:34.000Z | 2018-07-24T19:18:53.000Z | # This file is executed on every boot (including wake-boot from deepsleep)
import gc
import error
import time
gc.collect()
_batch_file = "batch_file.json"
try:
import wlan
import settings
import machine
import ujson
import ntptime
import sensor
import os
print("deactivate wlan")
w... | 28.727273 | 119 | 0.698734 | 223 | 1,580 | 4.695067 | 0.421525 | 0.094556 | 0.068768 | 0.030564 | 0.047755 | 0.047755 | 0 | 0 | 0 | 0 | 0 | 0.001586 | 0.201899 | 1,580 | 54 | 120 | 29.259259 | 0.828707 | 0.16519 | 0 | 0.105263 | 0 | 0 | 0.093822 | 0.019832 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.263158 | null | null | 0.078947 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a62770f40bc2ce595851d29271fdcc5c57e3ea48 | 480 | py | Python | aulaszeus/extensions.py | zerossB/aulas_zeus | 002fc29578aed3aa36a9b400882e638b68c123ea | [
"BSD-3-Clause"
] | null | null | null | aulaszeus/extensions.py | zerossB/aulas_zeus | 002fc29578aed3aa36a9b400882e638b68c123ea | [
"BSD-3-Clause"
] | null | null | null | aulaszeus/extensions.py | zerossB/aulas_zeus | 002fc29578aed3aa36a9b400882e638b68c123ea | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
aulaszeus.extensions
~~~~~~~~~~~~~~~~~~~~~~~~~~
AulasZeus extensions module
:copyright: (c) 2016 by Haynesss.
:license: BSD, see LICENSE for more details.
"""
from flask_mongoengine import MongoEngine
from flask_mail import Mail
from flask_assets import Environment
from... | 22.857143 | 48 | 0.69375 | 55 | 480 | 5.963636 | 0.490909 | 0.137195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012531 | 0.16875 | 480 | 21 | 49 | 22.857143 | 0.809524 | 0.372917 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a63da27844c2c0b2984333ef271f38ceb4a3be47 | 440 | py | Python | data/util.py | magical-eda/UT-AnLay | 63fc6f346df695400a9015117de8b67a971d42fe | [
"BSD-3-Clause"
] | 11 | 2019-12-11T23:02:59.000Z | 2021-06-19T13:48:01.000Z | data/util.py | magical-eda/UT-AnLay | 63fc6f346df695400a9015117de8b67a971d42fe | [
"BSD-3-Clause"
] | 5 | 2020-01-28T22:17:53.000Z | 2021-11-10T19:40:19.000Z | data/util.py | magical-eda/UT-AnLay | 63fc6f346df695400a9015117de8b67a971d42fe | [
"BSD-3-Clause"
] | 8 | 2019-12-15T01:59:55.000Z | 2022-02-25T01:31:40.000Z | #
# @file util.py
# @author Mingjie Liu
# @date July 2019
# @brief generate coordinate channel embeddings
#
import numpy as np
# Coordinate channel embeddings
def cordinate_img(img):
# img shape (dim, dim, chan)
new_img_x = np.zeros((img.shape))
new_img_y = np.zeros((img.shape))
for x,y,c in list(zip... | 20.952381 | 47 | 0.643182 | 78 | 440 | 3.461538 | 0.474359 | 0.133333 | 0.077778 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020468 | 0.222727 | 440 | 20 | 48 | 22 | 0.769006 | 0.345455 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a658fda8f40f181663e9efade493d1afe1e29e67 | 3,199 | py | Python | v1/gateway.py | aminekun90/gateway_config_tools | 8c6dbeb2a02d7987218a4b42593e8192e6fceade | [
"MIT"
] | null | null | null | v1/gateway.py | aminekun90/gateway_config_tools | 8c6dbeb2a02d7987218a4b42593e8192e6fceade | [
"MIT"
] | null | null | null | v1/gateway.py | aminekun90/gateway_config_tools | 8c6dbeb2a02d7987218a4b42593e8192e6fceade | [
"MIT"
] | null | null | null |
import yaml
import logging
from v1.comms import Comms
from v1.sensor import SensorType, SensorTypes
from v1.monitor import Monitor, Monitors
MONITORS = None
COMMS = None
SENSORS = None
class Gateway:
# api_token = None
# send_update_cron = 1440
# comms = Comms()
# send_update_cron = "0 0 * * *"
... | 33.322917 | 115 | 0.589872 | 359 | 3,199 | 5.111421 | 0.220056 | 0.070845 | 0.053406 | 0.029428 | 0.225613 | 0.142779 | 0.073025 | 0.042507 | 0.042507 | 0 | 0 | 0.005874 | 0.308221 | 3,199 | 95 | 116 | 33.673684 | 0.823317 | 0.31291 | 0 | 0.044444 | 0 | 0 | 0.093396 | 0 | 0 | 0 | 0 | 0.010526 | 0 | 1 | 0.044444 | false | 0 | 0.111111 | 0 | 0.177778 | 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 |
a65c7ea87575e773d2c1da42f7c46ea4e57cf447 | 1,984 | py | Python | okr/migrations/0050_auto_20210311_1912.py | wdr-data/wdr-okr | 71c9e6e8d3521b1bb67d30310a93584389de2127 | [
"MIT"
] | 2 | 2021-07-28T08:46:13.000Z | 2022-01-19T17:05:48.000Z | okr/migrations/0050_auto_20210311_1912.py | wdr-data/wdr-okr | 71c9e6e8d3521b1bb67d30310a93584389de2127 | [
"MIT"
] | 3 | 2020-11-10T23:34:17.000Z | 2021-03-31T16:19:21.000Z | okr/migrations/0050_auto_20210311_1912.py | wdr-data/wdr-okr | 71c9e6e8d3521b1bb67d30310a93584389de2127 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-03-11 18:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("okr", "0049_auto_20210310_2321"),
]
operations = [
migrations.CreateModel(
name="PodcastCategory",
fields=[
... | 31.492063 | 90 | 0.428427 | 139 | 1,984 | 5.928058 | 0.568345 | 0.080097 | 0.033981 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030185 | 0.482359 | 1,984 | 62 | 91 | 32 | 0.772152 | 0.022681 | 0 | 0.160714 | 1 | 0 | 0.212184 | 0.024264 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.017857 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a65c965b6747d28fc766e5e881b31b11070c2cee | 358 | py | Python | django/demsausage/app/migrations/0003_remove_pollingplacenoms_chance_of_sausage.py | claudinec/demsausage | de94c13eef4b2ddf212cba75a90c062f338950c5 | [
"MIT"
] | 5 | 2019-03-15T11:53:18.000Z | 2021-05-02T03:50:26.000Z | django/demsausage/app/migrations/0003_remove_pollingplacenoms_chance_of_sausage.py | keithamoss/demsausage | fa289ef38d4e9cac44639ff6c2f2f91605ff0fb9 | [
"MIT"
] | 312 | 2019-03-01T06:35:13.000Z | 2022-03-17T13:31:40.000Z | django/demsausage/app/migrations/0003_remove_pollingplacenoms_chance_of_sausage.py | claudinec/demsausage | de94c13eef4b2ddf212cba75a90c062f338950c5 | [
"MIT"
] | 2 | 2018-11-21T04:40:28.000Z | 2018-11-23T00:08:14.000Z | # Generated by Django 2.1.7 on 2019-02-17 11:36
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('app', '0002_pollingplaces_chance_of_sausage'),
]
operations = [
migrations.RemoveField(
model_name='pollingplacenoms',
name=... | 19.888889 | 56 | 0.625698 | 38 | 358 | 5.710526 | 0.789474 | 0.073733 | 0.138249 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072797 | 0.27095 | 358 | 17 | 57 | 21.058824 | 0.758621 | 0.125698 | 0 | 0 | 1 | 0 | 0.231511 | 0.115756 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a65d93b450acc20c0bcd337839b56ade3302fbb4 | 2,094 | py | Python | physipy/quantity/calculus.py | mocquin/physipy | a44805dbf4e68544c987e07564dd4a8d50be8b4c | [
"MIT"
] | 5 | 2021-01-23T11:23:07.000Z | 2022-02-28T15:38:58.000Z | physipy/quantity/calculus.py | mocquin/physipy | a44805dbf4e68544c987e07564dd4a8d50be8b4c | [
"MIT"
] | null | null | null | physipy/quantity/calculus.py | mocquin/physipy | a44805dbf4e68544c987e07564dd4a8d50be8b4c | [
"MIT"
] | 2 | 2020-11-07T20:08:08.000Z | 2021-06-09T02:58:04.000Z | # !/usr/bin/env python
# -*- coding: utf-8 -*-
"""Usefull calculus fonctions compatible with Quantity objects.
These are basically numpy function wrapped with dimensions checks.
"""
import numbers as nb
import numpy as np
import scipy
import scipy.integrate
import scipy.optimize
import sympy as sp
from .dimension ... | 23.010989 | 75 | 0.618911 | 303 | 2,094 | 4.128713 | 0.412541 | 0.027978 | 0.033573 | 0.02558 | 0.16307 | 0.16307 | 0.123102 | 0.123102 | 0.123102 | 0.123102 | 0 | 0.011243 | 0.277937 | 2,094 | 91 | 76 | 23.010989 | 0.816138 | 0.357211 | 0 | 0.348837 | 0 | 0 | 0.006494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.186047 | false | 0.023256 | 0.209302 | 0 | 0.55814 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a6608ab39013f1abfb3d44451b41fdffd9aa6653 | 708 | py | Python | datawinners/accountmanagement/tests/unittests/test_organization_setting.py | ICT4H/dcs-web | fb0f53fad4401cfac1c1789ff28b9d5bda40c975 | [
"Apache-2.0"
] | 1 | 2015-11-02T09:11:12.000Z | 2015-11-02T09:11:12.000Z | datawinners/accountmanagement/tests/unittests/test_organization_setting.py | ICT4H/dcs-web | fb0f53fad4401cfac1c1789ff28b9d5bda40c975 | [
"Apache-2.0"
] | null | null | null | datawinners/accountmanagement/tests/unittests/test_organization_setting.py | ICT4H/dcs-web | fb0f53fad4401cfac1c1789ff28b9d5bda40c975 | [
"Apache-2.0"
] | null | null | null | # vim: ai ts=4 sts=4 et sw=4 encoding=utf-8
import unittest
from mock import Mock, patch
from nose.plugins.attrib import attr
from datawinners.accountmanagement.models import Organization, OrganizationSetting
class TestOrganizationSetting(unittest.TestCase):
@attr('unit_test')
def test_should_get_organisatio... | 39.333333 | 100 | 0.745763 | 89 | 708 | 5.696629 | 0.595506 | 0.04142 | 0.071006 | 0.094675 | 0.110454 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037351 | 0.168079 | 708 | 17 | 101 | 41.647059 | 0.82343 | 0.05791 | 0 | 0 | 0 | 0 | 0.067669 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.461538 | 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 |
a667b807200b5d523554a162da1bc6d570c1cfab | 190 | py | Python | script/lstm.py | Jahidul007/Python-Bootcamp | 3c870587465ff66c2c1871c8d3c4eea72463abda | [
"MIT"
] | 2 | 2020-12-07T16:07:07.000Z | 2020-12-07T16:08:53.000Z | script/lstm.py | purusharthmalik/Python-Bootcamp | 2ed1cf886d1081de200b0fdd4cb4e28008c7e3d1 | [
"MIT"
] | null | null | null | script/lstm.py | purusharthmalik/Python-Bootcamp | 2ed1cf886d1081de200b0fdd4cb4e28008c7e3d1 | [
"MIT"
] | 1 | 2020-10-03T16:38:02.000Z | 2020-10-03T16:38:02.000Z | import tensorflow as tf
num_nodes = 128
batch_size = 64
num_unrollings = 50
dropout = 0.2
vocabulary_size =128
ix = tf.Variable(tf.truncated_normal([vocabulary_size, num_nodes],stddev=0.02)) | 27.142857 | 79 | 0.789474 | 32 | 190 | 4.46875 | 0.6875 | 0.111888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088757 | 0.110526 | 190 | 7 | 79 | 27.142857 | 0.757396 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 |
a6681599ff963273646c4ba7c95e588fa95c5176 | 3,476 | py | Python | pipewrench/merge_test.py | caltangelo/pipewrench | 723e3840a40b7f8050450f39a568940dd6b80eec | [
"Apache-2.0"
] | 26 | 2017-10-06T22:36:16.000Z | 2022-02-02T13:29:24.000Z | pipewrench/merge_test.py | caltangelo/pipewrench | 723e3840a40b7f8050450f39a568940dd6b80eec | [
"Apache-2.0"
] | 42 | 2017-10-09T18:40:13.000Z | 2021-11-18T22:58:08.000Z | pipewrench/merge_test.py | caltangelo/pipewrench | 723e3840a40b7f8050450f39a568940dd6b80eec | [
"Apache-2.0"
] | 40 | 2017-10-11T18:50:39.000Z | 2022-02-15T08:49:33.000Z | # Copyright 2017 Cargill Incorporated
#
# 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 ... | 36.589474 | 85 | 0.69275 | 421 | 3,476 | 5.444181 | 0.299287 | 0.104712 | 0.109948 | 0.146597 | 0.544066 | 0.544066 | 0.544066 | 0.544066 | 0.522688 | 0.522688 | 0 | 0.002899 | 0.205984 | 3,476 | 95 | 86 | 36.589474 | 0.827536 | 0.17664 | 0 | 0.33871 | 0 | 0 | 0.186071 | 0.031305 | 0 | 0 | 0 | 0 | 0.225806 | 1 | 0.225806 | false | 0 | 0.032258 | 0 | 0.290323 | 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 |
a66835f5524662c6ca08a9ca819cd2b712d24414 | 3,552 | py | Python | book/book/spiders/comment.py | ChaosSoong/ScrapyDouban | e6a018a09e76f5f5506934e90b104091dfffe693 | [
"MIT"
] | 1 | 2021-04-12T13:37:48.000Z | 2021-04-12T13:37:48.000Z | book/book/spiders/comment.py | ChaosSoong/ScrapyDouban | e6a018a09e76f5f5506934e90b104091dfffe693 | [
"MIT"
] | null | null | null | book/book/spiders/comment.py | ChaosSoong/ScrapyDouban | e6a018a09e76f5f5506934e90b104091dfffe693 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import string
import random
import book.database as db
from scrapy import Spider
from book.items import Comment
class CommentSpider(Spider):
name = 'comment'
allowed_domains = ['book.douban.com']
books = db.conn.query('SELECT douban_id FROM books WHERE douba... | 33.828571 | 79 | 0.593187 | 416 | 3,552 | 4.903846 | 0.257212 | 0.058824 | 0.065196 | 0.055882 | 0.412255 | 0.377451 | 0.25098 | 0.25098 | 0.25098 | 0.128922 | 0 | 0.009878 | 0.287444 | 3,552 | 104 | 80 | 34.153846 | 0.796128 | 0.011824 | 0 | 0.292135 | 0 | 0 | 0.133124 | 0.0687 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05618 | null | null | 0.011236 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a66db711d9e8485b41a0929bf94e991451c3dac3 | 406 | py | Python | src/lists/migrations/0003_auto_20171226_1050.py | kierrez/movie-website | 74f4ed018aba545dec190b70d62abe0ac6085462 | [
"MIT"
] | 1 | 2019-03-02T20:06:16.000Z | 2019-03-02T20:06:16.000Z | src/lists/migrations/0003_auto_20171226_1050.py | kierrez/movie-website | 74f4ed018aba545dec190b70d62abe0ac6085462 | [
"MIT"
] | 1 | 2022-01-07T22:57:41.000Z | 2022-01-07T22:57:41.000Z | src/lists/migrations/0003_auto_20171226_1050.py | kierrez/movie-website | 74f4ed018aba545dec190b70d62abe0ac6085462 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-12-26 09:50
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('lists', '0002_auto_20171223_1656'),
]
operations = [
migrations.AlterUniqueTogether... | 20.3 | 48 | 0.62069 | 43 | 406 | 5.651163 | 0.860465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11 | 0.261084 | 406 | 19 | 49 | 21.368421 | 0.7 | 0.167488 | 0 | 0 | 1 | 0 | 0.110448 | 0.068657 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a674a9d6e7a3db555743a97a2db447d77b69b016 | 602 | py | Python | ai/states/debug_state.py | wonwon0/RobocupStrategyIA | 891028f616d476b05b23b40924d7c99502a718e3 | [
"MIT"
] | null | null | null | ai/states/debug_state.py | wonwon0/RobocupStrategyIA | 891028f616d476b05b23b40924d7c99502a718e3 | [
"MIT"
] | null | null | null | ai/states/debug_state.py | wonwon0/RobocupStrategyIA | 891028f616d476b05b23b40924d7c99502a718e3 | [
"MIT"
] | null | null | null | # Under MIT License, see LICENSE.txt
from ai.Util.singleton import Singleton
class DebugState(object, metaclass=Singleton):
def __init__(self):
self.from_ui_debug_commands = None
self.transformed_ui_debug_commands = []
self.from_ai_raw_debug_cmds = []
self.to_ui_packet_debug_cmd... | 27.363636 | 64 | 0.717608 | 81 | 602 | 4.888889 | 0.395062 | 0.080808 | 0.151515 | 0.075758 | 0.494949 | 0.227273 | 0 | 0 | 0 | 0 | 0 | 0 | 0.200997 | 602 | 21 | 65 | 28.666667 | 0.823285 | 0.056478 | 0 | 0 | 0 | 0 | 0 | 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 |
a678b8e10ac67d1b55a2232e23e150a229990aed | 1,625 | py | Python | projects/olds/ocr/ocr-tensorflow/config.py | Bingwen-Hu/hackaway | 69727d76fd652390d9660e9ea4354ba5cc76dd5c | [
"BSD-2-Clause"
] | null | null | null | projects/olds/ocr/ocr-tensorflow/config.py | Bingwen-Hu/hackaway | 69727d76fd652390d9660e9ea4354ba5cc76dd5c | [
"BSD-2-Clause"
] | null | null | null | projects/olds/ocr/ocr-tensorflow/config.py | Bingwen-Hu/hackaway | 69727d76fd652390d9660e9ea4354ba5cc76dd5c | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
""" config for characterOCR
"""
import tensorflow as tf
with open('wordset/words.txt', encoding='utf-8') as fwords:
words = fwords.read().strip()
with open('wordset/punct.txt', encoding='utf-8') as fpunct:
punct = fpunct.read().strip()
WORDSET = words + punct
tf.app.flags.DEFINE_strin... | 50.78125 | 139 | 0.749538 | 251 | 1,625 | 4.713147 | 0.38247 | 0.063398 | 0.126796 | 0.189349 | 0.418428 | 0.220626 | 0.199493 | 0.145393 | 0.074387 | 0 | 0 | 0.018256 | 0.089846 | 1,625 | 32 | 140 | 50.78125 | 0.781609 | 0.068923 | 0 | 0 | 0 | 0 | 0.463787 | 0.07907 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.047619 | 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 |
a67f15731fffc12c0c5f14b726194a40d95f6722 | 295 | py | Python | models/service_task.py | THM-MA/XSDATA-waypoint | dd94442f9d6677c525bf3ebb03c15fec52fa1079 | [
"MIT"
] | null | null | null | models/service_task.py | THM-MA/XSDATA-waypoint | dd94442f9d6677c525bf3ebb03c15fec52fa1079 | [
"MIT"
] | null | null | null | models/service_task.py | THM-MA/XSDATA-waypoint | dd94442f9d6677c525bf3ebb03c15fec52fa1079 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from .t_service_task import TServiceTask
__NAMESPACE__ = "http://www.omg.org/spec/BPMN/20100524/MODEL"
@dataclass
class ServiceTask(TServiceTask):
class Meta:
name = "serviceTask"
namespace = "http://www.omg.org/spec/BPMN/20100524/MODEL"
| 24.583333 | 65 | 0.735593 | 36 | 295 | 5.861111 | 0.583333 | 0.123223 | 0.151659 | 0.180095 | 0.407583 | 0.407583 | 0.407583 | 0.407583 | 0.407583 | 0 | 0 | 0.064 | 0.152542 | 295 | 11 | 66 | 26.818182 | 0.78 | 0 | 0 | 0 | 0 | 0 | 0.328814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.5 | 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 |
a682108a610bf3405882a319199bef01feb7884c | 4,395 | py | Python | preprocess/core/data_filter.py | MingyoJung/ksif | ccb96cc8c0fd4588ddb3e2ee65596691af914f86 | [
"MIT"
] | 2 | 2018-07-31T07:45:42.000Z | 2018-09-07T07:01:54.000Z | preprocess/core/data_filter.py | MingyoJung/ksif | ccb96cc8c0fd4588ddb3e2ee65596691af914f86 | [
"MIT"
] | 2 | 2018-07-30T10:48:31.000Z | 2018-08-02T11:33:24.000Z | preprocess/core/data_filter.py | MingyoJung/ksif | ccb96cc8c0fd4588ddb3e2ee65596691af914f86 | [
"MIT"
] | 1 | 2020-02-07T14:30:45.000Z | 2020-02-07T14:30:45.000Z | # -*- coding: utf-8 -*-
"""
:Author: Jaekyoung Kim
:Date: 2018. 6. 21.
"""
import math
import pandas as pd
from dateutil.relativedelta import relativedelta
from ksif.io.google_drive import query_google_spreadsheet, HOLDING_COMPANY_GID, DELISTED_COMPANY_GID, \
MERGED_COMPANY_GID, RELISTED_COMPANY_GID
from preproce... | 47.771739 | 117 | 0.741297 | 562 | 4,395 | 5.576512 | 0.245552 | 0.266752 | 0.077218 | 0.084876 | 0.422144 | 0.373006 | 0.239949 | 0.184429 | 0.116146 | 0.05552 | 0 | 0.011761 | 0.168146 | 4,395 | 91 | 118 | 48.296703 | 0.84546 | 0.219568 | 0 | 0 | 0 | 0 | 0.015111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | false | 0 | 0.12766 | 0 | 0.170213 | 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 |
a68298d7acf16ef34af655ff43c31ca6509fc07b | 3,559 | py | Python | build.py | Talon24/slabs-chatbot-scripts | 288f7629cdbfbe3f599f271767174fae00715ac6 | [
"MIT"
] | null | null | null | build.py | Talon24/slabs-chatbot-scripts | 288f7629cdbfbe3f599f271767174fae00715ac6 | [
"MIT"
] | 2 | 2021-09-29T22:15:50.000Z | 2022-02-04T23:41:10.000Z | build.py | Talon24/slobs-chatbot-scripts | 288f7629cdbfbe3f599f271767174fae00715ac6 | [
"MIT"
] | null | null | null | """Build the projects."""
import os
import re
import json
import zipfile
import pathlib
EXCLUDEDIRS = ["build", ".git", ".github"]
def main():
"""Main"""
generate_script_zips()
gather_all()
def generate_script_zips():
"""Make the script zipfiles, build the settings-json file from defaults."""
... | 33.575472 | 86 | 0.624614 | 446 | 3,559 | 4.874439 | 0.318386 | 0.018399 | 0.024839 | 0.016559 | 0.195492 | 0.149954 | 0.149954 | 0.124195 | 0.089236 | 0.089236 | 0 | 0.004022 | 0.231526 | 3,559 | 105 | 87 | 33.895238 | 0.790859 | 0.153976 | 0 | 0.164384 | 1 | 0 | 0.112762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109589 | false | 0.013699 | 0.068493 | 0 | 0.232877 | 0.054795 | 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 |
a691f29fb8ea75a55110bec32842028c6ca1f357 | 953 | py | Python | src/iac_scan_runner/checks/shellcheck.py | xlab-si/iac-scan-runner | 7296d89fc8f40eadcaded33a60adb3637c6fdb61 | [
"Apache-2.0"
] | null | null | null | src/iac_scan_runner/checks/shellcheck.py | xlab-si/iac-scan-runner | 7296d89fc8f40eadcaded33a60adb3637c6fdb61 | [
"Apache-2.0"
] | 3 | 2022-02-15T10:54:20.000Z | 2022-03-28T06:51:05.000Z | src/iac_scan_runner/checks/shellcheck.py | xlab-si/iac-scan-runner | 7296d89fc8f40eadcaded33a60adb3637c6fdb61 | [
"Apache-2.0"
] | null | null | null | from os import listdir
import iac_scan_runner.vars as env
from iac_scan_runner.check import Check
from iac_scan_runner.check_output import CheckOutput
from iac_scan_runner.check_target_entity_type import CheckTargetEntityType
from iac_scan_runner.utils import run_command
class ShellCheck(Check):
def __init__(sel... | 36.653846 | 95 | 0.667366 | 117 | 953 | 5.188034 | 0.435897 | 0.057661 | 0.107084 | 0.112026 | 0.108731 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002813 | 0.253935 | 953 | 25 | 96 | 38.12 | 0.850914 | 0 | 0 | 0 | 0 | 0 | 0.134313 | 0.023085 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.285714 | 0 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a694b5be02470a35f6bb95300f1c83933e05baf1 | 1,051 | py | Python | exec/backend.py | damouse/Rabric | e33d275fbfa6a6cf2214894dd3dc26c6c79e50c5 | [
"MIT"
] | null | null | null | exec/backend.py | damouse/Rabric | e33d275fbfa6a6cf2214894dd3dc26c6c79e50c5 | [
"MIT"
] | null | null | null | exec/backend.py | damouse/Rabric | e33d275fbfa6a6cf2214894dd3dc26c6c79e50c5 | [
"MIT"
] | null | null | null | '''
Autobahn examples using vanilla WAMP
'''
from os import environ
from twisted.internet.defer import inlineCallbacks
from autobahn.wamp.types import CallResult
from autobahn.twisted.wamp import ApplicationSession, ApplicationRunner
def callAdd(a, b):
print 'Server called Add with ', a, b
return a + b
de... | 22.847826 | 71 | 0.681256 | 127 | 1,051 | 5.551181 | 0.551181 | 0.008511 | 0.04539 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01221 | 0.220742 | 1,051 | 45 | 72 | 23.355556 | 0.848596 | 0.059943 | 0 | 0 | 0 | 0 | 0.207101 | 0.026036 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a697ffeb7fb2f5e5fa89f4418872af1e6d7ef4a5 | 2,940 | py | Python | django/rest/drf_permissions/api/views.py | mrg1995/my_note | df3c80b048718320b389b4ca8bd8a6b97b838b5a | [
"Apache-2.0"
] | 1 | 2019-10-19T10:59:56.000Z | 2019-10-19T10:59:56.000Z | django/rest/drf_permissions/api/views.py | mrg1995/my_note | df3c80b048718320b389b4ca8bd8a6b97b838b5a | [
"Apache-2.0"
] | null | null | null | django/rest/drf_permissions/api/views.py | mrg1995/my_note | df3c80b048718320b389b4ca8bd8a6b97b838b5a | [
"Apache-2.0"
] | null | null | null | import jwt
from django.contrib import auth
from django.contrib.auth import get_user_model
from django.shortcuts import render
from rest_framework import viewsets, status, permissions
from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework import mixins
from rest_framewo... | 37.692308 | 165 | 0.697279 | 292 | 2,940 | 6.917808 | 0.294521 | 0.034653 | 0.053465 | 0.023762 | 0.234653 | 0.125743 | 0.032673 | 0 | 0 | 0 | 0 | 0.003874 | 0.209864 | 2,940 | 77 | 166 | 38.181818 | 0.865691 | 0.007823 | 0 | 0.238806 | 0 | 0 | 0.040192 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104478 | false | 0.044776 | 0.179104 | 0.029851 | 0.716418 | 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 |
a69cb6ebfe1bca65afe01c3a07e588d1eff81f01 | 1,020 | py | Python | src/daemon.py | QuantumFractal/Cryptor | 1c618b67558e4208ac8824430c33dd2d9d7d8c0b | [
"MIT"
] | 1 | 2015-02-01T16:55:03.000Z | 2015-02-01T16:55:03.000Z | src/daemon.py | QuantumFractal/Cryptor | 1c618b67558e4208ac8824430c33dd2d9d7d8c0b | [
"MIT"
] | null | null | null | src/daemon.py | QuantumFractal/Cryptor | 1c618b67558e4208ac8824430c33dd2d9d7d8c0b | [
"MIT"
] | null | null | null | import logging, load_config, os
from cryptorclient import CryptorClient
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger('Cryptor Daemon')
settings = load_config.load_config('E:\Cryptor\.config\cryptor.cfg')
logger.info('Loaded Config')
client = CryptorClient(settings)
logger.info('Client created ... | 24.285714 | 70 | 0.704902 | 153 | 1,020 | 4.627451 | 0.372549 | 0.033898 | 0.050847 | 0.039548 | 0.161017 | 0.124294 | 0.124294 | 0.124294 | 0.124294 | 0.124294 | 0 | 0.001171 | 0.162745 | 1,020 | 41 | 71 | 24.878049 | 0.827869 | 0 | 0 | 0 | 0 | 0 | 0.17451 | 0.029412 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | 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 |
a6a0dd6d7a094c4fbaf44c636babc698a7a68c9d | 649 | py | Python | src/auth.py | conrad-evans/sports_betting_api | baa80df5608c1cc244f51be86ba29eaabd8f031e | [
"MIT"
] | null | null | null | src/auth.py | conrad-evans/sports_betting_api | baa80df5608c1cc244f51be86ba29eaabd8f031e | [
"MIT"
] | null | null | null | src/auth.py | conrad-evans/sports_betting_api | baa80df5608c1cc244f51be86ba29eaabd8f031e | [
"MIT"
] | null | null | null | import os
import secrets
from datetime import datetime, timedelta
import jwt
def encodeToken(uid: str = secrets.token_hex(4)):
"""
Generates a json web token
Args:
`uid: (str)` -> user id to be encoded in the token
Returns:
`token: (str)` -> decoded token if successful else `None`
... | 23.178571 | 99 | 0.577812 | 77 | 649 | 4.857143 | 0.675325 | 0.032086 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011013 | 0.300462 | 649 | 27 | 100 | 24.037037 | 0.812775 | 0.246533 | 0 | 0 | 1 | 0 | 0.063457 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.266667 | 0 | 0.466667 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a6a28e3bbf40884448923715f14c5d92f1c207a6 | 1,568 | py | Python | web/modules/db.py | sncodeGit/footloose-VPC | 099a300250f90becabc449ce19e56382e7685c41 | [
"Apache-2.0"
] | null | null | null | web/modules/db.py | sncodeGit/footloose-VPC | 099a300250f90becabc449ce19e56382e7685c41 | [
"Apache-2.0"
] | null | null | null | web/modules/db.py | sncodeGit/footloose-VPC | 099a300250f90becabc449ce19e56382e7685c41 | [
"Apache-2.0"
] | 1 | 2020-12-14T02:32:33.000Z | 2020-12-14T02:32:33.000Z | import pymysql
import sys
# Import config.py
with open('/etc/footloose-vpc/footloose-vpc.conf') as f:
config_path = f.read().split('\n')[0]
sys.path.insert(0, config_path)
import config as cfg
import hash
def __mysql_connect(db):
return pymysql.connect(host=db['host'], user=db['user'],
... | 27.034483 | 65 | 0.625638 | 211 | 1,568 | 4.402844 | 0.341232 | 0.068891 | 0.06028 | 0.073197 | 0.232508 | 0.232508 | 0.232508 | 0.232508 | 0.232508 | 0.232508 | 0 | 0.007563 | 0.241071 | 1,568 | 57 | 66 | 27.508772 | 0.773109 | 0.010204 | 0 | 0.229167 | 0 | 0 | 0.296129 | 0.023871 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104167 | false | 0.1875 | 0.083333 | 0.020833 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a6a39a74905c0b8db3e11b792457e8d94ed2016a | 1,871 | py | Python | chronqc/dev.py | nilesh-tawari/ClinicalSeqQC | 60f60a0d6115edab4a15be27509cd4861f06b81a | [
"MIT"
] | 17 | 2017-07-22T15:18:13.000Z | 2022-03-10T11:48:41.000Z | chronqc/dev.py | nilesh-tawari/ClinicalSeqQC | 60f60a0d6115edab4a15be27509cd4861f06b81a | [
"MIT"
] | 5 | 2019-04-05T00:54:24.000Z | 2020-04-21T03:01:16.000Z | chronqc/dev.py | nilesh-tawari/ClinicalSeqQC | 60f60a0d6115edab4a15be27509cd4861f06b81a | [
"MIT"
] | 7 | 2017-09-12T08:31:16.000Z | 2019-12-27T11:39:11.000Z | # -*- coding: utf-8 -*-
"""
Created on Wed Jul 19 10:36:16 2017
@author: tawarinr
"""
import pandas as pd
import chronqc_plot
import sqlite3
'''
df = chronqc_plot.fetch_stats_data('../examples/custom_db_example/chronqc_custom_db.sqlite', 'VCS_Stats_Summary', 'Somatic', categories="KRAS, KIT, BRAF, PDGFRA, NRAS", Colum... | 38.979167 | 187 | 0.716729 | 310 | 1,871 | 4.048387 | 0.396774 | 0.071713 | 0.114741 | 0.031873 | 0.21753 | 0.14502 | 0.106773 | 0.106773 | 0.068526 | 0 | 0 | 0.026978 | 0.108498 | 1,871 | 48 | 188 | 38.979167 | 0.72542 | 0.142704 | 0 | 0 | 0 | 0 | 0.245455 | 0.236364 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a6a5923e5c19cfb2ea4adc80b09083f307f05365 | 1,452 | py | Python | assignment-2/q6/btow.py | neerajp99/intro_to_cs_CS-101 | 8c4ae52a68458706a37ffc14c663ea7ae67183ef | [
"MIT"
] | null | null | null | assignment-2/q6/btow.py | neerajp99/intro_to_cs_CS-101 | 8c4ae52a68458706a37ffc14c663ea7ae67183ef | [
"MIT"
] | null | null | null | assignment-2/q6/btow.py | neerajp99/intro_to_cs_CS-101 | 8c4ae52a68458706a37ffc14c663ea7ae67183ef | [
"MIT"
] | null | null | null | def convolve(pixel, kernel, i, j):
return pixel[i][j]
fin = open("image.ppm", "rb")
#reading the file from image.ppm
kernel_identity = [
[0, 0, 0],
[0, 1, 0],
[0, 0, 0]
]
#file headers getting stored at _raw
filetype_raw = next(fin)
width_raw = next(fin)
height_raw = next(fin)
maxval_raw = next(fin)
#... | 22.6875 | 68 | 0.593664 | 238 | 1,452 | 3.55042 | 0.302521 | 0.014201 | 0.014201 | 0.039053 | 0.276923 | 0.23787 | 0.159763 | 0.078107 | 0.078107 | 0.078107 | 0 | 0.034228 | 0.25551 | 1,452 | 63 | 69 | 23.047619 | 0.747456 | 0.141185 | 0 | 0.222222 | 0 | 0 | 0.037067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a6bcb744d43afa10c9d95332cf5d55ef22aeacfc | 4,398 | py | Python | PySmartMirror/handlers/environment.py | ljnath/PySmartMirror | b9dcea84eb6723061456a84f8b34d73e3efa94e4 | [
"MIT"
] | null | null | null | PySmartMirror/handlers/environment.py | ljnath/PySmartMirror | b9dcea84eb6723061456a84f8b34d73e3efa94e4 | [
"MIT"
] | null | null | null | PySmartMirror/handlers/environment.py | ljnath/PySmartMirror | b9dcea84eb6723061456a84f8b34d73e3efa94e4 | [
"MIT"
] | null | null | null | import os
from PySmartMirror.common.singleton import Singleton
class Environment(metaclass=Singleton):
"""
Singleton environment class which stores all user configuration as well as graphics file name
"""
def __init__(self):
self.__assets_directory = os.path.dirname(os.path.realpath(__file__)... | 31.640288 | 97 | 0.590268 | 495 | 4,398 | 4.90101 | 0.250505 | 0.052762 | 0.092333 | 0.031327 | 0.149629 | 0.076257 | 0.042869 | 0.042869 | 0.042869 | 0.042869 | 0 | 0.002633 | 0.309231 | 4,398 | 138 | 98 | 31.869565 | 0.795918 | 0.140746 | 0 | 0.229167 | 0 | 0 | 0.142935 | 0.017152 | 0 | 0 | 0 | 0 | 0 | 1 | 0.197917 | false | 0 | 0.020833 | 0.166667 | 0.40625 | 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 |
a6c26eb2714a2bc804ac1e2e3563a91e653355fe | 1,695 | py | Python | torecsys/metrics/metrics.py | p768lwy3/torecsys | 2251366268b4fbe6f8c3ab1628fa72a0db043dcd | [
"MIT"
] | 92 | 2019-08-15T11:03:50.000Z | 2022-03-12T01:21:05.000Z | torecsys/metrics/metrics.py | p768lwy3/torecsys | 2251366268b4fbe6f8c3ab1628fa72a0db043dcd | [
"MIT"
] | 3 | 2020-03-11T08:57:50.000Z | 2021-01-06T01:39:47.000Z | torecsys/metrics/metrics.py | p768lwy3/torecsys | 2251366268b4fbe6f8c3ab1628fa72a0db043dcd | [
"MIT"
] | 16 | 2019-10-12T11:28:53.000Z | 2022-03-28T14:04:12.000Z | import abc
class Metrics(abc.ABC):
def __init__(self):
raise NotImplementedError
@abc.abstractmethod
def calculate(self) -> float:
raise NotImplementedError
class Accuracy(Metrics):
def __init__(self):
super().__init__()
self._num_correct = 0
self._num_sample... | 30.267857 | 78 | 0.671976 | 221 | 1,695 | 4.723982 | 0.149321 | 0.191571 | 0.099617 | 0.068966 | 0.539272 | 0.428161 | 0.273946 | 0.145594 | 0 | 0 | 0 | 0.001543 | 0.235398 | 1,695 | 55 | 79 | 30.818182 | 0.804012 | 0 | 0 | 0.190476 | 0 | 0 | 0.099115 | 0.070796 | 0 | 0 | 0 | 0 | 0 | 1 | 0.261905 | false | 0 | 0.02381 | 0.071429 | 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 |
a6cc4f0c35585d979d92968cc770afc2e1e44052 | 810 | py | Python | tests/testsamples/simple.py | Anthony102899/Lego-ImageGenerator | 52b19c8bb20f77a3394675e7c037c943a50c1e15 | [
"Unlicense"
] | 1 | 2022-03-20T10:23:38.000Z | 2022-03-20T10:23:38.000Z | tests/testsamples/simple.py | Anthony102899/Lego-ImageGenerator | 52b19c8bb20f77a3394675e7c037c943a50c1e15 | [
"Unlicense"
] | null | null | null | tests/testsamples/simple.py | Anthony102899/Lego-ImageGenerator | 52b19c8bb20f77a3394675e7c037c943a50c1e15 | [
"Unlicense"
] | null | null | null | import numpy as np
from solvers.rigidity_solver.models import Model, Joint, Beam
def case_hinge(ax):
beams = [
Beam(np.array([
[0, 0, 0],
[0, 0, 1],
[1, 0, 0],
]) + np.array([1, 0, 0])),
Beam(np.array([
[0, 0, 0],
[0, 0, 1],
... | 23.142857 | 61 | 0.520988 | 120 | 810 | 3.375 | 0.258333 | 0.064198 | 0.051852 | 0.088889 | 0.311111 | 0.28642 | 0.222222 | 0.222222 | 0.083951 | 0 | 0 | 0.067736 | 0.307407 | 810 | 34 | 62 | 23.823529 | 0.654189 | 0 | 0 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0 | 0.068966 | 0.103448 | 0.344828 | 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 |
a6cc7ad8f4b2f4434fbe6b194d3204b337875271 | 6,634 | py | Python | app/api_group_members.py | albertolusoli/meetup_api | c631adf509d4ba1a7a4e26be4bca78060daee0a6 | [
"MIT"
] | 1 | 2019-08-23T00:06:50.000Z | 2019-08-23T00:06:50.000Z | meetup_api/app/api_group_members.py | albertolusoli/meetup_api | c631adf509d4ba1a7a4e26be4bca78060daee0a6 | [
"MIT"
] | null | null | null | meetup_api/app/api_group_members.py | albertolusoli/meetup_api | c631adf509d4ba1a7a4e26be4bca78060daee0a6 | [
"MIT"
] | null | null | null | #229022
from __future__ import unicode_literals
import psycopg2
from config import Config
import settings
import params
import requests
import json
import time
import codecs
import sys
reload(sys)
sys.setdefaultencoding('utf8')
import datetime
UTF8Writer = codecs.getwriter('utf8')
sys.stdout = UTF8Writer(sys.stdout)... | 35.287234 | 492 | 0.562557 | 720 | 6,634 | 5.055556 | 0.268056 | 0.005495 | 0.007418 | 0.008791 | 0.406868 | 0.368956 | 0.313462 | 0.293681 | 0.234615 | 0.212088 | 0 | 0.019008 | 0.310069 | 6,634 | 188 | 493 | 35.287234 | 0.776273 | 0.259421 | 0 | 0.175258 | 0 | 0.010309 | 0.211655 | 0.028096 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010309 | 0.113402 | null | null | 0.103093 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a6cffff98aa075c8cfbe351f4235e34404141bab | 1,795 | py | Python | test/testSimple.py | lqiang2003cn/poet | 13f367e974c8dfc3d423bcb4b5f0916602ab5acb | [
"Apache-2.0"
] | null | null | null | test/testSimple.py | lqiang2003cn/poet | 13f367e974c8dfc3d423bcb4b5f0916602ab5acb | [
"Apache-2.0"
] | null | null | null | test/testSimple.py | lqiang2003cn/poet | 13f367e974c8dfc3d423bcb4b5f0916602ab5acb | [
"Apache-2.0"
] | null | null | null | import numpy as np
size = 3
x = np.array([1,2,3,4,5,6])
y=x.reshape(3,2)
print(x)
print(y)
# x = np.array([[1,2,3,4,5,6],
# [1,2,3,4,5,6],
# [13,14,15,16,17,18],
# [3,8,4,5,5,6],
# [10,6,6,21,5,7],
# [10,8,7,5,5,5]])
# m=x
#m = np.zeros((6,6),np.... | 20.168539 | 68 | 0.55376 | 340 | 1,795 | 2.9 | 0.279412 | 0.042596 | 0.015213 | 0.016227 | 0.068966 | 0.034483 | 0.028398 | 0.028398 | 0.028398 | 0 | 0 | 0.106267 | 0.182173 | 1,795 | 89 | 69 | 20.168539 | 0.565395 | 0.862396 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a6d5e39b38b8acd817f491b061fec8ee5ac16e1d | 1,988 | py | Python | moabb/tests/util_tests.py | bibliolytic/moabb | 46799bfd7957b1da3e7a0534286c1973af9c95d9 | [
"BSD-3-Clause"
] | 1 | 2018-11-17T03:03:09.000Z | 2018-11-17T03:03:09.000Z | moabb/tests/util_tests.py | bibliolytic/moabb | 46799bfd7957b1da3e7a0534286c1973af9c95d9 | [
"BSD-3-Clause"
] | null | null | null | moabb/tests/util_tests.py | bibliolytic/moabb | 46799bfd7957b1da3e7a0534286c1973af9c95d9 | [
"BSD-3-Clause"
] | 1 | 2019-05-10T05:27:11.000Z | 2019-05-10T05:27:11.000Z | from moabb.datasets import utils
import unittest
class Test_Utils(unittest.TestCase):
def test_channel_intersection_fun(self):
print(utils.find_intersecting_channels(
[d() for d in utils.dataset_list])[0])
def test_dataset_search_fun(self):
print([type(i).__name__ for i in utils.... | 38.980392 | 72 | 0.569416 | 247 | 1,988 | 4.315789 | 0.287449 | 0.090056 | 0.118199 | 0.164165 | 0.550657 | 0.505629 | 0.505629 | 0.4606 | 0.4606 | 0.4606 | 0 | 0.010497 | 0.281187 | 1,988 | 50 | 73 | 39.76 | 0.735479 | 0 | 0 | 0.333333 | 0 | 0 | 0.131791 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 1 | 0.071429 | false | 0 | 0.047619 | 0 | 0.142857 | 0.142857 | 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 |
a6d7df2ff9e0c546eaba59547d45381ee0df4ccf | 4,605 | py | Python | ooobuild/lo/rendering/x_integer_read_only_bitmap.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/rendering/x_integer_read_only_bitmap.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/rendering/x_integer_read_only_bitmap.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2022 :Barry-Thomas-Paul: Moss
#
# Licensed under the Apache License, Version 2.0 (the "License")
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http: // www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 52.931034 | 451 | 0.743974 | 591 | 4,605 | 5.708968 | 0.419628 | 0.010373 | 0.017783 | 0.022525 | 0.266153 | 0.266153 | 0.232365 | 0.21636 | 0.21636 | 0.21636 | 0 | 0.019677 | 0.194354 | 4,605 | 86 | 452 | 53.546512 | 0.889757 | 0.686862 | 0 | 0.157895 | 0 | 0 | 0.274763 | 0.229113 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.315789 | 0 | 0.736842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a6da4a761c807a2ef7708dbd08b340912a5f7591 | 563 | py | Python | examples/01_minimal_example/01_minimal_example.py | wangenau/variational_mesh | 940dac807ca9886500f21b989a86a102b502099f | [
"Apache-2.0"
] | null | null | null | examples/01_minimal_example/01_minimal_example.py | wangenau/variational_mesh | 940dac807ca9886500f21b989a86a102b502099f | [
"Apache-2.0"
] | null | null | null | examples/01_minimal_example/01_minimal_example.py | wangenau/variational_mesh | 940dac807ca9886500f21b989a86a102b502099f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
'''
Minimal example to use the variational mesh.
'''
from pyscf import dft, gto
from var_mesh import var_mesh
# Create a mol object for H2O
mol = gto.M(atom='O 0 0 0; H 0 0 0.95691; H 0.95691 0 -0.23987')
# Create an object for a restricted Kohn-Sham SCF calculation
mf = dft.RKS(mol)
# Overwri... | 24.478261 | 67 | 0.71048 | 104 | 563 | 3.798077 | 0.567308 | 0.025316 | 0.01519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075594 | 0.17762 | 563 | 22 | 68 | 25.590909 | 0.777538 | 0.626998 | 0 | 0 | 0 | 0.166667 | 0.22449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a6e27916ed774b680100cd038490ce982e5dd7d8 | 923 | py | Python | skills/meida.py | LSenyoru/Leo | 29b58d26fdd632a693047845805101e41457df88 | [
"MIT"
] | null | null | null | skills/meida.py | LSenyoru/Leo | 29b58d26fdd632a693047845805101e41457df88 | [
"MIT"
] | null | null | null | skills/meida.py | LSenyoru/Leo | 29b58d26fdd632a693047845805101e41457df88 | [
"MIT"
] | null | null | null | from email.mime import audio
from typing import Text
from linebot.models import TextSendMessage, AudioSendMessage, VideoSendMessage
from models.message_request import MessageRequest
from skills import add_skill
@add_skill('{media}')
def get(message_request: MessageRequest):
audio = AudioSendMessage(
... | 36.92 | 194 | 0.716143 | 129 | 923 | 5.046512 | 0.511628 | 0.036866 | 0.0553 | 0.070661 | 0.393241 | 0.393241 | 0.393241 | 0.393241 | 0.393241 | 0.393241 | 0 | 0.06435 | 0.15818 | 923 | 24 | 195 | 38.458333 | 0.773488 | 0 | 0 | 0 | 0 | 0.105263 | 0.429366 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.105263 | 0.263158 | 0 | 0.368421 | 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 |
a6e41d4197bcb4b95c486d3d8180151343770e70 | 286 | py | Python | binance_d/constant/system.py | ventayol/Binance_Futures_python | 0f7bdcab1408d87da51a17c80208bfab065d717b | [
"MIT"
] | null | null | null | binance_d/constant/system.py | ventayol/Binance_Futures_python | 0f7bdcab1408d87da51a17c80208bfab065d717b | [
"MIT"
] | null | null | null | binance_d/constant/system.py | ventayol/Binance_Futures_python | 0f7bdcab1408d87da51a17c80208bfab065d717b | [
"MIT"
] | null | null | null |
class WebSocketDefine:
Uri = "wss://sdstream.binance.com/stream"
# testnet new spec
# Uri = "wss://sdstream.binancefuture.com/stream"
class RestApiDefine:
Url = "https://dapi.binance.com"
# testnet
# Url = "https://testnet.binancefuture.com"
| 19.066667 | 54 | 0.622378 | 30 | 286 | 5.933333 | 0.533333 | 0.067416 | 0.157303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.237762 | 286 | 14 | 55 | 20.428571 | 0.816514 | 0.398601 | 0 | 0 | 0 | 0 | 0.385135 | 0.222973 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a6ecf0e004a428138c45760d2d4d629d6e312a2b | 605 | py | Python | setup.py | jlenain/flaapluc | 9515e0eef458b33fdfd3bf36ba0176244bb51add | [
"BSD-3-Clause"
] | 6 | 2016-04-07T18:56:16.000Z | 2019-05-31T13:46:07.000Z | setup.py | jlenain/flaapluc | 9515e0eef458b33fdfd3bf36ba0176244bb51add | [
"BSD-3-Clause"
] | 1 | 2022-03-28T20:21:48.000Z | 2022-03-28T20:21:48.000Z | setup.py | jlenain/flaapluc | 9515e0eef458b33fdfd3bf36ba0176244bb51add | [
"BSD-3-Clause"
] | 5 | 2016-04-26T07:53:48.000Z | 2022-03-28T07:52:02.000Z | from setuptools import setup, find_packages
import sys
if sys.version_info >= (3,0):
sys.exit('Sorry, Python >= 3.0 is not supported')
setup(name='flaapluc',
version='1.2.2',
description='Quick generation of alerts from Fermi-LAT data',
url='',
author='Jean-Philippe Lenain',
author_e... | 23.269231 | 67 | 0.580165 | 68 | 605 | 5.073529 | 0.764706 | 0.069565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020785 | 0.284298 | 605 | 25 | 68 | 24.2 | 0.775982 | 0 | 0 | 0.086957 | 0 | 0 | 0.317355 | 0.038017 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.086957 | 0 | 0.086957 | 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 |
a6f11127237827e75425688e2ee9449b3692897b | 2,370 | py | Python | chirp/library/do_bulk_tagged_import.py | chirpradio/chirpradio-machine | e854db2be43a4c879bbda134272a73225d7fa2df | [
"Apache-2.0"
] | 8 | 2015-03-06T17:28:36.000Z | 2020-11-27T10:06:40.000Z | chirp/library/do_bulk_tagged_import.py | chirpradio/chirpradio-machine | e854db2be43a4c879bbda134272a73225d7fa2df | [
"Apache-2.0"
] | 9 | 2015-09-21T18:52:22.000Z | 2018-02-12T19:23:17.000Z | chirp/library/do_bulk_tagged_import.py | chirpradio/chirpradio-machine | e854db2be43a4c879bbda134272a73225d7fa2df | [
"Apache-2.0"
] | 9 | 2016-04-08T00:21:15.000Z | 2018-01-25T19:35:58.000Z | import codecs
import os
import sys
from chirp.common import timestamp
from chirp.library import bulk_tagging_form
from chirp.library import database
from chirp.library import import_transaction
def load_dir_hash_map():
map = {}
# TODO(trow): This is hard-wired for the bulk tagging forms used
# during the... | 32.916667 | 79 | 0.592405 | 323 | 2,370 | 4.210526 | 0.396285 | 0.046324 | 0.044118 | 0.048529 | 0.026471 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015321 | 0.283966 | 2,370 | 71 | 80 | 33.380282 | 0.786093 | 0.099156 | 0 | 0.071429 | 0 | 0 | 0.105362 | 0.061148 | 0 | 0 | 0 | 0.014085 | 0.017857 | 1 | 0.071429 | false | 0 | 0.196429 | 0.017857 | 0.303571 | 0.017857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
a6fa83dd51029e94d82b20ac536abaf0b4554f91 | 759 | py | Python | tests/configurator/test_server_conf.py | mikaeilorfanian/client_server_generator | 784245563d3633396e01ba918197a1fe41a2205b | [
"MIT"
] | null | null | null | tests/configurator/test_server_conf.py | mikaeilorfanian/client_server_generator | 784245563d3633396e01ba918197a1fe41a2205b | [
"MIT"
] | 5 | 2017-08-24T13:39:01.000Z | 2017-08-25T07:16:58.000Z | tests/configurator/test_server_conf.py | mikaeilorfanian/client_server_generator | 784245563d3633396e01ba918197a1fe41a2205b | [
"MIT"
] | null | null | null | from configurator.server_conf import Route
from tests.utils import server_conf_for_tests
class TestRouteClass:
def test_correct_raw_config_parsed_correctly(self):
raw_conf = server_conf_for_tests.get_raw_route_conf('hello_name')
r = Route(raw_conf)
assert r.name == raw_conf['route_name']... | 33 | 74 | 0.715415 | 110 | 759 | 4.545455 | 0.336364 | 0.096 | 0.15 | 0.108 | 0.518 | 0.232 | 0.232 | 0.232 | 0.232 | 0.232 | 0 | 0.004975 | 0.205534 | 759 | 22 | 75 | 34.5 | 0.824212 | 0 | 0 | 0.125 | 0 | 0 | 0.077734 | 0 | 0 | 0 | 0 | 0 | 0.4375 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4703e670af72aea2d0f25a85dbc8acc271cdd6ee | 461 | py | Python | Envs/Rpi/Python_Projects/test.py | j4anderson/gitplayground | bde574bd062ebd1d016ca2775bae433ad618c35d | [
"MIT"
] | null | null | null | Envs/Rpi/Python_Projects/test.py | j4anderson/gitplayground | bde574bd062ebd1d016ca2775bae433ad618c35d | [
"MIT"
] | null | null | null | Envs/Rpi/Python_Projects/test.py | j4anderson/gitplayground | bde574bd062ebd1d016ca2775bae433ad618c35d | [
"MIT"
] | null | null | null | #!/usr/bin/python3.2
import time
#Get the time
theTime=time.localtime()
theSecs=time.strftime("%S",theTime)
print("Secs: " + theSecs)
if int(theSecs)<10:
print("One digits")
theSecs=bin(int(theSecs))
theSecs=theSecs.lstrip('-0b')
print(theSecs)
print(str(len(theSecs)) + " Length")
for i in range(len(theSecs),... | 19.208333 | 41 | 0.665944 | 70 | 461 | 4.385714 | 0.5 | 0.130293 | 0.127036 | 0.117264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024814 | 0.125813 | 461 | 23 | 42 | 20.043478 | 0.736973 | 0.067245 | 0 | 0 | 0 | 0 | 0.123832 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
4709d12ee6aa5dbd063f173fcc8e8af38a963672 | 2,606 | py | Python | classification/plot/plot_colored_by_xyz.py | anonymous2submit/Pointsformer | 0eaa141b3d79d45cd925976bde6097b51e0d3819 | [
"MIT"
] | null | null | null | classification/plot/plot_colored_by_xyz.py | anonymous2submit/Pointsformer | 0eaa141b3d79d45cd925976bde6097b51e0d3819 | [
"MIT"
] | null | null | null | classification/plot/plot_colored_by_xyz.py | anonymous2submit/Pointsformer | 0eaa141b3d79d45cd925976bde6097b51e0d3819 | [
"MIT"
] | null | null | null | """
Plot the relationship (mean of heads) for global Transformer.
Plot the relationship of local-transformer and global-transformer.
python3 plot_relation2.py --id 26 --point_id 10 --stage 0 --save
"""
import argparse
from matplotlib import pyplot
from mpl_toolkits.mplot3d import Axes3D
import random
import os
import n... | 28.021505 | 103 | 0.700307 | 398 | 2,606 | 4.414573 | 0.394472 | 0.037564 | 0.020489 | 0.015367 | 0.081958 | 0.044394 | 0.027319 | 0 | 0 | 0 | 0 | 0.027892 | 0.160783 | 2,606 | 92 | 104 | 28.326087 | 0.775492 | 0.165004 | 0 | 0 | 0 | 0 | 0.12529 | 0.032947 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051724 | false | 0 | 0.362069 | 0 | 0.431034 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4709f2516d3e859c71d2162253db3554fc16ca9e | 749 | py | Python | jenkins/api/first.py | hyteer/python-demo | da772561e6334fee80536673d9d366171038b921 | [
"MIT"
] | null | null | null | jenkins/api/first.py | hyteer/python-demo | da772561e6334fee80536673d9d366171038b921 | [
"MIT"
] | null | null | null | jenkins/api/first.py | hyteer/python-demo | da772561e6334fee80536673d9d366171038b921 | [
"MIT"
] | null | null | null | import jenkins
jenkins_server_url='http://jenkins.ci.snsshop.net'
jenkins_url='http://10.100.100.131:8080'
user_id='jk_test'
api_token='76547d8b7a3e3022aeb02833c2a5fcb0'
api_job = 'Debug/apitest'
debug_job = 'Debug/debug'
server=jenkins.Jenkins(jenkins_url, username=user_id, password=api_token)
print('Jenkins Version... | 26.75 | 73 | 0.747664 | 114 | 749 | 4.649123 | 0.403509 | 0.045283 | 0.056604 | 0.060377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053412 | 0.100134 | 749 | 28 | 74 | 26.75 | 0.732938 | 0.12283 | 0 | 0 | 0 | 0 | 0.239695 | 0.048855 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.052632 | 0.052632 | 0 | 0.157895 | 0.210526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
471bccfa2909cdc5a5d3ce1545d5e685a5e0bdff | 484 | py | Python | thread/thread_logging.py | terasakisatoshi/pythonCodes | baee095ecee96f6b5ec6431267cdc6c40512a542 | [
"MIT"
] | null | null | null | thread/thread_logging.py | terasakisatoshi/pythonCodes | baee095ecee96f6b5ec6431267cdc6c40512a542 | [
"MIT"
] | null | null | null | thread/thread_logging.py | terasakisatoshi/pythonCodes | baee095ecee96f6b5ec6431267cdc6c40512a542 | [
"MIT"
] | null | null | null | import logging
import threading
import time
logging.basicConfig(level=logging.DEBUG,
format='[%(levelname)s] (%(threadName)-10s) %(message)s',
)
def worker():
#logging.debug('starging')
time.sleep(2)
print("hoge")
#logging.debug('exiting')
def my_service():
... | 19.36 | 77 | 0.634298 | 57 | 484 | 5.368421 | 0.526316 | 0.196078 | 0.124183 | 0.163399 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020779 | 0.204545 | 484 | 25 | 78 | 19.36 | 0.774026 | 0.10124 | 0 | 0 | 0 | 0 | 0.152074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.176471 | 0 | 0.294118 | 0.058824 | 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 |
471de1f813beda74dcb5589b6eadda341cb74a23 | 272 | py | Python | playlist/apps/playerapp/urls.py | Bradford-Loesch/django-playlist | a34bacda700a9c651bc78415c2a84a1edcc73707 | [
"MIT"
] | null | null | null | playlist/apps/playerapp/urls.py | Bradford-Loesch/django-playlist | a34bacda700a9c651bc78415c2a84a1edcc73707 | [
"MIT"
] | null | null | null | playlist/apps/playerapp/urls.py | Bradford-Loesch/django-playlist | a34bacda700a9c651bc78415c2a84a1edcc73707 | [
"MIT"
] | null | null | null | from django.conf.urls import url
import views
urlpatterns = [
url(r'^$', views.index),
url(r'^register$', views.register),
url(r'^login$', views.login),
url(r'^dashboard', views.dashboard),
url(r'^logout', views.logout),
url(r'^', views.index),
]
| 22.666667 | 40 | 0.621324 | 37 | 272 | 4.567568 | 0.378378 | 0.142012 | 0.106509 | 0.16568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172794 | 272 | 11 | 41 | 24.727273 | 0.751111 | 0 | 0 | 0 | 0 | 0 | 0.136029 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
472684eef1ee4988996cca9ab6ded44a95477f23 | 1,995 | py | Python | stock/rest_api/migrations/0001_initial.py | Ryu0n/stock_prediction | f6d117768ff33f6de95d5b94ce46d2ca07964873 | [
"Unlicense"
] | 6 | 2021-06-01T10:48:40.000Z | 2021-09-10T04:51:07.000Z | stock/rest_api/migrations/0001_initial.py | Ryu0n/stock_prediction | f6d117768ff33f6de95d5b94ce46d2ca07964873 | [
"Unlicense"
] | null | null | null | stock/rest_api/migrations/0001_initial.py | Ryu0n/stock_prediction | f6d117768ff33f6de95d5b94ce46d2ca07964873 | [
"Unlicense"
] | 1 | 2021-06-01T00:13:15.000Z | 2021-06-01T00:13:15.000Z | # Generated by Django 3.0.5 on 2021-03-17 13:47
import datetime
from django.db import migrations, models
import django.db.models.deletion
from django.utils.timezone import utc
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
... | 38.365385 | 130 | 0.582957 | 207 | 1,995 | 5.487923 | 0.357488 | 0.042254 | 0.101232 | 0.105634 | 0.496479 | 0.386444 | 0.359155 | 0.359155 | 0.359155 | 0.359155 | 0 | 0.037631 | 0.280702 | 1,995 | 51 | 131 | 39.117647 | 0.754007 | 0.022556 | 0 | 0.409091 | 1 | 0 | 0.107803 | 0.011294 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.