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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b2df51580f3415f53bd5126364dd51cece151893 | 1,118 | py | Python | python/caty/testutil/setup.py | hidaruma/caty | f71d2ab0a001ea4f7a96a6e02211187ebbf54773 | [
"MIT"
] | null | null | null | python/caty/testutil/setup.py | hidaruma/caty | f71d2ab0a001ea4f7a96a6e02211187ebbf54773 | [
"MIT"
] | null | null | null | python/caty/testutil/setup.py | hidaruma/caty | f71d2ab0a001ea4f7a96a6e02211187ebbf54773 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#coding:utf-8
import cmd, glob, os
from caty.shell.system import setup_caty, StdStream, StreamWrapper
from caty.core.script.builder import CommandCombinator
from caty.core.script.parser import NothingTodo
from caty.jsontools import pp
from caty.mafs.authorization import AuthoriToken
from caty.sess... | 33.878788 | 72 | 0.717352 | 141 | 1,118 | 5.546099 | 0.446809 | 0.061381 | 0.030691 | 0.046036 | 0.12532 | 0.12532 | 0.12532 | 0 | 0 | 0 | 0 | 0.001104 | 0.189624 | 1,118 | 32 | 73 | 34.9375 | 0.862031 | 0.028623 | 0 | 0 | 0 | 0 | 0.020314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.296296 | 0 | 0.518519 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b2e9e1da179125aef7da6f6460fa37958a5375ec | 3,745 | py | Python | robotframework_archive/rfarchivesetup.py | adiralashiva8/robotframework-archive | 58465ea43d085b198ea5984907e320e9e3df7857 | [
"MIT"
] | null | null | null | robotframework_archive/rfarchivesetup.py | adiralashiva8/robotframework-archive | 58465ea43d085b198ea5984907e320e9e3df7857 | [
"MIT"
] | null | null | null | robotframework_archive/rfarchivesetup.py | adiralashiva8/robotframework-archive | 58465ea43d085b198ea5984907e320e9e3df7857 | [
"MIT"
] | null | null | null | import mysql.connector
import logging
def rfarchive_setup(opts):
# connect to database
print("INFO: Connecting to dB")
mydb = connect_to_mysql(opts.host, opts.username, opts.password)
# create new user
obj = mydb.cursor()
print("INFO: Creating superuser with local access")
try:
ob... | 45.120482 | 262 | 0.672897 | 508 | 3,745 | 4.895669 | 0.218504 | 0.062726 | 0.048653 | 0.083233 | 0.674708 | 0.657419 | 0.608363 | 0.556494 | 0.523522 | 0.493768 | 0 | 0.000699 | 0.235781 | 3,745 | 83 | 263 | 45.120482 | 0.868274 | 0.015754 | 0 | 0.426471 | 0 | 0.132353 | 0.552296 | 0.012497 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.102941 | 0.029412 | 0 | 0.117647 | 0.191176 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b2e9ee674caa988cd618a6a5c2cba275d19c5315 | 3,836 | py | Python | checkfileint.py | MrForg3t/sourcecodetrm | de9ce6eb1714d28998ef1f4a2ebc05cd7bf7d78f | [
"MIT"
] | null | null | null | checkfileint.py | MrForg3t/sourcecodetrm | de9ce6eb1714d28998ef1f4a2ebc05cd7bf7d78f | [
"MIT"
] | null | null | null | checkfileint.py | MrForg3t/sourcecodetrm | de9ce6eb1714d28998ef1f4a2ebc05cd7bf7d78f | [
"MIT"
] | null | null | null | from os import path, system
from platform import system as osInfo
from time import sleep
def checkFile():
print("\n")
checkFileData()
sleep(0.1)
print("\n")
checkFileEssential()
sleep(0.1)
print("\n")
def checkFileData():
try:
if osInfo() == "Windows":
... | 31.186992 | 77 | 0.366528 | 338 | 3,836 | 4.156805 | 0.186391 | 0.051246 | 0.029893 | 0.051246 | 0.661922 | 0.643416 | 0.609253 | 0.537367 | 0.494662 | 0.494662 | 0 | 0.00269 | 0.515381 | 3,836 | 123 | 78 | 31.186992 | 0.747176 | 0 | 0 | 0.67 | 0 | 0 | 0.237685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03 | false | 0 | 0.03 | 0 | 0.06 | 0.22 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b2f05bdd343237cffd55703e2030a6a5e776f424 | 3,085 | py | Python | tests/account_tests.py | katrinaalaimo/pypi-flask | e50a553aface03c4a4edbccc6dbf474fef2715fb | [
"MIT"
] | 1 | 2021-07-11T15:03:14.000Z | 2021-07-11T15:03:14.000Z | tests/account_tests.py | katrinaalaimo/pypi-flask | e50a553aface03c4a4edbccc6dbf474fef2715fb | [
"MIT"
] | null | null | null | tests/account_tests.py | katrinaalaimo/pypi-flask | e50a553aface03c4a4edbccc6dbf474fef2715fb | [
"MIT"
] | null | null | null | # More tests would be needed before deployment
from flask import Response
from pypi_org.data.users import User
from pypi_org.viewmodels.account.register_viewmodel import RegisterViewModel
from pypi_org.views.account_views import register_post
from tests.test_client import flask_app
import unittest.mock
def test_regi... | 30.85 | 86 | 0.704052 | 411 | 3,085 | 5.021898 | 0.211679 | 0.030523 | 0.043605 | 0.055233 | 0.666667 | 0.630814 | 0.602229 | 0.551841 | 0.508721 | 0.36095 | 0 | 0.003975 | 0.184441 | 3,085 | 99 | 87 | 31.161616 | 0.816375 | 0.035656 | 0 | 0.514286 | 0 | 0 | 0.21306 | 0.130932 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.085714 | false | 0.057143 | 0.085714 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b2f90ef4aad82c3c8032aa2b4016954c5f5422e2 | 4,709 | py | Python | Dangerous/Weevely/modules/file/upload.py | JeyZeta/Dangerous- | 824ea6b571eda98bb855f176361e9b35dfda578e | [
"MIT"
] | null | null | null | Dangerous/Weevely/modules/file/upload.py | JeyZeta/Dangerous- | 824ea6b571eda98bb855f176361e9b35dfda578e | [
"MIT"
] | null | null | null | Dangerous/Weevely/modules/file/upload.py | JeyZeta/Dangerous- | 824ea6b571eda98bb855f176361e9b35dfda578e | [
"MIT"
] | 1 | 2018-07-04T18:35:16.000Z | 2018-07-04T18:35:16.000Z | '''
Created on 23/set/2011
@author: norby
'''
from core.moduleguess import ModuleGuess
from core.moduleexception import ModuleException, ExecutionException, ProbeException, ProbeSucceed
from core.http.cmdrequest import CmdRequest, NoDataException
from random import choice
from hashlib import md5
from core.argparse i... | 41.672566 | 195 | 0.628159 | 558 | 4,709 | 5.096774 | 0.267025 | 0.067511 | 0.056962 | 0.050633 | 0.230309 | 0.155063 | 0.091772 | 0.091772 | 0.065752 | 0.065752 | 0 | 0.010633 | 0.221066 | 4,709 | 112 | 196 | 42.044643 | 0.764722 | 0 | 0 | 0.066667 | 0 | 0.013333 | 0.219835 | 0.033637 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.12 | null | null | 0.026667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b2fbc7d3fbe8d7df8f96e61e34f2b72ca71bd78c | 2,049 | py | Python | A02_DjangoTest/smtest/views.py | oldinaction/smpython | 3aa386c3e6c2e262b492489b51cebf6d1ece2997 | [
"Apache-2.0"
] | null | null | null | A02_DjangoTest/smtest/views.py | oldinaction/smpython | 3aa386c3e6c2e262b492489b51cebf6d1ece2997 | [
"Apache-2.0"
] | 4 | 2019-12-16T07:45:22.000Z | 2021-06-10T22:24:22.000Z | A02_DjangoTest/smtest/views.py | oldinaction/smpython | 3aa386c3e6c2e262b492489b51cebf6d1ece2997 | [
"Apache-2.0"
] | null | null | null | import json
from django.shortcuts import render, HttpResponse
from django.views import View
# FBV
def users(request):
# if request.method == "GET":
# pass
user_list = ['smalle', 'aezocn']
return HttpResponse(json.dumps(user_list))
class MyBaseView(object):
# 装饰器作用(拦截器)
def dispatch(self,... | 30.58209 | 103 | 0.651537 | 223 | 2,049 | 5.914798 | 0.367713 | 0.066717 | 0.103108 | 0.095527 | 0.312358 | 0.21304 | 0.075815 | 0.075815 | 0.075815 | 0 | 0 | 0.004157 | 0.178136 | 2,049 | 67 | 104 | 30.58209 | 0.779097 | 0.237189 | 0 | 0 | 0 | 0 | 0.095808 | 0.034597 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.117647 | 0.088235 | 0.647059 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b2fdad1cf6b0eb8e4a88aba14738b269a702d564 | 1,801 | py | Python | fluids/assets/crosswalk.py | BerkeleyAutomation/FLUIDS | 728da0d0fec5028ca4506aa9cc8e37a5b072e7a9 | [
"MIT"
] | 26 | 2017-12-28T18:15:36.000Z | 2022-01-21T13:00:27.000Z | fluids/assets/crosswalk.py | BerkeleyAutomation/FLUIDS | 728da0d0fec5028ca4506aa9cc8e37a5b072e7a9 | [
"MIT"
] | 61 | 2018-01-30T05:18:42.000Z | 2021-05-19T15:00:05.000Z | fluids/assets/crosswalk.py | BerkeleyAutomation/FLUIDS | 728da0d0fec5028ca4506aa9cc8e37a5b072e7a9 | [
"MIT"
] | 14 | 2017-12-11T04:59:21.000Z | 2021-05-19T12:21:31.000Z | import numpy as np
from fluids.assets.shape import Shape
from fluids.assets.waypoint import Waypoint
class CrossWalk(Shape):
def __init__(self, start_wps=[], end_wps=[], **kwargs):
Shape.__init__(self, color=(0xf1, 0xf4, 0xf5), **kwargs)
point0 = (self.points[2] + self.points[3]) / 2
point1... | 47.394737 | 71 | 0.3598 | 146 | 1,801 | 4.287671 | 0.273973 | 0.071885 | 0.115016 | 0.089457 | 0.345048 | 0.345048 | 0.345048 | 0.345048 | 0.345048 | 0.345048 | 0 | 0.047323 | 0.554137 | 1,801 | 37 | 72 | 48.675676 | 0.732254 | 0 | 0 | 0.470588 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006667 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.088235 | 0 | 0.147059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b2fe876135ac5bb8410f4c013d86f377f9d8cf66 | 1,087 | py | Python | solutions/Valid Sudoku/solution.py | nilax97/leetcode-solutions | d3c12f2b289662d199510e0431e177bbf3cda121 | [
"MIT"
] | 3 | 2021-06-06T22:03:15.000Z | 2021-06-08T08:49:04.000Z | solutions/Valid Sudoku/solution.py | nilax97/leetcode-solutions | d3c12f2b289662d199510e0431e177bbf3cda121 | [
"MIT"
] | null | null | null | solutions/Valid Sudoku/solution.py | nilax97/leetcode-solutions | d3c12f2b289662d199510e0431e177bbf3cda121 | [
"MIT"
] | null | null | null | class Solution:
def isValidSudoku(self, board: List[List[str]]) -> bool:
for i in range(9):
check_r = dict()
check_c = dict()
check_b = dict()
print("_____")
for j in range(9):
print(check_r.keys(),check_c.keys(),check_b.keys())
... | 37.482759 | 67 | 0.355106 | 128 | 1,087 | 2.859375 | 0.242188 | 0.081967 | 0.081967 | 0.163934 | 0.027322 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01982 | 0.48942 | 1,087 | 28 | 68 | 38.821429 | 0.63964 | 0 | 0 | 0.107143 | 0 | 0 | 0.021159 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0 | 0 | 0.214286 | 0.178571 | 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 |
650486838c7e3350002e9789b251ddbea042867a | 531 | py | Python | pacote-download/ex(1-100)/ex054.py | gssouza2051/python-exercicios | 81e87fed7ead0adf58473a741aaa3c83064f6cb5 | [
"MIT"
] | null | null | null | pacote-download/ex(1-100)/ex054.py | gssouza2051/python-exercicios | 81e87fed7ead0adf58473a741aaa3c83064f6cb5 | [
"MIT"
] | null | null | null | pacote-download/ex(1-100)/ex054.py | gssouza2051/python-exercicios | 81e87fed7ead0adf58473a741aaa3c83064f6cb5 | [
"MIT"
] | null | null | null | '''Crie um programa que leia o ano de nascimento de sete pessoas.
No final, mostre quantas pessoas ainda não atingiram a maioridade e quantas já são maiores'''
from datetime import date
atual=date.today().year
totmaior=0
totmenor=0
for c in range(1,8):
n=int(input(('Em que ano voce nasceu ? '))
idade= atual - ... | 35.4 | 94 | 0.693032 | 84 | 531 | 4.380952 | 0.690476 | 0.076087 | 0.070652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 0.201507 | 531 | 15 | 95 | 35.4 | 0.849057 | 0 | 0 | 0 | 0 | 0 | 0.293011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
65089e390266f313ea67336374ad9f011454d933 | 1,480 | py | Python | core/controllers/brutescan.py | yizhimanpadewoniu/webdirfuzz | d09ef842e2b98e9c9a3468bd325d640407b40840 | [
"Apache-2.0"
] | null | null | null | core/controllers/brutescan.py | yizhimanpadewoniu/webdirfuzz | d09ef842e2b98e9c9a3468bd325d640407b40840 | [
"Apache-2.0"
] | null | null | null | core/controllers/brutescan.py | yizhimanpadewoniu/webdirfuzz | d09ef842e2b98e9c9a3468bd325d640407b40840 | [
"Apache-2.0"
] | 1 | 2019-05-07T06:15:50.000Z | 2019-05-07T06:15:50.000Z | #!/usr/bin/env python
# coding=utf-8
import time
import string
from comm.request import Req
from conf.settings import DICT_PATH
from core.data import result
from core.data import fuzz_urls
class BruteScan(Req):
"""
暴力字典扫描并对存在的URL再次进行fuzz
"""
def __init__(self, site, timeout, delay, threads, ext):
... | 30.204082 | 84 | 0.589189 | 203 | 1,480 | 4.137931 | 0.37931 | 0.047619 | 0.066667 | 0.053571 | 0.120238 | 0.057143 | 0.057143 | 0 | 0 | 0 | 0 | 0.002762 | 0.266216 | 1,480 | 49 | 85 | 30.204082 | 0.770718 | 0.022297 | 0 | 0 | 0 | 0 | 0.078125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6508f0952442fa28010c76c2bfd72be63d55f5e3 | 2,608 | py | Python | tests/test_script_metrics.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 84 | 2017-10-22T11:01:39.000Z | 2022-02-27T03:43:48.000Z | tests/test_script_metrics.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 22 | 2017-12-11T07:21:56.000Z | 2021-09-23T02:53:50.000Z | tests/test_script_metrics.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 23 | 2017-12-06T06:59:52.000Z | 2022-02-24T00:02:25.000Z | # ----------------------------------------------------------------------
# noc.core.script.metrics tests
# ----------------------------------------------------------------------
# Copyright (C) 2007-2018 The NOC Project
# See LICENSE for details
# ----------------------------------------------------------------------
... | 24.838095 | 98 | 0.520322 | 374 | 2,608 | 3.572193 | 0.157754 | 0.056138 | 0.05988 | 0.173653 | 0.599551 | 0.405689 | 0.256737 | 0.187126 | 0.187126 | 0.187126 | 0 | 0.119981 | 0.207439 | 2,608 | 104 | 99 | 25.076923 | 0.526367 | 0.129601 | 0 | 0.263158 | 0 | 0 | 0.071207 | 0 | 0 | 0 | 0 | 0 | 0.118421 | 1 | 0.118421 | false | 0 | 0.026316 | 0 | 0.144737 | 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 |
65097169df9793339815f04da93b0026e8f37e3c | 597 | py | Python | Comment_Injection.py | keocol/SAML-Nuts | 1313e16d1d6448a41bdca8283e23997422c1237d | [
"MIT"
] | 2 | 2022-02-03T14:07:13.000Z | 2022-02-11T00:49:44.000Z | Comment_Injection.py | keocol/SAML-Nuts | 1313e16d1d6448a41bdca8283e23997422c1237d | [
"MIT"
] | null | null | null | Comment_Injection.py | keocol/SAML-Nuts | 1313e16d1d6448a41bdca8283e23997422c1237d | [
"MIT"
] | null | null | null | import urllib.parse
import base64
from urllib.parse import unquote
from urllib.parse import quote
tempEmail = input('Registered Email: ').encode('UTF-8')
suffix = input ('Suffix Added: ').encode('UTF-8')
adminEmail = input('Admin Email: ').encode('UTF-8')
saml_dec = base64.b64decode(unquote(input('SAML... | 27.136364 | 93 | 0.60469 | 73 | 597 | 4.890411 | 0.410959 | 0.039216 | 0.05042 | 0.056022 | 0.022409 | 0.022409 | 0.022409 | 0 | 0 | 0 | 0 | 0.025 | 0.128978 | 597 | 21 | 94 | 28.428571 | 0.661538 | 0 | 0 | 0 | 0 | 0 | 0.288696 | 0.142609 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
651660ef67571f0523166e1144c685a542e078a2 | 3,417 | py | Python | RFMScore.py | Faouzizi/RFM-Analysis | 1caff0f96172a40a3a09b0428366fe9720ddc119 | [
"MIT"
] | 1 | 2021-01-13T07:58:26.000Z | 2021-01-13T07:58:26.000Z | RFMScore.py | Faouzizi/RFM-Analysis | 1caff0f96172a40a3a09b0428366fe9720ddc119 | [
"MIT"
] | null | null | null | RFMScore.py | Faouzizi/RFM-Analysis | 1caff0f96172a40a3a09b0428366fe9720ddc119 | [
"MIT"
] | null | null | null | #################################################################################
####################### Import python packages ##################################
#################################################################################
import pandas as pd
import numpy as np
from pandas_profiling import Profil... | 43.807692 | 122 | 0.414691 | 306 | 3,417 | 4.545752 | 0.326797 | 0.028756 | 0.017254 | 0.023005 | 0.179727 | 0.162473 | 0.120776 | 0.097771 | 0.035945 | 0.035945 | 0 | 0.015581 | 0.173544 | 3,417 | 78 | 123 | 43.807692 | 0.476983 | 0.127305 | 0 | 0.390244 | 0 | 0 | 0.179916 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073171 | false | 0 | 0.097561 | 0 | 0.414634 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6519f27703f991e5817ddce25ea5099d396d2197 | 721 | py | Python | hookup/cli.py | wedataintelligence/hookup | e9cef8c5f10822ca087a4518bca9de205ea7b054 | [
"MIT"
] | 20 | 2020-01-14T17:10:09.000Z | 2022-03-06T04:52:29.000Z | hookup/cli.py | rickthor7/hookup | 31d6a0d413c62d317f1b70c4d83541a00bf15d72 | [
"MIT"
] | 2 | 2020-11-30T11:56:38.000Z | 2022-02-26T22:24:09.000Z | hookup/cli.py | rickthor7/hookup | 31d6a0d413c62d317f1b70c4d83541a00bf15d72 | [
"MIT"
] | 8 | 2020-01-31T18:18:47.000Z | 2022-01-02T08:19:57.000Z | from hookup import db
from hookup.models import Page, User
import getpass
DEFAULT_SITES = ["facebook", "twitter", "netflix", "github"]
def create_superuser():
username = input("Username: ")
password = getpass.getpass("Password ")
user = User(username=username, password=password)
user.save()
def regis... | 23.258065 | 65 | 0.644938 | 88 | 721 | 5.113636 | 0.477273 | 0.044444 | 0.048889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216366 | 721 | 30 | 66 | 24.033333 | 0.79646 | 0 | 0 | 0.083333 | 0 | 0 | 0.102778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.125 | 0 | 0.25 | 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 |
652b4ff7430dfa850aa53d02a32b172ee9955b76 | 3,728 | py | Python | place/migrations/0001_initial.py | Odreystella/My_Place_Record_Project2 | b26fdd3d07fbd5bc428f004a826eda37ee0d7533 | [
"MIT"
] | null | null | null | place/migrations/0001_initial.py | Odreystella/My_Place_Record_Project2 | b26fdd3d07fbd5bc428f004a826eda37ee0d7533 | [
"MIT"
] | null | null | null | place/migrations/0001_initial.py | Odreystella/My_Place_Record_Project2 | b26fdd3d07fbd5bc428f004a826eda37ee0d7533 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.4 on 2021-06-13 15:48
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 48.415584 | 171 | 0.590933 | 383 | 3,728 | 5.600522 | 0.253264 | 0.037762 | 0.039161 | 0.061538 | 0.635897 | 0.589744 | 0.511422 | 0.511422 | 0.511422 | 0.511422 | 0 | 0.023358 | 0.265021 | 3,728 | 76 | 172 | 49.052632 | 0.759489 | 0.012071 | 0 | 0.536232 | 1 | 0 | 0.093996 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.101449 | 0 | 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 |
6531356e45093ca1c09b504a385314f263ab9381 | 1,538 | py | Python | archived/ip2host.py | Duke-LeTran/practice-and-notes | 30e8fc866ccece0ea108b90fabf441279e29cdb9 | [
"MIT"
] | null | null | null | archived/ip2host.py | Duke-LeTran/practice-and-notes | 30e8fc866ccece0ea108b90fabf441279e29cdb9 | [
"MIT"
] | null | null | null | archived/ip2host.py | Duke-LeTran/practice-and-notes | 30e8fc866ccece0ea108b90fabf441279e29cdb9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Dec 7 14:43:38 2020
@author: dukel
"""
#%%
import numpy as np
import pandas as pd
import socket
ls = ['152.79.105.42',
'152.79.113.146',
'152.79.113.148',
'152.79.113.150',
'152.79.113.97',
'152.79.113.98',
'152.79.114.40',
'152.7... | 22.617647 | 80 | 0.536411 | 223 | 1,538 | 3.632287 | 0.421525 | 0.123457 | 0.059259 | 0.02963 | 0.158025 | 0.158025 | 0.111111 | 0.111111 | 0.111111 | 0.111111 | 0 | 0.206897 | 0.283485 | 1,538 | 68 | 80 | 22.617647 | 0.528131 | 0.126788 | 0 | 0.217391 | 0 | 0 | 0.249618 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.065217 | 0 | 0.152174 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
653eeef54ff04c14dc76d8734230ceb9ec1fff64 | 424 | py | Python | remove_links_in_queue.py | JasonDing02/InterlinguaCorpusProject | 20ffd37bb74d429047971d319d6a8dca2c25182a | [
"MIT"
] | null | null | null | remove_links_in_queue.py | JasonDing02/InterlinguaCorpusProject | 20ffd37bb74d429047971d319d6a8dca2c25182a | [
"MIT"
] | null | null | null | remove_links_in_queue.py | JasonDing02/InterlinguaCorpusProject | 20ffd37bb74d429047971d319d6a8dca2c25182a | [
"MIT"
] | null | null | null | links_file = open("link_queue.txt", "r")
link_queue = links_file.readlines()
go = []
count = 0
index = 0
while index < len(link_queue):
if link_queue[index].find("interforo") == -1:
go.append(link_queue[index])
del link_queue[index]
else:
index = index + 1
count = count + 1
... | 20.190476 | 49 | 0.613208 | 62 | 424 | 4.016129 | 0.419355 | 0.253012 | 0.168675 | 0.136546 | 0.200803 | 0.200803 | 0 | 0 | 0 | 0 | 0 | 0.015625 | 0.245283 | 424 | 20 | 50 | 21.2 | 0.7625 | 0 | 0 | 0 | 0 | 0 | 0.091981 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.0625 | 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 |
e8ddae36fbe441813a010529c1587f22b083b6fc | 1,483 | py | Python | vox/win/tests/test_first_mismatch.py | drocco007/vox_linux | 9807bc3af8bc35f8f6634019ec4bc22b5e3b2e33 | [
"MIT"
] | 5 | 2015-03-25T11:56:10.000Z | 2018-02-03T21:11:27.000Z | vox/win/tests/test_first_mismatch.py | drocco007/vox_linux | 9807bc3af8bc35f8f6634019ec4bc22b5e3b2e33 | [
"MIT"
] | null | null | null | vox/win/tests/test_first_mismatch.py | drocco007/vox_linux | 9807bc3af8bc35f8f6634019ec4bc22b5e3b2e33 | [
"MIT"
] | null | null | null | from vox.win.textbuf import first_mismatch
import pytest
def test_zero_length_strings():
assert 0 == first_mismatch('', '')
def test_should_be_length_of_identical_single_character_strings():
assert 1 == first_mismatch('a', 'a')
def test_should_be_beginning_of_different_single_character_strings():
ass... | 26.482143 | 71 | 0.716116 | 213 | 1,483 | 4.600939 | 0.244131 | 0.172449 | 0.079592 | 0.091837 | 0.667347 | 0.610204 | 0.463265 | 0.24898 | 0.24898 | 0.24898 | 0 | 0.013622 | 0.158463 | 1,483 | 55 | 72 | 26.963636 | 0.771635 | 0 | 0 | 0.1875 | 0 | 0 | 0.115981 | 0 | 0 | 0 | 0 | 0 | 0.34375 | 1 | 0.34375 | false | 0 | 0.0625 | 0 | 0.40625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e8e954f426223c4982a3e31d9c5adab003a9a06e | 1,297 | py | Python | muDIC/tests/test_vlab/test_virtualTensileTest.py | diehlpk/muDIC | b5d90aa62267b4bd0b88ae0a989cf09a51990654 | [
"MIT"
] | 7 | 2021-01-17T13:16:22.000Z | 2021-12-24T02:51:38.000Z | muDIC/tests/test_vlab/test_virtualTensileTest.py | diehlpk/muDIC | b5d90aa62267b4bd0b88ae0a989cf09a51990654 | [
"MIT"
] | 7 | 2020-07-31T00:52:13.000Z | 2020-08-25T12:07:26.000Z | muDIC/tests/test_vlab/test_virtualTensileTest.py | diehlpk/muDIC | b5d90aa62267b4bd0b88ae0a989cf09a51990654 | [
"MIT"
] | 4 | 2020-05-03T16:28:42.000Z | 2021-03-12T19:34:29.000Z | import logging
from unittest import TestCase
import numpy as np
import muDIC.vlab as vlab
class TestVirtualTensileTest(TestCase):
# TODO: Rewrite these tests!
@classmethod
def setUpClass(cls):
logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.INFO)
cls.logger = loggin... | 34.131579 | 110 | 0.646877 | 159 | 1,297 | 5.119497 | 0.534591 | 0.029484 | 0.027027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024922 | 0.257517 | 1,297 | 37 | 111 | 35.054054 | 0.820353 | 0.020046 | 0 | 0 | 0 | 0 | 0.062254 | 0.019701 | 0 | 0 | 0 | 0.027027 | 0 | 1 | 0.083333 | false | 0.041667 | 0.166667 | 0 | 0.291667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e8ee5538727d2418f89794d5e452161af19cabe4 | 4,158 | py | Python | tests/integration/sphinx/test_alabaster_sidebars.py | pauleveritt/goku | 4bcd7f6a79cca58d40bac75b7830825915958d06 | [
"MIT"
] | null | null | null | tests/integration/sphinx/test_alabaster_sidebars.py | pauleveritt/goku | 4bcd7f6a79cca58d40bac75b7830825915958d06 | [
"MIT"
] | null | null | null | tests/integration/sphinx/test_alabaster_sidebars.py | pauleveritt/goku | 4bcd7f6a79cca58d40bac75b7830825915958d06 | [
"MIT"
] | null | null | null | import pytest
from bs4.element import Tag
# The default values for all theme options, knobs, templates, etc.
# Nothing customized in conf.py or anywhere else.
pytestmark = pytest.mark.sphinx('html', testroot='alabaster-sidebars')
# *** NOTE: We are using ``subdir/subfile.html`` to get some of the
# navigation in th... | 36.156522 | 74 | 0.612795 | 538 | 4,158 | 4.643123 | 0.27881 | 0.033627 | 0.031225 | 0.025621 | 0.259808 | 0.211369 | 0.211369 | 0.198959 | 0.160929 | 0.133707 | 0 | 0.013459 | 0.231602 | 4,158 | 114 | 75 | 36.473684 | 0.768388 | 0.098846 | 0 | 0.121622 | 0 | 0 | 0.206277 | 0.006974 | 0 | 0 | 0 | 0 | 0.581081 | 1 | 0.162162 | false | 0 | 0.027027 | 0 | 0.202703 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e8f56190ceabf5b3f68af370b7db947bfa6369c7 | 10,007 | py | Python | lid/_not_in_use/evaluation/bills_for_evaluation_set.py | righthan/policy_diffusion | 6c04cf5e9ae3feb51aeede120a2c8551cea8106f | [
"MIT"
] | 33 | 2016-08-04T17:42:39.000Z | 2021-03-28T19:09:31.000Z | lid/_not_in_use/evaluation/bills_for_evaluation_set.py | righthan/policy_diffusion | 6c04cf5e9ae3feb51aeede120a2c8551cea8106f | [
"MIT"
] | 2 | 2016-09-19T08:32:26.000Z | 2016-09-19T08:33:51.000Z | lid/_not_in_use/evaluation/bills_for_evaluation_set.py | righthan/policy_diffusion | 6c04cf5e9ae3feb51aeede120a2c8551cea8106f | [
"MIT"
] | 11 | 2016-09-19T02:14:35.000Z | 2022-02-08T20:55:56.000Z | from elasticsearch import Elasticsearch
import re
import csv
import urllib2
import urllib
from urllib import urlopen
from tika import parser
import pickle
def create_bills(ls):
'''
args:
ls: list of lists of urls that correspond to matches
returns:
dictionary grouped by matches
'''
... | 47.20283 | 159 | 0.641751 | 1,422 | 10,007 | 4.393108 | 0.338959 | 0.036978 | 0.017608 | 0.016328 | 0.296462 | 0.216264 | 0.180086 | 0.120058 | 0.090924 | 0.077797 | 0 | 0.090481 | 0.17168 | 10,007 | 211 | 160 | 47.42654 | 0.663168 | 0.034176 | 0 | 0.188235 | 0 | 0.194118 | 0.544318 | 0.035287 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.011765 | 0.047059 | null | null | 0.052941 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e8fb77a55d23d489d5695d210089c6656f318abf | 3,204 | py | Python | src/main.py | Tomaszu97/game-engine | dcf34e0741edecdb2902871ef7488ea873844e65 | [
"MIT"
] | 1 | 2022-02-09T07:41:30.000Z | 2022-02-09T07:41:30.000Z | src/main.py | Tomaszu97/game-engine | dcf34e0741edecdb2902871ef7488ea873844e65 | [
"MIT"
] | null | null | null | src/main.py | Tomaszu97/game-engine | dcf34e0741edecdb2902871ef7488ea873844e65 | [
"MIT"
] | null | null | null | from pygame import *
from .game_object import *
from .player import *
from .spawner import *
from .decoration import *
from .label import *
from .shared import *
from .enemy import *
from .tiled import *
from .collision_manager ... | 34.085106 | 214 | 0.579588 | 394 | 3,204 | 4.591371 | 0.329949 | 0.060807 | 0.033168 | 0.030956 | 0.163626 | 0.140409 | 0.113875 | 0.078496 | 0.078496 | 0.078496 | 0 | 0.008965 | 0.303683 | 3,204 | 93 | 215 | 34.451613 | 0.801883 | 0.140137 | 0 | 0.138889 | 0 | 0 | 0.009246 | 0 | 0 | 0 | 0 | 0.010753 | 0 | 1 | 0.097222 | false | 0.013889 | 0.25 | 0 | 0.361111 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
e8fdb0abb144283055fdfd62bebabdf8d08442c0 | 1,391 | py | Python | src/archive/clay_bricks/PatternBrickLibrary/gCode.py | JonasWard/ClayAdventures | a716445ac690e4792e70658319aa1d5299f9c9e9 | [
"MIT"
] | 1 | 2020-03-25T10:55:10.000Z | 2020-03-25T10:55:10.000Z | src/archive/clay_bricks/PatternBrickLibrary/gCode.py | JonasWard/ClayAdventures | a716445ac690e4792e70658319aa1d5299f9c9e9 | [
"MIT"
] | null | null | null | src/archive/clay_bricks/PatternBrickLibrary/gCode.py | JonasWard/ClayAdventures | a716445ac690e4792e70658319aa1d5299f9c9e9 | [
"MIT"
] | null | null | null | # g code generator for clay extrusions
def gCodeLine(generation):
def __init__(self, coordinates, z_val = True, extrusion_value = None, feed_value = None, absolute_relative = None):
self.X = coordinates.X
self.Y = coordinates.Y
if z_val:
self.Z = coordinates.Z
class... | 24.403509 | 119 | 0.624012 | 166 | 1,391 | 4.981928 | 0.391566 | 0.076179 | 0.094317 | 0.038694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003006 | 0.282531 | 1,391 | 56 | 120 | 24.839286 | 0.825651 | 0.299065 | 0 | 0 | 0 | 0 | 0.026015 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0 | 0 | 0.26087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e8fe330444408eff1881cd6e125f78bf4e810d21 | 2,658 | py | Python | hard-gists/005ceac0483fc5a581cc/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 21 | 2019-07-08T08:26:45.000Z | 2022-01-24T23:53:25.000Z | hard-gists/005ceac0483fc5a581cc/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 5 | 2019-06-15T14:47:47.000Z | 2022-02-26T05:02:56.000Z | hard-gists/005ceac0483fc5a581cc/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 17 | 2019-05-16T03:50:34.000Z | 2021-01-14T14:35:12.000Z | import tensorflow as tf
import numpy as np
import input_data
import Image
from util import tile_raster_images
def sample_prob(probs):
return tf.nn.relu(
tf.sign(
probs - tf.random_uniform(tf.shape(probs))))
alpha = 1.0
batchsize = 100
mnist = input_data.read_data_sets("MNIST_data/", one_hot=... | 33.64557 | 80 | 0.632054 | 465 | 2,658 | 3.367742 | 0.227957 | 0.030651 | 0.02682 | 0.041507 | 0.369732 | 0.328225 | 0.249042 | 0.201149 | 0.174968 | 0.174968 | 0 | 0.045019 | 0.214447 | 2,658 | 79 | 81 | 33.64557 | 0.704981 | 0 | 0 | 0.072464 | 0 | 0 | 0.0173 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.072464 | null | null | 0.028986 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
33053f6c747680660510b864be6801858e7c230a | 374 | py | Python | levelworks/levelweb/migrations/0005_alter_student_age.py | benNthen/levelworks-site | 9570bcfd4cbaa3719102d21927f709ce9e0f865c | [
"Apache-2.0"
] | null | null | null | levelworks/levelweb/migrations/0005_alter_student_age.py | benNthen/levelworks-site | 9570bcfd4cbaa3719102d21927f709ce9e0f865c | [
"Apache-2.0"
] | null | null | null | levelworks/levelweb/migrations/0005_alter_student_age.py | benNthen/levelworks-site | 9570bcfd4cbaa3719102d21927f709ce9e0f865c | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2.4 on 2021-06-24 01:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('levelweb', '0004_alter_student_age'),
]
operations = [
migrations.AlterField(
model_name='student',
name='age',
... | 19.684211 | 47 | 0.588235 | 39 | 374 | 5.538462 | 0.794872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072243 | 0.296791 | 374 | 18 | 48 | 20.777778 | 0.749049 | 0.120321 | 0 | 0 | 1 | 0 | 0.122324 | 0.067278 | 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 |
3305e6d69daa38fcf89d3e75c25474718b2b1df5 | 463 | py | Python | workon/contrib/unique/models.py | dalou/django-workon | ef63c0a81c00ef560ed693e435cf3825f5170126 | [
"BSD-3-Clause"
] | null | null | null | workon/contrib/unique/models.py | dalou/django-workon | ef63c0a81c00ef560ed693e435cf3825f5170126 | [
"BSD-3-Clause"
] | null | null | null | workon/contrib/unique/models.py | dalou/django-workon | ef63c0a81c00ef560ed693e435cf3825f5170126 | [
"BSD-3-Clause"
] | null | null | null | from django.db import models
class Unique(models.Model):
class Meta:
abstract = True
@classmethod
def get(cls):
instance = cls._meta.default_manager.first()
if not instance:
instance = cls()
return instance
def save(self, *args, **kwargs):
previous... | 23.15 | 53 | 0.591793 | 53 | 463 | 5.09434 | 0.54717 | 0.081481 | 0.133333 | 0.17037 | 0.185185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.302376 | 463 | 19 | 54 | 24.368421 | 0.835913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0 | 0.4 | 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 |
331f9f3d2b26dabb992cef0e6f84f729045ddc2d | 3,125 | py | Python | scripts/make_pop_table.py | ourresearch/total-impact-webapp | ab0d011dc783491bc85aadc2dc9c0f204e59429e | [
"MIT"
] | 2 | 2015-02-19T15:17:49.000Z | 2015-03-17T16:54:27.000Z | scripts/make_pop_table.py | Impactstory/total-impact-webapp | ab0d011dc783491bc85aadc2dc9c0f204e59429e | [
"MIT"
] | 2 | 2015-01-11T05:45:59.000Z | 2015-02-11T20:37:05.000Z | scripts/make_pop_table.py | Impactstory/total-impact-webapp | ab0d011dc783491bc85aadc2dc9c0f204e59429e | [
"MIT"
] | 2 | 2015-01-09T20:47:31.000Z | 2015-01-10T03:23:54.000Z | """
Joins a list of country populations and a list of alpha-2 iso country codes.
Run from ~/projects/total-impact-webapp/scripts
country_populations.csv comes from many sources, compiled by the World Bank:
http://databank.worldbank.org/data/views/reports/tableview.aspx. It's been
slightly modified when some of the co... | 32.216495 | 133 | 0.7056 | 452 | 3,125 | 4.637168 | 0.289823 | 0.037214 | 0.033397 | 0.03626 | 0.343034 | 0.241412 | 0.241412 | 0.186069 | 0.11355 | 0.080153 | 0 | 0.050101 | 0.208 | 3,125 | 97 | 134 | 32.216495 | 0.796768 | 0.04768 | 0 | 0.109091 | 0 | 0 | 0.154577 | 0.05095 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.018182 | 0.036364 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
33205a65b1fc7759f11e17244c35b61f54e8e6d6 | 3,399 | py | Python | rolepermissions/tests/test_verifications.py | rensg001/django-role-permissions | 86b191429af234d674c1b13d9c01081c6222bdad | [
"MIT"
] | null | null | null | rolepermissions/tests/test_verifications.py | rensg001/django-role-permissions | 86b191429af234d674c1b13d9c01081c6222bdad | [
"MIT"
] | 1 | 2018-05-25T00:59:07.000Z | 2018-05-25T00:59:07.000Z | rolepermissions/tests/test_verifications.py | rensg001/django-role-permissions | 86b191429af234d674c1b13d9c01081c6222bdad | [
"MIT"
] | 2 | 2018-05-23T11:56:06.000Z | 2019-05-03T16:07:44.000Z |
from django.test import TestCase
from django.contrib.auth import get_user_model
from model_mommy import mommy
from rolepermissions.roles import AbstractUserRole
from rolepermissions.checkers import has_role, has_permission, has_object_permission
from rolepermissions.permissions import register_object_checker
class... | 25.75 | 84 | 0.696087 | 423 | 3,399 | 5.267139 | 0.158392 | 0.10772 | 0.10772 | 0.078995 | 0.58079 | 0.56553 | 0.428187 | 0.422801 | 0.332136 | 0.194345 | 0 | 0.012277 | 0.209179 | 3,399 | 131 | 85 | 25.946565 | 0.816592 | 0 | 0 | 0.353659 | 0 | 0 | 0.064155 | 0 | 0 | 0 | 0 | 0 | 0.182927 | 1 | 0.231707 | false | 0 | 0.073171 | 0.012195 | 0.439024 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
332219a985fcebbfc824a11920e91f615a438e1d | 5,978 | py | Python | web_download_manager.py | litebook/litebook | 3e0fc6daa62a4782a4a1103fe41b9bc56e677e00 | [
"Python-2.0"
] | 20 | 2015-01-27T04:50:16.000Z | 2019-12-09T02:23:15.000Z | web_download_manager.py | litebook/litebook | 3e0fc6daa62a4782a4a1103fe41b9bc56e677e00 | [
"Python-2.0"
] | 1 | 2020-11-26T04:10:27.000Z | 2021-01-03T22:36:12.000Z | web_download_manager.py | hujun-open/litebook | 3e0fc6daa62a4782a4a1103fe41b9bc56e677e00 | [
"Python-2.0"
] | 2 | 2017-05-09T06:56:00.000Z | 2020-11-20T15:23:16.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# generated by wxGlade 0.6.3 on Sun Jul 08 15:59:49 2012
import wx
import wx.lib.newevent
import fileDownloader
import urlparse
import sys
import os
import thread
import traceback
import urllib
import platform
import os
# begin wxGlade: extracode
# end wx... | 30.65641 | 109 | 0.58732 | 787 | 5,978 | 4.270648 | 0.277001 | 0.049985 | 0.074978 | 0.081226 | 0.233264 | 0.09759 | 0.059506 | 0.048795 | 0.027968 | 0.027968 | 0 | 0.042701 | 0.27919 | 5,978 | 194 | 110 | 30.814433 | 0.737294 | 0.209769 | 0 | 0.128205 | 1 | 0 | 0.022952 | 0.006526 | 0 | 0 | 0 | 0 | 0 | 1 | 0.094017 | false | 0 | 0.094017 | 0 | 0.247863 | 0 | 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 |
332265351f2a54e95e3d076c51c7cd82d09d2d70 | 7,243 | py | Python | fixtures/fragments/test2.py | jdkato/txtlint | b4ef295da0ec32dc8a6a22b4ef3252f347ea4897 | [
"MIT"
] | null | null | null | fixtures/fragments/test2.py | jdkato/txtlint | b4ef295da0ec32dc8a6a22b4ef3252f347ea4897 | [
"MIT"
] | 14 | 2017-02-05T02:50:30.000Z | 2017-02-09T19:08:45.000Z | fixtures/fragments/test2.py | jdkato/txtlint | b4ef295da0ec32dc8a6a22b4ef3252f347ea4897 | [
"MIT"
] | null | null | null | """
This module defines pdoc's documentation objects. A documentation object
corresponds to *something* in your Python code that has a docstring or type
annotation. Typically, this only includes modules, classes, functions and
methods. However, `pdoc` adds support for extracting documentation from the
abstract syntax t... | 27.750958 | 79 | 0.635096 | 920 | 7,243 | 4.906522 | 0.31413 | 0.037218 | 0.026362 | 0.015286 | 0.089056 | 0.053168 | 0.027027 | 0.018166 | 0.018166 | 0 | 0 | 0.001908 | 0.276405 | 7,243 | 260 | 80 | 27.857692 | 0.859378 | 0.382576 | 0 | 0.22549 | 0 | 0 | 0.025783 | 0.010129 | 0 | 0 | 0 | 0 | 0.009804 | 1 | 0.166667 | false | 0 | 0.186275 | 0.009804 | 0.54902 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
332286f5b2da9ba2edffac361080e0f045c11ac0 | 3,108 | py | Python | paper1_examples/tsunami_Alaska/maketopo.py | rjleveque/adjoint | 4f3e0b89b8eb994b6f8ccbbfff33de91f6efac1a | [
"BSD-2-Clause"
] | 3 | 2017-03-03T21:27:33.000Z | 2018-04-04T10:13:40.000Z | paper1_examples/tsunami_Alaska/maketopo.py | rjleveque/adjoint | 4f3e0b89b8eb994b6f8ccbbfff33de91f6efac1a | [
"BSD-2-Clause"
] | null | null | null | paper1_examples/tsunami_Alaska/maketopo.py | rjleveque/adjoint | 4f3e0b89b8eb994b6f8ccbbfff33de91f6efac1a | [
"BSD-2-Clause"
] | 3 | 2015-10-16T16:35:17.000Z | 2017-03-03T21:06:51.000Z | """
Download topo and dtopo files needed for this example.
Call functions with makeplots==True to create plots of topo, slip, and dtopo.
"""
import os
import clawpack.clawutil.data
try:
CLAW = os.environ['CLAW']
except:
raise Exception("*** Must first set CLAW enviornment variable")
# Scratch directory... | 34.921348 | 83 | 0.656371 | 408 | 3,108 | 4.835784 | 0.333333 | 0.063862 | 0.060821 | 0.063355 | 0.441967 | 0.441967 | 0.441967 | 0.4222 | 0.4222 | 0.380639 | 0 | 0.020202 | 0.235521 | 3,108 | 88 | 84 | 35.318182 | 0.810185 | 0.026384 | 0 | 0.35 | 0 | 0 | 0.177286 | 0.028861 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.116667 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3324016975ad2c8d1ac8e703942e02516e40ea89 | 233 | py | Python | Preparation/Sorting Method/insertion_sort.py | jaiswalIT02/pythonprograms | bc94e52121202b04c3e9112d9786f93ed6707f7a | [
"MIT"
] | null | null | null | Preparation/Sorting Method/insertion_sort.py | jaiswalIT02/pythonprograms | bc94e52121202b04c3e9112d9786f93ed6707f7a | [
"MIT"
] | null | null | null | Preparation/Sorting Method/insertion_sort.py | jaiswalIT02/pythonprograms | bc94e52121202b04c3e9112d9786f93ed6707f7a | [
"MIT"
] | null | null | null | a=[2,6,7,5,11,15]
n=len(a)
print("old array=",a)
for i in range(n-1):
if a[i]<=a[i+1]:
continue
t=a[i+1]
j=i+1
while j>=1 and a[j-1]>t:
a[j]=a[j-1]
j=j-1
a[j]=t
print("Sorted Array=",a) | 17.923077 | 28 | 0.450644 | 57 | 233 | 1.842105 | 0.421053 | 0.07619 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097561 | 0.296137 | 233 | 13 | 29 | 17.923077 | 0.542683 | 0 | 0 | 0 | 0 | 0 | 0.098291 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.153846 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
332590758505593a8b3146c78e5b816064a832e2 | 8,268 | py | Python | eICU_tstr_evaluation.py | cliohong/RGAN | a38a878ba4ed0fb7eca7ec90d96507da48ff9eaa | [
"MIT"
] | 585 | 2017-06-09T14:49:45.000Z | 2022-03-21T22:49:51.000Z | eICU_tstr_evaluation.py | cliohong/RGAN | a38a878ba4ed0fb7eca7ec90d96507da48ff9eaa | [
"MIT"
] | 36 | 2017-07-18T10:42:23.000Z | 2021-02-04T09:22:56.000Z | eICU_tstr_evaluation.py | cliohong/RGAN | a38a878ba4ed0fb7eca7ec90d96507da48ff9eaa | [
"MIT"
] | 188 | 2017-06-10T17:46:27.000Z | 2022-03-18T14:43:33.000Z | import data_utils
import pandas as pd
import numpy as np
import tensorflow as tf
import math, random, itertools
import pickle
import time
import json
import os
import math
import data_utils
import pickle
from sklearn.ensemble import RandomForestClassifier
from sklearn.metrics import accuracy_score, precision_score, rec... | 33.746939 | 144 | 0.738268 | 1,252 | 8,268 | 4.605431 | 0.132588 | 0.032258 | 0.05411 | 0.047173 | 0.671176 | 0.660076 | 0.652619 | 0.634235 | 0.634235 | 0.634235 | 0 | 0.012952 | 0.112845 | 8,268 | 245 | 145 | 33.746939 | 0.773142 | 0.077286 | 0 | 0.56701 | 0 | 0 | 0.074429 | 0.037018 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.082474 | 0 | 0.082474 | 0.216495 | 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 |
3327a9c16f4377c2d33b370e67b74e7bb1d45630 | 3,532 | py | Python | bench.py | Tijani-Dia/yrouter-bench | ca45cb04f3c7d1065f2121fdd523af30e78fbb49 | [
"BSD-3-Clause"
] | null | null | null | bench.py | Tijani-Dia/yrouter-bench | ca45cb04f3c7d1065f2121fdd523af30e78fbb49 | [
"BSD-3-Clause"
] | null | null | null | bench.py | Tijani-Dia/yrouter-bench | ca45cb04f3c7d1065f2121fdd523af30e78fbb49 | [
"BSD-3-Clause"
] | null | null | null | from django.urls import resolve, set_urlconf
from routes.falcon import falcon_router
from routes.sanic import sanic_router
from routes.werkzeug import werkzeug_router
from routes.yrouter import y_router
def bench():
y_router.match("/")
y_router.match("/articles/2020/")
y_router.match("/articles/2015/")
... | 28.95082 | 86 | 0.657984 | 447 | 3,532 | 5.04698 | 0.127517 | 0.097518 | 0.053191 | 0.070922 | 0.486702 | 0.293883 | 0.230053 | 0.027482 | 0 | 0 | 0 | 0.05597 | 0.165345 | 3,532 | 121 | 87 | 29.190083 | 0.709294 | 0 | 0 | 0.1875 | 0 | 0 | 0.319649 | 0.111268 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052083 | false | 0.0625 | 0.0625 | 0 | 0.114583 | 0.104167 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
332874a3eedb292c687f81bcd2465b8c692224fc | 3,026 | py | Python | expusers.py | ZappedC64/expimpacct | 4b836a8ee36fa64f987e7ca2bfd6d44e8915bbdb | [
"Apache-2.0"
] | null | null | null | expusers.py | ZappedC64/expimpacct | 4b836a8ee36fa64f987e7ca2bfd6d44e8915bbdb | [
"Apache-2.0"
] | null | null | null | expusers.py | ZappedC64/expimpacct | 4b836a8ee36fa64f987e7ca2bfd6d44e8915bbdb | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python
# Script to export users from an existing system
import os, os.path
import sys
import tarfile
# Must be run as root.
if not os.geteuid() == 0:
sys.exit('This script must be run as root (or sudo)!')
def info_message(txtmessage):
print(txtmessage, end='')
def ok_message():
print("... | 30.877551 | 96 | 0.631196 | 431 | 3,026 | 4.341067 | 0.301624 | 0.038482 | 0.032068 | 0.024051 | 0.221272 | 0.130412 | 0.044896 | 0.044896 | 0.044896 | 0.044896 | 0 | 0.021351 | 0.241573 | 3,026 | 97 | 97 | 31.195876 | 0.7939 | 0.160278 | 0 | 0.2 | 0 | 0 | 0.227543 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0.1 | 0.042857 | 0 | 0.071429 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
33367020f6d3c133700d19f4d26a5d781a67722d | 265 | py | Python | js/angular_ui_calendar/__init__.py | fanstatic/js.angular_ui_calendar | f8b3ab6088b19429ded6238385f7596093140389 | [
"BSD-3-Clause"
] | null | null | null | js/angular_ui_calendar/__init__.py | fanstatic/js.angular_ui_calendar | f8b3ab6088b19429ded6238385f7596093140389 | [
"BSD-3-Clause"
] | null | null | null | js/angular_ui_calendar/__init__.py | fanstatic/js.angular_ui_calendar | f8b3ab6088b19429ded6238385f7596093140389 | [
"BSD-3-Clause"
] | null | null | null | from fanstatic import Library, Resource
import js.angular
import js.fullcalendar
library = Library('angular-ui-calendar', 'resources')
angular_ui_calendar = Resource(
library,
'calendar.js',
depends=[js.angular.angular, js.fullcalendar.fullcalendar])
| 24.090909 | 63 | 0.762264 | 31 | 265 | 6.451613 | 0.387097 | 0.08 | 0.17 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128302 | 265 | 10 | 64 | 26.5 | 0.865801 | 0 | 0 | 0 | 0 | 0 | 0.14717 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
333d4f03d4f070c60d0ecf18715abcdad269844d | 14,008 | py | Python | SmileGAN/Smile_GAN_clustering.py | zhijian-yang/SmileGAN | 4fdba00be2b81b7fd2b3f82824b39eab9e28ced6 | [
"MIT"
] | 10 | 2021-12-04T07:20:26.000Z | 2022-03-11T05:00:54.000Z | SmileGAN/Smile_GAN_clustering.py | zhijian-yang/SmileGAN | 4fdba00be2b81b7fd2b3f82824b39eab9e28ced6 | [
"MIT"
] | null | null | null | SmileGAN/Smile_GAN_clustering.py | zhijian-yang/SmileGAN | 4fdba00be2b81b7fd2b3f82824b39eab9e28ced6 | [
"MIT"
] | 4 | 2021-06-01T02:21:36.000Z | 2022-01-06T13:25:43.000Z | import sys
import os
import numpy as np
from sklearn import metrics
from .model import SmileGAN
from .utils import highest_matching_clustering, consensus_clustering, parse_validation_data
from .clustering import Smile_GAN_train
__author__ = "Zhijian Yang"
__copyright__ = "Copyright 2019-2020 The CBICA & SBIA Lab"
__cr... | 51.881481 | 170 | 0.761565 | 2,045 | 14,008 | 5.021516 | 0.153545 | 0.013244 | 0.01636 | 0.008862 | 0.723147 | 0.685851 | 0.671925 | 0.66803 | 0.658681 | 0.646606 | 0 | 0.00709 | 0.154269 | 14,008 | 269 | 171 | 52.074349 | 0.859711 | 0.554683 | 0 | 0.346774 | 0 | 0 | 0.168055 | 0.033047 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040323 | false | 0 | 0.056452 | 0 | 0.145161 | 0.120968 | 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 |
333fb224ded26c447666a752dedbcc9a0294cf15 | 8,820 | py | Python | toRLior.py | Night46/toRLior | 365ab814f0c6538fa1d2d9453d377197b3e16ccd | [
"BSD-3-Clause"
] | 2 | 2016-07-24T20:11:09.000Z | 2020-03-22T02:07:11.000Z | toRLior.py | Night46/toRLior | 365ab814f0c6538fa1d2d9453d377197b3e16ccd | [
"BSD-3-Clause"
] | null | null | null | toRLior.py | Night46/toRLior | 365ab814f0c6538fa1d2d9453d377197b3e16ccd | [
"BSD-3-Clause"
] | 2 | 2017-03-07T10:07:09.000Z | 2020-03-22T02:07:12.000Z | # ##################################################################################################################
# PREREQUISITES
# - tor config file 'torrc' default location /usr/local/etc/tor
# - set the tor config to allow SocksPort on port 9999
# - set the tor config to allow ControlPort on port 9991
# - set the... | 30.839161 | 143 | 0.645578 | 1,163 | 8,820 | 4.736887 | 0.198624 | 0.01906 | 0.009076 | 0.010891 | 0.544382 | 0.502269 | 0.477219 | 0.442367 | 0.43075 | 0.411871 | 0 | 0.035198 | 0.207596 | 8,820 | 286 | 144 | 30.839161 | 0.75304 | 0.236961 | 0 | 0.516484 | 0 | 0.016484 | 0.150495 | 0.029407 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.016484 | 0.071429 | null | null | 0.159341 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
334634a084b5e9633769e97a2dec78e891e75ac4 | 729 | py | Python | erpdevs/erpdevs/doctype/erf_operational_requirements/erf_operational_requirements.py | ONE-F-M/erpdevs | ce13ee874aa100ce73c1b718240537e230ea728f | [
"MIT"
] | null | null | null | erpdevs/erpdevs/doctype/erf_operational_requirements/erf_operational_requirements.py | ONE-F-M/erpdevs | ce13ee874aa100ce73c1b718240537e230ea728f | [
"MIT"
] | null | null | null | erpdevs/erpdevs/doctype/erf_operational_requirements/erf_operational_requirements.py | ONE-F-M/erpdevs | ce13ee874aa100ce73c1b718240537e230ea728f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2020, One FM and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class ERFOperationalRequirements(Document):
pass
@frappe.whitelist()
def get_designation_data(desig... | 36.45 | 178 | 0.728395 | 89 | 729 | 5.842697 | 0.629213 | 0.030769 | 0.042308 | 0.065385 | 0.126923 | 0.126923 | 0.126923 | 0 | 0 | 0 | 0 | 0.008278 | 0.171468 | 729 | 19 | 179 | 38.368421 | 0.852649 | 0.155007 | 0 | 0 | 0 | 0 | 0.276144 | 0.034314 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.230769 | 0 | 0.461538 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
334cbb39e425cbd8421552c7b4a8ea1a9ac7d5fa | 292 | py | Python | start.py | Jerrynicki/jrery-bot | 7a38e60746da7630de96bbbd54a81ad0b91fb07f | [
"MIT"
] | null | null | null | start.py | Jerrynicki/jrery-bot | 7a38e60746da7630de96bbbd54a81ad0b91fb07f | [
"MIT"
] | 7 | 2019-07-23T19:59:45.000Z | 2021-01-06T14:03:56.000Z | start.py | Jerrynicki/jrery-bot | 7a38e60746da7630de96bbbd54a81ad0b91fb07f | [
"MIT"
] | 1 | 2019-07-24T16:41:59.000Z | 2019-07-24T16:41:59.000Z | import subprocess
import time
while True:
proc = subprocess.Popen("python3 main.py", shell=True) # for some reason this avoids a bug where the bot doesn't play anything when not started from a shell
proc.communicate()
print("Process ended. Restarting in 5s...")
time.sleep(5) | 36.5 | 160 | 0.726027 | 45 | 292 | 4.711111 | 0.844444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012605 | 0.184932 | 292 | 8 | 161 | 36.5 | 0.878151 | 0.339041 | 0 | 0 | 0 | 0 | 0.255208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
334d7920ebcc6cf2043d4f3d102c0f07c4a4f2ab | 3,559 | py | Python | source/utils.py | sanixa/GS-WGAN-custom | 77660d4ba9f0e8ae949d76c29bb1b11d0afd9f96 | [
"MIT"
] | null | null | null | source/utils.py | sanixa/GS-WGAN-custom | 77660d4ba9f0e8ae949d76c29bb1b11d0afd9f96 | [
"MIT"
] | null | null | null | source/utils.py | sanixa/GS-WGAN-custom | 77660d4ba9f0e8ae949d76c29bb1b11d0afd9f96 | [
"MIT"
] | null | null | null | import os
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
import torch
from torch.utils.data.dataset import Dataset
from torchvision import datasets, transforms
import torchvision.utils as vutils
def mkdir(dir):
if not os.path.exists(dir):
os.makedirs(dir)
def... | 29.658333 | 83 | 0.635291 | 513 | 3,559 | 4.269006 | 0.237817 | 0.03653 | 0.031963 | 0.014612 | 0.653425 | 0.632877 | 0.620091 | 0.620091 | 0.620091 | 0.620091 | 0 | 0.020894 | 0.233493 | 3,559 | 119 | 84 | 29.907563 | 0.781892 | 0 | 0 | 0.578947 | 0 | 0 | 0.018274 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073684 | false | 0 | 0.084211 | 0 | 0.168421 | 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 |
335890e2572c3c1236575f2710c84c0bf07675f7 | 190 | py | Python | anime_search/__init__.py | BotDevGroup/anime_search | 3d8e22bc57c67753d0bfb24e7ed239379fe995e6 | [
"MIT"
] | 1 | 2021-12-19T06:10:45.000Z | 2021-12-19T06:10:45.000Z | anime_search/__init__.py | BotDevGroup/anime_search | 3d8e22bc57c67753d0bfb24e7ed239379fe995e6 | [
"MIT"
] | null | null | null | anime_search/__init__.py | BotDevGroup/anime_search | 3d8e22bc57c67753d0bfb24e7ed239379fe995e6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
__author__ = 'Albert Espinosa'
__email__ = 'AlbertEspinosaLeyba@Gmail.com'
__version__ = '0.1.0'
from anime_search.base import AnimeSearch
plugin = AnimeSearch()
| 17.272727 | 43 | 0.726316 | 22 | 190 | 5.681818 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0.136842 | 190 | 10 | 44 | 19 | 0.737805 | 0.110526 | 0 | 0 | 0 | 0 | 0.293413 | 0.173653 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3359a0dfe0eed8a4883b422c0bfae51ae1d2f57a | 752 | py | Python | rr/migrations/0050_serviceprocider_add_jwks_and_jwks_uri.py | UniversityofHelsinki/sp-registry | b1336b89788c076bf93f61b97b5469a99acd902c | [
"MIT"
] | null | null | null | rr/migrations/0050_serviceprocider_add_jwks_and_jwks_uri.py | UniversityofHelsinki/sp-registry | b1336b89788c076bf93f61b97b5469a99acd902c | [
"MIT"
] | 1 | 2020-08-10T13:16:58.000Z | 2020-08-18T06:30:20.000Z | rr/migrations/0050_serviceprocider_add_jwks_and_jwks_uri.py | UniversityofHelsinki/sp-registry | b1336b89788c076bf93f61b97b5469a99acd902c | [
"MIT"
] | null | null | null | # Generated by Django 2.2.7 on 2019-11-20 09:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rr', '0049_statistics'),
]
operations = [
migrations.AlterModelOptions(
name='statistics',
options={'ordering': ['-d... | 26.857143 | 107 | 0.578457 | 77 | 752 | 5.558442 | 0.636364 | 0.084112 | 0.107477 | 0.126168 | 0.233645 | 0.233645 | 0.233645 | 0 | 0 | 0 | 0 | 0.041746 | 0.299202 | 752 | 27 | 108 | 27.851852 | 0.770398 | 0.05984 | 0 | 0.333333 | 1 | 0 | 0.178723 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.190476 | 0 | 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 |
335df83184ccbd6fbe7e9fcdaa79c6381cf59167 | 3,699 | py | Python | pycharm-remap/frictionless/remap.py | indika/frictionless | 3ad2a39f0e1c9d9be3bc677ade5fb4d4045c411b | [
"MIT"
] | null | null | null | pycharm-remap/frictionless/remap.py | indika/frictionless | 3ad2a39f0e1c9d9be3bc677ade5fb4d4045c411b | [
"MIT"
] | null | null | null | pycharm-remap/frictionless/remap.py | indika/frictionless | 3ad2a39f0e1c9d9be3bc677ade5fb4d4045c411b | [
"MIT"
] | null | null | null | #!/usr/bin/python
"""Remap
Remaps Python keyboard mapping files between OSX and Windows
Usage:
remap.py
remap.py to_osx <osx_file> <win_file>
remap.py to_windows <osx_file> <win_file>
Options:
-h --help Show this screen.
--version Show version.
"""
__author__ = "Indika Piyasena"
import o... | 29.125984 | 81 | 0.650987 | 456 | 3,699 | 5.019737 | 0.267544 | 0.06291 | 0.04194 | 0.019659 | 0.216689 | 0.151158 | 0.097859 | 0.068152 | 0.068152 | 0.068152 | 0 | 0.005716 | 0.243309 | 3,699 | 126 | 82 | 29.357143 | 0.812076 | 0.036767 | 0 | 0.089744 | 0 | 0 | 0.15493 | 0.017527 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.038462 | 0.076923 | null | null | 0.012821 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
33649c86d7688d6078c5df779afe88b2e301b6b0 | 1,599 | py | Python | mofa/database_API/lang/en_US/CourseSettings.py | BoxInABoxICT/BoxPlugin | ad351978faa37ab867a86d2f4023a2b3e5a2ce19 | [
"Apache-2.0"
] | null | null | null | mofa/database_API/lang/en_US/CourseSettings.py | BoxInABoxICT/BoxPlugin | ad351978faa37ab867a86d2f4023a2b3e5a2ce19 | [
"Apache-2.0"
] | null | null | null | mofa/database_API/lang/en_US/CourseSettings.py | BoxInABoxICT/BoxPlugin | ad351978faa37ab867a86d2f4023a2b3e5a2ce19 | [
"Apache-2.0"
] | null | null | null | # This program has been developed by students from the bachelor Computer Science at Utrecht University within the
# Software and Game project course
# ©Copyright Utrecht University Department of Information and Computing Sciences.
settingStrings = {
"updateMessage": "Settings updates succesfully",
"updateError... | 36.340909 | 177 | 0.661038 | 168 | 1,599 | 6.285714 | 0.52381 | 0.03125 | 0.066288 | 0.068182 | 0.236742 | 0.157197 | 0.092803 | 0.092803 | 0 | 0 | 0 | 0 | 0.238899 | 1,599 | 43 | 178 | 37.186047 | 0.866886 | 0.140088 | 0 | 0.052632 | 0 | 0.052632 | 0.67469 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3365899c1d5aada1ef7c1d2e84f4ce661a694683 | 654 | py | Python | src/api/routes.py | mihai-dobre/autoscaling | 7cf8e9e5a99220ae54a391de736e8de7b4e434f5 | [
"Apache-2.0"
] | null | null | null | src/api/routes.py | mihai-dobre/autoscaling | 7cf8e9e5a99220ae54a391de736e8de7b4e434f5 | [
"Apache-2.0"
] | null | null | null | src/api/routes.py | mihai-dobre/autoscaling | 7cf8e9e5a99220ae54a391de736e8de7b4e434f5 | [
"Apache-2.0"
] | null | null | null | import time
import uuid
from pathlib import Path
from flask import Blueprint, abort, jsonify, request, url_for
from src import logger
from src.api.helpers import add
bp = Blueprint("api", __name__)
@bp.route("/ping")
def ping():
return jsonify({"status": "success", "message": "pong"})
@bp.route("/add", metho... | 20.4375 | 64 | 0.640673 | 87 | 654 | 4.747126 | 0.62069 | 0.033898 | 0.09201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005792 | 0.207951 | 654 | 31 | 65 | 21.096774 | 0.791506 | 0.110092 | 0 | 0 | 0 | 0 | 0.214545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.352941 | 0.058824 | 0.588235 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
336ad4da9e6439da5add6518afebe8675366e946 | 10,924 | py | Python | src/visualization/visualize_parameters.py | mikolajsacha/tweetsclassification | 33756cf6877f9cec328f08a3c728b26bf123bc8f | [
"MIT"
] | 4 | 2016-11-22T11:26:06.000Z | 2017-02-22T12:56:45.000Z | src/visualization/visualize_parameters.py | mikolajsacha/tweetsclassification | 33756cf6877f9cec328f08a3c728b26bf123bc8f | [
"MIT"
] | 26 | 2016-11-08T20:04:37.000Z | 2017-02-18T13:51:39.000Z | src/visualization/visualize_parameters.py | mikolajsacha/tweetsclassification | 33756cf6877f9cec328f08a3c728b26bf123bc8f | [
"MIT"
] | null | null | null | import ast
import os
import numpy as np
import matplotlib.pyplot as plt
import itertools
from mpl_toolkits.mplot3d import Axes3D # do not remove this import
import matplotlib.patches as mpatches
from matplotlib import cm
from scipy.interpolate import griddata
from src.common import choose_classifier, DATA_FOLDER
from ... | 40.459259 | 117 | 0.69059 | 1,461 | 10,924 | 4.898015 | 0.186858 | 0.039827 | 0.022359 | 0.031302 | 0.350615 | 0.261179 | 0.189771 | 0.120738 | 0.110397 | 0.066378 | 0 | 0.018146 | 0.207982 | 10,924 | 269 | 118 | 40.609665 | 0.808946 | 0.042384 | 0 | 0.15508 | 0 | 0.005348 | 0.105232 | 0.005057 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.064171 | null | null | 0.037433 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
681c504aef99bdc8bdd00d2f1b1c5c5d03a610fa | 1,518 | py | Python | msticpy/config/ce_keyvault.py | kubajir/msticpy | 7b319b71b191b5f75dcf9afd87492523a74b5ad7 | [
"MIT"
] | 820 | 2019-05-16T07:24:34.000Z | 2022-03-31T09:18:10.000Z | msticpy/config/ce_keyvault.py | kubajir/msticpy | 7b319b71b191b5f75dcf9afd87492523a74b5ad7 | [
"MIT"
] | 205 | 2019-06-24T19:24:19.000Z | 2022-03-30T23:13:46.000Z | msticpy/config/ce_keyvault.py | kubajir/msticpy | 7b319b71b191b5f75dcf9afd87492523a74b5ad7 | [
"MIT"
] | 171 | 2019-06-23T13:53:12.000Z | 2022-03-29T18:22:46.000Z | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
"""Key Vau... | 33 | 85 | 0.610672 | 184 | 1,518 | 4.934783 | 0.63587 | 0.052863 | 0.029736 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198946 | 1,518 | 45 | 86 | 33.733333 | 0.746711 | 0.237813 | 0 | 0 | 0 | 0.033333 | 0.723292 | 0.050788 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.233333 | 0 | 0 | 0 | 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 |
682649e7bed0fae5615e5b39a62b67d54e689a08 | 6,743 | py | Python | fil_finder/tests/test_widths.py | e-koch/fil_finder | aa03e4e7b7f443d6d9dbd127a46a18eb67680499 | [
"MIT"
] | 28 | 2015-07-10T15:47:22.000Z | 2022-01-25T10:18:33.000Z | fil_finder/tests/test_widths.py | e-koch/fil_finder | aa03e4e7b7f443d6d9dbd127a46a18eb67680499 | [
"MIT"
] | 50 | 2015-05-07T21:20:08.000Z | 2022-02-23T02:06:56.000Z | fil_finder/tests/test_widths.py | e-koch/fil_finder | aa03e4e7b7f443d6d9dbd127a46a18eb67680499 | [
"MIT"
] | 14 | 2015-07-13T10:26:44.000Z | 2021-11-25T08:23:21.000Z |
import pytest
from ..width import nonparam_width, gauss_model, radial_profile
from .testing_utils import generate_filament_model
import numpy as np
import numpy.testing as npt
from scipy import ndimage as nd
def generate_gaussian_profile(pts, width=3.0, amplitude=2.0, background=0.5):
return amplitude * np.exp... | 35.677249 | 79 | 0.571407 | 854 | 6,743 | 4.324356 | 0.166276 | 0.063363 | 0.025995 | 0.043596 | 0.681018 | 0.613052 | 0.600596 | 0.600596 | 0.585973 | 0.585973 | 0 | 0.055532 | 0.302981 | 6,743 | 188 | 80 | 35.867021 | 0.730213 | 0.057245 | 0 | 0.513761 | 1 | 0 | 0.010633 | 0 | 0 | 0 | 0 | 0 | 0.146789 | 1 | 0.082569 | false | 0 | 0.055046 | 0.009174 | 0.146789 | 0 | 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 |
682914ad5bde8ba9ddb065de316630947586b0c5 | 2,244 | py | Python | omtk/ui/widget_list_influences.py | CDufour909/omtk_unreal | 64ae76a7b0a3f73a4b32d3b330f3174d02c54234 | [
"MIT"
] | null | null | null | omtk/ui/widget_list_influences.py | CDufour909/omtk_unreal | 64ae76a7b0a3f73a4b32d3b330f3174d02c54234 | [
"MIT"
] | null | null | null | omtk/ui/widget_list_influences.py | CDufour909/omtk_unreal | 64ae76a7b0a3f73a4b32d3b330f3174d02c54234 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/home/rlessard/packages/omtk/0.4.999/python/omtk/ui/widget_list_influences.ui'
#
# Created: Tue Feb 20 10:34:53 2018
# by: pyside2-uic running on Qt 2.0.0~alpha0
#
# WARNING! All changes made in this file will be lost!
from omtk.vendo... | 46.75 | 132 | 0.724153 | 241 | 2,244 | 6.66805 | 0.414938 | 0.060983 | 0.074673 | 0.04107 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02031 | 0.166221 | 2,244 | 47 | 133 | 47.744681 | 0.838589 | 0.128342 | 0 | 0 | 1 | 0 | 0.064715 | 0.010786 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.029412 | 0 | 0.117647 | 0 | 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 |
682bb47a92ec000093e0511bf9d2ca765424d4ac | 586 | py | Python | PycharmProjects/pythonProject/venv/ex042.py | New-Caiocolas/Exercicios-Python | 408fc4e2b363761a8e2b4046efd0670d421a0d8a | [
"MIT"
] | null | null | null | PycharmProjects/pythonProject/venv/ex042.py | New-Caiocolas/Exercicios-Python | 408fc4e2b363761a8e2b4046efd0670d421a0d8a | [
"MIT"
] | null | null | null | PycharmProjects/pythonProject/venv/ex042.py | New-Caiocolas/Exercicios-Python | 408fc4e2b363761a8e2b4046efd0670d421a0d8a | [
"MIT"
] | null | null | null | print('=--=' * 20)
print('ANALIZADOR DE TRIÂNGULOS')
print('=--=' * 20)
reta1 = int(input('Digite a primeira reta:'))
reta2 = int(input('Digite a segunda reta:'))
reta3 = int(input('Digite a terceira reta:'))
if reta1 < reta2 + reta3 and reta2 < reta1 + reta3 and reta3 < reta1 + reta2:
print('Os segmentos acima p... | 32.555556 | 77 | 0.631399 | 75 | 586 | 4.933333 | 0.426667 | 0.108108 | 0.113514 | 0.121622 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049784 | 0.211604 | 586 | 18 | 78 | 32.555556 | 0.751082 | 0 | 0 | 0.25 | 0 | 0 | 0.37138 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
682d4ab9f30f78d7cd7ce229f8a1a9fdadf919b4 | 2,717 | py | Python | posthog/models/property_definition.py | dorucioclea/posthog | a7e792c3fc5c1abc70d8167e1ead12d4ea24f17a | [
"MIT"
] | null | null | null | posthog/models/property_definition.py | dorucioclea/posthog | a7e792c3fc5c1abc70d8167e1ead12d4ea24f17a | [
"MIT"
] | null | null | null | posthog/models/property_definition.py | dorucioclea/posthog | a7e792c3fc5c1abc70d8167e1ead12d4ea24f17a | [
"MIT"
] | null | null | null | from django.contrib.postgres.indexes import GinIndex
from django.db import models
from posthog.models.team import Team
from posthog.models.utils import UUIDModel
class PropertyType(models.TextChoices):
Datetime = "DateTime", "DateTime"
String = "String", "String"
Numeric = "Numeric", "Numeric"
Boolea... | 41.166667 | 120 | 0.700405 | 351 | 2,717 | 5.307692 | 0.407407 | 0.019324 | 0.028986 | 0.026838 | 0.213634 | 0.196457 | 0.12453 | 0.12453 | 0.12453 | 0.12453 | 0 | 0.014027 | 0.186603 | 2,717 | 65 | 121 | 41.8 | 0.828959 | 0.154582 | 0 | 0.040816 | 0 | 0 | 0.231409 | 0.034558 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040816 | false | 0 | 0.081633 | 0.040816 | 0.653061 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
683607cd3871c4c586d5895407ea70f2c37932db | 44,480 | py | Python | program/dataHandling.py | otills/embryocv | d501f057bada15ff5dc753d3dae5a883b5c9e244 | [
"MIT"
] | 1 | 2020-08-05T02:47:12.000Z | 2020-08-05T02:47:12.000Z | program/dataHandling.py | otills/embryocv | d501f057bada15ff5dc753d3dae5a883b5c9e244 | [
"MIT"
] | null | null | null | program/dataHandling.py | otills/embryocv | d501f057bada15ff5dc753d3dae5a883b5c9e244 | [
"MIT"
] | 1 | 2020-08-05T02:47:16.000Z | 2020-08-05T02:47:16.000Z | # Import dependencies
import cv2
import numpy as np
import pandas as pd
import glob
import os
import sys
import eggUI
import viewOutput
import time
import pathos
import json
import xarray as xr
from PyQt5.Qt import *
from PyQt5 import QtGui
class dataHandling(object):
#================================================... | 52.826603 | 221 | 0.520414 | 4,219 | 44,480 | 5.479972 | 0.143162 | 0.059948 | 0.037111 | 0.034516 | 0.608391 | 0.551514 | 0.522621 | 0.501168 | 0.457958 | 0.440441 | 0 | 0.005543 | 0.249663 | 44,480 | 841 | 222 | 52.889417 | 0.687191 | 0.314816 | 0 | 0.547445 | 0 | 0 | 0.071984 | 0.00172 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.041971 | null | null | 0.04562 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6838e7fa6a29cff97b40c5a4896f2d929417ac17 | 5,407 | py | Python | hitbasic/visitor/factory.py | pvmm/hitbasic | f134a80d7e9ada5c7c7423a43001f543fa9ad896 | [
"BSD-2-Clause"
] | null | null | null | hitbasic/visitor/factory.py | pvmm/hitbasic | f134a80d7e9ada5c7c7423a43001f543fa9ad896 | [
"BSD-2-Clause"
] | null | null | null | hitbasic/visitor/factory.py | pvmm/hitbasic | f134a80d7e9ada5c7c7423a43001f543fa9ad896 | [
"BSD-2-Clause"
] | null | null | null | from ..factory import factory
from ..exceptions import *
from .. import language_clauses as clauses
from .. import language_statements as statements
class FactoryProxy:
def __init__(self):
self.current_node = None
self.current_rule = None
def create_token(self, *token, **kwargs): # *token a... | 40.051852 | 104 | 0.66118 | 683 | 5,407 | 5.076135 | 0.161054 | 0.103836 | 0.082204 | 0.093164 | 0.592731 | 0.518892 | 0.495529 | 0.470147 | 0.470147 | 0.456879 | 0 | 0.003544 | 0.217311 | 5,407 | 134 | 105 | 40.350746 | 0.81569 | 0.065101 | 0 | 0.384615 | 0 | 0 | 0.073103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.043956 | 0 | 0.494505 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
683b173d0066b8f2d3b663e02f110a45046339c4 | 598 | py | Python | utils/image_saver.py | amirbaghi/weeker_raytracer | 4a09604be13202ffba9c99618cbcd10e5ef3d20a | [
"CC0-1.0"
] | 1 | 2021-12-11T10:21:20.000Z | 2021-12-11T10:21:20.000Z | utils/image_saver.py | amirbaghi/weeker_raytracer | 4a09604be13202ffba9c99618cbcd10e5ef3d20a | [
"CC0-1.0"
] | null | null | null | utils/image_saver.py | amirbaghi/weeker_raytracer | 4a09604be13202ffba9c99618cbcd10e5ef3d20a | [
"CC0-1.0"
] | null | null | null | import re
import numpy as np
from PIL import Image
from pathlib import Path
# Open image file, slurp the lot
contents = Path('build/image.txt').read_text()
# Make a list of anything that looks like numbers using a regex...
# ... taking first as height, second as width and remainder as pixels
w,h, *pixels = re.findall... | 35.176471 | 90 | 0.735786 | 106 | 598 | 4.141509 | 0.584906 | 0.036446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009881 | 0.153846 | 598 | 17 | 91 | 35.176471 | 0.857708 | 0.506689 | 0 | 0 | 0 | 0 | 0.131034 | 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 |
684af067d353cf9350a75043ce9ab13211197917 | 1,766 | py | Python | cache/models.py | ZHAISHENKING/django_caching | 75676ef473d07d6d8c8e018235d90373f8725f36 | [
"Apache-2.0"
] | 1 | 2018-12-27T14:21:19.000Z | 2018-12-27T14:21:19.000Z | cache/models.py | ZHAISHENKING/django_caching | 75676ef473d07d6d8c8e018235d90373f8725f36 | [
"Apache-2.0"
] | null | null | null | cache/models.py | ZHAISHENKING/django_caching | 75676ef473d07d6d8c8e018235d90373f8725f36 | [
"Apache-2.0"
] | 1 | 2019-01-09T03:03:43.000Z | 2019-01-09T03:03:43.000Z | from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType
from django.db import models
from django.db.models.signals import (
pre_save,
pre_delete,
m2m_changed,
)
from cache.listeners import (
invalidate_model_cache,
invalidate_m2m_c... | 30.448276 | 80 | 0.731597 | 241 | 1,766 | 5.153527 | 0.419087 | 0.032206 | 0.048309 | 0.046699 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009615 | 0.175538 | 1,766 | 57 | 81 | 30.982456 | 0.843407 | 0.285391 | 0 | 0 | 0 | 0 | 0.050289 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.166667 | 0.066667 | 0.633333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
684dff6ab945b41a6573672c55ae6a8e062f9a63 | 1,115 | py | Python | continual_rl/policies/prototype/prototype_policy.py | AGI-Labs/continual_rl | bcf17d879e8a983340be233ff8f740c424d0f303 | [
"MIT"
] | 19 | 2021-07-27T05:20:09.000Z | 2022-02-27T07:12:05.000Z | continual_rl/policies/prototype/prototype_policy.py | AGI-Labs/continual_rl | bcf17d879e8a983340be233ff8f740c424d0f303 | [
"MIT"
] | 2 | 2021-11-05T07:36:50.000Z | 2022-03-11T00:21:50.000Z | continual_rl/policies/prototype/prototype_policy.py | AGI-Labs/continual_rl | bcf17d879e8a983340be233ff8f740c424d0f303 | [
"MIT"
] | 3 | 2021-10-20T06:04:35.000Z | 2022-03-06T22:59:36.000Z | from continual_rl.policies.policy_base import PolicyBase
from .prototype_policy_config import PrototypePolicyConfig # Switch to your config type
class PrototypePolicy(PolicyBase):
"""
A simple implementation of policy as a sample of how policies can be created.
Refer to policy_base itself for more detai... | 35.967742 | 118 | 0.747982 | 134 | 1,115 | 5.91791 | 0.514925 | 0.151324 | 0.136192 | 0.045397 | 0.055486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197309 | 1,115 | 30 | 119 | 37.166667 | 0.886034 | 0.194619 | 0 | 0.277778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
68588a92fa7d6c340349f8dafabe7f1632afb1e7 | 4,160 | py | Python | ppysal/release/adjacentpolygon.py | ElsevierSoftwareX/SOFTX_2018_242 | 9a7d7c02b2f1d7b6bfd1b08fbb2150c30ddd1046 | [
"NCSA",
"BSD-3-Clause"
] | 22 | 2015-07-16T01:05:44.000Z | 2021-07-28T15:38:19.000Z | ppysal/release/adjacentpolygon.py | ElsevierSoftwareX/SOFTX-D-15-00005 | bb0c21ca479db5ac3ecf789ab280d5e45c3c7805 | [
"NCSA",
"BSD-3-Clause"
] | 1 | 2016-07-25T02:25:20.000Z | 2016-07-25T17:38:26.000Z | ppysal/release/adjacentpolygon.py | ElsevierSoftwareX/SOFTX-D-15-00005 | bb0c21ca479db5ac3ecf789ab280d5e45c3c7805 | [
"NCSA",
"BSD-3-Clause"
] | 20 | 2015-10-28T15:28:48.000Z | 2021-06-17T14:29:16.000Z | import collections
import itertools
import sys
import numpy as np
import pysal as ps
from mpi4py import MPI
import time
from globalsort import globalsort
if __name__ == '__main__':
t1 = time.time()
comm = MPI.COMM_WORLD
rank = comm.Get_rank()
#Phase I: Compute Hi bounds and sort the points - this ... | 29.090909 | 148 | 0.52524 | 538 | 4,160 | 3.996283 | 0.286245 | 0.042326 | 0.042326 | 0.020465 | 0.110233 | 0.093488 | 0.093488 | 0.028837 | 0.028837 | 0.028837 | 0 | 0.023749 | 0.342067 | 4,160 | 142 | 149 | 29.295775 | 0.761783 | 0.08101 | 0 | 0.174419 | 0 | 0 | 0.090139 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.093023 | null | null | 0.081395 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
685c1be4e26448fe650eda7f40aca033ddbcf85c | 522 | py | Python | napari/utils/_tests/test_notebook_display.py | quantumjot/napari | f87e18641c529f6c592553b052805c9d75231b90 | [
"BSD-3-Clause"
] | null | null | null | napari/utils/_tests/test_notebook_display.py | quantumjot/napari | f87e18641c529f6c592553b052805c9d75231b90 | [
"BSD-3-Clause"
] | null | null | null | napari/utils/_tests/test_notebook_display.py | quantumjot/napari | f87e18641c529f6c592553b052805c9d75231b90 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
from napari.utils import nbscreenshot
def test_nbscreenshot(viewer_factory):
"""Test taking a screenshot."""
view, viewer = viewer_factory()
np.random.seed(0)
data = np.random.random((10, 15))
viewer.add_image(data)
rich_display_object = nbscreenshot(viewer)
assert ha... | 27.473684 | 74 | 0.741379 | 71 | 522 | 5.197183 | 0.619718 | 0.119241 | 0.184282 | 0.113821 | 0.130081 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011628 | 0.176245 | 522 | 18 | 75 | 29 | 0.846512 | 0.181992 | 0 | 0 | 0 | 0 | 0.023753 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.272727 | 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 |
6863a676bd612e1286e668eedaeb7fc75fadf68a | 2,973 | py | Python | scripts/trace.py | TomiBelan/fajr | 23a8896f2dad7832c22b61636ec3ad46e70e4174 | [
"MIT"
] | null | null | null | scripts/trace.py | TomiBelan/fajr | 23a8896f2dad7832c22b61636ec3ad46e70e4174 | [
"MIT"
] | null | null | null | scripts/trace.py | TomiBelan/fajr | 23a8896f2dad7832c22b61636ec3ad46e70e4174 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sys
from struct import unpack
from collections import namedtuple
EntryHeader = namedtuple('EntryHeader', 'id parent length')
Entry = namedtuple('Entry', 'id parent message trace data children')
class DecodeError(Exception):
def __init__(self, value):
self.value = value
def __str_... | 28.586538 | 125 | 0.617222 | 448 | 2,973 | 4.017857 | 0.247768 | 0.027222 | 0.016667 | 0.02 | 0.09 | 0.023333 | 0 | 0 | 0 | 0 | 0 | 0.016108 | 0.22738 | 2,973 | 103 | 126 | 28.864078 | 0.767523 | 0.031954 | 0 | 0.076923 | 0 | 0 | 0.089422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.032967 | null | null | 0.043956 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
68642798ca363037db02f6c34464fa28f3be5e2d | 264 | py | Python | tdd_wallet/views/credit_amount/tests/__init__.py | kapeed2091/tdd_practice | df8def8f91e528232d1a86b363523b99f6d2a818 | [
"Apache-2.0"
] | null | null | null | tdd_wallet/views/credit_amount/tests/__init__.py | kapeed2091/tdd_practice | df8def8f91e528232d1a86b363523b99f6d2a818 | [
"Apache-2.0"
] | null | null | null | tdd_wallet/views/credit_amount/tests/__init__.py | kapeed2091/tdd_practice | df8def8f91e528232d1a86b363523b99f6d2a818 | [
"Apache-2.0"
] | null | null | null | # pylint: disable=wrong-import-position
APP_NAME = "tdd_wallet"
OPERATION_NAME = "credit_amount"
REQUEST_METHOD = "post"
URL_SUFFIX = "credit/v1/"
from .test_case_01 import TestCase01CreditAmountAPITestCase
__all__ = [
"TestCase01CreditAmountAPITestCase"
]
| 20.307692 | 59 | 0.787879 | 28 | 264 | 7 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030043 | 0.117424 | 264 | 12 | 60 | 22 | 0.811159 | 0.140152 | 0 | 0 | 0 | 0 | 0.311111 | 0.146667 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
686a22a21089f6dc3b5d32a7ac4bd97897bc8488 | 657 | py | Python | observer/client.py | amitkc00/design_patterns | 86262200d8ab106e9e8b32abc0d87e7a8e1cce2a | [
"MIT"
] | null | null | null | observer/client.py | amitkc00/design_patterns | 86262200d8ab106e9e8b32abc0d87e7a8e1cce2a | [
"MIT"
] | null | null | null | observer/client.py | amitkc00/design_patterns | 86262200d8ab106e9e8b32abc0d87e7a8e1cce2a | [
"MIT"
] | null | null | null | from subject_Weather import weather
from observer_currentCondition import currentCondition
from observer_forecastDisplay import forecastDisplay
from observer_statisticsDisplay import statisticsDisplay
if __name__== "__main__":
weather = weather()
current = currentCondition()
weather.subscribeElem(current... | 29.863636 | 95 | 0.774734 | 72 | 657 | 6.902778 | 0.555556 | 0.072435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171994 | 657 | 21 | 96 | 31.285714 | 0.913603 | 0.249619 | 0 | 0 | 0 | 0 | 0.016327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6870787fc2280e5e50a4fb1228ba097b2835a3fa | 1,093 | py | Python | 01 - Expressions, variables and assignments/variables-assignment.py | PableraShow/python-exercises | e1648fd42f3009ec6fb1e2096852b6d399e91d5b | [
"MIT"
] | 8 | 2018-10-01T17:35:57.000Z | 2022-02-01T08:12:12.000Z | 01 - Expressions, variables and assignments/variables-assignment.py | PableraShow/python-exercises | e1648fd42f3009ec6fb1e2096852b6d399e91d5b | [
"MIT"
] | null | null | null | 01 - Expressions, variables and assignments/variables-assignment.py | PableraShow/python-exercises | e1648fd42f3009ec6fb1e2096852b6d399e91d5b | [
"MIT"
] | 6 | 2018-07-22T19:15:21.000Z | 2022-02-05T07:54:58.000Z | # Variables - placeholders for important values
# Assignment
# To store a value in a variable, the '=' sign is used. Any
# type of data can be stored in variables.
int_num = int(3)
float_num = 4.5
answer = 3 * 2
word = "hello"
phrase = 'How are you?'
boolean = True
# Do not use the '==' to assign ... | 17.629032 | 64 | 0.602928 | 189 | 1,093 | 3.47619 | 0.433862 | 0.074581 | 0.050228 | 0.048706 | 0.076104 | 0.076104 | 0 | 0 | 0 | 0 | 0 | 0.028205 | 0.286368 | 1,093 | 61 | 65 | 17.918033 | 0.814103 | 0.596523 | 0 | 0 | 0 | 0 | 0.175141 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.318182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
68740c237ca20d660becf30814e50de2da16633c | 2,638 | py | Python | cafebabel/articles/tags/models.py | cafebabel/backlog | 8792eb9a18b6f926bcd7b12b986dfa06e3341bdd | [
"MIT"
] | 4 | 2017-10-10T14:08:43.000Z | 2020-01-26T02:55:50.000Z | cafebabel/articles/tags/models.py | cafebabel/backlog | 8792eb9a18b6f926bcd7b12b986dfa06e3341bdd | [
"MIT"
] | 409 | 2017-10-10T14:45:11.000Z | 2018-06-28T10:28:06.000Z | cafebabel/articles/tags/models.py | scopyleft/backlog | 8792eb9a18b6f926bcd7b12b986dfa06e3341bdd | [
"MIT"
] | 1 | 2017-11-09T11:10:54.000Z | 2017-11-09T11:10:54.000Z | from http import HTTPStatus
from flask import abort, current_app, url_for
from flask_mongoengine import BaseQuerySet
from mongoengine import signals
from ... import db
from ...core.exceptions import ValidationError
from ...core.helpers import allowed_file, slugify
from ...core.mixins import UploadableImageMixin
cla... | 29.977273 | 78 | 0.658453 | 317 | 2,638 | 5.343849 | 0.318612 | 0.029516 | 0.024793 | 0.021251 | 0.140496 | 0.112161 | 0.046045 | 0.046045 | 0 | 0 | 0 | 0.000494 | 0.233131 | 2,638 | 87 | 79 | 30.321839 | 0.836876 | 0 | 0 | 0.089552 | 0 | 0 | 0.064064 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.149254 | false | 0 | 0.119403 | 0.089552 | 0.507463 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6875143554080763360af7644d5a777a4d75efc8 | 3,281 | py | Python | out.py | Arka7Z/NDL | 54952c608e99c50a58ecb1ba8bd0dee8e6e60dfa | [
"MIT"
] | null | null | null | out.py | Arka7Z/NDL | 54952c608e99c50a58ecb1ba8bd0dee8e6e60dfa | [
"MIT"
] | null | null | null | out.py | Arka7Z/NDL | 54952c608e99c50a58ecb1ba8bd0dee8e6e60dfa | [
"MIT"
] | null | null | null | from tensorflow.contrib.layers import fully_connected
import tensorflow as tf
import pandas as pd
import numpy as np
from sklearn.preprocessing import Imputer
from sklearn import cross_validation
'''Reading and preparing the data'''
data=pd.read_csv('Data4.csv')
species= list(data['Class'].unique())
data['One-hot'] =... | 40.506173 | 136 | 0.741542 | 538 | 3,281 | 4.347584 | 0.366171 | 0.017101 | 0.015391 | 0.017101 | 0.145361 | 0.119282 | 0.096195 | 0.096195 | 0.096195 | 0.076101 | 0 | 0.020206 | 0.140201 | 3,281 | 80 | 137 | 41.0125 | 0.808933 | 0.195977 | 0 | 0.103448 | 0 | 0 | 0.038339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.103448 | null | null | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6878350ac1797119e979de005020704bdc640fca | 1,387 | py | Python | js2json.py | ppetoumenos/election_data_gr | f3418bad443718da12b295704e4f01196ee29dda | [
"CC0-1.0"
] | null | null | null | js2json.py | ppetoumenos/election_data_gr | f3418bad443718da12b295704e4f01196ee29dda | [
"CC0-1.0"
] | null | null | null | js2json.py | ppetoumenos/election_data_gr | f3418bad443718da12b295704e4f01196ee29dda | [
"CC0-1.0"
] | null | null | null | #lifted from http://stackoverflow.com/questions/3601864/python-load-text-as-python-object/3602436#3602436
# Author: Paul McGuire
import json
import codecs
from pyparsing import (Suppress, Regex, quotedString, Word, alphas,
alphanums, oneOf, Forward, Optional, dictOf, delimitedList, Group, removeQuotes)
def transform... | 34.675 | 105 | 0.621485 | 167 | 1,387 | 5.101796 | 0.479042 | 0.070423 | 0.073944 | 0.051643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036279 | 0.224946 | 1,387 | 39 | 106 | 35.564103 | 0.756279 | 0.105984 | 0 | 0 | 0 | 0 | 0.037338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.107143 | 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 |
687ca1a62ee09a31fb3323b4b683acdc5aa88474 | 668 | py | Python | 2-control-flow/sals-shipping/shipping.py | elenaidon/learn-python | 02340344506086e4f813b3d518578e08693de38a | [
"MIT"
] | null | null | null | 2-control-flow/sals-shipping/shipping.py | elenaidon/learn-python | 02340344506086e4f813b3d518578e08693de38a | [
"MIT"
] | null | null | null | 2-control-flow/sals-shipping/shipping.py | elenaidon/learn-python | 02340344506086e4f813b3d518578e08693de38a | [
"MIT"
] | null | null | null | # Sal's Shipping
# Eleni A.
weight = 41.5
GS_FLAT = 20
GSP_FLAT = 125
# Basic Scale Shipping
def basic_shipping(weight):
if weight <= 2:
cost = weight * 1.50
elif weight <= 6:
cost = weight * 3
elif weight <=10:
cost = weight * 4
else:
cost = weight * 4.75
return cost
# Ground Shipping
def ... | 19.647059 | 50 | 0.696108 | 95 | 668 | 4.778947 | 0.347368 | 0.215859 | 0.125551 | 0.101322 | 0.207048 | 0.207048 | 0.207048 | 0.207048 | 0 | 0 | 0 | 0.039179 | 0.197605 | 668 | 33 | 51 | 20.242424 | 0.807836 | 0.148204 | 0 | 0.090909 | 0 | 0 | 0.097865 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0 | 0 | 0.272727 | 0.136364 | 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 |
687d7d670013e45d65a961350872100b492d634a | 449 | py | Python | lamby/src/uninit.py | lamby-ml/lamby-cli | c6f7d21750c94e47ced05bdb2e11a7e882e77f93 | [
"MIT"
] | null | null | null | lamby/src/uninit.py | lamby-ml/lamby-cli | c6f7d21750c94e47ced05bdb2e11a7e882e77f93 | [
"MIT"
] | 7 | 2019-02-04T19:39:42.000Z | 2019-04-18T16:33:54.000Z | lamby/src/uninit.py | lamby-ml/lamby-cli | c6f7d21750c94e47ced05bdb2e11a7e882e77f93 | [
"MIT"
] | null | null | null | import os
import shutil
import sys
import click
@click.command('uninit', short_help="un-initialize .lamby file in cwd")
def uninit():
"""Un-initializes the .lamby file in the repository"""
lamby_dir = './.lamby'
if not os.path.isdir(lamby_dir):
click.echo('Lamby project has not been initialized ... | 23.631579 | 78 | 0.672606 | 65 | 449 | 4.584615 | 0.523077 | 0.080537 | 0.073826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002778 | 0.198218 | 449 | 18 | 79 | 24.944444 | 0.825 | 0.106904 | 0 | 0 | 0 | 0 | 0.288608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6889dfb7dce67b4b30dcf86431e8d11b53129d2f | 2,718 | py | Python | ansible/venv/lib/python2.7/site-packages/ansible/modules/windows/win_defrag.py | gvashchenkolineate/gvashchenkolineate_infra_trytravis | 0fb18850afe0d8609693ba4b23f29c7cda17d97f | [
"MIT"
] | 17 | 2017-06-07T23:15:01.000Z | 2021-08-30T14:32:36.000Z | ansible/ansible/modules/windows/win_defrag.py | SergeyCherepanov/ansible | 875711cd2fd6b783c812241c2ed7a954bf6f670f | [
"MIT"
] | 9 | 2017-06-25T03:31:52.000Z | 2021-05-17T23:43:12.000Z | ansible/ansible/modules/windows/win_defrag.py | SergeyCherepanov/ansible | 875711cd2fd6b783c812241c2ed7a954bf6f670f | [
"MIT"
] | 3 | 2018-05-26T21:31:22.000Z | 2019-09-28T17:00:45.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: 2017, Dag Wieers (@dagwieers) <dag@wieers.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by... | 26.647059 | 133 | 0.691685 | 354 | 2,718 | 5.262712 | 0.483051 | 0.028986 | 0.048309 | 0.033816 | 0.200215 | 0.108427 | 0.108427 | 0.108427 | 0.108427 | 0.057971 | 0 | 0.010372 | 0.219647 | 2,718 | 101 | 134 | 26.910891 | 0.867987 | 0.068801 | 0 | 0.337079 | 0 | 0.011236 | 0.938662 | 0.018995 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
688d1ee24f449a15f28387da5107d49271b7eb1a | 666 | py | Python | flask_boilerplate/models/linkModel.py | wellls/flask_boilerplate | eb6dd62f330ccea7931f147d64bf6b5909a7536c | [
"MIT"
] | null | null | null | flask_boilerplate/models/linkModel.py | wellls/flask_boilerplate | eb6dd62f330ccea7931f147d64bf6b5909a7536c | [
"MIT"
] | null | null | null | flask_boilerplate/models/linkModel.py | wellls/flask_boilerplate | eb6dd62f330ccea7931f147d64bf6b5909a7536c | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
# __author__ = 'Wells Jia'
# Link Model
from flask_boilerplate.extensions import db
# 表前缀
prefix = 'flask_boilerplate'
class Link(db.Model):
__tablename__ = '%s_link' % prefix
id = db.Column(db.Integer, primary_key=True)
sitename = db.Column(db.VARCHAR(30), nullable=False, defaul... | 30.272727 | 72 | 0.665165 | 89 | 666 | 4.797753 | 0.516854 | 0.112412 | 0.140515 | 0.119438 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016187 | 0.165165 | 666 | 22 | 73 | 30.272727 | 0.751799 | 0.09009 | 0 | 0 | 0 | 0 | 0.059801 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0.083333 | 0.916667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
688e88ac8c73a95be0f9f5b41bf4a6686361f1cc | 558 | py | Python | pyllusion/image/__init__.py | RealityBending/Pyllusion | daca536b439fa39348ed9822e5db3b24ec0bbd23 | [
"MIT"
] | 17 | 2020-09-30T07:00:57.000Z | 2022-03-01T19:01:27.000Z | pyllusion/image/__init__.py | RealityBending/Pyllusion | daca536b439fa39348ed9822e5db3b24ec0bbd23 | [
"MIT"
] | 11 | 2020-10-05T09:43:26.000Z | 2022-03-16T07:08:04.000Z | pyllusion/image/__init__.py | RealityBending/Pyllusion | daca536b439fa39348ed9822e5db3b24ec0bbd23 | [
"MIT"
] | 3 | 2021-01-15T07:31:09.000Z | 2022-02-11T06:46:23.000Z | """
Pyllusion submodule.
"""
from .image_blob import image_blob, image_blobs
from .image_circle import image_circle, image_circles
from .image_line import image_line
from .image_mosaic import image_mosaic
from .image_noise import image_noise
from .image_rectangle import image_rectangle
from .image_text import image_te... | 21.461538 | 53 | 0.741935 | 72 | 558 | 5.347222 | 0.222222 | 0.163636 | 0.072727 | 0.119481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168459 | 558 | 25 | 54 | 22.32 | 0.829741 | 0.035842 | 0 | 0 | 0 | 0 | 0.209434 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 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 |
6893255b84fb832056a9719346d50581759b4a63 | 500 | py | Python | source/pkgsrc/devel/py-rlp/patches/patch-setup.py | Scottx86-64/dotfiles-1 | 51004b1e2b032664cce6b553d2052757c286087d | [
"Unlicense"
] | 1 | 2021-11-20T22:46:39.000Z | 2021-11-20T22:46:39.000Z | source/pkgsrc/devel/py-rlp/patches/patch-setup.py | Scottx86-64/dotfiles-1 | 51004b1e2b032664cce6b553d2052757c286087d | [
"Unlicense"
] | null | null | null | source/pkgsrc/devel/py-rlp/patches/patch-setup.py | Scottx86-64/dotfiles-1 | 51004b1e2b032664cce6b553d2052757c286087d | [
"Unlicense"
] | null | null | null | $NetBSD: patch-setup.py,v 1.1 2021/04/11 16:59:36 wiz Exp $
setuptools-markdown is deprecated for functionality included in setuptools.
--- setup.py.orig 2020-11-23 15:09:47.000000000 +0000
+++ setup.py
@@ -52,7 +52,7 @@ setup(
url='https://github.com/ethereum/pyrlp',
packages=find_packages(exclude=["tests"... | 31.25 | 75 | 0.658 | 72 | 500 | 4.486111 | 0.722222 | 0.065015 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126492 | 0.162 | 500 | 15 | 76 | 33.333333 | 0.644391 | 0 | 0 | 0 | 0 | 0 | 0.166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6895aec3f82ab30eb6bfd55267d996be4707d9b0 | 29,533 | py | Python | psx/_dump_/6/_dump_ida_/overlay_c/set_funcs.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 15 | 2018-06-28T01:11:25.000Z | 2021-09-27T15:57:18.000Z | psx/_dump_/6/_dump_ida_/overlay_c/set_funcs.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-29T04:08:23.000Z | 2019-10-17T13:57:22.000Z | psx/_dump_/6/_dump_ida_/overlay_c/set_funcs.py | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-28T01:11:34.000Z | 2020-05-23T09:21:48.000Z | del_items(0x801234F4)
SetType(0x801234F4, "void GameOnlyTestRoutine__Fv()")
del_items(0x801234FC)
SetType(0x801234FC, "int vecleny__Fii(int a, int b)")
del_items(0x80123520)
SetType(0x80123520, "int veclenx__Fii(int a, int b)")
del_items(0x8012354C)
SetType(0x8012354C, "void GetDamageAmt__FiPiT1(int i, int *mind, int *... | 48.021138 | 195 | 0.790099 | 4,411 | 29,533 | 5.050555 | 0.178644 | 0.110243 | 0.028279 | 0.056019 | 0.31457 | 0.234806 | 0.220891 | 0.197639 | 0.194138 | 0.180268 | 0 | 0.1783 | 0.094335 | 29,533 | 614 | 196 | 48.099349 | 0.654615 | 0 | 0 | 0 | 0 | 0.09772 | 0.521823 | 0.137846 | 0 | 0 | 0.207903 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
68986e7c538f1c831be65233db20389cc1da4331 | 2,553 | py | Python | lm_eval/tasks/logiqa.py | techthiyanes/lm-evaluation-harness | 6caa0afd96a7a7efb2ec4c1f24ad1756e48f3aa7 | [
"MIT"
] | null | null | null | lm_eval/tasks/logiqa.py | techthiyanes/lm-evaluation-harness | 6caa0afd96a7a7efb2ec4c1f24ad1756e48f3aa7 | [
"MIT"
] | null | null | null | lm_eval/tasks/logiqa.py | techthiyanes/lm-evaluation-harness | 6caa0afd96a7a7efb2ec4c1f24ad1756e48f3aa7 | [
"MIT"
] | null | null | null | """
LogiQA: A Challenge Dataset for Machine Reading Comprehension with Logical Reasoning
https://arxiv.org/pdf/2007.08124.pdf
LogiQA is a dataset for testing human logical reasoning. It consists of 8,678 QA
instances, covering multiple types of deductive reasoning. Results show that state-
of-the-art neural models per... | 31.134146 | 98 | 0.622013 | 306 | 2,553 | 5.081699 | 0.473856 | 0.030868 | 0.045016 | 0.034727 | 0.24373 | 0.196785 | 0.14791 | 0.14791 | 0.14791 | 0.093891 | 0 | 0.020386 | 0.269879 | 2,553 | 81 | 99 | 31.518519 | 0.813841 | 0.244418 | 0 | 0.06383 | 0 | 0 | 0.260428 | 0.012401 | 0 | 0 | 0 | 0 | 0 | 1 | 0.191489 | false | 0.021277 | 0.06383 | 0.12766 | 0.531915 | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
689f6d45dd030339b7b0883971079876b09c5234 | 1,884 | py | Python | repo/script.module.liveresolver/lib/js2py/pyjs.py | Hades01/Addons | 710da97ac850197498a3cd64be1811c593610add | [
"Apache-2.0"
] | 3 | 2020-03-03T13:21:44.000Z | 2021-07-21T09:53:31.000Z | repo/script.module.liveresolver/lib/js2py/pyjs.py | Hades01/Addons | 710da97ac850197498a3cd64be1811c593610add | [
"Apache-2.0"
] | null | null | null | repo/script.module.liveresolver/lib/js2py/pyjs.py | Hades01/Addons | 710da97ac850197498a3cd64be1811c593610add | [
"Apache-2.0"
] | 2 | 2020-04-01T22:11:12.000Z | 2020-05-07T23:54:52.000Z | from base import *
from constructors.jsmath import Math
from constructors.jsdate import Date
from constructors.jsobject import Object
from constructors.jsfunction import Function
from constructors.jsstring import String
from constructors.jsnumber import Number
from constructors.jsboolean import Boolean
from constructor... | 34.888889 | 100 | 0.699575 | 229 | 1,884 | 5.69869 | 0.445415 | 0.110345 | 0.039847 | 0.04751 | 0.032184 | 0.032184 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180998 | 1,884 | 53 | 101 | 35.54717 | 0.845755 | 0.143312 | 0 | 0 | 0 | 0 | 0.211838 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.368421 | 0 | 0.394737 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
68a12046077895fad4cd7ac92dacf9d305cd52e7 | 1,577 | py | Python | boto3_exceptions/elb.py | siteshen/boto3_exceptions | d6174c2577c9d4b17a09a89cd0e4bd1fe555b26b | [
"MIT"
] | 2 | 2021-06-22T00:00:35.000Z | 2021-07-15T03:25:52.000Z | boto3_exceptions/elb.py | siteshen/boto3_exceptions | d6174c2577c9d4b17a09a89cd0e4bd1fe555b26b | [
"MIT"
] | null | null | null | boto3_exceptions/elb.py | siteshen/boto3_exceptions | d6174c2577c9d4b17a09a89cd0e4bd1fe555b26b | [
"MIT"
] | null | null | null | import boto3
exceptions = boto3.client('elb').exceptions
AccessPointNotFoundException = exceptions.AccessPointNotFoundException
CertificateNotFoundException = exceptions.CertificateNotFoundException
DependencyThrottleException = exceptions.DependencyThrottleException
DuplicateAccessPointNameException = exceptions.Dup... | 58.407407 | 90 | 0.92137 | 73 | 1,577 | 19.90411 | 0.369863 | 0.052306 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00133 | 0.04629 | 1,577 | 26 | 91 | 60.653846 | 0.964761 | 0 | 0 | 0 | 0 | 0 | 0.001902 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.041667 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
68a47f9dde784897351e04f7fc15a1323a9c3df1 | 2,380 | py | Python | sockets/MiServidorCreado.py | Invarato/Jarroba | 161d4cf2793586ae52031512bb64fd9b5db2021d | [
"Apache-2.0"
] | 2 | 2020-04-13T10:51:49.000Z | 2020-05-27T03:57:05.000Z | sockets/MiServidorCreado.py | Invarato/Jarroba | 161d4cf2793586ae52031512bb64fd9b5db2021d | [
"Apache-2.0"
] | null | null | null | sockets/MiServidorCreado.py | Invarato/Jarroba | 161d4cf2793586ae52031512bb64fd9b5db2021d | [
"Apache-2.0"
] | 1 | 2021-08-05T04:32:58.000Z | 2021-08-05T04:32:58.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Nuestro Servidor Software sobre el Servidor Físico
import socketserver
# Dirección IP
HOST = "85.208.20.119"
# El puerto privado que queramos escuchar, uno de los comprendidos entre 49152 y 65535 1-65535
PORT = 50000
class MiControladorTCP(socketserver.BaseRequestHa... | 39.016393 | 121 | 0.657143 | 288 | 2,380 | 5.270833 | 0.534722 | 0.077075 | 0.055336 | 0.037549 | 0.030303 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027012 | 0.253361 | 2,380 | 60 | 122 | 39.666667 | 0.827237 | 0.226891 | 0 | 0 | 0 | 0.03125 | 0.308948 | 0 | 0 | 0 | 0 | 0.016667 | 0 | 1 | 0.03125 | false | 0 | 0.03125 | 0 | 0.09375 | 0.28125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
68b21acd6bf52612b7e8b9712a00d2547f6dab53 | 917 | py | Python | util/config/validators/test/test_validate_database.py | anwarchk/quay | 23c5120790c619174e7d36784ca5aab7f4eece5c | [
"Apache-2.0"
] | 1 | 2021-05-30T01:54:21.000Z | 2021-05-30T01:54:21.000Z | util/config/validators/test/test_validate_database.py | anwarchk/quay | 23c5120790c619174e7d36784ca5aab7f4eece5c | [
"Apache-2.0"
] | 20 | 2019-12-26T17:32:34.000Z | 2022-03-21T22:18:06.000Z | util/config/validators/test/test_validate_database.py | anwarchk/quay | 23c5120790c619174e7d36784ca5aab7f4eece5c | [
"Apache-2.0"
] | 1 | 2020-05-31T16:28:40.000Z | 2020-05-31T16:28:40.000Z | import pytest
from util.config.validator import ValidatorContext
from util.config.validators import ConfigValidationException
from util.config.validators.validate_database import DatabaseValidator
from test.fixtures import *
@pytest.mark.parametrize('unvalidated_config,user,user_password,expected', [
(ValidatorCon... | 38.208333 | 83 | 0.757906 | 99 | 917 | 6.89899 | 0.373737 | 0.081991 | 0.061493 | 0.070278 | 0.219619 | 0.120059 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10578 | 917 | 23 | 84 | 39.869565 | 0.832927 | 0 | 0 | 0.105263 | 0 | 0 | 0.133043 | 0.050164 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.105263 | 0.263158 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d7ba34f418556261081804825b2c6515658db83e | 394 | py | Python | stream/migrations/0003_auto_20201025_1206.py | WarwickAnimeSoc/aniMango | f927c2bc6eb484561ab38172ebebee6f03c8b13b | [
"MIT"
] | null | null | null | stream/migrations/0003_auto_20201025_1206.py | WarwickAnimeSoc/aniMango | f927c2bc6eb484561ab38172ebebee6f03c8b13b | [
"MIT"
] | 6 | 2016-10-18T14:52:05.000Z | 2020-06-18T15:14:41.000Z | stream/migrations/0003_auto_20201025_1206.py | WarwickAnimeSoc/aniMango | f927c2bc6eb484561ab38172ebebee6f03c8b13b | [
"MIT"
] | 6 | 2020-02-07T17:37:37.000Z | 2021-01-15T00:01:43.000Z | # Generated by Django 2.2.13 on 2020-10-25 12:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('stream', '0002_viewcounter_name'),
]
operations = [
migrations.AlterField(
model_name='view',
name='token',
... | 20.736842 | 63 | 0.598985 | 43 | 394 | 5.395349 | 0.813953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078014 | 0.284264 | 394 | 18 | 64 | 21.888889 | 0.744681 | 0.116751 | 0 | 0 | 1 | 0 | 0.104046 | 0.060694 | 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 |
d7be10a73ca0a850856f776682503a79d10eda9b | 10,338 | py | Python | tests/base/test_transformsNd.py | mfkenson/spatialmath-python | 525e47b253e3c1a47f8f3a6cb62ba89053c02c91 | [
"MIT"
] | 1 | 2021-07-16T10:48:22.000Z | 2021-07-16T10:48:22.000Z | tests/base/test_transformsNd.py | Zebiao1998/spatialmath-python | bc6dcb39e35d290017a50ab64516f3474d2fa99c | [
"MIT"
] | null | null | null | tests/base/test_transformsNd.py | Zebiao1998/spatialmath-python | bc6dcb39e35d290017a50ab64516f3474d2fa99c | [
"MIT"
] | 2 | 2021-03-06T18:50:14.000Z | 2021-03-06T18:50:26.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Apr 10 14:19:04 2020
@author: corkep
"""
import numpy as np
import numpy.testing as nt
import unittest
from math import pi
import math
from scipy.linalg import logm, expm
from spatialmath.base.transformsNd import *
from spatialmath.base.transforms3d ... | 28.558011 | 90 | 0.520217 | 1,541 | 10,338 | 3.393251 | 0.08501 | 0.070377 | 0.058902 | 0.079939 | 0.779308 | 0.699751 | 0.663798 | 0.602027 | 0.583668 | 0.553261 | 0 | 0.069735 | 0.302283 | 10,338 | 361 | 91 | 28.637119 | 0.655206 | 0.044109 | 0 | 0.568702 | 0 | 0 | 0.003556 | 0 | 0 | 0 | 0 | 0 | 0.51145 | 1 | 0.057252 | false | 0 | 0.041985 | 0 | 0.103053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d7c1355046eec706a6544b0de79e24d584a1d406 | 8,545 | py | Python | pysar/_remove_surface.py | insarwxw/PySAR | 62126641ec38adad900863d8bc69beaba56e3598 | [
"MIT"
] | 6 | 2017-10-13T14:27:07.000Z | 2022-03-28T07:59:15.000Z | pysar/_remove_surface.py | insarwxw/PySAR | 62126641ec38adad900863d8bc69beaba56e3598 | [
"MIT"
] | null | null | null | pysar/_remove_surface.py | insarwxw/PySAR | 62126641ec38adad900863d8bc69beaba56e3598 | [
"MIT"
] | 2 | 2020-02-09T08:27:50.000Z | 2021-05-09T23:15:22.000Z | #! /usr/bin/env python2
############################################################
# Program is part of PySAR v1.0 #
# Copyright(c) 2013, Heresh Fattahi #
# Author: Heresh Fattahi #
####################################################... | 37.977778 | 104 | 0.548976 | 1,143 | 8,545 | 3.992126 | 0.173228 | 0.050844 | 0.036818 | 0.027613 | 0.479071 | 0.41201 | 0.369055 | 0.344291 | 0.322156 | 0.292352 | 0 | 0.036979 | 0.246811 | 8,545 | 224 | 105 | 38.147321 | 0.672001 | 0.064716 | 0 | 0.340278 | 0 | 0 | 0.076418 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006944 | 0.048611 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d7c49ec0b3d42657f05e7e5be6550e5c4eddd5ae | 2,190 | py | Python | 01_comment_print_variables.py | rriquelme/python_3_tutorial | 8392d1996cfcca02da1a5975a59652e687b15b21 | [
"MIT"
] | null | null | null | 01_comment_print_variables.py | rriquelme/python_3_tutorial | 8392d1996cfcca02da1a5975a59652e687b15b21 | [
"MIT"
] | null | null | null | 01_comment_print_variables.py | rriquelme/python_3_tutorial | 8392d1996cfcca02da1a5975a59652e687b15b21 | [
"MIT"
] | null | null | null | # Section 1: Comments and Print
# A single line comment in python is indicated by a # at the beginning
''' This
is
a
multiline
comment '''
# A print function prints the code to the console, useful to learn and to debug
print('This is a print') # a comment can also be added after a funcion declaration or variable dec... | 43.8 | 110 | 0.694977 | 426 | 2,190 | 3.537559 | 0.309859 | 0.023889 | 0.023225 | 0.019907 | 0.079628 | 0.079628 | 0.057067 | 0.057067 | 0.057067 | 0.057067 | 0 | 0.029977 | 0.192694 | 2,190 | 49 | 111 | 44.693878 | 0.822398 | 0.637443 | 0 | 0.058824 | 0 | 0 | 0.308511 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.794118 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d7c7d84442be7a1422c320abe451bca8f8411750 | 453 | py | Python | interp/helpers.py | SvenPVoigt/data-science-demos | 250bbf56dd9db2270e1136f54b879b1dbef95a96 | [
"MIT"
] | null | null | null | interp/helpers.py | SvenPVoigt/data-science-demos | 250bbf56dd9db2270e1136f54b879b1dbef95a96 | [
"MIT"
] | null | null | null | interp/helpers.py | SvenPVoigt/data-science-demos | 250bbf56dd9db2270e1136f54b879b1dbef95a96 | [
"MIT"
] | 1 | 2021-11-05T18:21:00.000Z | 2021-11-05T18:21:00.000Z | import h5py
import numpy as np
def load_data(fname):
# load in an hdf5 file and return the X and y values
data_file = h5py.File(fname)
# load in X and y training data, fully into memory
X = data_file['X'][:].reshape(-1, 1) # each row is a data point
y = data_file['y'][:]
return X, y
def eval... | 28.3125 | 67 | 0.649007 | 82 | 453 | 3.47561 | 0.52439 | 0.084211 | 0.077193 | 0.070175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01462 | 0.245033 | 453 | 16 | 68 | 28.3125 | 0.818713 | 0.373068 | 0 | 0 | 0 | 0 | 0.007168 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d7ccbc136091e0b9c672cfd0358e2f5dafc4109e | 7,788 | py | Python | libcity/data/dataset/cstn_dataset.py | moghadas76/test_bigcity | 607b9602c5b1113b23e1830455e174b0901d7558 | [
"Apache-2.0"
] | 221 | 2021-09-06T03:33:31.000Z | 2022-03-28T05:36:49.000Z | libcity/data/dataset/cstn_dataset.py | moghadas76/test_bigcity | 607b9602c5b1113b23e1830455e174b0901d7558 | [
"Apache-2.0"
] | 43 | 2021-09-19T16:12:28.000Z | 2022-03-31T16:29:03.000Z | libcity/data/dataset/cstn_dataset.py | moghadas76/test_bigcity | 607b9602c5b1113b23e1830455e174b0901d7558 | [
"Apache-2.0"
] | 64 | 2021-09-06T07:56:10.000Z | 2022-03-25T08:48:35.000Z | import os
import numpy as np
from libcity.data.dataset import TrafficStateGridOdDataset
from libcity.data.utils import generate_dataloader
from libcity.utils import ensure_dir
class CSTNDataset(TrafficStateGridOdDataset):
def __init__(self, config):
super().__init__(config)
self.feature_name = ... | 45.811765 | 125 | 0.605675 | 1,126 | 7,788 | 3.838366 | 0.12611 | 0.04373 | 0.057149 | 0.030541 | 0.445858 | 0.368579 | 0.320685 | 0.226053 | 0.226053 | 0.200602 | 0 | 0.001716 | 0.251541 | 7,788 | 169 | 126 | 46.08284 | 0.73975 | 0.085388 | 0 | 0.112069 | 1 | 0 | 0.052217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.043103 | 0 | 0.181034 | 0 | 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 |
d7d10b3e7b5d5de2bc916d21ae47844560daae78 | 1,567 | py | Python | tests/test_main.py | greggles/cutadapt | fb3e8f0828c2cb92bfaea69d91ffb539ab24cdd0 | [
"MIT"
] | 375 | 2015-01-16T14:04:50.000Z | 2022-03-16T02:19:43.000Z | tests/test_main.py | greggles/cutadapt | fb3e8f0828c2cb92bfaea69d91ffb539ab24cdd0 | [
"MIT"
] | 589 | 2015-03-05T20:06:03.000Z | 2022-03-29T22:49:56.000Z | tests/test_main.py | greggles/cutadapt | fb3e8f0828c2cb92bfaea69d91ffb539ab24cdd0 | [
"MIT"
] | 150 | 2015-02-10T12:19:40.000Z | 2022-03-25T05:06:50.000Z | import pytest
from cutadapt.__main__ import main, parse_cutoffs, parse_lengths, CommandLineError, setup_logging
def test_help():
with pytest.raises(SystemExit) as e:
main(["--help"])
assert e.value.args[0] == 0
def test_parse_cutoffs():
assert parse_cutoffs("5") == (0, 5)
assert parse_cutof... | 31.34 | 97 | 0.680281 | 200 | 1,567 | 5.105 | 0.23 | 0.129285 | 0.156709 | 0.282076 | 0.582762 | 0.539667 | 0.496572 | 0.254652 | 0.176298 | 0.176298 | 0 | 0.031323 | 0.185067 | 1,567 | 49 | 98 | 31.979592 | 0.768207 | 0 | 0 | 0.275 | 0 | 0 | 0.037652 | 0 | 0 | 0 | 0 | 0 | 0.175 | 1 | 0.1 | false | 0 | 0.075 | 0 | 0.175 | 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 |
d7d49bf6f875d9be56e9b480f430dcc1f3440273 | 2,308 | py | Python | quasitools/commands/cmd_aacoverage.py | hivdb/quasitools | c242bf2842475285ba1f2cfbbcbb279cb0420938 | [
"Apache-2.0"
] | null | null | null | quasitools/commands/cmd_aacoverage.py | hivdb/quasitools | c242bf2842475285ba1f2cfbbcbb279cb0420938 | [
"Apache-2.0"
] | null | null | null | quasitools/commands/cmd_aacoverage.py | hivdb/quasitools | c242bf2842475285ba1f2cfbbcbb279cb0420938 | [
"Apache-2.0"
] | 1 | 2019-06-14T12:25:22.000Z | 2019-06-14T12:25:22.000Z | """
Copyright Government of Canada 2017
Written by: Cole Peters, National Microbiology Laboratory,
Public Health Agency of Canada
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this work except in compliance with the License. You may obtain a copy of the
License at:
http:... | 36.634921 | 79 | 0.734835 | 326 | 2,308 | 5.052147 | 0.429448 | 0.03643 | 0.038251 | 0.038251 | 0.193078 | 0.12629 | 0.12629 | 0.12629 | 0.12629 | 0.12629 | 0 | 0.004757 | 0.180243 | 2,308 | 62 | 80 | 37.225806 | 0.865751 | 0.346187 | 0 | 0.09375 | 0 | 0 | 0.068091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0.0625 | 0.1875 | 0 | 0.21875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d7d670ca4ff83754d37a80230f238293a2eb6e35 | 5,082 | py | Python | src/plugins/dc/NMDC Parser/main.py | nsk89/nodeforge | 51e798092cfaf52112cfdc96af359633741da799 | [
"BSD-3-Clause"
] | null | null | null | src/plugins/dc/NMDC Parser/main.py | nsk89/nodeforge | 51e798092cfaf52112cfdc96af359633741da799 | [
"BSD-3-Clause"
] | 1 | 2018-10-21T05:30:32.000Z | 2018-10-31T05:53:18.000Z | src/plugins/dc/NMDC Parser/main.py | nsk89/nodeforge | 51e798092cfaf52112cfdc96af359633741da799 | [
"BSD-3-Clause"
] | 2 | 2018-10-31T05:56:34.000Z | 2018-10-31T05:57:36.000Z | from nodeforge.PluginUtils import *
from twisted.internet.task import LoopingCall
password = 'mypassword'
tag = "http://code.google.com/p/nodeforge/<++ V:0.707,M:A,H:1/0/0,S:4>$ $0.005 $No Email$0$"
class Main(Plugin):
priority = Priority.parser
def onConnect(self):
# keepalive mes... | 29.375723 | 98 | 0.463203 | 566 | 5,082 | 4.141343 | 0.376325 | 0.03413 | 0.015358 | 0.021758 | 0.051621 | 0.037969 | 0.028157 | 0.028157 | 0 | 0 | 0 | 0.025778 | 0.412239 | 5,082 | 173 | 99 | 29.375723 | 0.758955 | 0.038371 | 0 | 0.076087 | 0 | 0.01087 | 0.085653 | 0.006692 | 0 | 0 | 0 | 0.00578 | 0 | 0 | null | null | 0.043478 | 0.032609 | null | null | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d7d74b123257a186f1aace24a31a55d1a9369a66 | 26,076 | py | Python | lib/googlecloudsdk/third_party/apis/firestore/v1beta1/firestore_v1beta1_client.py | kustodian/google-cloud-sdk | b6bae4137d4b58030adb3dcb1271216dfb19f96d | [
"Apache-2.0"
] | null | null | null | lib/googlecloudsdk/third_party/apis/firestore/v1beta1/firestore_v1beta1_client.py | kustodian/google-cloud-sdk | b6bae4137d4b58030adb3dcb1271216dfb19f96d | [
"Apache-2.0"
] | 11 | 2020-02-29T02:51:12.000Z | 2022-03-30T23:20:08.000Z | lib/googlecloudsdk/third_party/apis/firestore/v1beta1/firestore_v1beta1_client.py | kustodian/google-cloud-sdk | b6bae4137d4b58030adb3dcb1271216dfb19f96d | [
"Apache-2.0"
] | 1 | 2020-07-25T18:17:57.000Z | 2020-07-25T18:17:57.000Z | """Generated client library for firestore version v1beta1."""
# NOTE: This file is autogenerated and should not be edited by hand.
from apitools.base.py import base_api
from googlecloudsdk.third_party.apis.firestore.v1beta1 import firestore_v1beta1_messages as messages
class FirestoreV1beta1(base_api.BaseApiClient):
... | 41.990338 | 132 | 0.71142 | 2,621 | 26,076 | 6.881725 | 0.119802 | 0.052559 | 0.040029 | 0.024228 | 0.591617 | 0.58502 | 0.536564 | 0.518379 | 0.499695 | 0.435882 | 0 | 0.006792 | 0.192553 | 26,076 | 620 | 133 | 42.058065 | 0.849869 | 0.254985 | 0 | 0.464824 | 1 | 0 | 0.299184 | 0.239955 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060302 | false | 0 | 0.025126 | 0 | 0.173367 | 0 | 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 |
d7db353bc0ea9cb57b6a8a3ed1bb6ca78d82fab0 | 3,695 | py | Python | SerialFace/Face.py | KenleyArai/SerialFace | 6d87ad54685b9b9e4e38c00e7f289bbbbfac9033 | [
"MIT"
] | null | null | null | SerialFace/Face.py | KenleyArai/SerialFace | 6d87ad54685b9b9e4e38c00e7f289bbbbfac9033 | [
"MIT"
] | null | null | null | SerialFace/Face.py | KenleyArai/SerialFace | 6d87ad54685b9b9e4e38c00e7f289bbbbfac9033 | [
"MIT"
] | null | null | null | import cv2
import os
import numpy as np
from PIL import Image
import picamera.array
from picamera import PiCamera
class Face(object):
training_count = 5
threshold = 30
def __init__(self, casc_path, path="./passwords", camera_port=0):
self.path = path
self._cascade = cv2.CascadeClassifi... | 27.781955 | 101 | 0.563194 | 455 | 3,695 | 4.443956 | 0.345055 | 0.019782 | 0.01632 | 0.025223 | 0.0455 | 0.0455 | 0.01088 | 0 | 0 | 0 | 0 | 0.019191 | 0.351286 | 3,695 | 133 | 102 | 27.781955 | 0.824364 | 0.204601 | 0 | 0.141026 | 0 | 0 | 0.012862 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102564 | false | 0.064103 | 0.076923 | 0 | 0.294872 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d7dbd9d4a4b90da2feaca94cd1caf8bce63e87e6 | 6,344 | py | Python | plugin.video.mrknowtv/resources/lib/sources/pierwsza.py | mrknow/filmkodi | 0162cde9ae25ddbf4a69330948714833ff2f78c9 | [
"Apache-2.0"
] | 105 | 2015-11-28T00:03:11.000Z | 2021-05-05T20:47:42.000Z | plugin.video.mrknowtv/resources/lib/sources/pierwsza.py | rrosajp/filmkodi | 0162cde9ae25ddbf4a69330948714833ff2f78c9 | [
"Apache-2.0"
] | 918 | 2015-11-28T14:12:40.000Z | 2022-03-23T20:24:49.000Z | plugin.video.mrknowtv/resources/lib/sources/pierwsza.py | rrosajp/filmkodi | 0162cde9ae25ddbf4a69330948714833ff2f78c9 | [
"Apache-2.0"
] | 111 | 2015-12-01T14:06:10.000Z | 2020-08-01T10:44:39.000Z | # -*- coding: utf-8 -*-
'''
Mrknow TV Add-on
Copyright (C) 2016 mrknow
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) an... | 38.216867 | 196 | 0.57913 | 695 | 6,344 | 5.258993 | 0.290647 | 0.088372 | 0.051163 | 0.081259 | 0.342544 | 0.256635 | 0.142271 | 0.142271 | 0.119836 | 0.094118 | 0 | 0.018934 | 0.284048 | 6,344 | 165 | 197 | 38.448485 | 0.785777 | 0.143758 | 0 | 0.306306 | 0 | 0 | 0.170795 | 0.01788 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045045 | false | 0.081081 | 0.054054 | 0 | 0.144144 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d7df98324b1e4a785a56e871278620de0d9ab9da | 791 | py | Python | houm/properties/migrations/0001_initial.py | marcelodavid/houm | ea07280a7c81d349117444b50385bfbc7520f5ef | [
"MIT"
] | null | null | null | houm/properties/migrations/0001_initial.py | marcelodavid/houm | ea07280a7c81d349117444b50385bfbc7520f5ef | [
"MIT"
] | 8 | 2022-02-07T06:29:24.000Z | 2022-03-31T06:30:25.000Z | houm/properties/migrations/0001_initial.py | marcelodavid/houm | ea07280a7c81d349117444b50385bfbc7520f5ef | [
"MIT"
] | null | null | null | # Generated by Django 3.2.11 on 2022-02-02 01:04
import django.contrib.gis.db.models.fields
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Property',
fiel... | 30.423077 | 117 | 0.605563 | 85 | 791 | 5.576471 | 0.6 | 0.054852 | 0.067511 | 0.075949 | 0.126582 | 0.126582 | 0 | 0 | 0 | 0 | 0 | 0.042808 | 0.261694 | 791 | 25 | 118 | 31.64 | 0.768836 | 0.058154 | 0 | 0 | 1 | 0 | 0.05249 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 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 |
d7e072e9047e7b4af83819fbad84d61cd15fc6e5 | 15,512 | py | Python | WiretapView.py | CBSDigital/Hiero-Wiretap | c1326382b3c8b111ad682ccaec22990b409aff08 | [
"BSD-3-Clause"
] | 5 | 2016-11-02T16:27:38.000Z | 2018-05-08T06:27:29.000Z | WiretapView.py | CBSDigital/Hiero-Wiretap | c1326382b3c8b111ad682ccaec22990b409aff08 | [
"BSD-3-Clause"
] | null | null | null | WiretapView.py | CBSDigital/Hiero-Wiretap | c1326382b3c8b111ad682ccaec22990b409aff08 | [
"BSD-3-Clause"
] | null | null | null | """Extended Qt widgets and methods for displaying hierarchical Wiretap nodes.
@author Brendan Holt
@date May 2014
@defgroup modWiretapView WiretapView
@{
"""
import sys
from PySide import QtCore, QtGui
from wiretap import WireTapException
from WiretapTools import WiretapManager
class NodeTreeView(QtGui.QTreeView)... | 37.650485 | 79 | 0.574007 | 1,643 | 15,512 | 5.3944 | 0.247718 | 0.019181 | 0.007898 | 0.014216 | 0.218211 | 0.182444 | 0.158186 | 0.145775 | 0.137425 | 0.098612 | 0 | 0.003058 | 0.325425 | 15,512 | 411 | 80 | 37.742092 | 0.843941 | 0.182762 | 0 | 0.207547 | 0 | 0 | 0.020769 | 0 | 0.006289 | 0 | 0 | 0.002433 | 0 | 0 | null | null | 0 | 0.025157 | null | null | 0.006289 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d7e176c15e00557e2980772c4c53de572268f59f | 7,687 | py | Python | study/vowel_summary.py | Kshitiz-Bansal/wavetorch | 7958e512ceda7dfa8d2228d0961157dac4362b58 | [
"MIT"
] | 470 | 2019-04-30T00:49:21.000Z | 2022-03-20T08:31:59.000Z | study/vowel_summary.py | geofiber/wavetorch | 927ad02dc9db83f72b8df1d91418a6681e60fd56 | [
"MIT"
] | 8 | 2019-04-30T01:06:36.000Z | 2021-07-18T06:24:56.000Z | study/vowel_summary.py | geofiber/wavetorch | 927ad02dc9db83f72b8df1d91418a6681e60fd56 | [
"MIT"
] | 76 | 2019-04-30T09:40:39.000Z | 2022-03-08T18:38:13.000Z | """Generate a summary of a previously trained vowel recognition model.
"""
import torch
import wavetorch
import argparse
import yaml
import os
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl
try:
from helpers.plot import mpl_set_latex
mpl_set_latex()
except ImportError:
impor... | 49.593548 | 228 | 0.654612 | 1,139 | 7,687 | 4.205443 | 0.201054 | 0.050522 | 0.040919 | 0.025052 | 0.577035 | 0.533612 | 0.48643 | 0.430063 | 0.387056 | 0.336743 | 0 | 0.037189 | 0.17445 | 7,687 | 154 | 229 | 49.915584 | 0.717617 | 0.076363 | 0 | 0.112069 | 1 | 0 | 0.128227 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.008621 | 0.137931 | 0 | 0.137931 | 0.034483 | 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 |
d7ea4df202c05bc535f8406f11c630723e457522 | 1,162 | py | Python | nl2type/nl2type.py | rs-malik/nl2type | b60920514e473ffc55be665640c97fcdf6de40ec | [
"MIT"
] | 1 | 2020-02-11T23:21:59.000Z | 2020-02-11T23:21:59.000Z | nl2type/nl2type.py | rs-malik/nl2type | b60920514e473ffc55be665640c97fcdf6de40ec | [
"MIT"
] | null | null | null | nl2type/nl2type.py | rs-malik/nl2type | b60920514e473ffc55be665640c97fcdf6de40ec | [
"MIT"
] | null | null | null | import argparse
import json
from gensim.models import Word2Vec
from tensorflow_core.python.keras.models import load_model
import convert
import extract
import predict
import vectorize
from annotation import annotate
def main(input_file: str, output_file: str):
extracted_jsdoc = extract.extract_from_file(input_f... | 35.212121 | 85 | 0.76506 | 166 | 1,162 | 5.066265 | 0.361446 | 0.064209 | 0.03805 | 0.047562 | 0.154578 | 0.154578 | 0.154578 | 0.066587 | 0 | 0 | 0 | 0.00999 | 0.138554 | 1,162 | 32 | 86 | 36.3125 | 0.83017 | 0 | 0 | 0 | 0 | 0 | 0.165232 | 0.068847 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.346154 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d7f4ae291aea551ffe05645b54d14ef0a01b173d | 1,057 | py | Python | Python/textbook_track/chapter01/ba1n.py | ghostrider77/RosalindProblems | 4c828fef6b0a6dbe8b41705dbd6e4b2480da8d1a | [
"MIT"
] | null | null | null | Python/textbook_track/chapter01/ba1n.py | ghostrider77/RosalindProblems | 4c828fef6b0a6dbe8b41705dbd6e4b2480da8d1a | [
"MIT"
] | null | null | null | Python/textbook_track/chapter01/ba1n.py | ghostrider77/RosalindProblems | 4c828fef6b0a6dbe8b41705dbd6e4b2480da8d1a | [
"MIT"
] | null | null | null | # Generate the d-Neighborhood of a String
import sys
NUCLEOTIDES = ('A', 'C', 'G', 'T')
def calc_immediate_neighbours(pattern):
neighbours = set()
for ix, letter in enumerate(pattern):
for nucleotide in NUCLEOTIDES:
if nucleotide != letter:
pattern_list = list(pattern)
... | 26.425 | 69 | 0.648061 | 116 | 1,057 | 5.681034 | 0.387931 | 0.115326 | 0.100152 | 0.091047 | 0.121396 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002548 | 0.257332 | 1,057 | 39 | 70 | 27.102564 | 0.836943 | 0.036897 | 0 | 0 | 1 | 0 | 0.011811 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.034483 | 0 | 0.206897 | 0.034483 | 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 |
d7f585c165fd61bd8441caa1d6d734cf78a7efb2 | 1,900 | py | Python | gimp_be/image/save.py | J216/gimp_be | 02cc0e9627bee491cf1e6d5102ce0a3f07f1043e | [
"MIT"
] | 3 | 2017-02-05T08:12:19.000Z | 2019-08-02T14:31:56.000Z | gimp_be/image/save.py | J216/gimp_be | 02cc0e9627bee491cf1e6d5102ce0a3f07f1043e | [
"MIT"
] | 1 | 2017-01-11T05:54:51.000Z | 2019-01-08T03:48:57.000Z | gimp_be/image/save.py | J216/gimp_be | 02cc0e9627bee491cf1e6d5102ce0a3f07f1043e | [
"MIT"
] | null | null | null | from string import letters
from gimpfu import pdb, CLIP_TO_IMAGE, gimp
import datetime
import re
import os
import random
def saveJPG(fn, comment=""):
time_stamp = datetime.datetime.now()
image = gimp.image_list()[0]
new_image = pdb.gimp_image_duplicate(image)
layer = pdb.gimp_image_merge_visible_layer... | 30.645161 | 89 | 0.653158 | 275 | 1,900 | 4.309091 | 0.283636 | 0.098734 | 0.091139 | 0.060759 | 0.457384 | 0.41097 | 0.406751 | 0.406751 | 0.295359 | 0.295359 | 0 | 0.025119 | 0.224737 | 1,900 | 61 | 90 | 31.147541 | 0.779362 | 0.045263 | 0 | 0.596154 | 0 | 0 | 0.050304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.115385 | null | null | 0.019231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d7f663feae8798d182b4b602378676db3eb855a7 | 1,651 | py | Python | url_shorter/models.py | narnikgamarnikus/django-url-shorter | dcea9f77af951ec3cfc41fbbc4bab951ccab7f41 | [
"MIT"
] | null | null | null | url_shorter/models.py | narnikgamarnikus/django-url-shorter | dcea9f77af951ec3cfc41fbbc4bab951ccab7f41 | [
"MIT"
] | null | null | null | url_shorter/models.py | narnikgamarnikus/django-url-shorter | dcea9f77af951ec3cfc41fbbc4bab951ccab7f41 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.db import models
from django.urls import reverse
from django.utils.translation import ugettext_lazy as _
from django.contrib.auth import get_user_model
from model_utils.models import TimeStampedModel
from annoying.fields import JSONField
from geolite2 import geolite2
from .utils ... | 25.796875 | 83 | 0.665051 | 205 | 1,651 | 5.209756 | 0.380488 | 0.037453 | 0.033708 | 0.080524 | 0.080524 | 0.043071 | 0 | 0 | 0 | 0 | 0 | 0.009419 | 0.228346 | 1,651 | 63 | 84 | 26.206349 | 0.828885 | 0.050878 | 0 | 0.052632 | 0 | 0 | 0.017578 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.026316 | 0.210526 | 0.052632 | 0.710526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d7f8d303dbb01c2d1db662b188d96064cd1af485 | 514 | py | Python | competitive_programming/programming_contests/interfatecs/1_2018/f.py | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 205 | 2018-12-01T17:49:49.000Z | 2021-12-22T07:02:27.000Z | competitive_programming/programming_contests/interfatecs/1_2018/f.py | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 2 | 2020-01-01T16:34:29.000Z | 2020-04-26T19:11:13.000Z | competitive_programming/programming_contests/interfatecs/1_2018/f.py | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 50 | 2018-11-28T20:51:36.000Z | 2021-11-29T04:08:25.000Z | codigo_set = set()
codido_set_saiu = set()
s = input()
codigos = input().split(' ')
for codigo in codigos:
codigo_set.add(codigo)
i = input()
saidas = input().split(' ')
A = 0
I = 0
R = 0
for saida in saidas:
if saida in codigo_set:
if saida in codido_set_saiu:
R += 1
else:
A += 1... | 15.117647 | 31 | 0.568093 | 85 | 514 | 3.282353 | 0.258824 | 0.16129 | 0.232975 | 0.107527 | 0.358423 | 0.358423 | 0.200717 | 0.200717 | 0.200717 | 0 | 0 | 0.019126 | 0.287938 | 514 | 33 | 32 | 15.575758 | 0.743169 | 0 | 0 | 0.333333 | 0 | 0 | 0.029106 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d7fd6e7a0e38d9985df565494f5e2b88e6385477 | 22,497 | py | Python | src/workflows/transport/common_transport.py | rjgildea/python-workflows | dc23b8a7d9b91b3b8c11f830192812149b556b44 | [
"BSD-3-Clause"
] | null | null | null | src/workflows/transport/common_transport.py | rjgildea/python-workflows | dc23b8a7d9b91b3b8c11f830192812149b556b44 | [
"BSD-3-Clause"
] | null | null | null | src/workflows/transport/common_transport.py | rjgildea/python-workflows | dc23b8a7d9b91b3b8c11f830192812149b556b44 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import annotations
import decimal
import logging
from typing import Any, Callable, Dict, Mapping, Optional, Set
import workflows
MessageCallback = Callable[[Mapping[str, Any], Any], None]
class CommonTransport:
"""A common transport class, containing e.g. the logic to manage
subscriptions a... | 47.663136 | 88 | 0.645508 | 2,480 | 22,497 | 5.747984 | 0.132661 | 0.043213 | 0.029814 | 0.041249 | 0.737425 | 0.704595 | 0.682076 | 0.650368 | 0.609751 | 0.583234 | 0 | 0.000686 | 0.287505 | 22,497 | 471 | 89 | 47.764331 | 0.888639 | 0.495088 | 0 | 0.391753 | 0 | 0 | 0.150519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.180412 | false | 0.005155 | 0.025773 | 0.010309 | 0.309278 | 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 |
cc010547ec2baead2e7b7b53c3e253cf9e410f46 | 301 | py | Python | {{cookiecutter.project_slug}}/{{cookiecutter.main_app}}/models.py | huogerac/cookiecutter-djangofloppyforms | 0a2c1d7fe506a5df13aaefde0f716373dbb8194e | [
"BSD-3-Clause"
] | 3 | 2021-03-29T19:11:30.000Z | 2021-05-08T13:18:41.000Z | {{cookiecutter.project_slug}}/{{cookiecutter.main_app}}/models.py | huogerac/cookiecutter-djangofloppyforms | 0a2c1d7fe506a5df13aaefde0f716373dbb8194e | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.project_slug}}/{{cookiecutter.main_app}}/models.py | huogerac/cookiecutter-djangofloppyforms | 0a2c1d7fe506a5df13aaefde0f716373dbb8194e | [
"BSD-3-Clause"
] | 2 | 2021-03-12T15:13:38.000Z | 2021-07-01T19:38:11.000Z | from django.db import models
class {{ cookiecutter.main_model }}(models.Model):
description = models.CharField(max_length=264)
due_to = models.DateTimeField()
done = models.BooleanField(default=False)
@property
def status(self):
return 'done' if self.done else 'pending'
| 27.363636 | 50 | 0.704319 | 37 | 301 | 5.648649 | 0.783784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012245 | 0.186047 | 301 | 10 | 51 | 30.1 | 0.840816 | 0 | 0 | 0 | 0 | 0 | 0.036545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.