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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4a2c673b66c41755959ff65c1fa9b7b2982f4dc6 | 5,486 | py | Python | python_fiximports.py | Stibbons/python-fiximports | 7571a32b0b8033b402368eaf26cb68564859dde2 | [
"Apache-2.0"
] | 5 | 2015-02-28T23:57:28.000Z | 2017-03-05T05:00:19.000Z | .config/sublime-text-3/Packages/Python Fix Imports/python_fiximports.py | deltakapa/dot-files | bb43088d2bcea15e892dfa45bff934b8e7399e17 | [
"MIT"
] | 9 | 2015-02-28T12:28:08.000Z | 2017-09-16T18:35:53.000Z | python_fiximports.py | gsemet/python-fiximports | 7571a32b0b8033b402368eaf26cb68564859dde2 | [
"Apache-2.0"
] | 3 | 2015-03-01T21:32:07.000Z | 2016-04-29T21:49:54.000Z | # -*- coding: utf-8 -*-
# Copyright 2012-2013 Stéphane Bunel
#
# 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 ... | 34.074534 | 99 | 0.714364 | 660 | 5,486 | 5.686364 | 0.278788 | 0.038369 | 0.046896 | 0.061551 | 0.336264 | 0.255795 | 0.232347 | 0.159872 | 0.113509 | 0.097522 | 0 | 0.005458 | 0.198505 | 5,486 | 160 | 100 | 34.2875 | 0.848078 | 0.10463 | 0 | 0.285714 | 0 | 0 | 0.170104 | 0.065142 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0 | 0.390476 | 0 | 0.609524 | 0.152381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
4a42e6ac689a9a0119e5f625545a71231b10d51f | 620 | py | Python | core/migrations/0011_auto_20170112_1125.py | BOOLRon/lovelypic | 944578293e4eb4f185eba213f5bca345f58f6ab1 | [
"MIT"
] | null | null | null | core/migrations/0011_auto_20170112_1125.py | BOOLRon/lovelypic | 944578293e4eb4f185eba213f5bca345f58f6ab1 | [
"MIT"
] | null | null | null | core/migrations/0011_auto_20170112_1125.py | BOOLRon/lovelypic | 944578293e4eb4f185eba213f5bca345f58f6ab1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-01-12 11:25
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0010_auto_20170112_1124'),
]
operations = [
migrations.AlterField(
... | 23.846154 | 59 | 0.591935 | 64 | 620 | 5.578125 | 0.65625 | 0.112045 | 0.140056 | 0.162465 | 0.442577 | 0.442577 | 0.212885 | 0 | 0 | 0 | 0 | 0.072562 | 0.28871 | 620 | 25 | 60 | 24.8 | 0.736961 | 0.106452 | 0 | 0.444444 | 1 | 0 | 0.098004 | 0.041742 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4a45d864dadb4eb4afced2e6c0b56e5b3e23e324 | 1,588 | py | Python | ion/agents/platform/rsn/simulator/test/test_oms_simulator.py | ooici/coi-services | 43246f46a82e597345507afd7dfc7373cb346afa | [
"BSD-2-Clause"
] | 3 | 2016-09-20T09:50:06.000Z | 2018-08-10T01:41:38.000Z | ion/agents/platform/rsn/simulator/test/test_oms_simulator.py | ooici/coi-services | 43246f46a82e597345507afd7dfc7373cb346afa | [
"BSD-2-Clause"
] | null | null | null | ion/agents/platform/rsn/simulator/test/test_oms_simulator.py | ooici/coi-services | 43246f46a82e597345507afd7dfc7373cb346afa | [
"BSD-2-Clause"
] | 2 | 2016-03-16T22:25:49.000Z | 2016-11-26T14:54:21.000Z | #!/usr/bin/env python
"""
@package ion.agents.platform.rsn.simulator.test.test_oms_simulator
@file ion/agents/platform/rsn/simulator/test/test_oms_simulator.py
@author Carlos Rueda
@brief Test cases for the simulator, by default in embedded form,
but the OMS environment variable can be used to indicate ... | 29.962264 | 86 | 0.757557 | 218 | 1,588 | 5.43578 | 0.46789 | 0.037975 | 0.07173 | 0.084388 | 0.243882 | 0.0827 | 0.0827 | 0.0827 | 0.0827 | 0 | 0 | 0 | 0.157431 | 1,588 | 52 | 87 | 30.538462 | 0.88565 | 0.471662 | 0 | 0.1 | 0 | 0 | 0.070807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.55 | 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 | 1 | 0 | 0 | 2 |
4a501220a643051488f8c33f5d1eee21f15d98a0 | 1,866 | py | Python | src/python/magnum/test/test_meshtools_gl.py | vladimirgamalyan/magnum-bindings | 11075a4adf4f83085bef7b4e448e32120b9ad924 | [
"MIT"
] | null | null | null | src/python/magnum/test/test_meshtools_gl.py | vladimirgamalyan/magnum-bindings | 11075a4adf4f83085bef7b4e448e32120b9ad924 | [
"MIT"
] | null | null | null | src/python/magnum/test/test_meshtools_gl.py | vladimirgamalyan/magnum-bindings | 11075a4adf4f83085bef7b4e448e32120b9ad924 | [
"MIT"
] | null | null | null | #
# This file is part of Magnum.
#
# Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019,
# 2020 Vladimír Vondruš <mosra@centrum.cz>
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Softw... | 41.466667 | 78 | 0.733119 | 264 | 1,866 | 5.166667 | 0.564394 | 0.064516 | 0.046921 | 0.030792 | 0.104106 | 0.058651 | 0 | 0 | 0 | 0 | 0 | 0.032732 | 0.197749 | 1,866 | 44 | 79 | 42.409091 | 0.877756 | 0.691318 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.307692 | 1 | 0.153846 | false | 0 | 0.307692 | 0 | 0.538462 | 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 | 1 | 0 | 0 | 2 |
4a5dade9b1a69baa29ba48dcf93ef067b858dc2c | 2,602 | py | Python | lab/main.py | Blahodatny/lab2 | f27949fa2f2aa2af05b1c2ef6cca3f4948d597f3 | [
"Apache-2.0"
] | 1 | 2019-12-03T16:09:57.000Z | 2019-12-03T16:09:57.000Z | lab/main.py | Blahodatny/lab2 | f27949fa2f2aa2af05b1c2ef6cca3f4948d597f3 | [
"Apache-2.0"
] | null | null | null | lab/main.py | Blahodatny/lab2 | f27949fa2f2aa2af05b1c2ef6cca3f4948d597f3 | [
"Apache-2.0"
] | null | null | null | from gauss import Gauss
from square_roots import SquareRoots
from running import Running
from lt_rotation import LtRotation
from ui import UI
from termcolor import colored
import time
eps = 0.001
'''task 1'''
t1 = colored('TASK1', 'red')
print(t1)
a = [
[-54, -11, 40, 57, 80, -99, 29, 45, 22, 50],
[19, 40, 89... | 32.525 | 64 | 0.503843 | 477 | 2,602 | 2.712788 | 0.366876 | 0.086553 | 0.097372 | 0.092736 | 0.274343 | 0.237249 | 0.227975 | 0.217156 | 0.204791 | 0.204791 | 0 | 0.331839 | 0.22867 | 2,602 | 79 | 65 | 32.936709 | 0.312905 | 0 | 0 | 0.171429 | 0 | 0 | 0.051202 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.171429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
4a60a4a8b0dc8cb18ef8468eff37084596093a49 | 1,040 | py | Python | src/test/python/testSmvUserLib.py | ninjapapa/SMV2 | 42cf9f176c3ec0bed61f66fbf859c18d97027dd6 | [
"Apache-2.0"
] | null | null | null | src/test/python/testSmvUserLib.py | ninjapapa/SMV2 | 42cf9f176c3ec0bed61f66fbf859c18d97027dd6 | [
"Apache-2.0"
] | 34 | 2022-02-26T04:27:34.000Z | 2022-03-29T23:05:47.000Z | src/test/python/testSmvUserLib.py | ninjapapa/SMV2 | 42cf9f176c3ec0bed61f66fbf859c18d97027dd6 | [
"Apache-2.0"
] | null | null | null | #
# This file is licensed under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distr... | 31.515152 | 74 | 0.725962 | 145 | 1,040 | 5.124138 | 0.648276 | 0.080754 | 0.034993 | 0.043069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009445 | 0.185577 | 1,040 | 32 | 75 | 32.5 | 0.867769 | 0.513462 | 0 | 0 | 0 | 0 | 0.109533 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.230769 | false | 0 | 0.230769 | 0.076923 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
4a68c8bb10325ddc92237be9612c883a6835d65e | 773 | py | Python | bgwgen/helpers.py | nelsyeung/bgwgen | 8fbbabbab8fe417dd1883ebe9f5a5f450ffe0743 | [
"MIT"
] | null | null | null | bgwgen/helpers.py | nelsyeung/bgwgen | 8fbbabbab8fe417dd1883ebe9f5a5f450ffe0743 | [
"MIT"
] | null | null | null | bgwgen/helpers.py | nelsyeung/bgwgen | 8fbbabbab8fe417dd1883ebe9f5a5f450ffe0743 | [
"MIT"
] | null | null | null | import copy
import os
import stat
def deep_merge(original, update):
"""Recursively update a dictionary. Subdictionaries will not be overwritten
but also updated.
Keyword arguments:
original -- the original dictionary to be overwritten
update -- the dictionary to overwrite the original dictionar... | 25.766667 | 79 | 0.683053 | 102 | 773 | 5.117647 | 0.509804 | 0.063218 | 0.065134 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225097 | 773 | 29 | 80 | 26.655172 | 0.871452 | 0.3674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.214286 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
4a6b68e3e97f5bcbdb9d7159b6ed1542e63a92ef | 9,003 | py | Python | Lab2/example8/FM_TX/fm_tx.py | RadiumScriptTang/Wireless-communication-systems-Lab | 37afc4e3cc9fa8759b22ec2737b747d2628e01df | [
"MIT"
] | 47 | 2019-08-01T12:24:20.000Z | 2022-03-22T14:21:54.000Z | Lab2/example8/FM_TX/fm_tx.py | aboulogeorgos/Wireless-communication-systems-Lab | 37afc4e3cc9fa8759b22ec2737b747d2628e01df | [
"MIT"
] | null | null | null | Lab2/example8/FM_TX/fm_tx.py | aboulogeorgos/Wireless-communication-systems-Lab | 37afc4e3cc9fa8759b22ec2737b747d2628e01df | [
"MIT"
] | 13 | 2020-03-04T20:20:10.000Z | 2022-02-23T14:22:02.000Z | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
##################################################
# GNU Radio Python Flow Graph
# Title: FM_TX
# Author: Alexandros-Apostolos A. Boulogeorgos
# Generated: Tue Aug 6 14:33:36 2019
##################################################
if __name__ == '__main__':
import ct... | 35.72619 | 99 | 0.608797 | 1,199 | 9,003 | 4.230192 | 0.160967 | 0.055205 | 0.047319 | 0.048699 | 0.600946 | 0.53608 | 0.494282 | 0.411475 | 0.291207 | 0.22082 | 0 | 0.031816 | 0.245918 | 9,003 | 251 | 100 | 35.868526 | 0.715275 | 0.021548 | 0 | 0.300469 | 1 | 0 | 0.019643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.075117 | null | null | 0.004695 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4a7141d5b556cddba2648a4386aa34f8fd1a51fb | 1,039 | py | Python | animais/migrations/0002_animal_domestico_animal_nome_animal_animal_predador_and_more.py | carlosrjhoe/Aplicacao_TDD_no_Django | 598c1281a5a09486d16c986cde415828739a727d | [
"MIT"
] | null | null | null | animais/migrations/0002_animal_domestico_animal_nome_animal_animal_predador_and_more.py | carlosrjhoe/Aplicacao_TDD_no_Django | 598c1281a5a09486d16c986cde415828739a727d | [
"MIT"
] | null | null | null | animais/migrations/0002_animal_domestico_animal_nome_animal_animal_predador_and_more.py | carlosrjhoe/Aplicacao_TDD_no_Django | 598c1281a5a09486d16c986cde415828739a727d | [
"MIT"
] | null | null | null | # Generated by Django 4.0.3 on 2022-03-15 15:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('animais', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='animal',
name='domestico',
... | 27.342105 | 65 | 0.553417 | 104 | 1,039 | 5.394231 | 0.403846 | 0.128342 | 0.163993 | 0.192513 | 0.682709 | 0.682709 | 0.616756 | 0.616756 | 0.54902 | 0.447415 | 0 | 0.034237 | 0.325313 | 1,039 | 37 | 66 | 28.081081 | 0.766049 | 0.043311 | 0 | 0.612903 | 1 | 0 | 0.091734 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032258 | 0 | 0.129032 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4a74b12dd8fd05fbc6fbb5ff2dcdbc625c796094 | 481 | py | Python | src/ansible_navigator/runner/command.py | LaudateCorpus1/ansible-navigator | 28cdea13dba3e9039382eb993989db4b3e61b237 | [
"Apache-2.0"
] | null | null | null | src/ansible_navigator/runner/command.py | LaudateCorpus1/ansible-navigator | 28cdea13dba3e9039382eb993989db4b3e61b237 | [
"Apache-2.0"
] | null | null | null | src/ansible_navigator/runner/command.py | LaudateCorpus1/ansible-navigator | 28cdea13dba3e9039382eb993989db4b3e61b237 | [
"Apache-2.0"
] | null | null | null | """Herewithin lies the ability to have ansible-runner
run a command in a synchronous manner
"""
from typing import Tuple
from ansible_runner import run_command # type: ignore[import]
from .command_base import CommandBase
class Command(CommandBase):
"""a runner wrapper"""
def run(self) -> Tuple[str, str, i... | 24.05 | 62 | 0.692308 | 66 | 481 | 4.878788 | 0.530303 | 0.093168 | 0.055901 | 0.080745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205821 | 481 | 19 | 63 | 25.315789 | 0.842932 | 0.272349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
4a79f1771d4e4bb465cb3f1a9a1491f4839c94ff | 1,778 | py | Python | thinglang/parser/rule.py | ofples/thinglang | b1391e8fb42d518fc0018400eecb608d18da915a | [
"MIT"
] | 5 | 2017-11-07T21:32:22.000Z | 2019-06-30T18:35:17.000Z | thinglang/parser/rule.py | ofples/thinglang | b1391e8fb42d518fc0018400eecb608d18da915a | [
"MIT"
] | null | null | null | thinglang/parser/rule.py | ofples/thinglang | b1391e8fb42d518fc0018400eecb608d18da915a | [
"MIT"
] | 1 | 2020-03-25T18:14:08.000Z | 2020-03-25T18:14:08.000Z | import inspect
import itertools
class ParserRule(object):
"""
Describes a parser rule - that is, a production rule from the thinglang grammar
"""
COUNTER = itertools.count(0)
def __init__(self, constructor, pattern, predicate, index=None):
self.constructor, self.pattern, self.predicate, ... | 34.192308 | 121 | 0.653543 | 222 | 1,778 | 5.112613 | 0.36036 | 0.042291 | 0.034361 | 0.028194 | 0.042291 | 0.042291 | 0 | 0 | 0 | 0 | 0 | 0.000749 | 0.249156 | 1,778 | 51 | 122 | 34.862745 | 0.849438 | 0.069179 | 0 | 0.138889 | 0 | 0 | 0.02442 | 0.02442 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 0.055556 | 0.611111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
4a9299271b299d926abb0a0591d64a62a2c9c96f | 1,966 | py | Python | lib/spack/external/archspec/cpu/schema.py | kkauder/spack | 6ae8d5c380c1f42094b05d38be26b03650aafb39 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 2,360 | 2017-11-06T08:47:01.000Z | 2022-03-31T14:45:33.000Z | lib/spack/external/archspec/cpu/schema.py | kkauder/spack | 6ae8d5c380c1f42094b05d38be26b03650aafb39 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 13,838 | 2017-11-04T07:49:45.000Z | 2022-03-31T23:38:39.000Z | lib/spack/external/archspec/cpu/schema.py | kkauder/spack | 6ae8d5c380c1f42094b05d38be26b03650aafb39 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 1,793 | 2017-11-04T07:45:50.000Z | 2022-03-30T14:31:53.000Z | # Copyright 2019-2020 Lawrence Livermore National Security, LLC and other
# Archspec Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
"""Global objects with the content of the microarchitecture
JSON file and its schema
"""
import json
import os.path
try... | 27.690141 | 78 | 0.686673 | 250 | 1,966 | 5.196 | 0.408 | 0.055427 | 0.030023 | 0.021555 | 0.13087 | 0.063125 | 0 | 0 | 0 | 0 | 0 | 0.006502 | 0.217701 | 1,966 | 70 | 79 | 28.085714 | 0.838101 | 0.317396 | 0 | 0 | 0 | 0 | 0.048276 | 0.040613 | 0 | 0 | 0 | 0 | 0 | 1 | 0.243243 | false | 0 | 0.135135 | 0.081081 | 0.567568 | 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 | 1 | 0 | 0 | 2 |
4a9da345b8ad273266059bbe744a6fc2c94ae437 | 674 | py | Python | ant/leetcode/re_ordered_powerof2.py | skdong/ant | c10df1983812a4d296c7aeed0124a091c987c57a | [
"Apache-2.0"
] | null | null | null | ant/leetcode/re_ordered_powerof2.py | skdong/ant | c10df1983812a4d296c7aeed0124a091c987c57a | [
"Apache-2.0"
] | null | null | null | ant/leetcode/re_ordered_powerof2.py | skdong/ant | c10df1983812a4d296c7aeed0124a091c987c57a | [
"Apache-2.0"
] | null | null | null | class Solution(object):
def reorderedPowerOf2(self, N):
"""
:type N: int
:rtype: bool
"""
counter_n = [0]*10
n = N
while n > 0:
counter_n[n%10] += 1
n /= 10
for i in range(32):
counter_2 = [0]*10
n2 = 2**... | 24.962963 | 48 | 0.391691 | 78 | 674 | 3.307692 | 0.384615 | 0.093023 | 0.046512 | 0.062016 | 0.100775 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114114 | 0.505935 | 674 | 27 | 49 | 24.962963 | 0.660661 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4aa29337b8f8e78eb61cc2f943b3b87c35e7fbb8 | 505 | py | Python | api/project/__init__.py | wilsoncwc/mapbox-osmnx | 38031e31ad3b97e941a773c99b1f9b544ef93fae | [
"MIT"
] | null | null | null | api/project/__init__.py | wilsoncwc/mapbox-osmnx | 38031e31ad3b97e941a773c99b1f9b544ef93fae | [
"MIT"
] | null | null | null | api/project/__init__.py | wilsoncwc/mapbox-osmnx | 38031e31ad3b97e941a773c99b1f9b544ef93fae | [
"MIT"
] | null | null | null | """
Factory for main flask application
"""
import os
from flask import Flask
from werkzeug.middleware.proxy_fix import ProxyFix
def create_app(flask_config_name=None, **kwargs):
"""
Entry point to the Flask RESTful Server application.
"""
env_flask_config_name = os.getenv('APP_SETTINGS')
app = Fl... | 21.956522 | 56 | 0.722772 | 70 | 505 | 4.942857 | 0.485714 | 0.095376 | 0.130058 | 0.104046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184158 | 505 | 23 | 57 | 21.956522 | 0.839806 | 0.172277 | 0 | 0 | 0 | 0 | 0.030303 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
4aa9920ce130a6e589b6d64270608bf3bfbcb3ff | 393 | py | Python | djangoapps/features/admin.py | sergioruizdavila/asanni-backend | b2da3f3a97dbd1ef46d65f13ee9b2098124d4fc4 | [
"MIT"
] | 8 | 2018-05-24T04:46:58.000Z | 2021-06-11T04:41:49.000Z | djangoapps/features/admin.py | sergioruizdavila/asanni-backend | b2da3f3a97dbd1ef46d65f13ee9b2098124d4fc4 | [
"MIT"
] | null | null | null | djangoapps/features/admin.py | sergioruizdavila/asanni-backend | b2da3f3a97dbd1ef46d65f13ee9b2098124d4fc4 | [
"MIT"
] | 4 | 2020-01-24T13:35:42.000Z | 2021-06-15T07:38:06.000Z | from __future__ import unicode_literals
from django.contrib import admin
from djangoapps.features.models import Feature
class FeatureAdmin(admin.ModelAdmin):
list_display = ('id', 'active', 'feature_en', 'feature_es', 'description_en', 'description_es', 'created_at')
search_fields = ('feature_es',)
... | 26.2 | 113 | 0.743003 | 46 | 393 | 6.043478 | 0.630435 | 0.064748 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13486 | 393 | 14 | 114 | 28.071429 | 0.817647 | 0 | 0 | 0 | 0 | 0 | 0.221374 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
4aabfb6a457d5b57b4251449020b7b00943ea887 | 340 | py | Python | scripts/portal/timeQuest7.py | pantskun/swordiemen | fc33ffec168e6611587fdc75de8270f6827a4176 | [
"MIT"
] | null | null | null | scripts/portal/timeQuest7.py | pantskun/swordiemen | fc33ffec168e6611587fdc75de8270f6827a4176 | [
"MIT"
] | null | null | null | scripts/portal/timeQuest7.py | pantskun/swordiemen | fc33ffec168e6611587fdc75de8270f6827a4176 | [
"MIT"
] | null | null | null | # Road of Regrets 2 (270020200) => Resting Spot of Regret
# The One Who Walks Down the Road of Regrets2
if sm.hasQuestCompleted(3509):
sm.warp(270020210, 3)
else:
sm.chat("Those who do not have the Goddess' permission may not move against the flow of time, and will be sent back to their previous location.")
... | 42.5 | 149 | 0.735294 | 57 | 340 | 4.385965 | 0.77193 | 0.048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123188 | 0.188235 | 340 | 8 | 150 | 42.5 | 0.782609 | 0.291176 | 0 | 0 | 0 | 0.2 | 0.560669 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4ab2dd7f67e07eb3ffcf2d8bd556732d0736efd4 | 1,338 | py | Python | toasty/tests/test_misc.py | imbasimba/toasty | 3b6bf1760e007f8ed3e32dc27281d197cc257fa1 | [
"MIT"
] | null | null | null | toasty/tests/test_misc.py | imbasimba/toasty | 3b6bf1760e007f8ed3e32dc27281d197cc257fa1 | [
"MIT"
] | 59 | 2019-08-02T19:53:03.000Z | 2022-03-22T14:44:57.000Z | toasty/tests/test_misc.py | imbasimba/toasty | 3b6bf1760e007f8ed3e32dc27281d197cc257fa1 | [
"MIT"
] | 3 | 2019-08-02T14:36:45.000Z | 2021-08-25T04:57:20.000Z | # -*- mode: python; coding: utf-8 -*-
# Copyright 2020 the AAS WorldWide Telescope project
# Licensed under the MIT License.
import argparse
import numpy as np
import numpy.testing as nt
import os.path
import pytest
from . import test_path
from .. import cli
class TestMiscCli(object):
def setup_method(self, met... | 25.245283 | 91 | 0.620329 | 163 | 1,338 | 4.957055 | 0.527607 | 0.039604 | 0.040842 | 0.049505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017436 | 0.2713 | 1,338 | 52 | 92 | 25.730769 | 0.811282 | 0.127803 | 0 | 0 | 0 | 0 | 0.082437 | 0.036738 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.15625 | false | 0 | 0.3125 | 0.03125 | 0.53125 | 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 | 1 | 0 | 0 | 2 |
4abe928b5f705595e919b9beed078ac02083063f | 605 | py | Python | invalid_import.py | specfault/GreenerPython | 976260c3e78969cfd3e1e40639325f104325c703 | [
"MIT"
] | null | null | null | invalid_import.py | specfault/GreenerPython | 976260c3e78969cfd3e1e40639325f104325c703 | [
"MIT"
] | null | null | null | invalid_import.py | specfault/GreenerPython | 976260c3e78969cfd3e1e40639325f104325c703 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from utils import after_marker
class InvalidImport:
def __init__(self, name):
self.name = name
def fix(self, code):
marker = f'import {self.name}\n'
parts = code.test.split(marker)
# otherwise it's some weird import and we're not sure how to fix it
... | 25.208333 | 75 | 0.626446 | 85 | 605 | 4.341176 | 0.564706 | 0.065041 | 0.054201 | 0.059621 | 0.092141 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006772 | 0.267769 | 605 | 23 | 76 | 26.304348 | 0.826185 | 0.143802 | 0 | 0 | 0 | 0 | 0.071705 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.3125 | 0 | 0.8125 | 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 | 1 | 0 | 0 | 2 |
4ac083cbacc7f173379f2b388dac414ba84d01d4 | 205 | py | Python | route/alarm_del.py | lsh23/openNAMU | 18f780afe5e81ef1f347fe556b6fd98bb4914a53 | [
"BSD-3-Clause"
] | null | null | null | route/alarm_del.py | lsh23/openNAMU | 18f780afe5e81ef1f347fe556b6fd98bb4914a53 | [
"BSD-3-Clause"
] | null | null | null | route/alarm_del.py | lsh23/openNAMU | 18f780afe5e81ef1f347fe556b6fd98bb4914a53 | [
"BSD-3-Clause"
] | null | null | null | from .tool.func import *
def alarm_del_2(conn):
curs = conn.cursor()
curs.execute(db_change("delete from alarm where name = ?"), [ip_check()])
conn.commit()
return redirect('/alarm') | 22.777778 | 77 | 0.639024 | 28 | 205 | 4.535714 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006135 | 0.204878 | 205 | 9 | 78 | 22.777778 | 0.773006 | 0 | 0 | 0 | 0 | 0 | 0.184466 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 1 | 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 | 2 |
4ac6360e2dbd3ae11120b31db285f6431fba4939 | 763 | py | Python | whats_open/website/serializers.py | bwagner5/whats-open | 89f704e9b728ee7629e2ab7014fc7e108c725cb4 | [
"Apache-2.0"
] | null | null | null | whats_open/website/serializers.py | bwagner5/whats-open | 89f704e9b728ee7629e2ab7014fc7e108c725cb4 | [
"Apache-2.0"
] | null | null | null | whats_open/website/serializers.py | bwagner5/whats-open | 89f704e9b728ee7629e2ab7014fc7e108c725cb4 | [
"Apache-2.0"
] | null | null | null | from rest_framework import serializers
from website.models import Category, Facility, Schedule, OpenTime
class CategorySerializer(serializers.ModelSerializer):
class Meta:
model = Category
class OpenTimeSerializer(serializers.ModelSerializer):
schedule = serializers.RelatedField(many=False)
class ... | 29.346154 | 65 | 0.764089 | 72 | 763 | 8.041667 | 0.388889 | 0.17962 | 0.096718 | 0.165803 | 0.214162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167759 | 763 | 25 | 66 | 30.52 | 0.911811 | 0 | 0 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.789474 | 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 | 1 | 0 | 0 | 2 |
434dd3028bfbe86187abd8bb4e08ecf05054fb68 | 3,421 | py | Python | prepare/migrations/0006_auto_20210801_1550.py | engelsmann/bedom | eeb7eea5c5e908b8a0c744e36a4f9806105c3eb2 | [
"CC0-1.0"
] | 1 | 2020-10-01T06:40:32.000Z | 2020-10-01T06:40:32.000Z | prepare/migrations/0006_auto_20210801_1550.py | engelsmann/bedom | eeb7eea5c5e908b8a0c744e36a4f9806105c3eb2 | [
"CC0-1.0"
] | 17 | 2020-10-01T11:49:30.000Z | 2022-03-04T16:07:45.000Z | prepare/migrations/0006_auto_20210801_1550.py | engelsmann/bedom | eeb7eea5c5e908b8a0c744e36a4f9806105c3eb2 | [
"CC0-1.0"
] | null | null | null | # Generated by Django 3.2.5 on 2021-08-01 13:50
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('prepare', '0005_auto_20210801_1520'),
]
operations = [
migrations.AlterModelOptions(
name='adfærd'... | 34.555556 | 231 | 0.579363 | 311 | 3,421 | 6.266881 | 0.302251 | 0.08312 | 0.084659 | 0.107234 | 0.652129 | 0.623397 | 0.396614 | 0.356593 | 0.356593 | 0.356593 | 0 | 0.017285 | 0.306635 | 3,421 | 98 | 232 | 34.908163 | 0.804384 | 0.013154 | 0 | 0.75 | 1 | 0 | 0.169532 | 0.019858 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021739 | 0 | 0.054348 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
436353a1a6d3425e83d1220b058dd18856f5415f | 321 | py | Python | config/settings/local.py | Jefwillems/modern-django-1000px | 87d81965ce7f6395de2687b2cc80b99b4fc56e02 | [
"MIT"
] | null | null | null | config/settings/local.py | Jefwillems/modern-django-1000px | 87d81965ce7f6395de2687b2cc80b99b4fc56e02 | [
"MIT"
] | null | null | null | config/settings/local.py | Jefwillems/modern-django-1000px | 87d81965ce7f6395de2687b2cc80b99b4fc56e02 | [
"MIT"
] | null | null | null | from .base import *
DEBUG = env.bool('DJANGO_DEBUG', default=True)
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'artproject',
'USER': 'artprojectuser',
'PASSWORD': 'testUserPassword',
'HOST': 'localhost',
'PORT': '',
}
}... | 21.4 | 59 | 0.557632 | 27 | 321 | 6.555556 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004237 | 0.264798 | 321 | 14 | 60 | 22.928571 | 0.745763 | 0 | 0 | 0 | 0 | 0 | 0.423676 | 0.11838 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.083333 | 0 | 0.083333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
4368466e6728e03c8f0d98db2590940f7fc7db7c | 227 | py | Python | music/class_/audioa/c/sharp/minor.py | jedhsu/music | dea68c4a82296cd4910e786f533b2cbf861377c3 | [
"MIT"
] | null | null | null | music/class_/audioa/c/sharp/minor.py | jedhsu/music | dea68c4a82296cd4910e786f533b2cbf861377c3 | [
"MIT"
] | null | null | null | music/class_/audioa/c/sharp/minor.py | jedhsu/music | dea68c4a82296cd4910e786f533b2cbf861377c3 | [
"MIT"
] | null | null | null | """
*C♯ Minor*
The key of C♯ minor.
"""
from ..._mode import MinorKey
from ....scale import Diatonic
from ._key import CsKey
__all__ = ["CsMinor"]
class CsMinor(
CsKey,
MinorKey,
Diatonic,
):
pass
| 9.869565 | 30 | 0.599119 | 29 | 227 | 4.551724 | 0.586207 | 0.030303 | 0.106061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.268722 | 227 | 22 | 31 | 10.318182 | 0.783133 | 0.140969 | 0 | 0 | 0 | 0 | 0.039106 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.3 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
436c7d2a256b1f46452aef39337e286aa1854268 | 292 | py | Python | multinet/api/admin/upload.py | multinet-app/multinet-api | a658d787f0fb9ba415ed85a1e37c29953486287f | [
"Apache-2.0"
] | null | null | null | multinet/api/admin/upload.py | multinet-app/multinet-api | a658d787f0fb9ba415ed85a1e37c29953486287f | [
"Apache-2.0"
] | 91 | 2021-03-15T19:00:15.000Z | 2022-03-11T00:04:05.000Z | multinet/api/admin/upload.py | multinet-app/multinet-api | a658d787f0fb9ba415ed85a1e37c29953486287f | [
"Apache-2.0"
] | 1 | 2022-02-05T15:53:04.000Z | 2022-02-05T15:53:04.000Z | from django.contrib import admin
from guardian.admin import GuardedModelAdmin
from multinet.api.models import Upload
@admin.register(Upload)
class UploadAdmin(GuardedModelAdmin):
list_display = ['id', 'created', 'modified', 'workspace', 'blob']
readonly_fields = ['id', 'created']
| 26.545455 | 69 | 0.75 | 33 | 292 | 6.575758 | 0.69697 | 0.082949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126712 | 292 | 10 | 70 | 29.2 | 0.85098 | 0 | 0 | 0 | 0 | 0 | 0.133562 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.857143 | 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 | 1 | 0 | 0 | 2 |
437e8ab67b0fadf10494ae6f2ec0026c0a5ddaf8 | 648 | py | Python | documents/tests/conftest.py | City-of-Helsinki/atv | dca73dab09ab0f3a051a9f691aec5674c6369bde | [
"MIT"
] | null | null | null | documents/tests/conftest.py | City-of-Helsinki/atv | dca73dab09ab0f3a051a9f691aec5674c6369bde | [
"MIT"
] | 34 | 2021-05-28T06:23:38.000Z | 2022-03-08T12:42:01.000Z | documents/tests/conftest.py | City-of-Helsinki/atv | dca73dab09ab0f3a051a9f691aec5674c6369bde | [
"MIT"
] | 1 | 2021-05-27T10:37:42.000Z | 2021-05-27T10:37:42.000Z | import shutil
import pytest # noqa
from pytest_factoryboy import register
from atv.tests.conftest import * # noqa
from services.tests.conftest import * # noqa
from users.tests.conftest import * # noqa
from .factories import AttachmentFactory, DocumentFactory
@pytest.fixture(autouse=True)
def custom_media_dir_f... | 24.923077 | 64 | 0.782407 | 80 | 648 | 6.175 | 0.475 | 0.064777 | 0.115385 | 0.139676 | 0.163968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146605 | 648 | 25 | 65 | 25.92 | 0.893309 | 0.12037 | 0 | 0 | 0 | 0 | 0.035461 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.466667 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
437ff3f38ee3889654a4b55ca4eebb1703a9c2bc | 2,134 | py | Python | utils/lr_scheduler.py | tagonata/pytorch_template | 8c0e5a749c1d58e9f81d6f7f456a7769762d4792 | [
"MIT"
] | null | null | null | utils/lr_scheduler.py | tagonata/pytorch_template | 8c0e5a749c1d58e9f81d6f7f456a7769762d4792 | [
"MIT"
] | 1 | 2020-05-04T12:08:47.000Z | 2020-05-04T12:08:47.000Z | utils/lr_scheduler.py | tagonata/pytorch_template | 8c0e5a749c1d58e9f81d6f7f456a7769762d4792 | [
"MIT"
] | null | null | null | import math
from torch.optim.lr_scheduler import _LRScheduler
class CosineAnnealingWithRestartsLR(_LRScheduler):
"""Set the learning rate of each parameter group using a cosine annealing
schedule, where :math:`\eta_{max}` is set to the initial lr and
:math:`T_{cur}` is the number of epochs since the last... | 38.8 | 119 | 0.663074 | 314 | 2,134 | 4.283439 | 0.334395 | 0.035688 | 0.047584 | 0.043123 | 0.104089 | 0.104089 | 0.066915 | 0 | 0 | 0 | 0 | 0.014136 | 0.237582 | 2,134 | 54 | 120 | 39.518519 | 0.812538 | 0.439082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0.115385 | 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 | 1 | 0 | 0 | 0 | 2 |
4386a49be7dc8a6a83e80a591931860fedd42f3b | 938 | py | Python | coffin/views/defaults.py | spothero/coffin | 9ea6a9173cbfed592c5b4776c489dba8d9280d52 | [
"BSD-3-Clause"
] | 1 | 2016-11-19T06:32:20.000Z | 2016-11-19T06:32:20.000Z | coffin/views/defaults.py | spothero/coffin | 9ea6a9173cbfed592c5b4776c489dba8d9280d52 | [
"BSD-3-Clause"
] | null | null | null | coffin/views/defaults.py | spothero/coffin | 9ea6a9173cbfed592c5b4776c489dba8d9280d52 | [
"BSD-3-Clause"
] | 1 | 2019-08-14T09:51:23.000Z | 2019-08-14T09:51:23.000Z | from django import http
from django.template import Context, RequestContext
from coffin.template.loader import render_to_string
__all__ = ('page_not_found', 'server_error', 'shortcut')
# no Jinja version for this needed
from django.views.defaults import shortcut
def page_not_found(request, template_na... | 26.055556 | 73 | 0.680171 | 110 | 938 | 5.590909 | 0.463636 | 0.078049 | 0.068293 | 0.068293 | 0.107317 | 0.107317 | 0 | 0 | 0 | 0 | 0 | 0.024523 | 0.217484 | 938 | 35 | 74 | 26.8 | 0.813352 | 0.24307 | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
438b744bd1ae31e3f9f06c610fe9efa7a9e6358c | 187 | py | Python | server/Location/urls.py | raminawahda7/servize | 9941401c72a949c8c2ad83012ab5cc4276355b6c | [
"MIT"
] | null | null | null | server/Location/urls.py | raminawahda7/servize | 9941401c72a949c8c2ad83012ab5cc4276355b6c | [
"MIT"
] | null | null | null | server/Location/urls.py | raminawahda7/servize | 9941401c72a949c8c2ad83012ab5cc4276355b6c | [
"MIT"
] | null | null | null | from django.urls import path
from Location.views import CityList
app_name='Location'
urlpatterns=[
path('city/',CityList.as_view()),
# path('city/area/',AreaList.as_view())
]
| 17 | 43 | 0.705882 | 25 | 187 | 5.16 | 0.64 | 0.124031 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139037 | 187 | 10 | 44 | 18.7 | 0.801242 | 0.197861 | 0 | 0 | 0 | 0 | 0.087838 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
438c7317229e7208bdfb03fd7fe917b78875713a | 1,351 | py | Python | src/appengine/libs/query/base.py | ABHIsHEk122811/clusterfuzz | 7cac0ee869787e6f547a4b3dac18196c60f03383 | [
"Apache-2.0"
] | 5,023 | 2019-02-07T16:57:56.000Z | 2022-03-31T01:08:05.000Z | src/appengine/libs/query/base.py | ABHIsHEk122811/clusterfuzz | 7cac0ee869787e6f547a4b3dac18196c60f03383 | [
"Apache-2.0"
] | 2,303 | 2019-02-07T17:36:36.000Z | 2022-03-31T15:44:38.000Z | src/appengine/libs/query/base.py | ABHIsHEk122811/clusterfuzz | 7cac0ee869787e6f547a4b3dac18196c60f03383 | [
"Apache-2.0"
] | 564 | 2019-02-07T17:34:24.000Z | 2022-03-26T09:25:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 34.641026 | 75 | 0.738712 | 189 | 1,351 | 5.26455 | 0.560847 | 0.060302 | 0.081407 | 0.032161 | 0.058291 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007227 | 0.180607 | 1,351 | 38 | 76 | 35.552632 | 0.891599 | 0.723168 | 0 | 0.444444 | 0 | 0 | 0.003077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | false | 0 | 0 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
43a1de8d46ef2b502ba345029f7d1f44a9154bde | 321 | py | Python | tensorflow_forward_ad/setup_cbfs.py | renmengye/tensorflow-forward-ad | ddf93f3d4c3969569200c8fe6bc1fd0f1ff9bece | [
"MIT"
] | 147 | 2017-06-04T16:50:51.000Z | 2022-02-24T06:02:25.000Z | tensorflow_forward_ad/setup_cbfs.py | renmengye/tensorflow-forward-ad | ddf93f3d4c3969569200c8fe6bc1fd0f1ff9bece | [
"MIT"
] | 5 | 2017-06-06T14:11:10.000Z | 2019-11-27T12:32:25.000Z | tensorflow_forward_ad/setup_cbfs.py | renmengye/tensorflow-forward-ad | ddf93f3d4c3969569200c8fe6bc1fd0f1ff9bece | [
"MIT"
] | 22 | 2017-06-04T16:58:29.000Z | 2021-07-08T12:00:25.000Z | #!/usr/bin/env python
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy
setup(
cmdclass={'build_ext': build_ext},
ext_modules=[
Extension(
"cbfs", sources=["cbfs.pyx"], include_dirs=[numpy.get_include()])
],)... | 21.4 | 77 | 0.691589 | 40 | 321 | 5.4 | 0.55 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186916 | 321 | 14 | 78 | 22.928571 | 0.827586 | 0.062305 | 0 | 0 | 0 | 0 | 0.07 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
43bd21ad141e0645e4a3cd8e4efd81eee471616f | 1,229 | py | Python | billingclient/v1/chart/definition.py | nubeliu/billingclient | f2539e211ca049f3ddc9ce5680932f8f5eff7434 | [
"Apache-2.0"
] | 1 | 2018-01-04T16:20:51.000Z | 2018-01-04T16:20:51.000Z | billingclient/v1/chart/definition.py | nubeliu/billingclient | f2539e211ca049f3ddc9ce5680932f8f5eff7434 | [
"Apache-2.0"
] | null | null | null | billingclient/v1/chart/definition.py | nubeliu/billingclient | f2539e211ca049f3ddc9ce5680932f8f5eff7434 | [
"Apache-2.0"
] | null | null | null | # NubeliU Billing SDK
# @autor: Sergio Colinas
from billingclient.common import base
class Chart(base.Resource):
key = 'charts'
def __repr__(self):
return "<Chart %s>" % self._info
class Dashboard(base.Resource):
key = 'dashboards'
def __repr__(self):
return "<Dashboard %s>" % se... | 20.830508 | 65 | 0.682669 | 130 | 1,229 | 6.230769 | 0.307692 | 0.080247 | 0.11358 | 0.138272 | 0.340741 | 0.293827 | 0.293827 | 0.293827 | 0 | 0 | 0 | 0.004107 | 0.207486 | 1,229 | 58 | 66 | 21.189655 | 0.827515 | 0.034174 | 0 | 0.485714 | 0 | 0 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114286 | false | 0 | 0.028571 | 0.114286 | 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 | 1 | 1 | 0 | 0 | 2 |
43bece653ade8f141f24754cfb49d640fc5076fd | 583 | py | Python | AgentCode/Lib/aocutils/display/backends.py | ManuelHoss/Multiagent-selfconstruction | d3f8af9a55ec9c279d693d311dd58f2caa8b71c9 | [
"MIT"
] | 2 | 2020-01-08T11:18:59.000Z | 2021-01-02T03:30:20.000Z | AgentCode/Lib/aocutils/display/backends.py | ManuelHoss/Multiagent-selfconstruction | d3f8af9a55ec9c279d693d311dd58f2caa8b71c9 | [
"MIT"
] | null | null | null | AgentCode/Lib/aocutils/display/backends.py | ManuelHoss/Multiagent-selfconstruction | d3f8af9a55ec9c279d693d311dd58f2caa8b71c9 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# coding: utf-8
r"""backends module
Summary
-------
Graphical backends related stuff
"""
def available_backends():
r"""List of available backends"""
backends = list()
try:
import wx
backends.append("wx")
except ImportError:
print("No wx backend")
try:
... | 17.147059 | 37 | 0.598628 | 64 | 583 | 5.4375 | 0.46875 | 0.077586 | 0.189655 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009592 | 0.284734 | 583 | 33 | 38 | 17.666667 | 0.82494 | 0.212693 | 0 | 0.3 | 0 | 0 | 0.146067 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.3 | 0 | 0.4 | 0.15 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
43c19cf1d4a99f7835cb0788ba7c743514d611fb | 967 | py | Python | 0651-0700/0665-NonDecreasingArray/NonDecreasingArray.py | Sun-Zhen/leetcode | 57fe0de95881255393e0d6817e75bfae8f5744dc | [
"Apache-2.0"
] | 3 | 2018-04-12T05:13:52.000Z | 2018-04-15T05:11:51.000Z | 0651-0700/0665-NonDecreasingArray/NonDecreasingArray.py | Sun-Zhen/leetcode | 57fe0de95881255393e0d6817e75bfae8f5744dc | [
"Apache-2.0"
] | null | null | null | 0651-0700/0665-NonDecreasingArray/NonDecreasingArray.py | Sun-Zhen/leetcode | 57fe0de95881255393e0d6817e75bfae8f5744dc | [
"Apache-2.0"
] | null | null | null | # -*- coding:utf-8 -*-
"""
@author: Alden
@email: sunzhenhy@gmail.com
@date: 2018/4/1
@version: 1.0.0.0
"""
class Solution(object):
def checkPossibility(self, nums):
"""
:type nums: List[int]
:rtype: bool
"""
# if len(nums) == 1:
# return True
for i in r... | 24.794872 | 73 | 0.50879 | 132 | 967 | 3.666667 | 0.333333 | 0.082645 | 0.272727 | 0.066116 | 0.438017 | 0.365702 | 0.157025 | 0.157025 | 0.157025 | 0.157025 | 0 | 0.058282 | 0.32575 | 967 | 38 | 74 | 25.447368 | 0.684049 | 0.056877 | 0 | 0.3 | 0 | 0 | 0.010554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.3 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
43d22b0a7ae4d4cc1e39b85c5814ad26b9b8a1b7 | 262 | py | Python | Codeforces/9A.py | Shaswat-2203/HacktoberfestForBeginners | 39d2862ced151493b93bf13f43d751f95a468198 | [
"MIT"
] | 115 | 2019-10-12T02:30:40.000Z | 2022-03-31T21:42:58.000Z | Codeforces/9A.py | Shaswat-2203/HacktoberfestForBeginners | 39d2862ced151493b93bf13f43d751f95a468198 | [
"MIT"
] | 37 | 2019-10-11T18:25:44.000Z | 2021-10-08T06:16:45.000Z | Codeforces/9A.py | Shaswat-2203/HacktoberfestForBeginners | 39d2862ced151493b93bf13f43d751f95a468198 | [
"MIT"
] | 481 | 2019-10-11T18:01:47.000Z | 2022-03-25T11:11:02.000Z | s = input()
y = s[0]
w = s[2]
if int(y) > int(w):
p = 7 - int(y)
else:
p = 7 - int(w)
if p == 1:
print('1/6')
if p == 2:
print('1/3')
if p == 3:
print('1/2')
if p == 4:
print('2/3')
if p == 5:
print('5/6')
if p == 6:
print('1/1')
| 13.1 | 19 | 0.396947 | 58 | 262 | 1.793103 | 0.293103 | 0.173077 | 0.096154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0.328244 | 262 | 19 | 20 | 13.789474 | 0.465909 | 0 | 0 | 0 | 0 | 0 | 0.068702 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.315789 | 0 | 0 | 1 | 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 | 2 |
43e2fcd8532bd26154abb2c8be43988739f12e92 | 14,574 | py | Python | pyjokes/jokes_it.py | r0d0dendr0n/pyjokes | 382065cba91007302be7fd04c5c35a9957e173b2 | [
"BSD-3-Clause"
] | 293 | 2015-08-04T13:59:27.000Z | 2022-03-12T12:43:33.000Z | pyjokes/jokes_it.py | r0d0dendr0n/pyjokes | 382065cba91007302be7fd04c5c35a9957e173b2 | [
"BSD-3-Clause"
] | 88 | 2015-07-26T13:08:16.000Z | 2022-02-10T07:51:28.000Z | pyjokes/jokes_it.py | r0d0dendr0n/pyjokes | 382065cba91007302be7fd04c5c35a9957e173b2 | [
"BSD-3-Clause"
] | 103 | 2015-08-06T17:27:29.000Z | 2022-02-28T19:50:29.000Z | # -*- coding: utf-8 -*-
"""
Jokes from stackoverflow - provided under CC BY-SA 3.0
http://stackoverflow.com/questions/234075/what-is-your-best-programmer-joke?page=4&tab=votes#tab-top
"""
neutral = [
"Trionfalmente, Beth ha rimosso Python 2.7 dal server nel 2020.'Finalmente!' ha detto con gioia, solo per vedere l... | 79.639344 | 145 | 0.727734 | 2,234 | 14,574 | 4.74709 | 0.383617 | 0.094389 | 0.027723 | 0.013579 | 0.08562 | 0.059972 | 0.039415 | 0.034323 | 0.02678 | 0 | 0 | 0.006058 | 0.195828 | 14,574 | 182 | 146 | 80.076923 | 0.898805 | 0.012214 | 0 | 0 | 0 | 0.232143 | 0.903305 | 0.001474 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
78ddc3f1c2e107125b2ca2be47b10f3f9a033f5a | 291 | py | Python | hcaptcha_field/__init__.py | tiesjan/django-hcaptcha-field | 44a2fc77ba0480e8ac94e490b16adc73d7989cf8 | [
"BSD-3-Clause"
] | 4 | 2021-06-14T17:13:04.000Z | 2021-12-12T04:56:52.000Z | hcaptcha_field/__init__.py | tiesjan/django-hcaptcha-field | 44a2fc77ba0480e8ac94e490b16adc73d7989cf8 | [
"BSD-3-Clause"
] | 1 | 2021-09-18T08:44:56.000Z | 2021-09-23T08:07:25.000Z | hcaptcha_field/__init__.py | tiesjan/django-hcaptcha-field | 44a2fc77ba0480e8ac94e490b16adc73d7989cf8 | [
"BSD-3-Clause"
] | 1 | 2021-07-31T13:18:42.000Z | 2021-07-31T13:18:42.000Z | import django
from .fields import hCaptchaField
from .settings import hcaptcha_settings
from .widgets import hCaptchaWidget
__all__ = ('hCaptchaField', 'hCaptchaWidget', 'hcaptcha_settings')
if django.VERSION < (3, 2):
default_app_config = 'hcaptcha_field.apps.hCaptchaFieldConfig'
| 22.384615 | 66 | 0.790378 | 32 | 291 | 6.90625 | 0.625 | 0.144796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007843 | 0.123711 | 291 | 12 | 67 | 24.25 | 0.858824 | 0 | 0 | 0 | 0 | 0 | 0.285223 | 0.134021 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
78e79526d7eaa751c8ed627245cafb3d4e31cea5 | 301 | py | Python | tests/test_imaginary_result.py | rjhansen/arclight | 26adc529bbd1499251bc4cac81424a298cf73752 | [
"0BSD"
] | 2 | 2021-07-24T20:26:51.000Z | 2021-07-24T20:34:07.000Z | tests/test_imaginary_result.py | rjhansen/arclight | 26adc529bbd1499251bc4cac81424a298cf73752 | [
"0BSD"
] | null | null | null | tests/test_imaginary_result.py | rjhansen/arclight | 26adc529bbd1499251bc4cac81424a298cf73752 | [
"0BSD"
] | null | null | null | #!/usr/bin/env python3
"Ensures we don't return imaginary results."
import pytest
from genquad import general_quadratic, ImaginaryResult
def test_not_real():
with pytest.raises(ImaginaryResult):
# x**2 + 1 = 0 is not a real quadratic equation.
general_quadratic(1.0, 0.0, 1.0)
| 23.153846 | 56 | 0.707641 | 45 | 301 | 4.644444 | 0.688889 | 0.028708 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041152 | 0.192691 | 301 | 12 | 57 | 25.083333 | 0.81893 | 0.368771 | 0 | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
78ea8c8bf9caaf2d88f6eb91f11d0bdf025d5c5b | 2,778 | py | Python | utils.py | DaniUPC/tf_dataio | 86fb5eb4746d4df40db4fdd254929829e8153568 | [
"MIT"
] | 2 | 2017-11-22T09:59:21.000Z | 2019-06-26T02:37:53.000Z | utils.py | DaniUPC/tf_dataio | 86fb5eb4746d4df40db4fdd254929829e8153568 | [
"MIT"
] | 7 | 2020-03-24T15:39:03.000Z | 2021-03-18T20:27:13.000Z | utils.py | DaniUPC/tf_dataio | 86fb5eb4746d4df40db4fdd254929829e8153568 | [
"MIT"
] | null | null | null | # ! /usr/bin/python
import pickle
import os
import json
import urllib.request
import logging
from datetime import datetime
logger = logging.getLogger(__name__)
NON_SAVABLE_COL = 'not_saveable'
HOME_FOLDER = os.path.expanduser("~")
FOLDED_DATA_ROOT = os.path.join(HOME_FOLDER, '.tf_data_folded')
DATA_ROOT = os.path.... | 21.874016 | 73 | 0.671706 | 418 | 2,778 | 4.313397 | 0.294258 | 0.036606 | 0.033278 | 0.024404 | 0.234054 | 0.208541 | 0.176373 | 0.176373 | 0.176373 | 0.114254 | 0 | 0 | 0.218143 | 2,778 | 126 | 74 | 22.047619 | 0.830111 | 0.227502 | 0 | 0.0625 | 0 | 0 | 0.038049 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.265625 | false | 0.015625 | 0.09375 | 0.078125 | 0.59375 | 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 | 1 | 0 | 0 | 2 |
78f1e9c4f8e5d531b7e3e5c82f9bf94dbff7bd34 | 2,836 | py | Python | scripts/baxter_selfie.py | osrf/baxter_demos | 1678291de6addb7c3d5ac0391ccd5917398ab195 | [
"Apache-2.0"
] | 29 | 2015-03-05T19:03:00.000Z | 2021-08-11T05:48:51.000Z | scripts/baxter_selfie.py | rethink-imcmahon/baxter_demos | 1678291de6addb7c3d5ac0391ccd5917398ab195 | [
"Apache-2.0"
] | 1 | 2016-01-30T21:22:07.000Z | 2016-02-04T19:33:24.000Z | scripts/baxter_selfie.py | rethink-imcmahon/baxter_demos | 1678291de6addb7c3d5ac0391ccd5917398ab195 | [
"Apache-2.0"
] | 12 | 2015-01-30T17:14:15.000Z | 2021-01-27T07:54:54.000Z | #!/usr/bin/env python
import rospy
import argparse
import baxter_interface
from baxter_interface import CHECK_VERSION
import common
import cv, cv2, cv_bridge
import numpy
import datetime
import yaml
from sensor_msgs.msg import Image
img = None
demos_path = rospy.get_param('baxter_demos_folder')
print demos_path
with... | 29.852632 | 100 | 0.674894 | 363 | 2,836 | 5.068871 | 0.449036 | 0.024457 | 0.016304 | 0.026087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008997 | 0.21615 | 2,836 | 94 | 101 | 30.170213 | 0.818713 | 0.072638 | 0 | 0.029851 | 0 | 0 | 0.149123 | 0.0164 | 0 | 0 | 0 | 0.010638 | 0 | 0 | null | null | 0 | 0.149254 | null | null | 0.074627 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
600cfb7417f230885382021b16a779e16726f120 | 4,073 | py | Python | parl/core/agent_base.py | jkren6/PARL | 7299032f8e1804bb4ada0f087fd485816046fa90 | [
"Apache-2.0"
] | 2 | 2020-12-21T09:02:12.000Z | 2020-12-22T14:07:00.000Z | parl/core/agent_base.py | jkren6/PARL | 7299032f8e1804bb4ada0f087fd485816046fa90 | [
"Apache-2.0"
] | null | null | null | parl/core/agent_base.py | jkren6/PARL | 7299032f8e1804bb4ada0f087fd485816046fa90 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | 36.044248 | 114 | 0.630493 | 542 | 4,073 | 4.671587 | 0.293358 | 0.060032 | 0.023697 | 0.025276 | 0.507109 | 0.507109 | 0.443128 | 0.443128 | 0.421801 | 0.421801 | 0 | 0.006274 | 0.295605 | 4,073 | 112 | 115 | 36.366071 | 0.876264 | 0.700958 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | false | 0 | 0 | 0.055556 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
600f0143c27f90ac3e208d5577438604603e3f68 | 630 | py | Python | University Website Project/courseworkupload - Not Me/upload/views.py | Rozkipz/RPSTask | 0da3f86a647e1dcc3ddc9a65f9c1690ea9cee61c | [
"Apache-2.0"
] | null | null | null | University Website Project/courseworkupload - Not Me/upload/views.py | Rozkipz/RPSTask | 0da3f86a647e1dcc3ddc9a65f9c1690ea9cee61c | [
"Apache-2.0"
] | null | null | null | University Website Project/courseworkupload - Not Me/upload/views.py | Rozkipz/RPSTask | 0da3f86a647e1dcc3ddc9a65f9c1690ea9cee61c | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render
# Create your views here.
from django.http import HttpResponseRedirect
from django.http import HttpResponse
from django.shortcuts import render
from django.core.urlresolvers import reverse
from .forms import docform
from .models import Document
def upload(request):
if request.... | 25.2 | 64 | 0.701587 | 73 | 630 | 6.041096 | 0.479452 | 0.113379 | 0.086168 | 0.113379 | 0.14059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209524 | 630 | 24 | 65 | 26.25 | 0.885542 | 0.036508 | 0 | 0.117647 | 0 | 0 | 0.046358 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.411765 | 0 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
60149a0cfcd667a386b5500a480b070393f89dae | 898 | py | Python | Code/extened-mozilla-parser/moz-sql-parser-hack/tests/test_meta.py | RemilYoucef/sd-4sql | 41e4308bed41bf71e6a941060aad4c746374dd0e | [
"MIT"
] | 5 | 2021-08-24T12:16:17.000Z | 2022-03-24T13:39:53.000Z | Code/extened-mozilla-parser/moz-sql-parser-hack/tests/test_meta.py | RemilYoucef/sd-4sql | 41e4308bed41bf71e6a941060aad4c746374dd0e | [
"MIT"
] | null | null | null | Code/extened-mozilla-parser/moz-sql-parser-hack/tests/test_meta.py | RemilYoucef/sd-4sql | 41e4308bed41bf71e6a941060aad4c746374dd0e | [
"MIT"
] | null | null | null |
# encoding: utf-8
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
#
# Author: Kyle Lahnakoski (kyle@lahnakoski.com)
#
from __future__ import absolute_import, divisio... | 25.657143 | 82 | 0.718263 | 133 | 898 | 4.699248 | 0.631579 | 0.032 | 0.032 | 0.0512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012517 | 0.199332 | 898 | 34 | 83 | 26.411765 | 0.856745 | 0.371938 | 0 | 0 | 0 | 0 | 0.068646 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.5 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
601644e9df466ba6bf44b353fe12b06ecdcf51f7 | 492 | py | Python | server/app/routes/recipes.py | hunterparks/recipe-collector-back-end | b3784d91b9c0a61c1c0dbc34e5551e5e725e2f12 | [
"0BSD"
] | null | null | null | server/app/routes/recipes.py | hunterparks/recipe-collector-back-end | b3784d91b9c0a61c1c0dbc34e5551e5e725e2f12 | [
"0BSD"
] | null | null | null | server/app/routes/recipes.py | hunterparks/recipe-collector-back-end | b3784d91b9c0a61c1c0dbc34e5551e5e725e2f12 | [
"0BSD"
] | null | null | null | from flask_restful import Resource, abort
recipes = []
# Handles the collection
class RecipesResource(Resource):
def get(self):
return {
'data': recipes
}
def post(self):
return
# Handles the items in collection
class Recipes(Resource):
def get(self, id)... | 22.363636 | 49 | 0.520325 | 50 | 492 | 5.1 | 0.56 | 0.078431 | 0.109804 | 0.141176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009934 | 0.386179 | 492 | 22 | 49 | 22.363636 | 0.834437 | 0.109756 | 0 | 0.117647 | 0 | 0 | 0.050602 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.058824 | 0.117647 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
60175c02bcc359420ce3f62de16994c92a9de7b3 | 408 | py | Python | openstack_dashboard/dashboards/sdscontroller/administration/views.py | iostackproject/SDS-dashboard | efa3d7968c738bfb10bc19776f24f2937d5802d8 | [
"Apache-2.0"
] | 1 | 2021-01-20T00:14:15.000Z | 2021-01-20T00:14:15.000Z | openstack_dashboard/dashboards/sdscontroller/administration/views.py | iostackproject/SDS-dashboard | efa3d7968c738bfb10bc19776f24f2937d5802d8 | [
"Apache-2.0"
] | null | null | null | openstack_dashboard/dashboards/sdscontroller/administration/views.py | iostackproject/SDS-dashboard | efa3d7968c738bfb10bc19776f24f2937d5802d8 | [
"Apache-2.0"
] | null | null | null | from horizon import tabs
from openstack_dashboard.dashboards.sdscontroller.administration import tabs as administration_tabs
class IndexView(tabs.TabbedTableView):
tab_group_class = administration_tabs.MyPanelTabs
template_name = 'sdscontroller/administration/index.html'
def get_data(self, request, cont... | 31.384615 | 99 | 0.769608 | 47 | 408 | 6.531915 | 0.702128 | 0.065147 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159314 | 408 | 12 | 100 | 34 | 0.895044 | 0.07598 | 0 | 0 | 0 | 0 | 0.104 | 0.104 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.142857 | 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 | 1 | 1 | 0 | 0 | 2 |
602cf0d1866d94183539c9f1e16a99b4fef9a46c | 9,311 | py | Python | tests/python/gaia-ui-tests/gaiatest/apps/contacts/regions/settings_form.py | tedders1/gaia | 404a35a60c952bb4c112ecc433f1edce5f6f7ff1 | [
"Apache-2.0"
] | null | null | null | tests/python/gaia-ui-tests/gaiatest/apps/contacts/regions/settings_form.py | tedders1/gaia | 404a35a60c952bb4c112ecc433f1edce5f6f7ff1 | [
"Apache-2.0"
] | null | null | null | tests/python/gaia-ui-tests/gaiatest/apps/contacts/regions/settings_form.py | tedders1/gaia | 404a35a60c952bb4c112ecc433f1edce5f6f7ff1 | [
"Apache-2.0"
] | null | null | null | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from marionette_driver import expected, By, Wait
from gaiatest.apps.base import Base
class SettingsForm(Base):
_s... | 50.32973 | 99 | 0.736226 | 1,172 | 9,311 | 5.482935 | 0.119454 | 0.12854 | 0.10084 | 0.128852 | 0.652039 | 0.612667 | 0.54793 | 0.490352 | 0.411298 | 0.335512 | 0 | 0.003705 | 0.159274 | 9,311 | 184 | 100 | 50.603261 | 0.817195 | 0.027172 | 0 | 0.238411 | 0 | 0 | 0.062631 | 0.024633 | 0 | 0 | 0 | 0.005435 | 0 | 1 | 0.145695 | false | 0 | 0.384106 | 0.039735 | 0.774834 | 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 | 1 | 0 | 0 | 2 |
60317b99112d1b3800b283ea6062409827dc4b71 | 286 | py | Python | register_bank_v.py | racerxdl/riskow-python | ed2ae5765c73ebc943ac93ecd173f9d321eb0175 | [
"Apache-2.0"
] | null | null | null | register_bank_v.py | racerxdl/riskow-python | ed2ae5765c73ebc943ac93ecd173f9d321eb0175 | [
"Apache-2.0"
] | null | null | null | register_bank_v.py | racerxdl/riskow-python | ed2ae5765c73ebc943ac93ecd173f9d321eb0175 | [
"Apache-2.0"
] | null | null | null | from amaranth.back import verilog
from register_bank import RegisterBank
top = RegisterBank()
with open("register_bank.v", "w") as f:
f.write(verilog.convert(top, ports=[top.reset, top.regNum0, top.regNum1, top.wRegNum, top.writeEnable, top.dataOut0, top.dataOut1, top.dataIn])) | 31.777778 | 148 | 0.755245 | 42 | 286 | 5.095238 | 0.619048 | 0.11215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015748 | 0.111888 | 286 | 9 | 148 | 31.777778 | 0.826772 | 0 | 0 | 0 | 0 | 0 | 0.055749 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
6036745d1433a9ab7203a10149a1aa3e817893dc | 790 | py | Python | seqiter.py | abarnert/seqiter | 03671e233747ec99226387c44e2452ac96fb088b | [
"MIT"
] | 1 | 2015-11-08T21:17:00.000Z | 2015-11-08T21:17:00.000Z | seqiter.py | abarnert/seqiter | 03671e233747ec99226387c44e2452ac96fb088b | [
"MIT"
] | null | null | null | seqiter.py | abarnert/seqiter | 03671e233747ec99226387c44e2452ac96fb088b | [
"MIT"
] | null | null | null | from collections.abc import Sequence, Iterator
class SeqIter(Sequence, Iterator):
def __init__(self, elts, _pos=-1):
self._elts = list(elts)
self._pos = _pos
def __next__(self):
self._pos += 1
try:
return self._elts[self._pos]
except IndexError:
r... | 24.6875 | 55 | 0.582278 | 106 | 790 | 3.962264 | 0.358491 | 0.114286 | 0.066667 | 0.07619 | 0.171429 | 0.140476 | 0.140476 | 0.140476 | 0.140476 | 0.140476 | 0 | 0.017123 | 0.260759 | 790 | 31 | 56 | 25.483871 | 0.702055 | 0 | 0 | 0.214286 | 0 | 0 | 0.04943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.035714 | 0.142857 | 0.464286 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 2 |
6036e3a74cb50a72b26342b443c6892c49a4af08 | 168 | py | Python | wafw00f/plugins/ciscoacexml.py | shahsparx/wafw00f | d28dc3d7fa6b6977fbaf5e2cdb57808bcbe34c60 | [
"BSD-3-Clause"
] | 10 | 2015-08-31T10:38:24.000Z | 2021-09-30T06:39:13.000Z | wafw00f/plugins/ciscoacexml.py | raminfp/wafw00f | 98796bfba768ee3128e09c2b9e0aa05b8c0d2116 | [
"BSD-3-Clause"
] | null | null | null | wafw00f/plugins/ciscoacexml.py | raminfp/wafw00f | 98796bfba768ee3128e09c2b9e0aa05b8c0d2116 | [
"BSD-3-Clause"
] | 17 | 2015-07-24T20:40:23.000Z | 2021-01-08T19:41:18.000Z | #!/usr/bin/env python
NAME = 'Cisco ACE XML Gateway'
def is_waf(self):
if self.matchheader(('server', 'ACE XML Gateway')):
return True
return False
| 15.272727 | 55 | 0.636905 | 24 | 168 | 4.416667 | 0.791667 | 0.113208 | 0.245283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232143 | 168 | 10 | 56 | 16.8 | 0.821705 | 0.119048 | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 0 | 1 | 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 | 2 |
603c9eb4227e47715a2747f7f50545d21e897192 | 606 | py | Python | src/utils.py | aquova/SDVSummer2021 | 265b0133f4de57df2cc28c5b7a663dc29674969a | [
"MIT"
] | null | null | null | src/utils.py | aquova/SDVSummer2021 | 265b0133f4de57df2cc28c5b7a663dc29674969a | [
"MIT"
] | null | null | null | src/utils.py | aquova/SDVSummer2021 | 265b0133f4de57df2cc28c5b7a663dc29674969a | [
"MIT"
] | null | null | null | from config import TEAMS, JUNIMO_ROLE
def strip_prefix(mes):
return mes[1:]
def get_command(mes):
words = mes.split()
return words[0]
def remove_command(mes):
first = mes.split()[0]
start = len(first) + 1
return mes[start:]
def requires_captain(func):
async def wrapper(*args, **kwargs):
... | 24.24 | 94 | 0.612211 | 88 | 606 | 4.147727 | 0.454545 | 0.054795 | 0.032877 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013453 | 0.264026 | 606 | 24 | 95 | 25.25 | 0.804933 | 0 | 0 | 0 | 0 | 0 | 0.011551 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.052632 | 0.052632 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
603f525ceadb900c2eacaa4c1d4661a46ad6893d | 1,014 | bzl | Python | checksums.bzl | sambercovici/distroless | 1a7b8ce69b3fe4ece58d714e63f957a4afcddb97 | [
"Apache-2.0"
] | null | null | null | checksums.bzl | sambercovici/distroless | 1a7b8ce69b3fe4ece58d714e63f957a4afcddb97 | [
"Apache-2.0"
] | null | null | null | checksums.bzl | sambercovici/distroless | 1a7b8ce69b3fe4ece58d714e63f957a4afcddb97 | [
"Apache-2.0"
] | null | null | null | # WARNING!!!
# DO NOT MODIFY THIS FILE DIRECTLY.
# TO GENERATE THIS RUN: ./updateWorkspaceSnapshots.sh
BASE_ARCHITECTURES = ["amd64"]
# Exceptions:
# - s390x doesn't have libunwind8.
# https://github.com/GoogleContainerTools/distroless/pull/612#issue-500157699
# - ppc64le doesn't have stretch security-channel.
# ... | 30.727273 | 91 | 0.7357 | 84 | 1,014 | 8.821429 | 0.738095 | 0.026991 | 0.026991 | 0.091768 | 0.129555 | 0.129555 | 0 | 0 | 0 | 0 | 0 | 0.226107 | 0.153846 | 1,014 | 32 | 92 | 31.6875 | 0.637529 | 0.444773 | 0 | 0 | 1 | 0 | 0.503636 | 0.349091 | 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 | 1 | 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 | 2 |
6041ffb85982f84157b096ec992ce68a5dfd27ba | 607 | py | Python | app/main/views.py | ChrisLeeUnderTree/test | 867ee69fa63651160ba31071d24330ccdaac1d66 | [
"MIT"
] | null | null | null | app/main/views.py | ChrisLeeUnderTree/test | 867ee69fa63651160ba31071d24330ccdaac1d66 | [
"MIT"
] | null | null | null | app/main/views.py | ChrisLeeUnderTree/test | 867ee69fa63651160ba31071d24330ccdaac1d66 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# @Time : 2019/7/8 14:43
# @Author : Li Fu
from flask import render_template, session, redirect, url_for
from datetime import datetime
from . import main
from .forms import NameForm
@main.route('/', methods=['GET', 'POST'])
def index():
form = NameForm()
if form.validate_on_submit... | 28.904762 | 63 | 0.574959 | 71 | 607 | 4.816901 | 0.591549 | 0.081871 | 0.081871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025229 | 0.281713 | 607 | 20 | 64 | 30.35 | 0.759174 | 0.112026 | 0 | 0 | 0 | 0 | 0.061798 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.538462 | 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 | 1 | 0 | 0 | 2 |
604390f360c51c60c9fd05296062d8aebbdfae26 | 107 | py | Python | functions/__init__.py | Katolus/functions | c4aff37231432ce6ef4ed6b37c8b5baaede5975a | [
"MIT"
] | 4 | 2022-03-08T08:46:44.000Z | 2022-03-19T07:52:11.000Z | functions/__init__.py | Katolus/functions | c4aff37231432ce6ef4ed6b37c8b5baaede5975a | [
"MIT"
] | 114 | 2021-10-30T05:48:54.000Z | 2022-03-06T10:57:00.000Z | functions/__init__.py | Katolus/functions | c4aff37231432ce6ef4ed6b37c8b5baaede5975a | [
"MIT"
] | null | null | null | """Top-level package for `functions` project."""
__package_name__ = "functions-cli"
__version__ = "0.1.0"
| 21.4 | 48 | 0.71028 | 14 | 107 | 4.785714 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031579 | 0.11215 | 107 | 4 | 49 | 26.75 | 0.673684 | 0.392523 | 0 | 0 | 0 | 0 | 0.305085 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
604e322645ea8f32322ba8847b0e40f8ed946185 | 146 | py | Python | HackerRank/PythonIfElse_master/PythonIfElse.py | Naga-kalyan/competitive_programming | e9501b16ac327c7f6700a0970d0804e1f9ef5f1b | [
"MIT"
] | 8 | 2020-09-02T13:30:41.000Z | 2022-01-31T07:45:31.000Z | HackerRank/PythonIfElse_master/PythonIfElse.py | Naga-kalyan/competitive_programming | e9501b16ac327c7f6700a0970d0804e1f9ef5f1b | [
"MIT"
] | null | null | null | HackerRank/PythonIfElse_master/PythonIfElse.py | Naga-kalyan/competitive_programming | e9501b16ac327c7f6700a0970d0804e1f9ef5f1b | [
"MIT"
] | 1 | 2021-02-15T13:44:22.000Z | 2021-02-15T13:44:22.000Z | if __name__ == '__main__':
n = int(input())
if((n%2!=0)or((n>=6)and(n<=20))):
print("Weird")
else:
print("Not Weird")
| 20.857143 | 37 | 0.472603 | 22 | 146 | 2.772727 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04717 | 0.273973 | 146 | 6 | 38 | 24.333333 | 0.528302 | 0 | 0 | 0 | 0 | 0 | 0.150685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 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 | 2 |
606d281f81e13d786e2e9112d52cf8c72ceae5c4 | 653 | py | Python | incremental_calibration_python/src/incremental_calibration/__init__.py | ethz-asl/aslam_incremental_calibration | 16a44b86b6e7eb5ae4ee247f10c429494697ae0b | [
"BSD-3-Clause"
] | 16 | 2017-08-23T06:29:15.000Z | 2021-07-17T16:56:29.000Z | incremental_calibration_python/src/incremental_calibration/__init__.py | ethz-asl/aslam_incremental_calibration | 16a44b86b6e7eb5ae4ee247f10c429494697ae0b | [
"BSD-3-Clause"
] | 1 | 2017-02-14T16:02:18.000Z | 2017-02-14T16:02:18.000Z | incremental_calibration_python/src/incremental_calibration/__init__.py | ethz-asl/aslam_incremental_calibration | 16a44b86b6e7eb5ae4ee247f10c429494697ae0b | [
"BSD-3-Clause"
] | 11 | 2017-01-23T09:01:30.000Z | 2021-04-10T05:13:23.000Z | # Import the numpy to Eigen type conversion.
import numpy_eigen
import os
isCompiled = False
pathToSo = os.path.dirname(os.path.realpath(__file__))
if os.path.isfile(os.path.join(pathToSo,"libincremental_calibration_python.so")):
import aslam_backend
# Import the the C++ exports from your package library.
... | 36.277778 | 144 | 0.767228 | 87 | 653 | 5.563218 | 0.54023 | 0.049587 | 0.128099 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165391 | 653 | 17 | 145 | 38.411765 | 0.888073 | 0.237366 | 0 | 0 | 0 | 0 | 0.341463 | 0.197154 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.363636 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
609c0fa1905cbda1559832403f742b0380065919 | 395 | py | Python | src/shared/storage.py | ajaykumarsampath/microgrid-model | 55e355445360583bfee1f1ccb7bd71555c0617f5 | [
"MIT"
] | 1 | 2022-03-30T15:48:51.000Z | 2022-03-30T15:48:51.000Z | src/shared/storage.py | ajaykumarsampath/microgrid-model | 55e355445360583bfee1f1ccb7bd71555c0617f5 | [
"MIT"
] | null | null | null | src/shared/storage.py | ajaykumarsampath/microgrid-model | 55e355445360583bfee1f1ccb7bd71555c0617f5 | [
"MIT"
] | null | null | null | from typing import List
from shared.component import ComponentSimulationData
class IComponentDataStorage:
def add_simulation_data(self, current_timestamp: int, data: ComponentSimulationData):
raise NotImplementedError
def get_historical_data(self, unit_id: str, since: int, until: int = None) \
... | 30.384615 | 89 | 0.75443 | 40 | 395 | 7.3 | 0.675 | 0.054795 | 0.321918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18481 | 395 | 12 | 90 | 32.916667 | 0.906832 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
60a076af923b4d0f91ac1d9340406a82cf3cacec | 1,128 | py | Python | tests/utils.py | pyGrowler/Growler | 5492466d8828115bb04c665917d6aeb4f4323f44 | [
"Apache-2.0"
] | 806 | 2015-02-18T18:54:40.000Z | 2021-12-28T20:14:13.000Z | tests/utils.py | akubera/Growler | 5492466d8828115bb04c665917d6aeb4f4323f44 | [
"Apache-2.0"
] | 16 | 2016-05-05T08:32:36.000Z | 2020-03-08T08:01:43.000Z | tests/utils.py | pyGrowler/Growler | 5492466d8828115bb04c665917d6aeb4f4323f44 | [
"Apache-2.0"
] | 36 | 2015-08-02T11:52:02.000Z | 2020-05-09T15:25:29.000Z | #
# tests/utils
#
"""
Useful functions for all tests
"""
import asyncio
import pytest
from growler.aio.http_protocol import GrowlerHTTPProtocol
import growler
def random_port():
from random import randint
return randint(1024, 2**16)
@asyncio.coroutine
def setup_test_server(unused_tcp_port, event_loop):
... | 23.020408 | 85 | 0.711879 | 147 | 1,128 | 5.312925 | 0.408163 | 0.034571 | 0.049936 | 0.06146 | 0.161332 | 0.161332 | 0.069142 | 0.069142 | 0 | 0 | 0 | 0.020765 | 0.18883 | 1,128 | 48 | 86 | 23.5 | 0.832787 | 0.264184 | 0 | 0.095238 | 0 | 0 | 0.023286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.238095 | 0.047619 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
60a68de5b74e61b1419fb6fb0891311f26fe0639 | 1,084 | py | Python | test/test_validity.py | Nekroze/pde | 890edaf2d9de9770eac4be3df1dfc26c67897c1e | [
"MIT"
] | 1 | 2015-09-11T19:38:35.000Z | 2015-09-11T19:38:35.000Z | test/test_validity.py | Nekroze/pde | 890edaf2d9de9770eac4be3df1dfc26c67897c1e | [
"MIT"
] | null | null | null | test/test_validity.py | Nekroze/pde | 890edaf2d9de9770eac4be3df1dfc26c67897c1e | [
"MIT"
] | null | null | null | import unittest
import os
import sys
class TestValidity(unittest.TestCase):
def test_validity(self):
"""Generate a pde setup.py and test to make sure its atleast valid."""
arglist = []
arglist.append('--name "TestProject"')
arglist.append('--description "Simple test project"')
... | 32.848485 | 78 | 0.588561 | 120 | 1,084 | 5.225 | 0.525 | 0.22807 | 0.076555 | 0.098884 | 0.118022 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006188 | 0.254613 | 1,084 | 32 | 79 | 33.875 | 0.769802 | 0.059041 | 0 | 0.076923 | 1 | 0 | 0.343195 | 0.055227 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.115385 | 0 | 0.192308 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
60bd892b9be51bca3e9ce9ed6707fff3e8057753 | 1,917 | py | Python | core/models.py | twdnl14/Busque-o-seu-amiguinho | 0539ffe75220be155f762cde5d4065132eec5743 | [
"MIT"
] | 6 | 2020-05-02T04:01:27.000Z | 2020-05-11T21:29:53.000Z | core/models.py | twdnl14/Busque-o-seu-amiguinho | 0539ffe75220be155f762cde5d4065132eec5743 | [
"MIT"
] | 1 | 2020-09-05T05:59:49.000Z | 2020-09-05T05:59:49.000Z | core/models.py | talesmm14/Busque-o-seu-amiguinho | 0539ffe75220be155f762cde5d4065132eec5743 | [
"MIT"
] | 2 | 2020-05-04T12:19:19.000Z | 2020-05-04T12:22:11.000Z | from colorful.fields import RGBColorField
from django.db import models
from django.contrib.auth.models import User
from datetime import date
from django.urls import reverse
class Profile(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
github = models.URLField(verbose_name="GitHub", ... | 33.051724 | 93 | 0.694836 | 238 | 1,917 | 5.37395 | 0.357143 | 0.068804 | 0.062549 | 0.05864 | 0.344019 | 0.258796 | 0.142299 | 0.076622 | 0.076622 | 0.076622 | 0 | 0.003827 | 0.182055 | 1,917 | 57 | 94 | 33.631579 | 0.811862 | 0.024517 | 0 | 0.285714 | 0 | 0 | 0.103319 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.119048 | 0.166667 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
60c0c5ac8df67690bd4cc06bd4915d7d823171f5 | 3,685 | py | Python | atoman/filtering/filters/tests/test_atomID.py | chrisdjscott/Atoman | e87ac31bbdcf53bb8f3efdfb109787d604890394 | [
"MIT"
] | 9 | 2015-11-23T12:13:34.000Z | 2021-11-18T05:23:35.000Z | atoman/filtering/filters/tests/test_atomID.py | chrisdjscott/Atoman | e87ac31bbdcf53bb8f3efdfb109787d604890394 | [
"MIT"
] | 1 | 2017-07-17T20:27:50.000Z | 2017-07-23T05:27:15.000Z | atoman/filtering/filters/tests/test_atomID.py | chrisdjscott/Atoman | e87ac31bbdcf53bb8f3efdfb109787d604890394 | [
"MIT"
] | 4 | 2015-11-23T12:13:37.000Z | 2017-05-03T08:24:19.000Z |
"""
Unit tests for the atom ID filter
"""
from __future__ import absolute_import
from __future__ import unicode_literals
import unittest
import numpy as np
from ....system import lattice
from .. import atomIdFilter
from .. import base
###############################################################################... | 31.495726 | 82 | 0.578833 | 402 | 3,685 | 5.278607 | 0.211443 | 0.025448 | 0.016965 | 0.094251 | 0.779453 | 0.778511 | 0.768615 | 0.666824 | 0.593779 | 0.510839 | 0 | 0.037693 | 0.280054 | 3,685 | 116 | 83 | 31.767241 | 0.762156 | 0.096065 | 0 | 0.433333 | 0 | 0 | 0.018644 | 0 | 0 | 0 | 0 | 0 | 0.15 | 1 | 0.05 | false | 0 | 0.116667 | 0 | 0.183333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 2 |
60ca7d6317b9df36a70578f7b3faaf7a7204443e | 1,027 | py | Python | sslplay/utils/kmean_n_clusters.py | ngshya/ssl-play | ef70793a07aa3424502c7443c44de3e5f18ee2be | [
"MIT"
] | null | null | null | sslplay/utils/kmean_n_clusters.py | ngshya/ssl-play | ef70793a07aa3424502c7443c44de3e5f18ee2be | [
"MIT"
] | 3 | 2020-09-25T22:30:43.000Z | 2022-02-09T23:34:19.000Z | sslplay/utils/kmean_n_clusters.py | ngshya/ssl-play | ef70793a07aa3424502c7443c44de3e5f18ee2be | [
"MIT"
] | 1 | 2021-01-11T20:33:23.000Z | 2021-01-11T20:33:23.000Z | '''
from sklearn.cluster import KMeans
from sklearn.preprocessing import StandardScaler
from sklearn.preprocessing import MinMaxScaler
import numpy as np
import logging
def calculate_wcss(data):
wcss = []
scaler = MinMaxScaler()
data = scaler.fit_transform(data)
for n in range(2, 21):
kmeans = ... | 27.756757 | 95 | 0.642648 | 142 | 1,027 | 4.542254 | 0.394366 | 0.051163 | 0.074419 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041562 | 0.226874 | 1,027 | 37 | 96 | 27.756757 | 0.770781 | 0.99221 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
60cd34a3ba78d6d5a6c2a3b46c301484c853bb23 | 1,184 | py | Python | pyaz/sql/mi/tde_key/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | null | null | null | pyaz/sql/mi/tde_key/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | null | null | null | pyaz/sql/mi/tde_key/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | 1 | 2022-02-03T09:12:01.000Z | 2022-02-03T09:12:01.000Z | from .... pyaz_utils import _call_az
def show(managed_instance, resource_group):
'''
Required Parameters:
- managed_instance -- Name of the Azure SQL managed instance.
- resource_group -- Name of resource group. You can configure the default group using `az configure --defaults group=<name>`
... | 40.827586 | 185 | 0.723818 | 163 | 1,184 | 5.116564 | 0.380368 | 0.107914 | 0.110312 | 0.134293 | 0.443645 | 0.443645 | 0.443645 | 0.443645 | 0.383693 | 0.383693 | 0 | 0.033333 | 0.189189 | 1,184 | 28 | 186 | 42.285714 | 0.835417 | 0.681588 | 0 | 0 | 0 | 0 | 0.141914 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
60dc860e84cb9b5b71a124e5af272281583249f5 | 215 | py | Python | question_1/xiaoxu_han.py | loongoo/GitDemo | 7098edab6581dfd12d9b966154762f314410902a | [
"MIT"
] | null | null | null | question_1/xiaoxu_han.py | loongoo/GitDemo | 7098edab6581dfd12d9b966154762f314410902a | [
"MIT"
] | null | null | null | question_1/xiaoxu_han.py | loongoo/GitDemo | 7098edab6581dfd12d9b966154762f314410902a | [
"MIT"
] | null | null | null | # -*- coding: UTF-8-*-
def enumerate_fn():
'''enumerate是python内置函数:获取每个元素的索引和值
:return:打印每个元素的索引和值
'''
list = [10,29,30,41,50]
for index, value in enumerate(list,0):
print (index,value)
enumerate_fn()
| 21.5 | 39 | 0.665116 | 28 | 215 | 5.035714 | 0.785714 | 0.156028 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066298 | 0.15814 | 215 | 9 | 40 | 23.888889 | 0.712707 | 0.344186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.2 | 0.2 | 1 | 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 | 2 |
60e763a45d86d8152f63f1ac1750b65465622a4b | 319 | py | Python | utils.py | joao-p-marques/restaurante-drive-through | b659c49026409034409ed957136371f585818b84 | [
"MIT"
] | null | null | null | utils.py | joao-p-marques/restaurante-drive-through | b659c49026409034409ed957136371f585818b84 | [
"MIT"
] | null | null | null | utils.py | joao-p-marques/restaurante-drive-through | b659c49026409034409ed957136371f585818b84 | [
"MIT"
] | null | null | null | import time
import argparse
def check_positive_number(number):
return number > 0
def check_port(port, base=1024):
ivalue = int(port)
if ivalue <= base:
raise argparse.ArgumentTypeError("%s is an invalid positive int value" % value)
return ivalue
def work(seconds):
time.sleep(seconds)
| 17.722222 | 87 | 0.695925 | 43 | 319 | 5.093023 | 0.581395 | 0.073059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0.216301 | 319 | 17 | 88 | 18.764706 | 0.856 | 0 | 0 | 0 | 0 | 0 | 0.109718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.181818 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
60e926b6538cc4da2799714ab8659bcfa096eaf0 | 143 | py | Python | User_verification.py | bittu99nic/ATM_Emulator | 6ce522632048d899c88e16928025fed87ac4e29c | [
"MIT"
] | null | null | null | User_verification.py | bittu99nic/ATM_Emulator | 6ce522632048d899c88e16928025fed87ac4e29c | [
"MIT"
] | null | null | null | User_verification.py | bittu99nic/ATM_Emulator | 6ce522632048d899c88e16928025fed87ac4e29c | [
"MIT"
] | null | null | null | from Card_details import details
def user_input(cno, pin):
uno = 0
uno = details(cno, pin)
if uno == 1:
return 1
| 15.888889 | 33 | 0.566434 | 21 | 143 | 3.761905 | 0.666667 | 0.151899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.34965 | 143 | 8 | 34 | 17.875 | 0.817204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 1 | 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 | 2 |
60e99122882607e474b65fbb1d2f62512d5f62de | 924 | py | Python | hermes/tests/__init__.py | DemocracyClub/django-hermes | 233bc41dd1c9c0da05639213a1fb5c5a638e6014 | [
"MIT"
] | 2 | 2017-02-22T11:20:23.000Z | 2017-04-27T05:33:15.000Z | hermes/tests/__init__.py | DemocracyClub/django-hermes | 233bc41dd1c9c0da05639213a1fb5c5a638e6014 | [
"MIT"
] | 7 | 2017-02-04T18:29:58.000Z | 2022-03-12T00:58:05.000Z | hermes/tests/__init__.py | DemocracyClub/django-hermes | 233bc41dd1c9c0da05639213a1fb5c5a638e6014 | [
"MIT"
] | null | null | null | from django import test
from django.urls import reverse
from django.contrib import auth
from .. import models
class HermesTestCase(test.TestCase):
fixtures = ('hermes', )
def setUp(self):
self.root_category = models.Category.objects.get(id=1)
self.second_category = models.Category.objects.g... | 28.875 | 65 | 0.666667 | 131 | 924 | 4.656489 | 0.312977 | 0.147541 | 0.177049 | 0.190164 | 0.460656 | 0.222951 | 0 | 0 | 0 | 0 | 0 | 0.017711 | 0.205628 | 924 | 31 | 66 | 29.806452 | 0.813352 | 0 | 0 | 0 | 0 | 0 | 0.006494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.190476 | 0.095238 | 0.52381 | 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 | 1 | 0 | 0 | 2 |
60f3646d8fa095769f212030dac3326c37635751 | 216 | py | Python | KeyPairs.py | cvsmith/KosBeat | b563b3a1ad607442e6d6b7b8e66b842b9102ccd1 | [
"MIT"
] | null | null | null | KeyPairs.py | cvsmith/KosBeat | b563b3a1ad607442e6d6b7b8e66b842b9102ccd1 | [
"MIT"
] | null | null | null | KeyPairs.py | cvsmith/KosBeat | b563b3a1ad607442e6d6b7b8e66b842b9102ccd1 | [
"MIT"
] | null | null | null | # KeyPairs.py
# Pairs key name to corresponding numerical identifier
keyPairs = [("C",1),("Db/C#",2),("D",3),("Eb/D#",4),("E",5),("F",6),
("Gb/F#",7),("G",8),("Ab/G#",9),("A",10),("Bb/A#",11),("B",12)]
| 27 | 74 | 0.467593 | 39 | 216 | 2.589744 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079787 | 0.12963 | 216 | 7 | 75 | 30.857143 | 0.457447 | 0.296296 | 0 | 0 | 0 | 0 | 0.217687 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
60f440bf35b55f13d8f6df64b3016c2e51354980 | 885 | py | Python | sample/sample.py | gumi/spreadsheetconverter | 15f0a7cbc9a57a44cb60b2cdde0f657e1733d5a8 | [
"MIT"
] | 4 | 2016-05-30T07:05:27.000Z | 2018-11-05T02:12:06.000Z | sample/sample.py | gumi/spreadsheetconverter | 15f0a7cbc9a57a44cb60b2cdde0f657e1733d5a8 | [
"MIT"
] | 2 | 2016-05-13T08:53:00.000Z | 2018-10-03T05:53:25.000Z | sample/sample.py | gumi/spreadsheetconverter | 15f0a7cbc9a57a44cb60b2cdde0f657e1733d5a8 | [
"MIT"
] | 3 | 2016-05-30T07:05:38.000Z | 2021-02-04T08:40:24.000Z | # -*- coding:utf-8 -*-
from __future__ import absolute_import
from __future__ import unicode_literals
import os
from spreadsheetconverter import Converter, YamlConfig
if __name__ == '__main__':
os.environ.setdefault('SSC_SEARCH_PATH',
os.path.join(os.getcwd()))
os.environ.setdefault... | 32.777778 | 66 | 0.60791 | 99 | 885 | 5.070707 | 0.333333 | 0.10757 | 0.227092 | 0.262948 | 0.521912 | 0.521912 | 0.318725 | 0 | 0 | 0 | 0 | 0.004623 | 0.266667 | 885 | 26 | 67 | 34.038462 | 0.768875 | 0.022599 | 0 | 0.105263 | 0 | 0 | 0.180765 | 0.056779 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.210526 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
880d52045c893b7811875a618794e63fee1e6f5f | 850 | py | Python | simple-wp-rss-parser.py | joanh3aly/simple-Wordpress-RSS-parser | 57505e052e8208b4251bf599553978e3edf889fc | [
"MIT"
] | null | null | null | simple-wp-rss-parser.py | joanh3aly/simple-Wordpress-RSS-parser | 57505e052e8208b4251bf599553978e3edf889fc | [
"MIT"
] | null | null | null | simple-wp-rss-parser.py | joanh3aly/simple-Wordpress-RSS-parser | 57505e052e8208b4251bf599553978e3edf889fc | [
"MIT"
] | 1 | 2020-04-07T02:45:19.000Z | 2020-04-07T02:45:19.000Z | #!/usr/bin/python
#for rss
import feedparser
d = feedparser.parse('/Users/joanhealy1/Downloads/altv.wordpress.2015-07-01-2.xml')
# Access links
print d['feed']['link']
# Access the feed's titles
print d.entries['title']
# Access the items' subtitle
print d.feed.subtitle
# Access first item's title
print d['entries'][0... | 28.333333 | 95 | 0.674118 | 141 | 850 | 4.056738 | 0.531915 | 0.041958 | 0.034965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02149 | 0.178824 | 850 | 29 | 96 | 29.310345 | 0.797994 | 0.362353 | 0 | 0 | 0 | 0 | 0.344697 | 0.236742 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.461538 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
880f4711bbef84c7b3f223da5cf9babe278fd3cc | 899 | py | Python | tests/test_transforms_post_transforms_code.py | m-chaturvedi/sphinx | 46897c2acf1f2056dff479ec705e2899d86118c6 | [
"BSD-2-Clause"
] | 1 | 2022-03-22T15:02:18.000Z | 2022-03-22T15:02:18.000Z | tests/test_transforms_post_transforms_code.py | m-chaturvedi/sphinx | 46897c2acf1f2056dff479ec705e2899d86118c6 | [
"BSD-2-Clause"
] | 2 | 2022-02-13T19:49:39.000Z | 2022-03-02T09:52:35.000Z | tests/test_transforms_post_transforms_code.py | m-chaturvedi/sphinx | 46897c2acf1f2056dff479ec705e2899d86118c6 | [
"BSD-2-Clause"
] | 1 | 2020-07-15T14:38:49.000Z | 2020-07-15T14:38:49.000Z | """
test_transforms_post_transforms_code
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import pytest
@pytest.mark.sphinx('html', testroot='trim_doctest_flags')
def test_trim_doctest_flags_html(app, st... | 26.441176 | 68 | 0.661846 | 123 | 899 | 4.691057 | 0.373984 | 0.138648 | 0.152513 | 0.176776 | 0.665511 | 0.665511 | 0.665511 | 0.665511 | 0.530329 | 0.367418 | 0 | 0.011019 | 0.192436 | 899 | 33 | 69 | 27.242424 | 0.783747 | 0.19911 | 0 | 0.631579 | 0 | 0 | 0.139368 | 0 | 0 | 0 | 0 | 0 | 0.526316 | 1 | 0.105263 | false | 0 | 0.052632 | 0 | 0.157895 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7161792b64d3518068643a7c0474c02de0f4d61f | 13,946 | py | Python | src/data_science_helpers/pandas.py | GusNicho/data_science_helpers | eab2d448dedfa34f81a2eb780d67c44b20bb0623 | [
"MIT"
] | null | null | null | src/data_science_helpers/pandas.py | GusNicho/data_science_helpers | eab2d448dedfa34f81a2eb780d67c44b20bb0623 | [
"MIT"
] | null | null | null | src/data_science_helpers/pandas.py | GusNicho/data_science_helpers | eab2d448dedfa34f81a2eb780d67c44b20bb0623 | [
"MIT"
] | null | null | null | """
helper functions to use with pandas library.
Conventions:
df -> pd.DataFrame
Ideology:
- Write functions that do one thing
- Try write functions that are idempotent
"""
from functools import reduce
from collections import namedtuple
import numpy as np
import pandas as pd
import re
def drop_uniq_cols(df):
"""... | 32.660422 | 125 | 0.644701 | 2,061 | 13,946 | 4.196507 | 0.201844 | 0.017343 | 0.00925 | 0.010406 | 0.141519 | 0.097237 | 0.0681 | 0.047867 | 0.037692 | 0.037692 | 0 | 0.008628 | 0.235408 | 13,946 | 427 | 126 | 32.660422 | 0.802495 | 0.359028 | 0 | 0.08 | 0 | 0.005714 | 0.040447 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.268571 | false | 0 | 0.028571 | 0.085714 | 0.508571 | 0.011429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 |
716ef628ae13f13fd30c0c57a81e55879d34e92a | 220 | py | Python | cli/upsty/lib.py | psty-io/upsty | fda9e9224d56a50f17eb87e22f62fc158f7b81c3 | [
"MIT"
] | 8 | 2019-11-08T03:44:18.000Z | 2021-09-09T14:54:49.000Z | cli/upsty/lib.py | psty-io/upsty | fda9e9224d56a50f17eb87e22f62fc158f7b81c3 | [
"MIT"
] | null | null | null | cli/upsty/lib.py | psty-io/upsty | fda9e9224d56a50f17eb87e22f62fc158f7b81c3 | [
"MIT"
] | null | null | null | import requests
def upload_file(filepath, filename):
with open(filepath, 'rb') as file:
res = requests.put('https://up.psty.io/{}'.format(filename), data=file)
file.close()
return res.content | 31.428571 | 79 | 0.645455 | 29 | 220 | 4.862069 | 0.758621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204545 | 220 | 7 | 80 | 31.428571 | 0.805714 | 0 | 0 | 0 | 0 | 0 | 0.104072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 1 | 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 | 2 |
717ffb1ecead7c4a389c8d3270ca9433b3919f82 | 504 | py | Python | kopf/_cogs/structs/__init__.py | tavaresrodrigo/kopf | 97e1c7a926705a79dabce2931e96a924252b61df | [
"MIT"
] | 1,038 | 2019-03-26T16:32:56.000Z | 2022-03-27T09:15:03.000Z | kopf/_cogs/structs/__init__.py | tavaresrodrigo/kopf | 97e1c7a926705a79dabce2931e96a924252b61df | [
"MIT"
] | 715 | 2019-12-23T14:17:35.000Z | 2022-03-30T20:54:45.000Z | kopf/_cogs/structs/__init__.py | tavaresrodrigo/kopf | 97e1c7a926705a79dabce2931e96a924252b61df | [
"MIT"
] | 116 | 2019-03-31T23:01:09.000Z | 2022-03-18T16:44:58.000Z | """
All the functions to manipulate the resource fields, state changes, etc.
Grouped by the type of the fields and the purpose of the manipulation.
Used in the handling routines to check if there were significant changes at all
(i.e. not our own internal and system changes, like the uids, links, etc),
and to get the ... | 38.769231 | 79 | 0.781746 | 85 | 504 | 4.635294 | 0.694118 | 0.030457 | 0.076142 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170635 | 504 | 12 | 80 | 42 | 0.942584 | 0.982143 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7188e98392982256d57cc31dc2c25e32182e8c8f | 1,484 | py | Python | tests/testPyWatchdog/test.py | xiaonanln/pyWatchdog | 1fe89afdda5794da67f5c337575b20d323ae3b50 | [
"Apache-2.0"
] | null | null | null | tests/testPyWatchdog/test.py | xiaonanln/pyWatchdog | 1fe89afdda5794da67f5c337575b20d323ae3b50 | [
"Apache-2.0"
] | null | null | null | tests/testPyWatchdog/test.py | xiaonanln/pyWatchdog | 1fe89afdda5794da67f5c337575b20d323ae3b50 | [
"Apache-2.0"
] | null | null | null | # coding: utf8
import unittest
import time
import pyWatchdog
class TestPyWatchdog(unittest.TestCase):
def __init__(self, *args, **kwargs):
super(TestPyWatchdog, self).__init__(*args, **kwargs)
self.watchdogFailed = False
def setUp(self):
self.watchdogFailed = False
def tearDown(self):
pass
def onWatc... | 24.733333 | 56 | 0.757412 | 167 | 1,484 | 6.634731 | 0.281437 | 0.1787 | 0.120036 | 0.208484 | 0.504513 | 0.504513 | 0.504513 | 0.504513 | 0.462094 | 0.462094 | 0 | 0.02139 | 0.117925 | 1,484 | 59 | 57 | 25.152542 | 0.825057 | 0.008086 | 0 | 0.386364 | 0 | 0 | 0.049694 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 0 | null | null | 0.022727 | 0.068182 | null | null | 0.022727 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
71980e682cb8ae09192dbb14262d72dc36caa8ba | 1,010 | py | Python | sarpy/io/general/nitf_elements/tres/unclass/CSCRNA.py | pressler-vsc/sarpy | fa6c951c42b9a7d9df2edfa53c771494cb0246fb | [
"MIT"
] | 1 | 2021-02-04T08:44:18.000Z | 2021-02-04T08:44:18.000Z | sarpy/io/general/nitf_elements/tres/unclass/CSCRNA.py | pressler-vsc/sarpy | fa6c951c42b9a7d9df2edfa53c771494cb0246fb | [
"MIT"
] | null | null | null | sarpy/io/general/nitf_elements/tres/unclass/CSCRNA.py | pressler-vsc/sarpy | fa6c951c42b9a7d9df2edfa53c771494cb0246fb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from ..tre_elements import TREExtension, TREElement
__classification__ = "UNCLASSIFIED"
__author__ = "Thomas McCullough"
class CSCRNAType(TREElement):
def __init__(self, value):
super(CSCRNAType, self).__init__()
self.add_field('PREDICT_CORNERS', 's', 1, value)
se... | 33.666667 | 56 | 0.621782 | 138 | 1,010 | 4.210145 | 0.289855 | 0.156627 | 0.268503 | 0.351119 | 0.557659 | 0.425129 | 0.425129 | 0 | 0 | 0 | 0 | 0.022613 | 0.211881 | 1,010 | 29 | 57 | 34.827586 | 0.707286 | 0.020792 | 0 | 0 | 0 | 0 | 0.173252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.045455 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
7198905b15a4a6512fd18e9b3f9a01512b2dcb9e | 3,087 | py | Python | week3/random_number_game.py | dpleshkov/programming-class | 48d3ea6adce07aa3a192f1c56c3ee01ad9dff811 | [
"MIT"
] | 1 | 2019-09-15T05:32:20.000Z | 2019-09-15T05:32:20.000Z | week3/random_number_game.py | dpleshkov/programming-class | 48d3ea6adce07aa3a192f1c56c3ee01ad9dff811 | [
"MIT"
] | null | null | null | week3/random_number_game.py | dpleshkov/programming-class | 48d3ea6adce07aa3a192f1c56c3ee01ad9dff811 | [
"MIT"
] | 2 | 2019-09-28T17:30:15.000Z | 2019-10-04T20:40:58.000Z | #Imports python's "random" library which allows you to choose a random number
import random
#Selects random number and establishes how many guesses you have
number = random.choice(range(0, 100))
guesses_left = 10
numbers = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0']
#Prompts the user to guess a number - if the... | 32.840426 | 111 | 0.547781 | 397 | 3,087 | 4.110831 | 0.2267 | 0.076593 | 0.107843 | 0.098039 | 0.665441 | 0.648284 | 0.648284 | 0.648284 | 0.648284 | 0.621324 | 0 | 0.017019 | 0.371882 | 3,087 | 93 | 112 | 33.193548 | 0.824652 | 0.111435 | 0 | 0.813333 | 0 | 0 | 0.122031 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.013333 | 0 | 0.013333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
71aac16c77cf3d445c35fa2bf0ef1f0d4b5f2842 | 528 | py | Python | Day1-9/2.py | bcongdon/advent_of_code_2020 | 8ef6a344527cefc49beb28ac58d6257abb000cc0 | [
"MIT"
] | 1 | 2020-12-03T16:23:52.000Z | 2020-12-03T16:23:52.000Z | Day1-9/2.py | bcongdon/advent_of_code_2020 | 8ef6a344527cefc49beb28ac58d6257abb000cc0 | [
"MIT"
] | null | null | null | Day1-9/2.py | bcongdon/advent_of_code_2020 | 8ef6a344527cefc49beb28ac58d6257abb000cc0 | [
"MIT"
] | 1 | 2020-12-13T03:46:31.000Z | 2020-12-13T03:46:31.000Z | def parse_policy(policy):
a, b, c = policy.split()
lo, hi = a.split("-")
return (int(lo), int(hi), b[:-1], c)
def part1(pws):
return sum(1 for lo, hi, c, pw in pws if lo <= pw.count(c) <= hi)
def part2(pws):
return sum(1 for lo, hi, c, pw in pws if (pw[lo - 1] == c) != (pw[hi - 1] == c))
if __... | 25.142857 | 84 | 0.543561 | 92 | 528 | 3.01087 | 0.391304 | 0.043321 | 0.086643 | 0.093863 | 0.216607 | 0.216607 | 0.216607 | 0.216607 | 0.216607 | 0.216607 | 0 | 0.029925 | 0.24053 | 528 | 20 | 85 | 26.4 | 0.660848 | 0 | 0 | 0 | 0 | 0 | 0.064394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 0.142857 | 0.428571 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 2 |
71ab91ad3523f8a2e7764f989d3be2b527890b79 | 1,276 | py | Python | imgTOhtml.py | lsabiao/imgTOhtml | 1c2c42a223a4ad2f01f82502aab544f8fc0c23d3 | [
"WTFPL"
] | null | null | null | imgTOhtml.py | lsabiao/imgTOhtml | 1c2c42a223a4ad2f01f82502aab544f8fc0c23d3 | [
"WTFPL"
] | null | null | null | imgTOhtml.py | lsabiao/imgTOhtml | 1c2c42a223a4ad2f01f82502aab544f8fc0c23d3 | [
"WTFPL"
] | null | null | null | from PIL import Image
import sys
#TODO "a" problem
def rgb_to_hex(rgb):
return '#%02x%02x%02x' % rgb
if (len(sys.argv) >= 2):
try:
output = open(sys.argv[2],"w")
except:
print "Can't Open Output File"
sys.exit(1)
header = '''<table border='0' cellspacing='0' width='1'>
<tr... | 26.583333 | 76 | 0.527429 | 170 | 1,276 | 3.935294 | 0.4 | 0.06278 | 0.023916 | 0.035874 | 0.056801 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030787 | 0.312696 | 1,276 | 47 | 77 | 27.148936 | 0.732041 | 0.012539 | 0 | 0.238095 | 0 | 0 | 0.247816 | 0 | 0 | 0 | 0 | 0.021277 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
71b1ae6f5116b8cad9c04d25dc0ecd7cc8bd58c0 | 4,344 | py | Python | tests/test_mpii_format.py | jenhaoyang/datumaro | add81ddb59502362fa65fa07e5bc4d8c9f61afde | [
"MIT"
] | null | null | null | tests/test_mpii_format.py | jenhaoyang/datumaro | add81ddb59502362fa65fa07e5bc4d8c9f61afde | [
"MIT"
] | null | null | null | tests/test_mpii_format.py | jenhaoyang/datumaro | add81ddb59502362fa65fa07e5bc4d8c9f61afde | [
"MIT"
] | null | null | null | from unittest import TestCase
import os.path as osp
import numpy as np
from datumaro.components.annotation import (
Bbox, LabelCategories, Points, PointsCategories,
)
from datumaro.components.dataset import Dataset
from datumaro.components.environment import Environment
from datumaro.components.extractor import A... | 49.363636 | 82 | 0.493785 | 616 | 4,344 | 3.412338 | 0.368506 | 0.045671 | 0.055661 | 0.060894 | 0.188392 | 0.165081 | 0.137012 | 0.137012 | 0.049477 | 0.049477 | 0 | 0.271459 | 0.356354 | 4,344 | 87 | 83 | 49.931034 | 0.480329 | 0 | 0 | 0.128205 | 0 | 0 | 0.02256 | 0 | 0 | 0 | 0 | 0 | 0.012821 | 1 | 0.025641 | false | 0 | 0.192308 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
71b621944e3848c6148a588b34e59c8b4a9eee1b | 3,747 | py | Python | token_bruteforce.py | 13-05/discord.RED | 638d1d9586587e338562aa3708f14d79346ab476 | [
"MIT"
] | 6 | 2021-12-30T23:36:10.000Z | 2022-02-28T01:23:40.000Z | token_bruteforce.py | 13-05/discord.RED | 638d1d9586587e338562aa3708f14d79346ab476 | [
"MIT"
] | null | null | null | token_bruteforce.py | 13-05/discord.RED | 638d1d9586587e338562aa3708f14d79346ab476 | [
"MIT"
] | 2 | 2022-01-23T18:36:40.000Z | 2022-01-31T22:53:40.000Z | import requests
import colorama
import os
from base64 import b64encode as b64
from base64 import b64decode
import base64
from random import choice as ch
import time
from colorama import Fore, Back, Style
from colorama import init
def bruteforce_token():
init()
print(Style.BRIGHT)
if os.name == 'nt':
os.syste... | 46.259259 | 336 | 0.546037 | 574 | 3,747 | 3.5 | 0.339721 | 0.094077 | 0.116476 | 0.181185 | 0.197611 | 0.197611 | 0.1777 | 0.1777 | 0.1777 | 0.1777 | 0 | 0.021379 | 0.226048 | 3,747 | 80 | 337 | 46.8375 | 0.671379 | 0.00854 | 0 | 0.151899 | 0 | 0.037975 | 0.299219 | 0.011312 | 0 | 0 | 0 | 0.0125 | 0 | 1 | 0.012658 | false | 0 | 0.126582 | 0 | 0.151899 | 0.075949 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
71bae453bdf8607e1710c0c0057711d07dc6db1e | 720 | py | Python | Pytorch/Scratch CNN and Pytorch/part1-convnet/optimizer/_base_optimizer.py | Kuga23/Deep-Learning | 86980338208c702b6bfcbcfffdb18498e389a56b | [
"MIT"
] | 3 | 2022-01-16T14:46:57.000Z | 2022-02-20T22:40:16.000Z | Pytorch/Scratch CNN and Pytorch/part1-convnet/optimizer/_base_optimizer.py | Kuga23/Deep-Learning | 86980338208c702b6bfcbcfffdb18498e389a56b | [
"MIT"
] | null | null | null | Pytorch/Scratch CNN and Pytorch/part1-convnet/optimizer/_base_optimizer.py | Kuga23/Deep-Learning | 86980338208c702b6bfcbcfffdb18498e389a56b | [
"MIT"
] | 6 | 2021-09-29T11:42:37.000Z | 2022-02-02T02:33:51.000Z | class _BaseOptimizer:
def __init__(self, model, learning_rate=1e-4, reg=1e-3):
self.learning_rate = learning_rate
self.reg = reg
self.grad_tracker = {}
for idx, m in enumerate(model.modules):
self.grad_tracker[idx] = dict(dw=0, db=0)
def update(self, model):
... | 31.304348 | 82 | 0.6 | 96 | 720 | 4.385417 | 0.489583 | 0.07601 | 0.071259 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014028 | 0.306944 | 720 | 23 | 83 | 31.304348 | 0.829659 | 0.259722 | 0 | 0 | 0 | 0 | 0.012146 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.076923 | 0 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
71bf08210529da356fe17ca7470b4849b2447736 | 1,029 | py | Python | xicam/SAXS/widgets/XPCSToolbar.py | ihumphrey/Xi-cam.SAXS | ef71a9e61a0cb277f0a5df3c4b2d907f1154ab4c | [
"BSD-3-Clause"
] | 1 | 2020-06-12T01:28:49.000Z | 2020-06-12T01:28:49.000Z | xicam/SAXS/widgets/XPCSToolbar.py | ihumphrey/Xi-cam.SAXS | ef71a9e61a0cb277f0a5df3c4b2d907f1154ab4c | [
"BSD-3-Clause"
] | 31 | 2020-03-03T22:25:43.000Z | 2022-02-02T23:05:00.000Z | xicam/SAXS/widgets/XPCSToolbar.py | ihumphrey/Xi-cam.SAXS | ef71a9e61a0cb277f0a5df3c4b2d907f1154ab4c | [
"BSD-3-Clause"
] | 2 | 2020-06-29T21:15:58.000Z | 2020-08-13T23:23:45.000Z | from qtpy.QtCore import Qt
from .SAXSToolbar import FieldSelector, ROIs, SAXSToolbarBase
# TODO -- move these to more reusable area
class Button(SAXSToolbarBase):
def __init__(self, *args, button_icon_path=None, button_text="", receiver=None, **kwargs):
super(Button, self).__init__(*args, **kwargs)
... | 39.576923 | 94 | 0.596696 | 104 | 1,029 | 5.634615 | 0.471154 | 0.068259 | 0.071672 | 0.051195 | 0.071672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.308066 | 1,029 | 26 | 95 | 39.576923 | 0.823034 | 0.092323 | 0 | 0 | 0 | 0 | 0.021529 | 0 | 0 | 0 | 0 | 0.038462 | 0 | 1 | 0.111111 | false | 0.055556 | 0.111111 | 0 | 0.388889 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
71c833eb750360723f119df29aa1564f49ce3700 | 912 | py | Python | Robinhood/RobinhoodOrder.py | jaysunmah/Robinhood | 990f3b41324919c5da7b7c9ddf6bbb05ab1c2e9b | [
"MIT"
] | null | null | null | Robinhood/RobinhoodOrder.py | jaysunmah/Robinhood | 990f3b41324919c5da7b7c9ddf6bbb05ab1c2e9b | [
"MIT"
] | null | null | null | Robinhood/RobinhoodOrder.py | jaysunmah/Robinhood | 990f3b41324919c5da7b7c9ddf6bbb05ab1c2e9b | [
"MIT"
] | null | null | null | def getOrderFromDict(d):
return RobinhoodOrder(d['symbol'],d['action'],d['shares'],d['price'],d['date'])
class RobinhoodOrder(object):
def __init__(self, symbol, action, shares, price, date):
self.symbol = symbol
self.action = action
self.shares = shares
self.price = price
... | 41.454545 | 118 | 0.609649 | 114 | 912 | 4.807018 | 0.263158 | 0.091241 | 0.087591 | 0.083942 | 0.291971 | 0.105839 | 0 | 0 | 0 | 0 | 0 | 0.002845 | 0.229167 | 912 | 22 | 119 | 41.454545 | 0.776671 | 0 | 0 | 0 | 0 | 0 | 0.098576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.238095 | 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 | 1 | 0 | 0 | 0 | 2 |
71d89c47c29376acfdfeebd2ec287a21dbe1e858 | 461 | py | Python | rl/metrics/Metric.py | mahkons/Lottery-ticket-hypothesis | 96ec399fdfc4138a37feecb24a63b3cdb8e50e1e | [
"MIT"
] | 7 | 2020-10-08T04:59:51.000Z | 2021-12-03T06:12:39.000Z | rl/metrics/Metric.py | mahkons/Lottery-ticket-hypothesis | 96ec399fdfc4138a37feecb24a63b3cdb8e50e1e | [
"MIT"
] | null | null | null | rl/metrics/Metric.py | mahkons/Lottery-ticket-hypothesis | 96ec399fdfc4138a37feecb24a63b3cdb8e50e1e | [
"MIT"
] | null | null | null | import torch
from logger.Logger import log
# uses global logger if available
class Metric():
def __init__(self, name):
self.name = name
log().add_plot(name, columns=("metric_value",))
def add(self, value):
self.add__(value)
def add_barrier(self, value):
self.add__(value)
... | 21.952381 | 55 | 0.633406 | 64 | 461 | 4.296875 | 0.359375 | 0.116364 | 0.12 | 0.109091 | 0.269091 | 0.196364 | 0.196364 | 0 | 0 | 0 | 0 | 0 | 0.24295 | 461 | 20 | 56 | 23.05 | 0.787966 | 0.067245 | 0 | 0.142857 | 0 | 0 | 0.028037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0 | 0.142857 | 0.071429 | 0.642857 | 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 | 1 | 0 | 0 | 2 |
71ddc547c83925ca644b3b9852e61d43fbf4e810 | 3,236 | py | Python | tests/test_errors.py | abeyerpath/Snowfakery | 98d04862f2e7638486cf38eb9e9fdb12b38e391e | [
"BSD-3-Clause"
] | 81 | 2020-03-23T21:43:16.000Z | 2022-03-21T06:24:19.000Z | tests/test_errors.py | abeyerpath/Snowfakery | 98d04862f2e7638486cf38eb9e9fdb12b38e391e | [
"BSD-3-Clause"
] | 348 | 2020-04-08T13:33:15.000Z | 2022-03-27T04:02:56.000Z | tests/test_errors.py | abeyerpath/Snowfakery | 98d04862f2e7638486cf38eb9e9fdb12b38e391e | [
"BSD-3-Clause"
] | 20 | 2020-04-15T20:04:30.000Z | 2022-03-16T16:52:04.000Z | from io import StringIO
import pytest
from snowfakery.data_generator import generate
from snowfakery.data_gen_exceptions import (
DataGenSyntaxError,
DataGenNameError,
DataGenError,
)
yaml1 = """ #1
- object: A #2
count: ${{abcd()}} ... | 32.039604 | 57 | 0.399258 | 297 | 3,236 | 4.279461 | 0.252525 | 0.042486 | 0.08812 | 0.104642 | 0.594807 | 0.516129 | 0.479937 | 0.446892 | 0.290323 | 0.290323 | 0 | 0.032075 | 0.508653 | 3,236 | 100 | 58 | 32.36 | 0.767296 | 0 | 0 | 0.5 | 1 | 0 | 0.511743 | 0 | 0 | 0 | 0 | 0 | 0.102273 | 1 | 0.079545 | false | 0 | 0.045455 | 0 | 0.136364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
71e2afc819017a0e8ef32b1e419bb295f5c80ce8 | 164 | py | Python | Exemples cours 3/PlusFortListe.py | geocot/coursPython | 74f634a96146c2244f859b9d449534330d9542fb | [
"Apache-2.0"
] | null | null | null | Exemples cours 3/PlusFortListe.py | geocot/coursPython | 74f634a96146c2244f859b9d449534330d9542fb | [
"Apache-2.0"
] | null | null | null | Exemples cours 3/PlusFortListe.py | geocot/coursPython | 74f634a96146c2244f859b9d449534330d9542fb | [
"Apache-2.0"
] | null | null | null | liste = [1,6,9,4,5,7]
plusFort = 0
for nb in liste:
if nb>plusFort:
plusFort = nb
print("Le plus fort de la liste est {}".format(plusFort))
| 16.4 | 58 | 0.579268 | 28 | 164 | 3.392857 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059829 | 0.286585 | 164 | 9 | 59 | 18.222222 | 0.752137 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 1 | 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 | 2 |
e07e0d8f17259a3f55a3096da8019998463ab88b | 2,109 | py | Python | buhmm/tests/test_counts.py | chebee7i/buhmm | 81c421919b4b8bc09030cd0d6a277b0e2fd01cee | [
"MIT"
] | 4 | 2016-03-17T20:55:16.000Z | 2020-05-27T02:30:12.000Z | buhmm/tests/test_counts.py | chebee7i/buhmm | 81c421919b4b8bc09030cd0d6a277b0e2fd01cee | [
"MIT"
] | null | null | null | buhmm/tests/test_counts.py | chebee7i/buhmm | 81c421919b4b8bc09030cd0d6a277b0e2fd01cee | [
"MIT"
] | null | null | null | # encoding: utf-8
from nose.tools import *
import numpy as np
from cmpy.inference import standardize_data
from cmpy import machines
from ..canonical import tmatrix
from ..counts import path_counts, out_arrays
def test_path_counts1():
# Test without state_path
m = machines.Even()
delta, nodes, symbols =... | 26.3625 | 80 | 0.587956 | 340 | 2,109 | 3.505882 | 0.158824 | 0.048658 | 0.060403 | 0.067114 | 0.699664 | 0.699664 | 0.699664 | 0.666107 | 0.666107 | 0.666107 | 0 | 0.08162 | 0.238976 | 2,109 | 79 | 81 | 26.696203 | 0.661059 | 0.048838 | 0 | 0.72 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18 | 1 | 0.06 | false | 0 | 0.12 | 0 | 0.18 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
e083b425433e2b060dca02bf3dee4f884fec41da | 433 | py | Python | copycat/gui/gridframe.py | mmcguill/copycat | 8e59c72c60ef4d30885d7958c8f25ca206199b59 | [
"MIT"
] | 70 | 2018-03-01T03:32:31.000Z | 2022-03-30T23:15:44.000Z | copycat/gui/gridframe.py | mmcguill/copycat | 8e59c72c60ef4d30885d7958c8f25ca206199b59 | [
"MIT"
] | 2 | 2018-08-23T21:52:02.000Z | 2020-03-20T06:37:34.000Z | copycat/gui/gridframe.py | mmcguill/copycat | 8e59c72c60ef4d30885d7958c8f25ca206199b59 | [
"MIT"
] | 15 | 2018-08-22T09:01:38.000Z | 2022-03-18T06:27:16.000Z | import tkinter as tk
import tkinter.ttk as ttk
class GridFrame(tk.Frame):
def __init__(self, parent, *args, **kwargs):
ttk.Frame.__init__(self, parent, *args, **kwargs)
def add(self, element, x, y, xspan=1, yspan=1):
element.grid(column=x, row=y, columnspan=xspan, rowspan=yspan, sticky=tk.N+tk... | 36.083333 | 98 | 0.662818 | 69 | 433 | 4.043478 | 0.492754 | 0.09319 | 0.100358 | 0.129032 | 0.172043 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011299 | 0.182448 | 433 | 11 | 99 | 39.363636 | 0.776836 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e084544aa166d9ceb20fc774c755f995c55a2434 | 894 | py | Python | WEEKS/CD_Sata-Structures/_MISC/misc-examples/python3-book-examples/sys/sys_shelve_importer_module.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | WEEKS/CD_Sata-Structures/_MISC/misc-examples/python3-book-examples/sys/sys_shelve_importer_module.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | WEEKS/CD_Sata-Structures/_MISC/misc-examples/python3-book-examples/sys/sys_shelve_importer_module.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# encoding: utf-8
# end_pymotw_header
import sys
import sys_shelve_importer
def show_module_details(module):
print(" message :", module.message)
print(" __name__ :", module.__name__)
print(" __package__:", module.__package__)
print(" __file__ :", module.__file__)
... | 25.542857 | 55 | 0.747204 | 107 | 894 | 5.728972 | 0.35514 | 0.091354 | 0.156607 | 0.065253 | 0.101142 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014031 | 0.123043 | 894 | 34 | 56 | 26.294118 | 0.767857 | 0.061521 | 0 | 0.130435 | 0 | 0 | 0.309809 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.347826 | 0 | 0.391304 | 0.565217 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 2 |
e0b032a9b87baf66ebe760035dbbf3092138b540 | 792 | py | Python | third_party/boto/manage/test_manage.py | stdft112/depot_tools | 52c7211807930272424213ff6127c209de790eca | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | third_party/boto/manage/test_manage.py | stdft112/depot_tools | 52c7211807930272424213ff6127c209de790eca | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | third_party/boto/manage/test_manage.py | stdft112/depot_tools | 52c7211807930272424213ff6127c209de790eca | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | from boto.manage.server import Server
from boto.manage.volume import Volume
import time
print '--> Creating New Volume'
volume = Volume.create()
print volume
print '--> Creating New Server'
server_list = Server.create()
server = server_list[0]
print server
print '----> Waiting for Server to start up'
while server.st... | 22.628571 | 79 | 0.693182 | 124 | 792 | 4.387097 | 0.33871 | 0.036765 | 0.044118 | 0.040441 | 0.198529 | 0.198529 | 0.198529 | 0.198529 | 0.198529 | 0.198529 | 0 | 0.00905 | 0.162879 | 792 | 34 | 80 | 23.294118 | 0.811463 | 0 | 0 | 0.269231 | 0 | 0 | 0.370417 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.115385 | null | null | 0.538462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 2 |
e0b67c6e98272d37125d1d08d358055e10efd0e5 | 171 | py | Python | examples/vars/a.tf.py | ryanm101/pretf | 3d2fe7619ce0adc38d5f0765e993bee2fd8c4bbd | [
"MIT"
] | 85 | 2019-06-10T21:17:39.000Z | 2022-02-25T23:17:44.000Z | examples/vars/a.tf.py | ryanm101/pretf | 3d2fe7619ce0adc38d5f0765e993bee2fd8c4bbd | [
"MIT"
] | 59 | 2019-05-25T07:08:48.000Z | 2021-12-20T13:26:35.000Z | examples/vars/a.tf.py | ryanm101/pretf | 3d2fe7619ce0adc38d5f0765e993bee2fd8c4bbd | [
"MIT"
] | 15 | 2019-07-06T04:42:55.000Z | 2022-02-18T04:16:02.000Z | from pretf.blocks import output, variable
def pretf_blocks(var):
yield variable.one(default=1)
yield output.one(value=var.one)
yield variable.two(default=2)
| 21.375 | 41 | 0.736842 | 26 | 171 | 4.807692 | 0.576923 | 0.176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013889 | 0.157895 | 171 | 7 | 42 | 24.428571 | 0.854167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 1 | 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 | 2 |
e0bd9418d60baa6e64e366fb28c4e0ee9452bd4f | 1,578 | py | Python | barbearia/auth/forms.py | LucasAlvesCampos/BarbeariaDomFigaro | 5021919212dac10e6b284dd89be68801984e1003 | [
"MIT"
] | null | null | null | barbearia/auth/forms.py | LucasAlvesCampos/BarbeariaDomFigaro | 5021919212dac10e6b284dd89be68801984e1003 | [
"MIT"
] | null | null | null | barbearia/auth/forms.py | LucasAlvesCampos/BarbeariaDomFigaro | 5021919212dac10e6b284dd89be68801984e1003 | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, SubmitField, DateField
from wtforms.validators import DataRequired, Email, EqualTo, ValidationError, Length
from barbearia.models import Usuario
class RegisterForm(FlaskForm):
username = StringField(label='Nome:', validators=[DataRequ... | 50.903226 | 107 | 0.724968 | 176 | 1,578 | 6.420455 | 0.397727 | 0.155752 | 0.123894 | 0.054867 | 0.20531 | 0.173451 | 0 | 0 | 0 | 0 | 0 | 0.007396 | 0.143219 | 1,578 | 31 | 108 | 50.903226 | 0.828402 | 0 | 0 | 0 | 0 | 0 | 0.111463 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0.16 | 0.16 | 0 | 0.76 | 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 | 1 | 0 | 0 | 2 |
e0c0226d3af3f260eca32695efef77c3b503a954 | 396 | py | Python | test/schemes/test_schemes.py | samadhicsec/threatware | f45068cfbbc2207ffa2b8f1b965b98cfb1ed9096 | [
"Apache-2.0"
] | null | null | null | test/schemes/test_schemes.py | samadhicsec/threatware | f45068cfbbc2207ffa2b8f1b965b98cfb1ed9096 | [
"Apache-2.0"
] | null | null | null | test/schemes/test_schemes.py | samadhicsec/threatware | f45068cfbbc2207ffa2b8f1b965b98cfb1ed9096 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import pytest
from schemes.schemes import load_scheme
from utils.load_yaml import yaml_file_to_dict
@pytest.mark.parametrize("scheme, expected_result", [
("", "{}"),
("confluence_1.0", str(yaml_file_to_dict("schemes/confluence-scheme-1.0.yaml")["scheme"])),
])
def test_load_scheme(schem... | 30.461538 | 95 | 0.744949 | 56 | 396 | 5 | 0.464286 | 0.107143 | 0.214286 | 0.1 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 0.103535 | 396 | 12 | 96 | 33 | 0.774648 | 0.05303 | 0 | 0 | 0 | 0 | 0.21123 | 0.090909 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
e0c950b844675f90374c08bc17aff10ebadb27dc | 291 | py | Python | Chap 2/string-methods.py | dwhickox/NCHS-Programming-1-Python-Programs | 96eba3826585a81a015740f59329c7a06afc9db7 | [
"MIT"
] | null | null | null | Chap 2/string-methods.py | dwhickox/NCHS-Programming-1-Python-Programs | 96eba3826585a81a015740f59329c7a06afc9db7 | [
"MIT"
] | null | null | null | Chap 2/string-methods.py | dwhickox/NCHS-Programming-1-Python-Programs | 96eba3826585a81a015740f59329c7a06afc9db7 | [
"MIT"
] | null | null | null | m = 4
b = 5
c = 6
d = 7
n = 0
d = d*d
print(d)
c = d*2 - c*2
print(c)
p = b*d+m*c
print(p)
dn = c-d
print(dn)
cn = c-m
print(cn)
d = d-dn
print(d)
c = c-n
print(c)
a = d + c
f = m + b
e = a + f
print(d,dn)
print(c,d,f)
print(m,b,p)
print(cn,dn)
print(a,e)
| 9.09375 | 14 | 0.450172 | 75 | 291 | 1.746667 | 0.24 | 0.045802 | 0.10687 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036649 | 0.343643 | 291 | 31 | 15 | 9.387097 | 0.649215 | 0 | 0 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.444444 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
e0cea636a694ca63bb86a95070f37cc3de630a80 | 1,896 | py | Python | src/the_tale/the_tale/finances/bank/models.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | 85 | 2017-11-21T12:22:02.000Z | 2022-03-27T23:07:17.000Z | src/the_tale/the_tale/finances/bank/models.py | devapromix/the-tale | 2a10efd3270734f8cf482b4cfbc5353ef8f0494c | [
"BSD-3-Clause"
] | 545 | 2017-11-04T14:15:04.000Z | 2022-03-27T14:19:27.000Z | src/the_tale/the_tale/finances/bank/models.py | devapromix/the-tale | 2a10efd3270734f8cf482b4cfbc5353ef8f0494c | [
"BSD-3-Clause"
] | 45 | 2017-11-11T12:36:30.000Z | 2022-02-25T06:10:44.000Z |
import smart_imports
smart_imports.all()
class Account(django_models.Model):
created_at = django_models.DateTimeField(auto_now_add=True, null=False)
updated_at = django_models.DateTimeField(auto_now=True, null=False)
entity_type = rels_django.RelationIntegerField(relation=relations.ENTITY_TYPE, relati... | 41.217391 | 125 | 0.772679 | 228 | 1,896 | 6.096491 | 0.223684 | 0.120863 | 0.08705 | 0.164029 | 0.696403 | 0.66259 | 0.62518 | 0.567626 | 0.567626 | 0.567626 | 0 | 0.001809 | 0.125527 | 1,896 | 45 | 126 | 42.133333 | 0.83655 | 0 | 0 | 0.148148 | 0 | 0 | 0.063325 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.888889 | 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 | 1 | 0 | 0 | 2 |
e0e61893b9a87e63f55214fc2fd30f000ad5019a | 1,014 | py | Python | portfolio/migrations/0007_auto_20180429_1016.py | matthew-t-smith/Portfolio | cb2a3ce5479c0f521781757f3182c0e6dd78e424 | [
"MIT"
] | null | null | null | portfolio/migrations/0007_auto_20180429_1016.py | matthew-t-smith/Portfolio | cb2a3ce5479c0f521781757f3182c0e6dd78e424 | [
"MIT"
] | null | null | null | portfolio/migrations/0007_auto_20180429_1016.py | matthew-t-smith/Portfolio | cb2a3ce5479c0f521781757f3182c0e6dd78e424 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.3 on 2018-04-29 10:16
from django.db import migrations, models
import gdstorage.storage
class Migration(migrations.Migration):
dependencies = [
('portfolio', '0006_auto_20180429_0538'),
]
operations = [
migrations.AlterField(
model_name='image',
... | 40.56 | 281 | 0.706114 | 92 | 1,014 | 7.706522 | 0.554348 | 0.203103 | 0.070522 | 0.081805 | 0.544429 | 0.544429 | 0.544429 | 0.544429 | 0.544429 | 0.544429 | 0 | 0.036949 | 0.172584 | 1,014 | 24 | 282 | 42.25 | 0.808105 | 0.044379 | 0 | 0.222222 | 1 | 0 | 0.088935 | 0.023785 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e0f3f62eaf61e2020eb9bcf430dab6e6720fd458 | 2,470 | py | Python | vendor/packages/logilab-astng/test/data/module2.py | jgmize/kitsune | 8f23727a9c7fcdd05afc86886f0134fb08d9a2f0 | [
"BSD-3-Clause"
] | 2 | 2019-08-19T17:08:47.000Z | 2019-10-05T11:37:02.000Z | vendor/packages/logilab-astng/test/data/module2.py | jgmize/kitsune | 8f23727a9c7fcdd05afc86886f0134fb08d9a2f0 | [
"BSD-3-Clause"
] | null | null | null | vendor/packages/logilab-astng/test/data/module2.py | jgmize/kitsune | 8f23727a9c7fcdd05afc86886f0134fb08d9a2f0 | [
"BSD-3-Clause"
] | null | null | null | # copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
# copyright 2003-2010 Sylvain Thenault, all rights reserved.
# contact mailto:thenault@gmail.com
#
# This file is part of logilab-astng.
#
# logilab-astng is free software: you can redi... | 21.858407 | 80 | 0.679352 | 367 | 2,470 | 4.514986 | 0.455041 | 0.010863 | 0.016295 | 0.021726 | 0.077248 | 0.077248 | 0.057936 | 0.016898 | 0.016898 | 0.016898 | 0 | 0.024793 | 0.216194 | 2,470 | 112 | 81 | 22.053571 | 0.831095 | 0.361943 | 0 | 0.030769 | 0 | 0 | 0.028264 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0 | null | null | 0.153846 | 0.076923 | null | null | 0.030769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
e0fae280b7e79e227761e64c19489564ac28785b | 6,062 | py | Python | tests/jenkins_date_range_functions_tests.py | BrunoCaimar/JenkinsStatistics | d15ccfa2a7c955039d01f6884a27d9f216e16367 | [
"MIT"
] | 1 | 2020-07-25T03:12:33.000Z | 2020-07-25T03:12:33.000Z | tests/jenkins_date_range_functions_tests.py | BrunoCaimar/JenkinsStatistics | d15ccfa2a7c955039d01f6884a27d9f216e16367 | [
"MIT"
] | null | null | null | tests/jenkins_date_range_functions_tests.py | BrunoCaimar/JenkinsStatistics | d15ccfa2a7c955039d01f6884a27d9f216e16367 | [
"MIT"
] | null | null | null | import datetime
from unittest import TestCase
from JenkinsStatistics.jenkins_date_range_functions import get_months_array, get_starting_month
class DateRelatedFunctionsTests(TestCase):
def test_get_months_array_for_one_month_should_return_one_month_only(self):
fake_actual_date = datetime.datetime(2015, 1... | 49.688525 | 120 | 0.658199 | 756 | 6,062 | 4.780423 | 0.085979 | 0.183453 | 0.092972 | 0.059768 | 0.792474 | 0.754012 | 0.662977 | 0.623686 | 0.618705 | 0.596569 | 0 | 0.064143 | 0.272187 | 6,062 | 121 | 121 | 50.099174 | 0.754986 | 0 | 0 | 0.544554 | 0 | 0 | 0.016991 | 0 | 0 | 0 | 0 | 0 | 0.267327 | 0 | null | null | 0 | 0.029703 | null | null | 0.049505 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4600cdc0766dab1fdd5fa3c9cf5950aed36c0712 | 3,161 | py | Python | archive/Library/WordVecToTweetVec.py | kensand/HonorsProject | 219b9b448a41c74f17f89319ef1550878d77e6e0 | [
"Apache-2.0"
] | null | null | null | archive/Library/WordVecToTweetVec.py | kensand/HonorsProject | 219b9b448a41c74f17f89319ef1550878d77e6e0 | [
"Apache-2.0"
] | null | null | null | archive/Library/WordVecToTweetVec.py | kensand/HonorsProject | 219b9b448a41c74f17f89319ef1550878d77e6e0 | [
"Apache-2.0"
] | null | null | null | import time
from Library import Util, Database
def word_vec_to_tweet_vec(conn=Database.get_Conn(), output=Database.tweet_embeddings['table_name'],
tweet_id_col=Database.tweet_embeddings['tweet_id_column'],
tweet_embedding_col=Database.tweet_embeddings['tweet_embedd... | 50.983871 | 183 | 0.565327 | 367 | 3,161 | 4.656676 | 0.264305 | 0.02048 | 0.040374 | 0.030427 | 0.222937 | 0.115857 | 0.115857 | 0.115857 | 0.115857 | 0.115857 | 0 | 0.006222 | 0.2882 | 3,161 | 62 | 184 | 50.983871 | 0.753333 | 0.066118 | 0 | 0.132075 | 0 | 0 | 0.107531 | 0.014586 | 0.037736 | 0 | 0 | 0.016129 | 0 | 0 | null | null | 0 | 0.037736 | null | null | 0.037736 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
46036922d03475047eb5ffc1bb4428073d0f7e58 | 1,821 | py | Python | Modules/Module-2-reactors/molecular_weight.py | OpenChemE/CHBE241 | 0c70fe47fd222a5a9f3629b0d3490e1a1931da98 | [
"CC-BY-4.0"
] | 5 | 2020-05-17T02:21:24.000Z | 2021-07-21T21:09:22.000Z | Modules/Module-2-reactors/molecular_weight.py | OpenChemE/CHBE241 | 0c70fe47fd222a5a9f3629b0d3490e1a1931da98 | [
"CC-BY-4.0"
] | 1 | 2021-07-13T06:12:51.000Z | 2021-07-14T14:40:49.000Z | Modules/Module-2-reactors/molecular_weight.py | UBCEnvision/chbe | 0c70fe47fd222a5a9f3629b0d3490e1a1931da98 | [
"CC-BY-4.0"
] | 2 | 2019-09-08T17:05:11.000Z | 2020-04-23T00:53:16.000Z | #!/usr/bin/env python
#
# chemweight.py
#
#
# import re
mass = {
"H": 1.00794,
"He": 4.002602,
"Li": 6.941,
"Be": 9.012182,
"B": 10.811,
"C": 12.011,
"N": 14.00674,
"O": 15.9994,
"F": 18.9984032,
"Ne": 20.1797,
"Na": 22.989768,
"Mg": 24.3050,
"Al": 26.981539,
"Si": 28.0855,
"P": 30.... | 14.92623 | 21 | 0.454146 | 313 | 1,821 | 2.642173 | 0.952077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.428467 | 0.25151 | 1,821 | 121 | 22 | 15.049587 | 0.178283 | 0.026359 | 0 | 0 | 0 | 0 | 0.115515 | 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 | 1 | 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 | 2 |
1cadc04b713f26658adbba60193774c0da70ddae | 390 | py | Python | reviewboard/scmtools/management/__init__.py | clach04/reviewboard | 994e5cbcb7709bf2de851d5ecd261d64a4091f26 | [
"MIT"
] | 1 | 2015-09-11T15:50:17.000Z | 2015-09-11T15:50:17.000Z | reviewboard/scmtools/management/__init__.py | clach04/reviewboard | 994e5cbcb7709bf2de851d5ecd261d64a4091f26 | [
"MIT"
] | null | null | null | reviewboard/scmtools/management/__init__.py | clach04/reviewboard | 994e5cbcb7709bf2de851d5ecd261d64a4091f26 | [
"MIT"
] | null | null | null | from django.conf import settings
from django.core.management import call_command
from django.db.models import signals
from reviewboard.scmtools.models import Tool
def register_scmtools(app, created_models, **kwargs):
if Tool in created_models and not getattr(settings, "RUNNING_TEST", False):
call_command... | 27.857143 | 79 | 0.802564 | 52 | 390 | 5.865385 | 0.615385 | 0.098361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123077 | 390 | 13 | 80 | 30 | 0.891813 | 0 | 0 | 0 | 0 | 0 | 0.071795 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.