hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
796f5e5b374bcad8a1e9ebb0e29499259d8f82c7
175
py
Python
algorithms/sorting/sorting_prelim.py
davidhansonc/data_structures_algorithms
6c81fad69a707eeed4c6310f450782900506b623
[ "MIT" ]
null
null
null
algorithms/sorting/sorting_prelim.py
davidhansonc/data_structures_algorithms
6c81fad69a707eeed4c6310f450782900506b623
[ "MIT" ]
null
null
null
algorithms/sorting/sorting_prelim.py
davidhansonc/data_structures_algorithms
6c81fad69a707eeed4c6310f450782900506b623
[ "MIT" ]
null
null
null
letters = ['a', 'd', 'z', 'e', 'r', 'b'] numbers = [58, 3, 24, 678, 1, 8, 9] spanish = ['árbol', 'arbol'] print(sorted(letters)) print(sorted(numbers)) print(sorted(spanish))
25
40
0.582857
796f5e78e9cac1aca8add9eb2773533046f3ba17
11,316
py
Python
python/athena/gpu_ops/LayerNorm.py
sj1104/Het
81b7e9f0f593108db969fc46a1af3df74b825230
[ "Apache-2.0" ]
2
2021-12-05T07:11:04.000Z
2021-12-15T07:53:48.000Z
python/athena/gpu_ops/LayerNorm.py
sj1104/Het
81b7e9f0f593108db969fc46a1af3df74b825230
[ "Apache-2.0" ]
null
null
null
python/athena/gpu_ops/LayerNorm.py
sj1104/Het
81b7e9f0f593108db969fc46a1af3df74b825230
[ "Apache-2.0" ]
3
2021-04-01T22:39:13.000Z
2021-04-21T11:51:57.000Z
from __future__ import absolute_import from .Node import Op import numpy as np from .. import ndarray from ..gpu_links import layer_normalization from ..gpu_links import layer_normalization_gradient class Layer_NormalizationOp(Op): def __init__(self, node_in, ln_scale, ln_bias, eps=0.01, ctx=None): super()...
38.886598
133
0.637681
796f5f6251e72ddc21766132da6ee64e80c221f4
895
py
Python
bitmovin/resources/models/outputs/akamai_netstorage_output.py
camberbridge/bitmovin-python
3af4c6e79b0291fda05fd1ceeb5bed1bba9f3c95
[ "Unlicense" ]
44
2016-12-12T17:37:23.000Z
2021-03-03T09:48:48.000Z
bitmovin/resources/models/outputs/akamai_netstorage_output.py
camberbridge/bitmovin-python
3af4c6e79b0291fda05fd1ceeb5bed1bba9f3c95
[ "Unlicense" ]
38
2017-01-09T14:45:45.000Z
2022-02-27T18:04:33.000Z
bitmovin/resources/models/outputs/akamai_netstorage_output.py
camberbridge/bitmovin-python
3af4c6e79b0291fda05fd1ceeb5bed1bba9f3c95
[ "Unlicense" ]
27
2017-02-02T22:49:31.000Z
2019-11-21T07:04:57.000Z
from . import AbstractOutput class AkamaiNetStorageOutput(AbstractOutput): def __init__(self, host, username, password, id_=None, custom_data=None, name=None, description=None): super().__init__(id_=id_, custom_data=custom_data, name=name, description=description) self.host = host self.us...
37.291667
106
0.680447
796f6086b1be0fe8375a5faeda60fc38454e1504
8,433
py
Python
source/rttov_test/profile-datasets-py/div52_zen30deg/034.py
bucricket/projectMAScorrection
89489026c8e247ec7c364e537798e766331fe569
[ "BSD-3-Clause" ]
null
null
null
source/rttov_test/profile-datasets-py/div52_zen30deg/034.py
bucricket/projectMAScorrection
89489026c8e247ec7c364e537798e766331fe569
[ "BSD-3-Clause" ]
1
2022-03-12T12:19:59.000Z
2022-03-12T12:19:59.000Z
source/rttov_test/profile-datasets-py/div52_zen30deg/034.py
bucricket/projectMAScorrection
89489026c8e247ec7c364e537798e766331fe569
[ "BSD-3-Clause" ]
null
null
null
""" Profile ../profile-datasets-py/div52_zen30deg/034.py file automaticaly created by prof_gen.py script """ self["ID"] = "../profile-datasets-py/div52_zen30deg/034.py" self["Q"] = numpy.array([ 1.607768, 4.15376 , 5.83064 , 7.181963, 6.558055, 7.26391 , 9.444143, 8.659606, ...
55.117647
92
0.551761
796f60ecc9a727fbee1dcd8b48150d9b3350f636
253
py
Python
website/home/views.py
mdkearns/django-website-template
cb2ede991749aebe8756705c269640db16bd04f7
[ "MIT" ]
null
null
null
website/home/views.py
mdkearns/django-website-template
cb2ede991749aebe8756705c269640db16bd04f7
[ "MIT" ]
null
null
null
website/home/views.py
mdkearns/django-website-template
cb2ede991749aebe8756705c269640db16bd04f7
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse from django.template import loader def index(request): template = loader.get_template('home/index.html') context = {} return HttpResponse(template.render(context, request))
23
55
0.790514
796f61556b13ec2924e6bc222c64ef0290abd81b
71
py
Python
double3/double3sdk/webrtc/webrtc.py
CLOMING/winter2021_double
9b920baaeb3736a785a6505310b972c49b5b21e9
[ "Apache-2.0" ]
null
null
null
double3/double3sdk/webrtc/webrtc.py
CLOMING/winter2021_double
9b920baaeb3736a785a6505310b972c49b5b21e9
[ "Apache-2.0" ]
null
null
null
double3/double3sdk/webrtc/webrtc.py
CLOMING/winter2021_double
9b920baaeb3736a785a6505310b972c49b5b21e9
[ "Apache-2.0" ]
null
null
null
from double3sdk.double_api import _DoubleAPI class _Webrtc: pass
11.833333
44
0.788732
796f61b1df2b73bbf318bded6fe5033a7f3a0df1
1,092
py
Python
exercises/house/example.py
wrightling/python
e14ec13008c28fff80604a2627416c93edc85ce4
[ "MIT" ]
null
null
null
exercises/house/example.py
wrightling/python
e14ec13008c28fff80604a2627416c93edc85ce4
[ "MIT" ]
null
null
null
exercises/house/example.py
wrightling/python
e14ec13008c28fff80604a2627416c93edc85ce4
[ "MIT" ]
null
null
null
parts = [('lay in', 'the house that Jack built'), ('ate', 'the malt'), ('killed', 'the rat'), ('worried', 'the cat'), ('tossed', 'the dog'), ('milked', 'the cow with the crumpled horn'), ('kissed', 'the maiden all forlorn'), ('married', 'the man all tattere...
33.090909
61
0.532967
796f6204e5ab51b015f4cd17fb85d1d126bcbaa3
1,616
py
Python
tool/site/server_flask/helpers.py
NHSDigital/electronic-prescription-service-api
c1159e6fe9d698dcc664c815bd3db99fbc40e569
[ "MIT" ]
4
2020-04-15T10:30:56.000Z
2022-03-29T23:08:17.000Z
tool/site/server_flask/helpers.py
NHSDigital/electronic-prescription-service-api
c1159e6fe9d698dcc664c815bd3db99fbc40e569
[ "MIT" ]
225
2020-05-27T10:30:18.000Z
2022-03-29T11:53:20.000Z
tool/site/server_flask/helpers.py
NHSDigital/electronic-prescription-service-api
c1159e6fe9d698dcc664c815bd3db99fbc40e569
[ "MIT" ]
3
2020-07-16T09:56:19.000Z
2021-04-11T07:31:31.000Z
import base64 import json import config def get_oauth_base_path(auth_method, public): apigee_url = config.PUBLIC_APIGEE_URL if public else f"https://{config.APIGEE_DOMAIN_NAME}" if auth_method == "simulated" and config.ENVIRONMENT == "int": return f"{apigee_url}/oauth2-no-smartcard" else: ...
29.925926
113
0.741337
796f6270e449503dc2a909260ab9c7b9e1720ac6
2,401
py
Python
tools/tfgraph.py
BobLiu20/tensorflow-onnx
bec7c1fd610c27d7cb22271c9fdf45d9f4ecee44
[ "Apache-2.0" ]
1
2021-04-30T15:26:06.000Z
2021-04-30T15:26:06.000Z
tools/tfgraph.py
BobLiu20/tensorflow-onnx
bec7c1fd610c27d7cb22271c9fdf45d9f4ecee44
[ "Apache-2.0" ]
null
null
null
tools/tfgraph.py
BobLiu20/tensorflow-onnx
bec7c1fd610c27d7cb22271c9fdf45d9f4ecee44
[ "Apache-2.0" ]
1
2021-05-11T21:51:52.000Z
2021-05-11T21:51:52.000Z
# SPDX-License-Identifier: Apache-2.0 """Simple tool to guess inputs and outputs of a tensorflow model.""" from __future__ import division from __future__ import print_function import argparse from collections import Counter import tensorflow as tf IGNORE_INPUT = ["Const", "ConstV2", "Variable", "VariableV2", "Re...
28.583333
93
0.566847
796f63a2b82c900f47f81596ffa316e282bdd804
4,236
py
Python
Python2.7-Ckafka_SCF_COS/index.py
tencentyun/scf-demo-repo
c75f9b9e8be8d079f0510b14fb0c7098d0b6bb7e
[ "Python-2.0", "OLDAP-2.7" ]
46
2019-03-01T02:19:18.000Z
2021-12-18T12:37:02.000Z
Python2.7-Ckafka_SCF_COS/Ckafka_SCF_COS.py
Juliiii/scf-demo-repo
766928f14c64fbccab0713d6c6af0de3e716c9b0
[ "Python-2.0", "OLDAP-2.7" ]
8
2019-01-22T10:46:43.000Z
2020-12-30T13:03:04.000Z
Python2.7-Ckafka_SCF_COS/index.py
tencentyun/scf-demo-repo
c75f9b9e8be8d079f0510b14fb0c7098d0b6bb7e
[ "Python-2.0", "OLDAP-2.7" ]
67
2018-10-29T09:50:49.000Z
2022-01-06T07:35:56.000Z
# -*- coding=utf-8 #####----------------------------------------------------------------##### ##### ##### ##### 使用教程/readme: ##### ##### https://cloud.tencent.com/document/product/583/30722 ##### ###...
36.834783
117
0.587819
796f63bf40699d89df78fcb3a2a918a729b3ba2b
4,974
py
Python
Project 3a/Source Code/proj3a_ws/src/world_simulation/scripts/turtlebot3_controller.py
DaitTan/PIRProjects
84cc865645ecc507225575369867045c55d1997d
[ "CC0-1.0" ]
null
null
null
Project 3a/Source Code/proj3a_ws/src/world_simulation/scripts/turtlebot3_controller.py
DaitTan/PIRProjects
84cc865645ecc507225575369867045c55d1997d
[ "CC0-1.0" ]
null
null
null
Project 3a/Source Code/proj3a_ws/src/world_simulation/scripts/turtlebot3_controller.py
DaitTan/PIRProjects
84cc865645ecc507225575369867045c55d1997d
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python # this code is adapted from https://github.com/ROBOTIS-GIT/turtlebot3/blob/master/turtlebot3_example/nodes/turtlebot3_pointop_key # I was able to find the source code thanks to this thread https://answers.ros.org/question/154876/no-source-code-cpp-file-for-turtlebot/ import rospy from geometry_m...
38.261538
137
0.569763
796f63ca0a185c177b58ebc88848a4aeeca1f4e1
838
py
Python
app/conf/gunicorn-config.py
ianjuma/errand-runner
afb3ac5e322b79386507f4a5807238538d182f35
[ "Apache-2.0" ]
1
2019-07-06T10:27:43.000Z
2019-07-06T10:27:43.000Z
app/conf/gunicorn-config.py
ianjuma/errand-runner
afb3ac5e322b79386507f4a5807238538d182f35
[ "Apache-2.0" ]
null
null
null
app/conf/gunicorn-config.py
ianjuma/errand-runner
afb3ac5e322b79386507f4a5807238538d182f35
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os import multiprocessing workers = multiprocessing.cpu_count() * 2 + 1 def numCPUs(): if not hasattr(os, 'sysconf'): raise RuntimeError('No sysconf detected.') return os.sysconf('SC_NPROCESSORS_ONLN') use = 'flask_render:app' bind = '0.0.0.0:8000' workers = numCPUs() ...
22.052632
82
0.682578
796f65bdbbaf02e0a402a8721d594da371b2802d
1,955
py
Python
installer/steps/e_launcher.py
WWFelina/Jarvis
69c4dba3e4b86478221b3d401a1f9423434309eb
[ "MIT" ]
2,605
2017-03-10T22:44:36.000Z
2022-03-31T15:33:17.000Z
installer/steps/e_launcher.py
nikiboura/Jarvis
eb22f7c84a345e9ae5925b4b98adbc4f2e4a93f3
[ "MIT" ]
729
2017-03-11T00:06:46.000Z
2022-03-31T22:04:44.000Z
installer/steps/e_launcher.py
nikiboura/Jarvis
eb22f7c84a345e9ae5925b4b98adbc4f2e4a93f3
[ "MIT" ]
1,181
2017-03-10T23:24:55.000Z
2022-03-31T03:59:46.000Z
from helper import * from os.path import expanduser, exists import unix_windows # TODO Windows Install options? if unix_windows.IS_WIN: fw = open('jarvis.bat', 'w') fw.write("""\ @ECHO off CALL "{JARVISPATH}\\env\\Scripts\\activate.bat" python "{JARVISPATH}\\jarviscli" %* """.format(JARVISPATH=os.getcwd()...
29.179104
84
0.571355
796f666e84ae85f5780dc13d9e820857f1e71213
5,635
py
Python
myapp/models.py
kimtaemila/movie-watchlist
de62218a824f54466bf71de2e74d86cf5d4262f0
[ "CC0-1.0" ]
null
null
null
myapp/models.py
kimtaemila/movie-watchlist
de62218a824f54466bf71de2e74d86cf5d4262f0
[ "CC0-1.0" ]
null
null
null
myapp/models.py
kimtaemila/movie-watchlist
de62218a824f54466bf71de2e74d86cf5d4262f0
[ "CC0-1.0" ]
null
null
null
from django.contrib.auth.models import User from django.db import models from datetime import date import re LANGUAGE_CHOICES = ( ('ar-AE', 'Arabic (United Arab Emirates)'), ('bn-BD', 'Bengali (Bangladesh)'), ('bn-IN', 'Bengali (India)'), ('zh-CN', 'Chinese (China)'), ('en-US', 'English (United Sta...
38.862069
93
0.491571
796f6756a645915c709820e4bf0c950927db0634
14,696
py
Python
frappe/data_migration/doctype/data_migration_run/data_migration_run.py
ektai/erp2Dodock
5ad64b01cba9b07437f9a27751101258679379e8
[ "MIT" ]
null
null
null
frappe/data_migration/doctype/data_migration_run/data_migration_run.py
ektai/erp2Dodock
5ad64b01cba9b07437f9a27751101258679379e8
[ "MIT" ]
null
null
null
frappe/data_migration/doctype/data_migration_run/data_migration_run.py
ektai/erp2Dodock
5ad64b01cba9b07437f9a27751101258679379e8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe, json, math from frappe.model.document import Document from frappe import _ from frappe.utils import cstr from frappe.data_migration...
30.114754
104
0.728089
796f675fc2d3fa0c4c72d7410fd51fed6f995153
14,152
py
Python
simulation/active.py
forest-snow/incremental-coref
d993dccc6f6c637baba8c8848b7ddf435e5e5e49
[ "Apache-2.0" ]
1
2022-03-07T22:08:46.000Z
2022-03-07T22:08:46.000Z
simulation/active.py
forest-snow/incremental-coref
d993dccc6f6c637baba8c8848b7ddf435e5e5e49
[ "Apache-2.0" ]
null
null
null
simulation/active.py
forest-snow/incremental-coref
d993dccc6f6c637baba8c8848b7ddf435e5e5e49
[ "Apache-2.0" ]
null
null
null
import argparse import torch import numpy as np import pathlib from train_active import finetune_on_queries from incremental import Incremental from inference import Predictor from score import Scorer import util import copy from collections import defaultdict import logging import json from eval_all import ALL def l...
35.647355
110
0.622174
796f677f3a63d60f77410e6be55a7bdd1f6328ea
456
py
Python
snacks/models.py
Anas-Abuhatab/DjangoX
aaad2e19b9e152fb11ca42e52bdc54bd397f36bf
[ "MIT" ]
null
null
null
snacks/models.py
Anas-Abuhatab/DjangoX
aaad2e19b9e152fb11ca42e52bdc54bd397f36bf
[ "MIT" ]
null
null
null
snacks/models.py
Anas-Abuhatab/DjangoX
aaad2e19b9e152fb11ca42e52bdc54bd397f36bf
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth import get_user_model # Create your models here. from django.urls import reverse class Snacks(models.Model): name = models.CharField(max_length=64) description= models.TextField() purchaser= models.ForeignKey(get_user_model(), on_delete=models.CASCADE) ...
30.4
76
0.741228
796f67cdfcb0437758b4b30e560e129bd4b9f3bb
6,044
py
Python
networks/__init__.py
zhuxyme/zxySRFBN_CVPR2019
c1afe776e7759bc05f2235b6db708e337cf2ae0e
[ "MIT" ]
null
null
null
networks/__init__.py
zhuxyme/zxySRFBN_CVPR2019
c1afe776e7759bc05f2235b6db708e337cf2ae0e
[ "MIT" ]
null
null
null
networks/__init__.py
zhuxyme/zxySRFBN_CVPR2019
c1afe776e7759bc05f2235b6db708e337cf2ae0e
[ "MIT" ]
null
null
null
import functools import torch import torch.nn as nn from torch.nn import init #################### # initialize #################### def weights_init_normal(m, std=0.02): classname = m.__class__.__name__ if isinstance(m, (nn.Conv2d, nn.ConvTranspose2d)): if classname != "MeanShift": prin...
40.02649
126
0.591992
796f6803903225cf206feb15444c9957a12a68da
515
py
Python
delugeClient/__init__.py
KevinMidboe/delugeClient
c09d35670e9a174b16e12906fbb9db415c405e00
[ "MIT" ]
1
2019-06-27T15:07:20.000Z
2019-06-27T15:07:20.000Z
delugeClient/__init__.py
KevinMidboe/delugeClient
c09d35670e9a174b16e12906fbb9db415c405e00
[ "MIT" ]
5
2019-05-14T07:35:33.000Z
2021-07-04T14:42:19.000Z
delugeClient/__init__.py
KevinMidboe/delugeClient
c09d35670e9a174b16e12906fbb9db415c405e00
[ "MIT" ]
null
null
null
import os from sys import path path.append(os.path.dirname(__file__)) __version__=0.1 import logging from delugeUtils import BASE_DIR logger = logging.getLogger('deluge_cli') logger.setLevel(logging.DEBUG) fh = logging.FileHandler(os.path.join(BASE_DIR, 'deluge_cli.log')) fh.setLevel(logging.DEBUG) ch = logging.St...
23.409091
82
0.780583
796f6954ab6e5dd69a37aaf754ef6850d5d84752
6,960
py
Python
nfc/ndef/message.py
BSatyaKishore/node-red-contrib-nfcpy-id
317088b6bff0d0258484d555ce41747d6f19dc80
[ "Apache-2.0" ]
null
null
null
nfc/ndef/message.py
BSatyaKishore/node-red-contrib-nfcpy-id
317088b6bff0d0258484d555ce41747d6f19dc80
[ "Apache-2.0" ]
null
null
null
nfc/ndef/message.py
BSatyaKishore/node-red-contrib-nfcpy-id
317088b6bff0d0258484d555ce41747d6f19dc80
[ "Apache-2.0" ]
null
null
null
# -*- coding: latin-1 -*- # ----------------------------------------------------------------------------- # Copyright 2009, 2017 Stephen Tiedemann <stephen.tiedemann@gmail.com> # # Licensed under the EUPL, Version 1.1 or - as soon they # will be approved by the European Commission - subsequent # versions of the EUPL (...
39.771429
79
0.614511
796f6980672c49c68e25c7160e9757fe2ff99649
1,070
py
Python
Discord/discordParse.py
TheStockie/PvtWanderbot
abf44d42eed87d7d8bda078c9ed72385e0d3e228
[ "MIT" ]
null
null
null
Discord/discordParse.py
TheStockie/PvtWanderbot
abf44d42eed87d7d8bda078c9ed72385e0d3e228
[ "MIT" ]
2
2021-03-16T22:06:36.000Z
2021-03-18T21:39:36.000Z
Discord/discordParse.py
TheStockie/PvtWanderbot
abf44d42eed87d7d8bda078c9ed72385e0d3e228
[ "MIT" ]
1
2021-03-16T21:50:56.000Z
2021-03-16T21:50:56.000Z
import discord import twitch_check from discord.ext import commands import asyncio import os from dotenv import load_dotenv load_dotenv() # Command parser DO NOT TOUCH async def parse_command(message): parse = message.content.split(' ') if(len(parse) > 1): await commandList[parse[0]](message, pa...
24.318182
63
0.668224
796f6aefd2623cc3be40fb4d3e009c978ef1127d
924
py
Python
tests/snippets/stdlib_hashlib.py
khg0712/RustPython
a04c19ccb0f5e7e1774d5e6f267ffed3ee27aeae
[ "MIT" ]
3
2019-08-14T02:05:49.000Z
2020-01-03T08:39:56.000Z
tests/snippets/stdlib_hashlib.py
khg0712/RustPython
a04c19ccb0f5e7e1774d5e6f267ffed3ee27aeae
[ "MIT" ]
null
null
null
tests/snippets/stdlib_hashlib.py
khg0712/RustPython
a04c19ccb0f5e7e1774d5e6f267ffed3ee27aeae
[ "MIT" ]
1
2022-03-14T13:03:29.000Z
2022-03-14T13:03:29.000Z
import hashlib # print(hashlib.md5) h = hashlib.md5() h.update(b'a') assert h.name == 'md5' print(h.hexdigest()) assert h.hexdigest() == '0cc175b9c0f1b6a831c399e269772661' assert h.digest_size == 16 h = hashlib.sha256() h.update(b'a') assert h.name == 'sha256' assert h.digest_size == 32 print(h.hexdigest()) assert...
27.176471
154
0.78355
796f6b0286529dd811e9fcd3b8b239324f0211cf
16,789
py
Python
Abilene/Direct_FW/Direct_FW.py
shenghexu/CORL
9f098b110b7ea36533542ddc89e473678f728d8b
[ "MIT" ]
null
null
null
Abilene/Direct_FW/Direct_FW.py
shenghexu/CORL
9f098b110b7ea36533542ddc89e473678f728d8b
[ "MIT" ]
null
null
null
Abilene/Direct_FW/Direct_FW.py
shenghexu/CORL
9f098b110b7ea36533542ddc89e473678f728d8b
[ "MIT" ]
null
null
null
from EP_N_Env import * import math import random import numpy as np import matplotlib.pyplot as plt import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import scipy.optimize from pdb import set_trace as bp Tensor = torch.FloatTensor def get_input_optimizer(input_array): ...
30.470054
144
0.561439
796f6b047f961b0e01209802dd92689b76803e2e
7,922
py
Python
bonneville/modules/brew.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
bonneville/modules/brew.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
bonneville/modules/brew.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
3
2020-05-10T02:08:44.000Z
2020-11-06T11:01:57.000Z
# -*- coding: utf-8 -*- ''' Homebrew for Mac OS X ''' # Import python libs import copy import logging # Import bonneville libs import bonneville.utils log = logging.getLogger(__name__) def __virtual__(): ''' Confine this module to Mac OS with Homebrew. ''' if bonneville.utils.which('brew') and __g...
25.888889
109
0.59278
796f6d998e8fcd4e34bcbb6c119a41b279df3806
93,193
py
Python
python/pyarrow/tests/test_dataset.py
rui-mo/arrow-1
5bea62493d919dcb97ca0f22bcb7ebfc239cee25
[ "CC-BY-3.0", "Apache-2.0", "CC0-1.0" ]
null
null
null
python/pyarrow/tests/test_dataset.py
rui-mo/arrow-1
5bea62493d919dcb97ca0f22bcb7ebfc239cee25
[ "CC-BY-3.0", "Apache-2.0", "CC0-1.0" ]
null
null
null
python/pyarrow/tests/test_dataset.py
rui-mo/arrow-1
5bea62493d919dcb97ca0f22bcb7ebfc239cee25
[ "CC-BY-3.0", "Apache-2.0", "CC0-1.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...
34.864572
79
0.656691
796f6e21e5bf86e2400f78b29305f720f30b31c7
4,337
py
Python
web.py
igflavius/webscraper
c9ca07e1d683e16719b9be62fe19735c6143d765
[ "MIT" ]
1
2020-07-05T08:14:35.000Z
2020-07-05T08:14:35.000Z
web.py
igflavius/webscraper
c9ca07e1d683e16719b9be62fe19735c6143d765
[ "MIT" ]
null
null
null
web.py
igflavius/webscraper
c9ca07e1d683e16719b9be62fe19735c6143d765
[ "MIT" ]
null
null
null
#!/usr/bin/python3 __author__ = "Flavius Ion" __email__ = "igflavius@odyssee.ro" __license__ = "MIT" __version__ = "v1.3" import argparse import requests import logging import itertools import threading import queue import sys import os import re from bs4 import BeautifulSoup from urllib3.exceptions import InsecureRe...
35.260163
153
0.62255
796f73260b764512fdcd2d6aa289fbb82ccea7cb
2,902
py
Python
sampledb/frontend/markdown_images.py
NicolasCARPi/sampledb
d6fd0f4d28d05010d7e0c022fbf2576e25435077
[ "MIT" ]
null
null
null
sampledb/frontend/markdown_images.py
NicolasCARPi/sampledb
d6fd0f4d28d05010d7e0c022fbf2576e25435077
[ "MIT" ]
null
null
null
sampledb/frontend/markdown_images.py
NicolasCARPi/sampledb
d6fd0f4d28d05010d7e0c022fbf2576e25435077
[ "MIT" ]
null
null
null
# coding: utf-8 """ There are several Markdown editors built into the SampleDB frontend, which need to be able to upload images. This module allows uploading images which are then assigned a random file name and can be used in the Markdown editors using that name. """ import base64 import os import flask import flask...
33.744186
125
0.719159
796f733a7c5bfba7df4b6cd6c44120c683fa5c05
638
py
Python
setup.py
plumdog/vtypes
8c199c935c6081bdadc0a00aeb27da14d32043e3
[ "MIT" ]
null
null
null
setup.py
plumdog/vtypes
8c199c935c6081bdadc0a00aeb27da14d32043e3
[ "MIT" ]
null
null
null
setup.py
plumdog/vtypes
8c199c935c6081bdadc0a00aeb27da14d32043e3
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='vtypes', packages=['vtypes'], version='0.0.1', author='Andrew Plummer', author_email='plummer574@gmail.com', url='https://github.com/plumdog/vtypes', description=' For coercing dicts of types, eg requests to and responses from a JSON api.', tes...
30.380952
94
0.619122
796f736e53debf0c49ee6f7c235724d0a303efea
20,687
py
Python
dashboardskoda.py
tanelvakker/skodaconnect
c48ff2bbda97d05d8f5d89d0c5563b10c56d13d3
[ "Apache-2.0" ]
null
null
null
dashboardskoda.py
tanelvakker/skodaconnect
c48ff2bbda97d05d8f5d89d0c5563b10c56d13d3
[ "Apache-2.0" ]
null
null
null
dashboardskoda.py
tanelvakker/skodaconnect
c48ff2bbda97d05d8f5d89d0c5563b10c56d13d3
[ "Apache-2.0" ]
null
null
null
# Utilities for integration with Home Assistant # Thanks to molobrakos import logging from utilities import camel2slug _LOGGER = logging.getLogger(__name__) class Instrument: def __init__(self, component, attr, name, icon=None): self.attr = attr self.component = component self.name = nam...
27.291557
155
0.569971
796f75611b4133f03e8710858f8d6565c51af1ca
304
wsgi
Python
pywps.wsgi
bstdenis/wps-templates
b6453f2405042a50a2edcb4467bf4fd576bc1ee4
[ "Apache-2.0" ]
null
null
null
pywps.wsgi
bstdenis/wps-templates
b6453f2405042a50a2edcb4467bf4fd576bc1ee4
[ "Apache-2.0" ]
null
null
null
pywps.wsgi
bstdenis/wps-templates
b6453f2405042a50a2edcb4467bf4fd576bc1ee4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import sys from pywps.app import Service sys.path.append('/var/www/html/wps') # Must first import the process, then add it to the application. from wps_simplesttest import SimplestTest from wps_testall import TestAll application = Service(processes=[SimplestTest(), TestAll()])
23.384615
64
0.779605
796f761e4d03e5cfc27aafe332d53786a809fa27
1,449
py
Python
sentinel/conf/opts.py
spjmurray/sentinel
50eaffddac33705c1bfd965285cb2fe09d34a0c4
[ "Apache-2.0" ]
3
2017-11-09T16:44:27.000Z
2020-06-23T16:06:43.000Z
sentinel/conf/opts.py
entercloudsuite/openstack-sentinel
50eaffddac33705c1bfd965285cb2fe09d34a0c4
[ "Apache-2.0" ]
null
null
null
sentinel/conf/opts.py
entercloudsuite/openstack-sentinel
50eaffddac33705c1bfd965285cb2fe09d34a0c4
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 DataCentred 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 ag...
25.875
78
0.672188
796f78b946dff95fe2dabc9235fd001470ebedfd
2,892
py
Python
bigquery/train.py
krystianity/keras-serving
553dfad47b751c0f4a38965c38d832eb58b58863
[ "Apache-2.0" ]
158
2017-05-19T23:08:34.000Z
2021-12-29T05:57:36.000Z
bigquery/train.py
coffescript/keras-serving
553dfad47b751c0f4a38965c38d832eb58b58863
[ "Apache-2.0" ]
10
2017-05-25T12:01:57.000Z
2021-09-01T02:27:35.000Z
bigquery/train.py
coffescript/keras-serving
553dfad47b751c0f4a38965c38d832eb58b58863
[ "Apache-2.0" ]
30
2017-06-11T21:46:00.000Z
2021-12-24T00:40:54.000Z
from __future__ import print_function import numpy as np import os import shutil import sh from keras.models import Sequential from keras.layers.core import Dense, Dropout, Activation from keras.optimizers import SGD from google.cloud import bigquery from keras import backend as K K.set_learning_phase(0) # def uti...
22.418605
96
0.686722
796f7a1736cc1d052c956d1042562c91f54b6dee
2,474
py
Python
google/storage/speckle/python/django/management/commands/getoauthtoken.py
vladushakov987/appengine_python3
0dd481c73e2537a50ee10f1b79cd65938087e555
[ "Apache-2.0" ]
null
null
null
google/storage/speckle/python/django/management/commands/getoauthtoken.py
vladushakov987/appengine_python3
0dd481c73e2537a50ee10f1b79cd65938087e555
[ "Apache-2.0" ]
null
null
null
google/storage/speckle/python/django/management/commands/getoauthtoken.py
vladushakov987/appengine_python3
0dd481c73e2537a50ee10f1b79cd65938087e555
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
30.925
80
0.687146
796f7a1a69c9947574b18d55f1f8e2b5247cd6d0
55
py
Python
Chapter 08/ch8_5.py
bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE
f6a4194684515495d00aa38347a725dd08f39a0c
[ "MIT" ]
null
null
null
Chapter 08/ch8_5.py
bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE
f6a4194684515495d00aa38347a725dd08f39a0c
[ "MIT" ]
null
null
null
Chapter 08/ch8_5.py
bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE
f6a4194684515495d00aa38347a725dd08f39a0c
[ "MIT" ]
null
null
null
x = [1,2,3] x = x + [9,10] print(x) # [1,2,3,9,10]
11
15
0.381818
796f7a26cd73479f230e0a89611315c83d04fa67
1,715
py
Python
examples/OpenGIS/xforecast.py
thorstenb/pyxb
634e86f61dfb73a2900f32fc3d819e9c25365a49
[ "Apache-2.0" ]
null
null
null
examples/OpenGIS/xforecast.py
thorstenb/pyxb
634e86f61dfb73a2900f32fc3d819e9c25365a49
[ "Apache-2.0" ]
null
null
null
examples/OpenGIS/xforecast.py
thorstenb/pyxb
634e86f61dfb73a2900f32fc3d819e9c25365a49
[ "Apache-2.0" ]
null
null
null
# See http://www.weather.gov/forecasts/xml/OGC_services/ import time import urllib2 import ndfd.dwGML import opengis.gml import opengis.ows import pyxb.binding.datatypes as xsd import sys parameters = [ 'mint', 'maxt', 'temp', 'pop12', 'wspd', 'wdir' ] url_base = 'http://www.weather.gov/forecasts/xml/OGC_services/ndf...
33.627451
112
0.640233
796f7c1160cd15c7fafb57b97bc87e6c21919daf
1,657
py
Python
finddup.py
andresdelfino/finddup
fb41ad4640b278003a43d0f0e5992989f11d2fb8
[ "Unlicense" ]
null
null
null
finddup.py
andresdelfino/finddup
fb41ad4640b278003a43d0f0e5992989f11d2fb8
[ "Unlicense" ]
null
null
null
finddup.py
andresdelfino/finddup
fb41ad4640b278003a43d0f0e5992989f11d2fb8
[ "Unlicense" ]
null
null
null
import hashlib import itertools import os def get_hash(path): """Returns the MD5 hash of a file""" with open(path, 'rb') as file: file_content = file.read() hasher = hashlib.md5() hasher.update(file_content) return hasher.hexdigest() def powerwalk(top): """Return...
26.725806
98
0.568497
796f7c4363406e237dc663478979cc8a9e194457
8,963
py
Python
tests/stores/test_mongolike.py
wuxiaohua1011/maggma
b7a059b2d12d9b96aa2092c40eb41f121c0a598b
[ "BSD-3-Clause-LBNL" ]
null
null
null
tests/stores/test_mongolike.py
wuxiaohua1011/maggma
b7a059b2d12d9b96aa2092c40eb41f121c0a598b
[ "BSD-3-Clause-LBNL" ]
null
null
null
tests/stores/test_mongolike.py
wuxiaohua1011/maggma
b7a059b2d12d9b96aa2092c40eb41f121c0a598b
[ "BSD-3-Clause-LBNL" ]
null
null
null
import os import pytest import mongomock.collection import pymongo.collection from datetime import datetime from maggma.core import StoreError from maggma.stores import MongoStore, MemoryStore, JSONStore, MongoURIStore from maggma.validators import JSONSchemaValidator @pytest.fixture def mongostore(): store = Mon...
30.077181
88
0.626799
796f7ccaecf82e74d84e0f22cae6cd8f492429a6
34,827
py
Python
horizon/horizon/tables/base.py
ttrifonov/horizon
293c2ee9f76231e12142a733f6f916c533648f8f
[ "Apache-2.0" ]
1
2016-10-11T10:21:14.000Z
2016-10-11T10:21:14.000Z
horizon/horizon/tables/base.py
ttrifonov/horizon
293c2ee9f76231e12142a733f6f916c533648f8f
[ "Apache-2.0" ]
null
null
null
horizon/horizon/tables/base.py
ttrifonov/horizon
293c2ee9f76231e12142a733f6f916c533648f8f
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 Nebula, 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 # # ...
38.1875
79
0.609384
796f7d202a1d1f3e831d68098b8cc45c4e64bfcf
116
py
Python
Authda/settings/prod.py
kryptn/Authda
4716a34c0758c3e38efa0254f29d8ca68f01d6a4
[ "MIT" ]
null
null
null
Authda/settings/prod.py
kryptn/Authda
4716a34c0758c3e38efa0254f29d8ca68f01d6a4
[ "MIT" ]
null
null
null
Authda/settings/prod.py
kryptn/Authda
4716a34c0758c3e38efa0254f29d8ca68f01d6a4
[ "MIT" ]
null
null
null
DEBUG = False SLACK_BOT_NAME = "your-bot-name" SLACK_WEBHOOK_URI = 'https://hooks.slack.com/services/your/webhook/'
29
68
0.767241
796f7e18001d65079605ecc8d3e86e95ae0368c6
12,105
py
Python
netpyne/analysis/lfp.py
adamjhn/netpyne
b9e104645f11fe6688496b22cd4183f463e11adc
[ "MIT" ]
1
2021-03-22T15:16:58.000Z
2021-03-22T15:16:58.000Z
netpyne/analysis/lfp.py
adamjhn/netpyne
b9e104645f11fe6688496b22cd4183f463e11adc
[ "MIT" ]
null
null
null
netpyne/analysis/lfp.py
adamjhn/netpyne
b9e104645f11fe6688496b22cd4183f463e11adc
[ "MIT" ]
null
null
null
""" Module for analyzing LFP-related results """ from __future__ import print_function from __future__ import division from __future__ import unicode_literals from __future__ import absolute_import from builtins import range from builtins import round from builtins import str try: basestring except NameError: ...
29.888889
189
0.582817
796f7f3f7b32648a3bac778f18c5f0e9c798f0c5
1,359
py
Python
boardgamegeek/spider.py
ourobouros/scrapers
d82e2b707bbb2b450176dbf85842aeccb6e812f9
[ "MIT" ]
174
2015-09-20T02:55:09.000Z
2022-01-09T14:05:21.000Z
boardgamegeek/spider.py
ourobouros/scrapers
d82e2b707bbb2b450176dbf85842aeccb6e812f9
[ "MIT" ]
5
2020-06-28T11:50:30.000Z
2022-03-02T15:03:36.000Z
boardgamegeek/spider.py
ourobouros/scrapers
d82e2b707bbb2b450176dbf85842aeccb6e812f9
[ "MIT" ]
106
2015-09-28T15:06:28.000Z
2022-03-23T09:15:48.000Z
import re from bs4 import BeautifulSoup from scrapy.spiders import CrawlSpider from scrapy.item import Item, Field class Game(Item): id = Field() title = Field() geek_rate = Field() avg_rate = Field() num_votes = Field() class GameSpider(CrawlSpider): name = 'boardgamegeek_spider' allow...
32.357143
82
0.582046
796f7fe6a745eab8cddce9affdd4bbd7bdf7c42c
2,773
py
Python
WISDEM/wisdem/test/test_gluecode/test_gluecode.py
ptrbortolotti/WEIS
1e4dbf6728050f75cee08cd483fe57c5614488fe
[ "Apache-2.0" ]
81
2015-01-19T18:17:31.000Z
2022-03-17T07:14:43.000Z
WISDEM/wisdem/test/test_gluecode/test_gluecode.py
ptrbortolotti/WEIS
1e4dbf6728050f75cee08cd483fe57c5614488fe
[ "Apache-2.0" ]
159
2015-02-05T01:54:52.000Z
2022-03-30T22:44:39.000Z
WISDEM/wisdem/test/test_gluecode/test_gluecode.py
ptrbortolotti/WEIS
1e4dbf6728050f75cee08cd483fe57c5614488fe
[ "Apache-2.0" ]
70
2015-01-02T15:22:39.000Z
2022-02-11T00:33:07.000Z
import os import unittest from wisdem.glue_code.runWISDEM import run_wisdem test_dir = ( os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))) + os.sep + "examples" + os.sep + "02_reference_turbines" + os.sep ) fname_modeling_options = test_dir + "model...
37.472973
98
0.68049
796f81e809bb339d7e64d4e02783e27a2fcc753c
131
py
Python
Coursera_HSE_Py_Ass-5.8-The-last-max.py
YuriRevin/Coursera_HSE_Py_Ass-5.8-The-last-max
3ba50d6a1bdde403c055ee42c5f4995e9227dfb2
[ "MIT" ]
null
null
null
Coursera_HSE_Py_Ass-5.8-The-last-max.py
YuriRevin/Coursera_HSE_Py_Ass-5.8-The-last-max
3ba50d6a1bdde403c055ee42c5f4995e9227dfb2
[ "MIT" ]
null
null
null
Coursera_HSE_Py_Ass-5.8-The-last-max.py
YuriRevin/Coursera_HSE_Py_Ass-5.8-The-last-max
3ba50d6a1bdde403c055ee42c5f4995e9227dfb2
[ "MIT" ]
null
null
null
l = list(map(int, input().split())) a, b = l[0], 0 for i in range(1, len(l)): if l[i] >= a: a, b = l[i], i print(a, b)
18.714286
35
0.450382
796f83162155b592a147cd2ecac375b4b4ffd229
3,019
py
Python
examples/advanced_example.py
filip-halt/pymilvus
2554677574f84a8fa72a9d4b0ae2ca811080acc4
[ "Apache-2.0" ]
null
null
null
examples/advanced_example.py
filip-halt/pymilvus
2554677574f84a8fa72a9d4b0ae2ca811080acc4
[ "Apache-2.0" ]
null
null
null
examples/advanced_example.py
filip-halt/pymilvus
2554677574f84a8fa72a9d4b0ae2ca811080acc4
[ "Apache-2.0" ]
null
null
null
import random import pymilvus.orm.pymilvus_orm as orm from pymilvus import DataType from pprint import pprint random.seed(1234567890) def main(): orm.connections.connect("default", host = "127.0.0.1", port= 19530) orm.connections.connect("collection_con", host = "127.0.0.1", port= 19530) try: ...
36.817073
165
0.696257
796f83782409e495464d092be206a0ce1bf9a238
565
py
Python
env/Lib/site-packages/OpenGL/raw/GLSC2/OES/depth32.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
210
2016-04-09T14:26:00.000Z
2022-03-25T18:36:19.000Z
env/Lib/site-packages/OpenGL/raw/GLSC2/OES/depth32.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
72
2016-09-04T09:30:19.000Z
2022-03-27T17:06:53.000Z
env/Lib/site-packages/OpenGL/raw/GLSC2/OES/depth32.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
64
2016-04-09T14:26:49.000Z
2022-03-21T11:19:47.000Z
'''Autogenerated by xml_generate script, do not edit!''' from OpenGL import platform as _p, arrays # Code generation uses this from OpenGL.raw.GLSC2 import _types as _cs # End users want this... from OpenGL.raw.GLSC2._types import * from OpenGL.raw.GLSC2 import _errors from OpenGL.constant import Constant as _C import...
35.3125
114
0.80531
796f83b9ea29be5355cd4406e3bf5ced66a3ad85
2,682
py
Python
control_produccion/utility.py
asapper/lito-produccion
792ac029323106012f654988e6c002f63e50d883
[ "Unlicense" ]
null
null
null
control_produccion/utility.py
asapper/lito-produccion
792ac029323106012f654988e6c002f63e50d883
[ "Unlicense" ]
null
null
null
control_produccion/utility.py
asapper/lito-produccion
792ac029323106012f654988e6c002f63e50d883
[ "Unlicense" ]
null
null
null
import datetime from django.contrib import messages from django.contrib.auth.models import User from django.db.models import (Avg, Count, ExpressionWrapper, F, DecimalField, Sum) from django.utils import timezone from .models import Order, Order_Process, Process class OrderController()...
39.441176
79
0.674497
796f83cb606a9c8b1bf70491f21c71d796a79cd8
1,815
py
Python
os_ken/cfg.py
faucetsdn/python3-os-ken
31037f6388b7885c859391802451b867c30f1694
[ "Apache-2.0" ]
4
2018-10-25T08:42:56.000Z
2019-04-24T04:01:26.000Z
os_ken/cfg.py
anlaneg/os-ken
379a7694c3129cc0156343af71f4fca8830d9de5
[ "Apache-2.0" ]
1
2021-05-09T06:14:16.000Z
2021-05-09T06:14:18.000Z
os_ken/cfg.py
anlaneg/os-ken
379a7694c3129cc0156343af71f4fca8830d9de5
[ "Apache-2.0" ]
5
2019-04-24T04:01:01.000Z
2020-06-20T14:38:04.000Z
# Copyright (C) 2014 Nippon Telegraph and Telephone Corporation. # Copyright (C) 2014 YAMAMOTO Takashi <yamamoto at valinux co jp> # # 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:...
37.040816
76
0.77741
796f84adad08ebd5128eddbd28fda621ea5f3e6c
3,338
py
Python
pypureclient/flasharray/FA_2_13/models/certificate_signing_request.py
ashahid-ps/py-pure-client
2e3565d37b2a41db69308769f6f485d08a7c46c3
[ "BSD-2-Clause" ]
null
null
null
pypureclient/flasharray/FA_2_13/models/certificate_signing_request.py
ashahid-ps/py-pure-client
2e3565d37b2a41db69308769f6f485d08a7c46c3
[ "BSD-2-Clause" ]
null
null
null
pypureclient/flasharray/FA_2_13/models/certificate_signing_request.py
ashahid-ps/py-pure-client
2e3565d37b2a41db69308769f6f485d08a7c46c3
[ "BSD-2-Clause" ]
null
null
null
# coding: utf-8 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.13 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typing from ...
29.803571
105
0.572199
796f84d7fecb224cff0044fd20eea380334e2865
2,181
py
Python
t_core/Mutex/HHoldRuleNAC0Bridge.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
3
2017-06-02T19:26:27.000Z
2021-06-14T04:25:45.000Z
t_core/Mutex/HHoldRuleNAC0Bridge.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
8
2016-08-24T07:04:07.000Z
2017-05-26T16:22:47.000Z
t_core/Mutex/HHoldRuleNAC0Bridge.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
1
2019-10-31T06:00:23.000Z
2019-10-31T06:00:23.000Z
from core.himesis import Himesis, HimesisPreConditionPattern import cPickle as pickle class HHoldRuleNAC0Bridge(HimesisPreConditionPattern): def __init__(self): """ Creates the himesis graph representing the AToM3 model HHoldRuleNAC0Bridge. """ # Create the himesis graph...
28.324675
242
0.6442
796f869342c521941bdddbc9b7e069a625b47449
1,770
py
Python
google/ads/googleads/v9/errors/types/ad_group_error.py
JakobSteixner/google-ads-python
df2b802cc7e78295a4ece21cc7ef3787cd35dab0
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v9/errors/types/ad_group_error.py
JakobSteixner/google-ads-python
df2b802cc7e78295a4ece21cc7ef3787cd35dab0
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v9/errors/types/ad_group_error.py
JakobSteixner/google-ads-python
df2b802cc7e78295a4ece21cc7ef3787cd35dab0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
34.705882
75
0.732203
796f8703f14c946dd2aaecb7b15227a3d4abc6cb
230
py
Python
solver/cost_sample.py
dimitriLallement/knapsack-problem
74bbe2abaf97f6e33ec64265d842d4c03d7670ef
[ "MIT" ]
null
null
null
solver/cost_sample.py
dimitriLallement/knapsack-problem
74bbe2abaf97f6e33ec64265d842d4c03d7670ef
[ "MIT" ]
null
null
null
solver/cost_sample.py
dimitriLallement/knapsack-problem
74bbe2abaf97f6e33ec64265d842d4c03d7670ef
[ "MIT" ]
null
null
null
from math import floor def cost_function(*inputs): """Compute the cost corresponding to the inputs. :param inputs: array of parameters :return the cost value """ return(floor((inputs[0] + inputs[1]) / inputs[2]))
28.75
54
0.682609
796f87cb6a424546bf1bf1cca22d23b0706cbe45
2,927
py
Python
merle/fetched_resource.py
dannguyen/merle
dfddd0fed9e7b8b6bf82be26897f6c47fa4ee0ac
[ "MIT" ]
2
2016-10-05T22:29:51.000Z
2017-03-13T12:41:45.000Z
merle/fetched_resource.py
dannguyen/merle
dfddd0fed9e7b8b6bf82be26897f6c47fa4ee0ac
[ "MIT" ]
null
null
null
merle/fetched_resource.py
dannguyen/merle
dfddd0fed9e7b8b6bf82be26897f6c47fa4ee0ac
[ "MIT" ]
null
null
null
# import requests from merle.extractor import extract_element_from_doc from datetime import datetime from slugify import slugify_url from urllib.parse import urlparse from newspaper import fulltext, Article from newspaper.article import ArticleException import re from lxml import html as htmlparser EXCERPT_WORD_COUNT...
35.26506
130
0.647079
796f88abf0c6178a8fb44108be81a3bff3223066
7,208
py
Python
mind_mapper/views/__init__.py
Cmiroslaf/MindMapper
3e7a26fe027082aecb9042e2a16d00338bf9a4c6
[ "MIT" ]
1
2019-04-10T09:15:24.000Z
2019-04-10T09:15:24.000Z
mind_mapper/views/__init__.py
Cmiroslaf/MindMapper
3e7a26fe027082aecb9042e2a16d00338bf9a4c6
[ "MIT" ]
null
null
null
mind_mapper/views/__init__.py
Cmiroslaf/MindMapper
3e7a26fe027082aecb9042e2a16d00338bf9a4c6
[ "MIT" ]
null
null
null
from PyQt5.QtCore import QUrl from PyQt5.QtGui import QGuiApplication from PyQt5.QtQuick import QQuickView, QQuickItem from mind_mapper.controllers import Controller import sys import os class View(object): shapes = ["rectangle", "ellipse", "image"] edgetypes = ["line", "curve"] def __init__(self): ...
43.684848
78
0.641509
796f88defa3b2de5a60e56d14d3631e3df6867fe
172
py
Python
test/config/test_meta.py
HansBug/pysyslimit
d2444cd8b398f8c14c5dcd41b49ac771c54bf7b1
[ "Apache-2.0" ]
null
null
null
test/config/test_meta.py
HansBug/pysyslimit
d2444cd8b398f8c14c5dcd41b49ac771c54bf7b1
[ "Apache-2.0" ]
null
null
null
test/config/test_meta.py
HansBug/pysyslimit
d2444cd8b398f8c14c5dcd41b49ac771c54bf7b1
[ "Apache-2.0" ]
null
null
null
import pytest from pysyslimit.config.meta import __TITLE__ @pytest.mark.unittest class TestConfigMeta: def test_meta(self): assert __TITLE__ == "pysyslimit"
17.2
44
0.75
796f892f23bb2af7bfbe17adee125b07d775d56b
373
py
Python
main/migrations/0012_auto_20210514_2056.py
drhoet/photo-workflow
4d1e6be82a71fec34e37ddf4096c46d871b24b66
[ "MIT" ]
null
null
null
main/migrations/0012_auto_20210514_2056.py
drhoet/photo-workflow
4d1e6be82a71fec34e37ddf4096c46d871b24b66
[ "MIT" ]
null
null
null
main/migrations/0012_auto_20210514_2056.py
drhoet/photo-workflow
4d1e6be82a71fec34e37ddf4096c46d871b24b66
[ "MIT" ]
null
null
null
# Generated by Django 3.1.5 on 2021-05-14 20:56 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('main', '0011_auto_20210513_1933'), ] operations = [ migrations.RenameField( model_name='image', old_name='tz_offset_seconds'...
19.631579
47
0.595174
796f897c226a8468dad26e86da523d325004e9a4
285
py
Python
ncdssdk/src/main/python/ncdsclient/internal/utils/LoggingConfig.py
JoshunCox/NasdaqCloudDataService-SDK-Python
02f39005c9c34fab086b2fd1fb7b27975bc7ad0c
[ "Apache-2.0" ]
12
2021-08-11T21:02:02.000Z
2022-01-29T17:27:28.000Z
ncdssdk/src/main/python/ncdsclient/internal/utils/LoggingConfig.py
JoshunCox/NasdaqCloudDataService-SDK-Python
02f39005c9c34fab086b2fd1fb7b27975bc7ad0c
[ "Apache-2.0" ]
2
2021-11-15T22:12:26.000Z
2022-02-23T04:08:42.000Z
ncdssdk/src/main/python/ncdsclient/internal/utils/LoggingConfig.py
JoshunCox/NasdaqCloudDataService-SDK-Python
02f39005c9c34fab086b2fd1fb7b27975bc7ad0c
[ "Apache-2.0" ]
3
2021-08-18T03:48:34.000Z
2022-02-25T02:46:38.000Z
import logging.config from ncdssdk.src.main import resources as sysresources from importlib import resources import json def create_logger(): with resources.open_text(sysresources, "logging.json") as f: config = json.load(f) logging.config.dictConfig(config)
28.5
65
0.74386
796f8cd290cf098ee05a42b2d5468f7a71776f05
1,485
py
Python
aliyun-python-sdk-sddp/aliyunsdksddp/request/v20190103/DescribeEventTypesRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
1
2021-03-08T02:59:17.000Z
2021-03-08T02:59:17.000Z
aliyun-python-sdk-sddp/aliyunsdksddp/request/v20190103/DescribeEventTypesRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
1
2020-05-31T14:51:47.000Z
2020-05-31T14:51:47.000Z
aliyun-python-sdk-sddp/aliyunsdksddp/request/v20190103/DescribeEventTypesRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "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 ...
35.357143
79
0.748822
796f8d193ba23ccbbb146dc6cd6ab8cfdce8de16
10,756
py
Python
assets/helpers/service.py
ChanTerelLy/broker-account-analist
a723c83fe9a924905eb0754b4acb1231b31f9c87
[ "MIT" ]
null
null
null
assets/helpers/service.py
ChanTerelLy/broker-account-analist
a723c83fe9a924905eb0754b4acb1231b31f9c87
[ "MIT" ]
11
2021-02-21T19:39:41.000Z
2021-06-13T16:29:47.000Z
assets/helpers/service.py
ChanTerelLy/broker-account-analist
a723c83fe9a924905eb0754b4acb1231b31f9c87
[ "MIT" ]
2
2021-11-16T16:31:37.000Z
2022-02-11T02:55:37.000Z
import json from tinvest import AsyncClient from bs4 import BeautifulSoup from assets.helpers.utils import * import assets.models class Report: def _cell_generator(self, row): """Replace calspans by empty values in row""" cells = [] for cell in row("td"): cells.append(cell.text...
43.546559
137
0.619003
796f8de5439cb08589f45ae75611a7951b0deb0d
10,798
py
Python
mlrun/render.py
orkiguazio/mlrun
dea41441f77e47f87edf316e972b042e46bfa22c
[ "Apache-2.0" ]
null
null
null
mlrun/render.py
orkiguazio/mlrun
dea41441f77e47f87edf316e972b042e46bfa22c
[ "Apache-2.0" ]
null
null
null
mlrun/render.py
orkiguazio/mlrun
dea41441f77e47f87edf316e972b042e46bfa22c
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Iguazio # # 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, softwa...
29.664835
116
0.612799
796f8e8a6dc03f785869e8301daf75f6487a1ac4
534
py
Python
Server/upload/urls.py
DrM0h4MM4d/api-uploader
a21832b9cccde7784db55052bf10381425794b12
[ "MIT" ]
null
null
null
Server/upload/urls.py
DrM0h4MM4d/api-uploader
a21832b9cccde7784db55052bf10381425794b12
[ "MIT" ]
null
null
null
Server/upload/urls.py
DrM0h4MM4d/api-uploader
a21832b9cccde7784db55052bf10381425794b12
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('files/', views.FilesUploadedListApiView.as_view(), name='file-uploaded-list'), # path('file/download/confirm/', views.FileDownloadConfirmation.as_view(), name='file-download-confirm'), path('file/<str:code>/', views.FileDownloadUpdate...
44.5
109
0.730337
796f8e91a05f24c10f279da8c208e536e5a766a1
896
py
Python
tests/unit/stats/test_stats.py
geobeau/opencensus-python
84e8f9a2dc8604584e8bb79444c3a76c1ee6e095
[ "Apache-2.0" ]
null
null
null
tests/unit/stats/test_stats.py
geobeau/opencensus-python
84e8f9a2dc8604584e8bb79444c3a76c1ee6e095
[ "Apache-2.0" ]
1
2021-06-10T23:12:23.000Z
2021-06-10T23:12:23.000Z
tests/unit/stats/test_stats.py
geobeau/opencensus-python
84e8f9a2dc8604584e8bb79444c3a76c1ee6e095
[ "Apache-2.0" ]
null
null
null
# Copyright 2018, OpenCensus Authors # # 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 w...
34.461538
74
0.762277
796f8ea384a7f05b46370bc3b9473a2242391c4a
357
py
Python
Problems/String/1209. Remove All Adjacent Duplicates in String II.py
BYJRK/LeetCode-Solutions
008467e1717309066a519acb8623d2f84071b64a
[ "MIT" ]
null
null
null
Problems/String/1209. Remove All Adjacent Duplicates in String II.py
BYJRK/LeetCode-Solutions
008467e1717309066a519acb8623d2f84071b64a
[ "MIT" ]
null
null
null
Problems/String/1209. Remove All Adjacent Duplicates in String II.py
BYJRK/LeetCode-Solutions
008467e1717309066a519acb8623d2f84071b64a
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string-ii/ class Solution: def removeDuplicates(self, s: str, k: int) -> str: res = '' for c in s: res += c if res[-k:] == c * k: res = res[:-k] return res s = Solution() print(s.re...
21
76
0.537815
796f90c9f1239d7bf140990e9b616e88b8ecbbeb
5,635
py
Python
lib/JumpScale/portal/portal/PortalFactory.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
1
2015-10-26T10:38:13.000Z
2015-10-26T10:38:13.000Z
lib/JumpScale/portal/portal/PortalFactory.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
null
null
null
lib/JumpScale/portal/portal/PortalFactory.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
null
null
null
#from ActorsLoaderRemote import ActorsLoaderRemote from PortalServer import PortalServer from PortalClient import PortalClient import time #from ActorLoaderLocal import * import JumpScale.baselib.redis from JumpScale import j class Group(): pass class PortalFactory(): def __init__(self): # self._...
38.333333
109
0.581012
796f910df7f89849982f0ff39ba79fd578000322
4,229
py
Python
awx_collection/plugins/modules/tower_project_update.py
bhyunki/awx
ce588a6af5a5c7f71a5b176ffe53eda5ebc3492c
[ "Apache-2.0" ]
2
2020-03-19T20:49:37.000Z
2020-05-04T14:36:11.000Z
awx_collection/plugins/modules/tower_project_update.py
bhyunki/awx
ce588a6af5a5c7f71a5b176ffe53eda5ebc3492c
[ "Apache-2.0" ]
25
2021-04-01T05:53:59.000Z
2022-03-01T11:23:51.000Z
awx_collection/plugins/modules/tower_project_update.py
bhyunki/awx
ce588a6af5a5c7f71a5b176ffe53eda5ebc3492c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # coding: utf-8 -*- # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.0', 'status': ['preview'], 'supported_by': 'community'} ...
29.165517
142
0.675573
796f91451674b47e5e657bdd7aafefe58ab71dde
2,896
py
Python
setup.py
vanvalenlab/deepcell-tracking
52974c7c4f71f7469c993c723901ddffb493ed8d
[ "Apache-2.0" ]
13
2020-01-07T19:29:49.000Z
2022-02-15T15:14:29.000Z
setup.py
vanvalenlab/deepcell-tracking
52974c7c4f71f7469c993c723901ddffb493ed8d
[ "Apache-2.0" ]
36
2019-10-25T19:24:12.000Z
2021-11-18T05:44:37.000Z
setup.py
vanvalenlab/deepcell-tracking
52974c7c4f71f7469c993c723901ddffb493ed8d
[ "Apache-2.0" ]
7
2020-01-07T11:30:33.000Z
2021-11-18T01:15:53.000Z
# Copyright 2016-2021 The Van Valen Lab at the California Institute of # Technology (Caltech), with support from the Paul Allen Family Foundation, # Google, & National Institutes of Health (NIH) under Grant U24CA224309-01. # All rights reserved. # # Licensed under a modified Apache License, Version 2.0 (the "License");...
36.2
80
0.64261
796f915a9cf260e111f5111a3f8445bbc0703cbd
661
py
Python
tests/rest/test_room.py
stoneyen/rentomatic
b13e519b797de01159db6ad938583c3793748f95
[ "MIT" ]
null
null
null
tests/rest/test_room.py
stoneyen/rentomatic
b13e519b797de01159db6ad938583c3793748f95
[ "MIT" ]
null
null
null
tests/rest/test_room.py
stoneyen/rentomatic
b13e519b797de01159db6ad938583c3793748f95
[ "MIT" ]
null
null
null
import json from unittest import mock from rentomatic.domain.room import Room room_dict = { "code": "3251a5bd-86be-428d-8ae9-6e51a8048c33", "size": 200, "price": 10, "longitude": -0.09998975, "latitude": 51.75436293, } rooms = [Room.from_dict(room_dict)] @mock.patch("application.rest.room.room_...
25.423077
72
0.715582
796f91c2d7442342fd6e883c78e449fddb1164e3
2,881
py
Python
rtdpy/ad_oo.py
farisachugthai/rtdpy
ac5cd7100d4b8d256021acf4a358bd5c2c4c58ce
[ "MIT" ]
5
2019-12-28T19:53:57.000Z
2021-09-14T19:59:25.000Z
rtdpy/ad_oo.py
farisachugthai/rtdpy
ac5cd7100d4b8d256021acf4a358bd5c2c4c58ce
[ "MIT" ]
3
2019-08-19T11:29:01.000Z
2020-11-10T21:09:41.000Z
rtdpy/ad_oo.py
farisachugthai/rtdpy
ac5cd7100d4b8d256021acf4a358bd5c2c4c58ce
[ "MIT" ]
5
2019-03-19T08:35:15.000Z
2020-11-06T20:23:32.000Z
import numpy as np from rtdpy.rtd import RTD, RTDInputError class AD_oo(RTD): """ Create Axial Dispersion with open-open boundary conditions Residence Time Distribution (RTD) model. [1]_ .. math:: E(t) = \\frac{\\sqrt{Pe}}{\\tau\\sqrt{4\\pi\\theta}} \\text{exp}\\left[\\frac{-Pe \\lef...
26.675926
77
0.527942
796f91e0fe6e2165bc115fa8f6b7d58ae1ec4c81
14,418
py
Python
electrum/plugins/coldcard/build_psbt.py
y-chan/electrum
af4a3328f78ccc0d50efa3f6fa88facb328ef436
[ "MIT" ]
6
2020-09-13T23:41:59.000Z
2022-02-18T17:20:19.000Z
electrum/plugins/coldcard/build_psbt.py
y-chan/electrum
af4a3328f78ccc0d50efa3f6fa88facb328ef436
[ "MIT" ]
19
2019-11-19T14:34:30.000Z
2022-03-10T21:21:07.000Z
electrum/plugins/coldcard/build_psbt.py
y-chan/electrum
af4a3328f78ccc0d50efa3f6fa88facb328ef436
[ "MIT" ]
5
2019-11-17T12:10:24.000Z
2021-05-12T15:47:59.000Z
# # build_psbt.py - create a PSBT from (unsigned) transaction and keystore data. # import io import struct from binascii import a2b_hex, b2a_hex from struct import pack, unpack from electrum.transaction import (Transaction, multisig_script, parse_redeemScript_multisig, NotRecognizedRe...
36.226131
101
0.610209
796f91e34696dc39c388502ae319c52981c8085e
1,635
py
Python
pkg/codegen/testing/test/testdata/regress-8403/python/pulumi_mongodbatlas/get_custom_db_roles.py
goverdhan07/pulumi
301efa60653c90047a3427af41339387223dbccd
[ "Apache-2.0" ]
12,004
2018-06-17T23:56:29.000Z
2022-03-31T18:00:09.000Z
pkg/codegen/testing/test/testdata/regress-8403/python/pulumi_mongodbatlas/get_custom_db_roles.py
goverdhan07/pulumi
301efa60653c90047a3427af41339387223dbccd
[ "Apache-2.0" ]
6,263
2018-06-17T23:27:24.000Z
2022-03-31T19:20:35.000Z
pkg/codegen/testing/test/testdata/regress-8403/python/pulumi_mongodbatlas/get_custom_db_roles.py
goverdhan07/pulumi
301efa60653c90047a3427af41339387223dbccd
[ "Apache-2.0" ]
706
2018-06-17T23:56:50.000Z
2022-03-31T11:20:23.000Z
# coding=utf-8 # *** WARNING: this file was generated by test. *** # *** 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 from . import outputs __...
30.849057
124
0.706422
796f92314dbbbfcbdbedc5ec9226059a073fda0c
24
py
Python
pymaxflow/__init__.py
dio/coop-cut
e44b4bdf62a0c8a0593e7fe6de7e5b368c0f853e
[ "BSD-2-Clause" ]
22
2015-03-22T21:52:47.000Z
2022-03-04T10:29:38.000Z
pymaxflow/__init__.py
dio/coop-cut
e44b4bdf62a0c8a0593e7fe6de7e5b368c0f853e
[ "BSD-2-Clause" ]
2
2018-03-09T01:13:47.000Z
2018-07-26T22:08:14.000Z
pymaxflow/__init__.py
dio/coop-cut
e44b4bdf62a0c8a0593e7fe6de7e5b368c0f853e
[ "BSD-2-Clause" ]
17
2015-03-22T21:52:49.000Z
2020-12-08T00:27:29.000Z
from pymaxflow import *
12
23
0.791667
796f9246a6865470afd7951bacd0eea3488bfb08
1,291
py
Python
src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2019_04_01/models/managed_cluster_addon_profile.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
2
2021-06-05T17:51:26.000Z
2021-11-17T11:17:56.000Z
src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2019_04_01/models/managed_cluster_addon_profile.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
3
2020-05-27T20:16:26.000Z
2020-07-23T19:46:49.000Z
src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2019_04_01/models/managed_cluster_addon_profile.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
5
2020-05-09T17:47:09.000Z
2020-10-01T19:52:06.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 ...
33.102564
76
0.591015
796f928a6871439728ed80e1cf654c12a83bdbb8
12,576
py
Python
cli/src/pcluster/templates/cdk_builder_utils.py
bollig/aws-parallelcluster
a57bf511a3b8f9fdb4b190ce33d525fabef48d5c
[ "Apache-2.0" ]
null
null
null
cli/src/pcluster/templates/cdk_builder_utils.py
bollig/aws-parallelcluster
a57bf511a3b8f9fdb4b190ce33d525fabef48d5c
[ "Apache-2.0" ]
108
2021-10-11T09:12:06.000Z
2022-03-28T09:28:39.000Z
cli/src/pcluster/templates/cdk_builder_utils.py
yuleiwan/aws-parallelcluster
aad2a3019ef4ad08d702f5acf41b152b3f7a0b46
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "LICENSE.txt" file accom...
38.695385
120
0.699984
796f92b4719272e301790fd8eb9a53d29a379086
8,663
py
Python
examples/core/custom_data_types_and_formats.py
fengjixuchui/src
0c5a6cd8057717f73b1373f8d85eb9b19e1934e1
[ "BSD-3-Clause" ]
1,160
2015-05-02T15:13:20.000Z
2022-03-31T20:04:28.000Z
examples/core/custom_data_types_and_formats.py
fengjixuchui/src
0c5a6cd8057717f73b1373f8d85eb9b19e1934e1
[ "BSD-3-Clause" ]
19
2015-04-20T13:47:00.000Z
2021-07-07T13:00:42.000Z
examples/core/custom_data_types_and_formats.py
fengjixuchui/src
0c5a6cd8057717f73b1373f8d85eb9b19e1934e1
[ "BSD-3-Clause" ]
257
2015-04-01T21:42:33.000Z
2022-03-10T11:57:51.000Z
""" summary: using custom data types & printers description: IDA can be extended to support certain data types that it does not know about out-of-the-box. A 'custom data type' provide information about the type & size of a piece of data, while a 'custom data format' is in charge of formatting that data (the...
33.708171
164
0.572665
796f93bfb77fe7e290bc41a6306168c115606330
402
py
Python
greentest/test__monkey.py
newbrough/gevent-0.13.7
5c4ebef04f280e4ee1501a6e697e3b4681b1568d
[ "BSD-3-Clause", "MIT" ]
1
2021-03-08T14:08:52.000Z
2021-03-08T14:08:52.000Z
greentest/test__monkey.py
newbrough/gevent-0.13.7
5c4ebef04f280e4ee1501a6e697e3b4681b1568d
[ "BSD-3-Clause", "MIT" ]
null
null
null
greentest/test__monkey.py
newbrough/gevent-0.13.7
5c4ebef04f280e4ee1501a6e697e3b4681b1568d
[ "BSD-3-Clause", "MIT" ]
null
null
null
from gevent import monkey monkey.patch_all() import time assert 'built-in' not in repr(time.sleep), repr(time.sleep) import thread import threading assert 'built-in' not in repr(thread.start_new_thread), repr(thread.start_new_thread) assert 'built-in' not in repr(threading._start_new_thread), repr(threading._start_ne...
33.5
93
0.800995
796f93c4d9a416fb01c9da939bc0084aa59ab789
51,359
py
Python
tests/unit/test_swiftclient.py
mmicael1/python-swiftclient
148deb8e8d56ca40f9404c4810c3966b1164b2c9
[ "Apache-2.0" ]
null
null
null
tests/unit/test_swiftclient.py
mmicael1/python-swiftclient
148deb8e8d56ca40f9404c4810c3966b1164b2c9
[ "Apache-2.0" ]
null
null
null
tests/unit/test_swiftclient.py
mmicael1/python-swiftclient
148deb8e8d56ca40f9404c4810c3966b1164b2c9
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2010-2012 OpenStack, 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 ...
39.235294
79
0.573123
796f94cc77ed9b09f4575b61c2004e17d687becd
497
py
Python
corankco/experiments/stats/bootstrap.py
pierreandrieu/corankcolight
dce9d05c62f25faae5f73f150f44cc20bfa87b33
[ "MIT" ]
null
null
null
corankco/experiments/stats/bootstrap.py
pierreandrieu/corankcolight
dce9d05c62f25faae5f73f150f44cc20bfa87b33
[ "MIT" ]
null
null
null
corankco/experiments/stats/bootstrap.py
pierreandrieu/corankcolight
dce9d05c62f25faae5f73f150f44cc20bfa87b33
[ "MIT" ]
null
null
null
from corankco.dataset import Dataset, EmptyDatasetException from random import choice def bootstrap_dataset(dataset: Dataset): rankings = [] flag = True dataset_bootstrap = None while flag: try: flag = False for i in range(dataset.nb_rankings): rankings....
23.666667
59
0.645875
796f94da9379b424ab87d8e1d67735d75fcbadb8
4,944
py
Python
zobs/ameriflux_analysis.py
NMTHydro/Recharge
bbc1a05add92064acffeffb19f04e370b99a7918
[ "Apache-2.0" ]
7
2016-08-30T15:18:11.000Z
2021-08-22T00:28:10.000Z
zobs/ameriflux_analysis.py
NMTHydro/Recharge
bbc1a05add92064acffeffb19f04e370b99a7918
[ "Apache-2.0" ]
2
2016-06-08T06:41:45.000Z
2016-06-23T20:47:26.000Z
zobs/ameriflux_analysis.py
NMTHydro/Recharge
bbc1a05add92064acffeffb19f04e370b99a7918
[ "Apache-2.0" ]
1
2018-09-18T10:38:08.000Z
2018-09-18T10:38:08.000Z
# =============================================================================== # Copyright 2016 dgketchum # # 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...
53.73913
167
0.654935
796f954c0697cf6e92d8010a0112aa898ee87cc0
5,906
py
Python
ocs_ci/ocs/resources/pvc.py
tiffanyn108/ocs-ci
30350e0958d14100edeadbbc5f3fe557954a76b8
[ "MIT" ]
null
null
null
ocs_ci/ocs/resources/pvc.py
tiffanyn108/ocs-ci
30350e0958d14100edeadbbc5f3fe557954a76b8
[ "MIT" ]
null
null
null
ocs_ci/ocs/resources/pvc.py
tiffanyn108/ocs-ci
30350e0958d14100edeadbbc5f3fe557954a76b8
[ "MIT" ]
null
null
null
""" General PVC object """ import logging from concurrent.futures import ThreadPoolExecutor from ocs_ci.ocs import constants from ocs_ci.ocs.ocp import OCP from ocs_ci.ocs.resources.ocs import OCS from ocs_ci.framework import config from ocs_ci.utility.utils import run_cmd log = logging.getLogger(__name__) class PV...
25.025424
79
0.600237
796f95954ae619f33e2a45d33f2d007bc3ac8d36
2,896
py
Python
src/apps/dailytrans/models.py
travishen/aprp
62bcb5a1dd195ae03a340d33157b5f9bfae514ca
[ "MIT" ]
1
2018-12-08T09:59:47.000Z
2018-12-08T09:59:47.000Z
src/apps/dailytrans/models.py
travishen/aprp
62bcb5a1dd195ae03a340d33157b5f9bfae514ca
[ "MIT" ]
null
null
null
src/apps/dailytrans/models.py
travishen/aprp
62bcb5a1dd195ae03a340d33157b5f9bfae514ca
[ "MIT" ]
null
null
null
from django.utils import timezone from django.db.models import ( Model, CASCADE, DateTimeField, DateField, ForeignKey, FloatField, QuerySet, IntegerField, ) from django.utils.translation import ugettext_lazy as _ class DailyTranQuerySet(QuerySet): def update(self, *args, **kwargs):...
40.788732
117
0.665055
796f96e467e3a2f22ee119c63ccbcc24997b7a76
8,738
py
Python
Encoder/Dataset/generate_training_set.py
CORSMAL/Visual
5dd86a0a6a9960da308341853caba37ada2ffc1a
[ "MIT" ]
null
null
null
Encoder/Dataset/generate_training_set.py
CORSMAL/Visual
5dd86a0a6a9960da308341853caba37ada2ffc1a
[ "MIT" ]
null
null
null
Encoder/Dataset/generate_training_set.py
CORSMAL/Visual
5dd86a0a6a9960da308341853caba37ada2ffc1a
[ "MIT" ]
null
null
null
""" This script generates the dataset used to train the model which performs the final predictions. In the following the steps: 1. From every video, sample a frame every tot (based on the parameter). 2. For every frame run instance segmentation model and retrieve bounding boxes, masks, scores for the selected classes. ...
47.48913
157
0.623369
796f96f7dace59fb697fdd91b8bcd78ef8e5b9e0
709
py
Python
datagen/supplier/weighted_values.py
bbux-dev/dataspec
6a0efd1c91ff222831a3fb15e7b458515ffc47d0
[ "MIT" ]
2
2021-04-21T13:53:16.000Z
2021-08-24T16:51:16.000Z
datagen/supplier/weighted_values.py
bbux-dev/dataspec
6a0efd1c91ff222831a3fb15e7b458515ffc47d0
[ "MIT" ]
5
2021-03-14T16:31:41.000Z
2021-07-02T09:00:31.000Z
datagen/supplier/weighted_values.py
bbux-dev/dataspec
6a0efd1c91ff222831a3fb15e7b458515ffc47d0
[ "MIT" ]
null
null
null
""" Module for the class that implements supplying weighted values """ import random import datagen class WeightedValueSupplier(datagen.ValueSupplierInterface): """ Value supplier implementation for weighted values """ def __init__(self, choices: list, weights: list, count_supplier: datagen.ValueSu...
26.259259
101
0.67842
796f970adf50aeba4833052fe9289e5c84d52853
809
py
Python
tests/test_main.py
hadizakialqattan/pycln
dc035b2e39c6e127d64377c2db6df6dadfab12d7
[ "MIT" ]
132
2020-10-03T14:25:28.000Z
2022-03-31T13:14:56.000Z
tests/test_main.py
hadizakialqattan/pycln
dc035b2e39c6e127d64377c2db6df6dadfab12d7
[ "MIT" ]
113
2020-09-29T20:45:54.000Z
2022-03-31T13:48:07.000Z
tests/test_main.py
hadizakialqattan/pycln
dc035b2e39c6e127d64377c2db6df6dadfab12d7
[ "MIT" ]
14
2020-12-30T21:58:19.000Z
2022-03-26T05:29:23.000Z
"""`pycln/__main__.py` tests.""" # pylint: disable=R0201,W0613 from importlib import import_module from .utils import sysu class TestMain: """`__main__.py` side effects tests.""" def test_main(self): msg = "It looks like pycln/__main__.py has %s!" with sysu.hide_sys_argv(): with...
32.36
85
0.540173
796f98390436519a15b6783bc5129e237363e7f6
1,389
py
Python
conversions/test/path_converter_tester.py
teddyort/ros_tools
2bd3865ba9011a994101f09f3fc52aef95fff0f7
[ "MIT" ]
null
null
null
conversions/test/path_converter_tester.py
teddyort/ros_tools
2bd3865ba9011a994101f09f3fc52aef95fff0f7
[ "MIT" ]
null
null
null
conversions/test/path_converter_tester.py
teddyort/ros_tools
2bd3865ba9011a994101f09f3fc52aef95fff0f7
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rosunit import unittest import numpy as np from geometry_msgs.msg import PoseStamped from nav_msgs.msg import Path from conversions import path_converter as pc class PathConverterTester(unittest.TestCase): def setUp(self): # Define some default values for testing self...
33.071429
77
0.62851
796f983fedb1199a004317bd85c9cd36f1ba3c41
3,174
py
Python
tests/support/cachemachine.py
lsst-sqre/mobu
3bf84601f287c8c34eb54f842d9ef25a88178e6a
[ "MIT" ]
null
null
null
tests/support/cachemachine.py
lsst-sqre/mobu
3bf84601f287c8c34eb54f842d9ef25a88178e6a
[ "MIT" ]
26
2021-02-18T03:44:39.000Z
2022-03-21T19:34:52.000Z
tests/support/cachemachine.py
lsst-sqre/mobu
3bf84601f287c8c34eb54f842d9ef25a88178e6a
[ "MIT" ]
null
null
null
"""Mock cachemachine for tests.""" from __future__ import annotations import json from typing import TYPE_CHECKING from aioresponses import CallbackResult from mobu.config import config if TYPE_CHECKING: from typing import Any from aioresponses import aioresponses __all__ = ["MockCachemachine", "mock_cac...
32.387755
79
0.510712
796f989b42d61f2b4943b83658f1f54f903e3f12
2,649
py
Python
impy/utils/utilcls.py
hanjinliu/impy
d35b21be7739c3073ae87486673af68b1cdb2853
[ "BSD-3-Clause" ]
15
2021-07-19T13:42:26.000Z
2021-12-31T13:32:15.000Z
impy/utils/utilcls.py
hanjinliu/impy
d35b21be7739c3073ae87486673af68b1cdb2853
[ "BSD-3-Clause" ]
3
2021-04-10T11:58:57.000Z
2022-03-06T12:42:47.000Z
impy/utils/utilcls.py
hanjinliu/impy
d35b21be7739c3073ae87486673af68b1cdb2853
[ "BSD-3-Clause" ]
2
2021-07-19T13:34:07.000Z
2021-08-01T09:51:29.000Z
import time import sys from importlib import import_module import threading from .._const import Const __all__ = ["Timer", "ImportOnRequest", "Progress"] class Timer: def __init__(self): self.tic() def tic(self): self.t = time.time() @property def now(self): retur...
27.030612
70
0.529634
796f989c8cb432ea7af5ff64b52a29e7263906d8
2,689
py
Python
locations/spiders/noted/simonmed.py
bealbrown/allhours
f750ee7644246a97bd16879f14115d7845f76b89
[ "MIT" ]
null
null
null
locations/spiders/noted/simonmed.py
bealbrown/allhours
f750ee7644246a97bd16879f14115d7845f76b89
[ "MIT" ]
null
null
null
locations/spiders/noted/simonmed.py
bealbrown/allhours
f750ee7644246a97bd16879f14115d7845f76b89
[ "MIT" ]
null
null
null
import json import scrapy import re from locations.hourstudy import inputoutput class SimonMedSpider(scrapy.Spider): name = "simonmed" allowed_domains = ["www.simonmed.com"] start_urls = ( 'https://www.simonmed.com/locations/getLocations', ) def parse_times(self, hour): if re.sear...
36.337838
149
0.516549
796f9ae581e7f0b4dc39273f2fdca551980a64c3
1,583
py
Python
Chapter07/plotly_and_django/visual_plotly/views.py
allen-zqh/plotly
bcaf0930901e77db07245b63bff049eb75893416
[ "MIT" ]
null
null
null
Chapter07/plotly_and_django/visual_plotly/views.py
allen-zqh/plotly
bcaf0930901e77db07245b63bff049eb75893416
[ "MIT" ]
null
null
null
Chapter07/plotly_and_django/visual_plotly/views.py
allen-zqh/plotly
bcaf0930901e77db07245b63bff049eb75893416
[ "MIT" ]
1
2021-02-04T06:56:18.000Z
2021-02-04T06:56:18.000Z
from django.shortcuts import render import plotly as py import plotly.graph_objs as go pyplt = py.offline.plot def plotly_view(request): trace0 = go.Bar( x=['Product A', 'Product B', 'Product C'], y=[20, 14, 23], text=['27% market share', '24% market share', '19% market share'], m...
25.95082
97
0.547063
796f9af8daa531b104cc621e440566c67f2107b8
275
py
Python
filehost/models.py
Roguezilla/neverland
793a5c8e1dc7361a45b10e6521e191fa1d5b99ac
[ "MIT" ]
1
2021-01-17T16:05:06.000Z
2021-01-17T16:05:06.000Z
filehost/models.py
Roguezilla/neverland
793a5c8e1dc7361a45b10e6521e191fa1d5b99ac
[ "MIT" ]
null
null
null
filehost/models.py
Roguezilla/neverland
793a5c8e1dc7361a45b10e6521e191fa1d5b99ac
[ "MIT" ]
null
null
null
from django.db import models class File(models.Model): objects = models.Manager() uploader = models.CharField(max_length=256) filename = models.CharField(max_length=256) path = models.CharField(max_length=256) size = models.CharField(max_length=256)
30.555556
47
0.727273
796f9ce4f122e0ef297adce9fad353837f707657
5,445
py
Python
airflow_code_editor/app_builder_view.py
dolfinus/airflow-code-editor
7fbf9528e8cc9b130eef1f961269e65793e3b365
[ "Apache-2.0" ]
194
2019-08-06T13:03:11.000Z
2022-03-25T15:29:29.000Z
airflow_code_editor/app_builder_view.py
EricGao888/airflow-code-editor
ea3792c4cd17259b92cda6128960f02ff18ed5b7
[ "Apache-2.0" ]
29
2019-08-23T16:07:17.000Z
2022-03-31T03:43:47.000Z
airflow_code_editor/app_builder_view.py
EricGao888/airflow-code-editor
ea3792c4cd17259b92cda6128960f02ff18ed5b7
[ "Apache-2.0" ]
32
2019-08-15T12:13:37.000Z
2022-03-31T17:27:24.000Z
#!/usr/bin/env python # # Copyright 2019 Andrea Bonomi <andrea.bonomi@gmail.com> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 #...
31.842105
82
0.593756
796f9d9a8e56447fd1f5484aff7ed4195702adb8
1,485
py
Python
settings.py
w3Abhishek/CryptoSutra
a27125982aa2868fbee13105f8087ac065cca2bf
[ "Apache-2.0" ]
null
null
null
settings.py
w3Abhishek/CryptoSutra
a27125982aa2868fbee13105f8087ac065cca2bf
[ "Apache-2.0" ]
null
null
null
settings.py
w3Abhishek/CryptoSutra
a27125982aa2868fbee13105f8087ac065cca2bf
[ "Apache-2.0" ]
null
null
null
import json def reset(username): json_db = open("users.json", "r") users = json.load(json_db) if username in users: return {"status":409} else: users[username]['transactions'].clear() users[username]['investments'].clear() jsonUsers = json.dumps(users, indent = 4) ...
32.282609
61
0.56835
796f9dc76d555a79715a25b25aa287d2af554203
12,129
py
Python
google-datacatalog-hive-connector/tests/google/datacatalog_connectors/hive/prepare/assembled_entry_factory_test.py
ricardolsmendes/datacatalog-connectors-hive
9e71588133c0b0227e789c8d6bb26cfa031d2cfb
[ "Apache-2.0" ]
19
2020-04-27T21:55:47.000Z
2022-03-22T19:45:14.000Z
google-datacatalog-hive-connector/tests/google/datacatalog_connectors/hive/prepare/assembled_entry_factory_test.py
ricardolsmendes/datacatalog-connectors-hive
9e71588133c0b0227e789c8d6bb26cfa031d2cfb
[ "Apache-2.0" ]
12
2020-05-28T14:48:29.000Z
2022-01-15T17:52:09.000Z
google-datacatalog-hive-connector/tests/google/datacatalog_connectors/hive/prepare/assembled_entry_factory_test.py
mesmacosta/datacatalog-connectors-hive
ab7e49fbef8599dd9053c2260b261ce01f510a47
[ "Apache-2.0" ]
15
2020-05-03T17:25:51.000Z
2022-01-11T22:10:35.000Z
#!/usr/bin/python # # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
43.010638
104
0.660566
796f9de3adcbb673b4b74398d3995b217c4b280c
3,604
py
Python
audio_dspy/level_detector.py
jatinchowdhury18/AudioDSPy
96ce0e223877cb5515f14da4f6d2ce8282d81f3c
[ "MIT" ]
37
2019-11-06T07:47:40.000Z
2022-03-07T10:50:45.000Z
audio_dspy/level_detector.py
jatinchowdhury18/AudioDSPy
96ce0e223877cb5515f14da4f6d2ce8282d81f3c
[ "MIT" ]
3
2019-10-22T03:24:09.000Z
2022-01-30T00:45:21.000Z
audio_dspy/level_detector.py
jatinchowdhury18/AudioDSPy
96ce0e223877cb5515f14da4f6d2ce8282d81f3c
[ "MIT" ]
3
2020-09-09T20:18:37.000Z
2022-03-17T00:48:05.000Z
import numpy as np def _calc_coefs(tau_ms, fs): """Calculate coefficients for exponential decay Parameters ---------- tau_ms : float Time constant [ms] fs : float Sample rate [Hz] Returns ------- b0, a1 : floats Coefficients """ a1 = np.exp(-1.0 / (fs ...
22.385093
93
0.555494
796f9efcf7bac801cefd484cbd2872f34227e337
5,317
py
Python
xfields/beam_elements/electronlens_interpolated.py
kparasch/xfields
fd288588ee269bf0d18da24ef83f5f925e6c5e4f
[ "MIT" ]
null
null
null
xfields/beam_elements/electronlens_interpolated.py
kparasch/xfields
fd288588ee269bf0d18da24ef83f5f925e6c5e4f
[ "MIT" ]
null
null
null
xfields/beam_elements/electronlens_interpolated.py
kparasch/xfields
fd288588ee269bf0d18da24ef83f5f925e6c5e4f
[ "MIT" ]
null
null
null
import numpy as np import xobjects as xo import xtrack as xt from ..fieldmaps import TriLinearInterpolatedFieldMap from ..fieldmaps import TriCubicInterpolatedFieldMap from ..fieldmaps import TriCubicInterpolatedFieldMapData from ..fieldmaps import TriLinearInterpolatedFieldMapData from ..general import _pkg_root c...
39.385185
114
0.488809
796fa1c30665f84591e9749b05eb73832b293867
490
py
Python
migrations/versions/eaafd1a9588_initial_migration.py
asimonia/learn-flasky
0bb621fdee2462b1d52b9e8b63678354cf4a4e4e
[ "MIT" ]
null
null
null
migrations/versions/eaafd1a9588_initial_migration.py
asimonia/learn-flasky
0bb621fdee2462b1d52b9e8b63678354cf4a4e4e
[ "MIT" ]
null
null
null
migrations/versions/eaafd1a9588_initial_migration.py
asimonia/learn-flasky
0bb621fdee2462b1d52b9e8b63678354cf4a4e4e
[ "MIT" ]
null
null
null
"""initial migration Revision ID: eaafd1a9588 Revises: None Create Date: 2016-06-06 23:18:57.798525 """ # revision identifiers, used by Alembic. revision = 'eaafd1a9588' down_revision = None from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - please adjust! #...
18.148148
63
0.683673
796fa2262db536adf272715f63a6ffbad1ebd0b9
28,100
py
Python
fastai2/torch_core.py
KeremTurgutlu/fastai2
d78da232fe5ffca8c331497f0fc9cf84d24e097f
[ "Apache-2.0" ]
null
null
null
fastai2/torch_core.py
KeremTurgutlu/fastai2
d78da232fe5ffca8c331497f0fc9cf84d24e097f
[ "Apache-2.0" ]
null
null
null
fastai2/torch_core.py
KeremTurgutlu/fastai2
d78da232fe5ffca8c331497f0fc9cf84d24e097f
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/00_torch_core.ipynb (unless otherwise specified). __all__ = ['progress_bar', 'master_bar', 'subplots', 'show_image', 'show_titled_image', 'show_images', 'ArrayBase', 'ArrayImageBase', 'ArrayImage', 'ArrayImageBW', 'ArrayMask', 'tensor', 'set_seed', 'unsqueeze'...
34.950249
152
0.656335
796fa2692a5baedf0b8a9e13ceb90b030f20392e
1,296
py
Python
mayan/apps/tags/serializers.py
bonitobonita24/Mayan-EDMS
7845fe0e1e83c81f5d227a16116397a3d3883b85
[ "Apache-2.0" ]
343
2015-01-05T14:19:35.000Z
2018-12-10T19:07:48.000Z
mayan/apps/tags/serializers.py
bonitobonita24/Mayan-EDMS
7845fe0e1e83c81f5d227a16116397a3d3883b85
[ "Apache-2.0" ]
191
2015-01-03T00:48:19.000Z
2018-11-30T09:10:25.000Z
mayan/apps/tags/serializers.py
bonitobonita24/Mayan-EDMS
7845fe0e1e83c81f5d227a16116397a3d3883b85
[ "Apache-2.0" ]
114
2015-01-08T20:21:05.000Z
2018-12-10T19:07:53.000Z
from django.utils.translation import ugettext_lazy as _ from mayan.apps.rest_api import serializers from mayan.apps.rest_api.relations import FilteredPrimaryKeyRelatedField from .models import Tag from .permissions import permission_tag_attach, permission_tag_remove class TagSerializer(serializers.HyperlinkedModelS...
30.139535
72
0.679012
796fa4b6da9b5c0dc418fab23fd73d0953d234d9
122
py
Python
Infosys Assignments/1st test.py
DivyaMaddipudi/Infosyscc
8792cb89df36efc42bdd335c7be6079fcea95be7
[ "MIT" ]
null
null
null
Infosys Assignments/1st test.py
DivyaMaddipudi/Infosyscc
8792cb89df36efc42bdd335c7be6079fcea95be7
[ "MIT" ]
null
null
null
Infosys Assignments/1st test.py
DivyaMaddipudi/Infosyscc
8792cb89df36efc42bdd335c7be6079fcea95be7
[ "MIT" ]
null
null
null
n = input("enter n") temp = n t1 = temp + temp t2 = temp + temp + temp value = int(temp) + int(t1) + int(t2) print(value)
17.428571
37
0.598361
796fa69cca3849f5b61a094665e6f678a61dfc7a
4,169
py
Python
src/lib/detectors/ctdetSpotNet2.py
hu64/FFAVOD
e2214e7989a32def9d4602b6f72aab0982472d88
[ "MIT" ]
12
2021-10-05T16:08:33.000Z
2022-03-19T16:32:22.000Z
src/lib/detectors/ctdetSpotNet2.py
dacapo-rgb/FFAVOD
e2214e7989a32def9d4602b6f72aab0982472d88
[ "MIT" ]
3
2021-11-07T14:56:09.000Z
2021-12-12T20:52:02.000Z
src/lib/detectors/ctdetSpotNet2.py
dacapo-rgb/FFAVOD
e2214e7989a32def9d4602b6f72aab0982472d88
[ "MIT" ]
4
2021-10-05T02:50:46.000Z
2021-12-16T06:34:06.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import cv2 import numpy as np from progress.bar import Bar import time import torch try: from external.nms import soft_nms except: print('NMS not imported! If you need it,' ' do \n cd $CenterNet_RO...
38.247706
133
0.632766
796fa81eadf3f18978f44d74d2a82699dd9968f0
1,269
py
Python
apps/cursos/api/views_apiview.py
ravellys/drf-geek-university
bc4d1c847556d9c5518e30aad16b2f58fb81f437
[ "MIT" ]
null
null
null
apps/cursos/api/views_apiview.py
ravellys/drf-geek-university
bc4d1c847556d9c5518e30aad16b2f58fb81f437
[ "MIT" ]
null
null
null
apps/cursos/api/views_apiview.py
ravellys/drf-geek-university
bc4d1c847556d9c5518e30aad16b2f58fb81f437
[ "MIT" ]
null
null
null
from rest_framework import status from rest_framework.response import Response from rest_framework.views import APIView from apps.cursos.api.serializers import AvaliacaoSerializer, CursoSerializer from apps.cursos.models import Avaliacao, Curso class CursoAPIView(APIView): """ API de cursos """ def g...
32.538462
121
0.714736
796fa8ce0ff7815dbd41f18daa5dd15e5ad661e9
1,225
py
Python
zuds/json_util.py
charlotteaward/zuds-pipeline
52423859498374203d13fdc15c88bdc1260db183
[ "BSD-3-Clause" ]
7
2020-04-19T11:59:02.000Z
2020-06-03T18:44:29.000Z
zuds/json_util.py
charlotteaward/zuds-pipeline
52423859498374203d13fdc15c88bdc1260db183
[ "BSD-3-Clause" ]
2
2020-04-28T15:59:03.000Z
2020-08-13T23:18:00.000Z
zuds/json_util.py
charlotteaward/zuds-pipeline
52423859498374203d13fdc15c88bdc1260db183
[ "BSD-3-Clause" ]
3
2020-06-11T19:18:58.000Z
2021-07-16T19:23:50.000Z
from datetime import datetime import simplejson as json import sqlalchemy as sa __all__ = ['to_json'] data_types = { int: 'int', float: 'float', bool: 'bool', dict: 'dict', str: 'str', list: 'list' } class Encoder(json.JSONEncoder): """Extends json.JSONEncoder with additional capabil...
24.5
79
0.593469