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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
343c7484ce68aacec00c0e98de39e40a4da96dba | 481 | py | Python | profiles/migrations/New folder/0035_auto_20201028_0913.py | Rxavio/link | a0aa34b89a769cfaa20a92a04980e142e42eaa10 | [
"MIT"
] | null | null | null | profiles/migrations/New folder/0035_auto_20201028_0913.py | Rxavio/link | a0aa34b89a769cfaa20a92a04980e142e42eaa10 | [
"MIT"
] | null | null | null | profiles/migrations/New folder/0035_auto_20201028_0913.py | Rxavio/link | a0aa34b89a769cfaa20a92a04980e142e42eaa10 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.3 on 2020-10-28 07:13
from django.db import migrations, models
import profiles.models
class Migration(migrations.Migration):
dependencies = [
('profiles', '0034_auto_20201028_0358'),
]
operations = [
migrations.AlterField(
model_name='profile',
... | 24.05 | 121 | 0.656965 | 54 | 481 | 5.703704 | 0.685185 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084469 | 0.237006 | 481 | 19 | 122 | 25.315789 | 0.754768 | 0.093555 | 0 | 0 | 1 | 0 | 0.099078 | 0.052995 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
343d993d39584578a0fe69fd9a121bcd7dfe84e3 | 2,218 | py | Python | testHaarCascade.py | AriRodriguezCruz/mcfgpr | c6f83f8e68bbab0054a7ea337feab276fc0790fc | [
"MIT"
] | null | null | null | testHaarCascade.py | AriRodriguezCruz/mcfgpr | c6f83f8e68bbab0054a7ea337feab276fc0790fc | [
"MIT"
] | 12 | 2020-06-05T22:56:39.000Z | 2022-02-10T10:35:13.000Z | testHaarCascade.py | AriRodriguezCruz/mcfgpr | c6f83f8e68bbab0054a7ea337feab276fc0790fc | [
"MIT"
] | 1 | 2019-10-06T23:40:45.000Z | 2019-10-06T23:40:45.000Z | # -*- coding: utf-8 -*-
"""
Basic test of our ability to do a Haar Cascade
"""
import cv2
haarFaceCascade = cv2.CascadeClassifier('haarcascades/haarcascade_frontalface_default.xml')
WINDOW_NAME = "preview"
def detect(img, cascade, minimumFeatureSize=(20,20)):
if cascade.empty():
raise(Excepti... | 38.912281 | 174 | 0.658702 | 270 | 2,218 | 5.344444 | 0.525926 | 0.02772 | 0.008316 | 0.011088 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029121 | 0.225879 | 2,218 | 56 | 175 | 39.607143 | 0.811299 | 0.233544 | 0 | 0 | 0 | 0 | 0.119289 | 0.030457 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025 | null | null | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
343ddc471a9e0c85beb42fddfcc4ec4ec8b9ff02 | 460 | py | Python | 2-aiohttp/aiohttp_server/app/web/config.py | rcmgn/kts-school-backend | 8a895043b7f0156ec49554504198b631df41d2cd | [
"MIT"
] | 9 | 2021-02-04T07:00:59.000Z | 2022-03-21T06:28:27.000Z | 2-aiohttp/aiohttp_server/app/web/config.py | rcmgn/kts-school-backend | 8a895043b7f0156ec49554504198b631df41d2cd | [
"MIT"
] | null | null | null | 2-aiohttp/aiohttp_server/app/web/config.py | rcmgn/kts-school-backend | 8a895043b7f0156ec49554504198b631df41d2cd | [
"MIT"
] | 4 | 2021-10-20T18:44:22.000Z | 2022-02-16T19:11:49.000Z | import typing
from dataclasses import dataclass
import yaml
if typing.TYPE_CHECKING:
from app.web.app import Application
@dataclass
class Config:
username: str
password: str
def setup_config(app: "Application"):
with open("config/config.yaml", "r") as f:
raw_config = yaml.safe_load(f)
... | 19.166667 | 55 | 0.684783 | 57 | 460 | 5.421053 | 0.491228 | 0.087379 | 0.12945 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202174 | 460 | 23 | 56 | 20 | 0.841962 | 0 | 0 | 0 | 0 | 0 | 0.147826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.125 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
343e7855ff66ae98c550001e1f51f93c67e88f74 | 2,310 | py | Python | ctre/trajectorypoint.py | Ninjakow/robotpy-ctre | 58102e99473ada67e0e039c8414f8339f24a306a | [
"Apache-2.0"
] | null | null | null | ctre/trajectorypoint.py | Ninjakow/robotpy-ctre | 58102e99473ada67e0e039c8414f8339f24a306a | [
"Apache-2.0"
] | null | null | null | ctre/trajectorypoint.py | Ninjakow/robotpy-ctre | 58102e99473ada67e0e039c8414f8339f24a306a | [
"Apache-2.0"
] | null | null | null | # validated: 2018-03-01 DS b3d643236ddc libraries/driver/include/ctre/phoenix/Motion/TrajectoryPoint.h
from collections import namedtuple
__all__ = ["TrajectoryPoint"]
#: Motion Profile Trajectory Point for use with pushMotionProfileTrajectory
TrajectoryPoint = namedtuple(
"TrajectoryPoint",
[
"posit... | 39.827586 | 102 | 0.726407 | 299 | 2,310 | 5.491639 | 0.48495 | 0.027406 | 0.017052 | 0.017052 | 0.062119 | 0.062119 | 0.062119 | 0 | 0 | 0 | 0 | 0.012596 | 0.209524 | 2,310 | 57 | 103 | 40.526316 | 0.886637 | 0.075325 | 0 | 0.098039 | 0 | 0 | 0.740741 | 0.017815 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.019608 | 0 | 0.019608 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
343ec72067054f7ca0213201a04bc74037840549 | 649 | py | Python | source-code-from-author-book/Listings-for-Second-Edition/listing_5_8.py | robrac/algorithms-exercises-with-python | 5780171517eacc1c7133fdc32cf079623cd14cf9 | [
"MIT"
] | null | null | null | source-code-from-author-book/Listings-for-Second-Edition/listing_5_8.py | robrac/algorithms-exercises-with-python | 5780171517eacc1c7133fdc32cf079623cd14cf9 | [
"MIT"
] | null | null | null | source-code-from-author-book/Listings-for-Second-Edition/listing_5_8.py | robrac/algorithms-exercises-with-python | 5780171517eacc1c7133fdc32cf079623cd14cf9 | [
"MIT"
] | null | null | null | label=hashtablecodesearch,index={get,\_\_getitem\_\_,\_\_setitem\_\_},float=htb]
def get(self,key):
startslot = self.hashfunction(key,len(self.slots))
data = None
stop = False
found = False
position = startslot
while self.slots[position] != None and \
not found and not stop:
if... | 24.961538 | 80 | 0.634823 | 81 | 649 | 4.888889 | 0.37037 | 0.090909 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24037 | 649 | 25 | 81 | 25.96 | 0.803245 | 0 | 0 | 0 | 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 |
344016cd4f5f027ee2cd01822aab95d76285474c | 636 | py | Python | core/src/test/python/exception_test.py | 11bluetree/weblogic-deploy-tooling | 9f1f5c9a2bf005b8fc01caf951c2717a6cccb5cf | [
"Apache-2.0",
"MIT"
] | 1 | 2020-05-12T05:34:25.000Z | 2020-05-12T05:34:25.000Z | core/src/test/python/exception_test.py | 11bluetree/weblogic-deploy-tooling | 9f1f5c9a2bf005b8fc01caf951c2717a6cccb5cf | [
"Apache-2.0",
"MIT"
] | null | null | null | core/src/test/python/exception_test.py | 11bluetree/weblogic-deploy-tooling | 9f1f5c9a2bf005b8fc01caf951c2717a6cccb5cf | [
"Apache-2.0",
"MIT"
] | null | null | null | """
Copyright (c) 2017, 2019, Oracle Corporation and/or its affiliates. All rights reserved.
Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
"""
import unittest
from wlsdeploy.exception import exception_helper
from wlsdeploy.exception.expection_types import Excep... | 35.333333 | 102 | 0.715409 | 70 | 636 | 6.428571 | 0.771429 | 0.057778 | 0.097778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029586 | 0.20283 | 636 | 17 | 103 | 37.411765 | 0.857988 | 0.301887 | 0 | 0 | 0 | 0 | 0.085057 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
34435f467a6b2062da6400ddf99b41b10914536b | 2,280 | py | Python | setup.py | yetone/collipa | 20a23a412585a2f66e2cdc7a2959bd7d3d933e6c | [
"WTFPL"
] | 99 | 2015-01-03T09:28:54.000Z | 2021-10-11T06:55:46.000Z | setup.py | yetone/collipa | 20a23a412585a2f66e2cdc7a2959bd7d3d933e6c | [
"WTFPL"
] | 5 | 2015-11-30T03:29:24.000Z | 2017-11-12T16:21:23.000Z | setup.py | yetone/collipa | 20a23a412585a2f66e2cdc7a2959bd7d3d933e6c | [
"WTFPL"
] | 43 | 2015-02-04T10:56:27.000Z | 2021-04-28T03:41:31.000Z | # coding: utf-8
import re
import sys
import getopt
import MySQLdb
from pony.orm import db_session
from collipa import config
@db_session
def init_node():
from collipa.models import Node
if not Node.get(id=1):
Node(name=u'根节点', urlname='root',
description=u'一切的根源').save()
def convert(na... | 25.909091 | 97 | 0.517105 | 285 | 2,280 | 3.985965 | 0.357895 | 0.084507 | 0.03169 | 0.040493 | 0.183099 | 0.174296 | 0.174296 | 0.174296 | 0.114437 | 0.114437 | 0 | 0.008802 | 0.352193 | 2,280 | 87 | 98 | 26.206897 | 0.760325 | 0.01886 | 0 | 0.2 | 0 | 0 | 0.119122 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061538 | false | 0.061538 | 0.123077 | 0 | 0.2 | 0.092308 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
34462301bd23b141e4d8025e5ff2e8121413f0ee | 11,813 | py | Python | rwd_nhd/NHD_Rapid_Watershed_Delineation.py | WikiWatershed/RapidWatersheDelineation | b68e13be2db2b44b90b0d35de5dd3e8aa931cb91 | [
"Apache-2.0"
] | 8 | 2017-02-17T19:45:12.000Z | 2021-09-29T04:23:02.000Z | rwd_nhd/NHD_Rapid_Watershed_Delineation.py | WikiWatershed/RapidWatersheDelineation | b68e13be2db2b44b90b0d35de5dd3e8aa931cb91 | [
"Apache-2.0"
] | 69 | 2015-12-10T15:22:58.000Z | 2018-03-12T14:11:29.000Z | rwd_nhd/NHD_Rapid_Watershed_Delineation.py | WikiWatershed/RapidWatersheDelineation | b68e13be2db2b44b90b0d35de5dd3e8aa931cb91 | [
"Apache-2.0"
] | 12 | 2015-11-20T16:28:47.000Z | 2021-09-17T15:10:54.000Z | import sys
import os
import time
import subprocess
import gdal
import fiona
from NHD_RWD_Utilities import generate_moveoutletstostream_command, create_shape_from_point, \
extract_value_from_raster_point, extract_value_from_raster, get_gauge_watershed_command, get_watershed_attributes, \
purge, reproject_point... | 39.774411 | 246 | 0.638195 | 1,571 | 11,813 | 4.586251 | 0.237428 | 0.021096 | 0.019431 | 0.015545 | 0.30923 | 0.249133 | 0.226371 | 0.186398 | 0.181679 | 0.181679 | 0 | 0.012825 | 0.267333 | 11,813 | 296 | 247 | 39.908784 | 0.819642 | 0.231948 | 0 | 0.260465 | 1 | 0 | 0.169215 | 0.031361 | 0.004651 | 0 | 0 | 0 | 0 | 1 | 0.004651 | false | 0 | 0.032558 | 0 | 0.037209 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
34462aa288502203c4c3ae0fc67e7790eb019bc4 | 744 | py | Python | konfi/__init__.py | gieseladev/konfi | f6130a77a53ae912614b1be1159118a359cceecf | [
"MIT"
] | 1 | 2019-06-29T18:25:58.000Z | 2019-06-29T18:25:58.000Z | konfi/__init__.py | gieseladev/konfi | f6130a77a53ae912614b1be1159118a359cceecf | [
"MIT"
] | 4 | 2020-03-24T17:16:00.000Z | 2021-06-01T23:59:16.000Z | konfi/__init__.py | gieseladev/konfi | f6130a77a53ae912614b1be1159118a359cceecf | [
"MIT"
] | null | null | null | """konfi is a config parser."""
from .converter import ComplexConverterABC, ConversionError, ConverterABC, \
ConverterFunc, ConverterType, convert_value, has_converter, \
register_converter, unregister_converter
from .field import Field, MISSING, NoDefaultValue, UnboundField, ValueFactory, field
from .loader i... | 35.428571 | 106 | 0.803763 | 88 | 744 | 6.522727 | 0.579545 | 0.067944 | 0.055749 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00458 | 0.119624 | 744 | 20 | 107 | 37.2 | 0.871756 | 0.068548 | 0 | 0 | 0 | 0 | 0.024745 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3446750af7b2cd40813517475174b4573926772e | 5,047 | py | Python | src/setFunctions.py | hpsim/OBR | 1b71a0cc155e47930008a4293846b23d6234a221 | [
"BSD-3-Clause"
] | null | null | null | src/setFunctions.py | hpsim/OBR | 1b71a0cc155e47930008a4293846b23d6234a221 | [
"BSD-3-Clause"
] | 6 | 2021-07-21T08:12:02.000Z | 2021-12-14T14:58:10.000Z | src/setFunctions.py | hpsim/OBR | 1b71a0cc155e47930008a4293846b23d6234a221 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
from subprocess import check_output
def sed(fn, in_reg_exp, out_reg_exp, inline=True):
""" wrapper around sed """
ret = check_output(["sed", "-i", "s/" + in_reg_exp + "/" + out_reg_exp + "/g", fn])
def clean_block_from_file(fn, block_starts, block_end, replace):
""" cleans everyth... | 27.134409 | 87 | 0.601545 | 629 | 5,047 | 4.642289 | 0.246423 | 0.018493 | 0.026712 | 0.017808 | 0.305137 | 0.181164 | 0.122945 | 0.122945 | 0.067808 | 0.047945 | 0 | 0.008318 | 0.237765 | 5,047 | 185 | 88 | 27.281081 | 0.750715 | 0.037052 | 0 | 0.14876 | 0 | 0 | 0.124144 | 0 | 0 | 0 | 0 | 0.005405 | 0 | 1 | 0.214876 | false | 0 | 0.033058 | 0.024793 | 0.355372 | 0.033058 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
344944282438e5559d98bd1db54a6b5ea4992da9 | 665 | py | Python | renamer/renamerView.py | UnzaiRyota/pairpro | 77b092b2017d2409710c78e3807f4f80f8243b25 | [
"MIT"
] | null | null | null | renamer/renamerView.py | UnzaiRyota/pairpro | 77b092b2017d2409710c78e3807f4f80f8243b25 | [
"MIT"
] | null | null | null | renamer/renamerView.py | UnzaiRyota/pairpro | 77b092b2017d2409710c78e3807f4f80f8243b25 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
from PySide2.QtWidgets import *
from PySide2.QtGui import *
from PySide2.QtCore import *
from PySide2.QtUiTools import *
absPath = os.path.dirname(__file__)
uiPath = os.path.join(absPath, "view.ui")
uiclass, baseclass = loadUiType(uiPath)
class uiClass(baseclass, uiclass):
def __... | 28.913043 | 62 | 0.687218 | 81 | 665 | 5.395062 | 0.419753 | 0.100687 | 0.116705 | 0.077803 | 0.292906 | 0.292906 | 0.16476 | 0.16476 | 0 | 0 | 0 | 0.009074 | 0.171429 | 665 | 22 | 63 | 30.227273 | 0.784029 | 0.031579 | 0 | 0.117647 | 0 | 0 | 0.010903 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.294118 | 0 | 0.529412 | 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 |
34519575922d882776ca28e08c6eb31a3dbb5faa | 1,234 | py | Python | rvpy/__init__.py | TimothyKBook/distributions | 301fd61df894d4b300176e287bf9e725378c38eb | [
"MIT"
] | 1 | 2018-06-27T17:22:56.000Z | 2018-06-27T17:22:56.000Z | rvpy/__init__.py | TimothyKBook/distributions | 301fd61df894d4b300176e287bf9e725378c38eb | [
"MIT"
] | null | null | null | rvpy/__init__.py | TimothyKBook/distributions | 301fd61df894d4b300176e287bf9e725378c38eb | [
"MIT"
] | 1 | 2018-06-12T13:38:25.000Z | 2018-06-12T13:38:25.000Z | from .distribution import Distribution
from .normal import Normal, StandardNormal, LogNormal
from .binomial import Bernoulli, Binomial
from .cuniform import CUniform
from .gamma import Gamma, Exponential, ChiSq
from .beta import Beta
from .t import T
from .f import F
from .cauchy import Cauchy, StandardCauchy
from .poi... | 25.183673 | 53 | 0.708266 | 134 | 1,234 | 6.462687 | 0.320896 | 0.046189 | 0.066975 | 0.030023 | 0.036952 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001974 | 0.179092 | 1,234 | 48 | 54 | 25.708333 | 0.852912 | 0 | 0 | 0 | 0 | 0 | 0.198541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.477273 | 0 | 0.477273 | 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 |
345bc01c3169f494798179ad138dc446a55bae5d | 1,293 | py | Python | testes/teste_Conexao_Oracle.py | almirjgomes/DE_DataBaseConnect | 2a369d77498c4c6c42b7447871472e5c4320b2ff | [
"MIT"
] | null | null | null | testes/teste_Conexao_Oracle.py | almirjgomes/DE_DataBaseConnect | 2a369d77498c4c6c42b7447871472e5c4320b2ff | [
"MIT"
] | null | null | null | testes/teste_Conexao_Oracle.py | almirjgomes/DE_DataBaseConnect | 2a369d77498c4c6c42b7447871472e5c4320b2ff | [
"MIT"
] | null | null | null | import pandas as pd
import DE_DataBase as dtb
db = dtb.DATABASE()
def teste_ORACLE():
try:
monterey = {"database": "Oracle",
"name_conection": "MONTEREY",
"path_library": None,
"instance": None,
"host": "brlsplporc-scan.DASA.NET",... | 31.536585 | 54 | 0.434648 | 105 | 1,293 | 5.171429 | 0.542857 | 0.040516 | 0.066298 | 0.099448 | 0.209945 | 0.209945 | 0 | 0 | 0 | 0 | 0 | 0.02514 | 0.446249 | 1,293 | 41 | 55 | 31.536585 | 0.73324 | 0 | 0 | 0.157895 | 0 | 0 | 0.265842 | 0.034776 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0.052632 | 0.052632 | 0 | 0.078947 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
345f021db3520966e3e0e67869a8b8732e41ab46 | 5,506 | py | Python | source/gui/test/test_1dvar.py | bucricket/projectMAScorrection | 89489026c8e247ec7c364e537798e766331fe569 | [
"BSD-3-Clause"
] | null | null | null | source/gui/test/test_1dvar.py | bucricket/projectMAScorrection | 89489026c8e247ec7c364e537798e766331fe569 | [
"BSD-3-Clause"
] | 1 | 2022-03-12T12:19:59.000Z | 2022-03-12T12:19:59.000Z | source/gui/test/test_1dvar.py | bucricket/projectMAScorrection | 89489026c8e247ec7c364e537798e766331fe569 | [
"BSD-3-Clause"
] | null | null | null | '''
Created on May 7, 2014
@author: pascale
'''
import unittest
import rmodel
import logging
import rttovgui_unittest_class
import r1Dvar
class Test(rttovgui_unittest_class.RttovGuiUnitTest):
def setUp(self):
level_logging = logging.DEBUG
self.p = rmodel.project.Project()
logging.ba... | 36.95302 | 79 | 0.563567 | 614 | 5,506 | 4.969055 | 0.229642 | 0.058997 | 0.091773 | 0.018027 | 0.297607 | 0.230089 | 0.149459 | 0.134382 | 0.119305 | 0.096362 | 0 | 0.027523 | 0.287323 | 5,506 | 148 | 80 | 37.202703 | 0.75 | 0.038685 | 0 | 0.162393 | 0 | 0 | 0.156578 | 0.056521 | 0 | 0 | 0 | 0.006757 | 0.162393 | 0 | null | null | 0 | 0.042735 | null | null | 0.239316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
346483ae16a3dffe9a87e759f9212fc76a4c64cb | 7,415 | py | Python | tensormonk/activations/activations.py | Tensor46/TensorMONK | 67617d3fdf8fde072ba9cab42de7d67c79b17494 | [
"MIT"
] | 29 | 2018-07-06T23:57:23.000Z | 2022-03-08T20:38:57.000Z | tensormonk/activations/activations.py | sparupat/TensorMONK | 7a2699a28299a89b186e0eb17ed6e9feaea5429e | [
"MIT"
] | 3 | 2018-12-14T22:21:26.000Z | 2020-06-19T02:13:34.000Z | tensormonk/activations/activations.py | sparupat/TensorMONK | 7a2699a28299a89b186e0eb17ed6e9feaea5429e | [
"MIT"
] | 8 | 2018-07-06T23:58:03.000Z | 2021-04-12T01:35:54.000Z | """ TensorMONK :: layers :: Activations """
__all__ = ["Activations"]
import torch
import torch.nn as nn
import torch.nn.functional as F
def maxout(tensor: torch.Tensor) -> torch.Tensor:
if not tensor.size(1) % 2 == 0:
raise ValueError("MaxOut: tensor.size(1) must be divisible by n_splits"
... | 35.995146 | 79 | 0.56062 | 894 | 7,415 | 4.561521 | 0.187919 | 0.058852 | 0.083374 | 0.087543 | 0.371015 | 0.360716 | 0.157921 | 0.136832 | 0.117705 | 0.107406 | 0 | 0.028388 | 0.28739 | 7,415 | 205 | 80 | 36.170732 | 0.743376 | 0.301956 | 0 | 0.086207 | 0 | 0 | 0.077015 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.189655 | false | 0 | 0.034483 | 0.137931 | 0.431034 | 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 |
3472538993cacd7d72141c04a11b156435163e00 | 7,045 | py | Python | app/user/tests/test_user_api.py | ClickTravel-VincentCleaver/recipe-app-api | 09e05c853e8aee14f36a07d1aba6db5f12bc0b7d | [
"MIT"
] | null | null | null | app/user/tests/test_user_api.py | ClickTravel-VincentCleaver/recipe-app-api | 09e05c853e8aee14f36a07d1aba6db5f12bc0b7d | [
"MIT"
] | null | null | null | app/user/tests/test_user_api.py | ClickTravel-VincentCleaver/recipe-app-api | 09e05c853e8aee14f36a07d1aba6db5f12bc0b7d | [
"MIT"
] | null | null | null | from django.test import TestCase
from django.contrib.auth import get_user_model
from django.urls import reverse
from rest_framework.test import APIClient
from rest_framework import status
CREATE_USER_URL = reverse('user:create')
TOKEN_URL = reverse('user:token')
ME_URL = reverse('user:me')
def create_user(**params... | 30.497835 | 77 | 0.5956 | 789 | 7,045 | 5.139417 | 0.153359 | 0.039457 | 0.068064 | 0.078668 | 0.556597 | 0.500863 | 0.489273 | 0.469051 | 0.444883 | 0.429346 | 0 | 0.007329 | 0.264017 | 7,045 | 230 | 78 | 30.630435 | 0.774735 | 0.249965 | 0 | 0.429907 | 0 | 0 | 0.107862 | 0.004067 | 0 | 0 | 0 | 0 | 0.196262 | 1 | 0.130841 | false | 0.149533 | 0.046729 | 0.009346 | 0.205607 | 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 |
3473de4d13de7019e7191e54047adf744ba05d3f | 1,007 | py | Python | engine/admin.py | lordoftheflies/gargantula-scrapersite | 0abcb82bf30540ac5cd57d5ec9178e692a1a2ca6 | [
"Apache-2.0"
] | null | null | null | engine/admin.py | lordoftheflies/gargantula-scrapersite | 0abcb82bf30540ac5cd57d5ec9178e692a1a2ca6 | [
"Apache-2.0"
] | null | null | null | engine/admin.py | lordoftheflies/gargantula-scrapersite | 0abcb82bf30540ac5cd57d5ec9178e692a1a2ca6 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from django.contrib.admin import ModelAdmin
from django.utils.translation import gettext as _
from . import models
# Register your models here.
class ArgumentInline(admin.TabularInline):
model = models.ArgumentModel
verbose_name_plural = _('Parameters')
fk_name = 'process... | 29.617647 | 90 | 0.701092 | 107 | 1,007 | 6.420561 | 0.476636 | 0.069869 | 0.100437 | 0.084425 | 0.390102 | 0.390102 | 0.390102 | 0.390102 | 0.218341 | 0.218341 | 0 | 0.002401 | 0.17279 | 1,007 | 33 | 91 | 30.515152 | 0.822329 | 0.025819 | 0 | 0.32 | 0 | 0 | 0.26047 | 0.037794 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.16 | 0 | 0.84 | 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 |
3474e1c4f2abcd34c9b0152af4561b14a0dc173f | 3,418 | py | Python | old_files/Parsing_justifications_dev_skdclean.py | jmhernan/NIreland_NLP | c360c4978452e80575db2e0eed9ef540ed83b5c6 | [
"MIT"
] | 1 | 2020-05-20T16:42:53.000Z | 2020-05-20T16:42:53.000Z | old_files/Parsing_justifications_dev_skdclean.py | jmhernan/NIreland_NLP | c360c4978452e80575db2e0eed9ef540ed83b5c6 | [
"MIT"
] | 10 | 2020-01-09T18:41:42.000Z | 2020-07-10T18:27:05.000Z | old_files/Parsing_justifications_dev_skdclean.py | jmhernan/NIreland_NLP | c360c4978452e80575db2e0eed9ef540ed83b5c6 | [
"MIT"
] | 1 | 2020-01-07T19:58:32.000Z | 2020-01-07T19:58:32.000Z | ################################################################
#### This is code for using regular expressions to clean / ####
#### parse text from Nvivo .txt into a workable format. ####
#### Thurs Jan 09 ####
#### Jose and Sarah ####
#### environment: ni_nlp ####
#######################... | 36.752688 | 162 | 0.676126 | 522 | 3,418 | 4.279693 | 0.367816 | 0.107431 | 0.040734 | 0.047001 | 0.235452 | 0.215756 | 0.180842 | 0.146822 | 0.097583 | 0.056401 | 0 | 0.026377 | 0.123757 | 3,418 | 92 | 163 | 37.152174 | 0.719199 | 0.522235 | 0 | 0.096774 | 0 | 0 | 0.324227 | 0.108555 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.096774 | 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 |
3476914e2ec1e80f5d5959814ebadb8f70538532 | 2,939 | py | Python | single-use-scripts/generate-mod-eng-prose-genre-labels.py | timgianitsos/english-universal_feature_analysis | dd490789888d6a031bcaf643e82055afe3f1b7f8 | [
"MIT"
] | null | null | null | single-use-scripts/generate-mod-eng-prose-genre-labels.py | timgianitsos/english-universal_feature_analysis | dd490789888d6a031bcaf643e82055afe3f1b7f8 | [
"MIT"
] | null | null | null | single-use-scripts/generate-mod-eng-prose-genre-labels.py | timgianitsos/english-universal_feature_analysis | dd490789888d6a031bcaf643e82055afe3f1b7f8 | [
"MIT"
] | null | null | null | '''
Generate the csv of genre labels for files
'''
import os
from os.path import join, dirname
import csv
def main():
verse_dir = ('english-diachronic-corpus', 'Modern_English', 'Verse_Corpus')
prose_dir = ('english-diachronic-corpus', 'Modern_English', 'Plaintext_prose_corpus')
prose_genre_label_file = (
'englis... | 36.7375 | 107 | 0.68969 | 394 | 2,939 | 4.86802 | 0.307107 | 0.050052 | 0.022941 | 0.04536 | 0.228363 | 0.135558 | 0.056309 | 0.056309 | 0.056309 | 0.056309 | 0 | 0.027659 | 0.126574 | 2,939 | 79 | 108 | 37.202532 | 0.719517 | 0.014291 | 0 | 0.039216 | 1 | 0.019608 | 0.487621 | 0.185684 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019608 | false | 0 | 0.058824 | 0 | 0.078431 | 0.019608 | 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 |
3480af29fef85b7cb2b1f97cc898a44d46c1c6ed | 3,226 | py | Python | moderation_module/guild_logging/guild_logging.py | alentoghostflame/StupidAlentoBot | c024bfb79a9ecb0d9fda5ddc4e361a0cb878baba | [
"MIT"
] | 1 | 2021-12-12T02:50:20.000Z | 2021-12-12T02:50:20.000Z | moderation_module/guild_logging/guild_logging.py | alentoghostflame/StupidAlentoBot | c024bfb79a9ecb0d9fda5ddc4e361a0cb878baba | [
"MIT"
] | 17 | 2020-02-07T23:40:36.000Z | 2020-12-22T16:38:44.000Z | moderation_module/guild_logging/guild_logging.py | alentoghostflame/StupidAlentoBot | c024bfb79a9ecb0d9fda5ddc4e361a0cb878baba | [
"MIT"
] | null | null | null | from moderation_module.guild_logging.commands import guild_logging_control, send_delete_embed, send_edit_embed, \
send_joined_embed, send_remove_embed
from moderation_module.storage import GuildLoggingConfig
from alento_bot import StorageManager
from discord.ext import commands
import moderation_module.text
import ... | 49.630769 | 113 | 0.743955 | 406 | 3,226 | 5.652709 | 0.224138 | 0.169935 | 0.055773 | 0.049673 | 0.42658 | 0.415686 | 0.415686 | 0.353813 | 0.353813 | 0.297168 | 0 | 0.00187 | 0.17111 | 3,226 | 64 | 114 | 50.40625 | 0.856395 | 0.021389 | 0 | 0.2 | 0 | 0 | 0.063074 | 0.013629 | 0 | 0 | 0 | 0.015625 | 0 | 1 | 0.02 | false | 0 | 0.14 | 0 | 0.18 | 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 |
ca9ef7dc60bceaa20430051f30384b1d0f543ab5 | 1,576 | py | Python | deepl/enums.py | sorbatti/deepl.py | 480e671910b0318595f054cd91997e4a7eba4ce0 | [
"MIT"
] | null | null | null | deepl/enums.py | sorbatti/deepl.py | 480e671910b0318595f054cd91997e4a7eba4ce0 | [
"MIT"
] | null | null | null | deepl/enums.py | sorbatti/deepl.py | 480e671910b0318595f054cd91997e4a7eba4ce0 | [
"MIT"
] | null | null | null | from enum import Enum
__all__ = [
'SourceLang',
'TargetLang',
'SplitSentences',
'PreserveFormatting',
'Formality'
]
class SourceLang(Enum):
Bulgarian = 'BG'
Czech = 'CS'
Danish = 'DA'
German = 'DE'
Greek = 'EL'
English = 'EN'
Spanish = 'ES'
Estonian = 'ET'
Finn... | 17.130435 | 31 | 0.537437 | 164 | 1,576 | 5.115854 | 0.469512 | 0.042908 | 0.035757 | 0.047676 | 0.548272 | 0.548272 | 0.548272 | 0.548272 | 0.548272 | 0.548272 | 0 | 0.003738 | 0.321066 | 1,576 | 91 | 32 | 17.318681 | 0.780374 | 0 | 0 | 0.25641 | 0 | 0 | 0.14467 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.012821 | 0 | 0.910256 | 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 |
caa7a5083784ab34e1a3d279be0c3ef0972e176a | 782 | py | Python | nydkcd11/blog/migrations/0019_auto_20170712_2245.py | asi14/nydkc11 | 4c40f7f3d0829ee3659a5edc9a03ffdb47b5bdc4 | [
"MIT"
] | null | null | null | nydkcd11/blog/migrations/0019_auto_20170712_2245.py | asi14/nydkc11 | 4c40f7f3d0829ee3659a5edc9a03ffdb47b5bdc4 | [
"MIT"
] | 9 | 2020-02-11T21:47:24.000Z | 2022-03-11T23:11:44.000Z | nydkcd11/blog/migrations/0019_auto_20170712_2245.py | asi14/nydkc11 | 4c40f7f3d0829ee3659a5edc9a03ffdb47b5bdc4 | [
"MIT"
] | 1 | 2018-04-26T04:37:10.000Z | 2018-04-26T04:37:10.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-07-12 22:45
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('blog', '0018_image_show_home'),
]
operations = [
... | 28.962963 | 128 | 0.632992 | 92 | 782 | 5.217391 | 0.586957 | 0.05 | 0.058333 | 0.091667 | 0.091667 | 0.091667 | 0 | 0 | 0 | 0 | 0 | 0.035294 | 0.23913 | 782 | 26 | 129 | 30.076923 | 0.771429 | 0.086957 | 0 | 0.210526 | 1 | 0 | 0.140647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.315789 | 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 |
caabbda95c732b30933fe6004342c500a3d24f79 | 28,294 | py | Python | chat.py | kato-im/katirc | 6aff4e9b65638a9ef5c9d805c81ab3ac10d59122 | [
"BSD-3-Clause"
] | 1 | 2015-05-04T21:54:24.000Z | 2015-05-04T21:54:24.000Z | chat.py | kato-im/katirc | 6aff4e9b65638a9ef5c9d805c81ab3ac10d59122 | [
"BSD-3-Clause"
] | null | null | null | chat.py | kato-im/katirc | 6aff4e9b65638a9ef5c9d805c81ab3ac10d59122 | [
"BSD-3-Clause"
] | null | null | null | import re
import os
from twisted.internet import defer
from twisted.python.failure import Failure
from kato import KatoHttpClient
from util import *
# characters that are disallowed from the channel name
CHANNEL_NAME_DISALLOWED = re.compile(r"[^a-zA-Z0-9_-]+", re.UNICODE)
# characters that are disallowed from the ni... | 35.279302 | 101 | 0.595144 | 3,364 | 28,294 | 4.870095 | 0.161415 | 0.024843 | 0.011903 | 0.006958 | 0.273271 | 0.242202 | 0.207471 | 0.181347 | 0.175487 | 0.156809 | 0 | 0.008059 | 0.320245 | 28,294 | 801 | 102 | 35.323346 | 0.843758 | 0.41917 | 0 | 0.259146 | 0 | 0 | 0.055327 | 0.002925 | 0 | 0 | 0 | 0.001248 | 0 | 0 | null | null | 0.021341 | 0.021341 | null | null | 0.033537 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cab38281c02c2adae8922eff2825c8abaf5d0742 | 3,463 | py | Python | tests/test_youtube_sm_parser.py | shanedabes/youtube_sm_parser | 642663abb9ee12c8478796b7ed7b9a01210d1fad | [
"Apache-2.0"
] | 2 | 2019-05-26T07:50:35.000Z | 2020-07-14T22:23:22.000Z | tests/test_youtube_sm_parser.py | shanedabes/youtube_sm_parser | 642663abb9ee12c8478796b7ed7b9a01210d1fad | [
"Apache-2.0"
] | 35 | 2019-05-18T02:09:25.000Z | 2019-12-03T20:52:21.000Z | tests/test_youtube_sm_parser.py | shanedabes/youtube_sm_parser | 642663abb9ee12c8478796b7ed7b9a01210d1fad | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for `youtube_sm_parser` package."""
import pytest
import unittest.mock
import deepdiff
import collections
import os
import xmltodict
import json
from youtube_sm_parser import youtube_sm_parser
def rel_fn(fn):
dir_name = os.path.dirname(os.path.realpath(_... | 23.086667 | 75 | 0.6838 | 484 | 3,463 | 4.605372 | 0.247934 | 0.068641 | 0.114401 | 0.032301 | 0.259758 | 0.18035 | 0.152535 | 0.121131 | 0.083445 | 0.048452 | 0 | 0.009113 | 0.176148 | 3,463 | 149 | 76 | 23.241611 | 0.77217 | 0.02339 | 0 | 0.098901 | 0 | 0 | 0.136593 | 0.029333 | 0 | 0 | 0 | 0 | 0.098901 | 1 | 0.21978 | false | 0 | 0.087912 | 0.043956 | 0.417582 | 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 |
cab924c2390777144d7e15740f1dd475585a6616 | 1,640 | py | Python | qpce/router.py | brunorijsman/quantum-path-computation-engine | 021bca03f8555cd9cd0cdbd7d5c6a32050ab6271 | [
"Apache-2.0"
] | null | null | null | qpce/router.py | brunorijsman/quantum-path-computation-engine | 021bca03f8555cd9cd0cdbd7d5c6a32050ab6271 | [
"Apache-2.0"
] | 1 | 2021-06-01T23:56:41.000Z | 2021-06-01T23:56:41.000Z | qpce/router.py | brunorijsman/quantum-path-computation-element | 021bca03f8555cd9cd0cdbd7d5c6a32050ab6271 | [
"Apache-2.0"
] | null | null | null | """Quantum Router."""
import collections
class Router:
# TODO: Remove this when we have more methods
# pylint:disable=too-few-public-methods
"""A quantum router.
A quantum router object represents a quantum router that is part of a quantum network. Quantum
routers are interconnected by quantum li... | 37.272727 | 99 | 0.640244 | 222 | 1,640 | 4.653153 | 0.355856 | 0.075508 | 0.054211 | 0.060987 | 0.180058 | 0.135528 | 0.135528 | 0.135528 | 0.135528 | 0.135528 | 0 | 0.003454 | 0.293902 | 1,640 | 43 | 100 | 38.139535 | 0.888601 | 0.548171 | 0 | 0 | 0 | 0.066667 | 0.130363 | 0 | 0 | 0 | 0 | 0.023256 | 0.066667 | 1 | 0.133333 | false | 0 | 0.066667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cabe0f0cf84d47b8ecf947dd15b2a8055ffc9bf3 | 1,739 | py | Python | NeuralNet/QuadraticApproximator.py | AlexPetrusca/machine-learning | 75456515257236d13905a11fdc39ddaf53d36cf1 | [
"Apache-2.0"
] | null | null | null | NeuralNet/QuadraticApproximator.py | AlexPetrusca/machine-learning | 75456515257236d13905a11fdc39ddaf53d36cf1 | [
"Apache-2.0"
] | null | null | null | NeuralNet/QuadraticApproximator.py | AlexPetrusca/machine-learning | 75456515257236d13905a11fdc39ddaf53d36cf1 | [
"Apache-2.0"
] | null | null | null | from NeuralNet import NeuralNet
import numpy as np
from matplotlib import pyplot as plt
def f(x):
return x**2
net = NeuralNet(2, [80, 40], 1)
net2 = NeuralNet(2, [80], 1)
learnRange = 50
np.random.seed(2)
for i in range(100000):
x = (learnRange * np.random.rand(1) - learnRange/2).squeeze()
y = (learnRan... | 24.842857 | 67 | 0.598045 | 297 | 1,739 | 3.468013 | 0.232323 | 0.019417 | 0.093204 | 0.100971 | 0.739806 | 0.685437 | 0.603884 | 0.359223 | 0.161165 | 0.104854 | 0 | 0.091304 | 0.20644 | 1,739 | 69 | 68 | 25.202899 | 0.655072 | 0.001725 | 0 | 0.222222 | 0 | 0 | 0.009233 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cabe3c8018812823269a1b615a0377d3bad6a150 | 605 | py | Python | backend/ai4all_api/urls.py | kevromster/ai4all | 39da1a95c4e06780f5712bb6e6ecb1f570e5d639 | [
"Apache-2.0"
] | null | null | null | backend/ai4all_api/urls.py | kevromster/ai4all | 39da1a95c4e06780f5712bb6e6ecb1f570e5d639 | [
"Apache-2.0"
] | null | null | null | backend/ai4all_api/urls.py | kevromster/ai4all | 39da1a95c4e06780f5712bb6e6ecb1f570e5d639 | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import url, include
from rest_framework.routers import DefaultRouter
from rest_framework.schemas import get_schema_view
from ai4all_api import views
schema_view = get_schema_view(title='AI4All backend API')
# Create a router and register our viewsets with it.
router = DefaultRouter()
router.reg... | 31.842105 | 70 | 0.781818 | 86 | 605 | 5.395349 | 0.534884 | 0.086207 | 0.073276 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003802 | 0.130579 | 605 | 18 | 71 | 33.611111 | 0.878327 | 0.287603 | 0 | 0 | 0 | 0 | 0.119438 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
cabec1ec8a2f82fe98c3454381d4ee7c360f4366 | 715 | py | Python | anadroid/testing_framework/work/WorkLoad.py | greensoftwarelab/PyAnaDroid | c37a85a2c8e0206895f2e96d28c2baa045f6a211 | [
"MIT"
] | null | null | null | anadroid/testing_framework/work/WorkLoad.py | greensoftwarelab/PyAnaDroid | c37a85a2c8e0206895f2e96d28c2baa045f6a211 | [
"MIT"
] | 2 | 2022-03-31T17:33:48.000Z | 2022-03-31T17:38:22.000Z | anadroid/testing_framework/work/WorkLoad.py | greensoftwarelab/PyAnaDroid | c37a85a2c8e0206895f2e96d28c2baa045f6a211 | [
"MIT"
] | null | null | null | from anadroid.testing_framework.work.AbstractWorkLoad import AbstractWorkLoad
class WorkLoad(AbstractWorkLoad):
def __init__(self):
"""implements Workload functionality by providing a naive way to store work unit to be executed in FIFO order."""
super(WorkLoad, self).__init__()
self.work_u... | 28.6 | 121 | 0.629371 | 91 | 715 | 4.725275 | 0.494505 | 0.093023 | 0.151163 | 0.118605 | 0.160465 | 0.160465 | 0 | 0 | 0 | 0 | 0 | 0.005848 | 0.282517 | 715 | 24 | 122 | 29.791667 | 0.832359 | 0.14965 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cac6b47c1b963dee95880e75b90cc62dcb244c86 | 1,047 | py | Python | article/migrations/0003_auto_20190214_1458.py | dolikemc/hostthewaytry | a1dcbc596da18aac760a18773bb89896a44e842d | [
"BSD-2-Clause"
] | null | null | null | article/migrations/0003_auto_20190214_1458.py | dolikemc/hostthewaytry | a1dcbc596da18aac760a18773bb89896a44e842d | [
"BSD-2-Clause"
] | 38 | 2019-01-22T10:50:01.000Z | 2019-01-28T15:19:15.000Z | article/migrations/0003_auto_20190214_1458.py | dolikemc/hostthewaytry | a1dcbc596da18aac760a18773bb89896a44e842d | [
"BSD-2-Clause"
] | null | null | null | # Generated by Django 2.1.5 on 2019-02-14 13:58
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('places', '0037_hostel'),
('article', '0002_textarticle_place'),
]
operations = [
migrations.RenameFi... | 29.083333 | 111 | 0.577841 | 106 | 1,047 | 5.54717 | 0.537736 | 0.061224 | 0.107143 | 0.07483 | 0.12585 | 0.12585 | 0.12585 | 0.12585 | 0 | 0 | 0 | 0.032653 | 0.297994 | 1,047 | 35 | 112 | 29.914286 | 0.767347 | 0.04298 | 0 | 0.433333 | 1 | 0 | 0.175 | 0.022 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.166667 | 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 |
cac9dc0fe46fda1c6ae867eef810a248a6c10fae | 5,857 | py | Python | HydrogenCpx/xenolithRims.py | EFerriss/Hydrogen_Cpx | 0732e2e84673d5fe8a3e5ce2c751d70e170084b4 | [
"MIT"
] | null | null | null | HydrogenCpx/xenolithRims.py | EFerriss/Hydrogen_Cpx | 0732e2e84673d5fe8a3e5ce2c751d70e170084b4 | [
"MIT"
] | null | null | null | HydrogenCpx/xenolithRims.py | EFerriss/Hydrogen_Cpx | 0732e2e84673d5fe8a3e5ce2c751d70e170084b4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Sep 03 15:14:02 2015
@author: Ferriss
Figure roughly following Padron-Navarta et al. 2014 Figure 8
Comparing olivine and cpx rim formation over time
"""
import pynams.diffusion as diff
import numpy as np
import matplotlib.pyplot as plt
import json
################### User i... | 38.281046 | 93 | 0.636845 | 872 | 5,857 | 4.02867 | 0.270642 | 0.0501 | 0.081981 | 0.025619 | 0.359522 | 0.276971 | 0.252491 | 0.233703 | 0.136066 | 0.105323 | 0 | 0.059686 | 0.184736 | 5,857 | 153 | 94 | 38.281046 | 0.676021 | 0.106539 | 0 | 0.052083 | 0 | 0 | 0.104371 | 0.00531 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.041667 | null | null | 0.010417 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cadc24ca5ad9fa69b3eafc03d9f3be9f7b8993e7 | 4,952 | py | Python | certification/cert_many_fx_spot.py | bidfx/bidfx-api-py | 6b5e2c5efaa547b2d97a5556ef8d21d1de807f68 | [
"Apache-2.0"
] | 3 | 2020-04-29T09:19:56.000Z | 2021-03-08T11:12:05.000Z | certification/cert_many_fx_spot.py | bidfx/bidfx-api-py | 6b5e2c5efaa547b2d97a5556ef8d21d1de807f68 | [
"Apache-2.0"
] | 3 | 2020-03-08T21:54:02.000Z | 2021-02-02T22:33:51.000Z | certification/cert_many_fx_spot.py | bidfx/bidfx-api-py | 6b5e2c5efaa547b2d97a5556ef8d21d1de807f68 | [
"Apache-2.0"
] | 2 | 2020-06-13T10:52:18.000Z | 2022-03-02T17:29:45.000Z | #!/usr/bin/env python
import logging
from bidfx import Session, Subject, Field
"""
Example for API Certification with FX spots.
"""
def on_price_event(event):
subject = event.subject
price_map = event.price
if price_map:
print(
"LEVEL 1 {} {} {} {} {} -> {} / {}".format(
... | 29.831325 | 75 | 0.572092 | 485 | 4,952 | 5.649485 | 0.181443 | 0.153285 | 0.117518 | 0.153285 | 0.660949 | 0.660949 | 0.660949 | 0.660949 | 0.660949 | 0.660949 | 0 | 0.037764 | 0.32088 | 4,952 | 165 | 76 | 30.012121 | 0.776985 | 0.010905 | 0 | 0.57554 | 0 | 0 | 0.046862 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028777 | false | 0 | 0.014388 | 0 | 0.043165 | 0.021583 | 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 |
cadcfec3ab1e3c3dc19c71727870e9e73573b54a | 624 | py | Python | {{cookiecutter.PROJECT_NAME}}/utils/drf/filters.py | pyFigure/cc_django | afb640816291ffc2ed2038bdee6ea60b27d71fb2 | [
"BSD-3-Clause"
] | 4 | 2020-09-01T06:37:17.000Z | 2020-09-01T07:11:32.000Z | {{cookiecutter.PROJECT_NAME}}/utils/drf/filters.py | pyFigure/cc_django | afb640816291ffc2ed2038bdee6ea60b27d71fb2 | [
"BSD-3-Clause"
] | 2 | 2020-12-07T08:41:46.000Z | 2020-12-08T03:37:43.000Z | {{cookiecutter.PROJECT_NAME}}/utils/drf/filters.py | pyFigure/cc_django | afb640816291ffc2ed2038bdee6ea60b27d71fb2 | [
"BSD-3-Clause"
] | null | null | null | from django.db.models import Q
from model_utils.models import now
from rest_framework.filters import BaseFilterBackend
class OwnerFilter(BaseFilterBackend):
"""过滤属于当前用户的数据"""
def filter_queryset(self, request, queryset, view):
current = request.user
return queryset.filter(owner=current)
cla... | 29.714286 | 102 | 0.703526 | 77 | 624 | 5.493506 | 0.467532 | 0.049645 | 0.080378 | 0.099291 | 0.189125 | 0.189125 | 0.189125 | 0 | 0 | 0 | 0 | 0 | 0.18109 | 624 | 20 | 103 | 31.2 | 0.827789 | 0.030449 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0.083333 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
cae13ba28b35d41bec3ab21bc162d3141ddf8eb5 | 6,231 | py | Python | tests/spider_error.py | alexey-v-paramonov/grab | a3bfda3ae16b615eeaa0323c2ba72a9d901cba7b | [
"MIT"
] | null | null | null | tests/spider_error.py | alexey-v-paramonov/grab | a3bfda3ae16b615eeaa0323c2ba72a9d901cba7b | [
"MIT"
] | null | null | null | tests/spider_error.py | alexey-v-paramonov/grab | a3bfda3ae16b615eeaa0323c2ba72a9d901cba7b | [
"MIT"
] | 1 | 2022-01-12T14:51:27.000Z | 2022-01-12T14:51:27.000Z | import mock
from six import StringIO
from grab import GrabTimeoutError, Grab
from grab.spider import Spider, Task
from tests.util import BaseGrabTestCase, build_spider, run_test_if, GLOBAL
# That URLs breaks Grab's URL normalization process
# with error "label empty or too long"
INVALID_URL = 'http://13354&altProduc... | 32.623037 | 76 | 0.567164 | 670 | 6,231 | 5.122388 | 0.253731 | 0.04662 | 0.034091 | 0.040793 | 0.52127 | 0.467949 | 0.41317 | 0.378205 | 0.351399 | 0.326923 | 0 | 0.016749 | 0.319692 | 6,231 | 190 | 77 | 32.794737 | 0.792876 | 0.173487 | 0 | 0.5 | 0 | 0 | 0.113815 | 0.037873 | 0 | 0 | 0 | 0.005263 | 0.04386 | 1 | 0.210526 | false | 0.035088 | 0.04386 | 0 | 0.324561 | 0.008772 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cae1b1b4091141ed19d3e4dfc4609c01277f84a1 | 1,027 | py | Python | setup.py | triptitripathi/clocwalk | 9ae41a841c159212ee1da25d97c93f9daa3c1d5c | [
"Apache-2.0"
] | 11 | 2018-07-18T05:14:42.000Z | 2019-05-14T01:11:07.000Z | setup.py | triptitripathi/clocwalk | 9ae41a841c159212ee1da25d97c93f9daa3c1d5c | [
"Apache-2.0"
] | 5 | 2019-10-15T13:10:35.000Z | 2020-03-06T05:36:00.000Z | setup.py | triptitripathi/clocwalk | 9ae41a841c159212ee1da25d97c93f9daa3c1d5c | [
"Apache-2.0"
] | 7 | 2019-10-08T08:04:55.000Z | 2021-04-02T05:32:02.000Z | #!/usr/bin/env python
# coding: utf-8
from setuptools import setup, find_packages
from clocwalk import __version__
setup(
name='clocwalk',
version=__version__,
description='Project code and dependent component analysis tools.',
author='MyKings',
author_email='xsseroot@gmail.com',
url='https:/... | 21.851064 | 71 | 0.507303 | 102 | 1,027 | 4.921569 | 0.705882 | 0.047809 | 0.027888 | 0.031873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029499 | 0.339825 | 1,027 | 46 | 72 | 22.326087 | 0.710914 | 0.033106 | 0 | 0.170732 | 0 | 0 | 0.309788 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.04878 | 0 | 0.04878 | 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 |
cae3b0517672c12c1899b1e1ae7caf9fb5f0b9f0 | 1,101 | py | Python | rhea/build/boards/xilinx/_anvyl.py | meetps/rhea | f8a9a08fb5e14c5c4488ef68a2dff4d18222c2c0 | [
"MIT"
] | 1 | 2022-03-16T23:56:09.000Z | 2022-03-16T23:56:09.000Z | rhea/build/boards/xilinx/_anvyl.py | meetps/rhea | f8a9a08fb5e14c5c4488ef68a2dff4d18222c2c0 | [
"MIT"
] | null | null | null | rhea/build/boards/xilinx/_anvyl.py | meetps/rhea | f8a9a08fb5e14c5c4488ef68a2dff4d18222c2c0 | [
"MIT"
] | null | null | null | #
# Copyright (c) 2015 Christopher Felton, Nick Shaffner
#
from rhea.build import FPGA
from rhea.build.extintf import Port
from rhea.build.toolflow import ISE
class Anvyl(FPGA):
vendor = 'xilinx'
family = 'spartan6'
device = 'XC6SLX45'
package = 'CSG484'
speed = '-3'
_name = 'anvyl'
defau... | 26.853659 | 54 | 0.472298 | 111 | 1,101 | 4.648649 | 0.72973 | 0.046512 | 0.075581 | 0.096899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066474 | 0.37148 | 1,101 | 40 | 55 | 27.525 | 0.679191 | 0.117166 | 0 | 0.153846 | 0 | 0 | 0.131743 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.115385 | 0.038462 | 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 |
cae46620336eded69db8cb36ad66b1349f726d54 | 760 | py | Python | gridded/tests/test_variable.py | ajnisbet/gridded | fc4c5d88c841c530541a1ef4995379bf5becd57f | [
"Unlicense"
] | null | null | null | gridded/tests/test_variable.py | ajnisbet/gridded | fc4c5d88c841c530541a1ef4995379bf5becd57f | [
"Unlicense"
] | null | null | null | gridded/tests/test_variable.py | ajnisbet/gridded | fc4c5d88c841c530541a1ef4995379bf5becd57f | [
"Unlicense"
] | null | null | null | """
tests of Variable object
Variable objects are mostly tested implicitly in other tests,
but good to have a few explicitly for the Variable object
"""
from __future__ import absolute_import, division, print_function, unicode_literals
import os
import netCDF4
from .utilities import get_test_file_dir
from gridded i... | 24.516129 | 82 | 0.710526 | 104 | 760 | 4.913462 | 0.567308 | 0.054795 | 0.043053 | 0.054795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008389 | 0.215789 | 760 | 30 | 83 | 25.333333 | 0.848993 | 0.190789 | 0 | 0 | 0 | 0 | 0.084158 | 0.082508 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.4 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cae4a00321154664bdb22b47c4af011296d688bb | 281 | py | Python | ultimatewebsite/members/admin.py | poshan0126/class-ultimate-classof2020 | 722d8fac6f354aa22fd41094d38a4e20c1e354fd | [
"MIT"
] | 1 | 2017-10-17T08:33:25.000Z | 2017-10-17T08:33:25.000Z | ultimatewebsite/members/admin.py | NischalLal/class-ultimate-classof2020 | c069dc7211a640267e35c2e956ad9440a03e1ab8 | [
"MIT"
] | null | null | null | ultimatewebsite/members/admin.py | NischalLal/class-ultimate-classof2020 | c069dc7211a640267e35c2e956ad9440a03e1ab8 | [
"MIT"
] | null | null | null | from django.contrib import admin
from members.models import Member
# Register your models here.
class MemberAdmin(admin.ModelAdmin):
'''
Admin View for Member
'''
list_display = ('full_name', 'email', 'phone_number',)
admin.site.register(Member, MemberAdmin)
| 23.416667 | 58 | 0.711744 | 34 | 281 | 5.794118 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177936 | 281 | 11 | 59 | 25.545455 | 0.852814 | 0.174377 | 0 | 0 | 0 | 0 | 0.122642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 |
caef5da4a6cba0fab4c6e6cc434410b8b93bcd52 | 256 | py | Python | vocab/urls.py | DiegoVilela/news-review-vocab | 2202ac4577022810e210a9e989b5ea067300b215 | [
"MIT"
] | null | null | null | vocab/urls.py | DiegoVilela/news-review-vocab | 2202ac4577022810e210a9e989b5ea067300b215 | [
"MIT"
] | 1 | 2021-07-01T21:37:22.000Z | 2021-07-10T22:08:36.000Z | vocab/urls.py | DiegoVilela/news-review-vocab | 2202ac4577022810e210a9e989b5ea067300b215 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('<slug:slug>/', views.entry_detail, name='entry_detail'),
path('episode/<slug:slug>/', views.episode_detail, name='episode_detail'),
]
| 25.6 | 78 | 0.679688 | 33 | 256 | 5.151515 | 0.393939 | 0.094118 | 0.152941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136719 | 256 | 9 | 79 | 28.444444 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0.246094 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cafd7a712bb5f80eaabee083a755211d9e2bc40b | 836 | py | Python | setup.py | rvega/isobar | 6b9ead7238e559cdcf83dd4122e2ddcbe2f651ad | [
"MIT"
] | 241 | 2015-01-05T12:32:21.000Z | 2022-03-29T20:50:51.000Z | setup.py | rvega/isobar | 6b9ead7238e559cdcf83dd4122e2ddcbe2f651ad | [
"MIT"
] | 21 | 2015-01-28T16:57:59.000Z | 2022-03-17T22:01:08.000Z | setup.py | rvega/isobar | 6b9ead7238e559cdcf83dd4122e2ddcbe2f651ad | [
"MIT"
] | 39 | 2015-01-27T04:29:22.000Z | 2022-02-16T13:14:13.000Z | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='isobar',
version='0.1.1',
description='A Python library to express and manipulate musical patterns',
long_description = open("README.md", "r").read(),
long_description_content_type = "text/markdown",
author='Daniel ... | 32.153846 | 78 | 0.65311 | 93 | 836 | 5.763441 | 0.784946 | 0.044776 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005882 | 0.186603 | 836 | 25 | 79 | 33.44 | 0.782353 | 0.023923 | 0 | 0 | 0 | 0 | 0.444172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.045455 | 0 | 0.045455 | 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 |
caff9a6aa349bc5c7f1aab4dcd4387086f128fa2 | 56,771 | py | Python | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/common/lib/xmodule/xmodule/modulestore/__init__.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 3 | 2021-12-15T04:58:18.000Z | 2022-02-06T12:15:37.000Z | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/common/lib/xmodule/xmodule/modulestore/__init__.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | null | null | null | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/common/lib/xmodule/xmodule/modulestore/__init__.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 1 | 2019-01-02T14:38:50.000Z | 2019-01-02T14:38:50.000Z | """
This module provides an abstraction for working with XModuleDescriptors
that are stored in a database an accessible using their Location as an identifier
"""
import datetime
import logging
import re
import threading
from abc import ABCMeta, abstractmethod
from collections import defaultdict
from contextlib import... | 40.492867 | 172 | 0.653397 | 7,150 | 56,771 | 5.022098 | 0.125315 | 0.01579 | 0.018937 | 0.026735 | 0.357831 | 0.313078 | 0.283085 | 0.253787 | 0.224797 | 0.19472 | 0 | 0.000801 | 0.274348 | 56,771 | 1,401 | 173 | 40.52177 | 0.870837 | 0.45134 | 0 | 0.256228 | 0 | 0 | 0.058062 | 0.02335 | 0 | 0 | 0 | 0.001428 | 0.005338 | 1 | 0.169039 | false | 0.051601 | 0.040925 | 0.003559 | 0.338078 | 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 |
1b071df6e9f046815d7df0d7dfac834755969ce9 | 5,156 | py | Python | accounts/tests.py | ssa17021992/djrest | ba85b511be16b66434be99624e1da6378dcc8d88 | [
"Xnet",
"X11"
] | null | null | null | accounts/tests.py | ssa17021992/djrest | ba85b511be16b66434be99624e1da6378dcc8d88 | [
"Xnet",
"X11"
] | null | null | null | accounts/tests.py | ssa17021992/djrest | ba85b511be16b66434be99624e1da6378dcc8d88 | [
"Xnet",
"X11"
] | null | null | null | import json
from django.test import TestCase, Client
from django.urls import reverse
from django.utils import timezone
from rest_framework import status
from .models import User, SignUpCode
from .auth import auth_token, passwd_token
class UserTestCase(TestCase):
"""User test case"""
def setUp(self):
... | 30.329412 | 76 | 0.603569 | 571 | 5,156 | 5.299475 | 0.178634 | 0.039656 | 0.054527 | 0.094514 | 0.599802 | 0.59121 | 0.546266 | 0.534699 | 0.488434 | 0.457369 | 0 | 0.032856 | 0.268037 | 5,156 | 169 | 77 | 30.508876 | 0.768945 | 0.002715 | 0 | 0.36 | 0 | 0 | 0.152453 | 0 | 0 | 0 | 0 | 0 | 0.128 | 1 | 0.112 | false | 0.16 | 0.056 | 0 | 0.176 | 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 |
1b0a58aed3c66dc963c3fc0b5f3303cbca7d66fb | 5,725 | py | Python | aic/views.py | abhi20161997/Apogee-2017 | e4ae1b379bd5111a3bd7d3399d081dda897a8566 | [
"BSD-3-Clause"
] | null | null | null | aic/views.py | abhi20161997/Apogee-2017 | e4ae1b379bd5111a3bd7d3399d081dda897a8566 | [
"BSD-3-Clause"
] | null | null | null | aic/views.py | abhi20161997/Apogee-2017 | e4ae1b379bd5111a3bd7d3399d081dda897a8566 | [
"BSD-3-Clause"
] | null | null | null | from django.shortcuts import render
# Create your views here.
from django.shortcuts import get_object_or_404, render_to_response, redirect
from django.shortcuts import render
from django.template import Context
from django.http import HttpResponse, JsonResponse
import string, random, os
from apogee17.settings import *... | 34.487952 | 176 | 0.701659 | 880 | 5,725 | 4.505682 | 0.209091 | 0.155359 | 0.079445 | 0.084741 | 0.301639 | 0.069609 | 0.0343 | 0 | 0 | 0 | 0 | 0.031621 | 0.132751 | 5,725 | 165 | 177 | 34.69697 | 0.766969 | 0.004017 | 0 | 0.156028 | 0 | 0 | 0.151184 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007092 | 0.113475 | null | null | 0.007092 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1b0dcfbb5f9fafe51e4af4e1eece080059b996e1 | 416 | py | Python | SIGNUS/app/models/mongodb/realtime.py | 837477/SIGNUS | cd395dfd45d2c36d09ec9a8069e6e52e19f058e8 | [
"MIT"
] | null | null | null | SIGNUS/app/models/mongodb/realtime.py | 837477/SIGNUS | cd395dfd45d2c36d09ec9a8069e6e52e19f058e8 | [
"MIT"
] | null | null | null | SIGNUS/app/models/mongodb/realtime.py | 837477/SIGNUS | cd395dfd45d2c36d09ec9a8069e6e52e19f058e8 | [
"MIT"
] | null | null | null | '''
MongoDB realtime Collection Model
'''
from flask import current_app
from datetime import timedelta, datetime
class Realtime:
"""SIGNUS DB realtime Model"""
def __init__(self, client):
self.col = client[current_app.config['MONGODB_DB_NAME']]['realtime']
def find_latest(self):
''' 최신 실시... | 26 | 82 | 0.644231 | 55 | 416 | 4.690909 | 0.636364 | 0.077519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011834 | 0.1875 | 416 | 15 | 83 | 27.733333 | 0.751479 | 0.175481 | 0 | 0 | 0 | 0 | 0.092593 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0 | 0.857143 | 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 |
1b1958e8f23bad37fb690353b0fafc454873f683 | 1,028 | py | Python | app/schemas/user.py | Gingernaut/microAuth | 0355147b571ed5d9e50ab534f13eb6eee6d9a219 | [
"MIT"
] | 28 | 2017-10-03T21:33:43.000Z | 2021-03-04T08:04:36.000Z | app/schemas/user.py | Gingernaut/microAuth | 0355147b571ed5d9e50ab534f13eb6eee6d9a219 | [
"MIT"
] | 406 | 2017-12-10T22:24:31.000Z | 2021-07-26T12:16:38.000Z | app/schemas/user.py | Gingernaut/microAuth | 0355147b571ed5d9e50ab534f13eb6eee6d9a219 | [
"MIT"
] | 4 | 2019-03-04T14:14:25.000Z | 2021-08-07T12:47:47.000Z | from pydantic import BaseModel, Schema
from uuid import UUID
from config import get_config
from datetime import datetime
app_config = get_config()
class UserBase(BaseModel):
firstName: str = None
lastName: str = None
emailAddress: str
phoneNumber: str = None
class UserCreate(UserBase):
emailAdd... | 19.769231 | 71 | 0.689689 | 127 | 1,028 | 5.472441 | 0.362205 | 0.080576 | 0.060432 | 0.077698 | 0.282014 | 0.25036 | 0.089209 | 0 | 0 | 0 | 0 | 0 | 0.242218 | 1,028 | 51 | 72 | 20.156863 | 0.892169 | 0.046693 | 0 | 0.388889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.055556 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1b20cea8452d9953dabb53625c1815c2fffeded3 | 382 | py | Python | detection/migrations/0009_auto_20210128_0853.py | Kunal614/Pocket-Medical | 855013d542f8460d633747564d2bc7a3edd7eb9c | [
"Apache-2.0"
] | 1 | 2022-03-26T01:39:02.000Z | 2022-03-26T01:39:02.000Z | detection/migrations/0009_auto_20210128_0853.py | Kunal614/Pocket-Medical | 855013d542f8460d633747564d2bc7a3edd7eb9c | [
"Apache-2.0"
] | null | null | null | detection/migrations/0009_auto_20210128_0853.py | Kunal614/Pocket-Medical | 855013d542f8460d633747564d2bc7a3edd7eb9c | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0.7 on 2021-01-28 08:53
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('detection', '0008_auto_20210127_2043'),
]
operations = [
migrations.RenameField(
model_name='medical_record',
old_name='hosp... | 20.105263 | 49 | 0.604712 | 41 | 382 | 5.439024 | 0.804878 | 0.107623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113971 | 0.287958 | 382 | 18 | 50 | 21.222222 | 0.705882 | 0.117801 | 0 | 0 | 1 | 0 | 0.2 | 0.068657 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1b25b6dd221b973d012064debbc73373806d96ea | 607 | py | Python | setup.py | manojrege/pynetem | 3c1412c04cb9d182b71085c00338081361dd80b9 | [
"BSD-3-Clause"
] | 1 | 2019-12-21T14:55:14.000Z | 2019-12-21T14:55:14.000Z | setup.py | manojrege/pynetem | 3c1412c04cb9d182b71085c00338081361dd80b9 | [
"BSD-3-Clause"
] | null | null | null | setup.py | manojrege/pynetem | 3c1412c04cb9d182b71085c00338081361dd80b9 | [
"BSD-3-Clause"
] | null | null | null | import setuptools
setuptools.setup(
name='pynetem',
version='0.1',
author='Manoj R. Rege',
author_email='rege.manoj@gmail.com',
url='https://github.com/manojrege/pynetem',
description='A Python wrapper library for network emulation on MacOS',
long_description=open('README.md').read(),
l... | 31.947368 | 74 | 0.655684 | 70 | 607 | 5.6 | 0.728571 | 0.056122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008097 | 0.186161 | 607 | 19 | 75 | 31.947368 | 0.785425 | 0 | 0 | 0 | 0 | 0 | 0.412829 | 0.034539 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.055556 | 0 | 0.055556 | 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 |
1b267f6f0210c831bea39caa0887e49ca2d4f800 | 4,311 | py | Python | python/Editioning.py | alanfeng99/oracle-db-examples | 593c0aaf8020304625a9555cb248e9224e47dddd | [
"Apache-2.0"
] | 1 | 2018-11-22T12:38:29.000Z | 2018-11-22T12:38:29.000Z | python/Editioning.py | alanfeng99/oracle-db-examples | 593c0aaf8020304625a9555cb248e9224e47dddd | [
"Apache-2.0"
] | null | null | null | python/Editioning.py | alanfeng99/oracle-db-examples | 593c0aaf8020304625a9555cb248e9224e47dddd | [
"Apache-2.0"
] | 1 | 2020-05-18T15:27:56.000Z | 2020-05-18T15:27:56.000Z | #------------------------------------------------------------------------------
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
#
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
#
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
# Canada. Al... | 39.190909 | 79 | 0.680121 | 543 | 4,311 | 5.313076 | 0.27256 | 0.036049 | 0.035355 | 0.055459 | 0.486655 | 0.419411 | 0.386828 | 0.372964 | 0.356672 | 0.356672 | 0 | 0.009961 | 0.161679 | 4,311 | 109 | 80 | 39.550459 | 0.788323 | 0.315704 | 0 | 0.492958 | 0 | 0 | 0.438248 | 0.007527 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.098592 | 0.028169 | 0 | 0.056338 | 0.183099 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1b2964ce9347be080e592aae42bf508ca80aca12 | 1,521 | py | Python | dscoe_utils/dscoe_utils.py | Peter-32/dscoe_utils | 40b264b0be594c3450253e5dc0ac2b098960b4fa | [
"MIT"
] | null | null | null | dscoe_utils/dscoe_utils.py | Peter-32/dscoe_utils | 40b264b0be594c3450253e5dc0ac2b098960b4fa | [
"MIT"
] | null | null | null | dscoe_utils/dscoe_utils.py | Peter-32/dscoe_utils | 40b264b0be594c3450253e5dc0ac2b098960b4fa | [
"MIT"
] | null | null | null | # Databricks notebook source
# update_dscoe_utils() {
# current_path=`pwd`
# current_folder=${current_path##*/}
# # pip install --upgrade setuptools
# # pip install --upgrade twine
# mkdir /Users/petermyers/Desktop/dscoe_utils/
# py_commons_env
# rm /Users/petermyers/Desktop/dscoe_utils/dscoe_utils.py
# ... | 34.568182 | 105 | 0.716634 | 214 | 1,521 | 4.920561 | 0.476636 | 0.094967 | 0.104463 | 0.128205 | 0.269706 | 0.140551 | 0.140551 | 0 | 0 | 0 | 0 | 0.014902 | 0.161736 | 1,521 | 43 | 106 | 35.372093 | 0.81098 | 0.648915 | 0 | 0.181818 | 0 | 0 | 0.23506 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1b352b68af6c39037b10b97dd91f16df09645dd6 | 598 | py | Python | Seconds Converter.py | WOLF2503/Python-Program | 12d74b7e1df3a8fe34aabc6c757c71da40e1b309 | [
"CC0-1.0"
] | null | null | null | Seconds Converter.py | WOLF2503/Python-Program | 12d74b7e1df3a8fe34aabc6c757c71da40e1b309 | [
"CC0-1.0"
] | null | null | null | Seconds Converter.py | WOLF2503/Python-Program | 12d74b7e1df3a8fe34aabc6c757c71da40e1b309 | [
"CC0-1.0"
] | null | null | null | a = int(input("Please input you Time in Seconds to convert: "))
selection = input('Please Input the unit in which you want to convert For Seconds type S ... for Minutes type M... For Hours Type H')
if selection == "S" :
print("Your Time in Seconds is ", a)
elif selection == "M" :
b = a / 60
print("Yo... | 46 | 157 | 0.652174 | 97 | 598 | 4.020619 | 0.494845 | 0.061538 | 0.1 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013245 | 0.242475 | 598 | 12 | 158 | 49.833333 | 0.847682 | 0 | 0 | 0 | 0 | 0.166667 | 0.636519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1b365d84bb080bc5311485519f8c8f69452514ed | 4,950 | py | Python | gammapy/modeling/sampling.py | QRemy/gammapy | fe799e8a8e792d216fdb11fb7abcb64d58f273dd | [
"BSD-3-Clause"
] | null | null | null | gammapy/modeling/sampling.py | QRemy/gammapy | fe799e8a8e792d216fdb11fb7abcb64d58f273dd | [
"BSD-3-Clause"
] | null | null | null | gammapy/modeling/sampling.py | QRemy/gammapy | fe799e8a8e792d216fdb11fb7abcb64d58f273dd | [
"BSD-3-Clause"
] | null | null | null | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""MCMC sampling helper functions using ``emcee``."""
import logging
import numpy as np
__all__ = ["uniform_prior", "run_mcmc", "plot_trace", "plot_corner"]
log = logging.getLogger(__name__)
# TODO: so far only works with a uniform prior on parameters
... | 30.368098 | 90 | 0.662828 | 664 | 4,950 | 4.881024 | 0.343373 | 0.033323 | 0.045356 | 0.066955 | 0.172478 | 0.16137 | 0.16137 | 0.12527 | 0.12527 | 0.12527 | 0 | 0.01312 | 0.230101 | 4,950 | 162 | 91 | 30.555556 | 0.837313 | 0.40303 | 0 | 0.0625 | 0 | 0 | 0.082092 | 0 | 0 | 0 | 0 | 0.012346 | 0 | 1 | 0.125 | false | 0 | 0.078125 | 0 | 0.296875 | 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 |
1b40b355432f78298c457d75f0dd757fca27b19b | 3,170 | py | Python | classes/basic_cfg.py | A26mike/Arma-Python-server-manager | d92ebbcf7de12908d862a941562a95134f66b858 | [
"MIT"
] | null | null | null | classes/basic_cfg.py | A26mike/Arma-Python-server-manager | d92ebbcf7de12908d862a941562a95134f66b858 | [
"MIT"
] | null | null | null | classes/basic_cfg.py | A26mike/Arma-Python-server-manager | d92ebbcf7de12908d862a941562a95134f66b858 | [
"MIT"
] | null | null | null | class BasicCFG:
"""BasicCFG [CFG Calculator for undocumented ]
Args:
uploadSpeed ([int]): [In MB/s]
socket_init ([int]): [description]
socket_min ([int]): [description]
maxPacketSize (int, optional): [ISP MTU settings ]. Defaults to 1400.
"""
def __i... | 45.942029 | 282 | 0.694637 | 391 | 3,170 | 5.488491 | 0.40665 | 0.026095 | 0.032619 | 0.037279 | 0.287046 | 0.132805 | 0.06617 | 0 | 0 | 0 | 0 | 0.02809 | 0.21388 | 3,170 | 68 | 283 | 46.617647 | 0.833066 | 0.090221 | 0 | 0 | 0 | 0.170732 | 0.660981 | 0.113362 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097561 | false | 0 | 0 | 0 | 0.170732 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1b410b15b43ea4480ec1e2d62b3d0d377c462e62 | 20,527 | py | Python | Basic_ML/Quantum_Tic_Tac_Toe/tic_tac_toe.py | jrclimer/Projects | 6023f8309685d1a273d7e89993863c89ad85dfb5 | [
"MIT"
] | 27 | 2016-11-18T11:15:58.000Z | 2021-02-26T05:46:37.000Z | Basic_ML/Quantum_Tic_Tac_Toe/tic_tac_toe.py | imsrgadich/Projects_shang | a9d4395a98a79fb0a700a99168cd358ab7494fdf | [
"MIT"
] | 1 | 2022-01-21T16:09:40.000Z | 2022-01-21T16:30:10.000Z | Basic_ML/Quantum_Tic_Tac_Toe/tic_tac_toe.py | imsrgadich/Projects_shang | a9d4395a98a79fb0a700a99168cd358ab7494fdf | [
"MIT"
] | 22 | 2016-11-27T06:02:26.000Z | 2021-09-22T13:40:55.000Z | import itertools
import copy
import re
import math
import random
import shelve
class board(object):
def __init__(self,humans=0,AI1=None,AI2=None):
self.board = {(1,1):[],\
(1,2):[],\
(1,3):[],\
(2,1):[],\
(2,2):[],\
... | 42.587137 | 128 | 0.497686 | 2,664 | 20,527 | 3.744745 | 0.066817 | 0.014836 | 0.018945 | 0.021652 | 0.689555 | 0.622895 | 0.55433 | 0.522855 | 0.483561 | 0.44146 | 0 | 0.053707 | 0.336922 | 20,527 | 482 | 129 | 42.587137 | 0.67923 | 0 | 0 | 0.524211 | 0 | 0 | 0.066689 | 0.002046 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.012632 | 0.012632 | null | null | 0.050526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1b510f60e6b9e96437616346dce2a24dbe7da292 | 934 | py | Python | lunchbot/services.py | vekerdyb/lunchbot | 5975ff284624117d88a4978ae3e784c03ae0114a | [
"MIT"
] | 2 | 2019-05-10T09:07:51.000Z | 2019-06-27T09:54:57.000Z | lunchbot/services.py | vekerdyb/lunchbot | 5975ff284624117d88a4978ae3e784c03ae0114a | [
"MIT"
] | 2 | 2020-07-16T21:31:59.000Z | 2021-05-08T11:26:27.000Z | lunchbot/services.py | vekerdyb/lunchbot | 5975ff284624117d88a4978ae3e784c03ae0114a | [
"MIT"
] | 1 | 2019-06-27T08:56:07.000Z | 2019-06-27T08:56:07.000Z | import os
import boto3
from slackclient import SlackClient
from lunchbot import logging
logger = logging.getLogger(__name__)
class Slack(object):
client = None
@staticmethod
def get_client():
if Slack.client is not None:
logger.debug("Using cached Slack client")
return... | 23.35 | 74 | 0.662741 | 108 | 934 | 5.611111 | 0.314815 | 0.108911 | 0.062706 | 0.072607 | 0.10231 | 0.10231 | 0.10231 | 0 | 0 | 0 | 0 | 0.002886 | 0.25803 | 934 | 39 | 75 | 23.948718 | 0.871573 | 0 | 0 | 0.222222 | 0 | 0 | 0.157388 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.148148 | 0 | 0.518519 | 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 |
1b5f6d5587e1f82b2c46d68d1f23cc6d504b045e | 365 | py | Python | bin/run_twitter_client.py | kubor/chem_bot | 25357e5639aca7a50828dd6db307d3b9703d97e2 | [
"MIT"
] | 2 | 2017-05-02T01:17:29.000Z | 2017-05-02T01:46:19.000Z | bin/run_twitter_client.py | ddquest/chem_bot | 25357e5639aca7a50828dd6db307d3b9703d97e2 | [
"MIT"
] | 7 | 2017-05-01T05:54:25.000Z | 2018-09-30T15:06:02.000Z | bin/run_twitter_client.py | kubor/chem_bot | 25357e5639aca7a50828dd6db307d3b9703d97e2 | [
"MIT"
] | 1 | 2019-07-19T21:30:46.000Z | 2019-07-19T21:30:46.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from chem_bot import twitter as T
def _main():
config = T.Config()
config.load()
api = T.oauth(config)
stream = T.Streamer(api, config)
stream.statuses.filter(track=config.query, follow=config.filter_follow)
# stream.statuses.filter(track='twitte... | 20.277778 | 75 | 0.657534 | 49 | 365 | 4.653061 | 0.591837 | 0.105263 | 0.175439 | 0.219298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006734 | 0.186301 | 365 | 17 | 76 | 21.470588 | 0.760943 | 0.227397 | 0 | 0 | 0 | 0 | 0.028674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.222222 | 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 |
1b5fc27e64da7c21917ef763573439770ad71386 | 354 | py | Python | surveymonty/exceptions.py | andrewkshim/surveymonty | 869f1a0a2546874bd4fcdd18fd52a42b063252a7 | [
"MIT"
] | 15 | 2015-02-04T17:34:39.000Z | 2021-05-14T11:51:03.000Z | surveymonty/exceptions.py | andrewkshim/surveymonty | 869f1a0a2546874bd4fcdd18fd52a42b063252a7 | [
"MIT"
] | 4 | 2015-07-16T14:39:27.000Z | 2017-07-07T19:38:19.000Z | surveymonty/exceptions.py | andrewkshim/surveymonty | 869f1a0a2546874bd4fcdd18fd52a42b063252a7 | [
"MIT"
] | 17 | 2015-07-08T17:30:35.000Z | 2021-01-27T10:03:12.000Z | """
surveymonty.exceptions
----------------------
"""
class SurveyMontyError(Exception):
"""Base exception."""
pass
class SurveyMontyAPIError(SurveyMontyError):
"""Error for non-2xx API responses."""
def __init__(self, resp, *args):
super(SurveyMontyAPIError, self).__init__(resp.content, *a... | 19.666667 | 70 | 0.632768 | 32 | 354 | 6.75 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003436 | 0.177966 | 354 | 17 | 71 | 20.823529 | 0.738832 | 0.265537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1b6b255bdd4d14ea4ab98549d0d4b2adc7fce378 | 1,036 | py | Python | output/models/ms_data/additional/test72597_xsd/test72597.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/ms_data/additional/test72597_xsd/test72597.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/ms_data/additional/test72597_xsd/test72597.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from dataclasses import dataclass, field
from typing import List, Optional
__NAMESPACE__ = "foo"
@dataclass
class A:
part: List["A.Part"] = field(
default_factory=list,
metadata={
"type": "Element",
"namespace": "foo",
"min_occurs": 1,
}
)
@dat... | 19.185185 | 40 | 0.433398 | 81 | 1,036 | 5.469136 | 0.407407 | 0.13544 | 0.108352 | 0.162528 | 0.216704 | 0.216704 | 0.216704 | 0.216704 | 0 | 0 | 0 | 0.00349 | 0.446911 | 1,036 | 53 | 41 | 19.54717 | 0.769634 | 0 | 0 | 0.369565 | 0 | 0 | 0.103282 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.173913 | 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 |
1b6c45919a1f0c2a044404b32047efe0e8bd58aa | 18,120 | py | Python | trio_cdp/generated/runtime.py | vcalvert/trio-chrome-devtools-protocol | f41ca685b5c390f288592d135660c177fba5a945 | [
"MIT"
] | 37 | 2019-10-07T17:51:11.000Z | 2022-03-20T15:25:49.000Z | trio_cdp/generated/runtime.py | vcalvert/trio-chrome-devtools-protocol | f41ca685b5c390f288592d135660c177fba5a945 | [
"MIT"
] | 17 | 2019-08-30T15:55:22.000Z | 2021-07-03T06:00:06.000Z | trio_cdp/generated/runtime.py | vcalvert/trio-chrome-devtools-protocol | f41ca685b5c390f288592d135660c177fba5a945 | [
"MIT"
] | 14 | 2019-11-08T09:32:02.000Z | 2022-03-03T09:06:48.000Z | # DO NOT EDIT THIS FILE!
#
# This code is generated off of PyCDP modules. If you need to make
# changes, edit the generator and regenerate all of the modules.
from __future__ import annotations
import typing
from ..context import get_connection_context, get_session_context
import cdp.runtime
from cdp.runtime import ... | 43.980583 | 221 | 0.731347 | 2,232 | 18,120 | 5.789427 | 0.145609 | 0.047671 | 0.030258 | 0.040861 | 0.585049 | 0.515245 | 0.438941 | 0.377186 | 0.341665 | 0.3282 | 0 | 0.001148 | 0.183057 | 18,120 | 411 | 222 | 44.087591 | 0.870702 | 0.008278 | 0 | 0.239521 | 1 | 0 | 0.065269 | 0.055608 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02994 | 0 | 0.161677 | 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 |
1b6da9c47f3a7b115f7730499b8584881f2ad77a | 219 | py | Python | scripts/exercicios/ex010.py | RuanBarretodosSantos/python | 4142ccd71c4ffb4bb6a10d61c85f612758f5bb41 | [
"MIT"
] | null | null | null | scripts/exercicios/ex010.py | RuanBarretodosSantos/python | 4142ccd71c4ffb4bb6a10d61c85f612758f5bb41 | [
"MIT"
] | null | null | null | scripts/exercicios/ex010.py | RuanBarretodosSantos/python | 4142ccd71c4ffb4bb6a10d61c85f612758f5bb41 | [
"MIT"
] | null | null | null | from email.utils import collapse_rfc2231_value
real = float(input('Quantos reais você tem ? R$ '))
dolar = real / 5.16
euro = real / 5.77
print(f'Com {real} você consegue comprar {dolar:.2f} dólares ou {euro:.2f}') | 31.285714 | 76 | 0.69863 | 36 | 219 | 4.194444 | 0.777778 | 0.066225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065574 | 0.164384 | 219 | 7 | 76 | 31.285714 | 0.759563 | 0 | 0 | 0 | 0 | 0 | 0.427273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 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 |
1b71b4ae1c889c63389a2af7db0f628112662ab7 | 15,787 | py | Python | dist_helper.py | ymwdalex/Segmented-shape-symbolic-time-series-representation- | ff76c071d9e3bb57ad64cc8243767855b2abab22 | [
"CECILL-B"
] | 2 | 2016-11-17T07:31:28.000Z | 2021-10-15T09:05:32.000Z | dist_helper.py | ymwdalex/Segmented-shape-symbolic-time-series-representation- | ff76c071d9e3bb57ad64cc8243767855b2abab22 | [
"CECILL-B"
] | 1 | 2016-11-18T14:23:35.000Z | 2016-11-20T12:02:37.000Z | dist_helper.py | ymwdalex/Segmented-shape-symbolic-time-series-representation- | ff76c071d9e3bb57ad64cc8243767855b2abab22 | [
"CECILL-B"
] | null | null | null | #!/usr/bin/env python
#########################################################
# #
# Segmented Shape-Symbolic Time series Representation #
# #
# __author__ = "Zhe Sun"
# __copyright__ = "Copyright 2013, ... | 41.435696 | 140 | 0.496801 | 2,057 | 15,787 | 3.702965 | 0.152649 | 0.034134 | 0.021006 | 0.015886 | 0.462518 | 0.41066 | 0.391493 | 0.36366 | 0.335303 | 0.320467 | 0 | 0.040517 | 0.308988 | 15,787 | 380 | 141 | 41.544737 | 0.657714 | 0.491227 | 0 | 0.358491 | 0 | 0 | 0.063098 | 0 | 0 | 0 | 0 | 0.002632 | 0 | 0 | null | null | 0.006289 | 0.025157 | null | null | 0.012579 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1b7269db6c5a10b59c8a1293bced718fb2c7670c | 1,306 | py | Python | manhattan/record.py | cartlogic/manhattan | 069b5468baf3bc1f5faffe9bc90342254bad9a2d | [
"MIT"
] | 1 | 2020-06-07T23:43:14.000Z | 2020-06-07T23:43:14.000Z | manhattan/record.py | cartlogic/manhattan | 069b5468baf3bc1f5faffe9bc90342254bad9a2d | [
"MIT"
] | null | null | null | manhattan/record.py | cartlogic/manhattan | 069b5468baf3bc1f5faffe9bc90342254bad9a2d | [
"MIT"
] | 1 | 2018-03-03T16:13:50.000Z | 2018-03-03T16:13:50.000Z | from __future__ import absolute_import, division, print_function
log_version = 1
class Record(object):
base_fields = ('timestamp', 'vid', 'site_id')
fields = ()
def __init__(self, **kwargs):
for field in self.base_fields + self.fields:
setattr(self, field, kwargs.get(field, ''))
... | 24.185185 | 68 | 0.596478 | 153 | 1,306 | 4.895425 | 0.424837 | 0.053405 | 0.026702 | 0.037383 | 0.090788 | 0.090788 | 0.090788 | 0.090788 | 0 | 0 | 0 | 0.004206 | 0.271822 | 1,306 | 53 | 69 | 24.641509 | 0.783386 | 0 | 0 | 0.055556 | 0 | 0 | 0.086524 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 1 | 0.083333 | false | 0 | 0.027778 | 0.027778 | 0.583333 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1b72b56d3ae5aaeec8221a7b95529f7b154cae04 | 333 | py | Python | setup.py | rapatchi/SFMergeUtility | 5cad00c0cbdc954b987d94b0cfb7bfe5e352cd15 | [
"MIT"
] | null | null | null | setup.py | rapatchi/SFMergeUtility | 5cad00c0cbdc954b987d94b0cfb7bfe5e352cd15 | [
"MIT"
] | null | null | null | setup.py | rapatchi/SFMergeUtility | 5cad00c0cbdc954b987d94b0cfb7bfe5e352cd15 | [
"MIT"
] | null | null | null |
from setuptools import setup, find_packages
setup(
name='SFMergeUtility',
version='0.1',
packages=find_packages(exclude=['tests*']),
license='MIT',
description='SFMergeUtility',
long_description=open('README.md').read(),
install_requires=[''],
url='',
author='SFDev',
author_ema... | 20.8125 | 47 | 0.651652 | 35 | 333 | 6.057143 | 0.771429 | 0.113208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007299 | 0.177177 | 333 | 15 | 48 | 22.2 | 0.766423 | 0 | 0 | 0 | 0 | 0 | 0.177711 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 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 |
1b811446f3f33748dae02d931ea59bc486f38597 | 636 | py | Python | 2020/1/main.py | klrkdekira/adventofcode | 8384d919093712c95b707b8e3f293dbfba22be74 | [
"BSD-2-Clause"
] | 1 | 2020-12-01T08:41:55.000Z | 2020-12-01T08:41:55.000Z | 2020/1/main.py | klrkdekira/adventofcode | 8384d919093712c95b707b8e3f293dbfba22be74 | [
"BSD-2-Clause"
] | null | null | null | 2020/1/main.py | klrkdekira/adventofcode | 8384d919093712c95b707b8e3f293dbfba22be74 | [
"BSD-2-Clause"
] | null | null | null | with open('input') as file:
prev = []
found_twins = False
found_triplets = False
for val in map(int, map(lambda i: i.strip(), file)):
for x in prev:
if not found_twins and x + val == 2020:
print('twins', x * val)
found_twins = True
for y... | 25.44 | 62 | 0.477987 | 77 | 636 | 3.831169 | 0.363636 | 0.220339 | 0.054237 | 0.074576 | 0.108475 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022472 | 0.440252 | 636 | 24 | 63 | 26.5 | 0.80618 | 0 | 0 | 0.111111 | 0 | 0 | 0.028302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 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 |
1b880bf5798b2371809b5103f0d7e64462c9b8e5 | 2,038 | py | Python | src/gausskernel/dbmind/tools/ai_server/service/datafactory/collector/agent_collect.py | Yanci0/openGauss-server | b2ff10be1367c77f2fda396d6c12ffa3c25874c7 | [
"MulanPSL-1.0"
] | 360 | 2020-06-30T14:47:34.000Z | 2022-03-31T15:21:53.000Z | src/gausskernel/dbmind/tools/ai_server/service/datafactory/collector/agent_collect.py | Yanci0/openGauss-server | b2ff10be1367c77f2fda396d6c12ffa3c25874c7 | [
"MulanPSL-1.0"
] | 4 | 2020-06-30T15:09:16.000Z | 2020-07-14T06:20:03.000Z | src/gausskernel/dbmind/tools/ai_server/service/datafactory/collector/agent_collect.py | futurewei-cloud/chogori-opengauss | f43410e1643c887819e718d9baceb9e853ad9574 | [
"MulanPSL-1.0"
] | 133 | 2020-06-30T14:47:36.000Z | 2022-03-25T15:29:00.000Z | #!/usr/bin/python3
# -*- coding: utf-8 -*-
#############################################################################
# Copyright (c): 2021, Huawei Tech. Co., Ltd.
# FileName : agent_collect.py
# Version :
# Date : 2021-4-7
# Description : Receives and stores agent data.
###########################... | 28.704225 | 84 | 0.590775 | 225 | 2,038 | 5.24 | 0.497778 | 0.063613 | 0.023749 | 0.025445 | 0.030534 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013986 | 0.228165 | 2,038 | 70 | 85 | 29.114286 | 0.735537 | 0.168302 | 0 | 0.175 | 0 | 0 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0.025 | 0.2 | 0.075 | 0.575 | 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 |
1b8a420d2bcddf1f2421e7f72b5eb58ce4caefe5 | 1,882 | py | Python | flskweb/app/forms.py | yunpochen/yunpochenex | e2d6f0774f59c91dbb1c20944670e992b11fc446 | [
"MIT"
] | null | null | null | flskweb/app/forms.py | yunpochen/yunpochenex | e2d6f0774f59c91dbb1c20944670e992b11fc446 | [
"MIT"
] | null | null | null | flskweb/app/forms.py | yunpochen/yunpochenex | e2d6f0774f59c91dbb1c20944670e992b11fc446 | [
"MIT"
] | null | null | null | #form.py
from flask_wtf import FlaskForm
from wtforms import StringField , PasswordField , SubmitField , BooleanField #導入用途是為了建立表單
from wtforms.validators import DataRequired, Length , Email , EqualTo , ValidationError #導入用途是為了建立表單 ValidationError是檢視重複輸入
from app.models import User
class RegisterForm(Flask... | 37.64 | 124 | 0.677471 | 188 | 1,882 | 6.744681 | 0.329787 | 0.121451 | 0.088328 | 0.097792 | 0.422713 | 0.422713 | 0.422713 | 0.347003 | 0.347003 | 0.347003 | 0 | 0.008027 | 0.205632 | 1,882 | 49 | 125 | 38.408163 | 0.840134 | 0.069607 | 0 | 0.333333 | 0 | 0 | 0.091608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.166667 | 0.133333 | 0 | 0.7 | 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 |
1b8ec678d983e9c07ff943ac5c35e7b0d4b7f1b7 | 4,274 | py | Python | tests/functional/test_cookiecutter.py | cjolowicz/cutty | 3a183fb06f5f521eaf1909514cb8c3d9e5b9c193 | [
"MIT"
] | 1 | 2021-11-15T20:27:59.000Z | 2021-11-15T20:27:59.000Z | tests/functional/test_cookiecutter.py | cjolowicz/cutty | 3a183fb06f5f521eaf1909514cb8c3d9e5b9c193 | [
"MIT"
] | 171 | 2020-07-24T07:30:20.000Z | 2022-03-31T14:05:45.000Z | tests/functional/test_cookiecutter.py | cjolowicz/cutty | 3a183fb06f5f521eaf1909514cb8c3d9e5b9c193 | [
"MIT"
] | null | null | null | """Functional tests for the cookiecutter CLI."""
from pathlib import Path
import pytest
from cutty.projects.projectconfig import PROJECT_CONFIG_FILE
from cutty.util.git import Repository
from tests.functional.conftest import RunCutty
from tests.functional.conftest import RunCuttyError
from tests.util.files import pro... | 32.135338 | 85 | 0.700047 | 517 | 4,274 | 5.676983 | 0.216634 | 0.03339 | 0.098126 | 0.11448 | 0.547871 | 0.454514 | 0.346848 | 0.298467 | 0.232709 | 0.202044 | 0 | 0 | 0.159102 | 4,274 | 132 | 86 | 32.378788 | 0.816639 | 0.142957 | 0 | 0.161765 | 0 | 0 | 0.15138 | 0.030666 | 0 | 0 | 0 | 0 | 0.161765 | 1 | 0.205882 | false | 0 | 0.147059 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1b9693a9a98018d1d794f607484d6a9955c4bcfd | 26,234 | py | Python | semi_supervised_learning/bayesian_gan_resgmcmc.py | gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC | 609f803ca334b21820dc020c16ad8113363a03e2 | [
"MIT"
] | 21 | 2020-06-30T01:14:45.000Z | 2022-03-31T08:03:17.000Z | semi_supervised_learning/bayesian_gan_resgmcmc.py | gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC | 609f803ca334b21820dc020c16ad8113363a03e2 | [
"MIT"
] | null | null | null | semi_supervised_learning/bayesian_gan_resgmcmc.py | gaoliyao/Replica_Exchange_Stochastic_Gradient_MCMC | 609f803ca334b21820dc020c16ad8113363a03e2 | [
"MIT"
] | 2 | 2020-11-02T22:06:10.000Z | 2021-07-17T23:35:21.000Z | import os
import sys
import argparse
import json
import time
import numpy as np
from math import ceil
from PIL import Image
import tensorflow as tf
from tensorflow.contrib import slim
from bgan_util import AttributeDict
from bgan_util import print_images, MnistDataset, CelebDataset, Cifar10, Cifar100, SVHN, ImageNe... | 44.844444 | 216 | 0.553556 | 3,133 | 26,234 | 4.393233 | 0.128631 | 0.025501 | 0.043229 | 0.007556 | 0.458878 | 0.395379 | 0.345394 | 0.27354 | 0.254722 | 0.254722 | 0 | 0.021988 | 0.337768 | 26,234 | 584 | 217 | 44.921233 | 0.770276 | 0.037394 | 0 | 0.258696 | 0 | 0 | 0.138621 | 0.003488 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004348 | 0.032609 | null | null | 0.054348 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1b99248cf89202e745cd85eb43c42cc8e832bb9e | 7,308 | py | Python | leetcode/dp/removeInvalidParentheses.py | BennyJane/algorithm_mad | 4173a4cc60d0f4f87b0cb7f6bc87d1eefbaff937 | [
"Apache-2.0"
] | null | null | null | leetcode/dp/removeInvalidParentheses.py | BennyJane/algorithm_mad | 4173a4cc60d0f4f87b0cb7f6bc87d1eefbaff937 | [
"Apache-2.0"
] | null | null | null | leetcode/dp/removeInvalidParentheses.py | BennyJane/algorithm_mad | 4173a4cc60d0f4f87b0cb7f6bc87d1eefbaff937 | [
"Apache-2.0"
] | null | null | null | from typing import List
# 经典题目:多种解决方案对比,技巧比较多
# 301. 删除无效的括号 (Hard)
# https://leetcode-cn.com/problems/remove-invalid-parentheses/
"""
思路:
暴力:找出合法子序列的数量以及删除字符个数,再筛选删除字符个树最小的数量
暴力:先计算最少删除字符个数,然后找出长度为target的合法子序列,统计数量
暴力:
"""
class Solution:
# 长度较小,25以内,可以考虑暴力求解
def removeInvalidParentheses(self, s: str) -> Li... | 29.828571 | 87 | 0.387247 | 738 | 7,308 | 3.818428 | 0.176152 | 0.012065 | 0.014904 | 0.027324 | 0.347055 | 0.268985 | 0.265436 | 0.201561 | 0.12775 | 0.12775 | 0 | 0.037129 | 0.502463 | 7,308 | 244 | 88 | 29.95082 | 0.737899 | 0.053503 | 0 | 0.505319 | 0 | 0 | 0.003528 | 0 | 0 | 0 | 0 | 0.004098 | 0 | 1 | 0.06383 | false | 0 | 0.005319 | 0 | 0.180851 | 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 |
1ba201713a17f0946e96404977d69bbe7bfeaa9e | 473 | py | Python | goodadmin/migrations/0004_stockpick_stockcode.py | waynezh86/tango_with_django_project | 8e55de6de5384e950d5d76e5a7573abccdc9b672 | [
"MIT"
] | null | null | null | goodadmin/migrations/0004_stockpick_stockcode.py | waynezh86/tango_with_django_project | 8e55de6de5384e950d5d76e5a7573abccdc9b672 | [
"MIT"
] | null | null | null | goodadmin/migrations/0004_stockpick_stockcode.py | waynezh86/tango_with_django_project | 8e55de6de5384e950d5d76e5a7573abccdc9b672 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2018-05-28 03:26
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('goodadmin', '0003_auto_20180525_2115'),
]
operations = [
migrations.AddFiel... | 22.52381 | 66 | 0.623679 | 52 | 473 | 5.480769 | 0.826923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110795 | 0.255814 | 473 | 20 | 67 | 23.65 | 0.698864 | 0.143763 | 0 | 0 | 1 | 0 | 0.134328 | 0.057214 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1bac189710c3d35a7261874ab3fec9068728a789 | 1,332 | py | Python | stacksites/sites/models.py | jasonvfang/StackSites | f9dadaf06e7c31c25ced8044b73f4032f6885116 | [
"MIT"
] | null | null | null | stacksites/sites/models.py | jasonvfang/StackSites | f9dadaf06e7c31c25ced8044b73f4032f6885116 | [
"MIT"
] | null | null | null | stacksites/sites/models.py | jasonvfang/StackSites | f9dadaf06e7c31c25ced8044b73f4032f6885116 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from datetime import datetime
from stacksites.database import db, CRUDMixin
from .utils import upload_index_for_new_site, make_s3_path, get_files_data, delete_site_from_s3, transfer_landing_demo
class Site(CRUDMixin, db.Model):
__tablename__ = 'site'
name = db.Column(db.String(64), nu... | 33.3 | 118 | 0.674174 | 185 | 1,332 | 4.567568 | 0.351351 | 0.047337 | 0.047337 | 0.071006 | 0.257988 | 0.151479 | 0.078107 | 0 | 0 | 0 | 0 | 0.007605 | 0.21021 | 1,332 | 39 | 119 | 34.153846 | 0.795627 | 0.015766 | 0 | 0.068966 | 0 | 0 | 0.025974 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0 | 0.103448 | 0.034483 | 0.551724 | 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 |
1bbaecee40ac08d60ba846b4af486a9aeb787ee5 | 417 | py | Python | research/coefficients.py | carrino/FrisPy | db9e59f465ee25d1c037d580c37da8f35b930b50 | [
"MIT"
] | null | null | null | research/coefficients.py | carrino/FrisPy | db9e59f465ee25d1c037d580c37da8f35b930b50 | [
"MIT"
] | null | null | null | research/coefficients.py | carrino/FrisPy | db9e59f465ee25d1c037d580c37da8f35b930b50 | [
"MIT"
] | null | null | null | import math
from pprint import pprint
import matplotlib.pyplot as plt
from frispy import Discs
model = Discs.ultrastar
# plot coefficients from -180 to 180
deg = range(-90, 90)
#lift = [model.C_lift(x * math.pi / 180) for x in deg]
#plt.plot(deg, lift)
#drag = [model.C_y(x * math.pi / 180) for x in deg]
#plt.plot(... | 18.954545 | 54 | 0.685851 | 78 | 417 | 3.628205 | 0.371795 | 0.063604 | 0.074205 | 0.106007 | 0.35689 | 0.35689 | 0.35689 | 0.35689 | 0.35689 | 0.35689 | 0 | 0.055556 | 0.179856 | 417 | 21 | 55 | 19.857143 | 0.77193 | 0.419664 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1bbc24c506923ef3577f4b69f690529be1ef8ccd | 840 | py | Python | 2019-10-10-at1-op2.py | mpassosbr/python3 | ff83f1f6f787206e49696134a99d68190606ed4f | [
"MIT"
] | null | null | null | 2019-10-10-at1-op2.py | mpassosbr/python3 | ff83f1f6f787206e49696134a99d68190606ed4f | [
"MIT"
] | null | null | null | 2019-10-10-at1-op2.py | mpassosbr/python3 | ff83f1f6f787206e49696134a99d68190606ed4f | [
"MIT"
] | null | null | null | print("Calculadora completa")
num1 = input("Digite o primeiro número: ")
operador = input("Digite um operador matemático (+, -, *, /): ")
num2 = input("Digite o segundo número: ")
msg_op = False
try:
num1 = float(num1)
num2 = float(num2)
if operador == "+":
resultado = num1 + num2
elif operador ... | 28.965517 | 64 | 0.590476 | 96 | 840 | 5.135417 | 0.375 | 0.081136 | 0.170385 | 0.20284 | 0.324544 | 0.324544 | 0.227181 | 0.227181 | 0.227181 | 0.227181 | 0 | 0.023064 | 0.277381 | 840 | 28 | 65 | 30 | 0.789127 | 0 | 0 | 0.107143 | 0 | 0 | 0.320238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.214286 | 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 |
1bbc4d3025dfc365162b966d5c364496b08164f1 | 2,259 | py | Python | mysfire/processors/_array_utils.py | DavidMChan/mysfire | 38172063b17c4935e7f2f68562431f8ec25d958d | [
"MIT"
] | 3 | 2022-02-14T20:36:02.000Z | 2022-03-14T22:55:08.000Z | mysfire/processors/_array_utils.py | DavidMChan/mysfire | 38172063b17c4935e7f2f68562431f8ec25d958d | [
"MIT"
] | null | null | null | mysfire/processors/_array_utils.py | DavidMChan/mysfire | 38172063b17c4935e7f2f68562431f8ec25d958d | [
"MIT"
] | null | null | null | from typing import Dict, List, Optional, Union
import torch
from ..torch_utils import padded_stack
def stack_arrays_as_dict(
batch: List[Optional[torch.Tensor]], pad: bool = True
) -> Optional[
Union[
torch.Tensor,
Dict[str, Union[Optional[torch.Tensor], Optional[List[Optional[torch.Tensor]]... | 38.948276 | 120 | 0.626826 | 350 | 2,259 | 3.962857 | 0.248571 | 0.095169 | 0.109589 | 0.055516 | 0.44845 | 0.403749 | 0.380678 | 0.380678 | 0.380678 | 0.331651 | 0 | 0.007225 | 0.264719 | 2,259 | 57 | 121 | 39.631579 | 0.827815 | 0.358123 | 0 | 0.096774 | 0 | 0 | 0.03 | 0 | 0 | 0 | 0 | 0.017544 | 0 | 1 | 0.032258 | false | 0 | 0.096774 | 0 | 0.322581 | 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 |
1bc1d25cbd3bee233b84e9084b4e8da9b084e88b | 2,971 | py | Python | matching_area/matching_area.py | neuroinformatics/bah2015_registration | 5ab58afcc6960d1460a457eeba5656384e1baa35 | [
"MIT"
] | null | null | null | matching_area/matching_area.py | neuroinformatics/bah2015_registration | 5ab58afcc6960d1460a457eeba5656384e1baa35 | [
"MIT"
] | null | null | null | matching_area/matching_area.py | neuroinformatics/bah2015_registration | 5ab58afcc6960d1460a457eeba5656384e1baa35 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import sys
from PIL import Image
from PIL import ImageStat
def matching_ish(labeled_filename, ish_filename, output_filename, slice):
N_AREA = 40
threshold = 10
volume_threshold = 10
volume_bias = 40
labeled_count = {}
labeled_volume = {}
result_value = {}
resu... | 27.766355 | 133 | 0.613598 | 414 | 2,971 | 4.157005 | 0.268116 | 0.108658 | 0.048809 | 0.059268 | 0.2086 | 0.168507 | 0.080186 | 0.031377 | 0.031377 | 0.031377 | 0 | 0.03719 | 0.266914 | 2,971 | 106 | 134 | 28.028302 | 0.752984 | 0.145742 | 0 | 0.059701 | 0 | 0.014925 | 0.082805 | 0.047544 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.044776 | null | null | 0.029851 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1bc32ccf0406f4e056127e1d61c9544aa8d0aede | 23,854 | py | Python | car.py | git4robot/CarGame | b735ef00736cf2f053030bf4d2e1271ff574a84a | [
"MIT"
] | null | null | null | car.py | git4robot/CarGame | b735ef00736cf2f053030bf4d2e1271ff574a84a | [
"MIT"
] | null | null | null | car.py | git4robot/CarGame | b735ef00736cf2f053030bf4d2e1271ff574a84a | [
"MIT"
] | null | null | null | from tkinter import *
from tkinter import messagebox, colorchooser
from logging import basicConfig, warning, info, error, DEBUG
from os import getcwd, path, mkdir
from time import strftime, time, localtime
from json import dump, load
from re import findall, search
from hmac import new, compare_digest
from hashl... | 41.996479 | 150 | 0.555672 | 2,669 | 23,854 | 4.853878 | 0.150993 | 0.035199 | 0.03242 | 0.014821 | 0.467927 | 0.397839 | 0.342416 | 0.300656 | 0.23682 | 0.210112 | 0 | 0.020488 | 0.314538 | 23,854 | 567 | 151 | 42.070547 | 0.771818 | 0.001803 | 0 | 0.25 | 0 | 0.019397 | 0.13041 | 0.027364 | 0 | 0 | 0 | 0 | 0 | 1 | 0.077586 | false | 0.0625 | 0.034483 | 0.006466 | 0.157328 | 0.019397 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1bcdd257b462c7aa8f06a0b54ae82a05ca99a1fe | 9,429 | py | Python | spark_scripts/schema.py | ChaithralakshmiS/Insight-DE-Project | 35e6901f7ff4b881f8685e258faae2bd6ef4becc | [
"Apache-2.0"
] | 1 | 2020-11-02T18:16:05.000Z | 2020-11-02T18:16:05.000Z | spark_scripts/schema.py | ChaithralakshmiS/Insight-DE-Project | 35e6901f7ff4b881f8685e258faae2bd6ef4becc | [
"Apache-2.0"
] | null | null | null | spark_scripts/schema.py | ChaithralakshmiS/Insight-DE-Project | 35e6901f7ff4b881f8685e258faae2bd6ef4becc | [
"Apache-2.0"
] | null | null | null | from pyspark.sql.types import *
from pyspark.sql.types import StringType
from pyspark.sql import SparkSession
from pyspark.sql import functions as F
from pyspark.sql.types import StringType, DoubleType, IntegerType
import postgres
def get_events_schema():
eventSchema = StructType([
StructField("global_ev... | 54.50289 | 92 | 0.708028 | 1,177 | 9,429 | 5.388275 | 0.102804 | 0.169978 | 0.295648 | 0.137181 | 0.671239 | 0.418795 | 0.207663 | 0.099968 | 0.069379 | 0.069379 | 0 | 0.012027 | 0.135857 | 9,429 | 172 | 93 | 54.819767 | 0.766323 | 0.00806 | 0 | 0.089744 | 0 | 0 | 0.244654 | 0.038174 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.038462 | 0 | 0.141026 | 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 |
1bd4c01c7c12fd1417a7bc8534b5dc2d9d5b5742 | 716 | py | Python | videodatabase.py | nsdown/Facebook-Video-Uploader | aaaf89c6e6710242cf99a8378047871854f0b851 | [
"MIT"
] | 4 | 2016-09-20T16:59:30.000Z | 2021-02-15T06:04:15.000Z | videodatabase.py | nsdown/Facebook-Video-Uploader | aaaf89c6e6710242cf99a8378047871854f0b851 | [
"MIT"
] | null | null | null | videodatabase.py | nsdown/Facebook-Video-Uploader | aaaf89c6e6710242cf99a8378047871854f0b851 | [
"MIT"
] | null | null | null | ## this example uses sqlite
#Download sqlite browser app for dealing with your database here:
#http://sqlitebrowser.org/
#from peewee import *
import peewee
db = peewee.SqliteDatabase('VideoUploads.db')
class Video(peewee.Model):
vid_url = peewee.CharField(max_length=4096)
class Meta:
database... | 22.375 | 65 | 0.684358 | 99 | 716 | 4.848485 | 0.565657 | 0.1 | 0.075 | 0.058333 | 0.070833 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007156 | 0.219274 | 716 | 31 | 66 | 23.096774 | 0.851521 | 0.307263 | 0 | 0 | 0 | 0 | 0.053388 | 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 |
1bd7d6edae28cbb509c7c86725dbb6d4b8f61c78 | 1,867 | py | Python | gifts_rest/router.py | brjones/gifts_rest | 8217e45fd1a692b00c9e9ae9f022ac2d2fab211e | [
"Apache-2.0"
] | null | null | null | gifts_rest/router.py | brjones/gifts_rest | 8217e45fd1a692b00c9e9ae9f022ac2d2fab211e | [
"Apache-2.0"
] | 7 | 2018-09-05T10:53:44.000Z | 2022-03-08T09:36:14.000Z | gifts_rest/router.py | brjones/gifts_rest | 8217e45fd1a692b00c9e9ae9f022ac2d2fab211e | [
"Apache-2.0"
] | 8 | 2018-09-03T14:29:28.000Z | 2020-07-30T12:54:04.000Z | """
.. See the NOTICE file distributed with this work for additional information
regarding copyright ownership.
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.... | 36.607843 | 81 | 0.664167 | 261 | 1,867 | 4.67433 | 0.45977 | 0.040164 | 0.068852 | 0.07377 | 0.215574 | 0.195902 | 0.172131 | 0.172131 | 0.172131 | 0.172131 | 0 | 0.007241 | 0.260311 | 1,867 | 50 | 82 | 37.34 | 0.876177 | 0.552223 | 0 | 0.565217 | 0 | 0 | 0.219895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0 | 0 | 0.608696 | 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 |
1bd7d78bebaa28f013806fe31eceb519533bef02 | 2,661 | py | Python | Scripts/Search.py | TheGreymanShow/House.Viz | 86773ebd8ed1802c7f38ace647ca28679b00f8fb | [
"MIT"
] | null | null | null | Scripts/Search.py | TheGreymanShow/House.Viz | 86773ebd8ed1802c7f38ace647ca28679b00f8fb | [
"MIT"
] | null | null | null | Scripts/Search.py | TheGreymanShow/House.Viz | 86773ebd8ed1802c7f38ace647ca28679b00f8fb | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import random
print("Welcome to House.Viz")
print("Please select your budget range :")
print("1. $50000-$100000")
print("2. $100000-$200000")
print("3. $200000-$300000")
print("4. $300000-$400000")
print("5. $400000-$500000")
print("6. $500000-$600... | 20.789063 | 104 | 0.615934 | 400 | 2,661 | 4.0925 | 0.2925 | 0.065974 | 0.049481 | 0.025657 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.26908 | 0.231868 | 2,661 | 128 | 105 | 20.789063 | 0.5318 | 0.007892 | 0 | 0 | 0 | 0 | 0.280303 | 0.025379 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033898 | 0 | 0.033898 | 0.262712 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 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 |
1bdb2b5b1bc407c6b6746270714454e239e70882 | 325 | py | Python | solutions/StringSplitAndJoin.py | kaleliguray/python_hackerRank_solution | 87aceaf028b02a72a7241d8024c19a72057a7994 | [
"MIT"
] | null | null | null | solutions/StringSplitAndJoin.py | kaleliguray/python_hackerRank_solution | 87aceaf028b02a72a7241d8024c19a72057a7994 | [
"MIT"
] | null | null | null | solutions/StringSplitAndJoin.py | kaleliguray/python_hackerRank_solution | 87aceaf028b02a72a7241d8024c19a72057a7994 | [
"MIT"
] | null | null | null | def split_and_join(line):
# write your code here
tempString = line.split(" ")
print("Split version : ",tempString)
tempString = "-".join(tempString)
print("Join version : ",tempString)
return tempString
if __name__ == '__main__':
line = input()
result = split_and_join(line)
print(re... | 27.083333 | 40 | 0.652308 | 37 | 325 | 5.405405 | 0.486486 | 0.08 | 0.12 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218462 | 325 | 12 | 41 | 27.083333 | 0.787402 | 0.061538 | 0 | 0 | 0 | 0 | 0.134868 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.2 | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
59f12fd798a2a69dd74bb6b4200c70eb2b7da278 | 1,359 | py | Python | etf.py | jeff-fred/TerminalStockViewer | 9991943a570c5b27539e3bddda8a74b5f89bee0f | [
"Apache-2.0"
] | null | null | null | etf.py | jeff-fred/TerminalStockViewer | 9991943a570c5b27539e3bddda8a74b5f89bee0f | [
"Apache-2.0"
] | null | null | null | etf.py | jeff-fred/TerminalStockViewer | 9991943a570c5b27539e3bddda8a74b5f89bee0f | [
"Apache-2.0"
] | null | null | null | # Functions for a ETF kind of quoteType, according to yfinance.
import yfinance as yf
## FUNCTIONS ##
# Get basic info of a ETF
def get_basic_ETF_info(ticker):
etfInfo = ticker.info
keys = [
'exchange',
'symbol',
'shortName',
'longBusinessSummary',]
# Get values correspon... | 21.234375 | 63 | 0.566593 | 141 | 1,359 | 5.411348 | 0.446809 | 0.023591 | 0.031455 | 0.049803 | 0.068152 | 0.068152 | 0 | 0 | 0 | 0 | 0 | 0.00113 | 0.348786 | 1,359 | 64 | 64 | 21.234375 | 0.861017 | 0.199411 | 0 | 0.204545 | 0 | 0 | 0.180297 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0.068182 | 0.022727 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
59fc53f2253f20ac320725150ea64e898c2d2488 | 638 | py | Python | uasyncio/test_readexactly.py | Carglglz/micropython-lib | 07102c56aa1087b97ee313cedc1d89fd20452e11 | [
"PSF-2.0"
] | 126 | 2019-07-19T14:42:41.000Z | 2022-03-21T22:22:19.000Z | uasyncio/test_readexactly.py | Carglglz/micropython-lib | 07102c56aa1087b97ee313cedc1d89fd20452e11 | [
"PSF-2.0"
] | 38 | 2019-08-28T01:46:31.000Z | 2022-03-17T05:46:51.000Z | uasyncio/test_readexactly.py | Carglglz/micropython-lib | 07102c56aa1087b97ee313cedc1d89fd20452e11 | [
"PSF-2.0"
] | 55 | 2019-08-02T09:32:33.000Z | 2021-12-22T11:25:51.000Z | from uasyncio import StreamReader
class MockSock:
def __init__(self, data_list):
self.data = data_list
def read(self, sz):
try:
return self.data.pop(0)
except IndexError:
return b""
mock = MockSock([
b"123",
b"234", b"5",
b"a", b"b", b"c", b"d", b... | 19.9375 | 59 | 0.581505 | 95 | 638 | 3.842105 | 0.557895 | 0.120548 | 0.142466 | 0.263014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043573 | 0.280564 | 638 | 31 | 60 | 20.580645 | 0.751634 | 0.083072 | 0 | 0 | 0 | 0 | 0.041166 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.136364 | false | 0.045455 | 0.045455 | 0 | 0.318182 | 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 |
940190340a14a0100d9c10e0f9a0ba757710a522 | 996 | py | Python | homepanelapi/cli.py | timmo001/python-homepanelapi | 584dcb76a010a74a307b4d16d27e82538b53fbf1 | [
"MIT"
] | 1 | 2019-10-10T19:28:40.000Z | 2019-10-10T19:28:40.000Z | homepanelapi/cli.py | timmo001/python-homepanelapi | 584dcb76a010a74a307b4d16d27e82538b53fbf1 | [
"MIT"
] | null | null | null | homepanelapi/cli.py | timmo001/python-homepanelapi | 584dcb76a010a74a307b4d16d27e82538b53fbf1 | [
"MIT"
] | null | null | null | """Enable CLI."""
import click
# pylint: disable=C0330
@click.command()
@click.option("--host", "-h", help="Home Panel's Hostname.")
@click.option("--port", "-P", help="The Home Panel Port.")
@click.option("--ssl", "-s", is_flag=True, help="Use ssl?")
@click.option("--username", "-u", help="Your Home Panel Username.")... | 29.294118 | 67 | 0.641566 | 135 | 996 | 4.651852 | 0.348148 | 0.140127 | 0.076433 | 0.05414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009467 | 0.151606 | 996 | 33 | 68 | 30.181818 | 0.733728 | 0.078313 | 0 | 0 | 0 | 0 | 0.225166 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0.115385 | 0.076923 | 0 | 0.115385 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
94034de14d0885cd9ea97bf573dd7814a68fa802 | 365 | py | Python | {{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/models.py | JuacyWillian/cookiecutter-kivymd | 1e2fd2d4dd7c0450f07c5a517f779b8351f2337c | [
"MIT"
] | null | null | null | {{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/models.py | JuacyWillian/cookiecutter-kivymd | 1e2fd2d4dd7c0450f07c5a517f779b8351f2337c | [
"MIT"
] | null | null | null | {{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/models.py | JuacyWillian/cookiecutter-kivymd | 1e2fd2d4dd7c0450f07c5a517f779b8351f2337c | [
"MIT"
] | null | null | null | import enum
from datetime import datetime
from functools import reduce
from sqlalchemy import (create_engine)
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
database_uri = 'sqlite:///:memory:'
debug = False
db = create_engine(database_uri, echo=debug)
Base = declarati... | 22.8125 | 55 | 0.805479 | 47 | 365 | 6.12766 | 0.510638 | 0.145833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115068 | 365 | 15 | 56 | 24.333333 | 0.891641 | 0 | 0 | 0 | 0 | 0 | 0.049451 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.545455 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
9403a7cf615d99aa7fc5ffc9a6767351d5fdfb53 | 184 | py | Python | tools/Verify.py | Zoctan/flask-api-seed | eef9e63415a563e31e256fc7380edb7c6b12a3ab | [
"Apache-2.0"
] | null | null | null | tools/Verify.py | Zoctan/flask-api-seed | eef9e63415a563e31e256fc7380edb7c6b12a3ab | [
"Apache-2.0"
] | null | null | null | tools/Verify.py | Zoctan/flask-api-seed | eef9e63415a563e31e256fc7380edb7c6b12a3ab | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import re
def email(e):
if re.match("[a-zA-Z0-9]+@+[a-zA-Z0-9]+\.+[a-zA-Z]", e) is not None:
return True
return False
| 16.727273 | 72 | 0.538043 | 34 | 184 | 2.911765 | 0.735294 | 0.090909 | 0.10101 | 0.121212 | 0.151515 | 0.151515 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0.217391 | 184 | 10 | 73 | 18.4 | 0.645833 | 0.233696 | 0 | 0 | 0 | 0.2 | 0.266187 | 0.266187 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
941073082ec8f56c279f2771f2b6efb89b1589fe | 2,690 | py | Python | modernrpc/tests/testsite/rpc_methods_stub/generic.py | germancollado/django-modern-rpc | afba94712b34dc3ab767166adb00f2cef8650365 | [
"MIT"
] | 89 | 2016-10-03T15:42:30.000Z | 2022-03-05T20:41:34.000Z | modernrpc/tests/testsite/rpc_methods_stub/generic.py | germancollado/django-modern-rpc | afba94712b34dc3ab767166adb00f2cef8650365 | [
"MIT"
] | 39 | 2017-02-10T16:44:38.000Z | 2022-03-10T09:38:16.000Z | modernrpc/tests/testsite/rpc_methods_stub/generic.py | germancollado/django-modern-rpc | afba94712b34dc3ab767166adb00f2cef8650365 | [
"MIT"
] | 17 | 2017-06-28T17:06:45.000Z | 2022-02-13T17:03:25.000Z | # coding: utf-8
import datetime
from modernrpc.core import rpc_method, PROTOCOL_KEY
from modernrpc.exceptions import RPCException, RPC_CUSTOM_ERROR_BASE
from modernrpc.helpers import get_builtin_date
# In this file, some methods are decorated with @rpc_method without parenthesis, some
# are decorated with @rpc_metho... | 26.633663 | 106 | 0.723048 | 372 | 2,690 | 5.056452 | 0.352151 | 0.057416 | 0.051037 | 0.063796 | 0.254652 | 0.22807 | 0.144604 | 0.032961 | 0 | 0 | 0 | 0.01055 | 0.189591 | 2,690 | 100 | 107 | 26.9 | 0.852294 | 0.404461 | 0 | 0.195122 | 0 | 0 | 0.051747 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.292683 | false | 0.02439 | 0.121951 | 0.073171 | 0.634146 | 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 |
941666395baa5ecb8042c588cf55ababb65e688a | 973 | py | Python | pdsensorvis/sensors/migrations/0004_auto_20190925_0809.py | mickeykkim/masters-project-sphere | 6dbe0be877058e647f5e3822932e5a70f181bb53 | [
"MIT"
] | 2 | 2019-10-05T20:59:41.000Z | 2019-11-01T20:25:39.000Z | pdsensorvis/sensors/migrations/0004_auto_20190925_0809.py | mickeykkim/masters-project-sphere | 6dbe0be877058e647f5e3822932e5a70f181bb53 | [
"MIT"
] | 6 | 2019-10-24T12:28:02.000Z | 2021-08-09T09:56:26.000Z | pdsensorvis/sensors/migrations/0004_auto_20190925_0809.py | mickeykkim/masters-project-sphere | 6dbe0be877058e647f5e3822932e5a70f181bb53 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.2 on 2019-09-25 07:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sensors', '0003_auto_20190924_2227'),
]
operations = [
migrations.AlterField(
model_name='cameradata',
name='filenam... | 33.551724 | 233 | 0.582734 | 107 | 973 | 5.158879 | 0.588785 | 0.108696 | 0.13587 | 0.157609 | 0.293478 | 0.293478 | 0.144928 | 0 | 0 | 0 | 0 | 0.074689 | 0.256937 | 973 | 28 | 234 | 34.75 | 0.688797 | 0.046249 | 0 | 0.454545 | 1 | 0 | 0.212743 | 0.024838 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
941732b20d956e658f8fa5be5c5cbd6bd57557ff | 2,879 | py | Python | mkt/comm/authorization.py | clouserw/zamboni | c4a568b69c1613f27da41d46328b2975cbdc1c07 | [
"BSD-3-Clause"
] | null | null | null | mkt/comm/authorization.py | clouserw/zamboni | c4a568b69c1613f27da41d46328b2975cbdc1c07 | [
"BSD-3-Clause"
] | null | null | null | mkt/comm/authorization.py | clouserw/zamboni | c4a568b69c1613f27da41d46328b2975cbdc1c07 | [
"BSD-3-Clause"
] | null | null | null | from django.conf import settings
from django.shortcuts import get_object_or_404
from rest_framework.permissions import BasePermission
from rest_framework.exceptions import PermissionDenied
from mkt.comm.models import (CommunicationNote, CommunicationThread,
user_has_perm_note, user_has_pe... | 35.9875 | 78 | 0.698854 | 359 | 2,879 | 5.406685 | 0.256267 | 0.072128 | 0.108192 | 0.1288 | 0.394127 | 0.364245 | 0.250902 | 0.250902 | 0.230294 | 0.205049 | 0 | 0.002688 | 0.224731 | 2,879 | 79 | 79 | 36.443038 | 0.866935 | 0.163251 | 0 | 0.318182 | 0 | 0 | 0.033517 | 0.009758 | 0 | 0 | 0 | 0 | 0 | 1 | 0.159091 | false | 0 | 0.113636 | 0.022727 | 0.590909 | 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 |
941b2ca591590bf6cb251a862bb9f5d341fbbeb2 | 553 | py | Python | Task2B.py | butanone/flooddefense | 04585b20389a39dc418756871b361d0ea2eaa871 | [
"MIT"
] | null | null | null | Task2B.py | butanone/flooddefense | 04585b20389a39dc418756871b361d0ea2eaa871 | [
"MIT"
] | null | null | null | Task2B.py | butanone/flooddefense | 04585b20389a39dc418756871b361d0ea2eaa871 | [
"MIT"
] | null | null | null | from floodsystem import station
from floodsystem import flood
from floodsystem.stationdata import build_station_list
from floodsystem import stationdata
def run():
"""Requirements for Task 2B"""
stations = build_station_list()
stationdata.update_water_levels(stations)
stations_over_threshold = flood.st... | 30.722222 | 80 | 0.748644 | 70 | 553 | 5.614286 | 0.485714 | 0.152672 | 0.160305 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012959 | 0.162749 | 553 | 18 | 81 | 30.722222 | 0.835853 | 0.0434 | 0 | 0 | 0 | 0 | 0.110687 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.384615 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9420facacb406ad56067d96e09a64f718c2c7ff1 | 3,382 | py | Python | hf/mining_libs/worker_registry.py | HashFast/hashfast-tools | 9617691ac997f12085b688c3ecc6746e8510976d | [
"BSD-3-Clause"
] | 1 | 2020-12-15T02:49:36.000Z | 2020-12-15T02:49:36.000Z | hf/mining_libs/worker_registry.py | HashFast/hashfast-tools | 9617691ac997f12085b688c3ecc6746e8510976d | [
"BSD-3-Clause"
] | null | null | null | hf/mining_libs/worker_registry.py | HashFast/hashfast-tools | 9617691ac997f12085b688c3ecc6746e8510976d | [
"BSD-3-Clause"
] | 3 | 2015-09-02T00:31:06.000Z | 2020-12-15T02:52:06.000Z | #!/usr/bin/env python
# Copyright (c) 2014, HashFast Technologies LLC
# All rights reserved.
#
# based heavily upon:
# Stratum mining proxy (https://github.com/slush0/stratum-mining-proxy)
# Copyright (C) 2012 Marek Palatinus <slush@satoshilabs.com>
#
# Redistribution and use in source and binary forms, with or w... | 43.358974 | 117 | 0.696334 | 434 | 3,382 | 5.343318 | 0.4447 | 0.068995 | 0.027598 | 0.027598 | 0.14489 | 0.089694 | 0.089694 | 0.089694 | 0.058646 | 0.058646 | 0 | 0.005787 | 0.23359 | 3,382 | 77 | 118 | 43.922078 | 0.888889 | 0.52395 | 0 | 0 | 0 | 0 | 0.086185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.114286 | 0.057143 | 0.057143 | 0.457143 | 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 |
9424911d7118cbfe57038c5f147e4fd0e9a77a51 | 270 | py | Python | results/informer_dataset_ftS_sl96_ll48_pl24_dm512_nh8_el2_dl1_df2048_atprob_fc5_ebtimeF_dtTrue_mxTrue_test_0/test.py | LeoYoung1996/Experiment | e3e875e0fd9b0367b761c51d9862b9da5e448576 | [
"Apache-2.0"
] | null | null | null | results/informer_dataset_ftS_sl96_ll48_pl24_dm512_nh8_el2_dl1_df2048_atprob_fc5_ebtimeF_dtTrue_mxTrue_test_0/test.py | LeoYoung1996/Experiment | e3e875e0fd9b0367b761c51d9862b9da5e448576 | [
"Apache-2.0"
] | null | null | null | results/informer_dataset_ftS_sl96_ll48_pl24_dm512_nh8_el2_dl1_df2048_atprob_fc5_ebtimeF_dtTrue_mxTrue_test_0/test.py | LeoYoung1996/Experiment | e3e875e0fd9b0367b761c51d9862b9da5e448576 | [
"Apache-2.0"
] | null | null | null | """
@Time : 2021/12/15 17:23
@Author : Leo
@FileName: test.py
@SoftWare: PyCharm
@description:
"""
import numpy as np
a = np.load('true.npy')
b = np.load('pred.npy')
print(a[0])
print("-----------------------------------------------")
print(b[0]) | 16.875 | 57 | 0.47037 | 35 | 270 | 3.628571 | 0.742857 | 0.094488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063636 | 0.185185 | 270 | 16 | 58 | 16.875 | 0.513636 | 0.348148 | 0 | 0 | 0 | 0 | 0.414474 | 0.309211 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
942aef872ffde27f9a12b67979f66ec7aa204303 | 3,992 | py | Python | fun.py | OfficialZandrex/discord-zeebot | 2990cdd234909d7b9b8541d812b1f21fd539377b | [
"MIT"
] | null | null | null | fun.py | OfficialZandrex/discord-zeebot | 2990cdd234909d7b9b8541d812b1f21fd539377b | [
"MIT"
] | null | null | null | fun.py | OfficialZandrex/discord-zeebot | 2990cdd234909d7b9b8541d812b1f21fd539377b | [
"MIT"
] | null | null | null | import discord
from discord.ext.commands import Bot
from discord.ext import commands
import asyncio
import json
import os
import chalk
import youtube_dl
import random
import io
import aiohttp
import time
import datetime
from datetime import datetime as dt
import logging
import re
from itertools import c... | 34.119658 | 105 | 0.555361 | 472 | 3,992 | 4.633475 | 0.372881 | 0.045725 | 0.053498 | 0.065844 | 0.237311 | 0.184728 | 0.171925 | 0.171925 | 0.084134 | 0.084134 | 0 | 0.016083 | 0.299098 | 3,992 | 117 | 106 | 34.119658 | 0.765547 | 0.086673 | 0 | 0.168539 | 0 | 0 | 0.219303 | 0.009445 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022472 | false | 0.05618 | 0.191011 | 0 | 0.235955 | 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 |
9430700c32612cfc5e1844d4058f1c1c894dd9ad | 1,544 | py | Python | code-files/frosch2010_Tabu_language.py | Frosch2010/discord-tabu | b6d4fd460e18f692892a0402f0c6d0b2584a3cbc | [
"MIT"
] | 2 | 2020-12-30T21:47:19.000Z | 2020-12-30T21:47:40.000Z | code-files/frosch2010_Tabu_language.py | Frosch2010/discord-tabu | b6d4fd460e18f692892a0402f0c6d0b2584a3cbc | [
"MIT"
] | 4 | 2021-04-04T14:24:37.000Z | 2021-04-18T20:26:25.000Z | code-files/frosch2010_Tabu_language.py | Frosch2010/discord-tabu | b6d4fd460e18f692892a0402f0c6d0b2584a3cbc | [
"MIT"
] | null | null | null | from frosch2010_Tabu_settings import tabu_settings
class tabu_language:
tabu_wrong_arguments = ""
tabu_game_already_running = ""
tabu_no_game_running = ""
tabu_more_players_needed = ""
tabu_user_already_joined = ""
tabu_user_joined_game = ""
tabu_user_started_game = ""
... | 23.753846 | 51 | 0.652202 | 189 | 1,544 | 4.597884 | 0.407407 | 0.073648 | 0.034522 | 0.036824 | 0.048331 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005249 | 0.259715 | 1,544 | 65 | 52 | 23.753846 | 0.755031 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021277 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
943dfaaca3994f6734b0afe88c664b7f4c42d23c | 463 | py | Python | common/aist_common/grammar/observation_in_collection.py | sfahad1414/AGENT | 84069edc96b6190bb03ffd5099cbc8966061a563 | [
"Apache-2.0"
] | 15 | 2020-05-06T16:17:56.000Z | 2022-03-30T12:25:16.000Z | common/aist_common/grammar/observation_in_collection.py | dionny/AGENT | 8a833406b590e23623fcc67db99f6f964d002396 | [
"Apache-2.0"
] | 2 | 2021-08-25T16:17:16.000Z | 2022-02-10T06:35:58.000Z | common/aist_common/grammar/observation_in_collection.py | dionny/AGENT | 8a833406b590e23623fcc67db99f6f964d002396 | [
"Apache-2.0"
] | 7 | 2020-04-07T18:47:55.000Z | 2022-03-30T12:14:58.000Z | from aist_common.grammar.observation import Observation
class ObservationInCollection(Observation):
def __init__(self):
super().__init__()
self.capture = None
def with_capture(self, capture):
self.capture = capture
def __str__(self):
output = "OBSERVE" if self.observe els... | 25.722222 | 60 | 0.632829 | 48 | 463 | 5.8125 | 0.5 | 0.197133 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.272138 | 463 | 17 | 61 | 27.235294 | 0.827893 | 0 | 0 | 0 | 0 | 0 | 0.069114 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0 | 0.461538 | 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 |
943fb8e7c187104267c5ba3261b2f080a060533c | 1,016 | py | Python | backend/app/app/db/init_db.py | reppertj/earworm | 5c3d457e2c09ce96be75fcb19cd9acf819b84c4b | [
"MIT"
] | 18 | 2021-04-23T20:54:31.000Z | 2022-02-19T13:10:41.000Z | backend/app/app/db/init_db.py | reppertj/earworm | 5c3d457e2c09ce96be75fcb19cd9acf819b84c4b | [
"MIT"
] | null | null | null | backend/app/app/db/init_db.py | reppertj/earworm | 5c3d457e2c09ce96be75fcb19cd9acf819b84c4b | [
"MIT"
] | 2 | 2021-05-13T10:26:11.000Z | 2021-07-10T03:55:48.000Z | from sqlalchemy.orm import Session
from app import crud, schemas
from app.core.config import settings
from app.db import base # noqa: F401
# make sure all SQL Alchemy models are imported (app.db.base) before initializing DB
# otherwise, SQL Alchemy might fail to initialize relationships properly
# for more details: ... | 36.285714 | 91 | 0.722441 | 139 | 1,016 | 5.107914 | 0.489209 | 0.078873 | 0.092958 | 0.076056 | 0.076056 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006135 | 0.197835 | 1,016 | 27 | 92 | 37.62963 | 0.865031 | 0.246063 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.052632 | 0.210526 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
94422b979e354cd81c2b35ac2261b461e91b8b1e | 2,466 | py | Python | starter_code/organism/utilities.py | mbchang/societal-decision-making | 23fd6de4df33f985d360330a9d5a2c29faeb8e52 | [
"MIT"
] | 38 | 2020-08-17T14:18:22.000Z | 2022-02-27T13:12:40.000Z | starter_code/organism/utilities.py | mbchang/societal-decision-making | 23fd6de4df33f985d360330a9d5a2c29faeb8e52 | [
"MIT"
] | 3 | 2021-06-08T22:17:35.000Z | 2022-03-12T00:46:27.000Z | starter_code/organism/utilities.py | mbchang/societal-decision-making | 23fd6de4df33f985d360330a9d5a2c29faeb8e52 | [
"MIT"
] | 3 | 2020-08-21T05:28:35.000Z | 2022-03-31T17:07:48.000Z | from collections import OrderedDict
import numpy as np
def get_second_highest_bid(bids, winner):
if len(bids) == 1:
second_highest_bid = 0
else:
second_highest_bid = -np.inf
for index, b in bids.items():
if b > second_highest_bid and index != winner:
second_h... | 38.53125 | 88 | 0.673966 | 313 | 2,466 | 4.961661 | 0.15655 | 0.219575 | 0.164842 | 0.045074 | 0.724404 | 0.661945 | 0.617514 | 0.596909 | 0.574372 | 0.574372 | 0 | 0.003263 | 0.254258 | 2,466 | 63 | 89 | 39.142857 | 0.841218 | 0 | 0 | 0.614035 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 1 | 0.087719 | false | 0 | 0.035088 | 0 | 0.210526 | 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 |
944c8a550d7da15ca6c45584197de0216ee208a6 | 2,024 | py | Python | registrator.py | anbo-de/PythonClientForSpringBootAdmin | f6f07c47feeb20e30f66cffd2b5e20a84cc43df3 | [
"MIT"
] | 2 | 2019-11-20T00:18:11.000Z | 2019-12-10T16:52:26.000Z | registrator.py | anbo-de/PythonClientForSpringBootAdmin | f6f07c47feeb20e30f66cffd2b5e20a84cc43df3 | [
"MIT"
] | null | null | null | registrator.py | anbo-de/PythonClientForSpringBootAdmin | f6f07c47feeb20e30f66cffd2b5e20a84cc43df3 | [
"MIT"
] | 1 | 2021-03-12T05:59:54.000Z | 2021-03-12T05:59:54.000Z | import threading
import time
import requests
import json
import logging
from requests.auth import AuthBase, HTTPBasicAuth
class Registrator(threading.Thread):
"""
class running as thread to contact the Spring Boot Admin Server
"""
jsonHeaders = {"Content-type": "application/json",
... | 37.481481 | 104 | 0.642787 | 197 | 2,024 | 6.553299 | 0.461929 | 0.083656 | 0.058869 | 0.041828 | 0.117738 | 0.117738 | 0.060418 | 0 | 0 | 0 | 0 | 0.001361 | 0.274209 | 2,024 | 53 | 105 | 38.188679 | 0.877468 | 0.088933 | 0 | 0 | 0 | 0 | 0.099341 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073171 | false | 0.097561 | 0.146341 | 0 | 0.390244 | 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 |
944dc26e17360dad078c808fab275e2113d6c304 | 754 | py | Python | Python/JSON/readCPU.py | Mastermindzh/Code-examples | b682cf77425f397ab2c359ad4b74bc87273ad01d | [
"MIT"
] | null | null | null | Python/JSON/readCPU.py | Mastermindzh/Code-examples | b682cf77425f397ab2c359ad4b74bc87273ad01d | [
"MIT"
] | null | null | null | Python/JSON/readCPU.py | Mastermindzh/Code-examples | b682cf77425f397ab2c359ad4b74bc87273ad01d | [
"MIT"
] | null | null | null | # Python read JSON example :)
# execute: clear && python3 readCPU.py
# make sure "example.json" resides in the same directory as this file
import json
from pprint import pprint
#lees json file in (of voer script uit die het maakt)
with open('example.json') as inputFile:
data = json.load(inputFile)
print("json ob... | 27.925926 | 69 | 0.680371 | 116 | 754 | 4.422414 | 0.525862 | 0.077973 | 0.109162 | 0.066277 | 0.155945 | 0.155945 | 0.155945 | 0.155945 | 0 | 0 | 0 | 0.009346 | 0.148541 | 754 | 26 | 70 | 29 | 0.78972 | 0.339523 | 0 | 0.133333 | 0 | 0 | 0.283673 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0.733333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
944e5953115118130b0d3a75025377ca5570d64a | 3,656 | py | Python | backend/player_management/models.py | flokain/ulti-players | 76dea6651abf6c89b4aa2c30561657a48173b251 | [
"MIT"
] | null | null | null | backend/player_management/models.py | flokain/ulti-players | 76dea6651abf6c89b4aa2c30561657a48173b251 | [
"MIT"
] | null | null | null | backend/player_management/models.py | flokain/ulti-players | 76dea6651abf6c89b4aa2c30561657a48173b251 | [
"MIT"
] | null | null | null | from datetime import date
from random import choices
from django.contrib.auth.models import User
from django.db import models
from django.contrib.auth import models as authModels
# Create your models here.
class Person(models.Model):
SEX = [
['male']*2,
['female']*2,
]
""" personal infor... | 27.908397 | 92 | 0.705416 | 431 | 3,656 | 5.890951 | 0.338747 | 0.069319 | 0.060654 | 0.090981 | 0.334384 | 0.291847 | 0.280032 | 0.224498 | 0.166995 | 0.166995 | 0 | 0.007133 | 0.194748 | 3,656 | 130 | 93 | 28.123077 | 0.855299 | 0.012309 | 0 | 0.226667 | 0 | 0 | 0.079807 | 0.035088 | 0 | 0 | 0 | 0.007692 | 0 | 1 | 0.013333 | false | 0.04 | 0.066667 | 0.013333 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
944e84fc59c2d92d4eea5702b2d2a069a2ebd6d7 | 87,232 | py | Python | WebBrickLibs/EventHandlers/HVAC.py | AndyThirtover/wb_gateway | 69f9c870369085f4440033201e2fb263a463a523 | [
"BSD-3-Clause"
] | null | null | null | WebBrickLibs/EventHandlers/HVAC.py | AndyThirtover/wb_gateway | 69f9c870369085f4440033201e2fb263a463a523 | [
"BSD-3-Clause"
] | null | null | null | WebBrickLibs/EventHandlers/HVAC.py | AndyThirtover/wb_gateway | 69f9c870369085f4440033201e2fb263a463a523 | [
"BSD-3-Clause"
] | null | null | null | # Copyright L.P.Klyne 2013
# Licenced under 3 clause BSD licence
# $Id: HVAC.py 3201 2009-06-15 15:21:25Z philipp.schuster $
#
# Heating, Ventilation and Air Conditioning File
#
# This file includes the following classes to create a full HVAC solution
# class HeatingVentilationAC( BaseHandler ):
# ... | 44.780287 | 165 | 0.529668 | 8,298 | 87,232 | 5.391299 | 0.092311 | 0.017882 | 0.025035 | 0.028612 | 0.597112 | 0.5305 | 0.494982 | 0.463397 | 0.429935 | 0.403626 | 0 | 0.004625 | 0.291109 | 87,232 | 1,947 | 166 | 44.803287 | 0.71883 | 0.250665 | 0 | 0.508744 | 0 | 0 | 0.111543 | 0.007249 | 0 | 0 | 0 | 0.001027 | 0 | 0 | null | null | 0.003975 | 0.003975 | 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 |
944f1867425d2d74f51f6cfa084cfadecd7c92c5 | 4,084 | py | Python | modules/structure.py | zhester/hzpy | d41c002493a4f5b4667870fca0a2849307d51b34 | [
"BSD-2-Clause"
] | 3 | 2016-08-31T21:54:06.000Z | 2018-05-29T13:37:02.000Z | modules/structure.py | zhester/hzpy | d41c002493a4f5b4667870fca0a2849307d51b34 | [
"BSD-2-Clause"
] | null | null | null | modules/structure.py | zhester/hzpy | d41c002493a4f5b4667870fca0a2849307d51b34 | [
"BSD-2-Clause"
] | null | null | null | ##############################################################################
#
# structure.py - Structure Data Access Class
#
##############################################################################
import struct
#=============================================================================
class structur... | 32.412698 | 79 | 0.44907 | 392 | 4,084 | 4.622449 | 0.272959 | 0.033113 | 0.024283 | 0.03532 | 0.284216 | 0.240618 | 0.139073 | 0.139073 | 0.112583 | 0.112583 | 0 | 0 | 0.302155 | 4,084 | 125 | 80 | 32.672 | 0.635789 | 0.25 | 0 | 0.179487 | 0 | 0 | 0.041119 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.051282 | null | null | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.