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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d90dc374d2b39fa61d3cba351838c03efda5d24f | 2,573 | py | Python | clusteris/main/interactor.py | iturricf/clusteris | 5be2768e926f411fca4156981688202e0734080a | [
"MIT"
] | null | null | null | clusteris/main/interactor.py | iturricf/clusteris | 5be2768e926f411fca4156981688202e0734080a | [
"MIT"
] | null | null | null | clusteris/main/interactor.py | iturricf/clusteris | 5be2768e926f411fca4156981688202e0734080a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import wx
class Interactor(object):
"""Connects the UI events with the Presenter class."""
def Connect(self, presenter, view):
"""Listens to UI evens and asigns an event handler on the Presenter."""
self.presenter = presenter
self.view = view
# Menu Ar... | 36.239437 | 251 | 0.697241 | 291 | 2,573 | 6.099656 | 0.38488 | 0.095211 | 0.050704 | 0.065915 | 0.11831 | 0.094648 | 0 | 0 | 0 | 0 | 0 | 0.001458 | 0.200155 | 2,573 | 70 | 252 | 36.757143 | 0.86103 | 0.085892 | 0 | 0 | 0 | 0.023256 | 0.112586 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.27907 | false | 0 | 0.046512 | 0 | 0.348837 | 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 |
d9121bff958f44d49cd2bd4de85d7e60ce6613b5 | 22,134 | py | Python | wgrib2-v0.1.9.4/pytests/TestModelFile.py | jprules321/colas | 2757d5c077c3306d510488a0134ac4120e2d3fa0 | [
"MIT"
] | null | null | null | wgrib2-v0.1.9.4/pytests/TestModelFile.py | jprules321/colas | 2757d5c077c3306d510488a0134ac4120e2d3fa0 | [
"MIT"
] | null | null | null | wgrib2-v0.1.9.4/pytests/TestModelFile.py | jprules321/colas | 2757d5c077c3306d510488a0134ac4120e2d3fa0 | [
"MIT"
] | null | null | null | """
Test Basic GrADS Operations on the standard "model" test file.
"""
# Add parent directory to python search path
# ------------------------------------------
import os
import sys
sys.path.insert(0,'..')
sys.path.insert(0,'lib')
import unittest
from grads import GrADS
class TestModelFile(unittest.TestCase):
d... | 32.646018 | 104 | 0.556519 | 2,998 | 22,134 | 4.022682 | 0.126084 | 0.042289 | 0.010199 | 0.008292 | 0.663018 | 0.637065 | 0.604395 | 0.524627 | 0.499834 | 0.458872 | 0 | 0.063765 | 0.252507 | 22,134 | 677 | 105 | 32.694239 | 0.665156 | 0.078251 | 0 | 0.492274 | 0 | 0.004415 | 0.134048 | 0.00132 | 0 | 0 | 0 | 0 | 0.125828 | 0 | null | null | 0.01766 | 0.00883 | null | null | 0.041943 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d922040a47ba261550f0d56403df1602999c3763 | 1,059 | py | Python | tests/test_main/main_weather_data.py | zahraghh/Two-Stage-Stochastic-Programming | 9aa0c1d9f4b11483ad0791b5029f292cb679c57e | [
"MIT"
] | 3 | 2021-10-06T01:03:08.000Z | 2022-03-28T11:17:26.000Z | tests/test_main/main_weather_data.py | zahraghh/Two-Stage-Stochastic-Programming | 9aa0c1d9f4b11483ad0791b5029f292cb679c57e | [
"MIT"
] | 1 | 2021-04-20T16:35:17.000Z | 2021-04-20T16:35:17.000Z | tests/test_main/main_weather_data.py | zahraghh/Two-Stage-Stochastic-Programming | 9aa0c1d9f4b11483ad0791b5029f292cb679c57e | [
"MIT"
] | 2 | 2021-05-20T13:33:58.000Z | 2021-06-04T12:09:43.000Z | import os
import sys
import pandas as pd
import csv
from Two_Stage_SP import download_windsolar_data, GTI,uncertainty_analysis
if __name__ == "__main__":
#Reading the data from the Weather Data Analysis section of the editable_values.csv
editable_data_path =os.path.join(sys.path[0], 'editable_values.csv'... | 55.736842 | 114 | 0.769594 | 156 | 1,059 | 4.987179 | 0.435897 | 0.051414 | 0.071979 | 0.064267 | 0.316195 | 0.241645 | 0.241645 | 0.241645 | 0.097686 | 0 | 0 | 0.008989 | 0.159585 | 1,059 | 18 | 115 | 58.833333 | 0.865169 | 0.397545 | 0 | 0 | 0 | 0 | 0.071778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d92301df541bcf9cb8456c0efe0b5cb39a0d265e | 1,757 | py | Python | tests/test_ast.py | keith/xcode-ast-dump | 0f4ab065e7011f3912cbdd7ceb5aeb873c8e0e2d | [
"MIT"
] | 80 | 2017-02-26T02:14:44.000Z | 2022-03-28T21:20:12.000Z | tests/test_ast.py | keith/xcode-ast-dump | 0f4ab065e7011f3912cbdd7ceb5aeb873c8e0e2d | [
"MIT"
] | 2 | 2017-10-12T04:36:53.000Z | 2020-03-26T02:25:22.000Z | tests/test_ast.py | keith/xcode-ast-dump | 0f4ab065e7011f3912cbdd7ceb5aeb873c8e0e2d | [
"MIT"
] | 3 | 2017-08-07T18:45:39.000Z | 2020-04-21T01:52:25.000Z | import ast
import unittest
RAW_ARGUMENTS = open("tests/arguments.txt").read().strip().split()
class TestAST(unittest.TestCase):
def test_removes_emits(self):
_, other_arguments = ast.build_parser().parse_known_args(RAW_ARGUMENTS)
for argument in other_arguments:
self.assertNotIn("emit... | 35.14 | 79 | 0.658509 | 206 | 1,757 | 5.325243 | 0.325243 | 0.06381 | 0.054695 | 0.091158 | 0.35825 | 0.19052 | 0.19052 | 0.19052 | 0.109389 | 0 | 0 | 0.001439 | 0.208879 | 1,757 | 49 | 80 | 35.857143 | 0.78777 | 0 | 0 | 0.054054 | 0 | 0 | 0.132043 | 0.026181 | 0 | 0 | 0 | 0 | 0.27027 | 1 | 0.27027 | false | 0 | 0.054054 | 0 | 0.351351 | 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 |
d92f8da1257f134a353913f927b58053f137ff81 | 304 | py | Python | setup.py | degibbons/Tilibot | 416a3d09db658ac5cbd4049e3891560e4315c0fe | [
"MIT"
] | null | null | null | setup.py | degibbons/Tilibot | 416a3d09db658ac5cbd4049e3891560e4315c0fe | [
"MIT"
] | null | null | null | setup.py | degibbons/Tilibot | 416a3d09db658ac5cbd4049e3891560e4315c0fe | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from distutils.core import setup
setup(name='Tilibot',
version='1.0', # Fix
description='Tiliqua Biomechanics Emulation',
author='Dan Gibbons',
author_email='danegibbons@gmail.com',
packages=['distutils', 'distutils.command'], # Fix
) | 27.636364 | 57 | 0.634868 | 33 | 304 | 5.818182 | 0.848485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008475 | 0.223684 | 304 | 11 | 58 | 27.636364 | 0.805085 | 0.092105 | 0 | 0 | 0 | 0 | 0.371212 | 0.079545 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 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 |
d9354c8620fc3103f2a6d70646ac1ac80a90317c | 1,470 | py | Python | backend/poolguybackend/api/migrations/0001_initial.py | dotchetter/poolguy | 2570c5f75f2ef9f9462f49544713e728c14dfaf2 | [
"MIT"
] | null | null | null | backend/poolguybackend/api/migrations/0001_initial.py | dotchetter/poolguy | 2570c5f75f2ef9f9462f49544713e728c14dfaf2 | [
"MIT"
] | 3 | 2020-12-08T21:10:09.000Z | 2021-05-23T09:32:26.000Z | backend/poolguybackend/api/migrations/0001_initial.py | dotchetter/poolguy | 2570c5f75f2ef9f9462f49544713e728c14dfaf2 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.3 on 2021-05-23 12:54
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | 38.684211 | 123 | 0.614286 | 155 | 1,470 | 5.703226 | 0.503226 | 0.027149 | 0.040724 | 0.049774 | 0.18552 | 0.18552 | 0.18552 | 0.18552 | 0.18552 | 0.18552 | 0 | 0.040541 | 0.244898 | 1,470 | 37 | 124 | 39.72973 | 0.755856 | 0.030612 | 0 | 0.333333 | 1 | 0 | 0.120169 | 0.025299 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.266667 | 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 |
d935515d4cede49ccb32bdc6c76168f800180336 | 15,516 | py | Python | netta/model.py | zhangdafu12/web | 64ce7db4697167215bf9ee25cd5bdc0bd15b5831 | [
"MIT"
] | null | null | null | netta/model.py | zhangdafu12/web | 64ce7db4697167215bf9ee25cd5bdc0bd15b5831 | [
"MIT"
] | 1 | 2020-03-30T09:26:59.000Z | 2020-03-30T09:26:59.000Z | netta/model.py | zhangdafu12/web | 64ce7db4697167215bf9ee25cd5bdc0bd15b5831 | [
"MIT"
] | null | null | null | # -*- encoding:utf8 -*-
# author: Shulei
# e-mail: 1191543592@qq.com
# time: 2019/4/2 11:56
import random
import re
from _datetime import datetime
from collections import Counter
import jieba
import operator
import pymysql
import requests
from flask import Flask, json
from flask_sqlalchemy import SQLAlchemy
from sqlal... | 33.511879 | 132 | 0.605762 | 2,078 | 15,516 | 4.365255 | 0.176612 | 0.069673 | 0.080476 | 0.059971 | 0.399956 | 0.327858 | 0.26943 | 0.224782 | 0.203065 | 0.154558 | 0 | 0.018022 | 0.252578 | 15,516 | 462 | 133 | 33.584416 | 0.764163 | 0.231052 | 0 | 0.24911 | 0 | 0 | 0.081283 | 0.013321 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046263 | false | 0.007117 | 0.049822 | 0.014235 | 0.512456 | 0.010676 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d93b6819d76a6a062ecf639215d6bc16ffa791c2 | 1,344 | py | Python | src/test_eorzea_time.py | Indanaiya/ffoverlay | 57ed0bae3beaa9c1662c7f4792097a854905b611 | [
"MIT"
] | null | null | null | src/test_eorzea_time.py | Indanaiya/ffoverlay | 57ed0bae3beaa9c1662c7f4792097a854905b611 | [
"MIT"
] | 1 | 2020-07-02T16:03:07.000Z | 2020-07-02T16:03:07.000Z | src/test_eorzea_time.py | Indanaiya/ffoverlay | 57ed0bae3beaa9c1662c7f4792097a854905b611 | [
"MIT"
] | null | null | null | import unittest
import eorzea_time
from eorzea_time import getEorzeaTime, getEorzeaTimeDecimal, timeUntilInEorzea
from unittest import mock
class EorzeaTimeTests(unittest.TestCase):
def test_type_of_getEorzeaTimeDecimal(self):
self.assertEqual(type(getEorzeaTimeDecimal()), type((0.0,0.0)))
def te... | 42 | 89 | 0.674851 | 139 | 1,344 | 6.42446 | 0.374101 | 0.134379 | 0.143337 | 0.029115 | 0.181411 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039461 | 0.226935 | 1,344 | 32 | 90 | 42 | 0.820019 | 0.091518 | 0 | 0.086957 | 0 | 0 | 0.016461 | 0 | 0 | 0 | 0 | 0 | 0.434783 | 1 | 0.173913 | false | 0 | 0.173913 | 0 | 0.391304 | 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 |
d93c9680cbfa575dc056432e8cc9b06a824d225c | 2,442 | py | Python | PythonWallet/post_balance_address.py | IOTAplus/SMART-ENERGY-CONTROLL | 71addc46361009fc94205ff0f07b40d191282282 | [
"Apache-2.0"
] | null | null | null | PythonWallet/post_balance_address.py | IOTAplus/SMART-ENERGY-CONTROLL | 71addc46361009fc94205ff0f07b40d191282282 | [
"Apache-2.0"
] | null | null | null | PythonWallet/post_balance_address.py | IOTAplus/SMART-ENERGY-CONTROLL | 71addc46361009fc94205ff0f07b40d191282282 | [
"Apache-2.0"
] | 3 | 2020-12-18T13:19:59.000Z | 2021-08-16T05:57:52.000Z | '''
In this example we generate 1 address with a security level of 2 (default)
for a given seed. This is the first available, unused address for this seed.
'''
from iota import Iota
import pprint
import time
import json
import requests
# This is a demonstration seed, always generate your own seed!
my_seed = 'EDFCUGAM... | 40.7 | 153 | 0.685504 | 339 | 2,442 | 4.914454 | 0.477876 | 0.018007 | 0.016206 | 0.021609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020041 | 0.203112 | 2,442 | 59 | 154 | 41.389831 | 0.836074 | 0.46683 | 0 | 0 | 1 | 0 | 0.264476 | 0.06338 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.172414 | 0 | 0.172414 | 0.275862 | 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 |
d9407e161063bab0e2013286ccbee1c307f1dafe | 275 | py | Python | blocks/templatetags/blocks_admin.py | kimus/django-blocks | 18376170e58c4ecf32056c950ecbe1952c6ae474 | [
"MIT"
] | 3 | 2015-10-14T02:57:04.000Z | 2021-05-12T03:12:42.000Z | blocks/templatetags/blocks_admin.py | kimus/django-blocks | 18376170e58c4ecf32056c950ecbe1952c6ae474 | [
"MIT"
] | null | null | null | blocks/templatetags/blocks_admin.py | kimus/django-blocks | 18376170e58c4ecf32056c950ecbe1952c6ae474 | [
"MIT"
] | null | null | null | from django import template
from django.conf import settings
register = template.Library()
@register.assignment_tag
def get_language_byindex(index):
lang = ('', '')
try:
lang = settings.LANGUAGES[index]
except KeyError:
pass
except IndexError:
pass
return lang
| 16.176471 | 34 | 0.749091 | 34 | 275 | 5.970588 | 0.676471 | 0.098522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 275 | 16 | 35 | 17.1875 | 0.878788 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.153846 | 0.153846 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d94542eddf750a4b38b69613b500c1654acb0e7f | 41,166 | py | Python | hamiltonian_chain/hamiltonian_chain_solution.py | bzliu94/algorithms | 43ccefd7ea1fd88339bf2afa0b35b0a3bdf6acff | [
"MIT"
] | null | null | null | hamiltonian_chain/hamiltonian_chain_solution.py | bzliu94/algorithms | 43ccefd7ea1fd88339bf2afa0b35b0a3bdf6acff | [
"MIT"
] | null | null | null | hamiltonian_chain/hamiltonian_chain_solution.py | bzliu94/algorithms | 43ccefd7ea1fd88339bf2afa0b35b0a3bdf6acff | [
"MIT"
] | null | null | null | # 2015-12-14
# solves hamiltonian chain enumeration problem
# usage: python hamiltonian_chain_solution.py W H
# where W is grid width and H is grid height
# takes O(2 ^ L * L ^ 2) time
# involves memoizing using a surface key
# inspired by anand krishnamoorthi
# algorithm comes from a paper by j. l. jacobsen
imp... | 44.216971 | 182 | 0.720546 | 5,323 | 41,166 | 5.226188 | 0.056171 | 0.023653 | 0.035587 | 0.017254 | 0.657356 | 0.595672 | 0.556131 | 0.526367 | 0.503037 | 0.482332 | 0 | 0.014272 | 0.189841 | 41,166 | 930 | 183 | 44.264516 | 0.819855 | 0.007118 | 0 | 0.462295 | 0 | 0 | 0.000905 | 0 | 0 | 0 | 0 | 0 | 0.003279 | 0 | null | null | 0 | 0.005464 | null | null | 0.003279 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d94605ef09be45b12cbd299b43c48254060a2d8a | 6,771 | py | Python | pluto/coms/client/protos/account_state_pb2.py | chalant/pluto | e7bfd35a2c1fc0e0753bd2f840b0a4385b5124fc | [
"Apache-2.0"
] | null | null | null | pluto/coms/client/protos/account_state_pb2.py | chalant/pluto | e7bfd35a2c1fc0e0753bd2f840b0a4385b5124fc | [
"Apache-2.0"
] | null | null | null | pluto/coms/client/protos/account_state_pb2.py | chalant/pluto | e7bfd35a2c1fc0e0753bd2f840b0a4385b5124fc | [
"Apache-2.0"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: contrib/coms/client/protos/account_state.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.pro... | 42.055901 | 708 | 0.769901 | 892 | 6,771 | 5.508969 | 0.172646 | 0.042328 | 0.047009 | 0.03256 | 0.595442 | 0.573667 | 0.573667 | 0.532153 | 0.486162 | 0.47558 | 0 | 0.037679 | 0.114163 | 6,771 | 160 | 709 | 42.31875 | 0.781594 | 0.041353 | 0 | 0.576642 | 1 | 0.007299 | 0.190315 | 0.140962 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.051095 | 0 | 0.051095 | 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 |
d9467d82caa3742e72cddb2405db95bac1cb7721 | 4,870 | py | Python | projects/ephys_passive_opto.py | int-brain-lab/project_extraction | 814d4092bc14925ea3e546d4c359c4632aa2f4d8 | [
"MIT"
] | null | null | null | projects/ephys_passive_opto.py | int-brain-lab/project_extraction | 814d4092bc14925ea3e546d4c359c4632aa2f4d8 | [
"MIT"
] | 1 | 2021-10-11T13:21:05.000Z | 2021-10-11T13:21:05.000Z | projects/ephys_passive_opto.py | int-brain-lab/project_extraction | 814d4092bc14925ea3e546d4c359c4632aa2f4d8 | [
"MIT"
] | null | null | null | from collections import OrderedDict
import numpy as np
import one.alf.io as alfio
from ibllib.io.extractors import ephys_fpga
from ibllib.dsp.utils import sync_timestamps
from ibllib.plots import squares, vertical_lines
from ibllib.pipes import tasks
from ibllib.pipes.ephys_preprocessing import (
EphysRegisterRa... | 43.097345 | 124 | 0.656468 | 547 | 4,870 | 5.579525 | 0.265082 | 0.061271 | 0.073722 | 0.025557 | 0.213303 | 0.135321 | 0.097313 | 0.059961 | 0.038336 | 0 | 0 | 0.007311 | 0.213552 | 4,870 | 112 | 125 | 43.482143 | 0.789556 | 0.01848 | 0 | 0 | 0 | 0 | 0.189399 | 0.073329 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0.068182 | 0.090909 | 0 | 0.204545 | 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 |
d94a2676cd152e4d9551fbf6504a25e430207961 | 667 | py | Python | tests/pruebas_funcionales/login.py | Javier-Alonso29/conalep | 5c4c7b1a932ece9daa95576ecc666079a2af52fc | [
"MIT"
] | 2 | 2020-12-05T15:09:29.000Z | 2021-06-19T05:00:47.000Z | tests/pruebas_funcionales/login.py | Javier-Alonso29/conalep | 5c4c7b1a932ece9daa95576ecc666079a2af52fc | [
"MIT"
] | 1 | 2021-09-05T17:54:36.000Z | 2021-09-05T17:54:36.000Z | tests/pruebas_funcionales/login.py | Javier-Alonso29/conalep | 5c4c7b1a932ece9daa95576ecc666079a2af52fc | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
from selenium.webdriver.chrome.options import Options
options = Options()
extset = ['enable-automation', 'ignore-certificate-errors']
options.add_argument("--window-size=600,600")
options.add_argument("--headless")
options.add_e... | 35.105263 | 76 | 0.796102 | 90 | 667 | 5.755556 | 0.522222 | 0.069498 | 0.081081 | 0.073359 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014377 | 0.061469 | 667 | 19 | 77 | 35.105263 | 0.813099 | 0.04048 | 0 | 0 | 0 | 0 | 0.245696 | 0.107981 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.066667 | 0.266667 | 0 | 0.266667 | 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 |
d94ab091e6a1a4ca18677efd1ef5213d833cc44e | 1,273 | py | Python | crud/models.py | TownOneWheel/townonewheel | 9feb120b7541b31d99b63c95edc7949005ab7862 | [
"MIT"
] | null | null | null | crud/models.py | TownOneWheel/townonewheel | 9feb120b7541b31d99b63c95edc7949005ab7862 | [
"MIT"
] | 18 | 2021-07-01T08:35:13.000Z | 2021-07-25T08:18:09.000Z | crud/models.py | TownOneWheel/townonewheel | 9feb120b7541b31d99b63c95edc7949005ab7862 | [
"MIT"
] | 1 | 2021-07-13T05:12:14.000Z | 2021-07-13T05:12:14.000Z | from django.db import models
from django.db.models.fields import NullBooleanField
from django.contrib.auth.models import User, update_last_login
from behavior import BaseField
class Cat(BaseField):
catname = models.CharField(max_length=64)
gender = models.CharField(max_length=20, null=True, blank=True)
c... | 43.896552 | 114 | 0.758837 | 173 | 1,273 | 5.456647 | 0.33526 | 0.067797 | 0.110169 | 0.144068 | 0.324153 | 0.324153 | 0.324153 | 0.324153 | 0.324153 | 0.233051 | 0 | 0.037668 | 0.124116 | 1,273 | 29 | 115 | 43.896552 | 0.808969 | 0.022781 | 0 | 0 | 0 | 0 | 0.016895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.190476 | 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 |
d94afbc5e509a33b12162dbf9ec7e89ccc29ca60 | 8,497 | py | Python | online/online_detection/hmm_online_endpose_detection.py | birlrobotics/bnpy | 8f297d8f3e4a56088d7755134c329f63a550be9e | [
"BSD-3-Clause"
] | 3 | 2018-07-02T03:50:23.000Z | 2019-05-16T03:23:55.000Z | online/online_detection/hmm_online_endpose_detection.py | birlrobotics/bnpy | 8f297d8f3e4a56088d7755134c329f63a550be9e | [
"BSD-3-Clause"
] | 1 | 2021-01-07T01:33:06.000Z | 2021-01-07T01:33:06.000Z | online/online_detection/hmm_online_endpose_detection.py | birlrobotics/bnpy | 8f297d8f3e4a56088d7755134c329f63a550be9e | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import sys
import os
import pandas as pd
import numpy as np
from hmmlearn.hmm import *
from sklearn.externals import joblib
import ipdb
from math import (
log,
exp
)
from sklearn.preprocessing import (
scale,
normalize
)
#######-----ros module----##########
import rospy
from std_m... | 39.705607 | 104 | 0.587148 | 1,019 | 8,497 | 4.603533 | 0.180569 | 0.043488 | 0.076103 | 0.071627 | 0.585589 | 0.555106 | 0.538691 | 0.525048 | 0.483266 | 0.348113 | 0 | 0.017652 | 0.313287 | 8,497 | 213 | 105 | 39.892019 | 0.78629 | 0.024597 | 0 | 0.305085 | 0 | 0 | 0.169935 | 0.132292 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.096045 | null | null | 0.039548 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d95058e6d22f2f8a9db2a25d95539e7414bb9e17 | 3,703 | py | Python | plc_io/core_libraries/mqtt_current_monitor_interface_py3.py | bopopescu/docker_images_a | 348d0982c5962f2ae34d10183ed9522b7a6fe286 | [
"MIT"
] | 2 | 2018-02-21T03:46:51.000Z | 2019-12-24T16:40:51.000Z | plc_io/core_libraries/mqtt_current_monitor_interface_py3.py | bopopescu/docker_images_a | 348d0982c5962f2ae34d10183ed9522b7a6fe286 | [
"MIT"
] | 7 | 2020-07-16T19:54:08.000Z | 2022-03-02T03:29:07.000Z | plc_io/core_libraries/mqtt_current_monitor_interface_py3.py | bopopescu/docker_images_a | 348d0982c5962f2ae34d10183ed9522b7a6fe286 | [
"MIT"
] | 2 | 2018-04-16T07:02:35.000Z | 2020-07-23T21:57:19.000Z | import paho.mqtt.client as mqtt
import ssl
from redis_support_py3.graph_query_support_py3 import Query_Support
from redis_support_py3.construct_data_handlers_py3 import Generate_Handlers
import time
import msgpack
class MQTT_Current_Monitor_Publish(object):
def __init__(self,redis_site,topic_prefix,qs ) :
... | 27.634328 | 115 | 0.642452 | 427 | 3,703 | 5.199063 | 0.241218 | 0.113514 | 0.072973 | 0.093243 | 0.454955 | 0.418018 | 0.36982 | 0.187838 | 0.125676 | 0.051351 | 0 | 0.006282 | 0.269241 | 3,703 | 133 | 116 | 27.842105 | 0.814117 | 0.021334 | 0 | 0.325301 | 1 | 0 | 0.157336 | 0.118289 | 0 | 0 | 0 | 0 | 0 | 1 | 0.13253 | false | 0 | 0.228916 | 0 | 0.373494 | 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 |
d953cc37e63915d491b85c02c1aa1cdc06bdca71 | 2,642 | py | Python | tools/versioncmp/examples/static_web/w_vordir_deterministic.py | dtip/magics | 3247535760ca962f859c203295b508d442aca4ed | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | tools/versioncmp/examples/static_web/w_vordir_deterministic.py | dtip/magics | 3247535760ca962f859c203295b508d442aca4ed | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | tools/versioncmp/examples/static_web/w_vordir_deterministic.py | dtip/magics | 3247535760ca962f859c203295b508d442aca4ed | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2019-12-18T17:01:56.000Z | 2019-12-18T17:01:56.000Z | # (C) Copyright 1996-2016 ECMWF.
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
# In applying this licence, ECMWF does not waive the privileges and immunities
# granted to it by virtue of its status as an intergov... | 35.702703 | 129 | 0.711204 | 374 | 2,642 | 4.802139 | 0.457219 | 0.020045 | 0.033408 | 0.036192 | 0.101893 | 0.041203 | 0 | 0 | 0 | 0 | 0 | 0.053595 | 0.152536 | 2,642 | 73 | 130 | 36.191781 | 0.748548 | 0.15405 | 0 | 0 | 0 | 0 | 0.127191 | 0.009438 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.061224 | null | null | 0.081633 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d953f8d623722e37ae9d80f3a5ecf61402e5d499 | 668 | py | Python | tests/factories.py | omni-digital/omni-wagtail-library | e30b431aed84da5e5f07a9a8909bae10a410080d | [
"MIT"
] | 2 | 2017-09-27T06:30:46.000Z | 2020-04-20T05:34:18.000Z | tests/factories.py | omni-digital/omni-wagtail-library | e30b431aed84da5e5f07a9a8909bae10a410080d | [
"MIT"
] | 5 | 2017-07-17T13:42:14.000Z | 2020-09-09T02:58:06.000Z | tests/factories.py | omni-digital/omni-wagtail-library | e30b431aed84da5e5f07a9a8909bae10a410080d | [
"MIT"
] | null | null | null | # -*- coding:utf8 -*-
from __future__ import unicode_literals
from factory import Sequence
from wagtail_factories import PageFactory
from wagtail_library.models import LibraryIndex, LibraryDetail
class LibraryIndexFactory(PageFactory):
title = Sequence("Library index {}".format)
body = Sequence("Library i... | 22.266667 | 62 | 0.699102 | 65 | 668 | 7.076923 | 0.430769 | 0.130435 | 0.104348 | 0.134783 | 0.204348 | 0.204348 | 0.204348 | 0.204348 | 0 | 0 | 0 | 0.001855 | 0.193114 | 668 | 29 | 63 | 23.034483 | 0.851577 | 0.08982 | 0 | 0.142857 | 0 | 0 | 0.130653 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d954154e7b9daa5cdea8c4b4390e0576c8ac5293 | 5,948 | py | Python | ocr/form_recognizer.py | PrynsTag/oneBarangay | 6a8d56003d85b8385e91f5c5d81208619023c1ee | [
"Apache-2.0"
] | null | null | null | ocr/form_recognizer.py | PrynsTag/oneBarangay | 6a8d56003d85b8385e91f5c5d81208619023c1ee | [
"Apache-2.0"
] | 96 | 2021-08-28T12:37:02.000Z | 2022-03-23T04:25:12.000Z | ocr/form_recognizer.py | PrynsTag/oneBarangay | 6a8d56003d85b8385e91f5c5d81208619023c1ee | [
"Apache-2.0"
] | null | null | null | """Recognize and extract forms."""
import os
from statistics import fmean
from azure.ai.formrecognizer.aio import FormRecognizerClient, FormTrainingClient
from azure.core.credentials import AzureKeyCredential
class RecognizeCustomFormsSampleAsync:
"""Class to recognize forms in async mode."""
async def reco... | 43.416058 | 96 | 0.408036 | 451 | 5,948 | 5.195122 | 0.288248 | 0.035851 | 0.022194 | 0.039266 | 0.231327 | 0.129748 | 0.075117 | 0.075117 | 0.075117 | 0.075117 | 0 | 0.001716 | 0.510256 | 5,948 | 136 | 97 | 43.735294 | 0.802609 | 0.03766 | 0 | 0.287129 | 0 | 0 | 0.084929 | 0.032038 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.039604 | 0 | 0.069307 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d95456b0cf6e716016dab5bebf221a2c0e45cb70 | 1,645 | py | Python | src/yews/transforms/base.py | Lchuang/yews | 254c1d3887b812a94421bd6ccef4a51a7ef330e0 | [
"Apache-2.0"
] | 6 | 2019-04-15T17:41:34.000Z | 2019-08-18T13:17:23.000Z | src/yews/transforms/base.py | Luojiahong/yews | a3653f9d29cbeb257bdc28019ab7fbba365dec94 | [
"Apache-2.0"
] | 11 | 2020-04-19T12:28:56.000Z | 2021-05-13T16:43:03.000Z | src/yews/transforms/base.py | ChujieChen/yews | a80881597a45375353f80b696670b27cdfec5db2 | [
"Apache-2.0"
] | 9 | 2019-04-28T04:28:16.000Z | 2020-04-17T18:29:07.000Z | def is_transform(obj):
"""Verfy if a object is a ``transform-like`` object.
Args:
obj: Object to be determined.
Returns:
bool: True for ``transform-like`` object, false otherwise.
"""
return hasattr(obj, '__call__')
class BaseTransform(object):
"""An abstract class representi... | 26.111111 | 82 | 0.600608 | 177 | 1,645 | 5.254237 | 0.451977 | 0.064516 | 0.06129 | 0.043011 | 0.043011 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00085 | 0.284498 | 1,645 | 62 | 83 | 26.532258 | 0.789295 | 0.426748 | 0 | 0.166667 | 0 | 0 | 0.059172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d961160e69c3b9c624baed9fdc6dfac21f4188e3 | 726 | py | Python | data/train/python/d961160e69c3b9c624baed9fdc6dfac21f4188e3urls.py | harshp8l/deep-learning-lang-detection | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | [
"MIT"
] | 84 | 2017-10-25T15:49:21.000Z | 2021-11-28T21:25:54.000Z | data/train/python/d961160e69c3b9c624baed9fdc6dfac21f4188e3urls.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 5 | 2018-03-29T11:50:46.000Z | 2021-04-26T13:33:18.000Z | data/train/python/d961160e69c3b9c624baed9fdc6dfac21f4188e3urls.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 24 | 2017-11-22T08:31:00.000Z | 2022-03-27T01:22:31.000Z | from django.conf.urls import patterns, include, url
from django.contrib import admin
from api import *
from tastypie.api import Api
v1_api = Api(api_name='v1')
v1_api.register(AddressResource())
v1_api.register(PersonResource())
v1_api.register(FormOfLegResource())
v1_api.register(TypeOfSocFormResource())
v1_api.regis... | 25.928571 | 51 | 0.775482 | 91 | 726 | 6.021978 | 0.318681 | 0.127737 | 0.284672 | 0.09854 | 0.122263 | 0.122263 | 0.122263 | 0 | 0 | 0 | 0 | 0.022355 | 0.075758 | 726 | 27 | 52 | 26.888889 | 0.794337 | 0 | 0 | 0 | 0 | 0 | 0.027888 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.266667 | 0 | 0.266667 | 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 |
d965d56fec5b044531bf8e1c8cd06876dc600a8e | 1,864 | py | Python | tests/test_ghoclient.py | fccoelho/ghoclient | 566e2f20a898853f1df61ad8cc55a01e1d18245d | [
"MIT"
] | 1 | 2021-05-10T19:01:25.000Z | 2021-05-10T19:01:25.000Z | tests/test_ghoclient.py | thegraphnetwork/ghoclient | 566e2f20a898853f1df61ad8cc55a01e1d18245d | [
"MIT"
] | null | null | null | tests/test_ghoclient.py | thegraphnetwork/ghoclient | 566e2f20a898853f1df61ad8cc55a01e1d18245d | [
"MIT"
] | 1 | 2021-07-09T15:01:01.000Z | 2021-07-09T15:01:01.000Z | #!/usr/bin/env python
"""Tests for `ghoclient` package."""
import unittest
from click.testing import CliRunner
import ghoclient
from ghoclient import cli
from ghoclient import Index
import pandas as pd
from whoosh.searching import Hit
class TestGhoclient(unittest.TestCase):
"""Tests for `ghoclient` package."""... | 29.125 | 74 | 0.657189 | 233 | 1,864 | 5.124464 | 0.373391 | 0.041039 | 0.025126 | 0.060302 | 0.273032 | 0.107203 | 0.107203 | 0.075377 | 0.075377 | 0.075377 | 0 | 0.009047 | 0.229077 | 1,864 | 64 | 75 | 29.125 | 0.821851 | 0.118026 | 0 | 0.125 | 0 | 0 | 0.040298 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.225 | false | 0 | 0.175 | 0 | 0.475 | 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 |
d967ec4306f423ac3e6855de056164a9947bc934 | 10,428 | py | Python | src/ptide/main.py | ptphp/PyLib | 07ac99cf2deb725475f5771b123b9ea1375f5e65 | [
"Apache-2.0"
] | 1 | 2020-02-17T08:18:29.000Z | 2020-02-17T08:18:29.000Z | src/ptide/main.py | ptphp/PyLib | 07ac99cf2deb725475f5771b123b9ea1375f5e65 | [
"Apache-2.0"
] | null | null | null | src/ptide/main.py | ptphp/PyLib | 07ac99cf2deb725475f5771b123b9ea1375f5e65 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#!/usr/bin/env python
from PySide import QtCore, QtGui,QtWebKit
from ptpy.pyside.webkit.webview import WebView
from ptpy.dir.tree import listFiles
from ptpy.file.main import getContent
from ptpy.offline.main import download
import json
PREVIEW_URL = "http://dev.game110.cn"
class Editor(QtCore... | 40.418605 | 124 | 0.635405 | 1,034 | 10,428 | 6.382012 | 0.261122 | 0.048341 | 0.020458 | 0.031823 | 0.335202 | 0.31626 | 0.28474 | 0.245795 | 0.191847 | 0.191847 | 0 | 0.00239 | 0.237725 | 10,428 | 257 | 125 | 40.575875 | 0.827777 | 0.080073 | 0 | 0.189744 | 0 | 0 | 0.054382 | 0.006379 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010256 | 0.035897 | null | null | 0.005128 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d9774c7cb42dd2a0c59d5bd0e945bc0646e21346 | 577 | py | Python | pybinding/greens.py | lise1020/pybinding | 921d5c2ac0ecc0ef317ba28b0bf68899ea30709a | [
"BSD-2-Clause"
] | 159 | 2016-01-20T17:40:48.000Z | 2022-03-24T06:08:55.000Z | pybinding/greens.py | deilynazar/pybinding | ec1128aaa84a1b43a74fb970479ce4544bd63179 | [
"BSD-2-Clause"
] | 36 | 2016-11-01T17:15:12.000Z | 2022-03-08T14:31:51.000Z | pybinding/greens.py | deilynazar/pybinding | ec1128aaa84a1b43a74fb970479ce4544bd63179 | [
"BSD-2-Clause"
] | 57 | 2016-04-23T22:12:01.000Z | 2022-03-08T12:33:04.000Z | """Green's function computation and related methods
Deprecated: use the chebyshev module instead
"""
import warnings
from . import chebyshev
from .support.deprecated import LoudDeprecationWarning
__all__ = ['Greens', 'kpm', 'kpm_cuda']
Greens = chebyshev.KPM
def kpm(*args, **kwargs):
warnings.warn("Use pb.kpm(... | 26.227273 | 84 | 0.740035 | 70 | 577 | 5.985714 | 0.428571 | 0.066826 | 0.062053 | 0.105012 | 0.420048 | 0.420048 | 0.420048 | 0 | 0 | 0 | 0 | 0.003992 | 0.131716 | 577 | 21 | 85 | 27.47619 | 0.832335 | 0.162912 | 0 | 0 | 0 | 0 | 0.130252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d9782c5e89640dd1a05047c07a89eb6fd370b57f | 1,632 | py | Python | hope-note-module/hope-python-2.7-note/Chapter1.py | Hope6537/hope-battlepack | 503ba3a42c5899130d496a4693d05fca27136e9b | [
"Apache-2.0"
] | 5 | 2015-01-27T02:52:48.000Z | 2015-10-26T11:38:59.000Z | hope-note-module/hope-python-2.7-note/Chapter1.py | Hope6537/hope-battlepack | 503ba3a42c5899130d496a4693d05fca27136e9b | [
"Apache-2.0"
] | null | null | null | hope-note-module/hope-python-2.7-note/Chapter1.py | Hope6537/hope-battlepack | 503ba3a42c5899130d496a4693d05fca27136e9b | [
"Apache-2.0"
] | 2 | 2016-06-19T09:21:37.000Z | 2017-03-13T04:30:51.000Z | # encoding:utf-8
# !/usr/bin/env python
# Python语法层面
__author__ = 'Hope6537'
print "Hi,My name is %s , I am %d years old " % ("hope6537", 20)
programLanguages = ["java", "c#", "c++"];
programLanguages.append("python")
programLanguages.insert(1, "javascript")
programLanguages.pop()
programLanguages[2] = "c"
print pro... | 17.178947 | 64 | 0.605392 | 245 | 1,632 | 4.004082 | 0.420408 | 0.024465 | 0.014271 | 0.01631 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043036 | 0.216912 | 1,632 | 94 | 65 | 17.361702 | 0.72457 | 0.068627 | 0 | 0.114754 | 0 | 0 | 0.191926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.327869 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d97c249fb0c401a8e4e85454e3e88472b889fd98 | 869 | py | Python | tests/create_golden_values.py | jond01/dicom-numpy | d61b07f4dedfa21af729d1c1c9a08bfb00a54c32 | [
"MIT"
] | 89 | 2017-03-28T20:19:58.000Z | 2022-03-05T13:32:04.000Z | tests/create_golden_values.py | jond01/dicom-numpy | d61b07f4dedfa21af729d1c1c9a08bfb00a54c32 | [
"MIT"
] | 26 | 2017-09-13T23:23:21.000Z | 2021-12-21T20:54:52.000Z | tests/create_golden_values.py | jond01/dicom-numpy | d61b07f4dedfa21af729d1c1c9a08bfb00a54c32 | [
"MIT"
] | 18 | 2017-04-01T19:39:28.000Z | 2022-01-31T10:10:34.000Z | """
Generate a golden NPZ file from a dicom ZIP archive.
"""
import argparse
import numpy as np
from dicom_numpy.zip_archive import combined_series_from_zip
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument('-o', '--output', help='Output golden NPZ file', required=False)
parser.ad... | 27.15625 | 88 | 0.727273 | 123 | 869 | 4.821138 | 0.357724 | 0.067454 | 0.065767 | 0.060708 | 0.172007 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171461 | 869 | 31 | 89 | 28.032258 | 0.823611 | 0.126582 | 0 | 0 | 1 | 0 | 0.110054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.176471 | 0 | 0.352941 | 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 |
d97df632e174865dcb888590731b2b0b2a177b07 | 406 | py | Python | setup.py | Bridgeconn/mt2414 | 9b6938f4b3cb2b63d18fdd3a7bb28b5a275f3157 | [
"MIT"
] | 10 | 2017-02-08T05:00:43.000Z | 2021-03-31T21:26:20.000Z | setup.py | Bridgeconn/mt2414 | 9b6938f4b3cb2b63d18fdd3a7bb28b5a275f3157 | [
"MIT"
] | 188 | 2017-03-16T08:14:22.000Z | 2020-05-31T19:52:47.000Z | setup.py | Bridgeconn/mt2414 | 9b6938f4b3cb2b63d18fdd3a7bb28b5a275f3157 | [
"MIT"
] | 11 | 2017-02-08T05:01:01.000Z | 2020-02-26T11:12:53.000Z | from setuptools import setup
setup(
name="mt2414",
description="MT2414",
version="0.1.0",
install_requires=[
"nltk",
"polib",
"Flask",
"Flask-RESTful",
"PyJWT",
"Flask-Cors",
"requests",
"psycopg2",
"scrypt",
"gunicorn",
... | 16.916667 | 28 | 0.44335 | 32 | 406 | 5.59375 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04918 | 0.399015 | 406 | 23 | 29 | 17.652174 | 0.684426 | 0 | 0 | 0 | 0 | 0 | 0.288177 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.045455 | 0 | 0.045455 | 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 |
d97dfcd79840c79b3412bc9f59ddb0a4e67974a6 | 985 | py | Python | normalization.py | kuredatan/taxocluster | acec6219ae5b7bd8e3831d71ee79ecfeebb53c8b | [
"MIT"
] | null | null | null | normalization.py | kuredatan/taxocluster | acec6219ae5b7bd8e3831d71ee79ecfeebb53c8b | [
"MIT"
] | null | null | null | normalization.py | kuredatan/taxocluster | acec6219ae5b7bd8e3831d71ee79ecfeebb53c8b | [
"MIT"
] | null | null | null | #Centralization-reduction for a list of values
import numpy as np
from misc import inf
#Hypothesis of uniform probability for the occurrence of any bacteria whatever the clinic data may be (which is a strong hypothesis...)
def expectList(vList):
n = len(vList)
if not n:
print "\n/!\ ERROR: Empty list.... | 28.142857 | 135 | 0.657868 | 129 | 985 | 5.023256 | 0.496124 | 0.046296 | 0.033951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001364 | 0.255838 | 985 | 34 | 136 | 28.970588 | 0.882674 | 0.181726 | 0 | 0.071429 | 0 | 0 | 0.085821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d98e2a14747bde3365d4b8f41a094cc1f9dcd3a0 | 209 | py | Python | server/mausam.py | HackBots1111/flask-server-bot | 683932802d689d21b0b8397acd3f072197dea208 | [
"MIT"
] | null | null | null | server/mausam.py | HackBots1111/flask-server-bot | 683932802d689d21b0b8397acd3f072197dea208 | [
"MIT"
] | null | null | null | server/mausam.py | HackBots1111/flask-server-bot | 683932802d689d21b0b8397acd3f072197dea208 | [
"MIT"
] | null | null | null | from weather import Weather, Unit
def result(query):
weather = Weather(unit= Unit.CELSIUS)
location = weather.lookup_by_location(query)
condition = location.condition
return condition.text
| 9.086957 | 45 | 0.736842 | 25 | 209 | 6.08 | 0.56 | 0.144737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186603 | 209 | 22 | 46 | 9.5 | 0.894118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d98ebaca173dbdb7791e2de3924064bc42ceeff8 | 799 | py | Python | code/mutual_information.py | Rockysed/PSC_classification | 1815b673ac9374d9d2abd08ba0f1f43597316dee | [
"MIT"
] | null | null | null | code/mutual_information.py | Rockysed/PSC_classification | 1815b673ac9374d9d2abd08ba0f1f43597316dee | [
"MIT"
] | null | null | null | code/mutual_information.py | Rockysed/PSC_classification | 1815b673ac9374d9d2abd08ba0f1f43597316dee | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Dec 13 10:27:51 2018
@author: 754672
"""
#import libraries
import h5py
import numpy as np
from sklearn.feature_selection import mutual_info_classif
#import csdb data
new_file = h5py.File("../data/csdb_blabeled_reinhold_features/csdb_reinhold_features_correct_... | 19.487805 | 116 | 0.744681 | 108 | 799 | 5.194444 | 0.5 | 0.049911 | 0.090909 | 0.067736 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038519 | 0.155194 | 799 | 41 | 117 | 19.487805 | 0.792593 | 0.257822 | 0 | 0 | 0 | 0 | 0.208566 | 0.160149 | 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 |
d994fbf84ea018981375852a578dec5252313183 | 635 | py | Python | server/apps/api/serializers.py | htmercury/GLselector | e0b0c8d69dfc5306af3aa194c166f0bdd7da3cdd | [
"MIT"
] | null | null | null | server/apps/api/serializers.py | htmercury/GLselector | e0b0c8d69dfc5306af3aa194c166f0bdd7da3cdd | [
"MIT"
] | null | null | null | server/apps/api/serializers.py | htmercury/GLselector | e0b0c8d69dfc5306af3aa194c166f0bdd7da3cdd | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import *
class UserSerializer(serializers.ModelSerializer):
"""A user serializer to aid in authentication and authorization."""
class Meta:
"""Map this serializer to the default django user model."""
model = User
fields = ('id', 'usern... | 39.6875 | 82 | 0.675591 | 73 | 635 | 5.767123 | 0.630137 | 0.085511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207874 | 635 | 16 | 83 | 39.6875 | 0.836978 | 0.275591 | 0 | 0.181818 | 0 | 0 | 0.177528 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.181818 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
793fe16238699f0330f6f43aa51bb6283b7bb71d | 2,800 | py | Python | daemon/wakeserver/network.py | opiopan/wakeserver | 31ecba34dbe62c9db4745b007996e5bf662e08b7 | [
"MIT"
] | 1 | 2019-05-22T06:58:19.000Z | 2019-05-22T06:58:19.000Z | daemon/wakeserver/network.py | opiopan/wakeserver | 31ecba34dbe62c9db4745b007996e5bf662e08b7 | [
"MIT"
] | null | null | null | daemon/wakeserver/network.py | opiopan/wakeserver | 31ecba34dbe62c9db4745b007996e5bf662e08b7 | [
"MIT"
] | 1 | 2017-06-02T02:44:39.000Z | 2017-06-02T02:44:39.000Z | import os
import sys
import time
import json
import socket
import subprocess
import requests
import monitoring
MASTER_SERVICE = '_wakeserver._tcp'
SLAVE_SERVICE = '_wakeserver_slave._tcp'
LISTSERVICE = '/var/www/wakeserver/bin/listservice'
HOSTNAME = socket.gethostname() + '.local'
MASTER_PORT = ':8080'
SLAVE_PORT = ... | 27.45098 | 76 | 0.604286 | 313 | 2,800 | 5.309904 | 0.306709 | 0.036101 | 0.013237 | 0.018051 | 0.022864 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008201 | 0.303214 | 2,800 | 101 | 77 | 27.722772 | 0.84367 | 0 | 0 | 0.095238 | 0 | 0 | 0.103571 | 0.020357 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.095238 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7940a5fc7c9e4761c2a3cb7c5baac81300af08c7 | 406 | py | Python | 36_Valid Sudoku.py | Alvin1994/leetcode-python3- | ba2bde873c925554cc39f2bd13be81967713477d | [
"Apache-2.0"
] | null | null | null | 36_Valid Sudoku.py | Alvin1994/leetcode-python3- | ba2bde873c925554cc39f2bd13be81967713477d | [
"Apache-2.0"
] | null | null | null | 36_Valid Sudoku.py | Alvin1994/leetcode-python3- | ba2bde873c925554cc39f2bd13be81967713477d | [
"Apache-2.0"
] | null | null | null | class Solution:
def isValidSudoku(self, board: List[List[str]]) -> bool:
if not board or not board[0]:
return
tmp = []
for r in range(len(board)):
for c in range(len(board[0])):
if board[r][c] != ".":
tmp += [(board[r][c],... | 33.833333 | 87 | 0.448276 | 58 | 406 | 3.137931 | 0.396552 | 0.054945 | 0.153846 | 0.164835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015267 | 0.35468 | 406 | 12 | 88 | 33.833333 | 0.679389 | 0 | 0 | 0 | 0 | 0 | 0.002457 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.4 | 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 |
795ee6cc5d1aed468b3fc35d0ec0ad6053bd49e5 | 791 | py | Python | tests/helpers.py | Pineirin/invenio-theme | e7dfdb71b9bfb87000c4adc1e27ec380f64fea2a | [
"MIT"
] | 7 | 2015-10-21T16:10:30.000Z | 2021-08-20T08:21:06.000Z | tests/helpers.py | Pineirin/invenio-theme | e7dfdb71b9bfb87000c4adc1e27ec380f64fea2a | [
"MIT"
] | 141 | 2015-10-08T23:47:19.000Z | 2022-03-30T15:24:05.000Z | tests/helpers.py | Pineirin/invenio-theme | e7dfdb71b9bfb87000c4adc1e27ec380f64fea2a | [
"MIT"
] | 49 | 2015-10-09T06:42:03.000Z | 2022-03-25T12:28:16.000Z | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2017-2018 CERN.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
"""Pytest helpers."""
from __future__ import absolute_import, print_function
impor... | 24.71875 | 72 | 0.710493 | 113 | 791 | 4.787611 | 0.59292 | 0.088725 | 0.083179 | 0.07024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013867 | 0.17952 | 791 | 31 | 73 | 25.516129 | 0.819723 | 0.426043 | 0 | 0 | 0 | 0 | 0.056604 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.5 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
796936f8de52a5181133389dc301a64be41c0bf6 | 7,035 | py | Python | starter.py | osanchez42/Device42_HPSM_Sync | e572f316393369b7550b50aa90785580beafb091 | [
"Apache-2.0"
] | null | null | null | starter.py | osanchez42/Device42_HPSM_Sync | e572f316393369b7550b50aa90785580beafb091 | [
"Apache-2.0"
] | null | null | null | starter.py | osanchez42/Device42_HPSM_Sync | e572f316393369b7550b50aa90785580beafb091 | [
"Apache-2.0"
] | 1 | 2020-10-15T16:44:50.000Z | 2020-10-15T16:44:50.000Z | # -*- coding:utf-8 -*-
import sys
reload(sys)
sys.setdefaultencoding('utf8')
import imp
import csv
import StringIO
from hpsm import HpsmApi
from device42 import Device42Doql
conf = imp.load_source('conf', 'conf')
device42 = {
'host': conf.d42_host,
'username': conf.d42_username,
'password': conf.d4... | 35.351759 | 116 | 0.580242 | 800 | 7,035 | 4.885 | 0.1675 | 0.027636 | 0.03915 | 0.037615 | 0.254094 | 0.194729 | 0.17912 | 0.119754 | 0.099284 | 0.099284 | 0 | 0.023405 | 0.28941 | 7,035 | 198 | 117 | 35.530303 | 0.758352 | 0.008955 | 0 | 0.202454 | 0 | 0 | 0.157578 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.018405 | 0.03681 | null | null | 0.006135 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
796a236d3f1d4afa8b7a42d132a4a3cbf289b061 | 870 | py | Python | advances/lambda.py | tienduy-nguyen/python-learning | 3f91482638e11bb19f877a8044c11bce7e91aefc | [
"MIT"
] | null | null | null | advances/lambda.py | tienduy-nguyen/python-learning | 3f91482638e11bb19f877a8044c11bce7e91aefc | [
"MIT"
] | null | null | null | advances/lambda.py | tienduy-nguyen/python-learning | 3f91482638e11bb19f877a8044c11bce7e91aefc | [
"MIT"
] | null | null | null | # lambda Parameter: Operation(parameter)
lambda x: x+1
# Equivalence
def plus(x):
return x +1
lambda x, y: x*y
# Equivalence
def mul(x, y):
return x*y
# Example
nums = [[10, 20, 11], [3, 9, 6], [8, 14, 3]]
# Sort from the second value in sub array
sorted(nums, key=lambda x: x[1], reverse = True)
# Ex2: sort... | 22.307692 | 94 | 0.627586 | 157 | 870 | 3.464968 | 0.471338 | 0.090074 | 0.073529 | 0.033088 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097765 | 0.177011 | 870 | 39 | 95 | 22.307692 | 0.662011 | 0.288506 | 0 | 0 | 0 | 0 | 0.073892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0.111111 | 0.222222 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
796e179c043df911f1f151817477994087c7349e | 623 | py | Python | pyvo/utils/http.py | theresadower/pyvo | 6b00f93ae3ae6d27fcb296f81956cf2e3d97f941 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 29 | 2019-05-29T20:32:07.000Z | 2022-02-19T17:47:42.000Z | pyvo/utils/http.py | theresadower/pyvo | 6b00f93ae3ae6d27fcb296f81956cf2e3d97f941 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 187 | 2019-05-21T11:15:52.000Z | 2022-03-25T16:05:14.000Z | pyvo/utils/http.py | theresadower/pyvo | 6b00f93ae3ae6d27fcb296f81956cf2e3d97f941 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 28 | 2019-05-17T16:06:09.000Z | 2022-03-11T13:54:10.000Z | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
HTTP utils
"""
import requests
from ..version import version
DEFAULT_USER_AGENT = 'python-pyvo/{}'.format(version)
def use_session(session):
"""
Return the session passed in, or create a default
session to use for this network request.
... | 20.766667 | 63 | 0.670947 | 80 | 623 | 5.1375 | 0.525 | 0.087591 | 0.077859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002101 | 0.235955 | 623 | 29 | 64 | 21.482759 | 0.861345 | 0.359551 | 0 | 0.166667 | 0 | 0 | 0.067989 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.583333 | 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 |
7978cd473b44070047467b838bc513b7a40b1b8f | 480 | py | Python | app/question/translation/question_translation_api_models.py | hmajid2301/banter-bus-management-api | d51a40c2d5254d4197cbe5bb84aa576df2c24893 | [
"Apache-2.0"
] | null | null | null | app/question/translation/question_translation_api_models.py | hmajid2301/banter-bus-management-api | d51a40c2d5254d4197cbe5bb84aa576df2c24893 | [
"Apache-2.0"
] | null | null | null | app/question/translation/question_translation_api_models.py | hmajid2301/banter-bus-management-api | d51a40c2d5254d4197cbe5bb84aa576df2c24893 | [
"Apache-2.0"
] | null | null | null | from typing import Optional
from pydantic import BaseModel
from app.core.models import QuestionGroup
class QuestionTranslationIn(BaseModel):
content: str
class QuestionTranslationOut(BaseModel):
question_id: str
game_name: str
language_code: str
round_: Optional[str]
enabled: bool = True
... | 20 | 45 | 0.716667 | 54 | 480 | 6.203704 | 0.611111 | 0.059701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216667 | 480 | 23 | 46 | 20.869565 | 0.890957 | 0 | 0 | 0.125 | 0 | 0 | 0.022917 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1875 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
797c2f0961e79e64fced2edfe9b13e9df6df3427 | 432 | py | Python | chatbot_tutorial/routing.py | joseseb91/django-chat-bot | 7873b8eb53ace638c921fc16c3c386459e3932fc | [
"MIT"
] | null | null | null | chatbot_tutorial/routing.py | joseseb91/django-chat-bot | 7873b8eb53ace638c921fc16c3c386459e3932fc | [
"MIT"
] | null | null | null | chatbot_tutorial/routing.py | joseseb91/django-chat-bot | 7873b8eb53ace638c921fc16c3c386459e3932fc | [
"MIT"
] | null | null | null |
from .wsgi import * # add this line to top of your code
from channels.auth import AuthMiddlewareStack
from channels.routing import ProtocolTypeRouter, URLRouter
from django.urls import path
from chatbot_tutorial import consumer
application = ProtocolTypeRouter({
'websocket': AuthMiddlewareStack(
URLRoute... | 28.8 | 86 | 0.726852 | 47 | 432 | 6.617021 | 0.702128 | 0.07717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 432 | 14 | 87 | 30.857143 | 0.883523 | 0.076389 | 0 | 0 | 0 | 0 | 0.093434 | 0.070707 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 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 |
797e4f09fa5fde9a1ae93343d049d08fc5c41bd0 | 34,176 | py | Python | TFRegression9.py | neuromorphs/telluride-decoding-toolbox | 4d64f96b4d0ca3932ad56fe2a31558c4b8510c5f | [
"Apache-2.0"
] | 3 | 2020-01-29T01:33:17.000Z | 2020-08-05T23:03:03.000Z | TFRegression9.py | ddewong/telluride-decoding-toolbox | 4d64f96b4d0ca3932ad56fe2a31558c4b8510c5f | [
"Apache-2.0"
] | null | null | null | TFRegression9.py | ddewong/telluride-decoding-toolbox | 4d64f96b4d0ca3932ad56fe2a31558c4b8510c5f | [
"Apache-2.0"
] | 2 | 2019-07-06T15:36:28.000Z | 2019-08-25T08:55:50.000Z | # -*- coding: utf8 -*-
"""EEG Regression - Core TensorFlow implementation code.
July 2016
March 2017 - update Enea, integrated the queue.
"""
import gc
import math
import re
import resource
import sys
import time
import matplotlib.pyplot as plot
import numpy as np
import numpy.matlib
import scipy.io as sio
import t... | 46.624829 | 120 | 0.573004 | 4,097 | 34,176 | 4.583354 | 0.145472 | 0.016775 | 0.013846 | 0.011716 | 0.355043 | 0.298647 | 0.25908 | 0.235009 | 0.217542 | 0.20082 | 0 | 0.017447 | 0.329178 | 34,176 | 732 | 121 | 46.688525 | 0.801623 | 0.075375 | 0 | 0.273743 | 0 | 0 | 0.064565 | 0.008278 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.029795 | null | null | 0.07635 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
798087b9479cd39741147b1a63790b708ebc9fbb | 3,497 | py | Python | src/dhapi/lib/auth.py | rayleighko/dhlottery-api | ba348bf506210fb8934e837b67f6e2721da89c79 | [
"Apache-2.0"
] | 4 | 2021-06-30T22:39:28.000Z | 2022-03-24T10:35:29.000Z | src/dhapi/lib/auth.py | rayleighko/dhlottery-api | ba348bf506210fb8934e837b67f6e2721da89c79 | [
"Apache-2.0"
] | 1 | 2021-07-19T04:15:15.000Z | 2021-07-19T04:15:15.000Z | src/dhapi/lib/auth.py | rayleighko/dhlottery-api | ba348bf506210fb8934e837b67f6e2721da89c79 | [
"Apache-2.0"
] | 1 | 2021-07-19T02:20:46.000Z | 2021-07-19T02:20:46.000Z | import copy
import requests
class AuthController:
_REQ_HEADERS = {
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36",
"Connection": "keep-alive",
"Cache-Control": "max-age=0",
"sec-ch-ua": '" No... | 33.951456 | 156 | 0.609665 | 469 | 3,497 | 4.353945 | 0.394456 | 0.043095 | 0.039177 | 0.03526 | 0.162586 | 0.145935 | 0.062684 | 0.062684 | 0.062684 | 0.062684 | 0 | 0.020031 | 0.257649 | 3,497 | 102 | 157 | 34.284314 | 0.766564 | 0.058336 | 0 | 0.135135 | 0 | 0.054054 | 0.301186 | 0.085488 | 0 | 0 | 0 | 0.009804 | 0.135135 | 1 | 0.108108 | false | 0.081081 | 0.027027 | 0 | 0.256757 | 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 |
798131c2248d8aaf1fb686681421ad25bfd5c51e | 1,703 | py | Python | libtiff/tests/test_tiff_array.py | IanZhao/pylibtiff | 70be6773de883185b7ef0322b7bada4e28e7ac22 | [
"BSD-3-Clause"
] | 4 | 2015-03-10T18:17:48.000Z | 2017-08-30T12:26:13.000Z | libtiff/tests/test_tiff_array.py | IanZhao/pylibtiff | 70be6773de883185b7ef0322b7bada4e28e7ac22 | [
"BSD-3-Clause"
] | 1 | 2015-10-06T19:24:13.000Z | 2017-05-02T10:26:53.000Z | libtiff/tests/test_tiff_array.py | IanZhao/pylibtiff | 70be6773de883185b7ef0322b7bada4e28e7ac22 | [
"BSD-3-Clause"
] | null | null | null |
import os
import atexit
from tempfile import mktemp
from numpy import *
from libtiff import TIFF
from libtiff import TIFFfile, TIFFimage
def test_simple_slicing():
for planar_config in [1,2]:
for compression in [None, 'lzw']:
for itype in [uint8, uint16, uint32, uint64,
... | 37.021739 | 92 | 0.464474 | 179 | 1,703 | 4.363128 | 0.424581 | 0.06146 | 0.043534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05083 | 0.43394 | 1,703 | 45 | 93 | 37.844444 | 0.759336 | 0.007634 | 0 | 0 | 0 | 0 | 0.004739 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 0 | null | null | 0 | 0.153846 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7982640c352191e90a7fc2139bafd45db3e03194 | 558 | py | Python | trs_filer/ga4gh/trs/endpoints/utils.py | zagganas/trs-filer | 64b86dd37155319a171834fdd221abe1308cc107 | [
"Apache-2.0"
] | 8 | 2020-07-25T04:32:11.000Z | 2021-11-11T22:27:56.000Z | trs_filer/ga4gh/trs/endpoints/utils.py | zagganas/trs-filer | 64b86dd37155319a171834fdd221abe1308cc107 | [
"Apache-2.0"
] | 61 | 2020-07-08T02:33:39.000Z | 2022-03-21T15:34:32.000Z | trs_filer/ga4gh/trs/endpoints/utils.py | zagganas/trs-filer | 64b86dd37155319a171834fdd221abe1308cc107 | [
"Apache-2.0"
] | 4 | 2020-09-18T05:50:46.000Z | 2021-11-08T13:51:42.000Z | """Utility functions for endpoint controllers."""
from random import choice
import string
def generate_id(
charset: str = ''.join([string.ascii_letters, string.digits]),
length: int = 6,
) -> str:
"""Generate random string based on allowed set of characters.
Args:
charset: String of allowed ... | 25.363636 | 72 | 0.673835 | 68 | 558 | 5.470588 | 0.558824 | 0.064516 | 0.102151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002342 | 0.234767 | 558 | 21 | 73 | 26.571429 | 0.868852 | 0.526882 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
798561f0ec4a88bcafc78adf605ec9dca5e32ed6 | 20,051 | py | Python | Project 7 -- Melanoma Cancer Detection with Deep Learning, CNN using TensorFlow/Inception.py | Vauke/Deep-Neural-Networks-HealthCare | a6e0cc9d44e06ab3b3f3a947c512ca25f3e17a14 | [
"MIT"
] | 2 | 2019-05-15T11:05:17.000Z | 2019-05-16T16:31:49.000Z | Project 7 -- Melanoma Cancer Detection with Deep Learning, CNN using TensorFlow/Inception.py | Vauke/Deep-Neural-Networks-HealthCare | a6e0cc9d44e06ab3b3f3a947c512ca25f3e17a14 | [
"MIT"
] | 7 | 2020-09-26T01:27:55.000Z | 2022-01-13T03:14:02.000Z | Project 7 -- Melanoma Cancer Detection with Deep Learning, CNN using TensorFlow/Inception.py | Vauke/Deep-Neural-Networks-HealthCare | a6e0cc9d44e06ab3b3f3a947c512ca25f3e17a14 | [
"MIT"
] | 3 | 2020-01-20T09:58:08.000Z | 2021-03-25T18:29:49.000Z | import tensorflow as tf
import numpy as np
from tensorflow.python.framework import tensor_shape
class InceptionV3:
bottleneckTensor = None
finalTensor = None
groundTruthInput = None
trainStep = None
evaluationStep = None
bottleneckInput = None
inceptionGraph = None
jpeg_data_tensor... | 70.85159 | 279 | 0.547953 | 2,079 | 20,051 | 4.972583 | 0.165945 | 0.016831 | 0.024183 | 0.036274 | 0.422906 | 0.346876 | 0.312053 | 0.276939 | 0.250822 | 0.226833 | 0 | 0.008033 | 0.379133 | 20,051 | 282 | 280 | 71.102837 | 0.822395 | 0.076006 | 0 | 0.195531 | 0 | 0 | 0.042576 | 0.004848 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.022346 | null | null | 0.027933 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
798cd99c56bf9124a9ef00935d57a68b373949ae | 325 | py | Python | testproject/urls.py | Camille-cmd/django-rosetta | e2e2a7f05a564c0aa8b9ad4f3a263098e3c82a58 | [
"MIT"
] | null | null | null | testproject/urls.py | Camille-cmd/django-rosetta | e2e2a7f05a564c0aa8b9ad4f3a263098e3c82a58 | [
"MIT"
] | null | null | null | testproject/urls.py | Camille-cmd/django-rosetta | e2e2a7f05a564c0aa8b9ad4f3a263098e3c82a58 | [
"MIT"
] | null | null | null | from django.conf.urls import include, re_path
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
admin.autodiscover()
urlpatterns = [
re_path(r'^admin/', admin.site.urls),
re_path(r'^rosetta/', include('rosetta.urls')),
]
urlpatterns += staticfiles_urlpatter... | 23.214286 | 67 | 0.763077 | 41 | 325 | 5.926829 | 0.390244 | 0.123457 | 0.139918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113846 | 325 | 13 | 68 | 25 | 0.84375 | 0 | 0 | 0 | 0 | 0 | 0.086154 | 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 |
798ee979be6a893ea1e00ca9099a91dc63a2741a | 2,037 | py | Python | modules/expense_manage/models.py | xuhuiliang-maybe/ace_office | 07fae18676a193206802e8fb9aa32a805b1da24c | [
"Apache-2.0"
] | 1 | 2018-11-27T08:08:07.000Z | 2018-11-27T08:08:07.000Z | modules/expense_manage/models.py | xuhuiliang-maybe/ace_office | 07fae18676a193206802e8fb9aa32a805b1da24c | [
"Apache-2.0"
] | null | null | null | modules/expense_manage/models.py | xuhuiliang-maybe/ace_office | 07fae18676a193206802e8fb9aa32a805b1da24c | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
from django.contrib.auth.models import User
from django.db import models
from modules.dict_table.models import ExpenseType
from modules.employee_management.employee_info.models import Employee
from modules.project_manage.models import Project
APPLY_STATUS_CHOICES = (
('1', u'待审批'),
('2', u'通过'),
('3',... | 36.375 | 111 | 0.730486 | 291 | 2,037 | 4.958763 | 0.353952 | 0.074844 | 0.11088 | 0.058905 | 0.146223 | 0.044352 | 0 | 0 | 0 | 0 | 0 | 0.026786 | 0.120275 | 2,037 | 55 | 112 | 37.036364 | 0.77846 | 0.015218 | 0 | 0 | 0 | 0 | 0.087588 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.113636 | 0.045455 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
799b071e3e4990103bc8e00a1a79079574ac8dd0 | 1,752 | py | Python | src/constants.py | ari-bou/symro | b49a5578b4e1d95ab5ab92b06bfea2bc6ead2246 | [
"MIT"
] | null | null | null | src/constants.py | ari-bou/symro | b49a5578b4e1d95ab5ab92b06bfea2bc6ead2246 | [
"MIT"
] | null | null | null | src/constants.py | ari-bou/symro | b49a5578b4e1d95ab5ab92b06bfea2bc6ead2246 | [
"MIT"
] | null | null | null | # Script Flags
# ----------------------------------------------------------------------------------------------------------------------
SPECIAL_COMMAND_MODEL = "MODEL"
SPECIAL_COMMAND_ADDITIONAL_MODEL = "ADDITIONAL_MODELS"
SPECIAL_COMMAND_INIT_DATA = "INIT_DATA"
SPECIAL_COMMAND_SETUP = "SETUP"
SPECIAL_COMMAND_NOEVAL = ... | 48.666667 | 120 | 0.621575 | 141 | 1,752 | 7.085106 | 0.198582 | 0.462462 | 0.144144 | 0.058058 | 0.618619 | 0.172172 | 0 | 0 | 0 | 0 | 0 | 0 | 0.27226 | 1,752 | 35 | 121 | 50.057143 | 0.783529 | 0.074772 | 0 | 0 | 0 | 0 | 0.10445 | 0.013597 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
799f525a4e030894c175b1874f20a91594231a31 | 2,864 | py | Python | templates and examples/announcements example/POST_announcements_example.py | elmiguel/Bb_rest_helper | 15b951bd629586fd672ddb4a9e68c29fb4e77709 | [
"BSD-3-Clause"
] | null | null | null | templates and examples/announcements example/POST_announcements_example.py | elmiguel/Bb_rest_helper | 15b951bd629586fd672ddb4a9e68c29fb4e77709 | [
"BSD-3-Clause"
] | null | null | null | templates and examples/announcements example/POST_announcements_example.py | elmiguel/Bb_rest_helper | 15b951bd629586fd672ddb4a9e68c29fb4e77709 | [
"BSD-3-Clause"
] | null | null | null | #imports
from Bb_rest_helper import Get_Config
from Bb_rest_helper import Auth_Helper
from Bb_rest_helper import Bb_Requests
from Bb_rest_helper import Bb_Utils
def main():
#Initialize an instance of the Get_Config class, passing the file path of the configuration file as argument.
config=Get_Config("./le... | 54.037736 | 1,590 | 0.683659 | 419 | 2,864 | 4.646778 | 0.529833 | 0.012327 | 0.020544 | 0.032871 | 0.124294 | 0.024653 | 0 | 0 | 0 | 0 | 0 | 0.038397 | 0.163408 | 2,864 | 52 | 1,591 | 55.076923 | 0.761686 | 0.085894 | 0 | 0 | 0 | 0.090909 | 0.282375 | 0.052874 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.121212 | 0 | 0.151515 | 0.030303 | 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 |
79ad1787c4fac3c3d124629131dc367458c4239a | 215 | py | Python | toollib/__init__.py | atpuxiner/toollib | a895daeba49e64022a4a11a67a8b7b7a44cd2e0f | [
"MIT"
] | 113 | 2021-12-15T05:23:13.000Z | 2022-03-30T10:29:13.000Z | toollib/__init__.py | atpuxiner/toollib | a895daeba49e64022a4a11a67a8b7b7a44cd2e0f | [
"MIT"
] | null | null | null | toollib/__init__.py | atpuxiner/toollib | a895daeba49e64022a4a11a67a8b7b7a44cd2e0f | [
"MIT"
] | 3 | 2022-02-22T01:43:44.000Z | 2022-03-21T01:05:49.000Z | """
@author axiner
@version v1.0.0
@created 2021/12/12 13:14
@abstract This is a tool library.
@description
@history
"""
from pathlib import Path
here = Path(__file__).absolute().parent
__version__ = '2022.05.11'
| 15.357143 | 39 | 0.725581 | 33 | 215 | 4.484848 | 0.878788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123656 | 0.134884 | 215 | 13 | 40 | 16.538462 | 0.672043 | 0.52093 | 0 | 0 | 0 | 0 | 0.105263 | 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 |
79b48a73f5cd78b0ce65cbda1fa59cf60a1e2850 | 579 | py | Python | blueprint/py/bp/entity_gen/dates.py | andrey-mishchenko/blueprint-oss | 3bad9258571a0e08c53a9a05061e8461a1e62567 | [
"MIT"
] | 7 | 2021-08-16T09:17:31.000Z | 2022-02-16T01:27:08.000Z | blueprint/py/bp/entity_gen/dates.py | andrey-mishchenko/blueprint-oss | 3bad9258571a0e08c53a9a05061e8461a1e62567 | [
"MIT"
] | null | null | null | blueprint/py/bp/entity_gen/dates.py | andrey-mishchenko/blueprint-oss | 3bad9258571a0e08c53a9a05061e8461a1e62567 | [
"MIT"
] | 1 | 2021-08-11T20:17:06.000Z | 2021-08-11T20:17:06.000Z | from typing import Tuple
from ..entity import Date, Entity, Text
from .type_scoring import date_likeness
MINIMUM_SCORE = 0.7
def get_dates(entities: Tuple[Entity, ...]) -> Tuple[Date, ...]:
"""Get date-like entities from the given Entities.
Args:
entities: Should be Words or Phrases.
"""
def make_dat... | 25.173913 | 73 | 0.690846 | 85 | 579 | 4.576471 | 0.423529 | 0.03856 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006303 | 0.177893 | 579 | 22 | 74 | 26.318182 | 0.810924 | 0.162349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
79b83ecfe3622ac61172dbffd442f65b92a79021 | 1,355 | py | Python | services/schema.py | antti-mikael/open-city-profile | f85f160520c20043795a75f6c68c8ce682565404 | [
"MIT"
] | null | null | null | services/schema.py | antti-mikael/open-city-profile | f85f160520c20043795a75f6c68c8ce682565404 | [
"MIT"
] | null | null | null | services/schema.py | antti-mikael/open-city-profile | f85f160520c20043795a75f6c68c8ce682565404 | [
"MIT"
] | null | null | null | import graphene
from django.db.utils import IntegrityError
from django.utils.translation import ugettext_lazy as _
from graphene_django.types import DjangoObjectType
from graphql import GraphQLError
from graphql_jwt.decorators import login_required
from .consts import SERVICE_TYPES
from .models import Service
class ... | 27.1 | 77 | 0.709225 | 148 | 1,355 | 6.378378 | 0.459459 | 0.04661 | 0.038136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001854 | 0.20369 | 1,355 | 49 | 78 | 27.653061 | 0.873031 | 0 | 0 | 0 | 0 | 0 | 0.056827 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.228571 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
79b8d79a6708862dda1685cb2f90e6ba4d131780 | 189 | py | Python | coursera/course1-diving-in-python/week5/examples/socket_client.py | akrisanov/python_notebook | b48aa56419a72699539eca2ea9756cc8737699ad | [
"MIT"
] | 3 | 2019-10-18T11:18:57.000Z | 2022-02-15T18:58:31.000Z | coursera/course1-diving-in-python/week5/examples/socket_client.py | akrisanov/python_notebook | b48aa56419a72699539eca2ea9756cc8737699ad | [
"MIT"
] | null | null | null | coursera/course1-diving-in-python/week5/examples/socket_client.py | akrisanov/python_notebook | b48aa56419a72699539eca2ea9756cc8737699ad | [
"MIT"
] | null | null | null | import socket
sock = socket.socket()
sock.connect(("127.0.0.1", 9000))
# ^ one-liner: sock = socket.create_connection(("127.0.0.1", 9000))
sock.sendall("ping".encode("utf8"))
sock.close()
| 23.625 | 67 | 0.677249 | 30 | 189 | 4.233333 | 0.566667 | 0.15748 | 0.07874 | 0.094488 | 0.15748 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122093 | 0.089947 | 189 | 7 | 68 | 27 | 0.616279 | 0.343915 | 0 | 0 | 0 | 0 | 0.139344 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
79b9b83a5310d7840f460e1378f6f747c25af27e | 521 | py | Python | Project Euler/general.py | pybae/etc | ba3d6291ed5dd8e6b6ee18b186a09600def56505 | [
"MIT"
] | null | null | null | Project Euler/general.py | pybae/etc | ba3d6291ed5dd8e6b6ee18b186a09600def56505 | [
"MIT"
] | null | null | null | Project Euler/general.py | pybae/etc | ba3d6291ed5dd8e6b6ee18b186a09600def56505 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# A general purpose file including several blanket functions to simplify Project
# Euler code
import numpy
import math
import cProfile
import pstats
import StringIO
def prime(n):
return filter(lambda num: (num % \
numpy.arange(2, 1+int(math.sqrt(num)))).all(),... | 20.84 | 80 | 0.702495 | 78 | 521 | 4.666667 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020362 | 0.151631 | 521 | 24 | 81 | 21.708333 | 0.803167 | 0.253359 | 0 | 0 | 0 | 0 | 0.026042 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 0.0625 | 0.4375 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
79ba1512a6b7e8cd5b9579341cc3b09b2301ac78 | 489 | py | Python | ghostwriter/rolodex/migrations/0013_projectsubtask_marked_complete.py | bbhunter/Ghostwriter | 1b684ddd119feed9891e83b39c9b314b41d086ca | [
"BSD-3-Clause"
] | 601 | 2019-07-30T17:06:37.000Z | 2022-03-31T00:55:31.000Z | ghostwriter/rolodex/migrations/0013_projectsubtask_marked_complete.py | chrismaddalena/Ghostwriter | 5a938358450cd0e69a42883b1b18e067644744a8 | [
"BSD-3-Clause"
] | 150 | 2019-08-01T07:20:22.000Z | 2022-03-29T19:18:02.000Z | ghostwriter/rolodex/migrations/0013_projectsubtask_marked_complete.py | chrismaddalena/Ghostwriter | 5a938358450cd0e69a42883b1b18e067644744a8 | [
"BSD-3-Clause"
] | 126 | 2019-07-30T17:42:49.000Z | 2022-03-21T20:43:35.000Z | # Generated by Django 3.0.10 on 2021-02-11 21:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rolodex', '0012_auto_20210211_1853'),
]
operations = [
migrations.AddField(
model_name='projectsubtask',
name='mark... | 25.736842 | 137 | 0.644172 | 56 | 489 | 5.5 | 0.785714 | 0.136364 | 0.116883 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086721 | 0.245399 | 489 | 18 | 138 | 27.166667 | 0.747967 | 0.09407 | 0 | 0 | 1 | 0 | 0.24263 | 0.052154 | 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 |
79bc76af2f24f3f0912ee68d44e3b55f2ebe8a69 | 1,901 | py | Python | mqtt/ping.py | Laged/test-python-ping-mqtt | b88fa879135387ec502644d35f81819e7edbbb47 | [
"MIT"
] | null | null | null | mqtt/ping.py | Laged/test-python-ping-mqtt | b88fa879135387ec502644d35f81819e7edbbb47 | [
"MIT"
] | null | null | null | mqtt/ping.py | Laged/test-python-ping-mqtt | b88fa879135387ec502644d35f81819e7edbbb47 | [
"MIT"
] | null | null | null | import socket
from time import sleep
import paho.mqtt.client as mqtt
hostname = socket.gethostname()
broker = 'broker.hivemq.com'
port = 1883
default_user = hostname
default_pw = None
default_topic = '/ping-mqtt/' + hostname
default_msg = 'ping'
default_qos = 0
ping_interval = 1
running ... | 29.246154 | 90 | 0.673856 | 240 | 1,901 | 5.070833 | 0.3125 | 0.059162 | 0.023007 | 0.029581 | 0.037798 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004685 | 0.214098 | 1,901 | 64 | 91 | 29.703125 | 0.809906 | 0 | 0 | 0 | 0 | 0 | 0.126775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.018182 | 0.054545 | null | null | 0.145455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
79bdf7e6b8da9e5f43c17fb441a18ecebe2932aa | 567 | py | Python | Heatmap.py | Ruhen-Bhuiyan/Logistic-regression-vs-SVM-vs-Decision-Tree-vs-Random-Forest | 6908d197bae1d7f8d7083b007aba9f71739822d2 | [
"Apache-2.0"
] | null | null | null | Heatmap.py | Ruhen-Bhuiyan/Logistic-regression-vs-SVM-vs-Decision-Tree-vs-Random-Forest | 6908d197bae1d7f8d7083b007aba9f71739822d2 | [
"Apache-2.0"
] | null | null | null | Heatmap.py | Ruhen-Bhuiyan/Logistic-regression-vs-SVM-vs-Decision-Tree-vs-Random-Forest | 6908d197bae1d7f8d7083b007aba9f71739822d2 | [
"Apache-2.0"
] | null | null | null | import pandas as pd
import numpy as np
from sklearn import preprocessing
from sklearn.metrics import confusion_matrix
from sklearn import svm
import itertools
import matplotlib.pyplot as plt
import matplotlib.mlab as mlab
import seaborn
get_ipython().run_line_magic('matplotlib', 'inline')
data = pd.read_csv("D:\\445\... | 24.652174 | 64 | 0.781305 | 86 | 567 | 5.05814 | 0.604651 | 0.075862 | 0.078161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015779 | 0.10582 | 567 | 22 | 65 | 25.772727 | 0.842209 | 0.038801 | 0 | 0 | 0 | 0 | 0.135436 | 0.050093 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 |
79c270ba79c7b3d5d2deb53fe16e24cc55a10a67 | 396 | py | Python | tests/test_mock_audio.py | CameronJRAllan/eTree-Browser | 72601450eb8538f79511715c5793a8594bdcfc80 | [
"MIT"
] | 1 | 2019-07-19T20:03:00.000Z | 2019-07-19T20:03:00.000Z | tests/test_mock_audio.py | CameronJRAllan/eTree-Browser | 72601450eb8538f79511715c5793a8594bdcfc80 | [
"MIT"
] | null | null | null | tests/test_mock_audio.py | CameronJRAllan/eTree-Browser | 72601450eb8538f79511715c5793a8594bdcfc80 | [
"MIT"
] | null | null | null | from unittest import TestCase
import os
import mock
import pytest
from PyQt5 import QtWidgets
import application
import audio
class TestApplication():
@pytest.fixture(scope="function", autouse=True)
def setup(self, qtbot):
# Create dialog to show this instance
self.dialog = QtWidgets.QMainWindow()
# ... | 19.8 | 51 | 0.755051 | 50 | 396 | 5.98 | 0.7 | 0.06689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003049 | 0.171717 | 396 | 19 | 52 | 20.842105 | 0.908537 | 0.143939 | 0 | 0 | 0 | 0 | 0.023952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.583333 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
79c5fdae501713803698b9c5696de9988628e076 | 8,874 | py | Python | bettertexts/migrations/0001_initial.py | citizenline/citizenline | 5c8317fe7e18a485bb8c572cc3c55707d0303525 | [
"MIT"
] | null | null | null | bettertexts/migrations/0001_initial.py | citizenline/citizenline | 5c8317fe7e18a485bb8c572cc3c55707d0303525 | [
"MIT"
] | 33 | 2017-02-14T15:45:16.000Z | 2022-03-11T23:22:29.000Z | bettertexts/migrations/0001_initial.py | citizenline/citizenline | 5c8317fe7e18a485bb8c572cc3c55707d0303525 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.3 on 2019-09-26 19:42
import bettertexts.models
import ckeditor.fields
from decimal import Decimal
from django.conf import settings
import django.contrib.sites.managers
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import django_extensi... | 59.557047 | 224 | 0.617534 | 904 | 8,874 | 5.893805 | 0.213496 | 0.111486 | 0.028904 | 0.04542 | 0.436937 | 0.406344 | 0.366742 | 0.311749 | 0.289602 | 0.23536 | 0 | 0.011607 | 0.242732 | 8,874 | 148 | 225 | 59.959459 | 0.78125 | 0.005071 | 0 | 0.333333 | 1 | 0.007092 | 0.200068 | 0.012348 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.070922 | 0 | 0.099291 | 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 |
79c811c28a8605824c64ddccd22f1b13d303fd0a | 19,633 | py | Python | cspace/main/appletserver.py | jmcvetta/cspace | 13d6be86dfa3417ac5511b1b2c15d1050fe3701d | [
"RSA-MD",
"TCP-wrappers"
] | 28 | 2015-04-24T12:04:08.000Z | 2022-01-07T15:13:10.000Z | cspace/main/appletserver.py | Magnus167/cspace | 13d6be86dfa3417ac5511b1b2c15d1050fe3701d | [
"RSA-MD",
"TCP-wrappers"
] | 1 | 2015-12-09T10:21:59.000Z | 2015-12-16T05:38:55.000Z | cspace/main/appletserver.py | Magnus167/cspace | 13d6be86dfa3417ac5511b1b2c15d1050fe3701d | [
"RSA-MD",
"TCP-wrappers"
] | 18 | 2015-01-01T02:16:49.000Z | 2021-08-12T04:14:57.000Z | import os, sys, threading
from string import Template
from ncrypt.rand import bytes as rand_bytes
from ncrypt.rsa import RSAKey, RSAError
from nitro.selectreactor import SelectReactor
from nitro.tcp import tcpListen, TCPStream
from nitro.ssl import sslAbort
from nitro.linestream import TCPLineStream
from cspa... | 38.420744 | 88 | 0.586818 | 1,797 | 19,633 | 6.324986 | 0.179744 | 0.030794 | 0.012581 | 0.026395 | 0.257083 | 0.213971 | 0.179131 | 0.171828 | 0.171828 | 0.167077 | 0 | 0.004316 | 0.31554 | 19,633 | 510 | 89 | 38.496078 | 0.841494 | 0 | 0 | 0.298901 | 0 | 0 | 0.055744 | 0 | 0 | 0 | 0 | 0 | 0.008791 | 0 | null | null | 0 | 0.032967 | null | null | 0.008791 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
79cbe310101e2194c0e47ce3af2ce2cb1d011f43 | 3,497 | py | Python | tests/pert_test.py | EnricaBelfiore/sandy | 0ead4488265f350f4f20dda0095b25fd9eb8335d | [
"MIT"
] | 30 | 2018-08-18T08:04:30.000Z | 2022-03-23T12:48:46.000Z | tests/pert_test.py | EnricaBelfiore/sandy | 0ead4488265f350f4f20dda0095b25fd9eb8335d | [
"MIT"
] | 59 | 2018-08-24T13:26:39.000Z | 2022-03-29T13:12:05.000Z | tests/pert_test.py | EnricaBelfiore/sandy | 0ead4488265f350f4f20dda0095b25fd9eb8335d | [
"MIT"
] | 9 | 2019-04-26T07:44:28.000Z | 2021-12-08T08:32:11.000Z | import pytest
from io import StringIO
import numpy as np
import pandas as pd
import sandy
__author__ = "Luca Fiorito"
#####################
# Test initialization
#####################
def test_from_file_1_column():
vals = '1\n5\n9'
file = StringIO(vals)
with pytest.raises(Exception):
... | 30.146552 | 119 | 0.521018 | 410 | 3,497 | 4.263415 | 0.270732 | 0.064073 | 0.04405 | 0.051487 | 0.355835 | 0.208238 | 0.100114 | 0.100114 | 0.100114 | 0.070938 | 0 | 0.055739 | 0.307406 | 3,497 | 116 | 120 | 30.146552 | 0.665979 | 0.263655 | 0 | 0.217391 | 0 | 0 | 0.032403 | 0 | 0 | 0 | 0 | 0 | 0.195652 | 1 | 0.304348 | false | 0.021739 | 0.108696 | 0 | 0.434783 | 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 |
79cd1f22e69e964009f58fbc42aad21a452806df | 2,373 | py | Python | sect/core/trapezoidal/edge.py | lycantropos/sect | 356a334c7e49f8ed41c5f1d37fd420fbd2fba331 | [
"MIT"
] | 17 | 2020-07-06T04:26:46.000Z | 2021-12-20T14:07:24.000Z | sect/core/trapezoidal/edge.py | lycantropos/sect | 356a334c7e49f8ed41c5f1d37fd420fbd2fba331 | [
"MIT"
] | 6 | 2020-07-19T13:10:45.000Z | 2020-09-24T19:35:42.000Z | sect/core/trapezoidal/edge.py | lycantropos/sect | 356a334c7e49f8ed41c5f1d37fd420fbd2fba331 | [
"MIT"
] | 1 | 2020-10-31T03:58:34.000Z | 2020-10-31T03:58:34.000Z | from ground.base import (Context,
Orientation)
from ground.hints import Point
from reprit.base import generate_repr
class Edge:
@classmethod
def from_endpoints(cls,
left: Point,
right: Point,
interior_to_left: bool,
... | 43.145455 | 75 | 0.648125 | 252 | 2,373 | 5.833333 | 0.218254 | 0.106122 | 0.163265 | 0.114286 | 0.505442 | 0.331973 | 0.189116 | 0.069388 | 0.069388 | 0.069388 | 0 | 0 | 0.285714 | 2,373 | 54 | 76 | 43.944444 | 0.867257 | 0.070796 | 0 | 0.186047 | 1 | 0 | 0.029694 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 1 | 0.093023 | false | 0 | 0.069767 | 0 | 0.418605 | 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 |
79ce2b2c35ac6230dc6b2951e216c7dba2385491 | 7,267 | py | Python | src/areas_determination.py | joeyzhong90595/Robotic_Poker_Dealer | f30ece962ac4d3a726dffd193e123bfff01da740 | [
"MIT"
] | 2 | 2020-07-06T11:41:54.000Z | 2020-10-30T17:15:54.000Z | src/areas_determination.py | joeyzhong90595/Robotic_Poker_Dealer | f30ece962ac4d3a726dffd193e123bfff01da740 | [
"MIT"
] | null | null | null | src/areas_determination.py | joeyzhong90595/Robotic_Poker_Dealer | f30ece962ac4d3a726dffd193e123bfff01da740 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import numpy as np
import matplotlib.image as mpimg
import matplotlib.pyplot as plt
import pcl
from sensor_msgs.msg import PointCloud
# Extra points from point cloud according to indices
def extra_pc(pc, indices):
coord = []
for index in indices:
coord.append(list(pc[index]))
... | 33.643519 | 107 | 0.647035 | 1,047 | 7,267 | 4.291309 | 0.236867 | 0.011128 | 0.008012 | 0.009348 | 0.074783 | 0.063655 | 0.043178 | 0.028489 | 0.01736 | 0.01736 | 0 | 0.025906 | 0.240402 | 7,267 | 215 | 108 | 33.8 | 0.788043 | 0.211917 | 0 | 0.017699 | 0 | 0 | 0.028589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061947 | false | 0.079646 | 0.061947 | 0 | 0.185841 | 0.017699 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
79dcdf0b1d020cc6dd2cb037bf46b5e8285dc380 | 1,926 | py | Python | tests/tests_verbs/test_order_by.py | fredzett/datastack | ece795599c33ccbefcaef32f89559188b0185d58 | [
"MIT"
] | null | null | null | tests/tests_verbs/test_order_by.py | fredzett/datastack | ece795599c33ccbefcaef32f89559188b0185d58 | [
"MIT"
] | null | null | null | tests/tests_verbs/test_order_by.py | fredzett/datastack | ece795599c33ccbefcaef32f89559188b0185d58 | [
"MIT"
] | null | null | null | from datastack import DataTable, DataColumn, label, col, desc
import pytest
import numpy as np
def test_one():
tbl = (DataTable(a=(1,2,1,2,3,1), b=(4,5,6,3,2,1),c=(6,7,8,1,2,3))
.order_by(desc(label("b")))
)
exp = DataTable(a=(1,2,1,2,3,1), b=(6,5,4,3,2,1), c=(8,7,6,1,2,3))
assert tbl... | 35.666667 | 100 | 0.467809 | 359 | 1,926 | 2.45961 | 0.142061 | 0.0453 | 0.033975 | 0.02265 | 0.645527 | 0.612684 | 0.554926 | 0.490374 | 0.490374 | 0.471121 | 0 | 0.143662 | 0.262721 | 1,926 | 54 | 101 | 35.666667 | 0.478169 | 0 | 0 | 0.348837 | 0 | 0 | 0.060716 | 0 | 0 | 0 | 0 | 0 | 0.116279 | 1 | 0.116279 | false | 0 | 0.069767 | 0 | 0.186047 | 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 |
79dee48932a5a517d62bba2129d2fa58029f611e | 5,898 | py | Python | back_end/mlh/apps/headlines/serializers.py | 22014471/malonghui_Django | c9c2a68882450f9327e141333f30fdd73e530c28 | [
"MIT"
] | 1 | 2021-01-31T16:57:35.000Z | 2021-01-31T16:57:35.000Z | back_end/mlh/apps/headlines/serializers.py | 22014471/malonghui_Django | c9c2a68882450f9327e141333f30fdd73e530c28 | [
"MIT"
] | null | null | null | back_end/mlh/apps/headlines/serializers.py | 22014471/malonghui_Django | c9c2a68882450f9327e141333f30fdd73e530c28 | [
"MIT"
] | null | null | null | import logging
from rest_framework import serializers
from activity.models import Activity
from headlines.models import HeadlinesCategory, HeadlinesNews, NewsComment, UserAttention, NewsCollection
from questions.models import Question, Tag
from talks.models import Talks
from users.models import User
class UserSerial... | 22.340909 | 105 | 0.614446 | 479 | 5,898 | 7.511482 | 0.263048 | 0.144525 | 0.077821 | 0.037521 | 0.262646 | 0.21234 | 0.128961 | 0.106726 | 0.045581 | 0.045581 | 0 | 0.000926 | 0.267887 | 5,898 | 263 | 106 | 22.425856 | 0.83233 | 0.089013 | 0 | 0.433333 | 0 | 0 | 0.087009 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.058333 | 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 |
8dab49e63111f843579527771c8baa6452fa79e7 | 3,269 | py | Python | viz/all-crossrefs-idb.py | cloakware-ctf/idascripts | 27022f309abe8498cbc09344bda432ebd3a2743a | [
"Apache-2.0"
] | 11 | 2018-11-30T19:31:23.000Z | 2021-08-31T13:40:47.000Z | viz/all-crossrefs-idb.py | cloakware-ctf/idascripts | 27022f309abe8498cbc09344bda432ebd3a2743a | [
"Apache-2.0"
] | null | null | null | viz/all-crossrefs-idb.py | cloakware-ctf/idascripts | 27022f309abe8498cbc09344bda432ebd3a2743a | [
"Apache-2.0"
] | 3 | 2018-12-06T09:18:20.000Z | 2019-06-14T01:58:35.000Z | # Copyright 2016-2018 Irdeto BV
#
# 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 ... | 31.133333 | 99 | 0.647905 | 429 | 3,269 | 4.783217 | 0.365967 | 0.076023 | 0.041423 | 0.027778 | 0.169591 | 0.155945 | 0.047758 | 0.047758 | 0.047758 | 0.047758 | 0 | 0.006027 | 0.238605 | 3,269 | 104 | 100 | 31.432692 | 0.818401 | 0.266136 | 0 | 0.16129 | 0 | 0 | 0.067397 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.193548 | null | null | 0.016129 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8db4640533b13145463b10aada449a8397f99c81 | 4,870 | py | Python | QuantitativeEditing/audio_rendering.py | wjs018/QuantitativeEditing | 2da4b44398384b77583a888bc6af462bfebe9b89 | [
"MIT"
] | 21 | 2018-04-22T19:36:45.000Z | 2021-09-07T17:20:33.000Z | QuantitativeEditing/audio_rendering.py | wjs018/QuantitativeEditing | 2da4b44398384b77583a888bc6af462bfebe9b89 | [
"MIT"
] | 1 | 2018-09-02T21:16:28.000Z | 2018-11-13T23:15:21.000Z | QuantitativeEditing/audio_rendering.py | wjs018/QuantitativeEditing | 2da4b44398384b77583a888bc6af462bfebe9b89 | [
"MIT"
] | 6 | 2019-11-19T09:01:12.000Z | 2021-03-10T00:55:08.000Z | import librosa
import matplotlib.pyplot as plt
import numpy as np
from moviepy.editor import *
from librosa.display import waveplot
from moviepy.video.io.bindings import mplfig_to_npimage
last_t = 0
tempgraph = []
def animate_audio(video, audio, output):
"""
Renders a waveform of a video's audio and progre... | 31.830065 | 80 | 0.60308 | 649 | 4,870 | 4.4453 | 0.241911 | 0.017331 | 0.022877 | 0.024957 | 0.67487 | 0.665858 | 0.65234 | 0.642634 | 0.642634 | 0.642634 | 0 | 0.025305 | 0.326489 | 4,870 | 152 | 81 | 32.039474 | 0.854268 | 0.374333 | 0 | 0.606557 | 0 | 0 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04918 | false | 0 | 0.098361 | 0 | 0.196721 | 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 |
8dbf031093871f0af79f832e4e03e4339baac843 | 1,631 | py | Python | InvoiceSystem-python/paymentCharged.py | gvensan/ep-design-workshop | e2172b5bf38c9843629b63ae81be76b6123719b1 | [
"Apache-2.0"
] | null | null | null | InvoiceSystem-python/paymentCharged.py | gvensan/ep-design-workshop | e2172b5bf38c9843629b63ae81be76b6123719b1 | [
"Apache-2.0"
] | 1 | 2021-04-22T13:27:31.000Z | 2021-04-22T13:32:18.000Z | InvoiceSystem-python/paymentCharged.py | gvensan/ep-design-workshop | e2172b5bf38c9843629b63ae81be76b6123719b1 | [
"Apache-2.0"
] | 4 | 2021-04-16T15:08:54.000Z | 2022-03-04T04:59:43.000Z | from enum import Enum
from typing import Sequence
from entity import Entity
class PaymentCharged(Entity):
class Driver(Entity):
def __init__(
self,
driverId: int,
rating: int,
lastName: str,
carClass: str,
f... | 24.712121 | 50 | 0.537094 | 125 | 1,631 | 6.912 | 0.24 | 0.024306 | 0.038194 | 0.039352 | 0.145833 | 0.092593 | 0.092593 | 0 | 0 | 0 | 0 | 0 | 0.405273 | 1,631 | 65 | 51 | 25.092308 | 0.890722 | 0 | 0 | 0.36 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06 | false | 0.1 | 0.06 | 0 | 0.18 | 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 |
8dc4b26769c646860ab4cf58acc75879dd96b999 | 3,684 | py | Python | jes/jes-v4.3-linux/Sources/JESRunnable.py | utv-teaching/foundations-computer-science | 568e19fd83a3355dab2814229f335abf31bfd7e9 | [
"MIT"
] | null | null | null | jes/jes-v4.3-linux/Sources/JESRunnable.py | utv-teaching/foundations-computer-science | 568e19fd83a3355dab2814229f335abf31bfd7e9 | [
"MIT"
] | null | null | null | jes/jes-v4.3-linux/Sources/JESRunnable.py | utv-teaching/foundations-computer-science | 568e19fd83a3355dab2814229f335abf31bfd7e9 | [
"MIT"
] | null | null | null | #JES- Jython Environment for Students
#Copyright (C) 2002 Jason Ergle, Claire Bailey, David Raines, Joshua Sklare
#See JESCopyright.txt for full licensing information
from java.lang import Runnable
from javax.swing import JOptionPane
################################################################################
#... | 41.393258 | 96 | 0.55456 | 365 | 3,684 | 5.578082 | 0.479452 | 0.117878 | 0.108055 | 0.12279 | 0.130648 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004367 | 0.254072 | 3,684 | 88 | 97 | 41.863636 | 0.736536 | 0.251086 | 0 | 0 | 0 | 0 | 0.104094 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.069767 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8dcd891dc91edfa93747b0aff40153aef1f7295b | 1,816 | py | Python | application/KitchenMagician/kitchen_magician/users/db/dummy_data.py | AsuPaul19/Kitchen-Magician | 8c22bc1a45942d22c183096f8e92f858983d351d | [
"MIT"
] | null | null | null | application/KitchenMagician/kitchen_magician/users/db/dummy_data.py | AsuPaul19/Kitchen-Magician | 8c22bc1a45942d22c183096f8e92f858983d351d | [
"MIT"
] | 8 | 2021-04-08T20:50:25.000Z | 2022-03-12T00:53:18.000Z | application/KitchenMagician/kitchen_magician/users/db/dummy_data.py | AsuPaul19/Kitchen-Magician | 8c22bc1a45942d22c183096f8e92f858983d351d | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User
from users.models import Profile
from groups.models import Group
from groups.models import GroupUser
import random
class DummyData():
def __init__(self, user_num=1):
self.user_num = user_num
self.users = self.create_dummy_users()
def create_dummy_use... | 37.833333 | 104 | 0.585352 | 215 | 1,816 | 4.795349 | 0.306977 | 0.054316 | 0.032008 | 0.042677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004068 | 0.323238 | 1,816 | 47 | 105 | 38.638298 | 0.834825 | 0.063877 | 0 | 0 | 0 | 0 | 0.074424 | 0.031305 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0.054054 | 0.135135 | 0 | 0.27027 | 0.081081 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8dd444aabba85d74febf578a1f94145515bf2d6d | 15,047 | py | Python | main/lib/idds/tests/core_tests.py | HSF/iDDS | 39144a059522074fdedab1a56a9daded9fa65d03 | [
"Apache-2.0"
] | null | null | null | main/lib/idds/tests/core_tests.py | HSF/iDDS | 39144a059522074fdedab1a56a9daded9fa65d03 | [
"Apache-2.0"
] | 1 | 2020-10-01T15:47:50.000Z | 2020-10-28T17:55:01.000Z | main/lib/idds/tests/core_tests.py | HSF/iDDS | 39144a059522074fdedab1a56a9daded9fa65d03 | [
"Apache-2.0"
] | 5 | 2019-09-14T20:34:41.000Z | 2021-12-18T10:46:58.000Z | import sys
import datetime
from idds.common.utils import json_dumps # noqa F401
from idds.common.constants import ContentStatus, ContentType, ContentRelationType, ContentLocking # noqa F401
from idds.core.requests import get_requests # noqa F401
from idds.core.messages import retr... | 85.982857 | 934 | 0.64684 | 1,854 | 15,047 | 4.999461 | 0.12082 | 0.030208 | 0.054375 | 0.066458 | 0.723271 | 0.681088 | 0.656489 | 0.656489 | 0.640522 | 0.624771 | 0 | 0.144907 | 0.203363 | 15,047 | 174 | 935 | 86.477011 | 0.628347 | 0.031568 | 0 | 0.2 | 0 | 0 | 0.331408 | 0.120073 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018182 | false | 0.027273 | 0.109091 | 0 | 0.127273 | 0.181818 | 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 |
8df0dce3207d270628934be54ec6eaed4331c37a | 531 | py | Python | amp/broker/exchange.py | rgozi/amp | 610956b4f2fd2b2ee157c6da6e7e379912f057bd | [
"MIT"
] | null | null | null | amp/broker/exchange.py | rgozi/amp | 610956b4f2fd2b2ee157c6da6e7e379912f057bd | [
"MIT"
] | null | null | null | amp/broker/exchange.py | rgozi/amp | 610956b4f2fd2b2ee157c6da6e7e379912f057bd | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2021-10-21
# @Author : iamwm
from amp.broker.store import Store
class Exchange:
"""
exchange of broker
"""
def __init__(self, name: str) -> None:
self.name = name
self.topic_manager = Store(Topic)
def bind_topic(self, t... | 16.59375 | 42 | 0.59322 | 68 | 531 | 4.441176 | 0.470588 | 0.10596 | 0.072848 | 0.099338 | 0.225166 | 0.225166 | 0.225166 | 0.225166 | 0.225166 | 0 | 0 | 0.023256 | 0.271186 | 531 | 31 | 43 | 17.129032 | 0.757106 | 0.222222 | 0 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8dfd95c3523ba52a73d6e654cac7c631cf0583d8 | 5,753 | py | Python | doxieautomator/doxie.py | ninapavlich/doxie-automator | b586c0faecd2cfa3757e9865cebc7dd414e97cba | [
"MIT"
] | 4 | 2018-01-29T06:50:23.000Z | 2019-11-03T08:14:46.000Z | doxieautomator/doxie.py | ninapavlich/doxie-automator | b586c0faecd2cfa3757e9865cebc7dd414e97cba | [
"MIT"
] | 13 | 2017-09-19T00:45:40.000Z | 2022-01-13T00:41:56.000Z | doxieautomator/doxie.py | ninapavlich/doxie-automator | b586c0faecd2cfa3757e9865cebc7dd414e97cba | [
"MIT"
] | 2 | 2017-11-21T20:49:34.000Z | 2018-11-20T22:34:32.000Z | import os
import sys
import time
import json
import cStringIO
import logging
import requests
from requests.auth import HTTPBasicAuth
from PIL import Image
from base import SingleInstance
import settings
class DoxieAutomator(SingleInstance):
scanner_online = False
DELETE_ON_CORRUPTED = True #If true, delet... | 32.502825 | 130 | 0.596211 | 726 | 5,753 | 4.575758 | 0.282369 | 0.027393 | 0.019266 | 0.025286 | 0.145093 | 0.145093 | 0.118302 | 0.118302 | 0.075256 | 0.075256 | 0 | 0.003508 | 0.306275 | 5,753 | 177 | 131 | 32.502825 | 0.828865 | 0.106379 | 0 | 0.140351 | 0 | 0 | 0.094189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.035088 | 0.096491 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5c019ec85de31d4576b933a6375a52c7ffc5b3ea | 1,388 | py | Python | third_party/NW Script Tools/Miscellaneous Tools/NW Go To Frame.py | n1ckfg/C4DToolbox | 3c23a83ee31e09c4faf0c05933fd491017f30aef | [
"MIT"
] | 9 | 2015-02-02T21:26:15.000Z | 2021-05-21T01:38:21.000Z | third_party/NW Script Tools/Miscellaneous Tools/NW Go To Frame.py | DreHit17/C4DToolbox | 3c23a83ee31e09c4faf0c05933fd491017f30aef | [
"MIT"
] | null | null | null | third_party/NW Script Tools/Miscellaneous Tools/NW Go To Frame.py | DreHit17/C4DToolbox | 3c23a83ee31e09c4faf0c05933fd491017f30aef | [
"MIT"
] | 2 | 2019-01-25T12:33:13.000Z | 2021-05-21T01:42:48.000Z | import c4d # reference Cinema4D's existing library of code, called a "module"
def main(): # Define the main function of the script
# - - - - - - COPY THE FOLLOWING INTO YOUR SCRIPT, ABOVE THE MAIN FUNCTION - - - - - - -
def gotoframe(GoToFrame): # Define a function called "gotoframe", which will act... | 69.4 | 203 | 0.70245 | 217 | 1,388 | 4.451613 | 0.483871 | 0.028986 | 0.062112 | 0.039337 | 0.070393 | 0.070393 | 0.070393 | 0 | 0 | 0 | 0 | 0.008443 | 0.231988 | 1,388 | 20 | 204 | 69.4 | 0.897749 | 0.798991 | 0 | 0 | 0 | 0 | 0.029963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5c0377bf5a5ee71c7130a9750b6a359483a7cc4f | 563 | py | Python | mdcorpus/examples/parse_character.py | sosuke-k/cornel-movie-dialogs-corpus-storm | eb880d06cb59919fb330b5ae5a23b4c72cd1d90a | [
"MIT"
] | 1 | 2016-07-26T11:17:50.000Z | 2016-07-26T11:17:50.000Z | mdcorpus/examples/parse_character.py | sosuke-k/cornel-movie-dialogs-corpus-storm | eb880d06cb59919fb330b5ae5a23b4c72cd1d90a | [
"MIT"
] | 3 | 2015-11-09T03:56:57.000Z | 2015-11-09T04:29:44.000Z | mdcorpus/examples/parse_character.py | sosuke-k/cornel-movie-dialogs-corpus-storm | eb880d06cb59919fb330b5ae5a23b4c72cd1d90a | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from storm.locals import *
from mdcorpus.orm import *
from mdcorpus.parser import *
parser = Parser()
f = open("sample_movie_characters_metadata.txt")
line = f.readline()
while line:
print "=== parse this line ==="
print line
list = parser.movie_characters_m... | 25.590909 | 104 | 0.646536 | 73 | 563 | 4.917808 | 0.547945 | 0.022284 | 0.100279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015184 | 0.181172 | 563 | 21 | 105 | 26.809524 | 0.763557 | 0.076377 | 0 | 0.133333 | 0 | 0 | 0.156371 | 0.069498 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.266667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5c045ef7651da39554c518ec2e2591687e42af18 | 7,236 | py | Python | tenable_light.py | andrewspearson/tenable_light | b394374f3d57b2d39ba57658d9a5da4e5d3de789 | [
"MIT"
] | 1 | 2021-02-08T12:38:31.000Z | 2021-02-08T12:38:31.000Z | tenable_light.py | andrewspearson/tenable_light | b394374f3d57b2d39ba57658d9a5da4e5d3de789 | [
"MIT"
] | null | null | null | tenable_light.py | andrewspearson/tenable_light | b394374f3d57b2d39ba57658d9a5da4e5d3de789 | [
"MIT"
] | null | null | null | import configparser
import urllib.request
from urllib.error import HTTPError
import ssl
import json
config = configparser.ConfigParser()
config.read('tenable.ini')
def request(method, host, endpoint, url=None, headers=None, data=None, proxy=None, verify=True):
# url should only be used by the Downloads class
... | 39.113514 | 118 | 0.599917 | 840 | 7,236 | 5.033333 | 0.159524 | 0.038316 | 0.042573 | 0.046831 | 0.617077 | 0.572375 | 0.502365 | 0.435667 | 0.391675 | 0.38245 | 0 | 0.001919 | 0.279713 | 7,236 | 184 | 119 | 39.326087 | 0.809286 | 0.055556 | 0 | 0.422078 | 0 | 0 | 0.131594 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.077922 | false | 0.084416 | 0.032468 | 0 | 0.181818 | 0.019481 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5c04c372c138509e02bc30699b51bedf41322186 | 625 | py | Python | experiments.py | kafluette/ffnnet | 34008aaa9f65a90724298eb92b69a1312da33e65 | [
"Apache-2.0"
] | 4 | 2015-11-05T11:30:50.000Z | 2021-07-27T01:35:11.000Z | experiments.py | kafluette/ffnnet | 34008aaa9f65a90724298eb92b69a1312da33e65 | [
"Apache-2.0"
] | null | null | null | experiments.py | kafluette/ffnnet | 34008aaa9f65a90724298eb92b69a1312da33e65 | [
"Apache-2.0"
] | null | null | null | import theano
import theano.tensor as T
k = T.iscalar("k")
A = T.vector("A")
y = T.ivector("y")
# Symbolic description of the result
result, updates = theano.scan(fn=lambda n: (1-y[n]) * T.log(T.nnet.sigmoid(1)),sequences=[T.arange(10)])
# We only care about A**k, but scan has provided us with A**1 through A**k.
# D... | 29.761905 | 104 | 0.7168 | 111 | 625 | 4.018018 | 0.576577 | 0.013453 | 0.067265 | 0.076233 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016822 | 0.144 | 625 | 20 | 105 | 31.25 | 0.816822 | 0.4144 | 0 | 0.2 | 0 | 0 | 0.008333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5c0c551469a8944a7675ffa7c55b6cd9f37125a3 | 1,667 | py | Python | servizi/spese/migrations/0002_auto_20161126_1756.py | l-dfa/django-spese | afcc257cc8fb73e24baa8976b96e4f3d62460d84 | [
"MIT"
] | null | null | null | servizi/spese/migrations/0002_auto_20161126_1756.py | l-dfa/django-spese | afcc257cc8fb73e24baa8976b96e4f3d62460d84 | [
"MIT"
] | 6 | 2016-12-13T00:06:52.000Z | 2018-03-04T21:50:19.000Z | servizi/spese/migrations/0002_auto_20161126_1756.py | l-dfa/django-spese | afcc257cc8fb73e24baa8976b96e4f3d62460d84 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.8 on 2016-11-26 16:56
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('spese', '0001_initial'),
]
operations = [
m... | 36.23913 | 154 | 0.607678 | 166 | 1,667 | 5.909639 | 0.457831 | 0.040775 | 0.057085 | 0.089704 | 0.283384 | 0.283384 | 0.195719 | 0.195719 | 0.195719 | 0.146789 | 0 | 0.016273 | 0.262747 | 1,667 | 45 | 155 | 37.044444 | 0.781937 | 0.040192 | 0 | 0.236842 | 1 | 0 | 0.210394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.078947 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5c0fb72e758feab9fd3d8e59481ca91f9797d92b | 228 | py | Python | PP4E-Examples-1.4/Examples/PP4E/Lang/summer3.py | AngelLiang/PP4E | 3a7f63b366e1e4700b4d2524884696999a87ba9d | [
"MIT"
] | null | null | null | PP4E-Examples-1.4/Examples/PP4E/Lang/summer3.py | AngelLiang/PP4E | 3a7f63b366e1e4700b4d2524884696999a87ba9d | [
"MIT"
] | null | null | null | PP4E-Examples-1.4/Examples/PP4E/Lang/summer3.py | AngelLiang/PP4E | 3a7f63b366e1e4700b4d2524884696999a87ba9d | [
"MIT"
] | null | null | null | sums = {}
for line in open('table4.txt'):
cols = [float(col) for col in line.split()]
for pos, val in enumerate(cols):
sums[pos] = sums.get(pos, 0.0) + val
for key in sorted(sums):
print(key, '=', sums[key])
| 25.333333 | 47 | 0.587719 | 38 | 228 | 3.526316 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017045 | 0.22807 | 228 | 8 | 48 | 28.5 | 0.744318 | 0 | 0 | 0 | 0 | 0 | 0.048246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5c100934b8da6e8692d25afd762529568db264ad | 13,783 | py | Python | working/bin/forms/mainMenu.py | grinchios/college_project-commented | 3cc5ccd6c1b946b625e1dcc0689c9273f6ba2178 | [
"MIT"
] | null | null | null | working/bin/forms/mainMenu.py | grinchios/college_project-commented | 3cc5ccd6c1b946b625e1dcc0689c9273f6ba2178 | [
"MIT"
] | null | null | null | working/bin/forms/mainMenu.py | grinchios/college_project-commented | 3cc5ccd6c1b946b625e1dcc0689c9273f6ba2178 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# theme and sys for linking signals
import sys
# other forms
import managerMenu as managermenu
import staffForm as staffform
import stockForm as stockform
import treatmentsForm as treatmentsform
import appointmentForm as appointmentform
import chartForm as chartform
im... | 49.049822 | 100 | 0.671262 | 1,370 | 13,783 | 6.628467 | 0.229927 | 0.181588 | 0.232574 | 0.019822 | 0.306794 | 0.189737 | 0.05484 | 0.050875 | 0.031604 | 0 | 0 | 0.022888 | 0.20119 | 13,783 | 280 | 101 | 49.225 | 0.801544 | 0.026264 | 0 | 0.095238 | 0 | 0 | 0.135631 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017316 | false | 0.004329 | 0.051948 | 0 | 0.077922 | 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 |
5c12acba92d9636c04241c7b728abd8f0b445bd8 | 1,802 | py | Python | logwriter/logwriter.py | mbukatov/ocs-workload | 2ef6ac3e33bfd808fdd30ce882e9c02c5a170cdf | [
"Apache-2.0"
] | 5 | 2021-09-02T21:39:20.000Z | 2021-12-16T17:38:57.000Z | logwriter/logwriter.py | mbukatov/ocs-workload | 2ef6ac3e33bfd808fdd30ce882e9c02c5a170cdf | [
"Apache-2.0"
] | null | null | null | logwriter/logwriter.py | mbukatov/ocs-workload | 2ef6ac3e33bfd808fdd30ce882e9c02c5a170cdf | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf8 -*-
from datetime import datetime
import argparse
import hashlib
import logging
import os
import sys
import time
import uuid
def main():
ap = argparse.ArgumentParser(description="logwriter")
ap.add_argument(
"directory",
help="directory where to creat... | 26.895522 | 74 | 0.577137 | 218 | 1,802 | 4.642202 | 0.46789 | 0.076087 | 0.051383 | 0.037549 | 0.130435 | 0.130435 | 0.090909 | 0.090909 | 0 | 0 | 0 | 0.006436 | 0.310211 | 1,802 | 66 | 75 | 27.30303 | 0.807723 | 0.09323 | 0 | 0.192308 | 0 | 0 | 0.179251 | 0.028238 | 0 | 0 | 0 | 0.015152 | 0 | 1 | 0.019231 | false | 0 | 0.153846 | 0 | 0.173077 | 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 |
5c16326715ab95feeb0e4d04a291ec52d37d02ee | 4,030 | py | Python | shepherding/util/plot_ss.py | argyili/shepherding-public | 001c0b6a6d099fc3bff8ef3e39b4ec6c4580b4fb | [
"MIT"
] | null | null | null | shepherding/util/plot_ss.py | argyili/shepherding-public | 001c0b6a6d099fc3bff8ef3e39b4ec6c4580b4fb | [
"MIT"
] | null | null | null | shepherding/util/plot_ss.py | argyili/shepherding-public | 001c0b6a6d099fc3bff8ef3e39b4ec6c4580b4fb | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import matplotlib.patches as patches
import matplotlib.animation as anim
import time
''' Recorded simulation data into csv files '''
''' Initiliaze plot line by csv '''
def init_plot_line_csv(ax, param, sheeps_color, sheeps_pos, shepherds_color, shepherds_po... | 41.122449 | 116 | 0.640695 | 613 | 4,030 | 4.02447 | 0.184339 | 0.042562 | 0.021889 | 0.04013 | 0.678557 | 0.638022 | 0.620186 | 0.610053 | 0.610053 | 0.60073 | 0 | 0.024306 | 0.213896 | 4,030 | 98 | 117 | 41.122449 | 0.754419 | 0.111414 | 0 | 0.551724 | 0 | 0 | 0.05717 | 0.022742 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.086207 | 0 | 0.224138 | 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 |
5c1f56de847c09221aa2a32f2615c4a6247b0db1 | 1,480 | py | Python | src/118.pascals-triangle/118.pascals-triangle.py | AnestLarry/LeetCodeAnswer | ca06a9cabe72879812f4b41d68ec882139974d84 | [
"MIT"
] | null | null | null | src/118.pascals-triangle/118.pascals-triangle.py | AnestLarry/LeetCodeAnswer | ca06a9cabe72879812f4b41d68ec882139974d84 | [
"MIT"
] | null | null | null | src/118.pascals-triangle/118.pascals-triangle.py | AnestLarry/LeetCodeAnswer | ca06a9cabe72879812f4b41d68ec882139974d84 | [
"MIT"
] | null | null | null | #
# @lc app=leetcode id=118 lang=python3
#
# [118] Pascal's Triangle
#
# Given a non-negative integer numRows, generate the first numRows of Pascal's triangle.
# In Pascal's triangle, each number is the sum of the two numbers directly above it.
# Example:
# Input: 5
# Output:
# [
# [1],
# [1,1],
# [1,2,... | 27.407407 | 126 | 0.521622 | 210 | 1,480 | 3.67619 | 0.371429 | 0.018135 | 0.103627 | 0.042746 | 0.32772 | 0.32772 | 0.300518 | 0.300518 | 0.300518 | 0.23057 | 0 | 0.085479 | 0.343919 | 1,480 | 53 | 127 | 27.924528 | 0.709578 | 0.45473 | 0 | 0.181818 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.318182 | 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 |
5c20c0befd183d163a3581ee570cbe4413bb8458 | 1,403 | py | Python | Snake Game/snake.py | zYxDevs/Python_Scripts | 74ed7df97c9287b966b4139f585ed3a1702f2d29 | [
"MIT"
] | 14 | 2021-10-02T14:17:06.000Z | 2021-11-08T10:17:14.000Z | Snake Game/snake.py | Naik-G/Python_Scripts | cd975036e126982aaa01da48c94cec1759af6d61 | [
"MIT"
] | 4 | 2021-10-03T05:35:11.000Z | 2021-10-06T18:05:05.000Z | Snake Game/snake.py | Naik-G/Python_Scripts | cd975036e126982aaa01da48c94cec1759af6d61 | [
"MIT"
] | 47 | 2021-10-02T12:07:07.000Z | 2021-11-07T11:49:50.000Z | from turtle import Turtle
MOVE=20
TURTLE_POS=[(0,0),(-20,0),(-40,0)]
UP=90
DOWN=270
LEFT=180
RIGHT=0
class Snake:
"""Creates snakes objects and stores them in a list"""
def __init__(self):
self.all_segment=[]
self.create_snake()
self.head=self.all_segment[0]
def create_snake(sel... | 24.614035 | 58 | 0.595153 | 190 | 1,403 | 4.247368 | 0.305263 | 0.099133 | 0.138786 | 0.069393 | 0.16109 | 0.057001 | 0 | 0 | 0 | 0 | 0 | 0.025515 | 0.273699 | 1,403 | 57 | 59 | 24.614035 | 0.766438 | 0.034212 | 0 | 0 | 0 | 0 | 0.008889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.219512 | false | 0 | 0.02439 | 0 | 0.268293 | 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 |
5c2a213dd6a0d6508a57c96ee1f6eb0d7ca8adce | 561 | py | Python | examples/layout_form.py | pzahemszky/guizero | be298433a96ef1af91ecd6e90b469af62ecaa61c | [
"BSD-3-Clause"
] | 320 | 2016-11-14T09:28:43.000Z | 2022-03-29T03:55:33.000Z | examples/layout_form.py | pzahemszky/guizero | be298433a96ef1af91ecd6e90b469af62ecaa61c | [
"BSD-3-Clause"
] | 355 | 2016-12-29T08:45:45.000Z | 2022-03-25T14:12:00.000Z | examples/layout_form.py | pzahemszky/guizero | be298433a96ef1af91ecd6e90b469af62ecaa61c | [
"BSD-3-Clause"
] | 91 | 2016-11-14T11:09:55.000Z | 2022-03-19T08:39:55.000Z | from guizero import App, Text, TextBox, Combo, PushButton, Box
app = App()
Text(app, text="My form")
form = Box(app, width="fill", layout="grid")
form.border = True
Text(form, text="Title", grid=[0,0], align="right")
TextBox(form, grid=[1,0])
Text(form, text="Name", grid=[0,1], align="right")
TextBox(form, grid=[1... | 23.375 | 62 | 0.664884 | 89 | 561 | 4.191011 | 0.348315 | 0.0563 | 0.096515 | 0.168901 | 0.209115 | 0.209115 | 0 | 0 | 0 | 0 | 0 | 0.024 | 0.108734 | 561 | 24 | 63 | 23.375 | 0.722 | 0 | 0 | 0 | 0 | 0 | 0.120996 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5c2c1e4e102a4bee44dc46da003cce69719bd19e | 36,361 | py | Python | resources/mgltools_x86_64Linux2_1.5.6/MGLToolsPckgs/Volume/VisionInterface/ContourSpectrum.py | J-E-J-S/aaRS-Pipeline | 43f59f28ab06e4b16328c3bc405cdddc6e69ac44 | [
"MIT"
] | 8 | 2021-12-14T21:30:01.000Z | 2022-02-14T11:30:03.000Z | resources/mgltools_x86_64Linux2_1.5.6/MGLToolsPckgs/Volume/VisionInterface/ContourSpectrum.py | J-E-J-S/aaRS-Pipeline | 43f59f28ab06e4b16328c3bc405cdddc6e69ac44 | [
"MIT"
] | null | null | null | resources/mgltools_x86_64Linux2_1.5.6/MGLToolsPckgs/Volume/VisionInterface/ContourSpectrum.py | J-E-J-S/aaRS-Pipeline | 43f59f28ab06e4b16328c3bc405cdddc6e69ac44 | [
"MIT"
] | null | null | null | ## Automatically adapted for numpy.oldnumeric Jul 23, 2007 by
########################################################################
#
# Date: Mars 2006 Authors: Guillaume Vareille, Michel Sanner
#
# vareille@scripps.edu
# sanner@scripps.edu
#
# The Scripps Research Institute (TSRI)
# Molecular Gr... | 34.2705 | 87 | 0.534749 | 3,811 | 36,361 | 5.086067 | 0.151666 | 0.03405 | 0.008358 | 0.026931 | 0.286695 | 0.229944 | 0.174638 | 0.158438 | 0.132487 | 0.130217 | 0 | 0.012972 | 0.346993 | 36,361 | 1,060 | 88 | 34.30283 | 0.803361 | 0.10591 | 0 | 0.263083 | 0 | 0 | 0.124002 | 0.018906 | 0 | 0 | 0 | 0 | 0.014144 | 0 | null | null | 0 | 0.015559 | null | null | 0.015559 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5c2c8f67848a38e3944a94f651e68658226d9c84 | 2,906 | py | Python | gw_full_latest/loraWAN.py | cuongdodinh/LowCostLoRaGw | 29f347b29d9dadfa3376154f99ab13345cee052c | [
"Linux-OpenIB"
] | null | null | null | gw_full_latest/loraWAN.py | cuongdodinh/LowCostLoRaGw | 29f347b29d9dadfa3376154f99ab13345cee052c | [
"Linux-OpenIB"
] | null | null | null | gw_full_latest/loraWAN.py | cuongdodinh/LowCostLoRaGw | 29f347b29d9dadfa3376154f99ab13345cee052c | [
"Linux-OpenIB"
] | null | null | null | #------------------------------------------------------------
# Copyright 2016 Congduc Pham, University of Pau, France.
#
# Congduc.Pham@univ-pau.fr
#
# This file is part of the low-cost LoRa gateway developped at University of Pau
#
# This program is free software: you can redistribute it and/or modify
# it under th... | 25.946429 | 84 | 0.691672 | 424 | 2,906 | 4.660377 | 0.424528 | 0.066802 | 0.007591 | 0.008097 | 0.067814 | 0.054656 | 0 | 0 | 0 | 0 | 0 | 0.034119 | 0.152787 | 2,906 | 112 | 85 | 25.946429 | 0.768481 | 0.338266 | 0 | 0.136364 | 0 | 0 | 0.144059 | 0.045216 | 0 | 0 | 0.002103 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.106061 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5c3588a28b9de83158bfc6de1af0e374a9aef41e | 1,558 | py | Python | icfs/cloudapi/cloud.py | bhanupratapjain/icfs | 44a2d5baadbc31bfebb931d713b426d22aabd969 | [
"MIT"
] | null | null | null | icfs/cloudapi/cloud.py | bhanupratapjain/icfs | 44a2d5baadbc31bfebb931d713b426d22aabd969 | [
"MIT"
] | null | null | null | icfs/cloudapi/cloud.py | bhanupratapjain/icfs | 44a2d5baadbc31bfebb931d713b426d22aabd969 | [
"MIT"
] | null | null | null | from icfs.cloudapi.google import GDrive
# @class_decorator(logger)
class Cloud:
def __init__(self, gdrive_settings, tmp, creds):
self.gdrive_settings = gdrive_settings
self.clients = {}
self.creds = creds
self.tmp = tmp
def restore_gdrive(self, client_id):
g_drive = GD... | 30.54902 | 68 | 0.65276 | 194 | 1,558 | 4.989691 | 0.252577 | 0.14876 | 0.140496 | 0.157025 | 0.420455 | 0.352273 | 0.292355 | 0.215909 | 0.095041 | 0.095041 | 0 | 0 | 0.241977 | 1,558 | 50 | 69 | 31.16 | 0.819644 | 0.088575 | 0 | 0.117647 | 0 | 0 | 0.068648 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.264706 | false | 0 | 0.029412 | 0 | 0.382353 | 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 |
5c42765cc0d375014d789da17f09e218c0c827e2 | 1,138 | py | Python | instrument/output/__init__.py | wearpants/instrument | a0f6103574ab58a82361a951e5e56b69aedfe294 | [
"BSD-3-Clause"
] | 7 | 2018-04-16T18:37:18.000Z | 2021-09-16T14:55:20.000Z | instrument/output/__init__.py | wearpants/instrument | a0f6103574ab58a82361a951e5e56b69aedfe294 | [
"BSD-3-Clause"
] | 26 | 2018-04-16T01:42:50.000Z | 2019-04-10T15:46:18.000Z | instrument/output/__init__.py | wearpants/instrument | a0f6103574ab58a82361a951e5e56b69aedfe294 | [
"BSD-3-Clause"
] | null | null | null | import sys
def _do_print(name, count, elapsed, file):
if name is not None:
print("%s: %d items in %.2f seconds"%(name, count, elapsed), file=file)
else:
print("%d items in %.2f seconds"%(count, elapsed), file=file)
def print_metric(name, count, elapsed):
"""A metric function that prints to... | 29.947368 | 79 | 0.660808 | 162 | 1,138 | 4.567901 | 0.320988 | 0.145946 | 0.172973 | 0.108108 | 0.525676 | 0.47973 | 0.443243 | 0.443243 | 0.443243 | 0.443243 | 0 | 0.002302 | 0.23638 | 1,138 | 37 | 80 | 30.756757 | 0.849252 | 0.398067 | 0 | 0 | 0 | 0 | 0.084279 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.066667 | 0 | 0.466667 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5c4aa8f3e567d8fab3d3f1d6901ec8634e8d36d7 | 386 | py | Python | sovrin_client/__metadata__.py | evernym/sovrin-client | 4a0983071f3a44dfc85ac891cc214c1dc18bf161 | [
"Apache-2.0"
] | 1 | 2018-05-27T23:29:02.000Z | 2018-05-27T23:29:02.000Z | sovrin_client/__metadata__.py | evernym/sovrin-client | 4a0983071f3a44dfc85ac891cc214c1dc18bf161 | [
"Apache-2.0"
] | null | null | null | sovrin_client/__metadata__.py | evernym/sovrin-client | 4a0983071f3a44dfc85ac891cc214c1dc18bf161 | [
"Apache-2.0"
] | 2 | 2017-06-03T10:04:00.000Z | 2021-06-06T15:53:32.000Z | """
sovrin-client package metadata
"""
__version_info__ = (0, 2)
__version__ = '.'.join(map(str, __version_info__))
__author__ = "Sovrin Foundation."
__license__ = "Apache 2.0"
__all__ = ['__version_info__', '__version__', '__author__', '__license__']
# TODO: Shouldn't we update these dependencies?
__dependencies__ ... | 22.705882 | 74 | 0.683938 | 44 | 386 | 4.909091 | 0.636364 | 0.152778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033033 | 0.137306 | 386 | 16 | 75 | 24.125 | 0.615616 | 0.199482 | 0 | 0 | 0 | 0 | 0.378738 | 0 | 0 | 0 | 0 | 0.0625 | 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 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5c4b051f6e0c1ac16d3bda649db681b22ecc25f8 | 1,287 | py | Python | indexers/AnnoyIndexer.py | Nashrah31/SimDB | 67b7b1676a8cb48219686fdb615e602de128a90b | [
"MIT"
] | 2 | 2020-10-04T23:20:36.000Z | 2021-01-01T19:41:35.000Z | indexers/AnnoyIndexer.py | Nashrah31/SimDB | 67b7b1676a8cb48219686fdb615e602de128a90b | [
"MIT"
] | 4 | 2020-10-15T14:25:10.000Z | 2021-03-23T05:13:21.000Z | indexers/AnnoyIndexer.py | Nashrah31/SimDB | 67b7b1676a8cb48219686fdb615e602de128a90b | [
"MIT"
] | 2 | 2020-10-05T04:41:38.000Z | 2020-10-15T14:13:02.000Z | from interfaces.ANNIndexer import ANNIndexer
import annoy
# Usage : indexer = AnnoyIndexer(vector_length=100, n_trees=1000)
class AnnoyIndexer(ANNIndexer):
def __init__(self, content_vectors, vector_length=100, n_trees=10):
print("initializing annoy wrapper")
self.vector_length = vector_length
self.n_tr... | 31.390244 | 89 | 0.717172 | 195 | 1,287 | 4.487179 | 0.328205 | 0.092571 | 0.082286 | 0.036571 | 0.107429 | 0.059429 | 0.059429 | 0.059429 | 0 | 0 | 0 | 0.014953 | 0.168609 | 1,287 | 40 | 90 | 32.175 | 0.802804 | 0.114219 | 0 | 0 | 0 | 0 | 0.091469 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0.071429 | 0.392857 | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3083f7ecad5bfee19d567a5e075186574caf97ff | 4,352 | py | Python | AIoT/Vitis-AI/VART/example/adas_detection_py/threads/yolov3_thread.py | kaka-lin/ML-Notes | 047b88d59346b2ec719b1b3e2fcd605e1ccfaf91 | [
"MIT"
] | null | null | null | AIoT/Vitis-AI/VART/example/adas_detection_py/threads/yolov3_thread.py | kaka-lin/ML-Notes | 047b88d59346b2ec719b1b3e2fcd605e1ccfaf91 | [
"MIT"
] | null | null | null | AIoT/Vitis-AI/VART/example/adas_detection_py/threads/yolov3_thread.py | kaka-lin/ML-Notes | 047b88d59346b2ec719b1b3e2fcd605e1ccfaf91 | [
"MIT"
] | null | null | null | import time
import threading
import numpy as np
from common import preprocess_one_image_fn, draw_outputs, load_classes, generate_colors
from yolo_utils import yolo_eval
from priority_queue import PriorityQueue
class YOLOv3Thread(threading.Thread):
def __init__(self, runner: "Runner", deque_input, lock_input,
... | 37.196581 | 97 | 0.592831 | 535 | 4,352 | 4.601869 | 0.299065 | 0.025589 | 0.02234 | 0.036556 | 0.067425 | 0.048741 | 0 | 0 | 0 | 0 | 0 | 0.036007 | 0.298024 | 4,352 | 116 | 98 | 37.517241 | 0.769885 | 0.189108 | 0 | 0.029412 | 1 | 0 | 0.015047 | 0.008727 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.088235 | 0 | 0.161765 | 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 |
308818867c313c1a11535ddca69fd4efc08afe99 | 1,603 | py | Python | source/modules/tester/testtermopi.py | AdL1398/PiCasso | d5757df1229ed18c04e7320cb12411a93323e684 | [
"MIT"
] | 3 | 2017-06-28T18:31:15.000Z | 2018-01-04T18:00:09.000Z | source/modules/tester/testtermopi.py | AdL1398/PiCasso | d5757df1229ed18c04e7320cb12411a93323e684 | [
"MIT"
] | null | null | null | source/modules/tester/testtermopi.py | AdL1398/PiCasso | d5757df1229ed18c04e7320cb12411a93323e684 | [
"MIT"
] | 7 | 2017-03-28T21:26:40.000Z | 2019-11-01T13:37:23.000Z | #!/usr/bin/python
"""
title : testtermopi.py
description : This program runs the termopi.py
: Displays the status of the resources (cpu load and memory usage) consumed by a Raspberry Pi
computer and the resources consumed by one or more containers instantiated in the Pi... | 39.097561 | 109 | 0.608235 | 190 | 1,603 | 5.073684 | 0.605263 | 0.018672 | 0.03527 | 0.039419 | 0.064315 | 0.064315 | 0.064315 | 0 | 0 | 0 | 0 | 0.013298 | 0.296319 | 1,603 | 40 | 110 | 40.075 | 0.841312 | 0.88272 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 |
30888f4d97dfc12eeeb1114925687d9b142fb7dd | 182 | py | Python | src/genie/libs/parser/iosxe/tests/ShowPlatformSoftwareFedIfm/cli/equal/golden_output_expected.py | nielsvanhooy/genieparser | 9a1955749697a6777ca614f0af4d5f3a2c254ccd | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/iosxe/tests/ShowPlatformSoftwareFedIfm/cli/equal/golden_output_expected.py | nielsvanhooy/genieparser | 9a1955749697a6777ca614f0af4d5f3a2c254ccd | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/iosxe/tests/ShowPlatformSoftwareFedIfm/cli/equal/golden_output_expected.py | nielsvanhooy/genieparser | 9a1955749697a6777ca614f0af4d5f3a2c254ccd | [
"Apache-2.0"
] | null | null | null | expected_output = {
'interfaces': {
'Tunnel1': {
'if_id': '0x0000005d',
'state': 'READY'
},
'Tunnel2': {
'if_id': '0x0000005e',
'state': 'PENDING DELETE'
}
}
}
| 14 | 28 | 0.532967 | 16 | 182 | 5.875 | 0.8125 | 0.085106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 0.241758 | 182 | 12 | 29 | 15.166667 | 0.550725 | 0 | 0 | 0 | 0 | 0 | 0.456044 | 0 | 0 | 0 | 0.10989 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3088e9947e2d04bbee9fa5b7bef36e70eece17aa | 3,121 | py | Python | FuckDrcom.py | Neotter/FuckDrcom | ee6d3f2ac426a2050a9cdb4ba9c0cb8dd100b55d | [
"MIT"
] | 8 | 2021-01-14T08:35:05.000Z | 2022-01-18T14:35:36.000Z | FuckDrcom.py | Neotter/FuckDrcom | ee6d3f2ac426a2050a9cdb4ba9c0cb8dd100b55d | [
"MIT"
] | null | null | null | FuckDrcom.py | Neotter/FuckDrcom | ee6d3f2ac426a2050a9cdb4ba9c0cb8dd100b55d | [
"MIT"
] | 3 | 2021-01-14T08:35:20.000Z | 2021-01-14T08:43:58.000Z | '''
Author: MonChen
Date: 2021-01-10 13:23:43
LastEditTime: 2021-01-14 15:25:52
'''
import urllib.request
import urllib.parse
import sys, time, subprocess, platform
hostname = "www.baidu.com"
manpage = 'FuckDrcom [option]...\n\t--login [IdNumbers] [password]\n\t--autologin [IdNumbers] [password]\n\t--logout'
def pin... | 31.525253 | 140 | 0.54694 | 389 | 3,121 | 4.367609 | 0.485861 | 0.032961 | 0.021189 | 0.028252 | 0.177752 | 0.097705 | 0.097705 | 0.097705 | 0.064744 | 0.064744 | 0 | 0.071933 | 0.273951 | 3,121 | 98 | 141 | 31.846939 | 0.677846 | 0.111823 | 0 | 0.253521 | 0 | 0.042254 | 0.317767 | 0.09595 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042254 | false | 0.112676 | 0.042254 | 0 | 0.098592 | 0.098592 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
308cfa4f25186937f701b1ab160ed3840dc6ab91 | 5,645 | py | Python | clock.py | bisrat-walle/Clock-python-Turtle | e39bb1e238df3ba94b2786f396ba9e291bd0620e | [
"MIT"
] | 2 | 2021-12-09T21:37:49.000Z | 2021-12-15T09:29:46.000Z | clock.py | bisrat-walle/Clock-python-Turtle | e39bb1e238df3ba94b2786f396ba9e291bd0620e | [
"MIT"
] | null | null | null | clock.py | bisrat-walle/Clock-python-Turtle | e39bb1e238df3ba94b2786f396ba9e291bd0620e | [
"MIT"
] | null | null | null | import random
import turtle
import time
def display_hour_label(turtle_object):
turtle_object.hideturtle()
turtle_object.penup()
turtle_object.goto(0, 0)
turtle_object.setheading(90)
for i in range(12):
turtle_object.forward(190)
turtle_object.pendown()
turtle_object.forward(20)
... | 26.880952 | 120 | 0.71674 | 734 | 5,645 | 5.309264 | 0.213896 | 0.249423 | 0.043623 | 0.05902 | 0.468566 | 0.366436 | 0.307416 | 0.298691 | 0.298691 | 0.298691 | 0 | 0.042495 | 0.153764 | 5,645 | 209 | 121 | 27.009569 | 0.773289 | 0 | 0 | 0.335227 | 0 | 0 | 0.065013 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051136 | false | 0.005682 | 0.017045 | 0 | 0.068182 | 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 |
308f72e6338beadef136d8c801073b4503bd91d8 | 600 | py | Python | my_study/re_study/re_img.py | zhangyage/Python-oldboy | a95c1b465929e2be641e425fcb5e15b366800831 | [
"Apache-2.0"
] | 1 | 2020-06-04T08:44:09.000Z | 2020-06-04T08:44:09.000Z | my_study/re_study/re_img.py | zhangyage/Python-oldboy | a95c1b465929e2be641e425fcb5e15b366800831 | [
"Apache-2.0"
] | null | null | null | my_study/re_study/re_img.py | zhangyage/Python-oldboy | a95c1b465929e2be641e425fcb5e15b366800831 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
#通过使用正则表单是筛选出网页中的图片链接下载图片到本地 这里我们测试需要,直接将网站的源码粘贴到了jike.txt中
import re
import requests
#读取网站代码:
f = open('jike.txt','r')
html = f.read()
f.close()
#匹配图片网址 #img src="https://a1.jikexueyuan.com/home/201604/28/3f10/57216b7d1ac79.jpg" class="lessonimg"
pic_u... | 25 | 104 | 0.621667 | 86 | 600 | 4.302326 | 0.662791 | 0.048649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049587 | 0.193333 | 600 | 24 | 105 | 25 | 0.714876 | 0.37 | 0 | 0 | 0 | 0 | 0.194842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3091078de1f627382ce1f8e796dafaabd9c1fd82 | 406 | py | Python | photologue/migrations/0013_photo_source.py | newprincip/django-photologue | a13311b97f3ae79a778949a992f4708a59c31c93 | [
"BSD-3-Clause"
] | null | null | null | photologue/migrations/0013_photo_source.py | newprincip/django-photologue | a13311b97f3ae79a778949a992f4708a59c31c93 | [
"BSD-3-Clause"
] | null | null | null | photologue/migrations/0013_photo_source.py | newprincip/django-photologue | a13311b97f3ae79a778949a992f4708a59c31c93 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 3.0.7 on 2020-07-04 10:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('photologue', '0012_auto_20200704_0747'),
]
operations = [
migrations.AddField(
model_name='photo',
name='source',
... | 21.368421 | 70 | 0.605911 | 44 | 406 | 5.477273 | 0.818182 | 0.082988 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105442 | 0.275862 | 406 | 18 | 71 | 22.555556 | 0.714286 | 0.110837 | 0 | 0 | 1 | 0 | 0.139276 | 0.064067 | 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 |
309370a056842a371086c0e317c7f180c7a23ee5 | 1,131 | py | Python | StackApp/env/lib/python2.7/site-packages/blueprint/context_managers.py | jonathanmusila/StackOverflow-Lite | a9a03f129592c6f741eb4d1e608ca2db0e40bf11 | [
"MIT"
] | null | null | null | StackApp/env/lib/python2.7/site-packages/blueprint/context_managers.py | jonathanmusila/StackOverflow-Lite | a9a03f129592c6f741eb4d1e608ca2db0e40bf11 | [
"MIT"
] | null | null | null | StackApp/env/lib/python2.7/site-packages/blueprint/context_managers.py | jonathanmusila/StackOverflow-Lite | a9a03f129592c6f741eb4d1e608ca2db0e40bf11 | [
"MIT"
] | null | null | null | import os
import shutil
import tempfile
from blueprint import util
class cd(object):
"""
Run in an alternative working directory in this context.
"""
def __init__(self, new_cwd):
self.new_cwd = new_cwd
def __enter__(self):
self.old_cwd = os.getcwd()
os.chdir(self.new_cwd... | 23.5625 | 69 | 0.616269 | 147 | 1,131 | 4.489796 | 0.367347 | 0.036364 | 0.066667 | 0.066667 | 0.257576 | 0.169697 | 0.169697 | 0.169697 | 0.169697 | 0.169697 | 0 | 0 | 0.280283 | 1,131 | 47 | 70 | 24.06383 | 0.810811 | 0.147657 | 0 | 0.206897 | 0 | 0 | 0.017223 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.137931 | 0 | 0.482759 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3098e3701be52131f72cca54506519c1d2ae00cc | 5,502 | py | Python | pygraphblas/binaryop.py | sebbacon/pygraphblas | 7bf01ab2a591994387193daaadcce309f74efad9 | [
"Apache-2.0"
] | null | null | null | pygraphblas/binaryop.py | sebbacon/pygraphblas | 7bf01ab2a591994387193daaadcce309f74efad9 | [
"Apache-2.0"
] | null | null | null | pygraphblas/binaryop.py | sebbacon/pygraphblas | 7bf01ab2a591994387193daaadcce309f74efad9 | [
"Apache-2.0"
] | null | null | null | """Contains all automatically generated BinaryOps from CFFI.
"""
__all__ = [
"BinaryOp",
"Accum",
"current_binop",
"current_accum",
"binary_op",
]
import sys
import re
import contextvars
from itertools import chain
from collections import defaultdict
from functools import partial
import numba
fr... | 28.65625 | 91 | 0.610142 | 727 | 5,502 | 4.403026 | 0.349381 | 0.024992 | 0.014995 | 0.019681 | 0.136207 | 0.09497 | 0.060606 | 0.041237 | 0.029053 | 0.029053 | 0 | 0.0135 | 0.259542 | 5,502 | 191 | 92 | 28.806283 | 0.772214 | 0.260814 | 0 | 0.183486 | 1 | 0.036697 | 0.147909 | 0.097315 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12844 | false | 0 | 0.091743 | 0.018349 | 0.330275 | 0.027523 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.