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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b18841227ccc68fe6cd13c47868e31046097f477 | 1,413 | py | Python | setup.py | osmanbaskaya/neural-wsd | 9cefaf19405f62e56b0599df73e8ee7396242bc5 | [
"MIT"
] | null | null | null | setup.py | osmanbaskaya/neural-wsd | 9cefaf19405f62e56b0599df73e8ee7396242bc5 | [
"MIT"
] | null | null | null | setup.py | osmanbaskaya/neural-wsd | 9cefaf19405f62e56b0599df73e8ee7396242bc5 | [
"MIT"
] | null | null | null | from setuptools import find_packages
from setuptools import setup
setup(
name="neural-wsd",
packages=find_packages("neural_wsd"),
package_dir={"": "neural_wsd"},
author="Osman Baskaya",
author_email="osmanbaskaya1@gmail.com",
version="0.0.1",
dependency_links=[],
install_requires=[
... | 20.185714 | 43 | 0.452937 | 102 | 1,413 | 6.196078 | 0.852941 | 0.042722 | 0.063291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009302 | 0.391366 | 1,413 | 69 | 44 | 20.478261 | 0.725581 | 0 | 0 | 0 | 0 | 0 | 0.353149 | 0.016277 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.044118 | 0 | 0.044118 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
b18ae23d7ad011c2372f4c9a4934137e056fb95c | 1,574 | py | Python | fluid/perf_manager.py | SymbioticLab/Fluid | 3598be4f640514a72b4d67e18d7cfbc4a8cd7fd8 | [
"Apache-2.0"
] | 12 | 2021-03-10T15:36:04.000Z | 2022-01-07T16:07:24.000Z | fluid/perf_manager.py | SymbioticLab/Fluid | 3598be4f640514a72b4d67e18d7cfbc4a8cd7fd8 | [
"Apache-2.0"
] | 2 | 2022-01-07T16:03:36.000Z | 2022-01-14T08:21:06.000Z | fluid/perf_manager.py | SymbioticLab/Fluid | 3598be4f640514a72b4d67e18d7cfbc4a8cd7fd8 | [
"Apache-2.0"
] | 3 | 2021-05-16T03:15:08.000Z | 2021-12-10T11:50:16.000Z | from __future__ import annotations
import logging
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from typing import Any, Dict, Mapping, Optional, Set
logger = logging.getLogger(__name__)
class TrialPerf:
"""Perf info of a single trial"""
def __init__(self):
self.iter_speed: Optional[float]... | 28.618182 | 80 | 0.652478 | 214 | 1,574 | 4.560748 | 0.364486 | 0.064549 | 0.093238 | 0.055328 | 0.079918 | 0.059426 | 0.059426 | 0 | 0 | 0 | 0 | 0 | 0.256671 | 1,574 | 54 | 81 | 29.148148 | 0.834188 | 0.149936 | 0 | 0.064516 | 0 | 0 | 0.012223 | 0 | 0 | 0 | 0 | 0.018519 | 0 | 1 | 0.193548 | false | 0 | 0.129032 | 0.064516 | 0.483871 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b18c7716ef313896df1d0fdac1f7ef0062a31fae | 1,959 | py | Python | edison/config.py | DoRTaL94/edison | 3a924e31e7074d86e9d71710d2775fab9f01e63a | [
"MIT"
] | null | null | null | edison/config.py | DoRTaL94/edison | 3a924e31e7074d86e9d71710d2775fab9f01e63a | [
"MIT"
] | null | null | null | edison/config.py | DoRTaL94/edison | 3a924e31e7074d86e9d71710d2775fab9f01e63a | [
"MIT"
] | null | null | null | import secrets
import inspect
import sys, inspect
def get_config_object(env_keyword: str):
"""
Returns the the desired config class path.
The function iterates through a dictionary returned by inspect.
The dictionary contains details about all of the file members.
Its key is the name of the membe... | 35.618182 | 103 | 0.741194 | 267 | 1,959 | 5.280899 | 0.483146 | 0.070922 | 0.04539 | 0.029787 | 0.092199 | 0.092199 | 0.092199 | 0.092199 | 0.092199 | 0.092199 | 0 | 0.005102 | 0.199592 | 1,959 | 54 | 104 | 36.277778 | 0.894133 | 0.504339 | 0 | 0.08 | 0 | 0 | 0.091603 | 0.049073 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.12 | 0 | 0.92 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b1913a55354ed6c7d69d6c355020bf0aec1bf70b | 307 | py | Python | examples/python_only_vcp.py | Lcvette/qtpyvcp | 4143a4a4e1f557f7d0c8998c886b4a254f0be60b | [
"BSD-3-Clause-LBNL",
"MIT"
] | 71 | 2018-12-13T20:31:18.000Z | 2022-03-26T08:44:22.000Z | examples/python_only_vcp.py | adargel/qtpyvcp | 2fcb9c26616ac4effa8d92befa9e1c00a80daafa | [
"BSD-3-Clause-LBNL",
"MIT"
] | 78 | 2019-01-10T18:16:33.000Z | 2022-03-18T19:30:49.000Z | examples/python_only_vcp.py | adargel/qtpyvcp | 2fcb9c26616ac4effa8d92befa9e1c00a80daafa | [
"BSD-3-Clause-LBNL",
"MIT"
] | 38 | 2018-10-10T19:02:26.000Z | 2022-01-30T04:38:14.000Z | from qtpyvcp.widgets.form_widgets.main_window import VCPMainWindow
class PythonOnlyVCP(VCPMainWindow):
"""Main window class for the python only VCP."""
def __init__(self, *args, **kwargs):
super(PythonOnlyVCP, self).__init__(*args, **kwargs)
self.setWindowTitle("Python-only VCP")
| 34.111111 | 66 | 0.71987 | 36 | 307 | 5.861111 | 0.611111 | 0.094787 | 0.123223 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159609 | 307 | 8 | 67 | 38.375 | 0.817829 | 0.136808 | 0 | 0 | 0 | 0 | 0.057915 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b191e9a7128813d3cb5c66e25135e9c53427113d | 2,615 | py | Python | app/main/local_traverse.py | atwh0405/moviee | b793ab17feaaee3687bca2d599572c3b470a6af2 | [
"MIT"
] | null | null | null | app/main/local_traverse.py | atwh0405/moviee | b793ab17feaaee3687bca2d599572c3b470a6af2 | [
"MIT"
] | null | null | null | app/main/local_traverse.py | atwh0405/moviee | b793ab17feaaee3687bca2d599572c3b470a6af2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import re
from app import db
from app.models import Movie
from instance.config import Config
def traverse(disk, queue):
disk_path = disk + ':'
for root, dirs, files in os.walk(disk_path):
for i, dirname in enumerate(dirs):
... | 34.407895 | 102 | 0.421033 | 284 | 2,615 | 3.830986 | 0.295775 | 0.038603 | 0.051471 | 0.038603 | 0.277574 | 0.215074 | 0.215074 | 0.170956 | 0.113971 | 0.113971 | 0 | 0.029181 | 0.462715 | 2,615 | 75 | 103 | 34.866667 | 0.745196 | 0.061568 | 0 | 0.196429 | 0 | 0 | 0.030802 | 0.01097 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017857 | 0.089286 | null | null | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b19b7d01856d4601c201ac316e2e3cd9009629a4 | 23,047 | py | Python | native_client_sdk/src/tools/create_nmf.py | anirudhSK/chromium | a8f23c87e656ab9ba49de9ccccbc53f614cdcb41 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | native_client_sdk/src/tools/create_nmf.py | anirudhSK/chromium | a8f23c87e656ab9ba49de9ccccbc53f614cdcb41 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | native_client_sdk/src/tools/create_nmf.py | anirudhSK/chromium | a8f23c87e656ab9ba49de9ccccbc53f614cdcb41 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2015-04-17T13:19:09.000Z | 2021-10-21T12:55:15.000Z | #!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Tool for automatically creating .nmf files from .nexe/.pexe executables.
As well as creating the nmf file this tool can also fi... | 34.814199 | 79 | 0.657179 | 3,148 | 23,047 | 4.70521 | 0.175032 | 0.015393 | 0.016203 | 0.007899 | 0.140427 | 0.10262 | 0.056508 | 0.032541 | 0.014448 | 0.009992 | 0 | 0.006766 | 0.23682 | 23,047 | 661 | 80 | 34.866868 | 0.835352 | 0.083438 | 0 | 0.123762 | 0 | 0 | 0.158366 | 0.015563 | 0 | 0 | 0 | 0 | 0.009901 | 0 | null | null | 0.004951 | 0.032178 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b19db8b01133037911933fe68483f13947bf7ff0 | 1,524 | py | Python | codecarbon/output.py | kraktus/codecarbon | dc2d39e404891cbed27c73b38fb2053ec12f43ec | [
"MIT"
] | null | null | null | codecarbon/output.py | kraktus/codecarbon | dc2d39e404891cbed27c73b38fb2053ec12f43ec | [
"MIT"
] | null | null | null | codecarbon/output.py | kraktus/codecarbon | dc2d39e404891cbed27c73b38fb2053ec12f43ec | [
"MIT"
] | null | null | null | """
Provides functionality for persistence of data
"""
import csv
import os
from abc import ABC, abstractmethod
from collections import OrderedDict
from dataclasses import dataclass
@dataclass
class EmissionsData:
"""
Output object containg experiment data
"""
timestamp: str
experiment_id: str
... | 23.8125 | 82 | 0.66601 | 191 | 1,524 | 5.162304 | 0.52356 | 0.040568 | 0.060852 | 0.064909 | 0.093306 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251312 | 1,524 | 63 | 83 | 24.190476 | 0.864154 | 0.224409 | 0 | 0.055556 | 0 | 0 | 0.002676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.027778 | 0.138889 | 0.027778 | 0.694444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b1a1522d65328af948d9d3bf814f896fda024cf2 | 1,412 | py | Python | extra_features/influxdb_adapter/datadb.py | jam-odoo/PGObserver | 523f14494926306dbd22b3ac08f3bdd343279c4f | [
"Apache-2.0"
] | null | null | null | extra_features/influxdb_adapter/datadb.py | jam-odoo/PGObserver | 523f14494926306dbd22b3ac08f3bdd343279c4f | [
"Apache-2.0"
] | null | null | null | extra_features/influxdb_adapter/datadb.py | jam-odoo/PGObserver | 523f14494926306dbd22b3ac08f3bdd343279c4f | [
"Apache-2.0"
] | 1 | 2021-06-25T15:41:55.000Z | 2021-06-25T15:41:55.000Z | import psycopg2
import psycopg2.extras
connection_string = "dbname=pgobserver host=localhost user=postgres password=postgres connect_timeout='3'"
def setConnectionString(conn_string):
global connection_string
connection_string = conn_string
def getDataConnection():
conn = psycopg2.connect(connection_st... | 24.77193 | 106 | 0.681303 | 168 | 1,412 | 5.595238 | 0.35119 | 0.057447 | 0.055319 | 0.054255 | 0.481915 | 0.457447 | 0.457447 | 0.457447 | 0.457447 | 0.457447 | 0 | 0.009955 | 0.217422 | 1,412 | 56 | 107 | 25.214286 | 0.840724 | 0 | 0 | 0.512195 | 0 | 0 | 0.087819 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.02439 | 0.04878 | null | null | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
b1a29264a23d9175e758ac4e6b2636a98bf0b974 | 4,063 | py | Python | sphinx_proof/nodes.py | tobydriscoll/sphinx-proof | 93e55b8771de7dad40a149bc5d9c36eee070ef46 | [
"MIT"
] | null | null | null | sphinx_proof/nodes.py | tobydriscoll/sphinx-proof | 93e55b8771de7dad40a149bc5d9c36eee070ef46 | [
"MIT"
] | null | null | null | sphinx_proof/nodes.py | tobydriscoll/sphinx-proof | 93e55b8771de7dad40a149bc5d9c36eee070ef46 | [
"MIT"
] | null | null | null | """
sphinx_proof.nodes
~~~~~~~~~~~~~~~~~~
Enumerable and unenumerable nodes
:copyright: Copyright 2020 by the QuantEcon team, see AUTHORS
:licences: see LICENSE for details
"""
from docutils import nodes
from docutils.nodes import Node
from sphinx.writers.latex import LaTeXTranslator
CR = "\n"
latex_admonition_start... | 31.253846 | 84 | 0.634014 | 509 | 4,063 | 4.962672 | 0.231827 | 0.060174 | 0.055424 | 0.038005 | 0.496437 | 0.471496 | 0.42597 | 0.348773 | 0.30285 | 0.30285 | 0 | 0.002533 | 0.222742 | 4,063 | 129 | 85 | 31.496124 | 0.79734 | 0.104849 | 0 | 0.443182 | 0 | 0 | 0.112157 | 0.041817 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102273 | false | 0.056818 | 0.034091 | 0 | 0.238636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b1a425c3c7f27bb4c1e296e07f5edf1ddd37bd3b | 407 | py | Python | setup.py | divio/divio-storage-options | 6625953265e350875bfde55849c9707ffdb38529 | [
"MIT"
] | null | null | null | setup.py | divio/divio-storage-options | 6625953265e350875bfde55849c9707ffdb38529 | [
"MIT"
] | null | null | null | setup.py | divio/divio-storage-options | 6625953265e350875bfde55849c9707ffdb38529 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
from divio_storage_options import __version__
setup(
name="divio-storage-options",
version=__version__,
description=open("README.rst").read(),
author="Divio AG",
author_email="info@divio.com",
packages=find_packages(),
platforms=["OS Independent"... | 23.941176 | 45 | 0.714988 | 48 | 407 | 5.708333 | 0.708333 | 0.087591 | 0.138686 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159705 | 407 | 16 | 46 | 25.4375 | 0.80117 | 0 | 0 | 0 | 0 | 0 | 0.174447 | 0.051597 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b1ac97223cb448e1d3dab0712ca1c2eb087305e5 | 1,560 | py | Python | elit/metrics/f1.py | emorynlp/levi-graph-amr-parser | f71f1056c13181b8db31d6136451fb8d57114819 | [
"Apache-2.0"
] | 9 | 2021-07-12T22:05:47.000Z | 2022-02-22T03:10:14.000Z | elit/metrics/f1.py | emorynlp/stem-cell-hypothesis | 48a628093d93d653865fbac6409d179cddd99293 | [
"Apache-2.0"
] | 4 | 2021-08-31T08:28:37.000Z | 2022-03-28T05:52:14.000Z | elit/metrics/f1.py | emorynlp/stem-cell-hypothesis | 48a628093d93d653865fbac6409d179cddd99293 | [
"Apache-2.0"
] | null | null | null | # -*- coding:utf-8 -*-
# Author: hankcs
# Date: 2020-07-10 14:55
from abc import ABC
from elit.metrics.metric import Metric
class F1(Metric, ABC):
def __init__(self, nb_pred=0, nb_true=0, nb_correct=0) -> None:
super().__init__()
self.nb_correct = nb_correct
self.nb_pred = nb_pred
... | 24 | 67 | 0.536538 | 247 | 1,560 | 3.145749 | 0.198381 | 0.108108 | 0.06435 | 0.028314 | 0.175032 | 0.175032 | 0.097812 | 0.097812 | 0.043758 | 0.043758 | 0 | 0.035985 | 0.323077 | 1,560 | 64 | 68 | 24.375 | 0.699811 | 0.037179 | 0 | 0.276596 | 0 | 0.042553 | 0.044059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.234043 | false | 0 | 0.042553 | 0.042553 | 0.425532 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
49095b9775809ce2f773ca86146d3f4b8296cfac | 16,522 | py | Python | test/test_test.py | samtaufa/pry | 155b783351cef5d8c8669bba4484f1a5f159150e | [
"MIT"
] | 1 | 2016-05-09T08:20:56.000Z | 2016-05-09T08:20:56.000Z | test/test_test.py | samtaufa/pry | 155b783351cef5d8c8669bba4484f1a5f159150e | [
"MIT"
] | null | null | null | test/test_test.py | samtaufa/pry | 155b783351cef5d8c8669bba4484f1a5f159150e | [
"MIT"
] | null | null | null | import fnmatch, cStringIO, os, shutil
import libpry.test
zero = libpry.test._Output(libpry.test._RootNode(False, None), 0)
def err(*args, **kwargs):
raise ValueError(str(args) + str(kwargs))
def ok(): pass
class uRaises(libpry.AutoTree):
def test_class(self):
libpry.test.raises(ValueError, err, "Hel... | 28.291096 | 80 | 0.56331 | 1,993 | 16,522 | 4.537381 | 0.098846 | 0.09289 | 0.069667 | 0.039478 | 0.553024 | 0.472852 | 0.38715 | 0.347009 | 0.298795 | 0.250581 | 0 | 0.009184 | 0.294819 | 16,522 | 583 | 81 | 28.339623 | 0.766973 | 0.008837 | 0 | 0.358862 | 0 | 0 | 0.080015 | 0 | 0 | 0 | 0 | 0 | 0.183807 | 0 | null | null | 0.039387 | 0.004376 | null | null | 0.004376 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
490a08f0218fb6565a1dd8d85a397a34c00b672a | 3,519 | py | Python | pyadlml/dataset/_dataset.py | tcsvn/pyadlml | 9b87d223ba0ef9814ba830263dd35fc6432fae87 | [
"MIT"
] | 4 | 2020-11-11T17:29:10.000Z | 2021-01-08T20:55:47.000Z | pyadlml/dataset/_dataset.py | tcsvn/pyadlml | 9b87d223ba0ef9814ba830263dd35fc6432fae87 | [
"MIT"
] | null | null | null | pyadlml/dataset/_dataset.py | tcsvn/pyadlml | 9b87d223ba0ef9814ba830263dd35fc6432fae87 | [
"MIT"
] | 5 | 2020-10-05T03:23:31.000Z | 2022-01-25T19:15:34.000Z | """
this file is to bring datasets into specific representations
"""
import pandas as pd
import dask.dataframe as dd
from pyadlml.util import get_parallel, get_npartitions
from pyadlml.dataset import TIME, ACTIVITY, START_TIME, END_TIME
def label_data(df: pd.DataFrame, df_acts: pd.DataFrame, idle=False, n_jobs... | 32.583333 | 93 | 0.5763 | 435 | 3,519 | 4.551724 | 0.354023 | 0.020202 | 0.016162 | 0.020202 | 0.094949 | 0.094949 | 0.094949 | 0.094949 | 0.094949 | 0 | 0 | 0.044425 | 0.334754 | 3,519 | 107 | 94 | 32.88785 | 0.801367 | 0.441319 | 0 | 0.186047 | 0 | 0 | 0.067182 | 0 | 0 | 0 | 0 | 0.018692 | 0 | 1 | 0.046512 | false | 0 | 0.093023 | 0 | 0.232558 | 0.162791 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
49145bbd749beadc388ff913dff4ed2956e0ff6e | 1,282 | py | Python | appengine/firebase-event-proxy/gae-firebase-listener-python/main.py | JustDoIt2015/testgoogle01 | f9edd7d8e9189548660e774363c562c108f80860 | [
"Apache-2.0"
] | 1 | 2018-05-04T03:26:20.000Z | 2018-05-04T03:26:20.000Z | appengine/firebase-event-proxy/gae-firebase-listener-python/main.py | JustDoIt2015/testgoogle01 | f9edd7d8e9189548660e774363c562c108f80860 | [
"Apache-2.0"
] | null | null | null | appengine/firebase-event-proxy/gae-firebase-listener-python/main.py | JustDoIt2015/testgoogle01 | f9edd7d8e9189548660e774363c562c108f80860 | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 32.871795 | 74 | 0.722309 | 180 | 1,282 | 5.105556 | 0.622222 | 0.065288 | 0.028292 | 0.03482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012416 | 0.183307 | 1,282 | 38 | 75 | 33.736842 | 0.86533 | 0.477379 | 0 | 0.105263 | 0 | 0 | 0.196947 | 0.087023 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | null | null | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
49162563ee7a5c06c5af0b306fed87f317ec328d | 12,136 | py | Python | Fiji/imgproc.py | eufmike/storm_image_processing | 076335519be0be3b66d289a180421d36770ab820 | [
"CC-BY-4.0"
] | null | null | null | Fiji/imgproc.py | eufmike/storm_image_processing | 076335519be0be3b66d289a180421d36770ab820 | [
"CC-BY-4.0"
] | null | null | null | Fiji/imgproc.py | eufmike/storm_image_processing | 076335519be0be3b66d289a180421d36770ab820 | [
"CC-BY-4.0"
] | null | null | null | #@ UIService uiService
#@ LogService log
#@ File(label="Select the main directory", style="directory", value="/Volumes/LaCie_DataStorage/xiaochao_wei_STORM imaging/STORM_imaging/", persist=false) path
#@ String(label="Name of Analysis Folder", value = "analysis_20190419", persist=false) dir_output
#@ File(label="Folder... | 29.672372 | 176 | 0.689436 | 1,605 | 12,136 | 5.066667 | 0.214953 | 0.01697 | 0.014757 | 0.015494 | 0.154206 | 0.117314 | 0.102189 | 0.093827 | 0.080915 | 0.064683 | 0 | 0.0064 | 0.163069 | 12,136 | 409 | 177 | 29.672372 | 0.794231 | 0.24349 | 0 | 0.073395 | 0 | 0 | 0.070363 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.09633 | null | null | 0.073395 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
49219cfbed2aa2d2f10f6ad7434d305f75140d28 | 1,613 | py | Python | exchange/migrations/0001_initial.py | vergilchoi/csc8113-ttp | 283467a0eb3b76d6a07865bdc23724718e4d3a26 | [
"Apache-2.0"
] | null | null | null | exchange/migrations/0001_initial.py | vergilchoi/csc8113-ttp | 283467a0eb3b76d6a07865bdc23724718e4d3a26 | [
"Apache-2.0"
] | 5 | 2021-03-19T00:55:15.000Z | 2021-09-22T18:48:02.000Z | exchange/migrations/0001_initial.py | vergilchoi/csc8113-ttp | 283467a0eb3b76d6a07865bdc23724718e4d3a26 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0.4 on 2020-03-14 04:03
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('user', '0002_auto_20200314_0331'),
]
operations = [
migrat... | 41.358974 | 198 | 0.605084 | 170 | 1,613 | 5.570588 | 0.452941 | 0.079197 | 0.07603 | 0.101373 | 0.269271 | 0.183738 | 0.183738 | 0.135164 | 0.135164 | 0.135164 | 0 | 0.041735 | 0.242405 | 1,613 | 38 | 199 | 42.447368 | 0.733224 | 0.027898 | 0 | 0.064516 | 1 | 0 | 0.187101 | 0.033844 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.096774 | 0 | 0.225806 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
49294bd655fa7fa14cfc8f981dbc50f646fb56f0 | 1,162 | py | Python | solutions/487.max-consecutive-ones-ii/max-consecutive-ones-ii.py | wangsongiam/leetcode | 96ff21bca1871816ae51fccb1fa13587b378dc50 | [
"MIT"
] | 3 | 2018-11-25T15:19:57.000Z | 2019-09-28T03:01:11.000Z | solutions/487.max-consecutive-ones-ii/max-consecutive-ones-ii.py | casprwang/leetcode | 96ff21bca1871816ae51fccb1fa13587b378dc50 | [
"MIT"
] | null | null | null | solutions/487.max-consecutive-ones-ii/max-consecutive-ones-ii.py | casprwang/leetcode | 96ff21bca1871816ae51fccb1fa13587b378dc50 | [
"MIT"
] | 3 | 2018-02-11T20:23:44.000Z | 2020-06-05T15:39:56.000Z | class Solution:
def findMaxConsecutiveOnes(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
p1 = 0
p2 = 0
cnt = 0
ret = 0
zeros = 0
while p1 <= p2 and p1 < len(nums) and p2 < len(nums):
while zeros < 2 and p2 < len(n... | 19.04918 | 61 | 0.325301 | 124 | 1,162 | 3.024194 | 0.266129 | 0.093333 | 0.072 | 0.064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078313 | 0.571429 | 1,162 | 60 | 62 | 19.366667 | 0.674699 | 0.20568 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0 | 0 | 0.115385 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
492d778673fd3efce2c4203ec26234ed859763c3 | 625 | py | Python | sites/codeforce/global_round_19/c/1.py | NoelBird/chocochip | 7ab9477b9e4153927805c9473ee44a15d809b549 | [
"MIT"
] | null | null | null | sites/codeforce/global_round_19/c/1.py | NoelBird/chocochip | 7ab9477b9e4153927805c9473ee44a15d809b549 | [
"MIT"
] | null | null | null | sites/codeforce/global_round_19/c/1.py | NoelBird/chocochip | 7ab9477b9e4153927805c9473ee44a15d809b549 | [
"MIT"
] | null | null | null | T = int(input())
def calc_op(l):
cnt = 0
for i in range(len(l)):
if l[i] % 2 == 0:
cnt += l[i]//2
else:
cnt += l[i]//2+1
return cnt
for _ in range(T):
N = int(input())
l = list(map(int, input().split()))[1:-1]
if len(l) == 1:
if l[0]%2 == 0:
... | 20.833333 | 45 | 0.4048 | 94 | 625 | 2.553191 | 0.319149 | 0.033333 | 0.0875 | 0.1625 | 0.183333 | 0.183333 | 0.183333 | 0 | 0 | 0 | 0 | 0.052174 | 0.448 | 625 | 29 | 46 | 21.551724 | 0.643478 | 0 | 0 | 0.296296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0 | 0 | 0.074074 | 0.148148 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
493403ec0c9c5532aa7c545715d2f7c1a84160bd | 253 | py | Python | orm-api/controllers/sites_controller.py | techemstudios/py_orm | 8385b0d22ced4b79141cd31ebc05886664fba495 | [
"MIT"
] | null | null | null | orm-api/controllers/sites_controller.py | techemstudios/py_orm | 8385b0d22ced4b79141cd31ebc05886664fba495 | [
"MIT"
] | null | null | null | orm-api/controllers/sites_controller.py | techemstudios/py_orm | 8385b0d22ced4b79141cd31ebc05886664fba495 | [
"MIT"
] | null | null | null | from resources.site_resource import *
def site_add(api):
api.add_resource(SiteList,'/api/sites')
# List sites for stream
api.add_resource(SitesOnStream,'/api/streams/<id>/sites')
api.add_resource(SiteResource,'/api/sites/<id>')
| 21.083333 | 61 | 0.699605 | 34 | 253 | 5.058824 | 0.5 | 0.104651 | 0.244186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15415 | 253 | 11 | 62 | 23 | 0.803738 | 0.083004 | 0 | 0 | 0 | 0 | 0.208696 | 0.1 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
493830bd600ff586a59eb9d1ff04826d7d18523f | 2,814 | py | Python | develop/status.py | dladowitz/bitcoincorps | 1b054731b2a52a589cc382ca449f1d042385ba54 | [
"BSD-2-Clause"
] | 24 | 2018-07-31T18:42:55.000Z | 2018-10-08T23:10:35.000Z | develop/status.py | dladowitz/bitcoincorps | 1b054731b2a52a589cc382ca449f1d042385ba54 | [
"BSD-2-Clause"
] | 4 | 2018-10-17T13:09:35.000Z | 2020-04-30T22:13:18.000Z | develop/status.py | dladowitz/bitcoincorps | 1b054731b2a52a589cc382ca449f1d042385ba54 | [
"BSD-2-Clause"
] | 16 | 2018-10-16T01:33:33.000Z | 2022-02-02T19:07:07.000Z | import time
from collections import Counter
from pprint import pprint
from tabulate import tabulate
from tinydb import Query, TinyDB
db = TinyDB("db.json")
def started(task):
return task["start"] is not None
def pending(task):
return not completed(task)
def completed(task):
return task["addr_payload... | 21.480916 | 95 | 0.671997 | 399 | 2,814 | 4.578947 | 0.22807 | 0.038314 | 0.049261 | 0.049808 | 0.256705 | 0.219486 | 0.208539 | 0.177887 | 0.091954 | 0.091954 | 0 | 0.002219 | 0.19936 | 2,814 | 130 | 96 | 21.646154 | 0.8087 | 0.095949 | 0 | 0.112676 | 0 | 0 | 0.055691 | 0 | 0 | 0 | 0 | 0.007692 | 0 | 1 | 0.197183 | false | 0 | 0.070423 | 0.126761 | 0.492958 | 0.028169 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
4947b04767d4bd3e541b66e11340ba875613a91c | 2,314 | py | Python | detect.py | ducanhvna/ocr-tessaract | 2ba135d94c1292c3ab3bb81778b4fa2dfd57898f | [
"MIT"
] | null | null | null | detect.py | ducanhvna/ocr-tessaract | 2ba135d94c1292c3ab3bb81778b4fa2dfd57898f | [
"MIT"
] | 3 | 2021-06-08T21:27:40.000Z | 2022-01-13T02:40:03.000Z | detect.py | ducanhvna/ocr-tessaract | 2ba135d94c1292c3ab3bb81778b4fa2dfd57898f | [
"MIT"
] | null | null | null | import re
import pytesseract
from pytesseract import Output
import cv2
img = cv2.imread('invoice-sample.jpg')
## Incase print all
# d = pytesseract.image_to_data(img, output_type=Output.DICT)
# n_boxes = len(d['level'])
# print ('level: ',n_boxes)
# for i in range(n_boxes):
# (x, y, w, h) = (d['left'][i], d['top']... | 30.447368 | 84 | 0.544944 | 408 | 2,314 | 2.987745 | 0.191176 | 0.078753 | 0.063167 | 0.049221 | 0.676784 | 0.653815 | 0.634126 | 0.634126 | 0.634126 | 0.634126 | 0 | 0.038665 | 0.184097 | 2,314 | 75 | 85 | 30.853333 | 0.606992 | 0.668539 | 0 | 0.105263 | 0 | 0 | 0.111266 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.210526 | 0 | 0.210526 | 0.210526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
4952b3768b0dca48691dc5c5b83eaddb86ce8c10 | 199 | py | Python | homeassistant/components/cloudflare/const.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 30,023 | 2016-04-13T10:17:53.000Z | 2020-03-02T12:56:31.000Z | homeassistant/components/cloudflare/const.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 31,101 | 2020-03-02T13:00:16.000Z | 2022-03-31T23:57:36.000Z | homeassistant/components/cloudflare/const.py | Vaarlion/core | f3de8b9f28de01abf72c0f5bb0b457eb1841f201 | [
"Apache-2.0"
] | 11,956 | 2016-04-13T18:42:31.000Z | 2020-03-02T09:32:12.000Z | """Constants for Cloudflare."""
DOMAIN = "cloudflare"
# Config
CONF_RECORDS = "records"
# Defaults
DEFAULT_UPDATE_INTERVAL = 60 # in minutes
# Services
SERVICE_UPDATE_RECORDS = "update_records"
| 15.307692 | 42 | 0.748744 | 22 | 199 | 6.5 | 0.727273 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011765 | 0.145729 | 199 | 12 | 43 | 16.583333 | 0.829412 | 0.311558 | 0 | 0 | 0 | 0 | 0.242188 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
49548ae336df8445eaa0a794591475f6751f1237 | 202 | py | Python | Python Library/Pandas/creating,reading2.py | hammad1201/Hacktoberfest-2021 | b4b86792755c7b86d5bcc94ac8159d8825ed169e | [
"MIT"
] | 27 | 2020-10-19T10:45:34.000Z | 2021-10-16T13:02:59.000Z | Python Library/Pandas/creating,reading2.py | hammad1201/Hacktoberfest-2021 | b4b86792755c7b86d5bcc94ac8159d8825ed169e | [
"MIT"
] | 165 | 2020-10-19T08:49:46.000Z | 2021-10-19T05:14:28.000Z | Python Library/Pandas/creating,reading2.py | hammad1201/Hacktoberfest-2021 | b4b86792755c7b86d5bcc94ac8159d8825ed169e | [
"MIT"
] | 82 | 2020-10-19T08:16:33.000Z | 2021-10-19T05:31:03.000Z | import pandas as pd
# creating a series
Data = pd.Series([1, 2, 3, 4, 5])
print(Data)
Data2 = pd.Series([30, 40, 50], index=['Sales 2019', 'Sales 2020', 'Sales 2021'], name="Product A")
print(Data2)
| 20.2 | 99 | 0.643564 | 35 | 202 | 3.714286 | 0.714286 | 0.123077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147929 | 0.163366 | 202 | 9 | 100 | 22.444444 | 0.621302 | 0.084158 | 0 | 0 | 0 | 0 | 0.213115 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
4956abbc14079cad7b750c2966adfd2f150191d5 | 841 | py | Python | src/starter/models.py | rehive/django-starter | 4eaec738cea740addb73623c7173f546b55e1c84 | [
"MIT"
] | 2 | 2018-06-27T15:46:43.000Z | 2021-08-16T19:04:58.000Z | src/starter/models.py | rehive/django-starter | 4eaec738cea740addb73623c7173f546b55e1c84 | [
"MIT"
] | 1 | 2017-07-20T13:12:43.000Z | 2017-07-20T13:12:43.000Z | src/starter/models.py | rehive/django-starter | 4eaec738cea740addb73623c7173f546b55e1c84 | [
"MIT"
] | 5 | 2017-06-10T16:22:49.000Z | 2021-07-29T22:18:21.000Z | from logging import getLogger
import datetime
from uuid import uuid4
from django.contrib.postgres.fields import JSONField
from django.db import models
from django.utils.timezone import utc
logger = getLogger('django')
class Message(models.Model):
first_name = models.CharField(max_length=300, null=True, blank=Tr... | 27.129032 | 72 | 0.707491 | 112 | 841 | 5.232143 | 0.446429 | 0.051195 | 0.09215 | 0.122867 | 0.298635 | 0.216724 | 0.163823 | 0.163823 | 0.163823 | 0.163823 | 0 | 0.014577 | 0.184304 | 841 | 30 | 73 | 28.033333 | 0.83965 | 0.010702 | 0 | 0 | 0 | 0 | 0.007246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0.05 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
495863b1c60e3018f7f7acea57aedf69baaeeffe | 1,842 | py | Python | gamesDataset.py | matanaa/fullyConNetBaker | 9bc02ac6581fe6748fb701e40ad043a2269dbdc2 | [
"MIT"
] | null | null | null | gamesDataset.py | matanaa/fullyConNetBaker | 9bc02ac6581fe6748fb701e40ad043a2269dbdc2 | [
"MIT"
] | null | null | null | gamesDataset.py | matanaa/fullyConNetBaker | 9bc02ac6581fe6748fb701e40ad043a2269dbdc2 | [
"MIT"
] | null | null | null | import numpy as np # linear algebra
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)
# %matplotlib inline
import torch
from torch.utils.data import Dataset
# https://www.kaggle.com/pinocookie/pytorch-dataset-and-dataloader
class GamesDataset(Dataset):
def __init__(self, file_path, transf... | 37.591837 | 121 | 0.643322 | 262 | 1,842 | 4.362595 | 0.442748 | 0.041995 | 0.041995 | 0.059493 | 0.227472 | 0.15748 | 0.15748 | 0.15748 | 0.097988 | 0.097988 | 0 | 0.009148 | 0.228556 | 1,842 | 48 | 122 | 38.375 | 0.795215 | 0.355049 | 0 | 0.1 | 0 | 0 | 0.059524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.033333 | 0.133333 | 0.033333 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
495e3b91f9254587fe98861c0605a1f589eebecf | 706 | py | Python | tests/unit/network/utils.py | binbashar/terraform-aws-lambda-nuke | 0d00a6600dabe2dc928374c1710153d08ca3d052 | [
"Apache-2.0"
] | 17 | 2019-02-26T16:30:52.000Z | 2022-01-14T18:51:53.000Z | tests/unit/network/utils.py | binbashar/terraform-aws-lambda-nuke | 0d00a6600dabe2dc928374c1710153d08ca3d052 | [
"Apache-2.0"
] | 5 | 2019-11-05T21:49:32.000Z | 2022-03-31T08:52:03.000Z | tests/unit/network/utils.py | diodonfrost/terraform-aws-lambda-nuke | 3cdf39c855ad1b99833eb40012857e056a6ebcdf | [
"Apache-2.0"
] | 9 | 2019-03-05T22:28:37.000Z | 2022-03-21T15:43:52.000Z | # -*- coding: utf-8 -*-
"""Module use by nuke unit tests."""
import boto3
def create_eip(region_name):
"""Create eip."""
client = boto3.client("ec2", region_name=region_name)
client.allocate_address(Domain="vpc", Address="127.38.43.222")
def create_security_group(region_name):
"""Create security gr... | 29.416667 | 79 | 0.708215 | 97 | 706 | 4.948454 | 0.402062 | 0.1875 | 0.158333 | 0.125 | 0.4875 | 0.4875 | 0.4875 | 0.4875 | 0.4875 | 0.391667 | 0 | 0.031097 | 0.134561 | 706 | 23 | 80 | 30.695652 | 0.754501 | 0.20255 | 0 | 0.3 | 0 | 0 | 0.088561 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4961982497a5122ba112589bc45fbc45bc42acf0 | 1,532 | py | Python | crypto_utils/__init__.py | MauriceKuenicke/one-time-password-messages-backend | 660137063101a01124bbbb3cefaea5e21ccf978e | [
"MIT"
] | null | null | null | crypto_utils/__init__.py | MauriceKuenicke/one-time-password-messages-backend | 660137063101a01124bbbb3cefaea5e21ccf978e | [
"MIT"
] | null | null | null | crypto_utils/__init__.py | MauriceKuenicke/one-time-password-messages-backend | 660137063101a01124bbbb3cefaea5e21ccf978e | [
"MIT"
] | null | null | null | import base64
import os
import hashlib
import uuid
from cryptography.fernet import Fernet
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC
def get_uuid():
return uuid.uuid4().hex
def get_sh... | 25.966102 | 64 | 0.672977 | 188 | 1,532 | 5.43617 | 0.356383 | 0.019569 | 0.064579 | 0.062622 | 0.436399 | 0.436399 | 0.436399 | 0.436399 | 0.436399 | 0.436399 | 0 | 0.037657 | 0.219974 | 1,532 | 58 | 65 | 26.413793 | 0.817573 | 0.097911 | 0 | 0.488889 | 0 | 0 | 0.024 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0.133333 | 0.177778 | 0.022222 | 0.355556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4965b8832432b413f174b2c5b062bb5f7cee4bc0 | 460 | py | Python | setup.py | rjhildre/wadnr_utilities | bafdbde5e4b9e80568fdca8d0e4474932c83c4b5 | [
"MIT"
] | null | null | null | setup.py | rjhildre/wadnr_utilities | bafdbde5e4b9e80568fdca8d0e4474932c83c4b5 | [
"MIT"
] | null | null | null | setup.py | rjhildre/wadnr_utilities | bafdbde5e4b9e80568fdca8d0e4474932c83c4b5 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name = "wadnr_utilities",
version = "1.0.0",
author = "Jason Hildreth",
author_email = "rjhildre@gmail.com",
url = "https://github.com/rjhildre/wadnr_utilities",
description = "Common functions used at Washington DNR",
packages = find_packa... | 25.555556 | 60 | 0.632609 | 50 | 460 | 5.72 | 0.78 | 0.083916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0.23913 | 460 | 18 | 61 | 25.555556 | 0.802857 | 0 | 0 | 0 | 0 | 0 | 0.453362 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
496783c7d389f9e38e40144b21fdde97fb0cf899 | 1,275 | py | Python | SOS/migrations/0001_initial.py | hellen6654/DataBase_CGHP | d4e393d3994c3a7b576c651ad2ac7ef919a3f386 | [
"MIT"
] | null | null | null | SOS/migrations/0001_initial.py | hellen6654/DataBase_CGHP | d4e393d3994c3a7b576c651ad2ac7ef919a3f386 | [
"MIT"
] | null | null | null | SOS/migrations/0001_initial.py | hellen6654/DataBase_CGHP | d4e393d3994c3a7b576c651ad2ac7ef919a3f386 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.3 on 2018-12-15 16:56
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('MCS', '0001_initial'),
]
operations ... | 41.129032 | 242 | 0.642353 | 139 | 1,275 | 5.776978 | 0.52518 | 0.082192 | 0.07472 | 0.054795 | 0.156912 | 0.156912 | 0.156912 | 0.156912 | 0.156912 | 0.156912 | 0 | 0.026892 | 0.212549 | 1,275 | 30 | 243 | 42.5 | 0.772908 | 0.035294 | 0 | 0 | 1 | 0 | 0.124593 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.173913 | 0 | 0.347826 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
496a9cc253a84bc813edc7313d66ad4c1d931771 | 3,118 | py | Python | be/src/dsp_be/routes/stars_dto.py | koadjunky/dsp-manager | fb181c184aaca393a036556c54eb64bd89c75100 | [
"MIT"
] | null | null | null | be/src/dsp_be/routes/stars_dto.py | koadjunky/dsp-manager | fb181c184aaca393a036556c54eb64bd89c75100 | [
"MIT"
] | null | null | null | be/src/dsp_be/routes/stars_dto.py | koadjunky/dsp-manager | fb181c184aaca393a036556c54eb64bd89c75100 | [
"MIT"
] | null | null | null | from typing import Dict, List
from pydantic import BaseModel, validator
from dsp_be.logic.factory import Factory
from dsp_be.logic.planet import Planet
from dsp_be.logic.recipe import resources
from dsp_be.logic.star import Star
class FactoryDto(BaseModel):
id: str
name: str
planet_name: str
star_na... | 25.557377 | 84 | 0.620269 | 364 | 3,118 | 5.203297 | 0.153846 | 0.033791 | 0.019007 | 0.029567 | 0.204329 | 0.131996 | 0.100317 | 0.100317 | 0.063358 | 0 | 0 | 0 | 0.287684 | 3,118 | 121 | 85 | 25.768595 | 0.852769 | 0 | 0 | 0.28 | 0 | 0 | 0.030468 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.07 | false | 0 | 0.17 | 0 | 0.64 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
496f5e998417204d5a71910166723b227c8f33bc | 492 | py | Python | apps/core/migrations/0003_alter_collaborator_image.py | joaogabrielrc/fusion | 269ff3313d21ed991cffaf804437d89f867f9e90 | [
"MIT"
] | null | null | null | apps/core/migrations/0003_alter_collaborator_image.py | joaogabrielrc/fusion | 269ff3313d21ed991cffaf804437d89f867f9e90 | [
"MIT"
] | null | null | null | apps/core/migrations/0003_alter_collaborator_image.py | joaogabrielrc/fusion | 269ff3313d21ed991cffaf804437d89f867f9e90 | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2021-12-10 20:19
import apps.core.models
from django.db import migrations
import stdimage.models
class Migration(migrations.Migration):
dependencies = [
('core', '0002_rename_servico_service'),
]
operations = [
migrations.AlterField(
model_name='... | 23.428571 | 113 | 0.658537 | 56 | 492 | 5.642857 | 0.732143 | 0.050633 | 0.088608 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047745 | 0.23374 | 492 | 20 | 114 | 24.6 | 0.790451 | 0.087398 | 0 | 0 | 1 | 0 | 0.120805 | 0.060403 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4971cdc17cd2c2282c1d9714004a018801782679 | 4,216 | py | Python | core/actor.py | JoshuaSkelly/TroubleInCloudLand | 2642124f7549c91b89060d424524f69bb7edc169 | [
"MIT"
] | 2 | 2017-04-13T09:59:10.000Z | 2017-04-13T21:07:22.000Z | core/actor.py | JoshuaSkelly/TroubleInCloudLand | 2642124f7549c91b89060d424524f69bb7edc169 | [
"MIT"
] | 2 | 2017-04-14T15:33:19.000Z | 2017-04-21T19:55:01.000Z | core/actor.py | JoshuaSkelly/TroubleInCloudLand | 2642124f7549c91b89060d424524f69bb7edc169 | [
"MIT"
] | 4 | 2019-02-12T05:48:17.000Z | 2020-10-15T23:12:45.000Z | import pygame
from core import animation
from utils import vector
from utils.settings import *
class Actor(pygame.sprite.Sprite):
"""The Generic Actor Class"""
def __init__(self):
pygame.sprite.Sprite.__init__(self)
self.actor_type = ACTOR_NONE
self.can_collide = False
self.... | 37.981982 | 142 | 0.587761 | 515 | 4,216 | 4.67767 | 0.135922 | 0.219178 | 0.080946 | 0.098796 | 0.564135 | 0.494811 | 0.431714 | 0.431714 | 0.392279 | 0.353674 | 0 | 0.012996 | 0.306452 | 4,216 | 110 | 143 | 38.327273 | 0.810876 | 0.005455 | 0 | 0.352273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102273 | false | 0.045455 | 0.045455 | 0 | 0.159091 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4972c44f6890d0dc7b83dc96f9a4fd90c3f34aa5 | 279 | py | Python | function_python/function4.py | anoop123gupta/saral_debugging_code | 24cee076e66df9db3fd045e2d95013d2852e4567 | [
"MIT"
] | 2 | 2019-03-03T06:14:16.000Z | 2019-03-03T06:51:25.000Z | function_python/function4.py | anoop123gupta/saral_debugging_code | 24cee076e66df9db3fd045e2d95013d2852e4567 | [
"MIT"
] | null | null | null | function_python/function4.py | anoop123gupta/saral_debugging_code | 24cee076e66df9db3fd045e2d95013d2852e4567 | [
"MIT"
] | null | null | null | # part 1
def check_numbers(a,b):
print (a+b)
check_numbers(2,6)
# part 2
def check_numbers_list(a,b):
i=0
if len(a)==len(b):
while i<len(a):
check_numbers(a[i],b[i])
i +=1
else:
print ("lists ki len barabar nahi hai")
check_numbers_list([10,30,40],[40,20,21])
| 15.5 | 41 | 0.634409 | 58 | 279 | 2.931034 | 0.465517 | 0.352941 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078261 | 0.175627 | 279 | 17 | 42 | 16.411765 | 0.66087 | 0.046595 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.166667 | 0.166667 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
497344754c34eab273a6df2909147c36bc49f02b | 10,997 | py | Python | sdk/python/pulumi_azure/logicapps/get_workflow.py | ScriptBox99/pulumi-azure | 1b8c6d5479ccabc39094741eac25a8ca44c8833a | [
"ECL-2.0",
"Apache-2.0"
] | 109 | 2018-06-18T00:19:44.000Z | 2022-02-20T05:32:57.000Z | sdk/python/pulumi_azure/logicapps/get_workflow.py | ScriptBox99/pulumi-azure | 1b8c6d5479ccabc39094741eac25a8ca44c8833a | [
"ECL-2.0",
"Apache-2.0"
] | 663 | 2018-06-18T21:08:46.000Z | 2022-03-31T20:10:11.000Z | sdk/python/pulumi_azure/logicapps/get_workflow.py | ScriptBox99/pulumi-azure | 1b8c6d5479ccabc39094741eac25a8ca44c8833a | [
"ECL-2.0",
"Apache-2.0"
] | 41 | 2018-07-19T22:37:38.000Z | 2022-03-14T10:56:26.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 41.342105 | 372 | 0.696372 | 1,286 | 10,997 | 5.617418 | 0.120529 | 0.079181 | 0.068383 | 0.05814 | 0.589839 | 0.495432 | 0.338455 | 0.289867 | 0.186047 | 0.166113 | 0 | 0.000813 | 0.217241 | 10,997 | 265 | 373 | 41.498113 | 0.838406 | 0.167773 | 0 | 0.117284 | 1 | 0 | 0.174574 | 0.07957 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.030864 | 0.012346 | 0.253086 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4978c2185db81f3c0ea3ab2b2820e34016c557b7 | 584 | py | Python | torba/torba/tasks.py | mittalkartik2000/lbry-sdk | a07b17ec0c9c5d0a88bc730caf6ab955e0971b38 | [
"MIT"
] | 4,076 | 2018-06-01T05:54:24.000Z | 2022-03-07T21:05:52.000Z | torba/torba/tasks.py | mittalkartik2000/lbry-sdk | a07b17ec0c9c5d0a88bc730caf6ab955e0971b38 | [
"MIT"
] | 80 | 2018-06-14T01:02:03.000Z | 2019-06-19T10:45:39.000Z | torba/torba/tasks.py | braveheart12/lbry-sdk | dc709b468f9dce60d206161785def5c7ace2b763 | [
"MIT"
] | 20 | 2018-06-27T21:52:22.000Z | 2022-03-08T11:25:23.000Z | from asyncio import Event, get_event_loop
class TaskGroup:
def __init__(self, loop=None):
self._loop = loop or get_event_loop()
self._tasks = set()
self.done = Event()
def add(self, coro):
task = self._loop.create_task(coro)
self._tasks.add(task)
self.done.cle... | 23.36 | 48 | 0.599315 | 78 | 584 | 4.230769 | 0.384615 | 0.136364 | 0.072727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002415 | 0.291096 | 584 | 24 | 49 | 24.333333 | 0.794686 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 0 | 0.388889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
49818d36e09f7206988af1ad356bc5822415b286 | 523 | py | Python | 2060.py | gabriel1lima/Questoes---URI---Python | 4e88d76cf7ea68baf0464071bc4f72ced7d746cd | [
"MIT"
] | 1 | 2020-10-01T14:22:48.000Z | 2020-10-01T14:22:48.000Z | 2060.py | gabriel1lima/Questoes---URI---Python | 4e88d76cf7ea68baf0464071bc4f72ced7d746cd | [
"MIT"
] | null | null | null | 2060.py | gabriel1lima/Questoes---URI---Python | 4e88d76cf7ea68baf0464071bc4f72ced7d746cd | [
"MIT"
] | 7 | 2020-10-01T13:03:22.000Z | 2020-10-02T16:10:25.000Z | num = int(input())
soma2 = 0
soma3 = 0
soma4 = 0
soma5 = 0
lista = [int(i) for i in input().split()]
for i in range(num):
if(lista[i] % 2 == 0):
soma2 = soma2 + 1
if(lista[i] % 3 == 0):
soma3 = soma3 + 1
if(lista[i] % 4 == 0):
soma4 = soma4 + 1
if(lista[i] % 5 == 0)... | 15.848485 | 42 | 0.516252 | 84 | 523 | 3.214286 | 0.297619 | 0.103704 | 0.118519 | 0.237037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095745 | 0.281071 | 523 | 32 | 43 | 16.34375 | 0.62234 | 0 | 0 | 0 | 0 | 0 | 0.145594 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.210526 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4984a0eb2625a1fb80734744e5e5639917fcdf9b | 1,110 | py | Python | exams/views.py | nyctophiliacme/edtech-backend | 71f65b379d03d04fad1ea2b1a16a5a3be9bdd938 | [
"MIT"
] | null | null | null | exams/views.py | nyctophiliacme/edtech-backend | 71f65b379d03d04fad1ea2b1a16a5a3be9bdd938 | [
"MIT"
] | null | null | null | exams/views.py | nyctophiliacme/edtech-backend | 71f65b379d03d04fad1ea2b1a16a5a3be9bdd938 | [
"MIT"
] | null | null | null | from exams.models import Exam
from exams.serializers import ExamSerializer
from rest_framework import status
from rest_framework.response import Response
from rest_framework.views import APIView
from courses.models import Course
class ExamView(APIView):
def get(self, request, *args, **kwargs):
exams = Ex... | 35.806452 | 84 | 0.723423 | 134 | 1,110 | 5.880597 | 0.350746 | 0.071066 | 0.121827 | 0.079949 | 0.350254 | 0.291878 | 0.291878 | 0.291878 | 0.291878 | 0.126904 | 0 | 0.006586 | 0.179279 | 1,110 | 30 | 85 | 37 | 0.858397 | 0 | 0 | 0.26087 | 0 | 0 | 0.016216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.26087 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
498d8e7a74d9c0811845f71fd6af3b65f6aa8084 | 10,315 | py | Python | templates/report.py | nanjalaruth/chipimputation_evaluate_chips | f6fcdd2ef4a3f9116aec24575c63ec8b34cc140c | [
"MIT"
] | 12 | 2016-08-29T11:27:11.000Z | 2021-12-14T15:41:14.000Z | templates/report.py | nanjalaruth/chipimputation_evaluate_chips | f6fcdd2ef4a3f9116aec24575c63ec8b34cc140c | [
"MIT"
] | 15 | 2016-08-23T07:30:35.000Z | 2020-07-08T23:50:07.000Z | templates/report.py | nanjalaruth/chipimputation_evaluate_chips | f6fcdd2ef4a3f9116aec24575c63ec8b34cc140c | [
"MIT"
] | 18 | 2017-04-17T15:33:32.000Z | 2022-03-18T09:07:25.000Z | #!/usr/bin/env python2.7
import argparse,sys
import time
parser = argparse.ArgumentParser()
parser.add_argument("--infoFiles", help="")
parser.add_argument("--outWell_imputed", help="")
parser.add_argument("--outSNP_acc", help="")
parser.add_argument("--infoCutoff", help="")
parser.add_argument("--inWell_imputed", he... | 41.930894 | 424 | 0.525158 | 1,282 | 10,315 | 4.036661 | 0.085803 | 0.127536 | 0.065314 | 0.035169 | 0.558261 | 0.477681 | 0.441353 | 0.399614 | 0.325024 | 0.249082 | 0 | 0.038725 | 0.306544 | 10,315 | 245 | 425 | 42.102041 | 0.684748 | 0.060397 | 0 | 0.419512 | 0 | 0 | 0.070196 | 0.002842 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.009756 | null | null | 0.014634 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
b8c8a5e4d861fc9b8ad830e8fee5a5c56bc2a941 | 10,096 | py | Python | TaichiGAME/math/matrix.py | erizmr/TaichiGAME | db6258d5fd89b4afef9f3944337ed010eb75e246 | [
"MIT"
] | 37 | 2021-12-30T02:03:11.000Z | 2022-03-21T11:37:52.000Z | TaichiGAME/math/matrix.py | maksyuki/TaichiGame | 647d08d3d31b209314ec0dfec5270c565b2f6a61 | [
"MIT"
] | 2 | 2022-01-09T13:04:04.000Z | 2022-01-11T06:47:43.000Z | TaichiGAME/math/matrix.py | maksyuki/TaichiGame | 647d08d3d31b209314ec0dfec5270c565b2f6a61 | [
"MIT"
] | 2 | 2022-01-03T06:52:23.000Z | 2022-01-11T06:31:30.000Z | from __future__ import annotations
from typing import List, Tuple, Union
import numpy as np
# now just for the 2x2 mat or 1x2 vec
class Matrix():
def __init__(self,
arr: Union[List[float], np.ndarray],
data_type: str = 'mat',
row: int = 2,
col: ... | 29.179191 | 79 | 0.577754 | 1,288 | 10,096 | 4.292702 | 0.128106 | 0.101284 | 0.047748 | 0.119371 | 0.570628 | 0.419606 | 0.377103 | 0.321396 | 0.297341 | 0.263339 | 0 | 0.0181 | 0.299525 | 10,096 | 345 | 80 | 29.263768 | 0.763716 | 0.040511 | 0 | 0.349594 | 0 | 0 | 0.002086 | 0 | 0 | 0 | 0 | 0 | 0.126016 | 1 | 0.276423 | false | 0 | 0.012195 | 0.036585 | 0.49187 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b8d3cccba5e5cee3ad56a90e7aec49a0a946b332 | 2,376 | py | Python | pretty_format.py | Blue-Pix/list-stack-change-set | f81fdca6b3fb0a67b207318cbf486624b18362b8 | [
"MIT"
] | 6 | 2020-05-12T14:02:46.000Z | 2021-06-23T18:58:47.000Z | pretty_format.py | Blue-Pix/list-stack-change-set | f81fdca6b3fb0a67b207318cbf486624b18362b8 | [
"MIT"
] | 3 | 2020-04-27T13:12:02.000Z | 2022-01-09T21:41:05.000Z | pretty_format.py | Blue-Pix/list-stack-change-set | f81fdca6b3fb0a67b207318cbf486624b18362b8 | [
"MIT"
] | 3 | 2021-03-07T20:32:06.000Z | 2022-01-08T20:56:22.000Z | import json
import sys
class ChangeSet:
changes = None
def __init__(self, changes):
self.changes = changes
def action(self):
action = self.changes['ResourceChange']['Action']
color = ""
if self.changes['ResourceChange']['Action'] == "Modify":
color = "<img src=\"https://placehold.it/12/00... | 32.108108 | 158 | 0.606061 | 298 | 2,376 | 4.734899 | 0.281879 | 0.101347 | 0.194897 | 0.031892 | 0.332388 | 0.282778 | 0.14387 | 0.082211 | 0 | 0 | 0 | 0.021739 | 0.186869 | 2,376 | 73 | 159 | 32.547945 | 0.708592 | 0.01936 | 0 | 0.086207 | 0 | 0.017241 | 0.29437 | 0.052858 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12069 | false | 0 | 0.034483 | 0.034483 | 0.327586 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b8dd20cc87281f37e64a187cc3114b6315389b5c | 272 | py | Python | src/ape/cli/utils.py | miohtama/ape | 622deb25076d33de0edb3a23449ccdc04c3288cd | [
"Apache-2.0"
] | null | null | null | src/ape/cli/utils.py | miohtama/ape | 622deb25076d33de0edb3a23449ccdc04c3288cd | [
"Apache-2.0"
] | null | null | null | src/ape/cli/utils.py | miohtama/ape | 622deb25076d33de0edb3a23449ccdc04c3288cd | [
"Apache-2.0"
] | null | null | null | import click
from ape.logging import logger
class Abort(click.ClickException):
"""Wrapper around a CLI exception"""
def show(self, file=None):
"""Override default ``show`` to print CLI errors in red text."""
logger.error(self.format_message())
| 22.666667 | 72 | 0.676471 | 36 | 272 | 5.083333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202206 | 272 | 11 | 73 | 24.727273 | 0.843318 | 0.327206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b8de6427c71d5636ebe073b252810710322627dc | 10,327 | py | Python | actinia_metadata_plugin/core/gnosParser.py | mundialis/actinia-metadata-plugin | 4d9c19657c86a9ab7af27f5fc7bdb7922a02c285 | [
"Apache-2.0"
] | null | null | null | actinia_metadata_plugin/core/gnosParser.py | mundialis/actinia-metadata-plugin | 4d9c19657c86a9ab7af27f5fc7bdb7922a02c285 | [
"Apache-2.0"
] | 3 | 2021-02-25T07:58:08.000Z | 2021-04-09T08:12:58.000Z | actinia_metadata_plugin/core/gnosParser.py | mundialis/actinia-metadata-plugin | 4d9c19657c86a9ab7af27f5fc7bdb7922a02c285 | [
"Apache-2.0"
] | 1 | 2021-02-23T16:25:11.000Z | 2021-02-23T16:25:11.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Copyright (c) 2018-present mundialis GmbH & Co. KG
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
... | 29.254958 | 79 | 0.599206 | 1,063 | 10,327 | 5.761994 | 0.271872 | 0.010612 | 0.026449 | 0.028571 | 0.279347 | 0.244735 | 0.215347 | 0.101878 | 0.045714 | 0.028082 | 0 | 0.004846 | 0.300571 | 10,327 | 352 | 80 | 29.338068 | 0.84314 | 0.169943 | 0 | 0.382609 | 0 | 0 | 0.231422 | 0.080556 | 0 | 0 | 0 | 0.011364 | 0 | 1 | 0.03913 | false | 0 | 0.021739 | 0 | 0.134783 | 0.004348 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b8df73a9f0937a2088b6643ba870e52575761420 | 6,920 | py | Python | lab/internal/analytics/altair/__init__.py | vidhiJain/lab | 43a3eb2aa3121b226c849690e636dcd4c04a49cf | [
"MIT"
] | null | null | null | lab/internal/analytics/altair/__init__.py | vidhiJain/lab | 43a3eb2aa3121b226c849690e636dcd4c04a49cf | [
"MIT"
] | null | null | null | lab/internal/analytics/altair/__init__.py | vidhiJain/lab | 43a3eb2aa3121b226c849690e636dcd4c04a49cf | [
"MIT"
] | 1 | 2020-10-02T01:46:45.000Z | 2020-10-02T01:46:45.000Z | from typing import List
import altair as alt
TABLEAU_10 = ['#4E79A7',
'#F28E2C',
'#E15759',
'#76B7B2',
'#59A14F',
'#EDC949',
'#AF7AA1',
'#FF9DA7',
'#9C755F',
'#BAB0AB']
class AltairAnalytics... | 38.659218 | 92 | 0.369653 | 565 | 6,920 | 4.361062 | 0.171681 | 0.043831 | 0.031656 | 0.044643 | 0.576299 | 0.531656 | 0.431818 | 0.361607 | 0.361607 | 0.361607 | 0 | 0.020205 | 0.549422 | 6,920 | 178 | 93 | 38.876404 | 0.770045 | 0 | 0 | 0.457516 | 0 | 0 | 0.027457 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03268 | false | 0 | 0.013072 | 0 | 0.091503 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b8e9e4a2bc9deedc1fe7f4cb8d3988a99bf80b1a | 386 | py | Python | Python/Problem021.py | 766F6964/Euler-Problems | 375f9324857e5855b85f287c0b352f11a03b0059 | [
"MIT"
] | 2 | 2019-09-11T16:02:00.000Z | 2021-03-14T21:22:18.000Z | Python/Problem021.py | 766F6964/Euler-Problems | 375f9324857e5855b85f287c0b352f11a03b0059 | [
"MIT"
] | null | null | null | Python/Problem021.py | 766F6964/Euler-Problems | 375f9324857e5855b85f287c0b352f11a03b0059 | [
"MIT"
] | null | null | null | def get_divisors(n):
sum = 1
for i in range(2, int(n ** 0.5 + 1)):
if n % i == 0:
sum += i
sum += n / i
return sum
def find_amicable_pair():
total = 0
for x in range(1, 10001):
a = get_divisors(x)
b = get_divisors(a)
if b == x and x != a:
... | 19.3 | 41 | 0.474093 | 61 | 386 | 2.885246 | 0.42623 | 0.1875 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056277 | 0.401554 | 386 | 20 | 42 | 19.3 | 0.705628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0.0625 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b8ebf6709492240e594e5c3c76736baec815c866 | 291 | py | Python | lib/logging.py | jphdotam/EAE-ECG-autoencoder | 9e556818f9a6ad80254f86a1ba22c7c0513b06cc | [
"MIT"
] | null | null | null | lib/logging.py | jphdotam/EAE-ECG-autoencoder | 9e556818f9a6ad80254f86a1ba22c7c0513b06cc | [
"MIT"
] | null | null | null | lib/logging.py | jphdotam/EAE-ECG-autoencoder | 9e556818f9a6ad80254f86a1ba22c7c0513b06cc | [
"MIT"
] | 2 | 2020-06-11T06:09:42.000Z | 2020-06-21T15:00:30.000Z | import os
from torch.utils.tensorboard import SummaryWriter
def get_summary_writer(cfg):
if not cfg['output']['use_tensorboard']:
return None
else:
log_dir = os.path.join(cfg['output']['log_dir'], cfg['experiment_id'])
return SummaryWriter(log_dir=log_dir)
| 26.454545 | 78 | 0.690722 | 40 | 291 | 4.825 | 0.625 | 0.124352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185567 | 291 | 10 | 79 | 29.1 | 0.814346 | 0 | 0 | 0 | 0 | 0 | 0.161512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b8ee2702d01dff1416a70f5b87ea1ce3b374b444 | 2,041 | py | Python | tests/test_authentication_providers.py | spapadim/canvasaio | a17e60447acd45cdbd6e4f0f24f3c9ae03a58ca8 | [
"MIT"
] | null | null | null | tests/test_authentication_providers.py | spapadim/canvasaio | a17e60447acd45cdbd6e4f0f24f3c9ae03a58ca8 | [
"MIT"
] | null | null | null | tests/test_authentication_providers.py | spapadim/canvasaio | a17e60447acd45cdbd6e4f0f24f3c9ae03a58ca8 | [
"MIT"
] | null | null | null | import unittest
from aioresponses import aioresponses
from canvasaio import Canvas
from canvasaio.authentication_provider import AuthenticationProvider
from tests import settings
from tests.util import register_uris, aioresponse_mock
@aioresponse_mock
class TestAuthenticationProvider(unittest.IsolatedAsyncioTestCas... | 35.189655 | 92 | 0.715826 | 201 | 2,041 | 6.965174 | 0.268657 | 0.361429 | 0.096429 | 0.110714 | 0.362857 | 0.305714 | 0.15 | 0.09 | 0 | 0 | 0 | 0.000617 | 0.205292 | 2,041 | 57 | 93 | 35.807018 | 0.862515 | 0.013229 | 0 | 0.05 | 0 | 0 | 0.127861 | 0.068657 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.025 | false | 0 | 0.15 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b8ef2b6f465143ff6eb5d980fb3f53c0b5fd90f0 | 1,464 | py | Python | src/gdata/acl/data.py | lqc/google-data-api | b720582a472d627a0853d02e51e13dbce4cfe6ae | [
"Apache-2.0"
] | null | null | null | src/gdata/acl/data.py | lqc/google-data-api | b720582a472d627a0853d02e51e13dbce4cfe6ae | [
"Apache-2.0"
] | null | null | null | src/gdata/acl/data.py | lqc/google-data-api | b720582a472d627a0853d02e51e13dbce4cfe6ae | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
#
# Copyright (C) 2009 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | 25.684211 | 81 | 0.724727 | 218 | 1,464 | 4.825688 | 0.486239 | 0.057034 | 0.080798 | 0.072243 | 0.201521 | 0.144487 | 0.144487 | 0.144487 | 0.089354 | 0.089354 | 0 | 0.009901 | 0.172131 | 1,464 | 56 | 82 | 26.142857 | 0.858086 | 0.594945 | 0 | 0.111111 | 0 | 0 | 0.165154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b8f061c72cf09be38c486835e5d5ad1d857ff2ea | 12,509 | py | Python | bureaucrat/SignatureVerifier.py | zomglings/bureaucrat | e6dabeebc69a6e8504dea2ae45dc6f1cb8ae6dc3 | [
"MIT"
] | null | null | null | bureaucrat/SignatureVerifier.py | zomglings/bureaucrat | e6dabeebc69a6e8504dea2ae45dc6f1cb8ae6dc3 | [
"MIT"
] | null | null | null | bureaucrat/SignatureVerifier.py | zomglings/bureaucrat | e6dabeebc69a6e8504dea2ae45dc6f1cb8ae6dc3 | [
"MIT"
] | null | null | null | # Code generated by moonworm : https://github.com/bugout-dev/moonworm
# Moonworm version : 0.1.15
import argparse
import json
import os
from pathlib import Path
from typing import Any, Dict, List, Optional, Union
from brownie import Contract, network, project
from brownie.network.contract import ContractContainer
fro... | 36.153179 | 110 | 0.720042 | 1,553 | 12,509 | 5.536381 | 0.133934 | 0.075134 | 0.03559 | 0.026867 | 0.484648 | 0.399512 | 0.36555 | 0.335892 | 0.298674 | 0.281345 | 0 | 0.006067 | 0.182988 | 12,509 | 345 | 111 | 36.257971 | 0.835225 | 0.023663 | 0 | 0.281481 | 1 | 0 | 0.119931 | 0.005816 | 0 | 0 | 0 | 0 | 0.033333 | 1 | 0.103704 | false | 0.011111 | 0.02963 | 0 | 0.196296 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b8f67501bb09337640a791cb6fe7acdd86cd02da | 1,218 | py | Python | pki_framework/models.py | not-vibhu/aerobridge | 2edcd5e75782663184ac57da8145427613f4ef2b | [
"Apache-2.0"
] | null | null | null | pki_framework/models.py | not-vibhu/aerobridge | 2edcd5e75782663184ac57da8145427613f4ef2b | [
"Apache-2.0"
] | null | null | null | pki_framework/models.py | not-vibhu/aerobridge | 2edcd5e75782663184ac57da8145427613f4ef2b | [
"Apache-2.0"
] | null | null | null | from django.db import models
import uuid
from django.db.models.deletion import CASCADE
from django.utils.translation import ugettext_lazy as _
from registry.models import Aircraft, Contact
class AerobridgeCredential(models.Model):
''' A class to store tokens from Digital Sky '''
KEY_ENVIRONMENT = ((0, _('... | 45.111111 | 161 | 0.715928 | 155 | 1,218 | 5.425806 | 0.56129 | 0.064209 | 0.028537 | 0.059453 | 0.066587 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013619 | 0.155993 | 1,218 | 27 | 162 | 45.111111 | 0.804475 | 0.032841 | 0 | 0 | 0 | 0 | 0.162254 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.277778 | 0.055556 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b8ff1ef2169ea72dc887b109d83caea2e65f776a | 1,329 | py | Python | bin/import.py | lihengl/dizu-api | b7c10c4e8594b150792c3634ae5dbf957b23aeb9 | [
"MIT"
] | null | null | null | bin/import.py | lihengl/dizu-api | b7c10c4e8594b150792c3634ae5dbf957b23aeb9 | [
"MIT"
] | null | null | null | bin/import.py | lihengl/dizu-api | b7c10c4e8594b150792c3634ae5dbf957b23aeb9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- encoding: utf8 -*-
import json
import sys
import web
SCRIPT, USERNAME, PASSWORD = sys.argv
name = {}
for line in open("doc/name.csv"):
vals = line.strip().split(",")
if vals[1] == "釣魚台": continue
zh_tw_city = unicode(vals[1][:9], "utf-8")
zh_tw_dist = unicode(vals[1][9... | 22.15 | 70 | 0.593679 | 183 | 1,329 | 4.125683 | 0.371585 | 0.021192 | 0.039735 | 0.034437 | 0.045033 | 0.045033 | 0 | 0 | 0 | 0 | 0 | 0.012072 | 0.252069 | 1,329 | 59 | 71 | 22.525424 | 0.747485 | 0.032355 | 0 | 0 | 0 | 0 | 0.07866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.046512 | 0.069767 | null | null | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
77076bf5e680d1ea8cace4f57d7f0024aee323cd | 6,198 | py | Python | seahub/dtable/models.py | odontomachus/seahub | 5b6f2153921da21a473d9ff20ce443d40efc93ab | [
"Apache-2.0"
] | null | null | null | seahub/dtable/models.py | odontomachus/seahub | 5b6f2153921da21a473d9ff20ce443d40efc93ab | [
"Apache-2.0"
] | null | null | null | seahub/dtable/models.py | odontomachus/seahub | 5b6f2153921da21a473d9ff20ce443d40efc93ab | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import uuid
from django.db import models
from seaserv import seafile_api
from seahub.utils.timeutils import timestamp_to_isoformat_timestr, datetime_to_isoformat_timestr
from seahub.base.templatetags.seahub_tags import email2nickname
class WorkspacesM... | 32.28125 | 96 | 0.644885 | 716 | 6,198 | 5.374302 | 0.163408 | 0.02183 | 0.035083 | 0.06315 | 0.37448 | 0.329782 | 0.254158 | 0.218555 | 0.10499 | 0.08316 | 0 | 0.007637 | 0.260568 | 6,198 | 191 | 97 | 32.450262 | 0.831988 | 0.017264 | 0 | 0.286713 | 0 | 0 | 0.030288 | 0 | 0 | 0 | 0 | 0 | 0.006993 | 1 | 0.111888 | false | 0 | 0.041958 | 0.027972 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
770a203e4f8cc7a791bce45e9e871c299dda1439 | 1,498 | py | Python | solver/garden_solver.py | louisoutin/garden-csp | 13bd094b75006d2562f6da7b78925848d47899cf | [
"Apache-2.0"
] | 1 | 2021-01-25T18:15:19.000Z | 2021-01-25T18:15:19.000Z | solver/garden_solver.py | louisoutin/garden-csp | 13bd094b75006d2562f6da7b78925848d47899cf | [
"Apache-2.0"
] | null | null | null | solver/garden_solver.py | louisoutin/garden-csp | 13bd094b75006d2562f6da7b78925848d47899cf | [
"Apache-2.0"
] | null | null | null | import random
from typing import List
import numpy as np
import greedypacker
from model.vegetable import Vegetable
from model.garden_proposal import GardenProposal
def get_proposal(width: int,
height: int,
vegetables: List[Vegetable],
) -> GardenProposal:
# Ma... | 34.837209 | 94 | 0.655541 | 189 | 1,498 | 5.047619 | 0.497355 | 0.034591 | 0.033543 | 0.035639 | 0.083857 | 0.083857 | 0.083857 | 0 | 0 | 0 | 0 | 0.008921 | 0.251669 | 1,498 | 42 | 95 | 35.666667 | 0.842105 | 0.150868 | 0 | 0.142857 | 0 | 0 | 0.032334 | 0 | 0 | 0 | 0 | 0.02381 | 0.035714 | 1 | 0.071429 | false | 0 | 0.214286 | 0.035714 | 0.357143 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
77108961c1cbb7f8c9a1c19ab8a32a8e9328e7a3 | 753 | py | Python | trainer/envfile.py | Originofamonia/pylon | a13f19d64e366545d4052012dcea7f2c0776e5dc | [
"Apache-2.0"
] | 16 | 2020-10-26T20:09:00.000Z | 2021-09-07T12:05:39.000Z | trainer/envfile.py | aggelis/pylon | e26202b2c1cfbb8b5c444f840763f0ce839f048a | [
"Apache-2.0"
] | null | null | null | trainer/envfile.py | aggelis/pylon | e26202b2c1cfbb8b5c444f840763f0ce839f048a | [
"Apache-2.0"
] | 8 | 2020-10-26T08:01:41.000Z | 2022-03-05T20:25:59.000Z | import json
import multiprocessing as mp
import os
from dataclasses import dataclass
from typing import Tuple
import torch
@dataclass
class Env:
namespace: str = ''
cuda: Tuple[int] = tuple(range(torch.cuda.device_count()))
global_lock: int = 1
num_workers: int = mp.cpu_count()
@classmethod
... | 18.825 | 62 | 0.614874 | 103 | 753 | 4.359223 | 0.485437 | 0.035635 | 0.048998 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001832 | 0.2749 | 753 | 39 | 63 | 19.307692 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0.037185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.2 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
771784edcc7f5296f6cfcf7f2749b285b3a3b2d4 | 2,522 | py | Python | accounts/tests.py | Panda4817/MySousChef | 64c3967566b3834d578406884ee6b4a3807b21f8 | [
"MIT"
] | 1 | 2021-02-25T17:54:28.000Z | 2021-02-25T17:54:28.000Z | accounts/tests.py | Panda4817/MySousChef | 64c3967566b3834d578406884ee6b4a3807b21f8 | [
"MIT"
] | null | null | null | accounts/tests.py | Panda4817/MySousChef | 64c3967566b3834d578406884ee6b4a3807b21f8 | [
"MIT"
] | null | null | null | from django.test import TestCase, Client
from .models import Profile
from django.contrib.auth.models import User
import unittest
from .forms import SignUpForm
from .signals import show_login_message, show_logout_message
from django.contrib.auth.signals import user_logged_out, user_logged_in
from django.contrib i... | 37.641791 | 72 | 0.646709 | 303 | 2,522 | 5.264026 | 0.247525 | 0.03511 | 0.045141 | 0.062696 | 0.468339 | 0.453292 | 0.337931 | 0.308464 | 0.223197 | 0.19373 | 0 | 0.016112 | 0.237113 | 2,522 | 66 | 73 | 38.212121 | 0.81289 | 0.017446 | 0 | 0.333333 | 0 | 0 | 0.066445 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 1 | 0.166667 | false | 0.092593 | 0.185185 | 0 | 0.37037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7723875003056305dd41a4c7be005576a6c7ae13 | 268 | py | Python | more_exercise/exercise2.py | anoop123gupta/saral_debugging_code | 24cee076e66df9db3fd045e2d95013d2852e4567 | [
"MIT"
] | 2 | 2019-03-03T06:14:16.000Z | 2019-03-03T06:51:25.000Z | more_exercise/exercise2.py | anoop123gupta/saral_debugging_code | 24cee076e66df9db3fd045e2d95013d2852e4567 | [
"MIT"
] | null | null | null | more_exercise/exercise2.py | anoop123gupta/saral_debugging_code | 24cee076e66df9db3fd045e2d95013d2852e4567 | [
"MIT"
] | null | null | null | students_number=int(input("Enter number of Students :"))
per_student_kharcha=int(input("Enter per student expense :"))
total_kharcha=students_number*per_student_kharcha
if total_kharcha<50000:
print ("Ham kharche ke andar hai ")
else:
print ("kharche se bahar hai ") | 38.285714 | 61 | 0.787313 | 40 | 268 | 5.075 | 0.55 | 0.147783 | 0.128079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.104478 | 268 | 7 | 62 | 38.285714 | 0.825 | 0 | 0 | 0 | 0 | 0 | 0.36803 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7724033bccefff15b1bfde04fe2a170e9daf934c | 238 | py | Python | enemies.py | FelixRandle/shefjam7 | 87b7d5e87d45e5a318c12fcc3486ad9ac75b4b09 | [
"MIT"
] | 1 | 2022-02-04T17:51:12.000Z | 2022-02-04T17:51:12.000Z | enemies.py | FelixRandle/shefjam7 | 87b7d5e87d45e5a318c12fcc3486ad9ac75b4b09 | [
"MIT"
] | null | null | null | enemies.py | FelixRandle/shefjam7 | 87b7d5e87d45e5a318c12fcc3486ad9ac75b4b09 | [
"MIT"
] | null | null | null | import character
import constants
class Enemy(Character):
def __init__(self, image_path, x,y):
super().__init__(image_path, CHARACTER_SCALING)
self.movement = False
self.center_x = x
self.center_y = y
| 23.8 | 55 | 0.668067 | 31 | 238 | 4.709677 | 0.548387 | 0.123288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.243697 | 238 | 9 | 56 | 26.444444 | 0.811111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
772ae4d1cf81f8c9d1587da60df6aef3ebc4c9ca | 65,824 | py | Python | seahub/views/__init__.py | skmezanul/seahub | abebe2d7cedb4deb6d0a3faea7cc7465d1106d4e | [
"Apache-2.0"
] | null | null | null | seahub/views/__init__.py | skmezanul/seahub | abebe2d7cedb4deb6d0a3faea7cc7465d1106d4e | [
"Apache-2.0"
] | null | null | null | seahub/views/__init__.py | skmezanul/seahub | abebe2d7cedb4deb6d0a3faea7cc7465d1106d4e | [
"Apache-2.0"
] | null | null | null | # encoding: utf-8
import hashlib
import os
import stat
import json
import mimetypes
import urllib2
import logging
from math import ceil
import posixpath
from django.core.cache import cache
from django.core.urlresolvers import reverse
from django.contrib import messages
from django.http import HttpResponse, HttpRespons... | 35.0314 | 139 | 0.625942 | 8,315 | 65,824 | 4.689717 | 0.073602 | 0.027696 | 0.015002 | 0.018464 | 0.53989 | 0.47342 | 0.422105 | 0.387486 | 0.343865 | 0.302808 | 0 | 0.007536 | 0.276313 | 65,824 | 1,878 | 140 | 35.050053 | 0.811067 | 0.040061 | 0 | 0.485795 | 0 | 0 | 0.077289 | 0.007635 | 0.00071 | 0 | 0 | 0.001065 | 0 | 0 | null | null | 0.023438 | 0.03054 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
772b7248df4981fc47edd8e88df59c2ccd2844b6 | 2,363 | py | Python | test/hitbtc_test.py | peerchemist/cryptotik | 24ffd74c43ff1fc171081e135cb2b66b775af3f3 | [
"BSD-3-Clause"
] | 67 | 2016-09-27T09:13:24.000Z | 2022-03-28T15:33:36.000Z | test/hitbtc_test.py | alimogh/cryptotik | 24ffd74c43ff1fc171081e135cb2b66b775af3f3 | [
"BSD-3-Clause"
] | 33 | 2016-10-25T21:23:31.000Z | 2018-03-25T18:40:59.000Z | test/hitbtc_test.py | alimogh/cryptotik | 24ffd74c43ff1fc171081e135cb2b66b775af3f3 | [
"BSD-3-Clause"
] | 21 | 2016-10-25T17:19:00.000Z | 2022-03-26T05:37:05.000Z | import pytest
from cryptotik import Hitbtc
from decimal import Decimal
from cryptotik.exceptions import APIError
private = pytest.mark.skipif(
not pytest.config.getoption("--apikey"),
reason="needs --apikey option to run."
)
hit = Hitbtc(pytest.config.getoption("--apikey"),
pytest.config.getoptio... | 23.868687 | 129 | 0.704613 | 303 | 2,363 | 5.283828 | 0.277228 | 0.052467 | 0.043723 | 0.054966 | 0.177389 | 0.146159 | 0.103685 | 0.054966 | 0 | 0 | 0 | 0.010045 | 0.157427 | 2,363 | 99 | 130 | 23.868687 | 0.794073 | 0.060516 | 0 | 0.2 | 0 | 0 | 0.111162 | 0.01549 | 0 | 0 | 0 | 0 | 0.254545 | 1 | 0.218182 | false | 0 | 0.072727 | 0 | 0.290909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
772b92b7df1787d726000fd3851f9bf67bb2e4e7 | 543 | py | Python | types-operations/strings.py | rawzes/python-book | 5bdbbd9a1ab1051161cf1a2a3bc141de8c3adc77 | [
"Apache-2.0"
] | null | null | null | types-operations/strings.py | rawzes/python-book | 5bdbbd9a1ab1051161cf1a2a3bc141de8c3adc77 | [
"Apache-2.0"
] | null | null | null | types-operations/strings.py | rawzes/python-book | 5bdbbd9a1ab1051161cf1a2a3bc141de8c3adc77 | [
"Apache-2.0"
] | null | null | null |
s = 'test'
print(s[:]) # print whole string
print(s[0:-1]) # print tes
print(s[1]) # e
print(s + "xyz") # concatination testxyz
print("A"*90)
#s[0] = "s" #str' object does not support item assignment
S = "strawberry"
L = list(S)
print(L)
L[0] = 'Z'
print(''.join(L)) # Ztrawberry
s = ''.join(L)
s = s.replace('rr', 'r... | 20.884615 | 58 | 0.637201 | 92 | 543 | 3.73913 | 0.521739 | 0.087209 | 0.087209 | 0.104651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021322 | 0.13628 | 543 | 26 | 59 | 20.884615 | 0.712154 | 0.274401 | 0 | 0 | 0 | 0 | 0.166234 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.541667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
772cd19dab8d8a788aa4d6910cad2f2d22b36a79 | 498 | py | Python | point-operations/point_operation.py | himanshuMaheshwari2311/Image-Processing-Lab | 4b2ac6b8d93ab807d3487072085080d6f9ce65f0 | [
"MIT"
] | null | null | null | point-operations/point_operation.py | himanshuMaheshwari2311/Image-Processing-Lab | 4b2ac6b8d93ab807d3487072085080d6f9ce65f0 | [
"MIT"
] | null | null | null | point-operations/point_operation.py | himanshuMaheshwari2311/Image-Processing-Lab | 4b2ac6b8d93ab807d3487072085080d6f9ce65f0 | [
"MIT"
] | null | null | null | import cv2 as cv2
import numpy as np
def main():
img = cv2.imread('1.jpg', 0)
ret,thresh1 = cv2.threshold(img,127,255,cv2.THRESH_BINARY)
ret,thresh3 = cv2.threshold(img,127,255,cv2.THRESH_TRUNC)
ret,thresh5 = cv2.threshold(img,127,255,cv2.THRESH_TOZERO_INV)
cv2.imshow("Image", img)
cv2.imshow("... | 31.125 | 66 | 0.688755 | 74 | 498 | 4.472973 | 0.432432 | 0.108761 | 0.135952 | 0.163142 | 0.271903 | 0.271903 | 0.271903 | 0 | 0 | 0 | 0 | 0.098795 | 0.166667 | 498 | 16 | 67 | 31.125 | 0.698795 | 0 | 0 | 0 | 0 | 0 | 0.140281 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7730506866fd6bb9005663c3279e0b507d775c9e | 1,554 | py | Python | src/bel2scm/neurips_bel2scm/config.py | COVID-19-Causal-Reasoning/BEL2SCM | 8bc92c6016fdd0cbccd6c3c96ae3c9106b01446f | [
"MIT"
] | 3 | 2020-05-06T22:26:43.000Z | 2020-05-19T06:23:06.000Z | src/bel2scm/neurips_bel2scm/config.py | COVID-19-Causal-Reasoning/BEL2SCM | 8bc92c6016fdd0cbccd6c3c96ae3c9106b01446f | [
"MIT"
] | 8 | 2020-08-19T17:23:07.000Z | 2021-01-11T20:08:51.000Z | src/bel2scm/neurips_bel2scm/config.py | COVID-19-Causal-Reasoning/BEL2SCM | 8bc92c6016fdd0cbccd6c3c96ae3c9106b01446f | [
"MIT"
] | 2 | 2021-11-03T19:32:39.000Z | 2021-12-14T06:03:30.000Z | from bel2scm.neurips_bel2scm.utils import json_load
from bel2scm.neurips_bel2scm.constants import PYRO_DISTRIBUTIONS
class Config:
"""
Loads config file.
"""
def __init__(self, config_file_path):
self.config_dict = json_load(config_file_path)
# self._check_config()
self._set_co... | 35.318182 | 113 | 0.694337 | 184 | 1,554 | 5.467391 | 0.380435 | 0.101392 | 0.104374 | 0.124254 | 0.128231 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003384 | 0.239382 | 1,554 | 43 | 114 | 36.139535 | 0.847716 | 0.198198 | 0 | 0 | 0 | 0 | 0.090678 | 0.044068 | 0 | 0 | 0 | 0.023256 | 0 | 1 | 0.181818 | false | 0.045455 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7736473ba2e83cde456636d75cc33891d95badd1 | 505 | py | Python | pylol/summoner_client.py | dangkv/pylol | 23df1270f50c733ae0b1e9924a12edd1b4a27ddf | [
"MIT"
] | null | null | null | pylol/summoner_client.py | dangkv/pylol | 23df1270f50c733ae0b1e9924a12edd1b4a27ddf | [
"MIT"
] | null | null | null | pylol/summoner_client.py | dangkv/pylol | 23df1270f50c733ae0b1e9924a12edd1b4a27ddf | [
"MIT"
] | null | null | null | from pylol.lol_api_client import LolApiClient
from pylol.lol_api_version import LolApiVersion
class LoLSummonerClient(LolApiClient):
def __init__(self, transport):
super().__init__(transport)
self.obj_desc = 'Summoner'
self.v = LolApiVersion.v['summoner']
def ids(self, summoner_name)... | 31.5625 | 74 | 0.679208 | 62 | 505 | 5.225806 | 0.5 | 0.064815 | 0.074074 | 0.092593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211881 | 505 | 15 | 75 | 33.666667 | 0.81407 | 0 | 0 | 0 | 0 | 0 | 0.158416 | 0.110891 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7737dd76135d6a236c5bd009696ce84851f969f6 | 4,242 | py | Python | main.py | ebjaime/Image-Recognition-Calculator | 5b269bfcf9aec3482ed25c0278b28523d0ade8c5 | [
"MIT"
] | null | null | null | main.py | ebjaime/Image-Recognition-Calculator | 5b269bfcf9aec3482ed25c0278b28523d0ade8c5 | [
"MIT"
] | null | null | null | main.py | ebjaime/Image-Recognition-Calculator | 5b269bfcf9aec3482ed25c0278b28523d0ade8c5 | [
"MIT"
] | null | null | null | #ENRIQUEZ BALLESTEROS, JAIME. 2018
import cv2
from reconocimiento_operaciones import crear_modelo_operaciones
from reconocimiento_operaciones import prediccion_operacion
from reconocimiento_numeros import cargar_numeros_desde_mnist
from reconocimiento_numeros import crear_modelo_numeros
from reconocimiento_numeros impo... | 25.709091 | 116 | 0.666667 | 655 | 4,242 | 4.230534 | 0.216794 | 0.047997 | 0.040419 | 0.038975 | 0.213641 | 0.167449 | 0.160953 | 0.140022 | 0.095272 | 0.095272 | 0 | 0.015652 | 0.171617 | 4,242 | 164 | 117 | 25.865854 | 0.772908 | 0.053041 | 0 | 0.286765 | 0 | 0.014706 | 0.237965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.080882 | null | null | 0.176471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
773e80416a68abc4705b469a269d3c45ac3f3328 | 7,766 | py | Python | src/stats.py | bbc/dvbcss-synctiming | f9a1848a6406e866ff493506446036dadd3d6f8c | [
"Apache-2.0"
] | 17 | 2015-03-15T17:49:37.000Z | 2021-05-07T13:05:26.000Z | src/stats.py | bbc/dvbcss-synctiming | f9a1848a6406e866ff493506446036dadd3d6f8c | [
"Apache-2.0"
] | 8 | 2015-03-20T11:11:19.000Z | 2018-08-01T16:49:08.000Z | src/stats.py | BBC/dvbcss-synctiming | f9a1848a6406e866ff493506446036dadd3d6f8c | [
"Apache-2.0"
] | 7 | 2015-07-17T10:42:08.000Z | 2019-10-11T08:44:55.000Z | #!/usr/bin/env python
#
# Copyright 2015 British Broadcasting Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | 37.157895 | 174 | 0.640098 | 921 | 7,766 | 5.388708 | 0.335505 | 0.011284 | 0.009672 | 0.006448 | 0.076567 | 0.060044 | 0.036671 | 0.014507 | 0.014507 | 0 | 0 | 0.020994 | 0.263971 | 7,766 | 208 | 175 | 37.336538 | 0.847271 | 0.100824 | 0 | 0.104167 | 0 | 0.010417 | 0.249059 | 0.031437 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.041667 | 0 | null | null | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
7743dce4fbcf0dd7de4b6517843df336aac8d829 | 2,074 | py | Python | Tree/1409. Queries on a Permutation With Key.py | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | 138 | 2020-02-08T05:25:26.000Z | 2021-11-04T11:59:28.000Z | Tree/1409. Queries on a Permutation With Key.py | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | null | null | null | Tree/1409. Queries on a Permutation With Key.py | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | 24 | 2021-01-02T07:18:43.000Z | 2022-03-20T08:17:54.000Z | class Solution:
def processQueries(self, queries: List[int], m: int) -> List[int]:
mp = [i for i in range(1, m+1)]
res = []
for i, v in enumerate(queries):
j = mp.index(v)
#print(v,j)
res += j,
del mp[j]
mp.insert(0, v)
ret... | 21.831579 | 73 | 0.463838 | 303 | 2,074 | 3.161716 | 0.379538 | 0.012526 | 0.009395 | 0.06263 | 0.152401 | 0.152401 | 0.152401 | 0.123173 | 0.123173 | 0.123173 | 0 | 0.186901 | 0.396336 | 2,074 | 95 | 74 | 21.831579 | 0.578275 | 0 | 0 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7747364b2b2ead4e5f7a903c4c6d645e029f71d4 | 987 | py | Python | projects/10/src/JackTokenizer.py | danibachar/Nand2Tetris | fdce0e87a4869213f3eeb0004ba2af688ea1b1cc | [
"MIT"
] | null | null | null | projects/10/src/JackTokenizer.py | danibachar/Nand2Tetris | fdce0e87a4869213f3eeb0004ba2af688ea1b1cc | [
"MIT"
] | null | null | null | projects/10/src/JackTokenizer.py | danibachar/Nand2Tetris | fdce0e87a4869213f3eeb0004ba2af688ea1b1cc | [
"MIT"
] | null | null | null |
class JackTokenizer:
def __init__(self, src_file_name):
self._line_index = 0
self._line_index = 0
self._lines = []
f = open(src_file_name)
# First assesment of the Assembler
for line in f.readlines():
strip_line = line.lstrip()
# Skipping ... | 25.973684 | 66 | 0.545086 | 119 | 987 | 4.252101 | 0.462185 | 0.079051 | 0.128459 | 0.055336 | 0.150198 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010687 | 0.336373 | 987 | 37 | 67 | 26.675676 | 0.761832 | 0.159068 | 0 | 0.083333 | 0 | 0 | 0.008537 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0.041667 | 0 | 0.041667 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
774dbccbe2115728dd64a442dfaa9c005c5cd660 | 619 | py | Python | src/database/db.py | Sebastian-Paterson-Jones/fast-api-auth | f4a0076e8c99d58d320d4c8e89ba10e3591fdfbc | [
"Unlicense"
] | null | null | null | src/database/db.py | Sebastian-Paterson-Jones/fast-api-auth | f4a0076e8c99d58d320d4c8e89ba10e3591fdfbc | [
"Unlicense"
] | null | null | null | src/database/db.py | Sebastian-Paterson-Jones/fast-api-auth | f4a0076e8c99d58d320d4c8e89ba10e3591fdfbc | [
"Unlicense"
] | null | null | null | import databases
import sqlalchemy
from fastapi_users.db import SQLAlchemyBaseUserTable, SQLAlchemyUserDatabase
from sqlalchemy.ext.declarative import DeclarativeMeta, declarative_base
from .models import UserDB
DATABASE_URL = "postgresql://postgres:example@db/postgres"
database = databases.Database(DATABASE_URL)
Bas... | 25.791667 | 76 | 0.822294 | 68 | 619 | 7.279412 | 0.485294 | 0.066667 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106624 | 619 | 24 | 77 | 25.791667 | 0.895118 | 0 | 0 | 0 | 0 | 0 | 0.066129 | 0.066129 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.058824 | 0.294118 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7757ee0ca3dde1d63dc3024a6a28acc43d5d2bfb | 3,219 | py | Python | services/kenaan/fabfile.py | graingert/braid | 1df63c5d8b44e079487be2f0bf099108a77872e5 | [
"MIT"
] | 8 | 2015-10-18T11:02:54.000Z | 2019-03-29T18:33:18.000Z | services/kenaan/fabfile.py | graingert/braid | 1df63c5d8b44e079487be2f0bf099108a77872e5 | [
"MIT"
] | 214 | 2015-01-19T06:58:36.000Z | 2022-02-10T10:22:30.000Z | services/kenaan/fabfile.py | graingert/braid | 1df63c5d8b44e079487be2f0bf099108a77872e5 | [
"MIT"
] | 12 | 2015-02-08T17:32:13.000Z | 2020-10-25T22:22:59.000Z | """
Support for kenaan service installation and management.
"""
import os
from fabric.api import execute, run, settings, env, cd, abort, puts, put
from fabric.contrib import files
from twisted.python.filepath import FilePath
from twisted.python.util import sibpath
from braid import cron
from braid.twisted import serv... | 32.515152 | 92 | 0.579372 | 355 | 3,219 | 5.149296 | 0.343662 | 0.071116 | 0.027352 | 0.043764 | 0.208972 | 0.130197 | 0.087527 | 0.044858 | 0.044858 | 0 | 0 | 0.005256 | 0.290774 | 3,219 | 98 | 93 | 32.846939 | 0.795445 | 0.094439 | 0 | 0.157895 | 0 | 0 | 0.17019 | 0 | 0 | 0 | 0 | 0.010204 | 0 | 1 | 0.087719 | false | 0 | 0.140351 | 0 | 0.245614 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
775fcff2b7d97d1a5b6003d5ce4832050f664df0 | 840 | py | Python | third_party/pygame/06_petri/petri.py | jeremyosborne/examples-python | 5900b3a4f47d59de0a32d3257a8b90a44e80fdcd | [
"MIT"
] | null | null | null | third_party/pygame/06_petri/petri.py | jeremyosborne/examples-python | 5900b3a4f47d59de0a32d3257a8b90a44e80fdcd | [
"MIT"
] | null | null | null | third_party/pygame/06_petri/petri.py | jeremyosborne/examples-python | 5900b3a4f47d59de0a32d3257a8b90a44e80fdcd | [
"MIT"
] | null | null | null | import pygame
import pygame.locals
from pygame.locals import *
from engine import GameWorld
# TEST our gameobject
from gameobject import GameObject
def petrimousedown(gameworld, event):
if event.button == 1:
# MODIFIED CODE
# TEST AGAIN
GameObject(gameworld=gameworld, pos=event... | 23.333333 | 55 | 0.641667 | 90 | 840 | 5.877778 | 0.466667 | 0.045369 | 0.060491 | 0.079395 | 0.226843 | 0.226843 | 0.226843 | 0.226843 | 0.226843 | 0.226843 | 0 | 0.003241 | 0.265476 | 840 | 35 | 56 | 24 | 0.854133 | 0.082143 | 0 | 0.095238 | 0 | 0 | 0.071233 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.238095 | null | null | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
91f1a13ea6674cd5ed004f8ac8f979c80e37e2c4 | 13,676 | py | Python | amazonia/amazonia/amazonia_resources.py | GeoscienceAustralia/geoscience-portal-aws | 346e8c8b42496d8da947fa56bc1cce934b8bd9ca | [
"BSD-3-Clause"
] | null | null | null | amazonia/amazonia/amazonia_resources.py | GeoscienceAustralia/geoscience-portal-aws | 346e8c8b42496d8da947fa56bc1cce934b8bd9ca | [
"BSD-3-Clause"
] | null | null | null | amazonia/amazonia/amazonia_resources.py | GeoscienceAustralia/geoscience-portal-aws | 346e8c8b42496d8da947fa56bc1cce934b8bd9ca | [
"BSD-3-Clause"
] | null | null | null | # pylint: disable=too-many-arguments, line-too-long
"""
The functions in this module generate cloud formation scripts that install common AWS environments and components
"""
from troposphere import Ref, Tags, Join, Base64, GetAtt
from troposphere.autoscaling import AutoScalingGroup, LaunchConfiguration, Tag
import ... | 34.887755 | 146 | 0.618675 | 1,492 | 13,676 | 5.371984 | 0.188338 | 0.035683 | 0.037929 | 0.035683 | 0.279102 | 0.230817 | 0.187648 | 0.164691 | 0.153462 | 0.113038 | 0 | 0.017801 | 0.297602 | 13,676 | 391 | 147 | 34.976982 | 0.816573 | 0.042044 | 0 | 0.265781 | 1 | 0 | 0.071647 | 0.009415 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0 | 0.013289 | 0.003322 | 0.139535 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
91f58c7d583e98470fe4d397ee40a159965bf5b8 | 1,935 | py | Python | PyTrinamic/ic/TMC7300/TMC7300.py | trinamic-AA/PyTrinamic | b054f4baae8eb6d3f5d2574cf69c232f66abb4ee | [
"MIT"
] | 37 | 2019-01-13T11:08:45.000Z | 2022-03-25T07:18:15.000Z | PyTrinamic/ic/TMC7300/TMC7300.py | AprDec/PyTrinamic | a9db10071f8fbeebafecb55c619e5893757dd0ce | [
"MIT"
] | 56 | 2019-02-25T02:48:27.000Z | 2022-03-31T08:45:34.000Z | PyTrinamic/ic/TMC7300/TMC7300.py | AprDec/PyTrinamic | a9db10071f8fbeebafecb55c619e5893757dd0ce | [
"MIT"
] | 26 | 2019-01-14T05:20:16.000Z | 2022-03-08T13:27:35.000Z | '''
Created on 30.03.2020
@author: JM
'''
import struct
from PyTrinamic.ic.TMC7300.TMC7300_register import TMC7300_register
from PyTrinamic.ic.TMC7300.TMC7300_register_variant import TMC7300_register_variant
from PyTrinamic.ic.TMC7300.TMC7300_fields import TMC7300_fields
from PyTrinamic.helpers import TMC_helpers
DA... | 34.553571 | 170 | 0.70801 | 238 | 1,935 | 5.563025 | 0.369748 | 0.067976 | 0.036254 | 0.052115 | 0.323263 | 0.300604 | 0.243202 | 0.170695 | 0.170695 | 0.170695 | 0 | 0.059091 | 0.204134 | 1,935 | 55 | 171 | 35.181818 | 0.8 | 0.030491 | 0 | 0.058824 | 0 | 0.029412 | 0.084188 | 0 | 0 | 0 | 0.002159 | 0 | 0 | 1 | 0.205882 | false | 0.029412 | 0.147059 | 0.058824 | 0.470588 | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
91f6a26656c17a6b9b4a9aee03e8fcebdd066194 | 31,583 | py | Python | MonkeyBusiness/elilik.py | svyhlidka/Python-Projects | 7c297bf7248a1e61699a69d62eb83f15cf90d352 | [
"MIT"
] | null | null | null | MonkeyBusiness/elilik.py | svyhlidka/Python-Projects | 7c297bf7248a1e61699a69d62eb83f15cf90d352 | [
"MIT"
] | null | null | null | MonkeyBusiness/elilik.py | svyhlidka/Python-Projects | 7c297bf7248a1e61699a69d62eb83f15cf90d352 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'm1.ui'
#
# Created by: PyQt5 UI code generator 5.9.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5.QtGui import QImage, QPixmap, QPainter, QBrush, QColor
from PyQt5.QtGui import QPalette, QFont, QFontMetrics, QStan... | 47.421922 | 145 | 0.67815 | 3,217 | 31,583 | 6.620454 | 0.158533 | 0.034229 | 0.028078 | 0.01479 | 0.331909 | 0.289652 | 0.27242 | 0.253498 | 0.224387 | 0.209832 | 0 | 0.028354 | 0.214957 | 31,583 | 665 | 146 | 47.493233 | 0.830161 | 0.007377 | 0 | 0.254545 | 1 | 0.013223 | 0.133695 | 0.003542 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047934 | false | 0.003306 | 0.031405 | 0 | 0.080992 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
91f98e8c8342aead82f034750a78a64eb0994af4 | 1,756 | py | Python | vyperlogix/gds/spinner.py | raychorn/chrome_gui | f1fade70b61af12ee43c55c075aa9cfd32caa962 | [
"CC0-1.0"
] | 1 | 2020-09-29T01:36:33.000Z | 2020-09-29T01:36:33.000Z | vyperlogix/gds/spinner.py | raychorn/chrome_gui | f1fade70b61af12ee43c55c075aa9cfd32caa962 | [
"CC0-1.0"
] | null | null | null | vyperlogix/gds/spinner.py | raychorn/chrome_gui | f1fade70b61af12ee43c55c075aa9cfd32caa962 | [
"CC0-1.0"
] | null | null | null | '''
Implements a text spinner. Prints to stdout.
Copyright (C) 2002 GDS Software
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of
the License, or (at your option) any later versi... | 28.322581 | 68 | 0.643508 | 272 | 1,756 | 4.073529 | 0.477941 | 0.018051 | 0.035199 | 0.051444 | 0.193141 | 0.140794 | 0.090253 | 0.090253 | 0.090253 | 0.090253 | 0 | 0.036226 | 0.245444 | 1,756 | 61 | 69 | 28.786885 | 0.8 | 0.003986 | 0 | 0.25 | 0 | 0.03125 | 0.139282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
91fdc9dedd6782913112cfc80b082928546fb557 | 3,782 | py | Python | ozzmeister00/AdventOfCode2021/Scripts/Python/utils/math.py | techartorg/Advent_of_code_2021 | 0de46418e86743a2f3dee62c34f35e3007973c77 | [
"MIT"
] | null | null | null | ozzmeister00/AdventOfCode2021/Scripts/Python/utils/math.py | techartorg/Advent_of_code_2021 | 0de46418e86743a2f3dee62c34f35e3007973c77 | [
"MIT"
] | null | null | null | ozzmeister00/AdventOfCode2021/Scripts/Python/utils/math.py | techartorg/Advent_of_code_2021 | 0de46418e86743a2f3dee62c34f35e3007973c77 | [
"MIT"
] | 2 | 2021-12-12T06:42:02.000Z | 2021-12-26T01:41:28.000Z | """
Common maths functions and datatypes for solving Advent of Code problems
"""
import functools
import operator
def saturate(value):
"""
Saturates a value, so it is only ever between 0 and 1
:param float value: the value to saturate
:return float: the value, but clamped between 0 and 1
"""
... | 26.263889 | 102 | 0.586198 | 575 | 3,782 | 3.813913 | 0.288696 | 0.030096 | 0.0228 | 0.031008 | 0.151391 | 0.141359 | 0.089375 | 0.089375 | 0.057456 | 0.057456 | 0 | 0.033639 | 0.308302 | 3,782 | 143 | 103 | 26.447552 | 0.804664 | 0.424907 | 0 | 0.068966 | 0 | 0 | 0.026618 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.241379 | false | 0 | 0.034483 | 0.034483 | 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 | 0 | 0 | 0 | 0 | 1 |
62091654411faf8ab9bbe29287933e3db879c185 | 1,577 | py | Python | GreenhouseVeg/USBSerial.py | teodecarvalho/Arduino | b6790e82d9e722b7694fddb8245a0138af02435e | [
"MIT"
] | null | null | null | GreenhouseVeg/USBSerial.py | teodecarvalho/Arduino | b6790e82d9e722b7694fddb8245a0138af02435e | [
"MIT"
] | null | null | null | GreenhouseVeg/USBSerial.py | teodecarvalho/Arduino | b6790e82d9e722b7694fddb8245a0138af02435e | [
"MIT"
] | null | null | null | from kivy.utils import platform
if platform != "android":
from glob import glob
import serial
else:
from usb4a import usb
from usbserial4a import serial4a
class USBdevice():
def get_usb_devices(self):
try:
self.usb_device = usb.get_usb_device_list()[0]
except NameError:
... | 28.160714 | 110 | 0.497146 | 170 | 1,577 | 4.488235 | 0.405882 | 0.104849 | 0.110092 | 0.04194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019565 | 0.416614 | 1,577 | 56 | 111 | 28.160714 | 0.809783 | 0.01078 | 0 | 0.4 | 0 | 0 | 0.050032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0.06 | 0.1 | 0.02 | 0.28 | 0.06 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
620e6dea4e5781c77d63e51cf941de3f5d0f9a79 | 35,986 | py | Python | apps/breakfast/bacon/testbed/scripts/TestbedMap.py | mtaghiza/tinyos-main-1 | cac075f7eae46c6a37409e66137a78b9bc3a64b1 | [
"BSD-3-Clause"
] | null | null | null | apps/breakfast/bacon/testbed/scripts/TestbedMap.py | mtaghiza/tinyos-main-1 | cac075f7eae46c6a37409e66137a78b9bc3a64b1 | [
"BSD-3-Clause"
] | null | null | null | apps/breakfast/bacon/testbed/scripts/TestbedMap.py | mtaghiza/tinyos-main-1 | cac075f7eae46c6a37409e66137a78b9bc3a64b1 | [
"BSD-3-Clause"
] | 1 | 2022-02-21T14:31:18.000Z | 2022-02-21T14:31:18.000Z | #!/usr/bin/env python
# Copyright (c) 2014 Johns Hopkins University
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# - Redistributions of source code must retain the above copyright
# noti... | 37.252588 | 155 | 0.525788 | 4,336 | 35,986 | 4.308118 | 0.125692 | 0.022484 | 0.014936 | 0.012313 | 0.449197 | 0.38121 | 0.334047 | 0.324411 | 0.305407 | 0.28046 | 0 | 0.023388 | 0.340577 | 35,986 | 965 | 156 | 37.291192 | 0.763801 | 0.084616 | 0 | 0.337975 | 0 | 0.005063 | 0.11774 | 0.002781 | 0 | 0 | 0.000741 | 0.002073 | 0 | 0 | null | null | 0.005063 | 0.008861 | null | null | 0.008861 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
620f207c6c80a6894024d54e5094b9819073e790 | 3,073 | py | Python | await.py | YavorPaunov/await | 0ea7ad1d0d48b66686e35702d39695268451b688 | [
"MIT"
] | null | null | null | await.py | YavorPaunov/await | 0ea7ad1d0d48b66686e35702d39695268451b688 | [
"MIT"
] | null | null | null | await.py | YavorPaunov/await | 0ea7ad1d0d48b66686e35702d39695268451b688 | [
"MIT"
] | null | null | null | from flask import Flask, request, abort
from flask import jsonify
from flask.ext.cors import CORS
from models import Counter, TripTheme, db
from time2words import relative_time_to_text
from util import random_str
import dateutil.parser
app = Flask(__name__)
app.secret_key = 'randomstringshouldgohere'
app.config['SERV... | 26.95614 | 88 | 0.599089 | 363 | 3,073 | 4.900826 | 0.344353 | 0.026981 | 0.025295 | 0.020236 | 0.025857 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008949 | 0.272698 | 3,073 | 113 | 89 | 27.19469 | 0.787025 | 0.040677 | 0 | 0.025 | 0 | 0 | 0.127421 | 0.046211 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0875 | null | null | 0.0125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
621033ba87b73ab6f9cc121e63f28670d4d742fe | 2,914 | py | Python | Mac/Modules/launch/launchscan.py | jasonadu/Python-2.5 | 93e24b88564de120b1296165b5c55975fdcb8a3c | [
"PSF-2.0"
] | 1 | 2015-10-23T02:57:29.000Z | 2015-10-23T02:57:29.000Z | Mac/Modules/launch/launchscan.py | jasonadu/Python-2.5 | 93e24b88564de120b1296165b5c55975fdcb8a3c | [
"PSF-2.0"
] | null | null | null | Mac/Modules/launch/launchscan.py | jasonadu/Python-2.5 | 93e24b88564de120b1296165b5c55975fdcb8a3c | [
"PSF-2.0"
] | 2 | 2017-01-30T21:52:13.000Z | 2019-07-18T21:33:17.000Z | # Scan an Apple header file, generating a Python file of generator calls.
import sys
import os
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
LONG = "LaunchServices"
SHORT = "launch"
OBJECT = "NOTUSED"
def main():
input = LONG + ".h"
output = SHORT + "gen... | 33.494253 | 85 | 0.556966 | 257 | 2,914 | 6.249027 | 0.478599 | 0.052304 | 0.074097 | 0.067248 | 0.066002 | 0.042341 | 0.042341 | 0.042341 | 0.042341 | 0.042341 | 0 | 0.00592 | 0.304393 | 2,914 | 86 | 86 | 33.883721 | 0.786384 | 0.072752 | 0 | 0.043478 | 0 | 0 | 0.321958 | 0.057493 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.101449 | null | null | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6216a1d87ff9bca7f68d7200b06c075de3fd96d5 | 283 | py | Python | backend/restapi/serializers/airtable_serializer.py | IlluminateMedia/prompts-ai | 04723f21f165811ab784f8eebab10b7df2d02075 | [
"MIT"
] | null | null | null | backend/restapi/serializers/airtable_serializer.py | IlluminateMedia/prompts-ai | 04723f21f165811ab784f8eebab10b7df2d02075 | [
"MIT"
] | null | null | null | backend/restapi/serializers/airtable_serializer.py | IlluminateMedia/prompts-ai | 04723f21f165811ab784f8eebab10b7df2d02075 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from ..models import Airtable
class AirtableSerializer(serializers.ModelSerializer):
class Meta:
model = Airtable
fields = (
"base",
"table",
"category",
"api_key"
) | 20.214286 | 54 | 0.565371 | 23 | 283 | 6.869565 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.35689 | 283 | 14 | 55 | 20.214286 | 0.868132 | 0 | 0 | 0 | 0 | 0 | 0.084507 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.363636 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6218c348d063d3bab5ff61a909520c5c0fc18b91 | 3,166 | py | Python | Allura/allura/ext/search/search_main.py | rohankumardubey/allura | 9c490a051ca912d28b81ce656441d6fed100cb24 | [
"Apache-2.0"
] | 113 | 2015-03-25T10:33:37.000Z | 2022-02-16T20:55:06.000Z | Allura/allura/ext/search/search_main.py | rohankumardubey/allura | 9c490a051ca912d28b81ce656441d6fed100cb24 | [
"Apache-2.0"
] | 4 | 2017-08-04T16:19:07.000Z | 2020-06-08T19:01:33.000Z | Allura/allura/ext/search/search_main.py | rohankumardubey/allura | 9c490a051ca912d28b81ce656441d6fed100cb24 | [
"Apache-2.0"
] | 36 | 2015-08-14T16:27:39.000Z | 2022-02-16T20:54:35.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 (t... | 32.979167 | 71 | 0.668351 | 394 | 3,166 | 5.208122 | 0.464467 | 0.02924 | 0.031676 | 0.023392 | 0.07115 | 0.07115 | 0.04386 | 0 | 0 | 0 | 0 | 0.002111 | 0.252053 | 3,166 | 95 | 72 | 33.326316 | 0.864443 | 0.3247 | 0 | 0.083333 | 0 | 0 | 0.077508 | 0.041845 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116667 | false | 0.033333 | 0.233333 | 0.05 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6219efcb4f8a831c232e90449962688ae0269b14 | 3,691 | py | Python | my_drawing/my_drawing.py | steven3614/MystanCodeprojects | 97bfc8c6f36517ac8aa4a64981a5ec1f530b111b | [
"MIT"
] | null | null | null | my_drawing/my_drawing.py | steven3614/MystanCodeprojects | 97bfc8c6f36517ac8aa4a64981a5ec1f530b111b | [
"MIT"
] | null | null | null | my_drawing/my_drawing.py | steven3614/MystanCodeprojects | 97bfc8c6f36517ac8aa4a64981a5ec1f530b111b | [
"MIT"
] | null | null | null | """
File: my_drawing
Name: 張文銓
----------------------
TODO: This function is my drawing about the famous show "squid game" including the killer and the invitation card
in the story.
"""
from campy.graphics.gobjects import GOval, GRect, GLabel
from campy.graphics.gwindow import GWindow
def main():
"""
TODO: ... | 26.746377 | 113 | 0.625847 | 530 | 3,691 | 4.313208 | 0.271698 | 0.07874 | 0.062992 | 0.074803 | 0.023622 | 0.023622 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 0.238147 | 3,691 | 137 | 114 | 26.941606 | 0.733997 | 0.158223 | 0 | 0 | 0 | 0 | 0.092003 | 0 | 0 | 0 | 0 | 0.014599 | 0 | 1 | 0.01 | false | 0 | 0.02 | 0 | 0.03 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
621b02edbed946d0b10e9a1f7299d4cd4877fce1 | 10,847 | py | Python | ironic/common/exception.py | citrix-openstack-build/ironic | 4b9eed0aeba44739caa742a48b55d824eae8ec55 | [
"Apache-2.0"
] | null | null | null | ironic/common/exception.py | citrix-openstack-build/ironic | 4b9eed0aeba44739caa742a48b55d824eae8ec55 | [
"Apache-2.0"
] | null | null | null | ironic/common/exception.py | citrix-openstack-build/ironic | 4b9eed0aeba44739caa742a48b55d824eae8ec55 | [
"Apache-2.0"
] | null | null | null | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compli... | 28.469816 | 78 | 0.646723 | 1,230 | 10,847 | 5.594309 | 0.331707 | 0.070339 | 0.013079 | 0.019619 | 0.080948 | 0.038948 | 0.020637 | 0.013951 | 0.013951 | 0.013951 | 0 | 0.003615 | 0.260441 | 10,847 | 380 | 79 | 28.544737 | 0.854151 | 0.162072 | 0 | 0.08 | 0 | 0 | 0.266763 | 0.008437 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035 | false | 0.03 | 0.025 | 0 | 0.64 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
62200ace2c28ceeee13360e5fb48bbe6596738f2 | 1,552 | py | Python | backend/core/models.py | alexhermida/pinecone | efbe9d8a9b98c7191c16fc4c8cbe7ed344015542 | [
"BSD-3-Clause"
] | 2 | 2018-11-02T14:11:02.000Z | 2019-05-07T07:54:36.000Z | backend/core/models.py | alexhermida/pinecone | efbe9d8a9b98c7191c16fc4c8cbe7ed344015542 | [
"BSD-3-Clause"
] | 17 | 2020-02-11T22:38:18.000Z | 2022-03-08T22:04:57.000Z | backend/core/models.py | alexhermida/pinecone | efbe9d8a9b98c7191c16fc4c8cbe7ed344015542 | [
"BSD-3-Clause"
] | 1 | 2019-01-15T17:52:57.000Z | 2019-01-15T17:52:57.000Z | from django.contrib.auth.models import User
from django.contrib.postgres.fields import JSONField
from django.db import models
from django.utils.translation import gettext as _
from model_utils import Choices
from model_utils.fields import StatusField
from model_utils.models import TimeStampedModel
class Group(models... | 37.853659 | 79 | 0.690077 | 174 | 1,552 | 5.95977 | 0.316092 | 0.130183 | 0.040501 | 0.04918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178479 | 1,552 | 40 | 80 | 38.8 | 0.813333 | 0 | 0 | 0 | 0 | 0 | 0.104381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.275862 | 0 | 0.965517 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
62231ddb96b9e6821f592b0f298674db20b4ed49 | 1,924 | py | Python | src/zsl_jwt/auth/module.py | AtteqCom/zsl_jwt | e1a81b756805b8d4d1ce371a562bc4c003d88df9 | [
"BSD-2-Clause"
] | null | null | null | src/zsl_jwt/auth/module.py | AtteqCom/zsl_jwt | e1a81b756805b8d4d1ce371a562bc4c003d88df9 | [
"BSD-2-Clause"
] | null | null | null | src/zsl_jwt/auth/module.py | AtteqCom/zsl_jwt | e1a81b756805b8d4d1ce371a562bc4c003d88df9 | [
"BSD-2-Clause"
] | null | null | null | """
:mod:`zsl_jwt.auth.module`
--------------------------
This ZSL module reads the auth configuration and provides
:class:`zsl_jwt.auth.configuration.AuthConfiguration` and an instance of
:class:`zsl_jwt.auth.service.AuthenticationService`.
"""
from __future__ import absolute_import
from __future__ import division
f... | 30.539683 | 81 | 0.731289 | 202 | 1,924 | 6.69802 | 0.267327 | 0.059128 | 0.036955 | 0.068736 | 0.087214 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189189 | 1,924 | 62 | 82 | 31.032258 | 0.867308 | 0.310291 | 0 | 0 | 0 | 0 | 0.003228 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.413793 | 0.034483 | 0.689655 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
622e10be6d0353a7b3bc0c8d702af44c572b01f0 | 15,142 | py | Python | chemml/utils/utilities.py | hachmannlab/chemml | 74a0c6de0229a1c94c5419f16cb9ba24f32bd38d | [
"BSD-3-Clause"
] | 108 | 2018-03-23T20:06:03.000Z | 2022-01-06T19:32:46.000Z | chemml/utils/utilities.py | hachmannlab/chemml | 74a0c6de0229a1c94c5419f16cb9ba24f32bd38d | [
"BSD-3-Clause"
] | 18 | 2019-08-09T21:16:14.000Z | 2022-02-14T21:52:06.000Z | chemml/utils/utilities.py | hachmannlab/chemml | 74a0c6de0229a1c94c5419f16cb9ba24f32bd38d | [
"BSD-3-Clause"
] | 28 | 2018-04-28T17:07:33.000Z | 2022-02-28T07:22:56.000Z | from builtins import range
import datetime
import numpy as np
import time
# Todo: polish docstrings
def list_del_indices(mylist,indices):
"""
iteratively remove elements of a list by indices
Parameters
----------
mylist : list
the list of elements of interest
indices : list
th... | 34.180587 | 1,356 | 0.606657 | 2,104 | 15,142 | 4.235266 | 0.21673 | 0.027157 | 0.009539 | 0.014028 | 0.153518 | 0.105712 | 0.083717 | 0.07227 | 0.054539 | 0.037818 | 0 | 0.014101 | 0.264694 | 15,142 | 442 | 1,357 | 34.257919 | 0.78624 | 0.569211 | 0 | 0.099291 | 0 | 0 | 0.087793 | 0 | 0 | 0 | 0 | 0.002262 | 0.028369 | 1 | 0.070922 | false | 0 | 0.028369 | 0 | 0.191489 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
622e21e053c0d812f3af520679e21661c504bc59 | 391 | py | Python | bubbles/commands/__init__.py | AlexandriaILS/Bubbles-V2 | fcf5ef1f8edffae22dcc1be5be3884668f4db23f | [
"MIT"
] | null | null | null | bubbles/commands/__init__.py | AlexandriaILS/Bubbles-V2 | fcf5ef1f8edffae22dcc1be5be3884668f4db23f | [
"MIT"
] | null | null | null | bubbles/commands/__init__.py | AlexandriaILS/Bubbles-V2 | fcf5ef1f8edffae22dcc1be5be3884668f4db23f | [
"MIT"
] | null | null | null | """
Automatically load all python files inside this directory.
This allows the plugin manager to actually find everything!
"""
# source: https://stackoverflow.com/a/1057534
import glob
from os.path import dirname, basename, isfile, join
modules = glob.glob(join(dirname(__file__), "*.py"))
__all__ = [
basename(f)[... | 27.928571 | 84 | 0.731458 | 57 | 391 | 4.807018 | 0.754386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.140665 | 391 | 13 | 85 | 30.076923 | 0.791667 | 0.419437 | 0 | 0 | 0 | 0 | 0.068493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
62390df614cfbac808b6e45a5cae805d6694065b | 14,560 | py | Python | QuillSourceProcessor.py | Sturtuk/IND_langTras | 938671f65cdc02004c4bcf934e7085e1e0e13f72 | [
"BSD-3-Clause"
] | 78 | 2016-07-16T18:39:46.000Z | 2021-07-31T06:32:17.000Z | QuillSourceProcessor.py | ammerender/Quillpad-Server | 938671f65cdc02004c4bcf934e7085e1e0e13f72 | [
"BSD-3-Clause"
] | 11 | 2016-07-29T10:29:14.000Z | 2019-11-26T10:08:20.000Z | QuillSourceProcessor.py | ammerender/Quillpad-Server | 938671f65cdc02004c4bcf934e7085e1e0e13f72 | [
"BSD-3-Clause"
] | 44 | 2016-07-16T10:03:49.000Z | 2020-03-13T06:14:53.000Z | # -*- coding: utf-8 -*-
# @Date : Jul 13, 2016
# @Author : Ram Prakash, Sharath Puranik
# @Version : 1
import QuillLanguage as qlang
import QuillEngXlit as xlit
import re
import const
import primaryHelper
class QuillSourceProcessor(object):
def __init__(self):
useCCart=True
ben... | 41.014085 | 254 | 0.57706 | 1,172 | 14,560 | 7.118601 | 0.22099 | 0.03452 | 0.053937 | 0.080307 | 0.128491 | 0.107635 | 0.088218 | 0.075752 | 0.046027 | 0.036438 | 0 | 0.005024 | 0.316484 | 14,560 | 354 | 255 | 41.129944 | 0.8333 | 0.098764 | 0 | 0.223938 | 0 | 0.003861 | 0.16171 | 0.078227 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.019305 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
623b06fcbf9cf128fe5da03335e677117d93ad78 | 2,160 | py | Python | services/catalog/tests/unit/with_dbs/test_entrypoint_dags.py | KZzizzle/osparc-simcore | 981bc8d193f3f5d507e3225f857e0308c339e163 | [
"MIT"
] | null | null | null | services/catalog/tests/unit/with_dbs/test_entrypoint_dags.py | KZzizzle/osparc-simcore | 981bc8d193f3f5d507e3225f857e0308c339e163 | [
"MIT"
] | null | null | null | services/catalog/tests/unit/with_dbs/test_entrypoint_dags.py | KZzizzle/osparc-simcore | 981bc8d193f3f5d507e3225f857e0308c339e163 | [
"MIT"
] | null | null | null | # pylint:disable=unused-variable
# pylint:disable=unused-argument
# pylint:disable=redefined-outer-name
from typing import Dict, List
import pytest
from starlette.testclient import TestClient
from simcore_service_catalog.__version__ import api_version
from simcore_service_catalog.models.schemas.meta import Meta
cor... | 28.421053 | 63 | 0.710648 | 289 | 2,160 | 5.148789 | 0.318339 | 0.112903 | 0.107527 | 0.129032 | 0.447581 | 0.418011 | 0.418011 | 0.333333 | 0.237903 | 0.237903 | 0 | 0.020717 | 0.173148 | 2,160 | 75 | 64 | 28.8 | 0.81243 | 0.129167 | 0 | 0.288889 | 0 | 0 | 0.110219 | 0.012306 | 0 | 0 | 0 | 0.013333 | 0.377778 | 1 | 0.088889 | false | 0 | 0.111111 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
623e899eb406b35dd3ad380549859056d0f93b9f | 4,850 | py | Python | tests/examples/rdf/test_events_listing_rdf.py | bloomberg/pycsvw | 02cff71c8a74171b88ebb9514c0202da60cdc42a | [
"Apache-2.0"
] | 27 | 2017-08-09T20:06:02.000Z | 2021-11-09T05:52:14.000Z | tests/examples/rdf/test_events_listing_rdf.py | bloomberg/pycsvw | 02cff71c8a74171b88ebb9514c0202da60cdc42a | [
"Apache-2.0"
] | 4 | 2017-09-06T14:37:50.000Z | 2021-01-04T14:42:36.000Z | tests/examples/rdf/test_events_listing_rdf.py | bloomberg/pycsvw | 02cff71c8a74171b88ebb9514c0202da60cdc42a | [
"Apache-2.0"
] | 10 | 2017-08-24T19:42:03.000Z | 2021-11-09T05:52:07.000Z | # Copyright 2017 Bloomberg Finance L.P.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writ... | 47.087379 | 103 | 0.661237 | 790 | 4,850 | 4.012658 | 0.212658 | 0.042587 | 0.024606 | 0.022082 | 0.366877 | 0.329653 | 0.282019 | 0.188959 | 0.152997 | 0.152997 | 0 | 0.021987 | 0.202887 | 4,850 | 102 | 104 | 47.54902 | 0.797982 | 0.162474 | 0 | 0.112676 | 0 | 0 | 0.195448 | 0.019792 | 0 | 0 | 0 | 0 | 0.450704 | 1 | 0.014085 | false | 0 | 0.056338 | 0 | 0.070423 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
623ebb764b8e0ec178355345c5b4a1c7414d00dc | 3,436 | py | Python | websauna/system/devop/scripts/createuser.py | stevepiercy/websauna | 2886b86f7920d75900c634958779d61aa73f011b | [
"CNRI-Python"
] | null | null | null | websauna/system/devop/scripts/createuser.py | stevepiercy/websauna | 2886b86f7920d75900c634958779d61aa73f011b | [
"CNRI-Python"
] | null | null | null | websauna/system/devop/scripts/createuser.py | stevepiercy/websauna | 2886b86f7920d75900c634958779d61aa73f011b | [
"CNRI-Python"
] | null | null | null | """ws-create-user script.
Create a new site user from command line.
"""
# Standard Library
import getpass
import os
import sys
import typing as t
# Websauna
from websauna.system.devop.cmdline import init_websauna
from websauna.system.devop.scripts import feedback_and_exit
from websauna.system.devop.scripts import get... | 29.878261 | 96 | 0.676077 | 467 | 3,436 | 4.852248 | 0.297645 | 0.047661 | 0.063548 | 0.048544 | 0.155781 | 0.115181 | 0.083407 | 0.083407 | 0.033539 | 0 | 0 | 0.003337 | 0.215076 | 3,436 | 114 | 97 | 30.140351 | 0.836856 | 0.204598 | 0 | 0.028986 | 0 | 0.014493 | 0.098868 | 0.009057 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.173913 | 0.188406 | 0 | 0.26087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6241881ba6a33ef6568848ed2feaa946903e52cb | 538 | py | Python | exercises/en/solution_01_32.py | betatim/MCL-DSCI-011-programming-in-python | b51f43a6bb1bedf0db028613d48d6566309ec44a | [
"MIT"
] | null | null | null | exercises/en/solution_01_32.py | betatim/MCL-DSCI-011-programming-in-python | b51f43a6bb1bedf0db028613d48d6566309ec44a | [
"MIT"
] | null | null | null | exercises/en/solution_01_32.py | betatim/MCL-DSCI-011-programming-in-python | b51f43a6bb1bedf0db028613d48d6566309ec44a | [
"MIT"
] | null | null | null | import pandas as pd
# Load in the csv named "position_frequencies.csv" you made in exercise 24
# Save it as position_freq
position_freq = pd.read_csv('data/position_freq_df.csv', index_col=0)
position_freq
# Use plot.bar() with position_freq
# Assign a color as Teal and set opacity to 0.5
# Don't forget to add ... | 31.647059 | 75 | 0.641264 | 80 | 538 | 4.175 | 0.575 | 0.215569 | 0.125749 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 0.284387 | 538 | 16 | 76 | 33.625 | 0.849351 | 0.442379 | 0 | 0 | 0 | 0 | 0.176871 | 0.085034 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
62433c39aae5258b1c2f30c6a554b47953517dd9 | 1,572 | py | Python | saleor/product/migrations/0065_auto_20180619_2113.py | wahello/sminor | 24ffcafedfd0c0eff8db4a53e2f1f5f6ff3ebfc9 | [
"BSD-3-Clause"
] | null | null | null | saleor/product/migrations/0065_auto_20180619_2113.py | wahello/sminor | 24ffcafedfd0c0eff8db4a53e2f1f5f6ff3ebfc9 | [
"BSD-3-Clause"
] | null | null | null | saleor/product/migrations/0065_auto_20180619_2113.py | wahello/sminor | 24ffcafedfd0c0eff8db4a53e2f1f5f6ff3ebfc9 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 2.0.3 on 2018-06-19 21:13
from django.db import migrations, models
import django.db.models.manager
import django_prices.models
class Migration(migrations.Migration):
dependencies = [
('product', '0064_productvariant_handle_stock'),
]
operations = [
migrations.Alter... | 32.081633 | 122 | 0.594784 | 156 | 1,572 | 5.833333 | 0.378205 | 0.06044 | 0.079121 | 0.065934 | 0.60989 | 0.60989 | 0.386813 | 0.386813 | 0.347253 | 0.347253 | 0 | 0.035842 | 0.290076 | 1,572 | 48 | 123 | 32.75 | 0.77957 | 0.028626 | 0 | 0.52381 | 1 | 0 | 0.102951 | 0.020984 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
62435c81b13659f4f289fb470c545e545f3127ad | 2,514 | py | Python | plugins/meta_plugin.py | cybergruppe/cyberbot | 59059b272dd8b5ffc585863a0fa92440159b1e06 | [
"MIT"
] | 10 | 2020-09-23T13:38:35.000Z | 2021-09-15T18:53:21.000Z | plugins/meta_plugin.py | cybergruppe/cyberbot | 59059b272dd8b5ffc585863a0fa92440159b1e06 | [
"MIT"
] | 17 | 2020-10-25T14:14:11.000Z | 2021-04-04T02:01:24.000Z | plugins/meta_plugin.py | cybergruppe/cyberbot | 59059b272dd8b5ffc585863a0fa92440159b1e06 | [
"MIT"
] | null | null | null | import asyncio
HELP_DESC = ("""
!listplugins\t\t\t-\tlist addable plugins
!addplugin plugin [plugin2 ...]\t-\tadd plugin(s) (--all for all)
!remplugin plugin [plugin2 ...]\t-\tremove plugin(s)
""")
blacklisted = ["help" "meta"]
async def register_to(plugin):
"""
TODO: don't add plugins twice, don't remove m... | 38.090909 | 144 | 0.670247 | 326 | 2,514 | 5.046012 | 0.291411 | 0.060182 | 0.041337 | 0.058359 | 0.255319 | 0.172644 | 0.115502 | 0.115502 | 0.115502 | 0.115502 | 0 | 0.003984 | 0.201273 | 2,514 | 65 | 145 | 38.676923 | 0.815239 | 0.205251 | 0 | 0.058824 | 0 | 0 | 0.175945 | 0.032038 | 0 | 0 | 0 | 0.015385 | 0 | 1 | 0 | false | 0 | 0.029412 | 0 | 0.029412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
624adf653ea9039921f98fbed44a9309cc90fdb5 | 198 | py | Python | src/gunicorn.py | sam-nguyen7/managed-cluster-validating-webhooks | 07b94d76506528ec0e345bc0b85ded550261cd1e | [
"Apache-2.0"
] | null | null | null | src/gunicorn.py | sam-nguyen7/managed-cluster-validating-webhooks | 07b94d76506528ec0e345bc0b85ded550261cd1e | [
"Apache-2.0"
] | null | null | null | src/gunicorn.py | sam-nguyen7/managed-cluster-validating-webhooks | 07b94d76506528ec0e345bc0b85ded550261cd1e | [
"Apache-2.0"
] | null | null | null | # gunicorn config file
access_log_format = '%(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s" "pid=%(p)s"'
raw_env = [
'FLASK_APP=webhook',
]
bind="0.0.0.0:5000"
workers=5
accesslog="-" | 22 | 93 | 0.555556 | 41 | 198 | 2.585366 | 0.682927 | 0.056604 | 0.056604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052326 | 0.131313 | 198 | 9 | 94 | 22 | 0.563953 | 0.10101 | 0 | 0 | 0 | 0.142857 | 0.570621 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
62552829feab777b50d4ae82a3c7e8bef78e3c8e | 5,523 | py | Python | tests/sqlflowdsl/nodes.py | lqkweb/sqlflow | bc2169cf78bb44879f6a7464dca9174fb02a29b8 | [
"Apache-2.0"
] | 152 | 2018-07-27T10:40:16.000Z | 2021-11-18T05:56:06.000Z | tests/testply/nodes.py | angrykitty/sqlflow | a7cb512ad6f5bd7add007e87075e37dcb958be9b | [
"Apache-2.0"
] | 4 | 2018-09-29T16:43:42.000Z | 2020-08-20T08:19:12.000Z | tests/testply/nodes.py | angrykitty/sqlflow | a7cb512ad6f5bd7add007e87075e37dcb958be9b | [
"Apache-2.0"
] | 32 | 2018-09-06T14:55:41.000Z | 2022-01-12T02:26:22.000Z | # coding=utf-8
class NodeType:
select = 'SELECT'
insert = 'INSERT'
delete = 'DELETE'
update = 'UPDATE'
train = 'TRAIN'
register = 'REGISTER'
load = 'LOAD'
save = 'SAVE'
connect = 'CONNECT'
set = 'SET'
alert = 'ALERT'
create_table = 'CREATETABLE'
drop_table = 'DROPTA... | 24.438053 | 80 | 0.642948 | 703 | 5,523 | 4.640114 | 0.125178 | 0.088289 | 0.084304 | 0.053955 | 0.544145 | 0.477928 | 0.3645 | 0.325874 | 0.270693 | 0.270693 | 0 | 0.000495 | 0.268151 | 5,523 | 225 | 81 | 24.546667 | 0.806531 | 0.002173 | 0 | 0.325301 | 0 | 0 | 0.034489 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.174699 | false | 0.018072 | 0 | 0.018072 | 0.512048 | 0.012048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
6260b2e17454d357d8aed7223e192532cfe6e5b4 | 2,755 | py | Python | run.py | Memberships-Affiliate-Management-API/membership_and_affiliate_api | 038cb2d4dfa4a47fb8e31dc9d00cd36dd28867d5 | [
"MIT"
] | 1 | 2021-08-31T15:24:48.000Z | 2021-08-31T15:24:48.000Z | run.py | freelancing-solutions/membership_and_affiliate_api | 038cb2d4dfa4a47fb8e31dc9d00cd36dd28867d5 | [
"MIT"
] | 1 | 2021-10-13T14:11:15.000Z | 2021-10-13T14:11:15.000Z | run.py | Memberships-Affiliate-Management-API/membership_and_affiliate_api | 038cb2d4dfa4a47fb8e31dc9d00cd36dd28867d5 | [
"MIT"
] | 1 | 2021-08-31T15:25:28.000Z | 2021-08-31T15:25:28.000Z | """
**main api run module for memberships and affiliate api **
"""
__developer__ = "mobius-crypt"
__email__ = "mobiusndou@gmail.com"
__twitter__ = "@blueitserver"
__github_repo__ = "https://github.com/freelancing-solutions/memberships-and-affiliate-api"
__github_profile__ = "https://github.com/freelancing-solution... | 31.306818 | 112 | 0.704537 | 376 | 2,755 | 4.976064 | 0.409574 | 0.029931 | 0.052378 | 0.042758 | 0.195617 | 0.127205 | 0.098343 | 0 | 0 | 0 | 0 | 0.011995 | 0.18294 | 2,755 | 87 | 113 | 31.666667 | 0.819191 | 0.239927 | 0 | 0.185185 | 0 | 0 | 0.12884 | 0 | 0 | 0 | 0 | 0.011494 | 0 | 1 | 0.092593 | false | 0.018519 | 0.185185 | 0 | 0.388889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6263882947a7db1bd6010496041e189989bd0624 | 35,167 | py | Python | troposphere_mate/s3.py | MacHu-GWU/troposphere_mate-project | 426721170a46f0c6cdf4ca965efffdfdd8654189 | [
"MIT"
] | 10 | 2019-07-08T14:52:16.000Z | 2021-10-15T22:18:22.000Z | troposphere_mate/s3.py | MacHu-GWU/troposphere_mate-project | 426721170a46f0c6cdf4ca965efffdfdd8654189 | [
"MIT"
] | 1 | 2019-07-08T00:36:50.000Z | 2019-07-08T00:36:50.000Z | troposphere_mate/s3.py | MacHu-GWU/troposphere_mate-project | 426721170a46f0c6cdf4ca965efffdfdd8654189 | [
"MIT"
] | 2 | 2020-03-22T14:44:54.000Z | 2020-08-05T02:08:01.000Z | # -*- coding: utf-8 -*-
"""
This code is auto generated from troposphere_mate.code_generator.__init__.py scripts.
"""
import sys
if sys.version_info.major >= 3 and sys.version_info.minor >= 5: # pragma: no cover
from typing import Union, List, Any
import troposphere.s3
from troposphere.s3 import (
AbortInc... | 39.074444 | 111 | 0.622771 | 2,536 | 35,167 | 8.365536 | 0.070584 | 0.067877 | 0.062691 | 0.070469 | 0.429319 | 0.339053 | 0.291445 | 0.286873 | 0.255621 | 0.248551 | 0 | 0.002525 | 0.301675 | 35,167 | 899 | 112 | 39.117909 | 0.861349 | 0.117468 | 0 | 0.521465 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.008838 | 0 | 0.130051 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
62648b74fc19c5fd2d8c5f56f724bd50fc32aad9 | 1,327 | py | Python | test/test_contact_fields.py | nicholas-y/python_selenium | 84c3344cbed9990903028d9a99c03ee6ffb4aa55 | [
"Apache-2.0"
] | null | null | null | test/test_contact_fields.py | nicholas-y/python_selenium | 84c3344cbed9990903028d9a99c03ee6ffb4aa55 | [
"Apache-2.0"
] | null | null | null | test/test_contact_fields.py | nicholas-y/python_selenium | 84c3344cbed9990903028d9a99c03ee6ffb4aa55 | [
"Apache-2.0"
] | null | null | null | from model.contact import Contact
import random
import re
def test_phone_on_home_page (app):
contacts_list = app.contact.get_contact_list()
index = random.randrange(len(contacts_list))
contact_from_home_page = contacts_list[index]
contact_from_edit_page = app.contact.get_contact_info_from_edit_page(ind... | 45.758621 | 131 | 0.710625 | 180 | 1,327 | 4.833333 | 0.277778 | 0.151724 | 0.096552 | 0.131034 | 0.382759 | 0.296552 | 0.232184 | 0.181609 | 0.105747 | 0.105747 | 0 | 0.001878 | 0.197438 | 1,327 | 28 | 132 | 47.392857 | 0.815023 | 0 | 0 | 0.086957 | 0 | 0 | 0.007536 | 0 | 0 | 0 | 0 | 0 | 0.217391 | 1 | 0.173913 | false | 0 | 0.130435 | 0.130435 | 0.434783 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
6265013b69717b53bdb07b5cef68d1437252beb7 | 836 | py | Python | cloudy-crocodiles/django/djangocities/cities/migrations/0001_initial.py | patryk-tech/summer-code-jam-2020 | 361fecf3a0f72a92d26d934cbda880cb44058e7b | [
"MIT"
] | 40 | 2020-08-02T07:38:22.000Z | 2021-07-26T01:46:50.000Z | cloudy-crocodiles/django/djangocities/cities/migrations/0001_initial.py | patryk-tech/summer-code-jam-2020 | 361fecf3a0f72a92d26d934cbda880cb44058e7b | [
"MIT"
] | 134 | 2020-07-31T12:15:45.000Z | 2020-12-13T04:42:19.000Z | cloudy-crocodiles/django/djangocities/cities/migrations/0001_initial.py | patryk-tech/summer-code-jam-2020 | 361fecf3a0f72a92d26d934cbda880cb44058e7b | [
"MIT"
] | 101 | 2020-07-31T12:00:47.000Z | 2021-11-01T09:06:58.000Z | # Generated by Django 3.1 on 2020-08-08 16:19
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = []
operations = [
migrations.CreateModel(
name="City",
fields=[
(
"id",
... | 26.125 | 71 | 0.448565 | 66 | 836 | 5.575758 | 0.69697 | 0.059783 | 0.097826 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040773 | 0.442584 | 836 | 31 | 72 | 26.967742 | 0.748927 | 0.051435 | 0 | 0.125 | 1 | 0 | 0.06574 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
626b3711737587c073c5839031ab34af87426d67 | 855 | py | Python | vsts_accounts/models/vss_json_collection_wrapper.py | kuvinodms/microsoft-pycon-demo | a4e0426217f0e6a1f0a636f1b46b41a530d44b13 | [
"MIT"
] | null | null | null | vsts_accounts/models/vss_json_collection_wrapper.py | kuvinodms/microsoft-pycon-demo | a4e0426217f0e6a1f0a636f1b46b41a530d44b13 | [
"MIT"
] | null | null | null | vsts_accounts/models/vss_json_collection_wrapper.py | kuvinodms/microsoft-pycon-demo | a4e0426217f0e6a1f0a636f1b46b41a530d44b13 | [
"MIT"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------... | 30.535714 | 76 | 0.554386 | 79 | 855 | 5.822785 | 0.620253 | 0.008696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007062 | 0.17193 | 855 | 27 | 77 | 31.666667 | 0.642655 | 0.465497 | 0 | 0 | 1 | 0 | 0.094118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.