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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8ece994dd1b163e2074ce6aebf451a06d9516101 | 310 | py | Python | python/time.py | LifengWang/ReportGen | 9266acc7cde7f21206a509607fef0676a8dab52e | [
"Apache-2.0"
] | null | null | null | python/time.py | LifengWang/ReportGen | 9266acc7cde7f21206a509607fef0676a8dab52e | [
"Apache-2.0"
] | 1 | 2020-10-14T01:01:12.000Z | 2020-10-14T01:01:12.000Z | python/time.py | LifengWang/ReportGen | 9266acc7cde7f21206a509607fef0676a8dab52e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import pandas as pd
import sys
def main():
# fle_path = '/home/alex/workspace/ReportGen/python/BigBenchTimes.csv'
file_path = sys.argv[1]
df = pd.read_csv(file_path, sep=';')
df.to_excel("BigBenchTimes.xlsx")
print df.to_string()
if __name__ == '__main__':
main()
| 19.375 | 74 | 0.664516 | 45 | 310 | 4.266667 | 0.688889 | 0.072917 | 0.114583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003937 | 0.180645 | 310 | 15 | 75 | 20.666667 | 0.751969 | 0.274194 | 0 | 0 | 0 | 0 | 0.121076 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.222222 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8ecf4e191c51888fe96cf70ed22b287feafa153f | 300 | py | Python | SVM_example.py | COSC-Research-BowieState/ARP_Simulator | ec109253bc3cc6903252f6f24b1205b8e7bab189 | [
"MIT"
] | null | null | null | SVM_example.py | COSC-Research-BowieState/ARP_Simulator | ec109253bc3cc6903252f6f24b1205b8e7bab189 | [
"MIT"
] | null | null | null | SVM_example.py | COSC-Research-BowieState/ARP_Simulator | ec109253bc3cc6903252f6f24b1205b8e7bab189 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jul 4 17:41:56 2018
@author: hubert kyeremateng-boateng
"""
import numpy as np
import pandas as pd
recipes = pd.read_csv('arp_dataset.csv', header=None)
recipes.rename(columns={0: 'name'}, inplace=True)
print(np.transpose(recipes)) | 23.076923 | 53 | 0.71 | 48 | 300 | 4.395833 | 0.854167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053232 | 0.123333 | 300 | 13 | 54 | 23.076923 | 0.749049 | 0.386667 | 0 | 0 | 0 | 0 | 0.107955 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8ed19150ff78b6ca1c2491ef7203c5ad4bd6be6e | 2,756 | py | Python | app/updateinformation.py | mjogodnik22/mini-amazon | cc7caf9366b862e43271305d1b2d27bb6c08260d | [
"MIT"
] | null | null | null | app/updateinformation.py | mjogodnik22/mini-amazon | cc7caf9366b862e43271305d1b2d27bb6c08260d | [
"MIT"
] | null | null | null | app/updateinformation.py | mjogodnik22/mini-amazon | cc7caf9366b862e43271305d1b2d27bb6c08260d | [
"MIT"
] | null | null | null | from flask import render_template, redirect, url_for, flash, request
from werkzeug.urls import url_parse
from flask_login import login_user, logout_user, current_user
from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, DecimalField, BooleanField, SelectField, SubmitField
from wtforms.validat... | 47.517241 | 199 | 0.675617 | 291 | 2,756 | 6.237113 | 0.353952 | 0.084848 | 0.033058 | 0.016529 | 0.030854 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000467 | 0.222787 | 2,756 | 57 | 200 | 48.350877 | 0.846872 | 0.036647 | 0 | 0.041667 | 0 | 0 | 0.137944 | 0.04006 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020833 | false | 0.083333 | 0.229167 | 0 | 0.458333 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8edd3cd8565c24d7a33ad76b1b5ec1f65dc9407d | 473 | py | Python | attendees/whereabouts/migrations/0009_attendee_address_m2m.py | xjlin0/attendees | 3c337ee68c00f17cbbbe26f2e33131e57850e4ed | [
"MIT"
] | 1 | 2020-03-26T00:42:04.000Z | 2020-03-26T00:42:04.000Z | attendees/whereabouts/migrations/0009_attendee_address_m2m.py | xjlin0/attendees | 3c337ee68c00f17cbbbe26f2e33131e57850e4ed | [
"MIT"
] | null | null | null | attendees/whereabouts/migrations/0009_attendee_address_m2m.py | xjlin0/attendees | 3c337ee68c00f17cbbbe26f2e33131e57850e4ed | [
"MIT"
] | null | null | null | # Generated by Django 3.0.2 on 2020-01-21 06:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('persons', '0010_attendee_address'),
('whereabouts', '0008_room'),
]
operations = [
migrations.AddField(
model_name='addr... | 23.65 | 99 | 0.615222 | 47 | 473 | 6.106383 | 0.787234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065527 | 0.257928 | 473 | 19 | 100 | 24.894737 | 0.752137 | 0.095137 | 0 | 0 | 1 | 0 | 0.241784 | 0.103286 | 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 |
8ee287666b52dd443104856eb3949c8aa83d480b | 2,735 | py | Python | bin/log_csv.py | scitran/nimsapi | a4203cf6c6d29aa15d33011250ee69ff929fcb0d | [
"MIT"
] | 13 | 2016-05-31T14:32:58.000Z | 2021-09-17T07:18:11.000Z | bin/log_csv.py | scitran/core | a4203cf6c6d29aa15d33011250ee69ff929fcb0d | [
"MIT"
] | 911 | 2016-02-16T18:40:27.000Z | 2018-08-07T17:50:29.000Z | bin/log_csv.py | scitran/nimsapi | a4203cf6c6d29aa15d33011250ee69ff929fcb0d | [
"MIT"
] | 16 | 2016-02-17T15:54:34.000Z | 2021-04-07T05:30:34.000Z | # This implementation as of July 19 2017 has these resource utilizations of the mongodb container:
# - 2 million entries: 1.50 Gb
# - 3 million entries: 2.05 Gb
# The entire docker application was given 6 Gb to use, when given the default 2 Gb,
# the process would frequently crash before 1 million entries were down... | 32.951807 | 98 | 0.614991 | 354 | 2,735 | 4.624294 | 0.420904 | 0.038485 | 0.072694 | 0.058644 | 0.092853 | 0.034209 | 0 | 0 | 0 | 0 | 0 | 0.019773 | 0.260329 | 2,735 | 82 | 99 | 33.353659 | 0.789422 | 0.115905 | 0 | 0.031746 | 0 | 0 | 0.134657 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.15873 | null | null | 0.031746 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8eeb463cad3d2986fa543d29cd235afba9ffb070 | 3,664 | py | Python | elstruct/reader/gaussian/freq.py | avcopan/elstruct-interface | 593929b5cf975e2f455125e446f8ca6a12482e5d | [
"Apache-2.0"
] | null | null | null | elstruct/reader/gaussian/freq.py | avcopan/elstruct-interface | 593929b5cf975e2f455125e446f8ca6a12482e5d | [
"Apache-2.0"
] | null | null | null | elstruct/reader/gaussian/freq.py | avcopan/elstruct-interface | 593929b5cf975e2f455125e446f8ca6a12482e5d | [
"Apache-2.0"
] | 1 | 2018-11-16T20:44:31.000Z | 2018-11-16T20:44:31.000Z | """
Library of functions to retrieve frequency information from a Gaussian 09e output file.
Frequencies currently supported:
(1) Harmonic Vibrational Frequencies
(2) Harmonic Zero-Point Vibrational Energy
"""
__authors__ = "Kevin Moore, Andreas Copan"
__updated__ = "2019-01-15"
from ..rere import parse as repar
fro... | 28.403101 | 87 | 0.622544 | 471 | 3,664 | 4.698514 | 0.309979 | 0.040669 | 0.018075 | 0.027113 | 0.29869 | 0.271577 | 0.182558 | 0.155445 | 0.155445 | 0.155445 | 0 | 0.013538 | 0.254094 | 3,664 | 128 | 88 | 28.625 | 0.796195 | 0.344705 | 0 | 0.111111 | 0 | 0 | 0.096042 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.092593 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8eeec43ac2ba36819f5ca566f6976a86baf0f967 | 4,779 | py | Python | apetools/connections/localconnection.py | rsnakamura/oldape | b4d1c77e1d611fe2b30768b42bdc7493afb0ea95 | [
"Apache-2.0"
] | null | null | null | apetools/connections/localconnection.py | rsnakamura/oldape | b4d1c77e1d611fe2b30768b42bdc7493afb0ea95 | [
"Apache-2.0"
] | null | null | null | apetools/connections/localconnection.py | rsnakamura/oldape | b4d1c77e1d611fe2b30768b42bdc7493afb0ea95 | [
"Apache-2.0"
] | null | null | null |
#python Libraries
from StringIO import StringIO
from collections import namedtuple
import Queue
import os
# Third-party Libraries
try:
import pexpect
except ImportError as error:
#print error
pass
# apetools Libraries
from apetools.baseclass import BaseClass
from apetools.commons.errors import Connection... | 28.446429 | 101 | 0.6018 | 520 | 4,779 | 5.423077 | 0.313462 | 0.035106 | 0.030142 | 0.034043 | 0.024823 | 0.024823 | 0 | 0 | 0 | 0 | 0 | 0.00446 | 0.296296 | 4,779 | 167 | 102 | 28.616766 | 0.834077 | 0.053568 | 0 | 0.164706 | 0 | 0 | 0.057485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.011765 | 0.117647 | null | null | 0.070588 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d9011b28c63281bc996099c09c306b728df0ffa9 | 1,546 | py | Python | test5.py | fr0zn/solquery | c3b1989fa887c9cc09ea091bf9bf36793fdd73a4 | [
"MIT"
] | null | null | null | test5.py | fr0zn/solquery | c3b1989fa887c9cc09ea091bf9bf36793fdd73a4 | [
"MIT"
] | null | null | null | test5.py | fr0zn/solquery | c3b1989fa887c9cc09ea091bf9bf36793fdd73a4 | [
"MIT"
] | null | null | null |
class MetaVarList(list):
def __new__(cls, data=None, formatter=None):
cls._formatter = formatter
obj = super(MetaVarList, cls).__new__(cls, data)
return obj
def __str__(self):
return 'myList(%s)' % list(self)
def __format__(self, spec):
print(spec)
#... | 24.539683 | 112 | 0.600906 | 192 | 1,546 | 4.546875 | 0.307292 | 0.064147 | 0.02291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002586 | 0.249677 | 1,546 | 63 | 113 | 24.539683 | 0.75 | 0.036869 | 0 | 0 | 0 | 0 | 0.053235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.232558 | false | 0 | 0 | 0.093023 | 0.488372 | 0.069767 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d902b516a40dcba0794e54939272a83437efbea7 | 1,097 | py | Python | operators.py | Javip142/astr-119 | 018bcc1518d35d9a5ecc81b39343dce53325fa5b | [
"MIT"
] | null | null | null | operators.py | Javip142/astr-119 | 018bcc1518d35d9a5ecc81b39343dce53325fa5b | [
"MIT"
] | 6 | 2021-09-29T22:16:39.000Z | 2021-12-09T10:44:50.000Z | operators.py | Javip142/astr-119 | 018bcc1518d35d9a5ecc81b39343dce53325fa5b | [
"MIT"
] | null | null | null | x = 9
y = 3
# Arithmetic Operators
print(x+y) #addtion
print(x-y) #subtraction
print(x*y) #multiplication
print(x/y) #division
print(x%y) #modulus provides remainder after we do long divison
print(x**y) #Exponentiation
x = 9.191823
print("Floor divide:", x//y) #Floor divison, how many times does a nu... | 29.648649 | 88 | 0.583409 | 203 | 1,097 | 3.152709 | 0.236453 | 0.0625 | 0.0375 | 0.0375 | 0.432813 | 0.432813 | 0.432813 | 0.432813 | 0.432813 | 0.370313 | 0 | 0.03 | 0.270738 | 1,097 | 37 | 89 | 29.648649 | 0.77 | 0.511395 | 0 | 0.354839 | 0 | 0 | 0.148847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.612903 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d90dd4f090fbbdcff512c7f61334e4e5095d8c05 | 354 | py | Python | src/Discord/command/admin/shutdown.py | JulesWall/Discord-py-bot-base | 6d89d74b5e6e0a603f171c791f96bb33ecbb41e8 | [
"MIT"
] | null | null | null | src/Discord/command/admin/shutdown.py | JulesWall/Discord-py-bot-base | 6d89d74b5e6e0a603f171c791f96bb33ecbb41e8 | [
"MIT"
] | null | null | null | src/Discord/command/admin/shutdown.py | JulesWall/Discord-py-bot-base | 6d89d74b5e6e0a603f171c791f96bb33ecbb41e8 | [
"MIT"
] | null | null | null | import discord
from config import *
class ShutDown:
def __init__(self,message : discord.Message, bot : discord.Client()):
self.bot = bot
self.message = message
async def run(self):
if self.message.author.id in OWNER:
await self.message.channel.send('Shut down')
... | 29.5 | 73 | 0.612994 | 44 | 354 | 4.840909 | 0.568182 | 0.206573 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.288136 | 354 | 12 | 74 | 29.5 | 0.845238 | 0 | 0 | 0 | 0 | 0 | 0.025352 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.4 | 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 |
d91267f7c1e50773407fdc19adb815e69ec5e2f9 | 423 | py | Python | LeetCode/python3/929.py | ZintrulCre/LeetCode_Archiver | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 279 | 2019-02-19T16:00:32.000Z | 2022-03-23T12:16:30.000Z | LeetCode/python3/929.py | ZintrulCre/LeetCode_Archiver | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 2 | 2019-03-31T08:03:06.000Z | 2021-03-07T04:54:32.000Z | LeetCode/python3/929.py | ZintrulCre/LeetCode_Crawler | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 12 | 2019-01-29T11:45:32.000Z | 2019-02-04T16:31:46.000Z | class Solution:
def numUniqueEmails(self, emails):
"""
:type emails: List[str]
:rtype: int
"""
email_set = set()
for email in emails:
local, domain = email.split('@')
local = local.replace('.', '')
if '+' in local:
l... | 30.214286 | 48 | 0.477541 | 42 | 423 | 4.738095 | 0.571429 | 0.201005 | 0.150754 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.382979 | 423 | 14 | 49 | 30.214286 | 0.762452 | 0.082742 | 0 | 0 | 0 | 0 | 0.011204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.3 | 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 |
d91903929bd8b81abd126d6ed63db39059af5f91 | 321 | py | Python | cumulusci/robotframework/tests/CustomObjectTestPage.py | SalesforceFoundation/CumulusCI | f7811a881939ef86c10ccb9b2d7ec8d7af73fd1c | [
"BSD-3-Clause"
] | 109 | 2015-01-20T14:28:48.000Z | 2018-08-31T12:12:39.000Z | cumulusci/robotframework/tests/CustomObjectTestPage.py | SalesforceFoundation/CumulusCI | f7811a881939ef86c10ccb9b2d7ec8d7af73fd1c | [
"BSD-3-Clause"
] | 365 | 2015-01-07T19:54:25.000Z | 2018-09-11T15:10:02.000Z | cumulusci/robotframework/tests/CustomObjectTestPage.py | SalesforceFoundation/CumulusCI | f7811a881939ef86c10ccb9b2d7ec8d7af73fd1c | [
"BSD-3-Clause"
] | 125 | 2015-01-17T16:05:39.000Z | 2018-09-06T19:05:00.000Z | """
This class is used by test_pageobjects
"""
from cumulusci.robotframework.pageobjects import ListingPage, pageobject
# The point of this class is to test out using an alias
@pageobject(page_type="Listing", object_name="Custom Object")
class CustomObjectListingPage(ListingPage):
_object_name = "CustomObject__c"... | 29.181818 | 72 | 0.794393 | 41 | 321 | 6.04878 | 0.731707 | 0.072581 | 0.08871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124611 | 321 | 10 | 73 | 32.1 | 0.882562 | 0.28972 | 0 | 0 | 0 | 0 | 0.159091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d9204110ecad2e306b5e55fed3bce1fe83582fab | 618 | py | Python | sources/boltun/ext/yaml/processor.py | meiblorn/boltun | d141f555b4f0ed604d8d71883c0bc8811e74370e | [
"MIT"
] | 1 | 2019-12-06T04:19:37.000Z | 2019-12-06T04:19:37.000Z | sources/boltun/ext/yaml/processor.py | meiblorn/boltun | d141f555b4f0ed604d8d71883c0bc8811e74370e | [
"MIT"
] | null | null | null | sources/boltun/ext/yaml/processor.py | meiblorn/boltun | d141f555b4f0ed604d8d71883c0bc8811e74370e | [
"MIT"
] | null | null | null | import attr
import yaml
from boltun.engine import Engine
@attr.s
class YamlProcessor(object):
engine = attr.ib(default=attr.Factory(Engine))
def __enable__(self, tag="!boltun", resolver=False):
yaml.add_constructor(tag, self)
if resolver:
yaml.add_implicit_resolver(tag, self._ma... | 22.888889 | 58 | 0.653722 | 75 | 618 | 5.173333 | 0.52 | 0.051546 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252427 | 618 | 26 | 59 | 23.769231 | 0.839827 | 0 | 0 | 0 | 0 | 0 | 0.011327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.055556 | 0.611111 | 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 |
d924124b049efba8b327f8ba79867faeb73cd170 | 681 | py | Python | cvk_2015/apps.py | dchaplinsky/ragoogle | dccb3d29334c3220ea12c46c725c443c8bd725c0 | [
"MIT"
] | 3 | 2018-06-10T21:20:56.000Z | 2021-04-04T11:21:06.000Z | cvk_2015/apps.py | dchaplinsky/ragoogle | dccb3d29334c3220ea12c46c725c443c8bd725c0 | [
"MIT"
] | 7 | 2018-08-14T20:54:49.000Z | 2020-06-05T18:17:30.000Z | cvk_2015/apps.py | dchaplinsky/ragoogle | dccb3d29334c3220ea12c46c725c443c8bd725c0 | [
"MIT"
] | 3 | 2018-06-27T12:53:13.000Z | 2020-09-25T19:41:46.000Z | from abstract.apps import AbstractConfig
from .loader import CVK2015Loader
from .elastic_models import ElasticCVK2015Model, cvk_2015_idx
class CVK2015Config(AbstractConfig):
name = "cvk_2015"
verbose_name = "Учасники місцевих виборів 2015-го року"
short_name = "Регіони"
loader_class = CVK2015Loader
... | 27.24 | 61 | 0.728341 | 75 | 681 | 6.453333 | 0.586667 | 0.043388 | 0.041322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098672 | 0.226138 | 681 | 25 | 62 | 27.24 | 0.819734 | 0.07489 | 0 | 0.111111 | 0 | 0 | 0.084261 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.277778 | 0 | 0.888889 | 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 |
d92747989c01c959e00977a548eb19a60491a46f | 502 | py | Python | sms_voting/migrations/0012_auto_20211110_0517.py | Fedor-Lyanguzov/Voting | 98f8fd958624fa9ba3835836c525fbb4abb6b5e5 | [
"MIT"
] | null | null | null | sms_voting/migrations/0012_auto_20211110_0517.py | Fedor-Lyanguzov/Voting | 98f8fd958624fa9ba3835836c525fbb4abb6b5e5 | [
"MIT"
] | 1 | 2021-12-04T11:43:25.000Z | 2021-12-04T11:43:25.000Z | sms_voting/migrations/0012_auto_20211110_0517.py | Fedor-Lyanguzov/Voting | 98f8fd958624fa9ba3835836c525fbb4abb6b5e5 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.8 on 2021-11-10 05:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sms_voting', '0011_auto_20211110_0502'),
]
operations = [
migrations.RemoveField(
model_name='bulletin',
name='resul... | 21.826087 | 50 | 0.575697 | 49 | 502 | 5.755102 | 0.795918 | 0.06383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089337 | 0.308765 | 502 | 22 | 51 | 22.818182 | 0.723343 | 0.089641 | 0 | 0.125 | 1 | 0 | 0.153846 | 0.050549 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d9300939b02465cc95f8d69b6ff94ca1db4e605a | 1,647 | py | Python | vid/migrations/0003_auto_20211222_0019.py | timmyoder/covid_tracker | 88598043b595f3f63a28e43a732d2f854d4aca9d | [
"MIT"
] | null | null | null | vid/migrations/0003_auto_20211222_0019.py | timmyoder/covid_tracker | 88598043b595f3f63a28e43a732d2f854d4aca9d | [
"MIT"
] | null | null | null | vid/migrations/0003_auto_20211222_0019.py | timmyoder/covid_tracker | 88598043b595f3f63a28e43a732d2f854d4aca9d | [
"MIT"
] | null | null | null | # Generated by Django 3.0.3 on 2021-12-22 00:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('vid', '0002_allnty'),
]
operations = [
migrations.CreateModel(
name='CountyMetrics',
fields=[
('id',... | 30.5 | 114 | 0.518519 | 129 | 1,647 | 6.542636 | 0.527132 | 0.149289 | 0.177725 | 0.085308 | 0.095972 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025998 | 0.346084 | 1,647 | 53 | 115 | 31.075472 | 0.75766 | 0.027322 | 0 | 0.297872 | 1 | 0 | 0.128125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021277 | 0 | 0.085106 | 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 |
d93b4251771b7cf7a6b382690dc7c24a823f2b1d | 1,445 | py | Python | Python-Arduino/Python-setter.py | TSG405/IOT | dc6f965baf3d0cc0a79e88bc9c3fd8d4ece3fa51 | [
"BSD-3-Clause"
] | 2 | 2020-10-29T07:28:26.000Z | 2021-04-25T05:33:54.000Z | Python-Arduino/Python-setter.py | TSG405/IOT | dc6f965baf3d0cc0a79e88bc9c3fd8d4ece3fa51 | [
"BSD-3-Clause"
] | null | null | null | Python-Arduino/Python-setter.py | TSG405/IOT | dc6f965baf3d0cc0a79e88bc9c3fd8d4ece3fa51 | [
"BSD-3-Clause"
] | null | null | null | import serial # Using SERIAL module to connect to comm ports via ARDUINO
Arduino_Serial = serial.Serial('/dev/ttyACM0',9600) # Connecting via ttyACM0 port (LINUX)
print (Arduino_Serial.readline()) # Status
print ("Please enter --------> 1 <------- to TURN... | 40.138889 | 131 | 0.467128 | 150 | 1,445 | 4.433333 | 0.453333 | 0.097744 | 0.081203 | 0.04812 | 0.273684 | 0.273684 | 0.207519 | 0.207519 | 0.207519 | 0.207519 | 0 | 0.032992 | 0.391696 | 1,445 | 35 | 132 | 41.285714 | 0.723549 | 0.238062 | 0 | 0.090909 | 0 | 0 | 0.258004 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.045455 | 0.454545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d93ce3e047e67035b0fc470f80c3e9659efed6a2 | 43,185 | py | Python | data/scripts/bsRunaround.py | starpirate2203/BROODY-S-LAST-SCRIPT | 7b5a9eab02c782ebf39b0f3edf69536fae8289c6 | [
"MIT"
] | 2 | 2021-09-07T16:04:30.000Z | 2021-09-16T03:30:16.000Z | data/scripts/bsRunaround.py | starpirate2203/BROODY-S-LAST-SCRIPT | 7b5a9eab02c782ebf39b0f3edf69536fae8289c6 | [
"MIT"
] | null | null | null | data/scripts/bsRunaround.py | starpirate2203/BROODY-S-LAST-SCRIPT | 7b5a9eab02c782ebf39b0f3edf69536fae8289c6 | [
"MIT"
] | 1 | 2021-09-21T12:42:28.000Z | 2021-09-21T12:42:28.000Z | import bs
import random
import math
class RunaroundGame(bs.CoopGameActivity):
tips = [
'Jump just as you\'re throwing to get bombs up to the highest levels.',
'No, you can\'t get up on the ledge. You have to throw bombs.',
'Whip back and forth to get more distance on your throws..']
... | 40.894886 | 80 | 0.481788 | 4,104 | 43,185 | 5.00731 | 0.164717 | 0.030365 | 0.025109 | 0.0218 | 0.37747 | 0.334015 | 0.286618 | 0.276496 | 0.252117 | 0.226813 | 0 | 0.033733 | 0.398657 | 43,185 | 1,055 | 81 | 40.933649 | 0.757596 | 0.054232 | 0 | 0.383372 | 0 | 0.002309 | 0.08409 | 0 | 0 | 0 | 0 | 0.000948 | 0 | 0 | null | null | 0.001155 | 0.006928 | null | null | 0.002309 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d945a72b8bcb11f20ef8799e856a5654994ffaeb | 3,197 | py | Python | opengenomebrowser_tools/rename_custom_annotations.py | opengenomebrowser/opengenomebrowser-tools | b6ef2340b2fd67a61373d1d8a0f3ef71cc892d1e | [
"MIT"
] | null | null | null | opengenomebrowser_tools/rename_custom_annotations.py | opengenomebrowser/opengenomebrowser-tools | b6ef2340b2fd67a61373d1d8a0f3ef71cc892d1e | [
"MIT"
] | null | null | null | opengenomebrowser_tools/rename_custom_annotations.py | opengenomebrowser/opengenomebrowser-tools | b6ef2340b2fd67a61373d1d8a0f3ef71cc892d1e | [
"MIT"
] | null | null | null | from .utils import GenomeFile, split_locus_tag
class CustomAnnotationFile(GenomeFile):
def __init__(self, file: str, original_path: str = None, custom_annotation_type: str = None):
if custom_annotation_type:
self.custom_annotation_type = custom_annotation_type
else:
self.cu... | 38.059524 | 141 | 0.657804 | 436 | 3,197 | 4.451835 | 0.190367 | 0.197836 | 0.252447 | 0.096342 | 0.399279 | 0.32406 | 0.313756 | 0.265842 | 0.205049 | 0.205049 | 0 | 0.004174 | 0.250547 | 3,197 | 83 | 142 | 38.518072 | 0.805927 | 0.076009 | 0 | 0.075472 | 0 | 0.056604 | 0.147019 | 0.048321 | 0 | 0 | 0 | 0 | 0.075472 | 1 | 0.132075 | false | 0 | 0.037736 | 0 | 0.226415 | 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 |
d94612c9ae12b600bebba592477a727af83fa451 | 951 | py | Python | unityparser/composer.py | socialpoint-labs/unity-yaml-parser | 91c175140ed32aed301bc34d4311f370da69a8ba | [
"MIT"
] | 76 | 2019-06-17T13:17:59.000Z | 2022-03-11T19:39:24.000Z | unityparser/composer.py | socialpoint-labs/unity-yaml-parser | 91c175140ed32aed301bc34d4311f370da69a8ba | [
"MIT"
] | 17 | 2019-06-07T09:04:27.000Z | 2022-02-16T19:01:38.000Z | unityparser/composer.py | socialpoint-labs/unity-yaml-parser | 91c175140ed32aed301bc34d4311f370da69a8ba | [
"MIT"
] | 9 | 2019-10-08T16:07:35.000Z | 2021-12-08T15:27:00.000Z | from yaml.composer import Composer as YamlComposer, ComposerError
class Composer(YamlComposer):
def compose_document(self):
# Drop the DOCUMENT-START event.
self.get_event()
# UNITY: used to store data after the anchor
self.extra_anchor_data = {}
# Compose the root node.... | 28.818182 | 95 | 0.635121 | 122 | 951 | 4.803279 | 0.409836 | 0.075085 | 0.102389 | 0.09727 | 0.075085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.293375 | 951 | 32 | 96 | 29.71875 | 0.872024 | 0.240799 | 0 | 0.117647 | 0 | 0 | 0.053147 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.058824 | 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 |
d948fa8ba6380df2f7107ace914fc0822327e5fa | 3,802 | py | Python | apps/users/views.py | fangMint/django_web | cf50df6c1a2358996620ac83ffa99b31472d3c07 | [
"AFL-3.0"
] | null | null | null | apps/users/views.py | fangMint/django_web | cf50df6c1a2358996620ac83ffa99b31472d3c07 | [
"AFL-3.0"
] | null | null | null | apps/users/views.py | fangMint/django_web | cf50df6c1a2358996620ac83ffa99b31472d3c07 | [
"AFL-3.0"
] | 1 | 2021-11-22T10:15:50.000Z | 2021-11-22T10:15:50.000Z | import logging
from django.views import View
from .models import Users, Tokens
from libs.response_extra import response_failure, response_success, user_does_not_exists, view_exception
from libs.tool_decorator import cvb_params
from .decorator import cvb_token_check
log = logging.getLogger(__name__)
class LoginView... | 33.946429 | 104 | 0.572593 | 399 | 3,802 | 5.24812 | 0.280702 | 0.052531 | 0.050143 | 0.057307 | 0.172875 | 0.152818 | 0.095511 | 0.095511 | 0.047755 | 0 | 0 | 0.020626 | 0.311415 | 3,802 | 112 | 105 | 33.946429 | 0.779221 | 0.026828 | 0 | 0.162162 | 0 | 0 | 0.088382 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0.121622 | 0.081081 | 0 | 0.337838 | 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 |
d94e7f4e72a48e860eb440b1515c225287560f3f | 2,284 | py | Python | z2npprocess.py | evandromr/python_scitools | afe8ad113245069af0ef2a05c69046938459ab2d | [
"MIT"
] | 2 | 2015-11-05T14:43:04.000Z | 2016-01-06T18:49:31.000Z | z2npprocess.py | evandromr/python_scitools | afe8ad113245069af0ef2a05c69046938459ab2d | [
"MIT"
] | null | null | null | z2npprocess.py | evandromr/python_scitools | afe8ad113245069af0ef2a05c69046938459ab2d | [
"MIT"
] | null | null | null | #!/usr/env python
import pprocess # parallel computing module
import os # os utilitites
import time # keep track of time
import astropy.io.fits as fits # FITS manipulating library
import matplotlib.pyplot as plt
import numpy as np # numeric python for array manipulation
import myscitools # my personal tools
... | 27.853659 | 72 | 0.684764 | 326 | 2,284 | 4.754601 | 0.420245 | 0.046452 | 0.041935 | 0.046452 | 0.063871 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015971 | 0.150175 | 2,284 | 81 | 73 | 28.197531 | 0.782586 | 0.182574 | 0 | 0.107143 | 0 | 0 | 0.226954 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.035714 | 0.125 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d950b3d1717860b9f9b62454c2ec7519e0a1185c | 625 | py | Python | net/http_client.py | zengmeng1094/my_python_practice | 529e3ce592508b30d49dc6d4a005081789d0db44 | [
"Apache-2.0"
] | null | null | null | net/http_client.py | zengmeng1094/my_python_practice | 529e3ce592508b30d49dc6d4a005081789d0db44 | [
"Apache-2.0"
] | null | null | null | net/http_client.py | zengmeng1094/my_python_practice | 529e3ce592508b30d49dc6d4a005081789d0db44 | [
"Apache-2.0"
] | null | null | null | import requests
import urllib3
from urllib3 import HTTPConnectionPool
class HttpsClient:
def __init__(self):
pass
@staticmethod
def get(_url, _query_string={}, _header=None):
urllib3.disable_warnings()
_resp = requests.get(_url, _query_string, headers=_header, verify=False)
... | 24.038462 | 80 | 0.6752 | 73 | 625 | 5.342466 | 0.520548 | 0.076923 | 0.05641 | 0.087179 | 0.420513 | 0.420513 | 0.420513 | 0 | 0 | 0 | 0 | 0.028455 | 0.2128 | 625 | 25 | 81 | 25 | 0.764228 | 0 | 0 | 0.333333 | 0 | 0 | 0.0544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.055556 | 0.166667 | 0 | 0.5 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d955563969d83170f71c06df9ab6aacad0658d81 | 787 | py | Python | timetappy/staff.py | ak9999/timetappy | 7429077b2a8f3e2f0b2b5ac26d9db713fd330a50 | [
"MIT"
] | null | null | null | timetappy/staff.py | ak9999/timetappy | 7429077b2a8f3e2f0b2b5ac26d9db713fd330a50 | [
"MIT"
] | null | null | null | timetappy/staff.py | ak9999/timetappy | 7429077b2a8f3e2f0b2b5ac26d9db713fd330a50 | [
"MIT"
] | null | null | null | from .utils import return_response, api_get_request
class StaffMixin():
TIMETAP_API_STAFF = '/staff'
api_get_request = api_get_request
@return_response
def get_staff(self):
return self.api_get_request(f'{self.TIMETAP_API_STAFF}')
@return_response
def get_staff_by_professionalId(self... | 32.791667 | 94 | 0.721728 | 98 | 787 | 5.489796 | 0.27551 | 0.066915 | 0.144981 | 0.111524 | 0.689591 | 0.596654 | 0.596654 | 0.596654 | 0.596654 | 0.596654 | 0 | 0 | 0.193139 | 787 | 23 | 95 | 34.217391 | 0.847244 | 0 | 0 | 0.411765 | 0 | 0 | 0.237611 | 0.151207 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.058824 | 0.058824 | 0.588235 | 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 |
d9610b878d44c5a8266abce88c386c3e59afd553 | 1,448 | py | Python | src/secml/ml/peval/metrics/c_metric_test_error.py | zangobot/secml | 95a293e1201c24256eb7fe2f1d2125cd5f318c8c | [
"Apache-2.0"
] | 63 | 2020-04-20T16:31:16.000Z | 2022-03-29T01:05:35.000Z | src/secml/ml/peval/metrics/c_metric_test_error.py | zangobot/secml | 95a293e1201c24256eb7fe2f1d2125cd5f318c8c | [
"Apache-2.0"
] | 5 | 2020-04-21T11:31:39.000Z | 2022-03-24T13:42:56.000Z | src/secml/ml/peval/metrics/c_metric_test_error.py | zangobot/secml | 95a293e1201c24256eb7fe2f1d2125cd5f318c8c | [
"Apache-2.0"
] | 8 | 2020-04-21T09:16:42.000Z | 2022-02-23T16:28:43.000Z | """
.. module:: CMetricTestError
:synopsis: Performance Metric: Test Error
.. moduleauthor:: Marco Melis <marco.melis@unica.it>
"""
import sklearn.metrics as skm
from secml.array import CArray
from secml.ml.peval.metrics import CMetric
class CMetricTestError(CMetric):
"""Performance evaluation metric: Test ... | 24.542373 | 82 | 0.600138 | 166 | 1,448 | 5.13253 | 0.421687 | 0.052817 | 0.035211 | 0.046948 | 0.129108 | 0.068075 | 0 | 0 | 0 | 0 | 0 | 0.016346 | 0.281768 | 1,448 | 58 | 83 | 24.965517 | 0.802885 | 0.608425 | 0 | 0 | 0 | 0 | 0.02551 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.888889 | 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 |
d962f71ef696f9f1cf377a6a911132ae292fa62f | 799 | py | Python | main/email.py | BTulkas/Foster_Finder | b3de87ce3a253bec3296446f7138f8a16b32f9d7 | [
"MIT"
] | null | null | null | main/email.py | BTulkas/Foster_Finder | b3de87ce3a253bec3296446f7138f8a16b32f9d7 | [
"MIT"
] | 2 | 2021-09-12T08:31:22.000Z | 2021-09-12T09:08:47.000Z | main/email.py | BTulkas/Foster_Finder | b3de87ce3a253bec3296446f7138f8a16b32f9d7 | [
"MIT"
] | null | null | null | from flask import render_template
from flask_mail import Message
from main import mail, app
def send_email(subject, sender, recipients, text_body, html_body):
msg = Message(subject, sender=sender, recipients=recipients)
msg.body = text_body
msg.html = html_body
mail.send(msg)
def send_password_reset... | 38.047619 | 69 | 0.640801 | 93 | 799 | 5.268817 | 0.322581 | 0.085714 | 0.073469 | 0.093878 | 0.146939 | 0.146939 | 0 | 0 | 0 | 0 | 0 | 0 | 0.274093 | 799 | 21 | 70 | 38.047619 | 0.844828 | 0 | 0 | 0 | 0 | 0 | 0.11125 | 0.06125 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.294118 | 0.176471 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d96d94b8b61da641fde0216154cbe46da6d86b8e | 2,022 | py | Python | containers/api/api/models/user.py | yveso/supertoll | 0623c090ab97d5fb24dba6c18373c7cf8bc27e46 | [
"MIT"
] | null | null | null | containers/api/api/models/user.py | yveso/supertoll | 0623c090ab97d5fb24dba6c18373c7cf8bc27e46 | [
"MIT"
] | 8 | 2019-12-26T17:26:07.000Z | 2022-02-26T10:41:53.000Z | containers/api/api/models/user.py | yveso/supertoll | 0623c090ab97d5fb24dba6c18373c7cf8bc27e46 | [
"MIT"
] | null | null | null | from datetime import datetime, timedelta
from flask import current_app
import jwt
from api import db, bcrypt
class User(db.Model):
__tablename__ = "users"
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
username = db.Column(db.String(128), unique=True, nullable=False)
email = db.Col... | 31.107692 | 79 | 0.573195 | 212 | 2,022 | 5.301887 | 0.353774 | 0.053381 | 0.053381 | 0.08452 | 0.185053 | 0.185053 | 0.074733 | 0.074733 | 0.074733 | 0 | 0 | 0.008772 | 0.323442 | 2,022 | 64 | 80 | 31.59375 | 0.812866 | 0 | 0 | 0.035714 | 0 | 0 | 0.076657 | 0.022255 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.071429 | 0.071429 | 0.017857 | 0.392857 | 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 |
d96f3eb5e590bbf34c05fb157cdbcbd239587353 | 522 | py | Python | examples/team.py | DarinMao/python-ccs | 73cf6319320b1e13acdce9f7b79128e213e6750b | [
"MIT"
] | null | null | null | examples/team.py | DarinMao/python-ccs | 73cf6319320b1e13acdce9f7b79128e213e6750b | [
"MIT"
] | null | null | null | examples/team.py | DarinMao/python-ccs | 73cf6319320b1e13acdce9f7b79128e213e6750b | [
"MIT"
] | null | null | null | import ccs
team = ccs.team(raw_input("Team Number: "))
summary = team.summary
print "Team {} ({} {}) - {} images ({} points) - {}/{} {}".format(
summary.number, summary.division, summary.location,
summary.images, summary.score, summary.playtime, summary.scoretime,
summary.warn)
for image in team.ima... | 43.5 | 74 | 0.637931 | 61 | 522 | 5.442623 | 0.442623 | 0.042169 | 0.090361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178161 | 522 | 12 | 75 | 43.5 | 0.773893 | 0 | 0 | 0 | 0 | 0 | 0.219885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d97012330ebae7c93600f55d0f782d19e5a41dae | 5,752 | py | Python | anti_sybil/graphs/generators/group_based.py | abramsymons/BrightID-AntiSybil | 86161afe654f46475944ebdb3b5453a1723180d9 | [
"ISC"
] | null | null | null | anti_sybil/graphs/generators/group_based.py | abramsymons/BrightID-AntiSybil | 86161afe654f46475944ebdb3b5453a1723180d9 | [
"ISC"
] | null | null | null | anti_sybil/graphs/generators/group_based.py | abramsymons/BrightID-AntiSybil | 86161afe654f46475944ebdb3b5453a1723180d9 | [
"ISC"
] | 1 | 2020-03-28T05:05:19.000Z | 2020-03-28T05:05:19.000Z | import random
import networkx as nx
from ..node import Node
def generate(input_data):
graph = nx.Graph()
groups_size = [random.choice(range(input_data['min_group_nodes'], input_data['max_group_nodes']+1))
for i in range(input_data['num_groups'])]
num_attacker = int(sum(groups_size) *
... | 42.607407 | 103 | 0.570932 | 703 | 5,752 | 4.439545 | 0.145092 | 0.049023 | 0.034604 | 0.020506 | 0.143223 | 0.084268 | 0.047421 | 0.032682 | 0.032682 | 0.032682 | 0 | 0.007844 | 0.312935 | 5,752 | 134 | 104 | 42.925373 | 0.781883 | 0.010257 | 0 | 0.155738 | 1 | 0 | 0.099314 | 0.012832 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008197 | false | 0 | 0.02459 | 0 | 0.040984 | 0.016393 | 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 |
d978a101e4eebb559e09fff2906b2a39d73becb8 | 3,851 | py | Python | ppt/app.py | fabioacarvalho/Projetos-Praticando | fa0b324c03a0b4bc5d0ed9d55bbc3ce48d67541b | [
"MIT"
] | null | null | null | ppt/app.py | fabioacarvalho/Projetos-Praticando | fa0b324c03a0b4bc5d0ed9d55bbc3ce48d67541b | [
"MIT"
] | null | null | null | ppt/app.py | fabioacarvalho/Projetos-Praticando | fa0b324c03a0b4bc5d0ed9d55bbc3ce48d67541b | [
"MIT"
] | null | null | null | import sys
import random
from design import *
from PyQt5.QtWidgets import QMainWindow, QApplication
from PyQt5 import QtGui
ppt = ['Rock', 'Paper', 'Scissors']
game = []
def aChoice():
esc = random.choice(ppt)
game.append(esc)
class App(QMainWindow, Ui_MainWindow):
def __init__(self, parent=None):
... | 36.67619 | 101 | 0.615684 | 445 | 3,851 | 5.274157 | 0.188764 | 0.081807 | 0.134214 | 0.132936 | 0.72092 | 0.692799 | 0.644227 | 0.624627 | 0.623775 | 0.623775 | 0 | 0.021805 | 0.225915 | 3,851 | 104 | 102 | 37.028846 | 0.765515 | 0.036095 | 0 | 0.5 | 0 | 0 | 0.226685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.064103 | 0 | 0.153846 | 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 |
d97f0714641d6f4865c82aa054acf514505a58ff | 722 | py | Python | scripts/token.py | blockchain-jedi/erc20-contract-template | 4364d131e5046d0534f6b92304e6f91b5e8adb23 | [
"MIT"
] | null | null | null | scripts/token.py | blockchain-jedi/erc20-contract-template | 4364d131e5046d0534f6b92304e6f91b5e8adb23 | [
"MIT"
] | null | null | null | scripts/token.py | blockchain-jedi/erc20-contract-template | 4364d131e5046d0534f6b92304e6f91b5e8adb23 | [
"MIT"
] | null | null | null | #
# Usage:
#
# % brownie console
# >>> from scripts import token
# >>> green = token.main()
# >>> token.issue(green)
# >>> token.transfer(green, accounts[1], accounts[2], 1)
#
from brownie import Token, accounts
admin = accounts[0]
issuer = accounts[1]
holders = accounts[2:9]
max_supply... | 24.066667 | 89 | 0.624654 | 92 | 722 | 4.880435 | 0.413043 | 0.048998 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051146 | 0.214681 | 722 | 29 | 90 | 24.896552 | 0.740741 | 0.278393 | 0 | 0 | 0 | 0 | 0.043137 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0.071429 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d9829ca97d266ae282da297f5160c6bc599cfd00 | 158 | py | Python | whileloop.py | muhrizky/DSC-DataCamp | 3b8f8a7fd29f236a78e2330248d470403757d6b8 | [
"MIT"
] | null | null | null | whileloop.py | muhrizky/DSC-DataCamp | 3b8f8a7fd29f236a78e2330248d470403757d6b8 | [
"MIT"
] | null | null | null | whileloop.py | muhrizky/DSC-DataCamp | 3b8f8a7fd29f236a78e2330248d470403757d6b8 | [
"MIT"
] | null | null | null | offset = -8
while offset != 0 :
print('Benar')
if offset > 0 :
offset = offset -3
else:
offset = offset +2
print(offset) | 15.8 | 26 | 0.5 | 19 | 158 | 4.157895 | 0.526316 | 0.177215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051546 | 0.386076 | 158 | 10 | 27 | 15.8 | 0.762887 | 0 | 0 | 0 | 0 | 0 | 0.031447 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d9869f57875e2690d3cd90cc8428e4dc9378e706 | 2,074 | py | Python | tests/step_defs/test_search_steps.py | aura80/TAU_BDD_Reserved_Selenium_Python_New | cccaa437f1c8f4aa4f47f41ca2d5c0b1d3166035 | [
"MIT"
] | null | null | null | tests/step_defs/test_search_steps.py | aura80/TAU_BDD_Reserved_Selenium_Python_New | cccaa437f1c8f4aa4f47f41ca2d5c0b1d3166035 | [
"MIT"
] | null | null | null | tests/step_defs/test_search_steps.py | aura80/TAU_BDD_Reserved_Selenium_Python_New | cccaa437f1c8f4aa4f47f41ca2d5c0b1d3166035 | [
"MIT"
] | null | null | null | import time
from pytest_bdd import scenarios, when, then, given, parsers
from pages.search import SearchTests
from pages.register_page import RegisterPage
# Scenarios
scenarios('../features/test_register_search_scenario.feature')
@given('open the page')
def open_page(browser):
negative = SearchTests(browser)
... | 28.410959 | 98 | 0.750241 | 274 | 2,074 | 5.507299 | 0.310219 | 0.095427 | 0.095427 | 0.12326 | 0.375083 | 0.277667 | 0.176276 | 0.116634 | 0.072896 | 0 | 0 | 0.003382 | 0.144648 | 2,074 | 73 | 99 | 28.410959 | 0.847238 | 0.067985 | 0 | 0.307692 | 0 | 0 | 0.219398 | 0.025415 | 0 | 0 | 0 | 0 | 0.019231 | 1 | 0.211538 | false | 0.038462 | 0.076923 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d989087921d1b51a7238e387777319d8107f335c | 767 | py | Python | tests/io_test.py | wgfi110/speech | 59a3e2d8d2d99d31cf32e06c1a0751eb36a3c02b | [
"Apache-2.0"
] | 642 | 2017-09-27T01:11:16.000Z | 2022-03-29T11:02:08.000Z | tests/io_test.py | wgfi110/speech | 59a3e2d8d2d99d31cf32e06c1a0751eb36a3c02b | [
"Apache-2.0"
] | 54 | 2017-10-06T18:21:42.000Z | 2021-01-15T07:10:21.000Z | tests/io_test.py | wgfi110/speech | 59a3e2d8d2d99d31cf32e06c1a0751eb36a3c02b | [
"Apache-2.0"
] | 176 | 2017-09-27T16:10:08.000Z | 2022-03-15T03:43:07.000Z | import tempfile
import speech.models
import speech.loader
import shared
def test_save():
freq_dim = 120
model = speech.models.Model(freq_dim,
shared.model_config)
batch_size = 2
data_json = "test.json"
preproc = speech.loader.Preprocessor(data_json)
save_dir = tempfile.... | 23.96875 | 51 | 0.680574 | 109 | 767 | 4.541284 | 0.394495 | 0.157576 | 0.169697 | 0.169697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006656 | 0.216428 | 767 | 31 | 52 | 24.741935 | 0.816972 | 0 | 0 | 0 | 0 | 0 | 0.073012 | 0 | 0 | 0 | 0 | 0 | 0.304348 | 1 | 0.043478 | false | 0 | 0.173913 | 0 | 0.217391 | 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 |
d989c05c96298ca370a7889007b9e02fb326abb5 | 928 | py | Python | image_analyse/Image CDF and PDF.py | TheRockerfly/data_mining_portfolio | a84f1a1a9dc9fec668b81e012e9d130d91227598 | [
"MIT"
] | null | null | null | image_analyse/Image CDF and PDF.py | TheRockerfly/data_mining_portfolio | a84f1a1a9dc9fec668b81e012e9d130d91227598 | [
"MIT"
] | null | null | null | image_analyse/Image CDF and PDF.py | TheRockerfly/data_mining_portfolio | a84f1a1a9dc9fec668b81e012e9d130d91227598 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt # TODO: port away from matplotlib to a seaborn
# Probability Distribution Function (PDF).
# Cumulative Distribution Function (CDF)
# TODO: put all of these functions within a custom function
image = plt.imread('900px-Astronaut-EVA.jpg')
plt.subplot(2, 1, 1)
plt.imshow(image, cmap='gra... | 29.935484 | 79 | 0.693966 | 147 | 928 | 4.380952 | 0.462585 | 0.037267 | 0.034161 | 0.037267 | 0.170807 | 0.10559 | 0.10559 | 0.10559 | 0.10559 | 0 | 0 | 0.037371 | 0.163793 | 928 | 30 | 80 | 30.933333 | 0.792526 | 0.366379 | 0 | 0.111111 | 0 | 0 | 0.165517 | 0.039655 | 0 | 0 | 0 | 0.033333 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d99172d582203a6c9d89885e87dc7fdf395331ed | 2,556 | py | Python | Programming Assignment 3/min Cut.py | TheRevanchist/Design-and-Analysis-of-Algorithms-Part-1 | e41e3a1117258fb6f635c3c734675215dbce5263 | [
"MIT"
] | 1 | 2020-08-02T12:01:56.000Z | 2020-08-02T12:01:56.000Z | Programming Assignment 3/min Cut.py | TheRevanchist/Design-and-Analysis-of-Algorithms-Part-1 | e41e3a1117258fb6f635c3c734675215dbce5263 | [
"MIT"
] | null | null | null | Programming Assignment 3/min Cut.py | TheRevanchist/Design-and-Analysis-of-Algorithms-Part-1 | e41e3a1117258fb6f635c3c734675215dbce5263 | [
"MIT"
] | null | null | null | from random import choice
from copy import deepcopy
def minCut(G):
# the function which randomly chooses the edges and fuses the nodes which are linked with that edge
# input: the graph G, represented by a dictionary
# output: the min cut
# while the graph has more than two nodes, randomly... | 40.571429 | 115 | 0.618153 | 381 | 2,556 | 4.141732 | 0.427822 | 0.019011 | 0.01711 | 0.021546 | 0.032953 | 0.032953 | 0 | 0 | 0 | 0 | 0 | 0.035388 | 0.314554 | 2,556 | 63 | 116 | 40.571429 | 0.865297 | 0.521127 | 0 | 0 | 0 | 0.035714 | 0.091954 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d993b7be2006ba21a11c5f625ad4f43b0951e1e1 | 706 | py | Python | project_organizer/migrations/0009_project_manager_from_time_project_manager_until_time.py | c-Door-in/dvmn-project-organizer | 6e7ccdf6d0e6adfed83be8babd750d6c6f75a83e | [
"MIT"
] | null | null | null | project_organizer/migrations/0009_project_manager_from_time_project_manager_until_time.py | c-Door-in/dvmn-project-organizer | 6e7ccdf6d0e6adfed83be8babd750d6c6f75a83e | [
"MIT"
] | null | null | null | project_organizer/migrations/0009_project_manager_from_time_project_manager_until_time.py | c-Door-in/dvmn-project-organizer | 6e7ccdf6d0e6adfed83be8babd750d6c6f75a83e | [
"MIT"
] | null | null | null | # Generated by Django 4.0.1 on 2022-01-28 00:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('project_organizer', '0008_rename_tg_id_student_tg_user_project_manager_tg_user_and_more'),
]
operations = [
migrations.AddField(
... | 29.416667 | 100 | 0.643059 | 83 | 706 | 5.216867 | 0.542169 | 0.096998 | 0.106236 | 0.124711 | 0.489607 | 0.489607 | 0.489607 | 0.281755 | 0.281755 | 0.281755 | 0 | 0.035985 | 0.252125 | 706 | 23 | 101 | 30.695652 | 0.784091 | 0.063739 | 0 | 0.352941 | 1 | 0 | 0.265554 | 0.100152 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
794ebda12bc12785e1d67a516bc488f2cac0229b | 424 | py | Python | setup_s3_bucket.py | chambridge/aws-cost-mgmt-access | 994d3ed62601469d2d68a67e6806a3601178328a | [
"MIT"
] | null | null | null | setup_s3_bucket.py | chambridge/aws-cost-mgmt-access | 994d3ed62601469d2d68a67e6806a3601178328a | [
"MIT"
] | null | null | null | setup_s3_bucket.py | chambridge/aws-cost-mgmt-access | 994d3ed62601469d2d68a67e6806a3601178328a | [
"MIT"
] | null | null | null | import os
from cloud.aws_service import AwsService
def main():
"""Execute script."""
region = os.environ.get('REGION', 'us-east-1')
s3_bucket = os.environ.get('S3_BUCKET', 'costmgmtacct1234')
aws = AwsService()
result = aws.create_bucket(s3_bucket, region)
if result:
print(f'S3 bucke... | 22.315789 | 63 | 0.653302 | 57 | 424 | 4.736842 | 0.526316 | 0.207407 | 0.155556 | 0.118519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0.207547 | 424 | 18 | 64 | 23.555556 | 0.767857 | 0.035377 | 0 | 0 | 0 | 0 | 0.277916 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.25 | 0.166667 | 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 |
7951a7941dd6bc9bef1b322015def6a9a9e06453 | 328 | py | Python | app/pit/forms.py | edynox/iis | 594200506b641cbac249dc6e95d229bea1edeb28 | [
"MIT"
] | null | null | null | app/pit/forms.py | edynox/iis | 594200506b641cbac249dc6e95d229bea1edeb28 | [
"MIT"
] | null | null | null | app/pit/forms.py | edynox/iis | 594200506b641cbac249dc6e95d229bea1edeb28 | [
"MIT"
] | null | null | null | from django.forms import ModelForm
from ..models import Pit
class PitForm(ModelForm):
class Meta:
model = Pit
fields = ['location']
def __init__(self, *args, **kwargs):
super(ModelForm, self).__init__(*args, **kwargs)
self.fields['location'].widget.attrs['class'] = 'form-co... | 25.230769 | 70 | 0.631098 | 37 | 328 | 5.378378 | 0.621622 | 0.140704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228659 | 328 | 12 | 71 | 27.333333 | 0.786561 | 0 | 0 | 0 | 0 | 0 | 0.100917 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7952969e6d0b68c2f855a88488afaf384b30fc3f | 2,377 | py | Python | days/day_04/main.py | gkpotter/advent-of-code-2020 | 76ed77719a8f6396511dabce99d46995946edb01 | [
"MIT"
] | null | null | null | days/day_04/main.py | gkpotter/advent-of-code-2020 | 76ed77719a8f6396511dabce99d46995946edb01 | [
"MIT"
] | null | null | null | days/day_04/main.py | gkpotter/advent-of-code-2020 | 76ed77719a8f6396511dabce99d46995946edb01 | [
"MIT"
] | null | null | null | import time
import os
def all_fields_present(passport):
fields = ['byr','iyr','eyr','hgt','hcl','ecl','pid']
for field in fields:
if field not in passport:
return False
return True
def is_valid(passport):
if not all_fields_present(passport):
return False
byr = passport['byr']
if not (is_year(byr) and i... | 20.491379 | 76 | 0.641565 | 391 | 2,377 | 3.757033 | 0.265985 | 0.089857 | 0.021784 | 0.049013 | 0.250511 | 0.172907 | 0.098026 | 0.098026 | 0.070796 | 0.070796 | 0 | 0.02814 | 0.19268 | 2,377 | 116 | 77 | 20.491379 | 0.737363 | 0 | 0 | 0.352941 | 0 | 0 | 0.058452 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105882 | false | 0.305882 | 0.023529 | 0.011765 | 0.376471 | 0.035294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
79539f171b11d067d372dd7f773b3f28ca1c0d21 | 5,696 | py | Python | caller.py | xopherw/algotrader | 6daafe165d7eb4d5d34b2a7051e102f15bcb71dd | [
"MIT"
] | null | null | null | caller.py | xopherw/algotrader | 6daafe165d7eb4d5d34b2a7051e102f15bcb71dd | [
"MIT"
] | null | null | null | caller.py | xopherw/algotrader | 6daafe165d7eb4d5d34b2a7051e102f15bcb71dd | [
"MIT"
] | 1 | 2022-01-19T14:49:42.000Z | 2022-01-19T14:49:42.000Z | import requests, datetime as dt, numpy as np, pandas as pd, pytz
from dateutil.relativedelta import relativedelta
# Call for raw data (NASDAQ)
def nsdq_data(ticker):
try:
today = dt.datetime.now(pytz.timezone('US/Eastern')).date()
past = today - relativedelta(years= 5)
price = current_pric... | 34.107784 | 119 | 0.548631 | 703 | 5,696 | 4.399716 | 0.243243 | 0.052376 | 0.049467 | 0.052376 | 0.455545 | 0.335597 | 0.320724 | 0.320724 | 0.309408 | 0.309408 | 0 | 0.009059 | 0.302317 | 5,696 | 167 | 120 | 34.107784 | 0.76925 | 0.086728 | 0 | 0.443662 | 0 | 0 | 0.217618 | 0.011565 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06338 | false | 0.06338 | 0.014085 | 0 | 0.133803 | 0.070423 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
79627b9bf273d6f20eed09dec297c797623cc255 | 4,773 | py | Python | tests/app/dao/test_inbound_shortnumbers_dao.py | GouvQC/notification-api | e865b8b92a9a45c7cee006f427dcf77d71b09d6d | [
"MIT"
] | 1 | 2021-08-13T13:46:04.000Z | 2021-08-13T13:46:04.000Z | tests/app/dao/test_inbound_shortnumbers_dao.py | GouvQC/notification-api | e865b8b92a9a45c7cee006f427dcf77d71b09d6d | [
"MIT"
] | null | null | null | tests/app/dao/test_inbound_shortnumbers_dao.py | GouvQC/notification-api | e865b8b92a9a45c7cee006f427dcf77d71b09d6d | [
"MIT"
] | 1 | 2021-09-29T18:25:48.000Z | 2021-09-29T18:25:48.000Z | import pytest
from sqlalchemy.exc import IntegrityError
from app.dao.inbound_shortnumbers_dao import (
dao_get_inbound_shortnumbers,
dao_get_inbound_shortnumber_for_service,
dao_get_available_inbound_shortnumbers,
dao_set_inbound_shortnumber_to_service,
dao_set_inbound_shortnumber_active_flag,
... | 39.775 | 125 | 0.803059 | 601 | 4,773 | 5.918469 | 0.141431 | 0.23278 | 0.04217 | 0.069722 | 0.67079 | 0.594321 | 0.535845 | 0.458814 | 0.445319 | 0.392747 | 0 | 0.010843 | 0.130526 | 4,773 | 119 | 126 | 40.109244 | 0.846265 | 0 | 0 | 0.294872 | 0 | 0 | 0.04714 | 0 | 0 | 0 | 0 | 0 | 0.205128 | 1 | 0.128205 | false | 0 | 0.064103 | 0 | 0.192308 | 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 |
7965ee6a115e0d8899378fe759bfe0554e1bc195 | 1,657 | py | Python | prymate/token/token.py | NightShade256/prymate | deeb81ab685854599d803719971e85ead6699a90 | [
"MIT"
] | 6 | 2020-06-22T14:54:55.000Z | 2021-12-13T12:33:21.000Z | prymate/token/token.py | NightShade256/prymate | deeb81ab685854599d803719971e85ead6699a90 | [
"MIT"
] | null | null | null | prymate/token/token.py | NightShade256/prymate | deeb81ab685854599d803719971e85ead6699a90 | [
"MIT"
] | 1 | 2020-10-11T18:31:57.000Z | 2020-10-11T18:31:57.000Z | import enum
__all__ = ["TokenType", "Token", "lookup_ident"]
class TokenType(enum.Enum):
"""The enumeration for different types of tokens."""
ILLEGAL = "ILLEGAL"
EOF = "EOF"
# Identifiers and literals
IDENT = "IDENT"
INT = "INT"
STRING = "STRING"
# Operators
ASSIGN = "="
PL... | 19.045977 | 65 | 0.540133 | 168 | 1,657 | 5.214286 | 0.440476 | 0.027397 | 0.02968 | 0.031963 | 0.107306 | 0.107306 | 0.107306 | 0.107306 | 0.107306 | 0.107306 | 0 | 0 | 0.292698 | 1,657 | 86 | 66 | 19.267442 | 0.74744 | 0.113458 | 0 | 0.033898 | 0 | 0 | 0.169199 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067797 | false | 0 | 0.016949 | 0.033898 | 0.762712 | 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 |
796742832becd9376d9f4aeeea9d21e1ba36ad8f | 6,343 | py | Python | admin/views.py | dob9601/CollaboDev | cb1c3e3c6106ec8b0db8b570204b7fd959e0284e | [
"MIT"
] | 7 | 2018-01-22T23:21:42.000Z | 2021-01-27T12:06:02.000Z | admin/views.py | ViesLink/CollaboDev | 1ab51f4d5e58dd8610861095632e1cd7f91edc21 | [
"MIT"
] | 9 | 2018-03-05T23:54:12.000Z | 2022-02-10T10:54:56.000Z | admin/views.py | ViesLink/CollaboDev | 1ab51f4d5e58dd8610861095632e1cd7f91edc21 | [
"MIT"
] | 2 | 2020-09-30T01:27:27.000Z | 2021-01-27T12:05:46.000Z | """Views for admin app."""
import random
import os
import requests
from django.shortcuts import render
from django.contrib.auth.models import User
from django.contrib.auth.decorators import user_passes_test
from django.http import HttpResponseRedirect, JsonResponse
from django.urls import reverse
from djan... | 31.715 | 80 | 0.610752 | 710 | 6,343 | 5.304225 | 0.24507 | 0.040892 | 0.026022 | 0.031864 | 0.241901 | 0.193309 | 0.132236 | 0.132236 | 0.086033 | 0.066915 | 0 | 0.00856 | 0.281728 | 6,343 | 199 | 81 | 31.874372 | 0.818042 | 0.096011 | 0 | 0.23741 | 0 | 0 | 0.121389 | 0.008775 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057554 | false | 0.122302 | 0.071942 | 0 | 0.194245 | 0.007194 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
796e2d57bc64a8e281c2292d35bc9ea91f00edac | 1,344 | py | Python | tests/test_key.py | ksurdacki/cipher21 | 8dfdab32299cb8377435e5f57ec6a9aaf33891eb | [
"MIT"
] | 2 | 2021-05-02T21:15:38.000Z | 2021-05-03T07:45:09.000Z | tests/test_key.py | ksurdacki/cipher21 | 8dfdab32299cb8377435e5f57ec6a9aaf33891eb | [
"MIT"
] | null | null | null | tests/test_key.py | ksurdacki/cipher21 | 8dfdab32299cb8377435e5f57ec6a9aaf33891eb | [
"MIT"
] | null | null | null | from unittest import TestCase
from random import Random
from cipher21.key import Cipher21Key
from cipher21.constants import KEY_LENGTH
class AssessKeyTest(TestCase):
def test_positive_cases(self):
prng = Random() # For test repetitiveness purpose only. Use SystemRandom ordinarily.
prng.seed(0xB... | 37.333333 | 93 | 0.665923 | 156 | 1,344 | 5.615385 | 0.320513 | 0.136986 | 0.159817 | 0.205479 | 0.446347 | 0.446347 | 0.446347 | 0.446347 | 0.385845 | 0.321918 | 0 | 0.079334 | 0.240327 | 1,344 | 35 | 94 | 38.4 | 0.778648 | 0.049107 | 0 | 0.4 | 0 | 0 | 0.028213 | 0.025078 | 0 | 0 | 0.026646 | 0 | 0.2 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.233333 | 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 |
7970c64577da21a05fff8a9ac2d82e4f99958f7a | 4,520 | py | Python | pathUtils.py | Noboxxx/ctrlShaper | 0c1e30610be711f51230a8ebd1288d628409e0f9 | [
"MIT"
] | null | null | null | pathUtils.py | Noboxxx/ctrlShaper | 0c1e30610be711f51230a8ebd1288d628409e0f9 | [
"MIT"
] | null | null | null | pathUtils.py | Noboxxx/ctrlShaper | 0c1e30610be711f51230a8ebd1288d628409e0f9 | [
"MIT"
] | null | null | null | import os
import json
from maya import cmds
import re
def conform_path(path):
return join_path(*split_path(path.replace('\\', '/')))
def join_path(*args):
path = list()
for arg in args:
parts = split_path(arg)
for part in parts:
part = str(part)
if part:
... | 28.074534 | 112 | 0.606195 | 602 | 4,520 | 4.337209 | 0.181063 | 0.088855 | 0.029491 | 0.019916 | 0.323248 | 0.211413 | 0.157028 | 0.107239 | 0.081195 | 0.081195 | 0 | 0.003616 | 0.265708 | 4,520 | 160 | 113 | 28.25 | 0.783067 | 0 | 0 | 0.140496 | 0 | 0 | 0.05885 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214876 | false | 0.008264 | 0.033058 | 0.090909 | 0.479339 | 0.033058 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
797e4e1803afd3fcc981a76ff3c6d7fb99ce8aa0 | 7,462 | py | Python | zfunc.py | zhuligs/Pallas | c8d77d0963c080fa7331560f1659001488b0328f | [
"MIT"
] | null | null | null | zfunc.py | zhuligs/Pallas | c8d77d0963c080fa7331560f1659001488b0328f | [
"MIT"
] | null | null | null | zfunc.py | zhuligs/Pallas | c8d77d0963c080fa7331560f1659001488b0328f | [
"MIT"
] | null | null | null | import numpy as np
import itdbase
from itdbase import Cell
import itin
from copy import deepcopy as cp
import cPickle as pick
# from tsase.optimize import MDMin
from ase.optimize.fire import FIRE
# from ase.optimize import BFGS
from ase import *
from ase.io import read, write
import os
import sys
import numpy as np
fr... | 28.158491 | 79 | 0.597829 | 1,138 | 7,462 | 3.814587 | 0.1942 | 0.022115 | 0.014513 | 0.020733 | 0.430316 | 0.40751 | 0.362129 | 0.316056 | 0.269523 | 0.260309 | 0 | 0.036309 | 0.243366 | 7,462 | 264 | 80 | 28.265152 | 0.732554 | 0.079067 | 0 | 0.397129 | 0 | 0 | 0.08787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.08134 | null | null | 0.023923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
797e80a621441acbd16bae2574af1c39fbbbbfb6 | 1,113 | py | Python | ckanext/issues/commands.py | rhabbachi/ckanext-issues | d8c3dde8372e88dd5dc173023df34c90034ca777 | [
"MIT"
] | 8 | 2016-06-16T20:45:54.000Z | 2020-09-24T12:06:15.000Z | ckanext/issues/commands.py | rhabbachi/ckanext-issues | d8c3dde8372e88dd5dc173023df34c90034ca777 | [
"MIT"
] | 50 | 2015-03-25T16:59:11.000Z | 2016-01-10T21:35:26.000Z | ckanext/issues/commands.py | rhabbachi/ckanext-issues | d8c3dde8372e88dd5dc173023df34c90034ca777 | [
"MIT"
] | 11 | 2016-09-14T13:34:53.000Z | 2020-08-28T05:48:58.000Z | from ckan.lib.cli import CkanCommand
import logging
import sys
class Issues(CkanCommand):
"""
Usage:
paster issues init_db
- Creates the database table issues needs to run
paster issues upgrade_db
- Does any database migrations required (idempotent)
"""
summary... | 25.883721 | 69 | 0.57053 | 131 | 1,113 | 4.709924 | 0.549618 | 0.045381 | 0.029173 | 0.061588 | 0.181524 | 0.181524 | 0 | 0 | 0 | 0 | 0 | 0.005355 | 0.328841 | 1,113 | 42 | 70 | 26.5 | 0.820616 | 0 | 0 | 0 | 0 | 0 | 0.137637 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.217391 | null | null | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
798152a21d0084126235c34a6bada661f5af6a43 | 1,984 | py | Python | symmetricom_raspberrypi_clock.py | wkumari/symmetricom-nd4-python | 08ff7dc56f52667ad885817a3afbb97c879d5f48 | [
"Apache-2.0"
] | null | null | null | symmetricom_raspberrypi_clock.py | wkumari/symmetricom-nd4-python | 08ff7dc56f52667ad885817a3afbb97c879d5f48 | [
"Apache-2.0"
] | null | null | null | symmetricom_raspberrypi_clock.py | wkumari/symmetricom-nd4-python | 08ff7dc56f52667ad885817a3afbb97c879d5f48 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Copyright (c) 2017 Warren Kumari
"""
This small program uses a Raspberry Pi Zero W to drive the display portion
of a Symmetricom ND-4 display.
This replaces the processor board of the ND-4, and powers the Pi from the
internal ND-4 power supply. The original processor board simply drives a
MAX7... | 32 | 116 | 0.697077 | 318 | 1,984 | 4.339623 | 0.522013 | 0.008696 | 0.028261 | 0.015942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047044 | 0.207157 | 1,984 | 61 | 117 | 32.52459 | 0.830261 | 0.666331 | 0 | 0.315789 | 0 | 0 | 0.017161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.315789 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
79847f99b109a82c82b372de1f58d473f2ed39a1 | 2,611 | py | Python | psana/psana/pscalib/dcs/lcls1/DCConfigParameters.py | JBlaschke/lcls2 | 30523ef069e823535475d68fa283c6387bcf817b | [
"BSD-3-Clause-LBNL"
] | 16 | 2017-11-09T17:10:56.000Z | 2022-03-09T23:03:10.000Z | psana/psana/pscalib/dcs/lcls1/DCConfigParameters.py | JBlaschke/lcls2 | 30523ef069e823535475d68fa283c6387bcf817b | [
"BSD-3-Clause-LBNL"
] | 6 | 2017-12-12T19:30:05.000Z | 2020-07-09T00:28:33.000Z | psana/psana/pscalib/dcs/lcls1/DCConfigParameters.py | JBlaschke/lcls2 | 30523ef069e823535475d68fa283c6387bcf817b | [
"BSD-3-Clause-LBNL"
] | 25 | 2017-09-18T20:02:43.000Z | 2022-03-27T22:27:42.000Z | ####!/usr/bin/env python
#----------------------------
"""
:py:class:`DCConfigParameters` - class supporting configuration parameters for application
==========================================================================================
See:
* :py:class:`DCStore`
* :py:class:`DCType`
* :py:class:`DCRan... | 32.6375 | 124 | 0.579088 | 266 | 2,611 | 5.515038 | 0.466165 | 0.066803 | 0.06544 | 0.03681 | 0.111111 | 0.083163 | 0.083163 | 0.083163 | 0.083163 | 0.083163 | 0 | 0.006075 | 0.180391 | 2,611 | 79 | 125 | 33.050633 | 0.679439 | 0.184987 | 0 | 0 | 0 | 0 | 0.111301 | 0.02226 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.12 | null | null | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
798a3cc03589f18c700fa6bcef79b697f3535128 | 22,751 | py | Python | limonero/models.py | eubr-bigsea/limonero | 54851b73bb1e4f5626b3d38ea7eeb50f3ed2e3c5 | [
"Apache-2.0"
] | 1 | 2018-01-01T20:35:43.000Z | 2018-01-01T20:35:43.000Z | limonero/models.py | eubr-bigsea/limonero | 54851b73bb1e4f5626b3d38ea7eeb50f3ed2e3c5 | [
"Apache-2.0"
] | 37 | 2017-02-24T17:07:25.000Z | 2021-09-02T14:49:19.000Z | limonero/models.py | eubr-bigsea/limonero | 54851b73bb1e4f5626b3d38ea7eeb50f3ed2e3c5 | [
"Apache-2.0"
] | 2 | 2019-11-05T13:45:45.000Z | 2020-11-13T22:02:37.000Z | import datetime
import json
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy import Column, Integer, String, Boolean, ForeignKey, Float, \
Enum, DateTime, Numeric, Text, Unicode, UnicodeText
from sqlalchemy import event
from sqlalchemy.dialects.mysql import LONGTEXT
from sqlalchemy.sql import func
from sqlal... | 33.213139 | 107 | 0.594611 | 2,168 | 22,751 | 5.976476 | 0.147601 | 0.069229 | 0.040519 | 0.027012 | 0.541329 | 0.50876 | 0.420313 | 0.398626 | 0.379023 | 0.326233 | 0 | 0.008925 | 0.30069 | 22,751 | 684 | 108 | 33.261696 | 0.805468 | 0.045668 | 0 | 0.45951 | 0 | 0 | 0.132377 | 0.042074 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065913 | false | 0 | 0.018832 | 0.065913 | 0.645951 | 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 |
798d7fd532e84917e31256f8642a90e8a7bd3c0f | 2,392 | py | Python | cognite/transformations_cli/commands/deploy/transformation_types.py | cognitedata/transformations-cli | 7466cd8dcb30829793e0026d0b2eae62c3df5f6b | [
"Apache-2.0"
] | 1 | 2022-02-01T09:54:52.000Z | 2022-02-01T09:54:52.000Z | cognite/transformations_cli/commands/deploy/transformation_types.py | cognitedata/transformations-cli | 7466cd8dcb30829793e0026d0b2eae62c3df5f6b | [
"Apache-2.0"
] | 19 | 2021-11-12T13:21:17.000Z | 2022-03-28T14:34:00.000Z | cognite/transformations_cli/commands/deploy/transformation_types.py | cognitedata/transformations-cli | 7466cd8dcb30829793e0026d0b2eae62c3df5f6b | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass, field
from enum import Enum
from typing import List, Optional, Union
class DestinationType(Enum):
assets = "assets"
timeseries = "timeseries"
asset_hierarchy = "asset_hierarchy"
events = "events"
datapoints = "datapoints"
string_datapoints = "string_datapoint... | 23.45098 | 133 | 0.701923 | 254 | 2,392 | 6.440945 | 0.440945 | 0.067237 | 0.047677 | 0.028117 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210702 | 2,392 | 101 | 134 | 23.683168 | 0.866525 | 0.119565 | 0 | 0.086957 | 0 | 0 | 0.086048 | 0.01264 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014493 | false | 0 | 0.043478 | 0 | 0.884058 | 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 |
798fc2e845f5bf9a57d8e39d930d847c7c266425 | 1,851 | py | Python | org/openbaton/v2/events.py | openbaton/openbaton-cli | 4d2f894c0b6d821fa41e03caca880467de90d8fe | [
"Apache-2.0"
] | 2 | 2017-07-24T11:33:27.000Z | 2020-05-09T00:21:49.000Z | org/openbaton/v2/events.py | openbaton/openbaton-cli | 4d2f894c0b6d821fa41e03caca880467de90d8fe | [
"Apache-2.0"
] | 5 | 2017-06-09T14:28:50.000Z | 2018-07-05T10:46:40.000Z | org/openbaton/v2/events.py | openbaton/openbaton-cli | 4d2f894c0b6d821fa41e03caca880467de90d8fe | [
"Apache-2.0"
] | 2 | 2017-06-09T13:27:27.000Z | 2017-07-18T21:01:59.000Z | import logging
from org.openbaton.v2.cmd import BaseObCmd
from org.openbaton.v2.utils import get_result_to_list, get_result_to_show, parse_path_or_json, result_to_str
class Events(BaseObCmd):
"""Command to manage event endpoints: it is possible to:
* show details of a specific event endpoint passing an ... | 39.382979 | 114 | 0.611021 | 243 | 1,851 | 4.399177 | 0.288066 | 0.067353 | 0.05145 | 0.056127 | 0.449018 | 0.42189 | 0.42189 | 0.333957 | 0.333957 | 0.292797 | 0 | 0.003885 | 0.3047 | 1,851 | 46 | 115 | 40.23913 | 0.826729 | 0.15289 | 0 | 0.354839 | 0 | 0 | 0.089836 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0 | 0.096774 | 0.032258 | 0.580645 | 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 |
7990148f4b787430b9e80ecbae6f2daea018109e | 6,390 | py | Python | tests/bugs/gh_5995_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2022-02-05T11:37:13.000Z | 2022-02-05T11:37:13.000Z | tests/bugs/gh_5995_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2021-09-03T11:47:00.000Z | 2021-09-03T12:42:10.000Z | tests/bugs/gh_5995_test.py | FirebirdSQL/firebird-qa | 96af2def7f905a06f178e2a80a2c8be4a4b44782 | [
"MIT"
] | 1 | 2021-06-30T14:14:16.000Z | 2021-06-30T14:14:16.000Z | #coding:utf-8
#
# id: bugs.gh_5995
# title: Connection to server may hang when working with encrypted databases over non-TCP protocol [CORE5730]
# decription:
# https://github.com/FirebirdSQL/firebird/issues/5995
#
# Test implemented only to be run ... | 38.035714 | 140 | 0.596557 | 873 | 6,390 | 4.201604 | 0.367698 | 0.014995 | 0.024537 | 0.020992 | 0.097056 | 0.056707 | 0.023991 | 0.023991 | 0.023991 | 0.023991 | 0 | 0.022133 | 0.25759 | 6,390 | 167 | 141 | 38.263473 | 0.751054 | 0.869327 | 0 | 0 | 0 | 0 | 0.189953 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7996085f7d2fbdd5bdf9904904104dd2b1da88ab | 645 | py | Python | backend/pages/migrations/0002_add_streamfield_option.py | nicoepp/the-prayer-walk | 6c8217c33f399cfe46dc23075e13ca9464079cae | [
"MIT"
] | null | null | null | backend/pages/migrations/0002_add_streamfield_option.py | nicoepp/the-prayer-walk | 6c8217c33f399cfe46dc23075e13ca9464079cae | [
"MIT"
] | null | null | null | backend/pages/migrations/0002_add_streamfield_option.py | nicoepp/the-prayer-walk | 6c8217c33f399cfe46dc23075e13ca9464079cae | [
"MIT"
] | null | null | null | # Generated by Django 3.1.4 on 2021-02-04 05:25
from django.db import migrations
import wagtail.core.blocks
import wagtail.core.fields
class Migration(migrations.Migration):
dependencies = [
('pages', '0001_add_homepage'),
]
operations = [
migrations.AlterField(
model_name='... | 30.714286 | 271 | 0.669767 | 73 | 645 | 5.835616 | 0.616438 | 0.15493 | 0.159624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03619 | 0.186047 | 645 | 20 | 272 | 32.25 | 0.775238 | 0.069767 | 0 | 0 | 1 | 0 | 0.108696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
799b9f43022008e2e03ab6f0fb315d88d195a221 | 348 | py | Python | by-session/class-921/week2/poly.py | amiraliakbari/sharif-mabani-python | 5d14a08d165267fe71c28389ddbafe29af7078c5 | [
"MIT"
] | 2 | 2015-04-29T20:59:35.000Z | 2018-09-26T13:33:43.000Z | by-session/class-921/week2/poly.py | amiraliakbari/sharif-mabani-python | 5d14a08d165267fe71c28389ddbafe29af7078c5 | [
"MIT"
] | null | null | null | by-session/class-921/week2/poly.py | amiraliakbari/sharif-mabani-python | 5d14a08d165267fe71c28389ddbafe29af7078c5 | [
"MIT"
] | null | null | null | import turtle
def circle():
while turtle.heading() < 359:
turtle.forward(1)
turtle.left(1)
turtle.left(1)
def poly(r, teta):
n = 360 / teta
while n > 0:
n = n - 1
turtle.forward(r)
turtle.left(teta)
n = 10
while n > 0:
n = n - 1
poly(10, 30)
turtle.... | 14.5 | 33 | 0.522989 | 52 | 348 | 3.5 | 0.384615 | 0.214286 | 0.120879 | 0.131868 | 0.10989 | 0.10989 | 0 | 0 | 0 | 0 | 0 | 0.091703 | 0.341954 | 348 | 23 | 34 | 15.130435 | 0.703057 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.055556 | 0 | 0.166667 | 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 |
799d1aa404d567219c68dbf1a4e8d983c39bc395 | 389 | py | Python | helpers/cast_heal.py | nuzcraft/RLTut | b763de87ee49abd413a7c3a278c004803ab45663 | [
"MIT"
] | 2 | 2018-01-05T08:09:37.000Z | 2018-01-05T20:39:18.000Z | helpers/cast_heal.py | nuzcraft/RLTut | b763de87ee49abd413a7c3a278c004803ab45663 | [
"MIT"
] | null | null | null | helpers/cast_heal.py | nuzcraft/RLTut | b763de87ee49abd413a7c3a278c004803ab45663 | [
"MIT"
] | null | null | null | # function that heals the player
import variables as var
from helpers.message import message
def cast_heal():
# heal the player
if var.player.fighter.hp == var.player.fighter.max_hp:
message('You are already at full health.', 'red')
return 'cancelled'
message('Your wounds start to feel bet... | 27.785714 | 64 | 0.701799 | 56 | 389 | 4.821429 | 0.660714 | 0.1 | 0.177778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197943 | 389 | 13 | 65 | 29.923077 | 0.865385 | 0.118252 | 0 | 0 | 0 | 0 | 0.259587 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
79a273cc97d15a6de92f6c405beb9d31e30fa60e | 6,269 | py | Python | network_filters.py | luos/nova-latency-scheduler | 8e83539ce1dfd080ba86e4e71a2b999e56a91ec8 | [
"MIT"
] | 1 | 2017-03-28T19:02:23.000Z | 2017-03-28T19:02:23.000Z | network_filters.py | luos/nova-latency-scheduler | 8e83539ce1dfd080ba86e4e71a2b999e56a91ec8 | [
"MIT"
] | null | null | null | network_filters.py | luos/nova-latency-scheduler | 8e83539ce1dfd080ba86e4e71a2b999e56a91ec8 | [
"MIT"
] | null | null | null | from abc import ABCMeta, abstractmethod
from collections import namedtuple
from nova.objects.request_spec import RequestSpec
from nova.scheduler.host_manager import HostState
from oslo_log import log as logging
import nova.conf
from nova.scheduler.filters import BaseHostFilter
from latency_meter.server import start_... | 29.7109 | 113 | 0.590206 | 658 | 6,269 | 5.348024 | 0.168693 | 0.02387 | 0.012504 | 0.02387 | 0.231316 | 0.191532 | 0.108554 | 0.057403 | 0.032964 | 0 | 0 | 0.022951 | 0.318871 | 6,269 | 210 | 114 | 29.852381 | 0.801171 | 0.042112 | 0 | 0.282759 | 0 | 0 | 0.066883 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.110345 | false | 0.068966 | 0.055172 | 0.027586 | 0.358621 | 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 |
79b1464dc8a1a2223cbbc525bfa7851ed4e2bee9 | 1,408 | py | Python | lego/apps/gallery/migrations/0006_auto_20171210_1610.py | ollfkaih/lego | b15aacaf09efe90e7f984d25b0e7bddbe12647e8 | [
"MIT"
] | 45 | 2017-10-24T12:09:06.000Z | 2021-11-03T21:21:03.000Z | lego/apps/gallery/migrations/0006_auto_20171210_1610.py | ollfkaih/lego | b15aacaf09efe90e7f984d25b0e7bddbe12647e8 | [
"MIT"
] | 980 | 2017-10-24T12:29:07.000Z | 2022-03-31T04:04:31.000Z | lego/apps/gallery/migrations/0006_auto_20171210_1610.py | wahello/lego | a0b02f3abc997fe96326e9c9c05b49847170041b | [
"MIT"
] | 23 | 2018-04-11T16:34:22.000Z | 2021-11-23T12:28:30.000Z | # Generated by Django 2.0 on 2017-12-10 16:10
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("gallery", "0005_auto_20170912_1708")]
operations = [
migrations.AlterField(
m... | 29.333333 | 61 | 0.52983 | 132 | 1,408 | 5.477273 | 0.371212 | 0.055325 | 0.077455 | 0.121715 | 0.611342 | 0.547718 | 0.381743 | 0.381743 | 0.381743 | 0.381743 | 0 | 0.034091 | 0.375 | 1,408 | 47 | 62 | 29.957447 | 0.7875 | 0.03054 | 0 | 0.658537 | 1 | 0 | 0.093177 | 0.016875 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.073171 | 0 | 0.146341 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
79b68a6d1a405ace81c0d0f659613828d57db047 | 3,203 | py | Python | data/make_stterror_data/tts.py | gcunhase/StackedDeBERT | 82777114fd99cafc6e2a3d760e774f007c563245 | [
"MIT"
] | 32 | 2020-01-03T09:53:03.000Z | 2021-09-07T07:23:26.000Z | data/make_stterror_data/tts.py | gcunhase/StackedDeBERT | 82777114fd99cafc6e2a3d760e774f007c563245 | [
"MIT"
] | null | null | null | data/make_stterror_data/tts.py | gcunhase/StackedDeBERT | 82777114fd99cafc6e2a3d760e774f007c563245 | [
"MIT"
] | 6 | 2020-01-21T06:50:21.000Z | 2021-01-22T08:04:00.000Z | import data.make_stterror_data.utils as utils
import os
import sys
import subprocess
# TTS imports
from gtts import gTTS
import pyttsx3
# sys.path.append("~/PycharmProjects/pyfestival") # https://github.com/techiaith/pyfestival/pull/4
# import festival
__author__ = 'Gwena Cunha'
"""
Text-To-Speech Module
"""
... | 42.706667 | 127 | 0.675617 | 417 | 3,203 | 4.815348 | 0.242206 | 0.144422 | 0.25996 | 0.146414 | 0.552291 | 0.49253 | 0.454183 | 0.454183 | 0.454183 | 0.454183 | 0 | 0.004356 | 0.211677 | 3,203 | 74 | 128 | 43.283784 | 0.790891 | 0.252264 | 0 | 0.227273 | 0 | 0 | 0.062367 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.136364 | 0 | 0.340909 | 0.022727 | 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 |
79bc0b508670cb51847c1e5dbe41b345258f4db3 | 263 | py | Python | Python Advanced/Advanced/Multidimensional Lists/Lab/Task04.py | IvanTodorovBG/SoftUni | 7b667f6905d9f695ab1484efbb02b6715f6d569e | [
"MIT"
] | 1 | 2022-03-16T10:23:04.000Z | 2022-03-16T10:23:04.000Z | Python Advanced/Advanced/Multidimensional Lists/Lab/Task04.py | IvanTodorovBG/SoftUni | 7b667f6905d9f695ab1484efbb02b6715f6d569e | [
"MIT"
] | null | null | null | Python Advanced/Advanced/Multidimensional Lists/Lab/Task04.py | IvanTodorovBG/SoftUni | 7b667f6905d9f695ab1484efbb02b6715f6d569e | [
"MIT"
] | null | null | null | rows, columns = [int(x) for x in input().split(", ")]
matrix = [[int(i) for i in input().split()] for _ in range(rows)]
for column in range(columns):
sum_column = 0
for row in range(rows):
sum_column += matrix[row][column]
print(sum_column)
| 26.3 | 65 | 0.619772 | 42 | 263 | 3.785714 | 0.380952 | 0.132075 | 0.150943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004854 | 0.21673 | 263 | 9 | 66 | 29.222222 | 0.76699 | 0 | 0 | 0 | 0 | 0 | 0.007605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
79bc840d240556a6ff5b245bea2de77b90bf2da0 | 470 | py | Python | mysite/news/forms.py | rsg33/testsite | 939e5c25f2e128c30d4a8593337059971587dd3c | [
"MIT"
] | null | null | null | mysite/news/forms.py | rsg33/testsite | 939e5c25f2e128c30d4a8593337059971587dd3c | [
"MIT"
] | null | null | null | mysite/news/forms.py | rsg33/testsite | 939e5c25f2e128c30d4a8593337059971587dd3c | [
"MIT"
] | null | null | null | from django import forms
from .models import News
class NewsForm(forms.ModelForm):
class Meta:
model = News
# fields = '__all__'
fields = ['title', 'content', 'is_published', 'category']
widgets = {
'title': forms.TextInput(attrs={'class': 'form-control'}),
... | 33.571429 | 82 | 0.574468 | 48 | 470 | 5.520833 | 0.5625 | 0.113208 | 0.158491 | 0.237736 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002865 | 0.257447 | 470 | 14 | 83 | 33.571429 | 0.756447 | 0.038298 | 0 | 0 | 0 | 0 | 0.237251 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.363636 | 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 |
79c473b0364a6ca1e495e68f26cc755757c8686b | 604 | py | Python | servicebox/platforms/api/views.py | FlxPeters/servicebox | 2fc39fa5ec6e629a0794fda003a7a0e4adf05202 | [
"Apache-2.0"
] | null | null | null | servicebox/platforms/api/views.py | FlxPeters/servicebox | 2fc39fa5ec6e629a0794fda003a7a0e4adf05202 | [
"Apache-2.0"
] | null | null | null | servicebox/platforms/api/views.py | FlxPeters/servicebox | 2fc39fa5ec6e629a0794fda003a7a0e4adf05202 | [
"Apache-2.0"
] | null | null | null | from platforms.models import PlatformGroup, Platform
from rest_framework import viewsets
from platforms.api.serializers import PlatformGroupSerializer, PlatformSerializer
class PlatformViewSet(viewsets.ModelViewSet):
"""
API endpoint that allows tenants to be viewed or edited.
"""
queryset = Platform... | 27.454545 | 81 | 0.768212 | 61 | 604 | 7.557377 | 0.52459 | 0.056399 | 0.099783 | 0.13449 | 0.290672 | 0.290672 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167219 | 604 | 21 | 82 | 28.761905 | 0.916501 | 0.19702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
79ca87eadda13d9fdb7282bf224ad560fc96b076 | 2,392 | py | Python | expression_builder/tests/test_string_replace.py | django-advance-utils/expression-builder | 08dab5780ae3a8be90c4daa6b9950ad1af4d87a4 | [
"MIT"
] | null | null | null | expression_builder/tests/test_string_replace.py | django-advance-utils/expression-builder | 08dab5780ae3a8be90c4daa6b9950ad1af4d87a4 | [
"MIT"
] | null | null | null | expression_builder/tests/test_string_replace.py | django-advance-utils/expression-builder | 08dab5780ae3a8be90c4daa6b9950ad1af4d87a4 | [
"MIT"
] | null | null | null | import unittest
from expression_builder.exceptions import ExpressionError
from expression_builder.expression_builder import ExpressionBuilder
class StringReplaceTests(unittest.TestCase):
# noinspection PyPep8Naming
def setUp(self):
self.exp = ExpressionBuilder()
self.exp.add_to_global("fred"... | 36.8 | 86 | 0.640886 | 285 | 2,392 | 5.189474 | 0.214035 | 0.075727 | 0.104124 | 0.126437 | 0.425963 | 0.379986 | 0.322515 | 0.091278 | 0.091278 | 0 | 0 | 0.022234 | 0.191472 | 2,392 | 64 | 87 | 37.375 | 0.742503 | 0.010452 | 0 | 0 | 0 | 0 | 0.119662 | 0 | 0 | 0 | 0 | 0 | 0.276596 | 1 | 0.276596 | false | 0 | 0.06383 | 0 | 0.361702 | 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 |
79ca9ccc9aed4b417288aeae0d80662e45b6689d | 309 | py | Python | example/simple.py | yoophi/str_pic | e4ac65e819b50d7c8fb4bf94dd26aa5a97e4331b | [
"MIT"
] | null | null | null | example/simple.py | yoophi/str_pic | e4ac65e819b50d7c8fb4bf94dd26aa5a97e4331b | [
"MIT"
] | 3 | 2021-06-08T19:34:37.000Z | 2022-03-11T23:18:13.000Z | example/simple.py | yoophi/str_pic | e4ac65e819b50d7c8fb4bf94dd26aa5a97e4331b | [
"MIT"
] | null | null | null | from flask import Flask, render_template
from flask_dummyimage import DummyImage
app = Flask(__name__)
dummyimage = DummyImage(app, url_prefix="/dm", endpoint="images", route="img")
@app.route("/")
def index():
return render_template("index.html")
if __name__ == "__main__":
app.run(debug=True)
| 19.3125 | 78 | 0.721683 | 40 | 309 | 5.175 | 0.6 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135922 | 309 | 15 | 79 | 20.6 | 0.775281 | 0 | 0 | 0 | 0 | 0 | 0.100324 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0.111111 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
79daca46089122299df7193b935021df51332239 | 1,255 | py | Python | tests/test_data.py | tappitikarrass/flask-ap | 88b97bb522474ca3dc056c209640050af74cb5dc | [
"BSD-3-Clause"
] | null | null | null | tests/test_data.py | tappitikarrass/flask-ap | 88b97bb522474ca3dc056c209640050af74cb5dc | [
"BSD-3-Clause"
] | null | null | null | tests/test_data.py | tappitikarrass/flask-ap | 88b97bb522474ca3dc056c209640050af74cb5dc | [
"BSD-3-Clause"
] | null | null | null | import base64
# USER
post_user_data_200 = {
"username": "sbandera1",
"firstname": "Stepan",
"lastname": "Bandera",
"email": "stepanko@liamg.com",
"phone": "123",
"password": "supersecret"
}
post_user_alt_data_200 = {
"username": "ivanbahryanyi",
"firstname": "Ivan",
"lastname": "Bahryanyi",... | 22.818182 | 87 | 0.663745 | 142 | 1,255 | 5.633803 | 0.359155 | 0.0525 | 0.065 | 0.05625 | 0.3625 | 0.2875 | 0.2175 | 0.2175 | 0.2175 | 0.2175 | 0 | 0.069224 | 0.148207 | 1,255 | 54 | 88 | 23.240741 | 0.679139 | 0.007171 | 0 | 0.326087 | 0 | 0 | 0.43041 | 0.074014 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.086957 | 0.021739 | 0 | 0.021739 | 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 |
8daf3e4c8966ce1a6bddee1ab26929f7ffa13135 | 9,354 | py | Python | tools/Project/UI_ModuleMgrDlg.py | wzhengsen/engine-x | f398b94a9a5bb9645c16d12d82d6366589db4e21 | [
"MIT"
] | null | null | null | tools/Project/UI_ModuleMgrDlg.py | wzhengsen/engine-x | f398b94a9a5bb9645c16d12d82d6366589db4e21 | [
"MIT"
] | null | null | null | tools/Project/UI_ModuleMgrDlg.py | wzhengsen/engine-x | f398b94a9a5bb9645c16d12d82d6366589db4e21 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'UI/ModuleMgrDlg.ui'
#
# Created by: PyQt5 UI code generator 5.15.2
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCo... | 55.023529 | 123 | 0.715843 | 914 | 9,354 | 7.251641 | 0.195842 | 0.059143 | 0.04647 | 0.04481 | 0.272782 | 0.214544 | 0.168678 | 0.119191 | 0.040435 | 0.028365 | 0 | 0.023954 | 0.174364 | 9,354 | 169 | 124 | 55.349112 | 0.834261 | 0.029934 | 0 | 0.058065 | 1 | 0 | 0.070373 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012903 | false | 0 | 0.012903 | 0 | 0.032258 | 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 |
8db1c50adc29a6ffdf16eef7eb3f4db1957e630c | 1,737 | py | Python | python/hillEquations.py | dhlee4/Tinkercell_new | c4d1848bbb905f0e1f9e011837268ac80aff8711 | [
"BSD-3-Clause"
] | 1 | 2021-01-07T13:12:51.000Z | 2021-01-07T13:12:51.000Z | python/hillEquations.py | dhlee4/Tinkercell_new | c4d1848bbb905f0e1f9e011837268ac80aff8711 | [
"BSD-3-Clause"
] | 7 | 2020-04-12T22:25:46.000Z | 2020-04-13T07:50:40.000Z | python/hillEquations.py | daniel-anavaino/tinkercell | 7896a7f809a0373ab3c848d25e3691d10a648437 | [
"BSD-3-Clause"
] | 2 | 2020-04-12T21:57:01.000Z | 2020-04-12T21:59:29.000Z | """
category: Generate kinetics
name: Hill equations
description: automatically generate the equilibrium rate equation for transcription
icon: hillequation.png
menu: yes
specific for: Coding
tool: yes
"""
from tinkercell import *
from tc2py import *
items = tc_selectedItems();
genes = [];
for i in range(0,items.lengt... | 28.47541 | 88 | 0.62061 | 224 | 1,737 | 4.727679 | 0.366071 | 0.051936 | 0.01983 | 0.028329 | 0.096317 | 0.058546 | 0 | 0 | 0 | 0 | 0 | 0.011773 | 0.217617 | 1,737 | 60 | 89 | 28.95 | 0.767476 | 0.11802 | 0 | 0.06383 | 1 | 0 | 0.147929 | 0 | 0.042553 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.042553 | 0 | 0.042553 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8dbb58ecd3a0dc98c548334dbc3b8ca871d442dd | 1,368 | py | Python | tests/functional/test_actions.py | AKhodus/adcm | 98dbf22af3f1c6afa94505e9acaff0ac4088a602 | [
"Apache-2.0"
] | null | null | null | tests/functional/test_actions.py | AKhodus/adcm | 98dbf22af3f1c6afa94505e9acaff0ac4088a602 | [
"Apache-2.0"
] | null | null | null | tests/functional/test_actions.py | AKhodus/adcm | 98dbf22af3f1c6afa94505e9acaff0ac4088a602 | [
"Apache-2.0"
] | null | null | null | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | 42.75 | 107 | 0.765351 | 202 | 1,368 | 4.980198 | 0.534653 | 0.095427 | 0.025845 | 0.031809 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003431 | 0.147661 | 1,368 | 31 | 108 | 44.129032 | 0.859348 | 0.408626 | 0 | 0 | 0 | 0 | 0.141236 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.4 | 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 |
8dbd46f30d6dfa6a1507fd5a331fbdfbe41f94f6 | 744 | py | Python | adam_io/utils.py | barcesat/adam_io | c9b36a696dca2338de02925cc9af78bc59b55fce | [
"MIT"
] | null | null | null | adam_io/utils.py | barcesat/adam_io | c9b36a696dca2338de02925cc9af78bc59b55fce | [
"MIT"
] | null | null | null | adam_io/utils.py | barcesat/adam_io | c9b36a696dca2338de02925cc9af78bc59b55fce | [
"MIT"
] | null | null | null | # check with status codes
# exceptions
# check 'error' and 'status'
from socket import inet_pton, inet_aton, AF_INET, error
def valid_ipv4(address: str):
"""
:param address: ip address string
:return: if the address is a valid dotted ipv4 address
"""
try:
inet_pton(AF_INET, address)
e... | 21.257143 | 58 | 0.61828 | 85 | 744 | 5.282353 | 0.564706 | 0.035635 | 0.075724 | 0.097996 | 0.124722 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00565 | 0.28629 | 744 | 34 | 59 | 21.882353 | 0.839925 | 0.202957 | 0 | 0.285714 | 0 | 0 | 0.120841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8dc0d85e7869f55ab1de18e5ff3544c306008e2b | 3,241 | py | Python | doc/examples/doc_code/raysgd_torch_signatures.py | thedrow/ray | 584645cc7da2bfd7d341d52b59c9c8561dbd119b | [
"Apache-2.0"
] | 1 | 2020-02-25T08:43:46.000Z | 2020-02-25T08:43:46.000Z | doc/examples/doc_code/raysgd_torch_signatures.py | mwbrulhardt/ray | b97b8c2be1c7d01e2c93ca97a0b87120bfa2bd1a | [
"Apache-2.0"
] | 1 | 2019-03-16T07:08:57.000Z | 2019-03-16T07:08:57.000Z | doc/examples/doc_code/raysgd_torch_signatures.py | gehring/ray | d8eeb9641314740572e81f9836cbce3e5b8f2b73 | [
"Apache-2.0"
] | null | null | null | # flake8: noqa
"""
This file holds code for the Pytorch Trainer creator signatures.
It ignores yapf because yapf doesn't allow comments right after code blocks,
but we put comments right after code blocks to prevent large white spaces
in the documentation.
"""
# yapf: disable
# __torch_model_start__
import torch.nn a... | 26.565574 | 85 | 0.719222 | 419 | 3,241 | 5.322196 | 0.338902 | 0.017937 | 0.028251 | 0.043946 | 0.281614 | 0.233632 | 0.219283 | 0.189686 | 0.132287 | 0.100448 | 0 | 0.007339 | 0.201172 | 3,241 | 121 | 86 | 26.785124 | 0.853998 | 0.671706 | 0 | 0.12 | 0 | 0 | 0.004619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.28 | 0 | 0.68 | 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 |
8dc3acc4aaba2f96a5e6b63f6e6498fe13dc2b2d | 2,633 | py | Python | HubMovrmentChallenge.py | lhsalud/hub-movement | 351fb430bb5e8540d4215415154c1d9f8d0730fe | [
"Apache-2.0"
] | null | null | null | HubMovrmentChallenge.py | lhsalud/hub-movement | 351fb430bb5e8540d4215415154c1d9f8d0730fe | [
"Apache-2.0"
] | null | null | null | HubMovrmentChallenge.py | lhsalud/hub-movement | 351fb430bb5e8540d4215415154c1d9f8d0730fe | [
"Apache-2.0"
] | null | null | null | #
# Author: L. Salud, April 26.2018
#
import pandas as pd
import os
import matplotlib.pyplot as plt
from sklearn.decomposition import PCA
from sklearn.preprocessing import StandardScaler
os.getcwd() # Get and place .py in same directory as .xls initially
os.chdir('./') # Path to .xls file
from pandas import read_ex... | 31.722892 | 204 | 0.725788 | 335 | 2,633 | 5.61194 | 0.543284 | 0.105319 | 0.050532 | 0.023936 | 0.065426 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039665 | 0.138245 | 2,633 | 83 | 205 | 31.722892 | 0.788894 | 0.250285 | 0 | 0 | 0 | 0 | 0.313395 | 0.261247 | 0 | 0 | 0 | 0.012048 | 0 | 1 | 0 | false | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8dc89f352fa436e39e052c93cd7afb303171ceba | 2,485 | py | Python | src/passari/scripts/submit_sip.py | finnish-heritage-agency/passari | 17af68b07435a40eaabaacf8c34e54517edc9153 | [
"MIT"
] | 1 | 2020-06-17T11:05:00.000Z | 2020-06-17T11:05:00.000Z | src/passari/scripts/submit_sip.py | finnish-heritage-agency/passari | 17af68b07435a40eaabaacf8c34e54517edc9153 | [
"MIT"
] | 2 | 2021-03-31T19:50:58.000Z | 2021-05-17T20:52:03.000Z | src/passari/scripts/submit_sip.py | finnish-heritage-agency/passari | 17af68b07435a40eaabaacf8c34e54517edc9153 | [
"MIT"
] | null | null | null | """
Submit a SIP archive to the digital preservation service
"""
from pathlib import Path
import click
from passari.config import CONFIG
from passari.dpres.package import MuseumObjectPackage
from passari.dpres.ssh import connect_dpres_sftp
from passari.utils import debugger_enabled
def submit_sip(package_dir, objec... | 29.583333 | 77 | 0.677666 | 329 | 2,485 | 4.908815 | 0.322188 | 0.037152 | 0.049536 | 0.055728 | 0.139319 | 0.076161 | 0.034675 | 0 | 0 | 0 | 0 | 0.000522 | 0.228571 | 2,485 | 83 | 78 | 29.939759 | 0.841941 | 0.185111 | 0 | 0.089286 | 0 | 0 | 0.199798 | 0.020182 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053571 | false | 0.071429 | 0.107143 | 0 | 0.196429 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8dca97c9199a78c34139496f0e9ce4927d4d5e8f | 1,651 | py | Python | boa3/model/attribute.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 25 | 2020-07-22T19:37:43.000Z | 2022-03-08T03:23:55.000Z | boa3/model/attribute.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 419 | 2020-04-23T17:48:14.000Z | 2022-03-31T13:17:45.000Z | boa3/model/attribute.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 15 | 2020-05-21T21:54:24.000Z | 2021-11-18T06:17:24.000Z | import ast
from typing import Optional, Tuple, Union
from boa3.model.expression import IExpression
from boa3.model.imports.package import Package
from boa3.model.symbol import ISymbol
from boa3.model.type.classes.classtype import ClassType
from boa3.model.type.itype import IType
class Attribute(IExpression):
"""... | 35.891304 | 100 | 0.706239 | 218 | 1,651 | 5.201835 | 0.256881 | 0.070547 | 0.068783 | 0.044974 | 0.111111 | 0.067019 | 0.067019 | 0 | 0 | 0 | 0 | 0.004577 | 0.205936 | 1,651 | 45 | 101 | 36.688889 | 0.860412 | 0.117505 | 0 | 0.107143 | 0 | 0 | 0.011197 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.071429 | 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 |
8dcbe319893f08c9fec316e62b3f5815719b8547 | 34,085 | py | Python | shield.py | sidsen/VRL_CodeReview | 6ee6114215ee49570c47ae41789f5d9bd11ce820 | [
"MIT"
] | 10 | 2019-10-22T16:58:43.000Z | 2021-12-05T06:12:53.000Z | shield.py | sidsen/VRL_CodeReview | 6ee6114215ee49570c47ae41789f5d9bd11ce820 | [
"MIT"
] | 1 | 2019-02-23T05:44:06.000Z | 2019-02-23T05:44:06.000Z | shield.py | sidsen/VRL_CodeReview | 6ee6114215ee49570c47ae41789f5d9bd11ce820 | [
"MIT"
] | 5 | 2019-02-23T04:10:06.000Z | 2020-09-06T22:59:26.000Z | import metrics
from metrics import timeit
from main import *
import os
class Shield(object):
def __init__(self, env, actor, model_path=None, force_learning=False, debug=False):
"""init
Args:
env (Environment): environment
actor (ActorNetwork): actor
force_learning (bool, option... | 44.323797 | 205 | 0.599267 | 4,852 | 34,085 | 4.039571 | 0.084295 | 0.068571 | 0.015561 | 0.033673 | 0.666224 | 0.628469 | 0.604133 | 0.573929 | 0.556633 | 0.546071 | 0 | 0.011726 | 0.264427 | 34,085 | 768 | 206 | 44.38151 | 0.770022 | 0.052193 | 0 | 0.524621 | 0 | 0 | 0.070462 | 0.00626 | 0 | 0 | 0 | 0.001302 | 0.007576 | 0 | null | null | 0 | 0.011364 | null | null | 0.068182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8dd2ec97b90cb2d15b0a054348250dd7d5121065 | 982 | py | Python | problems4/4A.py | Lopa10ko/ITMO-algo-2021-2022 | fa1ae8571e9cccd54faf1680fad21ffc6dbcef49 | [
"MIT"
] | 1 | 2021-11-11T12:08:14.000Z | 2021-11-11T12:08:14.000Z | problems4/4A.py | Lopa10ko/ITMO-algo-2021-2022 | fa1ae8571e9cccd54faf1680fad21ffc6dbcef49 | [
"MIT"
] | null | null | null | problems4/4A.py | Lopa10ko/ITMO-algo-2021-2022 | fa1ae8571e9cccd54faf1680fad21ffc6dbcef49 | [
"MIT"
] | null | null | null | file_input = open('stack.in', 'r')
file_output = open('stack.out', 'w')
def validate_stack(top_index):
return True if (top_index == -1) else False
class ImplementedStack(object):
def __init__(self):
self.stack = []
self.top = -1
def push_value(self, value):
self.top ... | 25.842105 | 60 | 0.521385 | 113 | 982 | 4.300885 | 0.380531 | 0.08642 | 0.106996 | 0.098765 | 0.069959 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010989 | 0.351324 | 982 | 37 | 61 | 26.540541 | 0.751962 | 0 | 0 | 0.133333 | 0 | 0 | 0.028513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8ddada2583d4d1572a9c3857e2ac95af6c1ca1dd | 1,976 | py | Python | examples/list_alert_notifications.py | kenlavoie/python-sdc-client | cafb8f2279956c572bd2c01c8645895d0895716f | [
"MIT"
] | null | null | null | examples/list_alert_notifications.py | kenlavoie/python-sdc-client | cafb8f2279956c572bd2c01c8645895d0895716f | [
"MIT"
] | null | null | null | examples/list_alert_notifications.py | kenlavoie/python-sdc-client | cafb8f2279956c572bd2c01c8645895d0895716f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# Get alert notifications from Sysdig Cloud
#
import os
import sys
import time
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(sys.argv[0])), '..'))
from sdcclient import SdcClient
def print_notifications(notifications):
for notification in notifications:
values = ... | 27.444444 | 176 | 0.688765 | 283 | 1,976 | 4.742049 | 0.279152 | 0.029806 | 0.053651 | 0.077496 | 0.472429 | 0.472429 | 0.472429 | 0.449329 | 0.449329 | 0.449329 | 0 | 0.022673 | 0.151822 | 1,976 | 71 | 177 | 27.830986 | 0.778043 | 0.156883 | 0 | 0.371429 | 0 | 0.028571 | 0.181873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.114286 | null | null | 0.228571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8ddbd28f219a98dd5d2cc0254cc240672cc2d246 | 4,871 | py | Python | addutils/toc.py | addfor/AddUtils | 2e2eb7ecd0718c7ec88a72b59313ab9084c0eaac | [
"MIT"
] | null | null | null | addutils/toc.py | addfor/AddUtils | 2e2eb7ecd0718c7ec88a72b59313ab9084c0eaac | [
"MIT"
] | null | null | null | addutils/toc.py | addfor/AddUtils | 2e2eb7ecd0718c7ec88a72b59313ab9084c0eaac | [
"MIT"
] | null | null | null | # The MIT License (MIT)
#
# Copyright (c) 2015 addfor s.r.l.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, m... | 35.043165 | 83 | 0.559228 | 546 | 4,871 | 4.972527 | 0.419414 | 0.032413 | 0.027624 | 0.01105 | 0.079558 | 0.039779 | 0.039779 | 0.039779 | 0.039779 | 0.039779 | 0 | 0.00955 | 0.333607 | 4,871 | 138 | 84 | 35.297101 | 0.826864 | 0.537467 | 0 | 0.067797 | 0 | 0.016949 | 0.840095 | 0.284487 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016949 | false | 0 | 0.016949 | 0 | 0.067797 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8ddbf31bfb108f86a7acf1ea3203d6b23129570c | 720 | py | Python | portfolio/blog/models.py | SkullTech/portfolio-devclub | a3db4ab72464c82e9da6ee89ad51cecc082d9ff5 | [
"MIT"
] | 1 | 2017-03-02T22:38:26.000Z | 2017-03-02T22:38:26.000Z | portfolio/blog/models.py | SkullTech/portfolio-devclub | a3db4ab72464c82e9da6ee89ad51cecc082d9ff5 | [
"MIT"
] | null | null | null | portfolio/blog/models.py | SkullTech/portfolio-devclub | a3db4ab72464c82e9da6ee89ad51cecc082d9ff5 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils import timezone
class Tag(models.Model):
name = models.CharField(max_length=50)
description = models.CharField(max_length=200, null=True, blank=True, default='')
def __str__(self):
return self.name
class Post(models.Model):
author = models.Fore... | 26.666667 | 85 | 0.698611 | 90 | 720 | 5.433333 | 0.466667 | 0.092025 | 0.110429 | 0.147239 | 0.192229 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013722 | 0.190278 | 720 | 26 | 86 | 27.692308 | 0.825043 | 0 | 0 | 0.105263 | 0 | 0 | 0.0125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.105263 | 0.105263 | 0.894737 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
8def2c408250901fc2c3f380e46aa6707b949f5d | 2,463 | py | Python | git_commit/pyscreen-test.py | Asura-one/tools | 669b59eb429f0503618f14618a73c0721d2bd8cc | [
"MIT"
] | null | null | null | git_commit/pyscreen-test.py | Asura-one/tools | 669b59eb429f0503618f14618a73c0721d2bd8cc | [
"MIT"
] | null | null | null | git_commit/pyscreen-test.py | Asura-one/tools | 669b59eb429f0503618f14618a73c0721d2bd8cc | [
"MIT"
] | null | null | null | import npyscreen
import os
import getpass
import subprocess
class mainform(npyscreen.ActionForm):
def create(self):
self.OSPath = "/SYS64 3.7/"
self.full_path = os.getcwd()
self.CurrentPath = ""
self.dir_path = os.path.dirname(os.path.realpath(__file__))
opt_values = ["jdos... | 36.220588 | 75 | 0.494925 | 240 | 2,463 | 4.9625 | 0.4125 | 0.050378 | 0.088161 | 0.104954 | 0.242653 | 0.225861 | 0.225861 | 0.225861 | 0.070529 | 0.070529 | 0 | 0.015947 | 0.388957 | 2,463 | 68 | 76 | 36.220588 | 0.775415 | 0.015428 | 0 | 0.189655 | 0 | 0 | 0.110561 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0.103448 | 0.068966 | 0 | 0.172414 | 0.017241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8df019add07d6cb9f3b378f45e28d9ed55ca4842 | 1,558 | py | Python | BigChat/Contact/migrations/0001_initial.py | diannakan1998/BigChat | a87b2682c137c7de40288d68612c2ee15d47bcee | [
"MIT"
] | null | null | null | BigChat/Contact/migrations/0001_initial.py | diannakan1998/BigChat | a87b2682c137c7de40288d68612c2ee15d47bcee | [
"MIT"
] | 2 | 2020-02-11T23:35:33.000Z | 2020-06-05T19:36:53.000Z | BigChat/Contact/migrations/0001_initial.py | diannakan1998/BigChat | a87b2682c137c7de40288d68612c2ee15d47bcee | [
"MIT"
] | null | null | null | # Generated by Django 2.1.2 on 2018-11-23 23:42
import django.contrib.postgres.fields
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Contact',
fields=[
... | 36.232558 | 143 | 0.564185 | 153 | 1,558 | 5.607843 | 0.437909 | 0.04662 | 0.055944 | 0.059441 | 0.39627 | 0.368298 | 0.368298 | 0.282051 | 0.184149 | 0.184149 | 0 | 0.019248 | 0.299743 | 1,558 | 42 | 144 | 37.095238 | 0.767186 | 0.028883 | 0 | 0.342857 | 1 | 0 | 0.099934 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.057143 | 0 | 0.171429 | 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 |
8df3d54be1b731de24ed84c4c006bd0811e68e83 | 864 | py | Python | usersystem/urls.py | Kanciarzek/NkrsiSystem | ee3d19b1419ee64ccef05051a3892663e7d71625 | [
"MIT"
] | null | null | null | usersystem/urls.py | Kanciarzek/NkrsiSystem | ee3d19b1419ee64ccef05051a3892663e7d71625 | [
"MIT"
] | null | null | null | usersystem/urls.py | Kanciarzek/NkrsiSystem | ee3d19b1419ee64ccef05051a3892663e7d71625 | [
"MIT"
] | null | null | null | from django.urls import path, include
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('faq', views.faq, name='faq'),
path('account/me/password/', views.change_password, name='user-password'),
path('account/me/', views.view_user, name='user'),
path('account/<int:user_id... | 45.473684 | 120 | 0.681713 | 119 | 864 | 4.823529 | 0.352941 | 0.069686 | 0.067944 | 0.059233 | 0.073171 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002611 | 0.113426 | 864 | 18 | 121 | 48 | 0.746736 | 0 | 0 | 0 | 0 | 0 | 0.331019 | 0.115741 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.125 | 0 | 0.125 | 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 |
8dfb3c18acf930a5459dc67b4aafbbfd377ea76f | 857 | py | Python | strongr/clouddomain/test/testinterdomainevent.py | bigr-erasmusmc/StrongR | 48573e170771a251f629f2d13dba7173f010a38c | [
"Apache-2.0"
] | null | null | null | strongr/clouddomain/test/testinterdomainevent.py | bigr-erasmusmc/StrongR | 48573e170771a251f629f2d13dba7173f010a38c | [
"Apache-2.0"
] | null | null | null | strongr/clouddomain/test/testinterdomainevent.py | bigr-erasmusmc/StrongR | 48573e170771a251f629f2d13dba7173f010a38c | [
"Apache-2.0"
] | null | null | null | import unittest
import strongr.clouddomain.model.gateways
import strongr.core
import strongr.core.domain.clouddomain
class TestInterDomainEvent(unittest.TestCase):
def test_salt_job_finished_escalation_to_inter(self):
intra_domain_event_factory = strongr.clouddomain.model.gateways.Gateways.intra_domain_e... | 42.85 | 138 | 0.782964 | 96 | 857 | 6.770833 | 0.427083 | 0.084615 | 0.106154 | 0.143077 | 0.273846 | 0.153846 | 0.153846 | 0 | 0 | 0 | 0 | 0.002674 | 0.127188 | 857 | 19 | 139 | 45.105263 | 0.86631 | 0.060677 | 0 | 0 | 0 | 0 | 0.028643 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8dfbeae2983efd238f2b37ec8cf3300580b20ae7 | 967 | py | Python | abandoned/gitNoteSync.py | fretboardfreak/code | 0e9bc521e30684247d5d19717a5a938d31151fe3 | [
"Apache-2.0"
] | 1 | 2016-01-01T17:50:10.000Z | 2016-01-01T17:50:10.000Z | abandoned/gitNoteSync.py | fretboardfreak/code | 0e9bc521e30684247d5d19717a5a938d31151fe3 | [
"Apache-2.0"
] | null | null | null | abandoned/gitNoteSync.py | fretboardfreak/code | 0e9bc521e30684247d5d19717a5a938d31151fe3 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
'''
Sync markdown notes with an external folder like dropbox.
Notes will be named *.txt in the external folder and *.md in git.
The script will use proper git commands to do things such as, delete or add new files to git and reflect any git-side changes in the external folder.
This script is int... | 25.447368 | 149 | 0.633919 | 125 | 967 | 4.8 | 0.656 | 0.093333 | 0.085 | 0.063333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005747 | 0.280248 | 967 | 37 | 150 | 26.135135 | 0.856322 | 0.020683 | 0 | 0 | 0 | 0 | 0.081031 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052632 | null | null | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5c035191fd827575cca31684fe0d530f80a03da4 | 2,959 | py | Python | wrpg/piaf/unpack.py | WalrusRPG/PIAF | d8c2d8f37a1c54c31e8aa0d0bf10af61a83403b7 | [
"MIT"
] | null | null | null | wrpg/piaf/unpack.py | WalrusRPG/PIAF | d8c2d8f37a1c54c31e8aa0d0bf10af61a83403b7 | [
"MIT"
] | null | null | null | wrpg/piaf/unpack.py | WalrusRPG/PIAF | d8c2d8f37a1c54c31e8aa0d0bf10af61a83403b7 | [
"MIT"
] | null | null | null | import struct
import zlib
from wrpg.piaf.common import (
header_structure,
file_entry_structure,
file_entry_size,
get_data_offset,
header_size,
header_check_size,
header_data_size)
class ParserError(Exception):
pass
class ParserMagicHeaderError(ParserError):
pass
class ParserCheck... | 31.478723 | 80 | 0.644812 | 319 | 2,959 | 5.61442 | 0.203762 | 0.055276 | 0.029034 | 0.035176 | 0.275265 | 0.119486 | 0.036851 | 0 | 0 | 0 | 0 | 0.003695 | 0.268334 | 2,959 | 93 | 81 | 31.817204 | 0.823557 | 0 | 0 | 0.054054 | 0 | 0 | 0.059818 | 0 | 0 | 0 | 0.006759 | 0 | 0 | 1 | 0.054054 | false | 0.054054 | 0.040541 | 0 | 0.189189 | 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 |
5c03ceb6ad67f78d52eb230df9a5bbd57c51a7c0 | 384 | py | Python | mysite/myapp/migrations/0009_auto_20200506_2221.py | MarkArren/PhotoSocial | bb401f465a464e7cf6a7fac184cef0d40e0a9525 | [
"MIT"
] | null | null | null | mysite/myapp/migrations/0009_auto_20200506_2221.py | MarkArren/PhotoSocial | bb401f465a464e7cf6a7fac184cef0d40e0a9525 | [
"MIT"
] | null | null | null | mysite/myapp/migrations/0009_auto_20200506_2221.py | MarkArren/PhotoSocial | bb401f465a464e7cf6a7fac184cef0d40e0a9525 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-05-06 22:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myapp', '0008_notificationmodel'),
]
operations = [
migrations.AlterField(
model_name='notificationmodel',
name='ent... | 20.210526 | 47 | 0.598958 | 37 | 384 | 6.162162 | 0.810811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069597 | 0.289063 | 384 | 18 | 48 | 21.333333 | 0.765568 | 0.117188 | 0 | 0 | 1 | 0 | 0.148368 | 0.065282 | 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 |
5c098a986f914f97ea7ebda89caf2268a601529a | 239 | py | Python | stock-index/main.py | tracholar/economics-data | bdb85d6baa663f7df0cf1193177f02a80aec407f | [
"MIT"
] | 9 | 2019-04-13T01:07:20.000Z | 2022-02-12T13:56:50.000Z | stock-index/main.py | tracholar/economics-data | bdb85d6baa663f7df0cf1193177f02a80aec407f | [
"MIT"
] | null | null | null | stock-index/main.py | tracholar/economics-data | bdb85d6baa663f7df0cf1193177f02a80aec407f | [
"MIT"
] | 5 | 2019-04-13T01:07:21.000Z | 2021-12-30T08:43:24.000Z | #coding:utf-8
import pandas as pd
import matplotlib.pyplot as plt
import pyecharts.options as opts
from pyecharts.charts import Line
df = pd.read_csv(u'标普500市盈率历史数据.txt', sep='\t')
y = df['市盈率 (PE Ratio)']
plt.plot(y.values)
plt.show() | 19.916667 | 47 | 0.736402 | 42 | 239 | 4.166667 | 0.738095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 0.129707 | 239 | 12 | 48 | 19.916667 | 0.822115 | 0.050209 | 0 | 0 | 0 | 0 | 0.140969 | 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 |
5c09acfc9fe04971c67a0bdfd0d292a35bdac0c5 | 3,510 | py | Python | models/dw_shared.py | idrpambudi/SRN-Deblur | 0384189ef105fc2e4c871c0d6adcb7f6ed53b7f9 | [
"MIT"
] | null | null | null | models/dw_shared.py | idrpambudi/SRN-Deblur | 0384189ef105fc2e4c871c0d6adcb7f6ed53b7f9 | [
"MIT"
] | null | null | null | models/dw_shared.py | idrpambudi/SRN-Deblur | 0384189ef105fc2e4c871c0d6adcb7f6ed53b7f9 | [
"MIT"
] | null | null | null | import tensorflow as tf
import tensorflow.contrib.slim as slim
from util.util import *
def generator(inputs, scope='g_net',n_levels=2):
n, h, w, c = inputs.get_shape().as_list()
x_unwrap = []
with tf.variable_scope(scope, reuse=tf.AUTO_REUSE):
with slim.arg_scope([slim.conv2d, slim.conv2d_transpos... | 54.84375 | 121 | 0.552991 | 438 | 3,510 | 4.253425 | 0.239726 | 0.064412 | 0.206119 | 0.13956 | 0.49007 | 0.443908 | 0.36715 | 0.052603 | 0 | 0 | 0 | 0.072269 | 0.321937 | 3,510 | 64 | 122 | 54.84375 | 0.710504 | 0.050997 | 0 | 0 | 0 | 0 | 0.049353 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019231 | false | 0 | 0.057692 | 0 | 0.096154 | 0.019231 | 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 |
5c269d3cc3c41b40147e84d450ece990b3c5b020 | 1,806 | py | Python | libs/gsheets_logging.py | Infinity-LTD/discord_gradiusbot | a5badc09c4e16230194453ba2c7bc208726c93d4 | [
"MIT"
] | 10 | 2016-03-01T01:42:39.000Z | 2021-03-18T19:01:42.000Z | libs/gsheets_logging.py | Infinity-LTD/discord_gradiusbot | a5badc09c4e16230194453ba2c7bc208726c93d4 | [
"MIT"
] | 96 | 2015-10-08T00:28:16.000Z | 2021-09-08T02:32:41.000Z | libs/gsheets_logging.py | Infinity-LTD/discord_gradiusbot | a5badc09c4e16230194453ba2c7bc208726c93d4 | [
"MIT"
] | 11 | 2015-10-07T23:26:11.000Z | 2021-08-07T05:24:47.000Z | """
Google Sheets interaction lib. Configuration settings:
[gapps]
api_scope = https://www.googleapis.com/auth/spreadsheets
spreadsheet_id =
spreadsheet_range =
"""
import configparser
import traceback
from googleapiclient.discovery import build
from httplib2 import Http
from oauth2client import file, client, tools
#... | 29.129032 | 106 | 0.704873 | 217 | 1,806 | 5.732719 | 0.456221 | 0.052251 | 0.0209 | 0.051447 | 0.115756 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002046 | 0.188261 | 1,806 | 61 | 107 | 29.606557 | 0.846521 | 0.348284 | 0 | 0 | 0 | 0 | 0.118479 | 0.026525 | 0 | 0 | 0 | 0.016393 | 0 | 1 | 0.035714 | false | 0 | 0.178571 | 0 | 0.25 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5c2a2a534d6e2ff772c61563fe0cf535ea1cac31 | 525 | py | Python | app/BlogSite/logic/routers/templates.py | AbhijithGanesh/FastAPI-Blog | ba60f674fa0bf7dc7346768433886039d642830d | [
"BSD-3-Clause"
] | null | null | null | app/BlogSite/logic/routers/templates.py | AbhijithGanesh/FastAPI-Blog | ba60f674fa0bf7dc7346768433886039d642830d | [
"BSD-3-Clause"
] | 1 | 2022-02-10T08:31:52.000Z | 2022-02-10T08:31:52.000Z | app/BlogSite/logic/routers/templates.py | AbhijithGanesh/FastAPI-Blog | ba60f674fa0bf7dc7346768433886039d642830d | [
"BSD-3-Clause"
] | null | null | null | from fastapi import APIRouter, Request
from fastapi.templating import Jinja2Templates
from fastapi.responses import HTMLResponse
from pathlib import Path
TEMPLATES = (
str(Path(__file__).resolve().parent.parent.parent.parent) + r"\design\templates"
)
templates_view = APIRouter()
templates = Jinja2Temp... | 29.166667 | 85 | 0.765714 | 58 | 525 | 6.775862 | 0.5 | 0.083969 | 0.091603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004386 | 0.131429 | 525 | 17 | 86 | 30.882353 | 0.857456 | 0 | 0 | 0 | 0 | 0 | 0.086614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0.083333 | 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 |
5c2d166d1a318c22066043ec8eb64728c9a94729 | 528 | py | Python | migrations/002_movies.py | mayurbhadrige/restpie3 | 23b55fdb86909dfe38dd1115f242ab1e99076ce9 | [
"MIT"
] | 80 | 2018-09-21T19:59:58.000Z | 2022-03-20T03:26:05.000Z | migrations/002_movies.py | mayurbhadrige/restpie3 | 23b55fdb86909dfe38dd1115f242ab1e99076ce9 | [
"MIT"
] | 3 | 2019-07-01T08:38:49.000Z | 2020-09-19T09:11:42.000Z | migrations/002_movies.py | mayurbhadrige/restpie3 | 23b55fdb86909dfe38dd1115f242ab1e99076ce9 | [
"MIT"
] | 26 | 2018-09-21T20:55:36.000Z | 2022-02-25T07:16:40.000Z |
# 002_movies.py
def migrate(migrator, database, fake=False, **kwargs):
# an example class for demonstrating CRUD...
migrator.sql("""CREATE TABLE movies(
id serial PRIMARY KEY NOT NULL,
created timestamp not null default CURRENT_TIMESTAMP,
modified timestamp not null default CURRENT_T... | 22.956522 | 62 | 0.666667 | 62 | 528 | 5.629032 | 0.629032 | 0.060172 | 0.114613 | 0.143266 | 0.401146 | 0.223496 | 0 | 0 | 0 | 0 | 0 | 0.007444 | 0.236742 | 528 | 22 | 63 | 24 | 0.858561 | 0.106061 | 0 | 0 | 0 | 0 | 0.631692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5c37be593a0269dff92c25f0ad69e5da28d88f99 | 1,045 | py | Python | mds/urls.py | Polyconseil/django-mds | 964655d3f17d51e74e67ae4c7b62b446435b5506 | [
"MIT"
] | 15 | 2019-01-02T13:44:29.000Z | 2020-09-03T16:39:46.000Z | mds/urls.py | Polyconseil/django-mds | 964655d3f17d51e74e67ae4c7b62b446435b5506 | [
"MIT"
] | 44 | 2018-11-30T11:04:03.000Z | 2020-01-21T17:21:39.000Z | mds/urls.py | Polyconseil/midas | 964655d3f17d51e74e67ae4c7b62b446435b5506 | [
"MIT"
] | 5 | 2019-04-23T16:22:49.000Z | 2021-03-21T07:45:38.000Z | from django.conf.urls import include
from django.contrib import admin
from django.contrib.auth import views as auth_views
from django.urls import path
import mds.apis.agency_api.v0_3.urls
import mds.authent.urls
urlpatterns = [
# TODO(hcauwelier) Backwards compat, to remove with MDS 0.3
path(
"mds/v0.... | 26.794872 | 82 | 0.582775 | 133 | 1,045 | 4.466165 | 0.398496 | 0.025253 | 0.065657 | 0.080808 | 0.271044 | 0.271044 | 0.223906 | 0.185185 | 0.185185 | 0.185185 | 0 | 0.02571 | 0.292823 | 1,045 | 38 | 83 | 27.5 | 0.778078 | 0.148325 | 0 | 0.3125 | 0 | 0 | 0.115254 | 0 | 0 | 0 | 0 | 0.026316 | 0 | 1 | 0 | false | 0 | 0.1875 | 0 | 0.1875 | 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 |
5c3e3ec43d50cbc88915e9537eb31041c9d2f0c2 | 483 | py | Python | src/minisentry/constants.py | anti1869/minisentry | 43b9685f33eeb55adbb78d3ec7afa05204e65f38 | [
"Apache-2.0"
] | 3 | 2021-07-02T01:54:03.000Z | 2022-01-21T11:38:36.000Z | src/minisentry/constants.py | anti1869/minisentry | 43b9685f33eeb55adbb78d3ec7afa05204e65f38 | [
"Apache-2.0"
] | null | null | null | src/minisentry/constants.py | anti1869/minisentry | 43b9685f33eeb55adbb78d3ec7afa05204e65f38 | [
"Apache-2.0"
] | null | null | null | import logging
LOG_LEVELS = {
logging.NOTSET: 'sample',
logging.DEBUG: 'debug',
logging.INFO: 'info',
logging.WARNING: 'warning',
logging.ERROR: 'error',
logging.FATAL: 'fatal',
}
DEFAULT_LOG_LEVEL = 'error'
LOG_LEVELS_MAP = {v: k for k, v in LOG_LEVELS.items()}
LEVEL_LABELS = {
logging.N... | 21 | 54 | 0.639752 | 58 | 483 | 5.206897 | 0.396552 | 0.089404 | 0.139073 | 0.18543 | 0.218543 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.200828 | 483 | 22 | 55 | 21.954545 | 0.782383 | 0 | 0 | 0.105263 | 0 | 0 | 0.146998 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 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 |
5c42f339ae5581206eeae13992fdf3c4eb5f4484 | 581 | py | Python | machine/corpora/text_segment.py | johnml1135/machine.py | 7bfb668b81d6af476f7ee797900e111c3027d542 | [
"MIT"
] | 2 | 2021-09-14T15:41:14.000Z | 2021-09-14T15:53:46.000Z | machine/corpora/text_segment.py | johnml1135/machine.py | 7bfb668b81d6af476f7ee797900e111c3027d542 | [
"MIT"
] | 2 | 2021-11-04T09:12:26.000Z | 2021-11-08T08:35:36.000Z | machine/corpora/text_segment.py | johnml1135/machine.py | 7bfb668b81d6af476f7ee797900e111c3027d542 | [
"MIT"
] | 1 | 2021-11-03T14:45:11.000Z | 2021-11-03T14:45:11.000Z | from dataclasses import dataclass
from typing import Any, Sequence
@dataclass(eq=False, frozen=True)
class TextSegment:
text_id: str
segment_ref: Any
segment: Sequence[str]
is_sentence_start: bool
is_in_range: bool
is_range_start: bool
is_empty: bool
def __repr__(self) -> str:
... | 25.26087 | 64 | 0.629948 | 75 | 581 | 4.653333 | 0.493333 | 0.051576 | 0.063037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00237 | 0.273666 | 581 | 22 | 65 | 26.409091 | 0.824645 | 0 | 0 | 0 | 0 | 0 | 0.08778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.105263 | 0 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
308610038479227c00fe97cec08a05b6df73bc37 | 28,636 | py | Python | edexOsgi/com.raytheon.edex.plugin.gfe/utility/common_static/base/gfe/textproducts/templates/product/Hazard_WCN_MultiPil.py | srcarter3/awips2 | 37f31f5e88516b9fd576eaa49d43bfb762e1d174 | [
"Apache-2.0"
] | null | null | null | edexOsgi/com.raytheon.edex.plugin.gfe/utility/common_static/base/gfe/textproducts/templates/product/Hazard_WCN_MultiPil.py | srcarter3/awips2 | 37f31f5e88516b9fd576eaa49d43bfb762e1d174 | [
"Apache-2.0"
] | null | null | null | edexOsgi/com.raytheon.edex.plugin.gfe/utility/common_static/base/gfe/textproducts/templates/product/Hazard_WCN_MultiPil.py | srcarter3/awips2 | 37f31f5e88516b9fd576eaa49d43bfb762e1d174 | [
"Apache-2.0"
] | 1 | 2021-10-30T00:03:05.000Z | 2021-10-30T00:03:05.000Z | ##
# This software was developed and / or modified by Raytheon Company,
# pursuant to Contract DG133W-05-CQ-1067 with the US Government.
#
# U.S. EXPORT CONTROLLED TECHNICAL DATA
# This software product contains export-restricted data whose
# export/transfer/disclosure is restricted by U.S. law. Dissemination
# to ... | 39.281207 | 100 | 0.531534 | 2,496 | 28,636 | 6.06851 | 0.209936 | 0.007922 | 0.009243 | 0.019806 | 0.361392 | 0.322704 | 0.257015 | 0.192117 | 0.150789 | 0.102198 | 0 | 0.007841 | 0.367544 | 28,636 | 728 | 101 | 39.335165 | 0.828502 | 0.180786 | 0 | 0.346793 | 0 | 0 | 0.17537 | 0.006105 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.009501 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3090c8adc1b353688b3835d02eb3cdfdcb57bf29 | 362 | py | Python | pcam/datasets/pcam_dataset.py | valeoai/PCAM | ea810250324f74e5c5769dc747ed08ffc97d6f0e | [
"Apache-2.0"
] | 19 | 2021-10-04T10:44:47.000Z | 2022-03-01T06:32:05.000Z | pcam/datasets/pcam_dataset.py | valeoai/PCAM | ea810250324f74e5c5769dc747ed08ffc97d6f0e | [
"Apache-2.0"
] | null | null | null | pcam/datasets/pcam_dataset.py | valeoai/PCAM | ea810250324f74e5c5769dc747ed08ffc97d6f0e | [
"Apache-2.0"
] | 3 | 2021-10-04T10:11:18.000Z | 2021-12-06T00:22:23.000Z | import torch
from torch.utils.data import Dataset
class PCAMDataset(Dataset):
def __init__(self, root, phase, voxel_size, num_points):
super(PCAMDataset, self).__init__()
self.root = root
self.phase = phase
self.voxel_size = voxel_size
self.num_points = num_points
def __le... | 24.133333 | 60 | 0.671271 | 47 | 362 | 4.787234 | 0.446809 | 0.12 | 0.106667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240331 | 362 | 14 | 61 | 25.857143 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0.090909 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
309593a460380fa8b25ca8344484335fa4f31aad | 8,444 | py | Python | creator/organizations/mutations.py | kids-first/kf-api-study-creator | 93a79b108b6474f9b4135ace06c89ddcf63dd257 | [
"Apache-2.0"
] | 3 | 2019-05-04T02:07:28.000Z | 2020-10-16T17:47:44.000Z | creator/organizations/mutations.py | kids-first/kf-api-study-creator | 93a79b108b6474f9b4135ace06c89ddcf63dd257 | [
"Apache-2.0"
] | 604 | 2019-02-21T18:14:51.000Z | 2022-02-10T08:13:54.000Z | creator/organizations/mutations.py | kids-first/kf-api-study-creator | 93a79b108b6474f9b4135ace06c89ddcf63dd257 | [
"Apache-2.0"
] | null | null | null | import graphene
from graphql import GraphQLError
from graphql_relay import from_global_id
from django.contrib.auth import get_user_model
from creator.organizations.models import Organization
from creator.organizations.queries import OrganizationNode
from creator.events.models import Event
User = get_user_model()
c... | 31.984848 | 79 | 0.629678 | 840 | 8,444 | 6.247619 | 0.133333 | 0.114329 | 0.035633 | 0.041159 | 0.724848 | 0.706936 | 0.645389 | 0.627477 | 0.627477 | 0.536585 | 0 | 0 | 0.289081 | 8,444 | 263 | 80 | 32.106464 | 0.87423 | 0.068214 | 0 | 0.542105 | 0 | 0 | 0.188723 | 0.027609 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021053 | false | 0 | 0.036842 | 0 | 0.231579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3096ae721713437784a75b40a0cbba1472f8290d | 696 | py | Python | arnold/api.py | hacklabza/arnold | d51f6b751ce6530650555cd33bf707f00b60af59 | [
"BSD-3-Clause"
] | 2 | 2021-08-20T05:19:37.000Z | 2022-01-11T09:39:39.000Z | arnold/api.py | hacklabza/arnold | d51f6b751ce6530650555cd33bf707f00b60af59 | [
"BSD-3-Clause"
] | null | null | null | arnold/api.py | hacklabza/arnold | d51f6b751ce6530650555cd33bf707f00b60af59 | [
"BSD-3-Clause"
] | null | null | null | from typing import Optional
from bottle import request, route, run
import uvicorn
from arnold import config
from arnold.output.speaker import Speaker
API_CONFIG = config.API
# Module class instances, rather than init everytime
speaker = Speaker()
# TODO (qoda): Make this super generic
@route('/health')
def hea... | 19.885714 | 70 | 0.698276 | 95 | 696 | 5.084211 | 0.505263 | 0.055901 | 0.070393 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175287 | 696 | 34 | 71 | 20.470588 | 0.841463 | 0.125 | 0 | 0.105263 | 0 | 0 | 0.10231 | 0 | 0 | 0 | 0 | 0.029412 | 0 | 1 | 0.157895 | false | 0 | 0.263158 | 0.052632 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
309cb4e46480df6e33282f805360a5aeb8f64ac4 | 11,873 | py | Python | pi_spark/backup_old_spark.py | cybertraining-dsc/sp20-516-246 | 73e1e9d8ed421d821848cb895368fd0e1c56f343 | [
"Apache-2.0"
] | null | null | null | pi_spark/backup_old_spark.py | cybertraining-dsc/sp20-516-246 | 73e1e9d8ed421d821848cb895368fd0e1c56f343 | [
"Apache-2.0"
] | null | null | null | pi_spark/backup_old_spark.py | cybertraining-dsc/sp20-516-246 | 73e1e9d8ed421d821848cb895368fd0e1c56f343 | [
"Apache-2.0"
] | null | null | null | import os
import textwrap
from pprint import pprint
#import cloudmesh.pi.cluster
from cloudmesh.pi.cluster.Installer import Installer
from cloudmesh.pi.cluster.Installer import Script
from cloudmesh.common.Host import Host
from cloudmesh.common.Printer import Printer
from cloudmesh.common.console import Console
from c... | 33.44507 | 133 | 0.516971 | 1,283 | 11,873 | 4.744349 | 0.177709 | 0.026614 | 0.019714 | 0.0207 | 0.37999 | 0.309676 | 0.271234 | 0.252341 | 0.230327 | 0.205027 | 0 | 0.008238 | 0.366125 | 11,873 | 354 | 134 | 33.539548 | 0.800558 | 0.087931 | 0 | 0.255507 | 0 | 0.008811 | 0.362431 | 0.083906 | 0 | 0 | 0 | 0.002825 | 0 | 0 | null | null | 0 | 0.044053 | null | null | 0.066079 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
30a405d600ad2e3396405bee7abf07a60fc56839 | 2,108 | py | Python | plugins/callback/human.py | Benoth/projects-installer | 0c657fd05c8fa4c38cee35fe3f6a98684a7eddc8 | [
"MIT"
] | 1 | 2018-01-04T06:54:32.000Z | 2018-01-04T06:54:32.000Z | plugins/callback/human.py | Benoth/projects-installer | 0c657fd05c8fa4c38cee35fe3f6a98684a7eddc8 | [
"MIT"
] | null | null | null | plugins/callback/human.py | Benoth/projects-installer | 0c657fd05c8fa4c38cee35fe3f6a98684a7eddc8 | [
"MIT"
] | null | null | null | # Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
from ansible.plugins.callback import CallbackBase
from ansible.utils.color import stringc
class CallbackModule(CallbackBase):
CALLBACK_VERSION = 2.0
CALLBACK_TYPE = 'stdout'
CALLBACK_NAM... | 38.327273 | 131 | 0.652277 | 262 | 2,108 | 4.984733 | 0.396947 | 0.082695 | 0.082695 | 0.039816 | 0.305513 | 0.219755 | 0.104135 | 0 | 0 | 0 | 0 | 0.007417 | 0.232448 | 2,108 | 54 | 132 | 39.037037 | 0.799753 | 0.078273 | 0 | 0.081081 | 0 | 0.027027 | 0.155235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216216 | false | 0 | 0.081081 | 0 | 0.405405 | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.