hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
331d9b5f8021efea23f2d9e9bee7c6d05cfd78df
3,342
py
Python
venv/Lib/site-packages/pyrogram/raw/functions/messages/get_inline_bot_results.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/functions/messages/get_inline_bot_results.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/functions/messages/get_inline_bot_results.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
33.757576
158
0.610712
331da570311b08a27b4ae622202955c878cc6e23
14,449
py
Python
utils/ignn_utils.py
FFTYYY/TWIRLS
e751fa514baef54e8456135b7b790a0f810d0792
[ "MIT" ]
25
2021-06-16T15:56:04.000Z
2022-02-06T09:47:31.000Z
utils/ignn_utils.py
FFTYYY/TWIRLS
e751fa514baef54e8456135b7b790a0f810d0792
[ "MIT" ]
null
null
null
utils/ignn_utils.py
FFTYYY/TWIRLS
e751fa514baef54e8456135b7b790a0f810d0792
[ "MIT" ]
1
2021-06-29T05:45:47.000Z
2021-06-29T05:45:47.000Z
# This file is copied from IGNN's repo import sys import numpy as np import scipy.sparse as sp import torch import torch_sparse import pickle as pkl import networkx as nx from time import perf_counter from sklearn import metrics def aug_normalized_adjacency(adj, need_orig=False): if not need_orig: adj = a...
35.676543
123
0.630632
331dbad2bfb760e9795ac1cbf6f1cf9d214c5bd1
13,700
py
Python
pypykatz/commons/readers/local/common/psapi.py
retr0-13/pypykatz
0d689fbd819c52ca46709737b2c063f40e302832
[ "MIT" ]
1
2020-01-11T20:41:01.000Z
2020-01-11T20:41:01.000Z
pypykatz/commons/readers/local/common/psapi.py
retr0-13/pypykatz
0d689fbd819c52ca46709737b2c063f40e302832
[ "MIT" ]
null
null
null
pypykatz/commons/readers/local/common/psapi.py
retr0-13/pypykatz
0d689fbd819c52ca46709737b2c063f40e302832
[ "MIT" ]
2
2019-08-04T23:16:05.000Z
2019-12-05T10:41:50.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2009-2016, Mario Vilas # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above...
35.492228
102
0.673212
331dc86b412d3879da697df7e52764ee514f5d0a
5,876
py
Python
tests/test_mvc/test_base.py
agoose77/spectate
a70d8e3fb8e9e3f053cb2a1c5a4c760df0d61cb3
[ "MIT" ]
null
null
null
tests/test_mvc/test_base.py
agoose77/spectate
a70d8e3fb8e9e3f053cb2a1c5a4c760df0d61cb3
[ "MIT" ]
null
null
null
tests/test_mvc/test_base.py
agoose77/spectate
a70d8e3fb8e9e3f053cb2a1c5a4c760df0d61cb3
[ "MIT" ]
null
null
null
from pytest import raises from spectate.core import MethodSpectator from spectate import mvc from .mock import model_events, Counter def test_control_is_only_for_model(): """Controls must be defined on a Model""" with raises(RuntimeError): class X: _control = mvc.Control("something") ...
22.51341
85
0.579135
331ddcb45770312e0226c2caa7e44e02170271de
1,295
py
Python
tests/mdts/lib/failure/combined_failure.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
1
2015-05-19T08:36:55.000Z
2015-05-19T08:36:55.000Z
tests/mdts/lib/failure/combined_failure.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
null
null
null
tests/mdts/lib/failure/combined_failure.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
1
2018-10-25T05:52:05.000Z
2018-10-25T05:52:05.000Z
# Copyright 2014 Midokura SARL # # 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...
30.116279
74
0.687259
331ddf6e9bd3f7e1eac2f5b631ab8288e61c3c79
4,539
py
Python
trinity/sync/__main__.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
137
2017-03-17T11:37:51.000Z
2022-03-07T07:51:28.000Z
trinity/sync/__main__.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
102
2017-04-07T10:43:03.000Z
2018-11-11T18:01:56.000Z
trinity/sync/__main__.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
39
2017-03-17T11:38:52.000Z
2021-02-18T23:05:17.000Z
import asyncio import logging from typing import ( Type, Union, ) from eth.exceptions import HeaderNotFound from p2p.peer import PeerPool from .common.chain import BaseHeaderChainSyncer from .full.chain import FastChainSyncer, RegularChainSyncer from .light.chain import LightChainSyncer def _test() -> None...
33.622222
98
0.706323
331df797ff0b2c52bf4dc841282436aed17b9da8
1,666
py
Python
bioseq/migrations/0008_auto_20200626_1729.py
sndg-arg/covid19-web
fe809c87563a00bbec53c3646338d571fdde6a69
[ "MIT" ]
null
null
null
bioseq/migrations/0008_auto_20200626_1729.py
sndg-arg/covid19-web
fe809c87563a00bbec53c3646338d571fdde6a69
[ "MIT" ]
2
2021-03-10T17:08:59.000Z
2021-09-29T17:40:48.000Z
bioseq/migrations/0008_auto_20200626_1729.py
sndg-arg/covid19-web
fe809c87563a00bbec53c3646338d571fdde6a69
[ "MIT" ]
null
null
null
# Generated by Django 3.0.6 on 2020-06-26 20:29 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('bioseq', '0007_auto_20200610_1832'), ] operations = [ migrations.AlterField( model_name='sample...
34
137
0.559424
331e04cd1a611032bc158b0e1486858499740a57
2,249
py
Python
layers.py
JiarunLiu/ViT-CIFAR
c942fe9ea48fd95a843b34a569ab13bc796ab304
[ "MIT" ]
38
2021-04-12T02:48:20.000Z
2022-03-08T14:25:04.000Z
layers.py
JiarunLiu/ViT-CIFAR
c942fe9ea48fd95a843b34a569ab13bc796ab304
[ "MIT" ]
5
2021-11-12T03:15:21.000Z
2022-03-22T03:17:14.000Z
layers.py
JiarunLiu/ViT-CIFAR
c942fe9ea48fd95a843b34a569ab13bc796ab304
[ "MIT" ]
8
2021-11-24T14:21:38.000Z
2022-03-29T15:07:37.000Z
import torch import torch.nn as nn import torch.nn.functional as F import torchsummary class TransformerEncoder(nn.Module): def __init__(self, feats:int, mlp_hidden:int, head:int=8, dropout:float=0.): super(TransformerEncoder, self).__init__() self.la1 = nn.LayerNorm(feats) self.msa = Mult...
30.808219
96
0.59582
331e188099b5e9ca430e0d8c4d4173d4ece1507e
23
py
Python
btd6_memory_info/generated/Assets/Scripts/Simulation/Towers/Behaviors/Abilities/Behaviors/TechBotLink/tech_bot_link.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Simulation/Towers/Behaviors/Abilities/Behaviors/TechBotLink/tech_bot_link.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Simulation/Towers/Behaviors/Abilities/Behaviors/TechBotLink/tech_bot_link.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class TechBotLink: pass
23
23
0.869565
331e4da792e0cef33af941df2b7e907443d1db42
710
py
Python
teafacto/scripts/theanowrap.py
lukovnikov/teafacto
5e863df8d061106ad705c0837f2d2ca4e08db0e4
[ "MIT" ]
2
2016-06-28T23:41:42.000Z
2017-01-14T12:41:36.000Z
teafacto/scripts/theanowrap.py
lukovnikov/teafacto
5e863df8d061106ad705c0837f2d2ca4e08db0e4
[ "MIT" ]
1
2016-04-20T20:09:20.000Z
2016-08-17T19:02:47.000Z
teafacto/scripts/theanowrap.py
lukovnikov/teafacto
5e863df8d061106ad705c0837f2d2ca4e08db0e4
[ "MIT" ]
5
2016-07-18T17:05:18.000Z
2018-10-13T05:40:05.000Z
from teafacto.core.base import tensorops as T, Val, param import numpy as np import sys x = Val(np.random.random((10,10))) #y = Val(np.random.random((10,10))) y = param((10, 10), name="y").uniform() w = param((10, 10), name="w").uniform() #z = T.dot(x, y) z = (x + y) u = z * w s = T.nnet.sigmoid s2 = T.nnet.sigmoid p...
21.515152
57
0.68169
331e4fb0b4e22118ba9ee515b5fcd50a9d0a9125
7,897
py
Python
dataprep/eda/intermediate.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
1
2022-02-14T07:18:00.000Z
2022-02-14T07:18:00.000Z
dataprep/eda/intermediate.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
null
null
null
dataprep/eda/intermediate.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
null
null
null
""" Intermediate class """ from typing import Any, Dict, Tuple, Union, Optional from pathlib import Path import json import os import numpy as np import pandas as pd from .dtypes_v2 import Continuous, Nominal, SmallCardNum class Intermediate(Dict[str, Any]): """This class contains intermediate results.""" ...
37.075117
97
0.470432
331e6e2071aa38e2b38f14a36352a3264aa28140
2,485
py
Python
run_exp/exp_5_2_prob_er.py
wutong8023/Continual-MM
0e39b1f4791f0444ed3ee4e8c6fc55bfcc2d001c
[ "MIT" ]
1
2021-06-30T04:27:57.000Z
2021-06-30T04:27:57.000Z
run_exp/exp_5_2_prob_er.py
wutong8023/Continual-MM
0e39b1f4791f0444ed3ee4e8c6fc55bfcc2d001c
[ "MIT" ]
null
null
null
run_exp/exp_5_2_prob_er.py
wutong8023/Continual-MM
0e39b1f4791f0444ed3ee4e8c6fc55bfcc2d001c
[ "MIT" ]
null
null
null
""" Author: Tong Time: 28-04-2021 """ def generate_cmd(): cmd_list = [] info_list = [] for model in ["er_nlp"]: # for dataset in ["seq-clinc150", "seq-maven", "seq-webred"]: for dataset in ["seq-clinc150"]: for seed in range(1): seed = seed * 100 ...
57.790698
116
0.268008
331e8cd258da26275a25f916b24ea43e08ddf55b
195
py
Python
duckietown_rl/gym_duckietown/config.py
rizavelioglu/AIDO-CITEC
97f4d8564dc6eb743063a7902a8932a429349c04
[ "MIT" ]
18
2020-08-31T11:30:41.000Z
2022-02-15T07:35:12.000Z
duckietown_rl/gym_duckietown/config.py
rizavelioglu/AIDO-CITEC
97f4d8564dc6eb743063a7902a8932a429349c04
[ "MIT" ]
5
2020-09-27T02:15:56.000Z
2022-01-23T17:56:24.000Z
duckietown_rl/gym_duckietown/config.py
rizavelioglu/AIDO-CITEC
97f4d8564dc6eb743063a7902a8932a429349c04
[ "MIT" ]
21
2020-04-28T16:38:01.000Z
2021-11-16T14:21:08.000Z
# coding=utf-8 DEFAULTS = { "map": "small_loop", "domain_rand": False, "max_steps": 500, "challenges": { "LF": "loop_obstacles", "LFV": "loop_pedestrians" } }
17.727273
33
0.533333
331e8dffde3ac98a24638bc6b2b602646257449d
1,311
py
Python
eda.py
innat/BraTS-MGMT-Classification
276b0146e315836c1ce82918c7c881cbd9c1517b
[ "Apache-2.0" ]
2
2022-01-22T11:13:57.000Z
2022-02-14T03:49:12.000Z
eda.py
innat/BraTS-MGMT-Classification
276b0146e315836c1ce82918c7c881cbd9c1517b
[ "Apache-2.0" ]
null
null
null
eda.py
innat/BraTS-MGMT-Classification
276b0146e315836c1ce82918c7c881cbd9c1517b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Oct 17 13:49:14 2021 @author: innat """ from config import * import config train_df_path, trian_img_path, registered_samples = config.sample_path(registered_samples = False) df = pd.read_csv(train_df_path); print(df.shape) display(df.head()); print(df.MGMT_value.value_count...
26.755102
98
0.624714
331e9857c4ea0de0817ac0a428f08c4543e7ef57
3,107
py
Python
bootcamp/multimedia/models.py
basiltiger/easy_bootcamp
875b9ed287f1a7824bb38f142dbe2f3b1ce54389
[ "MIT" ]
null
null
null
bootcamp/multimedia/models.py
basiltiger/easy_bootcamp
875b9ed287f1a7824bb38f142dbe2f3b1ce54389
[ "MIT" ]
null
null
null
bootcamp/multimedia/models.py
basiltiger/easy_bootcamp
875b9ed287f1a7824bb38f142dbe2f3b1ce54389
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.contrib.auth.models import User from django.db import models from autoslug import AutoSlugField from django.utils.encoding import python_2_unicode_compatible from django.utils.translation import ugettext_lazy as _ from django.db.models import Count from embed_video....
27.495575
81
0.69971
331e99bf75cfcafc444fb650f421b23e57f999b3
60,066
py
Python
tencentcloud/ame/v20190916/models.py
lleiyyang/tencentcloud-sdk-python
e6e6a4ce89286673b2322ae92d3c2fbf8665aa0b
[ "Apache-2.0" ]
465
2018-04-27T09:54:59.000Z
2022-03-29T02:18:01.000Z
tencentcloud/ame/v20190916/models.py
lleiyyang/tencentcloud-sdk-python
e6e6a4ce89286673b2322ae92d3c2fbf8665aa0b
[ "Apache-2.0" ]
91
2018-04-27T09:48:11.000Z
2022-03-12T08:04:04.000Z
tencentcloud/ame/v20190916/models.py
lleiyyang/tencentcloud-sdk-python
e6e6a4ce89286673b2322ae92d3c2fbf8665aa0b
[ "Apache-2.0" ]
232
2018-05-02T08:02:46.000Z
2022-03-30T08:02:48.000Z
# -*- coding: utf8 -*- # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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...
28.905679
163
0.590667
331eb79155f18c4fedae36120b63a472b4bb97c4
3,562
py
Python
doc/parameter_files/pcmdi_input_parameters_test.py
gleckler1/pcmdi_metrics
5b1c587ba64bb950debffed48b37430817be29e1
[ "X11", "MIT" ]
null
null
null
doc/parameter_files/pcmdi_input_parameters_test.py
gleckler1/pcmdi_metrics
5b1c587ba64bb950debffed48b37430817be29e1
[ "X11", "MIT" ]
null
null
null
doc/parameter_files/pcmdi_input_parameters_test.py
gleckler1/pcmdi_metrics
5b1c587ba64bb950debffed48b37430817be29e1
[ "X11", "MIT" ]
null
null
null
################################################################################ # OPTIONS ARE SET BY USER IN THIS FILE AS INDICATED BELOW: ################################################################################ ## METRICS RUN IDENTIFICATION case_id = 'sampletest_140910' ; # Defines a subdirectory to output...
71.24
175
0.683885
331edd8e84158ad0e2b5867b4f3cb0a03919f7e1
2,259
py
Python
linearlizer.py
benblack769/sound-eval
01a49b28d389eb49c97eafaaca067308805e3463
[ "MIT" ]
null
null
null
linearlizer.py
benblack769/sound-eval
01a49b28d389eb49c97eafaaca067308805e3463
[ "MIT" ]
null
null
null
linearlizer.py
benblack769/sound-eval
01a49b28d389eb49c97eafaaca067308805e3463
[ "MIT" ]
null
null
null
import tensorflow as tf from WeightBias import DenseLayer import numpy as np import os class Linearlizer: def __init__(self, input_size, hidden_size, output_size): self.input_size = input_size self.hidden_size = hidden_size self.output_size = output_size...
35.857143
114
0.655157
331f63810660a770bb0ce78f94ffd1f4ede75e9c
2,903
py
Python
python/app/plugins/http/Phpmyadmin/Phpmyadmin_Weakpwd.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
351
2020-02-26T05:23:26.000Z
2022-03-26T12:39:19.000Z
python/app/plugins/http/Phpmyadmin/Phpmyadmin_Weakpwd.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
15
2020-03-26T07:31:49.000Z
2022-03-09T02:12:17.000Z
python/app/plugins/http/Phpmyadmin/Phpmyadmin_Weakpwd.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
99
2020-02-28T07:30:46.000Z
2022-03-16T16:41:09.000Z
#!/usr/bin/env python3 import re import urllib from app.lib.utils.request import request from app.lib.utils.common import get_useragent class Phpmyadmin_Weakpwd_BaseVerify: def __init__(self, url): self.info = { 'name': 'Phpmyadmin弱口令漏洞', 'description': 'Phpmyadmin弱口令漏洞', ...
39.22973
177
0.517051
331f85bdb1ae7b3fffe216fa2aa5deb29ff54be7
4,171
py
Python
venv/Lib/site-packages/tests/test_046_FetchTupleMany_05.py
shehzadulislam/Assignment4
a9cced70be6ae5d2685027d68032d5849f638301
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/tests/test_046_FetchTupleMany_05.py
shehzadulislam/Assignment4
a9cced70be6ae5d2685027d68032d5849f638301
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/tests/test_046_FetchTupleMany_05.py
shehzadulislam/Assignment4
a9cced70be6ae5d2685027d68032d5849f638301
[ "Apache-2.0" ]
null
null
null
# # Licensed Materials - Property of IBM # # (c) Copyright IBM Corp. 2007-2008 # import unittest, sys import ibm_db import config from testfunctions import IbmDbTestFunctions class IbmDbTestCase(unittest.TestCase): def test_046_FetchTupleMany_05(self): obj = IbmDbTestFunctions() obj.assert_expect(self.r...
60.449275
142
0.715895
331f9b9d79aaa46c9a90de1b244d58b664b56d83
5,939
py
Python
sdks/python/appcenter_sdk/models/TeamUserResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/appcenter_sdk/models/TeamUserResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/appcenter_sdk/models/TeamUserResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ import pprint import re # noqa: F401 import six class TeamUserRespon...
28.830097
98
0.575013
331fab8597e2680f0cf9ccc00fdf9ec86a5b694d
3,274
py
Python
backend/src/apiserver/visualization/test_server.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
2,860
2018-05-24T04:55:01.000Z
2022-03-31T13:49:56.000Z
backend/src/apiserver/visualization/test_server.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
7,331
2018-05-16T09:03:26.000Z
2022-03-31T23:22:04.000Z
backend/src/apiserver/visualization/test_server.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
1,359
2018-05-15T11:05:41.000Z
2022-03-31T09:42:09.000Z
# Copyright 2019 The Kubeflow 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...
32.415842
151
0.637447
331fbae66e5e85dd5ea68fc80fa7801865df23c4
4,864
py
Python
python/ray/experimental/sgd/mnist_example.py
cumttang/ray
eb1e5fa2cf26233701ccbda3eb8a301ecd418d8c
[ "Apache-2.0" ]
2
2019-10-08T13:31:08.000Z
2019-10-22T18:34:52.000Z
python/ray/experimental/sgd/mnist_example.py
cumttang/ray
eb1e5fa2cf26233701ccbda3eb8a301ecd418d8c
[ "Apache-2.0" ]
1
2018-12-26T01:09:50.000Z
2018-12-26T01:09:50.000Z
python/ray/experimental/sgd/mnist_example.py
cumttang/ray
eb1e5fa2cf26233701ccbda3eb8a301ecd418d8c
[ "Apache-2.0" ]
6
2019-03-12T05:37:35.000Z
2020-03-09T12:25:17.000Z
#!/usr/bin/env python """Example of how to train a model with Ray SGD. We use a small model here, so no speedup for distributing the computation is expected. This example shows: - How to set up a simple input pipeline - How to evaluate model accuracy during training - How to get and set model weights -...
33.088435
79
0.61801
331fdf69308e3e55a8d02ab0461b718ab2c5d60d
620
py
Python
handle_test.py
MingdaMingda/WE060001-NMJKL
50c18dc78e03222d4b94fba6653fc0ad759f1aee
[ "Unlicense" ]
null
null
null
handle_test.py
MingdaMingda/WE060001-NMJKL
50c18dc78e03222d4b94fba6653fc0ad759f1aee
[ "Unlicense" ]
null
null
null
handle_test.py
MingdaMingda/WE060001-NMJKL
50c18dc78e03222d4b94fba6653fc0ad759f1aee
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import logging import tornado.web import io_weixin_auth class Test2Handler(tornado.web.RequestHandler): def get(self): logging.info('AAA: IN test-get') code = self.get_argument('code', None) token_info = io_weixin_auth.get_user_tok...
24.8
74
0.675806
33200b93066b6f70e8ebbd795e424261e9ded5f4
186
py
Python
tests/integration/hub_usage/dummyhub_abs/__init__.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
15,179
2020-04-28T10:23:56.000Z
2022-03-31T14:35:25.000Z
tests/integration/hub_usage/dummyhub_abs/__init__.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
3,912
2020-04-28T13:01:29.000Z
2022-03-31T14:36:46.000Z
tests/integration/hub_usage/dummyhub_abs/__init__.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
1,955
2020-04-28T10:50:49.000Z
2022-03-31T12:28:34.000Z
from helper import foo from jina import Executor class DummyHubExecutorAbs(Executor): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) foo()
18.6
41
0.666667
3320158b34f5ec30a11f38f641d794f591f52bda
498
py
Python
xos/core/migrations/0011_sliver_instance_uuid.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/core/migrations/0011_sliver_instance_uuid.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/core/migrations/0011_sliver_instance_uuid.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('core', '0010_auto_20150118_1926'), ] operations = [ migrations.AddField( model_name='instance', name...
23.714286
107
0.624498
33201892f4fb3a369b9c2f656334f9faa1eb89ed
622
py
Python
src/BribeNet/gui/apps/temporal/wizard/rating_methods/p_gamma_rating.py
RobMurray98/BribeNet
09ddd8f15d9ab5fac44ae516ed92c6ba5e5119bc
[ "MIT" ]
null
null
null
src/BribeNet/gui/apps/temporal/wizard/rating_methods/p_gamma_rating.py
RobMurray98/BribeNet
09ddd8f15d9ab5fac44ae516ed92c6ba5e5119bc
[ "MIT" ]
null
null
null
src/BribeNet/gui/apps/temporal/wizard/rating_methods/p_gamma_rating.py
RobMurray98/BribeNet
09ddd8f15d9ab5fac44ae516ed92c6ba5e5119bc
[ "MIT" ]
null
null
null
import tkinter as tk from BribeNet.graph.ratingMethod import RatingMethod from BribeNet.gui.apps.temporal.wizard.rating_methods.rating_method_frame import RatingMethodFrame class PGammaRating(RatingMethodFrame): enum_value = RatingMethod.P_GAMMA_RATING name = 'p_gamma_rating' def __init__(self, parent):...
27.043478
98
0.692926
332033872708a9eb9dc613e794f9690550717222
839
py
Python
alipay/aop/api/domain/AlipaySecurityProdMyGetchyQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipaySecurityProdMyGetchyQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipaySecurityProdMyGetchyQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipaySecurityProdMyGetchyQueryModel(object): def __init__(self): self._chen = None @property def chen(self): return self._chen @chen.setter def chen(self, value...
20.463415
59
0.568534
33203f09b533654ef8a6d0a6aa7347017b40aedf
1,824
py
Python
unittest/python/bindings_frame.py
yDMhaven/pinocchio
fabed17d5ad0dc1c8d251c64cfa656a0215469a5
[ "BSD-2-Clause-FreeBSD" ]
1
2020-04-07T07:23:34.000Z
2020-04-07T07:23:34.000Z
unittest/python/bindings_frame.py
yDMhaven/pinocchio
fabed17d5ad0dc1c8d251c64cfa656a0215469a5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
unittest/python/bindings_frame.py
yDMhaven/pinocchio
fabed17d5ad0dc1c8d251c64cfa656a0215469a5
[ "BSD-2-Clause-FreeBSD" ]
1
2020-02-25T13:34:37.000Z
2020-02-25T13:34:37.000Z
import unittest import pinocchio as pin pin.switchToNumpyMatrix() import numpy as np class TestFrameBindings(unittest.TestCase): def setUp(self): self.model = pin.buildSampleModelHumanoidRandom() self.parent_idx = self.model.getJointId("rarm2_joint") if self.model.existJointName("rarm2_joint") els...
38
134
0.688048
33206b32e318cd9999db81d8fc3c99953a324884
4,793
py
Python
toppra/utils.py
Puttichai/toppra
4d7dbfdc0772b72e4cc8283c944baf142357a76e
[ "MIT" ]
null
null
null
toppra/utils.py
Puttichai/toppra
4d7dbfdc0772b72e4cc8283c944baf142357a76e
[ "MIT" ]
null
null
null
toppra/utils.py
Puttichai/toppra
4d7dbfdc0772b72e4cc8283c944baf142357a76e
[ "MIT" ]
null
null
null
""" Some utility functions need to generate PathConstraints. Most are specific to different scenarios. """ import logging, coloredlogs import numpy as np LOGGER = logging.getLogger(__name__) def setup_logging(level="WARN"): """ Setup basic logging facility to console. """ coloredlogs.install(logger=loggi...
30.528662
106
0.613603
33207f22186a331cb374b1fb282ae5b5be36c79b
3,034
py
Python
tilesets/models.py
dbmi-bgm/cgap-higlass-server
c3d1b640cdbbcb92740a20988620ab6728d5a159
[ "MIT" ]
null
null
null
tilesets/models.py
dbmi-bgm/cgap-higlass-server
c3d1b640cdbbcb92740a20988620ab6728d5a159
[ "MIT" ]
null
null
null
tilesets/models.py
dbmi-bgm/cgap-higlass-server
c3d1b640cdbbcb92740a20988620ab6728d5a159
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import django import django.contrib.auth.models as dcam import slugid from django.db import models class ViewConf(models.Model): created = models.DateTimeField(auto_now_add=True) higlassVersion = models.CharField(max_length=16, default='') uuid = models.CharField(...
33.711111
99
0.665788
332094a62446ed7ef19698ba9f8773a4170c5fdc
134
py
Python
profiles/urls.py
benoitboyer/DjangoBio
415e048e7207f4abc6ac9b6bde7b7c7043aab78a
[ "MIT" ]
null
null
null
profiles/urls.py
benoitboyer/DjangoBio
415e048e7207f4abc6ac9b6bde7b7c7043aab78a
[ "MIT" ]
null
null
null
profiles/urls.py
benoitboyer/DjangoBio
415e048e7207f4abc6ac9b6bde7b7c7043aab78a
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views app_name="profiles" urlpatterns = [ url(r'^$',views.index,name="index" ), ]
16.75
41
0.686567
3320a6db3dcad21135c0bf5022b29cc39d76d767
922
py
Python
feature_selection/new_enron_feature.py
blockchain99/ml-udacity
cfb32b529787f624e39b94f8d26bf71877fddb40
[ "MIT" ]
13
2016-04-29T07:21:44.000Z
2021-09-29T03:20:51.000Z
feature_selection/new_enron_feature.py
blockchain99/ml-udacity
cfb32b529787f624e39b94f8d26bf71877fddb40
[ "MIT" ]
1
2017-02-07T07:37:20.000Z
2017-02-19T08:37:17.000Z
ml-udacity/feature_selection/new_enron_feature.py
napjon/moocs_solution
5c96f43f6cb2ae643f482580446869953a99beb6
[ "MIT" ]
13
2016-01-25T03:23:57.000Z
2019-10-13T15:29:23.000Z
#!/usr/bin/python import os import sys import zipfile from poi_flag_email import poiFlagEmail, getToFromStrings data_dict = {} with zipfile.ZipFile('emails.zip', "r") as z: z.extractall() for email_message in os.listdir("emails"): if email_message == ".DS_Store": continue message = open(os.getc...
25.611111
75
0.625813
3320c783e4edb2aacf918d092ee7b7ef3c2762a6
2,967
py
Python
raspi/io_states/e_ink_state.py
kylecombes/poe-bocs
f2d6d96ee4e3d2365af3a7931697d2ded3433574
[ "MIT" ]
1
2019-01-19T22:34:16.000Z
2019-01-19T22:34:16.000Z
raspi/io_states/e_ink_state.py
kylecombes/bocs
f2d6d96ee4e3d2365af3a7931697d2ded3433574
[ "MIT" ]
null
null
null
raspi/io_states/e_ink_state.py
kylecombes/bocs
f2d6d96ee4e3d2365af3a7931697d2ded3433574
[ "MIT" ]
null
null
null
from os import path from raspi.io_states.io_state import IOState class EInkState(IOState): image_path = None text = None def __init__(self, old_state_json=None): """ Creates a new EInkState to keep track of the state attributes of the e-ink display. Currently, only an image or so...
41.208333
119
0.629255
3320fbdc6850e081fe04db1d3b6cab4b22cf3bab
1,245
py
Python
conf/settings_production.py
casainurbania/exam3
25f814cd0cc4b839fb9a12039af04837b61961dd
[ "Apache-2.0" ]
null
null
null
conf/settings_production.py
casainurbania/exam3
25f814cd0cc4b839fb9a12039af04837b61961dd
[ "Apache-2.0" ]
null
null
null
conf/settings_production.py
casainurbania/exam3
25f814cd0cc4b839fb9a12039af04837b61961dd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云(BlueKing) available. Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obt...
42.931034
115
0.613655
3321036a3ef56e12435d07c13af8594ec2052563
3,738
py
Python
influxdb_client/domain/threshold_check.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
1
2021-06-06T10:39:47.000Z
2021-06-06T10:39:47.000Z
influxdb_client/domain/threshold_check.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
null
null
null
influxdb_client/domain/threshold_check.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
null
null
null
# coding: utf-8 """ Influx API Service No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: 0.1.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from influxd...
26.510638
124
0.566613
33211a3b9d0339830c4aca0464610c62b0f40ae5
5,121
py
Python
bark_ml/observers/nearest_state_observer.py
GAIL-4-BARK/bark-ml
c61c897842c2184ee842428e451bae3be2cd7242
[ "MIT" ]
null
null
null
bark_ml/observers/nearest_state_observer.py
GAIL-4-BARK/bark-ml
c61c897842c2184ee842428e451bae3be2cd7242
[ "MIT" ]
24
2020-05-05T13:53:17.000Z
2020-08-13T15:58:51.000Z
bark_ml/observers/nearest_state_observer.py
Brucknem/bark-ml
c61c897842c2184ee842428e451bae3be2cd7242
[ "MIT" ]
null
null
null
# Copyright (c) 2020 fortiss GmbH # # Authors: Patrick Hart, Julian Bernhard, Klemens Esterle, and # Tobias Kessler # # This software is released under the MIT License. # https://opensource.org/licenses/MIT from gym import spaces import numpy as np from bark.core.models.dynamic import StateDefinition from bark.core.w...
40.642857
87
0.695958
33213a4be73ac35815bdbd9bb75226b3fb50e4ac
56,245
py
Python
bmediacenter/src/MC_AudioPlayer.py
pololoko111/enigma2-plugins
79b4e5e15663bcda7d1b679769e10942915f5bf5
[ "OLDAP-2.3" ]
null
null
null
bmediacenter/src/MC_AudioPlayer.py
pololoko111/enigma2-plugins
79b4e5e15663bcda7d1b679769e10942915f5bf5
[ "OLDAP-2.3" ]
null
null
null
bmediacenter/src/MC_AudioPlayer.py
pololoko111/enigma2-plugins
79b4e5e15663bcda7d1b679769e10942915f5bf5
[ "OLDAP-2.3" ]
null
null
null
from enigma import eTimer, iServiceInformation, iPlayableService, ePicLoad, RT_VALIGN_CENTER, RT_HALIGN_LEFT, RT_HALIGN_RIGHT, RT_HALIGN_CENTER, gFont, eListbox, ePoint, eListboxPythonMultiContent, eServiceCenter from Components.MenuList import MenuList from Screens.Screen import Screen from Screens.ServiceInfo import ...
39.918382
245
0.712952
332140cf5fdaa64aaed6f0da317a867d9fa70e55
23,928
py
Python
src/dcos_e2e/_vendor/dcos_launch/config.py
cprovencher/dcos-e2e
c54b3d41f246efe3f90dcf225b0bffdc1f615daa
[ "Apache-2.0" ]
1
2017-07-06T18:27:53.000Z
2017-07-06T18:27:53.000Z
src/dcos_e2e/_vendor/dcos_launch/config.py
cprovencher/dcos-e2e
c54b3d41f246efe3f90dcf225b0bffdc1f615daa
[ "Apache-2.0" ]
96
2017-06-04T23:29:07.000Z
2017-09-07T20:10:42.000Z
src/dcos_e2e/_vendor/dcos_launch/config.py
cprovencher/dcos-e2e
c54b3d41f246efe3f90dcf225b0bffdc1f615daa
[ "Apache-2.0" ]
4
2017-06-01T09:58:25.000Z
2017-08-22T16:32:45.000Z
""" Module for defining and validating user-provided configuration """ import logging import os import sys import uuid import requests import cerberus import yaml from ..dcos_launch import util from ..dcos_launch.platforms import aws, gcp log = logging.getLogger(__name__) def expand_path(path: str, relative_dir: s...
34.134094
120
0.57113
332155164a6b0e9c1036de0e33060e38c9533730
3,408
py
Python
foresight/environment/azure/azure_environment_info_provider.py
thundra-io/thundra-agent-python
448e18c17d8730c381b2e2a773782cf80c5a7cfb
[ "Apache-2.0" ]
15
2021-07-28T08:03:50.000Z
2021-11-08T08:36:06.000Z
foresight/environment/azure/azure_environment_info_provider.py
thundra-io/thundra-agent-python
448e18c17d8730c381b2e2a773782cf80c5a7cfb
[ "Apache-2.0" ]
1
2021-08-08T07:45:45.000Z
2021-08-08T12:41:36.000Z
foresight/environment/azure/azure_environment_info_provider.py
thundra-io/thundra-agent-python
448e18c17d8730c381b2e2a773782cf80c5a7cfb
[ "Apache-2.0" ]
3
2021-08-07T14:19:23.000Z
2021-12-08T15:35:40.000Z
from uuid import uuid4 from foresight.environment.git.git_helper import GitHelper from foresight.environment.environment_info import EnvironmentInfo from foresight.utils.test_runner_utils import TestRunnerUtils import os, logging from foresight.utils.generic_utils import print_debug_message_to_console LOGGER = logging...
45.44
117
0.725939
33216be9d29ad69f82c1a891e9f5b88f591845c8
472
py
Python
tests/unit/flow/test_slow_executor_shutdown.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
4
2021-06-29T04:14:31.000Z
2021-08-01T07:01:08.000Z
tests/unit/flow/test_slow_executor_shutdown.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
1
2021-12-25T09:06:13.000Z
2021-12-25T09:06:13.000Z
tests/unit/flow/test_slow_executor_shutdown.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
1
2021-06-29T17:03:24.000Z
2021-06-29T17:03:24.000Z
import os import time from jina import Flow, Executor class SlowExecutor(Executor): def close(self) -> None: with open(os.path.join(self.metas.workspace, 'test'), 'w') as f: time.sleep(10) f.write('x') def test_slow_executor_close(tmpdir): with Flow().add( uses={'jty...
22.47619
87
0.601695
3321789b884dfc1a34e4625e6294fb5f09d87535
2,525
py
Python
chapter04-bytes-str/sanitize.py
cgDeepLearn/fluentpython
ff89ad5a7da59c71f57b6392c9f5d5c6178e0475
[ "MIT" ]
1
2019-11-23T05:57:02.000Z
2019-11-23T05:57:02.000Z
chapter04-bytes-str/sanitize.py
cgDeepLearn/fluentpython
ff89ad5a7da59c71f57b6392c9f5d5c6178e0475
[ "MIT" ]
null
null
null
chapter04-bytes-str/sanitize.py
cgDeepLearn/fluentpython
ff89ad5a7da59c71f57b6392c9f5d5c6178e0475
[ "MIT" ]
1
2019-11-23T05:57:43.000Z
2019-11-23T05:57:43.000Z
""" Radical folding and text sanitizing. Handling a string with `cp1252` symbols: >>> order = '“Herr Voß: • ½ cup of Œtker™ caffè latte • bowl of açaí.”' >>> shave_marks(order) '“Herr Voß: • ½ cup of Œtker™ caffe latte • bowl of acai.”' >>> shave_marks_latin(order) '“Herr Voß: • ½ cup of Œtker™ caff...
31.17284
75
0.583762
3321b1e3cda35d2f46268bae16471030c3cbe9b3
49,489
py
Python
test/unit/v0/test_bucket.py
ehossack/b2-sdk-python
034bec38671c0862b6956915993061359dbd51f6
[ "MIT" ]
null
null
null
test/unit/v0/test_bucket.py
ehossack/b2-sdk-python
034bec38671c0862b6956915993061359dbd51f6
[ "MIT" ]
null
null
null
test/unit/v0/test_bucket.py
ehossack/b2-sdk-python
034bec38671c0862b6956915993061359dbd51f6
[ "MIT" ]
null
null
null
###################################################################### # # File: test/unit/v0/test_bucket.py # # Copyright 2019 Backblaze Inc. All Rights Reserved. # # License https://www.backblaze.com/using_b2_code.html # ###################################################################### from io import BytesIO im...
39.559552
101
0.621876
3321d281a3a2215df4ae1ccb00a5472fa3d28dc3
2,187
py
Python
tests/constraint/test_robust_can_linear.py
Puttichai/toppra
4d7dbfdc0772b72e4cc8283c944baf142357a76e
[ "MIT" ]
null
null
null
tests/constraint/test_robust_can_linear.py
Puttichai/toppra
4d7dbfdc0772b72e4cc8283c944baf142357a76e
[ "MIT" ]
null
null
null
tests/constraint/test_robust_can_linear.py
Puttichai/toppra
4d7dbfdc0772b72e4cc8283c944baf142357a76e
[ "MIT" ]
null
null
null
import toppra import pytest import numpy as np @pytest.fixture() def accel_constraint(request): dof = 5 np.random.seed(0) alim_ = np.random.rand(5) alim = np.vstack((-alim_, alim_)).T constraint = toppra.constraint.JointAccelerationConstraint(alim) np.random.seed(0) path = toppra.SplineIn...
36.45
108
0.652492
3321daff8bf9a7efa4f0aa2f35c14fadfbe4de47
33,927
py
Python
sympy/polys/factortools.py
lemmalearning/sympy
62ad387ed3f7b243c889dd342296afc9a32ad1ea
[ "BSD-3-Clause" ]
319
2016-09-22T15:54:48.000Z
2022-03-18T02:36:58.000Z
sympy/polys/factortools.py
shashank-agg/sympy
ecf69893c0b9927ea7192113b2421d639aee6ffb
[ "BSD-3-Clause" ]
9
2016-11-03T21:56:41.000Z
2020-08-09T19:27:37.000Z
sympy/polys/factortools.py
shashank-agg/sympy
ecf69893c0b9927ea7192113b2421d639aee6ffb
[ "BSD-3-Clause" ]
27
2016-10-06T16:05:32.000Z
2022-03-18T02:37:00.000Z
"""Polynomial factorization routines in characteristic zero. """ from __future__ import print_function, division from sympy.polys.galoistools import ( gf_from_int_poly, gf_to_int_poly, gf_lshift, gf_add_mul, gf_mul, gf_div, gf_rem, gf_gcdex, gf_sqf_p, gf_factor_sqf, gf_factor) from sympy.poly...
25.093935
80
0.519409
3321dce29859f4fa766e8552a3da2ae1f9eee721
1,647
py
Python
setup.py
paradoor/gssp_experiments
cfa8781e0654162002fe183948357926950cc247
[ "MIT" ]
null
null
null
setup.py
paradoor/gssp_experiments
cfa8781e0654162002fe183948357926950cc247
[ "MIT" ]
null
null
null
setup.py
paradoor/gssp_experiments
cfa8781e0654162002fe183948357926950cc247
[ "MIT" ]
null
null
null
import mysql.connector import json import os discordpy_command = "python3 -m pip install -U https://github.com/Rapptz/discord.py/archive/rewrite.zip#egg=discord.py" requirements = "python3 -m pip install -r requirements.txt" # Load config files config_f = open("config.json") config = json.load(config_f) # Setup disco...
27.45
119
0.73224
3321fc0fff0292b23378c52bc907f07b24cec284
49,373
py
Python
cinder/volume/drivers/netapp/dataontap/block_base.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/netapp/dataontap/block_base.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/netapp/dataontap/block_base.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2012 NetApp, Inc. All rights reserved. # Copyright (c) 2014 Ben Swartzlander. All rights reserved. # Copyright (c) 2014 Navneet Singh. All rights reserved. # Copyright (c) 2014 Clinton Knight. All rights reserved. # Copyright (c) 2014 Alex Meade. All rights reserved. # Copyright (c) 2014 Andrew Ker...
42.055366
79
0.61167
3321ff2496033e23affe22f5852185c314a832ea
701
py
Python
tests/models/AutoInt_test.py
whksmo/deep-intent
2617373cf94fccbe9fc37d50ee010a5c2b8418b0
[ "MIT" ]
1
2019-07-29T13:33:12.000Z
2019-07-29T13:33:12.000Z
tests/models/AutoInt_test.py
ocelot43/DeepCTR
8182ea386e6529a1a2294d8e2d33fc040d0cbfb2
[ "MIT" ]
7
2019-12-16T22:03:26.000Z
2022-02-10T00:17:03.000Z
tests/models/AutoInt_test.py
whksmo/deep-intent
2617373cf94fccbe9fc37d50ee010a5c2b8418b0
[ "MIT" ]
null
null
null
import pytest from deepctr.models import AutoInt from ..utils import check_model, get_test_data,SAMPLE_SIZE @pytest.mark.parametrize( 'att_layer_num,dnn_hidden_units,sparse_feature_num', [(1, (), 1), (1, (4,), 1)]#(0, (4,), 2), (2, (4, 4,), 2) ) def test_AutoInt(att_layer_num, dnn_hidden_units, sparse_feature...
31.863636
95
0.713267
3322025b3ec8f1ba8711808f03b8de16a0e1a098
1,485
py
Python
src/py_dbutils/rdbms/sqlite.py
cclauss/py-dbutils
ccd901b4cd9fee9480c87aa6386d2025df023ea7
[ "MIT" ]
6
2021-03-21T23:21:34.000Z
2022-03-15T03:19:42.000Z
src/py_dbutils/rdbms/sqlite.py
cclauss/py-dbutils
ccd901b4cd9fee9480c87aa6386d2025df023ea7
[ "MIT" ]
3
2020-03-24T17:00:22.000Z
2021-03-21T23:25:27.000Z
src/py_dbutils/rdbms/sqlite.py
cclauss/py-dbutils
ccd901b4cd9fee9480c87aa6386d2025df023ea7
[ "MIT" ]
3
2021-03-21T23:16:52.000Z
2022-02-04T21:53:11.000Z
from ..parents import ConnRDBMS from ..parents import DB as ParentDB import sqlalchemy import sys import os import logging as lg import sqlite3 lg.basicConfig() logging = lg.getLogger(__name__) class DB(ConnRDBMS, ParentDB): # get from here: # https://docs.sqlalchemy.org/en/latest/core/engines.html sql_...
31.595745
102
0.645791
33221097eb066397e79f1e30c1fefb5408f0e8b0
408
py
Python
django_learning/updates/models.py
angelptli/django-learning
f0d25e4b85526c2c092c4e4d2f108e7602db7f0d
[ "MIT" ]
null
null
null
django_learning/updates/models.py
angelptli/django-learning
f0d25e4b85526c2c092c4e4d2f108e7602db7f0d
[ "MIT" ]
null
null
null
django_learning/updates/models.py
angelptli/django-learning
f0d25e4b85526c2c092c4e4d2f108e7602db7f0d
[ "MIT" ]
null
null
null
from django.db import models from django.urls import reverse class OwnerUpdate(models.Model): update_title = models.CharField(max_length=100) content = models.TextField() update_type = models.BooleanField(default=False) def __str__(self): return "Update " + str(self.id) def get_abs...
29.142857
71
0.698529
332269a7484265e19933932a88a30e5229b4ad5b
30,967
py
Python
mergin/client_pull.py
pasquierjb/mergin-py-client
45e50d34cca5a8a2d7ce7b6dc738e64bfe2f80f4
[ "MIT" ]
null
null
null
mergin/client_pull.py
pasquierjb/mergin-py-client
45e50d34cca5a8a2d7ce7b6dc738e64bfe2f80f4
[ "MIT" ]
null
null
null
mergin/client_pull.py
pasquierjb/mergin-py-client
45e50d34cca5a8a2d7ce7b6dc738e64bfe2f80f4
[ "MIT" ]
null
null
null
""" To download projects asynchronously. Start download: (does not block) job = download_project_async(mergin_client, 'user/project', '/tmp/my_project) Then we need to wait until we are finished downloading - either by periodically calling download_project_is_running(job) that will just return True/False or by callin...
41.124834
151
0.669616
3322771933cc933684280cb64741e2e8b7a574d9
3,269
py
Python
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/aio/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/aio/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/aio/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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 ...
48.073529
130
0.70572
3322af778e996374461abc48d82bd85d64cd63c0
7,735
py
Python
scripts/train.py
spotify-research/cosernn
057de1090eeb84a1f0bd5d9954bd41ed437e398d
[ "Apache-2.0" ]
18
2020-10-12T13:20:45.000Z
2022-03-17T17:40:23.000Z
scripts/train.py
spotify-research/cosernn
057de1090eeb84a1f0bd5d9954bd41ed437e398d
[ "Apache-2.0" ]
2
2021-12-16T14:13:59.000Z
2022-03-24T15:15:20.000Z
scripts/train.py
spotify-research/cosernn
057de1090eeb84a1f0bd5d9954bd41ed437e398d
[ "Apache-2.0" ]
4
2021-02-04T08:53:38.000Z
2022-02-07T02:04:41.000Z
# Copyright 2020 Spotify AB # 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, sof...
44.2
193
0.681965
3322ff088daf6672f204f3fb1eedfef2c3a6cf90
687
py
Python
setup.py
CMB-NCSA/spt3g_ingest
e8ab1b5c9abdc705f5b1f4e0a93a3044b71d6209
[ "Apache-2.0" ]
null
null
null
setup.py
CMB-NCSA/spt3g_ingest
e8ab1b5c9abdc705f5b1f4e0a93a3044b71d6209
[ "Apache-2.0" ]
null
null
null
setup.py
CMB-NCSA/spt3g_ingest
e8ab1b5c9abdc705f5b1f4e0a93a3044b71d6209
[ "Apache-2.0" ]
null
null
null
from distutils.core import setup import glob # Get the scripts/bin files bin_files = glob.glob("bin/*") # Build the structure for etc folder etc_dirs = ['etc'] data_files = [("", ["setpath.sh"])] # In case we want files in etc # for edir in etc_dirs: # data_files.append((edir, glob.glob("{}/*".format(edir)))) # T...
25.444444
62
0.636099
33233de047ecd2c246b5e21bce35b164693cc87e
1,201
py
Python
rlberry/agents/torch/tests/test_torch_training.py
akrouriad/rlberry
dde4e2cbafca05fdef1df07646bb6368059eeadf
[ "MIT" ]
null
null
null
rlberry/agents/torch/tests/test_torch_training.py
akrouriad/rlberry
dde4e2cbafca05fdef1df07646bb6368059eeadf
[ "MIT" ]
null
null
null
rlberry/agents/torch/tests/test_torch_training.py
akrouriad/rlberry
dde4e2cbafca05fdef1df07646bb6368059eeadf
[ "MIT" ]
null
null
null
from rlberry.agents.torch.utils.training import loss_function_factory, optimizer_factory from torch.nn import functional as F from rlberry.envs.benchmarks.ball_exploration.ball2d import get_benchmark_env from rlberry.agents.torch.utils.models import default_policy_net_fn # loss_function_factory assert isinstance(loss_...
32.459459
88
0.761032
33237563d3eda5ac3ec5b4ece99660640d025fb2
4,136
py
Python
self_attention.py
steffenvan/bachelor-thesis
1472ce1ba32c107e25d4c5cc2ac64edfc04ba1ff
[ "Apache-2.0" ]
2
2019-11-20T09:14:01.000Z
2021-12-22T10:58:34.000Z
self_attention.py
steffenvan/attentive-MT
1472ce1ba32c107e25d4c5cc2ac64edfc04ba1ff
[ "Apache-2.0" ]
null
null
null
self_attention.py
steffenvan/attentive-MT
1472ce1ba32c107e25d4c5cc2ac64edfc04ba1ff
[ "Apache-2.0" ]
3
2019-11-18T01:11:14.000Z
2020-03-21T00:18:31.000Z
import tensorflow as tf def split_heads_2d(inputs, num_heads): s = inputs.shape[:-1] ret_shape = [-1, s[1], s[2], num_heads, inputs.shape[-1] // num_heads] split = tf.reshape(inputs, ret_shape) return tf.transpose(split, [0, 3, 1, 2, 4]) def combine_heads_2d(inputs): # inputs: [batch, num_heads, ...
42.204082
119
0.656431
332399683249ecf51db201cb7ff2b773c7e0f25e
565
py
Python
hs_core/migrations/0039_doi_url.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
178
2015-01-08T23:03:36.000Z
2022-03-03T13:56:45.000Z
hs_core/migrations/0039_doi_url.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
4,125
2015-01-01T14:26:15.000Z
2022-03-31T16:38:55.000Z
hs_core/migrations/0039_doi_url.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
53
2015-03-15T17:56:51.000Z
2022-03-17T00:32:16.000Z
# -*- coding: utf-8 -*- from hs_core.models import Identifier from django.db import migrations def remove_dx(apps, schema_editor): for id in Identifier.objects.filter(url__startswith='http://dx.'): id.url = id.url.replace('http://dx.', 'https://') id.save() def backwards(apps, schema_edi...
21.730769
70
0.646018
3323a24543c548f6d4980528685af745580acd30
1,260
py
Python
reinvent_models/link_invent/model_vocabulary/paired_model_vocabulary.py
GT4SD/-reinvent_models
e1cf00d1b24fe5f39354e34829adc25460da84e2
[ "MIT" ]
null
null
null
reinvent_models/link_invent/model_vocabulary/paired_model_vocabulary.py
GT4SD/-reinvent_models
e1cf00d1b24fe5f39354e34829adc25460da84e2
[ "MIT" ]
1
2022-03-07T12:18:00.000Z
2022-03-07T12:18:00.000Z
reinvent_models/link_invent/model_vocabulary/paired_model_vocabulary.py
GT4SD/reinvent_models
e1cf00d1b24fe5f39354e34829adc25460da84e2
[ "MIT" ]
null
null
null
from typing import List from reinvent_models.link_invent.model_vocabulary.vocabulary import SMILESTokenizer, Vocabulary from reinvent_models.link_invent.model_vocabulary.model_vocabulary import ModelVocabulary class PairedModelVocabulary: def __init__(self, input_vocabulary: Vocabulary, input_tokenizer: S...
43.448276
96
0.730159
3323bea588e391c38b53a31f978dd08c0d320aa0
1,992
py
Python
lewis_emulators/linmot/interfaces/stream_interface.py
ISISComputingGroup/EPICS-DeviceEmulator
026c2a14a16bb204ea7527e3765daa182cafa814
[ "BSD-3-Clause" ]
2
2020-10-20T16:49:13.000Z
2021-02-19T10:41:44.000Z
lewis_emulators/linmot/interfaces/stream_interface.py
ISISComputingGroup/EPICS-DeviceEmulator
026c2a14a16bb204ea7527e3765daa182cafa814
[ "BSD-3-Clause" ]
9
2019-03-22T15:35:15.000Z
2021-07-28T11:05:43.000Z
lewis_emulators/linmot/interfaces/stream_interface.py
ISISComputingGroup/EPICS-DeviceEmulator
026c2a14a16bb204ea7527e3765daa182cafa814
[ "BSD-3-Clause" ]
1
2020-10-21T17:02:44.000Z
2020-10-21T17:02:44.000Z
from lewis.adapters.stream import StreamInterface from lewis.utils.command_builder import CmdBuilder class LinmotStreamInterface(StreamInterface): in_terminator = "\r\n" out_terminator = "\r" # Commands that we expect via serial during normal operation commands = { CmdBuilder("set_posit...
39.058824
108
0.673193
3323e1ba204041bfa49b9640361c4a72106c282f
828
py
Python
demonet/models/backbone_utils.py
zhiqwang/demonet
8370fc41d56d28939403b883f4b4014172895781
[ "Apache-2.0" ]
11
2020-08-28T09:29:42.000Z
2021-10-03T09:08:11.000Z
demonet/models/backbone_utils.py
vanillapi/demonet
8370fc41d56d28939403b883f4b4014172895781
[ "Apache-2.0" ]
1
2020-05-01T14:57:57.000Z
2020-05-01T17:59:40.000Z
demonet/models/backbone_utils.py
zhiqwang/demonet
8370fc41d56d28939403b883f4b4014172895781
[ "Apache-2.0" ]
3
2020-04-15T07:53:13.000Z
2020-05-18T18:51:31.000Z
import warnings def _validate_trainable_layers(pretrained, trainable_backbone_layers, max_value, default_value): # dont freeze any layers if pretrained model or backbone is not used if not pretrained: if trainable_backbone_layers is not None: warnings.warn( "Changing traina...
43.578947
114
0.729469
3324150da84dad305d2509c82917a26ecabf792e
126,058
py
Python
Tensorflow_OpenCV_Nightly/source/tensorflow/python/ops/gen_data_flow_ops.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2017-12-05T15:35:47.000Z
2017-12-05T15:35:47.000Z
Tensorflow_OpenCV_Nightly/source/tensorflow/python/ops/gen_data_flow_ops.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
10
2017-07-13T00:24:03.000Z
2017-07-17T07:39:03.000Z
Tensorflow_OpenCV_Nightly/source/tensorflow/python/ops/gen_data_flow_ops.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
7
2017-08-01T04:02:07.000Z
2018-10-06T21:07:20.000Z
"""Python wrappers around TensorFlow ops. This file is MACHINE GENERATED! Do not edit. """ import collections as _collections from google.protobuf import text_format as _text_format from tensorflow.core.framework import op_def_pb2 as _op_def_pb2 # Needed to trigger the call to _set_call_cpp_shape_fn. from tensorfl...
26.549705
208
0.636715
33244f48c9784f91bf681fbaf1ac0961dad494dc
20,260
py
Python
dame.py
johnarban/arban
dcd2d0838f72c39bf3a52aabfa74d6ea28933d02
[ "MIT" ]
null
null
null
dame.py
johnarban/arban
dcd2d0838f72c39bf3a52aabfa74d6ea28933d02
[ "MIT" ]
null
null
null
dame.py
johnarban/arban
dcd2d0838f72c39bf3a52aabfa74d6ea28933d02
[ "MIT" ]
null
null
null
import numpy as np from math import floor,ceil,sqrt import matplotlib as mpl import matplotlib.pyplot as plt from scipy import ndimage from scipy.stats import rv_histogram from importlib import reload from astropy.io import fits from astropy.convolution import convolve, kernels from astropy.table import Table from as...
28.335664
156
0.571964
3324d5e85232c908b721db1e73dcbd20d2cb0a50
5,365
py
Python
ward/expect.py
jayeshathila/ward
966c3a61dc663b06aebc7d28a9acb9909d4f5810
[ "MIT" ]
null
null
null
ward/expect.py
jayeshathila/ward
966c3a61dc663b06aebc7d28a9acb9909d4f5810
[ "MIT" ]
null
null
null
ward/expect.py
jayeshathila/ward
966c3a61dc663b06aebc7d28a9acb9909d4f5810
[ "MIT" ]
null
null
null
import inspect import types from enum import Enum from typing import Type, Any, ContextManager, TypeVar, Generic, Optional, cast _E = TypeVar("_E", bound=Exception) class raises(Generic[_E], ContextManager["raises[_E]"]): raised: _E def __init__(self, expected_ex_type: Type[_E]): self.expected_ex_ty...
28.089005
97
0.59329
332522e36789de6ffcf2e3b70760472cbb8016ea
1,001
py
Python
sumoProject/SAC/try_modules.py
szkLaszlo/RLHighWay
2ea752265bc89618e736089475cb4706ead8fe92
[ "MIT" ]
1
2021-08-29T09:12:29.000Z
2021-08-29T09:12:29.000Z
sumoProject/SAC/try_modules.py
szkLaszlo/RLHighWay
2ea752265bc89618e736089475cb4706ead8fe92
[ "MIT" ]
null
null
null
sumoProject/SAC/try_modules.py
szkLaszlo/RLHighWay
2ea752265bc89618e736089475cb4706ead8fe92
[ "MIT" ]
null
null
null
from sumoProject.SAC.model import ImageEncoder, ImageDecoder, LSTMPredictor import torch kernel_size = (7, 3) padding = (3, 1) input_image_size = (3, 180, 18) max_pool = (2, 2) hidden_channels = 128 hidden_lstm = 256 batch_size = 64 sample_image = torch.ones(input_image_size) sample_batch_image = torch.stack([sample_...
37.074074
106
0.75025
332565d8debe6e9a893e19b9c1e7838ed8e24985
4,192
py
Python
asyncy/Logger.py
zeebonk/platform-engine
c82feecad7a7e3786ed69e02bbeef712182a27ae
[ "Apache-2.0" ]
null
null
null
asyncy/Logger.py
zeebonk/platform-engine
c82feecad7a7e3786ed69e02bbeef712182a27ae
[ "Apache-2.0" ]
null
null
null
asyncy/Logger.py
zeebonk/platform-engine
c82feecad7a7e3786ed69e02bbeef712182a27ae
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from logging import LoggerAdapter, getLevelName from frustum import Frustum from google.auth.exceptions import DefaultCredentialsError from google.cloud import logging from google.cloud.logging.handlers.transports.background_thread \ import BackgroundThreadTransport from google.cloud.loggi...
36.452174
79
0.595658
3325683ea5a436408f4272716607dc32413fa1cf
500
py
Python
two-pointers/0167-two-sum-ii-input-array-is-sorted(双指针).py
ZHUANGHP/LeetCode-Solution-Python
af2b14abb7f50ee061bcd601c8666b32e448cbd8
[ "Apache-2.0" ]
1
2021-01-10T17:03:21.000Z
2021-01-10T17:03:21.000Z
two-pointers/0167-two-sum-ii-input-array-is-sorted(双指针).py
ZHUANGHP/LeetCode-Solution-Python
af2b14abb7f50ee061bcd601c8666b32e448cbd8
[ "Apache-2.0" ]
null
null
null
two-pointers/0167-two-sum-ii-input-array-is-sorted(双指针).py
ZHUANGHP/LeetCode-Solution-Python
af2b14abb7f50ee061bcd601c8666b32e448cbd8
[ "Apache-2.0" ]
1
2021-07-25T07:53:14.000Z
2021-07-25T07:53:14.000Z
from typing import List class Solution: def twoSum(self, numbers: List[int], target: int) -> List[int]: size = len(numbers) if size < 2: return [] left = 0 right = size - 1 while left < right: if numbers[left] + numbers[right] == target: ...
26.315789
67
0.468
33259000eb7924588cd659fe0cf7ad26717ca743
9,850
py
Python
Yet-Another-EfficientDet-Pytorch/efficientnet/model.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
923
2020-01-11T06:36:53.000Z
2022-03-31T00:26:57.000Z
Yet-Another-EfficientDet-Pytorch/efficientnet/model.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
25
2020-02-27T08:35:46.000Z
2022-01-25T08:54:19.000Z
Yet-Another-EfficientDet-Pytorch/efficientnet/model.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
262
2020-01-02T02:19:40.000Z
2022-03-23T04:56:16.000Z
import torch from torch import nn from torch.nn import functional as F from .utils import ( round_filters, round_repeats, drop_connect, get_same_padding_conv2d, get_model_params, efficientnet_params, load_pretrained_weights, Swish, MemoryEfficientSwish, ) class MBConvBlock(nn.Modul...
41.386555
107
0.671675
3325ce1805b4847fae8af67aa95b3331af282eb7
5,046
py
Python
src/python/pants/base/payload_field.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
1
2021-05-05T18:58:28.000Z
2021-05-05T18:58:28.000Z
src/python/pants/base/payload_field.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
null
null
null
src/python/pants/base/payload_field.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
3
2020-06-30T08:28:13.000Z
2021-07-28T09:35:57.000Z
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from abc import ABC, abstractmethod from hashlib import sha1 from typing import ClassVar, Optional from twitter.common.collections import OrderedSet from pants.base.hash_utils import sta...
26.698413
98
0.673008
33260497f080008a12f074ee49f2ea16acc94c32
2,574
py
Python
ucscsdk/mometa/adaptor/AdaptorVmmqConnDef.py
CiscoUcs/ucscsdk
b582df77e3cf8bc4c48347e3d67f8cffa62f78c4
[ "Apache-2.0" ]
9
2016-12-22T08:39:25.000Z
2019-09-10T15:36:19.000Z
ucscsdk/mometa/adaptor/AdaptorVmmqConnDef.py
CiscoUcs/ucscsdk
b582df77e3cf8bc4c48347e3d67f8cffa62f78c4
[ "Apache-2.0" ]
10
2017-01-31T06:59:56.000Z
2021-11-09T09:14:37.000Z
ucscsdk/mometa/adaptor/AdaptorVmmqConnDef.py
CiscoUcs/ucscsdk
b582df77e3cf8bc4c48347e3d67f8cffa62f78c4
[ "Apache-2.0" ]
13
2016-11-14T07:42:58.000Z
2022-02-10T17:32:05.000Z
"""This module contains the general information for AdaptorVmmqConnDef ManagedObject.""" from ...ucscmo import ManagedObject from ...ucsccoremeta import UcscVersion, MoPropertyMeta, MoMeta from ...ucscmeta import VersionMeta class AdaptorVmmqConnDefConsts(): pass class AdaptorVmmqConnDef(ManagedObject): ""...
54.765957
418
0.687646
332636ec98bdb863bcd192e3bc9e519c6213d7e4
4,322
py
Python
src/regnet/data/kitti/make_decalib.py
markrofail/multi-modal-deep-learning-for-vehicle-sensor-data-abstraction-and-attack-detection
2f252c072f3091bb27506978dd90311f7f82f386
[ "MIT" ]
null
null
null
src/regnet/data/kitti/make_decalib.py
markrofail/multi-modal-deep-learning-for-vehicle-sensor-data-abstraction-and-attack-detection
2f252c072f3091bb27506978dd90311f7f82f386
[ "MIT" ]
6
2020-09-25T22:41:00.000Z
2021-06-08T21:50:37.000Z
src/regnet/data/kitti/make_decalib.py
markrofail/multi-modal-deep-learning-for-vehicle-sensor-data-abstraction-and-attack-detection
2f252c072f3091bb27506978dd90311f7f82f386
[ "MIT" ]
null
null
null
import multiprocessing import numpy as np from joblib import Parallel, delayed from tqdm import tqdm from src.helpers import paths from src.helpers.flags import Verbose from src.regnet.helpers import kitti_foundation, quaternion ############################################################################### # DECALI...
33.503876
108
0.648542
33268287ec99989b51b22257253ad3b2373d6a62
636
py
Python
palm/plugins/dbt/commands/cmd_containerize.py
jakeberesford-palmetto/palm-dbt
18cd297ac56eedc31976de8b971a1407e51614fe
[ "Apache-2.0" ]
17
2021-11-10T21:20:31.000Z
2022-01-31T22:14:31.000Z
palm/plugins/dbt/commands/cmd_containerize.py
jakeberesford-palmetto/palm-dbt
18cd297ac56eedc31976de8b971a1407e51614fe
[ "Apache-2.0" ]
15
2021-11-16T15:39:50.000Z
2022-03-28T19:38:39.000Z
palm/plugins/dbt/commands/cmd_containerize.py
jakeberesford-palmetto/palm-dbt
18cd297ac56eedc31976de8b971a1407e51614fe
[ "Apache-2.0" ]
7
2021-11-23T23:00:14.000Z
2022-03-03T01:53:18.000Z
from typing import Optional import click from pathlib import Path from palm.plugins.dbt.dbt_containerizer import DbtContainerizer @click.command("containerize") @click.option( "--version", multiple=False, help="dbt version to use (e.g. 0.21.0)", ) @click.pass_context def cli(ctx, version: Optional[str]): ...
30.285714
86
0.713836
33268d41037c7134bb2a0a544fa11871e6b9b86d
527
py
Python
gerapy/cmd/init.py
awesome-archive/Gerapy
e9792d020397cd85b4d553b91b7829078b728b98
[ "MIT" ]
1
2018-12-07T02:05:32.000Z
2018-12-07T02:05:32.000Z
gerapy/cmd/init.py
Tilyp/Gerapy
e9792d020397cd85b4d553b91b7829078b728b98
[ "MIT" ]
null
null
null
gerapy/cmd/init.py
Tilyp/Gerapy
e9792d020397cd85b4d553b91b7829078b728b98
[ "MIT" ]
null
null
null
import os from os.path import join PROJECTS_FOLDER = 'projects' def init(folder): if not folder: folder = 'gerapy' # execute path execute_path = os.getcwd() folder_path = join(execute_path, folder) # make folder dir, default to gerapy if not os.path.exists(folder_path): os.mkdi...
25.095238
56
0.679317
3326c48517877f1ca723d219d3f6d624b3f96eb9
2,511
py
Python
mtools/test/test_mplotqueries.py
nonomal/mtools
419f159dd1a7e608daafa9959b20fd71e1684fad
[ "Apache-2.0" ]
1,522
2015-01-04T01:00:47.000Z
2022-03-31T14:12:40.000Z
mtools/test/test_mplotqueries.py
nonomal/mtools
419f159dd1a7e608daafa9959b20fd71e1684fad
[ "Apache-2.0" ]
444
2015-01-07T02:06:27.000Z
2022-03-31T09:03:13.000Z
mtools/test/test_mplotqueries.py
nonomal/mtools
419f159dd1a7e608daafa9959b20fd71e1684fad
[ "Apache-2.0" ]
361
2015-01-04T01:00:51.000Z
2022-03-17T13:50:59.000Z
import sys from datetime import datetime, timedelta from random import randrange from dateutil import parser from nose.plugins.skip import SkipTest from nose.tools import raises import os import mtools from mtools.mplotqueries.mplotqueries import MPlotQueriesTool from mtools.util.logevent import LogEvent from mtools...
43.293103
102
0.694544
3326c81f0cc4db798d631fe56ad59da332189c0a
3,123
py
Python
app/core/tests/test_models.py
AitorPo/recipe-app-api
abb9d1774735c78d5fac0ebc20e727ad1a4851c7
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
AitorPo/recipe-app-api
abb9d1774735c78d5fac0ebc20e727ad1a4851c7
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
AitorPo/recipe-app-api
abb9d1774735c78d5fac0ebc20e727ad1a4851c7
[ "MIT" ]
null
null
null
from unittest.mock import patch from django.test import TestCase from django.contrib.auth import get_user_model from core import models # helper function to create users def sample_user(email='test@correo.com', password='testpass'): """Create a sample user""" return get_user_model().objects.creat...
33.945652
74
0.6244
3326c8c518ecc7702c2363156f335ba560c8308b
1,191
py
Python
test_miris_join.py
splitter-research/splitter
94e5e3073b4f383ba50397168ddb8bcd5fc48da4
[ "MIT" ]
null
null
null
test_miris_join.py
splitter-research/splitter
94e5e3073b4f383ba50397168ddb8bcd5fc48da4
[ "MIT" ]
null
null
null
test_miris_join.py
splitter-research/splitter
94e5e3073b4f383ba50397168ddb8bcd5fc48da4
[ "MIT" ]
null
null
null
import sys from splitter.simple_manager.manager import * import json from splitter.dataflow.xform import * from splitter.utils.ui import play, overlay if len(sys.argv) < 3: print("Enter video filepath as argv[1], JSON filepath as argv[2]") exit(1) v = VideoStream(sys.argv[1]) with open(sys.argv[2], 'r') as...
27.697674
147
0.596977
3326cda8874165c34e7a1d0122abbdcf2cce3bdd
297
py
Python
engine/controllers/start_match.py
pitzer42/micro-tcg
eec416fb3b7b992a206ab900f3d85d172f494103
[ "MIT" ]
null
null
null
engine/controllers/start_match.py
pitzer42/micro-tcg
eec416fb3b7b992a206ab900f3d85d172f494103
[ "MIT" ]
2
2019-06-25T02:15:10.000Z
2019-06-25T02:22:14.000Z
engine/controllers/start_match.py
pitzer42/micro-tcg
eec416fb3b7b992a206ab900f3d85d172f494103
[ "MIT" ]
1
2019-06-12T00:35:41.000Z
2019-06-12T00:35:41.000Z
from engine.io.client_connection import ClientConnection from engine.models.waiting_list import WaitingList async def play_next_match( player: ClientConnection, waiting_list: WaitingList, game_loop): await waiting_list.next_group(player) await game_loop(player)
24.75
56
0.760943
3326d05b81a8a2e07d92c9349fda83ba7577e345
4,567
py
Python
src/nitpick/style/fetchers/github.py
camresp/nitpick
c922dcde1c1e650234343e03bb872cac6500e7b1
[ "MIT" ]
251
2019-08-06T08:50:01.000Z
2022-03-26T13:49:19.000Z
src/nitpick/style/fetchers/github.py
camresp/nitpick
c922dcde1c1e650234343e03bb872cac6500e7b1
[ "MIT" ]
429
2019-06-07T09:12:52.000Z
2022-03-31T23:29:26.000Z
src/nitpick/style/fetchers/github.py
camresp/nitpick
c922dcde1c1e650234343e03bb872cac6500e7b1
[ "MIT" ]
18
2019-08-12T14:16:28.000Z
2022-03-15T13:54:26.000Z
"""Support for ``gh`` and ``github`` schemes.""" from dataclasses import dataclass from enum import Enum from functools import lru_cache from typing import Tuple from urllib.parse import urlparse from requests import Session, get as requests_get from nitpick.constants import GIT_AT_REFERENCE from nitpick.style.fetche...
34.338346
116
0.663893
3326ee065b97d6444c5d81f60e2fc8c2e937b2bb
5,743
py
Python
trainable/epoch.py
hiltonjp/trainable
3b1432c9c816285680f14e292eaef26cdbe213cf
[ "MIT" ]
1
2018-12-17T19:38:00.000Z
2018-12-17T19:38:00.000Z
trainable/epoch.py
hiltonjp/trainable
3b1432c9c816285680f14e292eaef26cdbe213cf
[ "MIT" ]
null
null
null
trainable/epoch.py
hiltonjp/trainable
3b1432c9c816285680f14e292eaef26cdbe213cf
[ "MIT" ]
null
null
null
from collections import defaultdict from statistics import mean class Epoch(object): """Training epoch base class. Usually an epoch just consists of running data through the model in batches. But just in case, this base class offers a bit more flexibility. Subclassing: Example:: >>>...
35.670807
120
0.477277
332714d385efec3eedac966ac935ea50e6761b0f
1,195
py
Python
pgpem/sim_blocks_pgpem.py
fraspass/lsbm
5b24c4a2f4357de238f8ef448ea3f33ef21b7fb8
[ "MIT" ]
1
2021-08-28T09:12:46.000Z
2021-08-28T09:12:46.000Z
pgpem/sim_blocks_pgpem.py
fraspass/lsbm
5b24c4a2f4357de238f8ef448ea3f33ef21b7fb8
[ "MIT" ]
null
null
null
pgpem/sim_blocks_pgpem.py
fraspass/lsbm
5b24c4a2f4357de238f8ef448ea3f33ef21b7fb8
[ "MIT" ]
1
2021-08-22T14:46:33.000Z
2021-08-22T14:46:33.000Z
#! /usr/bin/env python3 import numpy as np from sklearn.metrics import adjusted_rand_score as ari import lsbm import pgpem # Set random seed for reproducibility np.random.seed(171) # Load data z = np.load('../data/block_sim/z.npy') X_sbm = np.load('../data/block_sim/X_sbm.npy'); A_sbm = np.load('../data/block_sim/A_s...
37.34375
102
0.716318
3327184a319cf4f71ae633d1b8788c6adf49c143
1,188
py
Python
tests/tests/test_unit/test_detect/test_filters/test_volume_filters/test_structure_detection.py
npeschke/cellfinder-core
7a86a7d2c879c94da529ec6140f7e5c3f02bf288
[ "BSD-3-Clause" ]
5
2021-01-22T11:40:01.000Z
2021-09-10T07:16:05.000Z
tests/tests/test_unit/test_detect/test_filters/test_volume_filters/test_structure_detection.py
npeschke/cellfinder-core
7a86a7d2c879c94da529ec6140f7e5c3f02bf288
[ "BSD-3-Clause" ]
38
2021-01-22T11:50:29.000Z
2022-03-11T11:04:06.000Z
tests/tests/test_unit/test_detect/test_filters/test_volume_filters/test_structure_detection.py
npeschke/cellfinder-core
7a86a7d2c879c94da529ec6140f7e5c3f02bf288
[ "BSD-3-Clause" ]
12
2021-06-18T09:57:24.000Z
2022-03-06T13:03:18.000Z
import pytest import numpy as np from cellfinder_core.detect.filters.volume import structure_detection def test_get_non_zero_ull_min(): assert ( structure_detection.get_non_zero_ull_min_wrapper(list(range(10))) == 1 ) assert ( structure_detection.get_non_zero_ull_min_wrapper([0] * 10) ...
22.415094
78
0.559764
33272a71abe98dabd2861d6b128db6acc87e92f2
24,213
py
Python
maps/python/fitsio.py
CMB-S4/spt3g_software
33ff1759d2de0c942122a54ea50f19864e5f0430
[ "BSD-2-Clause" ]
6
2017-05-03T15:37:55.000Z
2019-05-29T17:14:48.000Z
maps/python/fitsio.py
CMB-S4/spt3g_software
33ff1759d2de0c942122a54ea50f19864e5f0430
[ "BSD-2-Clause" ]
36
2017-09-25T20:05:41.000Z
2022-03-25T18:57:57.000Z
maps/python/fitsio.py
CMB-S4/spt3g_software
33ff1759d2de0c942122a54ea50f19864e5f0430
[ "BSD-2-Clause" ]
10
2017-09-25T18:54:11.000Z
2020-05-17T19:55:57.000Z
from spt3g import core from spt3g.maps import HealpixSkyMap, FlatSkyMap, G3SkyMapWeights from spt3g.maps import MapPolType, MapPolConv, MapCoordReference, MapProjection import numpy as np import os import warnings __all__ = [ 'load_skymap_fits', 'save_skymap_fits', 'SaveMapFrame', ] @core.usefulfunc def...
33.675939
95
0.508033
33274ee1375f5e1ecdebf6d5b7ba20a3b1644e92
326
py
Python
doc/python_study_code/superclass.py
beiliwenxiao/vimrc
eb38fc769f3f5f78000060dac674b5c49d63c24c
[ "MIT" ]
null
null
null
doc/python_study_code/superclass.py
beiliwenxiao/vimrc
eb38fc769f3f5f78000060dac674b5c49d63c24c
[ "MIT" ]
null
null
null
doc/python_study_code/superclass.py
beiliwenxiao/vimrc
eb38fc769f3f5f78000060dac674b5c49d63c24c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 class Calculator: def calculate(self, expression): self.value = eval(expression) class Talker: def talk(self): print 'Hi, my value is', self.value class TalkingCalculator(Calculator, Talker): pass tc = TalkingCalculator() tc.calculate('1+20*20') tc.tal...
17.157895
44
0.671779
33277501472c9a0e65433f0bbd10f0875dbda0ad
18,335
py
Python
SciFiReaders/readers/microscopy/spm/afm/pifm.py
itsalexis962/SciFiReaders
483b228d1f79aafac85cbadd4d0aea488b563902
[ "MIT" ]
8
2021-05-07T00:59:39.000Z
2021-12-10T21:03:59.000Z
SciFiReaders/readers/microscopy/spm/afm/pifm.py
itsalexis962/SciFiReaders
483b228d1f79aafac85cbadd4d0aea488b563902
[ "MIT" ]
31
2021-02-19T21:16:25.000Z
2022-03-04T22:28:09.000Z
SciFiReaders/readers/microscopy/spm/afm/pifm.py
itsalexis962/SciFiReaders
483b228d1f79aafac85cbadd4d0aea488b563902
[ "MIT" ]
6
2021-05-07T01:48:09.000Z
2022-01-21T21:14:36.000Z
# -*- coding: utf-8 -*- """ Created on Mon Sep 13 21:46:14 2021 @author: Raj """ import sidpy as sid from sidpy.sid import Reader from sidpy.sid import Dimension import os import numpy as np import h5py from pyNSID.io.hdf_io import write_nsid_dataset from pyNSID.io.hdf_io import create_indexed_group, write_simple_a...
42.344111
119
0.542951
3327783ee93bee7171178303a1c294385407288d
1,838
py
Python
leetcode_python/Math/number-of-steps-to-reduce-a-number-to-zero.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Math/number-of-steps-to-reduce-a-number-to-zero.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Math/number-of-steps-to-reduce-a-number-to-zero.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
""" 1342. Number of Steps to Reduce a Number to Zero Easy Given an integer num, return the number of steps to reduce it to zero. In one step, if the current number is even, you have to divide it by 2, otherwise, you have to subtract 1 from it. Example 1: Input: num = 14 Output: 6 Explanation: Step 1) 14 is eve...
20.651685
114
0.550598
33278e827d8c1f50738397356736b30628ca6407
796
py
Python
alipay/aop/api/response/AlipayOverseasTransferCancelResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayOverseasTransferCancelResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayOverseasTransferCancelResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayOverseasTransferCancelResponse(AlipayResponse): def __init__(self): super(AlipayOverseasTransferCancelResponse, self).__init__() self._pass_through_info = None ...
30.615385
109
0.743719
332799379c63101530113fe1f5144815c62de8c7
993
py
Python
users/urls.py
Ibrahem3amer/bala7
70638c121ea85ff0e6a650c5f2641b0b3b04d6d0
[ "Apache-2.0" ]
null
null
null
users/urls.py
Ibrahem3amer/bala7
70638c121ea85ff0e6a650c5f2641b0b3b04d6d0
[ "Apache-2.0" ]
null
null
null
users/urls.py
Ibrahem3amer/bala7
70638c121ea85ff0e6a650c5f2641b0b3b04d6d0
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url from users import views from cms.views import user_table urlpatterns = [ url(r'^home', views.home_user, name = 'home_user'), url(r'^profile/change_username', views.update_user_username, name = 'web_change_username'), url(r'^profile/change_email', views.update_user_email, na...
58.411765
95
0.739174
3327a9f9a613bfb56e6a25af0fe1c0ca18609035
7,284
py
Python
tensorflow/contrib/keras/api/keras/layers/__init__.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/contrib/keras/api/keras/layers/__init__.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/keras/api/keras/layers/__init__.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
26
2017-04-12T16:25:44.000Z
2018-10-30T10:10:15.000Z
# Copyright 2016 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...
48.885906
80
0.849259
3327ca6cadd6e3ce435ae109f1ccd116bd0f1b9c
761
py
Python
Task1C.py
dhanishpatel512/FloodWarningSystem86
9bf3f2b0858ad5073b717b215afa3c85e81a8216
[ "MIT" ]
1
2022-02-11T20:28:24.000Z
2022-02-11T20:28:24.000Z
Task1C.py
dhanishpatel512/FloodWarningSystem86
9bf3f2b0858ad5073b717b215afa3c85e81a8216
[ "MIT" ]
null
null
null
Task1C.py
dhanishpatel512/FloodWarningSystem86
9bf3f2b0858ad5073b717b215afa3c85e81a8216
[ "MIT" ]
null
null
null
from floodsystem.geo import stations_within_radius from floodsystem.stationdata import build_station_list def run(): """Requirements for Task 1C""" stations_within_10k_names = [] # Cambridge City Centre coordinates cambridge_city_centre = (52.2053, 0.1218) # Build list of stations stations ...
23.78125
84
0.722733
3327cf2c63423cc771e269c67bf296ea10e80958
1,788
py
Python
problem-sets/03-regression-discontinuity-design/sources/auxiliary.py
milakis/microeconometrics
6ede1eceb25e578b3109c03d35f26d34d41777aa
[ "MIT" ]
null
null
null
problem-sets/03-regression-discontinuity-design/sources/auxiliary.py
milakis/microeconometrics
6ede1eceb25e578b3109c03d35f26d34d41777aa
[ "MIT" ]
null
null
null
problem-sets/03-regression-discontinuity-design/sources/auxiliary.py
milakis/microeconometrics
6ede1eceb25e578b3109c03d35f26d34d41777aa
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from sklearn.linear_model import LinearRegression from sklearn.model_selection import LeaveOneOut from sklearn.model_selection import cross_val_score # create two dataframes on either side of the cutoff alligned with your code df = pd.read_stata("../data/individ_final.dta") bins...
39.733333
86
0.683445
3327d3171a2eeb79c4546439f6eb7e0de5ac9004
5,830
py
Python
DeepLearning/DeepLearning/09_Deep_SongJW/ch5/layers.py
ghost9023/DeepLearningPythonStudy
4d319c8729472cc5f490935854441a2d4b4e8818
[ "MIT" ]
1
2019-06-27T04:05:59.000Z
2019-06-27T04:05:59.000Z
DeepLearning/DeepLearning/09_Deep_SongJW/ch5/layers.py
ghost9023/DeepLearningPythonStudy
4d319c8729472cc5f490935854441a2d4b4e8818
[ "MIT" ]
null
null
null
DeepLearning/DeepLearning/09_Deep_SongJW/ch5/layers.py
ghost9023/DeepLearningPythonStudy
4d319c8729472cc5f490935854441a2d4b4e8818
[ "MIT" ]
null
null
null
import numpy as np from book.common.functions import softmax, cross_entropy_error ''' 역전파 backpropagation 미분을 구하는 방법. 수치미분보다 빠르게 미분을 구할 수 있다. 연쇄법칙을 이용하는 방법으로 연산을 우에서 좌로 거슬러 올라가며 연산 전 입력에 대한 연산 후 출력의 미분을 구해서 각 연산을 지날때마다 곱해나가는 방식 ''' # 곱셈 계층 - 곱셈 노드 class MulLayer: def __init__(self): self.x = None ...
26.143498
94
0.544425
33283cd134f5d51f07590d20a12789517f4aab24
14,407
py
Python
test/integration/ggrc/models/test_clonable.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
1
2018-03-30T11:28:48.000Z
2018-03-30T11:28:48.000Z
test/integration/ggrc/models/test_clonable.py
trevordonnelly/ggrc-core
499cf0d3cce70737b080991b12c203ec22015cea
[ "ECL-2.0", "Apache-2.0" ]
6
2015-04-25T13:15:15.000Z
2019-03-21T22:38:01.000Z
test/integration/ggrc/models/test_clonable.py
zidarsk8/ggrc-core
2509c989eddf434249d3bef50c21e08dbf56c1a4
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Integration test for Clonable mixin""" from ggrc import db from ggrc import models from ggrc.snapshotter.rules import Types from integration.ggrc import generator from integration.ggrc.models import fac...
33.819249
79
0.648643
33283decc369e14da32985d49a7368f16d1bbfc0
1,246
py
Python
sessions/003 session-numbers/exercises/random_number_guesser.py
robotlightsyou/pfb-resources
3623f54d87f7eddb0ea858d14845552d356643a9
[ "MIT" ]
null
null
null
sessions/003 session-numbers/exercises/random_number_guesser.py
robotlightsyou/pfb-resources
3623f54d87f7eddb0ea858d14845552d356643a9
[ "MIT" ]
2
2021-04-21T05:12:55.000Z
2021-04-21T05:15:04.000Z
sessions/003 session-numbers/exercises/random_number_guesser.py
robotlightsyou/pfb-resources
3623f54d87f7eddb0ea858d14845552d356643a9
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import random from random import randint def main(): print("basic") basic() print("advanced") advanced() print("more advanced") more_advanced() def basic(): number = randint(1,10) guess = '' while guess != number: print("Please enter a number.") ...
22.654545
45
0.527287
33284db7a1d25f7f3aaf158c7f0059b79c875c74
807
py
Python
drivers/plot_full_kinematics_X_rotation.py
lgbouma/earhart
1d2b65d58655725f43c1bf9705b897bf767d4ca1
[ "MIT" ]
null
null
null
drivers/plot_full_kinematics_X_rotation.py
lgbouma/earhart
1d2b65d58655725f43c1bf9705b897bf767d4ca1
[ "MIT" ]
null
null
null
drivers/plot_full_kinematics_X_rotation.py
lgbouma/earhart
1d2b65d58655725f43c1bf9705b897bf767d4ca1
[ "MIT" ]
null
null
null
import os import earhart.plotting as ep from earhart.paths import RESULTSDIR PLOTDIR = os.path.join(RESULTSDIR, 'full_kinematics_X_rotation') if not os.path.exists(PLOTDIR): os.mkdir(PLOTDIR) ep.plot_full_kinematics_X_rotation(PLOTDIR, basedata='fullfaint', show1937=0, galacticf...
42.473684
142
0.752169
332881ff5598bbae0500a31fe196a9fb57551da4
122
py
Python
tests/check_profile.py
justengel/pybk8500
6a9748033c783a0081ec391359067dfb9dc83760
[ "MIT" ]
null
null
null
tests/check_profile.py
justengel/pybk8500
6a9748033c783a0081ec391359067dfb9dc83760
[ "MIT" ]
null
null
null
tests/check_profile.py
justengel/pybk8500
6a9748033c783a0081ec391359067dfb9dc83760
[ "MIT" ]
null
null
null
from pybk8500.run_profile import main # python -m pybk8500.run_profile "./check_profile.csv" main('./check_profile.csv')
24.4
54
0.778689
33288392c0747f7c44955132b080487da20cd214
7,086
py
Python
tensorflow/python/kernel_tests/matrix_triangular_solve_op_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
522
2016-06-08T02:15:50.000Z
2022-03-02T05:30:36.000Z
tensorflow/python/kernel_tests/matrix_triangular_solve_op_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/python/kernel_tests/matrix_triangular_solve_op_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
108
2016-06-16T15:34:05.000Z
2022-03-12T13:23:11.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...
38.721311
80
0.627858
33289ff9a74ed4050332fc72f182b88a851a0228
7,530
py
Python
snntoolbox/datasets/utils.py
sunpengfei1122/snn_toolbox
3bdbe329eccd74952989cc704e65567b6bf8b168
[ "MIT" ]
1
2021-05-13T15:39:19.000Z
2021-05-13T15:39:19.000Z
snntoolbox/datasets/utils.py
icaruswdw666/snn_toolbox
80df95757b263d329c44390ccc73a75e13a424e1
[ "MIT" ]
null
null
null
snntoolbox/datasets/utils.py
icaruswdw666/snn_toolbox
80df95757b263d329c44390ccc73a75e13a424e1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ The main purpose of this module is to load a dataset from disk and feed it to the toolbox in one of the formats it can handle. For details see .. autosummary:: :nosignatures: get_dataset @author: rbodo """ from __future__ import division, absolute_import from __future__ import p...
34.541284
79
0.627623
3328daa9071252b3ab1da40746eca1ab8c40584e
7,394
py
Python
RELEASE_ScaleNet_minimal/maskrcnn_rui/roi_heads_rui/box_head/box_head.py
Jerrypiglet/scalenet
6a5db480e650d10d1e575e93b6cee366d1912c8a
[ "Adobe-2006", "Adobe-Glyph" ]
33
2020-08-27T09:06:19.000Z
2022-03-10T02:27:31.000Z
RELEASE_ScaleNet_minimal/maskrcnn_rui/roi_heads_rui/box_head/box_head.py
Jerrypiglet/scalenet
6a5db480e650d10d1e575e93b6cee366d1912c8a
[ "Adobe-2006", "Adobe-Glyph" ]
2
2020-12-28T04:41:55.000Z
2021-04-07T06:03:36.000Z
RELEASE_ScaleNet_minimal/maskrcnn_rui/roi_heads_rui/box_head/box_head.py
Jerrypiglet/scalenet
6a5db480e650d10d1e575e93b6cee366d1912c8a
[ "Adobe-2006", "Adobe-Glyph" ]
5
2020-12-22T03:02:35.000Z
2021-12-08T09:46:01.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import torch from torch import nn from .roi_box_feature_extractors import make_roi_box_feature_extractor, make_classifier_feature_extractor from .roi_box_predictors import make_roi_box_predictor_rui, make_roi_box_predictor from .inference import m...
42.011364
105
0.658372
33292d212d97ded75a9a6511bad0b11f708910dc
1,050
py
Python
src/models.py
yudhik11/HumanMeshNet
7cfae2e654b27feca9d02abdad20028acc9584bb
[ "MIT" ]
14
2019-09-17T03:29:58.000Z
2020-11-08T08:35:14.000Z
src/models.py
yudhik11/HumanMeshNet
7cfae2e654b27feca9d02abdad20028acc9584bb
[ "MIT" ]
1
2019-09-16T05:54:20.000Z
2019-09-16T05:54:20.000Z
src/models.py
yudhik11/HumanMeshNet
7cfae2e654b27feca9d02abdad20028acc9584bb
[ "MIT" ]
4
2019-10-26T02:56:14.000Z
2021-11-18T14:28:50.000Z
import torch import torch.nn as nn import torch.nn.functional as F import scipy.io from src.SMPL_pytorch import SMPL from torchvision.models import resnet50, resnet18 class MyResnet18(nn.Module): def __init__(self, num_out, pretrained=False): super(MyResnet18, self).__init__() self.num_out = num_...
26.923077
53
0.620952
3329380dffaa464c9ce8e98ace01be9e4ceec5ee
536
py
Python
tests/test_misc_currency.py
mavit/proselint
f53c77bda6bc339f07d89eaeb9d0e9aee0deaf0b
[ "BSD-3-Clause" ]
null
null
null
tests/test_misc_currency.py
mavit/proselint
f53c77bda6bc339f07d89eaeb9d0e9aee0deaf0b
[ "BSD-3-Clause" ]
null
null
null
tests/test_misc_currency.py
mavit/proselint
f53c77bda6bc339f07d89eaeb9d0e9aee0deaf0b
[ "BSD-3-Clause" ]
null
null
null
"""Tests for misc.currency check.""" from __future__ import absolute_import from .check import Check from proselint.checks.misc import currency as chk class TestCheck(Check): """The test class for misc.currency.""" __test__ = True @property def this_check(self): """Bolierplate.""" ...
23.304348
68
0.652985
332945806f5862ade22a8acf2de3c1885d44a8b5
1,463
py
Python
posts/migrations/0001_initial.py
bllli/Django-China-API
79a5d85fe88ba7784d08d370b8e7519f7274f208
[ "MIT" ]
187
2018-03-08T11:18:11.000Z
2021-12-26T13:29:02.000Z
posts/migrations/0001_initial.py
bllli/Django-China-API
79a5d85fe88ba7784d08d370b8e7519f7274f208
[ "MIT" ]
67
2018-03-09T14:56:47.000Z
2021-06-24T08:52:40.000Z
posts/migrations/0001_initial.py
bllli/Django-China-API
79a5d85fe88ba7784d08d370b8e7519f7274f208
[ "MIT" ]
52
2018-03-08T11:18:12.000Z
2021-08-02T16:07:04.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-04-24 12:35 from __future__ import unicode_literals from django.db import migrations, models import django.utils.timezone import model_utils.fields class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ ...
39.540541
147
0.615858