hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
a3c67e44f8f0cc9608424b5d8a9f9722cd23ab28
5,764
py
Python
rcnn/PY_OP/rpn_fpn_ohem.py
templeblock/mxnet-SSHA
4ef18f7ea7eca2178fffc70d6aaea4fd18a56de1
[ "MIT" ]
6
2018-12-06T09:39:31.000Z
2019-03-08T02:50:22.000Z
rcnn/PY_OP/rpn_fpn_ohem.py
templeblock/mxnet-SSHA
4ef18f7ea7eca2178fffc70d6aaea4fd18a56de1
[ "MIT" ]
null
null
null
rcnn/PY_OP/rpn_fpn_ohem.py
templeblock/mxnet-SSHA
4ef18f7ea7eca2178fffc70d6aaea4fd18a56de1
[ "MIT" ]
null
null
null
from __future__ import print_function import sys import mxnet as mx import numpy as np from distutils.util import strtobool from ..config import config CALLING_COUNT=0 COUNT_THRESH_FG=0 COUNT_THRESH_BG=0 STAT = {0:0, 8:0, 16:0, 32:0} ACC = {0:0, 8:0, 16:0, 32:0} class RPNFPNOHEMOperator(mx.operator.CustomOp): de...
39.210884
99
0.606176
33322ed44e3ee11606ed245cc85b15e63e1686c3
1,952
py
Python
release/stubs.min/Rhino/DocObjects/__init___parts/MaterialRefCreateParams.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
182
2017-06-27T02:26:15.000Z
2022-03-30T18:53:43.000Z
release/stubs.min/Rhino/DocObjects/__init___parts/MaterialRefCreateParams.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
28
2017-06-27T13:38:23.000Z
2022-03-15T11:19:44.000Z
release/stubs.min/Rhino/DocObjects/__init___parts/MaterialRefCreateParams.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
67
2017-06-28T09:43:59.000Z
2022-03-20T21:17:10.000Z
class MaterialRefCreateParams(object): """ Options passed to MaterialRefs.Create MaterialRefCreateParams() """ BackFaceMaterialId=property(lambda self: object(),lambda self,v: None,lambda self: None) """The Id of the Material used to render the back of an object. Get: BackFaceMaterialId(self: ...
21.688889
94
0.732582
e9478b42614d60f98360014f8a5888723ff4c145
23,254
py
Python
setup.py
paulboot/PythonMiniProbe
30b43096919c726116446fd9846d7d60038ef03f
[ "BSD-3-Clause" ]
null
null
null
setup.py
paulboot/PythonMiniProbe
30b43096919c726116446fd9846d7d60038ef03f
[ "BSD-3-Clause" ]
null
null
null
setup.py
paulboot/PythonMiniProbe
30b43096919c726116446fd9846d7d60038ef03f
[ "BSD-3-Clause" ]
null
null
null
default_sensors = "Ping,HTTP,Port,SNMPCustom,CPULoad,Memory,Diskspace,SNMPTraffic,CPUTemp,Probehealth,ExternalIP,ADNS,APT,NMAP,MDADM" #!/usr/bin/env python3 # Copyright (c) 2014, Paessler AG <support@paessler.com> # All rights reserved. # Redistribution and use in source and binary forms, with or without modification, ...
48.045455
141
0.569321
fd9fac58a973c92571a71f0c49c21e2f5135f822
65,776
py
Python
pandas/tseries/index.py
olgabot/pandas
286811a2775c9b5ca1c30086b1950dd1060ecf68
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
2
2017-03-10T04:16:05.000Z
2019-04-19T23:02:48.000Z
pandas/tseries/index.py
Gwillink/pandas
ceec8bf305fbd0258edb66c648b87219a435bc32
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/tseries/index.py
Gwillink/pandas
ceec8bf305fbd0258edb66c648b87219a435bc32
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
# pylint: disable=E1101 import operator from datetime import time, datetime from datetime import timedelta import numpy as np from pandas.core.common import (isnull, _NS_DTYPE, _INT64_DTYPE, is_list_like,_values_from_object, _maybe_box, notnull) from pa...
33.086519
98
0.561816
a07aa1a8b655bc9788c5d9e1bc3bc21141f51962
4,311
py
Python
cookiecutter/config.py
PLSV/cookiecutter
2bd62c67ec3e52b8e537d5346fd96ebd82803efe
[ "BSD-3-Clause" ]
8
2020-06-15T18:49:24.000Z
2021-04-15T10:34:24.000Z
cookiecutter/config.py
PLSV/cookiecutter
2bd62c67ec3e52b8e537d5346fd96ebd82803efe
[ "BSD-3-Clause" ]
19
2020-06-28T16:03:56.000Z
2020-10-07T15:52:06.000Z
cookiecutter/config.py
PLSV/cookiecutter
2bd62c67ec3e52b8e537d5346fd96ebd82803efe
[ "BSD-3-Clause" ]
1
2020-12-17T13:08:23.000Z
2020-12-17T13:08:23.000Z
"""Global configuration handling.""" import collections import copy import logging import os import poyo from cookiecutter.exceptions import ConfigDoesNotExistException, InvalidConfiguration logger = logging.getLogger(__name__) USER_CONFIG_PATH = os.path.expanduser('~/.cookiecutterrc') BUILTIN_ABBREVIATIONS = { ...
34.488
87
0.689399
273bafb3705a3c03dec9c86413fdbdbf9aacfa4e
1,556
py
Python
blog/admin.py
konerjonlar/codejam
a420c2e422366170e8217a0654d6b1254fac7442
[ "MIT" ]
null
null
null
blog/admin.py
konerjonlar/codejam
a420c2e422366170e8217a0654d6b1254fac7442
[ "MIT" ]
null
null
null
blog/admin.py
konerjonlar/codejam
a420c2e422366170e8217a0654d6b1254fac7442
[ "MIT" ]
1
2021-12-03T17:46:48.000Z
2021-12-03T17:46:48.000Z
from django.contrib import admin from blog.models import Post, Project @admin.register(Post) class PostAdmin(admin.ModelAdmin): list_display = ("title", "description", "get_tags", "is_active") search_fields = ("title", "tags") readonly_fields = ("created_at", "updated_at") fieldsets = ( ( ...
22.882353
68
0.359254
ebcb529679dc379f570fed2f25c56939b3cdcf97
409
py
Python
conanfile.py
bincrafters/conan-boost_uuid
18c7dbe5cfa9d1954179e181a5b93bef0f4e8e53
[ "MIT" ]
null
null
null
conanfile.py
bincrafters/conan-boost_uuid
18c7dbe5cfa9d1954179e181a5b93bef0f4e8e53
[ "MIT" ]
1
2018-02-17T18:34:44.000Z
2018-02-20T18:31:31.000Z
conanfile.py
bincrafters/conan-boost_uuid
18c7dbe5cfa9d1954179e181a5b93bef0f4e8e53
[ "MIT" ]
2
2018-02-15T19:18:22.000Z
2019-10-12T16:22:57.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from conans import python_requires base = python_requires("boost_base/2.0.0@bincrafters/testing") class BoostUuidConan(base.BoostBaseConan): name = "boost_uuid" version = "1.70.0" def package_info(self): super(BoostUuidConan, self).package_info() ...
22.722222
62
0.667482
aba8b3034601aaf3683086a85e7ae701a2275d7c
21,517
py
Python
trimesh/collision.py
dani2112/thesis-trimesh
99f67a7dc2e05b78e088152a9cafedaebe74de1b
[ "MIT" ]
null
null
null
trimesh/collision.py
dani2112/thesis-trimesh
99f67a7dc2e05b78e088152a9cafedaebe74de1b
[ "MIT" ]
null
null
null
trimesh/collision.py
dani2112/thesis-trimesh
99f67a7dc2e05b78e088152a9cafedaebe74de1b
[ "MIT" ]
null
null
null
import numpy as np import collections from .constants import log _fcl_exists = True try: import fcl # pip install python-fcl except BaseException: log.warning('No FCL -- collision checking will not work') _fcl_exists = False class ContactData(object): """ Data structure for holding information...
30.220506
77
0.551936
ff0e465a023ae21485d8f8630f5a9b2bf4de0ed6
175
py
Python
tests/example/reflexes/example_reflex.py
jefftriplett/django-sockpuppet
eedc7f0d4b95646991d8db569e5fca61d56149e2
[ "MIT" ]
null
null
null
tests/example/reflexes/example_reflex.py
jefftriplett/django-sockpuppet
eedc7f0d4b95646991d8db569e5fca61d56149e2
[ "MIT" ]
null
null
null
tests/example/reflexes/example_reflex.py
jefftriplett/django-sockpuppet
eedc7f0d4b95646991d8db569e5fca61d56149e2
[ "MIT" ]
null
null
null
from sockpuppet.reflex import Reflex class ExampleReflex(Reflex): def increment(self, step=1): self.session['count'] = int(self.element.dataset['count']) + step
25
73
0.702857
b40ecf2b9ecbf85e04341d9bc16eb50500aa55bd
27,642
py
Python
suncasa/pygsfit/gsutils.py
binchensolar/suncasa
55339715e791be9fc2fc555c4f4f6adf1b350b37
[ "BSD-2-Clause" ]
2
2018-02-12T09:34:23.000Z
2019-07-16T18:25:12.000Z
suncasa/pygsfit/gsutils.py
wulinhui1/suncasa-src
1f94aaabaf6a3911fa532648ec6676a221553436
[ "BSD-2-Clause" ]
26
2016-11-09T17:11:45.000Z
2021-08-20T13:41:50.000Z
suncasa/pygsfit/gsutils.py
wulinhui1/suncasa-src
1f94aaabaf6a3911fa532648ec6676a221553436
[ "BSD-2-Clause" ]
17
2016-10-27T18:35:46.000Z
2021-08-03T05:33:57.000Z
import numpy as np # import sys import math import os, sys, platform import astropy.units as u from sunpy import map as smap from astropy.coordinates import SkyCoord from suncasa.io import ndfits from . import gstools # initialization library - located either in the current directory or in the system path from suncasa...
40.769912
145
0.552529
66eed3078e25f4e55856ae2168ea3116d3ba6fee
937
py
Python
stu_mgt/urls.py
lennon624/stu_mgt
c0118f9adede46db23b6a9b5329004343023f1a3
[ "MIT" ]
null
null
null
stu_mgt/urls.py
lennon624/stu_mgt
c0118f9adede46db23b6a9b5329004343023f1a3
[ "MIT" ]
null
null
null
stu_mgt/urls.py
lennon624/stu_mgt
c0118f9adede46db23b6a9b5329004343023f1a3
[ "MIT" ]
null
null
null
"""stu_mgt URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
32.310345
77
0.700107
b0540c94140ab0594e675572743463d8f1547fad
3,672
py
Python
video_game_geek/middlewares.py
albert-marrero/video-game-web-scraper
144ae2a4ff70d892ca6bada7d4550ad0f7ae1210
[ "MIT" ]
1
2022-01-12T21:33:25.000Z
2022-01-12T21:33:25.000Z
video_game_geek/middlewares.py
albert-marrero/video-game-web-scraper
144ae2a4ff70d892ca6bada7d4550ad0f7ae1210
[ "MIT" ]
null
null
null
video_game_geek/middlewares.py
albert-marrero/video-game-web-scraper
144ae2a4ff70d892ca6bada7d4550ad0f7ae1210
[ "MIT" ]
1
2022-01-30T04:22:53.000Z
2022-01-30T04:22:53.000Z
# Define here the models for your spider middleware # # See documentation in: # https://docs.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals # useful for handling different item types with a single interface from itemadapter import is_item, ItemAdapter class VideoGameWebScraperSpiderMi...
35.307692
78
0.676471
fbc45345b6d842c680f57f72f6da6d79305c1f2b
268
py
Python
src/api/pdi/application/connection/DeleteConnection/DeleteConnectionCommand.py
ahmetcagriakca/pythondataintegrator
079b968d6c893008f02c88dbe34909a228ac1c7b
[ "MIT" ]
1
2020-12-18T21:37:28.000Z
2020-12-18T21:37:28.000Z
src/api/pdi/application/connection/DeleteConnection/DeleteConnectionCommand.py
ahmetcagriakca/pythondataintegrator
079b968d6c893008f02c88dbe34909a228ac1c7b
[ "MIT" ]
null
null
null
src/api/pdi/application/connection/DeleteConnection/DeleteConnectionCommand.py
ahmetcagriakca/pythondataintegrator
079b968d6c893008f02c88dbe34909a228ac1c7b
[ "MIT" ]
1
2020-12-18T21:37:31.000Z
2020-12-18T21:37:31.000Z
from dataclasses import dataclass from pdip.cqrs import ICommand from pdi.application.connection.DeleteConnection.DeleteConnectionRequest import DeleteConnectionRequest @dataclass class DeleteConnectionCommand(ICommand): request: DeleteConnectionRequest = None
26.8
103
0.86194
f57d0970e3fc31a0a346740afba057b17cbf5748
610
py
Python
AutotestFramework/core/tools/MemcacheTool.py
yangjourney/sosotest
2e88099a829749910ca325253c9b1a2e368d21a0
[ "MIT" ]
422
2019-08-18T05:04:20.000Z
2022-03-31T06:49:19.000Z
AutotestFramework/core/tools/MemcacheTool.py
LinSongJian1985/sosotest
091863dee531b5726650bb63efd6f169267cbeb4
[ "MIT" ]
10
2019-10-24T09:55:38.000Z
2021-09-29T17:28:43.000Z
AutotestFramework/core/tools/MemcacheTool.py
LinSongJian1985/sosotest
091863dee531b5726650bb63efd6f169267cbeb4
[ "MIT" ]
202
2019-08-18T05:04:27.000Z
2022-03-30T05:57:18.000Z
from pymemcache.client.base import Client class MemcacheTool(object): def __init__(self,host,port): self.client = Client((host, port)) def set(self,key,value): self.client.set(key, value) def get(self,key): return self.client.get(key) if __name__ == '__main__': rt = Memcache...
23.461538
43
0.622951
bbc48cdde7037c4d9a2966c475a43331c1206ea5
9,988
py
Python
mlp.py
AliMakiGmail/SFD-CNN-TL
96890a086cb170334f761a825a5fdcdc51444696
[ "MIT" ]
27
2018-09-12T12:00:44.000Z
2022-03-20T07:33:01.000Z
mlp.py
AliMakiGmail/SFD-CNN-TL
96890a086cb170334f761a825a5fdcdc51444696
[ "MIT" ]
2
2020-01-13T16:35:50.000Z
2020-09-07T07:10:12.000Z
mlp.py
AliMakiGmail/SFD-CNN-TL
96890a086cb170334f761a825a5fdcdc51444696
[ "MIT" ]
16
2018-08-11T14:41:09.000Z
2021-10-31T13:24:32.000Z
#!/usr/bin/env python # Copyright 2019 Augusto Cunha and Axelle Pochet # # Permission is hereby granted, free of charge, to any person obtaining a copy of this code and # associated documentation files, to deal in the code without restriction, # including without limitation the rights to use, copy, modify, merge, pub...
43.426087
181
0.680817
6a3c5c42a8619e69dc51d333098ea316d8a51da3
1,635
py
Python
FlowerClassification.py
Akuma47/Iris-Classification
659cc52bc04dc0cd7088e37d7d1e7fa057e3f603
[ "MIT" ]
null
null
null
FlowerClassification.py
Akuma47/Iris-Classification
659cc52bc04dc0cd7088e37d7d1e7fa057e3f603
[ "MIT" ]
null
null
null
FlowerClassification.py
Akuma47/Iris-Classification
659cc52bc04dc0cd7088e37d7d1e7fa057e3f603
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import math dataset = pd.read_csv('iris.data') irisData = [] labels = [] for i in range(100): x1 = [dataset['x1'][i],dataset['x2'][i],dataset['x3'][i],dataset['x4'][i]] irisData.append(x1) if dataset['class'][i] == 'Iris-setosa': labels.ap...
15.721154
79
0.448318
7a58f8304e5be686b7b945a4784c4a2db50efdf2
2,809
py
Python
test/20200920_fungar_cut_volume.py
CITA-cph/deep-sight
9c60183a5bd1f3b6b930cdba8632c33f38769c0b
[ "Apache-2.0" ]
null
null
null
test/20200920_fungar_cut_volume.py
CITA-cph/deep-sight
9c60183a5bd1f3b6b930cdba8632c33f38769c0b
[ "Apache-2.0" ]
null
null
null
test/20200920_fungar_cut_volume.py
CITA-cph/deep-sight
9c60183a5bd1f3b6b930cdba8632c33f38769c0b
[ "Apache-2.0" ]
1
2021-12-05T21:59:49.000Z
2021-12-05T21:59:49.000Z
''' Copyright 2020 CITA 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, software distribute...
24.215517
128
0.617658
23d69c71d80abb4b94fa9d383696e979417fa391
5,364
py
Python
docker/pythonpath_dev/superset_config.py
ayuanty/superset
132a8ef2cb55fa6692ea31d5c278f102d6c2886b
[ "Apache-2.0" ]
null
null
null
docker/pythonpath_dev/superset_config.py
ayuanty/superset
132a8ef2cb55fa6692ea31d5c278f102d6c2886b
[ "Apache-2.0" ]
null
null
null
docker/pythonpath_dev/superset_config.py
ayuanty/superset
132a8ef2cb55fa6692ea31d5c278f102d6c2886b
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
33.735849
115
0.75783
cb87c98dfbf34eed261e716e602f8a3abad998f3
303
py
Python
data/multilingual/Latn.AST/Sans_16/pdf_to_json_test_Latn.AST_Sans_16.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
1
2021-09-19T19:47:35.000Z
2021-09-19T19:47:35.000Z
data/multilingual/Latn.AST/Sans_16/pdf_to_json_test_Latn.AST_Sans_16.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
data/multilingual/Latn.AST/Sans_16/pdf_to_json_test_Latn.AST_Sans_16.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
import pdf_to_json as p2j import json url = "file:data/multilingual/Latn.AST/Sans_16/udhr_Latn.AST_Sans_16.pdf" lConverter = p2j.pdf_to_json.pdf_to_json_converter() lConverter.mImageHashOnly = True lDict = lConverter.convert(url) print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
30.3
73
0.811881
29a261e4cbabbcf991abfb59fc230e1daeea06ba
13,489
py
Python
lib/portal/docpreprocessor/DocParser.py
Jumpscale/jumpscale_portal8
3a4d56a1ba985b68fe9b525aed2486a54808332f
[ "Apache-2.0" ]
null
null
null
lib/portal/docpreprocessor/DocParser.py
Jumpscale/jumpscale_portal8
3a4d56a1ba985b68fe9b525aed2486a54808332f
[ "Apache-2.0" ]
74
2015-12-28T16:17:20.000Z
2021-09-08T12:28:59.000Z
lib/portal/docpreprocessor/DocParser.py
Jumpscale/jumpscale_portal8
3a4d56a1ba985b68fe9b525aed2486a54808332f
[ "Apache-2.0" ]
null
null
null
from JumpScale import j import re class DocParser(): def __init__(self): self.__jslocation__ = "j.portal.tools.docpreprocessor" def parseDoc(self, doc): content = doc.content # TODO: this is badly written can be done by some easy regex, is not performing like this content, do...
41.632716
115
0.485952
2a3d5097d8809d9989db0a2bf45a4663eb471b1d
9,437
py
Python
src/sage/quadratic_forms/special_values.py
defeo/sage
d8822036a9843bd4d75845024072515ede56bcb9
[ "BSL-1.0" ]
2
2018-06-30T01:37:35.000Z
2018-06-30T01:37:39.000Z
src/sage/quadratic_forms/special_values.py
boothby/sage
1b1e6f608d1ef8ee664bb19e991efbbc68cbd51f
[ "BSL-1.0" ]
null
null
null
src/sage/quadratic_forms/special_values.py
boothby/sage
1b1e6f608d1ef8ee664bb19e991efbbc68cbd51f
[ "BSL-1.0" ]
null
null
null
""" Routines for computing special values of L-functions - :func:`gamma__exact` -- Exact values of the `\Gamma` function at integers and half-integers - :func:`zeta__exact` -- Exact values of the Riemann `\zeta` function at critical values - :func:`quadratic_L_function__exact` -- Exact values of the Dirichlet L-functi...
31.881757
184
0.592455
a74421df746d53832f4dad4571574a94ae973ce6
36,667
py
Python
propertyestimator/protocols/groups.py
MSchauperl/propertyestimator
9a67cb61498024c511f9bbe55536ac8e1a3c93be
[ "MIT" ]
null
null
null
propertyestimator/protocols/groups.py
MSchauperl/propertyestimator
9a67cb61498024c511f9bbe55536ac8e1a3c93be
[ "MIT" ]
null
null
null
propertyestimator/protocols/groups.py
MSchauperl/propertyestimator
9a67cb61498024c511f9bbe55536ac8e1a3c93be
[ "MIT" ]
null
null
null
""" A collection of specialized workflow protocols, which serve to group together multiple individual protocol building blocks, and apply special behaviours when executing them. Such behaviours may include for example running the grouped together protocols until certain conditions have been met. """ import copy impor...
34.954242
117
0.63804
c2c02fee1deb405b1da2699f487c8eb0b8d0ad5d
44
py
Python
aiofcm/exceptions.py
shop-loyalty/aiofcm
a15f7144389392be84ebeeaf9ba30b46055d554d
[ "Apache-2.0" ]
2
2022-03-13T09:12:44.000Z
2022-03-28T10:53:06.000Z
src/graia/amnesia/transport/exceptions.py
GraiaProject/Amnesia
d48d3084f776f788767939d73774146086358887
[ "MIT" ]
null
null
null
src/graia/amnesia/transport/exceptions.py
GraiaProject/Amnesia
d48d3084f776f788767939d73774146086358887
[ "MIT" ]
null
null
null
class ConnectionClosed(Exception): pass
14.666667
34
0.772727
d840f95dcf5fd2ca5e579d84aab66dadc77648d8
227
py
Python
01 List/Problems/01_average.py
kmanadkat/leetcode-101
8a9db22d98692d634a497ba76c7e9f792bb1f1bc
[ "MIT" ]
null
null
null
01 List/Problems/01_average.py
kmanadkat/leetcode-101
8a9db22d98692d634a497ba76c7e9f792bb1f1bc
[ "MIT" ]
null
null
null
01 List/Problems/01_average.py
kmanadkat/leetcode-101
8a9db22d98692d634a497ba76c7e9f792bb1f1bc
[ "MIT" ]
1
2021-09-15T11:17:36.000Z
2021-09-15T11:17:36.000Z
from typing import List def findListAverage(inputList: List) -> int: sizeOfList = len(inputList) sumOfList = sum(inputList) return sumOfList / sizeOfList print(findListAverage(inputList=[0, 1, 2, 3, 4, 5, 6]))
18.916667
55
0.696035
a27121361b74b0fa7394d7fbab854bb11217e284
4,797
py
Python
Utils/get_cvc_vulnerabilities.py
devarajug/CVC-TechStack
fa4e44711640335f09a5160b6f8bd10bdd0fc78f
[ "MIT" ]
null
null
null
Utils/get_cvc_vulnerabilities.py
devarajug/CVC-TechStack
fa4e44711640335f09a5160b6f8bd10bdd0fc78f
[ "MIT" ]
null
null
null
Utils/get_cvc_vulnerabilities.py
devarajug/CVC-TechStack
fa4e44711640335f09a5160b6f8bd10bdd0fc78f
[ "MIT" ]
null
null
null
from os.path import isfile from re import search from re import compile from re import sub from json import loads import pandas as pd class FetchCvcVulnerabilities: def __init__(self, cvc_json_file_path, comments={}, escaped_path=[]): self.json_file_path = cvc_json_file_path self.comments = commen...
59.222222
157
0.535752
c5db84742c4b627a7fdceb6c920589a6b7773d99
778
py
Python
Week2/13. F1 driver Standing.py
HawkingLaugh/Data-Processing-Using-Python
6c4d7e09317aee41684731d5611f2f0dab217b2b
[ "MIT" ]
null
null
null
Week2/13. F1 driver Standing.py
HawkingLaugh/Data-Processing-Using-Python
6c4d7e09317aee41684731d5611f2f0dab217b2b
[ "MIT" ]
null
null
null
Week2/13. F1 driver Standing.py
HawkingLaugh/Data-Processing-Using-Python
6c4d7e09317aee41684731d5611f2f0dab217b2b
[ "MIT" ]
null
null
null
import re import requests from bs4 import BeautifulSoup r = requests.get('https://www.formula1.com/en/results.html/2020/drivers.html') soup = BeautifulSoup(r.text, 'lxml') """ 2. Retrieve the data of the athletes from the website of https://www.volleyball.world/en/vnl/2019/women/resultsandranking/round1(include TEAM...
51.866667
177
0.760925
c183107730ad2c96dd7988f0265f0f9091842ecb
514
gyp
Python
test/win/lib-flags/ltcg.gyp
chlorm-forks/gyp
a8921fcaab1a18c8cf7e4ab09ceb940e336918ec
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
test/win/lib-flags/ltcg.gyp
chlorm-forks/gyp
a8921fcaab1a18c8cf7e4ab09ceb940e336918ec
[ "BSD-3-Clause" ]
1,432
2017-06-21T04:08:48.000Z
2020-08-25T16:21:15.000Z
test/win/lib-flags/ltcg.gyp
chlorm-forks/gyp
a8921fcaab1a18c8cf7e4ab09ceb940e336918ec
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
# Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'targets': [ { 'target_name': 'lib_answer', 'type': 'static_library', 'msvs_settings': { 'VCCLCompilerTool': { 'WholePro...
23.363636
72
0.548638
7bba663aa4996a77180fff91cac5dfef967eec1d
1,649
py
Python
segment.py
JanusTan/segment_compute
2fe5659262183435ec338cf7c09597949de6f338
[ "Apache-2.0" ]
null
null
null
segment.py
JanusTan/segment_compute
2fe5659262183435ec338cf7c09597949de6f338
[ "Apache-2.0" ]
null
null
null
segment.py
JanusTan/segment_compute
2fe5659262183435ec338cf7c09597949de6f338
[ "Apache-2.0" ]
null
null
null
''' programmer:Ryan Tan requirement of homework: 1、segment 2、compute the width of the block 3、calculate the area of the block ''' import numpy as np import cv2 #function for verify if the points is in the left edge def checkall(img2,x1,y1): a=0 for p in img2[y1,x1+1:x1+122]: if p == 255: a=1 break...
16.326733
70
0.649485
cee97b7ad500a634abb0bd7bbcadd0f558d2b7d5
3,075
py
Python
data/p2DJ/New/program/qiskit/noisy/startQiskit_noisy142.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/program/qiskit/noisy/startQiskit_noisy142.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/program/qiskit/noisy/startQiskit_noisy142.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=2 # total number=10 import cirq import qiskit from qiskit.providers.aer import QasmSimulator from qiskit.test.mock import FakeVigo from qiskit import IBMQ from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from ...
27.954545
82
0.626667
e2568704269d9bd0aa4e53c7671085de29350477
1,054
py
Python
app/geolocation/services.py
raszidzie/geolocation-api
c79ddda6770004624fcb5722e2c04dedfd79e449
[ "MIT" ]
1
2021-05-22T18:13:29.000Z
2021-05-22T18:13:29.000Z
app/geolocation/services.py
raszidzie/geolocation-api
c79ddda6770004624fcb5722e2c04dedfd79e449
[ "MIT" ]
null
null
null
app/geolocation/services.py
raszidzie/geolocation-api
c79ddda6770004624fcb5722e2c04dedfd79e449
[ "MIT" ]
null
null
null
import os import requests from .exceptions import ExternalApiException def get_location(ip): url = f'http://api.ipstack.com/{ip}' params = {'access_key': os.environ.get('ACCESS_KEY')} try: res = requests.get(url, params=params) data = res.json() return { 'ip':data['ip']...
39.037037
115
0.650854
d3a684632cecf055075c89bab9fec5e30165edf9
4,076
py
Python
rotation_scripts/decade_scripts/analysis_by_decade.py
greenelab/biovectors
cf298a1f581754851e69defedc4770069edd7750
[ "BSD-2-Clause-Patent" ]
3
2021-04-13T15:30:27.000Z
2022-03-09T01:46:27.000Z
rotation_scripts/decade_scripts/analysis_by_decade.py
greenelab/biovectors
cf298a1f581754851e69defedc4770069edd7750
[ "BSD-2-Clause-Patent" ]
6
2020-10-30T11:35:18.000Z
2021-11-12T18:17:25.000Z
rotation_scripts/decade_scripts/analysis_by_decade.py
greenelab/biovectors
cf298a1f581754851e69defedc4770069edd7750
[ "BSD-2-Clause-Patent" ]
2
2020-11-18T15:06:13.000Z
2020-11-19T07:31:50.000Z
""" This module evaluates each decades's word2vec performance using AUROC and precision-recall. Very similar to `analysis` module. """ from sklearn.metrics import ( roc_curve, auc, precision_recall_curve, average_precision_score, ) import pandas as pd import numpy as np import os import matplotlib.pyplo...
33.68595
91
0.610648
2036be9c14e5c125f29726e3c1bf1347ca7905f3
37,658
py
Python
dcnn_train.py
Rohitmaan2012/Twitter_Sentiment_Analysis
15a6497cdde0079a9bc6d852b42eb49f4960c3bf
[ "MIT" ]
null
null
null
dcnn_train.py
Rohitmaan2012/Twitter_Sentiment_Analysis
15a6497cdde0079a9bc6d852b42eb49f4960c3bf
[ "MIT" ]
null
null
null
dcnn_train.py
Rohitmaan2012/Twitter_Sentiment_Analysis
15a6497cdde0079a9bc6d852b42eb49f4960c3bf
[ "MIT" ]
null
null
null
""" CNN for sentence modeling described in paper: A Convolutional Neural Network for Modeling Sentence """ import sys, os, time import pdb import math, random import numpy as np import theano import theano.tensor as T from util import (load_data, dump_params) from logreg import LogisticRegression ...
37.4334
146
0.48821
78e548379d89f168a5ba1a848314f6f14aac9264
15,526
py
Python
project/03-asvspoof-mega/spec2-lcnn-attention-oc/06/model.py
Nijta/project-NN-Pytorch-scripts
06a50ab072613fb60b8b8e1cea85c4aa8e75549d
[ "BSD-3-Clause" ]
null
null
null
project/03-asvspoof-mega/spec2-lcnn-attention-oc/06/model.py
Nijta/project-NN-Pytorch-scripts
06a50ab072613fb60b8b8e1cea85c4aa8e75549d
[ "BSD-3-Clause" ]
null
null
null
project/03-asvspoof-mega/spec2-lcnn-attention-oc/06/model.py
Nijta/project-NN-Pytorch-scripts
06a50ab072613fb60b8b8e1cea85c4aa8e75549d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ model.py Self defined model definition. Usage: """ from __future__ import absolute_import from __future__ import print_function import sys import numpy as np import torch import torch.nn as torch_nn import torch.nn.functional as torch_nn_func import sandbox.block_nn as nii_nn import sand...
34.502222
80
0.560415
806cc5d6465442ee3e8f7edfc8f6b1b903d79062
3,906
py
Python
src/webargs/fields.py
nhoening/webargs
bb77162e317dc8e853f1f6c44b9a0dccbbac2cd4
[ "MIT" ]
null
null
null
src/webargs/fields.py
nhoening/webargs
bb77162e317dc8e853f1f6c44b9a0dccbbac2cd4
[ "MIT" ]
null
null
null
src/webargs/fields.py
nhoening/webargs
bb77162e317dc8e853f1f6c44b9a0dccbbac2cd4
[ "MIT" ]
null
null
null
"""Field classes. Includes all fields from `marshmallow.fields` in addition to a custom `Nested` field and `DelimitedList`. All fields can optionally take a special `location` keyword argument, which tells webargs where to parse the request argument from. .. code-block:: python args = { "active": fields...
33.965217
86
0.678955
f1bcd25a7e17e483560742cb285b58f58525d590
97
py
Python
WD/Cwiczenia/zamianaZnakowImie.py
galursa/UWM
b7ab4a275662764a91af6c5bc79da0d98177d0ac
[ "MIT" ]
1
2020-02-29T14:38:33.000Z
2020-02-29T14:38:33.000Z
WD/Cwiczenia/zamianaZnakowImie.py
galursa/UWM
b7ab4a275662764a91af6c5bc79da0d98177d0ac
[ "MIT" ]
null
null
null
WD/Cwiczenia/zamianaZnakowImie.py
galursa/UWM
b7ab4a275662764a91af6c5bc79da0d98177d0ac
[ "MIT" ]
null
null
null
imie="URSZULA" nazwisko=u"GAŁĄZKA" print(imie.capitalize()) print(nazwisko.capitalize())
13.857143
29
0.71134
307d68771a1b7d284b37614eef69c8c5dad1796f
847
py
Python
graphene/utils/tests/test_str_converters.py
nazarepiedady/graphene
5475a7ad1ff982b973f4c8c2a4507020c8682e15
[ "MIT" ]
7,451
2015-10-07T07:17:19.000Z
2022-03-30T21:56:42.000Z
graphene/utils/tests/test_str_converters.py
nazarepiedady/graphene
5475a7ad1ff982b973f4c8c2a4507020c8682e15
[ "MIT" ]
1,218
2015-10-08T23:58:37.000Z
2022-03-27T20:47:58.000Z
graphene/utils/tests/test_str_converters.py
nazarepiedady/graphene
5475a7ad1ff982b973f4c8c2a4507020c8682e15
[ "MIT" ]
985
2015-10-13T03:15:30.000Z
2022-03-29T08:30:54.000Z
# coding: utf-8 from ..str_converters import to_camel_case, to_snake_case def test_snake_case(): assert to_snake_case("snakesOnAPlane") == "snakes_on_a_plane" assert to_snake_case("SnakesOnAPlane") == "snakes_on_a_plane" assert to_snake_case("SnakesOnA_Plane") == "snakes_on_a__plane" assert to_snake_c...
42.35
70
0.75915
73816cec707fd7bbaa014ca2c9bf3eed370d7f50
426
py
Python
singer_sdk/helpers/_classproperty.py
meltano/sdk
83dde4fe922f9f91bd3c57277849a2a2daa8f09a
[ "Apache-2.0" ]
13
2021-06-21T17:30:32.000Z
2021-12-06T18:45:34.000Z
singer_sdk/helpers/_classproperty.py
meltano/sdk
83dde4fe922f9f91bd3c57277849a2a2daa8f09a
[ "Apache-2.0" ]
null
null
null
singer_sdk/helpers/_classproperty.py
meltano/sdk
83dde4fe922f9f91bd3c57277849a2a2daa8f09a
[ "Apache-2.0" ]
null
null
null
# flake8: noqa """Defines the `classproperty` decorator.""" # noqa class classproperty(property): """Class property decorator.""" def __get__(self, obj, objtype=None): return super(classproperty, self).__get__(objtype) def __set__(self, obj, value): super(classproperty, self).__set__(t...
22.421053
60
0.671362
36729353b534cb7fd230089d9fa2a3ccbfb36649
334
py
Python
src/Python/09_Listy_wprowadzenie/Zad13.py
djeada/Nauka-programowania
b1eb6840c15b830acf552f0a0fc5cc692759152f
[ "MIT" ]
3
2020-09-19T21:38:30.000Z
2022-03-30T11:02:26.000Z
src/Python/09_Listy_wprowadzenie/Zad13.py
djeada/Nauka-programowania
b1eb6840c15b830acf552f0a0fc5cc692759152f
[ "MIT" ]
null
null
null
src/Python/09_Listy_wprowadzenie/Zad13.py
djeada/Nauka-programowania
b1eb6840c15b830acf552f0a0fc5cc692759152f
[ "MIT" ]
1
2022-02-04T09:13:20.000Z
2022-02-04T09:13:20.000Z
""" Znajdz brakujacy element w liscie. Ciag arytmetyczny. """ # Wersja 1 def znajdz_brakujacy_element(lista): suma_przedzialu = (len(lista) + 1) * (min(lista) + max(lista)) // 2 return suma_przedzialu - sum(lista) # Testy poprawnosci lista = [6, 8, 4, 10, 14, 2] wynik = 12 assert znajdz_brakujacy_element(li...
19.647059
71
0.688623
43e5c03f720c95b52709d28512dc41fcf853e240
408
wsgi
Python
kraken.wsgi
peterdemartini/KrakenMaster
2b3ed18f6dcc720e66e1ac397a3b5ee902914e58
[ "BSD-3-Clause" ]
1
2016-12-22T22:25:05.000Z
2016-12-22T22:25:05.000Z
kraken.wsgi
peterdemartini/KrakenMaster
2b3ed18f6dcc720e66e1ac397a3b5ee902914e58
[ "BSD-3-Clause" ]
null
null
null
kraken.wsgi
peterdemartini/KrakenMaster
2b3ed18f6dcc720e66e1ac397a3b5ee902914e58
[ "BSD-3-Clause" ]
1
2022-03-28T00:28:07.000Z
2022-03-28T00:28:07.000Z
#!/usr/bin/python import os import subprocess import sys import logging logging.basicConfig(stream=sys.stderr) sys.path.insert(0,"/var/www/vhosts/KrakenMaster") from kraken.app import create_app from kraken.settings import DevConfig, ProdConfig from kraken.database import db if os.environ.get("KRAKEN_ENV") == 'prod':...
24
49
0.784314
1019bb8db80cbd93fe89c2548591064bc3e95f34
3,748
py
Python
cli/engine/InitEngine.py
lambdastack/lambdastack
0898cf23b490aa520b75f1bcd85be56c74cf35cf
[ "Apache-2.0" ]
6
2021-11-29T13:14:14.000Z
2022-02-02T19:27:44.000Z
cli/engine/InitEngine.py
lambdastack/lambdastack
0898cf23b490aa520b75f1bcd85be56c74cf35cf
[ "Apache-2.0" ]
5
2021-11-17T13:21:58.000Z
2021-11-22T16:31:08.000Z
cli/engine/InitEngine.py
lambdastack/lambdastack
0898cf23b490aa520b75f1bcd85be56c74cf35cf
[ "Apache-2.0" ]
2
2021-10-21T17:31:36.000Z
2021-12-01T08:20:25.000Z
import os from cli.helpers.Step import Step from cli.helpers.build_io import get_build_sshkey_path, save_manifest, get_build_path from cli.helpers.data_loader import load_all_schema_objs, types from cli.engine.ApplyEngine import ApplyEngine from cli.helpers.objdict_helpers import remove_value from cli.version import V...
42.11236
143
0.654749
70bf27bdd44db7bf5b332b50ff769dde5aa58a75
8,384
py
Python
button_recognition.py
Jarvis-Geun/ocr-rcnn-v2
2762f71c0a430979378f1a10b71e33520f337fb9
[ "MIT" ]
null
null
null
button_recognition.py
Jarvis-Geun/ocr-rcnn-v2
2762f71c0a430979378f1a10b71e33520f337fb9
[ "MIT" ]
null
null
null
button_recognition.py
Jarvis-Geun/ocr-rcnn-v2
2762f71c0a430979378f1a10b71e33520f337fb9
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import imageio import numpy as np import tensorflow as tf from PIL import Image, ImageDraw, ImageFont from utils.ops import native_crop_and_resize from utils import visualization_utils as vis_util import tensorflow.contrib.tensorrt as trt charset = {'0': 0, '1': 1, '2': 2, '3': 3, '...
39.734597
109
0.671994
c79b9b80eabea714b06f9a338246920acb2ad4e0
3,942
py
Python
services/dserver_service.py
lastick1/rexpert
cd5908f69cf54671ffe6bb2991c24d19e8f0036d
[ "MIT" ]
1
2020-07-07T09:58:57.000Z
2020-07-07T09:58:57.000Z
services/dserver_service.py
lastick1/rexpert
cd5908f69cf54671ffe6bb2991c24d19e8f0036d
[ "MIT" ]
42
2018-11-11T08:08:46.000Z
2020-01-10T11:15:47.000Z
services/dserver_service.py
lastick1/rexpert
cd5908f69cf54671ffe6bb2991c24d19e8f0036d
[ "MIT" ]
null
null
null
"Управление игровым сервером" from __future__ import annotations from typing import Dict, Any import logging from configs import Config from core import EventsEmitter from rcon import DServerRcon from model import Command, \ CommandType, \ MessageAll, \ MessageAllies, \ MessageAxis, \ MessagePriva...
37.542857
90
0.667935
1cd4f8f60609405f499e79ee04ace90bb0e0f7e8
5,722
py
Python
src/genie/libs/parser/iosxe/tests/ShowIsisNeighbors/cli/equal/golden_output2_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
204
2018-06-27T00:55:27.000Z
2022-03-06T21:12:18.000Z
src/genie/libs/parser/iosxe/tests/ShowIsisNeighbors/cli/equal/golden_output2_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
468
2018-06-19T00:33:18.000Z
2022-03-31T23:23:35.000Z
src/genie/libs/parser/iosxe/tests/ShowIsisNeighbors/cli/equal/golden_output2_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
309
2019-01-16T20:21:07.000Z
2022-03-30T12:56:41.000Z
expected_output = { "isis": { "test_0": { "neighbors": { "R1_xe": { "type": { "L2": { "interfaces": { "GigabitEthernet1": { "ip_address": "1...
39.736111
64
0.183328
0f3ea7400e98f79182eb44ff4cb553e493c1a290
8,084
py
Python
wsgidav/dc/base_dc.py
jaredrunyon/wsgidav
2e375551f1961380d7afd2cbcf3bef32bb98b8d7
[ "MIT" ]
62
2015-02-05T08:16:33.000Z
2022-02-25T20:51:32.000Z
wsgidav/dc/base_dc.py
jaredrunyon/wsgidav
2e375551f1961380d7afd2cbcf3bef32bb98b8d7
[ "MIT" ]
32
2015-01-29T09:46:18.000Z
2022-02-15T03:27:29.000Z
wsgidav/dc/base_dc.py
jaredrunyon/wsgidav
2e375551f1961380d7afd2cbcf3bef32bb98b8d7
[ "MIT" ]
59
2015-02-02T02:36:16.000Z
2022-02-14T01:55:21.000Z
# -*- coding: utf-8 -*- # (c) 2009-2020 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav # Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php """ Abstract base class of a domain controller (used by HTTPAuthenticator). This ABC serves as base class for DomainCo...
33.26749
91
0.64139
a793f46d0ce59440889ea637691349ecb7a79b0b
55,735
py
Python
mahjong/hand_calculating/tests/tests_yaku_calculation.py
wardenlym/mahjong
475da6360e24e70e6e0d1deada573c842a71f261
[ "MIT" ]
254
2017-09-20T15:02:20.000Z
2022-03-28T11:33:28.000Z
mahjong/hand_calculating/tests/tests_yaku_calculation.py
wardenlym/mahjong
475da6360e24e70e6e0d1deada573c842a71f261
[ "MIT" ]
39
2017-09-23T14:28:36.000Z
2022-01-06T08:41:57.000Z
mahjong/hand_calculating/tests/tests_yaku_calculation.py
wardenlym/mahjong
475da6360e24e70e6e0d1deada573c842a71f261
[ "MIT" ]
38
2017-10-19T09:06:53.000Z
2022-03-15T05:08:22.000Z
import unittest from mahjong.constants import EAST, FIVE_RED_SOU, NORTH, SOUTH, WEST from mahjong.hand_calculating.hand import HandCalculator from mahjong.hand_calculating.hand_config import HandConfig, OptionalRules from mahjong.hand_calculating.yaku_config import YakuConfig from mahjong.meld import Meld from mahjong...
42.972244
120
0.660411
cb1d9cfba15fbe3abd6f326f4b1d820540d854c5
1,044
py
Python
modules/math-codes/modules/statistics-and-probability/src/nyc_average-v3.py
drigols/Studies
9c293156935b491ded24be6b511daac67fd43538
[ "MIT" ]
1
2020-09-06T22:17:19.000Z
2020-09-06T22:17:19.000Z
modules/math-codes/modules/statistics-and-probability/src/nyc_average-v3.py
drigols/Studies
9c293156935b491ded24be6b511daac67fd43538
[ "MIT" ]
null
null
null
modules/math-codes/modules/statistics-and-probability/src/nyc_average-v3.py
drigols/Studies
9c293156935b491ded24be6b511daac67fd43538
[ "MIT" ]
null
null
null
######################################################## # Rodrigo Leite - drigols # # Last update: 26/09/2021 # ######################################################## def create_plot(x, y): import matplotlib.pyplot as plt # Display to each "x" the tempe...
37.285714
99
0.564176
dc24632cbb400bc4b5153dc9f6469ef10327de7e
2,185
py
Python
sympy/tensor/array/expressions/array_expressions.py
suryam35/sympy
4aa3cd6c7c689fbe4e604082fb44e2136fa4224d
[ "BSD-3-Clause" ]
null
null
null
sympy/tensor/array/expressions/array_expressions.py
suryam35/sympy
4aa3cd6c7c689fbe4e604082fb44e2136fa4224d
[ "BSD-3-Clause" ]
null
null
null
sympy/tensor/array/expressions/array_expressions.py
suryam35/sympy
4aa3cd6c7c689fbe4e604082fb44e2136fa4224d
[ "BSD-3-Clause" ]
null
null
null
import itertools from sympy import Expr, ImmutableDenseNDimArray, S, Symbol from sympy.core.sympify import _sympify class _ArrayExpr(Expr): pass class ArraySymbol(_ArrayExpr): """ Symbol representing an array expression """ def __new__(cls, symbol, *shape): if isinstance(symbol, str): ...
25.406977
84
0.600915
d7fe140392ce5481d85ab4c9813ad330feb45b70
1,050
py
Python
release/stubs.min/System/Windows/Controls/Primitives_parts/IRecyclingItemContainerGenerator.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/System/Windows/Controls/Primitives_parts/IRecyclingItemContainerGenerator.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/System/Windows/Controls/Primitives_parts/IRecyclingItemContainerGenerator.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
class IRecyclingItemContainerGenerator(IItemContainerGenerator): """ Extends the System.Windows.Controls.Primitives.IItemContainerGenerator interface to reuse the UI content it generates. Classes that are responsible for generating user interface (UI) content on behalf of a host implement this interface. """ ...
36.206897
249
0.714286
70ebd9a173c724563941391bc64081140eba65de
1,092
py
Python
tigercontrol/utils/optimizers/tests/test_adam.py
MinRegret/TigerControl
b1ca0617cbb2198f9d5cb37f725f3d7accbab08f
[ "Apache-2.0" ]
31
2019-11-08T06:01:54.000Z
2021-11-20T04:50:43.000Z
tigercontrol/utils/optimizers/tests/test_adam.py
johnhallman/ctsb
b1ca0617cbb2198f9d5cb37f725f3d7accbab08f
[ "Apache-2.0" ]
32
2019-06-27T15:05:04.000Z
2019-08-07T04:23:47.000Z
tigercontrol/utils/optimizers/tests/test_adam.py
MinRegret/tigercontrol
b1ca0617cbb2198f9d5cb37f725f3d7accbab08f
[ "Apache-2.0" ]
3
2020-09-30T17:06:50.000Z
2021-04-12T22:39:34.000Z
import tigercontrol from tigercontrol.utils.optimizers.adam import Adam from tigercontrol.utils.optimizers.losses import mse import matplotlib.pyplot as plt def test_adam(show=False): environment = tigercontrol.environment('LDS') x = environment.reset(p=2,q=0) controller = tigercontrol.controllers('LSTM'...
28.736842
96
0.677656
8300c0efef839deac1a813a2f856985648869a86
632
py
Python
DataAnalysis_FangSpider.py
Beolus/FangSpider
4fc130085e36f8338041fef075015c3786a9ccf4
[ "Apache-2.0" ]
1
2018-04-03T07:00:14.000Z
2018-04-03T07:00:14.000Z
DataAnalysis_FangSpider.py
Beolus/FangSpider
4fc130085e36f8338041fef075015c3786a9ccf4
[ "Apache-2.0" ]
null
null
null
DataAnalysis_FangSpider.py
Beolus/FangSpider
4fc130085e36f8338041fef075015c3786a9ccf4
[ "Apache-2.0" ]
null
null
null
#_*_coding:utf8_*_ import pymongo import pandas as pd import numpy as np import matplotlib.pylab as plt client = pymongo.MongoClient('192.168.1.123',27017) fangdb = client['fangdb'] newfanginfo = fangdb['20171121140104'] df = pd.DataFrame(list(newfanginfo.find())) df1 = df.loc[:,['EstateArea','RefPrice','AvePrice','H...
20.387097
63
0.678797
a393db40e46cb8ee364e3b222f7489e83760175a
1,287
py
Python
envoy/tests/common.py
glasser/integrations-core
1dd515d49b1690a1369ee5195713605b1b072b1f
[ "BSD-3-Clause" ]
2
2019-05-28T03:48:29.000Z
2019-07-05T07:05:58.000Z
envoy/tests/common.py
glasser/integrations-core
1dd515d49b1690a1369ee5195713605b1b072b1f
[ "BSD-3-Clause" ]
4
2019-07-03T02:53:19.000Z
2019-07-10T14:52:14.000Z
envoy/tests/common.py
glasser/integrations-core
1dd515d49b1690a1369ee5195713605b1b072b1f
[ "BSD-3-Clause" ]
1
2019-12-23T13:35:17.000Z
2019-12-23T13:35:17.000Z
import os from datadog_checks.utils.common import get_docker_hostname try: from functools import lru_cache except ImportError: from backports.functools_lru_cache import lru_cache HERE = os.path.dirname(os.path.abspath(__file__)) FIXTURE_DIR = os.path.join(HERE, 'fixtures') HOST = get_docker_hostname() PORT...
30.642857
117
0.65035
e114798ab808293d0633d2c2ec8c46e2d636881f
5,993
py
Python
remove.py
afnanhaq/political-data-builder
a79f62b31f11652c066882170d4392f86022f94b
[ "MIT" ]
null
null
null
remove.py
afnanhaq/political-data-builder
a79f62b31f11652c066882170d4392f86022f94b
[ "MIT" ]
null
null
null
remove.py
afnanhaq/political-data-builder
a79f62b31f11652c066882170d4392f86022f94b
[ "MIT" ]
3
2021-02-12T18:48:16.000Z
2021-02-13T18:47:23.000Z
# -*- coding: utf-8 -*- """ The class remove is used for data anonymization and dropping of columns with over 75% NaN values. It implements privacy protection by dropping columns containing personally identifiable information. """ # remove_null(df) reads in a dataset, drops columns that have # over 75% of their valu...
46.457364
74
0.615051
cb2de45b308eed70c30fec58294a7a89fb8f91a3
562
py
Python
fate/logReader.py
Huangxy-Minel/Flare
3c091567bfaedfdf0f0d41b00f3e3d501d572515
[ "Apache-2.0" ]
1
2021-11-04T10:28:09.000Z
2021-11-04T10:28:09.000Z
fate/logReader.py
Huangxy-Minel/flare
3c091567bfaedfdf0f0d41b00f3e3d501d572515
[ "Apache-2.0" ]
null
null
null
fate/logReader.py
Huangxy-Minel/flare
3c091567bfaedfdf0f0d41b00f3e3d501d572515
[ "Apache-2.0" ]
null
null
null
import numpy as np filepath = "/home/xinyang/fate_cluster_1.6.1/flare/fate/confs-10000/shared_dir/fate_flow_logs/202111241042473462280/guest/10000/INFO.log" match_str = "Encrypt half_d costs: " num_list = [] with open(filepath, 'r') as f: for line in f.readlines(): idx = line.find(match_str) if id...
31.222222
137
0.606762
0844ae3b861d556ae03f04453ef61ff25e9ad5e0
1,781
py
Python
src/commercetools/ml/client/by_project_key_request_builder.py
lime-green/commercetools-python-sdk
63b77f6e5abe43e2b3ebbf3cdbbe00c7cf80dca6
[ "MIT" ]
1
2021-04-07T20:01:30.000Z
2021-04-07T20:01:30.000Z
src/commercetools/ml/client/by_project_key_request_builder.py
lime-green/commercetools-python-sdk
63b77f6e5abe43e2b3ebbf3cdbbe00c7cf80dca6
[ "MIT" ]
null
null
null
src/commercetools/ml/client/by_project_key_request_builder.py
lime-green/commercetools-python-sdk
63b77f6e5abe43e2b3ebbf3cdbbe00c7cf80dca6
[ "MIT" ]
null
null
null
# Generated file, please do not change!!! import typing from .image_search.by_project_key_image_search_request_builder import ( ByProjectKeyImageSearchRequestBuilder, ) from .missing_data.by_project_key_missing_data_request_builder import ( ByProjectKeyMissingDataRequestBuilder, ) from .recommendations.by_proj...
30.706897
77
0.729366
06570cdc7d959e09c31e847eb2270df7f6845782
635
py
Python
backend/wallet/api/v1/urls.py
crowdbotics-apps/ledger-wallet-29295
d96542a71685ce6d335882c10cf840355c8252f7
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/wallet/api/v1/urls.py
crowdbotics-apps/ledger-wallet-29295
d96542a71685ce6d335882c10cf840355c8252f7
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/wallet/api/v1/urls.py
crowdbotics-apps/ledger-wallet-29295
d96542a71685ce6d335882c10cf840355c8252f7
[ "FTL", "AML", "RSA-MD" ]
null
null
null
from django.urls import path, include from rest_framework.routers import DefaultRouter from .viewsets import ( PaymentTransactionViewSet, TaskerPaymentAccountViewSet, TaskerWalletViewSet, PaymentMethodViewSet, CustomerWalletViewSet, ) router = DefaultRouter() router.register("customerwallet", Custo...
30.238095
68
0.811024
cb4bfdb19d3fafac29848032ad0f722b749b81df
2,090
py
Python
scripts/artifacts/accounts_de.py
deagler4n6/ALEAPP
c25692dac34e2382d1a8d51e5fbb2a39998dc638
[ "MIT" ]
187
2020-02-22T23:35:32.000Z
2022-03-31T13:46:24.000Z
scripts/artifacts/accounts_de.py
deagler4n6/ALEAPP
c25692dac34e2382d1a8d51e5fbb2a39998dc638
[ "MIT" ]
65
2020-02-25T18:22:47.000Z
2022-03-27T21:41:21.000Z
scripts/artifacts/accounts_de.py
deagler4n6/ALEAPP
c25692dac34e2382d1a8d51e5fbb2a39998dc638
[ "MIT" ]
47
2020-02-24T22:33:35.000Z
2022-03-11T05:19:42.000Z
import glob import json import os import shutil import sqlite3 from scripts.artifact_report import ArtifactHtmlReport from scripts.ilapfuncs import logfunc, tsv, timeline, is_platform_windows, open_sqlite_db_readonly def get_accounts_de(files_found, report_folder, seeker, wrap_text): slash = '\\' if is_platform_...
33.174603
98
0.647847
d198456c6a97cb442b9f40e4c8995f805462d089
4,541
py
Python
example/algs.py
jessicagainesbmi203/example
94aac309e2e8f217edd1d45ffde10b586db0a6a7
[ "Apache-2.0" ]
null
null
null
example/algs.py
jessicagainesbmi203/example
94aac309e2e8f217edd1d45ffde10b586db0a6a7
[ "Apache-2.0" ]
null
null
null
example/algs.py
jessicagainesbmi203/example
94aac309e2e8f217edd1d45ffde10b586db0a6a7
[ "Apache-2.0" ]
null
null
null
import numpy as np import collections def is_sorted(x): for i in range(0,x.size-1,1): if x[i] > x[i+1]: return False return True def pointless_sort(x): """ This function always returns the same values to show how testing works, check out the `test/test_alg.py` file to see. ...
34.664122
84
0.600749
930e111fb51336c0b115c993aa563cec891027b6
219
py
Python
src/lesson3/samples/keyInputBasic.py
saji-ryu/pyxel-study
b10ef781a86cfea4dad28efee89f851195189560
[ "MIT" ]
null
null
null
src/lesson3/samples/keyInputBasic.py
saji-ryu/pyxel-study
b10ef781a86cfea4dad28efee89f851195189560
[ "MIT" ]
null
null
null
src/lesson3/samples/keyInputBasic.py
saji-ryu/pyxel-study
b10ef781a86cfea4dad28efee89f851195189560
[ "MIT" ]
null
null
null
import pyxel pyxel.init(200, 200) a = 0 def update(): global a if pyxel.btn(pyxel.KEY_SPACE): a += 1 def draw(): global a pyxel.cls(7) pyxel.circ(a, a, 10, 0) pyxel.run(update, draw)
10.428571
34
0.570776
afeb2199b2290f87e1cab148227a5318b676c4a8
1,199
py
Python
test/test_html_ssrf_detection_result.py
Cloudmersive/Cloudmersive.APIClient.Python.Validate
894a3f578c3860db41b3eed179dcc52e02f565a0
[ "Apache-2.0" ]
3
2018-06-23T21:37:21.000Z
2020-04-20T23:07:36.000Z
test/test_html_ssrf_detection_result.py
Cloudmersive/Cloudmersive.APIClient.Python.Validate
894a3f578c3860db41b3eed179dcc52e02f565a0
[ "Apache-2.0" ]
1
2019-02-04T17:03:35.000Z
2019-03-02T20:16:52.000Z
test/test_html_ssrf_detection_result.py
Cloudmersive/Cloudmersive.APIClient.Python.Validate
894a3f578c3860db41b3eed179dcc52e02f565a0
[ "Apache-2.0" ]
2
2019-03-21T15:54:15.000Z
2020-05-27T17:30:43.000Z
# coding: utf-8 """ validateapi The validation APIs help you validate data. Check if an E-mail address is real. Check if a domain is real. Check up on an IP address, and even where it is located. All this and much more is available in the validation API. # noqa: E501 OpenAPI spec version: v1 Ge...
29.243902
240
0.748957
e062c94bad94c0d995da1a508a5a451bccbd0c25
2,086
py
Python
tests/tests/correctness/EPLAnalytics/Streaming_Calculations/FFT/fft_cor_010/run.py
rpeach-sag/apama-industry-analytics-kit
a3f6039915501d41251b6f7ec41b0cb8111baf7b
[ "Apache-2.0" ]
3
2019-09-02T18:21:22.000Z
2020-04-17T16:34:57.000Z
tests/tests/correctness/EPLAnalytics/Streaming_Calculations/FFT/fft_cor_010/run.py
rpeach-sag/apama-industry-analytics-kit
a3f6039915501d41251b6f7ec41b0cb8111baf7b
[ "Apache-2.0" ]
null
null
null
tests/tests/correctness/EPLAnalytics/Streaming_Calculations/FFT/fft_cor_010/run.py
rpeach-sag/apama-industry-analytics-kit
a3f6039915501d41251b6f7ec41b0cb8111baf7b
[ "Apache-2.0" ]
null
null
null
# $Copyright (c) 2015 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel an...
48.511628
343
0.704698
26d1e4e17ad7b065abe2a53d7352b9aff2efd025
10,590
py
Python
zero/common/train.py
Wesley-Jzy/ColossalAI-Benchmark
0b8b737297316c898c9b3ed6d7eaebaee4e3692c
[ "Apache-2.0" ]
21
2022-01-18T07:37:55.000Z
2022-03-27T12:54:13.000Z
zero/common/train.py
Wesley-Jzy/ColossalAI-Benchmark
0b8b737297316c898c9b3ed6d7eaebaee4e3692c
[ "Apache-2.0" ]
12
2022-01-18T06:09:57.000Z
2022-03-23T07:48:02.000Z
zero/common/train.py
Wesley-Jzy/ColossalAI-Benchmark
0b8b737297316c898c9b3ed6d7eaebaee4e3692c
[ "Apache-2.0" ]
21
2022-01-18T05:52:55.000Z
2022-03-25T06:05:57.000Z
import math import time import torch from torch.distributed import all_reduce, get_rank, get_world_size from tqdm import tqdm from zero.common.utils import CONFIG, AsyncMemoryMonitor, print_log, get_tflops def _train(epoch, rank, world_size, train_dataloader, model, criterion, optimizer, lr_scheduler, sca...
36.770833
119
0.560246
bbc1d6e0a55056cbe4b8ffb3c3cc4cc9eb80fe3c
7,572
py
Python
homemonitoring/homemonitoring/solaredge.py
BigCrunsh/home-monitoring
c82e02462cbd040e5814464b926321bdb84ed446
[ "MIT" ]
2
2020-06-25T20:13:33.000Z
2020-08-06T09:08:26.000Z
homemonitoring/homemonitoring/solaredge.py
BigCrunsh/home-monitoring
c82e02462cbd040e5814464b926321bdb84ed446
[ "MIT" ]
1
2021-06-17T09:50:33.000Z
2021-06-17T09:50:33.000Z
homemonitoring/homemonitoring/solaredge.py
BigCrunsh/home-monitoring
c82e02462cbd040e5814464b926321bdb84ed446
[ "MIT" ]
null
null
null
"""The module contains a wrapper of the Solaredge API with additional functionality.""" import solaredge import datetime import pytz import pandas as pd import numpy as np class Solaredge(solaredge.Solaredge): """Solaredge is a wrapper around the Solaredge API with additional functionality. The Solaredge ...
36.57971
100
0.623217
2ab675eae82058adddc28ece463f504e9b3fd706
6,211
py
Python
sugaroid/brain/convert.py
vardaan-raj/sugaroid
d0476fb9c44a73fee2e0de45162f2b1ac86452aa
[ "MIT" ]
4
2020-09-28T13:52:40.000Z
2020-10-30T15:24:50.000Z
sugaroid/brain/convert.py
sreyasaju/sugaroid
d58e06fb664daa16fda1bf23cc73068efcd5634c
[ "MIT" ]
null
null
null
sugaroid/brain/convert.py
sreyasaju/sugaroid
d58e06fb664daa16fda1bf23cc73068efcd5634c
[ "MIT" ]
null
null
null
""" MIT License Sugaroid Artificial Intelligence Chatbot Core Copyright (c) 2020-2021 Srevin Saju Copyright (c) 2021 The Sugaroid Project 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 r...
39.310127
124
0.5545
749c2f169a498db20130c5e07b8f6e4474e468e0
12,087
py
Python
karolos/agents/sac.py
tmdt-buw/karolos
33039b9a318b4d7ab4b399e2a8737655eccbc80b
[ "MIT" ]
12
2021-01-18T15:00:23.000Z
2022-03-04T13:42:14.000Z
karolos/agents/sac.py
tmdt-buw/karolos
33039b9a318b4d7ab4b399e2a8737655eccbc80b
[ "MIT" ]
4
2021-03-12T15:53:34.000Z
2021-11-18T08:38:48.000Z
karolos/agents/sac.py
tmdt-buw/karolos
33039b9a318b4d7ab4b399e2a8737655eccbc80b
[ "MIT" ]
null
null
null
""" https://spinningup.openai.com/en/latest/algorithms/sac.html """ import os import os.path as osp import numpy as np import torch import torch.nn as nn from torch.distributions import MultivariateNormal from . import Agent from .utils.nn import NeuralNetwork, Clamp, init_xavier_uniform class Policy(NeuralNetwor...
40.424749
109
0.627037
467fd0839130985051b26afada913ce8eff80d11
1,082
py
Python
experiment/tools/test_measure.py
Shitaibin/tweets-spam-clustering
52148c63dd1d1ad97ea7595503e3172ca9268a75
[ "MIT" ]
null
null
null
experiment/tools/test_measure.py
Shitaibin/tweets-spam-clustering
52148c63dd1d1ad97ea7595503e3172ca9268a75
[ "MIT" ]
null
null
null
experiment/tools/test_measure.py
Shitaibin/tweets-spam-clustering
52148c63dd1d1ad97ea7595503e3172ca9268a75
[ "MIT" ]
null
null
null
from unittest import TestCase from measure import cos_similarity class MeasureTestCase(TestCase): """ Unittest for tools.py """ ################################################## # Unittest for Visulize fucntions def test_cos_similarity(self): """ Unittest for function Co...
31.823529
77
0.511091
b8d4fd9cd0b7e8d4b845e72743a3adaa7f7dc2c3
313
py
Python
pkgs/nltk-3.2-py27_0/lib/python2.7/site-packages/nltk/test/gluesemantics_malt_fixt.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
pkgs/nltk-3.2-py27_0/lib/python2.7/site-packages/nltk/test/gluesemantics_malt_fixt.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
pkgs/nltk-3.2-py27_0/lib/python2.7/site-packages/nltk/test/gluesemantics_malt_fixt.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import def setup_module(module): from nose import SkipTest from nltk.parse.malt import MaltParser try: depparser = MaltParser('maltparser-1.7.2') except LookupError: raise SkipTest("MaltParser is not available")
26.083333
54
0.670927
179e68939b02779715c289f7af4d34c763cefff6
1,012
py
Python
django_boilerplate/user/migrations/0003_rightssupport.py
eugen1j/django-boilerplate
952df758141acded74dc762ccfd6d0eb7de5bf43
[ "MIT" ]
null
null
null
django_boilerplate/user/migrations/0003_rightssupport.py
eugen1j/django-boilerplate
952df758141acded74dc762ccfd6d0eb7de5bf43
[ "MIT" ]
null
null
null
django_boilerplate/user/migrations/0003_rightssupport.py
eugen1j/django-boilerplate
952df758141acded74dc762ccfd6d0eb7de5bf43
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-04-08 12:47 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("user", "0002_auto_20210329_0713"), ] operations = [ migrations.CreateModel( name="RightsSupport", fields=[ ...
26.631579
53
0.400198
45dd63b5923f8ab25a55d2afa3aa5014fddaad7d
7,468
py
Python
pennylane/templates/layers/particle_conserving_u2.py
aglitoiu/pennylane
fd99be754d55bbb919aadbbbdff70e40fbe3bcbf
[ "Apache-2.0" ]
null
null
null
pennylane/templates/layers/particle_conserving_u2.py
aglitoiu/pennylane
fd99be754d55bbb919aadbbbdff70e40fbe3bcbf
[ "Apache-2.0" ]
null
null
null
pennylane/templates/layers/particle_conserving_u2.py
aglitoiu/pennylane
fd99be754d55bbb919aadbbbdff70e40fbe3bcbf
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2021 Xanadu Quantum Technologies 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...
36.607843
105
0.641537
0d2c790ad119c6f5f84e0d70ef9be1411d800cf4
6,232
py
Python
lectures/nonlinear_equations/nonlinear_algorithms.py
carolinalvarez/ose-course-scientific-computing
4b816fa81320c88fc5f35b203f0541e0a1a00939
[ "MIT" ]
null
null
null
lectures/nonlinear_equations/nonlinear_algorithms.py
carolinalvarez/ose-course-scientific-computing
4b816fa81320c88fc5f35b203f0541e0a1a00939
[ "MIT" ]
null
null
null
lectures/nonlinear_equations/nonlinear_algorithms.py
carolinalvarez/ose-course-scientific-computing
4b816fa81320c88fc5f35b203f0541e0a1a00939
[ "MIT" ]
null
null
null
"""Algorithms for lecture on nonlinear equations. The materials follow Miranda and Fackler (2004, :cite:`miranda2004applied`) (Chapter 3). The python code draws on Romero-Aguilar (2020, :cite:`CompEcon`). """ from functools import partial import numpy as np from scipy import optimize def bisect(f, a, b, tolerance=1...
26.519149
100
0.59018
be70cd7ccae184bc5cc83e6cd43ddc535c9219a7
6,096
py
Python
src/crawler/test_crawler.py
gbarkway/hypnospace-sitemap
fce9ed296971fd409bdd4d6da5101a7f7f6afcc9
[ "MIT" ]
4
2021-04-18T16:01:54.000Z
2022-02-02T17:23:01.000Z
src/crawler/test_crawler.py
gbarkway/hypnospace-sitemap
fce9ed296971fd409bdd4d6da5101a7f7f6afcc9
[ "MIT" ]
null
null
null
src/crawler/test_crawler.py
gbarkway/hypnospace-sitemap
fce9ed296971fd409bdd4d6da5101a7f7f6afcc9
[ "MIT" ]
null
null
null
import unittest import crawler from pathlib import Path class TestCrawler(unittest.TestCase): def test_readHypnospace(self): hs = crawler.readHypnospace('./test_data') self.assertEqual(len(hs.captures), 1, 'Hypnospace should have expected # captures') self.assertEq...
42.929577
79
0.64042
704759eedb76612148bda5a7c5d4b877cdb52443
2,661
py
Python
data/p4VQE/R4/benchmark/startQiskit_QC695.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit_QC695.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit_QC695.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=3 # total number=14 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ import networkx as nx from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collectio...
28.010526
118
0.637354
87d02725f50cb901eb3cee04d59a902f776f6909
3,423
py
Python
shared/sentry/external/crashpad/util/mach/mig_gen.py
Eeems-Org/oxide
d3bfa47e60bf311feb7768234dfe95a15adeb9da
[ "MIT" ]
18
2022-01-11T17:24:50.000Z
2022-03-30T04:35:25.000Z
shared/sentry/external/crashpad/util/mach/mig_gen.py
Eeems-Org/oxide
d3bfa47e60bf311feb7768234dfe95a15adeb9da
[ "MIT" ]
21
2022-01-07T19:20:04.000Z
2022-03-24T14:32:28.000Z
shared/sentry/external/crashpad/util/mach/mig_gen.py
Eeems-Org/oxide
d3bfa47e60bf311feb7768234dfe95a15adeb9da
[ "MIT" ]
2
2022-01-15T16:45:34.000Z
2022-03-01T22:37:48.000Z
#!/usr/bin/env python3 # Copyright 2019 The Crashpad Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unle...
32.6
81
0.62752
6b2c5bb85d0c5f15a8750916042d66240cd89dfa
1,921
py
Python
examples/background_tasks.py
CoderLeague/research_aiohttp
01113d3edb09388e25fd4a0af73fb7cc01e4aa74
[ "Apache-2.0" ]
1
2019-05-09T08:59:46.000Z
2019-05-09T08:59:46.000Z
examples/background_tasks.py
snjypl/aiohttp
1473f2722b2a804269d4fdbff4880f9ff9da0c3f
[ "Apache-2.0" ]
null
null
null
examples/background_tasks.py
snjypl/aiohttp
1473f2722b2a804269d4fdbff4880f9ff9da0c3f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """Example of aiohttp.web.Application.on_startup signal handler""" import asyncio import aioredis from aiohttp.web import Application, WebSocketResponse, run_app async def websocket_handler(request): ws = WebSocketResponse() await ws.prepare(request) request.app['websockets'].appen...
28.671642
77
0.665279
18fdd813f66637068fc484a9d2cf7ba0f5c590c2
105,442
py
Python
lib/galaxy/tools/__init__.py
igorhollaender/sirv_dashboard
85aec60b80ef6f561d89398e3da5963d3d0f2aa4
[ "CC-BY-3.0" ]
2
2018-10-14T16:42:39.000Z
2018-10-14T16:42:41.000Z
lib/galaxy/tools/__init__.py
igorhollaender/OBSOLETE_sirv_dashboard
85aec60b80ef6f561d89398e3da5963d3d0f2aa4
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/tools/__init__.py
igorhollaender/OBSOLETE_sirv_dashboard
85aec60b80ef6f561d89398e3da5963d3d0f2aa4
[ "CC-BY-3.0" ]
null
null
null
""" Classes encapsulating galaxy tools and tool configuration. """ import glob import json import logging import os import re import tarfile import tempfile import threading import urllib from datetime import datetime from cgi import FieldStorage from xml.etree import ElementTree from mako.template import Template fr...
47.862914
249
0.602986
029abe629472399ca12593136eee3c058f346634
1,988
py
Python
speecht/vocabulary.py
Mehdi-Habibi/MySpeechT
00b07f4fff8b8b0cee1e01fbd07eb9032143eda9
[ "Apache-2.0" ]
154
2016-11-21T19:31:40.000Z
2020-07-30T12:18:56.000Z
speecht/vocabulary.py
sporiyano/speechT
e68dc77e3e0c62be6822963c521750dfcc4272f1
[ "Apache-2.0" ]
23
2017-04-21T15:26:09.000Z
2019-06-24T13:11:13.000Z
speecht/vocabulary.py
sporiyano/speechT
e68dc77e3e0c62be6822963c521750dfcc4272f1
[ "Apache-2.0" ]
37
2016-11-03T09:37:34.000Z
2020-03-02T07:41:17.000Z
# Copyright 2016 Louis Kirsch. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
24.243902
96
0.694165
e42b9fc9668fde06e771f70503dc05ab143406a4
2,927
py
Python
tests/test_MulticlassEvaluator.py
AlexeyVatolin/sentence-transformers
084b80cd351b135a1d48211ec4f4aea37f01a641
[ "Apache-2.0" ]
null
null
null
tests/test_MulticlassEvaluator.py
AlexeyVatolin/sentence-transformers
084b80cd351b135a1d48211ec4f4aea37f01a641
[ "Apache-2.0" ]
null
null
null
tests/test_MulticlassEvaluator.py
AlexeyVatolin/sentence-transformers
084b80cd351b135a1d48211ec4f4aea37f01a641
[ "Apache-2.0" ]
null
null
null
""" Tests the correct computation of evaluation scores from BinaryClassificationEvaluator """ from sentence_transformers import SentenceTransformer, evaluation, models, losses, InputExample import unittest import torch from torch.utils.data import DataLoader from sklearn.metrics import f1_score, accuracy_score import n...
50.465517
127
0.689443
c671a638a900f177d5c4e011b79cb992537acbb9
11,997
py
Python
reefbot_msgs/src/reefbot_msgs/msg/_ImageRegion.py
MRSD2018/reefbot-1
a595ca718d0cda277726894a3105815cef000475
[ "MIT" ]
null
null
null
reefbot_msgs/src/reefbot_msgs/msg/_ImageRegion.py
MRSD2018/reefbot-1
a595ca718d0cda277726894a3105815cef000475
[ "MIT" ]
null
null
null
reefbot_msgs/src/reefbot_msgs/msg/_ImageRegion.py
MRSD2018/reefbot-1
a595ca718d0cda277726894a3105815cef000475
[ "MIT" ]
null
null
null
"""autogenerated by genpy from reefbot_msgs/ImageRegion.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import std_msgs.msg import sensor_msgs.msg class ImageRegion(genpy.Message): _md5sum = "65cc1a85d539c02ff4e503921c8e033b" _type = "reefbot_msg...
37.726415
248
0.645411
494a05a78966b975a6f0acabab2821e49ff1ebb3
22,669
py
Python
model_zoo/research/cv/centernet_det/src/utils.py
Vincent34/mindspore
a39a60878a46e7e9cb02db788c0bca478f2fa6e5
[ "Apache-2.0" ]
2
2021-07-08T13:10:42.000Z
2021-11-08T02:48:57.000Z
model_zoo/research/cv/centernet_det/src/utils.py
peixinhou/mindspore
fcb2ec2779b753e95c762cf292b23bd81d1f561b
[ "Apache-2.0" ]
null
null
null
model_zoo/research/cv/centernet_det/src/utils.py
peixinhou/mindspore
fcb2ec2779b753e95c762cf292b23bd81d1f561b
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Huawei Technologies 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 agreed to...
35.309969
118
0.603776
11da27cd9925e5d76f06ff68d377bb095e8cd8b2
1,188
py
Python
workflow_array_ephys/pipeline.py
dimitri-yatsenko/workflow-ephys
ea89aa92da527960a6993245e53881bffd40e123
[ "MIT" ]
1
2021-07-28T07:54:40.000Z
2021-07-28T07:54:40.000Z
workflow_array_ephys/pipeline.py
dimitri-yatsenko/workflow-ephys
ea89aa92da527960a6993245e53881bffd40e123
[ "MIT" ]
28
2021-03-24T16:22:03.000Z
2022-03-25T16:02:05.000Z
workflow_array_ephys/pipeline.py
dimitri-yatsenko/workflow-ephys
ea89aa92da527960a6993245e53881bffd40e123
[ "MIT" ]
6
2021-04-27T23:15:36.000Z
2022-01-24T21:29:43.000Z
import datajoint as dj from element_animal import subject from element_lab import lab from element_session import session from element_array_ephys import probe, ephys from element_animal.subject import Subject from element_lab.lab import Source, Lab, Protocol, User, Project from element_session.session import Session ...
27.627907
80
0.66835
29361a6123f58daf5a9f423360f8dfb90ffa384a
497
py
Python
nomi/migrations/0121_auto_20170805_1213.py
TheDjangoBoys/Gymkhana-Nominations
6ce13fb3a21fe91630e0c8fdaf597e61c87f2d06
[ "MIT" ]
null
null
null
nomi/migrations/0121_auto_20170805_1213.py
TheDjangoBoys/Gymkhana-Nominations
6ce13fb3a21fe91630e0c8fdaf597e61c87f2d06
[ "MIT" ]
null
null
null
nomi/migrations/0121_auto_20170805_1213.py
TheDjangoBoys/Gymkhana-Nominations
6ce13fb3a21fe91630e0c8fdaf597e61c87f2d06
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-08-05 12:13 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('nomi', '0120_auto_20170805_1210'), ] operations = [ migrations.RemoveField( ...
20.708333
48
0.581489
5b2a64cca7083722a08fe3a607628e9bc3e5f5e5
1,002
py
Python
aqt/jax_legacy/jax/wmt_mlperf/hparams_configs/experimental/small_model_4bit_weights_and_fixed_acts.py
ychzhang/aqt
54427ea65120af980b8f2540e94ebe2db1dd3ccd
[ "Apache-2.0" ]
2
2022-01-13T06:34:00.000Z
2022-03-30T17:08:55.000Z
aqt/jax_legacy/jax/wmt_mlperf/hparams_configs/experimental/small_model_4bit_weights_and_fixed_acts.py
ychzhang/aqt
54427ea65120af980b8f2540e94ebe2db1dd3ccd
[ "Apache-2.0" ]
3
2022-03-30T19:48:22.000Z
2022-03-31T20:47:30.000Z
aqt/jax_legacy/jax/wmt_mlperf/hparams_configs/experimental/small_model_4bit_weights_and_fixed_acts.py
ychzhang/aqt
54427ea65120af980b8f2540e94ebe2db1dd3ccd
[ "Apache-2.0" ]
3
2022-01-13T00:10:17.000Z
2022-03-29T17:31:16.000Z
# Copyright 2022 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 agreed to in writing, ...
37.111111
91
0.788423
367626f40298ba8214c2c80e13657abbcf7d77cf
599
py
Python
reachme/complaint/migrations/0009_alter_complaint_subcategory_servant_role.py
akshita-k06/Socialshout
ef45c7f4a2d73f613760f59d507554465ba19264
[ "MIT" ]
1
2021-06-28T08:20:25.000Z
2021-06-28T08:20:25.000Z
reachme/complaint/migrations/0009_alter_complaint_subcategory_servant_role.py
akshita-k06/SocialShout
ef45c7f4a2d73f613760f59d507554465ba19264
[ "MIT" ]
null
null
null
reachme/complaint/migrations/0009_alter_complaint_subcategory_servant_role.py
akshita-k06/SocialShout
ef45c7f4a2d73f613760f59d507554465ba19264
[ "MIT" ]
1
2021-06-27T14:45:59.000Z
2021-06-27T14:45:59.000Z
# Generated by Django 3.2 on 2021-06-14 05:50 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('complaint', '0008_alter_complaint_subcategory_servant_role'), ] operations = [ migrations.AlterField( model_name='complaint_subcat...
31.526316
220
0.656093
4fa93542a574917045fd4e0f8e634b7399f863b5
1,907
py
Python
service-rpc/src/pypi/setup.py
Genius-pig/incubator-iotdb
67c0b62dbd7d1423a3ee2bf13683815a5bdb3d4a
[ "Apache-2.0" ]
1
2019-12-23T14:27:56.000Z
2019-12-23T14:27:56.000Z
service-rpc/src/pypi/setup.py
rongbo-j/incubator-iotdb
96fd6d70e35f8bbbcea1a0fc2d48989dd61c5379
[ "Apache-2.0" ]
null
null
null
service-rpc/src/pypi/setup.py
rongbo-j/incubator-iotdb
96fd6d70e35f8bbbcea1a0fc2d48989dd61c5379
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may...
34.053571
71
0.698479
9291a3c63408da6afb0946c54331f76850050bfa
512
py
Python
views/charts/ClosenessCentralityChart.py
alvarofpp/ufrn-imd1155-brazil-air-traffic-network-analysis
41b9b24a238110c17c09e2a4e2df542c6bcbce1b
[ "MIT" ]
null
null
null
views/charts/ClosenessCentralityChart.py
alvarofpp/ufrn-imd1155-brazil-air-traffic-network-analysis
41b9b24a238110c17c09e2a4e2df542c6bcbce1b
[ "MIT" ]
null
null
null
views/charts/ClosenessCentralityChart.py
alvarofpp/ufrn-imd1155-brazil-air-traffic-network-analysis
41b9b24a238110c17c09e2a4e2df542c6bcbce1b
[ "MIT" ]
null
null
null
import networkx as nx from typing import Dict from .BokehChart import BokehChart class ClosenessCentralityChart(BokehChart): _title = 'Closeness Centrality' _attribute = 'closeness_centrality' def __init__(self, **kwargs): kwargs.update({ 'tooltips': [ ('closeness cent...
25.6
63
0.630859
b2f448445656385de2eaf744dfdc6dff0eb9055f
1,566
py
Python
Assignment/Week6/LinkMySQL.py
wcsodw1/Wehelp-assignments
1225e4d8614cb89b5ed4ea8ad58411a52cacc2f8
[ "MIT" ]
null
null
null
Assignment/Week6/LinkMySQL.py
wcsodw1/Wehelp-assignments
1225e4d8614cb89b5ed4ea8ad58411a52cacc2f8
[ "MIT" ]
null
null
null
Assignment/Week6/LinkMySQL.py
wcsodw1/Wehelp-assignments
1225e4d8614cb89b5ed4ea8ad58411a52cacc2f8
[ "MIT" ]
null
null
null
# python LinkMySQL.py import pymysql # 打开数据库连接 db = pymysql.connect(host='localhost', user='root', password='root', database='website') # 使用 cursor() 方法创建一个游标对象 cursor cursor = db.cursor() # 使用 execute() 方法执行 SQL,如果表存在则删除 cursor.execute("DROP TABLE IF ...
21.452055
64
0.5894
e67436a1651546e9c261f400a2a86b3225fdcdad
8,930
py
Python
fies/fiesutils.py
nespinoza/ceres
e5426067bc5855b0f690e4a51b7d6fd2a48471c6
[ "MIT" ]
null
null
null
fies/fiesutils.py
nespinoza/ceres
e5426067bc5855b0f690e4a51b7d6fd2a48471c6
[ "MIT" ]
null
null
null
fies/fiesutils.py
nespinoza/ceres
e5426067bc5855b0f690e4a51b7d6fd2a48471c6
[ "MIT" ]
null
null
null
import pyfits import numpy as np import scipy import copy import glob import os import matplotlib.pyplot as plt import sys from pylab import * base = "../" sys.path.append(base+"utils/GLOBALutils") import GLOBALutils def get_thar_offsets(lines_thar, order_dir='wavcals/', pref='order_', suf='.iwdat', delt_or=10, del_...
28.259494
256
0.619709
9f0ddebbd166f9815a9445e766f834f3cc461f15
4,396
py
Python
examples/getArch.py
kamnsv/impacket
83a581e4ba0cb3b7ba5dfa3018b87f9bf1a2cb58
[ "Apache-1.1" ]
6,612
2018-10-10T22:45:11.000Z
2022-03-31T18:13:01.000Z
examples/getArch.py
anno5750/impacket
ed7082cd0bc0d951f6eefb0a98c4c1360fe1a8a2
[ "Apache-1.1" ]
703
2018-10-11T11:38:30.000Z
2022-03-31T14:59:22.000Z
examples/getArch.py
anno5750/impacket
ed7082cd0bc0d951f6eefb0a98c4c1360fe1a8a2
[ "Apache-1.1" ]
2,172
2018-10-11T10:51:26.000Z
2022-03-31T04:45:49.000Z
#!/usr/bin/env python # Impacket - Collection of Python classes for working with network protocols. # # SECUREAUTH LABS. Copyright (C) 2020 SecureAuth Corporation. All rights reserved. # # This software is provided under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # f...
37.254237
137
0.648544
821a9f891dacf7a50c44e62891cfc79598d34d3b
13,350
py
Python
tchannel/tchannel.py
islavov/tchannel-python
ca3da9b4e0367d2e00078b158ab9e0bb4f328619
[ "MIT" ]
98
2015-07-10T23:42:11.000Z
2021-11-08T11:21:02.000Z
tchannel/tchannel.py
islavov/tchannel-python
ca3da9b4e0367d2e00078b158ab9e0bb4f328619
[ "MIT" ]
445
2015-07-10T23:58:02.000Z
2021-08-24T14:58:39.000Z
tchannel/tchannel.py
islavov/tchannel-python
ca3da9b4e0367d2e00078b158ab9e0bb4f328619
[ "MIT" ]
43
2015-07-22T19:14:57.000Z
2021-09-14T12:12:38.000Z
# Copyright (c) 2016 Uber Technologies, Inc. # # 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, modify, merge, publ...
34.056122
79
0.625243
1ec417d31df43492b706f9cf0a742f874e8822eb
653
bzl
Python
rules/jvm/private/label.bzl
tjarvstrand/rules_scala
ff423d8bdd0e5383f8f2c048ffd7704bb51a91bf
[ "Apache-2.0" ]
53
2019-01-07T23:15:32.000Z
2021-09-24T00:27:40.000Z
rules/jvm/private/label.bzl
tjarvstrand/rules_scala
ff423d8bdd0e5383f8f2c048ffd7704bb51a91bf
[ "Apache-2.0" ]
101
2019-01-05T04:52:40.000Z
2021-01-29T16:48:58.000Z
rules/jvm/private/label.bzl
tjarvstrand/rules_scala
ff423d8bdd0e5383f8f2c048ffd7704bb51a91bf
[ "Apache-2.0" ]
24
2019-01-23T07:54:28.000Z
2022-02-10T19:42:07.000Z
load("@rules_scala_annex//rules:providers.bzl", "LabeledJars") def labeled_jars_implementation(target, ctx): if JavaInfo not in target: return [] deps_labeled_jars = [dep[LabeledJars] for dep in getattr(ctx.rule.attr, "deps", []) if LabeledJars in dep] java_info = target[JavaInfo] return [ ...
36.277778
127
0.623277
f955058a256de3e402aec4fa22a9f344a9ac4b04
11,961
py
Python
tests/v1/test_actions.py
tfuji384/atodeyomu
8a5e61a593d099726131e060a33b8801056bc286
[ "MIT" ]
null
null
null
tests/v1/test_actions.py
tfuji384/atodeyomu
8a5e61a593d099726131e060a33b8801056bc286
[ "MIT" ]
null
null
null
tests/v1/test_actions.py
tfuji384/atodeyomu
8a5e61a593d099726131e060a33b8801056bc286
[ "MIT" ]
null
null
null
import json from http import HTTPStatus from unittest import mock from fastapi.testclient import TestClient from moto import mock_dynamodb2 from app import app, models from tests.factories import get_object client = TestClient(app) def test_redirect_to_view_submission(): payload = { 'type': 'view_submi...
30.357868
112
0.484491
c1508cc2a1134d35a365925048d460eef69170ca
4,369
py
Python
code/cmt/python/tests/glm_test.py
lucastheis/cmt
39cf7a341279a3700ca30909a2b254ae86d0c273
[ "MIT" ]
33
2015-06-15T16:52:23.000Z
2019-11-26T19:49:36.000Z
code/cmt/python/tests/glm_test.py
lucastheis/cmt
39cf7a341279a3700ca30909a2b254ae86d0c273
[ "MIT" ]
35
2015-03-17T09:27:32.000Z
2022-01-13T00:44:05.000Z
code/cmt/python/tests/glm_test.py
lucastheis/cmt
39cf7a341279a3700ca30909a2b254ae86d0c273
[ "MIT" ]
17
2015-01-20T10:39:59.000Z
2020-12-16T10:24:13.000Z
import sys import unittest from pickle import dump, load from tempfile import mkstemp from numpy import * from numpy import max from numpy.linalg import inv from numpy.random import randn, rand from cmt.models import Bernoulli, GLM from cmt.nonlinear import LogisticFunction, BlobNonlinearity class Tests(unittest.Test...
22.755208
89
0.651637
b0a045f5932d32e2af57aa53fe2d0e0efd11f087
935
py
Python
tests/tools/perf/kvtable/test_dict2kvtable.py
michalbiesek/rpma
100bed7bebc57ba1164f9b786acd4ea9ba0b688e
[ "BSD-3-Clause" ]
83
2020-02-18T13:19:10.000Z
2022-03-29T08:22:28.000Z
tests/tools/perf/kvtable/test_dict2kvtable.py
michalbiesek/rpma
100bed7bebc57ba1164f9b786acd4ea9ba0b688e
[ "BSD-3-Clause" ]
603
2020-02-13T10:45:28.000Z
2022-03-31T11:13:17.000Z
tests/tools/perf/kvtable/test_dict2kvtable.py
michalbiesek/rpma
100bed7bebc57ba1164f9b786acd4ea9ba0b688e
[ "BSD-3-Clause" ]
51
2020-02-13T09:11:15.000Z
2022-03-29T08:22:31.000Z
#!/usr/bin/env python3 # # SPDX-License-Identifier: BSD-3-Clause # Copyright 2021, Intel Corporation # """test_dict2kvtable.py -- lib.kvtable.dict2kvtable() tests""" import lib.kvtable HEADER = '<tr><th>Item</th><th>Description</th></tr></thead><tbody>' START = '<table><thead>' STOP = '</tbody></table>' EMPTY = STA...
25.972222
69
0.612834
4593aa22a82f7cf0a2cdf1f486867cbe7d2f68a3
556
py
Python
gryphon/data_service/pollers/orderbook/bitstamp_btc_eur_orderbook_poller.py
qiquanzhijia/gryphon
7bb2c646e638212bd1352feb1b5d21536a5b918d
[ "Apache-2.0" ]
1,109
2019-06-20T19:23:27.000Z
2022-03-20T14:03:43.000Z
gryphon/data_service/pollers/orderbook/bitstamp_btc_eur_orderbook_poller.py
qiquanzhijia/gryphon
7bb2c646e638212bd1352feb1b5d21536a5b918d
[ "Apache-2.0" ]
63
2019-06-21T05:36:17.000Z
2021-05-26T21:08:15.000Z
gryphon/data_service/pollers/orderbook/bitstamp_btc_eur_orderbook_poller.py
qiquanzhijia/gryphon
7bb2c646e638212bd1352feb1b5d21536a5b918d
[ "Apache-2.0" ]
181
2019-06-20T19:42:05.000Z
2022-03-21T13:05:13.000Z
from gryphon.data_service.pollers.orderbook.orderbook_poller import OrderbookPoller class BitstampBTCEUROrderbook(OrderbookPoller): def __init__(self): self.exchange_name = u'BITSTAMP_BTC_EUR' self.url = 'https://www.bitstamp.net/api/v2/order_book/btceur/' self.poll_time = 1 # API res...
29.263158
83
0.638489
13a870a656ab218338034f8183320b874dfe75f3
7,358
py
Python
nets/triplet_loss_all.py
avagait/gaitcopy
2fee760156b289ef12f19fb366fb62cf535c305e
[ "MIT" ]
1
2022-01-25T17:32:47.000Z
2022-01-25T17:32:47.000Z
nets/triplet_loss_all.py
avagait/gaitcopy
2fee760156b289ef12f19fb366fb62cf535c305e
[ "MIT" ]
null
null
null
nets/triplet_loss_all.py
avagait/gaitcopy
2fee760156b289ef12f19fb366fb62cf535c305e
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow_addons.utils.types import FloatTensorLike, TensorLike from typeguard import typechecked from typing import Optional def _pairwise_distances(embeddings, squared=False): """Compute the 2D matrix of distances between all the embeddings. Args: embeddings: tensor of s...
38.726316
168
0.718266
f1eaf6337ea04e32b587e8948581b4d279792607
471
py
Python
reinforceflow/__init__.py
ktk1012/reinforceflow
88d426a5ce0480a8a0bf8f28f573582e950ebe15
[ "MIT" ]
12
2017-07-16T12:13:25.000Z
2022-03-08T04:45:16.000Z
reinforceflow/__init__.py
ktk1012/reinforceflow
88d426a5ce0480a8a0bf8f28f573582e950ebe15
[ "MIT" ]
null
null
null
reinforceflow/__init__.py
ktk1012/reinforceflow
88d426a5ce0480a8a0bf8f28f573582e950ebe15
[ "MIT" ]
4
2017-07-25T13:28:56.000Z
2018-12-01T11:05:09.000Z
from __future__ import absolute_import from reinforceflow.config import version as __version__ from reinforceflow.config import get_random_seed from reinforceflow.config import set_random_seed from reinforceflow.config import logger from reinforceflow import config from reinforceflow import agents from reinforceflow i...
27.705882
55
0.874735
6f219aeb01ea519373b2d340f40c1eec75858a63
1,242
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/circuitplayground_temperature_neopixels.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
75
2017-08-17T18:00:28.000Z
2022-03-30T00:37:20.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/circuitplayground_temperature_neopixels.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
65
2017-08-02T02:06:54.000Z
2022-03-21T22:45:08.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/circuitplayground_temperature_neopixels.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
64
2017-09-15T21:05:50.000Z
2022-02-10T06:20:45.000Z
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT """ This example use the temperature sensor on the Circuit Playground, located next to the picture of the thermometer on the board. Try warming up the board to watch the number of NeoPixels lit up increase, or cooling it down...
31.846154
97
0.716586
5bf21623b2fd650d7ac57816200a2d165266d337
422
py
Python
teraserver/python/tests/opentera/db/models/test_TeraUserGroup.py
introlab/opentera
bfc4de672c9de40b7c9a659be2138731e7ee4e94
[ "Apache-2.0" ]
10
2020-03-16T14:46:06.000Z
2022-02-11T16:07:38.000Z
teraserver/python/tests/opentera/db/models/test_TeraUserGroup.py
introlab/opentera
bfc4de672c9de40b7c9a659be2138731e7ee4e94
[ "Apache-2.0" ]
114
2019-09-16T13:02:50.000Z
2022-03-22T19:17:36.000Z
teraserver/python/tests/opentera/db/models/test_TeraUserGroup.py
introlab/opentera
bfc4de672c9de40b7c9a659be2138731e7ee4e94
[ "Apache-2.0" ]
null
null
null
import unittest import os from modules.DatabaseModule.DBManager import DBManager from opentera.config.ConfigManager import ConfigManager from tests.opentera.db.models.BaseModelsTest import BaseModelsTest class TeraUserGroupTest(BaseModelsTest): filename = os.path.join(os.path.dirname(__file__), 'TeraUserGroupTe...
22.210526
78
0.758294
febf7fbc7ecaef4776bcedcb2d3c0564a2c9b3d8
3,461
py
Python
crseek/annotators.py
DamLabResources/crisprtree
13d8870dc1d3bba6c58ef23772c1a2504e817198
[ "MIT" ]
5
2018-11-11T08:57:42.000Z
2021-07-27T21:31:00.000Z
crseek/annotators.py
DamLabResources/crisprtree
13d8870dc1d3bba6c58ef23772c1a2504e817198
[ "MIT" ]
1
2019-01-08T15:17:07.000Z
2019-01-09T08:13:01.000Z
crseek/annotators.py
DamLabResources/crseek
13d8870dc1d3bba6c58ef23772c1a2504e817198
[ "MIT" ]
null
null
null
import pandas as pd from Bio import Alphabet from Bio.Seq import Seq, reverse_complement from Bio.SeqFeature import SeqFeature, FeatureLocation from Bio.SeqRecord import SeqRecord from crseek import exceptions from crseek.estimators import SequenceBase from crseek import utils def annotate_grna_binding(spacer, seq_r...
32.345794
92
0.645767
571aa4a263581d9cdbb9d3d32ade91bccc9465eb
173
py
Python
iamheadless_publisher/apps.py
plain-ie/iamheadless_publisher
8a7bcee202c3dae6909452d87936f4d9f2d2668e
[ "MIT" ]
null
null
null
iamheadless_publisher/apps.py
plain-ie/iamheadless_publisher
8a7bcee202c3dae6909452d87936f4d9f2d2668e
[ "MIT" ]
null
null
null
iamheadless_publisher/apps.py
plain-ie/iamheadless_publisher
8a7bcee202c3dae6909452d87936f4d9f2d2668e
[ "MIT" ]
null
null
null
from django.apps import AppConfig class IamheadlessPublisherConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'iamheadless_publisher'
24.714286
56
0.797688
b775e76527b76b4f14eabe487616fcd891e8a359
1,004
py
Python
main.py
yadhu621/zerossl-app
a20a9820cc0afb0b57968bfa8c13033623710db7
[ "MIT" ]
null
null
null
main.py
yadhu621/zerossl-app
a20a9820cc0afb0b57968bfa8c13033623710db7
[ "MIT" ]
1
2022-03-09T01:58:17.000Z
2022-03-09T01:58:17.000Z
main.py
yadhu621/zerossl-app
a20a9820cc0afb0b57968bfa8c13033623710db7
[ "MIT" ]
null
null
null
import requests API_KEY = "96903f1cf7f7d5e8493cf56d52be4c31" BASE_URL = "https://api.zerossl.com" # api.zerossl.com/example_endpoint?access_key=EXAMPLE_KEY URL = BASE_URL + '/certificates?access_key=' + API_KEY DOMAIN = "amyra.co.uk" # List certificates resp = requests.get(URL) resp_dict = resp.json() results = resp...
25.74359
60
0.688247