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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1c33c41b5744af5492119fefdab088d76a166432 | 1,592 | py | Python | prereise/gather/demanddata/eia/tests/test_get_eia_data.py | keforres/PreREISE | fcc111fdccc0626d3d34f1749a14035e47991043 | [
"MIT"
] | 15 | 2021-03-02T11:54:27.000Z | 2022-02-16T13:01:40.000Z | prereise/gather/demanddata/eia/tests/test_get_eia_data.py | keforres/PreREISE | fcc111fdccc0626d3d34f1749a14035e47991043 | [
"MIT"
] | 90 | 2021-01-25T19:02:14.000Z | 2022-03-31T20:27:28.000Z | prereise/gather/demanddata/eia/tests/test_get_eia_data.py | keforres/PreREISE | fcc111fdccc0626d3d34f1749a14035e47991043 | [
"MIT"
] | 15 | 2021-02-08T23:28:21.000Z | 2022-01-24T21:59:14.000Z | import getpass
import os
from datetime import datetime
import pandas as pd
import pytest
from prereise.gather.demanddata.eia import get_eia_data
@pytest.mark.skip(reason="Need API key")
def test_eia_download():
"""Check data frame assembled from data download by API call from EIA. Test
checks that the corre... | 28.945455 | 79 | 0.667714 | 244 | 1,592 | 4.233607 | 0.389344 | 0.043562 | 0.019361 | 0.046467 | 0.211036 | 0.127783 | 0.065828 | 0.065828 | 0.065828 | 0.065828 | 0 | 0.035914 | 0.21294 | 1,592 | 54 | 80 | 29.481481 | 0.788508 | 0.246859 | 0 | 0.0625 | 0 | 0 | 0.243523 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.0625 | false | 0.0625 | 0.1875 | 0 | 0.25 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1c37cff4afe4b2afdd67d7d83fdde90f400a23b5 | 35,293 | py | Python | python/lvmcam/araviscam/BlackflyCam.py | sdss/lvmcam | c5f421a546a0072a0dbb3d7b2ebc74316f339f64 | [
"BSD-3-Clause"
] | 3 | 2021-11-17T02:40:02.000Z | 2022-03-22T08:30:45.000Z | python/lvmcam/araviscam/BlackflyCam.py | sdss/lvmcam | c5f421a546a0072a0dbb3d7b2ebc74316f339f64 | [
"BSD-3-Clause"
] | 8 | 2021-11-25T10:18:31.000Z | 2021-12-17T13:04:52.000Z | python/lvmcam/araviscam/BlackflyCam.py | sdss/lvmcam | c5f421a546a0072a0dbb3d7b2ebc74316f339f64 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
"""
Python3 class to work with Aravis/GenICam cameras, subclass of sdss-basecam.
.. module:: araviscam
.. moduleauthor:: Richard J. Mathar <mathar@mpia.de>
"""
import sys
import math
import asyncio
import numpy
import astropy
from basecam.mixins import ImageAreaMixIn
from basecam import (
... | 39.170921 | 157 | 0.572096 | 4,545 | 35,293 | 4.390539 | 0.181078 | 0.007767 | 0.014332 | 0.016036 | 0.370784 | 0.349136 | 0.329291 | 0.325883 | 0.312403 | 0.29316 | 0 | 0.01802 | 0.32386 | 35,293 | 900 | 158 | 39.214444 | 0.818212 | 0.541694 | 0 | 0.292035 | 0 | 0 | 0.086775 | 0.004746 | 0 | 0 | 0.000708 | 0.005556 | 0 | 1 | 0.017699 | false | 0.053097 | 0.035398 | 0 | 0.091445 | 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 |
1c3db04c117dccc9ffc9194e5213cd07bd818e7e | 404 | py | Python | timeline/urls.py | asrashley/ieee-802-11-timeline | b4375dbde023dee214642e18c09318e9383a2bcf | [
"Apache-2.0"
] | null | null | null | timeline/urls.py | asrashley/ieee-802-11-timeline | b4375dbde023dee214642e18c09318e9383a2bcf | [
"Apache-2.0"
] | null | null | null | timeline/urls.py | asrashley/ieee-802-11-timeline | b4375dbde023dee214642e18c09318e9383a2bcf | [
"Apache-2.0"
] | 1 | 2020-06-01T07:46:12.000Z | 2020-06-01T07:46:12.000Z | from django.conf.urls import patterns
urlpatterns = patterns('timeline.views',
(r'^timeline.html$', 'main_page', {'export':'html'}),
(r'^timeline.shtml$', 'main_page', {'export':'shtml'}),
(r'^dn/status.json', 'backlog_poll'),
... | 44.888889 | 79 | 0.450495 | 37 | 404 | 4.783784 | 0.567568 | 0.135593 | 0.158192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.35396 | 404 | 9 | 80 | 44.888889 | 0.678161 | 0 | 0 | 0 | 0 | 0 | 0.355164 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 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 |
1c4479a1081509e9c8cd3fe5ea7ce84bc8532189 | 6,919 | py | Python | test/drivers/gaussiand/test_driver_gaussian_log.py | divshacker/qiskit-nature | 08f6dcec5e4ac8c08f5b84e764ee78cc3d12facb | [
"Apache-2.0"
] | 1 | 2021-06-20T15:31:01.000Z | 2021-06-20T15:31:01.000Z | test/drivers/gaussiand/test_driver_gaussian_log.py | divshacker/qiskit-nature | 08f6dcec5e4ac8c08f5b84e764ee78cc3d12facb | [
"Apache-2.0"
] | 1 | 2021-08-25T13:31:41.000Z | 2021-08-25T13:31:41.000Z | test/drivers/gaussiand/test_driver_gaussian_log.py | divshacker/qiskit-nature | 08f6dcec5e4ac8c08f5b84e764ee78cc3d12facb | [
"Apache-2.0"
] | 3 | 2021-07-02T06:57:58.000Z | 2021-07-06T12:32:38.000Z | # This code is part of Qiskit.
#
# (C) Copyright IBM 2020, 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivat... | 39.3125 | 95 | 0.533459 | 858 | 6,919 | 4.242424 | 0.314685 | 0.010989 | 0.037088 | 0.046703 | 0.271703 | 0.251923 | 0.165659 | 0.165659 | 0.113187 | 0.113187 | 0 | 0.217774 | 0.310449 | 6,919 | 175 | 96 | 39.537143 | 0.545169 | 0.140194 | 0 | 0.259542 | 0 | 0 | 0.087525 | 0.011047 | 0 | 0 | 0 | 0 | 0.076336 | 1 | 0.068702 | false | 0 | 0.030534 | 0 | 0.10687 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c4711edcf7819cbbbc6c78acdca81a52af4983c | 1,393 | py | Python | common/xrd-ui-tests-python/tests/xroad_cs_user_logging/XroadCsUserLogging.py | nordic-institute/X-Road-tests | e030661a0ad8ceab74dd8122b751e88025a3474a | [
"MIT"
] | 1 | 2019-02-09T00:16:54.000Z | 2019-02-09T00:16:54.000Z | common/xrd-ui-tests-python/tests/xroad_cs_user_logging/XroadCsUserLogging.py | nordic-institute/X-Road-tests | e030661a0ad8ceab74dd8122b751e88025a3474a | [
"MIT"
] | 1 | 2018-06-06T08:33:32.000Z | 2018-06-06T08:33:32.000Z | common/xrd-ui-tests-python/tests/xroad_cs_user_logging/XroadCsUserLogging.py | nordic-institute/X-Road-tests | e030661a0ad8ceab74dd8122b751e88025a3474a | [
"MIT"
] | 3 | 2018-07-09T08:51:00.000Z | 2020-07-23T18:40:24.000Z | import unittest
from helpers import ssh_client
from main.maincontroller import MainController
from tests.xroad_cs_user_logging.cs_user_logging import check_logout, check_login
class XroadCsUserLogging(unittest.TestCase):
"""
CS_01 Log In to the Graphical User Interface
CS_02 Log Out of the Graphical User... | 34.825 | 81 | 0.674803 | 197 | 1,393 | 4.497462 | 0.365482 | 0.060948 | 0.088036 | 0.10158 | 0.252822 | 0.134312 | 0.063205 | 0.063205 | 0 | 0 | 0 | 0.013023 | 0.228284 | 1,393 | 39 | 82 | 35.717949 | 0.811163 | 0.188083 | 0 | 0 | 0 | 0 | 0.06789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0.2 | 0.16 | 0 | 0.28 | 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 |
1c5244e4b6738a6c58de6cfd1cb0dd5ec5044cf0 | 3,131 | py | Python | fedwatcher/src/VideoFeedClipper.py | amchagas/FEDWatcher | 7f325ab8488ffea47c2ca1b77a9a2c5edfbde8d4 | [
"MIT"
] | 1 | 2021-12-19T17:32:49.000Z | 2021-12-19T17:32:49.000Z | fedwatcher/src/VideoFeedClipper.py | amchagas/FEDWatcher | 7f325ab8488ffea47c2ca1b77a9a2c5edfbde8d4 | [
"MIT"
] | 21 | 2021-07-06T21:51:34.000Z | 2021-09-02T21:08:46.000Z | fedwatcher/src/VideoFeedClipper.py | amchagas/FEDWatcher | 7f325ab8488ffea47c2ca1b77a9a2c5edfbde8d4 | [
"MIT"
] | 1 | 2021-12-17T14:58:19.000Z | 2021-12-17T14:58:19.000Z | # import the necessary packages
from src.KeyClipWriter import KeyClipWriter
from imutils.video import VideoStream
import argparse
import datetime
import imutils
import time
import cv2
import os
class VideoFeedClipper(object):
"""docstring for VideoFeedClipper"""
def __init__(self, buffer=100, timeout=1.0, usePiCame... | 34.406593 | 105 | 0.735867 | 454 | 3,131 | 4.995595 | 0.389868 | 0.042328 | 0.021164 | 0.024691 | 0.026455 | 0.026455 | 0.026455 | 0 | 0 | 0 | 0 | 0.013067 | 0.168956 | 3,131 | 91 | 106 | 34.406593 | 0.85857 | 0.395081 | 0 | 0 | 0 | 0 | 0.077957 | 0.032796 | 0 | 0 | 0 | 0.010989 | 0 | 1 | 0.115385 | false | 0 | 0.153846 | 0 | 0.288462 | 0.019231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c52f4dd2799f1bddcba3a7af7a24c3815536301 | 2,096 | py | Python | faeAuditor/auditData/audit-urls-to-csv.py | opena11y/fae-auditor | ea9099b37b77ddc30092b0cdd962647c92b143a7 | [
"Apache-2.0"
] | 2 | 2018-02-28T19:03:28.000Z | 2021-09-30T13:40:23.000Z | faeAuditor/auditData/audit-urls-to-csv.py | opena11y/fae-auditor | ea9099b37b77ddc30092b0cdd962647c92b143a7 | [
"Apache-2.0"
] | 6 | 2020-02-11T21:53:58.000Z | 2022-02-10T07:57:58.000Z | faeAuditor/auditData/audit-urls-to-csv.py | opena11y/fae-auditor | ea9099b37b77ddc30092b0cdd962647c92b143a7 | [
"Apache-2.0"
] | 1 | 2019-12-05T06:05:20.000Z | 2019-12-05T06:05:20.000Z | import sys
import os
import string
import glob
import optparse
import subprocess
import shlex
import time
import getopt
import json
import textile
import urllib2
from string import capwords
sys.path.append(os.path.abspath('..'))
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'fae_audit.settings')
def getDomain(... | 19.773585 | 75 | 0.559637 | 274 | 2,096 | 4.20073 | 0.379562 | 0.046916 | 0.041703 | 0.024327 | 0.069505 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014037 | 0.28626 | 2,096 | 106 | 76 | 19.773585 | 0.755348 | 0.04437 | 0 | 0.028986 | 0 | 0 | 0.107107 | 0.022523 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.188406 | null | null | 0.057971 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1c5b8c74b34be05b77b4bd27bbe8a8f0241d3963 | 57,072 | py | Python | examples/EFX/OpenAL_EFX.py | NicklasMCHD/PyAL | dd0ac8ba70b37b42f9d5b5bd9a33d0c007a10781 | [
"Zlib"
] | 11 | 2020-04-19T03:37:44.000Z | 2022-01-02T18:40:14.000Z | examples/EFX/OpenAL_EFX.py | NicklasMCHD/PyAL | dd0ac8ba70b37b42f9d5b5bd9a33d0c007a10781 | [
"Zlib"
] | 9 | 2019-12-05T08:11:45.000Z | 2020-11-01T10:54:18.000Z | examples/EFX/OpenAL_EFX.py | NicklasMCHD/PyAL | dd0ac8ba70b37b42f9d5b5bd9a33d0c007a10781 | [
"Zlib"
] | 8 | 2020-04-19T03:39:49.000Z | 2020-10-21T16:40:19.000Z | #using Pyglet
#from pyglet.media.drivers.openal import lib_openal as al
#from pyglet.media.drivers.openal import lib_alc as alc
#from pyglet.media.drivers.openal import lib_efx as efx
#using PyAL
import sys, os
sys.path.append(os.path.join(os.path.dirname(__file__), "../../"))
from openal import al, alc, efx
#imports... | 32.244068 | 186 | 0.674551 | 8,025 | 57,072 | 4.49595 | 0.053707 | 0.041574 | 0.026441 | 0.04199 | 0.610532 | 0.575 | 0.556486 | 0.532982 | 0.520288 | 0.49296 | 0 | 0.027801 | 0.222894 | 57,072 | 1,769 | 187 | 32.262295 | 0.785709 | 0.121058 | 0 | 0.403846 | 0 | 0 | 0.060411 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.028388 | 0.005495 | null | null | 0.022894 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1c5d3e7ae059dcbe701fbcc9da25d4c6eeb88824 | 2,719 | py | Python | tests/test_valdemarsro.py | Hunte3r/recipe-scrapers | 03abd57ba8cae80fd2e0c011f34d1f1e693026c1 | [
"MIT"
] | null | null | null | tests/test_valdemarsro.py | Hunte3r/recipe-scrapers | 03abd57ba8cae80fd2e0c011f34d1f1e693026c1 | [
"MIT"
] | 1 | 2022-03-26T13:01:56.000Z | 2022-03-26T13:01:56.000Z | tests/test_valdemarsro.py | Hunte3r/recipe-scrapers | 03abd57ba8cae80fd2e0c011f34d1f1e693026c1 | [
"MIT"
] | null | null | null | from recipe_scrapers.valdemarsro import Valdemarsro
from tests import ScraperTest
class TestValdemarsroScraper(ScraperTest):
scraper_class = Valdemarsro
def test_host(self):
self.assertEqual("valdemarsro.dk", self.harvester_class.host())
def test_title(self):
self.assertEqual(
... | 36.253333 | 241 | 0.655756 | 328 | 2,719 | 5.332317 | 0.42378 | 0.05203 | 0.141224 | 0.034305 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011392 | 0.257448 | 2,719 | 74 | 242 | 36.743243 | 0.854879 | 0 | 0 | 0.109091 | 0 | 0.018182 | 0.182344 | 0.045827 | 0 | 0 | 0 | 0 | 0.236364 | 1 | 0.236364 | false | 0 | 0.036364 | 0 | 0.309091 | 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 |
1c61f2ff4bd3ebc85e580b26aec86218675a6468 | 2,061 | py | Python | tools/generate_eval_ques.py | soumye/dialog_without_dialog | 9f95d6fb457659f9007445d9036b94e639bddd8b | [
"MIT"
] | 3 | 2020-09-08T23:19:51.000Z | 2021-07-21T11:12:48.000Z | tools/generate_eval_ques.py | soumye/dialog_without_dialog | 9f95d6fb457659f9007445d9036b94e639bddd8b | [
"MIT"
] | 2 | 2021-01-08T02:08:09.000Z | 2021-11-15T23:51:02.000Z | tools/generate_eval_ques.py | soumye/dialog_without_dialog | 9f95d6fb457659f9007445d9036b94e639bddd8b | [
"MIT"
] | 2 | 2020-11-10T15:53:03.000Z | 2020-12-11T03:24:00.000Z | import os
import gc
import random
import pprint
from six.moves import range
from time import gmtime, strftime
from timeit import default_timer as timer
import numpy as np
import time
import h5py
import numpy as np
import torch
import random
import json
import pdb
import pickle
def generate_eval_anno(imageid2ques, i... | 30.761194 | 121 | 0.692868 | 297 | 2,061 | 4.599327 | 0.350168 | 0.035871 | 0.029283 | 0.021962 | 0.068814 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015458 | 0.183891 | 2,061 | 66 | 122 | 31.227273 | 0.796671 | 0.082484 | 0 | 0.08 | 0 | 0 | 0.152013 | 0.082627 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0 | 0.32 | 0 | 0.36 | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1c6282d74585d1341e5bfa7be3e6ecc049191314 | 3,997 | py | Python | cipher_program/encode.py | patrickleweryharris/Enigma | 2e12066f39185889fae79f9c9d844bc67a035355 | [
"MIT"
] | 1 | 2015-12-24T04:20:38.000Z | 2015-12-24T04:20:38.000Z | cipher_program/encode.py | patrickleweryharris/Enigma | 2e12066f39185889fae79f9c9d844bc67a035355 | [
"MIT"
] | null | null | null | cipher_program/encode.py | patrickleweryharris/Enigma | 2e12066f39185889fae79f9c9d844bc67a035355 | [
"MIT"
] | null | null | null | # Functions for encoding a message with an enigma machine comprised of n rotors
# Could be combined with decode.py using instanced variables
from enigma import Enigma
def _process_messages(msg):
"""
Sanitize the message to something friendlier to the encryption program
@type msg: str
@rtype: None
... | 25.787097 | 129 | 0.621966 | 540 | 3,997 | 4.444444 | 0.298148 | 0.03 | 0.025 | 0.015 | 0.14125 | 0.06 | 0 | 0 | 0 | 0 | 0 | 0.024584 | 0.277458 | 3,997 | 154 | 130 | 25.954545 | 0.80644 | 0.382537 | 0 | 0.136364 | 0 | 0 | 0.005352 | 0 | 0 | 0 | 0 | 0.012987 | 0 | 1 | 0.121212 | false | 0 | 0.015152 | 0 | 0.287879 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
1c63494716c8e8c6baf806d75c0ae22776a96a23 | 1,402 | py | Python | app/__init__.py | isakal/little-website | b2d65d5e177f3f49aba37d78571f071bb0d405a7 | [
"MIT"
] | 3 | 2019-05-15T19:02:35.000Z | 2020-06-29T14:06:39.000Z | app/__init__.py | isakal/little-website | b2d65d5e177f3f49aba37d78571f071bb0d405a7 | [
"MIT"
] | 2 | 2019-04-29T13:57:23.000Z | 2020-02-12T06:38:03.000Z | app/__init__.py | isakal/little-website | b2d65d5e177f3f49aba37d78571f071bb0d405a7 | [
"MIT"
] | 1 | 2020-04-07T09:10:38.000Z | 2020-04-07T09:10:38.000Z | import sys
import os
import json
from flask import Flask
from flask_mail import Mail
from flask_bcrypt import Bcrypt
from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager
from flask_debugtoolbar import DebugToolbarExtension
from app.config import TestingConfig, DevelopmentConfig, ProductionConfig... | 24.172414 | 104 | 0.81669 | 195 | 1,402 | 5.682051 | 0.230769 | 0.056859 | 0.144404 | 0.027076 | 0.449458 | 0.449458 | 0.449458 | 0.393502 | 0.393502 | 0.393502 | 0 | 0 | 0.106277 | 1,402 | 57 | 105 | 24.596491 | 0.884278 | 0 | 0 | 0.409091 | 0 | 0 | 0.022111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0 | 0.409091 | 0 | 0.454545 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1c63ec24cd4d566fe1d6795db9a599a75200b129 | 2,122 | py | Python | backend/shop/migrations/0001_initial.py | boomy50/Pies_shop | 5bfeb63d2460dd8c573f700c4d8c7a592f123657 | [
"MIT"
] | null | null | null | backend/shop/migrations/0001_initial.py | boomy50/Pies_shop | 5bfeb63d2460dd8c573f700c4d8c7a592f123657 | [
"MIT"
] | null | null | null | backend/shop/migrations/0001_initial.py | boomy50/Pies_shop | 5bfeb63d2460dd8c573f700c4d8c7a592f123657 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.12 on 2022-04-06 16:49
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Ingredients',
fields=[
... | 39.296296 | 117 | 0.570688 | 196 | 2,122 | 6.020408 | 0.357143 | 0.071186 | 0.084746 | 0.088136 | 0.547458 | 0.547458 | 0.547458 | 0.486441 | 0.486441 | 0.445763 | 0 | 0.024016 | 0.293591 | 2,122 | 53 | 118 | 40.037736 | 0.763175 | 0.021678 | 0 | 0.521739 | 1 | 0 | 0.090646 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.130435 | 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 |
1c640c40efa66082e81fe09f5ba9cef776300483 | 406 | py | Python | setup.py | wapcaplet/pysci | 41bfcb3d4adc1ab927eae269055cd4e47b90038f | [
"MIT"
] | 1 | 2019-10-17T07:04:30.000Z | 2019-10-17T07:04:30.000Z | setup.py | wapcaplet/pysci | 41bfcb3d4adc1ab927eae269055cd4e47b90038f | [
"MIT"
] | null | null | null | setup.py | wapcaplet/pysci | 41bfcb3d4adc1ab927eae269055cd4e47b90038f | [
"MIT"
] | 1 | 2021-11-21T05:13:11.000Z | 2021-11-21T05:13:11.000Z | #! /usr/bin/env python
# setup.py
"""Setup and installer for PySci.
"""
from distutils.core import setup
setup(name='PySci',
version='0.1',
description='Pythonic interface to the QsciScintilla editor widget',
author='Eric Pierce',
author_email='wapcaplet88@gmail.com',
url='http://github... | 21.368421 | 74 | 0.647783 | 49 | 406 | 5.346939 | 0.816327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012384 | 0.204434 | 406 | 18 | 75 | 22.555556 | 0.798762 | 0.150246 | 0 | 0 | 0 | 0 | 0.422619 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c672fbd0a4001b8314f981afc6a020aaa06f20e | 567 | py | Python | api/controllers/badges.py | zpapakipos/dynabench-1 | 95884b4e29c57263dc1a85909be979c084d5fac3 | [
"MIT"
] | 15 | 2021-09-24T00:46:04.000Z | 2022-03-16T13:24:56.000Z | api/controllers/badges.py | zpapakipos/dynabench-1 | 95884b4e29c57263dc1a85909be979c084d5fac3 | [
"MIT"
] | 98 | 2021-09-22T12:33:21.000Z | 2022-03-21T22:23:52.000Z | api/controllers/badges.py | zpapakipos/dynabench-1 | 95884b4e29c57263dc1a85909be979c084d5fac3 | [
"MIT"
] | 12 | 2021-09-25T05:08:18.000Z | 2022-02-28T21:02:20.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import bottle
import common.auth as _auth
from models.badge import BadgeModel
from models.user import UserModel
@bottle.get("/badges/getasync... | 28.35 | 65 | 0.733686 | 79 | 567 | 5.177215 | 0.632911 | 0.0489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160494 | 567 | 19 | 66 | 29.842105 | 0.859244 | 0.296296 | 0 | 0 | 0 | 0 | 0.096203 | 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 |
1c69c283f400b96e69974008f3f49257c7ebff81 | 993 | py | Python | netket/graph/__init__.py | gpescia/MyNetKet | 958510966a5870d9d491de0628903cf1fc210921 | [
"Apache-2.0"
] | 352 | 2018-04-24T16:45:10.000Z | 2022-03-31T01:15:34.000Z | netket/graph/__init__.py | gpescia/MyNetKet | 958510966a5870d9d491de0628903cf1fc210921 | [
"Apache-2.0"
] | 947 | 2018-04-24T20:16:17.000Z | 2022-03-31T17:33:52.000Z | netket/graph/__init__.py | gpescia/MyNetKet | 958510966a5870d9d491de0628903cf1fc210921 | [
"Apache-2.0"
] | 148 | 2018-04-25T02:44:20.000Z | 2022-03-11T11:42:34.000Z | # Copyright 2021 The NetKet Authors - All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 27.583333 | 74 | 0.744209 | 136 | 993 | 5.352941 | 0.691176 | 0.082418 | 0.035714 | 0.043956 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009975 | 0.192346 | 993 | 35 | 75 | 28.371429 | 0.897756 | 0.581067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.263158 | 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 |
1c69ea87f23d0102c4d1d9555be2b5c5d6ab735d | 461 | py | Python | tests/test_external_h2_dispenser.py | LauWien/smooth | 3d2ee96e3c2b2f9d5d805da1a920748f2dbbd538 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 5 | 2019-10-15T15:56:35.000Z | 2021-02-04T10:11:31.000Z | tests/test_external_h2_dispenser.py | LauWien/smooth | 3d2ee96e3c2b2f9d5d805da1a920748f2dbbd538 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 121 | 2020-01-06T14:32:30.000Z | 2021-09-23T11:26:11.000Z | tests/test_external_h2_dispenser.py | LauWien/smooth | 3d2ee96e3c2b2f9d5d805da1a920748f2dbbd538 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 6 | 2019-10-21T08:36:05.000Z | 2021-03-26T10:37:17.000Z | from smooth.components.external_component_h2_dispenser import H2Dispenser
from os import path
def test_init():
# basic creation
test_path = path.join(path.dirname(__file__), 'test_timeseries')
h2 = H2Dispenser({"csv_filename": "test_csv.csv", "path": test_path, })
assert h2 is not None
assert h2.... | 25.611111 | 75 | 0.718004 | 67 | 461 | 4.686567 | 0.522388 | 0.101911 | 0.085987 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 0.197397 | 461 | 17 | 76 | 27.117647 | 0.821622 | 0.097614 | 0 | 0 | 0 | 0 | 0.104369 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0.111111 | false | 0 | 0.222222 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1c73d369fba176022dc873a7100ef3f6a73ffc2b | 484 | py | Python | run_spider/run_homedy_spider.py | phamvanhanh6720/PredictRentedAppartment | c1115ef0da124da000cc1b8c489561ede501d363 | [
"MIT"
] | 2 | 2022-03-17T03:04:18.000Z | 2022-03-17T03:04:19.000Z | run_spider/run_homedy_spider.py | phamvanhanh6720/PredictRentedAppartment | c1115ef0da124da000cc1b8c489561ede501d363 | [
"MIT"
] | 1 | 2021-11-29T03:15:31.000Z | 2021-11-29T03:15:31.000Z | run_spider/run_homedy_spider.py | phamvanhanh6720/PredictRentedAppartment | c1115ef0da124da000cc1b8c489561ede501d363 | [
"MIT"
] | null | null | null | from WebScrapy import HomedySpider
from scrapy.crawler import CrawlerProcess
from scrapy.utils.project import get_project_settings
import logging
from selenium.webdriver.remote.remote_connection import LOGGER
from urllib3.connectionpool import log
log.setLevel(logging.WARNING)
LOGGER.setLevel(logging.WARNING)
if _... | 26.888889 | 62 | 0.81405 | 57 | 484 | 6.649123 | 0.508772 | 0.079156 | 0.14248 | 0.131926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002336 | 0.115702 | 484 | 18 | 63 | 26.888889 | 0.883178 | 0 | 0 | 0 | 0 | 0 | 0.016495 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.461538 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1c78108504aa43d60dfa1fce8a1422ca1b11895a | 750 | py | Python | sum of nos.py | procheta1999/dayofcode_1 | fceeb885e89a3a40122b8a3bcaca79bf6f811401 | [
"MIT"
] | null | null | null | sum of nos.py | procheta1999/dayofcode_1 | fceeb885e89a3a40122b8a3bcaca79bf6f811401 | [
"MIT"
] | null | null | null | sum of nos.py | procheta1999/dayofcode_1 | fceeb885e89a3a40122b8a3bcaca79bf6f811401 | [
"MIT"
] | null | null | null | def sumofs1():
s1=0
n=int(input("enter a number:"))
for i in range(1,n+1):
s1=s1+i
print("sumofs1=",s1)
def sumofs2():
s2=0
m=int(input("enter a number:"))
for j in range(1,m+1):
s2=s2+(j*j)
print("sumofs2=",s2)
def sumofs3():
s3=0
p=int(input("enter... | 20.833333 | 36 | 0.501333 | 126 | 750 | 2.984127 | 0.246032 | 0.106383 | 0.172872 | 0.18617 | 0.305851 | 0.305851 | 0 | 0 | 0 | 0 | 0 | 0.09434 | 0.293333 | 750 | 35 | 37 | 21.428571 | 0.615094 | 0 | 0 | 0 | 0 | 0 | 0.160839 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 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 |
1c7d68d14a9d1bea19dcf122611c8375835c4d0d | 2,627 | py | Python | constants.py | dannylopez111/selbot | d56eac7d22e0a244115fb55be62a528abe4a29b7 | [
"MIT"
] | null | null | null | constants.py | dannylopez111/selbot | d56eac7d22e0a244115fb55be62a528abe4a29b7 | [
"MIT"
] | null | null | null | constants.py | dannylopez111/selbot | d56eac7d22e0a244115fb55be62a528abe4a29b7 | [
"MIT"
] | null | null | null | # Add your list of tweets here in this list. Make sure the messages are inside double quotes and end with a comma.
# For example: "Hello Check, my profile",
# The program will then randomly select one of the messages and post it to Twitter.
# Also if your message contains a double quote, you need to escape it with a b... | 27.946809 | 115 | 0.616292 | 277 | 2,627 | 5.844765 | 0.566787 | 0.009265 | 0.012353 | 0.023471 | 0.051884 | 0.021001 | 0 | 0 | 0 | 0 | 0 | 0.064433 | 0.261515 | 2,627 | 93 | 116 | 28.247312 | 0.770103 | 0.385611 | 0 | 0.028169 | 0 | 0 | 0.470294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.197183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1c7ede7621edaac82d3c68f6c32cca3686405f3a | 2,416 | py | Python | buildscripts/idl/tests/test_generator.py | MartinNeupauer/mongo | 6cc2dfe7edd312b8596355edef454e15988e350e | [
"Apache-2.0"
] | 1 | 2021-06-02T05:13:29.000Z | 2021-06-02T05:13:29.000Z | buildscripts/idl/tests/test_generator.py | MartinNeupauer/mongo | 6cc2dfe7edd312b8596355edef454e15988e350e | [
"Apache-2.0"
] | 2 | 2021-03-26T00:01:11.000Z | 2021-03-26T00:02:19.000Z | buildscripts/idl/tests/test_generator.py | MartinNeupauer/mongo | 6cc2dfe7edd312b8596355edef454e15988e350e | [
"Apache-2.0"
] | 5 | 2020-12-16T13:31:55.000Z | 2021-01-17T07:39:30.000Z | #!/usr/bin/env python2
# Copyright (C) 2017 MongoDB Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License, version 3,
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,... | 32.648649 | 100 | 0.691639 | 341 | 2,416 | 4.741935 | 0.42522 | 0.044527 | 0.040198 | 0.046382 | 0.205937 | 0.205937 | 0.186147 | 0.035869 | 0.035869 | 0.035869 | 0 | 0.00318 | 0.218957 | 2,416 | 73 | 101 | 33.09589 | 0.853736 | 0.416805 | 0 | 0.060606 | 0 | 0 | 0.091636 | 0 | 0 | 0 | 0 | 0 | 0.060606 | 1 | 0.030303 | false | 0 | 0.30303 | 0 | 0.393939 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1c8688a0b8a91295bd80b3e8fd9437c852b0e7ff | 1,859 | py | Python | src/plonetheme/clean_blog/tests/test_setup.py | sudhan77/plonetheme.clean_blog | aad0cb4d74cd2a27a5d8c78e64dae903ae6460bc | [
"MIT"
] | 11 | 2016-10-27T23:23:46.000Z | 2021-11-20T17:53:43.000Z | src/plonetheme/clean_blog/tests/test_setup.py | sudhan77/plonetheme.clean_blog | aad0cb4d74cd2a27a5d8c78e64dae903ae6460bc | [
"MIT"
] | 6 | 2016-06-12T21:19:50.000Z | 2016-10-03T22:51:16.000Z | src/plonetheme/clean_blog/tests/test_setup.py | sudhan77/plonetheme.clean_blog | aad0cb4d74cd2a27a5d8c78e64dae903ae6460bc | [
"MIT"
] | 11 | 2017-02-24T17:26:06.000Z | 2021-04-26T16:11:02.000Z | # -*- coding: utf-8 -*-
"""Setup tests for this package."""
from plonetheme.clean_blog.testing import PLONETHEME_CLEAN_BLOG_INTEGRATION_TESTING # noqa
from plone import api
import unittest
class TestSetup(unittest.TestCase):
"""Test that plonetheme.clean_blog is properly installed."""
layer = PLONETHEME_CL... | 36.45098 | 91 | 0.721356 | 194 | 1,859 | 6.737113 | 0.28866 | 0.13772 | 0.174445 | 0.052793 | 0.609793 | 0.501913 | 0.501913 | 0.454476 | 0.454476 | 0.266259 | 0 | 0.000661 | 0.185584 | 1,859 | 50 | 92 | 37.18 | 0.862616 | 0.187197 | 0 | 0.413793 | 0 | 0 | 0.079376 | 0.071235 | 0 | 0 | 0 | 0 | 0.137931 | 1 | 0.206897 | false | 0 | 0.241379 | 0 | 0.586207 | 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 |
1c8d893d10b876e37caa1a4f2dc9540944947486 | 800 | py | Python | setup.py | florian-reck/ExaDatabase | 2b932f5dae2069405e4cb12d25b970b813347894 | [
"MIT"
] | null | null | null | setup.py | florian-reck/ExaDatabase | 2b932f5dae2069405e4cb12d25b970b813347894 | [
"MIT"
] | null | null | null | setup.py | florian-reck/ExaDatabase | 2b932f5dae2069405e4cb12d25b970b813347894 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='ExasolDatabaseConnector',
version="0.1.7",
license="MIT",
maintainer="Florian Reck",
maintainer_email="support@exasol.com",
description="Exasol database connector cl... | 27.586207 | 82 | 0.6875 | 75 | 800 | 7.28 | 0.746667 | 0.040293 | 0.091575 | 0.124542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00471 | 0.20375 | 800 | 28 | 83 | 28.571429 | 0.852433 | 0.025 | 0 | 0 | 0 | 0 | 0.499358 | 0.209243 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.115385 | 0 | 0.115385 | 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 |
1c92e5e49c37fd33d263e2ee862a742709c096c3 | 996 | py | Python | examples/torchscript_resnet18_all_output_types.py | rdadolf/torch-mlir | 86eb493a443ffceada475e33dcd648628b16a808 | [
"Apache-2.0"
] | 213 | 2021-09-24T03:26:53.000Z | 2022-03-30T07:11:48.000Z | examples/torchscript_resnet18_all_output_types.py | rdadolf/torch-mlir | 86eb493a443ffceada475e33dcd648628b16a808 | [
"Apache-2.0"
] | 247 | 2021-09-23T18:49:45.000Z | 2022-03-31T17:19:02.000Z | examples/torchscript_resnet18_all_output_types.py | rdadolf/torch-mlir | 86eb493a443ffceada475e33dcd648628b16a808 | [
"Apache-2.0"
] | 68 | 2021-09-23T18:23:20.000Z | 2022-03-29T11:18:58.000Z | # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
# Also available under a BSD-style license. See LICENSE.
import torch
import torchvision
import torch_mlir
resnet18 = t... | 47.428571 | 118 | 0.797189 | 154 | 996 | 5.006494 | 0.422078 | 0.081712 | 0.058366 | 0.085603 | 0.498054 | 0.498054 | 0.498054 | 0.498054 | 0.498054 | 0.498054 | 0 | 0.050717 | 0.089357 | 996 | 20 | 119 | 49.8 | 0.799338 | 0.28012 | 0 | 0 | 0 | 0 | 0.091421 | 0 | 0 | 0 | 0 | 0.05 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
1c94392e0f9ed0518e98fcb8141503ead20bc2fc | 247 | py | Python | ozet/settings/live.py | ozet-team/ozet-server | 4772d37339634adee6ace65a5e2380df4bd22bbb | [
"MIT"
] | null | null | null | ozet/settings/live.py | ozet-team/ozet-server | 4772d37339634adee6ace65a5e2380df4bd22bbb | [
"MIT"
] | 4 | 2021-11-27T14:15:55.000Z | 2021-12-10T12:59:44.000Z | ozet/settings/live.py | ozet-team/ozet-server | 4772d37339634adee6ace65a5e2380df4bd22bbb | [
"MIT"
] | null | null | null | # fmt: off
# flake8: noqa
from .base import *
INSTAGRAM_OAUTH_REDIRECT_URL = "https://api.ozet.app/api/v1/member/user/me/instagram/oauth/authorize/"
CRONJOBS = [
('* * * * *', 'ozet.cron.hello_every_minute', '>> ./tmp/log/ggbc_cron.log'),
]
| 24.7 | 102 | 0.668016 | 34 | 247 | 4.676471 | 0.823529 | 0.176101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009259 | 0.125506 | 247 | 9 | 103 | 27.444444 | 0.726852 | 0.08502 | 0 | 0 | 0 | 0.2 | 0.591928 | 0.2287 | 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 |
1c98ff0949d1edc9af87f6ab8fd7a8a9f088b367 | 734 | py | Python | examples/vpn_examples.py | optimum-web/oneandone-cloudserver-sdk-python | d748865cda4c1d91617d9a3f0d156eb1be500799 | [
"Apache-2.0"
] | 1 | 2018-08-28T07:00:54.000Z | 2018-08-28T07:00:54.000Z | examples/vpn_examples.py | optimum-web/oneandone-cloudserver-sdk-python | d748865cda4c1d91617d9a3f0d156eb1be500799 | [
"Apache-2.0"
] | 8 | 2017-10-02T11:08:11.000Z | 2019-03-28T08:11:49.000Z | examples/vpn_examples.py | optimum-web/oneandone-cloudserver-sdk-python | d748865cda4c1d91617d9a3f0d156eb1be500799 | [
"Apache-2.0"
] | 3 | 2016-05-20T19:03:49.000Z | 2018-09-06T13:41:43.000Z | import os
from oneandone.client import OneAndOneService
from oneandone.client import Vpn
token = os.getenv('ONEANDONE_TOKEN')
client = OneAndOneService(token)
# List all vpns
vpns = client.list_vpns()
# Create a vpn
vpn1 = Vpn(name="python vpn",
description="test vpn")
new_vpn = client.create_vpn(v... | 25.310345 | 85 | 0.716621 | 110 | 734 | 4.6 | 0.336364 | 0.079051 | 0.063241 | 0.086957 | 0.120553 | 0.094862 | 0 | 0 | 0 | 0 | 0 | 0.004839 | 0.155313 | 734 | 28 | 86 | 26.214286 | 0.81129 | 0.138965 | 0 | 0 | 0 | 0 | 0.120603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | 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 |
1c9b4ec1b1f207ed1cedb673d7ac38c4bfdae60a | 71,654 | py | Python | py-scripts/test_l3_longevity.py | yadavnikita/lanforge-scripts | 067e75b71cd5c756d87da2fc4856b67e24260cab | [
"BSD-2-Clause-FreeBSD",
"BSD-3-Clause"
] | 1 | 2021-09-27T08:45:56.000Z | 2021-09-27T08:45:56.000Z | py-scripts/test_l3_longevity.py | shivamcandela/lanforge-scripts | 285c91d7d414567f9c6a136f1556ab9fe7546efb | [
"BSD-2-Clause-FreeBSD",
"BSD-3-Clause"
] | null | null | null | py-scripts/test_l3_longevity.py | shivamcandela/lanforge-scripts | 285c91d7d414567f9c6a136f1556ab9fe7546efb | [
"BSD-2-Clause-FreeBSD",
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
import sys
import os
if sys.version_info[0] != 3:
print("This script requires Python 3")
exit(1)
if 'py-json' not in sys.path:
sys.path.append(os.path.join(os.path.abspath('..'), 'py-json'))
import argparse
from LANforge.lfcli_base import LFCliBase
from LANforge import LFUtils
imp... | 53.996986 | 206 | 0.615318 | 9,360 | 71,654 | 4.456624 | 0.070299 | 0.068466 | 0.097857 | 0.015822 | 0.679652 | 0.637724 | 0.594692 | 0.565398 | 0.541257 | 0.511363 | 0 | 0.024037 | 0.263223 | 71,654 | 1,326 | 207 | 54.037707 | 0.766105 | 0.097524 | 0 | 0.412055 | 0 | 0.023715 | 0.232687 | 0.019733 | 0 | 0 | 0 | 0.000754 | 0 | 1 | 0.044466 | false | 0.098814 | 0.011858 | 0.000988 | 0.075099 | 0.117589 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1c9b9d0d3936f5d1f72719fe9bdf771e7094fe52 | 956 | py | Python | WebBrickLibs/WebBrickLibs/tests/TestAll.py | AndyThirtover/wb_gateway | 69f9c870369085f4440033201e2fb263a463a523 | [
"BSD-3-Clause"
] | null | null | null | WebBrickLibs/WebBrickLibs/tests/TestAll.py | AndyThirtover/wb_gateway | 69f9c870369085f4440033201e2fb263a463a523 | [
"BSD-3-Clause"
] | null | null | null | WebBrickLibs/WebBrickLibs/tests/TestAll.py | AndyThirtover/wb_gateway | 69f9c870369085f4440033201e2fb263a463a523 | [
"BSD-3-Clause"
] | null | null | null | # Copyright L.P.Klyne 2013
# Licenced under 3 clause BSD licence
# $Id: TestAll.py 2612 2008-08-11 20:08:49Z graham.klyne $
#
# Unit testing for WebBrick library functions (Functions.py)
# See http://pyunit.sourceforge.net/pyunit.html
#
import unittest, logging, sys
sys.path.append("../..")
from MiscLib import Te... | 27.314286 | 63 | 0.766736 | 118 | 956 | 6.144068 | 0.59322 | 0.124138 | 0.132414 | 0.12 | 0.148966 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027711 | 0.131799 | 956 | 34 | 64 | 28.117647 | 0.845783 | 0.338912 | 0 | 0 | 0 | 0 | 0.045089 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.375 | 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 |
1c9babeca5807cabbe531636dcaeee098934a1d1 | 3,180 | py | Python | flk/flkout/scaling_chi2_hapflk.py | esohkevin/CamPopStruct | f31094ff1e08cd5b5bf7d171366807b369689d60 | [
"MIT"
] | null | null | null | flk/flkout/scaling_chi2_hapflk.py | esohkevin/CamPopStruct | f31094ff1e08cd5b5bf7d171366807b369689d60 | [
"MIT"
] | null | null | null | flk/flkout/scaling_chi2_hapflk.py | esohkevin/CamPopStruct | f31094ff1e08cd5b5bf7d171366807b369689d60 | [
"MIT"
] | 1 | 2021-08-24T21:56:08.000Z | 2021-08-24T21:56:08.000Z | #!/usr/bin/env python2.7
import argparse
import numpy as np
from scipy.stats import chi2
import statsmodels.api as sm
from scipy.optimize import minimize as optim
def set_options():
myparser=argparse.ArgumentParser(description='Estimate hapflk distribution and/or calculate hapFLK p-values')
myparser.add_argum... | 35.333333 | 118 | 0.642138 | 482 | 3,180 | 4.141079 | 0.307054 | 0.018036 | 0.047595 | 0.021042 | 0.279058 | 0.25 | 0.25 | 0.25 | 0.186874 | 0.186874 | 0 | 0.016254 | 0.187421 | 3,180 | 89 | 119 | 35.730337 | 0.756192 | 0.031447 | 0 | 0.222222 | 0 | 0 | 0.113318 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.069444 | 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 |
1c9cfcd5744aaba7bb0cdd9b6837e55ca4018668 | 10,955 | py | Python | mossum/mossum.py | danzou56/mossum | 0bf343d2695671ae3f6fcb4f520c9ed64eef01bf | [
"MIT"
] | null | null | null | mossum/mossum.py | danzou56/mossum | 0bf343d2695671ae3f6fcb4f520c9ed64eef01bf | [
"MIT"
] | null | null | null | mossum/mossum.py | danzou56/mossum | 0bf343d2695671ae3f6fcb4f520c9ed64eef01bf | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Mossum is a tool for summarizing results from Stanford's Moss. The tool
generates a graph for (multiple) results from Moss, which can help in
identifying groups of students that have shared solutions.
The tool can also generate a report, which shows which solutions ar... | 33.501529 | 151 | 0.603012 | 1,470 | 10,955 | 4.412245 | 0.203401 | 0.033919 | 0.047179 | 0.024823 | 0.181622 | 0.146007 | 0.089115 | 0.063521 | 0.030219 | 0.016035 | 0 | 0.006097 | 0.266362 | 10,955 | 326 | 152 | 33.604294 | 0.800921 | 0.045915 | 0 | 0.096386 | 1 | 0.008032 | 0.166731 | 0.004214 | 0 | 0 | 0.002298 | 0 | 0 | 1 | 0.068273 | false | 0 | 0.048193 | 0.008032 | 0.184739 | 0.012048 | 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 |
98bb10f34168aab45762e26a1376ef30c00d4e5a | 842 | py | Python | intermediate+_Day_45_to_57/Day_48-selenium_webdriver/interaction.py | jawad5311/100-days-Python | 9e2c8990365e680d4dcf579c4d7f5d8f0d804566 | [
"Apache-2.0"
] | null | null | null | intermediate+_Day_45_to_57/Day_48-selenium_webdriver/interaction.py | jawad5311/100-days-Python | 9e2c8990365e680d4dcf579c4d7f5d8f0d804566 | [
"Apache-2.0"
] | null | null | null | intermediate+_Day_45_to_57/Day_48-selenium_webdriver/interaction.py | jawad5311/100-days-Python | 9e2c8990365e680d4dcf579c4d7f5d8f0d804566 | [
"Apache-2.0"
] | null | null | null |
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
chrome_driver_path = 'C:/Development/chromedriver.exe'
driver = webdriver.Chrome(chrome_driver_path)
driver.set_window_size(1440, 720)
driver.get('http://secure-retreat-92358.herokuapp.com/')
# stats = driver.find_element_by_css_selecto... | 26.3125 | 68 | 0.787411 | 125 | 842 | 5.008 | 0.44 | 0.095847 | 0.162939 | 0.182109 | 0.255591 | 0.182109 | 0 | 0 | 0 | 0 | 0 | 0.015464 | 0.078385 | 842 | 31 | 69 | 27.16129 | 0.791237 | 0.233967 | 0 | 0 | 0 | 0 | 0.246057 | 0.086751 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 |
98bc46ff468c62729c251382b9842832f9aa24a3 | 415 | py | Python | CodingBat/Warmup_1/sum_double.py | JeffreyAsuncion/CodingProblems_Python | db71cb46b2579c1c65767a644a0ea989da4fa559 | [
"MIT"
] | null | null | null | CodingBat/Warmup_1/sum_double.py | JeffreyAsuncion/CodingProblems_Python | db71cb46b2579c1c65767a644a0ea989da4fa559 | [
"MIT"
] | null | null | null | CodingBat/Warmup_1/sum_double.py | JeffreyAsuncion/CodingProblems_Python | db71cb46b2579c1c65767a644a0ea989da4fa559 | [
"MIT"
] | null | null | null |
"""
Given two int values, return their sum. Unless the two values are the same, then return double their sum.
sum_double(1, 2) → 3
sum_double(3, 2) → 5
sum_double(2, 2) → 8
"""
def sum_double(a, b):
# if a not b return sum
if (a != b):
return a + b
# else return double sum
else:
r... | 14.310345 | 105 | 0.59759 | 78 | 415 | 3.128205 | 0.333333 | 0.258197 | 0.172131 | 0.090164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05298 | 0.272289 | 415 | 28 | 106 | 14.821429 | 0.745033 | 0.520482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.375 | 0.375 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
98c90e7e81bf1d03b939da1d91ad2aafb2623e18 | 3,089 | py | Python | tests/unit/test_config_files.py | ljakab/spectrometer | 92bfcb4987cb362e6686d3694b9cdd2d624368f3 | [
"Apache-2.0"
] | null | null | null | tests/unit/test_config_files.py | ljakab/spectrometer | 92bfcb4987cb362e6686d3694b9cdd2d624368f3 | [
"Apache-2.0"
] | null | null | null | tests/unit/test_config_files.py | ljakab/spectrometer | 92bfcb4987cb362e6686d3694b9cdd2d624368f3 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2013 Mirantis Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 38.135802 | 78 | 0.701845 | 421 | 3,089 | 4.847981 | 0.289786 | 0.075453 | 0.093092 | 0.044096 | 0.422832 | 0.317981 | 0.237629 | 0.2195 | 0.151886 | 0.066634 | 0 | 0.003672 | 0.206539 | 3,089 | 80 | 79 | 38.6125 | 0.829049 | 0.178699 | 0 | 0.04 | 0 | 0 | 0.150278 | 0.077716 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26 | false | 0 | 0.06 | 0 | 0.36 | 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 |
98d6a45dc37d503769c1dc5ef13871756bf487f6 | 604 | py | Python | users/migrations/0004_auto_20180928_1323.py | ianpierreg/recroom | 86c21332ab533ea6aaf7b4a3428f18ba2c4d1ebe | [
"MIT"
] | null | null | null | users/migrations/0004_auto_20180928_1323.py | ianpierreg/recroom | 86c21332ab533ea6aaf7b4a3428f18ba2c4d1ebe | [
"MIT"
] | 4 | 2021-05-02T01:14:59.000Z | 2022-02-13T17:58:36.000Z | users/migrations/0004_auto_20180928_1323.py | ianpierreg/recroom | 86c21332ab533ea6aaf7b4a3428f18ba2c4d1ebe | [
"MIT"
] | null | null | null | # Generated by Django 2.0.7 on 2018-09-28 13:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('interest', '0001_initial'),
('users', '0003_auto_20180916_1903'),
]
operations = [
migrations.AddField(
model_name='prof... | 24.16 | 65 | 0.57947 | 59 | 604 | 5.830508 | 0.711864 | 0.104651 | 0.133721 | 0.156977 | 0.22093 | 0.22093 | 0 | 0 | 0 | 0 | 0 | 0.084706 | 0.296358 | 604 | 24 | 66 | 25.166667 | 0.724706 | 0.074503 | 0 | 0.333333 | 1 | 0 | 0.172352 | 0.041293 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
98d7c6629e80c6b32b6aa113e2049cdbc92e1702 | 8,775 | py | Python | NeuroNLP/neuronlp/io/data_utils.py | adapt-sjtu/novelner | a8f54ffe3360a4fdfa4b154a6668e74459a61ec3 | [
"Apache-2.0"
] | 8 | 2017-06-08T09:48:25.000Z | 2020-07-09T10:51:36.000Z | NeuroNLP/neuronlp/io/data_utils.py | adapt-sjtu/novelner | a8f54ffe3360a4fdfa4b154a6668e74459a61ec3 | [
"Apache-2.0"
] | 1 | 2018-07-07T12:38:25.000Z | 2018-07-07T12:38:25.000Z | NeuroNLP/neuronlp/io/data_utils.py | adapt-sjtu/novelner | a8f54ffe3360a4fdfa4b154a6668e74459a61ec3 | [
"Apache-2.0"
] | 4 | 2018-01-13T01:37:51.000Z | 2019-08-05T12:25:32.000Z | __author__ = 'max'
import os.path
import re
import random
import numpy as np
from .reader import CoNLLReader
from .alphabet import Alphabet
from .logger import get_logger
# Special vocabulary symbols - we always put them at the start.
ROOT = b"_ROOT"
ROOT_POS = b"_ROOT_POS"
ROOT_TYPE = b"_<ROOT>"
ROOT_CHAR = b"_ROOT_... | 37.182203 | 115 | 0.625983 | 1,196 | 8,775 | 4.339465 | 0.156355 | 0.036994 | 0.036994 | 0.040462 | 0.36474 | 0.29499 | 0.257033 | 0.223314 | 0.180347 | 0.164162 | 0 | 0.013448 | 0.271225 | 8,775 | 235 | 116 | 37.340426 | 0.798124 | 0.059145 | 0 | 0.112994 | 0 | 0 | 0.039573 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.039548 | null | null | 0.016949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
98dcdad7fe4fbcf49a85d81854366d47d435889d | 452 | py | Python | qa/migrations/0008_auto_20210509_1737.py | zkeshtkar/gapbug | 2e2f580ccdadfcd564125681f4d89a13a47452bc | [
"MIT"
] | 31 | 2021-03-16T16:04:49.000Z | 2021-10-07T07:05:31.000Z | qa/migrations/0008_auto_20210509_1737.py | zkeshtkar/gapbug | 2e2f580ccdadfcd564125681f4d89a13a47452bc | [
"MIT"
] | 9 | 2021-06-08T08:46:43.000Z | 2022-03-12T00:55:21.000Z | qa/migrations/0008_auto_20210509_1737.py | zkeshtkar/gapbug | 2e2f580ccdadfcd564125681f4d89a13a47452bc | [
"MIT"
] | 14 | 2021-07-10T12:06:10.000Z | 2021-08-17T16:48:00.000Z | # Generated by Django 3.1.7 on 2021-05-09 13:07
from django.conf import settings
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("qa", "0007_auto_20210422_1903"),
]
operations = [
... | 22.6 | 66 | 0.643805 | 48 | 452 | 5.916667 | 0.791667 | 0.070423 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0.245575 | 452 | 19 | 67 | 23.789474 | 0.741935 | 0.099558 | 0 | 0 | 1 | 0 | 0.111111 | 0.05679 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
98e8c8f3f086c702b2ec21a3247f7b039c1514f3 | 1,044 | py | Python | customSDK/servicefabric/models/property_batch_description_list.py | leikong/service-fabric-cli | 6ec1b1c8445b7cc5a889f3b172b47a6017c8888c | [
"MIT"
] | 1 | 2020-06-16T22:32:27.000Z | 2020-06-16T22:32:27.000Z | customSDK/servicefabric/models/property_batch_description_list.py | leikong/service-fabric-cli | 6ec1b1c8445b7cc5a889f3b172b47a6017c8888c | [
"MIT"
] | null | null | null | customSDK/servicefabric/models/property_batch_description_list.py | leikong/service-fabric-cli | 6ec1b1c8445b7cc5a889f3b172b47a6017c8888c | [
"MIT"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 36 | 82 | 0.626437 | 109 | 1,044 | 5.944954 | 0.66055 | 0.018519 | 0.021605 | 0.07716 | 0.108025 | 0.108025 | 0 | 0 | 0 | 0 | 0 | 0.00114 | 0.159962 | 1,044 | 28 | 83 | 37.285714 | 0.737742 | 0.691571 | 0 | 0 | 0 | 0 | 0.175862 | 0.082759 | 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 |
98e93208e162a11f5875f416260eb575a6a8fede | 1,239 | py | Python | course/views.py | wenyali/collocation | 2ac75858d95005041e3997952fc361cf4e7a37e4 | [
"Apache-2.0"
] | null | null | null | course/views.py | wenyali/collocation | 2ac75858d95005041e3997952fc361cf4e7a37e4 | [
"Apache-2.0"
] | null | null | null | course/views.py | wenyali/collocation | 2ac75858d95005041e3997952fc361cf4e7a37e4 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
from django.shortcuts import render_to_response, render
from django.views import generic
from course.models import App, AppCategory
class IndexView(generic.ListView):
template_name = 'index.html'
def get_queryset(self):
"""Return the last five published questions."""
return Ap... | 27.533333 | 65 | 0.67958 | 157 | 1,239 | 5.22293 | 0.375796 | 0.036585 | 0.078049 | 0.065854 | 0.117073 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002024 | 0.202583 | 1,239 | 44 | 66 | 28.159091 | 0.827935 | 0.044391 | 0 | 0.068966 | 0 | 0 | 0.070518 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0 | 0.103448 | 0.034483 | 0.689655 | 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 |
98eb973c48a78046c0cb3379e8e49f5218114917 | 518 | py | Python | datasets/transform.py | roland-klothed/CTSDG | cb631aa67bef81388cb228d15773369a0929c12d | [
"MIT"
] | null | null | null | datasets/transform.py | roland-klothed/CTSDG | cb631aa67bef81388cb228d15773369a0929c12d | [
"MIT"
] | null | null | null | datasets/transform.py | roland-klothed/CTSDG | cb631aa67bef81388cb228d15773369a0929c12d | [
"MIT"
] | null | null | null | from PIL import Image
from torchvision import transforms
def image_transforms(load_size):
return transforms.Compose([
# transforms.CenterCrop(size=(178, 178)), # for CelebA
transforms.RandomCrop(size=load_size),
transforms.ToTensor(),
transforms.Normalize((0.5, 0.5, 0.5), (0.... | 23.545455 | 72 | 0.664093 | 62 | 518 | 5.451613 | 0.387097 | 0.035503 | 0.044379 | 0.059172 | 0.337278 | 0.337278 | 0.337278 | 0.035503 | 0.035503 | 0.035503 | 0 | 0.044118 | 0.212355 | 518 | 21 | 73 | 24.666667 | 0.784314 | 0.100386 | 0 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0.153846 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
98efbe5751c551707d0512a974e097d0d64e01b4 | 3,654 | py | Python | searchlist/searchlist/views.py | kurtrm/homeless_to_health | c60f8f54c1bc4716cd34dbd718b4930c71c781a3 | [
"MIT"
] | 5 | 2017-07-27T03:11:30.000Z | 2017-08-10T20:02:02.000Z | searchlist/searchlist/views.py | kurtrm/homeless_to_health | c60f8f54c1bc4716cd34dbd718b4930c71c781a3 | [
"MIT"
] | 26 | 2017-07-28T17:44:53.000Z | 2017-09-20T22:52:26.000Z | searchlist/searchlist/views.py | kurtrm/homeless_to_hearth | c60f8f54c1bc4716cd34dbd718b4930c71c781a3 | [
"MIT"
] | 1 | 2018-03-23T23:18:25.000Z | 2018-03-23T23:18:25.000Z | """View page for our homeless to hearth app."""
from __future__ import unicode_literals
from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin
from django.urls import reverse_lazy
from django.views.generic import DetailView
from django.views.generic.list import ListView
from django.views.generic... | 32.052632 | 78 | 0.694581 | 417 | 3,654 | 5.901679 | 0.29976 | 0.047542 | 0.053637 | 0.026818 | 0.294596 | 0.294596 | 0.225112 | 0.225112 | 0.225112 | 0.199106 | 0 | 0 | 0.204981 | 3,654 | 113 | 79 | 32.336283 | 0.84716 | 0.123974 | 0 | 0.368421 | 0 | 0 | 0.091866 | 0.045614 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0.039474 | 0.118421 | 0 | 0.631579 | 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 |
98f7e6ae97808ecab99ef6ba348a432bb0a9e234 | 2,598 | py | Python | vedacore/parallel/_functions.py | jie311/vedadet | aaf3b3bc3c7944aba1cc28138165d403023a9152 | [
"Apache-2.0"
] | 424 | 2020-10-19T03:56:49.000Z | 2022-03-28T02:47:39.000Z | vedacore/parallel/_functions.py | jie311/vedadet | aaf3b3bc3c7944aba1cc28138165d403023a9152 | [
"Apache-2.0"
] | 72 | 2020-11-27T17:10:00.000Z | 2022-03-17T02:40:53.000Z | vedacore/parallel/_functions.py | jie311/vedadet | aaf3b3bc3c7944aba1cc28138165d403023a9152 | [
"Apache-2.0"
] | 116 | 2020-11-03T02:31:17.000Z | 2022-03-08T08:20:48.000Z | # Copyright (c) Open-MMLab. All rights reserved.
import torch
from torch.nn.parallel._functions import _get_stream
def scatter(input, devices, streams=None):
"""Scatters tensor across multiple GPUs.
"""
if streams is None:
streams = [None] * len(devices)
if isinstance(input, list):
ch... | 34.184211 | 76 | 0.605851 | 317 | 2,598 | 4.845426 | 0.264984 | 0.057292 | 0.019531 | 0.037109 | 0.204427 | 0.147135 | 0.072917 | 0.050781 | 0 | 0 | 0 | 0.007054 | 0.290608 | 2,598 | 75 | 77 | 34.64 | 0.82637 | 0.08853 | 0 | 0.157895 | 0 | 0 | 0.03476 | 0 | 0 | 0 | 0 | 0.013333 | 0 | 1 | 0.070175 | false | 0 | 0.035088 | 0 | 0.22807 | 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 |
98fd761103c9ac28c18da79eb80d4a9fc7e0e4eb | 31,769 | py | Python | ciscota_connector.py | splunk-soar-connectors/ciscota | 1c55477e91de8ff8b08498e937e408c290bdc99c | [
"Apache-2.0"
] | null | null | null | ciscota_connector.py | splunk-soar-connectors/ciscota | 1c55477e91de8ff8b08498e937e408c290bdc99c | [
"Apache-2.0"
] | null | null | null | ciscota_connector.py | splunk-soar-connectors/ciscota | 1c55477e91de8ff8b08498e937e408c290bdc99c | [
"Apache-2.0"
] | null | null | null | # File: ciscota_connector.py
#
# Copyright (c) 2018 Splunk Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 39.172626 | 156 | 0.647675 | 3,882 | 31,769 | 5.044307 | 0.118753 | 0.093147 | 0.027781 | 0.027168 | 0.523951 | 0.481667 | 0.44975 | 0.432336 | 0.408487 | 0.379634 | 0 | 0.003239 | 0.271082 | 31,769 | 810 | 157 | 39.220988 | 0.84238 | 0.103749 | 0 | 0.302439 | 0 | 0.002439 | 0.059907 | 0.00197 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.002439 | 0.034146 | null | null | 0.041463 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
98fe9e0a220daf036c64bf9bb65712c5baba8657 | 912 | py | Python | choicapp/migrations/0010_auto_20160501_1946.py | mattthieu/tedok | 82bf10bd0da7889472af34c47fce3a7e6be65840 | [
"MIT"
] | null | null | null | choicapp/migrations/0010_auto_20160501_1946.py | mattthieu/tedok | 82bf10bd0da7889472af34c47fce3a7e6be65840 | [
"MIT"
] | null | null | null | choicapp/migrations/0010_auto_20160501_1946.py | mattthieu/tedok | 82bf10bd0da7889472af34c47fce3a7e6be65840 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-05-01 19:46
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('choicapp', '0009_glossary_word'),
]
operations = [
... | 29.419355 | 188 | 0.594298 | 91 | 912 | 5.791209 | 0.681319 | 0.045541 | 0.053131 | 0.083491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030257 | 0.275219 | 912 | 30 | 189 | 30.4 | 0.76702 | 0.073465 | 0 | 0.086957 | 1 | 0 | 0.131829 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.26087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c700df258ecff8f45d84bf1b5dc181cd5e01b0a5 | 6,117 | py | Python | dataStructure/allOone/allOone.py | sphinxyun/algorithm-in-python | b69b5641d0457f5dcfe824755d9c302340980114 | [
"WTFPL"
] | 1 | 2020-05-14T06:15:29.000Z | 2020-05-14T06:15:29.000Z | dataStructure/allOone/allOone.py | pritul95/algorithm-in-python | b69b5641d0457f5dcfe824755d9c302340980114 | [
"WTFPL"
] | null | null | null | dataStructure/allOone/allOone.py | pritul95/algorithm-in-python | b69b5641d0457f5dcfe824755d9c302340980114 | [
"WTFPL"
] | 1 | 2022-03-22T00:32:56.000Z | 2022-03-22T00:32:56.000Z | ''' mbinary
#########################################################################
# File : allOoneDS.py
# Author: mbinary
# Mail: zhuheqin1@gmail.com
# Blog: https://mbinary.xyz
# Github: https://github.com/mbinary
# Created Time: 2018-05-19 23:07
# Description:
####################################################... | 28.584112 | 103 | 0.542423 | 938 | 6,117 | 3.414712 | 0.147122 | 0.098345 | 0.1202 | 0.135498 | 0.504215 | 0.449891 | 0.326569 | 0.256947 | 0.238839 | 0.210428 | 0 | 0.024222 | 0.264345 | 6,117 | 213 | 104 | 28.71831 | 0.687556 | 0.154978 | 0 | 0.122807 | 0 | 0 | 0.024569 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.254386 | false | 0 | 0 | 0.087719 | 0.403509 | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c702b140acfbef3ec2ab709e18f373f7c95c2a2c | 4,107 | py | Python | driver.py | Alex92rus/googleFoobarSummoner | c91625cfabc9052e243a7068f4ffb77ec5e88608 | [
"MIT"
] | null | null | null | driver.py | Alex92rus/googleFoobarSummoner | c91625cfabc9052e243a7068f4ffb77ec5e88608 | [
"MIT"
] | 2 | 2019-08-26T08:26:05.000Z | 2019-08-26T10:11:37.000Z | driver.py | Alex92rus/googleFoobarSummoner | c91625cfabc9052e243a7068f4ffb77ec5e88608 | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.common.by import By
from configparser import ConfigParser
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriv... | 42.340206 | 108 | 0.664475 | 482 | 4,107 | 5.412863 | 0.238589 | 0.088156 | 0.042928 | 0.064392 | 0.360291 | 0.246071 | 0.215408 | 0.153315 | 0.11307 | 0 | 0 | 0.003131 | 0.222303 | 4,107 | 96 | 109 | 42.78125 | 0.813713 | 0 | 0 | 0.02439 | 0 | 0 | 0.101047 | 0.027514 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085366 | false | 0.097561 | 0.097561 | 0 | 0.207317 | 0.012195 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c70421efa34c38a8397d7b30256d1f821a717024 | 447 | py | Python | tests/test_utils.py | hw2814/pt-avitm | c0ff6f8a1253be33bb7ade513398ef10babbb144 | [
"MIT"
] | 36 | 2019-03-05T01:05:53.000Z | 2021-08-11T06:46:54.000Z | tests/test_utils.py | hw2814/pt-avitm | c0ff6f8a1253be33bb7ade513398ef10babbb144 | [
"MIT"
] | 24 | 2019-01-01T15:01:52.000Z | 2021-06-16T23:15:49.000Z | tests/test_utils.py | hw2814/pt-avitm | c0ff6f8a1253be33bb7ade513398ef10babbb144 | [
"MIT"
] | 7 | 2019-05-01T10:44:50.000Z | 2021-06-09T21:38:58.000Z | import numpy as np
from scipy.sparse import csr_matrix
from ptavitm.utils import CountTensorDataset
def test_shape():
test_matrix = csr_matrix(np.eye(10))
dataset = CountTensorDataset(test_matrix)
assert len(dataset) == 10
for item in range(10):
assert isinstance(dataset[item], tuple)
... | 27.9375 | 47 | 0.677852 | 62 | 447 | 4.806452 | 0.451613 | 0.147651 | 0.161074 | 0.134228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036827 | 0.210291 | 447 | 15 | 48 | 29.8 | 0.807365 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.416667 | 1 | 0.083333 | false | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c705d7392d171217f716363b4a883158ca254a93 | 4,999 | py | Python | columns_table.py | rlowrance/re-avm | d4cfa62e9f65d325e8ac98caa61d3fb666b8a6a2 | [
"BSD-3-Clause"
] | 25 | 2016-10-07T05:08:15.000Z | 2022-03-22T01:36:51.000Z | columns_table.py | rlowrance/re-avm | d4cfa62e9f65d325e8ac98caa61d3fb666b8a6a2 | [
"BSD-3-Clause"
] | 1 | 2021-01-14T22:27:23.000Z | 2021-01-14T22:27:23.000Z | columns_table.py | rlowrance/re-avm | d4cfa62e9f65d325e8ac98caa61d3fb666b8a6a2 | [
"BSD-3-Clause"
] | 8 | 2016-08-12T07:26:29.000Z | 2021-07-05T01:22:42.000Z | '''produce a columns table .txt file from a csv file
INVOCATION
python columns_table.py --in PATH --out PATH --columndefs PATH --select COLUMN_NAMES --header HEADER_lines
API: none, yet maybe as below
make_columns_table(input_lines, selected_columns, columns_def) -> ColumnsTable
INPUTS
in_PATH
columnsdefs_PATH
... | 28.895954 | 108 | 0.652731 | 651 | 4,999 | 4.788018 | 0.248848 | 0.076997 | 0.038178 | 0.044915 | 0.178377 | 0.124479 | 0.081489 | 0.061598 | 0.061598 | 0.033365 | 0 | 0.002937 | 0.25085 | 4,999 | 172 | 109 | 29.063953 | 0.829373 | 0.054211 | 0 | 0.188034 | 0 | 0 | 0.053798 | 0 | 0 | 0 | 0 | 0 | 0.008547 | 0 | null | null | 0.008547 | 0.08547 | null | null | 0.059829 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c714244748b0e5d7b8ce96a5134c6f1728d78bdc | 672 | py | Python | stochpy/pscmodels/CellDivision.py | bgoli/stochpy | ba06e5eaf1204dbc8ea39996ff8a08e9b0b5997d | [
"BSD-3-Clause"
] | 35 | 2016-02-29T22:56:07.000Z | 2022-03-06T17:21:29.000Z | stochpy/pscmodels/CellDivision.py | bgoli/stochpy | ba06e5eaf1204dbc8ea39996ff8a08e9b0b5997d | [
"BSD-3-Clause"
] | 6 | 2016-10-13T12:43:54.000Z | 2021-04-30T09:06:59.000Z | stochpy/pscmodels/CellDivision.py | bgoli/stochpy | ba06e5eaf1204dbc8ea39996ff8a08e9b0b5997d | [
"BSD-3-Clause"
] | 13 | 2016-07-07T19:49:25.000Z | 2021-05-14T20:24:17.000Z | model = """# Stochastic Simulation Algorithm input format
R1:
$pool > TF
kTFsyn
R2:
TF > $pool
kTFdeg*TF
R3:
TFactive > $pool
kTFdeg*TFactive
R4:
TF > TFactive
kActivate*TF
R5:
TFactive > TF
kInactivate*TFactive
R6:
TFactive > mRNA + TFactive
kmRNAsyn*(TFactive/(TFact... | 14 | 57 | 0.635417 | 82 | 672 | 5.207317 | 0.487805 | 0.046838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079755 | 0.272321 | 672 | 47 | 58 | 14.297872 | 0.793456 | 0 | 0 | 0 | 0 | 0 | 0.977679 | 0.049107 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7232472b8027783be691eebaadeabb820de6b2e | 890 | py | Python | motor/motor.py | dthompson-personal/pi-robot-shop | 19ed4bc2727bc1681b7aed906fd95f58cc2f9fbe | [
"MIT"
] | 1 | 2019-01-08T00:12:38.000Z | 2019-01-08T00:12:38.000Z | motor/motor.py | dthompson-personal/pi-robot-shop | 19ed4bc2727bc1681b7aed906fd95f58cc2f9fbe | [
"MIT"
] | null | null | null | motor/motor.py | dthompson-personal/pi-robot-shop | 19ed4bc2727bc1681b7aed906fd95f58cc2f9fbe | [
"MIT"
] | null | null | null | import RPi.GPIO as GPIO
from time import sleep
#GPIO.setmode(GPIO.BOARD)
class GpioMotor():
def __init__(self, in1,in2,en,freq=50,duty=100):
self.in1=in1
self.in2=in2
self.en=en
self.freq = freq
self.duty = duty
GPIO.setup(self.in1, GPIO.OUT)
GPIO.setup(self.in2, GPIO.OUT)
GPIO... | 21.707317 | 67 | 0.646067 | 142 | 890 | 3.992958 | 0.260563 | 0.074074 | 0.098765 | 0.056437 | 0.324515 | 0.10582 | 0.10582 | 0.10582 | 0 | 0 | 0 | 0.029412 | 0.197753 | 890 | 40 | 68 | 22.25 | 0.764706 | 0.042697 | 0 | 0.142857 | 0 | 0 | 0.030588 | 0.030588 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0.035714 | 0.357143 | 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 |
c72617974b0b93cdbfbfd71721e62ebb832d5155 | 1,053 | py | Python | r2l/rerank.py | thilakshiK/wmt16-scripts | 7fa32971e2927c397434df2e0f171834abf0b07a | [
"MIT"
] | 132 | 2016-05-20T15:59:48.000Z | 2022-03-30T13:58:50.000Z | r2l/rerank.py | chenyangh/wmt16-scripts | 9695851c150fedbac3418915b251a75292d7d527 | [
"MIT"
] | 14 | 2016-07-14T16:14:14.000Z | 2022-02-16T18:49:18.000Z | r2l/rerank.py | chenyangh/wmt16-scripts | 9695851c150fedbac3418915b251a75292d7d527 | [
"MIT"
] | 66 | 2016-05-17T06:27:16.000Z | 2022-02-24T13:14:29.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Author: Rico Sennrich
# Distributed under MIT license
import sys
from collections import defaultdict
if __name__ == '__main__':
if len(sys.argv) > 1:
k = int(sys.argv[1])
else:
k = float('inf')
cur = 0
best_score = float('inf')
best_sent ... | 22.891304 | 90 | 0.548908 | 132 | 1,053 | 4.234848 | 0.469697 | 0.096601 | 0.028623 | 0.060823 | 0.200358 | 0.200358 | 0.103757 | 0.103757 | 0 | 0 | 0 | 0.010204 | 0.348528 | 1,053 | 45 | 91 | 23.4 | 0.804665 | 0.276353 | 0 | 0.296296 | 0 | 0 | 0.029216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.074074 | null | null | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c73a3fe36451c175389a97e9e2f568edfef8ce89 | 474 | py | Python | keyfree/test/util.py | Osper/keyfree | 4ab6b109ef3a82952cf784525fe70896cb98dead | [
"MIT"
] | 11 | 2016-11-01T20:56:31.000Z | 2021-11-15T09:38:42.000Z | keyfree/test/util.py | nickrw/keyfree | 4ab6b109ef3a82952cf784525fe70896cb98dead | [
"MIT"
] | null | null | null | keyfree/test/util.py | nickrw/keyfree | 4ab6b109ef3a82952cf784525fe70896cb98dead | [
"MIT"
] | null | null | null | def downcase_keys(dict_):
return {k.lower(): v for k, v in dict_.items()}
def assert_aws4auth_in_headers(headers):
lc_headers = downcase_keys(headers)
assert 'authorization' in lc_headers
assert 'x-amz-date' in lc_headers
assert 'x-amz-content-sha256' in lc_headers
auth_header = lc_headers.get... | 31.6 | 51 | 0.723629 | 71 | 474 | 4.591549 | 0.408451 | 0.138037 | 0.101227 | 0.104294 | 0.128834 | 0.128834 | 0 | 0 | 0 | 0 | 0 | 0.012887 | 0.181435 | 474 | 14 | 52 | 33.857143 | 0.82732 | 0 | 0 | 0 | 0 | 0 | 0.172996 | 0 | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0.166667 | false | 0 | 0 | 0.083333 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c73c968d3748f894884edd5e1f5d65645c28f876 | 11,549 | py | Python | test/run_tests.py | muellan/generic | 23d9af89eb059d4eb0c8ae762f117962e01e7685 | [
"MIT"
] | 6 | 2015-04-17T17:56:30.000Z | 2021-11-03T10:56:03.000Z | deps/clipp-1.1.0/test/run_tests.py | mbeckem/prequel | 06aa153ebf617c779e66d612cfc11e01869c602a | [
"MIT"
] | null | null | null | deps/clipp-1.1.0/test/run_tests.py | mbeckem/prequel | 06aa153ebf617c779e66d612cfc11e01869c602a | [
"MIT"
] | null | null | null | #!/usr/bin/python
###############################################################################
#
# builds and runs tests, resolves include dependencies
#
# see help for usage:
# ./run_tests.py --help
#
# (c) 2013-2017 Andre Mueller
#
###############################################################################... | 29.997403 | 114 | 0.461598 | 1,090 | 11,549 | 4.887156 | 0.285321 | 0.018772 | 0.010325 | 0.007884 | 0.082035 | 0.054815 | 0.054815 | 0.054815 | 0.023653 | 0.023653 | 0 | 0.006283 | 0.393627 | 11,549 | 384 | 115 | 30.075521 | 0.754391 | 0.042255 | 0 | 0.170732 | 0 | 0 | 0.205602 | 0.027351 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.020906 | 0.038328 | null | null | 0.111498 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c73cda809597624b2f9a4b8defb1bdba0f79156e | 5,184 | py | Python | crawler/project/accurate_sinanews/accurate_sinanews/spiders/spider_accurate_sinanews.py | kangyijie5473/Distributed_crawler | 233f77748b039d342adb26324737b2d6efff33ad | [
"MIT"
] | 3 | 2018-04-30T07:53:01.000Z | 2021-12-09T11:28:59.000Z | crawler/project/accurate_sinanews/accurate_sinanews/spiders/spider_accurate_sinanews.py | kangyijie5473/Distributed_crawler | 233f77748b039d342adb26324737b2d6efff33ad | [
"MIT"
] | null | null | null | crawler/project/accurate_sinanews/accurate_sinanews/spiders/spider_accurate_sinanews.py | kangyijie5473/Distributed_crawler | 233f77748b039d342adb26324737b2d6efff33ad | [
"MIT"
] | 4 | 2017-11-22T06:05:39.000Z | 2021-12-09T11:29:01.000Z | # -*- coding: utf-8 -*-
import scrapy
import re
import urllib2
import random
import jieba
import jieba.analyse
from optparse import OptionParser
from docopt import docopt
from time import sleep
from scrapy import Request
from accurate_sinanews.items import AccurateSinanewsItem
from kazoo.client import KazooClient
... | 33.882353 | 138 | 0.554398 | 614 | 5,184 | 4.54886 | 0.309446 | 0.035446 | 0.045113 | 0.030075 | 0.090942 | 0.090942 | 0.055854 | 0.055854 | 0.055854 | 0 | 0 | 0.026158 | 0.292052 | 5,184 | 152 | 139 | 34.105263 | 0.734877 | 0.078318 | 0 | 0.131579 | 0 | 0.017544 | 0.142737 | 0.035055 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008772 | 0.149123 | null | null | 0.078947 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c74109f6c24792c1aa987c945064b87db86ed765 | 1,452 | py | Python | src/nlp/PlatformNlp/tasks/multi_class.py | jd-aig/aves2_algorithm_components | 12e06717596b824f7b0db115b95856606b97cd82 | [
"Apache-2.0"
] | 1 | 2021-02-20T09:31:33.000Z | 2021-02-20T09:31:33.000Z | src/nlp/PlatformNlp/tasks/multi_class.py | jd-aig/aves2_algorithm_components | 12e06717596b824f7b0db115b95856606b97cd82 | [
"Apache-2.0"
] | null | null | null | src/nlp/PlatformNlp/tasks/multi_class.py | jd-aig/aves2_algorithm_components | 12e06717596b824f7b0db115b95856606b97cd82 | [
"Apache-2.0"
] | 1 | 2020-12-08T05:12:40.000Z | 2020-12-08T05:12:40.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import logging
import os
import numpy as np
import codecs
import random
from PlatformNlp import utils
from PlatformNlp.data.dictionary import... | 25.928571 | 79 | 0.686639 | 183 | 1,452 | 5.300546 | 0.508197 | 0.061856 | 0.043299 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0018 | 0.234848 | 1,452 | 55 | 80 | 26.4 | 0.871287 | 0.251377 | 0 | 0 | 0 | 0 | 0.080645 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 1 | 0.16129 | false | 0 | 0.322581 | 0.032258 | 0.612903 | 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 |
c7496a04d776ad47d66a817b4051c0c214c7e926 | 239 | py | Python | setup.py | srinarayanant/terraform-provider-vcloud-director-1 | 1e805550e69fb5284d4a746a2f86326ec72c565f | [
"BSD-2-Clause"
] | 21 | 2018-01-14T22:08:18.000Z | 2020-01-22T16:46:04.000Z | setup.py | srinarayanant/terraform-provider-vcloud-director-1 | 1e805550e69fb5284d4a746a2f86326ec72c565f | [
"BSD-2-Clause"
] | 12 | 2018-01-13T20:16:09.000Z | 2018-12-25T18:42:34.000Z | setup.py | srinarayanant/terraform-provider-vcloud-director-1 | 1e805550e69fb5284d4a746a2f86326ec72c565f | [
"BSD-2-Clause"
] | 11 | 2018-01-13T19:17:13.000Z | 2019-09-19T05:21:58.000Z | # terraform-provider-vcloud-director
# Copyright (c) 2017 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: BSD-2-Clause
from setuptools import setup
setup(
setup_requires=['pbr>=1.9', 'setuptools>=17.1'],
pbr=True,
)
| 21.727273 | 54 | 0.715481 | 33 | 239 | 5.151515 | 0.848485 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048544 | 0.138075 | 239 | 10 | 55 | 23.9 | 0.776699 | 0.523013 | 0 | 0 | 0 | 0 | 0.218182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c74f2b241a139b9a74b9bb7b34ad417513d8cecb | 1,854 | py | Python | Projects/Web Scrape/Indiabix/AptiQ&A.py | Vinay26k/python | 9acfb8b6a2ba2dbe0621edf2260d29cc0e3b087d | [
"MIT"
] | 3 | 2019-02-22T12:57:15.000Z | 2021-08-07T16:27:47.000Z | Projects/Web Scrape/Indiabix/AptiQ&A.py | Vinay26k/python | 9acfb8b6a2ba2dbe0621edf2260d29cc0e3b087d | [
"MIT"
] | null | null | null | Projects/Web Scrape/Indiabix/AptiQ&A.py | Vinay26k/python | 9acfb8b6a2ba2dbe0621edf2260d29cc0e3b087d | [
"MIT"
] | 2 | 2019-04-27T06:02:12.000Z | 2020-12-16T14:50:41.000Z | from bs4 import BeautifulSoup as bs
import requests
import os
dest = r'./Aptitude'
if not os.path.exists(dest):
print "Aptitude Folder Created"
os.makedirs(dest)
f = open('AptiLinks.txt','r')
links = f.read().split('\n')
f.close()
#print links
#f = open('Q&A.txt','w+')
def cred():
print '''
https... | 31.965517 | 88 | 0.496764 | 246 | 1,854 | 3.707317 | 0.386179 | 0.046053 | 0.071272 | 0.046053 | 0.224781 | 0.192982 | 0.142544 | 0.059211 | 0.059211 | 0 | 0 | 0.018942 | 0.316613 | 1,854 | 57 | 89 | 32.526316 | 0.700868 | 0.023732 | 0 | 0.043478 | 0 | 0 | 0.253706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.065217 | null | null | 0.152174 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c74f468278fb38aad62d352e865a03f1658ca57e | 491 | py | Python | parsec/commands/tools/paste_content.py | abretaud/parsec | 8ebcafac34b5d6df45de4cecc882b129bb604170 | [
"Apache-2.0"
] | null | null | null | parsec/commands/tools/paste_content.py | abretaud/parsec | 8ebcafac34b5d6df45de4cecc882b129bb604170 | [
"Apache-2.0"
] | null | null | null | parsec/commands/tools/paste_content.py | abretaud/parsec | 8ebcafac34b5d6df45de4cecc882b129bb604170 | [
"Apache-2.0"
] | null | null | null | import click
from parsec.cli import pass_context, json_loads
from parsec.decorators import custom_exception, dict_output, _arg_split
@click.command('paste_content')
@click.argument("content", type=str)
@click.argument("history_id", type=str)
@pass_context
@custom_exception
@dict_output
def cli(ctx, content, history_... | 23.380952 | 83 | 0.759674 | 71 | 491 | 5.042254 | 0.549296 | 0.100559 | 0.106145 | 0.139665 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132383 | 491 | 20 | 84 | 24.55 | 0.840376 | 0.173116 | 0 | 0 | 0 | 0 | 0.077121 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.181818 | 0.272727 | 0 | 0.454545 | 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 |
c75642316237c5a19172dac4792b50f545cba25b | 926 | py | Python | setup.py | joernheissler/asks | d5e40bf81024cf28ebc644c41418acc28ad65c00 | [
"MIT"
] | null | null | null | setup.py | joernheissler/asks | d5e40bf81024cf28ebc644c41418acc28ad65c00 | [
"MIT"
] | null | null | null | setup.py | joernheissler/asks | d5e40bf81024cf28ebc644c41418acc28ad65c00 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from setuptools import setup
from sys import version_info
if version_info < (3, 5, 2):
# 3.5.2 is when __aiter__ became a synchronous function
raise SystemExit('Sorry! asks requires python 3.5.2 or later.')
setup(
name='asks',
description='asks - async http',
long_descripti... | 30.866667 | 68 | 0.62527 | 116 | 926 | 4.905172 | 0.637931 | 0.010545 | 0.015817 | 0.091388 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030598 | 0.223542 | 926 | 29 | 69 | 31.931034 | 0.760779 | 0.080994 | 0 | 0 | 0 | 0 | 0.4947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7567d0240960680c6649e4c7e58dd953f81f1c2 | 1,654 | py | Python | user_feedback/migrations/0001_initial.py | SALTISES4/UserFeedback | 0d6807a3ea5a9ff4e617fadf2208e04e4e04bd57 | [
"BSD-3-Clause"
] | null | null | null | user_feedback/migrations/0001_initial.py | SALTISES4/UserFeedback | 0d6807a3ea5a9ff4e617fadf2208e04e4e04bd57 | [
"BSD-3-Clause"
] | null | null | null | user_feedback/migrations/0001_initial.py | SALTISES4/UserFeedback | 0d6807a3ea5a9ff4e617fadf2208e04e4e04bd57 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 2.2.16 on 2020-09-12 22:38
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)]
operations = [
... | 31.807692 | 84 | 0.426239 | 123 | 1,654 | 5.585366 | 0.585366 | 0.034935 | 0.040757 | 0.064047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030093 | 0.47763 | 1,654 | 51 | 85 | 32.431373 | 0.765046 | 0.027811 | 0 | 0.136364 | 1 | 0 | 0.081569 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068182 | 0 | 0.159091 | 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 |
c75891defba8870cc5e4ef89b4a0cf51581c70aa | 1,458 | py | Python | demos/sort.py | bahmanahmadi/mpyc | 02b912eae4a03c4b7158c3ecb0365b6984920cec | [
"MIT"
] | 232 | 2018-05-31T12:21:10.000Z | 2022-03-31T08:28:03.000Z | demos/sort.py | bahmanahmadi/mpyc | 02b912eae4a03c4b7158c3ecb0365b6984920cec | [
"MIT"
] | 30 | 2018-06-14T08:45:37.000Z | 2022-03-20T08:33:44.000Z | demos/sort.py | bahmanahmadi/mpyc | 02b912eae4a03c4b7158c3ecb0365b6984920cec | [
"MIT"
] | 61 | 2018-06-01T12:31:49.000Z | 2022-03-20T12:14:39.000Z | """Demo oblivious sorting in MPyC, with full secrecy.
Randomly generated secret-shared lists of numbers (integers or fixed-point numbers)
are sorted using MPyC's built-in functions mcp.sorted() and seclist.sort(),
which are the secure counterparts of Python's built-in function sorted() and
list.sort(), respectively.
"... | 33.136364 | 83 | 0.646776 | 215 | 1,458 | 4.348837 | 0.4 | 0.029947 | 0.059893 | 0.048128 | 0.265241 | 0.265241 | 0.265241 | 0.265241 | 0.265241 | 0.265241 | 0 | 0.006189 | 0.22428 | 1,458 | 43 | 84 | 33.906977 | 0.820513 | 0.298354 | 0 | 0.275862 | 1 | 0 | 0.186575 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.103448 | 0 | 0.103448 | 0.241379 | 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 |
c759225abd254e6e78e0b7199184a107dc6aa34d | 2,671 | py | Python | h/presenters/group_json.py | tgiardina/rpp-h | fece590f901b052a59c19a24acfeba52cee33c84 | [
"BSD-2-Clause"
] | null | null | null | h/presenters/group_json.py | tgiardina/rpp-h | fece590f901b052a59c19a24acfeba52cee33c84 | [
"BSD-2-Clause"
] | null | null | null | h/presenters/group_json.py | tgiardina/rpp-h | fece590f901b052a59c19a24acfeba52cee33c84 | [
"BSD-2-Clause"
] | null | null | null | from h.presenters.organization_json import OrganizationJSONPresenter
class GroupJSONPresenter:
"""Present a group in the JSON format returned by API requests."""
def __init__(self, group_context):
self.context = group_context
self.organization_context = self.context.organization
self.... | 36.589041 | 83 | 0.604642 | 290 | 2,671 | 5.475862 | 0.348276 | 0.062343 | 0.072418 | 0.020151 | 0.032746 | 0.032746 | 0 | 0 | 0 | 0 | 0 | 0.000546 | 0.314489 | 2,671 | 72 | 84 | 37.097222 | 0.865647 | 0.239236 | 0 | 0.1 | 0 | 0 | 0.057157 | 0 | 0 | 0 | 0 | 0.013889 | 0 | 1 | 0.12 | false | 0 | 0.02 | 0.02 | 0.26 | 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 |
c759474f9070b615fa455bf12df86ad788ef85fa | 550 | py | Python | examples/host_external_norestart.py | virtualgod/python-sc2 | 7225e56e25aa1bc55cda715fd00bedc796207d2c | [
"MIT"
] | 621 | 2017-08-17T05:43:15.000Z | 2022-03-29T07:46:23.000Z | examples/host_external_norestart.py | virtualgod/python-sc2 | 7225e56e25aa1bc55cda715fd00bedc796207d2c | [
"MIT"
] | 212 | 2017-12-08T12:37:48.000Z | 2022-03-12T10:31:00.000Z | examples/host_external_norestart.py | virtualgod/python-sc2 | 7225e56e25aa1bc55cda715fd00bedc796207d2c | [
"MIT"
] | 242 | 2017-08-17T01:21:32.000Z | 2022-03-13T12:51:38.000Z | import argparse
import sys
import asyncio
import sc2
from sc2 import Race
from sc2.player import Bot
from zerg.zerg_rush import ZergRushBot
def main():
portconfig = sc2.portconfig.Portconfig()
print(portconfig.as_json)
player_config = [
Bot(Race.Zerg, ZergRushBot()),
Bot(Race.Zerg, None... | 17.1875 | 44 | 0.645455 | 69 | 550 | 4.927536 | 0.507246 | 0.041176 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014742 | 0.26 | 550 | 31 | 45 | 17.741935 | 0.820639 | 0 | 0 | 0 | 0 | 0 | 0.041818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.304348 | 0 | 0.347826 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c76af428d9eee1551bc4c7d70155714ebb86518b | 288 | py | Python | app/ipssh/paramikossh.py | gheros/testlb | cd7d1ee62b15a4658c28f50c440b9d4086974e15 | [
"MIT"
] | null | null | null | app/ipssh/paramikossh.py | gheros/testlb | cd7d1ee62b15a4658c28f50c440b9d4086974e15 | [
"MIT"
] | null | null | null | app/ipssh/paramikossh.py | gheros/testlb | cd7d1ee62b15a4658c28f50c440b9d4086974e15 | [
"MIT"
] | null | null | null | import paramiko
# t = paramiko.Transport(("172.16.20.120", "端口"))
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect("172.16.60.120",22,"root", "34shidai")
stdin, stdout, stderr = ssh.exec_command("ls")
print (stdout.readlines())
ssh.close() | 32 | 57 | 0.732639 | 42 | 288 | 4.904762 | 0.738095 | 0.048544 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089888 | 0.072917 | 288 | 9 | 58 | 32 | 0.681648 | 0.163194 | 0 | 0 | 0 | 0 | 0.1125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c76dfc0814e4cc0e5a372017eb447edf937817c8 | 2,180 | py | Python | app/snippets/hash_passwords.py | taeram/aflutter | e21ae96e09a7e79d5876d9e9f45dafa3187cd613 | [
"MIT"
] | 7 | 2015-05-08T21:37:27.000Z | 2019-01-01T22:11:07.000Z | app/library/hash_passwords.py | taeram/ineffable | fcaf1cc405f9e4dc3346fa91338b75b195325f84 | [
"MIT"
] | null | null | null | app/library/hash_passwords.py | taeram/ineffable | fcaf1cc405f9e4dc3346fa91338b75b195325f84 | [
"MIT"
] | null | null | null | # coding: utf8
"""Securely hash and check passwords using PBKDF2.
Use random salts to protect againt rainbow tables, many iterations against
brute-force, and constant-time comparaison againt timing attacks.
Keep parameters to the algorithm together with the hash so that we can
change the parameters and keep older has... | 34.0625 | 76 | 0.699083 | 311 | 2,180 | 4.778135 | 0.446945 | 0.023553 | 0.024226 | 0.020188 | 0.106326 | 0.071332 | 0.071332 | 0.071332 | 0.071332 | 0 | 0 | 0.028193 | 0.202752 | 2,180 | 63 | 77 | 34.603175 | 0.826812 | 0.447248 | 0 | 0.125 | 0 | 0 | 0.034775 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.0625 | false | 0.25 | 0.15625 | 0 | 0.28125 | 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 |
c76f78928bf55034320756785caf135669ee4735 | 318 | py | Python | lot/auth_backend.py | ABASystems/django-lot | 79070b54dc4a8faad8a77d8221b12553c4e9ff0a | [
"BSD-3-Clause"
] | null | null | null | lot/auth_backend.py | ABASystems/django-lot | 79070b54dc4a8faad8a77d8221b12553c4e9ff0a | [
"BSD-3-Clause"
] | 2 | 2015-09-15T07:22:26.000Z | 2015-09-24T07:00:25.000Z | lot/auth_backend.py | uptick/django-lot | 79070b54dc4a8faad8a77d8221b12553c4e9ff0a | [
"BSD-3-Clause"
] | 1 | 2015-06-13T11:33:35.000Z | 2015-06-13T11:33:35.000Z | from django.contrib.auth.backends import ModelBackend
from .models import LOT
class LOTBackend(ModelBackend):
def authenticate(self, request, lot_uuid=None, **kwargs):
try:
lot = LOT.objects.get(uuid=lot_uuid)
except LOT.DoesNotExist:
return None
return lot.user
| 24.461538 | 61 | 0.666667 | 38 | 318 | 5.526316 | 0.657895 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251572 | 318 | 12 | 62 | 26.5 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c77f6ab27fc482f84a5c68268f141e29ed523747 | 954 | py | Python | reviewboard/accounts/tests/test_base_auth_backend.py | pombredanne/reviewboard | 15f1d7236ec7a5cb4778ebfeb8b45d13a46ac71d | [
"MIT"
] | null | null | null | reviewboard/accounts/tests/test_base_auth_backend.py | pombredanne/reviewboard | 15f1d7236ec7a5cb4778ebfeb8b45d13a46ac71d | [
"MIT"
] | null | null | null | reviewboard/accounts/tests/test_base_auth_backend.py | pombredanne/reviewboard | 15f1d7236ec7a5cb4778ebfeb8b45d13a46ac71d | [
"MIT"
] | null | null | null | """Unit tests for reviewboard.accounts.backends.BaseAuthBackend."""
import re
from reviewboard.accounts.backends import INVALID_USERNAME_CHAR_REGEX
from reviewboard.testing import TestCase
class BaseAuthBackendTests(TestCase):
"""Unit tests for reviewboard.accounts.backends.BaseAuthBackend."""
def test_inv... | 31.8 | 71 | 0.584906 | 94 | 954 | 5.776596 | 0.489362 | 0.110497 | 0.139963 | 0.176796 | 0.198895 | 0.198895 | 0.198895 | 0 | 0 | 0 | 0 | 0 | 0.271488 | 954 | 29 | 72 | 32.896552 | 0.781295 | 0.183438 | 0 | 0.1 | 0 | 0 | 0.203145 | 0 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0.05 | false | 0 | 0.15 | 0 | 0.25 | 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 |
c78b384ba322e767932388c1a521a1d5c2e9e542 | 676 | py | Python | doc/make_doc_images.py | parallaxinnovations/pyrwt | 4ee5c406ad889e3a6f6ba9fe0fddac3cc717cb9e | [
"BSD-2-Clause"
] | null | null | null | doc/make_doc_images.py | parallaxinnovations/pyrwt | 4ee5c406ad889e3a6f6ba9fe0fddac3cc717cb9e | [
"BSD-2-Clause"
] | null | null | null | doc/make_doc_images.py | parallaxinnovations/pyrwt | 4ee5c406ad889e3a6f6ba9fe0fddac3cc717cb9e | [
"BSD-2-Clause"
] | 1 | 2022-01-22T04:53:07.000Z | 2022-01-22T04:53:07.000Z | from __future__ import division
import numpy as np
from rwt import dwt, idwt, dwtaxis, idwtaxis
from rwt.wavelets import waveletCoeffs
from rwt.utilities import softThreshold, hardThreshold
import matplotlib.pyplot as plt
from scipy.misc import lena
import os
IMAGES_BASE = 'images'
def savefig(title):
... | 21.806452 | 55 | 0.652367 | 89 | 676 | 4.764045 | 0.550562 | 0.049528 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007859 | 0.247041 | 676 | 30 | 56 | 22.533333 | 0.825147 | 0 | 0 | 0 | 0 | 0 | 0.044892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.454545 | 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 |
c78c1bae40b81bd1c7e565421e8cc3d967f17e44 | 2,717 | py | Python | mocasin/tgff/trace.py | tud-ccc/mocasin | 6cf0a169e24d65d0fc859398f181dd500f928340 | [
"0BSD"
] | 1 | 2022-03-13T19:27:50.000Z | 2022-03-13T19:27:50.000Z | mocasin/tgff/trace.py | tud-ccc/mocasin | 6cf0a169e24d65d0fc859398f181dd500f928340 | [
"0BSD"
] | null | null | null | mocasin/tgff/trace.py | tud-ccc/mocasin | 6cf0a169e24d65d0fc859398f181dd500f928340 | [
"0BSD"
] | null | null | null | # Copyright (C) 2019 TU Dresden
# Licensed under the ISC license (see LICENSE.txt)
#
# Authors: Felix Teweleit, Christian Menard
from mocasin.common.trace import (
DataflowTrace,
ComputeSegment,
ReadTokenSegment,
WriteTokenSegment,
)
class TgffTrace(DataflowTrace):
"""Represents the behavior of ... | 35.75 | 79 | 0.632315 | 313 | 2,717 | 5.351438 | 0.376997 | 0.053731 | 0.038806 | 0.026866 | 0.24597 | 0.24597 | 0.212537 | 0.186269 | 0.186269 | 0.186269 | 0 | 0.006366 | 0.30622 | 2,717 | 75 | 80 | 36.226667 | 0.882228 | 0.43099 | 0 | 0.071429 | 0 | 0 | 0.017422 | 0 | 0 | 0 | 0 | 0.013333 | 0 | 1 | 0.071429 | false | 0 | 0.035714 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c78c91dc9b8066c1c70b8c431f19c942cba8f4d6 | 491 | py | Python | ex035.py | felipenunes07/Python-Exercicios--Curso-em-video | 97087c2fcd6dda48894954623b8b83100af3f47f | [
"MIT"
] | null | null | null | ex035.py | felipenunes07/Python-Exercicios--Curso-em-video | 97087c2fcd6dda48894954623b8b83100af3f47f | [
"MIT"
] | null | null | null | ex035.py | felipenunes07/Python-Exercicios--Curso-em-video | 97087c2fcd6dda48894954623b8b83100af3f47f | [
"MIT"
] | null | null | null | #Desenvolva um programa que leia o comprimento de três retas e diga ao usuário se elas podem ou não formar um triângulo.
print('-='*20)
print('Analisador de Triângulo')
print('-='*20)
r1 = float(input('Primeiro segmento: '))
r2 = float(input('Segundo segmento: '))
r3 = float(input('Terceiro segmento: '))
if r1 < r2+ r... | 37.769231 | 120 | 0.706721 | 75 | 491 | 4.626667 | 0.56 | 0.086455 | 0.092219 | 0.121037 | 0.138329 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062954 | 0.158859 | 491 | 12 | 121 | 40.916667 | 0.77724 | 0.242363 | 0 | 0.2 | 0 | 0 | 0.504043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
c78cbb26046e24b3aadb9f6323af0b191a22ab0e | 5,894 | py | Python | FuncionesGraficas.py | Miguel-331/Proyecto-SUN | 104afd03e05616a297fbda976d377f49a1f905ec | [
"Unlicense"
] | null | null | null | FuncionesGraficas.py | Miguel-331/Proyecto-SUN | 104afd03e05616a297fbda976d377f49a1f905ec | [
"Unlicense"
] | null | null | null | FuncionesGraficas.py | Miguel-331/Proyecto-SUN | 104afd03e05616a297fbda976d377f49a1f905ec | [
"Unlicense"
] | null | null | null | def Menu():
print("Bienvenido, seleccione la operacion que desea realizar")
print("1.) Añadir")
print("2.) Asignar||Adicionar||Cancelar Materias")
print("3.) Modificar")
print("4.) Eliminar usuario")
print("5.) Mostrar bases de datos")
print("6.) Calificar")
print("7.) Buscar")
print... | 29.61809 | 245 | 0.470478 | 533 | 5,894 | 5.202627 | 0.236398 | 0.048684 | 0.03462 | 0.063469 | 0.460151 | 0.428056 | 0.341147 | 0.289217 | 0.266138 | 0.230797 | 0 | 0.016935 | 0.37886 | 5,894 | 199 | 246 | 29.61809 | 0.740508 | 0 | 0 | 0.583333 | 0 | 0 | 0.32112 | 0.00475 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.005952 | 0 | 0 | 0.136905 | 0.488095 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c78f4ba648a509201aec675cfad03905677789bf | 7,636 | py | Python | src/controller/WASH/Query_WaMDaM_for_WASH/Write_GDX_WASH.py | WamdamProject/WaMDaM_Wizard | f8f5a830464f3c8f45e4eb0557833eefb267d7b2 | [
"BSD-3-Clause"
] | null | null | null | src/controller/WASH/Query_WaMDaM_for_WASH/Write_GDX_WASH.py | WamdamProject/WaMDaM_Wizard | f8f5a830464f3c8f45e4eb0557833eefb267d7b2 | [
"BSD-3-Clause"
] | 3 | 2018-11-17T05:49:18.000Z | 2020-12-31T15:57:14.000Z | src/controller/WASH/Query_WaMDaM_for_WASH/Write_GDX_WASH.py | WamdamProject/WaMDaM_Wizard | f8f5a830464f3c8f45e4eb0557833eefb267d7b2 | [
"BSD-3-Clause"
] | null | null | null | # https://github.com/NREL/gdx-pandas
import pandas as pd
# import XlsxWriter
import gdxpds
from ctypes import c_bool
from collections import OrderedDict
# from ReadGDX import *
from QueryWAMDAM import Read_provided_file_query_Required
def Prepare_Seasonal_df(total_df_Seasonal):
df_Seasonal = OrderedDict()
# ... | 43.141243 | 182 | 0.621137 | 944 | 7,636 | 4.768008 | 0.194915 | 0.070873 | 0.045323 | 0.025328 | 0.429682 | 0.373028 | 0.312153 | 0.252388 | 0.171073 | 0.171073 | 0 | 0.00531 | 0.260084 | 7,636 | 177 | 183 | 43.141243 | 0.791327 | 0.274751 | 0 | 0.134615 | 0 | 0 | 0.080604 | 0.008097 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.028846 | 0.048077 | null | null | 0.009615 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c78f925a5c5c08768da4712cb49a29ace9a1e98f | 21,569 | py | Python | spicer/kmaspice.py | michaelaye/spicer | 5e0c506361f9be2516e0e70ea0abcc6ba2b824b4 | [
"0BSD"
] | null | null | null | spicer/kmaspice.py | michaelaye/spicer | 5e0c506361f9be2516e0e70ea0abcc6ba2b824b4 | [
"0BSD"
] | null | null | null | spicer/kmaspice.py | michaelaye/spicer | 5e0c506361f9be2516e0e70ea0abcc6ba2b824b4 | [
"0BSD"
] | null | null | null | from __future__ import division, print_function
try:
import SpiceyPy as spice
except ImportError:
import spice
from collections import namedtuple
import numpy as np
from traits.api import HasTraits, Str, Float, Enum, Date, Property, \
Tuple, Range, cached_property, Bool
import datetime as dt
import dateutil... | 32.288922 | 117 | 0.600352 | 2,761 | 21,569 | 4.529518 | 0.204274 | 0.016312 | 0.029906 | 0.011195 | 0.22837 | 0.186231 | 0.164161 | 0.135295 | 0.122181 | 0.112266 | 0 | 0.023887 | 0.291576 | 21,569 | 667 | 118 | 32.337331 | 0.794568 | 0.232741 | 0 | 0.190709 | 0 | 0 | 0.063453 | 0.007469 | 0 | 0 | 0 | 0.001499 | 0 | 1 | 0.149144 | false | 0 | 0.031785 | 0.0489 | 0.508557 | 0.03423 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c790fbf85660c9b809aa6b599ea1b0ddcbe4628d | 1,114 | py | Python | src/ralph/ui/templatetags/query.py | vi4m/ralph | 2af767ee23d89be9e6cec0a537350a1ce8840bd1 | [
"Apache-2.0"
] | 1 | 2018-09-01T14:14:08.000Z | 2018-09-01T14:14:08.000Z | src/ralph/ui/templatetags/query.py | srikanth4372/sample | 127b5742ae464d42909a14d71e3c10c241ec3a23 | [
"Apache-2.0"
] | 1 | 2019-08-14T10:03:45.000Z | 2019-08-14T10:03:45.000Z | src/ralph/ui/templatetags/query.py | srikanth4372/sample | 127b5742ae464d42909a14d71e3c10c241ec3a23 | [
"Apache-2.0"
] | 1 | 2019-08-14T09:59:42.000Z | 2019-08-14T09:59:42.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from django import template
register = template.Library()
@register.filter
def query_page(query, page):
query = query.copy()
if page is not None and page not ... | 19.892857 | 49 | 0.611311 | 130 | 1,114 | 5.053846 | 0.276923 | 0.09589 | 0.097412 | 0.133942 | 0.386606 | 0.316591 | 0.258752 | 0.194825 | 0.194825 | 0.194825 | 0 | 0.002532 | 0.290844 | 1,114 | 55 | 50 | 20.254545 | 0.829114 | 0 | 0 | 0.545455 | 0 | 0 | 0.030521 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.068182 | 0.113636 | 0 | 0.295455 | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c7981d60d3b585800fe49223da60c37bf0a159da | 1,605 | py | Python | test/axbench/fft/scripts/qos.py | TAFFO-org/TAFFO | a6edbf0814a264d6877f9579e9f37ad9b48fcabb | [
"MIT"
] | 3 | 2022-02-24T14:34:02.000Z | 2022-03-21T10:43:04.000Z | test/axbench/fft/scripts/qos.py | TAFFO-org/TAFFO | a6edbf0814a264d6877f9579e9f37ad9b48fcabb | [
"MIT"
] | 5 | 2021-11-30T14:37:15.000Z | 2022-02-27T19:21:13.000Z | test/axbench/fft/scripts/qos.py | TAFFO-org/TAFFO | a6edbf0814a264d6877f9579e9f37ad9b48fcabb | [
"MIT"
] | 1 | 2022-02-24T14:33:06.000Z | 2022-02-24T14:33:06.000Z | #!/usr/bin/python
import sys
import math
class bcolors:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'
def printUsage():
print "Usage: python qos.py <original file> <nn file... | 21.4 | 112 | 0.623053 | 205 | 1,605 | 4.873171 | 0.4 | 0.008008 | 0.009009 | 0.014014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055249 | 0.210592 | 1,605 | 74 | 113 | 21.689189 | 0.733228 | 0.025545 | 0 | 0.176471 | 0 | 0 | 0.105196 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.039216 | 0.039216 | null | null | 0.098039 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c799cc45d3295d917d94e5537971583080a73c33 | 1,709 | py | Python | tier2/publisher.py | Tri-Le-Viet/IFN649-Project | d55ad0c52aa4da221cc605e5834f9d4e0582d580 | [
"MIT"
] | null | null | null | tier2/publisher.py | Tri-Le-Viet/IFN649-Project | d55ad0c52aa4da221cc605e5834f9d4e0582d580 | [
"MIT"
] | null | null | null | tier2/publisher.py | Tri-Le-Viet/IFN649-Project | d55ad0c52aa4da221cc605e5834f9d4e0582d580 | [
"MIT"
] | null | null | null | import os
from dotenv import load_dotenv
import logging
import logging.config
from SensorNode import *
from API import *
from bluetooth_functions import search_devices
from user_input import *
def weather_thread(threads, weatherAPI):
weather = threading.Thread(target=weatherAPI.fetch)
weather.start()
thr... | 29.465517 | 83 | 0.710942 | 204 | 1,709 | 5.843137 | 0.421569 | 0.067953 | 0.033557 | 0.050336 | 0.068792 | 0.068792 | 0.068792 | 0 | 0 | 0 | 0 | 0.002086 | 0.158572 | 1,709 | 57 | 84 | 29.982456 | 0.826843 | 0 | 0 | 0 | 0 | 0 | 0.123464 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020833 | false | 0.0625 | 0.166667 | 0 | 0.1875 | 0.020833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c79b1efbba0cdc2f3d917e27fe14c884a254c937 | 420 | py | Python | src/api/routing/frontend/__init__.py | fisher60/chat-hour | 7d6768320b12c76f34aeae0de8688cdcbcf4c629 | [
"MIT"
] | null | null | null | src/api/routing/frontend/__init__.py | fisher60/chat-hour | 7d6768320b12c76f34aeae0de8688cdcbcf4c629 | [
"MIT"
] | null | null | null | src/api/routing/frontend/__init__.py | fisher60/chat-hour | 7d6768320b12c76f34aeae0de8688cdcbcf4c629 | [
"MIT"
] | 1 | 2021-08-09T23:14:46.000Z | 2021-08-09T23:14:46.000Z | from fastapi import APIRouter, Form, Request
from fastapi.templating import Jinja2Templates
router = APIRouter()
templates = Jinja2Templates(directory="src/web/templates")
@router.get("/login/")
async def get_login(request: Request):
return templates.TemplateResponse("login/login.html", {"request": request})
... | 24.705882 | 79 | 0.742857 | 49 | 420 | 6.326531 | 0.489796 | 0.135484 | 0.083871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005391 | 0.116667 | 420 | 16 | 80 | 26.25 | 0.830189 | 0 | 0 | 0 | 0 | 0 | 0.128571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.2 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c7a348c544363c965943224647a5516b70a94d9a | 4,005 | py | Python | django_models.py | ruilapa/puppet_run_optimizer | 65eaa2e5f9c99784176dd0cc76df1c6fb20bc01a | [
"MIT"
] | null | null | null | django_models.py | ruilapa/puppet_run_optimizer | 65eaa2e5f9c99784176dd0cc76df1c6fb20bc01a | [
"MIT"
] | null | null | null | django_models.py | ruilapa/puppet_run_optimizer | 65eaa2e5f9c99784176dd0cc76df1c6fb20bc01a | [
"MIT"
] | null | null | null | ###############################################################
# Servers
###############################################################
class ServerType(models.Model):
name = models.CharField(max_length=40, verbose_name='Nome')
type = models.CharField(max_length=40, verbose_name='Tipo')
creat... | 47.678571 | 196 | 0.6397 | 453 | 4,005 | 5.426049 | 0.214128 | 0.147681 | 0.111066 | 0.107404 | 0.6131 | 0.591945 | 0.543938 | 0.497559 | 0.480879 | 0.480879 | 0 | 0.009735 | 0.179276 | 4,005 | 83 | 197 | 48.253012 | 0.738059 | 0.003496 | 0 | 0.428571 | 0 | 0.015873 | 0.140525 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063492 | false | 0 | 0 | 0.063492 | 0.746032 | 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 |
c7a4b57ecfc1e3fceb5c2518893a9512a5cb6515 | 8,112 | py | Python | nagios/nagiosxi_556_rce_lpe.py | iamarkaj/poc | 983dcf94577b1a041f304c8e0537b670c0c18655 | [
"BSD-3-Clause"
] | 1,007 | 2018-09-17T16:13:26.000Z | 2022-03-29T00:19:42.000Z | nagios/nagiosxi_556_rce_lpe.py | demirelcan/poc | 201ea88410c7a9e684f6cb66118c46b3ee02bd5b | [
"BSD-3-Clause"
] | 5 | 2018-11-11T09:54:27.000Z | 2020-06-24T22:59:49.000Z | nagios/nagiosxi_556_rce_lpe.py | demirelcan/poc | 201ea88410c7a9e684f6cb66118c46b3ee02bd5b | [
"BSD-3-Clause"
] | 325 | 2018-09-18T04:44:53.000Z | 2022-03-30T18:08:13.000Z | from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
import SocketServer, threading, ssl
import requests, urllib
import sys, os, argparse
from OpenSSL import crypto
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
# http... | 33.382716 | 169 | 0.674063 | 1,175 | 8,112 | 4.515745 | 0.307234 | 0.015077 | 0.01847 | 0.018847 | 0.094044 | 0.068225 | 0.025254 | 0.025254 | 0 | 0 | 0 | 0.022432 | 0.192184 | 8,112 | 242 | 170 | 33.520661 | 0.787273 | 0.182446 | 0 | 0.097561 | 0 | 0.012195 | 0.190255 | 0.041145 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.036585 | null | null | 0.067073 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c7a78c706c195af3a1147c35b7c8f7486a7f249a | 3,515 | py | Python | climatic/header_classifier.py | wrobstory/climatic | beccb59834eadb6530f82fb159bbae52c75e5233 | [
"MIT"
] | 23 | 2015-01-07T12:46:33.000Z | 2022-03-18T17:22:32.000Z | climatic/header_classifier.py | wrobstory/climatic | beccb59834eadb6530f82fb159bbae52c75e5233 | [
"MIT"
] | 1 | 2017-01-06T20:08:34.000Z | 2017-01-06T20:08:34.000Z | climatic/header_classifier.py | wrobstory/climatic | beccb59834eadb6530f82fb159bbae52c75e5233 | [
"MIT"
] | 11 | 2015-08-14T16:45:11.000Z | 2019-12-03T22:45:14.000Z | # -*- coding: utf-8 -*-
'''
Header Classifier
-------
Uses the NLTK library to build a Naive Bayes classifier to classify met mast
header input for the "smart_headers" method
'''
from __future__ import print_function
import random
import nltk
def features(word):
'''Feature extractor. Currently 1.0 accuracy'... | 37.795699 | 78 | 0.596871 | 421 | 3,515 | 4.874109 | 0.361045 | 0.080409 | 0.126706 | 0.145712 | 0.031189 | 0.031189 | 0.019493 | 0.019493 | 0 | 0 | 0 | 0.008772 | 0.254054 | 3,515 | 92 | 79 | 38.206522 | 0.773455 | 0.033001 | 0 | 0 | 0 | 0 | 0.174038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.046154 | null | null | 0.046154 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c7acadc2b31f2bbd1ad3e179f5213da043a2981c | 10,948 | py | Python | ARCHIVE/Preprocessing_w_MED_and_QIIME_V2_13April2017.py | mechen10/Preprocessing | d8c749ccbab4e371710d324e2e130a1a1a4bbb90 | [
"MIT"
] | null | null | null | ARCHIVE/Preprocessing_w_MED_and_QIIME_V2_13April2017.py | mechen10/Preprocessing | d8c749ccbab4e371710d324e2e130a1a1a4bbb90 | [
"MIT"
] | null | null | null | ARCHIVE/Preprocessing_w_MED_and_QIIME_V2_13April2017.py | mechen10/Preprocessing | d8c749ccbab4e371710d324e2e130a1a1a4bbb90 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
## EDITED: Melissa-- to make it compatible with multiple things.
# Version 1:
# Adapted from original preprocessing script; re-done in python
# Input:
# Folder containing sequence files in .fastq or .fastq.gz format, path of mapping file, paths of database files, parameters for MED and QIIME to ... | 33.075529 | 252 | 0.680672 | 1,536 | 10,948 | 4.73112 | 0.227865 | 0.035778 | 0.03509 | 0.020228 | 0.25086 | 0.208064 | 0.175726 | 0.155773 | 0.141599 | 0.112701 | 0 | 0.007323 | 0.151809 | 10,948 | 330 | 253 | 33.175758 | 0.775253 | 0.294209 | 0 | 0.275362 | 0 | 0.038647 | 0.398401 | 0.014421 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009662 | 0.019324 | null | null | 0.024155 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c7b8e631106496996e147d95006467ebddee217b | 393 | py | Python | protonfixes/gamefixes/1113000.py | Citiroller/protonfixes | 6e0116bd1cd2172b6f0ff9905667bbc59595cdb7 | [
"BSD-2-Clause"
] | null | null | null | protonfixes/gamefixes/1113000.py | Citiroller/protonfixes | 6e0116bd1cd2172b6f0ff9905667bbc59595cdb7 | [
"BSD-2-Clause"
] | null | null | null | protonfixes/gamefixes/1113000.py | Citiroller/protonfixes | 6e0116bd1cd2172b6f0ff9905667bbc59595cdb7 | [
"BSD-2-Clause"
] | null | null | null | """ Game fix for Persona 4 Golden
"""
#pylint: disable=C0103
from protonfixes import util
def main():
""" installs devenum, quartz, wmp9 and adjust pulse latency
"""
# Fix pre-rendered cutscene playback
util.protontricks('devenum')
util.protontricks('quartz')
util.protontricks('wmp9')
# ... | 21.833333 | 63 | 0.689567 | 47 | 393 | 5.702128 | 0.723404 | 0.179104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028391 | 0.193384 | 393 | 17 | 64 | 23.117647 | 0.817035 | 0.424936 | 0 | 0 | 0 | 0 | 0.17619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7b96a8d86632415a1cb0e383b17d19f36cd48f8 | 2,031 | py | Python | cellsegment/set_directories.py | drmcg/cellsegment | 69213a1c232d0ba81639080870593089b212d5d4 | [
"Apache-2.0"
] | null | null | null | cellsegment/set_directories.py | drmcg/cellsegment | 69213a1c232d0ba81639080870593089b212d5d4 | [
"Apache-2.0"
] | 3 | 2021-05-20T11:51:02.000Z | 2022-02-26T06:10:21.000Z | cellsegment/set_directories.py | drmcg/cellsegment | 69213a1c232d0ba81639080870593089b212d5d4 | [
"Apache-2.0"
] | 1 | 2020-04-06T01:28:50.000Z | 2020-04-06T01:28:50.000Z | #AUTOGENERATED! DO NOT EDIT! File to edit: dev/92_set_directories.ipynb (unless otherwise specified).
__all__ = ['Dirs']
#Cell
"""
Directories for Image preparation training and testing
"""
class Dirs:
def __init__(obj, basepath):
obj.basepath = basepath
obj.originImages = basepath + '/Original'
... | 42.3125 | 119 | 0.610044 | 264 | 2,031 | 4.515152 | 0.333333 | 0.050336 | 0.062919 | 0.032718 | 0.255034 | 0.189597 | 0.189597 | 0.145973 | 0.145973 | 0.145973 | 0 | 0.012484 | 0.250615 | 2,031 | 48 | 120 | 42.3125 | 0.770696 | 0.169375 | 0 | 0.060606 | 1 | 0 | 0.150545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0 | 0 | 0.090909 | 0.30303 | 0.030303 | 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 |
c7c2a4998593ae8d5ea8d926885dc0da0a79ff2a | 502 | py | Python | ea_interop_service_source/b_code/factories/i_dual_diagram_factory.py | boro-test/ea_interop_service | e895da121c425f8c20f6061ce5796da08eefed35 | [
"MIT"
] | null | null | null | ea_interop_service_source/b_code/factories/i_dual_diagram_factory.py | boro-test/ea_interop_service | e895da121c425f8c20f6061ce5796da08eefed35 | [
"MIT"
] | null | null | null | ea_interop_service_source/b_code/factories/i_dual_diagram_factory.py | boro-test/ea_interop_service | e895da121c425f8c20f6061ce5796da08eefed35 | [
"MIT"
] | 1 | 2021-08-10T12:14:10.000Z | 2021-08-10T12:14:10.000Z | from ea_interop_service_source.b_code.i_dual_objects.diagrams.i_dual_diagram import IDualDiagram
def create_i_dual_diagram(
container,
diagram_name: str,
diagram_type: str) \
-> IDualDiagram:
i_dual_diagram = \
IDualDiagram(
container.diagrams.add_new(
... | 23.904762 | 96 | 0.657371 | 58 | 502 | 5.241379 | 0.448276 | 0.098684 | 0.197368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.276892 | 502 | 20 | 97 | 25.1 | 0.837466 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7c8d5d4d5815a3a4c87438b7791ee00910c802b | 978 | py | Python | command.py | Ggit88/sudoku-py | fc53f3c541c07edab04f373776cd5ae2924c1128 | [
"MIT"
] | null | null | null | command.py | Ggit88/sudoku-py | fc53f3c541c07edab04f373776cd5ae2924c1128 | [
"MIT"
] | null | null | null | command.py | Ggit88/sudoku-py | fc53f3c541c07edab04f373776cd5ae2924c1128 | [
"MIT"
] | null | null | null | from sys import argv
import csv
import os.path
from core import helpers
from core import sudoku
if len(argv) != 3:
print("Two args are mandatory for sudoku command:")
print("1) csv file path for reading input matrix")
print("2) csv file path for writing resolved matrix")
exit()
sourcePath = argv[1]
destPath = a... | 25.076923 | 89 | 0.725971 | 141 | 978 | 4.978723 | 0.446809 | 0.039886 | 0.039886 | 0.039886 | 0.037037 | 0.037037 | 0 | 0 | 0 | 0 | 0 | 0.01335 | 0.157464 | 978 | 38 | 90 | 25.736842 | 0.838592 | 0 | 0 | 0.137931 | 0 | 0 | 0.160532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.172414 | null | null | 0.137931 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c7ccf335f7621caa2ddd4f6bfe13124892536c87 | 2,852 | py | Python | keras_cv/layers/preprocessing/grayscale_test.py | kartik4949/keras-cv | 4c300f564d8ec99cd1351c445e1803ee6664915a | [
"Apache-2.0"
] | null | null | null | keras_cv/layers/preprocessing/grayscale_test.py | kartik4949/keras-cv | 4c300f564d8ec99cd1351c445e1803ee6664915a | [
"Apache-2.0"
] | null | null | null | keras_cv/layers/preprocessing/grayscale_test.py | kartik4949/keras-cv | 4c300f564d8ec99cd1351c445e1803ee6664915a | [
"Apache-2.0"
] | null | null | null | # Copyright 2022 The KerasCV Authors
#
# 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 ... | 27.423077 | 85 | 0.580295 | 357 | 2,852 | 4.579832 | 0.302521 | 0.088073 | 0.13211 | 0.161468 | 0.567584 | 0.515596 | 0.434251 | 0.379817 | 0.379817 | 0.348012 | 0 | 0.077429 | 0.307153 | 2,852 | 103 | 86 | 27.68932 | 0.75 | 0.20021 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 1 | 0.090909 | false | 0 | 0.030303 | 0.030303 | 0.166667 | 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 |
c7cd658c14150d12b6abe3cfd868bb34db812156 | 215 | py | Python | pages/workshop/Surface_Data/solutions/mesonet_timeseries.py | zbruick/python-training | ba227820accb5849aea8d05ff5cb5c134f56955e | [
"BSD-3-Clause"
] | 87 | 2019-08-29T06:54:06.000Z | 2022-03-14T12:52:59.000Z | pages/workshop/Surface_Data/solutions/mesonet_timeseries.py | zbruick/python-training | ba227820accb5849aea8d05ff5cb5c134f56955e | [
"BSD-3-Clause"
] | 258 | 2015-02-02T20:49:11.000Z | 2018-10-04T22:04:47.000Z | pages/workshop/Surface_Data/solutions/mesonet_timeseries.py | zbruick/python-training | ba227820accb5849aea8d05ff5cb5c134f56955e | [
"BSD-3-Clause"
] | 65 | 2015-02-04T18:48:42.000Z | 2018-10-03T18:33:39.000Z | import matplotlib.pyplot as plt
fig = plt.figure()
ax= fig.add_subplot(111)
ax.plot(station_hourly_mean['Time'], station_hourly_mean['solar_radiation'])
ax.plot(station_data['Time'], station_data['solar_radiation']) | 43 | 76 | 0.790698 | 33 | 215 | 4.878788 | 0.575758 | 0.074534 | 0.161491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014778 | 0.055814 | 215 | 5 | 77 | 43 | 0.778325 | 0 | 0 | 0 | 0 | 0 | 0.175926 | 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 |
c7d805198a01eae5d273dbfadd0f07b2634e3b80 | 966 | py | Python | web/api/permissions.py | MariaMozgunova/dockerized_rest_api | aa6aef810317dd58bfd36e4f3d64c3067c6cade0 | [
"MIT"
] | null | null | null | web/api/permissions.py | MariaMozgunova/dockerized_rest_api | aa6aef810317dd58bfd36e4f3d64c3067c6cade0 | [
"MIT"
] | null | null | null | web/api/permissions.py | MariaMozgunova/dockerized_rest_api | aa6aef810317dd58bfd36e4f3d64c3067c6cade0 | [
"MIT"
] | 12 | 2021-02-11T16:39:00.000Z | 2022-03-30T19:18:24.000Z | from rest_framework import permissions
class IsUser(permissions.BasePermission):
def has_object_permission(self, request, view, obj):
return obj == request.user
class IsAdminUser(permissions.BasePermission):
def has_permission(self, request, view):
user = request.user
if user.is_anon... | 30.1875 | 69 | 0.687371 | 111 | 966 | 5.837838 | 0.351351 | 0.046296 | 0.12963 | 0.154321 | 0.509259 | 0.509259 | 0.395062 | 0.296296 | 0 | 0 | 0 | 0 | 0.246377 | 966 | 31 | 70 | 31.16129 | 0.89011 | 0 | 0 | 0.434783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.043478 | 0.086957 | 0.695652 | 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 |
c7e0c351d0cf116fe5d6c78c996ffd494f9205e6 | 1,323 | py | Python | 08-dicionarios/08-dicionarios.py | ROGERIOPDOSSANTOS/AulaPythonBasico | d67f3d66ab3552168326c121755e314e98d8be79 | [
"MIT"
] | null | null | null | 08-dicionarios/08-dicionarios.py | ROGERIOPDOSSANTOS/AulaPythonBasico | d67f3d66ab3552168326c121755e314e98d8be79 | [
"MIT"
] | null | null | null | 08-dicionarios/08-dicionarios.py | ROGERIOPDOSSANTOS/AulaPythonBasico | d67f3d66ab3552168326c121755e314e98d8be79 | [
"MIT"
] | null | null | null | # Código utilizado no livro Aprenda Python Básico - Rápido e Fácil de entender, de Felipe Galvão
# Mais informações sobre o livro: http://felipegalvao.com.br/livros
# Capítulo 8: Dicionários
# Criando nosso primeiro dicionário
aluno = {"nome": "José", "idade": 20, "nota": 9.2}
print(aluno)
# Criando um dicionário va... | 25.941176 | 96 | 0.718821 | 200 | 1,323 | 4.72 | 0.43 | 0.148305 | 0.041314 | 0.047669 | 0.087924 | 0.087924 | 0.087924 | 0.065678 | 0.065678 | 0 | 0 | 0.018389 | 0.13681 | 1,323 | 51 | 97 | 25.941176 | 0.808231 | 0.45805 | 0 | 0.222222 | 0 | 0 | 0.158865 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.62963 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c7e4f4e40d9fb272521e39a446ff4895528b5e4e | 1,617 | py | Python | 2015/day18.py | iKevinY/advent | d160fb711a0a4d671f53cbd61088117e7ff0276a | [
"MIT"
] | 11 | 2019-12-03T06:32:37.000Z | 2021-12-24T12:23:57.000Z | 2015/day18.py | iKevinY/advent | d160fb711a0a4d671f53cbd61088117e7ff0276a | [
"MIT"
] | null | null | null | 2015/day18.py | iKevinY/advent | d160fb711a0a4d671f53cbd61088117e7ff0276a | [
"MIT"
] | 1 | 2019-12-07T06:21:31.000Z | 2019-12-07T06:21:31.000Z | import fileinput
import itertools
import re
def get_neighbours(x, y):
square = [(a, b)
for a in range(max(0, x-1), min(x+2, WIDTH))
for b in range(max(0, y-1), min(y+2, HEIGHT))]
square.remove((x, y))
return square
def next_state(grid, x, y, sticky_corners=False):
if sticky_corners:
... | 25.666667 | 98 | 0.641929 | 267 | 1,617 | 3.808989 | 0.23221 | 0.041298 | 0.035398 | 0.029499 | 0.204523 | 0.12586 | 0.12586 | 0.070796 | 0 | 0 | 0 | 0.019048 | 0.220779 | 1,617 | 62 | 99 | 26.080645 | 0.788095 | 0.032158 | 0 | 0.093023 | 0 | 0 | 0.064062 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.069767 | null | null | 0.116279 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c7e5201b1725fbc33481178aa421eec29ffd076b | 1,413 | py | Python | Codes/Python32/Lib/distutils/tests/test_filelist.py | eyantra/FireBird_Swiss_Knife | cac322cf28e2d690b86ba28a75e87551e5e47988 | [
"MIT"
] | 4 | 2016-05-04T07:05:22.000Z | 2020-09-24T00:21:05.000Z | Codes/Python32/Lib/distutils/tests/test_filelist.py | eyantra/FireBird_Swiss_Knife | cac322cf28e2d690b86ba28a75e87551e5e47988 | [
"MIT"
] | null | null | null | Codes/Python32/Lib/distutils/tests/test_filelist.py | eyantra/FireBird_Swiss_Knife | cac322cf28e2d690b86ba28a75e87551e5e47988 | [
"MIT"
] | 1 | 2019-04-11T11:27:01.000Z | 2019-04-11T11:27:01.000Z | """Tests for distutils.filelist."""
import unittest
from distutils.filelist import glob_to_re, FileList
from test.support import captured_stdout, run_unittest
from distutils import debug
class FileListTestCase(unittest.TestCase):
def test_glob_to_re(self):
# simple cases
self.assertEqual(glob_to_... | 32.860465 | 78 | 0.587403 | 176 | 1,413 | 4.482955 | 0.278409 | 0.068441 | 0.091255 | 0.186312 | 0.515843 | 0.515843 | 0.503169 | 0.503169 | 0.503169 | 0.503169 | 0 | 0.001812 | 0.218684 | 1,413 | 42 | 79 | 33.642857 | 0.712862 | 0.04034 | 0 | 0.193548 | 0 | 0 | 0.146034 | 0.051149 | 0 | 0 | 0 | 0 | 0.290323 | 1 | 0.096774 | false | 0 | 0.129032 | 0.032258 | 0.290323 | 0.096774 | 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 |
c7e615501e2a23d6f1ee2b6bc10a4c08511964d6 | 3,898 | py | Python | src/zenml/zen_stores/models/pipeline_models.py | dumpmemory/zenml | ec3f6994ae9666493519d600471c035eb9109ac4 | [
"Apache-2.0"
] | null | null | null | src/zenml/zen_stores/models/pipeline_models.py | dumpmemory/zenml | ec3f6994ae9666493519d600471c035eb9109ac4 | [
"Apache-2.0"
] | null | null | null | src/zenml/zen_stores/models/pipeline_models.py | dumpmemory/zenml | ec3f6994ae9666493519d600471c035eb9109ac4 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) ZenML GmbH 2022. 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:
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | 29.984615 | 80 | 0.679836 | 498 | 3,898 | 5.23494 | 0.337349 | 0.023015 | 0.026467 | 0.040276 | 0.112773 | 0.057537 | 0 | 0 | 0 | 0 | 0 | 0.002749 | 0.253463 | 3,898 | 129 | 81 | 30.217054 | 0.893127 | 0.48666 | 0 | 0.254545 | 0 | 0 | 0.024973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054545 | false | 0 | 0.2 | 0 | 0.654545 | 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 |
c7e6c38d07375fcf7582c3392a160c6009342018 | 1,558 | py | Python | FlaskApp/FlaskApp/__init__.py | s3nk4s/flaskTutorials | c3f38544f47d09943dfd6ab5ed04aaddc49f8c2a | [
"MIT"
] | null | null | null | FlaskApp/FlaskApp/__init__.py | s3nk4s/flaskTutorials | c3f38544f47d09943dfd6ab5ed04aaddc49f8c2a | [
"MIT"
] | null | null | null | FlaskApp/FlaskApp/__init__.py | s3nk4s/flaskTutorials | c3f38544f47d09943dfd6ab5ed04aaddc49f8c2a | [
"MIT"
] | null | null | null | from flask import Flask, render_template, session, redirect, url_for, escape, request, jsonify
from os import listdir
import subprocess
app = Flask(__name__)
app.debug = True
def getovpnFiles():
ovpnFiles = []
pia = '/home/pi/pia'
files = listdir(pia)
for file in files:
if file[-4:] == 'ovpn':
ovpnFiles.appe... | 25.966667 | 94 | 0.63543 | 208 | 1,558 | 4.663462 | 0.408654 | 0.041237 | 0.043299 | 0.035052 | 0.051546 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002425 | 0.206033 | 1,558 | 59 | 95 | 26.40678 | 0.78173 | 0.041078 | 0 | 0.081633 | 0 | 0 | 0.24933 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.061224 | null | null | 0.020408 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c7e770faa4a7746a1111643724e7f5aca8f82692 | 1,339 | py | Python | unpairedtwosamplegeneration.py | amon80/fslscripts | f0800c475a5038f4194ea2ecde2863342475e463 | [
"MIT"
] | null | null | null | unpairedtwosamplegeneration.py | amon80/fslscripts | f0800c475a5038f4194ea2ecde2863342475e463 | [
"MIT"
] | null | null | null | unpairedtwosamplegeneration.py | amon80/fslscripts | f0800c475a5038f4194ea2ecde2863342475e463 | [
"MIT"
] | null | null | null | import sys
def generate_files(num_subjects_group_1, num_subjects_group_2, mat_output_filename, con_output_filename, grp_output_filename):
strings_mat_file_group_1 = []
strings_mat_file_group_2 = []
for i in range(num_subjects_group_1):
strings_mat_file_group_1.append("1 0\n")
for i in range(num... | 40.575758 | 126 | 0.710232 | 211 | 1,339 | 4.07109 | 0.241706 | 0.116414 | 0.111758 | 0.132712 | 0.377183 | 0.278231 | 0.211874 | 0.079162 | 0 | 0 | 0 | 0.024545 | 0.178491 | 1,339 | 32 | 127 | 41.84375 | 0.756364 | 0 | 0 | 0.066667 | 1 | 0 | 0.097834 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.033333 | 0 | 0.066667 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1bdba85939e4091d39d272a57f48541621818386 | 28,231 | py | Python | PyGame/.venv/Lib/site-packages/pygame/tests/rect_test.py | esserafael/PythonStuff | 97900e48f989b64ccde02f5d676f7f823ec0eed7 | [
"MIT"
] | 1 | 2020-08-03T00:19:05.000Z | 2020-08-03T00:19:05.000Z | PyGame/.venv/Lib/site-packages/pygame/tests/rect_test.py | esserafael/PythonStuff | 97900e48f989b64ccde02f5d676f7f823ec0eed7 | [
"MIT"
] | 1 | 2021-08-23T20:43:21.000Z | 2021-08-23T20:43:21.000Z | PyGame/.venv/Lib/site-packages/pygame/tests/rect_test.py | esserafael/python-learning-stuff | 97900e48f989b64ccde02f5d676f7f823ec0eed7 | [
"MIT"
] | null | null | null | import unittest
from pygame import Rect
class RectTypeTest(unittest.TestCase):
def testConstructionXYWidthHeight(self):
r = Rect(1, 2, 3, 4)
self.assertEqual(1, r.left)
self.assertEqual(2, r.top)
self.assertEqual(3, r.width)
self.assertEqual(4, r.height)
def ... | 35.963057 | 83 | 0.543976 | 3,896 | 28,231 | 3.858316 | 0.063398 | 0.162653 | 0.076637 | 0.011176 | 0.672499 | 0.613225 | 0.575173 | 0.512773 | 0.473057 | 0.444651 | 0 | 0.069715 | 0.329815 | 28,231 | 784 | 84 | 36.008929 | 0.724789 | 0.129432 | 0 | 0.395604 | 0 | 0 | 0.047572 | 0 | 0 | 0 | 0 | 0 | 0.413919 | 1 | 0.108059 | false | 0.001832 | 0.003663 | 0.003663 | 0.124542 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1be61e3bb044871ebb3a8c043f1ef8c03cd20aca | 875 | py | Python | MapReduce/loadsource.py | LangHuiHE/Distributed-System-Models | 7b8ce9a535ddc5dcfa3591333494887da29f1157 | [
"MIT"
] | null | null | null | MapReduce/loadsource.py | LangHuiHE/Distributed-System-Models | 7b8ce9a535ddc5dcfa3591333494887da29f1157 | [
"MIT"
] | null | null | null | MapReduce/loadsource.py | LangHuiHE/Distributed-System-Models | 7b8ce9a535ddc5dcfa3591333494887da29f1157 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sqlite3
import sys
import os.path
def main():
if len(sys.argv) < 3:
print >>sys.stderr, 'Usage: %s [dbname] [inputfile] ...' % sys.argv[0]
sys.exit(-1)
db = sqlite3.connect(sys.argv[1])
db.execute(u'CREATE TABLE IF NOT EXISTS pairs (key string, value string)')... | 27.34375 | 78 | 0.565714 | 124 | 875 | 3.919355 | 0.491935 | 0.057613 | 0.061728 | 0.065844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015674 | 0.270857 | 875 | 32 | 79 | 27.34375 | 0.746082 | 0.106286 | 0 | 0 | 0 | 0 | 0.207426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.130435 | null | null | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1be645e6e542bf3bcbe392a2ae7bc53234a9fd2a | 2,003 | py | Python | cadee/ana/cat_cadee_dbs.py | kamerlinlab/cadee | 8fa34fc4f7fc496c8843e9380075ae11fca7aaa7 | [
"MIT"
] | 10 | 2017-01-11T09:21:27.000Z | 2021-06-27T03:56:15.000Z | cadee/ana/cat_cadee_dbs.py | kamerlinlab/cadee | 8fa34fc4f7fc496c8843e9380075ae11fca7aaa7 | [
"MIT"
] | 2 | 2017-07-18T06:54:17.000Z | 2020-08-25T14:03:14.000Z | cadee/ana/cat_cadee_dbs.py | kamerlinlab/cadee | 8fa34fc4f7fc496c8843e9380075ae11fca7aaa7 | [
"MIT"
] | 3 | 2017-03-15T12:18:13.000Z | 2021-02-28T05:09:36.000Z | #!/usr/bin/env python
"""
This program will concatenate two cadee.db files together
Usage: python fuse_dbs.py cadee1.db cadee2.db [cadee3.db [...]]
Will create a concat_cadee.db file, containing both [all] database data in one file.
Author: {0} ({1})
This program is part of CADEE, the framework for
Computer-... | 25.679487 | 105 | 0.622566 | 274 | 2,003 | 4.423358 | 0.445255 | 0.034653 | 0.042904 | 0.039604 | 0.148515 | 0.148515 | 0.108911 | 0.108911 | 0.108911 | 0.108911 | 0 | 0.016824 | 0.258113 | 2,003 | 77 | 106 | 26.012987 | 0.798789 | 0.335996 | 0 | 0.054054 | 0 | 0 | 0.244186 | 0.016279 | 0 | 0 | 0 | 0.012987 | 0 | 1 | 0.054054 | false | 0 | 0.135135 | 0 | 0.189189 | 0.135135 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
1be964773462b6b418b9bf868b7b8d21ad3e494a | 6,527 | py | Python | Plotting/plot.py | c3polab/tendon | cb2791adf708aed8240bec39bd65e7b7a41f742e | [
"MIT"
] | 1 | 2021-08-24T23:47:33.000Z | 2021-08-24T23:47:33.000Z | Plotting/plot.py | c3polab/tendon | cb2791adf708aed8240bec39bd65e7b7a41f742e | [
"MIT"
] | null | null | null | Plotting/plot.py | c3polab/tendon | cb2791adf708aed8240bec39bd65e7b7a41f742e | [
"MIT"
] | 1 | 2021-08-24T23:47:24.000Z | 2021-08-24T23:47:24.000Z | # Riley Karp
# C3PO
# Created 8/3/2018
# plot.py
import csv
import numpy as np
import matplotlib.pyplot as plt
from scipy import stats
import sys
# Reads in data (assumes file is in the form of aggregate.csv)
# Returns a dictionary with keys: 'serial','stiffness', 'ic_volume','density',
# 'volume', and 'area'. Value... | 35.091398 | 127 | 0.555079 | 953 | 6,527 | 3.781742 | 0.258132 | 0.035516 | 0.017481 | 0.02081 | 0.110988 | 0.094062 | 0.051332 | 0.034684 | 0.02414 | 0.018313 | 0 | 0.038906 | 0.283285 | 6,527 | 185 | 128 | 35.281081 | 0.731509 | 0.382565 | 0 | 0.074074 | 0 | 0.009259 | 0.114977 | 0.010338 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.046296 | null | null | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1be984fc3d90bea4a5bb897ac8ad452fc57e9fc0 | 3,235 | py | Python | pak_helpers/helper/migrations/0001_initial.py | aliraza401/pak_helpers | 56e3d3214e318e28d344888c55d83dc69729d7a2 | [
"MIT"
] | null | null | null | pak_helpers/helper/migrations/0001_initial.py | aliraza401/pak_helpers | 56e3d3214e318e28d344888c55d83dc69729d7a2 | [
"MIT"
] | null | null | null | pak_helpers/helper/migrations/0001_initial.py | aliraza401/pak_helpers | 56e3d3214e318e28d344888c55d83dc69729d7a2 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.4 on 2020-03-30 12:04
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 42.565789 | 132 | 0.575889 | 324 | 3,235 | 5.614198 | 0.256173 | 0.039582 | 0.061572 | 0.096756 | 0.557999 | 0.557999 | 0.557999 | 0.557999 | 0.532161 | 0.532161 | 0 | 0.014181 | 0.28068 | 3,235 | 75 | 133 | 43.133333 | 0.767512 | 0.01391 | 0 | 0.470588 | 1 | 0 | 0.084065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.044118 | 0 | 0.102941 | 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 |
1bec3c6dbf6099edc80dd3211a7db132a1976c42 | 1,305 | py | Python | scripts/fft_estimator.py | chrstrom/monkey_estimation | 1095c0c6cdf810fca61fb6174ec272ef658926ca | [
"Unlicense"
] | 1 | 2021-03-23T11:26:49.000Z | 2021-03-23T11:26:49.000Z | scripts/fft_estimator.py | chrstrom/monkey_estimation | 1095c0c6cdf810fca61fb6174ec272ef658926ca | [
"Unlicense"
] | 6 | 2021-03-23T12:45:49.000Z | 2021-04-28T14:16:04.000Z | scripts/fft_estimator.py | chrstrom/monkey_estimation | 1095c0c6cdf810fca61fb6174ec272ef658926ca | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
import signals
import cfg
import numpy as np
def calculate_m_star(Fw):
"""
Calculate the m_star as described by
Eq. (5) and Eq. (9) in the project spec.
"""
return np.argmax(np.absolute(Fw))
def calculate_w_hat(m_star, M):
"""
Calculate the angular frequency estima... | 23.303571 | 53 | 0.651341 | 238 | 1,305 | 3.369748 | 0.285714 | 0.054863 | 0.014963 | 0.05611 | 0.229426 | 0.129676 | 0.052369 | 0 | 0 | 0 | 0 | 0.008097 | 0.242912 | 1,305 | 56 | 54 | 23.303571 | 0.803644 | 0.402299 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.142857 | 0 | 0.619048 | 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 |
1bed96ebcb27a75c338a5dde86db70938716508c | 609 | py | Python | ass_16.py | Divyanshi0409/Python-Programs | 7fb8ab2159cc69de7168bf19f91325b9c7a908c7 | [
"MIT"
] | null | null | null | ass_16.py | Divyanshi0409/Python-Programs | 7fb8ab2159cc69de7168bf19f91325b9c7a908c7 | [
"MIT"
] | null | null | null | ass_16.py | Divyanshi0409/Python-Programs | 7fb8ab2159cc69de7168bf19f91325b9c7a908c7 | [
"MIT"
] | null | null | null | income_tax=0
id = int(input("Enter Employee id: "))
basic_salary = int(input("Enter monthly gross salary: "))
allowance = int(input("Enter allowance: "))
gross_salary = basic_salary+allowance
if gross_salary<=5000:
income_tax = 0
elif gross_salary<=10000:
income_tax = 0.1 * gross_salary
elif gross_salary<=20... | 29 | 168 | 0.722496 | 90 | 609 | 4.655556 | 0.344444 | 0.26253 | 0.119332 | 0.095465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041985 | 0.139573 | 609 | 20 | 169 | 30.45 | 0.757634 | 0 | 0 | 0.133333 | 0 | 0.066667 | 0.256158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.066667 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.