hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
14facc158c9ae0211dc9f79665a995fbf1d899ee
2,366
py
Python
amime/modules/anime/TV-SHOW/KATEGORI/SCIFI/ktgr_action7.py
Myudi422/ccgnime_req
a0f7596ba101204539b4120dffa08912b6560efe
[ "MIT" ]
null
null
null
amime/modules/anime/TV-SHOW/KATEGORI/SCIFI/ktgr_action7.py
Myudi422/ccgnime_req
a0f7596ba101204539b4120dffa08912b6560efe
[ "MIT" ]
null
null
null
amime/modules/anime/TV-SHOW/KATEGORI/SCIFI/ktgr_action7.py
Myudi422/ccgnime_req
a0f7596ba101204539b4120dffa08912b6560efe
[ "MIT" ]
null
null
null
import httpx from anilist.types import Anime from pyrogram import filters from pyrogram.types import CallbackQuery from pyromod.helpers import ikb from pyromod.nav import Pagination from amime.amime import Amime @Amime.on_callback_query(filters.regex(r"^tv_scifi7 anime (?P<page>\d+)")) async def anime_suggestions(bo...
31.972973
112
0.482671
7b30514631433ce7fe88a6e4ceb8ab644b46db91
5,348
py
Python
src/datamgr/datamanager/collection/cmdb/processes/host.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
84
2021-06-30T06:20:23.000Z
2022-03-22T03:05:49.000Z
src/datamgr/datamanager/collection/cmdb/processes/host.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
7
2021-06-30T06:21:16.000Z
2022-03-29T07:36:13.000Z
src/datamgr/datamanager/collection/cmdb/processes/host.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
40
2021-06-30T06:21:26.000Z
2022-03-29T12:42:26.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE 蓝鲸基础平台 is licensed under the MIT License. License for BK-BASE 蓝鲸基础平台: ---------------------------------------------...
45.709402
111
0.642857
475f9aed1b8fb98c5f0912be8b263461de871cc4
931
py
Python
tests/unit_tests/mathTools/testPricingEngine.py
neoyung/IrLib
942793c49a477c9f5747410be74daf868391f289
[ "MIT" ]
1
2021-10-04T03:15:50.000Z
2021-10-04T03:15:50.000Z
tests/unit_tests/mathTools/testPricingEngine.py
neoyung/IrLib
942793c49a477c9f5747410be74daf868391f289
[ "MIT" ]
null
null
null
tests/unit_tests/mathTools/testPricingEngine.py
neoyung/IrLib
942793c49a477c9f5747410be74daf868391f289
[ "MIT" ]
null
null
null
import unittest import numpy as np from irLib.mathTools.pricingEngine import blackEngine, bachelierEngine F = 0.03 K = 0.032 sigma = 0.2 time2Maturity = 2 # r = 0 for easy intergration swaption pricing which just need the future # expected value of forward swap rate over strike class testPricingEngine(unittest.TestC...
34.481481
73
0.683136
b11817406e0a7b597961436fc53be75b9f309b16
79,537
py
Python
ais/imo_001_11_handcoded.py
rolker/noaadata
052a4b7d634e0a3a92a348b543e5db536ae24f02
[ "Apache-2.0" ]
35
2015-02-15T17:23:00.000Z
2022-01-27T01:49:43.000Z
ais/imo_001_11_handcoded.py
rolker/noaadata
052a4b7d634e0a3a92a348b543e5db536ae24f02
[ "Apache-2.0" ]
2
2017-10-04T17:24:38.000Z
2017-10-04T18:22:00.000Z
ais/imo_001_11_handcoded.py
rolker/noaadata
052a4b7d634e0a3a92a348b543e5db536ae24f02
[ "Apache-2.0" ]
22
2015-02-08T13:29:58.000Z
2022-03-09T03:03:16.000Z
#!/usr/bin/env python __version__ = '$Revision: 4791 $'.split()[1] __date__ = '$Date: 2010-03-31 $'.split()[1] __author__ = 'xmlbinmsg' __doc__=''' Autogenerated python functions to serialize/deserialize binary messages. Generated by: ../scripts/aisxmlbinmsg2py.py Need to then wrap these functions with the outer A...
40.10943
448
0.677119
cddb773d747456bda545807b94273a567fea14a6
263
py
Python
setup.py
patel-zeel/nsgpytorch
9b8fe76597547e0a29d7ce68ce1c06ac2aa2862a
[ "MIT" ]
null
null
null
setup.py
patel-zeel/nsgpytorch
9b8fe76597547e0a29d7ce68ce1c06ac2aa2862a
[ "MIT" ]
3
2021-09-22T08:31:49.000Z
2021-10-13T14:23:14.000Z
setup.py
patel-zeel/regdata
4b823368750a1afd24b1b8d63e3b2ba58d983c79
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup with open('requirements.txt') as f: requirements = f.read().strip().split('\n') setup( packages=find_packages(), python_requires=">=3.6", install_requires=requirements, include_package_data=True, )
23.909091
47
0.711027
1516bff91669d113f4a9159f7fbb3840595d4d6b
2,832
py
Python
ProgettoLube/WebInspector/venv/Lib/site-packages/tensorflow/python/keras/api/_v1/keras/applications/__init__.py
Lube-Project/ProgettoLube
cbf33971e2c2e865783ec1a2302625539186a338
[ "MIT" ]
null
null
null
ProgettoLube/WebInspector/venv/Lib/site-packages/tensorflow/python/keras/api/_v1/keras/applications/__init__.py
Lube-Project/ProgettoLube
cbf33971e2c2e865783ec1a2302625539186a338
[ "MIT" ]
null
null
null
ProgettoLube/WebInspector/venv/Lib/site-packages/tensorflow/python/keras/api/_v1/keras/applications/__init__.py
Lube-Project/ProgettoLube
cbf33971e2c2e865783ec1a2302625539186a338
[ "MIT" ]
1
2021-01-28T01:57:41.000Z
2021-01-28T01:57:41.000Z
# This file is MACHINE GENERATED! Do not edit. # Generated by: tensorflow/python/tools/api/generator/create_python_api.py script. """Keras Applications are canned architectures with pre-trained weights. """ from __future__ import print_function as _print_function import sys as _sys from . import densenet from . impo...
48
87
0.858404
2b31d691ec9b91bc760bcf9cfd6e173bfe5b5261
21,087
py
Python
tests/test_nfw.py
msimet/OffsetNFW
c07c12596eb55ed4de10d39bf98234f2d98ad44d
[ "BSD-3-Clause" ]
1
2019-03-25T19:22:35.000Z
2019-03-25T19:22:35.000Z
tests/test_nfw.py
msimet/OffsetNFW
c07c12596eb55ed4de10d39bf98234f2d98ad44d
[ "BSD-3-Clause" ]
1
2016-02-22T21:55:33.000Z
2016-03-02T23:52:39.000Z
tests/test_nfw.py
msimet/OffsetNFW
c07c12596eb55ed4de10d39bf98234f2d98ad44d
[ "BSD-3-Clause" ]
1
2019-03-27T19:17:09.000Z
2019-03-27T19:17:09.000Z
import numpy import numpy.testing import astropy.cosmology import astropy.units as u try: import offset_nfw except ImportError: import sys sys.path.append('..') import offset_nfw # A "cosmology" object that passes initialization tests. class fake_cosmo(object): critical_density0 = 1 Om0 = ...
56.382353
219
0.657846
365ecd1e4a8b856360577f4f1d63535b70ffe3e4
31,386
py
Python
dask/base.py
dubielt1/dask
fe2a42477caab379b5668097379be4d3cee7ed44
[ "BSD-3-Clause" ]
null
null
null
dask/base.py
dubielt1/dask
fe2a42477caab379b5668097379be4d3cee7ed44
[ "BSD-3-Clause" ]
null
null
null
dask/base.py
dubielt1/dask
fe2a42477caab379b5668097379be4d3cee7ed44
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, division, print_function from collections import OrderedDict from functools import partial from hashlib import md5 from operator import getitem import inspect import pickle import os import threading import uuid import warnings from toolz import merge, groupby, curry, identity ...
35.068156
103
0.621201
4ecf6d1624e65b5fe4bf313f786863bc9c3dfe56
141
py
Python
oasysapi/common/urls.py
Deplim/Oasys
0644d9e8a9d26baaa3b9419a0d460da61ab7472d
[ "MIT" ]
null
null
null
oasysapi/common/urls.py
Deplim/Oasys
0644d9e8a9d26baaa3b9419a0d460da61ab7472d
[ "MIT" ]
1
2022-01-25T10:42:53.000Z
2022-01-25T10:42:53.000Z
oasysapi/common/urls.py
Deplim/Oasys
0644d9e8a9d26baaa3b9419a0d460da61ab7472d
[ "MIT" ]
2
2022-01-20T15:07:24.000Z
2022-01-20T15:10:44.000Z
from django.urls import path from common import views urlpatterns = [ path('user', views.login), path('oauth', views.oauth_init), ]
17.625
36
0.695035
2ec038d2e6ab6a4d83b228d0de7fd08c5be6c80d
27,925
py
Python
instagram/instagram.py
akaped/InstaDMBK
ea38abdbfc7ef8fdf1afb33e87880f2f58a1f378
[ "MIT" ]
1
2019-05-04T01:02:59.000Z
2019-05-04T01:02:59.000Z
instagram/instagram.py
akaped/InstaDMBK
ea38abdbfc7ef8fdf1afb33e87880f2f58a1f378
[ "MIT" ]
null
null
null
instagram/instagram.py
akaped/InstaDMBK
ea38abdbfc7ef8fdf1afb33e87880f2f58a1f378
[ "MIT" ]
null
null
null
import utils import urllib import hashlib import hmac import requests import json import logging class Instagram: API_URL = 'https://i.instagram.com/api/v1/' USER_AGENT = 'Instagram 64.0.0.12.96 (iPhone11,6; iOS 12_0; en_US; en-US; scale=3.00; gamut=wide; 1125x2436; 124976489)' #'Instagram 27.0.0.7.97 Android...
227.03252
23,613
0.913554
712c17f0dc82739b4bb768dcec94705ae05a2aa2
2,822
py
Python
tintlink/__init__.py
agoramachina/python-tintlink
cc3cdc31701b24b2c9ca1c5d8b41a16d5a0c04ee
[ "MIT" ]
null
null
null
tintlink/__init__.py
agoramachina/python-tintlink
cc3cdc31701b24b2c9ca1c5d8b41a16d5a0c04ee
[ "MIT" ]
null
null
null
tintlink/__init__.py
agoramachina/python-tintlink
cc3cdc31701b24b2c9ca1c5d8b41a16d5a0c04ee
[ "MIT" ]
null
null
null
# Python module for control of Tintlink bluetooth LED bulbs # # Copyright 2016 Matthew Garrett <mjg59@srcf.ucam.org> # # This code is released under the terms of the MIT license. See the LICENSE file # for more details. import BDAddr from BluetoothSocket import BluetoothSocket, hci_devba import random import socket im...
33.2
126
0.673636
6d1dcdb01e858726ce6f219e2c0d17886c5d2375
4,645
py
Python
src/eda.py
lipcai/online_news_popularity
b170ce480a4e18a4dadf463575148f2e999b2523
[ "MIT" ]
null
null
null
src/eda.py
lipcai/online_news_popularity
b170ce480a4e18a4dadf463575148f2e999b2523
[ "MIT" ]
18
2021-11-19T05:05:46.000Z
2021-12-10T23:27:54.000Z
src/eda.py
lipcai/online_news_popularity
b170ce480a4e18a4dadf463575148f2e999b2523
[ "MIT" ]
3
2021-11-19T01:30:25.000Z
2021-11-21T00:10:18.000Z
# Author: Jennifer Hoang, Nagraj Rao, Linhan Cai # Date: Nov 26, 2021 """Creates figures from EDA for Online News Popularity dataset: https://archive.ics.uci.edu/ml/machine-learning-databases/00332/ Usage: eda.py --data_path=<data_path> --figures_path=<figures_path> Options: --data_path=<data_path> ...
31.598639
81
0.551346
e09676b82b22d7cd976c5ed094c9cd2566efc374
268
py
Python
build_compiled_js.py
ludios/Coreweb
735f2636553ff8bb08b86cc0687f5e8b7c484035
[ "BSD-3-Clause" ]
null
null
null
build_compiled_js.py
ludios/Coreweb
735f2636553ff8bb08b86cc0687f5e8b7c484035
[ "BSD-3-Clause" ]
null
null
null
build_compiled_js.py
ludios/Coreweb
735f2636553ff8bb08b86cc0687f5e8b7c484035
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from coreweb._closurebuild.compiler import compile import build_depsjs compile( roots=["js_coreweb"] ,namespaces=["cw.tabnexus_worker"] ,output="coreweb/compiled/tabnexus_worker.js" ,output_log="coreweb/compiled/tabnexus_worker.js.log" )
20.615385
54
0.783582
d19fd454d6000bd2951cf84f155f329aa1f3376d
7,403
py
Python
salt/modules/serverdensity_device.py
jmdcal/salt
ffa14cd95796c0b364cbb8afb18c2a207f39400f
[ "Apache-2.0" ]
1
2016-04-26T03:42:32.000Z
2016-04-26T03:42:32.000Z
salt/modules/serverdensity_device.py
apergos/salt
106c715d495a9c2bd747c8ca75745236b0d7fb41
[ "Apache-2.0" ]
null
null
null
salt/modules/serverdensity_device.py
apergos/salt
106c715d495a9c2bd747c8ca75745236b0d7fb41
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Wrapper around Server Density API ================================= .. versionadded:: 2014.7.0 ''' from __future__ import absolute_import import requests import json import logging from salt.ext.six.moves import map from salt.exceptions import CommandExecutionError log = logging.getLogg...
31.236287
117
0.649872
39917dd1873a66861b7bbebc13158f99d838d1a8
1,490
py
Python
Prog/Python/Architecture_Patterns_with_Python/cap02/source_Base/tests/unit/test_batches.py
unimauro/Courses
81e5b9c4cbc9b875eff82f96bda7d21ec4f258b2
[ "Apache-2.0" ]
1
2020-07-25T04:56:55.000Z
2020-07-25T04:56:55.000Z
Prog/Python/Architecture_Patterns_with_Python/cap03/tests/unit/test_batches.py
unimauro/Courses
81e5b9c4cbc9b875eff82f96bda7d21ec4f258b2
[ "Apache-2.0" ]
2
2020-06-15T04:42:00.000Z
2021-08-29T03:48:28.000Z
Prog/Python/Architecture_Patterns_with_Python/cap03/tests/unit/test_batches.py
unimauro/Courses
81e5b9c4cbc9b875eff82f96bda7d21ec4f258b2
[ "Apache-2.0" ]
null
null
null
from datetime import date from allocation.domain.model import Batch, OrderLine def test_allocating_to_a_batch_reduces_the_available_quantity(): batch = Batch("batch-001", "SMALL-TABLE", qty=20, eta=date.today()) line = OrderLine('order-ref', "SMALL-TABLE", 2) batch.allocate(line) assert batch.availa...
35.47619
72
0.751678
45e23f73602d9be6aa4e76f779cf8fc9e2b30aaa
747
py
Python
src/somos/urls.py
johncurcio/somos-api
0f17938c0b5c642d12d20444524eeb101b6ad2bb
[ "MIT" ]
null
null
null
src/somos/urls.py
johncurcio/somos-api
0f17938c0b5c642d12d20444524eeb101b6ad2bb
[ "MIT" ]
1
2022-02-26T02:13:14.000Z
2022-02-26T02:13:14.000Z
src/somos/urls.py
johncurcio/somos-api
0f17938c0b5c642d12d20444524eeb101b6ad2bb
[ "MIT" ]
null
null
null
"""somos URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/4.0/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 v...
33.954545
77
0.708166
0c2ca0de565a105c3a24248b830b1755f2f37b3e
1,056
py
Python
Contributor Corner/AfraMP/SwapInPairs/SwapInPairs.py
hitu1304/interview-corner
97503d1967c646f731275ae3665f142814c6a9d7
[ "MIT" ]
39
2020-11-01T13:58:48.000Z
2021-02-12T08:39:37.000Z
Contributor Corner/AfraMP/SwapInPairs/SwapInPairs.py
hitu1304/interview-corner
97503d1967c646f731275ae3665f142814c6a9d7
[ "MIT" ]
86
2020-09-25T07:20:40.000Z
2021-02-18T20:36:29.000Z
Contributor Corner/AfraMP/SwapInPairs/SwapInPairs.py
hitu1304/interview-corner
97503d1967c646f731275ae3665f142814c6a9d7
[ "MIT" ]
43
2020-12-18T03:32:42.000Z
2021-02-19T18:08:19.000Z
# A linked list node class Node: def __init__(self, data=None, next=None): self.data = data self.next = next # Helper function to print given linked list def printList(head): ptr = head while ptr: print(ptr.data, end=" ") ptr = ptr.next print("") # Function to...
19.2
59
0.567235
ee7a3674577057df59feff5d07d1fd2a6c5b2f12
2,007
py
Python
contrib/seeds/convert_ipv4hex.py
mattt21/zcoin
730f0c39ba47f762627f13a1e9ea66d76b57a57d
[ "MIT" ]
582
2016-09-26T00:08:04.000Z
2020-10-25T19:07:24.000Z
contrib/seeds/convert_ipv4hex.py
mattt21/zcoin
730f0c39ba47f762627f13a1e9ea66d76b57a57d
[ "MIT" ]
570
2016-09-28T07:29:53.000Z
2020-10-26T10:24:19.000Z
contrib/seeds/convert_ipv4hex.py
mattt21/zcoin
730f0c39ba47f762627f13a1e9ea66d76b57a57d
[ "MIT" ]
409
2016-09-21T12:37:31.000Z
2020-10-18T14:54:17.000Z
import socket import struct addr_long = int("0200A8C0", 16) hex(addr_long) struct.pack("<L", addr_long) socket.inet_ntoa(struct.pack("<L", addr_long)) '192.168.0.2' pnSeed = [ 0x34bb2958, 0x34b22272, 0x284c48d2, 0x010a8878, 0x010a8854, 0x68ed0421, 0x6e5001fa, 0x704a39c2, 0x714efdbe, 0x72d72ed0, 0x73ca9f1c...
35.210526
67
0.713004
3d8256b97ea01060053dd1a25850b43bf843207b
335
py
Python
behavioral/command/receiver.py
pascalweiss/gof_design_patterns
d142ebf21bb1a1e7925b0e7915eb6d857df58299
[ "Apache-2.0" ]
null
null
null
behavioral/command/receiver.py
pascalweiss/gof_design_patterns
d142ebf21bb1a1e7925b0e7915eb6d857df58299
[ "Apache-2.0" ]
null
null
null
behavioral/command/receiver.py
pascalweiss/gof_design_patterns
d142ebf21bb1a1e7925b0e7915eb6d857df58299
[ "Apache-2.0" ]
null
null
null
class Receiver1: # action def step_left(self): print("Receiver1 steps left") def step_right(self): print("Receiver1 steps right") class Receiver2: # action def step_forward(self): print("Receiver2 steps forward") def step_backward(self): print("Receiver2 ste...
17.631579
42
0.635821
e26096c56512e8d3047b77a93472203f80396328
72,809
py
Python
test/dependencies/cxxtest/python/python3/cxxtest/cxx_parser.py
merly-ai/subprocess
bddef925a19a8b1035799bfd5a2163311750f4f4
[ "MIT" ]
111
2020-04-04T23:50:23.000Z
2022-03-26T21:01:03.000Z
test/dependencies/cxxtest/python/python3/cxxtest/cxx_parser.py
merly-ai/subprocess
bddef925a19a8b1035799bfd5a2163311750f4f4
[ "MIT" ]
5
2021-01-25T04:39:13.000Z
2022-01-19T23:17:52.000Z
test/dependencies/cxxtest/python/python3/cxxtest/cxx_parser.py
merly-ai/subprocess
bddef925a19a8b1035799bfd5a2163311750f4f4
[ "MIT" ]
12
2020-07-26T07:48:07.000Z
2022-02-17T17:53:26.000Z
#------------------------------------------------------------------------- # CxxTest: A lightweight C++ unit testing library. # Copyright (c) 2008 Sandia Corporation. # This software is distributed under the LGPL License v3 # For more information, see the COPYING file in the top CxxTest directory. # Under the terms of ...
33.019955
487
0.504347
316bbb9f047e438a68ce341cdcc6421cb884e96a
803
py
Python
output/models/saxon_data/id/id002_xsd/id002.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/saxon_data/id/id002_xsd/id002.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/saxon_data/id/id002_xsd/id002.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from typing import Dict, List, Optional @dataclass class Para: class Meta: name = "para" value: str = field( default="", metadata={ "required": True, } ) id_one: Optional[str] = field( default=None, m...
18.25
43
0.480697
330af0828571cf263b3f32179d072348c8c26f51
2,464
py
Python
layint_scan_api/models/policies.py
LayeredInsight/layint_scan_api_python
bc258b2af5d2211b986e32fedea95fcfc7de80ff
[ "Apache-2.0" ]
1
2018-03-26T23:55:00.000Z
2018-03-26T23:55:00.000Z
layint_scan_api/models/policies.py
LayeredInsight/layint_scan_api_python
bc258b2af5d2211b986e32fedea95fcfc7de80ff
[ "Apache-2.0" ]
null
null
null
layint_scan_api/models/policies.py
LayeredInsight/layint_scan_api_python
bc258b2af5d2211b986e32fedea95fcfc7de80ff
[ "Apache-2.0" ]
2
2020-11-04T02:56:33.000Z
2020-11-05T08:12:01.000Z
# coding: utf-8 """ Layered Insight Scan Layered Insight Scan performs static vulnerability analysis, license and package compliance. You can find out more about Scan at http://layeredinsight.com. OpenAPI spec version: 0.9.4 Contact: help@layeredinsight.com Generated by: https://github.com/swagg...
24.64
160
0.534091
ad8f42daf6de6428fa2f18a5a2d3759a9f839140
1,217
py
Python
C++/python_test/bifa/test_bifa_score.py
JohnReid/biopsy
1eeb714ba5b53f2ecf776d865d32e2078cbc0338
[ "MIT" ]
null
null
null
C++/python_test/bifa/test_bifa_score.py
JohnReid/biopsy
1eeb714ba5b53f2ecf776d865d32e2078cbc0338
[ "MIT" ]
null
null
null
C++/python_test/bifa/test_bifa_score.py
JohnReid/biopsy
1eeb714ba5b53f2ecf776d865d32e2078cbc0338
[ "MIT" ]
null
null
null
# # Copyright John Reid 2010, 2011 # import _biopsy as biopsy import _bifa as bifa import numpy as N print 'BiFa C++ module version %s' % bifa.version() # make a PSSM pssm = N.log( N.array(( (.7, .1, .1, .1), (.1, .7, .1, .1), (.1, .1, .7, .1), (.1, .1, .1, .7), (.25, .25,...
25.354167
76
0.634347
8844b20b9e0f00a4a313ce5abca342c4862e2740
5,334
py
Python
sdk/storagepool/azure-mgmt-storagepool/azure/mgmt/storagepool/aio/operations/_resource_skus_operations.py
praveenkuttappan/azure-sdk-for-python
4b79413667b7539750a6c7dde15737013a3d4bd5
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/storagepool/azure-mgmt-storagepool/azure/mgmt/storagepool/aio/operations/_resource_skus_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/storagepool/azure-mgmt-storagepool/azure/mgmt/storagepool/aio/operations/_resource_skus_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
46.789474
141
0.660292
f3ef3cdb67d8ebaf5bd7b8d382e51dcba6bceb08
2,038
py
Python
read_structure_step/write.py
paulsaxe/read_structure_step
335c4eb39ad8556070e769fa9491ec5de22ee455
[ "BSD-3-Clause" ]
null
null
null
read_structure_step/write.py
paulsaxe/read_structure_step
335c4eb39ad8556070e769fa9491ec5de22ee455
[ "BSD-3-Clause" ]
9
2020-01-19T01:14:43.000Z
2022-01-29T14:25:05.000Z
read_structure_step/write.py
paulsaxe/read_structure_step
335c4eb39ad8556070e769fa9491ec5de22ee455
[ "BSD-3-Clause" ]
1
2022-01-14T21:50:37.000Z
2022-01-14T21:50:37.000Z
""" The public interface to the read_structure_step SEAMM plugin """ from . import formats import os def write( file_name, configurations, extension=None, remove_hydrogens="no", printer=None, references=None, bibliography=None, ): """ Calls the appropriate functions to parse the r...
25.475
86
0.641315
4e829194d7c3a424afe350da61ac752e09fb4cd2
715
py
Python
1-100 game.py
mkingopng/game_theory
a7027e490d745d9e793155205666a85cd0e5dde4
[ "MIT" ]
null
null
null
1-100 game.py
mkingopng/game_theory
a7027e490d745d9e793155205666a85cd0e5dde4
[ "MIT" ]
null
null
null
1-100 game.py
mkingopng/game_theory
a7027e490d745d9e793155205666a85cd0e5dde4
[ "MIT" ]
null
null
null
""" """ import numpy as np import nashpy as nash from random import * # can we model the 1 - 100 game with 100 players chosen_number = {} players = range(1, 100) number = randint(1, 100) # print(numbers) for player in players: chosen_number.append({player, number}) print(number) pyBNEq # player_1 = np.array(...
21.666667
61
0.682517
24a9511c888a97deda6a2288d736592a5e0ab56f
1,327
py
Python
django/contrib/gis/tests/maps/tests.py
PirosB3/django
9b729ddd8f2040722971ccfb3b12f7d8162633d1
[ "BSD-3-Clause" ]
2
2015-01-21T15:45:07.000Z
2015-02-21T02:38:13.000Z
env/lib/python2.7/site-packages/django/contrib/gis/tests/maps/tests.py
luiscarlosgph/nas
e5acee61e8bbf12c34785fe971ce7df8dee775d4
[ "MIT" ]
10
2019-12-26T17:31:31.000Z
2022-03-21T22:17:33.000Z
env/lib/python2.7/site-packages/django/contrib/gis/tests/maps/tests.py
luiscarlosgph/nas
e5acee61e8bbf12c34785fe971ce7df8dee775d4
[ "MIT" ]
1
2015-02-21T07:59:08.000Z
2015-02-21T07:59:08.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from unittest import skipUnless from django.contrib.gis.geos import HAS_GEOS from django.test import TestCase from django.test.utils import override_settings GOOGLE_MAPS_API_KEY = 'XXXX' @skipUnless(HAS_GEOS, 'Geos is required.') class GoogleMapsTest(...
32.365854
74
0.69254
8f6167912a1860e96ed43e77da0e52cc089bb5e3
129,521
py
Python
tensorflow/python/framework/ops_test.py
Elizaaaaa/tensorflow
a15068b1a67175d6e95f33f8ec119ae9017f8534
[ "Apache-2.0" ]
2
2019-09-09T06:32:20.000Z
2019-10-21T13:20:57.000Z
tensorflow/python/framework/ops_test.py
Elizaaaaa/tensorflow
a15068b1a67175d6e95f33f8ec119ae9017f8534
[ "Apache-2.0" ]
1
2019-08-15T02:49:21.000Z
2019-09-04T10:10:59.000Z
tensorflow/python/framework/ops_test.py
Elizaaaaa/tensorflow
a15068b1a67175d6e95f33f8ec119ae9017f8534
[ "Apache-2.0" ]
1
2020-05-22T09:23:59.000Z
2020-05-22T09:23:59.000Z
# Copyright 2015 The TensorFlow 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 # # Unless required by applica...
37.607724
106
0.656295
df2021c916c81085b56b41c67e0c68ecd96dc62d
34,502
py
Python
src/silx/io/spech5.py
tifuchs/silx
4b8b9e58ecd6fd4ca0ae80f2e74b956b26bcc3f7
[ "CC0-1.0", "MIT" ]
94
2016-03-04T17:25:53.000Z
2022-03-18T18:05:23.000Z
src/silx/io/spech5.py
tifuchs/silx
4b8b9e58ecd6fd4ca0ae80f2e74b956b26bcc3f7
[ "CC0-1.0", "MIT" ]
2,841
2016-01-21T09:06:49.000Z
2022-03-18T14:53:56.000Z
src/silx/io/spech5.py
tifuchs/silx
4b8b9e58ecd6fd4ca0ae80f2e74b956b26bcc3f7
[ "CC0-1.0", "MIT" ]
71
2015-09-30T08:35:35.000Z
2022-03-16T07:16:28.000Z
# coding: utf-8 # /*########################################################################## # Copyright (C) 2016-2021 European Synchrotron Radiation Facility # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to dea...
37.997797
103
0.591096
7c804855a3a8953dc42b3e823dc6cc3e3156edb2
156
py
Python
src/vulcan_scraper/enum.py
drobotk/vulcan-sdk-py
53358a64ae6618ce853ae470f94e32fc853ad44f
[ "Apache-2.0" ]
2
2021-12-19T09:17:08.000Z
2022-02-11T14:51:03.000Z
src/vulcan_scraper/enum.py
drobotk/vulcan-sdk-py
53358a64ae6618ce853ae470f94e32fc853ad44f
[ "Apache-2.0" ]
null
null
null
src/vulcan_scraper/enum.py
drobotk/vulcan-sdk-py
53358a64ae6618ce853ae470f94e32fc853ad44f
[ "Apache-2.0" ]
null
null
null
from enum import Enum, auto class LoginType(Enum): UNKNOWN = auto() CUFS = auto() ADFS = auto() ADFSCards = auto() ADFSLight = auto()
15.6
27
0.596154
966f7b1d914306b55949971e2fd562fed2dd2795
3,900
py
Python
games/chess/player.py
winkelmantanner/mmai20-dumbsophomores
bd2c88ea34cf9be83e2efd59abf2adf9a1a056fa
[ "MIT" ]
null
null
null
games/chess/player.py
winkelmantanner/mmai20-dumbsophomores
bd2c88ea34cf9be83e2efd59abf2adf9a1a056fa
[ "MIT" ]
null
null
null
games/chess/player.py
winkelmantanner/mmai20-dumbsophomores
bd2c88ea34cf9be83e2efd59abf2adf9a1a056fa
[ "MIT" ]
null
null
null
# Player: A player in this game. Every AI controls one player. # DO NOT MODIFY THIS FILE # Never try to directly create an instance of this class, or modify its member variables. # Instead, you should only be reading its variables and calling its functions. from games.chess.game_object import GameObject # <<-- Creer...
26.896552
135
0.606154
9deaf11081ca9e5acc4e9e72644cbefdf1edb8d3
5,422
py
Python
packets/Reader/PacketResolver.py
kawatapw/kuriso
a24baa12ccfdaab7cd0772985a1ada5a6a09f0d7
[ "MIT" ]
null
null
null
packets/Reader/PacketResolver.py
kawatapw/kuriso
a24baa12ccfdaab7cd0772985a1ada5a6a09f0d7
[ "MIT" ]
null
null
null
packets/Reader/PacketResolver.py
kawatapw/kuriso
a24baa12ccfdaab7cd0772985a1ada5a6a09f0d7
[ "MIT" ]
null
null
null
from typing import List, Tuple from objects.TypedDicts import TypedPresence, TypedReadMatch from objects.constants.GameModes import GameModes from objects.constants.Modificators import Mods from objects.constants.Slots import SlotStatus, SlotTeams from objects.constants.multiplayer import ( MatchTypes, MatchSc...
33.060976
97
0.645518
a63e46fcd494006ab38503ec55e6207955d3fa87
782
py
Python
104_operator_over_loading.py
AmreshTripathy/Python
e86420fef7f52da393be5b50ac2f13bddfeb3306
[ "Apache-2.0" ]
4
2021-05-27T05:06:09.000Z
2021-06-12T17:12:47.000Z
104_operator_over_loading.py
AmreshTripathy/Python
e86420fef7f52da393be5b50ac2f13bddfeb3306
[ "Apache-2.0" ]
null
null
null
104_operator_over_loading.py
AmreshTripathy/Python
e86420fef7f52da393be5b50ac2f13bddfeb3306
[ "Apache-2.0" ]
null
null
null
class Number: def __init__(self, num): self.num = num def __add__(self, num1): print ('Lets add') return self.num + num1.num def __Sub__(self, num1): print ('Lets Substract') return self.num - num1.num def __mul__(self, num1): print ('Lets ...
23.69697
41
0.569054
48d734db8add44c2c56a39bc47e728926f2f645d
485
py
Python
alipay/aop/api/response/AlipayCommerceEducateCampusBiztaskFinishResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayCommerceEducateCampusBiztaskFinishResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayCommerceEducateCampusBiztaskFinishResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayCommerceEducateCampusBiztaskFinishResponse(AlipayResponse): def __init__(self): super(AlipayCommerceEducateCampusBiztaskFinishResponse, self).__init__() def parse...
30.3125
121
0.8
16bb94dfc31aa52ca5cc2e49720e6867d26446e3
2,387
py
Python
main.py
eidhernan/python
05fdaf848ae317a9141ce123e72e56fae155152f
[ "MIT" ]
null
null
null
main.py
eidhernan/python
05fdaf848ae317a9141ce123e72e56fae155152f
[ "MIT" ]
null
null
null
main.py
eidhernan/python
05fdaf848ae317a9141ce123e72e56fae155152f
[ "MIT" ]
null
null
null
from blessed import Terminal t = Terminal() class Symbol: def __init__(self): self.heart = u"\u2665" self.larrow = u"\u2190" self.rarrow = u"\u2B95" self.darrow = u"\u2193" self.uarrow = u"\u2191" s = Symbol() class Menu: def __init__(self): from blessed import T...
42.625
142
0.514453
43a9afa75bef671b21c00644b66ae005c6b696bf
566
py
Python
toolz/tests/test_curried.py
larsmans/toolz
13e703cf1722ad0fd9941f54e15b8e4d841b0fc2
[ "BSD-3-Clause" ]
null
null
null
toolz/tests/test_curried.py
larsmans/toolz
13e703cf1722ad0fd9941f54e15b8e4d841b0fc2
[ "BSD-3-Clause" ]
null
null
null
toolz/tests/test_curried.py
larsmans/toolz
13e703cf1722ad0fd9941f54e15b8e4d841b0fc2
[ "BSD-3-Clause" ]
1
2019-12-02T03:17:12.000Z
2019-12-02T03:17:12.000Z
import toolz import toolz.curried from toolz.curried import take, first, second, sorted, merge_with, reduce from operator import add def test_take(): assert list(take(2)([1, 2, 3])) == [1, 2] def test_first(): assert first is toolz.itertoolz.first def test_merge_with(): assert merge_with(sum)({1: 1}, ...
19.517241
73
0.639576
3b537c19fc4ef0aeb835a10c3eca6adfa1ee8adb
2,449
py
Python
nqueen/nqueen_steepest_ascent_hill_climbing.py
kmhasan-class/spring2018ai
80e78bc29a306aadbaa6358841141c25b082d233
[ "MIT" ]
null
null
null
nqueen/nqueen_steepest_ascent_hill_climbing.py
kmhasan-class/spring2018ai
80e78bc29a306aadbaa6358841141c25b082d233
[ "MIT" ]
null
null
null
nqueen/nqueen_steepest_ascent_hill_climbing.py
kmhasan-class/spring2018ai
80e78bc29a306aadbaa6358841141c25b082d233
[ "MIT" ]
null
null
null
import random def get_random_board(n): #homework write the body of this function #return a random board of size n x n #board = [1, 0, 2, 2] board = [] for i in range(0, n): row = random.randint(0, n - 1) board.append(row) print("Randomly generated board: ", board) return boa...
29.865854
73
0.596162
4f4fa2e0290b3afce7e9be65da528daa7b5f3104
419
py
Python
query_processor/migrations/0008_remove_platformrequest_resolution_state.py
shashank-iitj/traibot
30676413e30a0f7dc651f1918b33892728a01c1b
[ "Apache-2.0" ]
null
null
null
query_processor/migrations/0008_remove_platformrequest_resolution_state.py
shashank-iitj/traibot
30676413e30a0f7dc651f1918b33892728a01c1b
[ "Apache-2.0" ]
null
null
null
query_processor/migrations/0008_remove_platformrequest_resolution_state.py
shashank-iitj/traibot
30676413e30a0f7dc651f1918b33892728a01c1b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2016-04-27 09:38 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('query_processor', '0007_auto_20160416_1715'), ] operations = [ migrations.RemoveFiel...
20.95
55
0.637232
af8da8a92023354b0db314433dcc902f8067d9e1
16,606
py
Python
dropblock/dropblock.py
transcendentsky/dropblock
d84871b5dc515c4ac24aa0338f03ec08bf800079
[ "MIT" ]
2
2018-12-24T06:05:42.000Z
2019-03-18T08:16:35.000Z
dropblock/dropblock.py
transcendentsky/dropblock
d84871b5dc515c4ac24aa0338f03ec08bf800079
[ "MIT" ]
null
null
null
dropblock/dropblock.py
transcendentsky/dropblock
d84871b5dc515c4ac24aa0338f03ec08bf800079
[ "MIT" ]
2
2018-12-18T07:57:09.000Z
2019-05-21T13:17:16.000Z
#coding:utf-8 import numpy as np import torch import torch.nn.functional as F from torch import nn from torch.distributions import Bernoulli import numpy as np class DropBlock2D(nn.Module): r"""Randomly zeroes 2D spatial blocks of the input tensor. As described in the paper `DropBlock: A regularization me...
36.178649
111
0.554498
1e09b12768596f61a69f5ab120b0ee1ccfb44eba
6,768
py
Python
tests/test_asyncfilters.py
captainmalloc/jinja
540b260198285f0ed41fbe80c0b1b6f13be579c1
[ "BSD-3-Clause" ]
1
2020-07-06T05:53:18.000Z
2020-07-06T05:53:18.000Z
tests/test_asyncfilters.py
captainmalloc/jinja
540b260198285f0ed41fbe80c0b1b6f13be579c1
[ "BSD-3-Clause" ]
null
null
null
tests/test_asyncfilters.py
captainmalloc/jinja
540b260198285f0ed41fbe80c0b1b6f13be579c1
[ "BSD-3-Clause" ]
null
null
null
import pytest from jinja2 import Environment from jinja2.utils import Markup async def make_aiter(iter): for item in iter: yield item def mark_dualiter(parameter, factory): def decorator(f): return pytest.mark.parametrize(parameter, [ lambda: factory(), lambda: make_a...
29.04721
81
0.577423
8b25f3ce3b1a6af4045d1da7c07c69ec55e6693b
7,503
py
Python
po_pattern/Lib/site-packages/behave/log_capture.py
tomekwszelaki/page-object-pattern-python
eb0ff7a1329b88149d743f2bc4a827c984e72dc3
[ "MIT" ]
1
2017-03-22T04:25:35.000Z
2017-03-22T04:25:35.000Z
po_pattern/Lib/site-packages/behave/log_capture.py
tomekwszelaki/page-object-pattern-python
eb0ff7a1329b88149d743f2bc4a827c984e72dc3
[ "MIT" ]
null
null
null
po_pattern/Lib/site-packages/behave/log_capture.py
tomekwszelaki/page-object-pattern-python
eb0ff7a1329b88149d743f2bc4a827c984e72dc3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function import logging import functools from logging.handlers import BufferingHandler import re class RecordFilter(object): '''Implement logging record filtering as per the configuration --logging-filter option. ''' def __init__(s...
32.064103
79
0.629615
d62ae55987f39192376d6d29cd332c0362d46d5e
3,822
py
Python
tests/cupy_tests/cuda_tests/test_compiler.py
garanews/cupy
b76611c1d5f165d01391977e3ba717ee7d7fda25
[ "MIT" ]
1
2020-12-27T13:06:35.000Z
2020-12-27T13:06:35.000Z
tests/cupy_tests/cuda_tests/test_compiler.py
trivialfis/cupy
e0f0b3bba0fa1e809780350a4562b2ed1d1fe024
[ "MIT" ]
4
2020-09-15T01:49:38.000Z
2020-12-11T03:52:35.000Z
tests/cupy_tests/cuda_tests/test_compiler.py
trivialfis/cupy
e0f0b3bba0fa1e809780350a4562b2ed1d1fe024
[ "MIT" ]
2
2018-07-21T13:44:26.000Z
2019-03-25T11:30:16.000Z
import pickle import unittest from unittest import mock import cupy from cupy.cuda import compiler from cupy import testing def cuda_version(): return cupy.cuda.runtime.runtimeGetVersion() @testing.gpu class TestNvrtcArch(unittest.TestCase): def setUp(self): cupy.clear_memo() # _get_arch result is...
32.117647
78
0.654631
91e495959b49c0309a9263ca8a277d9523f2d1ea
1,419
py
Python
tools/git_util.py
amikey/chromium
cda6acd369a3498f24d4e784c0ad060602a0a810
[ "BSD-3-Clause" ]
97
2015-05-03T20:16:08.000Z
2021-11-16T13:16:25.000Z
tools/git_util.py
amikey/chromium
cda6acd369a3498f24d4e784c0ad060602a0a810
[ "BSD-3-Clause" ]
3
2020-10-16T03:15:20.000Z
2020-10-26T15:31:01.000Z
tools/git_util.py
amikey/chromium
cda6acd369a3498f24d4e784c0ad060602a0a810
[ "BSD-3-Clause" ]
29
2015-03-28T02:20:33.000Z
2021-10-29T20:58:28.000Z
# Copyright (c) 2014 The Chromium Embedded Framework Authors. All rights # reserved. Use of this source code is governed by a BSD-style license that # can be found in the LICENSE file from exec_util import exec_cmd import os def is_checkout(path): """ Returns true if the path represents a git checkout. """ return...
31.533333
75
0.641297
53b65520d263c32833f66f965d0c351da0101682
3,692
py
Python
project/settings.py
tarek1500/Python-Blog
d9e8e90c20ad5906139b1468e4d195038dfbfc11
[ "MIT" ]
null
null
null
project/settings.py
tarek1500/Python-Blog
d9e8e90c20ad5906139b1468e4d195038dfbfc11
[ "MIT" ]
5
2020-02-27T18:12:25.000Z
2020-02-27T22:43:52.000Z
project/settings.py
tarek1500/Python-Blog
d9e8e90c20ad5906139b1468e4d195038dfbfc11
[ "MIT" ]
1
2020-05-16T00:34:02.000Z
2020-05-16T00:34:02.000Z
""" Django settings for project project. Generated by 'django-admin startproject' using Django 3.0.3. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os fr...
25.638889
91
0.694745
521daa6a7eb43766e014be96edbede50f2ce0e00
6,654
py
Python
sdk/python/pulumi_azure_native/network/v20180401/get_vpn_gateway.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20180401/get_vpn_gateway.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20180401/get_vpn_gateway.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# 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, overload from ... import _utilities fro...
33.77665
190
0.632251
33c259c2fd2c60e13cb2e46f5e6cb3d9af37b1fc
16,334
py
Python
utils/dash_utils.py
mintusf/land_cover_tracking
e1c389729fdb628e4d34e0d427f43f6317eba4ee
[ "Apache-2.0" ]
1
2022-01-21T03:33:22.000Z
2022-01-21T03:33:22.000Z
utils/dash_utils.py
mintusf/land_cover_tracking
e1c389729fdb628e4d34e0d427f43f6317eba4ee
[ "Apache-2.0" ]
45
2021-08-03T11:45:16.000Z
2021-10-20T11:56:24.000Z
utils/dash_utils.py
mintusf/land_cover_tracking
e1c389729fdb628e4d34e0d427f43f6317eba4ee
[ "Apache-2.0" ]
null
null
null
import glob import os from typing import Dict, Tuple, List import cv2 import numpy as np from utils.ai_engine_wrapper import ai_engine_infer from utils.sentinel_api import get_raster_from_coord from utils.io_utils import ( convert_sat_np_for_vis, get_next_folder_name, write_json, load_json, load_y...
33.609053
88
0.648769
62d811062382466eb69e96b5a2d9c657805df443
6,244
py
Python
datalad_xnat/init.py
bpoldrack/datalad-xnat
64e1f1653af23957687341b66c4852813eb70a95
[ "MIT" ]
null
null
null
datalad_xnat/init.py
bpoldrack/datalad-xnat
64e1f1653af23957687341b66c4852813eb70a95
[ "MIT" ]
null
null
null
datalad_xnat/init.py
bpoldrack/datalad-xnat
64e1f1653af23957687341b66c4852813eb70a95
[ "MIT" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # ex: set sts=4 ts=4 sw=4 noet: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ##...
32.520833
87
0.537796
76a78d623716b0a76de5fb22b37ad171fb792709
36,266
py
Python
cluster/examples/kubernetes/ceph/create-external-cluster-resources.py
silverhandy/rook
0e87348093f36e6c70eb985455dfc189d8467ec2
[ "Apache-2.0" ]
2
2021-02-21T12:42:22.000Z
2021-03-04T05:23:30.000Z
cluster/examples/kubernetes/ceph/create-external-cluster-resources.py
silverhandy/rook
0e87348093f36e6c70eb985455dfc189d8467ec2
[ "Apache-2.0" ]
null
null
null
cluster/examples/kubernetes/ceph/create-external-cluster-resources.py
silverhandy/rook
0e87348093f36e6c70eb985455dfc189d8467ec2
[ "Apache-2.0" ]
null
null
null
''' Copyright 2020 The Rook 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 Unless required by applicable law or agreed to...
48.94197
861
0.578338
6d5d5283ebc438129007df927840aa7692cb2d41
1,649
py
Python
torchmodels/modules/feedforward.py
kaniblu/pytorch-models
a50ef66ecc3de498e0856489d801c61417188f7b
[ "MIT" ]
11
2018-09-17T17:50:46.000Z
2021-05-06T13:04:05.000Z
torchmodels/modules/feedforward.py
kaniblu/pytorch-models
a50ef66ecc3de498e0856489d801c61417188f7b
[ "MIT" ]
1
2019-01-17T15:08:39.000Z
2019-01-17T15:08:39.000Z
torchmodels/modules/feedforward.py
kaniblu/pytorch-models
a50ef66ecc3de498e0856489d801c61417188f7b
[ "MIT" ]
1
2018-11-15T04:43:35.000Z
2018-11-15T04:43:35.000Z
import torch.nn as nn from .. import common from . import activation class AbstractFeedForward(common.Module): def __init__(self, input_dim, output_dim): super(AbstractFeedForward, self).__init__() self.input_dim = input_dim self.output_dim = output_dim def forward(self, h): ...
31.113208
74
0.614312
4ae7d1a42e11e27dc1d72e33af824487f4f1714e
12,635
py
Python
code/python/QuotesAPIforDigitalPortals/v3/fds/sdk/QuotesAPIforDigitalPortals/model/basic_timezone_list_data.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
6
2022-02-07T16:34:18.000Z
2022-03-30T08:04:57.000Z
code/python/QuotesAPIforDigitalPortals/v3/fds/sdk/QuotesAPIforDigitalPortals/model/basic_timezone_list_data.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
2
2022-02-07T05:25:57.000Z
2022-03-07T14:18:04.000Z
code/python/QuotesAPIforDigitalPortals/v3/fds/sdk/QuotesAPIforDigitalPortals/model/basic_timezone_list_data.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
null
null
null
""" Quotes API For Digital Portals The quotes API combines endpoints for retrieving security end-of-day, delayed, and realtime prices with performance key figures and basic reference data on the security and market level. The API supports over 20 different price types for each quote and comes with basic searc...
48.225191
1,302
0.601741
6e19acacd2d552018fbe715f2c796590b811e0ab
1,271
py
Python
setup.py
mnemchinov/django-logging-eventlog
59e93d4406d911cfd6d586ae6b9979a583da22f3
[ "MIT" ]
1
2022-01-20T08:06:52.000Z
2022-01-20T08:06:52.000Z
setup.py
mnemchinov/django-logging-eventlog
59e93d4406d911cfd6d586ae6b9979a583da22f3
[ "MIT" ]
null
null
null
setup.py
mnemchinov/django-logging-eventlog
59e93d4406d911cfd6d586ae6b9979a583da22f3
[ "MIT" ]
null
null
null
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) def local_scheme(version): return "" setup( ...
31
85
0.664831
369e57bc8298134474236ba8b816c21244f53695
2,275
py
Python
tagging_tools/TagElfFile.py
draperlaboratory/hope-policy-engine
abfc813e2ea7814a05204f981374fcefbab1d959
[ "MIT" ]
1
2021-05-02T07:09:40.000Z
2021-05-02T07:09:40.000Z
tagging_tools/TagElfFile.py
draperlaboratory/hope-policy-engine
abfc813e2ea7814a05204f981374fcefbab1d959
[ "MIT" ]
13
2019-07-01T14:49:16.000Z
2020-08-04T15:24:05.000Z
tagging_tools/TagElfFile.py
draperlaboratory/hope-policy-engine
abfc813e2ea7814a05204f981374fcefbab1d959
[ "MIT" ]
3
2019-06-18T17:09:12.000Z
2021-05-02T07:09:42.000Z
#!/usr/bin/env python3 import os import sys import subprocess import tempfile def generate_tag_array(elfname, range_file, policy_meta_info, rv64): tag_array_file = tempfile.NamedTemporaryFile(mode='w+b', delete=False, prefix='tag_array_') tag_array_filename = tag_array_file.name length = policy_meta_info...
37.916667
198
0.651868
d68ccc40d7708621f78ee425dd8f36dad1145387
2,565
py
Python
fhi_lib/img_coordinate.py
yhsueh/FHI_RCNN
f12df17049d5c72d1a7cec89e3943013150177a5
[ "MIT" ]
null
null
null
fhi_lib/img_coordinate.py
yhsueh/FHI_RCNN
f12df17049d5c72d1a7cec89e3943013150177a5
[ "MIT" ]
null
null
null
fhi_lib/img_coordinate.py
yhsueh/FHI_RCNN
f12df17049d5c72d1a7cec89e3943013150177a5
[ "MIT" ]
null
null
null
import sys import os import cv2 import numpy as np from matplotlib import pyplot as plt from fhi_lib.geometry import Point class ImgCoord(): def __init__(self, info): self.mask = info[0].astype(np.uint8) self.roi = info[1] self.class_id= info[2] def draw_point_of_interest(self, img): img = cv2.circle(img,...
30.903614
81
0.726316
0086a4b3aabbda0d8aa33d9ad043945508dd1c39
1,776
py
Python
programFiles/select.py
Burria/CubeX-DB
e92cf165a326674d72bd24d1d04cff893a3a1a8e
[ "MIT" ]
1
2019-04-16T15:45:14.000Z
2019-04-16T15:45:14.000Z
programFiles/select.py
Burria/CubeX-DB
e92cf165a326674d72bd24d1d04cff893a3a1a8e
[ "MIT" ]
null
null
null
programFiles/select.py
Burria/CubeX-DB
e92cf165a326674d72bd24d1d04cff893a3a1a8e
[ "MIT" ]
null
null
null
import re def toSelect(q,l): #for ad in d: #print(ad) idFound = None #lets check where we should compare try: if q[8]=='at': directoryToCompare=l+'/'+q[9]+'/'+q[2]+'.cxdb' except: directoryToCompare=l+'/'+q[2]+'.cxdb' with open(directoryToCompare,'r')as db: for line in db: #find id if...
16.145455
61
0.53491
320a4b9b5f23fc79da2b93e7d04d5898ddf85faa
64,383
py
Python
python/src/Lib/io.py
vlinhd11/vlinhd11-android-scripting
c90f04eb26a3746f025a6a0beab92bb6aa88c084
[ "Apache-2.0" ]
2,293
2015-01-02T12:46:10.000Z
2022-03-29T09:45:43.000Z
python/src/Lib/io.py
weiqiangzheng/sl4a
d3c17dca978cbeee545e12ea240a9dbf2a6999e9
[ "Apache-2.0" ]
315
2015-05-31T11:55:46.000Z
2022-01-12T08:36:37.000Z
python/src/Lib/io.py
weiqiangzheng/sl4a
d3c17dca978cbeee545e12ea240a9dbf2a6999e9
[ "Apache-2.0" ]
1,033
2015-01-04T07:48:40.000Z
2022-03-24T09:34:37.000Z
""" The io module provides the Python interfaces to stream handling. The builtin open function is defined in this module. At the top of the I/O hierarchy is the abstract base class IOBase. It defines the basic interface to a stream. Note, however, that there is no seperation between reading and writing to streams; imp...
34.540236
82
0.599382
d1c49675703a6dbc1e9640b6eb2c7e4529d7c3da
2,016
py
Python
google-cloud-sdk/lib/surface/emulators/datastore/__init__.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/surface/emulators/datastore/__init__.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/surface/emulators/datastore/__init__.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
33.6
78
0.68006
82a7777578af63f8886646f48676f5b3ae9ac722
1,470
py
Python
bynge/blueprints/storage.py
gutmensch/bynge
738b518e2615e0f2d4e668f86c0c7cdebaf8d084
[ "BSD-2-Clause" ]
null
null
null
bynge/blueprints/storage.py
gutmensch/bynge
738b518e2615e0f2d4e668f86c0c7cdebaf8d084
[ "BSD-2-Clause" ]
null
null
null
bynge/blueprints/storage.py
gutmensch/bynge
738b518e2615e0f2d4e668f86c0c7cdebaf8d084
[ "BSD-2-Clause" ]
null
null
null
import os from datetime import datetime from uuid import uuid4 import gevent from flask import Blueprint from flask import request, render_template, copy_current_request_context from werkzeug.utils import secure_filename from bynge.lib.processor.audio import AudioFileProcessor from bynge.models import IncomingFile fr...
31.956522
119
0.72449
e2aa7cd7309e3241b8487a78b7b45a186cd351fa
688
py
Python
examples/wmt/tools/scorer/refbleu.py
godweiyang/ParaGen
9665d1244ea38a41fc06b4e0a7f6411985e2221f
[ "Apache-2.0" ]
50
2022-01-18T07:25:46.000Z
2022-03-14T13:06:18.000Z
examples/wmt/tools/scorer/refbleu.py
JiangtaoFeng/ParaGen
509334bf16e3674e009bb9dc37ecc38ae3b5c977
[ "Apache-2.0" ]
2
2022-01-19T09:36:42.000Z
2022-02-23T07:16:02.000Z
examples/wmt/tools/scorer/refbleu.py
JiangtaoFeng/ParaGen
509334bf16e3674e009bb9dc37ecc38ae3b5c977
[ "Apache-2.0" ]
6
2022-01-19T09:28:53.000Z
2022-03-10T10:20:08.000Z
import argparse import sacrebleu parser = argparse.ArgumentParser() parser.add_argument('--hypo_filename', metavar='N', type=str, help='hypo_filename') parser.add_argument('--ref_filename', metavar='N', type=str, help='ref_filename') parser.add_argument('--out_filename', metavar='N', type=str, help='out_filename') ar...
40.470588
120
0.710756
491ca1ad3b516f65b7757bbd05b1fe7af241f594
3,389
py
Python
vsts/vsts/work_item_tracking_process_definitions/v4_1/models/control.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
vsts/vsts/work_item_tracking_process_definitions/v4_1/models/control.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
vsts/vsts/work_item_tracking_process_definitions/v4_1/models/control.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
45.797297
223
0.597816
2a918616003d63f2a435d32515a8d116dfe5e2d2
67
py
Python
wsgi.py
pbhuss/meowbot
7d9c0ea5e9bab2836df6262bfc85467e2a71dcd4
[ "MIT" ]
9
2018-09-25T04:48:51.000Z
2022-03-14T04:01:43.000Z
wsgi.py
pbhuss/meowbot
7d9c0ea5e9bab2836df6262bfc85467e2a71dcd4
[ "MIT" ]
2
2019-05-27T03:45:02.000Z
2019-05-27T19:27:19.000Z
wsgi.py
pbhuss/meowbot
7d9c0ea5e9bab2836df6262bfc85467e2a71dcd4
[ "MIT" ]
3
2019-01-07T08:51:17.000Z
2020-08-06T15:02:32.000Z
from meowbot import app if __name__ == "__main__": app.run()
11.166667
26
0.656716
eaa35bc30cf79cec62759e2e065e52932b32a97b
1,097
py
Python
tests/test_sigmoid.py
wakamezake/deep-learning-from-scratch-3
92614028be0bcd0f0b2b6ada419a20110bae7ea7
[ "MIT" ]
null
null
null
tests/test_sigmoid.py
wakamezake/deep-learning-from-scratch-3
92614028be0bcd0f0b2b6ada419a20110bae7ea7
[ "MIT" ]
null
null
null
tests/test_sigmoid.py
wakamezake/deep-learning-from-scratch-3
92614028be0bcd0f0b2b6ada419a20110bae7ea7
[ "MIT" ]
null
null
null
import unittest import numpy as np from dezero import Variable import dezero.functions as F from dezero.utils import check_backward import chainer.functions as CF class TestSigmoid(unittest.TestCase): def test_forward1(self): x = np.array([[0, 1, 2], [0, 2, 4]], np.float32) y2 = CF.sigmoid(x) ...
30.472222
58
0.627165
49757e218ee248d9b143f9cc4f715eef4784e8bb
2,616
py
Python
SVM/Combine.py
Globe-Eater/Geographic-Duplicate-Detection-
ec467fc41cb456959da87fd913465dc9daa27d80
[ "MIT" ]
null
null
null
SVM/Combine.py
Globe-Eater/Geographic-Duplicate-Detection-
ec467fc41cb456959da87fd913465dc9daa27d80
[ "MIT" ]
null
null
null
SVM/Combine.py
Globe-Eater/Geographic-Duplicate-Detection-
ec467fc41cb456959da87fd913465dc9daa27d80
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Aug 15 11:34:39 2019 @author: kellenbullock Combine all dataframes because I could do in a different file... """ import pandas as pd prop = pd.read_csv('PROPNAME.csv') prop = prop.drop(columns=['Unnamed: 0']) res = pd.read_csv('RESNAME.csv') res = re...
29.393258
108
0.654434
0e4152dae3f0505fc7b4c7873960fc4d1707d1e3
651
py
Python
threespot/documentation/views.py
macfound/django-threespot
8bc6253bf0f73b8f9957ab51df8e3dcf4081bdd0
[ "Apache-2.0" ]
6
2015-10-29T17:07:07.000Z
2021-04-25T21:14:40.000Z
threespot/documentation/views.py
macfound/django-threespot
8bc6253bf0f73b8f9957ab51df8e3dcf4081bdd0
[ "Apache-2.0" ]
1
2018-11-05T20:47:45.000Z
2018-11-05T20:47:45.000Z
threespot/documentation/views.py
macfound/django-threespot
8bc6253bf0f73b8f9957ab51df8e3dcf4081bdd0
[ "Apache-2.0" ]
2
2015-01-13T04:59:00.000Z
2015-10-28T14:34:26.000Z
from django.contrib.admin.views.decorators import staff_member_required from django.views.static import serve from threespot.documentation.app_settings import PUBLISH_PATH @staff_member_required def documentation(request, path, *args, **kwargs): """ Uses the ugly, but good-enough django static files server....
34.263158
74
0.725038
f097bf9d5100c3ab04b7d329ef6dd4b42cfc25ea
2,894
py
Python
nameko/timer.py
vlcinsky/nameko
88d7e5211de4fcc1c34cd7f84d7c77f0619c5f5d
[ "Apache-2.0" ]
3,425
2016-11-10T17:12:42.000Z
2022-03-31T19:07:49.000Z
nameko/timer.py
vlcinsky/nameko
88d7e5211de4fcc1c34cd7f84d7c77f0619c5f5d
[ "Apache-2.0" ]
311
2016-11-10T20:58:16.000Z
2022-03-26T09:03:22.000Z
nameko/timer.py
vlcinsky/nameko
88d7e5211de4fcc1c34cd7f84d7c77f0619c5f5d
[ "Apache-2.0" ]
420
2016-11-17T05:46:42.000Z
2022-03-23T12:36:06.000Z
from __future__ import absolute_import import itertools import time from logging import getLogger from eventlet import Timeout from eventlet.event import Event from nameko.extensions import Entrypoint _log = getLogger(__name__) class Timer(Entrypoint): def __init__(self, interval, eager=False, **kwargs): ...
28.94
79
0.606773
1bba6971dc8ffc3c44c98081191bb8ef903e7b2b
2,297
py
Python
tests/test_ui.py
uetke/UUPharosController
1663dcb5acab78fe65eab9eee7948d1257dec1f0
[ "MIT" ]
null
null
null
tests/test_ui.py
uetke/UUPharosController
1663dcb5acab78fe65eab9eee7948d1257dec1f0
[ "MIT" ]
1
2018-03-13T14:06:21.000Z
2018-03-13T14:06:21.000Z
tests/test_ui.py
uetke/UUPharosController
1663dcb5acab78fe65eab9eee7948d1257dec1f0
[ "MIT" ]
null
null
null
import os import sys from PyQt4 import QtCore, QtGui, uic from lantz import Q_ from PyQt4.Qt import QApplication import pharos.view.GUI.QtCreator.resources_rc from pharos.view.GUI.laser_widget import LaserWidget from pharos.view.GUI.monitor_config_widget import MonitorConfigWidget class MainWindow(QtGui.QMain...
41.763636
149
0.666957
bebfd767fe972f7e774fdccc696d9c527982209f
7,242
py
Python
dephell/actions/_transform.py
espdev/dephell
17d5604e7b443b4d58bffc635a139adb49431efc
[ "MIT" ]
null
null
null
dephell/actions/_transform.py
espdev/dephell
17d5604e7b443b4d58bffc635a139adb49431efc
[ "MIT" ]
null
null
null
dephell/actions/_transform.py
espdev/dephell
17d5604e7b443b4d58bffc635a139adb49431efc
[ "MIT" ]
null
null
null
from typing import TYPE_CHECKING # external from fissix.fixer_util import Dot, Name, syms from fissix.pytree import Node if TYPE_CHECKING: from bowler import LN, Capture, Filename, Query try: from bowler.helpers import dotted_parts, power_parts, quoted_parts except ImportError: pass modifiers = [] d...
27.641221
88
0.533969
805d9b1a5e2aa82657eca5d3a93f86d7b0e0ce73
1,127
py
Python
alembic/versions/7a43773ac926_add_bugzillas.py
TomasTomecek/packit-service
f0e5c0c04df80a600fdba33c1a8dbf9f81fdea08
[ "MIT" ]
null
null
null
alembic/versions/7a43773ac926_add_bugzillas.py
TomasTomecek/packit-service
f0e5c0c04df80a600fdba33c1a8dbf9f81fdea08
[ "MIT" ]
2
2020-09-02T08:14:27.000Z
2020-09-03T03:16:27.000Z
alembic/versions/7a43773ac926_add_bugzillas.py
shreyaspapi/packit-service
a64e7db9f354df9b3c346948e661a89236b22387
[ "MIT" ]
null
null
null
"""Add bugzillas Revision ID: 7a43773ac926 Revises: 307a4c43ae47 Create Date: 2020-06-11 07:29:27.146501 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = "7a43773ac926" down_revision = "307a4c43ae47" branch_labels = None depends_on = None def upgrade(): # ...
28.897436
87
0.668146
356761f1f1fb644c257ecbf7d8964f7ad41c9623
4,487
py
Python
app/src/thirdparty/telemetry/internal/backends/android_browser_backend_settings.py
ta2edchimp/big-rig
d08ffaa34b1496ca6c8e69a8797d280583472156
[ "Apache-2.0" ]
925
2015-11-06T03:04:46.000Z
2017-09-16T19:08:43.000Z
app/src/thirdparty/telemetry/internal/backends/android_browser_backend_settings.py
ta2edchimp/big-rig
d08ffaa34b1496ca6c8e69a8797d280583472156
[ "Apache-2.0" ]
29
2015-11-09T17:37:28.000Z
2017-08-16T17:50:11.000Z
app/src/thirdparty/telemetry/internal/backends/android_browser_backend_settings.py
ta2edchimp/big-rig
d08ffaa34b1496ca6c8e69a8797d280583472156
[ "Apache-2.0" ]
51
2015-11-08T07:06:38.000Z
2017-08-21T07:27:19.000Z
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import logging import time from telemetry.core import exceptions class AndroidBrowserBackendSettings(object): def __init__(self, activity, cmdline_file...
32.514493
80
0.705371
33d2725daace6477340f57433619737302a6a709
983
py
Python
torch_ipex_py/ops/interaction.py
intel/intel-extension-for-pytorch
a1cc6681447ef1079e0c156e531df109cb30ffdf
[ "Apache-2.0" ]
322
2020-05-08T04:03:51.000Z
2022-03-30T13:01:31.000Z
torch_ipex_py/ops/interaction.py
intel/intel-extension-for-pytorch
a1cc6681447ef1079e0c156e531df109cb30ffdf
[ "Apache-2.0" ]
159
2020-05-09T02:55:40.000Z
2022-03-30T13:43:04.000Z
torch_ipex_py/ops/interaction.py
intel/intel-extension-for-pytorch
a1cc6681447ef1079e0c156e531df109cb30ffdf
[ "Apache-2.0" ]
64
2020-05-08T03:49:27.000Z
2022-03-22T09:50:23.000Z
import torch from torch import nn from torch.autograd import Function import intel_extension_for_pytorch._C as core def interaction(*args): # Current pytorch dose not support vector<Tensor> input for c++ custom function # So we preserve python custom function while need backward # Since python custom funct...
36.407407
88
0.734486
ad1983da767c1005c82c92e7c8fefa4aa1fee65e
1,982
py
Python
src/tests/fidl/source_compatibility/gen/scaffolding.py
gongcm/fuchisa-os
83c2f90cf8f80aefb964dfe4a653664377b59384
[ "BSD-Source-Code" ]
1
2021-05-19T04:30:05.000Z
2021-05-19T04:30:05.000Z
src/tests/fidl/source_compatibility/gen/scaffolding.py
gongcm/fuchisa-os
83c2f90cf8f80aefb964dfe4a653664377b59384
[ "BSD-Source-Code" ]
null
null
null
src/tests/fidl/source_compatibility/gen/scaffolding.py
gongcm/fuchisa-os
83c2f90cf8f80aefb964dfe4a653664377b59384
[ "BSD-Source-Code" ]
null
null
null
# Copyright 2020 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Contains all of the FIDL/binding starter code. """ import datetime from transitions import Binding year = datetime.datetime.now().year fuchsia_copyrigh...
19.431373
74
0.698285
421c8e6933dde5c73a76ab16c3dc1452e9312599
11
py
Python
secret.py
raymag/igbot
73d82ef2b12c95f58383f609ca97ca40ea5262d5
[ "MIT" ]
null
null
null
secret.py
raymag/igbot
73d82ef2b12c95f58383f609ca97ca40ea5262d5
[ "MIT" ]
null
null
null
secret.py
raymag/igbot
73d82ef2b12c95f58383f609ca97ca40ea5262d5
[ "MIT" ]
null
null
null
passwd = ''
11
11
0.545455
242f51499339c91cb84536b263f9199f13eef4fa
97
py
Python
ciyi/data/__init__.py
VisualJoyce/CiYi
b9a0987a0fc33142b643f9b23521be73493689f2
[ "MIT" ]
1
2021-09-13T02:20:53.000Z
2021-09-13T02:20:53.000Z
ciyi/data/__init__.py
VisualJoyce/CiYi
b9a0987a0fc33142b643f9b23521be73493689f2
[ "MIT" ]
1
2021-11-10T09:43:12.000Z
2021-12-07T05:53:20.000Z
src/andushu/data/__init__.py
VisualJoyce/andushu
adf7f32b89c788734d9dff8e96ff55a35488dd51
[ "MIT" ]
null
null
null
from .token_indexers.openai_transformer_byte_pair_indexer import OpenaiTransformerBytePairIndexer
97
97
0.948454
eb0010d88f4c1f552acfdfee70af0ca771724d27
1,909
py
Python
Analysis/Precision-Recall_Analysis/scripts/hmmscan_parse.py
dantaslab/resfams_update
982091818a299d316811fe98c7656762be7284fb
[ "MIT" ]
null
null
null
Analysis/Precision-Recall_Analysis/scripts/hmmscan_parse.py
dantaslab/resfams_update
982091818a299d316811fe98c7656762be7284fb
[ "MIT" ]
null
null
null
Analysis/Precision-Recall_Analysis/scripts/hmmscan_parse.py
dantaslab/resfams_update
982091818a299d316811fe98c7656762be7284fb
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ File Name : hmmscan_parse.py Author : Max Bernstein Created On : 2018-04-11 Last Modified : 2019-12-17 Description : A program to parse an hmmscan output Dependencies :py-biopython Usage : hmmscan_parse.py --infile testing_set_hmmscan.txt ...
25.453333
100
0.573075
b6891a3637df14fec1b518cb28cfa7c09116f858
48
py
Python
tests/__init__.py
j-faria/observing-strategy
f15def60227a312e846810a763926a2b2f8155ea
[ "MIT" ]
null
null
null
tests/__init__.py
j-faria/observing-strategy
f15def60227a312e846810a763926a2b2f8155ea
[ "MIT" ]
null
null
null
tests/__init__.py
j-faria/observing-strategy
f15def60227a312e846810a763926a2b2f8155ea
[ "MIT" ]
null
null
null
"""Unit test package for observing_strategy."""
24
47
0.75
90acc351928ed6b13391b9c49eadba4bd20309a1
209
py
Python
Jennifer Ezeobi/project8-python.py
cornelia247/cil-internship-cohort-01
b8184337056d378eab16d26b40b26ed58cd177bb
[ "MIT" ]
null
null
null
Jennifer Ezeobi/project8-python.py
cornelia247/cil-internship-cohort-01
b8184337056d378eab16d26b40b26ed58cd177bb
[ "MIT" ]
null
null
null
Jennifer Ezeobi/project8-python.py
cornelia247/cil-internship-cohort-01
b8184337056d378eab16d26b40b26ed58cd177bb
[ "MIT" ]
null
null
null
def image_resize(image,width,height): from PIL import Image img = Image.open(image) resized_img = img.resize((width,height)) resized_img.save("resized_image.jpg") image_resize('rtg.jpeg',70,70)
34.833333
44
0.722488
4e72b9e5d12ab64c93950fc99cdc01f922522a15
569
py
Python
using_dict.py
lzcdev/EasyPythonDemo
6e8af845d08a47e378c5c7d170dfa45fd7e362e3
[ "MIT" ]
null
null
null
using_dict.py
lzcdev/EasyPythonDemo
6e8af845d08a47e378c5c7d170dfa45fd7e362e3
[ "MIT" ]
null
null
null
using_dict.py
lzcdev/EasyPythonDemo
6e8af845d08a47e378c5c7d170dfa45fd7e362e3
[ "MIT" ]
null
null
null
#!us/bin/python # 'ab' is short for 'a'ddress'b'ook ab = { 'Swaroop': 'swaroopch@byteofpython.info', 'Larry': 'larry@wall.org', 'Matsumoto': 'matz@ruby-lang.org', 'Spammer': 'spammer@hotmail.com' } print 'Swaroop\'s address is %s' % ab['Swaroop'] # Adding a key/valye pair ab['Guido'] = 'guido@python.org' # Del...
22.76
63
0.655536
5fe39831a9a230892ff603cbc82ed94755815c24
2,099
py
Python
operators/akka-cluster-operator/python/pulumi_pulumi_kubernetes_crds_operators_akka_cluster_operator/provider.py
pulumi/pulumi-kubernetes-crds
372c4c0182f6b899af82d6edaad521aa14f22150
[ "Apache-2.0" ]
null
null
null
operators/akka-cluster-operator/python/pulumi_pulumi_kubernetes_crds_operators_akka_cluster_operator/provider.py
pulumi/pulumi-kubernetes-crds
372c4c0182f6b899af82d6edaad521aa14f22150
[ "Apache-2.0" ]
2
2020-09-18T17:12:23.000Z
2020-12-30T19:40:56.000Z
operators/akka-cluster-operator/python/pulumi_pulumi_kubernetes_crds_operators_akka_cluster_operator/provider.py
pulumi/pulumi-kubernetes-crds
372c4c0182f6b899af82d6edaad521aa14f22150
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by crd2pulumi. *** # *** 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 __all__ = ['Provide...
38.163636
134
0.647451
33e9b41a4a961780d6c81f953b5cdf249906868c
1,325
py
Python
setup.py
marquicus/django-sequence-field
f6d71bac8e9fa42e5ce9822628125ff2293aed83
[ "BSD-3-Clause" ]
1
2020-01-14T08:11:57.000Z
2020-01-14T08:11:57.000Z
setup.py
marquicus/django-sequence-field
f6d71bac8e9fa42e5ce9822628125ff2293aed83
[ "BSD-3-Clause" ]
null
null
null
setup.py
marquicus/django-sequence-field
f6d71bac8e9fa42e5ce9822628125ff2293aed83
[ "BSD-3-Clause" ]
2
2020-01-14T10:09:52.000Z
2020-08-18T20:56:56.000Z
from setuptools import setup, find_packages description = 'A Django Field for creating templated sequence strings.' try: with open('README.md') as f: long_description = f.read() except IOError: long_description = description setup( name='django-sequence-field', version='0.2.4', descriptio...
32.317073
71
0.616604
93a35c74ff77230404227426798bd7148052e1b3
5,270
py
Python
src/sdk/pynni/nni/nas/pytorch/base_mutator.py
LIIXII/nni
f1ce1648b24d2668c2eb8fa02b158a7b6da80ea4
[ "MIT" ]
2
2020-04-24T01:36:40.000Z
2020-04-24T01:37:10.000Z
src/sdk/pynni/nni/nas/pytorch/base_mutator.py
bobo4u/nni
f1ce1648b24d2668c2eb8fa02b158a7b6da80ea4
[ "MIT" ]
null
null
null
src/sdk/pynni/nni/nas/pytorch/base_mutator.py
bobo4u/nni
f1ce1648b24d2668c2eb8fa02b158a7b6da80ea4
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import logging import torch.nn as nn from nni.nas.pytorch.mutables import Mutable, MutableScope, InputChoice from nni.nas.pytorch.utils import StructuredMutableTreeNode logger = logging.getLogger(__name__) class BaseMutator(nn.Module): ""...
34.220779
129
0.585579
987542eac15d945be2f4981f633f63e43a1d6be6
448
py
Python
Ex_63.py
soldierloko/Curso-em-Video
d867366425f72fe15903cb17cdc222a7fe7a3831
[ "MIT" ]
null
null
null
Ex_63.py
soldierloko/Curso-em-Video
d867366425f72fe15903cb17cdc222a7fe7a3831
[ "MIT" ]
null
null
null
Ex_63.py
soldierloko/Curso-em-Video
d867366425f72fe15903cb17cdc222a7fe7a3831
[ "MIT" ]
null
null
null
#Escreva um programa que leia um número n inteiro qualquer e mostre na tela os n primeiros elementos de uma sequência de Fibonacci print('-'*30) print('Sequencia de Fibonacci') print('-'*30) n = int(input('Quantos termos você quer mostrar? ')) t1 = 0 t2 = 1 print('~'*30) print('{} > {}'.format(t1,t2), end='') cont=3 wh...
23.578947
130
0.622768
ed2af4dbac17f1dec6b5a8d68db9e3202f8a14a0
931
py
Python
tests/test_config.py
mochazi/objprint
49bc213073ec56a4bed63fb5180240f6c01df6eb
[ "Apache-2.0" ]
191
2021-03-10T09:41:02.000Z
2022-03-30T19:15:39.000Z
tests/test_config.py
mochazi/objprint
49bc213073ec56a4bed63fb5180240f6c01df6eb
[ "Apache-2.0" ]
46
2021-03-02T02:09:39.000Z
2022-03-26T11:22:05.000Z
tests/test_config.py
mochazi/objprint
49bc213073ec56a4bed63fb5180240f6c01df6eb
[ "Apache-2.0" ]
12
2021-02-28T21:43:58.000Z
2022-03-23T11:44:47.000Z
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 # For details: https://github.com/gaogaotiantian/objprint/blob/master/NOTICE.txt import io from contextlib import redirect_stdout from objprint import config, objprint from .objtest import ObjTest, ObjprintTestCase class TestConfig(Obj...
32.103448
80
0.689581
9e2f6f2ae6c6c66ceb0a97611560af2eafee6d17
1,105
py
Python
roast/exceptions.py
Xilinx/roast
999594fd5d1f0c92d26bc36741ea85d57a0235e9
[ "MIT" ]
1
2021-09-01T15:29:15.000Z
2021-09-01T15:29:15.000Z
roast/exceptions.py
Xilinx/roast
999594fd5d1f0c92d26bc36741ea85d57a0235e9
[ "MIT" ]
null
null
null
roast/exceptions.py
Xilinx/roast
999594fd5d1f0c92d26bc36741ea85d57a0235e9
[ "MIT" ]
4
2020-11-19T11:42:36.000Z
2021-02-05T04:20:52.000Z
# # Copyright (c) 2020 Xilinx, Inc. All rights reserved. # SPDX-License-Identifier: MIT # import logging log = logging.getLogger(__name__) class RoastError(Exception): """ The base exception class for all roast exceptions. """ def __init__(self, message: str = None, log_stack: bool = False) -> Non...
19.385965
77
0.642534
8ea9a649350beff7b0a0068d1ea7c6d8b31224ac
1,838
py
Python
src/m6_your_turtles.py
boewebe/01-IntroductionToPython
14da52b34275c7e69bb89f04aa2a06ba5c3707cb
[ "MIT" ]
null
null
null
src/m6_your_turtles.py
boewebe/01-IntroductionToPython
14da52b34275c7e69bb89f04aa2a06ba5c3707cb
[ "MIT" ]
null
null
null
src/m6_your_turtles.py
boewebe/01-IntroductionToPython
14da52b34275c7e69bb89f04aa2a06ba5c3707cb
[ "MIT" ]
null
null
null
""" Your chance to explore Loops and Turtles! Authors: David Mutchler, Vibha Alangar, Matt Boutell, Dave Fisher, Aaron Wilkin, their colleagues, and Brendan Boewe. """ ######################################################################## # DONE: 1. # On Line 5 above, replace PUT_YOUR_NAME_HERE with you...
27.432836
73
0.577258
7647d8eba17816e1e834594514504936cefe7913
725
py
Python
tests/test_svgstyle.py
tomghyselinck/sphinxcontrib-plantuml
851d572b94f64f82603d11d01afb9c07ada89456
[ "BSD-2-Clause" ]
null
null
null
tests/test_svgstyle.py
tomghyselinck/sphinxcontrib-plantuml
851d572b94f64f82603d11d01afb9c07ada89456
[ "BSD-2-Clause" ]
null
null
null
tests/test_svgstyle.py
tomghyselinck/sphinxcontrib-plantuml
851d572b94f64f82603d11d01afb9c07ada89456
[ "BSD-2-Clause" ]
null
null
null
import os import shutil import tempfile from sphinxcontrib import plantuml def setup(): global _tempdir _tempdir = tempfile.mkdtemp() def teardown(): shutil.rmtree(_tempdir) def writefile(fname, data): f = open(fname, 'w') try: f.write(data) finally: f.close() def test_get_s...
24.166667
80
0.626207
affb1733dd4cd4bd9e5fc7503afba4ca00d1ad98
18,191
py
Python
smop/parse.py
blink1073/smop
87e25309b1fb5ed54a5bd8d5d5cee00d39452800
[ "MIT" ]
1
2015-01-26T09:23:44.000Z
2015-01-26T09:23:44.000Z
smop/parse.py
blink1073/smop
87e25309b1fb5ed54a5bd8d5d5cee00d39452800
[ "MIT" ]
null
null
null
smop/parse.py
blink1073/smop
87e25309b1fb5ed54a5bd8d5d5cee00d39452800
[ "MIT" ]
null
null
null
# SMOP compiler -- Simple Matlab/Octave to Python compiler # Copyright 2011-2013 Victor Leikehman import copy import pprint import os import operator import sys import re import yacc from lexer import tokens import lexer #import builtins import node #from node import * import resolve # ident properties (set in par...
26.595029
88
0.483591
09946beeefa275d1daf6be7e81620645e2c19acb
157,659
py
Python
Tensile/KernelWriterSource.py
micmelesse/Tensile
62fb9a16909ddef08010915cfefe4c0341f48daa
[ "MIT" ]
null
null
null
Tensile/KernelWriterSource.py
micmelesse/Tensile
62fb9a16909ddef08010915cfefe4c0341f48daa
[ "MIT" ]
null
null
null
Tensile/KernelWriterSource.py
micmelesse/Tensile
62fb9a16909ddef08010915cfefe4c0341f48daa
[ "MIT" ]
null
null
null
################################################################################ # Copyright (C) 2016-2019 Advanced Micro Devices, Inc. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # ...
47.118649
344
0.509403
2b0636d7d62aa88ec4ca851c3f566379fa1975f7
140,428
py
Python
synapseclient/client.py
lingyunsong/synapse_scripts
a6fd694abbd970b2b78ef89130ef2e88b10a102e
[ "Apache-2.0" ]
null
null
null
synapseclient/client.py
lingyunsong/synapse_scripts
a6fd694abbd970b2b78ef89130ef2e88b10a102e
[ "Apache-2.0" ]
null
null
null
synapseclient/client.py
lingyunsong/synapse_scripts
a6fd694abbd970b2b78ef89130ef2e88b10a102e
[ "Apache-2.0" ]
null
null
null
""" ************** Synapse Client ************** The `Synapse` object encapsulates a connection to the Synapse service and is used for building projects, uploading and retrieving data, and recording provenance of data analysis. ~~~~~ Login ~~~~~ .. automethod:: synapseclient.client.login ~~~~~~~ Synapse ~~~~~~~ .....
43.023284
205
0.601233
cc0a9343c601b5f1a34c29d6cf15bed338570cc8
22,288
py
Python
nuitka/build/inline_copy/lib/scons-3.1.2/SCons/Executor.py
LP-Codes/Nuitka
2939da85f74127fb3ff6c1155a44bd73e8f5b2a9
[ "Apache-2.0" ]
null
null
null
nuitka/build/inline_copy/lib/scons-3.1.2/SCons/Executor.py
LP-Codes/Nuitka
2939da85f74127fb3ff6c1155a44bd73e8f5b2a9
[ "Apache-2.0" ]
1
2021-06-10T06:47:04.000Z
2021-06-10T06:47:04.000Z
nuitka/build/inline_copy/lib/scons-3.1.2/SCons/Executor.py
LP-Codes/Nuitka
2939da85f74127fb3ff6c1155a44bd73e8f5b2a9
[ "Apache-2.0" ]
null
null
null
"""SCons.Executor A module for executing actions with specific lists of target and source Nodes. """ # # Copyright (c) 2001 - 2019 The SCons Foundation # # 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...
33.216095
114
0.606829
c93a2539e8c603ef059e6c930c76dff514388b01
2,408
py
Python
scrapy_proj/openrecipes/spiders/whatsgabycooking_spider.py
fictivekin/openrecipes
82b5c080168439b328f76a115aa2011fa4601384
[ "Apache-2.0" ]
300
2015-01-05T05:37:34.000Z
2022-03-05T16:24:37.000Z
scrapy_proj/openrecipes/spiders/whatsgabycooking_spider.py
fictivekin/openrecipes
82b5c080168439b328f76a115aa2011fa4601384
[ "Apache-2.0" ]
11
2015-05-14T04:15:22.000Z
2018-01-27T17:22:32.000Z
scrapy_proj/openrecipes/spiders/whatsgabycooking_spider.py
fictivekin/openrecipes
82b5c080168439b328f76a115aa2011fa4601384
[ "Apache-2.0" ]
100
2015-01-11T23:14:29.000Z
2022-03-25T06:03:48.000Z
from scrapy.contrib.spiders import CrawlSpider, Rule from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor from scrapy.selector import HtmlXPathSelector from openrecipes.items import RecipeItem, RecipeItemLoader from openrecipes.schema_org_parser import parse_recipes from openrecipes.util import is_ingredien...
37.625
127
0.615864
355f4a5df501922d7cced07daae4a173d4d88eaf
9,891
py
Python
codes/models.py
RonDen/HanTokenization
7fd61f3de33a1fc094784fcc49bd4b2808195c89
[ "MIT" ]
3
2021-04-04T03:28:41.000Z
2021-04-23T02:57:20.000Z
codes/models.py
RonDen/HanTokenization
7fd61f3de33a1fc094784fcc49bd4b2808195c89
[ "MIT" ]
null
null
null
codes/models.py
RonDen/HanTokenization
7fd61f3de33a1fc094784fcc49bd4b2808195c89
[ "MIT" ]
2
2021-04-13T11:34:35.000Z
2021-04-20T00:51:41.000Z
#!/usr/bin/python3 # -*- coding: utf-8 -*- # Author: Xukun Luo # Date: 2021.04.08 import sys sys.path.append("../") import torch import torch.nn as nn from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence from codes.layers import CRF, TransformerLayer class BiLstmModel(nn.Module): def _...
36.769517
99
0.574158
f5f745ae7ac5a82ba61ceb21b66769ce32ddca23
740
py
Python
mayan/apps/converter/migrations/0010_auto_20150815_0351.py
eshbeata/open-paperless
6b9ed1f21908116ad2795b3785b2dbd66713d66e
[ "Apache-2.0" ]
2,743
2017-12-18T07:12:30.000Z
2022-03-27T17:21:25.000Z
mayan/apps/converter/migrations/0010_auto_20150815_0351.py
kyper999/mayan-edms
ca7b8301a1f68548e8e718d42a728a500d67286e
[ "Apache-2.0" ]
15
2017-12-18T14:58:07.000Z
2021-03-01T20:05:05.000Z
mayan/apps/converter/migrations/0010_auto_20150815_0351.py
kyper999/mayan-edms
ca7b8301a1f68548e8e718d42a728a500d67286e
[ "Apache-2.0" ]
257
2017-12-18T03:12:58.000Z
2022-03-25T08:59:10.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('converter', '0009_auto_20150714_2228'), ] operations = [ migrations.AlterField( model_name='transformation', ...
26.428571
77
0.510811
b1ea991ca6aa36d0ede8e941d3e8f7b0a8b030a9
7,820
py
Python
src/toil/test/src/miscTests.py
PolusAI/toil
a98acdb5cbe0f850b2c11403d147577d9971f4e1
[ "Apache-2.0" ]
516
2015-07-30T19:08:55.000Z
2018-07-03T20:53:42.000Z
src/toil/test/src/miscTests.py
PolusAI/toil
a98acdb5cbe0f850b2c11403d147577d9971f4e1
[ "Apache-2.0" ]
1,949
2015-07-29T23:38:49.000Z
2018-07-05T12:42:04.000Z
src/toil/test/src/miscTests.py
gmloose/toil
a82834073b28f66747c5c3ac99d1a678b82d2290
[ "Apache-2.0" ]
193
2015-07-31T18:52:57.000Z
2018-07-05T08:54:11.000Z
# Copyright (C) 2015-2021 Regents of the University of California # # 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 app...
36.886792
152
0.635934
969cc17b7ae46a5f1fd0de9509eb6e7c7a531aad
4,541
py
Python
tuttest/__init__.py
rw1nkler/tuttest
30535a9662793f42d9b4197a3494195f26327c3e
[ "Apache-2.0" ]
null
null
null
tuttest/__init__.py
rw1nkler/tuttest
30535a9662793f42d9b4197a3494195f26327c3e
[ "Apache-2.0" ]
null
null
null
tuttest/__init__.py
rw1nkler/tuttest
30535a9662793f42d9b4197a3494195f26327c3e
[ "Apache-2.0" ]
null
null
null
from collections import OrderedDict from typing import Optional, List, Dict import re def parse_rst(text: str, names: List[str] = None, extra_roles: List[str] = []) -> OrderedDict: snippets = OrderedDict() from docutils.core import publish_doctree # Sphinx roles from docutils.parsers.rst import roles...
34.142857
269
0.574103
5acf27d8825771f588caa5fb73febd4ba7e6aedf
7,598
py
Python
connectivity.py
boredStats/Infraslow-MEG-waves
78b0d7aaf625fe566da16fd135916b4ad8619a48
[ "MIT" ]
null
null
null
connectivity.py
boredStats/Infraslow-MEG-waves
78b0d7aaf625fe566da16fd135916b4ad8619a48
[ "MIT" ]
null
null
null
connectivity.py
boredStats/Infraslow-MEG-waves
78b0d7aaf625fe566da16fd135916b4ad8619a48
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- """Script for calculating connectivity measures.""" import os import math import h5py import utils import numpy as np import pandas as pd from sklearn.model_selection import KFold from mne.connectivity import phase_slope_index def _try_epoching(dataset=None, fs=500, transpose=True): if da...
34.536364
79
0.575283
37f1cf98e706f260747bf8c68c51578ea7add006
7,558
py
Python
src/network/dynamicTwoTerminalGate.py
mikepfrank/dynamic
01581e5f671f3ab34eb5bec45c2cab508a1b6928
[ "Unlicense" ]
2
2019-01-25T07:18:56.000Z
2021-12-18T05:16:40.000Z
src/network/dynamicTwoTerminalGate.py
mikepfrank/dynamic
01581e5f671f3ab34eb5bec45c2cab508a1b6928
[ "Unlicense" ]
null
null
null
src/network/dynamicTwoTerminalGate.py
mikepfrank/dynamic
01581e5f671f3ab34eb5bec45c2cab508a1b6928
[ "Unlicense" ]
null
null
null
from numbers import Real import logmaster _logger = logmaster.getLogger(logmaster.sysName + '.simulator') from functions.binaryDifferentiableFunction import BinaryDifferentiableFunction from .dynamicNode import DynamicNode from .dynamicPort import DynamicPort as Port from .dynamicComponent im...
38.365482
103
0.597248
60e1511336d06c9df15c7217210e41d34d8b842c
2,582
py
Python
crawler/RISJbot/spmiddlewares/unwantedcontent.py
ausnews/ausnews-search
47f33e7a19e28f4b42fe1286aaefd3c5c3f85741
[ "MIT" ]
10
2021-02-18T01:30:59.000Z
2021-09-13T04:31:40.000Z
crawler/RISJbot/spmiddlewares/unwantedcontent.py
ausnews/ausnews-search
47f33e7a19e28f4b42fe1286aaefd3c5c3f85741
[ "MIT" ]
null
null
null
crawler/RISJbot/spmiddlewares/unwantedcontent.py
ausnews/ausnews-search
47f33e7a19e28f4b42fe1286aaefd3c5c3f85741
[ "MIT" ]
2
2021-02-18T22:51:00.000Z
2021-05-12T02:04:47.000Z
# -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # http://doc.scrapy.org/en/latest/topics/spider-middleware.html import logging from scrapy.exceptions import NotConfigured logger = logging.getLogger(__name__) class UnwantedContent(object): """Spider middlewa...
39.723077
79
0.677769
b63dc4573897937a4d0d0b833695d6a4ecc16b4f
35,243
py
Python
src/bandersnatch/tests/plugins/test_storage_plugins.py
lepaperwan/bandersnatch
251127a3b979f0e845b619a5bbd507db85a13f01
[ "AFL-3.0" ]
1
2021-04-14T05:41:33.000Z
2021-04-14T05:41:33.000Z
src/bandersnatch/tests/plugins/test_storage_plugins.py
lepaperwan/bandersnatch
251127a3b979f0e845b619a5bbd507db85a13f01
[ "AFL-3.0" ]
16
2020-12-18T22:46:36.000Z
2022-03-02T18:06:15.000Z
src/bandersnatch/tests/plugins/test_storage_plugins.py
jiegec/bandersnatch
cc50bfecfd8b8912c35227aa8124c385ca1239ab
[ "AFL-3.0" ]
1
2021-04-14T05:41:27.000Z
2021-04-14T05:41:27.000Z
import atexit import contextlib import datetime import hashlib import json import mimetypes import os import pathlib import shutil import sys import tempfile import unittest from pathlib import Path from typing import TYPE_CHECKING, Any, Dict, Iterator, List, Optional, Tuple, Union from unittest import TestCase, mock ...
35.671053
88
0.598076
668bb57fe751c374625ca8ca348cc8baeb37d8d1
427
py
Python
CalibTracker/SiStripESProducers/python/DBWriter/SiStripBadModuleDummyDBWriter_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
CalibTracker/SiStripESProducers/python/DBWriter/SiStripBadModuleDummyDBWriter_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
CalibTracker/SiStripESProducers/python/DBWriter/SiStripBadModuleDummyDBWriter_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms siStripBadModuleDummyDBWriter = cms.EDAnalyzer("SiStripBadModuleDummyDBWriter", record = cms.string(""), OpenIovAt = cms.untracked.string("beginOfTime"), ...
32.846154
93
0.447307
f2c86b9a677b99448180ec4faca44a7fbd4edb62
2,008
py
Python
tests/tensor/test_sum.py
nlp-greyfoss/metagrad
0f32f177ced1478f0c75ad37bace9a9fc4044ba3
[ "MIT" ]
7
2022-01-27T05:38:02.000Z
2022-03-30T01:48:00.000Z
tests/tensor/test_sum.py
nlp-greyfoss/metagrad
0f32f177ced1478f0c75ad37bace9a9fc4044ba3
[ "MIT" ]
null
null
null
tests/tensor/test_sum.py
nlp-greyfoss/metagrad
0f32f177ced1478f0c75ad37bace9a9fc4044ba3
[ "MIT" ]
2
2022-02-22T07:47:02.000Z
2022-03-22T08:31:59.000Z
import numpy as np from metagrad.tensor import Tensor def test_simple_sum(): x = Tensor([1, 2, 3], requires_grad=True) y = x.sum() assert y.data == 6 y.backward() assert x.grad.data.tolist() == [1, 1, 1] def test_sum_with_grad(): x = Tensor([1, 2, 3], requires_grad=True) y = x.sum() ...
24.790123
95
0.523406
5f043d8304b4b5f12af8c825ea732c7984222ff3
4,125
py
Python
cnn_tut3.py
sachinumrao/pytorch_tutorials
113b17875e6858ea50ececd29948d0054f3a535c
[ "MIT" ]
null
null
null
cnn_tut3.py
sachinumrao/pytorch_tutorials
113b17875e6858ea50ececd29948d0054f3a535c
[ "MIT" ]
null
null
null
cnn_tut3.py
sachinumrao/pytorch_tutorials
113b17875e6858ea50ececd29948d0054f3a535c
[ "MIT" ]
null
null
null
# CNN with MNIST data # import dependencies import torch import torchvision import torchvision.transforms as transforms # tranform dataset images into tensors transform = transforms.Compose( [transforms.ToTensor(), transforms.Normalize((0.13,),(0.31,))]) # load dataset trainset = torchvision.datasets.MNIST(r...
29.049296
89
0.622545