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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6a2e62ffcb0fbfa800aac98a211a8341bb80ed47 | 660 | py | Python | lib/take2/lib/position.py | zacharyfrederick/deep_q_gaf | 6b712b17a6c89c1cba0d22e18fa336369c521d4e | [
"MIT"
] | null | null | null | lib/take2/lib/position.py | zacharyfrederick/deep_q_gaf | 6b712b17a6c89c1cba0d22e18fa336369c521d4e | [
"MIT"
] | null | null | null | lib/take2/lib/position.py | zacharyfrederick/deep_q_gaf | 6b712b17a6c89c1cba0d22e18fa336369c521d4e | [
"MIT"
] | null | null | null | import enum
from lib import helper
class PositionTypes(enum.Enum):
buy = 0
sell = 1
hold = 2
class Position():
def __init__(self, type_, open_date, close_date, open_price, close_price):
self.open_date = open_date
self.close_date = close_date
self.open = open_price
self.... | 25.384615 | 78 | 0.633333 | 86 | 660 | 4.639535 | 0.325581 | 0.100251 | 0.065163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006316 | 0.280303 | 660 | 25 | 79 | 26.4 | 0.833684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.095238 | 0.047619 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6a3dc5d397d2e37de160d13d0829a9b384598302 | 1,821 | py | Python | olutils/collection/lazylist.py | OctaveLauby/olutils | 9d0741fe2a3ce527be60be2bf1a6904c3340e488 | [
"Apache-2.0"
] | 1 | 2020-10-23T17:11:42.000Z | 2020-10-23T17:11:42.000Z | olutils/collection/lazylist.py | OctaveLauby/olutils | 9d0741fe2a3ce527be60be2bf1a6904c3340e488 | [
"Apache-2.0"
] | 4 | 2019-05-09T12:53:33.000Z | 2020-12-03T13:49:26.000Z | olutils/collection/lazylist.py | OctaveLauby/olutils | 9d0741fe2a3ce527be60be2bf1a6904c3340e488 | [
"Apache-2.0"
] | null | null | null | """Convenient way to build quick overview of long containers"""
from typing import Any, Iterable, List
def lazy_content(__list: List, /, nvals: int, ellipsis: Any = ...) -> List:
"""Return list at most {nvals} items from object
Extra values are replaced with mid_value
Examples:
>>> lazy_content(... | 27.590909 | 86 | 0.574959 | 211 | 1,821 | 4.744076 | 0.341232 | 0.065934 | 0.050949 | 0.037962 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008668 | 0.30313 | 1,821 | 65 | 87 | 28.015385 | 0.780142 | 0.292696 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28125 | false | 0 | 0.03125 | 0.09375 | 0.625 | 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 |
6a3fd4ce0b01bade0ee363f3cb253f2bbfba948a | 2,122 | py | Python | build_tools/run.py | hapass/defold | fd3602f27a2596a2ad62bf9a70ae9d7acda24ad8 | [
"Apache-2.0"
] | 1 | 2020-05-19T15:47:07.000Z | 2020-05-19T15:47:07.000Z | build_tools/run.py | CagdasErturk/defold | 28e5eb635042d37e17cda4d33e47fce2b569cab8 | [
"Apache-2.0"
] | null | null | null | build_tools/run.py | CagdasErturk/defold | 28e5eb635042d37e17cda4d33e47fce2b569cab8 | [
"Apache-2.0"
] | null | null | null | from log import log
import subprocess
import sys
class ExecException(Exception):
def __init__(self, retcode, output):
self.retcode = retcode
self.output = output
def _exec_command(arg_list, **kwargs):
arg_str = arg_list
if not isinstance(arg_str, basestring):
arg_str = ' '.join(arg... | 31.671642 | 117 | 0.617813 | 271 | 2,122 | 4.738007 | 0.339483 | 0.051402 | 0.05296 | 0.065421 | 0.279595 | 0.234424 | 0.224299 | 0.224299 | 0.160436 | 0.088785 | 0 | 0.001969 | 0.28181 | 2,122 | 66 | 118 | 32.151515 | 0.840551 | 0.167766 | 0 | 0.16 | 0 | 0 | 0.025014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.06 | 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 |
6a443bc7934af6f982f2a5c2fdff4c513da1de8f | 4,787 | py | Python | src/args.py | yuxiaoxin/IRNet | f68a63d8b0208475b8ddd782fc0661cc56b2a246 | [
"MIT"
] | null | null | null | src/args.py | yuxiaoxin/IRNet | f68a63d8b0208475b8ddd782fc0661cc56b2a246 | [
"MIT"
] | null | null | null | src/args.py | yuxiaoxin/IRNet | f68a63d8b0208475b8ddd782fc0661cc56b2a246 | [
"MIT"
] | null | null | null | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
# -*- coding: utf-8 -*-
"""
# @Time : 2019/5/25
# @Author : Jiaqi&Zecheng
# @File : args.py
# @Software: PyCharm
"""
import random
# argparse帮助在命令行界面运行.py文件,帮助程序获取参数,并生成报错,用户手册等信息
import argparse
import torch
import numpy a... | 53.188889 | 124 | 0.688114 | 640 | 4,787 | 4.928125 | 0.289063 | 0.116994 | 0.136969 | 0.228282 | 0.309448 | 0.227013 | 0.166138 | 0.14014 | 0.120482 | 0.120482 | 0 | 0.016072 | 0.168164 | 4,787 | 89 | 125 | 53.786517 | 0.775992 | 0.098391 | 0 | 0 | 0 | 0 | 0.324067 | 0.035163 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036364 | false | 0 | 0.072727 | 0 | 0.145455 | 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 |
6a4c28cb48479fc2117943110f90e13b18eed0d6 | 568 | py | Python | formal/r252/forms/formal/examples/smartupload.py | nakedible/vpnease-l2tp | 0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c | [
"WTFPL"
] | 5 | 2015-04-16T08:36:17.000Z | 2017-05-12T17:20:12.000Z | formal/r252/forms/formal/examples/smartupload.py | nakedible/vpnease-l2tp | 0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c | [
"WTFPL"
] | null | null | null | formal/r252/forms/formal/examples/smartupload.py | nakedible/vpnease-l2tp | 0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c | [
"WTFPL"
] | 4 | 2015-03-19T14:39:51.000Z | 2019-01-23T08:22:55.000Z | import formal
from formal.examples import main
class SmartUploadFormPage(main.FormExamplePage):
title = 'Smart File Upload'
description = 'Smart uploading of files where the file is "carried across" when the validation fails'
def form_example(self, ctx):
form = formal.Form()
form.addF... | 31.555556 | 105 | 0.683099 | 67 | 568 | 5.776119 | 0.58209 | 0.036176 | 0.056848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223592 | 568 | 17 | 106 | 33.411765 | 0.877551 | 0 | 0 | 0 | 0 | 0 | 0.200704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a4c2c38eb9577ba34d52dc0cd7f075335ba10a7 | 1,272 | py | Python | test/remoting/issue4184-no-opener/test.py | l9c/nw.js | 15b91ee786d17514504e8a66b535f784e820e65f | [
"MIT"
] | 1 | 2021-07-31T20:01:11.000Z | 2021-07-31T20:01:11.000Z | test/remoting/issue4184-no-opener/test.py | l9c/nw.js | 15b91ee786d17514504e8a66b535f784e820e65f | [
"MIT"
] | null | null | null | test/remoting/issue4184-no-opener/test.py | l9c/nw.js | 15b91ee786d17514504e8a66b535f784e820e65f | [
"MIT"
] | null | null | null | import time
import os
import subprocess
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common import utils
chrome_options = Options()
chrome_options.add_argument("nwapp=" + os.path.dirname(os.path.abspath(__file__)))
chrome_options.add_argument("mixed-cont... | 30.285714 | 152 | 0.747642 | 176 | 1,272 | 5.204545 | 0.465909 | 0.085153 | 0.055677 | 0.062227 | 0.134279 | 0.065502 | 0.065502 | 0 | 0 | 0 | 0 | 0.004413 | 0.109277 | 1,272 | 41 | 153 | 31.02439 | 0.80406 | 0.032233 | 0 | 0 | 0 | 0 | 0.105863 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0 | null | null | 0 | 0.176471 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dbe38fa0e69ae43574acd8a6ec86aa5b62cac721 | 13,581 | py | Python | plugins/modules/nsxt_policy_ip_pool.py | madhukark/ansible-for-nsxt | f75c698e24073305a968ce2f70739fee77a14bb2 | [
"BSD-2-Clause"
] | 127 | 2018-08-27T17:00:55.000Z | 2022-03-18T13:30:34.000Z | plugins/modules/nsxt_policy_ip_pool.py | madhukark/ansible-for-nsxt | f75c698e24073305a968ce2f70739fee77a14bb2 | [
"BSD-2-Clause"
] | 301 | 2018-08-24T18:54:38.000Z | 2022-03-25T13:19:23.000Z | plugins/modules/nsxt_policy_ip_pool.py | madhukark/ansible-for-nsxt | f75c698e24073305a968ce2f70739fee77a14bb2 | [
"BSD-2-Clause"
] | 137 | 2018-09-12T21:37:45.000Z | 2022-03-18T13:30:36.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2018 VMware, Inc.
# SPDX-License-Identifier: BSD-2-Clause OR GPL-3.0-only
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
# BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHA... | 35.45953 | 122 | 0.51815 | 1,372 | 13,581 | 4.940233 | 0.220117 | 0.027884 | 0.032605 | 0.032458 | 0.533491 | 0.490115 | 0.470935 | 0.441281 | 0.381971 | 0.362939 | 0 | 0.016456 | 0.422797 | 13,581 | 382 | 123 | 35.552356 | 0.848195 | 0.066858 | 0 | 0.569322 | 0 | 0 | 0.635027 | 0.019521 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038348 | false | 0 | 0.020649 | 0.020649 | 0.097345 | 0.00295 | 0 | 0 | 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 |
dbe41ebe05e2bfa3c5ac2a5766a7505eabe0b4eb | 7,887 | py | Python | mrq/DbInspect/_mongo.py | bpmbank/mrq | 12b0be3795164732da94d12240d9ed74f8b33601 | [
"MIT"
] | null | null | null | mrq/DbInspect/_mongo.py | bpmbank/mrq | 12b0be3795164732da94d12240d9ed74f8b33601 | [
"MIT"
] | null | null | null | mrq/DbInspect/_mongo.py | bpmbank/mrq | 12b0be3795164732da94d12240d9ed74f8b33601 | [
"MIT"
] | null | null | null | import pymongo, re
from mrq.DbInspect._utils import *
from bson.code import Code as BsonCode
import json
import collections
import traceback
import StringIO
import pandas as pd
import numpy
class MongoDb(db_comm):
def __init__(self, dbsets):
try:
self._client = pymongo.MongoClient(dbsets['... | 34.89823 | 106 | 0.495499 | 922 | 7,887 | 4.05423 | 0.196312 | 0.027822 | 0.021402 | 0.009363 | 0.141252 | 0.115302 | 0.094168 | 0.073836 | 0.063135 | 0.050829 | 0 | 0.01029 | 0.396222 | 7,887 | 225 | 107 | 35.053333 | 0.774675 | 0.006974 | 0 | 0.179104 | 0 | 0 | 0.060312 | 0 | 0 | 0 | 0 | 0.004444 | 0 | 0 | null | null | 0.014925 | 0.044776 | null | null | 0.024876 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dbe819ec1ca3104ee628b78d496d92ff481d7440 | 571 | py | Python | rdmo/questions/migrations/0021_questionentity_is_collection.py | Raspeanut/rdmo | 9f785010a499c372a2f8368ccf76d2ea4150adcb | [
"Apache-2.0"
] | 77 | 2016-08-09T11:40:20.000Z | 2022-03-06T11:03:26.000Z | rdmo/questions/migrations/0021_questionentity_is_collection.py | Raspeanut/rdmo | 9f785010a499c372a2f8368ccf76d2ea4150adcb | [
"Apache-2.0"
] | 377 | 2016-07-01T13:59:36.000Z | 2022-03-30T13:53:19.000Z | rdmo/questions/migrations/0021_questionentity_is_collection.py | Raspeanut/rdmo | 9f785010a499c372a2f8368ccf76d2ea4150adcb | [
"Apache-2.0"
] | 47 | 2016-06-23T11:32:19.000Z | 2022-03-01T11:34:37.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-07-10 12:51
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('questions', '0020_data_migration'),
]
operations = [
migrations.AddField(
... | 27.190476 | 158 | 0.663748 | 63 | 571 | 5.84127 | 0.777778 | 0.032609 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049774 | 0.225919 | 571 | 20 | 159 | 28.55 | 0.782805 | 0.120841 | 0 | 0 | 1 | 0 | 0.258517 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbe820c018fa9e5b7a9474120784faa7a3cd9c24 | 403 | pyw | Python | main.pyw | ludica-squamata/BehaviourTreeEditor_v2 | 65ca608f7086cd2b4f0cc1eab7b714959b312b94 | [
"MIT"
] | null | null | null | main.pyw | ludica-squamata/BehaviourTreeEditor_v2 | 65ca608f7086cd2b4f0cc1eab7b714959b312b94 | [
"MIT"
] | null | null | null | main.pyw | ludica-squamata/BehaviourTreeEditor_v2 | 65ca608f7086cd2b4f0cc1eab7b714959b312b94 | [
"MIT"
] | null | null | null | from pygame import init as py_init, time
from frontend.globals.widgethandler import WidgetHandler
from frontend.globals.renderer import Renderer
from backend.eventhandler import EventHandler
py_init()
fps = time.Clock()
Renderer.init()
EventHandler.trigger('Init', 'System', {})
while True:
fps.tick(6... | 23.705882 | 57 | 0.734491 | 47 | 403 | 6.255319 | 0.489362 | 0.040816 | 0.129252 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00597 | 0.168734 | 403 | 16 | 58 | 25.1875 | 0.871642 | 0 | 0 | 0 | 0 | 0 | 0.02584 | 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 |
dbead58b18cf0c2145b8373ec2e92272926ce437 | 960 | py | Python | orders/models.py | shouvikpatra/Food-Delivery-System | a81b82d2e486771046071db9c9fd5004f81e1e3b | [
"MIT"
] | null | null | null | orders/models.py | shouvikpatra/Food-Delivery-System | a81b82d2e486771046071db9c9fd5004f81e1e3b | [
"MIT"
] | null | null | null | orders/models.py | shouvikpatra/Food-Delivery-System | a81b82d2e486771046071db9c9fd5004f81e1e3b | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class Order(models.Model):
category = (('Confirmed', 'Confirmed'),
('Preparing', 'Preparing'),
('Out for Delivery', 'Out for Delivery'),
('Delivered', 'Delivered'),
('Cancelled', 'Cancelled'),... | 33.103448 | 71 | 0.6375 | 101 | 960 | 5.970297 | 0.455446 | 0.106136 | 0.066335 | 0.106136 | 0.180763 | 0.144279 | 0.144279 | 0 | 0 | 0 | 0 | 0.006793 | 0.233333 | 960 | 28 | 72 | 34.285714 | 0.8125 | 0.025 | 0 | 0 | 0 | 0 | 0.17666 | 0.023555 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
dbec601c3e451ce3575d7ae9c4ac192e1d46b197 | 2,851 | py | Python | stats/SumM3Analysis.py | private-octopus/diana | af8ffaac4a8fad26bf78104e5238e358a5ad8b21 | [
"MIT"
] | 3 | 2018-02-15T20:00:44.000Z | 2020-07-16T06:08:20.000Z | stats/SumM3Analysis.py | private-octopus/diana | af8ffaac4a8fad26bf78104e5238e358a5ad8b21 | [
"MIT"
] | 111 | 2017-11-04T23:13:38.000Z | 2021-05-20T00:12:28.000Z | stats/SumM3Analysis.py | private-octopus/dianal | af8ffaac4a8fad26bf78104e5238e358a5ad8b21 | [
"MIT"
] | 5 | 2018-06-21T08:18:26.000Z | 2021-10-11T02:02:54.000Z | #!/usr/bin/env python
# coding=utf-8
#
# ITHI Kafka prototype, consume M3 captures as they are produced,
# store a capture line in the table file per day and node,
# and propagate a message mentioning the update to the "m3Analysis" topic
import sys
import codecs
from enum import Enum
import copy
import traceback
imp... | 29.391753 | 119 | 0.628902 | 361 | 2,851 | 4.880886 | 0.434903 | 0.023837 | 0.03235 | 0.03916 | 0.112372 | 0.035187 | 0.035187 | 0 | 0 | 0 | 0 | 0.026949 | 0.271133 | 2,851 | 96 | 120 | 29.697917 | 0.820982 | 0.198878 | 0 | 0.257143 | 0 | 0 | 0.164607 | 0 | 0 | 0 | 0 | 0.010417 | 0 | 1 | 0.014286 | false | 0.014286 | 0.171429 | 0 | 0.185714 | 0.185714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
dbf067b4ab84b16ce09bf4ba06567adb22a1426c | 288 | py | Python | usermigrate/db/__init__.py | ESGF/esgf-keycloak-user-migration | 27b75ee9acd0f9ac16f6730865364ac7d95611d0 | [
"BSD-3-Clause"
] | 1 | 2020-12-09T20:31:12.000Z | 2020-12-09T20:31:12.000Z | usermigrate/db/__init__.py | ESGF/esgf-keycloak-user-migration | 27b75ee9acd0f9ac16f6730865364ac7d95611d0 | [
"BSD-3-Clause"
] | null | null | null | usermigrate/db/__init__.py | ESGF/esgf-keycloak-user-migration | 27b75ee9acd0f9ac16f6730865364ac7d95611d0 | [
"BSD-3-Clause"
] | null | null | null | """ Modules for interacting with a user database. """
__author__ = "William Tucker"
__date__ = "2020-08-06"
__copyright__ = "Copyright 2020 United Kingdom Research and Innovation"
__license__ = "BSD - see LICENSE file in top-level package directory"
from .connection import Connection
| 28.8 | 71 | 0.767361 | 36 | 288 | 5.694444 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04898 | 0.149306 | 288 | 9 | 72 | 32 | 0.787755 | 0.15625 | 0 | 0 | 0 | 0 | 0.553191 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dbf8a7cfa2c7ec6215a919b4ad00bfea60fe2ebd | 11,991 | py | Python | components/aws/sagemaker/tests/unit_tests/tests/deploy/test_deploy_component.py | Strasser-Pablo/pipelines | a1d513eb412f3ffd44edf82af2fa7edb05c3b952 | [
"Apache-2.0"
] | 2,860 | 2018-05-24T04:55:01.000Z | 2022-03-31T13:49:56.000Z | components/aws/sagemaker/tests/unit_tests/tests/deploy/test_deploy_component.py | Strasser-Pablo/pipelines | a1d513eb412f3ffd44edf82af2fa7edb05c3b952 | [
"Apache-2.0"
] | 7,331 | 2018-05-16T09:03:26.000Z | 2022-03-31T23:22:04.000Z | components/aws/sagemaker/tests/unit_tests/tests/deploy/test_deploy_component.py | Strasser-Pablo/pipelines | a1d513eb412f3ffd44edf82af2fa7edb05c3b952 | [
"Apache-2.0"
] | 1,359 | 2018-05-15T11:05:41.000Z | 2022-03-31T09:42:09.000Z | from common.sagemaker_component import SageMakerComponent, SageMakerJobStatus
from deploy.src.sagemaker_deploy_spec import SageMakerDeploySpec
from deploy.src.sagemaker_deploy_component import (
EndpointRequests,
SageMakerDeployComponent,
)
from tests.unit_tests.tests.deploy.test_deploy_spec import DeploySpecTe... | 38.805825 | 103 | 0.541323 | 935 | 11,991 | 6.641711 | 0.135829 | 0.09211 | 0.043478 | 0.056361 | 0.773591 | 0.748792 | 0.687118 | 0.672947 | 0.661836 | 0.580837 | 0 | 0.007836 | 0.361438 | 11,991 | 308 | 104 | 38.931818 | 0.803187 | 0.006421 | 0 | 0.516364 | 0 | 0 | 0.207371 | 0.050458 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.032727 | false | 0 | 0.021818 | 0 | 0.061818 | 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 |
dbfc8571e59141021de10dff854a623894f2e427 | 1,647 | py | Python | setup.py | AgentDS/DocsExp | c1279091163314684a769972cfd21267214565a1 | [
"MIT"
] | null | null | null | setup.py | AgentDS/DocsExp | c1279091163314684a769972cfd21267214565a1 | [
"MIT"
] | null | null | null | setup.py | AgentDS/DocsExp | c1279091163314684a769972cfd21267214565a1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# @Time : 3/13/21 12:42 AM
# @Author : Siqi Liang
# @Contact : zszxlsq@gmail.com
# @File : setup.py
# @Software: PyCharm
from setuptools import setup, find_packages
from codecs import open
from os import path
def get_readme():
here = path.abspath(path.dirname(__file__))
# Get t... | 33.612245 | 78 | 0.639344 | 188 | 1,647 | 5.505319 | 0.590426 | 0.057971 | 0.075362 | 0.063768 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012589 | 0.228294 | 1,647 | 48 | 79 | 34.3125 | 0.801731 | 0.228901 | 0 | 0 | 0 | 0 | 0.410501 | 0.052506 | 0 | 0 | 0 | 0.020833 | 0 | 1 | 0.030303 | false | 0 | 0.090909 | 0 | 0.151515 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e002d1abd55066212ff97354f391ceae7c35c284 | 2,778 | py | Python | core/command_factory.py | rrpg/engine | 989f701b82aa7c73ea98003eed13077e5d6f15f9 | [
"MIT"
] | 2 | 2016-04-07T23:36:46.000Z | 2016-12-20T15:35:17.000Z | core/command_factory.py | rrpg/engine | 989f701b82aa7c73ea98003eed13077e5d6f15f9 | [
"MIT"
] | 5 | 2016-02-04T16:28:33.000Z | 2016-03-18T17:02:07.000Z | core/command_factory.py | rrpg/engine | 989f701b82aa7c73ea98003eed13077e5d6f15f9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Module containing the available commands of the game, the factory class to
create the commands...
Today, the available commands are:
- look,
- talk,
- move,
- enter,
- exit,
- take,
- drop,
- inventory,
- stats,
- help,
- quit,
- attack
- save
"""
import core.command
from core.commands impo... | 30.195652 | 89 | 0.698704 | 341 | 2,778 | 5.478006 | 0.28739 | 0.111349 | 0.1606 | 0.202355 | 0.412741 | 0.380621 | 0.091006 | 0.040685 | 0 | 0 | 0 | 0.001679 | 0.142189 | 2,778 | 91 | 90 | 30.527473 | 0.782207 | 0.226062 | 0 | 0 | 0 | 0 | 0.408789 | 0.208993 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0.097561 | 0 | 0.219512 | 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 |
e0087c46babfa71213b6823ee533dc6fd9b759fd | 2,342 | py | Python | grr/parsers/windows_persistence.py | theGreenJedi/grr | d9e11e304dc299d49c76b7fdf6fdbfcd4b8eec39 | [
"Apache-2.0"
] | null | null | null | grr/parsers/windows_persistence.py | theGreenJedi/grr | d9e11e304dc299d49c76b7fdf6fdbfcd4b8eec39 | [
"Apache-2.0"
] | null | null | null | grr/parsers/windows_persistence.py | theGreenJedi/grr | d9e11e304dc299d49c76b7fdf6fdbfcd4b8eec39 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""Parse various Windows persistence mechanisms into PersistenceFiles."""
from grr.lib import artifact_utils
from grr.lib import parsers
from grr.lib.rdfvalues import client as rdf_client
from grr.lib.rdfvalues import paths as rdf_paths
from grr.lib.rdfvalues import standard as rdf_standard
from ... | 40.37931 | 76 | 0.725875 | 245 | 2,342 | 6.755102 | 0.408163 | 0.025378 | 0.030211 | 0.034441 | 0.083988 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000533 | 0.199402 | 2,342 | 57 | 77 | 41.087719 | 0.882133 | 0.168659 | 0 | 0.052632 | 0 | 0 | 0.062923 | 0.014561 | 0 | 0 | 0 | 0.017544 | 0 | 1 | 0.052632 | false | 0 | 0.157895 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e00a0362117d60b243eb44bff421ea19fd7d1de8 | 781 | py | Python | 100 Curso aulapharos/002 BuclesCondicionalesTry/ifCondiciones.py | malcabaut/AprendiendoPython | b1e8731f1614b08b5ace1b7d1ecbeb041b21f28b | [
"MIT"
] | null | null | null | 100 Curso aulapharos/002 BuclesCondicionalesTry/ifCondiciones.py | malcabaut/AprendiendoPython | b1e8731f1614b08b5ace1b7d1ecbeb041b21f28b | [
"MIT"
] | null | null | null | 100 Curso aulapharos/002 BuclesCondicionalesTry/ifCondiciones.py | malcabaut/AprendiendoPython | b1e8731f1614b08b5ace1b7d1ecbeb041b21f28b | [
"MIT"
] | null | null | null | '''
igualad: a == b
desigualad: a != b
a menor que b: a < b
a menor o igual b: a <= b
a mayor que b: a > b
a mayor o igual b: a >= b
'''
# if basico en varias lineas
a = 33
b = 200
if b > a:
print("b es mayor a")
# if anidado en varias lineas
a = 33
b = 33
if b > a:
print("b es mayor a")
elif a == b:
print(... | 18.595238 | 61 | 0.591549 | 166 | 781 | 2.783133 | 0.192771 | 0.051948 | 0.025974 | 0.077922 | 0.718615 | 0.625541 | 0.515152 | 0.515152 | 0.47619 | 0.359307 | 0 | 0.017422 | 0.265045 | 781 | 41 | 62 | 19.04878 | 0.787456 | 0.395647 | 0 | 0.571429 | 0 | 0 | 0.280088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.52381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e00b645841cf57d5da57ccbf53f47615349870c7 | 28,552 | py | Python | Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/coremodules/network/routing.py | uruzahe/carla | 940c2ab23cce1eda1ef66de35f66b42d40865fb1 | [
"MIT"
] | 4 | 2020-11-13T02:35:56.000Z | 2021-03-29T20:15:54.000Z | Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/coremodules/network/routing.py | uruzahe/carla | 940c2ab23cce1eda1ef66de35f66b42d40865fb1 | [
"MIT"
] | 9 | 2020-12-09T02:12:39.000Z | 2021-02-18T00:15:28.000Z | Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/coremodules/network/routing.py | uruzahe/carla | 940c2ab23cce1eda1ef66de35f66b42d40865fb1 | [
"MIT"
] | 1 | 2020-11-20T19:31:26.000Z | 2020-11-20T19:31:26.000Z | # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
# Copyright (C) 2016-2020 German Aerospace Center (DLR) and others.
# SUMOPy module
# Copyright (C) 2012-2017 University of Bologna - DICAM
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public ... | 40.614509 | 189 | 0.504973 | 2,956 | 28,552 | 4.729026 | 0.166103 | 0.024036 | 0.026969 | 0.048072 | 0.403462 | 0.345304 | 0.296302 | 0.274555 | 0.260462 | 0.226268 | 0 | 0.006652 | 0.394508 | 28,552 | 702 | 190 | 40.672365 | 0.801944 | 0.101849 | 0 | 0.369261 | 0 | 0.003992 | 0.173509 | 0.005488 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.007984 | null | null | 0.023952 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e00c61b674c7e16d468085882276df863cc0ff68 | 469 | py | Python | backend-api/goodsrest/goodsrest/urls.py | ericgroom/gatorgoods | c78af60f463c6c8c6762101a2d8e7102d43bd804 | [
"MIT"
] | null | null | null | backend-api/goodsrest/goodsrest/urls.py | ericgroom/gatorgoods | c78af60f463c6c8c6762101a2d8e7102d43bd804 | [
"MIT"
] | 9 | 2020-02-12T00:40:03.000Z | 2021-12-09T01:11:33.000Z | backend-api/goodsrest/goodsrest/urls.py | ericgroom/gatorgoods | c78af60f463c6c8c6762101a2d8e7102d43bd804 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.urls import path
from django.conf.urls import url, include
from rest_framework import routers
from goods import views
router = routers.DefaultRouter()
router.register(r'users', views.UserViewSet)
router.register(r'groups', views.GroupViewSet)
urlpatterns = [
url(r'^'... | 24.684211 | 83 | 0.746269 | 63 | 469 | 5.507937 | 0.444444 | 0.086455 | 0.086455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119403 | 469 | 18 | 84 | 26.055556 | 0.840194 | 0 | 0 | 0 | 0 | 0 | 0.130342 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 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 |
e01e025c758ae04cf30c473bf68d745e001c89f5 | 22,123 | py | Python | src/encoding/declare/tests/test_declare_templates.py | fleur101/predict-python | d40c876d919232bbb77904e050b182c875bc36fa | [
"MIT"
] | 12 | 2018-06-27T08:09:18.000Z | 2021-10-10T22:19:04.000Z | src/encoding/declare/tests/test_declare_templates.py | fleur101/predict-python | d40c876d919232bbb77904e050b182c875bc36fa | [
"MIT"
] | 17 | 2018-06-12T17:36:11.000Z | 2020-11-16T21:23:22.000Z | src/encoding/declare/tests/test_declare_templates.py | fleur101/predict-python | d40c876d919232bbb77904e050b182c875bc36fa | [
"MIT"
] | 16 | 2018-08-02T14:40:17.000Z | 2021-11-12T12:28:46.000Z | """
Testing functions used in deviance mining process and that all the templates methods work as intended
"""
from collections import defaultdict
from django.test import TestCase
from src.encoding.declare.declare_templates import *
config_2 = {
"label" : "Label",
"deviant" : str(1),
"nondeviant" : str(0)... | 33.621581 | 101 | 0.523528 | 3,060 | 22,123 | 3.634967 | 0.060131 | 0.034523 | 0.009979 | 0.00899 | 0.795289 | 0.707543 | 0.644161 | 0.554976 | 0.491055 | 0.471096 | 0 | 0.022922 | 0.315735 | 22,123 | 657 | 102 | 33.672755 | 0.711851 | 0.155404 | 0 | 0.576754 | 0 | 0.041667 | 0.072008 | 0.026651 | 0 | 0 | 0 | 0 | 0.260965 | 1 | 0.050439 | false | 0 | 0.006579 | 0 | 0.067982 | 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 |
e02accb7f2d032295c74404d940e16d261331cdc | 981 | py | Python | saleor/registration/urls.py | VanilleBid/weekly-saleor | e776e86ee7ce710929ef33878d936e2a8367a217 | [
"BSD-3-Clause"
] | null | null | null | saleor/registration/urls.py | VanilleBid/weekly-saleor | e776e86ee7ce710929ef33878d936e2a8367a217 | [
"BSD-3-Clause"
] | 86 | 2018-03-08T14:19:19.000Z | 2018-05-12T14:55:16.000Z | saleor/registration/urls.py | JesusDelgadoPatlan/tiendaSpark | 0c8cfe7fa6e070f57daf4d06e2776bc4059ad830 | [
"BSD-3-Clause"
] | 2 | 2018-03-05T12:29:10.000Z | 2018-09-28T12:40:52.000Z | from django.conf.urls import url
from django.contrib.auth import views as django_views
from . import views
urlpatterns = [
url(r'^login/$', views.login, name='account_login'),
url(r'^logout/$', views.logout, name='account_logout'),
url(r'^signup/$', views.signup, name='account_signup'),
url(r'^passwor... | 46.714286 | 112 | 0.703364 | 135 | 981 | 4.881481 | 0.288889 | 0.150228 | 0.072838 | 0.103187 | 0.215478 | 0.097117 | 0 | 0 | 0 | 0 | 0 | 0.016355 | 0.127421 | 981 | 20 | 113 | 49.05 | 0.753505 | 0.009174 | 0 | 0 | 0 | 0.055556 | 0.418989 | 0.332301 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.555556 | 0.166667 | 0 | 0.166667 | 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 |
e02f6e780d7e5c97220e29df2ad83f2d81329b91 | 1,176 | py | Python | src/DyldExtractor/extraction_context.py | jelbrek/DyldExtractor | c7ca8fd52dcb53a0a65f092942be11477e4008e2 | [
"MIT"
] | 7 | 2020-11-21T14:54:41.000Z | 2021-09-30T23:07:00.000Z | src/DyldExtractor/extraction_context.py | jelbrek/DyldExtractor | c7ca8fd52dcb53a0a65f092942be11477e4008e2 | [
"MIT"
] | null | null | null | src/DyldExtractor/extraction_context.py | jelbrek/DyldExtractor | c7ca8fd52dcb53a0a65f092942be11477e4008e2 | [
"MIT"
] | null | null | null | import progressbar
import logging
from DyldExtractor.dyld.dyld_context import DyldContext
from DyldExtractor.macho.macho_context import MachOContext
class ExtractionContext(object):
"""Holds state information for extraction
"""
dyldCtx: DyldContext
machoCtx: MachOContext
# The update method of the the progres... | 24.5 | 59 | 0.758503 | 151 | 1,176 | 5.807947 | 0.523179 | 0.022805 | 0.059293 | 0.086659 | 0.143672 | 0.114025 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176871 | 1,176 | 47 | 60 | 25.021277 | 0.905992 | 0.177721 | 0 | 0.08 | 0 | 0 | 0.017493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0.04 | 0.16 | 0 | 0.52 | 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 |
e0340ad8c593595fa2e3087b54520f2033e96f97 | 997 | py | Python | src/test/make_tests_poly1305_reduce.py | ghassanmas/pycryptodome | 177510f48dca63e56bfd649bdfc3618a506cef7e | [
"Unlicense"
] | 2,063 | 2015-02-27T02:35:21.000Z | 2022-03-31T01:21:11.000Z | src/test/make_tests_poly1305_reduce.py | ghassanmas/pycryptodome | 177510f48dca63e56bfd649bdfc3618a506cef7e | [
"Unlicense"
] | 558 | 2015-04-07T06:14:57.000Z | 2022-03-31T18:14:34.000Z | src/test/make_tests_poly1305_reduce.py | ghassanmas/pycryptodome | 177510f48dca63e56bfd649bdfc3618a506cef7e | [
"Unlicense"
] | 444 | 2015-02-20T21:30:20.000Z | 2022-03-31T21:08:20.000Z | """Make unit test for poly1305_reduce()"""
from common import counter, make_main, split32
def make_test(value):
result = value % (2**130 - 5)
h_in = split32(value, 5)
h_out = split32(result, 5)
print("")
print("void test_%d() {" % next(counter))
print(" uint32_t h[5] = {" + ", ".join(h_... | 23.738095 | 75 | 0.600802 | 157 | 997 | 3.66879 | 0.33121 | 0.111111 | 0.060764 | 0.0625 | 0.144097 | 0.144097 | 0.079861 | 0.079861 | 0.079861 | 0 | 0 | 0.091898 | 0.170512 | 997 | 41 | 76 | 24.317073 | 0.604595 | 0.107322 | 0 | 0.1 | 0 | 0 | 0.337104 | 0.027149 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.033333 | false | 0 | 0.033333 | 0 | 0.066667 | 0.6 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e03801f00588dbea468553c2ac8b29bd7a2270c6 | 3,927 | py | Python | MIDI Remote Scripts/pushbase/note_layout_switcher.py | aarkwright/ableton_devices | fe5df3bbd64ccbc136bba722ba1e131a02969798 | [
"MIT"
] | null | null | null | MIDI Remote Scripts/pushbase/note_layout_switcher.py | aarkwright/ableton_devices | fe5df3bbd64ccbc136bba722ba1e131a02969798 | [
"MIT"
] | null | null | null | MIDI Remote Scripts/pushbase/note_layout_switcher.py | aarkwright/ableton_devices | fe5df3bbd64ccbc136bba722ba1e131a02969798 | [
"MIT"
] | null | null | null | # uncompyle6 version 3.3.5
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.7.3 (default, Apr 24 2019, 15:29:51) [MSC v.1915 64 bit (AMD64)]
# Embedded file name: c:\Jenkins\live\output\win_64_static\Release\python-bundle\MIDI Remote Scripts\pushbase\note_layout_switcher.py
# Compiled at: 2018-11-30 15:48:12
f... | 37.759615 | 133 | 0.711994 | 496 | 3,927 | 5.239919 | 0.25 | 0.092343 | 0.058484 | 0.048095 | 0.448634 | 0.298961 | 0.220085 | 0.078492 | 0.078492 | 0.044633 | 0 | 0.017203 | 0.200662 | 3,927 | 104 | 134 | 37.759615 | 0.810768 | 0.078431 | 0 | 0.155844 | 0 | 0 | 0.033758 | 0.019092 | 0 | 0 | 0 | 0 | 0.012987 | 1 | 0.207792 | false | 0 | 0.064935 | 0.025974 | 0.402597 | 0.012987 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e0385a6825526b2cef7e551125c03250002f852a | 886 | py | Python | healpy/isotropic/mapAllandSingleEvent/analysis_iso.py | tuos/FlowAndCorrelations | cc90cab5aa37e8a2ab04f6809531a0cc8db7c90c | [
"MIT"
] | null | null | null | healpy/isotropic/mapAllandSingleEvent/analysis_iso.py | tuos/FlowAndCorrelations | cc90cab5aa37e8a2ab04f6809531a0cc8db7c90c | [
"MIT"
] | null | null | null | healpy/isotropic/mapAllandSingleEvent/analysis_iso.py | tuos/FlowAndCorrelations | cc90cab5aa37e8a2ab04f6809531a0cc8db7c90c | [
"MIT"
] | 2 | 2015-08-24T18:21:48.000Z | 2018-01-26T13:56:06.000Z |
import healpy as hp
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import cm
import scipy.special as spc
import math
import matplotlib as mpl
from scipy.special import lpmn
import scipy.integrate as integrate
from scipy.integrate import quad
from numpy import sin, cos
from matplotlib.cm import Scal... | 21.609756 | 101 | 0.721219 | 142 | 886 | 4.485915 | 0.492958 | 0.050235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047814 | 0.173815 | 886 | 40 | 102 | 22.15 | 0.822404 | 0.113995 | 0 | 0 | 0 | 0 | 0.039744 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.481481 | 0 | 0.481481 | 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 |
e039d71ac6dec112c26ba1f72a908e9e068449de | 2,151 | py | Python | spine_json_lib/data/data_types/transform.py | ivan-ah/spine-json-lib | 1ea8460127f005d57af56090d2a48e6039437306 | [
"MIT"
] | 6 | 2019-12-02T15:25:57.000Z | 2021-11-02T04:14:19.000Z | spine_json_lib/data/data_types/transform.py | ivan-ah/spine-json-lib | 1ea8460127f005d57af56090d2a48e6039437306 | [
"MIT"
] | 3 | 2020-03-20T11:09:22.000Z | 2022-02-18T10:07:26.000Z | spine_json_lib/data/data_types/transform.py | ivan-ah/spine-json-lib | 1ea8460127f005d57af56090d2a48e6039437306 | [
"MIT"
] | 2 | 2019-12-02T14:56:50.000Z | 2020-02-24T07:53:20.000Z | from typing import Dict, Any
from spine_json_lib.data.data_types.base_type import SpineData
class Transform(SpineData):
DEFAULT_VALUES: Dict[str, Any] = {
"name": "",
"order": 0,
"bone": "",
"target": "",
"rotation": 0,
"x": 0,
"y": 0,
"scaleX": 1.0... | 29.875 | 62 | 0.564854 | 252 | 2,151 | 4.698413 | 0.230159 | 0.205236 | 0.059122 | 0.067568 | 0.331081 | 0.168919 | 0.106419 | 0.050676 | 0 | 0 | 0 | 0.017397 | 0.278475 | 2,151 | 71 | 63 | 30.295775 | 0.74549 | 0 | 0 | 0.033898 | 0 | 0 | 0.108322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033898 | false | 0 | 0.033898 | 0 | 0.169492 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e03b90a3d59fa62e276c0067944c5e87c7387325 | 4,293 | py | Python | nn_model.py | montid/AIPND_Flower_Image_Classifier | 69fc9462497ad5371c03283947b27f84995f151a | [
"MIT"
] | null | null | null | nn_model.py | montid/AIPND_Flower_Image_Classifier | 69fc9462497ad5371c03283947b27f84995f151a | [
"MIT"
] | null | null | null | nn_model.py | montid/AIPND_Flower_Image_Classifier | 69fc9462497ad5371c03283947b27f84995f151a | [
"MIT"
] | null | null | null | import torch
from torch import nn
import torch.nn.functional as F
from torchvision import datasets, models
#import numpy as np
#import nn_model
# load a pre-trained network
def load_pretrained_model(arch = 'vgg'):
if arch == 'vgg':
model = models.vgg16(pretrained=True)
input_size = 25088
elif ... | 31.8 | 129 | 0.631493 | 533 | 4,293 | 4.921201 | 0.281426 | 0.077774 | 0.022875 | 0.017156 | 0.061761 | 0.026687 | 0 | 0 | 0 | 0 | 0 | 0.010553 | 0.271605 | 4,293 | 134 | 130 | 32.037313 | 0.82827 | 0.290007 | 0 | 0.061538 | 0 | 0 | 0.101069 | 0 | 0 | 0 | 0 | 0.014925 | 0 | 1 | 0.076923 | false | 0 | 0.061538 | 0 | 0.2 | 0.015385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
e03eec4b0d11d839d90bb090f246f8a149b50206 | 2,209 | py | Python | example/JKBrickworks/1701_printer/print_test_page.py | HomeIT4all/micropython-ev3dev | fd59b55eb840d6e83a1e78d76a363af12c6d7f81 | [
"MIT"
] | 6 | 2019-04-16T08:32:38.000Z | 2021-09-27T12:18:46.000Z | example/JKBrickworks/1701_printer/print_test_page.py | HomeIT4all/micropython-ev3dev | fd59b55eb840d6e83a1e78d76a363af12c6d7f81 | [
"MIT"
] | null | null | null | example/JKBrickworks/1701_printer/print_test_page.py | HomeIT4all/micropython-ev3dev | fd59b55eb840d6e83a1e78d76a363af12c6d7f81 | [
"MIT"
] | 3 | 2019-12-22T16:13:38.000Z | 2021-09-27T12:19:04.000Z | #!/usr/bin/env micropython
"""This will print a full test page. It will do an entire print process and
test various parts of the program.
"""
from uev3dev.util import fork
from project import motor
from project import variables
# My Blocks
from carriage_move import carriage_move
from feed_in import feed_in
from feed... | 24.820225 | 79 | 0.689905 | 310 | 2,209 | 4.709677 | 0.3 | 0.061644 | 0.078082 | 0.09863 | 0.392466 | 0.276027 | 0.276027 | 0.149315 | 0.116438 | 0.116438 | 0 | 0.021953 | 0.216388 | 2,209 | 88 | 80 | 25.102273 | 0.82149 | 0.271163 | 0 | 0.410714 | 0 | 0 | 0.079747 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053571 | true | 0 | 0.214286 | 0 | 0.267857 | 0.267857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e03f670f88c281efa8516a99fe80b99f70e35e80 | 3,290 | py | Python | jiminy/vncdriver/screen/pyglet_screen.py | sibeshkar/jiminy | 7754f86fb0f246e7d039ea0cbfd9950fcae4adfb | [
"MIT"
] | 3 | 2020-03-16T13:50:40.000Z | 2021-06-09T05:26:13.000Z | jiminy/vncdriver/screen/pyglet_screen.py | sibeshkar/jiminy | 7754f86fb0f246e7d039ea0cbfd9950fcae4adfb | [
"MIT"
] | null | null | null | jiminy/vncdriver/screen/pyglet_screen.py | sibeshkar/jiminy | 7754f86fb0f246e7d039ea0cbfd9950fcae4adfb | [
"MIT"
] | null | null | null | import logging
import numpy as np
import os
from jiminy import pyprofile
import sys
from jiminy import error
from jiminy.vncdriver import server_messages
logger = logging.getLogger(__name__)
class PygletScreen(object):
def __init__(self, bitmap=None):
self._window = None
self._is_updated = False
... | 37.816092 | 117 | 0.653495 | 419 | 3,290 | 4.942721 | 0.324582 | 0.048286 | 0.034766 | 0.031386 | 0.303718 | 0.269918 | 0.126992 | 0.11492 | 0.079189 | 0.041526 | 0 | 0.004758 | 0.233435 | 3,290 | 86 | 118 | 38.255814 | 0.816416 | 0.297264 | 0 | 0.125 | 0 | 0 | 0.08399 | 0.039808 | 0 | 0 | 0 | 0.011628 | 0 | 1 | 0.104167 | false | 0 | 0.1875 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e05458579e0362c4b6f9a12b3d4d5c73612d2f59 | 337 | py | Python | app1/migrations/0005_remove_site_image.py | Pratham82/Vaishali-enterprises | b2d6e6490a737228ab48bd5efcabae2fd25e03e6 | [
"MIT"
] | 1 | 2021-05-25T02:10:58.000Z | 2021-05-25T02:10:58.000Z | app1/migrations/0005_remove_site_image.py | Pratham82/Vaishali-enterprises | b2d6e6490a737228ab48bd5efcabae2fd25e03e6 | [
"MIT"
] | null | null | null | app1/migrations/0005_remove_site_image.py | Pratham82/Vaishali-enterprises | b2d6e6490a737228ab48bd5efcabae2fd25e03e6 | [
"MIT"
] | null | null | null | # Generated by Django 3.1 on 2020-09-04 20:42
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('app1', '0004_auto_20200905_0211'),
]
operations = [
migrations.RemoveField(
model_name='site',
name='image',
... | 18.722222 | 46 | 0.554896 | 34 | 337 | 5.382353 | 0.852941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139013 | 0.338279 | 337 | 17 | 47 | 19.823529 | 0.681614 | 0.127596 | 0 | 0 | 1 | 0 | 0.130909 | 0.083636 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e06103ecbd77cd563df9d0fa851fac3061c656b5 | 8,367 | py | Python | analyzer/save_analyzer/0601save_analyzer.py | livjgovob0614/kby | 006742b46a02dc63076216bc0d716731e8fe20f1 | [
"BSD-2-Clause"
] | null | null | null | analyzer/save_analyzer/0601save_analyzer.py | livjgovob0614/kby | 006742b46a02dc63076216bc0d716731e8fe20f1 | [
"BSD-2-Clause"
] | null | null | null | analyzer/save_analyzer/0601save_analyzer.py | livjgovob0614/kby | 006742b46a02dc63076216bc0d716731e8fe20f1 | [
"BSD-2-Clause"
] | null | null | null | import binascii
from queue import Queue
from capstone import *
#from capstone.x86 import *
from capstone.arm64_const import *
import disassembler
import API
from formats.constructs import *
from formats.enums import *
#from base_analyzer import BaseAnalyzer
class Analyzer():
def __init__(self, loader, exe, f):
... | 34.15102 | 122 | 0.558982 | 1,025 | 8,367 | 4.378537 | 0.239024 | 0.026515 | 0.024064 | 0.020053 | 0.23574 | 0.197415 | 0.176916 | 0.13369 | 0.099376 | 0.066399 | 0 | 0.01627 | 0.331541 | 8,367 | 244 | 123 | 34.290984 | 0.786161 | 0 | 0 | 0.211268 | 0 | 0 | 0.081646 | 0.006205 | 0 | 0 | 0 | 0.008197 | 0 | 0 | null | null | 0.007042 | 0.056338 | null | null | 0.147887 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e063b86eeabd179c324ed80d7894e3b596ec1bcf | 2,453 | py | Python | src/spaceone/monitoring/interface/grpc/v1/maintenance_window.py | jean1042/monitoring | 0585a1ea52ec13285eaca81cc5b19fa3f7a1fba4 | [
"Apache-2.0"
] | 5 | 2020-06-04T23:01:30.000Z | 2020-09-09T08:58:51.000Z | src/spaceone/monitoring/interface/grpc/v1/maintenance_window.py | jean1042/monitoring | 0585a1ea52ec13285eaca81cc5b19fa3f7a1fba4 | [
"Apache-2.0"
] | 8 | 2021-11-12T08:13:00.000Z | 2022-03-28T11:13:12.000Z | src/spaceone/monitoring/interface/grpc/v1/maintenance_window.py | jean1042/monitoring | 0585a1ea52ec13285eaca81cc5b19fa3f7a1fba4 | [
"Apache-2.0"
] | 7 | 2020-06-10T01:56:35.000Z | 2021-12-02T05:36:21.000Z | from spaceone.api.monitoring.v1 import maintenance_window_pb2, maintenance_window_pb2_grpc
from spaceone.core.pygrpc import BaseAPI
class MaintenanceWindow(BaseAPI, maintenance_window_pb2_grpc.MaintenanceWindowServicer):
pb2 = maintenance_window_pb2
pb2_grpc = maintenance_window_pb2_grpc
def create(self... | 50.061224 | 108 | 0.726457 | 256 | 2,453 | 6.714844 | 0.167969 | 0.1879 | 0.097731 | 0.08377 | 0.729494 | 0.680628 | 0.680628 | 0.680628 | 0.680628 | 0.680628 | 0 | 0.004047 | 0.194048 | 2,453 | 48 | 109 | 51.104167 | 0.865453 | 0 | 0 | 0.363636 | 0 | 0 | 0.107623 | 0.101916 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.060606 | 0 | 0.515152 | 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 |
e06845747557930a0ce8173f52bd0b3cd6cc651b | 367 | py | Python | configs/ocrnet/ocrnet_r101-d8_512x1024_80k_b16_cityscapes_sccqq.py | cocolord/mmsegmentation | 45db7269d7aa40f8aac5ddaabf7e1b4b01353ca5 | [
"Apache-2.0"
] | null | null | null | configs/ocrnet/ocrnet_r101-d8_512x1024_80k_b16_cityscapes_sccqq.py | cocolord/mmsegmentation | 45db7269d7aa40f8aac5ddaabf7e1b4b01353ca5 | [
"Apache-2.0"
] | null | null | null | configs/ocrnet/ocrnet_r101-d8_512x1024_80k_b16_cityscapes_sccqq.py | cocolord/mmsegmentation | 45db7269d7aa40f8aac5ddaabf7e1b4b01353ca5 | [
"Apache-2.0"
] | null | null | null | _base_ = [
'../_base_/models/ocrnet_r50-d8.py', '../_base_/datasets/cityscapes_sccqq.py',
'../_base_/default_runtime.py', '../_base_/schedules/schedule_80k.py'
]
model = dict(pretrained='open-mmlab://resnet101_v1c', backbone=dict(depth=101))
optimizer = dict(lr=0.02)
lr_config = dict(min_lr=2e-4)
data = dict(
... | 30.583333 | 82 | 0.700272 | 54 | 367 | 4.37037 | 0.703704 | 0.076271 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058104 | 0.108992 | 367 | 12 | 83 | 30.583333 | 0.663609 | 0 | 0 | 0 | 0 | 0 | 0.434783 | 0.434783 | 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 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e06e58ce754e2e5f57e536a329636ab1b130f154 | 270 | py | Python | sana/contrib/middleware/kannel/urls.py | satvikdhandhania/vit-11 | e599f2b82a9194658c67bbd5c7e45f3b50d016da | [
"BSD-3-Clause"
] | 1 | 2016-09-20T20:36:53.000Z | 2016-09-20T20:36:53.000Z | sana/contrib/middleware/kannel/urls.py | satvikdhandhania/vit-11 | e599f2b82a9194658c67bbd5c7e45f3b50d016da | [
"BSD-3-Clause"
] | null | null | null | sana/contrib/middleware/kannel/urls.py | satvikdhandhania/vit-11 | e599f2b82a9194658c67bbd5c7e45f3b50d016da | [
"BSD-3-Clause"
] | null | null | null | '''
@author: Sana Dev Team
Created on May 12, 2011
'''
from django.conf.urls.defaults import patterns
import handlers
urlpatterns = patterns(
'',
(r'^notification/$',
handlers.notification_resource,
{},
'notification'),
) | 15.882353 | 46 | 0.6 | 26 | 270 | 6.192308 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030612 | 0.274074 | 270 | 17 | 47 | 15.882353 | 0.790816 | 0.17037 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 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 |
e06ec19a102795325fd76667476d13998fcdceb2 | 1,065 | py | Python | pyexcel_io/readers/__init__.py | vinraspa/pyexcel-io | 1b4fde5b79c42c57ebed54ed94272d700c6f9317 | [
"BSD-3-Clause"
] | 52 | 2016-06-15T17:11:23.000Z | 2022-02-07T12:44:07.000Z | pyexcel_io/readers/__init__.py | vinraspa/pyexcel-io | 1b4fde5b79c42c57ebed54ed94272d700c6f9317 | [
"BSD-3-Clause"
] | 100 | 2015-12-28T17:58:50.000Z | 2022-01-29T19:48:39.000Z | pyexcel_io/readers/__init__.py | vinraspa/pyexcel-io | 1b4fde5b79c42c57ebed54ed94272d700c6f9317 | [
"BSD-3-Clause"
] | 20 | 2016-05-09T16:44:36.000Z | 2021-09-27T11:54:00.000Z | """
pyexcel_io.readers
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
file readers
:copyright: (c) 2014-2020 by Onni Software Ltd.
:license: New BSD License, see LICENSE for more details
"""
from pyexcel_io.plugins import IOPluginInfoChainV2
IOPluginInfoChainV2(__name__).add_a_reader(
relative_plugin_cla... | 28.026316 | 60 | 0.669484 | 126 | 1,065 | 5.293651 | 0.373016 | 0.029985 | 0.074963 | 0.134933 | 0.487256 | 0.409295 | 0.409295 | 0.409295 | 0.347826 | 0.287856 | 0 | 0.011062 | 0.151174 | 1,065 | 37 | 61 | 28.783784 | 0.72677 | 0.161502 | 0 | 0.592593 | 0 | 0 | 0.228902 | 0.084393 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.037037 | 0 | 0.037037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e07539c9b3969c4e42317103ed758cb64daa0fc6 | 1,802 | py | Python | ydb/public/api/protos/annotations/sensitive_pb2.py | gridnevvvit/ydb-python-sdk | 952f7b4f179595b07711934691d2e15643929cc5 | [
"Apache-2.0"
] | 2 | 2022-02-18T16:18:52.000Z | 2022-02-19T20:15:05.000Z | ydb/public/api/protos/annotations/sensitive_pb2.py | gridnevvvit/ydb-python-sdk | 952f7b4f179595b07711934691d2e15643929cc5 | [
"Apache-2.0"
] | 1 | 2022-02-09T12:49:19.000Z | 2022-02-21T08:15:36.000Z | ydb/public/api/protos/annotations/sensitive_pb2.py | gridnevvvit/ydb-python-sdk | 952f7b4f179595b07711934691d2e15643929cc5 | [
"Apache-2.0"
] | 2 | 2022-02-03T14:58:56.000Z | 2022-02-22T19:42:59.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: ydb/public/api/protos/annotations/sensitive.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflectio... | 40.954545 | 254 | 0.815205 | 242 | 1,802 | 5.797521 | 0.438017 | 0.06985 | 0.064148 | 0.085531 | 0.274412 | 0.225944 | 0.122594 | 0 | 0 | 0 | 0 | 0.040989 | 0.079356 | 1,802 | 43 | 255 | 41.906977 | 0.804702 | 0.134295 | 0 | 0 | 1 | 0.037037 | 0.229677 | 0.202581 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.185185 | 0 | 0.185185 | 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 |
e07583b0b856d217fa704a71b3e95444376cbde8 | 862 | py | Python | language/python/python/class/class_attribute.py | bigfoolliu/liu_aistuff | aa661d37c05c257ee293285dd0868fb7e8227628 | [
"MIT"
] | 1 | 2019-11-25T07:23:42.000Z | 2019-11-25T07:23:42.000Z | language/python/python/class/class_attribute.py | bigfoolliu/liu_aistuff | aa661d37c05c257ee293285dd0868fb7e8227628 | [
"MIT"
] | 13 | 2020-01-07T16:09:47.000Z | 2022-03-02T12:51:44.000Z | language/python/python/class/class_attribute.py | bigfoolliu/liu_aistuff | aa661d37c05c257ee293285dd0868fb7e8227628 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# author: bigfoolliu
"""
python类的内置属性
__dict__ : 类的属性(包含一个字典,由类的数据属性组成)
__doc__ :类的文档字符串
__name__: 类名
__module__: 类定义所在的模块(类的全名是'__main__.className',如果类位于一个导入模块mymod中,那么className.__module__ 等于 mymod)
__bases__ : 类的所有父类构成元素(包含了一个由所有父类组成的元组)
__class__: 类返回其元类
__mro__: 返回类... | 19.155556 | 97 | 0.680974 | 90 | 862 | 5.344444 | 0.5 | 0.049896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004219 | 0.175174 | 862 | 44 | 98 | 19.590909 | 0.672293 | 0.37007 | 0 | 0 | 0 | 0 | 0.151515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0 | 0 | 0.3125 | 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 |
e077042f972a36a57b5fa5d4ef8d05b61545ddeb | 640 | py | Python | photos/migrations/0014_auto_20160929_0732.py | newtonkiragu/mars-rover | 722355a6435571ec509cbf4f5cbfddb1a0f6c235 | [
"MIT"
] | null | null | null | photos/migrations/0014_auto_20160929_0732.py | newtonkiragu/mars-rover | 722355a6435571ec509cbf4f5cbfddb1a0f6c235 | [
"MIT"
] | null | null | null | photos/migrations/0014_auto_20160929_0732.py | newtonkiragu/mars-rover | 722355a6435571ec509cbf4f5cbfddb1a0f6c235 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-09-29 07:32
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('photos', '0013_photo_concurrent'),
]
operations = [
migrations.AddField(
... | 24.615385 | 88 | 0.598438 | 69 | 640 | 5.362319 | 0.710145 | 0.048649 | 0.075676 | 0.097297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051948 | 0.278125 | 640 | 25 | 89 | 25.6 | 0.748918 | 0.10625 | 0 | 0.222222 | 1 | 0 | 0.135325 | 0.082601 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ebdd1181426b1f4643d51cde853ee2092373db3 | 1,515 | py | Python | PyInstaller/hooks/hook-gi.repository.GLib.py | soleil0-0/pyinstaller | 4249a7347f6b81aba9825ded8addb92ee0f85ea9 | [
"Apache-2.0"
] | 12 | 2020-12-15T15:12:06.000Z | 2022-03-18T16:17:42.000Z | PyInstaller/hooks/hook-gi.repository.GLib.py | jeremysanders/pyinstaller | 321b24f9a9a5978337735816b36ca6b4a90a2fb4 | [
"Apache-2.0"
] | 10 | 2020-09-30T12:49:45.000Z | 2020-10-04T10:26:33.000Z | PyInstaller/hooks/hook-gi.repository.GLib.py | jeremysanders/pyinstaller | 321b24f9a9a5978337735816b36ca6b4a90a2fb4 | [
"Apache-2.0"
] | 10 | 2020-12-15T15:12:14.000Z | 2022-02-09T21:02:17.000Z | #-----------------------------------------------------------------------------
# Copyright (c) 2005-2020, PyInstaller Development Team.
#
# Distributed under the terms of the GNU General Public License (version 2
# or later) with exception for distributing the bootloader.
#
# The full license is in the file COPYING.txt... | 40.945946 | 97 | 0.679868 | 211 | 1,515 | 4.781991 | 0.488152 | 0.024777 | 0.041625 | 0.050545 | 0.049554 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035312 | 0.121452 | 1,515 | 36 | 98 | 42.083333 | 0.722765 | 0.627063 | 0 | 0 | 0 | 0 | 0.102377 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 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 |
0ec00f16a02ec7c5d123af07d123c682da1968a2 | 347 | py | Python | sjfxjc/foundations-for-analytics-with-python-master/csv/pandas_select_contiguous_rows.py | SaronZhou/python | 40d73b49b9b17542c73a3c09d28e479d2fefcde3 | [
"MIT"
] | null | null | null | sjfxjc/foundations-for-analytics-with-python-master/csv/pandas_select_contiguous_rows.py | SaronZhou/python | 40d73b49b9b17542c73a3c09d28e479d2fefcde3 | [
"MIT"
] | null | null | null | sjfxjc/foundations-for-analytics-with-python-master/csv/pandas_select_contiguous_rows.py | SaronZhou/python | 40d73b49b9b17542c73a3c09d28e479d2fefcde3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import pandas as pd
import sys
input_file = sys.argv[1]
output_file = sys.argv[2]
data_frame = pd.read_csv(input_file, header=None)
data_frame = data_frame.drop([0,1,2,16,17,18])
data_frame.columns = data_frame.iloc[0]
data_frame = data_frame.reindex(data_frame.index.drop(3))
data_frame.to_cs... | 24.785714 | 57 | 0.769452 | 65 | 347 | 3.876923 | 0.507692 | 0.321429 | 0.087302 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044444 | 0.092219 | 347 | 14 | 58 | 24.785714 | 0.755556 | 0.060519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ec19221cbfc0b1c6a0fe2f06e1e69fe481d7192 | 722 | py | Python | juliany_pizza/menu/migrations/0013_auto_20220315_0742.py | kzborisov/Juliany-Pizza | 4ebc0b21e314b244048df79e4858f30447b43f8b | [
"MIT"
] | null | null | null | juliany_pizza/menu/migrations/0013_auto_20220315_0742.py | kzborisov/Juliany-Pizza | 4ebc0b21e314b244048df79e4858f30447b43f8b | [
"MIT"
] | 9 | 2022-03-23T13:13:23.000Z | 2022-03-28T13:40:20.000Z | juliany_pizza/menu/migrations/0013_auto_20220315_0742.py | kzborisov/Juliany-Pizza | 4ebc0b21e314b244048df79e4858f30447b43f8b | [
"MIT"
] | null | null | null | # Generated by Django 3.2.12 on 2022-03-15 07:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('menu', '0012_auto_20220315_0738'),
]
operations = [
migrations.RemoveField(
model_name='menuitem',
name='size',
... | 25.785714 | 131 | 0.540166 | 71 | 722 | 5.394366 | 0.633803 | 0.083551 | 0.088773 | 0.109661 | 0.130548 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065737 | 0.304709 | 722 | 27 | 132 | 26.740741 | 0.697211 | 0.063712 | 0 | 0.380952 | 1 | 0 | 0.148368 | 0.034125 | 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 |
0ec8be90a471fa7809594aad88ad1c331baae8a6 | 3,923 | py | Python | app.py | cpollard0/pcluster-manager | c7909cd7c1ecbe61ba15156106bb2680751b506a | [
"Apache-2.0"
] | null | null | null | app.py | cpollard0/pcluster-manager | c7909cd7c1ecbe61ba15156106bb2680751b506a | [
"Apache-2.0"
] | null | null | null | app.py | cpollard0/pcluster-manager | c7909cd7c1ecbe61ba15156106bb2680751b506a | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
# with the License. A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "LICENSE.txt" file accom... | 27.055172 | 119 | 0.676523 | 482 | 3,923 | 5.263485 | 0.338174 | 0.0473 | 0.07095 | 0.04257 | 0.02838 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006801 | 0.212847 | 3,923 | 144 | 120 | 27.243056 | 0.814767 | 0.174101 | 0 | 0.096154 | 0 | 0 | 0.146803 | 0.05928 | 0 | 0 | 0 | 0 | 0 | 1 | 0.182692 | false | 0 | 0.067308 | 0.163462 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
0ec9166afacfa609c2f3c0efefbe9df36a7af349 | 1,059 | py | Python | profeval/run/scrape_data.py | daemon/profeval | baaea3d3e04222347e1fbcb9859e541e79e334ec | [
"MIT"
] | null | null | null | profeval/run/scrape_data.py | daemon/profeval | baaea3d3e04222347e1fbcb9859e541e79e334ec | [
"MIT"
] | null | null | null | profeval/run/scrape_data.py | daemon/profeval | baaea3d3e04222347e1fbcb9859e541e79e334ec | [
"MIT"
] | null | null | null | import argparse
import getpass
import os
import pathlib
import time
from tqdm import tqdm
from profeval.net import login, MathSocSurveyApi, AuthError
def main():
parser = argparse.ArgumentParser()
parser.add_argument('--username', '-u', type=str, required=True)
parser.add_argument('--delay', '-d', type=... | 27.868421 | 89 | 0.679887 | 133 | 1,059 | 5.225564 | 0.496241 | 0.038849 | 0.073381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001179 | 0.199245 | 1,059 | 37 | 90 | 28.621622 | 0.818396 | 0 | 0 | 0 | 0 | 0 | 0.098206 | 0.024551 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0.1 | 0.233333 | 0 | 0.3 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0ed3d6f3076785335a5ca4ca3b15bfdbf57748fa | 10,337 | py | Python | pattern/__init__.py | s-light/OLA_test_pattern_generator | 9ed0b48bf937f248fb784000d1ea309378abd148 | [
"MIT"
] | 1 | 2018-03-20T20:04:06.000Z | 2018-03-20T20:04:06.000Z | pattern/__init__.py | s-light/OLA_test_pattern_generator | 9ed0b48bf937f248fb784000d1ea309378abd148 | [
"MIT"
] | null | null | null | pattern/__init__.py | s-light/OLA_test_pattern_generator | 9ed0b48bf937f248fb784000d1ea309378abd148 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
"""
pattern base class.
generates a test pattern.
history:
see git commits
todo:
~ all fine :-)
"""
# https://docs.python.org/2.7/howto/pyporting.html#division
from __future__ import division
import sys
import importlib
import os
import pkgutil
impo... | 27.639037 | 79 | 0.579762 | 1,228 | 10,337 | 4.635993 | 0.18241 | 0.037941 | 0.028105 | 0.015809 | 0.419111 | 0.334446 | 0.275426 | 0.22554 | 0.199895 | 0.159494 | 0 | 0.045054 | 0.287124 | 10,337 | 373 | 80 | 27.713137 | 0.727507 | 0.397407 | 0 | 0.234483 | 1 | 0 | 0.036473 | 0 | 0 | 0 | 0 | 0.002681 | 0 | 1 | 0.117241 | false | 0 | 0.082759 | 0 | 0.310345 | 0.048276 | 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 |
0ed3fc659de7f236e3f7078d35e33e1ca27457a3 | 1,214 | py | Python | SimilarityClassification/Classifiers/GloveCenteredClassifier.py | dudenzz/word_embedding | 7aa7c7619f8a56903384176f3d83e999153c55ce | [
"MIT"
] | null | null | null | SimilarityClassification/Classifiers/GloveCenteredClassifier.py | dudenzz/word_embedding | 7aa7c7619f8a56903384176f3d83e999153c55ce | [
"MIT"
] | null | null | null | SimilarityClassification/Classifiers/GloveCenteredClassifier.py | dudenzz/word_embedding | 7aa7c7619f8a56903384176f3d83e999153c55ce | [
"MIT"
] | null | null | null | __author__ = 'Asus'
from IClassifier import IClassifier
from utilities import load_stf
from glove import Glove
from scipy.spatial.distance import cosine
from scipy.spatial.distance import euclidean
import numpy as np
class GloveClassifier(IClassifier):
def __init__(self):
self.GloveInstace = None
se... | 34.685714 | 90 | 0.617792 | 135 | 1,214 | 5.474074 | 0.451852 | 0.092016 | 0.043302 | 0.064953 | 0.230041 | 0.14885 | 0.14885 | 0 | 0 | 0 | 0 | 0.010216 | 0.2743 | 1,214 | 34 | 91 | 35.705882 | 0.828604 | 0.018122 | 0 | 0 | 0 | 0 | 0.017286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | 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 |
0ed7e9cdaacc0d4c510d41b87376ab89175f2d74 | 2,788 | py | Python | tests/formats/mysql/definitions/test_table_operations_column.py | cmancone/mygrations | 30d1d568ca7d6c38dbc5211834dd2d04c0bcf078 | [
"MIT"
] | 10 | 2018-04-09T08:39:42.000Z | 2022-03-14T15:36:05.000Z | tests/formats/mysql/definitions/test_table_operations_column.py | cmancone/mygrations | 30d1d568ca7d6c38dbc5211834dd2d04c0bcf078 | [
"MIT"
] | 14 | 2018-05-02T11:14:08.000Z | 2022-01-15T18:48:54.000Z | tests/formats/mysql/definitions/test_table_operations_column.py | cmancone/mygrations | 30d1d568ca7d6c38dbc5211834dd2d04c0bcf078 | [
"MIT"
] | 5 | 2018-07-18T02:20:48.000Z | 2022-02-19T09:32:07.000Z | import unittest
from mygrations.formats.mysql.file_reader.create_parser import create_parser
from mygrations.formats.mysql.definitions.column import column
class test_table_operations_column(unittest.TestCase):
def _get_default_table(self):
table = create_parser()
table.parse(
"""CREATE... | 37.675676 | 136 | 0.664634 | 333 | 2,788 | 5.237237 | 0.237237 | 0.060206 | 0.077408 | 0.073395 | 0.475344 | 0.462729 | 0.462729 | 0.418578 | 0.254014 | 0.254014 | 0 | 0.0046 | 0.22023 | 2,788 | 73 | 137 | 38.191781 | 0.797608 | 0 | 0 | 0.333333 | 0 | 0 | 0.079516 | 0 | 0 | 0 | 0 | 0 | 0.229167 | 1 | 0.208333 | false | 0 | 0.0625 | 0.020833 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ee28536e14c30c091998f89f721370bded93de0 | 978 | py | Python | moeda/models.py | renannoronha/cotacao | 4323bf650db8008a28a44d68e78a5cd1e350fc7b | [
"MIT"
] | null | null | null | moeda/models.py | renannoronha/cotacao | 4323bf650db8008a28a44d68e78a5cd1e350fc7b | [
"MIT"
] | null | null | null | moeda/models.py | renannoronha/cotacao | 4323bf650db8008a28a44d68e78a5cd1e350fc7b | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class Moeda(models.Model):
codigo = models.CharField('Código', max_length=3, primary_key=True)
moeda = models.CharField('Nome da Moeda', max_length=255)
simbolo = models.CharField('Símbolo', max_length=5)
def __str__(self):
return self.co... | 34.928571 | 92 | 0.682004 | 123 | 978 | 5.203252 | 0.447154 | 0.06875 | 0.03125 | 0.05 | 0.1875 | 0.1875 | 0.1875 | 0.1875 | 0.1875 | 0.1875 | 0 | 0.011378 | 0.191207 | 978 | 28 | 93 | 34.928571 | 0.797724 | 0.02454 | 0 | 0.190476 | 0 | 0 | 0.116474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.047619 | 0.095238 | 0.761905 | 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 |
0ee5d69fd57e84d06f577cdfee2a173582eae549 | 1,912 | py | Python | vosekast_control/Valve.py | karlTGA/vosekast_control | c8bf88904e6c0173ea025f81b50b53016ad8369b | [
"MIT"
] | 1 | 2021-09-29T09:30:36.000Z | 2021-09-29T09:30:36.000Z | vosekast_control/Valve.py | karlTGA/vosekast_control | c8bf88904e6c0173ea025f81b50b53016ad8369b | [
"MIT"
] | 23 | 2020-03-02T06:39:50.000Z | 2022-02-27T00:32:44.000Z | vosekast_control/Valve.py | karlTGA/vosekast_control | c8bf88904e6c0173ea025f81b50b53016ad8369b | [
"MIT"
] | 1 | 2020-02-13T11:47:04.000Z | 2020-02-13T11:47:04.000Z | import logging
from vosekast_control.Log import LOGGER
from vosekast_control.connectors.RelayControl import RelayControl
from vosekast_control.utils.Msg import StatusMessage
from vosekast_control.connectors import MQTTConnection
class Valve:
# regulations
BINARY = "BINARY"
ANALOG = "ANALOG"
# valve_t... | 25.157895 | 85 | 0.627092 | 221 | 1,912 | 5.239819 | 0.280543 | 0.093264 | 0.067358 | 0.049223 | 0.165803 | 0.082038 | 0 | 0 | 0 | 0 | 0 | 0 | 0.27249 | 1,912 | 75 | 86 | 25.493333 | 0.832495 | 0.064854 | 0 | 0.06 | 0 | 0 | 0.070848 | 0 | 0 | 0 | 0 | 0.013333 | 0 | 1 | 0.16 | false | 0 | 0.1 | 0.06 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0eea0fe3867988e529137274521e94d4326d6899 | 792 | py | Python | numpad.py | grebtsew/ARNumpad | 2956cf6c72faf64c236d153fe1274d5ed626e83a | [
"MIT"
] | 1 | 2022-02-13T13:14:17.000Z | 2022-02-13T13:14:17.000Z | numpad.py | grebtsew/ARNumpad | 2956cf6c72faf64c236d153fe1274d5ed626e83a | [
"MIT"
] | null | null | null | numpad.py | grebtsew/ARNumpad | 2956cf6c72faf64c236d153fe1274d5ed626e83a | [
"MIT"
] | 3 | 2021-10-16T23:03:04.000Z | 2022-02-13T13:14:20.000Z | from enum import Enum
"""
Represent Landmarks to numpad coordinates for left and right hand.
"""
class NumpadValues(Enum):
Key7 = "7",
Key8 = "8",
Key9 = "9",
Key6 = "6",
Key5 = "5",
Key4 = "4",
Key3 = "3",
Key2 = "2",
Key1 = "1",
Key0 = "0",
Del = "del",
Enter = "enter... | 16.163265 | 66 | 0.457071 | 99 | 792 | 3.656566 | 0.494949 | 0.066298 | 0.049724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167665 | 0.367424 | 792 | 49 | 67 | 16.163265 | 0.55489 | 0 | 0 | 0 | 0 | 0 | 0.055633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02381 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0ef0c7339c2a2ca8ba1bae431888f9a473d60b2f | 645 | py | Python | setup.py | willnx/vlab_power | 82193b4ff766eb88b51240286253deb3b7bfde55 | [
"Apache-2.0"
] | 1 | 2019-04-10T16:17:20.000Z | 2019-04-10T16:17:20.000Z | setup.py | willnx/vlab_power | 82193b4ff766eb88b51240286253deb3b7bfde55 | [
"Apache-2.0"
] | null | null | null | setup.py | willnx/vlab_power | 82193b4ff766eb88b51240286253deb3b7bfde55 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
RESTful endpoints for powering on/off/restarting VMs in vLab
"""
from setuptools import setup, find_packages
setup(name="vlab-power-api",
author="Nicholas Willhite,",
author_email='willnx84@gmail.com',
version='2019.06.19',
packages=find_packag... | 32.25 | 78 | 0.63876 | 78 | 645 | 5.166667 | 0.75641 | 0.054591 | 0.064516 | 0.079404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023211 | 0.19845 | 645 | 19 | 79 | 33.947368 | 0.756286 | 0.15969 | 0 | 0 | 0 | 0 | 0.373358 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 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 |
0ef1125e61a7c61a7902fa2147d48be6c4f52ca3 | 3,129 | py | Python | idp/ldap_auth.py | omizrahi99/uniAuth | be33d3be10f82e955deffe7ad4b34eeafca4195a | [
"Apache-2.0"
] | null | null | null | idp/ldap_auth.py | omizrahi99/uniAuth | be33d3be10f82e955deffe7ad4b34eeafca4195a | [
"Apache-2.0"
] | null | null | null | idp/ldap_auth.py | omizrahi99/uniAuth | be33d3be10f82e955deffe7ad4b34eeafca4195a | [
"Apache-2.0"
] | null | null | null | import ldap
import logging
from django.contrib.auth import get_user_model
from django.contrib.auth.backends import ModelBackend
from django.contrib.sessions.models import Session
# from django.contrib.auth.decorators import user_passes_test
from django.core.mail import send_mail
from django.db import connections
from ... | 38.158537 | 86 | 0.573985 | 340 | 3,129 | 5.158824 | 0.391176 | 0.04561 | 0.038769 | 0.035918 | 0.052452 | 0.026226 | 0 | 0 | 0 | 0 | 0 | 0.00147 | 0.347715 | 3,129 | 81 | 87 | 38.62963 | 0.857913 | 0.256632 | 0 | 0.148936 | 0 | 0 | 0.060835 | 0 | 0 | 0 | 0 | 0.012346 | 0 | 1 | 0.021277 | false | 0.042553 | 0.234043 | 0 | 0.361702 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ef28e61e5a9e3d0ad41a974352bb60a35877471 | 2,706 | py | Python | tests/file_io/data_range_io.py | Defense-Cyber-Crime-Center/dfvfs | da2ccbc4c989ced5ad651057bd8f5a4b18af6d37 | [
"Apache-2.0"
] | 2 | 2016-02-18T12:46:26.000Z | 2022-03-13T03:05:05.000Z | tests/file_io/data_range_io.py | Defense-Cyber-Crime-Center/dfvfs | da2ccbc4c989ced5ad651057bd8f5a4b18af6d37 | [
"Apache-2.0"
] | null | null | null | tests/file_io/data_range_io.py | Defense-Cyber-Crime-Center/dfvfs | da2ccbc4c989ced5ad651057bd8f5a4b18af6d37 | [
"Apache-2.0"
] | 5 | 2016-12-18T08:05:39.000Z | 2019-11-19T21:18:00.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""Tests for the data range file-like object."""
import os
import unittest
from dfvfs.file_io import data_range_io
from dfvfs.file_io import os_file_io
from dfvfs.path import data_range_path_spec
from dfvfs.path import os_path_spec
from dfvfs.resolver import context
from test... | 31.465116 | 75 | 0.753511 | 388 | 2,706 | 4.891753 | 0.219072 | 0.16333 | 0.080084 | 0.053741 | 0.561644 | 0.528451 | 0.528451 | 0.472076 | 0.434141 | 0.389884 | 0 | 0.010846 | 0.148189 | 2,706 | 85 | 76 | 31.835294 | 0.812581 | 0.166297 | 0 | 0.490196 | 0 | 0 | 0.010393 | 0 | 0 | 0 | 0 | 0.011765 | 0.039216 | 1 | 0.117647 | false | 0 | 0.156863 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ef93f9799e3b1c19518c2fe07828834b8b93b0a | 2,115 | py | Python | DQMOffline/Muon/python/muonQualityTests_cff.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 2 | 2020-10-26T18:40:32.000Z | 2021-04-10T16:33:25.000Z | DQMOffline/Muon/python/muonQualityTests_cff.py | gartung/cmssw | 3072dde3ce94dcd1791d778988198a44cde02162 | [
"Apache-2.0"
] | 25 | 2016-06-24T20:55:32.000Z | 2022-02-01T19:24:45.000Z | DQMOffline/Muon/python/muonQualityTests_cff.py | gartung/cmssw | 3072dde3ce94dcd1791d778988198a44cde02162 | [
"Apache-2.0"
] | 8 | 2016-03-25T07:17:43.000Z | 2021-07-08T17:11:21.000Z | import FWCore.ParameterSet.Config as cms
# the clients
from DQM.TrackingMonitor.ClientTrackEfficiencySTACosmicMuons_cff import *
from DQM.TrackingMonitor.ClientTrackEfficiencyTkTracks_cff import *
from DQMOffline.Muon.trackResidualsTest_cfi import *
from DQMOffline.Muon.muonRecoTest_cfi import *
from DQMOffline.Muon.m... | 43.163265 | 79 | 0.602837 | 125 | 2,115 | 10.12 | 0.376 | 0.063241 | 0.094862 | 0.113834 | 0.356522 | 0.148617 | 0.148617 | 0.148617 | 0.148617 | 0.148617 | 0 | 0.005827 | 0.350827 | 2,115 | 48 | 80 | 44.0625 | 0.915513 | 0.005201 | 0 | 0.289474 | 0 | 0 | 0.036208 | 0.036208 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.263158 | 0 | 0.263158 | 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 |
0efc11cc855de6296dc9f43c0b2aabf20d85dc68 | 341 | py | Python | python/day02/2a.py | mkinsner/aoc2021 | b1d40114af1887e97d224e69cde9868bc6ba05ee | [
"Unlicense"
] | null | null | null | python/day02/2a.py | mkinsner/aoc2021 | b1d40114af1887e97d224e69cde9868bc6ba05ee | [
"Unlicense"
] | null | null | null | python/day02/2a.py | mkinsner/aoc2021 | b1d40114af1887e97d224e69cde9868bc6ba05ee | [
"Unlicense"
] | null | null | null | with open("input.txt") as f:
lines = f.readlines()
split_lines = [x.split() for x in lines]
horiz = map(lambda x: int(x[1]) if x[0][0] == 'f' else -int(x[1]) if x[0][0] == 'b' else 0, split_lines)
vert = map(lambda x: int(x[1]) if x[0][0] == 'd' else -int(x[1]) if x[0][0] == 'u' else 0, split_lines)
print(su... | 37.888889 | 105 | 0.571848 | 72 | 341 | 2.666667 | 0.361111 | 0.083333 | 0.104167 | 0.145833 | 0.354167 | 0.354167 | 0.354167 | 0.354167 | 0.208333 | 0.208333 | 0 | 0.05036 | 0.184751 | 341 | 8 | 106 | 42.625 | 0.640288 | 0 | 0 | 0 | 0 | 0 | 0.039039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 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 |
1600734a38d1642edcab4cc6c4084a58c6b9f8f4 | 2,446 | py | Python | protonfixes/gamefixes/243360.py | Citiroller/protonfixes | 6e0116bd1cd2172b6f0ff9905667bbc59595cdb7 | [
"BSD-2-Clause"
] | null | null | null | protonfixes/gamefixes/243360.py | Citiroller/protonfixes | 6e0116bd1cd2172b6f0ff9905667bbc59595cdb7 | [
"BSD-2-Clause"
] | null | null | null | protonfixes/gamefixes/243360.py | Citiroller/protonfixes | 6e0116bd1cd2172b6f0ff9905667bbc59595cdb7 | [
"BSD-2-Clause"
] | null | null | null | """ Game fix for TrackMania² Valley
"""
#pylint: disable=C0103
import os
import shutil
from protonfixes import util
from protonfixes.logger import log
mania_planet_games = [228760, 229870, 232910, 233050, 233070,
243360, 264660, 264850, 600720, 600730]
def main():
""" Create a ManiaPlanet ... | 41.457627 | 97 | 0.631235 | 324 | 2,446 | 4.57716 | 0.361111 | 0.052596 | 0.056642 | 0.030344 | 0.169926 | 0.07822 | 0 | 0 | 0 | 0 | 0 | 0.036687 | 0.264513 | 2,446 | 58 | 98 | 42.172414 | 0.78766 | 0.11897 | 0 | 0.069767 | 0 | 0 | 0.157029 | 0 | 0 | 0 | 0 | 0.017241 | 0 | 1 | 0.023256 | false | 0 | 0.093023 | 0 | 0.116279 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
160c15cd57fbc097ecaf64f7ddfd3bffb36d9281 | 3,993 | py | Python | AI/httpfunction.py | HinCold/13w | d6f1389db0bb4a76ece3de0aaccfce4cd8b436a4 | [
"MIT"
] | null | null | null | AI/httpfunction.py | HinCold/13w | d6f1389db0bb4a76ece3de0aaccfce4cd8b436a4 | [
"MIT"
] | null | null | null | AI/httpfunction.py | HinCold/13w | d6f1389db0bb4a76ece3de0aaccfce4cd8b436a4 | [
"MIT"
] | 3 | 2019-10-15T14:04:46.000Z | 2019-10-30T12:28:23.000Z | import requests
import json
import sys
import os
from urllib import parse
import re
import time
token = ''
gid = 0
header = {
'content-type': 'application/json',
"X-Auth-Token": token
}
def login(username, password):
global pid
url = "https://api.shisanshui.rtxux.x... | 25.928571 | 138 | 0.582019 | 448 | 3,993 | 5.160714 | 0.214286 | 0.034602 | 0.077855 | 0.099481 | 0.446799 | 0.367215 | 0.303633 | 0.133218 | 0.133218 | 0.133218 | 0 | 0.018263 | 0.273228 | 3,993 | 153 | 139 | 26.098039 | 0.778429 | 0.032557 | 0 | 0.230769 | 0 | 0 | 0.177545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.059829 | 0.059829 | 0 | 0.205128 | 0.136752 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
160d755822c3861f779b664966bca922e858918c | 8,574 | py | Python | src/preprocess/utils.py | lshtm-gis/WHO_PHSM_Cleaning | 5892673922fc555fb86d6e0be548b48c7dc66814 | [
"MIT"
] | null | null | null | src/preprocess/utils.py | lshtm-gis/WHO_PHSM_Cleaning | 5892673922fc555fb86d6e0be548b48c7dc66814 | [
"MIT"
] | 123 | 2020-10-12T11:06:27.000Z | 2021-04-28T15:32:29.000Z | src/preprocess/utils.py | lshtm-gis/WHO_PHSM_Cleaning | 5892673922fc555fb86d6e0be548b48c7dc66814 | [
"MIT"
] | null | null | null | import pickle
import shutil
import re
import hashlib
import base64
from datetime import datetime
import pandas as pd
def df_to_records(df: pd.DataFrame, dataset: str, drop_columns = []):
"""
Convert dataframe to a list of record oriented dicts.
Parameters
----------
df : pd.DataFrame
Inp... | 24.288952 | 116 | 0.618381 | 1,159 | 8,574 | 4.449525 | 0.207075 | 0.036843 | 0.015125 | 0.012216 | 0.186736 | 0.173938 | 0.11751 | 0.068645 | 0.03568 | 0.03568 | 0 | 0.005376 | 0.284115 | 8,574 | 352 | 117 | 24.357955 | 0.8348 | 0.408561 | 0 | 0.191919 | 0 | 0 | 0.070195 | 0.005536 | 0 | 0 | 0 | 0 | 0.010101 | 1 | 0.080808 | false | 0.050505 | 0.070707 | 0 | 0.161616 | 0.010101 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
160e50f485ba3a635c592015f8afc426f9564a1c | 4,273 | py | Python | axes/tests/test_logging.py | hramezani/django-axes | 9fa0e7f2158921380922b8d1081e6fdb8f5d171b | [
"MIT"
] | 2 | 2019-07-02T15:53:42.000Z | 2019-07-08T12:22:05.000Z | axes/tests/test_logging.py | urantialife/django-axes | 9fa0e7f2158921380922b8d1081e6fdb8f5d171b | [
"MIT"
] | null | null | null | axes/tests/test_logging.py | urantialife/django-axes | 9fa0e7f2158921380922b8d1081e6fdb8f5d171b | [
"MIT"
] | null | null | null | from unittest.mock import patch
from django.contrib.auth import authenticate
from django.http import HttpRequest
from django.test import override_settings
from django.urls import reverse
from axes.apps import AppConfig
from axes.models import AccessAttempt, AccessLog
from axes.tests.base import AxesTestCase
@patch(... | 35.31405 | 103 | 0.702317 | 544 | 4,273 | 5.275735 | 0.238971 | 0.026829 | 0.055749 | 0.029617 | 0.591638 | 0.505575 | 0.439373 | 0.390941 | 0.375958 | 0.375958 | 0 | 0.006727 | 0.19986 | 4,273 | 120 | 104 | 35.608333 | 0.8327 | 0.099462 | 0 | 0.337838 | 0 | 0 | 0.073955 | 0.016077 | 0 | 0 | 0 | 0 | 0.22973 | 1 | 0.148649 | false | 0.067568 | 0.108108 | 0 | 0.283784 | 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 |
1614165039b02ca486975db6bfb5c5369bb63055 | 912 | py | Python | SDN/Python_scripts/OldIterations/SW1-pract.py | CalvinDawgz/Python-Projects | cc5d1e93bcbe124c1864a49cc3dfbca7db520928 | [
"MIT"
] | 1 | 2021-07-10T09:22:55.000Z | 2021-07-10T09:22:55.000Z | SDN/Python_scripts/OldIterations/SW1-pract.py | CalvinDawgz/Python-Projects | cc5d1e93bcbe124c1864a49cc3dfbca7db520928 | [
"MIT"
] | null | null | null | SDN/Python_scripts/OldIterations/SW1-pract.py | CalvinDawgz/Python-Projects | cc5d1e93bcbe124c1864a49cc3dfbca7db520928 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import getpass
import telnetlib
user = input("Enter your remote account: ")
password = getpass.getpass()
for n in range (100, 105):
HOST = "192.168.10."+str(n)
# Timeout needed or the decode function fails
tn = telnetlib.Telnet(HOST, timeout = 1)
tn.read_until(b"Username: ")
... | 26.823529 | 75 | 0.591009 | 145 | 912 | 3.696552 | 0.462069 | 0.130597 | 0.089552 | 0.083955 | 0.175373 | 0.100746 | 0.100746 | 0.100746 | 0 | 0 | 0 | 0.023944 | 0.221491 | 912 | 33 | 76 | 27.636364 | 0.730986 | 0.349781 | 0 | 0 | 0 | 0 | 0.183533 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.294118 | 0.117647 | 0 | 0.117647 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
16151812ebfd0d6c02b068b555b7368be271f1db | 560 | py | Python | Ryven/packages/auto_generated/asynchat/nodes.py | tfroehlich82/Ryven | cb57c91d13949712844a4410a9302c4a90d28dcd | [
"MIT"
] | 2,872 | 2020-07-01T09:06:34.000Z | 2022-03-31T05:52:32.000Z | Ryven/packages/auto_generated/asynchat/nodes.py | dhf327/Ryven | a11e361528d982a9dd3c489dd536f8b05ffd56e1 | [
"MIT"
] | 59 | 2020-06-28T12:50:50.000Z | 2022-03-27T19:07:54.000Z | Ryven/packages/auto_generated/asynchat/nodes.py | dhf327/Ryven | a11e361528d982a9dd3c489dd536f8b05ffd56e1 | [
"MIT"
] | 339 | 2020-07-05T04:36:20.000Z | 2022-03-24T07:25:18.000Z |
from NENV import *
import asynchat
class NodeBase(Node):
pass
class Find_Prefix_At_End_Node(NodeBase):
"""
"""
title = 'find_prefix_at_end'
type_ = 'asynchat'
init_inputs = [
NodeInputBP(label='haystack'),
NodeInputBP(label='needle'),
]
init_outputs = [
... | 16.470588 | 89 | 0.616071 | 67 | 560 | 4.820896 | 0.567164 | 0.123839 | 0.148607 | 0.185759 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019277 | 0.258929 | 560 | 33 | 90 | 16.969697 | 0.759036 | 0 | 0 | 0 | 0 | 0 | 0.093066 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.05 | 0.1 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
161d5d041a3a2a260b65c5b7c48a3734b8711620 | 11,031 | py | Python | src/ebay_rest/api/sell_inventory/models/shipping_cost_override.py | gbm001/ebay_rest | 077d3478423ccd80ff35e0361821d6a11180bc54 | [
"MIT"
] | null | null | null | src/ebay_rest/api/sell_inventory/models/shipping_cost_override.py | gbm001/ebay_rest | 077d3478423ccd80ff35e0361821d6a11180bc54 | [
"MIT"
] | null | null | null | src/ebay_rest/api/sell_inventory/models/shipping_cost_override.py | gbm001/ebay_rest | 077d3478423ccd80ff35e0361821d6a11180bc54 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Inventory API
The Inventory API is used to create and manage inventory, and then to publish and manage this inventory on an eBay marketplace. There are also methods in this API that will convert eligible, active eBay listings into the Inventory API model. # noqa: E501
OpenAPI spec ve... | 50.369863 | 1,328 | 0.708186 | 1,342 | 11,031 | 5.709389 | 0.14158 | 0.076351 | 0.067867 | 0.058731 | 0.710389 | 0.660402 | 0.645393 | 0.570739 | 0.554294 | 0.506134 | 0 | 0.009084 | 0.23162 | 11,031 | 218 | 1,329 | 50.600917 | 0.89488 | 0.594688 | 0 | 0.071429 | 0 | 0 | 0.069755 | 0.029481 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163265 | false | 0 | 0.030612 | 0 | 0.336735 | 0.020408 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
16202bfb9676394ebae6a35a23404906df54edd6 | 3,074 | py | Python | helper-scripts/upload-results.py | devopssecure/DevSecOps-Studio | ed5a9911b438cf643051f86e552471583e816534 | [
"Apache-2.0"
] | 1 | 2020-10-29T18:20:54.000Z | 2020-10-29T18:20:54.000Z | helper-scripts/upload-results.py | devopssecure/DevSecOps-Studio | ed5a9911b438cf643051f86e552471583e816534 | [
"Apache-2.0"
] | null | null | null | helper-scripts/upload-results.py | devopssecure/DevSecOps-Studio | ed5a9911b438cf643051f86e552471583e816534 | [
"Apache-2.0"
] | 3 | 2020-04-10T10:34:30.000Z | 2020-07-12T20:55:54.000Z | import argparse
from datetime import datetime
import json
import os
import requests
def upload_results(host, user, api_key, scanner, result_file, engagement_id, verify=False): # set verify to False if ssl cert is self-signed
API_URL = "http://"+host+"/api/v1"
IMPORT_SCAN_URL = API_URL+ "/importscan/"
AUTH_TOKEN ... | 37.036145 | 145 | 0.670137 | 396 | 3,074 | 5.042929 | 0.295455 | 0.024036 | 0.068102 | 0.063095 | 0.272909 | 0.155734 | 0.155734 | 0.155734 | 0.125689 | 0.125689 | 0 | 0.014314 | 0.181848 | 3,074 | 82 | 146 | 37.487805 | 0.779722 | 0 | 0 | 0 | 0 | 0 | 0.255465 | 0 | 0.02 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.14 | null | null | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
16235a3ffb56501e7fb649ba191c7dc77c173855 | 2,503 | py | Python | User/migrations/0001_initial.py | MojoJojo6/UserService | f8d0a252b4c5e1fb93b56394b181dc228e4e0d37 | [
"MIT"
] | null | null | null | User/migrations/0001_initial.py | MojoJojo6/UserService | f8d0a252b4c5e1fb93b56394b181dc228e4e0d37 | [
"MIT"
] | 5 | 2018-02-18T16:06:45.000Z | 2018-05-08T02:27:35.000Z | User/migrations/0001_initial.py | MojoJojo6/UserService | f8d0a252b4c5e1fb93b56394b181dc228e4e0d37 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.1 on 2018-02-16 12:00
from django.db import migrations, models
import django.db.models.manager
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='FacultyCourses',
fields=[
... | 39.109375 | 103 | 0.542149 | 221 | 2,503 | 6.004525 | 0.393665 | 0.100226 | 0.054258 | 0.072344 | 0.36624 | 0.346647 | 0.301432 | 0.266767 | 0.204974 | 0.204974 | 0 | 0.017422 | 0.312026 | 2,503 | 63 | 104 | 39.730159 | 0.753194 | 0.017978 | 0 | 0.357143 | 1 | 0 | 0.129072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.017857 | 0.035714 | 0 | 0.107143 | 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 |
16235a729786e46576dab6b4051be151a9c29bea | 2,844 | py | Python | modules/retrieveNetstatAndDNS.py | codegrande/CIS-ESP | e63476f470d6861a8a5c110812be0af9827ce7da | [
"Apache-2.0"
] | 48 | 2015-03-29T21:56:21.000Z | 2022-02-08T06:53:06.000Z | modules/retrieveNetstatAndDNS.py | matse144/CIS-ESP | 0c08f8d423390fdea9091746879a0109aabd2a60 | [
"Apache-2.0"
] | null | null | null | modules/retrieveNetstatAndDNS.py | matse144/CIS-ESP | 0c08f8d423390fdea9091746879a0109aabd2a60 | [
"Apache-2.0"
] | 14 | 2015-05-18T12:09:36.000Z | 2022-02-21T15:53:20.000Z | #Copyright 2014 Center for Internet Security - Computer Emergency Response Team (CIS-CERT)
#This is part of the CIS Enumeration and Scanning Program (CIS-ESP)
#
#Licensed under the Apache License, Version 2.0 (the "License");
#you may not use this file except in compliance with the License.
#You may obtain a copy ... | 39.5 | 119 | 0.689873 | 383 | 2,844 | 5.120104 | 0.383812 | 0.024477 | 0.028557 | 0.042835 | 0.496685 | 0.496685 | 0.427333 | 0.398776 | 0.341662 | 0.341662 | 0 | 0.006435 | 0.18038 | 2,844 | 72 | 120 | 39.5 | 0.834835 | 0.270745 | 0 | 0.409091 | 0 | 0 | 0.287223 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.022727 | null | null | 0.068182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1626acfe0b2e98a90e3c7fa75f32a34b6120d03f | 332 | py | Python | tests/solver_tests.py | stantonious/pymaze | fe4bd017b7935fa512610fa1b48306a568e90786 | [
"MIT"
] | 154 | 2017-11-06T22:49:01.000Z | 2018-01-16T06:47:14.000Z | tests/solver_tests.py | stantonious/pymaze | fe4bd017b7935fa512610fa1b48306a568e90786 | [
"MIT"
] | 21 | 2017-11-07T19:30:40.000Z | 2018-01-16T15:28:11.000Z | tests/solver_tests.py | stantonious/pymaze | fe4bd017b7935fa512610fa1b48306a568e90786 | [
"MIT"
] | 31 | 2018-02-06T07:34:34.000Z | 2022-02-28T00:27:49.000Z | from __future__ import absolute_import
import unittest
from src.solver import Solver
class TestSolver(unittest.TestCase):
def test_ctor(self):
solver = Solver("", "", False)
self.assertEqual(solver.name, "")
self.assertEqual(solver.quiet_mode, False)
if __name__ == "__main__":
uni... | 19.529412 | 50 | 0.689759 | 38 | 332 | 5.631579 | 0.552632 | 0.140187 | 0.196262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198795 | 332 | 17 | 51 | 19.529412 | 0.804511 | 0 | 0 | 0 | 0 | 0 | 0.024024 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
162a56c9c51e12ad0f1f06f5e94be89ac30c64d1 | 1,286 | py | Python | LC/54.py | szhu3210/LeetCode_Solutions | 64747eb172c2ecb3c889830246f3282669516e10 | [
"MIT"
] | 2 | 2018-02-24T17:20:02.000Z | 2018-02-24T17:25:43.000Z | LC/54.py | szhu3210/LeetCode_Solutions | 64747eb172c2ecb3c889830246f3282669516e10 | [
"MIT"
] | null | null | null | LC/54.py | szhu3210/LeetCode_Solutions | 64747eb172c2ecb3c889830246f3282669516e10 | [
"MIT"
] | null | null | null | class Solution(object):
def spiralOrder(self, matrix):
"""
:type matrix: List[List[int]]
:rtype: List[int]
"""
if not matrix: return []
M = matrix[:] # duplicate matrix
m = len(M) # get m
n = len(M[0]) # get n
i, j = 0, 0 # set coordinate
... | 25.72 | 49 | 0.300156 | 163 | 1,286 | 2.368098 | 0.226994 | 0.067358 | 0.093264 | 0.062176 | 0.440415 | 0.440415 | 0.440415 | 0.440415 | 0.440415 | 0.440415 | 0 | 0.040073 | 0.573095 | 1,286 | 49 | 50 | 26.244898 | 0.663024 | 0.086314 | 0 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0 | 0 | 0.075 | 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 |
162d17c0778becfcaf8c0fcd1954ab7192c180d2 | 907 | py | Python | init.py | MuratBilginerSoft/Python-UUID-Creator | fd221fa8422a9d960067fedb6d4e9e2b42028ea6 | [
"Apache-2.0"
] | null | null | null | init.py | MuratBilginerSoft/Python-UUID-Creator | fd221fa8422a9d960067fedb6d4e9e2b42028ea6 | [
"Apache-2.0"
] | null | null | null | init.py | MuratBilginerSoft/Python-UUID-Creator | fd221fa8422a9d960067fedb6d4e9e2b42028ea6 | [
"Apache-2.0"
] | null | null | null | import uuid
# Ana bilgisayar kimliğine ve geçerli zamana göre bir UUID oluşturalım ilk olarak. Bunu uuid1 ile yapabiliriz.
id = uuid.uuid1()
print(id)
# Bir ad alanı UUID'sinin MD5 karmasını ve bir adı kullanarak bir UUID oluşturalım.
id2 = uuid.uuid3(uuid.NAMESPACE_DNS, 'python')
print(id2)
# Rastgele bir UUID ya... | 25.194444 | 110 | 0.764057 | 135 | 907 | 5.118519 | 0.518519 | 0.070912 | 0.104197 | 0.040521 | 0.185239 | 0.130246 | 0.130246 | 0.130246 | 0 | 0 | 0 | 0.060489 | 0.14333 | 907 | 36 | 111 | 25.194444 | 0.828829 | 0.600882 | 0 | 0 | 0 | 0 | 0.152113 | 0.107042 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0.466667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
163d8bdc93cd9206d6d86800ccd660e719133a98 | 2,201 | py | Python | examples/deprecated/mixedFF_structure/generate_mixedFF_complex.py | MSchauperl/openforcefield | bc787d7fa7f0ee4f5020d98a020a01262d391d64 | [
"MIT"
] | null | null | null | examples/deprecated/mixedFF_structure/generate_mixedFF_complex.py | MSchauperl/openforcefield | bc787d7fa7f0ee4f5020d98a020a01262d391d64 | [
"MIT"
] | null | null | null | examples/deprecated/mixedFF_structure/generate_mixedFF_complex.py | MSchauperl/openforcefield | bc787d7fa7f0ee4f5020d98a020a01262d391d64 | [
"MIT"
] | null | null | null | #!/bin/env python
"""
Illustrate how to combine a SMIRNOFF parameterized small molecule with an AMBER parameterized protein using ParmEd.
"""
#
# Load and parameterize the small molecule
#
# Load the small molecule
from openforcefield.utils import get_data_filename
ligand_filename = get_data_filename('molecules/tol... | 38.614035 | 139 | 0.777828 | 283 | 2,201 | 5.936396 | 0.371025 | 0.029762 | 0.028571 | 0.02619 | 0.033333 | 0.033333 | 0 | 0 | 0 | 0 | 0 | 0.004868 | 0.159927 | 2,201 | 56 | 140 | 39.303571 | 0.903732 | 0.462517 | 0 | 0 | 0 | 0 | 0.10303 | 0.058874 | 0 | 0 | 0 | 0.017857 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.15 | 0.15 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
163e6d4910193aaae52c526d06d6ea28b1ca508b | 2,896 | py | Python | src/forms/__init__.py | nghiattran/python-parse | 3874558d5579d21cfc3a87c6f0ec0c368682f086 | [
"MIT"
] | 6 | 2015-12-05T08:00:55.000Z | 2017-04-04T12:14:51.000Z | src/forms/__init__.py | nghiattran/python-parse | 3874558d5579d21cfc3a87c6f0ec0c368682f086 | [
"MIT"
] | 2 | 2015-11-29T22:39:01.000Z | 2015-11-30T04:27:43.000Z | src/forms/__init__.py | nghiattran/python-parse | 3874558d5579d21cfc3a87c6f0ec0c368682f086 | [
"MIT"
] | null | null | null | # @name <%= app_name %>
# @description
# Utility functions for all Forms.
import json
from wtforms import\
Form,\
HiddenField,\
IntegerField,\
validators,\
BooleanField,\
StringField
from werkzeug.datastructures import\
MultiDict
from werkzeug.exceptions import\
BadRequest
from wtforms.... | 26.814815 | 78 | 0.618094 | 304 | 2,896 | 5.75 | 0.384868 | 0.045767 | 0.045767 | 0.012586 | 0.062929 | 0.026316 | 0 | 0 | 0 | 0 | 0 | 0.0049 | 0.295235 | 2,896 | 107 | 79 | 27.065421 | 0.851543 | 0.105663 | 0 | 0.090909 | 0 | 0 | 0.027885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.077922 | 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 |
1644445278232693c08da93d10ee45e4661ffb15 | 1,824 | py | Python | tests/integration/cattletest/core/test_audit_log.py | lifecontrol/cattle | aea33a6ed1445276b4431544c97cea6f8a065ff9 | [
"Apache-2.0"
] | 482 | 2015-07-13T21:32:27.000Z | 2022-01-09T02:06:57.000Z | tests/integration/cattletest/core/test_audit_log.py | lifecontrol/cattle | aea33a6ed1445276b4431544c97cea6f8a065ff9 | [
"Apache-2.0"
] | 1,116 | 2015-07-09T17:52:53.000Z | 2022-01-03T18:07:24.000Z | tests/integration/cattletest/core/test_audit_log.py | lifecontrol/cattle | aea33a6ed1445276b4431544c97cea6f8a065ff9 | [
"Apache-2.0"
] | 230 | 2015-07-12T04:40:05.000Z | 2022-02-03T02:13:42.000Z | from common_fixtures import * # NOQA
from copy import deepcopy
def made_log(object, admin_user_client, context, accountId=None):
t = object.type
if t == 'stack':
t = 'stack'
logs = admin_user_client.list_audit_log(resourceId=object.id,
resourceType=t)
... | 39.652174 | 73 | 0.69682 | 238 | 1,824 | 5.071429 | 0.273109 | 0.140845 | 0.11599 | 0.1657 | 0.491301 | 0.415907 | 0.326429 | 0.26512 | 0.26512 | 0.26512 | 0 | 0.006807 | 0.194627 | 1,824 | 45 | 74 | 40.533333 | 0.81484 | 0.002193 | 0 | 0.205128 | 0 | 0 | 0.024752 | 0 | 0 | 0 | 0 | 0 | 0.179487 | 1 | 0.051282 | false | 0 | 0.051282 | 0 | 0.102564 | 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 |
16499bb223a0d7191e79af917e96a5e8212ecda4 | 593 | py | Python | class_views/urls.py | Benbb96/django-views-tutorial | a3ff549d0face0c51e5c2a43c929f4b39214e9dc | [
"MIT"
] | null | null | null | class_views/urls.py | Benbb96/django-views-tutorial | a3ff549d0face0c51e5c2a43c929f4b39214e9dc | [
"MIT"
] | null | null | null | class_views/urls.py | Benbb96/django-views-tutorial | a3ff549d0face0c51e5c2a43c929f4b39214e9dc | [
"MIT"
] | null | null | null | from django.conf import settings
from django.urls import path
from django.conf.urls.static import static
from . import views
urlpatterns = [
path('generic', views.GenericClassView.as_view(), name='generic_view'),
path('template', views.TemplateClassView.as_view(), name='template_view'),
path('list', views... | 42.357143 | 78 | 0.753794 | 75 | 593 | 5.786667 | 0.36 | 0.069124 | 0.115207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10118 | 593 | 13 | 79 | 45.615385 | 0.814259 | 0 | 0 | 0 | 0 | 0 | 0.165261 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
164b90a529053d3b0739b447edbf5edabee6b3e2 | 4,128 | py | Python | tests/components/mobile_app/test_device_tracker.py | domwillcode/home-assistant | f170c80bea70c939c098b5c88320a1c789858958 | [
"Apache-2.0"
] | 6 | 2017-08-02T19:26:39.000Z | 2020-03-14T22:47:41.000Z | tests/components/mobile_app/test_device_tracker.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 78 | 2020-07-23T07:13:08.000Z | 2022-03-31T06:02:04.000Z | tests/components/mobile_app/test_device_tracker.py | jagadeeshvenkatesh/core | 1bd982668449815fee2105478569f8e4b5670add | [
"Apache-2.0"
] | 14 | 2018-08-19T16:28:26.000Z | 2021-09-02T18:26:53.000Z | """Test mobile app device tracker."""
async def test_sending_location(hass, create_registrations, webhook_client):
"""Test sending a location via a webhook."""
resp = await webhook_client.post(
"/api/webhook/{}".format(create_registrations[1]["webhook_id"]),
json={
"type": "update_... | 35.586207 | 88 | 0.598353 | 475 | 4,128 | 4.995789 | 0.176842 | 0.166877 | 0.159292 | 0.083439 | 0.815845 | 0.611884 | 0.524652 | 0.511167 | 0.511167 | 0.467341 | 0 | 0.039522 | 0.270591 | 4,128 | 115 | 89 | 35.895652 | 0.748589 | 0.024952 | 0 | 0.444444 | 0 | 0 | 0.198168 | 0.023404 | 0 | 0 | 0 | 0 | 0.393939 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 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 |
164e88c6839714a380c863bde5116a33e05e9601 | 1,336 | py | Python | src/niweb/apps/noclook/migrations/0019_org_affiliation_fields_20191107_1015.py | SUNET/ni | f652e230524346bf0801cdf8bbb6ee63f4985cc2 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/niweb/apps/noclook/migrations/0019_org_affiliation_fields_20191107_1015.py | SUNET/ni | f652e230524346bf0801cdf8bbb6ee63f4985cc2 | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2019-07-24T12:41:11.000Z | 2020-03-31T10:10:04.000Z | src/niweb/apps/noclook/migrations/0019_org_affiliation_fields_20191107_1015.py | SUNET/ni | f652e230524346bf0801cdf8bbb6ee63f4985cc2 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-02-25T14:58:20.000Z | 2019-02-25T14:58:20.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.25 on 2019-11-07 10:15
from __future__ import unicode_literals
from django.db import migrations
import norduniclient as nc
def forwards_func(apps, schema_editor):
NodeType = apps.get_model('noclook', 'NodeType')
NodeHandle = apps.get_model('noclook', 'NodeHa... | 29.043478 | 114 | 0.687874 | 151 | 1,336 | 5.81457 | 0.562914 | 0.027335 | 0.031891 | 0.045558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03327 | 0.212575 | 1,336 | 45 | 115 | 29.688889 | 0.801331 | 0.086078 | 0 | 0 | 1 | 0 | 0.177632 | 0.077303 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0.032258 | 0.096774 | 0 | 0.258065 | 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 |
16534c736327e34f8c51da8bb7ecc8756d628da9 | 1,356 | py | Python | client/interface/game_to_server/game_server.py | joaorura/HangmanGameOnline-HGC | 9d32ba7bd5f95cd1d899afe3eb0f327faff36596 | [
"MIT"
] | null | null | null | client/interface/game_to_server/game_server.py | joaorura/HangmanGameOnline-HGC | 9d32ba7bd5f95cd1d899afe3eb0f327faff36596 | [
"MIT"
] | null | null | null | client/interface/game_to_server/game_server.py | joaorura/HangmanGameOnline-HGC | 9d32ba7bd5f95cd1d899afe3eb0f327faff36596 | [
"MIT"
] | null | null | null | from utils.utils import mount_message
class GameServer:
def __init__(self, queue_send, queue_receive):
self.queue_send = queue_send
self.queue_receive = queue_receive
def _return_function(self, send):
def f():
self.queue_send.put(send)
return f
def create_roo... | 26.588235 | 93 | 0.581121 | 169 | 1,356 | 4.431953 | 0.242604 | 0.096128 | 0.121495 | 0.085447 | 0.510013 | 0.320427 | 0.320427 | 0.320427 | 0.320427 | 0.320427 | 0 | 0 | 0.320059 | 1,356 | 50 | 94 | 27.12 | 0.812364 | 0 | 0 | 0.27027 | 0 | 0 | 0.147493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.189189 | false | 0.108108 | 0.027027 | 0 | 0.459459 | 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 |
16566c246b70b10f757b4bf76268f11bb507c4fe | 9,391 | py | Python | azure_arm_inventory.py | dohoangkhiem/ansible-modules | 622ad86a96a90df9134d4a535ae97c2de7b5f32b | [
"Apache-2.0"
] | 2 | 2016-04-09T13:29:23.000Z | 2019-04-30T09:34:17.000Z | azure_arm_inventory.py | dohoangkhiem/ansible-modules | 622ad86a96a90df9134d4a535ae97c2de7b5f32b | [
"Apache-2.0"
] | null | null | null | azure_arm_inventory.py | dohoangkhiem/ansible-modules | 622ad86a96a90df9134d4a535ae97c2de7b5f32b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
__author__ = 'khiem'
import sys
import ConfigParser
import os
import requests
import json
try:
import azure as windows_azure
from azure.common import AzureException as AzureException
from azure.common import AzureMissingResourceHttpError as AzureMissingException
from azure.com... | 38.646091 | 120 | 0.62496 | 1,064 | 9,391 | 5.241541 | 0.198308 | 0.022951 | 0.040882 | 0.017931 | 0.251748 | 0.108661 | 0.082482 | 0.065089 | 0.065089 | 0.046082 | 0 | 0.004056 | 0.29113 | 9,391 | 243 | 121 | 38.646091 | 0.833709 | 0.017677 | 0 | 0.128492 | 0 | 0 | 0.124147 | 0.020471 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.011173 | 0.111732 | null | null | 0.01676 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1656bded6f536cc2fd7001c6484cef8fe15441f5 | 5,069 | py | Python | private/scripts/stopstalk_rating_history.py | xandfury/stopstalk-deployment | 0f2b2619807f4ec43280c58922a717c33c22f1bf | [
"MIT"
] | null | null | null | private/scripts/stopstalk_rating_history.py | xandfury/stopstalk-deployment | 0f2b2619807f4ec43280c58922a717c33c22f1bf | [
"MIT"
] | null | null | null | private/scripts/stopstalk_rating_history.py | xandfury/stopstalk-deployment | 0f2b2619807f4ec43280c58922a717c33c22f1bf | [
"MIT"
] | null | null | null | """
Copyright (c) 2015-2018 Raj Patel(raj454raj@gmail.com), StopStalk
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
... | 39.913386 | 142 | 0.674689 | 675 | 5,069 | 4.826667 | 0.308148 | 0.055249 | 0.021486 | 0.032228 | 0.304481 | 0.287293 | 0.189073 | 0.16636 | 0.11418 | 0.082259 | 0 | 0.00962 | 0.24127 | 5,069 | 126 | 143 | 40.230159 | 0.837494 | 0.004537 | 0 | 0.207317 | 0 | 0 | 0.115516 | 0.006845 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.036585 | null | null | 0.036585 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
165945f5e1b9ee2c59815e28bf123e08727b425e | 1,585 | py | Python | mii_sorter/factories.py | MiiRaGe/miilibrary | f613c6654f21db62668a6a9d68e6678fdd2a1d03 | [
"MIT"
] | null | null | null | mii_sorter/factories.py | MiiRaGe/miilibrary | f613c6654f21db62668a6a9d68e6678fdd2a1d03 | [
"MIT"
] | 1 | 2018-01-26T15:52:51.000Z | 2018-01-26T15:52:51.000Z | mii_sorter/factories.py | MiiRaGe/miilibrary | f613c6654f21db62668a6a9d68e6678fdd2a1d03 | [
"MIT"
] | null | null | null | import os
from django.conf import settings
from factory import DjangoModelFactory, Sequence, SubFactory
from factory.fuzzy import FuzzyInteger, FuzzyChoice
from mii_sorter.models import Episode, Season, Serie, Movie, RegexRenaming
class SerieFactory(DjangoModelFactory):
class Meta:
model = Serie
... | 26.416667 | 99 | 0.683281 | 180 | 1,585 | 5.894444 | 0.394444 | 0.108388 | 0.127238 | 0.150801 | 0.235627 | 0.235627 | 0.175306 | 0.175306 | 0.175306 | 0.175306 | 0 | 0.028617 | 0.206309 | 1,585 | 59 | 100 | 26.864407 | 0.814785 | 0 | 0 | 0.170732 | 0 | 0 | 0.059306 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.121951 | 0 | 0.780488 | 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 |
16595a8678e1d5eb3856272a28dc95e1339d49cf | 689 | py | Python | py/examples/message_bar.py | angelosaleh/wave | 06f5601e13c23e021429dbdb9f6140ddfed27644 | [
"Apache-2.0"
] | 1 | 2021-02-02T05:51:35.000Z | 2021-02-02T05:51:35.000Z | py/examples/message_bar.py | davgit/wave | 432599225078ff7c14e5862bc1b1a814e978358c | [
"Apache-2.0"
] | null | null | null | py/examples/message_bar.py | davgit/wave | 432599225078ff7c14e5862bc1b1a814e978358c | [
"Apache-2.0"
] | 1 | 2021-02-01T05:07:56.000Z | 2021-02-01T05:07:56.000Z | # Form / Message Bar
# Use message bars to indicate relevant status information.
# #form #message_bar
# ---
from h2o_wave import site, ui
page = site['/demo']
page['example'] = ui.form_card(
box='1 1 4 -1',
items=[
ui.message_bar(type='blocked', text='This action is blocked.'),
ui.message_bar(... | 32.809524 | 76 | 0.647315 | 101 | 689 | 4.326733 | 0.376238 | 0.183066 | 0.16476 | 0.21968 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009025 | 0.195936 | 689 | 20 | 77 | 34.45 | 0.779783 | 0.140784 | 0 | 0 | 0 | 0 | 0.362393 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 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 |
1666fa16f2d7ef799b0fcbc7656a601bc8c3db17 | 1,776 | py | Python | processing_pypeline/example_read_in.py | BadenLab/2Panalysis | 8b23b3eaa1700f4fb5729eb7e89bfd55e7b4811a | [
"MIT"
] | null | null | null | processing_pypeline/example_read_in.py | BadenLab/2Panalysis | 8b23b3eaa1700f4fb5729eb7e89bfd55e7b4811a | [
"MIT"
] | null | null | null | processing_pypeline/example_read_in.py | BadenLab/2Panalysis | 8b23b3eaa1700f4fb5729eb7e89bfd55e7b4811a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Jan 23 09:08:02 2017
@author: andre
"""
#the next two lines are used so that Ipython automatically reloads updated libraries
%load_ext autoreload
%autoreload 2
#import necessary libraries
import numpy as np
import os
import matplotlib.pyplot as plt
os.chdir("E:\\github... | 32.290909 | 132 | 0.766329 | 236 | 1,776 | 5.686441 | 0.567797 | 0.053651 | 0.025335 | 0.037258 | 0.125186 | 0.125186 | 0.125186 | 0.125186 | 0.125186 | 0.125186 | 0 | 0.021711 | 0.118243 | 1,776 | 54 | 133 | 32.888889 | 0.835249 | 0.361486 | 0 | 0 | 0 | 0 | 0.137441 | 0.055924 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | 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 |
166d79395a4a8c782f71a5af3fb182a1d6709471 | 1,534 | py | Python | current_measurement_app/scripts/convert/storage/adapter/timer/timer.py | nico358/PAC1720-current-measurement-app | 2540e367439310453d0b7a82004724d136ea5981 | [
"MIT"
] | null | null | null | current_measurement_app/scripts/convert/storage/adapter/timer/timer.py | nico358/PAC1720-current-measurement-app | 2540e367439310453d0b7a82004724d136ea5981 | [
"MIT"
] | null | null | null | current_measurement_app/scripts/convert/storage/adapter/timer/timer.py | nico358/PAC1720-current-measurement-app | 2540e367439310453d0b7a82004724d136ea5981 | [
"MIT"
] | null | null | null | """The timer module provides a timer and a delay functionality."""
import os
import time
class Timer:
""" The Timer class object stores the initial time
when instantiated and returns the elapsed
time by a call of the relevant method.
"""
# Initial time
initial_time = None
def __i... | 28.407407 | 67 | 0.607562 | 191 | 1,534 | 4.743456 | 0.361257 | 0.121413 | 0.06181 | 0.023179 | 0.222958 | 0.169978 | 0.110375 | 0.110375 | 0.110375 | 0.110375 | 0 | 0.012037 | 0.295958 | 1,534 | 53 | 68 | 28.943396 | 0.826852 | 0.364407 | 0 | 0.083333 | 0 | 0 | 0.131361 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.083333 | 0 | 0.458333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
16763e253224d81e4bed63c1272b253e6050923f | 579 | py | Python | app.py | valeria134/projetos | 62e61db4ce1bb333a5b2aa30457217c64e96fb7c | [
"Apache-2.0"
] | null | null | null | app.py | valeria134/projetos | 62e61db4ce1bb333a5b2aa30457217c64e96fb7c | [
"Apache-2.0"
] | null | null | null | app.py | valeria134/projetos | 62e61db4ce1bb333a5b2aa30457217c64e96fb7c | [
"Apache-2.0"
] | null | null | null | from flask import Flask, render_template
from formulario import CadastroForm
app = Flask (__name__)
app.config['SECRET_KEY'] = 'dkshvfdikhgolfhvljh'
@app.route('/')
def home():
return render_template('home.html')
@app.route('/cadastro', methods=["GET", "POST"])
def Cadastro():
formulario=Cadastr... | 23.16 | 49 | 0.644214 | 63 | 579 | 5.650794 | 0.47619 | 0.157303 | 0.168539 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008753 | 0.210708 | 579 | 25 | 50 | 23.16 | 0.770241 | 0 | 0 | 0 | 0 | 0 | 0.165468 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.105263 | 0.105263 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
16798526f310470936771f7059371af4419f4961 | 283 | py | Python | codalab/scripts/compute.py | AIMultimediaLab/AI4Media-EaaS-prototype-Py2-public | 64cd6ac9a56a4e2d40d93608d4289b1a0e50cce7 | [
"Apache-2.0"
] | 333 | 2015-12-29T22:49:40.000Z | 2022-03-27T12:01:57.000Z | codalab/scripts/compute.py | AIMultimediaLab/AI4Media-EaaS-prototype-Py2-public | 64cd6ac9a56a4e2d40d93608d4289b1a0e50cce7 | [
"Apache-2.0"
] | 1,572 | 2015-12-28T21:54:00.000Z | 2022-03-31T13:00:32.000Z | codalab/scripts/compute.py | AIMultimediaLab/AI4Media-EaaS-prototype-Py2-public | 64cd6ac9a56a4e2d40d93608d4289b1a0e50cce7 | [
"Apache-2.0"
] | 107 | 2016-01-08T03:46:07.000Z | 2022-03-16T08:43:57.000Z | #!/usr/bin/env python
#
#
import web
urls = ('/api/computation/(.+)', 'computation')
class computation:
def GET(self, id):
print "ID: %s" % id
if __name__ == "__main__":
app = web.application(urls, globals())
app.internalerror = web.debugerror
app.run()
| 15.722222 | 47 | 0.607774 | 34 | 283 | 4.823529 | 0.735294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215548 | 283 | 17 | 48 | 16.647059 | 0.738739 | 0.070671 | 0 | 0 | 0 | 0 | 0.176923 | 0.080769 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
167adddb6f43081a279a633edea3c9df7e4a5d04 | 1,752 | py | Python | chainlink_tools/api.py | dursk/chainlink-tools | 76b601e2db314045b727044bee8efa921663e795 | [
"MIT"
] | null | null | null | chainlink_tools/api.py | dursk/chainlink-tools | 76b601e2db314045b727044bee8efa921663e795 | [
"MIT"
] | null | null | null | chainlink_tools/api.py | dursk/chainlink-tools | 76b601e2db314045b727044bee8efa921663e795 | [
"MIT"
] | null | null | null | import requests
def process_response(response):
try:
response.raise_for_status()
except requests.exceptions.HTTPError as http_error:
raise requests.exceptions.HTTPError(
f"Error encountered:\n{http_error}\n{response.text}"
)
try:
return response.json()
exce... | 28.258065 | 87 | 0.631279 | 204 | 1,752 | 5.245098 | 0.279412 | 0.06729 | 0.074766 | 0.064486 | 0.257944 | 0.257944 | 0.257944 | 0.166355 | 0.166355 | 0.166355 | 0 | 0.001513 | 0.245434 | 1,752 | 61 | 88 | 28.721311 | 0.807867 | 0 | 0 | 0.232558 | 0 | 0 | 0.127283 | 0.039384 | 0 | 0 | 0 | 0 | 0 | 1 | 0.186047 | false | 0.093023 | 0.023256 | 0.069767 | 0.395349 | 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 |
167c5b82e6b5fcce918a617ad9a8fca7cfed1d65 | 7,180 | py | Python | cmd/ssd/ssd.py | ddebroy/libnetwork | 2bf63300c52f5ea61989f85c732f00097d746530 | [
"Apache-2.0"
] | 6 | 2018-06-08T12:06:43.000Z | 2022-01-14T01:08:16.000Z | cmd/ssd/ssd.py | ddebroy/libnetwork | 2bf63300c52f5ea61989f85c732f00097d746530 | [
"Apache-2.0"
] | 3 | 2018-06-05T02:54:58.000Z | 2018-11-07T10:11:44.000Z | cmd/ssd/ssd.py | ddebroy/libnetwork | 2bf63300c52f5ea61989f85c732f00097d746530 | [
"Apache-2.0"
] | 5 | 2018-06-04T06:27:12.000Z | 2021-08-13T06:46:40.000Z | #!/usr/bin/python
import sys, signal, time, os
import docker
import re
import subprocess
import json
import hashlib
ipv4match = re.compile(
r'(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9]).' +
r'(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9]).' +
r'(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9]).' +
r'(25[0-5]|2[0-4][0-9]|[01]... | 37.010309 | 222 | 0.549164 | 889 | 7,180 | 4.394826 | 0.265467 | 0.006655 | 0.015357 | 0.005119 | 0.139749 | 0.084464 | 0.054262 | 0.041464 | 0.041464 | 0.016381 | 0 | 0.019269 | 0.306128 | 7,180 | 193 | 223 | 37.202073 | 0.764954 | 0.041086 | 0 | 0.135802 | 0 | 0.04321 | 0.204826 | 0.037069 | 0 | 0 | 0 | 0.005181 | 0 | 0 | null | null | 0 | 0.037037 | null | null | 0.098765 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
167c69fefb6a78e6495e3cf7225c45a336a21bb6 | 1,505 | py | Python | soundlocalization.py | Attuck/nao_tuner | 1dc30df4fa18071f8a0c054248aa33d5bdaf4435 | [
"Apache-2.0"
] | null | null | null | soundlocalization.py | Attuck/nao_tuner | 1dc30df4fa18071f8a0c054248aa33d5bdaf4435 | [
"Apache-2.0"
] | null | null | null | soundlocalization.py | Attuck/nao_tuner | 1dc30df4fa18071f8a0c054248aa33d5bdaf4435 | [
"Apache-2.0"
] | null | null | null |
import time
import naoqi
class SoundLocalizationModule(naoqi.ALModule):
"""A module to use sound localization"""
def __init__(self, strModuleName, strNaoIp, strNaoPort):
naoqi.ALModule.__init__(self, strModuleName )
self.BIND_PYTHON( self.getName(),"callback" )
self.strNaoIp = strNao... | 30.1 | 105 | 0.645847 | 155 | 1,505 | 6.2 | 0.43871 | 0.057232 | 0.043704 | 0.049948 | 0.068678 | 0.068678 | 0 | 0 | 0 | 0 | 0 | 0.005231 | 0.237874 | 1,505 | 49 | 106 | 30.714286 | 0.832607 | 0.057143 | 0 | 0.172414 | 0 | 0 | 0.182022 | 0.04794 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068966 | null | null | 0.137931 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1694219f18ee2c73e69dcb7f924b233184de686e | 1,036 | py | Python | main.py | Athielme/ENGR162_Project3 | 571a813d1681b049e93019f612c562b0e7bc1d6e | [
"MIT"
] | null | null | null | main.py | Athielme/ENGR162_Project3 | 571a813d1681b049e93019f612c562b0e7bc1d6e | [
"MIT"
] | null | null | null | main.py | Athielme/ENGR162_Project3 | 571a813d1681b049e93019f612c562b0e7bc1d6e | [
"MIT"
] | null | null | null | # Activity Project 3.
# File: main.py
# Date: 27 April 2018
# By: Aaron Thielmeyer
# athielme
# Kat Li
# li2701
# Eveyln Shi
# shi360
# Zubin Kane
# kane44
# Section: 1
# Team: 13
#
# ELECTRONIC SIGNATURE
# Aaron Thielmeyer
# Kat Li
# Evelyn Shi
# Zubin Kane
#
# The electronic signatures above indicate that the program... | 23.545455 | 67 | 0.75 | 152 | 1,036 | 5.085526 | 0.644737 | 0.025873 | 0.031048 | 0.03881 | 0.049159 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024706 | 0.179537 | 1,036 | 43 | 68 | 24.093023 | 0.884706 | 0.707529 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.222222 | 0 | 0.222222 | 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 |
169db2cea09a1e9da6ed4a1fa02f351e1d5ab5a3 | 431 | py | Python | discoveryrule/urls.py | salran40/POAP | 9ff2ab68b55aeffe104d127c4beb8b1372b2c8de | [
"Apache-2.0"
] | null | null | null | discoveryrule/urls.py | salran40/POAP | 9ff2ab68b55aeffe104d127c4beb8b1372b2c8de | [
"Apache-2.0"
] | null | null | null | discoveryrule/urls.py | salran40/POAP | 9ff2ab68b55aeffe104d127c4beb8b1372b2c8de | [
"Apache-2.0"
] | null | null | null | __author__ = "arunrajms"
from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.views.decorators.csrf import csrf_exempt
from views import DiscoveryRuleList
from views import DiscoveryRuleDetailList
urlpatterns = patterns('',
url(r'^$',DiscoveryRuleList.as_v... | 28.733333 | 80 | 0.737819 | 52 | 431 | 5.942308 | 0.538462 | 0.097087 | 0.097087 | 0.090615 | 0.122977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134571 | 431 | 14 | 81 | 30.785714 | 0.828418 | 0 | 0 | 0 | 0 | 0 | 0.107914 | 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 |
16a130d8fd8ce9531d0fd3583e14c03fbcc3569e | 481 | py | Python | py_solutions_21-30/Euler_30.py | tijko/Project-Euler | d953a2bf6932c2c4e1235409fedf760add65a0ba | [
"MIT"
] | null | null | null | py_solutions_21-30/Euler_30.py | tijko/Project-Euler | d953a2bf6932c2c4e1235409fedf760add65a0ba | [
"MIT"
] | 1 | 2022-03-15T02:49:09.000Z | 2022-03-15T02:49:09.000Z | py_solutions_21-30/Euler_30.py | tijko/Project-Euler | d953a2bf6932c2c4e1235409fedf760add65a0ba | [
"MIT"
] | null | null | null | # Sum of numbers that can be written as the sum of their fifth power.
from __future__ import print_function
import timeit
try:
range = xrange
except NameError:
pass
start = timeit.default_timer()
def euler_30():
fifth_pow = lambda x: x**5
return sum([i for i in range(2, 1000000) if
... | 21.863636 | 70 | 0.661123 | 76 | 481 | 4.039474 | 0.671053 | 0.032573 | 0.117264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041885 | 0.205821 | 481 | 21 | 71 | 22.904762 | 0.76178 | 0.139293 | 0 | 0 | 0 | 0 | 0.058394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.071429 | 0.142857 | 0 | 0.285714 | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
16a831970c6288fab929d71854a7c174af52738a | 1,687 | py | Python | plugins/crayon-syntax-highlighter/util/scraper/keyword_scraper.py | LER0ever/Ever-WPC | 926dd1ba2088868ba306564d83e70c74c8b6daa6 | [
"MIT"
] | 2 | 2015-03-25T05:43:33.000Z | 2016-11-02T08:45:28.000Z | public/wp-content/plugins/crayon-syntax-highlighter/util/scraper/keyword_scraper.py | shampine/patrickshampine.com | eb328b617bc5f318f23d63c68a98b7b482fa2a27 | [
"MIT"
] | null | null | null | public/wp-content/plugins/crayon-syntax-highlighter/util/scraper/keyword_scraper.py | shampine/patrickshampine.com | eb328b617bc5f318f23d63c68a98b7b482fa2a27 | [
"MIT"
] | 1 | 2021-08-28T08:04:55.000Z | 2021-08-28T08:04:55.000Z | import re
import os
def cmp_keywords(x,y):
'''
Sorts keywords by length, and then alphabetically
'''
if len(x) < len(y):
return 1
elif len(x) == len(y):
# Sort alphabetically
if x == y:
return 0
elif x < y:
return -1
else:
return 1
else:
return -1
def keywords(infile, outdir):
'''
Scrapes... | 22.797297 | 139 | 0.58032 | 271 | 1,687 | 3.597786 | 0.361624 | 0.020513 | 0.030769 | 0.018462 | 0.08 | 0.050256 | 0.050256 | 0 | 0 | 0 | 0 | 0.009091 | 0.217546 | 1,687 | 73 | 140 | 23.109589 | 0.729545 | 0.011263 | 0 | 0.196078 | 0 | 0 | 0.059126 | 0.021422 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.039216 | null | null | 0.039216 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
16ace7ed281b8b2c56cdad4400590cffe08ca6fe | 1,295 | py | Python | export_model.py | yeyupiaoling/VoiceprintRecognition-PaddlePaddle | a2212ffca7171f9dae2355f44a51ee1a6edd738b | [
"Apache-2.0"
] | 59 | 2020-07-17T01:40:19.000Z | 2022-03-31T11:40:27.000Z | export_model.py | yeyupiaoling/VoiceprintRecognition-PaddlePaddle | a2212ffca7171f9dae2355f44a51ee1a6edd738b | [
"Apache-2.0"
] | 3 | 2021-04-20T02:18:52.000Z | 2022-03-24T01:04:39.000Z | export_model.py | yeyupiaoling/VoiceprintRecognition-PaddlePaddle | a2212ffca7171f9dae2355f44a51ee1a6edd738b | [
"Apache-2.0"
] | 16 | 2020-10-05T18:56:07.000Z | 2022-03-22T07:52:53.000Z | import argparse
import functools
import os
from datetime import datetime
import paddle
from paddle.static import InputSpec
from utils.se_resnet_vd import SE_ResNet_vd
from utils.utility import add_arguments, print_arguments
parser = argparse.ArgumentParser(description=__doc__)
add_arg = functools.partial(add_argumen... | 37 | 133 | 0.711969 | 183 | 1,295 | 4.836066 | 0.377049 | 0.090395 | 0.056497 | 0.079096 | 0.137853 | 0.137853 | 0.137853 | 0.074576 | 0 | 0 | 0 | 0.013514 | 0.142857 | 1,295 | 34 | 134 | 38.088235 | 0.783784 | 0.004633 | 0 | 0 | 0 | 0 | 0.132867 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
16b497620079e7c1e7e5a610428ae58157b0022c | 504 | py | Python | isi_mip/climatemodels/migrations/0075_sector_has_sector_specific_values.py | ISI-MIP/isimip | c2a78c727337e38f3695031e00afd607da7d6dcb | [
"MIT"
] | 4 | 2017-07-05T08:06:18.000Z | 2021-03-01T17:23:18.000Z | isi_mip/climatemodels/migrations/0075_sector_has_sector_specific_values.py | ISI-MIP/isimip | c2a78c727337e38f3695031e00afd607da7d6dcb | [
"MIT"
] | 4 | 2020-01-31T09:02:57.000Z | 2021-04-20T14:04:35.000Z | isi_mip/climatemodels/migrations/0075_sector_has_sector_specific_values.py | ISI-MIP/isimip | c2a78c727337e38f3695031e00afd607da7d6dcb | [
"MIT"
] | 4 | 2017-10-12T01:48:55.000Z | 2020-04-29T13:50:03.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-01-24 15:14
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('climatemodels', '0074_remove_inputdatainformation_climate_data_sets'),
]
operations... | 24 | 80 | 0.656746 | 54 | 504 | 5.87037 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054688 | 0.238095 | 504 | 20 | 81 | 25.2 | 0.770833 | 0.134921 | 0 | 0 | 1 | 0 | 0.2194 | 0.17552 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
16b5c976e4e7f3d5dd01920b82778483d02b4d7c | 852 | py | Python | var/spack/repos/builtin/packages/libpipeline/package.py | jeanbez/spack | f4e51ce8f366c85bf5aa0eafe078677b42dae1ba | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | var/spack/repos/builtin/packages/libpipeline/package.py | jeanbez/spack | f4e51ce8f366c85bf5aa0eafe078677b42dae1ba | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 8 | 2021-11-09T20:28:40.000Z | 2022-03-15T03:26:33.000Z | var/spack/repos/builtin/packages/libpipeline/package.py | jeanbez/spack | f4e51ce8f366c85bf5aa0eafe078677b42dae1ba | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 2 | 2019-02-08T20:37:20.000Z | 2019-03-31T15:19:26.000Z | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class Libpipeline(AutotoolsPackage):
"""libpipeline is a C library for manipulating pipe... | 38.727273 | 95 | 0.757042 | 99 | 852 | 6.494949 | 0.757576 | 0.027994 | 0.009331 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145161 | 0.126761 | 852 | 21 | 96 | 40.571429 | 0.719086 | 0.343897 | 0 | 0 | 0 | 0.111111 | 0.571429 | 0.234432 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
16bacf168317f3aecda85f09da648809d3a9f6f8 | 399 | py | Python | retsinfo_scraper/items.py | IIMunchII/retsinformation | 8576f11e7fa0e7fd87032d9cf86e60c4288a637e | [
"Apache-2.0"
] | 1 | 2022-02-21T09:42:51.000Z | 2022-02-21T09:42:51.000Z | retsinfo_scraper/items.py | IIMunchII/retsinformation | 8576f11e7fa0e7fd87032d9cf86e60c4288a637e | [
"Apache-2.0"
] | null | null | null | retsinfo_scraper/items.py | IIMunchII/retsinformation | 8576f11e7fa0e7fd87032d9cf86e60c4288a637e | [
"Apache-2.0"
] | null | null | null | # Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
from scrapy_djangoitem import DjangoItem
from scrapers.models import RetsinfoDocument, RetsinfoRequestLog
class RetsinfoItem(DjangoItem):
django_model = RetsinfoDocument
c... | 28.5 | 64 | 0.819549 | 45 | 399 | 7.2 | 0.666667 | 0.098765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117794 | 399 | 14 | 65 | 28.5 | 0.920455 | 0.298246 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
16bca6819557ffc8ab490a194b0d529ddde45d54 | 292 | py | Python | zeros_to_back.py | GYosifov88/Python-Fundamentals | b46ba2822bd2dac6ff46830c6a520e559b448442 | [
"MIT"
] | null | null | null | zeros_to_back.py | GYosifov88/Python-Fundamentals | b46ba2822bd2dac6ff46830c6a520e559b448442 | [
"MIT"
] | null | null | null | zeros_to_back.py | GYosifov88/Python-Fundamentals | b46ba2822bd2dac6ff46830c6a520e559b448442 | [
"MIT"
] | null | null | null | numbers_list = input().split(', ')
new_list = []
for digit in numbers_list:
digits = digit.split(', ')
current_digit = int(digits[0])
if current_digit == 0:
numbers_list.remove('0')
numbers_list.append('0')
new_list = list(map(int, numbers_list))
print(new_list)
| 24.333333 | 39 | 0.643836 | 41 | 292 | 4.341463 | 0.414634 | 0.308989 | 0.134831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017094 | 0.19863 | 292 | 11 | 40 | 26.545455 | 0.74359 | 0 | 0 | 0 | 0 | 0 | 0.020548 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1 | 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 |
16c0feb7007d23879168573c641c2bd312e120e5 | 9,218 | py | Python | python/src/chirpstack_api/common/common_pb2.py | sophiekovalevsky/chirpstack-api | c9f3cb3e2a006d42286f046ba7cfcfa716512da3 | [
"MIT"
] | null | null | null | python/src/chirpstack_api/common/common_pb2.py | sophiekovalevsky/chirpstack-api | c9f3cb3e2a006d42286f046ba7cfcfa716512da3 | [
"MIT"
] | null | null | null | python/src/chirpstack_api/common/common_pb2.py | sophiekovalevsky/chirpstack-api | c9f3cb3e2a006d42286f046ba7cfcfa716512da3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: chirpstack-api/common/common.proto
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflec... | 33.642336 | 984 | 0.730527 | 1,171 | 9,218 | 5.5269 | 0.173356 | 0.051916 | 0.090853 | 0.061805 | 0.545735 | 0.4983 | 0.4983 | 0.485939 | 0.383653 | 0.375155 | 0 | 0.061797 | 0.141571 | 9,218 | 273 | 985 | 33.765568 | 0.756098 | 0.033087 | 0 | 0.552846 | 1 | 0.004065 | 0.190904 | 0.145761 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.020325 | 0 | 0.020325 | 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 |
16c5e10b52ce2207e2e184cefc83526f178fe2b0 | 2,661 | py | Python | Sec_8_funcoes/c_funcoes_com_parametro.py | PauloAlexSilva/Python | 690913cdcfd8bde52d9ddd15e3c838e6aef27730 | [
"MIT"
] | null | null | null | Sec_8_funcoes/c_funcoes_com_parametro.py | PauloAlexSilva/Python | 690913cdcfd8bde52d9ddd15e3c838e6aef27730 | [
"MIT"
] | null | null | null | Sec_8_funcoes/c_funcoes_com_parametro.py | PauloAlexSilva/Python | 690913cdcfd8bde52d9ddd15e3c838e6aef27730 | [
"MIT"
] | null | null | null | """
Funções com Parametro (de entrada)
- Funções que recebem dados para serem processados dentro da mesma;
Num programa qualquer geralmente temos:
- Entrada -> Processamento -> Saída
Se for uma função, sabemos que:
- Não possuem entrada;
- Não possuem saída;
- Possuem entrada mas não possuem saída;
... | 20.469231 | 85 | 0.699737 | 364 | 2,661 | 5.063187 | 0.423077 | 0.045578 | 0.04612 | 0.028215 | 0.05643 | 0.024959 | 0.024959 | 0.024959 | 0.024959 | 0.024959 | 0 | 0.021445 | 0.193912 | 2,661 | 129 | 86 | 20.627907 | 0.837762 | 0.881248 | 0 | 0 | 0 | 0 | 0.026316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.181818 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
16caa4f293dded8c6c47b42517798378d20cb75c | 806 | py | Python | onnx_model_maker/ops/op_ver_3.py | BernardJiang/onnx-pytorch | d5181b1267f16d540881caec4bdce1103d0630d6 | [
"Apache-2.0"
] | 66 | 2021-05-05T08:03:22.000Z | 2022-03-10T07:03:02.000Z | onnx_model_maker/ops/op_ver_3.py | BernardJiang/onnx-pytorch | d5181b1267f16d540881caec4bdce1103d0630d6 | [
"Apache-2.0"
] | 21 | 2021-05-06T02:56:42.000Z | 2021-11-25T03:52:14.000Z | onnx_model_maker/ops/op_ver_3.py | BernardJiang/onnx-pytorch | d5181b1267f16d540881caec4bdce1103d0630d6 | [
"Apache-2.0"
] | 18 | 2021-05-05T11:54:09.000Z | 2022-03-25T17:42:32.000Z | # Autogenerated by onnx-model-maker. Don't modify it manually.
import onnx
import onnx.helper
import onnx.numpy_helper
from onnx_model_maker import omm
from onnx_model_maker import onnx_mm_export
from onnx_model_maker.ops.op_helper import _add_input
@onnx_mm_export("v3.GRU")
def GRU(X, W, R, B=None, sequence_lens=No... | 31 | 81 | 0.648883 | 126 | 806 | 3.857143 | 0.412698 | 0.074074 | 0.115226 | 0.111111 | 0.135802 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003221 | 0.229529 | 806 | 25 | 82 | 32.24 | 0.779388 | 0.074442 | 0 | 0 | 1 | 0 | 0.072581 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.3 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
16cfd00ecc7947caeeb8d4df208bd546c3d6eb46 | 8,644 | py | Python | sdk/python/pulumi_aws/s3/get_bucket_object.py | lemonade-hq/pulumi-aws | 9ee22c65c7bad42d38b16879ccd56526d856a01a | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/s3/get_bucket_object.py | lemonade-hq/pulumi-aws | 9ee22c65c7bad42d38b16879ccd56526d856a01a | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/s3/get_bucket_object.py | lemonade-hq/pulumi-aws | 9ee22c65c7bad42d38b16879ccd56526d856a01a | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-03-08T15:05:29.000Z | 2021-03-08T15:05:29.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import json
import warnings
import pulumi
import pulumi.runtime
from .. import utilities, tables
class GetBucketObjectResult:
"""
... | 51.760479 | 386 | 0.679199 | 1,097 | 8,644 | 5.068368 | 0.230629 | 0.020504 | 0.054676 | 0.102518 | 0.18759 | 0.091187 | 0.013309 | 0.013309 | 0 | 0 | 0 | 0.003953 | 0.239125 | 8,644 | 166 | 387 | 52.072289 | 0.841417 | 0.026608 | 0 | 0 | 1 | 0 | 0.195384 | 0.019629 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01087 | false | 0 | 0.054348 | 0 | 0.086957 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
16da6b741ecf20da74dc195dd039a8286543ab52 | 2,128 | py | Python | tests/frameworks/xgboost/functions.py | george0st/mlrun | 6467d3a5ceadf6cd35512b84b3ddc3da611cf39a | [
"Apache-2.0"
] | null | null | null | tests/frameworks/xgboost/functions.py | george0st/mlrun | 6467d3a5ceadf6cd35512b84b3ddc3da611cf39a | [
"Apache-2.0"
] | null | null | null | tests/frameworks/xgboost/functions.py | george0st/mlrun | 6467d3a5ceadf6cd35512b84b3ddc3da611cf39a | [
"Apache-2.0"
] | null | null | null | import xgboost as xgb
from sklearn.multiclass import OneVsRestClassifier
from sklearn.multioutput import MultiOutputClassifier, MultiOutputRegressor
import mlrun
import mlrun.frameworks.xgboost as mlrun_xgboost
from mlrun.frameworks._ml_common.utils import AlgorithmFunctionality, ModelType
from ..functions import MLF... | 40.150943 | 88 | 0.730263 | 207 | 2,128 | 7.217391 | 0.275362 | 0.250335 | 0.064257 | 0.069612 | 0.403614 | 0.279116 | 0.242303 | 0.171352 | 0.108434 | 0 | 0 | 0 | 0.205827 | 2,128 | 52 | 89 | 40.923077 | 0.884024 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.155556 | 0 | 0.355556 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.