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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ebe90d3ec965171aab1f9c6a19ec66adb12fe860 | 2,481 | py | Python | main.py | Servuc/Concoction | 901d0462b8b46989140b6c0007eae324b445a51c | [
"MIT"
] | null | null | null | main.py | Servuc/Concoction | 901d0462b8b46989140b6c0007eae324b445a51c | [
"MIT"
] | null | null | null | main.py | Servuc/Concoction | 901d0462b8b46989140b6c0007eae324b445a51c | [
"MIT"
] | null | null | null | from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
from urlparse import urlparse, parse_qs
import argparse
import concoction
class WebServer(BaseHTTPRequestHandler):
def _set_headers(self):
self.send_response(200)
self.send_header('Content-type', 'text/plain')
self.end_headers()... | 35.442857 | 112 | 0.666264 | 321 | 2,481 | 4.928349 | 0.327103 | 0.041719 | 0.040455 | 0.034134 | 0.143489 | 0.105563 | 0.08976 | 0.08976 | 0 | 0 | 0 | 0.004582 | 0.208384 | 2,481 | 69 | 113 | 35.956522 | 0.800917 | 0.004837 | 0 | 0.098039 | 0 | 0 | 0.132144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.078431 | null | null | 0.019608 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ebeeb805904a79938cde91417b1c02cbe5f1a69d | 592 | py | Python | Competitive_Programming/Stepping_stones_3.py | varshakancham/Data_Structure_n_Algorithms | aa7bedaf8ef01f8704768174cc639fae0ded0616 | [
"MIT"
] | 125 | 2018-10-19T04:56:03.000Z | 2022-03-29T19:48:27.000Z | Competitive_Programming/Stepping_stones_3.py | varshakancham/Data_Structure_n_Algorithms | aa7bedaf8ef01f8704768174cc639fae0ded0616 | [
"MIT"
] | 14 | 2018-10-22T17:50:48.000Z | 2020-10-03T07:55:07.000Z | Competitive_Programming/Stepping_stones_3.py | varshakancham/Data_Structure_n_Algorithms | aa7bedaf8ef01f8704768174cc639fae0ded0616 | [
"MIT"
] | 40 | 2018-10-21T12:35:50.000Z | 2022-03-27T07:06:13.000Z | """
Vasu is running up a stone staircase with N stones, and can hop(jump) either 1 step, 2 steps or 3 steps at a time.
You have to count, how many possible ways Vasu can run up to the stone stairs.
Input Format:
Input contains integer N that is number of steps
Constraints:
1<= N <=30
Output Format:
Output f... | 20.413793 | 115 | 0.581081 | 102 | 592 | 3.372549 | 0.54902 | 0.05814 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034913 | 0.322635 | 592 | 28 | 116 | 21.142857 | 0.822943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ebf6761527c67a0c02c00d30530607069e7a51f6 | 22,473 | py | Python | src/spider/spiders.py | jsrgqinbin/ok_ip_proxy_pool | 383523f169845903504ba6549e7d4fb6fc36f20c | [
"MIT"
] | null | null | null | src/spider/spiders.py | jsrgqinbin/ok_ip_proxy_pool | 383523f169845903504ba6549e7d4fb6fc36f20c | [
"MIT"
] | null | null | null | src/spider/spiders.py | jsrgqinbin/ok_ip_proxy_pool | 383523f169845903504ba6549e7d4fb6fc36f20c | [
"MIT"
] | null | null | null | import asyncio
import random
import re
from abc import ABC
from typing import List, Iterable
from src.entity.proxy_entity import ProxyEntity
from src.enum.common import ProxyCoverEnum, ProxyTypeEnum
from src.log.logger import logger
from src.spider.abs_spider import AbsSpider
from bs4 import BeautifulSoup, Tag
from pyp... | 32.71179 | 109 | 0.528679 | 2,454 | 22,473 | 4.638957 | 0.118582 | 0.039529 | 0.023718 | 0.024157 | 0.744993 | 0.709768 | 0.682273 | 0.633784 | 0.604972 | 0.597505 | 0 | 0.008753 | 0.354381 | 22,473 | 686 | 110 | 32.759475 | 0.775656 | 0.030214 | 0 | 0.6875 | 0 | 0.001838 | 0.094429 | 0.026351 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.020221 | 0.053309 | 0.338235 | 0.003676 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ebf7f2e9fb0ee5252b7a620b65b9ce10eb8813c4 | 1,418 | py | Python | v1/confirmation_blocks/migrations/0001_initial.py | Kenan7/Bank | 45e2a558dd725dcc9c9995e03dbc0d02221b3710 | [
"MIT"
] | 2 | 2021-02-26T03:20:02.000Z | 2021-05-21T14:18:56.000Z | v1/confirmation_blocks/migrations/0001_initial.py | shahraizali/Bank | d9cb926dd51af91e00199444b523f97c1b5fa3c7 | [
"MIT"
] | null | null | null | v1/confirmation_blocks/migrations/0001_initial.py | shahraizali/Bank | d9cb926dd51af91e00199444b523f97c1b5fa3c7 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.6 on 2020-07-14 02:47
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
('blocks', '0001_initial'),
('validators', '0001_initial'),
]
operations = [
... | 38.324324 | 157 | 0.62976 | 142 | 1,418 | 6.119718 | 0.485915 | 0.036824 | 0.048331 | 0.075949 | 0.262371 | 0.193326 | 0.193326 | 0.193326 | 0.193326 | 0.193326 | 0 | 0.024141 | 0.24048 | 1,418 | 36 | 158 | 39.388889 | 0.78273 | 0.031735 | 0 | 0.068966 | 1 | 0 | 0.201313 | 0.016047 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.103448 | 0 | 0.241379 | 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 |
ebf8eea63d882c0577cd9961caae7db6fccc2e2e | 747 | py | Python | main.py | Karaaslan29/gooz-operating-system-esp32 | 044300251027827af50f47b53f5d4a3e7304d535 | [
"MIT"
] | 2 | 2021-12-11T23:50:48.000Z | 2021-12-20T11:21:25.000Z | main.py | Karaaslan29/gooz-operating-system-esp32 | 044300251027827af50f47b53f5d4a3e7304d535 | [
"MIT"
] | null | null | null | main.py | Karaaslan29/gooz-operating-system-esp32 | 044300251027827af50f47b53f5d4a3e7304d535 | [
"MIT"
] | 1 | 2021-12-11T23:50:50.000Z | 2021-12-11T23:50:50.000Z | import gooz_basic
import dev.gooz_thread
import os
username = "Gorkem"
password = "1234"
login_flag = False
print("Welcome to GoozOS")
usr = input("Username: ")
if usr == username:
paswd = input("Password: ")
if paswd == password:
login_flag = True
else:
print("Wrong Password")
else:
p... | 20.189189 | 49 | 0.630522 | 97 | 747 | 4.670103 | 0.525773 | 0.07947 | 0.057395 | 0.07064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010471 | 0.232932 | 747 | 36 | 50 | 20.75 | 0.780105 | 0 | 0 | 0.071429 | 0 | 0 | 0.162416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.107143 | 0 | 0.107143 | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
230dc25584b2262a1807edf8315b2ffc32a31b8f | 430 | py | Python | src/nti/zodb/schema.py | NextThought/nti.zodb | 2eb56b6a617fe83c738bfc4651b31d080856e3fc | [
"Apache-2.0"
] | null | null | null | src/nti/zodb/schema.py | NextThought/nti.zodb | 2eb56b6a617fe83c738bfc4651b31d080856e3fc | [
"Apache-2.0"
] | 10 | 2017-06-08T12:24:31.000Z | 2021-04-01T16:52:38.000Z | src/nti/zodb/schema.py | NextThought/nti.zodb | 2eb56b6a617fe83c738bfc4651b31d080856e3fc | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Deprecated, do not use.
"""
from __future__ import print_function, absolute_import, division
__docformat__ = "restructuredtext en"
logger = __import__('logging').getLogger(__name__)
import zope.deferredimport
zope.deferredimport.initialize()
zope.deferredimport.depre... | 22.631579 | 64 | 0.734884 | 46 | 430 | 6.478261 | 0.782609 | 0.181208 | 0.09396 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002667 | 0.127907 | 430 | 18 | 65 | 23.888889 | 0.792 | 0.153488 | 0 | 0 | 0 | 0 | 0.261972 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
230feb929ca3772da2f09e132d21e4c7017612de | 766 | py | Python | user/collection/manager/insert_one.py | dsvalenciah/ROAp | 24cbff0e719c5009ec1f1e7190924d4d9297e992 | [
"MIT"
] | 4 | 2018-04-23T00:04:01.000Z | 2018-10-28T22:56:51.000Z | user/collection/manager/insert_one.py | dsvalenciah/ROAp | 24cbff0e719c5009ec1f1e7190924d4d9297e992 | [
"MIT"
] | 23 | 2017-12-22T08:27:35.000Z | 2021-12-13T19:57:35.000Z | user/collection/manager/insert_one.py | dsvalenciah/ROAp | 24cbff0e719c5009ec1f1e7190924d4d9297e992 | [
"MIT"
] | 1 | 2020-06-03T02:07:26.000Z | 2020-06-03T02:07:26.000Z |
from manager.exceptions.user import UserSchemaError, UserDuplicateEmailError
from manager.schemas.user import User
def insert_one(db_client, user, language):
"""Insert user."""
# TODO: validate password and initial schema
# TODO: add rq for process email sending
# TODO: add resource for re try email... | 26.413793 | 76 | 0.689295 | 94 | 766 | 5.457447 | 0.5 | 0.046784 | 0.05848 | 0.077973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22846 | 766 | 28 | 77 | 27.357143 | 0.86802 | 0.197128 | 0 | 0 | 0 | 0 | 0.082508 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 1 | 0.0625 | false | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2317ef8bf191670555aac3e747f140eb977cdda5 | 220 | py | Python | extract_txt.py | psuresh21/real-time_weather_status | 7891222a17a8cdb3c530d31c08be1e5d00c7eb4d | [
"MIT"
] | null | null | null | extract_txt.py | psuresh21/real-time_weather_status | 7891222a17a8cdb3c530d31c08be1e5d00c7eb4d | [
"MIT"
] | null | null | null | extract_txt.py | psuresh21/real-time_weather_status | 7891222a17a8cdb3c530d31c08be1e5d00c7eb4d | [
"MIT"
] | null | null | null | import re
def ext_txt(on_time_weather,mains):
for m in mains:
if "span" in m:
xs = re.sub(r'span class|=|\[A-Z][A-Z][A-Z]\d\w>','',m)
x = xs.strip().split('>')[1]
on_time_weather.append(x)
else:
m = ''
| 20 | 58 | 0.568182 | 44 | 220 | 2.727273 | 0.636364 | 0.05 | 0.216667 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005618 | 0.190909 | 220 | 10 | 59 | 22 | 0.668539 | 0 | 0 | 0 | 0 | 0 | 0.177273 | 0.131818 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.222222 | 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 |
231853c19cd9360072f2d871b60b56e941241b06 | 1,254 | py | Python | exploratory_analysis/author_scan.py | chuajiesheng/twitter-sentiment-analysis | 7617243c953a20c517a737c79fe0f54e55aef140 | [
"Apache-2.0"
] | null | null | null | exploratory_analysis/author_scan.py | chuajiesheng/twitter-sentiment-analysis | 7617243c953a20c517a737c79fe0f54e55aef140 | [
"Apache-2.0"
] | null | null | null | exploratory_analysis/author_scan.py | chuajiesheng/twitter-sentiment-analysis | 7617243c953a20c517a737c79fe0f54e55aef140 | [
"Apache-2.0"
] | null | null | null | import os
from utils import Reader
import code
import sys
def extract_authors(tweets):
for t in tweets:
if t.is_post():
actor = t.actor()
print '"{}","{}","{}","{}",{},{}'.format(actor['id'],
actor['link'],
... | 30.585366 | 80 | 0.42823 | 108 | 1,254 | 4.805556 | 0.5 | 0.05395 | 0.061657 | 0.080925 | 0.26975 | 0.26975 | 0.26975 | 0.26975 | 0.26975 | 0.26975 | 0 | 0.008357 | 0.427432 | 1,254 | 40 | 81 | 31.35 | 0.714485 | 0.048644 | 0 | 0.214286 | 0 | 0 | 0.138655 | 0.042017 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.107143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
232d06e8f8a121db8488a5d3fb023cffdbccd33f | 671 | py | Python | HotPlutonium/RunAnalyse.py | DweebsUnited/CodeMonkey | 3b27e9c189c897b06002498aea639bb44671848a | [
"BSD-3-Clause"
] | null | null | null | HotPlutonium/RunAnalyse.py | DweebsUnited/CodeMonkey | 3b27e9c189c897b06002498aea639bb44671848a | [
"BSD-3-Clause"
] | 7 | 2016-06-03T05:41:27.000Z | 2018-08-07T07:09:40.000Z | HotPlutonium/RunAnalyse.py | DweebsUnited/CodeMonkey | 3b27e9c189c897b06002498aea639bb44671848a | [
"BSD-3-Clause"
] | null | null | null | from sys import argv
from subprocess import call
if len( argv ) != 2:
print "Format: RunAnalyse.py {input.csv}"
fname = argv[ 1 ].split( '.' )
fname, fext = fname[ 0 ], fname[ 1 ]
fcsv = fname + ".csv"
fjson = fname + ".json"
ftri = fname + "Tri.json"
fobj = fname + ".obj"
if fext == ".csv":
print "Running ... | 21.645161 | 74 | 0.639344 | 84 | 671 | 5.107143 | 0.488095 | 0.055944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007366 | 0.19076 | 671 | 30 | 75 | 22.366667 | 0.782689 | 0 | 0 | 0 | 0 | 0 | 0.388972 | 0.126677 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | null | null | 0.263158 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2331d332a574ec4b1bf94ad40d00b1dbb4150c13 | 1,074 | py | Python | basta/migrations/0005_auto_20200419_2006.py | lorenzosp93/basta_app | 0eba51f648f74d21e84d30d1047a4bedf79dbbaa | [
"MIT"
] | 1 | 2021-03-23T19:14:27.000Z | 2021-03-23T19:14:27.000Z | basta/migrations/0005_auto_20200419_2006.py | lorenzosp93/basta_app | 0eba51f648f74d21e84d30d1047a4bedf79dbbaa | [
"MIT"
] | 4 | 2021-03-30T14:20:11.000Z | 2021-06-10T20:12:34.000Z | basta/migrations/0005_auto_20200419_2006.py | lorenzosp93/basta_app | 0eba51f648f74d21e84d30d1047a4bedf79dbbaa | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-04-19 18:06
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('basta', '0004_session_sl... | 33.5625 | 151 | 0.648976 | 123 | 1,074 | 5.495935 | 0.373984 | 0.059172 | 0.08284 | 0.130178 | 0.442308 | 0.442308 | 0.33284 | 0.33284 | 0.33284 | 0.33284 | 0 | 0.022975 | 0.229981 | 1,074 | 31 | 152 | 34.645161 | 0.794438 | 0.041899 | 0 | 0.32 | 1 | 0 | 0.108082 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.12 | 0 | 0.24 | 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 |
233540ad3d07aec4882229dd9b758747f67076a4 | 32,981 | py | Python | ssmbase.py | Chicone/SSM-VPR | 307ef83eee33d63ee6aab4a669fad06581888c0a | [
"MIT"
] | 5 | 2020-07-12T22:24:21.000Z | 2021-08-10T09:56:32.000Z | ssmbase.py | Chicone/SSM-VPR | 307ef83eee33d63ee6aab4a669fad06581888c0a | [
"MIT"
] | null | null | null | ssmbase.py | Chicone/SSM-VPR | 307ef83eee33d63ee6aab4a669fad06581888c0a | [
"MIT"
] | 2 | 2020-06-24T08:46:13.000Z | 2021-04-17T03:36:00.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ssm.ui'
#
# Created by: PyQt5 UI code generator 5.9.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.se... | 51.938583 | 218 | 0.70671 | 3,598 | 32,981 | 6.364925 | 0.103391 | 0.051351 | 0.074931 | 0.017816 | 0.474739 | 0.430898 | 0.325706 | 0.254094 | 0.239073 | 0.184228 | 0 | 0.051213 | 0.161669 | 32,981 | 634 | 219 | 52.020505 | 0.777062 | 0.005336 | 0 | 0.313505 | 1 | 0 | 0.166479 | 0.006921 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003215 | false | 0 | 0.001608 | 0 | 0.006431 | 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 |
2336b0fde14c5c5284f5355608e21e8f68c59b7f | 2,865 | py | Python | main.py | angrycaptain19/BU-Patient-Connect-Shortcuts | 6d0ec1d4e23e4c8f81216db12fd70e8c6699674f | [
"MIT"
] | null | null | null | main.py | angrycaptain19/BU-Patient-Connect-Shortcuts | 6d0ec1d4e23e4c8f81216db12fd70e8c6699674f | [
"MIT"
] | 1 | 2021-03-02T09:55:54.000Z | 2021-03-02T09:55:54.000Z | main.py | angrycaptain19/BU-Patient-Connect-Shortcuts | 6d0ec1d4e23e4c8f81216db12fd70e8c6699674f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import selenium, time, os, platform
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from getpass impor... | 32.931034 | 103 | 0.713089 | 435 | 2,865 | 4.551724 | 0.289655 | 0.049495 | 0.059091 | 0.088889 | 0.378283 | 0.367677 | 0.344444 | 0.328788 | 0.295455 | 0.295455 | 0 | 0.013857 | 0.093194 | 2,865 | 86 | 104 | 33.313953 | 0.748268 | 0.096684 | 0 | 0.037736 | 0 | 0.150943 | 0.344078 | 0.260583 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.075472 | 0.150943 | 0 | 0.150943 | 0.075472 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2337e355350c7783ccfa733784a10084a8ef256b | 13,186 | py | Python | RTI_3D.py | S8aVv/PADAR | 73ffca401fef1f83cccf6f381d03fe4c725baa8b | [
"BSD-2-Clause"
] | 1 | 2019-08-02T17:25:05.000Z | 2019-08-02T17:25:05.000Z | RTI_3D.py | S8aVv/PADAR | 73ffca401fef1f83cccf6f381d03fe4c725baa8b | [
"BSD-2-Clause"
] | null | null | null | RTI_3D.py | S8aVv/PADAR | 73ffca401fef1f83cccf6f381d03fe4c725baa8b | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Nov 16 15:31:16 2016
@author: shaw
"""
import xlrd
import matplotlib.pyplot as plt
from matplotlib.ticker import MultipleLocator, FormatStrFormatter
import numpy as np
from pylab import *
from itertools import product
from matplotlib.colors import LogNorm
#impo... | 37.460227 | 109 | 0.409298 | 1,795 | 13,186 | 2.911421 | 0.153203 | 0.049943 | 0.034443 | 0.044776 | 0.532147 | 0.508611 | 0.447953 | 0.422503 | 0.418293 | 0.396479 | 0 | 0.202824 | 0.452222 | 13,186 | 352 | 110 | 37.460227 | 0.520698 | 0.087138 | 0 | 0.557252 | 0 | 0 | 0.009454 | 0.008423 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019084 | false | 0 | 0.026718 | 0 | 0.061069 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
23455d865e39a91cb4714b52b2c1ae8decc14395 | 2,046 | py | Python | pak_helpers/helper/models.py | aliraza401/pak_helpers | 56e3d3214e318e28d344888c55d83dc69729d7a2 | [
"MIT"
] | null | null | null | pak_helpers/helper/models.py | aliraza401/pak_helpers | 56e3d3214e318e28d344888c55d83dc69729d7a2 | [
"MIT"
] | null | null | null | pak_helpers/helper/models.py | aliraza401/pak_helpers | 56e3d3214e318e28d344888c55d83dc69729d7a2 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
from PIL import Image
from django import template
from django.contrib.auth.models import Group
class Helper(models.Model):
option = (
('Male', 'Male'),
('Female', 'Female')
)
user = models.OneToOneField(User, on_delet... | 33 | 88 | 0.703812 | 263 | 2,046 | 5.307985 | 0.323194 | 0.057307 | 0.103152 | 0.137536 | 0.251433 | 0.251433 | 0.169771 | 0.169771 | 0.169771 | 0.077364 | 0 | 0.017825 | 0.177419 | 2,046 | 61 | 89 | 33.540984 | 0.811646 | 0 | 0 | 0.166667 | 0 | 0 | 0.031769 | 0.010753 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104167 | false | 0 | 0.104167 | 0.083333 | 0.8125 | 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 |
23495672b8fbff4e239fbe9d573f062e637434e7 | 192 | py | Python | GCD.py | griledchicken/VAMPY-2017-CS | 1bc71734751850b580b481eac51c5c235d0ca9e2 | [
"MIT"
] | null | null | null | GCD.py | griledchicken/VAMPY-2017-CS | 1bc71734751850b580b481eac51c5c235d0ca9e2 | [
"MIT"
] | null | null | null | GCD.py | griledchicken/VAMPY-2017-CS | 1bc71734751850b580b481eac51c5c235d0ca9e2 | [
"MIT"
] | null | null | null | import functools
@functools.lru_cache(maxsize=None)
def gcd(a, b):
if a < b:
a, b = b, a
def solver(a, b):
if b == 0:
return a
else:
return solver(b, a%b)
return solver(a, b)
| 13.714286 | 34 | 0.598958 | 37 | 192 | 3.081081 | 0.405405 | 0.105263 | 0.070175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006944 | 0.25 | 192 | 13 | 35 | 14.769231 | 0.784722 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
234df9039a8b223ac49eb73a2a790c39bbcab512 | 2,564 | py | Python | src/move_files.py | knjk04/file-utils | dff4a67bacf36d4560423095fc30f7ce655531fd | [
"MIT"
] | null | null | null | src/move_files.py | knjk04/file-utils | dff4a67bacf36d4560423095fc30f7ce655531fd | [
"MIT"
] | 4 | 2021-09-12T15:55:09.000Z | 2021-09-23T18:41:33.000Z | src/move_files.py | knjk04/file-utils | dff4a67bacf36d4560423095fc30f7ce655531fd | [
"MIT"
] | null | null | null | import os
import platform
import sys
from os import listdir
from pathlib import Path
from src.create_dir import create_numbered_dirs, get_parent_dir
from src.validate_windows_file_name import is_valid_windows_file_name
def get_files_in(dir: str):
"""Returns a list of absolute paths to files sorted alphabetically... | 33.298701 | 98 | 0.698518 | 386 | 2,564 | 4.38601 | 0.34456 | 0.085056 | 0.025989 | 0.033077 | 0.100413 | 0.036621 | 0.036621 | 0 | 0 | 0 | 0 | 0.002486 | 0.215679 | 2,564 | 76 | 99 | 33.736842 | 0.839383 | 0.180187 | 0 | 0.102041 | 0 | 0 | 0.155556 | 0.011111 | 0 | 0 | 0 | 0.013158 | 0 | 1 | 0.122449 | false | 0 | 0.142857 | 0 | 0.346939 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2357b9c0df8d3b9bc393419608c2a76568db9537 | 192 | py | Python | 1607.py | Ananya2000-byte/SimplePythonCodes | dd80dd6876d2fd9a62039d504706d594b143a16e | [
"Apache-2.0"
] | null | null | null | 1607.py | Ananya2000-byte/SimplePythonCodes | dd80dd6876d2fd9a62039d504706d594b143a16e | [
"Apache-2.0"
] | null | null | null | 1607.py | Ananya2000-byte/SimplePythonCodes | dd80dd6876d2fd9a62039d504706d594b143a16e | [
"Apache-2.0"
] | null | null | null | I = input("Enter the string: ")
S = I.upper()
freq = {}
for i in I:
if i != " ":
if i in freq:
freq[i] += 1
else:
freq[i] = 1
print(freq)
| 17.454545 | 32 | 0.390625 | 28 | 192 | 2.678571 | 0.5 | 0.08 | 0.106667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019048 | 0.453125 | 192 | 10 | 33 | 19.2 | 0.695238 | 0 | 0 | 0 | 0 | 0 | 0.104396 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
236809d3a7b86fc366416315b2c82cbd47d00703 | 1,117 | py | Python | plateypus/models.py | Geologik/plateypus-backend | 9ff1dd959d5a654895757b183598a4f6529936cf | [
"MIT"
] | null | null | null | plateypus/models.py | Geologik/plateypus-backend | 9ff1dd959d5a654895757b183598a4f6529936cf | [
"MIT"
] | 189 | 2018-10-26T21:17:27.000Z | 2022-03-28T16:16:28.000Z | plateypus/models.py | Geologik/plateypus-backend | 9ff1dd959d5a654895757b183598a4f6529936cf | [
"MIT"
] | null | null | null | """ODM model definitions."""
from elasticsearch_dsl import Date, Document, Keyword, Text
try: # pragma: no cover
from helpers import elastic
except (ImportError, ModuleNotFoundError): # pragma: no cover
from plateypus.helpers import elastic
INDEX_METADATA = "plateypus-metadata"
INDEX_VEHICLES = "plateypus... | 24.282609 | 76 | 0.680394 | 129 | 1,117 | 5.75969 | 0.488372 | 0.032301 | 0.05249 | 0.04576 | 0.18035 | 0.18035 | 0.18035 | 0.18035 | 0.18035 | 0.18035 | 0 | 0 | 0.210385 | 1,117 | 45 | 77 | 24.822222 | 0.842404 | 0.230081 | 0 | 0.142857 | 0 | 0 | 0.052381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.678571 | 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 |
236ade1e78db590aaee6ca5dbfe921386aeb16a6 | 3,509 | py | Python | webapp.py | prochor666/ctrl | bb6bef2dd8e0690f632be4990e8564bfe4c1e859 | [
"MIT"
] | null | null | null | webapp.py | prochor666/ctrl | bb6bef2dd8e0690f632be4990e8564bfe4c1e859 | [
"MIT"
] | null | null | null | webapp.py | prochor666/ctrl | bb6bef2dd8e0690f632be4990e8564bfe4c1e859 | [
"MIT"
] | null | null | null | from core.config import app_config
import json
import datetime
import logging
import os
from flask import Flask, render_template, Response, request, send_from_directory
from core import compat, app, utils
from core.ctrl import api, auth
compat.check_version()
webapp = Flask(__name__)
app.mode = 'http'
@webapp.route(... | 31.053097 | 130 | 0.634939 | 447 | 3,509 | 4.829978 | 0.297539 | 0.045855 | 0.07874 | 0.066698 | 0.252895 | 0.226957 | 0.17786 | 0.17786 | 0.17786 | 0.17786 | 0 | 0.007302 | 0.219436 | 3,509 | 112 | 131 | 31.330357 | 0.780942 | 0.037903 | 0 | 0.177215 | 0 | 0 | 0.199644 | 0.038861 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037975 | false | 0.075949 | 0.101266 | 0 | 0.202532 | 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 |
2373aa9fe773ff2b3b5a27d1f60285a4da55ba1c | 257 | py | Python | dcorm/ordering.py | homeinfogmbh/dcorm | 7dc19259dad5252afea4b574a533240506b524d1 | [
"MIT"
] | 2 | 2021-12-23T13:49:26.000Z | 2021-12-23T15:16:46.000Z | dcorm/ordering.py | homeinfogmbh/dcorm | 7dc19259dad5252afea4b574a533240506b524d1 | [
"MIT"
] | null | null | null | dcorm/ordering.py | homeinfogmbh/dcorm | 7dc19259dad5252afea4b574a533240506b524d1 | [
"MIT"
] | null | null | null | """Ordering type definition."""
from enum import Enum
from dcorm.literal import Literal
__all__ = ['Ordering']
class Ordering(Enum):
"""Available orderings."""
ASC = Literal('ASC', space_left=True)
DESC = Literal('DESC', space_left=True)
| 16.0625 | 43 | 0.680934 | 31 | 257 | 5.451613 | 0.548387 | 0.106509 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175097 | 257 | 15 | 44 | 17.133333 | 0.79717 | 0.178988 | 0 | 0 | 0 | 0 | 0.075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.833333 | 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 |
237bb11de5d3c4f72ec5ee838e1abe1a40edea11 | 1,431 | py | Python | LeetCode/Problems/15. 3Sum.py | nikku1234/Code-Practise | 94eb6680ea36efd10856c377000219285f77e5a4 | [
"Apache-2.0"
] | 9 | 2020-07-02T06:06:17.000Z | 2022-02-26T11:08:09.000Z | LeetCode/Problems/15. 3Sum.py | nikku1234/Code-Practise | 94eb6680ea36efd10856c377000219285f77e5a4 | [
"Apache-2.0"
] | 1 | 2021-11-04T17:26:36.000Z | 2021-11-04T17:26:36.000Z | LeetCode/Problems/15. 3Sum.py | nikku1234/Code-Practise | 94eb6680ea36efd10856c377000219285f77e5a4 | [
"Apache-2.0"
] | 8 | 2021-01-31T10:31:12.000Z | 2022-03-13T09:15:55.000Z | class Solution(object):
def threeSum(self, nums):
"""
:type nums: List[int]
:rtype: List[List[int]]
"""
nums.sort()
res = []
for i,a in enumerate(nums):
# If same as the previous value just continue, already checked
if i>0 and a == nu... | 29.8125 | 85 | 0.386443 | 168 | 1,431 | 3.291667 | 0.345238 | 0.050633 | 0.048825 | 0.03255 | 0.090416 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02809 | 0.502446 | 1,431 | 47 | 86 | 30.446809 | 0.748596 | 0.467505 | 0 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0 | 0 | 0.15 | 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 |
237c54e9431e8d639d8402119d1c8b345898e864 | 344 | py | Python | common/services/notice/NewsService.py | linkgeek/python_flask_cms | ff5e794b5b11075670e5d11a8cbda0a137319876 | [
"BSD-3-Clause"
] | 1 | 2022-03-20T06:34:48.000Z | 2022-03-20T06:34:48.000Z | common/services/notice/NewsService.py | linkgeek/python_flask_cms | ff5e794b5b11075670e5d11a8cbda0a137319876 | [
"BSD-3-Clause"
] | null | null | null | common/services/notice/NewsService.py | linkgeek/python_flask_cms | ff5e794b5b11075670e5d11a8cbda0a137319876 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from common.models.notice.UserNews import UserNews
from common.services.BaseService import BaseService
from application import db
class NewsService(BaseService):
@staticmethod
def addNews(params):
model_user_news = UserNews(**params)
db.session.add(model_user_news)
... | 26.461538 | 51 | 0.723837 | 41 | 344 | 5.97561 | 0.609756 | 0.081633 | 0.106122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003534 | 0.177326 | 344 | 12 | 52 | 28.666667 | 0.862191 | 0.061047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
237cbc5cdee57fecd08c8c4054e80ead984b6cca | 423 | py | Python | examples/garbage.py | cyberbeast/pympler | 0e02c8c72c1eef22beb8c18d6de19c128c4904ae | [
"Apache-2.0"
] | 862 | 2015-01-06T03:25:46.000Z | 2022-03-29T08:59:56.000Z | examples/garbage.py | cyberbeast/pympler | 0e02c8c72c1eef22beb8c18d6de19c128c4904ae | [
"Apache-2.0"
] | 119 | 2015-01-19T15:20:00.000Z | 2022-03-14T16:57:44.000Z | examples/garbage.py | cyberbeast/pympler | 0e02c8c72c1eef22beb8c18d6de19c128c4904ae | [
"Apache-2.0"
] | 80 | 2015-05-16T18:19:28.000Z | 2022-02-19T17:39:36.000Z |
from pympler.garbagegraph import start_debug_garbage
from pympler import web
class Leaf(object):
pass
class Branch(object):
def __init__(self, root):
self.root = root
self.leaf = Leaf()
class Root(object):
def __init__(self, num_branches):
self.branches = [Branch(self) for _ i... | 16.269231 | 67 | 0.6974 | 58 | 423 | 4.810345 | 0.465517 | 0.078853 | 0.121864 | 0.121864 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002976 | 0.205674 | 423 | 25 | 68 | 16.92 | 0.827381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.066667 | 0.133333 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
88c6dd6dace65e1ab9ab3ed2719d7832543eaf9d | 2,858 | py | Python | STS.py | RafalKucharskiPK/PTVVisum_Python_Snippets | 08700ac9ff8dd8d0db01ed9b65550a15105cff17 | [
"MIT"
] | 3 | 2020-02-14T19:43:23.000Z | 2021-04-26T06:39:33.000Z | STS.py | RafalKucharskiPK/PTVVisum_Python_Snippets | 08700ac9ff8dd8d0db01ed9b65550a15105cff17 | [
"MIT"
] | null | null | null | STS.py | RafalKucharskiPK/PTVVisum_Python_Snippets | 08700ac9ff8dd8d0db01ed9b65550a15105cff17 | [
"MIT"
] | 2 | 2020-05-03T13:53:05.000Z | 2020-10-13T17:11:02.000Z | import sqlite3
def VisumInit(path=None,COMAddress='Visum.Visum.125'):
"""
###
Automatic Plate Number Recognition Support
(c) 2012 Rafal Kucharski info@intelligent-infrastructure.eu
####
VISUM INIT
"""
import win32com.client
Visum = win32com.client.Dispatch(COMAd... | 36.177215 | 156 | 0.555983 | 303 | 2,858 | 5.155116 | 0.320132 | 0.03073 | 0.025608 | 0.053777 | 0.234315 | 0.169014 | 0.169014 | 0.169014 | 0.169014 | 0.169014 | 0 | 0.009927 | 0.330301 | 2,858 | 78 | 157 | 36.641026 | 0.806165 | 0.078027 | 0 | 0.137255 | 0 | 0 | 0.47386 | 0.046006 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.039216 | null | null | 0.019608 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
88c8b86680eadd3cc826848a5b6787cc6bfcac47 | 1,945 | py | Python | src_aryan/bot1/scripts/ball_detection.py | iamprasann/UMIC_TEAM4-Final | b9fc6d6ad251baaaab547e03946fa4252b40e9d8 | [
"MIT"
] | null | null | null | src_aryan/bot1/scripts/ball_detection.py | iamprasann/UMIC_TEAM4-Final | b9fc6d6ad251baaaab547e03946fa4252b40e9d8 | [
"MIT"
] | null | null | null | src_aryan/bot1/scripts/ball_detection.py | iamprasann/UMIC_TEAM4-Final | b9fc6d6ad251baaaab547e03946fa4252b40e9d8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
## Simple talker demo that listens to std_msgs/Strings published
## to the 'chatter' topic
import rospy
import cv2
import numpy as np
from std_msgs.msg import String
import matplotlib.pyplot as plt
from sensor_msgs.msg import Image
import cv2
from cv_bridge import CvBridge, CvBridgeError
impor... | 26.643836 | 102 | 0.681234 | 284 | 1,945 | 4.482394 | 0.401408 | 0.032993 | 0.023566 | 0.031422 | 0.136685 | 0.136685 | 0.098979 | 0.054988 | 0 | 0 | 0 | 0.05 | 0.187661 | 1,945 | 73 | 103 | 26.643836 | 0.755696 | 0.070437 | 0 | 0.085106 | 0 | 0 | 0.062953 | 0.01337 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.021277 | 0.191489 | null | null | 0.042553 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
88d4c79e58d07bb5e8ea6e1b3c253f42c56a36ef | 7,473 | py | Python | demo/lazy_numpy.py | markflorisson/minivect | d9a3743bea078382e9b16f54933bef3ba3a9d03c | [
"BSD-2-Clause"
] | 4 | 2015-10-02T18:25:24.000Z | 2022-02-12T16:09:11.000Z | demo/lazy_numpy.py | markflorisson/minivect | d9a3743bea078382e9b16f54933bef3ba3a9d03c | [
"BSD-2-Clause"
] | null | null | null | demo/lazy_numpy.py | markflorisson/minivect | d9a3743bea078382e9b16f54933bef3ba3a9d03c | [
"BSD-2-Clause"
] | null | null | null | """
Minimal library for lazy evaluation with NumPy. Uses minivect's LLVM backend
for evaluation.
"""
import sys
import time
import numpy as np
import miniast
import specializers
import minitypes
import codegen
import xmldumper
import treepath
from ctypes_conversion import get_data_pointer, convert_to_ctypes, get_poi... | 31.665254 | 88 | 0.598689 | 941 | 7,473 | 4.581296 | 0.301807 | 0.032475 | 0.019485 | 0.020877 | 0.14405 | 0.10276 | 0.083507 | 0.083507 | 0.06263 | 0.020877 | 0 | 0.050151 | 0.290245 | 7,473 | 236 | 89 | 31.665254 | 0.762632 | 0.066506 | 0 | 0.101351 | 0 | 0 | 0.025075 | 0 | 0 | 0 | 0 | 0.004237 | 0.013514 | 0 | null | null | 0 | 0.067568 | null | null | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
88d6c16bd034eb1de44ec24a0c0ef9b55a008104 | 1,332 | py | Python | lab4/alr/lexer.py | aslastin/ITMO-Translation-Methods-y2021 | 9c688e91b13ab537bb5a924ab50d21468ba69027 | [
"MIT"
] | null | null | null | lab4/alr/lexer.py | aslastin/ITMO-Translation-Methods-y2021 | 9c688e91b13ab537bb5a924ab50d21468ba69027 | [
"MIT"
] | null | null | null | lab4/alr/lexer.py | aslastin/ITMO-Translation-Methods-y2021 | 9c688e91b13ab537bb5a924ab50d21468ba69027 | [
"MIT"
] | null | null | null | import re
from alr.input_streams import InputStream
from alr.instances import Terminal, Token, END_TERMINAL_NAME
class LexerException(Exception):
pass
class Lexer:
def next(self) -> Token:
pass
def findMatchInfo(terminals: [Terminal], data: str):
for terminal in terminals:
match = re.... | 30.272727 | 97 | 0.662162 | 155 | 1,332 | 5.516129 | 0.329032 | 0.115789 | 0.038596 | 0.042105 | 0.067836 | 0.067836 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253754 | 1,332 | 43 | 98 | 30.976744 | 0.860161 | 0 | 0 | 0.176471 | 0 | 0 | 0.035285 | 0.015766 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0.058824 | 0.088235 | 0 | 0.294118 | 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 |
88d7be55caf170f63950978db5728c361f0fa0b1 | 1,253 | py | Python | internos/survey/migrations/0008_monitoringreporting.py | UNICEFLebanonInnovation/Staging-Neuro | aac1e4f335ff4ec32041f989a9c22f8581a4961a | [
"MIT"
] | null | null | null | internos/survey/migrations/0008_monitoringreporting.py | UNICEFLebanonInnovation/Staging-Neuro | aac1e4f335ff4ec32041f989a9c22f8581a4961a | [
"MIT"
] | null | null | null | internos/survey/migrations/0008_monitoringreporting.py | UNICEFLebanonInnovation/Staging-Neuro | aac1e4f335ff4ec32041f989a9c22f8581a4961a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2020-05-13 23:41
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import smart_selects.db_fields
class Migration(migrations.Migration):
dependencies = [
('survey', '0007_auto_2020051... | 41.766667 | 212 | 0.649641 | 141 | 1,253 | 5.588652 | 0.531915 | 0.040609 | 0.053299 | 0.083756 | 0.170051 | 0.170051 | 0.170051 | 0 | 0 | 0 | 0 | 0.04251 | 0.211492 | 1,253 | 29 | 213 | 43.206897 | 0.755061 | 0.055068 | 0 | 0 | 1 | 0 | 0.128704 | 0.019475 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.318182 | 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 |
88dde821475b9b36f9a23a10e09e40041dcb1e93 | 2,610 | py | Python | dynsimf/test/test_model.py | Tensaiz/DyNSimF | 6288ff83f1b3f56fa626f741b55ade57b7c1b358 | [
"BSD-2-Clause"
] | 3 | 2020-11-04T08:52:33.000Z | 2021-01-27T22:27:07.000Z | dynsimf/test/test_model.py | Tensaiz/DyNSimF | 6288ff83f1b3f56fa626f741b55ade57b7c1b358 | [
"BSD-2-Clause"
] | 2 | 2020-11-13T07:49:33.000Z | 2020-11-16T08:22:13.000Z | dynsimf/test/test_model.py | Tensaiz/DyNSimF | 6288ff83f1b3f56fa626f741b55ade57b7c1b358 | [
"BSD-2-Clause"
] | null | null | null | import unittest
from dynsimf.models.Model import Model
from dynsimf.models.Model import ModelConfiguration
import networkx as nx
import numpy as np
__author__ = "Mathijs Maijer"
__email__ = "m.f.maijer@gmail.com"
class ModelTest(unittest.TestCase):
def test_model_init(self):
g = nx.random_geometric_gra... | 26.363636 | 77 | 0.5659 | 348 | 2,610 | 4.071839 | 0.189655 | 0.095272 | 0.038109 | 0.076217 | 0.678193 | 0.638673 | 0.638673 | 0.638673 | 0.638673 | 0.638673 | 0 | 0.039142 | 0.285441 | 2,610 | 98 | 78 | 26.632653 | 0.720643 | 0.091954 | 0 | 0.530303 | 0 | 0 | 0.030919 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 1 | 0.136364 | false | 0 | 0.075758 | 0.045455 | 0.272727 | 0.015152 | 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 |
88deab0a5f3046c5e43d3c7ac8bb2269ee606875 | 798 | py | Python | effdet/config/train_config.py | phager90/efficientdet-pytorch | bbd84c0e7ec2a23c6ae7447c437789524ba141dd | [
"Apache-2.0"
] | 1,386 | 2020-03-27T07:05:36.000Z | 2022-03-31T17:27:50.000Z | effdet/config/train_config.py | dmatos2012/efficientdet-pytorch | 301487e859fa8160dd3e01b7dbc54d713b392676 | [
"Apache-2.0"
] | 176 | 2020-03-27T07:07:36.000Z | 2022-03-15T19:49:53.000Z | effdet/config/train_config.py | dmatos2012/efficientdet-pytorch | 301487e859fa8160dd3e01b7dbc54d713b392676 | [
"Apache-2.0"
] | 276 | 2020-03-28T10:16:24.000Z | 2022-03-30T19:27:12.000Z | from omegaconf import OmegaConf
def default_detection_train_config():
# FIXME currently using args for train config, will revisit, perhaps move to Hydra
h = OmegaConf.create()
# dataset
h.skip_crowd_during_training = True
# augmentation
h.input_rand_hflip = True
h.train_scale_min = 0.1
... | 22.8 | 86 | 0.684211 | 126 | 798 | 4.063492 | 0.626984 | 0.019531 | 0.042969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060855 | 0.238095 | 798 | 34 | 87 | 23.470588 | 0.78125 | 0.172932 | 0 | 0 | 0 | 0 | 0.009174 | 0 | 0 | 0 | 0 | 0.029412 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.142857 | 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 |
88e1430895468040e8411cfbb8e3a4d3e807e9b5 | 343 | py | Python | CryptoHack Resources/Introduction-to-CryptoHack/great_snakes_35381fca29d68d8f3f25c9fa0a9026fb.py | ClutchKick2207/CryptoHack | c73cb47ae860420296ef200d506155c04505f5fe | [
"MIT"
] | null | null | null | CryptoHack Resources/Introduction-to-CryptoHack/great_snakes_35381fca29d68d8f3f25c9fa0a9026fb.py | ClutchKick2207/CryptoHack | c73cb47ae860420296ef200d506155c04505f5fe | [
"MIT"
] | null | null | null | CryptoHack Resources/Introduction-to-CryptoHack/great_snakes_35381fca29d68d8f3f25c9fa0a9026fb.py | ClutchKick2207/CryptoHack | c73cb47ae860420296ef200d506155c04505f5fe | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
# import this
if sys.version_info.major == 2:
print("You are running Python 2, which is no longer supported. Please update to Python 3.")
ords = [81, 64, 75, 66, 70, 93, 73, 72, 1, 92, 109, 2, 84, 109, 66, 75, 70, 90, 2, 92, 79]
print("Here is your flag:")
print("".join(chr(o ^... | 26.384615 | 95 | 0.638484 | 66 | 343 | 3.30303 | 0.757576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174545 | 0.198251 | 343 | 12 | 96 | 28.583333 | 0.618182 | 0.09621 | 0 | 0 | 0 | 0 | 0.324675 | 0 | 0 | 0 | 0.012987 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 |
88e8a829aa4fdf6e93f9029ece59967d4ebdae3e | 636 | py | Python | RNAPuzzles/rnapuzzles/views/faq/detail.py | whinyadventure/RNA-Puzzles | bbd147e1a0748a77b5e3424a93ad57bb430b5a0e | [
"Apache-2.0"
] | null | null | null | RNAPuzzles/rnapuzzles/views/faq/detail.py | whinyadventure/RNA-Puzzles | bbd147e1a0748a77b5e3424a93ad57bb430b5a0e | [
"Apache-2.0"
] | 26 | 2019-10-08T11:11:25.000Z | 2022-03-12T00:52:30.000Z | RNAPuzzles/rnapuzzles/views/faq/detail.py | whinyadventure/RNA-Puzzles | bbd147e1a0748a77b5e3424a93ad57bb430b5a0e | [
"Apache-2.0"
] | 1 | 2020-05-11T18:51:04.000Z | 2020-05-11T18:51:04.000Z | from django.http import Http404, HttpResponseRedirect
from django.urls import reverse
from django.views.generic import DetailView
from guardian.mixins import PermissionRequiredMixin
from rnapuzzles.models import NewsModel, FaqModel
class Detail(DetailView):
model = FaqModel
def get(self, request, *args, **k... | 22.714286 | 60 | 0.701258 | 70 | 636 | 6.285714 | 0.585714 | 0.068182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 0.226415 | 636 | 27 | 61 | 23.555556 | 0.882114 | 0.02044 | 0 | 0 | 0 | 0 | 0.012945 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.666667 | 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 |
88e8f4b9f4625f3e3c6e8cae468da3b5352085b7 | 1,611 | py | Python | crate/web/lists/models.py | vijay2312/crate.web | dbf078485675ecd568e33a170d31b068949ec9bf | [
"BSD-2-Clause"
] | 1 | 2021-06-23T18:14:30.000Z | 2021-06-23T18:14:30.000Z | crate/web/lists/models.py | vijay2312/crate.web | dbf078485675ecd568e33a170d31b068949ec9bf | [
"BSD-2-Clause"
] | null | null | null | crate/web/lists/models.py | vijay2312/crate.web | dbf078485675ecd568e33a170d31b068949ec9bf | [
"BSD-2-Clause"
] | null | null | null | from django.core.urlresolvers import reverse
from django.db import models, IntegrityError
from django.template.defaultfilters import slugify
from django.utils.translation import ugettext_lazy as _
from model_utils.models import TimeStampedModel
class List(TimeStampedModel):
user = models.ForeignKey("auth.User")
... | 33.5625 | 122 | 0.645562 | 196 | 1,611 | 5.19898 | 0.469388 | 0.039254 | 0.02159 | 0.047105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007252 | 0.229671 | 1,611 | 47 | 123 | 34.276596 | 0.81386 | 0.043451 | 0 | 0 | 0 | 0 | 0.126706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.15625 | 0.0625 | 0.59375 | 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 |
88ef565844fc93b1c848603e6e092f169990260a | 3,152 | py | Python | python/diodberg/renderers/serial_renderers.py | ikea-lisp-code/diodberg | 843a80959f9ba777f09345209abeaa5bcd3a7a16 | [
"MIT"
] | 5 | 2015-10-30T04:53:51.000Z | 2019-08-10T22:32:55.000Z | python/diodberg/renderers/serial_renderers.py | ikea-lisp-code/diodberg | 843a80959f9ba777f09345209abeaa5bcd3a7a16 | [
"MIT"
] | null | null | null | python/diodberg/renderers/serial_renderers.py | ikea-lisp-code/diodberg | 843a80959f9ba777f09345209abeaa5bcd3a7a16 | [
"MIT"
] | null | null | null | from diodberg.core.renderer import Renderer
import sys
try:
import serial
except ImportError as err:
sys.stderr.write("Error: failed to import module ({})".format(err))
class DMXSerialRenderer(Renderer):
""" DMXSerialRenderer provides a renderer interface to a custom DMX shield
using the RaspberryPi... | 35.41573 | 102 | 0.658947 | 358 | 3,152 | 5.432961 | 0.349162 | 0.049357 | 0.024679 | 0.0509 | 0.092031 | 0.092031 | 0.069923 | 0.052442 | 0 | 0 | 0 | 0.013971 | 0.250635 | 3,152 | 88 | 103 | 35.818182 | 0.809483 | 0.137373 | 0 | 0.065574 | 0 | 0 | 0.03215 | 0 | 0 | 0 | 0 | 0.011364 | 0 | 1 | 0.114754 | false | 0 | 0.131148 | 0.016393 | 0.42623 | 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 |
88fb8dc0c3f47a6c1f40813c30af4b8782ab7ba2 | 1,249 | py | Python | nysa/cbuilder/sdb.py | CospanDesign/nysa | ffe07f0b8fe2f6217e7a862d89b80f1b17163be9 | [
"MIT"
] | 15 | 2015-08-31T20:50:39.000Z | 2022-03-13T08:56:39.000Z | nysa/cbuilder/sdb.py | CospanDesign/nysa | ffe07f0b8fe2f6217e7a862d89b80f1b17163be9 | [
"MIT"
] | 5 | 2015-05-02T16:48:57.000Z | 2017-06-15T16:25:34.000Z | nysa/cbuilder/sdb.py | CospanDesign/nysa | ffe07f0b8fe2f6217e7a862d89b80f1b17163be9 | [
"MIT"
] | 6 | 2016-09-02T16:02:13.000Z | 2021-06-29T22:29:45.000Z | #! /usr/bin/python
# Copyright (c) 2015 Dave McCoy (dave.mccoy@cospandesign.com)
#
# This file is part of Nysa.
# (http://wiki.cospandesign.com/index.php?title=Nysa.org)
#
# Nysa is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free So... | 26.020833 | 70 | 0.702162 | 186 | 1,249 | 4.672043 | 0.543011 | 0.041427 | 0.044879 | 0.065593 | 0.094361 | 0.064442 | 0 | 0 | 0 | 0 | 0 | 0.005071 | 0.210568 | 1,249 | 47 | 71 | 26.574468 | 0.876268 | 0.582866 | 0 | 0.166667 | 0 | 0 | 0.079681 | 0.053785 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.166667 | 0.166667 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
88fd8d9eeaa742b1676ada01bf8c212cd2db4417 | 3,543 | py | Python | DataIngestion_FeaturePreparation/utilFunctions.py | Glorf/SparkDLTrigger | 6082efd33d6f306fd00a900b80f55a6a3ca19054 | [
"Apache-2.0"
] | 24 | 2019-04-24T15:10:29.000Z | 2021-09-01T14:55:41.000Z | DataIngestion_FeaturePreparation/utilFunctions.py | Glorf/SparkDLTrigger | 6082efd33d6f306fd00a900b80f55a6a3ca19054 | [
"Apache-2.0"
] | null | null | null | DataIngestion_FeaturePreparation/utilFunctions.py | Glorf/SparkDLTrigger | 6082efd33d6f306fd00a900b80f55a6a3ca19054 | [
"Apache-2.0"
] | 11 | 2019-04-24T14:14:10.000Z | 2021-07-16T07:46:00.000Z | import numpy as np
import math
from pyspark.sql import Row
"""
Implementation of Lorentz vector
"""
class LorentzVector(object):
def __init__(self, *args):
if len(args)>0:
self.x = args[0]
self.y = args[1]
self.z = args[2]
self.t = args[3]
def SetPt... | 26.639098 | 82 | 0.554332 | 528 | 3,543 | 3.712121 | 0.210227 | 0.022959 | 0.015306 | 0.02449 | 0.338776 | 0.314796 | 0.288776 | 0.218367 | 0.195918 | 0.195918 | 0 | 0.017221 | 0.29523 | 3,543 | 132 | 83 | 26.840909 | 0.767721 | 0.023709 | 0 | 0.163043 | 0 | 0 | 0.007612 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.032609 | 0.086957 | 0.445652 | 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 |
88fdebb967418d6eb4f2c2f57edfe2ef72a2a5b2 | 15,565 | py | Python | gym_pybullet_drones/envs/single_agent_rl/BaseSingleAgentAviary.py | ramonfontes/gym-pybullet-drones | 7fc1dbd3d52086972775fe0143866f7706f7e5bb | [
"MIT"
] | null | null | null | gym_pybullet_drones/envs/single_agent_rl/BaseSingleAgentAviary.py | ramonfontes/gym-pybullet-drones | 7fc1dbd3d52086972775fe0143866f7706f7e5bb | [
"MIT"
] | null | null | null | gym_pybullet_drones/envs/single_agent_rl/BaseSingleAgentAviary.py | ramonfontes/gym-pybullet-drones | 7fc1dbd3d52086972775fe0143866f7706f7e5bb | [
"MIT"
] | null | null | null | import os
import numpy as np
from scipy.optimize import nnls
from gym import spaces
import pybullet as p
import pybullet_data
from gym_pybullet_drones.envs.BaseAviary import DroneModel, Physics, ImageType, BaseAviary
####################################################################################################... | 85.521978 | 253 | 0.414134 | 1,503 | 15,565 | 4.133733 | 0.200266 | 0.018992 | 0.021729 | 0.023821 | 0.377756 | 0.333977 | 0.290842 | 0.226622 | 0.203122 | 0.187993 | 0 | 0.021547 | 0.194925 | 15,565 | 181 | 254 | 85.994475 | 0.474264 | 0.208288 | 0 | 0.126582 | 0 | 0.025316 | 0.130959 | 0.030513 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101266 | false | 0.012658 | 0.088608 | 0 | 0.291139 | 0.113924 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
00040d6243fafd7ad8637217ce77ba3bde5d4dce | 255 | py | Python | BOJ/02000~02999/2800~2899/2858.py | shinkeonkim/today-ps | f3e5e38c5215f19579bb0422f303a9c18c626afa | [
"Apache-2.0"
] | 2 | 2020-01-29T06:54:41.000Z | 2021-11-07T13:23:27.000Z | BOJ/02000~02999/2800~2899/2858.py | shinkeonkim/Today_PS | bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44 | [
"Apache-2.0"
] | null | null | null | BOJ/02000~02999/2800~2899/2858.py | shinkeonkim/Today_PS | bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44 | [
"Apache-2.0"
] | null | null | null | from math import sqrt
R,B=list(map(int,input().split()))
S = R+B
for i in range(1, int(sqrt(S))+1):
if S % i ==0 :
a = i
b = S // i
if a<b:
a,b=b,a
if a>2 and b>2 and (a-2)*(b-2) == B:
print(a,b) | 23.181818 | 44 | 0.415686 | 54 | 255 | 1.962963 | 0.425926 | 0.056604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044586 | 0.384314 | 255 | 11 | 45 | 23.181818 | 0.630573 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.090909 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
00043adab868a44eb1376f819afe331317b86da7 | 635 | py | Python | hint_cli/format.py | agarthetiger/hint | db39325b4cd2a9d6678a35c63e188060a77eec1c | [
"MIT"
] | 1 | 2021-02-20T11:27:40.000Z | 2021-02-20T11:27:40.000Z | hint_cli/format.py | agarthetiger/hint | db39325b4cd2a9d6678a35c63e188060a77eec1c | [
"MIT"
] | 4 | 2020-09-14T08:45:31.000Z | 2021-09-28T05:26:33.000Z | hint_cli/format.py | agarthetiger/hint | db39325b4cd2a9d6678a35c63e188060a77eec1c | [
"MIT"
] | null | null | null | import re
import click
import rich
RE_COMMAND = re.compile(r"`(?P<command>.*?)`")
# See available colours listed under click.Style on
# https://click.palletsprojects.com/en/7.x/api/#utilities
TITLE_COLOUR = "cyan"
COMMAND_COLOUR = "blue"
def style_command(match):
return click.style(match.group('command'), bol... | 24.423077 | 82 | 0.688189 | 90 | 635 | 4.744444 | 0.488889 | 0.070258 | 0.074941 | 0.084309 | 0.088993 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009363 | 0.159055 | 635 | 25 | 83 | 25.4 | 0.790262 | 0.16378 | 0 | 0 | 0 | 0 | 0.070209 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.2 | 0.066667 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
00052cf4e2e58f6cc352baf20ca7627cbaf2e48d | 2,850 | py | Python | dynamic_dispatch/__init__.py | XevoInc/dynamic_dispatch | fb4ec6fcb392c866637533180635650b0fe127b1 | [
"Apache-2.0"
] | 5 | 2020-06-12T22:23:04.000Z | 2020-06-14T19:37:52.000Z | dynamic_dispatch/__init__.py | XevoInc/dynamic_dispatch | fb4ec6fcb392c866637533180635650b0fe127b1 | [
"Apache-2.0"
] | null | null | null | dynamic_dispatch/__init__.py | XevoInc/dynamic_dispatch | fb4ec6fcb392c866637533180635650b0fe127b1 | [
"Apache-2.0"
] | null | null | null | """ Like functools.singledispatch, but dynamic, value-based dispatch. """
__all__ = ('dynamic_dispatch',)
import functools
import inspect
from typing import Union, Callable, Type, Hashable
from dynamic_dispatch._class import class_dispatch
from dynamic_dispatch._func import func_dispatch
from ._typeguard import ty... | 29.081633 | 89 | 0.603158 | 334 | 2,850 | 5.01497 | 0.344311 | 0.089552 | 0.035821 | 0.020299 | 0.093134 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011794 | 0.285965 | 2,850 | 97 | 90 | 29.381443 | 0.811302 | 0.597895 | 0 | 0 | 0 | 0 | 0.025723 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.285714 | 0 | 0.619048 | 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 |
000928fd102f8c6f8af00e4185ffc3aba1531060 | 1,776 | py | Python | steam/ext/tf2/protobufs/struct_messages.py | olifog/steam-ext-tf2 | 15d1c72d4b690ccda1309ae35558f5a3655badad | [
"MIT"
] | null | null | null | steam/ext/tf2/protobufs/struct_messages.py | olifog/steam-ext-tf2 | 15d1c72d4b690ccda1309ae35558f5a3655badad | [
"MIT"
] | null | null | null | steam/ext/tf2/protobufs/struct_messages.py | olifog/steam-ext-tf2 | 15d1c72d4b690ccda1309ae35558f5a3655badad | [
"MIT"
] | null | null | null | from __future__ import annotations
from typing_extensions import Self
from ....protobufs.struct_messages import StructMessage
from ....utils import StructIO
# some custom messages to make things a lot easier decoding/encoding wise
class CraftRequest(StructMessage):
recipe: int
items: list[int]
def __by... | 23.064935 | 91 | 0.658784 | 225 | 1,776 | 5.013333 | 0.404444 | 0.039894 | 0.044326 | 0.026596 | 0.113475 | 0.076241 | 0.076241 | 0.076241 | 0.076241 | 0.076241 | 0 | 0.011364 | 0.256757 | 1,776 | 76 | 92 | 23.368421 | 0.843182 | 0.096284 | 0 | 0.265306 | 0 | 0 | 0.009369 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081633 | false | 0 | 0.081633 | 0.020408 | 0.734694 | 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 |
0009ee17c19df3dc7afee3d18b6b34fc302f1aaa | 6,697 | py | Python | cms/publications/models.py | dragon-dxw/nhs-ei.website | 6b513040f2cbf5c4359dc0f9431712d74bc6aa02 | [
"MIT"
] | null | null | null | cms/publications/models.py | dragon-dxw/nhs-ei.website | 6b513040f2cbf5c4359dc0f9431712d74bc6aa02 | [
"MIT"
] | 35 | 2021-06-25T10:22:48.000Z | 2022-03-30T11:26:22.000Z | cms/publications/models.py | dxw/nhs-ei.website | 6b513040f2cbf5c4359dc0f9431712d74bc6aa02 | [
"MIT"
] | null | null | null | from urllib.parse import urlparse
from cms.categories.models import Category, PublicationType, CategoryPage
from cms.publications.blocks import PublicationsBlocks
from django.core.paginator import EmptyPage, PageNotAnInteger, Paginator
from django.db import models
from django.db.models.fields.related import ForeignKey... | 36.2 | 103 | 0.637599 | 753 | 6,697 | 5.511288 | 0.280212 | 0.021687 | 0.02506 | 0.021687 | 0.332048 | 0.306265 | 0.242651 | 0.223855 | 0.209398 | 0.17759 | 0 | 0.002453 | 0.269524 | 6,697 | 184 | 104 | 36.396739 | 0.845871 | 0.11214 | 0 | 0.274074 | 0 | 0.007407 | 0.157265 | 0.049447 | 0 | 0 | 0 | 0.01087 | 0 | 1 | 0.044444 | false | 0 | 0.074074 | 0.014815 | 0.303704 | 0.02963 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
001d960b36b9299709cf24d57e522c49b191b84c | 623 | py | Python | funilaria/migrations/0009_auto_20191010_1655.py | ph0980/OPE-IndyCar | c574c892c2d1bf633b2aa229ed13e0940184cff9 | [
"Apache-2.0"
] | 2 | 2019-08-21T11:37:01.000Z | 2019-10-01T13:53:22.000Z | funilaria/migrations/0009_auto_20191010_1655.py | ph0980/OPE-IndyCar | c574c892c2d1bf633b2aa229ed13e0940184cff9 | [
"Apache-2.0"
] | 6 | 2020-06-05T23:06:08.000Z | 2022-02-10T11:06:34.000Z | funilaria/migrations/0009_auto_20191010_1655.py | ph0980/OPE-IndyCar | c574c892c2d1bf633b2aa229ed13e0940184cff9 | [
"Apache-2.0"
] | 1 | 2019-12-21T22:53:49.000Z | 2019-12-21T22:53:49.000Z | # Generated by Django 2.2 on 2019-10-10 19:55
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('funilaria', '0008_auto_20191009_0904'),
]
operations = [
migrations.AddField(
model_name='orcamento',
... | 24.92 | 95 | 0.605136 | 63 | 623 | 5.888889 | 0.650794 | 0.032345 | 0.043127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10962 | 0.282504 | 623 | 24 | 96 | 25.958333 | 0.720358 | 0.069021 | 0 | 0.111111 | 1 | 0 | 0.134948 | 0.039792 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 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 |
0022d3ced162a6cf917e5e7f2a034582d63841ce | 4,163 | py | Python | admin/handler/userHandler.py | xin1195/smart | 11815b8a63f2459300e8aaad82b539cfef8a7546 | [
"Apache-2.0"
] | 1 | 2016-05-09T12:29:47.000Z | 2016-05-09T12:29:47.000Z | admin/handler/userHandler.py | xin1195/smartSearch | 11815b8a63f2459300e8aaad82b539cfef8a7546 | [
"Apache-2.0"
] | null | null | null | admin/handler/userHandler.py | xin1195/smartSearch | 11815b8a63f2459300e8aaad82b539cfef8a7546 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# _*_coding:utf-8_*_
import hashlib
import traceback
import tornado.web
from tornado import gen
from admin.handler.baseHandler import BaseHandler
from common.authLib import auth_permissions
from setting import logger
class AdminUserHandler(BaseHandler):
@tornado.web.authenticated
@aut... | 34.404959 | 122 | 0.585876 | 455 | 4,163 | 5.191209 | 0.208791 | 0.035563 | 0.076207 | 0.068586 | 0.700677 | 0.69348 | 0.651143 | 0.635902 | 0.609653 | 0.563082 | 0 | 0.007019 | 0.281288 | 4,163 | 120 | 123 | 34.691667 | 0.78242 | 0.009608 | 0 | 0.688679 | 0 | 0 | 0.083718 | 0.016986 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056604 | false | 0.066038 | 0.066038 | 0 | 0.160377 | 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 |
0027d54f621e5da6f3af054395a4bc3184233f40 | 7,923 | py | Python | trainers/expname_trainer.py | Hhhhhhhhhhao/image-cartoonization | 073b51656b96b069496917d212119caad7bf4728 | [
"MIT"
] | null | null | null | trainers/expname_trainer.py | Hhhhhhhhhhao/image-cartoonization | 073b51656b96b069496917d212119caad7bf4728 | [
"MIT"
] | null | null | null | trainers/expname_trainer.py | Hhhhhhhhhhao/image-cartoonization | 073b51656b96b069496917d212119caad7bf4728 | [
"MIT"
] | null | null | null | import torch
from torchvision.utils import make_grid
import numpy as np
from base import BaseTrainer
from models import Generator, Discriminator
from losses import *
from data_loaders import CartoonDataLoader
from utils import MetricTracker
class ExpnameTrainer(BaseTrainer):
def __init__(self, config):
su... | 38.461165 | 118 | 0.607724 | 949 | 7,923 | 4.87039 | 0.198103 | 0.043271 | 0.03029 | 0.023799 | 0.266768 | 0.224794 | 0.194721 | 0.194721 | 0.178711 | 0.165729 | 0 | 0.004123 | 0.265304 | 7,923 | 205 | 119 | 38.64878 | 0.789899 | 0.155244 | 0 | 0.097561 | 0 | 0.00813 | 0.071703 | 0 | 0 | 0 | 0 | 0.014634 | 0 | 1 | 0.081301 | false | 0 | 0.065041 | 0 | 0.195122 | 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 |
0035cda9c6da37575e7853b710767c9b07b845e5 | 870 | py | Python | python-scripts/contours/Generalize-orienteering-contours.py | JiriVales/orienteering-tools | 3bac9e75c2116be35d3a59ffa203e8e736a2b66c | [
"BSD-3-Clause"
] | 5 | 2018-05-31T07:41:51.000Z | 2020-04-16T09:20:34.000Z | python-scripts/contours/Generalize-orienteering-contours.py | JiriVales/automatic-creation-orienteering-map | 3bac9e75c2116be35d3a59ffa203e8e736a2b66c | [
"BSD-3-Clause"
] | null | null | null | python-scripts/contours/Generalize-orienteering-contours.py | JiriVales/automatic-creation-orienteering-map | 3bac9e75c2116be35d3a59ffa203e8e736a2b66c | [
"BSD-3-Clause"
] | null | null | null | ##Generalize orienteering contours=name
##maximumdistancebetweentheoriginalandthesimplifiedcurvedouglaspeuckeralgorithm=number4
##contours=vector
##min=string37
##generalizecontours=output vector
outputs_QGISFIELDCALCULATOR_1=processing.runalg('qgis:fieldcalculator', contours,'length',0,10.0,2.0,True,'round($length,2)'... | 96.666667 | 255 | 0.858621 | 93 | 870 | 7.870968 | 0.419355 | 0.060109 | 0.092896 | 0.086066 | 0.090164 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040936 | 0.017241 | 870 | 9 | 256 | 96.666667 | 0.815205 | 0.208046 | 0 | 0 | 0 | 0 | 0.214706 | 0.075 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0039d60278d356a8f3ab1e0dec5ab95cb6e993cf | 382 | py | Python | tester.py | Edrig/CircuitPython_TB6612FNG | 3f89725ff437dd46e84a93b4b3525d61de46a740 | [
"MIT"
] | null | null | null | tester.py | Edrig/CircuitPython_TB6612FNG | 3f89725ff437dd46e84a93b4b3525d61de46a740 | [
"MIT"
] | null | null | null | tester.py | Edrig/CircuitPython_TB6612FNG | 3f89725ff437dd46e84a93b4b3525d61de46a740 | [
"MIT"
] | null | null | null |
from time import sleep as delay
import fng
m1 = fng.Fng(board.ENA, board.IN1, board.IN2)
m1 = fng.Fng(board.ENB, board.IN3, board.IN4)
m1.write(0, 'cw')
m2.write(0, 'cw')
delay(1)
m1.write(300, 'cw')
delay(2)
m2.write(300, 'cw')
delay(2)
m1.write(0, 'cw')
m2.write(0, 'cw')
delay(1)
m1.write(300, 'ccw')
delay(2)
m2.... | 15.916667 | 45 | 0.641361 | 78 | 382 | 3.141026 | 0.294872 | 0.146939 | 0.195918 | 0.122449 | 0.595918 | 0.42449 | 0.42449 | 0.42449 | 0.42449 | 0.42449 | 0 | 0.119403 | 0.123037 | 382 | 24 | 46 | 15.916667 | 0.61194 | 0 | 0 | 0.6 | 0 | 0 | 0.057592 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 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 |
003d3854efd76cbac152e06a2062c7b5a20382d7 | 677 | py | Python | app/__init__.py | Abdulrahmannaser/QRC_generator | dd1d50ac4ba0bbe3ce12475ad49a3c7f459f136d | [
"MIT"
] | null | null | null | app/__init__.py | Abdulrahmannaser/QRC_generator | dd1d50ac4ba0bbe3ce12475ad49a3c7f459f136d | [
"MIT"
] | null | null | null | app/__init__.py | Abdulrahmannaser/QRC_generator | dd1d50ac4ba0bbe3ce12475ad49a3c7f459f136d | [
"MIT"
] | null | null | null | import logging
import os
from flask import Flask, request, current_app
from flask_sqlalchemy import SQLAlchemy
from config import Config
db = SQLAlchemy()
def create_app(config_class=Config):
app = Flask(__name__)
app.config.from_object(config_class)
db.init_app(app)
from app.errors import bp as er... | 13.27451 | 53 | 0.726736 | 100 | 677 | 4.71 | 0.34 | 0.059448 | 0.063694 | 0.140127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20384 | 677 | 50 | 54 | 13.54 | 0.87384 | 0 | 0 | 0 | 0 | 0 | 0.03653 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.45 | 0 | 0.55 | 0.15 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0041a01733c5a5a6382b7693a41c05e29aca872c | 28,622 | py | Python | src/act/atlas/aCTPanda2Xrsl.py | ATLASControlTower/aCT | fb841bddbe086db9f0d620167c4a11ae4634ef4f | [
"Apache-2.0"
] | null | null | null | src/act/atlas/aCTPanda2Xrsl.py | ATLASControlTower/aCT | fb841bddbe086db9f0d620167c4a11ae4634ef4f | [
"Apache-2.0"
] | null | null | null | src/act/atlas/aCTPanda2Xrsl.py | ATLASControlTower/aCT | fb841bddbe086db9f0d620167c4a11ae4634ef4f | [
"Apache-2.0"
] | 4 | 2018-02-05T11:25:20.000Z | 2018-07-19T09:53:13.000Z | import cgi
import json
import os
import re
import time
import uuid
class aCTPanda2Xrsl:
def __init__(self, pandadbjob, siteinfo, osmap, tmpdir, atlasconf, log):
self.log = log
self.pandajob = pandadbjob['pandajob']
self.jobdesc = cgi.parse_qs(self.pandajob)
self.pandajobid = panda... | 51.202147 | 4,787 | 0.595067 | 3,220 | 28,622 | 5.219565 | 0.245963 | 0.03207 | 0.014994 | 0.011781 | 0.289641 | 0.207235 | 0.178021 | 0.122151 | 0.110371 | 0.10091 | 0 | 0.077719 | 0.260499 | 28,622 | 558 | 4,788 | 51.293907 | 0.716338 | 0.093599 | 0 | 0.160804 | 0 | 0.025126 | 0.363963 | 0.224313 | 0 | 0 | 0 | 0.001792 | 0 | 1 | 0.050251 | false | 0.005025 | 0.025126 | 0.005025 | 0.103015 | 0.002513 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
00475608cd6682a6971f83c144a409f31b8c8578 | 2,653 | py | Python | files/targets/ios_framework/config/config.py | uilianries/ezored | 8c45a6753ddffce1fe406e6e062ff2b455dbb5a1 | [
"MIT"
] | null | null | null | files/targets/ios_framework/config/config.py | uilianries/ezored | 8c45a6753ddffce1fe406e6e062ff2b455dbb5a1 | [
"MIT"
] | null | null | null | files/targets/ios_framework/config/config.py | uilianries/ezored | 8c45a6753ddffce1fe406e6e062ff2b455dbb5a1 | [
"MIT"
] | null | null | null | def run(params={}):
return {
'project_name': 'Core',
'bitcode': True,
'min_version': '9.0',
'enable_arc': True,
'enable_visibility': True,
'conan_profile': 'ezored_ios_framework_profile',
'archs': [
{'arch': 'armv7', 'conan_arch': 'armv7', 'platfor... | 33.1625 | 82 | 0.392009 | 214 | 2,653 | 4.780374 | 0.317757 | 0.102639 | 0.16129 | 0.234604 | 0.506354 | 0.484848 | 0.414467 | 0.414467 | 0 | 0 | 0 | 0.027796 | 0.430456 | 2,653 | 79 | 83 | 33.582278 | 0.649239 | 0 | 0 | 0.189873 | 0 | 0 | 0.413117 | 0.234075 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012658 | false | 0 | 0 | 0.012658 | 0.025316 | 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 |
0047860f4215f9cb9e1a1456ad978d457fffaf49 | 1,821 | py | Python | ecomm/models.py | areebbeigh/greenspace-demo | 0754f3b50e845bd5e50239361239f9b0b8aba42b | [
"Apache-2.0"
] | 1 | 2020-07-06T05:53:12.000Z | 2020-07-06T05:53:12.000Z | ecomm/models.py | areebbeigh/greenspace-demo | 0754f3b50e845bd5e50239361239f9b0b8aba42b | [
"Apache-2.0"
] | 1 | 2020-06-11T15:51:49.000Z | 2020-06-11T16:10:31.000Z | ecomm/models.py | areebbeigh/greenspace-demo | 0754f3b50e845bd5e50239361239f9b0b8aba42b | [
"Apache-2.0"
] | null | null | null | from django.db import models
from django.contrib.auth.models import Group
from django.conf import settings
from django.core.exceptions import ValidationError
from users.models import CustomUser
class Product(models.Model):
is_cleaned = False
name = models.CharField(max_length=200, null=True)
price = mod... | 33.109091 | 80 | 0.686436 | 230 | 1,821 | 5.286957 | 0.395652 | 0.032895 | 0.046053 | 0.069079 | 0.328125 | 0.229441 | 0.229441 | 0.190789 | 0.190789 | 0.190789 | 0 | 0.006173 | 0.199341 | 1,821 | 54 | 81 | 33.722222 | 0.827846 | 0.023613 | 0 | 0.04878 | 0 | 0 | 0.087838 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121951 | false | 0 | 0.121951 | 0.073171 | 0.682927 | 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 |
004cccfb16dc272cd58bb038640a85c14a04639c | 1,130 | py | Python | cloudentries/fusioncompute/lifecycles/fc_rest_client/storage/volumes.py | CloudChef/CloudEntries | a890e2eb96cc537db131e7ca8a0e6e1edc0b6ebd | [
"Apache-2.0"
] | null | null | null | cloudentries/fusioncompute/lifecycles/fc_rest_client/storage/volumes.py | CloudChef/CloudEntries | a890e2eb96cc537db131e7ca8a0e6e1edc0b6ebd | [
"Apache-2.0"
] | null | null | null | cloudentries/fusioncompute/lifecycles/fc_rest_client/storage/volumes.py | CloudChef/CloudEntries | a890e2eb96cc537db131e7ca8a0e6e1edc0b6ebd | [
"Apache-2.0"
] | 1 | 2021-03-26T05:45:00.000Z | 2021-03-26T05:45:00.000Z | # Copyright (c) 2021 Qianyun, Inc. All rights reserved.
from ..common import FusionComputeBase
from cloudify import ctx
class VolumesClient(FusionComputeBase):
IDENTIFIER = 'volumes'
def list(self, urn, limit=100, offset=0):
uri_prefix = '/'.join([self.urn2uri(urn), self.IDENTIFIER])
paginat... | 35.3125 | 87 | 0.645133 | 139 | 1,130 | 5.158273 | 0.352518 | 0.039052 | 0.078103 | 0.111576 | 0.276151 | 0.192469 | 0.103208 | 0.103208 | 0 | 0 | 0 | 0.014574 | 0.210619 | 1,130 | 31 | 88 | 36.451613 | 0.789238 | 0.046903 | 0 | 0.086957 | 0 | 0 | 0.07907 | 0.026977 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.086957 | 0 | 0.521739 | 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 |
0053cb11deedec1d753b8d56591391ebfa9a5dad | 372 | py | Python | django/models/database_models/migrations/0007_auto_20191219_0354.py | djangojeng-e/TIL | bdbe1dfb6ebc48b89067fddda195227cca64b8dc | [
"MIT"
] | null | null | null | django/models/database_models/migrations/0007_auto_20191219_0354.py | djangojeng-e/TIL | bdbe1dfb6ebc48b89067fddda195227cca64b8dc | [
"MIT"
] | null | null | null | django/models/database_models/migrations/0007_auto_20191219_0354.py | djangojeng-e/TIL | bdbe1dfb6ebc48b89067fddda195227cca64b8dc | [
"MIT"
] | null | null | null | # Generated by Django 2.2.8 on 2019-12-19 03:54
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('database_models', '0006_ox'),
]
operations = [
migrations.AlterModelOptions(
name='ox',
options={'ordering': ['horn_length']... | 20.666667 | 82 | 0.594086 | 40 | 372 | 5.4 | 0.825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070111 | 0.271505 | 372 | 17 | 83 | 21.882353 | 0.726937 | 0.120968 | 0 | 0 | 1 | 0 | 0.206154 | 0 | 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 |
00541a090b01512eeb7f1e9e94b43fb4d3babd7b | 5,782 | py | Python | Uncategorized-pages.py | Turkce-Vikipedi-Yazilim-Deposu/Uncategorized-pages | 44fc4776404aac98fb66a00f4a3048ea173470a6 | [
"MIT"
] | null | null | null | Uncategorized-pages.py | Turkce-Vikipedi-Yazilim-Deposu/Uncategorized-pages | 44fc4776404aac98fb66a00f4a3048ea173470a6 | [
"MIT"
] | 1 | 2021-02-15T10:47:21.000Z | 2021-02-15T10:47:21.000Z | Uncategorized-pages.py | Turkce-Vikipedi-Yazilim-Deposu/Uncategorized-pages | 44fc4776404aac98fb66a00f4a3048ea173470a6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# !/usr/bin/python
import random
import re
import requests
import mavri
wiki = 'tr.wikipedia'
wikiS = 'trwiki'
xx = mavri.login(wiki, 'Mavrikant Bot')
catNS = requests.get(
'https://' + wiki + '.org/w/api.php?format=json&utf8=&action=query&meta=siteinfo&siprop=namespaces').json()[
... | 49.418803 | 131 | 0.479765 | 576 | 5,782 | 4.739583 | 0.208333 | 0.010256 | 0.035165 | 0.038095 | 0.610623 | 0.578022 | 0.54652 | 0.527839 | 0.496703 | 0.474725 | 0 | 0.004091 | 0.32359 | 5,782 | 116 | 132 | 49.844828 | 0.69394 | 0.010031 | 0 | 0.383838 | 0 | 0.030303 | 0.26613 | 0.161042 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.040404 | null | null | 0.080808 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cc36c715b15cef873692996da21049266c1532d0 | 7,907 | py | Python | src/ipycbm/sources/rest_api.py | VP-GEO/cbm | 4ed229f6b6455435b6d032deb8a39dba4ecee7a2 | [
"BSD-3-Clause"
] | null | null | null | src/ipycbm/sources/rest_api.py | VP-GEO/cbm | 4ed229f6b6455435b6d032deb8a39dba4ecee7a2 | [
"BSD-3-Clause"
] | null | null | null | src/ipycbm/sources/rest_api.py | VP-GEO/cbm | 4ed229f6b6455435b6d032deb8a39dba4ecee7a2 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# This file is part of CbM (https://github.com/ec-jrc/cbm).
# Author : Guido Lemoine, Konstantinos Anastasakis
# Credits : GTCAP Team
# Copyright : 2021 European Commission, Joint Research Centre
# License : 3-Clause BSD
from src.ipycbm.utils import config
import... | 36.776744 | 89 | 0.587201 | 969 | 7,907 | 4.703818 | 0.296182 | 0.018429 | 0.026327 | 0.036858 | 0.383063 | 0.289601 | 0.273146 | 0.245722 | 0.245722 | 0.180562 | 0 | 0.004603 | 0.28557 | 7,907 | 214 | 90 | 36.948598 | 0.802266 | 0.193246 | 0 | 0.362963 | 0 | 0.007407 | 0.162094 | 0.087985 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051852 | false | 0.088889 | 0.111111 | 0 | 0.2 | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cc3769add829a8e19c188057b46207ee4e43828c | 2,019 | py | Python | parsers/humbleparser.py | FilipDominec/gayplot | aabeee33f9b594952e88e31d94eead20b21ed674 | [
"MIT"
] | 6 | 2016-09-26T16:30:46.000Z | 2020-04-29T17:30:01.000Z | parsers/humbleparser.py | FilipDominec/gayplot | aabeee33f9b594952e88e31d94eead20b21ed674 | [
"MIT"
] | 5 | 2016-08-25T15:51:35.000Z | 2018-06-14T17:12:42.000Z | parsers/humbleparser.py | FilipDominec/gayplot | aabeee33f9b594952e88e31d94eead20b21ed674 | [
"MIT"
] | 4 | 2017-06-07T14:40:29.000Z | 2019-05-09T14:17:55.000Z | #!/usr/bin/python3
#-*- coding: utf-8 -*-
"""
A simplistic attempt to parse simple procedural languages that control e.g. MOVPE apparatuses gas flow (not finished)
"""
import sys,re
time = 0
labels = {}
tableheader = [] ## TODO TODO efficient accumulation of data w/ possibility of new variables in the middle of EPI... | 38.826923 | 131 | 0.549777 | 238 | 2,019 | 4.655462 | 0.453782 | 0.024368 | 0.018051 | 0.019856 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021171 | 0.298167 | 2,019 | 51 | 132 | 39.588235 | 0.760762 | 0.232293 | 0 | 0 | 0 | 0 | 0.077074 | 0 | 0 | 0 | 0 | 0.019608 | 0 | 1 | 0 | false | 0 | 0.033333 | 0 | 0.033333 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
cc387d9a15dc07a58a1aef7e27c7f9ae23b2fbd9 | 1,735 | py | Python | Back-End/src/Projects/migrations/0001_initial.py | steve-njuguna-k/Django-Angular-Projects-Manager | 569348d1cdf29e9789526db180d83ad969302bec | [
"MIT"
] | 1 | 2022-02-01T17:53:54.000Z | 2022-02-01T17:53:54.000Z | Back-End/src/Projects/migrations/0001_initial.py | steve-njuguna-k/Django-Angular-Projects-Manager | 569348d1cdf29e9789526db180d83ad969302bec | [
"MIT"
] | null | null | null | Back-End/src/Projects/migrations/0001_initial.py | steve-njuguna-k/Django-Angular-Projects-Manager | 569348d1cdf29e9789526db180d83ad969302bec | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-09-13 14:53
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Categories',
fields=[
... | 35.408163 | 126 | 0.564265 | 152 | 1,735 | 6.368421 | 0.381579 | 0.041322 | 0.057851 | 0.090909 | 0.577479 | 0.52376 | 0.52376 | 0.346074 | 0.240702 | 0.240702 | 0 | 0.018977 | 0.301441 | 1,735 | 48 | 127 | 36.145833 | 0.779703 | 0.025937 | 0 | 0.439024 | 1 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04878 | 0 | 0.146341 | 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 |
cc4119e45e98875e9f656da518c2b1e11eebeacb | 5,483 | py | Python | elro/device.py | dib0/elro_connects | 19412a5be4f924f2ccf82801999cc7fc639155b3 | [
"MIT"
] | 16 | 2019-10-12T12:50:36.000Z | 2022-01-24T17:39:36.000Z | elro/device.py | depuits/elro_connects | eb2cf1df67ef0ade811e278b52520449e0941d23 | [
"MIT"
] | 23 | 2021-03-01T16:40:39.000Z | 2022-03-25T12:54:21.000Z | elro/device.py | depuits/elro_connects | eb2cf1df67ef0ade811e278b52520449e0941d23 | [
"MIT"
] | 7 | 2020-12-27T20:18:20.000Z | 2022-01-21T15:39:18.000Z | from enum import Enum
from abc import ABC, abstractmethod
import logging
import json
import trio
class DeviceType(Enum):
"""
The DeviceType defines which kind of Elro device this is
"""
CO_ALARM = "0000"
WATER_ALARM = "0004"
HEAT_ALARM = "0003"
FIRE_ALARM = "0005"
DOOR_WINDOW_SENSOR =... | 28.409326 | 82 | 0.579245 | 653 | 5,483 | 4.67075 | 0.179173 | 0.055738 | 0.055082 | 0.041311 | 0.394426 | 0.285246 | 0.265574 | 0.22 | 0.18 | 0.18 | 0 | 0.010293 | 0.308955 | 5,483 | 193 | 82 | 28.409326 | 0.794669 | 0.250775 | 0 | 0.202128 | 0 | 0 | 0.117891 | 0.01132 | 0 | 0 | 0 | 0 | 0 | 1 | 0.202128 | false | 0.010638 | 0.053191 | 0.021277 | 0.43617 | 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 |
cc41a55ea2dfa59c42e722abf1fec1c6d875b50b | 1,301 | py | Python | accounts/test_forms.py | vmcggh18/bits_tracker | 7c09aae321efb13979bed274d973c77319ce795e | [
"PostgreSQL"
] | null | null | null | accounts/test_forms.py | vmcggh18/bits_tracker | 7c09aae321efb13979bed274d973c77319ce795e | [
"PostgreSQL"
] | 7 | 2020-06-05T19:50:41.000Z | 2022-03-11T23:39:39.000Z | accounts/test_forms.py | vmcggh18/bits_tracker | 7c09aae321efb13979bed274d973c77319ce795e | [
"PostgreSQL"
] | 1 | 2019-02-19T15:30:16.000Z | 2019-02-19T15:30:16.000Z | from django.test import TestCase
from .forms import UserLoginForm, UserRegistrationForm
from django import forms
from django.contrib.auth.models import User
class TestTrackerUserLoginForm(TestCase):
def test_can_create_an_item_with_just_a_username(self):
#instantiate this object using a dictionary
... | 35.162162 | 79 | 0.663336 | 140 | 1,301 | 5.964286 | 0.428571 | 0.041916 | 0.052695 | 0.075449 | 0.208383 | 0.122156 | 0.122156 | 0.122156 | 0.122156 | 0 | 0 | 0.002973 | 0.224443 | 1,301 | 37 | 80 | 35.162162 | 0.824579 | 0.032283 | 0 | 0.115385 | 0 | 0 | 0.154091 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.153846 | false | 0.192308 | 0.153846 | 0 | 0.346154 | 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 |
cc42421a931372ab5f620c8ee6b79cd292923921 | 986 | py | Python | problems/tests/test_fizz_buzz.py | mdu-alt/coding_challenges_python | 171876129b17b5eccd8dd20c7f5b61b3e0e6ef90 | [
"MIT"
] | null | null | null | problems/tests/test_fizz_buzz.py | mdu-alt/coding_challenges_python | 171876129b17b5eccd8dd20c7f5b61b3e0e6ef90 | [
"MIT"
] | null | null | null | problems/tests/test_fizz_buzz.py | mdu-alt/coding_challenges_python | 171876129b17b5eccd8dd20c7f5b61b3e0e6ef90 | [
"MIT"
] | null | null | null | from problems.fizz_buzz import FizzBuzz
def test_fizz_buzz():
output = FizzBuzz.compute()
assert output == ['1', '2', 'fizz', '4', 'buzz', 'fizz', '7', '8', 'fizz', 'buzz', '11', 'fizz', '13', '14',
'fizzbuzz', '16', '17', 'fizz', '19', 'buzz', 'fizz', '22', '23', 'fizz', 'buzz', '26', ... | 65.733333 | 117 | 0.403651 | 115 | 986 | 3.434783 | 0.556522 | 0.182278 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142454 | 0.280933 | 986 | 14 | 118 | 70.428571 | 0.414669 | 0 | 0 | 0 | 0 | 0 | 0.317444 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.090909 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cc45c79609b6cc7f52c4f517f7f951560289401d | 2,232 | py | Python | src/environment_provider/logs/log_area.py | andjoe-axis/etos-environment-provider | e95f3e67a22ee08382265ea55070f9cd98b544e4 | [
"Apache-2.0"
] | null | null | null | src/environment_provider/logs/log_area.py | andjoe-axis/etos-environment-provider | e95f3e67a22ee08382265ea55070f9cd98b544e4 | [
"Apache-2.0"
] | 15 | 2020-09-28T12:01:46.000Z | 2022-03-11T11:38:04.000Z | src/environment_provider/logs/log_area.py | t-persson/etos-environment-provider | bf01dc2fe8f989bfc5c97dd543a15a15f0383540 | [
"Apache-2.0"
] | 4 | 2020-09-25T11:16:20.000Z | 2021-02-03T12:21:36.000Z | # Copyright 2020 Axis Communications AB.
#
# For a full list of individual contributors, please see the commit history.
#
# 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.apac... | 31 | 76 | 0.651434 | 290 | 2,232 | 4.865517 | 0.382759 | 0.09922 | 0.13253 | 0.089298 | 0.100638 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004869 | 0.263889 | 2,232 | 71 | 77 | 31.43662 | 0.853926 | 0.560036 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cc480975390bdb48e4e84b9194466af0a9cb6296 | 544 | py | Python | wazimap_ng/datasets/migrations/0090_auto_20200507_0306.py | arghyaiitb/wazimap-ng | 2a77860526d865b8fd0c22a2204f121fdb3b28a0 | [
"Apache-2.0"
] | 11 | 2019-12-31T20:27:22.000Z | 2022-03-10T03:55:38.000Z | wazimap_ng/datasets/migrations/0090_auto_20200507_0306.py | arghyaiitb/wazimap-ng | 2a77860526d865b8fd0c22a2204f121fdb3b28a0 | [
"Apache-2.0"
] | 164 | 2020-02-06T15:02:22.000Z | 2022-03-30T22:42:00.000Z | wazimap_ng/datasets/migrations/0090_auto_20200507_0306.py | arghyaiitb/wazimap-ng | 2a77860526d865b8fd0c22a2204f121fdb3b28a0 | [
"Apache-2.0"
] | 16 | 2020-01-03T20:30:24.000Z | 2022-01-11T11:05:15.000Z |
# Generated by Django 2.2.10 on 2020-05-07 03:06
import django.core.validators
from django.db import migrations, models
import wazimap_ng.datasets.models.upload
class Migration(migrations.Migration):
dependencies = [
('datasets', '0089_auto_20200509_2036'),
]
operations = [
migrations.... | 24.727273 | 124 | 0.645221 | 60 | 544 | 5.733333 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080378 | 0.222426 | 544 | 21 | 125 | 25.904762 | 0.732861 | 0.084559 | 0 | 0 | 1 | 0 | 0.171717 | 0.046465 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cc4906edea15ca13a154d701ab1df543b2b7b9bf | 406 | py | Python | ward_mapping/migrations/0002_auto_20190516_1329.py | Suraj1127/ward-mapping-application | 53fa39bab875ca47fdab814fd28ea0b7d2086c15 | [
"MIT"
] | 1 | 2019-05-16T04:08:40.000Z | 2019-05-16T04:08:40.000Z | ward_mapping/migrations/0002_auto_20190516_1329.py | Suraj1127/ward-mapping-application | 53fa39bab875ca47fdab814fd28ea0b7d2086c15 | [
"MIT"
] | null | null | null | ward_mapping/migrations/0002_auto_20190516_1329.py | Suraj1127/ward-mapping-application | 53fa39bab875ca47fdab814fd28ea0b7d2086c15 | [
"MIT"
] | null | null | null | # Generated by Django 2.2 on 2019-05-16 07:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ward_mapping', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='map2011',
name='old_survey_ward_co... | 21.368421 | 63 | 0.6133 | 45 | 406 | 5.377778 | 0.822222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081633 | 0.275862 | 406 | 18 | 64 | 22.555556 | 0.741497 | 0.105911 | 0 | 0 | 1 | 0 | 0.141274 | 0 | 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 |
cc4f865ffb4e361cabf92cb0fc88fc033229ffc2 | 7,287 | py | Python | file_repository_sdk/api/archive/get_difference_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | 5 | 2019-07-31T04:11:05.000Z | 2021-01-07T03:23:20.000Z | file_repository_sdk/api/archive/get_difference_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | file_repository_sdk/api/archive/get_difference_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: get_difference.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.proto... | 43.118343 | 616 | 0.758062 | 907 | 7,287 | 5.786108 | 0.175303 | 0.04878 | 0.05202 | 0.030488 | 0.572218 | 0.510671 | 0.510671 | 0.510671 | 0.496189 | 0.496189 | 0 | 0.035998 | 0.119391 | 7,287 | 168 | 617 | 43.375 | 0.78183 | 0.044188 | 0 | 0.625 | 1 | 0.006944 | 0.205692 | 0.161276 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cc51e6f93cd0950e7541b5984e91a6165fd05bb5 | 11,977 | py | Python | PyNotion.py | stephanGarland/PyNotion | 74460e4792758c740b4e779772f734f97d7ad371 | [
"MIT"
] | 9 | 2017-11-29T04:01:22.000Z | 2022-02-06T09:19:24.000Z | PyNotion.py | stephanGarland/PyNotion | 74460e4792758c740b4e779772f734f97d7ad371 | [
"MIT"
] | 3 | 2021-09-01T20:51:32.000Z | 2021-09-03T16:30:48.000Z | PyNotion.py | stephanGarland/PyNotion | 74460e4792758c740b4e779772f734f97d7ad371 | [
"MIT"
] | 1 | 2021-09-02T19:28:44.000Z | 2021-09-02T19:28:44.000Z | import requests
import json
from string import Template
from models.user import User
from models.task import Task
from models.system import System
from models.threshold import Threshold
from models.user_preferences import UserPreferences
from models.alert_perferences import AlertPerferences
from models.base_station imp... | 34.22 | 113 | 0.595057 | 1,401 | 11,977 | 4.880086 | 0.09636 | 0.046804 | 0.057043 | 0.072108 | 0.541904 | 0.517771 | 0.483107 | 0.454147 | 0.41802 | 0.414509 | 0 | 0.009619 | 0.270852 | 11,977 | 349 | 114 | 34.318052 | 0.773274 | 0.110796 | 0 | 0.324873 | 0 | 0.005076 | 0.123632 | 0.028121 | 0 | 0 | 0 | 0.011461 | 0 | 1 | 0.162437 | false | 0.015228 | 0.076142 | 0 | 0.431472 | 0.010152 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
cc53e51bc27a9706562d6ebf12d19cf726ff3572 | 2,496 | py | Python | src/extractor/csxextract/extractors/grobid.py | amm-kun/pdfmef | 712934533276484d2c76cfd1fecdf0f7062cc0bf | [
"Apache-2.0"
] | 25 | 2016-05-26T08:34:09.000Z | 2021-05-07T17:45:46.000Z | src/extractor/csxextract/extractors/grobid.py | SeerLabs/PDFMEF | 712934533276484d2c76cfd1fecdf0f7062cc0bf | [
"Apache-2.0"
] | 3 | 2016-05-17T20:52:51.000Z | 2016-05-19T13:37:19.000Z | src/extractor/csxextract/extractors/grobid.py | amm-kun/pdfmef | 712934533276484d2c76cfd1fecdf0f7062cc0bf | [
"Apache-2.0"
] | 7 | 2017-01-22T15:50:52.000Z | 2021-06-11T16:12:45.000Z | from extraction.runnables import Extractor, RunnableError, ExtractorResult
import extractor.csxextract.interfaces as interfaces
import extractor.csxextract.config as config
import extractor.csxextract.filters as filters
import defusedxml.ElementTree as safeET
import xml.etree.ElementTree as ET
import xml.sax.saxutils a... | 35.657143 | 131 | 0.72516 | 302 | 2,496 | 5.887417 | 0.430464 | 0.033746 | 0.035996 | 0.044994 | 0.249719 | 0.194038 | 0.194038 | 0.091114 | 0.091114 | 0.091114 | 0 | 0.005348 | 0.175881 | 2,496 | 69 | 132 | 36.173913 | 0.859018 | 0.159455 | 0 | 0.2 | 0 | 0 | 0.102969 | 0.021073 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0 | 0.266667 | 0 | 0.644444 | 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 |
cc5412276de8c611ee66cd660e808e297d27cffc | 4,059 | py | Python | link_example/boyd_pipe.py | stoiver/anuga_drainage | d5ab52efc0bfd8a163ac45fdc5da305cdf469a94 | [
"MIT"
] | 1 | 2020-11-13T13:49:22.000Z | 2020-11-13T13:49:22.000Z | link_example/boyd_pipe.py | stoiver/anuga_drainage | d5ab52efc0bfd8a163ac45fdc5da305cdf469a94 | [
"MIT"
] | null | null | null | link_example/boyd_pipe.py | stoiver/anuga_drainage | d5ab52efc0bfd8a163ac45fdc5da305cdf469a94 | [
"MIT"
] | 1 | 2021-05-18T11:45:15.000Z | 2021-05-18T11:45:15.000Z | #------------------------------------------------------------------------------
# IMPORT NECESSARY MODULES
#------------------------------------------------------------------------------
print (' ABOUT to Start Simulation:- Importing Modules')
import anuga, anuga.parallel, numpy, time, os, glob
from anuga.operat... | 36.241071 | 114 | 0.452328 | 349 | 4,059 | 5.103152 | 0.467049 | 0.006738 | 0.025267 | 0.033689 | 0.04941 | 0.035935 | 0 | 0 | 0 | 0 | 0 | 0.044556 | 0.115299 | 4,059 | 111 | 115 | 36.567568 | 0.451406 | 0.39862 | 0 | 0 | 0 | 0 | 0.08858 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.163636 | 0 | 0.163636 | 0.109091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cc56be5595a6711ad636b9c2de2c2e07499ae61a | 1,977 | py | Python | script/jira-release.py | nmesar/jira-release | d389bdebc49dd7d54e5dcc78f88ef2d863d233fb | [
"MIT"
] | 3 | 2021-04-06T05:08:53.000Z | 2022-03-11T15:38:32.000Z | script/jira-release.py | nmesar/jira-release | d389bdebc49dd7d54e5dcc78f88ef2d863d233fb | [
"MIT"
] | 1 | 2021-05-26T13:37:16.000Z | 2021-05-26T14:05:23.000Z | script/jira-release.py | nmesar/jira-release | d389bdebc49dd7d54e5dcc78f88ef2d863d233fb | [
"MIT"
] | 1 | 2021-04-27T14:01:58.000Z | 2021-04-27T14:01:58.000Z | #!/usr/bin/env python
import os
import requests
from datetime import datetime
jira_version_name = os.getenv('JIRA_VERSION_NAME')
jira_project = os.getenv('JIRA_PROJ')
auth_user = os.getenv('JIRA_AUTH_USER')
auth_password = os.getenv('JIRA_AUTH_PASSWORD')
if jira_version_name is None:
print("Version Name Variable ... | 27.458333 | 103 | 0.704603 | 270 | 1,977 | 4.9 | 0.255556 | 0.14966 | 0.072562 | 0.048375 | 0.101285 | 0.049131 | 0.034769 | 0 | 0 | 0 | 0 | 0.005518 | 0.175013 | 1,977 | 71 | 104 | 27.84507 | 0.805641 | 0.032878 | 0 | 0.081633 | 0 | 0 | 0.318491 | 0.037192 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.081633 | 0.061224 | 0 | 0.061224 | 0.244898 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cc5bee5e35931196084b4b5d85f90367fb351762 | 320 | py | Python | pertemuan_5/3_Table_Record_Search_with_Session/run.py | Muhammad-Yunus/Flask-Web-Development | c13e3fda30151b1155242abe4532d5f4d7bc120e | [
"Apache-2.0"
] | null | null | null | pertemuan_5/3_Table_Record_Search_with_Session/run.py | Muhammad-Yunus/Flask-Web-Development | c13e3fda30151b1155242abe4532d5f4d7bc120e | [
"Apache-2.0"
] | null | null | null | pertemuan_5/3_Table_Record_Search_with_Session/run.py | Muhammad-Yunus/Flask-Web-Development | c13e3fda30151b1155242abe4532d5f4d7bc120e | [
"Apache-2.0"
] | null | null | null | from app import app
from app import db
import os
if __name__ == '__main__':
# if database file not exist, create it.
database_path = app.config['DATABASE_FILE']
if not os.path.exists(database_path):
with app.app_context():
db.create_all()
# invoke app to run
app.run()
| 20 | 47 | 0.63125 | 46 | 320 | 4.108696 | 0.5 | 0.074074 | 0.137566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.275 | 320 | 16 | 48 | 20 | 0.814655 | 0.175 | 0 | 0 | 0 | 0 | 0.080153 | 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 |
cc5dfeb2c69a70c0544636a6f4098e91c5b3abfb | 2,403 | py | Python | app_video.py | theGASK/Cisco-Flask-API | d0baa3b1e9713c1df0bc004dc884cbfd0dba0fcf | [
"MIT"
] | null | null | null | app_video.py | theGASK/Cisco-Flask-API | d0baa3b1e9713c1df0bc004dc884cbfd0dba0fcf | [
"MIT"
] | null | null | null | app_video.py | theGASK/Cisco-Flask-API | d0baa3b1e9713c1df0bc004dc884cbfd0dba0fcf | [
"MIT"
] | null | null | null | from flask import Flask
from flask_restful import Api, Resource, abort, reqparse
from flask_sqlalchemy import SQLAlchemy
#REMOVE DEBUG
app =Flask(__name__)
api = Api(app)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///database.db'
db = SQLAlchemy(app)
class ConferenceModel(db.Model):
id = db.Column(db.Int... | 28.951807 | 112 | 0.712443 | 342 | 2,403 | 4.780702 | 0.236842 | 0.081346 | 0.066055 | 0.055046 | 0.557798 | 0.527217 | 0.527217 | 0.495413 | 0.495413 | 0.495413 | 0 | 0.016541 | 0.169788 | 2,403 | 83 | 113 | 28.951807 | 0.803008 | 0.107782 | 0 | 0.173913 | 0 | 0 | 0.210674 | 0.059457 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.065217 | 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 |
cc650bd505b06e0304df17ef1b59deb16466cdb3 | 12,061 | py | Python | misc-modules/sparktk-ext/sparktk_ext.py | Bhanuprakash-ch/jupyter | b48156a53146dd92ed9e83992dff48288e14ad14 | [
"Apache-2.0"
] | 5 | 2016-09-24T03:33:59.000Z | 2020-05-09T14:30:38.000Z | misc-modules/sparktk-ext/sparktk_ext.py | Kendralabs/jupyter | b48156a53146dd92ed9e83992dff48288e14ad14 | [
"Apache-2.0"
] | 2 | 2017-01-09T22:49:08.000Z | 2017-01-23T19:31:22.000Z | misc-modules/sparktk-ext/sparktk_ext.py | Kendralabs/jupyter | b48156a53146dd92ed9e83992dff48288e14ad14 | [
"Apache-2.0"
] | 10 | 2016-06-26T01:49:31.000Z | 2020-05-09T14:30:44.000Z | import errno
import json
import os
import subprocess
import time
from concurrent.futures import ProcessPoolExecutor as Pool
from notebook.base.handlers import IPythonHandler
STATUS_FILE = 'STATUS.log'
LOG_FILE = 'LOG.log'
APP_STATUS = {
'UPLOADED': 'uploaded',
'SUBMITTED': 'submitted',
'COMPLETED': 'comp... | 36.548485 | 119 | 0.610646 | 1,549 | 12,061 | 4.590704 | 0.212395 | 0.033469 | 0.0135 | 0.02025 | 0.373365 | 0.33188 | 0.316271 | 0.279426 | 0.25327 | 0.215722 | 0 | 0.00514 | 0.274107 | 12,061 | 329 | 120 | 36.659574 | 0.807082 | 0.026117 | 0 | 0.207071 | 0 | 0.005051 | 0.161004 | 0.00322 | 0 | 0 | 0 | 0.006079 | 0 | 0 | null | null | 0.020202 | 0.035354 | null | null | 0.010101 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cc7b00bd1fc5d694719efad0abad87b8890d1551 | 492 | py | Python | birgitta/recipe/debug/dataframe.py | telia-oss/birgitta | e4d27465f54a1d4789741e19e15aec726149a735 | [
"MIT"
] | 8 | 2019-11-25T16:39:33.000Z | 2022-03-31T12:48:54.000Z | birgitta/recipe/debug/dataframe.py | telia-oss/birgitta | e4d27465f54a1d4789741e19e15aec726149a735 | [
"MIT"
] | 218 | 2019-09-09T11:11:59.000Z | 2022-03-08T05:16:40.000Z | birgitta/recipe/debug/dataframe.py | telia-oss/birgitta | e4d27465f54a1d4789741e19e15aec726149a735 | [
"MIT"
] | 4 | 2020-07-21T15:33:40.000Z | 2021-12-22T11:32:45.000Z | """Debug functions for notebooks.
"""
def count(df, name=None):
"""Print the count of dataframe with title."""
if name:
print("Dataset: %s" % (name))
print("Count: %d" % (df.count()))
def show(df, name=None, num_rows=1):
"""Print title and show a dataframe"""
if name:
print("Data... | 21.391304 | 61 | 0.591463 | 70 | 492 | 4.128571 | 0.4 | 0.103806 | 0.076125 | 0.124567 | 0.15917 | 0.15917 | 0 | 0 | 0 | 0 | 0 | 0.002653 | 0.23374 | 492 | 22 | 62 | 22.363636 | 0.763926 | 0.317073 | 0 | 0.363636 | 0 | 0 | 0.098726 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0 | 0 | 0.272727 | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cc7be425fb54cf143f7728410a170c501953c40e | 7,346 | py | Python | src/tlstofu.py | faelif/tls-tofu | 367109ce7a8e6f41e77c41cf010e8c9a2c87a3ed | [
"MIT"
] | 1 | 2022-02-19T22:28:44.000Z | 2022-02-19T22:28:44.000Z | src/tlstofu.py | faelif/tls-tofu | 367109ce7a8e6f41e77c41cf010e8c9a2c87a3ed | [
"MIT"
] | null | null | null | src/tlstofu.py | faelif/tls-tofu | 367109ce7a8e6f41e77c41cf010e8c9a2c87a3ed | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#
#
import pathlib # to find config directory
import os # to make config directory
import datetime # for datetime.now()
import ssl # for ssl.CertificateError
import ipaddress # to test if an address is an ipaddress
import re # to match hostnames to eachother
import sqlite3
from cryptogra... | 33.239819 | 79 | 0.571059 | 826 | 7,346 | 4.958838 | 0.297821 | 0.018799 | 0.032227 | 0.023438 | 0.174805 | 0.125732 | 0.112549 | 0.098877 | 0.098877 | 0.098877 | 0 | 0.009174 | 0.361966 | 7,346 | 220 | 80 | 33.390909 | 0.864732 | 0.270487 | 0 | 0.257353 | 0 | 0 | 0.116724 | 0.01129 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036765 | false | 0.066176 | 0.058824 | 0 | 0.183824 | 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 |
cc87734a6c5125adbaa56493538b18b66eeca8e8 | 478 | py | Python | aula2/decorador.py | es99/curso-flask | 03446ccc89894a2c4f2d1c14d0040e80d2226d9e | [
"Unlicense"
] | 1 | 2020-07-21T05:17:20.000Z | 2020-07-21T05:17:20.000Z | aula2/decorador.py | es99/curso-flask | 03446ccc89894a2c4f2d1c14d0040e80d2226d9e | [
"Unlicense"
] | null | null | null | aula2/decorador.py | es99/curso-flask | 03446ccc89894a2c4f2d1c14d0040e80d2226d9e | [
"Unlicense"
] | null | null | null | from datetime import datetime
def grava_arquivo():
data = datetime.now().strftime("%d/%/%Y - %H:%M")
with open('logs.txt', 'a') as file:
file.write("email enviado " + data)
def verifica(function):
def wrapper():
grava_arquivo()
function()
return wrapper
def imprime_ola():
... | 19.916667 | 53 | 0.633891 | 60 | 478 | 4.833333 | 0.65 | 0.082759 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215481 | 478 | 23 | 54 | 20.782609 | 0.773333 | 0 | 0 | 0 | 0 | 0 | 0.176101 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.058824 | 0 | 0.411765 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cc88947d5669842fd2d6485d9a7fdaf40075e22d | 396 | py | Python | rent/migrations/0007_rentorder_money.py | wy672515431/- | 582a1b452bce21584117190539ff5fe84a1cc885 | [
"MIT"
] | null | null | null | rent/migrations/0007_rentorder_money.py | wy672515431/- | 582a1b452bce21584117190539ff5fe84a1cc885 | [
"MIT"
] | 1 | 2020-06-13T11:47:08.000Z | 2020-06-13T11:47:08.000Z | rent/migrations/0007_rentorder_money.py | wy672515431/- | 582a1b452bce21584117190539ff5fe84a1cc885 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.3 on 2020-06-12 04:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rent', '0006_rentorder_pay'),
]
operations = [
migrations.AddField(
model_name='rentorder',
name='money',
... | 20.842105 | 68 | 0.59596 | 43 | 396 | 5.395349 | 0.767442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070423 | 0.282828 | 396 | 18 | 69 | 22 | 0.746479 | 0.113636 | 0 | 0 | 1 | 0 | 0.108883 | 0 | 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 |
cc8976c20ce6331a199868056aec0f3b8e84d442 | 5,069 | py | Python | releaseherald/releaseherald/plugins/hookspecs.py | Morgan-Stanley/Testplan | 9374d6e0da6ae9aa7a1b5e08b42cd21993485837 | [
"Apache-2.0"
] | null | null | null | releaseherald/releaseherald/plugins/hookspecs.py | Morgan-Stanley/Testplan | 9374d6e0da6ae9aa7a1b5e08b42cd21993485837 | [
"Apache-2.0"
] | null | null | null | releaseherald/releaseherald/plugins/hookspecs.py | Morgan-Stanley/Testplan | 9374d6e0da6ae9aa7a1b5e08b42cd21993485837 | [
"Apache-2.0"
] | null | null | null | from typing import List, Dict, Any
import pluggy
from git import Repo, Tag
from releaseherald.configuration import Configuration
from releaseherald.plugins import CommitInfo
from releaseherald.plugins.interface import (
MutableProxy,
VersionNews,
News,
Output,
CommandOptions,
)
hookspec = pluggy.H... | 28.801136 | 98 | 0.70073 | 668 | 5,069 | 5.236527 | 0.254491 | 0.040881 | 0.038593 | 0.030017 | 0.263579 | 0.226701 | 0.210692 | 0.210692 | 0.18725 | 0.18725 | 0 | 0 | 0.239298 | 5,069 | 175 | 99 | 28.965714 | 0.907158 | 0.655356 | 0 | 0.553571 | 0 | 0 | 0.009496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0.178571 | 0.107143 | 0 | 0.285714 | 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 |
cc8d237a2e412d7dfbfd1ba4783f4e96bf2367b1 | 14,998 | py | Python | src/parma/core.py | dougmvieira/parma | d4a57622466ce831024432c151dd69f9a77a71ee | [
"MIT"
] | 3 | 2020-03-04T11:04:18.000Z | 2021-09-27T13:41:37.000Z | src/parma/core.py | dougmvieira/parma | d4a57622466ce831024432c151dd69f9a77a71ee | [
"MIT"
] | null | null | null | src/parma/core.py | dougmvieira/parma | d4a57622466ce831024432c151dd69f9a77a71ee | [
"MIT"
] | 1 | 2020-07-14T20:42:14.000Z | 2020-07-14T20:42:14.000Z | import numpy as np
from scipy.special import xlogy
from .utils import polynomial_powers
class PolyharmonicLagrangeInterpolator:
""" Polyharmonic Lagrange spline interpolation of the function values.
Parameters
----------
x : (n+1)-D array-like
Location of the interpolated values.
Retur... | 33.254989 | 86 | 0.599413 | 2,007 | 14,998 | 4.27703 | 0.083707 | 0.032619 | 0.030289 | 0.019222 | 0.757805 | 0.719362 | 0.660415 | 0.598788 | 0.559646 | 0.552423 | 0 | 0.012903 | 0.286905 | 14,998 | 450 | 87 | 33.328889 | 0.789715 | 0.235765 | 0 | 0.424528 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108491 | false | 0 | 0.014151 | 0.014151 | 0.231132 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cc8dc0e848d31912c53044fdd2c28a6cdf9c7bb2 | 4,580 | py | Python | pippin/classifiers/unity.py | dessn/Pippin | 0a62eafc40a3ab290d4dbed809c51f69862f99db | [
"MIT"
] | 5 | 2019-06-05T09:17:40.000Z | 2020-12-16T19:46:39.000Z | pippin/classifiers/unity.py | Samreay/Pippin | ed5efaf93b389e7b0504e122c91687a6fd4efb2e | [
"MIT"
] | 53 | 2020-04-08T14:03:44.000Z | 2021-12-17T12:17:15.000Z | pippin/classifiers/unity.py | dessn/Pippin | 0a62eafc40a3ab290d4dbed809c51f69862f99db | [
"MIT"
] | 7 | 2019-02-19T18:18:59.000Z | 2021-03-29T23:17:59.000Z | import os
import shutil
import subprocess
import pandas as pd
from astropy.io import fits
import numpy as np
from pippin.classifiers.classifier import Classifier
from pippin.config import chown_dir, mkdirs
from pippin.task import Task
class UnityClassifier(Classifier):
""" Classification task for the SuperNNova ... | 38.166667 | 127 | 0.554803 | 544 | 4,580 | 4.536765 | 0.347426 | 0.040519 | 0.028363 | 0.019449 | 0.122366 | 0.114263 | 0.114263 | 0.062399 | 0.024311 | 0.024311 | 0 | 0.002348 | 0.349127 | 4,580 | 119 | 128 | 38.487395 | 0.825562 | 0.116376 | 0 | 0.13253 | 0 | 0 | 0.075937 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084337 | false | 0.072289 | 0.108434 | 0.048193 | 0.289157 | 0.012048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cc95285c97c4e2dc79a1d7498eb1fe063d70402a | 1,069 | py | Python | Resene naloge/euler26.py | CadezDavid/ProjectEuler | 9e11aa5782fb600c98eba9e04766b3bd79acea0e | [
"MIT"
] | null | null | null | Resene naloge/euler26.py | CadezDavid/ProjectEuler | 9e11aa5782fb600c98eba9e04766b3bd79acea0e | [
"MIT"
] | null | null | null | Resene naloge/euler26.py | CadezDavid/ProjectEuler | 9e11aa5782fb600c98eba9e04766b3bd79acea0e | [
"MIT"
] | null | null | null | def decimalni_zapis(deljenec, delitelj):
memo = set()
decimalni_zapis = ''
while (deljenec, delitelj) not in memo:
if deljenec % delitelj == 0:
decimalni_zapis += str(deljenec // delitelj)
return decimalni_zapis, deljenec, delitelj
elif deljenec < delitelj:
... | 29.694444 | 56 | 0.549111 | 133 | 1,069 | 4.338346 | 0.315789 | 0.277296 | 0.076257 | 0.103986 | 0.221837 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036212 | 0.328344 | 1,069 | 36 | 57 | 29.694444 | 0.767409 | 0.297474 | 0 | 0.2 | 0 | 0 | 0.001353 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0 | 0 | 0.15 | 0.05 | 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 |
cc95fbbb6d4d0db59f783e3386e87ef44d181eec | 2,931 | py | Python | wikipya/drivers.py | jDan735/wikipya | d9f9b18d92f2e7c2a0a319214a5da3f33bd1162d | [
"MIT"
] | 2 | 2021-08-02T21:49:35.000Z | 2021-08-25T14:15:13.000Z | wikipya/drivers.py | jDan735/wikipya | d9f9b18d92f2e7c2a0a319214a5da3f33bd1162d | [
"MIT"
] | 18 | 2021-11-14T08:07:43.000Z | 2022-01-02T22:31:35.000Z | wikipya/drivers.py | jDan735/wikipya | d9f9b18d92f2e7c2a0a319214a5da3f33bd1162d | [
"MIT"
] | null | null | null | try:
import aiohttp
except:
pass
try:
import httpx
except:
pass
import time
import json
from .exceptions import ParseError
class JSONObject:
"""JSON => Class"""
def __init__(self, dict):
self.add(dict)
def add(self, dict):
vars(self).update(dict)
class BaseDriver:
... | 28.182692 | 76 | 0.551689 | 335 | 2,931 | 4.776119 | 0.21194 | 0.048125 | 0.034375 | 0.045 | 0.65875 | 0.615 | 0.615 | 0.61125 | 0.61125 | 0.61125 | 0 | 0.001546 | 0.337769 | 2,931 | 103 | 77 | 28.456311 | 0.822772 | 0.004435 | 0 | 0.608108 | 0 | 0 | 0.02919 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040541 | false | 0.040541 | 0.067568 | 0 | 0.216216 | 0.054054 | 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 |
cc98ec601b89e946984916168b2410bb54ca7c7c | 889 | py | Python | fts/models.py | filwaitman/django-fts | af9f10d760e543288c21a8f4239288c2e415b9e9 | [
"BSD-3-Clause"
] | null | null | null | fts/models.py | filwaitman/django-fts | af9f10d760e543288c21a8f4239288c2e415b9e9 | [
"BSD-3-Clause"
] | 9 | 2020-02-11T23:38:20.000Z | 2022-03-11T23:16:29.000Z | 3rdparty/odeoncg-django-fts-odeon-9ea3a64/fts/models.py | cltrudeau/django-yacon | d462c88cf98bf8eef50a0696b265fa28dfdb40eb | [
"MIT"
] | 2 | 2017-09-10T11:27:51.000Z | 2019-12-28T00:12:58.000Z | """
Full Text Search Framework
"""
from django.db import models
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes import generic
from fts.settings import *
if FTS_BACKEND.startswith('simple://'):
class IndexWord(models.Model):
word = models.CharField(uniq... | 34.192308 | 89 | 0.650169 | 97 | 889 | 5.783505 | 0.484536 | 0.053476 | 0.060606 | 0.103387 | 0.078431 | 0.078431 | 0 | 0 | 0 | 0 | 0 | 0.004471 | 0.245219 | 889 | 25 | 90 | 35.56 | 0.831595 | 0.029246 | 0 | 0.117647 | 0 | 0 | 0.046988 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.235294 | 0.117647 | 0.941176 | 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 |
cc98fd3cd69cc032a3010b1c76cbca399e3ae91c | 554 | py | Python | experiencia/models.py | JVacca12/FIRST | e3906209cae1198e1fbda4d00bc0a906e8294a69 | [
"MIT"
] | null | null | null | experiencia/models.py | JVacca12/FIRST | e3906209cae1198e1fbda4d00bc0a906e8294a69 | [
"MIT"
] | null | null | null | experiencia/models.py | JVacca12/FIRST | e3906209cae1198e1fbda4d00bc0a906e8294a69 | [
"MIT"
] | null | null | null | from django.db import models
from users.models import User
# Create your models here.
class Experiencia(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE, related_name='experiencia')
cargo = models.CharField(max_length=120)
fecha_inicio = models.DateTimeField()
fecha_fin = models.... | 34.625 | 88 | 0.729242 | 74 | 554 | 5.27027 | 0.554054 | 0.076923 | 0.092308 | 0.123077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01073 | 0.158845 | 554 | 15 | 89 | 36.933333 | 0.82618 | 0.126354 | 0 | 0 | 0 | 0 | 0.150628 | 0.089958 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 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 |
cc9dceb59760562931da720543a6d8a6e4bd9eeb | 331 | py | Python | Task/Gray-code/Python/gray-code-1.py | LaudateCorpus1/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:38.000Z | 2018-11-09T22:08:38.000Z | Task/Gray-code/Python/gray-code-1.py | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | null | null | null | Task/Gray-code/Python/gray-code-1.py | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:40.000Z | 2018-11-09T22:08:40.000Z | >>> def int2bin(n):
'From positive integer to list of binary bits, msb at index 0'
if n:
bits = []
while n:
n,remainder = divmod(n, 2)
bits.insert(0, remainder)
return bits
else: return [0]
>>> def bin2int(bits):
'From binary bits, msb at index 0 to integer'
i = 0
for bit in bits:
i = i * 2 + bit... | 18.388889 | 63 | 0.622356 | 58 | 331 | 3.551724 | 0.482759 | 0.097087 | 0.126214 | 0.145631 | 0.203884 | 0.203884 | 0 | 0 | 0 | 0 | 0 | 0.036585 | 0.256798 | 331 | 17 | 64 | 19.470588 | 0.800813 | 0 | 0 | 0 | 0 | 0 | 0.311178 | 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 |
ccae49d18a7c7f2cb30e791d9de0124bc90b8598 | 341 | py | Python | cms_people/urls/people.py | python-spain/djangocms-people | 406a64b49ed152d615e421b47aef7366083b5376 | [
"MIT"
] | 1 | 2016-06-17T23:45:07.000Z | 2016-06-17T23:45:07.000Z | cms_people/urls/people.py | python-spain/djangocms-people | 406a64b49ed152d615e421b47aef7366083b5376 | [
"MIT"
] | null | null | null | cms_people/urls/people.py | python-spain/djangocms-people | 406a64b49ed152d615e421b47aef7366083b5376 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from cms_people.views.people import PersonView, PeopleView, PeopleMapResultView
urlpatterns = [
url('^people_map_result$', PeopleMapResultView.as_view(), name='people_map_result'),
url('^(?P<username>.+)$', PersonView.as_view(), name='person'),
url('^$', PeopleView.as_view... | 37.888889 | 88 | 0.715543 | 41 | 341 | 5.756098 | 0.512195 | 0.076271 | 0.127119 | 0.135593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105572 | 341 | 9 | 89 | 37.888889 | 0.77377 | 0 | 0 | 0 | 0 | 0 | 0.19883 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ccc8a7055151febfd87f8a6c4b69bb3cd3d03357 | 525 | py | Python | DAO/Connection.py | rennancockles/gigapy | 4fb0cd97e689c6460254a466a7a8d9137c2392b1 | [
"MIT"
] | null | null | null | DAO/Connection.py | rennancockles/gigapy | 4fb0cd97e689c6460254a466a7a8d9137c2392b1 | [
"MIT"
] | null | null | null | DAO/Connection.py | rennancockles/gigapy | 4fb0cd97e689c6460254a466a7a8d9137c2392b1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import MySQLdb
class Connection(object):
def __init__(self):
self.db = MySQLdb.connect(host="localhost", # your host, usually localhost
user="root", # your username
passwd="123", # your password
... | 23.863636 | 83 | 0.508571 | 53 | 525 | 4.943396 | 0.603774 | 0.068702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012232 | 0.377143 | 525 | 21 | 84 | 25 | 0.788991 | 0.190476 | 0 | 0 | 0 | 0 | 0.052506 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.083333 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
aeaaff03b3c3037657036c9589f3d3b3cbf242f5 | 379 | py | Python | app/test/pickle-dump.py | sappachok/django-anaconda | 1ffd33ded759f622b6db23a3550a898b62350403 | [
"MIT"
] | null | null | null | app/test/pickle-dump.py | sappachok/django-anaconda | 1ffd33ded759f622b6db23a3550a898b62350403 | [
"MIT"
] | 7 | 2019-12-06T05:34:28.000Z | 2021-06-10T18:25:17.000Z | app/test/pickle-dump.py | sappachok/django-datasci | 1ffd33ded759f622b6db23a3550a898b62350403 | [
"MIT"
] | null | null | null |
import pickle
import pickleout
example_dict = {1:"6",2:"2",3:"f", 4:"goo"}
pickle_out = open("dict.pickle","wb")
pickle.dump(globals(), pickle_out, protocol=pickle.HIGHEST_PROTOCOL)
#pickle.dump(example_dict, pickle_out)
#allvar = locals()
#pickle.dump(allvar, pickle_out)
pickle_out.close()
#for i in locals():
#... | 16.478261 | 68 | 0.691293 | 56 | 379 | 4.535714 | 0.5 | 0.177165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018018 | 0.121372 | 379 | 22 | 69 | 17.227273 | 0.744745 | 0.403694 | 0 | 0 | 0 | 0 | 0.087558 | 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 |
aeb7dc1515707a50d032456897d2a7ba0070a944 | 25,924 | py | Python | lib/python/data/waves.py | HELIO-HFC/RABAT3 | 0a399336071e38e0f3b39d1bc939a5f589da6ab8 | [
"MIT"
] | null | null | null | lib/python/data/waves.py | HELIO-HFC/RABAT3 | 0a399336071e38e0f3b39d1bc939a5f589da6ab8 | [
"MIT"
] | null | null | null | lib/python/data/waves.py | HELIO-HFC/RABAT3 | 0a399336071e38e0f3b39d1bc939a5f589da6ab8 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*- coding: latin-1 -*-
"""
Python library to get and read Wind/Waves data.
@author: X.Bonnin (LESIA)
"""
__author__="Xavier Bonnin"
__date__="08-MAY-2013"
__version__ = "1.0.1"
import os, sys
import re, urllib2
from urlparse import urlparse
import time, subprocess
import numpy as np
from cop... | 33.667532 | 144 | 0.494985 | 2,728 | 25,924 | 4.573314 | 0.141129 | 0.011542 | 0.011542 | 0.016752 | 0.30234 | 0.251122 | 0.191488 | 0.143395 | 0.099711 | 0.088971 | 0 | 0.020115 | 0.397855 | 25,924 | 769 | 145 | 33.711313 | 0.779116 | 0.025729 | 0 | 0.321489 | 0 | 0 | 0.069142 | 0.008544 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.01692 | 0.020305 | null | null | 0.010152 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
aebacbff88644f6b11b87656284f7f87a822a746 | 2,072 | py | Python | coturn/signals.py | Core4ce/avalon-django-coturn | 51609b04cf4ef2eaccbc08ee7884d59c6fa87474 | [
"BSD-3-Clause"
] | 3 | 2020-09-20T20:06:21.000Z | 2021-09-10T11:18:09.000Z | coturn/signals.py | Core4ce/avalon-django-coturn | 51609b04cf4ef2eaccbc08ee7884d59c6fa87474 | [
"BSD-3-Clause"
] | null | null | null | coturn/signals.py | Core4ce/avalon-django-coturn | 51609b04cf4ef2eaccbc08ee7884d59c6fa87474 | [
"BSD-3-Clause"
] | 1 | 2019-01-17T13:47:31.000Z | 2019-01-17T13:47:31.000Z | import hmac
import hashlib
from django.conf import settings
from django.contrib.auth.models import User
from .models import TurnusersLt
def sync_new_user_to_coturn(sender, instance, **kwargs):
##
# NOTE: Do not use this for REST API. You do not need to sync users if you are using the REST API.
#
#
... | 47.090909 | 149 | 0.678089 | 270 | 2,072 | 5.074074 | 0.377778 | 0.081752 | 0.110949 | 0.118248 | 0.105839 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001905 | 0.239865 | 2,072 | 43 | 150 | 48.186047 | 0.867937 | 0.144305 | 0 | 0.090909 | 0 | 0 | 0.175837 | 0.023823 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0.090909 | 0.181818 | 0 | 0.212121 | 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 |
aebb1ee94b1592a14967eb3ea0476a46d0c07a3e | 906 | py | Python | day/day_02/solution.py | moki/aoc2015 | da43fccd20d154840161c022d1f3c0f70035d604 | [
"BSD-3-Clause"
] | null | null | null | day/day_02/solution.py | moki/aoc2015 | da43fccd20d154840161c022d1f3c0f70035d604 | [
"BSD-3-Clause"
] | null | null | null | day/day_02/solution.py | moki/aoc2015 | da43fccd20d154840161c022d1f3c0f70035d604 | [
"BSD-3-Clause"
] | null | null | null | from functools import reduce
def part_1(input):
lines = input.split("\n")
paper = 0
for line in lines:
if len(line) == 0:
continue
ds = list(map(lambda d: int(d), line.split("x")))
sides = [ds[0] * ds[1], ds[1] * ds[2], ds[0] * ds[2]]
m = reduce(lambda a, b:... | 18.875 | 61 | 0.484547 | 144 | 906 | 3.034722 | 0.263889 | 0.045767 | 0.148741 | 0.160183 | 0.615561 | 0.519451 | 0.446224 | 0.446224 | 0.398169 | 0.398169 | 0 | 0.035714 | 0.350993 | 906 | 47 | 62 | 19.276596 | 0.707483 | 0 | 0 | 0.37037 | 0 | 0 | 0.006623 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.037037 | 0 | 0.185185 | 0.037037 | 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 |
aebbc1ae1c7a9472843504f39a0a522d3acd8c60 | 627 | py | Python | steambird/util/import_from_ut_people.py | rhbvkleef/SteamBird | 6dbbad0750ef918872da18b813669282885b8f95 | [
"BSD-3-Clause"
] | null | null | null | steambird/util/import_from_ut_people.py | rhbvkleef/SteamBird | 6dbbad0750ef918872da18b813669282885b8f95 | [
"BSD-3-Clause"
] | 22 | 2020-11-27T19:05:34.000Z | 2020-12-05T16:50:43.000Z | steambird/util/import_from_ut_people.py | rhbvkleef/SteamBird | 6dbbad0750ef918872da18b813669282885b8f95 | [
"BSD-3-Clause"
] | 1 | 2020-11-27T21:08:15.000Z | 2020-11-27T21:08:15.000Z | from typing import Union
from urllib.parse import quote
import requests
import vobject
from vobject.base import Component
def read_vcard(vcard_url) -> Union[Component, None]:
try:
vcard = requests.get(vcard_url).text
return vobject.readOne(vcard)
# pylint: disable=bare-except
except:
... | 24.115385 | 86 | 0.676236 | 78 | 627 | 5.358974 | 0.487179 | 0.078947 | 0.086124 | 0.095694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196172 | 627 | 25 | 87 | 25.08 | 0.829365 | 0.043062 | 0 | 0 | 0 | 0 | 0.175585 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.277778 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
aecdf11e5f1c0c45e570fe2a778e4ea9c2c59a0b | 1,414 | py | Python | cds_ils/patrons/indexer.py | kpsherva/cds-ils | 8eeeb6e03784756ed24895c8d030682f9d733e8a | [
"MIT"
] | 6 | 2020-09-18T00:13:38.000Z | 2021-11-14T17:12:19.000Z | cds_ils/patrons/indexer.py | kpsherva/cds-ils | 8eeeb6e03784756ed24895c8d030682f9d733e8a | [
"MIT"
] | 321 | 2020-08-28T15:42:25.000Z | 2022-03-14T15:11:50.000Z | cds_ils/patrons/indexer.py | kpsherva/cds-ils | 8eeeb6e03784756ed24895c8d030682f9d733e8a | [
"MIT"
] | 8 | 2019-07-10T07:02:08.000Z | 2020-08-10T14:07:25.000Z | # Copyright (C) 2021 CERN.
#
# CDS-ILS is free software; you can redistribute it and/or modify it under
# the terms of the MIT License; see LICENSE file for more details.
"""Patron Indexer for CDS-ILS."""
from flask import current_app
from invenio_accounts.models import User
from invenio_app_ils.patrons.indexer impor... | 36.25641 | 78 | 0.714286 | 189 | 1,414 | 5.153439 | 0.449735 | 0.067762 | 0.041068 | 0.052361 | 0.125257 | 0.125257 | 0.075975 | 0 | 0 | 0 | 0 | 0.003617 | 0.217822 | 1,414 | 38 | 79 | 37.210526 | 0.877034 | 0.296322 | 0 | 0 | 0 | 0 | 0.028777 | 0.028777 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.318182 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
aed26d89ca3f013e25a9babaf5a275d0145aeec8 | 1,671 | py | Python | Web_Server/webapps/buildinginfos/views.py | ajfar-bem/wisebldg | 0cb8ef7c5984cbb5cc86e40780fdf4e14e5bda05 | [
"Unlicense"
] | null | null | null | Web_Server/webapps/buildinginfos/views.py | ajfar-bem/wisebldg | 0cb8ef7c5984cbb5cc86e40780fdf4e14e5bda05 | [
"Unlicense"
] | null | null | null | Web_Server/webapps/buildinginfos/views.py | ajfar-bem/wisebldg | 0cb8ef7c5984cbb5cc86e40780fdf4e14e5bda05 | [
"Unlicense"
] | null | null | null | import json
from django.shortcuts import render
from django.contrib.auth.decorators import login_required
from django.http import HttpResponse, HttpResponseRedirect
from django.template import RequestContext
from webapps.buildinginfos.models import BuildingInfo
from _utils.device_list_utils import get_device_list_and... | 37.133333 | 102 | 0.685218 | 190 | 1,671 | 5.763158 | 0.394737 | 0.087671 | 0.047489 | 0.076712 | 0.12968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22681 | 1,671 | 44 | 103 | 37.977273 | 0.847523 | 0 | 0 | 0.054054 | 0 | 0 | 0.099342 | 0.01915 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.189189 | null | null | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
aed55b6ccfc8daceb8b960c5b7cf3555d0fd88f9 | 851 | py | Python | tests/utils/test_serializer.py | guilhermevarela/ilu | e4db9744c28f9e04ae82c884f131ee8cd9601cc8 | [
"MIT"
] | 2 | 2019-10-18T17:04:50.000Z | 2019-10-18T17:05:04.000Z | tests/utils/test_serializer.py | guilhermevarela/ilurl | e4db9744c28f9e04ae82c884f131ee8cd9601cc8 | [
"MIT"
] | 17 | 2019-11-20T09:33:50.000Z | 2020-01-30T14:57:40.000Z | tests/utils/test_serializer.py | gsavarela/ilurl | e4db9744c28f9e04ae82c884f131ee8cd9601cc8 | [
"MIT"
] | null | null | null | import os
import unittest
from ilurl.utils.serialize import Serializer
class TestSerialization(unittest.TestCase):
class Foo(Serializer):
def __init__(self, foo):
self.foo = foo
def setUp(self):
'''Define the simplest test class'''
script_path = os.path.dirname(os.path.re... | 27.451613 | 65 | 0.601645 | 111 | 851 | 4.441441 | 0.369369 | 0.070994 | 0.121704 | 0.121704 | 0.231237 | 0.146045 | 0.146045 | 0.146045 | 0.146045 | 0.146045 | 0 | 0.001546 | 0.239718 | 851 | 30 | 66 | 28.366667 | 0.760433 | 0.052879 | 0 | 0.190476 | 0 | 0 | 0.060377 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 1 | 0.238095 | false | 0 | 0.142857 | 0 | 0.47619 | 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 |
aeda90d64b894a59f11f854e2a4117bfb466ef39 | 1,564 | py | Python | morphology_embed.py | hbatta/morphological-nmt | 2553b13bc13553662ad861ae6e809e152939d559 | [
"MIT"
] | null | null | null | morphology_embed.py | hbatta/morphological-nmt | 2553b13bc13553662ad861ae6e809e152939d559 | [
"MIT"
] | null | null | null | morphology_embed.py | hbatta/morphological-nmt | 2553b13bc13553662ad861ae6e809e152939d559 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Morphology_embed.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1uZUe-O4GgKuMK1FfbAV7xztgtD4lWEEC
"""
import stanza
import argparse
parser = argparse.ArgumentParser(description='A tutorial of argparse!')
parser.add_arg... | 28.436364 | 107 | 0.683504 | 216 | 1,564 | 4.796296 | 0.490741 | 0.061776 | 0.049228 | 0.032819 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009016 | 0.148977 | 1,564 | 54 | 108 | 28.962963 | 0.769346 | 0.152813 | 0 | 0.04878 | 1 | 0 | 0.171103 | 0.01749 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04878 | 0 | 0.04878 | 0.073171 | 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 |
aedc3dfc1d19040bf061f190f401892381f40e61 | 402 | py | Python | Projects/Project 0/Warm-up/loops.py | ivenpoker/Python-Projects | 2975e1bd687ec8dbcc7a4842c13466cb86292679 | [
"MIT"
] | 1 | 2019-09-23T15:51:45.000Z | 2019-09-23T15:51:45.000Z | Projects/Project 0/Warm-up/loops.py | ivenpoker/Python-Projects | 2975e1bd687ec8dbcc7a4842c13466cb86292679 | [
"MIT"
] | 5 | 2021-02-08T20:47:19.000Z | 2022-03-12T00:35:44.000Z | Projects/Project 0/Warm-up/loops.py | ivenpoker/Python-Projects | 2975e1bd687ec8dbcc7a4842c13466cb86292679 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#: Program Purpose:
#: Read an integer N. For all non-negative integers i < N
#: print i * i.
#:
#: Program Author: Happi Yvan <ivensteinpoker@gmail.com
#: Program Date : 11/04/2019 (mm/dd/yyyy)
def process(int_val):
for x in range(int_val):
print(x * x)
def main... | 21.157895 | 66 | 0.599502 | 59 | 402 | 3.915254 | 0.694915 | 0.051948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0299 | 0.251244 | 402 | 19 | 67 | 21.157895 | 0.737542 | 0.554726 | 0 | 0 | 0 | 0 | 0.046243 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aee48d9d882c754b1a18821795b4715b37c2efd0 | 3,993 | py | Python | scheme/tests/07.py | sfailsthy/CS-61A | 8c3d6e2ed87c42ba6ceaf9b7853ef4ad3af099fc | [
"MIT"
] | null | null | null | scheme/tests/07.py | sfailsthy/CS-61A | 8c3d6e2ed87c42ba6ceaf9b7853ef4ad3af099fc | [
"MIT"
] | null | null | null | scheme/tests/07.py | sfailsthy/CS-61A | 8c3d6e2ed87c42ba6ceaf9b7853ef4ad3af099fc | [
"MIT"
] | null | null | null | test = {
'name': 'Problem 7',
'points': 1,
'suites': [
{
'cases': [
{
'answer': '103495fc3358e1b6354d1d4a277039e6',
'choices': [
r"""
Pair('quote', Pair(A, nil)), where:
A is the quoted expression
""",
r"""
... | 28.726619 | 91 | 0.444528 | 325 | 3,993 | 5.436923 | 0.218462 | 0.090549 | 0.095642 | 0.129032 | 0.47708 | 0.39502 | 0.387097 | 0.286927 | 0.286927 | 0.265988 | 0 | 0.166106 | 0.404458 | 3,993 | 138 | 92 | 28.934783 | 0.576955 | 0 | 0 | 0.460317 | 0 | 0.02381 | 0.822554 | 0.159204 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.007937 | 0 | 0.007937 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aee4a73710fb4c9dcd2d5d3439e31c41e58818fc | 473 | py | Python | tools/gz.py | codeyu/unihandecode-net | 4b4a6cf2516ceb98e3d63aa9bffa5e5f8110a14d | [
"MIT"
] | null | null | null | tools/gz.py | codeyu/unihandecode-net | 4b4a6cf2516ceb98e3d63aa9bffa5e5f8110a14d | [
"MIT"
] | null | null | null | tools/gz.py | codeyu/unihandecode-net | 4b4a6cf2516ceb98e3d63aa9bffa5e5f8110a14d | [
"MIT"
] | null | null | null | import os, gzip
INPUT_FILES=['kr_codepoints.json','ja_codepoints.json','zh_codepoints.json','vn_codepoints.json','yue_codepoints.json','unicodepoints.json']
for f in INPUT_FILES:
source = os.path.join('result', f)
input = open(source, 'rb')
s = input.read()
input.close()
dest =... | 33.785714 | 140 | 0.621564 | 63 | 473 | 4.539683 | 0.555556 | 0.244755 | 0.06993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20296 | 473 | 14 | 141 | 33.785714 | 0.758621 | 0 | 0 | 0 | 0 | 0 | 0.314346 | 0.048523 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.083333 | 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 |
aeeaaec6d2ab2612292389d2e41cac715a52e5d1 | 820 | py | Python | triangle.py | Mohan-V-P/Shapes | e78e663caeb348b37551288434528def7cd14339 | [
"MIT"
] | null | null | null | triangle.py | Mohan-V-P/Shapes | e78e663caeb348b37551288434528def7cd14339 | [
"MIT"
] | null | null | null | triangle.py | Mohan-V-P/Shapes | e78e663caeb348b37551288434528def7cd14339 | [
"MIT"
] | null | null | null | import cv2
import numpy as np
from shapes import Myinit
class Triangle(Myinit):
def __init__(self):
super(Triangle, self).__init__()
self.vertices = np.array([[100,50], [150,150], [50,150]],np.int32)
self.vertices = self.vertices.reshape((-1, 1, 2))
self.color=(255,0,255)
... | 28.275862 | 78 | 0.584146 | 103 | 820 | 4.543689 | 0.407767 | 0.128205 | 0.068376 | 0.081197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060201 | 0.270732 | 820 | 28 | 79 | 29.285714 | 0.722408 | 0 | 0 | 0 | 0 | 0 | 0.063131 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.130435 | 0 | 0.391304 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aef0826fcc445a6da01b268bd484e494caf70f09 | 3,188 | py | Python | koapy/cli/utils/credential.py | resoliwan/koapy | b0616f252bb3588695dfb37c7d9b8580a65649a3 | [
"MIT"
] | 1 | 2021-09-25T22:33:01.000Z | 2021-09-25T22:33:01.000Z | koapy/cli/utils/credential.py | resoliwan/koapy | b0616f252bb3588695dfb37c7d9b8580a65649a3 | [
"MIT"
] | null | null | null | koapy/cli/utils/credential.py | resoliwan/koapy | b0616f252bb3588695dfb37c7d9b8580a65649a3 | [
"MIT"
] | 1 | 2021-11-12T15:33:29.000Z | 2021-11-12T15:33:29.000Z | import os
import click
from koapy.config import (
config,
config_from_dict,
default_user_config_path,
save_config,
user_config,
)
def prompt_credential():
credential = config.get("koapy.backend.kiwoom_open_api_plus.credential")
default_user_id = credential["user_id"]
default_user_pa... | 29.794393 | 80 | 0.577164 | 315 | 3,188 | 5.55873 | 0.209524 | 0.062821 | 0.03084 | 0.037693 | 0.194746 | 0.178755 | 0.138778 | 0.116505 | 0.116505 | 0.116505 | 0 | 0.007036 | 0.331242 | 3,188 | 106 | 81 | 30.075472 | 0.814259 | 0 | 0 | 0.236559 | 0 | 0 | 0.153701 | 0.042346 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021505 | false | 0.172043 | 0.032258 | 0 | 0.075269 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.