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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
12f2139184aea177b546923cc78d7b43a26b2e26 | 4,940 | py | Python | Old/OpenCV Scripts/red_filtered_detector.py | multirotorsociety/SAFMC-19-D2-Autonomous-Drone | fd9f0fae5d7cbf618b327224e06a7f459612b4ca | [
"MIT"
] | 6 | 2019-04-01T02:38:40.000Z | 2021-06-05T18:23:06.000Z | Old/OpenCV Scripts/red_filtered_detector.py | multirotorsociety/SAFMC-19-D2-Autonomous-Drone | fd9f0fae5d7cbf618b327224e06a7f459612b4ca | [
"MIT"
] | null | null | null | Old/OpenCV Scripts/red_filtered_detector.py | multirotorsociety/SAFMC-19-D2-Autonomous-Drone | fd9f0fae5d7cbf618b327224e06a7f459612b4ca | [
"MIT"
] | 1 | 2019-09-01T08:58:28.000Z | 2019-09-01T08:58:28.000Z |
from picamera.array import PiRGBArray
from picamera import PiCamera
import cv2
import numpy as np
import time
from fractions import Fraction
from PIL import Image
#cap = cv2.VideoCapture(0)
camera = PiCamera()
camera.resolution = (426, 240)
camera.framerate = 24
camera.exposure_mode = 'off'
camera.exposure_compensa... | 33.154362 | 109 | 0.618421 | 743 | 4,940 | 3.974428 | 0.274563 | 0.048764 | 0.047409 | 0.024382 | 0.141212 | 0.106333 | 0.074501 | 0.055537 | 0.02235 | 0.02235 | 0 | 0.088809 | 0.211336 | 4,940 | 149 | 110 | 33.154362 | 0.669148 | 0.473684 | 0 | 0 | 0 | 0 | 0.044646 | 0 | 0 | 0 | 0.00158 | 0 | 0 | 1 | 0 | false | 0 | 0.12069 | 0 | 0.12069 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
12f21abc71f1092fae63b143257827c5624eebdf | 2,965 | py | Python | setup.py | Maven85/plugin.video.magenta-sport | e05eeea629295d79de7467d495eb0c20b3adb60b | [
"MIT"
] | null | null | null | setup.py | Maven85/plugin.video.magenta-sport | e05eeea629295d79de7467d495eb0c20b3adb60b | [
"MIT"
] | null | null | null | setup.py | Maven85/plugin.video.magenta-sport | e05eeea629295d79de7467d495eb0c20b3adb60b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Module: default
# Author: asciidisco
# Created on: 24.07.2017
# License: MIT https://goo.gl/WA1kby
"""Setup"""
from __future__ import unicode_literals
from os.path import abspath, dirname, join
from re import search
from sys import exit, version, version_info
from setuptools import find_pack... | 26.711712 | 73 | 0.551771 | 303 | 2,965 | 5.145215 | 0.405941 | 0.061578 | 0.082104 | 0.094291 | 0.123156 | 0.080821 | 0.047466 | 0.047466 | 0.047466 | 0 | 0 | 0.012037 | 0.299494 | 2,965 | 110 | 74 | 26.954545 | 0.738565 | 0.054975 | 0 | 0.178947 | 0 | 0 | 0.200215 | 0.024399 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010526 | false | 0 | 0.052632 | 0 | 0.073684 | 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 |
12f2a97e43141a9ad0fb868815aad72bb1ff0352 | 5,648 | py | Python | sdv/tabular/ctgan.py | joanvaquer/SDV | 83e4fdf0ff72e6c5b72cfc8c6ec9584dbd34de28 | [
"MIT"
] | null | null | null | sdv/tabular/ctgan.py | joanvaquer/SDV | 83e4fdf0ff72e6c5b72cfc8c6ec9584dbd34de28 | [
"MIT"
] | null | null | null | sdv/tabular/ctgan.py | joanvaquer/SDV | 83e4fdf0ff72e6c5b72cfc8c6ec9584dbd34de28 | [
"MIT"
] | null | null | null | """Wrapper around CTGAN model."""
from sdv.tabular.base import BaseTabularModel
class CTGAN(BaseTabularModel):
"""Model wrapping ``CTGANSynthesizer`` model.
Args:
field_names (list[str]):
List of names of the fields that need to be modeled
and included in the generated output... | 40.056738 | 97 | 0.599681 | 653 | 5,648 | 5.030628 | 0.309342 | 0.016743 | 0.012177 | 0.014612 | 0.121766 | 0.073059 | 0.073059 | 0.073059 | 0.073059 | 0.073059 | 0 | 0.012871 | 0.325956 | 5,648 | 140 | 98 | 40.342857 | 0.850013 | 0.567812 | 0 | 0 | 0 | 0 | 0.060935 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053571 | false | 0 | 0.053571 | 0 | 0.196429 | 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 |
12f479c7b7668c843b94467ffeb73f441443785b | 1,130 | py | Python | cointrader/config.py | 3con/cointrader | abb3d13d1105e11db0070a9052c45cb8a87f168c | [
"MIT"
] | 103 | 2017-03-10T07:23:12.000Z | 2021-08-24T17:39:22.000Z | cointrader/config.py | altfund/cointrader-1 | abb3d13d1105e11db0070a9052c45cb8a87f168c | [
"MIT"
] | 91 | 2017-03-11T06:23:09.000Z | 2021-11-15T17:47:06.000Z | cointrader/config.py | fwolfst/cointrader | abb3d13d1105e11db0070a9052c45cb8a87f168c | [
"MIT"
] | 36 | 2017-03-23T17:48:08.000Z | 2020-02-21T23:42:03.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import os
import logging
import logging.config
if (sys.version_info > (3, 0)):
# Python 3 code in this block
import configparser
else:
# Python 2 code in this block
import ConfigParser as configparser
DEFAULT_CONFIG = ".cointrader.ini"
def get_... | 25.681818 | 64 | 0.642478 | 143 | 1,130 | 4.937063 | 0.412587 | 0.07932 | 0.056657 | 0.042493 | 0.147309 | 0.093484 | 0 | 0 | 0 | 0 | 0 | 0.005945 | 0.255752 | 1,130 | 43 | 65 | 26.27907 | 0.833532 | 0.086726 | 0 | 0 | 0 | 0 | 0.074903 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 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 |
12f6a69fd0573ee6b9b0a6c81a158a82f44d6769 | 6,480 | py | Python | playground/pets_dubins.py | pecey/mbrl-lib | ebca518b35a1370dbaede2a1c96fcde714bc5489 | [
"MIT"
] | null | null | null | playground/pets_dubins.py | pecey/mbrl-lib | ebca518b35a1370dbaede2a1c96fcde714bc5489 | [
"MIT"
] | null | null | null | playground/pets_dubins.py | pecey/mbrl-lib | ebca518b35a1370dbaede2a1c96fcde714bc5489 | [
"MIT"
] | null | null | null | import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np
import torch
import omegaconf
import mbrl.env.continuous_dubins as dubins_env
import mbrl.env.reward_fns as reward_fns
import mbrl.env.termination_fns as termination_fns
import mbrl.models as models
import mbrl.planning as planning
import mbrl... | 34.105263 | 114 | 0.622531 | 773 | 6,480 | 4.940492 | 0.340233 | 0.020948 | 0.010212 | 0.00995 | 0.030898 | 0.020948 | 0.020948 | 0.020948 | 0 | 0 | 0 | 0.014772 | 0.279167 | 6,480 | 189 | 115 | 34.285714 | 0.802826 | 0.162037 | 0 | 0.014184 | 0 | 0 | 0.117647 | 0.016093 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014184 | false | 0 | 0.085106 | 0 | 0.106383 | 0.014184 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
12fad400aa5ee6c8bf4a6f0d061c8bf3df14fbb1 | 1,675 | py | Python | api-inference-community/docker_images/spacy/app/pipelines/text_classification.py | mlonaws/huggingface_hub | 588f74b98fbcab2cd7e61a74cc6d9649a92e0ef2 | [
"Apache-2.0"
] | 362 | 2020-12-22T10:24:06.000Z | 2022-03-30T22:47:25.000Z | api-inference-community/docker_images/spacy/app/pipelines/text_classification.py | mlonaws/huggingface_hub | 588f74b98fbcab2cd7e61a74cc6d9649a92e0ef2 | [
"Apache-2.0"
] | 547 | 2020-12-24T13:35:57.000Z | 2022-03-31T17:32:42.000Z | api-inference-community/docker_images/spacy/app/pipelines/text_classification.py | mlonaws/huggingface_hub | 588f74b98fbcab2cd7e61a74cc6d9649a92e0ef2 | [
"Apache-2.0"
] | 98 | 2021-01-06T17:37:09.000Z | 2022-03-29T07:20:08.000Z | import os
import subprocess
import sys
from typing import Dict, List
from app.pipelines import Pipeline
class TextClassificationPipeline(Pipeline):
def __init__(
self,
model_id: str,
):
# At the time, only public models from spaCy are allowed in the inference API.
full_model_p... | 34.895833 | 128 | 0.601791 | 206 | 1,675 | 4.762136 | 0.519417 | 0.045872 | 0.039755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017573 | 0.286567 | 1,675 | 47 | 129 | 35.638298 | 0.803347 | 0.282985 | 0 | 0 | 0 | 0.034483 | 0.194863 | 0.023029 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.206897 | 0 | 0.344828 | 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 |
12fb3b1f1de02a4bb72cea078775fd6a9b6cb1ac | 4,867 | py | Python | aws/logs_monitoring/tests/test_cloudtrail_s3.py | rkitron/datadog-serverless-functions | d69fe6fdb489c262ffa76a529b22f2a81ae6deba | [
"Apache-2.0"
] | 232 | 2018-11-20T16:57:04.000Z | 2022-03-23T14:38:11.000Z | aws/logs_monitoring/tests/test_cloudtrail_s3.py | rkitron/datadog-serverless-functions | d69fe6fdb489c262ffa76a529b22f2a81ae6deba | [
"Apache-2.0"
] | 207 | 2018-10-25T11:48:20.000Z | 2022-03-23T00:21:10.000Z | aws/logs_monitoring/tests/test_cloudtrail_s3.py | rkitron/datadog-serverless-functions | d69fe6fdb489c262ffa76a529b22f2a81ae6deba | [
"Apache-2.0"
] | 308 | 2018-10-24T13:36:05.000Z | 2022-03-21T21:17:02.000Z | from unittest.mock import MagicMock, patch
import os
import sys
import unittest
import json
import copy
import io
import gzip
sys.modules["trace_forwarder.connection"] = MagicMock()
sys.modules["datadog_lambda.wrapper"] = MagicMock()
sys.modules["datadog_lambda.metric"] = MagicMock()
sys.modules["datadog"] = MagicMock... | 32.231788 | 115 | 0.543661 | 395 | 4,867 | 6.539241 | 0.486076 | 0.023229 | 0.036779 | 0.030197 | 0.024777 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089384 | 0.326484 | 4,867 | 150 | 116 | 32.446667 | 0.698597 | 0.020957 | 0 | 0.039683 | 0 | 0 | 0.340403 | 0.146577 | 0 | 0 | 0 | 0 | 0.015873 | 1 | 0.02381 | false | 0 | 0.079365 | 0.007937 | 0.15873 | 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 |
12fc144c5d332d1edd841f8f777a22d5c30bf0b9 | 487 | py | Python | ch_06/tests/test_lookup_mapping.py | real-slim-chadi/Python-Object-Oriented-Programming---4th-edition | 7c486866171786b620795fa33a79ec9ac9a8ba1b | [
"MIT"
] | 43 | 2021-06-03T18:39:09.000Z | 2022-03-29T20:32:13.000Z | ch_06/tests/test_lookup_mapping.py | real-slim-chadi/Python-Object-Oriented-Programming---4th-edition | 7c486866171786b620795fa33a79ec9ac9a8ba1b | [
"MIT"
] | 16 | 2022-02-08T22:41:30.000Z | 2022-03-25T22:48:28.000Z | ch_06/tests/test_lookup_mapping.py | real-slim-chadi/Python-Object-Oriented-Programming---4th-edition | 7c486866171786b620795fa33a79ec9ac9a8ba1b | [
"MIT"
] | 36 | 2021-06-19T07:14:09.000Z | 2022-03-12T22:17:09.000Z | """
Python 3 Object-Oriented Programming
Chapter 6, Abstract Base Classes and Operator Overloading
"""
from lookup_mapping import Lookup
def test_lookup_mapping():
x = Lookup(
[
["z", "Zillah"],
["a", "Amy"],
["c", "Clara"],
["b", "Basil"],
]
)
... | 20.291667 | 57 | 0.486653 | 60 | 487 | 3.9 | 0.583333 | 0.111111 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009202 | 0.330595 | 487 | 23 | 58 | 21.173913 | 0.708589 | 0.195072 | 0 | 0 | 0 | 0 | 0.104167 | 0 | 0 | 0 | 0 | 0 | 0.375 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
12fde371c750b67c435196b6031afbfb913cf73d | 9,198 | py | Python | train/metric.py | alexandrosstergiou/Squeeze-and-Recursion-Temporal-Gates | 1641b59b73c951a5b05d17b5528894ae73a014b8 | [
"MIT"
] | 54 | 2020-06-16T08:11:21.000Z | 2022-03-18T14:54:52.000Z | train/metric.py | alexandrosstergiou/Squeeze-and-Recursion-Temporal-Gates | 1641b59b73c951a5b05d17b5528894ae73a014b8 | [
"MIT"
] | 10 | 2020-06-23T07:57:45.000Z | 2021-12-16T04:18:03.000Z | train/metric.py | alexandrosstergiou/Squeeze-and-Recursion-Temporal-Gates | 1641b59b73c951a5b05d17b5528894ae73a014b8 | [
"MIT"
] | 7 | 2020-09-12T12:46:54.000Z | 2021-11-15T09:00:55.000Z | '''
--- I M P O R T S T A T E M E N T S ---
'''
import coloredlogs, logging
coloredlogs.install()
import numpy as np
'''
=== S T A R T O F C L A S S E V A L M E T R I C ===
[About]
Object class for calculating average values.
[Init Args]
- name: String for the variable name to calc... | 30.356436 | 103 | 0.593064 | 1,346 | 9,198 | 3.947994 | 0.144131 | 0.006775 | 0.006775 | 0.009033 | 0.492096 | 0.435642 | 0.36959 | 0.3551 | 0.33233 | 0.306925 | 0 | 0.008183 | 0.295825 | 9,198 | 302 | 104 | 30.456954 | 0.812259 | 0.025984 | 0 | 0.231405 | 0 | 0 | 0.059754 | 0 | 0 | 0 | 0 | 0 | 0.041322 | 1 | 0.157025 | false | 0 | 0.024793 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
12fe867458db015f3b4f5fd16c3634fc1b9c4dae | 3,018 | py | Python | poly/repl.py | jdanford/poly | 4f3a242dbb54fb68375a310af943be759588f459 | [
"0BSD"
] | null | null | null | poly/repl.py | jdanford/poly | 4f3a242dbb54fb68375a310af943be759588f459 | [
"0BSD"
] | null | null | null | poly/repl.py | jdanford/poly | 4f3a242dbb54fb68375a310af943be759588f459 | [
"0BSD"
] | null | null | null | import sys
from string import whitespace
from clint.textui import puts, indent, colored
from poly.common import *
from poly.node import *
def repl_main(args):
repl = Repl("repl")
repl.run()
class UndefinedCommandError(PolyError):
def __init__(self, command):
self.message = "Undefined command '{}... | 23.578125 | 63 | 0.503313 | 345 | 3,018 | 4.243478 | 0.269565 | 0.038251 | 0.014344 | 0.02459 | 0.040984 | 0.040984 | 0.028689 | 0 | 0 | 0 | 0 | 0.008152 | 0.390325 | 3,018 | 127 | 64 | 23.76378 | 0.7875 | 0 | 0 | 0.221053 | 0 | 0 | 0.03214 | 0 | 0.010526 | 0 | 0 | 0 | 0 | 1 | 0.136842 | false | 0 | 0.052632 | 0 | 0.294737 | 0.136842 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
12ffe639dabbddd0482e5d8aa0dc1908fa825881 | 18,741 | py | Python | tools/modules/verify.py | andscha/containerization-for-sap-s4hana | 337df7b3b515dad9c243eae6b58ee95bf749782a | [
"Apache-2.0"
] | 6 | 2020-12-16T13:12:42.000Z | 2022-02-09T17:38:47.000Z | tools/modules/verify.py | andscha/containerization-for-sap-s4hana | 337df7b3b515dad9c243eae6b58ee95bf749782a | [
"Apache-2.0"
] | 5 | 2021-04-07T07:19:02.000Z | 2022-03-31T08:40:01.000Z | tools/modules/verify.py | andscha/containerization-for-sap-s4hana | 337df7b3b515dad9c243eae6b58ee95bf749782a | [
"Apache-2.0"
] | 7 | 2021-05-21T04:36:44.000Z | 2022-03-31T07:36:48.000Z | # ------------------------------------------------------------------------
# Copyright 2020, 2021 IBM Corp. 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:/... | 38.561728 | 100 | 0.566138 | 1,954 | 18,741 | 5.376663 | 0.205732 | 0.021987 | 0.014563 | 0.015705 | 0.311822 | 0.224062 | 0.156482 | 0.096136 | 0.070531 | 0.05711 | 0 | 0.003417 | 0.328478 | 18,741 | 485 | 101 | 38.641237 | 0.831228 | 0.095939 | 0 | 0.281525 | 0 | 0.005865 | 0.25733 | 0.04829 | 0.005865 | 0 | 0 | 0 | 0 | 1 | 0.108504 | false | 0.008798 | 0.014663 | 0.01173 | 0.231672 | 0.01173 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4200fb28b1b5da3ed4576b7e698fb2853d8ef02a | 1,060 | py | Python | rainbow/rainbow.py | jaxzin/adafruit-voice-docker | 8932e2432f56e795c4160dfeef8f61aa5a3da15a | [
"MIT"
] | null | null | null | rainbow/rainbow.py | jaxzin/adafruit-voice-docker | 8932e2432f56e795c4160dfeef8f61aa5a3da15a | [
"MIT"
] | null | null | null | rainbow/rainbow.py | jaxzin/adafruit-voice-docker | 8932e2432f56e795c4160dfeef8f61aa5a3da15a | [
"MIT"
] | null | null | null | import time
import board
import adafruit_dotstar
import atexit
import signal
kill_now = False
DOTSTAR_DATA = board.D5
DOTSTAR_CLOCK = board.D6
dots = adafruit_dotstar.DotStar(DOTSTAR_CLOCK, DOTSTAR_DATA, 3, brightness=0.5)
def exit_handler():
kill_now = True
# turn off the pixel dots
for i in range(3):
... | 24.090909 | 79 | 0.6 | 172 | 1,060 | 3.610465 | 0.372093 | 0.038647 | 0.033816 | 0.035427 | 0.167472 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083444 | 0.287736 | 1,060 | 43 | 80 | 24.651163 | 0.739073 | 0.113208 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.147059 | 0 | 0.323529 | 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 |
4203e2556562a439641ccfc38f8f880faffaf2ad | 6,054 | py | Python | seq2seq.py | frozen86/SeqLite | 7f83e6a4716d756a45b2801085ac6628379fbea2 | [
"Apache-2.0"
] | 1 | 2018-05-10T01:40:55.000Z | 2018-05-10T01:40:55.000Z | seq2seq.py | frozen86/SeqLite | 7f83e6a4716d756a45b2801085ac6628379fbea2 | [
"Apache-2.0"
] | null | null | null | seq2seq.py | frozen86/SeqLite | 7f83e6a4716d756a45b2801085ac6628379fbea2 | [
"Apache-2.0"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
import math
import matplotlib.pyplot as plt
import matplotlib.ticker as ticker
import numpy as np
from masked_cross_entropy import *
from preprocess import *
from parameter import *
import time
# # Training
def train(input_batches,... | 34.20339 | 163 | 0.675421 | 744 | 6,054 | 5.248656 | 0.262097 | 0.046095 | 0.034059 | 0.03073 | 0.323432 | 0.31242 | 0.251216 | 0.212292 | 0.115237 | 0.086044 | 0 | 0.004759 | 0.236373 | 6,054 | 176 | 164 | 34.397727 | 0.839931 | 0.205814 | 0 | 0.161616 | 0 | 0 | 0.01417 | 0 | 0.010101 | 0 | 0 | 0 | 0 | 1 | 0.040404 | false | 0 | 0.111111 | 0 | 0.181818 | 0.040404 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4204eade92e97699c25ced0425caa0cabd5da0e0 | 1,881 | py | Python | pycqed/tests/analysis_v2/test_simple_analysis.py | nuttamas/PycQED_py3 | 1ee35c7428d36ed42ba4afb5d4bda98140b2283e | [
"MIT"
] | 60 | 2016-08-03T10:00:18.000Z | 2021-11-10T11:46:16.000Z | pycqed/tests/analysis_v2/test_simple_analysis.py | nuttamas/PycQED_py3 | 1ee35c7428d36ed42ba4afb5d4bda98140b2283e | [
"MIT"
] | 512 | 2016-08-03T17:10:02.000Z | 2022-03-31T14:03:43.000Z | pycqed/tests/analysis_v2/test_simple_analysis.py | nuttamas/PycQED_py3 | 1ee35c7428d36ed42ba4afb5d4bda98140b2283e | [
"MIT"
] | 34 | 2016-10-19T12:00:52.000Z | 2022-03-19T04:43:26.000Z | import unittest
import pycqed as pq
import os
import matplotlib.pyplot as plt
from pycqed.analysis_v2 import measurement_analysis as ma
class Test_SimpleAnalysis(unittest.TestCase):
@classmethod
def tearDownClass(self):
plt.close('all')
@classmethod
def setUpClass(self):
self.datadir... | 36.882353 | 73 | 0.637959 | 226 | 1,881 | 5.057522 | 0.464602 | 0.030621 | 0.023622 | 0.065617 | 0.234471 | 0.234471 | 0.185477 | 0.185477 | 0.145232 | 0.145232 | 0 | 0.089595 | 0.264221 | 1,881 | 50 | 74 | 37.62 | 0.736272 | 0.085593 | 0 | 0.25 | 0 | 0 | 0.165015 | 0.01516 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.194444 | false | 0 | 0.138889 | 0 | 0.361111 | 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 |
42064154fe3a3a9a5966ee89da5b64cd37de9197 | 781 | py | Python | CS2/1275_turtle_recursion/2499_koch_snowflake/alternate_snowflake.py | nealholt/python_programming_curricula | eda4432dab97178b4a5712b160f5b1da74c068cb | [
"MIT"
] | 7 | 2020-10-14T03:23:12.000Z | 2022-03-09T23:16:13.000Z | CS2/1275_turtle_recursion/2499_koch_snowflake/alternate_snowflake.py | nealholt/python_programming_curricula | eda4432dab97178b4a5712b160f5b1da74c068cb | [
"MIT"
] | null | null | null | CS2/1275_turtle_recursion/2499_koch_snowflake/alternate_snowflake.py | nealholt/python_programming_curricula | eda4432dab97178b4a5712b160f5b1da74c068cb | [
"MIT"
] | 11 | 2021-02-21T20:50:56.000Z | 2022-01-29T07:01:28.000Z | import turtle
'''http://www.algorithm.co.il/blogs/computer-science/fractals-in-10-minutes-no-6-turtle-snowflake/
This would be a good introduction to recursion. I don't see how students
would invent this on their own, but they could modify it and see what
other fractals they could generate.
'''
pen = turtle.Turtle()
p... | 25.193548 | 98 | 0.663252 | 123 | 781 | 4.211382 | 0.585366 | 0.11583 | 0.15444 | 0.131274 | 0.222008 | 0.222008 | 0.222008 | 0.216216 | 0.216216 | 0.216216 | 0 | 0.045234 | 0.207426 | 781 | 30 | 99 | 26.033333 | 0.791599 | 0.049936 | 0 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 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 |
4206df5fe7ed10541de178c4f224f75754304f2c | 324 | py | Python | wdae/wdae/user_queries/urls.py | iossifovlab/gpf | e556243d29666179dbcb72859845b4d6c011af2b | [
"MIT"
] | null | null | null | wdae/wdae/user_queries/urls.py | iossifovlab/gpf | e556243d29666179dbcb72859845b4d6c011af2b | [
"MIT"
] | 82 | 2019-07-22T11:44:23.000Z | 2022-01-13T15:27:33.000Z | wdae/wdae/user_queries/urls.py | iossifovlab/gpf | e556243d29666179dbcb72859845b4d6c011af2b | [
"MIT"
] | null | null | null | from django.urls import re_path
from user_queries.views import UserQuerySaveView, UserQueryCollectView
urlpatterns = [
re_path(r"^/save/?$", UserQuerySaveView.as_view(), name="user-save-query"),
re_path(
r"^/collect/?$",
UserQueryCollectView.as_view(),
name="user-collect-queries",
)... | 27 | 79 | 0.675926 | 36 | 324 | 5.916667 | 0.527778 | 0.084507 | 0.065728 | 0.131455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179012 | 324 | 11 | 80 | 29.454545 | 0.800752 | 0 | 0 | 0 | 0 | 0 | 0.17284 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4208848cd73eaf4015f90f42e112e861d94326ec | 1,846 | py | Python | InfoGain.py | gsndr/AIDA | 538caf3ddb5aec8ec8904dc313eb7e31759f5154 | [
"MIT"
] | 4 | 2021-05-10T11:35:51.000Z | 2021-12-29T00:56:35.000Z | InfoGain.py | gsndr/AIDA | 538caf3ddb5aec8ec8904dc313eb7e31759f5154 | [
"MIT"
] | null | null | null | InfoGain.py | gsndr/AIDA | 538caf3ddb5aec8ec8904dc313eb7e31759f5154 | [
"MIT"
] | 1 | 2021-12-25T13:55:29.000Z | 2021-12-25T13:55:29.000Z | import pandas as pd
from math import log
class InfoGain():
def __init__(self, path):
self._path=path
def extractVariables(self):
self._df = pd.read_csv(self._path + ".csv");
# put the original column names in a python list
'''if 'Unnamed: 0' in self._df.columns:
... | 29.301587 | 98 | 0.531419 | 229 | 1,846 | 4.20524 | 0.401747 | 0.062305 | 0.040498 | 0.031153 | 0.164071 | 0.095535 | 0.095535 | 0.095535 | 0.095535 | 0.095535 | 0 | 0.01692 | 0.359697 | 1,846 | 62 | 99 | 29.774194 | 0.795262 | 0.321777 | 0 | 0.071429 | 0 | 0 | 0.004689 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0 | 0.071429 | 0 | 0.357143 | 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 |
420ceb4ff961d4330b357c01567c2e654e43d336 | 5,303 | py | Python | experiments/twitter_event_data_2019/evaluation/groundtruth_processor.py | HHansi/WhatsUp | 87c3eb90570d2f997d8f1abc300a3553f8ef7ca9 | [
"Apache-2.0"
] | null | null | null | experiments/twitter_event_data_2019/evaluation/groundtruth_processor.py | HHansi/WhatsUp | 87c3eb90570d2f997d8f1abc300a3553f8ef7ca9 | [
"Apache-2.0"
] | null | null | null | experiments/twitter_event_data_2019/evaluation/groundtruth_processor.py | HHansi/WhatsUp | 87c3eb90570d2f997d8f1abc300a3553f8ef7ca9 | [
"Apache-2.0"
] | null | null | null | # Created by Hansi at 3/16/2020
import os
from algo.data_process.data_preprocessor import data_cleaning_flow
from algo.utils.file_utils import delete_create_folder
def extract_gt_tokens(text):
"""
Given GT string, method to extract GT labels.
GT string should be formatted as Twitter-Event-Data-2019.
... | 30.302857 | 120 | 0.603998 | 654 | 5,303 | 4.737003 | 0.220183 | 0.038735 | 0.019367 | 0.019367 | 0.227566 | 0.184312 | 0.115558 | 0.082634 | 0.054874 | 0.028405 | 0 | 0.007623 | 0.307373 | 5,303 | 175 | 121 | 30.302857 | 0.835829 | 0.327362 | 0 | 0.159091 | 0 | 0 | 0.008128 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0 | 0.034091 | 0 | 0.147727 | 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 |
420d64c40f09249f80d51908d10b8e6dab472942 | 3,008 | py | Python | cool/core/utils.py | 007gzs/django-cool | 3b4ed1a8ca020e6f798ca47e20169e5a854b4f24 | [
"BSD-3-Clause"
] | 11 | 2020-05-19T09:52:35.000Z | 2022-02-25T10:39:56.000Z | cool/core/utils.py | 007gzs/django-cool | 3b4ed1a8ca020e6f798ca47e20169e5a854b4f24 | [
"BSD-3-Clause"
] | null | null | null | cool/core/utils.py | 007gzs/django-cool | 3b4ed1a8ca020e6f798ca47e20169e5a854b4f24 | [
"BSD-3-Clause"
] | 1 | 2020-12-24T08:14:58.000Z | 2020-12-24T08:14:58.000Z | # encoding: utf-8
import operator
from functools import reduce
from django.core.exceptions import FieldDoesNotExist
from django.db.models import Q
from django.db.models.constants import LOOKUP_SEP
def split_camel_name(name, fall=False):
"""
驼峰命名分割为单词
GenerateURLs => [Generate, URLs]
generateURLsLite... | 31.663158 | 110 | 0.648936 | 390 | 3,008 | 4.764103 | 0.312821 | 0.043595 | 0.017223 | 0.012917 | 0.135092 | 0.100108 | 0.069968 | 0 | 0 | 0 | 0 | 0.003176 | 0.267287 | 3,008 | 94 | 111 | 32 | 0.839837 | 0.146609 | 0 | 0.032258 | 0 | 0 | 0.021982 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048387 | false | 0 | 0.129032 | 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 |
420db9bdde8897b05f3ac2a8bb469ed44754dbb4 | 1,748 | py | Python | Python/Zelle/Chapter10_DefiningClasses/ProgrammingExercises/16_CannonballTarget/inputDialog.py | jeffvswanson/CodingPractice | 9ea8e0dd504230cea0e8684b31ef22c3ed90d2fb | [
"MIT"
] | null | null | null | Python/Zelle/Chapter10_DefiningClasses/ProgrammingExercises/16_CannonballTarget/inputDialog.py | jeffvswanson/CodingPractice | 9ea8e0dd504230cea0e8684b31ef22c3ed90d2fb | [
"MIT"
] | null | null | null | Python/Zelle/Chapter10_DefiningClasses/ProgrammingExercises/16_CannonballTarget/inputDialog.py | jeffvswanson/CodingPractice | 9ea8e0dd504230cea0e8684b31ef22c3ed90d2fb | [
"MIT"
] | null | null | null | # inputDialog.py
""" Provides a window to get input values
from the user to animate a cannonball."""
from graphics import GraphWin, Entry, Text, Point
from button import Button
class InputDialog:
""" A custom window for getting simulation values (angle, velocity,
and height) from the user."""
def __ini... | 30.137931 | 71 | 0.568078 | 239 | 1,748 | 4.138075 | 0.322176 | 0.042467 | 0.066734 | 0.0364 | 0.012133 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032958 | 0.28833 | 1,748 | 58 | 72 | 30.137931 | 0.762058 | 0.206522 | 0 | 0 | 0 | 0 | 0.038462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121212 | false | 0 | 0.060606 | 0 | 0.30303 | 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 |
420e4e16ca0ab83a3724fd3b5d5775cec3e14b0e | 979 | py | Python | gym_envs/envs/reacher_done.py | gautams3/reacher-done | 6420f4ea3e0f6e47a3ebe25dbe170a9030b03b01 | [
"MIT"
] | 1 | 2021-11-13T13:51:37.000Z | 2021-11-13T13:51:37.000Z | gym_envs/envs/reacher_done.py | gautams3/reacher-done | 6420f4ea3e0f6e47a3ebe25dbe170a9030b03b01 | [
"MIT"
] | null | null | null | gym_envs/envs/reacher_done.py | gautams3/reacher-done | 6420f4ea3e0f6e47a3ebe25dbe170a9030b03b01 | [
"MIT"
] | 2 | 2021-04-08T12:48:29.000Z | 2021-05-09T02:04:33.000Z | import gym
from gym import error, spaces, utils
from gym.utils import seeding
from gym.envs.mujoco.reacher import ReacherEnv
import numpy as np
class ReacherDoneEnv(ReacherEnv):
metadata = {'render.modes': ['human']}
# def __init__(self):
# ...
def step(self, action):
self.do_simulation(action, self.fra... | 31.580645 | 76 | 0.668029 | 143 | 979 | 4.405594 | 0.482517 | 0.063492 | 0.066667 | 0.044444 | 0.08254 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011524 | 0.202247 | 979 | 31 | 77 | 31.580645 | 0.795134 | 0.210419 | 0 | 0 | 0 | 0 | 0.04205 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.25 | 0 | 0.45 | 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 |
421097c0f352c62da6301188c7377f912e0f1d54 | 1,465 | py | Python | modules/worker.py | strangest-quark/iConsent | 096a471a8f5c61dcb9cff5fb380ddb55848bf055 | [
"MIT"
] | 10 | 2020-08-08T13:59:10.000Z | 2020-11-13T23:13:57.000Z | modules/worker.py | strangest-quark/iConsent | 096a471a8f5c61dcb9cff5fb380ddb55848bf055 | [
"MIT"
] | 1 | 2021-09-08T02:26:48.000Z | 2021-09-08T02:26:48.000Z | modules/worker.py | strangest-quark/iConsent | 096a471a8f5c61dcb9cff5fb380ddb55848bf055 | [
"MIT"
] | 2 | 2021-07-29T07:40:59.000Z | 2022-01-28T03:20:22.000Z | import logging
from queue import Queue
from threading import Thread
from time import time
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
logger = logging.getLogger(__name__)
class Worker(Thread):
def __init__(self, queue, out_que):
Thread.__init__... | 28.173077 | 102 | 0.619795 | 205 | 1,465 | 4.263415 | 0.42439 | 0.048055 | 0.037757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00381 | 0.283276 | 1,465 | 51 | 103 | 28.72549 | 0.828571 | 0.229352 | 0 | 0 | 0 | 0 | 0.069519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0 | 0.114286 | 0 | 0.257143 | 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 |
4212519f45b1cf9dfda4da64b4b3fae6c56b03b5 | 2,420 | py | Python | src/saml2/extension/pefim.py | cnelson/pysaml2 | a30e51c271e27e4411a0243b65adbf5d7a3abb07 | [
"Apache-2.0"
] | 5,079 | 2015-01-01T03:39:46.000Z | 2022-03-31T07:38:22.000Z | desktop/core/ext-py/pysaml2-4.4.0/src/saml2/extension/pefim.py | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 1,623 | 2015-01-01T08:06:24.000Z | 2022-03-30T19:48:52.000Z | desktop/core/ext-py/pysaml2-4.4.0/src/saml2/extension/pefim.py | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 2,033 | 2015-01-04T07:18:02.000Z | 2022-03-28T19:55:47.000Z | #!/usr/bin/env python
import saml2
from saml2 import SamlBase
from saml2.xmldsig import KeyInfo
NAMESPACE = 'urn:net:eustix:names:tc:PEFIM:0.0:assertion'
class SPCertEncType_(SamlBase):
"""The urn:net:eustix:names:tc:PEFIM:0.0:assertion:SPCertEncType element """
c_tag = 'SPCertEncType'
c_namespace = NA... | 31.428571 | 80 | 0.654959 | 281 | 2,420 | 5.274021 | 0.241993 | 0.04251 | 0.037112 | 0.034413 | 0.284076 | 0.182861 | 0.147773 | 0.147773 | 0.147773 | 0.124157 | 0 | 0.020765 | 0.243802 | 2,420 | 77 | 81 | 31.428571 | 0.789071 | 0.076033 | 0 | 0.036364 | 0 | 0 | 0.086742 | 0.019326 | 0 | 0 | 0 | 0 | 0.018182 | 1 | 0.072727 | false | 0 | 0.054545 | 0.054545 | 0.436364 | 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 |
4214b1ee9bcb816a48babcc6e1d8cfe461c7c2c0 | 3,649 | py | Python | plugins/data/bAbI/digitsDataPluginBAbI/data.py | Linda-liugongzi/DIGITS-digits-py3 | 6df5eb6972574a628b9544934518ec8dfa9c7439 | [
"BSD-3-Clause"
] | null | null | null | plugins/data/bAbI/digitsDataPluginBAbI/data.py | Linda-liugongzi/DIGITS-digits-py3 | 6df5eb6972574a628b9544934518ec8dfa9c7439 | [
"BSD-3-Clause"
] | null | null | null | plugins/data/bAbI/digitsDataPluginBAbI/data.py | Linda-liugongzi/DIGITS-digits-py3 | 6df5eb6972574a628b9544934518ec8dfa9c7439 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved.
import os
from digits.utils import subclass, override, constants
from digits.extensions.data.interface import DataIngestionInterface
from .forms import DatasetForm, InferenceForm
from . import utils
from flask_babel import lazy_gettext as _
DATASET_TE... | 31.730435 | 105 | 0.636339 | 427 | 3,649 | 5.236534 | 0.360656 | 0.048301 | 0.043828 | 0.069767 | 0.238372 | 0.152952 | 0.152952 | 0.152952 | 0.152952 | 0.071556 | 0 | 0.002638 | 0.272677 | 3,649 | 114 | 106 | 32.008772 | 0.839864 | 0.168813 | 0 | 0.283784 | 0 | 0 | 0.090909 | 0.021873 | 0 | 0 | 0 | 0 | 0 | 1 | 0.135135 | false | 0 | 0.081081 | 0.067568 | 0.351351 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4216517a1b9daa01aa443bee25e4880a6b96ed43 | 3,767 | py | Python | 13_TransparentOrigami/fold2.py | dandrianneDEL/PyAdventOfCode2021 | ea91186383c0855c81c7243d527de0c4dd4c0afb | [
"MIT"
] | null | null | null | 13_TransparentOrigami/fold2.py | dandrianneDEL/PyAdventOfCode2021 | ea91186383c0855c81c7243d527de0c4dd4c0afb | [
"MIT"
] | null | null | null | 13_TransparentOrigami/fold2.py | dandrianneDEL/PyAdventOfCode2021 | ea91186383c0855c81c7243d527de0c4dd4c0afb | [
"MIT"
] | null | null | null | import filehelper
fileResult = filehelper.readfile()
class Matrix:
cells: list[list[bool]]
maxX: int
maxY: int
def __init__(self, sizeX:int, sizeY:int) -> None:
self.cells = []
self.maxX = sizeX
self.maxY = sizeY
# print(f"INIT matrix {sizeX}x{sizeY}")
for y in r... | 34.87963 | 127 | 0.535439 | 467 | 3,767 | 4.282655 | 0.207709 | 0.0315 | 0.015 | 0.0275 | 0.2375 | 0.1925 | 0.147 | 0.118 | 0.052 | 0.052 | 0 | 0.017127 | 0.318025 | 3,767 | 108 | 128 | 34.87963 | 0.761386 | 0.112556 | 0 | 0.139535 | 0 | 0 | 0.047076 | 0.009595 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104651 | false | 0 | 0.011628 | 0 | 0.232558 | 0.093023 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4219aa019cf5a624b152bb0ddf85c0a457ed2c73 | 2,416 | py | Python | webapp/scan_comments.py | ctrl-meta-f/ngk | 6d9122ee84cc7420f9b135556c7b03e9b20428e4 | [
"BSD-2-Clause"
] | null | null | null | webapp/scan_comments.py | ctrl-meta-f/ngk | 6d9122ee84cc7420f9b135556c7b03e9b20428e4 | [
"BSD-2-Clause"
] | null | null | null | webapp/scan_comments.py | ctrl-meta-f/ngk | 6d9122ee84cc7420f9b135556c7b03e9b20428e4 | [
"BSD-2-Clause"
] | null | null | null | import logging
import time
import requests
import lxml.etree
import re
import os
from schema import ScopedSession, SyncState
logging.basicConfig(
filename=os.getenv("LOG_FILE", "../logs/scan_comments.log"),
format="%(asctime)s %(levelname)s %(message)s",
datefmt="%Y-%m-%d %H:%M:%S",
level=logging.DEBU... | 29.463415 | 134 | 0.631623 | 317 | 2,416 | 4.602524 | 0.350158 | 0.074023 | 0.030158 | 0.037012 | 0.200137 | 0.091844 | 0.091844 | 0.053461 | 0.053461 | 0.053461 | 0 | 0.008929 | 0.258278 | 2,416 | 81 | 135 | 29.82716 | 0.805246 | 0 | 0 | 0.09375 | 0 | 0 | 0.131623 | 0.031457 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.109375 | 0 | 0.171875 | 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 |
421a86ab2fcc5ca9b6f576b1a9c163c17517de0f | 463 | py | Python | g-code-testing/g_code_parsing/g_code_functionality_defs/thermocycler/set_ramp_rate_g_code_functionality_def.py | Opentrons/protocol_framework | ebbd6b2fe984edd6ecfcbf1dbe040db7f7356b9f | [
"Apache-2.0"
] | null | null | null | g-code-testing/g_code_parsing/g_code_functionality_defs/thermocycler/set_ramp_rate_g_code_functionality_def.py | Opentrons/protocol_framework | ebbd6b2fe984edd6ecfcbf1dbe040db7f7356b9f | [
"Apache-2.0"
] | null | null | null | g-code-testing/g_code_parsing/g_code_functionality_defs/thermocycler/set_ramp_rate_g_code_functionality_def.py | Opentrons/protocol_framework | ebbd6b2fe984edd6ecfcbf1dbe040db7f7356b9f | [
"Apache-2.0"
] | null | null | null | from typing import Dict
from g_code_parsing.g_code_functionality_defs.g_code_functionality_def_base import (
GCodeFunctionalityDefBase,
)
class SetRampRateGCodeFunctionalityDef(GCodeFunctionalityDefBase):
@classmethod
def _generate_command_explanation(cls, g_code_args: Dict[str, str]) -> str:
retu... | 33.071429 | 84 | 0.740821 | 50 | 463 | 6.58 | 0.68 | 0.06079 | 0.109422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196544 | 463 | 13 | 85 | 35.615385 | 0.884409 | 0 | 0 | 0 | 0 | 0 | 0.211663 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 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 |
421c7e1609af23f9ed8e7709fd3cc2ca7ae61d73 | 19,452 | py | Python | src/mrio.py | ElcoK/MRIA_Argentina | 45194eb738c725276c3667078ac8d229554b550e | [
"MIT"
] | null | null | null | src/mrio.py | ElcoK/MRIA_Argentina | 45194eb738c725276c3667078ac8d229554b550e | [
"MIT"
] | null | null | null | src/mrio.py | ElcoK/MRIA_Argentina | 45194eb738c725276c3667078ac8d229554b550e | [
"MIT"
] | 2 | 2021-06-28T11:51:17.000Z | 2022-01-10T06:49:01.000Z | import os,sys
import pandas as pd
import numpy as np
import subprocess
from tqdm import tqdm
from ras_method import ras_method
import warnings
warnings.filterwarnings('ignore')
def est_trade_value(x,output_new,sector):
"""
Function to estimate the trade value between two sectors
"""
if (sector is not ... | 49.24557 | 154 | 0.635359 | 2,748 | 19,452 | 4.300218 | 0.112809 | 0.096471 | 0.021156 | 0.037234 | 0.709063 | 0.681645 | 0.649403 | 0.600999 | 0.535246 | 0.519675 | 0 | 0.02455 | 0.189595 | 19,452 | 395 | 155 | 49.24557 | 0.72507 | 0.060765 | 0 | 0.449438 | 0 | 0 | 0.148463 | 0.017342 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014981 | false | 0 | 0.044944 | 0 | 0.074906 | 0.044944 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4223f6babdeae509fede80d613a39bd2530fc8ee | 470 | py | Python | jp.atcoder/abc046/arc062_a/8984820.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-09T03:06:25.000Z | 2022-02-09T03:06:25.000Z | jp.atcoder/abc046/arc062_a/8984820.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-05T22:53:18.000Z | 2022-02-09T01:29:30.000Z | jp.atcoder/abc046/arc062_a/8984820.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | null | null | null | import sys
n = int(sys.stdin.readline().rstrip())
ab = map(int, sys.stdin.read().split())
ab = list(zip(ab, ab))
def main():
c_a = ab[0][0]
c_b = ab[0][1]
for a, b in ab[1:]:
ratio = a / b
while c_a / c_b != ratio:
if c_a / c_b < ratio:
c_a += 1
... | 18.076923 | 40 | 0.431915 | 74 | 470 | 2.5 | 0.405405 | 0.054054 | 0.048649 | 0.064865 | 0.097297 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025547 | 0.417021 | 470 | 25 | 41 | 18.8 | 0.649635 | 0 | 0 | 0 | 0 | 0 | 0.017978 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.157895 | 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 |
422402f1cd18573550063c08ebfde34d14018e34 | 5,187 | py | Python | pycsw/pycsw/plugins/profiles/profile.py | Geosoft2/Geosoftware-II-AALLH | bdb61d9a1111b9082ec2b9f309998c5f2166975e | [
"MIT"
] | 118 | 2015-01-07T00:24:09.000Z | 2022-03-19T15:35:43.000Z | pycsw/pycsw/plugins/profiles/profile.py | Geosoft2/Geosoftware-II-AALLH | bdb61d9a1111b9082ec2b9f309998c5f2166975e | [
"MIT"
] | 319 | 2015-01-06T23:51:46.000Z | 2022-03-20T11:22:57.000Z | pycsw/pycsw/plugins/profiles/profile.py | Geosoft2/Geosoftware-II-AALLH | bdb61d9a1111b9082ec2b9f309998c5f2166975e | [
"MIT"
] | 113 | 2015-01-07T00:42:23.000Z | 2022-02-19T18:05:08.000Z | # -*- coding: utf-8 -*-
# =================================================================
#
# Authors: Tom Kralidis <tomkralidis@gmail.com>
# Angelos Tzotsos <tzotsos@gmail.com>
#
# Copyright (c) 2015 Tom Kralidis
# Copyright (c) 2015 Angelos Tzotsos
#
# Permission is hereby granted, free of charge, to any p... | 36.528169 | 78 | 0.630037 | 563 | 5,187 | 5.742451 | 0.422735 | 0.027219 | 0.05846 | 0.025982 | 0.105784 | 0.085988 | 0.030931 | 0.030931 | 0 | 0 | 0 | 0.004585 | 0.243108 | 5,187 | 141 | 79 | 36.787234 | 0.8189 | 0.390785 | 0 | 0.173913 | 0 | 0 | 0.146134 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.144928 | false | 0 | 0.043478 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
42260da2bac2d4e5c90292ee2d38da85618b72ad | 2,355 | py | Python | tests/e2e/registry/test_registry_image_push_pull.py | OdedViner/ocs-ci | e8a3de82650e02cf8fa67284a67c36ced34a480b | [
"MIT"
] | null | null | null | tests/e2e/registry/test_registry_image_push_pull.py | OdedViner/ocs-ci | e8a3de82650e02cf8fa67284a67c36ced34a480b | [
"MIT"
] | null | null | null | tests/e2e/registry/test_registry_image_push_pull.py | OdedViner/ocs-ci | e8a3de82650e02cf8fa67284a67c36ced34a480b | [
"MIT"
] | null | null | null | import logging
import pytest
from ocs_ci.framework.testlib import workloads, E2ETest, ignore_leftovers
from ocs_ci.ocs import ocp, registry, constants
from ocs_ci.framework import config
from ocs_ci.ocs.exceptions import UnexpectedBehaviour
logger = logging.getLogger(__name__)
class TestRegistryImagePullPush(E2ETest... | 36.796875 | 100 | 0.6862 | 306 | 2,355 | 5.062092 | 0.385621 | 0.041317 | 0.023241 | 0.030988 | 0.131698 | 0.080052 | 0.047773 | 0.047773 | 0 | 0 | 0 | 0.005571 | 0.237792 | 2,355 | 63 | 101 | 37.380952 | 0.857382 | 0.194904 | 0 | 0.054054 | 0 | 0.027027 | 0.202703 | 0.075135 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.162162 | 0 | 0.216216 | 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 |
4227bfd2b04f47e94ab893e1b523dca4551e38fc | 312 | py | Python | 1.6.py | kevrodg/pynet | 5142b1b75cda658a99348e3550da1c198e7d049e | [
"Apache-2.0"
] | null | null | null | 1.6.py | kevrodg/pynet | 5142b1b75cda658a99348e3550da1c198e7d049e | [
"Apache-2.0"
] | null | null | null | 1.6.py | kevrodg/pynet | 5142b1b75cda658a99348e3550da1c198e7d049e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import json
import yaml
my_list = [0, 1, 2, 3, 'whatever', 'hello', {'attribs': [0, 1, 2, 3, 4], 'ip_addr': '10.10.10.239'}]
with open("my_file.json", "w") as f:
json.dump(my_list, f)
with open("my_file.yaml", "w") as f:
f.write(yaml.dump(my_list, default_flow_style=False))
| 20.8 | 101 | 0.61859 | 59 | 312 | 3.135593 | 0.559322 | 0.097297 | 0.032432 | 0.043243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0.163462 | 312 | 14 | 102 | 22.285714 | 0.639847 | 0.064103 | 0 | 0 | 0 | 0 | 0.223368 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
42287378bd11599427298e72d96640a19c6fbb44 | 322 | py | Python | jp.atcoder/abc069/arc080_a/11903517.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-09T03:06:25.000Z | 2022-02-09T03:06:25.000Z | jp.atcoder/abc069/arc080_a/11903517.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-05T22:53:18.000Z | 2022-02-09T01:29:30.000Z | jp.atcoder/abc069/arc080_a/11903517.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | null | null | null | import sys
n, *a = map(int, sys.stdin.read().split())
def main():
c4 = c2 = 0
for x in a:
if not x % 4:
c4 += 1
elif not x % 2:
c2 += 1
ans = "Yes" if c4 >= n // 2 or c4 * 2 + c2 >= n else "No"
print(ans)
if __name__ == "__main__":
main()... | 16.947368 | 62 | 0.406832 | 50 | 322 | 2.46 | 0.6 | 0.065041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077778 | 0.440994 | 322 | 18 | 63 | 17.888889 | 0.605556 | 0 | 0 | 0 | 0 | 0 | 0.042763 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 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 |
422a7283e956bcdda7358ae083a9c572a8121dd9 | 8,289 | py | Python | setuptools-37.0.0/pkg_resources/tests/test_working_set.py | coderlongren/PreliminaryPython | b5c7a87e41842c57aabb660de1514cba19c8bd78 | [
"MIT"
] | 1 | 2017-09-19T15:21:50.000Z | 2017-09-19T15:21:50.000Z | setuptools-37.0.0/pkg_resources/tests/test_working_set.py | coderlongren/PreliminaryPython | b5c7a87e41842c57aabb660de1514cba19c8bd78 | [
"MIT"
] | null | null | null | setuptools-37.0.0/pkg_resources/tests/test_working_set.py | coderlongren/PreliminaryPython | b5c7a87e41842c57aabb660de1514cba19c8bd78 | [
"MIT"
] | 4 | 2017-05-12T09:18:16.000Z | 2020-08-27T03:26:16.000Z | import inspect
import re
import textwrap
import pytest
import pkg_resources
from .test_resources import Metadata
def strip_comments(s):
return '\n'.join(
l for l in s.split('\n')
if l.strip() and not l.strip().startswith('#')
)
def parse_distributions(s):
'''
Parse a series of dist... | 17.304802 | 87 | 0.55447 | 887 | 8,289 | 5.032694 | 0.148816 | 0.022401 | 0.099014 | 0.018817 | 0.478047 | 0.440636 | 0.425627 | 0.399866 | 0.396281 | 0.321237 | 0 | 0.040745 | 0.339727 | 8,289 | 478 | 88 | 17.341004 | 0.774895 | 0.041621 | 0 | 0.029703 | 0 | 0 | 0.043331 | 0.026621 | 0 | 0 | 0 | 0 | 0.029703 | 1 | 0.059406 | false | 0 | 0.059406 | 0.019802 | 0.158416 | 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 |
422abcc408966dc47c31fc1259795d32236b4832 | 629 | py | Python | setup.py | Sigel1/yolo-tf2 | a11c856e601c23220fc2afce7c93e9f8eb4fd339 | [
"MIT"
] | null | null | null | setup.py | Sigel1/yolo-tf2 | a11c856e601c23220fc2afce7c93e9f8eb4fd339 | [
"MIT"
] | null | null | null | setup.py | Sigel1/yolo-tf2 | a11c856e601c23220fc2afce7c93e9f8eb4fd339 | [
"MIT"
] | null | null | null | from setuptools import find_packages, setup
install_requires = [dep.strip() for dep in open('requirements.txt')]
setup(
name='yolo_tf2',
version='1.5',
packages=find_packages(),
url='https://github.com/schissmantics/yolo-tf2',
license='MIT',
author='schismantics',
author_email='schissmanti... | 27.347826 | 73 | 0.659777 | 76 | 629 | 5.302632 | 0.684211 | 0.111663 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031373 | 0.189189 | 629 | 22 | 74 | 28.590909 | 0.758824 | 0 | 0 | 0 | 0 | 0 | 0.354531 | 0.084261 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 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 |
422e18702f6c683f268a4b49395a514801fec437 | 834 | py | Python | vkwave/bots/core/dispatching/dp/middleware/middleware.py | YorkDW/vkwave | 86b0278f15f398217a8211007c44651b6145831b | [
"MIT"
] | null | null | null | vkwave/bots/core/dispatching/dp/middleware/middleware.py | YorkDW/vkwave | 86b0278f15f398217a8211007c44651b6145831b | [
"MIT"
] | null | null | null | vkwave/bots/core/dispatching/dp/middleware/middleware.py | YorkDW/vkwave | 86b0278f15f398217a8211007c44651b6145831b | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from typing import List, NewType
from vkwave.bots.core.dispatching.events.base import BaseEvent
MiddlewareResult = NewType("MiddlewareResult", bool)
class BaseMiddleware(ABC):
@abstractmethod
async def pre_process_event(self, event: BaseEvent) -> MiddlewareResult:
... | 29.785714 | 84 | 0.715827 | 88 | 834 | 6.625 | 0.465909 | 0.128645 | 0.077187 | 0.06518 | 0.168096 | 0.168096 | 0.168096 | 0 | 0 | 0 | 0 | 0 | 0.206235 | 834 | 27 | 85 | 30.888889 | 0.880665 | 0 | 0 | 0 | 0 | 0 | 0.019185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.157895 | 0 | 0.473684 | 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 |
422e499271a923bf090aefdbe25c5651121859de | 3,517 | py | Python | plot_scripts/try_networkx.py | gabrielasuchopar/arch2vec | 1fc47d2cc7d63832e0d6337b8482669366b4aef2 | [
"Apache-2.0"
] | 35 | 2020-10-22T03:58:23.000Z | 2022-03-21T12:55:35.000Z | plot_scripts/try_networkx.py | gabrielasuchopar/arch2vec | 1fc47d2cc7d63832e0d6337b8482669366b4aef2 | [
"Apache-2.0"
] | 1 | 2021-06-03T13:49:47.000Z | 2021-06-06T02:02:11.000Z | plot_scripts/try_networkx.py | gabrielasuchopar/arch2vec | 1fc47d2cc7d63832e0d6337b8482669366b4aef2 | [
"Apache-2.0"
] | 9 | 2020-10-22T14:13:53.000Z | 2022-03-21T08:06:12.000Z | import networkx as nx
import numpy as np
import matplotlib.pyplot as plt
def node_match(n1, n2):
if n1['op'] == n2['op']:
return True
else:
return False
def edge_match(e1, e2):
return True
def gen_graph(adj, ops):
G = nx.DiGraph()
for k, op in enumerate(ops):
G.add_node(k,... | 30.582609 | 142 | 0.477396 | 545 | 3,517 | 2.950459 | 0.19633 | 0.119403 | 0.13806 | 0.129353 | 0.394901 | 0.343284 | 0.264925 | 0.264925 | 0.149254 | 0.142413 | 0 | 0.110818 | 0.353426 | 3,517 | 115 | 143 | 30.582609 | 0.596306 | 0.016776 | 0 | 0.266667 | 0 | 0 | 0.052967 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 1 | 0.066667 | false | 0 | 0.033333 | 0.011111 | 0.177778 | 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 |
422f10e008ebbf5692ddbc20cb4464f21ab48808 | 3,956 | py | Python | scoreboard.py | TheLurkingCat/scoreboard | 9c292fc8573e7bf8539cb20a813c2147ddd0c923 | [
"MIT"
] | null | null | null | scoreboard.py | TheLurkingCat/scoreboard | 9c292fc8573e7bf8539cb20a813c2147ddd0c923 | [
"MIT"
] | null | null | null | scoreboard.py | TheLurkingCat/scoreboard | 9c292fc8573e7bf8539cb20a813c2147ddd0c923 | [
"MIT"
] | null | null | null | '''
LICENSE: MIT license
This module can help us know about who can ask when
we have troubles in some buggy codes while solving problems.
'''
from asyncio import gather, get_event_loop
from pandas import DataFrame, set_option
from online_judge import Online_Judge
loop = get_event_loop()
set_option('display.max_col... | 35.63964 | 167 | 0.548787 | 456 | 3,956 | 4.660088 | 0.423246 | 0.059294 | 0.014118 | 0.020706 | 0.065882 | 0.045176 | 0 | 0 | 0 | 0 | 0 | 0.015004 | 0.326087 | 3,956 | 110 | 168 | 35.963636 | 0.782071 | 0.149646 | 0 | 0.057143 | 0 | 0.028571 | 0.370518 | 0.042599 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.042857 | 0 | 0.171429 | 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 |
422f98ebeb65b657f8b008da4345d8f0e09f42c7 | 10,406 | py | Python | custom_transforms.py | zyxu1996/Efficient-Transformer | 106347186d13e106e9129d25b72e2fd491c54452 | [
"Apache-2.0"
] | 22 | 2021-10-13T05:10:15.000Z | 2022-03-17T12:01:40.000Z | custom_transforms.py | zyXu1996/Efficient-Transformer | efd87d734d5835eccb5b624c5e7ca3a5a08f318b | [
"Apache-2.0"
] | null | null | null | custom_transforms.py | zyXu1996/Efficient-Transformer | efd87d734d5835eccb5b624c5e7ca3a5a08f318b | [
"Apache-2.0"
] | 4 | 2021-11-08T10:30:23.000Z | 2022-02-16T05:07:25.000Z | import torch
import random
import numpy as np
import cv2
import os
import torch.nn as nn
from torchvision import transforms
class RandomHorizontalFlip(object):
def __call__(self, sample):
image = sample['image']
label = sample['label']
if random.random() < 0.5:
image = cv2.flip(... | 36.384615 | 106 | 0.540746 | 1,410 | 10,406 | 3.858156 | 0.148227 | 0.026471 | 0.028676 | 0.014338 | 0.299449 | 0.230699 | 0.17886 | 0.167096 | 0.133824 | 0.121324 | 0 | 0.043303 | 0.309821 | 10,406 | 285 | 107 | 36.512281 | 0.714146 | 0.066692 | 0 | 0.18894 | 0 | 0 | 0.016681 | 0.003649 | 0 | 0 | 0 | 0 | 0.004608 | 1 | 0.078341 | false | 0 | 0.036866 | 0.004608 | 0.202765 | 0.013825 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
42308174a4346509fdf47445522e3c2f26a6c431 | 2,171 | py | Python | dataset.py | ceyzaguirre4/mac-network-pytorch | ad2deefc8a987ab92f4911d3d98631f22d0ae44a | [
"MIT"
] | 4 | 2020-04-08T22:19:19.000Z | 2020-10-28T23:22:12.000Z | dataset.py | ceyzaguirre4/mac-network-pytorch | ad2deefc8a987ab92f4911d3d98631f22d0ae44a | [
"MIT"
] | null | null | null | dataset.py | ceyzaguirre4/mac-network-pytorch | ad2deefc8a987ab92f4911d3d98631f22d0ae44a | [
"MIT"
] | 3 | 2020-06-27T02:47:02.000Z | 2021-10-08T13:19:05.000Z | import os
import pickle
import numpy as np
from PIL import Image
import torch
from torch.utils.data import Dataset
from torchvision import transforms
import h5py
from transforms import Scale
class CLEVR(Dataset):
def __init__(self, root, split='train', transform=None):
features_path = os.path.join(root, ... | 29.739726 | 83 | 0.609857 | 280 | 2,171 | 4.628571 | 0.357143 | 0.009259 | 0.009259 | 0.012346 | 0.027778 | 0.009259 | 0 | 0 | 0 | 0 | 0 | 0.021381 | 0.24597 | 2,171 | 72 | 84 | 30.152778 | 0.770312 | 0.076923 | 0 | 0 | 0 | 0 | 0.024512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096154 | false | 0 | 0.173077 | 0.019231 | 0.346154 | 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 |
4230af0cdb6333a2256b37fbde92023b5213c5d6 | 1,445 | py | Python | tests/distributions/test_log_normal.py | thomasaarholt/xgboost-distribution | 8ee00f7f0dcaadcb345ebcb15534287081aa987b | [
"MIT"
] | 17 | 2021-08-14T10:23:54.000Z | 2022-01-08T11:54:48.000Z | tests/distributions/test_log_normal.py | thomasaarholt/xgboost-distribution | 8ee00f7f0dcaadcb345ebcb15534287081aa987b | [
"MIT"
] | 17 | 2021-06-22T02:23:53.000Z | 2022-03-02T16:03:21.000Z | tests/distributions/test_log_normal.py | thomasaarholt/xgboost-distribution | 8ee00f7f0dcaadcb345ebcb15534287081aa987b | [
"MIT"
] | 6 | 2021-08-18T18:52:13.000Z | 2021-11-19T08:36:50.000Z | import pytest
import numpy as np
import pandas as pd
from xgboost_distribution.distributions import LogNormal
@pytest.fixture
def lognormal():
return LogNormal()
def test_target_validation(lognormal):
valid_target = np.array([0.5, 1, 4, 5, 10])
lognormal.check_target(valid_target)
@pytest.mark.param... | 24.083333 | 85 | 0.600692 | 186 | 1,445 | 4.5 | 0.311828 | 0.083632 | 0.04779 | 0.078853 | 0.14098 | 0.14098 | 0.059737 | 0.059737 | 0.059737 | 0.059737 | 0 | 0.036866 | 0.249135 | 1,445 | 59 | 86 | 24.491525 | 0.734562 | 0.005536 | 0 | 0.173913 | 0 | 0 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 1 | 0.108696 | false | 0 | 0.086957 | 0.021739 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4231fa59a3b40941c8f8953e4a8dd3df4f032a6f | 742 | py | Python | imagekit/hashers.py | radicalgraphics/django-imagekit | e36290b4eef1faaf6ad864d3493df1458ef96fbb | [
"BSD-3-Clause"
] | null | null | null | imagekit/hashers.py | radicalgraphics/django-imagekit | e36290b4eef1faaf6ad864d3493df1458ef96fbb | [
"BSD-3-Clause"
] | null | null | null | imagekit/hashers.py | radicalgraphics/django-imagekit | e36290b4eef1faaf6ad864d3493df1458ef96fbb | [
"BSD-3-Clause"
] | null | null | null | from copy import copy
from hashlib import md5
from pickle import Pickler, MARK, DICT
from types import DictionaryType
from .lib import StringIO
class CanonicalizingPickler(Pickler):
dispatch = copy(Pickler.dispatch)
def save_set(self, obj):
rv = obj.__reduce_ex__(0)
rv = (rv[0], (sorted(rv[1]... | 23.1875 | 53 | 0.661725 | 97 | 742 | 4.938144 | 0.391753 | 0.033403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013817 | 0.219677 | 742 | 31 | 54 | 23.935484 | 0.813472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.227273 | 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 |
4233e6b88d45b6951dc540a0e3110566d67aa657 | 458 | py | Python | intro-to-programming/python-for-everyone/3-variables-expressions-statements/exercise-4.py | udpsunil/computer-science | 94e3dfc7d39ad139671ab1a3457a61a1fd48fe39 | [
"MIT"
] | null | null | null | intro-to-programming/python-for-everyone/3-variables-expressions-statements/exercise-4.py | udpsunil/computer-science | 94e3dfc7d39ad139671ab1a3457a61a1fd48fe39 | [
"MIT"
] | null | null | null | intro-to-programming/python-for-everyone/3-variables-expressions-statements/exercise-4.py | udpsunil/computer-science | 94e3dfc7d39ad139671ab1a3457a61a1fd48fe39 | [
"MIT"
] | null | null | null | # Assume that we execute the following assignment statements
# width = 17
# height = 12.0
width = 17
height = 12.0
value_1 = width // 2
value_2 = width / 2.0
value_3 = height / 3
value_4 = 1 + 2 * 5
print(f"value_1 is {value_1} and it's type is {type(value_1)}")
print(f"value_2 is {value_2} and it's type is {type(va... | 26.941176 | 63 | 0.68559 | 96 | 458 | 3.104167 | 0.270833 | 0.080537 | 0.147651 | 0.134228 | 0.389262 | 0.281879 | 0.281879 | 0 | 0 | 0 | 0 | 0.087302 | 0.174672 | 458 | 16 | 64 | 28.625 | 0.701058 | 0.181223 | 0 | 0 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
42383a1d8efb06b1b9b9ac90bcfd5e6b24b3d414 | 6,113 | py | Python | scholarly_citation_finder/apps/citation/search/PublicationDocumentExtractor.py | citationfinder/scholarly_citation_finder | 3e6c340cfebc934a013759e27d8c145171110156 | [
"MIT"
] | 1 | 2017-01-23T18:02:42.000Z | 2017-01-23T18:02:42.000Z | scholarly_citation_finder/apps/citation/search/PublicationDocumentExtractor.py | citationfinder/scholarly_citation_finder | 3e6c340cfebc934a013759e27d8c145171110156 | [
"MIT"
] | null | null | null | scholarly_citation_finder/apps/citation/search/PublicationDocumentExtractor.py | citationfinder/scholarly_citation_finder | 3e6c340cfebc934a013759e27d8c145171110156 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import logging
from datetime import datetime
from scholarly_citation_finder import config
from scholarly_citation_finder.apps.parser.Parser import Parser
from scholarly_citation_finder.apps.core.models import PublicationUrl
from scholarly_citation_finder.tools.extractor.grobid... | 45.962406 | 135 | 0.657615 | 631 | 6,113 | 6.198098 | 0.245642 | 0.052161 | 0.053695 | 0.069036 | 0.149067 | 0.067502 | 0.048581 | 0.024546 | 0.024546 | 0.024546 | 0 | 0.001778 | 0.263864 | 6,113 | 132 | 136 | 46.310606 | 0.867333 | 0.262228 | 0 | 0.121212 | 0 | 0 | 0.053892 | 0 | 0 | 0 | 0 | 0.007576 | 0 | 1 | 0.075758 | false | 0 | 0.181818 | 0 | 0.378788 | 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 |
423985c9471e18c947bb00b13f5fb82114424fab | 2,884 | py | Python | webapp/web.py | thunderz99/azure_image_caption | f7d3649051c948c9651b7d3f9df006d84449cc14 | [
"MIT"
] | 1 | 2019-04-19T13:22:15.000Z | 2019-04-19T13:22:15.000Z | webapp/web.py | thunderz99/azure_image_caption | f7d3649051c948c9651b7d3f9df006d84449cc14 | [
"MIT"
] | null | null | null | webapp/web.py | thunderz99/azure_image_caption | f7d3649051c948c9651b7d3f9df006d84449cc14 | [
"MIT"
] | null | null | null | import sys
import os
import json
import urllib
from PIL import Image
from flask import Flask, request, redirect, url_for
from flask import send_from_directory, render_template
from werkzeug.utils import secure_filename
from datetime import datetime
from caption_service import CaptionService
from translation_service imp... | 28 | 79 | 0.691054 | 370 | 2,884 | 5.2 | 0.337838 | 0.037422 | 0.035343 | 0.035863 | 0.053015 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004248 | 0.183773 | 2,884 | 102 | 80 | 28.27451 | 0.813084 | 0.049931 | 0 | 0 | 0 | 0 | 0.120658 | 0.010969 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.15942 | 0.043478 | 0.347826 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
423cfa9d306c6cce1a1273c94c45fb8dde9787d8 | 16,706 | py | Python | map2loop/m2l_map_checker.py | Leguark/map2loop | 365dde4490f50ad73612120a7d4bee61e54a9a18 | [
"MIT"
] | null | null | null | map2loop/m2l_map_checker.py | Leguark/map2loop | 365dde4490f50ad73612120a7d4bee61e54a9a18 | [
"MIT"
] | null | null | null | map2loop/m2l_map_checker.py | Leguark/map2loop | 365dde4490f50ad73612120a7d4bee61e54a9a18 | [
"MIT"
] | null | null | null | import geopandas as gpd
from shapely.geometry import LineString, Polygon,MultiLineString
import os.path
from map2loop import m2l_utils
import warnings
import numpy as np
import pandas as pd
#explodes polylines and modifies objectid for exploded parts
def explode_polylines(indf,c_l,dst_crs): ... | 44.079156 | 160 | 0.534359 | 2,137 | 16,706 | 4.001872 | 0.129153 | 0.031338 | 0.024556 | 0.01637 | 0.401427 | 0.320861 | 0.244504 | 0.175631 | 0.144294 | 0.114593 | 0 | 0.011063 | 0.323656 | 16,706 | 379 | 161 | 44.079156 | 0.745818 | 0.037651 | 0 | 0.099644 | 0 | 0 | 0.182956 | 0.00747 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010676 | false | 0 | 0.024911 | 0 | 0.039146 | 0.067616 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
423ee3e6a6459504377643bd233fea0f011a4f80 | 259 | py | Python | tensorflow/intro/main.py | donutloop/machine_learning_examples | 46192a57e2dd194925ae76d6bfb169cd2af142dd | [
"MIT"
] | 1 | 2018-10-08T18:24:40.000Z | 2018-10-08T18:24:40.000Z | tensorflow/intro/main.py | donutloop/machine_learning_examples | 46192a57e2dd194925ae76d6bfb169cd2af142dd | [
"MIT"
] | null | null | null | tensorflow/intro/main.py | donutloop/machine_learning_examples | 46192a57e2dd194925ae76d6bfb169cd2af142dd | [
"MIT"
] | 1 | 2018-10-09T06:50:48.000Z | 2018-10-09T06:50:48.000Z | import os
import tensorflow as tf
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
x1 = tf.constant(5)
x2 = tf.constant(6)
result = tf.multiply(x1, x2)
print(result)
sess = tf.Session()
with tf.Session() as sess:
output = sess.run(result)
print(output)
| 15.235294 | 40 | 0.683398 | 43 | 259 | 4.023256 | 0.55814 | 0.115607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03271 | 0.173745 | 259 | 16 | 41 | 16.1875 | 0.775701 | 0 | 0 | 0 | 0 | 0 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
423f75233120c5c9e5189a28dbf159544fa15eba | 845 | py | Python | twitter-bots/auto_liker.py | debasish-dutta/Python-projects | e06710ba47b37d42d83bd1859c46023513ea1c80 | [
"MIT"
] | null | null | null | twitter-bots/auto_liker.py | debasish-dutta/Python-projects | e06710ba47b37d42d83bd1859c46023513ea1c80 | [
"MIT"
] | null | null | null | twitter-bots/auto_liker.py | debasish-dutta/Python-projects | e06710ba47b37d42d83bd1859c46023513ea1c80 | [
"MIT"
] | null | null | null | import auth_key
import tweepy
import time
auth = tweepy.OAuthHandler(auth_key.API_key, auth_key.API_secret_key)
auth.set_access_token(auth_key.Access_token, auth_key.Access_token_secret)
api = tweepy.API(auth, wait_on_rate_limit=True, wait_on_rate_limit_notify=True)
user = api.me()
indId = 2282863
india... | 24.852941 | 80 | 0.647337 | 115 | 845 | 4.556522 | 0.469565 | 0.066794 | 0.038168 | 0.068702 | 0.089695 | 0.089695 | 0 | 0 | 0 | 0 | 0 | 0.017405 | 0.252071 | 845 | 33 | 81 | 25.606061 | 0.811709 | 0 | 0 | 0 | 0 | 0 | 0.04064 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.115385 | 0 | 0.115385 | 0.115385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
423f9534e4fce6ed19f5f3059bb0ba6698e76415 | 745 | py | Python | ds_discovery/engines/distributed_mesh/domain_products/controller/src/controller.py | project-hadron/discovery-transition-ds | 08229ca3b7617b42ce2dd8e47ff93876c0843810 | [
"BSD-3-Clause"
] | 2 | 2020-09-21T17:24:16.000Z | 2021-05-28T18:02:54.000Z | ds_discovery/engines/distributed_mesh/domain_products/controller/src/controller.py | project-hadron/discovery-transition-ds | 08229ca3b7617b42ce2dd8e47ff93876c0843810 | [
"BSD-3-Clause"
] | null | null | null | ds_discovery/engines/distributed_mesh/domain_products/controller/src/controller.py | project-hadron/discovery-transition-ds | 08229ca3b7617b42ce2dd8e47ff93876c0843810 | [
"BSD-3-Clause"
] | 1 | 2021-07-23T13:52:04.000Z | 2021-07-23T13:52:04.000Z | from ds_discovery import Controller
import os
import warnings
warnings.simplefilter(action='ignore', category=FutureWarning)
warnings.simplefilter(action='ignore', category=DeprecationWarning)
__author__ = 'Darryl Oatridge'
def domain_controller():
# Controller
uri_pm_repo = os.environ.get('HADRON_PM_REPO',... | 32.391304 | 100 | 0.777181 | 95 | 745 | 5.715789 | 0.421053 | 0.044199 | 0.088398 | 0.132597 | 0.302026 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116779 | 745 | 22 | 101 | 33.863636 | 0.825228 | 0.013423 | 0 | 0 | 0 | 0 | 0.165075 | 0.098226 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | 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 |
424044b56baa6c4ca720ef729a7deb71c15b2301 | 1,342 | py | Python | src/pyclean/cli.py | uranusjr/pyclean-py | ba3f4674d02fde396391e0f16906bd2b9cf7cd2d | [
"ISC"
] | null | null | null | src/pyclean/cli.py | uranusjr/pyclean-py | ba3f4674d02fde396391e0f16906bd2b9cf7cd2d | [
"ISC"
] | null | null | null | src/pyclean/cli.py | uranusjr/pyclean-py | ba3f4674d02fde396391e0f16906bd2b9cf7cd2d | [
"ISC"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
import logging
import os
import sys
from . import entries, meta
logger = logging.getLogger(__name__)
def build_parser():
prog = os.path.basename(sys.argv[0])
if prog not in ("pyclean", "pyclean.py"):
prog = "pyclean"
parser = argpar... | 21.301587 | 68 | 0.632638 | 160 | 1,342 | 5.1 | 0.45 | 0.033088 | 0.0625 | 0.051471 | 0.085784 | 0.085784 | 0 | 0 | 0 | 0 | 0 | 0.002863 | 0.219076 | 1,342 | 62 | 69 | 21.645161 | 0.775763 | 0.031297 | 0 | 0.116279 | 0 | 0 | 0.152542 | 0.016949 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0 | 0.116279 | 0 | 0.255814 | 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 |
4240a3a135f3d439bdb928b669c203c2c5a8b79b | 6,890 | py | Python | app.py | ZhongxuanWang/simple_web_remainder-python | e61f9cf05d464fa55ae628fe415ea164f7574cde | [
"MIT"
] | null | null | null | app.py | ZhongxuanWang/simple_web_remainder-python | e61f9cf05d464fa55ae628fe415ea164f7574cde | [
"MIT"
] | null | null | null | app.py | ZhongxuanWang/simple_web_remainder-python | e61f9cf05d464fa55ae628fe415ea164f7574cde | [
"MIT"
] | null | null | null | from flask import Flask, render_template, url_for, redirect, request
from flask_sqlalchemy import SQLAlchemy
from datetime import datetime
from dateutil.relativedelta import relativedelta
from demail import demail
__author__ = 'Zhongxuan Wang'
__doc__ = 'Never Forget online remainder'
app = Flask(__name__)
app.config... | 31.318182 | 118 | 0.633962 | 891 | 6,890 | 4.731762 | 0.280584 | 0.018264 | 0.018264 | 0.014232 | 0.206357 | 0.165797 | 0.137334 | 0.094877 | 0.084677 | 0.061907 | 0 | 0.01503 | 0.237155 | 6,890 | 219 | 119 | 31.461187 | 0.7871 | 0.155878 | 0 | 0.230769 | 0 | 0 | 0.154619 | 0.030673 | 0 | 0 | 0 | 0.009132 | 0 | 1 | 0.111888 | false | 0.013986 | 0.034965 | 0.027972 | 0.398601 | 0.034965 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4243ae92dc1a6dc43f40406353ff665ec5905d97 | 3,241 | py | Python | main.py | eteq/door_beeper | 56c3ddcd9b24c66870aefa4dda0f3df3960049b1 | [
"Apache-2.0"
] | null | null | null | main.py | eteq/door_beeper | 56c3ddcd9b24c66870aefa4dda0f3df3960049b1 | [
"Apache-2.0"
] | null | null | null | main.py | eteq/door_beeper | 56c3ddcd9b24c66870aefa4dda0f3df3960049b1 | [
"Apache-2.0"
] | null | null | null | import uos
import utime
import machine
from machine import Pin, PWM
import utils
default_config = dict(
sleep_time_ms = 250,
freezer_delay_ms = 1000,
fridge_delay_ms = 1000,
write_battery_voltage = True,
piezo_plus_pin_num = 12,
piezo_min_pin_num = 33,
freezer_switch_pin_num ... | 34.849462 | 100 | 0.622339 | 448 | 3,241 | 4.220982 | 0.290179 | 0.042834 | 0.034373 | 0.034902 | 0.070862 | 0.027499 | 0.027499 | 0.027499 | 0 | 0 | 0 | 0.024286 | 0.275841 | 3,241 | 92 | 101 | 35.228261 | 0.781423 | 0.062635 | 0 | 0.12 | 0 | 0 | 0.075876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013333 | false | 0 | 0.066667 | 0 | 0.08 | 0.106667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
42440ed0ff98d8396cf65df66d98259bed94142f | 6,034 | py | Python | modules/backend.py | Uncle-Yuanl/model_zoo | 455a2fd4ac5562a922f29e68de2f4e1fb2d3d2d8 | [
"Apache-2.0"
] | null | null | null | modules/backend.py | Uncle-Yuanl/model_zoo | 455a2fd4ac5562a922f29e68de2f4e1fb2d3d2d8 | [
"Apache-2.0"
] | null | null | null | modules/backend.py | Uncle-Yuanl/model_zoo | 455a2fd4ac5562a922f29e68de2f4e1fb2d3d2d8 | [
"Apache-2.0"
] | null | null | null | import os, sys
from distutils.util import strtobool
import numpy as np
import tensorflow as tf
import tensorflow.keras.backend as K
from tensorflow.python.util import nest, tf_inspect
from tensorflow.python.eager import tape
# from tensorflow.python.ops.custom_gradient import graph_mode_decorator
# 是否使用重计... | 27.678899 | 75 | 0.542592 | 747 | 6,034 | 4.259705 | 0.30656 | 0.028598 | 0.018856 | 0.02357 | 0.119422 | 0.097423 | 0.076053 | 0.059711 | 0.02577 | 0.02577 | 0 | 0.033792 | 0.313391 | 6,034 | 217 | 76 | 27.806452 | 0.734251 | 0.242957 | 0 | 0.054054 | 0 | 0 | 0.046444 | 0.005806 | 0 | 0 | 0 | 0 | 0.027027 | 1 | 0.117117 | false | 0 | 0.072072 | 0 | 0.306306 | 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 |
42441c80231ccaad24f01bdd333bcd71d34fa2e7 | 2,957 | py | Python | apod_daily.py | gultugaydemir/apod_daily | 994ccebdf2646c1a700110d891ea73261773bea2 | [
"CC0-1.0"
] | null | null | null | apod_daily.py | gultugaydemir/apod_daily | 994ccebdf2646c1a700110d891ea73261773bea2 | [
"CC0-1.0"
] | null | null | null | apod_daily.py | gultugaydemir/apod_daily | 994ccebdf2646c1a700110d891ea73261773bea2 | [
"CC0-1.0"
] | null | null | null | import datetime
import os
import requests
import tweepy
from PIL import Image
# Get your own keys from developer.twitter.com
# You can find a detailed tutorial about authenticating accounts from github.com/gultugaydemir/Twitter_OAuth1.0a
consumer_key = ''
consumer_secret = ''
access_token = ''
access_token_secret = '... | 40.506849 | 147 | 0.683801 | 425 | 2,957 | 4.691765 | 0.411765 | 0.027583 | 0.025577 | 0.033099 | 0.049147 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012532 | 0.21745 | 2,957 | 72 | 148 | 41.069444 | 0.849179 | 0.38113 | 0 | 0.075472 | 0 | 0 | 0.121346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018868 | false | 0 | 0.09434 | 0 | 0.113208 | 0.132075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
424460c099ec096eec540d08794ad2f9da57997e | 6,414 | py | Python | datasets/dad.py | LivingSkyTechnologies/Document_Layout_Segmentation | 0db00a18fb39afa1efa8ae183bbd57309a6ebfcf | [
"MIT"
] | 4 | 2021-01-28T23:06:43.000Z | 2022-01-15T19:17:07.000Z | datasets/dad.py | LivingSkyTechnologies/Document_Layout_Segmentation | 0db00a18fb39afa1efa8ae183bbd57309a6ebfcf | [
"MIT"
] | 2 | 2021-01-25T21:54:05.000Z | 2021-08-23T21:19:21.000Z | datasets/dad.py | LivingSkyTechnologies/Document_Layout_Segmentation | 0db00a18fb39afa1efa8ae183bbd57309a6ebfcf | [
"MIT"
] | 2 | 2021-01-28T13:39:33.000Z | 2022-01-15T19:17:13.000Z | import pickle
import os
import tensorflow as tf
from glob import glob
import utils.DataLoaderUtils as dlu
from utils.AnnotationUtils import write_dad_masks
# Static Dataset Config Options
TAG_NAMES = {'highlights',
'urls_to_supplementary',
'abbreviation',
'abstract',
... | 42.76 | 140 | 0.588868 | 692 | 6,414 | 5.156069 | 0.273121 | 0.047085 | 0.045404 | 0.065583 | 0.365471 | 0.328475 | 0.300168 | 0.210762 | 0.205717 | 0.200112 | 0 | 0.005205 | 0.311038 | 6,414 | 149 | 141 | 43.04698 | 0.802218 | 0.041004 | 0 | 0 | 0 | 0 | 0.16645 | 0.006834 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016 | false | 0 | 0.048 | 0 | 0.08 | 0.008 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
424a2a5c3d067c0a48cf8560895baac37e4bf0ea | 812 | py | Python | test/threaddd.py | liaohongdong/IPProxy | 90152f02708717c661b7c1532e4a131a55103950 | [
"MIT"
] | null | null | null | test/threaddd.py | liaohongdong/IPProxy | 90152f02708717c661b7c1532e4a131a55103950 | [
"MIT"
] | 1 | 2021-03-31T19:17:41.000Z | 2021-03-31T19:17:41.000Z | test/threaddd.py | liaohongdong/IPProxy | 90152f02708717c661b7c1532e4a131a55103950 | [
"MIT"
] | null | null | null | import time
import queue
import threading
def aaa(i):
while True:
item = q.get()
if item is None:
print("线程%s发现了一个None,可以休息了^-^" % i)
break
time.sleep(0.01)
print('aaaaa -> ' + str(i) + " ---> " + str(item))
q.task_done()
if __name__ == '__main__':... | 20.820513 | 58 | 0.507389 | 111 | 812 | 3.576577 | 0.441441 | 0.037783 | 0.09068 | 0.083123 | 0.060453 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0.334975 | 812 | 38 | 59 | 21.368421 | 0.712963 | 0.097291 | 0 | 0.074074 | 0 | 0 | 0.061983 | 0.030303 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.111111 | 0 | 0.148148 | 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 |
424a464b22116de9e6ed995f96ff3b93bc5bdfe1 | 665 | py | Python | Codes/Liam/203_remove_linked_list_elements.py | liuxiaohui1221/algorithm | d80e64185ceb4798ac5389bfbd226dc1d406f6b5 | [
"Apache-2.0"
] | 256 | 2017-10-25T13:02:15.000Z | 2022-02-25T13:47:59.000Z | Codes/Liam/203_remove_linked_list_elements.py | liuxiaohui1221/algorithm | d80e64185ceb4798ac5389bfbd226dc1d406f6b5 | [
"Apache-2.0"
] | 56 | 2017-10-27T01:34:20.000Z | 2022-03-01T00:20:55.000Z | Codes/Liam/203_remove_linked_list_elements.py | liuxiaohui1221/algorithm | d80e64185ceb4798ac5389bfbd226dc1d406f6b5 | [
"Apache-2.0"
] | 83 | 2017-10-25T12:51:53.000Z | 2022-02-15T08:27:03.000Z | # 执行用时 : 68 ms
# 内存消耗 : 16.6 MB
# 方案:哨兵结点 sentinel,插入在head结点之前
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def removeElements(self, head: ListNode, val: int) -> ListNode:
# 哨兵结点 sentinel,插入在head结点之前... | 22.166667 | 67 | 0.538346 | 75 | 665 | 4.72 | 0.52 | 0.067797 | 0.129944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014388 | 0.372932 | 665 | 29 | 68 | 22.931034 | 0.834532 | 0.35188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
424f02955cdf26ece00480c3e560a36d37aea6f6 | 19,816 | py | Python | optionstrader/database.py | Zaitsev11/Optionstrader | ed2dbef802ad08f14a0e5280e91746f1bf1fa3f3 | [
"MIT"
] | 6 | 2018-04-26T03:02:04.000Z | 2022-02-26T04:58:53.000Z | optionstrader/database.py | webclinic017/Optionstrader | ed2dbef802ad08f14a0e5280e91746f1bf1fa3f3 | [
"MIT"
] | null | null | null | optionstrader/database.py | webclinic017/Optionstrader | ed2dbef802ad08f14a0e5280e91746f1bf1fa3f3 | [
"MIT"
] | 5 | 2019-12-01T08:09:08.000Z | 2021-11-28T03:43:24.000Z | import time
import mysql.connector
from optionstrader.customlogging import CustomLog
from optionstrader.parser import Parser
MYSQL_IP_ADDR = '192.168.1.10'
# Used to debug via logs
DEBUG = False
class Database:
def __init__(self):
"""
There's some confusion with database vs table.
We wil... | 41.717895 | 155 | 0.605874 | 2,318 | 19,816 | 4.991803 | 0.174288 | 0.038372 | 0.023507 | 0.031458 | 0.386138 | 0.335235 | 0.291937 | 0.235848 | 0.220292 | 0.175439 | 0 | 0.008269 | 0.298143 | 19,816 | 474 | 156 | 41.805907 | 0.823699 | 0.22613 | 0 | 0.423333 | 0 | 0.003333 | 0.171301 | 0.021388 | 0 | 0 | 0 | 0.006329 | 0 | 1 | 0.073333 | false | 0.01 | 0.013333 | 0.003333 | 0.16 | 0.013333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4250d5da81ea72feff3b65a105d5b2c76567a7d7 | 49,917 | py | Python | alphafold2_pytorch/utils.py | nilbot/alphafold2 | 455124ca9135e534739b9670c010512487965547 | [
"MIT"
] | 1 | 2022-01-21T04:58:18.000Z | 2022-01-21T04:58:18.000Z | alphafold2_pytorch/utils.py | nilbot/alphafold2 | 455124ca9135e534739b9670c010512487965547 | [
"MIT"
] | null | null | null | alphafold2_pytorch/utils.py | nilbot/alphafold2 | 455124ca9135e534739b9670c010512487965547 | [
"MIT"
] | null | null | null | # utils for working with 3d-protein structures
import os
import numpy as np
import torch
from functools import wraps
from einops import rearrange, repeat
# import torch_sparse # only needed for sparse nth_deg adj calculation
# bio
from Bio import SeqIO
import itertools
import string
# sidechainnet
from sidechainnet... | 41.356255 | 122 | 0.610033 | 7,253 | 49,917 | 4.065904 | 0.129188 | 0.010682 | 0.009834 | 0.003662 | 0.368057 | 0.341302 | 0.31136 | 0.283486 | 0.26782 | 0.231672 | 0 | 0.019257 | 0.269708 | 49,917 | 1,206 | 123 | 41.390547 | 0.789708 | 0.3734 | 0 | 0.242623 | 0 | 0.001639 | 0.032246 | 0.000727 | 0 | 0 | 0 | 0.000829 | 0.004918 | 1 | 0.090164 | false | 0.009836 | 0.02459 | 0.001639 | 0.22623 | 0.013115 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
425582d3b0bd9aebc3e98f0f395cf656db9c8b38 | 467 | py | Python | day09/part1.py | mtn/advent16 | 0df34237485ee1246532e9eda0ef643e6950d13e | [
"MIT"
] | null | null | null | day09/part1.py | mtn/advent16 | 0df34237485ee1246532e9eda0ef643e6950d13e | [
"MIT"
] | null | null | null | day09/part1.py | mtn/advent16 | 0df34237485ee1246532e9eda0ef643e6950d13e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import re
with open("input.txt") as f:
content = f.read().strip()
ans = ""
i = 0
while i < len(content):
if content[i] == "(":
end = content[i:].find(")") + i
instr = content[i+1:end]
chars, times = map(int, content[i+1:end].split("x"))
to_copy = conten... | 20.304348 | 60 | 0.509636 | 71 | 467 | 3.323944 | 0.492958 | 0.169492 | 0.076271 | 0.101695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02454 | 0.301927 | 467 | 22 | 61 | 21.227273 | 0.699387 | 0.044968 | 0 | 0 | 0 | 0 | 0.026966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4255be118dbe243d9d0c4b4eac0548f7377725a0 | 2,825 | py | Python | sa/profiles/Alcatel/AOS/get_inventory.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 84 | 2017-10-22T11:01:39.000Z | 2022-02-27T03:43:48.000Z | sa/profiles/Alcatel/AOS/get_inventory.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 22 | 2017-12-11T07:21:56.000Z | 2021-09-23T02:53:50.000Z | sa/profiles/Alcatel/AOS/get_inventory.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 23 | 2017-12-06T06:59:52.000Z | 2022-02-24T00:02:25.000Z | # ----------------------------------------------------------------------
# Alcatel.AOS.get_inventory
# ----------------------------------------------------------------------
# Copyright (C) 2007-2014 The NOC Project
# See LICENSE for details
# ----------------------------------------------------------------------
# Py... | 36.217949 | 72 | 0.43469 | 282 | 2,825 | 4.27305 | 0.343972 | 0.039834 | 0.049793 | 0.039834 | 0.114523 | 0.080498 | 0.056432 | 0.056432 | 0 | 0 | 0 | 0.008743 | 0.352212 | 2,825 | 77 | 73 | 36.688312 | 0.649727 | 0.151504 | 0 | 0.066667 | 0 | 0 | 0.300336 | 0.086829 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016667 | false | 0 | 0.05 | 0 | 0.15 | 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 |
4258b13ddf592d8967b4cf56eb4a465b00010bc4 | 5,286 | py | Python | edge-tool/cbor_converter.py | hckim-kornic/mbed-edge-kornic | b83ea92066fae7c274777aa27494d5524c577c12 | [
"Apache-2.0"
] | null | null | null | edge-tool/cbor_converter.py | hckim-kornic/mbed-edge-kornic | b83ea92066fae7c274777aa27494d5524c577c12 | [
"Apache-2.0"
] | null | null | null | edge-tool/cbor_converter.py | hckim-kornic/mbed-edge-kornic | b83ea92066fae7c274777aa27494d5524c577c12 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# ----------------------------------------------------------------------------
# Copyright 2018 ARM Ltd.
#
# SPDX-License-Identifier: Apache-2.0
#
# 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 ... | 40.661538 | 99 | 0.620885 | 607 | 5,286 | 5.079077 | 0.299835 | 0.052546 | 0.070062 | 0.061304 | 0.223484 | 0.204671 | 0.147584 | 0.097632 | 0.069089 | 0.036977 | 0 | 0.00479 | 0.249527 | 5,286 | 129 | 100 | 40.976744 | 0.772372 | 0.143019 | 0 | 0.076923 | 0 | 0 | 0.295434 | 0.178856 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054945 | false | 0 | 0.054945 | 0 | 0.175824 | 0.032967 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4258ec1ee3116d288de649b3f19210bd3aa35e35 | 3,012 | py | Python | turbinia/processors/archive_test.py | sa3eed3ed/turbinia | 1eb4db37813f2bd44dcc2c3764e9411f6a2f9d97 | [
"Apache-2.0"
] | 559 | 2015-09-16T21:55:12.000Z | 2022-03-28T11:08:11.000Z | turbinia/processors/archive_test.py | sa3eed3ed/turbinia | 1eb4db37813f2bd44dcc2c3764e9411f6a2f9d97 | [
"Apache-2.0"
] | 630 | 2015-09-16T21:53:41.000Z | 2022-03-25T07:03:32.000Z | turbinia/processors/archive_test.py | sa3eed3ed/turbinia | 1eb4db37813f2bd44dcc2c3764e9411f6a2f9d97 | [
"Apache-2.0"
] | 158 | 2015-12-06T20:39:32.000Z | 2022-03-13T22:15:01.000Z | # -*- coding: utf-8 -*-
# Copyright 2019 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | 33.842697 | 74 | 0.729416 | 417 | 3,012 | 5.127098 | 0.407674 | 0.032741 | 0.039289 | 0.049111 | 0.168382 | 0.153414 | 0.08232 | 0.08232 | 0 | 0 | 0 | 0.008488 | 0.178619 | 3,012 | 88 | 75 | 34.227273 | 0.855699 | 0.378154 | 0 | 0.065217 | 0 | 0 | 0.040415 | 0 | 0 | 0 | 0 | 0 | 0.108696 | 1 | 0.086957 | false | 0 | 0.195652 | 0 | 0.304348 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
425c5f6cf6cd74314b97f4bcb6721e3f260e8ac7 | 6,548 | py | Python | tectosaur/fmm/builder.py | jlmaurer/tectosaur | 7cc5606d814f061395b19754e7a4b6c5e4c236e5 | [
"MIT"
] | 17 | 2017-06-29T16:48:56.000Z | 2021-10-03T18:31:41.000Z | tectosaur/fmm/builder.py | jlmaurer/tectosaur | 7cc5606d814f061395b19754e7a4b6c5e4c236e5 | [
"MIT"
] | 4 | 2018-05-29T08:21:13.000Z | 2021-04-01T01:28:50.000Z | tectosaur/fmm/builder.py | jlmaurer/tectosaur | 7cc5606d814f061395b19754e7a4b6c5e4c236e5 | [
"MIT"
] | 8 | 2019-06-10T22:19:40.000Z | 2022-01-12T20:55:37.000Z | import numpy as np
import tectosaur.util.gpu as gpu
from tectosaur.fmm.c2e import build_c2e
import logging
logger = logging.getLogger(__name__)
def make_tree(m, cfg, max_pts_per_cell):
tri_pts = m[0][m[1]]
centers = np.mean(tri_pts, axis = 1)
pt_dist = tri_pts - centers[:,np.newaxis,:]
Rs = np.max(np... | 36.786517 | 95 | 0.609652 | 1,031 | 6,548 | 3.579049 | 0.13676 | 0.036043 | 0.035772 | 0.01626 | 0.320325 | 0.173171 | 0.128997 | 0.128997 | 0.072629 | 0.072629 | 0 | 0.018903 | 0.25672 | 6,548 | 177 | 96 | 36.99435 | 0.739264 | 0 | 0 | 0.013793 | 0 | 0 | 0.049633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.110345 | false | 0 | 0.027586 | 0.013793 | 0.186207 | 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 |
425d43c4429c4fecedfff11a5de11c9d121390a6 | 2,553 | py | Python | fabio/test/codecs/test_mpaimage.py | picca/fabio | bc3aae330bef6e1c983007562157edfe6d7daf91 | [
"Apache-2.0"
] | null | null | null | fabio/test/codecs/test_mpaimage.py | picca/fabio | bc3aae330bef6e1c983007562157edfe6d7daf91 | [
"Apache-2.0"
] | 2 | 2019-04-24T13:43:41.000Z | 2019-06-13T08:54:02.000Z | fabio/test/codecs/test_mpaimage.py | boesecke/fabio | 11350e445a6def4d02c6860aea3ae7f36652af6a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Project: Fable Input Output
# https://github.com/silx-kit/fabio
#
# Copyright (C) European Synchrotron Radiation Facility, Grenoble, France
#
# Principal author: Jérôme Kieffer (Jerome.Kieffer@ESRF.eu)
#
# This program is free software: you... | 34.04 | 111 | 0.653741 | 314 | 2,553 | 5.248408 | 0.541401 | 0.050971 | 0.023665 | 0.034587 | 0.049757 | 0.033981 | 0 | 0 | 0 | 0 | 0 | 0.019348 | 0.230709 | 2,553 | 74 | 112 | 34.5 | 0.819756 | 0.406189 | 0 | 0 | 0 | 0 | 0.067633 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 1 | 0.064516 | false | 0 | 0.16129 | 0 | 0.322581 | 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 |
425dd97c671323bb5d6b53095ab3886bfc7da465 | 1,064 | py | Python | currencySpider.py | cloud322/helloScrap | 6313c5b99bce04c6a78a5dfb2ec910c73a33add3 | [
"Apache-2.0"
] | null | null | null | currencySpider.py | cloud322/helloScrap | 6313c5b99bce04c6a78a5dfb2ec910c73a33add3 | [
"Apache-2.0"
] | null | null | null | currencySpider.py | cloud322/helloScrap | 6313c5b99bce04c6a78a5dfb2ec910c73a33add3 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import scrapy
import codecs
import sys
#리눅스상에서 utf-8 로 파일에 내용을 기록하려면 시스템 기본 인코딩으 ㄹutf-8 로 설정해야함
reload(sys)
sys.setdefaultencoding('utf8')
# scrapy 에서 spider 는 crawling/scrapping을 담당하는 핵심부분
#crawling/scrapping 절차에 대한 정의를 하는 부분
class CurrSpider(scrapy.Spider):
name = 'currSpider'
start_... | 28 | 86 | 0.56015 | 138 | 1,064 | 4.304348 | 0.666667 | 0.026936 | 0.050505 | 0.03367 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010526 | 0.285714 | 1,064 | 38 | 87 | 28 | 0.771053 | 0.355263 | 0 | 0 | 0 | 0 | 0.195556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.1875 | 0 | 0.4375 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
425f6d304bf8b5a8fd1c2a47d2f7c554468160b1 | 1,812 | py | Python | tests/test_sanity_check/test_similar_columns.py | thibaultbl/feature_engine | 08374227e7a88b67ee64b64f22e4f30390df9253 | [
"BSD-3-Clause"
] | 1 | 2021-09-08T08:54:56.000Z | 2021-09-08T08:54:56.000Z | tests/test_sanity_check/test_similar_columns.py | thibaultbl/feature_engine | 08374227e7a88b67ee64b64f22e4f30390df9253 | [
"BSD-3-Clause"
] | 1 | 2021-09-10T08:54:51.000Z | 2021-09-10T08:54:51.000Z | tests/test_sanity_check/test_similar_columns.py | thibaultbl/feature_engine | 08374227e7a88b67ee64b64f22e4f30390df9253 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
import pandas as pd
from feature_engine.sanity_check import SimilarColumns
def test_similar_columns_when_more_columns_in_train_than_test(
df_vartypes, df_na
):
# When columns are the same
train = df_na.copy()
test = df_vartypes.copy()
similar_columns = SimilarColumns()
si... | 27.044776 | 85 | 0.557395 | 225 | 1,812 | 4.275556 | 0.351111 | 0.057173 | 0.029106 | 0.04158 | 0.665281 | 0.665281 | 0.644491 | 0.621622 | 0.54262 | 0.54262 | 0 | 0.047393 | 0.301325 | 1,812 | 66 | 86 | 27.454545 | 0.71248 | 0.028146 | 0 | 0.428571 | 0 | 0 | 0.104664 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 1 | 0.040816 | false | 0 | 0.061224 | 0 | 0.102041 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
425fb9945bfce39ef08339e9cffda8aa831a4e3d | 6,780 | py | Python | examples/sem_seg_dense/train.py | megaelius/deep_gcns_torch | 5d565a02020ff9faff3a34d55f278e7328c73ec2 | [
"MIT"
] | null | null | null | examples/sem_seg_dense/train.py | megaelius/deep_gcns_torch | 5d565a02020ff9faff3a34d55f278e7328c73ec2 | [
"MIT"
] | null | null | null | examples/sem_seg_dense/train.py | megaelius/deep_gcns_torch | 5d565a02020ff9faff3a34d55f278e7328c73ec2 | [
"MIT"
] | null | null | null |
import __init__
import os
#os.environ['LD_LIBRARY_PATH'] += ':/usr/local/cuda-11.1/bin64:/usr/local/cuda-11.2/bin64'
import numpy as np
import torch
import torch.multiprocessing as mp
import torch_geometric.datasets as GeoData
from torch_geometric.loader import DenseDataLoader
import torch_geometric.transforms as T... | 39.649123 | 156 | 0.633333 | 887 | 6,780 | 4.657272 | 0.255919 | 0.025176 | 0.017429 | 0.019366 | 0.220286 | 0.179133 | 0.15541 | 0.117163 | 0.099734 | 0.036795 | 0 | 0.009549 | 0.227729 | 6,780 | 171 | 157 | 39.649123 | 0.779412 | 0.04056 | 0 | 0.045802 | 0 | 0 | 0.070963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038168 | false | 0 | 0.145038 | 0 | 0.183206 | 0.007634 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
426012a76defd0d35b2275dd689a17428018f29c | 707 | py | Python | sources/tkinter/prog03.py | kantel/pythoncuriosa | 4dfb92b443cbe0acf8d8efa5c54efbf13e834620 | [
"MIT"
] | null | null | null | sources/tkinter/prog03.py | kantel/pythoncuriosa | 4dfb92b443cbe0acf8d8efa5c54efbf13e834620 | [
"MIT"
] | null | null | null | sources/tkinter/prog03.py | kantel/pythoncuriosa | 4dfb92b443cbe0acf8d8efa5c54efbf13e834620 | [
"MIT"
] | null | null | null | import tkinter as tk
from tkinter import ttk
win = tk.Tk()
win.title("Python GUI")
win.resizable(False, False)
win.configure(background = "grey94")
a_label = ttk.Label(win, text = "Gib Deinen Namen ein:")
a_label.grid(column = 0, row = 0)
a_label.grid_configure(padx = 8, pady = 8)
def clickMe():
action.configure... | 26.185185 | 65 | 0.701556 | 110 | 707 | 4.418182 | 0.436364 | 0.090535 | 0.104938 | 0.111111 | 0.141975 | 0.141975 | 0 | 0 | 0 | 0 | 0 | 0.026578 | 0.148515 | 707 | 27 | 66 | 26.185185 | 0.780731 | 0 | 0 | 0 | 0 | 0 | 0.081921 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.1 | 0 | 0.15 | 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 |
4260837af4a64a8bea9204399d75709291c91101 | 528 | py | Python | openarticlegauge/slavedriver.py | CottageLabs/OpenArticleGauge | 58d29b4209a7b59041d61326ffe1cf03f98f3cff | [
"BSD-3-Clause"
] | 1 | 2016-04-07T18:29:27.000Z | 2016-04-07T18:29:27.000Z | openarticlegauge/slavedriver.py | CottageLabs/OpenArticleGauge | 58d29b4209a7b59041d61326ffe1cf03f98f3cff | [
"BSD-3-Clause"
] | 11 | 2015-01-06T15:53:09.000Z | 2022-03-01T01:46:14.000Z | openarticlegauge/slavedriver.py | CottageLabs/OpenArticleGauge | 58d29b4209a7b59041d61326ffe1cf03f98f3cff | [
"BSD-3-Clause"
] | null | null | null | """
Initialise the Celery instance to be used by the application
This is largely just boiler plate, and we could probably look at coming back to it and cleaning it
up a bit in the future.
"""
from __future__ import absolute_import
from celery import Celery
celery = Celery()
from openarticlegauge import celeryconfi... | 21.12 | 98 | 0.780303 | 75 | 528 | 5.253333 | 0.693333 | 0.071066 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009029 | 0.160985 | 528 | 24 | 99 | 22 | 0.880361 | 0.456439 | 0 | 0 | 0 | 0 | 0.028777 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 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 |
42667a983dfb48f00077636f4ff9f6c3c1fe62f9 | 743 | py | Python | sdk/python/tests/integration/feature_repos/universal/data_source_creator.py | marsishandsome/feast | 998e16945da240bfa73570cdb2c5e3639f892d34 | [
"Apache-2.0"
] | 1 | 2021-09-16T16:17:58.000Z | 2021-09-16T16:17:58.000Z | sdk/python/tests/integration/feature_repos/universal/data_source_creator.py | marsishandsome/feast | 998e16945da240bfa73570cdb2c5e3639f892d34 | [
"Apache-2.0"
] | null | null | null | sdk/python/tests/integration/feature_repos/universal/data_source_creator.py | marsishandsome/feast | 998e16945da240bfa73570cdb2c5e3639f892d34 | [
"Apache-2.0"
] | null | null | null | from abc import ABC, abstractmethod
from typing import Dict
import pandas as pd
from feast.data_source import DataSource
from feast.repo_config import FeastConfigBaseModel
class DataSourceCreator(ABC):
@abstractmethod
def create_data_source(
self,
destination: str,
df: pd.DataFrame,
... | 22.515152 | 69 | 0.664872 | 79 | 743 | 6.050633 | 0.518987 | 0.142259 | 0.096234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248991 | 743 | 32 | 70 | 23.21875 | 0.856631 | 0 | 0 | 0.32 | 0 | 0 | 0.016151 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.2 | 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 |
42683ff20338aa58755c4a687ba9b5618ac5ee33 | 1,393 | py | Python | tests/interpreter/expression/var_assignment_interpreter_test.py | OtavioHenrique/yalul | ce99e32365ed5607527b9f2f39705ad5d9e20ba2 | [
"MIT"
] | 1 | 2021-04-01T20:22:36.000Z | 2021-04-01T20:22:36.000Z | tests/interpreter/expression/var_assignment_interpreter_test.py | OtavioHenrique/yalul | ce99e32365ed5607527b9f2f39705ad5d9e20ba2 | [
"MIT"
] | 1 | 2020-11-20T22:24:38.000Z | 2020-11-20T22:24:38.000Z | tests/interpreter/expression/var_assignment_interpreter_test.py | OtavioHenrique/yalul | ce99e32365ed5607527b9f2f39705ad5d9e20ba2 | [
"MIT"
] | null | null | null | from yalul.interpreters.environment import Environment
from yalul.interpreters.expressions.var_assignment_interpreter import VarAssignmentInterpreter
from yalul.interpreters.interpreter_errors import InterpreterErrors
class TestVarAssignmentInterpreter:
"""Test var assignment expression interpreter"""
def te... | 34.825 | 116 | 0.676238 | 127 | 1,393 | 7.307087 | 0.385827 | 0.056034 | 0.067888 | 0.047414 | 0.37069 | 0.301724 | 0.200431 | 0.200431 | 0.200431 | 0.200431 | 0 | 0 | 0.234027 | 1,393 | 39 | 117 | 35.717949 | 0.869728 | 0.137832 | 0 | 0.380952 | 0 | 0 | 0.070496 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 1 | 0.095238 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4268f94ca522ab0b564db536a3198008325ec23d | 2,547 | py | Python | backend/externals/events.py | crosspower/naruko | 4c524e2ef955610a711830bc86d730ffe4fc2bd8 | [
"MIT"
] | 17 | 2019-01-23T04:37:43.000Z | 2019-10-15T01:42:31.000Z | backend/externals/events.py | snickerjp/naruko | 4c524e2ef955610a711830bc86d730ffe4fc2bd8 | [
"MIT"
] | 1 | 2019-01-23T08:04:44.000Z | 2019-01-23T08:44:33.000Z | backend/externals/events.py | snickerjp/naruko | 4c524e2ef955610a711830bc86d730ffe4fc2bd8 | [
"MIT"
] | 6 | 2019-01-23T09:10:59.000Z | 2020-12-02T04:15:41.000Z | import boto3
from django.conf import settings
from backend.models import CloudWatchEvent
import json
class Events:
def __init__(self):
self.client = boto3.client('events', region_name=settings.NARUKO_REGION)
def list_rules(self):
response = []
for rules in self._list_rul... | 28.617978 | 81 | 0.568512 | 233 | 2,547 | 6.030043 | 0.300429 | 0.05694 | 0.038434 | 0.022776 | 0.156584 | 0.156584 | 0.156584 | 0.095374 | 0.095374 | 0.095374 | 0 | 0.001195 | 0.343149 | 2,547 | 88 | 82 | 28.943182 | 0.838613 | 0.021594 | 0 | 0.090909 | 0 | 0 | 0.054652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106061 | false | 0 | 0.060606 | 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 |
426a6f57e84f4626e97b52d506e5d77552f5cfca | 2,715 | py | Python | figuras/PycharmKayStatisticalReport/example_8_11.py | bor9/estudiando_el_kay | 6e07908b8b0b5a5166dadce30001e6100e8304c3 | [
"MIT"
] | null | null | null | figuras/PycharmKayStatisticalReport/example_8_11.py | bor9/estudiando_el_kay | 6e07908b8b0b5a5166dadce30001e6100e8304c3 | [
"MIT"
] | null | null | null | figuras/PycharmKayStatisticalReport/example_8_11.py | bor9/estudiando_el_kay | 6e07908b8b0b5a5166dadce30001e6100e8304c3 | [
"MIT"
] | 1 | 2021-11-02T05:27:27.000Z | 2021-11-02T05:27:27.000Z | import matplotlib.pyplot as plt
import numpy as np
from scipy import signal, linalg
from matplotlib import rc
from matplotlib import rcParams
__author__ = 'ernesto'
# if use latex or mathtext
rc('text', usetex=True)
rcParams['text.latex.preamble'] = [r"\usepackage{amsmath}"]
#respuesta al impulso deseada: sinc
N = ... | 29.835165 | 104 | 0.64825 | 497 | 2,715 | 3.476861 | 0.289738 | 0.018519 | 0.034722 | 0.03125 | 0.31713 | 0.227431 | 0.168981 | 0.096065 | 0.070602 | 0 | 0 | 0.043774 | 0.133333 | 2,715 | 91 | 105 | 29.835165 | 0.690608 | 0.127808 | 0 | 0.064516 | 0 | 0 | 0.124097 | 0.034849 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.080645 | 0 | 0.080645 | 0.048387 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
426e9a7b517f49d7e52664e4ad563ce95c7c8446 | 3,433 | py | Python | bom/helpers.py | gxyp/indabom | 114991be2471eda2cf658c68706ab7bb05b06959 | [
"MIT"
] | null | null | null | bom/helpers.py | gxyp/indabom | 114991be2471eda2cf658c68706ab7bb05b06959 | [
"MIT"
] | null | null | null | bom/helpers.py | gxyp/indabom | 114991be2471eda2cf658c68706ab7bb05b06959 | [
"MIT"
] | null | null | null | from bom.octopart_parts_match import match_part
from bom.models import Part, PartClass, Seller, SellerPart, Subpart, \
Manufacturer, Organization, PartFile
def create_a_fake_organization(user, free=False):
org = Organization(
name="Atlas",
subscription='F' if free else 'P',
owner=user)... | 23.040268 | 77 | 0.642587 | 404 | 3,433 | 5.225248 | 0.262376 | 0.125059 | 0.046897 | 0.026528 | 0.197063 | 0.053055 | 0.031265 | 0.031265 | 0 | 0 | 0 | 0.050881 | 0.255753 | 3,433 | 148 | 78 | 23.195946 | 0.775342 | 0 | 0 | 0.125 | 0 | 0 | 0.055345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.017857 | 0 | 0.160714 | 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 |
4270b9f3f72e8e2eb3176ce2f540c1dc258f357c | 399 | py | Python | SmartBuild/modules/migrations/0003_module_shortcut.py | ampamo/smart-build | a0c9a3871eb7ca06a6cd6d4a15aba70e2291f4fb | [
"CC0-1.0"
] | null | null | null | SmartBuild/modules/migrations/0003_module_shortcut.py | ampamo/smart-build | a0c9a3871eb7ca06a6cd6d4a15aba70e2291f4fb | [
"CC0-1.0"
] | null | null | null | SmartBuild/modules/migrations/0003_module_shortcut.py | ampamo/smart-build | a0c9a3871eb7ca06a6cd6d4a15aba70e2291f4fb | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('modules', '0002_module_floor'),
]
operations = [
migrations.AddField(
model_name='module',
name='sho... | 19.95 | 53 | 0.601504 | 36 | 399 | 6.444444 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017422 | 0.280702 | 399 | 19 | 54 | 21 | 0.790941 | 0.052632 | 0 | 0 | 0 | 0 | 0.101064 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4273f06b359f41b03bbac8b02773bc579762c6fd | 6,789 | py | Python | app/common.py | yxonic/dl-boilerplate | d503716ad514929ddfdc41341e37b0e3f1a1f0f5 | [
"MIT"
] | 1 | 2017-09-26T05:13:19.000Z | 2017-09-26T05:13:19.000Z | app/common.py | yxonic/dl-boilerplate | d503716ad514929ddfdc41341e37b0e3f1a1f0f5 | [
"MIT"
] | null | null | null | app/common.py | yxonic/dl-boilerplate | d503716ad514929ddfdc41341e37b0e3f1a1f0f5 | [
"MIT"
] | null | null | null | import abc
import argparse
import logging
import pathlib
from collections import namedtuple
from operator import itemgetter
import toml
class NotConfiguredError(Exception):
pass
class ParseError(Exception):
pass
class Model(abc.ABC):
"""Interface for model that can save/load parameters.
Each mod... | 28.405858 | 78 | 0.577405 | 766 | 6,789 | 4.939948 | 0.245431 | 0.02537 | 0.02537 | 0.013742 | 0.092759 | 0.043869 | 0 | 0 | 0 | 0 | 0 | 0.001076 | 0.315363 | 6,789 | 238 | 79 | 28.52521 | 0.813038 | 0.156577 | 0 | 0.205128 | 0 | 0 | 0.034345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173077 | false | 0.012821 | 0.051282 | 0.025641 | 0.391026 | 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 |
4274e96e6ce5245f31a18bf5087d02fdafd53341 | 2,737 | py | Python | training/train_pos_dep.py | ex00/spacy-ru | 7284d8127dca322fcc2aa9ce0267699cfc9baf38 | [
"MIT"
] | null | null | null | training/train_pos_dep.py | ex00/spacy-ru | 7284d8127dca322fcc2aa9ce0267699cfc9baf38 | [
"MIT"
] | null | null | null | training/train_pos_dep.py | ex00/spacy-ru | 7284d8127dca322fcc2aa9ce0267699cfc9baf38 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals, print_function
import sys
from pathlib import Path
import spacy
from spacy.lang.ru import Russian
from spacy.pipeline import Tagger, DependencyParser
from spacy.util import fix_random_seed, set_lang_class
from models.dep import MyDEP
from models.loadvec import get_ft_vec
from... | 27.646465 | 111 | 0.700037 | 396 | 2,737 | 4.626263 | 0.255051 | 0.026201 | 0.043668 | 0.069869 | 0.317686 | 0.304585 | 0.231441 | 0.127729 | 0.098253 | 0.054585 | 0 | 0.011409 | 0.167337 | 2,737 | 98 | 112 | 27.928571 | 0.792453 | 0.136646 | 0 | 0.202899 | 0 | 0 | 0.053928 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072464 | false | 0 | 0.202899 | 0 | 0.333333 | 0.057971 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4275177baedf41f1ab31ef0704dfda58eb058f5e | 1,512 | py | Python | tests/test_peephole_optimizations.py | capuanob/angr | 4e5bb119965cb282f5bcb3dea5b598e88097f715 | [
"BSD-2-Clause"
] | null | null | null | tests/test_peephole_optimizations.py | capuanob/angr | 4e5bb119965cb282f5bcb3dea5b598e88097f715 | [
"BSD-2-Clause"
] | null | null | null | tests/test_peephole_optimizations.py | capuanob/angr | 4e5bb119965cb282f5bcb3dea5b598e88097f715 | [
"BSD-2-Clause"
] | null | null | null | # pylint:disable=missing-class-docstring,no-self-use
import os
import unittest
import archinfo
import ailment
import angr
from angr.analyses.decompiler.peephole_optimizations import ConstantDereferences
test_location = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..', 'binaries', 'tests')
class ... | 38.769231 | 119 | 0.683201 | 190 | 1,512 | 5.326316 | 0.484211 | 0.023715 | 0.019763 | 0.037549 | 0.219368 | 0.219368 | 0.219368 | 0.219368 | 0.219368 | 0.219368 | 0 | 0.024896 | 0.203042 | 1,512 | 38 | 120 | 39.789474 | 0.814938 | 0.159392 | 0 | 0.173913 | 0 | 0 | 0.062451 | 0 | 0 | 0 | 0.028459 | 0 | 0.173913 | 1 | 0.043478 | false | 0 | 0.26087 | 0 | 0.347826 | 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 |
42755fd81a38eefae8f526ffb8db205e1141d33b | 604 | py | Python | PySpace/mysql/mysql_insertdata.py | dralee/LearningRepository | 4324d3c5ac1a12dde17ae70c1eb7f3d36a047ba4 | [
"Apache-2.0"
] | null | null | null | PySpace/mysql/mysql_insertdata.py | dralee/LearningRepository | 4324d3c5ac1a12dde17ae70c1eb7f3d36a047ba4 | [
"Apache-2.0"
] | null | null | null | PySpace/mysql/mysql_insertdata.py | dralee/LearningRepository | 4324d3c5ac1a12dde17ae70c1eb7f3d36a047ba4 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
# 文件名:mysql_createtable.py
import pymysql
# 打开数据库连接
db = pymysql.connect('localhost','root','1234','fdtest')
# 使用cursor()方法创建一个游标对象cursor
cursor = db.cursor()
# SQL插入语句
sql = """INSERT INTO EMPLOYEE(
FIRST_NAME,LAST_NAME,AGE,SEX,INCOME)
VALUES('Mac2','Mohan2',20,'M',6000)"""
"""
或
sql = "INS... | 16.777778 | 56 | 0.61755 | 78 | 604 | 4.717949 | 0.679487 | 0.048913 | 0.070652 | 0.11413 | 0.304348 | 0.304348 | 0.304348 | 0.304348 | 0.304348 | 0.304348 | 0 | 0.038 | 0.172185 | 604 | 35 | 57 | 17.257143 | 0.698 | 0.19702 | 0 | 0 | 0 | 0 | 0.407407 | 0.239057 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
42787867fa3db8b6721924f36a9b0de8973ee0ae | 1,572 | py | Python | appleseed_python.py | AllegorithmicSAS/sat-scons | 3eea609385fb9bdd93562097d302a3707c3c6ebe | [
"BSD-3-Clause"
] | 25 | 2018-09-17T00:10:30.000Z | 2021-11-07T06:41:35.000Z | appleseed_python.py | AllegorithmicSAS/sat-scons | 3eea609385fb9bdd93562097d302a3707c3c6ebe | [
"BSD-3-Clause"
] | null | null | null | appleseed_python.py | AllegorithmicSAS/sat-scons | 3eea609385fb9bdd93562097d302a3707c3c6ebe | [
"BSD-3-Clause"
] | 3 | 2018-08-28T15:01:43.000Z | 2021-05-04T16:54:51.000Z | import os
import subprocess
import threading
mutex = threading.Lock()
def render_appleseed(target_file, base_color_tex, normal_tex, roughness_tex, metallic_tex, resolution, appleseed_path):
mutex.acquire()
try:
# Read the template file from disk.
with open("scene_template.appleseed", "r") as... | 40.307692 | 125 | 0.688295 | 190 | 1,572 | 5.484211 | 0.410526 | 0.147793 | 0.103647 | 0.126679 | 0.178503 | 0.122841 | 0 | 0 | 0 | 0 | 0 | 0.003981 | 0.201018 | 1,572 | 38 | 126 | 41.368421 | 0.825637 | 0.096692 | 0 | 0 | 0 | 0 | 0.175265 | 0.046643 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.12 | 0 | 0.16 | 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 |
427ab04e73a73ae528a76eac0fdda4742addfcf9 | 355 | py | Python | sleekxmpp/plugins/__init__.py | aristanetworks/SleekXMPP | 91f53bf1964a564f6f12477a31884e9ec38cef75 | [
"MIT"
] | null | null | null | sleekxmpp/plugins/__init__.py | aristanetworks/SleekXMPP | 91f53bf1964a564f6f12477a31884e9ec38cef75 | [
"MIT"
] | 1 | 2020-04-10T22:09:06.000Z | 2020-04-10T22:09:06.000Z | sleekxmpp/plugins/__init__.py | aristanetworks/SleekXMPP | 91f53bf1964a564f6f12477a31884e9ec38cef75 | [
"MIT"
] | 1 | 2019-12-05T12:10:16.000Z | 2019-12-05T12:10:16.000Z | """
SleekXMPP: The Sleek XMPP Library
Copyright (C) 2010 Nathanael C. Fritz
This file is part of SleekXMPP.
See the file LICENSE for copying permission.
"""
__all__ = ['xep_0004', 'xep_0012', 'xep_0030', 'xep_0033', 'xep_0045',
'xep_0050', 'xep_0085', 'xep_0092', 'xep_0199', 'gmail_notify',
... | 32.272727 | 74 | 0.63662 | 49 | 355 | 4.285714 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 0.222535 | 355 | 10 | 75 | 35.5 | 0.586957 | 0.419718 | 0 | 0 | 0 | 0 | 0.549451 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
427af261bc83da6fc8ac5c1ea1e2a2473e51e220 | 5,276 | py | Python | main.py | pwillworth/dfkreport | ae10226430a3a74ac3c07ae888cab14dde778db8 | [
"Apache-2.0"
] | 11 | 2022-01-18T17:36:12.000Z | 2022-03-21T21:09:17.000Z | main.py | pwillworth/dfkreport | ae10226430a3a74ac3c07ae888cab14dde778db8 | [
"Apache-2.0"
] | null | null | null | main.py | pwillworth/dfkreport | ae10226430a3a74ac3c07ae888cab14dde778db8 | [
"Apache-2.0"
] | 4 | 2022-01-18T18:37:48.000Z | 2022-01-22T02:14:48.000Z | #!/usr/bin/env python3
import transactions
import taxmap
import db
import settings
import datetime
import argparse
import uuid
import pickle
import jsonpickle
import logging
import logging.handlers
import traceback
def main():
handler = logging.handlers.RotatingFileHandler('../main.log', maxBytes=33554432, backup... | 47.531532 | 224 | 0.666035 | 651 | 5,276 | 5.356375 | 0.3702 | 0.028678 | 0.028104 | 0.046171 | 0.291081 | 0.227703 | 0.162891 | 0.143963 | 0.094637 | 0 | 0 | 0.016735 | 0.218537 | 5,276 | 110 | 225 | 47.963636 | 0.829008 | 0.108795 | 0 | 0.26087 | 0 | 0 | 0.201364 | 0.010654 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01087 | false | 0 | 0.130435 | 0 | 0.163043 | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
427e1e9e41044ab46aedd645fb3078c3369fa522 | 2,086 | py | Python | machine_learning/torch_time_series_forecasting/src/data/dataset.py | iimuz/til | b100438e8ce2f369331b3be215a4b9cdce9ffda5 | [
"MIT"
] | 4 | 2020-07-25T01:20:08.000Z | 2020-10-03T12:58:15.000Z | machine_learning/torch_time_series_forecasting/src/data/dataset.py | iimuz/til | b100438e8ce2f369331b3be215a4b9cdce9ffda5 | [
"MIT"
] | 29 | 2019-09-30T08:04:14.000Z | 2022-03-12T13:51:08.000Z | machine_learning/torch_time_series_forecasting/src/data/dataset.py | iimuz/til | b100438e8ce2f369331b3be215a4b9cdce9ffda5 | [
"MIT"
] | 1 | 2020-08-14T05:15:51.000Z | 2020-08-14T05:15:51.000Z | """データセットをダウンロードするためのスクリプトです."""
# default packages
import logging
import pathlib
import traceback
import urllib.request as request
# third party
import pandas as pd
import tqdm as tqdm_std
# my packages
import src.data.directory as directory
# logger
logger = logging.getLogger(__name__)
class TqdmUpTo(tqdm_std.tq... | 25.13253 | 85 | 0.622244 | 264 | 2,086 | 4.772727 | 0.454545 | 0.028571 | 0.021429 | 0.030159 | 0.065079 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009026 | 0.256472 | 2,086 | 82 | 86 | 25.439024 | 0.803353 | 0.214286 | 0 | 0.042553 | 0 | 0 | 0.084028 | 0.019243 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085106 | false | 0 | 0.148936 | 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 |
427f14f88f6ffd13fff4e9351ec1d15fe8db0b86 | 3,320 | py | Python | app.py | aracnid/i-xero | 2fb2f093a8a92e0ba2f4cdbe440e962a38c09f7e | [
"MIT"
] | null | null | null | app.py | aracnid/i-xero | 2fb2f093a8a92e0ba2f4cdbe440e962a38c09f7e | [
"MIT"
] | null | null | null | app.py | aracnid/i-xero | 2fb2f093a8a92e0ba2f4cdbe440e962a38c09f7e | [
"MIT"
] | null | null | null | """Primary application.
"""
import json
import logging
import logging.config
import os
import sys
from flask import url_for, render_template, redirect, request
from i_xero import Xero2
from i_xero.i_flask import FlaskInterface
from utils import jsonify, serialize_model
# initialize logging
# The SlackBot app doesn't... | 28.376068 | 83 | 0.71506 | 448 | 3,320 | 5.044643 | 0.310268 | 0.035398 | 0.040265 | 0.042478 | 0.230973 | 0.19292 | 0.115044 | 0.082301 | 0.082301 | 0.044248 | 0 | 0.004351 | 0.169277 | 3,320 | 116 | 84 | 28.62069 | 0.815083 | 0.087952 | 0 | 0.134146 | 0 | 0 | 0.127405 | 0.007963 | 0 | 0 | 0 | 0.008621 | 0 | 1 | 0.085366 | false | 0 | 0.109756 | 0 | 0.317073 | 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 |
4284396ea1fd88ed33820f0870333abd8149c2de | 2,213 | py | Python | cocotbext/spi/devices/TI/DRV8304.py | eoshea/cocotbext-spi | 9b610ca27945e22e168da5774cab8051304ea90f | [
"MIT"
] | 2 | 2021-08-13T20:10:41.000Z | 2022-03-09T19:24:24.000Z | cocotbext/spi/devices/TI/DRV8304.py | eoshea/cocotbext-spi | 9b610ca27945e22e168da5774cab8051304ea90f | [
"MIT"
] | 3 | 2021-08-23T15:34:00.000Z | 2022-01-18T19:27:26.000Z | cocotbext/spi/devices/TI/DRV8304.py | eoshea/cocotbext-spi | 9b610ca27945e22e168da5774cab8051304ea90f | [
"MIT"
] | 2 | 2021-11-12T12:47:45.000Z | 2021-11-18T10:35:43.000Z |
import cocotb
from cocotb.triggers import FallingEdge, RisingEdge, First, Timer, Event
from ... import SpiSlaveBase, SpiConfig, SpiFrameError, SpiFrameTimeout
class DRV8304(SpiSlaveBase):
def __init__(self, signals):
self._config = SpiConfig(
word_width=16,
cpol=False,
... | 30.315068 | 89 | 0.589245 | 246 | 2,213 | 5.142276 | 0.45122 | 0.06166 | 0.047431 | 0.03083 | 0.118577 | 0.118577 | 0.118577 | 0.118577 | 0.118577 | 0.118577 | 0 | 0.094415 | 0.32038 | 2,213 | 72 | 90 | 30.736111 | 0.746676 | 0.033891 | 0 | 0.074074 | 0 | 0 | 0.11158 | 0.014065 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0.018519 | 0.055556 | 0 | 0.148148 | 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 |
4289d7f6e86034585cd9c9cf37666cc58aab806e | 540 | py | Python | manage.py | Kenneth-joseph/Blogs | b6c508d36cdf2f874c233485003021d10567de7b | [
"Unlicense"
] | null | null | null | manage.py | Kenneth-joseph/Blogs | b6c508d36cdf2f874c233485003021d10567de7b | [
"Unlicense"
] | null | null | null | manage.py | Kenneth-joseph/Blogs | b6c508d36cdf2f874c233485003021d10567de7b | [
"Unlicense"
] | 1 | 2021-11-17T11:03:08.000Z | 2021-11-17T11:03:08.000Z | from app import create_app,db
from flask_script import Manager,Server
from app.models import User,Comment,Blog
from flask_migrate import Migrate, MigrateCommand
#manage.shell
# Creating app instance
app = create_app('production')
migrate = Migrate(app,db)
manager = Manager(app)
manager.add_command('db',MigrateComm... | 24.545455 | 72 | 0.766667 | 77 | 540 | 5.155844 | 0.415584 | 0.035264 | 0.085642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122222 | 540 | 22 | 73 | 24.545455 | 0.837553 | 0.062963 | 0 | 0 | 0 | 0 | 0.051485 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.266667 | 0.066667 | 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 |
428b51da1bd2717103e2c7bb03266fb5b3a3af22 | 7,452 | py | Python | members/views.py | leonrenkema/makerspaceleiden-crm | 36ea20f5b9e263e8f30b1831ae4a2b1d5b926d3c | [
"Apache-2.0"
] | 5 | 2019-03-12T21:38:32.000Z | 2021-11-06T15:26:56.000Z | members/views.py | leonrenkema/makerspaceleiden-crm | 36ea20f5b9e263e8f30b1831ae4a2b1d5b926d3c | [
"Apache-2.0"
] | 33 | 2019-01-21T15:54:50.000Z | 2021-05-18T17:54:52.000Z | members/views.py | leonrenkema/makerspaceleiden-crm | 36ea20f5b9e263e8f30b1831ae4a2b1d5b926d3c | [
"Apache-2.0"
] | 5 | 2019-01-21T15:47:26.000Z | 2021-09-22T07:14:34.000Z | from django.shortcuts import render, redirect
from django.contrib.auth.forms import PasswordResetForm
from django.core.mail import EmailMessage
from django.template import loader
from django.http import HttpResponse
from django.contrib.auth.decorators import login_required
from django.conf import settings
from django... | 35.485714 | 118 | 0.554616 | 761 | 7,452 | 5.303548 | 0.289093 | 0.040882 | 0.037166 | 0.044599 | 0.299306 | 0.251239 | 0.155847 | 0.115213 | 0.096878 | 0.072101 | 0 | 0.004149 | 0.353194 | 7,452 | 209 | 119 | 35.655502 | 0.833195 | 0.039989 | 0 | 0.221557 | 0 | 0 | 0.152737 | 0.01778 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023952 | false | 0.017964 | 0.107784 | 0 | 0.203593 | 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 |
428b5eca1188b78557324447b1ddda687b1af59c | 3,911 | py | Python | test_scripts/ns_instance/duan/service/vfc/nfvo/lcm/lcm/ns/views/deprecated/create_ns_view.py | lremember/VFC | 837559db1396091811382359100bfc60e1aab5b2 | [
"MIT"
] | 1 | 2019-10-10T00:52:18.000Z | 2019-10-10T00:52:18.000Z | test_scripts/ns_instance/duan/service/vfc/nfvo/lcm/lcm/ns/views/deprecated/create_ns_view.py | lremember/VFC-Files | 837559db1396091811382359100bfc60e1aab5b2 | [
"MIT"
] | null | null | null | test_scripts/ns_instance/duan/service/vfc/nfvo/lcm/lcm/ns/views/deprecated/create_ns_view.py | lremember/VFC-Files | 837559db1396091811382359100bfc60e1aab5b2 | [
"MIT"
] | null | null | null | # Copyright 2018 ZTE Corporation.
#
# 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 ... | 41.168421 | 92 | 0.692662 | 455 | 3,911 | 5.723077 | 0.362637 | 0.021505 | 0.029954 | 0.038402 | 0.348694 | 0.214286 | 0.204685 | 0.204685 | 0.148233 | 0.148233 | 0 | 0.012443 | 0.219126 | 3,911 | 94 | 93 | 41.606383 | 0.84021 | 0.142419 | 0 | 0.164384 | 0 | 0 | 0.101497 | 0.032934 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027397 | false | 0 | 0.191781 | 0 | 0.273973 | 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 |
428be7b7fc4fa9ed70e9c54b4441f37388d4cbd4 | 3,304 | py | Python | parse_training_input.py | alexpotter1/vulndetect-ml | 338fbf919b24520f9107a1604d1c8af48aadff76 | [
"MIT"
] | 1 | 2020-02-25T01:53:23.000Z | 2020-02-25T01:53:23.000Z | parse_training_input.py | alexpotter1/vulndetect-ml | 338fbf919b24520f9107a1604d1c8af48aadff76 | [
"MIT"
] | null | null | null | parse_training_input.py | alexpotter1/vulndetect-ml | 338fbf919b24520f9107a1604d1c8af48aadff76 | [
"MIT"
] | 1 | 2020-10-24T15:30:38.000Z | 2020-10-24T15:30:38.000Z | #!/usr/bin/env python3
import javalang
def isPrimitive(obj):
return not hasattr(obj, '__dict__')
def extract_bad_function_from_text(src):
return extract_function_from_text(src, criterion='bad')
def extract_function_from_text(src, criterion='bad'):
def recursive_find_deepest_child_position(node_body, ... | 33.714286 | 121 | 0.59776 | 402 | 3,304 | 4.644279 | 0.263682 | 0.080343 | 0.041243 | 0.061061 | 0.37654 | 0.242635 | 0.221746 | 0.177825 | 0.133905 | 0.133905 | 0 | 0.004533 | 0.332324 | 3,304 | 97 | 122 | 34.061856 | 0.841795 | 0.068099 | 0 | 0.227273 | 0 | 0 | 0.017572 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.015152 | 0.045455 | 0.242424 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
428d613a4c439197af5e225dec64ebdd98da7d00 | 1,685 | py | Python | setup.py | andrewwhitehead/django-oidc-rp | 233f1daeef96dbe84ecbb37fa31393c84f9c2805 | [
"MIT"
] | 20 | 2018-04-16T13:17:35.000Z | 2021-06-05T00:08:33.000Z | setup.py | andrewwhitehead/django-oidc-rp | 233f1daeef96dbe84ecbb37fa31393c84f9c2805 | [
"MIT"
] | 9 | 2018-07-20T18:19:13.000Z | 2021-12-22T08:57:18.000Z | setup.py | bcgov/django-oidc-rp | 50e6fa143e61b04849b4c66beef078be0d7669de | [
"MIT"
] | 21 | 2018-07-10T16:05:44.000Z | 2022-01-24T05:57:09.000Z | # -*- coding: utf-8 -*-
import codecs
from os.path import abspath
from os.path import dirname
from os.path import join
from setuptools import find_packages
from setuptools import setup
import oidc_rp
def read_relative_file(filename):
""" Returns contents of the given file, whose path is supposed relative to thi... | 31.792453 | 100 | 0.648071 | 196 | 1,685 | 5.459184 | 0.571429 | 0.106542 | 0.140187 | 0.121495 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015221 | 0.220178 | 1,685 | 52 | 101 | 32.403846 | 0.799087 | 0.063501 | 0 | 0.045455 | 0 | 0 | 0.44303 | 0.013367 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0 | 0.159091 | 0 | 0.204545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
428eac96b1905cf94fc5b1f167e60c8c46762f48 | 16,931 | py | Python | lib/place_model.py | ihaeyong/drama-graph | 60c3c216cd74bb19efd6baf836f6c7c2b42b764f | [
"MIT"
] | 3 | 2021-04-28T07:19:39.000Z | 2022-03-07T09:34:19.000Z | lib/place_model.py | ihaeyong/drama-graph | 60c3c216cd74bb19efd6baf836f6c7c2b42b764f | [
"MIT"
] | 18 | 2020-08-24T12:40:38.000Z | 2022-03-12T00:47:14.000Z | lib/place_model.py | ihaeyong/drama-graph | 60c3c216cd74bb19efd6baf836f6c7c2b42b764f | [
"MIT"
] | 1 | 2020-10-15T10:09:20.000Z | 2020-10-15T10:09:20.000Z | import torch
import torch.nn as nn
from torchvision.datasets.vision import VisionDataset
from PIL import Image
import os, sys, math
import os.path
import torch
import json
import torch.utils.model_zoo as model_zoo
from Yolo_v2_pytorch.src.utils import *
from Yolo_v2_pytorch.src.yolo_net import Yolo
from Yolo_v2_pytorc... | 36.647186 | 126 | 0.631268 | 2,372 | 16,931 | 4.343592 | 0.201096 | 0.011065 | 0.011744 | 0.00825 | 0.194506 | 0.129865 | 0.100941 | 0.077841 | 0.058235 | 0.04523 | 0 | 0.030426 | 0.242927 | 16,931 | 461 | 127 | 36.726681 | 0.773366 | 0.24842 | 0 | 0.099237 | 0 | 0 | 0.038626 | 0 | 0 | 0 | 0 | 0 | 0.007634 | 1 | 0.122137 | false | 0 | 0.064886 | 0.007634 | 0.29771 | 0.003817 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
428f4631d1d991fd823deb6aae84c7555b191363 | 9,127 | py | Python | ch01/challenge.py | laszlokiraly/LearningAlgorithms | 032a3cc409546619cf41220821d081cde54bbcce | [
"MIT"
] | null | null | null | ch01/challenge.py | laszlokiraly/LearningAlgorithms | 032a3cc409546619cf41220821d081cde54bbcce | [
"MIT"
] | null | null | null | ch01/challenge.py | laszlokiraly/LearningAlgorithms | 032a3cc409546619cf41220821d081cde54bbcce | [
"MIT"
] | null | null | null | """
Challenge Exercises for Chapter 1.
"""
import random
import timeit
from algs.table import DataTable, ExerciseNum, caption
from algs.counting import RecordedItem
def partition(A, lo, hi, idx):
"""
Partition using A[idx] as value. Note lo and hi are INCLUSIVE on both
ends and idx must be valid index. C... | 29.066879 | 102 | 0.573573 | 1,332 | 9,127 | 3.826577 | 0.198949 | 0.011772 | 0.008829 | 0.005886 | 0.332549 | 0.241711 | 0.202864 | 0.17422 | 0.17422 | 0.153424 | 0 | 0.030078 | 0.293306 | 9,127 | 313 | 103 | 29.159744 | 0.760155 | 0.207516 | 0 | 0.299065 | 0 | 0 | 0.153317 | 0.03138 | 0 | 0 | 0 | 0 | 0.014019 | 1 | 0.065421 | false | 0 | 0.070093 | 0 | 0.219626 | 0.046729 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
42914f6fbdf21a73ae8be4659f5689614360b711 | 3,131 | py | Python | tensorflow_transform/test_case_test.py | LaudateCorpus1/transform | afee306046b8f656355b0170793ee64423f30e23 | [
"Apache-2.0"
] | 970 | 2017-02-10T04:33:46.000Z | 2022-03-26T08:11:20.000Z | tensorflow_transform/test_case_test.py | LaudateCorpus1/transform | afee306046b8f656355b0170793ee64423f30e23 | [
"Apache-2.0"
] | 216 | 2017-02-23T04:50:59.000Z | 2022-03-31T13:52:57.000Z | tensorflow_transform/test_case_test.py | LaudateCorpus1/transform | afee306046b8f656355b0170793ee64423f30e23 | [
"Apache-2.0"
] | 238 | 2017-02-17T16:30:55.000Z | 2022-03-03T20:10:25.000Z | # Copyright 2017 Google Inc. 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 law or a... | 36.835294 | 79 | 0.544874 | 391 | 3,131 | 4.15601 | 0.324808 | 0.014769 | 0.014769 | 0.017231 | 0.272 | 0.241231 | 0.16 | 0.056615 | 0.056615 | 0.056615 | 0 | 0.042928 | 0.293197 | 3,131 | 84 | 80 | 37.27381 | 0.691369 | 0.195465 | 0 | 0.169492 | 0 | 0 | 0.137145 | 0 | 0 | 0 | 0 | 0 | 0.220339 | 1 | 0.067797 | false | 0 | 0.050847 | 0 | 0.135593 | 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 |
42934dc5c7b47e76f47a4a49a47981e068b48692 | 1,417 | py | Python | chmp/src/chmp/torch_utils/_test_bayes.py | chmp/misc-exp | 2edc2ed598eb59f4ccb426e7a5c1a23343a6974b | [
"MIT"
] | 6 | 2017-10-31T20:54:37.000Z | 2020-10-23T19:03:00.000Z | chmp/src/chmp/torch_utils/_test_bayes.py | chmp/misc-exp | 2edc2ed598eb59f4ccb426e7a5c1a23343a6974b | [
"MIT"
] | 7 | 2020-03-24T16:14:34.000Z | 2021-03-18T20:51:37.000Z | chmp/src/chmp/torch_utils/_test_bayes.py | chmp/misc-exp | 2edc2ed598eb59f4ccb426e7a5c1a23343a6974b | [
"MIT"
] | 1 | 2019-07-29T07:55:49.000Z | 2019-07-29T07:55:49.000Z | import torch
import pytest
# NOTE: also registers the KL divergence
from chmp.torch_utils import NormalModule, WeightsHS, fixed
def test_kl_divergence__gamma__log_normal():
p = torch.distributions.LogNormal(torch.zeros(2), torch.ones(2))
q = torch.distributions.Gamma(torch.ones(2), torch.ones(2))
torch.... | 28.918367 | 73 | 0.666902 | 202 | 1,417 | 4.529703 | 0.326733 | 0.068852 | 0.048087 | 0.052459 | 0.314754 | 0.263388 | 0.263388 | 0.2 | 0.2 | 0.2 | 0 | 0.03599 | 0.176429 | 1,417 | 48 | 74 | 29.520833 | 0.748072 | 0.026817 | 0 | 0.068966 | 0 | 0 | 0.010167 | 0 | 0 | 0 | 0 | 0 | 0.241379 | 1 | 0.137931 | false | 0 | 0.103448 | 0 | 0.241379 | 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 |
4297be6e9ea671a123810cad1577476fb18a42d0 | 5,293 | py | Python | src/graphnet/models/detector/icecube.py | kaareendrup/gnn-reco | 21f4e36ef17c765a04cde0b2e34d5f802a988055 | [
"Apache-2.0"
] | null | null | null | src/graphnet/models/detector/icecube.py | kaareendrup/gnn-reco | 21f4e36ef17c765a04cde0b2e34d5f802a988055 | [
"Apache-2.0"
] | null | null | null | src/graphnet/models/detector/icecube.py | kaareendrup/gnn-reco | 21f4e36ef17c765a04cde0b2e34d5f802a988055 | [
"Apache-2.0"
] | null | null | null | import torch
from torch_geometric.data import Data
from graphnet.components.pool import group_pulses_to_dom, group_pulses_to_pmt, sum_pool_and_distribute
from graphnet.data.constants import FEATURES
from graphnet.models.detector.detector import Detector
class IceCube86(Detector):
"""`Detector` class for IceCube-... | 33.713376 | 128 | 0.575477 | 711 | 5,293 | 4.087201 | 0.195499 | 0.091191 | 0.067103 | 0.05265 | 0.628355 | 0.56022 | 0.502065 | 0.496559 | 0.45905 | 0.451824 | 0 | 0.051684 | 0.276214 | 5,293 | 157 | 129 | 33.713376 | 0.706865 | 0.289061 | 0 | 0.4875 | 0 | 0 | 0.01522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.0625 | 0.0125 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
429945dde445e0205f0ceeefa695def22a8e1795 | 450 | py | Python | tests/routes_parsing/test1.py | hellojoechip/bambleweeny | ef65f574081eb169aef5a2f7363c3f8ba9ebf028 | [
"MIT"
] | 22 | 2018-09-30T12:08:09.000Z | 2020-11-18T06:32:01.000Z | tests/routes_parsing/test1.py | hellojoechip/bambleweeny | ef65f574081eb169aef5a2f7363c3f8ba9ebf028 | [
"MIT"
] | 34 | 2018-09-13T14:54:21.000Z | 2020-03-26T18:26:26.000Z | tests/routes_parsing/test1.py | hellojoechip/bambleweeny | ef65f574081eb169aef5a2f7363c3f8ba9ebf028 | [
"MIT"
] | 17 | 2018-10-07T15:41:50.000Z | 2021-12-10T10:29:02.000Z | import re
t1 = 'Data !@[value1] and also !@[system:uptime] testing.'
print("Content: " + t1)
if re.search('!@\[[_a-zA-Z0-9:]*\]', t1):
print("YES")
else:
print("NO")
o = re.sub('!@\[[_a-zA-Z0-9:]*\]', '_B9yPrsE_\\g<0>_B9yPrsE_', t1)
o2 = o.split("_B9yPrsE_")
for i in o2:
if i.startswith("!@["):
... | 21.428571 | 66 | 0.482222 | 65 | 450 | 3.215385 | 0.569231 | 0.028708 | 0.047847 | 0.057416 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048433 | 0.22 | 450 | 20 | 67 | 22.5 | 0.547009 | 0 | 0 | 0.133333 | 0 | 0 | 0.364444 | 0.053333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
429a7f070688a75a8c4a4c449d4d3474a9a7088a | 5,430 | py | Python | internal/notes/builtin-SAVE/packages/suite-sparse/package.py | HPCToolkit/hpctest | 5ff4455582bf39e75530a31badcf6142081b386b | [
"BSD-3-Clause"
] | 1 | 2019-01-17T20:07:19.000Z | 2019-01-17T20:07:19.000Z | internal/notes/builtin-SAVE/packages/suite-sparse/package.py | HPCToolkit/hpctest | 5ff4455582bf39e75530a31badcf6142081b386b | [
"BSD-3-Clause"
] | null | null | null | internal/notes/builtin-SAVE/packages/suite-sparse/package.py | HPCToolkit/hpctest | 5ff4455582bf39e75530a31badcf6142081b386b | [
"BSD-3-Clause"
] | 2 | 2019-08-06T18:13:57.000Z | 2021-11-05T18:19:49.000Z | ##############################################################################
# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | 44.876033 | 122 | 0.618416 | 717 | 5,430 | 4.631799 | 0.39749 | 0.006625 | 0.00542 | 0.012647 | 0.12165 | 0.052996 | 0.052996 | 0 | 0 | 0 | 0 | 0.03816 | 0.247145 | 5,430 | 120 | 123 | 45.25 | 0.774217 | 0.461878 | 0 | 0 | 0 | 0.02 | 0.30903 | 0.065877 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0 | 0.02 | 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 |
429b606cd5d96a46f963693074a289b595badea4 | 4,580 | py | Python | tick/array/serialize.py | andro2157/tick | d22d0e70c8bb2d5b232ffa7b97426010c2328edc | [
"BSD-3-Clause"
] | null | null | null | tick/array/serialize.py | andro2157/tick | d22d0e70c8bb2d5b232ffa7b97426010c2328edc | [
"BSD-3-Clause"
] | null | null | null | tick/array/serialize.py | andro2157/tick | d22d0e70c8bb2d5b232ffa7b97426010c2328edc | [
"BSD-3-Clause"
] | null | null | null | # License: BSD 3 clause
import os
import numpy as np
import scipy
from tick.array.build.array import (
tick_float_array_to_file,
tick_float_array2d_to_file,
tick_float_sparse2d_to_file,
tick_double_array_to_file,
tick_double_array2d_to_file,
tick_double_sparse2d_to_file,
tick_float_array_... | 32.94964 | 76 | 0.613974 | 574 | 4,580 | 4.700348 | 0.189895 | 0.072276 | 0.084507 | 0.068199 | 0.728688 | 0.617494 | 0.554485 | 0.546331 | 0.546331 | 0.519644 | 0 | 0.02017 | 0.307205 | 4,580 | 138 | 77 | 33.188406 | 0.830129 | 0.202402 | 0 | 0.505747 | 0 | 0 | 0.158163 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022989 | false | 0 | 0.045977 | 0 | 0.091954 | 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 |
429beefc88e6c9cf72106405ad5b6e321025f9d6 | 20,658 | py | Python | views/menuVisualizacaoGeral.py | iOsnaaente/Tracker-solar-Supervisorio | 9790c34f0d9df283bc1b92f79b2807875dbcfe3e | [
"MIT"
] | 2 | 2022-01-29T21:33:12.000Z | 2022-02-01T12:41:35.000Z | views/menuVisualizacaoGeral.py | iOsnaaente/Tracker-solar-Supervisorio | 9790c34f0d9df283bc1b92f79b2807875dbcfe3e | [
"MIT"
] | null | null | null | views/menuVisualizacaoGeral.py | iOsnaaente/Tracker-solar-Supervisorio | 9790c34f0d9df283bc1b92f79b2807875dbcfe3e | [
"MIT"
] | null | null | null | import dearpygui.dearpygui as dpg
import datetime as dt
import math
from registry import *
SUN_DATA.update_date()
# FUNCTIONS
def get_semi_circle_points( center, radius, angle_i, angle_f, segments = 360, closed = False ):
points_close = [[ center[0], center[1]-radius ] , center, [ c... | 70.989691 | 267 | 0.554265 | 2,919 | 20,658 | 3.704693 | 0.120589 | 0.027187 | 0.03255 | 0.016645 | 0.625301 | 0.549658 | 0.480026 | 0.415757 | 0.387276 | 0.341594 | 0 | 0.058866 | 0.322393 | 20,658 | 291 | 268 | 70.989691 | 0.713673 | 0.064672 | 0 | 0.209302 | 0 | 0 | 0.053156 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032558 | false | 0.004651 | 0.018605 | 0 | 0.060465 | 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 |