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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
11fa0df1b44218448d34eb368d150df305e6acd4 | 1,746 | py | Python | ML_Training/Generate_Plots.py | phytooracle/charcoal_dryrot_classification | 35615a5d9aa54dd2aa5d7704b3241e463e5ad864 | [
"MIT"
] | 1 | 2021-09-29T21:30:20.000Z | 2021-09-29T21:30:20.000Z | ML_Training/Generate_Plots.py | phytooracle/charcoal_dryrot_classification | 35615a5d9aa54dd2aa5d7704b3241e463e5ad864 | [
"MIT"
] | null | null | null | ML_Training/Generate_Plots.py | phytooracle/charcoal_dryrot_classification | 35615a5d9aa54dd2aa5d7704b3241e463e5ad864 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy
import argparse
import json
import socket
def get_args():
parser = argparse.ArgumentParser(
description='Charcoal Dryrot Generate result plots.',
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument('-e',
... | 26.059701 | 84 | 0.612257 | 212 | 1,746 | 4.919811 | 0.353774 | 0.030681 | 0.049856 | 0.076702 | 0.333653 | 0.333653 | 0.333653 | 0.230105 | 0.074784 | 0.074784 | 0 | 0.004431 | 0.224513 | 1,746 | 66 | 85 | 26.454545 | 0.765879 | 0 | 0 | 0.16 | 1 | 0 | 0.219484 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.1 | 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 |
11feef2f6a450319640e35608d8f7fb69879e26b | 1,279 | py | Python | test/test_server.py | sebastianludwig/SensationDriver | 8787afa8fb55a43af69d83192a4f09a4279b5c00 | [
"MIT"
] | null | null | null | test/test_server.py | sebastianludwig/SensationDriver | 8787afa8fb55a43af69d83192a4f09a4279b5c00 | [
"MIT"
] | null | null | null | test/test_server.py | sebastianludwig/SensationDriver | 8787afa8fb55a43af69d83192a4f09a4279b5c00 | [
"MIT"
] | null | null | null | from utils import *
from sensationdriver.server import Server
class TestServer(unittest.TestCase):
class MemoryHandler(object):
def __init__(self):
self.set_up_called_counter = 0
self.tear_down_called_counter = 0
@asyncio.coroutine
def set_up(self):
se... | 26.102041 | 62 | 0.639562 | 146 | 1,279 | 5.226027 | 0.280822 | 0.045872 | 0.072084 | 0.094364 | 0.63827 | 0.566186 | 0.498034 | 0.498034 | 0.40367 | 0.285714 | 0 | 0.007667 | 0.286161 | 1,279 | 48 | 63 | 26.645833 | 0.828039 | 0 | 0 | 0.472222 | 0 | 0 | 0.006255 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.166667 | false | 0.055556 | 0.055556 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
11fef584d22334f1e1b29f14134d24d5a0829596 | 216 | py | Python | docs/examples/coreidentity.py | parallella/epython | a14d6f0cbbdba5c7b97ebc41c118afcc97553554 | [
"BSD-2-Clause"
] | 9 | 2015-11-04T21:37:32.000Z | 2017-11-03T18:25:22.000Z | docs/examples/coreidentity.py | parallella/epython | a14d6f0cbbdba5c7b97ebc41c118afcc97553554 | [
"BSD-2-Clause"
] | null | null | null | docs/examples/coreidentity.py | parallella/epython | a14d6f0cbbdba5c7b97ebc41c118afcc97553554 | [
"BSD-2-Clause"
] | 6 | 2016-04-10T15:11:35.000Z | 2021-01-14T02:41:28.000Z | /*
Illustration of printing, core id and conditional statements
To run: epython coreidentity.py
*/
import parallel
print "Hello world from core "+coreid()
if coreid()==5:
print "Hello only from core "+coreid()
| 16.615385 | 60 | 0.731481 | 30 | 216 | 5.266667 | 0.766667 | 0.126582 | 0.177215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005556 | 0.166667 | 216 | 12 | 61 | 18 | 0.872222 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
11ff4702e03f880adec88332ca3d8193f76f0da5 | 352 | py | Python | people_class.py | iSupremum/honest_say | ce4d5ef298e1c0b0d9c9bb7097b3d3a76dd08c51 | [
"MIT"
] | 8 | 2018-06-08T09:03:32.000Z | 2021-12-17T02:45:45.000Z | people_class.py | iSupremum/honest_say | ce4d5ef298e1c0b0d9c9bb7097b3d3a76dd08c51 | [
"MIT"
] | 1 | 2018-06-15T11:05:41.000Z | 2018-06-15T11:05:41.000Z | people_class.py | iSupremum/honest_say | ce4d5ef298e1c0b0d9c9bb7097b3d3a76dd08c51 | [
"MIT"
] | 4 | 2018-06-20T09:30:57.000Z | 2019-06-30T14:17:12.000Z | class people:
def __init__(self):
self.nick_name = ""
self.qq_number = ""
self.topic_name = ""
def display(self):
print("------------------------topic_name = %s------------------------" % self.topic_name)
print("nick_name = ", self.nick_name)
print("%-13s%s" % ("... | 32 | 98 | 0.477273 | 38 | 352 | 4.078947 | 0.368421 | 0.154839 | 0.154839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007547 | 0.247159 | 352 | 10 | 99 | 35.2 | 0.577358 | 0 | 0 | 0 | 0 | 0 | 0.267045 | 0.170455 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f50528b3c8de2aa028c4908404f45ea487592243 | 617 | py | Python | boletin/forms.py | israelgp24/website | 84556f3dbb27e779f11fb1c611d34a6bcf66a883 | [
"Apache-2.0",
"MIT"
] | 3 | 2019-08-14T19:45:00.000Z | 2019-10-27T13:33:39.000Z | boletin/forms.py | israelgp24/website | 84556f3dbb27e779f11fb1c611d34a6bcf66a883 | [
"Apache-2.0",
"MIT"
] | 3 | 2019-08-04T14:40:06.000Z | 2019-08-05T05:05:09.000Z | boletin/forms.py | israelgp24/website | 84556f3dbb27e779f11fb1c611d34a6bcf66a883 | [
"Apache-2.0",
"MIT"
] | null | null | null | from django import forms
from .models import Registrado
class RegModelForm(forms.ModelForm):
class Meta:
model=Registrado
fields = ["nombre","email"]
def clean_email(self):
email=self.cleaned_data.get("email")
return email
def clean_nombre(self):
nombre=self... | 25.708333 | 51 | 0.65154 | 71 | 617 | 5.577465 | 0.394366 | 0.090909 | 0.113636 | 0.136364 | 0.282828 | 0.282828 | 0.282828 | 0.282828 | 0.282828 | 0.282828 | 0 | 0 | 0.236629 | 617 | 24 | 52 | 25.708333 | 0.840764 | 0.139384 | 0 | 0 | 0 | 0 | 0.042146 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ee923f582198247a8fa4c0c36f1556ae02ffa74b | 3,053 | py | Python | cspaceapps/im/Ui_IMWindow.py | jmcvetta/cspace | 13d6be86dfa3417ac5511b1b2c15d1050fe3701d | [
"RSA-MD",
"TCP-wrappers"
] | 28 | 2015-04-24T12:04:08.000Z | 2022-01-07T15:13:10.000Z | cspaceapps/im/Ui_IMWindow.py | Magnus167/cspace | 13d6be86dfa3417ac5511b1b2c15d1050fe3701d | [
"RSA-MD",
"TCP-wrappers"
] | 1 | 2015-12-09T10:21:59.000Z | 2015-12-16T05:38:55.000Z | cspaceapps/im/Ui_IMWindow.py | Magnus167/cspace | 13d6be86dfa3417ac5511b1b2c15d1050fe3701d | [
"RSA-MD",
"TCP-wrappers"
] | 18 | 2015-01-01T02:16:49.000Z | 2021-08-12T04:14:57.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'IMWindow.ui'
#
# Created: Mon Oct 09 13:21:20 2006
# by: PyQt4 UI code generator 4.0.1
#
# WARNING! All changes made in this file will be lost!
import sys
from PyQt4 import QtCore, QtGui
class Ui_IMWindow(object):
def... | 39.649351 | 125 | 0.684573 | 299 | 3,053 | 6.986622 | 0.374582 | 0.071805 | 0.042125 | 0.04404 | 0.31977 | 0.31977 | 0.280517 | 0.280517 | 0.280517 | 0.280517 | 0 | 0.019486 | 0.209957 | 3,053 | 76 | 126 | 40.171053 | 0.8466 | 0.06944 | 0 | 0.321429 | 1 | 0 | 0.041712 | 0.007617 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.035714 | 0 | 0.089286 | 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 |
ee92c7026c13bb27dd97338dc6032d0d4a7e55c9 | 781 | py | Python | module3-nosql-and-document-oriented-databases/rpg_mongo.py | DanielMartinAlarcon/DS-Unit-3-Sprint-2-SQL-and-Databases | 76cfbf134987059a43f5b64d940cdac32b3337b8 | [
"MIT"
] | null | null | null | module3-nosql-and-document-oriented-databases/rpg_mongo.py | DanielMartinAlarcon/DS-Unit-3-Sprint-2-SQL-and-Databases | 76cfbf134987059a43f5b64d940cdac32b3337b8 | [
"MIT"
] | null | null | null | module3-nosql-and-document-oriented-databases/rpg_mongo.py | DanielMartinAlarcon/DS-Unit-3-Sprint-2-SQL-and-Databases | 76cfbf134987059a43f5b64d940cdac32b3337b8 | [
"MIT"
] | null | null | null | # ./usr/bin/env python
" Importing from JSON to MongoDB"
from dotenv import load_dotenv
import os
import pymongo
import requests
load_dotenv()
MongoDB_URL = os.getenv("MongoDB_URL")
rpg_URL = 'https://raw.githubusercontent.com/\
LambdaSchool/Django-RPG/master/testdata.json'
client = pymongo.MongoClient(MongoDB_UR... | 30.038462 | 60 | 0.783611 | 117 | 781 | 5.145299 | 0.606838 | 0.049834 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138284 | 781 | 25 | 61 | 31.24 | 0.894502 | 0.430218 | 0 | 0 | 0 | 0 | 0.089362 | 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 |
eeb454ce202b2494ba51b87a107f051e25beadc6 | 10,270 | py | Python | configs/baselines/polyrnn-pp-pytorch/code/Scripts/train/train_ggnn.py | vivek-r-2000/BoundaryNet | fce8d51a516646c1001116d03872dbba9e4c5082 | [
"MIT"
] | 67 | 2021-10-06T13:48:44.000Z | 2022-03-31T04:00:20.000Z | configs/baselines/polyrnn-pp-pytorch/code/Scripts/train/train_ggnn.py | vivek-r-2000/BoundaryNet | fce8d51a516646c1001116d03872dbba9e4c5082 | [
"MIT"
] | 6 | 2021-11-03T08:37:31.000Z | 2022-03-19T10:13:10.000Z | configs/baselines/polyrnn-pp-pytorch/code/Scripts/train/train_ggnn.py | vivek-r-2000/BoundaryNet | fce8d51a516646c1001116d03872dbba9e4c5082 | [
"MIT"
] | 10 | 2021-12-08T10:54:45.000Z | 2022-03-22T06:44:14.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
import json
import os
import argparse
import numpy as np
import torch.optim as optim
import torch.nn as nn
from torch.utils.data import DataLoader
from datetime import datetime
from collections import defaultdict
from tensorboardX import SummaryWriter
f... | 36.942446 | 128 | 0.558617 | 1,239 | 10,270 | 4.429379 | 0.204197 | 0.034985 | 0.030612 | 0.012755 | 0.324162 | 0.282434 | 0.266399 | 0.240889 | 0.184402 | 0.159257 | 0 | 0.009104 | 0.326193 | 10,270 | 277 | 129 | 37.075812 | 0.78396 | 0.032522 | 0 | 0.19697 | 0 | 0.005051 | 0.088508 | 0.002117 | 0 | 0 | 0 | 0.00361 | 0 | 0 | null | null | 0 | 0.09596 | null | null | 0.050505 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
eeb5df2357470f8a61e2e2a549638a7f9fd41380 | 21,420 | py | Python | hogLab/core.py | cmshobe/BlockLab | 03bffeea340f8c6ff236352124661224fc6970cf | [
"MIT"
] | null | null | null | hogLab/core.py | cmshobe/BlockLab | 03bffeea340f8c6ff236352124661224fc6970cf | [
"MIT"
] | null | null | null | hogLab/core.py | cmshobe/BlockLab | 03bffeea340f8c6ff236352124661224fc6970cf | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Jan 9 13:06:21 2018
@author: Charlie and Rachel
Class implementing the Landlab version of Rachel's blocky hillslope model.
"""
from __future__ import division
import numpy as np
import sys
class HogLab(object):
def __init__(self):
pass
def instant... | 44.439834 | 146 | 0.528105 | 2,135 | 21,420 | 4.942857 | 0.111007 | 0.090211 | 0.057993 | 0.04321 | 0.641524 | 0.555008 | 0.505259 | 0.477779 | 0.443665 | 0.41031 | 0 | 0.010911 | 0.40098 | 21,420 | 482 | 147 | 44.439834 | 0.81155 | 0.183707 | 0 | 0.437209 | 0 | 0 | 0.007968 | 0.001648 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004651 | 0.013953 | null | null | 0.004651 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
eeb841942a8f4463b7f9c31487a1e52268b38d23 | 1,383 | py | Python | backend/model_garden/serializers/media_asset.py | druzhynin-oleksii/model_garden | 3599f5d0c81bc79139ceabed5dd647c29ccadc31 | [
"MIT"
] | 8 | 2020-09-10T18:28:19.000Z | 2022-02-22T03:41:14.000Z | backend/model_garden/serializers/media_asset.py | druzhynin-oleksii/model_garden | 3599f5d0c81bc79139ceabed5dd647c29ccadc31 | [
"MIT"
] | 1 | 2020-09-15T21:20:29.000Z | 2020-09-15T21:20:29.000Z | backend/model_garden/serializers/media_asset.py | druzhynin-oleksii/model_garden | 3599f5d0c81bc79139ceabed5dd647c29ccadc31 | [
"MIT"
] | 8 | 2020-09-10T16:29:35.000Z | 2022-01-25T15:05:03.000Z | from rest_framework import serializers
from model_garden.constants import LabelingTaskStatus
from model_garden.models import MediaAsset
class MediaAssetIDSerializer(serializers.Serializer):
id = serializers.ListField(
child=serializers.IntegerField(),
required=True,
allow_empty=False,
min_length=1,... | 29.425532 | 90 | 0.727404 | 151 | 1,383 | 6.430464 | 0.390728 | 0.098867 | 0.07724 | 0.061792 | 0.125644 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000899 | 0.195951 | 1,383 | 46 | 91 | 30.065217 | 0.872302 | 0.066522 | 0 | 0 | 0 | 0 | 0.049689 | 0 | 0 | 0 | 0 | 0.021739 | 0 | 1 | 0.085714 | false | 0 | 0.085714 | 0.028571 | 0.485714 | 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 |
eebb92d0817619ecbd92aed71eee60014bc7ac9a | 807 | py | Python | 001146StepikPyBegin/Stepik001146PyBeginсh11p05st05TASK03_20210217_lists_methods.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | 001146StepikPyBegin/Stepik001146PyBeginсh11p05st05TASK03_20210217_lists_methods.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | 001146StepikPyBegin/Stepik001146PyBeginсh11p05st05TASK03_20210217_lists_methods.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | '''
Windows OS
В операционной системе Windows полное имя файла состоит из буквы диска,
после которого ставится двоеточие и символ "\", затем через такой же
символ перечисляются подкаталоги (папки), в которых находится файл,
в конце пишется имя файла (C:\Windows\System32\calc.exe).
На вход программе подается одна стр... | 24.454545 | 71 | 0.778191 | 116 | 807 | 5.413793 | 0.655172 | 0.038217 | 0.076433 | 0.095541 | 0.214968 | 0.105096 | 0 | 0 | 0 | 0 | 0 | 0.011696 | 0.152416 | 807 | 32 | 72 | 25.21875 | 0.906433 | 0.915737 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eed315339f8bf5f01ba68ac7c2313bbf4ce690eb | 700 | py | Python | scieldas/services/travis/api.py | autophagy/scieldas | 0159f45321e4edb2211010e096dfc09f5c103df0 | [
"MIT"
] | 6 | 2018-06-13T06:54:12.000Z | 2021-01-15T13:59:33.000Z | scieldas/services/travis/api.py | Autophagy/scieldas | 0159f45321e4edb2211010e096dfc09f5c103df0 | [
"MIT"
] | 1 | 2020-06-21T17:56:32.000Z | 2020-06-23T07:48:57.000Z | scieldas/services/travis/api.py | autophagy/scieldas | 0159f45321e4edb2211010e096dfc09f5c103df0 | [
"MIT"
] | null | null | null | from typing import Optional
from pydash import get
from scieldas.api import API
from scieldas.services import ServiceAPI
class Travis(ServiceAPI):
base_url = "https://api.travis-ci.org/"
@ServiceAPI.call
def build_status(
self, user: str, project: str, token: str, api: API, branch: str = None
... | 33.333333 | 81 | 0.648571 | 87 | 700 | 5.149425 | 0.54023 | 0.053571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215714 | 700 | 20 | 82 | 35 | 0.816029 | 0 | 0 | 0 | 0 | 0 | 0.161429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.0625 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
eed67fd2c245a88a1a636e79c3efc1b5a5503492 | 463 | py | Python | mezzanine/generic/migrations/0005_threadedcomment_chamber.py | interrogator/mezzanine | 5011534749a2319891c35457dda61152407a6dde | [
"BSD-2-Clause"
] | null | null | null | mezzanine/generic/migrations/0005_threadedcomment_chamber.py | interrogator/mezzanine | 5011534749a2319891c35457dda61152407a6dde | [
"BSD-2-Clause"
] | null | null | null | mezzanine/generic/migrations/0005_threadedcomment_chamber.py | interrogator/mezzanine | 5011534749a2319891c35457dda61152407a6dde | [
"BSD-2-Clause"
] | null | null | null | # Generated by Django 2.0.13 on 2019-03-19 16:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('generic', '0004_threadedcomment_failed_automod'),
]
operations = [
migrations.AddField(
model_name='threadedcomment',
... | 23.15 | 70 | 0.62203 | 47 | 463 | 6 | 0.808511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068047 | 0.269978 | 463 | 19 | 71 | 24.368421 | 0.766272 | 0.099352 | 0 | 0 | 1 | 0 | 0.171084 | 0.084337 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eedca56eccf370f93932192e0e402d803abe66b1 | 926 | py | Python | setup.py | f6v/lisa2 | fb4f7797050348bed373c6355dee6b0d46b415d8 | [
"MIT"
] | 13 | 2020-09-04T13:41:54.000Z | 2021-05-10T04:37:55.000Z | setup.py | f6v/lisa2 | fb4f7797050348bed373c6355dee6b0d46b415d8 | [
"MIT"
] | 5 | 2020-09-24T22:08:54.000Z | 2021-07-24T02:45:53.000Z | setup.py | f6v/lisa2 | fb4f7797050348bed373c6355dee6b0d46b415d8 | [
"MIT"
] | 2 | 2020-09-21T20:04:02.000Z | 2022-03-08T16:05:58.000Z |
from setuptools import setup, find_packages
setup(
name = 'lisa2',
description = """Lisa: inferring transcriptional regulators through integrative modeling of public chromatin accessibility and ChIP-seq data\n
X. Shirley Liu Lab, 2020""",
version = '2.2.1',
url = 'https://genomebiology.biomedcentral.... | 30.866667 | 146 | 0.613391 | 115 | 926 | 4.869565 | 0.765217 | 0.042857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075419 | 0.226782 | 926 | 30 | 147 | 30.866667 | 0.706704 | 0 | 0 | 0.074074 | 0 | 0.037037 | 0.516757 | 0.052973 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.037037 | 0 | 0.037037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eedf88f256a4af5332b403850afcb2a83ed32f22 | 2,462 | py | Python | src/niweb/apps/noclook/migrations/0013_default_policies_20190927_1937.py | SUNET/ni | f652e230524346bf0801cdf8bbb6ee63f4985cc2 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/niweb/apps/noclook/migrations/0013_default_policies_20190927_1937.py | SUNET/ni | f652e230524346bf0801cdf8bbb6ee63f4985cc2 | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2019-07-24T12:41:11.000Z | 2020-03-31T10:10:04.000Z | src/niweb/apps/noclook/migrations/0013_default_policies_20190927_1937.py | SUNET/ni | f652e230524346bf0801cdf8bbb6ee63f4985cc2 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-02-25T14:58:20.000Z | 2019-02-25T14:58:20.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.24 on 2019-09-27 19:37
from __future__ import unicode_literals
from django.db import migrations
from vakt import Policy, ALLOW_ACCESS, DENY_ACCESS
import apps.noclook.vakt.rules as srirules
import apps.noclook.vakt.utils as sriutils
import uuid
import vakt.rules as v... | 33.27027 | 90 | 0.666125 | 270 | 2,462 | 5.9 | 0.37037 | 0.033898 | 0.022599 | 0.026365 | 0.233522 | 0.204645 | 0.204645 | 0.204645 | 0.155681 | 0.155681 | 0 | 0.014933 | 0.238424 | 2,462 | 73 | 91 | 33.726027 | 0.834667 | 0.118603 | 0 | 0.27451 | 1 | 0 | 0.097685 | 0.030556 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039216 | false | 0 | 0.137255 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eee1b817b65989e961f50b312ddf496fb573ffe6 | 701 | py | Python | Route/migrations/0001_initial.py | GaniAliguzhinov/AviataTask | bfcd059b65036332ed3b645b44eff255b0f30205 | [
"MIT"
] | null | null | null | Route/migrations/0001_initial.py | GaniAliguzhinov/AviataTask | bfcd059b65036332ed3b645b44eff255b0f30205 | [
"MIT"
] | null | null | null | Route/migrations/0001_initial.py | GaniAliguzhinov/AviataTask | bfcd059b65036332ed3b645b44eff255b0f30205 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.4 on 2020-12-28 03:31
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Route',
fields=[
('id', models.AutoField(au... | 26.961538 | 114 | 0.549215 | 70 | 701 | 5.371429 | 0.642857 | 0.159574 | 0.101064 | 0.12766 | 0.143617 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043659 | 0.313837 | 701 | 25 | 115 | 28.04 | 0.738046 | 0.064194 | 0 | 0 | 1 | 0 | 0.071865 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 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 |
eee2063fbbd597a574b985cd9d6df9cd857e3eae | 2,769 | py | Python | src/auracog_rules/rules_engines_persistence.py | Telefonica/clipspy | 87d1d63604a209e2271efd3d3b8df0943836a504 | [
"BSD-3-Clause"
] | null | null | null | src/auracog_rules/rules_engines_persistence.py | Telefonica/clipspy | 87d1d63604a209e2271efd3d3b8df0943836a504 | [
"BSD-3-Clause"
] | null | null | null | src/auracog_rules/rules_engines_persistence.py | Telefonica/clipspy | 87d1d63604a209e2271efd3d3b8df0943836a504 | [
"BSD-3-Clause"
] | null | null | null | from .rules_engines import RulesEngine
import logging
import os
from typing import Text
logger = logging.getLogger(__name__)
class RulesEnginesStore(object):
"""
Base class for rules engine stores.
"""
def load_persistent_state(self, rules_engine: RulesEngine, id: Text):
"""
Loads ... | 34.6125 | 103 | 0.655832 | 354 | 2,769 | 4.980226 | 0.271186 | 0.09359 | 0.064663 | 0.042541 | 0.461146 | 0.44186 | 0.412365 | 0.380034 | 0.380034 | 0.297788 | 0 | 0 | 0.248465 | 2,769 | 79 | 104 | 35.050633 | 0.847189 | 0.283135 | 0 | 0.5 | 0 | 0 | 0.159557 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.117647 | 0.029412 | 0.441176 | 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 |
eee7d790450ad1ebdd2bc9f56ce7eef3c2262dbd | 4,756 | py | Python | hil/cli/switch.py | CCI-MOC/hil | 8c6de2214ddf908c01549b117d5684ac52a93934 | [
"ECL-2.0",
"Apache-2.0"
] | 23 | 2016-09-27T18:41:46.000Z | 2021-12-20T15:06:32.000Z | hil/cli/switch.py | CCI-MOC/hil | 8c6de2214ddf908c01549b117d5684ac52a93934 | [
"ECL-2.0",
"Apache-2.0"
] | 522 | 2016-06-22T21:19:26.000Z | 2020-11-12T20:54:40.000Z | hil/cli/switch.py | CCI-MOC/hil | 8c6de2214ddf908c01549b117d5684ac52a93934 | [
"ECL-2.0",
"Apache-2.0"
] | 30 | 2016-06-24T08:27:59.000Z | 2018-08-20T17:34:45.000Z | """Commands related to switch are in this module"""
import click
import sys
import ast
from prettytable import PrettyTable
from hil.cli.client_setup import client
from hil.cli.helper import print_json, make_table
@click.group()
def switch():
"""Commands related to switch"""
@switch.command(name='show')
@click.a... | 33.258741 | 79 | 0.570227 | 525 | 4,756 | 5.047619 | 0.268571 | 0.050943 | 0.031698 | 0.038491 | 0.329434 | 0.281509 | 0.261132 | 0.222264 | 0.195849 | 0.195849 | 0 | 0.013409 | 0.294365 | 4,756 | 142 | 80 | 33.492958 | 0.776222 | 0.104079 | 0 | 0.307692 | 0 | 0 | 0.220452 | 0.004994 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048077 | false | 0.057692 | 0.057692 | 0 | 0.105769 | 0.048077 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
eee8834044d9bf354c338be18492f9c4e769d4c4 | 1,894 | py | Python | docker/docker-running.py | CoScale/coscale-generic-scripts | e6571af3b706a286663192f9b5baf735d322711b | [
"BSD-3-Clause"
] | 5 | 2017-04-10T20:52:37.000Z | 2021-10-01T10:09:15.000Z | docker/docker-running.py | CoScale/coscale-generic-scripts | e6571af3b706a286663192f9b5baf735d322711b | [
"BSD-3-Clause"
] | 3 | 2017-04-25T18:11:25.000Z | 2018-02-13T20:57:07.000Z | docker/docker-running.py | CoScale/coscale-generic-scripts | e6571af3b706a286663192f9b5baf735d322711b | [
"BSD-3-Clause"
] | 6 | 2017-04-25T17:06:06.000Z | 2020-05-04T14:11:28.000Z | #!/usr/bin/python
#
# Generic script to check how many containers are running for a certain image
#
import sys
import json
import subprocess
#
# Image list - Add any image you want to monitor to the array below
#
images = [
"nginx",
"busybox"
]
# Configuration mode: return the custom metrics data should be ... | 27.449275 | 110 | 0.589229 | 233 | 1,894 | 4.751073 | 0.472103 | 0.031617 | 0.023487 | 0.023487 | 0.050587 | 0.050587 | 0 | 0 | 0 | 0 | 0 | 0.009701 | 0.292503 | 1,894 | 68 | 111 | 27.852941 | 0.816418 | 0.32735 | 0 | 0.045455 | 0 | 0 | 0.187599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068182 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eef1e980e531df77be496e8b723501e296cae994 | 996 | py | Python | sslic/data/__init__.py | gergopool/ssl | 676d01b88a50acea9a3b6c406fc4b82de74ec7b3 | [
"MIT"
] | 1 | 2022-02-05T13:49:17.000Z | 2022-02-05T13:49:17.000Z | sslic/data/__init__.py | gergopool/ssl | 676d01b88a50acea9a3b6c406fc4b82de74ec7b3 | [
"MIT"
] | null | null | null | sslic/data/__init__.py | gergopool/ssl | 676d01b88a50acea9a3b6c406fc4b82de74ec7b3 | [
"MIT"
] | null | null | null | from .datasets import *
from torch.utils.data import Dataset
def get_dataset(root: str, method_name: str, dataset_name: str, split: str) -> Dataset:
"""get_dataset
Parameters
----------
root : str
Path to your dataset.
method_name : str
Name of your ssl method. E.g. byol, simsiam,... | 29.294118 | 87 | 0.635542 | 134 | 996 | 4.619403 | 0.492537 | 0.045234 | 0.042003 | 0.042003 | 0.054927 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002751 | 0.27008 | 996 | 34 | 88 | 29.294118 | 0.848693 | 0.548193 | 0 | 0 | 0 | 0 | 0.122563 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
eef94f29655991249721295b393b8daf0206e09d | 293 | py | Python | main.py | GastonMazzei/Peat | a35c6822d288c07f1f96524777de250d540f3ae7 | [
"MIT"
] | null | null | null | main.py | GastonMazzei/Peat | a35c6822d288c07f1f96524777de250d540f3ae7 | [
"MIT"
] | 2 | 2020-08-02T23:28:36.000Z | 2020-08-03T00:15:25.000Z | main.py | GastonMazzei/peat-accelerator | a35c6822d288c07f1f96524777de250d540f3ae7 | [
"MIT"
] | null | null | null | print('Hello World!')
long_mssg = """
.................................................
This script should be replaced for an AI-script
of your own which has an output of some sort that
you are interested in getting
................................................
"""
print(long_mssg)
| 26.636364 | 50 | 0.481229 | 33 | 293 | 4.212121 | 0.818182 | 0.115108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136519 | 293 | 10 | 51 | 29.3 | 0.549407 | 0 | 0 | 0 | 0 | 0 | 0.83959 | 0.331058 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.222222 | 0 | 0 | 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 |
eef9c9424e0c2d28a34df45facfcc046736e682e | 1,692 | py | Python | appython/components/api/api_auth.py | zugaldia/appython | 74a35243ede507d677ab12d606892bc52f2ddf89 | [
"Apache-2.0"
] | null | null | null | appython/components/api/api_auth.py | zugaldia/appython | 74a35243ede507d677ab12d606892bc52f2ddf89 | [
"Apache-2.0"
] | 8 | 2015-03-27T19:01:45.000Z | 2015-07-14T15:51:35.000Z | appython/components/api/api_auth.py | zugaldia/appython | 74a35243ede507d677ab12d606892bc52f2ddf89 | [
"Apache-2.0"
] | null | null | null | '''
A decorator for API methods that require some kind of authentication. If the
method doesn't require authentication, this decorator desn't need to be applied.
'''
from appython.components.api.api_status import ApiStatus
from flask_login import current_user
# import logging
def api_auth(login_required=False, admi... | 42.3 | 92 | 0.609338 | 205 | 1,692 | 4.902439 | 0.419512 | 0.044776 | 0.047761 | 0.047761 | 0.287562 | 0.18607 | 0.161194 | 0.117413 | 0.117413 | 0.117413 | 0 | 0.009466 | 0.313239 | 1,692 | 39 | 93 | 43.384615 | 0.855422 | 0.274232 | 0 | 0.238095 | 0 | 0 | 0.078383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.095238 | 0 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e1039c55451e54b4f664ba45ffa72525d5f0e180 | 347 | py | Python | examples/context_eddystone_beacon.py | ddunmire/python-bleson | bf6f4230b0e8b3377c54ee3b52213098cc52c2a8 | [
"MIT"
] | 103 | 2017-09-29T09:13:40.000Z | 2022-02-25T08:03:32.000Z | examples/context_eddystone_beacon.py | ddunmire/python-bleson | bf6f4230b0e8b3377c54ee3b52213098cc52c2a8 | [
"MIT"
] | 57 | 2017-11-06T04:48:16.000Z | 2021-05-24T11:02:22.000Z | examples/context_eddystone_beacon.py | ddunmire/python-bleson | bf6f4230b0e8b3377c54ee3b52213098cc52c2a8 | [
"MIT"
] | 30 | 2017-11-24T21:15:49.000Z | 2022-02-20T10:38:09.000Z | #!/usr/bin/env python3
import sys
from time import sleep
from bleson import get_provider, EddystoneBeacon
# Get the wait time from the first script argument or default it to 10 seconds
WAIT_TIME = int(sys.argv[1]) if len(sys.argv)>1 else 10
with EddystoneBeacon(get_provider().get_adapter(), 'https://www.bluetooth.co... | 28.916667 | 81 | 0.760807 | 57 | 347 | 4.54386 | 0.631579 | 0.092664 | 0.061776 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023333 | 0.135447 | 347 | 11 | 82 | 31.545455 | 0.84 | 0.282421 | 0 | 0 | 0 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e10534c6c1ca57f906aac269fddf1f92767858b5 | 1,191 | py | Python | Home-and-Elementary/three_words.py | RiquePM/pyCheckiO-my_solutions | e289d812c6e23dd8eced2d2063b82b81c7b99e15 | [
"MIT"
] | null | null | null | Home-and-Elementary/three_words.py | RiquePM/pyCheckiO-my_solutions | e289d812c6e23dd8eced2d2063b82b81c7b99e15 | [
"MIT"
] | null | null | null | Home-and-Elementary/three_words.py | RiquePM/pyCheckiO-my_solutions | e289d812c6e23dd8eced2d2063b82b81c7b99e15 | [
"MIT"
] | null | null | null | #--------------------------------------------#
# My Solution #
#--------------------------------------------#
def checkio(words: str):
count = 0
for word in words.split():
if word.isalpha():
count += 1
else:
count = 0
if count == 3:
return True
return False
#-----------------------------... | 24.8125 | 67 | 0.391268 | 130 | 1,191 | 3.584615 | 0.430769 | 0.051502 | 0.064378 | 0.072961 | 0.094421 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020925 | 0.237615 | 1,191 | 47 | 68 | 25.340426 | 0.492291 | 0.586902 | 0 | 0.125 | 0 | 0 | 0.123348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.1875 | 0.0625 | 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 |
e1056c6fb0784110610c841152e58e9465a568ee | 1,017 | py | Python | apps/lan/migrations/0014_auto_20190729_2142.py | HON95/studlan | 8dc38c64d0060506d865b9c834466fed2f9f9571 | [
"MIT"
] | 9 | 2016-03-15T21:03:49.000Z | 2020-12-02T19:45:44.000Z | apps/lan/migrations/0014_auto_20190729_2142.py | HON95/studlan | 8dc38c64d0060506d865b9c834466fed2f9f9571 | [
"MIT"
] | 161 | 2016-02-05T14:11:50.000Z | 2020-10-14T10:13:21.000Z | apps/lan/migrations/0014_auto_20190729_2142.py | HON95/studlan | 8dc38c64d0060506d865b9c834466fed2f9f9571 | [
"MIT"
] | 11 | 2016-07-27T12:20:05.000Z | 2021-04-18T05:49:17.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-07-29 21:42
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('lan', '0013_auto_20190721_0705'),
]
operations = [
migrations.AddField(
... | 32.806452 | 150 | 0.627335 | 121 | 1,017 | 5.107438 | 0.553719 | 0.043689 | 0.072816 | 0.092233 | 0.184466 | 0.126214 | 0 | 0 | 0 | 0 | 0 | 0.05284 | 0.255654 | 1,017 | 30 | 151 | 33.9 | 0.76354 | 0.067847 | 0 | 0.347826 | 1 | 0 | 0.22963 | 0.024339 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.217391 | 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 |
e1059c640b4fb2e9cbf749164503fd690c6219e3 | 860 | py | Python | crawler/status.py | foreshadow/acm-bjtu-v3 | e674917891a91a09a4b70be6c3fb49cf8eca744d | [
"MIT"
] | null | null | null | crawler/status.py | foreshadow/acm-bjtu-v3 | e674917891a91a09a4b70be6c3fb49cf8eca744d | [
"MIT"
] | null | null | null | crawler/status.py | foreshadow/acm-bjtu-v3 | e674917891a91a09a4b70be6c3fb49cf8eca744d | [
"MIT"
] | null | null | null | import mysqlbuilder
import urllib
import json
count = 25
url = 'http://codeforces.com/api/user.status?handle={}&from=1&count={}';
if __name__ == '__main__':
db = mysqlbuilder.database(debug = True)
db.query('select handle from users', [])
for row in db.cursor.fetchall():
handle = row[0]
if... | 34.4 | 73 | 0.519767 | 96 | 860 | 4.541667 | 0.520833 | 0.045872 | 0.036697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006969 | 0.332558 | 860 | 24 | 74 | 35.833333 | 0.752613 | 0 | 0 | 0 | 0 | 0 | 0.201163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.136364 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e11798d79b86964fb009cb8198842fec01a7deb4 | 406 | py | Python | url/migrations/0004_shorturl_date.py | ns377792/Blog-in-django | 7bebbf7ce364f76a609fbe7c2815eacf2c47978e | [
"MIT"
] | null | null | null | url/migrations/0004_shorturl_date.py | ns377792/Blog-in-django | 7bebbf7ce364f76a609fbe7c2815eacf2c47978e | [
"MIT"
] | null | null | null | url/migrations/0004_shorturl_date.py | ns377792/Blog-in-django | 7bebbf7ce364f76a609fbe7c2815eacf2c47978e | [
"MIT"
] | 1 | 2022-01-16T09:14:55.000Z | 2022-01-16T09:14:55.000Z | # Generated by Django 3.2.8 on 2021-12-28 12:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('url', '0003_alter_shorturl_short_query'),
]
operations = [
migrations.AddField(
model_name='shorturl',
... | 21.368421 | 52 | 0.573892 | 43 | 406 | 5.27907 | 0.813953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068592 | 0.317734 | 406 | 18 | 53 | 22.555556 | 0.750903 | 0.110837 | 0 | 0 | 1 | 0 | 0.134897 | 0.090909 | 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 |
e11cc9a84a7b147f1bb5db63ff2d373f60a00e42 | 2,997 | py | Python | docs/tools/SET_IMAGE_SIZE.py | lkesteloot/alice | 44b85caf744e5830536b5e813e761cc0ce3f695e | [
"Apache-2.0"
] | 63 | 2015-08-14T23:27:39.000Z | 2022-03-09T22:46:11.000Z | docs/tools/SET_IMAGE_SIZE.py | lkesteloot/alice | 44b85caf744e5830536b5e813e761cc0ce3f695e | [
"Apache-2.0"
] | 64 | 2015-09-11T23:13:03.000Z | 2018-10-29T09:38:06.000Z | docs/tools/SET_IMAGE_SIZE.py | lkesteloot/alice | 44b85caf744e5830536b5e813e761cc0ce3f695e | [
"Apache-2.0"
] | 9 | 2016-01-06T00:06:33.000Z | 2021-12-07T10:38:15.000Z | #!/usr/bin/env python
import os, sys, string, re, commands
from stat import *
def get_image_size(filename):
cmd = "convert " + filename + " ppm:- | pnmfile"
status, output = commands.getstatusoutput(cmd)
if status == 0:
match = re.search("([0-9]*) by ([0-9]*)", output)
size = map(int, mat... | 29.673267 | 70 | 0.534201 | 404 | 2,997 | 3.789604 | 0.279703 | 0.096016 | 0.028739 | 0.036577 | 0.206401 | 0.176355 | 0.132593 | 0.132593 | 0.096016 | 0.052907 | 0 | 0.008153 | 0.304304 | 2,997 | 100 | 71 | 29.97 | 0.726139 | 0.042042 | 0 | 0.093333 | 0 | 0 | 0.105722 | 0.030007 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.026667 | null | null | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e12122d8fd6094c8a8171f6dbf0cfbdde162b6d6 | 568 | py | Python | Demos/InstanceSeg_Demos/Seg_Demo2.py | JintuZheng/zisan | 84b30d1ee91754d4351841a2077c78146028adfc | [
"MIT"
] | 40 | 2020-02-14T07:03:16.000Z | 2022-03-07T10:52:18.000Z | Demos/InstanceSeg_Demos/Seg_Demo2.py | EpsilionJT/zisan | 84b30d1ee91754d4351841a2077c78146028adfc | [
"MIT"
] | 1 | 2021-09-04T07:40:26.000Z | 2021-09-04T14:51:03.000Z | Demos/InstanceSeg_Demos/Seg_Demo2.py | EpsilionJT/zisan | 84b30d1ee91754d4351841a2077c78146028adfc | [
"MIT"
] | 9 | 2020-02-24T01:08:11.000Z | 2021-12-15T07:35:14.000Z | from zisan.Seg.Interface import ImgSeg, markTools
import os
import numpy as np
import cv2
from PIL import Image
current_path = os.path.dirname(__file__)
lines=[[(281,120),(267,341)],[(279,157),(208,171)],[(309,170),(308,250)],[(275,233),(370,341)]]
model=ImgSeg(current_path+'/Jintu_SEG_Interactive.pth')
img=Image.op... | 24.695652 | 95 | 0.755282 | 91 | 568 | 4.56044 | 0.659341 | 0.079518 | 0.081928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 0.075704 | 568 | 22 | 96 | 25.818182 | 0.695238 | 0 | 0 | 0 | 0 | 0 | 0.071048 | 0.046181 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.357143 | 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 |
e12172098344a34aa0a8f03e59dcfed59b1ae7fe | 1,895 | py | Python | interactor/Scenario.py | eaingaran/TimeMachine | f6199827ffc358dd32f26edd8d68e2dbf7c63a90 | [
"MIT"
] | null | null | null | interactor/Scenario.py | eaingaran/TimeMachine | f6199827ffc358dd32f26edd8d68e2dbf7c63a90 | [
"MIT"
] | null | null | null | interactor/Scenario.py | eaingaran/TimeMachine | f6199827ffc358dd32f26edd8d68e2dbf7c63a90 | [
"MIT"
] | null | null | null | from utilities import ReadWriteExcel
class Scenario:
# Common base class for all Scenarios
name = ''
query = ''
actual_file = ''
expected_file = ''
result_file = ''
result_format = ''
result = ''
error_row_count = 0
error_count = 0
def __init__(self, application_config_fil... | 45.119048 | 120 | 0.522427 | 172 | 1,895 | 5.383721 | 0.267442 | 0.12851 | 0.158747 | 0.241901 | 0.543197 | 0.49568 | 0.447084 | 0.447084 | 0.447084 | 0.230022 | 0 | 0.003546 | 0.404749 | 1,895 | 41 | 121 | 46.219512 | 0.817376 | 0.01847 | 0 | 0.111111 | 0 | 0 | 0.013455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.027778 | 0.027778 | 0 | 0.361111 | 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 |
e1217dd487ebfdd999d3749294b90122c5a02cf5 | 16,813 | py | Python | voltha/adapters/dpoe_onu/eoam_config.py | sathishms77/test | bf8df6fc16c41720c7d99ed1ff17a64b543e9672 | [
"Apache-2.0"
] | 72 | 2017-01-18T02:36:34.000Z | 2022-02-12T15:28:30.000Z | voltha/adapters/dpoe_onu/eoam_config.py | sathishms77/test | bf8df6fc16c41720c7d99ed1ff17a64b543e9672 | [
"Apache-2.0"
] | 11 | 2017-03-03T17:56:09.000Z | 2022-02-11T03:38:03.000Z | voltha/adapters/dpoe_onu/eoam_config.py | sathishms77/test | bf8df6fc16c41720c7d99ed1ff17a64b543e9672 | [
"Apache-2.0"
] | 120 | 2017-02-02T23:26:11.000Z | 2022-03-13T05:30:23.000Z | #!/usr/bin/env python
# Copyright 2017-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | 45.318059 | 125 | 0.602926 | 1,730 | 16,813 | 5.72948 | 0.257225 | 0.030266 | 0.036723 | 0.015133 | 0.323446 | 0.284201 | 0.209746 | 0.186945 | 0.179379 | 0.130851 | 0 | 0.026424 | 0.277464 | 16,813 | 370 | 126 | 45.440541 | 0.789513 | 0.18908 | 0 | 0.136364 | 0 | 0 | 0.192959 | 0.001723 | 0 | 0 | 0.006592 | 0.002703 | 0 | 0 | null | null | 0 | 0.07438 | null | null | 0.202479 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e128bb1b2d3d24d497ca67edccdb55e7576baf6b | 1,399 | py | Python | formation_setup.py | dwalker-uk/Multi-Tello-Formation | ca8b520bdf553dff0596f3723c301eafa2a3518b | [
"MIT"
] | 1 | 2021-09-06T07:52:20.000Z | 2021-09-06T07:52:20.000Z | formation_setup.py | dwalker-uk/Multi-Tello-Formation | ca8b520bdf553dff0596f3723c301eafa2a3518b | [
"MIT"
] | null | null | null | formation_setup.py | dwalker-uk/Multi-Tello-Formation | ca8b520bdf553dff0596f3723c301eafa2a3518b | [
"MIT"
] | 1 | 2021-09-06T07:52:22.000Z | 2021-09-06T07:52:22.000Z | # Forked from https://github.com/TelloSDK/Multi-Tello-Formation
# This fork hosted at https://github.com/scubyd/Multi-Tello-Formation to support Python 3
# Updated and tested with Python 3.7
import socket
def set_ap(ssid, password):
"""
A Function to set tello in AP mode
:param ssid: the ssid of the netw... | 37.810811 | 112 | 0.692638 | 225 | 1,399 | 4.217778 | 0.444444 | 0.05058 | 0.029505 | 0.04215 | 0.25922 | 0.25922 | 0.25922 | 0.25922 | 0.25922 | 0.25922 | 0 | 0.036972 | 0.187991 | 1,399 | 36 | 113 | 38.861111 | 0.798415 | 0.496783 | 0 | 0.533333 | 0 | 0 | 0.213752 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.2 | 0.066667 | 0 | 0.133333 | 0.266667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e12bfd6f239c932f4d4e51273290d990d60f7d7f | 2,247 | py | Python | adventofcode2018/15.py | matslindh/codingchallenges | b6792808b03ea07304fda7e74c874c2c4d200dac | [
"MIT"
] | 2 | 2016-12-28T09:40:07.000Z | 2020-12-08T13:58:15.000Z | adventofcode2018/15.py | matslindh/codingchallenges | b6792808b03ea07304fda7e74c874c2c4d200dac | [
"MIT"
] | null | null | null | adventofcode2018/15.py | matslindh/codingchallenges | b6792808b03ea07304fda7e74c874c2c4d200dac | [
"MIT"
] | null | null | null | class Player:
def __init__(self, type_):
self.hp = 200
self.type = type_
def combat_simulation(f):
map = []
players = []
for line in f.readlines():
row = []
for c in line.strip():
if c == '#':
row.append(False)
elif c == '.':
... | 24.423913 | 63 | 0.469515 | 283 | 2,247 | 3.65371 | 0.254417 | 0.139265 | 0.148936 | 0.176015 | 0.374275 | 0.374275 | 0.168279 | 0.052224 | 0.052224 | 0.052224 | 0 | 0.051939 | 0.391633 | 2,247 | 91 | 64 | 24.692308 | 0.704462 | 0.017356 | 0 | 0.089552 | 0 | 0 | 0.049411 | 0 | 0 | 0 | 0 | 0 | 0.104478 | 1 | 0.074627 | false | 0.014925 | 0 | 0 | 0.089552 | 0.089552 | 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 |
01020d4258b079961f244da730d9b50c8e171a2a | 348 | py | Python | PYTHON/perfect.py | VikashK21/Coders_Life | 89af8bba2163d6331b760de33786caa49892da33 | [
"MIT"
] | 1 | 2021-11-30T10:30:16.000Z | 2021-11-30T10:30:16.000Z | PYTHON/perfect.py | VikashK21/Coders_Life | 89af8bba2163d6331b760de33786caa49892da33 | [
"MIT"
] | null | null | null | PYTHON/perfect.py | VikashK21/Coders_Life | 89af8bba2163d6331b760de33786caa49892da33 | [
"MIT"
] | null | null | null | # a=int(input('Enter a No.: '))
# s=0
# for i in range(1,a):
# if a%i==0:
# s+=i
# if s==a:
# print('Perfect No.')
# else:
# print('Not a perfest No.')
# a=9
# b=7
# c='12'
# print((c*(a*b))*'\n'
# for i in range(1,183):
# print(chr(i),end="")
# a='·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇ'
# print(len(a))
a... | 15.818182 | 32 | 0.465517 | 78 | 348 | 2.205128 | 0.5 | 0.046512 | 0.069767 | 0.127907 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083969 | 0.247126 | 348 | 22 | 33 | 15.818182 | 0.522901 | 0.784483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
010f73ec38bc218af3c91399281426d131198134 | 1,325 | py | Python | src/encoded/upgrade/workflow_run.py | 4dn-dcic/fourfron | 29601961706d2371b982e57ae085e8ebec3b2714 | [
"MIT"
] | 11 | 2016-11-23T02:33:13.000Z | 2021-06-18T14:21:20.000Z | src/encoded/upgrade/workflow_run.py | 4dn-dcic/fourfron | 29601961706d2371b982e57ae085e8ebec3b2714 | [
"MIT"
] | 1,159 | 2016-11-21T15:40:24.000Z | 2022-03-29T03:18:38.000Z | src/encoded/upgrade/workflow_run.py | 4dn-dcic/fourfron | 29601961706d2371b982e57ae085e8ebec3b2714 | [
"MIT"
] | 5 | 2017-01-27T16:36:15.000Z | 2019-06-14T14:39:54.000Z | from snovault import (
upgrade_step,
)
@upgrade_step('workflow_run_awsem', '1', '2')
@upgrade_step('workflow_run_sbg', '1', '2')
@upgrade_step('workflow_run', '1', '2')
def workflow_run_1_2(value, system):
'''Change input_files.format_if_extra to FileFormat'''
formats = system['registry']['collections']['... | 34.868421 | 79 | 0.620377 | 171 | 1,325 | 4.508772 | 0.327485 | 0.114137 | 0.14786 | 0.171206 | 0.277562 | 0.199741 | 0.075227 | 0 | 0 | 0 | 0 | 0.01561 | 0.226415 | 1,325 | 37 | 80 | 35.810811 | 0.736585 | 0.036226 | 0 | 0 | 0 | 0 | 0.274587 | 0.034618 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.03125 | 0.03125 | 0 | 0.09375 | 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 |
01120f2fa7b2c33210d20ee3b6a03b89415d84df | 216 | py | Python | tree_transplant.py | danielccosta9/RepositorioED | 991277d41127ae3f86a1873fcde318142e2f5876 | [
"MIT"
] | null | null | null | tree_transplant.py | danielccosta9/RepositorioED | 991277d41127ae3f86a1873fcde318142e2f5876 | [
"MIT"
] | null | null | null | tree_transplant.py | danielccosta9/RepositorioED | 991277d41127ae3f86a1873fcde318142e2f5876 | [
"MIT"
] | null | null | null | def tree_transplant(self, u, v):
if(u.pai == None):
self.raiz = v
elif(u.pai.left == u):
u.pai.left = v
else:
u.pai.right = v
if(v != None):
v.pai = u.pai | 21.6 | 33 | 0.435185 | 34 | 216 | 2.735294 | 0.411765 | 0.215054 | 0.172043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.402778 | 216 | 10 | 34 | 21.6 | 0.72093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
011827fe079eb407593ea55bc9bf7d305c4ff47e | 775 | py | Python | examples/installation.py | madeddie/python-bunq | 953a770d77f6a7499951d4326db073cafc04ca79 | [
"MIT"
] | 14 | 2017-03-12T23:57:35.000Z | 2020-05-23T20:49:09.000Z | examples/installation.py | madeddie/python-bunq | 953a770d77f6a7499951d4326db073cafc04ca79 | [
"MIT"
] | 7 | 2017-03-21T11:11:12.000Z | 2017-05-04T21:41:36.000Z | examples/installation.py | madeddie/python-bunq | 953a770d77f6a7499951d4326db073cafc04ca79 | [
"MIT"
] | 5 | 2017-03-13T20:36:10.000Z | 2020-05-23T20:44:24.000Z | #!/usr/bin/env python
# This code demonstrates how to register a new public key.
#
# Don't forget to store the returned Installation Token.
# The server public rsa key can always be retrieved as long
# as you have your private key and the token.
from bunq import API
from pprint import pprint
# private part of RSA ke... | 25.833333 | 69 | 0.740645 | 133 | 775 | 4.225564 | 0.533835 | 0.064057 | 0.035587 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 775 | 29 | 70 | 26.724138 | 0.864615 | 0.507097 | 0 | 0.153846 | 0 | 0 | 0.115282 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0.461538 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
01189aa8e4be09e871114488db3ff18dc7bc2504 | 2,556 | py | Python | users/arxiv/users/auth/tests/test_tokens.py | SamanthaFeidFischer/arxiv-auth | 08df4e0196a04a06eac1d26477b3ad56ebf56f08 | [
"MIT"
] | 1 | 2018-12-11T05:02:22.000Z | 2018-12-11T05:02:22.000Z | users/arxiv/users/auth/tests/test_tokens.py | SamanthaFeidFischer/arxiv-auth | 08df4e0196a04a06eac1d26477b3ad56ebf56f08 | [
"MIT"
] | 14 | 2019-06-20T13:36:13.000Z | 2021-06-25T15:19:59.000Z | users/arxiv/users/auth/tests/test_tokens.py | SamanthaFeidFischer/arxiv-auth | 08df4e0196a04a06eac1d26477b3ad56ebf56f08 | [
"MIT"
] | null | null | null | """Tests for :mod:`arxiv.users.auth.tokens`."""
from unittest import TestCase
from datetime import datetime
from .. import tokens
from ... import domain
from ...auth import scopes
class TestEncodeDecode(TestCase):
"""Tests for :func:`tokens.encode` and :func:`tokens.decode`."""
def test_encode_session(self... | 36 | 78 | 0.539124 | 237 | 2,556 | 5.721519 | 0.35865 | 0.035398 | 0.044248 | 0.061947 | 0.657817 | 0.657817 | 0.657817 | 0.657817 | 0.657817 | 0.657817 | 0 | 0.011884 | 0.341549 | 2,556 | 70 | 79 | 36.514286 | 0.793821 | 0.076682 | 0 | 0.689655 | 0 | 0 | 0.085507 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 1 | 0.034483 | false | 0 | 0.086207 | 0 | 0.137931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
011a02b7c16df455930c0c081f2363d6400974cf | 1,423 | py | Python | working/src/billing.py | loganmancuso/TimeTracker | 3a1da41ffb947fa94df61cac76c94f0573c07978 | [
"CNRI-Python"
] | null | null | null | working/src/billing.py | loganmancuso/TimeTracker | 3a1da41ffb947fa94df61cac76c94f0573c07978 | [
"CNRI-Python"
] | null | null | null | working/src/billing.py | loganmancuso/TimeTracker | 3a1da41ffb947fa94df61cac76c94f0573c07978 | [
"CNRI-Python"
] | null | null | null | '''
'billing.py'
Author/CopyRight: Mancuso, Logan
Last Edit Date: 04-27-2021--20:39:52
UPDATE Bills
SET
billing_rate=
(SELECT remaining from Bills WHERE date='2021-04-22' AND "hour"='20:00:00')
+((SELECT total from Bills WHERE date='2021-04-22' AND "hour"='21:00:00')
-(SELECT total from Bills WHERE date='2021-... | 20.042254 | 77 | 0.720309 | 226 | 1,423 | 4.424779 | 0.265487 | 0.077 | 0.09 | 0.075 | 0.471 | 0.406 | 0.406 | 0.406 | 0.332 | 0.332 | 0 | 0.082372 | 0.146873 | 1,423 | 71 | 78 | 20.042254 | 0.741351 | 0.033029 | 0 | 0.382353 | 0 | 0 | 0.034602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.029412 | null | null | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
012552615efe6b2a2c5c5bf67253f53170789f4b | 439 | py | Python | scikit_code/toxy.py | whensbrunch/bgi-neural-net | f002d73a0091b89dd4f6474004b036f7c88122b0 | [
"MIT"
] | null | null | null | scikit_code/toxy.py | whensbrunch/bgi-neural-net | f002d73a0091b89dd4f6474004b036f7c88122b0 | [
"MIT"
] | null | null | null | scikit_code/toxy.py | whensbrunch/bgi-neural-net | f002d73a0091b89dd4f6474004b036f7c88122b0 | [
"MIT"
] | null | null | null | import numpy
# X is 1084 x 2
# y is 1084 x 1
x_file = open("X.csv", "r")
y_file = open("y.csv", "r")
X = []
y = []
obs = []
for line in y_file:
y.append(float(line))
# convert to array
y = numpy.asarray(y)
for line in x_file:
obs = []
x1,x2 = line.split(",")
obs.append(float(x1))
obs.append(floa... | 15.678571 | 38 | 0.583144 | 82 | 439 | 3.073171 | 0.341463 | 0.130952 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050595 | 0.234624 | 439 | 27 | 39 | 16.259259 | 0.699405 | 0.143508 | 0 | 0.111111 | 0 | 0 | 0.03504 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0131a267f4f07ae6c87fdfd309d77132bc7e1600 | 933 | py | Python | setup.py | FireXStuff/firex-blaze | 0b9d8ea3a23fcb58cbbf30331b275abda82ef73d | [
"BSD-3-Clause"
] | null | null | null | setup.py | FireXStuff/firex-blaze | 0b9d8ea3a23fcb58cbbf30331b275abda82ef73d | [
"BSD-3-Clause"
] | null | null | null | setup.py | FireXStuff/firex-blaze | 0b9d8ea3a23fcb58cbbf30331b275abda82ef73d | [
"BSD-3-Clause"
] | null | null | null | # Need fastentrypoints to monkey patch setuptools for faster console_scripts
# noinspection PyUnresolvedReferences
import fastentrypoints
from setuptools import setup, find_packages
import versioneer
setup(name='firex_blaze',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
descr... | 34.555556 | 112 | 0.669882 | 100 | 933 | 6.02 | 0.63 | 0.099668 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00551 | 0.221865 | 933 | 26 | 113 | 35.884615 | 0.823691 | 0.117899 | 0 | 0.086957 | 0 | 0 | 0.391463 | 0.112195 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.130435 | 0 | 0.130435 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0133c6510fa1a5349bd5dac7d1686c460fa43fa2 | 347 | py | Python | image-manipulation/random_img.py | kartik-sajwan/q-pit | d6c86ee880b3e9f46187402527fe4c9f3df97cd0 | [
"Unlicense"
] | 1 | 2020-01-12T09:05:04.000Z | 2020-01-12T09:05:04.000Z | image-manipulation/random_img.py | kartik-sajwan/q-pit | d6c86ee880b3e9f46187402527fe4c9f3df97cd0 | [
"Unlicense"
] | 1 | 2020-08-31T08:51:10.000Z | 2020-08-31T09:04:01.000Z | image-manipulation/random_img.py | kartik-sajwan/q-pit | d6c86ee880b3e9f46187402527fe4c9f3df97cd0 | [
"Unlicense"
] | null | null | null | from PIL import Image
import numpy as np
def random_img(output, width, height):
array = np.random.randint(0,255 , (height,width,3))
array = np.array(array, dtype=np.uint8)
img = Image.fromarray(array)
#img = Image.fromarray(array).convert('LA') #convert to greyscale
img.save(output)
random_im... | 23.133333 | 69 | 0.685879 | 52 | 347 | 4.538462 | 0.557692 | 0.076271 | 0.144068 | 0.186441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.175793 | 347 | 14 | 70 | 24.785714 | 0.77972 | 0.181556 | 0 | 0 | 0 | 0 | 0.035461 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
013c9cf6561ffd543990359c87ac252421240749 | 3,258 | py | Python | Openscad-python/GenererPlaquesPrenoms.py | giloop/3D-printings | 60b1604d4f5560d582ed710afff9f26d50e072c4 | [
"MIT"
] | null | null | null | Openscad-python/GenererPlaquesPrenoms.py | giloop/3D-printings | 60b1604d4f5560d582ed710afff9f26d50e072c4 | [
"MIT"
] | null | null | null | Openscad-python/GenererPlaquesPrenoms.py | giloop/3D-printings | 60b1604d4f5560d582ed710afff9f26d50e072c4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Automatisation de la création de plaques pour impressions 3D
1. appel un script openscad pour une liste de paramètres et génère les STL.
2. Assemble les STL en grille puis regénère des STL pour impression 3D.
Author : giloop.theloop@gmail.com
"""
# Call system command w... | 33.244898 | 119 | 0.646409 | 430 | 3,258 | 4.888372 | 0.402326 | 0.017127 | 0.022835 | 0.042816 | 0.343482 | 0.32255 | 0.293054 | 0.233587 | 0.191722 | 0.14177 | 0 | 0.011792 | 0.193063 | 3,258 | 97 | 120 | 33.587629 | 0.787752 | 0.292818 | 0 | 0.18 | 0 | 0 | 0.230276 | 0.010848 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.18 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
013e9dbdcb5307896c1f183d5bf48ce42574def2 | 323 | py | Python | basiccalculator.py | xander-wild/daily-basc-problem | ae4749a8bf3af9ef4b35c12f47beba258cfc2114 | [
"CNRI-Python"
] | 1 | 2021-12-31T11:48:21.000Z | 2021-12-31T11:48:21.000Z | basiccalculator.py | xander-wild/daily-basc-problem | ae4749a8bf3af9ef4b35c12f47beba258cfc2114 | [
"CNRI-Python"
] | null | null | null | basiccalculator.py | xander-wild/daily-basc-problem | ae4749a8bf3af9ef4b35c12f47beba258cfc2114 | [
"CNRI-Python"
] | null | null | null | print("welcome to calculator \n")
a=int(input("enter first value"))
b=int(input("enter seconde value"))
print("which operation you want two perform \n add sub mul div")
c=input()
if c=="add":
d=a+b
print(d)
if c=="sub":
d=a-b
print(d)
if c=="mul":
d=a*b
print(d)
if c=="div":
d=a/b
print(... | 17.944444 | 64 | 0.588235 | 63 | 323 | 3.015873 | 0.412698 | 0.063158 | 0.063158 | 0.168421 | 0.236842 | 0.189474 | 0.189474 | 0 | 0 | 0 | 0 | 0 | 0.216718 | 323 | 17 | 65 | 19 | 0.750988 | 0 | 0 | 0.235294 | 0 | 0 | 0.393189 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.352941 | 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 |
0149b33d4ec888d2b150615ffde899d3d8022d6e | 2,553 | py | Python | rofi_rbw/rofi_rbw.py | DSIW/rofi-rbw | 4d36ae4fe89b6ffd70349e7d3e7fb6d6da315fe5 | [
"MIT"
] | null | null | null | rofi_rbw/rofi_rbw.py | DSIW/rofi-rbw | 4d36ae4fe89b6ffd70349e7d3e7fb6d6da315fe5 | [
"MIT"
] | null | null | null | rofi_rbw/rofi_rbw.py | DSIW/rofi-rbw | 4d36ae4fe89b6ffd70349e7d3e7fb6d6da315fe5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from collections import namedtuple
from subprocess import run
from time import sleep
Data = namedtuple('Data', ['username', 'password'])
def main() -> None:
active_window = run(args=['xdotool', 'getactivewindow'],
capture_output=True, encodin... | 25.787879 | 148 | 0.556208 | 299 | 2,553 | 4.635452 | 0.327759 | 0.017316 | 0.04329 | 0.04329 | 0.132756 | 0.111111 | 0.111111 | 0 | 0 | 0 | 0 | 0.016164 | 0.273012 | 2,553 | 98 | 149 | 26.05102 | 0.730603 | 0.016843 | 0 | 0.054054 | 0 | 0.013514 | 0.163477 | 0.012759 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067568 | false | 0.094595 | 0.040541 | 0 | 0.148649 | 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 |
0149c00f575ddaf5279fef4bfbc347f750d5a927 | 400 | py | Python | tests/test_complete_set.py | wilhelmer/lunr.py | f455dfd84616d49c6d47ec3d4f5d3441228faba9 | [
"MIT"
] | null | null | null | tests/test_complete_set.py | wilhelmer/lunr.py | f455dfd84616d49c6d47ec3d4f5d3441228faba9 | [
"MIT"
] | null | null | null | tests/test_complete_set.py | wilhelmer/lunr.py | f455dfd84616d49c6d47ec3d4f5d3441228faba9 | [
"MIT"
] | null | null | null | from lunr.utils import CompleteSet
class TestCompleteSet:
def test_always_contains_other_element(self):
assert "foo" in CompleteSet()
def test_intersection_returns_other(self):
cs = CompleteSet({"bar"})
assert cs.intersection({"foo"}) == {"foo"}
def test_union_returns_other(self)... | 26.666667 | 50 | 0.6475 | 46 | 400 | 5.413043 | 0.478261 | 0.084337 | 0.128514 | 0.144578 | 0.321285 | 0.321285 | 0.321285 | 0.321285 | 0 | 0 | 0 | 0 | 0.215 | 400 | 14 | 51 | 28.571429 | 0.792994 | 0 | 0 | 0.2 | 0 | 0 | 0.0525 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.3 | false | 0 | 0.1 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
014ae81b9cd185f2304e28876febed35bfbe89d5 | 1,362 | py | Python | call_snpcheck.py | martinhaagmans/ngsdump | 9977b29ba50a10dda4ea4fc69cd7aa3efe430839 | [
"MIT"
] | null | null | null | call_snpcheck.py | martinhaagmans/ngsdump | 9977b29ba50a10dda4ea4fc69cd7aa3efe430839 | [
"MIT"
] | null | null | null | call_snpcheck.py | martinhaagmans/ngsdump | 9977b29ba50a10dda4ea4fc69cd7aa3efe430839 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import glob
import logging
import subprocess
from ngsscriptlibrary import parse_ngssnpcheck
HOME = os.path.expanduser('~')
JAVA = os.path.join(HOME, 'programs', 'jre1.8.0_144', 'bin', 'java')
GATK = os.path.join(HOME, 'programs', 'GenomeAnalysisTK-3.8-0-ge9d806836', 'GenomeAnalysisTK.... | 25.698113 | 98 | 0.626285 | 189 | 1,362 | 4.391534 | 0.492063 | 0.043373 | 0.060241 | 0.06747 | 0.108434 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017824 | 0.217327 | 1,362 | 52 | 99 | 26.192308 | 0.760788 | 0.014684 | 0 | 0 | 0 | 0.027778 | 0.326622 | 0.061148 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.138889 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
015daac33c3ede22a33475b27df9bc58ab0ffb74 | 571 | py | Python | pyexlatex/models/toc.py | whoopnip/py-ex-latex | 66f5fadc35a0bfdce5f1ccb3c80dce8885b061b6 | [
"MIT"
] | 4 | 2020-06-08T07:17:12.000Z | 2021-11-04T21:39:52.000Z | pyexlatex/models/toc.py | nickderobertis/py-ex-latex | 66f5fadc35a0bfdce5f1ccb3c80dce8885b061b6 | [
"MIT"
] | 24 | 2020-02-17T17:20:44.000Z | 2021-12-20T00:10:19.000Z | pyexlatex/models/toc.py | nickderobertis/py-ex-latex | 66f5fadc35a0bfdce5f1ccb3c80dce8885b061b6 | [
"MIT"
] | null | null | null | from typing import Sequence, Optional
from pyexlatex.models.item import NoOptionsNoContentsItem
class TableOfContents(NoOptionsNoContentsItem):
name = 'tableofcontents'
def __init__(self, options: Optional[Sequence[str]] = None, **kwargs):
self.options = options
super().__init__(self.name, m... | 30.052632 | 74 | 0.695271 | 63 | 571 | 6.063492 | 0.460317 | 0.143979 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204904 | 571 | 18 | 75 | 31.722222 | 0.84141 | 0 | 0 | 0 | 0 | 0 | 0.029772 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0162edbbd2e2dfb54b0628dc262a76e94156b498 | 1,209 | py | Python | apps/base/views/product_brand.py | youssriaboelseod/pyerp | 9ef9873e2ff340010656f0c518bccf9d7a14dbaa | [
"MIT"
] | 115 | 2019-08-18T16:12:54.000Z | 2022-03-29T14:17:20.000Z | apps/base/views/product_brand.py | youssriaboelseod/pyerp | 9ef9873e2ff340010656f0c518bccf9d7a14dbaa | [
"MIT"
] | 22 | 2019-09-09T01:34:54.000Z | 2022-03-12T00:33:40.000Z | apps/base/views/product_brand.py | youssriaboelseod/pyerp | 9ef9873e2ff340010656f0c518bccf9d7a14dbaa | [
"MIT"
] | 83 | 2019-08-17T17:09:20.000Z | 2022-03-25T04:46:53.000Z | # Django Library
from django.contrib.auth.mixins import LoginRequiredMixin
from django.utils.translation import ugettext_lazy as _
# Localfolder Library
from ..models import PyProductBrand
from .web_father import (
FatherCreateView, FatherDeleteView, FatherDetailView, FatherListView,
FatherUpdateView)
OBJECT_... | 28.116279 | 73 | 0.775848 | 113 | 1,209 | 8.106195 | 0.380531 | 0.103712 | 0.069869 | 0.067686 | 0.323144 | 0.246725 | 0.246725 | 0.246725 | 0.152838 | 0.152838 | 0 | 0 | 0.142266 | 1,209 | 42 | 74 | 28.785714 | 0.883317 | 0.028122 | 0 | 0.392857 | 0 | 0 | 0.079352 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.785714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0162f121b0db45df3b519adffb2a86b3e7afa3b7 | 444 | py | Python | ex30.py | thinzaroo15/coding-sprint | 3c146fafb09a5e9bf9ef1d257b9a8f3052e8ab96 | [
"MIT"
] | null | null | null | ex30.py | thinzaroo15/coding-sprint | 3c146fafb09a5e9bf9ef1d257b9a8f3052e8ab96 | [
"MIT"
] | null | null | null | ex30.py | thinzaroo15/coding-sprint | 3c146fafb09a5e9bf9ef1d257b9a8f3052e8ab96 | [
"MIT"
] | null | null | null | people=30
cars=40
trucks=15
if cars>people:
print("We should take the cars")
elif cars<people:
print("We should not take the cars")
else:
print("We can't decide")
if trucks>cars:
print("That's too many trucks")
elif trucks<cars:
print("Maybe we could take the trucks")
else:
print("We still can't... | 20.181818 | 47 | 0.677928 | 76 | 444 | 3.960526 | 0.421053 | 0.093023 | 0.099668 | 0.112957 | 0.299003 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016854 | 0.198198 | 444 | 21 | 48 | 21.142857 | 0.828652 | 0 | 0 | 0.157895 | 0 | 0 | 0.445701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.421053 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0169abd6c66fe093e0a17ac6e85d8e9367950153 | 337 | py | Python | harpoon/src/plugins/Automod/events/OnMessageEdit.py | xezzz/Harpoon | 4a0bdea10a6e961013738598726a4205a5cc4c91 | [
"MIT"
] | null | null | null | harpoon/src/plugins/Automod/events/OnMessageEdit.py | xezzz/Harpoon | 4a0bdea10a6e961013738598726a4205a5cc4c91 | [
"MIT"
] | null | null | null | harpoon/src/plugins/Automod/events/OnMessageEdit.py | xezzz/Harpoon | 4a0bdea10a6e961013738598726a4205a5cc4c91 | [
"MIT"
] | null | null | null | from ..functions.CheckMessage import checkMessage
async def run(plugin, before, after):
if after.guild is None:
return
if not plugin.db.configs.get(after.guild.id, "automod"):
return
if before.content != after.content and after.content == None:
return
await checkMessa... | 25.923077 | 65 | 0.661721 | 42 | 337 | 5.309524 | 0.571429 | 0.089686 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.243323 | 337 | 13 | 66 | 25.923077 | 0.87451 | 0 | 0 | 0.333333 | 0 | 0 | 0.02071 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0169c76a9c0a54730d549cf610b312cf301e6f63 | 1,343 | py | Python | hash&heap/0685_First_Unique_Number_in_Data_Stream.py | adwardlee/leetcode_solutions | f386869161181e153e29165d8fff06492bb192f3 | [
"MIT"
] | null | null | null | hash&heap/0685_First_Unique_Number_in_Data_Stream.py | adwardlee/leetcode_solutions | f386869161181e153e29165d8fff06492bb192f3 | [
"MIT"
] | null | null | null | hash&heap/0685_First_Unique_Number_in_Data_Stream.py | adwardlee/leetcode_solutions | f386869161181e153e29165d8fff06492bb192f3 | [
"MIT"
] | null | null | null | '''
Description
Given a continuous stream of data, write a function that returns the first unique number (including the last number) when the terminating number arrives. If the terminating number is not found, return -1.
Example
Example1
Input:
[1, 2, 2, 1, 3, 4, 4, 5, 6]
5
Output: 3
Example2
Input:
[1, 2, 2, 1, 3... | 23.561404 | 204 | 0.504095 | 173 | 1,343 | 3.913295 | 0.393064 | 0.026588 | 0.031019 | 0.035451 | 0.137371 | 0.057607 | 0.057607 | 0.041359 | 0.041359 | 0.041359 | 0 | 0.058168 | 0.398362 | 1,343 | 57 | 205 | 23.561404 | 0.779703 | 0.388682 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0 | 1 | 0.038462 | false | 0 | 0 | 0 | 0.153846 | 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 |
016cc9553b32af967c9bbe83c5b9690a83b755bd | 600 | py | Python | train/semantic_segmentation/models/backbone/__init__.py | iva-dtis/DISIR | 0b4c6c41712ab88de982412e80510545cc17dd09 | [
"MIT"
] | 38 | 2020-02-19T14:23:32.000Z | 2022-01-21T09:22:40.000Z | train/semantic_segmentation/models/backbone/__init__.py | iva-dtis/DISIR | 0b4c6c41712ab88de982412e80510545cc17dd09 | [
"MIT"
] | 6 | 2020-02-19T11:14:15.000Z | 2022-03-12T00:16:25.000Z | train/semantic_segmentation/models/backbone/__init__.py | iva-dtis/DISIR | 0b4c6c41712ab88de982412e80510545cc17dd09 | [
"MIT"
] | 7 | 2020-04-07T20:07:52.000Z | 2022-01-26T16:10:09.000Z | from semantic_segmentation.models.backbone import resnet, xception, drn, mobilenet
def build_backbone(in_channels, backbone, output_stride, BatchNorm):
if backbone == "resnet":
return resnet.ResNet101(in_channels, output_stride, BatchNorm)
elif backbone == "xception":
return xception.AlignedXc... | 40 | 82 | 0.735 | 66 | 600 | 6.484848 | 0.424242 | 0.116822 | 0.196262 | 0.154206 | 0.273364 | 0.200935 | 0.200935 | 0 | 0 | 0 | 0 | 0.012195 | 0.18 | 600 | 14 | 83 | 42.857143 | 0.857724 | 0 | 0 | 0 | 0 | 0 | 0.043333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
016e0f859fdbc7b296289f6b236fb60d47911e03 | 330 | py | Python | offers/migrations/0011_remove_emailfii_emissao.py | ccunhafinance/sistema | a8b252845e3fe5e75ea617386763e10f39531adf | [
"MIT"
] | null | null | null | offers/migrations/0011_remove_emailfii_emissao.py | ccunhafinance/sistema | a8b252845e3fe5e75ea617386763e10f39531adf | [
"MIT"
] | null | null | null | offers/migrations/0011_remove_emailfii_emissao.py | ccunhafinance/sistema | a8b252845e3fe5e75ea617386763e10f39531adf | [
"MIT"
] | null | null | null | # Generated by Django 3.2.6 on 2022-04-20 05:28
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('offers', '0010_auto_20220331_0934'),
]
operations = [
migrations.RemoveField(
model_name='emailfii',
name='emissao',
... | 18.333333 | 47 | 0.593939 | 35 | 330 | 5.485714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133047 | 0.293939 | 330 | 17 | 48 | 19.411765 | 0.690987 | 0.136364 | 0 | 0 | 1 | 0 | 0.155477 | 0.081272 | 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 |
016e867593c9eeccf37c87a91e58f1af94b1ffa6 | 488 | py | Python | drf_fcm/migrations/0004_auto_20170320_0429.py | naviens/drf-fcm | 656741a570b2db1678bb9f79d8e14cd14db5a340 | [
"BSD-2-Clause"
] | 3 | 2017-07-10T13:56:58.000Z | 2018-04-24T16:34:28.000Z | drf_fcm/migrations/0004_auto_20170320_0429.py | naviens/drf-fcm | 656741a570b2db1678bb9f79d8e14cd14db5a340 | [
"BSD-2-Clause"
] | 1 | 2017-04-25T22:25:05.000Z | 2017-04-25T22:25:05.000Z | drf_fcm/migrations/0004_auto_20170320_0429.py | naviens/drf-fcm | 656741a570b2db1678bb9f79d8e14cd14db5a340 | [
"BSD-2-Clause"
] | 2 | 2017-07-22T10:32:54.000Z | 2018-11-05T19:12:32.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-20 04:29
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('drf_fcm', '0003_auto_20170320_0421'),
]
operations = [
migrations.AlterFiel... | 23.238095 | 87 | 0.631148 | 57 | 488 | 5.175439 | 0.824561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09863 | 0.252049 | 488 | 20 | 88 | 24.4 | 0.709589 | 0.139344 | 0 | 0 | 1 | 0 | 0.146283 | 0.055156 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
016ef2737992d47bd5a52a43daf328944692ed35 | 344 | py | Python | Tutorials/10 Days of Statistics/GeometricDistribution2.py | aibenStunner/HackerRank | de223f2b1fa95d1959deef9ce14b39baa61100ba | [
"MIT"
] | 2 | 2020-04-17T02:54:59.000Z | 2020-06-08T23:32:12.000Z | Tutorials/10 Days of Statistics/GeometricDistribution2.py | aibenStunner/HackerRank | de223f2b1fa95d1959deef9ce14b39baa61100ba | [
"MIT"
] | null | null | null | Tutorials/10 Days of Statistics/GeometricDistribution2.py | aibenStunner/HackerRank | de223f2b1fa95d1959deef9ce14b39baa61100ba | [
"MIT"
] | 1 | 2021-11-16T14:05:22.000Z | 2021-11-16T14:05:22.000Z | import math
import os
import random
import re
import sys
def gd(a, b, n):
prob = a/b
ans = 0
for i in range(1, n+1):
ans += pow(1-prob, i-1) * prob
print(round(ans, 3))
if __name__ == '__main__':
a = list(map(str, input().rstrip().split()))
a, b = float(a[0]), float(a[1])
n = int(i... | 18.105263 | 48 | 0.537791 | 63 | 344 | 2.809524 | 0.539683 | 0.045198 | 0.045198 | 0.056497 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032 | 0.273256 | 344 | 18 | 49 | 19.111111 | 0.676 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 0 | 0.375 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
01846e337329592ca3e47ef44fe89f2cac285c55 | 477 | py | Python | djangoconcepts/serializer/apps.py | mp5maker/djangoconcepts | 012354d5157fbdc0399518ba165e54a1f07459da | [
"MIT"
] | null | null | null | djangoconcepts/serializer/apps.py | mp5maker/djangoconcepts | 012354d5157fbdc0399518ba165e54a1f07459da | [
"MIT"
] | null | null | null | djangoconcepts/serializer/apps.py | mp5maker/djangoconcepts | 012354d5157fbdc0399518ba165e54a1f07459da | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
from django.db.models.signals import pre_save
class SerializerConfig(AppConfig):
name = 'serializer'
def ready(self):
from serializer.models import Hero, Villain
from serializer.signals import up... | 34.071429 | 78 | 0.756813 | 61 | 477 | 5.655738 | 0.47541 | 0.06087 | 0.086957 | 0.115942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002519 | 0.167715 | 477 | 14 | 79 | 34.071429 | 0.866499 | 0.044025 | 0 | 0 | 0 | 0 | 0.021978 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.5 | 0 | 0.8 | 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 |
0186301cbc29aba8bed86a857caa69bceff38c07 | 5,457 | py | Python | jobs/move_extract.py | jpbetz/test-infra | 8272c557733c4ff13eaca515cb61523bf0fc91cd | [
"Apache-2.0"
] | 3 | 2020-04-10T14:14:11.000Z | 2021-06-09T08:39:22.000Z | jobs/move_extract.py | jpbetz/test-infra | 8272c557733c4ff13eaca515cb61523bf0fc91cd | [
"Apache-2.0"
] | null | null | null | jobs/move_extract.py | jpbetz/test-infra | 8272c557733c4ff13eaca515cb61523bf0fc91cd | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Copyright 2017 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 39.543478 | 152 | 0.51805 | 633 | 5,457 | 4.404423 | 0.292259 | 0.021521 | 0.017934 | 0.025108 | 0.27726 | 0.219154 | 0.195839 | 0.160689 | 0.140603 | 0.140603 | 0 | 0.004195 | 0.344695 | 5,457 | 137 | 153 | 39.832117 | 0.775447 | 0.150632 | 0 | 0.254545 | 0 | 0 | 0.240449 | 0.164944 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.036364 | null | null | 0.018182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
019004bc867ea9c644e509968cc774b78fc65a1b | 437 | py | Python | aceblog/blog/migrations/0004_comment_commentimg.py | theenigmacodex/Enigmaforum | 02e5087f06c11e0fa11ca2d336beb2312fe7017a | [
"MIT"
] | 1 | 2020-08-06T15:30:07.000Z | 2020-08-06T15:30:07.000Z | aceblog/blog/migrations/0004_comment_commentimg.py | theenigmacodex/Enigmaforum | 02e5087f06c11e0fa11ca2d336beb2312fe7017a | [
"MIT"
] | null | null | null | aceblog/blog/migrations/0004_comment_commentimg.py | theenigmacodex/Enigmaforum | 02e5087f06c11e0fa11ca2d336beb2312fe7017a | [
"MIT"
] | null | null | null | # Generated by Django 3.0.4 on 2020-06-09 15:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0003_auto_20200609_2049'),
]
operations = [
migrations.AddField(
model_name='comment',
name='commentimg',
... | 23 | 101 | 0.615561 | 48 | 437 | 5.458333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095975 | 0.26087 | 437 | 18 | 102 | 24.277778 | 0.71517 | 0.102975 | 0 | 0 | 1 | 0 | 0.169231 | 0.058974 | 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 |
01912c15918a66d56135acb35ff448bb648799e1 | 1,413 | py | Python | examples/txrospy_listener.py | esteve/txrospy | 70a42f551f2ecb280ca83a7885a52e2836e6c1d1 | [
"Apache-2.0"
] | 6 | 2015-02-15T07:57:50.000Z | 2019-05-31T23:37:39.000Z | examples/txrospy_listener.py | esteve/txrospy | 70a42f551f2ecb280ca83a7885a52e2836e6c1d1 | [
"Apache-2.0"
] | 1 | 2016-11-21T05:29:33.000Z | 2016-11-21T05:29:33.000Z | examples/txrospy_listener.py | esteve/txrospy | 70a42f551f2ecb280ca83a7885a52e2836e6c1d1 | [
"Apache-2.0"
] | 1 | 2019-06-29T06:42:10.000Z | 2019-06-29T06:42:10.000Z | #!/usr/bin/env python
import os
import time
from twisted.internet import defer
from twisted.application import service, internet
from twisted.web import server
from std_msgs.msg import String
from txrospy import protocol
# Run this a twistd plugin
# E.g. twistd -ny txrospy_listener
ros_service = 'add_two_ints'
ro... | 24.789474 | 74 | 0.740269 | 181 | 1,413 | 5.618785 | 0.491713 | 0.041298 | 0.029499 | 0.035398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014226 | 0.154282 | 1,413 | 56 | 75 | 25.232143 | 0.83682 | 0.055202 | 0 | 0 | 0 | 0 | 0.107357 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.179487 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
01912ed6c0eb0f3e4d42e90b2b07ac71dd81ce77 | 1,104 | py | Python | Lab4/sigmoidGradient.py | A2Zntu/ML_HW | 00db8a45ba38fc864b71c31b0255488c95880c4c | [
"MIT"
] | null | null | null | Lab4/sigmoidGradient.py | A2Zntu/ML_HW | 00db8a45ba38fc864b71c31b0255488c95880c4c | [
"MIT"
] | null | null | null | Lab4/sigmoidGradient.py | A2Zntu/ML_HW | 00db8a45ba38fc864b71c31b0255488c95880c4c | [
"MIT"
] | null | null | null | from sigmoid import sigmoid
import numpy as np
def sigmoidGradient(z):
#SIGMOIDGRADIENT returns the gradient of the sigmoid function
#evaluated at z
# g = SIGMOIDGRADIENT(z) computes the gradient of the sigmoid function
# evaluated at z. This should work regardless if z is a matrix or a
# vector. In particular,... | 39.428571 | 100 | 0.592391 | 154 | 1,104 | 4.246753 | 0.38961 | 0.073395 | 0.059633 | 0.073395 | 0.327217 | 0.327217 | 0.327217 | 0.327217 | 0.262997 | 0.131498 | 0 | 0.008168 | 0.223732 | 1,104 | 28 | 101 | 39.428571 | 0.754959 | 0.581522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6d78b3b9b49fd18867334cba9eb99401053a9fc6 | 2,482 | py | Python | backend/apps/users/tests/test_views.py | rstormsf/smartz | bf0bedd13428fe750a8b98e821c9ee60c5cab248 | [
"Apache-2.0"
] | null | null | null | backend/apps/users/tests/test_views.py | rstormsf/smartz | bf0bedd13428fe750a8b98e821c9ee60c5cab248 | [
"Apache-2.0"
] | null | null | null | backend/apps/users/tests/test_views.py | rstormsf/smartz | bf0bedd13428fe750a8b98e821c9ee60c5cab248 | [
"Apache-2.0"
] | 1 | 2019-02-25T09:24:17.000Z | 2019-02-25T09:24:17.000Z | import coincurve
from django.conf import settings
from django_webtest import WebTest
from eth_utils import encode_hex
from ethereum.utils import ecsign, sha3, normalize_key
from utils.ethereum import sign_as_hex
class LoginStartTests(WebTest):
def test_incorrect_blockchain(self):
response = self.app.post... | 33.093333 | 127 | 0.651491 | 276 | 2,482 | 5.65942 | 0.34058 | 0.051857 | 0.066581 | 0.043534 | 0.265045 | 0.184379 | 0.12548 | 0.06274 | 0.06274 | 0.06274 | 0 | 0.045983 | 0.237712 | 2,482 | 75 | 128 | 33.093333 | 0.779598 | 0.007655 | 0 | 0 | 0 | 0 | 0.261576 | 0.11251 | 0 | 0 | 0.017059 | 0.013333 | 0.25 | 1 | 0.057692 | false | 0.019231 | 0.115385 | 0 | 0.288462 | 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 |
6d812186500efa457b48ee26ca22389b9080eb10 | 723 | py | Python | PC2/file_handling.py | ReneCapella/pythonTinkering | 93a5080e8ef6f67fe8ca0b67eb1fb27370beb26a | [
"MIT"
] | null | null | null | PC2/file_handling.py | ReneCapella/pythonTinkering | 93a5080e8ef6f67fe8ca0b67eb1fb27370beb26a | [
"MIT"
] | null | null | null | PC2/file_handling.py | ReneCapella/pythonTinkering | 93a5080e8ef6f67fe8ca0b67eb1fb27370beb26a | [
"MIT"
] | null | null | null |
# Author: René Capella
# Version: 01/11/2022
#
# This file contains 4 programs: create, write to, append to, and delete a File
# Also demostrated is file handing in other directories
# To properly use this file, please comment out sections as needed
# create a file program
open("write_to_me/whoohoo.txt", "x")
#wri... | 25.821429 | 79 | 0.73444 | 120 | 723 | 4.291667 | 0.425 | 0.108738 | 0.104854 | 0.186408 | 0.328155 | 0.291262 | 0.291262 | 0.139806 | 0.139806 | 0.139806 | 0 | 0.014469 | 0.139696 | 723 | 27 | 80 | 26.777778 | 0.813505 | 0.456432 | 0 | 0.3 | 0 | 0 | 0.437995 | 0.364116 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 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 |
6d8b17ade0f257a73e9784f1da3b462ab573da03 | 229 | py | Python | examples/blocks/get_block_reward.py | adamzhang1987/py-etherscan-api | 9a3accfa455eb1d9d82ac7be41012948a58f90e3 | [
"MIT"
] | 458 | 2016-07-21T19:49:30.000Z | 2022-03-23T18:01:19.000Z | examples/blocks/get_block_reward.py | adamzhang1987/py-etherscan-api | 9a3accfa455eb1d9d82ac7be41012948a58f90e3 | [
"MIT"
] | 71 | 2016-06-17T19:34:18.000Z | 2022-03-06T20:13:37.000Z | examples/blocks/get_block_reward.py | adamzhang1987/py-etherscan-api | 9a3accfa455eb1d9d82ac7be41012948a58f90e3 | [
"MIT"
] | 269 | 2016-06-20T09:51:17.000Z | 2022-03-17T19:19:10.000Z | from etherscan.blocks import Blocks
import json
with open('../../api_key.json', mode='r') as key_file:
key = json.loads(key_file.read())['key']
api = Blocks(api_key=key)
reward = api.get_block_reward(2165403)
print(reward)
| 22.9 | 54 | 0.716157 | 37 | 229 | 4.27027 | 0.540541 | 0.151899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034653 | 0.117904 | 229 | 9 | 55 | 25.444444 | 0.747525 | 0 | 0 | 0 | 0 | 0 | 0.09607 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6da1551700ec3978c7588b53662fc2d1023f16ed | 19,438 | py | Python | codegen/mc.py | yoshou/ratchetwrench | 40947b04b6747be0bddb3783705eab2f60bb212e | [
"MIT"
] | null | null | null | codegen/mc.py | yoshou/ratchetwrench | 40947b04b6747be0bddb3783705eab2f60bb212e | [
"MIT"
] | null | null | null | codegen/mc.py | yoshou/ratchetwrench | 40947b04b6747be0bddb3783705eab2f60bb212e | [
"MIT"
] | null | null | null | from enum import Enum, auto
class MCFragment:
def __init__(self):
self.section = None
class MCDataFragment(MCFragment):
def __init__(self):
super().__init__()
self.contents = bytearray()
self.fixups = []
class MCRelaxableFragment(MCFragment):
def __init__(self, inst):
... | 27.768571 | 109 | 0.626711 | 2,330 | 19,438 | 5.03133 | 0.169528 | 0.02525 | 0.027211 | 0.006824 | 0.25676 | 0.136399 | 0.088885 | 0.058859 | 0.058859 | 0.046746 | 0 | 0.013834 | 0.274823 | 19,438 | 699 | 110 | 27.808298 | 0.817821 | 0.174658 | 0 | 0.181118 | 0 | 0 | 0.000628 | 0 | 0 | 0 | 0.001884 | 0 | 0.009634 | 1 | 0.16185 | false | 0.013487 | 0.001927 | 0.038536 | 0.649326 | 0.007707 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6da91aa2a977bfedd340d8b75ebbc045a015fe11 | 1,503 | py | Python | data-processing/entities/symbols/models.py | jusheen/scholar-reader | d1d87c0e2ab1cb411b9a9b80e3e2e7e256b9c9c0 | [
"Apache-2.0"
] | null | null | null | data-processing/entities/symbols/models.py | jusheen/scholar-reader | d1d87c0e2ab1cb411b9a9b80e3e2e7e256b9c9c0 | [
"Apache-2.0"
] | null | null | null | data-processing/entities/symbols/models.py | jusheen/scholar-reader | d1d87c0e2ab1cb411b9a9b80e3e2e7e256b9c9c0 | [
"Apache-2.0"
] | null | null | null | from peewee import CompositeKey, ForeignKeyField, IntegerField, TextField
from common.models import OutputModel, Paper
from entities.sentences.upload import Sentence
class MathMl(OutputModel):
mathml = TextField(unique=True, index=True)
class MathMlMatch(OutputModel):
" A search result for a MathML equatio... | 30.06 | 94 | 0.724551 | 179 | 1,503 | 6.022346 | 0.418994 | 0.06679 | 0.125232 | 0.080705 | 0.357143 | 0.237477 | 0.237477 | 0.237477 | 0.152134 | 0.152134 | 0 | 0 | 0.184298 | 1,503 | 49 | 95 | 30.673469 | 0.879282 | 0.240186 | 0 | 0.25 | 0 | 0 | 0.121633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.875 | 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 |
6db78be1fdd6035ec44112c5fb22a6a3c19e9cc4 | 6,487 | py | Python | pathrec.py | WenqinSHAO/path_change_alert | 7f646cca04cacd4eb84d8b177854ebb935f21cbe | [
"MIT"
] | null | null | null | pathrec.py | WenqinSHAO/path_change_alert | 7f646cca04cacd4eb84d8b177854ebb935f21cbe | [
"MIT"
] | null | null | null | pathrec.py | WenqinSHAO/path_change_alert | 7f646cca04cacd4eb84d8b177854ebb935f21cbe | [
"MIT"
] | null | null | null | from ripe.atlas.cousteau import AtlasResultsRequest
from ripe.atlas.sagan import TracerouteResult
from multiprocessing import Process
from pathpattern import PathPattern
from util import sagan_ip_path
from copy import deepcopy
from collections import deque
import Queue
import time
from util import learn_pattern, SUBLEN... | 44.431507 | 119 | 0.602744 | 788 | 6,487 | 4.821066 | 0.265228 | 0.052645 | 0.066333 | 0.025007 | 0.195051 | 0.152935 | 0.125823 | 0.125823 | 0.06686 | 0.06686 | 0 | 0.004382 | 0.331586 | 6,487 | 145 | 120 | 44.737931 | 0.871771 | 0.116695 | 0 | 0.170732 | 0 | 0 | 0.012428 | 0 | 0 | 0 | 0 | 0.006897 | 0 | 0 | null | null | 0 | 0.121951 | null | null | 0.012195 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6db9b799cd24f297e3dfee59e199148322b9869a | 2,325 | py | Python | 1-Introduction/basic_operations.py | haigh1510/TensorFlow2.0-Examples | f99fcef22caa2758b5eefce10ee789384345506d | [
"MIT"
] | 1,775 | 2019-03-10T02:47:42.000Z | 2022-03-30T07:22:08.000Z | 1-Introduction/basic_operations.py | haigh1510/TensorFlow2.0-Examples | f99fcef22caa2758b5eefce10ee789384345506d | [
"MIT"
] | 128 | 2019-05-07T05:44:10.000Z | 2022-03-22T11:07:30.000Z | 1-Introduction/basic_operations.py | haigh1510/TensorFlow2.0-Examples | f99fcef22caa2758b5eefce10ee789384345506d | [
"MIT"
] | 752 | 2019-03-20T14:14:46.000Z | 2022-03-22T08:38:36.000Z | #! /usr/bin/env python
# coding=utf-8
#================================================================
# Copyright (C) 2019 * Ltd. All rights reserved.
#
# Editor : VIM
# File name : basic_operations.py
# Author : YunYang1994
# Created date: 2019-03-08 14:32:57
# Description :
#
#==============... | 27.678571 | 113 | 0.546667 | 283 | 2,325 | 4.477032 | 0.399293 | 0.01105 | 0.016575 | 0.012628 | 0.093133 | 0.061563 | 0.061563 | 0.037885 | 0 | 0 | 0 | 0.03114 | 0.143656 | 2,325 | 83 | 114 | 28.012048 | 0.605224 | 0.60043 | 0 | 0.074074 | 0 | 0 | 0.216895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.037037 | 0.481481 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6dba0131dfe7546276e41dccf98b5a8acd1a147c | 731 | py | Python | code/feature.py | 2lu3/ai-watch-data | 04bf9e880ca22edaadc1b69c4b1a9aa74f78714e | [
"MIT"
] | null | null | null | code/feature.py | 2lu3/ai-watch-data | 04bf9e880ca22edaadc1b69c4b1a9aa74f78714e | [
"MIT"
] | null | null | null | code/feature.py | 2lu3/ai-watch-data | 04bf9e880ca22edaadc1b69c4b1a9aa74f78714e | [
"MIT"
] | null | null | null | from dataset import Dataset
from util import Util
class Feature:
def __init__(self, use_features):
self.dataset = Dataset(use_features)
years = [y for y in range(2008, 2020)]
self.data = self.dataset.get_data(years, "tokyo")
def get_dataset(self):
return self.data.c... | 31.782609 | 73 | 0.593707 | 96 | 731 | 4.395833 | 0.385417 | 0.170616 | 0.170616 | 0.061611 | 0.156398 | 0.085308 | 0 | 0 | 0 | 0 | 0 | 0.021359 | 0.295486 | 731 | 22 | 74 | 33.227273 | 0.798058 | 0 | 0 | 0 | 0 | 0 | 0.007052 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.117647 | 0.058824 | 0.470588 | 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 |
6dcb3449cee027247a7b5c86f64ce94386214dff | 5,823 | py | Python | bot.py | miikama/telegram-bot | 7fffa7407b0966d7efe71816ac62c100e3d31933 | [
"MIT"
] | null | null | null | bot.py | miikama/telegram-bot | 7fffa7407b0966d7efe71816ac62c100e3d31933 | [
"MIT"
] | null | null | null | bot.py | miikama/telegram-bot | 7fffa7407b0966d7efe71816ac62c100e3d31933 | [
"MIT"
] | null | null | null | import urllib
import urllib2
import pprint
import json
import datetime
import time
from sets import Set
import logging
from calendar_bot import CalendarClient
class Bot():
def __init__(self):
self.error_counter = 0
self.botid = '268119392:AAErkOPlFBVJIG7Yc_L2m-IzRA0f67tz7qg'
#self.tanaan... | 32.898305 | 170 | 0.660828 | 762 | 5,823 | 4.919948 | 0.288714 | 0.025607 | 0.029875 | 0.018138 | 0.249133 | 0.190984 | 0.190984 | 0.172846 | 0.121099 | 0.121099 | 0 | 0.023036 | 0.217242 | 5,823 | 176 | 171 | 33.085227 | 0.799473 | 0.156449 | 0 | 0.278261 | 0 | 0 | 0.192627 | 0.045157 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.078261 | null | null | 0.069565 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6dd826aa5e39cfd280b4e72563ad943af390f35d | 3,339 | py | Python | Jumpscale/clients/postgresql/PostgresqlFactory.py | threefoldtech/JumpscaleX | 5fb073a82aeb0e66fc7d9660c45a1e31bc094bfa | [
"Apache-2.0"
] | 2 | 2019-05-09T07:21:25.000Z | 2019-08-05T06:37:53.000Z | Jumpscale/clients/postgresql/PostgresqlFactory.py | threefoldtech/JumpscaleX | 5fb073a82aeb0e66fc7d9660c45a1e31bc094bfa | [
"Apache-2.0"
] | 664 | 2018-12-19T12:43:44.000Z | 2019-08-23T04:24:42.000Z | Jumpscale/clients/postgresql/PostgresqlFactory.py | threefoldtech/jumpscale10 | 5fb073a82aeb0e66fc7d9660c45a1e31bc094bfa | [
"Apache-2.0"
] | 7 | 2019-05-03T07:14:37.000Z | 2019-08-05T12:36:52.000Z | from Jumpscale import j
import psycopg2
from .PostgresqlClient import PostgresClient
# import calendar
# from htmllib import HTMLParser
# from formatter import AbstractFormatter, DumbWriter
# from io import StringIO
# import lib.html
JSConfigs = j.application.JSBaseConfigsClass
class PostgresqlFactory(JSConfigs):
... | 33.059406 | 114 | 0.590296 | 389 | 3,339 | 5.020566 | 0.323907 | 0.040963 | 0.030722 | 0.03533 | 0.346134 | 0.308244 | 0.308244 | 0.282642 | 0.282642 | 0.240655 | 0 | 0.011407 | 0.291105 | 3,339 | 100 | 115 | 33.39 | 0.813688 | 0.296496 | 0 | 0 | 0 | 0.019608 | 0.162944 | 0.014213 | 0 | 0 | 0 | 0 | 0.039216 | 1 | 0.117647 | false | 0.117647 | 0.078431 | 0 | 0.254902 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6de29520ec6f33f20ff1b5302b7a69ca16a768a5 | 440 | py | Python | lejian/config/__init__.py | PuZheng/LEJAIN-backend | 1647b63cb409842566f3d2cd9771f8b8856c1a03 | [
"MIT"
] | null | null | null | lejian/config/__init__.py | PuZheng/LEJAIN-backend | 1647b63cb409842566f3d2cd9771f8b8856c1a03 | [
"MIT"
] | 13 | 2015-10-23T04:43:51.000Z | 2015-12-19T14:30:33.000Z | lejian/config/__init__.py | PuZheng/lejian-backend | 1647b63cb409842566f3d2cd9771f8b8856c1a03 | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
from flask import Blueprint
config_ws = Blueprint("config_ws", __name__, static_folder="static",
template_folder="templates")
config = Blueprint("config", __name__, static_folder="static",
template_folder="templates")
from genuine_ap.config.views impo... | 31.428571 | 68 | 0.729545 | 53 | 440 | 5.603774 | 0.396226 | 0.121212 | 0.114478 | 0.148148 | 0.30303 | 0.30303 | 0.30303 | 0 | 0 | 0 | 0 | 0.002747 | 0.172727 | 440 | 13 | 69 | 33.846154 | 0.813187 | 0.047727 | 0 | 0.25 | 0 | 0 | 0.107914 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0.375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6de31e2697996007a1901e0b72acfbe488fafea3 | 3,951 | py | Python | text-adventure/main.py | pencemk/02-text-adventure | b276e4534cde4f4c05777f1ccd1d13b4ab617f5a | [
"MIT"
] | null | null | null | text-adventure/main.py | pencemk/02-text-adventure | b276e4534cde4f4c05777f1ccd1d13b4ab617f5a | [
"MIT"
] | null | null | null | text-adventure/main.py | pencemk/02-text-adventure | b276e4534cde4f4c05777f1ccd1d13b4ab617f5a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys, os, json
# Check to make sure we are running the correct version of Python
assert sys.version_info >= (3,7), "This script requires at least Python 3.7"
# The game and item description files (in the same folder as this script)
game_file = 'zork.json'
item_file = 'items.json'
# Load ... | 30.160305 | 137 | 0.510504 | 443 | 3,951 | 4.492099 | 0.390519 | 0.036181 | 0.049246 | 0.047739 | 0.11608 | 0.082412 | 0.030151 | 0 | 0 | 0 | 0 | 0.002294 | 0.338142 | 3,951 | 130 | 138 | 30.392308 | 0.7587 | 0 | 0 | 0.516667 | 0 | 0.025 | 0.45043 | 0 | 0 | 0 | 0 | 0 | 0.008333 | 0 | null | null | 0 | 0.008333 | null | null | 0.008333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6deada591cb7b270a3d994cba3347835d373eece | 17,802 | py | Python | pycls/core/net.py | ZQSIAT/my_pycls | 6101c11a7f7f870d6c54de6ce5f4e51b246ed575 | [
"MIT"
] | null | null | null | pycls/core/net.py | ZQSIAT/my_pycls | 6101c11a7f7f870d6c54de6ce5f4e51b246ed575 | [
"MIT"
] | null | null | null | pycls/core/net.py | ZQSIAT/my_pycls | 6101c11a7f7f870d6c54de6ce5f4e51b246ed575 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# from __future__ import print_function, absolute_import
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""Functions for manipulating networks."""
import itertools
f... | 36.780992 | 132 | 0.630772 | 2,311 | 17,802 | 4.726958 | 0.167893 | 0.051172 | 0.046961 | 0.047602 | 0.37468 | 0.348865 | 0.314445 | 0.301446 | 0.270688 | 0.248078 | 0 | 0.016223 | 0.22784 | 17,802 | 484 | 133 | 36.780992 | 0.778481 | 0.172565 | 0 | 0.376947 | 0 | 0 | 0.060986 | 0 | 0 | 0 | 0 | 0.002066 | 0.006231 | 1 | 0.143302 | false | 0.090343 | 0.043614 | 0 | 0.330218 | 0.034268 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6dedbce50449481cd4954d3b9df950d7bf938dc4 | 1,859 | py | Python | python/tests/artm/test_regularizer_topic_selection.py | MelLain/bigartm | 79126b68500bd5b378d6d6168f1b68eb03971bcb | [
"BSD-3-Clause"
] | 638 | 2015-02-03T22:17:00.000Z | 2022-03-23T18:47:50.000Z | python/tests/artm/test_regularizer_topic_selection.py | MelLain/bigartm | 79126b68500bd5b378d6d6168f1b68eb03971bcb | [
"BSD-3-Clause"
] | 566 | 2015-01-01T21:49:00.000Z | 2022-02-14T09:14:35.000Z | python/tests/artm/test_regularizer_topic_selection.py | bt2901/bigartm | 92c9d5746c122d0124bab700469d8a2a7f58ff40 | [
"BSD-3-Clause"
] | 148 | 2015-01-06T15:30:07.000Z | 2022-02-12T18:40:17.000Z | # Copyright 2017, Additive Regularization of Topic Models.
import shutil
import glob
import tempfile
import os
import pytest
from six.moves import range
import artm
def test_func():
topic_selection_tau = 0.5
num_collection_passes = 3
num_document_passes = 10
num_topics = 15
data_path = os.envi... | 37.18 | 115 | 0.688004 | 218 | 1,859 | 5.633028 | 0.495413 | 0.042345 | 0.061889 | 0.029316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045646 | 0.233997 | 1,859 | 49 | 116 | 37.938776 | 0.816713 | 0.108661 | 0 | 0 | 0 | 0 | 0.056261 | 0.012704 | 0 | 0 | 0 | 0 | 0.060606 | 1 | 0.030303 | false | 0.151515 | 0.212121 | 0 | 0.242424 | 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 |
6deefe26f9592d1fa549aac0e163a61b906fc10e | 1,035 | py | Python | tests/test_integration_weights_tools.py | TheoLaudatQM/py-qua-tools | 60c005c651148bafee8f437ce1be69d2340a265b | [
"BSD-3-Clause"
] | null | null | null | tests/test_integration_weights_tools.py | TheoLaudatQM/py-qua-tools | 60c005c651148bafee8f437ce1be69d2340a265b | [
"BSD-3-Clause"
] | null | null | null | tests/test_integration_weights_tools.py | TheoLaudatQM/py-qua-tools | 60c005c651148bafee8f437ce1be69d2340a265b | [
"BSD-3-Clause"
] | null | null | null | import os
from pathlib import Path
import numpy as np
from qualang_tools.config import convert_integration_weights
def abs_path_to(rel_path: str) -> str:
source_path = Path(__file__).resolve()
source_dir = source_path.parent
return os.path.join(source_dir, rel_path)
def test_validity_arbitrary_integra... | 34.5 | 86 | 0.716908 | 157 | 1,035 | 4.420382 | 0.33758 | 0.149856 | 0.144092 | 0.178674 | 0.48415 | 0.48415 | 0.48415 | 0.48415 | 0.48415 | 0.48415 | 0 | 0.023283 | 0.170048 | 1,035 | 29 | 87 | 35.689655 | 0.784633 | 0 | 0 | 0.190476 | 0 | 0 | 0.023188 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.190476 | 0 | 0.380952 | 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 |
6def6b2b489ca90ffc27b905c663ce25a7fbac48 | 7,978 | py | Python | testapp/wagtail_wordpress_importer/test/import_delete_commands_tests.py | nickmoreton/wagtail_wordpress_importer | fbe6b60ae624edac3f42a62ce30af4a0c548b4ed | [
"MIT"
] | null | null | null | testapp/wagtail_wordpress_importer/test/import_delete_commands_tests.py | nickmoreton/wagtail_wordpress_importer | fbe6b60ae624edac3f42a62ce30af4a0c548b4ed | [
"MIT"
] | null | null | null | testapp/wagtail_wordpress_importer/test/import_delete_commands_tests.py | nickmoreton/wagtail_wordpress_importer | fbe6b60ae624edac3f42a62ce30af4a0c548b4ed | [
"MIT"
] | null | null | null | import json
import os
from django.conf import settings
from django.core.management import call_command
from django.db.models import base
from django.test import TestCase
from wagtail_wordpress_importer.management.commands import (
import_atlas_case_studies, import_blogs, import_categories,
import_documents, im... | 37.632075 | 85 | 0.691652 | 931 | 7,978 | 5.625134 | 0.108486 | 0.02406 | 0.061104 | 0.103112 | 0.448157 | 0.336261 | 0.325186 | 0.110178 | 0.110178 | 0.079626 | 0 | 0.001596 | 0.214715 | 7,978 | 212 | 86 | 37.632075 | 0.834318 | 0.078591 | 0 | 0.161074 | 0 | 0 | 0.061597 | 0.023712 | 0 | 0 | 0 | 0 | 0.134228 | 1 | 0.080537 | false | 0 | 0.33557 | 0 | 0.422819 | 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 |
6df70b29be3f3ea806cd45af4e0cc0039aee56f3 | 5,094 | py | Python | tools/grit/grit/format/chrome_messages_json_unittest.py | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | tools/grit/grit/format/chrome_messages_json_unittest.py | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 250 | 2018-02-02T23:16:57.000Z | 2022-03-21T06:09:53.000Z | tools/grit/grit/format/chrome_messages_json_unittest.py | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | #!/usr/bin/env python3
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Unittest for chrome_messages_json.py.
"""
from __future__ import print_function
import json
import os
import sys
if __name__ ... | 26.670157 | 116 | 0.592265 | 599 | 5,094 | 4.8798 | 0.293823 | 0.048922 | 0.047896 | 0.057475 | 0.396853 | 0.332535 | 0.293534 | 0.293534 | 0.293534 | 0.225111 | 0 | 0.020508 | 0.234197 | 5,094 | 190 | 117 | 26.810526 | 0.728787 | 0.06753 | 0 | 0.335443 | 0 | 0.025316 | 0.607218 | 0.210637 | 0 | 0 | 0 | 0 | 0.025316 | 1 | 0.050633 | false | 0 | 0.056962 | 0.018987 | 0.14557 | 0.006329 | 0 | 0 | 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 |
6dfae78f0470b1dbd0c0718cabf094614cdd23ea | 393 | py | Python | Arrays/largest_element.py | lakshyarawal/pythonPractice | 4b400342198a8270c5ac0c6306afb555f927c6c1 | [
"MIT"
] | null | null | null | Arrays/largest_element.py | lakshyarawal/pythonPractice | 4b400342198a8270c5ac0c6306afb555f927c6c1 | [
"MIT"
] | null | null | null | Arrays/largest_element.py | lakshyarawal/pythonPractice | 4b400342198a8270c5ac0c6306afb555f927c6c1 | [
"MIT"
] | null | null | null | """ Largest Element in Array: Given an array find the largest element in the array """
"""Solution: """
def largest_element(a) -> int:
le = 0
for i in a:
if i > le:
le = i
return le
def main():
arr_input = [40, 100, 8, 50]
a = largest_element(arr_input)
print(a)
# Usi... | 16.375 | 86 | 0.580153 | 57 | 393 | 3.719298 | 0.526316 | 0.264151 | 0.150943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032727 | 0.300254 | 393 | 23 | 87 | 17.086957 | 0.738182 | 0.295165 | 0 | 0 | 0 | 0 | 0.031746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.25 | 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 |
a305aabdb6ba8eea24709f27e81b5d1aa6d9be99 | 402 | py | Python | lidarData.py | jlefkoff/LidarSpeedometer | b8d6adcd46bb819ae909dc739675785609238d5b | [
"MIT"
] | null | null | null | lidarData.py | jlefkoff/LidarSpeedometer | b8d6adcd46bb819ae909dc739675785609238d5b | [
"MIT"
] | null | null | null | lidarData.py | jlefkoff/LidarSpeedometer | b8d6adcd46bb819ae909dc739675785609238d5b | [
"MIT"
] | null | null | null | from lidar_lite import Lidar_Lite
from firebase import firebase
lidar = Lidar_Lite()
connected = lidar.connect(1)
tempRaw = lidar.getVelocity()
tempAbs = abs(tempRaw)
dist = lidar.getDistance()
if tempAbs > 99:
tempAbs %= 10
firebase= firebase.FirebaseApplication('https://lidarspeedometer.firebaseio.com/')
fi... | 26.8 | 82 | 0.746269 | 49 | 402 | 6.061224 | 0.571429 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014124 | 0.119403 | 402 | 14 | 83 | 28.714286 | 0.824859 | 0 | 0 | 0 | 0 | 0 | 0.151741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
096b6eba35094529091807585759725b56240781 | 500 | py | Python | apps/links/migrations/0010_resourcelink_related_locked.py | iamjdcollins/districtwebsite | 89e2aea47ca3d221665bc23586a4374421be5800 | [
"MIT"
] | null | null | null | apps/links/migrations/0010_resourcelink_related_locked.py | iamjdcollins/districtwebsite | 89e2aea47ca3d221665bc23586a4374421be5800 | [
"MIT"
] | null | null | null | apps/links/migrations/0010_resourcelink_related_locked.py | iamjdcollins/districtwebsite | 89e2aea47ca3d221665bc23586a4374421be5800 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-06-06 20:43
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('links', '0009_auto_20171214_1602'),
]
operations = [
migrations.AddField(
... | 23.809524 | 89 | 0.636 | 58 | 500 | 5.275862 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095491 | 0.246 | 500 | 20 | 90 | 25 | 0.71618 | 0.136 | 0 | 0 | 1 | 0 | 0.125874 | 0.053613 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0979f4a3b8a03ba19844f64da800864ed6252134 | 451 | py | Python | joplin/api/decorators.py | cityofaustin/joplin | 01424e46993e9b1c8e57391d6b7d9448f31d596b | [
"MIT"
] | 15 | 2018-09-27T07:36:30.000Z | 2021-08-03T16:01:21.000Z | joplin/api/decorators.py | cityofaustin/joplin | 01424e46993e9b1c8e57391d6b7d9448f31d596b | [
"MIT"
] | 183 | 2017-11-16T23:30:47.000Z | 2020-12-18T21:43:36.000Z | joplin/api/decorators.py | cityofaustin/joplin | 01424e46993e9b1c8e57391d6b7d9448f31d596b | [
"MIT"
] | 12 | 2017-12-12T22:48:05.000Z | 2021-03-01T18:01:24.000Z | from functools import wraps
from graphql_jwt.utils import get_credentials
from graphql_jwt.shortcuts import get_user_by_token
def jwt_token_decorator(view_func):
@wraps(view_func)
def wrapped_view(request, *args, **kwargs):
token = get_credentials(request, **kwargs)
if token is not None:
... | 32.214286 | 60 | 0.727273 | 62 | 451 | 5.016129 | 0.419355 | 0.07717 | 0.090032 | 0.090032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195122 | 451 | 13 | 61 | 34.692308 | 0.856749 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
097c99a12d147d9ec236b0de5b45125c20ae4f3e | 24,919 | py | Python | kivymd/icon_definitions.py | kivymd/KivyMD-archive2015 | 36103c5642f79f92d26209800c9eaa7e27c67b11 | [
"MIT"
] | 1 | 2020-12-06T14:14:05.000Z | 2020-12-06T14:14:05.000Z | kivymd/icon_definitions.py | kivymd/KivyMD-archive2015 | 36103c5642f79f92d26209800c9eaa7e27c67b11 | [
"MIT"
] | null | null | null | kivymd/icon_definitions.py | kivymd/KivyMD-archive2015 | 36103c5642f79f92d26209800c9eaa7e27c67b11 | [
"MIT"
] | 1 | 2022-01-23T15:20:39.000Z | 2022-01-23T15:20:39.000Z | md_icons = {
'md-3d-rotation':
u"\uf000",
'md-accessibility':
u"\uf001",
'md-account-balance':
u"\uf002",
'md-account-balance-wallet':
u"\uf003",
'md-account-box':
u"\uf004",
'md-account-child':
u"\uf005",
'md-account-circle':
u"\uf006",
'md-add-shopping-cart':
u"\uf007",
'md-alarm':
... | 11.149441 | 50 | 0.553513 | 3,681 | 24,919 | 3.746808 | 0.368106 | 0.014719 | 0.015081 | 0.009063 | 0.012689 | 0.012689 | 0 | 0 | 0 | 0 | 0 | 0.086597 | 0.179301 | 24,919 | 2,234 | 51 | 11.154432 | 0.587795 | 0 | 0 | 0 | 0 | 0 | 0.61126 | 0.084995 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.000671 | 0 | 0.000671 | 0.001342 | 0 | 0 | 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 |
098c68aea27a6cc8de008302f1c62c7016b8d0f1 | 154 | py | Python | python/prob145.py | RitamDey/My-Simple-Programs | 147b455a6a40c371ec894ce979e8a61d242e03bd | [
"Unlicense"
] | 2 | 2016-10-14T16:58:05.000Z | 2017-05-04T04:59:18.000Z | python/prob145.py | GreenJoey/My-Simple-Programs | 147b455a6a40c371ec894ce979e8a61d242e03bd | [
"Unlicense"
] | null | null | null | python/prob145.py | GreenJoey/My-Simple-Programs | 147b455a6a40c371ec894ce979e8a61d242e03bd | [
"Unlicense"
] | null | null | null | from mylib import rev
case=int(input())
for a in range(case):
c=0
test=int(input())
for b in range(1,test+1):
if (b+rev(b))!=0:
c+=1
print(c)
| 11.846154 | 26 | 0.597403 | 33 | 154 | 2.787879 | 0.545455 | 0.173913 | 0.23913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04065 | 0.201299 | 154 | 12 | 27 | 12.833333 | 0.707317 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.111111 | 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 |
099379226cbe7b9f78eaed95585325237194aef2 | 2,119 | py | Python | backend/course/views.py | thangplum/nova-cs322 | 50ff549ff4d6927127998217f0bfb77980db3bc8 | [
"MIT"
] | null | null | null | backend/course/views.py | thangplum/nova-cs322 | 50ff549ff4d6927127998217f0bfb77980db3bc8 | [
"MIT"
] | null | null | null | backend/course/views.py | thangplum/nova-cs322 | 50ff549ff4d6927127998217f0bfb77980db3bc8 | [
"MIT"
] | null | null | null | from rest_framework import viewsets, status
from rest_framework.response import Response
from django.shortcuts import get_object_or_404
from .serializers import courseSerializer, courseSerializer2
from .models import course
class CourseViewSet(viewsets.ViewSet):
def list(self, request):
courses = course.o... | 46.065217 | 133 | 0.689004 | 247 | 2,119 | 5.765182 | 0.251012 | 0.084972 | 0.078652 | 0.091292 | 0.597612 | 0.587781 | 0.566713 | 0.566713 | 0.503511 | 0.456461 | 0 | 0.019382 | 0.220859 | 2,119 | 45 | 134 | 47.088889 | 0.843125 | 0 | 0 | 0.358974 | 0 | 0 | 0.003775 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128205 | false | 0 | 0.128205 | 0 | 0.512821 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0994a9a32493a7c761c826b525cfa95edac6fba7 | 1,509 | py | Python | 2019 PCTF/Splaid Birch/solve.py | mathboy7/CTF | e279bf91ad6b22fc41087571c5fba9501832ab80 | [
"Apache-2.0"
] | 46 | 2017-11-07T05:30:26.000Z | 2021-11-24T09:33:41.000Z | 2019 PCTF/Splaid Birch/solve.py | mathboy7/CTF | e279bf91ad6b22fc41087571c5fba9501832ab80 | [
"Apache-2.0"
] | null | null | null | 2019 PCTF/Splaid Birch/solve.py | mathboy7/CTF | e279bf91ad6b22fc41087571c5fba9501832ab80 | [
"Apache-2.0"
] | 3 | 2017-11-14T14:45:28.000Z | 2020-08-30T07:59:04.000Z | from pwn import *
context.arch="amd64"
elf = ELF("./splaid-birch")
libc = ELF("./libc.so.6")
#p = process("./splaid-birch")
p = remote("splaid-birch.pwni.ng", 17579)
def sp_add(a, b):
p.sendline("5")
p.sendline(str(a))
p.sendline(str(b))
def delete(a):
p.sendline("1")
p.sendline(str(a))
for i i... | 17.546512 | 128 | 0.640822 | 245 | 1,509 | 3.889796 | 0.391837 | 0.094439 | 0.037775 | 0.034627 | 0.09234 | 0.052466 | 0 | 0 | 0 | 0 | 0 | 0.14806 | 0.163022 | 1,509 | 85 | 129 | 17.752941 | 0.606492 | 0.023857 | 0 | 0.12766 | 0 | 0 | 0.092969 | 0 | 0 | 0 | 0.113281 | 0 | 0 | 0 | null | null | 0 | 0.021277 | 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 |
09aa3e75cc654268dbc36196dc7c330e8f5a8329 | 387 | py | Python | accounts/migrations/0012_alter_customer_gifts.py | shakori999/Django_CRM | 82789878b679e68e993295fde0040b16a1c56767 | [
"Apache-2.0"
] | null | null | null | accounts/migrations/0012_alter_customer_gifts.py | shakori999/Django_CRM | 82789878b679e68e993295fde0040b16a1c56767 | [
"Apache-2.0"
] | 2 | 2022-03-21T08:48:46.000Z | 2022-03-21T08:49:57.000Z | accounts/migrations/0012_alter_customer_gifts.py | shakori999/Django_CRM | 82789878b679e68e993295fde0040b16a1c56767 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2.9 on 2021-11-13 12:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0011_auto_20211113_1443'),
]
operations = [
migrations.AlterField(
model_name='customer',
name='gifts',
... | 20.368421 | 49 | 0.599483 | 41 | 387 | 5.560976 | 0.853659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115942 | 0.286822 | 387 | 18 | 50 | 21.5 | 0.710145 | 0.116279 | 0 | 0 | 1 | 0 | 0.129412 | 0.067647 | 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 |
09ac4564f393056d55e20e3441ba602106d59f03 | 444 | py | Python | taskloaf/__init__.py | tbenthompson/taskloaf | 7c7e2fd2dee7fcaecb3f36629c0b7226f39f2a73 | [
"MIT"
] | 19 | 2015-10-10T05:21:22.000Z | 2019-08-31T02:11:59.000Z | taskloaf/__init__.py | tbenthompson/taskloaf | 7c7e2fd2dee7fcaecb3f36629c0b7226f39f2a73 | [
"MIT"
] | null | null | null | taskloaf/__init__.py | tbenthompson/taskloaf | 7c7e2fd2dee7fcaecb3f36629c0b7226f39f2a73 | [
"MIT"
] | 1 | 2019-02-04T14:38:02.000Z | 2019-02-04T14:38:02.000Z | from taskloaf.cfg import Cfg
from taskloaf.zmq_cluster import zmq_run
from taskloaf.promise import task, when_all
from taskloaf.object_ref import alloc, put
from taskloaf.profile import Profiler
from taskloaf.timer import Timer
_ctx = None
def set_ctx(ctx):
global _ctx
_ctx = ctx
def ctx():
return _ctx... | 14.8 | 43 | 0.671171 | 61 | 444 | 4.639344 | 0.393443 | 0.254417 | 0.077739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231982 | 444 | 29 | 44 | 15.310345 | 0.829912 | 0 | 0 | 0 | 0 | 0 | 0.096847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0.045455 | 0.409091 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
09af5632c72ba9a8c2ce809a1bb0d921d6865df9 | 2,176 | py | Python | occasions/migrations/0001_initial.py | michael-xander/communique-webapp | 85b450d7f6d0313c5e5ef53a262a850b7e93c3d6 | [
"MIT"
] | null | null | null | occasions/migrations/0001_initial.py | michael-xander/communique-webapp | 85b450d7f6d0313c5e5ef53a262a850b7e93c3d6 | [
"MIT"
] | null | null | null | occasions/migrations/0001_initial.py | michael-xander/communique-webapp | 85b450d7f6d0313c5e5ef53a262a850b7e93c3d6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-10-15 06:50
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migration... | 62.171429 | 311 | 0.692555 | 290 | 2,176 | 4.989655 | 0.313793 | 0.076019 | 0.053214 | 0.041465 | 0.300622 | 0.284727 | 0.252937 | 0.252937 | 0.199032 | 0.140981 | 0 | 0.010734 | 0.186581 | 2,176 | 34 | 312 | 64 | 0.80678 | 0.03079 | 0 | 0 | 1 | 0 | 0.27208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
09b31213559acccaa8daa7206c8c11f0d3ede33a | 4,406 | py | Python | raspberrypi/azure-bot/bot.py | lastcoolnameleft/led-lanyard | 587a3dc45f826155c475d48d820657a61c6110d6 | [
"MIT"
] | 10 | 2019-06-11T18:28:14.000Z | 2021-05-15T17:55:56.000Z | raspberrypi/azure-bot/bot.py | lastcoolnameleft/led-lanyard | 587a3dc45f826155c475d48d820657a61c6110d6 | [
"MIT"
] | null | null | null | raspberrypi/azure-bot/bot.py | lastcoolnameleft/led-lanyard | 587a3dc45f826155c475d48d820657a61c6110d6 | [
"MIT"
] | 2 | 2020-01-29T21:17:51.000Z | 2021-02-26T13:30:33.000Z | import http.server
import json
import asyncio
import ssl
from botbuilder.schema import (Activity, ActivityTypes, ChannelAccount)
from botframework.connector import ConnectorClient
from botframework.connector.auth import (MicrosoftAppCredentials,
JwtTokenValidation, SimpleCredent... | 39.693694 | 150 | 0.689514 | 491 | 4,406 | 5.92057 | 0.336049 | 0.037152 | 0.024768 | 0.022704 | 0.203646 | 0.169935 | 0.088751 | 0.088751 | 0.050224 | 0.050224 | 0 | 0.006416 | 0.221743 | 4,406 | 110 | 151 | 40.054545 | 0.841353 | 0.002724 | 0 | 0.159574 | 0 | 0 | 0.100182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085106 | false | 0.074468 | 0.085106 | 0.010638 | 0.234043 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
09b5b0c82795a0fdee91d748e5690d469f11e065 | 851 | py | Python | up.py | ytyaru/GitHub.Upload.ByPython.License.Insert.201703161736 | c24e47511823f2ef859d1e9ac1d019b51a22f9a8 | [
"CC0-1.0"
] | null | null | null | up.py | ytyaru/GitHub.Upload.ByPython.License.Insert.201703161736 | c24e47511823f2ef859d1e9ac1d019b51a22f9a8 | [
"CC0-1.0"
] | null | null | null | up.py | ytyaru/GitHub.Upload.ByPython.License.Insert.201703161736 | c24e47511823f2ef859d1e9ac1d019b51a22f9a8 | [
"CC0-1.0"
] | null | null | null | #!python3
#encoding:utf-8
import sys
import getpass
import Main
github_user_name = sys.argv[1]
description = sys.argv[2]
homepage = sys.argv[3]
path_dir_pj = sys.argv[4]
# Accounts, RepositoriesのDBパスを生成する。
# 自分の環境にあわせてパスを生成すること。
os_user_name = getpass.getuser()
device_name = 'some_device_name'
path_db_base = 'some_dir... | 37 | 143 | 0.780259 | 139 | 851 | 4.453237 | 0.309353 | 0.096931 | 0.080775 | 0.103393 | 0.311793 | 0.279483 | 0.279483 | 0.208401 | 0.208401 | 0.208401 | 0 | 0.027919 | 0.074031 | 851 | 22 | 144 | 38.681818 | 0.757614 | 0.090482 | 0 | 0 | 0 | 0 | 0.258778 | 0.214564 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.133333 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
09c07a9b8327b78a0ad1eb60246eb68124587791 | 2,303 | py | Python | main.py | BenTimor/SerializationConceptSystem | 0f85dc32063d270a5564cda3199d84d474e5d83e | [
"MIT"
] | 1 | 2020-11-13T22:21:47.000Z | 2020-11-13T22:21:47.000Z | main.py | BenTimor/SerializationConceptSystem | 0f85dc32063d270a5564cda3199d84d474e5d83e | [
"MIT"
] | null | null | null | main.py | BenTimor/SerializationConceptSystem | 0f85dc32063d270a5564cda3199d84d474e5d83e | [
"MIT"
] | null | null | null | from flask import Flask, render_template, request, make_response, redirect, url_for
from blog import Config, User, Comment, Post
app = Flask(__name__)
def login_or_register():
# If the request method is 'Get' it means that we're just requesting the page and not sending any form
if request.method == "POST":
... | 37.145161 | 106 | 0.65393 | 306 | 2,303 | 4.794118 | 0.271242 | 0.038173 | 0.06544 | 0.030675 | 0.142468 | 0.142468 | 0.142468 | 0.102931 | 0.066803 | 0 | 0 | 0.002256 | 0.230135 | 2,303 | 62 | 107 | 37.145161 | 0.825155 | 0.161963 | 0 | 0.046512 | 0 | 0 | 0.083203 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0.139535 | 0.046512 | 0 | 0.27907 | 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 |
09c0ff3746a81507ff436aceea5362dfcf99d267 | 2,580 | py | Python | tools/debugger/gdb.py | shoaibkamil/asp | 2bc5fd5595c475d43b9ee4451db1b51eb9165fdb | [
"BSD-3-Clause"
] | 12 | 2015-03-20T17:39:23.000Z | 2021-03-17T17:14:25.000Z | tools/debugger/gdb.py | shoaibkamil/asp | 2bc5fd5595c475d43b9ee4451db1b51eb9165fdb | [
"BSD-3-Clause"
] | 1 | 2015-12-28T11:22:48.000Z | 2015-12-28T11:22:48.000Z | tools/debugger/gdb.py | shoaibkamil/asp | 2bc5fd5595c475d43b9ee4451db1b51eb9165fdb | [
"BSD-3-Clause"
] | 9 | 2015-01-06T00:36:53.000Z | 2020-09-19T14:31:26.000Z | import subprocess
import re
class gdb(object):
def __init__(self, python_file, cpp_file, cpp_start_line):
self.process = subprocess.Popen(["PYTHONPATH=stencil:../.. gdb python"],shell=True,stdin=subprocess.PIPE,stdout=subprocess.PIPE,stderr=subprocess.PIPE, cwd='.')
self.process.stdin.write("run " ... | 36.338028 | 168 | 0.553101 | 333 | 2,580 | 4.171171 | 0.309309 | 0.12671 | 0.115191 | 0.151188 | 0.350612 | 0.25342 | 0.25342 | 0.139669 | 0.080634 | 0.080634 | 0 | 0.02897 | 0.277519 | 2,580 | 70 | 169 | 36.857143 | 0.716202 | 0.018992 | 0 | 0.147541 | 0 | 0.016393 | 0.169699 | 0.045491 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.032787 | null | null | 0.098361 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
09c3364dcf63a256bcdb145b4e586d55d6543135 | 631 | py | Python | app/features/steps/projection_test.py | muglyon/https-github.com-muglyon-DCOP-Decentralised-Control-of-Intelligent-Devices | 68cb868a0875f5e119ac0dbea024c17d241347ac | [
"MIT"
] | 3 | 2020-04-10T09:13:17.000Z | 2021-04-08T07:14:03.000Z | app/features/steps/projection_test.py | muglyon/https-github.com-muglyon-DCOP-Decentralised-Control-of-Intelligent-Devices | 68cb868a0875f5e119ac0dbea024c17d241347ac | [
"MIT"
] | 8 | 2020-09-26T00:55:30.000Z | 2022-01-13T02:32:04.000Z | app/features/steps/projection_test.py | muglyon/https-github.com-muglyon-DCOP-Decentralised-Control-of-Intelligent-Devices | 68cb868a0875f5e119ac0dbea024c17d241347ac | [
"MIT"
] | 2 | 2020-04-12T10:08:15.000Z | 2022-01-20T09:34:50.000Z | from behave import *
from hamcrest import *
import numpy
@given('a matrix')
def step_impl(context):
context.matrix = numpy.arange(2, 11).reshape(3, 3)
@when('project the agent')
def step_impl(context):
context.result = context.dpop_1.util_manager.project(context.matrix)
@then('result is a matrix has one ... | 24.269231 | 72 | 0.730586 | 93 | 631 | 4.849462 | 0.505376 | 0.062084 | 0.097561 | 0.159645 | 0.110865 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012939 | 0.142631 | 631 | 25 | 73 | 25.24 | 0.820702 | 0 | 0 | 0.25 | 0 | 0 | 0.18859 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.25 | false | 0 | 0.1875 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
09c9789e2ad56e5f1b723c865954304ed690e93d | 4,176 | py | Python | api/files/api/app/google_billing.py | trackit/trackit-legacy | 76cfab7941eddb9d390dd6c7b9a408a9ad4fc8da | [
"Apache-2.0"
] | 2 | 2018-02-01T09:18:05.000Z | 2020-03-12T18:11:11.000Z | api/files/api/app/google_billing.py | trackit/trackit-legacy | 76cfab7941eddb9d390dd6c7b9a408a9ad4fc8da | [
"Apache-2.0"
] | null | null | null | api/files/api/app/google_billing.py | trackit/trackit-legacy | 76cfab7941eddb9d390dd6c7b9a408a9ad4fc8da | [
"Apache-2.0"
] | 5 | 2018-05-11T10:32:52.000Z | 2021-05-26T12:09:47.000Z | import json
from app import app
from app.msol_util import checksum, day_allocations
from app.gcloud.buckets import get_billing_files, download_billing_file
from models import db, User, GoogleCloudIdentity
from datetime import datetime, time
from time import strptime, mktime
import oauth2client
import httplib2
import ms... | 36 | 121 | 0.639128 | 489 | 4,176 | 5.186094 | 0.280164 | 0.037855 | 0.035489 | 0.040221 | 0.06664 | 0.018927 | 0 | 0 | 0 | 0 | 0 | 0.003275 | 0.268918 | 4,176 | 115 | 122 | 36.313043 | 0.827383 | 0 | 0 | 0.103093 | 0 | 0 | 0.056034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.041237 | 0.14433 | null | null | 0.010309 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
09d015043a4c25e9f4f2ac892999b2d813bc1b86 | 2,421 | py | Python | tests/test_models/test_user.py | lepc1972/AirBnB_clone | 3ba7f0332e926ff7715272866a00d3a23341b3c3 | [
"MIT"
] | 2 | 2021-07-16T01:07:40.000Z | 2021-07-16T01:23:15.000Z | tests/test_models/test_user.py | lepc1972/AirBnB_clone | 3ba7f0332e926ff7715272866a00d3a23341b3c3 | [
"MIT"
] | null | null | null | tests/test_models/test_user.py | lepc1972/AirBnB_clone | 3ba7f0332e926ff7715272866a00d3a23341b3c3 | [
"MIT"
] | 1 | 2021-07-09T01:41:16.000Z | 2021-07-09T01:41:16.000Z | #!/usr/bin/python3
"""test for user"""
import unittest
import os
from models.user import User
from models.base_model import BaseModel
import pep8
from os import environ as env
class TestUser(unittest.TestCase):
"""this will test the User class"""
@classmethod
def setUpClass(cls):
"""set up for te... | 31.038462 | 73 | 0.64271 | 314 | 2,421 | 4.710191 | 0.318471 | 0.086545 | 0.047329 | 0.066261 | 0.224476 | 0.191346 | 0.095335 | 0.054767 | 0.054767 | 0 | 0 | 0.00378 | 0.235027 | 2,421 | 77 | 74 | 31.441558 | 0.794816 | 0.13259 | 0 | 0.08 | 0 | 0 | 0.065228 | 0 | 0 | 0 | 0 | 0 | 0.32 | 1 | 0.2 | false | 0.08 | 0.12 | 0 | 0.34 | 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 |
09d17e4298cb9479162e973ed3f771db046d438b | 758 | py | Python | network/migrations/0005_auto_20210131_1757.py | tomwhross/cs50-web-network | e0d02d6b85a13bdb146698789b4f5821605e28bb | [
"MIT"
] | null | null | null | network/migrations/0005_auto_20210131_1757.py | tomwhross/cs50-web-network | e0d02d6b85a13bdb146698789b4f5821605e28bb | [
"MIT"
] | null | null | null | network/migrations/0005_auto_20210131_1757.py | tomwhross/cs50-web-network | e0d02d6b85a13bdb146698789b4f5821605e28bb | [
"MIT"
] | null | null | null | # Generated by Django 3.1.5 on 2021-01-31 17:57
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('network', '0004_auto_20210128_2324'),
]
operations = [
migrations.AlterFie... | 29.153846 | 140 | 0.654354 | 85 | 758 | 5.682353 | 0.552941 | 0.049689 | 0.057971 | 0.091097 | 0.26501 | 0.169772 | 0 | 0 | 0 | 0 | 0 | 0.053448 | 0.234829 | 758 | 25 | 141 | 30.32 | 0.77931 | 0.059367 | 0 | 0.315789 | 1 | 0 | 0.113924 | 0.032349 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.315789 | 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 |
09d280346e46e1960af8acac2e943bccc319ba73 | 56,772 | py | Python | createVpd.py | thejta/vpdtools | b7d166fcb74e0dbe2e50e7348ccaf6a8984c7fdc | [
"Apache-2.0"
] | 3 | 2015-07-16T17:07:34.000Z | 2017-08-15T15:01:13.000Z | createVpd.py | thejta/vpdtools | b7d166fcb74e0dbe2e50e7348ccaf6a8984c7fdc | [
"Apache-2.0"
] | 9 | 2016-06-20T20:37:42.000Z | 2019-07-18T03:09:37.000Z | createVpd.py | thejta/vpdtools | b7d166fcb74e0dbe2e50e7348ccaf6a8984c7fdc | [
"Apache-2.0"
] | 15 | 2015-07-28T13:45:15.000Z | 2021-09-16T15:30:04.000Z | #!/usr/bin/env python
# Created 01/26/15 by Jason Albert
# Program to create VPD images from input template files
# IBM_PROLOG_BEGIN_TAG
# This is an automatically generated prolog.
#
# OpenPOWER HostBoot Project
#
# Contributors Listed Below - COPYRIGHT 2010,2014
# [+] International Business Machines Corp.
#
#
# Lice... | 44.879051 | 141 | 0.63489 | 7,543 | 56,772 | 4.771974 | 0.122763 | 0.012668 | 0.026726 | 0.013752 | 0.370885 | 0.309098 | 0.280983 | 0.268454 | 0.251618 | 0.224114 | 0 | 0.008143 | 0.264497 | 56,772 | 1,264 | 142 | 44.914557 | 0.853889 | 0.391549 | 0 | 0.37037 | 1 | 0.023148 | 0.183847 | 0.002406 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020062 | false | 0.001543 | 0.020062 | 0 | 0.064815 | 0.001543 | 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 |
09e32950a5bdbb16ecbd430943a2f83a241fff88 | 2,877 | py | Python | api/azimuth/zenith.py | stackhpc/azimuth | be0ded7df3cb0c0381de302add0c386205533ac3 | [
"BSD-3-Clause"
] | 2 | 2022-01-14T14:45:18.000Z | 2022-02-05T17:35:58.000Z | api/azimuth/zenith.py | stackhpc/azimuth | be0ded7df3cb0c0381de302add0c386205533ac3 | [
"BSD-3-Clause"
] | 3 | 2022-02-11T18:41:01.000Z | 2022-02-21T18:00:20.000Z | api/azimuth/zenith.py | stackhpc/azimuth | be0ded7df3cb0c0381de302add0c386205533ac3 | [
"BSD-3-Clause"
] | 1 | 2021-12-02T13:22:09.000Z | 2021-12-02T13:22:09.000Z | """
Module containing the Zenith provider.
"""
import dataclasses
import typing as t
import requests
@dataclasses.dataclass
class ZenithReservation:
"""
Class representing a Zenith subdomain reservation.
"""
#: The subdomain that was reserved
subdomain: str
#: The FQDN that was reserved
... | 33.453488 | 96 | 0.653111 | 363 | 2,877 | 5.090909 | 0.374656 | 0.021645 | 0.029762 | 0.045996 | 0.153139 | 0.13961 | 0.101732 | 0.101732 | 0.101732 | 0.055195 | 0 | 0.005712 | 0.269725 | 2,877 | 85 | 97 | 33.847059 | 0.87387 | 0.438651 | 0 | 0.04878 | 0 | 0 | 0.097363 | 0.027045 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073171 | false | 0 | 0.073171 | 0 | 0.560976 | 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 |
09e5b0f94bfaf3a58af0dc8fdcdbdd855c8fadf3 | 747 | py | Python | cfman/joblib/info/os.py | tonich-sh/cfman | 7e96c6995696dee6aded9b095ff1d68ab20a09e3 | [
"Apache-2.0"
] | null | null | null | cfman/joblib/info/os.py | tonich-sh/cfman | 7e96c6995696dee6aded9b095ff1d68ab20a09e3 | [
"Apache-2.0"
] | null | null | null | cfman/joblib/info/os.py | tonich-sh/cfman | 7e96c6995696dee6aded9b095ff1d68ab20a09e3 | [
"Apache-2.0"
] | null | null | null |
import re
from cfman.cmdbuilder.cmd import Cmd
from cfman.cmdbuilder.commands import file as file_cmd
def distribution(ctx):
result = ctx.run(file_cmd.Grep(r'^ID=', path='/etc/os-release').case(on=True))
# print('stdout: "{}"'.format(result.stdout))
if result.ok:
m = re.match(r'ID=[\'"]?([^\'"]+... | 29.88 | 99 | 0.575636 | 108 | 747 | 3.935185 | 0.37963 | 0.049412 | 0.089412 | 0.070588 | 0.621176 | 0.621176 | 0.621176 | 0.531765 | 0.272941 | 0.272941 | 0 | 0.011589 | 0.191432 | 747 | 24 | 100 | 31.125 | 0.692053 | 0.057564 | 0 | 0.352941 | 0 | 0 | 0.136947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.176471 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.