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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2b12f3629401ad872cdd3dca5b9f368a29efe45c | 222 | py | Python | django_dapp/serializers.py | phonkee/django-desktopapp | bd89434470c9d80074e8911d24059f962934c52a | [
"MIT"
] | null | null | null | django_dapp/serializers.py | phonkee/django-desktopapp | bd89434470c9d80074e8911d24059f962934c52a | [
"MIT"
] | null | null | null | django_dapp/serializers.py | phonkee/django-desktopapp | bd89434470c9d80074e8911d24059f962934c52a | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import Release
class ReleaseSerializer(serializers.ModelSerializer):
class Meta:
model = Release
fields = ('version', 'release_notes', 'checksum')
| 22.2 | 57 | 0.725225 | 22 | 222 | 7.227273 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193694 | 222 | 9 | 58 | 24.666667 | 0.888268 | 0 | 0 | 0 | 0 | 0 | 0.126126 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2b1ef78f66442d8dc660d5d2714f8d96338d95ef | 793 | py | Python | testing/utilities/client.py | boidolr/git-code-debt | 63b153571ca7a172f9a2d68732215ea4f72702c8 | [
"MIT"
] | 213 | 2017-05-27T10:49:05.000Z | 2022-03-30T14:57:07.000Z | testing/utilities/client.py | boidolr/git-code-debt | 63b153571ca7a172f9a2d68732215ea4f72702c8 | [
"MIT"
] | 22 | 2017-08-15T02:15:11.000Z | 2021-06-28T09:04:39.000Z | testing/utilities/client.py | Smirenost/git-code-debt | b31fd5332c58964782a7c0e4e8abf27d2163a611 | [
"MIT"
] | 17 | 2017-05-29T06:17:58.000Z | 2022-03-17T11:55:45.000Z | import json
from typing import TYPE_CHECKING
import flask.testing
import pyquery
class Response:
"""A Response wraps a response from a testing Client."""
def __init__(self, response):
self.response = response
@property
def text(self):
return self.response.data.decode(self.response.c... | 20.868421 | 74 | 0.680958 | 99 | 793 | 5.393939 | 0.40404 | 0.089888 | 0.082397 | 0.123596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216898 | 793 | 37 | 75 | 21.432432 | 0.859903 | 0.145019 | 0 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.173913 | 0.173913 | 0.652174 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
2b2c9ca5d08ef4a436eeb72deb567609be45e3e7 | 590 | py | Python | scripts/python/misc/imports.py | ScottLongmore/MIRS_TC | 51c3964b8192f71716f075fbe3fd2ffbdb656fb5 | [
"BSD-3-Clause"
] | 1 | 2020-04-03T05:26:32.000Z | 2020-04-03T05:26:32.000Z | scripts/python/misc/imports.py | ScottLongmore/MIRS_TC | 51c3964b8192f71716f075fbe3fd2ffbdb656fb5 | [
"BSD-3-Clause"
] | null | null | null | scripts/python/misc/imports.py | ScottLongmore/MIRS_TC | 51c3964b8192f71716f075fbe3fd2ffbdb656fb5 | [
"BSD-3-Clause"
] | null | null | null | import os
import sys
import re
import shutil
import copy
import glob
import datetime
import operator
import collections
from itertools import izip
import math
import imp
#import importlib
import subprocess
import tarfile
import StringIO
import pickle
import gzip
import optparse
import ConfigParser
import json
impor... | 14.047619 | 41 | 0.840678 | 81 | 590 | 6.098765 | 0.530864 | 0.097166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005941 | 0.144068 | 590 | 41 | 42 | 14.390244 | 0.972277 | 0.230508 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
2b331ccd8b969f3162012f784d6b59e92e7100b7 | 106 | py | Python | brandeis_classes/__init__.py | 9999years/brandeis-classes | e43d0227bafb4562d533565f3e94cd799ce636b8 | [
"MIT"
] | null | null | null | brandeis_classes/__init__.py | 9999years/brandeis-classes | e43d0227bafb4562d533565f3e94cd799ce636b8 | [
"MIT"
] | null | null | null | brandeis_classes/__init__.py | 9999years/brandeis-classes | e43d0227bafb4562d533565f3e94cd799ce636b8 | [
"MIT"
] | null | null | null | """Scrapes Brandeis University course data.
"""
from . import brandeis, constants
__version__ = "1.0.0"
| 15.142857 | 43 | 0.716981 | 13 | 106 | 5.538462 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0.150943 | 106 | 6 | 44 | 17.666667 | 0.766667 | 0.377358 | 0 | 0 | 0 | 0 | 0.084746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2b3ad5e9328c32887674f7a40dd5687665fd82c7 | 394 | py | Python | ComRISB/pyglib/pyglib/estructure/test/test_kpath.py | comscope/comsuite | d51c43cad0d15dc3b4d1f45e7df777cdddaa9d6c | [
"BSD-3-Clause"
] | 18 | 2019-06-15T18:08:21.000Z | 2022-01-30T05:01:29.000Z | ComRISB/pyglib/pyglib/estructure/test/test_kpath.py | comscope/Comsuite | b80ca9f34c519757d337487c489fb655f7598cc2 | [
"BSD-3-Clause"
] | null | null | null | ComRISB/pyglib/pyglib/estructure/test/test_kpath.py | comscope/Comsuite | b80ca9f34c519757d337487c489fb655f7598cc2 | [
"BSD-3-Clause"
] | 11 | 2019-06-05T02:57:55.000Z | 2021-12-29T02:54:25.000Z | from __future__ import print_function
import numpy
from pyglib.estructure.gwannier import get_symkpath
kpath = get_symkpath()
print("lattice")
print(kpath._structure.lattice.matrix)
print(kpath._prim.lattice.matrix)
print("reciprocal lattice")
print(kpath._structure.lattice.reciprocal_lattice.matrix)
print(kpath._pr... | 23.176471 | 57 | 0.827411 | 52 | 394 | 6 | 0.365385 | 0.160256 | 0.230769 | 0.166667 | 0.528846 | 0.217949 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06599 | 394 | 16 | 58 | 24.625 | 0.847826 | 0 | 0 | 0 | 0 | 0 | 0.07868 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.75 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
2b4d185ba85be9654b430893d1fc39a7d86da158 | 359 | py | Python | kedro/extras/datasets/tracking/__init__.py | daniel-falk/kedro | 19187199339ddc4a757aaaa328f319ec4c1e452a | [
"Apache-2.0"
] | 2,047 | 2022-01-10T15:22:12.000Z | 2022-03-31T13:38:56.000Z | kedro/extras/datasets/tracking/__init__.py | daniel-falk/kedro | 19187199339ddc4a757aaaa328f319ec4c1e452a | [
"Apache-2.0"
] | 170 | 2022-01-10T12:44:31.000Z | 2022-03-31T17:01:24.000Z | kedro/extras/datasets/tracking/__init__.py | daniel-falk/kedro | 19187199339ddc4a757aaaa328f319ec4c1e452a | [
"Apache-2.0"
] | 112 | 2022-01-10T19:15:24.000Z | 2022-03-30T11:20:52.000Z | """Dataset implementations to save data for Kedro Experiment Tracking"""
__all__ = ["MetricsDataSet", "JSONDataSet"]
from contextlib import suppress
with suppress(ImportError):
from kedro.extras.datasets.tracking.metrics_dataset import MetricsDataSet
with suppress(ImportError):
from kedro.extras.datasets.tr... | 29.916667 | 77 | 0.807799 | 40 | 359 | 7.1 | 0.55 | 0.084507 | 0.161972 | 0.190141 | 0.380282 | 0.380282 | 0.380282 | 0.380282 | 0 | 0 | 0 | 0 | 0.114206 | 359 | 11 | 78 | 32.636364 | 0.893082 | 0.183844 | 0 | 0.333333 | 0 | 0 | 0.087108 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.833333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
2b4f933ade3f1a0a5e05e53be02f4770686eec16 | 308 | py | Python | Executor/Tasks/Run/dummy.py | EVOLVED-5G/ELCM | 07d07a114b667e8c6915ee3ef125dd4864dd2247 | [
"Apache-2.0"
] | 1 | 2020-04-16T17:07:46.000Z | 2020-04-16T17:07:46.000Z | Executor/Tasks/Run/dummy.py | EVOLVED-5G/ELCM | 07d07a114b667e8c6915ee3ef125dd4864dd2247 | [
"Apache-2.0"
] | 3 | 2020-03-06T11:22:09.000Z | 2020-03-06T11:22:10.000Z | Executor/Tasks/Run/dummy.py | EVOLVED-5G/ELCM | 07d07a114b667e8c6915ee3ef125dd4864dd2247 | [
"Apache-2.0"
] | 1 | 2022-02-01T07:56:44.000Z | 2022-02-01T07:56:44.000Z | from Task import Task
from Helper import Level
from time import sleep
class Dummy(Task):
def __init__(self, logMethod, parent, params):
super().__init__("Dummy", parent, params, logMethod, None)
def Run(self):
self.Log(Level.INFO, f'Running Dummy task with params: {self.params}')
| 25.666667 | 78 | 0.694805 | 43 | 308 | 4.790698 | 0.534884 | 0.087379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194805 | 308 | 11 | 79 | 28 | 0.830645 | 0 | 0 | 0 | 0 | 0 | 0.162338 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.375 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
2b625b290fbf9f683ffa6827d4ea9f7e7d41b210 | 275 | py | Python | mathThinkingInCoSci/queens02_backtracking.py | raydot/coursera | 2d9a8ae76c06e082bdc11bf288e8c202c1e45d9c | [
"Unlicense"
] | null | null | null | mathThinkingInCoSci/queens02_backtracking.py | raydot/coursera | 2d9a8ae76c06e082bdc11bf288e8c202c1e45d9c | [
"Unlicense"
] | 7 | 2020-04-13T01:46:37.000Z | 2022-01-05T20:24:50.000Z | mathThinkingInCoSci/queens02_backtracking.py | raydot/coursera | 2d9a8ae76c06e082bdc11bf288e8c202c1e45d9c | [
"Unlicense"
] | null | null | null | def generate_permutations(perm, n):
if len(perm) == n:
print(perm)
return
for k in range(n):
if k not in perm:
perm.append(k)
generate_permutations(perm, n)
perm.pop()
generate_permutations(perm=[], n=4)
| 19.642857 | 42 | 0.541818 | 36 | 275 | 4.055556 | 0.472222 | 0.136986 | 0.493151 | 0.513699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005556 | 0.345455 | 275 | 13 | 43 | 21.153846 | 0.805556 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.2 | 0.1 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2b70c49d2a7669be6d3f10230ca992e457e509c9 | 624 | py | Python | test/runner.py | JLLeitschuh/JiraTestResultReporter | 207f8c0be769d02469f6a7d64bedf59080dc1bea | [
"MIT"
] | 2 | 2019-03-26T03:32:09.000Z | 2021-08-16T16:03:44.000Z | test/runner.py | JLLeitschuh/JiraTestResultReporter | 207f8c0be769d02469f6a7d64bedf59080dc1bea | [
"MIT"
] | 4 | 2015-06-30T05:36:45.000Z | 2020-04-20T15:29:30.000Z | test/runner.py | JLLeitschuh/JiraTestResultReporter | 207f8c0be769d02469f6a7d64bedf59080dc1bea | [
"MIT"
] | 3 | 2016-08-23T12:53:52.000Z | 2020-02-11T06:13:14.000Z | #!/usr/bin/python
import sys, unittest, xmlrunner
from SeleniumTest import SeleniumTest
import testLogin, testConfigSyntaxChecks, testConfigChanges, testPluginLinks
if __name__ == '__main__':
suite = unittest.TestLoader().loadTestsFromModule(testLogin)
suite.addTests(unittest.TestLoader().loadTestsFromModule(... | 41.6 | 85 | 0.802885 | 55 | 624 | 8.963636 | 0.509091 | 0.146045 | 0.300203 | 0.188641 | 0.30426 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001761 | 0.089744 | 624 | 14 | 86 | 44.571429 | 0.866197 | 0.112179 | 0 | 0 | 0 | 0 | 0.036232 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
991287d9cb504a003155ca828430c40f5035c979 | 58 | py | Python | febonaci.py | sanxy/hacktoberfest-1 | 913582b310688d496602e8b1bc9166cb64866e38 | [
"MIT"
] | null | null | null | febonaci.py | sanxy/hacktoberfest-1 | 913582b310688d496602e8b1bc9166cb64866e38 | [
"MIT"
] | null | null | null | febonaci.py | sanxy/hacktoberfest-1 | 913582b310688d496602e8b1bc9166cb64866e38 | [
"MIT"
] | 1 | 2020-09-30T18:53:05.000Z | 2020-09-30T18:53:05.000Z | a=0
b=1
while a<10:
print(a)
a,b=b,a+b
| 8.285714 | 14 | 0.396552 | 14 | 58 | 1.642857 | 0.5 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 0.431034 | 58 | 6 | 15 | 9.666667 | 0.575758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9916d4604fa1e456afe4295e8494d0aecae32d21 | 31,450 | py | Python | test.py | rayanf/AI-play-snake | 257d23c6c4140cf93f393f9fcc96b378ca80a9da | [
"MIT"
] | 4 | 2021-09-07T16:09:57.000Z | 2021-11-18T11:00:41.000Z | test.py | rayanf/AI-play-snake | 257d23c6c4140cf93f393f9fcc96b378ca80a9da | [
"MIT"
] | null | null | null | test.py | rayanf/AI-play-snake | 257d23c6c4140cf93f393f9fcc96b378ca80a9da | [
"MIT"
] | 1 | 2021-11-21T17:36:34.000Z | 2021-11-21T17:36:34.000Z | from game import snake_game
from game import Tail
import pygame
import networkx as nx
edges = [(1010, 3010), (3010, 5010), (5010, 7010), (7010, 9010), (9010, 11010), (11010, 13010), (13010, 15010), (15010, 17010), (17010, 19010), (19010, 21010), (21010, 23010), (23010, 25010), (25010, 27010), (27010, 29010), (29010, ... | 324.226804 | 520 | 0.642862 | 3,588 | 31,450 | 5.630435 | 0.261984 | 0.00401 | 0.003465 | 0.00495 | 0.006831 | 0.006831 | 0.002772 | 0 | 0 | 0 | 0 | 0.724596 | 0.131669 | 31,450 | 96 | 521 | 327.604167 | 0.01516 | 0.016025 | 0 | 0 | 0 | 0 | 0.000259 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.015152 | 0.060606 | 0 | 0.060606 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
99252a3b84247a6adcf4e46ec82782312956f53b | 973 | py | Python | engine/backends/AbstractBackend.py | gabrii/TrendsEngine | afe141704421aaac999cda8c3292fb418fb86cfa | [
"MIT"
] | null | null | null | engine/backends/AbstractBackend.py | gabrii/TrendsEngine | afe141704421aaac999cda8c3292fb418fb86cfa | [
"MIT"
] | null | null | null | engine/backends/AbstractBackend.py | gabrii/TrendsEngine | afe141704421aaac999cda8c3292fb418fb86cfa | [
"MIT"
] | null | null | null | import abc
from collections import Counter
from typing import Union, Iterable, Dict
class AbstractBackend(abc.ABC):
@abc.abstractmethod
def incr(self, key: str, value: Union[int, None] = 1) -> Union[int, None]:
"""Increments a given key by a value. If it doesn't exist, start at 0.
The fin... | 29.484848 | 90 | 0.612539 | 136 | 973 | 4.367647 | 0.433824 | 0.030303 | 0.06734 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004298 | 0.282631 | 973 | 32 | 91 | 30.40625 | 0.846705 | 0.316547 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.125 | 0.1875 | 0.0625 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
992765b1e22d4787821c6fd173522aea8be0c7e3 | 441 | py | Python | xicsrt/optics/_XicsrtOpticPlanarMirror.py | PrincetonUniversity/xicsrt | 15dfe5e3cd8ac6a326e8f0e502c8b739bd09d3fd | [
"MIT"
] | 1 | 2021-07-21T17:07:31.000Z | 2021-07-21T17:07:31.000Z | xicsrt/optics/_XicsrtOpticPlanarMirror.py | PrincetonUniversity/xicsrt | 15dfe5e3cd8ac6a326e8f0e502c8b739bd09d3fd | [
"MIT"
] | null | null | null | xicsrt/optics/_XicsrtOpticPlanarMirror.py | PrincetonUniversity/xicsrt | 15dfe5e3cd8ac6a326e8f0e502c8b739bd09d3fd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
.. Authors:
Novimir Pablant <npablant@pppl.gov>
Define the :class:`XicsrtOpticPlanarMirror` class.
"""
import numpy as np
from xicsrt.tools.xicsrt_doc import dochelper
from xicsrt.optics._InteractMirror import InteractMirror
from xicsrt.optics._ShapePlane import ShapePlane
@dochelper... | 20.045455 | 58 | 0.741497 | 48 | 441 | 6.75 | 0.645833 | 0.092593 | 0.098765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002688 | 0.156463 | 441 | 21 | 59 | 21 | 0.86828 | 0.356009 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.142857 | 0.571429 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
992c4a8bef4f323b55048b502906e78697d12be4 | 3,022 | py | Python | ihub/utils/random_supports.py | iqDF/ihub-duty-app | 1ba73037d3c995cae4389cd790bdbb0b11a4313d | [
"MIT"
] | 1 | 2019-06-10T04:55:38.000Z | 2019-06-10T04:55:38.000Z | ihub/utils/random_supports.py | iqDF/ihub-duty-app | 1ba73037d3c995cae4389cd790bdbb0b11a4313d | [
"MIT"
] | 1 | 2019-06-12T02:36:34.000Z | 2019-06-12T02:36:34.000Z | ihub/utils/random_supports.py | iqDF/ihub-duty-app | 1ba73037d3c995cae4389cd790bdbb0b11a4313d | [
"MIT"
] | null | null | null | import random
import string
from random import randint
class RandomSupport(object):
"""Simple random data helpers.
"""
@classmethod
def generate_number(cls):
"""Generate a random number.
Returns:
int: the number
"""
return randint(0, 99999999999999)
@classmethod
def generate_number_between(cls, min... | 21.585714 | 96 | 0.696559 | 397 | 3,022 | 5.206549 | 0.24937 | 0.074504 | 0.117078 | 0.034833 | 0.500242 | 0.500242 | 0.391388 | 0.32656 | 0.32656 | 0.32656 | 0 | 0.027721 | 0.188286 | 3,022 | 140 | 97 | 21.585714 | 0.814921 | 0.466909 | 0 | 0.387755 | 1 | 0 | 0.029672 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.22449 | false | 0 | 0.061224 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
993f6465a91d1d7f1b8a5ae48bb18e69869368f0 | 470 | py | Python | interactivity/commands/factories.py | danpoland/slacktools-interactivity | d9f28652cf5aa18e90468a5d22487fa261c2e117 | [
"MIT"
] | null | null | null | interactivity/commands/factories.py | danpoland/slacktools-interactivity | d9f28652cf5aa18e90468a5d22487fa261c2e117 | [
"MIT"
] | 2 | 2020-03-31T11:28:08.000Z | 2021-02-02T22:53:59.000Z | interactivity/commands/factories.py | danpoland/slacktools-interactivity | d9f28652cf5aa18e90468a5d22487fa261c2e117 | [
"MIT"
] | null | null | null | from typing import Union
from interactivity.generics import HandlerFactory, Payload
from .handlers import ActionCommandHandler, CommandHandler
__all__ = ("CommandFactory",)
HandlerT = Union[CommandHandler, ActionCommandHandler]
class CommandFactory(HandlerFactory[HandlerT]):
"""Factory that initializes a `Co... | 24.736842 | 86 | 0.77234 | 46 | 470 | 7.782609 | 0.673913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148936 | 470 | 18 | 87 | 26.111111 | 0.895 | 0.161702 | 0 | 0 | 0 | 0 | 0.036082 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
995208ee7c67d74667b532aea121a1711fdf98dc | 9,913 | py | Python | source/device_manager/scheduler.py | ElsevierSoftwareX/SOFTX-D-21-00051 | 7ae5ad60971129286e2ee452a797c26810a9cb0f | [
"MIT"
] | null | null | null | source/device_manager/scheduler.py | ElsevierSoftwareX/SOFTX-D-21-00051 | 7ae5ad60971129286e2ee452a797c26810a9cb0f | [
"MIT"
] | null | null | null | source/device_manager/scheduler.py | ElsevierSoftwareX/SOFTX-D-21-00051 | 7ae5ad60971129286e2ee452a797c26810a9cb0f | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from typing import List, Optional
from datetime import datetime
from uuid import UUID
from source.device_manager.database import get_database_connection, release_database_connection
import psycopg2
@dataclass
class BookingInfo:
id: int
name: str
start: int
end: int
... | 37.549242 | 130 | 0.573792 | 1,150 | 9,913 | 4.837391 | 0.086087 | 0.071185 | 0.0302 | 0.034514 | 0.775661 | 0.75355 | 0.728564 | 0.639044 | 0.615855 | 0.615855 | 0 | 0.009037 | 0.307879 | 9,913 | 263 | 131 | 37.692015 | 0.801778 | 0 | 0 | 0.611872 | 0 | 0.009132 | 0.25053 | 0.113078 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063927 | false | 0 | 0.027397 | 0 | 0.251142 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
995db7a4fae3e62440655183868de6f310ae5d63 | 1,542 | py | Python | poli/python/poli/policies.py | Humhu/percepto | 4a45cce7dd294a8ce0b962bb68cae5c2b48c3b7f | [
"AFL-3.0"
] | 1 | 2021-06-15T09:34:24.000Z | 2021-06-15T09:34:24.000Z | poli/python/poli/policies.py | Humhu/percepto | 4a45cce7dd294a8ce0b962bb68cae5c2b48c3b7f | [
"AFL-3.0"
] | null | null | null | poli/python/poli/policies.py | Humhu/percepto | 4a45cce7dd294a8ce0b962bb68cae5c2b48c3b7f | [
"AFL-3.0"
] | null | null | null | """This module contains common stochastic policy classes.
"""
import abc
import math
class StochasticPolicy(object):
"""Base class for all stochastic policies.
"""
__metaclass__ = abc.ABCMeta
def __init__(self, indim, outdim):
self._input_dim = indim
self._output_dim = outdim
@abc... | 23.363636 | 81 | 0.59144 | 177 | 1,542 | 5.033898 | 0.384181 | 0.056117 | 0.06734 | 0.077441 | 0.296296 | 0.089787 | 0.089787 | 0.089787 | 0 | 0 | 0 | 0 | 0.305447 | 1,542 | 65 | 82 | 23.723077 | 0.831933 | 0.351492 | 0 | 0.310345 | 0 | 0 | 0.03337 | 0 | 0 | 0 | 0 | 0.015385 | 0 | 1 | 0.310345 | false | 0 | 0.068966 | 0.068966 | 0.689655 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
996ad7a6611e88d70d7d8448386c7ad68b38c4be | 83 | py | Python | bit/__init__.py | DimitrisJim/BIT | bab9e8a8037ac9c25d9b2782a13a561b69dd90ce | [
"Unlicense"
] | null | null | null | bit/__init__.py | DimitrisJim/BIT | bab9e8a8037ac9c25d9b2782a13a561b69dd90ce | [
"Unlicense"
] | null | null | null | bit/__init__.py | DimitrisJim/BIT | bab9e8a8037ac9c25d9b2782a13a561b69dd90ce | [
"Unlicense"
] | null | null | null | """ Init file, export relevant names. """
from .bit import BIT
__all__ = ['BIT']
| 13.833333 | 41 | 0.638554 | 11 | 83 | 4.454545 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192771 | 83 | 5 | 42 | 16.6 | 0.731343 | 0.39759 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
9986d593663467abe676ab11576537c2532260dd | 179 | py | Python | backend/volunteers_notifications/apps.py | patrick91/pycon | 9d7e15f540adcf0eaceb61fdbf67206d6aef73ec | [
"MIT"
] | 2 | 2017-07-18T21:51:25.000Z | 2017-12-23T11:08:39.000Z | backend/volunteers_notifications/apps.py | patrick91/pycon | 9d7e15f540adcf0eaceb61fdbf67206d6aef73ec | [
"MIT"
] | 23 | 2017-07-18T20:22:38.000Z | 2018-01-05T05:45:15.000Z | backend/volunteers_notifications/apps.py | patrick91/pycon | 9d7e15f540adcf0eaceb61fdbf67206d6aef73ec | [
"MIT"
] | 2 | 2017-07-18T21:27:33.000Z | 2017-07-18T22:07:03.000Z | from django.apps import AppConfig
class VolunteersNotificationsConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "volunteers_notifications"
| 25.571429 | 56 | 0.804469 | 18 | 179 | 7.833333 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122905 | 179 | 6 | 57 | 29.833333 | 0.898089 | 0 | 0 | 0 | 0 | 0 | 0.296089 | 0.296089 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
998f95bcf399b87bafe2f631c5ad4d529da33fec | 1,292 | py | Python | django_loose_fk/query_list.py | maykinmedia/django-loose-fk | bbd37f789bd459d9a7eb661ffb0597d84567c1ab | [
"MIT"
] | 3 | 2021-03-17T12:37:36.000Z | 2021-03-17T21:49:11.000Z | django_loose_fk/query_list.py | maykinmedia/django-loose-fk | bbd37f789bd459d9a7eb661ffb0597d84567c1ab | [
"MIT"
] | 21 | 2019-08-07T11:04:53.000Z | 2022-03-10T21:46:24.000Z | django_loose_fk/query_list.py | maykinmedia/django-loose-fk | bbd37f789bd459d9a7eb661ffb0597d84567c1ab | [
"MIT"
] | 1 | 2019-10-28T11:23:06.000Z | 2019-10-28T11:23:06.000Z | from typing import Any
from django.core.exceptions import ValidationError
from django.core.validators import URLValidator
def is_url(value: Any) -> bool:
if not isinstance(value, str):
return False
validator = URLValidator(schemes=["http", "https"])
try:
validator(value)
except Valid... | 23.071429 | 72 | 0.632353 | 159 | 1,292 | 4.993711 | 0.415094 | 0.124685 | 0.04534 | 0.037783 | 0.138539 | 0.138539 | 0 | 0 | 0 | 0 | 0 | 0.003175 | 0.268576 | 1,292 | 55 | 73 | 23.490909 | 0.837037 | 0.030186 | 0 | 0.108108 | 0 | 0 | 0.052758 | 0.019984 | 0 | 0 | 0 | 0 | 0.027027 | 1 | 0.297297 | false | 0 | 0.081081 | 0.135135 | 0.702703 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5125e8a5f41e126df19ef975a4599c8610ff1f3b | 105 | py | Python | scripts/quest/q5519e.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 54 | 2019-04-16T23:24:48.000Z | 2021-12-18T11:41:50.000Z | scripts/quest/q5519e.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 3 | 2019-05-19T15:19:41.000Z | 2020-04-27T16:29:16.000Z | scripts/quest/q5519e.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 49 | 2020-11-25T23:29:16.000Z | 2022-03-26T16:20:24.000Z | # Tot's reward lv 20
sm.completeQuest(5519)
# Lv. 20 Equipment box
sm.giveItem(2431876, 1)
sm.dispose()
| 15 | 23 | 0.72381 | 18 | 105 | 4.222222 | 0.777778 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177778 | 0.142857 | 105 | 6 | 24 | 17.5 | 0.666667 | 0.371429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
51367ab48bf20c0766dc523d2098368f584c112e | 279 | py | Python | weather.py | bmarkowitz/weather-api-cli | ce6d9a57615ffe29db1b4fc41ea2f7ba16c40c3c | [
"MIT"
] | null | null | null | weather.py | bmarkowitz/weather-api-cli | ce6d9a57615ffe29db1b4fc41ea2f7ba16c40c3c | [
"MIT"
] | null | null | null | weather.py | bmarkowitz/weather-api-cli | ce6d9a57615ffe29db1b4fc41ea2f7ba16c40c3c | [
"MIT"
] | null | null | null | """ This is the main entry point for the weather API command line interface. Displays the main menu to allow access to all functionality."""
try:
import requests
except ImportError:
print('Import error')
def weather():
pass
if __name__ == '__main__':
weather() | 23.25 | 140 | 0.709677 | 38 | 279 | 5 | 0.789474 | 0.073684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204301 | 279 | 12 | 141 | 23.25 | 0.855856 | 0.476703 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0.125 | 0.375 | 0 | 0.5 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
514a226717ba13e83ded8a42f26b5aa9bc6f7463 | 3,317 | py | Python | Contests/Hour-of-Code-2017/Rob-the-bank.py | Justin-Teng/HackerRank | bb501715d4fb0322ccffa70b75c4d6df1463a334 | [
"MIT"
] | null | null | null | Contests/Hour-of-Code-2017/Rob-the-bank.py | Justin-Teng/HackerRank | bb501715d4fb0322ccffa70b75c4d6df1463a334 | [
"MIT"
] | null | null | null | Contests/Hour-of-Code-2017/Rob-the-bank.py | Justin-Teng/HackerRank | bb501715d4fb0322ccffa70b75c4d6df1463a334 | [
"MIT"
] | null | null | null | N, M = list(map(int, input().split()))
grid = [['@' for x in range(M)] for y in range(N)]
for i in range(N):
line = input()
for j in range(M):
grid[i][j] = line[j]
alreadySeen = False
jr = jc = -1
for i in range(N):
if alreadySeen:
break
for j in range(M):
if (alreadySeen):
... | 28.594828 | 50 | 0.348206 | 393 | 3,317 | 2.938931 | 0.109415 | 0.138528 | 0.051948 | 0.166234 | 0.774026 | 0.729004 | 0.683983 | 0.683983 | 0.683983 | 0.683983 | 0 | 0.018933 | 0.474525 | 3,317 | 115 | 51 | 28.843478 | 0.643718 | 0 | 0 | 0.477064 | 0 | 0 | 0.014772 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.018349 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5aa7273f1029c5afd7a4433218d03a84233899fe | 1,142 | py | Python | System_Employees_Managment/employee_class.py | bilakos26/Python-Test-Projects | 54f79bac08dd6a7f49485444c1944ba8de6376e2 | [
"Apache-2.0"
] | null | null | null | System_Employees_Managment/employee_class.py | bilakos26/Python-Test-Projects | 54f79bac08dd6a7f49485444c1944ba8de6376e2 | [
"Apache-2.0"
] | null | null | null | System_Employees_Managment/employee_class.py | bilakos26/Python-Test-Projects | 54f79bac08dd6a7f49485444c1944ba8de6376e2 | [
"Apache-2.0"
] | null | null | null | class Employee:
def __init__(self, name, ID, department, job_title):
self.__name = name
self.__id = ID
self.__department = department
self.__job_title = job_title
def set_name(self, name):
self.__name = name
def set_id(self, ID):
self.__id = ID
def ... | 20.392857 | 93 | 0.541156 | 130 | 1,142 | 4.238462 | 0.146154 | 0.188748 | 0.130672 | 0.08167 | 0.15608 | 0.083485 | 0 | 0 | 0 | 0 | 0 | 0 | 0.360771 | 1,142 | 56 | 94 | 20.392857 | 0.754795 | 0.105079 | 0 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.166667 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5abdbf3b9ed70d5c4b79f07eeacfb030b2983e9b | 354 | py | Python | simulation/executables/run_web_proc_anim.py | fladdimir/csa-simulation-based-sc-forecast | 80f176a783496f8859609f63b56c6199a73d9909 | [
"MIT"
] | 2 | 2020-11-04T17:34:38.000Z | 2021-08-13T07:55:23.000Z | simulation/executables/run_web_proc_anim.py | fladdimir/csa-simulation-based-sc-forecast | 80f176a783496f8859609f63b56c6199a73d9909 | [
"MIT"
] | null | null | null | simulation/executables/run_web_proc_anim.py | fladdimir/csa-simulation-based-sc-forecast | 80f176a783496f8859609f63b56c6199a73d9909 | [
"MIT"
] | 2 | 2021-05-28T02:55:44.000Z | 2021-08-03T13:56:10.000Z | import sys
sys.path.append(".")
import logging
from emulation import order_event_reporter
from model.blocks import order
from model.runnables.proc_anim import run_animation_with_interface_configuration
logging.getLogger().setLevel("INFO")
order.update = order_event_reporter.update
run_animation_with_interface_conf... | 23.6 | 80 | 0.855932 | 47 | 354 | 6.148936 | 0.553191 | 0.076125 | 0.124567 | 0.17301 | 0.262976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076271 | 354 | 14 | 81 | 25.285714 | 0.883792 | 0 | 0 | 0 | 0 | 0 | 0.014124 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.555556 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5ae49c2b5e44f8d24ab482f3049eedffde5520a4 | 877 | py | Python | graditudelib/histograms_of_fractions.py | foerstner-lab/GRADitude | 02251b3e204bf4702bf189d9bec375068a6fc0d7 | [
"0BSD"
] | 1 | 2018-04-13T17:54:38.000Z | 2018-04-13T17:54:38.000Z | graditudelib/histograms_of_fractions.py | konrad/GRADitude | 07a92b14bbad4383e5f146387530556e751389f3 | [
"MIT"
] | 8 | 2020-02-27T11:58:42.000Z | 2020-11-25T07:30:52.000Z | graditudelib/histograms_of_fractions.py | konrad/GRADitude | 07a92b14bbad4383e5f146387530556e751389f3 | [
"MIT"
] | 1 | 2019-01-25T10:10:56.000Z | 2019-01-25T10:10:56.000Z | import matplotlib.pyplot as plt
import pandas as pd
def plot_histograms(feature_count_table,
feature_count_start_column):
feature_count_table_df = pd.read_table(feature_count_table)
feature_count_table_df_value = _extract_value_matrix(feature_count_table_df,
... | 33.730769 | 84 | 0.695553 | 115 | 877 | 4.765217 | 0.304348 | 0.328467 | 0.341241 | 0.312044 | 0.583942 | 0.412409 | 0.364964 | 0.364964 | 0.218978 | 0.218978 | 0 | 0.00303 | 0.247434 | 877 | 25 | 85 | 35.08 | 0.827273 | 0.011403 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.111111 | 0.055556 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5af1e2bf90153689932ba757aa95c0e4f6d27eac | 5,218 | py | Python | aliyun-python-sdk-gdb/aliyunsdkgdb/request/v20190903/CreateDBInstanceRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | 1,001 | 2015-07-24T01:32:41.000Z | 2022-03-25T01:28:18.000Z | aliyun-python-sdk-gdb/aliyunsdkgdb/request/v20190903/CreateDBInstanceRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | 363 | 2015-10-20T03:15:00.000Z | 2022-03-08T12:26:19.000Z | aliyun-python-sdk-gdb/aliyunsdkgdb/request/v20190903/CreateDBInstanceRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | 682 | 2015-09-22T07:19:02.000Z | 2022-03-22T09:51:46.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 33.025316 | 75 | 0.77501 | 636 | 5,218 | 6.13522 | 0.201258 | 0.032291 | 0.075346 | 0.091492 | 0.166838 | 0.166838 | 0.166838 | 0 | 0 | 0 | 0 | 0.002614 | 0.120161 | 5,218 | 158 | 76 | 33.025316 | 0.84731 | 0.1445 | 0 | 0 | 0 | 0 | 0.144941 | 0.019449 | 0 | 0 | 0 | 0 | 0 | 1 | 0.457447 | false | 0 | 0.021277 | 0.223404 | 0.712766 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8500f0d9301e5ce4442bc682885a43ad00d7a78b | 675 | py | Python | articles/templatetags/article_tags.py | yar-kik/konfetka | 3457ba7921ffe60299958f336599ecee4901bd04 | [
"MIT"
] | 1 | 2021-02-19T09:15:21.000Z | 2021-02-19T09:15:21.000Z | articles/templatetags/article_tags.py | yar-kik/konfetka | 3457ba7921ffe60299958f336599ecee4901bd04 | [
"MIT"
] | 7 | 2021-06-05T15:02:37.000Z | 2022-03-12T00:58:19.000Z | articles/templatetags/article_tags.py | yar-kik/django_blog | 3457ba7921ffe60299958f336599ecee4901bd04 | [
"MIT"
] | null | null | null | from django import template
from django.db.models import Count
from ..models import Article
register = template.Library()
@register.simple_tag
def total_articles():
return Article.objects.count()
@register.inclusion_tag('articles/post/latest_articles.html')
def show_latest_articles(count=5):
latest_articl... | 23.275862 | 71 | 0.755556 | 87 | 675 | 5.655172 | 0.413793 | 0.142276 | 0.069106 | 0.081301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003396 | 0.127407 | 675 | 28 | 72 | 24.107143 | 0.831919 | 0 | 0 | 0.111111 | 0 | 0 | 0.125926 | 0.05037 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.166667 | 0.166667 | 0.611111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8504a23ff966700fa9fe36cf0ab080b569b8d9e0 | 100 | py | Python | Week 1/grok/samples/2a/23.calculating the median stack.py | anandprabhakar0507/Assignments-Data-Driven-Astronomy-from-University-of-sydney-on-coursera- | 58fab1c413d7ad5693b1d63f14be05b0f5ec448c | [
"MIT"
] | 4 | 2021-07-02T02:57:31.000Z | 2022-02-01T17:31:14.000Z | Week 1/grok/samples/2a/23.calculating the median stack.py | anandprabhakar0507/Assignments-Data-Driven-Astronomy-from-University-of-sydney-on-coursera- | 58fab1c413d7ad5693b1d63f14be05b0f5ec448c | [
"MIT"
] | null | null | null | Week 1/grok/samples/2a/23.calculating the median stack.py | anandprabhakar0507/Assignments-Data-Driven-Astronomy-from-University-of-sydney-on-coursera- | 58fab1c413d7ad5693b1d63f14be05b0f5ec448c | [
"MIT"
] | 3 | 2021-07-12T21:54:43.000Z | 2022-02-01T17:31:42.000Z | from statistics import median
fluxes = [17.3, 70.1, 22.3, 16.2, 20.7]
m = median(fluxes)
print(m) | 25 | 40 | 0.66 | 20 | 100 | 3.3 | 0.8 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180723 | 0.17 | 100 | 4 | 41 | 25 | 0.614458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
85111469a14775b517e89054c05bdbe4eb9dc0f0 | 160 | py | Python | setup.py | levi97/gym-navigate2D | 2ea958c403ff5973a178c9ee88df237e15f1c650 | [
"MIT"
] | 1 | 2019-08-12T21:19:19.000Z | 2019-08-12T21:19:19.000Z | setup.py | levi97/gym-navigate2D | 2ea958c403ff5973a178c9ee88df237e15f1c650 | [
"MIT"
] | null | null | null | setup.py | levi97/gym-navigate2D | 2ea958c403ff5973a178c9ee88df237e15f1c650 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name='gym_navigate2D',
version='0.0.1',
install_requires=['gym', 'numpy', 'matplotlib', 'ipython', 'pandas']
)
| 20 | 74 | 0.65625 | 19 | 160 | 5.421053 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029851 | 0.1625 | 160 | 7 | 75 | 22.857143 | 0.738806 | 0 | 0 | 0 | 0 | 0 | 0.314465 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
516f5c1ce15854255cd9f506f1701f4be29e5dd7 | 723 | py | Python | all_cnn_96/kl_regularizer.py | ganow/keras-information-dropout | ec75ebec5c7305a7c6d20d754c789f4d6273ff65 | [
"BSD-3-Clause"
] | 16 | 2017-01-09T03:17:53.000Z | 2019-08-02T10:54:58.000Z | all_cnn_96/kl_regularizer.py | ganow/keras-information-dropout | ec75ebec5c7305a7c6d20d754c789f4d6273ff65 | [
"BSD-3-Clause"
] | null | null | null | all_cnn_96/kl_regularizer.py | ganow/keras-information-dropout | ec75ebec5c7305a7c6d20d754c789f4d6273ff65 | [
"BSD-3-Clause"
] | 4 | 2017-03-19T15:16:40.000Z | 2019-06-19T19:33:31.000Z | #!/usr/bin/env python
#-*- coding: utf-8 -*-
import numpy as np
from keras.regularizers import Regularizer
from keras import backend as K
from keras.utils.generic_utils import get_from_module
class KLRegularizer(Regularizer):
def __init__(self, beta=0.0):
self.beta = K.cast_to_floatx(beta)
def __call__(sel... | 26.777778 | 71 | 0.692946 | 94 | 723 | 5.074468 | 0.5 | 0.067086 | 0.054507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008562 | 0.192255 | 723 | 26 | 72 | 27.807692 | 0.808219 | 0.056708 | 0 | 0 | 0 | 0 | 0.027941 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.235294 | 0.117647 | 0.705882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
51788d681322c42952f21ff6170b8d31a49d05e2 | 402 | py | Python | script.py | Moviesbizzv2yt/Unlimited-Filter-Bot | 2c69c0bcdf4fa56da2a7ddaad0522244f1ee8c71 | [
"MIT"
] | null | null | null | script.py | Moviesbizzv2yt/Unlimited-Filter-Bot | 2c69c0bcdf4fa56da2a7ddaad0522244f1ee8c71 | [
"MIT"
] | null | null | null | script.py | Moviesbizzv2yt/Unlimited-Filter-Bot | 2c69c0bcdf4fa56da2a7ddaad0522244f1ee8c71 | [
"MIT"
] | null | null | null | class Script(object):
START_MSG = """<b>👋Hy {},
ഈ ബോട്ട് Moviesbizzv2.0 ഗ്രൂപ്പിലേക്ക് ഉള്ളത് എന്ന് ഇനി വീണ്ടും വീണ്ടും പറയണോ??
അപ്പോ പിന്നെ എന്തിനാ വീണ്ടും വീണ്ടും സ്റ്റാർട്ട് കുത്തി കളിക്കാൻ വരുന്നേ... ആ സൈഡിലോട്ട് എങ്ങാനും മാറി ഇരിക്ക് ഇനി🤭🤭
"""
HELP_MSG = """
<i>നീ ഏതാ..... ഒന്ന് പോടെയ് അവൻ help ചോയ... | 25.125 | 117 | 0.487562 | 194 | 402 | 1.474227 | 0.360825 | 0.048951 | 0.041958 | 0.055944 | 0.132867 | 0.097902 | 0.097902 | 0.097902 | 0.097902 | 0.097902 | 0 | 0.005935 | 0.161692 | 402 | 15 | 118 | 26.8 | 0.566766 | 0 | 0 | 0.222222 | 0 | 0.333333 | 0.825871 | 0.054726 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5184d758a6ebf75622fa02b4404f69da176844ce | 289 | py | Python | lib/utils/emails.py | rpa-tomorrow/substorm-nlp | 0c9f6ab2e27338efe1aa5bd7283a1671dc02ae1c | [
"MIT"
] | 1 | 2021-03-15T16:08:50.000Z | 2021-03-15T16:08:50.000Z | lib/utils/emails.py | rpa-tomorrow/substorm-nlp | 0c9f6ab2e27338efe1aa5bd7283a1671dc02ae1c | [
"MIT"
] | 144 | 2020-09-17T09:01:21.000Z | 2020-12-12T08:21:29.000Z | lib/utils/emails.py | widforss/substorm-nlp | 0c9f6ab2e27338efe1aa5bd7283a1671dc02ae1c | [
"MIT"
] | 2 | 2020-12-16T09:46:34.000Z | 2021-03-17T05:56:48.000Z | """
Module with util functions connected to email addresses
"""
import re
def is_email(email: str) -> bool:
""" Uses regex to check if a incoming string is an email address"""
regex = "^([a-zA-Z0-9]+[\\._-]?[a-zA-Z0-9]+)[@](\\w+[.])+\\w{2,3}$"
return re.search(regex, email)
| 26.272727 | 71 | 0.602076 | 46 | 289 | 3.73913 | 0.673913 | 0.034884 | 0.05814 | 0.069767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025105 | 0.17301 | 289 | 10 | 72 | 28.9 | 0.694561 | 0.401384 | 0 | 0 | 0 | 0.25 | 0.358491 | 0.358491 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
51a3991fb1d8b6a07022f84774a9554f4ad41e31 | 1,632 | py | Python | test_modified_func.py | sid7954/NIPS-2017-Learning-to-Run-Challenge | 8b98cc1480ae6ea40dc346bd76ddba79b0af53f7 | [
"MIT"
] | 5 | 2018-10-04T19:55:53.000Z | 2018-10-05T13:39:22.000Z | test_modified_func.py | TheShadow29/nips-challenge-learning-to-run | 83429d6cd62a21e338e1cc722f86f23054e59926 | [
"MIT"
] | null | null | null | test_modified_func.py | TheShadow29/nips-challenge-learning-to-run | 83429d6cd62a21e338e1cc722f86f23054e59926 | [
"MIT"
] | null | null | null | import opensim as osim
from osim.env import RunEnv
import sys
from osim.http.client import Client
import types
def modified_init(self, visualize = True, max_obstacles = 3):
self.max_obstacles = max_obstacles
super(RunEnv, self).__init__(visualize = False, noutput = self.noutput)
self.osim_model.model.set... | 48 | 780 | 0.769608 | 190 | 1,632 | 6.521053 | 0.452632 | 0.029056 | 0.031477 | 0.043584 | 0.056497 | 0 | 0 | 0 | 0 | 0 | 0 | 0.456067 | 0.121324 | 1,632 | 33 | 781 | 49.454545 | 0.40795 | 0 | 0 | 0 | 0 | 0 | 0.007971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.208333 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
51c1b401bd58ffd7c9be835db2921db59f346227 | 220 | py | Python | tests/input_files/example_func.py | nickderobertis/pyfileconf-datacode | cb9b8cdaca7cc680c9c75d748a024efc13b4a308 | [
"MIT"
] | null | null | null | tests/input_files/example_func.py | nickderobertis/pyfileconf-datacode | cb9b8cdaca7cc680c9c75d748a024efc13b4a308 | [
"MIT"
] | 2 | 2021-12-20T00:10:31.000Z | 2021-12-20T00:10:32.000Z | tests/input_files/example_func.py | nickderobertis/pyfileconf-datacode | cb9b8cdaca7cc680c9c75d748a024efc13b4a308 | [
"MIT"
] | null | null | null | from pyfileconf import Selector
from tests.input_files.example_config import ConfigExample
def a_function(a: str) -> str:
s = Selector()
config: ConfigExample = s.dcpm.confs.ConfigExample()
return a + 'd' | 22 | 58 | 0.727273 | 29 | 220 | 5.413793 | 0.655172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177273 | 220 | 10 | 59 | 22 | 0.867403 | 0 | 0 | 0 | 0 | 0 | 0.004525 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
51d18a2858f4df87c2e619dbc2b4cd94e8a61c83 | 408 | py | Python | dit_helpdesk/countries/tests/test_config.py | uktrade/dit-helpdesk | f5127daa46e920d33ec3f0b982136b65bba0353a | [
"MIT"
] | 3 | 2019-10-24T10:39:38.000Z | 2021-07-13T11:46:18.000Z | dit_helpdesk/countries/tests/test_config.py | uktrade/dit-helpdesk | f5127daa46e920d33ec3f0b982136b65bba0353a | [
"MIT"
] | 20 | 2020-01-22T11:16:24.000Z | 2022-02-02T10:38:54.000Z | dit_helpdesk/countries/tests/test_config.py | uktrade/dit-helpdesk | f5127daa46e920d33ec3f0b982136b65bba0353a | [
"MIT"
] | null | null | null | from django.test import TestCase
from django.apps import apps
from countries.apps import CountriesConfig
class CountriesConfigTestCase(TestCase):
"""
Config tests
"""
def test_config_name_is_countries(self):
self.assertEqual(CountriesConfig.name, "countries")
def test_app_name_is_countr... | 24 | 76 | 0.745098 | 48 | 408 | 6.125 | 0.395833 | 0.068027 | 0.102041 | 0.129252 | 0.231293 | 0.231293 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164216 | 408 | 16 | 77 | 25.5 | 0.86217 | 0.029412 | 0 | 0 | 0 | 0 | 0.071053 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.375 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
51d3878e39cd1b290a0eaeb08e3f64757d4ea419 | 108 | py | Python | .config/autokey/data/chromium/text-editing/c-e-move-end-of-line.py | tonyaldon/uconfig | e2966389dc4bdaf10ef86f1625faf1b2caf687c6 | [
"MIT"
] | 1 | 2021-01-14T19:10:38.000Z | 2021-01-14T19:10:38.000Z | .config/autokey/data/chromium/text-editing/c-e-move-end-of-line.py | tonyaldon/uconfig | e2966389dc4bdaf10ef86f1625faf1b2caf687c6 | [
"MIT"
] | null | null | null | .config/autokey/data/chromium/text-editing/c-e-move-end-of-line.py | tonyaldon/uconfig | e2966389dc4bdaf10ef86f1625faf1b2caf687c6 | [
"MIT"
] | 1 | 2021-01-14T19:10:40.000Z | 2021-01-14T19:10:40.000Z | store.set_global_value('hotkey', '<ctrl>+e')
engine.set_return_value('<end>')
engine.run_script('chromium')
| 27 | 44 | 0.75 | 16 | 108 | 4.75 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 108 | 3 | 45 | 36 | 0.730769 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
51dacf3eac703ca8fd547cf66916e33bde7d41b1 | 2,642 | py | Python | 03.baiduTranslateSpider.py | a904919863/Spiders_Collection | 970aef563971eba5c9dca5dfe1cd8790561941be | [
"MIT"
] | 3 | 2022-02-23T02:44:47.000Z | 2022-02-28T06:41:26.000Z | 03.baiduTranslateSpider.py | a904919863/Spiders_Collection | 970aef563971eba5c9dca5dfe1cd8790561941be | [
"MIT"
] | null | null | null | 03.baiduTranslateSpider.py | a904919863/Spiders_Collection | 970aef563971eba5c9dca5dfe1cd8790561941be | [
"MIT"
] | null | null | null | import requests
import json
import execjs
import re
# baseurl = r"https://fanyi.baidu.com/sug"
# baseurl = "https://fanyi.baidu.com/basetrans"
baseurl = "https://fanyi.baidu.com/v2transapi?from=en&to=zh"
headers = {
"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chr... | 42.612903 | 1,135 | 0.741105 | 265 | 2,642 | 7.207547 | 0.550943 | 0.018325 | 0.02356 | 0.028272 | 0.026178 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161758 | 0.13891 | 2,642 | 62 | 1,136 | 42.612903 | 0.677802 | 0.133611 | 0 | 0 | 0 | 0.052632 | 0.636324 | 0.479771 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.105263 | 0 | 0.236842 | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
51dd1ce4cc2912680c3661de014d7633f01bd189 | 315 | py | Python | forloop2.py | Datagatherer2357/Gareth-Duffy-GMIT-Problem-sets-Python-scripts | f14f62e5b76dc27c04a616d3fe73abfb5052fc3f | [
"Apache-2.0"
] | 2 | 2018-02-25T16:17:26.000Z | 2018-02-25T16:17:36.000Z | forloop2.py | Datagatherer2357/Gareth-Duffy-GMIT-Problem-sets-Python-scripts | f14f62e5b76dc27c04a616d3fe73abfb5052fc3f | [
"Apache-2.0"
] | null | null | null | forloop2.py | Datagatherer2357/Gareth-Duffy-GMIT-Problem-sets-Python-scripts | f14f62e5b76dc27c04a616d3fe73abfb5052fc3f | [
"Apache-2.0"
] | null | null | null | # Gareth Duffy 2-3-2018
# example of for loop using range function as iterator
# for loops are definite iterators compared to e.g. while loops (indefinite)
for i in range(1, 99, 2): # change range to experiment (third value is the 'step')
print(i, end=' ') # end prints all on one line instead of separate lines
| 45 | 82 | 0.730159 | 55 | 315 | 4.181818 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039063 | 0.187302 | 315 | 6 | 83 | 52.5 | 0.859375 | 0.815873 | 0 | 0 | 0 | 0 | 0.019231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
51fa71c73a8530f043adf138b5e0eb252f63c11a | 71 | py | Python | picamutils/aws/__init__.py | joniturunen/picam | 138523653d27342d550f2dffba8036bea67a7ff6 | [
"MIT"
] | null | null | null | picamutils/aws/__init__.py | joniturunen/picam | 138523653d27342d550f2dffba8036bea67a7ff6 | [
"MIT"
] | null | null | null | picamutils/aws/__init__.py | joniturunen/picam | 138523653d27342d550f2dffba8036bea67a7ff6 | [
"MIT"
] | null | null | null | __author__ = 'joniturunen'
from .s3fileuploader import S3FileUploader
| 17.75 | 42 | 0.830986 | 6 | 71 | 9.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031746 | 0.112676 | 71 | 3 | 43 | 23.666667 | 0.84127 | 0 | 0 | 0 | 0 | 0 | 0.15493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
cf9862532b6705f1f549da1263633888c09e4609 | 1,429 | py | Python | tests/test_public_api.py | k8iechen/vcfpy | 89f7097cb5bc7bfec198d8c02fe031b44786b14b | [
"MIT"
] | 48 | 2016-09-25T16:07:53.000Z | 2022-01-19T17:44:46.000Z | tests/test_public_api.py | k8iechen/vcfpy | 89f7097cb5bc7bfec198d8c02fe031b44786b14b | [
"MIT"
] | 83 | 2016-09-16T12:20:02.000Z | 2021-05-12T09:12:10.000Z | tests/test_public_api.py | k8iechen/vcfpy | 89f7097cb5bc7bfec198d8c02fe031b44786b14b | [
"MIT"
] | 9 | 2016-10-04T15:10:06.000Z | 2022-02-08T21:10:51.000Z | # -*- coding: utf-8 -*-
"""Test that the public API classes are available from the ``vcfpy`` package
"""
import vcfpy
def test_from_exceptions():
assert vcfpy.VCFPyException
assert vcfpy.InvalidHeaderException
assert vcfpy.InvalidRecordException
assert vcfpy.IncorrectVCFFormat
assert vcfpy.Header... | 21.984615 | 76 | 0.743877 | 166 | 1,429 | 6.319277 | 0.373494 | 0.419447 | 0.052431 | 0.036225 | 0.045758 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000877 | 0.202239 | 1,429 | 64 | 77 | 22.328125 | 0.919298 | 0.06718 | 0 | 0.042553 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.851064 | 1 | 0.12766 | true | 0 | 0.021277 | 0 | 0.148936 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cfad0731c31b7ce6b6374d737e2519c07d3af05d | 1,178 | py | Python | EmoPy/EmoPy/src/dataset.py | Rahmatullina/FinalYearProject | 326f521b9f600dbbc7ace2223bd5aafc79b2267c | [
"Apache-2.0"
] | null | null | null | EmoPy/EmoPy/src/dataset.py | Rahmatullina/FinalYearProject | 326f521b9f600dbbc7ace2223bd5aafc79b2267c | [
"Apache-2.0"
] | 9 | 2020-09-26T01:09:35.000Z | 2022-02-10T01:32:30.000Z | EmoPy/EmoPy/src/dataset.py | Rahmatullina/FinalYearProject | 326f521b9f600dbbc7ace2223bd5aafc79b2267c | [
"Apache-2.0"
] | null | null | null |
class Dataset():
def __init__(self, train_images, test_images, train_labels, test_labels, emotion_index_map, time_delay=None):
self._train_images = train_images
self._test_images = test_images
self._train_labels = train_labels
self._test_labels = test_labels
self._emotion_i... | 31.837838 | 113 | 0.690153 | 160 | 1,178 | 4.625 | 0.175 | 0.118919 | 0.101351 | 0.056757 | 0.062162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220713 | 1,178 | 37 | 114 | 31.837838 | 0.8061 | 0 | 0 | 0 | 0 | 0 | 0.058574 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.259259 | 0.62963 | 0.185185 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
cfbaccab75c280aeb221944936afaa4504995322 | 328 | py | Python | output/models/nist_data/atomic/non_positive_integer/schema_instance/nistschema_sv_iv_atomic_non_positive_integer_total_digits_3_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/nist_data/atomic/non_positive_integer/schema_instance/nistschema_sv_iv_atomic_non_positive_integer_total_digits_3_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/nist_data/atomic/non_positive_integer/schema_instance/nistschema_sv_iv_atomic_non_positive_integer_total_digits_3_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.nist_data.atomic.non_positive_integer.schema_instance.nistschema_sv_iv_atomic_non_positive_integer_total_digits_3_xsd.nistschema_sv_iv_atomic_non_positive_integer_total_digits_3 import NistschemaSvIvAtomicNonPositiveIntegerTotalDigits3
__all__ = [
"NistschemaSvIvAtomicNonPositiveIntegerTotalDigi... | 54.666667 | 254 | 0.917683 | 36 | 328 | 7.611111 | 0.583333 | 0.09854 | 0.186131 | 0.262774 | 0.364964 | 0.364964 | 0.364964 | 0.364964 | 0.364964 | 0.364964 | 0 | 0.012739 | 0.042683 | 328 | 5 | 255 | 65.6 | 0.859873 | 0 | 0 | 0 | 0 | 0 | 0.152439 | 0.152439 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cfc20ee268eb99e19f88b131c3d45fe59c5152e8 | 2,864 | py | Python | openiPrototype/appUI/apiURLs.py | OPENi-ict/ntua_demo | 104118fbe1f54db35386ca96286317ceb64cb658 | [
"Apache-2.0"
] | null | null | null | openiPrototype/appUI/apiURLs.py | OPENi-ict/ntua_demo | 104118fbe1f54db35386ca96286317ceb64cb658 | [
"Apache-2.0"
] | null | null | null | openiPrototype/appUI/apiURLs.py | OPENi-ict/ntua_demo | 104118fbe1f54db35386ca96286317ceb64cb658 | [
"Apache-2.0"
] | null | null | null | __author__ = 'alvertisjo'
recommenderSE='http://snf-561492.vm.okeanos.grnet.gr:8080/recommender-se/rest/recommender/'
recommnederProductCategories=['Home Appliances', 'Electrical Supplies', 'Kitchen Merchandise', 'Pet Care - Food', 'Clothing', 'Sports Equipment', 'Healthcare', 'Communications', 'Lubricants', 'Audio Vi... | 77.405405 | 835 | 0.817388 | 256 | 2,864 | 9.0625 | 0.65625 | 0.021552 | 0.032328 | 0.038793 | 0.083621 | 0.075 | 0.075 | 0.075 | 0 | 0 | 0 | 0.097714 | 0.053073 | 2,864 | 36 | 836 | 79.555556 | 0.757743 | 0.376746 | 0 | 0 | 0 | 0.222222 | 0.745076 | 0.054024 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
cfc5d8e6035bd9cc3f94564e2c6d784835cdc876 | 98 | py | Python | setup.py | ethz-asl/modular_semantic_segmentation | 7c950f24df11540a7ddae4ff806d5b31934a3210 | [
"BSD-3-Clause"
] | 20 | 2018-08-01T15:02:59.000Z | 2021-04-19T07:22:17.000Z | setup.py | davesean/modular_semantic_segmentation | 5f9e34243915b862e8fef5e6195f1e29f4cebf50 | [
"BSD-3-Clause"
] | null | null | null | setup.py | davesean/modular_semantic_segmentation | 5f9e34243915b862e8fef5e6195f1e29f4cebf50 | [
"BSD-3-Clause"
] | 9 | 2018-08-01T15:03:03.000Z | 2019-12-17T05:12:48.000Z | from setuptools import setup
setup(name='xview',
version="0.0",
packages=['xview'])
| 14 | 28 | 0.622449 | 12 | 98 | 5.083333 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025974 | 0.214286 | 98 | 6 | 29 | 16.333333 | 0.766234 | 0 | 0 | 0 | 0 | 0 | 0.132653 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cfc6702c287687b9de8c9d6c6ab448ffb657e15d | 83 | py | Python | full_cost/chem/apps.py | CEMES-CNRS/full_cost_git | 600409b49db123db82e7f66462395294dde320ce | [
"CECILL-B"
] | null | null | null | full_cost/chem/apps.py | CEMES-CNRS/full_cost_git | 600409b49db123db82e7f66462395294dde320ce | [
"CECILL-B"
] | null | null | null | full_cost/chem/apps.py | CEMES-CNRS/full_cost_git | 600409b49db123db82e7f66462395294dde320ce | [
"CECILL-B"
] | null | null | null | from django.apps import AppConfig
class ChemConfig(AppConfig):
name = 'chem'
| 13.833333 | 33 | 0.73494 | 10 | 83 | 6.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180723 | 83 | 5 | 34 | 16.6 | 0.897059 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
cfcc1a760328248140ae2123d36bd0bc7bbe50ed | 109 | py | Python | tests/perf/test-string-plain-concat.py | jacobmarshall-etc/duktape | 62ef74d0dd64edcd518c588dd88780ea4312144a | [
"MIT"
] | null | null | null | tests/perf/test-string-plain-concat.py | jacobmarshall-etc/duktape | 62ef74d0dd64edcd518c588dd88780ea4312144a | [
"MIT"
] | null | null | null | tests/perf/test-string-plain-concat.py | jacobmarshall-etc/duktape | 62ef74d0dd64edcd518c588dd88780ea4312144a | [
"MIT"
] | null | null | null | def test():
for i in xrange(1):
t = ''
for j in xrange(int(1e5)):
t += 'x'
#print(len(t))
test()
| 12.111111 | 28 | 0.495413 | 20 | 109 | 2.7 | 0.7 | 0.296296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037975 | 0.275229 | 109 | 8 | 29 | 13.625 | 0.64557 | 0.119266 | 0 | 0 | 0 | 0 | 0.010526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cfce23bac13c8bdf66f8798f7af1096d6bfc99d7 | 330 | py | Python | flask_project/campaign_manager/insights_functions/__init__.py | hotosm/MapCampaigner | 32f6b6af2ce81f84fffe33ab864c4ead23bb55b2 | [
"BSD-3-Clause"
] | 24 | 2018-10-05T06:39:11.000Z | 2022-02-22T08:54:37.000Z | flask_project/campaign_manager/insights_functions/__init__.py | hotosm/field-campaigner | 32f6b6af2ce81f84fffe33ab864c4ead23bb55b2 | [
"BSD-3-Clause"
] | 384 | 2017-05-17T07:50:02.000Z | 2018-09-20T08:18:56.000Z | flask_project/campaign_manager/insights_functions/__init__.py | hotosm/field-campaigner | 32f6b6af2ce81f84fffe33ab864c4ead23bb55b2 | [
"BSD-3-Clause"
] | 16 | 2017-05-11T08:52:19.000Z | 2018-06-08T06:55:43.000Z | __author__ = 'Irwan Fathurrahman <irwan@kartoza.com>'
__date__ = '17/05/17'
from .count_feature import CountFeature
from .feature_attribute_completeness import FeatureAttributeCompleteness
from .mapper_engagement import MapperEngagement
from .osmcha_changesets import OsmchaChangesets
from .osmcha_features import Osmch... | 36.666667 | 72 | 0.860606 | 36 | 330 | 7.5 | 0.666667 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019934 | 0.087879 | 330 | 8 | 73 | 41.25 | 0.877076 | 0 | 0 | 0 | 0 | 0 | 0.139394 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.714286 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
cfd0d9ec39ed2e38315be582cb1708340c79df0f | 7,512 | py | Python | kubernetes/client/models/com_coreos_monitoring_v1_prometheus_rule_spec_rules.py | mariusgheorghies/python | 68ac7e168963d8b5a81dc493b1973d29e903a15b | [
"Apache-2.0"
] | null | null | null | kubernetes/client/models/com_coreos_monitoring_v1_prometheus_rule_spec_rules.py | mariusgheorghies/python | 68ac7e168963d8b5a81dc493b1973d29e903a15b | [
"Apache-2.0"
] | null | null | null | kubernetes/client/models/com_coreos_monitoring_v1_prometheus_rule_spec_rules.py | mariusgheorghies/python | 68ac7e168963d8b5a81dc493b1973d29e903a15b | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v1.20.7
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
fr... | 29.809524 | 146 | 0.617146 | 750 | 7,512 | 6.065333 | 0.164 | 0.031655 | 0.263794 | 0.213673 | 0.467355 | 0.389756 | 0.387778 | 0.198066 | 0.136733 | 0.086612 | 0 | 0.02037 | 0.294196 | 7,512 | 251 | 147 | 29.928287 | 0.837608 | 0.387913 | 0 | 0.088496 | 1 | 0 | 0.055185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.159292 | false | 0 | 0.035398 | 0 | 0.336283 | 0.017699 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cfe249110bd435cb948f56bb98099a3d5f5d5c2b | 890 | py | Python | backend/users/models.py | VladislavOkolzin/Vladislav | 09228a344ab3a6b51373eb12959b729275979442 | [
"MIT"
] | 9 | 2021-04-30T02:45:44.000Z | 2021-09-30T13:41:15.000Z | backend/users/models.py | KangDo96/Vladislav | 09228a344ab3a6b51373eb12959b729275979442 | [
"MIT"
] | 1 | 2020-10-13T03:17:39.000Z | 2020-10-13T03:17:39.000Z | backend/users/models.py | KangDo96/Vladislav | 09228a344ab3a6b51373eb12959b729275979442 | [
"MIT"
] | 4 | 2021-05-07T05:13:15.000Z | 2021-05-08T19:32:02.000Z | from django.contrib.auth.models import AbstractUser
from django.db import models
from common.models import BaseModel
class User(AbstractUser):
user_type = models.CharField(null=True, max_length=255)
email = models.CharField(blank=True, max_length=255, unique=True)
username = models.CharField(null=True, ma... | 37.083333 | 69 | 0.750562 | 116 | 890 | 5.586207 | 0.413793 | 0.111111 | 0.12037 | 0.177469 | 0.290123 | 0.290123 | 0.240741 | 0.132716 | 0 | 0 | 0 | 0.023778 | 0.149438 | 890 | 23 | 70 | 38.695652 | 0.832233 | 0 | 0 | 0 | 0 | 0 | 0.005618 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.157895 | 0.157895 | 0.052632 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
320b32c4ed7db3f2b9887cb15c88c0c981f3f53b | 333 | py | Python | titan/react_view_pkg/pkg/create_component_router_config.py | mnieber/gen | 65f8aa4fb671c4f90d5cbcb1a0e10290647a31d9 | [
"MIT"
] | null | null | null | titan/react_view_pkg/pkg/create_component_router_config.py | mnieber/gen | 65f8aa4fb671c4f90d5cbcb1a0e10290647a31d9 | [
"MIT"
] | null | null | null | titan/react_view_pkg/pkg/create_component_router_config.py | mnieber/gen | 65f8aa4fb671c4f90d5cbcb1a0e10290647a31d9 | [
"MIT"
] | null | null | null | from slugify import slugify
from titan.react_view_pkg.router.resources import RouterConfig
def create_component_router_config(component, named_component, url=None, wraps=False):
slug = slugify(component.name)
return RouterConfig(
component=named_component, url=f"{slug if url is None else url}", wraps... | 30.272727 | 86 | 0.768769 | 45 | 333 | 5.533333 | 0.577778 | 0.11245 | 0.184739 | 0.208835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153153 | 333 | 10 | 87 | 33.3 | 0.882979 | 0 | 0 | 0 | 0 | 0 | 0.09009 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
321818664993be63ba4229e7dbe7a876d48b7e9b | 10,879 | py | Python | contrib/sprledgerxfr/ecdsa-generate.py | AGBarrett/helium | 6f8b1219326db915624d5309de30e8f81729971b | [
"MIT"
] | 19 | 2018-07-05T17:01:57.000Z | 2021-05-01T15:08:05.000Z | contrib/sprledgerxfr/ecdsa-generate.py | ortchi42/xsecurus | 5735e743cc3fb0535eeec0ffbb9952b905c1fa8b | [
"MIT"
] | 23 | 2018-06-27T18:18:16.000Z | 2020-04-24T00:49:23.000Z | contrib/sprledgerxfr/ecdsa-generate.py | ortchi42/xsecurus | 5735e743cc3fb0535eeec0ffbb9952b905c1fa8b | [
"MIT"
] | 51 | 2018-06-26T18:10:13.000Z | 2020-10-29T16:25:22.000Z | #!/usr/bin/env python
"""
Generate an ECDSA keypair and Bitcoin-compatible payment address.
Requires Brian Warner's excellent python-ecdsa library.
http://github.com/aristus/bitcoin-printer
"""
from ecdsa.ecdsa import Public_key, int_to_string
from ecdsa.ellipticcurve import CurveFp, Point
import binascii
import hash... | 46.097458 | 574 | 0.764317 | 827 | 10,879 | 9.92503 | 0.28295 | 0.011696 | 0.00731 | 0.02193 | 0.318226 | 0.311404 | 0.307018 | 0.288012 | 0.288012 | 0.282651 | 0 | 0.277159 | 0.142017 | 10,879 | 236 | 575 | 46.097458 | 0.602207 | 0.285137 | 0 | 0.389831 | 1 | 0 | 0.06485 | 0.04317 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042373 | null | null | 0.050847 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5c99bce78a60b1c0e6a49d77e34cacb810232caf | 142 | py | Python | House/House/tst.py | birdflyinhigh/house | 614946c04e0a76a5a3fd5283098ed065e6c7d77b | [
"MIT"
] | null | null | null | House/House/tst.py | birdflyinhigh/house | 614946c04e0a76a5a3fd5283098ed065e6c7d77b | [
"MIT"
] | null | null | null | House/House/tst.py | birdflyinhigh/house | 614946c04e0a76a5a3fd5283098ed065e6c7d77b | [
"MIT"
] | null | null | null | base_url_bj = 'http://esf.house.163.com/bj/search/{}-0-0-0-1.html'
for i in range(1, 19):
bj_url = base_url_bj.format(i)
print(bj_url) | 35.5 | 66 | 0.661972 | 31 | 142 | 2.83871 | 0.612903 | 0.159091 | 0.204545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081301 | 0.133803 | 142 | 4 | 67 | 35.5 | 0.634146 | 0 | 0 | 0 | 0 | 0.25 | 0.34965 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5cd11fbb7b3ca09656290b9bbe8f93a91759c0b8 | 536 | py | Python | dockwrkr/command/login.py | turbulent/dockwrkr | 6872208da0b41d1abcddfdf496d450fbcd3947f8 | [
"Apache-2.0"
] | 4 | 2017-06-13T13:45:44.000Z | 2020-06-09T19:04:53.000Z | dockwrkr/command/login.py | turbulent/dockwrkr | 6872208da0b41d1abcddfdf496d450fbcd3947f8 | [
"Apache-2.0"
] | 3 | 2017-08-04T18:03:06.000Z | 2019-01-11T19:09:43.000Z | dockwrkr/command/login.py | turbulent/dockwrkr | 6872208da0b41d1abcddfdf496d450fbcd3947f8 | [
"Apache-2.0"
] | 5 | 2017-10-26T15:16:56.000Z | 2020-09-29T17:36:00.000Z | from dockwrkr import (Command)
from dockwrkr.monads import (Try)
class Login(Command):
def getUsage(self):
return "dockwrkr login [REGISTRY...]"
def getHelpTitle(self):
return "Perform docker login using credentials in dockwrkr.yml"
def main(self):
if self.args:
regi... | 26.8 | 72 | 0.652985 | 61 | 536 | 5.737705 | 0.52459 | 0.068571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251866 | 536 | 19 | 73 | 28.210526 | 0.872818 | 0 | 0 | 0 | 0 | 0 | 0.152985 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0.142857 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5cd8d709965a6618b1556e9fb5695b0c9ef86264 | 528 | py | Python | tests/losses/test_simsiam.py | fariasfc/solo-learn | f53ff40edbc7e96e06db5238d8c3a44f7b8965c1 | [
"MIT"
] | 3 | 2021-08-23T12:47:50.000Z | 2022-01-16T02:06:34.000Z | tests/losses/test_simsiam.py | damilu1/solo-learn | b75ba6faf5269b0849120bfb89593f9bc23e09bc | [
"MIT"
] | null | null | null | tests/losses/test_simsiam.py | damilu1/solo-learn | b75ba6faf5269b0849120bfb89593f9bc23e09bc | [
"MIT"
] | null | null | null | import torch
from solo.losses import simsiam_loss_func
def test_simsiam_loss():
b, f = 32, 128
p = torch.randn(b, f).requires_grad_()
z = torch.randn(b, f)
loss = simsiam_loss_func(p, z)
initial_loss = loss.item()
assert loss != 0
for i in range(20):
loss = simsiam_loss_func(p, z... | 22 | 90 | 0.623106 | 85 | 528 | 3.670588 | 0.447059 | 0.211538 | 0.240385 | 0.205128 | 0.24359 | 0.134615 | 0 | 0 | 0 | 0 | 0 | 0.030534 | 0.255682 | 528 | 23 | 91 | 22.956522 | 0.763359 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 1 | 0.0625 | false | 0 | 0.125 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7a266311863117547f2b54dba3addad98697adf2 | 2,910 | py | Python | gocddash/dashboard/pipeline_status.py | peterrosell/gocddash | c1004135dc66b0d8394d6025750b94e12650ab36 | [
"MIT"
] | 4 | 2016-01-20T19:53:06.000Z | 2019-09-16T11:49:13.000Z | gocddash/dashboard/pipeline_status.py | peterrosell/gocddash | c1004135dc66b0d8394d6025750b94e12650ab36 | [
"MIT"
] | null | null | null | gocddash/dashboard/pipeline_status.py | peterrosell/gocddash | c1004135dc66b0d8394d6025750b94e12650ab36 | [
"MIT"
] | 5 | 2016-07-13T10:41:20.000Z | 2018-04-10T07:41:18.000Z | from ..analysis.characterize_data_munging import get_failure_stage_signature
from ..analysis.data_access import get_connection
from ..console_parsers.determine_parser import get_log_parser
from ..console_parsers.junit_report_parser import JunitConsoleParser
from ..console_parsers.characterize_console_parser import Text... | 33.837209 | 100 | 0.771821 | 347 | 2,910 | 6.0317 | 0.25072 | 0.097468 | 0.107023 | 0.054945 | 0.361204 | 0.282848 | 0.152891 | 0.114668 | 0.114668 | 0 | 0 | 0 | 0.161512 | 2,910 | 85 | 101 | 34.235294 | 0.857787 | 0.043986 | 0 | 0.266667 | 0 | 0 | 0.012959 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.1 | 0.166667 | 0.633333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
7a3958089405dd37861d1831c41062307450e259 | 577 | py | Python | afqueue/config_files/queue_defines.py | appfirst/distributed_queue_manager | 733fd18a7c178e1163bac8ee6359156789641f7f | [
"MIT"
] | 1 | 2021-05-24T17:09:50.000Z | 2021-05-24T17:09:50.000Z | afqueue/config_files/queue_defines.py | appfirst/distributed_queue_manager | 733fd18a7c178e1163bac8ee6359156789641f7f | [
"MIT"
] | null | null | null | afqueue/config_files/queue_defines.py | appfirst/distributed_queue_manager | 733fd18a7c178e1163bac8ee6359156789641f7f | [
"MIT"
] | null | null | null | CLIENT_LOCK_QUEUE_REQUEST_TIME_OUT = 30000
CLIENT_UNLOCK_QUEUE_REQUEST_TIME_OUT = 30000
CLIENT_DEFAULT_DECLARE_QUEUES_REQUEST_TIME_OUT = 30000
CLIENT_DEFAULT_DECLARE_QUEUE_REQUEST_TIME_OUT = 30000
CLIENT_DEFAULT_DECLARE_EXCHANGES_REQUEST_TIME_OUT = 30000
CLIENT_DEFAULT_DECLARE_EXCHANGE_REQUEST_TIME_OUT = 30000
CLIENT_D... | 44.384615 | 57 | 0.909879 | 83 | 577 | 5.638554 | 0.277108 | 0.211538 | 0.269231 | 0.365385 | 0.660256 | 0.487179 | 0.354701 | 0.188034 | 0 | 0 | 0 | 0.102041 | 0.065858 | 577 | 13 | 58 | 44.384615 | 0.766234 | 0.060659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7a537628a80e21a17a027713e082262d57927423 | 241 | py | Python | 090-e-dot.py | catherinedevlin/just-enough-python | 3e272d37cbe68eed3e90fb472cfb4caf0a571881 | [
"MIT"
] | 5 | 2019-07-25T13:54:44.000Z | 2021-02-05T12:16:53.000Z | 090-e-dot.py | catherinedevlin/just-enough-python | 3e272d37cbe68eed3e90fb472cfb4caf0a571881 | [
"MIT"
] | null | null | null | 090-e-dot.py | catherinedevlin/just-enough-python | 3e272d37cbe68eed3e90fb472cfb4caf0a571881 | [
"MIT"
] | null | null | null | # Sometimes methods take arguments.
# Try changing the argument passed to lpad.
# Then try some whole different methods...
catcher = 'Joyce'
print(third_batter.lpad(10))
print(third_batter.startswith('M'))
print(third_batter.endswith(''))
| 26.777778 | 43 | 0.759336 | 33 | 241 | 5.454545 | 0.727273 | 0.166667 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00939 | 0.116183 | 241 | 8 | 44 | 30.125 | 0.835681 | 0.481328 | 0 | 0 | 0 | 0 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
7a87da0f8a64819f9e573aaac7bce13118d64c67 | 140 | py | Python | BOJ/18000~18999/18100~18199/18198.py | shinkeonkim/today-ps | f3e5e38c5215f19579bb0422f303a9c18c626afa | [
"Apache-2.0"
] | 2 | 2020-01-29T06:54:41.000Z | 2021-11-07T13:23:27.000Z | BOJ/18000~18999/18100~18199/18198.py | shinkeonkim/Today_PS | bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44 | [
"Apache-2.0"
] | null | null | null | BOJ/18000~18999/18100~18199/18198.py | shinkeonkim/Today_PS | bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44 | [
"Apache-2.0"
] | null | null | null | a = input()
d = {'A':0,'B':0}
for i in range(0,len(a),2):
d[a[i]] += int(a[i+1])
if d['A'] > d['B']:
print("A")
else:
print("B") | 17.5 | 27 | 0.421429 | 32 | 140 | 1.84375 | 0.5 | 0.101695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045872 | 0.221429 | 140 | 8 | 28 | 17.5 | 0.495413 | 0 | 0 | 0 | 0 | 0 | 0.042553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7a91a1e984be82eb95bdfee7db66d6c8337388c5 | 1,707 | py | Python | app/util/schemas.py | EleutherAGI/eegi-backend | 6e013a4928f1cdea4ef495e82fe641f917708cde | [
"MIT"
] | null | null | null | app/util/schemas.py | EleutherAGI/eegi-backend | 6e013a4928f1cdea4ef495e82fe641f917708cde | [
"MIT"
] | 2 | 2021-05-15T15:33:31.000Z | 2021-05-28T15:55:21.000Z | app/util/schemas.py | EleutherAGI/eegi-backend | 6e013a4928f1cdea4ef495e82fe641f917708cde | [
"MIT"
] | 2 | 2021-05-15T15:08:25.000Z | 2021-05-16T16:05:55.000Z | from pydantic import BaseModel
from sqlalchemy.sql.expression import text
# ---------------- login schemas -------------------- #
class Token(BaseModel):
access_token: str
token_type: str
class TokenData(BaseModel):
email: str = None
expire: str = None
issue_time: str = None
# ... | 18.159574 | 56 | 0.625073 | 198 | 1,707 | 5.20202 | 0.333333 | 0.085437 | 0.092233 | 0.069903 | 0.3 | 0.3 | 0.269903 | 0.269903 | 0.269903 | 0.269903 | 0 | 0.004815 | 0.270064 | 1,707 | 94 | 57 | 18.159574 | 0.82183 | 0.100176 | 0 | 0.465517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010638 | 0 | 1 | 0 | false | 0.172414 | 0.034483 | 0 | 0.982759 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
7a96b09cccd6cafa6588cd4c648d37be78ac7b08 | 3,118 | py | Python | tracking/models.py | Gikeda2016/django-correios | b865f8c25fe456146ea3c9183aa4b9bdac69c9c7 | [
"MIT"
] | 1 | 2021-09-22T12:14:22.000Z | 2021-09-22T12:14:22.000Z | tracking/models.py | Gikeda2016/django-correios | b865f8c25fe456146ea3c9183aa4b9bdac69c9c7 | [
"MIT"
] | null | null | null | tracking/models.py | Gikeda2016/django-correios | b865f8c25fe456146ea3c9183aa4b9bdac69c9c7 | [
"MIT"
] | null | null | null | # This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
# * Rearrange models' order
# * Make sure each model has one field with primary_key=True
# * Make sure each ForeignKey and OneToOneField has `on_delete` set to the desired behavior
# * Remove `managed =... | 41.573333 | 104 | 0.684734 | 421 | 3,118 | 4.988124 | 0.301663 | 0.09 | 0.13 | 0.17 | 0.480952 | 0.404286 | 0.320476 | 0.320476 | 0.276667 | 0.171429 | 0 | 0.016634 | 0.190186 | 3,118 | 74 | 105 | 42.135135 | 0.81505 | 0.220975 | 0 | 0.244898 | 1 | 0.040816 | 0.072765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040816 | false | 0 | 0.020408 | 0 | 0.816327 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7a96fe41cda660975e605bf0643e0fb65e54b5e3 | 6,129 | py | Python | tests/test_write_tiff.py | DigitalSlideArchive/tifftools | c2db6409e909fd27bc3746bf0abacda236c42a08 | [
"Apache-2.0"
] | 25 | 2020-09-15T19:33:15.000Z | 2022-02-24T18:55:13.000Z | tests/test_write_tiff.py | DigitalSlideArchive/tifftools | c2db6409e909fd27bc3746bf0abacda236c42a08 | [
"Apache-2.0"
] | 6 | 2020-09-15T19:32:08.000Z | 2022-02-28T17:34:41.000Z | tests/test_write_tiff.py | DigitalSlideArchive/tifftools | c2db6409e909fd27bc3746bf0abacda236c42a08 | [
"Apache-2.0"
] | 1 | 2021-12-06T21:36:13.000Z | 2021-12-06T21:36:13.000Z | import copy
import logging
import os
import pytest
import tifftools
from .datastore import datastore
LOGGER = logging.getLogger('tifftools')
def test_write_already_exists(tmp_path):
path = datastore.fetch('d043-200.tif')
info = tifftools.read_tiff(path)
destpath = tmp_path / 'sample.tiff'
tifftool... | 35.427746 | 88 | 0.67613 | 793 | 6,129 | 5.04918 | 0.155107 | 0.04021 | 0.093407 | 0.082418 | 0.779471 | 0.738012 | 0.717782 | 0.685065 | 0.685065 | 0.676324 | 0 | 0.019314 | 0.172132 | 6,129 | 172 | 89 | 35.633721 | 0.769807 | 0.0217 | 0 | 0.598592 | 0 | 0 | 0.124979 | 0 | 0 | 0 | 0 | 0 | 0.098592 | 1 | 0.084507 | false | 0 | 0.042254 | 0 | 0.126761 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8f907c4887e6cbcdcd8fa85f040defb00a62c795 | 168 | py | Python | example.py | Shoe-Pi/TMP102_Pi | fcc4e5730be8a19d420968f7b4b1464eabcd4cb1 | [
"MIT"
] | null | null | null | example.py | Shoe-Pi/TMP102_Pi | fcc4e5730be8a19d420968f7b4b1464eabcd4cb1 | [
"MIT"
] | null | null | null | example.py | Shoe-Pi/TMP102_Pi | fcc4e5730be8a19d420968f7b4b1464eabcd4cb1 | [
"MIT"
] | null | null | null | import time
import TMP102
try:
while True:
print("{:.2f}".format(TMP102.get_temp()) + "*C")
time.sleep(0.5)
except KeyboardInterrupt:
print("Manually stopped.")
| 16.8 | 50 | 0.690476 | 23 | 168 | 5 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061644 | 0.130952 | 168 | 9 | 51 | 18.666667 | 0.726027 | 0 | 0 | 0 | 0 | 0 | 0.14881 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8f94a99ec231e3bca8486b3fb2578924371d260d | 33 | py | Python | packages/amplify-e2e-tests/layerdata/python/testfunc.py | rosmu/amplify-cli | 8dc238083c74e4eac6c3e96c31490f071cd1cb28 | [
"Apache-2.0"
] | 6 | 2021-03-19T00:19:29.000Z | 2021-11-08T09:46:12.000Z | packages/amplify-e2e-tests/layerdata/python/testfunc.py | rosmu/amplify-cli | 8dc238083c74e4eac6c3e96c31490f071cd1cb28 | [
"Apache-2.0"
] | 1 | 2020-06-08T11:59:37.000Z | 2020-06-08T11:59:37.000Z | packages/amplify-e2e-tests/layerdata/python/testfunc.py | rosmu/amplify-cli | 8dc238083c74e4eac6c3e96c31490f071cd1cb28 | [
"Apache-2.0"
] | 3 | 2020-07-17T01:14:56.000Z | 2021-03-29T09:04:24.000Z | testString = "Hello from Lambda!" | 33 | 33 | 0.757576 | 4 | 33 | 6.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 33 | 1 | 33 | 33 | 0.862069 | 0 | 0 | 0 | 0 | 0 | 0.529412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8fc10cefba736e82d84774cc2485ea76910168fa | 1,025 | py | Python | pubnub/endpoints/objects_v2/uuid/get_uuid.py | natekspencer/pubnub-python | 453ba34104b4067077546d5d9ba3b206559494d1 | [
"MIT"
] | 146 | 2015-01-05T03:14:53.000Z | 2022-03-16T16:51:52.000Z | pubnub/endpoints/objects_v2/uuid/get_uuid.py | natekspencer/pubnub-python | 453ba34104b4067077546d5d9ba3b206559494d1 | [
"MIT"
] | 48 | 2015-01-15T15:27:41.000Z | 2022-03-21T14:17:05.000Z | pubnub/endpoints/objects_v2/uuid/get_uuid.py | natekspencer/pubnub-python | 453ba34104b4067077546d5d9ba3b206559494d1 | [
"MIT"
] | 128 | 2015-01-05T03:40:59.000Z | 2022-03-02T20:50:58.000Z | from pubnub.endpoints.objects_v2.objects_endpoint import ObjectsEndpoint, \
IncludeCustomEndpoint, UuidEndpoint
from pubnub.enums import PNOperationType
from pubnub.enums import HttpMethod
from pubnub.models.consumer.objects_v2.uuid import PNGetUUIDMetadataResult
class GetUuid(ObjectsEndpoint, UuidEndpoint, Inclu... | 31.060606 | 96 | 0.748293 | 110 | 1,025 | 6.663636 | 0.409091 | 0.05457 | 0.040928 | 0.057299 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003542 | 0.173659 | 1,025 | 32 | 97 | 32.03125 | 0.861865 | 0 | 0 | 0 | 0 | 0 | 0.030244 | 0.022439 | 0 | 0 | 0 | 0 | 0 | 1 | 0.304348 | false | 0 | 0.173913 | 0.217391 | 0.782609 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8fc18acc9f596ae5f2af5db2617ccb341ce4b7b5 | 21 | py | Python | ambient_api/__init__.py | czeizinger/ambient-to-cwop | 49e929c5a467986cb75367fdeb02db914f1410bd | [
"MIT"
] | 20 | 2018-12-24T15:40:49.000Z | 2022-01-10T18:58:41.000Z | ambient_api/__init__.py | czeizinger/ambient-to-cwop | 49e929c5a467986cb75367fdeb02db914f1410bd | [
"MIT"
] | 10 | 2018-08-17T02:01:45.000Z | 2021-01-08T23:34:59.000Z | ambient_api/__init__.py | czeizinger/ambient-to-cwop | 49e929c5a467986cb75367fdeb02db914f1410bd | [
"MIT"
] | 14 | 2018-06-13T23:40:12.000Z | 2022-01-05T06:34:13.000Z | name = "ambient_api"
| 10.5 | 20 | 0.714286 | 3 | 21 | 4.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 21 | 1 | 21 | 21 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0.52381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8ffd21238aad23b534dce32c928ac77a8b3f6c6a | 1,735 | py | Python | dnd-stats.py | sovay/dnd-stats | a6fa4f1f7f4c03ea7440537c4cec7eb76f487b4b | [
"MIT"
] | 1 | 2018-04-11T02:00:29.000Z | 2018-04-11T02:00:29.000Z | dnd-stats.py | sovay/dnd-stats | a6fa4f1f7f4c03ea7440537c4cec7eb76f487b4b | [
"MIT"
] | null | null | null | dnd-stats.py | sovay/dnd-stats | a6fa4f1f7f4c03ea7440537c4cec7eb76f487b4b | [
"MIT"
] | null | null | null | from random import seed,randint
from ctypes import *
import sys
def get_values():
stat = []
for i in xrange(4):
stat.append(randint(1,6))
return sorted(stat)
def sum_three(stats):
return sum(stats[1:])
def rnd_seed():
while True:
try:
a = raw_input('Type a seed to determine randoms: ')
if a == "":
... | 22.828947 | 55 | 0.67781 | 245 | 1,735 | 4.702041 | 0.363265 | 0.145833 | 0.321181 | 0.329861 | 0.399306 | 0.329861 | 0.100694 | 0.100694 | 0.100694 | 0.100694 | 0 | 0.047051 | 0.179251 | 1,735 | 75 | 56 | 23.133333 | 0.761938 | 0 | 0 | 0.1875 | 0 | 0 | 0.070893 | 0 | 0 | 0 | 0.005764 | 0 | 0 | 0 | null | null | 0 | 0.046875 | null | null | 0.015625 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
890826936b6c46f205c74ea50bf046cd58eaf6e3 | 23 | py | Python | dis_ds/__init__.py | ihuston/dis-datascience | 121a5b3d64c2fff3dcc85134cd4592ab3a97d3ab | [
"Apache-2.0"
] | null | null | null | dis_ds/__init__.py | ihuston/dis-datascience | 121a5b3d64c2fff3dcc85134cd4592ab3a97d3ab | [
"Apache-2.0"
] | null | null | null | dis_ds/__init__.py | ihuston/dis-datascience | 121a5b3d64c2fff3dcc85134cd4592ab3a97d3ab | [
"Apache-2.0"
] | null | null | null | __author__ = 'pivotal'
| 11.5 | 22 | 0.73913 | 2 | 23 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 23 | 1 | 23 | 23 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0.304348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
891a289b3ec199ad5e1400e0617a0e746b28eaaf | 3,651 | py | Python | test/functional/api/cas/core.py | mdziegie/open-cas-linux | a08e6fffefc8a293c40663dfe485a1558733ddcd | [
"BSD-3-Clause-Clear"
] | null | null | null | test/functional/api/cas/core.py | mdziegie/open-cas-linux | a08e6fffefc8a293c40663dfe485a1558733ddcd | [
"BSD-3-Clause-Clear"
] | null | null | null | test/functional/api/cas/core.py | mdziegie/open-cas-linux | a08e6fffefc8a293c40663dfe485a1558733ddcd | [
"BSD-3-Clause-Clear"
] | null | null | null | #
# Copyright(c) 2019 Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause-Clear
#
from typing import List
from api.cas.cli import *
from api.cas.casadm_parser import *
from api.cas.cache import Device
from test_utils.os_utils import *
class CoreStatus(Enum):
empty = 0,
active = 1,
inactive = 2,
... | 35.794118 | 91 | 0.62476 | 465 | 3,651 | 4.567742 | 0.260215 | 0.056497 | 0.051789 | 0.070621 | 0.280132 | 0.256121 | 0.201507 | 0.149718 | 0.149718 | 0.149718 | 0 | 0.011464 | 0.28321 | 3,651 | 101 | 92 | 36.148515 | 0.800153 | 0.02602 | 0 | 0.041096 | 0 | 0 | 0.031831 | 0 | 0 | 0 | 0 | 0 | 0.013699 | 1 | 0.219178 | false | 0 | 0.068493 | 0.178082 | 0.561644 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
64f645ed181ed0cfcfcfa88d3562c23f333159f7 | 1,162 | py | Python | pyCrow/crowlib/features.py | tahesse/pyCrow | 613a521e2a7627ea3b111f69503ca1cf387692a1 | [
"Apache-2.0"
] | 4 | 2017-10-09T07:12:33.000Z | 2018-01-04T18:26:32.000Z | pyCrow/crowlib/features.py | tahesse/pyCrow | 613a521e2a7627ea3b111f69503ca1cf387692a1 | [
"Apache-2.0"
] | 1 | 2017-12-29T12:40:38.000Z | 2017-12-29T12:40:38.000Z | pyCrow/crowlib/features.py | tahesse/pyCrow | 613a521e2a7627ea3b111f69503ca1cf387692a1 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""This module provides distinct types of features given a pipeline module.
"""
# Python-native imports
import logging.config
# Third-party imports
import pykka
# App imports
# prepare logging, i.e. load config and get the root L
L = logging.getLogger(__name__)
class Fea... | 25.26087 | 87 | 0.672117 | 152 | 1,162 | 4.960526 | 0.572368 | 0.026525 | 0.037135 | 0.023873 | 0.095491 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001098 | 0.216007 | 1,162 | 45 | 88 | 25.822222 | 0.826564 | 0.296902 | 0 | 0.1 | 0 | 0 | 0.210986 | 0 | 0 | 0 | 0 | 0.022222 | 0 | 1 | 0.3 | false | 0.1 | 0.1 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
8f2b70a28f83f55db026a8abb9e99a0228502cf4 | 2,431 | py | Python | tests/test_template.py | denisvasilik/binalyzer-template-provider | a9973ade3999fefea0420dac916733365d1cd924 | [
"MIT"
] | null | null | null | tests/test_template.py | denisvasilik/binalyzer-template-provider | a9973ade3999fefea0420dac916733365d1cd924 | [
"MIT"
] | null | null | null | tests/test_template.py | denisvasilik/binalyzer-template-provider | a9973ade3999fefea0420dac916733365d1cd924 | [
"MIT"
] | null | null | null | """
test_template
~~~~~~~~~~~~~
This module implements tests for the mapping of a XML description to a
template tree.
"""
from binalyzer_core import Template
from binalyzer_template_provider import XMLTemplateParser
def test_template_mapping_root():
template = XMLTemplateParser(
"""
... | 32.413333 | 74 | 0.663513 | 278 | 2,431 | 5.708633 | 0.165468 | 0.192817 | 0.246377 | 0.289855 | 0.757404 | 0.689981 | 0.635791 | 0.445495 | 0.320731 | 0.151229 | 0 | 0.028228 | 0.213081 | 2,431 | 74 | 75 | 32.851351 | 0.801359 | 0.046894 | 0 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.75 | 1 | 0.068182 | false | 0 | 0.045455 | 0 | 0.113636 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8f443e80153d1ff54935ef6c165326b58679fa0b | 13,471 | py | Python | sacrerouge/tests/metrics/docker/rouge_test.py | jvamvas/sacrerouge | d3938d15d747707cb92067b1f711b775ddaf211e | [
"Apache-2.0"
] | 81 | 2020-07-10T15:45:08.000Z | 2022-03-30T12:19:11.000Z | sacrerouge/tests/metrics/docker/rouge_test.py | jvamvas/sacrerouge | d3938d15d747707cb92067b1f711b775ddaf211e | [
"Apache-2.0"
] | 29 | 2020-08-03T21:50:45.000Z | 2022-02-23T14:34:16.000Z | sacrerouge/tests/metrics/docker/rouge_test.py | jvamvas/sacrerouge | d3938d15d747707cb92067b1f711b775ddaf211e | [
"Apache-2.0"
] | 7 | 2020-08-14T09:54:08.000Z | 2022-03-30T12:19:25.000Z | import pytest
from repro.common.docker import image_exists
from repro.models.lin2004 import DEFAULT_IMAGE
from sacrerouge.common.testing.metric_test_cases import ReferenceBasedMetricTestCase
from sacrerouge.common.testing.util import sacrerouge_command_exists
from sacrerouge.metrics.docker import DockerRouge
@pytest... | 32.93643 | 111 | 0.307178 | 902 | 13,471 | 4.562084 | 0.312639 | 0.017497 | 0.034994 | 0.009478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.328863 | 0.573825 | 13,471 | 408 | 112 | 33.017157 | 0.387912 | 0.004825 | 0 | 0.18408 | 0 | 0 | 0.133766 | 0 | 0 | 0 | 0 | 0 | 0.007463 | 1 | 0.007463 | false | 0 | 0.014925 | 0 | 0.024876 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8f466d2278884f58cdae38a6bfdbb91180215848 | 4,447 | py | Python | exploit/pytoolkit/mini-crypto.py | 5l1v3r1/saydog-framework | 92d6d2a80958ecf5724c95d1d3c76d8ca95db8d6 | [
"Xnet",
"TCP-wrappers",
"X11"
] | 2 | 2020-09-26T16:43:11.000Z | 2021-02-09T21:46:08.000Z | exploit/pytoolkit/mini-crypto.py | 5l1v3r1/saydog-framework | 92d6d2a80958ecf5724c95d1d3c76d8ca95db8d6 | [
"Xnet",
"TCP-wrappers",
"X11"
] | null | null | null | exploit/pytoolkit/mini-crypto.py | 5l1v3r1/saydog-framework | 92d6d2a80958ecf5724c95d1d3c76d8ca95db8d6 | [
"Xnet",
"TCP-wrappers",
"X11"
] | 1 | 2022-03-19T06:40:56.000Z | 2022-03-19T06:40:56.000Z | import os,sys
import time
import socket
u='\033[4m'
w='\x1b[00m'
r='\x1b[91m'
b='\x1b[36;1m'
y='\x1b[33m'
def infouser():
s =socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.connect(('8.8.8.8',80))
ipaddress=(s.getsockname()[(0)])
print('Your ip address: '+ipaddress)
s.close... | 48.868132 | 299 | 0.337531 | 370 | 4,447 | 4.045946 | 0.337838 | 0.021376 | 0.02338 | 0.034736 | 0.08016 | 0.032064 | 0.032064 | 0 | 0 | 0 | 0 | 0.018613 | 0.516753 | 4,447 | 91 | 300 | 48.868132 | 0.67799 | 0 | 0 | 0.105882 | 0 | 0 | 0.288444 | 0.01214 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047059 | false | 0.094118 | 0.035294 | 0 | 0.082353 | 0.423529 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 3 |
8f6b6cc5387a404f72fe05b8f7a4094e32b9fa11 | 214 | py | Python | uw_hrp/util/__init__.py | uw-it-aca/uw-restclients-hrp | 460a2ad77263fd06451eb112795666fa0320544d | [
"Apache-2.0"
] | null | null | null | uw_hrp/util/__init__.py | uw-it-aca/uw-restclients-hrp | 460a2ad77263fd06451eb112795666fa0320544d | [
"Apache-2.0"
] | 10 | 2017-06-20T21:54:51.000Z | 2021-05-25T15:34:32.000Z | uw_hrp/util/__init__.py | uw-it-aca/uw-restclients-hrp | 460a2ad77263fd06451eb112795666fa0320544d | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0
from restclients_core.util.decorators import use_mock
from uw_hrp.dao import HRP_DAO
fdao_hrp_override = use_mock(HRP_DAO())
| 26.75 | 53 | 0.813084 | 35 | 214 | 4.742857 | 0.714286 | 0.108434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031414 | 0.107477 | 214 | 7 | 54 | 30.571429 | 0.837696 | 0.383178 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8f6c62dfd1c1271088f5aefc4f0a40278a1ba8f9 | 1,549 | py | Python | sub3-set.py | netlabcode/upgit | 0030d7b0355aa26cdc1bfb5414fca77d33245add | [
"MIT"
] | null | null | null | sub3-set.py | netlabcode/upgit | 0030d7b0355aa26cdc1bfb5414fca77d33245add | [
"MIT"
] | null | null | null | sub3-set.py | netlabcode/upgit | 0030d7b0355aa26cdc1bfb5414fca77d33245add | [
"MIT"
] | null | null | null | from opcua import Client
from opcua import ua
import time
url = "opc.tcp://127.0.0.1:8899/freeopcua/server/"
client = Client(url)
client.connect()
print("client connected")
val0 = client.get_node("ns=2;i=2")
val1 = client.get_node("ns=2;i=3")
val2 = client.get_node("ns=2;i=4")
val3 = client.get_node("... | 28.685185 | 51 | 0.656553 | 310 | 1,549 | 3.167742 | 0.309677 | 0.311609 | 0.450102 | 0.519348 | 0.588595 | 0.588595 | 0 | 0 | 0 | 0 | 0 | 0.123348 | 0.120723 | 1,549 | 53 | 52 | 29.226415 | 0.597651 | 0 | 0 | 0 | 0 | 0 | 0.239465 | 0.028094 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068182 | 0 | 0.068182 | 0.045455 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8f7dd5f6a86d2d56ee13ffb8e61ddc1b9c5cc41a | 3,326 | py | Python | tests/tests.py | pmla/best-subset-selection | 1c96aad39ecfd4e4166a7a13a7561b743d469483 | [
"MIT"
] | null | null | null | tests/tests.py | pmla/best-subset-selection | 1c96aad39ecfd4e4166a7a13a7561b743d469483 | [
"MIT"
] | null | null | null | tests/tests.py | pmla/best-subset-selection | 1c96aad39ecfd4e4166a7a13a7561b743d469483 | [
"MIT"
] | null | null | null | import pytest
from numpy.testing import assert_allclose
import numpy as np
import bestsubset
TOL = 1E-10
@pytest.mark.parametrize("k", range(1, 5))
def test_rmse_overdetermined(k):
m, n = 20, 10
rng = np.random.RandomState(0)
A = rng.uniform(size=(m, n))
b = rng.uniform(size=m)
params = {'Output... | 34.28866 | 77 | 0.610343 | 441 | 3,326 | 4.519274 | 0.174603 | 0.010035 | 0.070246 | 0.075263 | 0.704967 | 0.704967 | 0.704967 | 0.673859 | 0.673859 | 0.673859 | 0 | 0.02498 | 0.241732 | 3,326 | 96 | 78 | 34.645833 | 0.765266 | 0 | 0 | 0.594937 | 0 | 0 | 0.052315 | 0 | 0 | 0 | 0 | 0 | 0.101266 | 1 | 0.063291 | false | 0 | 0.050633 | 0 | 0.113924 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
56ab1612e3852600a2f1db2c5f37c09daf626ed1 | 84 | py | Python | yc168/536.py | c-yan/yukicoder | cdbbd65402177225dd989df7fe01f67908484a69 | [
"MIT"
] | null | null | null | yc168/536.py | c-yan/yukicoder | cdbbd65402177225dd989df7fe01f67908484a69 | [
"MIT"
] | null | null | null | yc168/536.py | c-yan/yukicoder | cdbbd65402177225dd989df7fe01f67908484a69 | [
"MIT"
] | null | null | null | S = input()
if S[-2:] == 'ai':
print(S[:-2] + 'AI')
else:
print(S + '-AI')
| 12 | 24 | 0.392857 | 14 | 84 | 2.357143 | 0.5 | 0.121212 | 0.242424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032787 | 0.27381 | 84 | 6 | 25 | 14 | 0.508197 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
56c6c63b5744a48be637c135dd4830388e2c9be8 | 265 | py | Python | pagetools/widgets/settings.py | theithec/pagetools | f5fba7213864555275bddcc1882122f3be843f19 | [
"MIT"
] | null | null | null | pagetools/widgets/settings.py | theithec/pagetools | f5fba7213864555275bddcc1882122f3be843f19 | [
"MIT"
] | 14 | 2020-02-23T12:15:49.000Z | 2022-02-13T14:07:27.000Z | pagetools/widgets/settings.py | theithec/django-pagetools | 8fb73285acee8c8162329fc2895a3816fcb40165 | [
"MIT"
] | null | null | null | from django.conf import settings
def _(_x):
return _x
AREAS = getattr(
settings,
"PT_AREAS",
(
(
"sidebar",
_("Sidebar"),
),
),
)
TEMPLATETAG_WIDGETS = getattr(settings, "PT_TEMPLATETAG_WIDGETS", {})
| 13.25 | 69 | 0.532075 | 23 | 265 | 5.782609 | 0.608696 | 0.225564 | 0.255639 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.339623 | 265 | 19 | 70 | 13.947368 | 0.76 | 0 | 0 | 0.142857 | 0 | 0 | 0.166038 | 0.083019 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0.071429 | 0.214286 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
56f5c6f9069cf047331b14ee272a2a56fb4c5787 | 189 | py | Python | Writingtextfiles.py | joaovitorle/AnotacoesCoursera2 | b0b033feca28bf207e5edcaef5667c7e54b7bdb6 | [
"MIT"
] | null | null | null | Writingtextfiles.py | joaovitorle/AnotacoesCoursera2 | b0b033feca28bf207e5edcaef5667c7e54b7bdb6 | [
"MIT"
] | null | null | null | Writingtextfiles.py | joaovitorle/AnotacoesCoursera2 | b0b033feca28bf207e5edcaef5667c7e54b7bdb6 | [
"MIT"
] | null | null | null | file_obj = open("squares.txt", "w") #Usar w de writing
for number in range (13):
square = number * number
file_obj.write(str(square))
file_obj.write('\n')
file_obj.close()
| 23.625 | 54 | 0.645503 | 30 | 189 | 3.933333 | 0.633333 | 0.237288 | 0.20339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013245 | 0.201058 | 189 | 7 | 55 | 27 | 0.768212 | 0.089947 | 0 | 0 | 0 | 0 | 0.081871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
56f8088aa803256098f446c8ea0f2c3b398012b4 | 195 | py | Python | Day-3-assign-1.py | aveline2703/aveline-letsupgrade-python | bfe77f094c4497579348dc4e601b8c0b80fb4f22 | [
"MIT"
] | null | null | null | Day-3-assign-1.py | aveline2703/aveline-letsupgrade-python | bfe77f094c4497579348dc4e601b8c0b80fb4f22 | [
"MIT"
] | null | null | null | Day-3-assign-1.py | aveline2703/aveline-letsupgrade-python | bfe77f094c4497579348dc4e601b8c0b80fb4f22 | [
"MIT"
] | null | null | null | altitude = int(input("Enter Altitude in ft:"))
if altitude<=1000:
print("Safe to land")
elif altitude< 5000:
print("Bring down to 1000")
else:
print("Turn Around and Try Again") | 27.857143 | 47 | 0.65641 | 29 | 195 | 4.413793 | 0.758621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077922 | 0.210256 | 195 | 7 | 48 | 27.857143 | 0.753247 | 0 | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
71121ee9f9545cfc64382bb5d9e90a224d490f80 | 23 | py | Python | app/tasks/templatetags/__init__.py | rikkt0r/django-organiser | d7ce51eb2db82af01d3df9e3e019752e11d5eefc | [
"MIT"
] | null | null | null | app/tasks/templatetags/__init__.py | rikkt0r/django-organiser | d7ce51eb2db82af01d3df9e3e019752e11d5eefc | [
"MIT"
] | null | null | null | app/tasks/templatetags/__init__.py | rikkt0r/django-organiser | d7ce51eb2db82af01d3df9e3e019752e11d5eefc | [
"MIT"
] | null | null | null | __author__ = 'rikkt0r'
| 11.5 | 22 | 0.73913 | 2 | 23 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.130435 | 23 | 1 | 23 | 23 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0.304348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
714359fc2a99d1682177e281f66003456e01b272 | 1,165 | py | Python | mason/util/yaml.py | kyprifog/mason | bf45672124ef841bc16216c293034f4ccc506621 | [
"Apache-2.0"
] | 4 | 2021-04-12T17:49:34.000Z | 2022-01-23T19:54:29.000Z | mason/util/yaml.py | kyprifog/mason | bf45672124ef841bc16216c293034f4ccc506621 | [
"Apache-2.0"
] | 24 | 2021-04-30T18:40:25.000Z | 2021-05-12T20:52:06.000Z | mason/util/yaml.py | kyprifog/mason | bf45672124ef841bc16216c293034f4ccc506621 | [
"Apache-2.0"
] | 3 | 2021-04-12T19:40:43.000Z | 2021-09-07T21:56:36.000Z | from typing import Union
import yaml
from mason.util.logger import logger
def parse_yaml(file: str):
try:
with open(file, 'r') as stream:
try:
yaml_load: dict = yaml.safe_load(stream)
if type(yaml_load).__name__ == "dict":
return yaml_load
... | 34.264706 | 73 | 0.543348 | 143 | 1,165 | 4.27972 | 0.27972 | 0.104575 | 0.084967 | 0.111111 | 0.787582 | 0.767974 | 0.732026 | 0.643791 | 0.643791 | 0.643791 | 0 | 0 | 0.353648 | 1,165 | 33 | 74 | 35.30303 | 0.812749 | 0 | 0 | 0.62069 | 0 | 0 | 0.180412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.103448 | 0 | 0.344828 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
71443ab49f58e6a255a4ece9bab437a627123cba | 86 | py | Python | testbed.py | haydenhitt1094/SL | a4f5752a2a7b556d8b1be78ab12c0e85d8e87175 | [
"MIT"
] | null | null | null | testbed.py | haydenhitt1094/SL | a4f5752a2a7b556d8b1be78ab12c0e85d8e87175 | [
"MIT"
] | null | null | null | testbed.py | haydenhitt1094/SL | a4f5752a2a7b556d8b1be78ab12c0e85d8e87175 | [
"MIT"
] | null | null | null | import Register
sample = Register('read','01','sda12','sample.txt')
sample.postStream | 21.5 | 51 | 0.744186 | 11 | 86 | 5.818182 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.069767 | 86 | 4 | 52 | 21.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.241379 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
8535e85eeac180ef0a0d9c588418cd5d4f41e614 | 201 | py | Python | portal/database.py | ivan-c/truenth-portal | 0b9d39ae43f42ea3413ed9634f295f5d856cbc77 | [
"BSD-3-Clause"
] | 1 | 2019-03-11T12:25:20.000Z | 2019-03-11T12:25:20.000Z | portal/database.py | pep8speaks/true_nth_usa_portal | 31ff755b0cfe61ab908e2a399e3c41ef17ca8c16 | [
"BSD-3-Clause"
] | 123 | 2019-04-04T06:59:59.000Z | 2021-08-02T07:46:21.000Z | portal/database.py | pep8speaks/true_nth_usa_portal | 31ff755b0cfe61ab908e2a399e3c41ef17ca8c16 | [
"BSD-3-Clause"
] | null | null | null | """Database inclusion hook - keep minimal to avoid cyclic dependencies"""
# SQLAlchemy provides the database object relational mapping (ORM)
from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
| 28.714286 | 73 | 0.79602 | 24 | 201 | 6.625 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139303 | 201 | 6 | 74 | 33.5 | 0.919075 | 0.661692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
853dfdfe445efd21ec9cd8b26b309f9305fd7630 | 331 | py | Python | Exercices/Secao05/exercicio15.py | Guilt-tech/PythonExercices | e59bffae997a1974d3e3cdcfff7700afbed65e6e | [
"MIT"
] | null | null | null | Exercices/Secao05/exercicio15.py | Guilt-tech/PythonExercices | e59bffae997a1974d3e3cdcfff7700afbed65e6e | [
"MIT"
] | null | null | null | Exercices/Secao05/exercicio15.py | Guilt-tech/PythonExercices | e59bffae997a1974d3e3cdcfff7700afbed65e6e | [
"MIT"
] | null | null | null | print('Digite um número entre 1 e 7, para ver o dia da semana')
diaSemana = ['1-Domingo', '2-Segunda-feira', '3-Terça-feira', '4-Quarta-feira', '5-Quinta-feira', '6-Sexta-feira', '7-Sábado']
dia = int(input('Número: '))
if 1 < dia < 7:
print('Dia da semana inválido')
else:
print(f'O dia da semana é: {diaSemana[... | 47.285714 | 126 | 0.643505 | 58 | 331 | 3.672414 | 0.603448 | 0.070423 | 0.15493 | 0.112676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043011 | 0.1571 | 331 | 7 | 127 | 47.285714 | 0.72043 | 0 | 0 | 0 | 0 | 0 | 0.629518 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
85677602154da637c95a3169e8487ea800c11114 | 584 | py | Python | Python/leetcode/PopulatingNextRightPointersInEachNodeIi.py | darrencheng0817/AlgorithmLearning | aec1ddd0c51b619c1bae1e05f940d9ed587aa82f | [
"MIT"
] | 2 | 2015-12-02T06:44:01.000Z | 2016-05-04T21:40:54.000Z | Python/leetcode/PopulatingNextRightPointersInEachNodeIi.py | darrencheng0817/AlgorithmLearning | aec1ddd0c51b619c1bae1e05f940d9ed587aa82f | [
"MIT"
] | null | null | null | Python/leetcode/PopulatingNextRightPointersInEachNodeIi.py | darrencheng0817/AlgorithmLearning | aec1ddd0c51b619c1bae1e05f940d9ed587aa82f | [
"MIT"
] | null | null | null | '''
Created on 1.12.2016
@author: Darren
''''''
Follow up for problem "Populating Next Right Pointers in Each Node".
What if the given tree could be any binary tree? Would your previous solution still work?
Note:
You may only use constant extra space.
For example,
Given the following binary tre... | 17.176471 | 91 | 0.506849 | 73 | 584 | 4.054795 | 0.753425 | 0.067568 | 0.02027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054913 | 0.407534 | 584 | 33 | 92 | 17.69697 | 0.800578 | 0.902397 | 0 | 0.3 | 0 | 0 | 0.986166 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8592f2982e0a689c114f3d953dc1f5c6a66e5ad4 | 251 | py | Python | py_grpc_profile/adapter/interfaces.py | fossabot/py-grpc-profile | c68540891efb06b3bb8d6beb54238bd9e03c40c8 | [
"Apache-2.0"
] | null | null | null | py_grpc_profile/adapter/interfaces.py | fossabot/py-grpc-profile | c68540891efb06b3bb8d6beb54238bd9e03c40c8 | [
"Apache-2.0"
] | 2 | 2021-03-23T23:49:14.000Z | 2022-02-11T03:38:44.000Z | py_grpc_profile/adapter/interfaces.py | fossabot/py-grpc-profile | c68540891efb06b3bb8d6beb54238bd9e03c40c8 | [
"Apache-2.0"
] | 1 | 2021-03-23T23:47:17.000Z | 2021-03-23T23:47:17.000Z | from abc import ABCMeta, abstractmethod
from typing import Callable, Dict
class Adapter(metaclass=ABCMeta):
@abstractmethod
def run(
self, behavior: Callable, request_or_iterator, servicer_context, metadata: Dict
):
pass
| 22.818182 | 87 | 0.721116 | 28 | 251 | 6.357143 | 0.785714 | 0.235955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215139 | 251 | 10 | 88 | 25.1 | 0.903553 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
8593e1b548b8ac15c04a84dfed9e1bf82bb7a2ba | 37,733 | py | Python | 5 - Computer Vision/image_detection_with_pretrained_model.py | danielgarm/FreeCodeCamp-Machine-Learning | c0f7e808dba5a87cada8af1f5623283ac77c96a3 | [
"MIT"
] | null | null | null | 5 - Computer Vision/image_detection_with_pretrained_model.py | danielgarm/FreeCodeCamp-Machine-Learning | c0f7e808dba5a87cada8af1f5623283ac77c96a3 | [
"MIT"
] | null | null | null | 5 - Computer Vision/image_detection_with_pretrained_model.py | danielgarm/FreeCodeCamp-Machine-Learning | c0f7e808dba5a87cada8af1f5623283ac77c96a3 | [
"MIT"
] | null | null | null | # Based on https://www.tensorflow.org/tutorials/images/transfer_learning
# Imports
import os
import numpy as np
import matplotlib.pyplot as plt
import tensorflow as tf
keras = tf.keras
import tensorflow_datasets as tfds
tfds.disable_progress_bar()
# Split the data manually into 80% training, 10% testing, 10% validat... | 79.605485 | 118 | 0.740519 | 3,095 | 37,733 | 3.750889 | 0.108562 | 0.102334 | 0.091653 | 0.041089 | 0.626238 | 0.426221 | 0.367474 | 0.348264 | 0.213024 | 0.008269 | 0 | 0.077647 | 0.186654 | 37,733 | 473 | 119 | 79.773784 | 0.300619 | 0.913736 | 0 | 0.083333 | 0 | 0 | 0.045817 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.013889 | 0.069444 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
85951ba36e09f88d31b1e1cc190d2d98830b2e80 | 3,673 | py | Python | lmsapi/api_customer/migrations/0002_assignments_tariffs.py | orkasolutions-develop/lms-api-new | c9e5a2d98874a4a7415002397048258526a94644 | [
"MIT"
] | null | null | null | lmsapi/api_customer/migrations/0002_assignments_tariffs.py | orkasolutions-develop/lms-api-new | c9e5a2d98874a4a7415002397048258526a94644 | [
"MIT"
] | null | null | null | lmsapi/api_customer/migrations/0002_assignments_tariffs.py | orkasolutions-develop/lms-api-new | c9e5a2d98874a4a7415002397048258526a94644 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.7 on 2020-09-27 21:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api_customer', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Assignments',
fields=[
... | 48.328947 | 114 | 0.54397 | 327 | 3,673 | 5.990826 | 0.284404 | 0.321593 | 0.132721 | 0.173558 | 0.565595 | 0.53803 | 0.53803 | 0.36294 | 0.130679 | 0.080653 | 0 | 0.011328 | 0.303022 | 3,673 | 75 | 115 | 48.973333 | 0.753906 | 0.012252 | 0 | 0.202899 | 1 | 0 | 0.126862 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.014493 | 0 | 0.057971 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
85bdf1db16ddb60fd28da220ae8c5e1416e171ee | 3,128 | py | Python | Outcome 4 - Object-Oriented Programming/types_buildings.py | brotich/andela_bootcamp_X | 19fc5bb66d3c930d4e6b9afeb45abc00bbc4c2ea | [
"MIT"
] | null | null | null | Outcome 4 - Object-Oriented Programming/types_buildings.py | brotich/andela_bootcamp_X | 19fc5bb66d3c930d4e6b9afeb45abc00bbc4c2ea | [
"MIT"
] | null | null | null | Outcome 4 - Object-Oriented Programming/types_buildings.py | brotich/andela_bootcamp_X | 19fc5bb66d3c930d4e6b9afeb45abc00bbc4c2ea | [
"MIT"
] | null | null | null |
class BaseBuilding(object):
"""
boilder-plate class used to initiale the various building in
municipality
"""
def __init__(self, location=None, land_rate=500):
if not isinstance(location, str) and location is not None:
raise TypeError("Location should be of type str")
... | 29.233645 | 76 | 0.660806 | 405 | 3,128 | 4.767901 | 0.190123 | 0.09943 | 0.054376 | 0.043501 | 0.555153 | 0.381668 | 0.273433 | 0.199896 | 0.159503 | 0.159503 | 0 | 0.005184 | 0.25991 | 3,128 | 106 | 77 | 29.509434 | 0.828942 | 0.116688 | 0 | 0.413793 | 0 | 0 | 0.101208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.310345 | false | 0 | 0 | 0.12069 | 0.517241 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a42969277ce4907af7db6761da06e07ccca00763 | 150 | py | Python | tests/conftest.py | Gerschtli/betting-game-backend | 4fb38e5316ea6509b4468f8ca11de2f899366abb | [
"MIT"
] | null | null | null | tests/conftest.py | Gerschtli/betting-game-backend | 4fb38e5316ea6509b4468f8ca11de2f899366abb | [
"MIT"
] | 1 | 2021-11-04T16:42:26.000Z | 2021-11-04T16:42:26.000Z | tests/conftest.py | Gerschtli/betting-game-backend | 4fb38e5316ea6509b4468f8ca11de2f899366abb | [
"MIT"
] | null | null | null | import pytest
from flask import Flask
@pytest.fixture
def app() -> Flask:
app = Flask(__name__)
app.config['TESTING'] = True
return app
| 15 | 32 | 0.673333 | 20 | 150 | 4.85 | 0.6 | 0.164948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22 | 150 | 9 | 33 | 16.666667 | 0.82906 | 0 | 0 | 0 | 0 | 0 | 0.046667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a430006d7b4ebe6847a59aaa448ca6d66c881c23 | 178 | py | Python | src/__init__.py | nchabalier/picture-to-GPS | 13b95dea9550bb7d80ff90ef36bdb449bbc9168a | [
"MIT"
] | null | null | null | src/__init__.py | nchabalier/picture-to-GPS | 13b95dea9550bb7d80ff90ef36bdb449bbc9168a | [
"MIT"
] | null | null | null | src/__init__.py | nchabalier/picture-to-GPS | 13b95dea9550bb7d80ff90ef36bdb449bbc9168a | [
"MIT"
] | 1 | 2021-01-27T11:16:43.000Z | 2021-01-27T11:16:43.000Z | """
Extract GPS points from a route map picture with python/OpenCV
"""
from .picture_to_gps import *
gpx_extractor = GPXExtractor("example/visugpx.png")
gpx_extractor.convert()
| 22.25 | 62 | 0.775281 | 25 | 178 | 5.36 | 0.8 | 0.179104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117978 | 178 | 7 | 63 | 25.428571 | 0.853503 | 0.348315 | 0 | 0 | 0 | 0 | 0.175926 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a431aa38ee8a06207019b7518a1c3ca69913e615 | 113 | py | Python | WHILE.py | hejeffery/Python-Basic-Demo | 48a8b246dbdee33ab7f8dba9002f1367dd749b76 | [
"MIT"
] | 1 | 2017-02-27T09:24:03.000Z | 2017-02-27T09:24:03.000Z | WHILE.py | hejeffery/Python-Basic-Demo | 48a8b246dbdee33ab7f8dba9002f1367dd749b76 | [
"MIT"
] | null | null | null | WHILE.py | hejeffery/Python-Basic-Demo | 48a8b246dbdee33ab7f8dba9002f1367dd749b76 | [
"MIT"
] | null | null | null | # coding=utf-8
# while循环语句
a = 0
while a < 10:
print "a = %d" % a
a += 1
else:
print "a > 10了,循环结束" | 11.3 | 24 | 0.495575 | 20 | 113 | 2.8 | 0.7 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093333 | 0.336283 | 113 | 10 | 24 | 11.3 | 0.653333 | 0.19469 | 0 | 0 | 0 | 0 | 0.202247 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a44dde873ff20e0cc48013074466ec24dbf8e5e6 | 4,589 | py | Python | WBT/PRE/testing.py | Hornbydd/WhiteboxTools-ArcGIS | 2d0de83fc915e54bc8c2f6ca0dd39ca28e578112 | [
"MIT"
] | 157 | 2019-02-12T16:24:27.000Z | 2022-03-26T02:46:38.000Z | WBT/PRE/testing.py | Hornbydd/WhiteboxTools-ArcGIS | 2d0de83fc915e54bc8c2f6ca0dd39ca28e578112 | [
"MIT"
] | 22 | 2019-02-13T15:03:59.000Z | 2022-03-11T21:17:05.000Z | WBT/PRE/testing.py | Hornbydd/WhiteboxTools-ArcGIS | 2d0de83fc915e54bc8c2f6ca0dd39ca28e578112 | [
"MIT"
] | 42 | 2019-02-12T20:22:48.000Z | 2022-03-25T17:37:01.000Z | import whitebox
import ast
import json
import os
import sys
wbt = whitebox.WhiteboxTools()
# wbt.set_verbose_mode(True)
# print(wbt.version())
# print(wbt.help())
# tools = wbt.list_tools(['dem'])
# for index, tool in enumerate(tools):
# print("{}. {}: {}".format(index, tool, tools[tool]))
# def get_tool_para... | 29.044304 | 193 | 0.628895 | 570 | 4,589 | 4.880702 | 0.226316 | 0.025881 | 0.026959 | 0.032351 | 0.22394 | 0.133717 | 0.081955 | 0.081955 | 0.081955 | 0.081955 | 0 | 0.005716 | 0.19939 | 4,589 | 158 | 194 | 29.044304 | 0.751497 | 0.922205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.833333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a47b663f38bf603be81cb2d99ccfdaa4d1a9a5d3 | 1,460 | py | Python | packages/w3af/w3af/core/controllers/core_helpers/strategy_observers/strategy_observer.py | ZooAtmosphereGroup/HelloPackages | 0ccffd33bf927b13d28c8f715ed35004c33465d9 | [
"Apache-2.0"
] | 3 | 2019-04-09T22:59:33.000Z | 2019-06-14T09:23:24.000Z | tools/w3af/w3af/core/controllers/core_helpers/strategy_observers/strategy_observer.py | sravani-m/Web-Application-Security-Framework | d9f71538f5cba6fe1d8eabcb26c557565472f6a6 | [
"MIT"
] | null | null | null | tools/w3af/w3af/core/controllers/core_helpers/strategy_observers/strategy_observer.py | sravani-m/Web-Application-Security-Framework | d9f71538f5cba6fe1d8eabcb26c557565472f6a6 | [
"MIT"
] | null | null | null | """
strategy_observer.py
Copyright 2015 Andres Riancho
This file is part of w3af, http://w3af.org/ .
w3af is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation version 2 of the License.
w3af is distributed in the hop... | 29.2 | 79 | 0.716438 | 211 | 1,460 | 4.914692 | 0.582938 | 0.027001 | 0.037608 | 0.054966 | 0.165863 | 0.054002 | 0 | 0 | 0 | 0 | 0 | 0.018634 | 0.228082 | 1,460 | 49 | 80 | 29.795918 | 0.901508 | 0.70137 | 0 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.454545 | false | 0.454545 | 0 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
a495b8c5d306dee775c3a4fd9a5788870df43159 | 304 | py | Python | learnml/linear_model/__init__.py | Vipul97/learnml | e1ca5b58fc0118ab8a65e35c5bbf9aac2fb2bc17 | [
"MIT"
] | 3 | 2019-11-22T22:12:52.000Z | 2021-04-02T19:40:20.000Z | learnml/linear_model/__init__.py | Vipul97/learnml | e1ca5b58fc0118ab8a65e35c5bbf9aac2fb2bc17 | [
"MIT"
] | null | null | null | learnml/linear_model/__init__.py | Vipul97/learnml | e1ca5b58fc0118ab8a65e35c5bbf9aac2fb2bc17 | [
"MIT"
] | 1 | 2021-10-05T23:24:03.000Z | 2021-10-05T23:24:03.000Z | from ._base import LinearRegression
from ._stochastic_gradient import SGDClassifier, SGDRegressor
from ._ridge import Ridge
from ._perceptron import Perceptron
__all__ = ['LinearRegression',
'Perceptron',
'Ridge',
'SGDClassifier',
'SGDRegressor'
]
| 25.333333 | 61 | 0.661184 | 24 | 304 | 8 | 0.458333 | 0.260417 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266447 | 304 | 11 | 62 | 27.636364 | 0.860987 | 0 | 0 | 0 | 0 | 0 | 0.184211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
8eff7acca7f49a1befe202633f83f69a24dff899 | 214 | py | Python | Sandwich.py | lovexiaov/SandwichApp | f834f626ef087e0e1eaeed5be6c8740b65153308 | [
"Apache-2.0"
] | 3 | 2017-01-23T08:11:15.000Z | 2019-12-31T04:06:45.000Z | Sandwich.py | lovexiaov/SandwichApp | f834f626ef087e0e1eaeed5be6c8740b65153308 | [
"Apache-2.0"
] | null | null | null | Sandwich.py | lovexiaov/SandwichApp | f834f626ef087e0e1eaeed5be6c8740b65153308 | [
"Apache-2.0"
] | 3 | 2018-01-16T14:57:57.000Z | 2021-12-14T16:06:27.000Z | import sys
if sys.version_info < (3, 0):
import Tkinter as tk
else:
import tkinter as tk
root = tk.Tk()
root.title("Sandwich")
tk.Button(root, text='Make me a sandwich').pack()
tk.mainloop()
| 16.461538 | 49 | 0.635514 | 34 | 214 | 3.970588 | 0.617647 | 0.192593 | 0.222222 | 0.251852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012121 | 0.228972 | 214 | 13 | 50 | 16.461538 | 0.806061 | 0 | 0 | 0 | 0 | 0 | 0.12093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f11170dbe73fc0163570a2adf101fd78764762ff | 291 | py | Python | str_format.py | Golubkin/2019-fall-polytech-cs | 46632805874fee98f8e0b156332d252c32784c04 | [
"MIT"
] | null | null | null | str_format.py | Golubkin/2019-fall-polytech-cs | 46632805874fee98f8e0b156332d252c32784c04 | [
"MIT"
] | null | null | null | str_format.py | Golubkin/2019-fall-polytech-cs | 46632805874fee98f8e0b156332d252c32784c04 | [
"MIT"
] | null | null | null | age = 17
name = 'Nicolay'
print('Возраст {0} - - {1} лет.'.format(name, age))
print('Почему {0} забавляется с этим Python?'.format(name))
# второй способ
age =100
name = 'Nicolay'
print('Возраст {} - - {} лет.'.format(name,age))
print('Почему {} забавляется с этим Python?'.format(name))
| 22.384615 | 59 | 0.652921 | 41 | 291 | 4.634146 | 0.439024 | 0.210526 | 0.168421 | 0.242105 | 0.621053 | 0.621053 | 0 | 0 | 0 | 0 | 0 | 0.032129 | 0.14433 | 291 | 12 | 60 | 24.25 | 0.730924 | 0.044674 | 0 | 0.25 | 0 | 0 | 0.481884 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
f1639cc09de5718526df3c8641e5c5a33c9c283a | 682 | py | Python | brandi/test.py | TheSimonSays/Brandi | 2512a9bb53c4a2d1d467fa83e0478d7ad7f61f72 | [
"MIT"
] | 1 | 2021-10-17T20:21:22.000Z | 2021-10-17T20:21:22.000Z | brandi/test.py | TheSimonSays/Brandi | 2512a9bb53c4a2d1d467fa83e0478d7ad7f61f72 | [
"MIT"
] | null | null | null | brandi/test.py | TheSimonSays/Brandi | 2512a9bb53c4a2d1d467fa83e0478d7ad7f61f72 | [
"MIT"
] | null | null | null | import typing as t
from gunicorn.app.wsgiapp import WSGIApplication
from brandi.brandi import Brandi
class TestBrandiApp(WSGIApplication):
def __init__(self, app: Brandi, options: t.Optional[t.Dict[str, t.Any]] = None) -> None:
self.app = app
self.options = options or {}
super().__init__()... | 28.416667 | 92 | 0.611437 | 91 | 682 | 4.483516 | 0.43956 | 0.051471 | 0.053922 | 0.063725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.280059 | 682 | 24 | 93 | 28.416667 | 0.830957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.157895 | 0.105263 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f165988f09b78bab875250327335879a337d6cf9 | 605 | py | Python | stack/impleQueue.py | Crystal-girl/Algorithm-interview-lecture-40 | a9619217656d207649788d8e7e24b1a5b2e28c7d | [
"MIT"
] | null | null | null | stack/impleQueue.py | Crystal-girl/Algorithm-interview-lecture-40 | a9619217656d207649788d8e7e24b1a5b2e28c7d | [
"MIT"
] | null | null | null | stack/impleQueue.py | Crystal-girl/Algorithm-interview-lecture-40 | a9619217656d207649788d8e7e24b1a5b2e28c7d | [
"MIT"
] | null | null | null | """
leetcode 232
Stack implementation Queue
"""
def __init__(self):
self.instack = []
self.outstack = []
def push(self, x: int) -> None:
self.instack.append(x)
def pop(self) -> int:
if not self.outstack:
while self.instack:
self.outstack.append(self.instack.pop())
return self.... | 20.862069 | 52 | 0.624793 | 80 | 605 | 4.675 | 0.3375 | 0.256684 | 0.120321 | 0.184492 | 0.481283 | 0.481283 | 0.481283 | 0.481283 | 0.481283 | 0.481283 | 0 | 0.008772 | 0.246281 | 605 | 28 | 53 | 21.607143 | 0.811404 | 0.064463 | 0 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.