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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
57476587984e17ece720d64d289aa21890dba64a | 3,520 | py | Python | ReportGenerator.py | taarruunnnn/VAPT-Report-Generator-Vulnerability | 8d618c7ddac4f6fe0cedd9fa39ff61805e06fa38 | [
"MIT"
] | 1 | 2020-11-30T18:09:40.000Z | 2020-11-30T18:09:40.000Z | ReportGenerator.py | taarruunnnn/VAPT-Report-Generator-Vulnerability | 8d618c7ddac4f6fe0cedd9fa39ff61805e06fa38 | [
"MIT"
] | null | null | null | ReportGenerator.py | taarruunnnn/VAPT-Report-Generator-Vulnerability | 8d618c7ddac4f6fe0cedd9fa39ff61805e06fa38 | [
"MIT"
] | 1 | 2020-09-16T20:51:18.000Z | 2020-09-16T20:51:18.000Z | import os
from docx import Document
from docx.shared import Inches
from docx import section
from docx.enum.text import WD_ALIGN_PARAGRAPH
from docx.shared import Pt
from docx.shared import Cm
from docx.shared import RGBColor
import docx
class Print_document():
def start_doc(self):
self.docume... | 31.711712 | 92 | 0.609091 | 432 | 3,520 | 4.877315 | 0.266204 | 0.19364 | 0.121025 | 0.10916 | 0.321785 | 0.197437 | 0.093972 | 0 | 0 | 0 | 0 | 0.018039 | 0.275568 | 3,520 | 111 | 93 | 31.711712 | 0.808235 | 0 | 0 | 0.070588 | 0 | 0 | 0.093814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.105882 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5750825ae1de9236544f8dff0657979e541dfed6 | 764 | py | Python | Season 06 - Files in Python/Episode 02 - Copying Files.py/Episode 02 - Copying Files.py | Pythobit/Python-tutorial | b0743eaa9c237c3578131ead1b3f2c295f11b7ee | [
"MIT"
] | 3 | 2021-02-19T18:33:00.000Z | 2021-08-03T14:56:50.000Z | Season 06 - Files in Python/Episode 02 - Copying Files.py/Episode 02 - Copying Files.py | barawalojas/Python-tutorial | 3f4b2b073e421888b3d62ff634658317d9abcb9b | [
"MIT"
] | 1 | 2021-07-10T14:37:57.000Z | 2021-07-20T09:51:39.000Z | Season 06 - Files in Python/Episode 02 - Copying Files.py/Episode 02 - Copying Files.py | barawalojas/Python-tutorial | 3f4b2b073e421888b3d62ff634658317d9abcb9b | [
"MIT"
] | 1 | 2021-08-02T05:39:38.000Z | 2021-08-02T05:39:38.000Z | # Copying files
# Ask user for a list of 3 friends.
# for each friend, we'll tell user whether they're nearby.
# for each nearby friend, we'll save their name to `nearby_friends.txt`.
friends = input('Enter three friends name(separated by commas): ').split(',')
people = open('people.txt', 'r')
people_nearby = [line.s... | 27.285714 | 77 | 0.743455 | 119 | 764 | 4.605042 | 0.462185 | 0.142336 | 0.093066 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001517 | 0.137435 | 764 | 27 | 78 | 28.296296 | 0.830046 | 0.27356 | 0 | 0 | 0 | 0 | 0.232601 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5750d5afb4b68c06b08670b53610fc887297a148 | 722 | py | Python | beginner_contest/167/C.py | FGtatsuro/myatcoder | 25a3123be6a6311e7d1c25394987de3e35575ff4 | [
"MIT"
] | null | null | null | beginner_contest/167/C.py | FGtatsuro/myatcoder | 25a3123be6a6311e7d1c25394987de3e35575ff4 | [
"MIT"
] | null | null | null | beginner_contest/167/C.py | FGtatsuro/myatcoder | 25a3123be6a6311e7d1c25394987de3e35575ff4 | [
"MIT"
] | null | null | null | import sys
input = sys.stdin.readline
sys.setrecursionlimit(10 ** 7)
n, m, x = map(int, input().split())
ca = [0] * n
ca_sum = [0] * (m+1)
for i in range(n):
ca[i] = list(map(int, input().split()))
for j in range(m+1):
ca_sum[j] += ca[i][j]
ans = 10 ** 10
for i in range(2 ** n):
tmp = 0
tmp_ca... | 21.235294 | 56 | 0.49723 | 128 | 722 | 2.71875 | 0.34375 | 0.100575 | 0.091954 | 0.091954 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051335 | 0.325485 | 722 | 33 | 57 | 21.878788 | 0.663244 | 0 | 0 | 0 | 0 | 0 | 0.006925 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033333 | 0 | 0.033333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
575730cc1be427336b55d40ef3a3e2821b465a72 | 1,210 | py | Python | Unit 7/Ai bot/test bots/SlightlySmartSue.py | KevinBoxuGao/ICS3UI | 2091a7c0276b888dd88f2063e6acd6e7ff7fb6fa | [
"MIT"
] | null | null | null | Unit 7/Ai bot/test bots/SlightlySmartSue.py | KevinBoxuGao/ICS3UI | 2091a7c0276b888dd88f2063e6acd6e7ff7fb6fa | [
"MIT"
] | null | null | null | Unit 7/Ai bot/test bots/SlightlySmartSue.py | KevinBoxuGao/ICS3UI | 2091a7c0276b888dd88f2063e6acd6e7ff7fb6fa | [
"MIT"
] | 1 | 2020-03-09T16:22:33.000Z | 2020-03-09T16:22:33.000Z | from random import *
#STRATEGY SUMMARY: DON'T DUCK IF THE OPPONENT HAS NO SNOWBALLS. OTHERWISE, PICK RANDOMLY.
def getMove( myScore, mySnowballs, myDucksUsed, myMovesSoFar,
oppScore, oppSnowballs, oppDucksUsed, oppMovesSoFar ):
if mySnowballs == 10: #I have 10 snowballs, so I must throw
re... | 31.842105 | 99 | 0.565289 | 139 | 1,210 | 4.920863 | 0.395683 | 0.02924 | 0.030702 | 0.02924 | 0.035088 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011321 | 0.342975 | 1,210 | 37 | 100 | 32.702703 | 0.849057 | 0.356198 | 0 | 0.4 | 0 | 0 | 0.083117 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 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 |
57580cabba2c7dce9e5d8666af96b5e694af9738 | 5,370 | py | Python | pysoa/test/plan/grammar/directives/expects_values.py | zetahernandez/pysoa | 006e55ba877196a42c64f2ff453583d366082d55 | [
"Apache-2.0"
] | 91 | 2017-05-08T22:41:33.000Z | 2022-02-09T11:37:07.000Z | pysoa/test/plan/grammar/directives/expects_values.py | zetahernandez/pysoa | 006e55ba877196a42c64f2ff453583d366082d55 | [
"Apache-2.0"
] | 63 | 2017-06-14T20:08:49.000Z | 2021-06-16T23:08:25.000Z | pysoa/test/plan/grammar/directives/expects_values.py | zetahernandez/pysoa | 006e55ba877196a42c64f2ff453583d366082d55 | [
"Apache-2.0"
] | 26 | 2017-10-13T23:23:13.000Z | 2022-01-11T16:58:17.000Z | """
Expect action directives
"""
from __future__ import (
absolute_import,
unicode_literals,
)
from pyparsing import (
CaselessLiteral,
LineEnd,
Literal,
Optional,
Suppress,
)
from pysoa.test.plan.grammar.assertions import (
assert_not_expected,
assert_not_present,
assert_subse... | 26.716418 | 115 | 0.60298 | 503 | 5,370 | 6.176938 | 0.214712 | 0.038622 | 0.036048 | 0.021886 | 0.550048 | 0.473125 | 0.420985 | 0.402317 | 0.348246 | 0.348246 | 0 | 0 | 0.309125 | 5,370 | 200 | 116 | 26.85 | 0.837466 | 0.096834 | 0 | 0.545455 | 0 | 0 | 0.065409 | 0.004612 | 0 | 0 | 0 | 0 | 0.058442 | 1 | 0.077922 | false | 0 | 0.045455 | 0.051948 | 0.201299 | 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 |
575a4a3127b8298acd5fe22aa043d391fe755667 | 1,821 | py | Python | tests/test_qml.py | phil65/PrettyQt | 26327670c46caa039c9bd15cb17a35ef5ad72e6c | [
"MIT"
] | 7 | 2019-05-01T01:34:36.000Z | 2022-03-08T02:24:14.000Z | tests/test_qml.py | phil65/PrettyQt | 26327670c46caa039c9bd15cb17a35ef5ad72e6c | [
"MIT"
] | 141 | 2019-04-16T11:22:01.000Z | 2021-04-14T15:12:36.000Z | tests/test_qml.py | phil65/PrettyQt | 26327670c46caa039c9bd15cb17a35ef5ad72e6c | [
"MIT"
] | 5 | 2019-04-17T11:48:19.000Z | 2021-11-21T10:30:19.000Z | """Tests for `prettyqt` package."""
import pathlib
import pytest
from prettyqt import core, qml
from prettyqt.utils import InvalidParamError
# def test_jsvalue():
# val = qml.JSValue(2)
# val["test"] = 1
# assert val["test"].toInt() == 1
# assert "test" in val
# assert val.get_value() == 2
de... | 24.945205 | 59 | 0.641406 | 235 | 1,821 | 4.821277 | 0.319149 | 0.03707 | 0.068844 | 0.060018 | 0.19241 | 0.124448 | 0 | 0 | 0 | 0 | 0 | 0.011947 | 0.218561 | 1,821 | 72 | 60 | 25.291667 | 0.784259 | 0.124657 | 0 | 0.081633 | 0 | 0 | 0.053729 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.102041 | false | 0.040816 | 0.122449 | 0 | 0.22449 | 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 |
9386838c937de37405273fac5771d31ccf1a0479 | 2,550 | py | Python | demo.py | HsienYu/tree_demo | aa2fa6c016b3ea5c1e768baa8ce4ea319c727bfc | [
"Artistic-2.0"
] | null | null | null | demo.py | HsienYu/tree_demo | aa2fa6c016b3ea5c1e768baa8ce4ea319c727bfc | [
"Artistic-2.0"
] | null | null | null | demo.py | HsienYu/tree_demo | aa2fa6c016b3ea5c1e768baa8ce4ea319c727bfc | [
"Artistic-2.0"
] | null | null | null | # Simple test for NeoPixels on Raspberry Pi
import time
import board
import neopixel
# Choose an open pin connected to the Data In of the NeoPixel strip, i.e. board.D18
# NeoPixels must be connected to D10, D12, D18 or D21 to work.
pixel_pin = board.D18
# The number of NeoPixels
num_pixels = 30
# The order of the p... | 25.757576 | 92 | 0.533333 | 376 | 2,550 | 3.558511 | 0.329787 | 0.041854 | 0.037369 | 0.041106 | 0.13154 | 0.110613 | 0 | 0 | 0 | 0 | 0 | 0.069113 | 0.358824 | 2,550 | 98 | 93 | 26.020408 | 0.749235 | 0.304314 | 0 | 0.118644 | 0 | 0 | 0.025685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067797 | false | 0 | 0.050847 | 0 | 0.135593 | 0.033898 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
93881978c162edde4ca5dd970ae7fc5d1d4dfecc | 1,861 | py | Python | rptk/query/__init__.py | wolcomm/rptk | fe6c1b597741ff14e4c89519458bb0950f0aa955 | [
"Apache-2.0"
] | 15 | 2017-11-30T01:28:11.000Z | 2021-08-12T09:17:36.000Z | rptk/query/__init__.py | wolcomm/rptk | fe6c1b597741ff14e4c89519458bb0950f0aa955 | [
"Apache-2.0"
] | 71 | 2018-06-22T09:54:50.000Z | 2020-10-21T07:10:54.000Z | rptk/query/__init__.py | wolcomm/rptk | fe6c1b597741ff14e4c89519458bb0950f0aa955 | [
"Apache-2.0"
] | 2 | 2019-08-31T20:45:19.000Z | 2019-10-02T18:26:58.000Z | # Copyright (c) 2018 Workonline Communications (Pty) Ltd. All rights reserved.
#
# The contents of this file are licensed under the Apache License version 2.0
# (the "License"); you may not use this file except in compliance with the
# License.
#
# Unless required by applicable law or agreed to in writing, software
# d... | 27.776119 | 79 | 0.667383 | 239 | 1,861 | 5.079498 | 0.531381 | 0.041186 | 0.024712 | 0.032949 | 0.047776 | 0.047776 | 0 | 0 | 0 | 0 | 0 | 0.004237 | 0.239119 | 1,861 | 66 | 80 | 28.19697 | 0.853107 | 0.431488 | 0 | 0.205882 | 0 | 0 | 0.012846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147059 | false | 0 | 0.088235 | 0 | 0.382353 | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9389cb7a39d34434b205d05068e576faba98ddc7 | 1,639 | py | Python | legacy/tests/test_complete_tdf.py | solar464/TDF_deterministic_encryption | ff9dceacb37ce7727a8205cc72a4d928d37cce6f | [
"MIT"
] | null | null | null | legacy/tests/test_complete_tdf.py | solar464/TDF_deterministic_encryption | ff9dceacb37ce7727a8205cc72a4d928d37cce6f | [
"MIT"
] | null | null | null | legacy/tests/test_complete_tdf.py | solar464/TDF_deterministic_encryption | ff9dceacb37ce7727a8205cc72a4d928d37cce6f | [
"MIT"
] | null | null | null | import unittest
import pickle
from array import array
import complete_tdf
from floodberry.floodberry_ed25519 import GE25519
from tdf_strucs import TDFMatrix, TDFError
from complete_tdf import CTDFCodec as Codec, CTDFCipherText as CipherText
from utils import int_lst_to_bitarr
TEST_DIR = "legacy/tests/"
PACK_TEST_KEY... | 29.267857 | 73 | 0.700427 | 252 | 1,639 | 4.269841 | 0.281746 | 0.05948 | 0.040892 | 0.055762 | 0.087361 | 0.042751 | 0 | 0 | 0 | 0 | 0 | 0.025602 | 0.18975 | 1,639 | 55 | 74 | 29.8 | 0.784639 | 0.025015 | 0 | 0 | 0 | 0 | 0.055777 | 0.013944 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.111111 | false | 0 | 0.222222 | 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 |
939056f893dc7a63b3b4c5c9d0f8b92f4cb9205c | 7,652 | py | Python | utils/utils_convert2hdf5.py | jiyeonkim127/PSI | 5c525d5304fb756c9314ea3e225bbb180e521b9a | [
"Xnet",
"X11"
] | 138 | 2020-04-18T19:32:12.000Z | 2022-03-31T06:58:33.000Z | utils/utils_convert2hdf5.py | jiyeonkim127/PSI | 5c525d5304fb756c9314ea3e225bbb180e521b9a | [
"Xnet",
"X11"
] | 19 | 2020-04-21T18:24:20.000Z | 2022-03-12T00:25:11.000Z | utils/utils_convert2hdf5.py | jiyeonkim127/PSI | 5c525d5304fb756c9314ea3e225bbb180e521b9a | [
"Xnet",
"X11"
] | 19 | 2020-04-22T01:32:25.000Z | 2022-03-24T02:52:01.000Z | import numpy as np
import scipy.io as sio
import os, glob, sys
import h5py_cache as h5c
sys.path.append('/home/yzhang/workspaces/smpl-env-gen-3d-internal')
sys.path.append('/home/yzhang/workspaces/smpl-env-gen-3d-internal/source')
from batch_gen_hdf5 import BatchGeneratorWithSceneMeshMatfile
import torch
'''
In t... | 49.688312 | 176 | 0.627418 | 1,114 | 7,652 | 4.01526 | 0.137343 | 0.121619 | 0.072435 | 0.071987 | 0.671138 | 0.583501 | 0.501453 | 0.426559 | 0.334898 | 0.262911 | 0 | 0.038189 | 0.18897 | 7,652 | 153 | 177 | 50.013072 | 0.682565 | 0.29012 | 0 | 0.25974 | 0 | 0 | 0.1322 | 0.045703 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.077922 | 0 | 0.077922 | 0.064935 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
93938181b040ac3ac5f94151cbff662943eef747 | 3,324 | py | Python | tests/test_names.py | fabiocaccamo/python-fontbro | 2ed7ef0d3d1ed4d91387278cfb5f7fd63324451b | [
"MIT"
] | 11 | 2021-11-17T23:51:55.000Z | 2022-03-17T20:38:14.000Z | tests/test_names.py | fabiocaccamo/python-fontbro | 2ed7ef0d3d1ed4d91387278cfb5f7fd63324451b | [
"MIT"
] | 4 | 2022-02-21T02:16:06.000Z | 2022-03-28T02:18:16.000Z | tests/test_names.py | fabiocaccamo/python-fontbro | 2ed7ef0d3d1ed4d91387278cfb5f7fd63324451b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from fontbro import Font
from tests import AbstractTestCase
class NamesTestCase(AbstractTestCase):
"""
Test case for the methods related to the font names.
"""
def test_get_name_by_id(self):
font = self._get_font("/Roboto_Mono/static/RobotoMono-Regular.ttf")
... | 38.206897 | 85 | 0.65343 | 404 | 3,324 | 5.054455 | 0.160891 | 0.088149 | 0.052889 | 0.066112 | 0.621939 | 0.580313 | 0.523996 | 0.471107 | 0.432909 | 0.432909 | 0 | 0.003943 | 0.237064 | 3,324 | 86 | 86 | 38.651163 | 0.801262 | 0.038508 | 0 | 0.223881 | 0 | 0 | 0.263373 | 0.12618 | 0 | 0 | 0 | 0 | 0.208955 | 1 | 0.134328 | false | 0 | 0.029851 | 0 | 0.179104 | 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 |
939786f9e786e13e34a09c07c33b9d33a5fb6c2c | 1,273 | py | Python | core-python/Core_Python/file/RemoveTempDirs.py | theumang100/tutorials-1 | 497f54c2adb022c316530319a168fca1c007d4b1 | [
"MIT"
] | 9 | 2020-04-23T05:24:19.000Z | 2022-02-17T16:37:51.000Z | core-python/Core_Python/file/RemoveTempDirs.py | theumang100/tutorials-1 | 497f54c2adb022c316530319a168fca1c007d4b1 | [
"MIT"
] | 5 | 2020-10-01T05:08:37.000Z | 2020-10-12T03:18:10.000Z | core-python/Core_Python/file/RemoveTempDirs.py | theumang100/tutorials-1 | 497f54c2adb022c316530319a168fca1c007d4b1 | [
"MIT"
] | 9 | 2020-04-28T14:06:41.000Z | 2021-10-19T18:32:28.000Z | import os
from pathlib import Path
from shutil import rmtree
# change your parent dir accordingly
try:
directory = "TempDir"
parent_dir = "E:/GitHub/1) Git_Tutorials_Repo_Projects/core-python/Core_Python/"
td1, td2 = "TempA", "TempA"
path = os.path.join(parent_dir, directory)
temp_mul_dirs = os.path... | 47.148148 | 101 | 0.683425 | 207 | 1,273 | 4.140097 | 0.362319 | 0.105018 | 0.073512 | 0.105018 | 0.161027 | 0.161027 | 0.121354 | 0.063011 | 0.063011 | 0.063011 | 0 | 0.007634 | 0.176748 | 1,273 | 27 | 102 | 47.148148 | 0.810115 | 0.069128 | 0 | 0 | 0 | 0 | 0.222362 | 0.065327 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.157895 | 0.157895 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
939b63bdfc91f71662536be6efe59324a01bcaa9 | 587 | py | Python | code/python/echomesh/color/WheelColor_test.py | silky/echomesh | 2fe5a00a79c215b4aca4083e5252fcdcbd0507aa | [
"MIT"
] | 1 | 2019-06-27T11:34:13.000Z | 2019-06-27T11:34:13.000Z | code/python/echomesh/color/WheelColor_test.py | silky/echomesh | 2fe5a00a79c215b4aca4083e5252fcdcbd0507aa | [
"MIT"
] | null | null | null | code/python/echomesh/color/WheelColor_test.py | silky/echomesh | 2fe5a00a79c215b4aca4083e5252fcdcbd0507aa | [
"MIT"
] | null | null | null | from __future__ import absolute_import, division, print_function, unicode_literals
from echomesh.color import WheelColor
from echomesh.util.TestCase import TestCase
EXPECTED = [
[ 0., 1., 0.],
[ 0.3, 0.7, 0. ],
[ 0.6, 0.4, 0. ],
[ 0.9, 0.1, 0. ],
[ 0. , 0.2, 0.8],
[ 0. , 0.5, 0.5],
[ 0. , 0... | 25.521739 | 82 | 0.558773 | 96 | 587 | 3.322917 | 0.416667 | 0.062696 | 0.037618 | 0.025078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126126 | 0.243612 | 587 | 22 | 83 | 26.681818 | 0.592342 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.052632 | false | 0 | 0.157895 | 0 | 0.263158 | 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 |
939e7757a3e174c6114642e42e77179f804882a6 | 779 | py | Python | notebook/demo/src/multifuns.py | marketmodelbrokendown/1 | 587283fd972d0060815dde82a57667e74765c9ae | [
"MIT"
] | 2 | 2019-03-13T15:34:42.000Z | 2019-03-13T15:34:47.000Z | notebook/demo/src/multifuns.py | hervey-su/home | 655b9e7b8180592742a132832795170a00debb47 | [
"MIT"
] | 1 | 2020-11-18T21:55:20.000Z | 2020-11-18T21:55:20.000Z | notebook/demo/src/multifuns.py | marketmodelbrokendown/1 | 587283fd972d0060815dde82a57667e74765c9ae | [
"MIT"
] | null | null | null |
from ctypes import cdll,c_int,c_double,POINTER
_lib = cdll.LoadLibrary('./demo/bin/libmultifuns.dll')
# double dprod(double *x, int n)
def dprod(x):
_lib.dprod.argtypes = [POINTER(c_double), c_int]
_lib.dprod.restype = c_double
n = len(x)
# convert a Python list into a C array by using ctypes
a... | 26.862069 | 59 | 0.658537 | 131 | 779 | 3.748092 | 0.267176 | 0.065173 | 0.04277 | 0.04888 | 0.207739 | 0.207739 | 0.207739 | 0.207739 | 0.207739 | 0.207739 | 0 | 0 | 0.206675 | 779 | 28 | 60 | 27.821429 | 0.794498 | 0.24647 | 0 | 0.111111 | 0 | 0 | 0.046552 | 0.046552 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.055556 | 0 | 0.388889 | 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 |
93a10bd2227db590b05aec0efe907cfefee1e40e | 843 | py | Python | api/nivo_api/cli/database.py | RemiDesgrange/nivo | e13dcd7c00d1fbc41c23d51c9004901d7704b498 | [
"MIT"
] | 2 | 2019-05-07T20:23:59.000Z | 2020-04-26T11:18:38.000Z | api/nivo_api/cli/database.py | RemiDesgrange/nivo | e13dcd7c00d1fbc41c23d51c9004901d7704b498 | [
"MIT"
] | 89 | 2019-08-06T12:47:50.000Z | 2022-03-28T04:03:25.000Z | api/nivo_api/cli/database.py | RemiDesgrange/nivo | e13dcd7c00d1fbc41c23d51c9004901d7704b498 | [
"MIT"
] | 1 | 2020-06-23T10:07:38.000Z | 2020-06-23T10:07:38.000Z | from nivo_api.core.db.connection import metadata, create_database_connections
from sqlalchemy.engine import Engine
from sqlalchemy.exc import ProgrammingError
def is_postgis_installed(engine: Engine) -> bool:
try:
engine.execute("SELECT postgis_version()")
return True
except ProgrammingError:
... | 32.423077 | 85 | 0.720047 | 116 | 843 | 5.043103 | 0.396552 | 0.059829 | 0.112821 | 0.092308 | 0.133333 | 0.099145 | 0.099145 | 0 | 0 | 0 | 0 | 0 | 0.185053 | 843 | 25 | 86 | 33.72 | 0.851528 | 0 | 0 | 0 | 0 | 0 | 0.150652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.157895 | 0 | 0.368421 | 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 |
93a32ef6fddce5cbc92f060b72225c59adf371f7 | 515 | py | Python | sources/pysimplegui/simpleeventloop.py | kantel/pythoncuriosa | 4dfb92b443cbe0acf8d8efa5c54efbf13e834620 | [
"MIT"
] | null | null | null | sources/pysimplegui/simpleeventloop.py | kantel/pythoncuriosa | 4dfb92b443cbe0acf8d8efa5c54efbf13e834620 | [
"MIT"
] | null | null | null | sources/pysimplegui/simpleeventloop.py | kantel/pythoncuriosa | 4dfb92b443cbe0acf8d8efa5c54efbf13e834620 | [
"MIT"
] | null | null | null | import PySimpleGUI as sg
layout = [
[sg.Text("Wie heißt Du?")],
[sg.Input(key = "-INPUT-")],
[sg.Text(size = (40, 1), key = "-OUTPUT-")],
[sg.Button("Okay"), sg.Button("Quit")]
]
window = sg.Window("Hallo PySimpleGUI", layout)
keep_going = True
while keep_going:
event, val... | 24.52381 | 69 | 0.557282 | 62 | 515 | 4.564516 | 0.548387 | 0.095406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007752 | 0.248544 | 515 | 21 | 70 | 24.52381 | 0.723514 | 0 | 0 | 0 | 0 | 0 | 0.160853 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 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 |
93a5a387bf24ca83ae37f5241ea161f3010ef4cf | 3,247 | py | Python | datasets/fusiongallery.py | weshoke/UV-Net | 9e833df6868695a2cea5c5b79a0b613b224eacf2 | [
"MIT"
] | null | null | null | datasets/fusiongallery.py | weshoke/UV-Net | 9e833df6868695a2cea5c5b79a0b613b224eacf2 | [
"MIT"
] | null | null | null | datasets/fusiongallery.py | weshoke/UV-Net | 9e833df6868695a2cea5c5b79a0b613b224eacf2 | [
"MIT"
] | null | null | null | import numpy as np
import pathlib
from torch.utils.data import Dataset, DataLoader
import dgl
import torch
from dgl.data.utils import load_graphs
import json
from datasets import util
from tqdm import tqdm
class FusionGalleryDataset(Dataset):
@staticmethod
def num_classes():
return 8
def __init__... | 32.47 | 128 | 0.57838 | 408 | 3,247 | 4.477941 | 0.428922 | 0.038314 | 0.038314 | 0.01642 | 0.042693 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005489 | 0.326763 | 3,247 | 99 | 129 | 32.79798 | 0.830284 | 0.248537 | 0 | 0.058824 | 0 | 0 | 0.039713 | 0 | 0 | 0 | 0 | 0 | 0.014706 | 1 | 0.088235 | false | 0 | 0.132353 | 0.044118 | 0.308824 | 0.014706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
93a73833278709acd49bb46a9f2c8ae73acf367a | 3,690 | py | Python | mpa/modules/models/heads/custom_ssd_head.py | openvinotoolkit/model_preparation_algorithm | 8d36bf5944837b7a3d22fc2c3a4cb93423619fc2 | [
"Apache-2.0"
] | null | null | null | mpa/modules/models/heads/custom_ssd_head.py | openvinotoolkit/model_preparation_algorithm | 8d36bf5944837b7a3d22fc2c3a4cb93423619fc2 | [
"Apache-2.0"
] | null | null | null | mpa/modules/models/heads/custom_ssd_head.py | openvinotoolkit/model_preparation_algorithm | 8d36bf5944837b7a3d22fc2c3a4cb93423619fc2 | [
"Apache-2.0"
] | null | null | null | # Copyright (C) 2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
from mmdet.models.builder import HEADS, build_loss
from mmdet.models.losses import smooth_l1_loss
from mmdet.models.dense_heads.ssd_head import SSDHead
@HEADS.register_module()
class CustomSSDHead(SSDHead):
def __init__(
self,... | 40.108696 | 79 | 0.622493 | 478 | 3,690 | 4.497908 | 0.301255 | 0.058605 | 0.042326 | 0.065116 | 0.163721 | 0.10186 | 0.091163 | 0.04 | 0.04 | 0 | 0 | 0.011525 | 0.29458 | 3,690 | 91 | 80 | 40.549451 | 0.814445 | 0.352575 | 0 | 0 | 0 | 0 | 0.009062 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.06 | 0 | 0.14 | 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 |
93a84d645ccedf01c50e4963b06e5f5cf6720d08 | 2,918 | py | Python | Python/ml_converter.py | daduz11/ios-facenet-id | 0ec634cf7f4f12c2bfa6334a72d5f2ab0a4afde4 | [
"Apache-2.0"
] | 2 | 2021-07-22T07:35:48.000Z | 2022-03-03T05:48:08.000Z | Python/ml_converter.py | daduz11/ios-facenet-id | 0ec634cf7f4f12c2bfa6334a72d5f2ab0a4afde4 | [
"Apache-2.0"
] | null | null | null | Python/ml_converter.py | daduz11/ios-facenet-id | 0ec634cf7f4f12c2bfa6334a72d5f2ab0a4afde4 | [
"Apache-2.0"
] | 2 | 2021-03-11T14:50:05.000Z | 2021-04-18T14:58:24.000Z | """
Copyright 2020 daduz11
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 writin... | 38.906667 | 160 | 0.660384 | 376 | 2,918 | 4.973404 | 0.428191 | 0.032086 | 0.032086 | 0.017112 | 0.029947 | 0.029947 | 0.029947 | 0 | 0 | 0 | 0 | 0.024015 | 0.24366 | 2,918 | 74 | 161 | 39.432432 | 0.82329 | 0.187457 | 0 | 0.173913 | 0 | 0 | 0.188751 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.108696 | 0 | 0.282609 | 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 |
93a90aa96a7060708343be286a46a3cbad16b9b8 | 628 | py | Python | pizza_utils/stringutils.py | ILikePizza555/py-pizza-utils | f336fc2c391430f5d901d85dfda50974d9f8aba7 | [
"MIT"
] | null | null | null | pizza_utils/stringutils.py | ILikePizza555/py-pizza-utils | f336fc2c391430f5d901d85dfda50974d9f8aba7 | [
"MIT"
] | null | null | null | pizza_utils/stringutils.py | ILikePizza555/py-pizza-utils | f336fc2c391430f5d901d85dfda50974d9f8aba7 | [
"MIT"
] | null | null | null |
def find_from(string, subs, start = None, end = None):
"""
Returns a tuple of the lowest index where a substring in the iterable "subs" was found, and the substring.
If multiple substrings are found, it will return the first one.
If nothing is found, it will return (-1, None)
"""
string = strin... | 27.304348 | 110 | 0.598726 | 90 | 628 | 4.111111 | 0.433333 | 0.121622 | 0.059459 | 0.091892 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006928 | 0.31051 | 628 | 22 | 111 | 28.545455 | 0.847575 | 0.345541 | 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 |
93aa7bc7eef6be2b816f51dac8d5aa561ac4c490 | 4,844 | py | Python | lab/experiment_futures.py | ajmal017/ta_scanner | 21f12bfd8b5936d1d1977a32c756715539b0d97c | [
"BSD-3-Clause"
] | 16 | 2020-06-22T05:24:20.000Z | 2022-02-15T11:41:14.000Z | lab/experiment_futures.py | ajmal017/ta_scanner | 21f12bfd8b5936d1d1977a32c756715539b0d97c | [
"BSD-3-Clause"
] | 24 | 2020-07-07T04:22:03.000Z | 2021-01-03T07:21:02.000Z | lab/experiment_futures.py | ajmal017/ta_scanner | 21f12bfd8b5936d1d1977a32c756715539b0d97c | [
"BSD-3-Clause"
] | 3 | 2020-06-21T12:12:14.000Z | 2021-09-01T04:46:59.000Z | # todos
# - [ ] all dates and date deltas are in time, not integers
from loguru import logger
from typing import Dict
import sys
import datetime
from datetime import timedelta
import numpy as np
from ta_scanner.data.data import load_and_cache, db_data_fetch_between, aggregate_bars
from ta_scanner.data.ib import IbDat... | 28 | 120 | 0.706441 | 698 | 4,844 | 4.637536 | 0.266476 | 0.06055 | 0.032129 | 0.021007 | 0.061477 | 0.033982 | 0 | 0 | 0 | 0 | 0 | 0.015861 | 0.193022 | 4,844 | 172 | 121 | 28.162791 | 0.812228 | 0.061519 | 0 | 0.016949 | 0 | 0.008475 | 0.051158 | 0.032635 | 0 | 0 | 0 | 0.005814 | 0 | 1 | 0.042373 | false | 0 | 0.127119 | 0.008475 | 0.20339 | 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 |
93ade385d6ee900f8bf10af83edfd79ce2a15da9 | 841 | py | Python | 01.Hello_tkinter.py | amitdev101/learning-tkinter | 1f7eabe1ac958c83c8bbe70e15682ecd4f7b5de5 | [
"MIT"
] | null | null | null | 01.Hello_tkinter.py | amitdev101/learning-tkinter | 1f7eabe1ac958c83c8bbe70e15682ecd4f7b5de5 | [
"MIT"
] | 1 | 2020-11-15T15:43:03.000Z | 2020-11-15T15:43:16.000Z | 01.Hello_tkinter.py | amitdev101/learning-tkinter | 1f7eabe1ac958c83c8bbe70e15682ecd4f7b5de5 | [
"MIT"
] | null | null | null | import tkinter as tk
import os
print(tk)
print(dir(tk))
print(tk.TkVersion)
print(os.getcwd())
'''To initialize tkinter, we have to create a Tk root widget, which is a window with a title bar and
other decoration provided by the window manager. The root widget has to be created before any other widgets and
there can... | 36.565217 | 115 | 0.737218 | 153 | 841 | 4.052288 | 0.503268 | 0.064516 | 0.041935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178359 | 841 | 22 | 116 | 38.227273 | 0.89725 | 0 | 0 | 0 | 0 | 0 | 0.060773 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
93aee3614d8d0959902e63d0a0a8aa33c102d4fd | 14,700 | py | Python | myscrumy/remiljscrumy/views.py | mikkeyiv/Django-App | b1114e9e53bd673119a38a1acfefb7a9fd9f172e | [
"MIT"
] | null | null | null | myscrumy/remiljscrumy/views.py | mikkeyiv/Django-App | b1114e9e53bd673119a38a1acfefb7a9fd9f172e | [
"MIT"
] | null | null | null | myscrumy/remiljscrumy/views.py | mikkeyiv/Django-App | b1114e9e53bd673119a38a1acfefb7a9fd9f172e | [
"MIT"
] | null | null | null | from django.shortcuts import render,redirect,get_object_or_404
from remiljscrumy.models import ScrumyGoals,GoalStatus,ScrumyHistory,User
from django.http import HttpResponse,Http404,HttpResponseRedirect
from .forms import SignupForm,CreateGoalForm,MoveGoalForm,DevMoveGoalForm,AdminChangeGoalForm,QAChangeGoalForm,QAC... | 49.328859 | 206 | 0.606531 | 1,590 | 14,700 | 5.515723 | 0.131447 | 0.047891 | 0.045496 | 0.070696 | 0.645382 | 0.601824 | 0.547434 | 0.502166 | 0.46146 | 0.451653 | 0 | 0.00569 | 0.27068 | 14,700 | 298 | 207 | 49.328859 | 0.812331 | 0.319728 | 0 | 0.553571 | 0 | 0 | 0.125942 | 0.040306 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029762 | false | 0.011905 | 0.059524 | 0.005952 | 0.232143 | 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 |
93b17847a4ea4d1f1c0c385ce9727ab17aed5c27 | 3,088 | py | Python | examples/ex03_oscillator_classes.py | icemtel/carpet | 5905e02ab0e44822829a672955dccad3e09eea07 | [
"MIT"
] | null | null | null | examples/ex03_oscillator_classes.py | icemtel/carpet | 5905e02ab0e44822829a672955dccad3e09eea07 | [
"MIT"
] | null | null | null | examples/ex03_oscillator_classes.py | icemtel/carpet | 5905e02ab0e44822829a672955dccad3e09eea07 | [
"MIT"
] | null | null | null | '''
Cilia classes are used to compute fixed points faster.
- Assume symmetry like in an m-twist (make a plot to see it)
- Assume that symmetries is not broken in time -> define classes of symmetry and interactions between them.
Done:
- Create a ring of cilia.
- Define symmetry classes
- Use classes to solve ODE
- Map... | 36.761905 | 114 | 0.748381 | 520 | 3,088 | 4.196154 | 0.330769 | 0.021998 | 0.030247 | 0.038497 | 0.188818 | 0.163153 | 0.145738 | 0.135655 | 0.070577 | 0.03758 | 0 | 0.030104 | 0.160946 | 3,088 | 83 | 115 | 37.204819 | 0.812042 | 0.352008 | 0 | 0 | 0 | 0 | 0.005105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.152174 | 0 | 0.152174 | 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 |
93b1f4ae1de1aaae99760a70f835707158943004 | 749 | py | Python | cars/donkeycar/sim/Adafruit_PCA9685-pkg/Adafruit_PCA9685/__init__.py | kuaikai/kuaikai | ca7e7b2d2f6f16b892a21c819ba43201beadf370 | [
"Apache-2.0"
] | 6 | 2018-03-27T15:46:28.000Z | 2018-06-23T21:56:15.000Z | cars/donkeycar/sim/Adafruit_PCA9685-pkg/Adafruit_PCA9685/__init__.py | kuaikai/kuaikai | ca7e7b2d2f6f16b892a21c819ba43201beadf370 | [
"Apache-2.0"
] | 3 | 2018-03-30T15:54:34.000Z | 2018-07-11T19:44:59.000Z | cars/donkeycar/sim/Adafruit_PCA9685-pkg/Adafruit_PCA9685/__init__.py | kuaikai/kuaikai | ca7e7b2d2f6f16b892a21c819ba43201beadf370 | [
"Apache-2.0"
] | null | null | null | """
SCL <scott@rerobots.net>
2018
"""
import json
import os
import tempfile
import time
class PCA9685:
def __init__(self):
self._fd, self._pathname = tempfile.mkstemp(prefix='kuaikai_sim_', dir='/tmp', text=True)
self._fp = os.fdopen(self._fd, 'wt')
def __del__(self):
self._fp.close(... | 22.69697 | 97 | 0.534045 | 95 | 749 | 3.936842 | 0.442105 | 0.064171 | 0.048128 | 0.080214 | 0.219251 | 0.219251 | 0.219251 | 0.219251 | 0.219251 | 0.219251 | 0 | 0.014953 | 0.285714 | 749 | 32 | 98 | 23.40625 | 0.684112 | 0.038718 | 0 | 0.272727 | 0 | 0 | 0.115331 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.409091 | 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 |
93b2760677f1d106e80a9cb1e7a2b2ab58fbe987 | 2,851 | py | Python | bayesian-belief/sequential_bayes.py | ichko/interactive | 6659f81c11c0f180295b758b457343d32323eb35 | [
"MIT"
] | null | null | null | bayesian-belief/sequential_bayes.py | ichko/interactive | 6659f81c11c0f180295b758b457343d32323eb35 | [
"MIT"
] | null | null | null | bayesian-belief/sequential_bayes.py | ichko/interactive | 6659f81c11c0f180295b758b457343d32323eb35 | [
"MIT"
] | 1 | 2019-02-05T20:22:08.000Z | 2019-02-05T20:22:08.000Z | import numpy as np
import matplotlib.pyplot as plt
import scipy.stats
def set_ax_range():
LEFT_AX.set_xlim(X_RANGE)
LEFT_AX.set_ylim(Y_RANGE)
def range_plot(ax, f, x_range, y_range):
bins = 50
xi, yi = np.mgrid[
min(x_range):max(x_range):bins*1j,
min(y_range):max(y_range):bins*1j
... | 24.791304 | 88 | 0.618029 | 478 | 2,851 | 3.439331 | 0.228033 | 0.040146 | 0.039538 | 0.038929 | 0.156934 | 0.131995 | 0.09854 | 0.09854 | 0 | 0 | 0 | 0.023373 | 0.234655 | 2,851 | 114 | 89 | 25.008772 | 0.730064 | 0 | 0 | 0.072289 | 0 | 0 | 0.007717 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.120482 | false | 0 | 0.036145 | 0.024096 | 0.228916 | 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 |
93b33aae2d1691aa0b0588d3a8ea2f43f4819a38 | 9,255 | py | Python | cgc/legacy/kmeans.py | cffbots/cgc | 1ea8b6bb6e4e9e728aff493744d8646b4953eaa4 | [
"Apache-2.0"
] | 11 | 2020-09-04T10:28:48.000Z | 2022-03-10T13:56:43.000Z | cgc/legacy/kmeans.py | cffbots/cgc | 1ea8b6bb6e4e9e728aff493744d8646b4953eaa4 | [
"Apache-2.0"
] | 40 | 2020-08-19T09:23:15.000Z | 2022-03-01T16:16:30.000Z | cgc/legacy/kmeans.py | phenology/geoclustering | 9b9b6ab8e64cdb62dbed6bdcfe63612e99665fd1 | [
"Apache-2.0"
] | 4 | 2020-10-03T21:17:18.000Z | 2022-03-09T14:32:56.000Z | import numpy as np
import logging
import matplotlib.pyplot as plt
from sklearn.cluster import KMeans
from ..results import Results
logger = logging.getLogger(__name__)
class KmeansResults(Results):
"""
Contains results and metadata of a k-means refinement calculation
"""
def reset(self):
sel... | 38.723849 | 79 | 0.581415 | 1,210 | 9,255 | 4.220661 | 0.197521 | 0.051694 | 0.05326 | 0.021147 | 0.173879 | 0.073624 | 0.052085 | 0.02663 | 0.016448 | 0.016448 | 0 | 0.009571 | 0.322636 | 9,255 | 238 | 80 | 38.886555 | 0.805073 | 0.212966 | 0 | 0.092715 | 0 | 0 | 0.058161 | 0.003319 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039735 | false | 0 | 0.033113 | 0 | 0.099338 | 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 |
93b68bf304e52b47592144b9352709027d4393ab | 3,221 | py | Python | src/tests/benchmarks/tools/bench/Vellamo3.py | VirtualVFix/AndroidTestFramework | 1feb769c6aca39a78e6daefd6face0a1e4d62cd4 | [
"MIT"
] | null | null | null | src/tests/benchmarks/tools/bench/Vellamo3.py | VirtualVFix/AndroidTestFramework | 1feb769c6aca39a78e6daefd6face0a1e4d62cd4 | [
"MIT"
] | null | null | null | src/tests/benchmarks/tools/bench/Vellamo3.py | VirtualVFix/AndroidTestFramework | 1feb769c6aca39a78e6daefd6face0a1e4d62cd4 | [
"MIT"
] | null | null | null | # All rights reserved by forest fairy.
# You cannot modify or share anything without sacrifice.
# If you don't agree, keep calm and don't look at code bellow!
__author__ = "VirtualV <https://github.com/virtualvfix>"
__date__ = "$Apr 13, 2014 8:47:25 PM$"
import re
from config import CONFIG
from tests.exceptions impor... | 46.681159 | 118 | 0.533064 | 404 | 3,221 | 4.081683 | 0.376238 | 0.036386 | 0.049121 | 0.045482 | 0.173438 | 0.140085 | 0.099454 | 0.06792 | 0.038811 | 0 | 0 | 0.013501 | 0.310152 | 3,221 | 68 | 119 | 47.367647 | 0.728623 | 0.068923 | 0 | 0.072727 | 0 | 0 | 0.128676 | 0.046791 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072727 | false | 0.018182 | 0.072727 | 0 | 0.181818 | 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 |
93b6e5c40e7caecbcb7b62ae060f41d6eac3c44d | 3,879 | py | Python | tests/commands/test_template_image_apply_overlays.py | dsoprea/image_template_overlay_apply | ce54429e07ac140b33add685d39221b1fb5cadb2 | [
"MIT"
] | 1 | 2020-05-07T00:24:21.000Z | 2020-05-07T00:24:21.000Z | tests/commands/test_template_image_apply_overlays.py | dsoprea/image_template_overlay_apply | ce54429e07ac140b33add685d39221b1fb5cadb2 | [
"MIT"
] | null | null | null | tests/commands/test_template_image_apply_overlays.py | dsoprea/image_template_overlay_apply | ce54429e07ac140b33add685d39221b1fb5cadb2 | [
"MIT"
] | null | null | null | import sys
import unittest
import os
import tempfile
import shutil
import contextlib
import json
import subprocess
import PIL
import templatelayer.testing_common
_APP_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..'))
_SCRIPT_PATH = os.path.join(_APP_PATH, 'templatelayer', 'resources', 'scri... | 28.733333 | 80 | 0.467389 | 331 | 3,879 | 5.250755 | 0.283988 | 0.080552 | 0.104718 | 0.080552 | 0.264672 | 0.161105 | 0.13809 | 0.13809 | 0.113924 | 0.113924 | 0 | 0.028855 | 0.428203 | 3,879 | 134 | 81 | 28.947761 | 0.754734 | 0.014179 | 0 | 0.262136 | 0 | 0 | 0.189104 | 0.007596 | 0 | 0 | 0 | 0 | 0.009709 | 1 | 0.009709 | false | 0 | 0.097087 | 0 | 0.116505 | 0.009709 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
93b7d3ab9113fe2fed663ad41fb0b7d4b95f018e | 3,993 | py | Python | src/gpt2/evaluate_model.py | alexgQQ/GPT2 | b2d78965f7cdcfe7dcf475969f4d4cce2b3ee82a | [
"Apache-2.0"
] | 94 | 2020-05-05T04:27:05.000Z | 2022-03-31T01:08:20.000Z | src/gpt2/evaluate_model.py | seeodm/GPT2 | 366d8517ac0bdf85e45e46adbef10cbe55740ee1 | [
"Apache-2.0"
] | 7 | 2020-09-11T02:25:30.000Z | 2021-11-23T16:03:01.000Z | src/gpt2/evaluate_model.py | seeodm/GPT2 | 366d8517ac0bdf85e45e46adbef10cbe55740ee1 | [
"Apache-2.0"
] | 24 | 2020-07-14T19:15:39.000Z | 2022-02-18T05:57:31.000Z | import argparse
import torch
import torch.nn as nn
from gpt2.modeling import Transformer
from gpt2.data import Dataset, Vocab, TokenizedCorpus
from gpt2.evaluation import EvaluationSpec, EvaluateConfig, Evaluator
from typing import Dict
class GPT2EvaluationSpec(EvaluationSpec):
def __init__(self, eval_corpus: str... | 42.478723 | 76 | 0.630604 | 478 | 3,993 | 5.110879 | 0.263598 | 0.063037 | 0.065493 | 0.027835 | 0.103152 | 0.04912 | 0.04912 | 0 | 0 | 0 | 0 | 0.008763 | 0.25695 | 3,993 | 93 | 77 | 42.935484 | 0.814628 | 0 | 0 | 0 | 0 | 0 | 0.146256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093333 | false | 0 | 0.093333 | 0.026667 | 0.24 | 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 |
93ba2653ba488171fc0c6a50b7e6cee03b9a572c | 1,332 | py | Python | mytrain/my_unpack.py | JinkelaCrops/t2t-learning | 5d9b5a5164af763c24f1cbce9d97561e9f2b772c | [
"Apache-2.0"
] | 5 | 2019-03-28T03:52:32.000Z | 2021-02-24T07:09:26.000Z | mytrain/my_unpack.py | JinkelaCrops/t2t-learning | 5d9b5a5164af763c24f1cbce9d97561e9f2b772c | [
"Apache-2.0"
] | null | null | null | mytrain/my_unpack.py | JinkelaCrops/t2t-learning | 5d9b5a5164af763c24f1cbce9d97561e9f2b772c | [
"Apache-2.0"
] | 2 | 2018-08-07T03:43:09.000Z | 2019-12-09T06:41:40.000Z | from processutils.textfilter import Unpack
from utils.simplelog import Logger
import argparse
parser = argparse.ArgumentParser(description="my_unpack")
parser.add_argument('-f', "--file_prefix", required=True)
parser.add_argument('-sep', "--separator", required=True)
# args = parser.parse_args([
# "-f", "../test... | 29.6 | 90 | 0.638889 | 177 | 1,332 | 4.570621 | 0.372881 | 0.049444 | 0.051916 | 0.059333 | 0.066749 | 0.066749 | 0.066749 | 0 | 0 | 0 | 0 | 0.00282 | 0.201201 | 1,332 | 44 | 91 | 30.272727 | 0.757519 | 0.075826 | 0 | 0 | 0 | 0 | 0.130506 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.096774 | 0 | 0.16129 | 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 |
93baf5e4d83867b7e987a8bdfa95d1e350aa7b07 | 10,173 | py | Python | source/api/dataplane/runtime/chalicelib/common.py | awslabs/aws-media-replay-engine | 2c217eff42f8e2c56b43e2ecf593f5aaa92c5451 | [
"Apache-2.0"
] | 22 | 2021-11-24T01:23:07.000Z | 2022-03-26T23:24:46.000Z | source/api/dataplane/runtime/chalicelib/common.py | awslabs/aws-media-replay-engine | 2c217eff42f8e2c56b43e2ecf593f5aaa92c5451 | [
"Apache-2.0"
] | null | null | null | source/api/dataplane/runtime/chalicelib/common.py | awslabs/aws-media-replay-engine | 2c217eff42f8e2c56b43e2ecf593f5aaa92c5451 | [
"Apache-2.0"
] | 3 | 2021-12-10T09:42:51.000Z | 2022-02-16T02:22:50.000Z | # Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
import json
import urllib.parse
import boto3
import decimal
from decimal import Decimal
from datetime import datetime
from chalice import Chalice
from chalice import IAMAuthorizer
from chalice imp... | 45.013274 | 132 | 0.626954 | 1,051 | 10,173 | 5.943863 | 0.196004 | 0.076837 | 0.097327 | 0.050424 | 0.62558 | 0.580439 | 0.502481 | 0.435569 | 0.427405 | 0.392668 | 0 | 0.004807 | 0.284282 | 10,173 | 226 | 133 | 45.013274 | 0.85318 | 0.165831 | 0 | 0.417143 | 0 | 0 | 0.183722 | 0.071691 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022857 | false | 0.022857 | 0.085714 | 0 | 0.131429 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
93bc932331d06fe620b9dc241c2d48eeb8fdbdb8 | 9,559 | py | Python | oec_sync/sync/oec.py | SamnnyWong/OECSynchronizer | 9b28c96988158f5717bacd47f59cbabb1ce072cd | [
"Unlicense",
"MIT"
] | null | null | null | oec_sync/sync/oec.py | SamnnyWong/OECSynchronizer | 9b28c96988158f5717bacd47f59cbabb1ce072cd | [
"Unlicense",
"MIT"
] | null | null | null | oec_sync/sync/oec.py | SamnnyWong/OECSynchronizer | 9b28c96988158f5717bacd47f59cbabb1ce072cd | [
"Unlicense",
"MIT"
] | null | null | null | from xml.etree import ElementTree as Etree
from model import *
from astro_unit import *
from io import StringIO
import logging
class FieldMeta:
"""
OEC field metadata.
"""
def __init__(self, datatype: str, unit: str = None):
self.type = datatype
self.unit = unit
# Maps field name to ... | 37.194553 | 79 | 0.574746 | 1,039 | 9,559 | 5.202117 | 0.245428 | 0.080481 | 0.031637 | 0.012211 | 0.131915 | 0.100833 | 0.072155 | 0.059204 | 0.032562 | 0.032562 | 0 | 0.000919 | 0.316874 | 9,559 | 256 | 80 | 37.339844 | 0.826799 | 0.246679 | 0 | 0.18543 | 0 | 0 | 0.119936 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066225 | false | 0 | 0.033113 | 0 | 0.165563 | 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 |
93bd3505c0bee8de6a5685c5e02ee9cbc78b0fdd | 9,072 | py | Python | pyAnVIL/anvil/util/ingest_helper.py | anvilproject/client-apis | cbd892042e092b0a1dede4c561bcfdde15e9a3ad | [
"Apache-2.0"
] | 8 | 2019-07-02T20:41:24.000Z | 2022-01-12T21:50:21.000Z | pyAnVIL/anvil/util/ingest_helper.py | mmtmn/client-apis | 215adae0b7f401b4bf62e7bd79b6a8adfe69cf4f | [
"Apache-2.0"
] | 37 | 2019-01-16T17:48:02.000Z | 2021-08-13T21:35:54.000Z | pyAnVIL/anvil/util/ingest_helper.py | mmtmn/client-apis | 215adae0b7f401b4bf62e7bd79b6a8adfe69cf4f | [
"Apache-2.0"
] | 7 | 2019-05-13T14:59:27.000Z | 2022-01-12T21:50:22.000Z | """Validate AnVIL workspace(s)."""
import os
from google.cloud.storage import Client
from google.cloud.storage.blob import Blob
from collections import defaultdict
import ipywidgets as widgets
from ipywidgets import interact
from IPython.display import display
import pandas as pd
import firecloud.api as FAPI
from typ... | 53.680473 | 270 | 0.61541 | 982 | 9,072 | 5.504073 | 0.201629 | 0.048104 | 0.022017 | 0.021277 | 0.211286 | 0.177058 | 0.153747 | 0.121184 | 0.108233 | 0.108233 | 0 | 0.00105 | 0.264991 | 9,072 | 168 | 271 | 54 | 0.809538 | 0.044202 | 0 | 0.096296 | 0 | 0 | 0.141864 | 0.021094 | 0 | 0 | 0 | 0 | 0.007407 | 1 | 0.059259 | false | 0 | 0.081481 | 0.007407 | 0.2 | 0.02963 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
93c35e82e3070b5dcaa7b5ce0646c0a3d9c9b51e | 5,760 | py | Python | hasy.py | MartinThoma/cv-datasets | f0566839bc2e625274bd2d439114c6665ba1b37e | [
"MIT"
] | 1 | 2017-03-11T14:14:12.000Z | 2017-03-11T14:14:12.000Z | hasy.py | MartinThoma/cv-datasets | f0566839bc2e625274bd2d439114c6665ba1b37e | [
"MIT"
] | null | null | null | hasy.py | MartinThoma/cv-datasets | f0566839bc2e625274bd2d439114c6665ba1b37e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Utility file for the HASYv2 dataset.
See https://arxiv.org/abs/1701.08380 for details.
"""
from __future__ import absolute_import
from keras.utils.data_utils import get_file
from keras import backend as K
import numpy as np
import scipy.ndimage
import os
import tarfile
import shutil
import... | 31.823204 | 78 | 0.562326 | 744 | 5,760 | 4.170699 | 0.25672 | 0.030938 | 0.029004 | 0.02417 | 0.211086 | 0.168869 | 0.152755 | 0.101837 | 0.087657 | 0.087657 | 0 | 0.022256 | 0.321354 | 5,760 | 180 | 79 | 32 | 0.771553 | 0.161806 | 0 | 0.125 | 0 | 0 | 0.073166 | 0.012372 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026786 | false | 0 | 0.089286 | 0 | 0.142857 | 0.008929 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
93c65b7f60b1d4ed3df0c1dfda29fa877d20e341 | 8,071 | py | Python | control/tracking.py | oholsen/hagedag | 4e2881fa1f636228e5cbe76e61fb4b224f0b1e4a | [
"Apache-2.0"
] | null | null | null | control/tracking.py | oholsen/hagedag | 4e2881fa1f636228e5cbe76e61fb4b224f0b1e4a | [
"Apache-2.0"
] | null | null | null | control/tracking.py | oholsen/hagedag | 4e2881fa1f636228e5cbe76e61fb4b224f0b1e4a | [
"Apache-2.0"
] | null | null | null | """
Based on Extended kalman filter (EKF) localization sample in PythonRobotics by Atsushi Sakai (@Atsushi_twi)
"""
import math
import matplotlib.pyplot as plt
import numpy as np
# Simulation parameter
INPUT_NOISE = np.diag([0.1, np.deg2rad(30.0)]) ** 2
GPS_NOISE = np.diag([0.1, 0.1]) ** 2
# Covariance for EKF ... | 25.143302 | 107 | 0.525585 | 1,275 | 8,071 | 3.246275 | 0.167059 | 0.024644 | 0.02102 | 0.016429 | 0.303455 | 0.276878 | 0.250544 | 0.225417 | 0.221551 | 0.169123 | 0 | 0.039579 | 0.317557 | 8,071 | 320 | 108 | 25.221875 | 0.711874 | 0.185355 | 0 | 0.215385 | 0 | 0 | 0.006648 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117949 | false | 0 | 0.020513 | 0.010256 | 0.220513 | 0.005128 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
93c70f97a9fcc20d868e2f05ea3a698a7c994530 | 974 | py | Python | Lab11/BacktrackingIterative.py | alexnaiman/Fundamentals-Of-Programming---Lab-assignments | ef066e6036e20b9c686799f507f10e15e50e3285 | [
"MIT"
] | 4 | 2018-02-19T13:57:38.000Z | 2022-01-08T04:10:54.000Z | Lab11/BacktrackingIterative.py | alexnaiman/Fundamentals-Of-Programming---Lab-assignments | ef066e6036e20b9c686799f507f10e15e50e3285 | [
"MIT"
] | null | null | null | Lab11/BacktrackingIterative.py | alexnaiman/Fundamentals-Of-Programming---Lab-assignments | ef066e6036e20b9c686799f507f10e15e50e3285 | [
"MIT"
] | null | null | null | l = [0, "-", "+"]
def backIter():
x = [0] # candidate solution
while len(x) > 0:
choosed = False
while (not choosed) and l.index(x[-1]) < len(l) - 1:
x[-1] = l[l.index(x[-1]) + 1] # increase the last component
choosed = consistent(x)
if choosed:
... | 21.173913 | 73 | 0.464066 | 127 | 974 | 3.559055 | 0.354331 | 0.013274 | 0.030973 | 0.035398 | 0.053097 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033389 | 0.38501 | 974 | 45 | 74 | 21.644444 | 0.721202 | 0.096509 | 0 | 0.058824 | 0 | 0 | 0.022892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0 | 0.029412 | 0.205882 | 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 |
93c86f77e89802184faaf894ae457e773562fb59 | 31,674 | py | Python | dreadlord_counter_strike.py | lorenypsum/dreadlord_counter_strike | 5f63c97ab28d84f8d7d9ff2f481c5111f0bc2ef1 | [
"MIT"
] | null | null | null | dreadlord_counter_strike.py | lorenypsum/dreadlord_counter_strike | 5f63c97ab28d84f8d7d9ff2f481c5111f0bc2ef1 | [
"MIT"
] | null | null | null | dreadlord_counter_strike.py | lorenypsum/dreadlord_counter_strike | 5f63c97ab28d84f8d7d9ff2f481c5111f0bc2ef1 | [
"MIT"
] | null | null | null | from datetime import datetime
from enum import Enum, auto
from random import randint
from time import sleep
from typing import Optional, Tuple
class GameItem(Enum):
DEATH = auto()
WOODEN_SWORD = auto()
SIMPLE_BOW = auto()
VIOLIN = auto()
ORDINARY_SWORD = auto()
STRAHD_SLAYER_SWORD... | 36.281787 | 210 | 0.46224 | 3,373 | 31,674 | 4.279573 | 0.133709 | 0.074818 | 0.106685 | 0.026602 | 0.613717 | 0.5531 | 0.519778 | 0.460132 | 0.438171 | 0.385313 | 0 | 0.020088 | 0.407495 | 31,674 | 872 | 211 | 36.323395 | 0.748921 | 0.038896 | 0 | 0.630653 | 0 | 0.016332 | 0.333277 | 0.013799 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012563 | false | 0.001256 | 0.006281 | 0 | 0.096734 | 0.327889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
93c9a643270a43403d7d70db7f672d353ef62da2 | 635 | py | Python | backend/helper/mds.py | marinaevers/regional-correlations | 8ca91a5283a92e75f3d99f870c295ca580edb949 | [
"MIT"
] | null | null | null | backend/helper/mds.py | marinaevers/regional-correlations | 8ca91a5283a92e75f3d99f870c295ca580edb949 | [
"MIT"
] | null | null | null | backend/helper/mds.py | marinaevers/regional-correlations | 8ca91a5283a92e75f3d99f870c295ca580edb949 | [
"MIT"
] | null | null | null | import numpy as np
def mds(d, dimensions=3):
"""
Multidimensional Scaling - Given a matrix of interpoint distances,
find a set of low dimensional points that have similar interpoint
distances.
"""
(n, n) = d.shape
E = (-0.5 * d ** 2)
# Use mat to get column and row means to act as co... | 24.423077 | 80 | 0.601575 | 106 | 635 | 3.603774 | 0.59434 | 0.04712 | 0.054974 | 0.089005 | 0.062827 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021368 | 0.262992 | 635 | 25 | 81 | 25.4 | 0.794872 | 0.451969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 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 |
93c9ac724fdd806412549f0dec59d52778127c89 | 492 | py | Python | sm3.py | matthewmuccio/InterviewPrepKit | 13dabeddc3c83866c88bef1c80498c313e4c233e | [
"MIT"
] | 2 | 2018-09-19T00:59:09.000Z | 2022-01-09T18:38:01.000Z | sm3.py | matthewmuccio/InterviewPrepKit | 13dabeddc3c83866c88bef1c80498c313e4c233e | [
"MIT"
] | null | null | null | sm3.py | matthewmuccio/InterviewPrepKit | 13dabeddc3c83866c88bef1c80498c313e4c233e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from collections import Counter
# Complete the isValid function below.
def isValid(s):
freq = Counter(s)
values = list(freq.values())
values.sort()
return "YES" if values.count(values[0]) == len(values) or (values.count(values[0]) == len(values) - 1 and values[-1] - values[-2]... | 25.894737 | 217 | 0.630081 | 72 | 492 | 4.194444 | 0.5 | 0.092715 | 0.168874 | 0.119205 | 0.274834 | 0.178808 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.195122 | 492 | 18 | 218 | 27.333333 | 0.734848 | 0.117886 | 0 | 0 | 0 | 0 | 0.030093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.3 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
93cd3692a60479202468f2712c8bb24c8cc1672a | 841 | py | Python | src/codplayer/__init__.py | petli/codplayer | 172187b91662affd8e89f572c0db9be1c4257627 | [
"MIT"
] | 14 | 2015-04-27T20:40:46.000Z | 2019-02-01T09:22:02.000Z | src/codplayer/__init__.py | petli/codplayer | 172187b91662affd8e89f572c0db9be1c4257627 | [
"MIT"
] | 10 | 2015-01-05T18:11:28.000Z | 2018-09-03T08:42:50.000Z | src/codplayer/__init__.py | petli/codplayer | 172187b91662affd8e89f572c0db9be1c4257627 | [
"MIT"
] | 4 | 2017-03-03T16:59:39.000Z | 2019-11-08T11:15:06.000Z | # codplayer supporting package
#
# Copyright 2013-2014 Peter Liljenberg <peter.liljenberg@gmail.com>
#
# Distributed under an MIT license, please see LICENSE in the top dir.
# Don't include the audio device modules in the list of modules,
# as they may not be available on all systems
from pkg_resources import get_dis... | 19.55814 | 70 | 0.65874 | 110 | 841 | 4.918182 | 0.745455 | 0.055453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015221 | 0.218787 | 841 | 42 | 71 | 20.02381 | 0.808219 | 0.362664 | 0 | 0 | 0 | 0 | 0.231939 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.115385 | 0.038462 | 0.192308 | 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 |
93d13c525fccba1c9782ed2b28a9ab8aac0b37da | 339 | py | Python | shapesimage.py | riddhigupta1318/menu_driven | 1a3e4a8d3ff3dbcd9cffaa87ab9fbc66868d9eb6 | [
"Apache-2.0"
] | null | null | null | shapesimage.py | riddhigupta1318/menu_driven | 1a3e4a8d3ff3dbcd9cffaa87ab9fbc66868d9eb6 | [
"Apache-2.0"
] | null | null | null | shapesimage.py | riddhigupta1318/menu_driven | 1a3e4a8d3ff3dbcd9cffaa87ab9fbc66868d9eb6 | [
"Apache-2.0"
] | null | null | null | #!/user/bin/python3
import cv2
#loading image
img=cv2.imread("dog.jpeg")
img1=cv2.line(img,(0,0),(200,114),(110,176,123),2)
#print height and width
print(img.shape)
#to display that image
cv2.imshow("dogg",img1)
#image window holder activate
#wait key will destroy by pressing q button
cv2.waitKey(0)
cv2.d... | 16.142857 | 50 | 0.719764 | 56 | 339 | 4.357143 | 0.767857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 0.132743 | 339 | 20 | 51 | 16.95 | 0.734694 | 0.439528 | 0 | 0 | 0 | 0 | 0.065574 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
93d37d046fccd50496fe96e2714742d3c5e3222c | 2,139 | py | Python | RNNS/utils/wrdembdGen.py | CenIII/Text-style-transfer-DeleteRetrieve | 2b7aa017765dcae65b42fc94d3ccaddc57ac8661 | [
"MIT"
] | null | null | null | RNNS/utils/wrdembdGen.py | CenIII/Text-style-transfer-DeleteRetrieve | 2b7aa017765dcae65b42fc94d3ccaddc57ac8661 | [
"MIT"
] | null | null | null | RNNS/utils/wrdembdGen.py | CenIII/Text-style-transfer-DeleteRetrieve | 2b7aa017765dcae65b42fc94d3ccaddc57ac8661 | [
"MIT"
] | null | null | null | import gensim
import fnmatch
import os
import pickle
import numpy as np
# from symspellpy.symspellpy import SymSpell, Verbosity # import the module
# initial_capacity = 83000
# # maximum edit distance per dictionary precalculation
# max_edit_distance_dictionary = 2
# prefix_length = 7
# sym_spell = SymSpell(initial_c... | 27.423077 | 118 | 0.694717 | 288 | 2,139 | 5.027778 | 0.385417 | 0.041436 | 0.041436 | 0.03453 | 0.058011 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023464 | 0.16316 | 2,139 | 78 | 119 | 27.423077 | 0.785475 | 0.486209 | 0 | 0.15 | 0 | 0 | 0.123711 | 0.043112 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
93d43839068d5fe40ab642bf29baf0d261531656 | 8,611 | py | Python | cls_utils/job.py | prmurali1leo/Engineering_challenge | d73dcba265587c22f0869880bf372cfaa045bfa6 | [
"MIT"
] | null | null | null | cls_utils/job.py | prmurali1leo/Engineering_challenge | d73dcba265587c22f0869880bf372cfaa045bfa6 | [
"MIT"
] | null | null | null | cls_utils/job.py | prmurali1leo/Engineering_challenge | d73dcba265587c22f0869880bf372cfaa045bfa6 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
from hashlib import md5
import datetime
import pyarrow.parquet as pq
import pyarrow as pa
from src.dimension_surrogate_resolver import DimensionSurrogateResolver
def run():
for dt in ["20160201", "20160301"]:
create_fact_dimension_tables(dt)
display_output()
de... | 42.004878 | 120 | 0.648124 | 1,042 | 8,611 | 5.082534 | 0.177543 | 0.068542 | 0.018505 | 0.021526 | 0.310612 | 0.223754 | 0.174849 | 0.13784 | 0.121979 | 0.121979 | 0 | 0.010091 | 0.217396 | 8,611 | 204 | 121 | 42.210784 | 0.775783 | 0 | 0 | 0.125 | 0 | 0 | 0.227848 | 0.042388 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.041667 | 0.011905 | 0.238095 | 0.029762 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
93d52227fd91adf6e2131607d2e901a6c4913898 | 3,294 | py | Python | busy_home.py | jerr0328/HAP-python | 87199a1fb7ffc451961948c634e46439cbace370 | [
"Apache-2.0"
] | 462 | 2017-10-14T16:58:36.000Z | 2022-03-24T01:40:23.000Z | busy_home.py | jerr0328/HAP-python | 87199a1fb7ffc451961948c634e46439cbace370 | [
"Apache-2.0"
] | 371 | 2017-11-28T14:00:02.000Z | 2022-03-31T21:44:07.000Z | busy_home.py | jerr0328/HAP-python | 87199a1fb7ffc451961948c634e46439cbace370 | [
"Apache-2.0"
] | 129 | 2017-11-23T20:50:28.000Z | 2022-03-17T01:26:53.000Z | """Starts a fake fan, lightbulb, garage door and a TemperatureSensor
"""
import logging
import signal
import random
from pyhap.accessory import Accessory, Bridge
from pyhap.accessory_driver import AccessoryDriver
from pyhap.const import (CATEGORY_FAN,
CATEGORY_LIGHTBULB,
... | 31.371429 | 77 | 0.683667 | 373 | 3,294 | 5.758713 | 0.27882 | 0.037244 | 0.020484 | 0.027933 | 0.164804 | 0.110801 | 0.110801 | 0.110801 | 0.078212 | 0.040968 | 0 | 0.00419 | 0.203097 | 3,294 | 104 | 78 | 31.673077 | 0.814095 | 0.086825 | 0 | 0.153846 | 0 | 0 | 0.110366 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.138462 | false | 0 | 0.092308 | 0 | 0.369231 | 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 |
93d680ecf48e6dbb1495bab46f68ebdbe3aea08b | 574 | py | Python | Backend/src/commercial/urls.py | ChristianTaborda/Energycorp | 2447b5af211501450177b0b60852dcb31d6ca12d | [
"MIT"
] | 1 | 2020-12-31T00:07:40.000Z | 2020-12-31T00:07:40.000Z | Backend/src/commercial/urls.py | ChristianTaborda/Energycorp | 2447b5af211501450177b0b60852dcb31d6ca12d | [
"MIT"
] | null | null | null | Backend/src/commercial/urls.py | ChristianTaborda/Energycorp | 2447b5af211501450177b0b60852dcb31d6ca12d | [
"MIT"
] | null | null | null | from django.urls import path
from .views import (
# CRUDS
CommercialList,
CommercialDelete,
CommercialDetail,
CommercialCreate,
CommercialUpdate,
CommercialDelete,
CommercialInactivate,
# QUERY
)
urlpatterns = [
#CRUD
path('', CommercialList.as_view()),
path('create/', Com... | 22.076923 | 61 | 0.667247 | 52 | 574 | 7.25 | 0.442308 | 0.095491 | 0.132626 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182927 | 574 | 25 | 62 | 22.96 | 0.803838 | 0.038328 | 0 | 0.111111 | 0 | 0 | 0.093578 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 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 |
93d7e71a979233c8c73b2a4018aacf592bc1a08e | 1,277 | py | Python | migrations/versions/6e5e2b4c2433_add_hometasks_for_students.py | AnvarGaliullin/LSP | ed1f00ddc6346c5c141b421c7a3305e4c9e1b0d1 | [
"MIT"
] | null | null | null | migrations/versions/6e5e2b4c2433_add_hometasks_for_students.py | AnvarGaliullin/LSP | ed1f00ddc6346c5c141b421c7a3305e4c9e1b0d1 | [
"MIT"
] | null | null | null | migrations/versions/6e5e2b4c2433_add_hometasks_for_students.py | AnvarGaliullin/LSP | ed1f00ddc6346c5c141b421c7a3305e4c9e1b0d1 | [
"MIT"
] | null | null | null | """Add Hometasks for Students
Revision ID: 6e5e2b4c2433
Revises: b9acba47fd53
Create Date: 2020-01-10 20:52:40.063133
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '6e5e2b4c2433'
down_revision = 'b9acba47fd53'
branch_labels = None
depends_on = None
def upgr... | 31.925 | 103 | 0.702428 | 155 | 1,277 | 5.632258 | 0.425806 | 0.054983 | 0.068729 | 0.09622 | 0.270332 | 0.270332 | 0.210767 | 0.100802 | 0 | 0 | 0 | 0.047619 | 0.144871 | 1,277 | 39 | 104 | 32.74359 | 0.751832 | 0.24119 | 0 | 0 | 0 | 0 | 0.252146 | 0.037554 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.095238 | 0 | 0.190476 | 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 |
93d903dc4a4d4fc536ec37d420b4604d14554d90 | 1,759 | py | Python | scripts/plotting.py | intelligent-soft-robots/o80_roboball2d | 094d36f870b9c20ef5e05baf92ed8ed5b9a5277c | [
"BSD-3-Clause"
] | null | null | null | scripts/plotting.py | intelligent-soft-robots/o80_roboball2d | 094d36f870b9c20ef5e05baf92ed8ed5b9a5277c | [
"BSD-3-Clause"
] | null | null | null | scripts/plotting.py | intelligent-soft-robots/o80_roboball2d | 094d36f870b9c20ef5e05baf92ed8ed5b9a5277c | [
"BSD-3-Clause"
] | null | null | null | import time
import math
import fyplot
import o80_roboball2d
from functools import partial
def _plot(frontend_robot,frontend_simulation):
plt = fyplot.Plot("o80_roboball2d",50,(2000,800))
def get_observed_angle(frontend,dof):
return frontend.read().get_observed_states().get(dof).get_position()
... | 30.327586 | 84 | 0.651507 | 226 | 1,759 | 4.778761 | 0.261062 | 0.096296 | 0.023148 | 0.088889 | 0.427778 | 0.392593 | 0.303704 | 0.037037 | 0 | 0 | 0 | 0.067587 | 0.217737 | 1,759 | 57 | 85 | 30.859649 | 0.717297 | 0 | 0 | 0 | 0 | 0 | 0.023322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128205 | false | 0.025641 | 0.128205 | 0.076923 | 0.358974 | 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 |
93d96a3758d5ca27cf2434f779255814b61dd0c7 | 10,099 | py | Python | kvm_pirate/elf/structs.py | Mic92/kvm-pirate | 26626db320b385f51ccb88dad76209a812c40ca6 | [
"MIT"
] | 6 | 2020-12-15T04:26:43.000Z | 2020-12-15T13:26:09.000Z | kvm_pirate/elf/structs.py | Mic92/kvm-pirate | 26626db320b385f51ccb88dad76209a812c40ca6 | [
"MIT"
] | null | null | null | kvm_pirate/elf/structs.py | Mic92/kvm-pirate | 26626db320b385f51ccb88dad76209a812c40ca6 | [
"MIT"
] | null | null | null | #
# Copyright (C) 2018 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | 26.231169 | 77 | 0.600951 | 1,263 | 10,099 | 4.532067 | 0.160728 | 0.037736 | 0.039832 | 0.046122 | 0.472397 | 0.446366 | 0.391509 | 0.372991 | 0.328616 | 0.307652 | 0 | 0.046951 | 0.266066 | 10,099 | 384 | 78 | 26.299479 | 0.72531 | 0.285573 | 0 | 0.186529 | 0 | 0 | 0.111095 | 0 | 0 | 0 | 0.005063 | 0 | 0 | 1 | 0.088083 | false | 0.010363 | 0.015544 | 0 | 0.352332 | 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 |
93db2131f51a021bb76ace2f9993a86a1d6b0e6b | 469 | py | Python | connect-2018/exercises/2018/lr-automation/cbr.py | cbcommunity/cb-connect | 3ccfd1ed51e808f567f9f0fc4e8fe2688ef9ee76 | [
"MIT"
] | 5 | 2019-06-03T21:02:32.000Z | 2020-12-01T08:59:50.000Z | connect-2018/exercises/2018/lr-automation/cbr.py | cbcommunity/cb-connect-2018 | 3ccfd1ed51e808f567f9f0fc4e8fe2688ef9ee76 | [
"MIT"
] | null | null | null | connect-2018/exercises/2018/lr-automation/cbr.py | cbcommunity/cb-connect-2018 | 3ccfd1ed51e808f567f9f0fc4e8fe2688ef9ee76 | [
"MIT"
] | 1 | 2019-07-09T20:09:14.000Z | 2019-07-09T20:09:14.000Z | from cbapi.response import *
from lrjob import run_liveresponse
from cbapi.example_helpers import get_cb_response_object, build_cli_parser
def main():
parser = build_cli_parser("Cb Response Live Response example")
parser.add_argument("sensorid", nargs=1)
args = parser.parse_args()
c = get_cb_response... | 26.055556 | 74 | 0.742004 | 65 | 469 | 4.984615 | 0.523077 | 0.092593 | 0.080247 | 0.117284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005051 | 0.15565 | 469 | 18 | 75 | 26.055556 | 0.813131 | 0 | 0 | 0 | 0 | 0 | 0.104255 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
93e13a546c607eee62ff4605caebeeafa51bfb7a | 6,805 | py | Python | pricePrediction/preprocessData/prepareDataMol2Price.py | rsanchezgarc/CoPriNet | 33708a82746278270fd1aa600d4b562ea0f62c1c | [
"MIT"
] | null | null | null | pricePrediction/preprocessData/prepareDataMol2Price.py | rsanchezgarc/CoPriNet | 33708a82746278270fd1aa600d4b562ea0f62c1c | [
"MIT"
] | null | null | null | pricePrediction/preprocessData/prepareDataMol2Price.py | rsanchezgarc/CoPriNet | 33708a82746278270fd1aa600d4b562ea0f62c1c | [
"MIT"
] | 1 | 2022-03-02T16:21:16.000Z | 2022-03-02T16:21:16.000Z | import gzip
import os
import re
import sys
import time
from functools import reduce
from itertools import chain
from multiprocessing import cpu_count
import lmdb
import psutil
import joblib
from joblib import Parallel, delayed
import numpy as np
from pricePrediction import config
from pricePrediction.config import USE... | 42.006173 | 140 | 0.627039 | 778 | 6,805 | 5.272494 | 0.316195 | 0.018284 | 0.021941 | 0.008776 | 0.07411 | 0.042418 | 0 | 0 | 0 | 0 | 0 | 0.008842 | 0.268773 | 6,805 | 162 | 141 | 42.006173 | 0.815514 | 0.023806 | 0 | 0.016393 | 0 | 0 | 0.063052 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 1 | 0.032787 | false | 0 | 0.155738 | 0 | 0.221311 | 0.065574 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
93e2b831da7ddd82cdee3f6c7c6866a56f385beb | 2,894 | py | Python | lanzou/gui/workers/more.py | WaterLemons2k/lanzou-gui | f5c57f980ee9a6d47164a39b90d82eb0391ede8b | [
"MIT"
] | 1,093 | 2019-12-25T10:42:34.000Z | 2022-03-28T22:35:32.000Z | lanzou/gui/workers/more.py | Enrontime/lanzou-gui | 8e89438d938ee4994a4118502c3f14d467b55acc | [
"MIT"
] | 116 | 2019-12-24T04:01:43.000Z | 2022-03-26T16:12:41.000Z | lanzou/gui/workers/more.py | Enrontime/lanzou-gui | 8e89438d938ee4994a4118502c3f14d467b55acc | [
"MIT"
] | 188 | 2020-01-11T14:17:13.000Z | 2022-03-29T09:18:34.000Z | from PyQt5.QtCore import QThread, pyqtSignal, QMutex
from lanzou.api import LanZouCloud
from lanzou.gui.models import Infos
from lanzou.debug import logger
class GetMoreInfoWorker(QThread):
'''获取文件直链、文件(夹)提取码描述,用于登录后显示更多信息'''
infos = pyqtSignal(object)
share_url = pyqtSignal(object)
dl_link = pyqtSig... | 34.86747 | 106 | 0.516586 | 332 | 2,894 | 4.268072 | 0.325301 | 0.095272 | 0.035286 | 0.02964 | 0.074806 | 0.032463 | 0 | 0 | 0 | 0 | 0 | 0.006101 | 0.376987 | 2,894 | 82 | 107 | 35.292683 | 0.776484 | 0.051486 | 0 | 0.242857 | 0 | 0 | 0.029283 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.057143 | 0 | 0.228571 | 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 |
93e5d68b70881e1e29365acb06e52f0fb4bc0b36 | 2,331 | py | Python | neuro_logging/__init__.py | neuro-inc/neuro-logging | e3173a40d0e2559f113f1420ed8a3fd4a0e76dde | [
"Apache-2.0"
] | null | null | null | neuro_logging/__init__.py | neuro-inc/neuro-logging | e3173a40d0e2559f113f1420ed8a3fd4a0e76dde | [
"Apache-2.0"
] | 50 | 2021-08-20T00:10:05.000Z | 2022-02-21T16:44:46.000Z | neuro_logging/__init__.py | neuro-inc/neuro-logging | e3173a40d0e2559f113f1420ed8a3fd4a0e76dde | [
"Apache-2.0"
] | null | null | null | import logging
import logging.config
import os
from importlib.metadata import version
from typing import Any, Union
from .trace import (
make_request_logging_trace_config,
make_sentry_trace_config,
make_zipkin_trace_config,
new_sampled_trace,
new_trace,
new_trace_cm,
notrace,
setup_sent... | 25.336957 | 86 | 0.607465 | 243 | 2,331 | 5.473251 | 0.36214 | 0.049624 | 0.045113 | 0.034586 | 0.287218 | 0.243609 | 0.243609 | 0.243609 | 0.193985 | 0.193985 | 0 | 0.000575 | 0.253968 | 2,331 | 91 | 87 | 25.615385 | 0.764232 | 0 | 0 | 0.050633 | 0 | 0 | 0.277134 | 0.075504 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037975 | false | 0 | 0.075949 | 0.012658 | 0.139241 | 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 |
93e8008d69beb181243428fecbcab6a20eb6cce6 | 3,628 | py | Python | quantrocket/houston.py | Jay-Jay-D/quantrocket-client | b70ac199382d22d56fad923ca2233ce027f3264a | [
"Apache-2.0"
] | null | null | null | quantrocket/houston.py | Jay-Jay-D/quantrocket-client | b70ac199382d22d56fad923ca2233ce027f3264a | [
"Apache-2.0"
] | null | null | null | quantrocket/houston.py | Jay-Jay-D/quantrocket-client | b70ac199382d22d56fad923ca2233ce027f3264a | [
"Apache-2.0"
] | 1 | 2019-06-12T11:34:27.000Z | 2019-06-12T11:34:27.000Z | # Copyright 2017 QuantRocket - 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 ... | 33.284404 | 88 | 0.651599 | 463 | 3,628 | 5.021598 | 0.386609 | 0.025806 | 0.014194 | 0.013763 | 0.055914 | 0.025806 | 0 | 0 | 0 | 0 | 0 | 0.006275 | 0.253308 | 3,628 | 109 | 89 | 33.284404 | 0.851975 | 0.419239 | 0 | 0.041667 | 0 | 0 | 0.106762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.041667 | 0.083333 | 0.020833 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
93e81c0784cf18fea2ad26a23da9cc7f264a20a2 | 3,778 | py | Python | src/Sudoku/SudokuGenerator.py | andrea-pollastro/Sudoku | 84d82c9a181ad87f782efe7489fa28da70993590 | [
"MIT"
] | 1 | 2020-01-09T10:48:47.000Z | 2020-01-09T10:48:47.000Z | src/Sudoku/SudokuGenerator.py | andrea-pollastro/Sudoku | 84d82c9a181ad87f782efe7489fa28da70993590 | [
"MIT"
] | null | null | null | src/Sudoku/SudokuGenerator.py | andrea-pollastro/Sudoku | 84d82c9a181ad87f782efe7489fa28da70993590 | [
"MIT"
] | null | null | null | from random import shuffle
from math import sqrt
from enum import Enum
from src.Sudoku.SudokuSolver import SudokuSolver
from src.Sudoku.Sudoku import Sudoku
"""
**** SUDOKU GENERATOR ****
Author: Andrea Pollastro
Date: September 2018
"""
class SudokuGenerator:
__solver = SudokuSolver()
def createSudoku(... | 35.641509 | 117 | 0.636051 | 456 | 3,778 | 5.111842 | 0.298246 | 0.018018 | 0.013728 | 0.018876 | 0.085371 | 0.085371 | 0.074646 | 0.06435 | 0.040326 | 0.040326 | 0 | 0.010083 | 0.264955 | 3,778 | 106 | 118 | 35.641509 | 0.829312 | 0.149021 | 0 | 0.118421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.118421 | false | 0 | 0.065789 | 0.013158 | 0.460526 | 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 |
93e8893408bea136d9cbb5e2c4e9cac3b5b0c2f9 | 15,753 | py | Python | stanza/coptic.py | CopticScriptorium/stanza | a16b152fce3d2cc325b7d67e03952bd00c878fe3 | [
"Apache-2.0"
] | null | null | null | stanza/coptic.py | CopticScriptorium/stanza | a16b152fce3d2cc325b7d67e03952bd00c878fe3 | [
"Apache-2.0"
] | null | null | null | stanza/coptic.py | CopticScriptorium/stanza | a16b152fce3d2cc325b7d67e03952bd00c878fe3 | [
"Apache-2.0"
] | null | null | null | import argparse
import random, os
from os.path import join as j
from collections import OrderedDict
import conllu
import torch
import pathlib
import tempfile
import depedit
import stanza.models.parser as parser
from stanza.models.depparse.data import DataLoader
from stanza.models.depparse.trainer import Trainer
from s... | 35.320628 | 120 | 0.599314 | 2,004 | 15,753 | 4.513972 | 0.221058 | 0.041676 | 0.013929 | 0.013266 | 0.234579 | 0.195888 | 0.180853 | 0.126907 | 0.086226 | 0.086226 | 0 | 0.011084 | 0.266933 | 15,753 | 445 | 121 | 35.4 | 0.772255 | 0.142386 | 0 | 0.159639 | 0 | 0 | 0.129719 | 0.014372 | 0 | 0 | 0 | 0 | 0.006024 | 1 | 0.051205 | false | 0 | 0.054217 | 0 | 0.156627 | 0.03012 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
93ebca1d1f1083aaf12c3d720e9e95e6ae2564e1 | 11,432 | py | Python | diff.py | JohnAgapeyev/binary_diff | 4e8a1eb9540af134375f171e4a5a8781d042043d | [
"MIT"
] | null | null | null | diff.py | JohnAgapeyev/binary_diff | 4e8a1eb9540af134375f171e4a5a8781d042043d | [
"MIT"
] | null | null | null | diff.py | JohnAgapeyev/binary_diff | 4e8a1eb9540af134375f171e4a5a8781d042043d | [
"MIT"
] | null | null | null | #!/bin/python3
import sys
import os
import getopt
import csv
import json
import itertools
import zipfile
import tarfile
import binwalk
import collections
from heapq import nsmallest
from collections import defaultdict
import tlsh
import numpy as np
import matplotlib.pyplot as plt
from multiprocessing.dummy import Poo... | 30.485333 | 141 | 0.571641 | 1,478 | 11,432 | 4.307172 | 0.226658 | 0.023877 | 0.018379 | 0.026861 | 0.17028 | 0.125039 | 0.125039 | 0.117499 | 0.098492 | 0.083883 | 0 | 0.021536 | 0.317617 | 11,432 | 374 | 142 | 30.566845 | 0.794514 | 0.048198 | 0 | 0.190939 | 0 | 0 | 0.048947 | 0.002576 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045307 | false | 0.006472 | 0.067961 | 0.006472 | 0.200647 | 0.035599 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
93ecc85140eb083700cb75cd12da34a931dcc1e5 | 3,132 | py | Python | proyecto_opti.py | rafaelfrieri1/Optimization-Project | 20db5200cd361d358e213310c6eb2997c893ff27 | [
"MIT"
] | null | null | null | proyecto_opti.py | rafaelfrieri1/Optimization-Project | 20db5200cd361d358e213310c6eb2997c893ff27 | [
"MIT"
] | null | null | null | proyecto_opti.py | rafaelfrieri1/Optimization-Project | 20db5200cd361d358e213310c6eb2997c893ff27 | [
"MIT"
] | null | null | null | from pyomo.environ import *
import numpy as np
cijr = []
fjr = []
with open("./Test_Instances/RAND2000_120-80.txt") as instanceFile:
n = int(instanceFile.readline())
clientsFacilitiesSizeStr = instanceFile.readline().strip().split(" ")
instanceFile.readline()
for phase in range(2):
for i in range(1, len(cl... | 28.472727 | 295 | 0.590358 | 495 | 3,132 | 3.731313 | 0.212121 | 0.060639 | 0.077964 | 0.075799 | 0.258798 | 0.212777 | 0.179751 | 0.120736 | 0.036816 | 0.036816 | 0 | 0.085415 | 0.207535 | 3,132 | 110 | 296 | 28.472727 | 0.658743 | 0.155811 | 0 | 0.126984 | 0 | 0 | 0.016839 | 0.013777 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.031746 | 0 | 0.031746 | 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 |
93f0a5f958369eb4430a00c36a168b1783fda002 | 735 | py | Python | portal/middleware.py | cds-snc/covid-alert-portal | e7d56fa9fa4a2ad2d60f056eae063713661bd260 | [
"MIT"
] | 43 | 2020-07-31T14:38:06.000Z | 2022-03-07T11:28:28.000Z | portal/middleware.py | cds-snc/covid-alert-portal | e7d56fa9fa4a2ad2d60f056eae063713661bd260 | [
"MIT"
] | 322 | 2020-07-23T19:38:26.000Z | 2022-03-31T19:15:45.000Z | portal/middleware.py | cds-snc/covid-alert-portal | e7d56fa9fa4a2ad2d60f056eae063713661bd260 | [
"MIT"
] | 6 | 2020-11-28T19:30:20.000Z | 2021-07-29T18:06:55.000Z | import pytz
from django.conf import settings
class TZMiddleware:
def __init__(self, get_response):
self.get_response = get_response
def __call__(self, request):
browser_tz = request.COOKIES.get("browserTimezone")
tz = None
if browser_tz:
try:
tz = p... | 27.222222 | 75 | 0.642177 | 89 | 735 | 4.921348 | 0.393258 | 0.100457 | 0.10274 | 0.109589 | 0.157534 | 0.157534 | 0 | 0 | 0 | 0 | 0 | 0 | 0.293878 | 735 | 26 | 76 | 28.269231 | 0.843931 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0.05 | 0.1 | 0.05 | 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 |
93f3149ab4cf735ff8855c62f4a02835c7b351e6 | 483 | py | Python | app/main.py | cesko-digital/newschatbot | 4f47d7902433bff09b48fcebcf9ee8422eb0ec7e | [
"MIT"
] | 1 | 2021-04-06T16:52:36.000Z | 2021-04-06T16:52:36.000Z | app/main.py | cesko-digital/newschatbot | 4f47d7902433bff09b48fcebcf9ee8422eb0ec7e | [
"MIT"
] | 17 | 2021-05-30T17:06:48.000Z | 2021-09-26T08:20:02.000Z | app/main.py | cesko-digital/newschatbot | 4f47d7902433bff09b48fcebcf9ee8422eb0ec7e | [
"MIT"
] | null | null | null | from flask import Flask
from flask_migrate import Migrate
from app.model import db
from app.controller import api
app = Flask(__name__)
app.register_blueprint(api)
app.config[
"SQLALCHEMY_DATABASE_URI"
] = "postgresql://newschatbotdevelopment:Wlk8skrHKvZEbM6Gw@database.internal.newschatbot.ceskodigital.net:5432/n... | 25.421053 | 134 | 0.797101 | 60 | 483 | 6.1 | 0.516667 | 0.04918 | 0.103825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013857 | 0.10352 | 483 | 18 | 135 | 26.833333 | 0.831409 | 0 | 0 | 0 | 0 | 0 | 0.391304 | 0.374741 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
93f51b485662f69b94bcc6b67cecfbb6633cdc40 | 2,887 | py | Python | examples/siha/sleep_intraday_dataset.py | qcri/tasrif | 327bc1eccb8f8e11d8869ba65a7c72ad038aa094 | [
"BSD-3-Clause"
] | 20 | 2021-12-06T10:41:54.000Z | 2022-03-13T16:25:43.000Z | examples/siha/sleep_intraday_dataset.py | qcri/tasrif | 327bc1eccb8f8e11d8869ba65a7c72ad038aa094 | [
"BSD-3-Clause"
] | 33 | 2021-12-06T08:27:18.000Z | 2022-03-14T05:07:53.000Z | examples/siha/sleep_intraday_dataset.py | qcri/tasrif | 327bc1eccb8f8e11d8869ba65a7c72ad038aa094 | [
"BSD-3-Clause"
] | 2 | 2022-02-07T08:06:48.000Z | 2022-02-14T07:13:42.000Z | """Example on how to read sleep data from SIHA
"""
import os
from tasrif.data_readers.siha_dataset import SihaDataset
from tasrif.processing_pipeline import SequenceOperator
from tasrif.processing_pipeline.custom import JqOperator
from tasrif.processing_pipeline.pandas import (
ConvertToDatetimeOperator,
JsonN... | 38.493333 | 108 | 0.512643 | 206 | 2,887 | 7.11165 | 0.378641 | 0.106485 | 0.049147 | 0.057338 | 0.07372 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.32629 | 2,887 | 74 | 109 | 39.013514 | 0.753213 | 0.014894 | 0 | 0.044776 | 0 | 0.029851 | 0.375749 | 0.008107 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074627 | 0 | 0.074627 | 0.014925 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
93f8e49e11b7653fd863536bebeb07d2b758a06e | 12,788 | py | Python | tests/data/long_statement_strings.py | aalto-speech/fi-parliament-tools | c40ab81a23c661765c380238cbf10acf733d94d4 | [
"MIT"
] | 5 | 2021-05-19T22:56:40.000Z | 2022-03-29T15:25:03.000Z | tests/data/long_statement_strings.py | aalto-speech/fi-parliament-tools | c40ab81a23c661765c380238cbf10acf733d94d4 | [
"MIT"
] | 32 | 2021-05-10T07:58:57.000Z | 2022-03-01T08:02:11.000Z | tests/data/long_statement_strings.py | aalto-speech/fi-parliament-tools | c40ab81a23c661765c380238cbf10acf733d94d4 | [
"MIT"
] | null | null | null | """Long statement strings and other space consuming data definitions for testing are declared here.
This is done to avoid clutter in main test files.
"""
from typing import Dict
from typing import List
from typing import Tuple
import pytest
from _pytest.fixtures import SubRequest
from fi_parliament_tools.parsing.dat... | 37.722714 | 100 | 0.626759 | 1,297 | 12,788 | 6.141866 | 0.508096 | 0.005021 | 0.006277 | 0.020085 | 0.224077 | 0.210394 | 0.199347 | 0.168968 | 0.158423 | 0.158423 | 0 | 0.026911 | 0.256099 | 12,788 | 338 | 101 | 37.83432 | 0.810155 | 0.057632 | 0 | 0.406667 | 0 | 0.003333 | 0.586862 | 0.025258 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023333 | false | 0 | 0.02 | 0 | 0.066667 | 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 |
93fe622a14e935745be6617c3d7a3da20bbb3012 | 578 | py | Python | venv/Lib/site-packages/fbs/_state.py | Acuf5928/check- | 4b993e0bcee33434506565dab11ece3dfa9c5cab | [
"MIT"
] | 1 | 2020-03-30T00:08:41.000Z | 2020-03-30T00:08:41.000Z | venv/Lib/site-packages/fbs/_state.py | Acuf5928/check- | 4b993e0bcee33434506565dab11ece3dfa9c5cab | [
"MIT"
] | null | null | null | venv/Lib/site-packages/fbs/_state.py | Acuf5928/check- | 4b993e0bcee33434506565dab11ece3dfa9c5cab | [
"MIT"
] | 2 | 2018-12-29T07:49:59.000Z | 2020-03-18T02:44:31.000Z | """
This INTERNAL module is used to manage fbs's global state. Having it here, in
one central place, allows fbs's test suite to manipulate the state to test
various scenarios.
"""
from collections import OrderedDict
SETTINGS = {}
LOADED_PROFILES = []
COMMANDS = OrderedDict()
def get():
return dict(SETTINGS), list... | 27.52381 | 77 | 0.749135 | 74 | 578 | 5.77027 | 0.567568 | 0.196721 | 0.154567 | 0.140515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155709 | 578 | 21 | 78 | 27.52381 | 0.875 | 0.295848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 0.076923 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
93feb2b5aaee509b3ca59bd657fd9239d3cc9aa4 | 5,234 | py | Python | rtk/dao/RTKMatrix.py | rakhimov/rtk | adc35e218ccfdcf3a6e3082f6a1a1d308ed4ff63 | [
"BSD-3-Clause"
] | null | null | null | rtk/dao/RTKMatrix.py | rakhimov/rtk | adc35e218ccfdcf3a6e3082f6a1a1d308ed4ff63 | [
"BSD-3-Clause"
] | null | null | null | rtk/dao/RTKMatrix.py | rakhimov/rtk | adc35e218ccfdcf3a6e3082f6a1a1d308ed4ff63 | [
"BSD-3-Clause"
] | 2 | 2020-04-03T04:14:42.000Z | 2021-02-22T05:30:35.000Z | # -*- coding: utf-8 -*-
#
# rtk.dao.RTKMatrix.py is part of The RTK Project
#
# All rights reserved.
# Copyright 2007 - 2017 Andrew Rowland andrew.rowland <AT> reliaqual <DOT> com
"""
===============================================================================
The RTKMatrix Table
==============================... | 40.261538 | 79 | 0.526175 | 540 | 5,234 | 4.824074 | 0.261111 | 0.036852 | 0.039923 | 0.051056 | 0.193858 | 0.094818 | 0.085605 | 0.026871 | 0 | 0 | 0 | 0.012095 | 0.257547 | 5,234 | 129 | 80 | 40.573643 | 0.65826 | 0.455865 | 0 | 0 | 0 | 0 | 0.186636 | 0.021121 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0.017857 | 0.071429 | 0 | 0.375 | 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 |
93ff19152094c70f894a1b56b790e173ed1c2638 | 614 | py | Python | tool/gitautopull.py | chaosannals/trial-python | 740b91fa4b1b1b9839b7524515995a6d417612ca | [
"MIT"
] | null | null | null | tool/gitautopull.py | chaosannals/trial-python | 740b91fa4b1b1b9839b7524515995a6d417612ca | [
"MIT"
] | 8 | 2020-12-26T07:48:15.000Z | 2022-03-12T00:25:14.000Z | tool/gitautopull.py | chaosannals/trial-python | 740b91fa4b1b1b9839b7524515995a6d417612ca | [
"MIT"
] | null | null | null | import os
import shutil
def pull_default(folder=None):
cwd = os.getcwd()
if None == folder:
folder = cwd
for path in os.listdir(folder):
project_path = os.path.join(folder, path)
if os.path.isdir(project_path):
dot_git_folder = os.path.join(project_path, '.git')
... | 29.238095 | 65 | 0.583062 | 81 | 614 | 4.271605 | 0.345679 | 0.190751 | 0.150289 | 0.075145 | 0.138728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.286645 | 614 | 20 | 66 | 30.7 | 0.789954 | 0 | 0 | 0 | 0 | 0 | 0.086319 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0 | 0.166667 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
93ffdac053f4b224bf9ac1f85bcc5aea184dd502 | 9,300 | py | Python | emit.py | richardbenson91477/simile | aa1faa8902d24e57133cd2c9982e5d4eef6f913f | [
"Unlicense"
] | null | null | null | emit.py | richardbenson91477/simile | aa1faa8902d24e57133cd2c9982e5d4eef6f913f | [
"Unlicense"
] | null | null | null | emit.py | richardbenson91477/simile | aa1faa8902d24e57133cd2c9982e5d4eef6f913f | [
"Unlicense"
] | null | null | null | ''' code emitters '''
import out, enums as e
class s:
''' state '''
# long_len
# arg_regs, arg_regs_n
# regs
# stack_regs
pass
def init (long_len):
s.long_len = long_len
if long_len == 8:
s.arg_regs = ['%rdi', '%rsi', '%rdx', '%rcx', 'r8', 'r9']
s.arg_regs_n = len(s.arg... | 30.693069 | 78 | 0.475484 | 1,406 | 9,300 | 2.920341 | 0.086771 | 0.081588 | 0.052606 | 0.05358 | 0.749391 | 0.688505 | 0.63322 | 0.594496 | 0.57964 | 0.566245 | 0 | 0.018797 | 0.370753 | 9,300 | 302 | 79 | 30.794702 | 0.682843 | 0.009247 | 0 | 0.550607 | 0 | 0 | 0.052305 | 0 | 0 | 0 | 0 | 0.003311 | 0 | 1 | 0.020243 | false | 0.004049 | 0.004049 | 0 | 0.210526 | 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 |
9e0bbeb93835b36e23fb310038a044e9818c4553 | 13,451 | py | Python | kecpkg/commands/sign.py | jberends/kecpkg-tools | 3c288c5b91b619fe76cd3622615f3ffe43509725 | [
"Apache-2.0"
] | null | null | null | kecpkg/commands/sign.py | jberends/kecpkg-tools | 3c288c5b91b619fe76cd3622615f3ffe43509725 | [
"Apache-2.0"
] | 7 | 2017-12-07T11:16:07.000Z | 2019-12-11T15:25:07.000Z | kecpkg/commands/sign.py | KE-works/kecpkg-tools | 3c288c5b91b619fe76cd3622615f3ffe43509725 | [
"Apache-2.0"
] | null | null | null | import os
import sys
from pprint import pprint
import click
from pykechain.utils import temp_chdir
from kecpkg.commands.utils import CONTEXT_SETTINGS
from kecpkg.gpg import get_gpg, list_keys, hash_of_file
from kecpkg.settings import SETTINGS_FILENAME, GNUPG_KECPKG_HOME, load_settings, DEFAULT_SETTINGS, ARTIFACTS_FIL... | 46.867596 | 120 | 0.63564 | 1,703 | 13,451 | 4.840282 | 0.182032 | 0.026689 | 0.026204 | 0.02402 | 0.273323 | 0.186219 | 0.140968 | 0.11258 | 0.101905 | 0.068179 | 0 | 0.004342 | 0.246673 | 13,451 | 286 | 121 | 47.031469 | 0.809138 | 0.105494 | 0 | 0.180095 | 0 | 0.009479 | 0.297193 | 0.002514 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047393 | false | 0.028436 | 0.109005 | 0 | 0.156398 | 0.037915 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9e0dd95d1aaf80cae2655fcee6b6427ac437b94c | 10,563 | py | Python | doctor/lib/utils.py | freelawproject/doctor | 3858b6f5de7903353f4376303329a986db5b7983 | [
"BSD-2-Clause"
] | null | null | null | doctor/lib/utils.py | freelawproject/doctor | 3858b6f5de7903353f4376303329a986db5b7983 | [
"BSD-2-Clause"
] | null | null | null | doctor/lib/utils.py | freelawproject/doctor | 3858b6f5de7903353f4376303329a986db5b7983 | [
"BSD-2-Clause"
] | null | null | null | import datetime
import io
import os
import re
import subprocess
import warnings
from collections import namedtuple
from decimal import Decimal
from pathlib import Path
import six
from PyPDF2 import PdfFileMerger
from reportlab.pdfgen import canvas
class DoctorUnicodeDecodeError(UnicodeDecodeError):
def __init__(... | 30.528902 | 87 | 0.619142 | 1,408 | 10,563 | 4.539773 | 0.253551 | 0.020651 | 0.015488 | 0.013141 | 0.371715 | 0.364362 | 0.356227 | 0.340895 | 0.315551 | 0.315551 | 0 | 0.005374 | 0.277667 | 10,563 | 345 | 88 | 30.617391 | 0.832372 | 0.312222 | 0 | 0.331606 | 0 | 0 | 0.06426 | 0.016318 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103627 | false | 0.010363 | 0.062176 | 0.005181 | 0.321244 | 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 |
9e0e1c62ee116428b55cffa380260139fb9ea5d8 | 906 | py | Python | src/xrl/env_tester.py | k4ntz/XmodRL | dffb416bcd91010d8075ee1ac00cc4b9a3021967 | [
"MIT"
] | null | null | null | src/xrl/env_tester.py | k4ntz/XmodRL | dffb416bcd91010d8075ee1ac00cc4b9a3021967 | [
"MIT"
] | null | null | null | src/xrl/env_tester.py | k4ntz/XmodRL | dffb416bcd91010d8075ee1ac00cc4b9a3021967 | [
"MIT"
] | 1 | 2021-11-10T18:09:27.000Z | 2021-11-10T18:09:27.000Z | import gym
import numpy as np
import os
import random
import matplotlib.pyplot as plt
from atariari.benchmark.wrapper import AtariARIWrapper
# YarsRevenge
#
env_name = "DemonAttackDeterministic-v4"
def print_labels(env_info):
# extract raw features
labels = env_info["labels"]
print(labels)
env = Atar... | 22.65 | 66 | 0.695364 | 136 | 906 | 4.544118 | 0.558824 | 0.053398 | 0.045307 | 0.048544 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024357 | 0.184327 | 906 | 40 | 67 | 22.65 | 0.811908 | 0.143488 | 0 | 0 | 0 | 0 | 0.059663 | 0.035019 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.2 | 0 | 0.233333 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9e0ef102e2826e6b9febd80bed5d0193a3687555 | 2,711 | py | Python | packages/lrn/model/question.py | genropy/learn | 019286c1fa1548482f64ccbd91082e069ec62a56 | [
"MIT"
] | 3 | 2019-11-16T12:38:20.000Z | 2019-11-17T08:44:41.000Z | packages/lrn/model/question.py | genropy/learn | 019286c1fa1548482f64ccbd91082e069ec62a56 | [
"MIT"
] | null | null | null | packages/lrn/model/question.py | genropy/learn | 019286c1fa1548482f64ccbd91082e069ec62a56 | [
"MIT"
] | 5 | 2019-11-16T16:22:10.000Z | 2019-11-18T21:46:50.000Z | # encoding: utf-8
from datetime import datetime
class Table(object):
def config_db(self,pkg):
tbl=pkg.table('question', pkey='id', name_long='!![en]Question', name_plural='!![en]Questions',caption_field='question')
self.sysFields(tbl, draftField=True)
tbl.column('question',name_long='!![en]... | 54.22 | 138 | 0.570638 | 309 | 2,711 | 4.770227 | 0.368932 | 0.065129 | 0.061058 | 0.035278 | 0.297151 | 0.297151 | 0.232022 | 0.189959 | 0.074627 | 0 | 0 | 0.004719 | 0.29657 | 2,711 | 50 | 139 | 54.22 | 0.768222 | 0.143121 | 0 | 0.210526 | 0 | 0 | 0.218292 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0 | 0.026316 | 0 | 0.184211 | 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 |
9e11d3f12bcf35bac083ace9a1b7490250555694 | 3,087 | py | Python | core/api/OxfordAPI.py | vimarind/Complete-GRE-Vocab | 6dc8bb8ed0506ed572edd1a01a456d9a27238c94 | [
"MIT"
] | null | null | null | core/api/OxfordAPI.py | vimarind/Complete-GRE-Vocab | 6dc8bb8ed0506ed572edd1a01a456d9a27238c94 | [
"MIT"
] | null | null | null | core/api/OxfordAPI.py | vimarind/Complete-GRE-Vocab | 6dc8bb8ed0506ed572edd1a01a456d9a27238c94 | [
"MIT"
] | null | null | null | import json
import requests
from os import path
class OxfordAPI:
def __init__(self, app_id, app_key, cache_path):
self.app_id = app_id
self.app_key = app_key
self.cache_path = cache_path
def __parse_sense(self, word, sense):
for definition in sense.get('definitions', list()):... | 38.111111 | 117 | 0.618724 | 390 | 3,087 | 4.705128 | 0.279487 | 0.034877 | 0.042507 | 0.019619 | 0.076294 | 0.035967 | 0.035967 | 0 | 0 | 0 | 0 | 0.000449 | 0.278264 | 3,087 | 80 | 118 | 38.5875 | 0.82316 | 0.12504 | 0 | 0.135593 | 0 | 0.016949 | 0.088948 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.152542 | false | 0 | 0.050847 | 0 | 0.271186 | 0.016949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9e1202ada111dfedf3e1239998ddc9e7e0c2bac2 | 2,568 | py | Python | linked_list.py | bentsi/data-structures | ce4a3a49ec131550ec0b77875b8f0367addcca05 | [
"Apache-2.0"
] | null | null | null | linked_list.py | bentsi/data-structures | ce4a3a49ec131550ec0b77875b8f0367addcca05 | [
"Apache-2.0"
] | null | null | null | linked_list.py | bentsi/data-structures | ce4a3a49ec131550ec0b77875b8f0367addcca05 | [
"Apache-2.0"
] | 1 | 2021-01-10T15:41:50.000Z | 2021-01-10T15:41:50.000Z | class Node:
def __init__(self, data=None):
self.data = data
self.next = None
class LinkedListIndexError(IndexError):
pass
class LinkedList:
def __init__(self):
self.head = Node()
def _get_last_node(self):
pointer = self.head
while pointer.next is not None:
... | 24.457143 | 73 | 0.550234 | 326 | 2,568 | 4.153374 | 0.180982 | 0.064993 | 0.044313 | 0.053176 | 0.251108 | 0.169867 | 0.169867 | 0.127031 | 0.127031 | 0 | 0 | 0.008824 | 0.338006 | 2,568 | 104 | 74 | 24.692308 | 0.787647 | 0 | 0 | 0.255814 | 0 | 0 | 0.06581 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162791 | false | 0.011628 | 0 | 0.034884 | 0.290698 | 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 |
9e14d6737904e50f196708249c8435de6151b062 | 2,768 | py | Python | custom_html_validator/custom_html_validator.py | koan-u/custom_html_validator | 1a6735146e64d3c346201d10eddfd9ebfe1377c2 | [
"MIT"
] | null | null | null | custom_html_validator/custom_html_validator.py | koan-u/custom_html_validator | 1a6735146e64d3c346201d10eddfd9ebfe1377c2 | [
"MIT"
] | null | null | null | custom_html_validator/custom_html_validator.py | koan-u/custom_html_validator | 1a6735146e64d3c346201d10eddfd9ebfe1377c2 | [
"MIT"
] | null | null | null | from html.parser import HTMLParser
class CustomHTMLValidater(HTMLParser):
__SINGLE_TAGS = [
'area','base','br','col','embed',
'hr','img','input','keygen','link',
'meta','param','source','track','wbr'
]
def __init__(self):
HTMLParser.__init__(self)
self.reset(True)
... | 33.756098 | 66 | 0.462789 | 264 | 2,768 | 4.511364 | 0.25 | 0.127624 | 0.105793 | 0.062972 | 0.347607 | 0.270361 | 0.270361 | 0.208228 | 0.208228 | 0 | 0 | 0.00811 | 0.420882 | 2,768 | 81 | 67 | 34.17284 | 0.734872 | 0 | 0 | 0.324324 | 0 | 0 | 0.126084 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0 | 0.013514 | 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 |
9e14d840b0d68fa20db94e8f512ad11ba709e64f | 1,841 | py | Python | boltfile.py | arahmanhamdy/bolt | 8f5d9b8149db833b54a7b353162b2c28a53c8aff | [
"MIT"
] | 15 | 2016-10-21T14:30:38.000Z | 2021-10-12T04:50:48.000Z | boltfile.py | arahmanhamdy/bolt | 8f5d9b8149db833b54a7b353162b2c28a53c8aff | [
"MIT"
] | 51 | 2016-02-05T01:24:32.000Z | 2019-12-09T16:52:20.000Z | boltfile.py | arahmanhamdy/bolt | 8f5d9b8149db833b54a7b353162b2c28a53c8aff | [
"MIT"
] | 6 | 2016-10-17T13:48:16.000Z | 2021-03-28T20:40:14.000Z | import logging
import os.path
import bolt
import bolt.about
PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
_src_dir = os.path.join(PROJECT_ROOT, 'bolt')
_test_dir = os.path.join(PROJECT_ROOT, 'test')
_output_dir = os.path.join(PROJECT_ROOT, 'output')
_coverage_dir = os.path.join(_output_dir, 'coverage')
... | 25.569444 | 78 | 0.523628 | 197 | 1,841 | 4.675127 | 0.329949 | 0.058632 | 0.065147 | 0.05646 | 0.140065 | 0.078176 | 0 | 0 | 0 | 0 | 0 | 0 | 0.293319 | 1,841 | 71 | 79 | 25.929577 | 0.707917 | 0.029875 | 0 | 0.032258 | 0 | 0 | 0.280584 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.064516 | 0 | 0.064516 | 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 |
9e158c914469c96413a23f9b7926f662ec188191 | 1,309 | py | Python | assignments/04_head/head.py | emma-huffman/biosystems-analytics-2020 | eaf9c084407fa6d25b815b7d63077ed9aec53447 | [
"MIT"
] | null | null | null | assignments/04_head/head.py | emma-huffman/biosystems-analytics-2020 | eaf9c084407fa6d25b815b7d63077ed9aec53447 | [
"MIT"
] | null | null | null | assignments/04_head/head.py | emma-huffman/biosystems-analytics-2020 | eaf9c084407fa6d25b815b7d63077ed9aec53447 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
Author : Me <me@foo.com>
Date : today
Purpose: Rock the Casbah
"""
import argparse
import io
import os
import sys
# --------------------------------------------------
def get_args():
"""Get command-line arguments"""
parser = argparse.ArgumentParser(
description='Rock the... | 23.375 | 66 | 0.450726 | 130 | 1,309 | 4.407692 | 0.561538 | 0.036649 | 0.045375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007982 | 0.330023 | 1,309 | 55 | 67 | 23.8 | 0.645382 | 0.220779 | 0 | 0 | 0 | 0 | 0.104104 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.121212 | 0 | 0.212121 | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9e1798f13a1e5958c9273e51efaff12141f4e76c | 9,497 | py | Python | js_components/cms_plugins.py | compoundpartners/js-components | a58a944254354078a0a7b53a4c9a7df50790267a | [
"BSD-3-Clause"
] | null | null | null | js_components/cms_plugins.py | compoundpartners/js-components | a58a944254354078a0a7b53a4c9a7df50790267a | [
"BSD-3-Clause"
] | null | null | null | js_components/cms_plugins.py | compoundpartners/js-components | a58a944254354078a0a7b53a4c9a7df50790267a | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import functools
import six
from django.utils.translation import ugettext_lazy as _
from django.template import TemplateDoesNotExist
from django.template.loader import select_template
from cms.plugin_base import CMSPluginBase, CMSPluginBaseMetaclass
from ... | 29.958991 | 134 | 0.666737 | 968 | 9,497 | 6.330579 | 0.202479 | 0.050914 | 0.041123 | 0.05483 | 0.332245 | 0.28688 | 0.259465 | 0.227807 | 0.212141 | 0.096606 | 0 | 0.000687 | 0.233126 | 9,497 | 316 | 135 | 30.053797 | 0.840725 | 0.023376 | 0 | 0.262548 | 0 | 0 | 0.178964 | 0.080906 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03861 | false | 0.003861 | 0.042471 | 0.007722 | 0.517375 | 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 |
9e18ddf285ec21f8d58dafd4142a06363020741a | 1,232 | py | Python | src/julia/tests/test_juliaoptions.py | dpinol/pyjulia | cec4bf0b0eac7e39cecd8f3e7882563062903d0f | [
"MIT"
] | 649 | 2016-09-09T07:38:19.000Z | 2022-03-28T04:30:55.000Z | src/julia/tests/test_juliaoptions.py | dpinol/pyjulia | cec4bf0b0eac7e39cecd8f3e7882563062903d0f | [
"MIT"
] | 362 | 2016-09-08T16:25:30.000Z | 2022-03-05T23:15:05.000Z | src/julia/tests/test_juliaoptions.py | dpinol/pyjulia | cec4bf0b0eac7e39cecd8f3e7882563062903d0f | [
"MIT"
] | 85 | 2016-11-08T09:32:44.000Z | 2022-03-03T13:10:37.000Z | import pytest
from julia.core import JuliaOptions
# fmt: off
@pytest.mark.parametrize("kwargs, args", [
({}, []),
(dict(compiled_modules=None), []),
(dict(compiled_modules=False), ["--compiled-modules", "no"]),
(dict(compiled_modules="no"), ["--compiled-modules", "no"]),
(dict(depwarn="error"), [... | 28 | 65 | 0.655844 | 149 | 1,232 | 5.328859 | 0.315436 | 0.11335 | 0.095718 | 0.085642 | 0.210327 | 0.083123 | 0 | 0 | 0 | 0 | 0 | 0.010659 | 0.162338 | 1,232 | 43 | 66 | 28.651163 | 0.758721 | 0.026786 | 0 | 0.21875 | 0 | 0 | 0.143216 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 1 | 0.09375 | false | 0 | 0.0625 | 0 | 0.15625 | 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 |
9e1b5f4b3183d1482047160b015715a1f35d97f0 | 389 | py | Python | lambda/exercices/PhotoCollector/photo_uploader_from_csv.py | Mythridor/aws-scripting | 5f978ae7f2b05a40862cbe35d766534fcc40fef0 | [
"MIT"
] | null | null | null | lambda/exercices/PhotoCollector/photo_uploader_from_csv.py | Mythridor/aws-scripting | 5f978ae7f2b05a40862cbe35d766534fcc40fef0 | [
"MIT"
] | null | null | null | lambda/exercices/PhotoCollector/photo_uploader_from_csv.py | Mythridor/aws-scripting | 5f978ae7f2b05a40862cbe35d766534fcc40fef0 | [
"MIT"
] | null | null | null | #! /usr/local/bin/Python3.5
import urllib.request
with open("images.csv", 'r') as csv:
i = 0
for line in csv:
line = line.split(',')
if line[1] != '' and line[1] != "\n":
urllib.request.urlretrieve(line[1].encode('utf-8'), ("img_" + str(i) + ".jpg").encode('utf-8'))
pri... | 25.933333 | 107 | 0.524422 | 57 | 389 | 3.561404 | 0.631579 | 0.073892 | 0.147783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.254499 | 389 | 14 | 108 | 27.785714 | 0.665517 | 0.066838 | 0 | 0 | 0 | 0 | 0.157459 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9e1b7c970fedf5252f5d2635e9703e31344e54e5 | 1,031 | py | Python | src/main/tools/api.py | NGnius/streamq | aa31085befc7da2e3f7461698b2638a246a73eef | [
"MIT"
] | null | null | null | src/main/tools/api.py | NGnius/streamq | aa31085befc7da2e3f7461698b2638a246a73eef | [
"MIT"
] | null | null | null | src/main/tools/api.py | NGnius/streamq | aa31085befc7da2e3f7461698b2638a246a73eef | [
"MIT"
] | null | null | null | '''
API-related functions in one spot for convenience
Created by NGnius 2019-06-15
'''
from flask import jsonify, request
from threading import Semaphore, RLock
def get_param(param, silent=False):
if request.method == 'GET':
return request.args.get(param)
else:
try:
return request... | 26.435897 | 69 | 0.693501 | 124 | 1,031 | 5.629032 | 0.459677 | 0.114613 | 0.111748 | 0.080229 | 0.229226 | 0.12894 | 0 | 0 | 0 | 0 | 0 | 0.014742 | 0.210475 | 1,031 | 38 | 70 | 27.131579 | 0.842752 | 0.076625 | 0 | 0.214286 | 0 | 0 | 0.01589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 0 | 0.357143 | 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 |
9e1bee51dd0ea1878f4a4736c40b34f0977aa174 | 3,968 | py | Python | built-in/PyTorch/Official/cv/image_classification/MobileNetV1_ID0094_for_PyTorch/benchmark.py | Ascend/modelzoo | f018cfed33dbb1cc2110b9ea2e233333f71cc509 | [
"Apache-2.0"
] | 12 | 2020-12-13T08:34:24.000Z | 2022-03-20T15:17:17.000Z | built-in/PyTorch/Official/cv/image_classification/MobileNetV1_ID0094_for_PyTorch/benchmark.py | Ascend/modelzoo | f018cfed33dbb1cc2110b9ea2e233333f71cc509 | [
"Apache-2.0"
] | 1 | 2022-01-20T03:11:05.000Z | 2022-01-20T06:53:39.000Z | built-in/PyTorch/Official/cv/image_classification/MobileNetV1_ID0094_for_PyTorch/benchmark.py | Ascend/modelzoo | f018cfed33dbb1cc2110b9ea2e233333f71cc509 | [
"Apache-2.0"
] | 2 | 2021-07-10T12:40:46.000Z | 2021-12-17T07:55:15.000Z | # BSD 3-Clause License
#
# Copyright (c) 2017 xxxx
# All rights reserved.
# Copyright 2021 Huawei Technologies Co., Ltd
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain th... | 35.115044 | 80 | 0.618952 | 522 | 3,968 | 4.641762 | 0.394636 | 0.034668 | 0.023112 | 0.024763 | 0.17499 | 0.15518 | 0.15518 | 0.15518 | 0.15518 | 0.086669 | 0 | 0.056791 | 0.263357 | 3,968 | 112 | 81 | 35.428571 | 0.772152 | 0.421119 | 0 | 0.191176 | 0 | 0 | 0.024746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073529 | false | 0 | 0.088235 | 0.029412 | 0.220588 | 0.014706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9e1da62e19fe4f3008c5d21f24d0decbe6f6039d | 1,012 | py | Python | client/setup.py | nnabeyang/tepra-lite-esp32 | 69cbbafce6a3f8b0214178cc80d2fea024ab8c07 | [
"MIT"
] | 33 | 2021-09-04T08:46:48.000Z | 2022-02-04T08:12:55.000Z | client/setup.py | nnabeyang/tepra-lite-esp32 | 69cbbafce6a3f8b0214178cc80d2fea024ab8c07 | [
"MIT"
] | 2 | 2021-09-28T12:05:21.000Z | 2021-12-11T04:08:04.000Z | client/setup.py | nnabeyang/tepra-lite-esp32 | 69cbbafce6a3f8b0214178cc80d2fea024ab8c07 | [
"MIT"
] | 2 | 2021-09-28T10:51:27.000Z | 2021-12-10T09:56:22.000Z | from setuptools import setup, find_packages
__version__ = '1.0.0'
__author__ = 'Takumi Sueda'
__author_email__ = 'puhitaku@gmail.com'
__license__ = 'MIT License'
__classifiers__ = (
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Progra... | 29.764706 | 74 | 0.6917 | 115 | 1,012 | 5.626087 | 0.66087 | 0.051005 | 0.07728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011848 | 0.166008 | 1,012 | 33 | 75 | 30.666667 | 0.754739 | 0 | 0 | 0 | 0 | 0 | 0.389328 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033333 | 0 | 0.033333 | 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 |
9e210cf9cae77591487ca0d70ca7341aca8bd44a | 16,303 | py | Python | src/colorpredicate.py | petrusmassabki/color-predicate | 828f62b50985cb795aa5b5743e4f7e5c305d2175 | [
"MIT"
] | null | null | null | src/colorpredicate.py | petrusmassabki/color-predicate | 828f62b50985cb795aa5b5743e4f7e5c305d2175 | [
"MIT"
] | null | null | null | src/colorpredicate.py | petrusmassabki/color-predicate | 828f62b50985cb795aa5b5743e4f7e5c305d2175 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
import colorsys
import cv2
import numpy as np
from scipy.stats import multivariate_normal
from matplotlib import pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
class ColorPredicate:
def __init__(self, name, images_path, n_max=10):
self.name = name
self._t... | 37.825986 | 90 | 0.56235 | 1,937 | 16,303 | 4.538462 | 0.170883 | 0.032761 | 0.051189 | 0.026391 | 0.31009 | 0.249005 | 0.19884 | 0.148334 | 0.119213 | 0.098737 | 0 | 0.02397 | 0.344906 | 16,303 | 430 | 91 | 37.913953 | 0.799157 | 0.249831 | 0 | 0.12069 | 0 | 0 | 0.068978 | 0.018254 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064655 | false | 0 | 0.030172 | 0.021552 | 0.150862 | 0.030172 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9e23d085a14f192cef141c0732be27df361cf10b | 4,456 | py | Python | tests/test_basic_train.py | maxwellmckinnon/fastai | b67bf7184ac2be1825697709051c5bcba058a40d | [
"Apache-2.0"
] | 1 | 2019-04-08T09:52:28.000Z | 2019-04-08T09:52:28.000Z | tests/test_basic_train.py | maxwellmckinnon/fastai | b67bf7184ac2be1825697709051c5bcba058a40d | [
"Apache-2.0"
] | null | null | null | tests/test_basic_train.py | maxwellmckinnon/fastai | b67bf7184ac2be1825697709051c5bcba058a40d | [
"Apache-2.0"
] | 1 | 2020-05-19T12:56:20.000Z | 2020-05-19T12:56:20.000Z | """
module: basic_train.py - Model fitting methods
docs : https://docs.fast.ai/train.html
"""
import pytest, fastai
from fastai.vision import *
from utils.fakes import *
from utils.text import *
from utils.mem import *
from fastai.utils.mem import *
from math import isclose
torch_preload_mem()
@pytest.fixture(scope... | 38.08547 | 134 | 0.710727 | 704 | 4,456 | 4.353693 | 0.308239 | 0.021533 | 0.042414 | 0.041109 | 0.416639 | 0.346493 | 0.301468 | 0.274388 | 0.263948 | 0.218271 | 0 | 0.014038 | 0.184695 | 4,456 | 116 | 135 | 38.413793 | 0.829617 | 0.269973 | 0 | 0.422535 | 0 | 0 | 0.113834 | 0.040633 | 0 | 0 | 0 | 0 | 0.084507 | 1 | 0.112676 | false | 0 | 0.098592 | 0.014085 | 0.239437 | 0.014085 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f508079561b7a2a57df3ea9bb24da6c3cf24ed29 | 13,454 | py | Python | examples/cartpole_example/test/cartpole_PID_MPC_sim.py | marcosfelt/sysid-neural-structures-fitting | 80eda427251e8cce1d2a565b5cbca533252315e4 | [
"MIT"
] | 17 | 2019-11-15T06:27:05.000Z | 2021-10-02T14:24:25.000Z | examples/cartpole_example/test/cartpole_PID_MPC_sim.py | marcosfelt/sysid-neural-structures-fitting | 80eda427251e8cce1d2a565b5cbca533252315e4 | [
"MIT"
] | null | null | null | examples/cartpole_example/test/cartpole_PID_MPC_sim.py | marcosfelt/sysid-neural-structures-fitting | 80eda427251e8cce1d2a565b5cbca533252315e4 | [
"MIT"
] | 4 | 2020-09-03T17:01:34.000Z | 2021-11-05T04:09:24.000Z | import numpy as np
import scipy.sparse as sparse
from scipy.integrate import ode
from scipy.interpolate import interp1d
import time
import control
import control.matlab
import numpy.random
import pandas as pd
from ltisim import LinearStateSpaceSystem
from pendulum_model import *
from pyMPC.mpc import MPCController
# R... | 33.219753 | 179 | 0.612829 | 2,278 | 13,454 | 3.330553 | 0.147498 | 0.008699 | 0.041518 | 0.060894 | 0.185317 | 0.114802 | 0.07816 | 0.050481 | 0.043627 | 0.027943 | 0 | 0.03406 | 0.242753 | 13,454 | 404 | 180 | 33.30198 | 0.71064 | 0.156162 | 0 | 0.031579 | 0 | 0 | 0.058469 | 0.001863 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014035 | false | 0 | 0.049123 | 0.007018 | 0.077193 | 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 |
f50910b14f5b09655a9e1eaecc696a5cfe950b0f | 4,923 | py | Python | settings.py | msetzu/data-mining | 9e01d00964004dea4a2aea88dfe855f785302ef1 | [
"MIT"
] | 1 | 2018-10-09T14:41:59.000Z | 2018-10-09T14:41:59.000Z | settings.py | msetzu/data-mining | 9e01d00964004dea4a2aea88dfe855f785302ef1 | [
"MIT"
] | null | null | null | settings.py | msetzu/data-mining | 9e01d00964004dea4a2aea88dfe855f785302ef1 | [
"MIT"
] | null | null | null | import pandas as pd
from matplotlib.colors import LinearSegmentedColormap
# Dataset
data = pd.read_csv("./hr.csv")
entries = len(data)
bins = 10
# Data analysis
analysis = {
"bins": 10,
"balance_threshold": 0.1
}
# Plot labels
labels = ["satisfaction_level",
"average_montly_hours",
"last_... | 30.018293 | 98 | 0.487508 | 407 | 4,923 | 5.712531 | 0.425061 | 0.04129 | 0.021935 | 0.025806 | 0.141935 | 0.076559 | 0.076559 | 0.076559 | 0.076559 | 0.076559 | 0 | 0.055716 | 0.365631 | 4,923 | 163 | 99 | 30.202454 | 0.688761 | 0.028641 | 0 | 0.256944 | 0 | 0 | 0.307144 | 0.0088 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.013889 | 0 | 0.013889 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f509ca15e0e12b426c5e187595364f7eea92a920 | 397 | py | Python | GCD - Euclidean (Basic)/Python3/gcdEuclid.py | i-vishi/ds-and-algo | 90a8635db9570eb17539201be29ec1cfd4b5ae18 | [
"MIT"
] | 1 | 2021-03-01T04:15:08.000Z | 2021-03-01T04:15:08.000Z | GCD - Euclidean (Basic)/Python3/gcdEuclid.py | i-vishi/ds-and-algo | 90a8635db9570eb17539201be29ec1cfd4b5ae18 | [
"MIT"
] | null | null | null | GCD - Euclidean (Basic)/Python3/gcdEuclid.py | i-vishi/ds-and-algo | 90a8635db9570eb17539201be29ec1cfd4b5ae18 | [
"MIT"
] | null | null | null | # Author: Vishal Gaur
# Created: 17-01-2021 20:31:34
# function to find GCD using Basic Euclidean Algorithm
def gcdEuclid(a, b):
if a == 0:
return b
else:
return gcdEuclid(b % a, a)
# Driver Code to test above function
a = 14
b = 35
g = gcdEuclid(a, b)
print("GCD of", a, "&", b, "is: ", ... | 17.26087 | 54 | 0.566751 | 69 | 397 | 3.26087 | 0.550725 | 0.044444 | 0.146667 | 0.106667 | 0.24 | 0.24 | 0.24 | 0.24 | 0.24 | 0.24 | 0 | 0.083045 | 0.27204 | 397 | 22 | 55 | 18.045455 | 0.695502 | 0.352645 | 0 | 0.307692 | 0 | 0 | 0.087302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.230769 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f50f1a90c240661a8974cc7923b38f46dce70bae | 29,856 | py | Python | views.py | milos-korenciak/2018.ossconf.sk | f121dde4f313a207e39c2f2e187bdad046b86592 | [
"MIT"
] | 7 | 2017-07-16T05:59:07.000Z | 2018-01-22T09:35:21.000Z | views.py | milos-korenciak/2018.ossconf.sk | f121dde4f313a207e39c2f2e187bdad046b86592 | [
"MIT"
] | 17 | 2017-07-31T20:35:24.000Z | 2018-02-26T22:00:12.000Z | views.py | milos-korenciak/2018.ossconf.sk | f121dde4f313a207e39c2f2e187bdad046b86592 | [
"MIT"
] | 13 | 2017-08-01T17:03:40.000Z | 2021-11-02T13:24:30.000Z | #!/usr/bin/python
# -*- coding: utf8 -*-
import os
import re
import textwrap
import requests
import unicodedata
from datetime import datetime, timedelta
from flask import Flask, g, request, render_template, abort, make_response
from flask_babel import Babel, gettext
from jinja2 import evalcontextfilter, Markup
app = ... | 36.81381 | 190 | 0.612775 | 3,584 | 29,856 | 4.967913 | 0.202288 | 0.049874 | 0.027183 | 0.044482 | 0.322101 | 0.259197 | 0.224824 | 0.194945 | 0.190171 | 0.141589 | 0 | 0.017354 | 0.224109 | 29,856 | 810 | 191 | 36.859259 | 0.751133 | 0.064811 | 0 | 0.203498 | 0 | 0.00318 | 0.293575 | 0.021262 | 0 | 0 | 0 | 0.001235 | 0 | 1 | 0.050874 | false | 0 | 0.014308 | 0.014308 | 0.120827 | 0.00159 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f510f358811538f9c09860ccdb42030579e71a1a | 928 | py | Python | scripts/fishvalidate.py | justinbois/fishactivity | 6c6ac06c391b75b2725e2e2a61dd80afc34daf31 | [
"MIT"
] | null | null | null | scripts/fishvalidate.py | justinbois/fishactivity | 6c6ac06c391b75b2725e2e2a61dd80afc34daf31 | [
"MIT"
] | null | null | null | scripts/fishvalidate.py | justinbois/fishactivity | 6c6ac06c391b75b2725e2e2a61dd80afc34daf31 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import argparse
import fishact
if __name__ == '__main__':
parser = argparse.ArgumentParser(
description='Validate data files.')
parser.add_argument('activity_fname', metavar='activity_file', type=str,
help='Name of activity file.')
parser.add_argument... | 37.12 | 78 | 0.519397 | 86 | 928 | 5.348837 | 0.395349 | 0.104348 | 0.073913 | 0.065217 | 0.091304 | 0.091304 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167026 | 928 | 24 | 79 | 38.666667 | 0.595084 | 0.021552 | 0 | 0.166667 | 0 | 0 | 0.409041 | 0.218302 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 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 |
f513b5c28a4eaca8eb08a50fccfcd5204171dfdc | 1,682 | py | Python | scripts/rescale.py | danydoerr/spp_dcj | 1ab9dacb1f0dc34a3ebbeed9e74226a9a53c297a | [
"MIT"
] | 2 | 2021-08-24T16:03:30.000Z | 2022-03-18T14:52:43.000Z | scripts/rescale.py | danydoerr/spp_dcj | 1ab9dacb1f0dc34a3ebbeed9e74226a9a53c297a | [
"MIT"
] | null | null | null | scripts/rescale.py | danydoerr/spp_dcj | 1ab9dacb1f0dc34a3ebbeed9e74226a9a53c297a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from sys import stdout,stderr,exit
from optparse import OptionParser
from newick_parser import parse_tree_iterator, Branch
from tree_span import calculateSpan
from copy import deepcopy
def rescale_absolute(tree, max_length):
span = calculateSpan(tree)
s = max_length/float(span)
retu... | 29 | 75 | 0.633175 | 211 | 1,682 | 4.909953 | 0.369668 | 0.084942 | 0.032819 | 0.028958 | 0.067568 | 0.067568 | 0.067568 | 0.067568 | 0 | 0 | 0 | 0.007924 | 0.249703 | 1,682 | 57 | 76 | 29.508772 | 0.812995 | 0.012485 | 0 | 0.095238 | 0 | 0 | 0.159228 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.119048 | 0 | 0.214286 | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f51915e704bb43425413f02d24086079a01a04be | 743 | py | Python | mytest/playsnake.py | mrzhuzhe/stable-baselines3 | 6c3bc5fa4c3faba951099e3ccb5c74b763134b38 | [
"MIT"
] | null | null | null | mytest/playsnake.py | mrzhuzhe/stable-baselines3 | 6c3bc5fa4c3faba951099e3ccb5c74b763134b38 | [
"MIT"
] | null | null | null | mytest/playsnake.py | mrzhuzhe/stable-baselines3 | 6c3bc5fa4c3faba951099e3ccb5c74b763134b38 | [
"MIT"
] | null | null | null | from stable_baselines3 import PPO
import os
from setup_gym_env import SnakeEnv
import time
#models_dir = "./models/1644408901/" + "40000"
#models_dir = "./models/1644462865/" + "120000"
#models_dir = "./models/1644466638/" + "100000"
models_dir = "./models/1644485414/" + "100000"
env = SnakeEnv()
env.reset()
model ... | 22.515152 | 50 | 0.641992 | 94 | 743 | 4.978723 | 0.531915 | 0.096154 | 0.128205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114187 | 0.222073 | 743 | 32 | 51 | 23.21875 | 0.695502 | 0.314939 | 0 | 0 | 0 | 0 | 0.051896 | 0 | 0.055556 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f519a4dd8609848cb4fec6b2221b463e32b9ae3b | 13,105 | py | Python | yoda2h5.py | iamholger/yodf5 | 79ad8d77fd2b48e1b71403339e2502b42a5435c8 | [
"MIT"
] | 4 | 2020-04-22T11:00:13.000Z | 2020-12-16T17:49:47.000Z | yoda2h5.py | iamholger/yodf5 | 79ad8d77fd2b48e1b71403339e2502b42a5435c8 | [
"MIT"
] | 4 | 2020-12-17T16:26:16.000Z | 2020-12-17T16:30:34.000Z | yoda2h5.py | iamholger/yodf5 | 79ad8d77fd2b48e1b71403339e2502b42a5435c8 | [
"MIT"
] | 2 | 2020-05-06T17:30:05.000Z | 2020-12-16T17:58:23.000Z | #!/usr/bin/env python3
import yoda, sys
import h5py
import numpy as np
def chunkIt(seq, num):
avg = len(seq) / float(num)
out = []
last = 0.0
while last < len(seq):
out.append(seq[int(last):int(last + avg)])
last += avg
# Fix size, sometimes there is spillover
# TODO: replac... | 37.766571 | 184 | 0.546814 | 1,743 | 13,105 | 4.084911 | 0.193919 | 0.040309 | 0.073034 | 0.078652 | 0.369101 | 0.317837 | 0.301404 | 0.289888 | 0.284831 | 0.225 | 0 | 0.032338 | 0.256696 | 13,105 | 346 | 185 | 37.875723 | 0.698594 | 0.27707 | 0 | 0.148837 | 0 | 0 | 0.0815 | 0 | 0 | 0 | 0 | 0.00578 | 0 | 1 | 0.060465 | false | 0 | 0.037209 | 0.018605 | 0.162791 | 0.018605 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f51c993aef58b3c9c160f8b68cd78fc8daf5ff42 | 1,703 | py | Python | main.py | RichezA/UnRecurZipper | dffe16811e3d79fdc20e0aada0f2ffe9c77da9a1 | [
"MIT"
] | null | null | null | main.py | RichezA/UnRecurZipper | dffe16811e3d79fdc20e0aada0f2ffe9c77da9a1 | [
"MIT"
] | null | null | null | main.py | RichezA/UnRecurZipper | dffe16811e3d79fdc20e0aada0f2ffe9c77da9a1 | [
"MIT"
] | null | null | null | import zipfile
import os
import glob
import sys
# Actual directory that we could find somewhere
class Folder:
def __init__(self, path):
self.path = path
print("Current working folder is: " + self.path)
self.checkForZippedFile()
self.checkForDirectories()
def checkForZip... | 47.305556 | 116 | 0.593658 | 197 | 1,703 | 5.091371 | 0.436548 | 0.047856 | 0.023928 | 0.027916 | 0.035892 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001736 | 0.323547 | 1,703 | 36 | 117 | 47.305556 | 0.868924 | 0.235467 | 0 | 0 | 0 | 0 | 0.066563 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.142857 | 0 | 0.285714 | 0.107143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f51fe70db140c3154b176531ad8f28b9ef267b5a | 1,974 | py | Python | predict_CNN.py | slimtomatillo/toxic_waste_dump | 4bc820f0b31f4420e789af11a9338c475c068889 | [
"MIT"
] | 2 | 2018-07-13T16:44:24.000Z | 2019-10-14T21:31:02.000Z | predict_CNN.py | slimtomatillo/toxic_waste_dump | 4bc820f0b31f4420e789af11a9338c475c068889 | [
"MIT"
] | null | null | null | predict_CNN.py | slimtomatillo/toxic_waste_dump | 4bc820f0b31f4420e789af11a9338c475c068889 | [
"MIT"
] | null | null | null | # Imports
import pandas as pd
import pickle
from keras.models import load_model
from preprocess import preprocess
from preprocess import prep_text
#Logging
import logging
logging.getLogger().setLevel(logging.INFO)
logging.info('Loading comments to classify...')
# Enter comment to be classified below
comment_to_class... | 24.675 | 78 | 0.670719 | 250 | 1,974 | 5.16 | 0.412 | 0.05969 | 0.046512 | 0.029457 | 0.075969 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008486 | 0.223911 | 1,974 | 79 | 79 | 24.987342 | 0.833551 | 0.241135 | 0 | 0.05 | 0 | 0 | 0.187326 | 0.037604 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.15 | 0 | 0.225 | 0.15 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f5209853412f11170538a00e749d5b0ede34e2eb | 797 | py | Python | 299. Bulls and Cows.py | fossabot/leetcode-2 | 335f1aa3ee785320515c3d3f03c2cb2df3bc13ba | [
"MIT"
] | 2 | 2018-02-26T09:12:19.000Z | 2019-06-07T13:38:10.000Z | 299. Bulls and Cows.py | fossabot/leetcode-2 | 335f1aa3ee785320515c3d3f03c2cb2df3bc13ba | [
"MIT"
] | 1 | 2018-12-24T07:03:34.000Z | 2018-12-24T07:03:34.000Z | 299. Bulls and Cows.py | fossabot/leetcode-2 | 335f1aa3ee785320515c3d3f03c2cb2df3bc13ba | [
"MIT"
] | 2 | 2018-12-24T07:01:03.000Z | 2019-06-07T13:38:07.000Z | class Solution(object):
def getHint(self, secret, guess):
"""
:type secret: str
:type guess: str
:rtype: str
"""
dic = {}
countA = 0
setA = set()
for i in range(len(secret)):
if secret[i] == guess[i]:
countA += 1
... | 28.464286 | 46 | 0.385194 | 92 | 797 | 3.336957 | 0.347826 | 0.09772 | 0.087948 | 0.071661 | 0.091205 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019704 | 0.49059 | 797 | 27 | 47 | 29.518519 | 0.736453 | 0.057716 | 0 | 0 | 0 | 0 | 0.002813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0 | 0 | 0.136364 | 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 |
f528bf891d405b1631574286911aea9a15dea4b2 | 1,566 | py | Python | codesmith/CloudFormation/CogCondPreAuthSettings/cog_cond_pre_auth_settings.py | codesmith-gmbh/forge | 43c334d829a727b48f8e21e273017c51394010f9 | [
"Apache-2.0"
] | null | null | null | codesmith/CloudFormation/CogCondPreAuthSettings/cog_cond_pre_auth_settings.py | codesmith-gmbh/forge | 43c334d829a727b48f8e21e273017c51394010f9 | [
"Apache-2.0"
] | null | null | null | codesmith/CloudFormation/CogCondPreAuthSettings/cog_cond_pre_auth_settings.py | codesmith-gmbh/forge | 43c334d829a727b48f8e21e273017c51394010f9 | [
"Apache-2.0"
] | null | null | null | import json
import logging
import boto3
from box import Box
from crhelper import CfnResource
from schema import Optional
import codesmith.common.naming as naming
from codesmith.common.cfn import resource_properties
from codesmith.common.schema import encoded_bool, non_empty_string, tolerant_schema
from codesmith.comm... | 29.54717 | 99 | 0.751596 | 198 | 1,566 | 5.686869 | 0.353535 | 0.053286 | 0.050622 | 0.044405 | 0.053286 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001502 | 0.149425 | 1,566 | 52 | 100 | 30.115385 | 0.843844 | 0 | 0 | 0 | 0 | 0 | 0.070881 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102564 | false | 0 | 0.25641 | 0.051282 | 0.435897 | 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 |
f52d16005d54fc06009e6a33b0d9fa26ef35fd47 | 2,093 | py | Python | dl_tutorials/torch_neural_networks.py | learnerzhang/AnalyticsVidhya | 697689a24a9d73785164512cab8ac4ee5494afe8 | [
"Apache-2.0"
] | 1 | 2018-07-04T09:14:26.000Z | 2018-07-04T09:14:26.000Z | dl_tutorials/torch_neural_networks.py | learnerzhang/AnalyticsVidhya | 697689a24a9d73785164512cab8ac4ee5494afe8 | [
"Apache-2.0"
] | null | null | null | dl_tutorials/torch_neural_networks.py | learnerzhang/AnalyticsVidhya | 697689a24a9d73785164512cab8ac4ee5494afe8 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019-01-02 16:44
# @Author : zhangzhen
# @Site :
# @File : torch_neural_networks.py
# @Software: PyCharm
import torch
import torch.nn as nn
import torch.nn.functional as F
class Net(nn.Module):
def __init__(self):
super(Net, self).__init_... | 26.493671 | 77 | 0.592929 | 313 | 2,093 | 3.837061 | 0.373802 | 0.006661 | 0.029975 | 0.037469 | 0.149875 | 0.131557 | 0.083264 | 0.049958 | 0 | 0 | 0 | 0.055087 | 0.262781 | 2,093 | 78 | 78 | 26.833333 | 0.723266 | 0.180602 | 0 | 0.040816 | 0 | 0 | 0.047114 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061224 | false | 0 | 0.061224 | 0 | 0.183673 | 0.265306 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f52ec88be52c378180af93ce81749dca618e2061 | 2,577 | py | Python | shldn/leonard.py | arrieta/shldn | 8335aaeb1bfe91698bd9dfb83487393ede9225e6 | [
"MIT"
] | null | null | null | shldn/leonard.py | arrieta/shldn | 8335aaeb1bfe91698bd9dfb83487393ede9225e6 | [
"MIT"
] | null | null | null | shldn/leonard.py | arrieta/shldn | 8335aaeb1bfe91698bd9dfb83487393ede9225e6 | [
"MIT"
] | null | null | null | """
Leonard always DRIVES Sheldon (this module is the __main__ driver for Sheldon)
"""
import argparse
import sys
import os
try:
from cooper import Sheldon
except:
from .cooper import Sheldon
# Extensions for python source files
EXTENSIONS = [".py", ".mpy"]
def parse_commandline():
parser = argparse.Argu... | 28.633333 | 89 | 0.592549 | 303 | 2,577 | 4.887789 | 0.376238 | 0.06077 | 0.037812 | 0.042539 | 0.207968 | 0.190412 | 0.097232 | 0.070223 | 0.070223 | 0.070223 | 0 | 0.001664 | 0.300349 | 2,577 | 89 | 90 | 28.955056 | 0.819745 | 0.064804 | 0 | 0.129032 | 0 | 0 | 0.141785 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.080645 | 0 | 0.177419 | 0.129032 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f52efbe88e2653ae5d1fd37a74f972d83828b114 | 40,749 | py | Python | Lib/site-packages/cherrypy/test/test_core.py | raychorn/svn_Python-2.5.1 | 425005b1b489ba44ec0bb989e077297e8953d9be | [
"PSF-2.0"
] | null | null | null | Lib/site-packages/cherrypy/test/test_core.py | raychorn/svn_Python-2.5.1 | 425005b1b489ba44ec0bb989e077297e8953d9be | [
"PSF-2.0"
] | null | null | null | Lib/site-packages/cherrypy/test/test_core.py | raychorn/svn_Python-2.5.1 | 425005b1b489ba44ec0bb989e077297e8953d9be | [
"PSF-2.0"
] | null | null | null | """Basic tests for the CherryPy core: request handling."""
from cherrypy.test import test
test.prefer_parent_path()
import cherrypy
from cherrypy import _cptools, tools
from cherrypy.lib import http, static
import types
import os
localDir = os.path.dirname(__file__)
log_file = os.path.join(localDir, "test.log")
log_... | 38.370056 | 104 | 0.545289 | 4,490 | 40,749 | 4.888419 | 0.167261 | 0.052622 | 0.023372 | 0.016766 | 0.374869 | 0.331678 | 0.270582 | 0.214042 | 0.208711 | 0.182195 | 0 | 0.024893 | 0.323713 | 40,749 | 1,061 | 105 | 38.406221 | 0.771573 | 0.132028 | 0 | 0.254821 | 0 | 0.006887 | 0.248116 | 0.083966 | 0 | 0 | 0 | 0 | 0.232782 | 1 | 0.114325 | false | 0.002755 | 0.011019 | 0.03168 | 0.210744 | 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 |
f52efca4ad0dbdcec53aee2fa61bc784274e7d40 | 1,036 | py | Python | day4/solution1.py | zirne/aoc19 | 98feea895f0113ef60738723ca976dcbef0629b9 | [
"MIT"
] | null | null | null | day4/solution1.py | zirne/aoc19 | 98feea895f0113ef60738723ca976dcbef0629b9 | [
"MIT"
] | null | null | null | day4/solution1.py | zirne/aoc19 | 98feea895f0113ef60738723ca976dcbef0629b9 | [
"MIT"
] | null | null | null | # Solution 1
def readInputFile(filename):
f = open(filename, "r")
inputString = f.read()
f.close()
return inputString
input = readInputFile("input.txt").strip()
print(input)
lowest = input.split("-")[0]
highest = input.split("-")[1]
current = int(input.split("-")[0])
print(lowest)
print(highest)
def checkNever... | 18.836364 | 70 | 0.621622 | 145 | 1,036 | 4.441379 | 0.275862 | 0.031056 | 0.018634 | 0.018634 | 0.14441 | 0.14441 | 0.14441 | 0.14441 | 0.14441 | 0.10559 | 0 | 0.021557 | 0.194015 | 1,036 | 55 | 71 | 18.836364 | 0.749701 | 0.189189 | 0 | 0.35 | 0 | 0 | 0.015569 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | false | 0 | 0 | 0 | 0.2 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f52fa19632597f93eba421103fbc7100653b7f9d | 763 | py | Python | e2e/Tests/Transactions/Verify.py | rikublock/Meros | 7a3ae9c78af388eb523bc8a2c840018fc058ef44 | [
"CC0-1.0"
] | null | null | null | e2e/Tests/Transactions/Verify.py | rikublock/Meros | 7a3ae9c78af388eb523bc8a2c840018fc058ef44 | [
"CC0-1.0"
] | null | null | null | e2e/Tests/Transactions/Verify.py | rikublock/Meros | 7a3ae9c78af388eb523bc8a2c840018fc058ef44 | [
"CC0-1.0"
] | 1 | 2021-02-08T23:46:35.000Z | 2021-02-08T23:46:35.000Z | #Transactions classes.
from e2e.Classes.Transactions.Transaction import Transaction
from e2e.Classes.Transactions.Transactions import Transactions
#TestError Exception.
from e2e.Tests.Errors import TestError
#RPC class.
from e2e.Meros.RPC import RPC
#Sleep standard function.
from time import sleep
#Verify a Transac... | 23.84375 | 80 | 0.756225 | 96 | 763 | 6.010417 | 0.46875 | 0.048527 | 0.048527 | 0.090121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007634 | 0.141547 | 763 | 31 | 81 | 24.612903 | 0.873282 | 0.214941 | 0 | 0.222222 | 0 | 0 | 0.087838 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.277778 | 0 | 0.388889 | 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 |