hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a046f5eb9200705de487c8e1c936389e801af46
3,935
py
Python
games/arcade_pinball/arcade_button.py
bn102/surrortg-sdk
5f51515d0fd83741b3359b9a682c0a9afc38886f
[ "MIT" ]
21
2020-11-03T23:41:56.000Z
2022-03-21T04:11:46.000Z
games/arcade_pinball/arcade_button.py
bn102/surrortg-sdk
5f51515d0fd83741b3359b9a682c0a9afc38886f
[ "MIT" ]
5
2021-02-11T14:36:03.000Z
2021-07-20T11:45:07.000Z
games/arcade_pinball/arcade_button.py
bn102/surrortg-sdk
5f51515d0fd83741b3359b9a682c0a9afc38886f
[ "MIT" ]
11
2020-11-13T11:14:33.000Z
2022-03-21T04:11:51.000Z
import asyncio import logging import pigpio from games.arcade_pinball.config import ( BUTTON_PRESS_TIME, MAX_HOLD_TIME, MAX_INPUTS_PER_INPUT, PER_SECONDS, ) from surrortg.inputs import Switch from surrortg.inputs.input_filters import SpamFilter class ArcadeMultiButton(Switch): def __init__( ...
28.722628
77
0.596696
4a0470a029c9a3c99094242233164502dd912201
1,009
py
Python
demo.py
mqingyn/tornask
35570301870c1192ed9985454d129b74286ae77b
[ "BSD-3-Clause" ]
7
2015-01-15T08:00:10.000Z
2018-12-07T15:21:26.000Z
demo.py
mqingyn/tornask
35570301870c1192ed9985454d129b74286ae77b
[ "BSD-3-Clause" ]
1
2015-06-05T14:19:35.000Z
2016-01-09T01:21:19.000Z
demo.py
mqingyn/tornask
35570301870c1192ed9985454d129b74286ae77b
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Created by mqingyn on 2015/1/15. import time from datetime import datetime from tornask.manager import taskmgr, run_tasks from tornado.concurrent import run_on_executor from tornado.netutil import ThreadedResolver, IOLoop from tornado.httpclient import AsyncHTTPClient fr...
28.828571
87
0.701685
4a047265754689cf181b41db5cac8583477cd0c8
1,848
py
Python
python-base/base/network.py
lovelifeming/AI-Studies-Road
d92e234211f89cc92c74dd49e9e5b9394b7fa4ed
[ "Apache-2.0" ]
null
null
null
python-base/base/network.py
lovelifeming/AI-Studies-Road
d92e234211f89cc92c74dd49e9e5b9394b7fa4ed
[ "Apache-2.0" ]
null
null
null
python-base/base/network.py
lovelifeming/AI-Studies-Road
d92e234211f89cc92c74dd49e9e5b9394b7fa4ed
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2020/5/12 10:39 # @Author : zengsm # @File : network import datetime import requests from bs4 import BeautifulSoup def add_github_host(sys: str = 'windows'): """ 一般Github的访问有两部分:主站的访问和二级域名的资源加载(比如样式文件等)一般Github加载缓慢,主要是 assets-cdn.github.com、avatars0.gi...
30.8
108
0.651515
4a0473985300d9368f6de4fcbddb3aaa723aa7a7
496
py
Python
env/lib/python3.8/site-packages/plotly/validators/box/marker/line/_color.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
env/lib/python3.8/site-packages/plotly/validators/box/marker/line/_color.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-08-09T02:30:14.000Z
2022-03-12T00:50:14.000Z
env/lib/python3.8/site-packages/plotly/validators/box/marker/line/_color.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__(self, plotly_name="color", parent_name="box.marker.line", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
35.428571
85
0.643145
4a04757df96c6f275c7408658ea501ba8141d6a7
2,211
py
Python
blog/test_models.py
FarmCodeGary/InspirationForge
2b78e9c388608ac19ed0ecb114ce5e0cc1f33213
[ "MIT" ]
1
2015-09-16T17:14:36.000Z
2015-09-16T17:14:36.000Z
blog/test_models.py
FarmCodeGary/InspirationForge
2b78e9c388608ac19ed0ecb114ce5e0cc1f33213
[ "MIT" ]
null
null
null
blog/test_models.py
FarmCodeGary/InspirationForge
2b78e9c388608ac19ed0ecb114ce5e0cc1f33213
[ "MIT" ]
null
null
null
""" Unit tests for the blog app's Django models. """ import os.path import datetime from django.test import TestCase from django.utils import timezone from .models import Article, image_filename class ArticleMethodTests(TestCase): """ Tests for methods of the Article model. """ def test_save_genera...
31.140845
78
0.622795
4a0475a410dc8df71227778fcee5c8b68ed9f583
945
py
Python
chapter2/PLU.py
ElliotShang/numerical-analysis
769610dc45cc4498b49f8311d7023b725c1c7bc2
[ "MIT" ]
null
null
null
chapter2/PLU.py
ElliotShang/numerical-analysis
769610dc45cc4498b49f8311d7023b725c1c7bc2
[ "MIT" ]
null
null
null
chapter2/PLU.py
ElliotShang/numerical-analysis
769610dc45cc4498b49f8311d7023b725c1c7bc2
[ "MIT" ]
null
null
null
import numpy as np def LU_partial_decomposition(matrix): n, m = matrix.shape P = np.identity(n) L = np.identity(n) U = matrix.copy() PF = np.identity(n) LF = np.zeros((n, n)) for k in range(0, n - 1): index = np.argmax(abs(U[k:, k])) index = index + k i...
24.868421
52
0.424339
4a0475bb4d6d608070747e517200f2f2d59c33c0
908
py
Python
tests/complex_predictor.py
BuzzniAILab/mlserving
8b8add9dbe5cdd6392e0c87ee789492de0a1c70e
[ "MIT" ]
13
2020-08-23T17:35:53.000Z
2022-02-10T14:14:03.000Z
tests/complex_predictor.py
orlevi111/ganesha
137cc388806fc98f7768298da01ebeddf03f9464
[ "MIT" ]
3
2020-08-20T21:09:01.000Z
2021-06-25T15:33:54.000Z
tests/complex_predictor.py
orlevi111/ganesha
137cc388806fc98f7768298da01ebeddf03f9464
[ "MIT" ]
3
2021-04-12T01:56:22.000Z
2021-10-05T12:50:12.000Z
from mlserving.api import Response, Request from mlserving.api import request_schema from mlserving.predictors import RESTPredictor REQUEST_SCHEMA = { 'feature1': 'float', 'feature2': 'float', 'feature3': 'float' } @request_schema(REQUEST_SCHEMA) class MyPredictor(RESTPredictor): def __init__(self): ...
26.705882
65
0.629956
4a0475e3fc2a68ea3d69ee764ea979e9c55068f0
3,422
py
Python
designate/tests/test_zone_manager/test_tasks.py
cneill/designate-testing
7bf320062d85a12bff2aee8d26c133941a289fc4
[ "Apache-2.0" ]
null
null
null
designate/tests/test_zone_manager/test_tasks.py
cneill/designate-testing
7bf320062d85a12bff2aee8d26c133941a289fc4
[ "Apache-2.0" ]
null
null
null
designate/tests/test_zone_manager/test_tasks.py
cneill/designate-testing
7bf320062d85a12bff2aee8d26c133941a289fc4
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Hewlett-Packard Development Company, L.P. # # Author: Endre Karlson <endre.karlson@hp.com> # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/lice...
31.685185
77
0.651666
4a0476b53903af7e9fd3ea1829e95c7b43231660
9,301
py
Python
src/sentry/tasks/deletion.py
mastacheata/sentry
cc4536901db0323d1e6433416abf1d0ecd977d61
[ "BSD-3-Clause" ]
null
null
null
src/sentry/tasks/deletion.py
mastacheata/sentry
cc4536901db0323d1e6433416abf1d0ecd977d61
[ "BSD-3-Clause" ]
null
null
null
src/sentry/tasks/deletion.py
mastacheata/sentry
cc4536901db0323d1e6433416abf1d0ecd977d61
[ "BSD-3-Clause" ]
null
null
null
""" sentry.tasks.deletion ~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import from celery.utils.log import get_task_logger from sentry.exceptions import DeleteAborted from sentry.sig...
35.5
86
0.68498
4a0476f1a9bad507517307c4625123ace3969be6
10,387
py
Python
sdk/python/pulumi_azure_nextgen/network/v20160330/get_express_route_circuit.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/network/v20160330/get_express_route_circuit.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/network/v20160330/get_express_route_circuit.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
39.645038
353
0.67623
4a04783d4ceeece8fdbdb130728ea34b76cdff57
1,395
py
Python
ooobuild/dyn/text/x_text_portion_append.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/dyn/text/x_text_portion_append.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/dyn/text/x_text_portion_append.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http: // www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
37.702703
90
0.774194
4a0478f8bac47cb0367413d9b39f773ab918909f
124,589
py
Python
autotest/ogr/ogr_gml_read.py
kammerer/gdal
a981e817543921ddc262f0ea2c137b52dea1e3f2
[ "MIT" ]
1
2018-12-19T14:08:20.000Z
2018-12-19T14:08:20.000Z
autotest/ogr/ogr_gml_read.py
kammerer/gdal
a981e817543921ddc262f0ea2c137b52dea1e3f2
[ "MIT" ]
null
null
null
autotest/ogr/ogr_gml_read.py
kammerer/gdal
a981e817543921ddc262f0ea2c137b52dea1e3f2
[ "MIT" ]
null
null
null
#!/usr/bin/env pytest # -*- coding: utf-8 -*- ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: GML Reading Driver testing. # Author: Frank Warmerdam <warmerdam@pobox.com> # #############################################################...
33.99427
522
0.59356
4a047a371c46e555832238041f0eb90f9214d29f
7,523
py
Python
quicklogic_fasm/qlfasm.py
QuickLogic-Corp/quicklogic-fasm
d525679a4b62d674f5941f366ac54a4629eeabd9
[ "Apache-2.0" ]
1
2022-03-22T10:03:19.000Z
2022-03-22T10:03:19.000Z
quicklogic_fasm/qlfasm.py
QuickLogic-Corp/quicklogic-fasm
d525679a4b62d674f5941f366ac54a4629eeabd9
[ "Apache-2.0" ]
8
2021-06-25T15:38:43.000Z
2022-01-26T12:33:27.000Z
quicklogic_fasm/qlfasm.py
QuickLogic-Corp/quicklogic-fasm
d525679a4b62d674f5941f366ac54a4629eeabd9
[ "Apache-2.0" ]
1
2020-07-02T11:00:44.000Z
2020-07-02T11:00:44.000Z
#!/usr/bin/env python3 import argparse import os import errno from pathlib import Path from fasm_utils.database import Database import pkg_resources from quicklogic_fasm.qlassembler.pp3.ql725a import QL725AAssembler from quicklogic_fasm.qlassembler.eos_s3.ql732b import QL732BAssembler def load_quicklogic_database(db_r...
32.012766
114
0.589393
4a047a424df37419b1b0b550af76fe2cbcc5c7c1
4,756
py
Python
__init__.py
NeonGeckoCom/skill-about
8d29702b8e903d48fb809f31f0456c388d40cfbc
[ "BSD-3-Clause" ]
null
null
null
__init__.py
NeonGeckoCom/skill-about
8d29702b8e903d48fb809f31f0456c388d40cfbc
[ "BSD-3-Clause" ]
null
null
null
__init__.py
NeonGeckoCom/skill-about
8d29702b8e903d48fb809f31f0456c388d40cfbc
[ "BSD-3-Clause" ]
null
null
null
# NEON AI (TM) SOFTWARE, Software Development Kit & Application Framework # All trademark and other rights reserved by their respective owners # Copyright 2008-2022 Neongecko.com Inc. # Contributors: Daniel McKnight, Guy Daniels, Elon Gasper, Richard Leeds, # Regina Bloomstine, Casimiro Ferreira, Andrii Pernatii, Kiril...
44.037037
117
0.684609
4a047a57bcb9fcca8618531f3025a8f20b92ffc7
6,921
py
Python
cogs/DebugMenuCog.py
jakenjarvis/Lakshmi
de805f7488c1a6b3a4e0d3804be7ecd6c814b446
[ "Apache-2.0" ]
1
2020-08-24T01:31:20.000Z
2020-08-24T01:31:20.000Z
cogs/DebugMenuCog.py
jakenjarvis/Lakshmi
de805f7488c1a6b3a4e0d3804be7ecd6c814b446
[ "Apache-2.0" ]
null
null
null
cogs/DebugMenuCog.py
jakenjarvis/Lakshmi
de805f7488c1a6b3a4e0d3804be7ecd6c814b446
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from typing import Union import random import asyncio import aiohttp import discord from discord.ext import commands, menus import LakshmiErrors from contents.character.Investigator import Investigator from contents.character.generator.CharacterGenerator im...
33.597087
122
0.583731
4a047d042824776f74da10006c9f57769a1f634f
1,433
py
Python
model.py
LanJosh/QuestionAnswer
38066e3268ba1a95640ae87f4066bf7223c1ad4f
[ "MIT" ]
null
null
null
model.py
LanJosh/QuestionAnswer
38066e3268ba1a95640ae87f4066bf7223c1ad4f
[ "MIT" ]
null
null
null
model.py
LanJosh/QuestionAnswer
38066e3268ba1a95640ae87f4066bf7223c1ad4f
[ "MIT" ]
null
null
null
""" Model for extracting answer sentence from the context paragraph. """ from nltk.tokenize.moses import MosesDetokenizer from tqdm import tqdm import json import numpy as np def cosine_similarity(x, y): """ Compute the cosine similarity between two vectors x and y """ return (x.dot(y)) / (np.sqrt(x.dot(x))...
25.589286
73
0.667132
4a047fbe7794f5aa8bc06feb615cb1db3a1cea7f
1,409
py
Python
combine_all_cities_and_sightings_locations.py
KyleS22/Air-Quality-Impact-On-UFO-Sightings
c715c4bd2afc0b3c3c443a0285e3392a85a36a84
[ "MIT" ]
null
null
null
combine_all_cities_and_sightings_locations.py
KyleS22/Air-Quality-Impact-On-UFO-Sightings
c715c4bd2afc0b3c3c443a0285e3392a85a36a84
[ "MIT" ]
null
null
null
combine_all_cities_and_sightings_locations.py
KyleS22/Air-Quality-Impact-On-UFO-Sightings
c715c4bd2afc0b3c3c443a0285e3392a85a36a84
[ "MIT" ]
null
null
null
import csv from tqdm import tqdm US_CITIES_FILE = "all_us_cities.csv" SIGHTINGS_FILE = "scrubbed.csv" cached_city_locations = [] print("Processing City Locations:") with open(US_CITIES_FILE) as cities_csv: city_reader = csv.reader(cities_csv) city_lines = [line for line in cities_csv] city_lines = city_...
27.096154
83
0.635202
4a047fd378d7ba5a8d538f12eb64c31a3869320a
3,514
py
Python
cnfencoder/lexer.py
jreig/cnf-encoder
9f3f098bc0c7b5aaf87ae4bf949222ae80950a5a
[ "MIT" ]
null
null
null
cnfencoder/lexer.py
jreig/cnf-encoder
9f3f098bc0c7b5aaf87ae4bf949222ae80950a5a
[ "MIT" ]
null
null
null
cnfencoder/lexer.py
jreig/cnf-encoder
9f3f098bc0c7b5aaf87ae4bf949222ae80950a5a
[ "MIT" ]
null
null
null
import re from enum import Enum # CONSTANT CHARACTERS EOF = '\0' VAR_INIT = 'X' OP_NEG = '¬' # (U+00AC) OP_AND = '∧' # (U+2227) OP_OR = '∨' # (U+2228) OP_XOR = '⊕' # (U+2295) OP_IMP = '→' # (U+2192) OP_EQU = '↔' # (U+2194) P_OPEN = '(' P_CLOSE = ')' class TokenType(Enum): EOF = -1 LITERAL ...
26.824427
82
0.553785
4a0481372e175bbcdc30f8f1f83440bd7678f638
90,085
py
Python
dep/reportlab/src/reportlab/graphics/charts/axes.py
csterryliu/Legal-Attest-Letter-Generator
4a7df7ea324dfee38a39daab10777a1c9d222c42
[ "MIT" ]
52
2016-09-30T05:53:45.000Z
2021-12-26T12:07:48.000Z
dep/reportlab/src/reportlab/graphics/charts/axes.py
csterryliu/Legal-Attest-Letter-Generator
4a7df7ea324dfee38a39daab10777a1c9d222c42
[ "MIT" ]
2
2016-09-30T06:05:01.000Z
2017-11-05T12:58:47.000Z
dep/reportlab/src/reportlab/graphics/charts/axes.py
csterryliu/Legal-Attest-Letter-Generator
4a7df7ea324dfee38a39daab10777a1c9d222c42
[ "MIT" ]
15
2016-11-03T08:50:15.000Z
2022-01-14T07:04:35.000Z
#Copyright ReportLab Europe Ltd. 2000-2016 #see license.txt for license details __version__='3.3.0' __doc__="""Collection of axes for charts. The current collection comprises axes for charts using cartesian coordinate systems. All axes might have tick marks and labels. There are two dichotomies for axes: one of X and ...
38.497863
222
0.567153
4a0482ba3208a18ba273714efaf5f0e402f5be45
786
py
Python
libflip/Globals.py
fivelinesinteractive/libflip
476ec1ca95a25690bc011c73065fa44bae1fdfd7
[ "Apache-2.0" ]
null
null
null
libflip/Globals.py
fivelinesinteractive/libflip
476ec1ca95a25690bc011c73065fa44bae1fdfd7
[ "Apache-2.0" ]
null
null
null
libflip/Globals.py
fivelinesinteractive/libflip
476ec1ca95a25690bc011c73065fa44bae1fdfd7
[ "Apache-2.0" ]
null
null
null
from .Assets import Assets class Globals: instance = None MAX_SIZE=35 cache = {} def __init__(self, width, height, grid_size, collisions): self.WIDTH = width self.HEIGHT = height self.GRID_SIZE = grid_size self.GRID_WIDTH = width / grid_size self.GRID_HEIGHT = hei...
29.111111
78
0.566158
4a04862aa91f58d6591324921defbe6f6be5c75a
4,570
py
Python
postman/query.py
chhell/django-postman
dbd48a7a94f4abd4748c174cf052b8da6f66800b
[ "BSD-3-Clause" ]
null
null
null
postman/query.py
chhell/django-postman
dbd48a7a94f4abd4748c174cf052b8da6f66800b
[ "BSD-3-Clause" ]
null
null
null
postman/query.py
chhell/django-postman
dbd48a7a94f4abd4748c174cf052b8da6f66800b
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from types import MethodType from django import VERSION from django.db.models.sql.compiler import SQLCompiler from django.db.models.sql.constants import INNER from django.db.models.sql.query import Query import six class Proxy(object): """ Code base for an instance pro...
35.984252
121
0.608534
4a04875d68c746e0462f5b1eaa2b02718ab3abe6
9,949
py
Python
tests/impls/nn_index/test_flann.py
Purg/SMQTK-Indexing
24b5f875ec01a93f1c4842381a6de88041166604
[ "BSD-3-Clause" ]
null
null
null
tests/impls/nn_index/test_flann.py
Purg/SMQTK-Indexing
24b5f875ec01a93f1c4842381a6de88041166604
[ "BSD-3-Clause" ]
null
null
null
tests/impls/nn_index/test_flann.py
Purg/SMQTK-Indexing
24b5f875ec01a93f1c4842381a6de88041166604
[ "BSD-3-Clause" ]
null
null
null
import random import unittest.mock as mock import unittest import numpy import pytest from smqtk_core.configuration import configuration_test_helper from smqtk_descriptors.impls.descriptor_element.memory import DescriptorMemoryElement from smqtk_indexing import NearestNeighborsIndex from smqtk_indexing.impls.nn_index...
38.265385
90
0.630315
4a0488e75dedeb3ec1939c6de893eb1649f55af3
6,621
py
Python
src/xdist/plugin.py
xifeng/pytest-xdist
c6f7a035e417287262bd897701a56c8f4bb41a0a
[ "MIT" ]
1
2020-04-07T11:56:52.000Z
2020-04-07T11:56:52.000Z
src/xdist/plugin.py
xifeng/pytest-xdist
c6f7a035e417287262bd897701a56c8f4bb41a0a
[ "MIT" ]
9
2020-08-11T15:19:55.000Z
2022-03-12T00:11:12.000Z
src/xdist/plugin.py
xifeng/pytest-xdist
c6f7a035e417287262bd897701a56c8f4bb41a0a
[ "MIT" ]
null
null
null
import os import py import pytest def auto_detect_cpus(): try: from os import sched_getaffinity except ImportError: if os.environ.get("TRAVIS") == "true": # workaround https://bitbucket.org/pypy/pypy/issues/2375 return 2 try: from os import cpu_coun...
30.511521
103
0.554599
4a0488f0bd563f055b3335621761cfecf7f28f23
4,185
py
Python
src/programy/storage/stores/nosql/mongo/store/sets.py
cdoebler1/AIML2
ee692ec5ea3794cd1bc4cc8ec2a6b5e5c20a0d6a
[ "MIT" ]
345
2016-11-23T22:37:04.000Z
2022-03-30T20:44:44.000Z
src/programy/storage/stores/nosql/mongo/store/sets.py
MikeyBeez/program-y
00d7a0c7d50062f18f0ab6f4a041068e119ef7f0
[ "MIT" ]
275
2016-12-07T10:30:28.000Z
2022-02-08T21:28:33.000Z
src/programy/storage/stores/nosql/mongo/store/sets.py
VProgramMist/modified-program-y
f32efcafafd773683b3fe30054d5485fe9002b7d
[ "MIT" ]
159
2016-11-28T18:59:30.000Z
2022-03-20T18:02:44.000Z
""" Copyright (c) 2016-2020 Keith Sterling http://www.keithsterling.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, m...
43.14433
120
0.668578
4a0489445f8442712f4c574ae5320faf87130e1f
5,300
py
Python
tests/test_measure.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
tests/test_measure.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
tests/test_measure.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # This file is part of fionautil. # http://github.com/fitnr/fionautil # Licensed under the GPLv3 license: # http://http://opensource.org/licenses/GPL-3.0 # Copyright (c) 2015, Neil Freeman <contact@fakeisthenewreal.org> from unittest import TestCase as PythonTestCase imp...
36.054422
104
0.58
4a048a4699f307a27e0541938a9354a1ad9f37c9
4,984
py
Python
sdk/lusid/models/upsert_reference_portfolio_constituents_response.py
mneedham/lusid-sdk-python
edabec16b357ba3fc48a53f3faacb4f94b18843e
[ "MIT" ]
null
null
null
sdk/lusid/models/upsert_reference_portfolio_constituents_response.py
mneedham/lusid-sdk-python
edabec16b357ba3fc48a53f3faacb4f94b18843e
[ "MIT" ]
null
null
null
sdk/lusid/models/upsert_reference_portfolio_constituents_response.py
mneedham/lusid-sdk-python
edabec16b357ba3fc48a53f3faacb4f94b18843e
[ "MIT" ]
null
null
null
# coding: utf-8 """ LUSID API FINBOURNE Technology # noqa: E501 The version of the OpenAPI document: 0.11.2808 Contact: info@finbourne.com Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class UpsertReferencePortfolioConstituentsResponse(obje...
27.535912
103
0.585875
4a048a857e34e04641f73171e4a2e7c6f9873a3c
33,492
py
Python
src/werkzeug/wsgi.py
kam193/werkzeug
1129879c79f8415d4ea9a67d7c5ce2f2e1d28c78
[ "BSD-3-Clause" ]
null
null
null
src/werkzeug/wsgi.py
kam193/werkzeug
1129879c79f8415d4ea9a67d7c5ce2f2e1d28c78
[ "BSD-3-Clause" ]
null
null
null
src/werkzeug/wsgi.py
kam193/werkzeug
1129879c79f8415d4ea9a67d7c5ce2f2e1d28c78
[ "BSD-3-Clause" ]
1
2020-12-29T18:02:18.000Z
2020-12-29T18:02:18.000Z
import io import re from functools import partial from functools import update_wrapper from itertools import chain from ._internal import _encode_idna from ._internal import _make_encode_wrapper from ._internal import _to_bytes from ._internal import _to_str from .urls import uri_to_iri from .urls import url_join from...
34.245399
83
0.619282
4a048bcacdaad085a4137c32e7c493975cc7012a
5,548
py
Python
spacex_dash_app.py
staceybellerose/data_science_capstone
5439c9d4acebd21c3c0163ee864555b5c1b2b65e
[ "Unlicense" ]
null
null
null
spacex_dash_app.py
staceybellerose/data_science_capstone
5439c9d4acebd21c3c0163ee864555b5c1b2b65e
[ "Unlicense" ]
null
null
null
spacex_dash_app.py
staceybellerose/data_science_capstone
5439c9d4acebd21c3c0163ee864555b5c1b2b65e
[ "Unlicense" ]
null
null
null
# NB: to run this app, the following commands need to be run first # pip3 install pandas dash wget # Import required libraries import pandas as pd import dash import wget import dash_html_components as html import dash_core_components as dcc from dash.dependencies import Input, Output import plotly.express as px # ...
50.899083
153
0.504867
4a048c87b5e42ddeb3dd2cc2f3d1fdfaeaa5f516
18,558
py
Python
ciso/_version.py
ioos/ciso
1972e291b3e05cef9340a03ed1ada719ec0b5fa8
[ "BSD-2-Clause" ]
1
2019-07-19T18:49:46.000Z
2019-07-19T18:49:46.000Z
ciso/_version.py
ioos/ciso
1972e291b3e05cef9340a03ed1ada719ec0b5fa8
[ "BSD-2-Clause" ]
6
2015-10-16T20:23:30.000Z
2019-02-07T13:47:55.000Z
ciso/_version.py
ioos/ciso
1972e291b3e05cef9340a03ed1ada719ec0b5fa8
[ "BSD-2-Clause" ]
2
2016-09-26T20:57:51.000Z
2019-09-01T00:41:17.000Z
# This file helps to compute a version number in source trees obtained from # git-archive tarball (such as those provided by githubs download-from-tag # feature). Distribution tarballs (built by setup.py sdist) and build # directories (produced by setup.py build) will contain a much shorter file # that just contains th...
32.730159
79
0.58072
4a048e785c1664602d0a2c073dfad6e9a8749d58
3,960
py
Python
Spy-Games/code.py
RiyaVachhani/ga-learner-dst-repo
8daabf510dca0c0056167292534532fbfb54bf6f
[ "MIT" ]
1
2020-10-15T04:15:40.000Z
2020-10-15T04:15:40.000Z
Spy-Games/code.py
RiyaVachhani/ga-learner-dst-repo
8daabf510dca0c0056167292534532fbfb54bf6f
[ "MIT" ]
null
null
null
Spy-Games/code.py
RiyaVachhani/ga-learner-dst-repo
8daabf510dca0c0056167292534532fbfb54bf6f
[ "MIT" ]
null
null
null
# -------------- #Code starts here #Function to read file def read_file(path): #Opening of the file located in the path in 'read' mode file = open(path,'r') #Reading of the first line of the file and storing it in a variable sentence = file.readline() #Closing of the file file.cl...
25.384615
72
0.694949
4a048f5a2ba4c2c903869e6b962a1d9486d91c42
10,035
py
Python
relancer-exp/original_notebooks/mathijs_weather-data-in-new-york-city-2016/new-york-city-taxi-playground-with-xgboost.py
Chenguang-Zhu/relancer
bf1a175b77b7da4cff12fbc5de17dd55246d264d
[ "Apache-2.0" ]
1
2022-03-05T22:27:49.000Z
2022-03-05T22:27:49.000Z
relancer-exp/original_notebooks/mathijs_weather-data-in-new-york-city-2016/new-york-city-taxi-playground-with-xgboost.py
Chenguang-Zhu/relancer
bf1a175b77b7da4cff12fbc5de17dd55246d264d
[ "Apache-2.0" ]
null
null
null
relancer-exp/original_notebooks/mathijs_weather-data-in-new-york-city-2016/new-york-city-taxi-playground-with-xgboost.py
Chenguang-Zhu/relancer
bf1a175b77b7da4cff12fbc5de17dd55246d264d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[ ]: import warnings warnings.filterwarnings('ignore') # In[ ]: import numpy as np # linear algebra import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv) import os print(os.listdir("../../../input/mathijs_weather-data-in-new-york-city-2016")) import seab...
27.121622
250
0.695167
4a048fe1c8c8bf217b7bd91aee66e13fb67aca2c
9,282
py
Python
google/cloud/debugger_v2/services/debugger2/transports/base.py
LaudateCorpus1/python-debugger-client
57c2e9396b2b56e7bed4fe49d68f2cb0a9495a22
[ "Apache-2.0" ]
null
null
null
google/cloud/debugger_v2/services/debugger2/transports/base.py
LaudateCorpus1/python-debugger-client
57c2e9396b2b56e7bed4fe49d68f2cb0a9495a22
[ "Apache-2.0" ]
27
2021-06-25T12:57:10.000Z
2022-03-07T16:15:58.000Z
google/cloud/debugger_v2/services/debugger2/transports/base.py
LaudateCorpus1/python-debugger-client
57c2e9396b2b56e7bed4fe49d68f2cb0a9495a22
[ "Apache-2.0" ]
3
2021-06-25T11:17:38.000Z
2022-01-29T08:09:28.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
36.116732
101
0.599871
4a0490040816dea6b93bf555ecc04b510896f2d9
1,721
py
Python
Grid2Demand/test_gd.py
EntaiWang99/Grid2Demand
362f1766ee0946b59a466801178b00b3887b1952
[ "MIT" ]
3
2021-01-13T09:16:39.000Z
2021-03-23T02:55:41.000Z
Grid2Demand/test_gd.py
EntaiWang99/Grid2Demand
362f1766ee0946b59a466801178b00b3887b1952
[ "MIT" ]
null
null
null
Grid2Demand/test_gd.py
EntaiWang99/Grid2Demand
362f1766ee0946b59a466801178b00b3887b1952
[ "MIT" ]
2
2021-01-17T04:55:15.000Z
2021-03-31T12:12:04.000Z
# import osm2gmns as og # net = og.getNetFromOSMFile('map.osm', network_type=('railway', 'auto', 'bike', 'walk'), POIs=True, default_lanes=True,default_speed=True) # og.connectPOIWithNet(net) # og.generateNodeActivityInfo(net) # og.outputNetToCSV(net) import grid2demand_0525a as gd import os os.chdir('./Norfolk_VA') ...
40.023256
139
0.790819
4a04906d2e4c943891a8d911fd0655df16b83131
2,439
py
Python
atest/testresources/listeners/attributeverifyinglistener.py
kyle1986/robortframe
07dc8f0f1777cd1671bfe832cd42778a50e414f0
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
atest/testresources/listeners/attributeverifyinglistener.py
kyle1986/robortframe
07dc8f0f1777cd1671bfe832cd42778a50e414f0
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
atest/testresources/listeners/attributeverifyinglistener.py
kyle1986/robortframe
07dc8f0f1777cd1671bfe832cd42778a50e414f0
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import os ROBOT_LISTENER_API_VERSION = '2' OUTFILE = open(os.path.join(os.getenv('TEMPDIR'), 'listener_attrs.txt'), 'w') START_ATTRS = 'doc starttime ' END_ATTRS = START_ATTRS + 'endtime elapsedtime status ' KW_ATTRS = 'args assign kwname libname type' EXPECTED_TYPES = {'elapsedtime': (int, long), 'tags': list, 'args...
36.954545
103
0.613366
4a04909b3850c8c0a25f63dcd6807b3cf7bbdc46
792
py
Python
main.py
lhericourt/trading
2564cd4f3a6724e876cd56a0e1250dc7fbab8f17
[ "MIT" ]
null
null
null
main.py
lhericourt/trading
2564cd4f3a6724e876cd56a0e1250dc7fbab8f17
[ "MIT" ]
null
null
null
main.py
lhericourt/trading
2564cd4f3a6724e876cd56a0e1250dc7fbab8f17
[ "MIT" ]
null
null
null
from config.load import load_conf from db.apply_migration import do_migration from data.candle import get_candles, upload_to_db_candles, get_candles_all_symbols from data.economic_calendar import upload_to_db_events, get_events_on_period from utils.utils import convert_to_number from config.log import setup_custom_lo...
30.461538
82
0.785354
4a049155fabd22f5ba2f602a16bbe2942062e9be
1,687
py
Python
image_utli.py
USC-MCL/Func-Pool
20c43df0eb2da68d8d2e01c03d66a1a4e4e06081
[ "MIT" ]
3
2020-01-24T19:03:44.000Z
2021-04-13T17:22:36.000Z
image_utli.py
USC-MCL/Func-Pool
20c43df0eb2da68d8d2e01c03d66a1a4e4e06081
[ "MIT" ]
null
null
null
image_utli.py
USC-MCL/Func-Pool
20c43df0eb2da68d8d2e01c03d66a1a4e4e06081
[ "MIT" ]
3
2020-01-24T19:03:45.000Z
2020-04-13T08:27:13.000Z
# 20201.03.18 import numpy as np from skimage.measure import block_reduce import cv2 def MeanPooling(X, win=2): return block_reduce(X, (1, win, win, 1), np.mean) def MaxPooling(X, win=2): return block_reduce(X, (1, win, win, 1), np.max) def mybilinear_interpolation(X, win): eX = np.zeros((X.shape[0], X.s...
35.145833
82
0.391227
4a04920be1b5b12f4fc5ff0de763a702f1ffaae2
363
py
Python
HW3/Mykyta_Marchukov/HW_3_2.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
null
null
null
HW3/Mykyta_Marchukov/HW_3_2.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
null
null
null
HW3/Mykyta_Marchukov/HW_3_2.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
6
2022-02-22T22:30:49.000Z
2022-03-28T12:51:19.000Z
enter_number = input("Enter a four-digit number: ") list_number = list(enter_number) product_of_numbers = int(list_number[0])*int(list_number[1])*int(list_number[2])*int(list_number[3]) print(product_of_numbers) print(enter_number[::-1]) sorted_list_number = list_number sorted_list_number.sort() sorted_number = "".jo...
33
100
0.793388
4a0492b33996084654b13b4aa1b25b64f5163b03
2,780
py
Python
c8ydm/core/configuration.py
SoftwareAG/cumulocity-devicemanagement-agent
60f42ce83db6fb6b3455777deaf8082d71a7da09
[ "Apache-2.0" ]
10
2021-08-06T09:29:24.000Z
2022-03-11T05:29:32.000Z
c8ydm/core/configuration.py
SoftwareAG/cumulocity-devicemanagement-agent
60f42ce83db6fb6b3455777deaf8082d71a7da09
[ "Apache-2.0" ]
35
2021-08-03T12:49:17.000Z
2022-03-04T08:24:40.000Z
c8ydm/core/configuration.py
SoftwareAG/cumulocity-devicemanagement-agent
60f42ce83db6fb6b3455777deaf8082d71a7da09
[ "Apache-2.0" ]
8
2021-09-01T09:19:14.000Z
2022-02-24T15:53:06.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Copyright (c) 2021 Software AG, Darmstadt, Germany and/or its licensors SPDX-License-Identifier: Apache-2.0 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the ...
35.189873
99
0.648921
4a0492db24c70477862921adfa826f2c08b028d6
5,802
py
Python
tests/rules/test_metadata.py
victor-torres/arche
1bc31a1397e15860be7c3762be86c47f9e839704
[ "MIT" ]
null
null
null
tests/rules/test_metadata.py
victor-torres/arche
1bc31a1397e15860be7c3762be86c47f9e839704
[ "MIT" ]
null
null
null
tests/rules/test_metadata.py
victor-torres/arche
1bc31a1397e15860be7c3762be86c47f9e839704
[ "MIT" ]
null
null
null
from arche import SH_URL from arche.rules.metadata import ( check_errors, check_outcome, check_response_ratio, compare_finish_time, compare_response_ratio, ) from arche.rules.result import Level from conftest import create_result, Job import pytest error_input = [ ( {"log_count/ERROR":...
30.376963
87
0.596001
4a04930fe1f1226421a99b64b8253128132a9713
9,751
py
Python
Algorithm.Python/DataConsolidationAlgorithm.py
echoplaza/Lean
66f32cffe2ddb07532c8160299a7b1b6d67429ee
[ "Apache-2.0" ]
1
2021-02-11T21:13:12.000Z
2021-02-11T21:13:12.000Z
Algorithm.Python/DataConsolidationAlgorithm.py
echoplaza/Lean
66f32cffe2ddb07532c8160299a7b1b6d67429ee
[ "Apache-2.0" ]
1
2021-01-23T17:59:52.000Z
2021-01-23T17:59:52.000Z
Algorithm.Python/DataConsolidationAlgorithm.py
echoplaza/Lean
66f32cffe2ddb07532c8160299a7b1b6d67429ee
[ "Apache-2.0" ]
null
null
null
# QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. # Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the Licen...
53.872928
151
0.715209
4a04937e82da59896dba130a79db72687e757b9d
430
py
Python
plotly/validators/mesh3d/colorbar/_tickangle.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
2
2020-03-24T11:41:14.000Z
2021-01-14T07:59:43.000Z
plotly/validators/mesh3d/colorbar/_tickangle.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
null
null
null
plotly/validators/mesh3d/colorbar/_tickangle.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
4
2019-06-03T14:49:12.000Z
2022-01-06T01:05:12.000Z
import _plotly_utils.basevalidators class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): def __init__( self, plotly_name='tickangle', parent_name='mesh3d.colorbar', **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_...
26.875
78
0.639535
4a04961a8a9161e89891e9c4af87c1e5628d6ea8
1,741
py
Python
flask/fundamentals/dojo_survey/flask_app/config/mysqlconnection.py
ZhouSusan/CodingDojoPython
8d89c9a94a3be18e79fbf24e25348eae8c96a338
[ "MIT" ]
null
null
null
flask/fundamentals/dojo_survey/flask_app/config/mysqlconnection.py
ZhouSusan/CodingDojoPython
8d89c9a94a3be18e79fbf24e25348eae8c96a338
[ "MIT" ]
null
null
null
flask/fundamentals/dojo_survey/flask_app/config/mysqlconnection.py
ZhouSusan/CodingDojoPython
8d89c9a94a3be18e79fbf24e25348eae8c96a338
[ "MIT" ]
null
null
null
import pymysql.cursors class MySQLConnection: def __init__(self, db): connection = pymysql.connect(host = 'localhost', user = 'root', password = 'root', db = db, ...
44.641026
103
0.506031
4a0496bd87f705c63373afc912e40d7c7277e27c
10,490
py
Python
kedro/framework/cli/jupyter.py
hfwittmann/kedro
b0d4fcd8f19b49a7916d78fd09daeb6209a7b6c6
[ "Apache-2.0" ]
1
2021-11-25T12:33:13.000Z
2021-11-25T12:33:13.000Z
kedro/framework/cli/jupyter.py
MerelTheisenQB/kedro
1eaa2e0fa5d80f96e18ea60b9f3d6e6efc161827
[ "Apache-2.0" ]
null
null
null
kedro/framework/cli/jupyter.py
MerelTheisenQB/kedro
1eaa2e0fa5d80f96e18ea60b9f3d6e6efc161827
[ "Apache-2.0" ]
null
null
null
"""A collection of helper functions to integrate with Jupyter/IPython and CLI commands for working with Kedro catalog. """ import json import os import re import sys from collections import Counter from glob import iglob from pathlib import Path from typing import Any, Dict, Iterable, List from warnings import warn im...
32.276923
90
0.687321
4a04974e87ad7ea9ff32ca7ab304310ef01f443f
3,140
py
Python
setup.py
idorax/tmt
f8ddd02838b2e7f761d53bf640225b456c896f64
[ "MIT" ]
null
null
null
setup.py
idorax/tmt
f8ddd02838b2e7f761d53bf640225b456c896f64
[ "MIT" ]
null
null
null
setup.py
idorax/tmt
f8ddd02838b2e7f761d53bf640225b456c896f64
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 import re import sys from io import open from setuptools import setup # Parse version from the spec file with open('tmt.spec', encoding='utf-8') as specfile: lines = "\n".join(line.rstrip() for line in specfile) version = re.search('Version: (.+)', lines).group(1).rstrip...
25.12
72
0.637898
4a049ac55276bd30c07a697ade4d1798d29c367f
12,044
py
Python
sdk/python/pulumi_azure_native/aad/v20170101/outputs.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_native/aad/v20170101/outputs.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_native/aad/v20170101/outputs.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
33.087912
182
0.63102
4a049b859132f4e20e0703f81cecf6c9ef0991ee
813
py
Python
py/selenium/__init__.py
bjuric/selenium
0f59eaf594be28cab598b40477cf04fa0cc3892f
[ "Apache-2.0" ]
2
2020-07-10T15:14:32.000Z
2020-12-13T13:49:51.000Z
py/selenium/__init__.py
bjuric/selenium
0f59eaf594be28cab598b40477cf04fa0cc3892f
[ "Apache-2.0" ]
7
2021-01-21T14:05:28.000Z
2021-08-12T17:21:44.000Z
py/selenium/__init__.py
bjuric/selenium
0f59eaf594be28cab598b40477cf04fa0cc3892f
[ "Apache-2.0" ]
4
2020-09-18T18:58:26.000Z
2020-09-20T09:46:20.000Z
# Licensed to the Software Freedom Conservancy (SFC) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The SFC licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
40.65
62
0.768758
4a049c18521bc3bb64618ff56e6301506d3aa645
2,704
py
Python
finetune.py
JaeZheng/unet
f0fac997a1ee7ce962e14d51f97f704229fc1a75
[ "MIT" ]
null
null
null
finetune.py
JaeZheng/unet
f0fac997a1ee7ce962e14d51f97f704229fc1a75
[ "MIT" ]
null
null
null
finetune.py
JaeZheng/unet
f0fac997a1ee7ce962e14d51f97f704229fc1a75
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author : JaeZheng # @Time : 2019/11/11 17:19 # @File : finetune.py from model import * from data import * import os import keras.backend.tensorflow_backend as KTF from data import meanIOU # 指定显卡 os.environ["CUDA_VISIBLE_DEVICES"] = "0" # 自适应分配显存 config = tf.Confi...
39.764706
120
0.725962
4a049d56d96044b592b7d96afd74bd089d52dc80
1,857
py
Python
bindings/python/utils.py
Hridoy-31/dlite
e7b754a5e21a13c7f8318c6a245bb8f1634b27e2
[ "MIT" ]
10
2020-04-08T06:25:27.000Z
2022-03-15T06:54:53.000Z
bindings/python/utils.py
Hridoy-31/dlite
e7b754a5e21a13c7f8318c6a245bb8f1634b27e2
[ "MIT" ]
117
2019-12-16T14:43:41.000Z
2022-03-21T19:46:58.000Z
bindings/python/utils.py
Hridoy-31/dlite
e7b754a5e21a13c7f8318c6a245bb8f1634b27e2
[ "MIT" ]
5
2020-04-15T16:23:29.000Z
2021-12-07T08:40:54.000Z
import os import dlite thisdir = os.path.dirname(__file__) def instance_from_dict(d): """Returns a new DLite instance created from dict `d`, which should be of the same form as returned by the Instance.asdict() method. """ meta = dlite.get_instance(d['meta']) if meta.is_metameta: try: ...
29.015625
74
0.520194
4a049ec1243efb067c0639399468c8c9beb34939
749
py
Python
Leetcode/0587. Erect the Fence/0587.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
Leetcode/0587. Erect the Fence/0587.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
Leetcode/0587. Erect the Fence/0587.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
class Solution: def outerTrees(self, trees: List[List[int]]) -> List[List[int]]: hull = [] trees.sort(key=lambda x: (x[0], x[1])) def cross(p: List[int], q: List[int], r: List[int]) -> int: return (q[1] - p[1]) * (r[0] - q[0]) - (q[0] - p[0]) * (r[1] - q[1]) # Build lower hull: left-to-right ...
29.96
74
0.558077
4a049f3bb9ed561cfbd84b4fe73a89a1b9ace104
904
py
Python
kubernetes/test/test_v1_subject.py
sgwilliams-ebsco/python
35e6406536c96d4769ff7e2a02bf0fdcb902a509
[ "Apache-2.0" ]
1
2021-06-10T23:44:11.000Z
2021-06-10T23:44:11.000Z
kubernetes/test/test_v1_subject.py
sgwilliams-ebsco/python
35e6406536c96d4769ff7e2a02bf0fdcb902a509
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_subject.py
sgwilliams-ebsco/python
35e6406536c96d4769ff7e2a02bf0fdcb902a509
[ "Apache-2.0" ]
1
2018-11-06T16:33:43.000Z
2018-11-06T16:33:43.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.12.2 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys i...
20.088889
105
0.690265
4a04a1509951128cdc472e91f4c9818d7628bd53
1,153
py
Python
click_web/resources/index.py
JayBigGuy10/click-web
ca88e118a283c92bff214e6fa0502db629d7dd1e
[ "MIT" ]
null
null
null
click_web/resources/index.py
JayBigGuy10/click-web
ca88e118a283c92bff214e6fa0502db629d7dd1e
[ "MIT" ]
null
null
null
click_web/resources/index.py
JayBigGuy10/click-web
ca88e118a283c92bff214e6fa0502db629d7dd1e
[ "MIT" ]
null
null
null
from collections import OrderedDict import click import click_web from flask import render_template def index(): with click.Context(click_web.click_root_cmd, info_name=click_web.click_root_cmd.name, parent=None) as ctx: return render_template('show_tree.html.j2', ctx=ctx, tree=_click_to_tree(ctx, click...
31.162162
112
0.669558
4a04a18706169f0bf93e8059584077fdcde5d9d8
4,004
py
Python
python/sdk/client/models/logger.py
karzuo/merlin
bdbdac35071d81beb1b8b5b807697bf2eac69a40
[ "Apache-2.0" ]
97
2020-10-15T08:03:56.000Z
2022-03-31T22:30:59.000Z
python/sdk/client/models/logger.py
ibnummuhammad/merlin
acf10a350bcacfdfe67f7020d535467b71ff1d89
[ "Apache-2.0" ]
91
2020-10-26T03:15:27.000Z
2022-03-31T10:19:55.000Z
python/sdk/client/models/logger.py
ibnummuhammad/merlin
acf10a350bcacfdfe67f7020d535467b71ff1d89
[ "Apache-2.0" ]
26
2020-10-21T03:53:36.000Z
2022-03-16T06:43:15.000Z
# coding: utf-8 """ Merlin API Guide for accessing Merlin's model management, deployment, and serving functionalities # noqa: E501 OpenAPI spec version: 0.14.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from client.c...
26.693333
108
0.564685
4a04a21dbe916aa145e4559c7f784cce7cdf2967
2,144
py
Python
graph-tool/src/graph_tool/all.py
johankaito/fufuka
32a96ecf98ce305c2206c38443e58fdec88c788d
[ "Apache-2.0" ]
1
2015-08-04T19:41:53.000Z
2015-08-04T19:41:53.000Z
graph-tool/src/graph_tool/all.py
johankaito/fufuka
32a96ecf98ce305c2206c38443e58fdec88c788d
[ "Apache-2.0" ]
null
null
null
graph-tool/src/graph_tool/all.py
johankaito/fufuka
32a96ecf98ce305c2206c38443e58fdec88c788d
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # # graph_tool -- a general graph manipulation python module # # Copyright (C) 2006-2015 Tiago de Paula Peixoto <tiago@skewed.de> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by...
32.484848
75
0.791978
4a04a26710f765af547c7faaee938399e308a14d
16,128
py
Python
tests/cli/test_run.py
daryllstrauss/prefect
2dd308ec39dc189a85defa216ef15ebec78855f5
[ "Apache-2.0" ]
1
2020-08-01T15:44:32.000Z
2020-08-01T15:44:32.000Z
tests/cli/test_run.py
daryllstrauss/prefect
2dd308ec39dc189a85defa216ef15ebec78855f5
[ "Apache-2.0" ]
null
null
null
tests/cli/test_run.py
daryllstrauss/prefect
2dd308ec39dc189a85defa216ef15ebec78855f5
[ "Apache-2.0" ]
1
2020-05-04T13:22:11.000Z
2020-05-04T13:22:11.000Z
import json import os import re import tempfile from unittest.mock import MagicMock import pytest import requests from click.testing import CliRunner import prefect from prefect.cli.run import run from prefect.utilities.configuration import set_temporary_config def test_run_init(): runner = CliRunner() resu...
31.873518
181
0.53559
4a04a2b6e95e0775896e084803c1e4f94c5f34da
159
py
Python
samwise/features/__init__.py
Cloudzero/samwise
793463e0774f9d1c702f4252377f19fa3408a558
[ "MIT" ]
4
2019-09-16T02:45:16.000Z
2020-08-25T13:11:55.000Z
samwise/utils/__init__.py
Cloudzero/samwise
793463e0774f9d1c702f4252377f19fa3408a558
[ "MIT" ]
null
null
null
samwise/utils/__init__.py
Cloudzero/samwise
793463e0774f9d1c702f4252377f19fa3408a558
[ "MIT" ]
null
null
null
# Copyright (c) 2019 CloudZero, Inc. All rights reserved. # Licensed under the MIT License. See LICENSE file in the project root for full license information.
53
100
0.779874
4a04a3119da4b7b60a318a79be4da5dc2cb35281
1,365
py
Python
tests/beacon/types/test_block.py
shreyasnbhat/py-evm
cd31d83185e102a7cb2f11e2f67923b069ee9cef
[ "MIT" ]
1
2018-12-09T11:56:53.000Z
2018-12-09T11:56:53.000Z
tests/beacon/types/test_block.py
shreyasnbhat/py-evm
cd31d83185e102a7cb2f11e2f67923b069ee9cef
[ "MIT" ]
null
null
null
tests/beacon/types/test_block.py
shreyasnbhat/py-evm
cd31d83185e102a7cb2f11e2f67923b069ee9cef
[ "MIT" ]
2
2018-12-09T15:58:11.000Z
2020-09-29T07:10:21.000Z
import pytest import rlp from eth.beacon.types.blocks import ( BaseBeaconBlock, ) from eth.beacon.types.attestation_records import ( AttestationRecord, ) from eth.utils.blake import ( blake, ) def test_defaults(sample_beacon_block_params): block = BaseBeaconBlock(**sample_beacon_block_params) ass...
27.857143
91
0.727473
4a04a316016a92170804519de7c0b4714d3ff1d3
67,336
py
Python
share/lib/python/neuron/crxd/rxd.py
myneuronews/neuron
ac9ca9940071524a534465b52bcab734290f8e27
[ "BSD-3-Clause" ]
null
null
null
share/lib/python/neuron/crxd/rxd.py
myneuronews/neuron
ac9ca9940071524a534465b52bcab734290f8e27
[ "BSD-3-Clause" ]
null
null
null
share/lib/python/neuron/crxd/rxd.py
myneuronews/neuron
ac9ca9940071524a534465b52bcab734290f8e27
[ "BSD-3-Clause" ]
null
null
null
from neuron import h, nrn, nrn_dll_sym from . import species, node, section1d, region from .nodelist import NodeList import weakref import numpy import scipy.sparse import scipy.sparse.linalg import ctypes import atexit from . import options from .rxdException import RxDException from . import initializer import coll...
42.889172
242
0.627673
4a04a399d22b36fe1654190d4747e5a5342792c3
1,981
py
Python
test/test_algorithm.py
ehigham/broad-challenge
9854d9269f378999f28ee9fc202068e785f87faf
[ "MIT" ]
null
null
null
test/test_algorithm.py
ehigham/broad-challenge
9854d9269f378999f28ee9fc202068e785f87faf
[ "MIT" ]
null
null
null
test/test_algorithm.py
ehigham/broad-challenge
9854d9269f378999f28ee9fc202068e785f87faf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import unittest import networkx from challenge.algorithm import dijkstras_shortest_path class TestAlgorithmModule(unittest.TestCase): def test_empty_graph(self): """Nodes are memebers of graph.nodes""" graph = networkx.Graph() with self.assertRaises(ValueError): ...
31.444444
90
0.504796
4a04a3b4454b985cc0302044cc06b8934de9d1be
451
py
Python
Allswap_django/allswap/accounts/forms.py
yds05238/AllSwap_Backend
95429fe6c709feef6b9e4b2349921e1cc4dd4c18
[ "MIT" ]
2
2020-02-19T05:06:49.000Z
2020-02-20T17:34:41.000Z
Allswap_django/allswap/accounts/forms.py
yds05238/AllSwap_Backend
95429fe6c709feef6b9e4b2349921e1cc4dd4c18
[ "MIT" ]
28
2020-06-05T20:52:59.000Z
2022-03-12T00:15:17.000Z
Allswap_django/allswap/accounts/forms.py
yds05238/AllSwap
95429fe6c709feef6b9e4b2349921e1cc4dd4c18
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.contrib.auth.forms import UserCreationForm class UserCreateForm(UserCreationForm): class Meta: fields = ('username','email','password1','password2') model = get_user_model() def __init__(self,*args,**kwargs): super().__...
34.692308
61
0.67184
4a04a3c6b7f091eff7f7af30802a3a917c21272e
624
py
Python
reports/migrations/0006_auto_20170727_0217.py
ben174/bart-crime
5372f1af2e741ffccbaf5896f56e42b4f8dd7722
[ "MIT" ]
25
2017-07-29T16:32:09.000Z
2020-11-18T06:57:49.000Z
reports/migrations/0006_auto_20170727_0217.py
ben174/bart-crime
5372f1af2e741ffccbaf5896f56e42b4f8dd7722
[ "MIT" ]
21
2017-08-03T18:25:52.000Z
2021-09-08T22:59:57.000Z
reports/migrations/0006_auto_20170727_0217.py
ben174/bart-crime
5372f1af2e741ffccbaf5896f56e42b4f8dd7722
[ "MIT" ]
3
2017-08-07T23:08:53.000Z
2017-11-20T22:56:13.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-07-27 02:17 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('reports', '0005_auto_20170726_2232'), ] operations = [ migrations.AddField(...
24
58
0.597756
4a04a4285cee3d1757018a1ddea78bc945f2eced
1,340
py
Python
models/__init__.py
gditzler/extreme-verification-latency
eb3c783c3dcbdb8e9287bb59bb1e9d513ad6e762
[ "MIT" ]
null
null
null
models/__init__.py
gditzler/extreme-verification-latency
eb3c783c3dcbdb8e9287bb59bb1e9d513ad6e762
[ "MIT" ]
null
null
null
models/__init__.py
gditzler/extreme-verification-latency
eb3c783c3dcbdb8e9287bb59bb1e9d513ad6e762
[ "MIT" ]
1
2022-02-25T20:37:09.000Z
2022-02-25T20:37:09.000Z
#!/usr/bin/env python # MIT License # # Copyright (c) 2021 # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, mod...
37.222222
80
0.781343
4a04a5186d5524b54bb513e05a18341a3b6f9446
4,662
py
Python
pages/captcha.py
gsw945/myblog
6666762928a01b08700ce77a712fa5b3ad468d96
[ "MIT" ]
17
2019-03-04T09:48:01.000Z
2022-03-28T01:55:18.000Z
pages/captcha.py
WK8612/myblog
8af7f079341f656678fde707fcec680f8d5269ac
[ "MIT" ]
10
2019-06-09T05:54:38.000Z
2019-09-11T09:59:51.000Z
pages/captcha.py
WK8612/myblog
8af7f079341f656678fde707fcec680f8d5269ac
[ "MIT" ]
6
2019-03-06T09:35:55.000Z
2019-08-28T14:04:27.000Z
import os import base64 from io import BytesIO import string import random import pickle from matplotlib.font_manager import fontManager from fontTools.ttLib import TTFont from PIL import Image, ImageDraw, ImageColor, ImageFilter, ImageFont from django.conf import settings def char_in_font(unicode_char, ttf_font): ...
30.272727
152
0.634921
4a04a539bdcec91ad7da1e82bde99b0076154653
2,844
py
Python
bot.py
Akashakashav/video-merge-bot
0e17b4e07067014fe216829c6223b13c32f3e87a
[ "MIT" ]
null
null
null
bot.py
Akashakashav/video-merge-bot
0e17b4e07067014fe216829c6223b13c32f3e87a
[ "MIT" ]
null
null
null
bot.py
Akashakashav/video-merge-bot
0e17b4e07067014fe216829c6223b13c32f3e87a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from logging import DEBUG import subprocess import os import requests import logging import sys from autologging import logged, traced import telebot from decouple import config # Enable logging logging.basicConfig( format='%(asctime)s - %(name)s - %(levelname)s - %(me...
25.854545
79
0.636428
4a04a6d80c17cffb5230d23506e588267abfd900
603
py
Python
shape_bruteforce/errors.py
ahmedkhalf/Shape-Bruteforce
4a9c205c9777c07a1fa7ecf7f4b27549b2d7dc7a
[ "MIT" ]
2
2020-07-27T15:02:57.000Z
2022-03-12T02:41:02.000Z
shape_bruteforce/errors.py
ahmedkhalf/Shape-Bruteforce
4a9c205c9777c07a1fa7ecf7f4b27549b2d7dc7a
[ "MIT" ]
null
null
null
shape_bruteforce/errors.py
ahmedkhalf/Shape-Bruteforce
4a9c205c9777c07a1fa7ecf7f4b27549b2d7dc7a
[ "MIT" ]
null
null
null
class ImageDepthError(Exception): """Exception raised when depth (third axis) is not what it should be """ def __init__(self, given_depth, expected_depths): self.message = f"Unexpected image depth: {given_depth}, expected {expected_depths}." super().__init__(self.message) class ImageDimen...
35.470588
92
0.703151
4a04a8192383ec4cea3f68227f2bb7aa0f6648b9
4,166
py
Python
examples/train_mrbrains_9_classes.py
eynaij/MedicalZooPytorch_RibFrac
720cd2a3b7e62a47ed35b9e41e15db92e802ffb8
[ "MIT" ]
2
2020-09-20T15:59:37.000Z
2021-04-12T09:28:35.000Z
examples/train_mrbrains_9_classes.py
eynaij/MedicalZooPytorch_RibFrac
720cd2a3b7e62a47ed35b9e41e15db92e802ffb8
[ "MIT" ]
1
2020-12-17T02:38:05.000Z
2020-12-17T02:38:05.000Z
examples/train_mrbrains_9_classes.py
eynaij/MedicalZooPytorch_RibFrac
720cd2a3b7e62a47ed35b9e41e15db92e802ffb8
[ "MIT" ]
null
null
null
# Python libraries import argparse import os import torch import lib.medloaders as medical_loaders import lib.medzoo as medzoo import lib.train as train # Lib files import lib.utils as utils from lib.losses3D.dice import DiceLoss from apex.parallel import DistributedDataParallel as DDP from apex.fp16_utils import * ...
39.301887
124
0.655065
4a04a85fa50bf9b57f7690bd595861d7c1eee09b
2,934
py
Python
testsuite/test_all.py
licensio/pycodestyle
bbaa07a3806a91fd4d57e352cff92c0b56c2265c
[ "MIT" ]
null
null
null
testsuite/test_all.py
licensio/pycodestyle
bbaa07a3806a91fd4d57e352cff92c0b56c2265c
[ "MIT" ]
null
null
null
testsuite/test_all.py
licensio/pycodestyle
bbaa07a3806a91fd4d57e352cff92c0b56c2265c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os.path import sys import unittest import pycodestyle from testsuite.support import init_tests, selftest, ROOT_DIR # Note: please only use a subset of unittest methods which were present # in Python 2.5: assert(True|False|Equal|NotEqual|Raises) class PycodestyleT...
34.517647
77
0.669052
4a04a88c16ae1b265204a1998033417770b0d1b5
2,361
py
Python
grades/migrations/0001_initial.py
taufactor/tau-factor
d7883156bd9502742e0ad5c798fa1b2c38c7ff60
[ "MIT" ]
null
null
null
grades/migrations/0001_initial.py
taufactor/tau-factor
d7883156bd9502742e0ad5c798fa1b2c38c7ff60
[ "MIT" ]
null
null
null
grades/migrations/0001_initial.py
taufactor/tau-factor
d7883156bd9502742e0ad5c798fa1b2c38c7ff60
[ "MIT" ]
1
2021-05-18T19:01:14.000Z
2021-05-18T19:01:14.000Z
# Generated by Django 3.2.3 on 2021-05-17 20:40 from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): initial = True dependencies = [ ('courses', '0001_initial'), ] operations = [ migrations.Crea...
42.160714
146
0.564591
4a04a89319297a5ff8a0c7dc838ae177de91495e
1,697
py
Python
qa327_test/integration/sell/test_sell_user_walk_through.py
atangent/chad-CI-python
52de5685aebce26b07ebce247e2d3e5bda7087f9
[ "MIT" ]
null
null
null
qa327_test/integration/sell/test_sell_user_walk_through.py
atangent/chad-CI-python
52de5685aebce26b07ebce247e2d3e5bda7087f9
[ "MIT" ]
15
2020-10-15T17:02:08.000Z
2020-12-14T03:16:25.000Z
qa327_test/integration/sell/test_sell_user_walk_through.py
atangent/chad-CI-python
52de5685aebce26b07ebce247e2d3e5bda7087f9
[ "MIT" ]
2
2020-12-11T17:51:36.000Z
2021-10-05T23:07:21.000Z
import pytest from seleniumbase import BaseCase from qa327_test.conftest import base_url # integration testing: the test case interacts with the # browser, and test the whole system (frontend+backend). @pytest.mark.usefixtures('server') class SellTicket(BaseCase): def register(self): """register new u...
33.94
72
0.622275
4a04a93f353fe77fff976c98870ba4a16bc001ce
6,028
py
Python
test/test_util.py
snskiff/python-snap7
19fc871de678a972b60f669db5b610202425378e
[ "MIT" ]
6
2020-05-12T20:38:07.000Z
2020-11-17T17:39:02.000Z
test/test_util.py
RevolutionPi/python-snap7
0953beeb34f47c3fec490240d7ffe2edf4e8ea37
[ "MIT" ]
null
null
null
test/test_util.py
RevolutionPi/python-snap7
0953beeb34f47c3fec490240d7ffe2edf4e8ea37
[ "MIT" ]
2
2018-11-16T11:59:30.000Z
2020-11-17T17:39:06.000Z
import unittest import re from snap7 import util test_spec = """ 4 ID INT 6 NAME STRING[4] 12.0 testbool1 BOOL 12.1 testbool2 BOOL 12.2 testbool3 BOOL 12.3 testbool4 BOOL 12.4 testbool5 BOOL 12.5 testbool6 BOOL 12.6 testbool7 BOOL 12.7 testbool8 BOOL 13 testReal R...
30.14
69
0.530358
4a04aa56f7c58a6e82572bcb5f12161cc34ec132
2,110
py
Python
tools/py_analysis/analyze_cube.py
cristigr/macrobase
de032865b2ed03405b35c534ebace382536f53f4
[ "Apache-2.0" ]
677
2016-01-04T04:05:50.000Z
2022-03-24T06:37:27.000Z
tools/py_analysis/analyze_cube.py
cristigr/macrobase
de032865b2ed03405b35c534ebace382536f53f4
[ "Apache-2.0" ]
249
2015-12-29T03:41:31.000Z
2020-09-02T03:11:30.000Z
tools/py_analysis/analyze_cube.py
cristigr/macrobase
de032865b2ed03405b35c534ebace382536f53f4
[ "Apache-2.0" ]
148
2015-12-29T03:25:48.000Z
2021-08-25T03:59:52.000Z
import pandas as pd import numpy as np from sklearn import linear_model from collections import defaultdict, Iterable from itertools import chain, combinations import operator import psycopg2 conn = psycopg2.connect("dbname='postgres' user='pbailis' host='localhost'") cur = conn.cursor() cols = "hardware_manufacture...
32.96875
379
0.613744
4a04ab6c2ac32248ad1e4fea26dcea80b91ac1d3
841
py
Python
srim3d.py
Gustav-Lindberg/Srim3D.py
3686d44f25234b9b3fd6f87a7d00219d3ed3183e
[ "Apache-2.0" ]
null
null
null
srim3d.py
Gustav-Lindberg/Srim3D.py
3686d44f25234b9b3fd6f87a7d00219d3ed3183e
[ "Apache-2.0" ]
null
null
null
srim3d.py
Gustav-Lindberg/Srim3D.py
3686d44f25234b9b3fd6f87a7d00219d3ed3183e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # srim3d.py by Gustav Lindberg # https://github.com/Gustav-Lindberg/Srim3D.py import numpy as np import re as RegExp def extractData(file="Ioniz-3D.txt"): data = [] with open(file) as file: hasStarted = False topRegex = RegExp.compile(r"^-+\s-+$") spaceRegex = R...
29
83
0.589774
4a04ab83d111e7e756194eda214b8090dc34c34f
7,805
py
Python
pypy/bin/pyinteractive.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
1
2021-06-02T23:02:09.000Z
2021-06-02T23:02:09.000Z
pypy/bin/pyinteractive.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
1
2021-03-30T18:08:41.000Z
2021-03-30T18:08:41.000Z
pypy/bin/pyinteractive.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
1
2022-03-30T11:42:37.000Z
2022-03-30T11:42:37.000Z
#!/usr/bin/env python """Main entry point into the PyPy interpreter. For a list of options, type pyinteractive.py --help """ import os import sys import time pypy_path = os.path.join(os.path.dirname(__file__), '..', '..') sys.path.insert(0, os.path.abspath(pypy_path)) from pypy.tool import option from pypy...
36.134259
91
0.618962
4a04ac25957752957a8a239342c8cf026dea97fc
7,382
py
Python
datastore/tests/unit/test_entity.py
rodrigodias27/google-cloud-python
7d1161f70744c0dbbe67a3f472ea95667eaafe50
[ "Apache-2.0" ]
1
2017-05-18T06:58:48.000Z
2017-05-18T06:58:48.000Z
datastore/tests/unit/test_entity.py
rodrigodias27/google-cloud-python
7d1161f70744c0dbbe67a3f472ea95667eaafe50
[ "Apache-2.0" ]
null
null
null
datastore/tests/unit/test_entity.py
rodrigodias27/google-cloud-python
7d1161f70744c0dbbe67a3f472ea95667eaafe50
[ "Apache-2.0" ]
1
2022-03-24T01:37:10.000Z
2022-03-24T01:37:10.000Z
# Copyright 2014 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
33.554545
77
0.646302
4a04ac642676cf41e3ad81c188002f2b230f1ee1
1,415
py
Python
scripts/run_umwm.py
sustain-lab/umwm-sustain
5988a5523ea00f99902341834c8115473e0bf4a3
[ "MIT" ]
1
2018-10-09T22:18:39.000Z
2018-10-09T22:18:39.000Z
scripts/run_umwm.py
sustain-lab/umwm-sustain
5988a5523ea00f99902341834c8115473e0bf4a3
[ "MIT" ]
null
null
null
scripts/run_umwm.py
sustain-lab/umwm-sustain
5988a5523ea00f99902341834c8115473e0bf4a3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import f90nml from netCDF4 import Dataset import os import shutil import subprocess # TODO umwm must be compiled and executable umwm-run present in path umwm_path = '/home/milan/sustain/umwm-sustain/umwm-dev' # path to store finished experiments output_path = '/home/milan/sustain/umwm-sustain/...
28.877551
68
0.623322
4a04ad7322ec9dbad3cb46e324e1ced429ab61be
424
py
Python
deepLFM/likelihoods/likelihood.py
tomcdonald/Deep-LFM
05d9d8f037c65761285201bf67925bf7f65bcbe3
[ "Apache-2.0" ]
1
2021-11-05T17:50:09.000Z
2021-11-05T17:50:09.000Z
deepLFM/likelihoods/likelihood.py
tomcdonald/Deep-LFM
05d9d8f037c65761285201bf67925bf7f65bcbe3
[ "Apache-2.0" ]
null
null
null
deepLFM/likelihoods/likelihood.py
tomcdonald/Deep-LFM
05d9d8f037c65761285201bf67925bf7f65bcbe3
[ "Apache-2.0" ]
2
2021-06-28T07:52:34.000Z
2021-09-01T17:16:11.000Z
import abc class Likelihood: __metaclass__ = abc.ABCMeta @abc.abstractmethod def log_cond_prob(self, output, latent): """ Likelihoods must compute log[p(y|F)], where y are outputs & F are latent values. """ raise NotImplementedError("Implemented by subclass.") @abc.abs...
28.266667
88
0.667453
4a04adc78f4aed90c70c1fe6968e70853cbeaa41
2,120
py
Python
tests/default_storage_test.py
Walon1998/dace
95ddfd3e9a5c654f0f0d66d026e0b64ec0f028a0
[ "BSD-3-Clause" ]
1
2022-03-11T13:36:34.000Z
2022-03-11T13:36:34.000Z
tests/default_storage_test.py
Walon1998/dace
95ddfd3e9a5c654f0f0d66d026e0b64ec0f028a0
[ "BSD-3-Clause" ]
null
null
null
tests/default_storage_test.py
Walon1998/dace
95ddfd3e9a5c654f0f0d66d026e0b64ec0f028a0
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved. import dace from dace.sdfg.infer_types import set_default_schedule_and_storage_types def test_notbmap(): sdfg = dace.SDFG('default_storage_test_1') sdfg.add_array('A', [20], dace.float64, dace.StorageType.GPU_Global) sdfg.add_tran...
42.4
103
0.675943
4a04ae33915b13b625b8a7e172f45f63131815d0
5,870
py
Python
userbot/__init__.py
herokutest12/PaperplaneExtended
200f96242f6ab2be05c94674c6b3811e8b83a339
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/__init__.py
herokutest12/PaperplaneExtended
200f96242f6ab2be05c94674c6b3811e8b83a339
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/__init__.py
herokutest12/PaperplaneExtended
200f96242f6ab2be05c94674c6b3811e8b83a339
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.c (the "License"); # you may not use this file except in compliance with the License. # """ Userbot initialization. """ import os from sys import version_info from logging import basicConfig, getLogger, IN...
31.058201
101
0.70937
4a04ae8d4c3e0d0bee711f6288e11ebd43abc34a
1,260
py
Python
control-api/app/api/endpoints/settings.py
Towed-ROV/control-api
e7061e60fae7f5218cf98e856da369be71fe0740
[ "MIT" ]
1
2021-05-10T21:36:59.000Z
2021-05-10T21:36:59.000Z
control-api/app/api/endpoints/settings.py
Towed-ROV/control-api
e7061e60fae7f5218cf98e856da369be71fe0740
[ "MIT" ]
null
null
null
control-api/app/api/endpoints/settings.py
Towed-ROV/control-api
e7061e60fae7f5218cf98e856da369be71fe0740
[ "MIT" ]
null
null
null
import time from typing import List from crud import crud from db.database import get_db from fastapi import APIRouter, Depends from fastapi.exceptions import HTTPException from schemas.setting import Setting, SettingCreate, SettingUpdate from sqlalchemy.orm import Session router = APIRouter() @router.post("/", res...
31.5
101
0.763492
4a04af4b0ebf85fcaf8cb203f55c88b03f285dbc
173
py
Python
src/main/python/base/__init__.py
boom-roasted/ImageWAO
944505dab1a7c97b8eae2bf9fb30006d0f471f89
[ "MIT" ]
1
2020-03-22T01:52:52.000Z
2020-03-22T01:52:52.000Z
src/main/python/base/__init__.py
leftaltkey/ImageWAO
944505dab1a7c97b8eae2bf9fb30006d0f471f89
[ "MIT" ]
2
2021-06-08T21:12:47.000Z
2021-06-08T21:30:32.000Z
src/main/python/base/__init__.py
leftaltkey/ImageWAO
944505dab1a7c97b8eae2bf9fb30006d0f471f89
[ "MIT" ]
null
null
null
from .threading import QWorker from .configuration import config from .context import context as ctx from .version import Version __all__ = [QWorker, config, ctx, Version]
24.714286
41
0.797688
4a04b0af944c43b3067ca7551441cc75dfba7c1a
643
py
Python
students/K33401/Do_Thien/Lr1/task2/client.py
aytakr/ITMO_ICT_WebDevelopment_2021-2022
57c0eef5e1f413c7f031ee001d59e5122f990f26
[ "MIT" ]
7
2021-09-02T08:20:58.000Z
2022-01-12T11:48:07.000Z
students/K33401/Do_Thien/Lr1/task2/client.py
aytakr/ITMO_ICT_WebDevelopment_2021-2022
57c0eef5e1f413c7f031ee001d59e5122f990f26
[ "MIT" ]
76
2021-09-17T23:01:50.000Z
2022-03-18T16:42:03.000Z
students/K33401/Do_Thien/Lr1/task2/client.py
aytakr/ITMO_ICT_WebDevelopment_2021-2022
57c0eef5e1f413c7f031ee001d59e5122f990f26
[ "MIT" ]
60
2021-09-04T16:47:39.000Z
2022-03-21T04:41:27.000Z
import socket import pickle serversocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) serversocket.connect((socket.gethostname(), 14900)) serversocket.send(b"Hello server! \n") data = serversocket.recv(1024) print("Server: " + data.decode("utf-8")) print("Enter the lenghts of the side of the trapezoid!") pri...
29.227273
64
0.752722
4a04b1b2880305961115290298b282e23426687c
4,635
py
Python
oneview_redfish_toolkit/tests/blueprints/test_network_device_function.py
AgneshKumar/oneview-redfish-toolkit
f559ce795b43891a919dc431563c0d0c8000a2d9
[ "Apache-2.0" ]
2
2018-12-07T17:08:37.000Z
2019-03-19T05:26:20.000Z
oneview_redfish_toolkit/tests/blueprints/test_network_device_function.py
shobhit-sinha/oneview-redfish-toolkit
ffc86ea0a9e5d192ab6a2fe21c1717957b55d1da
[ "Apache-2.0" ]
null
null
null
oneview_redfish_toolkit/tests/blueprints/test_network_device_function.py
shobhit-sinha/oneview-redfish-toolkit
ffc86ea0a9e5d192ab6a2fe21c1717957b55d1da
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (2017-2018) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
35.113636
78
0.692341
4a04b1de66bb2f720b2ca95ab51d9875a126b455
1,305
py
Python
backend/api/v1/groups/views.py
donicrazy/ChatApp
ab129a9c0706bbb972cbce43283ba6e06d144635
[ "MIT" ]
null
null
null
backend/api/v1/groups/views.py
donicrazy/ChatApp
ab129a9c0706bbb972cbce43283ba6e06d144635
[ "MIT" ]
7
2021-03-19T04:47:13.000Z
2022-01-13T02:02:46.000Z
backend/api/v1/groups/views.py
donicrazy/ChatApp
ab129a9c0706bbb972cbce43283ba6e06d144635
[ "MIT" ]
null
null
null
from rest_framework import generics from backend.api.v1.groups.serializers import ( GroupSerializer, MemberSerializer, GroupMessageSerializer, ) from backend.groups.models import ( ChatGroup, GroupMembership, GroupMessage, ) class GroupListCreateView(generics.ListCreateAPIView): """ Creat...
28.369565
86
0.748659
4a04b21eb6b7daecff935256a735f939bc4ffdff
578
py
Python
setup.py
guitargeek/xgbo
7124c32a55285cec22a02aeb868773f76b7280f5
[ "MIT" ]
1
2022-01-07T17:51:23.000Z
2022-01-07T17:51:23.000Z
setup.py
guitargeek/xgbo
7124c32a55285cec22a02aeb868773f76b7280f5
[ "MIT" ]
4
2018-10-02T15:19:06.000Z
2019-05-08T10:54:42.000Z
setup.py
guitargeek/xgbo
7124c32a55285cec22a02aeb868773f76b7280f5
[ "MIT" ]
5
2018-10-19T09:42:23.000Z
2022-01-07T16:11:34.000Z
from setuptools import setup, find_packages setup( name="xgbo", version="0.2", description="Xgboost with Bayesian optimization", long_description="Train xgboost calssifiers and regressors with Bayesian optimized hyperparameters.", url="http://github.com/guitargeek/xgbo", author="Jonas Rembser",...
34
112
0.714533
4a04b2dbe4dbba95214bcc75cb497a7cdad6ae3a
13,918
py
Python
unifold/data/parsers.py
nwod-edispu/Uni-Fold
0ebfaf234807523067759d4c300694bb58cfb991
[ "Apache-2.0" ]
null
null
null
unifold/data/parsers.py
nwod-edispu/Uni-Fold
0ebfaf234807523067759d4c300694bb58cfb991
[ "Apache-2.0" ]
null
null
null
unifold/data/parsers.py
nwod-edispu/Uni-Fold
0ebfaf234807523067759d4c300694bb58cfb991
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Beijing DP Technology Co., Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
38.131507
95
0.623868
4a04b3dcf9bca6d20a258060451eb3c4243eac4e
694
py
Python
cabot/init.py
jareddgotte/cabot
185ae27e5ca7b053031e3731f20bfb835b0d63ae
[ "MIT" ]
null
null
null
cabot/init.py
jareddgotte/cabot
185ae27e5ca7b053031e3731f20bfb835b0d63ae
[ "MIT" ]
null
null
null
cabot/init.py
jareddgotte/cabot
185ae27e5ca7b053031e3731f20bfb835b0d63ae
[ "MIT" ]
null
null
null
# # Init # # import global modules import configparser import importlib def init(): global config config = configparser.ConfigParser() config.read('config.ini') global commands commands = {} def addCommandAction(command, instance, function): if command in commands.keys(): commands[co...
23.133333
64
0.674352
4a04b4c906e7f15e430b9655232b42c7dce7116c
1,066
py
Python
qa327_test/conftest.py
winterNebs/HyperTextAssassins
77d44db692d03b95462694394048aec3aacc4108
[ "MIT" ]
2
2021-01-03T01:42:23.000Z
2021-03-30T18:59:45.000Z
qa327_test/conftest.py
johnsonzhang434/SeetGeek
77d44db692d03b95462694394048aec3aacc4108
[ "MIT" ]
null
null
null
qa327_test/conftest.py
johnsonzhang434/SeetGeek
77d44db692d03b95462694394048aec3aacc4108
[ "MIT" ]
1
2021-01-02T19:39:29.000Z
2021-01-02T19:39:29.000Z
import pytest import subprocess import os import signal import time import tempfile from qa327.__main__ import FLASK_PORT from qa327.__main__ import app from qa327.models import db import threading from werkzeug.serving import make_server base_url = 'http://localhost:{}'.format(FLASK_PORT) class Serve...
22.680851
61
0.63227
4a04b4ec5e8e7495fa085dfdf9b3c9660dc5a8f7
211
py
Python
tests/__init__.py
TestowanieAutomatyczneUG/laboratorium-10-cati97
4dec599bdaa0de2ab0ef88f10e8c269dd6c4e40d
[ "MIT" ]
null
null
null
tests/__init__.py
TestowanieAutomatyczneUG/laboratorium-10-cati97
4dec599bdaa0de2ab0ef88f10e8c269dd6c4e40d
[ "MIT" ]
null
null
null
tests/__init__.py
TestowanieAutomatyczneUG/laboratorium-10-cati97
4dec599bdaa0de2ab0ef88f10e8c269dd6c4e40d
[ "MIT" ]
null
null
null
# the inclusion of the tests module is not meant to offer best practices for # testing in general, but rather to support the `find_packages` example in # setup.py that excludes installing the "tests" package
52.75
77
0.777251
4a04b581430587731e8ae3e84bc9b600e3c2d2c8
84,267
py
Python
src/olympia/bandwagon/tests/test_views.py
g-k/addons-server
ca369146787849719096745d1782f583c68cd10f
[ "BSD-3-Clause" ]
null
null
null
src/olympia/bandwagon/tests/test_views.py
g-k/addons-server
ca369146787849719096745d1782f583c68cd10f
[ "BSD-3-Clause" ]
null
null
null
src/olympia/bandwagon/tests/test_views.py
g-k/addons-server
ca369146787849719096745d1782f583c68cd10f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import json import django.test from django.conf import settings from django.forms import ValidationError from django.test.utils import override_settings from django.utils.datastructures import MultiValueDict import pytest from mock import Mock, patch from pyquery import PyQuery as pq from re...
38.619157
79
0.619875
4a04b5b89d0cbea50bcb1f2ae74d3561d9407694
3,928
py
Python
pandashells/lib/lomb_scargle_lib.py
preranavilas/pythonwithpandas
0a5e23ac8f81f6403253f39df39a9268688c45cf
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
pandashells/lib/lomb_scargle_lib.py
preranavilas/pythonwithpandas
0a5e23ac8f81f6403253f39df39a9268688c45cf
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
pandashells/lib/lomb_scargle_lib.py
preranavilas/pythonwithpandas
0a5e23ac8f81f6403253f39df39a9268688c45cf
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
#! /usr/bin/env python # standard library imports import warnings try: import pandas as pd import numpy as np # will catch import errors in module_checker_lib so won't test this branch except ImportError: # pragma: nocover pass def _next_power_two(x): """ given a number, returns the next power of t...
31.677419
112
0.650204
4a04b7d6bef45671cef6e8b2f5cff8fc2f4c5614
6,617
py
Python
mobster/guide_mobster.py
Militeee/HMOBSTER
6e682f6857d147841d43f95a5e7af00fc83bcb5d
[ "Apache-2.0" ]
null
null
null
mobster/guide_mobster.py
Militeee/HMOBSTER
6e682f6857d147841d43f95a5e7af00fc83bcb5d
[ "Apache-2.0" ]
null
null
null
mobster/guide_mobster.py
Militeee/HMOBSTER
6e682f6857d147841d43f95a5e7af00fc83bcb5d
[ "Apache-2.0" ]
null
null
null
import pyro as pyro import numpy as np from pyro.infer import MCMC, NUTS, Predictive, HMC, config_enumerate from pyro.infer.autoguide import AutoDelta, init_to_sample import pyro.distributions as dist import pyro.poutine as poutine import torch from torch.distributions import constraints import mobster.utils_mobster as...
44.709459
158
0.615687
4a04b823c7d4718853b115126c0ade0071cb6b01
10,924
py
Python
fill_shelf.py
Ross91/MayaScripts
988848f8cfc152261a95c60a1760af686a249658
[ "BSD-3-Clause" ]
null
null
null
fill_shelf.py
Ross91/MayaScripts
988848f8cfc152261a95c60a1760af686a249658
[ "BSD-3-Clause" ]
null
null
null
fill_shelf.py
Ross91/MayaScripts
988848f8cfc152261a95c60a1760af686a249658
[ "BSD-3-Clause" ]
null
null
null
""" Bookshelf Filler. This hasn't been stress tested so stability is unknown. This was also created in python 3.7. Some terminology: Assets are your books, which will be duplicated and moved into place. Source objects are where your books are place, you want one per shelf. Assets should be at origin ...
34.56962
121
0.572409
4a04b8391e8d58bfc63e869c94d700dc254a91d5
2,587
py
Python
Week 3/id_475/LeetCode_102_475.py
larryRishi/algorithm004-05
e60d0b1176acd32a9184b215e36d4122ba0b6263
[ "Apache-2.0" ]
1
2019-10-12T06:48:45.000Z
2019-10-12T06:48:45.000Z
Week 3/id_475/LeetCode_102_475.py
larryRishi/algorithm004-05
e60d0b1176acd32a9184b215e36d4122ba0b6263
[ "Apache-2.0" ]
1
2019-12-01T10:02:03.000Z
2019-12-01T10:02:03.000Z
Week 3/id_475/LeetCode_102_475.py
larryRishi/algorithm004-05
e60d0b1176acd32a9184b215e36d4122ba0b6263
[ "Apache-2.0" ]
null
null
null
# BFS # 法一 class Solution: def levelOrder(self,root): """利⽤队列实现树的层次遍历""" if root == None: return res = [] queue = [] queue.append(root) while queue: node = queue.pop(0) res.append(node.val) if node.left is not None: ...
27.231579
92
0.487824
4a04b94766261647dfc79e1b26c42c21be4320cb
8,687
py
Python
nipype/pipeline/engine/tests/test_nodes.py
moloney/nipype
a7a9c85c79cb1412ba03406074f83200447ef50b
[ "Apache-2.0" ]
7
2017-02-17T08:54:26.000Z
2022-03-10T20:57:23.000Z
nipype/pipeline/engine/tests/test_nodes.py
moloney/nipype
a7a9c85c79cb1412ba03406074f83200447ef50b
[ "Apache-2.0" ]
1
2016-04-25T15:07:09.000Z
2016-04-25T15:07:09.000Z
nipype/pipeline/engine/tests/test_nodes.py
moloney/nipype
a7a9c85c79cb1412ba03406074f83200447ef50b
[ "Apache-2.0" ]
2
2017-09-23T16:22:00.000Z
2019-08-01T14:18:52.000Z
# -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: from __future__ import print_function, unicode_literals from builtins import str import os from copy import deepcopy import pytest from .... import config from ....interfaces import...
29.648464
111
0.642569
4a04b94dcbc8d5b95de330e9291ce86f5383b9ab
225
py
Python
FabricUI/pattern/__init__.py
shuaih7/FabricUI
6501e8e6370d1f90174002f5768b5ef63e8412bc
[ "Apache-2.0" ]
null
null
null
FabricUI/pattern/__init__.py
shuaih7/FabricUI
6501e8e6370d1f90174002f5768b5ef63e8412bc
[ "Apache-2.0" ]
2
2020-11-27T05:21:12.000Z
2020-11-27T05:24:04.000Z
FabricUI/pattern/__init__.py
shuaih7/QtUI
6501e8e6370d1f90174002f5768b5ef63e8412bc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- ''' Created on 03.02.2021 Updated on 03.12.2021 Author: haoshuai@handaotech.com ''' from .pattern_filter import PatternFilter from .pattern_filter_simple import PatternFilterSimple
18.75
54
0.755556
4a04ba0fb97db7ff4ed08d2668b43db6b3d9c6e2
2,223
py
Python
huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/create_listener_tags_response.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
1
2021-11-03T07:54:50.000Z
2021-11-03T07:54:50.000Z
huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/create_listener_tags_response.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/create_listener_tags_response.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import pprint import re import six from huaweicloudsdkcore.sdk_response import SdkResponse class CreateListenerTagsResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map...
27.109756
77
0.541161
4a04bab87a3b1f40e6574d4f022286f562fa286c
208
py
Python
algorithimic_tasks/ntm/datasets/__init__.py
zoharli/armin
9bf8e4533850a66bbef26390244f0d0ad30c067b
[ "MIT" ]
3
2019-07-01T12:11:29.000Z
2020-05-25T22:37:50.000Z
algorithimic_tasks/ntm/datasets/__init__.py
zoharli/armin
9bf8e4533850a66bbef26390244f0d0ad30c067b
[ "MIT" ]
null
null
null
algorithimic_tasks/ntm/datasets/__init__.py
zoharli/armin
9bf8e4533850a66bbef26390244f0d0ad30c067b
[ "MIT" ]
null
null
null
from .copy import CopyDataset from .add import AddDataset from .repeatcopy import RepeatCopyDataset from .associative import AssociativeDataset from .ngram import NGram from .prioritysort import PrioritySort
29.714286
43
0.855769
4a04bbdc38146400088330234724a3389e557dc0
2,818
py
Python
data_analyse/file_updater.py
github4code/YahooNews_Analyzer
2fb535b220103a3c18f74a1338568dc7c2d8ed9f
[ "MIT" ]
null
null
null
data_analyse/file_updater.py
github4code/YahooNews_Analyzer
2fb535b220103a3c18f74a1338568dc7c2d8ed9f
[ "MIT" ]
null
null
null
data_analyse/file_updater.py
github4code/YahooNews_Analyzer
2fb535b220103a3c18f74a1338568dc7c2d8ed9f
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- ''' This program is used to update dictionary-file, tfidf-model, lda-model Program execution: python file_updater.py Author: Jason Su Last modification: 2016/12/17 ''' import sys, datetime, jieba, jieba.analyse, MySQLdb from gensim import corpora, models, similarities from mysql_config impor...
32.767442
117
0.625621
4a04bcfb42d43a5b4ed01ff503a831787970a468
2,590
py
Python
basicsr/models/edvr_model.py
RuijiaoSun/BasicSR
b60162e9a0f17c63b87fce36092d08ab81304ab3
[ "Apache-2.0", "MIT" ]
2
2021-08-07T02:15:31.000Z
2021-09-09T02:52:15.000Z
basicsr/models/edvr_model.py
kuijiang0802/BasicSR
5c757162b348a09d236e00c2cc04463c0a8bba45
[ "Apache-2.0", "MIT" ]
null
null
null
basicsr/models/edvr_model.py
kuijiang0802/BasicSR
5c757162b348a09d236e00c2cc04463c0a8bba45
[ "Apache-2.0", "MIT" ]
null
null
null
import logging from torch.nn.parallel import DistributedDataParallel from basicsr.utils.registry import MODEL_REGISTRY from .video_base_model import VideoBaseModel logger = logging.getLogger('basicsr') @MODEL_REGISTRY.register() class EDVRModel(VideoBaseModel): """EDVR Model. Paper: EDVR: Video Restoration...
38.656716
97
0.585714
4a04be4fe54b8aac7770f72132159038720b2a26
1,133
py
Python
generated-libraries/python/netapp/storage_disk/storage_disk_get_iter_key_td.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
2
2017-03-28T15:31:26.000Z
2018-08-16T22:15:18.000Z
generated-libraries/python/netapp/storage_disk/storage_disk_get_iter_key_td.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
generated-libraries/python/netapp/storage_disk/storage_disk_get_iter_key_td.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
from netapp.netapp_object import NetAppObject class StorageDiskGetIterKeyTd(NetAppObject): """ Key typedef for table disk_view """ _key_1 = None @property def key_1(self): """ Field disk """ return self._key_1 @key_1.setter def key_1(self, val): ...
22.66
87
0.520741
4a04bf61a4d4f14e76217f130029fa20cd6a5666
33,059
py
Python
flask_restplus/api.py
Sheile/flask-restplus
a8f35823fe40b2c7385632a2ad6b35b26467402c
[ "BSD-3-Clause" ]
1
2019-10-11T00:49:54.000Z
2019-10-11T00:49:54.000Z
flask_restplus/api.py
Sheile/flask-restplus
a8f35823fe40b2c7385632a2ad6b35b26467402c
[ "BSD-3-Clause" ]
null
null
null
flask_restplus/api.py
Sheile/flask-restplus
a8f35823fe40b2c7385632a2ad6b35b26467402c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import difflib import inspect from itertools import chain import logging import operator import re import six import sys from collections import OrderedDict from functools import wraps, partial from types import MethodType from flask import url_for, req...
40.168894
117
0.64037