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
797cd94d4660a46475aba93fa5236382e8638771
17,635
py
Python
ixnetwork_restpy/testplatform/sessions/ixnetwork/quicktest/trafficselection_6485976d478c41c1c401021ea28144ae.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
20
2019-05-07T01:59:14.000Z
2022-02-11T05:24:47.000Z
ixnetwork_restpy/testplatform/sessions/ixnetwork/quicktest/trafficselection_6485976d478c41c1c401021ea28144ae.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
60
2019-04-03T18:59:35.000Z
2022-02-22T12:05:05.000Z
ixnetwork_restpy/testplatform/sessions/ixnetwork/quicktest/trafficselection_6485976d478c41c1c401021ea28144ae.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
13
2019-05-20T10:48:31.000Z
2021-10-06T07:45:44.000Z
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify,...
45.102302
193
0.640601
797cd9b5cd14ee721832e6856bf450dcdf4bfc98
262
py
Python
Linkedin/random/google-cloud-platform-essential-training-3/5_ci_cd_tools/5a_Container Registry/app.py
mohammedelzanaty/myRoad2BeFullStack
eea3a5edb6c6a999136b04fdaea6ce0c81137a58
[ "MIT" ]
2
2021-04-21T12:05:01.000Z
2022-01-19T09:58:38.000Z
Linkedin/random/google-cloud-platform-essential-training-3/5_ci_cd_tools/5a_Container Registry/app.py
mohammedelzanaty/myRoad2BeFullStack
eea3a5edb6c6a999136b04fdaea6ce0c81137a58
[ "MIT" ]
34
2019-12-26T11:21:42.000Z
2022-02-27T19:55:10.000Z
Linkedin/random/google-cloud-platform-essential-training-3/5_ci_cd_tools/5a_Container Registry/app.py
mohammedelzanaty/myRoad2BeFullStack
eea3a5edb6c6a999136b04fdaea6ce0c81137a58
[ "MIT" ]
2
2021-08-15T07:59:36.000Z
2022-01-16T06:17:32.000Z
# The Docker image contains the following code from flask import Flask import os import socket app = Flask(__name__) @app.route("/") def hello(): html = "<h3>Hello, World!</h3>" return html if __name__ == "__main__": app.run(host='0.0.0.0', port=80)
18.714286
46
0.671756
797cda991fde7cd20f1ad8cd9dd5cf0c9b3d99b2
2,749
py
Python
tensorflow/api_template_v1.__init__.py
Ishaan28malik/tensorflow
d191523effb9f55d668abed715d9087225c8773e
[ "Apache-2.0" ]
2
2019-03-14T14:51:00.000Z
2021-06-16T05:06:22.000Z
tensorflow/api_template_v1.__init__.py
apeforest/tensorflow
07da23bfa2a9ca10cd7c1dd6bea0f85d981c013e
[ "Apache-2.0" ]
null
null
null
tensorflow/api_template_v1.__init__.py
apeforest/tensorflow
07da23bfa2a9ca10cd7c1dd6bea0f85d981c013e
[ "Apache-2.0" ]
1
2019-03-09T23:31:44.000Z
2019-03-09T23:31:44.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...
41.029851
100
0.759185
797cdbd50441b0c83b1d1cf176af6f3135d84437
1,654
py
Python
uai/api/get_uai_srv_version_list.py
FinchZHU/uai-sdk
78e06bebba2d18233ce6dcb5be619e940f7a7ef3
[ "Apache-2.0" ]
38
2017-04-26T04:00:09.000Z
2022-02-10T02:51:05.000Z
uai/api/get_uai_srv_version_list.py
FinchZHU/uai-sdk
78e06bebba2d18233ce6dcb5be619e940f7a7ef3
[ "Apache-2.0" ]
17
2017-11-20T20:47:09.000Z
2022-02-09T23:48:46.000Z
uai/api/get_uai_srv_version_list.py
FinchZHU/uai-sdk
78e06bebba2d18233ce6dcb5be619e940f7a7ef3
[ "Apache-2.0" ]
28
2017-07-08T05:23:13.000Z
2020-08-18T03:12:27.000Z
# Copyright 2017 The UAI-SDK 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...
42.410256
133
0.683797
797cdbff6f4aac76c45ac68d335d4d99b9b34bf1
2,184
py
Python
universal-realtime-noro_package/rampart/pipelines/process_sample/rules/clean.py
JessvLS/project_spring_2020
ae5387afce3faabba1d8ab579de2dd8c80f6ffa7
[ "Apache-2.0" ]
null
null
null
universal-realtime-noro_package/rampart/pipelines/process_sample/rules/clean.py
JessvLS/project_spring_2020
ae5387afce3faabba1d8ab579de2dd8c80f6ffa7
[ "Apache-2.0" ]
null
null
null
universal-realtime-noro_package/rampart/pipelines/process_sample/rules/clean.py
JessvLS/project_spring_2020
ae5387afce3faabba1d8ab579de2dd8c80f6ffa7
[ "Apache-2.0" ]
null
null
null
from Bio import SeqIO from Bio import AlignIO import sys import argparse parser = argparse.ArgumentParser(description='Clean up coding consensus.') parser.add_argument("--alignment_with_ref", action="store", type=str, dest="alignment") parser.add_argument("--output_seq", action="store", type=str, dest="output_seq") pa...
34.125
146
0.649725
797cdc8de8895b68e88b6e5ff5523fd751b654b8
78
py
Python
examples/Python/ReconstructionSystem/temp.py
KayChou/Open3D
85fbd5bfab6b27cacfd1637385437f1c8c97a396
[ "MIT" ]
null
null
null
examples/Python/ReconstructionSystem/temp.py
KayChou/Open3D
85fbd5bfab6b27cacfd1637385437f1c8c97a396
[ "MIT" ]
null
null
null
examples/Python/ReconstructionSystem/temp.py
KayChou/Open3D
85fbd5bfab6b27cacfd1637385437f1c8c97a396
[ "MIT" ]
null
null
null
dist = {} dist[1] = "string" dist[5] = "test" for i in dist: print(dist[i])
11.142857
18
0.564103
797cdd928c12af655a202995c8aa5a14fbe31016
16,131
py
Python
src/cinetpay_sdk/example.py
amaniCinetpay/SDK_api_paiement_cinetpay
0fb2bec39b2235dee4c12d53f06ff793807a4e2f
[ "MIT" ]
null
null
null
src/cinetpay_sdk/example.py
amaniCinetpay/SDK_api_paiement_cinetpay
0fb2bec39b2235dee4c12d53f06ff793807a4e2f
[ "MIT" ]
null
null
null
src/cinetpay_sdk/example.py
amaniCinetpay/SDK_api_paiement_cinetpay
0fb2bec39b2235dee4c12d53f06ff793807a4e2f
[ "MIT" ]
null
null
null
from s_d_k import Cinetpay apikey = "39955468c7a8c0cef1.68322505" #your apikey | # site_id = "124598" #your site_id example = Cinetpay(apikey,site_id) # """"""""""""""""""""""""""""""""""""""""""PAYMENT INITIATION""""""""""""""""""""""""""""""""""""""...
106.125
235
0.117724
797cdf4c59aaa298d724867ae2f0255599390826
1,722
py
Python
rest_api/setup.py
RomarQ/sawtooth-core
b900f4f3a2ffda9f6fb32a57fd4eacc41be86e5a
[ "Apache-2.0" ]
1,530
2016-05-07T16:13:52.000Z
2022-03-30T04:32:48.000Z
rest_api/setup.py
RomarQ/sawtooth-core
b900f4f3a2ffda9f6fb32a57fd4eacc41be86e5a
[ "Apache-2.0" ]
906
2016-05-11T16:45:17.000Z
2022-01-27T19:24:21.000Z
rest_api/setup.py
RomarQ/sawtooth-core
b900f4f3a2ffda9f6fb32a57fd4eacc41be86e5a
[ "Apache-2.0" ]
891
2016-05-11T16:45:32.000Z
2022-03-20T07:25:46.000Z
# Copyright 2017 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
31.888889
80
0.662602
797cdf94e2a0ec98c4864b9456ac2f7659405080
1,480
py
Python
safari2notion.py
lolipopshock/notion-safari-extension
25fe033fbe0e2e0d9fadf78c538ff7764613a1b3
[ "Apache-2.0" ]
20
2020-05-14T02:45:06.000Z
2021-08-07T09:49:33.000Z
safari2notion.py
lolipopshock/notion-safari-extension
25fe033fbe0e2e0d9fadf78c538ff7764613a1b3
[ "Apache-2.0" ]
1
2020-12-06T01:30:08.000Z
2020-12-27T18:38:21.000Z
safari2notion.py
lolipopshock/notion-safari-extension
25fe033fbe0e2e0d9fadf78c538ff7764613a1b3
[ "Apache-2.0" ]
1
2020-05-16T14:40:51.000Z
2020-05-16T14:40:51.000Z
import sys, os import argparse from notion.client import NotionClient from notion.block import * from notion.collection import NotionDate from lib.processor import * from lib.utils import * parser = argparse.ArgumentParser() parser.add_argument('--page_selection', type=str, default='default', help='desc') parser.ad...
30.833333
81
0.701351
797cdfc96926766130fff4ccfb1e8a6f8a08c8ee
8,459
py
Python
phy/apps/template/gui.py
PaulMAnderson/phy
134264e6c1ec586f797459633fa4e71352fafb4e
[ "BSD-3-Clause" ]
118
2019-06-03T06:19:43.000Z
2022-03-25T00:05:26.000Z
phy/apps/template/gui.py
PaulMAnderson/phy
134264e6c1ec586f797459633fa4e71352fafb4e
[ "BSD-3-Clause" ]
761
2015-01-08T11:17:41.000Z
2019-05-27T16:12:08.000Z
phy/apps/template/gui.py
PaulMAnderson/phy
134264e6c1ec586f797459633fa4e71352fafb4e
[ "BSD-3-Clause" ]
70
2019-05-30T11:05:26.000Z
2022-03-30T11:51:23.000Z
# -*- coding: utf-8 -*- """Template GUI.""" #------------------------------------------------------------------------------ # Imports #------------------------------------------------------------------------------ import logging from operator import itemgetter from pathlib import Path import numpy as np from phyl...
36.778261
97
0.606809
797ce02a97f2d6e615c581c32e94616e54fee66d
1,826
py
Python
discogs_client/tests/test_fetchers.py
VinylVault/discogs_client
c31cf003b903ccf1446a67f7e60efe8bb58f8bc2
[ "BSD-2-Clause-FreeBSD" ]
110
2020-06-08T19:50:40.000Z
2022-03-17T19:40:12.000Z
discogs_client/tests/test_fetchers.py
VinylVault/discogs_client
c31cf003b903ccf1446a67f7e60efe8bb58f8bc2
[ "BSD-2-Clause-FreeBSD" ]
41
2020-06-09T07:52:38.000Z
2022-03-31T21:51:12.000Z
discogs_client/tests/test_fetchers.py
VinylVault/discogs_client
c31cf003b903ccf1446a67f7e60efe8bb58f8bc2
[ "BSD-2-Clause-FreeBSD" ]
34
2020-06-08T20:06:23.000Z
2022-03-30T04:31:47.000Z
from discogs_client.fetchers import OAuth2Fetcher import unittest from discogs_client.tests import DiscogsClientTestCase from discogs_client.exceptions import HTTPError class FetcherTestCase(DiscogsClientTestCase): def test_memory_fetcher(self): """Client can fetch responses with MemoryFetcher""" ...
34.45283
72
0.710296
797ce0da73acefb3d0fbfd9a4833c1fab11174cc
3,180
py
Python
SumTree.py
danthe42/drlnd_p1
2c04835b487d5cea232aa452fbc8ee25dad2caeb
[ "MIT" ]
null
null
null
SumTree.py
danthe42/drlnd_p1
2c04835b487d5cea232aa452fbc8ee25dad2caeb
[ "MIT" ]
null
null
null
SumTree.py
danthe42/drlnd_p1
2c04835b487d5cea232aa452fbc8ee25dad2caeb
[ "MIT" ]
null
null
null
# # # Binary Tree implementation for Prioritized replay buffers, based on the code: # https://github.com/MorvanZhou/Reinforcement-learning-with-tensorflow/blob/master/contents/5.2_Prioritized_Replay_DQN/RL_brain.py # # import numpy as np class SumTree(object): """ This SumTree code is a modified version and ...
39.75
166
0.568553
797ce118370cc947de62a2c5ba912519ba8cd3c3
191
py
Python
Django-rest-framework/venv/bin/django-admin.py
Shanahan72/Django
a2d60cc99ee443ad257ed7a45549256a57a5c4fa
[ "MIT" ]
null
null
null
Django-rest-framework/venv/bin/django-admin.py
Shanahan72/Django
a2d60cc99ee443ad257ed7a45549256a57a5c4fa
[ "MIT" ]
null
null
null
Django-rest-framework/venv/bin/django-admin.py
Shanahan72/Django
a2d60cc99ee443ad257ed7a45549256a57a5c4fa
[ "MIT" ]
null
null
null
#!/Users/jts/Documents/Development/Git/Django/Django-rest-framework/venv/bin/python3 from django.core import management if __name__ == "__main__": management.execute_from_command_line()
31.833333
84
0.801047
797ce20c4d77ffc27319fc2904b4ed633f47cacb
52,649
py
Python
Bio/pairwise2.py
uci-ics-32/biopython
ff7d3703d442192a1f6d84c52e028d566d44ff1c
[ "BSD-3-Clause" ]
5
2015-06-14T17:01:57.000Z
2020-10-05T03:27:56.000Z
Bio/pairwise2.py
uci-ics-32/biopython
ff7d3703d442192a1f6d84c52e028d566d44ff1c
[ "BSD-3-Clause" ]
1
2020-07-21T03:13:37.000Z
2020-07-23T02:46:25.000Z
Bio/pairwise2.py
uci-ics-32/biopython
ff7d3703d442192a1f6d84c52e028d566d44ff1c
[ "BSD-3-Clause" ]
8
2016-02-20T22:53:21.000Z
2022-02-04T06:10:23.000Z
# Copyright 2002 by Jeffrey Chang. # Copyright 2016, 2019, 2020 by Markus Piotrowski. # All rights reserved. # # This file is part of the Biopython distribution and governed by your # choice of the "Biopython License Agreement" or the "BSD 3-Clause License". # Please see the LICENSE file that should have been included ...
36.766061
88
0.579384
797ce2229618ed30a3b50199905ad9d2cd48f7b3
2,450
py
Python
utils/set_distance.py
shikiw/shape-invariant-adversarial-point-clouds
9c0879b20fef2bf356898575da7b313d6d0538c6
[ "MIT" ]
8
2022-03-09T12:30:33.000Z
2022-03-24T19:23:13.000Z
utils/set_distance.py
shikiw/shape-invariant-adversarial-point-clouds
9c0879b20fef2bf356898575da7b313d6d0538c6
[ "MIT" ]
null
null
null
utils/set_distance.py
shikiw/shape-invariant-adversarial-point-clouds
9c0879b20fef2bf356898575da7b313d6d0538c6
[ "MIT" ]
null
null
null
"""Adopted from https://github.com/XuyangBai/FoldingNet/blob/master/loss.py""" import torch import torch.nn as nn class _Distance(nn.Module): def __init__(self): super(_Distance, self).__init__() self.use_cuda = torch.cuda.is_available() def forward(self, preds, gts): pass def b...
31.012658
79
0.555918
797ce252f73f18170b488b02b88aa00936697799
26,728
py
Python
gdsfactory/autoplacer/yaml_placer.py
jorgepadilla19/gdsfactory
68e1c18257a75d4418279851baea417c8899a165
[ "MIT" ]
42
2020-05-25T09:33:45.000Z
2022-03-29T03:41:19.000Z
gdsfactory/autoplacer/yaml_placer.py
jorgepadilla19/gdsfactory
68e1c18257a75d4418279851baea417c8899a165
[ "MIT" ]
133
2020-05-28T18:29:04.000Z
2022-03-31T22:21:42.000Z
gdsfactory/autoplacer/yaml_placer.py
jorgepadilla19/gdsfactory
68e1c18257a75d4418279851baea417c8899a165
[ "MIT" ]
17
2020-06-30T07:07:50.000Z
2022-03-17T15:45:27.000Z
""" You can define both DOEs and placer information in a YAML file All the placer information need to be nested inside a placer section ```yaml iso_lines_coarse1: component: ISO_COARS_OPT1 settings: dx: [50.] placer: type: pack_row/ pack_col/ grid / fixed_coords pack_grid: x0: 0 y0: 0 ...
31.630769
88
0.583059
797ce2c5ce5a88e59808462d83484757f5ecfaa6
149
py
Python
src/version.py
atr000/Limnoria
1f60a9487ca4114f040135fb14cabc155a041918
[ "BSD-3-Clause" ]
null
null
null
src/version.py
atr000/Limnoria
1f60a9487ca4114f040135fb14cabc155a041918
[ "BSD-3-Clause" ]
null
null
null
src/version.py
atr000/Limnoria
1f60a9487ca4114f040135fb14cabc155a041918
[ "BSD-3-Clause" ]
1
2021-01-23T21:20:57.000Z
2021-01-23T21:20:57.000Z
"""stick the various versioning attributes in here, so we only have to change them once.""" version = '0.83.4.1+limnoria (2012-05-04T16:56:13+0000)'
37.25
77
0.724832
797ce33e5bbec10dab919b7deb1c152186d03d1d
12,361
py
Python
src/oci/data_labeling_service/models/create_dataset_details.py
ezequielramos/oci-python-sdk
cc4235cf217beaf9feed75760e9ce82610222762
[ "Apache-2.0", "BSD-3-Clause" ]
249
2017-09-11T22:06:05.000Z
2022-03-04T17:09:29.000Z
src/oci/data_labeling_service/models/create_dataset_details.py
ezequielramos/oci-python-sdk
cc4235cf217beaf9feed75760e9ce82610222762
[ "Apache-2.0", "BSD-3-Clause" ]
228
2017-09-11T23:07:26.000Z
2022-03-23T10:58:50.000Z
src/oci/data_labeling_service/models/create_dataset_details.py
ezequielramos/oci-python-sdk
cc4235cf217beaf9feed75760e9ce82610222762
[ "Apache-2.0", "BSD-3-Clause" ]
224
2017-09-27T07:32:43.000Z
2022-03-25T16:55:42.000Z
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
36.571006
245
0.684168
797ce375a39bb403b310f9ed192b4a26d8c2b9b6
5,531
py
Python
src/core/src/tortuga/wsapi/adminWsApi.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
33
2018-03-02T17:07:39.000Z
2021-05-21T18:02:51.000Z
src/core/src/tortuga/wsapi/adminWsApi.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
201
2018-03-05T14:28:24.000Z
2020-11-23T19:58:27.000Z
src/core/src/tortuga/wsapi/adminWsApi.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
23
2018-03-02T17:21:59.000Z
2020-11-18T14:52:38.000Z
# Copyright 2008-2018 Univa Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
25.725581
78
0.56554
797ce38ddd27d38c429fde56ed4f407c05a03bef
5,572
py
Python
Lib/pagebot/contributions/filibuster/content/quotations.py
bghryct/PageBot
394150c0fd399f02faec28f4576046882f4d7d39
[ "MIT" ]
68
2018-10-22T22:42:58.000Z
2022-03-19T11:07:31.000Z
Lib/pagebot/contributions/filibuster/content/quotations.py
TypeNetwork/PageBot
394150c0fd399f02faec28f4576046882f4d7d39
[ "MIT" ]
97
2017-07-10T23:49:30.000Z
2018-10-03T08:17:55.000Z
Lib/pagebot/contributions/filibuster/content/quotations.py
TypeNetwork/PageBot
394150c0fd399f02faec28f4576046882f4d7d39
[ "MIT" ]
9
2017-07-11T09:59:00.000Z
2018-09-12T11:59:30.000Z
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- """ Quotations. """ __version__ = '4.0' # More real quotations here: http://www.quotegarden.com # But actuall we should make/extend a fake quotations machine. content = { 'quotation': ['<#quotation_cinema#>', '<#quotation_literature#>'], 'quotation_cine...
89.870968
315
0.708543
797ce392743ba8c21a2e6621623ad64f04efd4eb
4,555
py
Python
io_scene_xray/xray_ltx.py
ed8rez/blender-xray
543ae9c40dc706216552d92b7f7b7c9d8da9dbf3
[ "BSD-2-Clause" ]
1
2021-02-14T11:52:25.000Z
2021-02-14T11:52:25.000Z
io_scene_xray/xray_ltx.py
ed8rez/blender-xray
543ae9c40dc706216552d92b7f7b7c9d8da9dbf3
[ "BSD-2-Clause" ]
null
null
null
io_scene_xray/xray_ltx.py
ed8rez/blender-xray
543ae9c40dc706216552d92b7f7b7c9d8da9dbf3
[ "BSD-2-Clause" ]
null
null
null
import os class StalkerLtxParser: WHITESPACE = {' ', '\t'} COMMENT = {';', '/'} class LtxSection: def __init__(self, name, parent): self.name = name self.parent = parent self.params = {} def __init__(self, path, data=None): if not data: ...
41.036036
118
0.453568
797ce5a67ba992397a045bf17c5c1ae3cb4174a6
5,146
py
Python
tests/test_gan.py
universuen/RVGAN-TL
d370673063a3dfd9cc4a20bfd1c18bc95aadabca
[ "MIT" ]
null
null
null
tests/test_gan.py
universuen/RVGAN-TL
d370673063a3dfd9cc4a20bfd1c18bc95aadabca
[ "MIT" ]
null
null
null
tests/test_gan.py
universuen/RVGAN-TL
d370673063a3dfd9cc4a20bfd1c18bc95aadabca
[ "MIT" ]
null
null
null
import context import random import torch import numpy as np import seaborn as sns import matplotlib.pyplot as plt from sklearn.manifold import TSNE import src TARGET_GAN = src.gans.RGAN if __name__ == '__main__': result = dict() src.utils.set_random_state() datasets = random.choices( populatio...
30.449704
104
0.474738
797ce5d1fed18d752e9b8368035d5b3c856ebce0
1,363
py
Python
application/utils/template.py
luke0922/mdpress
9ad485993c216cf36b798ec42d50e6116429d853
[ "Apache-2.0" ]
1
2016-08-10T06:42:51.000Z
2016-08-10T06:42:51.000Z
application/utils/template.py
luke0922/mdpress
9ad485993c216cf36b798ec42d50e6116429d853
[ "Apache-2.0" ]
2
2016-08-01T03:48:06.000Z
2016-08-27T02:59:21.000Z
application/utils/template.py
luke0922/mdpress
9ad485993c216cf36b798ec42d50e6116429d853
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 import mistune from pygments import highlight from pygments.lexers import get_lexer_by_name from pygments.formatters import html from flask import current_app, render_template from application.models.system import site from application.services.system import has base_env = { ...
25.716981
71
0.646368
797ce817c0c2f83643e387c481b6dfe6cdd90002
9,339
py
Python
legacy_code/tf_cnn_siamese/train.py
PerryXDeng/project_punyslayer
79529b020ca56a5473dbb85ac7155bc03dc5023a
[ "MIT" ]
2
2019-10-25T04:57:03.000Z
2020-06-16T00:34:18.000Z
legacy_code/tf_cnn_siamese/train.py
PerryXDeng/project_punyslayer
79529b020ca56a5473dbb85ac7155bc03dc5023a
[ "MIT" ]
null
null
null
legacy_code/tf_cnn_siamese/train.py
PerryXDeng/project_punyslayer
79529b020ca56a5473dbb85ac7155bc03dc5023a
[ "MIT" ]
1
2020-06-25T14:54:24.000Z
2020-06-25T14:54:24.000Z
from legacy_code.tf_cnn_siamese.model import * import legacy_code.tf_cnn_siamese.data_preparation as dp import datetime import time import sys import os def run_training_session(tset1, tset2, ty, vset1, vset2, vy, epochs, conv_weights, conv_biases, fc_weights, fc_biases, ...
44.471429
87
0.659171
797ce8237a9e38db2356e63340b9a68e68c60720
6,684
py
Python
utils.py
leechuck/julia-stuff
1470edaa84fd38e65a06636635a1b22344882fce
[ "BSD-2-Clause" ]
11
2019-05-02T14:52:00.000Z
2022-03-03T22:41:04.000Z
utils.py
leechuck/julia-stuff
1470edaa84fd38e65a06636635a1b22344882fce
[ "BSD-2-Clause" ]
9
2019-10-16T02:59:57.000Z
2022-02-09T23:29:46.000Z
utils.py
leechuck/julia-stuff
1470edaa84fd38e65a06636635a1b22344882fce
[ "BSD-2-Clause" ]
2
2021-09-05T20:11:43.000Z
2021-12-02T15:02:41.000Z
from collections import deque import warnings import pandas as pd import numpy as np from xml.etree import ElementTree as ET BIOLOGICAL_PROCESS = 'GO:0008150' MOLECULAR_FUNCTION = 'GO:0003674' CELLULAR_COMPONENT = 'GO:0005575' FUNC_DICT = { 'cc': CELLULAR_COMPONENT, 'mf': MOLECULAR_FUNCTION, 'bp': BIOLOGIC...
31.528302
79
0.474267
797ce8a810088319bc11eac209250ea69e7ac4b3
2,824
py
Python
conf.py
ntnxandy/tb-munich
67f1dc91459eeac4d0ee094543d68186c8cdf8e1
[ "MIT" ]
null
null
null
conf.py
ntnxandy/tb-munich
67f1dc91459eeac4d0ee094543d68186c8cdf8e1
[ "MIT" ]
null
null
null
conf.py
ntnxandy/tb-munich
67f1dc91459eeac4d0ee094543d68186c8cdf8e1
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup -------------------------------------------------------------- # If extensions (or module...
33.619048
79
0.699363
797ce94da816133a10e4211a2d91a1b772813073
1,305
py
Python
humblebee/__init__.py
steinitzu/humblebee
7c6e9434669640b38953bacf9fd167ce82a3cbba
[ "MIT" ]
9
2019-10-25T19:05:19.000Z
2021-11-27T08:36:00.000Z
humblebee/__init__.py
steinitzu/humblebee
7c6e9434669640b38953bacf9fd167ce82a3cbba
[ "MIT" ]
null
null
null
humblebee/__init__.py
steinitzu/humblebee
7c6e9434669640b38953bacf9fd167ce82a3cbba
[ "MIT" ]
34
2017-10-22T21:50:24.000Z
2022-03-28T01:34:30.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import os, sys, logging, traceback from random import randint from . import cfg from .util import get_prog_home_dir __pkgname__ = 'humblebee' _globconffile = os.path.join(os.path.dirname(__file__), 'default.cfg') appconfig = cfg.ThreeTierConfigParser( __pkgname__,...
24.622642
75
0.65364
797ceae5e81aa12b9c7c64b8352aa0b1fbe481dd
19,681
py
Python
innexia/innexiaBot/modules/anime.py
MikeOwino/curly-garbanzo
37027800724cb80c4035eac421421a7ceb1062a6
[ "MIT" ]
null
null
null
innexia/innexiaBot/modules/anime.py
MikeOwino/curly-garbanzo
37027800724cb80c4035eac421421a7ceb1062a6
[ "MIT" ]
null
null
null
innexia/innexiaBot/modules/anime.py
MikeOwino/curly-garbanzo
37027800724cb80c4035eac421421a7ceb1062a6
[ "MIT" ]
null
null
null
import datetime import html import textwrap import bs4 import jikanpy import requests from innexiaBot import DEV_USERS, OWNER_ID, DRAGONS, dispatcher from innexiaBot.modules.disable import DisableAbleCommandHandler from telegram import (InlineKeyboardButton, InlineKeyboardMarkup, ParseMode, Updat...
32.911371
267
0.57116
797ceb20efd6b1e3006a38a30dadbd4d72392007
6,645
py
Python
medmanager/inventario/doctype/movimiento_inventario/movimiento_inventario.py
dprodigy75/med_manager
9e68dd3b879e27da03c977fda58c4480ee9ef4c0
[ "MIT" ]
null
null
null
medmanager/inventario/doctype/movimiento_inventario/movimiento_inventario.py
dprodigy75/med_manager
9e68dd3b879e27da03c977fda58c4480ee9ef4c0
[ "MIT" ]
null
null
null
medmanager/inventario/doctype/movimiento_inventario/movimiento_inventario.py
dprodigy75/med_manager
9e68dd3b879e27da03c977fda58c4480ee9ef4c0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2020, Brandmand and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class MovimientoInventario(Document): def validate(self): if self.almacen_origen and self.almac...
35.918919
172
0.708954
797ced1ec36ea2cc07d860f424f7a39a83b07e3f
16,104
py
Python
tools/train.py
gavinatthu/YOLOP
97db090da990c28dbc166bf51877e7707e5c0747
[ "MIT" ]
null
null
null
tools/train.py
gavinatthu/YOLOP
97db090da990c28dbc166bf51877e7707e5c0747
[ "MIT" ]
null
null
null
tools/train.py
gavinatthu/YOLOP
97db090da990c28dbc166bf51877e7707e5c0747
[ "MIT" ]
null
null
null
import argparse import os, sys import math BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.append(BASE_DIR) import pprint import time import torch import torch.nn.parallel from torch.nn.parallel import DistributedDataParallel as DDP from torch.cuda import amp import torch.distributed as...
40.76962
151
0.599913
797cedeb58b09a5faf075b794ada7b46a265b753
1,221
py
Python
allennlp/modules/token_embedders/__init__.py
yanaiela/allennlp
23efadd9a394d9d69e10e8539a7332665b118df0
[ "Apache-2.0" ]
6
2019-05-27T03:24:30.000Z
2021-01-23T14:32:45.000Z
allennlp/modules/token_embedders/__init__.py
yanaiela/allennlp
23efadd9a394d9d69e10e8539a7332665b118df0
[ "Apache-2.0" ]
1
2021-01-21T12:10:10.000Z
2021-01-21T12:10:10.000Z
allennlp/modules/token_embedders/__init__.py
yanaiela/allennlp
23efadd9a394d9d69e10e8539a7332665b118df0
[ "Apache-2.0" ]
3
2019-09-05T05:55:14.000Z
2021-06-20T05:12:06.000Z
""" A :class:`~allennlp.modules.token_embedders.token_embedder.TokenEmbedder` is a ``Module`` that embeds one-hot-encoded tokens as vectors. """ from allennlp.modules.token_embedders.token_embedder import TokenEmbedder from allennlp.modules.token_embedders.embedding import Embedding from allennlp.modules.token_embedde...
64.263158
107
0.889435
797cee137e6227160ae59a27445c2289d97d21c7
5,686
py
Python
audio_processing.py
lealex262/DeepSpeaker-pytorch
99724865fe5658115698f2f36ea6db984829d7af
[ "MIT" ]
null
null
null
audio_processing.py
lealex262/DeepSpeaker-pytorch
99724865fe5658115698f2f36ea6db984829d7af
[ "MIT" ]
null
null
null
audio_processing.py
lealex262/DeepSpeaker-pytorch
99724865fe5658115698f2f36ea6db984829d7af
[ "MIT" ]
null
null
null
import numpy as np from python_speech_features import fbank, delta import torch try: from . import constants as c except ValueError: import constants as c import librosa from librosa.feature import melspectrogram from librosa.core import ifgram import os import random def mk_MFB(filename, samp...
30.084656
146
0.612557
797cee47c4e64784fc90a9d999ec193aeff011a6
684
py
Python
app/services/dropbox.py
24mu13/concierge
98a751e9469786f03a44cdd3cef752107d054603
[ "MIT" ]
null
null
null
app/services/dropbox.py
24mu13/concierge
98a751e9469786f03a44cdd3cef752107d054603
[ "MIT" ]
null
null
null
app/services/dropbox.py
24mu13/concierge
98a751e9469786f03a44cdd3cef752107d054603
[ "MIT" ]
null
null
null
""" https://www.dropbox.com/developers/documentation/python https://dropbox-sdk-python.readthedocs.io/en/latest/ """ import dropbox class DropboxService(object): def __init__(self, root_folder, access_token): self.root_folder = root_folder self.client = dropbox.Dropbox(access_token) def exis...
31.090909
100
0.687135
797ceea2d280ac17daf94ba7f4578709ded8302d
4,935
py
Python
lib/tests/unit/streaming/test_buffered_stream.py
Owen-Gillespie/HuntMaster
fcbf7b939122a943c706bfcbb38368b028802449
[ "MIT" ]
35
2016-09-22T22:53:14.000Z
2020-02-13T15:12:21.000Z
sdks/python/.tox/py27gcp/lib/python2.7/site-packages/unit_tests/streaming/test_buffered_stream.py
axbaretto/presto
f137d2709db42b5c3e4d43a631832a8f74853065
[ "Apache-2.0" ]
28
2020-03-04T22:01:48.000Z
2022-03-12T00:59:47.000Z
sdks/python/.tox/py27gcp/lib/python2.7/site-packages/unit_tests/streaming/test_buffered_stream.py
axbaretto/presto
f137d2709db42b5c3e4d43a631832a8f74853065
[ "Apache-2.0" ]
88
2016-11-27T02:16:11.000Z
2020-02-28T05:10:26.000Z
# Copyright 2016 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
34.753521
74
0.671327
797cefe0bd111149105787721c1f6935fd16967d
2,809
py
Python
tests/test_pygit2_diff.py
mubashshirjamal/code
d9c7adf7efed8e9c1ab3ff8cdeb94e7eb1a45382
[ "BSD-3-Clause" ]
1,582
2015-01-05T02:41:44.000Z
2022-03-30T20:03:22.000Z
tests/test_pygit2_diff.py
mubashshirjamal/code
d9c7adf7efed8e9c1ab3ff8cdeb94e7eb1a45382
[ "BSD-3-Clause" ]
66
2015-01-23T07:58:04.000Z
2021-11-12T02:23:27.000Z
tests/test_pygit2_diff.py
mubashshirjamal/code
d9c7adf7efed8e9c1ab3ff8cdeb94e7eb1a45382
[ "BSD-3-Clause" ]
347
2015-01-05T07:47:07.000Z
2021-09-20T21:22:32.000Z
# -*- coding: utf-8 -*- from vilya.libs import gyt import shutil import tempfile from os.path import join as opj from tests.base import TestCase TEST_REPO = '/tmp/test_gyt/repo/.git' ENV_FOR_GIT = { 'GIT_AUTHOR_NAME': 'default_test', 'GIT_AUTHOR_EMAIL': 'default_test@douban.com', 'GIT_COMMITTER_NAME': 'd...
32.287356
73
0.54183
797cf115ee4c73bf42c7237b6d080ceab0c43950
1,871
py
Python
src/ensae_teaching_cs/data/data_helper.py
Jerome-maker/ensae_teaching_cs
43ea044361ee60c00c85aea354a7b25c21c0fd07
[ "MIT" ]
null
null
null
src/ensae_teaching_cs/data/data_helper.py
Jerome-maker/ensae_teaching_cs
43ea044361ee60c00c85aea354a7b25c21c0fd07
[ "MIT" ]
null
null
null
src/ensae_teaching_cs/data/data_helper.py
Jerome-maker/ensae_teaching_cs
43ea044361ee60c00c85aea354a7b25c21c0fd07
[ "MIT" ]
null
null
null
""" @file @brief Helpers to get data including in the module itself. """ import os from pyquickhelper.filehelper import unzip_files def any_local_file(name, subfolder, local=True, cache_folder=".", filename=True, unzip=False, encoding=None): """ Returns a local data file, reads its content ...
37.42
87
0.560128
797cf1c3569b6cb9b412c303797017d649766d7d
4,066
py
Python
kinow_client/models/prepayment_balance.py
kinow-io/kaemo-python-sdk
610fce09e3a9e631babf09195b0492959d9e4d56
[ "Apache-2.0" ]
1
2017-05-03T12:48:22.000Z
2017-05-03T12:48:22.000Z
kinow_client/models/prepayment_balance.py
kinow-io/kaemo-python-sdk
610fce09e3a9e631babf09195b0492959d9e4d56
[ "Apache-2.0" ]
null
null
null
kinow_client/models/prepayment_balance.py
kinow-io/kaemo-python-sdk
610fce09e3a9e631babf09195b0492959d9e4d56
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Server API Reference for Server API (REST/Json) OpenAPI spec version: 2.0.9 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class PrepaymentBalance(object): """ NOTE: This class is...
25.254658
80
0.545991
797cf2c4ccdb06b4ddc9cc158442e5b5f67e5219
4,716
py
Python
tests/functional/test_pkgutil.py
hawkhai/pyinstaller
016a24479b34de161792c72dde455a81ad4c78ae
[ "Apache-2.0" ]
1
2022-03-16T17:51:47.000Z
2022-03-16T17:51:47.000Z
tests/functional/test_pkgutil.py
hawkhai/pyinstaller
016a24479b34de161792c72dde455a81ad4c78ae
[ "Apache-2.0" ]
null
null
null
tests/functional/test_pkgutil.py
hawkhai/pyinstaller
016a24479b34de161792c72dde455a81ad4c78ae
[ "Apache-2.0" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2021, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License (version 2 # or later) with exception for distributing the bootloader. # # The full license is in the file COPYING.txt, dis...
44.914286
120
0.689992
797cf2e5739aaea0843f8b92c5003874c099141e
219
py
Python
washmis_erp/washmis_erp/doctype/disconnection_mode/test_disconnection_mode.py
Kipngetich33/Test-Erp
f796d8bbd687bcfaf590b94b6a528bb3b9d3b8dd
[ "MIT" ]
null
null
null
washmis_erp/washmis_erp/doctype/disconnection_mode/test_disconnection_mode.py
Kipngetich33/Test-Erp
f796d8bbd687bcfaf590b94b6a528bb3b9d3b8dd
[ "MIT" ]
null
null
null
washmis_erp/washmis_erp/doctype/disconnection_mode/test_disconnection_mode.py
Kipngetich33/Test-Erp
f796d8bbd687bcfaf590b94b6a528bb3b9d3b8dd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2018, Paul Karugu and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest class TestDisconnectionMode(unittest.TestCase): pass
19.909091
50
0.776256
797cf309f2598fb92e851809acef707a2bb7af75
685
py
Python
akanda/rug/test/unit/__init__.py
fzylogic/akanda-rug
5982e75e9cd91b63e8f3096fdf4aa45f5fe353d4
[ "Apache-2.0" ]
null
null
null
akanda/rug/test/unit/__init__.py
fzylogic/akanda-rug
5982e75e9cd91b63e8f3096fdf4aa45f5fe353d4
[ "Apache-2.0" ]
null
null
null
akanda/rug/test/unit/__init__.py
fzylogic/akanda-rug
5982e75e9cd91b63e8f3096fdf4aa45f5fe353d4
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 DreamHost, LLC # # Author: DreamHost, 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 applicabl...
32.619048
75
0.767883
797cf36d6bc155b23be351fb849c36a6f2b00698
4,230
py
Python
transportation-data-publishing/config/kits/config.py
cityofaustin/transportation-logs
5e5e899444c4bc36cfe197f36ade29b14828c29c
[ "CC0-1.0" ]
6
2017-09-14T04:51:10.000Z
2019-02-09T08:12:52.000Z
transportation-data-publishing/config/kits/config.py
cityofaustin/transportation-data-publishing
5e5e899444c4bc36cfe197f36ade29b14828c29c
[ "CC0-1.0" ]
49
2016-09-08T19:07:45.000Z
2018-12-21T20:52:12.000Z
transportation-data-publishing/config/kits/config.py
cityofaustin/transportation-logs
5e5e899444c4bc36cfe197f36ade29b14828c29c
[ "CC0-1.0" ]
4
2017-02-23T23:27:19.000Z
2019-01-09T21:31:24.000Z
# Copy CCTV records from Data Tracker to KITS traffic management system. # Attributes: # app_name (str): Description # fieldmap (TYPE): Description # filters (TYPE): Description # kits_creds (TYPE): Description # kits_table_camera (str): Description # kits_table_geom (str): Description # ki...
30.652174
99
0.492908
797cf3ad0743d86f16f3b805e12c4f364773037f
4,970
pyw
Python
Calculator/PyCal.pyw
S1ddharth-Sharma/python-gui-projects
4a9b6305fd5b336846399713c2e90d2bc1d7a163
[ "MIT" ]
null
null
null
Calculator/PyCal.pyw
S1ddharth-Sharma/python-gui-projects
4a9b6305fd5b336846399713c2e90d2bc1d7a163
[ "MIT" ]
null
null
null
Calculator/PyCal.pyw
S1ddharth-Sharma/python-gui-projects
4a9b6305fd5b336846399713c2e90d2bc1d7a163
[ "MIT" ]
null
null
null
""" Author : Siddharth Sharma Date : 11/12/2020 """ import sys from functools import partial # Import QApplication and the required widgets from PyQt5.QtWidgets from PyQt5.QtCore import Qt from PyQt5.QtWidgets import QApplication from PyQt5.QtWidgets import QGridLayout from PyQt5.QtWidgets import QLineEdit from PyQt5...
29.760479
76
0.602414
797cf49a15be94b029af9434d071061f9deeb460
6,063
py
Python
client/commands/v2/remote_logging.py
NeatNerdPrime/pyre-check
a098da2900831b69cca6dd9e2bbadea4ea10b5b7
[ "MIT" ]
1
2021-05-17T23:13:52.000Z
2021-05-17T23:13:52.000Z
client/commands/v2/remote_logging.py
NeatNerdPrime/pyre-check
a098da2900831b69cca6dd9e2bbadea4ea10b5b7
[ "MIT" ]
2
2021-08-21T07:50:23.000Z
2022-02-27T21:33:33.000Z
client/commands/v2/remote_logging.py
NeatNerdPrime/pyre-check
a098da2900831b69cca6dd9e2bbadea4ea10b5b7
[ "MIT" ]
1
2021-05-13T13:30:24.000Z
2021-05-13T13:30:24.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import dataclasses import os import sys import time from typing import Callable, Dict, Optional from pyre_extensions import ParameterSpecific...
40.152318
133
0.653142
797cf50cbf871d617d010976c8c45bde54398d79
661
py
Python
contrib/errorprone/tests/python/pants_test/contrib/errorprone/tasks/test_errorprone.py
AllClearID/pants
c4fdf00a3bdf9f26f876e85c46909d0729f7132c
[ "Apache-2.0" ]
1
2021-11-11T14:04:24.000Z
2021-11-11T14:04:24.000Z
contrib/errorprone/tests/python/pants_test/contrib/errorprone/tasks/test_errorprone.py
AllClearID/pants
c4fdf00a3bdf9f26f876e85c46909d0729f7132c
[ "Apache-2.0" ]
2
2016-10-13T21:37:42.000Z
2018-07-20T20:14:33.000Z
contrib/errorprone/tests/python/pants_test/contrib/errorprone/tasks/test_errorprone.py
AllClearID/pants
c4fdf00a3bdf9f26f876e85c46909d0729f7132c
[ "Apache-2.0" ]
1
2021-11-11T14:04:12.000Z
2021-11-11T14:04:12.000Z
# coding=utf-8 # Copyright 2017 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) from pants_test.jvm....
31.47619
93
0.770045
797cf6bb182a260ce6cd386074f66a8f37c5667d
86
py
Python
code-basic/fullname.py
shilpasayura/bk
2b0a1aa9300da80e201264bcf80226b3c5ff4ad6
[ "MIT" ]
4
2018-09-08T10:30:27.000Z
2021-07-23T07:59:24.000Z
code-basic/fullname.py
shilpasayura/bk
2b0a1aa9300da80e201264bcf80226b3c5ff4ad6
[ "MIT" ]
null
null
null
code-basic/fullname.py
shilpasayura/bk
2b0a1aa9300da80e201264bcf80226b3c5ff4ad6
[ "MIT" ]
6
2018-09-07T05:54:17.000Z
2021-07-23T07:59:25.000Z
firstname= input() lastname= input() fullname = firstname + lastname print (fullname)
17.2
31
0.755814
797cf6eb90e5dca55ee8e3e60b8aaace75d2f63c
1,131
py
Python
jesse/indicators/dti.py
julesGoullee/jesse
49a1ac46715682e8a30df133ce055bf2dfdedb7d
[ "MIT" ]
1
2020-12-31T07:30:57.000Z
2020-12-31T07:30:57.000Z
jesse/indicators/dti.py
ArdeshirV/jesse
2ff415f6768f9ef7cca3e86d8f2f87988d3e7129
[ "MIT" ]
null
null
null
jesse/indicators/dti.py
ArdeshirV/jesse
2ff415f6768f9ef7cca3e86d8f2f87988d3e7129
[ "MIT" ]
null
null
null
from typing import Union import numpy as np import talib import jesse.helpers as jh def dti(candles: np.ndarray, r=14, s=10, u=5, sequential=False) -> Union[float, np.ndarray]: """ DTI by William Blau :param candles: np.ndarray :param r: int - default=14 :param s: int - default=10 :param u:...
24.06383
92
0.605659
797cf6f28742fe2b5e3d6c8fb4562db67df0926b
10,074
py
Python
networking_odl/tests/unit/trunk/test_trunk_driver_v2.py
pshchelo/networking-odl
a413efcbf389f2e9c71538365cad522ada219806
[ "Apache-2.0" ]
null
null
null
networking_odl/tests/unit/trunk/test_trunk_driver_v2.py
pshchelo/networking-odl
a413efcbf389f2e9c71538365cad522ada219806
[ "Apache-2.0" ]
null
null
null
networking_odl/tests/unit/trunk/test_trunk_driver_v2.py
pshchelo/networking-odl
a413efcbf389f2e9c71538365cad522ada219806
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017 Ericsson India Global Service Pvt Ltd. # 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-...
42.327731
78
0.639369
797cf73e8a694b3c1e5bbbc79d1d5ec7c9259261
1,656
py
Python
venv/Lib/site-packages/joblib/_multiprocessing_helpers.py
deerajnagothu/pyenf_extraction
f5c3ebc9657133e1bea102b41768152ba0b30e1b
[ "MIT" ]
6
2021-10-30T09:00:55.000Z
2022-03-07T16:33:25.000Z
venv/Lib/site-packages/joblib/_multiprocessing_helpers.py
deerajnagothu/pyenf_extraction
f5c3ebc9657133e1bea102b41768152ba0b30e1b
[ "MIT" ]
null
null
null
venv/Lib/site-packages/joblib/_multiprocessing_helpers.py
deerajnagothu/pyenf_extraction
f5c3ebc9657133e1bea102b41768152ba0b30e1b
[ "MIT" ]
1
2022-03-16T11:33:50.000Z
2022-03-16T11:33:50.000Z
"""Helper module to factorize the conditional multiprocessing import logic We use a distinct module to simplify import statements and avoid introducing circular dependencies (for instance for the assert_spawning name). """ import os import sys import warnings # Obtain possible configuration from the enviro...
33.12
77
0.652778
797cf75adead6930c2b4a33f3b7e4362a55f2378
2,070
py
Python
credentials.py
xamaan585/Password-Locker
ea5ca487687d8018ef8306d0ee7450fabe04ea25
[ "Unlicense" ]
null
null
null
credentials.py
xamaan585/Password-Locker
ea5ca487687d8018ef8306d0ee7450fabe04ea25
[ "Unlicense" ]
null
null
null
credentials.py
xamaan585/Password-Locker
ea5ca487687d8018ef8306d0ee7450fabe04ea25
[ "Unlicense" ]
null
null
null
import random import string class Credential: """ Class that generates new instances of Credentials. """ credentials_list = [] #list of credentials def __init__(self,account,username,password): self.account= account self.username = username self.password = password ...
28.75
90
0.598551
797cf78e1295ada4b36336a2f038445862395839
192
py
Python
CEDM/CEDMSlidingWindows/Readme.py
joshlyman/TextureAnalysis
bfbedbd53f62396fdef383408089b37e5ab511d0
[ "MIT" ]
1
2020-07-06T01:47:49.000Z
2020-07-06T01:47:49.000Z
CEDM/CEDMSlidingWindows/Readme.py
kumarneeraj2005/TextureAnalysis
bfbedbd53f62396fdef383408089b37e5ab511d0
[ "MIT" ]
null
null
null
CEDM/CEDMSlidingWindows/Readme.py
kumarneeraj2005/TextureAnalysis
bfbedbd53f62396fdef383408089b37e5ab511d0
[ "MIT" ]
1
2020-06-22T08:26:10.000Z
2020-06-22T08:26:10.000Z
# This package is for CEDM sliding windows textures. # # # "addY.py" is to insert Ylabel in textures files # "WindowsML.py" is for transferring textures to use for machine learning format # #
24
80
0.75
797cf7ad4ea2842ddffa2eca47cb562cf12107d2
174
py
Python
Exercícios/ex023.py
JefterV/Cursoemvideo.py
e65ac53a4e38793be3039d360e7127e1c5d51030
[ "MIT" ]
3
2020-11-24T17:20:34.000Z
2020-12-03T01:19:31.000Z
Exercícios/ex023.py
JefterV/Cursoemvideo.py
e65ac53a4e38793be3039d360e7127e1c5d51030
[ "MIT" ]
null
null
null
Exercícios/ex023.py
JefterV/Cursoemvideo.py
e65ac53a4e38793be3039d360e7127e1c5d51030
[ "MIT" ]
1
2021-01-03T00:48:48.000Z
2021-01-03T00:48:48.000Z
num= int (input ('Digite um numero')) u= num // 1 % 10 d= num // 10 % 10 c= num // 100 % 10 m= num // 1000 % 10 print (f'Unidade {u} \nDezena {d} \nCentena {c} \nMilhar {m}')
29
62
0.563218
797cf82185f4c77de8e69ee1bfc9825d16a82897
4,455
py
Python
tests/unit/session/test_parallel.py
wvangeit/tox
d1984d1682e0c760e2170486e006793ced3b8ae8
[ "MIT" ]
null
null
null
tests/unit/session/test_parallel.py
wvangeit/tox
d1984d1682e0c760e2170486e006793ced3b8ae8
[ "MIT" ]
null
null
null
tests/unit/session/test_parallel.py
wvangeit/tox
d1984d1682e0c760e2170486e006793ced3b8ae8
[ "MIT" ]
null
null
null
from __future__ import absolute_import, unicode_literals import sys import pytest def test_parallel(cmd, initproj): initproj( "pkg123-0.7", filedefs={ "tox.ini": """ [tox] envlist = a, b isolated_build = true [testenv] comma...
27.670807
96
0.541414
797cf95a72bbb9c2bf3ddb89b0105b181d33ff2e
1,011
py
Python
rhcephcompose/common_koji.py
red-hat-storage/rhcephcompose
bca6846be442488f5f29d0c9ebc6a071bf525de7
[ "MIT" ]
1
2016-05-27T13:15:56.000Z
2016-05-27T13:15:56.000Z
rhcephcompose/common_koji.py
red-hat-storage/rhcephcompose
bca6846be442488f5f29d0c9ebc6a071bf525de7
[ "MIT" ]
28
2016-04-18T16:06:53.000Z
2021-01-04T22:18:31.000Z
rhcephcompose/common_koji.py
red-hat-storage/rhcephcompose
bca6846be442488f5f29d0c9ebc6a071bf525de7
[ "MIT" ]
2
2016-04-18T15:52:11.000Z
2016-04-18T16:37:33.000Z
try: import koji from koji_cli.lib import activate_session HAS_KOJI = True except ImportError: HAS_KOJI = False def get_session(profile): """ Return an anonymous koji session for this profile name. :param str profile: profile name, like "koji" or "cbs" :returns: anonymous koji.ClientS...
26.605263
73
0.666667
797cfa220167421b665ca51ab710f11a1895c2da
1,406
py
Python
exercises/python/multi-cmk-start/src/document_bucket/__init__.py
npalm/busy-engineers-document-bucket
618253a05cd19f05cf355d80690c65095f877b10
[ "Apache-2.0" ]
13
2019-11-05T21:24:24.000Z
2021-11-24T03:01:28.000Z
exercises/python/multi-cmk-start/src/document_bucket/__init__.py
npalm/busy-engineers-document-bucket
618253a05cd19f05cf355d80690c65095f877b10
[ "Apache-2.0" ]
107
2019-11-07T23:19:45.000Z
2022-02-18T05:57:51.000Z
exercises/python/multi-cmk-start/src/document_bucket/__init__.py
npalm/busy-engineers-document-bucket
618253a05cd19f05cf355d80690c65095f877b10
[ "Apache-2.0" ]
16
2019-11-04T21:51:59.000Z
2021-02-04T17:05:40.000Z
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 import os import aws_encryption_sdk # type: ignore import boto3 # type: ignore import toml from .api import DocumentBucketOperations from .config import config def initialize() -> DocumentBucketOperati...
36.051282
83
0.737553
797cfaa8f203d6d3ff3e4c3a1512144930ec36de
19,012
py
Python
odoo/modules/registry.py
jjiege/odoo
fd5b8ad387c1881f349d125cbd56433f4d49398f
[ "MIT" ]
null
null
null
odoo/modules/registry.py
jjiege/odoo
fd5b8ad387c1881f349d125cbd56433f4d49398f
[ "MIT" ]
null
null
null
odoo/modules/registry.py
jjiege/odoo
fd5b8ad387c1881f349d125cbd56433f4d49398f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. """ Models registries. """ from collections import Mapping, defaultdict, deque from contextlib import closing, contextmanager from functools import partial from operator import attrgetter from weakref import WeakValueDi...
39.362319
126
0.61114
797cfc54ac092376ec33c4c4354477016748d70d
3,128
py
Python
config/urls.py
afzalIbnSH/care
d6ce745670f7915912293ec604037438a6ec7750
[ "MIT" ]
null
null
null
config/urls.py
afzalIbnSH/care
d6ce745670f7915912293ec604037438a6ec7750
[ "MIT" ]
null
null
null
config/urls.py
afzalIbnSH/care
d6ce745670f7915912293ec604037438a6ec7750
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.urls import include, path from django.conf.urls import url from django.views import defaults as default_views from django.views.generic import TemplateView from rest_framework_simplejwt.views import ...
33.276596
88
0.652813
797cfd1f0e12dca0e59d8b951b12451c478e26a7
195
py
Python
sort.py
gandra07/mongoLearnings
1b40a453a6c89ac0a80b1b9bd2c445ae09affbc6
[ "MIT" ]
null
null
null
sort.py
gandra07/mongoLearnings
1b40a453a6c89ac0a80b1b9bd2c445ae09affbc6
[ "MIT" ]
null
null
null
sort.py
gandra07/mongoLearnings
1b40a453a6c89ac0a80b1b9bd2c445ae09affbc6
[ "MIT" ]
null
null
null
import pymongo myclient = pymongo.MongoClient("mongodb://localhost:27017/") mydb = myclient["mydatabase"] mycol = mydb["customers"] mydoc = mycol.find().sort("name") for x in mydoc: print(x)
19.5
60
0.712821
797cfd3b5a0205c44388238f3f2580a9c5b40608
1,062
py
Python
app/Models/kr.py
MisakaMikoto0502/COVID-19API
6a8960bd4fdf42d7e6669e03ab6663a7746e873c
[ "MIT" ]
33
2020-03-05T06:03:34.000Z
2022-03-16T07:46:15.000Z
app/Models/kr.py
MisakaMikoto0502/COVID-19API
6a8960bd4fdf42d7e6669e03ab6663a7746e873c
[ "MIT" ]
2
2020-03-12T13:59:34.000Z
2020-04-14T22:29:51.000Z
app/Models/kr.py
MisakaMikoto0502/COVID-19API
6a8960bd4fdf42d7e6669e03ab6663a7746e873c
[ "MIT" ]
6
2020-03-08T05:33:47.000Z
2022-02-28T07:36:26.000Z
from typing import Union, List from pydantic import BaseModel from .kdca import KDCAResponseModel as KDCARM from .kdca import DATAModel from .kdca import KDCASelectResponseModel from .dgk import VAC_ROOT_DATA class system(BaseModel): code: int message: str class KRResponseModel(BaseModel): status: bool ...
21.24
48
0.724105
797cfd97dd5487a139429bf6a90241b7da03d770
4,914
py
Python
zerver/views/report.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
1
2021-02-13T20:43:29.000Z
2021-02-13T20:43:29.000Z
zerver/views/report.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
9
2021-02-08T20:22:36.000Z
2022-03-11T23:22:45.000Z
zerver/views/report.py
tobby2002/zulip
66e7c455759f9368bae16b9a604cf63f8e3524cd
[ "Apache-2.0" ]
1
2021-04-09T05:50:23.000Z
2021-04-09T05:50:23.000Z
from __future__ import absolute_import from typing import Any from django.conf import settings from django.http import HttpRequest, HttpResponse from zerver.decorator import authenticated_json_post_view, has_request_variables, REQ, \ to_non_negative_int from zerver.lib.response import json_success from zerver.lib...
43.875
131
0.683557
797cfdf73b2f4f6b61485783e67562f49957606a
706
py
Python
examples/fastapi_integration/src/fastapi_integration/text_exception_handlers/__init__.py
maximsakhno/galo-ioc
d300cc0e63e6ad375b7d2e75ac2b2e2fda30da4f
[ "MIT" ]
9
2022-01-16T11:45:00.000Z
2022-03-23T07:42:24.000Z
examples/fastapi_integration/src/fastapi_integration/text_exception_handlers/__init__.py
maximsakhno/galo-ioc
d300cc0e63e6ad375b7d2e75ac2b2e2fda30da4f
[ "MIT" ]
2
2022-01-16T12:03:14.000Z
2022-01-16T12:11:27.000Z
examples/fastapi_integration/src/fastapi_integration/text_exception_handlers/__init__.py
maximsakhno/galo-ioc
d300cc0e63e6ad375b7d2e75ac2b2e2fda30da4f
[ "MIT" ]
null
null
null
from typing import Callable, Type, TypeVar from fastapi.requests import Request from fastapi.responses import Response __all__ = [ "E", "TextExceptionHandler", "TextExceptionHandlerFactory", ] E = TypeVar("E", bound=Exception) class TextExceptionHandler: def register_exception( self, ...
22.0625
81
0.691218
797cff3ab7f17ad1a432e53706a86e15afb3250f
988
py
Python
videocache/websites/veoh.py
mamun1986/abdullah-al-mamun
6dec118b810d6af815b5413f08b7df1e31af0ef5
[ "Unlicense" ]
74
2015-05-26T10:15:34.000Z
2022-01-11T03:09:19.000Z
videocache/websites/veoh.py
mamun1986/abdullah-al-mamun
6dec118b810d6af815b5413f08b7df1e31af0ef5
[ "Unlicense" ]
4
2016-06-07T21:57:19.000Z
2019-07-05T20:30:23.000Z
videocache/websites/veoh.py
mamun1986/abdullah-al-mamun
6dec118b810d6af815b5413f08b7df1e31af0ef5
[ "Unlicense" ]
45
2015-05-31T19:33:36.000Z
2021-12-28T03:25:47.000Z
#!/usr/bin/env python # # (C) Copyright Kulbir Saini <saini@saini.co.in> # Product Website : http://cachevideos.com/ # __author__ = """Kulbir Saini <saini@saini.co.in>""" __docformat__ = 'plaintext' import re import urlparse VALIDATE_VIMEO_VIDEO_EXT_REGEX = re.compile('\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|...
30.875
111
0.653846
797d011d4e5e2512ab17a939aeae85931f705fbf
2,387
py
Python
ai/models/pytorch/functional/_wsodPoints/collation.py
junxnone/aerial_wildlife_detection
0eebed2aaf926ceb212b6a2b7a75bb0a82b28a88
[ "MIT" ]
166
2019-08-12T00:58:06.000Z
2022-03-20T15:40:12.000Z
ai/models/pytorch/functional/_wsodPoints/collation.py
junxnone/aerial_wildlife_detection
0eebed2aaf926ceb212b6a2b7a75bb0a82b28a88
[ "MIT" ]
49
2019-10-01T05:27:00.000Z
2022-03-24T09:27:42.000Z
ai/models/pytorch/functional/_wsodPoints/collation.py
junxnone/aerial_wildlife_detection
0eebed2aaf926ceb212b6a2b7a75bb0a82b28a88
[ "MIT" ]
51
2019-08-14T21:27:05.000Z
2022-03-23T14:01:16.000Z
''' Collator for point models. 2019-20 Benjamin Kellenberger ''' import torch from .encoder import DataEncoder from util import helpers class Collator(): def __init__(self, project, dbConnector, target_size, encoder): self.project = project self.dbConnector = dbConnector self.tar...
32.69863
96
0.554671
797d012e8a120836692e7f28f833848ffcf622b4
573
py
Python
awl/tests/test_absmodels.py
cltrudeau/django-awl
e74f697d992bf96f9e448bb618141b4aa4a62a7e
[ "MIT" ]
5
2020-04-07T01:56:24.000Z
2021-07-15T04:57:43.000Z
awl/tests/test_absmodels.py
cltrudeau/django-awl
e74f697d992bf96f9e448bb618141b4aa4a62a7e
[ "MIT" ]
9
2020-02-11T22:15:30.000Z
2021-12-20T21:21:08.000Z
awl/tests/test_absmodels.py
cltrudeau/django-awl
e74f697d992bf96f9e448bb618141b4aa4a62a7e
[ "MIT" ]
null
null
null
# awl.tests.test_models.py from django.test import TestCase from awl.utils import refetch from awl.tests.models import Validator # ============================================================================ class AbsModelsTest(TestCase): def test_validating_mixin(self): # Validator overrides full_clean(...
31.833333
78
0.591623
797d020d56a497a21fb02be341671c3356aca69b
1,369
py
Python
examples/prinz/timestep_map.py
jeford/mdprop
e79b70343f559cbf586f09234122c2f43b4d867c
[ "MIT" ]
null
null
null
examples/prinz/timestep_map.py
jeford/mdprop
e79b70343f559cbf586f09234122c2f43b4d867c
[ "MIT" ]
null
null
null
examples/prinz/timestep_map.py
jeford/mdprop
e79b70343f559cbf586f09234122c2f43b4d867c
[ "MIT" ]
null
null
null
import numpy as np import matplotlib matplotlib.use("Agg") import matplotlib.pyplot as plt import mdprop pot = mdprop.potential.Prinz() X = np.array([[-1.0]]) V = np.array([[ 0.0]]) masses = np.array([1.0]) symbols = ['X'] beta = 0.1 dt = 0.01 sim_time = 10.0 state = { 'X': X, 'V': V, 'masse...
24.446429
169
0.65011
797d0288e8150c48ce05ecbd3b1aa666abaa7466
2,892
py
Python
qa/rpc-tests/wallet_dumpzerocoin.py
mattt21/zcoin
730f0c39ba47f762627f13a1e9ea66d76b57a57d
[ "MIT" ]
1
2019-11-20T00:42:52.000Z
2019-11-20T00:42:52.000Z
qa/rpc-tests/wallet_dumpzerocoin.py
mattt21/zcoin
730f0c39ba47f762627f13a1e9ea66d76b57a57d
[ "MIT" ]
null
null
null
qa/rpc-tests/wallet_dumpzerocoin.py
mattt21/zcoin
730f0c39ba47f762627f13a1e9ea66d76b57a57d
[ "MIT" ]
1
2019-10-02T22:36:03.000Z
2019-10-02T22:36:03.000Z
#!/usr/bin/env python3 import time import os from decimal import * from test_framework.test_framework import BitcoinTestFramework from test_framework.util import * from test_framework.test_helper import get_dumpwallet_otp #Scenario: #Generate 101 block #Mint zerocoins of all denominations multiple 3 #generate 6 block...
35.268293
118
0.688105
797d02af428682f772aad1a33aab577d604b49eb
151
py
Python
django/demorest/music/admin.py
hainvit/dev
95f02c4c93c488deb8e0eaaa4a6602083369104a
[ "MIT" ]
null
null
null
django/demorest/music/admin.py
hainvit/dev
95f02c4c93c488deb8e0eaaa4a6602083369104a
[ "MIT" ]
null
null
null
django/demorest/music/admin.py
hainvit/dev
95f02c4c93c488deb8e0eaaa4a6602083369104a
[ "MIT" ]
null
null
null
""" Import pakages """ from django.contrib import admin # Register your models here. from .models import MusicModel admin.site.register(MusicModel)
13.727273
32
0.768212
797d030bfc89a2d8aff105337dcbbef5f24de23e
5,144
py
Python
selvbetjening/sadmin2/options/forms.py
animekita/selvbetjening
fee63d178fbd5ce2976c04d3a4b2dde6d8691892
[ "MIT" ]
null
null
null
selvbetjening/sadmin2/options/forms.py
animekita/selvbetjening
fee63d178fbd5ce2976c04d3a4b2dde6d8691892
[ "MIT" ]
3
2020-02-11T21:54:59.000Z
2021-06-10T17:35:21.000Z
selvbetjening/sadmin2/options/forms.py
animekita/selvbetjening
fee63d178fbd5ce2976c04d3a4b2dde6d8691892
[ "MIT" ]
null
null
null
from crispy_forms.layout import HTML from django.forms.models import inlineformset_factory, BaseInlineFormSet from django.utils.translation import ugettext as _ from selvbetjening.core.events.models.options import AutoSelectChoiceOption, DiscountOption, Selection from selvbetjening.core.events.models import SubOption,...
30.081871
119
0.669907
797d03700ba63ef0311582db09fef3cc277dec63
29,633
py
Python
enyo/scripts/wfos_etc.py
Keck-FOBOS/enyo
82dd4324083d456c78bcbafdd081bee53f0c7ba9
[ "BSD-3-Clause" ]
null
null
null
enyo/scripts/wfos_etc.py
Keck-FOBOS/enyo
82dd4324083d456c78bcbafdd081bee53f0c7ba9
[ "BSD-3-Clause" ]
null
null
null
enyo/scripts/wfos_etc.py
Keck-FOBOS/enyo
82dd4324083d456c78bcbafdd081bee53f0c7ba9
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import os import time import warnings import argparse from IPython import embed import numpy from scipy import interpolate from matplotlib import pyplot, ticker from astropy import units from enyo.etc import source, efficiency, telescopes, spectrum, extract, aperture, detector from enyo.etc...
52.079086
99
0.609422
797d038b880527c2b7f1452c8d8f3394b8e4d6f2
5,664
py
Python
tests/contrib/hooks/test_azure_data_lake_hook.py
FlyrInc/airflow-1
74b22337b45a1eb25585d52e35694e6b0eb81f03
[ "Apache-2.0" ]
4
2018-12-14T05:14:02.000Z
2022-01-23T15:48:13.000Z
tests/contrib/hooks/test_azure_data_lake_hook.py
FlyrInc/airflow-1
74b22337b45a1eb25585d52e35694e6b0eb81f03
[ "Apache-2.0" ]
4
2018-03-20T21:24:26.000Z
2020-05-03T04:23:02.000Z
tests/contrib/hooks/test_azure_data_lake_hook.py
FlyrInc/airflow-1
74b22337b45a1eb25585d52e35694e6b0eb81f03
[ "Apache-2.0" ]
3
2020-02-07T20:13:04.000Z
2021-08-22T21:41:52.000Z
# -*- coding: utf-8 -*- # # 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 #...
45.677419
87
0.662429
797d04d5f30f2aa809dce089c63ffae9302371a4
2,167
py
Python
library/goldsrc/mdl_v6/structs/studioheader.py
anderlli0053/SourceIO
3c0c4839939ce698439987ac52154f89ee2f5341
[ "MIT" ]
199
2019-04-02T02:30:58.000Z
2022-03-30T21:29:49.000Z
library/goldsrc/mdl_v6/structs/studioheader.py
anderlli0053/SourceIO
3c0c4839939ce698439987ac52154f89ee2f5341
[ "MIT" ]
113
2019-03-03T19:36:25.000Z
2022-03-31T19:44:05.000Z
library/goldsrc/mdl_v6/structs/studioheader.py
anderlli0053/SourceIO
3c0c4839939ce698439987ac52154f89ee2f5341
[ "MIT" ]
38
2019-05-15T16:49:30.000Z
2022-03-22T03:40:43.000Z
from enum import IntFlag from .....library.utils.byte_io_mdl import ByteIO class StudioHeaderFlags(IntFlag): EF_ROCKET = 1 # ! leave a trail EF_GRENADE = 2 # ! leave a trail EF_GIB = 4 # ! leave a trail EF_ROTATE = 8 # ! rotate (bonus items) EF_TRACER = 16 # ! green split trail EF_ZOMGIB...
32.833333
107
0.637748
797d06006e0d1e4af5ce81ad952ddae46c78863d
799
py
Python
Desafio26.py
Gerson-Rodrigues/Python---Projetos-do-Curso
3c3c05e23b4de4560d4f5136d431cf08b4bc05ae
[ "MIT" ]
1
2021-09-01T21:48:45.000Z
2021-09-01T21:48:45.000Z
Desafio26.py
Gerson-Rodrigues/Python---Projetos-do-Curso
3c3c05e23b4de4560d4f5136d431cf08b4bc05ae
[ "MIT" ]
null
null
null
Desafio26.py
Gerson-Rodrigues/Python---Projetos-do-Curso
3c3c05e23b4de4560d4f5136d431cf08b4bc05ae
[ "MIT" ]
null
null
null
# Faça um programa que leia uma frase pelo teclado e mostre # Quantas vezes aparece a letra "A". # Em que posição ela aparecea primeira vez. # Em que posição ela apace a última vez. # # Minha resolução """frase = str(input('Escreva uma frase bem legal: ')).strip() frase = frase.upper() conta = frase.count('A') esq = f...
38.047619
75
0.684606
797d07e9fd3baf95d1434133813ea7694a8bfc57
682
py
Python
app/core/migrations/0002_tag.py
sepira/recipe-app-api
62f3a5a548532d5e04196206c26127373067a2f5
[ "MIT" ]
null
null
null
app/core/migrations/0002_tag.py
sepira/recipe-app-api
62f3a5a548532d5e04196206c26127373067a2f5
[ "MIT" ]
4
2021-03-30T13:43:14.000Z
2021-09-22T19:15:58.000Z
app/core/migrations/0002_tag.py
sepira/recipe-app-api
62f3a5a548532d5e04196206c26127373067a2f5
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-06-23 07:50 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0001_initial'), ] operations = [ migrations.CreateModel( ...
28.416667
118
0.615836
797d089eda2b79ff3ea216324c6fafa0dfd04c9c
7,903
py
Python
applications/camera_calibration/scripts/optimizer_builder.py
lingbo-yu/camera_calibration
ff5f09fa2253b01b80c24ec600936f5d083d03f3
[ "BSD-3-Clause" ]
474
2019-12-09T06:20:57.000Z
2022-03-31T06:14:38.000Z
applications/camera_calibration/scripts/optimizer_builder.py
lingbo-yu/camera_calibration
ff5f09fa2253b01b80c24ec600936f5d083d03f3
[ "BSD-3-Clause" ]
60
2020-01-10T08:41:57.000Z
2022-03-19T15:39:43.000Z
applications/camera_calibration/scripts/optimizer_builder.py
lingbo-yu/camera_calibration
ff5f09fa2253b01b80c24ec600936f5d083d03f3
[ "BSD-3-Clause" ]
90
2019-12-09T08:48:06.000Z
2022-03-31T06:14:38.000Z
from sympy import * from sympy.printing.cxxcode import CXX11CodePrinter # TODO: Test whether this works with non-matrix functions. def ComputeValueAndJacobian(function, parameters, parameter_values, simplify_jacobian_before_setting_in, simplify_jacobian_after_setting_in): # Evaluate the function. values = functio...
38.931034
158
0.711882
797d09a8463a11bff391479a01d7b0bb52799508
8,091
py
Python
var/spack/repos/builtin/packages/phist/package.py
rupertford/spack
df2cfd26cd03e29b9898fe79c804c78f2d29cbd0
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/phist/package.py
rupertford/spack
df2cfd26cd03e29b9898fe79c804c78f2d29cbd0
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-04-24T13:30:08.000Z
2020-04-24T13:40:08.000Z
var/spack/repos/builtin/packages/phist/package.py
rupertford/spack
df2cfd26cd03e29b9898fe79c804c78f2d29cbd0
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Phist(CMakePackage): """The Pipelined, Hybrid-parallel Iterative Solver Toolkit provides ...
44.701657
95
0.624892
797d09dfbdea9c29b97936ae06168a2265d18b18
15,745
py
Python
src/env_utils.py
testingautomated-usi/rl-plasticity-experiments
a32cebcee89f6f734477a1f1bdd8b7f8ef7aa99a
[ "MIT" ]
null
null
null
src/env_utils.py
testingautomated-usi/rl-plasticity-experiments
a32cebcee89f6f734477a1f1bdd8b7f8ef7aa99a
[ "MIT" ]
null
null
null
src/env_utils.py
testingautomated-usi/rl-plasticity-experiments
a32cebcee89f6f734477a1f1bdd8b7f8ef7aa99a
[ "MIT" ]
null
null
null
import os from typing import Dict import gym from gym.wrappers import TimeLimit from stable_baselines3.common import set_random_seed from stable_baselines3.common.vec_env import DummyVecEnv as DummyVecEnv3 from stable_baselines3.common.vec_env import SubprocVecEnv as SubprocVecEnv3 from stable_baselines3.common.vec_en...
38.876543
123
0.663449
797d0a33918c2e1e5fa75a996532b65b32bc283c
647
py
Python
src/slizzy/util/math.py
matheushsouza/slizzy
f224b8e4621d11031315da9178202781b4a2dcef
[ "BSD-3-Clause" ]
1
2019-12-24T03:08:12.000Z
2019-12-24T03:08:12.000Z
src/slizzy/util/math.py
matheushsouza/slizzy
f224b8e4621d11031315da9178202781b4a2dcef
[ "BSD-3-Clause" ]
null
null
null
src/slizzy/util/math.py
matheushsouza/slizzy
f224b8e4621d11031315da9178202781b4a2dcef
[ "BSD-3-Clause" ]
null
null
null
import ast import operator as op __all__ = [ "eval" ] # supported operators operators = { ast.Add : op.add, ast.Sub : op.sub, ast.Mult : op.mul, ast.Div : op.truediv, ast.Mod : op.mod, ast.Pow : op.pow, ast.USub : op.neg } def eval(expr): return __eval(ast.parse(expr.strip(), ...
17.486486
74
0.633694
797d0a7aca666f33cc509e05e69a9a3373cfc3cc
3,149
py
Python
q3/q3/EventSignal.py
virtimus/makaronLab
10b9be7d7d65d3da6219f929ea7070dd5fed3a81
[ "0BSD" ]
2
2021-03-16T05:48:36.000Z
2021-10-11T01:55:48.000Z
q3/q3/EventSignal.py
virtimus/makaronLab
10b9be7d7d65d3da6219f929ea7070dd5fed3a81
[ "0BSD" ]
null
null
null
q3/q3/EventSignal.py
virtimus/makaronLab
10b9be7d7d65d3da6219f929ea7070dd5fed3a81
[ "0BSD" ]
1
2021-03-16T05:48:39.000Z
2021-03-16T05:48:39.000Z
from q3.ui.engine import qtw,qtc,qtg EventSignalBase = qtc.Signal from .q3vector import Q3Vector from .Timer import Timer #@deprecated - wrong direction class DoneItem: def __init__(self): self._done = False def done(self): return self._done def setDone(self, n): self._don...
26.91453
95
0.634487
797d0bbe6ce12347fe8ca9b115de92805fa2f0f4
4,176
py
Python
dicts/utils.py
thecoffeemeister/ascii-combat
c8bb9cfe15a8e94e4b0daa2ed39955cfb5b7a6ee
[ "MIT" ]
null
null
null
dicts/utils.py
thecoffeemeister/ascii-combat
c8bb9cfe15a8e94e4b0daa2ed39955cfb5b7a6ee
[ "MIT" ]
17
2021-02-15T21:23:35.000Z
2021-02-23T23:26:31.000Z
dicts/utils.py
thecoffeemeister/ascii-combat
c8bb9cfe15a8e94e4b0daa2ed39955cfb5b7a6ee
[ "MIT" ]
null
null
null
''' Contains various QoL functions which are used all over the game, any text-based game would need such functions to satisfy the repetitive need for simple stuff like: determining use "a" or "an" before item name or placing some sentence inside a box, etc.. that is what "utils.py" do ''' from dicts import * fro...
33.408
90
0.583812
797d0cb6813bb62490986ffa3a1997db3775b364
2,770
py
Python
gs/profile/email/verify/verifyemailuser.py
groupserver/gs.profile.email.verify
6ed95d3c2e89e63fa97fd2afc89eacd9a0633726
[ "ZPL-2.1" ]
null
null
null
gs/profile/email/verify/verifyemailuser.py
groupserver/gs.profile.email.verify
6ed95d3c2e89e63fa97fd2afc89eacd9a0633726
[ "ZPL-2.1" ]
null
null
null
gs/profile/email/verify/verifyemailuser.py
groupserver/gs.profile.email.verify
6ed95d3c2e89e63fa97fd2afc89eacd9a0633726
[ "ZPL-2.1" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################ # # Copyright © 2013, 2015 OnlineGroups.net and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany th...
35.063291
76
0.677256
797d0dbc07cb87d9ac7ab1c2e9daf8528329a5e8
389
py
Python
WebMirror/management/rss_parser_funcs/feed_parse_extractHimatranslationsWordpressCom.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
193
2016-08-02T22:04:35.000Z
2022-03-09T20:45:41.000Z
WebMirror/management/rss_parser_funcs/feed_parse_extractHimatranslationsWordpressCom.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
533
2016-08-23T20:48:23.000Z
2022-03-28T15:55:13.000Z
WebMirror/management/rss_parser_funcs/feed_parse_extractHimatranslationsWordpressCom.py
rrosajp/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
19
2015-08-13T18:01:08.000Z
2021-07-12T17:13:09.000Z
def extractHimatranslationsWordpressCom(item): ''' Parser for 'himatranslations.wordpress.com' ''' vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title']) if not (chp or vol) or "preview" in item['title'].lower(): return None if "WATTT" in item['tags']: return buildReleaseMessageWithType(...
25.933333
89
0.727506
797d0ec3da36f23ffc947e9f9a3ad836ab56afbe
102,507
py
Python
Tests/test_SwissProt.py
barendt/biopython
391bcdbee7f821bff3e12b75c635a06bc1b2dcea
[ "PostgreSQL" ]
3
2017-10-23T21:53:57.000Z
2019-09-23T05:14:12.000Z
Tests/test_SwissProt.py
eoc21/biopython
c0f8db8f55a506837c320459957a0ce99b0618b6
[ "PostgreSQL" ]
null
null
null
Tests/test_SwissProt.py
eoc21/biopython
c0f8db8f55a506837c320459957a0ce99b0618b6
[ "PostgreSQL" ]
6
2020-02-26T16:34:20.000Z
2020-03-04T15:34:00.000Z
#!/usr/bin/env python """Test for the SwissProt parser on SwissProt files. """ import os import unittest from Bio import SeqIO from Bio import SwissProt from Bio.SeqRecord import SeqRecord class TestSwissProt(unittest.TestCase): def test_sp001(self): "Parsing SwissProt file sp001" filename = 's...
62.733782
343
0.675651
797d0ee867e40a0e83e0fe07024e1410a8671fae
843
py
Python
jdcloud_sdk/services/openjrtc/models/CreateAppRequestObject.py
Tanc009/jdcloud-sdk-python
8b045c99bc5b73ca7348e950b6f01e03a27982f5
[ "Apache-2.0" ]
null
null
null
jdcloud_sdk/services/openjrtc/models/CreateAppRequestObject.py
Tanc009/jdcloud-sdk-python
8b045c99bc5b73ca7348e950b6f01e03a27982f5
[ "Apache-2.0" ]
null
null
null
jdcloud_sdk/services/openjrtc/models/CreateAppRequestObject.py
Tanc009/jdcloud-sdk-python
8b045c99bc5b73ca7348e950b6f01e03a27982f5
[ "Apache-2.0" ]
null
null
null
# coding=utf8 # Copyright 2018 JDCLOUD.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 # # Unless required by applicable law or agreed ...
30.107143
75
0.723606
797d0fa4416d2b694099e6a33ad36fdb6eafe8ce
613
py
Python
src/regions/views.py
SerhatTeker/django-rest-filtering-tutorial
b02cd9c14cceddbf604cee83026f7134f8109d75
[ "BSD-3-Clause" ]
null
null
null
src/regions/views.py
SerhatTeker/django-rest-filtering-tutorial
b02cd9c14cceddbf604cee83026f7134f8109d75
[ "BSD-3-Clause" ]
null
null
null
src/regions/views.py
SerhatTeker/django-rest-filtering-tutorial
b02cd9c14cceddbf604cee83026f7134f8109d75
[ "BSD-3-Clause" ]
null
null
null
from django_filters.rest_framework import DjangoFilterBackend from rest_framework import viewsets from rest_framework.filters import OrderingFilter, SearchFilter from src.regions.models import Region from src.regions.serializers import RegionSerializer class RegionViewSet(viewsets.ModelViewSet): serializer_clas...
27.863636
63
0.738989
797d1045cb32a86211c38e1b83c7864c3f163392
530
py
Python
daotech/blog/migrations/0007_aboutme.py
JackJiang1989/DaoTech
f97088a50d67238cd99655f5e9d35aec31f0cca4
[ "MIT" ]
null
null
null
daotech/blog/migrations/0007_aboutme.py
JackJiang1989/DaoTech
f97088a50d67238cd99655f5e9d35aec31f0cca4
[ "MIT" ]
null
null
null
daotech/blog/migrations/0007_aboutme.py
JackJiang1989/DaoTech
f97088a50d67238cd99655f5e9d35aec31f0cca4
[ "MIT" ]
null
null
null
# Generated by Django 3.2.10 on 2022-03-19 21:04 from django.db import migrations, models import markdownx.models class Migration(migrations.Migration): dependencies = [ ('blog', '0006_food'), ] operations = [ migrations.CreateModel( name='AboutMe', fields=[ ...
24.090909
117
0.586792
797d10bbcdb8969d835b32193c0c94a38029a5ee
14,689
py
Python
python/ccxt/async_support/__init__.py
ysdede/ccxt
c64cfdb0c364f4b965ef588bf67d1bdedad410a5
[ "MIT" ]
null
null
null
python/ccxt/async_support/__init__.py
ysdede/ccxt
c64cfdb0c364f4b965ef588bf67d1bdedad410a5
[ "MIT" ]
3
2022-01-27T15:38:05.000Z
2022-03-31T23:04:15.000Z
python/ccxt/async_support/__init__.py
RonSherfey/ccxt
c64cfdb0c364f4b965ef588bf67d1bdedad410a5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """CCXT: CryptoCurrency eXchange Trading Library (Async)""" # ----------------------------------------------------------------------------- __version__ = '1.64.84' # ----------------------------------------------------------------------------- from ccxt.async_support.base.exchange import Ex...
50.82699
86
0.557015
797d10d7ba72251c75f3398c4a39105939b39626
21,944
py
Python
detectron2/modeling/backbone/PBresnet.py
Magixxxxxx/Detectron2-iOD
26da9e390e66bf3b84638898790cebd3923c6c36
[ "Apache-2.0" ]
null
null
null
detectron2/modeling/backbone/PBresnet.py
Magixxxxxx/Detectron2-iOD
26da9e390e66bf3b84638898790cebd3923c6c36
[ "Apache-2.0" ]
null
null
null
detectron2/modeling/backbone/PBresnet.py
Magixxxxxx/Detectron2-iOD
26da9e390e66bf3b84638898790cebd3923c6c36
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import logging # from myILOD.piggyback_detection.layers import ElementWiseConv2d import numpy as np import fvcore.nn.weight_init as weight_init import torch import torch.nn.functional as F from torch import nn from detectron2.layers import ( El...
33.916538
100
0.577379
797d10df8435b52d5a6b39fd8370f586a0c68f4b
345
py
Python
api/util_test.py
owensengoku/twitter-api
564fbcfb76232251d7f6b73e47a630b5270c4ef0
[ "Apache-2.0" ]
null
null
null
api/util_test.py
owensengoku/twitter-api
564fbcfb76232251d7f6b73e47a630b5270c4ef0
[ "Apache-2.0" ]
null
null
null
api/util_test.py
owensengoku/twitter-api
564fbcfb76232251d7f6b73e47a630b5270c4ef0
[ "Apache-2.0" ]
null
null
null
from .util import * from datetime import datetime, timezone def test_strptime(): date_obj = strptime('Sun Oct 28 09:35:42 +0000 2018') assert date_obj == datetime(2018, 10, 28, 9, 35, 42, tzinfo=timezone.utc) def test_strftime(): date_obj = datetime(2018, 3, 7, 15, 57, 33) assert strftime(date_obj) =...
28.75
77
0.675362
797d13415552f9242b7fcf30d71f7c39aa892ae0
788
py
Python
profiles_api/migrations/0002_profilefeeditem.py
isak-ialogics/profiles-rest-api
ae6ba1e5c27f6fe0c0887552ca91cb0476ba369d
[ "MIT" ]
null
null
null
profiles_api/migrations/0002_profilefeeditem.py
isak-ialogics/profiles-rest-api
ae6ba1e5c27f6fe0c0887552ca91cb0476ba369d
[ "MIT" ]
8
2020-02-12T03:22:32.000Z
2022-02-10T10:09:20.000Z
profiles_api/migrations/0002_profilefeeditem.py
isak-ialogics/profiles-rest-api
ae6ba1e5c27f6fe0c0887552ca91cb0476ba369d
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2020-01-11 13:32 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('profiles_api', '0001_initial'), ] operations = [ migrations.CreateModel( ...
31.52
126
0.633249
797d13c2f1828d4c33c36a64cfde132459a7cd98
5,217
py
Python
src/python/pants/backend/codegen/thrift/scrooge/rules.py
wimax-grapl/pants
0aabd417a772ea4e39999c4415c67db40de679a4
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/codegen/thrift/scrooge/rules.py
wimax-grapl/pants
0aabd417a772ea4e39999c4415c67db40de679a4
[ "Apache-2.0" ]
28
2021-12-27T15:53:46.000Z
2022-03-23T11:01:42.000Z
src/python/pants/backend/codegen/thrift/scrooge/rules.py
riisi/pants
b33327389fab67c47b919710ea32f20ca284b1a6
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from dataclasses import dataclass from pants.backend.codegen.thrift.scrooge import additional_fields from pants.backend.codegen.thrift.scrooge.additional_fields import ScroogeFinagleBoolFi...
35.25
110
0.710945
797d172138267ee1b3163cd01ec4a546ffbf3ce3
212
py
Python
hotel_management/hotel_management/doctype/hotel_guests/test_hotel_guests.py
rkr00t/hotel_management
4ec88cb36c93fbe986eee97b2feb68419764cf92
[ "MIT" ]
1
2021-05-02T13:15:12.000Z
2021-05-02T13:15:12.000Z
hotel_management/hotel_management/doctype/hotel_guests/test_hotel_guests.py
rkr00t/hotel_management
4ec88cb36c93fbe986eee97b2feb68419764cf92
[ "MIT" ]
null
null
null
hotel_management/hotel_management/doctype/hotel_guests/test_hotel_guests.py
rkr00t/hotel_management
4ec88cb36c93fbe986eee97b2feb68419764cf92
[ "MIT" ]
4
2021-07-29T17:33:02.000Z
2022-02-20T13:48:09.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2021, Eco Data and Contributors # See license.txt from __future__ import unicode_literals # import frappe import unittest class TestHotelGuests(unittest.TestCase): pass
19.272727
47
0.759434
797d185f3e156b05b2246df898893e1e775b57d6
63
py
Python
simple_schema_validator/__version__.py
HackSoftware/simple_schema_validator
703aaff3f3596521589450f65fbb3844ff13e723
[ "MIT" ]
26
2019-02-06T14:54:35.000Z
2021-06-11T07:11:27.000Z
pyattest/__version__.py
dreipol/pyattest
830a7fb05dc2862595f96de8184275006d7a4068
[ "MIT" ]
2
2019-02-13T09:55:00.000Z
2020-07-06T07:20:28.000Z
pyattest/__version__.py
dreipol/pyattest
830a7fb05dc2862595f96de8184275006d7a4068
[ "MIT" ]
null
null
null
VERSION = (0, 0, 9) __version__ = '.'.join(map(str, VERSION))
15.75
41
0.603175
797d18bb2c5a94ee2342167f011a8e1c3f8d4626
4,183
py
Python
h/tweens.py
ssin122/test-h
c10062ae23b690afaac0ab4af7b9a5a5e4b686a9
[ "MIT" ]
1
2017-06-16T14:01:28.000Z
2017-06-16T14:01:28.000Z
h/tweens.py
ssin122/test-h
c10062ae23b690afaac0ab4af7b9a5a5e4b686a9
[ "MIT" ]
null
null
null
h/tweens.py
ssin122/test-h
c10062ae23b690afaac0ab4af7b9a5a5e4b686a9
[ "MIT" ]
1
2020-02-16T08:04:56.000Z
2020-02-16T08:04:56.000Z
# -*- coding: utf-8 -*- import collections import logging import sys from pyramid import httpexceptions from pyramid.util import DottedNameResolver log = logging.getLogger(__name__) resolver = DottedNameResolver(None) def auth_token(handler, registry): """ A tween that copies the value of the Annotator toke...
32.679688
83
0.650251
797d18e5265c56954d50a957a01f1d8e7fb59332
11,127
py
Python
neutron/objects/subnet.py
deepak-dt/neutron
5226e50c68084dd3d76861d1247f9f292949b616
[ "Apache-2.0" ]
null
null
null
neutron/objects/subnet.py
deepak-dt/neutron
5226e50c68084dd3d76861d1247f9f292949b616
[ "Apache-2.0" ]
null
null
null
neutron/objects/subnet.py
deepak-dt/neutron
5226e50c68084dd3d76861d1247f9f292949b616
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
38.368966
78
0.640604
797d1999fa97d375b92419ab91ed2f74d47e38de
921
py
Python
Python3-Basics/Chapter15_ProcessThread10_ThreadLocal.py
anliven/Reading-Code-Learning-Python
a814cab207bbaad6b5c69b9feeb8bf2f459baf2b
[ "Apache-2.0" ]
null
null
null
Python3-Basics/Chapter15_ProcessThread10_ThreadLocal.py
anliven/Reading-Code-Learning-Python
a814cab207bbaad6b5c69b9feeb8bf2f459baf2b
[ "Apache-2.0" ]
null
null
null
Python3-Basics/Chapter15_ProcessThread10_ThreadLocal.py
anliven/Reading-Code-Learning-Python
a814cab207bbaad6b5c69b9feeb8bf2f459baf2b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import threading local_school = threading.local() # 创建全局ThreadLocal对象,其每个属性都是线程的局部变量,可以任意读写而互不干扰 def process_student(): std = local_school.student # 获取当前线程关联的student age = local_school.age print(std, age, threading.current_thread().name) def process_thread(name, ag...
27.088235
81
0.714441
797d19a9da545f848b90fff277844d34213fa7a3
427
py
Python
samples/StepEventListener.py
NTNU-mechlab/agxpy_basics
b6acc7ed952a7d40341c411e1b3dda76abfa0b33
[ "MIT" ]
null
null
null
samples/StepEventListener.py
NTNU-mechlab/agxpy_basics
b6acc7ed952a7d40341c411e1b3dda76abfa0b33
[ "MIT" ]
null
null
null
samples/StepEventListener.py
NTNU-mechlab/agxpy_basics
b6acc7ed952a7d40341c411e1b3dda76abfa0b33
[ "MIT" ]
1
2020-09-28T09:43:46.000Z
2020-09-28T09:43:46.000Z
import agxSDK import demoutils class MyStepEventListener(agxSDK.StepEventListener): def __init__(self): super().__init__(agxSDK.StepEventListener.POST_STEP) def pre(self, t): print("pre") # will not be called as we have specified a POST_STEP mask def post(self, t): print("post"...
21.35
80
0.69555
797d19b8367d9002c84c8fc5adeba2be6d711c8b
1,129
py
Python
demo/graphQLDemos/graphene/server.py
jehalladay/React-Playground
b461917b9e608b6913d2f03b8e18f838f43927bd
[ "MIT" ]
null
null
null
demo/graphQLDemos/graphene/server.py
jehalladay/React-Playground
b461917b9e608b6913d2f03b8e18f838f43927bd
[ "MIT" ]
4
2021-05-11T17:43:14.000Z
2022-02-27T06:38:05.000Z
demo/graphQLDemos/graphene/server.py
jehalladay/React-Playground
b461917b9e608b6913d2f03b8e18f838f43927bd
[ "MIT" ]
null
null
null
from sys import argv from flask import Flask from graphene import ObjectType, Schema, String, Argument from s1 import create_graphql_api def create_server(): app = Flask(__name__) app.secret_key = b'(\xe4S$\xce\xa81\x80\x8e\x83\xfa"b%\x9fr' app.env = 'development' return app class Query(ObjectType)...
21.301887
67
0.633304
797d1a05ed80355f8a6a90272df24ba640b27d4b
2,066
py
Python
data.py
Amitav507/lstm-electric-load-forecast
702e0a78ef478a089ad62dddb71c7dff918c5e93
[ "MIT" ]
60
2018-05-20T15:12:01.000Z
2022-03-05T14:08:23.000Z
data.py
Amitav507/lstm-electric-load-forecast
702e0a78ef478a089ad62dddb71c7dff918c5e93
[ "MIT" ]
1
2020-03-16T07:09:48.000Z
2020-03-16T07:09:48.000Z
data.py
Amitav507/lstm-electric-load-forecast
702e0a78ef478a089ad62dddb71c7dff918c5e93
[ "MIT" ]
30
2018-05-29T19:41:53.000Z
2022-01-24T15:53:19.000Z
import numpy as np import csv def load_data(dataset_path, sequence_length=60, prediction_steps=5, ratio_of_data=1.0): max_values = ratio_of_data * 2075259 # 2075259 is the total number of measurements from Dec 2006 to Nov 2010 # Load data from file with open(dataset_path) as file: data_file = csv...
43.957447
113
0.673766
797d1b8bfd1e48d288fcf11da9d188814b09f60c
1,153
py
Python
venus/modules/custom_config/action.py
1049965823/venus
2e6c7a7b55fe103cbd312edde3012274ca09ba75
[ "Apache-2.0" ]
2
2020-11-06T08:08:22.000Z
2020-11-10T06:42:45.000Z
venus/modules/custom_config/action.py
1049965823/venus
2e6c7a7b55fe103cbd312edde3012274ca09ba75
[ "Apache-2.0" ]
1
2020-11-06T11:50:59.000Z
2020-11-06T11:51:05.000Z
venus/modules/custom_config/action.py
1049965823/venus
2e6c7a7b55fe103cbd312edde3012274ca09ba75
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Inspur # # 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 writi...
32.942857
76
0.709454
797d1b9920929b29386060e94cec4e40370e1731
22,858
py
Python
fastai/callbacks/tensorboard.py
feras-oughali/fastai
4052f7adb441ab8a00eaa807b444a4e583b6bcc7
[ "Apache-2.0" ]
11
2019-08-06T11:44:24.000Z
2022-03-12T20:04:56.000Z
fastai/callbacks/tensorboard.py
feras-oughali/fastai
4052f7adb441ab8a00eaa807b444a4e583b6bcc7
[ "Apache-2.0" ]
3
2021-05-20T22:42:46.000Z
2022-02-26T10:16:17.000Z
fastai/callbacks/tensorboard.py
feras-oughali/fastai
4052f7adb441ab8a00eaa807b444a4e583b6bcc7
[ "Apache-2.0" ]
3
2020-07-29T14:37:41.000Z
2021-12-16T13:16:52.000Z
"Provides convenient callbacks for Learners that write model images, metrics/losses, stats and histograms to Tensorboard" from ..basic_train import Learner from ..basic_data import DatasetType, DataBunch from ..vision import Image from ..vision.gan import GANLearner from ..callbacks import LearnerCallback from ..core i...
53.783529
144
0.717692
797d1ba88af032f0919213f21a8a5f61fb319a75
2,759
py
Python
markings.py
nkolbeck/Lego-Harry-Potter-Musik
8b54c1ddefc047d3b708d4371f06a2cfa1fcf875
[ "MIT" ]
null
null
null
markings.py
nkolbeck/Lego-Harry-Potter-Musik
8b54c1ddefc047d3b708d4371f06a2cfa1fcf875
[ "MIT" ]
null
null
null
markings.py
nkolbeck/Lego-Harry-Potter-Musik
8b54c1ddefc047d3b708d4371f06a2cfa1fcf875
[ "MIT" ]
null
null
null
import numpy as np from cv2 import cv2 import rtmidi import mido from flask import Flask, render_template, Response app = Flask(__name__) print("Midi output ports: ", mido.get_output_names()) # midiOutput = mido.open_output("LoopBe Internal MIDI 1") # für Windows midiOutput = mido.open_output("IAC-Treiber Bus 1")...
28.739583
113
0.58282