hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
5025d421c224ba543b5beb63426e24bac5a64bd7
1,869
py
Python
source/samples/write-api-to-ssm-custom-resource/index.py
s3799570/P000075CSITCP
dcf9f388a22baffc99e01b445e5d95089a896113
[ "Apache-2.0" ]
82
2018-07-24T18:37:07.000Z
2021-08-23T14:46:07.000Z
source/samples/write-api-to-ssm-custom-resource/index.py
s3799570/P000075CSITCP
dcf9f388a22baffc99e01b445e5d95089a896113
[ "Apache-2.0" ]
17
2018-08-14T16:16:47.000Z
2021-08-31T21:19:21.000Z
source/samples/write-api-to-ssm-custom-resource/index.py
s3799570/P000075CSITCP
dcf9f388a22baffc99e01b445e5d95089a896113
[ "Apache-2.0" ]
42
2018-07-25T19:21:18.000Z
2021-09-19T11:19:21.000Z
# -*- coding: utf-8 -*- #################################################################################################################### # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License Version 2.0 (the 'License'). You may not use this file except in compl...
36.647059
117
0.642055
e217dd45a5e29769ca79a585602031ba927b909c
2,138
py
Python
dataset/GPM/gpm_transformer.py
prl900/unet_him8_gpm
5e27510b1c3eb76e57461316f25240231cbc3c37
[ "Apache-2.0" ]
null
null
null
dataset/GPM/gpm_transformer.py
prl900/unet_him8_gpm
5e27510b1c3eb76e57461316f25240231cbc3c37
[ "Apache-2.0" ]
null
null
null
dataset/GPM/gpm_transformer.py
prl900/unet_him8_gpm
5e27510b1c3eb76e57461316f25240231cbc3c37
[ "Apache-2.0" ]
1
2020-06-20T01:15:05.000Z
2020-06-20T01:15:05.000Z
#!/g/data/v10/public/modules/dea-env/20181015/bin/python import argparse import datetime import netCDF4 import h5py import numpy as np def pack(data, date, dst): with netCDF4.Dataset(dst, 'w', format='NETCDF4_CLASSIC') as ds: setattr(ds, "date_created", datetime.datetime.now().strftime("%Y%m%dT%H%M%S")) ...
36.862069
112
0.621141
d1949ef60ff597915efb5df1a788eb1adc9b8e1e
1,509
py
Python
pymc3_ext/tests/test_shared.py
wlad111/pymc3
43432834be5bbca72caa32d40a848515eea554a8
[ "Apache-2.0" ]
null
null
null
pymc3_ext/tests/test_shared.py
wlad111/pymc3
43432834be5bbca72caa32d40a848515eea554a8
[ "Apache-2.0" ]
null
null
null
pymc3_ext/tests/test_shared.py
wlad111/pymc3
43432834be5bbca72caa32d40a848515eea554a8
[ "Apache-2.0" ]
null
null
null
import pymc3_ext as pm from .helpers import SeededTest import numpy as np import theano class TestShared(SeededTest): def test_deterministic(self): with pm.Model() as model: data_values = np.array([.5, .4, 5, 2]) X = theano.shared(np.asarray(data_values, dtype=theano.config.floatX)...
35.928571
95
0.614977
3c6db3faa39258948006b9b91d7cb92af860fc05
2,261
py
Python
runtimes/python/actions/object-read.py
jasonpet/package-cloud-object-storage
e4d1b4a35c0ea8602abff4618c5349ecaea631c2
[ "Apache-2.0" ]
2
2018-04-14T15:54:55.000Z
2018-05-03T20:57:00.000Z
runtimes/python/actions/object-read.py
jasonpet/package-cloud-object-storage
e4d1b4a35c0ea8602abff4618c5349ecaea631c2
[ "Apache-2.0" ]
24
2018-04-18T19:32:56.000Z
2019-09-05T13:49:35.000Z
runtimes/python/actions/object-read.py
jasonpet/package-cloud-object-storage
e4d1b4a35c0ea8602abff4618c5349ecaea631c2
[ "Apache-2.0" ]
8
2018-04-04T16:30:09.000Z
2019-11-18T09:44:50.000Z
# This action will read from Cloud Object Storage. If the Cloud Object Storage # service is not bound to this action or to the package containing this action, # then you must provide the service information as argument input to this function. # Cloud Functions actions accept a single parameter, which must be a JSON ob...
33.746269
182
0.697479
f40f577f0bba8f847bb76a90a1206419dab859ad
6,947
py
Python
napalm_yang/models/openconfig/system/logging/remote_servers/remote_server/selectors/__init__.py
ckishimo/napalm-yang
8f2bd907bd3afcde3c2f8e985192de74748baf6c
[ "Apache-2.0" ]
64
2016-10-20T15:47:18.000Z
2021-11-11T11:57:32.000Z
napalm_yang/models/openconfig/system/logging/remote_servers/remote_server/selectors/__init__.py
ckishimo/napalm-yang
8f2bd907bd3afcde3c2f8e985192de74748baf6c
[ "Apache-2.0" ]
126
2016-10-05T10:36:14.000Z
2019-05-15T08:43:23.000Z
napalm_yang/models/openconfig/system/logging/remote_servers/remote_server/selectors/__init__.py
ckishimo/napalm-yang
8f2bd907bd3afcde3c2f8e985192de74748baf6c
[ "Apache-2.0" ]
63
2016-11-07T15:23:08.000Z
2021-09-22T14:41:16.000Z
# -*- coding: utf-8 -*- from operator import attrgetter from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType from pyangbind.lib.yangtypes import RestrictedClassType from pyangbind.lib.yangtypes import TypedListType from pyangbind.lib.yangtypes import YANGBool from pyangbind.lib.yangtypes import YANGListTy...
37.149733
542
0.590903
27581a7e599116a761cfabffb9dcc75b5bf52a66
25,229
py
Python
ansible/my_env/lib/python2.7/site-packages/ansible/modules/cloud/amazon/ecs_service.py
otus-devops-2019-02/yyashkin_infra
0cd0c003884155ac922e3e301305ac202de7028c
[ "MIT" ]
1
2019-04-16T21:23:15.000Z
2019-04-16T21:23:15.000Z
ansible/my_env/lib/python2.7/site-packages/ansible/modules/cloud/amazon/ecs_service.py
otus-devops-2019-02/yyashkin_infra
0cd0c003884155ac922e3e301305ac202de7028c
[ "MIT" ]
5
2020-02-26T20:10:50.000Z
2021-09-23T23:23:18.000Z
ansible/my_env/lib/python2.7/site-packages/ansible/modules/cloud/amazon/ecs_service.py
otus-devops-2019-02/yyashkin_infra
0cd0c003884155ac922e3e301305ac202de7028c
[ "MIT" ]
1
2020-02-13T14:24:57.000Z
2020-02-13T14:24:57.000Z
#!/usr/bin/python # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is distributed...
41.839138
160
0.591621
594bf296f8bd0ad02b42744230d34ed9fffd7891
2,792
py
Python
midgard_client/midgard_client/models/proxied_nodes.py
hoodieonwho/thorchain-python-client
fccfd66552e16bdab1dbb90b68022475c7a9693d
[ "MIT" ]
null
null
null
midgard_client/midgard_client/models/proxied_nodes.py
hoodieonwho/thorchain-python-client
fccfd66552e16bdab1dbb90b68022475c7a9693d
[ "MIT" ]
null
null
null
midgard_client/midgard_client/models/proxied_nodes.py
hoodieonwho/thorchain-python-client
fccfd66552e16bdab1dbb90b68022475c7a9693d
[ "MIT" ]
null
null
null
# coding: utf-8 """ Midgard Public API The Midgard Public API queries THORChain and any chains linked via the Bifröst and prepares information about the network to be readily available for public users. The API parses transaction event data from THORChain and stores them in a time-series database to make time...
32.847059
435
0.588467
5199563be34d9be59e92d990cf041f820a3b4e9f
5,141
py
Python
app/adzerk/transform.py
Pocket/proxy-server
f7a6d668224dd2b93d0b9b0c41c91744c5b042d3
[ "Apache-2.0" ]
13
2019-11-04T23:55:18.000Z
2021-11-26T07:07:46.000Z
app/adzerk/transform.py
Pocket/proxy-server
f7a6d668224dd2b93d0b9b0c41c91744c5b042d3
[ "Apache-2.0" ]
12
2020-02-02T10:54:21.000Z
2021-06-10T16:12:55.000Z
app/adzerk/transform.py
Pocket/proxy-server
f7a6d668224dd2b93d0b9b0c41c91744c5b042d3
[ "Apache-2.0" ]
2
2020-01-15T07:38:24.000Z
2022-01-19T19:55:59.000Z
from urllib import parse import json import re import logging import distutils.util from app import conf DEFAULT_PRIORITY = 100 def to_spoc(decision): if not decision: return {} custom_data = decision['contents'][0]['data'] body = decision['contents'][0].get('body') if body: body = js...
35.455172
117
0.62128
601524e09cd842e8d86ec4c8fd6005d74e3c94bd
354
py
Python
mir/feature/tonal/__init__.py
ansvver/pylufia
0076b4baef1de5371476910c12c1829d694fa2f3
[ "MIT" ]
null
null
null
mir/feature/tonal/__init__.py
ansvver/pylufia
0076b4baef1de5371476910c12c1829d694fa2f3
[ "MIT" ]
null
null
null
mir/feature/tonal/__init__.py
ansvver/pylufia
0076b4baef1de5371476910c12c1829d694fa2f3
[ "MIT" ]
1
2021-04-08T03:15:08.000Z
2021-04-08T03:15:08.000Z
# -*- coding: utf-8 -*- #------------------------------------------------------------------------------- # @file: feature # @brief: # # @author: sasai # @date: 25/04/2012 # @copyright: (c) sasai 2012 # @license: <your licence> # # Description: # #--------------------------------------------------------------------...
20.823529
80
0.319209
e8b00ae5d97685c2d5927e7d22497b77ea971e0c
3,325
py
Python
Assignment24/lips and eyes filter + scaling mouth/SolvePnPHeadPoseEstimation.py
BenyaminZojaji/image_processing
0cfe3a6b826b25fcdd0de5041916aed423bfdb37
[ "MIT" ]
21
2021-11-05T20:24:58.000Z
2022-02-05T07:49:28.000Z
Assignment24/lips and eyes filter/SolvePnPHeadPoseEstimation.py
BenyaminZojaji/image_processing
0cfe3a6b826b25fcdd0de5041916aed423bfdb37
[ "MIT" ]
null
null
null
Assignment24/lips and eyes filter/SolvePnPHeadPoseEstimation.py
BenyaminZojaji/image_processing
0cfe3a6b826b25fcdd0de5041916aed423bfdb37
[ "MIT" ]
2
2021-12-28T02:12:22.000Z
2022-02-09T12:39:54.000Z
import cv2 import numpy as np import sys class HeadPoseEstimator: def __init__(self, filepath, W, H) -> None: # camera matrix matrix = np.array([[W, 0, W/2.0], [0, W, H/2.0], [0, 0, 1]]) # load pre-defined 3d object point...
31.074766
73
0.563308
591e3014f83f2cd6c4593834030cfd395f8e4707
18,808
py
Python
scripts/uncertainty_scripts/train_all_diffobj.py
neuroailab/curiosity_deprecated
65f7cde13b07cdac52eed39535a94e7544c396b8
[ "Apache-2.0" ]
null
null
null
scripts/uncertainty_scripts/train_all_diffobj.py
neuroailab/curiosity_deprecated
65f7cde13b07cdac52eed39535a94e7544c396b8
[ "Apache-2.0" ]
2
2017-11-18T00:53:33.000Z
2017-11-18T00:53:40.000Z
scripts/uncertainty_scripts/train_all_diffobj.py
neuroailab/curiosity_deprecated
65f7cde13b07cdac52eed39535a94e7544c396b8
[ "Apache-2.0" ]
null
null
null
''' Random actions, after index mismatch bug. ''' import sys sys.path.append('/home/nhaber/projects/curiosity') sys.path.append('/home/nhaber/projects/tfutils') import tensorflow as tf from curiosity.interaction import train, environment, data, static_data, cfg_generation, update_step, mode_switching import curios...
31.504188
172
0.552797
cf39867c5c57b98a5366e87677fdea97a7841664
15,314
py
Python
sdk/python/pulumi_azure_native/securityinsights/v20210301preview/aws_cloud_trail_data_connector.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/securityinsights/v20210301preview/aws_cloud_trail_data_connector.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/securityinsights/v20210301preview/aws_cloud_trail_data_connector.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
45.987988
688
0.669845
b38a438a40e0e069828d4a94d82975d93fe58b77
2,034
py
Python
setup.py
eugene-davis/ebr-board
f592a752e17e869a6fd35ef82398f97748dbdc78
[ "Apache-2.0" ]
null
null
null
setup.py
eugene-davis/ebr-board
f592a752e17e869a6fd35ef82398f97748dbdc78
[ "Apache-2.0" ]
4
2019-08-02T09:35:51.000Z
2019-08-05T04:45:47.000Z
setup.py
LaudateCorpus1/ebr-board
f592a752e17e869a6fd35ef82398f97748dbdc78
[ "Apache-2.0" ]
1
2021-09-14T03:58:40.000Z
2021-09-14T03:58:40.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" from __future__ import with_statement try: from setuptools import setup, find_packages except ImportError: from distutils.core import setup, find_packages import ebr_board with open("README.md") as readme_file: readme = readme_file....
28.647887
91
0.681416
48e4ec8f0bb24d3b7361383795691bf2f1009655
51,768
py
Python
chia/daemon/server.py
Heather-Network/heather-blockchain
75a37c6f54d98b5c36c5e8cf5b27c5ed9ae977fa
[ "Apache-2.0" ]
1
2021-09-19T18:57:21.000Z
2021-09-19T18:57:21.000Z
chia/daemon/server.py
Heather-Network/heather-blockchain
75a37c6f54d98b5c36c5e8cf5b27c5ed9ae977fa
[ "Apache-2.0" ]
null
null
null
chia/daemon/server.py
Heather-Network/heather-blockchain
75a37c6f54d98b5c36c5e8cf5b27c5ed9ae977fa
[ "Apache-2.0" ]
null
null
null
import asyncio import json import logging import os import signal import subprocess import sys import time import traceback import uuid from concurrent.futures import ThreadPoolExecutor from enum import Enum from pathlib import Path from typing import Any, Dict, List, Optional, TextIO, Tuple, cast from websockets imp...
38.604027
116
0.61737
6628ba9c7748d71e3e7e774e43e3394ba75210ad
5,056
py
Python
django_extensions/management/commands/export_emails.py
kaozdl/django-extensions
bbc3ae686d2cba9c0bb0a6b88f5e71ddf1a6af36
[ "MIT" ]
null
null
null
django_extensions/management/commands/export_emails.py
kaozdl/django-extensions
bbc3ae686d2cba9c0bb0a6b88f5e71ddf1a6af36
[ "MIT" ]
10
2020-06-05T21:41:01.000Z
2022-02-10T07:33:38.000Z
django_extensions/management/commands/export_emails.py
kaozdl/django-extensions
bbc3ae686d2cba9c0bb0a6b88f5e71ddf1a6af36
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals, print_function import sys from django.contrib.auth import get_user_model from django.contrib.auth.models import Group from django.core.management.base import BaseCommand, CommandError from django_extensions.compat import csv_writer as writer from django...
36.374101
99
0.578323
4368500c075e428a90fbf0c95852e42793d16e21
1,085
py
Python
netbox_kafka_producer/__init__.py
posiczko/netbox-kafka-producer
cc328f2398bea6d2f4a0011feed413bc4f136381
[ "MIT" ]
null
null
null
netbox_kafka_producer/__init__.py
posiczko/netbox-kafka-producer
cc328f2398bea6d2f4a0011feed413bc4f136381
[ "MIT" ]
null
null
null
netbox_kafka_producer/__init__.py
posiczko/netbox-kafka-producer
cc328f2398bea6d2f4a0011feed413bc4f136381
[ "MIT" ]
null
null
null
from extras.plugins import PluginConfig class NetboxKafkaProducerConfig(PluginConfig): """ This class defines attributes for the NetBox Animal Sounds plugin. """ # Plugin package name name = 'netbox_kafka_producer' # Human-friendly name and description verbose_name = 'Netbox Kafka produce...
24.111111
76
0.662673
6855be0ddd5c277079d16dba6cba076f95456d20
338
py
Python
scripts/examples/advanced/simple.py
Laufire/ec
63e84a1daef9234487d7de538e5da233a7d13071
[ "BSD-3-Clause" ]
2
2017-08-26T12:21:14.000Z
2017-08-28T10:55:04.000Z
scripts/examples/advanced/simple.py
Laufire/ec
63e84a1daef9234487d7de538e5da233a7d13071
[ "BSD-3-Clause" ]
null
null
null
scripts/examples/advanced/simple.py
Laufire/ec
63e84a1daef9234487d7de538e5da233a7d13071
[ "BSD-3-Clause" ]
null
null
null
"""Helper import for demonstrating advanced examples. """ from ec.ec import task, arg, group @task @arg('arg1', type=int, desc='Value for arg1 (int)') @arg('arg2', type=int) def task1(arg1, arg2=1): print arg1, arg2 @group(desc='Description for group1.') class group1: @task @arg('arg1') def task1(arg1): ...
18.777778
53
0.671598
99264019e9da52e801f053a8405677cfc268306b
6,692
py
Python
tron/actioncommand.py
dnephin/Tron
bd0f763421c6de50551e9a4b0e4a1c0c8ceb450a
[ "Apache-2.0" ]
null
null
null
tron/actioncommand.py
dnephin/Tron
bd0f763421c6de50551e9a4b0e4a1c0c8ceb450a
[ "Apache-2.0" ]
null
null
null
tron/actioncommand.py
dnephin/Tron
bd0f763421c6de50551e9a4b0e4a1c0c8ceb450a
[ "Apache-2.0" ]
null
null
null
import logging import os from tron.config import schema from tron.serialize import filehandler from tron.utils import state, timeutils log = logging.getLogger(__name__) class ActionState(state.NamedEventState): pass class CompletedActionCommand(object): """This is a null object for ActionCommand.""" i...
30.418182
79
0.653915
440b4c8c70928e461edb9675070009070ace5d6c
767
py
Python
emo/wsLogin/models.py
EasyMealOrder/backEnd
3b7b2def08784a8aae863c941dc3cd0706a85b5d
[ "MIT" ]
null
null
null
emo/wsLogin/models.py
EasyMealOrder/backEnd
3b7b2def08784a8aae863c941dc3cd0706a85b5d
[ "MIT" ]
4
2018-06-20T08:10:35.000Z
2018-06-23T05:18:02.000Z
emo/wsLogin/models.py
EasyMealOrder/backEnd
3b7b2def08784a8aae863c941dc3cd0706a85b5d
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class WxUser(models.Model): id = models.BigAutoField(primary_key=True) session_id = models.CharField('session_id', max_length=150) nickname = models.CharField('昵称', max_length=150) sex = models.IntegerField('性别') province = models.CharFiel...
42.611111
67
0.720991
59939695a51a170ffadfe045fb4c65647999db3a
12,483
py
Python
github/release_notes/renderer.py
zkdev/cc-utils
042c6632ca6f61a484bc0a71f85957aeba7f7278
[ "BSD-3-Clause" ]
null
null
null
github/release_notes/renderer.py
zkdev/cc-utils
042c6632ca6f61a484bc0a71f85957aeba7f7278
[ "BSD-3-Clause" ]
null
null
null
github/release_notes/renderer.py
zkdev/cc-utils
042c6632ca6f61a484bc0a71f85957aeba7f7278
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2019-2020 SAP SE or an SAP affiliate company. All rights reserved. This file is # licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the L...
32.339378
101
0.634543
6e6233da3bcc159c130ddf635226a58e88be57fc
2,406
py
Python
12/train_scratch.py
LCL121/start-leanring-pytorch
f077ec892b538f3bff5825acce02872d31a1ab5d
[ "MIT" ]
null
null
null
12/train_scratch.py
LCL121/start-leanring-pytorch
f077ec892b538f3bff5825acce02872d31a1ab5d
[ "MIT" ]
null
null
null
12/train_scratch.py
LCL121/start-leanring-pytorch
f077ec892b538f3bff5825acce02872d31a1ab5d
[ "MIT" ]
null
null
null
import torch from torch import optim, nn import visdom import torchvision from torch.utils.data import DataLoader from pokemon import Pokemon from resnet import ResNet18 batchsz = 32 lr = 1e-3 epochs = 10 device = torch.device('cuda') torch.manual_seed(1234) train_db = Pokemon('../dataset/pokemon', 224, mode='trai...
27.033708
84
0.60931
b6c38067a23f078f30133d49f2c5fd5f77846bb8
7,357
py
Python
oembed/core.py
omni-digital/django-oembed
9f1bc1b5130dae8a0dd0aaaabb9602b9f8c2ae56
[ "BSD-3-Clause" ]
null
null
null
oembed/core.py
omni-digital/django-oembed
9f1bc1b5130dae8a0dd0aaaabb9602b9f8c2ae56
[ "BSD-3-Clause" ]
null
null
null
oembed/core.py
omni-digital/django-oembed
9f1bc1b5130dae8a0dd0aaaabb9602b9f8c2ae56
[ "BSD-3-Clause" ]
null
null
null
import re import urllib.request, urllib.error import gzip from heapq import heappush, heappop from io import StringIO try: import simplejson except ImportError: from django.utils import simplejson from django.conf import settings from django.utils.http import urlencode from django.utils.safestring import mark_s...
40.202186
114
0.595895
e3062b124219c226c8a09040d4ccc3a7260206ff
6,142
py
Python
multiworld/envs/mujoco/classic_mujoco/half_cheetah.py
corl2019metaworld/metaworld
46d54644915a7d80d3f4206e2e5abe1ccbdb5393
[ "MIT" ]
249
2018-06-07T19:12:05.000Z
2022-03-29T14:40:16.000Z
multiworld/envs/mujoco/classic_mujoco/half_cheetah.py
corl2019metaworld/metaworld
46d54644915a7d80d3f4206e2e5abe1ccbdb5393
[ "MIT" ]
37
2018-07-25T07:08:57.000Z
2021-03-13T21:13:51.000Z
multiworld/envs/mujoco/classic_mujoco/half_cheetah.py
corl2019metaworld/metaworld
46d54644915a7d80d3f4206e2e5abe1ccbdb5393
[ "MIT" ]
67
2018-06-26T21:41:21.000Z
2022-01-07T10:16:01.000Z
from collections import OrderedDict import numpy as np from gym.spaces import Dict, Box from multiworld.core.multitask_env import MultitaskEnv from multiworld.core.serializable import Serializable from multiworld.envs.env_util import get_stat_in_paths, create_stats_ordered_dict, get_asset_full_path from multiworld.envs...
34.312849
148
0.605992
3fcec7933fa34b0b794921e08104f125a0a50da4
5,589
py
Python
netbox/circuits/migrations/0001_initial_squashed_0010_circuit_status.py
xcorp/netbox
48b9c9da932dc736710d9c14793067093f8f1bde
[ "Apache-2.0" ]
6
2017-12-01T05:13:39.000Z
2020-01-23T13:04:43.000Z
netbox/circuits/migrations/0001_initial_squashed_0010_circuit_status.py
xcorp/netbox
48b9c9da932dc736710d9c14793067093f8f1bde
[ "Apache-2.0" ]
8
2021-04-16T01:38:00.000Z
2022-01-04T21:27:27.000Z
netbox/circuits/migrations/0001_initial_squashed_0010_circuit_status.py
xcorp/netbox
48b9c9da932dc736710d9c14793067093f8f1bde
[ "Apache-2.0" ]
3
2017-11-18T01:28:22.000Z
2018-05-17T14:04:43.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.14 on 2018-07-31 02:25 import dcim.fields from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): replaces = [('circuits', '0001_initial'), ('circuits', '0002_auto_20160622_1821'), ('circuits', '0003_provi...
58.831579
451
0.604044
7668abd0213c180f9c98071efbc9347d68617826
124
py
Python
src/gamenight/app/config/default.py
justanr/gamenight
968dad4b60179c6a2dbdc5006835eda7dc17640d
[ "MIT" ]
3
2018-04-24T07:54:48.000Z
2021-05-15T02:55:11.000Z
src/gamenight/app/config/default.py
justanr/gamenight
968dad4b60179c6a2dbdc5006835eda7dc17640d
[ "MIT" ]
11
2018-04-25T02:30:00.000Z
2018-05-08T01:03:33.000Z
src/gamenight/app/config/default.py
justanr/gamenight
968dad4b60179c6a2dbdc5006835eda7dc17640d
[ "MIT" ]
null
null
null
class DefaultGameNightConfig: SQLALCHEMY_DATABASE_URI = 'sqlite:///games.db' SQLALCHEMY_TRACK_MODIFICATIONS = False
31
50
0.790323
788755fd74d7526c6b1e2b7a97185ea059167470
2,341
py
Python
src/crawler-retriever.py
GTG3000/StarboundDescriptionPatcher-Compiler
44e9b1621a4372ba185f1ffbdd6687e931f44fda
[ "Apache-2.0" ]
1
2016-10-27T04:22:20.000Z
2016-10-27T04:22:20.000Z
src/crawler-retriever.py
GTG3000/StarboundDescriptionPatcher-Compiler
44e9b1621a4372ba185f1ffbdd6687e931f44fda
[ "Apache-2.0" ]
null
null
null
src/crawler-retriever.py
GTG3000/StarboundDescriptionPatcher-Compiler
44e9b1621a4372ba185f1ffbdd6687e931f44fda
[ "Apache-2.0" ]
null
null
null
import os import json import re def removecomments(s): inCommentSingle = False inCommentMulti = False inString = False t = [] l = len(s) i = 0 fromIndex = 0 while i < l: c = s[i] if not inCommentMulti and not inCommentSingle: if c == '"':...
27.869048
138
0.442546
667819357e155c51c422b1eb0fb2798563256a7b
1,643
py
Python
app/views/leads_view.py
dio-silvestre/ComunicaDev-Flask-Restful
c2a4c84f47305af13bbe60df588b1bca0eacb22f
[ "MIT" ]
null
null
null
app/views/leads_view.py
dio-silvestre/ComunicaDev-Flask-Restful
c2a4c84f47305af13bbe60df588b1bca0eacb22f
[ "MIT" ]
null
null
null
app/views/leads_view.py
dio-silvestre/ComunicaDev-Flask-Restful
c2a4c84f47305af13bbe60df588b1bca0eacb22f
[ "MIT" ]
null
null
null
from http import HTTPStatus from app.exc import DataAlreadyRegistered, DataNotFound, InvalidEmailError from flask_restful import Resource from flask import make_response from flask_jwt_extended import jwt_required from app.services.leads_service import LeadService from app.configs.decorators import verify_role_admin ...
26.934426
74
0.690201
a476fe484deaa623b0f99d63403e69756464eaa4
18,658
py
Python
statsmodels/multivariate/factor_rotation/_gpa_rotation.py
luxiform/statsmodels
916856b3ae555ead658daec31fb5130f1bbf77d5
[ "BSD-3-Clause" ]
1
2019-12-16T10:12:31.000Z
2019-12-16T10:12:31.000Z
statsmodels/multivariate/factor_rotation/_gpa_rotation.py
sscswapnil/statsmodels
89fa4e3b685d160f94c4d99e655029c519115b17
[ "BSD-3-Clause" ]
null
null
null
statsmodels/multivariate/factor_rotation/_gpa_rotation.py
sscswapnil/statsmodels
89fa4e3b685d160f94c4d99e655029c519115b17
[ "BSD-3-Clause" ]
1
2022-01-31T11:43:28.000Z
2022-01-31T11:43:28.000Z
# -*- coding: utf-8 -*- """ This file contains a Python version of the gradient projection rotation algorithms (GPA) developed by Bernaards, C.A. and Jennrich, R.I. The code is based on code developed Bernaards, C.A. and Jennrich, R.I. and is ported and made available with permission of the authors. References -------...
31.410774
79
0.582806
fe14cd3e059203ce9b86cc080a843f0643fbc57c
133
py
Python
data/gr-boundary-golf.py
cheeseywhiz/cheeseywhiz
51f6651ddbaeebd14d9ce77776bc4cf3a95511c4
[ "MIT" ]
null
null
null
data/gr-boundary-golf.py
cheeseywhiz/cheeseywhiz
51f6651ddbaeebd14d9ce77776bc4cf3a95511c4
[ "MIT" ]
null
null
null
data/gr-boundary-golf.py
cheeseywhiz/cheeseywhiz
51f6651ddbaeebd14d9ce77776bc4cf3a95511c4
[ "MIT" ]
null
null
null
import json,matplotlib.pyplot as p;p.plot(*zip(*json.loads(open('f').read())['features'][0]['geometry']['coordinates'][0]));p.show()
66.5
132
0.669173
aff885221137789a6ffac105f98648f256432613
4,223
py
Python
pysot/datasets/anchor_target.py
Existever/Pysot
41f009904c81422ae71e83aab5655631d5c4b0d8
[ "Apache-2.0", "MIT" ]
1
2020-08-14T14:57:57.000Z
2020-08-14T14:57:57.000Z
pysot/datasets/anchor_target.py
Existever/Pysot
41f009904c81422ae71e83aab5655631d5c4b0d8
[ "Apache-2.0", "MIT" ]
null
null
null
pysot/datasets/anchor_target.py
Existever/Pysot
41f009904c81422ae71e83aab5655631d5c4b0d8
[ "Apache-2.0", "MIT" ]
1
2019-11-26T11:48:40.000Z
2019-11-26T11:48:40.000Z
# Copyright (c) SenseTime. All Rights Reserved. from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import numpy as np from pysot.core.config import cfg from pysot.utils.bbox import IoU, corner2center from pysot.utils.an...
42.656566
161
0.574473
8b28789975fb65cdc4570c39689b414b8731db83
11,644
py
Python
pymlsql/aliyun/ecs_builder.py
allwefantasy/PyMLSQL
9d7a6aa2df42fd7a384885f1423c34ae5baff925
[ "Apache-2.0" ]
null
null
null
pymlsql/aliyun/ecs_builder.py
allwefantasy/PyMLSQL
9d7a6aa2df42fd7a384885f1423c34ae5baff925
[ "Apache-2.0" ]
null
null
null
pymlsql/aliyun/ecs_builder.py
allwefantasy/PyMLSQL
9d7a6aa2df42fd7a384885f1423c34ae5baff925
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import json import logging import time import pymlsql.aliyun.shellutils as shellutils from aliyunsdkcore.client import AcsClient from aliyunsdkecs.request.v20140526.AllocatePublicIpAddressRequest import AllocatePublicIpAddressRequest from aliyunsdkecs.request.v20140526.CreateInstanceRe...
42.188406
115
0.654844
3ab5717eb9a9a1e04548160e636139e51ae35eeb
371
py
Python
04-python-academy-files-lab/print_comments.py
iproduct/intro-python
8fcf682286dad3fc65f46ccff33aefab9c601306
[ "Apache-2.0" ]
3
2022-01-10T07:56:37.000Z
2022-02-14T16:37:56.000Z
04-python-academy-files-lab/print_comments.py
iproduct/intro-python
8fcf682286dad3fc65f46ccff33aefab9c601306
[ "Apache-2.0" ]
null
null
null
04-python-academy-files-lab/print_comments.py
iproduct/intro-python
8fcf682286dad3fc65f46ccff33aefab9c601306
[ "Apache-2.0" ]
1
2022-02-14T16:36:46.000Z
2022-02-14T16:36:46.000Z
import sys if __name__ == "__main__": if len(sys.argv) > 1: filename = sys.argv[1] else: filename = __file__ print(f"Opening: {filename}") with open(filename, encoding="utf-8") as f: for i, line in enumerate(f): pos = line.find("#") if pos >= 0: ...
26.5
59
0.504043
c0661af07b482dc3e4eea84108916c9daad84a3e
8,365
py
Python
libcloud/test/compute/test_kubevirt.py
gig-tech/libcloud
3c7f83f64ee72252a14ddc1e1f8cac4474a0be4b
[ "Apache-2.0" ]
null
null
null
libcloud/test/compute/test_kubevirt.py
gig-tech/libcloud
3c7f83f64ee72252a14ddc1e1f8cac4474a0be4b
[ "Apache-2.0" ]
null
null
null
libcloud/test/compute/test_kubevirt.py
gig-tech/libcloud
3c7f83f64ee72252a14ddc1e1f8cac4474a0be4b
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
39.833333
91
0.621518
364ee95a08a5727972b3d415785ca55545423e8e
776
py
Python
File_Handling/04E_directory_traversal/directory_traversal.py
MihailMarkovski/Python-Advanced-2020
8edea78cbe5588a409ba9bc3767861250f58c1a6
[ "MIT" ]
4
2020-09-19T13:53:19.000Z
2020-11-01T18:34:53.000Z
File_Handling/04E_directory_traversal/directory_traversal.py
MNikov/Python-Advanced-September-2020
1d65039de7f094d908411afffa8aee9689ab4220
[ "MIT" ]
null
null
null
File_Handling/04E_directory_traversal/directory_traversal.py
MNikov/Python-Advanced-September-2020
1d65039de7f094d908411afffa8aee9689ab4220
[ "MIT" ]
null
null
null
import os path = input() files_dict = {} sep_count = path.count(os.path.sep) for root, directories, files in os.walk(path): if sep_count - root.count(os.path.sep) > 1: continue for file in files: file_extension = file.split('.')[-1] if file_extension not in files_dict: file...
28.740741
74
0.654639
6cb9aba7086463c56cb5b03a0a57035603977eff
2,416
py
Python
src/unicon/plugins/tests/test_plugin_dell.py
TestingBytes/unicon.plugins
0600956d805deb4fd790aa3ef591c5d659e85de1
[ "Apache-2.0" ]
18
2019-11-23T23:14:53.000Z
2022-01-10T01:17:08.000Z
src/unicon/plugins/tests/test_plugin_dell.py
TestingBytes/unicon.plugins
0600956d805deb4fd790aa3ef591c5d659e85de1
[ "Apache-2.0" ]
12
2020-11-09T20:39:25.000Z
2022-03-22T12:46:59.000Z
src/unicon/plugins/tests/test_plugin_dell.py
TestingBytes/unicon.plugins
0600956d805deb4fd790aa3ef591c5d659e85de1
[ "Apache-2.0" ]
32
2020-02-12T15:42:22.000Z
2022-03-15T16:42:10.000Z
import os import yaml import unittest from unittest.mock import patch import unicon from unicon import Connection from unicon.eal.dialogs import Dialog from unicon.mock.mock_device import mockdata_path with open(os.path.join(mockdata_path, 'dell/dell_mock_data.yaml'), 'rb') as datafile: mock_data = yaml.safe_load...
35.529412
92
0.551738
b1e797b82686086d119ec6f5c1ab9f63aff1431f
285
py
Python
membership_program/config/desktop.py
techlift-tech/membership_program
265a84345c26670f037beb7363b05acb3f9586f2
[ "MIT" ]
null
null
null
membership_program/config/desktop.py
techlift-tech/membership_program
265a84345c26670f037beb7363b05acb3f9586f2
[ "MIT" ]
null
null
null
membership_program/config/desktop.py
techlift-tech/membership_program
265a84345c26670f037beb7363b05acb3f9586f2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from frappe import _ def get_data(): return [ { "module_name": "Membership Program", "color": "grey", "icon": "octicon octicon-file-directory", "type": "module", "label": _("Membership Program") } ]
19
44
0.635088
a8ce2f47da5f0795abf6a620d1e35df9debf97bc
581
py
Python
make_video.py
jrkwon/CarND-Semantic-Segmentation
a17d79b1b73062430ea15fdd5c1e33d12e5b4592
[ "MIT" ]
1
2020-07-07T00:24:34.000Z
2020-07-07T00:24:34.000Z
make_video.py
jrkwon/CarND-Semantic-Segmentation
a17d79b1b73062430ea15fdd5c1e33d12e5b4592
[ "MIT" ]
null
null
null
make_video.py
jrkwon/CarND-Semantic-Segmentation
a17d79b1b73062430ea15fdd5c1e33d12e5b4592
[ "MIT" ]
null
null
null
import cv2 import os import sys if len(sys.argv) == 1: print('Need runs_id') sys.exit() runs_id = sys.argv[1] #'1545192834.8808994' image_folder = 'runs/' + runs_id video_name = 'video-'+runs_id+'.avi' images = [img for img in sorted(os.listdir(image_folder)) if img.endswith(".png")] frame = cv2.imread(os.pa...
25.26087
87
0.709122
c5967f40310eb8ca249fe2b8f6338c134e3236d4
5,412
py
Python
datadog_checks_dev/datadog_checks/dev/tooling/commands/validate/recommended_monitors.py
ypisetsky/integrations-core
f7153d3f896827c3325c7f0ec088bc17d088a894
[ "BSD-3-Clause" ]
1
2021-06-06T23:49:17.000Z
2021-06-06T23:49:17.000Z
datadog_checks_dev/datadog_checks/dev/tooling/commands/validate/recommended_monitors.py
ypisetsky/integrations-core
f7153d3f896827c3325c7f0ec088bc17d088a894
[ "BSD-3-Clause" ]
null
null
null
datadog_checks_dev/datadog_checks/dev/tooling/commands/validate/recommended_monitors.py
ypisetsky/integrations-core
f7153d3f896827c3325c7f0ec088bc17d088a894
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2020-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import json import os import click from ....utils import read_file from ...testing import process_checks_option from ...utils import complete_valid_checks, get_assets_from_manifest, load_manifest from ....
41.312977
120
0.571877
3679a441970e3fdd0647330f8378b3cbce1d21f1
1,824
py
Python
symposion/schedule/urls.py
pyohio/symposion
f8ec9c7e7daab4658061867d1294c1c126dd2919
[ "BSD-3-Clause" ]
null
null
null
symposion/schedule/urls.py
pyohio/symposion
f8ec9c7e7daab4658061867d1294c1c126dd2919
[ "BSD-3-Clause" ]
5
2015-07-16T19:46:00.000Z
2018-03-11T05:58:48.000Z
symposion/schedule/urls.py
pyohio/symposion
f8ec9c7e7daab4658061867d1294c1c126dd2919
[ "BSD-3-Clause" ]
1
2017-01-27T21:18:26.000Z
2017-01-27T21:18:26.000Z
from __future__ import unicode_literals from django.conf.urls import url from .views import ( schedule_conference, schedule_edit, schedule_list, schedule_list_csv, schedule_list_json, schedule_presentation_detail, schedule_detail, schedule_slot_edit, schedule_json, session_staff...
43.428571
101
0.697917
9b57b05732f73fa5f2d1b20dc1099d44b4a8f2c7
6,397
py
Python
3QVeryMuch/test/test_stort3Qdb.py
philip-shen/note_python
db0ad84af25464a22ac52e348960107c81e74a56
[ "MIT" ]
null
null
null
3QVeryMuch/test/test_stort3Qdb.py
philip-shen/note_python
db0ad84af25464a22ac52e348960107c81e74a56
[ "MIT" ]
11
2021-02-08T20:45:23.000Z
2022-03-12T01:00:11.000Z
3QVeryMuch/test/test_stort3Qdb.py
philip-shen/note_python
db0ad84af25464a22ac52e348960107c81e74a56
[ "MIT" ]
null
null
null
# 3/28/2020 Convert Nested JSON to Pandas DataFrame and Flatten List in a Column # https://gist.github.com/rafaan/4ddc91ae47ea46a46c0b # 6/25/2020 Initial ######################################################## import json from pandas.io.json import json_normalize import pandas as pd import os,sys,time,platform st...
47.385185
176
0.530405
8b1e22d994ed025617c24c82bd0c0bc97fa27c98
6,046
py
Python
salt/modules/ldapmod.py
ifraixedes/saltstack-salt
b54becb8b43cc9b7c00b2c0bc637ac534dc62896
[ "Apache-2.0" ]
9,425
2015-01-01T05:59:24.000Z
2022-03-31T20:44:05.000Z
salt/modules/ldapmod.py
ifraixedes/saltstack-salt
b54becb8b43cc9b7c00b2c0bc637ac534dc62896
[ "Apache-2.0" ]
33,507
2015-01-01T00:19:56.000Z
2022-03-31T23:48:20.000Z
salt/modules/ldapmod.py
ifraixedes/saltstack-salt
b54becb8b43cc9b7c00b2c0bc637ac534dc62896
[ "Apache-2.0" ]
5,810
2015-01-01T19:11:45.000Z
2022-03-31T02:37:20.000Z
""" Salt interface to LDAP commands :depends: - ldap Python module :configuration: In order to connect to LDAP, certain configuration is required in the minion config on the LDAP server. The minimum configuration items that must be set are: .. code-block:: yaml ldap.basedn: dc=acme,dc=com (exam...
28.12093
85
0.592954
3ae7c4a22cffa35f7b1e2ff28be360b161d229ea
8,645
py
Python
resources/dot_PyCharm/system/python_stubs/-762174762/PySide/QtGui/QTextCursor.py
basepipe/developer_onboarding
05b6a776f8974c89517868131b201f11c6c2a5ad
[ "MIT" ]
1
2020-04-20T02:27:20.000Z
2020-04-20T02:27:20.000Z
resources/dot_PyCharm/system/python_stubs/cache/8cdc475d469a13122bc4bc6c3ac1c215d93d5f120f5cc1ef33a8f3088ee54d8e/PySide/QtGui/QTextCursor.py
basepipe/developer_onboarding
05b6a776f8974c89517868131b201f11c6c2a5ad
[ "MIT" ]
null
null
null
resources/dot_PyCharm/system/python_stubs/cache/8cdc475d469a13122bc4bc6c3ac1c215d93d5f120f5cc1ef33a8f3088ee54d8e/PySide/QtGui/QTextCursor.py
basepipe/developer_onboarding
05b6a776f8974c89517868131b201f11c6c2a5ad
[ "MIT" ]
null
null
null
# encoding: utf-8 # module PySide.QtGui # from C:\Python27\lib\site-packages\PySide\QtGui.pyd # by generator 1.147 # no doc # imports import PySide.QtCore as __PySide_QtCore import Shiboken as __Shiboken class QTextCursor(__Shiboken.Object): # no doc def anchor(self, *args, **kwargs): # real signature unknow...
33.25
94
0.672065
bcc1dd1bfcd3e8bb635db2d4093d3c6811342d4b
813
py
Python
test/test_product_price_response.py
kinow-io/kaemo-python-sdk
610fce09e3a9e631babf09195b0492959d9e4d56
[ "Apache-2.0" ]
1
2017-05-03T12:48:22.000Z
2017-05-03T12:48:22.000Z
test/test_product_price_response.py
kinow-io/kaemo-python-sdk
610fce09e3a9e631babf09195b0492959d9e4d56
[ "Apache-2.0" ]
null
null
null
test/test_product_price_response.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.3 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys import unittest import kinow_client from kinow_client.rest import A...
18.906977
81
0.708487
7da0e431677783c3e72205012b743d8b82287911
13,599
py
Python
skfda/ml/regression/_neighbors_regression.py
jiduque/scikit-fda
5ea71e78854801b259aa3a01eb6b154aa63bf54b
[ "BSD-3-Clause" ]
147
2019-05-10T20:46:42.000Z
2022-03-25T17:23:19.000Z
skfda/ml/regression/_neighbors_regression.py
jiduque/scikit-fda
5ea71e78854801b259aa3a01eb6b154aa63bf54b
[ "BSD-3-Clause" ]
306
2019-04-26T08:56:05.000Z
2022-03-30T11:12:48.000Z
skfda/ml/regression/_neighbors_regression.py
jiduque/scikit-fda
5ea71e78854801b259aa3a01eb6b154aa63bf54b
[ "BSD-3-Clause" ]
38
2019-09-03T17:24:04.000Z
2022-01-06T05:09:18.000Z
"""Neighbor models for regression.""" from sklearn.neighbors import ( KNeighborsRegressor as _KNeighborsRegressor, RadiusNeighborsRegressor as _RadiusNeighborsRegressor, ) from .._neighbors_base import ( KNeighborsMixin, NeighborsBase, NeighborsRegressorMixin, RadiusNeighborsMixin, ) class K...
39.64723
79
0.671005
c4c56eeb34bdf86315e49480f6fd7580d11e247d
557
py
Python
operator_api/ledger/migrations/0003_auto_20171229_1455.py
liquidity-network/nocust-hub
76f49f9b8a6c264fcbe9e0c110e98031d463c0a8
[ "MIT" ]
1
2021-08-04T06:09:46.000Z
2021-08-04T06:09:46.000Z
operator_api/ledger/migrations/0003_auto_20171229_1455.py
liquidity-network/nocust-hub
76f49f9b8a6c264fcbe9e0c110e98031d463c0a8
[ "MIT" ]
8
2020-11-01T19:48:21.000Z
2022-02-10T14:12:25.000Z
operator_api/ledger/migrations/0003_auto_20171229_1455.py
liquidity-network/nocust-hub
76f49f9b8a6c264fcbe9e0c110e98031d463c0a8
[ "MIT" ]
3
2020-11-01T15:59:56.000Z
2021-09-16T07:18:18.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.8 on 2017-12-29 14:55 from __future__ import unicode_literals import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ledger', '0002_pgsql_constraints'), ] operations = [ ...
24.217391
74
0.639138
f05d7fd0f9642e16df14234b0faf65e856bb37ef
8,988
py
Python
imcsdk/mometa/bios/BiosVfUSBPortsConfig.py
vadimkuznetsov/imcsdk
ed038ce1dbc8031f99d2dfb3ccee3bf0b48309d8
[ "Apache-2.0" ]
null
null
null
imcsdk/mometa/bios/BiosVfUSBPortsConfig.py
vadimkuznetsov/imcsdk
ed038ce1dbc8031f99d2dfb3ccee3bf0b48309d8
[ "Apache-2.0" ]
null
null
null
imcsdk/mometa/bios/BiosVfUSBPortsConfig.py
vadimkuznetsov/imcsdk
ed038ce1dbc8031f99d2dfb3ccee3bf0b48309d8
[ "Apache-2.0" ]
1
2019-11-10T18:42:04.000Z
2019-11-10T18:42:04.000Z
"""This module contains the general information for BiosVfUSBPortsConfig ManagedObject.""" from ...imcmo import ManagedObject from ...imccoremeta import MoPropertyMeta, MoMeta from ...imcmeta import VersionMeta class BiosVfUSBPortsConfigConsts: VP_ALL_USB_DEVICES_DISABLED = "Disabled" VP_ALL_USB_DEVICES_ENAB...
66.088235
256
0.683689
e2c824c53b1ca2ad2a753d8ea2eb35283b797c73
15,524
py
Python
conanfile.py
HerAmu/conan-ogre3d
80e4cc40d55f66579c312dbe5042f794d8e3426d
[ "MIT" ]
null
null
null
conanfile.py
HerAmu/conan-ogre3d
80e4cc40d55f66579c312dbe5042f794d8e3426d
[ "MIT" ]
null
null
null
conanfile.py
HerAmu/conan-ogre3d
80e4cc40d55f66579c312dbe5042f794d8e3426d
[ "MIT" ]
null
null
null
from conans import ConanFile, CMake, tools from conans.model.version import Version class Ogre3dConan(ConanFile): name = "ogre3d" version = "1.12.9" license = "MIT" author = "SINTEF Ocean" url = "https://github.com/sintef-ocean/conan-ogre3d" description = "3D graphics rendering engine" top...
42.76584
118
0.616014
fdaa17f290c5a640a9e84a511383781a4fdb7352
221
pyde
Python
Homework/Listings/li2/li2.pyde
GranDarKross/2019-fall-polytech-cs
01ea3dccf7da66a32b14ec0df28d97cefc1d2160
[ "MIT" ]
null
null
null
Homework/Listings/li2/li2.pyde
GranDarKross/2019-fall-polytech-cs
01ea3dccf7da66a32b14ec0df28d97cefc1d2160
[ "MIT" ]
null
null
null
Homework/Listings/li2/li2.pyde
GranDarKross/2019-fall-polytech-cs
01ea3dccf7da66a32b14ec0df28d97cefc1d2160
[ "MIT" ]
null
null
null
def setup(): size(400,400) smooth() noLoop() background(10) strokeWeight(10) stroke(150) def draw(): fill(250) rect(100,100,100,100) fill(50) rect(200,200,50,100)
15.785714
26
0.524887
5b0bcc25efcfe37c7ea916e2633f36f9dea4bbaa
16,284
py
Python
synthtool/gcp/common.py
dzou/synthtool
d730883a396d1b475df95ddd47fdb6ccc79a29db
[ "Apache-2.0" ]
null
null
null
synthtool/gcp/common.py
dzou/synthtool
d730883a396d1b475df95ddd47fdb6ccc79a29db
[ "Apache-2.0" ]
null
null
null
synthtool/gcp/common.py
dzou/synthtool
d730883a396d1b475df95ddd47fdb6ccc79a29db
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
42.628272
100
0.637497
5655dffda485a47712f676825c0040e67df59ae3
548
py
Python
algobattle/team.py
ImogenBits/algobattle
321b8a5b2ea9c92cb5c28fc2110aa41dbe25a4bb
[ "MIT" ]
null
null
null
algobattle/team.py
ImogenBits/algobattle
321b8a5b2ea9c92cb5c28fc2110aa41dbe25a4bb
[ "MIT" ]
null
null
null
algobattle/team.py
ImogenBits/algobattle
321b8a5b2ea9c92cb5c28fc2110aa41dbe25a4bb
[ "MIT" ]
null
null
null
"""Team class, stores necessary information about a Team, such as their associated solver and generator.""" class Team: """Team class responsible for holding basic information of a specific team.""" def __init__(self, team_name: str, generator_path: str, solver_path: str) -> None: self.name = str(tea...
39.142857
114
0.693431
aef3d8e90034b2de628ff8516fec2f0184e98dcf
557
py
Python
selfdrive/pandad.py
jeroenbbb/openpilot
4a2ff784f85ac87a4aa9ba8a345c2403102f960a
[ "MIT" ]
null
null
null
selfdrive/pandad.py
jeroenbbb/openpilot
4a2ff784f85ac87a4aa9ba8a345c2403102f960a
[ "MIT" ]
null
null
null
selfdrive/pandad.py
jeroenbbb/openpilot
4a2ff784f85ac87a4aa9ba8a345c2403102f960a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # simple boardd wrapper that updates the panda first import os from panda import ensure_st_up_to_date from common.params import Params params = Params() is_panda_absent = params.get("IsPandaAbsent").decode() == '1' def main(gctx=None): if is_panda_absent: print ("No Panda available") e...
20.62963
72
0.696589
32a2db7be723b3cd4f22eb0473031ce51cba2ccf
771
py
Python
mayan/apps/common/menus.py
eshbeata/open-paperless
6b9ed1f21908116ad2795b3785b2dbd66713d66e
[ "Apache-2.0" ]
2,743
2017-12-18T07:12:30.000Z
2022-03-27T17:21:25.000Z
mayan/apps/common/menus.py
eshbeata/open-paperless
6b9ed1f21908116ad2795b3785b2dbd66713d66e
[ "Apache-2.0" ]
15
2017-12-18T14:58:07.000Z
2021-03-01T20:05:05.000Z
mayan/apps/common/menus.py
eshbeata/open-paperless
6b9ed1f21908116ad2795b3785b2dbd66713d66e
[ "Apache-2.0" ]
257
2017-12-18T03:12:58.000Z
2022-03-25T08:59:10.000Z
from __future__ import unicode_literals from django.utils.translation import ugettext_lazy as _ from navigation import Menu __all__ = ( 'menu_about', 'menu_facet', 'menu_object', 'menu_main', 'menu_multi_item', 'menu_secondary', 'menu_setup', 'menu_sidebar', 'menu_tools', 'menu_user' ) menu_about = Menu(ico...
32.125
78
0.728923
a40c5bdbd63322a83293504d8c9a9b6ec79923d8
3,472
py
Python
idaes/tests/prescient/test_prescient.py
CATER-UCF/idaes-pse
afccbd43e56dc39d63542b4d400ac027b0ccbe84
[ "RSA-MD" ]
null
null
null
idaes/tests/prescient/test_prescient.py
CATER-UCF/idaes-pse
afccbd43e56dc39d63542b4d400ac027b0ccbe84
[ "RSA-MD" ]
null
null
null
idaes/tests/prescient/test_prescient.py
CATER-UCF/idaes-pse
afccbd43e56dc39d63542b4d400ac027b0ccbe84
[ "RSA-MD" ]
1
2022-03-17T11:08:43.000Z
2022-03-17T11:08:43.000Z
################################################################################# # The Institute for the Design of Advanced Energy Systems Integrated Platform # Framework (IDAES IP) was produced under the DOE Institute for the # Design of Advanced Energy Systems (IDAES), and is copyright (c) 2018-2021 # by the softwar...
34.376238
120
0.639977
ce4b9dfe18ec4fdea20f817d5e1055495c9feb28
4,566
py
Python
mtgx2nx/parser.py
Woniuke/mtgx2nx
141b28d0ae3b7c748a83a0ead187245b21058dd2
[ "MIT" ]
null
null
null
mtgx2nx/parser.py
Woniuke/mtgx2nx
141b28d0ae3b7c748a83a0ead187245b21058dd2
[ "MIT" ]
null
null
null
mtgx2nx/parser.py
Woniuke/mtgx2nx
141b28d0ae3b7c748a83a0ead187245b21058dd2
[ "MIT" ]
null
null
null
import os import xml.etree.cElementTree as ElementTree import zipfile import networkx as nx class Maltego: def __init__(self, file_path): self.entities = dict() self.graph = list() self.mtgx_info = dict() self.__parser_mtgx(file_path) def __get_entity(self, xml_entity): ...
37.735537
109
0.52869
47b040316a076b263c5d5179d85a8b2a22bc7133
21,389
py
Python
vae/loop_tools.py
kiwi0fruit/jats-semi-supervised-pytorch
67e9bb85f09f8ef02e17e495784d1d9a71c3adec
[ "MIT" ]
null
null
null
vae/loop_tools.py
kiwi0fruit/jats-semi-supervised-pytorch
67e9bb85f09f8ef02e17e495784d1d9a71c3adec
[ "MIT" ]
null
null
null
vae/loop_tools.py
kiwi0fruit/jats-semi-supervised-pytorch
67e9bb85f09f8ef02e17e495784d1d9a71c3adec
[ "MIT" ]
null
null
null
from typing import Union, Tuple, Dict, List, Iterator, Any, Iterable, Callable, Optional as Opt from dataclasses import dataclass, asdict from abc import abstractmethod from os import path import math # noinspection PyPep8Naming from numpy import ndarray as Array import torch as tr from torch import Tensor from torch.o...
38.748188
119
0.574781
f34e76f77f83ef0b0586ee4ed3d19be9a20d4cd4
6,988
py
Python
src/main/generator/pages/judge.py
zrev2220/open-contest
5dbb383a19b8ff4dfe5bdcf18379cb8aa13b47b9
[ "Apache-2.0" ]
null
null
null
src/main/generator/pages/judge.py
zrev2220/open-contest
5dbb383a19b8ff4dfe5bdcf18379cb8aa13b47b9
[ "Apache-2.0" ]
null
null
null
src/main/generator/pages/judge.py
zrev2220/open-contest
5dbb383a19b8ff4dfe5bdcf18379cb8aa13b47b9
[ "Apache-2.0" ]
null
null
null
from code.util import register from code.util.db import Contest, Problem, Submission from code.generator.lib.htmllib import * from code.generator.lib.page import * import logging from datetime import datetime class ProblemTab(UIElement): def __init__(self, x): num, prob = x self.html = h.li( ...
36.586387
194
0.509588
28d5f6b19c0c0980c14bc9a121923877bad18de9
17,224
py
Python
lib/debugger/VendorLib/vs-py-debugger/pythonFiles/experimental/ptvsd/ptvsd/_vendored/pydevd/_pydev_bundle/_pydev_jy_imports_tipper.py
barni2000/ide-python
605eada30ae32da6e43ab5f79f861bade79d797c
[ "MIT" ]
349
2019-05-07T00:15:12.000Z
2022-03-10T15:05:08.000Z
lib/debugger/VendorLib/vs-py-debugger/pythonFiles/experimental/ptvsd/ptvsd/_vendored/pydevd/_pydev_bundle/_pydev_jy_imports_tipper.py
ichoake/ide-python
768c6bc1f0d9d8cd876f30c56921ac2f8d1caa2e
[ "MIT" ]
1,095
2018-03-01T00:50:11.000Z
2019-05-06T17:44:15.000Z
lib/debugger/VendorLib/vs-py-debugger/pythonFiles/experimental/ptvsd/ptvsd/_vendored/pydevd/_pydev_bundle/_pydev_jy_imports_tipper.py
ichoake/ide-python
768c6bc1f0d9d8cd876f30c56921ac2f8d1caa2e
[ "MIT" ]
53
2018-03-01T00:33:57.000Z
2019-05-05T00:50:23.000Z
try: import StringIO except: import io as StringIO import traceback from java.lang import StringBuffer #@UnresolvedImport from java.lang import String #@UnresolvedImport import java.lang #@UnresolvedImport import sys from _pydev_bundle._pydev_tipper_common import do_find from org.python.core import PyReflect...
34.106931
138
0.532687
76ee2cabd73b52e0cad58ba9261323747286a306
5,334
py
Python
nemo/collections/asr/parts/mixins.py
vadam5/NeMo
3c5db09539293c3c19a6bb7437011f91261119af
[ "Apache-2.0" ]
1
2021-06-19T19:27:19.000Z
2021-06-19T19:27:19.000Z
nemo/collections/asr/parts/mixins.py
vadam5/NeMo
3c5db09539293c3c19a6bb7437011f91261119af
[ "Apache-2.0" ]
null
null
null
nemo/collections/asr/parts/mixins.py
vadam5/NeMo
3c5db09539293c3c19a6bb7437011f91261119af
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020, NVIDIA CORPORATION. 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 appli...
41.671875
108
0.655606
ac51f7f1020f1bb92661e3287b2ab7f9ea81f998
2,947
py
Python
osp/test/citations/models/citation_index/test_es_insert.py
davidmcclure/open-syllabus-project
078cfd4c5a257fbfb0901d43bfbc6350824eed4e
[ "Apache-2.0" ]
220
2016-01-22T21:19:02.000Z
2022-01-25T04:33:55.000Z
osp/test/citations/models/citation_index/test_es_insert.py
davidmcclure/open-syllabus-project
078cfd4c5a257fbfb0901d43bfbc6350824eed4e
[ "Apache-2.0" ]
14
2016-01-23T14:34:39.000Z
2016-09-19T19:58:37.000Z
osp/test/citations/models/citation_index/test_es_insert.py
davidmcclure/open-syllabus-project
078cfd4c5a257fbfb0901d43bfbc6350824eed4e
[ "Apache-2.0" ]
14
2016-02-03T13:47:48.000Z
2019-03-27T13:09:05.000Z
import pytest from osp.common import config from osp.institutions.models import Institution_Document from osp.citations.models import Citation_Index pytestmark = pytest.mark.usefixtures('db', 'es') def test_index_citation_fields(add_citation): """ Local rows - text_id, document_id, and corpus - should b...
23.576
77
0.678996
ca3b237379895d396cb49e0c47566425ce8a77eb
639
py
Python
initdb.py
DaoliName/daoliweb
f5e676cf0c4e903faf25315fa8f5af0faaeaf29f
[ "Apache-2.0" ]
null
null
null
initdb.py
DaoliName/daoliweb
f5e676cf0c4e903faf25315fa8f5af0faaeaf29f
[ "Apache-2.0" ]
null
null
null
initdb.py
DaoliName/daoliweb
f5e676cf0c4e903faf25315fa8f5af0faaeaf29f
[ "Apache-2.0" ]
null
null
null
from main import * db.drop_all() db.create_all() db.session.add(Application(id=1, name='email', description='Email Address', master=True)) db.session.add(Application(id=2, name='phone', description='Phone Number')) db.session.add(Application(id=3, name='wechat', description='Wechat Number')) db.session.add(Application(...
53.25
89
0.758998
3c0ccb06b508b3d172fc8aa92c551d1e4a83eee4
1,597
py
Python
castero/downloadqueue.py
sguzman/castero
766965fb1d3586d62ab6fd6dd144fa510c1e0ecb
[ "MIT" ]
483
2018-04-24T16:56:23.000Z
2022-03-31T10:35:34.000Z
castero/downloadqueue.py
sguzman/castero
766965fb1d3586d62ab6fd6dd144fa510c1e0ecb
[ "MIT" ]
140
2018-08-07T12:43:34.000Z
2022-03-02T23:59:58.000Z
castero/downloadqueue.py
sguzman/castero
766965fb1d3586d62ab6fd6dd144fa510c1e0ecb
[ "MIT" ]
47
2018-04-24T16:30:21.000Z
2021-11-01T09:06:39.000Z
import threading from castero.episode import Episode class DownloadQueue: """A FIFO ordered queue for handling episode downloads.""" def __init__(self, display=None) -> None: self._episodes = [] self._display = display def next(self) -> None: """Proceed to the next episode in th...
30.132075
72
0.599249
faaabbed6e413e8609cdb55bcdc3ac9868d8e849
5,664
py
Python
old/PlanetWars.py
Dremalka/arbitr
f353b0b11cada275d3b27bee60a0c308d6931051
[ "MIT" ]
null
null
null
old/PlanetWars.py
Dremalka/arbitr
f353b0b11cada275d3b27bee60a0c308d6931051
[ "MIT" ]
null
null
null
old/PlanetWars.py
Dremalka/arbitr
f353b0b11cada275d3b27bee60a0c308d6931051
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # from math import ceil, sqrt from sys import stdout class Fleet: def __init__(self, owner, num_ships, source_planet, destination_planet, total_trip_length, turns_remaining): self._owner = owner self._num_ships = num_ships self._source_planet = source_planet ...
26.222222
112
0.53637
b46efde366a2e8e7d7fa7d0a401652fc261b131a
36,374
py
Python
1_case_studies/4_ros/exploits/ros_fuzzing.py
araujorayza/robot_hacking_manual
d11feecc8931b1449b0ab30a51a55f71f51dd965
[ "Apache-2.0" ]
141
2021-11-14T15:27:04.000Z
2022-03-30T00:44:48.000Z
1_case_studies/4_ros/exploits/ros_fuzzing.py
araujorayza/robot_hacking_manual
d11feecc8931b1449b0ab30a51a55f71f51dd965
[ "Apache-2.0" ]
1
2021-11-17T06:38:44.000Z
2021-11-17T06:38:45.000Z
1_case_studies/4_ros/exploits/ros_fuzzing.py
araujorayza/robot_hacking_manual
d11feecc8931b1449b0ab30a51a55f71f51dd965
[ "Apache-2.0" ]
18
2021-11-15T09:55:48.000Z
2022-03-08T10:25:58.000Z
""" Fuzz testing ROS networking DISCLAIMER: Use against your own hosts only! By no means I encourage or promote the unauthorized tampering with running robotic systems. This can cause serious human harm and material damages. """ from fuzzingbook.Fuzzer import RandomFuzzer import sys import random from datetime import...
34.510436
1,229
0.585693
9250eb1c93643d16e8d87b3e1a0c0a5fb5413ec5
71
py
Python
neural_image_styler/__main__.py
jake-g/neural_image_styler
0b9f88fba4dcfed495ee3a6eac0801e4732df4fc
[ "MIT" ]
null
null
null
neural_image_styler/__main__.py
jake-g/neural_image_styler
0b9f88fba4dcfed495ee3a6eac0801e4732df4fc
[ "MIT" ]
null
null
null
neural_image_styler/__main__.py
jake-g/neural_image_styler
0b9f88fba4dcfed495ee3a6eac0801e4732df4fc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .neural_image_styler import main main()
11.833333
37
0.661972
883c882aa1c661f304ea039eee9d053da81df220
2,150
py
Python
nipype/interfaces/brainsuite/tests/test_auto_Bse.py
HussainAther/nipype
7e33d086fd5cea6ef6de99ee3e35929c1d5730d4
[ "Apache-2.0" ]
null
null
null
nipype/interfaces/brainsuite/tests/test_auto_Bse.py
HussainAther/nipype
7e33d086fd5cea6ef6de99ee3e35929c1d5730d4
[ "Apache-2.0" ]
null
null
null
nipype/interfaces/brainsuite/tests/test_auto_Bse.py
HussainAther/nipype
7e33d086fd5cea6ef6de99ee3e35929c1d5730d4
[ "Apache-2.0" ]
null
null
null
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from __future__ import unicode_literals from ..brainsuite import Bse def test_Bse_inputs(): input_map = dict(args=dict(argstr='%s', ), diffusionConstant=dict(argstr='-d %f', usedefault=True, ), diffusionIterations=dict(argstr='-n %d', u...
24.712644
67
0.627442
79ce2fe5b3776f1e19b640509eb97c2f7b29e710
592
py
Python
tests/r/test_wght_loss_incentive7.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
199
2017-07-24T01:34:27.000Z
2022-01-29T00:50:55.000Z
tests/r/test_wght_loss_incentive7.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
46
2017-09-05T19:27:20.000Z
2019-01-07T09:47:26.000Z
tests/r/test_wght_loss_incentive7.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
45
2017-07-26T00:10:44.000Z
2022-03-16T20:44:59.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import shutil import sys import tempfile from observations.r.wght_loss_incentive7 import wght_loss_incentive7 def test_wght_loss_incentive7(): """Test module wght_loss_incentive7.py by downloading wght_...
24.666667
68
0.785473
ae2d6549c5bb9dcd389e0458d304220dc4248af0
10,788
py
Python
sdk/python/pulumi_azure_nextgen/network/v20180401/connection_monitor.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/network/v20180401/connection_monitor.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/network/v20180401/connection_monitor.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
49.944444
1,938
0.679366
bceebf7097a7b81b4c9137804e3083095be9a9c4
5,852
py
Python
Frontend/PrintPDF.py
ShowingCloud/Capricorn
cfe521975ca23f7502509595f1fd3f8c6c5e1c55
[ "MIT" ]
null
null
null
Frontend/PrintPDF.py
ShowingCloud/Capricorn
cfe521975ca23f7502509595f1fd3f8c6c5e1c55
[ "MIT" ]
null
null
null
Frontend/PrintPDF.py
ShowingCloud/Capricorn
cfe521975ca23f7502509595f1fd3f8c6c5e1c55
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Created on 2013-3-28 @author: Pyroshow ''' from Models.EngineeringDB import * from Models.LocalDB import * from reportlab.lib.styles import getSampleStyleSheet from reportlab.platypus import * from reportlab.lib import pagesizes, colors from reportlab.pdfgen import canvas from r...
36.575
112
0.542208
0ccadc251e8bb647061654d8b547522498f5b268
8,011
py
Python
bp_me/test/tb/bp_cce/test_gen.py
wantan244/black-parrot
dd2d8453a49b0f069e96f175afe97968dac205e1
[ "BSD-3-Clause" ]
236
2020-02-24T20:42:36.000Z
2022-03-29T13:25:09.000Z
bp_me/test/tb/bp_cce/test_gen.py
wantan244/black-parrot
dd2d8453a49b0f069e96f175afe97968dac205e1
[ "BSD-3-Clause" ]
502
2020-02-21T13:23:30.000Z
2022-03-31T15:57:21.000Z
bp_me/test/tb/bp_cce/test_gen.py
wantan244/black-parrot
dd2d8453a49b0f069e96f175afe97968dac205e1
[ "BSD-3-Clause" ]
109
2020-02-24T20:42:50.000Z
2022-03-29T05:52:32.000Z
from __future__ import print_function import sys import random import math import os from trace_gen import TraceGen from test_memory import TestMemory # Test Generator class # a test is defined as a sequence of load and store operation tuples # Each operation tuple is: (store, address, size in bytes, uncached, value) ...
35.763393
129
0.634627
e1ff26ec50243465ac3367fa497ab8132dfc294f
3,716
py
Python
Coding/Competitive_Coding/CodeForces/0 - 1300/Effective_Approach.py
Phantom586/My_Codes
900c4e5e95ab833e4f78f1594e3b25178a74f1a7
[ "MIT" ]
null
null
null
Coding/Competitive_Coding/CodeForces/0 - 1300/Effective_Approach.py
Phantom586/My_Codes
900c4e5e95ab833e4f78f1594e3b25178a74f1a7
[ "MIT" ]
null
null
null
Coding/Competitive_Coding/CodeForces/0 - 1300/Effective_Approach.py
Phantom586/My_Codes
900c4e5e95ab833e4f78f1594e3b25178a74f1a7
[ "MIT" ]
null
null
null
# Once at a team training Vasya, Petya and Sasha got a problem on implementing linear search in an array. # According to the boys, linear search works as follows. The array elements in a pre-selected order are in turn compared # with the number that you need to find. Once you find the array element that is equal to th...
44.771084
120
0.730893
c5fa2eb94412e0dbece6b57a86d3d9f8867c5997
2,305
py
Python
qdev_wrappers/logger.py
lillian542/qdev-wrappers
4b691eba7ff19de8a8fb6f0b97d350710dece018
[ "MIT" ]
null
null
null
qdev_wrappers/logger.py
lillian542/qdev-wrappers
4b691eba7ff19de8a8fb6f0b97d350710dece018
[ "MIT" ]
null
null
null
qdev_wrappers/logger.py
lillian542/qdev-wrappers
4b691eba7ff19de8a8fb6f0b97d350710dece018
[ "MIT" ]
null
null
null
import logging import logging.handlers import os from IPython import get_ipython from qcodes import config log = logging.getLogger(__name__) logging_dir = "logs" history_log_name = "history.log" python_log_name = 'pythonlog.log' def start_python_logger() -> None: """ Logging of messages passed throug the p...
32.928571
72
0.663774
3353d981f6b15a5a92c3520b47ebcef094fab5d7
31,386
py
Python
netbox/ipam/forms.py
ChrisdAutume/netbox
bcb1d9af0be7ae8bd1236b9b7a0e3c98f41e8f4a
[ "Apache-2.0" ]
1
2018-07-31T06:54:02.000Z
2018-07-31T06:54:02.000Z
netbox/ipam/forms.py
ChrisdAutume/netbox
bcb1d9af0be7ae8bd1236b9b7a0e3c98f41e8f4a
[ "Apache-2.0" ]
null
null
null
netbox/ipam/forms.py
ChrisdAutume/netbox
bcb1d9af0be7ae8bd1236b9b7a0e3c98f41e8f4a
[ "Apache-2.0" ]
1
2019-02-19T22:04:10.000Z
2019-02-19T22:04:10.000Z
from __future__ import unicode_literals from django import forms from django.core.exceptions import MultipleObjectsReturned from django.db.models import Count from dcim.models import Site, Rack, Device, Interface from extras.forms import CustomFieldForm, CustomFieldBulkEditForm, CustomFieldFilterForm from tenancy.for...
33.603854
120
0.626744
f9b24fe274b0d4531023af207e705d1f30d6e0b9
3,445
py
Python
mapclientplugins/simulationtask3step/configuredialog.py
tsalemink/mapclientplugins.simulationtask3step
09ee208b3b9bca28518b59bb06833ca3f23cb391
[ "Apache-2.0" ]
null
null
null
mapclientplugins/simulationtask3step/configuredialog.py
tsalemink/mapclientplugins.simulationtask3step
09ee208b3b9bca28518b59bb06833ca3f23cb391
[ "Apache-2.0" ]
null
null
null
mapclientplugins/simulationtask3step/configuredialog.py
tsalemink/mapclientplugins.simulationtask3step
09ee208b3b9bca28518b59bb06833ca3f23cb391
[ "Apache-2.0" ]
1
2021-06-10T03:39:25.000Z
2021-06-10T03:39:25.000Z
from PySide2 import QtWidgets from mapclientplugins.simulationtask3step.ui_configuredialog import Ui_ConfigureDialog INVALID_STYLE_SHEET = 'background-color: rgba(239, 0, 0, 50)' DEFAULT_STYLE_SHEET = '' class ConfigureDialog(QtWidgets.QDialog): ''' Configure dialog to present the user with the options to co...
40.05814
194
0.64209
696ade976ba0e2e884c3463b018c1b1ee4501659
3,592
py
Python
LAB03/01-DDB/backend/cloudalbum/database/model_ddb.py
liks79/moving-to-serverless-renew
2f173071ab387654d4cc851a0b39130613906378
[ "MIT" ]
6
2019-08-21T04:13:34.000Z
2019-10-29T07:15:39.000Z
LAB03/01-DDB/backend/cloudalbum/database/model_ddb.py
liks79/moving-to-serverless-renew
2f173071ab387654d4cc851a0b39130613906378
[ "MIT" ]
89
2019-07-31T02:29:54.000Z
2022-03-12T01:03:22.000Z
LAB03/01-DDB/backend/cloudalbum/database/model_ddb.py
michaelrishiforrester/moving-to-serverless-renew
27cbcbde9db3d2bc66212fe4f768563d25f64c19
[ "MIT" ]
4
2019-08-02T03:00:35.000Z
2020-02-26T18:44:03.000Z
""" cloudalbum/database/model_ddb.py ~~~~~~~~~~~~~~~~~~~~~~~ Application data model defined here. :description: CloudAlbum is a fully featured sample application for 'Moving to AWS serverless' training course :copyright: © 2019 written by Dayoungle Jun, Sungshik Jou. :license: MIT, see LICENSE ...
30.700855
116
0.703786
9a958049a294a8b4708c3b62711abc41e4d1d30d
22,879
py
Python
of10/prints.py
palco003/ofp_sniffer
5b45db14187aae6adf7b1db96e36457703e2f884
[ "Apache-2.0" ]
null
null
null
of10/prints.py
palco003/ofp_sniffer
5b45db14187aae6adf7b1db96e36457703e2f884
[ "Apache-2.0" ]
null
null
null
of10/prints.py
palco003/ofp_sniffer
5b45db14187aae6adf7b1db96e36457703e2f884
[ "Apache-2.0" ]
null
null
null
""" Prints for OpenFlow 1.0 only """ from hexdump import hexdump import of10.dissector import of10.parser import tcpiplib.prints import tcpiplib.tcpip from gen.prints import red, green from tcpiplib.prints import eth_addr, datapath_id import tcpiplib.prints import gen.cli def print_type_unknown(pkt): string ...
32.452482
83
0.626164
860c7417dc432bdcf0dfe98079bb13d8e1db9f48
4,805
py
Python
test/functional/wallet_watchonly.py
Frank-GER/syscoin
efbdac67f9d3d37d75de3480b8bb2c539ad05dd4
[ "MIT" ]
61
2016-03-09T10:42:05.000Z
2018-03-13T05:06:30.000Z
test/functional/wallet_watchonly.py
Frank-GER/syscoin
efbdac67f9d3d37d75de3480b8bb2c539ad05dd4
[ "MIT" ]
153
2016-02-29T17:45:10.000Z
2018-03-16T23:37:02.000Z
test/functional/wallet_watchonly.py
Frank-GER/syscoin
efbdac67f9d3d37d75de3480b8bb2c539ad05dd4
[ "MIT" ]
18
2016-03-02T21:50:44.000Z
2018-03-07T20:36:12.000Z
#!/usr/bin/env python3 # Copyright (c) 2018-2021 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test createwallet watchonly arguments. """ from test_framework.blocktools import COINBASE_MATURITY fro...
42.901786
126
0.706556
26a16e0c8052a80bf622ebec0c3fe1511e108b00
2,853
py
Python
blog/views.py
javadebadi/django-blog
2dd3926158def8463385c0b554a623563888711d
[ "MIT" ]
null
null
null
blog/views.py
javadebadi/django-blog
2dd3926158def8463385c0b554a623563888711d
[ "MIT" ]
null
null
null
blog/views.py
javadebadi/django-blog
2dd3926158def8463385c0b554a623563888711d
[ "MIT" ]
null
null
null
from django.http import HttpResponse from django.shortcuts import render from blog.models import ( Post, ContactMessage, ) from django.shortcuts import get_object_or_404 from blog.logic import BlogTokenize from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from blog.forms import ContactMes...
35.222222
90
0.592008
b017c8c5d23a64b9bc394f89d6d076adb3d08138
4,880
py
Python
nominations/views.py
berinhard/pythondotorg
c199ae139470b333e829b337c3409eda3c5841c8
[ "Apache-2.0" ]
2
2021-04-06T16:22:51.000Z
2021-05-04T13:48:42.000Z
nominations/views.py
vishalsingha/pythondotorg
af59bc03f63cdea16b0f2bd98aae2dcec713c4c1
[ "Apache-2.0" ]
7
2020-06-06T01:45:27.000Z
2021-12-13T20:39:27.000Z
nominations/views.py
vishalsingha/pythondotorg
af59bc03f63cdea16b0f2bd98aae2dcec713c4c1
[ "Apache-2.0" ]
1
2021-08-21T10:36:44.000Z
2021-08-21T10:36:44.000Z
from django.contrib import messages from django.views.generic import CreateView, UpdateView, DetailView, ListView from django.urls import reverse from django.http import Http404 from pydotorg.mixins import LoginRequiredMixin from .models import Nomination, Nominee, Election from .forms import NominationForm, Nominati...
33.424658
85
0.654098
56a796f40d600cca14a9163b05c44f3db5af6d9a
1,260
py
Python
setup.py
innovationOUtside/iframe-shot
1cc048f85b66828be9ac970f6b248d3afe588bc2
[ "MIT" ]
null
null
null
setup.py
innovationOUtside/iframe-shot
1cc048f85b66828be9ac970f6b248d3afe588bc2
[ "MIT" ]
null
null
null
setup.py
innovationOUtside/iframe-shot
1cc048f85b66828be9ac970f6b248d3afe588bc2
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages import io import os VERSION = "0.0.1" def get_long_description(): with io.open( os.path.join(os.path.dirname(os.path.abspath(__file__)), "README.md"), encoding="utf8", ) as fp: return fp.read() setup( name="iframe-shot", descriptio...
26.808511
78
0.619048
3fa22831fdbfdb00bcadbb594f8f2ade1ea08ba1
7,529
py
Python
sdk/python/pulumi_azure_nextgen/authorization/v20180301/policy_set_definition.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/authorization/v20180301/policy_set_definition.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/authorization/v20180301/policy_set_definition.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
44.550296
624
0.665427
9a0e21107512af7795504a162c9d71a9fc65add8
29,358
py
Python
redis/tests/nbase-arc/commands_generic.py
lynix94/nbase-arc
4de3c20ebd2f5ed13ab83dbc6a608f44e812ca78
[ "Apache-2.0" ]
176
2015-12-30T08:44:30.000Z
2022-03-15T08:10:39.000Z
redis/tests/nbase-arc/commands_generic.py
lynix94/nbase-arc
4de3c20ebd2f5ed13ab83dbc6a608f44e812ca78
[ "Apache-2.0" ]
35
2016-03-24T08:29:51.000Z
2021-12-09T20:06:39.000Z
redis/tests/nbase-arc/commands_generic.py
lynix94/nbase-arc
4de3c20ebd2f5ed13ab83dbc6a608f44e812ca78
[ "Apache-2.0" ]
65
2015-12-30T09:05:13.000Z
2022-03-15T08:10:43.000Z
import redis def do_commands(conn, GW=True): r = conn.do_generic_request assert_equal = redis.rr_assert_equal assert_subs = redis.rr_assert_substring key = 'commands_genericxxxxxxxkey' key2 = 'commands_genericxxxxxxkey2' dest = 'commands_generic_xxxxxdest' try: # | APPEND ...
30.58125
169
0.397984
091e78817c792a7d74c2410030bd27fd1ebc944e
2,703
py
Python
rpw/db/category.py
gtalarico/revitpythonwrapper
50d96adf31f164ec8eb2f04e4bbc13f7a1c64d42
[ "MIT" ]
105
2016-11-16T02:29:49.000Z
2021-11-29T15:07:05.000Z
rpw/db/category.py
gtalarico/revitpythonwrapper
50d96adf31f164ec8eb2f04e4bbc13f7a1c64d42
[ "MIT" ]
43
2016-12-02T15:18:21.000Z
2020-10-20T01:03:36.000Z
rpw/db/category.py
gtalarico/revitpythonwrapper
50d96adf31f164ec8eb2f04e4bbc13f7a1c64d42
[ "MIT" ]
41
2016-12-16T22:11:23.000Z
2022-02-03T17:43:24.000Z
""" Category Wrapper """ # import rpw from rpw import revit, DB from rpw.db.element import Element from rpw.base import BaseObjectWrapper from rpw.utils.logger import logger, deprecate_warning from rpw.db.builtins import BicEnum class Category(BaseObjectWrapper): """ `DB.Category` Wrapper Attribute: ...
30.033333
81
0.63744
a1b96bf28dc4b9a560b80d6ef5bc012b7c533e11
1,737
py
Python
examWeb/examWeb/web/migrations/0001_initial.py
bvoytash/Software-University
f2c6940cde093cea7b1c38bd88305206564c9947
[ "MIT" ]
null
null
null
examWeb/examWeb/web/migrations/0001_initial.py
bvoytash/Software-University
f2c6940cde093cea7b1c38bd88305206564c9947
[ "MIT" ]
null
null
null
examWeb/examWeb/web/migrations/0001_initial.py
bvoytash/Software-University
f2c6940cde093cea7b1c38bd88305206564c9947
[ "MIT" ]
null
null
null
# Generated by Django 4.0.2 on 2022-02-27 08:23 import django.core.validators from django.db import migrations, models import examWeb.web.models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Album', ...
45.710526
309
0.603339
f19e8f19348a304e5c3f814124379ecd99564202
18,575
py
Python
kinect_smoothing/trajectory_smoothing.py
ostadabbas/HW-HuP
0a7b4263f72e7ff7f9bc4c81366569822c3ee248
[ "MIT" ]
47
2019-07-11T23:37:27.000Z
2022-03-07T09:52:24.000Z
kinect_smoothing/trajectory_smoothing.py
ostadabbas/HW-HuP
0a7b4263f72e7ff7f9bc4c81366569822c3ee248
[ "MIT" ]
6
2019-09-23T15:57:38.000Z
2022-03-30T08:17:40.000Z
kinect_smoothing/trajectory_smoothing.py
ostadabbas/HW-HuP
0a7b4263f72e7ff7f9bc4c81366569822c3ee248
[ "MIT" ]
9
2019-07-11T23:37:36.000Z
2022-02-02T00:22:55.000Z
import numpy as np from functools import partial from scipy import interpolate, signal import pykalman class Crop_Filter(object): """ The x, y coordinates of the trajectory were captured by some keypoint detection algorithms (e.g. Openpose). Sometimes objects will be placed in the background and the depth coordinat...
37.830957
127
0.736312
9f741660eadb5cd7f49051b2bee259c9ef819d29
790
py
Python
mycroft/configuration/__init__.py
HelloChatterbox/mycroft-core
c417807d32eff629354ffe740da14caed2a1bee5
[ "Apache-2.0" ]
1
2021-05-04T20:59:48.000Z
2021-05-04T20:59:48.000Z
mycroft/configuration/__init__.py
HelloChatterbox/mycroft-core
c417807d32eff629354ffe740da14caed2a1bee5
[ "Apache-2.0" ]
5
2021-04-13T22:54:47.000Z
2021-04-18T14:24:25.000Z
mycroft/configuration/__init__.py
HelloChatterbox/mycroft-lib
c417807d32eff629354ffe740da14caed2a1bee5
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Mycroft AI 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 writin...
43.888889
77
0.793671
79e2c2febdf8734ae42c6ade81300b4e0b87eb1c
797
py
Python
compileio/urls.py
unownone/Online_Compiler
b10f147f25210c4daad987a8cee30f5185e2d332
[ "MIT" ]
2
2021-07-23T14:01:14.000Z
2021-07-23T14:47:08.000Z
compileio/urls.py
unownone/Online_Compiler
b10f147f25210c4daad987a8cee30f5185e2d332
[ "MIT" ]
null
null
null
compileio/urls.py
unownone/Online_Compiler
b10f147f25210c4daad987a8cee30f5185e2d332
[ "MIT" ]
1
2021-11-01T06:12:44.000Z
2021-11-01T06:12:44.000Z
"""compileio URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-bas...
34.652174
77
0.706399
36c797dc1ebe5f81f0c311083c7d168afa7bd650
2,179
py
Python
mysql/innodb_page_type/mylib.py
DonghuaLau/linux-ammo
ed53e0c87dc32f0f7aa4b5bdcf1f8d8029872c06
[ "Apache-2.0" ]
null
null
null
mysql/innodb_page_type/mylib.py
DonghuaLau/linux-ammo
ed53e0c87dc32f0f7aa4b5bdcf1f8d8029872c06
[ "Apache-2.0" ]
null
null
null
mysql/innodb_page_type/mylib.py
DonghuaLau/linux-ammo
ed53e0c87dc32f0f7aa4b5bdcf1f8d8029872c06
[ "Apache-2.0" ]
null
null
null
#encoding=utf-8 import os import include from include import * TABLESPACE_NAME='D:\\mysql_data\\test\\t.ibd' VARIABLE_FIELD_COUNT = 1 NULL_FIELD_COUNT = 0 class myargv(object): def __init__(self, argv): self.argv = argv self.parms = {} self.tablespace = '' def parse_cmdline(self): argv = self.argv if le...
29.849315
112
0.672327
3dc8c16bb9213d97f244daa2803cecd30c566fb0
2,681
py
Python
sample.py
jaraco/xlsxcessive
292d2fb90ebf07781c684f1b8d42f89ffc58d3c2
[ "MIT" ]
3
2019-02-06T14:03:58.000Z
2021-02-13T20:07:09.000Z
sample.py
jaraco/xlsxcessive
292d2fb90ebf07781c684f1b8d42f89ffc58d3c2
[ "MIT" ]
1
2020-11-30T15:43:01.000Z
2021-02-13T19:27:00.000Z
sample.py
jaraco/xlsxcessive
292d2fb90ebf07781c684f1b8d42f89ffc58d3c2
[ "MIT" ]
1
2019-02-05T14:38:48.000Z
2019-02-05T14:38:48.000Z
"""Just a simple example of XlsXcessive API usage.""" from xlsxcessive.workbook import Workbook from xlsxcessive.worksheet import Cell wb = Workbook() sheet = wb.new_sheet('Test Sheet') # a shared format bigguy = wb.stylesheet.new_format() bigguy.font(size=24) bigguy.align('center') # add a border bigguy.border(to...
26.284314
79
0.700858
1adddad957388bd55d1afec3d976dc5d36eb9c06
359
py
Python
tests/video_with_line.py
FRCTeam1073-TheForceTeam/openmv21
b5a5d9b4da172861b012e559df7bd640fc6b9e72
[ "MIT" ]
1
2021-07-07T15:33:31.000Z
2021-07-07T15:33:31.000Z
tests/video_with_line.py
FRCTeam1073-TheForceTeam/openmv21
b5a5d9b4da172861b012e559df7bd640fc6b9e72
[ "MIT" ]
null
null
null
tests/video_with_line.py
FRCTeam1073-TheForceTeam/openmv21
b5a5d9b4da172861b012e559df7bd640fc6b9e72
[ "MIT" ]
null
null
null
import image, pyb, time clock = time.clock() img_reader = image.ImageIO("/test_stream.bin", "r") while(True): clock.tick() img = img_reader.read(copy_to_fb=True, loop=True, pause=True) img.draw_line((0, 0, img.width(), img.height()), color = (255, 0, 0), thickness = 10) img.draw_rectangle(104,79,119,...
25.642857
89
0.662953
51e63fb57fc9d3ad0d689793ef83ceb2019219be
672
py
Python
valpal/util.py
clld/valpal
52187bc5c332c042d4e52bb05dca91f5d71e1657
[ "Apache-2.0" ]
null
null
null
valpal/util.py
clld/valpal
52187bc5c332c042d4e52bb05dca91f5d71e1657
[ "Apache-2.0" ]
2
2020-09-08T14:27:07.000Z
2021-10-18T14:15:39.000Z
valpal/util.py
clld/valpal
52187bc5c332c042d4e52bb05dca91f5d71e1657
[ "Apache-2.0" ]
null
null
null
from clld.db.models.common import Contribution from clld.interfaces import IRepresentation from clld.web.adapters import get_adapter def dataset_detail_html(context=None, request=None, **kw): return { 'example_contribution': Contribution.get('icel1247'), 'citation': get_adapter(IRepresentation, co...
39.529412
81
0.724702
41b6c96307766690f7c989284ae94e16d9aaac8a
3,073
py
Python
tests/test_sampling/test_negative_samplers.py
Rodrigo-A-Pereira/pykeen
76c5acb707faa524b5951b0d1d85ab1afe806462
[ "MIT" ]
null
null
null
tests/test_sampling/test_negative_samplers.py
Rodrigo-A-Pereira/pykeen
76c5acb707faa524b5951b0d1d85ab1afe806462
[ "MIT" ]
null
null
null
tests/test_sampling/test_negative_samplers.py
Rodrigo-A-Pereira/pykeen
76c5acb707faa524b5951b0d1d85ab1afe806462
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Test that samplers can be executed.""" from pykeen.sampling import BasicNegativeSampler, BernoulliNegativeSampler, PseudoTypedNegativeSampler from pykeen.sampling.pseudo_type import create_index from tests.test_sampling import cases class BasicNegativeSamplerTest(cases.NegativeSamplerGene...
46.560606
111
0.684348
c3229f0ff0e21d4c2bb8cd6b5fe3e43c9acb0555
2,013
py
Python
2015/day15/day15.py
e-jameson/aoc
f26196d5564a9ac8027532c276af00aaf3718c6e
[ "MIT" ]
null
null
null
2015/day15/day15.py
e-jameson/aoc
f26196d5564a9ac8027532c276af00aaf3718c6e
[ "MIT" ]
null
null
null
2015/day15/day15.py
e-jameson/aoc
f26196d5564a9ac8027532c276af00aaf3718c6e
[ "MIT" ]
null
null
null
from helpers import as_list ingredients = dict() # lines = as_list('2015/day15/example-input.txt') lines = as_list('2015/day15/input.txt') for line in lines: name, stats = line.split(': ') ingredients.setdefault(name, dict()) for stat in stats.split(', '): t, v = stat.split() ingredients[...
37.981132
144
0.522603
596d3b94c66bde9152c7911e958e22a0d64d5015
1,115
py
Python
share/rpcauth/rpcauth.py
unelmacoin/unelmacoin
35e3ec841296133e33778f1a27c90d3aa6761c3f
[ "MIT" ]
4
2021-05-03T13:29:56.000Z
2021-05-30T14:37:29.000Z
share/rpcauth/rpcauth.py
unelmacoin/unelmacoin
35e3ec841296133e33778f1a27c90d3aa6761c3f
[ "MIT" ]
1
2021-05-07T13:41:09.000Z
2021-05-08T06:55:48.000Z
share/rpcauth/rpcauth.py
unelmacoin/unelmacoin
35e3ec841296133e33778f1a27c90d3aa6761c3f
[ "MIT" ]
1
2021-05-07T13:30:16.000Z
2021-05-07T13:30:16.000Z
#!/usr/bin/env python # Copyright (c) 2015-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import hashlib import sys import os from random import SystemRandom import base64 import hmac if len(sys...
26.547619
79
0.729148
34c05c60fa58f9e2a91ef5967d59e433c8a8bca8
3,443
py
Python
probreg/cost_functions.py
OscarPellicer/probreg
8f1dd23dd86371b8040abad580332ff36967c078
[ "MIT" ]
479
2019-03-06T16:24:01.000Z
2022-03-31T08:38:54.000Z
probreg/cost_functions.py
OscarPellicer/probreg
8f1dd23dd86371b8040abad580332ff36967c078
[ "MIT" ]
86
2019-05-15T19:10:53.000Z
2022-03-26T06:14:54.000Z
probreg/cost_functions.py
OscarPellicer/probreg
8f1dd23dd86371b8040abad580332ff36967c078
[ "MIT" ]
101
2019-03-21T08:52:58.000Z
2022-03-01T19:13:39.000Z
from __future__ import division, print_function import abc import numpy as np import six import transforms3d as t3d from . import gauss_transform as gt from . import se3_op as so from . import transformation as tf @six.add_metaclass(abc.ABCMeta) class CostFunction: def __init__(self, tf_type): self._tf...
34.43
95
0.639559
2e4fd1215cc44b1f4c3cb4456512ee25d4e94ca6
1,181
py
Python
boost/tools/build/v2/test/builtin_exit.py
randolphwong/mcsema
eb5b376736e7f57ff0a61f7e4e5a436bbb874720
[ "BSD-3-Clause" ]
11
2016-04-12T16:29:29.000Z
2021-06-28T11:01:57.000Z
boost/tools/build/v2/test/builtin_exit.py
randolphwong/mcsema
eb5b376736e7f57ff0a61f7e4e5a436bbb874720
[ "BSD-3-Clause" ]
3
2018-10-31T19:35:14.000Z
2019-06-04T17:11:27.000Z
boost/tools/build/v2/test/builtin_exit.py
randolphwong/mcsema
eb5b376736e7f57ff0a61f7e4e5a436bbb874720
[ "BSD-3-Clause" ]
9
2015-09-09T02:38:32.000Z
2021-01-30T00:24:24.000Z
#!/usr/bin/python # Copyright 2012 Steven Watanabe # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) # This tests the EXIT rule. import BoostBuild def test_exit(name): t = BoostBuild.Tester(pass_toolset=0) t.write(...
21.472727
81
0.560542
b25993f4de9d53deef4e49914e08c5154da9ff1f
9,839
py
Python
{{cookiecutter.project_slug}}/config/settings/common.py
gofullthrottle/cookiecutter-django-mysql-2016
f6e0d84a9183462a2e82f256dff07ef85ed13ca5
[ "Apache-2.0" ]
4
2016-10-28T00:34:13.000Z
2017-10-20T02:08:09.000Z
{{cookiecutter.project_slug}}/config/settings/common.py
gofullthrottle/cookiecutter-django-mysql-2016
f6e0d84a9183462a2e82f256dff07ef85ed13ca5
[ "Apache-2.0" ]
null
null
null
{{cookiecutter.project_slug}}/config/settings/common.py
gofullthrottle/cookiecutter-django-mysql-2016
f6e0d84a9183462a2e82f256dff07ef85ed13ca5
[ "Apache-2.0" ]
1
2020-07-07T18:33:47.000Z
2020-07-07T18:33:47.000Z
# -*- coding: utf-8 -*- """ Django settings for {{cookiecutter.project_name}} project. For more information on this file, see https://docs.djangoproject.com/en/dev/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/dev/ref/settings/ """ from __future__ import absolu...
37.128302
147
0.621913
64ad504a4f5339c8b2ea0c31fbf1a0fb2255c762
11,732
py
Python
utils/patch_ops.py
muschellij2/tbi_ct_lesion_segmentation
e3bc5af5eb8ed8bb2766afc00401f03978821d6f
[ "MIT" ]
null
null
null
utils/patch_ops.py
muschellij2/tbi_ct_lesion_segmentation
e3bc5af5eb8ed8bb2766afc00401f03978821d6f
[ "MIT" ]
null
null
null
utils/patch_ops.py
muschellij2/tbi_ct_lesion_segmentation
e3bc5af5eb8ed8bb2766afc00401f03978821d6f
[ "MIT" ]
null
null
null
import os import numpy as np import nibabel as nib from sklearn.utils import shuffle from tqdm import tqdm from .pad import pad_image import random import copy from time import strftime, time import matplotlib.pyplot as plt import matplotlib.image as mpimg import sys def PadImage(vol, padsize): dim = vol.shape ...
39.635135
95
0.58285
34aa8a2d07ded6dc43ebc75fcf00745161f11c66
625
py
Python
mayan/apps/documents/tests/test_widgets.py
CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons
0e4e919fd2e1ded6711354a0330135283e87f8c7
[ "Apache-2.0" ]
2
2021-09-12T19:41:19.000Z
2021-09-12T19:41:20.000Z
mayan/apps/documents/tests/test_widgets.py
CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons
0e4e919fd2e1ded6711354a0330135283e87f8c7
[ "Apache-2.0" ]
37
2021-09-13T01:00:12.000Z
2021-10-02T03:54:30.000Z
mayan/apps/documents/tests/test_widgets.py
CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons
0e4e919fd2e1ded6711354a0330135283e87f8c7
[ "Apache-2.0" ]
1
2021-09-22T13:17:30.000Z
2021-09-22T13:17:30.000Z
from ..permissions import permission_document_view from .base import GenericDocumentViewTestCase from .mixins.document_mixins import DocumentViewTestMixin class DocumentPreviewWidgetViewTestCase( DocumentViewTestMixin, GenericDocumentViewTestCase ): def test_document_preview_page_carousel_widget_ren...
32.894737
74
0.7456
8b42b65931a12ee271904e43b8583056fc8b3e9f
22,096
py
Python
models/autoencoders.py
caotians1/OD-test-master
e272421294a3614bdcdb3a4e4b530f613dad1a1c
[ "MIT" ]
3
2020-10-07T18:35:50.000Z
2021-02-23T06:36:21.000Z
models/autoencoders.py
caotians1/OD-test-master
e272421294a3614bdcdb3a4e4b530f613dad1a1c
[ "MIT" ]
null
null
null
models/autoencoders.py
caotians1/OD-test-master
e272421294a3614bdcdb3a4e4b530f613dad1a1c
[ "MIT" ]
3
2020-10-08T14:38:15.000Z
2021-11-08T11:51:48.000Z
import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import math """ The VAE code is based on https://github.com/pytorch/examples/blob/master/vae/main.py The q(x|z)-decoder is a bernoulli distribution rather than a Gaussian. """ class ELU_BatchNorm2d(torch.nn.Modu...
38.901408
156
0.58445
0b46d45c4c153c8f5beb5fd039fd957847f7b7cd
2,406
py
Python
test/integration/local/test_mnist_training.py
leezu/sagemaker-mxnet-container
578c8df7817b5361ee568dbf8e99659432fbf729
[ "Apache-2.0" ]
null
null
null
test/integration/local/test_mnist_training.py
leezu/sagemaker-mxnet-container
578c8df7817b5361ee568dbf8e99659432fbf729
[ "Apache-2.0" ]
1
2020-02-19T03:03:35.000Z
2020-02-19T03:03:35.000Z
test/integration/local/test_mnist_training.py
leezu/sagemaker-mxnet-container
578c8df7817b5361ee568dbf8e99659432fbf729
[ "Apache-2.0" ]
1
2019-09-17T02:03:44.000Z
2019-09-17T02:03:44.000Z
# Copyright 2018-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "li...
41.482759
98
0.743558