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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
87c78f169b83dbec6dc3921b8aec0d890baf98cd | 683 | py | Python | py-src/backend.py | aydin-ege/bilkent-course-scheduler | a7ab7f67648df0386b15d458924a92641ccd49a6 | [
"MIT"
] | 1 | 2020-08-24T06:08:55.000Z | 2020-08-24T06:08:55.000Z | py-src/backend.py | aydin-ege/bilkent-course-scheduler | a7ab7f67648df0386b15d458924a92641ccd49a6 | [
"MIT"
] | null | null | null | py-src/backend.py | aydin-ege/bilkent-course-scheduler | a7ab7f67648df0386b15d458924a92641ccd49a6 | [
"MIT"
] | 1 | 2020-08-06T15:02:51.000Z | 2020-08-06T15:02:51.000Z | import json
with open('course_data.json', 'r') as fp:
courses = json.load(fp)
from flask import Flask, request
from flask_cors import CORS
app = Flask(__name__)
cors = CORS(app)
@app.route('/api', methods=['POST'])
def api():
print(request.form)
if request.method == 'POST':
wanted_course_lists... | 23.551724 | 78 | 0.617862 | 89 | 683 | 4.47191 | 0.438202 | 0.150754 | 0.213568 | 0.105528 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009488 | 0.228404 | 683 | 28 | 79 | 24.392857 | 0.745731 | 0 | 0 | 0 | 0 | 0 | 0.073206 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.15 | 0 | 0.25 | 0.1 | 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 |
87cba7774ff81ffd32f1c9009133519d3f3453b6 | 920 | py | Python | functional_tests.py | jamesp9/simple-dns-client | 2b33daca2bf564e96d36f6aef2b69e110029d284 | [
"MIT"
] | null | null | null | functional_tests.py | jamesp9/simple-dns-client | 2b33daca2bf564e96d36f6aef2b69e110029d284 | [
"MIT"
] | null | null | null | functional_tests.py | jamesp9/simple-dns-client | 2b33daca2bf564e96d36f6aef2b69e110029d284 | [
"MIT"
] | null | null | null | import unittest
from dns_client import QueryDNS
GOOGLE_NAME_SERVER = '8.8.8.8'
JP_IT_IP_ADDRESS = '52.62.133.15'
class CheckSimpleDnsClient(unittest.TestCase):
"""
Basic function test.
"""
def setUp(self):
"""
Use Google's DNS server to lookup my own domain which only has one ip
... | 26.285714 | 77 | 0.63913 | 122 | 920 | 4.598361 | 0.508197 | 0.010695 | 0.090909 | 0.046346 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0.26087 | 920 | 35 | 78 | 26.285714 | 0.8 | 0.192391 | 0 | 0 | 0 | 0 | 0.081413 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.214286 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
87cc572f413d3a85dd9283fc86e7798d8e615288 | 551 | py | Python | usure/wordvectors/app.py | coraxcr/usure | 22ea892ac9814ead5e5d22266a8d53f36d077b5c | [
"MIT"
] | 2 | 2019-12-11T17:14:03.000Z | 2019-12-12T21:01:05.000Z | usure/wordvectors/app.py | coraxcr/usure | 22ea892ac9814ead5e5d22266a8d53f36d077b5c | [
"MIT"
] | 1 | 2019-07-16T04:43:39.000Z | 2019-07-16T04:43:39.000Z | usure/wordvectors/app.py | coraxcr/usure | 22ea892ac9814ead5e5d22266a8d53f36d077b5c | [
"MIT"
] | 2 | 2019-07-11T19:18:49.000Z | 2019-12-11T17:14:24.000Z | from usure.config import config
import usure.common.logging as usurelogging
from usure.wordvectors.core import EmbeddingsMachine
from usure.wordvectors.infrastructure import FileCorpusRep, FileKeyedVectorsRep, FileWord2VecRep
if __name__ == "__main__":
usurelogging.config(config.logs, "wordvectors.log")
cor... | 27.55 | 96 | 0.794918 | 54 | 551 | 7.944444 | 0.518519 | 0.062937 | 0.09324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008333 | 0.128857 | 551 | 19 | 97 | 29 | 0.885417 | 0 | 0 | 0 | 0 | 0 | 0.041742 | 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 |
87d479a03f298b527dc5530a3b20074e595535f1 | 258 | py | Python | Testing/TestCase/Assertions/assertURLEqual/tests.py | looking-for-a-job/django-examples | dfafa450668cac5c0351f6c7238b8886511229bf | [
"Unlicense"
] | null | null | null | Testing/TestCase/Assertions/assertURLEqual/tests.py | looking-for-a-job/django-examples | dfafa450668cac5c0351f6c7238b8886511229bf | [
"Unlicense"
] | null | null | null | Testing/TestCase/Assertions/assertURLEqual/tests.py | looking-for-a-job/django-examples | dfafa450668cac5c0351f6c7238b8886511229bf | [
"Unlicense"
] | null | null | null | from django.test import TestCase
"""
https://docs.djangoproject.com/en/dev/topics/testing/tools/#django.test.TestCase.assertURLEqual
assertURLEqual(url1, url2, msg_prefix='')
"""
class Test(TestCase):
def test(self):
raise NotImplementedError
| 21.5 | 95 | 0.744186 | 31 | 258 | 6.16129 | 0.774194 | 0.104712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008811 | 0.120155 | 258 | 11 | 96 | 23.454545 | 0.832599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
87d61381e678eb401bbd9c2c38ceec42153e206d | 1,185 | py | Python | setup.py | stelzch/holoview | 17b0d7ea1ee87104ced28a49ee1f02b3da49c4c2 | [
"MIT"
] | 3 | 2017-03-18T21:24:07.000Z | 2020-08-02T09:57:45.000Z | setup.py | stelzch/holoview | 17b0d7ea1ee87104ced28a49ee1f02b3da49c4c2 | [
"MIT"
] | 9 | 2017-03-28T20:32:40.000Z | 2021-03-26T06:14:33.000Z | setup.py | stelzch/holoview | 17b0d7ea1ee87104ced28a49ee1f02b3da49c4c2 | [
"MIT"
] | null | null | null | """Setup file.
_____ _ _____ _____ _____
| | |___| | | | __|
| | . | | | | | | |__ |
|__|__|___|_|_|_|_|_____|_____|
This is the setup file. It allows you to create packages.
"""
from distutils.core import setup
from setuptools import find_packages
setup(name='holoview',
version='0.0.... | 27.55814 | 59 | 0.564557 | 104 | 1,185 | 5.865385 | 0.769231 | 0.029508 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008373 | 0.294515 | 1,185 | 42 | 60 | 28.214286 | 0.721292 | 0.167089 | 0 | 0.064516 | 0 | 0 | 0.411645 | 0.066394 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.064516 | 0 | 0.064516 | 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 |
87da66e563878efbf58967498282e92f75418ff6 | 206 | py | Python | neurosynth/analysis/__init__.py | wmpauli/neurosynth | 43276cc9789a8c545b62a24bc522a01d1b45a265 | [
"MIT"
] | 1 | 2020-09-26T14:31:01.000Z | 2020-09-26T14:31:01.000Z | neurosynth/analysis/__init__.py | wmpauli/neurosynth | 43276cc9789a8c545b62a24bc522a01d1b45a265 | [
"MIT"
] | null | null | null | neurosynth/analysis/__init__.py | wmpauli/neurosynth | 43276cc9789a8c545b62a24bc522a01d1b45a265 | [
"MIT"
] | null | null | null | # emacs: -*- mode: python-mode; py-indent-offset: 2; tab-width: 2; indent-tabs-mode: nil -*-
# ex: set sts=2 ts=2 sw=2 et:
__all__ = ['classify', 'cluster', 'decode', 'meta', 'network', 'reduce', 'stats']
| 41.2 | 92 | 0.616505 | 32 | 206 | 3.84375 | 0.78125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028249 | 0.140777 | 206 | 4 | 93 | 51.5 | 0.666667 | 0.572816 | 0 | 0 | 0 | 0 | 0.505882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
87dcf500bbed30ab50defbbff9cf00103fc4ae46 | 18,559 | py | Python | vspk/v6/nujob.py | axxyhtrx/vspk-python | 4495882c6bcbb1ef51b14b9f4dc7efe46476ff50 | [
"BSD-3-Clause"
] | null | null | null | vspk/v6/nujob.py | axxyhtrx/vspk-python | 4495882c6bcbb1ef51b14b9f4dc7efe46476ff50 | [
"BSD-3-Clause"
] | null | null | null | vspk/v6/nujob.py | axxyhtrx/vspk-python | 4495882c6bcbb1ef51b14b9f4dc7efe46476ff50 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (c) 2015, Alcatel-Lucent Inc, 2017 Nokia
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyrigh... | 32.731922 | 1,401 | 0.650035 | 2,140 | 18,559 | 5.341589 | 0.170093 | 0.057738 | 0.018371 | 0.024495 | 0.398303 | 0.334616 | 0.331992 | 0.322544 | 0.319132 | 0.30496 | 0 | 0.001277 | 0.282451 | 18,559 | 567 | 1,402 | 32.731922 | 0.8571 | 0.32227 | 0 | 0.073446 | 0 | 0 | 0.21803 | 0.108736 | 0 | 0 | 0 | 0 | 0 | 1 | 0.152542 | false | 0 | 0.039548 | 0 | 0.621469 | 0 | 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 |
87dd18e47c129479c8118bd54642eb3fc2f306fe | 908 | py | Python | setup.py | rjollos/tracchangelogfilter | e8234e28a436b7aa2cc6b7a2b5b1b6aa3c3146ba | [
"BSD-3-Clause"
] | null | null | null | setup.py | rjollos/tracchangelogfilter | e8234e28a436b7aa2cc6b7a2b5b1b6aa3c3146ba | [
"BSD-3-Clause"
] | 1 | 2017-02-10T20:58:34.000Z | 2017-02-10T20:58:34.000Z | setup.py | trac-hacks/tracchangelogfilter | e8234e28a436b7aa2cc6b7a2b5b1b6aa3c3146ba | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2014 Daniel Rodriguez <danjrod@gmail.com>
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution.
#
from setuptools import find_packages, setup
setup(
name=... | 27.515152 | 95 | 0.703744 | 109 | 908 | 5.816514 | 0.798165 | 0.047319 | 0.047319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011889 | 0.1663 | 908 | 32 | 96 | 28.375 | 0.825627 | 0.264317 | 0 | 0 | 0 | 0 | 0.52352 | 0.047041 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0625 | 0 | 0.0625 | 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 |
87dd6e748589da45ea3e20dc2264d17dc6bba996 | 1,174 | py | Python | 012.py | IgorKon/ProjectEuler | 46483431905f60b709c1bc5238d51474836ae5d6 | [
"Apache-2.0"
] | null | null | null | 012.py | IgorKon/ProjectEuler | 46483431905f60b709c1bc5238d51474836ae5d6 | [
"Apache-2.0"
] | null | null | null | 012.py | IgorKon/ProjectEuler | 46483431905f60b709c1bc5238d51474836ae5d6 | [
"Apache-2.0"
] | null | null | null | # Highly divisible triangular number
# Problem 12
# The sequence of triangle numbers is generated by adding the natural numbers. So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28.
# The first ten terms would be:
# 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, ...
# Let us list the factors of the first seven t... | 23.959184 | 147 | 0.622658 | 207 | 1,174 | 3.512077 | 0.42029 | 0.013755 | 0.022008 | 0.060523 | 0.099037 | 0.099037 | 0.099037 | 0.099037 | 0 | 0 | 0 | 0.098398 | 0.255537 | 1,174 | 48 | 148 | 24.458333 | 0.73341 | 0.511925 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.08 | 0 | 0.24 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
87e47de139332b9b24f5b23d356b2bcc5ba03ed7 | 2,419 | py | Python | dash_react_font_awesome_icon_picker/iconPicker.py | nodelab-aps/dash-react-font-awesome-icon-picker | 66380b1ecd33893234866b5042dbc9fe7f05046f | [
"Apache-2.0"
] | null | null | null | dash_react_font_awesome_icon_picker/iconPicker.py | nodelab-aps/dash-react-font-awesome-icon-picker | 66380b1ecd33893234866b5042dbc9fe7f05046f | [
"Apache-2.0"
] | null | null | null | dash_react_font_awesome_icon_picker/iconPicker.py | nodelab-aps/dash-react-font-awesome-icon-picker | 66380b1ecd33893234866b5042dbc9fe7f05046f | [
"Apache-2.0"
] | null | null | null | # AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class iconPicker(Component):
"""An iconPicker component.
Keyword arguments:
- id (string; required): The ID used to identify this component in Dash callbacks.
- value (string; optional): The value displ... | 62.025641 | 332 | 0.723853 | 283 | 2,419 | 6.056537 | 0.335689 | 0.084014 | 0.043757 | 0.049592 | 0.322054 | 0.322054 | 0.322054 | 0.322054 | 0.322054 | 0.322054 | 0 | 0 | 0.183547 | 2,419 | 38 | 333 | 63.657895 | 0.867848 | 0.410087 | 0 | 0 | 1 | 0 | 0.219718 | 0.024648 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.157895 | 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 |
87e78fe5c80762b844b817415c3c61cbc23c2009 | 11,843 | py | Python | servicestack/dtos.py | ServiceStack/servicestack-python | 57577d94e9c32334c9604e5881f9f96b93a0fddb | [
"BSD-3-Clause"
] | 3 | 2021-07-03T17:50:05.000Z | 2021-07-12T17:08:33.000Z | servicestack/dtos.py | ServiceStack/servicestack-python | 57577d94e9c32334c9604e5881f9f96b93a0fddb | [
"BSD-3-Clause"
] | null | null | null | servicestack/dtos.py | ServiceStack/servicestack-python | 57577d94e9c32334c9604e5881f9f96b93a0fddb | [
"BSD-3-Clause"
] | null | null | null | from typing import TypeVar, Generic, Optional, Dict, List, Any
from dataclasses import dataclass
from dataclasses_json import dataclass_json, LetterCase, Undefined
from datetime import datetime, timedelta
T = TypeVar('T')
Table = TypeVar('Table')
From = TypeVar('From')
Into = TypeVar('Into')
TKey = TypeVar('TKey')
TVa... | 27.351039 | 79 | 0.742379 | 1,381 | 11,843 | 6.254888 | 0.125272 | 0.082658 | 0.1094 | 0.101181 | 0.688122 | 0.665548 | 0.655823 | 0.63429 | 0.619356 | 0.598981 | 0 | 0.000396 | 0.1465 | 11,843 | 432 | 80 | 27.414352 | 0.854175 | 0.014692 | 0 | 0.588997 | 0 | 0 | 0.002059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019417 | false | 0.048544 | 0.012945 | 0.019417 | 0.669903 | 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 |
87eb9b1938f75b9ca2365f9f680926850576dd9d | 385 | py | Python | predictor/urls.py | danila19991/tinkoff-web-service | ccc8ac4e8dae6aae5e1c843ddf8730f6216e8450 | [
"Apache-2.0"
] | null | null | null | predictor/urls.py | danila19991/tinkoff-web-service | ccc8ac4e8dae6aae5e1c843ddf8730f6216e8450 | [
"Apache-2.0"
] | 75 | 2018-08-18T15:16:22.000Z | 2018-10-04T20:28:57.000Z | predictor/urls.py | robot-lab/tinkoff-web-service | ccc8ac4e8dae6aae5e1c843ddf8730f6216e8450 | [
"Apache-2.0"
] | null | null | null | from django.urls import path
from . import views
app_name = 'predictor'
# TODO: add static just for one app
urlpatterns = [
path('', views.index, name='index'),
path('auth', views.auth, name='auth'),
path('register', views.register_page, name='register'),
path('restore', views.restore, name='restore... | 24.0625 | 59 | 0.672727 | 50 | 385 | 5.12 | 0.44 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161039 | 385 | 15 | 60 | 25.666667 | 0.79257 | 0.085714 | 0 | 0 | 0 | 0 | 0.194286 | 0 | 0 | 0 | 0 | 0.066667 | 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 | 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 |
87edc71717960d8dc2f0b4977ced414c770f5ef2 | 617 | py | Python | Project-File/a1login.py | ShravyaRNadig/Python-Project-Credit-Card | 3c64a955675cae4295fcb5ef1d4bd60552e39453 | [
"Apache-2.0"
] | null | null | null | Project-File/a1login.py | ShravyaRNadig/Python-Project-Credit-Card | 3c64a955675cae4295fcb5ef1d4bd60552e39453 | [
"Apache-2.0"
] | null | null | null | Project-File/a1login.py | ShravyaRNadig/Python-Project-Credit-Card | 3c64a955675cae4295fcb5ef1d4bd60552e39453 | [
"Apache-2.0"
] | null | null | null | #!C:\Users\DELL-LAPTOP\AppData\Local\Programs\Python\Python37\python
import cgi
import mysql.connector
print("Content-type: text/html")
print("")
form=cgi.FieldStorage()
e=form.getvalue("username");
p=form.getvalue("password");
if e=="attack" and p=="attack":
redirectURL = "a1home.html"
print(' <... | 29.380952 | 84 | 0.666126 | 76 | 617 | 5.407895 | 0.592105 | 0.065693 | 0.06326 | 0.082725 | 0.262774 | 0.262774 | 0.262774 | 0.262774 | 0.262774 | 0.262774 | 0 | 0.011236 | 0.134522 | 617 | 20 | 85 | 30.85 | 0.758427 | 0.10859 | 0 | 0.142857 | 0 | 0 | 0.483932 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.142857 | 0 | 0.142857 | 0.357143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
87edf5be670ee0908499dd6b793febad48ec2466 | 1,302 | py | Python | setup.py | zaccharieramzi/jz-hydra-submitit-launcher | 6a253a72f0ae0adb4408a5b85c1d39db7f13231e | [
"MIT"
] | 4 | 2022-01-11T14:08:26.000Z | 2022-02-23T08:49:21.000Z | setup.py | zaccharieramzi/jz-hydra-submitit-launcher | 6a253a72f0ae0adb4408a5b85c1d39db7f13231e | [
"MIT"
] | 4 | 2022-01-19T11:07:45.000Z | 2022-03-16T15:28:17.000Z | setup.py | zaccharieramzi/jz-hydra-submitit-launcher | 6a253a72f0ae0adb4408a5b85c1d39db7f13231e | [
"MIT"
] | 2 | 2022-01-11T13:24:44.000Z | 2022-01-18T21:19:09.000Z | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
# taken from https://github.com/CEA-COSMIC/ModOpt/blob/master/setup.py
with open('requirements.txt') as open_file:
install_requires = open_file.read()
from hydra_plugins import jz_hydra_submitit_launcher
setuptools.setup(
... | 36.166667 | 83 | 0.749616 | 158 | 1,302 | 5.746835 | 0.474684 | 0.171806 | 0.165198 | 0.253304 | 0.196035 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002669 | 0.136713 | 1,302 | 35 | 84 | 37.2 | 0.80516 | 0.052227 | 0 | 0 | 0 | 0 | 0.262987 | 0.074675 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 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 |
87f392309d83267e450f33dc4183cdfd085bd669 | 1,804 | py | Python | tests/views/helpers.py | groovetch/edx-figures | a69fc1195c05176ac7dae90b337dd77f4bd9679f | [
"MIT"
] | 43 | 2018-05-29T20:01:25.000Z | 2021-12-02T09:43:17.000Z | tests/views/helpers.py | groovetch/edx-figures | a69fc1195c05176ac7dae90b337dd77f4bd9679f | [
"MIT"
] | 330 | 2018-05-30T17:06:15.000Z | 2022-03-16T15:52:22.000Z | tests/views/helpers.py | groovetch/edx-figures | a69fc1195c05176ac7dae90b337dd77f4bd9679f | [
"MIT"
] | 40 | 2018-10-06T00:15:58.000Z | 2022-02-14T12:44:45.000Z | '''This module provides test helpers for Figures view tests
'''
from __future__ import absolute_import
from tests.factories import UserFactory
from tests.helpers import organizations_support_sites
if organizations_support_sites():
from tests.factories import UserOrganizationMappingFactory
def create_test_use... | 32.214286 | 81 | 0.686253 | 220 | 1,804 | 5.431818 | 0.395455 | 0.046862 | 0.046025 | 0.037657 | 0.158996 | 0.112134 | 0.066946 | 0.066946 | 0 | 0 | 0 | 0 | 0.231153 | 1,804 | 55 | 82 | 32.8 | 0.861572 | 0.343126 | 0 | 0.148148 | 0 | 0 | 0.063055 | 0 | 0 | 0 | 0 | 0.018182 | 0 | 1 | 0.111111 | false | 0 | 0.148148 | 0 | 0.407407 | 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 |
87fb08839d4e819d0f050755cd8cf49e0d2ae685 | 2,242 | py | Python | src/jenga/src/jenga/tasks/openml.py | se-jaeger/data-imputation-paper | 498d2d871302d917f58ecf6a9576e3a3451c5faa | [
"Apache-2.0"
] | 2 | 2022-01-18T09:59:01.000Z | 2022-02-02T10:01:45.000Z | src/jenga/src/jenga/tasks/openml.py | se-jaeger/data-imputation-paper | 498d2d871302d917f58ecf6a9576e3a3451c5faa | [
"Apache-2.0"
] | null | null | null | src/jenga/src/jenga/tasks/openml.py | se-jaeger/data-imputation-paper | 498d2d871302d917f58ecf6a9576e3a3451c5faa | [
"Apache-2.0"
] | null | null | null | from typing import Optional
import pandas as pd
from sklearn.datasets import fetch_openml
from sklearn.model_selection import train_test_split
from ..basis import (
BinaryClassificationTask,
MultiClassClassificationTask,
RegressionTask,
Task
)
class OpenMLTask(Task):
def __init__(self, openml_i... | 30.712329 | 112 | 0.669492 | 268 | 2,242 | 5.410448 | 0.317164 | 0.027586 | 0.048276 | 0.065517 | 0.251034 | 0.227586 | 0.227586 | 0.184828 | 0.184828 | 0.184828 | 0 | 0.002358 | 0.243533 | 2,242 | 72 | 113 | 31.138889 | 0.852594 | 0.278323 | 0 | 0.131579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0.078947 | 0.131579 | 0 | 0.263158 | 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 |
e203c81741edde4fe5b4b02a9c57ed9f2e2a405a | 5,509 | py | Python | helper.py | gabrielbiasi/ZicaZeroZ | 221f3c876d630497e79503a9a910ed5d097ce181 | [
"MIT"
] | 1 | 2017-07-13T12:06:13.000Z | 2017-07-13T12:06:13.000Z | helper.py | gabrielbiasi/ZicaZeroZ | 221f3c876d630497e79503a9a910ed5d097ce181 | [
"MIT"
] | null | null | null | helper.py | gabrielbiasi/ZicaZeroZ | 221f3c876d630497e79503a9a910ed5d097ce181 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Universidade Federal de Minas Gerais
Departamento de Ciência da Computação
Programa de Pós-Graduação em Ciência da Computação
Projeto e Análise de Algoritmos
Trabalho Prático de Grafos
Feito por Gabriel de Biasi, 2016672212.
"""
class Person(object):
"""
Esta classe representa os vértic... | 23.442553 | 97 | 0.641133 | 903 | 5,509 | 3.842746 | 0.293466 | 0.010951 | 0.008646 | 0.009222 | 0.093372 | 0.044957 | 0.013256 | 0 | 0 | 0 | 0 | 0.017342 | 0.225449 | 5,509 | 235 | 98 | 23.442553 | 0.795875 | 0.337085 | 0 | 0.16 | 0 | 0 | 0.035122 | 0.030569 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.152 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
354c5b0aec0384450ccbc623749e31ee46590a1d | 8,180 | py | Python | data/external/repositories_2to3/36064/kaggle-bulldozer-master/init_db.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | null | null | null | data/external/repositories_2to3/36064/kaggle-bulldozer-master/init_db.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | null | null | null | data/external/repositories_2to3/36064/kaggle-bulldozer-master/init_db.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | 1 | 2019-12-04T08:23:33.000Z | 2019-12-04T08:23:33.000Z | import numpy as np
from pymongo import Connection, ASCENDING
import util
connection = Connection()
db = connection.bulldozer
auctions = db.train
auctions.drop()
auctions.ensure_index('tag')
datasets = {
'test': util.get_test_df,
'train': util.get_train_df,
}
# read machine index file
mach... | 59.275362 | 2,618 | 0.550122 | 1,295 | 8,180 | 3.439382 | 0.214672 | 0.041087 | 0.056803 | 0.040413 | 0.10238 | 0.035474 | 0.017512 | 0 | 0 | 0 | 0 | 0.150249 | 0.262836 | 8,180 | 137 | 2,619 | 59.708029 | 0.588391 | 0.044254 | 0 | 0.133333 | 0 | 0 | 0.445637 | 0.012937 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011111 | false | 0 | 0.033333 | 0 | 0.055556 | 0.011111 | 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 |
355a102c1278cdfa3c0353e60b0a88dbf829c704 | 2,970 | py | Python | reana_db/config.py | VMois/reana-db | 919cb4a1a2d0d14c9779934be374ad95fdbfc5e6 | [
"MIT"
] | 1 | 2021-09-06T14:18:14.000Z | 2021-09-06T14:18:14.000Z | reana_db/config.py | VMois/reana-db | 919cb4a1a2d0d14c9779934be374ad95fdbfc5e6 | [
"MIT"
] | 66 | 2018-08-01T12:39:38.000Z | 2022-03-08T11:23:53.000Z | reana_db/config.py | VMois/reana-db | 919cb4a1a2d0d14c9779934be374ad95fdbfc5e6 | [
"MIT"
] | 19 | 2018-08-01T12:37:11.000Z | 2022-02-04T10:31:36.000Z | # -*- coding: utf-8 -*-
#
# This file is part of REANA.
# Copyright (C) 2018, 2019, 2020, 2021 CERN.
#
# REANA is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
"""REANA DB configuration."""
import os
from distutils.util import strtoboo... | 33.75 | 117 | 0.735354 | 405 | 2,970 | 5.17037 | 0.392593 | 0.061127 | 0.06829 | 0.045845 | 0.191022 | 0.074499 | 0.031519 | 0 | 0 | 0 | 0 | 0.012403 | 0.131313 | 2,970 | 87 | 118 | 34.137931 | 0.799225 | 0.13064 | 0 | 0 | 0 | 0 | 0.300687 | 0.179267 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.075 | 0.075 | 0 | 0.075 | 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 |
3561ed657311044ef12105b6b3882b538c3e70df | 1,061 | py | Python | aifeynman/RPN_to_eq.py | neighthan/AI-Feynman | de3be5250c759877175ea1725dea64000794bd3a | [
"MIT"
] | 1 | 2020-12-17T08:10:38.000Z | 2020-12-17T08:10:38.000Z | aifeynman/RPN_to_eq.py | neighthan/AI-Feynman | de3be5250c759877175ea1725dea64000794bd3a | [
"MIT"
] | null | null | null | aifeynman/RPN_to_eq.py | neighthan/AI-Feynman | de3be5250c759877175ea1725dea64000794bd3a | [
"MIT"
] | null | null | null | # Turns an RPN expression to normal mathematical notation
_VARIABLES = {
"0": "0",
"1": "1",
"P": "pi",
"a": "x0",
"b": "x1",
"c": "x2",
"d": "x3",
"e": "x4",
"f": "x5",
"g": "x6",
"h": "x7",
"i": "x8",
"j": "x9",
"k": "x10",
"l": "x11",
"m": "x12",
"... | 19.290909 | 57 | 0.352498 | 127 | 1,061 | 2.826772 | 0.574803 | 0.033426 | 0.038997 | 0.05571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046809 | 0.335533 | 1,061 | 54 | 58 | 19.648148 | 0.462411 | 0.051838 | 0 | 0 | 0 | 0 | 0.188247 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0 | 0 | 0 | 0.040816 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3562ba71a9448b22b26663108ede9e215fa3f804 | 453 | py | Python | ISPy/examples/hello_f90/__init__.py | jaimedelacruz/ISPy | eff9aa2f06d395ce8af2cbeb26022b2eea20766d | [
"MIT"
] | null | null | null | ISPy/examples/hello_f90/__init__.py | jaimedelacruz/ISPy | eff9aa2f06d395ce8af2cbeb26022b2eea20766d | [
"MIT"
] | null | null | null | ISPy/examples/hello_f90/__init__.py | jaimedelacruz/ISPy | eff9aa2f06d395ce8af2cbeb26022b2eea20766d | [
"MIT"
] | null | null | null | #!/bin/env python
# -*- coding: utf-8 -*-
"""
F2py wrapper on Fortran 90 hello-world module
This python module is an example from the ISPy python library. It
illustrates how to wrap Fortran 90 code with F2py.
"""
try:
from _helloworld import *
except:
raise ImportError("Could not load the `{0}' extension, ch... | 26.647059 | 167 | 0.728477 | 66 | 453 | 4.924242 | 0.772727 | 0.055385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0.169978 | 453 | 16 | 168 | 28.3125 | 0.843085 | 0.445916 | 0 | 0 | 0 | 0.2 | 0.516529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
356372e59555f388e4a3ca319f7616ca7f8c9a8f | 10,898 | py | Python | PersonalSite/projects/scripts/sudoku3.py | joeyuan19/flaming-bear | 8cf73a079ed98579f8e1f9e960740c94cd2ad39a | [
"Apache-2.0"
] | null | null | null | PersonalSite/projects/scripts/sudoku3.py | joeyuan19/flaming-bear | 8cf73a079ed98579f8e1f9e960740c94cd2ad39a | [
"Apache-2.0"
] | null | null | null | PersonalSite/projects/scripts/sudoku3.py | joeyuan19/flaming-bear | 8cf73a079ed98579f8e1f9e960740c94cd2ad39a | [
"Apache-2.0"
] | null | null | null | #!/bin/sh
# sudoku3.py
# SudokuSolver
#
# Created by joe yuan on 3/6/11.
# Copyright 2011 __MyCompanyName__. All rights reserved.
import time
import sys
def rowbyrow():
d = []
for i in range(9):
x = INPUT_PROCESS(i)
d.append(x)
for k,i in enumerate(d):
for j,c in enumerate(i):
... | 26.387409 | 113 | 0.449716 | 1,557 | 10,898 | 3.125883 | 0.16185 | 0.060407 | 0.041915 | 0.061023 | 0.379289 | 0.358948 | 0.320937 | 0.305732 | 0.301418 | 0.292788 | 0 | 0.030454 | 0.42751 | 10,898 | 412 | 114 | 26.451456 | 0.749639 | 0.105432 | 0 | 0.51462 | 0 | 0 | 0.072221 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.005848 | null | null | 0.122807 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3567aae66da5c6110e757032d2437e9f3f2c608b | 574 | py | Python | src/robot_assembler_gui/assemble_editor.py | agent-system/robot_assmbler_gui | 1f099f4db3f341449b68417bb46898868036f941 | [
"MIT"
] | 3 | 2021-04-21T04:33:07.000Z | 2021-04-21T07:01:32.000Z | src/robot_assembler_gui/assemble_editor.py | agent-system/robot_assmbler_gui | 1f099f4db3f341449b68417bb46898868036f941 | [
"MIT"
] | null | null | null | src/robot_assembler_gui/assemble_editor.py | agent-system/robot_assmbler_gui | 1f099f4db3f341449b68417bb46898868036f941 | [
"MIT"
] | null | null | null | import os
import argparse
import threading
from qt_gui.plugin import Plugin
from .edit_widget import RAEditWidget
class AssembleEditor(Plugin):
"""
"""
def __init__(self, context):
"""
"""
super(AssembleEditor, self).__init__(context)
self.setObjectName('AssembleEditor... | 20.5 | 81 | 0.632404 | 56 | 574 | 6.178571 | 0.482143 | 0.115607 | 0.109827 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002336 | 0.254355 | 574 | 27 | 82 | 21.259259 | 0.806075 | 0 | 0 | 0 | 0 | 0 | 0.034799 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.357143 | 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 |
356f9e54a9d52b284ba9896418fd8a32cc4e72b5 | 1,419 | py | Python | tests/test_exceptions.py | david-house-harvard/canvas_python_sdk | 9c2e59621a9a5667bc43c253ef801482b241a2c1 | [
"MIT"
] | 21 | 2015-06-12T13:49:04.000Z | 2021-11-08T05:37:44.000Z | tests/test_exceptions.py | david-house-harvard/canvas_python_sdk | 9c2e59621a9a5667bc43c253ef801482b241a2c1 | [
"MIT"
] | 44 | 2015-02-04T15:26:52.000Z | 2021-12-03T17:47:00.000Z | tests/test_exceptions.py | david-house-harvard/canvas_python_sdk | 9c2e59621a9a5667bc43c253ef801482b241a2c1 | [
"MIT"
] | 7 | 2015-07-20T23:56:03.000Z | 2021-02-23T17:13:00.000Z | import unittest
from canvas_sdk.exceptions import CanvasAPIError
class TestExceptions(unittest.TestCase):
longMessage = True
def setUp(self):
self.default_api_error = CanvasAPIError()
def test_default_status_for_canvas_api_error(self):
""" Test expected default status for instance of C... | 38.351351 | 92 | 0.729387 | 181 | 1,419 | 5.414365 | 0.259669 | 0.097959 | 0.071429 | 0.096939 | 0.366327 | 0.334694 | 0.334694 | 0.277551 | 0.155102 | 0.155102 | 0 | 0.007826 | 0.18957 | 1,419 | 36 | 93 | 39.416667 | 0.844348 | 0.232558 | 0 | 0 | 0 | 0 | 0.043519 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.3 | false | 0 | 0.1 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
35700ef99a169a0db09ffca518a572db2e4ab3ed | 1,023 | py | Python | service_lib/auth.py | qwc-services/sogis-agdi | f278612c42f648da07448905f2b8021b279e66bc | [
"MIT"
] | null | null | null | service_lib/auth.py | qwc-services/sogis-agdi | f278612c42f648da07448905f2b8021b279e66bc | [
"MIT"
] | null | null | null | service_lib/auth.py | qwc-services/sogis-agdi | f278612c42f648da07448905f2b8021b279e66bc | [
"MIT"
] | null | null | null | """Authentication helper functions
"""
import os
from functools import wraps
from flask import request, Response
from .jwt import jwt_manager
from flask_jwt_extended import jwt_optional, get_jwt_identity
# Accept user name passed in Basic Auth header
# (password has to checkded before!)
ALLOW_BASIC_AUTH_USER = os.env... | 27.648649 | 72 | 0.72434 | 141 | 1,023 | 5.049645 | 0.432624 | 0.075843 | 0.098315 | 0.126404 | 0.064607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191593 | 1,023 | 36 | 73 | 28.416667 | 0.860943 | 0.293255 | 0 | 0 | 0 | 0 | 0.045845 | 0.030086 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.263158 | 0 | 0.578947 | 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 |
35773cc7bf5c3da35e92918fda5eeafe90b1986d | 4,478 | py | Python | Mining/Exceptions/MiningErrorClasses.py | AdamSwenson/TwitterProject | 8c5dc7a57eac611b555058736d609f2f204cb836 | [
"MIT"
] | null | null | null | Mining/Exceptions/MiningErrorClasses.py | AdamSwenson/TwitterProject | 8c5dc7a57eac611b555058736d609f2f204cb836 | [
"MIT"
] | 6 | 2020-03-24T17:34:24.000Z | 2021-12-13T20:14:34.000Z | Mining/Exceptions/MiningErrorClasses.py | AdamSwenson/TwitterProject | 8c5dc7a57eac611b555058736d609f2f204cb836 | [
"MIT"
] | null | null | null | """
This holds the exception handling and logging classes
"""
import os
from logbook import Logger
class LoggableError(Exception):
"""
Parent class for customized exception classes which provides interface to the logging functions
Attributes:
log_file: The file in which to keep logs
... | 29.655629 | 116 | 0.64962 | 512 | 4,478 | 5.402344 | 0.267578 | 0.049168 | 0.075199 | 0.053145 | 0.260304 | 0.213666 | 0.186189 | 0.088937 | 0.062907 | 0.062907 | 0 | 0 | 0.262394 | 4,478 | 151 | 117 | 29.655629 | 0.837421 | 0.274453 | 0 | 0.369863 | 0 | 0 | 0.08657 | 0.007571 | 0 | 0 | 0 | 0 | 0 | 1 | 0.219178 | false | 0.013699 | 0.027397 | 0.041096 | 0.410959 | 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 |
357998889053ae53313185c2f3ebd68a2e326366 | 46,773 | py | Python | pydhsfw/dcss.py | tetrahedron-technologies/pydhsfw | 79180afce1ce7c8804fec2276c41e7247040022b | [
"MIT"
] | 1 | 2020-10-22T22:20:48.000Z | 2020-10-22T22:20:48.000Z | pydhsfw/dcss.py | tetrahedron-technologies/pydhsfw | 79180afce1ce7c8804fec2276c41e7247040022b | [
"MIT"
] | 27 | 2020-10-15T00:53:47.000Z | 2020-12-02T22:51:28.000Z | pydhsfw/dcss.py | tetrahedron-technologies/pydhsfw | 79180afce1ce7c8804fec2276c41e7247040022b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import logging
from typing import Any
from inspect import isfunction, signature, getsourcelines, getmodule
from pydhsfw.messages import (
IncomingMessageQueue,
OutgoingMessageQueue,
MessageIn,
MessageOut,
MessageFactory,
register_message,
)
from pydhsfw.transport import (... | 33.79552 | 374 | 0.677057 | 5,858 | 46,773 | 5.192045 | 0.111471 | 0.020779 | 0.025777 | 0.014598 | 0.49012 | 0.416143 | 0.388591 | 0.367549 | 0.346671 | 0.31902 | 0 | 0.005673 | 0.238685 | 46,773 | 1,383 | 375 | 33.819957 | 0.848465 | 0.423685 | 0 | 0.452489 | 0 | 0.001508 | 0.064304 | 0.03162 | 0 | 0 | 0 | 0 | 0 | 1 | 0.215686 | false | 0.003017 | 0.012066 | 0.0181 | 0.431373 | 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 |
357ab15dbc54b365ab880300a5b886672f22209b | 763 | py | Python | models/plot_hist.py | yiruiliu110/eegnn | 253773c301681bb00b4789c34f48c82468ad16da | [
"MIT"
] | null | null | null | models/plot_hist.py | yiruiliu110/eegnn | 253773c301681bb00b4789c34f48c82468ad16da | [
"MIT"
] | null | null | null | models/plot_hist.py | yiruiliu110/eegnn | 253773c301681bb00b4789c34f48c82468ad16da | [
"MIT"
] | null | null | null | import pickle
import sys
import numpy as np
import torch
import os
import yaml
from matplotlib import pyplot as plt
from estimation.graph_model import BNPGraphModel
def plot_hist(estimated_graph, data_name: str = 'TEXAS'):
virtual_graph = estimated_graph.compute_mean_z(1000)
z = virtual_graph._values().t... | 26.310345 | 103 | 0.665793 | 128 | 763 | 3.828125 | 0.507813 | 0.02449 | 0.020408 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033546 | 0.179554 | 763 | 28 | 104 | 27.25 | 0.749201 | 0.146789 | 0 | 0 | 0 | 0 | 0.021572 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.421053 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3584d9bdbf5ec771f167b715a69baac14e1ca907 | 515 | py | Python | account/migrations/0020_auto_20200119_1307.py | AdamSuma/steach_adam | a40161c8504076e1993d099478913fefbe8cd81d | [
"MIT"
] | null | null | null | account/migrations/0020_auto_20200119_1307.py | AdamSuma/steach_adam | a40161c8504076e1993d099478913fefbe8cd81d | [
"MIT"
] | null | null | null | account/migrations/0020_auto_20200119_1307.py | AdamSuma/steach_adam | a40161c8504076e1993d099478913fefbe8cd81d | [
"MIT"
] | null | null | null | # Generated by Django 2.2 on 2020-01-19 13:07
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('account', '0019_auto_20200111_1345'),
]
operations = [
migrations.RemoveField(
model_name='grade',
nam... | 21.458333 | 64 | 0.584466 | 52 | 515 | 5.673077 | 0.692308 | 0.061017 | 0.094915 | 0.122034 | 0.149153 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083799 | 0.304854 | 515 | 23 | 65 | 22.391304 | 0.740223 | 0.083495 | 0 | 0.235294 | 1 | 0 | 0.114894 | 0.048936 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
359aa5cfa25e060ddfe7d842bbd18ad714cbc846 | 1,171 | py | Python | yolo_port.py | harrisonford/mybabybrain-model | 06cce4e1aada0fb7b25616869bd17de164995c21 | [
"MIT"
] | null | null | null | yolo_port.py | harrisonford/mybabybrain-model | 06cce4e1aada0fb7b25616869bd17de164995c21 | [
"MIT"
] | 14 | 2020-03-24T18:14:17.000Z | 2022-02-10T01:36:17.000Z | yolo_port.py | harrisonford/mybabybrain-model | 06cce4e1aada0fb7b25616869bd17de164995c21 | [
"MIT"
] | null | null | null | # TODO: YOLO usage should be super modular giving it an image from imageio and return coordinates
import argparse
import numpy as np
import cv2
# take an image read as a matrix using imageio and apply yolo model
def use_yolo(image_matrix):
# load coco labels
labels_path = './yolov3/data/coco.names'
label... | 34.441176 | 97 | 0.701964 | 169 | 1,171 | 4.715976 | 0.544379 | 0.037641 | 0.035132 | 0.050188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016598 | 0.176772 | 1,171 | 33 | 98 | 35.484848 | 0.810166 | 0.194705 | 0 | 0 | 0 | 0 | 0.208111 | 0.091782 | 0 | 0 | 0 | 0.030303 | 0 | 1 | 0.047619 | false | 0 | 0.142857 | 0 | 0.238095 | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
35a36891e36b4e2a95b41fd5298c0b1a6391676d | 4,782 | py | Python | tools_archive/btl_app_merge_bin.py | pnewman-cti/bootloader | 5e2596f3c481a25e2dc9bd30456f0a955f586910 | [
"0BSD"
] | null | null | null | tools_archive/btl_app_merge_bin.py | pnewman-cti/bootloader | 5e2596f3c481a25e2dc9bd30456f0a955f586910 | [
"0BSD"
] | null | null | null | tools_archive/btl_app_merge_bin.py | pnewman-cti/bootloader | 5e2596f3c481a25e2dc9bd30456f0a955f586910 | [
"0BSD"
] | null | null | null | #!/usr/bin/env python
"""*****************************************************************************
* Copyright (C) 2019 Microchip Technology Inc. and its subsidiaries.
*
* Subject to your compliance with these terms, you may use Microchip software
* and any derivatives exclusively with Microchip products. It is yo... | 36.503817 | 138 | 0.583229 | 538 | 4,782 | 5.128253 | 0.39777 | 0.01631 | 0.027184 | 0.023922 | 0.108735 | 0.089888 | 0.070315 | 0.070315 | 0.070315 | 0.070315 | 0 | 0.01372 | 0.192179 | 4,782 | 130 | 139 | 36.784615 | 0.700492 | 0.149101 | 0 | 0.185714 | 0 | 0 | 0.22019 | 0 | 0 | 0 | 0.004389 | 0 | 0 | 0 | null | null | 0 | 0.057143 | null | null | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
35a7bc23b41dfdf6e1bbc40e28d4426c4c7b1f1b | 1,274 | py | Python | samples/nta_enable_disable_cbqos_sources.py | john-westcott-iv/orionsdk-python | 5aad8a2a7997ef06d65cbcfdb0b221ed4459ff05 | [
"Apache-2.0"
] | 177 | 2016-04-05T17:29:46.000Z | 2022-03-29T20:25:33.000Z | samples/nta_enable_disable_cbqos_sources.py | superadm1n/orionsdk-python | 6f341d4e84d1a1275f904105d6e04c6e89678475 | [
"Apache-2.0"
] | 51 | 2016-05-31T17:28:06.000Z | 2022-03-31T17:13:07.000Z | samples/nta_enable_disable_cbqos_sources.py | superadm1n/orionsdk-python | 6f341d4e84d1a1275f904105d6e04c6e89678475 | [
"Apache-2.0"
] | 79 | 2016-02-18T00:31:37.000Z | 2022-03-11T21:07:25.000Z | from __future__ import print_function
import re
import requests
import pprint
from orionsdk import SwisClient
def main():
# Connect to SWIS
server = 'localhost'
username = 'admin'
password = ''
swis = SwisClient(server, username, password)
# Disable/Enable CBQoS Sources
node_caption = 'My ... | 35.388889 | 140 | 0.704082 | 166 | 1,274 | 5.180723 | 0.409639 | 0.083721 | 0.055814 | 0.073256 | 0.25814 | 0.163953 | 0.109302 | 0.109302 | 0 | 0 | 0 | 0.003914 | 0.197802 | 1,274 | 35 | 141 | 36.4 | 0.837573 | 0.089482 | 0 | 0 | 0 | 0 | 0.332468 | 0.04329 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0.076923 | 0.192308 | 0 | 0.230769 | 0.115385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
35afdb02697af645ef956d546dce99294ec3edc6 | 7,978 | py | Python | runner/custom_template_factory.py | roberto-mardeni/BatchExplorer-data | 9772d4ffafbd5688938afd9305b75ebcc15becde | [
"MIT"
] | null | null | null | runner/custom_template_factory.py | roberto-mardeni/BatchExplorer-data | 9772d4ffafbd5688938afd9305b75ebcc15becde | [
"MIT"
] | null | null | null | runner/custom_template_factory.py | roberto-mardeni/BatchExplorer-data | 9772d4ffafbd5688938afd9305b75ebcc15becde | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import json
"""
This module responsibility is for reading and setting elements of the json templates in memory.
"""
def set_template_pool_id(in_memory_json_object: str, pool_id: str):
"""
Finds the poolName or poolId inside the in_memory_json_object and sets the value based on the poo... | 37.632075 | 120 | 0.691401 | 1,140 | 7,978 | 4.595614 | 0.125439 | 0.116434 | 0.121397 | 0.182096 | 0.634472 | 0.57511 | 0.489788 | 0.333461 | 0.313609 | 0.226952 | 0 | 0.000478 | 0.213963 | 7,978 | 211 | 121 | 37.810427 | 0.834955 | 0.341188 | 0 | 0.139535 | 0 | 0 | 0.15609 | 0.00534 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104651 | false | 0 | 0.011628 | 0 | 0.197674 | 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 |
35b946480950200be4aacec21f85427415cbe632 | 5,161 | py | Python | gcn/lib/databases/ready2upload/lib_hgmd.py | kalon33/divine | 2db92c093d98722f011224140e652c162a4f4336 | [
"Intel"
] | 11 | 2018-11-09T15:47:14.000Z | 2021-08-18T18:05:11.000Z | gcn/lib/databases/ready2upload/lib_hgmd.py | kalon33/divine | 2db92c093d98722f011224140e652c162a4f4336 | [
"Intel"
] | 5 | 2018-08-31T15:07:20.000Z | 2020-03-30T18:52:04.000Z | gcn/lib/databases/ready2upload/lib_hgmd.py | kalon33/divine | 2db92c093d98722f011224140e652c162a4f4336 | [
"Intel"
] | 1 | 2019-04-18T13:42:30.000Z | 2019-04-18T13:42:30.000Z | #
# COPYRIGHT (C) 2002-2011 Rajgopal Srinivasan and modified by changjin.hong@gmail.com
#
"""
.. module:: anyopen
:platform: Unix, Windows, MacOSX
:synopsis: Transparent opening of compressed and uncompressed files
.. moduleauthor:: ; changjin.hong@gmail.com
select
am.acc_num as 'hgmd_accession_id',
coalesce(hg... | 36.602837 | 327 | 0.720016 | 818 | 5,161 | 4.381418 | 0.310513 | 0.027344 | 0.015625 | 0.02846 | 0.196987 | 0.152344 | 0.142299 | 0.12779 | 0.087612 | 0.066964 | 0 | 0.01258 | 0.152877 | 5,161 | 140 | 328 | 36.864286 | 0.807182 | 0.019182 | 0 | 0.365079 | 0 | 0 | 0.054971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.015873 | null | null | 0.031746 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
35bd00dff5214f7993e5de8418e39979b321422a | 1,460 | py | Python | scripts/type-generator/generate-native-extern.py | PointKernel/timemory | a8a282d0c414353559a337de9786697ad136cf06 | [
"MIT"
] | 5 | 2018-01-19T06:18:00.000Z | 2019-07-19T16:08:46.000Z | scripts/type-generator/generate-native-extern.py | PointKernel/timemory | a8a282d0c414353559a337de9786697ad136cf06 | [
"MIT"
] | 1 | 2018-02-09T21:33:08.000Z | 2018-02-11T23:39:47.000Z | scripts/type-generator/generate-native-extern.py | PointKernel/timemory | a8a282d0c414353559a337de9786697ad136cf06 | [
"MIT"
] | 2 | 2019-06-30T00:46:54.000Z | 2019-07-09T18:35:45.000Z | #!/usr/bin/env python
import sys
import argparse
# read in components and mangled enums
from timemory_types import native_components
def generate_extern(component, key, alias, suffix, specify_comp=True):
"""
This function generates a type trait label for C++
"""
if specify_comp:
return "TIMEM... | 32.444444 | 89 | 0.585616 | 157 | 1,460 | 5.261147 | 0.471338 | 0.077482 | 0.05569 | 0.062954 | 0.121065 | 0.121065 | 0.121065 | 0.121065 | 0.121065 | 0 | 0 | 0.00277 | 0.258219 | 1,460 | 44 | 90 | 33.181818 | 0.759926 | 0.073973 | 0 | 0 | 1 | 0 | 0.157303 | 0.037453 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.096774 | 0 | 0.193548 | 0.064516 | 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 |
35bd66e40c3b6b6c20f6691d4f845196c4521ffc | 3,582 | py | Python | code/makeClimateDataTable.py | hannahchuh/Modelling-Temperature-Related-Mortality-in-NYC | b7829f9cd24b6f4b1825cbded7cc8508a7857c7a | [
"MIT"
] | null | null | null | code/makeClimateDataTable.py | hannahchuh/Modelling-Temperature-Related-Mortality-in-NYC | b7829f9cd24b6f4b1825cbded7cc8508a7857c7a | [
"MIT"
] | null | null | null | code/makeClimateDataTable.py | hannahchuh/Modelling-Temperature-Related-Mortality-in-NYC | b7829f9cd24b6f4b1825cbded7cc8508a7857c7a | [
"MIT"
] | null | null | null | """
Read in date and climate data for 1987-2000. Combine all data and write to excel file
"""
# MODULES
import datetime
import pickle
import matplotlib.pyplot as plt
import numpy
from decimal import Decimal
import csv
import re
# FUNCTIONS
def rollingAvg(lag, oldSet):
newSet = []
# insert na... | 24.534247 | 86 | 0.622278 | 400 | 3,582 | 5.5725 | 0.405 | 0.034993 | 0.025572 | 0.00987 | 0.016151 | 0.016151 | 0 | 0 | 0 | 0 | 0 | 0.026906 | 0.252931 | 3,582 | 145 | 87 | 24.703448 | 0.806054 | 0.107482 | 0 | 0.063158 | 0 | 0 | 0.031952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.073684 | null | null | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
35be728517f70da5d0ddea4c351ff3b779c4e041 | 1,652 | py | Python | optmlstat/functions/neural_network/simple_feedforward_neural_network.py | sungheeyun/optmlstat | 11d529c915bf27976da9157471a6dbf7df34d205 | [
"MIT"
] | 4 | 2020-04-08T03:48:59.000Z | 2020-12-30T01:39:52.000Z | optmlstat/functions/neural_network/simple_feedforward_neural_network.py | sungheeyun/optmlstat | 11d529c915bf27976da9157471a6dbf7df34d205 | [
"MIT"
] | null | null | null | optmlstat/functions/neural_network/simple_feedforward_neural_network.py | sungheeyun/optmlstat | 11d529c915bf27976da9157471a6dbf7df34d205 | [
"MIT"
] | 1 | 2020-04-08T04:04:00.000Z | 2020-04-08T04:04:00.000Z | from typing import List, Callable
from numpy import ndarray
from functions.basic_functions.composite_function import CompositeFunction
from functions.basic_functions.component_wise_function import ComponentWiseFunction
from functions.basic_functions.affine_function import AffineFunction
from functions.function_base i... | 38.418605 | 105 | 0.717312 | 195 | 1,652 | 5.805128 | 0.364103 | 0.126325 | 0.066254 | 0.084806 | 0.189046 | 0.113074 | 0.113074 | 0 | 0 | 0 | 0 | 0.006149 | 0.21247 | 1,652 | 42 | 106 | 39.333333 | 0.863951 | 0.22276 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.058824 | false | 0 | 0.352941 | 0 | 0.470588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
35ca66a36fd9441520f0d7bf921426751ab61340 | 1,012 | py | Python | drf_auth/urls.py | thomas545/django-drf-auth | b73c10057b22393ab5c5be7b63a6afaea6cabb0c | [
"MIT"
] | 3 | 2020-03-21T17:49:42.000Z | 2021-07-30T14:18:48.000Z | drf_auth/urls.py | thomas545/django-drf-auth | b73c10057b22393ab5c5be7b63a6afaea6cabb0c | [
"MIT"
] | 6 | 2021-03-19T01:02:13.000Z | 2021-09-22T18:46:47.000Z | drf_auth/urls.py | thomas545/django-drf-auth | b73c10057b22393ab5c5be7b63a6afaea6cabb0c | [
"MIT"
] | 1 | 2020-03-24T09:56:01.000Z | 2020-03-24T09:56:01.000Z |
"""URL Configuration"""
from django.urls import path, include
from . import views
from rest_auth.views import LogoutView
urlpatterns = [
path('user/', views.UserDetailsAPIView.as_view(), name='rest_user_details'),
path('login/', views.LoginUserView.as_view(), name='account_login'),
path('password/change... | 46 | 140 | 0.735178 | 121 | 1,012 | 5.942149 | 0.322314 | 0.066759 | 0.111266 | 0.097357 | 0.105702 | 0.075104 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1,012 | 22 | 141 | 46 | 0.781522 | 0.016798 | 0 | 0 | 0 | 0 | 0.348837 | 0.176946 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
35cb1bdd61a4227377230578177fea87ecdba4e3 | 4,902 | py | Python | pydov/util/hooks.py | TimFranken/pydov | da393129207c93ab845a28525864c13374459dbf | [
"MIT"
] | null | null | null | pydov/util/hooks.py | TimFranken/pydov | da393129207c93ab845a28525864c13374459dbf | [
"MIT"
] | null | null | null | pydov/util/hooks.py | TimFranken/pydov | da393129207c93ab845a28525864c13374459dbf | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Module implementing a simple hooks system to allow late-binding actions to
PyDOV events."""
import sys
import time
class AbstractHook(object):
"""Abstract base class for custom hook implementations.
Provides all available methods with a default implementation to do
nothing. Th... | 27.539326 | 77 | 0.569563 | 553 | 4,902 | 4.895118 | 0.260398 | 0.033247 | 0.055412 | 0.042482 | 0.543037 | 0.500185 | 0.417436 | 0.409309 | 0.343184 | 0.310676 | 0 | 0.007673 | 0.335373 | 4,902 | 177 | 78 | 27.694915 | 0.823204 | 0.428601 | 0 | 0.418182 | 0 | 0 | 0.021267 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.090909 | 0.036364 | 0 | 0.272727 | 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 |
35d29c134cfd2e661174761ab7a3b646c04a1edc | 7,437 | py | Python | data/generation_scripts/PhiFlow/varied_sim_utils.py | tum-pbs/VOLSIM | 795a31c813bf072eb88289126d7abd9fba8b0e54 | [
"MIT"
] | 7 | 2022-01-28T09:40:15.000Z | 2022-03-07T01:52:00.000Z | data/generation_scripts/PhiFlow/varied_sim_utils.py | tum-pbs/VOLSIM | 795a31c813bf072eb88289126d7abd9fba8b0e54 | [
"MIT"
] | null | null | null | data/generation_scripts/PhiFlow/varied_sim_utils.py | tum-pbs/VOLSIM | 795a31c813bf072eb88289126d7abd9fba8b0e54 | [
"MIT"
] | 1 | 2022-03-14T22:08:47.000Z | 2022-03-14T22:08:47.000Z | import numpy as np
from phi import struct
from phi.math.math_util import is_static_shape
# creates normal distributed noise that can vary over the batch
def generateNoise(grid, var, mean=0, seed=0, dtype=np.float32):
size = grid.data.shape
rand = np.random.RandomState(seed)
def array(shape):
result... | 42.988439 | 110 | 0.51553 | 1,076 | 7,437 | 3.552045 | 0.19052 | 0.014914 | 0.089482 | 0.021978 | 0.415489 | 0.244113 | 0.216379 | 0.192569 | 0.187075 | 0.16405 | 0 | 0.056113 | 0.302676 | 7,437 | 173 | 111 | 42.988439 | 0.680872 | 0.094796 | 0 | 0.213793 | 1 | 0 | 0.037252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041379 | false | 0 | 0.02069 | 0 | 0.103448 | 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 |
35d2c035ada3c4a30650fbb0c5a2c62bfcdac2cc | 1,054 | py | Python | setup.py | Gunak/Flask-ProjectManager | b55f9af0327a973ab52073558c733025b24eb329 | [
"MIT"
] | null | null | null | setup.py | Gunak/Flask-ProjectManager | b55f9af0327a973ab52073558c733025b24eb329 | [
"MIT"
] | null | null | null | setup.py | Gunak/Flask-ProjectManager | b55f9af0327a973ab52073558c733025b24eb329 | [
"MIT"
] | 1 | 2017-05-21T13:48:28.000Z | 2017-05-21T13:48:28.000Z | from setuptools import setup
def readme():
with open('README.rst') as f:
return f.read()
setup(name='Flask-NewProject',
version='0.2.1',
description = 'Create new Flask project.',
long_description = readme(),
url='https://github.com/Gunak/Flask-NewProject/',
classifiers ... | 31 | 82 | 0.565465 | 100 | 1,054 | 5.87 | 0.69 | 0.127768 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010782 | 0.296015 | 1,054 | 33 | 83 | 31.939394 | 0.780323 | 0.043643 | 0 | 0 | 0 | 0 | 0.473473 | 0.122122 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | true | 0 | 0.037037 | 0 | 0.111111 | 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 |
35db701e6c394f377d9c156dfd4ab5542e88a9fc | 1,876 | py | Python | docs/conf.py | caputomarcos/django-bmf | 0d07a7d3f6a3ecfaca6c9376e764add1715cfd33 | [
"BSD-3-Clause"
] | null | null | null | docs/conf.py | caputomarcos/django-bmf | 0d07a7d3f6a3ecfaca6c9376e764add1715cfd33 | [
"BSD-3-Clause"
] | null | null | null | docs/conf.py | caputomarcos/django-bmf | 0d07a7d3f6a3ecfaca6c9376e764add1715cfd33 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import sys, os
sys.path.insert(0, os.path.abspath('.'))
sys.path.insert(0, os.path.abspath('..'))
sys.path.insert(0, os.path.join(os.path.abspath('.'), '_ext'))
# -- General configuration -----------------------------------------------------
# Add any Sphinx extension module names here, as st... | 28 | 80 | 0.680171 | 250 | 1,876 | 5.008 | 0.528 | 0.057508 | 0.03115 | 0.033546 | 0.095847 | 0.059105 | 0.059105 | 0.059105 | 0.059105 | 0.059105 | 0 | 0.007495 | 0.146588 | 1,876 | 66 | 81 | 28.424242 | 0.774516 | 0.584222 | 0 | 0 | 0 | 0 | 0.221192 | 0 | 0 | 0 | 0 | 0.015152 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 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 |
35df1e0532a1ce340248d6841d3120ae122573a8 | 2,757 | py | Python | app.py | asobey/OnlineUnitConverter | c1f207de1c0a84c55f0270f40b867f60197df3f5 | [
"MIT"
] | null | null | null | app.py | asobey/OnlineUnitConverter | c1f207de1c0a84c55f0270f40b867f60197df3f5 | [
"MIT"
] | null | null | null | app.py | asobey/OnlineUnitConverter | c1f207de1c0a84c55f0270f40b867f60197df3f5 | [
"MIT"
] | null | null | null | #!python3
from flask import Flask, render_template, request
from simpleeval import simple_eval
import logging
logging.basicConfig(level=logging.DEBUG)
# Declare the App
app = Flask(__name__)
@app.route('/') # Start the app route ('/')
def main():
print('-----------------started-----------------')
return re... | 37.256757 | 78 | 0.553863 | 401 | 2,757 | 3.600998 | 0.194514 | 0.159972 | 0.138504 | 0.17313 | 0.235457 | 0.186981 | 0.101108 | 0.101108 | 0.054017 | 0.054017 | 0 | 0.049074 | 0.275662 | 2,757 | 73 | 79 | 37.767123 | 0.674011 | 0.048604 | 0 | 0.033898 | 0 | 0 | 0.214832 | 0.024847 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033898 | false | 0 | 0.050847 | 0 | 0.254237 | 0.016949 | 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 |
35dfb782045695863e3ac353c2acba66a70f94c9 | 2,657 | py | Python | samples_to_opus_zip.py | akx/ikuinen-webbikoodaus | 19146b32282b9a70a88a212bed5d1570b7705a83 | [
"MIT"
] | 4 | 2020-01-14T08:48:10.000Z | 2020-01-20T08:48:42.000Z | samples_to_opus_zip.py | akx/ikuinen-webbikoodaus | 19146b32282b9a70a88a212bed5d1570b7705a83 | [
"MIT"
] | 6 | 2021-03-10T04:09:43.000Z | 2022-02-18T18:36:14.000Z | samples_to_opus_zip.py | akx/ikuinen-webbikoodaus | 19146b32282b9a70a88a212bed5d1570b7705a83 | [
"MIT"
] | null | null | null | import multiprocessing
import os
import random
import re
import subprocess
import wave
import zipfile
from collections import namedtuple
from typing import List
EncodeResult = namedtuple('EncodeResult', ('filename', 'opus_data'))
OPUSTAGS_PATH = os.environ.get('OPUSTAGS_PATH')
def get_wave_length_sec(filename: str)... | 35.905405 | 111 | 0.634927 | 326 | 2,657 | 4.98773 | 0.398773 | 0.03936 | 0.02214 | 0.02952 | 0.054121 | 0.02952 | 0 | 0 | 0 | 0 | 0 | 0.007851 | 0.23297 | 2,657 | 73 | 112 | 36.39726 | 0.78999 | 0.18216 | 0 | 0 | 0 | 0 | 0.176634 | 0.039407 | 0 | 0 | 0 | 0.013699 | 0 | 1 | 0.086957 | false | 0 | 0.195652 | 0 | 0.347826 | 0.065217 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
35e5e8059c3942d1b2296aaa0a2527160ba2de7a | 1,320 | py | Python | code/buildJune.py | 3plus2/3plus2 | b66703f8947010b30ffbce66575bca98bba91b5a | [
"MIT"
] | null | null | null | code/buildJune.py | 3plus2/3plus2 | b66703f8947010b30ffbce66575bca98bba91b5a | [
"MIT"
] | null | null | null | code/buildJune.py | 3plus2/3plus2 | b66703f8947010b30ffbce66575bca98bba91b5a | [
"MIT"
] | null | null | null | import idml
import ePub
# idml definitions
definitions = {}
definitions["mypath"] = "/Volumes/Datos002/WESTPARK/iPray/june/deployment/orig/Stories/"
definitions["outPath"] = "/Volumes/Datos002/WESTPARK/iPray/june/deployment/dest/Stories/"
definitions["TEXTS_NUM"] = 37
definitions["TEXT_GENERAL_DIR"] = "/Users/chus/D... | 31.428571 | 92 | 0.759848 | 138 | 1,320 | 7.173913 | 0.398551 | 0.090909 | 0.139394 | 0.169697 | 0.214141 | 0.084848 | 0 | 0 | 0 | 0 | 0 | 0.022783 | 0.068939 | 1,320 | 41 | 93 | 32.195122 | 0.78275 | 0.073485 | 0 | 0 | 0 | 0 | 0.563742 | 0.328642 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.095238 | 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 |
35e5febb948f8d366cf357f4f96aa748980da95b | 1,031 | py | Python | src/login_bot.py | josearthur/bbb-v2 | 261bf9f0194ce9dc2204537685422f83dfe44edd | [
"Apache-2.0"
] | 97 | 2020-03-31T18:43:02.000Z | 2021-04-30T15:10:13.000Z | src/login_bot.py | josearthur/bbb-v2 | 261bf9f0194ce9dc2204537685422f83dfe44edd | [
"Apache-2.0"
] | 34 | 2020-04-04T16:00:23.000Z | 2022-03-12T00:22:05.000Z | src/login_bot.py | josearthur/bbb-v2 | 261bf9f0194ce9dc2204537685422f83dfe44edd | [
"Apache-2.0"
] | 40 | 2020-04-06T03:58:05.000Z | 2022-03-09T03:08:00.000Z | # coding: utf-8
import requests
import json
from colorama import Fore
def login_bot(email, password):
headers = {
"Host": "login.globo.com",
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0",
"Content-Type": "application/json",
"Orig... | 28.638889 | 115 | 0.589719 | 122 | 1,031 | 4.959016 | 0.655738 | 0.049587 | 0.064463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035019 | 0.252182 | 1,031 | 35 | 116 | 29.457143 | 0.749676 | 0.012609 | 0 | 0 | 0 | 0.035714 | 0.406496 | 0.048228 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0.071429 | 0.107143 | 0 | 0.178571 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
35e80f97ffc36a92a162b4679cb7cde77423571a | 1,795 | py | Python | ecommerce/views.py | Oussail/Demo-eCommerce-App | 99244b8b518cb74c6f2dd696fa3dc2050b994e00 | [
"MIT"
] | 1 | 2018-03-13T14:44:19.000Z | 2018-03-13T14:44:19.000Z | ecommerce/views.py | Oussail/Full-eCommerce-App | 99244b8b518cb74c6f2dd696fa3dc2050b994e00 | [
"MIT"
] | null | null | null | ecommerce/views.py | Oussail/Full-eCommerce-App | 99244b8b518cb74c6f2dd696fa3dc2050b994e00 | [
"MIT"
] | null | null | null | from django.contrib.auth import authenticate, login, get_user_model
from django.http import HttpResponseRedirect
from django.shortcuts import render, redirect
from .forms import ContactForm, LoginForm, RegisterForm
def index(request):
return render(request, "index.html", {})
def login_auth(request):
form = LoginF... | 28.492063 | 132 | 0.73649 | 234 | 1,795 | 5.508547 | 0.24359 | 0.059736 | 0.081458 | 0.09775 | 0.257564 | 0.17533 | 0.069822 | 0.069822 | 0.069822 | 0.069822 | 0 | 0 | 0.134262 | 1,795 | 62 | 133 | 28.951613 | 0.829472 | 0.016156 | 0 | 0.294118 | 0 | 0 | 0.089002 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098039 | false | 0.078431 | 0.078431 | 0.039216 | 0.313725 | 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 |
ea05f0f1d58f8d9a5e7e9eecc061e0177a052d1c | 989 | py | Python | models.py | voley55/samplePlanetaryService | 8df336a2ca89b57e31caad6e988623617d268b28 | [
"Apache-2.0"
] | null | null | null | models.py | voley55/samplePlanetaryService | 8df336a2ca89b57e31caad6e988623617d268b28 | [
"Apache-2.0"
] | null | null | null | models.py | voley55/samplePlanetaryService | 8df336a2ca89b57e31caad6e988623617d268b28 | [
"Apache-2.0"
] | null | null | null | from sqlalchemy import Column, Integer, String, Float
from app import db, ma
class User(db.Model):
__tablename__ = 'users'
id = Column(Integer, primary_key=True)
first_name = Column(String)
last_name = Column(String)
email = Column(String, unique=True)
password = Column(String)
class Planet(... | 26.026316 | 103 | 0.690597 | 121 | 989 | 5.429752 | 0.322314 | 0.127854 | 0.073059 | 0.066971 | 0.158295 | 0.08828 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187058 | 989 | 38 | 104 | 26.026316 | 0.817164 | 0 | 0 | 0.071429 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.071429 | 0 | 0.785714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ea0a1171dc395ba2edbf8b2ec7e1a723af9c9cd5 | 1,353 | py | Python | Coding/Competitive_Coding/CodeForces/0 - 1300/Word.py | Phantom586/My_Codes | 900c4e5e95ab833e4f78f1594e3b25178a74f1a7 | [
"MIT"
] | null | null | null | Coding/Competitive_Coding/CodeForces/0 - 1300/Word.py | Phantom586/My_Codes | 900c4e5e95ab833e4f78f1594e3b25178a74f1a7 | [
"MIT"
] | null | null | null | Coding/Competitive_Coding/CodeForces/0 - 1300/Word.py | Phantom586/My_Codes | 900c4e5e95ab833e4f78f1594e3b25178a74f1a7 | [
"MIT"
] | null | null | null | # Vasya is very upset that many people on the Net mix uppercase and lowercase letters in one word.
# That's why he decided to invent an extension for his favorite browser that would change the letters' register
# in every word so that it either only consisted of lowercase letters or, vice versa, only of uppercase ones.... | 30.75 | 115 | 0.722838 | 222 | 1,353 | 4.414414 | 0.445946 | 0.028571 | 0.064286 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007583 | 0.220251 | 1,353 | 43 | 116 | 31.465116 | 0.919431 | 0.816704 | 0 | 0.166667 | 0 | 0 | 0 | 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 | 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 |
ea138d4b4e947fa0c34ef8498a8c8f2c223866e8 | 437 | py | Python | setup.py | alexsilva/pycharm-cvs-xlm | 644b1243120e6333b7b7aab93565646d28982e83 | [
"MIT"
] | 3 | 2019-02-27T06:17:51.000Z | 2019-03-27T07:17:17.000Z | setup.py | alexsilva/pycharm-cvs-xlm | 644b1243120e6333b7b7aab93565646d28982e83 | [
"MIT"
] | null | null | null | setup.py | alexsilva/pycharm-cvs-xlm | 644b1243120e6333b7b7aab93565646d28982e83 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='pychnarm-vcs-xml',
py_modules=[
'gitpycharm',
"gitsubmodule"
],
version='4.0',
url='https://github.com/alexsilva/pycharm-cvs-xlm',
license='MIT',
author='alex',
author_email='alex@fabricadigital.com.br',
description='Search f... | 27.3125 | 139 | 0.665904 | 56 | 437 | 5.160714 | 0.839286 | 0.041522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005747 | 0.203661 | 437 | 15 | 140 | 29.133333 | 0.824713 | 0 | 0 | 0 | 0 | 0.071429 | 0.546911 | 0.059497 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 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 |
ea166814cead24fc733b0388f738af8bda278763 | 6,423 | py | Python | autoML.py | catsaveearth/Machine_Learning_termproject | f7bf057d97d6c87e071c8dc0dd47697db410cfe7 | [
"MIT"
] | null | null | null | autoML.py | catsaveearth/Machine_Learning_termproject | f7bf057d97d6c87e071c8dc0dd47697db410cfe7 | [
"MIT"
] | null | null | null | autoML.py | catsaveearth/Machine_Learning_termproject | f7bf057d97d6c87e071c8dc0dd47697db410cfe7 | [
"MIT"
] | null | null | null | import numpy as np
from sklearn import metrics
import time
from sklearn.model_selection import train_test_split
from sklearn.model_selection import GridSearchCV, train_test_split
# clustering scoring
def purity_score(y_true, y_pred):
# compute contingency matrix (also called confusion matrix)
contingency_matri... | 32.938462 | 111 | 0.501323 | 701 | 6,423 | 4.339515 | 0.195435 | 0.08284 | 0.063116 | 0.055884 | 0.643655 | 0.623274 | 0.613741 | 0.599606 | 0.599606 | 0.599606 | 0 | 0.012919 | 0.433598 | 6,423 | 195 | 112 | 32.938462 | 0.823255 | 0.108205 | 0 | 0.713115 | 0 | 0 | 0.020354 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016393 | false | 0 | 0.040984 | 0 | 0.081967 | 0.040984 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ea1bb615887be0bd9b6fe5d2fd66d8cc2f699444 | 1,082 | py | Python | programming-laboratory-I/rofs/campanha.py | MisaelAugusto/computer-science | d21335a2dc824b54ffe828370f0e6717fd0c7c27 | [
"MIT"
] | null | null | null | programming-laboratory-I/rofs/campanha.py | MisaelAugusto/computer-science | d21335a2dc824b54ffe828370f0e6717fd0c7c27 | [
"MIT"
] | null | null | null | programming-laboratory-I/rofs/campanha.py | MisaelAugusto/computer-science | d21335a2dc824b54ffe828370f0e6717fd0c7c27 | [
"MIT"
] | null | null | null | # coding: utf-8
# Aluno: Misael Augusto
# Matrícula: 117110525
# Problema: Campanha
gols_marcados = 0
gols_sofridos = 0
pontos_fora = 0
pontos_casa = 0
vitorias = 0
derrotas = 0
empates = 0
for i in range(10):
partida = raw_input()
if partida[5] == "c":
gols_marcados += int(partida[0])
gols_sofridos += int(parti... | 23.021277 | 77 | 0.648799 | 160 | 1,082 | 4.26875 | 0.2875 | 0.175695 | 0.096633 | 0.064422 | 0.228404 | 0.228404 | 0 | 0 | 0 | 0 | 0 | 0.049539 | 0.197782 | 1,082 | 46 | 78 | 23.521739 | 0.737327 | 0.069316 | 0 | 0.236842 | 0 | 0 | 0.085828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.131579 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ea1f0f44c4bfa89142022b38eb4236785a01efd0 | 933 | py | Python | clusterSameSSIDSet.py | rc1035/directed-probe-matching | c724096672e778202d9e8ed197cdf7395ea1d211 | [
"MIT"
] | 10 | 2017-08-16T12:16:52.000Z | 2022-02-26T05:09:39.000Z | clusterSameSSIDSet.py | d15c0/directed-probe-matching | c724096672e778202d9e8ed197cdf7395ea1d211 | [
"MIT"
] | 1 | 2019-07-10T12:00:00.000Z | 2019-07-10T12:00:00.000Z | clusterSameSSIDSet.py | d15c0/directed-probe-matching | c724096672e778202d9e8ed197cdf7395ea1d211 | [
"MIT"
] | 4 | 2017-11-30T11:01:06.000Z | 2019-11-03T23:39:40.000Z | #!/usr/bin/env python3.6
"""
Cluster together tokens that share the SSID set.
An optimal clustering is such that every token in a cluster belongs
to the same MAC address. AND every token has been clustered.
"""
__author__ = "Richard Cosgrove"
from collections import defaultdict
from pprint import pprint
# Local imp... | 27.441176 | 77 | 0.768489 | 132 | 933 | 5.106061 | 0.5 | 0.062315 | 0.048961 | 0.05638 | 0.077151 | 0.077151 | 0 | 0 | 0 | 0 | 0 | 0.002551 | 0.1597 | 933 | 33 | 78 | 28.272727 | 0.857143 | 0.300107 | 0 | 0 | 0 | 0 | 0.172897 | 0.040498 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.466667 | 0.266667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ea1f366f88abcf28f1fb421c971bd37f44d84200 | 15,605 | py | Python | Autokern.py | aaronbell/GlyphsScripts | fb1c36a291c4d336b20c0ec56be36a8ca74b083f | [
"MIT"
] | null | null | null | Autokern.py | aaronbell/GlyphsScripts | fb1c36a291c4d336b20c0ec56be36a8ca74b083f | [
"MIT"
] | null | null | null | Autokern.py | aaronbell/GlyphsScripts | fb1c36a291c4d336b20c0ec56be36a8ca74b083f | [
"MIT"
] | null | null | null | #MenuTitle: Autokern
# -*- coding: utf-8 -*-
__doc__="""
Autokerner!
"""
import vanilla
import math
import itertools
import os
pathname = os.path.dirname(os.path.realpath(__file__))
os.chdir(pathname)
sys.path.insert(0,pathname+"/extra_python_libs")
from Foundation import NSMinX, NSMakePoint
failed = []
try:
fr... | 35.067416 | 313 | 0.620955 | 2,090 | 15,605 | 4.569856 | 0.199522 | 0.025128 | 0.025128 | 0.015077 | 0.327086 | 0.227201 | 0.17705 | 0.114857 | 0.077165 | 0.047848 | 0 | 0.033814 | 0.23627 | 15,605 | 444 | 314 | 35.146396 | 0.767578 | 0.035117 | 0 | 0.222222 | 0 | 0.002646 | 0.091556 | 0.003457 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.029101 | null | null | 0.010582 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ea2716e8af0007ebdeeac2b548b91f8d067a080b | 379 | py | Python | tests/example/startup.py | felixludos/omni-f | 0bbe0bc362c332483877eff3a19266b60c175ad4 | [
"MIT"
] | 1 | 2021-04-13T14:01:48.000Z | 2021-04-13T14:01:48.000Z | tests/example/startup.py | felixludos/omni-f | 0bbe0bc362c332483877eff3a19266b60c175ad4 | [
"MIT"
] | null | null | null | tests/example/startup.py | felixludos/omni-f | 0bbe0bc362c332483877eff3a19266b60c175ad4 | [
"MIT"
] | 1 | 2021-11-24T13:36:41.000Z | 2021-11-24T13:36:41.000Z |
import omnifig as fig
@fig.Component('cmp1')
class Cmpn1:
def __init__(self, A):
self.a = A.pull('simple')
self.b = A.pull('default', 'worked')
self.c = A.pull('not_there', '<>alias_option')
self.d = A.pull('n1', '<>n2', True)
self.e = A.pull('unseen', silent=True)
@fig.AutoModifier('mod1'... | 18.047619 | 49 | 0.591029 | 56 | 379 | 3.821429 | 0.589286 | 0.116822 | 0.102804 | 0.11215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016835 | 0.216359 | 379 | 20 | 50 | 18.95 | 0.703704 | 0 | 0 | 0.153846 | 0 | 0 | 0.174157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0.076923 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ea29475fe391e014b1a0f5a357b980fc4defe862 | 1,012 | py | Python | urls_manage.py | yangzijian000/gupiao_spider | 2c039fa7e5fbf9982c206fea5a348d6267cdc0fb | [
"MIT"
] | null | null | null | urls_manage.py | yangzijian000/gupiao_spider | 2c039fa7e5fbf9982c206fea5a348d6267cdc0fb | [
"MIT"
] | null | null | null | urls_manage.py | yangzijian000/gupiao_spider | 2c039fa7e5fbf9982c206fea5a348d6267cdc0fb | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 17-4-17 下午10:25
# @Author : YANGz1J
# @Site :
# @File : urls_manage.py
# @Software: PyCharm
class Urlmanager(object):
def __init__(self):
self.new_urls = set()
self.old_urls = set()
def add_new_url(self, url):
if url is ... | 25.3 | 65 | 0.567194 | 153 | 1,012 | 3.542484 | 0.30719 | 0.116236 | 0.162362 | 0.04428 | 0.055351 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0.322134 | 1,012 | 39 | 66 | 25.948718 | 0.769679 | 0.143281 | 0 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0.037037 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ea2c7c7cc5f4cb8219d94cd4301043671d1ae16d | 453 | py | Python | jobapp/migrations/0017_auto_20210430_0819.py | GyaniSherlock/Home-Service-Job-Portal | 9d6fee66ec18387f786d28c0862c8eedd8835487 | [
"MIT"
] | null | null | null | jobapp/migrations/0017_auto_20210430_0819.py | GyaniSherlock/Home-Service-Job-Portal | 9d6fee66ec18387f786d28c0862c8eedd8835487 | [
"MIT"
] | null | null | null | jobapp/migrations/0017_auto_20210430_0819.py | GyaniSherlock/Home-Service-Job-Portal | 9d6fee66ec18387f786d28c0862c8eedd8835487 | [
"MIT"
] | null | null | null | # Generated by Django 3.0 on 2021-04-30 08:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('jobapp', '0016_auto_20210422_1630'),
]
operations = [
migrations.AlterField(
model_name='job',
name='job_type',
... | 23.842105 | 121 | 0.580574 | 52 | 453 | 4.942308 | 0.807692 | 0.054475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102102 | 0.264901 | 453 | 18 | 122 | 25.166667 | 0.66967 | 0.094923 | 0 | 0 | 1 | 0 | 0.176471 | 0.056373 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ea32e0e89fd3448e307823e0ed9ac1e021c6321d | 557 | py | Python | tests/fixtures.py | 0x26res/cassarrow | 233b5a1d69885a1026f1754a81444496539bdee6 | [
"Apache-2.0"
] | null | null | null | tests/fixtures.py | 0x26res/cassarrow | 233b5a1d69885a1026f1754a81444496539bdee6 | [
"Apache-2.0"
] | null | null | null | tests/fixtures.py | 0x26res/cassarrow | 233b5a1d69885a1026f1754a81444496539bdee6 | [
"Apache-2.0"
] | null | null | null | import typing
import cassandra.cluster
import pytest
import cassarrow
@pytest.fixture()
def cluster() -> cassandra.cluster.Cluster:
return cassandra.cluster.Cluster()
@pytest.fixture()
def session(
cluster: cassandra.cluster.Cluster,
) -> typing.Iterator[cassandra.cluster.Session]:
with cluster.connec... | 19.892857 | 51 | 0.732496 | 64 | 557 | 6.34375 | 0.265625 | 0.275862 | 0.118227 | 0.147783 | 0.20197 | 0.20197 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156194 | 557 | 27 | 52 | 20.62963 | 0.86383 | 0 | 0 | 0.368421 | 0 | 0 | 0.016158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.210526 | 0.052632 | 0.421053 | 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 |
ea33ebe7526a2a689b1f30d426c764810e3eaa49 | 14,730 | py | Python | code/driver_manager.py | muniategui/ORM-Cookie | e6fa0f9de1541e6c9403ed06bb3031bf0f928951 | [
"Apache-2.0"
] | null | null | null | code/driver_manager.py | muniategui/ORM-Cookie | e6fa0f9de1541e6c9403ed06bb3031bf0f928951 | [
"Apache-2.0"
] | null | null | null | code/driver_manager.py | muniategui/ORM-Cookie | e6fa0f9de1541e6c9403ed06bb3031bf0f928951 | [
"Apache-2.0"
] | null | null | null | '''
*
* Copyright (C) 2020 Universitat Politècnica de Catalunya.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | 43.579882 | 249 | 0.613917 | 1,558 | 14,730 | 5.684852 | 0.195764 | 0.021452 | 0.034549 | 0.038388 | 0.5853 | 0.532347 | 0.484363 | 0.478943 | 0.460427 | 0.443265 | 0 | 0.006318 | 0.258588 | 14,730 | 337 | 250 | 43.709199 | 0.804688 | 0.128106 | 0 | 0.566038 | 0 | 0 | 0.2183 | 0.150517 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022642 | false | 0.071698 | 0.037736 | 0 | 0.086792 | 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 |
ea350c5821fb0de771c0ce1999c0ac5d81281d01 | 415 | py | Python | tests/hash/__init__.py | tektronix/syphon | 04460a1196c3e5a211d01cd1f02ab307b46d5932 | [
"MIT"
] | 3 | 2019-03-05T15:36:00.000Z | 2019-08-01T18:33:40.000Z | tests/hash/__init__.py | tektronix/syphon | 04460a1196c3e5a211d01cd1f02ab307b46d5932 | [
"MIT"
] | 32 | 2019-02-27T15:12:52.000Z | 2020-10-04T17:39:45.000Z | tests/hash/__init__.py | tektronix/syphon | 04460a1196c3e5a211d01cd1f02ab307b46d5932 | [
"MIT"
] | 3 | 2019-09-26T16:47:17.000Z | 2020-03-18T14:38:31.000Z | """tests.hash.__init__.py
Copyright Keithley Instruments, LLC.
Licensed under MIT (https://github.com/tektronix/syphon/blob/master/LICENSE)
"""
from typing import AnyStr, Union
from py._path.local import LocalPath
def _copy(source: Union[AnyStr, LocalPath], destination: Union[AnyStr, LocalPath]):
if not ... | 25.9375 | 83 | 0.739759 | 51 | 415 | 5.901961 | 0.666667 | 0.07309 | 0.13289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146988 | 415 | 15 | 84 | 27.666667 | 0.850282 | 0.33012 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 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 |
ea3a30ec7021159b97eb48842267b7fa78e296f9 | 3,628 | py | Python | alexandriadocs/projects/ajax.py | srtab/alexandria-docs | 94b221a4140db23ad6d97a98c7cf521fbdefbc0a | [
"Apache-2.0"
] | 2 | 2017-03-26T22:38:49.000Z | 2017-04-22T11:28:07.000Z | alexandriadocs/projects/ajax.py | srtab/alexandriadocs | 94b221a4140db23ad6d97a98c7cf521fbdefbc0a | [
"Apache-2.0"
] | 22 | 2017-06-10T17:15:59.000Z | 2018-08-06T14:57:44.000Z | alexandriadocs/projects/ajax.py | srtab/alexandriadocs | 94b221a4140db23ad6d97a98c7cf521fbdefbc0a | [
"Apache-2.0"
] | 1 | 2018-08-04T08:12:47.000Z | 2018-08-04T08:12:47.000Z | # -*- coding: utf-8 -*-
from django.contrib.auth.decorators import login_required
from django.contrib.messages.views import SuccessMessageMixin
from django.shortcuts import get_object_or_404
from django.urls import reverse_lazy
from django.utils.decorators import method_decorator
from django.utils.functional import cac... | 35.920792 | 77 | 0.740628 | 350 | 3,628 | 7.48 | 0.297143 | 0.026738 | 0.038197 | 0.053476 | 0.298701 | 0.283804 | 0.25783 | 0.160428 | 0.131398 | 0.131398 | 0 | 0.002358 | 0.181643 | 3,628 | 100 | 78 | 36.28 | 0.879421 | 0.005788 | 0 | 0.356164 | 0 | 0 | 0.065394 | 0.005894 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09589 | false | 0 | 0.246575 | 0.054795 | 0.808219 | 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 |
ea3d4d32544c30bac664ae4421ba01a8d05939ac | 6,188 | py | Python | multi-tenant-network/playground/network_03022020/blueprint.py | halsayed/calm | 46c93ac2b02227663f0184d149f62d142b2638cc | [
"MIT"
] | null | null | null | multi-tenant-network/playground/network_03022020/blueprint.py | halsayed/calm | 46c93ac2b02227663f0184d149f62d142b2638cc | [
"MIT"
] | null | null | null | multi-tenant-network/playground/network_03022020/blueprint.py | halsayed/calm | 46c93ac2b02227663f0184d149f62d142b2638cc | [
"MIT"
] | 1 | 2021-11-16T10:28:42.000Z | 2021-11-16T10:28:42.000Z | # THIS FILE IS AUTOMATICALLY GENERATED.
# Disclaimer: Please test this file before using in production.
"""
Generated blueprint DSL (.py)
"""
import json # no_qa
import os # no_qa
from calm.dsl.builtins import * # no_qa
# Secret Variables
BP_CRED_PC_ADMIN_PASSWORD = read_local_file("BP_CRED_PC_ADMIN_PASSWORD")
... | 26.904348 | 116 | 0.537977 | 557 | 6,188 | 5.737882 | 0.29982 | 0.084481 | 0.061014 | 0.093867 | 0.459324 | 0.396746 | 0.349812 | 0.349812 | 0.349812 | 0.302566 | 0 | 0.01335 | 0.334195 | 6,188 | 229 | 117 | 27.021834 | 0.762379 | 0.044764 | 0 | 0.391304 | 1 | 0.005435 | 0.151181 | 0.041617 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01087 | false | 0.016304 | 0.016304 | 0 | 0.206522 | 0.005435 | 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 |
ea45433ffd687b3590a8cd3bf2c740bbc0eb42cf | 1,940 | py | Python | ros2interface/ros2interface/verb/show.py | Adlink-ROS/ros2cli | 025870f29da10877484c06a8b929ac3aaa591a44 | [
"Apache-2.0"
] | null | null | null | ros2interface/ros2interface/verb/show.py | Adlink-ROS/ros2cli | 025870f29da10877484c06a8b929ac3aaa591a44 | [
"Apache-2.0"
] | null | null | null | ros2interface/ros2interface/verb/show.py | Adlink-ROS/ros2cli | 025870f29da10877484c06a8b929ac3aaa591a44 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Open Source Robotics Foundation, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 35.272727 | 88 | 0.663918 | 249 | 1,940 | 5.096386 | 0.570281 | 0.047281 | 0.020489 | 0.025217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008838 | 0.241753 | 1,940 | 54 | 89 | 35.925926 | 0.853841 | 0.328866 | 0 | 0 | 0 | 0 | 0.175137 | 0.025801 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.066667 | 0.166667 | 0 | 0.366667 | 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 |
ea586ef6b68c956395d0123bc95030287c402177 | 872 | py | Python | identipy_app/migrations/0016_auto_20191025_1622.py | levitsky/identipy_server | 6dd04d929fadce01eec1ffd800cd3cd17da614b9 | [
"Apache-2.0"
] | null | null | null | identipy_app/migrations/0016_auto_20191025_1622.py | levitsky/identipy_server | 6dd04d929fadce01eec1ffd800cd3cd17da614b9 | [
"Apache-2.0"
] | null | null | null | identipy_app/migrations/0016_auto_20191025_1622.py | levitsky/identipy_server | 6dd04d929fadce01eec1ffd800cd3cd17da614b9 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.25 on 2019-10-25 13:22
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('identipy_app', '0015_auto_20190719_2316'),
]
operations = [
migrations.Alt... | 33.538462 | 203 | 0.581422 | 113 | 872 | 4.371681 | 0.584071 | 0.080972 | 0.101215 | 0.117409 | 0.11336 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053571 | 0.229358 | 872 | 25 | 204 | 34.88 | 0.681548 | 0.079128 | 0 | 0.222222 | 1 | 0 | 0.19625 | 0.02875 | 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 |
ea5aead69cfc5be45a136cd4416a59dd0c188c16 | 16,483 | py | Python | shared/python/bench.py | grammarware/slps | a39bb0f8454de8508269d4467f2501badbb2cc4a | [
"BSD-3-Clause"
] | 19 | 2015-01-18T13:50:02.000Z | 2021-11-08T11:23:22.000Z | shared/python/bench.py | grammarware/slps | a39bb0f8454de8508269d4467f2501badbb2cc4a | [
"BSD-3-Clause"
] | null | null | null | shared/python/bench.py | grammarware/slps | a39bb0f8454de8508269d4467f2501badbb2cc4a | [
"BSD-3-Clause"
] | 13 | 2015-01-18T13:50:07.000Z | 2020-05-26T10:10:18.000Z | #!/usr/local/bin/python
# -*- coding: utf-8 -*-
import os, sys, math
import slpsns
import elementtree.ElementTree as ET
import BGF
import metrics
class Bunch:
def __init__(self, **kwds):
self.__dict__.update(kwds)
def extend(self, **kwds):
self.__dict__.update(kwds)
class EmptyBench:
cache = None
vals = None
... | 31.943798 | 229 | 0.687618 | 2,620 | 16,483 | 4.25687 | 0.106489 | 0.134134 | 0.062136 | 0.079261 | 0.38994 | 0.201291 | 0.165157 | 0.120326 | 0.112167 | 0.097283 | 0 | 0.01255 | 0.158891 | 16,483 | 515 | 230 | 32.005825 | 0.791691 | 0.121155 | 0 | 0.085011 | 0 | 0 | 0.016286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.011186 | null | null | 0.013423 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ea62535cb5cd6b7af921959a7f7240e4e73745bd | 1,233 | py | Python | scrapy-template/spider/{{class_prefix}}.py | tomjamescn/gotmpl-templates | fbf0770b57e5005baf07655c7c4c8ba9881ca56b | [
"MIT"
] | null | null | null | scrapy-template/spider/{{class_prefix}}.py | tomjamescn/gotmpl-templates | fbf0770b57e5005baf07655c7c4c8ba9881ca56b | [
"MIT"
] | null | null | null | scrapy-template/spider/{{class_prefix}}.py | tomjamescn/gotmpl-templates | fbf0770b57e5005baf07655c7c4c8ba9881ca56b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import scrapy
class {{class_prefix}}Spider(scrapy.Spider):
name = '{{spider_name}}'
allowed_domains = ['{{spider_name}}']
custom_settings = {
'CONCURRENT_REQUESTS': 2,
'DOWNLOAD_DELAY': 0.25
}
defaultHeaders = {
'User-Agent': 'Mozilla/5.0 (Macintosh; ... | 35.228571 | 145 | 0.570965 | 142 | 1,233 | 4.887324 | 0.556338 | 0.063401 | 0.051873 | 0.060519 | 0.103746 | 0.103746 | 0.103746 | 0 | 0 | 0 | 0 | 0.037363 | 0.261963 | 1,233 | 34 | 146 | 36.264706 | 0.725275 | 0.03163 | 0 | 0 | 0 | 0.035714 | 0.255248 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.035714 | 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 |
ea669e317626c223fef73170126a66fdde7f9506 | 1,382 | py | Python | {{cookiecutter.project_name}}/{{cookiecutter.project_name}}/apps/accounts/views.py | vioquedu/django-redux-boilerplate | f63d7a99d825215ea4d5e2eb41bb6fc1be491718 | [
"BSD-3-Clause"
] | 5 | 2016-07-21T23:54:20.000Z | 2017-07-26T20:36:25.000Z | {{cookiecutter.project_name}}/{{cookiecutter.project_name}}/apps/accounts/views.py | vioquedu/django-redux-boilerplate | f63d7a99d825215ea4d5e2eb41bb6fc1be491718 | [
"BSD-3-Clause"
] | 5 | 2016-10-22T20:08:06.000Z | 2017-01-12T13:01:42.000Z | {{cookiecutter.project_name}}/{{cookiecutter.project_name}}/apps/accounts/views.py | vioquedu/django-redux-boilerplate | f63d7a99d825215ea4d5e2eb41bb6fc1be491718 | [
"BSD-3-Clause"
] | null | null | null |
import datetime
# Django imports
from django.contrib.auth.models import Group
from rest_framework import permissions
# Local imports
from config.settings import JWT_AUTH
# Create your views here.
def jwt_payload_handler(user):
"""Defines payload to be stored in JWT passed to the client.
"""
return {
... | 34.55 | 94 | 0.690304 | 185 | 1,382 | 5.010811 | 0.421622 | 0.12082 | 0.01726 | 0.028047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205499 | 1,382 | 39 | 95 | 35.435897 | 0.844262 | 0.298119 | 0 | 0 | 0 | 0 | 0.07173 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.222222 | 0 | 0.611111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ea676e21ebf881054ebc0fdf0448f3793a8631f0 | 522 | py | Python | process-similarity.py | toor-de-force/comparator | 5771d184cf4b402ab1af94fe3a29284170700ae3 | [
"MIT"
] | 1 | 2020-12-04T04:53:07.000Z | 2020-12-04T04:53:07.000Z | process-similarity.py | toor-de-force/comparator | 5771d184cf4b402ab1af94fe3a29284170700ae3 | [
"MIT"
] | null | null | null | process-similarity.py | toor-de-force/comparator | 5771d184cf4b402ab1af94fe3a29284170700ae3 | [
"MIT"
] | null | null | null | from .comparator import Comparator as c
import argparse
parser = argparse.ArgumentParser(description="Generate test binaries and their associated .ll with GLLVM")
parser.add_argument('file1', type=str,
help='the first file to compare')
parser.add_argument('file2', type=str,
help... | 29 | 106 | 0.716475 | 73 | 522 | 4.986301 | 0.575342 | 0.049451 | 0.093407 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009195 | 0.166667 | 522 | 17 | 107 | 30.705882 | 0.827586 | 0 | 0 | 0 | 1 | 0 | 0.266284 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ea6940407c28269ef248ba491ea6d2ed9701bff6 | 499 | py | Python | scripts/compute_rmse.py | yarny/gbdt | c99d90d7de57705c30b05d520a32e458985fd834 | [
"Apache-2.0"
] | 335 | 2016-09-18T07:49:25.000Z | 2022-03-19T15:24:38.000Z | scripts/compute_rmse.py | yarny/gbdt | c99d90d7de57705c30b05d520a32e458985fd834 | [
"Apache-2.0"
] | 16 | 2016-05-08T02:14:46.000Z | 2020-10-13T16:14:45.000Z | scripts/compute_rmse.py | yarny/gbdt | c99d90d7de57705c30b05d520a32e458985fd834 | [
"Apache-2.0"
] | 59 | 2016-08-05T22:22:16.000Z | 2022-01-07T23:57:45.000Z | #!/usr/bin/python
import math
import sys
def ComputeMse(scores, responses):
return math.sqrt(sum([(s-r)*(s-r) for s, r in zip(scores, responses)]) / len(scores))
def main():
scores = [float(line) for line in open(sys.argv[1]).readlines() if not line.startswith('#')]
responses = [float(line) for line in o... | 29.352941 | 99 | 0.663327 | 73 | 499 | 4.424658 | 0.452055 | 0.139319 | 0.154799 | 0.099071 | 0.352941 | 0.179567 | 0.179567 | 0.179567 | 0 | 0 | 0 | 0.004762 | 0.158317 | 499 | 16 | 100 | 31.1875 | 0.764286 | 0.032064 | 0 | 0 | 0 | 0 | 0.020747 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0 | null | null | 0 | 0.181818 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ea6e797481af813b1a811545b46f76e91127200e | 869 | py | Python | SUAVE/SUAVE-2.5.0/regression/scripts/test_input_output/test_d3js_tree.py | Vinicius-Tanigawa/Undergraduate-Research-Project | e92372f07882484b127d7affe305eeec2238b8a9 | [
"MIT"
] | null | null | null | SUAVE/SUAVE-2.5.0/regression/scripts/test_input_output/test_d3js_tree.py | Vinicius-Tanigawa/Undergraduate-Research-Project | e92372f07882484b127d7affe305eeec2238b8a9 | [
"MIT"
] | null | null | null | SUAVE/SUAVE-2.5.0/regression/scripts/test_input_output/test_d3js_tree.py | Vinicius-Tanigawa/Undergraduate-Research-Project | e92372f07882484b127d7affe305eeec2238b8a9 | [
"MIT"
] | null | null | null | # test_d3js.py
#
# Created: Trent Lukaczyk, Feb 2015
# Modified:
# ----------------------------------------------------------------------
# Imports
# ----------------------------------------------------------------------
import SUAVE.Input_Output as IO
import SUAVE.Core.Data as Data
# ---------------... | 21.725 | 80 | 0.270426 | 60 | 869 | 3.716667 | 0.55 | 0.107623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009722 | 0.171461 | 869 | 39 | 81 | 22.282051 | 0.3 | 0.623705 | 0 | 0 | 0 | 0 | 0.078176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ea70fff60c3db551aea3c3eb8ab708be7a54a17f | 732 | py | Python | app/__init__.py | mamu234/pitch3 | e4583c581c9c6c626fb38e008bb98238fface8be | [
"Apache-2.0"
] | null | null | null | app/__init__.py | mamu234/pitch3 | e4583c581c9c6c626fb38e008bb98238fface8be | [
"Apache-2.0"
] | null | null | null | app/__init__.py | mamu234/pitch3 | e4583c581c9c6c626fb38e008bb98238fface8be | [
"Apache-2.0"
] | null | null | null | from sqlite3 import dbapi2
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from os import path
DB_NAME = "database.db"
def create_up():
app = Flask(__name__)
app.config['SECRET_KEY'] = '123'
app.config['SQLALCHEMY_DATABASE_URI'] = f'sqlite:///{DB_NAME}'
db = SQLAlchemy(... | 17.853659 | 66 | 0.657104 | 97 | 732 | 4.752577 | 0.402062 | 0.039046 | 0.034707 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008929 | 0.234973 | 732 | 40 | 67 | 18.3 | 0.814286 | 0 | 0 | 0 | 0 | 0 | 0.120219 | 0.031421 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.318182 | 0 | 0.454545 | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ea9d5175e88ecb562d08cd14acdf937efbdc59ff | 5,012 | py | Python | ebl/transliteration/domain/atf_visitor.py | ElectronicBabylonianLiterature/dictionary | 5977a57314cf57f94f75cd12520f178b1d6a6555 | [
"MIT"
] | 4 | 2020-04-12T14:24:51.000Z | 2020-10-15T15:48:15.000Z | ebl/transliteration/domain/atf_visitor.py | ElectronicBabylonianLiterature/dictionary | 5977a57314cf57f94f75cd12520f178b1d6a6555 | [
"MIT"
] | 200 | 2019-12-04T09:53:20.000Z | 2022-03-30T20:11:31.000Z | ebl/transliteration/domain/atf_visitor.py | ElectronicBabylonianLiterature/dictionary | 5977a57314cf57f94f75cd12520f178b1d6a6555 | [
"MIT"
] | 1 | 2021-09-06T16:22:39.000Z | 2021-09-06T16:22:39.000Z | from typing import Callable, List, Optional, Sequence
from ebl.transliteration.domain.atf import Atf, WORD_SEPARATOR
from ebl.transliteration.domain.egyptian_metrical_feet_separator_token import (
EgyptianMetricalFeetSeparator,
)
from ebl.transliteration.domain.enclosure_tokens import (
AccidentalOmission,
... | 32.545455 | 82 | 0.692937 | 587 | 5,012 | 5.643952 | 0.155026 | 0.048295 | 0.058859 | 0.059161 | 0.33776 | 0.301539 | 0.271959 | 0.195291 | 0.139149 | 0.125264 | 0 | 0 | 0.210694 | 5,012 | 153 | 83 | 32.75817 | 0.837462 | 0 | 0 | 0.179487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.264957 | false | 0 | 0.068376 | 0.017094 | 0.376068 | 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 |
ea9ebd40c8eba1795eb0f530167219bc253ff37c | 3,474 | py | Python | utils/transforms.py | alexeybokhovkin/part-based-scan-understanding | f7c0e4a85a088e431b20fb3663cdbfc9a9f29ee3 | [
"MIT"
] | 19 | 2021-06-18T12:16:51.000Z | 2022-03-25T07:16:04.000Z | utils/transforms.py | alexeybokhovkin/part-based-scan-understanding | f7c0e4a85a088e431b20fb3663cdbfc9a9f29ee3 | [
"MIT"
] | 2 | 2021-06-20T08:38:09.000Z | 2022-01-18T13:37:04.000Z | utils/transforms.py | alexeybokhovkin/part-based-scan-understanding | f7c0e4a85a088e431b20fb3663cdbfc9a9f29ee3 | [
"MIT"
] | 3 | 2021-06-21T05:46:08.000Z | 2022-01-17T08:44:14.000Z | import numpy as np
import quaternion
def from_tqs_to_matrix(translation, quater, scale):
"""
(T(3), Q(4), S(3)) -> 4x4 Matrix
:param translation: 3 dim translation vector (np.array or list)
:param quater: 4 dim rotation quaternion (np.array or list)
:param scale: 3 dim scale vector (np.array or li... | 28.710744 | 74 | 0.585204 | 478 | 3,474 | 4.188285 | 0.190377 | 0.00999 | 0.017982 | 0.007992 | 0.738761 | 0.695305 | 0.695305 | 0.695305 | 0.678322 | 0.666334 | 0 | 0.038694 | 0.285838 | 3,474 | 121 | 75 | 28.710744 | 0.768239 | 0.337075 | 0 | 0.676923 | 0 | 0 | 0.022079 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.030769 | 0 | 0.184615 | 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 |
575d446b1875d8a5d0653247ca05134efd4ea1e2 | 2,409 | py | Python | users/serializers.py | rocky-roll-call/rrc-backend | 02e8e11c3dab7661e48650e2e861a4a97788a4ce | [
"MIT"
] | null | null | null | users/serializers.py | rocky-roll-call/rrc-backend | 02e8e11c3dab7661e48650e2e861a4a97788a4ce | [
"MIT"
] | null | null | null | users/serializers.py | rocky-roll-call/rrc-backend | 02e8e11c3dab7661e48650e2e861a4a97788a4ce | [
"MIT"
] | null | null | null | """
Serializers to convert API data to and from the database
"""
from django.contrib.auth.hashers import make_password
from django.contrib.auth.models import User
from rest_framework.serializers import ModelSerializer
from .models import Profile, UserPhoto
class UserSerializer(ModelSerializer):
"""
A seriali... | 23.851485 | 74 | 0.515982 | 210 | 2,409 | 5.766667 | 0.366667 | 0.046243 | 0.085879 | 0.095789 | 0.260941 | 0.234517 | 0.125516 | 0.125516 | 0.125516 | 0.125516 | 0 | 0 | 0.366957 | 2,409 | 100 | 75 | 24.09 | 0.794098 | 0.093815 | 0 | 0.450704 | 0 | 0 | 0.200473 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014085 | false | 0.056338 | 0.056338 | 0 | 0.197183 | 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 |
576524db9058d7bbf0e698adda4e3d072d607338 | 2,043 | py | Python | my_H3C/addflow_13.py | MrCocoaCat/ryu | 9e9571991a73380099b7ba7c6f37e0e587080a6a | [
"Apache-2.0"
] | null | null | null | my_H3C/addflow_13.py | MrCocoaCat/ryu | 9e9571991a73380099b7ba7c6f37e0e587080a6a | [
"Apache-2.0"
] | null | null | null | my_H3C/addflow_13.py | MrCocoaCat/ryu | 9e9571991a73380099b7ba7c6f37e0e587080a6a | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from ryu.base import app_manager
from ryu.controller import ofp_event
from ryu.controller.handler import CONFIG_DISPATCHER, MAIN_DISPATCHER
from ryu.controller.handler import set_ev_cls
from ryu.ofproto import ofproto_v1_3
from ryu.lib.packet import packet
from ryu.lib.packet import ethernet
fro... | 34.05 | 78 | 0.648067 | 234 | 2,043 | 5.431624 | 0.384615 | 0.04406 | 0.040126 | 0.037766 | 0.2738 | 0.06609 | 0 | 0 | 0 | 0 | 0 | 0.00879 | 0.276065 | 2,043 | 59 | 79 | 34.627119 | 0.850575 | 0.105237 | 0 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.205128 | null | null | 0.051282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
576bddb0536d893f1eb288694543613c29ccd2dd | 2,143 | py | Python | mainapp/migrations/0033_auto_20180817_1413.py | sndp487/rescuekerala | 6257019b6dbc16bc81a51ddb6bca4056c496b110 | [
"MIT"
] | 657 | 2018-08-16T02:28:37.000Z | 2020-05-10T15:04:42.000Z | mainapp/migrations/0033_auto_20180817_1413.py | sndp487/rescuekerala | 6257019b6dbc16bc81a51ddb6bca4056c496b110 | [
"MIT"
] | 850 | 2018-08-16T05:52:47.000Z | 2020-01-22T17:10:06.000Z | mainapp/migrations/0033_auto_20180817_1413.py | sndp487/rescuekerala | 6257019b6dbc16bc81a51ddb6bca4056c496b110 | [
"MIT"
] | 643 | 2018-08-15T10:47:32.000Z | 2020-05-07T07:47:57.000Z | # Generated by Django 2.1 on 2018-08-17 08:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("mainapp", "0032_auto_20180817_0444"),
]
operations = [
migrations.CreateModel(
name="Announcements",
fields=[
... | 40.433962 | 116 | 0.386374 | 227 | 2,143 | 3.792952 | 0.568282 | 0.011614 | 0.041812 | 0.055749 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035103 | 0.45497 | 2,143 | 52 | 117 | 41.211538 | 0.661815 | 0.020065 | 0 | 0.152174 | 1 | 0 | 0.229266 | 0.010963 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021739 | 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 |
57760d2c805c5954c4af970f003aa4e989b2985d | 3,568 | py | Python | PyU4V/tests/ci_tests/test_pyu4v_ci_wlp.py | SiSTm1/PyU4V | ce9784fc5f8192024cfa42509b8d45583b83f01d | [
"MIT"
] | 19 | 2020-01-06T12:02:25.000Z | 2021-12-14T06:50:04.000Z | PyU4V/tests/ci_tests/test_pyu4v_ci_wlp.py | SiSTm1/PyU4V | ce9784fc5f8192024cfa42509b8d45583b83f01d | [
"MIT"
] | 53 | 2019-12-17T17:26:44.000Z | 2022-02-03T12:28:34.000Z | PyU4V/tests/ci_tests/test_pyu4v_ci_wlp.py | SiSTm1/PyU4V | ce9784fc5f8192024cfa42509b8d45583b83f01d | [
"MIT"
] | 13 | 2019-01-24T17:10:05.000Z | 2019-12-09T06:33:21.000Z | # Copyright (c) 2020 Dell Inc. or its subsidiaries.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 41.011494 | 78 | 0.671244 | 448 | 3,568 | 5.165179 | 0.290179 | 0.042351 | 0.051858 | 0.045376 | 0.433016 | 0.411841 | 0.327139 | 0.244166 | 0.244166 | 0.244166 | 0 | 0.006574 | 0.232623 | 3,568 | 86 | 79 | 41.488372 | 0.838568 | 0.255886 | 0 | 0.269231 | 0 | 0 | 0.072917 | 0 | 0 | 0 | 0 | 0 | 0.461538 | 1 | 0.153846 | false | 0 | 0.057692 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
578103cae740778587240a02b478df194eedd58b | 3,798 | py | Python | tests/command/test_rotate.py | alphagov/estools | ee016ceb14cd83ee61e338fe0e226998914df97c | [
"MIT"
] | 2 | 2017-05-12T09:41:33.000Z | 2018-01-09T11:21:58.000Z | tests/command/test_rotate.py | alphagov/estools | ee016ceb14cd83ee61e338fe0e226998914df97c | [
"MIT"
] | null | null | null | tests/command/test_rotate.py | alphagov/estools | ee016ceb14cd83ee61e338fe0e226998914df97c | [
"MIT"
] | 2 | 2019-08-29T11:31:55.000Z | 2021-04-10T20:55:34.000Z | import unittest
from datetime import timedelta
from freezegun import freeze_time
from mock import Mock, call
from estools.command.rotate import Rotator
COMPRESS_MAP = { "index": { "store.compress.stored": True } }
OPTIMIZE_ARGS_SET = { "max_num_segments": 1 }
def to_map(m, i):
m[i] = {}
return m
def mock_es... | 28.133333 | 92 | 0.605055 | 502 | 3,798 | 4.368526 | 0.167331 | 0.091199 | 0.063839 | 0.087551 | 0.583675 | 0.524396 | 0.488372 | 0.417237 | 0.353397 | 0.324213 | 0 | 0.093163 | 0.256714 | 3,798 | 134 | 93 | 28.343284 | 0.68367 | 0.014745 | 0 | 0.389474 | 0 | 0 | 0.144195 | 0.005618 | 0 | 0 | 0 | 0 | 0.136842 | 0 | null | null | 0 | 0.052632 | null | null | 0.010526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
579213b8534d919fd217484f8815a0f63f34893c | 1,244 | py | Python | run.py | uwitzig/default-toolchain-1489153714966 | bf26e3e897c6b8c3b1b558503f5fa6bb95a2fd47 | [
"Apache-2.0"
] | null | null | null | run.py | uwitzig/default-toolchain-1489153714966 | bf26e3e897c6b8c3b1b558503f5fa6bb95a2fd47 | [
"Apache-2.0"
] | null | null | null | run.py | uwitzig/default-toolchain-1489153714966 | bf26e3e897c6b8c3b1b558503f5fa6bb95a2fd47 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import json
import os
import time
from cloudant.client import Cloudant
from dotenv import load_dotenv
from slackclient import SlackClient
from watson_developer_cloud import ConversationV1
from watsononlinestore.watson_online_store import WatsonOnlineStore
from database.cloudant_online_store impo... | 29.619048 | 67 | 0.684887 | 134 | 1,244 | 6.059701 | 0.358209 | 0.08867 | 0.118227 | 0.098522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010384 | 0.225884 | 1,244 | 41 | 68 | 30.341463 | 0.832814 | 0.016077 | 0 | 0 | 0 | 0 | 0.120196 | 0.034342 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.064516 | 0.290323 | 0 | 0.290323 | 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 |
57934142f2b844587b56df3fb76d9381bb36bcad | 1,241 | py | Python | ssl/serv.py | ryanliang000/sockettest | 8f92d90218e0f7005966eb33107403566077ae82 | [
"Apache-2.0"
] | 1 | 2022-01-06T03:02:47.000Z | 2022-01-06T03:02:47.000Z | ssl/serv.py | ryanliang000/sockettest | 8f92d90218e0f7005966eb33107403566077ae82 | [
"Apache-2.0"
] | null | null | null | ssl/serv.py | ryanliang000/sockettest | 8f92d90218e0f7005966eb33107403566077ae82 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import sys
from socket import *
from time import ctime
import ssl
if (len(sys.argv) != 2):
print("Usage: {} port".format(sys.argv[0]))
sys.exit(1)
host = ''
port = eval(sys.argv[1])
bufsize = 10240
addr = (host,port)
tcpServer = socket(AF_INET, SOCK_STREAM)
tcpServer.bind(addr)
tcpServer.l... | 25.854167 | 66 | 0.547945 | 144 | 1,241 | 4.673611 | 0.541667 | 0.031204 | 0.038633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018692 | 0.310234 | 1,241 | 47 | 67 | 26.404255 | 0.767523 | 0.026591 | 0 | 0.095238 | 0 | 0 | 0.128524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.095238 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
579b91f8c3bb0dbd150ff42d9c9f916b0cd1bb78 | 234 | py | Python | setup.py | nauralcodinglab/interneuron-reward | 3c30ebc43f5032c1ccbc09704e3d0bc295eaa778 | [
"CC-BY-4.0"
] | null | null | null | setup.py | nauralcodinglab/interneuron-reward | 3c30ebc43f5032c1ccbc09704e3d0bc295eaa778 | [
"CC-BY-4.0"
] | null | null | null | setup.py | nauralcodinglab/interneuron-reward | 3c30ebc43f5032c1ccbc09704e3d0bc295eaa778 | [
"CC-BY-4.0"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='lib',
packages=find_packages(),
version='0.1.0',
description='Tools for analysis of Chen lab calcium data',
author='Emerson Harkin',
license='MIT',
)
| 18 | 62 | 0.67094 | 30 | 234 | 5.166667 | 0.833333 | 0.154839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 0.205128 | 234 | 12 | 63 | 19.5 | 0.817204 | 0 | 0 | 0 | 0 | 0 | 0.293103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 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 |
579ec17dba7adb17d63a7834714acd6cbbfd1928 | 598 | py | Python | learn/decorator/d.py | PuddingWalker/py_small_projects | d039fec99b2d42ff577ada59a91e95d97d692214 | [
"Unlicense"
] | null | null | null | learn/decorator/d.py | PuddingWalker/py_small_projects | d039fec99b2d42ff577ada59a91e95d97d692214 | [
"Unlicense"
] | null | null | null | learn/decorator/d.py | PuddingWalker/py_small_projects | d039fec99b2d42ff577ada59a91e95d97d692214 | [
"Unlicense"
] | null | null | null | #########################################################################
# File Name: d.py
# Author: Pudding
# mail:qngskk@gmail.com
# Created Time: Fri Nov 26 09:59:51 2021
#########################################################################
#!/usr/bin/env python3
import functools
def logger(text):
def de... | 23.92 | 73 | 0.448161 | 61 | 598 | 4.327869 | 0.688525 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041237 | 0.188963 | 598 | 24 | 74 | 24.916667 | 0.503093 | 0.188963 | 0 | 0 | 0 | 0 | 0.066066 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0 | 0.615385 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
57a6e6da9370df90f6e221277a5d0eca94775fdb | 2,093 | py | Python | third_party/webrtc/src/check_root_dir.py | bopopescu/webrtc-streaming-node | 727a441204344ff596401b0253caac372b714d91 | [
"MIT"
] | 8 | 2016-02-08T11:59:31.000Z | 2020-05-31T15:19:54.000Z | third_party/webrtc/src/check_root_dir.py | bopopescu/webrtc-streaming-node | 727a441204344ff596401b0253caac372b714d91 | [
"MIT"
] | 7 | 2022-03-15T13:25:39.000Z | 2022-03-15T13:25:44.000Z | third_party/webrtc/src/check_root_dir.py | bopopescu/webrtc-streaming-node | 727a441204344ff596401b0253caac372b714d91 | [
"MIT"
] | 7 | 2016-02-09T09:28:14.000Z | 2020-07-25T19:03:36.000Z | #!/usr/bin/env python
# Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
#
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file in the root of the source
# tree. An additional intellectual property rights grant can be found
# in the file PATENTS. All c... | 36.086207 | 77 | 0.623507 | 300 | 2,093 | 4.24 | 0.473333 | 0.028302 | 0.021226 | 0.028302 | 0.117925 | 0.09434 | 0.09434 | 0.044025 | 0 | 0 | 0 | 0.006744 | 0.220736 | 2,093 | 57 | 78 | 36.719298 | 0.773145 | 0.222169 | 0 | 0.111111 | 0 | 0 | 0.468223 | 0.093385 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
57a703b6333fabce30c648e51a4b351990e54372 | 1,819 | py | Python | setup.py | teopost/botogram | a9a9af1d0b533adde194d4e600413eae77ff7c72 | [
"MIT"
] | null | null | null | setup.py | teopost/botogram | a9a9af1d0b533adde194d4e600413eae77ff7c72 | [
"MIT"
] | null | null | null | setup.py | teopost/botogram | a9a9af1d0b533adde194d4e600413eae77ff7c72 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
'''
========
botogram
========
botogram is a Python framework, which allows you to focus just on
creating your `Telegram bots`_, without worrying about the underlying
Bots API.
While most of the libraries for Telegram out there just wrap the Bots
API, botogram focuses heavily on the development exp... | 24.253333 | 79 | 0.639362 | 206 | 1,819 | 5.538835 | 0.587379 | 0.031551 | 0.028046 | 0.035057 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003626 | 0.241891 | 1,819 | 74 | 80 | 24.581081 | 0.823785 | 0.491479 | 0 | 0.096774 | 0 | 0 | 0.476554 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.032258 | 0 | 0.032258 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
57ab0f7ebaf8829ef69f104f23bc72635c34f082 | 213 | py | Python | knn/exam_tree.py | lijinchao2007/statistical-learning | f20d0e350f78a2cf7349026d226498dd3adc4a58 | [
"Apache-2.0"
] | null | null | null | knn/exam_tree.py | lijinchao2007/statistical-learning | f20d0e350f78a2cf7349026d226498dd3adc4a58 | [
"Apache-2.0"
] | null | null | null | knn/exam_tree.py | lijinchao2007/statistical-learning | f20d0e350f78a2cf7349026d226498dd3adc4a58 | [
"Apache-2.0"
] | null | null | null | # encode:utf-8
from anytree import Node, RenderTree
udo = Node("Udo")
marc = Node("Marc", parent=udo)
lian = Node("Lian", parent=marc)
for pre, fill, node in RenderTree(udo):
print("%s%s" % (pre, node.name))
| 23.666667 | 39 | 0.661972 | 34 | 213 | 4.147059 | 0.558824 | 0.184397 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005556 | 0.15493 | 213 | 8 | 40 | 26.625 | 0.777778 | 0.056338 | 0 | 0 | 0 | 0 | 0.075377 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 |
57ad07c67bcbf152c4ff27185f1dd6ec3efe4203 | 935 | py | Python | test/hack.py | M3m3M4n/goahead-4 | d284268ac0179ff6744854c610a36118b2539d43 | [
"Apache-2.0"
] | 1 | 2021-05-21T03:37:00.000Z | 2021-05-21T03:37:00.000Z | test/hack.py | M3m3M4n/goahead-4 | d284268ac0179ff6744854c610a36118b2539d43 | [
"Apache-2.0"
] | null | null | null | test/hack.py | M3m3M4n/goahead-4 | d284268ac0179ff6744854c610a36118b2539d43 | [
"Apache-2.0"
] | 2 | 2020-02-19T02:32:12.000Z | 2021-05-21T03:37:02.000Z |
import socket
p = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
p.connect(("127.0.0.1" , 18080))
shellcode = "A"*0x200 # *** Not the correct shellcode for exploit ***
rn = "\r\n"
strptr = "\x60\x70\xff\x7f"
padding = "\x00\x00\x00\x00"
payload = "GET /sharefile?test=A" + "HTTP/1.1" + rn
payl... | 34.62963 | 111 | 0.652406 | 147 | 935 | 4.115646 | 0.591837 | 0.133884 | 0.07438 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103405 | 0.151872 | 935 | 26 | 112 | 35.961538 | 0.659521 | 0.048128 | 0 | 0 | 0 | 0.105263 | 0.459977 | 0.126268 | 0.105263 | 0 | 0.027058 | 0 | 0 | 1 | 0 | false | 0.052632 | 0.052632 | 0 | 0.052632 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
57b179405a96713aae91c4275710ce3ac16326de | 18,792 | py | Python | src/pyth2/contracts/TypeValidator.py | gnomeberry/pyth2 | 532d89e4ed22b4f9427069bf187ab836e2c2f538 | [
"MIT"
] | null | null | null | src/pyth2/contracts/TypeValidator.py | gnomeberry/pyth2 | 532d89e4ed22b4f9427069bf187ab836e2c2f538 | [
"MIT"
] | null | null | null | src/pyth2/contracts/TypeValidator.py | gnomeberry/pyth2 | 532d89e4ed22b4f9427069bf187ab836e2c2f538 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Created on 2015/11/03
@author: _
'''
from functools import wraps
import sys
import types
from pyth2.PythUtil import toStrTuple, raiseException
from pyth2.contracts.ContractsUtil import inheritOriginalArgSpec
from pyth2.contracts.InvocableArgumentAccessor import InvocableArgum... | 35.726236 | 264 | 0.626596 | 2,093 | 18,792 | 5.508839 | 0.141902 | 0.01405 | 0.015265 | 0.010147 | 0.352038 | 0.292108 | 0.233998 | 0.194102 | 0.182567 | 0.137988 | 0 | 0.001634 | 0.283738 | 18,792 | 525 | 265 | 35.794286 | 0.854978 | 0.254097 | 0 | 0.321705 | 0 | 0 | 0.068765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.20155 | false | 0.007752 | 0.027132 | 0.050388 | 0.488372 | 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 |
57b263b1703db5caf67739a3b064b2a38d1ae866 | 5,027 | py | Python | mmdet/models/losses/uncertainty_loss.py | sanghun3819/LQM | f00a4ccc5a35cf430a70ff262148a8183cc99864 | [
"Apache-2.0"
] | 4 | 2021-12-30T07:38:26.000Z | 2022-02-08T11:30:55.000Z | mmdet/models/losses/uncertainty_loss.py | POSTECH-IMLAB/LQM | a0f4d061c5f1486b43ddd884c37e651c6c8b16e7 | [
"Apache-2.0"
] | null | null | null | mmdet/models/losses/uncertainty_loss.py | POSTECH-IMLAB/LQM | a0f4d061c5f1486b43ddd884c37e651c6c8b16e7 | [
"Apache-2.0"
] | null | null | null | import torch.nn as nn
import torch
from ..builder import LOSSES
import numpy as np
from .utils import weighted_loss
import torch.nn.functional as F
from mmdet.core import bbox_overlaps
def _gaussian_dist_pdf(val, mean, var):
return torch.exp(- (val - mean) ** 2.0 / var / 2.0) / torch.sqrt(2.0 * np.pi * var)
# @we... | 39.582677 | 156 | 0.63696 | 705 | 5,027 | 4.299291 | 0.197163 | 0.04388 | 0.106895 | 0.037611 | 0.440449 | 0.410096 | 0.338832 | 0.266579 | 0.247443 | 0.235566 | 0 | 0.019761 | 0.234931 | 5,027 | 127 | 157 | 39.582677 | 0.768331 | 0.654466 | 0 | 0 | 0 | 0 | 0.005319 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.25 | 0.035714 | 0.535714 | 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 |
57b42da98b2ae214497a7d1a51abb95bb82d88e1 | 466 | py | Python | db_models/discardentry.py | Teplitsa/false-security-1 | 9e5cc23c8bf324d923965bb2624cac4994891154 | [
"MIT"
] | 1 | 2020-10-01T17:44:26.000Z | 2020-10-01T17:44:26.000Z | db_models/discardentry.py | Teplitsa/false-security-1 | 9e5cc23c8bf324d923965bb2624cac4994891154 | [
"MIT"
] | null | null | null | db_models/discardentry.py | Teplitsa/false-security-1 | 9e5cc23c8bf324d923965bb2624cac4994891154 | [
"MIT"
] | 1 | 2021-10-05T12:09:07.000Z | 2021-10-05T12:09:07.000Z | from globals import db
import db_models.game
from db_models.card import Card
class DiscardEntry(db.Model):
__tablename__ = 'discardentry'
id = db.Column(db.Integer, primary_key=True)
cardId = db.Column(db.Integer, db.ForeignKey('card.id'), nullable=False)
gameId = db.Column(db.Integer, db.ForeignKey('g... | 38.833333 | 76 | 0.727468 | 65 | 466 | 5.092308 | 0.415385 | 0.072508 | 0.090634 | 0.154079 | 0.175227 | 0.175227 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135193 | 466 | 11 | 77 | 42.363636 | 0.82134 | 0 | 0 | 0 | 0 | 0 | 0.087983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 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 |
57b5e20bdd9a02c63c64c7cffadbffde1ad35913 | 3,595 | py | Python | directory/factories.py | arogachev/dgtt | eb68284ac131e8a66a8cb2d8f1a6b0dd2e3e5d3b | [
"MIT"
] | null | null | null | directory/factories.py | arogachev/dgtt | eb68284ac131e8a66a8cb2d8f1a6b0dd2e3e5d3b | [
"MIT"
] | null | null | null | directory/factories.py | arogachev/dgtt | eb68284ac131e8a66a8cb2d8f1a6b0dd2e3e5d3b | [
"MIT"
] | null | null | null | from functools import reduce
from random import randint
from django.contrib.gis.geos import Point
import factory
from faker.providers import BaseProvider
from .models import Building, Category, Organization
LOCALE = 'ru_RU'
class CoordinatesProvider(BaseProvider):
CENTER_COORDINATES = (54.873950, 69.152105)
... | 30.726496 | 119 | 0.685953 | 414 | 3,595 | 5.736715 | 0.2657 | 0.070737 | 0.026947 | 0.029053 | 0.146105 | 0.130105 | 0.073263 | 0.043789 | 0 | 0 | 0 | 0.010276 | 0.215021 | 3,595 | 116 | 120 | 30.991379 | 0.831325 | 0 | 0 | 0.061728 | 0 | 0 | 0.032545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098765 | false | 0 | 0.074074 | 0.012346 | 0.530864 | 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 |
57b63284d727f6d7c7db03117f264898f53894f2 | 686 | py | Python | server/www/packages/packages-windows/x86/ldap3/version.py | zhoulhb/teleport | 54da194697898ef77537cfe7032d774555dc1335 | [
"Apache-2.0"
] | 640 | 2018-09-12T03:14:13.000Z | 2022-03-30T04:38:09.000Z | server/www/packages/packages-windows/x86/ldap3/version.py | zhoulhb/teleport | 54da194697898ef77537cfe7032d774555dc1335 | [
"Apache-2.0"
] | 175 | 2018-09-10T19:52:20.000Z | 2022-03-30T04:37:30.000Z | server/www/packages/packages-windows/x86/ldap3/version.py | zhoulhb/teleport | 54da194697898ef77537cfe7032d774555dc1335 | [
"Apache-2.0"
] | 230 | 2018-09-13T02:40:49.000Z | 2022-03-29T11:53:58.000Z | # THIS FILE IS AUTO-GENERATED. PLEASE DO NOT MODIFY# version file for ldap3
# generated on 2018-08-01 17:55:24.174707
# on system uname_result(system='Windows', node='ELITE10GC', release='10', version='10.0.17134', machine='AMD64', processor='Intel64 Family 6 Model 58 Stepping 9, GenuineIntel')
# with Python 3.7.0 -... | 52.769231 | 178 | 0.721574 | 104 | 686 | 4.480769 | 0.817308 | 0.008584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.142857 | 686 | 12 | 179 | 57.166667 | 0.64966 | 0.556851 | 0 | 0 | 1 | 0 | 0.578947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
57b64760e45c7e5f9cfe881803657972b8c7ec40 | 538 | py | Python | Sequences/number_lists.py | zahraaliaghazadeh/python | 2f2d0141a916c99e8724f803bd4e5c7246a7a02e | [
"MIT"
] | null | null | null | Sequences/number_lists.py | zahraaliaghazadeh/python | 2f2d0141a916c99e8724f803bd4e5c7246a7a02e | [
"MIT"
] | null | null | null | Sequences/number_lists.py | zahraaliaghazadeh/python | 2f2d0141a916c99e8724f803bd4e5c7246a7a02e | [
"MIT"
] | null | null | null | even = [2, 4, 6, 8]
odd = [1, 3, 5, 7, 9]
print(min(even))
print(max(even))
print(min(odd))
print(max(odd))
print()
print(len(even))
print(len(odd))
print()
# to count how many times s is repeated in the word
print("mississippi".count("s")) #4
print("mississippi".count("issi")) #1
even.extend(odd)
print(even)
... | 17.354839 | 56 | 0.693309 | 93 | 538 | 3.978495 | 0.505376 | 0.121622 | 0.113514 | 0.108108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027719 | 0.128253 | 538 | 31 | 56 | 17.354839 | 0.761194 | 0.263941 | 0 | 0.333333 | 0 | 0 | 0.069231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.714286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
57b6e056ee5dc45a66221aa1db4acdfaaeecfb86 | 613 | py | Python | setup.py | serathius/elasticsearch-raven | 17d316d5a466ba2636d9ce4e58cbeb532d3e1dab | [
"MIT"
] | 1 | 2015-10-05T19:44:09.000Z | 2015-10-05T19:44:09.000Z | setup.py | serathius/elasticsearch-raven | 17d316d5a466ba2636d9ce4e58cbeb532d3e1dab | [
"MIT"
] | 1 | 2021-06-01T21:57:44.000Z | 2021-06-01T21:57:44.000Z | setup.py | serathius/elasticsearch-raven | 17d316d5a466ba2636d9ce4e58cbeb532d3e1dab | [
"MIT"
] | 1 | 2016-05-25T02:15:14.000Z | 2016-05-25T02:15:14.000Z | from setuptools import setup
setup(
name='Elasticsearch-Raven',
version='1.5.0',
author='Tomasz Wysocki',
author_email='tomasz@pozytywnie.pl',
url='https://github.com/pozytywnie/elasticsearch-raven/',
packages=['elasticsearch_raven'],
scripts=['bin/elasticsearch-raven.py', 'bin/update_ids.p... | 34.055556 | 78 | 0.688418 | 75 | 613 | 5.493333 | 0.653333 | 0.174757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00578 | 0.153344 | 613 | 17 | 79 | 36.058824 | 0.788054 | 0 | 0 | 0 | 0 | 0 | 0.507341 | 0.088091 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0625 | 0 | 0.0625 | 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 |
57c355b0fba10e9b36fb811fea2c606ab801173b | 1,814 | py | Python | api/authentication_backend.py | IFRCGo/ifrcgo-api | c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a | [
"MIT"
] | 11 | 2018-06-11T06:05:12.000Z | 2022-03-25T09:31:44.000Z | api/authentication_backend.py | IFRCGo/ifrcgo-api | c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a | [
"MIT"
] | 498 | 2017-11-07T21:20:13.000Z | 2022-03-31T14:37:18.000Z | api/authentication_backend.py | IFRCGo/ifrcgo-api | c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a | [
"MIT"
] | 6 | 2018-04-11T13:29:50.000Z | 2020-07-16T16:52:11.000Z | from django.contrib.auth.backends import ModelBackend, UserModel
from django.contrib.auth.models import User
from django.core.exceptions import MultipleObjectsReturned
from django.db.models import Q
class EmailBackend(ModelBackend):
"""
To allow to authenticate with email too without needing
to im... | 38.595745 | 119 | 0.657663 | 215 | 1,814 | 5.465116 | 0.506977 | 0.034043 | 0.043404 | 0.035745 | 0.163404 | 0.073191 | 0.073191 | 0.073191 | 0 | 0 | 0 | 0.005271 | 0.267916 | 1,814 | 46 | 120 | 39.434783 | 0.879518 | 0.286659 | 0 | 0.153846 | 0 | 0 | 0.001635 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.115385 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
57c36ad19a2f06185b5dfcea6b647a015397cf85 | 252 | py | Python | Easy/1018-binary-prefix-divisible-by-5.py | sandychn/LeetCode-Solutions | d0dd55d62b099c5b7db947822ab2111a4ecdc941 | [
"MIT"
] | null | null | null | Easy/1018-binary-prefix-divisible-by-5.py | sandychn/LeetCode-Solutions | d0dd55d62b099c5b7db947822ab2111a4ecdc941 | [
"MIT"
] | null | null | null | Easy/1018-binary-prefix-divisible-by-5.py | sandychn/LeetCode-Solutions | d0dd55d62b099c5b7db947822ab2111a4ecdc941 | [
"MIT"
] | null | null | null | class Solution:
def prefixesDivBy5(self, A: List[int]) -> List[bool]:
val = 0
res = [None] * len(A)
for i, v in enumerate(A):
val = ((val << 1) + v) % 5
res[i] = (val == 0)
return res
| 28 | 58 | 0.428571 | 33 | 252 | 3.272727 | 0.666667 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034014 | 0.416667 | 252 | 8 | 59 | 31.5 | 0.70068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.375 | 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 |
57d1fdd867b01357984737de54fca66bb30f83ec | 1,319 | py | Python | timefly/utils.py | vlad17/timedime | 90473c3026e040c02a1775325aed0cffa2b77da8 | [
"Apache-2.0"
] | null | null | null | timefly/utils.py | vlad17/timedime | 90473c3026e040c02a1775325aed0cffa2b77da8 | [
"Apache-2.0"
] | null | null | null | timefly/utils.py | vlad17/timedime | 90473c3026e040c02a1775325aed0cffa2b77da8 | [
"Apache-2.0"
] | null | null | null | """
Generic utilities file.
"""
from datetime import datetime, timedelta, timezone
from functools import reduce
# https://stackoverflow.com/questions/16739290
def splat(f):
"""pre-splat an argument into a function and return the new lambda"""
return lambda x: f(*x)
def compose2(f, g):
return lambda *a... | 24.886792 | 73 | 0.662623 | 195 | 1,319 | 4.441026 | 0.507692 | 0.040416 | 0.046189 | 0.027714 | 0.076212 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015579 | 0.22138 | 1,319 | 52 | 74 | 25.365385 | 0.827653 | 0.383624 | 0 | 0.095238 | 0 | 0 | 0.053619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.095238 | 0.095238 | 0.714286 | 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 |
57db1eb91b142f86ca78b2ac712096a8b36be5d9 | 1,004 | py | Python | tests/test_cli.py | v1shwa/gdget | ea3d5a87c21cd0e7a61c12ca3ae22102450e31cc | [
"MIT"
] | 2 | 2020-04-14T19:02:54.000Z | 2020-05-09T18:39:28.000Z | tests/test_cli.py | v1shwa/gdget | ea3d5a87c21cd0e7a61c12ca3ae22102450e31cc | [
"MIT"
] | 2 | 2020-05-02T07:23:15.000Z | 2021-03-28T10:52:42.000Z | tests/test_cli.py | v1shwa/gdget | ea3d5a87c21cd0e7a61c12ca3ae22102450e31cc | [
"MIT"
] | 2 | 2020-04-13T05:46:00.000Z | 2020-05-09T18:39:30.000Z | """Tests for our gdget CLI module."""
from subprocess import PIPE, Popen as popen
import unittest
import warnings
from gdget import __version__ as VERSION
class TestHelp(unittest.TestCase):
def setUp(self):
try:
warnings.simplefilter("ignore", ResourceWarning)
except NameError:
... | 25.74359 | 76 | 0.63745 | 112 | 1,004 | 5.571429 | 0.401786 | 0.052885 | 0.076923 | 0.105769 | 0.634615 | 0.557692 | 0.5 | 0.5 | 0.5 | 0.5 | 0 | 0.003911 | 0.236056 | 1,004 | 38 | 77 | 26.421053 | 0.809648 | 0.030876 | 0 | 0.461538 | 0 | 0 | 0.078594 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 1 | 0.153846 | false | 0.076923 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
57e091f7aef127c41465cd1787518bd2fef8c633 | 1,070 | py | Python | Queue/deque.py | Shivamdot/Data-structures-and-Algorithms | eb991b27dca8cc0654ac6b52205dc10853de896a | [
"MIT"
] | 3 | 2018-07-21T16:54:15.000Z | 2020-07-11T19:32:33.000Z | Queue/deque.py | Shivamdot/Data-structures-and-Algorithms | eb991b27dca8cc0654ac6b52205dc10853de896a | [
"MIT"
] | null | null | null | Queue/deque.py | Shivamdot/Data-structures-and-Algorithms | eb991b27dca8cc0654ac6b52205dc10853de896a | [
"MIT"
] | 2 | 2018-11-02T13:33:51.000Z | 2020-09-28T20:33:34.000Z | '''
Double Ended Queue or deque is the extended version of Queue
because in deque you can add and remove form both first and last position
of the Queue.
'''
def Deque():
def __init__(self):
self._deque = []
def add_first(self,e):
'Add the item in first position.'
self._deque.insert(0,e... | 23.777778 | 73 | 0.592523 | 152 | 1,070 | 4.026316 | 0.282895 | 0.132353 | 0.111111 | 0.035948 | 0.124183 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0.006766 | 0.309346 | 1,070 | 44 | 74 | 24.318182 | 0.82138 | 0.357009 | 0 | 0 | 0 | 0 | 0.282276 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.433333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
57e0e248d1e331a94e5ce0b92061c149004ecd91 | 1,462 | py | Python | backend/projects/models.py | LucasSantosGuedes/App-Gestao | 88b21208f9a2585421d0b949d2d44cdde72f0ec9 | [
"MIT"
] | 142 | 2020-09-21T15:43:17.000Z | 2022-03-26T09:21:23.000Z | backend/projects/models.py | LucasSantosGuedes/App-Gestao | 88b21208f9a2585421d0b949d2d44cdde72f0ec9 | [
"MIT"
] | 2 | 2021-03-31T10:15:31.000Z | 2021-11-30T18:04:52.000Z | backend/projects/models.py | LucasSantosGuedes/App-Gestao | 88b21208f9a2585421d0b949d2d44cdde72f0ec9 | [
"MIT"
] | 49 | 2020-10-23T21:21:22.000Z | 2022-03-24T10:11:47.000Z | from boards.models import Board
from django.contrib.contenttypes.fields import GenericRelation
from django.db import models
from django.utils import timezone
from users.models import User
class Project(models.Model):
owner = models.ForeignKey(
User, on_delete=models.CASCADE, related_name='owned_projects')... | 35.658537 | 80 | 0.711354 | 174 | 1,462 | 5.827586 | 0.465517 | 0.029586 | 0.04142 | 0.06213 | 0.171598 | 0.171598 | 0.171598 | 0 | 0 | 0 | 0 | 0.005085 | 0.192886 | 1,462 | 40 | 81 | 36.55 | 0.854237 | 0.062244 | 0 | 0.129032 | 0 | 0 | 0.089181 | 0.016813 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.16129 | 0.064516 | 0.741935 | 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 |
57e0ea46393bf4d3c36bf988dcb23bc910f20d35 | 277 | py | Python | samples/new_bookmark.py | atsuoishimoto/python-raidropio | 47b07f40685d3c8fbf44a90286d802d5762829cf | [
"MIT"
] | 12 | 2020-06-20T00:29:52.000Z | 2022-01-30T03:12:16.000Z | samples/new_bookmark.py | atsuoishimoto/python-raidropio | 47b07f40685d3c8fbf44a90286d802d5762829cf | [
"MIT"
] | 3 | 2020-06-20T10:06:47.000Z | 2021-01-30T00:19:20.000Z | samples/new_bookmark.py | atsuoishimoto/python-raidropio | 47b07f40685d3c8fbf44a90286d802d5762829cf | [
"MIT"
] | 3 | 2020-07-15T21:02:52.000Z | 2021-09-02T10:47:46.000Z | import os
from raindropio import *
api = API(os.environ["RAINDROP_TOKEN"])
collection = Collection.create(api, title="Test collection")
raindrop = Raindrop.create(
api, link="https://www.python.org/", tags=["abc", "def"], collection=collection
)
print(raindrop.title)
| 19.785714 | 83 | 0.718412 | 35 | 277 | 5.657143 | 0.6 | 0.20202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119134 | 277 | 13 | 84 | 21.307692 | 0.811475 | 0 | 0 | 0 | 0 | 0 | 0.209386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.125 | 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.