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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
969b8d14ddfc8af0eae660438d130744d4f02879 | 445 | py | Python | run.py | lfbraz/speech-to-text-tutorial | 84a3441f6f57465087691e5f84b4f2d57efaa1a2 | [
"MIT"
] | 1 | 2020-01-28T19:33:20.000Z | 2020-01-28T19:33:20.000Z | run.py | lfbraz/speech-to-text-tutorial | 84a3441f6f57465087691e5f84b4f2d57efaa1a2 | [
"MIT"
] | null | null | null | run.py | lfbraz/speech-to-text-tutorial | 84a3441f6f57465087691e5f84b4f2d57efaa1a2 | [
"MIT"
] | null | null | null | from src.speech import Speech
BLOB_URI_INPUT = 'SAS_URL_BLOB_STORAGE'
speech = Speech()
speech = Speech()
speech.transcribe(blob_uri=BLOB_URI_INPUT,
name='Test Speech to Text',
description='This is a test of the Speech to Text API using Swagger',
locale='en-US',
... | 29.666667 | 87 | 0.579775 | 51 | 445 | 4.882353 | 0.666667 | 0.192771 | 0.216867 | 0.192771 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.32809 | 445 | 14 | 88 | 31.785714 | 0.832776 | 0 | 0 | 0.181818 | 0 | 0 | 0.294382 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
96a949fff970c0674f956e21d5ce4a7a4cc5d771 | 429 | py | Python | src/wai/annotations/domain/image/object_detection/util/__init__.py | waikato-ufdl/wai-annotations-core | bac3429e9488efb456972c74f9d462f951c4af3d | [
"Apache-2.0"
] | null | null | null | src/wai/annotations/domain/image/object_detection/util/__init__.py | waikato-ufdl/wai-annotations-core | bac3429e9488efb456972c74f9d462f951c4af3d | [
"Apache-2.0"
] | 3 | 2021-06-30T23:42:47.000Z | 2022-03-01T03:45:07.000Z | src/wai/annotations/domain/image/object_detection/util/__init__.py | waikato-ufdl/wai-annotations-core | bac3429e9488efb456972c74f9d462f951c4af3d | [
"Apache-2.0"
] | null | null | null | """
Package for utility functions for working with the object detection domain.
"""
from ._metadata import (
object_has_label,
get_object_label,
set_object_label,
object_has_prefix,
get_object_prefix,
set_object_prefix,
get_object_metadata,
set_object_metadata
)
from ._polygon_from_recta... | 26.8125 | 75 | 0.801865 | 56 | 429 | 5.625 | 0.428571 | 0.085714 | 0.095238 | 0.165079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 429 | 15 | 76 | 28.6 | 0.867769 | 0.174825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
96ad566aa1287404c1e236707021b222841ae78c | 677 | py | Python | save_all.py | KevSed/ML_Seminar | 3360d56e5808e041627f82d8309d70aa86563058 | [
"MIT"
] | null | null | null | save_all.py | KevSed/ML_Seminar | 3360d56e5808e041627f82d8309d70aa86563058 | [
"MIT"
] | null | null | null | save_all.py | KevSed/ML_Seminar | 3360d56e5808e041627f82d8309d70aa86563058 | [
"MIT"
] | null | null | null | import h5py
def save_all(hist, X_val, Y_val, w_val, string):
hdf5_file = h5py.File('history_{}.h5'.format(string), mode='w')
hdf5_file.create_dataset("val_loss", data=hist.history['val_loss'])
hdf5_file.create_dataset("loss", data=hist.history['loss'])
hdf5_file.create_dataset("val_accuracy", data=his... | 37.611111 | 74 | 0.713442 | 107 | 677 | 4.186916 | 0.233645 | 0.196429 | 0.21875 | 0.328125 | 0.410714 | 0.178571 | 0.178571 | 0.178571 | 0.178571 | 0 | 0 | 0.026801 | 0.118168 | 677 | 17 | 75 | 39.823529 | 0.723618 | 0 | 0 | 0.153846 | 0 | 0 | 0.149188 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
96c19931b5a4f68e31555a418a526ed498142488 | 287 | py | Python | src/twisted/plugins/magic_wormhole_transit_relay.py | meejah/magic-wormhole-transit-relay | 4f818bb7e0d1a40547855b2958b89161e30c3be1 | [
"MIT"
] | 45 | 2017-09-13T15:41:32.000Z | 2020-12-23T20:24:44.000Z | src/twisted/plugins/magic_wormhole_transit_relay.py | meejah/magic-wormhole-transit-relay | 4f818bb7e0d1a40547855b2958b89161e30c3be1 | [
"MIT"
] | 15 | 2018-02-13T01:35:13.000Z | 2020-11-06T11:36:20.000Z | src/twisted/plugins/magic_wormhole_transit_relay.py | meejah/magic-wormhole-transit-relay | 4f818bb7e0d1a40547855b2958b89161e30c3be1 | [
"MIT"
] | 18 | 2018-05-28T18:15:03.000Z | 2021-01-05T08:43:19.000Z | from twisted.application.service import ServiceMaker
TransitRelay = ServiceMaker(
"Magic-Wormhole Transit Relay", # name
"wormhole_transit_relay.server_tap", # module
"Provide the Transit Relay server for Magic-Wormhole clients.", # desc
"transitrelay", # tapname
)
| 31.888889 | 74 | 0.738676 | 31 | 287 | 6.741935 | 0.677419 | 0.172249 | 0.191388 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174216 | 287 | 8 | 75 | 35.875 | 0.881857 | 0.083624 | 0 | 0 | 0 | 0 | 0.515504 | 0.127907 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
73661f6283eb15a64c165883ce01fe96b5744072 | 1,845 | py | Python | old/PPO with Sonic the Hedgehog/play.py | sirmammingtonham/droneee | 1c0e1921a902b26958d298f3a0204465bf3e960d | [
"Unlicense"
] | null | null | null | old/PPO with Sonic the Hedgehog/play.py | sirmammingtonham/droneee | 1c0e1921a902b26958d298f3a0204465bf3e960d | [
"Unlicense"
] | null | null | null | old/PPO with Sonic the Hedgehog/play.py | sirmammingtonham/droneee | 1c0e1921a902b26958d298f3a0204465bf3e960d | [
"Unlicense"
] | null | null | null | import tensorflow as tf
import numpy as np
import gym
import math
import os
import model
import architecture as policies
import sonic_env as env
# SubprocVecEnv creates a vector of n environments to run them simultaneously.
from baselines.common.vec_env.subproc_vec_env import SubprocVecEnv
from baselines.common.vec_e... | 32.368421 | 87 | 0.662331 | 194 | 1,845 | 6.190722 | 0.494845 | 0.129892 | 0.134888 | 0.159867 | 0.118235 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02717 | 0.182114 | 1,845 | 56 | 88 | 32.946429 | 0.768721 | 0.586992 | 0 | 0 | 0 | 0 | 0.039456 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.5 | 0 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
73811156e33796b8edcb937c95f80de6a2862188 | 6,450 | py | Python | apiserver/api_schema.py | MadDonkey/DongTai-openapi | 40f5b218dcc2fee70e514ada20536ed3f2006404 | [
"Apache-2.0"
] | 4 | 2021-09-01T06:38:12.000Z | 2021-12-23T05:55:08.000Z | apiserver/api_schema.py | MadDonkey/DongTai-openapi | 40f5b218dcc2fee70e514ada20536ed3f2006404 | [
"Apache-2.0"
] | 13 | 2021-09-13T07:45:38.000Z | 2022-01-22T09:00:55.000Z | apiserver/api_schema.py | MadDonkey/DongTai-openapi | 40f5b218dcc2fee70e514ada20536ed3f2006404 | [
"Apache-2.0"
] | 22 | 2021-09-01T06:33:30.000Z | 2022-03-18T08:13:37.000Z | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# author: owefsad@huoxian.cn
# datetime: 2021/9/28 上午10:51
# project: dongtai-openapi
from drf_spectacular.utils import OpenApiParameter, OpenApiExample
class DongTaiAuth:
TOKEN = 'TokenAuthentication'
class DongTaiParameter:
OPENAPI_URL = OpenApiParameter(
... | 26.987448 | 94 | 0.508372 | 534 | 6,450 | 6.116105 | 0.179775 | 0.097979 | 0.077159 | 0.090018 | 0.657379 | 0.657379 | 0.657379 | 0.657379 | 0.657379 | 0.657379 | 0 | 0.003897 | 0.403256 | 6,450 | 238 | 95 | 27.10084 | 0.844635 | 0.01876 | 0 | 0.703704 | 0 | 0 | 0.283523 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.00463 | 0 | 0.092593 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7381b92873e389bea4c871f66d8f7ed53af5762f | 2,300 | py | Python | bokeh/io/tests/test_doc.py | afonit/bokeh | 37a9d6c81ed592d07effd0d3584befd0fc95b53c | [
"BSD-3-Clause"
] | 4 | 2018-06-03T14:08:15.000Z | 2020-09-09T01:56:29.000Z | bokeh/io/tests/test_doc.py | afonit/bokeh | 37a9d6c81ed592d07effd0d3584befd0fc95b53c | [
"BSD-3-Clause"
] | null | null | null | bokeh/io/tests/test_doc.py | afonit/bokeh | 37a9d6c81ed592d07effd0d3584befd0fc95b53c | [
"BSD-3-Clause"
] | 3 | 2020-04-28T17:47:50.000Z | 2021-04-05T06:11:46.000Z | #-----------------------------------------------------------------------------
# Copyright (c) 2012 - 2017, Anaconda, Inc. All rights reserved.
#
# Powered by the Bokeh Development Team.
#
# The full license is in the file LICENSE.txt, distributed with this software.
#---------------------------------------------------... | 30.263158 | 82 | 0.316087 | 143 | 2,300 | 4.944056 | 0.468531 | 0.050919 | 0.036775 | 0.02546 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00675 | 0.098261 | 2,300 | 75 | 83 | 30.666667 | 0.334137 | 0.677391 | 0 | 0 | 0 | 0 | 0.022535 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 1 | 0.095238 | false | 0 | 0.333333 | 0 | 0.428571 | 0.047619 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
738877b2341275b1f2d068fe061be9783b8f3980 | 629 | py | Python | move_files.py | dsharp32/wine_ordering | 56490a8b9bb3190a7bf1395322dc2f6a754903d1 | [
"MIT"
] | null | null | null | move_files.py | dsharp32/wine_ordering | 56490a8b9bb3190a7bf1395322dc2f6a754903d1 | [
"MIT"
] | null | null | null | move_files.py | dsharp32/wine_ordering | 56490a8b9bb3190a7bf1395322dc2f6a754903d1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue May 26 22:34:27 2020
@author: user
"""
import generate_date as gd
import os.path
import pathlib
import os
import shutil
date = gd.generate_date()
def move_files(company,po):
filename = po[-12:]
destination = os.path.join('Sent Orders... | 20.290323 | 70 | 0.658188 | 87 | 629 | 4.712644 | 0.563218 | 0.058537 | 0.073171 | 0.102439 | 0.204878 | 0.204878 | 0.204878 | 0.204878 | 0 | 0 | 0 | 0.032323 | 0.213037 | 629 | 30 | 71 | 20.966667 | 0.79596 | 0.149444 | 0 | 0 | 1 | 0 | 0.064639 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.357143 | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
739ada40fcd864784e016ea3d53b9e4baf1c3bdb | 7,591 | py | Python | Lib/plat-aix4/FCNTL.py | 1byte2bytes/cpython | 7fbaeb819ca7b20dca048217ff585ec195e999ec | [
"Unlicense",
"TCL",
"DOC",
"AAL",
"X11"
] | 5 | 2022-03-26T21:53:36.000Z | 2022-03-30T21:47:20.000Z | Lib/plat-aix4/FCNTL.py | 1byte2bytes/cpython | 7fbaeb819ca7b20dca048217ff585ec195e999ec | [
"Unlicense",
"TCL",
"DOC",
"AAL",
"X11"
] | 6 | 2020-11-18T15:48:14.000Z | 2021-05-03T21:20:50.000Z | Lib/plat-aix4/FCNTL.py | 1byte2bytes/cpython | 7fbaeb819ca7b20dca048217ff585ec195e999ec | [
"Unlicense",
"TCL",
"DOC",
"AAL",
"X11"
] | 2 | 2015-07-16T08:14:13.000Z | 2022-03-27T01:55:17.000Z | # Generated by h2py from /usr/include/fcntl.h
# Included from standards.h
# Included from sys/types.h
# Included from sys/m_types.h
NULL = 0
TRUE = 1
FALSE = 0
NBBY = 8
FHSIZE = 32
# Included from sys/select.h
# Included from sys/time.h
ITIMER_REAL = 0
ITIMER_VIRTUAL = 1
ITIMER_PROF = 2
ITIMER_VIRT = 3
ITIMER_REAL... | 19.564433 | 94 | 0.760242 | 1,370 | 7,591 | 3.729197 | 0.352555 | 0.030534 | 0.011744 | 0.014093 | 0.025445 | 0.021922 | 0 | 0 | 0 | 0 | 0 | 0.147137 | 0.155711 | 7,591 | 387 | 95 | 19.614987 | 0.650023 | 0.048874 | 0 | 0.023188 | 1 | 0 | 0.00111 | 0 | 0 | 0 | 0.028591 | 0 | 0 | 0 | null | null | 0.002899 | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
73a99d5538365b71ced8735be1d224228a4e9c2f | 123 | py | Python | python/code/network/002-socket-client.py | Ljazz/studyspace | b235e7d16fecf93dd64ad785833d4de5bb17db64 | [
"MIT"
] | null | null | null | python/code/network/002-socket-client.py | Ljazz/studyspace | b235e7d16fecf93dd64ad785833d4de5bb17db64 | [
"MIT"
] | null | null | null | python/code/network/002-socket-client.py | Ljazz/studyspace | b235e7d16fecf93dd64ad785833d4de5bb17db64 | [
"MIT"
] | null | null | null | import socket
s = socket.socket()
s.connect(('192.168.2.10', 1234))
data = s.recv(1024)
s.close()
print('Received', data)
| 15.375 | 33 | 0.666667 | 21 | 123 | 3.904762 | 0.714286 | 0.170732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155963 | 0.113821 | 123 | 7 | 34 | 17.571429 | 0.59633 | 0 | 0 | 0 | 0 | 0 | 0.162602 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
73a9f792b7f4c736bb33b68e568f14061798c54f | 2,502 | py | Python | reports/overdue-report.py | Theodeus/www.html5rocks.com | df153ceca613213205e78d3f077019d8715779f4 | [
"Apache-2.0"
] | 4 | 2020-07-15T16:28:57.000Z | 2020-09-14T17:38:31.000Z | reports/overdue-report.py | Theodeus/www.html5rocks.com | df153ceca613213205e78d3f077019d8715779f4 | [
"Apache-2.0"
] | null | null | null | reports/overdue-report.py | Theodeus/www.html5rocks.com | df153ceca613213205e78d3f077019d8715779f4 | [
"Apache-2.0"
] | null | null | null | import getpass
import sys
import re
import math
import netrc
from datetime import datetime, timedelta
from optparse import OptionParser
from github import Github
from github.Repository import Repository
from github.GithubException import GithubException
repository = "html5rocks/www.html5rocks.com"
def ParseIssues(is... | 31.275 | 177 | 0.632694 | 330 | 2,502 | 4.636364 | 0.324242 | 0.03268 | 0.007843 | 0.056863 | 0.179085 | 0.143791 | 0.143791 | 0.075817 | 0.075817 | 0 | 0 | 0.006091 | 0.21263 | 2,502 | 79 | 178 | 31.670886 | 0.770558 | 0 | 0 | 0.036364 | 0 | 0 | 0.193153 | 0.093407 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.054545 | 0.181818 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
73ad5e0dc155a77a9d0a42ab302d73fe2f7ee09d | 33,381 | py | Python | rplugin/python3/deoplete/exegesis/proto/microarchitecture_pb2.py | zchee/deoplete-asm | 020d4ef1060f5ac50b8ab47677591193944a384c | [
"MIT"
] | 11 | 2017-06-13T08:03:16.000Z | 2018-06-01T21:30:36.000Z | rplugin/python3/deoplete/exegesis/proto/microarchitecture_pb2.py | zchee/deoplete-asm | 020d4ef1060f5ac50b8ab47677591193944a384c | [
"MIT"
] | null | null | null | rplugin/python3/deoplete/exegesis/proto/microarchitecture_pb2.py | zchee/deoplete-asm | 020d4ef1060f5ac50b8ab47677591193944a384c | [
"MIT"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: exegesis/proto/microarchitecture.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.protobuf im... | 46.491643 | 3,498 | 0.752075 | 4,316 | 33,381 | 5.507878 | 0.076923 | 0.063268 | 0.045768 | 0.05048 | 0.694851 | 0.622371 | 0.585899 | 0.56331 | 0.544969 | 0.537313 | 0 | 0.043018 | 0.128816 | 33,381 | 717 | 3,499 | 46.556485 | 0.774423 | 0.021 | 0 | 0.679583 | 1 | 0.00149 | 0.258212 | 0.22463 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.008942 | 0 | 0.008942 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
73d4a03dcfcefba5dc5c7c8ab1472cc7135cb332 | 58 | py | Python | artificial_detection/data/const.py | MaratSaidov/artificial-text-detection | 74b2100294232ec361db84fdc3a24fdeba1fce49 | [
"MIT"
] | 12 | 2021-11-15T08:59:46.000Z | 2022-03-06T15:42:24.000Z | artificial_detection/data/const.py | MaratSaidov/artificial-text-detection | 74b2100294232ec361db84fdc3a24fdeba1fce49 | [
"MIT"
] | 2 | 2021-11-14T15:50:00.000Z | 2021-11-20T12:17:29.000Z | artificial_detection/data/const.py | MaratSaidov/artificial-text-detection | 74b2100294232ec361db84fdc3a24fdeba1fce49 | [
"MIT"
] | null | null | null | TEST_SIZE = 0.2
MULTILINGUAL_MODELS = ["m2m100", "mbart"]
| 19.333333 | 41 | 0.706897 | 8 | 58 | 4.875 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 0.12069 | 58 | 2 | 42 | 29 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0.189655 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
73d4cb1ec403f1927ad1567fcbfbf3ce7186dbaf | 937 | py | Python | website/recipients/migrations/0042_auto_20201229_1556.py | tibet5/website | 937e1941aaadbf7cd0a404a2655858451c01dd54 | [
"MIT"
] | null | null | null | website/recipients/migrations/0042_auto_20201229_1556.py | tibet5/website | 937e1941aaadbf7cd0a404a2655858451c01dd54 | [
"MIT"
] | null | null | null | website/recipients/migrations/0042_auto_20201229_1556.py | tibet5/website | 937e1941aaadbf7cd0a404a2655858451c01dd54 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2020-12-29 20:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('recipients', '0041_auto_20201220_2242'),
]
operations = [
migrations.AlterField(
model_name='groceryrequest',
name='... | 39.041667 | 235 | 0.67556 | 117 | 937 | 5.333333 | 0.529915 | 0.102564 | 0.080128 | 0.092949 | 0.621795 | 0.621795 | 0.621795 | 0.621795 | 0.621795 | 0.621795 | 0 | 0.051893 | 0.239061 | 937 | 23 | 236 | 40.73913 | 0.823282 | 0.048026 | 0 | 0.470588 | 1 | 0.117647 | 0.47191 | 0.025843 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
73defb37af61ae8cdc8e2f50acd8a07cee5fb352 | 218 | py | Python | _src/Chapter03/04-flaskdemo.py | paullewallencom/nginx-978-1-7864-6617-4 | 7a3c30ade23c964e4cc58be4b191db0a484c6671 | [
"Apache-2.0"
] | 30 | 2017-09-04T03:37:22.000Z | 2021-11-08T13:12:50.000Z | _src/Chapter03/04-flaskdemo.py | paullewallencom/nginx-978-1-7864-6617-4 | 7a3c30ade23c964e4cc58be4b191db0a484c6671 | [
"Apache-2.0"
] | null | null | null | _src/Chapter03/04-flaskdemo.py | paullewallencom/nginx-978-1-7864-6617-4 | 7a3c30ade23c964e4cc58be4b191db0a484c6671 | [
"Apache-2.0"
] | 25 | 2017-09-04T20:47:13.000Z | 2021-11-22T22:49:46.000Z | from flask import Flask
application = Flask(__name__)
@application.route("/")
def hello():
return "<h1>Demo via Nginx with uWSGI!</h1>"
if __name__ == "__main__":
application.run(host='127.0.0.1', port=9001)
| 21.8 | 48 | 0.683486 | 31 | 218 | 4.419355 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 0.146789 | 218 | 9 | 49 | 24.222222 | 0.672043 | 0 | 0 | 0 | 0 | 0 | 0.243119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 2 |
73e312dce5276f45437e745f679b6fefac3cfc09 | 378 | py | Python | hackerrank/decorators/sort_phones.py | alex-d-bondarev/learn-python | b119cb1e09a57e93abc73383c014cc8ceba18acf | [
"MIT"
] | null | null | null | hackerrank/decorators/sort_phones.py | alex-d-bondarev/learn-python | b119cb1e09a57e93abc73383c014cc8ceba18acf | [
"MIT"
] | null | null | null | hackerrank/decorators/sort_phones.py | alex-d-bondarev/learn-python | b119cb1e09a57e93abc73383c014cc8ceba18acf | [
"MIT"
] | null | null | null | def wrapper(f):
def fun(l):
decorated_numbers = []
for number in l:
decorated_numbers.append("+91 " + number[-10:-5] + " " + number[-5:])
return f(decorated_numbers)
return fun
@wrapper
def sort_phone(l):
print(*sorted(l), sep='\n')
if __name__ == '__main__':
l =... | 19.894737 | 81 | 0.560847 | 50 | 378 | 3.96 | 0.54 | 0.242424 | 0.171717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.269841 | 378 | 18 | 82 | 21 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0.039683 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0 | 0 | 0.384615 | 0.076923 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
73e4b29c71f6ace6a7dc2ba97aa4f9537d40abae | 1,124 | py | Python | Moonrise/MoonriseCreatures/Dragon.py | NewtC1/Salamandbot | 6d335d97944789402bf8fd66b625750ff19ab54c | [
"WTFPL"
] | null | null | null | Moonrise/MoonriseCreatures/Dragon.py | NewtC1/Salamandbot | 6d335d97944789402bf8fd66b625750ff19ab54c | [
"WTFPL"
] | null | null | null | Moonrise/MoonriseCreatures/Dragon.py | NewtC1/Salamandbot | 6d335d97944789402bf8fd66b625750ff19ab54c | [
"WTFPL"
] | 2 | 2019-10-21T17:14:59.000Z | 2019-11-21T02:27:32.000Z | from DarkForestCreature import DarkForestCreature
# Dragon(300, 1.0, 1000, 1.0, 2000, 3600), # dpm of 200. Reward increases over time, difficult to kill.
class Dragon(DarkForestCreature):
def __init__(self, delay=300, delayMulti=1.0, attack=800, attackMulti=1.0, health=900, reward=3600,
inciner... | 48.869565 | 224 | 0.706406 | 140 | 1,124 | 5.6 | 0.571429 | 0.010204 | 0.033163 | 0.053571 | 0.076531 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051512 | 0.205516 | 1,124 | 23 | 225 | 48.869565 | 0.826428 | 0.089858 | 0 | 0.1875 | 0 | 0 | 0.22429 | 0.055828 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.0625 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
73f079539549f9811b74a1c31752660ea3440d01 | 170 | py | Python | amocrm_asterisk_ng/telephony/impl/instances/asterisk_16/origination/OriginationConfig.py | iqtek/amocrn_asterisk_ng | 429a8d0823b951c855a49c1d44ab0e05263c54dc | [
"MIT"
] | null | null | null | amocrm_asterisk_ng/telephony/impl/instances/asterisk_16/origination/OriginationConfig.py | iqtek/amocrn_asterisk_ng | 429a8d0823b951c855a49c1d44ab0e05263c54dc | [
"MIT"
] | null | null | null | amocrm_asterisk_ng/telephony/impl/instances/asterisk_16/origination/OriginationConfig.py | iqtek/amocrn_asterisk_ng | 429a8d0823b951c855a49c1d44ab0e05263c54dc | [
"MIT"
] | null | null | null | from pydantic import BaseModel
__all__ = [
"OriginationConfig",
]
class OriginationConfig(BaseModel):
context: str = "from-internal"
timeout: int = 30000
| 14.166667 | 35 | 0.7 | 16 | 170 | 7.1875 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.205882 | 170 | 11 | 36 | 15.454545 | 0.814815 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.571429 | 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 | 1 | 0 | 0 | 2 |
73f53fd32c6ca352d4607a10850edfcdab3f7811 | 10,361 | py | Python | tests/analyzers/test_numerical_target_drift_analyzer.py | Tapot/evidently | ab9b91425d622566b663565508dd1c43e741f515 | [
"Apache-2.0"
] | null | null | null | tests/analyzers/test_numerical_target_drift_analyzer.py | Tapot/evidently | ab9b91425d622566b663565508dd1c43e741f515 | [
"Apache-2.0"
] | null | null | null | tests/analyzers/test_numerical_target_drift_analyzer.py | Tapot/evidently | ab9b91425d622566b663565508dd1c43e741f515 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import pytest
from pandas import DataFrame
from pytest import approx
from evidently import ColumnMapping
from evidently.analyzers.num_target_drift_analyzer import NumTargetDriftAnalyzer
from evidently.options import DataDriftOptions, OptionsProvider
@pytest.fixture
def analyzer() -> NumTargetDrift... | 33.970492 | 109 | 0.678313 | 1,185 | 10,361 | 5.720675 | 0.105485 | 0.097359 | 0.123322 | 0.147514 | 0.82254 | 0.755716 | 0.695678 | 0.655554 | 0.638442 | 0.576929 | 0 | 0.040899 | 0.192935 | 10,361 | 304 | 110 | 34.082237 | 0.769792 | 0.00666 | 0 | 0.654618 | 0 | 0 | 0.077454 | 0 | 0 | 0 | 0 | 0 | 0.236948 | 1 | 0.072289 | false | 0 | 0.028112 | 0 | 0.104418 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fb455cb827db2c849cf628a7c46bfc66a760bb37 | 1,173 | py | Python | data_preprocessing/parse_doc.py | ubwbu/cnlglsearch | f1b165d469561edd49fe63d16c5acd9513236222 | [
"MIT"
] | null | null | null | data_preprocessing/parse_doc.py | ubwbu/cnlglsearch | f1b165d469561edd49fe63d16c5acd9513236222 | [
"MIT"
] | 1 | 2021-06-20T06:43:41.000Z | 2021-06-20T06:43:41.000Z | data_preprocessing/parse_doc.py | ubwbu/cnlglsearch | f1b165d469561edd49fe63d16c5acd9513236222 | [
"MIT"
] | null | null | null | from FastTextRank.FastTextRank4Word import FastTextRank4Word
from cnlglsearch.utils.legal_doc import LegalDoc
tr4s = FastTextRank4Word(tol=0.0001)
fp = open("aaa.txt",encoding="utf-8")
aa = fp.read()
fp.close()
tr4s.summarize("原告孙高长与被告长沙斯盛消防安全工程有限公司、娄底市三湘房地产开发有限公司追索劳动报酬纠纷民事一审调解书\n 湖南省新化县人民法院\n民 事 裁 定 书\n(2018)湘132... | 36.65625 | 605 | 0.693947 | 115 | 1,173 | 7.008696 | 0.8 | 0.022333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060729 | 0.157715 | 1,173 | 32 | 606 | 36.65625 | 0.754049 | 0.265132 | 0 | 0 | 0 | 0.142857 | 0.706651 | 0.652019 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fb526b17849ce4e5b6c1299c62cdee13810c455a | 1,110 | py | Python | Acquire/ObjectStore/_encoding.py | michellab/BioSimSpaceCloud | 456b146a2131565e354352872d3e75a08c3652d1 | [
"Apache-2.0"
] | 2 | 2019-02-15T16:04:19.000Z | 2019-02-19T15:42:27.000Z | Acquire/ObjectStore/_encoding.py | michellab/BioSimSpaceCloud | 456b146a2131565e354352872d3e75a08c3652d1 | [
"Apache-2.0"
] | null | null | null | Acquire/ObjectStore/_encoding.py | michellab/BioSimSpaceCloud | 456b146a2131565e354352872d3e75a08c3652d1 | [
"Apache-2.0"
] | null | null | null |
import json as _json
import base64 as _base64
__all__ = ["bytes_to_string", "string_to_bytes",
"string_to_encoded", "encoded_to_string"]
def string_to_encoded(s):
"""Return the passed unicode string encoded to a safely
encoded base64 utf-8 string"""
return bytes_to_string(s.encode("utf-8"... | 27.073171 | 62 | 0.677477 | 167 | 1,110 | 4.323353 | 0.281437 | 0.044321 | 0.072022 | 0.066482 | 0.257618 | 0.155125 | 0.088643 | 0 | 0 | 0 | 0 | 0.033097 | 0.237838 | 1,110 | 40 | 63 | 27.75 | 0.820331 | 0.422523 | 0 | 0.222222 | 0 | 0 | 0.147368 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
fb5763f1b73fde30b52e13260f8d26eb0e8deec8 | 3,185 | py | Python | rpi-client/covid19/covid19.py | isimsim2/MirrorAssistant | 3eb397c192778fa7220964cd12fa9b3c1740637a | [
"MIT"
] | 1 | 2021-07-25T19:58:21.000Z | 2021-07-25T19:58:21.000Z | rpi-client/covid19/covid19.py | isimsim2/MirrorAssistant | 3eb397c192778fa7220964cd12fa9b3c1740637a | [
"MIT"
] | null | null | null | rpi-client/covid19/covid19.py | isimsim2/MirrorAssistant | 3eb397c192778fa7220964cd12fa9b3c1740637a | [
"MIT"
] | null | null | null | import requests
from datetime import datetime, timedelta
import xml.etree.ElementTree as ET
from urllib import parse
class Covid19:
items = None
covid19Url = None
c19Key = None
covid19Url = None
covid19QueryParams = None
def __init__(self):
# 오늘 날짜
todayDate = datetime.today()... | 38.841463 | 105 | 0.55102 | 321 | 3,185 | 5.423676 | 0.29595 | 0.057438 | 0.080414 | 0.050546 | 0.737507 | 0.72602 | 0.667433 | 0.636416 | 0.636416 | 0.636416 | 0 | 0.04076 | 0.322135 | 3,185 | 81 | 106 | 39.320988 | 0.765632 | 0.052433 | 0 | 0.64 | 0 | 0 | 0.112442 | 0.007984 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.08 | 0.04 | 0.32 | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
fb5b81cb2f2158e09a56c92c29d9cac58793505b | 623 | py | Python | services/web/apps/gis/area/views.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 84 | 2017-10-22T11:01:39.000Z | 2022-02-27T03:43:48.000Z | services/web/apps/gis/area/views.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 22 | 2017-12-11T07:21:56.000Z | 2021-09-23T02:53:50.000Z | services/web/apps/gis/area/views.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 23 | 2017-12-06T06:59:52.000Z | 2022-02-24T00:02:25.000Z | # ---------------------------------------------------------------------
# gis.area application
# ---------------------------------------------------------------------
# Copyright (C) 2007-2019 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
# NOC module... | 28.318182 | 71 | 0.462279 | 49 | 623 | 5.795918 | 0.653061 | 0.073944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014787 | 0.131621 | 623 | 21 | 72 | 29.666667 | 0.510166 | 0.520064 | 0 | 0 | 0 | 0 | 0.050542 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 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 | 1 | 0 | 1 | 0 | 0 | 2 |
fb69695b24402a508543aceb22f51ef9d3206c36 | 6,999 | py | Python | tests/example_app/sites.py | goodtune/vitriolic | d135eecf7acbc229a872585ebafb8bbefca52df4 | [
"BSD-3-Clause"
] | null | null | null | tests/example_app/sites.py | goodtune/vitriolic | d135eecf7acbc229a872585ebafb8bbefca52df4 | [
"BSD-3-Clause"
] | 28 | 2016-12-09T21:14:19.000Z | 2022-01-11T07:17:16.000Z | tests/example_app/sites.py | goodtune/vitriolic | d135eecf7acbc229a872585ebafb8bbefca52df4 | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls import include, url
from example_app.models import Relative, TestDateTimeField
from touchtechnology.common.sites import Application
class TestDateTimeFieldSite(Application):
def __init__(self, name='datetime', app_name='datetime', *args, **kwargs):
super(TestDateTimeFieldSite, self)... | 40.224138 | 79 | 0.582369 | 739 | 6,999 | 5.304465 | 0.11908 | 0.082653 | 0.065051 | 0.05051 | 0.66199 | 0.606888 | 0.561735 | 0.523469 | 0.494643 | 0.457143 | 0 | 0 | 0.286184 | 6,999 | 173 | 80 | 40.456647 | 0.784628 | 0.010716 | 0 | 0.335878 | 0 | 0 | 0.070077 | 0.010837 | 0 | 0 | 0 | 0 | 0 | 1 | 0.21374 | false | 0 | 0.022901 | 0.129771 | 0.450382 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
fb6d2364ad57bba29a349b436cb81520bf611241 | 2,291 | py | Python | uid3/att_stats.py | AnetaKaczynska/uid3 | 3adcb9bf90abaa9f1eb6f656399cc8da6eb1873a | [
"Apache-2.0"
] | null | null | null | uid3/att_stats.py | AnetaKaczynska/uid3 | 3adcb9bf90abaa9f1eb6f656399cc8da6eb1873a | [
"Apache-2.0"
] | null | null | null | uid3/att_stats.py | AnetaKaczynska/uid3 | 3adcb9bf90abaa9f1eb6f656399cc8da6eb1873a | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: src/att_stats.ipynb (unless otherwise specified).
__all__ = ['AttStats']
# Cell
from typing import List
from .value import Value
from .attribute import Attribute
# from uid3.data import Data
# Cell
class AttStats:
def __init__(self, statistics: List[Value], avg_confid... | 31.383562 | 93 | 0.606722 | 282 | 2,291 | 4.70922 | 0.265957 | 0.073795 | 0.036145 | 0.021084 | 0.036145 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003079 | 0.291139 | 2,291 | 73 | 94 | 31.383562 | 0.814655 | 0.082933 | 0 | 0.037037 | 1 | 0 | 0.010979 | 0 | 0 | 0 | 0 | 0.013699 | 0 | 1 | 0.12963 | false | 0 | 0.055556 | 0.037037 | 0.37037 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fb6e32b387a8523925ee39f54a2c9f050d604bae | 3,923 | py | Python | sunpy/map/tests/test_plotting.py | mridullpandey/sunpy | 65bf70731a8147899b8c0fca8b3b1a386e47c010 | [
"BSD-2-Clause"
] | null | null | null | sunpy/map/tests/test_plotting.py | mridullpandey/sunpy | 65bf70731a8147899b8c0fca8b3b1a386e47c010 | [
"BSD-2-Clause"
] | null | null | null | sunpy/map/tests/test_plotting.py | mridullpandey/sunpy | 65bf70731a8147899b8c0fca8b3b1a386e47c010 | [
"BSD-2-Clause"
] | 1 | 2019-02-19T07:49:14.000Z | 2019-02-19T07:49:14.000Z | # -*- coding: utf-8 -*-
"""
Test Generic Map
"""
import os
import pytest
import numpy as np
import astropy.units as u
from astropy.coordinates import SkyCoord
import matplotlib.pyplot as plt
import sunpy
import sunpy.map
import sunpy.coordinates
import sunpy.data.test
from sunpy.tests.helpers import figure_test
tes... | 24.51875 | 82 | 0.752995 | 621 | 3,923 | 4.383253 | 0.162641 | 0.14144 | 0.214916 | 0.124908 | 0.695812 | 0.618295 | 0.564658 | 0.42432 | 0.324394 | 0.324394 | 0 | 0.07145 | 0.140199 | 3,923 | 159 | 83 | 24.672956 | 0.735547 | 0.009941 | 0 | 0.349057 | 0 | 0 | 0.01548 | 0.00774 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216981 | false | 0 | 0.103774 | 0.018868 | 0.349057 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fb7646a802a44b9585712b71767b0379a222f465 | 391 | py | Python | carmin-server/server/resources/pipeline.py | louis-ver/CARMIN | 2f9036b20c723740790da17bdf84d92eb19c036e | [
"MIT"
] | null | null | null | carmin-server/server/resources/pipeline.py | louis-ver/CARMIN | 2f9036b20c723740790da17bdf84d92eb19c036e | [
"MIT"
] | 32 | 2018-01-18T21:52:20.000Z | 2018-03-12T21:03:18.000Z | carmin-server/server/resources/pipeline.py | louis-ver/CARMIN | 2f9036b20c723740790da17bdf84d92eb19c036e | [
"MIT"
] | null | null | null | import os
import json
from flask_restful import Resource
from .models.pipeline import Pipeline, PipelineSchema
from .decorators import marshal_response
from .helpers.pipelines import pipelines
class Pipeline(Resource):
@marshal_response(PipelineSchema())
def get(self, pipeline_identifier):
pipeline = ... | 27.928571 | 53 | 0.777494 | 44 | 391 | 6.795455 | 0.522727 | 0.100334 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150895 | 391 | 13 | 54 | 30.076923 | 0.900602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.545455 | 0 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
fb7f0c403d663fa0e53430384d19e952965a215a | 528 | py | Python | utils/glyph.py | Devoxin/Chi | 40092a6c72183f6a515e64c287d063fe04fdce28 | [
"MIT"
] | 2 | 2020-06-23T19:02:04.000Z | 2020-07-16T21:28:33.000Z | utils/glyph.py | Devoxin/Chi | 40092a6c72183f6a515e64c287d063fe04fdce28 | [
"MIT"
] | null | null | null | utils/glyph.py | Devoxin/Chi | 40092a6c72183f6a515e64c287d063fe04fdce28 | [
"MIT"
] | null | null | null | from fontTools.ttLib import TTFont
class TTFTool:
def __init__(self, font_path):
self._font = TTFont(font_path)
def char_exists(self, unicode_char) -> bool:
for cmap in self._font['cmap'].tables:
if cmap.isUnicode() and ord(unicode_char) in cmap.cmap:
return True
... | 25.142857 | 67 | 0.613636 | 68 | 528 | 4.544118 | 0.455882 | 0.07767 | 0.10356 | 0.135922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.304924 | 528 | 20 | 68 | 26.4 | 0.841962 | 0 | 0 | 0.285714 | 0 | 0 | 0.007576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
fb889188fcf4b58e5d77af55e234b5def7bf8056 | 6,999 | py | Python | applaud/endpoints/beta_app_review_details.py | codinn/applaud | ed168ca67465b5c0acf4ab4f4e285a2ab348c96d | [
"MIT"
] | 3 | 2022-01-22T15:34:13.000Z | 2022-03-22T06:46:48.000Z | applaud/endpoints/beta_app_review_details.py | codinn/applaud | ed168ca67465b5c0acf4ab4f4e285a2ab348c96d | [
"MIT"
] | 1 | 2022-03-13T17:13:01.000Z | 2022-03-16T05:04:51.000Z | applaud/endpoints/beta_app_review_details.py | codinn/applaud | ed168ca67465b5c0acf4ab4f4e285a2ab348c96d | [
"MIT"
] | 1 | 2022-03-16T02:17:30.000Z | 2022-03-16T02:17:30.000Z | from __future__ import annotations
from .base import Endpoint, IDEndpoint, SortOrder, endpoint
from ..fields import *
from typing import Union
from ..schemas.models import *
from ..schemas.responses import *
from ..schemas.requests import *
from ..schemas.enums import *
class BetaAppReviewDetailsEndpoint(Endpoint):
... | 42.418182 | 193 | 0.688384 | 742 | 6,999 | 6.390836 | 0.152291 | 0.020666 | 0.03838 | 0.056094 | 0.687474 | 0.631379 | 0.624631 | 0.594264 | 0.539646 | 0.539646 | 0 | 0.002388 | 0.222175 | 6,999 | 164 | 194 | 42.676829 | 0.868663 | 0.408916 | 0 | 0.396552 | 0 | 0 | 0.0591 | 0.032864 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.137931 | 0.017241 | 0.689655 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
fb8d01eead4abd6e024ffb187ce06c9358726c70 | 1,786 | py | Python | migrations/versions/915d41989da1_.py | adamhb123/gallery | bca52379ed312eb5aa739449b8e04643b15873a3 | [
"MIT"
] | 16 | 2018-12-11T21:11:49.000Z | 2022-02-01T11:12:46.000Z | migrations/versions/915d41989da1_.py | adamhb123/gallery | bca52379ed312eb5aa739449b8e04643b15873a3 | [
"MIT"
] | 39 | 2018-10-01T05:35:04.000Z | 2022-03-31T04:52:12.000Z | migrations/versions/915d41989da1_.py | adamhb123/gallery | bca52379ed312eb5aa739449b8e04643b15873a3 | [
"MIT"
] | 18 | 2018-10-01T05:39:19.000Z | 2021-10-13T02:59:26.000Z | """empty message
Revision ID: 915d41989da1
Revises: None
Create Date: 2016-11-17 23:17:34.057500
"""
# revision identifiers, used by Alembic.
revision = '915d41989da1'
down_revision = None
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - please adjust! ###... | 34.346154 | 99 | 0.664614 | 221 | 1,786 | 5.316742 | 0.289593 | 0.115745 | 0.204255 | 0.250213 | 0.639149 | 0.639149 | 0.634894 | 0.634894 | 0.56 | 0.493617 | 0 | 0.025 | 0.148936 | 1,786 | 51 | 100 | 35.019608 | 0.748026 | 0.158455 | 0 | 0.424242 | 0 | 0 | 0.172789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.060606 | 0 | 0.121212 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fb9997ea0e090b5065bdbe21e663edb02f0736c1 | 1,034 | py | Python | menpo/misctools/circlefit.py | ikassi/menpo | ca702fc814a1ad50b27c44c6544ba364d3aa7e31 | [
"BSD-3-Clause"
] | null | null | null | menpo/misctools/circlefit.py | ikassi/menpo | ca702fc814a1ad50b27c44c6544ba364d3aa7e31 | [
"BSD-3-Clause"
] | null | null | null | menpo/misctools/circlefit.py | ikassi/menpo | ca702fc814a1ad50b27c44c6544ba364d3aa7e31 | [
"BSD-3-Clause"
] | 1 | 2021-04-14T12:09:00.000Z | 2021-04-14T12:09:00.000Z | import numpy as np
from scipy import optimize
def circle_fit(coords):
"""
Find the least squares circle fitting a set of 2D points ``(x,y)``.
Parameters
----------
coords : (N, 2) ndarray
Set of ``x`` and ``y`` coordinates.
Returns
-------
centre_i : (2,)
The 2D coord... | 24.619048 | 71 | 0.553191 | 154 | 1,034 | 3.538961 | 0.363636 | 0.051376 | 0.027523 | 0.06055 | 0.115596 | 0.084404 | 0 | 0 | 0 | 0 | 0 | 0.016484 | 0.295938 | 1,034 | 41 | 72 | 25.219512 | 0.732143 | 0.386847 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0.071429 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
fb9a7d76a5d46fea287857663bb3317085ccda9e | 2,699 | py | Python | uw_canvas/tests/test_sis_import.py | uw-it-aca/uw-restclients-canvas | 2c54d7676649ec18129817992890878ace1ec6c6 | [
"Apache-2.0"
] | 1 | 2019-11-26T21:38:50.000Z | 2019-11-26T21:38:50.000Z | uw_canvas/tests/test_sis_import.py | uw-it-aca/uw-restclients-canvas | 2c54d7676649ec18129817992890878ace1ec6c6 | [
"Apache-2.0"
] | 135 | 2017-04-04T23:11:26.000Z | 2021-05-28T17:00:20.000Z | uw_canvas/tests/test_sis_import.py | uw-it-aca/uw-restclients-canvas | 2c54d7676649ec18129817992890878ace1ec6c6 | [
"Apache-2.0"
] | 2 | 2020-05-20T20:36:55.000Z | 2022-03-05T00:23:44.000Z | # Copyright 2021 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0
from unittest import TestCase
from uw_canvas.utilities import fdao_canvas_override
from uw_canvas.sis_import import SISImport
from uw_canvas.models import SISImport as SISImportModel
from uw_canvas import MissingAccountID
import moc... | 36.472973 | 77 | 0.652093 | 325 | 2,699 | 5.153846 | 0.258462 | 0.037612 | 0.038806 | 0.01194 | 0.50209 | 0.474627 | 0.453134 | 0.413731 | 0.345672 | 0.249552 | 0 | 0.01778 | 0.228974 | 2,699 | 73 | 78 | 36.972603 | 0.787122 | 0.037051 | 0 | 0.457627 | 0 | 0 | 0.210405 | 0.122158 | 0 | 0 | 0 | 0 | 0.152542 | 1 | 0.118644 | false | 0 | 0.728814 | 0.016949 | 0.898305 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
fb9af4220513c6df8f59f90065a9e6cc84db53f9 | 9,544 | py | Python | prediction/apis/data_management_engine.py | EcoJesss/ecosystem-notebooks | 095b2bc59b9749129a454a7b16c97e20d9484fd4 | [
"MIT"
] | null | null | null | prediction/apis/data_management_engine.py | EcoJesss/ecosystem-notebooks | 095b2bc59b9749129a454a7b16c97e20d9484fd4 | [
"MIT"
] | null | null | null | prediction/apis/data_management_engine.py | EcoJesss/ecosystem-notebooks | 095b2bc59b9749129a454a7b16c97e20d9484fd4 | [
"MIT"
] | null | null | null | from prediction.endpoints import data_management_engine as endpoints
from prediction import request_utils
# Data Management Engine
def get_document_db_aggregate2(auth, database, collection, aggregate, field, limit, projections, skip, sort):
ep = endpoints.GET_MONGO_DB_AGGREGATE2
param_dict = {
"databas... | 29.276074 | 109 | 0.654547 | 1,114 | 9,544 | 5.379713 | 0.066427 | 0.078091 | 0.077424 | 0.106458 | 0.801602 | 0.763391 | 0.689972 | 0.612882 | 0.588019 | 0.580344 | 0 | 0.000553 | 0.242246 | 9,544 | 326 | 110 | 29.276074 | 0.828125 | 0.009116 | 0 | 0.651877 | 0 | 0 | 0.072033 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098976 | false | 0 | 0.030717 | 0 | 0.228669 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fba16ce570be99dd2dd2de44d9e9aa0c777cf35a | 200 | py | Python | hackerrank/border.py | veterinarian-5300/Genious-Python-Code-Generator | d78cd5f4b64221e8e4dc80d6e1f5ba0a4c613bcd | [
"Apache-2.0"
] | 1 | 2021-09-27T06:24:21.000Z | 2021-09-27T06:24:21.000Z | hackerrank/border.py | veterinarian-5300/Genious-Python-Code-Generator | d78cd5f4b64221e8e4dc80d6e1f5ba0a4c613bcd | [
"Apache-2.0"
] | null | null | null | hackerrank/border.py | veterinarian-5300/Genious-Python-Code-Generator | d78cd5f4b64221e8e4dc80d6e1f5ba0a4c613bcd | [
"Apache-2.0"
] | null | null | null | import numpy as np
x = np.ones((2,2))
print("Original array:")
print(x)
print("0 on the border and 1 inside in the array")
x = np.pad(x, pad_width=1, mode='constant', constant_values=0)
print(x) | 28.571429 | 63 | 0.68 | 39 | 200 | 3.435897 | 0.589744 | 0.044776 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0.16 | 200 | 7 | 64 | 28.571429 | 0.761905 | 0 | 0 | 0.285714 | 0 | 0 | 0.328205 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.571429 | 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 | 1 | 0 | 2 |
fba9a9f7c785f4570034683812b392d27664b25a | 787 | py | Python | tftpy/__init__.py | slintak/tftpy | 5a5d3e808f080bdf3f0655828b23a7b9ab1b275b | [
"MIT"
] | null | null | null | tftpy/__init__.py | slintak/tftpy | 5a5d3e808f080bdf3f0655828b23a7b9ab1b275b | [
"MIT"
] | null | null | null | tftpy/__init__.py | slintak/tftpy | 5a5d3e808f080bdf3f0655828b23a7b9ab1b275b | [
"MIT"
] | 1 | 2019-05-16T07:05:07.000Z | 2019-05-16T07:05:07.000Z | """
This library implements the tftp protocol, based on rfc 1350.
http://www.faqs.org/rfcs/rfc1350.html
At the moment it implements only a client class, but will include a server,
with support for variable block sizes.
As a client of tftpy, this is the only module that you should need to import
directly. The TftpClien... | 30.269231 | 76 | 0.780178 | 122 | 787 | 5.008197 | 0.606557 | 0.10311 | 0.1473 | 0.045827 | 0.0491 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021116 | 0.15756 | 787 | 25 | 77 | 31.48 | 0.900452 | 0.053367 | 0 | 0 | 0 | 0 | 0.076294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.818182 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
fbb7c051a88e4a9846a21b89a38b1fe46a2dce70 | 872 | py | Python | web_programming/get_top_hn_posts.py | NavpreetDevpuri/Python | 7ef5ae66d777e8ed702993c6aa9270e0669cb0c6 | [
"MIT"
] | 145,614 | 2016-07-21T05:40:05.000Z | 2022-03-31T22:17:22.000Z | web_programming/get_top_hn_posts.py | NavpreetDevpuri/Python | 7ef5ae66d777e8ed702993c6aa9270e0669cb0c6 | [
"MIT"
] | 3,987 | 2016-07-28T17:31:25.000Z | 2022-03-30T23:07:46.000Z | web_programming/get_top_hn_posts.py | NavpreetDevpuri/Python | 7ef5ae66d777e8ed702993c6aa9270e0669cb0c6 | [
"MIT"
] | 40,014 | 2016-07-26T15:14:41.000Z | 2022-03-31T22:23:03.000Z | from __future__ import annotations
import requests
def get_hackernews_story(story_id: str) -> dict:
url = f"https://hacker-news.firebaseio.com/v0/item/{story_id}.json?print=pretty"
return requests.get(url).json()
def hackernews_top_stories(max_stories: int = 10) -> list[dict]:
"""
Get the top max_s... | 32.296296 | 84 | 0.723624 | 123 | 872 | 4.813008 | 0.382114 | 0.084459 | 0.135135 | 0.077703 | 0.388514 | 0.101351 | 0 | 0 | 0 | 0 | 0 | 0.007989 | 0.138761 | 872 | 26 | 85 | 33.538462 | 0.780293 | 0.088303 | 0 | 0 | 0 | 0.071429 | 0.21181 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0 | 0.571429 | 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 | 1 | 0 | 0 | 2 |
fbc6811d2e6193b1ba8fcebbe4504924223bc21b | 2,389 | py | Python | data_loader/data_objects/table.py | Soton-Song/valentine | 9a47859f912540cdbe961ed3585201d3accd07be | [
"Apache-2.0"
] | null | null | null | data_loader/data_objects/table.py | Soton-Song/valentine | 9a47859f912540cdbe961ed3585201d3accd07be | [
"Apache-2.0"
] | null | null | null | data_loader/data_objects/table.py | Soton-Song/valentine | 9a47859f912540cdbe961ed3585201d3accd07be | [
"Apache-2.0"
] | null | null | null | import pandas as pd
from data_loader.data_objects.column import Column
class Table:
"""
A class describing a relational table
Attributes
----------
name : str
The name of the table
columns : dict
A dictionary containing column_names and their Column objects
Methods
-... | 26.252747 | 91 | 0.574299 | 283 | 2,389 | 4.756184 | 0.204947 | 0.065379 | 0.037147 | 0.028975 | 0.341753 | 0.341753 | 0.341753 | 0.341753 | 0.341753 | 0.341753 | 0 | 0 | 0.34324 | 2,389 | 90 | 92 | 26.544444 | 0.857871 | 0.507325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.090909 | 0.045455 | 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 | 1 | 0 | 0 | 2 |
fbc688fc690b0417193849b89edd49a119264b3c | 136 | py | Python | Language Proficiency (Python)/Print_Function.py | Muntaha-Islam0019/HackerRank-Solutions | caa687aab67461aba69026d3bdc44b62c1dec1c9 | [
"MIT"
] | null | null | null | Language Proficiency (Python)/Print_Function.py | Muntaha-Islam0019/HackerRank-Solutions | caa687aab67461aba69026d3bdc44b62c1dec1c9 | [
"MIT"
] | null | null | null | Language Proficiency (Python)/Print_Function.py | Muntaha-Islam0019/HackerRank-Solutions | caa687aab67461aba69026d3bdc44b62c1dec1c9 | [
"MIT"
] | null | null | null | if __name__ == '__main__':
n = int(input())
answer = ''
for i in range(n):
answer += str(i + 1)
print(answer)
| 15.111111 | 28 | 0.492647 | 18 | 136 | 3.277778 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011111 | 0.338235 | 136 | 8 | 29 | 17 | 0.644444 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fbd2277b14c3cfcd8c1ecbade05925aa4f76d228 | 1,658 | py | Python | benchexec/__init__.py | tudo-aqua/benchexec | 40f49a99c93b115b4511bd21dfaad9368c9a4286 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | benchexec/__init__.py | tudo-aqua/benchexec | 40f49a99c93b115b4511bd21dfaad9368c9a4286 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | benchexec/__init__.py | tudo-aqua/benchexec | 40f49a99c93b115b4511bd21dfaad9368c9a4286 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # This file is part of BenchExec, a framework for reliable benchmarking:
# https://github.com/sosy-lab/benchexec
#
# SPDX-FileCopyrightText: 2007-2020 Dirk Beyer <https://www.sosy-lab.org>
#
# SPDX-License-Identifier: Apache-2.0
"""Main package of BenchExec.
The following modules are the public entry points:
- benche... | 39.47619 | 99 | 0.783474 | 271 | 1,658 | 4.767528 | 0.516605 | 0.027864 | 0.018576 | 0.017028 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008652 | 0.16345 | 1,658 | 41 | 100 | 40.439024 | 0.922855 | 0.943908 | 0 | 0 | 0 | 0 | 0.08642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
fbdf42fece643859b320ba41a0d53a31da37d5e2 | 650 | py | Python | apps/users/admin.py | mkdir700/Marilyn | 49d735f61914b0e57410ec2d73d583c422bccaa5 | [
"MIT"
] | null | null | null | apps/users/admin.py | mkdir700/Marilyn | 49d735f61914b0e57410ec2d73d583c422bccaa5 | [
"MIT"
] | 4 | 2021-04-08T20:57:24.000Z | 2021-09-22T19:12:13.000Z | apps/users/admin.py | mkdir700/Marilyn | 49d735f61914b0e57410ec2d73d583c422bccaa5 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.contrib.auth.models import User
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from .models import Profile
class ProfileInline(admin.StackedInline):
model = Profile
can_delete = False
class UserAdmin(BaseUserAdmin):
inlines = [ProfileInline]... | 23.214286 | 64 | 0.729231 | 78 | 650 | 6.025641 | 0.474359 | 0.06383 | 0.108511 | 0.089362 | 0.097872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173846 | 650 | 27 | 65 | 24.074074 | 0.875233 | 0 | 0 | 0 | 0 | 0 | 0.046154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0.111111 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
83790839994d6eb02d90c3e879f7b1a0f6ca1459 | 247 | py | Python | examples/pytorch_basic.py | ColinQiyangLi/spaghetti | e46ad43225b00722cea07dbd26cfc93611844907 | [
"MIT"
] | 4 | 2019-05-29T20:06:32.000Z | 2020-01-22T06:30:00.000Z | examples/pytorch_basic.py | ColinQiyangLi/spaghetti | e46ad43225b00722cea07dbd26cfc93611844907 | [
"MIT"
] | null | null | null | examples/pytorch_basic.py | ColinQiyangLi/spaghetti | e46ad43225b00722cea07dbd26cfc93611844907 | [
"MIT"
] | 1 | 2019-10-23T21:20:56.000Z | 2019-10-23T21:20:56.000Z | import torch.nn as nn
import spaghettini
from spaghettini import register, quick_register, load, check
quick_register(nn.Linear)
register("relu")(nn.ReLU)
quick_register(nn.Sequential)
print(check())
net = load("assets/pytorch.yaml")
print(net)
| 20.583333 | 61 | 0.785425 | 36 | 247 | 5.305556 | 0.5 | 0.204188 | 0.157068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093117 | 247 | 11 | 62 | 22.454545 | 0.852679 | 0 | 0 | 0 | 0 | 0 | 0.093117 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.222222 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
8393df9baff6d6a8ce6167c37f7d8fe2f6395282 | 687 | py | Python | smartva/grapher_prep.py | rileyhazard/SmartVA-Analyze-1 | 0573eeff27d03f54e7506db4f1631c0cd9f54bbb | [
"MIT"
] | 4 | 2019-01-23T12:57:47.000Z | 2020-04-18T17:13:08.000Z | smartva/grapher_prep.py | rileyhazard/SmartVA-Analyze-1 | 0573eeff27d03f54e7506db4f1631c0cd9f54bbb | [
"MIT"
] | 4 | 2019-01-09T22:10:07.000Z | 2022-02-16T04:57:06.000Z | smartva/grapher_prep.py | rileyhazard/SmartVA-Analyze-1 | 0573eeff27d03f54e7506db4f1631c0cd9f54bbb | [
"MIT"
] | 11 | 2018-12-11T22:01:13.000Z | 2022-01-07T11:38:02.000Z | import abc
import os
from smartva.data_prep import Prep
class GrapherPrep(Prep):
__metaclass__ = abc.ABCMeta
def __init__(self, working_dir_path):
super(GrapherPrep, self).__init__(working_dir_path)
self.output_dir_path = os.path.join(self.input_dir_path, 'figures')
def run(self):
... | 19.628571 | 75 | 0.672489 | 86 | 687 | 4.930233 | 0.360465 | 0.106132 | 0.091981 | 0.080189 | 0.132075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238719 | 687 | 34 | 76 | 20.205882 | 0.810707 | 0 | 0 | 0.272727 | 0 | 0 | 0.010189 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0.136364 | 0.136364 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
839ba36c12fe15562c28587c849c3cb433af596d | 655 | py | Python | src/genie/libs/parser/ios/show_prefix_list.py | nujo/genieparser | 083b01efc46afc32abe1a1858729578beab50cd3 | [
"Apache-2.0"
] | 204 | 2018-06-27T00:55:27.000Z | 2022-03-06T21:12:18.000Z | src/genie/libs/parser/ios/show_prefix_list.py | nujo/genieparser | 083b01efc46afc32abe1a1858729578beab50cd3 | [
"Apache-2.0"
] | 468 | 2018-06-19T00:33:18.000Z | 2022-03-31T23:23:35.000Z | src/genie/libs/parser/ios/show_prefix_list.py | nujo/genieparser | 083b01efc46afc32abe1a1858729578beab50cd3 | [
"Apache-2.0"
] | 309 | 2019-01-16T20:21:07.000Z | 2022-03-30T12:56:41.000Z | """show_prefix_list.py
IOS parsers for the following show commands:
* show ip prefix-list detail
* show ipv6 prefix-list detail
"""
from genie.libs.parser.iosxe.show_prefix_list import ShowIpPrefixListDetail as ShowIpPrefixListDetail_iosxe,\
ShowIpv6Prefix... | 28.478261 | 111 | 0.709924 | 67 | 655 | 6.820896 | 0.358209 | 0.153173 | 0.175055 | 0.118162 | 0.271335 | 0.271335 | 0.201313 | 0.201313 | 0.201313 | 0.201313 | 0 | 0.013861 | 0.229008 | 655 | 22 | 112 | 29.772727 | 0.891089 | 0.369466 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
83bcf7ad438b68961f01b1aba0266bd5544a166e | 271 | py | Python | card_deck.py | thinkhuman/card-deck | 4a4fb633109f327d00c9d6c5cf82665d67a8cfff | [
"MIT"
] | null | null | null | card_deck.py | thinkhuman/card-deck | 4a4fb633109f327d00c9d6c5cf82665d67a8cfff | [
"MIT"
] | null | null | null | card_deck.py | thinkhuman/card-deck | 4a4fb633109f327d00c9d6c5cf82665d67a8cfff | [
"MIT"
] | null | null | null | """ Card Game
Card Deck is a deck of 52 regular playing cards.
You can shuffle the deck, see cards you've drawn, and draw as many cards as you wish until there are no cards left.
Created: 2016
Author: James Gill
"""
from card_deck import *
Start.start_game()
| 13.55 | 115 | 0.719557 | 48 | 271 | 4.020833 | 0.729167 | 0.082902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028302 | 0.217712 | 271 | 19 | 116 | 14.263158 | 0.882075 | 0.771218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
83bd83834ec9dfd461ae24dcde78fe8ddfb7b03a | 2,896 | py | Python | DataWranglingMongoDB/Lesson1/problem12.py | napjon/moocs_solution | 5c96f43f6cb2ae643f482580446869953a99beb6 | [
"MIT"
] | 13 | 2016-04-29T07:21:44.000Z | 2021-09-29T03:20:51.000Z | DataWranglingMongoDB/Lesson1/problem12.py | napjon/moocs_solution | 5c96f43f6cb2ae643f482580446869953a99beb6 | [
"MIT"
] | 1 | 2017-02-07T07:37:20.000Z | 2017-02-19T08:37:17.000Z | DataWranglingMongoDB/Lesson1/problem12.py | napjon/moocs_solution | 5c96f43f6cb2ae643f482580446869953a99beb6 | [
"MIT"
] | 13 | 2016-01-25T03:23:57.000Z | 2019-10-13T15:29:23.000Z |
# Find the time and value of max load for each of the regions
# COAST, EAST, FAR_WEST, NORTH, NORTH_C, SOUTHERN, SOUTH_C, WEST
# and write the result out in a csv file, using pipe character | as the delimiter.
# An example output can be seen in the "example.csv" file.
import xlrd
import os
import csv
from zipfile imp... | 31.478261 | 99 | 0.587017 | 387 | 2,896 | 4.25323 | 0.403101 | 0.017011 | 0.021871 | 0.029162 | 0.082625 | 0.082625 | 0.054678 | 0.054678 | 0.054678 | 0.054678 | 0 | 0.024225 | 0.287293 | 2,896 | 92 | 100 | 31.478261 | 0.773256 | 0.201312 | 0 | 0.034483 | 0 | 0 | 0.114062 | 0.013496 | 0 | 0 | 0 | 0.01087 | 0.051724 | 0 | null | null | 0.017241 | 0.086207 | null | null | 0.017241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
83d21c2e8c58cc9be69de60ed5f414dde2194ea9 | 161 | py | Python | 2019_3_Cooper_Type/RoboFont/skew_rotate_selection.py | benkiel/python_workshops | 9483c1fd5f7dd87e595289efb7376e1b81ff5ede | [
"MIT"
] | 6 | 2018-03-24T17:31:51.000Z | 2021-11-18T06:02:09.000Z | 2019_3_Cooper_Type/RoboFont/skew_rotate_selection.py | benkiel/python_workshops | 9483c1fd5f7dd87e595289efb7376e1b81ff5ede | [
"MIT"
] | null | null | null | 2019_3_Cooper_Type/RoboFont/skew_rotate_selection.py | benkiel/python_workshops | 9483c1fd5f7dd87e595289efb7376e1b81ff5ede | [
"MIT"
] | null | null | null | font = CurrentFont()
for glyph in font.selection:
glyph = font[name]
glyph.prepareUndo()
glyph.rotate(-5)
glyph.skew(5)
glyph.performUndo()
| 17.888889 | 28 | 0.652174 | 20 | 161 | 5.25 | 0.6 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.217391 | 161 | 8 | 29 | 20.125 | 0.81746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
83d39353f476699f34f4812423eff8e5235dce6b | 472 | py | Python | fyle/platform/apis/v1beta/admin/expense_fields.py | fylein/fyle-platform-sdk-py | dcf0f1de25e95e41ec213dc97c09196203090d01 | [
"MIT"
] | 1 | 2022-03-08T09:43:30.000Z | 2022-03-08T09:43:30.000Z | fyle/platform/apis/v1beta/admin/expense_fields.py | fylein/fyle-platform-sdk-py | dcf0f1de25e95e41ec213dc97c09196203090d01 | [
"MIT"
] | 2 | 2021-11-22T09:12:12.000Z | 2022-03-17T10:13:40.000Z | fyle/platform/apis/v1beta/admin/expense_fields.py | fylein/fyle-platform-sdk-py | dcf0f1de25e95e41ec213dc97c09196203090d01 | [
"MIT"
] | null | null | null | """
V1 Beta Admin Expense Fields
"""
from ....internals.list_all_resources import ListAllResources
from ....internals.list_resources import ListResources
from ....internals.post_resources import PostResources
class ExpenseFields(ListResources, ListAllResources, PostResources):
"""Class for Expense Fields APIs.""... | 27.764706 | 69 | 0.760593 | 50 | 472 | 6.88 | 0.5 | 0.188953 | 0.098837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002445 | 0.133475 | 472 | 16 | 70 | 29.5 | 0.838631 | 0.125 | 0 | 0 | 0 | 0 | 0.0375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
83dc71ed96000b2006c6dfb5b46bb23a1a40e0c6 | 1,222 | py | Python | search.py | digituoficial/scripts | a380e8034dcb9af31439b8c580916db6c47572dd | [
"MIT"
] | null | null | null | search.py | digituoficial/scripts | a380e8034dcb9af31439b8c580916db6c47572dd | [
"MIT"
] | null | null | null | search.py | digituoficial/scripts | a380e8034dcb9af31439b8c580916db6c47572dd | [
"MIT"
] | null | null | null | import urllib3
import json
TOKEN = ''
AUTHORIZATION = ''
http = urllib3.PoolManager()
def informacoes_basicas_aluno(matricula):
global TOKEN, http
r = http.request(
'GET',
'https://suap.ifrn.edu.br/api/v2/edu/alunos/{}/'.format(matricula),
headers={'Accept': 'application/json',
... | 24.938776 | 79 | 0.569558 | 131 | 1,222 | 5.244275 | 0.312977 | 0.061135 | 0.065502 | 0.069869 | 0.749636 | 0.749636 | 0.749636 | 0.687045 | 0.643377 | 0.474527 | 0 | 0.00906 | 0.277414 | 1,222 | 48 | 80 | 25.458333 | 0.768969 | 0 | 0 | 0.513514 | 0 | 0 | 0.238134 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0 | 0.054054 | 0 | 0.216216 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
83e474f9b66277d0733c3fa1c0f8e34f4faa81a5 | 3,229 | py | Python | flask_blog/flaskblog/users/forms.py | vijay0707/Flask-Blog | ce021f4e0b2cd5ca8c239a74a7a46ddb49505085 | [
"MIT"
] | null | null | null | flask_blog/flaskblog/users/forms.py | vijay0707/Flask-Blog | ce021f4e0b2cd5ca8c239a74a7a46ddb49505085 | [
"MIT"
] | null | null | null | flask_blog/flaskblog/users/forms.py | vijay0707/Flask-Blog | ce021f4e0b2cd5ca8c239a74a7a46ddb49505085 | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from flask_wtf.file import FileField, FileAllowed
from wtforms import StringField, PasswordField, SubmitField, BooleanField, validators
from wtforms.validators import DataRequired, Length, Email, EqualTo, ValidationError
from flask_login import current_user
from flaskblog.models imp... | 44.232877 | 146 | 0.681945 | 333 | 3,229 | 6.558559 | 0.246246 | 0.115842 | 0.120879 | 0.043498 | 0.684066 | 0.641941 | 0.641941 | 0.638278 | 0.603022 | 0.562729 | 0 | 0.002346 | 0.207804 | 3,229 | 72 | 147 | 44.847222 | 0.851446 | 0 | 0 | 0.490196 | 0 | 0 | 0.159012 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098039 | false | 0.176471 | 0.117647 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
86068b7db959c0cfb043f14e53bb4f0639f39b3d | 861 | py | Python | data/test_data.py | faab5/errortools | b3d8972d884207aa8ab89dac98c23fd5f46a0c65 | [
"MIT"
] | 17 | 2019-04-20T18:00:09.000Z | 2021-03-07T15:37:08.000Z | data/test_data.py | RoyMachineLearning/lofo-importance | 6de7cfa5a780a7620d392102bbe12fc9ffc814ec | [
"MIT"
] | 1 | 2019-04-17T15:00:15.000Z | 2019-04-17T15:00:15.000Z | data/test_data.py | RoyMachineLearning/lofo-importance | 6de7cfa5a780a7620d392102bbe12fc9ffc814ec | [
"MIT"
] | 3 | 2019-05-19T13:43:41.000Z | 2019-11-17T16:29:52.000Z | import numpy as np
import pandas as pd
def _to_binary(target):
return (target > target.median()).astype(int)
def generate_test_data(data_size):
df = pd.DataFrame()
np.random.seed(0)
df["A"] = np.random.rand(data_size)
df["B"] = np.random.rand(data_size)
df["C"] = np.random.rand(data_size)
... | 27.774194 | 84 | 0.631823 | 134 | 861 | 3.873134 | 0.283582 | 0.154143 | 0.17341 | 0.184971 | 0.531792 | 0.458574 | 0.146435 | 0.146435 | 0.146435 | 0 | 0 | 0.014065 | 0.174216 | 861 | 30 | 85 | 28.7 | 0.715893 | 0 | 0 | 0.190476 | 1 | 0 | 0.118467 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.095238 | 0.047619 | 0.380952 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
860758372822a9f817f8c7059f6c2b8ccd2cbdd0 | 12,050 | py | Python | app_server/service/auth.py | ntkleynhans/stp-app | 564b73ecb0f0fadae46bbcd50abbb086ea0c2a61 | [
"Apache-2.0"
] | null | null | null | app_server/service/auth.py | ntkleynhans/stp-app | 564b73ecb0f0fadae46bbcd50abbb086ea0c2a61 | [
"Apache-2.0"
] | null | null | null | app_server/service/auth.py | ntkleynhans/stp-app | 564b73ecb0f0fadae46bbcd50abbb086ea0c2a61 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""TODO:
-- This module (and admin.py) needs some cleaning up: refactoring
similar to projects.py with ProjectsDB and style of SQLite
usage. Currently only authenticate() has been separated out.
-- Reset password needs to send user an email.
"""
fr... | 43.818182 | 191 | 0.592116 | 1,329 | 12,050 | 5.285177 | 0.218962 | 0.018793 | 0.02406 | 0.019647 | 0.468109 | 0.407603 | 0.3918 | 0.373576 | 0.34197 | 0.286874 | 0 | 0.003991 | 0.293029 | 12,050 | 274 | 192 | 43.978102 | 0.820519 | 0.141162 | 0 | 0.394737 | 0 | 0.015789 | 0.232286 | 0 | 0 | 0 | 0 | 0.010949 | 0 | 1 | 0.057895 | false | 0.1 | 0.084211 | 0.005263 | 0.2 | 0.063158 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f7a6fe6a05c9dbe83147fb2551cb21a55fc19ab6 | 800 | py | Python | backend/appengine/routes/alunos/admin/new.py | SamaraCardoso27/eMakeup | 02c3099aca85b5f54214c3a32590e80eb61621e7 | [
"MIT"
] | null | null | null | backend/appengine/routes/alunos/admin/new.py | SamaraCardoso27/eMakeup | 02c3099aca85b5f54214c3a32590e80eb61621e7 | [
"MIT"
] | null | null | null | backend/appengine/routes/alunos/admin/new.py | SamaraCardoso27/eMakeup | 02c3099aca85b5f54214c3a32590e80eb61621e7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from config.template_middleware import TemplateResponse
from gaebusiness.business import CommandExecutionException
from tekton import router
from gaecookie.decorator import no_csrf
from aluno_app import facade
from routes.alunos import adm... | 29.62963 | 89 | 0.74 | 96 | 800 | 5.958333 | 0.479167 | 0.020979 | 0.041958 | 0.066434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001493 | 0.1625 | 800 | 26 | 90 | 30.769231 | 0.852239 | 0.02625 | 0 | 0 | 0 | 0 | 0.082474 | 0.056701 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.368421 | 0.052632 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
f7ce4aa0b58ae5c6b290e512af65b5444cbf5e18 | 456 | py | Python | tests/plugins/test_egame.py | xcgx/streamlink | b635e0d9d0fe9363817a96ec7d31faefed95cb57 | [
"BSD-2-Clause"
] | 10 | 2017-04-10T18:25:41.000Z | 2021-09-15T20:14:58.000Z | tests/plugins/test_egame.py | xcgx/streamlink | b635e0d9d0fe9363817a96ec7d31faefed95cb57 | [
"BSD-2-Clause"
] | 9 | 2020-04-04T09:49:52.000Z | 2020-04-21T01:52:02.000Z | tests/plugins/test_egame.py | xcgx/streamlink | b635e0d9d0fe9363817a96ec7d31faefed95cb57 | [
"BSD-2-Clause"
] | 12 | 2022-01-30T23:34:18.000Z | 2022-03-26T17:09:43.000Z | from streamlink.plugins.egame import Egame
from tests.plugins import PluginCanHandleUrl
class TestPluginCanHandleUrlEgame(PluginCanHandleUrl):
__plugin__ = Egame
should_match = [
'https://egame.qq.com/497383565',
]
should_not_match = [
'https://egame.qq.com/',
'https://egame.... | 25.333333 | 59 | 0.66886 | 49 | 456 | 6.081633 | 0.489796 | 0.167785 | 0.201342 | 0.251678 | 0.134228 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065574 | 0.197368 | 456 | 17 | 60 | 26.823529 | 0.748634 | 0 | 0 | 0 | 0 | 0 | 0.370614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f7d1295fe95859bd4903b5063b32b029c10d229a | 545 | py | Python | ex64 somar numeros.py | joaoschweikart/python_projects | a30361551ec71ac3bef6d38e4b6ffc7bad21f1cc | [
"MIT"
] | null | null | null | ex64 somar numeros.py | joaoschweikart/python_projects | a30361551ec71ac3bef6d38e4b6ffc7bad21f1cc | [
"MIT"
] | null | null | null | ex64 somar numeros.py | joaoschweikart/python_projects | a30361551ec71ac3bef6d38e4b6ffc7bad21f1cc | [
"MIT"
] | null | null | null | print('=-'*50)
print('-----------\033[33mLEITOR DE NÚMEROS INTEIROS:\033[m------------')
print('O PROGRAMA VAI SOMAR TODOS OS NÚMEROS DIGITADOS E SÓ VAI PARAR QUANDO O USUÁRIO DIGITAR O VALOR 999.')
print('=-'*50)
n = 0
soma = 0
cont = -1
while n != 999:
soma = soma + n
cont = cont + 1
n = int(input('Digite... | 34.0625 | 112 | 0.656881 | 86 | 545 | 4.162791 | 0.546512 | 0.039106 | 0.100559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055804 | 0.177982 | 545 | 15 | 113 | 36.333333 | 0.743304 | 0 | 0 | 0.153846 | 0 | 0 | 0.639042 | 0.095764 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.461538 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
f7d5fbf0a905c3ef62480f3269be6e612eaa9222 | 869 | py | Python | collision/common.py | masskonfuzion/pymkfgame | 20c3c0be34820a71d2ebf3670624736c151c1a7b | [
"Apache-2.0"
] | null | null | null | collision/common.py | masskonfuzion/pymkfgame | 20c3c0be34820a71d2ebf3670624736c151c1a7b | [
"Apache-2.0"
] | null | null | null | collision/common.py | masskonfuzion/pymkfgame | 20c3c0be34820a71d2ebf3670624736c151c1a7b | [
"Apache-2.0"
] | null | null | null | #############################################################################
# Copyright 2016 Mass KonFuzion
#
# 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/l... | 43.45 | 92 | 0.613349 | 114 | 869 | 4.675439 | 0.719298 | 0.11257 | 0.04878 | 0.060038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012295 | 0.157652 | 869 | 19 | 93 | 45.736842 | 0.715847 | 0.737629 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f7d6883712a548a1d30e8b43a3adaadaef64d7d9 | 265 | py | Python | StockZ/modules/grabber.py | KKGPW/KPW-StockZ | a63a49d5459ade606d57cd33433440782cd50fb7 | [
"MIT"
] | null | null | null | StockZ/modules/grabber.py | KKGPW/KPW-StockZ | a63a49d5459ade606d57cd33433440782cd50fb7 | [
"MIT"
] | null | null | null | StockZ/modules/grabber.py | KKGPW/KPW-StockZ | a63a49d5459ade606d57cd33433440782cd50fb7 | [
"MIT"
] | null | null | null | import yfinance
class Stock:
__stock_data = None
def __init__(self):
pass
def grab(self):
self.__stock_data = yfinance.download(tickers='BASFY', period='1d', interval='1m')
def to_console(self):
print(self.__stock_data)
| 17.666667 | 90 | 0.641509 | 33 | 265 | 4.727273 | 0.636364 | 0.173077 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01 | 0.245283 | 265 | 14 | 91 | 18.928571 | 0.77 | 0 | 0 | 0 | 0 | 0 | 0.033962 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.111111 | 0.111111 | 0 | 0.666667 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f7e35cc898278769e25e79a2be4201293c5018fe | 1,293 | py | Python | Part 3/Chapter 06/Exercises/exercise_15.py | phuycke/Practice-of-computing-using-Python | 9e477bcaecb0e447dfa7184d2071ca338801c86f | [
"MIT"
] | 1 | 2019-08-13T11:12:59.000Z | 2019-08-13T11:12:59.000Z | Part 3/Chapter 06/Exercises/exercise_15.py | phuycke/Practice-of-computing-using-Python | 9e477bcaecb0e447dfa7184d2071ca338801c86f | [
"MIT"
] | null | null | null | Part 3/Chapter 06/Exercises/exercise_15.py | phuycke/Practice-of-computing-using-Python | 9e477bcaecb0e447dfa7184d2071ca338801c86f | [
"MIT"
] | 1 | 2021-05-16T11:42:19.000Z | 2021-05-16T11:42:19.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@author: Pieter Huycke
email: pieter.huycke@ugent.be
GitHub: phuycke
"""
#%%
def message_check(message = str):
if len(message) < 160:
return message
else:
return message[:160]
longer = message_check("In certain chat programs or ... | 30.785714 | 487 | 0.699923 | 199 | 1,293 | 4.502513 | 0.39196 | 0.040179 | 0.049107 | 0.09375 | 0.330357 | 0.330357 | 0.256696 | 0.200893 | 0.200893 | 0.200893 | 0 | 0.02947 | 0.212684 | 1,293 | 41 | 488 | 31.536585 | 0.850688 | 0.092034 | 0 | 0.117647 | 0 | 0.117647 | 0.609294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.058824 | 0 | 0 | 0.235294 | 0.176471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
79045cac6b1256f61939708bfa576d89374ae0e4 | 2,243 | py | Python | src/models.py | DhenryD/CrowdCount-mcnn | a44bcbfd25ca681f7b57e2f92f10b06f602dd93f | [
"MIT"
] | 2 | 2019-06-11T02:16:01.000Z | 2019-09-20T12:01:12.000Z | src/models.py | DhenryD/CrowdCount-mcnn | a44bcbfd25ca681f7b57e2f92f10b06f602dd93f | [
"MIT"
] | 1 | 2019-05-16T08:05:03.000Z | 2019-05-16T08:09:53.000Z | src/models.py | DhenryD/CrowdCount-mcnn | a44bcbfd25ca681f7b57e2f92f10b06f602dd93f | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
from src.network import Conv2d
class MCNN(nn.Module):
def __init__(self, bn=False):
super(MCNN, self).__init__()
self.branch1 = nn.Sequential(Conv2d(1, 16, 9, same_padding=True, bn=bn),
nn.MaxPool2d(2),
... | 45.77551 | 81 | 0.436469 | 261 | 2,243 | 3.636015 | 0.214559 | 0.19705 | 0.268704 | 0.304531 | 0.551106 | 0.551106 | 0.31823 | 0.31823 | 0.31823 | 0.240253 | 0 | 0.105263 | 0.449398 | 2,243 | 48 | 82 | 46.729167 | 0.663158 | 0 | 0 | 0.205128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.076923 | 0 | 0.179487 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
79091091c4e06730ed2243a54682e0bb34a550b5 | 329 | py | Python | courier/management/commands/clear_old_admin_logs.py | HelloMelanieC/FiveUp | ab97d311f163b09146fe330e4360d8e75d769f95 | [
"MIT"
] | 12 | 2017-09-10T01:43:42.000Z | 2020-09-20T01:17:20.000Z | courier/management/commands/clear_old_admin_logs.py | HelloMelanieC/FiveUp | ab97d311f163b09146fe330e4360d8e75d769f95 | [
"MIT"
] | 22 | 2016-12-26T21:46:10.000Z | 2022-02-10T08:01:52.000Z | courier/management/commands/clear_old_admin_logs.py | HelloMelanieC/FiveUp | ab97d311f163b09146fe330e4360d8e75d769f95 | [
"MIT"
] | 4 | 2017-08-24T16:01:37.000Z | 2019-02-14T23:50:17.000Z | from django.core.management.base import BaseCommand
from django.contrib.admin.models import LogEntry
def clear_old_admin_logs():
logs = LogEntry.objects.all()
for i in range(2000, len(logs)):
logs[i].delete()
class Command(BaseCommand):
def handle(self, *args, **options):
clear_old_admi... | 21.933333 | 51 | 0.705167 | 45 | 329 | 5.022222 | 0.666667 | 0.088496 | 0.115044 | 0.150442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014815 | 0.179331 | 329 | 14 | 52 | 23.5 | 0.822222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
791bd4465beb0bc0a3ad7b1755d02ff297e944a5 | 809 | py | Python | backend/tournesol/entities/video.py | iamnkc/tournesol | 4a09985f494577917c357783a37dfae02c57fd82 | [
"CC0-1.0"
] | null | null | null | backend/tournesol/entities/video.py | iamnkc/tournesol | 4a09985f494577917c357783a37dfae02c57fd82 | [
"CC0-1.0"
] | null | null | null | backend/tournesol/entities/video.py | iamnkc/tournesol | 4a09985f494577917c357783a37dfae02c57fd82 | [
"CC0-1.0"
] | null | null | null | from django.db.models import Q
from .base import EntityType
TYPE_VIDEO = "video"
class VideoEntity(EntityType):
name = TYPE_VIDEO
@classmethod
def filter_date_lte(cls, qs, dt):
return qs.filter(publication_date__lte=dt)
@classmethod
def filter_date_gte(cls, qs, dt):
return qs.f... | 26.966667 | 82 | 0.673671 | 106 | 809 | 4.924528 | 0.5 | 0.08046 | 0.114943 | 0.091954 | 0.137931 | 0.137931 | 0.137931 | 0.137931 | 0 | 0 | 0 | 0.001645 | 0.248455 | 809 | 29 | 83 | 27.896552 | 0.856908 | 0.173053 | 0 | 0.157895 | 0 | 0 | 0.007508 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.157895 | 0.105263 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
7925afe3087c75241ed4dc829aa06bb07dfe7f44 | 1,980 | py | Python | ingestor/gps.py | jkennedy-usgs/sgp-utils | cf37b56db7b85f854e5c38eb1661ce86e25c880b | [
"CC0-1.0"
] | 4 | 2018-12-10T15:39:39.000Z | 2020-10-21T19:10:24.000Z | ingestor/gps.py | jkennedy-usgs/sgp-utils | cf37b56db7b85f854e5c38eb1661ce86e25c880b | [
"CC0-1.0"
] | 9 | 2020-04-03T19:30:55.000Z | 2021-08-19T22:46:04.000Z | ingestor/gps.py | jkennedy-usgs/sgp-utils | cf37b56db7b85f854e5c38eb1661ce86e25c880b | [
"CC0-1.0"
] | 1 | 2019-02-04T21:23:35.000Z | 2019-02-04T21:23:35.000Z | import os
import subprocess
import georinex as gr
import datetime
# For naming Rinex files
alphabet = 'abcdefghijklmnopqrstuvwx'
def convert_T01_to_dat(fullfile):
os.system('runpkr00.exe -d "{}"'.format(fullfile))
def convert_dat_to_rinex(fullfile):
os.system('teqc.exe -tr d "{}" > "{}"'.format(fullfile.repl... | 28.695652 | 118 | 0.614141 | 243 | 1,980 | 4.872428 | 0.378601 | 0.074324 | 0.043919 | 0.048142 | 0.070101 | 0.047297 | 0 | 0 | 0 | 0 | 0 | 0.012228 | 0.256566 | 1,980 | 68 | 119 | 29.117647 | 0.79212 | 0.062121 | 0 | 0.156863 | 0 | 0 | 0.076093 | 0.012952 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.078431 | 0.117647 | 0.490196 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
792c80e1f42141df0a26adc77e248fb2ec6b1bd8 | 554 | py | Python | Trakttv.bundle/Contents/Libraries/Shared/plex_database/models/directory.py | disrupted/Trakttv.bundle | 24712216c71f3b22fd58cb5dd89dad5bb798ed60 | [
"RSA-MD"
] | 1,346 | 2015-01-01T14:52:24.000Z | 2022-03-28T12:50:48.000Z | Trakttv.bundle/Contents/Libraries/Shared/plex_database/models/directory.py | alcroito/Plex-Trakt-Scrobbler | 4f83fb0860dcb91f860d7c11bc7df568913c82a6 | [
"RSA-MD"
] | 474 | 2015-01-01T10:27:46.000Z | 2022-03-21T12:26:16.000Z | Trakttv.bundle/Contents/Libraries/Shared/plex_database/models/directory.py | alcroito/Plex-Trakt-Scrobbler | 4f83fb0860dcb91f860d7c11bc7df568913c82a6 | [
"RSA-MD"
] | 191 | 2015-01-02T18:27:22.000Z | 2022-03-29T10:49:48.000Z | from plex_database.core import db
from plex_database.models.library_section import LibrarySection
from peewee import *
class Directory(Model):
class Meta:
database = db
db_table = 'directories'
library_section = ForeignKeyField(LibrarySection, null=True, related_name='directories')
paren... | 27.7 | 92 | 0.743682 | 64 | 554 | 6.265625 | 0.5 | 0.119701 | 0.142145 | 0.17207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169675 | 554 | 19 | 93 | 29.157895 | 0.871739 | 0 | 0 | 0 | 0 | 0 | 0.061372 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.230769 | 0 | 0.846154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
792dc7b112735c4772c586968ff183a65390aa4b | 277 | py | Python | mytest/werkzeug_test.py | liangjie18430/flask_test_myself | 8923e058d834d6ab7326f869b945601c13674105 | [
"BSD-3-Clause"
] | null | null | null | mytest/werkzeug_test.py | liangjie18430/flask_test_myself | 8923e058d834d6ab7326f869b945601c13674105 | [
"BSD-3-Clause"
] | null | null | null | mytest/werkzeug_test.py | liangjie18430/flask_test_myself | 8923e058d834d6ab7326f869b945601c13674105 | [
"BSD-3-Clause"
] | null | null | null | from werkzeug.wrappers import Request,Response
def application(environ,start_response):
request=Request(environ=environ)
text = 'Hello %s!'%request.args.get('name','world')
response = Response(text,mimetype='text/plain')
return response(environ,start_response) | 39.571429 | 55 | 0.754513 | 34 | 277 | 6.088235 | 0.588235 | 0.115942 | 0.193237 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115523 | 277 | 7 | 56 | 39.571429 | 0.844898 | 0 | 0 | 0 | 0 | 0 | 0.100719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
792f9b7255e56befc0f5ae98e897ae34661070fe | 632 | py | Python | src/part1_coding/t2_oop/decorators/closure.py | paulbodean88/py-test-automation-course | f7e5fc0416f494356817c27e7b4e212f3884ae07 | [
"MIT"
] | 1 | 2022-03-25T10:19:05.000Z | 2022-03-25T10:19:05.000Z | src/part1_coding/t2_oop/decorators/closure.py | paulbodean88/py-test-automation-course | f7e5fc0416f494356817c27e7b4e212f3884ae07 | [
"MIT"
] | null | null | null | src/part1_coding/t2_oop/decorators/closure.py | paulbodean88/py-test-automation-course | f7e5fc0416f494356817c27e7b4e212f3884ae07 | [
"MIT"
] | null | null | null | """
"""
import psutil
def get_virtual_memory():
print(psutil.cpu_count())
return psutil.virtual_memory().percent
mem = get_virtual_memory()
print(mem)
# nested function
def print_test_logs(msg):
def logger():
print(f'Logging memory data {msg}')
def test():
print('a')
... | 14.044444 | 98 | 0.639241 | 87 | 632 | 4.425287 | 0.37931 | 0.116883 | 0.168831 | 0.109091 | 0.267532 | 0.267532 | 0.166234 | 0 | 0 | 0 | 0 | 0.010373 | 0.237342 | 632 | 44 | 99 | 14.363636 | 0.788382 | 0.075949 | 0 | 0.095238 | 0 | 0 | 0.185315 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.047619 | 0 | 0.428571 | 0.47619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 2 |
79314e27555e0cfca1c6a1c09426dba672a91a63 | 1,745 | py | Python | framework/probes/probe_sar.py | ucx-code/ucXception | 6b1f4fe4aa53a28e87584d07f540095c20ee50e9 | [
"BSD-3-Clause"
] | 2 | 2020-08-11T10:54:56.000Z | 2021-03-22T14:54:19.000Z | framework/probes/probe_sar.py | ucx-code/ucXception | 6b1f4fe4aa53a28e87584d07f540095c20ee50e9 | [
"BSD-3-Clause"
] | null | null | null | framework/probes/probe_sar.py | ucx-code/ucXception | 6b1f4fe4aa53a28e87584d07f540095c20ee50e9 | [
"BSD-3-Clause"
] | null | null | null | import subprocess
from threading import Timer
import signal
#from pprint import pprint
import sys
import random
import time
import os
from probes.base_probe import Base_Probe
from core import utils
import logging
logger = logging.getLogger(__name__)
class Probe_Sar(Base_Probe):
"""SAR probe. Obtains information abou... | 37.12766 | 170 | 0.725501 | 261 | 1,745 | 4.670498 | 0.35249 | 0.07219 | 0.073831 | 0.068909 | 0.240361 | 0.150943 | 0.096801 | 0.096801 | 0.096801 | 0.045939 | 0 | 0.000661 | 0.132378 | 1,745 | 46 | 171 | 37.934783 | 0.804491 | 0.308883 | 0 | 0 | 0 | 0 | 0.104866 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.333333 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
7938c83377b220cc88fd9e0f56e88cb117c0ab14 | 598 | py | Python | src/StockSight/Initializer/ElasticSearch.py | return-main/stocksight | b985410485d515027bf6735d1215476c2f604bfc | [
"Apache-2.0"
] | 3 | 2019-09-21T21:23:45.000Z | 2019-11-04T21:52:27.000Z | src/StockSight/Initializer/ElasticSearch.py | return-main/stocksight | b985410485d515027bf6735d1215476c2f604bfc | [
"Apache-2.0"
] | null | null | null | src/StockSight/Initializer/ElasticSearch.py | return-main/stocksight | b985410485d515027bf6735d1215476c2f604bfc | [
"Apache-2.0"
] | 3 | 2021-02-06T18:16:43.000Z | 2021-02-26T18:19:44.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Global Elastic Search Handler
Copyright (C) Chris Park 2018-2019
Copyright (C) Allen (Jian Feng) Xie 2019
stocksight is released under the Apache 2.0 license. See
LICENSE for the full license text.
"""
from elasticsearch import Elasticsearch
from StockSight.Initializ... | 31.473684 | 110 | 0.717391 | 73 | 598 | 5.863014 | 0.69863 | 0.17757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029183 | 0.140468 | 598 | 18 | 111 | 33.222222 | 0.803502 | 0.458194 | 0 | 0 | 0 | 0 | 0.254777 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
f700f8db77ef5e63af48fd81de77ff3b4c152594 | 2,147 | py | Python | avijst/tensorflow/data.py | huylb314/AVIAD_AVIJST | bf8e0617849b4f8f4b95ea345be1565ea063ee38 | [
"MIT"
] | 4 | 2021-03-17T08:36:52.000Z | 2022-03-31T10:32:18.000Z | avijst/tensorflow/data.py | huylb314/AVIAD_AVIJST | bf8e0617849b4f8f4b95ea345be1565ea063ee38 | [
"MIT"
] | null | null | null | avijst/tensorflow/data.py | huylb314/AVIAD_AVIJST | bf8e0617849b4f8f4b95ea345be1565ea063ee38 | [
"MIT"
] | null | null | null | import numpy as np
from sklearn import metrics
import math
from keras.preprocessing import sequence
from keras.preprocessing.text import Tokenizer
from typing import *
# fastai utility
def listify(o):
if o is None: return []
if isinstance(o, list): return o
if isinstance(o, str): return [o]
if isinstan... | 33.546875 | 100 | 0.640429 | 321 | 2,147 | 4.021807 | 0.255452 | 0.023238 | 0.042603 | 0.034857 | 0.179706 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003054 | 0.237541 | 2,147 | 64 | 101 | 33.546875 | 0.785583 | 0.006521 | 0 | 0.089286 | 0 | 0 | 0.002814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.107143 | 0.071429 | 0.589286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f705902ea07b23776e92a0707bf931cd4228f88f | 489 | py | Python | src/doing/pr/open_pr.py | tijlk/doing-cli | 048e04aaa9f3f99f1a8013fe4cd8a488180f5f2b | [
"MIT"
] | 12 | 2021-03-23T13:27:33.000Z | 2022-02-20T05:44:56.000Z | src/doing/pr/open_pr.py | tijlk/doing-cli | 048e04aaa9f3f99f1a8013fe4cd8a488180f5f2b | [
"MIT"
] | 63 | 2021-03-23T12:54:00.000Z | 2022-02-24T15:12:45.000Z | src/doing/pr/open_pr.py | tijlk/doing-cli | 048e04aaa9f3f99f1a8013fe4cd8a488180f5f2b | [
"MIT"
] | 3 | 2021-04-09T14:40:23.000Z | 2021-07-15T13:26:40.000Z | import click
from doing.utils import get_config
from doing.utils import get_repo_name
from typing import Union
def cmd_open_pr(pullrequest_id: Union[str, int]) -> None:
"""
Open a specific PULLREQUEST_ID. '!' prefix is allowed.
"""
pullrequest_id = str(pullrequest_id).lstrip("!").strip()
project ... | 28.764706 | 97 | 0.721881 | 64 | 489 | 5.28125 | 0.5 | 0.192308 | 0.08284 | 0.118343 | 0.136095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147239 | 489 | 16 | 98 | 30.5625 | 0.810552 | 0.110429 | 0 | 0 | 0 | 0 | 0.229117 | 0.181384 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.444444 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
f70f5789ebf11040a90ecc0c05c6851ad4bc8bd0 | 1,240 | py | Python | setup.py | sliderSun/scrapy-djangoitem | f68e60806d6d0175b88943adcac78e002f17a43c | [
"BSD-3-Clause"
] | 509 | 2015-08-11T23:04:42.000Z | 2022-02-16T01:33:55.000Z | setup.py | sliderSun/scrapy-djangoitem | f68e60806d6d0175b88943adcac78e002f17a43c | [
"BSD-3-Clause"
] | 19 | 2015-08-06T04:06:28.000Z | 2021-09-28T00:38:50.000Z | setup.py | sliderSun/scrapy-djangoitem | f68e60806d6d0175b88943adcac78e002f17a43c | [
"BSD-3-Clause"
] | 107 | 2015-09-03T20:21:56.000Z | 2021-09-28T14:20:49.000Z | from setuptools import setup, find_packages
setup(
name='scrapy-djangoitem',
version='1.1.1',
url='https://github.com/scrapy-plugins/scrapy-djangoitem',
description='Scrapy extension to write scraped items using Django models',
long_description=open('README.rst').read(),
author='Scrapy develop... | 34.444444 | 78 | 0.607258 | 124 | 1,240 | 6.016129 | 0.604839 | 0.178284 | 0.234584 | 0.13941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019068 | 0.23871 | 1,240 | 35 | 79 | 35.428571 | 0.771186 | 0 | 0 | 0.060606 | 0 | 0 | 0.557258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.030303 | 0 | 0.030303 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f7206d8f4f866ba92ed05ffaf316f027c8f23f04 | 405 | py | Python | psqlflow/printers/graph_printer.py | liuhenry/psqlflow | a4d39794d437a16fbf89582d3f7b8e7425bdfca5 | [
"MIT"
] | 3 | 2016-12-11T19:50:44.000Z | 2018-05-24T13:52:09.000Z | psqlflow/printers/graph_printer.py | liuhenry/psqlflow | a4d39794d437a16fbf89582d3f7b8e7425bdfca5 | [
"MIT"
] | null | null | null | psqlflow/printers/graph_printer.py | liuhenry/psqlflow | a4d39794d437a16fbf89582d3f7b8e7425bdfca5 | [
"MIT"
] | null | null | null | import pygraphviz as pgv
from .printer import Printer
class GraphPrinter(Printer):
"""
Exports flows to graphviz
"""
def __init__(self, *args, **kwargs):
super(GraphPrinter, self).__init__(*args, **kwargs)
def new_obj(self):
return pgv.AGraph(strict=False, directed=True, rankdir='... | 21.315789 | 68 | 0.644444 | 51 | 405 | 4.901961 | 0.666667 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22963 | 405 | 18 | 69 | 22.5 | 0.801282 | 0.061728 | 0 | 0 | 0 | 0 | 0.00551 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.2 | 0.1 | 0.7 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f723cba44ec9074d909b91e8b3bb8d8e84df91e5 | 506 | py | Python | tests/test_base.py | not-nexus/shelf | ea59703082402ad3b6454482f0487418295fbd19 | [
"MIT"
] | 4 | 2016-11-07T13:02:18.000Z | 2019-09-03T02:04:05.000Z | tests/test_base.py | not-nexus/shelf | ea59703082402ad3b6454482f0487418295fbd19 | [
"MIT"
] | 21 | 2016-11-30T20:44:52.000Z | 2017-05-02T15:38:56.000Z | tests/test_base.py | not-nexus/shelf | ea59703082402ad3b6454482f0487418295fbd19 | [
"MIT"
] | 2 | 2017-01-24T14:36:04.000Z | 2020-01-13T16:10:05.000Z | import pyproctor
class TestBase(pyproctor.TestBase):
@classmethod
def setUpClass(cls):
"""
This exists to make sure that no matter what, tests
will log on stdout. Every call to basicConfig after
this point will be a no-op
"""
# AGI-731
# See... | 25.3 | 64 | 0.561265 | 55 | 506 | 5.163636 | 0.854545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018576 | 0.36166 | 506 | 19 | 65 | 26.631579 | 0.860681 | 0.531621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f72a9b93aae1aefa7bf9852e1961a1a1a0e15237 | 667 | py | Python | src/actuariat_python/data/data_population/__init__.py | Pandinosaurus/actuariat_python | 77533a75fcc63a5a7ebca664a19a24c9439670ee | [
"MIT"
] | 5 | 2017-03-13T15:58:40.000Z | 2021-02-03T12:52:58.000Z | src/actuariat_python/data/data_population/__init__.py | Pandinosaurus/actuariat_python | 77533a75fcc63a5a7ebca664a19a24c9439670ee | [
"MIT"
] | 13 | 2015-06-14T22:01:37.000Z | 2021-01-05T13:57:00.000Z | src/actuariat_python/data/data_population/__init__.py | Pandinosaurus/actuariat_python | 77533a75fcc63a5a7ebca664a19a24c9439670ee | [
"MIT"
] | 9 | 2017-01-15T15:06:55.000Z | 2022-01-18T20:42:48.000Z | # -*- coding: utf-8 -*-
"""
@file
@brief Data from INSEE
**Source**
* ``irsocsd2014_G10.xlsx``: ?
* ``fm-fecondite-age-mere.csv``: `INSEE Bilan Démographique 2016 <https://www.insee.fr/fr/statistiques/1892259?sommaire=1912926>`_
* ``pop-totale-france.xlsx``: `INED Population totale
<https://www.ined.fr/fr/tout-savo... | 44.466667 | 130 | 0.724138 | 94 | 667 | 5.021277 | 0.585106 | 0.110169 | 0.025424 | 0.042373 | 0.364407 | 0.364407 | 0.364407 | 0.364407 | 0.364407 | 0.364407 | 0 | 0.060163 | 0.077961 | 667 | 14 | 131 | 47.642857 | 0.707317 | 0.98051 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f73eb32cf11821a8db22abbfaf4672fb58c3ceac | 29,274 | py | Python | bananas/testing/learners.py | owahltinez/bananas | 4d37af1713b7f166ead3459a7004748f954d336e | [
"MIT"
] | null | null | null | bananas/testing/learners.py | owahltinez/bananas | 4d37af1713b7f166ead3459a7004748f954d336e | [
"MIT"
] | null | null | null | bananas/testing/learners.py | owahltinez/bananas | 4d37af1713b7f166ead3459a7004748f954d336e | [
"MIT"
] | null | null | null | """
This library comes with a comprehensive testing suite that checks for API compliance, input type
handling, change map handling, and more. Not all tests are run for every learner; tests specific
to certain estimators like [supervised learners](../core/index.md#supervised) or [transformers](
../transformers/index.md)... | 41.82 | 99 | 0.640944 | 3,808 | 29,274 | 4.599265 | 0.088498 | 0.135834 | 0.11368 | 0.132751 | 0.717654 | 0.704465 | 0.680313 | 0.66838 | 0.665924 | 0.659016 | 0 | 0.023853 | 0.263886 | 29,274 | 699 | 100 | 41.879828 | 0.7889 | 0.093086 | 0 | 0.622093 | 0 | 0 | 0.015067 | 0 | 0 | 0 | 0 | 0.004292 | 0.04845 | 1 | 0.056202 | false | 0.007752 | 0.025194 | 0 | 0.098837 | 0.007752 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
f749b46be04d03b3b4bd4f8e79aa3b3ea99109eb | 6,412 | py | Python | py65/disassemblerM65C02A.py | MorrisMA/py65 | bda1553ff88fc577944bde3d7cb3e75a3b83ccfa | [
"BSD-3-Clause"
] | null | null | null | py65/disassemblerM65C02A.py | MorrisMA/py65 | bda1553ff88fc577944bde3d7cb3e75a3b83ccfa | [
"BSD-3-Clause"
] | null | null | null | py65/disassemblerM65C02A.py | MorrisMA/py65 | bda1553ff88fc577944bde3d7cb3e75a3b83ccfa | [
"BSD-3-Clause"
] | null | null | null | from utils.addressing import AddressParser
class Disassembler:
def __init__(self, mpu, address_parser=None):
if address_parser is None:
address_parser = AddressParser()
self._mpu = mpu
self._address_parser = address_parser
self.addrWidth = mpu.ADDR_WIDTH
self.... | 35.230769 | 67 | 0.510293 | 688 | 6,412 | 4.50436 | 0.125 | 0.092933 | 0.144563 | 0.092933 | 0.730558 | 0.703453 | 0.691191 | 0.662472 | 0.644401 | 0.644401 | 0 | 0.016287 | 0.377573 | 6,412 | 181 | 68 | 35.425414 | 0.76021 | 0.016999 | 0 | 0.628378 | 0 | 0 | 0.027234 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013514 | false | 0 | 0.006757 | 0 | 0.033784 | 0.006757 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
f753f67522a63f610654dbae4ff6acdef0a5a72b | 12,179 | py | Python | amcp_pylib/module/mixer.py | dolejska-daniel/amcp-pylib | 3cccfcf263fce938de942a80e07375b17c5f82f9 | [
"MIT"
] | 5 | 2020-05-14T18:35:35.000Z | 2021-08-10T12:29:36.000Z | amcp_pylib/module/mixer.py | dolejska-daniel/amcp-pylib | 3cccfcf263fce938de942a80e07375b17c5f82f9 | [
"MIT"
] | 3 | 2020-10-14T16:59:38.000Z | 2021-04-30T15:33:24.000Z | amcp_pylib/module/mixer.py | dolejska-daniel/amcp-pylib | 3cccfcf263fce938de942a80e07375b17c5f82f9 | [
"MIT"
] | null | null | null | from amcp_pylib.core import Command, command_syntax
@command_syntax('MIXER [video_channel:int]{-[layer:int]|-0} KEYER {[keyer:0,1]|0}')
def MIXER_KEYER(command: Command) -> Command:
"""
Replaces layer n+1's alpha with the R (red) channel of layer n, and hides the RGB channels of layer n.
If keyer equals 1... | 41.852234 | 120 | 0.699072 | 1,747 | 12,179 | 4.804236 | 0.172295 | 0.115096 | 0.054808 | 0.049327 | 0.516978 | 0.491004 | 0.466818 | 0.459907 | 0.437984 | 0.410699 | 0 | 0.010454 | 0.183184 | 12,179 | 290 | 121 | 41.996552 | 0.833233 | 0.505132 | 0 | 0.388889 | 0 | 0.144444 | 0.523382 | 0.252522 | 0 | 0 | 0 | 0 | 0 | 1 | 0.255556 | false | 0 | 0.011111 | 0 | 0.522222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
f75a23643655220e8acc579927e7db1094649707 | 547 | py | Python | lib/click-6.6/tests/test_bashcomplete.py | brianrodri/google_appengine | ec4e7cdfa1afd99de23b0a32eb94563fe5e6ef43 | [
"Apache-2.0"
] | 26 | 2015-01-20T08:02:38.000Z | 2020-06-10T04:57:41.000Z | lib/click-6.6/tests/test_bashcomplete.py | brianrodri/google_appengine | ec4e7cdfa1afd99de23b0a32eb94563fe5e6ef43 | [
"Apache-2.0"
] | 4 | 2018-03-28T16:49:17.000Z | 2019-11-02T18:35:02.000Z | lib/click-6.6/tests/test_bashcomplete.py | brianrodri/google_appengine | ec4e7cdfa1afd99de23b0a32eb94563fe5e6ef43 | [
"Apache-2.0"
] | 13 | 2016-02-28T00:14:23.000Z | 2021-05-03T15:47:36.000Z | # -*- coding: utf-8 -*-
import click
from click._bashcomplete import get_choices
def test_basic():
@click.group()
@click.option('--global-opt')
def cli(global_opt):
pass
@cli.command()
@click.option('--local-opt')
def sub(local_opt):
pass
assert list(get_choices(cli, 'lol... | 26.047619 | 73 | 0.557587 | 67 | 547 | 4.41791 | 0.358209 | 0.168919 | 0.175676 | 0.27027 | 0.381757 | 0.381757 | 0.381757 | 0.371622 | 0.371622 | 0.371622 | 0 | 0.002294 | 0.202925 | 547 | 20 | 74 | 27.35 | 0.676606 | 0.038391 | 0 | 0.133333 | 0 | 0 | 0.131679 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 1 | 0.2 | false | 0.133333 | 0.133333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f77bec31eb11665c0e28202e48a6ea977ae99e7c | 447 | py | Python | async/p23.py | ls-2018/tips | 1f5f5195d7181b5dd4616db02166f7f92c97f1cd | [
"MIT"
] | 2 | 2019-05-07T03:08:25.000Z | 2020-05-22T10:10:00.000Z | async/p23.py | ls-2018/tips | 1f5f5195d7181b5dd4616db02166f7f92c97f1cd | [
"MIT"
] | 7 | 2020-05-22T13:29:42.000Z | 2021-09-23T23:30:25.000Z | async/p23.py | ls-2018/py | 1f5f5195d7181b5dd4616db02166f7f92c97f1cd | [
"MIT"
] | null | null | null | import asyncio
import random
async def work(i):
print(await asyncio.sleep(random.randint(0, i)))
result = f'work {i}'
async def main():
# print(work(1),type(work(1)))
# print(asyncio.ensure_future(work(1)),type(asyncio.ensure_future(work(1))))
# tasks = [asyncio.ensure_future(work(i)) for i in r... | 11.175 | 80 | 0.626398 | 67 | 447 | 4.134328 | 0.38806 | 0.072202 | 0.205776 | 0.249097 | 0.303249 | 0.129964 | 0.129964 | 0 | 0 | 0 | 0 | 0.025496 | 0.210291 | 447 | 39 | 81 | 11.461538 | 0.759207 | 0.364653 | 0 | 0 | 0 | 0 | 0.030888 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0.111111 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f77c7320aafb2b8875b9d430fa3dcfe46891d536 | 3,872 | py | Python | SMT2/EscuchandoMusica/escuchandoMusica.py | luispozas/PR | 34a36ec09d9a1bc9f5cc99882243da5f453c24e8 | [
"MIT"
] | 1 | 2021-06-06T18:28:48.000Z | 2021-06-06T18:28:48.000Z | SMT2/EscuchandoMusica/escuchandoMusica.py | luispozas/PR | 34a36ec09d9a1bc9f5cc99882243da5f453c24e8 | [
"MIT"
] | null | null | null | SMT2/EscuchandoMusica/escuchandoMusica.py | luispozas/PR | 34a36ec09d9a1bc9f5cc99882243da5f453c24e8 | [
"MIT"
] | null | null | null | # LUIS POZAS PALOMO - PR - PRUEBA 20 MAYO
# -----------------------------------------------------
# Para ejecutar el código podéis hacer lo siguiente:
# python3 escuchandoMusica.py < input1.txt > escuchandoMusica.smt2
# z3 escuchandoMusica.smt2
# -----------------------------------------------------
#!/usr/bin/python3... | 21.392265 | 80 | 0.52686 | 539 | 3,872 | 3.756957 | 0.267161 | 0.047407 | 0.059259 | 0.053333 | 0.388148 | 0.302716 | 0.192593 | 0.188642 | 0.162963 | 0.144198 | 0 | 0.0395 | 0.215393 | 3,872 | 180 | 81 | 21.511111 | 0.627057 | 0.245093 | 0 | 0.168317 | 0 | 0 | 0.11476 | 0 | 0 | 0 | 0 | 0 | 0.089109 | 1 | 0.267327 | false | 0 | 0.009901 | 0.19802 | 0.534653 | 0.118812 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
f7992263d27aa8b31b40545d7f0d8bcad6c781b3 | 4,673 | py | Python | aidre/lab.py | bandanac/aidre | 622d4478c72bf50d75ec316c9a3c4ef636376c60 | [
"MIT"
] | 2 | 2019-06-16T15:57:35.000Z | 2021-07-07T07:08:46.000Z | aidre/lab.py | bandanac/aidre | 622d4478c72bf50d75ec316c9a3c4ef636376c60 | [
"MIT"
] | 3 | 2019-03-08T20:14:16.000Z | 2019-03-24T18:12:37.000Z | aidre/lab.py | bandanac/aidre | 622d4478c72bf50d75ec316c9a3c4ef636376c60 | [
"MIT"
] | 4 | 2019-03-10T19:36:23.000Z | 2019-05-17T14:38:43.000Z | # -*- coding: utf-8 -*-
'''
from github import Github
g = Github()
repository = 'https://github.com/python/python-docs-fr'
repoOrg = g.get_organization('python')
# for x in dir(repo): print(x)
repo = repoOrg.get_repo('python-docs-fr')
for x in dir(repo): print(x)
x = repo.get_issues(state='closed')
print(len(list(x)... | 14.334356 | 55 | 0.902846 | 658 | 4,673 | 5.656535 | 0.337386 | 0.016926 | 0.01612 | 0.004836 | 0.298227 | 0.285868 | 0.285868 | 0.275658 | 0.275658 | 0.275658 | 0 | 0.00325 | 0.078108 | 4,673 | 325 | 56 | 14.378462 | 0.860724 | 0.970683 | 0 | 0 | 0 | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
f79e65ee887ac0afdce38f9ccc335c57c81ac7b2 | 2,012 | py | Python | src/main/python/cybercaptain/utils/exceptions.py | FHNW-CyberCaptain/CyberCaptain | 07c989190e997353fbf57eb7a386947d6ab8ffd5 | [
"MIT"
] | 1 | 2018-10-01T10:59:55.000Z | 2018-10-01T10:59:55.000Z | src/main/python/cybercaptain/utils/exceptions.py | FHNW-CyberCaptain/CyberCaptain | 07c989190e997353fbf57eb7a386947d6ab8ffd5 | [
"MIT"
] | null | null | null | src/main/python/cybercaptain/utils/exceptions.py | FHNW-CyberCaptain/CyberCaptain | 07c989190e997353fbf57eb7a386947d6ab8ffd5 | [
"MIT"
] | 1 | 2021-11-01T00:09:00.000Z | 2021-11-01T00:09:00.000Z | """
This Module handles all the CyberCaptain exceptions.
"""
import logging
logger = logging.getLogger("CyberCaptain")
class Error(Exception):
"""
Base class for exceptions in this module.
**Parameters**:
message : str
The message why it did not validate.
"""
def __init__(self... | 25.794872 | 112 | 0.61332 | 225 | 2,012 | 5.306667 | 0.302222 | 0.041876 | 0.054439 | 0.083752 | 0.420436 | 0.386097 | 0.386097 | 0.366834 | 0.309883 | 0.309883 | 0 | 0 | 0.283797 | 2,012 | 77 | 113 | 26.12987 | 0.828591 | 0.437376 | 0 | 0.375 | 0 | 0 | 0.130524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0.083333 | 0.041667 | 0 | 0.458333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f79f7017813395e22231e6d28852ab742716fb1b | 224 | py | Python | python/framebuffer/examples/test_font1.py | semwai/framebuffer-lib | b351986b675765e95fd6630b5ca3913ff5842ebf | [
"BSD-3-Clause"
] | null | null | null | python/framebuffer/examples/test_font1.py | semwai/framebuffer-lib | b351986b675765e95fd6630b5ca3913ff5842ebf | [
"BSD-3-Clause"
] | null | null | null | python/framebuffer/examples/test_font1.py | semwai/framebuffer-lib | b351986b675765e95fd6630b5ca3913ff5842ebf | [
"BSD-3-Clause"
] | null | null | null | from framebuffer.fb_string import FB_Writer
from framebuffer.framebuffer import Framebuffer
fb = Framebuffer()
fb.clear_screen()
writer = FB_Writer(size=50)
writer.print("HELLO", 350, 50)
writer.print(" WORLD", 350, 100) | 24.888889 | 47 | 0.772321 | 32 | 224 | 5.28125 | 0.46875 | 0.230769 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065327 | 0.111607 | 224 | 9 | 48 | 24.888889 | 0.78392 | 0 | 0 | 0 | 0 | 0 | 0.057778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.285714 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f7a1a67671df59e778d06ca697afff93f414784d | 1,710 | py | Python | time_testing.py | mikeklinker129/sched | 72be9c3bcb70e025765b99d7365f34e09c0776d6 | [
"MIT"
] | null | null | null | time_testing.py | mikeklinker129/sched | 72be9c3bcb70e025765b99d7365f34e09c0776d6 | [
"MIT"
] | null | null | null | time_testing.py | mikeklinker129/sched | 72be9c3bcb70e025765b99d7365f34e09c0776d6 | [
"MIT"
] | null | null | null |
# import datetime
# def round_time(time, round_to, sign):
# rounded = time + datetime.timedelta(minutes=round_to/2.)
# rounded -= datetime.timedelta(minutes=rounded.minute % round_to,
# seconds=rounded.second,
# microseconds=rounded.microsecond)
# #dir is positive:
# if sign>0:
# if rounded>... | 20.357143 | 158 | 0.695906 | 262 | 1,710 | 4.431298 | 0.374046 | 0.056848 | 0.062016 | 0.054264 | 0.14298 | 0.020672 | 0 | 0 | 0 | 0 | 0 | 0.050554 | 0.155556 | 1,710 | 83 | 159 | 20.60241 | 0.753463 | 0.594152 | 0 | 0 | 0 | 0.076923 | 0.27795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.384615 | null | null | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
e3922a1b192d29d4b485b0238a2d90ac5fa5f980 | 5,031 | py | Python | fabric_utils/helpers.py | Eksmo/fabric-utils | 77b6a5866d311d1fcedc01434f997685f5870f8d | [
"BSD-3-Clause"
] | null | null | null | fabric_utils/helpers.py | Eksmo/fabric-utils | 77b6a5866d311d1fcedc01434f997685f5870f8d | [
"BSD-3-Clause"
] | 1 | 2018-05-31T13:41:38.000Z | 2018-05-31T13:41:38.000Z | fabric_utils/helpers.py | Eksmo/fabric-utils | 77b6a5866d311d1fcedc01434f997685f5870f8d | [
"BSD-3-Clause"
] | 1 | 2020-11-10T16:20:06.000Z | 2020-11-10T16:20:06.000Z | import os
import platform
import re
import sys
from typing import Any, List, Callable
from functools import partial, wraps
from contextlib import contextmanager
from fabric.api import sudo, run, path, puts, quiet
from fabric.contrib.files import upload_template
from .git import get_active_branch_name
def su(user):
... | 30.676829 | 113 | 0.650566 | 672 | 5,031 | 4.760417 | 0.300595 | 0.034386 | 0.013754 | 0.013129 | 0.075336 | 0.042201 | 0.042201 | 0.042201 | 0.042201 | 0.042201 | 0 | 0.005029 | 0.249056 | 5,031 | 163 | 114 | 30.865031 | 0.841715 | 0.169748 | 0 | 0.171717 | 0 | 0.030303 | 0.127379 | 0.006345 | 0 | 0 | 0 | 0 | 0 | 1 | 0.20202 | false | 0 | 0.10101 | 0.050505 | 0.505051 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e3ab2507daf8f84ced9212af87e7c0d63dcffb88 | 712 | py | Python | Code/source/pathfinding/pathfinding.py | Colorado-School-of-Mines-Robotics-Club/SpaceGrantMachineVision | 992a8fd30ac9829ea2c941d758ba63ecd931f0e1 | [
"MIT"
] | null | null | null | Code/source/pathfinding/pathfinding.py | Colorado-School-of-Mines-Robotics-Club/SpaceGrantMachineVision | 992a8fd30ac9829ea2c941d758ba63ecd931f0e1 | [
"MIT"
] | null | null | null | Code/source/pathfinding/pathfinding.py | Colorado-School-of-Mines-Robotics-Club/SpaceGrantMachineVision | 992a8fd30ac9829ea2c941d758ba63ecd931f0e1 | [
"MIT"
] | 1 | 2022-02-09T05:13:11.000Z | 2022-02-09T05:13:11.000Z | # Built in python libs
import sys
import os
from typing import Dict, List
# Additional libs
import cv2
import numpy as np
# Custom imports
from .astar import *
import matplotlib.pyplot as plt
# Source for visualization functions:
# https://www.analytics-link.com/post/2018/09/14/applying-the-a-path-finding-algorithm... | 23.733333 | 118 | 0.674157 | 113 | 712 | 4.238938 | 0.646018 | 0.033403 | 0.050104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041806 | 0.160112 | 712 | 29 | 119 | 24.551724 | 0.759197 | 0.286517 | 0 | 0 | 0 | 0 | 0.039841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.466667 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
e3b0cf4e7ccfb7e66e1eec6d89d5ddedf6d62e2b | 418 | py | Python | max_heap.py | guyrosin/generating_timelines | a5507fe37539fa5eda38ed37dc9eaae830512b4c | [
"MIT"
] | 7 | 2019-10-29T11:36:28.000Z | 2021-01-28T17:41:36.000Z | max_heap.py | guyrosin/generating_timelines | a5507fe37539fa5eda38ed37dc9eaae830512b4c | [
"MIT"
] | 1 | 2020-06-24T07:40:35.000Z | 2020-07-18T20:10:51.000Z | max_heap.py | guyrosin/generating_timelines | a5507fe37539fa5eda38ed37dc9eaae830512b4c | [
"MIT"
] | 2 | 2020-01-14T09:37:50.000Z | 2020-02-09T16:12:07.000Z | import heapq
class MaxHeap:
"""
Max heap
"""
def __init__(self, capacity):
self.heap = []
self.capacity = capacity
def add(self, score, term):
item = (score, term)
if len(self.heap) >= self.capacity:
heapq.heappushpop(self.heap, item)
else:
... | 19 | 46 | 0.547847 | 47 | 418 | 4.787234 | 0.425532 | 0.177778 | 0.106667 | 0.177778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.330144 | 418 | 21 | 47 | 19.904762 | 0.803571 | 0.019139 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0 | 0.384615 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e3b374733b00ed1c495fc90d4c219864729903d6 | 478 | py | Python | pkg/codegen/testing/test/testdata/output-funcs-edgeorder/python/pulumi_myedgeorder/_enums.py | goverdhan07/pulumi | 301efa60653c90047a3427af41339387223dbccd | [
"Apache-2.0"
] | 12,004 | 2018-06-17T23:56:29.000Z | 2022-03-31T18:00:09.000Z | pkg/codegen/testing/test/testdata/output-funcs-edgeorder/python/pulumi_myedgeorder/_enums.py | goverdhan07/pulumi | 301efa60653c90047a3427af41339387223dbccd | [
"Apache-2.0"
] | 6,263 | 2018-06-17T23:27:24.000Z | 2022-03-31T19:20:35.000Z | pkg/codegen/testing/test/testdata/output-funcs-edgeorder/python/pulumi_myedgeorder/_enums.py | goverdhan07/pulumi | 301efa60653c90047a3427af41339387223dbccd | [
"Apache-2.0"
] | 706 | 2018-06-17T23:56:50.000Z | 2022-03-31T11:20:23.000Z | # coding=utf-8
# *** WARNING: this file was generated by test. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
from enum import Enum
__all__ = [
'SupportedFilterTypes',
]
class SupportedFilterTypes(str, Enum):
"""
Type of product filter.
"""
SHIP_TO_COUNTRIES... | 19.916667 | 80 | 0.642259 | 53 | 478 | 5.641509 | 0.792453 | 0.040134 | 0.147157 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002755 | 0.240586 | 478 | 23 | 81 | 20.782609 | 0.820937 | 0.34728 | 0 | 0 | 1 | 0 | 0.255605 | 0.098655 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e3c66ba692b9ce0135c115f048c8edd5c1ea6c19 | 884 | py | Python | mpfmc/tests/test_DisplayMultiple.py | arthurlutz/mpf-mc | 6f4aac5d48eb07dd5aa6612985a7567af8577ce2 | [
"MIT"
] | 16 | 2016-01-07T18:17:55.000Z | 2022-03-27T14:29:42.000Z | mpfmc/tests/test_DisplayMultiple.py | arthurlutz/mpf-mc | 6f4aac5d48eb07dd5aa6612985a7567af8577ce2 | [
"MIT"
] | 308 | 2016-04-10T18:33:40.000Z | 2021-11-17T21:38:49.000Z | mpfmc/tests/test_DisplayMultiple.py | arthurlutz/mpf-mc | 6f4aac5d48eb07dd5aa6612985a7567af8577ce2 | [
"MIT"
] | 39 | 2016-02-23T23:49:20.000Z | 2021-11-08T04:50:12.000Z | from mpfmc.uix.display import Display
from mpfmc.tests.MpfMcTestCase import MpfMcTestCase
class TestDisplayMultiple(MpfMcTestCase):
def get_machine_path(self):
return 'tests/machine_files/display'
def get_config_file(self):
return 'test_display_multiple.yaml'
def test_mc_display(self):
... | 35.36 | 74 | 0.68552 | 104 | 884 | 5.740385 | 0.394231 | 0.080402 | 0.164154 | 0.105528 | 0.294807 | 0.294807 | 0.174204 | 0.174204 | 0.174204 | 0 | 0 | 0.023776 | 0.191176 | 884 | 24 | 75 | 36.833333 | 0.811189 | 0.056561 | 0 | 0 | 0 | 0 | 0.133413 | 0.063702 | 0 | 0 | 0 | 0 | 0.4375 | 1 | 0.1875 | false | 0 | 0.125 | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
e3c9c69aff8d3f0dd9297c4a74175e8f607060aa | 6,645 | py | Python | apartment/api/serializers.py | City-of-Helsinki/apartment-application-service | 0cdc902b7cc9b67a67f88913c356e9033d608923 | [
"MIT"
] | 1 | 2021-03-15T11:29:12.000Z | 2021-03-15T11:29:12.000Z | apartment/api/serializers.py | City-of-Helsinki/apartment-application-service | 0cdc902b7cc9b67a67f88913c356e9033d608923 | [
"MIT"
] | 130 | 2020-09-07T08:30:29.000Z | 2022-03-29T11:49:27.000Z | apartment/api/serializers.py | City-of-Helsinki/apartment-application-service | 0cdc902b7cc9b67a67f88913c356e9033d608923 | [
"MIT"
] | 4 | 2020-09-07T05:34:13.000Z | 2021-11-07T12:51:21.000Z | from rest_framework import serializers
class ApartmentDocumentSerializer(serializers.Serializer):
uuid = serializers.UUIDField()
apartment_address = serializers.CharField()
apartment_number = serializers.CharField()
housing_shares = serializers.CharField()
living_area = serializers.FloatField()
... | 51.914063 | 87 | 0.786606 | 650 | 6,645 | 7.681538 | 0.206154 | 0.151011 | 0.171841 | 0.218105 | 0.324454 | 0.11456 | 0 | 0 | 0 | 0 | 0 | 0.000173 | 0.128217 | 6,645 | 127 | 88 | 52.322835 | 0.86173 | 0 | 0 | 0 | 0 | 0 | 0.197592 | 0.142363 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.00813 | 0 | 0.804878 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e3df9a5a7f1b620f24f63ca1bf6efab5b5c6bc7c | 1,798 | py | Python | events_protocol/core/validation/strict_event_validator.py | thepabloaguilar/events-protocol-python | adbb08609bb360c1c12bf6db4b382828d65354a4 | [
"Apache-2.0"
] | null | null | null | events_protocol/core/validation/strict_event_validator.py | thepabloaguilar/events-protocol-python | adbb08609bb360c1c12bf6db4b382828d65354a4 | [
"Apache-2.0"
] | null | null | null | events_protocol/core/validation/strict_event_validator.py | thepabloaguilar/events-protocol-python | adbb08609bb360c1c12bf6db4b382828d65354a4 | [
"Apache-2.0"
] | null | null | null | from typing import Any
from ..model.event import RawEvent, ResponseEvent, RequestEvent
from ..exception.event_exception import EventValidationException
class StrictEventValidator:
def validate_as_response_event(self, raw_event: RawEvent) -> ResponseEvent:
return ResponseEvent(
name=self.__get... | 48.594595 | 86 | 0.701891 | 204 | 1,798 | 5.671569 | 0.186275 | 0.138289 | 0.27917 | 0.318064 | 0.636128 | 0.592913 | 0.592913 | 0.592913 | 0.592913 | 0.592913 | 0 | 0 | 0.202447 | 1,798 | 36 | 87 | 49.944444 | 0.806834 | 0 | 0 | 0.516129 | 0 | 0 | 0.05228 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.096774 | 0.064516 | 0.322581 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e3e4b26bdf89782645af0d1c9f3768c6e8b7ed1d | 213 | py | Python | sqs-enqueue.py | 123raji/MY-APPLICATION-STORE-REPO | ae73d6034ecafebbc622eaaf112f8d7a855b2905 | [
"Apache-2.0"
] | null | null | null | sqs-enqueue.py | 123raji/MY-APPLICATION-STORE-REPO | ae73d6034ecafebbc622eaaf112f8d7a855b2905 | [
"Apache-2.0"
] | null | null | null | sqs-enqueue.py | 123raji/MY-APPLICATION-STORE-REPO | ae73d6034ecafebbc622eaaf112f8d7a855b2905 | [
"Apache-2.0"
] | null | null | null | import boto3
import json
def lambda_handler(event, context):
sqs = boto3.resource('sqs')
queue = sqs.get_queue_by_name(QueueName='test-messages')
queue.send_message(MessageBody=json.dumps(event))
| 17.75 | 60 | 0.737089 | 29 | 213 | 5.241379 | 0.724138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010989 | 0.14554 | 213 | 11 | 61 | 19.363636 | 0.824176 | 0 | 0 | 0 | 0 | 0 | 0.075117 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
e3e7320d0b7468af119fba727b42595b08e5b46d | 225 | py | Python | ABC/084/b.py | fumiyanll23/AtCoder | 362ca9fcacb5415c1458bc8dee5326ba2cc70b65 | [
"MIT"
] | null | null | null | ABC/084/b.py | fumiyanll23/AtCoder | 362ca9fcacb5415c1458bc8dee5326ba2cc70b65 | [
"MIT"
] | null | null | null | ABC/084/b.py | fumiyanll23/AtCoder | 362ca9fcacb5415c1458bc8dee5326ba2cc70b65 | [
"MIT"
] | null | null | null | A, B = map(int, input().split())
S = str(input())
flag = True
if not S[:A].isdecimal():
flag = False
elif S[A] != '-':
flag = False
elif not S[-B:].isdecimal():
flag = False
if flag:
print('Yes')
else:
print('No')
| 15 | 32 | 0.564444 | 37 | 225 | 3.432432 | 0.513514 | 0.212598 | 0.283465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204444 | 225 | 14 | 33 | 16.071429 | 0.709497 | 0 | 0 | 0.230769 | 0 | 0 | 0.026667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.153846 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e3eb01b1bbcdb06a439866a8f47596e2cea9dd3c | 584 | py | Python | nib/__init__.py | jreese/nib | 53308e73aae7d10cdc273ab339bb041b07930a75 | [
"MIT"
] | 10 | 2015-02-03T08:21:16.000Z | 2021-12-24T10:08:57.000Z | nib/__init__.py | jreese/nib | 53308e73aae7d10cdc273ab339bb041b07930a75 | [
"MIT"
] | 4 | 2016-09-22T01:18:30.000Z | 2016-09-23T00:18:38.000Z | nib/__init__.py | jreese/nib | 53308e73aae7d10cdc273ab339bb041b07930a75 | [
"MIT"
] | 2 | 2016-09-22T00:39:31.000Z | 2017-03-16T00:09:47.000Z | from __future__ import absolute_import, division, print_function, unicode_literals
version = '0.5.7'
from os import path
cwd = path.abspath(path.dirname(__file__))
_instance = None
def instance(new=None):
global _instance
if new:
_instance = new
return _instance
from . import yaml
from .config i... | 22.461538 | 82 | 0.767123 | 78 | 584 | 5.551282 | 0.487179 | 0.050808 | 0.08776 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006186 | 0.169521 | 584 | 25 | 83 | 23.36 | 0.886598 | 0 | 0 | 0 | 0 | 0 | 0.008576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.578947 | 0 | 0.684211 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
e3ed2cb6fadb25c8318487a9432020de73ace47b | 305 | py | Python | setup.py | kibehiro/hachinai-search | 2f54d2a39eb5e23498a56e7aff3a14db17632962 | [
"MIT"
] | null | null | null | setup.py | kibehiro/hachinai-search | 2f54d2a39eb5e23498a56e7aff3a14db17632962 | [
"MIT"
] | 1 | 2020-02-10T16:30:13.000Z | 2020-02-24T12:40:59.000Z | setup.py | kibehiro/hachinai-search | 2f54d2a39eb5e23498a56e7aff3a14db17632962 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='hachinai_search',
version='0.01',
packages=['hachinai_search'],
url='https://github.com/kibehiro/hachinai-search',
license='MIT',
author='KIBE',
description='ハチナイのカードデータを検索できるWebアプリ',
install_requires=['flask', 'python-dotenv']
)
| 23.461538 | 54 | 0.681967 | 32 | 305 | 6.40625 | 0.84375 | 0.204878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011673 | 0.157377 | 305 | 12 | 55 | 25.416667 | 0.785992 | 0 | 0 | 0 | 0 | 0 | 0.409836 | 0.07541 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e3fa54cb016cfb010ad27f0e68d54a46b000f7eb | 1,018 | py | Python | tests/plans/wordpress/wordpress_boot.py | buzztroll/cloudinit.d | 9fcc7c489b646e76f2b7360c0d807dae88d9cc0f | [
"Apache-2.0"
] | null | null | null | tests/plans/wordpress/wordpress_boot.py | buzztroll/cloudinit.d | 9fcc7c489b646e76f2b7360c0d807dae88d9cc0f | [
"Apache-2.0"
] | null | null | null | tests/plans/wordpress/wordpress_boot.py | buzztroll/cloudinit.d | 9fcc7c489b646e76f2b7360c0d807dae88d9cc0f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import sys
import os
import simplejson as json
f = open("bootconf.json", "r")
vals_dict = json.load(f)
f.close()
os.putenv('DEBIAN_FRONTEND', 'noninteractive')
os.putenv('TERM', 'dumb')
dbname=vals_dict['mysql_dbname']
dbuser=vals_dict['mysql_dbuser']
dbpassword=vals_dict['mysql_dbpassword']
d... | 26.789474 | 205 | 0.682711 | 161 | 1,018 | 4.229814 | 0.521739 | 0.058737 | 0.076358 | 0.030837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008028 | 0.143418 | 1,018 | 37 | 206 | 27.513514 | 0.772936 | 0.019646 | 0 | 0 | 0 | 0.071429 | 0.532129 | 0.167671 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.071429 | 0.107143 | null | null | 0.107143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
e3fe48828e5a3e040953d27c2fdf202748ec110e | 279 | py | Python | output/models/nist_data/atomic/decimal/schema_instance/nistschema_sv_iv_atomic_decimal_fraction_digits_2_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/nist_data/atomic/decimal/schema_instance/nistschema_sv_iv_atomic_decimal_fraction_digits_2_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/nist_data/atomic/decimal/schema_instance/nistschema_sv_iv_atomic_decimal_fraction_digits_2_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.nist_data.atomic.decimal.schema_instance.nistschema_sv_iv_atomic_decimal_fraction_digits_2_xsd.nistschema_sv_iv_atomic_decimal_fraction_digits_2 import NistschemaSvIvAtomicDecimalFractionDigits2
__all__ = [
"NistschemaSvIvAtomicDecimalFractionDigits2",
]
| 46.5 | 213 | 0.903226 | 30 | 279 | 7.7 | 0.633333 | 0.168831 | 0.121212 | 0.17316 | 0.363636 | 0.363636 | 0.363636 | 0.363636 | 0 | 0 | 0 | 0.015094 | 0.050179 | 279 | 5 | 214 | 55.8 | 0.856604 | 0 | 0 | 0 | 0 | 0 | 0.150538 | 0.150538 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
540c67b9041f13f0c9e8c26976c9f178b547967d | 4,134 | py | Python | day09/settings.py | whoareyou0401/mytest | c634f20157ee8aec5408d75708b458085878e832 | [
"Apache-2.0"
] | null | null | null | day09/settings.py | whoareyou0401/mytest | c634f20157ee8aec5408d75708b458085878e832 | [
"Apache-2.0"
] | null | null | null | day09/settings.py | whoareyou0401/mytest | c634f20157ee8aec5408d75708b458085878e832 | [
"Apache-2.0"
] | null | null | null | """
Django settings for day09 project.
Generated by 'django-admin startproject' using Django 1.11.7.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
from datetim... | 25.054545 | 91 | 0.677068 | 487 | 4,134 | 5.628337 | 0.418891 | 0.071142 | 0.056184 | 0.063845 | 0.191901 | 0.167822 | 0.099964 | 0.099964 | 0.044874 | 0 | 0 | 0.029472 | 0.179245 | 4,134 | 165 | 92 | 25.054545 | 0.778367 | 0.267779 | 0 | 0.020619 | 1 | 0.010309 | 0.475475 | 0.362696 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.072165 | 0.041237 | 0 | 0.041237 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
540d3b3fa818c2a048791d64789d88f5d6eb6192 | 844 | py | Python | doltpy/etl/sql_sync/tests/conftest.py | oscarbatori/doltpy | 6981585b05366a8abb399d3e614c61b25f574dec | [
"Apache-2.0"
] | null | null | null | doltpy/etl/sql_sync/tests/conftest.py | oscarbatori/doltpy | 6981585b05366a8abb399d3e614c61b25f574dec | [
"Apache-2.0"
] | null | null | null | doltpy/etl/sql_sync/tests/conftest.py | oscarbatori/doltpy | 6981585b05366a8abb399d3e614c61b25f574dec | [
"Apache-2.0"
] | null | null | null | import pytest
from doltpy.core.tests.fixtures import init_empty_test_repo
from .fixtures.dolt import (create_dolt_test_data_commits,
repo_with_table,
repo_with_table_with_arrays,
empty_repo_with_server_process)
from .fixtures.mysql impo... | 56.266667 | 112 | 0.667062 | 96 | 844 | 5.34375 | 0.34375 | 0.105263 | 0.081871 | 0.128655 | 0.089669 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.296209 | 844 | 14 | 113 | 60.285714 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
54110a3907bd820e3a9130c5a3c7198cf00f1a7c | 2,389 | py | Python | src/problem018.py | galah92/project-euler | d4be56e945e8549905fc530449b3d1f59d71554d | [
"MIT"
] | null | null | null | src/problem018.py | galah92/project-euler | d4be56e945e8549905fc530449b3d1f59d71554d | [
"MIT"
] | null | null | null | src/problem018.py | galah92/project-euler | d4be56e945e8549905fc530449b3d1f59d71554d | [
"MIT"
] | null | null | null | """ Maximum path sum I
By starting at the top of the triangle below and moving to adjacent numbers on
the row below, the maximum total from top to bottom is 23.
3
7 4
2 4 6
8 5 9 3
That is, 3 + 7 + 4 + 9 = 23.
Find the maximum total from top to bottom of the triangle below:
75
... | 44.240741 | 78 | 0.55923 | 467 | 2,389 | 2.843683 | 0.406852 | 0.01506 | 0.029367 | 0.033886 | 0.403614 | 0.388554 | 0.388554 | 0.343373 | 0.343373 | 0.316265 | 0 | 0.318041 | 0.324822 | 2,389 | 54 | 79 | 44.240741 | 0.50527 | 0 | 0 | 0 | 0 | 0 | 0.010811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5417d936da77f433cd29a53df9d0b5c10158205c | 238 | py | Python | interface tkinter/janela mensagem.py | CeciliaDornelas/Python | 883959ed2e10cd8e8ace2b640e1944edc0c1d8a3 | [
"MIT"
] | null | null | null | interface tkinter/janela mensagem.py | CeciliaDornelas/Python | 883959ed2e10cd8e8ace2b640e1944edc0c1d8a3 | [
"MIT"
] | null | null | null | interface tkinter/janela mensagem.py | CeciliaDornelas/Python | 883959ed2e10cd8e8ace2b640e1944edc0c1d8a3 | [
"MIT"
] | null | null | null | import tkinter as tk
janela = tk.Tk()
mensagem_para_usuario = "mensagem que pode ser util para um user"
msg = tk.Message(janela, text= mensagem_para_usuario)
msg.config(bg='#f5fffa',font=('times',24,'italic'))
msg.pack()
janela.mainloop() | 34 | 65 | 0.747899 | 38 | 238 | 4.578947 | 0.684211 | 0.137931 | 0.218391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014019 | 0.10084 | 238 | 7 | 66 | 34 | 0.799065 | 0 | 0 | 0 | 0 | 0 | 0.238494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
542623c1c28bb70d0c75fcdb3ddbe51350f65388 | 620 | py | Python | backend/roles/tests/test_views.py | ronilpatel/doccano-talpoint | 194602e89e1ae9d29ebae730740f0fb77804cbbb | [
"MIT"
] | null | null | null | backend/roles/tests/test_views.py | ronilpatel/doccano-talpoint | 194602e89e1ae9d29ebae730740f0fb77804cbbb | [
"MIT"
] | null | null | null | backend/roles/tests/test_views.py | ronilpatel/doccano-talpoint | 194602e89e1ae9d29ebae730740f0fb77804cbbb | [
"MIT"
] | null | null | null | from rest_framework import status
from rest_framework.reverse import reverse
from api.tests.utils import CRUDMixin
from users.tests.utils import make_user
from .utils import create_default_roles
class TestRoleAPI(CRUDMixin):
@classmethod
def setUpTestData(cls):
create_default_roles()
cls.user... | 29.52381 | 61 | 0.769355 | 84 | 620 | 5.369048 | 0.47619 | 0.073171 | 0.075388 | 0.062084 | 0.146341 | 0.146341 | 0.146341 | 0.146341 | 0 | 0 | 0 | 0.011538 | 0.16129 | 620 | 20 | 62 | 31 | 0.855769 | 0 | 0 | 0 | 0 | 0 | 0.008065 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.2 | false | 0 | 0.333333 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.