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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cbe839a86a526c603f8bed3b9f2a48cb26b1e9df | 9,296 | py | Python | fakenet/listeners/IRCListener.py | kak-bo-che/flare-fakenet-ng | e54c7374a37660a26b17b8b572d7692f395391db | [
"Apache-2.0"
] | 1 | 2018-05-31T12:34:05.000Z | 2018-05-31T12:34:05.000Z | fakenet/listeners/IRCListener.py | kak-bo-che/flare-fakenet-ng | e54c7374a37660a26b17b8b572d7692f395391db | [
"Apache-2.0"
] | null | null | null | fakenet/listeners/IRCListener.py | kak-bo-che/flare-fakenet-ng | e54c7374a37660a26b17b8b572d7692f395391db | [
"Apache-2.0"
] | 1 | 2018-08-22T03:48:10.000Z | 2018-08-22T03:48:10.000Z | import logging
import sys
import os
import threading
import SocketServer
import ssl
import socket
import BannerFactory
from . import *
RPL_WELCOME = '001'
SRV_WELCOME = "Welcome to FakeNet."
BANNERS = {
'generic': 'Welcome to IRC - {servername} - %a %b %d %H:%M:%S {tz} %Y',
'debian-ircd-irc2': (
... | 33.318996 | 165 | 0.538726 | 1,026 | 9,296 | 4.80117 | 0.294347 | 0.060901 | 0.02233 | 0.0203 | 0.165652 | 0.119976 | 0.059277 | 0.047909 | 0.047909 | 0.047909 | 0 | 0.016538 | 0.290985 | 9,296 | 278 | 166 | 33.438849 | 0.730845 | 0.053464 | 0 | 0.079096 | 0 | 0.045198 | 0.192051 | 0.017767 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.028249 | 0.056497 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1daf860971d947982d5e37db3765f9106e72bec9 | 2,241 | py | Python | src/quocspyside2interface/logic/HandleExitBasic.py | Quantum-OCS/QuOCS-pyside2interface | 69436666a67da6884aed1ddd087b7062dcd2ad90 | [
"Apache-2.0"
] | 1 | 2021-03-27T17:41:16.000Z | 2021-03-27T17:41:16.000Z | src/quocspyside2interface/logic/HandleExitBasic.py | Quantum-OCS/QuOCS-pyside2interface | 69436666a67da6884aed1ddd087b7062dcd2ad90 | [
"Apache-2.0"
] | null | null | null | src/quocspyside2interface/logic/HandleExitBasic.py | Quantum-OCS/QuOCS-pyside2interface | 69436666a67da6884aed1ddd087b7062dcd2ad90 | [
"Apache-2.0"
] | null | null | null | # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Copyright 2021- QuOCS Team
#
# 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://ww... | 36.145161 | 119 | 0.619813 | 268 | 2,241 | 5.108209 | 0.481343 | 0.043828 | 0.037984 | 0.023375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005869 | 0.239625 | 2,241 | 61 | 120 | 36.737705 | 0.797535 | 0.586792 | 0 | 0.1 | 0 | 0 | 0.092172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.1 | 0 | 0.6 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1dbb61fb9a18efc23c2d47bc6ee29b739cd42f78 | 412 | py | Python | setup.py | Muzix1/newpackage | ea0c67fd6254b73f456b22486b0d6b4efadc4334 | [
"MIT"
] | null | null | null | setup.py | Muzix1/newpackage | ea0c67fd6254b73f456b22486b0d6b4efadc4334 | [
"MIT"
] | null | null | null | setup.py | Muzix1/newpackage | ea0c67fd6254b73f456b22486b0d6b4efadc4334 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='newpackage',
version='0.10',
packages=find_packages(exclude=['tests*']),
license='MIT',
description='Another EDSA example python packages',
long_description=open('README.md').read(),
install_requirements=['numpy'],
url='https://gi... | 29.428571 | 55 | 0.691748 | 48 | 412 | 5.833333 | 0.8125 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011429 | 0.150485 | 412 | 14 | 56 | 29.428571 | 0.788571 | 0 | 0 | 0 | 0 | 0 | 0.329298 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1dc014028ea0ab9dc3155307e59183c60deab1fc | 1,899 | py | Python | core/platform/platform_services.py | ctao5660/oppia-ml | 3234d6f6c854c5d9cdbf332eb0e743d1013354e8 | [
"Apache-2.0"
] | 3 | 2017-08-09T19:07:37.000Z | 2020-12-30T11:10:40.000Z | core/platform/platform_services.py | ctao5660/oppia-ml | 3234d6f6c854c5d9cdbf332eb0e743d1013354e8 | [
"Apache-2.0"
] | 30 | 2017-05-27T12:33:55.000Z | 2020-12-22T20:37:59.000Z | core/platform/platform_services.py | ctao5660/oppia-ml | 3234d6f6c854c5d9cdbf332eb0e743d1013354e8 | [
"Apache-2.0"
] | 16 | 2017-05-29T02:32:38.000Z | 2021-05-15T11:13:25.000Z | # coding: utf-8
#
# Copyright 2017 The Oppia 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 requi... | 28.772727 | 76 | 0.69247 | 228 | 1,899 | 5.657895 | 0.460526 | 0.111628 | 0.058915 | 0.024806 | 0.145736 | 0.145736 | 0.086822 | 0.086822 | 0.086822 | 0 | 0 | 0.006169 | 0.231701 | 1,899 | 65 | 77 | 29.215385 | 0.877999 | 0.631912 | 0 | 0.294118 | 0 | 0 | 0.005348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.294118 | 0 | 0.882353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1dc1a89c73a96c65764540f22f8fdefc0c6e1b00 | 4,877 | py | Python | cellpack/mgl_tools/DejaVu/Tests/test_ColorWheel.py | mesoscope/cellpack | ec6b736fc706c1fae16392befa814b5337a3a692 | [
"MIT"
] | null | null | null | cellpack/mgl_tools/DejaVu/Tests/test_ColorWheel.py | mesoscope/cellpack | ec6b736fc706c1fae16392befa814b5337a3a692 | [
"MIT"
] | 21 | 2021-10-02T00:07:05.000Z | 2022-03-30T00:02:10.000Z | cellpack/mgl_tools/DejaVu/Tests/test_ColorWheel.py | mesoscope/cellpack | ec6b736fc706c1fae16392befa814b5337a3a692 | [
"MIT"
] | null | null | null | ## Automatically adapted for numpy.oldnumeric Jul 23, 2007 by
#
#
# $Id: test_ColorWheel.py,v 1.5 2007/12/28 22:50:04 vareille Exp $
#
#
import Tkinter
import numpy
import numpy.oldnumeric as Numeric, math
import DejaVu.colorTool
import DejaVu.Slider
from DejaVu.EventHandler import CallbackFunctions
import unittest
f... | 31.063694 | 88 | 0.611031 | 617 | 4,877 | 4.727715 | 0.223663 | 0.024683 | 0.027768 | 0.024683 | 0.502914 | 0.42098 | 0.319506 | 0.286939 | 0.213576 | 0.138841 | 0 | 0.041713 | 0.267583 | 4,877 | 156 | 89 | 31.262821 | 0.774916 | 0.057002 | 0 | 0.423423 | 0 | 0 | 0.007427 | 0 | 0 | 0 | 0 | 0 | 0.189189 | 0 | null | null | 0 | 0.081081 | null | null | 0.018018 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1dc40f618a13e9216af8527e1dee96396160e81e | 3,920 | py | Python | get_color.py | Stardust2019/color_detection | 494e0b17c86df7e67d9d3f4c7d1f3af6f4cc27db | [
"MIT"
] | null | null | null | get_color.py | Stardust2019/color_detection | 494e0b17c86df7e67d9d3f4c7d1f3af6f4cc27db | [
"MIT"
] | null | null | null | get_color.py | Stardust2019/color_detection | 494e0b17c86df7e67d9d3f4c7d1f3af6f4cc27db | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Untitled4.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1m75Wo1EiDbx-VZgELdYDgJsanmkE9pQb
"""
# Commented out IPython magic to ensure Python compatibility.
from sklearn.cluster import KMeans
import matplotlib.pyplot as ... | 30.387597 | 95 | 0.676531 | 537 | 3,920 | 4.795158 | 0.286778 | 0.024854 | 0.013981 | 0.027961 | 0.427184 | 0.398447 | 0.339417 | 0.302524 | 0.259417 | 0.259417 | 0 | 0.031959 | 0.201786 | 3,920 | 128 | 96 | 30.625 | 0.790988 | 0.133929 | 0 | 0.477273 | 1 | 0 | 0.07221 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0 | 0.295455 | 0.022727 | 0.431818 | 0.068182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1dc8f58193b0d5408196815fccf6280fdc54f976 | 987 | py | Python | pyatdllib/ui/too_big_protobuf_test.py | lisagorewitdecker/immaculater | fe46d282ae1d6325d67ebcf8f2b3d3b95580d5e7 | [
"Apache-2.0"
] | null | null | null | pyatdllib/ui/too_big_protobuf_test.py | lisagorewitdecker/immaculater | fe46d282ae1d6325d67ebcf8f2b3d3b95580d5e7 | [
"Apache-2.0"
] | null | null | null | pyatdllib/ui/too_big_protobuf_test.py | lisagorewitdecker/immaculater | fe46d282ae1d6325d67ebcf8f2b3d3b95580d5e7 | [
"Apache-2.0"
] | null | null | null | """Unittests for module 'immaculater' that cannot live peaceably with immaculater_test.
This unittest is separate because once you call SetAllowOversizeProtos(True)
you cannot change it.
"""
from __future__ import absolute_import
from __future__ import unicode_literals
from __future__ import print_function
import pi... | 25.973684 | 87 | 0.761905 | 120 | 987 | 5.933333 | 0.583333 | 0.042135 | 0.067416 | 0.058989 | 0.115169 | 0.115169 | 0.115169 | 0 | 0 | 0 | 0 | 0.003623 | 0.161094 | 987 | 37 | 88 | 26.675676 | 0.85628 | 0.227964 | 0 | 0 | 0 | 0 | 0.039735 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.333333 | 0 | 0.47619 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1dcc14cfc89383c0d9cdc798968c8487f59a6bb7 | 11,291 | py | Python | tools/scripts/sam-analysis.py | srirampc/ecet | 46c8df79adfa51e117519719f5531aee1320bce4 | [
"Apache-2.0"
] | 1 | 2021-12-01T13:19:19.000Z | 2021-12-01T13:19:19.000Z | tools/scripts/sam-analysis.py | srirampc/ecet | 46c8df79adfa51e117519719f5531aee1320bce4 | [
"Apache-2.0"
] | null | null | null | tools/scripts/sam-analysis.py | srirampc/ecet | 46c8df79adfa51e117519719f5531aee1320bce4 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import sys
import argparse
import re
import alignment as an
import ecutils as eu
#
# File : sam-analyis.py
# Created on December 1, 2011
# Author : Sriram PC <sriram.pc@gmail.com>
#
# This file is part of Error Correction Review Toolkit.
# Error Correction Review Toolkit is free software: you ca... | 39.341463 | 99 | 0.559561 | 1,295 | 11,291 | 4.848649 | 0.247104 | 0.036949 | 0.014333 | 0.011945 | 0.161809 | 0.12072 | 0.082816 | 0.024526 | 0.003185 | 0.003185 | 0 | 0.011276 | 0.300948 | 11,291 | 286 | 100 | 39.479021 | 0.784239 | 0.165707 | 0 | 0.101322 | 0 | 0 | 0.131675 | 0.015698 | 0 | 0 | 0 | 0.003497 | 0.008811 | 0 | null | null | 0.004405 | 0.022026 | null | null | 0.140969 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1dcc352c2b14e7ef0b10d887a1dca9b5fe164e60 | 567 | py | Python | utils/verify.py | sweeneyngo/swvgio | 56a3f8413a253e08703eb11857aadac88f98ff87 | [
"MIT"
] | null | null | null | utils/verify.py | sweeneyngo/swvgio | 56a3f8413a253e08703eb11857aadac88f98ff87 | [
"MIT"
] | 2 | 2021-07-21T14:33:00.000Z | 2021-07-21T14:34:55.000Z | utils/verify.py | sweeneyngo/swvgio | 56a3f8413a253e08703eb11857aadac88f98ff87 | [
"MIT"
] | null | null | null | import requests
def grab(url, params=None):
try:
r = requests.get(url, params=params, stream=True)
except requests.exceptions.Timeout:
# Maybe set up for a retry, or continue in a retry loop
print("Timed out...")
except requests.exceptions.TooManyRedirects:
# Tell the user ... | 31.5 | 65 | 0.670194 | 74 | 567 | 5.135135 | 0.716216 | 0.110526 | 0.189474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246914 | 567 | 17 | 66 | 33.352941 | 0.88993 | 0.19224 | 0 | 0 | 0 | 0 | 0.186813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1dd0cc5081eaef337dfa843a35b9674d264c630e | 717 | py | Python | trafficgen/benignGenerator/DataGen/wordpressautonew/poc.py | cyberdeception/deepdig | 482061bc5039181a95631fcb8515d990eb2e16a9 | [
"Apache-2.0"
] | 5 | 2020-03-07T21:28:51.000Z | 2022-03-11T06:03:46.000Z | trafficgen/benignGenerator/DataGen/wordpressautonew/poc.py | cyberdeception/deepdig | 482061bc5039181a95631fcb8515d990eb2e16a9 | [
"Apache-2.0"
] | null | null | null | trafficgen/benignGenerator/DataGen/wordpressautonew/poc.py | cyberdeception/deepdig | 482061bc5039181a95631fcb8515d990eb2e16a9 | [
"Apache-2.0"
] | 4 | 2019-10-18T18:32:35.000Z | 2021-07-16T11:52:38.000Z | #! /usr/bin/env python
import httplib
import sys
import threading
import subprocess
import random
def send_request(method, url):
try:
c = httplib.HTTPConnection('127.0.0.1', 80)
c.request(method,url);
if "foo" in url:
print c.getresponse().read()
... | 22.40625 | 67 | 0.580195 | 88 | 717 | 4.647727 | 0.568182 | 0.080685 | 0.07824 | 0.0978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025896 | 0.299861 | 717 | 31 | 68 | 23.129032 | 0.788845 | 0.029289 | 0 | 0.083333 | 0 | 0 | 0.024496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.041667 | 0.208333 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1dd28ba61633323ddc0a0ac55c6ab2165f0d1e62 | 35,714 | py | Python | tools/python/nuketools/dag.py | cheekynie/nuke-config | b83325129ded4192deaa66113dfe6c9e8fee9c46 | [
"MIT"
] | null | null | null | tools/python/nuketools/dag.py | cheekynie/nuke-config | b83325129ded4192deaa66113dfe6c9e8fee9c46 | [
"MIT"
] | null | null | null | tools/python/nuketools/dag.py | cheekynie/nuke-config | b83325129ded4192deaa66113dfe6c9e8fee9c46 | [
"MIT"
] | null | null | null | import nuke
import nukescripts
import operator, math, os
import string
import random
# Utilities for enhancing efficiency when interacting with Nuke's Directed Acyclic Graph
# Register keyboard shortcuts and menu entries
nuke.menu('Nuke').addCommand('Edit/Node/DAG/Move/Move Right', 'dag.move(4, 0)', 'alt+meta+Right... | 40.492063 | 210 | 0.636081 | 4,718 | 35,714 | 4.724883 | 0.115727 | 0.022609 | 0.031222 | 0.05724 | 0.344653 | 0.288534 | 0.24686 | 0.220617 | 0.171945 | 0.150054 | 0 | 0.012197 | 0.217198 | 35,714 | 881 | 211 | 40.538025 | 0.78517 | 0.132021 | 0 | 0.24127 | 0 | 0.004762 | 0.212582 | 0.065629 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.009524 | null | null | 0.006349 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1dd8d4765911d8a6127594842e81ca8bcf09d00d | 931 | py | Python | notes/code/zillow/chart.py | akkiittiwari/msan692 | 70698a71e44a86dbdc0b226a46affcf0dc293b59 | [
"MIT"
] | null | null | null | notes/code/zillow/chart.py | akkiittiwari/msan692 | 70698a71e44a86dbdc0b226a46affcf0dc293b59 | [
"MIT"
] | null | null | null | notes/code/zillow/chart.py | akkiittiwari/msan692 | 70698a71e44a86dbdc0b226a46affcf0dc293b59 | [
"MIT"
] | 1 | 2019-01-20T16:02:20.000Z | 2019-01-20T16:02:20.000Z | # REGISTER: https://www.zillow.com/user/Register.htm
# API REGISTER: https://www.zillow.com/webservice/Registration.htm
# API DOC: http://www.zillow.com/howto/api/APIOverview.htm
# Run with args: yourzipid "190 7th St APT 4" "San Francisco, CA"
import sys
import untangle
import urllib2
import urllib
KEY = sys.argv[1]... | 32.103448 | 138 | 0.741139 | 133 | 931 | 5.165414 | 0.578947 | 0.052402 | 0.069869 | 0.064047 | 0.07278 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031095 | 0.136412 | 931 | 28 | 139 | 33.25 | 0.823383 | 0.315789 | 0 | 0 | 0 | 0.055556 | 0.211111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.222222 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1de182a1c5a604ba41487bd2b9a9c50d4c731e5e | 518 | py | Python | adv/farren.py | dl-stuff/dl | 185cc8a16339c47ed873768ff30804f8d06090a2 | [
"Apache-2.0"
] | 22 | 2020-04-04T17:34:16.000Z | 2021-09-25T00:22:23.000Z | adv/farren.py | dl-stuff/dl | 185cc8a16339c47ed873768ff30804f8d06090a2 | [
"Apache-2.0"
] | 92 | 2020-04-04T15:30:34.000Z | 2022-03-24T01:43:11.000Z | adv/farren.py | dl-stuff/dl | 185cc8a16339c47ed873768ff30804f8d06090a2 | [
"Apache-2.0"
] | 37 | 2020-04-16T02:47:07.000Z | 2021-03-28T23:18:50.000Z | from core.advbase import *
from conf import DEFAULT
class Farren(Adv):
def prerun(self):
self.a3_regen = Timer(self.a3_regen, 1.0, True).on()
def s2_proc(self, e):
if e.group == DEFAULT:
self.add_hp(140 * self.dragonform.utp_gauge / self.dragonform.max_utp_gauge)
self.... | 25.9 | 88 | 0.627413 | 78 | 518 | 4.025641 | 0.576923 | 0.178344 | 0.070064 | 0.140127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043038 | 0.237452 | 518 | 19 | 89 | 27.263158 | 0.751899 | 0 | 0 | 0 | 0 | 0 | 0.011583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.153846 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1dec2e37ad164f27c9f9c317b2ebb72d6a51623f | 616 | py | Python | websiteV2/utils/encrypt.py | meng950813/scholar_discovery_sys | 8f03df509e796a5c37189cd8aae0c114d0fa5e90 | [
"MIT"
] | 1 | 2019-03-26T10:19:43.000Z | 2019-03-26T10:19:43.000Z | websiteV2/utils/encrypt.py | meng950813/scholar_discovery_sys | 8f03df509e796a5c37189cd8aae0c114d0fa5e90 | [
"MIT"
] | 3 | 2021-03-20T00:39:17.000Z | 2021-06-01T23:31:32.000Z | websiteV2/utils/encrypt.py | meng950813/scholar_discovery_sys | 8f03df509e796a5c37189cd8aae0c114d0fa5e90 | [
"MIT"
] | 1 | 2022-02-24T01:16:09.000Z | 2022-02-24T01:16:09.000Z | """
created by chen
该模块用于密码加密
基本思路为 : 调用 hashlib 库中的 md5 加密方法,
将用户密码 与 专门的 key 进行 update 运算
返回一个 32 位 长的密码
"""
import hashlib
import sys
sys.path.append("..")
from config import SECRET_KEY
def encryption(pwd):
"""
用于加密的函数
:param pwd: 用户密码 (str)
:return: 32位长度字符串
"""
... | 15.02439 | 40 | 0.62013 | 77 | 616 | 4.818182 | 0.636364 | 0.072776 | 0.107817 | 0.123989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.253247 | 616 | 41 | 41 | 15.02439 | 0.784783 | 0.298701 | 0 | 0 | 0 | 0 | 0.044888 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.285714 | 0.214286 | 0 | 0.357143 | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1dff41001d6fa799183618e5ca95766b24b8c2c2 | 4,815 | py | Python | asgard/workers/autoscaler/simple_decision_component.py | rockerbacon/asgard-api | 1c1eb19225ace4bbecb06b65b1b9c4ab131eb24a | [
"MIT"
] | null | null | null | asgard/workers/autoscaler/simple_decision_component.py | rockerbacon/asgard-api | 1c1eb19225ace4bbecb06b65b1b9c4ab131eb24a | [
"MIT"
] | 2 | 2019-08-02T21:05:25.000Z | 2019-08-12T19:32:06.000Z | asgard/workers/autoscaler/simple_decision_component.py | rockerbacon/asgard-api | 1c1eb19225ace4bbecb06b65b1b9c4ab131eb24a | [
"MIT"
] | null | null | null | from typing import List
from asgard.conf import settings
from asgard.workers.autoscaler.decision_component_interface import (
DecisionComponentInterface,
)
from asgard.workers.autoscaler.decision_events import DecisionEvents
from asgard.workers.models.decision import Decision
from asgard.workers.models.scalable_ap... | 39.467213 | 88 | 0.414123 | 363 | 4,815 | 5.198347 | 0.201102 | 0.042395 | 0.036036 | 0.069952 | 0.45045 | 0.385798 | 0.294648 | 0.243773 | 0.134605 | 0.134605 | 0 | 0.002658 | 0.531256 | 4,815 | 121 | 89 | 39.793388 | 0.833407 | 0 | 0 | 0.252427 | 0 | 0 | 0.045691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019417 | false | 0 | 0.067961 | 0 | 0.106796 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
380fed3f1ef1f637be1d3be45c734d3302487f8c | 1,372 | py | Python | day03/python/quajak/three.py | AlexisTM/aoc-2021 | 91a801b3c812cc3d37d6088a2544227cf158d114 | [
"MIT"
] | 11 | 2021-11-28T10:36:54.000Z | 2021-12-21T10:38:34.000Z | day03/python/quajak/three.py | AlexisTM/aoc-2021 | 91a801b3c812cc3d37d6088a2544227cf158d114 | [
"MIT"
] | 83 | 2021-11-22T17:02:05.000Z | 2022-01-29T10:27:31.000Z | day03/python/quajak/three.py | AlexisTM/aoc-2021 | 91a801b3c812cc3d37d6088a2544227cf158d114 | [
"MIT"
] | 19 | 2021-11-22T20:47:57.000Z | 2022-02-01T08:51:19.000Z | f = open("./three.txt", "r")
lines = [x.strip() for x in f.readlines()]
gamma = ""
for index in range(len(lines[0])):
bits = [line[index] for line in lines]
zeros = list(bits).count('0')
ones = list(bits).count('1')
if zeros > ones:
gamma += "0"
else:
gamma += "1"
epsilon = ""
for... | 25.407407 | 76 | 0.551749 | 211 | 1,372 | 3.549763 | 0.161137 | 0.096128 | 0.096128 | 0.085447 | 0.75968 | 0.731642 | 0.651535 | 0.59012 | 0.59012 | 0.515354 | 0 | 0.032193 | 0.27551 | 1,372 | 54 | 77 | 25.407407 | 0.721328 | 0 | 0 | 0.5 | 0 | 0 | 0.029133 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3813ade4bf6fe966b768cb9516c37e92854b2d80 | 1,257 | py | Python | examples/callbacks.py | progmacattack/mpyg321 | 6184eecbe173b111fcac998e733418396c9ac170 | [
"MIT"
] | null | null | null | examples/callbacks.py | progmacattack/mpyg321 | 6184eecbe173b111fcac998e733418396c9ac170 | [
"MIT"
] | null | null | null | examples/callbacks.py | progmacattack/mpyg321 | 6184eecbe173b111fcac998e733418396c9ac170 | [
"MIT"
] | null | null | null | """
MPyG321 callbacks example
Playing and pausing some music, triggering callbacks
You need to add a "sample.mp3" file in the working directory
"""
from mpyg321.mpyg321 import MPyg321Player
from time import sleep
class MyPlayer(MPyg321Player):
"""We create a class extending the basic player to implement callbacks... | 23.277778 | 77 | 0.646778 | 162 | 1,257 | 4.925926 | 0.444444 | 0.080201 | 0.100251 | 0.100251 | 0.176692 | 0.06015 | 0 | 0 | 0 | 0 | 0 | 0.020964 | 0.24105 | 1,257 | 53 | 78 | 23.716981 | 0.815514 | 0.333333 | 0 | 0.074074 | 0 | 0 | 0.164557 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.259259 | false | 0 | 0.074074 | 0 | 0.37037 | 0.185185 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
381a506159d4a069b7c34b40f6a4aff951f2e011 | 2,213 | py | Python | celery_app/plugins/pluginnormal/phpmyadmin_weak_password.py | tiaotiaolong/piu | 8e464ab62464c15763476d591df4365d434f7341 | [
"MIT"
] | 2 | 2020-05-15T04:24:59.000Z | 2020-06-03T14:23:32.000Z | celery_app/plugins/pluginnormal/phpmyadmin_weak_password.py | tiaotiaolong/piu | 8e464ab62464c15763476d591df4365d434f7341 | [
"MIT"
] | null | null | null | celery_app/plugins/pluginnormal/phpmyadmin_weak_password.py | tiaotiaolong/piu | 8e464ab62464c15763476d591df4365d434f7341 | [
"MIT"
] | null | null | null | import requests
import re
from celery_app.utils.utils import insert_vuln_db
from celery_app.config.config import web_port_long
#通达 OA 系统 SQL 注入漏洞
plugin_id=73
default_port_list=web_port_long
def get_token(url):
result = re.findall('<input type="hidden" name="token" value="(\w+)" />', requests.get(url, timeout=1... | 36.883333 | 113 | 0.520108 | 245 | 2,213 | 4.57551 | 0.473469 | 0.039251 | 0.023194 | 0.037467 | 0.048171 | 0.048171 | 0 | 0 | 0 | 0 | 0 | 0.035515 | 0.351107 | 2,213 | 59 | 114 | 37.508475 | 0.745125 | 0.007682 | 0 | 0.125 | 0 | 0 | 0.136737 | 0.010483 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.104167 | 0.083333 | 0.020833 | 0.291667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3821fde5e36efed91ceea39bb6b90456e644bd39 | 604 | py | Python | src/data/52.py | NULLCT/LOMC | 79a16474a8f21310e0fb47e536d527dd5dc6d655 | [
"MIT"
] | null | null | null | src/data/52.py | NULLCT/LOMC | 79a16474a8f21310e0fb47e536d527dd5dc6d655 | [
"MIT"
] | null | null | null | src/data/52.py | NULLCT/LOMC | 79a16474a8f21310e0fb47e536d527dd5dc6d655 | [
"MIT"
] | null | null | null | from collections import deque
n, q = map(int, input().split())
ab = [[] for i in range(n)]
for i in range(n - 1):
a, b = map(int, input().split())
ab[a - 1].append(b - 1)
ab[b - 1].append(a - 1)
cd = [list(map(int, input().split())) for i in range(q)]
s = set()
qu = deque()
s.add(0)
qu.append(0)
hugo = [0... | 20.827586 | 56 | 0.486755 | 109 | 604 | 2.697248 | 0.33945 | 0.068027 | 0.102041 | 0.163265 | 0.204082 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033573 | 0.309603 | 604 | 28 | 57 | 21.571429 | 0.671463 | 0 | 0 | 0 | 0 | 0 | 0.013245 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.04 | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3822e47dce71f8cb7b537d06f5d55df711b79afa | 1,039 | py | Python | mandarin_twitter_bot/settings.py | matthew-li/mandarin_twitter_bot | 1fbe13e0cc717ec435991a9d0775fb352152e183 | [
"MIT"
] | null | null | null | mandarin_twitter_bot/settings.py | matthew-li/mandarin_twitter_bot | 1fbe13e0cc717ec435991a9d0775fb352152e183 | [
"MIT"
] | null | null | null | mandarin_twitter_bot/settings.py | matthew-li/mandarin_twitter_bot | 1fbe13e0cc717ec435991a9d0775fb352152e183 | [
"MIT"
] | null | null | null | import configparser
import os
"""This module contains settings referenced by the application."""
# The format in which dates are stored.
DATE_FORMAT = "%Y-%m-%d"
# Read configuration from a file.
CONFIG_FILE = os.environ["TWITTER_BOT_SETTINGS_MODULE"].strip()
config = configparser.ConfigParser(os.environ)
config.re... | 33.516129 | 72 | 0.801732 | 139 | 1,039 | 5.676259 | 0.381295 | 0.079848 | 0.141952 | 0.174905 | 0.2218 | 0.086185 | 0 | 0 | 0 | 0 | 0 | 0.001065 | 0.096246 | 1,039 | 30 | 73 | 34.633333 | 0.839191 | 0.114533 | 0 | 0 | 0 | 0 | 0.232038 | 0.11543 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.105263 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
382c7348c33b0714ba5f8d252593ff757b6c8025 | 6,773 | py | Python | client/src/client/motion.py | andrhahn/pi-spy | 04013565c83eb20db85688c0abb23d6f83d3fbaa | [
"MIT"
] | 1 | 2020-08-17T18:32:06.000Z | 2020-08-17T18:32:06.000Z | client/src/client/motion.py | andrhahn/pi-spy | 04013565c83eb20db85688c0abb23d6f83d3fbaa | [
"MIT"
] | null | null | null | client/src/client/motion.py | andrhahn/pi-spy | 04013565c83eb20db85688c0abb23d6f83d3fbaa | [
"MIT"
] | null | null | null | import io
import logging
import os
import threading
import uuid
import picamera
from PIL import Image
from PIL import ImageChops
from PIL import ImageDraw
from PIL import ImageOps
import config_service
import s3_service
log_level = config_service.get_config("log_level")
logging.basicConfig(level=getattr(logging, log... | 30.786364 | 116 | 0.649491 | 835 | 6,773 | 4.965269 | 0.238323 | 0.081524 | 0.057405 | 0.042451 | 0.18548 | 0.092378 | 0.05837 | 0.05234 | 0.027979 | 0.027979 | 0 | 0.013323 | 0.257493 | 6,773 | 219 | 117 | 30.926941 | 0.811096 | 0.087111 | 0 | 0.119403 | 0 | 0.007463 | 0.096288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.089552 | null | null | 0.037313 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
383495e2068f1dfdf6f465590e3c5013dd7c7ae2 | 902 | py | Python | das/migrations/0005_auto_20180415_1947.py | knowwinter/monkey | 4689e765d0a254abef26a33a51b33a1158bebecd | [
"Apache-2.0"
] | null | null | null | das/migrations/0005_auto_20180415_1947.py | knowwinter/monkey | 4689e765d0a254abef26a33a51b33a1158bebecd | [
"Apache-2.0"
] | null | null | null | das/migrations/0005_auto_20180415_1947.py | knowwinter/monkey | 4689e765d0a254abef26a33a51b33a1158bebecd | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2018-04-15 11:47
from __future__ import unicode_literals
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('das', '0004_auto_20180415_1926'),
]
operations = [
... | 32.214286 | 103 | 0.594235 | 96 | 902 | 5.4375 | 0.5 | 0.061303 | 0.08046 | 0.126437 | 0.417625 | 0.417625 | 0.417625 | 0.417625 | 0.417625 | 0.417625 | 0 | 0.051242 | 0.286031 | 902 | 27 | 104 | 33.407407 | 0.759317 | 0.075388 | 0 | 0.380952 | 1 | 0 | 0.11071 | 0.027678 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
383845924f5473cc7325e7fa36aa91b3f92b5690 | 3,153 | py | Python | fancy/config/base_config.py | susautw/fancy-config | 25a3bd51a40df071d00327640caa05b6288bd970 | [
"MIT"
] | 1 | 2022-03-17T04:47:52.000Z | 2022-03-17T04:47:52.000Z | fancy/config/base_config.py | susautw/fancy-config | 25a3bd51a40df071d00327640caa05b6288bd970 | [
"MIT"
] | 9 | 2021-12-01T08:01:52.000Z | 2022-03-16T13:05:07.000Z | fancy/config/base_config.py | susautw/fancy-config | 25a3bd51a40df071d00327640caa05b6288bd970 | [
"MIT"
] | 1 | 2022-03-07T09:29:06.000Z | 2022-03-07T09:29:06.000Z | import inspect
from abc import ABC
from typing import TYPE_CHECKING, Dict, List, Optional
from . import ConfigStructure, ConfigContext, exc
from . import Option
if TYPE_CHECKING:
from ..config import BaseConfigLoader
class BaseConfig(ConfigStructure, ConfigContext, ABC): # TODO more accurate error msg
_nam... | 33.903226 | 119 | 0.651443 | 401 | 3,153 | 4.84788 | 0.219451 | 0.045267 | 0.055556 | 0.027778 | 0.177984 | 0.170267 | 0.105967 | 0.080247 | 0.040123 | 0.040123 | 0 | 0 | 0.248652 | 3,153 | 92 | 120 | 34.271739 | 0.820599 | 0.00888 | 0 | 0.041667 | 0 | 0 | 0.10157 | 0.006729 | 0 | 0 | 0 | 0.01087 | 0 | 1 | 0.194444 | false | 0.013889 | 0.083333 | 0.055556 | 0.472222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
383cc37f414c6dcc43ecdd4e686edfdb27914cda | 439 | py | Python | ita/__init__.py | Tezar/Assigment-generator | 2a3d0d10f1e3b215a79efc727e26d2ebbf1bb7a3 | [
"Apache-2.0"
] | null | null | null | ita/__init__.py | Tezar/Assigment-generator | 2a3d0d10f1e3b215a79efc727e26d2ebbf1bb7a3 | [
"Apache-2.0"
] | null | null | null | ita/__init__.py | Tezar/Assigment-generator | 2a3d0d10f1e3b215a79efc727e26d2ebbf1bb7a3 | [
"Apache-2.0"
] | 1 | 2020-07-24T05:48:47.000Z | 2020-07-24T05:48:47.000Z | import os
MODULE_PATH = os.path.dirname(__file__)
VERBOSE = True
from ita import loader_file
from ita import parser
from ita import generator
FileLoader = loader_file.FileLoader
Loader = loader_file.FileLoader
Parser = parser.Parser
Generator = generator.Generator
GeneratorException = generator.GeneratorException
_... | 27.4375 | 120 | 0.783599 | 51 | 439 | 6.490196 | 0.352941 | 0.063444 | 0.117825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113895 | 439 | 16 | 120 | 27.4375 | 0.8509 | 0 | 0 | 0 | 0 | 0 | 0.165909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
383db6e4610770ff596c5bfd91bc8874179daf4e | 2,364 | py | Python | cisco_exec_by_ssh.py | sweetcolor/cisco-exec-by-ssh | 0ae388ff8b21274d41d24da27e8622a53e45151c | [
"MIT"
] | 1 | 2019-09-02T17:18:36.000Z | 2019-09-02T17:18:36.000Z | cisco_exec_by_ssh.py | sweetcolor/cisco-exec-by-ssh | 0ae388ff8b21274d41d24da27e8622a53e45151c | [
"MIT"
] | null | null | null | cisco_exec_by_ssh.py | sweetcolor/cisco-exec-by-ssh | 0ae388ff8b21274d41d24da27e8622a53e45151c | [
"MIT"
] | 1 | 2019-09-02T17:18:41.000Z | 2019-09-02T17:18:41.000Z | import paramiko
import sys
import os
import time
import re
class CiscoExecBySSH:
def __init__(self):
self.input_file = self.get_input_file()
self.login_params = {'host': '', 'user': '', 'password': '', 'port': 22}
self.get_login_info()
self.client = self.login()
def get_login_... | 33.771429 | 94 | 0.59687 | 272 | 2,364 | 4.974265 | 0.3125 | 0.073171 | 0.110865 | 0.065041 | 0.137472 | 0.05765 | 0.05765 | 0 | 0 | 0 | 0 | 0.006459 | 0.279611 | 2,364 | 69 | 95 | 34.26087 | 0.788021 | 0 | 0 | 0.216667 | 0 | 0 | 0.065567 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.083333 | 0.083333 | 0 | 0.233333 | 0.15 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
38462187a6297fb3987511b2c9d7fe4852ea3e36 | 1,199 | py | Python | account/models.py | AhteshamSid/College_school_management_system | a8504708ea2f347d18d4ac59198f29d05c0374d2 | [
"MIT"
] | null | null | null | account/models.py | AhteshamSid/College_school_management_system | a8504708ea2f347d18d4ac59198f29d05c0374d2 | [
"MIT"
] | null | null | null | account/models.py | AhteshamSid/College_school_management_system | a8504708ea2f347d18d4ac59198f29d05c0374d2 | [
"MIT"
] | null | null | null | from django.conf import settings
from django.db import models
from django.contrib.auth.models import User
from django.db.models.signals import post_save
from django.dispatch import receiver
class UserProfile(models.Model):
user = models.OneToOneField(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
... | 36.333333 | 92 | 0.657214 | 137 | 1,199 | 5.605839 | 0.467153 | 0.065104 | 0.03125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005314 | 0.215179 | 1,199 | 33 | 93 | 36.333333 | 0.81084 | 0 | 0 | 0 | 0 | 0 | 0.089897 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.172414 | 0.034483 | 0.551724 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
38482db13cd1d11ddbe9b12ab7503b915622a4bd | 2,045 | py | Python | samples/python/Wilson/image-net_backup/work.py | yptheangel/Gymmy | df4b8a13544d1835e361fff8eaa7d420dd389e58 | [
"BSD-3-Clause"
] | null | null | null | samples/python/Wilson/image-net_backup/work.py | yptheangel/Gymmy | df4b8a13544d1835e361fff8eaa7d420dd389e58 | [
"BSD-3-Clause"
] | null | null | null | samples/python/Wilson/image-net_backup/work.py | yptheangel/Gymmy | df4b8a13544d1835e361fff8eaa7d420dd389e58 | [
"BSD-3-Clause"
] | null | null | null | #Author : Choo, Wilson
#Last Edited : 14 June 2017
import cv2
import os
from shutil import copyfile
import numpy as np
max_num = 1800
img_folder = "pos_test/"
perfect_img = "pos_test/99.jpg"
def convert_images():
pic_num = 1
for pic_num in range(1,max_num+1):
try:
img = cv2.imread(img_folder+str(pic_num... | 27.635135 | 100 | 0.6 | 300 | 2,045 | 3.873333 | 0.296667 | 0.061962 | 0.051635 | 0.064544 | 0.329604 | 0.269363 | 0.19105 | 0.144578 | 0.144578 | 0.077453 | 0 | 0.03148 | 0.269927 | 2,045 | 73 | 101 | 28.013699 | 0.746818 | 0.037164 | 0 | 0.303571 | 0 | 0 | 0.085496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.107143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
38499ebf49ff58d0dd0ca8f5ba0831629cf234a5 | 826 | py | Python | pyaniml/core/result.py | FAIRChemistry/pyAnIML | f324b13691514f1ea2972ca4a890a67fb4bef316 | [
"MIT"
] | null | null | null | pyaniml/core/result.py | FAIRChemistry/pyAnIML | f324b13691514f1ea2972ca4a890a67fb4bef316 | [
"MIT"
] | 3 | 2022-03-19T13:12:26.000Z | 2022-03-20T19:25:52.000Z | pyaniml/core/result.py | FAIRChemistry/pyAnIML | f324b13691514f1ea2972ca4a890a67fb4bef316 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from typing import List, Union, Optional
from pyaniml.utility.utils import SchemaBase, elements, attribute
from pyaniml.core.series import SeriesSet
from pyaniml.core.parameter import Category
@dataclass
class Result(SchemaBase):
"""Container for experiment results"""
result... | 30.592593 | 95 | 0.662228 | 91 | 826 | 6 | 0.538462 | 0.06044 | 0.054945 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232446 | 826 | 26 | 96 | 31.769231 | 0.861199 | 0.243341 | 0 | 0 | 0 | 0 | 0.056027 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
384ada689c662b641374a20c6ae61aa957bd822e | 242 | py | Python | pets/serializers.py | fabrilopez/django_backend_irobot | 3085f6247c9cf5c852f973e8207066d90b940f5e | [
"Apache-2.0"
] | 1 | 2021-06-25T12:40:20.000Z | 2021-06-25T12:40:20.000Z | pets/serializers.py | fabrilopez/django_backend_irobot | 3085f6247c9cf5c852f973e8207066d90b940f5e | [
"Apache-2.0"
] | null | null | null | pets/serializers.py | fabrilopez/django_backend_irobot | 3085f6247c9cf5c852f973e8207066d90b940f5e | [
"Apache-2.0"
] | null | null | null | from rest_framework import serializers
from .models import Pet
class PetSerializer(serializers.ModelSerializer):
class Meta:
model = Pet
fields = ('id',
'name',
'age',
'exact_age') | 20.166667 | 49 | 0.57438 | 23 | 242 | 5.956522 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.338843 | 242 | 12 | 50 | 20.166667 | 0.85625 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
698359b7e33bfb4a62dec9d419fdb276221660e9 | 183 | py | Python | lectures/code/mpl_wire.py | naskoch/python_course | 84adfd3f8d48ca3ad5837f7acc59d2fa051e95d3 | [
"MIT"
] | 4 | 2015-08-10T17:46:55.000Z | 2020-04-18T21:09:03.000Z | lectures/code/mpl_wire.py | naskoch/python_course | 84adfd3f8d48ca3ad5837f7acc59d2fa051e95d3 | [
"MIT"
] | null | null | null | lectures/code/mpl_wire.py | naskoch/python_course | 84adfd3f8d48ca3ad5837f7acc59d2fa051e95d3 | [
"MIT"
] | 2 | 2019-04-24T03:31:02.000Z | 2019-05-13T07:36:06.000Z | from mpl_toolkits.mplot3d import axes3d
ax = plt.subplot(111, projection='3d')
X, Y, Z = axes3d.get_test_data(0.1)
ax.plot_wireframe(X, Y, Z, linewidth=0.1)
plt.savefig('wire.pdf')
| 22.875 | 41 | 0.726776 | 34 | 183 | 3.794118 | 0.764706 | 0.031008 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067485 | 0.10929 | 183 | 7 | 42 | 26.142857 | 0.723926 | 0 | 0 | 0 | 0 | 0 | 0.054645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6984772f82cc6544558fa402598580f2ce936d28 | 689 | py | Python | ABInBev Bot/databaseconn.py | Aryamaan23/IVR-chatbot | cddf205c6f1c761886524d44d8d0be764e0f27c0 | [
"MIT"
] | 33 | 2021-05-23T09:32:39.000Z | 2021-08-25T05:12:52.000Z | ABInBev Bot/databaseconn.py | Aryamaan23/IVR-chatbot | cddf205c6f1c761886524d44d8d0be764e0f27c0 | [
"MIT"
] | null | null | null | ABInBev Bot/databaseconn.py | Aryamaan23/IVR-chatbot | cddf205c6f1c761886524d44d8d0be764e0f27c0 | [
"MIT"
] | 3 | 2022-01-11T20:26:28.000Z | 2022-02-13T15:54:33.000Z | import mysql.connector
def DataUpdate(Name,Email,Contact):
mydb=mysql.connector.connect(
host="localhost",
user="root",
passwd="Vandana@123",
database="mail_signups",
auth_plugin='mysql_native_password'
)
mycursor=mydb.cursor()
#sql="CREATE TABLE CustomersInfo ... | 27.56 | 115 | 0.664731 | 77 | 689 | 5.792208 | 0.675325 | 0.060538 | 0.107623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044092 | 0.177068 | 689 | 24 | 116 | 28.708333 | 0.742504 | 0.137881 | 0 | 0 | 0 | 0 | 0.337268 | 0.075885 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.125 | 0.0625 | 0 | 0.125 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6985a11fc14f7321cee3d3faa5d7a41f44d8084d | 330 | py | Python | tests/cyclic/bar.py | topwebmaster/factory_boy | 0da7a55644c6c5120e5b048afc196ae1c8716188 | [
"MIT"
] | 1,932 | 2016-08-15T02:13:43.000Z | 2022-03-31T04:03:42.000Z | tests/cyclic/bar.py | topwebmaster/factory_boy | 0da7a55644c6c5120e5b048afc196ae1c8716188 | [
"MIT"
] | 520 | 2016-08-18T00:51:02.000Z | 2022-03-28T18:12:07.000Z | tests/cyclic/bar.py | topwebmaster/factory_boy | 0da7a55644c6c5120e5b048afc196ae1c8716188 | [
"MIT"
] | 261 | 2016-08-26T01:51:42.000Z | 2022-03-16T04:39:17.000Z | # Copyright: See the LICENSE file.
"""Helper to test circular factory dependencies."""
import factory
class Bar:
def __init__(self, foo, y):
self.foo = foo
self.y = y
class BarFactory(factory.Factory):
class Meta:
model = Bar
y = 13
foo = factory.SubFactory('cyclic.foo.Foo... | 16.5 | 53 | 0.633333 | 42 | 330 | 4.880952 | 0.619048 | 0.117073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008197 | 0.260606 | 330 | 19 | 54 | 17.368421 | 0.831967 | 0.239394 | 0 | 0 | 0 | 0 | 0.085714 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6985a1cc7bfd62aa046b7afa6093b767617a4472 | 459 | py | Python | django_todos/todos/migrations/0003_auto_20180418_2216.py | squadran2003/django-todos | 276ae39d8f1cf66aa131870f379dd8b1e3c575db | [
"MIT"
] | null | null | null | django_todos/todos/migrations/0003_auto_20180418_2216.py | squadran2003/django-todos | 276ae39d8f1cf66aa131870f379dd8b1e3c575db | [
"MIT"
] | null | null | null | django_todos/todos/migrations/0003_auto_20180418_2216.py | squadran2003/django-todos | 276ae39d8f1cf66aa131870f379dd8b1e3c575db | [
"MIT"
] | null | null | null | # Generated by Django 2.0.4 on 2018-04-18 22:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('todos', '0002_auto_20180418_2213'),
]
operations = [
migrations.AlterField(
model_name='status',
name='status',
... | 24.157895 | 125 | 0.594771 | 52 | 459 | 5.153846 | 0.75 | 0.078358 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.259259 | 459 | 18 | 126 | 25.5 | 0.688235 | 0.098039 | 0 | 0 | 1 | 0 | 0.174757 | 0.055825 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
698d29be85fb760b751df186ead6340b4c18ed12 | 1,129 | py | Python | pyfastrand/pcg32.py | Mukundan314/python-fastrand | b022fa8b5a0f3b84bdc72af02123f87e77c82404 | [
"MIT"
] | 2 | 2019-06-21T16:39:55.000Z | 2021-05-29T04:28:05.000Z | pyfastrand/pcg32.py | Mukundan314/python-fastrand | b022fa8b5a0f3b84bdc72af02123f87e77c82404 | [
"MIT"
] | null | null | null | pyfastrand/pcg32.py | Mukundan314/python-fastrand | b022fa8b5a0f3b84bdc72af02123f87e77c82404 | [
"MIT"
] | null | null | null | import os
__all__ = ['pcg32', 'pcg32bounded', 'pcg32inc', 'pcg32_seed']
state = int.from_bytes(os.urandom(8), 'big')
inc = 0xda3e39cb94b95bdb
def pcg32():
"""Generate a random (32 bit) integer using PCG."""
global state
xorshifted = (((state >> 18) ^ state) >> 27) & 0xffffffff
rot = state >> 59
... | 25.659091 | 75 | 0.64039 | 127 | 1,129 | 5.606299 | 0.440945 | 0.025281 | 0.042135 | 0.11236 | 0.126404 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08168 | 0.240921 | 1,129 | 43 | 76 | 26.255814 | 0.749125 | 0.177148 | 0 | 0.148148 | 1 | 0 | 0.125867 | 0 | 0 | 0 | 0.103072 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.037037 | 0 | 0.259259 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69933db6ba435e28f3733047eeb77e92575cd301 | 3,115 | py | Python | GestureDetection/GestureDetecttion.py | sainikhilgoud10/ComputerVision-ImageProcessing | b29f2f2e9cde5669ae36db01fb86d1acd6515b95 | [
"Apache-2.0"
] | null | null | null | GestureDetection/GestureDetecttion.py | sainikhilgoud10/ComputerVision-ImageProcessing | b29f2f2e9cde5669ae36db01fb86d1acd6515b95 | [
"Apache-2.0"
] | null | null | null | GestureDetection/GestureDetecttion.py | sainikhilgoud10/ComputerVision-ImageProcessing | b29f2f2e9cde5669ae36db01fb86d1acd6515b95 | [
"Apache-2.0"
] | null | null | null | import cv2
import numpy as np
import math
cap = cv2.VideoCapture(0)
while(cap.isOpened()):
ret, img = cap.read()
cv2.rectangle(img,(300,300),(100,100),(0,255,0),0)
crop_img = img[100:300,100:300]
grey = cv2.cvtColor(crop_img,cv2.COLOR_BGR2GRAY)
value = (35,35)
blurred = cv2.GaussianBlu... | 44.5 | 86 | 0.493419 | 412 | 3,115 | 3.640777 | 0.298544 | 0.018667 | 0.02 | 0.056667 | 0.185333 | 0.122 | 0.122 | 0.122 | 0.086 | 0.086 | 0 | 0.098951 | 0.357624 | 3,115 | 69 | 87 | 45.144928 | 0.650675 | 0 | 0 | 0 | 0 | 0 | 0.029547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.044118 | null | null | 0.014706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69976949caab072475fee230abd75903f08e8afd | 1,196 | py | Python | algo/src/stack.py | ssavinash1/Algorithm_stanford | f2588b6bcac2b0858e78b819e6e8402109e80ee2 | [
"MIT"
] | 24 | 2016-03-21T07:53:54.000Z | 2020-06-29T12:16:36.000Z | algo/src/stack.py | ssavinash1/Algorithm_stanford | f2588b6bcac2b0858e78b819e6e8402109e80ee2 | [
"MIT"
] | 5 | 2015-09-29T17:12:36.000Z | 2020-03-26T20:51:56.000Z | algo/src/stack.py | ssavinash1/Algorithm_stanford | f2588b6bcac2b0858e78b819e6e8402109e80ee2 | [
"MIT"
] | 12 | 2016-05-24T16:48:32.000Z | 2020-10-02T12:22:09.000Z | # -*- coding: utf-8 -*-
class Stack(object):
""" Implements a simple stack data structure.
Attrs:
top: object, a pointer to the top object in the stack.
count: int, a counter of the number of elements in the stack.
"""
def __init__(self):
self.top = None
self.count = 0... | 24.916667 | 78 | 0.527592 | 157 | 1,196 | 3.961783 | 0.324841 | 0.123794 | 0.07074 | 0.062701 | 0.073955 | 0.073955 | 0 | 0 | 0 | 0 | 0 | 0.006562 | 0.362876 | 1,196 | 47 | 79 | 25.446809 | 0.809711 | 0.313545 | 0 | 0.259259 | 0 | 0 | 0.035433 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0.074074 | 0.481481 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
699b0c9fb68286d16f2d23b59155862bada6c9d5 | 850 | py | Python | pandera/external_config.py | matthiashuschle/pandera | c9a2be0e37c91d43dff93805b434a774d6d3b433 | [
"MIT"
] | 1 | 2021-02-05T14:48:13.000Z | 2021-02-05T14:48:13.000Z | pandera/external_config.py | matthiashuschle/pandera | c9a2be0e37c91d43dff93805b434a774d6d3b433 | [
"MIT"
] | 14 | 2020-09-11T03:06:25.000Z | 2020-12-17T21:03:13.000Z | pandera/external_config.py | matthiashuschle/pandera | c9a2be0e37c91d43dff93805b434a774d6d3b433 | [
"MIT"
] | null | null | null | """Configuration for external packages."""
import os
try:
# try importing koalas to see if it exists. This is important because the
# pandera.typing module defines a Series type that inherits from
# pandas.Series, and koalas v1+ injects a __getitem__ method to pandas
# Series and DataFrames to support... | 38.636364 | 95 | 0.718824 | 123 | 850 | 4.829268 | 0.601626 | 0.060606 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011527 | 0.183529 | 850 | 21 | 96 | 40.47619 | 0.84438 | 0.518824 | 0 | 0 | 0 | 0 | 0.305556 | 0.174242 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.3 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69a3da50b62a3d3132d44f1293cd334b5cc0867e | 3,449 | py | Python | crawler/qq/qq/utils.py | markhuyong/galaxy | cb66633132a8c1affd8f103c466589d392409361 | [
"BSD-3-Clause"
] | null | null | null | crawler/qq/qq/utils.py | markhuyong/galaxy | cb66633132a8c1affd8f103c466589d392409361 | [
"BSD-3-Clause"
] | null | null | null | crawler/qq/qq/utils.py | markhuyong/galaxy | cb66633132a8c1affd8f103c466589d392409361 | [
"BSD-3-Clause"
] | 1 | 2019-05-19T07:52:00.000Z | 2019-05-19T07:52:00.000Z | # -*- coding: utf-8 -*-
import random
import urllib
from scrapy.http.headers import Headers
from crawler.misc.spider import CommonSpider
from crawler.misc import agents
class BaseHelper(object):
PROFILE_URL = "https://mobile.qzone.qq.com/profile?hostuin=USER_QQ_NUMBER"
SHUOSHU_URL = "https://mobile.qzone.q... | 41.059524 | 238 | 0.692954 | 489 | 3,449 | 4.635992 | 0.247444 | 0.03176 | 0.06352 | 0.056462 | 0.509925 | 0.493163 | 0.471548 | 0.372298 | 0.346714 | 0.320688 | 0 | 0.029982 | 0.178023 | 3,449 | 83 | 239 | 41.554217 | 0.769665 | 0.042041 | 0 | 0.288136 | 0 | 0.118644 | 0.376895 | 0 | 0 | 0 | 0 | 0 | 0.016949 | 1 | 0.186441 | false | 0 | 0.084746 | 0.118644 | 0.644068 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
69a785febfc5ef7b1b08cf952ea72a4b396dc8ce | 930 | py | Python | {{cookiecutter.out_dir}}/src/{{cookiecutter.django_project_name}}/settings/test.py | SebCorbin/cookiecutter-django | 1d04acd7eaa94e7a300fe11733f046b206089615 | [
"BSD-3-Clause"
] | 1 | 2020-11-30T08:21:17.000Z | 2020-11-30T08:21:17.000Z | {{cookiecutter.out_dir}}/src/{{cookiecutter.django_project_name}}/settings/test.py | SebCorbin/cookiecutter-django | 1d04acd7eaa94e7a300fe11733f046b206089615 | [
"BSD-3-Clause"
] | 4 | 2019-08-19T15:39:45.000Z | 2021-02-16T10:20:28.000Z | {{cookiecutter.out_dir}}/src/{{cookiecutter.django_project_name}}/settings/test.py | SebCorbin/cookiecutter-django | 1d04acd7eaa94e7a300fe11733f046b206089615 | [
"BSD-3-Clause"
] | 2 | 2019-08-19T14:52:06.000Z | 2020-07-31T12:34:21.000Z | # -*- coding: utf-8 -*-
import tempfile
from .base import * # noqa
for a in INSTALLED_APPS:
if 'rest_framework' in a:
REST_FRAMEWORK['TEST_REQUEST_DEFAULT_FORMAT'] = 'json'
SECRET_KEY = 'spam-spam-spam-spam'
MEDIA_ROOT = tempfile.mkdtemp()
FILE_UPLOAD_TEMP_DIR = tempfile.mkdtemp()
EMAIL_BACKEND = 'dja... | 23.846154 | 70 | 0.704301 | 120 | 930 | 5.308333 | 0.733333 | 0.037677 | 0.037677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002591 | 0.169892 | 930 | 38 | 71 | 24.473684 | 0.822539 | 0.186022 | 0 | 0 | 0 | 0 | 0.312417 | 0.214953 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.12 | 0.16 | 0 | 0.16 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
69aec402e42eb4d052fe2ff8ba58d89911949512 | 772 | py | Python | deploy/boto/lib/con.py | mmihira/rocket_wasm | 52555c9610a45f3ebd039906b93affc3e5eb1fb0 | [
"MIT"
] | 1 | 2019-02-21T23:08:48.000Z | 2019-02-21T23:08:48.000Z | deploy/boto/lib/con.py | mmihira/rocket_wasm | 52555c9610a45f3ebd039906b93affc3e5eb1fb0 | [
"MIT"
] | null | null | null | deploy/boto/lib/con.py | mmihira/rocket_wasm | 52555c9610a45f3ebd039906b93affc3e5eb1fb0 | [
"MIT"
] | null | null | null | import boto
import os
import json
import ConfigParser
import time
from boto.ec2.connection import EC2Connection
from boto.ec2.regioninfo import *
class Con:
def __init__(self):
self.proj_prefix = os.environ['PROJECT_PREFIX']
f = open(os.path.expanduser(os.environ["{}_AWS_KEY_FILE".format(self.pro... | 30.88 | 97 | 0.615285 | 92 | 772 | 4.945652 | 0.532609 | 0.059341 | 0.048352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012522 | 0.275907 | 772 | 24 | 98 | 32.166667 | 0.801431 | 0 | 0 | 0 | 0 | 0 | 0.124514 | 0.041505 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.368421 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
69b1bdd8ba3f7a42b51e947e1b88437cdfa7a929 | 687 | py | Python | updateDDBBservers.py | miguelFLG13/updateDDBBservers | 78b1f8c4461fd421b8264d16153aaf039e3d6b1b | [
"Apache-2.0"
] | null | null | null | updateDDBBservers.py | miguelFLG13/updateDDBBservers | 78b1f8c4461fd421b8264d16153aaf039e3d6b1b | [
"Apache-2.0"
] | null | null | null | updateDDBBservers.py | miguelFLG13/updateDDBBservers | 78b1f8c4461fd421b8264d16153aaf039e3d6b1b | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/python
"""
Script to upgrade ddbb in mysql servers
17/08/2015 by Miguel Jimenez
"""
import os
import sys
ddbb_servers = [] #Complete with MySQL servers
ddbb_users = [] #Complete with MySQL users
ddbb_passwords = [] #Complete with MySQL passwords
ddbb_names = [] #Complete with MySQL DDBB names
if sys.arg... | 23.689655 | 130 | 0.643377 | 106 | 687 | 4.084906 | 0.462264 | 0.110855 | 0.157044 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029144 | 0.200873 | 687 | 29 | 131 | 23.689655 | 0.759563 | 0.286754 | 0 | 0.125 | 0 | 0 | 0.158664 | 0.056367 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.125 | 0 | 0.125 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
69b36ffcdf04854d1ea7783a2981458e749b8bd9 | 326 | py | Python | artistapp/artist/migrations/0009_remove_content_slug.py | fallprojects/ArtistApp | 5564a1f7f4fc95261beb462abfa4ca53f3e5c17f | [
"MIT"
] | null | null | null | artistapp/artist/migrations/0009_remove_content_slug.py | fallprojects/ArtistApp | 5564a1f7f4fc95261beb462abfa4ca53f3e5c17f | [
"MIT"
] | null | null | null | artistapp/artist/migrations/0009_remove_content_slug.py | fallprojects/ArtistApp | 5564a1f7f4fc95261beb462abfa4ca53f3e5c17f | [
"MIT"
] | null | null | null | # Generated by Django 3.1.3 on 2020-12-08 12:41
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('artist', '0008_auto_20201208_1136'),
]
operations = [
migrations.RemoveField(
model_name='content',
name='slug',
),
... | 18.111111 | 47 | 0.588957 | 35 | 326 | 5.371429 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135371 | 0.297546 | 326 | 17 | 48 | 19.176471 | 0.68559 | 0.138037 | 0 | 0 | 1 | 0 | 0.143369 | 0.082437 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69b377fa31991c4d9617021ca30b6b48e03ecc89 | 158 | py | Python | Advanced/Generators/main.py | Alperencode/Python | 6cd1ce6afb76011ec25d567a988367f8522e7461 | [
"MIT"
] | 1 | 2022-03-07T18:57:40.000Z | 2022-03-07T18:57:40.000Z | Advanced/Generators/main.py | Alperencode/Python | 6cd1ce6afb76011ec25d567a988367f8522e7461 | [
"MIT"
] | null | null | null | Advanced/Generators/main.py | Alperencode/Python | 6cd1ce6afb76011ec25d567a988367f8522e7461 | [
"MIT"
] | null | null | null | ## Gerenators
def mygenerator(x):
for i in range(x):
yield i
values = mygenerator(100)
for i in values:
print(i)
print(next(mygenerator)) | 13.166667 | 25 | 0.639241 | 23 | 158 | 4.391304 | 0.565217 | 0.079208 | 0.118812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02521 | 0.246835 | 158 | 12 | 26 | 13.166667 | 0.823529 | 0.063291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0.285714 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69b4aa03960f771a4f74e74779eb677ebee311c0 | 481 | py | Python | flask-celery-example/app/celery/tasks.py | hk-badbuta/buta-exercise-celery | d5329c9bbeffb7454e28effeac50e727f15afb31 | [
"Apache-2.0"
] | null | null | null | flask-celery-example/app/celery/tasks.py | hk-badbuta/buta-exercise-celery | d5329c9bbeffb7454e28effeac50e727f15afb31 | [
"Apache-2.0"
] | null | null | null | flask-celery-example/app/celery/tasks.py | hk-badbuta/buta-exercise-celery | d5329c9bbeffb7454e28effeac50e727f15afb31 | [
"Apache-2.0"
] | 1 | 2019-05-16T02:25:57.000Z | 2019-05-16T02:25:57.000Z | from celery import task
@task(bind=True)
def hello(self):
# How to call me:
# At project folder:
# $ celery -A app.run_celery.celery call app.celery.tasks.hello
# app.run_celery.celery is the celery (actually is FlaskCelery) instance
# (from app.extensions.celery) but with configuration set.
... | 28.294118 | 76 | 0.681913 | 72 | 481 | 4.527778 | 0.583333 | 0.03681 | 0.07362 | 0.110429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234927 | 481 | 16 | 77 | 30.0625 | 0.88587 | 0.565489 | 0 | 0 | 0 | 0 | 0.094059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
69bc3c8845a90fafa3cef611664c61935f26f0a0 | 535 | py | Python | script/chinatimes.py | radjan/newspac | 30c0c197f3d64e1810dd5f92fb05c9ca51e41c0e | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2015-11-06T06:55:02.000Z | 2018-03-14T03:18:51.000Z | script/chinatimes.py | radjan/newspac | 30c0c197f3d64e1810dd5f92fb05c9ca51e41c0e | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | script/chinatimes.py | radjan/newspac | 30c0c197f3d64e1810dd5f92fb05c9ca51e41c0e | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | from bs4 import BeautifulSoup
import urllib2
import re
import rss_base
class Handler(rss_base.RssBaseHandler):
def fetch_text(self, url):
try:
u = urllib2.urlopen(url)
url = u.geturl()
bs = BeautifulSoup(u)
canonical_url = self.get_canonical_url(bs)
... | 29.722222 | 88 | 0.607477 | 65 | 535 | 4.861538 | 0.553846 | 0.151899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008065 | 0.304673 | 535 | 17 | 89 | 31.470588 | 0.841398 | 0.009346 | 0 | 0 | 0 | 0 | 0.034026 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.266667 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69c6ac1d5dd56efcadc5a2e7392adab589fc4205 | 304 | py | Python | redditclone/urls.py | jessejkwk/yup | 6c9663ca6270ab7042e534ad8a06134ece9d5f64 | [
"MIT"
] | 3 | 2017-02-23T19:00:11.000Z | 2018-10-18T13:56:13.000Z | redditclone/urls.py | jessejkwk/yup | 6c9663ca6270ab7042e534ad8a06134ece9d5f64 | [
"MIT"
] | null | null | null | redditclone/urls.py | jessejkwk/yup | 6c9663ca6270ab7042e534ad8a06134ece9d5f64 | [
"MIT"
] | 3 | 2017-09-30T22:22:30.000Z | 2021-03-17T17:37:55.000Z | from django.conf.urls import url, include
from django.contrib import admin
from posts import views
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^accounts/', include('accounts.urls')),
url(r'^posts/', include('posts.urls')),
url(r'^$', views.HomeView.as_view(), name="home")
]
| 27.636364 | 53 | 0.667763 | 43 | 304 | 4.697674 | 0.465116 | 0.079208 | 0.118812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141447 | 304 | 10 | 54 | 30.4 | 0.773946 | 0 | 0 | 0 | 0 | 0 | 0.174342 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
69cc575790d253cf9fd4db8897025914d8f19475 | 2,677 | py | Python | Logger.py | blake-edwards/Facial-Recognition | afce3dd77fe93a33a3b2d0f2d3303331dde9a18b | [
"MIT"
] | null | null | null | Logger.py | blake-edwards/Facial-Recognition | afce3dd77fe93a33a3b2d0f2d3303331dde9a18b | [
"MIT"
] | null | null | null | Logger.py | blake-edwards/Facial-Recognition | afce3dd77fe93a33a3b2d0f2d3303331dde9a18b | [
"MIT"
] | null | null | null | # logging times and names to a file for event parsing
import os
import time
from pathlib import Path
import csv
logPath = os.path.join(os.getcwd(), "face-log.txt")
FIELD_AMT = 2
class Logger(object):
# initialization function that creates the log file
def __init__(self):
path = Path(logPath)
if... | 38.242857 | 89 | 0.540904 | 316 | 2,677 | 4.541139 | 0.357595 | 0.045993 | 0.062718 | 0.026481 | 0.242509 | 0.242509 | 0.242509 | 0.242509 | 0.242509 | 0.242509 | 0 | 0.005248 | 0.359357 | 2,677 | 69 | 90 | 38.797101 | 0.831487 | 0.136347 | 0 | 0.315789 | 0 | 0 | 0.206687 | 0 | 0 | 0 | 0 | 0.014493 | 0 | 1 | 0.052632 | false | 0 | 0.070175 | 0 | 0.157895 | 0.210526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69dbe32c449eff65f372454b228f31667b99f548 | 827 | py | Python | backend/home/management/commands/generate_project_report.py | crowdbotics-apps/test-31818 | 3c0be5481a1adec1445c703af63db4ff1d0b9146 | [
"FTL",
"AML",
"RSA-MD"
] | 2 | 2021-10-20T04:20:40.000Z | 2021-11-08T10:23:14.000Z | backend/home/management/commands/generate_project_report.py | crowdbotics-apps/test-31818 | 3c0be5481a1adec1445c703af63db4ff1d0b9146 | [
"FTL",
"AML",
"RSA-MD"
] | 321 | 2021-07-16T15:22:20.000Z | 2021-07-19T20:57:51.000Z | backend/home/management/commands/generate_project_report.py | crowdbotics-apps/rwar-33953 | 69c3a19f094ce817df5dd5f3130f0103c7da4dcd | [
"FTL",
"AML",
"RSA-MD"
] | 1 | 2021-07-02T18:28:49.000Z | 2021-07-02T18:28:49.000Z | import json
import subprocess
import django
from django.core.management.base import BaseCommand
class Command(BaseCommand):
help = "Generate a json with all Models and URLs of the project."
def handle(self, *args, **options):
models = django.apps.apps.get_models(
include_auto_created=Tru... | 29.535714 | 77 | 0.52237 | 84 | 827 | 5.083333 | 0.678571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003788 | 0.361548 | 827 | 27 | 78 | 30.62963 | 0.804924 | 0 | 0 | 0 | 1 | 0 | 0.133011 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.173913 | 0 | 0.304348 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69de4a9965744e08343fdfdd0234fc8c4c0b0f19 | 738 | py | Python | app.py | spencerpomme/notebook | 456db114d0514068579c37e805e3a62f10c04467 | [
"MIT"
] | null | null | null | app.py | spencerpomme/notebook | 456db114d0514068579c37e805e3a62f10c04467 | [
"MIT"
] | null | null | null | app.py | spencerpomme/notebook | 456db114d0514068579c37e805e3a62f10c04467 | [
"MIT"
] | null | null | null | import os
import sys
import click
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask import redirect, url_for, abort, render_template, flash
from flask_wtf import FlaskForm
from wtforms import SubmitField, TextAreaField
from wtforms.validators import DataRequired
# SQLite URI compatible
WIN = ... | 21.705882 | 114 | 0.743902 | 98 | 738 | 5.367347 | 0.510204 | 0.068441 | 0.057034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139566 | 738 | 33 | 115 | 22.363636 | 0.828346 | 0.028455 | 0 | 0 | 0 | 0 | 0.163636 | 0.074126 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.391304 | 0.043478 | 0.478261 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
69e34c7354196e0b69732b23d69715dbe93fd4ef | 654 | py | Python | lintcode/NineChapters/05/longest-common-subsequence.py | shootsoft/practice | 49f28c2e0240de61d00e4e0291b3c5edd930e345 | [
"Apache-2.0"
] | null | null | null | lintcode/NineChapters/05/longest-common-subsequence.py | shootsoft/practice | 49f28c2e0240de61d00e4e0291b3c5edd930e345 | [
"Apache-2.0"
] | null | null | null | lintcode/NineChapters/05/longest-common-subsequence.py | shootsoft/practice | 49f28c2e0240de61d00e4e0291b3c5edd930e345 | [
"Apache-2.0"
] | null | null | null | __author__ = 'yinjun'
#@see http://www.jiuzhang.com/solutions/longest-common-subsequence/
class Solution:
"""
@param A, B: Two strings.
@return: The length of longest common subsequence of A and B.
"""
def longestCommonSubsequence(self, A, B):
# write your code here
x = len(A)
... | 27.25 | 67 | 0.481651 | 105 | 654 | 2.961905 | 0.419048 | 0.048232 | 0.038585 | 0.07074 | 0.07717 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033254 | 0.356269 | 654 | 24 | 68 | 27.25 | 0.705463 | 0.267584 | 0 | 0 | 0 | 0 | 0.013072 | 0 | 0 | 0 | 0 | 0.041667 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69e593cbc04adaeddfcc98cd646220d32c51fb29 | 4,038 | py | Python | utilities/pyPlotting/writeFiltFields.py | mightylorenzo/Puffin | 6631eb91a5d98d8bc3d40fe9f09b90932f20776a | [
"BSD-3-Clause"
] | 15 | 2017-08-29T10:50:13.000Z | 2022-01-14T07:21:49.000Z | utilities/pyPlotting/writeFiltFields.py | mightylorenzo/Puffin | 6631eb91a5d98d8bc3d40fe9f09b90932f20776a | [
"BSD-3-Clause"
] | 27 | 2017-06-20T09:40:33.000Z | 2021-03-18T22:35:47.000Z | utilities/pyPlotting/writeFiltFields.py | mightylorenzo/Puffin | 6631eb91a5d98d8bc3d40fe9f09b90932f20776a | [
"BSD-3-Clause"
] | 15 | 2017-06-21T21:00:13.000Z | 2022-03-16T02:15:59.000Z | # Copyright (c) 2012-2018, University of Strathclyde
# Authors: Lawrence T. Campbell
# License: BSD-3-Clause
"""
This is an examplar script to produce a plot of the filtered energy.
"""
import sys, glob, os
import numpy as np
import tables
from numpy import arange
from retrieve import readField
from retrieve import f... | 24.925926 | 96 | 0.679792 | 585 | 4,038 | 4.548718 | 0.302564 | 0.05186 | 0.042089 | 0.042089 | 0.24953 | 0.142052 | 0 | 0 | 0 | 0 | 0 | 0.032384 | 0.174096 | 4,038 | 161 | 97 | 25.080745 | 0.765517 | 0.405399 | 0 | 0 | 0 | 0 | 0.04205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.140351 | null | null | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69e5ac1b2082a3e7aca6fce01b0eab544e859891 | 286 | py | Python | fig/python_cmd/prime_count.py | gavinln/mesos-marathon | 9e2cadbabf3470a3ce48312daa25ddf7407be8e2 | [
"Apache-2.0"
] | 2 | 2015-06-29T22:25:42.000Z | 2016-02-15T12:48:10.000Z | fig/python_cmd/prime_count.py | gavinln/mesos-marathon | 9e2cadbabf3470a3ce48312daa25ddf7407be8e2 | [
"Apache-2.0"
] | null | null | null | fig/python_cmd/prime_count.py | gavinln/mesos-marathon | 9e2cadbabf3470a3ce48312daa25ddf7407be8e2 | [
"Apache-2.0"
] | null | null | null | import math
print "Primes up to a million"
pp = 2
ps = [pp]
pp += 1
ps.append(pp)
lim = 1000000
while pp < int(lim):
pp += 2
test = True
sqrtpp = math.sqrt(pp)
for a in ps:
if a > sqrtpp: break
if pp % a == 0:
test = False
break
if test:
ps.append(pp)
print len(ps)
| 12.434783 | 30 | 0.597902 | 54 | 286 | 3.166667 | 0.518519 | 0.035088 | 0.116959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052885 | 0.272727 | 286 | 22 | 31 | 13 | 0.769231 | 0 | 0 | 0.105263 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052632 | null | null | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69e9f98e99d780d381cdb88fc3bb27596f1eaefc | 4,110 | py | Python | mlangokumi_app/models.py | John-Osiko/Mlango10 | cb1eb890d1dc64e73ee0712cb15a913ea07d9f94 | [
"BSD-3-Clause"
] | null | null | null | mlangokumi_app/models.py | John-Osiko/Mlango10 | cb1eb890d1dc64e73ee0712cb15a913ea07d9f94 | [
"BSD-3-Clause"
] | null | null | null | mlangokumi_app/models.py | John-Osiko/Mlango10 | cb1eb890d1dc64e73ee0712cb15a913ea07d9f94 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib.auth.models import User
from django.db import models
from django.db.models.signals import post_save
from django.dispatch import receiver
#from django.core.files.storage import FileSystemStorage
#fs = FileSystemStorage(location='/medi... | 28.344828 | 110 | 0.697567 | 488 | 4,110 | 5.684426 | 0.270492 | 0.048666 | 0.084355 | 0.112473 | 0.467916 | 0.42646 | 0.36049 | 0.250901 | 0.14708 | 0.14708 | 0 | 0.013814 | 0.189781 | 4,110 | 145 | 111 | 28.344828 | 0.819219 | 0.042336 | 0 | 0.383838 | 0 | 0 | 0.066395 | 0.00636 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121212 | false | 0 | 0.050505 | 0.060606 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
69ea50ea85927193ffe01024f8dfebd81e4a1334 | 1,927 | py | Python | datasets/smart_buildings_dataset.py | pganssle-google/madi | 43f8b0c5786aa831707b919febc1bbc1d3b53eea | [
"Apache-2.0"
] | null | null | null | datasets/smart_buildings_dataset.py | pganssle-google/madi | 43f8b0c5786aa831707b919febc1bbc1d3b53eea | [
"Apache-2.0"
] | null | null | null | datasets/smart_buildings_dataset.py | pganssle-google/madi | 43f8b0c5786aa831707b919febc1bbc1d3b53eea | [
"Apache-2.0"
] | null | null | null | # Lint as: python3
# Copyright 2020 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required ... | 34.410714 | 81 | 0.727037 | 258 | 1,927 | 5.286822 | 0.488372 | 0.043988 | 0.019062 | 0.02346 | 0.076246 | 0.076246 | 0.076246 | 0.076246 | 0 | 0 | 0 | 0.019182 | 0.188376 | 1,927 | 55 | 82 | 35.036364 | 0.852941 | 0.38246 | 0 | 0.103448 | 0 | 0 | 0.136364 | 0.104631 | 0 | 0 | 0 | 0 | 0.034483 | 1 | 0.172414 | false | 0 | 0.137931 | 0.103448 | 0.482759 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
69ec399a2022683d937c26c5fa5e8e1cf38da6f1 | 1,164 | py | Python | eeve/importer.py | vMarcelino/eeve | 7dcfa17d34480f5c120ce963680babffff8ab412 | [
"Apache-2.0"
] | 1 | 2019-10-11T18:42:48.000Z | 2019-10-11T18:42:48.000Z | eeve/importer.py | vMarcelino/eeve | 7dcfa17d34480f5c120ce963680babffff8ab412 | [
"Apache-2.0"
] | null | null | null | eeve/importer.py | vMarcelino/eeve | 7dcfa17d34480f5c120ce963680babffff8ab412 | [
"Apache-2.0"
] | 1 | 2019-10-11T18:42:49.000Z | 2019-10-11T18:42:49.000Z | import os
import sys
import importlib
import travel_backpack.exceptions
def import_from_folder(folder):
imported_files = []
folder = os.path.abspath(folder)
if folder not in sys.path:
sys.path.insert(0, folder)
for file_obj in os.listdir(folder):
try:
if file_obj not in ['... | 35.272727 | 81 | 0.597938 | 136 | 1,164 | 4.875 | 0.330882 | 0.105581 | 0.054299 | 0.072398 | 0.393665 | 0.361991 | 0.316742 | 0.316742 | 0.316742 | 0.316742 | 0 | 0.002451 | 0.298969 | 1,164 | 32 | 82 | 36.375 | 0.810049 | 0.034364 | 0 | 0.08 | 0 | 0 | 0.050757 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.44 | 0 | 0.52 | 0.16 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
69ed480a80be8e51ff49b84778113717fe4bb846 | 9,839 | py | Python | RC3D/operator_py/proposal_target_twin.py | likelyzhao/MxNet-RC3D | 06f90ad63f9fc580cb286baab1b847a0ba3abd2d | [
"Apache-2.0"
] | 1 | 2018-12-17T06:34:49.000Z | 2018-12-17T06:34:49.000Z | RC3D/operator_py/proposal_target_twin.py | likelyzhao/MxNet-RC3D | 06f90ad63f9fc580cb286baab1b847a0ba3abd2d | [
"Apache-2.0"
] | 1 | 2018-04-09T09:42:51.000Z | 2018-04-10T02:56:15.000Z | RC3D/operator_py/proposal_target_twin.py | likelyzhao/MxNet-RC3D | 06f90ad63f9fc580cb286baab1b847a0ba3abd2d | [
"Apache-2.0"
] | null | null | null | # --------------------------------------------------------
# Deformable Convolutional Networks
# Copyright (c) 2016 by Contributors
# Copyright (c) 2017 Microsoft
# Licensed under The Apache-2.0 License [see LICENSE for details]
# Modified by Yuwen Xiong
# --------------------------------------------------------
"""
P... | 40.657025 | 137 | 0.67202 | 1,388 | 9,839 | 4.445965 | 0.18804 | 0.029493 | 0.035002 | 0.035002 | 0.371739 | 0.311133 | 0.230919 | 0.209528 | 0.171285 | 0.171285 | 0 | 0.012463 | 0.217095 | 9,839 | 241 | 138 | 40.825726 | 0.788654 | 0.133347 | 0 | 0.16 | 0 | 0 | 0.030291 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0 | null | null | 0 | 0.053333 | null | null | 0.046667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69f223ff950c5a328b28beec407b51b26fda39df | 680 | py | Python | mainapp/management/commands/test-email.py | cyroxx/meine-stadt-transparent | d5a3f03a29a1bb97ce50ac5257d8bbd5208d9218 | [
"MIT"
] | 34 | 2017-10-04T14:20:41.000Z | 2022-03-11T18:06:48.000Z | mainapp/management/commands/test-email.py | cyroxx/meine-stadt-transparent | d5a3f03a29a1bb97ce50ac5257d8bbd5208d9218 | [
"MIT"
] | 588 | 2017-10-14T18:31:17.000Z | 2022-03-16T13:00:30.000Z | mainapp/management/commands/test-email.py | codeformuenster/meine-stadt-transparent | 1458bc6acad40183908e2b7cc98ef92165d1123a | [
"MIT"
] | 11 | 2017-11-27T10:12:59.000Z | 2022-02-09T10:27:11.000Z | from django.core.management.base import BaseCommand
from mainapp.functions.mail import send_mail
from mainapp.models import UserProfile
class Command(BaseCommand):
help = "Sends a test e-mail to check if the mail-system is configured correctly"
def add_arguments(self, parser):
parser.add_argument("t... | 32.380952 | 84 | 0.698529 | 99 | 680 | 4.69697 | 0.545455 | 0.075269 | 0.058065 | 0.051613 | 0.098925 | 0.098925 | 0.098925 | 0 | 0 | 0 | 0 | 0.00365 | 0.194118 | 680 | 20 | 85 | 34 | 0.839416 | 0 | 0 | 0 | 0 | 0 | 0.236765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
69f599d5f41c712f4169c75bd86ac5aebec80d81 | 1,313 | py | Python | kerasncp/utils.py | lihui-colin/keras-ncp | fa98a0eaf7bae58e2ebc9e418f72ebae9be18455 | [
"Apache-2.0"
] | null | null | null | kerasncp/utils.py | lihui-colin/keras-ncp | fa98a0eaf7bae58e2ebc9e418f72ebae9be18455 | [
"Apache-2.0"
] | null | null | null | kerasncp/utils.py | lihui-colin/keras-ncp | fa98a0eaf7bae58e2ebc9e418f72ebae9be18455 | [
"Apache-2.0"
] | 1 | 2021-02-06T14:21:51.000Z | 2021-02-06T14:21:51.000Z | # Copyright 2020 Mathias Lechner
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | 34.552632 | 78 | 0.677075 | 183 | 1,313 | 4.803279 | 0.551913 | 0.068259 | 0.029579 | 0.036405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014028 | 0.239909 | 1,313 | 37 | 79 | 35.486486 | 0.866733 | 0.421173 | 0 | 0 | 0 | 0 | 0.485906 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | true | 0 | 0.210526 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69f7be54e60a3a78524b7f4b6082bd6cea0571d4 | 351 | py | Python | experiments/preprocessing.py | CCWI/corpus-gtcs6k | a4c0d161566a0ea612f5a66c40b398372316ec9c | [
"MIT"
] | null | null | null | experiments/preprocessing.py | CCWI/corpus-gtcs6k | a4c0d161566a0ea612f5a66c40b398372316ec9c | [
"MIT"
] | 7 | 2020-01-28T23:06:25.000Z | 2022-02-10T00:28:56.000Z | experiments/preprocessing.py | CCWI/corpus-gtcs6k | a4c0d161566a0ea612f5a66c40b398372316ec9c | [
"MIT"
] | null | null | null | import string
from nltk.tokenize.casual import TweetTokenizer
def tokenize(text):
tweet_tokenizer = TweetTokenizer()
# 1. Tokenize
text = tweet_tokenizer.tokenize(text)
# 2. Cleaning
# Punctuation
text = [t for t in text if t not in string.punctuation]
# Normalisieren
text = [t.lower() ... | 25.071429 | 59 | 0.68661 | 46 | 351 | 5.195652 | 0.5 | 0.150628 | 0.142259 | 0.217573 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007435 | 0.233618 | 351 | 13 | 60 | 27 | 0.881041 | 0.139601 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69f8b5d6688f2f1a76a21a8fc4d066c25126bf37 | 262 | py | Python | clippy_runner.py | M0n0xy2/ELang | 33ddbe100314d22389fb6dbac948e8f0d6c11a85 | [
"MIT"
] | 1 | 2016-06-17T10:20:28.000Z | 2016-06-17T10:20:28.000Z | clippy_runner.py | M0n0xy2/elang | 33ddbe100314d22389fb6dbac948e8f0d6c11a85 | [
"MIT"
] | null | null | null | clippy_runner.py | M0n0xy2/elang | 33ddbe100314d22389fb6dbac948e8f0d6c11a85 | [
"MIT"
] | null | null | null | import subprocess
proc = subprocess.Popen(["cargo", "clippy"], stderr=subprocess.PIPE)
output = proc.stderr.read().decode("utf-8")
groups = [group for group in output.split("\n\n") if "parser.rs" not in group]
print("\n-----------------\n".join(groups[:20]))
| 29.111111 | 78 | 0.645038 | 38 | 262 | 4.447368 | 0.684211 | 0.023669 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012712 | 0.099237 | 262 | 8 | 79 | 32.75 | 0.70339 | 0 | 0 | 0 | 0 | 0 | 0.19084 | 0.080153 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
69fe5d1a77ac6b6540a4b5bf97bd67c442805493 | 1,724 | py | Python | src/opserver/plugins/alarm_disk_usage/main.py | biswajit-mandal/contrail-controller | 80c4a7e8515f7296b18ba4c21a439bd3daefcc4a | [
"Apache-2.0"
] | 3 | 2019-01-11T06:16:40.000Z | 2021-02-24T23:48:21.000Z | src/opserver/plugins/alarm_disk_usage/main.py | biswajit-mandal/contrail-controller | 80c4a7e8515f7296b18ba4c21a439bd3daefcc4a | [
"Apache-2.0"
] | null | null | null | src/opserver/plugins/alarm_disk_usage/main.py | biswajit-mandal/contrail-controller | 80c4a7e8515f7296b18ba4c21a439bd3daefcc4a | [
"Apache-2.0"
] | 2 | 2019-02-06T12:52:00.000Z | 2019-04-11T23:19:28.000Z | from opserver.plugins.alarm_base import *
from opserver.sandesh.alarmgen_ctrl.sandesh_alarm_base.ttypes import *
import json
class DiskUsage(AlarmBase):
"""Disk Usage crosses a threshold.
NodeMgr reports disk usage in DatabaseUsageInfo.database_usage"""
def __init__(self):
AlarmBase.__init__(se... | 40.093023 | 94 | 0.607309 | 192 | 1,724 | 5.041667 | 0.34375 | 0.065083 | 0.072314 | 0.055785 | 0.205579 | 0.092975 | 0.092975 | 0 | 0 | 0 | 0 | 0.010943 | 0.310905 | 1,724 | 42 | 95 | 41.047619 | 0.803872 | 0 | 0 | 0.085714 | 0 | 0 | 0.141708 | 0.080446 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.085714 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0e012597a54dd55891236b2203a2f12870bb0353 | 1,335 | py | Python | comments/encoder.py | onerbs/treux | 3ec3a80a49de2860efcc0b1806e9063975c35023 | [
"MIT"
] | null | null | null | comments/encoder.py | onerbs/treux | 3ec3a80a49de2860efcc0b1806e9063975c35023 | [
"MIT"
] | null | null | null | comments/encoder.py | onerbs/treux | 3ec3a80a49de2860efcc0b1806e9063975c35023 | [
"MIT"
] | null | null | null | from base64 import b64encode as _e, b64decode as _d
def encode(text: str, timestamp: float) -> str:
"""Encode comment into base64 string.
:param text: The text of the comment.
:param timestamp: The timestamp of the comment.
:return: The base64-encoded comment.
"""
return '%s:%s' % (_encode(text), _encode(time... | 23.839286 | 73 | 0.707865 | 183 | 1,335 | 5.098361 | 0.224044 | 0.069668 | 0.068596 | 0.064309 | 0.163987 | 0.07717 | 0.07717 | 0 | 0 | 0 | 0 | 0.020572 | 0.162547 | 1,335 | 55 | 74 | 24.272727 | 0.813953 | 0.432959 | 0 | 0 | 0 | 0 | 0.011127 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.055556 | 0.055556 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0e08d1ad5207e092ccdadc1c279260953bf0ba93 | 3,129 | py | Python | grive/tree.py | hoangnv-bkhn/grive | 64ef3388697578656e0baefb4acef1ed5ac65135 | [
"MIT"
] | null | null | null | grive/tree.py | hoangnv-bkhn/grive | 64ef3388697578656e0baefb4acef1ed5ac65135 | [
"MIT"
] | null | null | null | grive/tree.py | hoangnv-bkhn/grive | 64ef3388697578656e0baefb4acef1ed5ac65135 | [
"MIT"
] | null | null | null | class Node:
def __init__(self, key):
self.key = key
self.child = []
def newNode(key):
temp = Node(key)
return temp
def LevelOrderTraversal(root):
if (root == None):
return;
# Standard level order traversal code
# using queue
q = [] # Create a queue
q.append(... | 26.075 | 118 | 0.466283 | 416 | 3,129 | 3.466346 | 0.182692 | 0.058252 | 0.031207 | 0.036061 | 0.660888 | 0.620666 | 0.615118 | 0.615118 | 0.615118 | 0.615118 | 0 | 0.011815 | 0.404922 | 3,129 | 119 | 119 | 26.294118 | 0.762621 | 0.196548 | 0 | 0.691358 | 0 | 0 | 0.029743 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0 | 0 | 0.185185 | 0.049383 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0e0951ccabc4ddcaf0c7d2c397222d27c3875318 | 1,046 | py | Python | nonebot/adapters/telegram/config.py | ColdThunder11/nonebot-adapter-telegram | 652d803dea0cc683e540bf96052725d7e2dc8c8d | [
"MIT"
] | 8 | 2021-07-25T14:08:09.000Z | 2022-02-20T07:03:27.000Z | nonebot/adapters/telegram/config.py | ColdThunder11/nonebot-adapter-telegram | 652d803dea0cc683e540bf96052725d7e2dc8c8d | [
"MIT"
] | null | null | null | nonebot/adapters/telegram/config.py | ColdThunder11/nonebot-adapter-telegram | 652d803dea0cc683e540bf96052725d7e2dc8c8d | [
"MIT"
] | null | null | null | from nonebot import adapters
from typing import Optional
from pydantic import Field, BaseModel
class Config(BaseModel):
"""
telegram配置类
:配置项:
- ``webhook_host`` / ``telegram_webhook_host``: webhook的host
- ``bot_token`` / ``telegram_bot_token``: bot_token
- ``telegram_command_only`` / ... | 38.740741 | 125 | 0.726577 | 125 | 1,046 | 5.744 | 0.36 | 0.107242 | 0.10585 | 0.087744 | 0.345404 | 0.302228 | 0.228412 | 0 | 0 | 0 | 0 | 0 | 0.15392 | 1,046 | 26 | 126 | 40.230769 | 0.811299 | 0.294455 | 0 | 0 | 0 | 0 | 0.193732 | 0.125356 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0e099d4d8ee80683de5c44f074f6aa5b3d0917e5 | 529 | py | Python | tests/nearestPointInterpolation.py | MarkTravers/magLabUtilities | e116c8cb627cd82c3b8ba651dd6979b66e568632 | [
"MIT"
] | null | null | null | tests/nearestPointInterpolation.py | MarkTravers/magLabUtilities | e116c8cb627cd82c3b8ba651dd6979b66e568632 | [
"MIT"
] | null | null | null | tests/nearestPointInterpolation.py | MarkTravers/magLabUtilities | e116c8cb627cd82c3b8ba651dd6979b66e568632 | [
"MIT"
] | null | null | null | #!python3
import numpy as np
from magLabUtilities.signalutilities.signals import SignalThread, Signal
from magLabUtilities.signalutilities.canonical1d import Parabola
if __name__=='__main__':
parabolaGen = Parabola(tMaxDx=4.0, tVertex=0.0, xMaxDx=16.0, xVertex=0.0, power=2.0)
parabola = parabolaGen.ev... | 35.266667 | 89 | 0.729679 | 67 | 529 | 5.641791 | 0.552239 | 0.021164 | 0.179894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05298 | 0.143667 | 529 | 15 | 90 | 35.266667 | 0.781457 | 0.015123 | 0 | 0 | 0 | 0 | 0.047337 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0e14ba34fd53eb49ef662de129ffb31150045c7d | 1,159 | py | Python | lesson06/lesson06_hard_1.py | Liar-Ziro/Python.Basics_of_language | c5f9c0f7e0681df57653014038316b8b837a3ee4 | [
"MIT"
] | null | null | null | lesson06/lesson06_hard_1.py | Liar-Ziro/Python.Basics_of_language | c5f9c0f7e0681df57653014038316b8b837a3ee4 | [
"MIT"
] | 1 | 2019-04-08T13:53:27.000Z | 2019-04-08T13:54:34.000Z | lesson06/lesson06_hard_1.py | Liar-Ziro/Python.Basics_of_language | c5f9c0f7e0681df57653014038316b8b837a3ee4 | [
"MIT"
] | 2 | 2021-05-09T09:40:42.000Z | 2022-01-06T01:49:19.000Z | '''Задача - 1
Вам необходимо создать завод по производству мягких игрушек для детей. Вам надо
продумать структуру классов, чтобы у вас был класс, который создаёт игрушки на
основании: Названия, Цвета, Типа (животное, персонаж мультфильма) Опишите
процедуры создания игрушки в трёх методах: -- Закупка сырья, пошив, окрас... | 32.194444 | 79 | 0.685073 | 150 | 1,159 | 5.146667 | 0.56 | 0.072539 | 0.054404 | 0.03886 | 0.11399 | 0.07513 | 0.07513 | 0 | 0 | 0 | 0 | 0.008811 | 0.216566 | 1,159 | 35 | 80 | 33.114286 | 0.84141 | 0.40811 | 0 | 0.1 | 0 | 0 | 0.164706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.35 | 0.15 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
384dc8ddb738c7e90831a54434df6687f57a4428 | 368 | py | Python | my_ip/migrations/0005_rename_image_project_project_image.py | OscarMugendi/Django-week3-IP | cae3770ebd5f3b4ffa75378869215fac06573c57 | [
"MIT"
] | null | null | null | my_ip/migrations/0005_rename_image_project_project_image.py | OscarMugendi/Django-week3-IP | cae3770ebd5f3b4ffa75378869215fac06573c57 | [
"MIT"
] | null | null | null | my_ip/migrations/0005_rename_image_project_project_image.py | OscarMugendi/Django-week3-IP | cae3770ebd5f3b4ffa75378869215fac06573c57 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-09-20 13:31
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('my_ip', '0004_alter_rating_table'),
]
operations = [
migrations.RenameField(
model_name='project',
old_name='image',
... | 19.368421 | 47 | 0.589674 | 41 | 368 | 5.097561 | 0.804878 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073643 | 0.298913 | 368 | 18 | 48 | 20.444444 | 0.736434 | 0.122283 | 0 | 0 | 1 | 0 | 0.165109 | 0.071651 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3854c5f232259486a5f0cf83b5d24755d4f3d10c | 951 | py | Python | app/push.py | erts/APNSClient | 1d05d504c9cb770b33812347a9b6fe2665d545ce | [
"MIT"
] | null | null | null | app/push.py | erts/APNSClient | 1d05d504c9cb770b33812347a9b6fe2665d545ce | [
"MIT"
] | null | null | null | app/push.py | erts/APNSClient | 1d05d504c9cb770b33812347a9b6fe2665d545ce | [
"MIT"
] | null | null | null | # push.py
#
# simple script for sending a test push notification message to device over APNs
# https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CreatingtheNotificationPayload.html#//apple_ref/doc/uid/TP40008194-CH10-SW1
import apns2
DEVICE_TOKEN = ""
... | 39.625 | 187 | 0.73817 | 119 | 951 | 5.806723 | 0.596639 | 0.079595 | 0.040521 | 0.063676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025735 | 0.141956 | 951 | 24 | 188 | 39.625 | 0.821078 | 0.286015 | 0 | 0 | 0 | 0 | 0.124601 | 0.036741 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
38576b73561f9ca9fcc7a5bca02730ccb546d759 | 10,827 | py | Python | supersqlite/idxchk.py | plasticity-admin/supersqlite | d74da749c6fa5df021df3968b854b9a59f829e17 | [
"MIT"
] | 687 | 2018-11-22T13:06:32.000Z | 2022-03-22T10:54:49.000Z | supersqlite/idxchk.py | plasticity-admin/supersqlite | d74da749c6fa5df021df3968b854b9a59f829e17 | [
"MIT"
] | 7 | 2019-08-23T22:59:32.000Z | 2021-11-10T16:56:38.000Z | supersqlite/idxchk.py | plasticity-admin/supersqlite | d74da749c6fa5df021df3968b854b9a59f829e17 | [
"MIT"
] | 28 | 2019-08-23T17:22:31.000Z | 2022-02-21T13:13:42.000Z | #!/usr/bin/python
'''idxchk.py - pretty print indexes used in a query
Ported to Python by Tom Lynn (tom-fdyvgr@fish.cx).
Requires pysqlite2, sqlite3 (comes with Python 2.5+) or apsw.
Version 1.01 2008-03-07 Fix to list index method name thanks to Michel Lemay.
Added sqlite3 support.
Version ... | 28.342932 | 79 | 0.524614 | 1,295 | 10,827 | 4.357529 | 0.241699 | 0.019493 | 0.014886 | 0.009924 | 0.295942 | 0.277512 | 0.268297 | 0.268297 | 0.251285 | 0.251285 | 0 | 0.016044 | 0.332225 | 10,827 | 381 | 80 | 28.417323 | 0.764454 | 0.140574 | 0 | 0.414449 | 0 | 0 | 0.1993 | 0.044239 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003802 | 0.022814 | null | null | 0.186312 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3857d05e4b4524dba749c60ab36b822945d1f7fd | 17,518 | py | Python | microdrop/plugin_manager.py | cfobel/microdrop | 721f2c9c040406bb3c70a9928923aad10a725b96 | [
"BSD-3-Clause"
] | 17 | 2018-03-19T18:57:16.000Z | 2021-10-06T02:55:42.000Z | microdrop/plugin_manager.py | cfobel/microdrop | 721f2c9c040406bb3c70a9928923aad10a725b96 | [
"BSD-3-Clause"
] | 243 | 2016-08-09T13:52:30.000Z | 2017-11-24T05:13:54.000Z | microdrop/plugin_manager.py | cfobel/microdrop | 721f2c9c040406bb3c70a9928923aad10a725b96 | [
"BSD-3-Clause"
] | 5 | 2019-01-09T19:47:11.000Z | 2022-03-19T09:03:48.000Z | from StringIO import StringIO
from collections import namedtuple
from contextlib import closing
import logging
import pprint
import sys
import traceback
from pyutilib.component.core import ExtensionPoint, PluginGlobals
# TODO Update plugins to import from `pyutilib.component.core` directly
# instead of importing from ... | 32.561338 | 349 | 0.613312 | 1,958 | 17,518 | 5.35904 | 0.175689 | 0.00324 | 0.024016 | 0.013723 | 0.316306 | 0.283046 | 0.254837 | 0.229296 | 0.211474 | 0.182503 | 0 | 0.001815 | 0.276516 | 17,518 | 537 | 350 | 32.621974 | 0.826101 | 0.050348 | 0 | 0.2 | 0 | 0 | 0.111945 | 0.005702 | 0 | 0 | 0 | 0.001862 | 0.004444 | 0 | null | null | 0 | 0.137778 | null | null | 0.017778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3858872ce70ca1dd9835202129519fa08b2ca419 | 3,104 | py | Python | code/2_process_hearings/2_4_group_speeches.py | ianpcook/info_transmission | f0533f7643f5d29fc31932d9f59fd46cbc1a333b | [
"CC0-1.0"
] | null | null | null | code/2_process_hearings/2_4_group_speeches.py | ianpcook/info_transmission | f0533f7643f5d29fc31932d9f59fd46cbc1a333b | [
"CC0-1.0"
] | null | null | null | code/2_process_hearings/2_4_group_speeches.py | ianpcook/info_transmission | f0533f7643f5d29fc31932d9f59fd46cbc1a333b | [
"CC0-1.0"
] | null | null | null | import collections
import csv
import os
import re
def read_data(src='./data/hearing_metadata_2.csv'):
reader = csv.DictReader(file(src, 'rU'))
for row in reader:
yield [row[key] for key in ('filename',)]
class SpeakerCounter(object):
def __init__(self, debug=False):
self.debug = debug
... | 33.73913 | 141 | 0.576997 | 363 | 3,104 | 4.807163 | 0.349862 | 0.031519 | 0.051576 | 0.025215 | 0.060745 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001344 | 0.280928 | 3,104 | 91 | 142 | 34.10989 | 0.780466 | 0.027706 | 0 | 0.121622 | 0 | 0.013514 | 0.145654 | 0.075315 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.067568 | null | null | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
385aac0d149de6ad8ec020341cd2e6cdcc73598e | 323 | py | Python | setup.py | rbshaffer/Constitute_Tools | a8f36befab3420fa4f057d0d1e0a336cff653297 | [
"MIT"
] | 1 | 2017-06-05T16:32:52.000Z | 2017-06-05T16:32:52.000Z | setup.py | rbshaffer/Constitute_Tools | a8f36befab3420fa4f057d0d1e0a336cff653297 | [
"MIT"
] | null | null | null | setup.py | rbshaffer/Constitute_Tools | a8f36befab3420fa4f057d0d1e0a336cff653297 | [
"MIT"
] | 1 | 2016-07-21T03:24:42.000Z | 2016-07-21T03:24:42.000Z | from distutils.core import setup
setup(
name='constitute_tools',
version='2.0',
packages=['constitute_tools'],
url='https://www.constituteproject.org/',
license='MIT',
author='Robert Shaffer',
author_email='rbshaffer@utexas.edu',
description='Auxiliary tools for the Constitute backend.'... | 24.846154 | 61 | 0.693498 | 37 | 323 | 5.972973 | 0.837838 | 0.135747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007407 | 0.164087 | 323 | 12 | 62 | 26.916667 | 0.811111 | 0 | 0 | 0 | 0 | 0 | 0.4613 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3865bab80352b5d8af3066d88f9dc247ba8d62ba | 445 | py | Python | __app__/ping/ping.py | rivoric/websitemon | b26c9f411df0c8715105cec8d47bcd8663c24606 | [
"Unlicense"
] | 1 | 2021-07-16T06:06:39.000Z | 2021-07-16T06:06:39.000Z | __app__/ping/ping.py | rivoric/websitemon | b26c9f411df0c8715105cec8d47bcd8663c24606 | [
"Unlicense"
] | null | null | null | __app__/ping/ping.py | rivoric/websitemon | b26c9f411df0c8715105cec8d47bcd8663c24606 | [
"Unlicense"
] | 2 | 2020-05-22T08:38:36.000Z | 2020-12-02T20:59:09.000Z | import logging
import requests
import json
import azure.functions as func
def main(req: func.HttpRequest, config: str) -> func.HttpResponse:
configuration = json.loads(config)
response = requests.get(configuration["websiteUrl"])
logging.info("%s -> %s" % (response.url, response.reason))
return... | 31.785714 | 67 | 0.674157 | 51 | 445 | 5.843137 | 0.529412 | 0.107383 | 0.067114 | 0.087248 | 0.181208 | 0.181208 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 445 | 13 | 68 | 34.230769 | 0.837079 | 0 | 0 | 0 | 0 | 0 | 0.060185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
386773cd910c682f1e35de9a39c72352a1a87336 | 257 | py | Python | zinnia/urls/comments.py | Boondockers-Welcome/django-blog-zinnia | 34aa1e7304f6686c61da81fbd93d082e5cd3144b | [
"BSD-3-Clause"
] | 1,522 | 2015-01-02T05:54:02.000Z | 2022-03-31T04:13:14.000Z | zinnia/urls/comments.py | Boondockers-Welcome/django-blog-zinnia | 34aa1e7304f6686c61da81fbd93d082e5cd3144b | [
"BSD-3-Clause"
] | 205 | 2015-01-02T19:29:37.000Z | 2022-03-11T23:19:49.000Z | zinnia/urls/comments.py | Boondockers-Welcome/django-blog-zinnia | 34aa1e7304f6686c61da81fbd93d082e5cd3144b | [
"BSD-3-Clause"
] | 632 | 2015-01-02T05:54:02.000Z | 2022-03-25T17:07:32.000Z | """Urls for the Zinnia comments"""
from django.conf.urls import url
from zinnia.urls import _
from zinnia.views.comments import CommentSuccess
urlpatterns = [
url(_(r'^success/$'),
CommentSuccess.as_view(),
name='comment_success'),
]
| 19.769231 | 48 | 0.692607 | 31 | 257 | 5.612903 | 0.612903 | 0.114943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182879 | 257 | 12 | 49 | 21.416667 | 0.828571 | 0.108949 | 0 | 0 | 0 | 0 | 0.112108 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
386a57b0bf5449b08ac9e88c2efb3b3f08744173 | 658 | py | Python | administrator/views.py | babygame0ver/kisanmill | 55a0cfc35ae31851b62fed5766b27cb5c931f1f2 | [
"MIT"
] | null | null | null | administrator/views.py | babygame0ver/kisanmill | 55a0cfc35ae31851b62fed5766b27cb5c931f1f2 | [
"MIT"
] | 4 | 2019-12-29T08:44:42.000Z | 2020-06-06T00:24:24.000Z | administrator/views.py | babygame0ver/kisanmill | 55a0cfc35ae31851b62fed5766b27cb5c931f1f2 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from ufs.models import Message
from customercorner.models import Product
from django.views.generic import DetailView, ListView , CreateView , DeleteView , TemplateView
class MessageListView(ListView):
model = Message
template_name = 'administrator/complaints.html'
contex... | 31.333333 | 94 | 0.776596 | 72 | 658 | 6.972222 | 0.583333 | 0.039841 | 0.079681 | 0.095618 | 0.14741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147416 | 658 | 20 | 95 | 32.9 | 0.894831 | 0 | 0 | 0.125 | 0 | 0 | 0.177812 | 0.141337 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0.125 | 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 | 0 | 0 | 0 | 1 |
386b39abfb2ac6509459aedb7c5d633c37ccc642 | 2,221 | py | Python | stwno_canteen/csv_converters.py | somsky/stwno_canteen | a330882b88731c7d8ccfca281bf88d934bc0c43d | [
"MIT"
] | null | null | null | stwno_canteen/csv_converters.py | somsky/stwno_canteen | a330882b88731c7d8ccfca281bf88d934bc0c43d | [
"MIT"
] | null | null | null | stwno_canteen/csv_converters.py | somsky/stwno_canteen | a330882b88731c7d8ccfca281bf88d934bc0c43d | [
"MIT"
] | null | null | null | import datetime
from .stwno_constants import CSV_MEAL_TYPE_MAP,\
CSV_NUTRITION_TYPE_MAP,\
NutritionType,\
CSV_DATE_FORMAT,\
MealType,\
NutritionType,\
STWNO_INGREDIENTS,\
STWNO_ALLERGENS
class NoValidDateStringException(Exception):
pass
class UnknownMealTypeException(Exception):
... | 26.129412 | 97 | 0.69023 | 213 | 2,221 | 7.079812 | 0.375587 | 0.018568 | 0.047745 | 0.018568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001156 | 0.221072 | 2,221 | 84 | 98 | 26.440476 | 0.87052 | 0 | 0 | 0.145161 | 0 | 0 | 0.05045 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0.064516 | 0.032258 | 0 | 0.354839 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
386e9d4649d7091c57006dab86b7553d9d7a62c9 | 518 | py | Python | setup.py | jaj42/infupy | 5a8eda58bbeab3e0de6326dce7d206c29db85d72 | [
"ISC"
] | null | null | null | setup.py | jaj42/infupy | 5a8eda58bbeab3e0de6326dce7d206c29db85d72 | [
"ISC"
] | null | null | null | setup.py | jaj42/infupy | 5a8eda58bbeab3e0de6326dce7d206c29db85d72 | [
"ISC"
] | null | null | null | from setuptools import setup
setup(name = 'infupy',
version = '2022.1.11',
description = 'Syringe pump infusion',
url = 'https://github.com/jaj42/infupy',
author = 'Jona Joachim',
author_email = 'jona@joachim.cc',
license = 'ISC',
packages ... | 25.9 | 65 | 0.494208 | 46 | 518 | 5.521739 | 0.804348 | 0.086614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027356 | 0.364865 | 518 | 19 | 66 | 27.263158 | 0.744681 | 0 | 0 | 0 | 0 | 0 | 0.312741 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.055556 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3870390140df52b304c9ff8856e286eabb454216 | 517 | py | Python | 0x11-python-network_1/0-hbtn_status.py | ricardo1470/holbertonschool-higher_level_programming | aab73c8efee665b0215958ee7b338871f13634bc | [
"CNRI-Python"
] | null | null | null | 0x11-python-network_1/0-hbtn_status.py | ricardo1470/holbertonschool-higher_level_programming | aab73c8efee665b0215958ee7b338871f13634bc | [
"CNRI-Python"
] | null | null | null | 0x11-python-network_1/0-hbtn_status.py | ricardo1470/holbertonschool-higher_level_programming | aab73c8efee665b0215958ee7b338871f13634bc | [
"CNRI-Python"
] | null | null | null | #!/usr/bin/python3
""" script that fetches https://intranet.hbtn.io/status
-You must use the package urllib
-You must use a with statement """
import urllib.request
if __name__ == '__main__':
url = 'https://intranet.hbtn.io/status'
with urllib.request.urlopen(url) as response:
req_pag = respon... | 32.3125 | 65 | 0.649903 | 72 | 517 | 4.5 | 0.583333 | 0.074074 | 0.104938 | 0.117284 | 0.154321 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007009 | 0.172147 | 517 | 15 | 66 | 34.466667 | 0.75 | 0.259188 | 0 | 0 | 0 | 0 | 0.285326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
3872f64391460d5939a9be87f7c946d907584969 | 966 | py | Python | showcase1/com/aaron/sysexample.py | qsunny/python | ace8c3178a9a9619de2b60ca242c2079dd2f825e | [
"MIT"
] | null | null | null | showcase1/com/aaron/sysexample.py | qsunny/python | ace8c3178a9a9619de2b60ca242c2079dd2f825e | [
"MIT"
] | 2 | 2021-03-25T22:00:07.000Z | 2022-01-20T15:51:48.000Z | showcase1/com/aaron/sysexample.py | qsunny/python | ace8c3178a9a9619de2b60ca242c2079dd2f825e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#from sys import argv,path,modules,exec_prefix
from sys import *
def printCommandParam():
"""打印命令行参数"""
print(type(argv))
for commandParam in argv:
print(commandParam)
def printModuleSearchPath():
"""打印模块搜索路径"""
print(type(path))
for subpath in path:
pri... | 16.655172 | 46 | 0.653209 | 93 | 966 | 6.591398 | 0.483871 | 0.022839 | 0.042414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002667 | 0.223602 | 966 | 57 | 47 | 16.947368 | 0.814667 | 0.172878 | 0 | 0 | 0 | 0 | 0.019659 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.033333 | 0 | 0.2 | 0.8 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
3875faf760f7a6a7ecb23ff361bbb8a1ba3c5243 | 7,933 | py | Python | tests/test_client.py | pryds/dataserv-client | 58540c25308d5745d0271150ac309100a5ac37c6 | [
"MIT"
] | 1 | 2020-10-02T13:49:27.000Z | 2020-10-02T13:49:27.000Z | tests/test_client.py | pryds/dataserv-client | 58540c25308d5745d0271150ac309100a5ac37c6 | [
"MIT"
] | null | null | null | tests/test_client.py | pryds/dataserv-client | 58540c25308d5745d0271150ac309100a5ac37c6 | [
"MIT"
] | 1 | 2021-06-11T09:41:23.000Z | 2021-06-11T09:41:23.000Z | import unittest
import datetime
import time
from dataserv_client import common
from dataserv_client import cli
from dataserv_client import api
from dataserv_client import exceptions
url = "http://127.0.0.1:5000"
address_alpha = "12guBkWfVjiqBnu5yRdTseBB7wBM5WSWnm"
address_beta = "1BZR9GHs9a1bBfh6cwnDtvq6GEvNwVWxFa"
... | 33.054167 | 79 | 0.657759 | 749 | 7,933 | 6.809079 | 0.200267 | 0.032941 | 0.047059 | 0.043137 | 0.532549 | 0.438039 | 0.340392 | 0.278431 | 0.221176 | 0.203137 | 0 | 0.030408 | 0.237237 | 7,933 | 239 | 80 | 33.192469 | 0.812428 | 0.017018 | 0 | 0.423077 | 0 | 0 | 0.14559 | 0.104506 | 0 | 0 | 0 | 0.004184 | 0.159341 | 1 | 0.225275 | false | 0 | 0.038462 | 0 | 0.313187 | 0.010989 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3878ce8e36d8c763ad5edaed914581861c5bb0cf | 3,464 | py | Python | music_dl.py | tylors1/musicDownloader | fd36fceb594ee392cae4da8b51a092e77420c274 | [
"Unlicense",
"MIT"
] | null | null | null | music_dl.py | tylors1/musicDownloader | fd36fceb594ee392cae4da8b51a092e77420c274 | [
"Unlicense",
"MIT"
] | null | null | null | music_dl.py | tylors1/musicDownloader | fd36fceb594ee392cae4da8b51a092e77420c274 | [
"Unlicense",
"MIT"
] | null | null | null | import sys
import spotipy
from spotipy.oauth2 import SpotifyClientCredentials
import spotipy.util as util
import codecs
import help_us
import get_spotify
import get_wikipedia
import fix_tags
import get_youtube
# client_credentials_manager = SpotifyClientCredentials(client_id='60e52fd7ef4849568a7c057416d33554', client... | 39.816092 | 205 | 0.762413 | 524 | 3,464 | 4.719466 | 0.232824 | 0.058229 | 0.116458 | 0.061464 | 0.371613 | 0.327942 | 0.291549 | 0.251112 | 0.251112 | 0.251112 | 0 | 0.016728 | 0.137125 | 3,464 | 87 | 206 | 39.816092 | 0.810639 | 0.081697 | 0 | 0.123288 | 0 | 0 | 0.114295 | 0.013854 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.136986 | null | null | 0.178082 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
38794f7ec12a0fdb5c41daf46a3bd5aa95adf6c1 | 5,497 | py | Python | test_evocraft_py/minecraft_pb2_grpc.py | shyamsn97/test-evocraft-py | 8600da93265f5240a502f6c68f05aa21cd5499fa | [
"MIT"
] | 1 | 2021-08-25T08:40:46.000Z | 2021-08-25T08:40:46.000Z | test_evocraft_py/minecraft_pb2_grpc.py | shyamsn97/test-evocraft-py | 8600da93265f5240a502f6c68f05aa21cd5499fa | [
"MIT"
] | null | null | null | test_evocraft_py/minecraft_pb2_grpc.py | shyamsn97/test-evocraft-py | 8600da93265f5240a502f6c68f05aa21cd5499fa | [
"MIT"
] | 1 | 2021-08-25T08:40:48.000Z | 2021-08-25T08:40:48.000Z | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
import test_evocraft_py.minecraft_pb2 as minecraft__pb2
class MinecraftServiceStub(... | 38.440559 | 110 | 0.646716 | 521 | 5,497 | 6.533589 | 0.207294 | 0.049354 | 0.034959 | 0.041128 | 0.663925 | 0.600176 | 0.576087 | 0.542597 | 0.502938 | 0.502938 | 0 | 0.005504 | 0.272876 | 5,497 | 142 | 111 | 38.711268 | 0.846135 | 0.07404 | 0 | 0.524272 | 1 | 0 | 0.091073 | 0.058046 | 0 | 0 | 0 | 0 | 0 | 1 | 0.07767 | false | 0 | 0.029126 | 0.029126 | 0.165049 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
387bdd068018ee217bdda1960dc951094d7a1c5f | 525 | py | Python | Curso em Video/ex020.py | CamilliCerutti/Exercicios-de-Python-curso-em-video | 6571a5c5cb7b4398352a7778c55588c0c16f13c2 | [
"MIT"
] | null | null | null | Curso em Video/ex020.py | CamilliCerutti/Exercicios-de-Python-curso-em-video | 6571a5c5cb7b4398352a7778c55588c0c16f13c2 | [
"MIT"
] | null | null | null | Curso em Video/ex020.py | CamilliCerutti/Exercicios-de-Python-curso-em-video | 6571a5c5cb7b4398352a7778c55588c0c16f13c2 | [
"MIT"
] | null | null | null | # SORTEANDO UMA ORDEM NA LISTA
# O mesmo professor do ex 19 quer sortear a ordem de apresentação de trabalhos dos alunos. Faça um programa que leia o nome dos quatro alunos e mostre a ordem sorteada.
from random import sample, choice
a1 = input('Digite o nome do primeiro aluno: ')
a2 = input('Digite o nome do segund... | 37.5 | 168 | 0.72381 | 91 | 525 | 4.175824 | 0.56044 | 0.065789 | 0.126316 | 0.168421 | 0.189474 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025701 | 0.184762 | 525 | 13 | 169 | 40.384615 | 0.86215 | 0.373333 | 0 | 0 | 0 | 0 | 0.582822 | 0.092025 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
387e4a81052cce3ef6700ebd664eca6a59cad08d | 4,196 | py | Python | colorize.py | sergekatzmann/batch_colorize | e84e6cd6d54250037eb564e18203f3e7312da57a | [
"BSD-2-Clause",
"MIT"
] | 2 | 2016-09-18T15:00:58.000Z | 2017-07-31T15:26:15.000Z | colorize.py | sergekatzmann/batch_colorize | e84e6cd6d54250037eb564e18203f3e7312da57a | [
"BSD-2-Clause",
"MIT"
] | null | null | null | colorize.py | sergekatzmann/batch_colorize | e84e6cd6d54250037eb564e18203f3e7312da57a | [
"BSD-2-Clause",
"MIT"
] | null | null | null | #!/usr/bin/python
import os
os.environ['GLOG_minloglevel'] = '2'
import time
import numpy as np
import caffe
import skimage.color as color
import scipy
import scipy.ndimage.interpolation as sni
from os import listdir
from os.path import isfile, join
import sys, getopt
class bcolors:
HEADER = '\033[95m'
OKBLU... | 29.138889 | 117 | 0.614871 | 570 | 4,196 | 4.410526 | 0.342105 | 0.019491 | 0.011138 | 0.004773 | 0.093079 | 0.053699 | 0.025457 | 0 | 0 | 0 | 0 | 0.025332 | 0.247378 | 4,196 | 143 | 118 | 29.342657 | 0.770741 | 0.117731 | 0 | 0.116505 | 0 | 0 | 0.130801 | 0.017639 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.097087 | null | null | 0.15534 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3888b1d564c2c555f41fea45f2ca15d77c25d97d | 2,021 | py | Python | catkin_ws/src/vehicle_follow/scripts/following_node.py | championway/DuckietownPi2 | ab80ec901ab50337b5f20c9652bc7b8503e2a348 | [
"CC-BY-2.0"
] | 1 | 2019-11-12T14:06:06.000Z | 2019-11-12T14:06:06.000Z | catkin_ws/src/vehicle_follow/scripts/following_node.py | championway/DuckietownPi3_NCTU | ab80ec901ab50337b5f20c9652bc7b8503e2a348 | [
"CC-BY-2.0"
] | null | null | null | catkin_ws/src/vehicle_follow/scripts/following_node.py | championway/DuckietownPi3_NCTU | ab80ec901ab50337b5f20c9652bc7b8503e2a348 | [
"CC-BY-2.0"
] | null | null | null | #!/usr/bin/env python
import rospy
import numpy as np
import math
import time
from std_msgs.msg import Bool, Float32
from duckietown_msgs.msg import Twist2DStamped, VehiclePose, AprilTags, BoolStamped
from sensor_msgs.msg import Joy
class Follow(object):
def __init__(self):
self.node_name = rospy.get_nam... | 31.578125 | 117 | 0.666997 | 282 | 2,021 | 4.521277 | 0.343972 | 0.051765 | 0.054902 | 0.071373 | 0.164706 | 0.153725 | 0.153725 | 0.108235 | 0.108235 | 0.108235 | 0 | 0.015326 | 0.225136 | 2,021 | 63 | 118 | 32.079365 | 0.798851 | 0.167244 | 0 | 0.157895 | 0 | 0 | 0.052033 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.184211 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
388bd12b6e5f23a8d6017792461b2f16459942ef | 338 | py | Python | netbox/payment/admin.py | cbipoe3ka/new-netbox-2.9 | ce54c710034d58f99dbcefc1ad16c947a8b78dc8 | [
"Apache-2.0"
] | null | null | null | netbox/payment/admin.py | cbipoe3ka/new-netbox-2.9 | ce54c710034d58f99dbcefc1ad16c947a8b78dc8 | [
"Apache-2.0"
] | null | null | null | netbox/payment/admin.py | cbipoe3ka/new-netbox-2.9 | ce54c710034d58f99dbcefc1ad16c947a8b78dc8 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
# Register your models here.
from .models import Payment, ContractFile, Company, Contractor
@admin.register(Company)
class Company(admin.ModelAdmin):
list_display = (
'name',
)
@admin.register(Contractor)
class Contractor(admin.ModelAdmin):
list_display = (
... | 17.789474 | 62 | 0.692308 | 36 | 338 | 6.444444 | 0.5 | 0.168103 | 0.163793 | 0.224138 | 0.258621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204142 | 338 | 19 | 63 | 17.789474 | 0.862454 | 0.076923 | 0 | 0.333333 | 0 | 0 | 0.025723 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
389ad066f4c179f629af7f2ace67fc034241d8bb | 897 | py | Python | 2015/day04/solution.py | loisaidasam/adventofcode | db51740c9b060037c947e04f1dc4f8b66032dbc6 | [
"MIT"
] | null | null | null | 2015/day04/solution.py | loisaidasam/adventofcode | db51740c9b060037c947e04f1dc4f8b66032dbc6 | [
"MIT"
] | null | null | null | 2015/day04/solution.py | loisaidasam/adventofcode | db51740c9b060037c947e04f1dc4f8b66032dbc6 | [
"MIT"
] | null | null | null |
import hashlib
import sys
def solve(secret_key, starts_with):
result = 1
while True:
hash_input = "%s%s" % (secret_key, result)
hash_result = hashlib.md5(hash_input).hexdigest()
if hash_result.startswith(starts_with):
return result
result += 1
if __name__ == '__m... | 28.935484 | 103 | 0.649944 | 121 | 897 | 4.636364 | 0.338843 | 0.128342 | 0.085562 | 0.122995 | 0.395722 | 0.224599 | 0.224599 | 0.224599 | 0.224599 | 0 | 0 | 0.060332 | 0.26087 | 897 | 30 | 104 | 29.9 | 0.785822 | 0 | 0 | 0 | 0 | 0.052632 | 0.160535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | null | null | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
38a1e0cfe662e939b83d30b2d1f7551ffe339a0c | 3,780 | py | Python | rendering/back_tracer.py | optas/geo_tool | 286722e759e7b75c52a77827574aa66bbef858c6 | [
"MIT"
] | 6 | 2019-05-21T15:11:55.000Z | 2021-04-01T18:04:10.000Z | rendering/back_tracer.py | optas/geo_tool | 286722e759e7b75c52a77827574aa66bbef858c6 | [
"MIT"
] | null | null | null | rendering/back_tracer.py | optas/geo_tool | 286722e759e7b75c52a77827574aa66bbef858c6 | [
"MIT"
] | 2 | 2019-06-03T03:35:52.000Z | 2021-02-12T01:36:24.000Z | '''
Created on Jul 25, 2016
@author: Panos Achlioptas
@contact: pachlioptas@gmail.com
@copyright: You are free to use, change, or redistribute this code in any way
you want for non-commercial purposes.
'''
import glob
import os
import os.path as osp
from subprocess import call as sys_call
from .. in_out import soup ... | 39.789474 | 134 | 0.671429 | 527 | 3,780 | 4.483871 | 0.309298 | 0.034278 | 0.045705 | 0.0584 | 0.211595 | 0.14981 | 0.14981 | 0.09818 | 0.09818 | 0.057554 | 0 | 0.006496 | 0.22619 | 3,780 | 94 | 135 | 40.212766 | 0.801368 | 0.016138 | 0 | 0.079365 | 0 | 0 | 0.071017 | 0.035812 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.095238 | null | null | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
38a2fda29df5146f3299d8c97a418e715b436b12 | 394 | py | Python | sprint/commands/clear.py | ii-Python/Sprint | 8c404558d23c4631ea7f8f127145e932eddd6e66 | [
"MIT"
] | null | null | null | sprint/commands/clear.py | ii-Python/Sprint | 8c404558d23c4631ea7f8f127145e932eddd6e66 | [
"MIT"
] | null | null | null | sprint/commands/clear.py | ii-Python/Sprint | 8c404558d23c4631ea7f8f127145e932eddd6e66 | [
"MIT"
] | null | null | null | # Modules
import subprocess
from os import name
from ..utils.bases import BaseCommand
# Command class
class Clear(BaseCommand):
def __init__(self, core):
self.core = core
def clear(self, arguments):
# Locate our command
command = "clear"
if name == "nt":
command =... | 18.761905 | 47 | 0.601523 | 44 | 394 | 5.295455 | 0.590909 | 0.06867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.30203 | 394 | 20 | 48 | 19.7 | 0.847273 | 0.121827 | 0 | 0 | 0 | 0 | 0.029326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
38a562992d5b85eb79f1e9b885119e3be7c1ab0f | 2,615 | py | Python | eqDataVisLib/mapGen.py | coolgauss/usgsEarthquakeDataVis | b04efa1472c06136dca188191d75f3e656273c48 | [
"MIT"
] | null | null | null | eqDataVisLib/mapGen.py | coolgauss/usgsEarthquakeDataVis | b04efa1472c06136dca188191d75f3e656273c48 | [
"MIT"
] | null | null | null | eqDataVisLib/mapGen.py | coolgauss/usgsEarthquakeDataVis | b04efa1472c06136dca188191d75f3e656273c48 | [
"MIT"
] | 3 | 2018-11-23T12:55:54.000Z | 2021-12-28T23:36:38.000Z | import hou
class MapBoxHandler(object):
CAM_NAME = 'map_cam'
MAPBOX_TOKEN_FILE_PARMNAME = 'mapbox_token_file'
USE_PICKLED_TOKEN_PARMNAME = 'use_pickled_token'
MAPBOX_TOKEN_STR_PARMNAME = 'mapbox_token_string'
LAT_CENTER_PARMNAME = 'lat_center'
LON_CENTER_PARMNAME = 'lon_center'
... | 33.961039 | 90 | 0.639771 | 292 | 2,615 | 5.523973 | 0.366438 | 0.047737 | 0.065096 | 0.052077 | 0.128332 | 0.049597 | 0.049597 | 0.049597 | 0 | 0 | 0 | 0.004073 | 0.248948 | 2,615 | 76 | 91 | 34.407895 | 0.81721 | 0.087954 | 0 | 0 | 0 | 0 | 0.104622 | 0.014706 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017241 | 0.068966 | null | null | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
38a6e51cccaa93b6d101f6ac34039999d959bae7 | 401 | py | Python | data/migrations/0115_message_pending_delivery.py | SIXMON/peps | 48c09a951a0193ada7b91c8bb6efc4b1232c3520 | [
"MIT"
] | 5 | 2019-08-29T13:55:47.000Z | 2021-11-15T08:30:33.000Z | data/migrations/0115_message_pending_delivery.py | SIXMON/peps | 48c09a951a0193ada7b91c8bb6efc4b1232c3520 | [
"MIT"
] | 295 | 2019-08-19T12:40:29.000Z | 2022-01-24T14:03:20.000Z | data/migrations/0115_message_pending_delivery.py | SIXMON/peps | 48c09a951a0193ada7b91c8bb6efc4b1232c3520 | [
"MIT"
] | 7 | 2020-05-27T06:28:48.000Z | 2021-11-17T10:00:54.000Z | # Generated by Django 3.1.1 on 2020-11-19 09:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('data', '0114_farmer_can_send_messages'),
]
operations = [
migrations.AddField(
model_name='message',
name='pending_d... | 21.105263 | 53 | 0.613466 | 43 | 401 | 5.581395 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065517 | 0.276808 | 401 | 18 | 54 | 22.277778 | 0.762069 | 0.112219 | 0 | 0 | 1 | 0 | 0.158192 | 0.081921 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
38a784d6fbc8bb9e4a0c32121ec134d6317cf844 | 2,664 | py | Python | examples/plugin_example/plugin.py | pfnet/pysen | f70cd4a5a1ad58ae62479265d50a788c450509f6 | [
"MIT"
] | 423 | 2021-03-22T08:45:12.000Z | 2022-03-31T21:05:53.000Z | examples/plugin_example/plugin.py | e-kwsm/pysen | f70cd4a5a1ad58ae62479265d50a788c450509f6 | [
"MIT"
] | 1 | 2022-02-23T08:53:24.000Z | 2022-03-23T14:11:54.000Z | examples/plugin_example/plugin.py | e-kwsm/pysen | f70cd4a5a1ad58ae62479265d50a788c450509f6 | [
"MIT"
] | 9 | 2021-03-26T14:20:07.000Z | 2022-03-24T13:17:06.000Z | import dataclasses
import pathlib
import subprocess
from typing import DefaultDict, List, Sequence
import dacite
from pysen.command import CommandBase
from pysen.component import ComponentBase, RunOptions
from pysen.path import change_dir
from pysen.plugin import PluginBase
from pysen.pyproject_model import Config, P... | 29.6 | 86 | 0.661411 | 311 | 2,664 | 5.514469 | 0.334405 | 0.041983 | 0.022741 | 0.017493 | 0.102624 | 0.081633 | 0.081633 | 0.045481 | 0.045481 | 0 | 0 | 0.001503 | 0.250751 | 2,664 | 89 | 87 | 29.932584 | 0.857715 | 0.021772 | 0 | 0.157143 | 0 | 0 | 0.069892 | 0.011137 | 0 | 0 | 0 | 0 | 0.028571 | 1 | 0.142857 | false | 0 | 0.185714 | 0.057143 | 0.542857 | 0.014286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
38a83a8e696e1c01e5b2c013315736afbd3f5070 | 944 | py | Python | Node.py | ihartb/AStar | 02d9919d82ad1df228d329bf7d46a315cbe10b85 | [
"MIT"
] | null | null | null | Node.py | ihartb/AStar | 02d9919d82ad1df228d329bf7d46a315cbe10b85 | [
"MIT"
] | null | null | null | Node.py | ihartb/AStar | 02d9919d82ad1df228d329bf7d46a315cbe10b85 | [
"MIT"
] | null | null | null | class Node:
def __init__(self, x, y):
self.g = 0
self.h = 0
self.f = 0
self.parent = None
self.cost = 1
self.x = x
self.y = y
self.left_child = None
self.right_child = None
self.top_child = None
self.down_child = None
def u... | 21.953488 | 60 | 0.516949 | 147 | 944 | 3.170068 | 0.22449 | 0.064378 | 0.083691 | 0.042918 | 0.103004 | 0.103004 | 0.103004 | 0.103004 | 0 | 0 | 0 | 0.011589 | 0.360169 | 944 | 42 | 61 | 22.47619 | 0.759934 | 0 | 0 | 0.064516 | 0 | 0 | 0.00426 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0 | 0 | 0 | 0.290323 | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
38b1775a3b53f670b046bd9c4fc5ad207335e81d | 1,250 | py | Python | snippets/findtag.py | chengdagong/kdplus | a448d0b66ac07973fe29329c15b9b78e102dd255 | [
"MS-PL"
] | null | null | null | snippets/findtag.py | chengdagong/kdplus | a448d0b66ac07973fe29329c15b9b78e102dd255 | [
"MS-PL"
] | null | null | null | snippets/findtag.py | chengdagong/kdplus | a448d0b66ac07973fe29329c15b9b78e102dd255 | [
"MS-PL"
] | null | null | null | from pykd import *
from sys import argv
nt = module("nt")
LDR_DATA_TABLE_ENTRY = nt.type("_LDR_DATA_TABLE_ENTRY")
def getModuleList():
ldrLst = typedVarList( nt.PsLoadedModuleList, LDR_DATA_TABLE_ENTRY, "InLoadOrderLinks.Flink")
return [ module(m.DllBase) for m in ldrLst ]
def findTagInModule(mod,... | 21.929825 | 97 | 0.5608 | 150 | 1,250 | 4.553333 | 0.433333 | 0.030747 | 0.052709 | 0.074671 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008373 | 0.3312 | 1,250 | 56 | 98 | 22.321429 | 0.808612 | 0.0248 | 0 | 0.05 | 0 | 0 | 0.101974 | 0.035362 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.025 | 0.05 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
38b37a47b91d9f31fba49a19671cf51378f7ad8e | 3,412 | py | Python | isup.py | chpwssn/isitupbot | cdf45a3127e25126a19bd6022c8c71a471ba8431 | [
"MIT"
] | 1 | 2017-05-04T15:25:16.000Z | 2017-05-04T15:25:16.000Z | isup.py | chpwssn/isitupbot | cdf45a3127e25126a19bd6022c8c71a471ba8431 | [
"MIT"
] | null | null | null | isup.py | chpwssn/isitupbot | cdf45a3127e25126a19bd6022c8c71a471ba8431 | [
"MIT"
] | null | null | null | from specifics import *
import urllib
import urllib2
import json
import praw
import time
urltocheck = "b-15.net http://google.com http://151.236.29.11 https://151.236.29.11"
def runcheck(url):
serverstried = 0
httpup = 0
dnsresolve = 0
serverconnected = 0
serverids = ""
servercities = ""
re... | 40.141176 | 205 | 0.602579 | 417 | 3,412 | 4.908873 | 0.414868 | 0.019541 | 0.023449 | 0.00977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019687 | 0.270516 | 3,412 | 85 | 206 | 40.141176 | 0.802732 | 0.076788 | 0 | 0 | 0 | 0.053333 | 0.247855 | 0.006673 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.026667 | 0.08 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
38b8098dd380bbf458c5705cf01edc93639eed17 | 239 | py | Python | HackerRank/Problem Solving/Algorithms/Strings/Making Anagrams.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | HackerRank/Problem Solving/Algorithms/Strings/Making Anagrams.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | HackerRank/Problem Solving/Algorithms/Strings/Making Anagrams.py | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | str1 = input()
str2 = input()
a = [0 for i in range(0,27)]
for i in str1:
a[ord(i)-ord('a')] += 1
for i in str2:
a[ord(i)-ord('a')] -= 1
ans = 0
for i in a:
if ( i < 0 ):
ans += -i
else:
ans += i
print(ans) | 15.933333 | 28 | 0.456067 | 48 | 239 | 2.270833 | 0.333333 | 0.146789 | 0.220183 | 0.12844 | 0.183486 | 0.183486 | 0 | 0 | 0 | 0 | 0 | 0.075472 | 0.334728 | 239 | 15 | 29 | 15.933333 | 0.610063 | 0 | 0 | 0 | 0 | 0 | 0.008333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.071429 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
38b8c39fcc1da8ecd4c83b04b6b618cb011dbcbf | 8,785 | py | Python | src/solorunner/submit.py | marchete/RN_Explorer | d7c37431044b56c2b591a31b891762f074d802b2 | [
"MIT"
] | 1 | 2021-04-10T18:52:06.000Z | 2021-04-10T18:52:06.000Z | src/solorunner/submit.py | marchete/RN_Explorer | d7c37431044b56c2b591a31b891762f074d802b2 | [
"MIT"
] | null | null | null | src/solorunner/submit.py | marchete/RN_Explorer | d7c37431044b56c2b591a31b891762f074d802b2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
import time
import string
import random
import glob
import re
import traceback
import zlib
import base64
program_name=sys.argv[1]
try:
threads=int(sys.argv[2])
except:
threads=2
try:
reset_seconds=int(sys.argv[3])
except:
reset_seconds=39
try:
lFa=int(sys.argv[4])
except:
lFa=32... | 34.182879 | 236 | 0.659192 | 1,302 | 8,785 | 4.339478 | 0.193548 | 0.029735 | 0.009204 | 0.01115 | 0.316283 | 0.235929 | 0.22 | 0.195044 | 0.180885 | 0.119115 | 0 | 0.016407 | 0.146614 | 8,785 | 256 | 237 | 34.316406 | 0.737228 | 0.069664 | 0 | 0.265217 | 0 | 0.008696 | 0.240074 | 0.015441 | 0 | 0 | 0 | 0.003906 | 0 | 1 | 0.008696 | false | 0.069565 | 0.056522 | 0 | 0.065217 | 0.052174 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
38c2daf516ba004f6ce43369f4f74438e3049dfe | 330 | py | Python | python/gameinfo.py | pason-systems/battle-tanks-client-stubs | 8accf81290313ead67f7856259613295c8ec6440 | [
"MIT"
] | 2 | 2015-12-19T19:25:26.000Z | 2016-03-17T06:08:21.000Z | python/gameinfo.py | pason-systems/battle-tanks-client-stubs | 8accf81290313ead67f7856259613295c8ec6440 | [
"MIT"
] | null | null | null | python/gameinfo.py | pason-systems/battle-tanks-client-stubs | 8accf81290313ead67f7856259613295c8ec6440 | [
"MIT"
] | null | null | null | class GameInfo(object):
"""
holds player information for the current game
"""
def __init__(self, team_name, match_token, team_password, client_token = ''):
self.client_token = client_token
self.team_name = team_name
self.match_token = match_token
self.team_password = tea... | 33 | 81 | 0.678788 | 41 | 330 | 5.073171 | 0.463415 | 0.115385 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239394 | 330 | 10 | 82 | 33 | 0.828685 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.333333 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
38c4ab927ef20c5075bfaa17153660e3efd03552 | 2,403 | py | Python | import data/insert_metadata.py | elenisproject/internet-and-applications | 4295c8c0c5af26793546e7cb0fe6e727966ea1a2 | [
"MIT"
] | 2 | 2021-03-15T15:07:00.000Z | 2021-03-18T11:21:22.000Z | import data/insert_metadata.py | elenisproject/internet-and-applications | 4295c8c0c5af26793546e7cb0fe6e727966ea1a2 | [
"MIT"
] | 1 | 2021-03-31T20:07:42.000Z | 2021-03-31T20:07:42.000Z | import data/insert_metadata.py | elenisproject/internet-and-applications | 4295c8c0c5af26793546e7cb0fe6e727966ea1a2 | [
"MIT"
] | null | null | null | #------------------------------------------ EXTRACT DATA FROM METADATA.CSV -------------------------------------------------
#
# our table has the same structrure as the csv file downloaded
#
#
#---------------------------------------------------------------------------------------... | 43.690909 | 483 | 0.605077 | 348 | 2,403 | 4.057471 | 0.350575 | 0.088527 | 0.169972 | 0.045326 | 0.152266 | 0.097026 | 0.097026 | 0.097026 | 0.013456 | 0.013456 | 0 | 0.004955 | 0.160216 | 2,403 | 54 | 484 | 44.5 | 0.694747 | 0.257595 | 0 | 0 | 0 | 0.054054 | 0.30474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.027027 | 0.324324 | 0 | 0.324324 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
38c9bdeb45685da6d29677de5ded7f8ba46a0da2 | 785 | py | Python | slides/template.py | russellromney/dash-slides | 77f520b8cfcab1a4274f67a0cad739505f915883 | [
"MIT"
] | 14 | 2019-05-31T15:28:25.000Z | 2021-10-03T20:19:01.000Z | slides/template.py | russellromney/dash-slides | 77f520b8cfcab1a4274f67a0cad739505f915883 | [
"MIT"
] | 1 | 2019-05-31T20:24:59.000Z | 2019-06-09T17:20:29.000Z | slides/template.py | russellromney/dash-slides | 77f520b8cfcab1a4274f67a0cad739505f915883 | [
"MIT"
] | 4 | 2019-10-01T19:12:07.000Z | 2022-03-30T20:56:54.000Z | ###
# no need to delete this - it won't show up in the presentation unless you add it to presentation.py
###
# necessary imports - do not change
from app import app
# custom imports - delete these if you don't need them
import dash_html_components as html
import dash_core_components as dcc
from dash.dependencies impo... | 30.192308 | 100 | 0.736306 | 118 | 785 | 4.805085 | 0.610169 | 0.035273 | 0.05291 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004464 | 0.143949 | 785 | 26 | 101 | 30.192308 | 0.839286 | 0.235669 | 0 | 0 | 0 | 0 | 0.236887 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 0.0625 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.