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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
74cf89eb0f06c514d58868658f9cede0db7a9aaa | 2,210 | py | Python | LeetCode/LC003_bruteForce.py | JeffreyAsuncion/CodingProblems_Python | db71cb46b2579c1c65767a644a0ea989da4fa559 | [
"MIT"
] | null | null | null | LeetCode/LC003_bruteForce.py | JeffreyAsuncion/CodingProblems_Python | db71cb46b2579c1c65767a644a0ea989da4fa559 | [
"MIT"
] | null | null | null | LeetCode/LC003_bruteForce.py | JeffreyAsuncion/CodingProblems_Python | db71cb46b2579c1c65767a644a0ea989da4fa559 | [
"MIT"
] | null | null | null | """
3. Longest Substring Without Repeating Characters
Given a string s,
find the length of the longest substring without repeating characters.
Example 1:
Input: s = "abcabcbb"
Output: 3
Explanation: The answer is "abc", with the length of 3.
Example 2:
Input: s = "bbbbb"
Output: 1
Explanation: The answer is "b", wi... | 25.402299 | 95 | 0.615385 | 320 | 2,210 | 4.25 | 0.325 | 0.047059 | 0.056618 | 0.097059 | 0.299265 | 0.2375 | 0.232353 | 0.232353 | 0.232353 | 0.232353 | 0 | 0.031131 | 0.287783 | 2,210 | 87 | 96 | 25.402299 | 0.83291 | 0.58371 | 0 | 0 | 0 | 0 | 0.024664 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0 | 0 | 0.206897 | 0.172414 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
74d068093d0ae6b5a5ba2737ff2398f7a073b853 | 10,913 | py | Python | pattoo/agent.py | palisadoes/pattoo-os | cccf0ddb50a8bb971c0c527b4ea5ef96c6819fac | [
"Apache-2.0"
] | null | null | null | pattoo/agent.py | palisadoes/pattoo-os | cccf0ddb50a8bb971c0c527b4ea5ef96c6819fac | [
"Apache-2.0"
] | null | null | null | pattoo/agent.py | palisadoes/pattoo-os | cccf0ddb50a8bb971c0c527b4ea5ef96c6819fac | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
"""Pattoo .Agent class.
Description:
This script:
1) Processes a variety of information from agents
2) Posts the data using HTTP to a server listed
in the configuration file
"""
# Standard libraries
import textwrap
import sys
import time
import argparse
import ip... | 24.802273 | 79 | 0.550078 | 1,142 | 10,913 | 5.147986 | 0.24606 | 0.01684 | 0.033679 | 0.018711 | 0.199354 | 0.15853 | 0.143222 | 0.117367 | 0.079946 | 0.068379 | 0 | 0.007104 | 0.355081 | 10,913 | 439 | 80 | 24.85877 | 0.828218 | 0.297077 | 0 | 0.216216 | 0 | 0 | 0.111437 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086486 | false | 0.005405 | 0.075676 | 0 | 0.210811 | 0.016216 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
74d0de2d8da21d05590e9e49b38f27e37b7c316e | 5,359 | py | Python | utils/create_dmg_masks.py | deg4uss3r/xview2-baseline | ae3b63003efe5ffd712a32b0083e044f595f0d3e | [
"BSD-3-Clause"
] | null | null | null | utils/create_dmg_masks.py | deg4uss3r/xview2-baseline | ae3b63003efe5ffd712a32b0083e044f595f0d3e | [
"BSD-3-Clause"
] | null | null | null | utils/create_dmg_masks.py | deg4uss3r/xview2-baseline | ae3b63003efe5ffd712a32b0083e044f595f0d3e | [
"BSD-3-Clause"
] | 1 | 2020-02-13T14:02:26.000Z | 2020-02-13T14:02:26.000Z | #####################################################################################################################################################################
# xView2 ... | 54.131313 | 166 | 0.53816 | 597 | 5,359 | 4.720268 | 0.420436 | 0.022356 | 0.034067 | 0.004968 | 0.046842 | 0.019872 | 0 | 0 | 0 | 0 | 0 | 0.012591 | 0.333085 | 5,359 | 98 | 167 | 54.683673 | 0.775881 | 0.49095 | 0 | 0.04 | 0 | 0 | 0.185859 | 0.011008 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.14 | 0 | 0.26 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
74d4070cc857186b6a593db78097011098c36c45 | 2,577 | py | Python | examples/source_TestLibraBot.py | kensoi/libragram | a0119244dceb09edca36b23c95f3e97a28ddae9a | [
"Apache-2.0"
] | null | null | null | examples/source_TestLibraBot.py | kensoi/libragram | a0119244dceb09edca36b23c95f3e97a28ddae9a | [
"Apache-2.0"
] | null | null | null | examples/source_TestLibraBot.py | kensoi/libragram | a0119244dceb09edca36b23c95f3e97a28ddae9a | [
"Apache-2.0"
] | null | null | null | import typing
from libragram import librabot
from libragram.objects.decorators import callback
from libragram.objects.filters import *
bot = librabot(token = "123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11", trust_env=True)
class NotCommand(Filter):
def __init__(self, commands: typing.Union[list, set]):
self... | 28.318681 | 104 | 0.668607 | 326 | 2,577 | 5.205521 | 0.291411 | 0.063642 | 0.088391 | 0.095463 | 0.365351 | 0.34178 | 0.34178 | 0.34178 | 0.34178 | 0.34178 | 0 | 0.012112 | 0.199069 | 2,577 | 91 | 105 | 28.318681 | 0.809593 | 0 | 0 | 0.307692 | 0 | 0 | 0.185027 | 0.026377 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015385 | false | 0 | 0.061538 | 0 | 0.107692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
74d43131a7fc8558fde515471cde4f6a43cbcff0 | 4,542 | py | Python | utils.py | brain-bzh/videoannotation | d75d3261967a134854a16956fea602cad51949a2 | [
"MIT"
] | 3 | 2020-02-19T09:54:27.000Z | 2020-10-13T14:02:28.000Z | utils.py | courtois-neuromod/videoannotation | d75d3261967a134854a16956fea602cad51949a2 | [
"MIT"
] | null | null | null | utils.py | courtois-neuromod/videoannotation | d75d3261967a134854a16956fea602cad51949a2 | [
"MIT"
] | 2 | 2020-03-13T12:23:13.000Z | 2021-02-01T16:14:04.000Z | ## Author : Nicolas Farrugia, February 2020
from torchvision.models.detection import fasterrcnn_resnet50_fpn
import torch
from torchvision.io import read_video,read_video_timestamps
import matplotlib.patches as patches
from matplotlib import pyplot as plt
import datetime
import os
def convert_Audio(mediaFile, o... | 31.985915 | 150 | 0.627257 | 584 | 4,542 | 4.792808 | 0.458904 | 0.007145 | 0.015005 | 0.044659 | 0.224723 | 0.214362 | 0.214362 | 0.214362 | 0.188639 | 0.158628 | 0 | 0.013789 | 0.201673 | 4,542 | 141 | 151 | 32.212766 | 0.758136 | 0.087406 | 0 | 0.170732 | 0 | 0 | 0.205682 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060976 | false | 0 | 0.085366 | 0 | 0.182927 | 0.012195 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
74d5aa0d303e7bb713fa63255c91d0a79ff9c4cc | 17,910 | py | Python | era5dataset/FrontDataset.py | stnie/FrontDetection | 742ebf9619dcde40d42891073739945a05631ea3 | [
"MIT"
] | null | null | null | era5dataset/FrontDataset.py | stnie/FrontDetection | 742ebf9619dcde40d42891073739945a05631ea3 | [
"MIT"
] | null | null | null | era5dataset/FrontDataset.py | stnie/FrontDetection | 742ebf9619dcde40d42891073739945a05631ea3 | [
"MIT"
] | 1 | 2022-01-17T04:58:10.000Z | 2022-01-17T04:58:10.000Z | from typing import final
import numpy as np
import torch
import os
import time
from datetime import datetime
import random
import numbers
from torch.utils.data import Dataset
from .ERA5Reader.readNetCDF import LatTokmPerLon
from .EraExtractors import DefaultEraExtractor
def labelnameToDataname(filename):
retur... | 46.884817 | 365 | 0.599107 | 2,101 | 17,910 | 5.007139 | 0.161352 | 0.031939 | 0.03251 | 0.007985 | 0.355418 | 0.305228 | 0.262262 | 0.237833 | 0.208365 | 0.187643 | 0 | 0.016155 | 0.28459 | 17,910 | 381 | 366 | 47.007874 | 0.804886 | 0.128085 | 0 | 0.334495 | 0 | 0.003484 | 0.059803 | 0.00271 | 0.041812 | 0 | 0 | 0 | 0 | 1 | 0.069686 | false | 0.003484 | 0.038328 | 0.010453 | 0.219512 | 0.087108 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
74d7b0958d8d2379fabfb2fe33a6017490b1f91e | 2,865 | py | Python | packages/mccomponents/tests/mccomponents/sample/kernel-orientation/kernelorientation_TestCase.py | mcvine/mcvine | 42232534b0c6af729628009bed165cd7d833789d | [
"BSD-3-Clause"
] | 5 | 2017-01-16T03:59:47.000Z | 2020-06-23T02:54:19.000Z | packages/mccomponents/tests/mccomponents/sample/kernel-orientation/kernelorientation_TestCase.py | mcvine/mcvine | 42232534b0c6af729628009bed165cd7d833789d | [
"BSD-3-Clause"
] | 293 | 2015-10-29T17:45:52.000Z | 2022-01-07T16:31:09.000Z | packages/mccomponents/tests/mccomponents/sample/kernel-orientation/kernelorientation_TestCase.py | mcvine/mcvine | 42232534b0c6af729628009bed165cd7d833789d | [
"BSD-3-Clause"
] | 1 | 2019-05-25T00:53:31.000Z | 2019-05-25T00:53:31.000Z | #!/usr/bin/env python
#
# Jiao Lin <jiao.lin@gmail.com
"""
This test check the "orientation" parameter of kernels.
* Sub-kernels in a "KernelContainer" have the parameter "orientation"
to specify its orientation relative to its parent kernel.
* The root level KernelContainer always has the same coordinate system
... | 27.285714 | 76 | 0.610471 | 392 | 2,865 | 4.436224 | 0.431122 | 0.00575 | 0.010351 | 0.008051 | 0.033353 | 0.033353 | 0 | 0 | 0 | 0 | 0 | 0.033399 | 0.289354 | 2,865 | 104 | 77 | 27.548077 | 0.820727 | 0.520768 | 0 | 0 | 0 | 0 | 0.037199 | 0.016047 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.058824 | false | 0.029412 | 0.147059 | 0 | 0.264706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
74d7f5258c12f0959a81cebaa0a5b91827535d65 | 27,239 | py | Python | python-modules/robcoewminterface/robcoewminterface/ewm.py | yschiebelhut/ewm-cloud-robotics | bdf3a6c13850d266b70168912494300c32d4d803 | [
"Apache-2.0"
] | 25 | 2019-07-31T12:50:33.000Z | 2022-01-11T15:53:40.000Z | python-modules/robcoewminterface/robcoewminterface/ewm.py | yschiebelhut/ewm-cloud-robotics | bdf3a6c13850d266b70168912494300c32d4d803 | [
"Apache-2.0"
] | 10 | 2019-07-11T13:12:12.000Z | 2022-03-15T15:46:58.000Z | python-modules/robcoewminterface/robcoewminterface/ewm.py | isabella232/ewm-cloud-robotics | 8210843df323379ded92ec14ec73b1f3ef6b2f41 | [
"Apache-2.0"
] | 23 | 2019-08-07T21:23:38.000Z | 2022-03-08T00:16:10.000Z | #!/usr/bin/env python3
# encoding: utf-8
#
# Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
#
# This file is part of ewm-cloud-robotics
# (see https://github.com/SAP/ewm-cloud-robotics).
#
# This file is licensed under the Apache Software License, v. 2 except as noted
# otherwise in the LIC... | 33.921544 | 98 | 0.598003 | 2,786 | 27,239 | 5.727925 | 0.110194 | 0.037097 | 0.059281 | 0.039291 | 0.692881 | 0.648264 | 0.615929 | 0.540795 | 0.526068 | 0.492668 | 0 | 0.002906 | 0.305224 | 27,239 | 802 | 99 | 33.96384 | 0.840317 | 0.231286 | 0 | 0.585635 | 0 | 0 | 0.098287 | 0.034256 | 0 | 0 | 0 | 0.001247 | 0 | 1 | 0.096685 | false | 0 | 0.024862 | 0 | 0.229282 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
74dd569b79e52382362c820740fae840ef4bfce6 | 4,121 | py | Python | pyflowline/mesh/tin/create_tin_mesh.py | changliao1025/pyflowline | fb8677c5ebb3d0db8638f7fcc495ffb97376e00f | [
"Unlicense"
] | 4 | 2022-03-23T12:10:20.000Z | 2022-03-29T13:41:16.000Z | pyflowline/mesh/tin/create_tin_mesh.py | changliao1025/pyflowline | fb8677c5ebb3d0db8638f7fcc495ffb97376e00f | [
"Unlicense"
] | 1 | 2022-03-24T16:08:35.000Z | 2022-03-24T16:08:35.000Z | pyflowline/mesh/tin/create_tin_mesh.py | changliao1025/pyflowline | fb8677c5ebb3d0db8638f7fcc495ffb97376e00f | [
"Unlicense"
] | null | null | null | import os, sys
import numpy as np
from osgeo import ogr
from pyflowline.classes.tin import pytin
from pyflowline.formats.convert_coordinates import convert_pcs_coordinates_to_cell
def create_tin_mesh(dX_left_in, dY_bot_in, dResolution_meter_in, ncolumn_in, nrow_in,
sFilename_output_in, sFilename_spatial_reference_... | 29.435714 | 92 | 0.499151 | 451 | 4,121 | 4.390244 | 0.305987 | 0.035354 | 0.034343 | 0.030303 | 0.226263 | 0.170707 | 0.170707 | 0.170707 | 0.170707 | 0.168687 | 0 | 0.051293 | 0.408639 | 4,121 | 139 | 93 | 29.647482 | 0.761182 | 0.078379 | 0 | 0.337209 | 0 | 0 | 0.005817 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011628 | false | 0.011628 | 0.05814 | 0 | 0.081395 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
74dfa0968b1a584e0d2faaacfbe4171a4e652fc1 | 1,415 | py | Python | 450.Delete-Node-in-a-BST.py | mickey0524/leetcode | 6bedeb6ff29b02a97178cca464c5fd639951801f | [
"MIT"
] | 18 | 2018-07-14T12:45:37.000Z | 2022-03-26T14:51:04.000Z | 450.Delete-Node-in-a-BST.py | mickey0524/leetcode | 6bedeb6ff29b02a97178cca464c5fd639951801f | [
"MIT"
] | null | null | null | 450.Delete-Node-in-a-BST.py | mickey0524/leetcode | 6bedeb6ff29b02a97178cca464c5fd639951801f | [
"MIT"
] | 3 | 2019-05-29T04:09:22.000Z | 2021-06-07T23:37:46.000Z | # https://leetcode.com/problems/delete-node-in-a-bst/
#
# algorithms
# Medium (38.78%)
# Total Accepted: 52,907
# Total Submissions: 136,417
# beats 93.27% of python submissions
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = ... | 23.983051 | 53 | 0.504594 | 165 | 1,415 | 4.266667 | 0.339394 | 0.076705 | 0.051136 | 0.039773 | 0.160511 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022809 | 0.411307 | 1,415 | 58 | 54 | 24.396552 | 0.822329 | 0.267138 | 0 | 0.15625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.34375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
74e04283616bdcecdb6e7f34d9657947a999aff3 | 8,407 | py | Python | tests/components/test_tasks.py | jbenden/pipeline | 43c5196e466324007cf6e2e173d4610102d6a838 | [
"MIT"
] | null | null | null | tests/components/test_tasks.py | jbenden/pipeline | 43c5196e466324007cf6e2e173d4610102d6a838 | [
"MIT"
] | null | null | null | tests/components/test_tasks.py | jbenden/pipeline | 43c5196e466324007cf6e2e173d4610102d6a838 | [
"MIT"
] | null | null | null | """Testing of class Tasks."""
# pylint: disable=no-self-use, invalid-name
import unittest
from hamcrest import assert_that, equal_to
from spline.components.tasks import Tasks, worker
from spline.components.hooks import Hooks
from spline.components.config import ApplicationOptions
from spline.pipeline import PipelineDa... | 43.559585 | 104 | 0.569406 | 940 | 8,407 | 4.973404 | 0.12234 | 0.08984 | 0.068449 | 0.030588 | 0.698824 | 0.679144 | 0.629305 | 0.61369 | 0.561711 | 0.543316 | 0 | 0.0139 | 0.246937 | 8,407 | 192 | 105 | 43.786458 | 0.72453 | 0.067801 | 0 | 0.542254 | 0 | 0 | 0.156966 | 0.006825 | 0 | 0 | 0 | 0 | 0.295775 | 1 | 0.077465 | false | 0 | 0.042254 | 0 | 0.133803 | 0.007042 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
74e0e926c6c1b0dd7463e03c1ecc0a04002c96d2 | 9,119 | py | Python | src/utils/stalkMarketGraphs.py | amadea-system/StalkMarketBot | dc43e496e49361fe75ce9b94486981e134edc39e | [
"Apache-2.0"
] | null | null | null | src/utils/stalkMarketGraphs.py | amadea-system/StalkMarketBot | dc43e496e49361fe75ce9b94486981e134edc39e | [
"Apache-2.0"
] | null | null | null | src/utils/stalkMarketGraphs.py | amadea-system/StalkMarketBot | dc43e496e49361fe75ce9b94486981e134edc39e | [
"Apache-2.0"
] | null | null | null | """
Graphing code for Stalk Market Predictions
Part of Stalk Market Bot.
"""
import logging
from io import BytesIO
from typing import TYPE_CHECKING, Optional, Dict, List, Union, Tuple, NamedTuple, Any
import matplotlib.pyplot as plt
from scipy.interpolate import Akima1DInterpolator, pchip_interpolate
import numpy as... | 33.40293 | 160 | 0.605768 | 1,198 | 9,119 | 4.394825 | 0.222037 | 0.018993 | 0.020513 | 0.014625 | 0.392403 | 0.34302 | 0.225071 | 0.154226 | 0.137132 | 0.121937 | 0 | 0.022034 | 0.273385 | 9,119 | 272 | 161 | 33.525735 | 0.772563 | 0.137515 | 0 | 0.233645 | 0 | 0 | 0.161243 | 0.066362 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037383 | false | 0 | 0.084112 | 0 | 0.158879 | 0.018692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
74e246baa4ba88b3c44d649fb3735c42f268b166 | 2,719 | py | Python | addr/parser.py | euske/osmtools | 581da9129f489cb57763578127ead42fa43b5c1f | [
"MIT"
] | null | null | null | addr/parser.py | euske/osmtools | 581da9129f489cb57763578127ead42fa43b5c1f | [
"MIT"
] | null | null | null | addr/parser.py | euske/osmtools | 581da9129f489cb57763578127ead42fa43b5c1f | [
"MIT"
] | 3 | 2015-12-27T22:13:40.000Z | 2019-12-23T14:34:54.000Z | #!/usr/bin/env python
import sys
import xml.parsers.expat
## Parser
##
class Parser(object):
def __init__(self):
self.pos = {}
self.name = {}
self._state = 0
self._expat = xml.parsers.expat.ParserCreate()
self._expat.StartElementHandler = self._start_element
s... | 28.030928 | 70 | 0.515631 | 341 | 2,719 | 3.953079 | 0.293255 | 0.126855 | 0.086795 | 0.031157 | 0.12092 | 0.075668 | 0.035608 | 0 | 0 | 0 | 0 | 0.01644 | 0.351232 | 2,719 | 96 | 71 | 28.322917 | 0.747732 | 0.049283 | 0 | 0.210526 | 0 | 0 | 0.047009 | 0.009713 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092105 | false | 0 | 0.078947 | 0 | 0.276316 | 0.013158 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
74e3c847b45abe7dd310f46f2b20094db76be087 | 9,934 | py | Python | tests/test_functions.py | Qfabiolous/QuanGuru | 285ca44ae857cc61337f73ea2eb600f485a09e32 | [
"BSD-3-Clause"
] | 9 | 2021-05-23T06:30:45.000Z | 2021-12-27T13:33:54.000Z | tests/test_functions.py | cahitkargi/QuanGuru | 9b5c94465cd58bc32f6ff845f29dfdec7e0f9075 | [
"BSD-3-Clause"
] | 26 | 2022-03-18T02:40:54.000Z | 2022-03-25T07:00:25.000Z | tests/test_functions.py | cahitkargi/QuanGuru | 9b5c94465cd58bc32f6ff845f29dfdec7e0f9075 | [
"BSD-3-Clause"
] | 5 | 2021-05-23T06:30:24.000Z | 2022-02-04T02:40:08.000Z | import numpy as np
import pytest
from quanguru.QuantumToolbox import linearAlgebra as la #pylint: disable=import-error
from quanguru.QuantumToolbox import operators as ops #pylint: disable=import-error
from quanguru.QuantumToolbox import functions as fns #pylint: disable=import-error
#testCase = collections.namedtuple(... | 58.781065 | 118 | 0.649487 | 1,457 | 9,934 | 4.415923 | 0.131778 | 0.014921 | 0.016786 | 0.019894 | 0.61004 | 0.551912 | 0.515853 | 0.460989 | 0.409854 | 0.38281 | 0 | 0.052037 | 0.179787 | 9,934 | 168 | 119 | 59.130952 | 0.737604 | 0.147876 | 0 | 0.234043 | 0 | 0 | 0.0296 | 0 | 0 | 0 | 0 | 0 | 0.170213 | 1 | 0.078014 | false | 0 | 0.035461 | 0 | 0.113475 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
74e8211474a71b34bfa3a7500bf5a3ef7c8f9bf0 | 700 | py | Python | 2020/day09/two.py | geberl/advent-of-code | 152ac94676830ac920bf06a1a3f1aa88377cd775 | [
"MIT"
] | null | null | null | 2020/day09/two.py | geberl/advent-of-code | 152ac94676830ac920bf06a1a3f1aa88377cd775 | [
"MIT"
] | null | null | null | 2020/day09/two.py | geberl/advent-of-code | 152ac94676830ac920bf06a1a3f1aa88377cd775 | [
"MIT"
] | null | null | null | TARGET = 776203571
data = []
with open("input.txt") as file_handler:
for n, line in enumerate(file_handler):
data.append(int(line.strip()))
def contiguous_sum(index):
c_sum = 0
for i in range(index, len(data)):
c_sum += data[i]
if c_sum == TARGET:
return True, i
... | 24.137931 | 57 | 0.594286 | 99 | 700 | 4.010101 | 0.434343 | 0.050378 | 0.075567 | 0.080605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022267 | 0.294286 | 700 | 28 | 58 | 25 | 0.781377 | 0 | 0 | 0 | 0 | 0 | 0.031429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0.045455 | 0 | 0 | 0.136364 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
74f235f44770ebb4082a9f693309b40e2e0bc8f1 | 3,907 | py | Python | PIDKiller.py | godoyp/PIDKiller | 94ae8b77b5e5bca0552dee4ecaa1c1da16d3b39e | [
"MIT"
] | null | null | null | PIDKiller.py | godoyp/PIDKiller | 94ae8b77b5e5bca0552dee4ecaa1c1da16d3b39e | [
"MIT"
] | null | null | null | PIDKiller.py | godoyp/PIDKiller | 94ae8b77b5e5bca0552dee4ecaa1c1da16d3b39e | [
"MIT"
] | null | null | null | # Modulos
import PySimpleGUI as Sg
import wmi
from smb.SMBConnection import SMBConnection
from configparser import ConfigParser
from time import sleep
import sys
from multiprocessing import Process, freeze_support
# Variavel de controle do While (sair = 1 finaliza o programa)
sair = 0
# Carrega o arquivo ... | 33.681034 | 114 | 0.594574 | 466 | 3,907 | 4.918455 | 0.446352 | 0.026178 | 0.039267 | 0.063264 | 0.118237 | 0.098168 | 0.098168 | 0.080279 | 0.041012 | 0.041012 | 0 | 0.019788 | 0.275659 | 3,907 | 115 | 115 | 33.973913 | 0.790106 | 0.113386 | 0 | 0.064103 | 0 | 0 | 0.210968 | 0.011387 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0.038462 | 0.089744 | 0 | 0.115385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
74f2722b6fd0d9275b8a2fdd984c9a1ced8700d9 | 21,298 | py | Python | eventdata/parameter_sources/randomevent.py | ywelsch/rally-eventdata-track | 148fe2ffc90f192a1d3d68c614031e40ecc67eae | [
"Apache-2.0"
] | 33 | 2017-02-22T17:59:46.000Z | 2021-11-02T07:07:40.000Z | eventdata/parameter_sources/randomevent.py | ywelsch/rally-eventdata-track | 148fe2ffc90f192a1d3d68c614031e40ecc67eae | [
"Apache-2.0"
] | 68 | 2017-03-10T12:57:36.000Z | 2021-07-14T14:26:03.000Z | eventdata/parameter_sources/randomevent.py | isabella232/rally-eventdata-track | d7f25419ba3ef554998d89caa3fdb5a2d2100d41 | [
"Apache-2.0"
] | 45 | 2017-02-22T18:03:58.000Z | 2022-01-01T02:18:41.000Z | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | 51.569007 | 196 | 0.621326 | 2,612 | 21,298 | 4.721286 | 0.12902 | 0.041599 | 0.073954 | 0.027733 | 0.566818 | 0.495864 | 0.453779 | 0.366607 | 0.353876 | 0.252595 | 0 | 0.007143 | 0.250681 | 21,298 | 412 | 197 | 51.694175 | 0.765587 | 0.076909 | 0 | 0.273846 | 0 | 0.027692 | 0.238792 | 0.127471 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052308 | false | 0 | 0.030769 | 0 | 0.141538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
74f423b852ccc3707d9d4c3d66b423e8f820b294 | 11,608 | py | Python | scripts/tracking/main_tracking.py | MaaaasayaK/Self-Supervised-Small-Soccer-Player-Detection-Tracking | 96d87367afdf4cca8aeca3f32c313e8632c70fe4 | [
"MIT"
] | 1 | 2021-08-17T18:22:12.000Z | 2021-08-17T18:22:12.000Z | scripts/tracking/main_tracking.py | cballester/Self-Supervised-Small-Soccer-Player-Detection-Tracking | a5d2d0c31a992919a270bd0e02379844196271f0 | [
"MIT"
] | null | null | null | scripts/tracking/main_tracking.py | cballester/Self-Supervised-Small-Soccer-Player-Detection-Tracking | a5d2d0c31a992919a270bd0e02379844196271f0 | [
"MIT"
] | 1 | 2021-08-19T14:21:52.000Z | 2021-08-19T14:21:52.000Z | import sys
import torchvision
import os
import torch
from tracking_utils import light_track
from natsort import natsorted, ns
import numpy as np
from argparse import ArgumentParser
if __name__ == '__main__':
parser = ArgumentParser()
parser.add_argument('--data_name', type=str, default='issia')
parser.add... | 50.912281 | 139 | 0.67419 | 1,475 | 11,608 | 4.959322 | 0.139661 | 0.052905 | 0.099932 | 0.031579 | 0.453042 | 0.379631 | 0.332878 | 0.225974 | 0.200547 | 0.159535 | 0 | 0.01086 | 0.21468 | 11,608 | 227 | 140 | 51.136564 | 0.791575 | 0.002154 | 0 | 0.188776 | 0 | 0 | 0.154238 | 0.049253 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066327 | 0 | 0.066327 | 0.010204 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
74f5824cf904c5800c6d4ef10dc07a58fe417b71 | 7,245 | py | Python | src/analyse/ternary.py | timtroendle/money-land | fe3ed6e531cfe91156886d4fa685a14840749f36 | [
"MIT"
] | null | null | null | src/analyse/ternary.py | timtroendle/money-land | fe3ed6e531cfe91156886d4fa685a14840749f36 | [
"MIT"
] | null | null | null | src/analyse/ternary.py | timtroendle/money-land | fe3ed6e531cfe91156886d4fa685a14840749f36 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
import ternary
import numpy as np
import pandas as pd
import xarray as xr
import matplotlib
import matplotlib.pyplot as plt
from matplotlib import gridspec
import seaborn as sns
TICK_FONT_SIZE = 9
RED = "#A01914"
BLUE = "#4F6DB8"
SEQUENTIAL_PALETTE = sns.light_palette(RED, as_cmap=T... | 35.866337 | 117 | 0.642926 | 1,029 | 7,245 | 4.314869 | 0.217687 | 0.026351 | 0.040541 | 0.042117 | 0.496622 | 0.43018 | 0.373423 | 0.336486 | 0.301351 | 0.281532 | 0 | 0.03263 | 0.208972 | 7,245 | 201 | 118 | 36.044776 | 0.741057 | 0.007315 | 0 | 0.264045 | 0 | 0 | 0.077608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033708 | false | 0 | 0.050562 | 0 | 0.134831 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
74f5eeb590efc75b4298bcbbba1e165b62b754b6 | 20,491 | py | Python | cogs/game/minigames/black_box/game.py | FellowHashbrown/omega-psi-py | 4ea33cdbef15ffaa537f2c9e382de508c58093fc | [
"MIT"
] | 4 | 2018-12-23T08:49:40.000Z | 2021-03-25T16:51:43.000Z | cogs/game/minigames/black_box/game.py | FellowHashbrown/omega-psi-py | 4ea33cdbef15ffaa537f2c9e382de508c58093fc | [
"MIT"
] | 23 | 2020-11-03T17:40:40.000Z | 2022-02-01T17:12:59.000Z | cogs/game/minigames/black_box/game.py | FellowHashbrown/omega-psi-py | 4ea33cdbef15ffaa537f2c9e382de508c58093fc | [
"MIT"
] | 1 | 2019-07-11T23:40:13.000Z | 2019-07-11T23:40:13.000Z | from discord import Embed
from random import randint
from cogs.errors import get_error_message
from cogs.game.minigames.base_game.game import Game
from cogs.game.minigames.black_box.variables import NUMBERS, SYMBOLS, LEFT, RIGHT, UP, DOWN, GUESS, DIRECT, FINALIZE, HIT, MISS
from cogs.game.minigames.functions import wa... | 43.229958 | 127 | 0.516373 | 2,346 | 20,491 | 4.426257 | 0.127451 | 0.037558 | 0.023112 | 0.023112 | 0.499037 | 0.39975 | 0.356029 | 0.289099 | 0.267623 | 0.242103 | 0 | 0.012264 | 0.391147 | 20,491 | 473 | 128 | 43.321353 | 0.820055 | 0.128886 | 0 | 0.343558 | 0 | 0 | 0.0724 | 0.001392 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009202 | false | 0 | 0.02454 | 0 | 0.046012 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
74f9d1119f5a828ec576c313747eb837e48217fb | 3,437 | py | Python | rewrite_example.py | Giangblackk/hacksterio-smart-nids | 283166e8880aaeb280520053b4dcd431d30b3ed3 | [
"MIT"
] | null | null | null | rewrite_example.py | Giangblackk/hacksterio-smart-nids | 283166e8880aaeb280520053b4dcd431d30b3ed3 | [
"MIT"
] | null | null | null | rewrite_example.py | Giangblackk/hacksterio-smart-nids | 283166e8880aaeb280520053b4dcd431d30b3ed3 | [
"MIT"
] | null | null | null | # Steps for offline training:
# 1. load benign pcap file
# 2. extract features
# 3. train feature mapper model and save model
import numpy as np
from kitsune.FeatureExtractor import FE
from kitsune.KitNET import corClust as CC
from kitsune.KitNET import dA as AE
from scipy.stats import norm
from matplotlib import pyplo... | 26.037879 | 85 | 0.609252 | 450 | 3,437 | 4.533333 | 0.353333 | 0.029412 | 0.019608 | 0.017647 | 0.216176 | 0.216176 | 0.216176 | 0.216176 | 0.216176 | 0.216176 | 0 | 0.026283 | 0.291533 | 3,437 | 131 | 86 | 26.236641 | 0.811499 | 0.142566 | 0 | 0.4 | 0 | 0 | 0.072721 | 0.013998 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
74fb274c512334729a04267dec3df32bc39cd9ae | 452 | py | Python | position/urls.py | drowolath/position | 2d27a56732d195003d35762931fd2484ac270501 | [
"BSD-2-Clause"
] | null | null | null | position/urls.py | drowolath/position | 2d27a56732d195003d35762931fd2484ac270501 | [
"BSD-2-Clause"
] | null | null | null | position/urls.py | drowolath/position | 2d27a56732d195003d35762931fd2484ac270501 | [
"BSD-2-Clause"
] | null | null | null | import views
from django.conf.urls import url
urlpatterns = [
url(
r'(?P<latitude>[\d.@+-]+)/(?P<longitude>[\d.@+-]+)',
views.mapit,
name='mapit'),
url(
r'(?P<name>[\alphanum]+)',
views.trackers,
name='named_liveposition'),
url(
r'(?P<imei>\d{15})',
... | 19.652174 | 60 | 0.462389 | 47 | 452 | 4.425532 | 0.468085 | 0.076923 | 0.072115 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006579 | 0.327434 | 452 | 22 | 61 | 20.545455 | 0.677632 | 0 | 0 | 0.3 | 0 | 0 | 0.283186 | 0.154867 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
74fd94e4feeda1bcbc1a8631162221222bc2c165 | 2,010 | py | Python | bin/run_all_benchmarks.py | finiteautomata/finetune_vs_scratch | 444c9f9f2e1086f833c674e5d819b7a16ff8345a | [
"MIT"
] | 12 | 2021-11-19T18:40:17.000Z | 2022-03-07T10:56:54.000Z | bin/run_all_benchmarks.py | finiteautomata/finetune_vs_scratch | 444c9f9f2e1086f833c674e5d819b7a16ff8345a | [
"MIT"
] | 2 | 2022-02-20T17:28:00.000Z | 2022-03-06T21:34:21.000Z | bin/run_all_benchmarks.py | finiteautomata/finetune_vs_scratch | 444c9f9f2e1086f833c674e5d819b7a16ff8345a | [
"MIT"
] | null | null | null | import os
import re
import fire
import json
import logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
def run_all(times=10):
models = [
("finiteautomata/robertuito-base-uncased", "robertuito-uncased.json"),
("finiteautomata/robertuito-base-cased", "robertuito-cas... | 34.655172 | 106 | 0.621891 | 243 | 2,010 | 5.00823 | 0.292181 | 0.081348 | 0.09203 | 0.069022 | 0.050945 | 0.050945 | 0 | 0 | 0 | 0 | 0 | 0.049296 | 0.222886 | 2,010 | 57 | 107 | 35.263158 | 0.729834 | 0 | 0 | 0.044444 | 0 | 0 | 0.471877 | 0.317571 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0 | 0.111111 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
74fdb498bb4874db8d8ec3451adbf242259fd94c | 1,110 | py | Python | Python/Backspace_String_Compare.py | treethree/LeetCode | 4c6d6e1ee92d87424fe5b9f20b8eef8d34e74761 | [
"Unlicense"
] | null | null | null | Python/Backspace_String_Compare.py | treethree/LeetCode | 4c6d6e1ee92d87424fe5b9f20b8eef8d34e74761 | [
"Unlicense"
] | null | null | null | Python/Backspace_String_Compare.py | treethree/LeetCode | 4c6d6e1ee92d87424fe5b9f20b8eef8d34e74761 | [
"Unlicense"
] | null | null | null | #Approach #1: Build String(Stack)
#Time Complexity: O(M + N), where M, N are the lengths of S and T respectively.
#Space Complexity: O(M + N).
class Solution(object):
def backspaceCompare(self, S, T):
def build(S):
ans = []
for c in S:
if c != '#':
... | 32.647059 | 79 | 0.43964 | 159 | 1,110 | 3.069182 | 0.320755 | 0.020492 | 0.07377 | 0.079918 | 0.397541 | 0.295082 | 0.295082 | 0.295082 | 0.295082 | 0.295082 | 0 | 0.030628 | 0.411712 | 1,110 | 33 | 80 | 33.636364 | 0.716692 | 0.234234 | 0 | 0.08 | 0 | 0 | 0.005938 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0 | 0 | 0.32 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
74fe0f956d636c3650d5cdff79ce6ca98d344de7 | 7,008 | py | Python | hyperion/pdfs/jfa/jfa_total.py | hyperion-ml/hyperion | c4c9eee0acab1ba572843373245da12d00dfffaa | [
"Apache-2.0"
] | 14 | 2021-12-19T04:24:15.000Z | 2022-03-18T03:24:04.000Z | hyperion/pdfs/jfa/jfa_total.py | hyperion-ml/hyperion | c4c9eee0acab1ba572843373245da12d00dfffaa | [
"Apache-2.0"
] | null | null | null | hyperion/pdfs/jfa/jfa_total.py | hyperion-ml/hyperion | c4c9eee0acab1ba572843373245da12d00dfffaa | [
"Apache-2.0"
] | 5 | 2021-12-14T20:41:27.000Z | 2022-02-24T14:18:11.000Z | """
Copyright 2018 Johns Hopkins University (Author: Jesus Villalba)
Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
"""
import numpy as np
from scipy import linalg as sla
from ...hyp_defs import float_cpu
from ...utils.math import (
invert_pdmat,
invert_trimat,
logdet_pdmat,
vec2symmat,
... | 27.057915 | 88 | 0.516124 | 1,043 | 7,008 | 3.25791 | 0.152445 | 0.028252 | 0.045909 | 0.02472 | 0.187758 | 0.119482 | 0.099176 | 0.053855 | 0.053855 | 0.035315 | 0 | 0.009097 | 0.356878 | 7,008 | 258 | 89 | 27.162791 | 0.744841 | 0.018122 | 0 | 0.17 | 0 | 0 | 0.002329 | 0 | 0 | 0 | 0 | 0 | 0.01 | 1 | 0.09 | false | 0.005 | 0.025 | 0 | 0.19 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2d00069adda8a7efef667916f453029310a82aea | 515 | py | Python | CodeChef/Python/arrange.py | dfm066/Programming | 53d28460cd40b966cca1d4695d9dc6792ced4c6f | [
"MIT"
] | null | null | null | CodeChef/Python/arrange.py | dfm066/Programming | 53d28460cd40b966cca1d4695d9dc6792ced4c6f | [
"MIT"
] | null | null | null | CodeChef/Python/arrange.py | dfm066/Programming | 53d28460cd40b966cca1d4695d9dc6792ced4c6f | [
"MIT"
] | null | null | null | facts = [1]
fact = 1
for i in range(1,100001):
fact *= i
fact %= 1000000007
facts.append(fact)
T = int(input())
letters = []
for i in range(0,26):
letters.append(0)
while T > 0:
T -= 1
s = input()
cnt = 0
ans = 1
for i in s:
letters[ord(i)-97] += 1
for ... | 19.074074 | 36 | 0.464078 | 79 | 515 | 3.025316 | 0.303797 | 0.083682 | 0.125523 | 0.087866 | 0.175732 | 0.175732 | 0.175732 | 0 | 0 | 0 | 0 | 0.14791 | 0.396117 | 515 | 26 | 37 | 19.807692 | 0.620579 | 0 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
2d0218e45fe129209799296000566bde73d084af | 4,380 | py | Python | poptimizer/shared/app.py | poliyev/poptimizer | 71935c4365b0572e65b6d3172f925701dda283db | [
"Unlicense"
] | null | null | null | poptimizer/shared/app.py | poliyev/poptimizer | 71935c4365b0572e65b6d3172f925701dda283db | [
"Unlicense"
] | null | null | null | poptimizer/shared/app.py | poliyev/poptimizer | 71935c4365b0572e65b6d3172f925701dda283db | [
"Unlicense"
] | 1 | 2021-12-02T13:32:44.000Z | 2021-12-02T13:32:44.000Z | """Unit of Work and EventBus."""
import asyncio
import contextlib
from types import TracebackType
from typing import Callable, Generic, Optional, TypeVar
from poptimizer import config
from poptimizer.shared import adapters, domain
EntityType = TypeVar("EntityType", bound=domain.BaseEntity)
class UoW(
contextlib... | 32.686567 | 99 | 0.663242 | 473 | 4,380 | 5.938689 | 0.40592 | 0.040584 | 0.017088 | 0.02848 | 0.055536 | 0.055536 | 0.032752 | 0.032752 | 0 | 0 | 0 | 0 | 0.241781 | 4,380 | 133 | 100 | 32.932331 | 0.84583 | 0.136301 | 0 | 0.130952 | 0 | 0 | 0.016695 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059524 | false | 0 | 0.071429 | 0 | 0.22619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2d04272c0dbb7d2f3b68496a3df2f8724ac5e827 | 1,372 | py | Python | osh/builtin_misc_test.py | Schweinepriester/oil | 8b0e5c58a825223341896064d63a95c8b57a9c05 | [
"Apache-2.0"
] | 2,209 | 2016-11-20T10:32:58.000Z | 2022-03-31T20:51:27.000Z | osh/builtin_misc_test.py | Schweinepriester/oil | 8b0e5c58a825223341896064d63a95c8b57a9c05 | [
"Apache-2.0"
] | 1,074 | 2016-12-07T05:02:48.000Z | 2022-03-22T02:09:11.000Z | osh/builtin_misc_test.py | Schweinepriester/oil | 8b0e5c58a825223341896064d63a95c8b57a9c05 | [
"Apache-2.0"
] | 147 | 2016-12-11T04:13:28.000Z | 2022-03-27T14:50:00.000Z | #!/usr/bin/env python2
"""
builtin_misc_test.py: Tests for builtin_misc.py
"""
from __future__ import print_function
import unittest
from core import pyutil
from frontend import flag_def # side effect: flags are defined!
_ = flag_def
from osh import split
from osh import builtin_misc # module under test
class Bui... | 28 | 77 | 0.648688 | 190 | 1,372 | 4.531579 | 0.573684 | 0.063879 | 0.010453 | 0.011614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004744 | 0.231778 | 1,372 | 48 | 78 | 28.583333 | 0.812144 | 0.290087 | 0 | 0 | 0 | 0 | 0.055208 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 1 | 0.068966 | false | 0 | 0.206897 | 0 | 0.310345 | 0.137931 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2d060e9092d4d4c7bf4bc0ec5921fae018518af1 | 3,670 | py | Python | src/python/dart/service/message.py | RetailMeNotSandbox/dart | 58a05f56c04fadd6741501262d92aeb143cd2f2e | [
"MIT"
] | 18 | 2016-03-03T19:10:21.000Z | 2021-07-14T22:37:35.000Z | src/python/dart/service/message.py | RetailMeNotSandbox/dart | 58a05f56c04fadd6741501262d92aeb143cd2f2e | [
"MIT"
] | 62 | 2016-04-11T15:17:23.000Z | 2017-09-08T17:18:53.000Z | src/python/dart/service/message.py | RetailMeNotSandbox/dart | 58a05f56c04fadd6741501262d92aeb143cd2f2e | [
"MIT"
] | 15 | 2016-03-03T15:38:34.000Z | 2019-03-27T19:33:08.000Z | import os
import boto3
from boto.regioninfo import RegionInfo
from sqlalchemy import text
from dart.model.orm import MessageDao
from dart.context.database import db
from dart.service.patcher import patch_difference
class MessageService(object):
def __init__(self, ecs_task_status_override=None, region='us-east-1')... | 39.462366 | 109 | 0.672207 | 459 | 3,670 | 5.11329 | 0.283224 | 0.068172 | 0.033234 | 0.053686 | 0.149127 | 0.051981 | 0 | 0 | 0 | 0 | 0 | 0.002482 | 0.231608 | 3,670 | 92 | 110 | 39.891304 | 0.829787 | 0.128338 | 0 | 0.150685 | 0 | 0 | 0.114744 | 0.009745 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109589 | false | 0.013699 | 0.09589 | 0 | 0.438356 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2d06a010a220a8f3363a231e8addbcd8ff9894e9 | 770 | py | Python | setPixmap.py | EvaGalois/LinsImgPro | daed9bffcf5bea6bf41f36d21f773be18374f7bc | [
"MIT"
] | 1 | 2020-05-19T08:58:58.000Z | 2020-05-19T08:58:58.000Z | setPixmap.py | EvaGalois/LinsImgPro | daed9bffcf5bea6bf41f36d21f773be18374f7bc | [
"MIT"
] | null | null | null | setPixmap.py | EvaGalois/LinsImgPro | daed9bffcf5bea6bf41f36d21f773be18374f7bc | [
"MIT"
] | null | null | null | import sys
from PyQt5.QtWidgets import QApplication, QWidget, QHBoxLayout, QLabel
from PyQt5.QtGui import QPixmap
class Example(QWidget):
def __init__(self):
super().__init__()
self.initUI()
def initUI(self):
hbox = QHBoxLayout(self) # 创建布局
lb1 = QLabel(self) # 实例化 QLabel... | 24.83871 | 74 | 0.618182 | 91 | 770 | 5.043956 | 0.571429 | 0.039216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022847 | 0.261039 | 770 | 31 | 75 | 24.83871 | 0.783831 | 0.171429 | 0 | 0 | 0 | 0 | 0.053883 | 0.033281 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.15 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2d075408ad95df9320ec62cc02811a6bf1787742 | 3,292 | py | Python | tests/test_exporter.py | coderanger/celery-local-exporter | 3db869b7e0ec09309834b8835c619edbe8898504 | [
"Apache-2.0"
] | 3 | 2020-06-30T22:26:18.000Z | 2021-09-27T23:52:11.000Z | tests/test_exporter.py | coderanger/celery-local-exporter | 3db869b7e0ec09309834b8835c619edbe8898504 | [
"Apache-2.0"
] | null | null | null | tests/test_exporter.py | coderanger/celery-local-exporter | 3db869b7e0ec09309834b8835c619edbe8898504 | [
"Apache-2.0"
] | null | null | null | import os
import os.path
import subprocess
import sys
import time
import pytest
import requests
@pytest.fixture
def launch_worker(tmp_path_factory):
procs = []
def _inner(pool="threads", *args):
if procs:
raise ValueError("already started")
os.environ["DATA_FOLDER_IN"] = str(tmp_... | 23.683453 | 80 | 0.559235 | 416 | 3,292 | 4.247596 | 0.278846 | 0.061121 | 0.054329 | 0.022637 | 0.55631 | 0.473118 | 0.442558 | 0.442558 | 0.332201 | 0.306735 | 0 | 0.025877 | 0.307412 | 3,292 | 138 | 81 | 23.855072 | 0.749123 | 0.029465 | 0 | 0.278846 | 0 | 0 | 0.196524 | 0.114305 | 0 | 0 | 0 | 0 | 0.096154 | 1 | 0.076923 | false | 0 | 0.067308 | 0 | 0.173077 | 0.019231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2d0a2f1569fadbc34d20318046924ba2aa98f716 | 2,906 | py | Python | examples/Structural/main.py | HerminioTH/GeoFlow1D | 44a5c11e3297827b265c1ea44bb18256b074fa66 | [
"MIT"
] | 2 | 2020-02-10T11:23:16.000Z | 2020-07-01T20:28:57.000Z | examples/Structural/main.py | HerminioTH/GeoFlow1D | 44a5c11e3297827b265c1ea44bb18256b074fa66 | [
"MIT"
] | null | null | null | examples/Structural/main.py | HerminioTH/GeoFlow1D | 44a5c11e3297827b265c1ea44bb18256b074fa66 | [
"MIT"
] | null | null | null | import geoflow1D
from geoflow1D.GridModule import *
from geoflow1D.FieldsModule import *
from geoflow1D.LinearSystemModule import *
from geoflow1D.GeoModule import *
from geoflow1D.SolverModule import *
import numpy as np
from matplotlib import pyplot as plt
# -------------- PROBLEM ILLUSTRATION -----------------
# ... | 29.653061 | 56 | 0.456986 | 260 | 2,906 | 5.011538 | 0.442308 | 0.049885 | 0.058327 | 0.056792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018428 | 0.15967 | 2,906 | 97 | 57 | 29.958763 | 0.515152 | 0.433586 | 0 | 0 | 0 | 0 | 0.031056 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.16 | 0 | 0.24 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2d0e5939c50882dfd177fbde933852e0ecf02d4f | 1,024 | py | Python | torch2trt/converters/matmul.py | grimoire/torch2trt | bf65d573f69879442d542e16c6280de4a1354d72 | [
"MIT"
] | null | null | null | torch2trt/converters/matmul.py | grimoire/torch2trt | bf65d573f69879442d542e16c6280de4a1354d72 | [
"MIT"
] | null | null | null | torch2trt/converters/matmul.py | grimoire/torch2trt | bf65d573f69879442d542e16c6280de4a1354d72 | [
"MIT"
] | null | null | null | from torch2trt.torch2trt import *
from torch2trt.module_test import add_module_test
import tensorrt as trt
@tensorrt_converter('torch.matmul')
def convert_matmul(ctx):
input_a = ctx.method_args[0]
input_b = ctx.method_args[1]
input_a_trt, input_b_trt = trt_(ctx.network, input_a, input_b)
output = ctx.... | 32 | 83 | 0.6875 | 164 | 1,024 | 4.018293 | 0.29878 | 0.091047 | 0.098634 | 0.109256 | 0.273141 | 0.273141 | 0.273141 | 0.273141 | 0.273141 | 0.273141 | 0 | 0.044983 | 0.15332 | 1,024 | 32 | 84 | 32 | 0.71511 | 0.069336 | 0 | 0 | 0 | 0 | 0.02521 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.136364 | 0.090909 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2d1213c410c2a6b8aac4888a4f6bc94463fa2640 | 4,538 | py | Python | HayStack_Client/IOTA_Module.py | ConsensusGroup/Haystack | c2d0b8fb7b2064b05a5d256bb949dda9a0ef569d | [
"MIT"
] | 1 | 2019-11-28T08:50:26.000Z | 2019-11-28T08:50:26.000Z | HayStack_Client/IOTA_Module.py | ConsensusGroup/Haystack | c2d0b8fb7b2064b05a5d256bb949dda9a0ef569d | [
"MIT"
] | 3 | 2019-11-22T04:23:47.000Z | 2019-11-30T07:11:24.000Z | HayStack_Client/IOTA_Module.py | ConsensusGroup/Haystack | c2d0b8fb7b2064b05a5d256bb949dda9a0ef569d | [
"MIT"
] | 3 | 2018-03-19T05:20:44.000Z | 2019-11-22T00:56:31.000Z | ####################################################################################
############# The purpose of the module is to handle IOTA interactions #############
####################################################################################
#IOTA library
from iota import TryteString, Address, ProposedBun... | 33.865672 | 124 | 0.666373 | 568 | 4,538 | 5.167254 | 0.272887 | 0.027257 | 0.037479 | 0.025554 | 0.185349 | 0.139012 | 0.139012 | 0.139012 | 0.139012 | 0.112436 | 0 | 0.015763 | 0.175187 | 4,538 | 133 | 125 | 34.120301 | 0.768368 | 0.078889 | 0 | 0.10101 | 0 | 0 | 0.052485 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.080808 | false | 0 | 0.090909 | 0 | 0.242424 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2d15578f96b8143429650898e1882b35ef941ed3 | 2,412 | py | Python | demo.py | TiagoFilipeSousaGoncalves/code2model-codesprinters | 9f38a994a3a1036916ea82f9523baa8a5eed8226 | [
"MIT"
] | null | null | null | demo.py | TiagoFilipeSousaGoncalves/code2model-codesprinters | 9f38a994a3a1036916ea82f9523baa8a5eed8226 | [
"MIT"
] | null | null | null | demo.py | TiagoFilipeSousaGoncalves/code2model-codesprinters | 9f38a994a3a1036916ea82f9523baa8a5eed8226 | [
"MIT"
] | null | null | null | # Imports
import streamlit as st
import pandas as pd
import difflib
# Load results .CSV
code_simil_results = pd.read_csv('results/resultados.csv')
prog_lang_results = pd.read_csv('results/resultados_language.csv')
# Create a select box to choose the demo
add_selectbox = st.sidebar.selectbox(
"W... | 28.714286 | 98 | 0.620232 | 306 | 2,412 | 4.699346 | 0.29085 | 0.05007 | 0.066759 | 0.091794 | 0.363004 | 0.363004 | 0.308067 | 0.207928 | 0.128651 | 0.128651 | 0 | 0.013296 | 0.251658 | 2,412 | 83 | 99 | 29.060241 | 0.78338 | 0.062604 | 0 | 0.208333 | 0 | 0 | 0.220277 | 0.024424 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2d1ab381951528b1b2a476a21ada75863d82ce29 | 2,436 | py | Python | Bot.py | Grohiik/BotMauData2020 | 7b7eecca1b5fdc73a0e9b3593cea62b2fb1333f8 | [
"MIT"
] | null | null | null | Bot.py | Grohiik/BotMauData2020 | 7b7eecca1b5fdc73a0e9b3593cea62b2fb1333f8 | [
"MIT"
] | null | null | null | Bot.py | Grohiik/BotMauData2020 | 7b7eecca1b5fdc73a0e9b3593cea62b2fb1333f8 | [
"MIT"
] | null | null | null | import discord
from discord.ext import commands
from secrets import Token as Token
bot = commands.Bot(command_prefix="!")
role_add_channel_id = 750036407757832242
@bot.event
async def on_message(message):
if bot.user == message.author:
return
if message.channel.id == role_add_channel_id:
awai... | 29 | 89 | 0.614122 | 316 | 2,436 | 4.655063 | 0.316456 | 0.038069 | 0.03535 | 0.043508 | 0.35758 | 0.333107 | 0.265126 | 0.265126 | 0.176751 | 0.176751 | 0 | 0.022311 | 0.28243 | 2,436 | 83 | 90 | 29.349398 | 0.81865 | 0.055829 | 0 | 0.290323 | 0 | 0 | 0.099782 | 0.018301 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.048387 | 0 | 0.064516 | 0.016129 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2d1abf839257188564b4d1db171a9a9e2fcac08f | 1,572 | py | Python | cms/blocks.py | mitodl/micromasters | 2b1df8ac7c4395cc0a0227d936b3f021f0ae3019 | [
"BSD-3-Clause"
] | 32 | 2016-03-25T01:03:13.000Z | 2022-01-15T19:35:42.000Z | cms/blocks.py | mitodl/micromasters | 2b1df8ac7c4395cc0a0227d936b3f021f0ae3019 | [
"BSD-3-Clause"
] | 4,858 | 2016-03-03T13:48:30.000Z | 2022-03-29T22:09:51.000Z | cms/blocks.py | mitodl/micromasters | 2b1df8ac7c4395cc0a0227d936b3f021f0ae3019 | [
"BSD-3-Clause"
] | 20 | 2016-08-18T22:07:44.000Z | 2021-11-15T13:35:35.000Z | """Page blocks"""
from wagtail.core import blocks
from wagtail.images.blocks import ImageChooserBlock
class CourseTeamBlock(blocks.StructBlock):
"""
Block class that defines a course team member
"""
name = blocks.CharBlock(max_length=100, help_text="Name of the course team member.")
title = bloc... | 30.230769 | 94 | 0.660305 | 179 | 1,572 | 5.73743 | 0.497207 | 0.046738 | 0.062317 | 0.046738 | 0.093476 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011438 | 0.221374 | 1,572 | 51 | 95 | 30.823529 | 0.827614 | 0.080789 | 0 | 0 | 0 | 0 | 0.2402 | 0.015681 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2d1e81bfe87388671566d46153dbbdae8f99b502 | 15,698 | py | Python | zygrader/grader.py | natecraddock/zygrader | 3a1d5c1dbe76c8f76c2a99f271a26b2ec873006a | [
"MIT"
] | 5 | 2019-11-15T17:42:42.000Z | 2021-04-20T19:35:25.000Z | zygrader/grader.py | natecraddock/zygrader | 3a1d5c1dbe76c8f76c2a99f271a26b2ec873006a | [
"MIT"
] | 76 | 2020-02-22T01:42:16.000Z | 2021-04-28T18:47:20.000Z | zygrader/grader.py | natecraddock/zygrader | 3a1d5c1dbe76c8f76c2a99f271a26b2ec873006a | [
"MIT"
] | 2 | 2020-02-21T04:39:38.000Z | 2021-04-20T19:35:20.000Z | """Grader: Menus and popups for grading and pair programming"""
import curses
import getpass
from zygrader import data, ui, utils
from zygrader.config import preferences
from zygrader.config.shared import SharedData
from zygrader.data import model
from zygrader.zybooks import Zybooks
from zygrader.ui import colors
d... | 35.118568 | 90 | 0.647407 | 1,940 | 15,698 | 5.022165 | 0.140722 | 0.029354 | 0.024428 | 0.027302 | 0.362619 | 0.272401 | 0.235862 | 0.19573 | 0.149133 | 0.141538 | 0 | 0.000951 | 0.263409 | 15,698 | 446 | 91 | 35.197309 | 0.84165 | 0.107657 | 0 | 0.27476 | 0 | 0 | 0.080757 | 0.008845 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063898 | false | 0.009585 | 0.025559 | 0 | 0.172524 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2d220d13853eb72792eb10d11e5500d16a8130fd | 3,857 | py | Python | physics/n-body/n-body.py | ludius0/simulations | 3f8992edfef89d0450479647a96b889c6f0f43a3 | [
"MIT"
] | null | null | null | physics/n-body/n-body.py | ludius0/simulations | 3f8992edfef89d0450479647a96b889c6f0f43a3 | [
"MIT"
] | null | null | null | physics/n-body/n-body.py | ludius0/simulations | 3f8992edfef89d0450479647a96b889c6f0f43a3 | [
"MIT"
] | null | null | null | # libs
import pygame
import math
import sys
from random import randrange, seed
from numbers import Real
# simulation settings
G = 1
sum_mass = 50.0
softening = 100 # also function as speed component
seed(1)
# additional settings
COLLIS_MERGE = True
ACTIVE_BORDERS = False
# world objects
NBODIES = 150
BODIES = []
# p... | 29 | 129 | 0.577132 | 560 | 3,857 | 3.907143 | 0.280357 | 0.025594 | 0.013711 | 0.023309 | 0.063528 | 0.053473 | 0.031536 | 0.031536 | 0 | 0 | 0 | 0.044542 | 0.289863 | 3,857 | 132 | 130 | 29.219697 | 0.75429 | 0.143635 | 0 | 0.068182 | 0 | 0 | 0.004881 | 0 | 0 | 0 | 0 | 0 | 0.034091 | 1 | 0.068182 | false | 0 | 0.056818 | 0.011364 | 0.147727 | 0.011364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
2d23358acadeaa1dff525002691c0097420904a8 | 4,026 | py | Python | src/item/consumables.py | roozhou/botty | a67a87845687cdf6900af10a13dc7170684faa9a | [
"MIT"
] | null | null | null | src/item/consumables.py | roozhou/botty | a67a87845687cdf6900af10a13dc7170684faa9a | [
"MIT"
] | null | null | null | src/item/consumables.py | roozhou/botty | a67a87845687cdf6900af10a13dc7170684faa9a | [
"MIT"
] | null | null | null | from config import Config
from dataclasses import dataclass
from logger import Logger
from d2r_image.data_models import HoveredItem
@dataclass
class Consumables:
tp: int = 0
id: int = 0
rejuv: int = 0
health: int = 0
mana: int = 0
key: int = 0
def __getitem__(self, key):
return supe... | 34.410256 | 97 | 0.664183 | 509 | 4,026 | 5.037328 | 0.21611 | 0.098284 | 0.035101 | 0.037442 | 0.227769 | 0.170047 | 0.147426 | 0.095944 | 0.064743 | 0.064743 | 0 | 0.004792 | 0.222553 | 4,026 | 117 | 98 | 34.410256 | 0.814377 | 0.047193 | 0 | 0.203884 | 0 | 0 | 0.191975 | 0.011539 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106796 | false | 0.009709 | 0.038835 | 0.029126 | 0.378641 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2d24021470465eba916fd57e573635e8e812a4a2 | 2,612 | py | Python | gorden_crawler/spiders/shopbop.py | Enmming/gorden_cralwer | 3c279e4f80eaf90f3f03acd31b75cf991952adee | [
"Apache-2.0"
] | 2 | 2019-02-22T13:51:08.000Z | 2020-08-03T14:01:30.000Z | gorden_crawler/spiders/shopbop.py | Enmming/gorden_cralwer | 3c279e4f80eaf90f3f03acd31b75cf991952adee | [
"Apache-2.0"
] | null | null | null | gorden_crawler/spiders/shopbop.py | Enmming/gorden_cralwer | 3c279e4f80eaf90f3f03acd31b75cf991952adee | [
"Apache-2.0"
] | 1 | 2020-08-03T14:01:32.000Z | 2020-08-03T14:01:32.000Z | # -*- coding: utf-8 -*-
from scrapy.spiders import Spider
from scrapy.selector import Selector
import re
from scrapy import Request
from gorden_crawler.spiders.shopbop_eastdane_common import ShopbopEastdaneCommon
class ShopBopSpider(ShopbopEastdaneCommon):
#class ShopBopSpider(Spider):
name = "shopbop"
allowe... | 45.824561 | 172 | 0.637825 | 302 | 2,612 | 5.327815 | 0.344371 | 0.068365 | 0.019888 | 0.067122 | 0.282163 | 0.238658 | 0.198881 | 0.198881 | 0 | 0 | 0 | 0.074111 | 0.225115 | 2,612 | 57 | 172 | 45.824561 | 0.72085 | 0.048622 | 0 | 0 | 0 | 0 | 0.335484 | 0.036694 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.106383 | 0 | 0.297872 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2d2653b77757ecdc03fee246ac217f3cdcfedd54 | 3,679 | py | Python | app/main/views.py | arondasamuel123/FlaskBlog | 33fa1bbc288a831b29a95bfff0b514a8d6f93f4e | [
"MIT"
] | null | null | null | app/main/views.py | arondasamuel123/FlaskBlog | 33fa1bbc288a831b29a95bfff0b514a8d6f93f4e | [
"MIT"
] | null | null | null | app/main/views.py | arondasamuel123/FlaskBlog | 33fa1bbc288a831b29a95bfff0b514a8d6f93f4e | [
"MIT"
] | null | null | null | from . import main
from flask import render_template, url_for,redirect
from app.models import Posts, User, Comment
from flask_login import current_user, login_required
from .forms import PostForm, CommentForm, UpdateBlogForm
from .. import db
from sqlalchemy import desc
from ..requests import get_quotes
from ..email i... | 31.991304 | 130 | 0.668116 | 487 | 3,679 | 4.858316 | 0.186858 | 0.053254 | 0.067625 | 0.023669 | 0.331361 | 0.300507 | 0.257396 | 0.142012 | 0.112426 | 0.074387 | 0 | 0 | 0.199783 | 3,679 | 115 | 131 | 31.991304 | 0.803668 | 0.005708 | 0 | 0.244186 | 0 | 0 | 0.117856 | 0.012305 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104651 | false | 0 | 0.104651 | 0 | 0.383721 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2d26eedc95197a2362633c769d7c96b7f86fab9b | 2,117 | py | Python | examples/tree_view_example.py | cgpipline/dayu_widgets | 040a09fb9a20ce72997a3fba60e381e3944bff59 | [
"MIT"
] | 157 | 2019-03-10T05:55:21.000Z | 2022-03-31T09:07:00.000Z | examples/tree_view_example.py | cgpipline/dayu_widgets | 040a09fb9a20ce72997a3fba60e381e3944bff59 | [
"MIT"
] | 16 | 2019-07-15T11:30:53.000Z | 2021-12-16T14:17:59.000Z | examples/tree_view_example.py | phenom-films/dayu_widgets | 1eb8fbf2847f9de95af2cd62d5eaec392f1c1e22 | [
"MIT"
] | 56 | 2019-06-19T03:35:27.000Z | 2022-03-22T08:07:32.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###################################################################
# Author: Mu yanru
# Date : 2019.2
# Email : muyanru345@163.com
###################################################################
import examples._mock_data as mock
from dayu_widgets import dayu_theme
f... | 32.569231 | 68 | 0.671233 | 251 | 2,117 | 5.290837 | 0.358566 | 0.042169 | 0.079066 | 0.038404 | 0.155873 | 0.115211 | 0.048193 | 0 | 0 | 0 | 0 | 0.009233 | 0.181389 | 2,117 | 64 | 69 | 33.078125 | 0.757069 | 0.047709 | 0 | 0 | 0 | 0 | 0.015983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0.2 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2d28a277601e69e469768302b3fb700a887a42db | 1,131 | py | Python | test/use_case_examples/startUp.py | sbanik1/sheetTrap | 287746bf33b41e7f1066e80ee12bd08f75b155bc | [
"MIT"
] | null | null | null | test/use_case_examples/startUp.py | sbanik1/sheetTrap | 287746bf33b41e7f1066e80ee12bd08f75b155bc | [
"MIT"
] | null | null | null | test/use_case_examples/startUp.py | sbanik1/sheetTrap | 287746bf33b41e7f1066e80ee12bd08f75b155bc | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
This code sets the directories for running the test codes
Created on Sat Dec 19 12:51:22 2020
@author: Swarnav Banik
sbanik1@umd.edu
"""
# %% Import all ###############################################################
import sys
import matplotlib.pyplot as plt
# %% Add... | 34.272727 | 85 | 0.542882 | 127 | 1,131 | 4.834646 | 0.748032 | 0.039088 | 0.058632 | 0.074919 | 0.166124 | 0.166124 | 0.166124 | 0.166124 | 0 | 0 | 0 | 0.030864 | 0.140584 | 1,131 | 33 | 86 | 34.272727 | 0.600823 | 0.282051 | 0 | 0 | 0 | 0 | 0.523077 | 0.220513 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.105263 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2d2af0f28011528a2d6ef57a8fde31ab7d31de44 | 743 | py | Python | tests/test_collection_client.py | ocefpaf/pystac-client | ddf0e0566b2b1783a4d32d3d77f9f51b80270df3 | [
"Apache-2.0"
] | 52 | 2021-04-15T23:24:12.000Z | 2022-03-09T23:02:27.000Z | tests/test_collection_client.py | ocefpaf/pystac-client | ddf0e0566b2b1783a4d32d3d77f9f51b80270df3 | [
"Apache-2.0"
] | 119 | 2021-04-13T11:42:01.000Z | 2022-02-24T10:02:35.000Z | tests/test_collection_client.py | ocefpaf/pystac-client | ddf0e0566b2b1783a4d32d3d77f9f51b80270df3 | [
"Apache-2.0"
] | 14 | 2021-04-13T19:00:19.000Z | 2022-02-23T09:17:30.000Z | import pytest
from pystac_client import CollectionClient
from pystac_client.client import Client
from .helpers import STAC_URLS
class TestCollectionClient:
@pytest.mark.vcr
def test_instance(self):
client = Client.open(STAC_URLS['PLANETARY-COMPUTER'])
collection = client.get_collection('aste... | 29.72 | 67 | 0.699865 | 85 | 743 | 5.976471 | 0.388235 | 0.070866 | 0.062992 | 0.062992 | 0.401575 | 0.322835 | 0.322835 | 0.322835 | 0.322835 | 0.322835 | 0 | 0.005085 | 0.205922 | 743 | 24 | 68 | 30.958333 | 0.855932 | 0 | 0 | 0.333333 | 0 | 0 | 0.114401 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2d2b1238c9004522816921ce7316d847dd12d582 | 7,135 | py | Python | frasco_models/backends/sqlalchemy.py | frascoweb/frasco-models | f7c1e14424cadf3dc07c2bd81cc32b0fd046ccba | [
"MIT"
] | 1 | 2015-09-24T10:01:03.000Z | 2015-09-24T10:01:03.000Z | frasco_models/backends/sqlalchemy.py | frascoweb/frasco-models | f7c1e14424cadf3dc07c2bd81cc32b0fd046ccba | [
"MIT"
] | null | null | null | frasco_models/backends/sqlalchemy.py | frascoweb/frasco-models | f7c1e14424cadf3dc07c2bd81cc32b0fd046ccba | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from frasco import copy_extra_feature_options, current_app
from frasco.utils import JSONEncoder, ContextStack, DelayedCallsContext
from frasco_models import Backend, ModelSchemaError, and_, split_field_operator, QueryError
from frasco_models.utils import clean_proxy
from flask_sql... | 35.675 | 117 | 0.623266 | 839 | 7,135 | 5.084625 | 0.272944 | 0.018284 | 0.037975 | 0.033755 | 0.14346 | 0.055087 | 0.048289 | 0.021566 | 0.021566 | 0 | 0 | 0.001558 | 0.280448 | 7,135 | 199 | 118 | 35.854271 | 0.829373 | 0.012754 | 0 | 0.072289 | 0 | 0 | 0.055382 | 0.01349 | 0 | 0 | 0 | 0 | 0 | 1 | 0.156627 | false | 0.006024 | 0.10241 | 0.054217 | 0.391566 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2d2bf38cdd992aadb6144180b5dfb94255173ff3 | 538 | py | Python | 17.05.2022/POO/parte1/teste3/main.py | N0N4T0/python-codes | ac2b884f86749a8b179ff972cdb316ec4e005b32 | [
"MIT"
] | null | null | null | 17.05.2022/POO/parte1/teste3/main.py | N0N4T0/python-codes | ac2b884f86749a8b179ff972cdb316ec4e005b32 | [
"MIT"
] | null | null | null | 17.05.2022/POO/parte1/teste3/main.py | N0N4T0/python-codes | ac2b884f86749a8b179ff972cdb316ec4e005b32 | [
"MIT"
] | null | null | null | from pessoa import Pessoa
p1 = Pessoa('Luiz', 29)
p2 = Pessoa('Joana', 59)
# Teste para já está comendo
# p1.comer('maçã')
# p1.comer('maçã')
# Teste para não está comendo
# p1.para_comer()
# Teste para já está falando
# p1.falar('Política')
# p1.falar('Política')
# Teste para não falar comendo
# p1.comer('maçã')
#... | 17.354839 | 35 | 0.684015 | 85 | 538 | 4.282353 | 0.294118 | 0.148352 | 0.120879 | 0.107143 | 0.315934 | 0.148352 | 0 | 0 | 0 | 0 | 0 | 0.043668 | 0.148699 | 538 | 31 | 36 | 17.354839 | 0.751092 | 0.659851 | 0 | 0 | 0 | 0 | 0.107784 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2d2db398b4ddbcc67edec80cc25d50f9ccebdf17 | 2,022 | py | Python | pipeline/run_perturbation_test.py | martin-fabbri/nlp-behavioral-testing | 352cab74f5d62561e08d92135e4609db1fe38fd5 | [
"Apache-2.0"
] | null | null | null | pipeline/run_perturbation_test.py | martin-fabbri/nlp-behavioral-testing | 352cab74f5d62561e08d92135e4609db1fe38fd5 | [
"Apache-2.0"
] | 1 | 2021-02-19T08:08:52.000Z | 2021-02-19T08:08:52.000Z | pipeline/run_perturbation_test.py | martin-fabbri/nlp-behavioral-testing | 352cab74f5d62561e08d92135e4609db1fe38fd5 | [
"Apache-2.0"
] | null | null | null | import json
import nlpaug.augmenter.char as nac
import pandas as pd
from transformers import AutoModelForSequenceClassification, AutoTokenizer, pipeline
from transformers.tokenization_utils import PreTrainedTokenizer
from config import Config
transformer_model = "distilbert-base-uncased-finetuned-sst-2-english"
# l... | 31.59375 | 87 | 0.740851 | 277 | 2,022 | 5.212996 | 0.422383 | 0.024238 | 0.022853 | 0.024931 | 0.040166 | 0.040166 | 0.040166 | 0 | 0 | 0 | 0 | 0.005754 | 0.140455 | 2,022 | 63 | 88 | 32.095238 | 0.825086 | 0.121167 | 0 | 0 | 0 | 0 | 0.078098 | 0.026599 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.157895 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2d2e70b06755b783fc866f681653a747759d1c68 | 4,534 | py | Python | quant.py | coreyauger/ema-65-crossover-kaggle | 5b84294381b01b9f0f84f14006572c9cb9e5cca7 | [
"MIT"
] | null | null | null | quant.py | coreyauger/ema-65-crossover-kaggle | 5b84294381b01b9f0f84f14006572c9cb9e5cca7 | [
"MIT"
] | null | null | null | quant.py | coreyauger/ema-65-crossover-kaggle | 5b84294381b01b9f0f84f14006572c9cb9e5cca7 | [
"MIT"
] | 1 | 2021-05-01T15:50:17.000Z | 2021-05-01T15:50:17.000Z |
from functools import reduce
import numpy as np
import matplotlib.pyplot as plt
from dateutil import parser
import glob
import os
import csv
import json
def loadData(path, subset = -1, loadDebug = False):
allFiles = glob.glob(os.path.join(path, "data_*.csv"))
if(subset > 0):
allFiles = allFile... | 40.846847 | 123 | 0.604764 | 574 | 4,534 | 4.770035 | 0.275261 | 0.02301 | 0.006574 | 0.020453 | 0.113952 | 0.096421 | 0.096421 | 0.096421 | 0.087655 | 0.087655 | 0 | 0.044105 | 0.219894 | 4,534 | 111 | 124 | 40.846847 | 0.729997 | 0.127481 | 0 | 0.024691 | 0 | 0 | 0.067444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.098765 | 0.024691 | 0.246914 | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2d2eb9e41d9b7aaa806035fe7e73dc2a5bc3e057 | 5,913 | py | Python | Scripts/GeoDBSCAN.py | Holisticnature/geo-learn | cfa4485b376ae1b22457251bcddbe26bac103a10 | [
"Apache-2.0"
] | 4 | 2018-03-06T14:38:42.000Z | 2018-06-04T14:57:26.000Z | Scripts/GeoDBSCAN.py | Holisticnature/geo-learn | cfa4485b376ae1b22457251bcddbe26bac103a10 | [
"Apache-2.0"
] | null | null | null | Scripts/GeoDBSCAN.py | Holisticnature/geo-learn | cfa4485b376ae1b22457251bcddbe26bac103a10 | [
"Apache-2.0"
] | null | null | null | # --------------------------------
# Name: GeoDBSCAN.py
# Purpose: This script is intended to allow ArcGIS users that have Scikit Learn installed in their python installation
# utilize DBSCAN to create clusters of geographic features based on their centroids.
# Current Owner: David Wasserman
# Last Modified: 4/5/2020
#... | 51.417391 | 325 | 0.690851 | 750 | 5,913 | 5.328 | 0.388 | 0.013764 | 0.027528 | 0.03003 | 0.074575 | 0.062563 | 0.042042 | 0.042042 | 0.042042 | 0.042042 | 0 | 0.008838 | 0.215457 | 5,913 | 114 | 326 | 51.868421 | 0.852554 | 0.275326 | 0 | 0.1 | 0 | 0 | 0.170949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014286 | false | 0 | 0.1 | 0 | 0.114286 | 0.171429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
2d3055e14122623c95b8881341a1fc725f67eb41 | 1,017 | py | Python | examples/research/O2-graphene/O2-C24/proj/O2-C24.py | fishjojo/pydmfe | 93cfc655314933d3531b5733521a1f95a044f6cb | [
"MIT"
] | 3 | 2021-02-26T06:26:00.000Z | 2022-02-20T08:58:20.000Z | examples/research/O2-graphene/O2-C24/proj/O2-C24.py | fishjojo/pydmfet | 93cfc655314933d3531b5733521a1f95a044f6cb | [
"MIT"
] | null | null | null | examples/research/O2-graphene/O2-C24/proj/O2-C24.py | fishjojo/pydmfet | 93cfc655314933d3531b5733521a1f95a044f6cb | [
"MIT"
] | null | null | null | from pydmfet import proj_ao, tools
from pydmfet.qcwrap.pyscf_rks_ao import rks_ao
from pyscf import gto,scf
import numpy as np
from pyscf.tools import molden
t0 = tools.time0()
bas ='6-31G*'
temp = 0.005
mol = gto.Mole()
mol.atom = open('O2-C24.xyz').read()
mol.basis = bas
mol.charge = 0
mol.build(max_memory = 2400... | 21.1875 | 90 | 0.707965 | 182 | 1,017 | 3.769231 | 0.516484 | 0.040816 | 0.026239 | 0.034985 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034443 | 0.143559 | 1,017 | 47 | 91 | 21.638298 | 0.753157 | 0.016716 | 0 | 0 | 0 | 0 | 0.057108 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.172414 | 0 | 0.172414 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2d32dfae4e4a82d0da73b0d4fd9b140d33288330 | 2,314 | py | Python | pymmw/lib/probe.py | iljoobaek/Radar_boundary_detection | e7a61827e57eac29d4a1200a2856ce3bc00b92cf | [
"MIT"
] | null | null | null | pymmw/lib/probe.py | iljoobaek/Radar_boundary_detection | e7a61827e57eac29d4a1200a2856ce3bc00b92cf | [
"MIT"
] | null | null | null | pymmw/lib/probe.py | iljoobaek/Radar_boundary_detection | e7a61827e57eac29d4a1200a2856ce3bc00b92cf | [
"MIT"
] | null | null | null | #
# Copyright (c) 2019, Manfred Constapel
# This file is licensed under the terms of the MIT license.
#
import sys, time
from lib.utility import *
# ------------------------------------------------
VID, PID = 0x0451, 0xbef3 # XDS110
# ------------------------------------------------
try:
import usb
except Ex... | 30.853333 | 87 | 0.544512 | 295 | 2,314 | 4.169492 | 0.430508 | 0.05122 | 0.031707 | 0.02439 | 0.2 | 0.126829 | 0.073171 | 0.073171 | 0 | 0 | 0 | 0.024221 | 0.250648 | 2,314 | 74 | 88 | 31.27027 | 0.685121 | 0.196197 | 0 | 0.142857 | 0 | 0 | 0.059015 | 0 | 0 | 0 | 0.006497 | 0 | 0 | 1 | 0.081633 | false | 0.020408 | 0.061224 | 0 | 0.22449 | 0.122449 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
2d3623ec2975daf6edfc533f9031ebffefe6e10e | 1,467 | py | Python | src/datasets/negative_samplers/popular.py | JiachengLi1995/FastRec | 88174f8beb822c6b5b348c888de184d48d9d013c | [
"MIT"
] | null | null | null | src/datasets/negative_samplers/popular.py | JiachengLi1995/FastRec | 88174f8beb822c6b5b348c888de184d48d9d013c | [
"MIT"
] | null | null | null | src/datasets/negative_samplers/popular.py | JiachengLi1995/FastRec | 88174f8beb822c6b5b348c888de184d48d9d013c | [
"MIT"
] | null | null | null | from .base import AbstractNegativeSampler
from tqdm import trange
from tqdm import tqdm
from collections import Counter
import numpy as np
class PopularNegativeSampler(AbstractNegativeSampler):
@classmethod
def code(cls):
return 'popular'
def generate_negative_samples(self):
popularity... | 30.5625 | 99 | 0.625085 | 175 | 1,467 | 5.137143 | 0.342857 | 0.055617 | 0.046719 | 0.028921 | 0.046719 | 0.046719 | 0 | 0 | 0 | 0 | 0 | 0 | 0.28698 | 1,467 | 47 | 100 | 31.212766 | 0.859465 | 0 | 0 | 0.055556 | 0 | 0 | 0.02045 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.138889 | 0.027778 | 0.333333 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
2d3685b227eda67cb5f0fb424b7e5b1d410a46d7 | 2,854 | py | Python | td/lab3_skeleton.py | K1ntus/Deep-Learning | 8737c0cf32d34d1533f249ddd3eb8ada181fb7ad | [
"MIT"
] | null | null | null | td/lab3_skeleton.py | K1ntus/Deep-Learning | 8737c0cf32d34d1533f249ddd3eb8ada181fb7ad | [
"MIT"
] | null | null | null | td/lab3_skeleton.py | K1ntus/Deep-Learning | 8737c0cf32d34d1533f249ddd3eb8ada181fb7ad | [
"MIT"
] | null | null | null | from __future__ import print_function
import tensorflow as tf
import keras
from keras.datasets import mnist
from keras.models import Sequential,model_from_json
from keras.layers import Dense, Dropout
from keras.optimizers import RMSprop
import numpy as np
def save_model(model,filename):
model_json = model.to_jso... | 30.361702 | 126 | 0.70042 | 444 | 2,854 | 4.29955 | 0.297297 | 0.020953 | 0.022001 | 0.020953 | 0.165532 | 0.073337 | 0.071241 | 0.067051 | 0.009429 | 0 | 0 | 0.042553 | 0.176594 | 2,854 | 93 | 127 | 30.688172 | 0.769787 | 0.124387 | 0 | 0 | 0 | 0 | 0.071678 | 0.01049 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.175439 | 0 | 0.245614 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
2d36c1e2e090aa8edbe34bd4cb5777a00843c1e4 | 9,733 | py | Python | image/modified/m_vqvae_multi_level8.py | arash-safari/vp | 377e0172112157b79690b32349481a17e7590063 | [
"MIT"
] | null | null | null | image/modified/m_vqvae_multi_level8.py | arash-safari/vp | 377e0172112157b79690b32349481a17e7590063 | [
"MIT"
] | null | null | null | image/modified/m_vqvae_multi_level8.py | arash-safari/vp | 377e0172112157b79690b32349481a17e7590063 | [
"MIT"
] | null | null | null | import sys
import torch
from torch import nn
from torch.nn import functional as F
# sys.path.append('../')
#
# from image.vqvae import Quantize
# Copyright 2018 The Sonnet Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance... | 34.392226 | 90 | 0.551526 | 1,182 | 9,733 | 4.384941 | 0.170051 | 0.029327 | 0.020066 | 0.037623 | 0.408065 | 0.385877 | 0.360602 | 0.329346 | 0.310824 | 0.284777 | 0 | 0.025411 | 0.324771 | 9,733 | 282 | 91 | 34.514184 | 0.763238 | 0.146615 | 0 | 0.325243 | 0 | 0 | 0.003627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067961 | false | 0 | 0.019417 | 0.014563 | 0.15534 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2d3b6a39414163158df318015d15ebef78eb5567 | 10,249 | py | Python | tests/test_data_loader.py | cccntu/accelerate | 4ad11b12d97717db0931de1c17d562bd5c7f4f41 | [
"Apache-2.0"
] | 2,313 | 2021-03-05T21:49:49.000Z | 2022-03-31T05:26:00.000Z | tests/test_data_loader.py | cccntu/accelerate | 4ad11b12d97717db0931de1c17d562bd5c7f4f41 | [
"Apache-2.0"
] | 230 | 2021-03-05T22:00:05.000Z | 2022-03-31T21:38:44.000Z | tests/test_data_loader.py | cccntu/accelerate | 4ad11b12d97717db0931de1c17d562bd5c7f4f41 | [
"Apache-2.0"
] | 152 | 2021-03-06T04:25:37.000Z | 2022-03-26T03:09:36.000Z | # Copyright 2021 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | 45.959641 | 119 | 0.630208 | 1,403 | 10,249 | 4.395581 | 0.132573 | 0.128425 | 0.07005 | 0.070861 | 0.642776 | 0.629479 | 0.613588 | 0.599319 | 0.599319 | 0.591049 | 0 | 0.0632 | 0.251244 | 10,249 | 222 | 120 | 46.166667 | 0.740422 | 0.161284 | 0 | 0.363057 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031847 | 1 | 0.044586 | false | 0 | 0.025478 | 0 | 0.082803 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2d3d4864859ee40632563ce0af32cebdd0937175 | 32,094 | py | Python | scheduler/routes.py | ddiatlov/scheduler | f3343f20a2d104e20ec0031af6f6de2313656212 | [
"MIT"
] | null | null | null | scheduler/routes.py | ddiatlov/scheduler | f3343f20a2d104e20ec0031af6f6de2313656212 | [
"MIT"
] | null | null | null | scheduler/routes.py | ddiatlov/scheduler | f3343f20a2d104e20ec0031af6f6de2313656212 | [
"MIT"
] | null | null | null | import calendar
import os
from datetime import datetime
from dateutil.parser import parse
# server side rendering related imports
from flask import render_template, url_for, flash, redirect, request, jsonify, send_from_directory
# login related imports
from flask_login import login_user, logout_user, login_required, c... | 39.330882 | 120 | 0.593226 | 3,450 | 32,094 | 5.330145 | 0.073623 | 0.035891 | 0.032737 | 0.045679 | 0.762847 | 0.699603 | 0.608135 | 0.525586 | 0.442221 | 0.374626 | 0 | 0.002594 | 0.291176 | 32,094 | 815 | 121 | 39.379141 | 0.80575 | 0.036362 | 0 | 0.535503 | 0 | 0 | 0.104849 | 0.020426 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050296 | false | 0.007396 | 0.016272 | 0.005917 | 0.176036 | 0.001479 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
2d3ea1065e8e6914e61c9e8dc14c875d892ae858 | 6,320 | py | Python | projects/mid_atlantic/study/plot_Fig3_storage_potential.py | EnergyModels/caes | 7bb3e7f9cfbfcc2e781918333f6be3b718ca0743 | [
"MIT"
] | 1 | 2022-03-30T07:40:45.000Z | 2022-03-30T07:40:45.000Z | projects/mid_atlantic/study/plot_Fig3_storage_potential.py | EnergyModels/caes | 7bb3e7f9cfbfcc2e781918333f6be3b718ca0743 | [
"MIT"
] | null | null | null | projects/mid_atlantic/study/plot_Fig3_storage_potential.py | EnergyModels/caes | 7bb3e7f9cfbfcc2e781918333f6be3b718ca0743 | [
"MIT"
] | 1 | 2021-11-02T17:02:27.000Z | 2021-11-02T17:02:27.000Z | import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
from mpl_toolkits.axes_grid1.inset_locator import zoomed_inset_axes, mark_inset
from math import pi
import numpy as np
import matplotlib.colors as colors
import matplotlib.patches as mpatches
df = pd.read_csv('all_analysis.csv')
# f, a = plt.su... | 36.744186 | 119 | 0.637184 | 1,008 | 6,320 | 3.889881 | 0.294643 | 0.047182 | 0.019638 | 0.022953 | 0.27442 | 0.252997 | 0.244325 | 0.184647 | 0.106605 | 0.106605 | 0 | 0.058487 | 0.169462 | 6,320 | 172 | 120 | 36.744186 | 0.688512 | 0.211709 | 0 | 0.09901 | 0 | 0 | 0.199554 | 0.012763 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.079208 | 0 | 0.079208 | 0.019802 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
2d3ffe34f95afc554efd559de389de6e17e5f469 | 2,353 | py | Python | setup.py | diecutter/piecutter | 250a90a4cae1b72ff3c141dffb8c58de74dbedfd | [
"BSD-3-Clause"
] | 2 | 2016-05-02T02:22:34.000Z | 2021-02-08T18:17:30.000Z | setup.py | diecutter/piecutter | 250a90a4cae1b72ff3c141dffb8c58de74dbedfd | [
"BSD-3-Clause"
] | 2 | 2016-03-22T10:09:13.000Z | 2016-07-01T08:04:43.000Z | setup.py | diecutter/piecutter | 250a90a4cae1b72ff3c141dffb8c58de74dbedfd | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Python packaging."""
import os
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class Tox(TestCommand):
"""Test command that runs tox."""
def finalize_options(self):
TestCommand.finalize_options(self)
... | 25.576087 | 76 | 0.640034 | 269 | 2,353 | 5.472119 | 0.524164 | 0.016304 | 0.025815 | 0.019022 | 0.024457 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007104 | 0.222269 | 2,353 | 91 | 77 | 25.857143 | 0.797268 | 0.138547 | 0 | 0.027027 | 0 | 0 | 0.222886 | 0.011443 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.067568 | 0 | 0.108108 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2d40243559b725d753f07723a2dc092564c538dc | 12,205 | py | Python | energy_demand/plotting/plotting_results.py | nismod/energy_demand | 247fcea074a846026710ed9b039b22f8b9835643 | [
"MIT"
] | 14 | 2018-02-23T10:03:45.000Z | 2022-03-03T13:59:30.000Z | energy_demand/plotting/plotting_results.py | nismod/energy_demand | 247fcea074a846026710ed9b039b22f8b9835643 | [
"MIT"
] | 59 | 2017-02-22T15:03:30.000Z | 2020-12-16T12:26:17.000Z | energy_demand/plotting/plotting_results.py | nismod/energy_demand | 247fcea074a846026710ed9b039b22f8b9835643 | [
"MIT"
] | 5 | 2017-08-22T11:31:42.000Z | 2020-06-24T18:30:12.000Z | """Plotting model results and storing as PDF to result folder
"""
import os
import logging
from energy_demand.technologies import tech_related
from energy_demand.plotting import plotting_styles
from energy_demand.plotting import fig_lad_related
from energy_demand.plotting import fig_one_fueltype_multiple_regions_peak... | 38.140625 | 118 | 0.583367 | 1,334 | 12,205 | 4.908546 | 0.170915 | 0.061087 | 0.041234 | 0.060476 | 0.580177 | 0.553604 | 0.513439 | 0.456475 | 0.405925 | 0.343006 | 0 | 0.00364 | 0.302253 | 12,205 | 319 | 119 | 38.260188 | 0.765265 | 0.117165 | 0 | 0.401786 | 0 | 0 | 0.228263 | 0.068627 | 0 | 0 | 0 | 0 | 0 | 1 | 0.004464 | false | 0.004464 | 0.066964 | 0 | 0.075893 | 0.013393 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
2d40c1c0d41fce2558ee51eafbcd6328fd08433e | 2,637 | py | Python | models.py | hpaul/iconic_network | f2e4678dd0acd2ccc1fefde9fba34b69c99c7ba7 | [
"MIT"
] | null | null | null | models.py | hpaul/iconic_network | f2e4678dd0acd2ccc1fefde9fba34b69c99c7ba7 | [
"MIT"
] | 5 | 2021-03-10T00:31:40.000Z | 2022-02-26T20:47:30.000Z | models.py | hpaul/iconic_network | f2e4678dd0acd2ccc1fefde9fba34b69c99c7ba7 | [
"MIT"
] | 1 | 2019-05-27T20:45:02.000Z | 2019-05-27T20:45:02.000Z | from playhouse.sqlite_ext import *
from playhouse.migrate import *
from peewee import *
# The initialisation
db = SqliteDatabase('../cache/iconic.db', pragmas={
'journal_mode': 'wal',
'cache_size': '-2000',
'fullfsync': 'on',
'journal_size_limit': '-1',
'threads': '8',
'foreign_keys': 1, # Enf... | 31.771084 | 92 | 0.708381 | 304 | 2,637 | 6.036184 | 0.328947 | 0.122071 | 0.092643 | 0.062125 | 0.26049 | 0.228883 | 0.209264 | 0.163488 | 0.163488 | 0.12752 | 0 | 0.006871 | 0.172165 | 2,637 | 82 | 93 | 32.158537 | 0.833715 | 0.353811 | 0 | 0.090909 | 0 | 0 | 0.058964 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068182 | 0 | 0.795455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2d40ed8fbb09f62fdaa077c4ee9a62191cabbc99 | 23,977 | py | Python | ublox/modules.py | pwitab/ublox | 30fc175c6c1b6d2077523d2b676ca8a3a50c86b2 | [
"MIT"
] | 9 | 2018-10-18T12:57:17.000Z | 2022-01-12T05:37:55.000Z | ublox/modules.py | pwitab/ublox | 30fc175c6c1b6d2077523d2b676ca8a3a50c86b2 | [
"MIT"
] | 5 | 2018-10-23T07:42:12.000Z | 2019-09-29T10:16:04.000Z | ublox/modules.py | pwitab/ublox | 30fc175c6c1b6d2077523d2b676ca8a3a50c86b2 | [
"MIT"
] | 4 | 2018-10-12T18:34:12.000Z | 2022-01-13T01:11:17.000Z | import time
import serial
import binascii
from collections import namedtuple
import logging
from ublox.socket import UDPSocket
logger = logging.getLogger(__name__)
Stats = namedtuple('Stats', 'type name value')
class CMEError(Exception):
"""CME ERROR on Module"""
class ATError(Exception):
"""AT Command E... | 34.058239 | 80 | 0.591275 | 3,063 | 23,977 | 4.444009 | 0.155077 | 0.014987 | 0.021158 | 0.01293 | 0.255804 | 0.16772 | 0.12489 | 0.117837 | 0.105348 | 0.074934 | 0 | 0.008105 | 0.310422 | 23,977 | 703 | 81 | 34.106686 | 0.815169 | 0.181966 | 0 | 0.210402 | 0 | 0 | 0.131087 | 0.022371 | 0 | 0 | 0 | 0.004267 | 0 | 1 | 0.106383 | false | 0.004728 | 0.014184 | 0.002364 | 0.238771 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2d4193bd35998684210f11a056d6009a9bc98371 | 6,965 | py | Python | tests/cli/test_cap_table.py | PillarDevelopment/sto | a3067f5a31053dc780c4812d38e062ff4726b21a | [
"Apache-2.0"
] | 71 | 2018-11-30T10:15:23.000Z | 2022-03-31T23:51:22.000Z | tests/cli/test_cap_table.py | PillarDevelopment/sto | a3067f5a31053dc780c4812d38e062ff4726b21a | [
"Apache-2.0"
] | 7 | 2019-01-24T10:23:41.000Z | 2021-06-01T22:43:59.000Z | tests/cli/test_cap_table.py | PillarDevelopment/sto | a3067f5a31053dc780c4812d38e062ff4726b21a | [
"Apache-2.0"
] | 32 | 2018-11-29T21:19:51.000Z | 2022-03-14T06:32:01.000Z | import pytest
from sto.distribution import read_csv
from sto.ethereum.issuance import contract_status
from sto.ethereum.status import update_status
from sto.ethereum.tokenscan import token_scan
from sto.generic.captable import generate_cap_table, print_cap_table
from sto.models.implementation import TokenScanStatus, T... | 29.264706 | 146 | 0.576884 | 684 | 6,965 | 5.633041 | 0.230994 | 0.064885 | 0.047236 | 0.071373 | 0.530496 | 0.530496 | 0.511809 | 0.487412 | 0.487412 | 0.4381 | 0 | 0.024515 | 0.32649 | 6,965 | 237 | 147 | 29.388186 | 0.796845 | 0.059153 | 0 | 0.531915 | 0 | 0 | 0.140623 | 0.033737 | 0 | 0 | 0 | 0 | 0.058511 | 1 | 0.021277 | false | 0 | 0.053191 | 0 | 0.085106 | 0.015957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
2d44bdb8e298f04d76d63165a0c0c77c08501a4e | 5,729 | py | Python | Descriptive_Evaluation_System.py | ananya-sundar/Descriptive-Answer-Evaluation-System | fea3f56e5058bd75526de23e198e0d512addcdf6 | [
"MIT"
] | null | null | null | Descriptive_Evaluation_System.py | ananya-sundar/Descriptive-Answer-Evaluation-System | fea3f56e5058bd75526de23e198e0d512addcdf6 | [
"MIT"
] | null | null | null | Descriptive_Evaluation_System.py | ananya-sundar/Descriptive-Answer-Evaluation-System | fea3f56e5058bd75526de23e198e0d512addcdf6 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from __future__ import print_function
import six
import language_check
from tkinter import *
from tkinter import messagebox
import rake
import operator
import io
counter=1
file=open("questions.txt","r")
q=[line.rstrip('\n') for line in file]
totmark=[0,0,0,0,0,0]
def nex():
... | 24.908696 | 103 | 0.612498 | 763 | 5,729 | 4.562254 | 0.284404 | 0.022982 | 0.040218 | 0.046251 | 0.193623 | 0.181557 | 0.164608 | 0.164608 | 0.124964 | 0.124964 | 0 | 0.054141 | 0.239134 | 5,729 | 229 | 104 | 25.017467 | 0.744437 | 0.026532 | 0 | 0.19375 | 0 | 0 | 0.147725 | 0.006196 | 0.00625 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.05625 | 0 | 0.08125 | 0.0875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
2d452d14cedfb9fd0b00a34f2acdf709cc1787cb | 4,364 | py | Python | tabnine-vim/third_party/ycmd/ycmd/tests/rust/subcommands_test.py | MrMonk3y/vimrc | 950230fb3fd7991d1234c2ab516ec03245945677 | [
"MIT"
] | null | null | null | tabnine-vim/third_party/ycmd/ycmd/tests/rust/subcommands_test.py | MrMonk3y/vimrc | 950230fb3fd7991d1234c2ab516ec03245945677 | [
"MIT"
] | null | null | null | tabnine-vim/third_party/ycmd/ycmd/tests/rust/subcommands_test.py | MrMonk3y/vimrc | 950230fb3fd7991d1234c2ab516ec03245945677 | [
"MIT"
] | null | null | null | # Copyright (C) 2015-2018 ycmd contributors
#
# This file is part of ycmd.
#
# ycmd is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
#... | 32.325926 | 71 | 0.601512 | 444 | 4,364 | 5.716216 | 0.394144 | 0.023641 | 0.021671 | 0.022065 | 0.256895 | 0.239559 | 0.193853 | 0.193853 | 0.193853 | 0.149724 | 0 | 0.006008 | 0.313474 | 4,364 | 134 | 72 | 32.567164 | 0.841122 | 0.174152 | 0 | 0.318681 | 0 | 0 | 0.127511 | 0.035435 | 0 | 0 | 0 | 0 | 0.021978 | 1 | 0.054945 | false | 0 | 0.120879 | 0 | 0.175824 | 0.010989 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7409b7db18856a3e31c375938ade5b50aa04e657 | 7,121 | py | Python | app/modules/talkingHeads/network/components.py | andy6804tw/talking-hands-API | 4895c980565082b0fdcabbc704ee871855e6d5f5 | [
"MIT"
] | null | null | null | app/modules/talkingHeads/network/components.py | andy6804tw/talking-hands-API | 4895c980565082b0fdcabbc704ee871855e6d5f5 | [
"MIT"
] | 4 | 2021-06-08T20:44:12.000Z | 2022-03-12T00:09:38.000Z | app/modules/talkingHeads/network/components.py | andy6804tw/talking-hands-API | 4895c980565082b0fdcabbc704ee871855e6d5f5 | [
"MIT"
] | null | null | null | """ In this file, PyTorch modules are defined to be used in the Talking Heads model. """
import torch
import torch.nn as nn
from torch.nn import functional as F
def init_conv(conv):
nn.init.xavier_uniform_(conv.weight)
if conv.bias is not None:
conv.bias.data.zero_()
# region General Blocks
class ... | 29.670833 | 103 | 0.61452 | 978 | 7,121 | 4.279141 | 0.144172 | 0.060454 | 0.0681 | 0.055197 | 0.637037 | 0.585424 | 0.546714 | 0.498925 | 0.494146 | 0.471207 | 0 | 0.023108 | 0.270748 | 7,121 | 239 | 104 | 29.794979 | 0.782785 | 0.079062 | 0 | 0.462069 | 0 | 0 | 0.002147 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117241 | false | 0 | 0.02069 | 0 | 0.248276 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7409f1af0ea4329b3748af9c24220e3c22dd281d | 869 | py | Python | lambdafunctions/RDS failover/snapshot_creation.py | khihouston/AWS_Lambda | af36fb469a5e71569d4b6f2ae96bb2de91b3cf4a | [
"Apache-2.0"
] | null | null | null | lambdafunctions/RDS failover/snapshot_creation.py | khihouston/AWS_Lambda | af36fb469a5e71569d4b6f2ae96bb2de91b3cf4a | [
"Apache-2.0"
] | null | null | null | lambdafunctions/RDS failover/snapshot_creation.py | khihouston/AWS_Lambda | af36fb469a5e71569d4b6f2ae96bb2de91b3cf4a | [
"Apache-2.0"
] | null | null | null | import botocore
import datetime
import re
import logging
import boto3
region='us-west-1'
db_instance_class='db.m4.large'
db_subnet='default'
instances = ['master']
print('Loading function')
def lambda_handler(event, context):
source = boto3.client('rds', region_name=region)
for instance in... | 36.208333 | 111 | 0.644419 | 103 | 869 | 5.368932 | 0.601942 | 0.007233 | 0.01085 | 0.014467 | 0.0217 | 0.0217 | 0 | 0 | 0 | 0 | 0 | 0.01462 | 0.212888 | 869 | 24 | 112 | 36.208333 | 0.79386 | 0.075949 | 0 | 0 | 0 | 0 | 0.163138 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.25 | 0 | 0.3 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
740b1289aa49c74c0bf1b913185895b820bbdd76 | 3,009 | py | Python | crispr_ont_prediction.py | Peppags/A-CNNCrispr | 6022dd34b54172d7e6c99435ac5f34314212e269 | [
"MIT"
] | 3 | 2021-03-11T07:47:47.000Z | 2021-06-02T10:36:24.000Z | crispr_ont_prediction.py | Peppags/A-CNNCrispr | 6022dd34b54172d7e6c99435ac5f34314212e269 | [
"MIT"
] | 3 | 2021-04-26T15:26:23.000Z | 2022-03-28T02:12:12.000Z | crispr_ont_prediction.py | Peppags/CRISPRont-CRISPRofft | 6022dd34b54172d7e6c99435ac5f34314212e269 | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
import os
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
from keras.preprocessing import text, sequence
from keras.models import Model
from keras.layers import Input, Embedding
from keras.layers.core import Dropout
from keras.layers.convolutional import Conv1D, AveragePooling1D
from keras.layers impo... | 30.704082 | 75 | 0.653373 | 407 | 3,009 | 4.687961 | 0.334152 | 0.042453 | 0.056604 | 0.056604 | 0.253669 | 0.186583 | 0.142558 | 0.142558 | 0.08805 | 0.08805 | 0 | 0.054668 | 0.209704 | 3,009 | 97 | 76 | 31.020619 | 0.747687 | 0.006647 | 0 | 0.086957 | 0 | 0 | 0.056913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028986 | false | 0 | 0.202899 | 0 | 0.26087 | 0.014493 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
740c8021591632f8589b775ff0990d59d773eb73 | 6,023 | py | Python | sr_tutorial.py | briliantnugraha/pytorch_tutorial | 640996759a2a3545429760d17b94a1f4896525fb | [
"MIT"
] | null | null | null | sr_tutorial.py | briliantnugraha/pytorch_tutorial | 640996759a2a3545429760d17b94a1f4896525fb | [
"MIT"
] | null | null | null | sr_tutorial.py | briliantnugraha/pytorch_tutorial | 640996759a2a3545429760d17b94a1f4896525fb | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.optim as optim
import torch.utils.data
import torch.nn.functional as F
import torchvision
import torchvision.models as models
from torchvision import transforms
from PIL import Image
from time import time
import matplotlib.pyplot as plt
import os
import numpy as np
import... | 33.837079 | 105 | 0.61315 | 774 | 6,023 | 4.664083 | 0.244186 | 0.030471 | 0.039612 | 0.051801 | 0.258172 | 0.258172 | 0.225762 | 0.209141 | 0.209141 | 0.209141 | 0 | 0.044001 | 0.226465 | 6,023 | 177 | 106 | 34.028249 | 0.730844 | 0.072555 | 0 | 0.195804 | 0 | 0.006993 | 0.072045 | 0.028746 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027972 | false | 0 | 0.104895 | 0 | 0.153846 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
740dc09c5d5989b4dd60755f7fb722bb32c864ad | 13,953 | py | Python | pysrc/op-eff-plot.py | TUD-UCB-Boda/tud_boda | aa52c85aa0af1110f6f1f5a50c71bb37994b332a | [
"BSD-2-Clause"
] | 62 | 2015-03-19T09:55:50.000Z | 2022-02-27T19:06:52.000Z | pysrc/op-eff-plot.py | moskewcz/boda | 27ec86e03ad004ad8beac7f7d74a5b0ef7676ef6 | [
"BSD-2-Clause"
] | 31 | 2015-12-02T23:36:06.000Z | 2019-04-17T20:11:28.000Z | pysrc/op-eff-plot.py | TUD-UCB-Boda/tud_boda | aa52c85aa0af1110f6f1f5a50c71bb37994b332a | [
"BSD-2-Clause"
] | 24 | 2015-05-20T14:33:15.000Z | 2021-04-25T01:08:36.000Z | from matplotlib import rc
rc('text', usetex=True) # this is if you want to use latex to print text. If you do you can create strings that go on labels or titles like this for example (with an r in front): r"$n=$ " + str(int(n))
from numpy import *
from pylab import *
import random
from matplotlib.font_manager import Fo... | 45.301948 | 359 | 0.600731 | 2,266 | 13,953 | 3.556929 | 0.196823 | 0.020844 | 0.011911 | 0.010422 | 0.437841 | 0.371216 | 0.331141 | 0.301241 | 0.257444 | 0.219975 | 0 | 0.029621 | 0.245109 | 13,953 | 307 | 360 | 45.449511 | 0.735593 | 0.193077 | 0 | 0.183333 | 0 | 0.004167 | 0.085763 | 0.00205 | 0 | 0 | 0 | 0.003257 | 0.0125 | 1 | 0.0875 | false | 0 | 0.045833 | 0.008333 | 0.179167 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7410a9d371811ecb288d58e5e4a3a8a6f106fa60 | 5,547 | py | Python | bir_open_manipulator_p_with_gripper_cam_moveit/src/bir_omp_catch_simulation.py | Brazilian-Institute-of-Robotics/bir_open_manipulator_p | ce5eec7de2d361becddb3eecc44700cb12990083 | [
"Apache-2.0"
] | 1 | 2020-03-03T18:18:42.000Z | 2020-03-03T18:18:42.000Z | bir_open_manipulator_p_with_gripper_cam_moveit/src/bir_omp_catch_simulation.py | Brazilian-Institute-of-Robotics/bir_open_manipulator_p | ce5eec7de2d361becddb3eecc44700cb12990083 | [
"Apache-2.0"
] | null | null | null | bir_open_manipulator_p_with_gripper_cam_moveit/src/bir_omp_catch_simulation.py | Brazilian-Institute-of-Robotics/bir_open_manipulator_p | ce5eec7de2d361becddb3eecc44700cb12990083 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import sys
import rospy
from math import pi
import moveit_commander
from moveit_msgs.msg import DisplayTrajectory
from apriltag_ros.msg import AprilTagDetectionArray
# CONSTANTS
N_ROBOT_JOINTS = 6
POSE_TOLERANCE = 0.05
FRAMES_LIMIT = 25
ROTATION_DEGREE = -10
J1_LIMIT_DEGREE = -90
class openMan... | 37.47973 | 128 | 0.579773 | 666 | 5,547 | 4.635135 | 0.292793 | 0.020732 | 0.025915 | 0.034985 | 0.225462 | 0.139618 | 0.090055 | 0.025915 | 0 | 0 | 0 | 0.021757 | 0.337119 | 5,547 | 148 | 129 | 37.47973 | 0.817786 | 0.236885 | 0 | 0.272727 | 0 | 0 | 0.053601 | 0.014358 | 0 | 0 | 0 | 0 | 0 | 1 | 0.079545 | false | 0.034091 | 0.068182 | 0 | 0.159091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
741163dbbe679412527cbd7810452d4d457b3e59 | 780 | py | Python | tests/test_read.py | markreidvfx/pyavb | 48b05a84ff9752703a9218d5ca157ee672b020ab | [
"MIT"
] | 21 | 2019-02-05T22:08:32.000Z | 2022-03-07T03:37:59.000Z | tests/test_read.py | markreidvfx/pyavb | 48b05a84ff9752703a9218d5ca157ee672b020ab | [
"MIT"
] | 10 | 2019-07-25T04:03:44.000Z | 2021-08-12T21:31:37.000Z | tests/test_read.py | markreidvfx/pyavb | 48b05a84ff9752703a9218d5ca157ee672b020ab | [
"MIT"
] | 1 | 2020-02-20T15:08:40.000Z | 2020-02-20T15:08:40.000Z | from __future__ import (
unicode_literals,
absolute_import,
print_function,
division,
)
import os
import unittest
import avb
import avb.utils
test_file_01 = os.path.join(os.path.dirname(__file__), 'test_files', 'test_file_01.avb')
class TestRead(unittest.TestCase):
def test_basic(self):
... | 22.285714 | 88 | 0.608974 | 103 | 780 | 4.262136 | 0.495146 | 0.072893 | 0.091116 | 0.068337 | 0.14123 | 0.14123 | 0.14123 | 0.14123 | 0.14123 | 0.14123 | 0 | 0.014599 | 0.297436 | 780 | 34 | 89 | 22.941176 | 0.786496 | 0.029487 | 0 | 0.086957 | 0 | 0 | 0.045093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0.043478 | 0.26087 | 0 | 0.391304 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7411a2ab5983624eb22485823a916a1cbef00994 | 2,278 | py | Python | game.py | akash1309/Rod-and-Ball-Game | cd492ca8fea0cbb391de44c44b71984efe0e01ab | [
"MIT"
] | null | null | null | game.py | akash1309/Rod-and-Ball-Game | cd492ca8fea0cbb391de44c44b71984efe0e01ab | [
"MIT"
] | null | null | null | game.py | akash1309/Rod-and-Ball-Game | cd492ca8fea0cbb391de44c44b71984efe0e01ab | [
"MIT"
] | null | null | null | import sys, pygame
from pygame.locals import *
import time
import pygame.freetype
pygame.init()
size = width, height = 800, 600
ball_speed = [3, 7]
black = 0, 0, 0
rod_speed = [5,0]
score = 1
green = (0, 255, 0)
blue = (0, 0, 128)
white = (255, 255, 255)
screen = pygame.display.set_mode(size)
#ball loading and sho... | 25.032967 | 73 | 0.627744 | 323 | 2,278 | 4.343653 | 0.325077 | 0.057021 | 0.051319 | 0.035638 | 0.099786 | 0.099786 | 0.042766 | 0.042766 | 0.042766 | 0.042766 | 0 | 0.043681 | 0.246269 | 2,278 | 90 | 74 | 25.311111 | 0.773442 | 0.102722 | 0 | 0.083333 | 0 | 0 | 0.029975 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
74121ac3394a3fef86202bc8cb9f42490a0298e6 | 888 | py | Python | oasis/clipper_offsetting.py | AmericaMakes/OASIS-marcwang | 7aa10040251d7a1b807a773a45d123e1a52faac5 | [
"BSD-2-Clause"
] | 1 | 2021-03-07T14:47:09.000Z | 2021-03-07T14:47:09.000Z | oasis/clipper_offsetting.py | AmericaMakes/OASIS-marcwang | 7aa10040251d7a1b807a773a45d123e1a52faac5 | [
"BSD-2-Clause"
] | null | null | null | oasis/clipper_offsetting.py | AmericaMakes/OASIS-marcwang | 7aa10040251d7a1b807a773a45d123e1a52faac5 | [
"BSD-2-Clause"
] | 1 | 2021-03-07T00:24:57.000Z | 2021-03-07T00:24:57.000Z | import pyclipper
from shapely.geometry import Polygon
from typing import List
from oasis.util import clean_polygon, convert_to_clipper, convert_from_clipper
class ClipperOffsetting():
def __init__(self, poly : Polygon, clipper_scale : int = 1000) -> None:
self.poly = clean_polygon(poly)
self.offs... | 40.363636 | 88 | 0.699324 | 114 | 888 | 5.192982 | 0.429825 | 0.121622 | 0.108108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008584 | 0.212838 | 888 | 22 | 89 | 40.363636 | 0.83834 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7412ae64b971ee798f8e6d33e8212d9bb55ee3b7 | 2,798 | py | Python | src/py/args_definition.py | snwjas/RandomDesktopBackground-WEBUI | 1e34fb38a1088687987a9c2acd0ce5386b70489c | [
"MIT"
] | 17 | 2022-02-16T11:16:05.000Z | 2022-03-17T07:44:12.000Z | src/py/args_definition.py | snwjas/RandomDesktopBackground-WEBUI | 1e34fb38a1088687987a9c2acd0ce5386b70489c | [
"MIT"
] | 1 | 2022-03-11T08:40:05.000Z | 2022-03-12T02:04:06.000Z | src/py/args_definition.py | snwjas/RandomDesktopBackground-WEBUI | 1e34fb38a1088687987a9c2acd0ce5386b70489c | [
"MIT"
] | 4 | 2022-02-17T11:10:09.000Z | 2022-03-18T00:45:07.000Z | # -*-coding:utf-8-*-
"""
程序启动参数定义、获取与解析
@author Myles Yang
"""
import argparse
import const_config as const
""" 设置命令参数时的KEY """
# 程序运行方式
ARG_KEY_RUN = ARG_RUN = '--run'
# 程序日志记录方式
ARG_KEY_LOG = ARG_LOG = '--log'
# 创建程序快捷方式
ARG_KEY_LNK = ARG_LNK = '--lnk'
# 启动环境
ARG_KEY_ENV = ARG_ENV = '--env'
# 运行中可执行指令
ARG_KEY_CM... | 23.512605 | 102 | 0.605432 | 360 | 2,798 | 4.252778 | 0.25 | 0.062704 | 0.091444 | 0.054866 | 0.062704 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0005 | 0.284489 | 2,798 | 118 | 103 | 23.711864 | 0.764236 | 0.086848 | 0 | 0.078125 | 0 | 0 | 0.079385 | 0.010806 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.03125 | 0 | 0.03125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
741323c5ca5353953499cc57c205c55afeeb9d7b | 693 | py | Python | spec/puzzle/puzzlepedia/annotation_widget_spec.py | PhilHarnish/forge | 663f19d759b94d84935c14915922070635a4af65 | [
"MIT"
] | 2 | 2020-08-18T18:43:09.000Z | 2020-08-18T20:05:59.000Z | spec/puzzle/puzzlepedia/annotation_widget_spec.py | PhilHarnish/forge | 663f19d759b94d84935c14915922070635a4af65 | [
"MIT"
] | null | null | null | spec/puzzle/puzzlepedia/annotation_widget_spec.py | PhilHarnish/forge | 663f19d759b94d84935c14915922070635a4af65 | [
"MIT"
] | null | null | null | from puzzle.constraints import constraints, validator
from puzzle.puzzlepedia import annotation_widget
from spec.mamba import *
widget_patch = mock.patch('puzzle.puzzlepedia.annotation_widget.widgets')
class TestConstraints(constraints.Constraints):
test: str = 'value'
with description('annotation_widget'):
w... | 26.653846 | 74 | 0.746032 | 83 | 693 | 6.096386 | 0.506024 | 0.126482 | 0.059289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010169 | 0.148629 | 693 | 25 | 75 | 27.72 | 0.847458 | 0 | 0 | 0 | 0 | 0 | 0.155844 | 0.063492 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.176471 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7413824fcd9d05cbbace3c88ba8b9036d58fbdad | 1,805 | py | Python | PRESUBMIT.py | Acidburn0zzz/trace-viewer | c4d7cee712b0306afc564787085cff76fd5bb5d9 | [
"BSD-3-Clause"
] | 2 | 2015-02-07T05:19:08.000Z | 2016-12-12T21:17:50.000Z | PRESUBMIT.py | Acidburn0zzz/trace-viewer | c4d7cee712b0306afc564787085cff76fd5bb5d9 | [
"BSD-3-Clause"
] | null | null | null | PRESUBMIT.py | Acidburn0zzz/trace-viewer | c4d7cee712b0306afc564787085cff76fd5bb5d9 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
import sys
_EXCLUDED_PATHS = []
_LICENSE_HEADER = (
r".*? Copyright \(c\) 20\d\d The Chromium Authors\. All rights reserved\."
"\n"
r... | 28.650794 | 77 | 0.750693 | 252 | 1,805 | 5.107143 | 0.337302 | 0.09324 | 0.10878 | 0.13209 | 0.500389 | 0.327894 | 0.167832 | 0.167832 | 0.167832 | 0.167832 | 0 | 0.005263 | 0.157895 | 1,805 | 62 | 78 | 29.112903 | 0.841447 | 0.088089 | 0 | 0.090909 | 0 | 0 | 0.11084 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.136364 | 0.045455 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7418ced2999b5c9ae7697c9504a1ff1a23adb71d | 2,437 | py | Python | prototype/webapp.py | Tethik/whistleblower | 56747cbf3c4eda95cee7eded36b4a853d33d6ee3 | [
"MIT"
] | 1 | 2016-06-20T12:35:42.000Z | 2016-06-20T12:35:42.000Z | prototype/webapp.py | Tethik/whistleblower | 56747cbf3c4eda95cee7eded36b4a853d33d6ee3 | [
"MIT"
] | null | null | null | prototype/webapp.py | Tethik/whistleblower | 56747cbf3c4eda95cee7eded36b4a853d33d6ee3 | [
"MIT"
] | null | null | null | import os
from flask import Flask, request, redirect, url_for, render_template, send_from_directory, jsonify
from werkzeug import secure_filename
import uuid
app = Flask(__name__)
app.config['UPLOAD_FOLDER'] = 'upload/'
app.config['REPLY_FOLDER'] = 'replies/'
app.config['CLIENT_FOLDER'] = 'client/'
def upload_file_to... | 31.24359 | 98 | 0.664341 | 310 | 2,437 | 5.045161 | 0.277419 | 0.063299 | 0.057545 | 0.080563 | 0.495524 | 0.392583 | 0.328645 | 0.209719 | 0.16624 | 0.107417 | 0 | 0.006886 | 0.165778 | 2,437 | 77 | 99 | 31.649351 | 0.76242 | 0.105868 | 0 | 0.113208 | 0 | 0 | 0.172509 | 0.036439 | 0.037736 | 0 | 0 | 0 | 0 | 1 | 0.150943 | false | 0 | 0.075472 | 0.056604 | 0.433962 | 0.018868 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
7419bb062ae8d53ccf6a7504895e66cc726771c1 | 346 | pyw | Python | file.pyw | ArezalGame89/Corn-Engine | fb71f501943bd4136268309059e81f0e4f3ceb79 | [
"MIT"
] | null | null | null | file.pyw | ArezalGame89/Corn-Engine | fb71f501943bd4136268309059e81f0e4f3ceb79 | [
"MIT"
] | null | null | null | file.pyw | ArezalGame89/Corn-Engine | fb71f501943bd4136268309059e81f0e4f3ceb79 | [
"MIT"
] | null | null | null | from tkinter import *
from tkinter import filedialog
import os
def openFile():
filepath = filedialog.askopenfilename(initialdir="/",title="Open file",filetypes= (("text files","*.txt"),("all files","*.*")))
os.startfile(filepath)
window = Tk()
button = Button(text="OpenFile",command=openFile)
button... | 28.833333 | 132 | 0.687861 | 39 | 346 | 6.102564 | 0.641026 | 0.092437 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138728 | 346 | 12 | 133 | 28.833333 | 0.798658 | 0 | 0 | 0 | 0 | 0 | 0.133929 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
741d95c42594e69744089d0d1e3f7163af1adde1 | 526 | py | Python | P1/plot_VI.py | xyp8023/lab1 | ac9693636f25b8e65236503035d241f124568d42 | [
"MIT"
] | null | null | null | P1/plot_VI.py | xyp8023/lab1 | ac9693636f25b8e65236503035d241f124568d42 | [
"MIT"
] | null | null | null | P1/plot_VI.py | xyp8023/lab1 | ac9693636f25b8e65236503035d241f124568d42 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
import argparse
parser = argparse.ArgumentParser(
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument(
"--T", type=int, default=46,
help="Time-horizon.")
args = parser.parse_args()
T = args.T
data_dir = 'dat... | 25.047619 | 61 | 0.718631 | 81 | 526 | 4.54321 | 0.617284 | 0.065217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004376 | 0.131179 | 526 | 21 | 62 | 25.047619 | 0.800875 | 0.051331 | 0 | 0 | 0 | 0 | 0.100402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
741dcec3224bbbaf709d95744c9d3eef8f6a4ddd | 2,808 | py | Python | main.py | sakunamary/raspi-info | 5a22165505947ef6b687d03ed23d963a2db0fe1f | [
"MIT"
] | null | null | null | main.py | sakunamary/raspi-info | 5a22165505947ef6b687d03ed23d963a2db0fe1f | [
"MIT"
] | null | null | null | main.py | sakunamary/raspi-info | 5a22165505947ef6b687d03ed23d963a2db0fe1f | [
"MIT"
] | null | null | null |
import time
import datetime
import threading
from get_net_info import RaspberryMonitorNetSpeed as rmn
import subprocess
import Adafruit_SSD1306
import Adafruit_GPIO.SPI as SPI
from PIL import Image
from PIL import ImageDraw
from PIL import ImageFont
# Raspberry Pi pin configuration:
RST = None # on the PiOLED... | 27.529412 | 91 | 0.614672 | 406 | 2,808 | 4.187192 | 0.41133 | 0.028235 | 0.031765 | 0.042353 | 0.187059 | 0.187059 | 0.167647 | 0.125294 | 0.045882 | 0.045882 | 0 | 0.044235 | 0.243234 | 2,808 | 101 | 92 | 27.80198 | 0.755765 | 0.187322 | 0 | 0.181818 | 0 | 0 | 0.086131 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0.015152 | 0.151515 | 0 | 0.181818 | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
742178c1a58413819c231f7bb06c85855868f4e1 | 3,085 | py | Python | main.py | jleightcap/ScrollingScore | 8b87e3571117001ecc9e26c79526f3ece91169d4 | [
"MIT"
] | 8 | 2017-10-04T21:02:36.000Z | 2021-01-22T19:32:27.000Z | main.py | jleightcap/ScrollingScore | 8b87e3571117001ecc9e26c79526f3ece91169d4 | [
"MIT"
] | 1 | 2018-10-30T01:06:37.000Z | 2018-10-30T01:12:23.000Z | main.py | jleightcap/ScrollingScore | 8b87e3571117001ecc9e26c79526f3ece91169d4 | [
"MIT"
] | null | null | null | import os, sys
from PIL import Image
### TERMINAL ARGUMENTS ###
# -h := help
# -q := quiet
# -single := forced one page per slide
args = sys.argv[1:]
# -h, print README and quit
if "-h" in args:
with open('./README.md') as f:
print(f.read())
quit()
# -q, toggle print statem... | 29.663462 | 93 | 0.540032 | 408 | 3,085 | 4.063725 | 0.32598 | 0.025332 | 0.033173 | 0.048251 | 0.076598 | 0.076598 | 0.076598 | 0.057901 | 0.057901 | 0.057901 | 0 | 0.036372 | 0.295948 | 3,085 | 103 | 94 | 29.951456 | 0.72698 | 0.189951 | 0 | 0.135135 | 0 | 0 | 0.071851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0 | 0.027027 | 0.027027 | 0.162162 | 0.081081 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7423abd661f73d484f9731e84a27b1c7ed10e42f | 1,372 | py | Python | imp_flask/views/imp_flask/products.py | thijsmie/imp_flask | 2cad9f628c54572c02a5f893ef9c0cb1149b18ea | [
"MIT"
] | 1 | 2019-06-13T07:28:02.000Z | 2019-06-13T07:28:02.000Z | imp_flask/views/imp_flask/products.py | k-automation/imp_flask | 2cad9f628c54572c02a5f893ef9c0cb1149b18ea | [
"MIT"
] | 4 | 2016-12-06T11:25:36.000Z | 2021-04-29T07:43:14.000Z | imp_flask/views/imp_flask/products.py | k-automation/imp_flask | 2cad9f628c54572c02a5f893ef9c0cb1149b18ea | [
"MIT"
] | 2 | 2017-09-06T14:26:04.000Z | 2018-02-03T18:55:36.000Z | from flask import render_template
from flask_login import login_required
from imp_flask.blueprints import products
from imp_flask.models.imps import Product, Mod
from imp_flask.forms.product import Product as ProductForm
@products.route('/', defaults=dict(page=1))
@products.route('/page/<int:page>')
@login... | 31.906977 | 122 | 0.706268 | 183 | 1,372 | 5.153005 | 0.333333 | 0.050901 | 0.038176 | 0.073171 | 0.426299 | 0.396607 | 0.275716 | 0.275716 | 0.275716 | 0.195122 | 0 | 0.008711 | 0.163265 | 1,372 | 42 | 123 | 32.666667 | 0.812718 | 0 | 0 | 0.225806 | 0 | 0 | 0.109857 | 0.075997 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.16129 | 0 | 0.387097 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
74242d1feb64459e2d3f13e6fe80316eb9b3ead9 | 370 | py | Python | Section 3/cisco_iosxr_napalm_example.py | magnusmel/-Hands-on-Network-Programming-with-Python | f1d8856791aed3392ac0ee280e4d3470afa63e9c | [
"MIT"
] | 8 | 2018-07-05T09:22:11.000Z | 2021-11-08T13:11:00.000Z | Section 3/cisco_iosxr_napalm_example.py | magnusmel/-Hands-on-Network-Programming-with-Python | f1d8856791aed3392ac0ee280e4d3470afa63e9c | [
"MIT"
] | null | null | null | Section 3/cisco_iosxr_napalm_example.py | magnusmel/-Hands-on-Network-Programming-with-Python | f1d8856791aed3392ac0ee280e4d3470afa63e9c | [
"MIT"
] | 6 | 2018-11-02T04:00:47.000Z | 2021-04-22T12:01:54.000Z | #
# Example From:
# https://xrdocs.io/application-hosting/tutorials/2016-08-15-netmiko-and-napalm-with-ios-xr-quick-look/
#
from napalm import get_network_driver
import pprint
driver = get_network_driver('iosxr')
device = driver('172.16.1.13', 'cisco', 'cisco')
device.open()
pprint.pprint(device.get_facts())
pprin... | 21.764706 | 103 | 0.751351 | 54 | 370 | 5.037037 | 0.648148 | 0.073529 | 0.117647 | 0.154412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047198 | 0.083784 | 370 | 16 | 104 | 23.125 | 0.755162 | 0.313514 | 0 | 0 | 0 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
742519fcfb7dd6c47cbb93d0049edd5300973d43 | 1,598 | py | Python | textcrawler/textcrawler/spiders/voz.py | rootofmylife/vietnamese-text-generation | f95fa3667a908ce213c0c24ac2cf5ed26ec5fa7c | [
"MIT"
] | null | null | null | textcrawler/textcrawler/spiders/voz.py | rootofmylife/vietnamese-text-generation | f95fa3667a908ce213c0c24ac2cf5ed26ec5fa7c | [
"MIT"
] | null | null | null | textcrawler/textcrawler/spiders/voz.py | rootofmylife/vietnamese-text-generation | f95fa3667a908ce213c0c24ac2cf5ed26ec5fa7c | [
"MIT"
] | null | null | null | import scrapy
class VozSpider(scrapy.Spider):
name = 'voz'
start_urls = ['https://voz.vn/f/chuyen-tro-linh-tinh.17/']
custom_settings = { 'FEED_URI': "voz_%(time)s.json",
'FEED_FORMAT': 'json',
'FEED_EXPORT_ENCODING': 'utf-8'}
def parse(self, response):
... | 44.388889 | 196 | 0.597622 | 197 | 1,598 | 4.715736 | 0.401015 | 0.086114 | 0.068891 | 0.023681 | 0.376749 | 0.376749 | 0.376749 | 0.376749 | 0.376749 | 0.312164 | 0 | 0.005673 | 0.227785 | 1,598 | 35 | 197 | 45.657143 | 0.747164 | 0 | 0 | 0.214286 | 0 | 0.071429 | 0.319149 | 0.163329 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.035714 | 0 | 0.285714 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
7426de94b22c4fbcf84a5f14e77b0aacfb42e96e | 4,853 | py | Python | tests/route53/test_route53.py | kazhala/fawsf | 4abefb2301f7b489b11ed3f0b303faafa5941d5b | [
"MIT"
] | 66 | 2020-07-26T12:43:30.000Z | 2022-01-25T12:09:40.000Z | tests/route53/test_route53.py | kazhala/fawsf | 4abefb2301f7b489b11ed3f0b303faafa5941d5b | [
"MIT"
] | null | null | null | tests/route53/test_route53.py | kazhala/fawsf | 4abefb2301f7b489b11ed3f0b303faafa5941d5b | [
"MIT"
] | 3 | 2020-07-26T22:09:45.000Z | 2020-07-28T01:09:26.000Z | import unittest
import os
import io
import sys
from unittest.mock import patch
from fzfaws.route53 import Route53
from fzfaws.utils import Pyfzf, FileLoader
from botocore.paginate import Paginator
from pathlib import Path
class TestRoute53(unittest.TestCase):
def setUp(self):
fileloader = FileLoader()
... | 34.664286 | 86 | 0.53163 | 440 | 4,853 | 5.654545 | 0.231818 | 0.084003 | 0.050643 | 0.083601 | 0.505225 | 0.432074 | 0.403135 | 0.316318 | 0.316318 | 0.282556 | 0 | 0.062422 | 0.33979 | 4,853 | 139 | 87 | 34.913669 | 0.714107 | 0.018339 | 0 | 0.352941 | 0 | 0 | 0.172167 | 0.018499 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.042017 | false | 0 | 0.07563 | 0 | 0.12605 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
742a3ab0f1445fb6ee395010f779ab9f70f5457e | 6,504 | py | Python | rs_course/utils.py | inpefess/recommender-systems-course | 1f890b12e0b6c6ffefe7822a8b878c322c469543 | [
"Apache-2.0"
] | null | null | null | rs_course/utils.py | inpefess/recommender-systems-course | 1f890b12e0b6c6ffefe7822a8b878c322c469543 | [
"Apache-2.0"
] | 11 | 2022-01-31T11:05:16.000Z | 2022-03-06T19:45:40.000Z | rs_course/utils.py | inpefess/recommender-systems-course | 1f890b12e0b6c6ffefe7822a8b878c322c469543 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021-2022 Boris Shminke
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | 33.875 | 79 | 0.667897 | 880 | 6,504 | 4.715909 | 0.248864 | 0.021687 | 0.018795 | 0.018072 | 0.140241 | 0.064096 | 0.039518 | 0.016867 | 0 | 0 | 0 | 0.004968 | 0.226322 | 6,504 | 191 | 80 | 34.052356 | 0.819754 | 0.338407 | 0 | 0.084746 | 0 | 0 | 0.042558 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050847 | false | 0 | 0.067797 | 0 | 0.161017 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
742d53fcb251b5c4874903797e2381fec53f64e4 | 1,738 | py | Python | day/6/survey_pt2.py | philparkbot/advent2020 | e5ee7e0703ae82d4c773024e4289d7d37879af35 | [
"MIT"
] | null | null | null | day/6/survey_pt2.py | philparkbot/advent2020 | e5ee7e0703ae82d4c773024e4289d7d37879af35 | [
"MIT"
] | null | null | null | day/6/survey_pt2.py | philparkbot/advent2020 | e5ee7e0703ae82d4c773024e4289d7d37879af35 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
'''
Input is a group of one or more lines with letters.
Each letter = question to which the answer was 'yes'.
Each line represents survey answers by a person, contains one or more letter.
Adjacent lines are part of the same group.
For each group, count the number of questions to which all peo... | 25.188406 | 80 | 0.521864 | 239 | 1,738 | 3.543933 | 0.330544 | 0.056671 | 0.070838 | 0.033058 | 0.24085 | 0.24085 | 0.24085 | 0.24085 | 0.24085 | 0.24085 | 0 | 0.002913 | 0.210012 | 1,738 | 69 | 81 | 25.188406 | 0.613984 | 0.405063 | 0 | 0.444444 | 0 | 0 | 0.036239 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.055556 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
742d81b9ef0eae8d2a138809ba186426bf9511d7 | 882 | py | Python | test/ut/tools/annotation/testcase/annotated/handwrite.py | dutxubo/nni | c16f4e1c89b54b8b80661ef0072433d255ad2d24 | [
"MIT"
] | 9,680 | 2019-05-07T01:42:30.000Z | 2022-03-31T16:48:33.000Z | test/ut/tools/annotation/testcase/annotated/handwrite.py | dutxubo/nni | c16f4e1c89b54b8b80661ef0072433d255ad2d24 | [
"MIT"
] | 1,957 | 2019-05-06T21:44:21.000Z | 2022-03-31T09:21:53.000Z | test/ut/tools/annotation/testcase/annotated/handwrite.py | dutxubo/nni | c16f4e1c89b54b8b80661ef0072433d255ad2d24 | [
"MIT"
] | 1,571 | 2019-05-07T06:42:55.000Z | 2022-03-31T03:19:24.000Z | import nni
def max_pool(k):
pass
h_conv1 = 1
nni.choice({'foo': foo, 'bar': bar})(1)
conv_size = nni.choice({2: 2, 3: 3, 5: 5, 7: 7}, name='conv_size')
abc = nni.choice({'2': '2', 3: 3, '(5 * 6)': 5 * 6, 7: 7}, name='abc')
h_pool1 = nni.function_choice({'max_pool': lambda : max_pool(h_conv1),
'h_conv1': lambda... | 36.75 | 78 | 0.643991 | 162 | 882 | 3.240741 | 0.246914 | 0.091429 | 0.060952 | 0.114286 | 0.371429 | 0.299048 | 0.262857 | 0 | 0 | 0 | 0 | 0.07027 | 0.160998 | 882 | 23 | 79 | 38.347826 | 0.639189 | 0 | 0 | 0 | 0 | 0 | 0.172336 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0.045455 | 0.045455 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
742d95bbe3f86400b205fe61790ce9cbad881b41 | 7,019 | py | Python | scripts/update-seminars.py | geem-lab/seminars | 0ea259c902c98ca49a1da252a331ac21eb1e094a | [
"MIT"
] | 6 | 2022-03-09T13:10:24.000Z | 2022-03-28T22:20:39.000Z | scripts/update-seminars.py | geem-lab/seminars | 0ea259c902c98ca49a1da252a331ac21eb1e094a | [
"MIT"
] | 9 | 2022-03-08T22:35:29.000Z | 2022-03-28T14:33:10.000Z | scripts/update-seminars.py | geem-lab/seminars | 0ea259c902c98ca49a1da252a331ac21eb1e094a | [
"MIT"
] | null | null | null | from __future__ import annotations
import calendar
import logging
import os
from dataclasses import dataclass
from datetime import datetime
import dateparser
import requests
from markdown import markdown
def request_github_api(
query_url: str, owner="geem-lab", token=None, logger=None
) -> dict:
if token is... | 26.486792 | 140 | 0.583274 | 785 | 7,019 | 5.030573 | 0.242038 | 0.047354 | 0.038997 | 0.014181 | 0.155989 | 0.084072 | 0.084072 | 0.084072 | 0.031907 | 0.031907 | 0 | 0.002823 | 0.293347 | 7,019 | 264 | 141 | 26.587121 | 0.793145 | 0 | 0 | 0.086957 | 0 | 0.004831 | 0.152728 | 0.040889 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.043478 | 0.024155 | 0.318841 | 0.004831 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
7431452de01929e5a219b4f8d212634cdab0aa06 | 387 | py | Python | failures/mapper.py | ALaks96/MapReduce_Pyspark_Large_Matrix_Multiplication | 1a37a4a66464e7f11295ebf55507853b959748ad | [
"MIT"
] | null | null | null | failures/mapper.py | ALaks96/MapReduce_Pyspark_Large_Matrix_Multiplication | 1a37a4a66464e7f11295ebf55507853b959748ad | [
"MIT"
] | null | null | null | failures/mapper.py | ALaks96/MapReduce_Pyspark_Large_Matrix_Multiplication | 1a37a4a66464e7f11295ebf55507853b959748ad | [
"MIT"
] | null | null | null | #!/usr/bin/python
import sys
# input comes from STDIN (standard input)
for line in sys.stdin:
# remove leading and trailing whitespace
line = line.strip()
# split the line into words
element1 = line.split(',')
c = 0
for element in element1:
c += 1
if c == 1:
... | 16.125 | 44 | 0.537468 | 47 | 387 | 4.425532 | 0.680851 | 0.019231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024896 | 0.377261 | 387 | 24 | 45 | 16.125 | 0.838174 | 0.312662 | 0 | 0 | 0 | 0 | 0.003802 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
74315d90853ccb50d6e8d6018b567f14aa463a3b | 5,589 | py | Python | winchester/db/alembic_command.py | SandyWalsh/stacktach-winchester | ac49955386b695868945a28b6597fe72b3b657e6 | [
"Apache-2.0"
] | null | null | null | winchester/db/alembic_command.py | SandyWalsh/stacktach-winchester | ac49955386b695868945a28b6597fe72b3b657e6 | [
"Apache-2.0"
] | null | null | null | winchester/db/alembic_command.py | SandyWalsh/stacktach-winchester | ac49955386b695868945a28b6597fe72b3b657e6 | [
"Apache-2.0"
] | null | null | null | from alembic import util, command, config
import argparse
import inspect
class AlembicCommandLine(object):
prog = None
description = None
allowed_commands = None
def __init__(self, prog=None, description=None, allowed_commands=None):
if prog is not None:
self.prog = prog
i... | 39.083916 | 77 | 0.501879 | 555 | 5,589 | 4.911712 | 0.304505 | 0.039618 | 0.068599 | 0.043654 | 0.125092 | 0.046222 | 0.030814 | 0 | 0 | 0 | 0 | 0.005076 | 0.400787 | 5,589 | 142 | 78 | 39.359155 | 0.808898 | 0.018429 | 0 | 0.084746 | 0 | 0 | 0.16764 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067797 | false | 0 | 0.025424 | 0.008475 | 0.152542 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
74316554f8575ef9ba36a94a68a372ec2ee916f0 | 7,892 | py | Python | tests/test_glamor_functions.py | Denis-Alexeev/pytest-glamor-allure | e7b5f11115eefd61ab1c7b775d6bafec0b1623e2 | [
"MIT"
] | 8 | 2021-11-15T21:59:46.000Z | 2022-03-28T07:49:55.000Z | tests/test_glamor_functions.py | Denis-Alexeev/pytest-glamor-allure | e7b5f11115eefd61ab1c7b775d6bafec0b1623e2 | [
"MIT"
] | 11 | 2021-11-15T16:07:35.000Z | 2022-02-17T08:20:05.000Z | tests/test_glamor_functions.py | Denis-Alexeev/pytest-glamor-allure | e7b5f11115eefd61ab1c7b775d6bafec0b1623e2 | [
"MIT"
] | 2 | 2021-12-28T08:27:35.000Z | 2022-01-17T02:19:26.000Z | """
Here we test `glamor.include_scope_in_title` and
`glamor.logging_allure_steps` functions.
"""
import io
import logging
from allure_commons_test.container import has_container
from allure_commons_test.report import has_test_case
from hamcrest import assert_that
from glamor.patches import PatchHelper, include_scope... | 30.708171 | 79 | 0.578814 | 846 | 7,892 | 5.125296 | 0.170213 | 0.04059 | 0.038745 | 0.02191 | 0.364391 | 0.326799 | 0.226015 | 0.226015 | 0.129151 | 0.084871 | 0 | 0.002031 | 0.313609 | 7,892 | 256 | 80 | 30.828125 | 0.798412 | 0.011277 | 0 | 0.441176 | 0 | 0 | 0.226684 | 0.056575 | 0 | 0 | 0 | 0 | 0.02451 | 1 | 0.044118 | false | 0.009804 | 0.063725 | 0.009804 | 0.132353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7433c8c30300e5235615677f9a888944d6d1c778 | 1,827 | py | Python | gorzdrav_parser.py | hound672/gorzdrav_parser | a6e5175111e8a0072484cb1b8c73dcc9afeec172 | [
"MIT"
] | null | null | null | gorzdrav_parser.py | hound672/gorzdrav_parser | a6e5175111e8a0072484cb1b8c73dcc9afeec172 | [
"MIT"
] | null | null | null | gorzdrav_parser.py | hound672/gorzdrav_parser | a6e5175111e8a0072484cb1b8c73dcc9afeec172 | [
"MIT"
] | 1 | 2021-02-07T19:46:37.000Z | 2021-02-07T19:46:37.000Z | import requests
import pprint
import time
from datetime import datetime
def send_push(text):
try:
print(f"Send push: {text}")
TOKEN = "put your token here"
args = {"title": text, "identifier": TOKEN}
requests.get("https://pushmeapi.jagcesar.se", params=args)
except Exception as... | 26.478261 | 80 | 0.570881 | 225 | 1,827 | 4.484444 | 0.431111 | 0.071358 | 0.050545 | 0.053518 | 0.085233 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010761 | 0.287904 | 1,827 | 68 | 81 | 26.867647 | 0.764796 | 0.062945 | 0 | 0.204082 | 0 | 0 | 0.269906 | 0.046253 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040816 | false | 0 | 0.081633 | 0 | 0.142857 | 0.163265 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
743528a5657356c58159ba08649a9c47c2edc92a | 239 | py | Python | Python3/96.unique-binary-search-trees.py | 610yilingliu/leetcode | 30d071b3685c2131bd3462ba77c6c05114f3f227 | [
"MIT"
] | null | null | null | Python3/96.unique-binary-search-trees.py | 610yilingliu/leetcode | 30d071b3685c2131bd3462ba77c6c05114f3f227 | [
"MIT"
] | null | null | null | Python3/96.unique-binary-search-trees.py | 610yilingliu/leetcode | 30d071b3685c2131bd3462ba77c6c05114f3f227 | [
"MIT"
] | null | null | null | #
# @lc app=leetcode id=96 lang=python3
#
# [96] Unique Binary Search Trees
#
# @lc code=start
class Solution:
def numTrees(self, n: int):
if n < 2:
return n
dp = [0] * n
# @lc code=end
| 13.277778 | 37 | 0.502092 | 33 | 239 | 3.636364 | 0.787879 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04698 | 0.376569 | 239 | 17 | 38 | 14.058824 | 0.758389 | 0.39749 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7436b8a2d033f080a4d8a0fedb57c06470287cd7 | 1,377 | py | Python | deepcell_label/exporters_test.py | naterenegar/deepcell-label | 5ebe3dd5786746dbdea3dc2ff37f07bb45ebffb8 | [
"Apache-2.0"
] | null | null | null | deepcell_label/exporters_test.py | naterenegar/deepcell-label | 5ebe3dd5786746dbdea3dc2ff37f07bb45ebffb8 | [
"Apache-2.0"
] | 2 | 2020-10-15T23:09:02.000Z | 2020-10-22T19:59:09.000Z | deepcell_label/exporters_test.py | naterenegar/deepcell-label | 5ebe3dd5786746dbdea3dc2ff37f07bb45ebffb8 | [
"Apache-2.0"
] | null | null | null | """Tests for exporters.py"""
import pytest
import io
from deepcell_label import models
from deepcell_label import exporters
from deepcell_label.conftest import DummyLoader
@pytest.fixture
def npz_exporter(app, db_session):
with app.app_context():
db_session.autoflush = False
project = models.Pro... | 27.54 | 69 | 0.682643 | 159 | 1,377 | 5.72956 | 0.308176 | 0.059276 | 0.055982 | 0.052689 | 0.5236 | 0.5236 | 0.422613 | 0.296378 | 0.296378 | 0.230516 | 0 | 0.003731 | 0.221496 | 1,377 | 49 | 70 | 28.102041 | 0.846082 | 0.015977 | 0 | 0.4 | 0 | 0 | 0.037064 | 0.022239 | 0 | 0 | 0 | 0 | 0.085714 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
743894d56d7c6c4c5887273915d861d1f752013b | 6,047 | py | Python | petition.py | corazzon/petitions | 76b2110cb7b664fa25a6a71527d50a5e8a9acf9a | [
"MIT"
] | 1 | 2019-02-18T00:47:07.000Z | 2019-02-18T00:47:07.000Z | petition.py | corazzon/petitions | 76b2110cb7b664fa25a6a71527d50a5e8a9acf9a | [
"MIT"
] | null | null | null | petition.py | corazzon/petitions | 76b2110cb7b664fa25a6a71527d50a5e8a9acf9a | [
"MIT"
] | 2 | 2018-05-31T07:57:54.000Z | 2021-09-07T22:47:38.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
import csv
import logging
import os
import random
import re
from concurrent.futures import ThreadPoolExecutor
from typing import Dict
from urllib import request
from urllib.error import HTTPError
from bs4 import BeautifulSoup
DATA_DIR = 'data'
CSV_FILE_WHOLE = os.path.join(DA... | 30.235 | 79 | 0.592525 | 836 | 6,047 | 4.147129 | 0.34689 | 0.041534 | 0.02769 | 0.030286 | 0.190366 | 0.159792 | 0.120277 | 0.120277 | 0.077589 | 0.024805 | 0 | 0.013173 | 0.27187 | 6,047 | 199 | 80 | 30.386935 | 0.774245 | 0.097238 | 0 | 0.123188 | 0 | 0 | 0.164754 | 0.025916 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072464 | false | 0.007246 | 0.072464 | 0 | 0.202899 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7438b8b5f4189488f134c9a9c07bc97d4f67a23a | 1,080 | py | Python | Examples/QLinearGradientDemo.py | GrayLand119/PyQt5-Demos | 792379b4f474abd00aceb2982aad599277a6139d | [
"MIT"
] | null | null | null | Examples/QLinearGradientDemo.py | GrayLand119/PyQt5-Demos | 792379b4f474abd00aceb2982aad599277a6139d | [
"MIT"
] | null | null | null | Examples/QLinearGradientDemo.py | GrayLand119/PyQt5-Demos | 792379b4f474abd00aceb2982aad599277a6139d | [
"MIT"
] | null | null | null | from PyQt5 import QtGui
from PyQt5.QtWidgets import QApplication, QMainWindow
import sys
from PyQt5.QtGui import QPainter, QBrush, QPen, QLinearGradient
from PyQt5.QtCore import Qt
class Window(QMainWindow):
def __init__(self):
super().__init__()
self.title = "PyQt5 Window"
self.top = 200... | 25.116279 | 70 | 0.641667 | 135 | 1,080 | 5.074074 | 0.42963 | 0.052555 | 0.046715 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057387 | 0.241667 | 1,080 | 42 | 71 | 25.714286 | 0.778999 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.16129 | 0 | 0.290323 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
743c019783cebe50823cfa7cf0403d2a844efab9 | 26,854 | py | Python | kernel/components/boosting/horzsecureboost/horz_secureboosting_client.py | rinceyuan/WeFe | 8482cb737cb7ba37b2856d184cd42c1bd35a6318 | [
"Apache-2.0"
] | 39 | 2021-10-12T01:43:27.000Z | 2022-03-28T04:46:35.000Z | kernel/components/boosting/horzsecureboost/horz_secureboosting_client.py | rinceyuan/WeFe | 8482cb737cb7ba37b2856d184cd42c1bd35a6318 | [
"Apache-2.0"
] | 6 | 2021-10-14T02:11:47.000Z | 2022-03-23T02:41:50.000Z | kernel/components/boosting/horzsecureboost/horz_secureboosting_client.py | rinceyuan/WeFe | 8482cb737cb7ba37b2856d184cd42c1bd35a6318 | [
"Apache-2.0"
] | 10 | 2021-10-14T09:36:03.000Z | 2022-02-10T11:05:12.000Z | # Copyright 2021 Tianmian Tech. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | 46.379965 | 221 | 0.624116 | 3,212 | 26,854 | 4.947385 | 0.130448 | 0.024353 | 0.015858 | 0.020137 | 0.379083 | 0.258952 | 0.20219 | 0.167705 | 0.13687 | 0.120131 | 0 | 0.003721 | 0.289454 | 26,854 | 578 | 222 | 46.460208 | 0.829097 | 0.08643 | 0 | 0.091765 | 0 | 0 | 0.048551 | 0.003684 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070588 | false | 0 | 0.115294 | 0.002353 | 0.24 | 0.002353 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
744107433714491e0a8e46ba4af32bda59ff3f79 | 8,238 | py | Python | src/nr/util/process/root.py | NiklasRosenstein/python-nr.util | 087f2410d38006c1005a5fb330c47a56bcdb2279 | [
"MIT"
] | null | null | null | src/nr/util/process/root.py | NiklasRosenstein/python-nr.util | 087f2410d38006c1005a5fb330c47a56bcdb2279 | [
"MIT"
] | 3 | 2022-02-16T13:17:28.000Z | 2022-03-14T15:28:41.000Z | src/nr/util/process/root.py | NiklasRosenstein/python-nr.util | 087f2410d38006c1005a5fb330c47a56bcdb2279 | [
"MIT"
] | null | null | null |
from __future__ import annotations
import os
import sys
if __name__ == '__main__':
# Ensure that the parent directory is not in sys.path.
norm = lambda x: os.path.normpath(os.path.abspath(x))
dirname = os.path.dirname(norm(__file__))
sys.path[:] = [x for x in sys.path if norm(x) != dirname]
del norm, dirna... | 30.511111 | 119 | 0.657563 | 1,011 | 8,238 | 5.257171 | 0.295747 | 0.012418 | 0.010536 | 0.009407 | 0.079586 | 0.058325 | 0.0365 | 0.021449 | 0.021449 | 0.021449 | 0 | 0.006535 | 0.219835 | 8,238 | 269 | 120 | 30.624535 | 0.820445 | 0.097232 | 0 | 0.183962 | 0 | 0 | 0.104872 | 0.013902 | 0 | 0 | 0.000675 | 0.007435 | 0.009434 | 1 | 0.051887 | false | 0 | 0.070755 | 0.009434 | 0.259434 | 0.033019 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |