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
0fb974b588c58c269b82c0f4bee5b622ae038409
5,166
py
Python
Validation/HGCalValidation/test/HeterogeneousHGCalRecHitsValidator_cfg.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2021-11-30T16:24:46.000Z
2021-11-30T16:24:46.000Z
Validation/HGCalValidation/test/HeterogeneousHGCalRecHitsValidator_cfg.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
4
2021-11-29T13:57:56.000Z
2022-03-29T06:28:36.000Z
Validation/HGCalValidation/test/HeterogeneousHGCalRecHitsValidator_cfg.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2022-02-27T06:12:26.000Z
2022-02-27T06:12:26.000Z
import os, sys, glob import FWCore.ParameterSet.Config as cms from Configuration.StandardSequences.Eras import eras from Configuration.ProcessModifiers.gpu_cff import gpu from RecoLocalCalo.HGCalRecProducers.HGCalRecHit_cfi import HGCalRecHit def getHeterogeneousRecHitsSource(pu): indir = '/eos/user/b/bfontana/Sam...
50.647059
113
0.731127
0835368f6fc90477241251104888a725958db8f9
416
py
Python
migrations/0002_bibliotikarchiverstate_is_download_enabled.py
harvest-project/bibliotik_archiver
fac5ff1b65ad93817588bf51bcc2d0e95399cc7b
[ "Apache-2.0" ]
null
null
null
migrations/0002_bibliotikarchiverstate_is_download_enabled.py
harvest-project/bibliotik_archiver
fac5ff1b65ad93817588bf51bcc2d0e95399cc7b
[ "Apache-2.0" ]
null
null
null
migrations/0002_bibliotikarchiverstate_is_download_enabled.py
harvest-project/bibliotik_archiver
fac5ff1b65ad93817588bf51bcc2d0e95399cc7b
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.1.7 on 2019-03-26 22:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('bibliotik_archiver', '0001_initial'), ] operations = [ migrations.AddField( model_name='bibliotikarchiverstate', nam...
21.894737
53
0.627404
572e241250af0bf4a6e96cd643fe48c11bf6f717
684
py
Python
discrete/subplanners.py
cyclone923/pyplanners
e2fe156ff00d0914cfb4f20afed158706f4d5d28
[ "MIT" ]
null
null
null
discrete/subplanners.py
cyclone923/pyplanners
e2fe156ff00d0914cfb4f20afed158706f4d5d28
[ "MIT" ]
null
null
null
discrete/subplanners.py
cyclone923/pyplanners
e2fe156ff00d0914cfb4f20afed158706f4d5d28
[ "MIT" ]
null
null
null
from planner.subplanners import Subplanner from operators import is_discrete_effect class DiscreteSubplanner(Subplanner): def __init__(self, operators): self.operators = operators def generator(self, start_vertex, goal_connector, rg): #yield # NOTE - include if don't want initial generation vertex = rg...
36
64
0.736842
6ac1adf443bc7ff5019c79526b76f08245507764
2,470
py
Python
test/chemistry/test_driver_methods_psi4.py
hushaohan/aqua
8512bc6ce246a8b3cca1e5edb1703b6885aa7c5d
[ "Apache-2.0" ]
2
2020-06-29T16:08:12.000Z
2020-08-07T22:42:13.000Z
test/chemistry/test_driver_methods_psi4.py
hushaohan/aqua
8512bc6ce246a8b3cca1e5edb1703b6885aa7c5d
[ "Apache-2.0" ]
null
null
null
test/chemistry/test_driver_methods_psi4.py
hushaohan/aqua
8512bc6ce246a8b3cca1e5edb1703b6885aa7c5d
[ "Apache-2.0" ]
2
2020-02-13T02:17:58.000Z
2020-08-09T07:56:25.000Z
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modif...
27.752809
77
0.654251
83772711bb00ba79b996483fe952cbb83827ec6c
6,111
py
Python
python/GafferImageUI/ChannelMaskPlugValueWidget.py
danieldresser/gaffer
f9ec5612fafcdcbab6284df71f9d7a03078e5407
[ "BSD-3-Clause" ]
2
2019-03-26T02:36:38.000Z
2020-01-19T22:53:57.000Z
python/GafferImageUI/ChannelMaskPlugValueWidget.py
danieldresser/gaffer
f9ec5612fafcdcbab6284df71f9d7a03078e5407
[ "BSD-3-Clause" ]
null
null
null
python/GafferImageUI/ChannelMaskPlugValueWidget.py
danieldresser/gaffer
f9ec5612fafcdcbab6284df71f9d7a03078e5407
[ "BSD-3-Clause" ]
null
null
null
########################################################################## # # Copyright (c) 2013, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Red...
38.923567
150
0.706431
a11cd30e508b6dba6b2c91063d1a5e247ea5a1de
14,344
py
Python
apps/beeswax/src/beeswax/forms.py
jesman/hue
21edfc1b790510e512216ab5cc8aeb1a84255de3
[ "Apache-2.0" ]
1
2018-02-19T15:21:27.000Z
2018-02-19T15:21:27.000Z
apps/beeswax/src/beeswax/forms.py
jesman/hue
21edfc1b790510e512216ab5cc8aeb1a84255de3
[ "Apache-2.0" ]
null
null
null
apps/beeswax/src/beeswax/forms.py
jesman/hue
21edfc1b790510e512216ab5cc8aeb1a84255de3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
38.55914
129
0.680633
165cb6a5303207a1d2c90a928c8b5b65c76adf56
980
py
Python
wavenet/utils/quantization.py
isadrtdinov/wavenet
fcd2ccc70ca41b6d2b12964edd7dc44e835f39d1
[ "MIT" ]
1
2021-01-23T04:03:00.000Z
2021-01-23T04:03:00.000Z
wavenet/utils/quantization.py
isadrtdinov/wavenet
fcd2ccc70ca41b6d2b12964edd7dc44e835f39d1
[ "MIT" ]
null
null
null
wavenet/utils/quantization.py
isadrtdinov/wavenet
fcd2ccc70ca41b6d2b12964edd7dc44e835f39d1
[ "MIT" ]
null
null
null
import torch from torch import nn class MuLawQuantization(nn.Module): def __init__(self, mu): super().__init__() self.mu = nn.Parameter(torch.tensor([mu], dtype=torch.float), requires_grad=False) self.eps = 1e-4 def forward(self, x): # waveform [-1.0, 1.0] to mu law [-1.0, 1.0...
30.625
90
0.532653
45346170b1e67fbb863056ba847bf0ea703edebf
699
py
Python
ecom/api/category/migrations/0001_initial.py
Lisgevan/FULL_STACK_DEVELOMENT_DJANGO_REACT
9e87db526a4126a6e3cbac9dd2b88b8ea88a2318
[ "MIT" ]
null
null
null
ecom/api/category/migrations/0001_initial.py
Lisgevan/FULL_STACK_DEVELOMENT_DJANGO_REACT
9e87db526a4126a6e3cbac9dd2b88b8ea88a2318
[ "MIT" ]
null
null
null
ecom/api/category/migrations/0001_initial.py
Lisgevan/FULL_STACK_DEVELOMENT_DJANGO_REACT
9e87db526a4126a6e3cbac9dd2b88b8ea88a2318
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-10-05 16:47 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Category', fields=[ ('id', models.BigAutoFi...
27.96
117
0.583691
df484ab46d1f0bb0d5823752c97c266c94200c01
777
py
Python
studygroups/management/commands/fix_start_end_dates.py
p2pu/learning-circles
ccd94208ec18082f8fda6d7f21eacdd71bad6023
[ "MIT" ]
10
2016-05-03T20:41:25.000Z
2021-09-17T18:42:01.000Z
studygroups/management/commands/fix_start_end_dates.py
p2pu/learning-circles
ccd94208ec18082f8fda6d7f21eacdd71bad6023
[ "MIT" ]
655
2016-05-04T19:00:35.000Z
2022-03-28T13:09:20.000Z
studygroups/management/commands/fix_start_end_dates.py
p2pu/learning-circles
ccd94208ec18082f8fda6d7f21eacdd71bad6023
[ "MIT" ]
8
2016-05-06T10:24:27.000Z
2020-10-21T00:56:59.000Z
from django.core.management.base import BaseCommand, CommandError from studygroups.models import StudyGroup class Command(BaseCommand): help = 'Make sure all study groups with meetings have the correct start/end dates' def handle(self, *args, **options): for sg in StudyGroup.objects.active(): ...
40.894737
100
0.622909
7bc5456e78699b04c3e1e2d0ba7a19b16d014d08
47
py
Python
tests/test_code/py/two_file_simple/file_b.py
FreddyZeng/code2flow
37e45ca4340289f8ceec79b3fe5131c401387c58
[ "MIT" ]
2,248
2015-01-13T21:44:22.000Z
2022-03-31T07:55:22.000Z
tests/test_code/py/two_file_simple/file_b.py
FreddyZeng/code2flow
37e45ca4340289f8ceec79b3fe5131c401387c58
[ "MIT" ]
44
2015-04-09T18:37:01.000Z
2022-03-25T19:56:11.000Z
tests/test_code/py/two_file_simple/file_b.py
FreddyZeng/code2flow
37e45ca4340289f8ceec79b3fe5131c401387c58
[ "MIT" ]
220
2015-02-02T06:35:09.000Z
2022-03-31T09:21:09.000Z
def b(): print("here") def c(): pass
6.714286
17
0.446809
1384309fc296bd43e07fe7cedc98f67fa57642bc
1,581
py
Python
marketplace/deployer_util/print_published_version.py
dineshmudrakola/marketplace-k8s-app-tools
9039d4ea85faf6f4959f97e2db90f1a5ec4c5aec
[ "Apache-2.0" ]
null
null
null
marketplace/deployer_util/print_published_version.py
dineshmudrakola/marketplace-k8s-app-tools
9039d4ea85faf6f4959f97e2db90f1a5ec4c5aec
[ "Apache-2.0" ]
null
null
null
marketplace/deployer_util/print_published_version.py
dineshmudrakola/marketplace-k8s-app-tools
9039d4ea85faf6f4959f97e2db90f1a5ec4c5aec
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
29.277778
74
0.746363
27c2e9909994dfc142f681d0d1a1573998c6d6ef
1,457
py
Python
user/views/follow/views.py
umtdemr/foxwall
7854806774486bed1895c114f14398cacc90449c
[ "MIT" ]
null
null
null
user/views/follow/views.py
umtdemr/foxwall
7854806774486bed1895c114f14398cacc90449c
[ "MIT" ]
null
null
null
user/views/follow/views.py
umtdemr/foxwall
7854806774486bed1895c114f14398cacc90449c
[ "MIT" ]
null
null
null
from typing import TYPE_CHECKING from rest_framework.generics import GenericAPIView from rest_framework.response import Response from rest_framework.permissions import IsAuthenticated from drf_spectacular.utils import extend_schema from follow.serializers import FollowerSerailizer, FollowSerailizer if TYPE_CHECKING...
25.561404
67
0.665752
3962b002d1976d4087b3ce3bff43bf2ffd119c62
1,362
py
Python
test/test_inline_response4001.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
5
2021-05-17T04:45:03.000Z
2022-03-23T12:51:46.000Z
test/test_inline_response4001.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
null
null
null
test/test_inline_response4001.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
2
2021-06-02T07:32:26.000Z
2022-02-12T02:36:23.000Z
""" CryptoAPIs Crypto APIs 2.0 is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs 2.0 can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of thei...
34.923077
484
0.762115
560e75d12ff957720e7fe9cf2e23ef3215c776be
1,314
py
Python
app/service/pdf_service.py
tch1bo/viaduct
bfd37b0a8408b2dd66fb01138163b80ce97699ff
[ "MIT" ]
11
2015-04-23T21:57:56.000Z
2019-04-28T12:48:58.000Z
app/service/pdf_service.py
tch1bo/viaduct
bfd37b0a8408b2dd66fb01138163b80ce97699ff
[ "MIT" ]
1
2016-10-05T14:10:58.000Z
2016-10-05T14:12:23.000Z
app/service/pdf_service.py
tch1bo/viaduct
bfd37b0a8408b2dd66fb01138163b80ce97699ff
[ "MIT" ]
3
2016-10-05T14:00:42.000Z
2019-01-16T14:33:43.000Z
from app.service import user_service from PyPDF2 import PdfFileWriter, PdfFileReader from reportlab.pdfgen import canvas from io import BytesIO import os TEMPLATE_PATH = "app/templates/athenaeum/discountcard_template.pdf" def user_discount_card(user_id): user = user_service.find_by_id(user_id) # Create a n...
26.816327
67
0.726027
626e59bf52df9790441e2275f298ad13c72745e2
791
py
Python
corehq/apps/domain/extension_points.py
saiprakash-v/commcare-hq
dc11d6c35aa460ee545a98f3c6c9e5e4435deb7f
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/domain/extension_points.py
saiprakash-v/commcare-hq
dc11d6c35aa460ee545a98f3c6c9e5e4435deb7f
[ "BSD-3-Clause" ]
94
2020-12-11T06:57:31.000Z
2022-03-15T10:24:06.000Z
corehq/apps/domain/extension_points.py
saiprakash-v/commcare-hq
dc11d6c35aa460ee545a98f3c6c9e5e4435deb7f
[ "BSD-3-Clause" ]
null
null
null
from memoized import memoized from typing import Optional from corehq.extensions import extension_point, ResultFormat @extension_point(result_format=ResultFormat.FIRST) def custom_domain_module(domain) -> Optional[str]: """Custom reporting modules Parameters: domain: the name of the domain Retu...
24.71875
73
0.747155
d15e5511059b786c9a3b961638ffb96943e71c13
10,553
py
Python
modules/dbnd/src/dbnd/_core/task/task.py
turbaszek/dbnd
6efbf3e7ecd175645e8e58d0d015d32fe9e95ea0
[ "Apache-2.0" ]
null
null
null
modules/dbnd/src/dbnd/_core/task/task.py
turbaszek/dbnd
6efbf3e7ecd175645e8e58d0d015d32fe9e95ea0
[ "Apache-2.0" ]
null
null
null
modules/dbnd/src/dbnd/_core/task/task.py
turbaszek/dbnd
6efbf3e7ecd175645e8e58d0d015d32fe9e95ea0
[ "Apache-2.0" ]
null
null
null
import datetime import typing import warnings from typing import Dict from dbnd._core.constants import OutputMode, _TaskParamContainer from dbnd._core.current import get_databand_run from dbnd._core.failures import dbnd_handle_errors from dbnd._core.parameter.parameter_builder import output, parameter from dbnd._core...
33.185535
124
0.667488
ed05eba892a34c7e3bc9542b64ff3ac9942140b1
5,281
py
Python
tools/solver.py
meansnothing/Deep-vSlam
2e0197f52b0520f134ac4144ae7364d201765208
[ "MIT" ]
null
null
null
tools/solver.py
meansnothing/Deep-vSlam
2e0197f52b0520f134ac4144ae7364d201765208
[ "MIT" ]
null
null
null
tools/solver.py
meansnothing/Deep-vSlam
2e0197f52b0520f134ac4144ae7364d201765208
[ "MIT" ]
1
2021-06-28T11:40:06.000Z
2021-06-28T11:40:06.000Z
import os import sys import time import numpy as np import torch import torch.optim as optim import torch.nn.functional as F from torch.optim import lr_scheduler from torch.utils.data import DataLoader from data.scenes import ScenesDataset from torch.utils.data import DataLoader import torch from model.regressors.Pos...
34.743421
143
0.549328
bf5f471acd9ebf1fd8a21ad2ff19162431ad6388
6,198
py
Python
virt/ansible-2.7.0/lib/python2.7/site-packages/ansible/modules/network/aci/aci_tenant.py
lakhlaifi/RedHat-Ansible
27c5077cced9d416081fcd5d69ea44bca0317fa4
[ "Apache-2.0" ]
null
null
null
virt/ansible-2.7.0/lib/python2.7/site-packages/ansible/modules/network/aci/aci_tenant.py
lakhlaifi/RedHat-Ansible
27c5077cced9d416081fcd5d69ea44bca0317fa4
[ "Apache-2.0" ]
null
null
null
virt/ansible-2.7.0/lib/python2.7/site-packages/ansible/modules/network/aci/aci_tenant.py
lakhlaifi/RedHat-Ansible
27c5077cced9d416081fcd5d69ea44bca0317fa4
[ "Apache-2.0" ]
1
2020-02-13T14:24:57.000Z
2020-02-13T14:24:57.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], ...
25.195122
141
0.605357
bcfc8cf6f8ec770728aee4a839154a8f3d59b5c7
3,429
py
Python
solution/dev/client-scripts-ves-v7/sendVesNotification.py
o-ran-sc/oam
c1048d9c4b2d02c20e48c394b052e87742a657bf
[ "Apache-2.0" ]
null
null
null
solution/dev/client-scripts-ves-v7/sendVesNotification.py
o-ran-sc/oam
c1048d9c4b2d02c20e48c394b052e87742a657bf
[ "Apache-2.0" ]
null
null
null
solution/dev/client-scripts-ves-v7/sendVesNotification.py
o-ran-sc/oam
c1048d9c4b2d02c20e48c394b052e87742a657bf
[ "Apache-2.0" ]
1
2021-10-04T09:18:31.000Z
2021-10-04T09:18:31.000Z
#!/usr/bin/env python ################################################################################ # Copyright 2021 highstreet technologies GmbH # # 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 Licen...
41.313253
109
0.625547
c2b2af49d203ec42c26d02dc2624984dd8fb9ba6
616
py
Python
app/api/schema/OntSchema.py
imamsolikhin/Python
f2ed5a848a37925bd9172f1f7484fd40f2e0a8a5
[ "MIT" ]
null
null
null
app/api/schema/OntSchema.py
imamsolikhin/Python
f2ed5a848a37925bd9172f1f7484fd40f2e0a8a5
[ "MIT" ]
null
null
null
app/api/schema/OntSchema.py
imamsolikhin/Python
f2ed5a848a37925bd9172f1f7484fd40f2e0a8a5
[ "MIT" ]
null
null
null
""" Schemas for the Api app """ # local imports from ...config.db import marshmallow class OntSchema(marshmallow.Schema): """ This class represents the ont schema. """ class Meta: fields = ( 'Code', 'HostCode', 'Sn', 'Version', 'SoftwareVersion', 'EquipmentId', ...
23.692308
48
0.574675
904a75d44462d0b84d10192273337b4d499672b8
1,366
py
Python
xrpl/models/transactions/payment_channel_fund.py
mDuo13/xrpl-py
70f927dcd2dbb8644b3e210b0a8de2a214e71e3d
[ "0BSD" ]
null
null
null
xrpl/models/transactions/payment_channel_fund.py
mDuo13/xrpl-py
70f927dcd2dbb8644b3e210b0a8de2a214e71e3d
[ "0BSD" ]
null
null
null
xrpl/models/transactions/payment_channel_fund.py
mDuo13/xrpl-py
70f927dcd2dbb8644b3e210b0a8de2a214e71e3d
[ "0BSD" ]
null
null
null
""" Represents a PaymentChannelFund transaction on the XRP Ledger. A PaymentChannelFund transaction adds additional XRP to an open payment channel, and optionally updates the expiration time of the channel. Only the source address of the channel can use this transaction. `See PaymentChannelFund <https://xrpl.org/payme...
35.947368
86
0.770864
351231e7f5635727c22c20d9690f71e0fa17e719
218
py
Python
theories/codegen/mips/__main__.py
xmnlab/poc-compilers
cd1008f7269f6dfee5afef1badc002789c865b51
[ "BSD-3-Clause" ]
3
2021-06-21T23:51:10.000Z
2021-08-24T21:20:08.000Z
theories/codegen/mips/__main__.py
xmnlab/poc-flex-bison
cd1008f7269f6dfee5afef1badc002789c865b51
[ "BSD-3-Clause" ]
2
2021-06-24T15:19:52.000Z
2021-06-28T21:31:03.000Z
theories/codegen/mips/__main__.py
xmnlab/poc-flex-bison
cd1008f7269f6dfee5afef1badc002789c865b51
[ "BSD-3-Clause" ]
null
null
null
from cli import parse_cli from mips import MathMIPS if __name__ == "__main__": cli_args = parse_cli() expr = cli_args.expr mips = MathMIPS() mips.codegen(expr) print(mips.execute(verbose=True))
16.769231
37
0.683486
3bcaa5f20fca2852c3f48a8100d1ad4d1c74385d
8,163
py
Python
psychopy/piloting/UG_final_7_13_2018ANTHONY.py
victoriaakelly/srndna-master
2b9a89e0ac78a6f87620cd528dd8f788e3fc3901
[ "MIT" ]
3
2019-08-13T19:49:40.000Z
2020-10-08T18:35:17.000Z
psychopy/piloting/UG_final_7_13_2018ANTHONY.py
victoriaakelly/srndna-master
2b9a89e0ac78a6f87620cd528dd8f788e3fc3901
[ "MIT" ]
null
null
null
psychopy/piloting/UG_final_7_13_2018ANTHONY.py
victoriaakelly/srndna-master
2b9a89e0ac78a6f87620cd528dd8f788e3fc3901
[ "MIT" ]
9
2018-07-27T19:05:06.000Z
2021-04-26T08:50:25.000Z
###SRNDNA ###shared reward, block design from psychopy import visual, core, event, gui, data, sound, logging import csv import datetime import random import numpy import os #parameters useFullScreen = True useDualScreen=1 DEBUG = False frame_rate=1 decision_dur=3 outcome_dur=0.25 fileSuffix = 'UG' responseKeys=('2'...
29.901099
384
0.629058
4f5d7c4bb1081aff99445b1a8e1e12f4b91bc659
841
py
Python
yolo_pets09.py
Lavabar/obj_tracking
3d7c33a5e4d396815f5a59249bdca95d5bd77672
[ "MIT" ]
null
null
null
yolo_pets09.py
Lavabar/obj_tracking
3d7c33a5e4d396815f5a59249bdca95d5bd77672
[ "MIT" ]
null
null
null
yolo_pets09.py
Lavabar/obj_tracking
3d7c33a5e4d396815f5a59249bdca95d5bd77672
[ "MIT" ]
null
null
null
import os import cv2 import BgExtractor import numpy as np import test_main_single_cam as yolo path = "test_videos/Crowd_PETS09/S1/L1/Time_13-59/View_001/" ls = os.listdir(path) #print(ls) ls.sort() dctp = yolo.DCTP() bg = cv2.imread(path+ls[0]) bg = cv2.cvtColor(bg, cv2.COLOR_BGR2GRAY) bg = yolo.imutils.resize(bg,...
24.028571
97
0.700357
ff5413a9afbf59ab186a22e4a9e401fa1e7a83f1
10,012
py
Python
pygeoapi/provider/filesystem.py
umeier/pygeoapi
4b92b7073e4ddd8b65cb9a9287aedb34a6548df5
[ "MIT" ]
null
null
null
pygeoapi/provider/filesystem.py
umeier/pygeoapi
4b92b7073e4ddd8b65cb9a9287aedb34a6548df5
[ "MIT" ]
null
null
null
pygeoapi/provider/filesystem.py
umeier/pygeoapi
4b92b7073e4ddd8b65cb9a9287aedb34a6548df5
[ "MIT" ]
null
null
null
# ================================================================= # # Authors: Tom Kralidis <tomkralidis@gmail.com> # # Copyright (c) 2020 Tom Kralidis # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation # files (the "Software"), to deal in ...
33.262458
89
0.496404
c9548205b0dd6b67cc2f1076cacf01664d147ab2
334
py
Python
hack/ipmac/scan.py
MisterZhouZhou/pythonLearn
8933c7a6d444d3d86a173984e6cf4c08dbf84039
[ "Apache-2.0" ]
1
2019-07-09T09:59:39.000Z
2019-07-09T09:59:39.000Z
hack/ipmac/scan.py
MisterZhouZhou/pythonLearn
8933c7a6d444d3d86a173984e6cf4c08dbf84039
[ "Apache-2.0" ]
null
null
null
hack/ipmac/scan.py
MisterZhouZhou/pythonLearn
8933c7a6d444d3d86a173984e6cf4c08dbf84039
[ "Apache-2.0" ]
null
null
null
from scapy.all import srp from scapy.layers.l2 import Ether, ARP ipScan = '192.168.0.1/24' try: ans, unans = srp(Ether(dst="FF:FF:FF:FF:FF:FF")/ARP(pdst=ipScan), timeout=2) except Exception as e: print(e) else: for send, rcv in ans: ListMACAddr = rcv.sprintf("%Ether.src%---%ARP.psrc%") prin...
27.833333
80
0.652695
d73bb68bd000ced21281258e823da5180ff9c574
1,430
py
Python
tests/integration/unit_test/test_unit_test_nodejs10_x.py
aahung/aws-sam-cli-app-templates
fb44b0030d124e53ee4db42bc95240081e4dbbd8
[ "Apache-2.0" ]
null
null
null
tests/integration/unit_test/test_unit_test_nodejs10_x.py
aahung/aws-sam-cli-app-templates
fb44b0030d124e53ee4db42bc95240081e4dbbd8
[ "Apache-2.0" ]
null
null
null
tests/integration/unit_test/test_unit_test_nodejs10_x.py
aahung/aws-sam-cli-app-templates
fb44b0030d124e53ee4db42bc95240081e4dbbd8
[ "Apache-2.0" ]
null
null
null
from tests.integration.base import Base class UnitTest_nodejs10_x_cookiecutter_aws_sam_hello_nodejs(Base.NodejsUnitTestBase): directory = "nodejs10.x/cookiecutter-aws-sam-hello-nodejs" code_directories = ["hello-world"] class UnitTest_nodejs10_x_cookiecutter_quick_start_from_scratch(Base.NodejsUnitTestBase)...
35.75
98
0.813986
36cb5234ee8baa011e69f18a40eb10af49c48b25
13,320
py
Python
ratelimitqueue/ratelimitqueue.py
JohnPaton/ratelimitqueue
8d50d817099f5df99c5e5bc6e887136333a0c0a6
[ "MIT" ]
7
2018-07-30T09:36:11.000Z
2022-03-15T18:17:26.000Z
ratelimitqueue/ratelimitqueue.py
JohnPaton/ratelimitqueue
8d50d817099f5df99c5e5bc6e887136333a0c0a6
[ "MIT" ]
4
2018-09-18T15:54:11.000Z
2021-10-13T12:42:12.000Z
ratelimitqueue/ratelimitqueue.py
JohnPaton/ratelimitqueue
8d50d817099f5df99c5e5bc6e887136333a0c0a6
[ "MIT" ]
null
null
null
import time import random import queue import multiprocessing.dummy as mp from .exceptions import RateLimitException from . import utils class RateLimitGetMixin: """Adds rate limiting to another class' `get()` method. Assumes that the class being extended has properties `calls` (int), `per` (float), `f...
33.721519
79
0.582207
c8b2d8eed6fbc32a1bcc0af5a2e7ebf86727efb2
4,668
py
Python
consul/datadog_checks/consul/config_models/defaults.py
tcpatterson/integrations-core
3692601de09f8db60f42612b0d623509415bbb53
[ "BSD-3-Clause" ]
null
null
null
consul/datadog_checks/consul/config_models/defaults.py
tcpatterson/integrations-core
3692601de09f8db60f42612b0d623509415bbb53
[ "BSD-3-Clause" ]
null
null
null
consul/datadog_checks/consul/config_models/defaults.py
tcpatterson/integrations-core
3692601de09f8db60f42612b0d623509415bbb53
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2021-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) # This file is autogenerated. # To change this file you should edit assets/configuration/spec.yaml and then run the following commands: # ddev -x validate config -s <INTEGRATION_NAME> # ddev -x va...
20.207792
105
0.778063
b5f3a764db78ae9c40b45ae8b58e910e324df108
2,059
py
Python
aml_service/34-GetScoringImageName.py
ghousethanedar/exp_practice03
dfe44bb1d94bef6c70857988644a8fd7b6da4469
[ "MIT" ]
19
2019-05-06T22:26:58.000Z
2022-03-25T16:16:24.000Z
aml_service/34-GetScoringImageName.py
ghousethanedar/exp_practice03
dfe44bb1d94bef6c70857988644a8fd7b6da4469
[ "MIT" ]
1
2021-05-03T09:02:07.000Z
2021-05-03T09:02:07.000Z
aml_service/34-GetScoringImageName.py
ghousethanedar/exp_practice03
dfe44bb1d94bef6c70857988644a8fd7b6da4469
[ "MIT" ]
21
2019-06-16T09:06:32.000Z
2022-03-08T05:10:44.000Z
""" Copyright (C) Microsoft Corporation. All rights reserved.​ ​ Microsoft Corporation (“Microsoft”) grants you a nonexclusive, perpetual, royalty-free right to use, copy, and modify the software code provided by us ("Software Code"). You may not sublicense the Software Code or any use of it (except to your affiliates...
45.755556
79
0.791161
c05ebe4f3458343815b724461c66f423858ac801
1,507
py
Python
plots/examples/plengthvsnodes.py
koroder/Chord-DHT-simulation
45fc9e674dec31ed0c79b3d7e50ac9305ddee0f4
[ "MIT" ]
null
null
null
plots/examples/plengthvsnodes.py
koroder/Chord-DHT-simulation
45fc9e674dec31ed0c79b3d7e50ac9305ddee0f4
[ "MIT" ]
null
null
null
plots/examples/plengthvsnodes.py
koroder/Chord-DHT-simulation
45fc9e674dec31ed0c79b3d7e50ac9305ddee0f4
[ "MIT" ]
null
null
null
#import everything from matplotlib (numpy is accessible via 'np' alias) from pylab import * # Create a new figure of size 8x6 points, using 80 dots per inch figure(figsize=(8,6), dpi=80) # Create a new subplot from a grid of 1x1 ax = subplot(1,1,1) #X = [10,20,40,80,160,320,640,1280,2560,5120,10240] X = [100,1000,50...
28.980769
93
0.624419
ae83c07d9a947ddcc94e015c4b62605000711b3c
3,519
py
Python
src/python/pants/help/help_formatter.py
viktortnk/pants
54c98206de5ac9aadfe26d83175f472941be6c7d
[ "Apache-2.0" ]
1
2020-06-13T22:01:39.000Z
2020-06-13T22:01:39.000Z
src/python/pants/help/help_formatter.py
viktortnk/pants
54c98206de5ac9aadfe26d83175f472941be6c7d
[ "Apache-2.0" ]
null
null
null
src/python/pants/help/help_formatter.py
viktortnk/pants
54c98206de5ac9aadfe26d83175f472941be6c7d
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from textwrap import wrap from typing import List from colors import cyan, green, magenta, red from pants.help.help_info_extracter import HelpInfoExtracter, OptionHelpInfo class HelpFo...
38.25
99
0.606422
b80b597bec4e10d3accb0874eee5bf6d0b9ce6c0
3,106
py
Python
examples/irp_wind/optimization_3tb.py
DTUWindEnergy/TopFarm2
cba70b20431f7a828370447117fe2e7533edf7c2
[ "MIT" ]
4
2019-02-18T08:46:00.000Z
2021-01-28T06:35:52.000Z
examples/irp_wind/optimization_3tb.py
DTUWindEnergy/TopFarm2
cba70b20431f7a828370447117fe2e7533edf7c2
[ "MIT" ]
1
2019-11-26T12:12:12.000Z
2019-11-26T12:12:12.000Z
examples/irp_wind/optimization_3tb.py
DTUWindEnergy/TopFarm2
cba70b20431f7a828370447117fe2e7533edf7c2
[ "MIT" ]
8
2019-01-14T09:33:26.000Z
2021-06-30T11:56:03.000Z
import os import numpy as np from topfarm.cost_models.fuga import py_fuga from topfarm.cost_models.fuga.py_fuga import PyFuga from topfarm.cost_models.fused_wake_wrappers import FusedWakeGCLWakeModel from topfarm.cost_models.utils.aep_calculator import AEPCalculator from topfarm.cost_models.utils.wind_resource import W...
36.97619
144
0.671281
122ec1e47011a35c6d9c08966f56f7bed83c1aa6
6,910
py
Python
test/test_web_challenge.py
tiddlyweb/tiddlyweb
376bcad280e24d2de4d74883dc4d8369abcb2c28
[ "BSD-3-Clause" ]
57
2015-02-01T21:03:34.000Z
2021-12-25T12:02:31.000Z
test/test_web_challenge.py
tiddlyweb/tiddlyweb
376bcad280e24d2de4d74883dc4d8369abcb2c28
[ "BSD-3-Clause" ]
6
2016-02-05T11:43:32.000Z
2019-09-05T13:38:49.000Z
test/test_web_challenge.py
tiddlyweb/tiddlyweb
376bcad280e24d2de4d74883dc4d8369abcb2c28
[ "BSD-3-Clause" ]
17
2015-05-12T08:53:23.000Z
2021-12-21T15:56:30.000Z
""" Test the way in which the /challenge URI produces stuff. """ import httplib2 import simplejson from tiddlyweb.model.user import User from tiddlyweb.config import config from .fixtures import (muchdata, reset_textstore, _teststore, initialize_app, get_http) http = get_http() def setup_module(module): ...
32.748815
103
0.651664
45cc1eccd022113948236a4c5d1e811efaf65d94
1,643
py
Python
pre-process.py
foamliu/Scene-Understanding
e8a4c2f6ce41fcde04202e6129d9bc406d4ff200
[ "MIT" ]
13
2019-09-09T01:15:27.000Z
2022-03-10T01:22:14.000Z
pre-process.py
f549263766/Semantic-Segmentation
e8a4c2f6ce41fcde04202e6129d9bc406d4ff200
[ "MIT" ]
2
2021-04-21T03:04:07.000Z
2021-04-21T03:07:38.000Z
pre-process.py
f549263766/Semantic-Segmentation
e8a4c2f6ce41fcde04202e6129d9bc406d4ff200
[ "MIT" ]
3
2020-05-30T12:47:24.000Z
2021-03-23T08:24:25.000Z
# -*- coding: utf-8 -*- import argparse import os import zipfile import cv2 as cv import hdf5storage import numpy as np from console_progressbar import ProgressBar # python pre-process.py -d ../../data/Semantic-Segmentation/data/ if __name__ == '__main__': # Parse arguments ap = argparse.ArgumentParser() ...
32.215686
111
0.673767
37f1c6ecfed62ec4877c23560c6c8c7e9052d11e
1,598
py
Python
pyner/named_entity/evaluator.py
himkt/chainer-lstmcrf
91371db03bbe7d621f76281c9a26affac00e8034
[ "MIT" ]
47
2018-12-01T09:16:26.000Z
2020-05-12T00:04:45.000Z
pyner/named_entity/evaluator.py
himkt/chainer_example
91371db03bbe7d621f76281c9a26affac00e8034
[ "MIT" ]
28
2018-12-27T14:15:04.000Z
2021-05-07T18:00:00.000Z
pyner/named_entity/evaluator.py
himkt/chainer-lstmcrf
91371db03bbe7d621f76281c9a26affac00e8034
[ "MIT" ]
6
2018-12-20T14:31:05.000Z
2021-02-23T01:37:12.000Z
import copy from chainer import function, reporter from chainer.training.extensions import Evaluator from seqeval import metrics class NamedEntityEvaluator(Evaluator): def __init__(self, iterator, target, transform_func, converter, device=-1): super(NamedEntityEvaluator, self).__init__(iterator, target, ...
32.612245
87
0.583855
80731fb215b5b336c4aa8f288798e771d737d558
19,255
py
Python
mmdet3d/models/detectors/x_net.py
Discover304/MMDetection3D-Explainable
265be9eba643a253a0d0bd24fb1f74a3f43a0b45
[ "Apache-2.0" ]
null
null
null
mmdet3d/models/detectors/x_net.py
Discover304/MMDetection3D-Explainable
265be9eba643a253a0d0bd24fb1f74a3f43a0b45
[ "Apache-2.0" ]
null
null
null
mmdet3d/models/detectors/x_net.py
Discover304/MMDetection3D-Explainable
265be9eba643a253a0d0bd24fb1f74a3f43a0b45
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. import warnings from os import path as osp import mmcv import torch from mmcv.parallel import DataContainer as DC from mmcv.runner import force_fp32 from torch.nn import functional as F from mmdet3d.core import (Box3DMode, Coord3DMode, bbox3d2result, ...
40.451681
82
0.583381
af0132cd71c9059358b81e5a3f520fa5d3e37117
506
py
Python
Crashkurs Python/19_Funktionen plotten numpy.py
slogslog/Kurzgeschichten-in-CSharp
3918c4174220e558cdeeada0edac941811418b93
[ "Unlicense" ]
2
2019-03-15T20:48:34.000Z
2019-04-22T15:24:09.000Z
Crashkurs Python/19_Funktionen plotten numpy.py
slogslog/Coding-Kurzgeschichten
9b08237038147c6c348d4cf4c69567178e07dd1d
[ "Unlicense" ]
null
null
null
Crashkurs Python/19_Funktionen plotten numpy.py
slogslog/Coding-Kurzgeschichten
9b08237038147c6c348d4cf4c69567178e07dd1d
[ "Unlicense" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt def poly(x): # x^3 - x + 2 return x**3-x+2 # Die Kurven sollen auf x = [-2, +1.5] mit 100 Punkten # gezeichnet werden. xmin = -2 xmax = 1.5 # x = [-2 -1.9 ... +1.4 +1.5] x = np.linspace(xmin, xmax, 100) # Erzeugt 100 Wert von -2 bis +1.5 plt.figure(figsize=(4...
23
67
0.612648
e2d3307715f79c1158939bc479305279615288fa
336
py
Python
Python/Collections/List/4_collectionslist.py
ravivamsi/coding
85153f5c31d397d69606598fa6ef78204cb90301
[ "Apache-2.0" ]
null
null
null
Python/Collections/List/4_collectionslist.py
ravivamsi/coding
85153f5c31d397d69606598fa6ef78204cb90301
[ "Apache-2.0" ]
null
null
null
Python/Collections/List/4_collectionslist.py
ravivamsi/coding
85153f5c31d397d69606598fa6ef78204cb90301
[ "Apache-2.0" ]
null
null
null
# List thislist = ["apple", "banana", "cherry"] print("original List ") print(thislist) thislist[1] = "grape" print("Modified List") print(thislist) # Length of the List print("Length of List") print(len(thislist)) # Append an Element to the list thislist.append("orange") print("Appended an Element") print(len(...
12
40
0.693452
c0050ec4f25ad5ed5cbeaee46297512447625a67
5,363
py
Python
openstates/importers/vote_events.py
GovHawkDC/openstates-core
0104a4f59585a7db9db4b74a48f985ce2651a086
[ "MIT" ]
null
null
null
openstates/importers/vote_events.py
GovHawkDC/openstates-core
0104a4f59585a7db9db4b74a48f985ce2651a086
[ "MIT" ]
null
null
null
openstates/importers/vote_events.py
GovHawkDC/openstates-core
0104a4f59585a7db9db4b74a48f985ce2651a086
[ "MIT" ]
null
null
null
from .base import BaseImporter from ..utils import get_pseudo_id, _make_pseudo_id from ..exceptions import InvalidVoteEventError from ..data.models import VoteEvent, VoteCount, PersonVote, VoteSource, BillAction from .people import PersonImporter from .organizations import OrganizationImporter class VoteEventImporter...
40.323308
98
0.576916
17cc71281966e557eeae5d57cd5cecf62eaf28a8
450
py
Python
src/leagues/migrations/0012_auto_20200727_0158.py
sfernandezf/analytics-yahoofantasy
6242599b903e4b8a7f9c56892ba26591a441b8fb
[ "Apache-2.0" ]
null
null
null
src/leagues/migrations/0012_auto_20200727_0158.py
sfernandezf/analytics-yahoofantasy
6242599b903e4b8a7f9c56892ba26591a441b8fb
[ "Apache-2.0" ]
6
2020-03-15T03:32:06.000Z
2022-01-13T03:46:05.000Z
src/leagues/migrations/0012_auto_20200727_0158.py
sfernandezf/analytics-yahoofantasy
6242599b903e4b8a7f9c56892ba26591a441b8fb
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.3 on 2020-07-27 01:58 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('leagues', '0011_yahoomultiyearleague_is_active'), ] operations = [ migrations.AlterField( model_name='yahoooauthcredentials', ...
23.684211
81
0.642222
921b565ba6342c5b0c77d6dc68bda1aecf721a6b
5,531
py
Python
datalad/local/tests/test_wtf.py
soichih/datalad
797dde3ab7497be170e2c4ea8824f33a4b38e5d8
[ "MIT" ]
null
null
null
datalad/local/tests/test_wtf.py
soichih/datalad
797dde3ab7497be170e2c4ea8824f33a4b38e5d8
[ "MIT" ]
null
null
null
datalad/local/tests/test_wtf.py
soichih/datalad
797dde3ab7497be170e2c4ea8824f33a4b38e5d8
[ "MIT" ]
null
null
null
# emacs: -*- mode: python-mode; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # -*- coding: utf-8 -*- # ex: set sts=4 ts=4 sw=4 et: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and l...
35.915584
92
0.598264
860bc417c154a19bf15c2981bce4af33e0b3fa3f
504
py
Python
graphgen.py
saandeepatn/smart-webcontrol
da9d5722c5e3dea97a5490a9e42e10759af40723
[ "MIT" ]
null
null
null
graphgen.py
saandeepatn/smart-webcontrol
da9d5722c5e3dea97a5490a9e42e10759af40723
[ "MIT" ]
null
null
null
graphgen.py
saandeepatn/smart-webcontrol
da9d5722c5e3dea97a5490a9e42e10759af40723
[ "MIT" ]
null
null
null
import MySQLdb import matplotlib.pyplot as plt conn = MySQLdb.connect (host = "localhost", user = "root", passwd = "abcd1234", db = "smart_home") cursor = conn.cursor () cursor.execute ("SELECT timestamp,value from sensordata") row = curs...
22.909091
57
0.607143
e367da8905cbb27defff2e2a107006461f8d1098
12,138
py
Python
gmso/tests/test_convert_parmed.py
chrisiacovella/gmso
c78e2425ccb98ea952f024a569346d36045f6918
[ "MIT" ]
null
null
null
gmso/tests/test_convert_parmed.py
chrisiacovella/gmso
c78e2425ccb98ea952f024a569346d36045f6918
[ "MIT" ]
null
null
null
gmso/tests/test_convert_parmed.py
chrisiacovella/gmso
c78e2425ccb98ea952f024a569346d36045f6918
[ "MIT" ]
null
null
null
import foyer import mbuild as mb import numpy as np import pytest import unyt as u from unyt.testing import assert_allclose_units from gmso.external.convert_parmed import from_parmed, to_parmed from gmso.tests.base_test import BaseTest from gmso.utils.io import get_fn, has_parmed, import_ if has_parmed: pmd = imp...
37.233129
80
0.562366
fa969f08eb7fb1d2ce8bbf18a9b81dbd933f5c2b
1,169
py
Python
home/tests.py
Muia23/Share
32f3fa5d75ee147920eb5255de2fb07e960f0b0a
[ "Unlicense" ]
null
null
null
home/tests.py
Muia23/Share
32f3fa5d75ee147920eb5255de2fb07e960f0b0a
[ "Unlicense" ]
8
2021-04-08T19:40:41.000Z
2022-03-12T00:46:05.000Z
home/tests.py
Muia23/Share
32f3fa5d75ee147920eb5255de2fb07e960f0b0a
[ "Unlicense" ]
null
null
null
from django.test import TestCase from models import Location,tags,Post from datetime import dt # Create your tests here. class LocationTestCase(TestCase): #set up method def setUp(self): self.ruiru = Location(name = 'Ruiru') #test instance def test_instance(self): self.assertTrue(...
25.977778
120
0.63302
e4e02cf5cf55a57288bb848aeecc4ad1960a595c
2,691
py
Python
pysrc/all_together/astron_samp_handler.py
hendhd/taenaris
c284e838f3c0cf734bcdc93a5e5b90433091b717
[ "CC0-1.0" ]
null
null
null
pysrc/all_together/astron_samp_handler.py
hendhd/taenaris
c284e838f3c0cf734bcdc93a5e5b90433091b717
[ "CC0-1.0" ]
null
null
null
pysrc/all_together/astron_samp_handler.py
hendhd/taenaris
c284e838f3c0cf734bcdc93a5e5b90433091b717
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding=utf-8 -*- # This is a demonstration of the usage of advanced SAMP. # # Make sure you have Topcat installed and open before starting the # script. import os import pyvo import warnings import sys from astropy.io import votable import astron_cutout as astron def magic_coor...
22.239669
78
0.60498
732e0d69ee64cce2788f35acf68d2669e5c7654b
3,328
py
Python
implementations/data_io/csv_serial_reader.py
endre86/CleanKitchen
a3d6a7f682d0a14ca904ed4a122bae03bbef3376
[ "MIT" ]
null
null
null
implementations/data_io/csv_serial_reader.py
endre86/CleanKitchen
a3d6a7f682d0a14ca904ed4a122bae03bbef3376
[ "MIT" ]
null
null
null
implementations/data_io/csv_serial_reader.py
endre86/CleanKitchen
a3d6a7f682d0a14ca904ed4a122bae03bbef3376
[ "MIT" ]
null
null
null
import serial import sys import time from serial import SerialException class CsvSerialReader: """ Used to read CSV data from serial port using serial.Serial. Expecting each line to be some comma seperated values, where the first value is a millisecond timestamp. Example input from serial port: ...
28.93913
83
0.571514
9abd734d777980ea0d5536fea342beae5d7eb62b
27,618
py
Python
partners/views.py
manushah17/Capstone_2019
381094fc778906810e13d7611bfdb2c74cac326e
[ "MIT" ]
null
null
null
partners/views.py
manushah17/Capstone_2019
381094fc778906810e13d7611bfdb2c74cac326e
[ "MIT" ]
8
2020-06-05T22:48:53.000Z
2022-01-13T01:36:42.000Z
partners/views.py
manushah17/Capstone_2019
381094fc778906810e13d7611bfdb2c74cac326e
[ "MIT" ]
null
null
null
import pandas as pd from django.db.models import Count from django.shortcuts import render, get_object_or_404, redirect from django.contrib import messages from django.contrib.auth.decorators import login_required from django.http import HttpResponse, HttpResponseRedirect, JsonResponse from home.decorators import camp...
52.20794
160
0.660801
8947d1ee62339ff9eb820d73c06964bfd8eda8ac
7,737
py
Python
garnet_redis/_storage.py
ukinti/garnet-redis-storage
eb412cc91edfba3f468dc340cc6b4b0ea0b60960
[ "MIT" ]
null
null
null
garnet_redis/_storage.py
ukinti/garnet-redis-storage
eb412cc91edfba3f468dc340cc6b4b0ea0b60960
[ "MIT" ]
null
null
null
garnet_redis/_storage.py
ukinti/garnet-redis-storage
eb412cc91edfba3f468dc340cc6b4b0ea0b60960
[ "MIT" ]
null
null
null
# Source: https://github.com/aiogram/aiogram """ This module has redis storage for user states based on`aioredis <https://github.com/aio-libs/aioredis>`_ driver """ import asyncio import json import typing import aioredis from garnet.storages import BaseStorage STATE_KEY = "state" STATE_DATA_KEY = "data" STATE_BUC...
30.581028
111
0.559519
ca91286db1323818eb9289af6c0ddc313d4048ed
8,609
py
Python
apps/gsekit/cmdb/views/tests.py
iSecloud/bk-process-config-manager
f44c01b7a28dd9328cce6e6066eae42d5365070d
[ "MIT" ]
8
2021-07-08T06:53:57.000Z
2022-03-14T04:05:27.000Z
apps/gsekit/cmdb/views/tests.py
iSecloud/bk-process-config-manager
f44c01b7a28dd9328cce6e6066eae42d5365070d
[ "MIT" ]
107
2021-07-22T02:20:07.000Z
2022-03-14T08:37:23.000Z
apps/gsekit/cmdb/views/tests.py
iSecloud/bk-process-config-manager
f44c01b7a28dd9328cce6e6066eae42d5365070d
[ "MIT" ]
12
2021-07-09T08:59:01.000Z
2022-03-08T13:40:41.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸 (Blueking) available. Copyright (C) 2017-2021 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...
52.175758
120
0.760251
c6f5f8d60aa5655999477fae6a7ea926d16aec40
6,982
py
Python
startup/30-governor.py
JunAishima/profile_collection
149f197605031992d0279937bdfd99f89a3198e9
[ "BSD-3-Clause" ]
null
null
null
startup/30-governor.py
JunAishima/profile_collection
149f197605031992d0279937bdfd99f89a3198e9
[ "BSD-3-Clause" ]
null
null
null
startup/30-governor.py
JunAishima/profile_collection
149f197605031992d0279937bdfd99f89a3198e9
[ "BSD-3-Clause" ]
null
null
null
""" Rationale: The Governor is a dynamic beast. The PVs it exposes depend on the configuration files given to it. Therefore, it would be hopelessly tedious to manually keep a Governor ophyd object in sync with the Governor IOC. There are at least two solutions to this issue: 1. Have the...
29.336134
84
0.641507
2a36ea3ededf57d52163ab7c115676258436ab41
4,334
py
Python
generalized_models.py
schrammlb2/dyn_sens
2962e0a980b9fccc741a119ef9f99b565c0ab782
[ "MIT" ]
null
null
null
generalized_models.py
schrammlb2/dyn_sens
2962e0a980b9fccc741a119ef9f99b565c0ab782
[ "MIT" ]
null
null
null
generalized_models.py
schrammlb2/dyn_sens
2962e0a980b9fccc741a119ef9f99b565c0ab782
[ "MIT" ]
null
null
null
import copy import torch from torch import nn from torch.distributions import Distribution, Normal class Actor(nn.Module): def __init__(self, hidden_size, stochastic=True, layer_norm=False, state_dim=3, action_dim=1): super().__init__() layers = [nn.Linear(state_dim, hidden_size), nn.Tanh(), nn.Linear(hidde...
40.12963
192
0.718274
475bd6e0e066982205cb2ee53169d42149a50c8b
25,819
py
Python
Lib/site-packages/yapf/yapflib/unwrapped_line.py
hirorin-demon/hirorin-streamlit
03fbb6f03ec94f909d451e708a3b30b177607695
[ "0BSD" ]
null
null
null
Lib/site-packages/yapf/yapflib/unwrapped_line.py
hirorin-demon/hirorin-streamlit
03fbb6f03ec94f909d451e708a3b30b177607695
[ "0BSD" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
Lib/site-packages/yapf/yapflib/unwrapped_line.py
hirorin-demon/hirorin-streamlit
03fbb6f03ec94f909d451e708a3b30b177607695
[ "0BSD" ]
1
2021-01-20T16:21:40.000Z
2021-01-20T16:21:40.000Z
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
38.307122
80
0.686394
80bf8b7ff691ba20c07b444641bca0ba59086af2
1,891
py
Python
test/test_navigate_env.py
y-veys/iGibson
1442c50187f8fcef118b097c195fef707eef04cb
[ "MIT" ]
2
2020-10-29T02:21:27.000Z
2021-07-26T07:38:23.000Z
test/test_navigate_env.py
y-veys/iGibson
1442c50187f8fcef118b097c195fef707eef04cb
[ "MIT" ]
null
null
null
test/test_navigate_env.py
y-veys/iGibson
1442c50187f8fcef118b097c195fef707eef04cb
[ "MIT" ]
null
null
null
from gibson2.core.physics.robot_locomotors import Turtlebot, Husky, Ant, Humanoid, JR2, JR2_Kinova from gibson2.core.simulator import Simulator from gibson2.core.physics.scene import BuildingScene, StadiumScene import gibson2 from gibson2.utils.utils import parse_config from gibson2.envs.base_env import BaseEnv from gi...
36.365385
98
0.621364
a3cd110224f7a66199d00ccfc77abd5fdbc10fc1
155
py
Python
BDSP-Scripts/Config_Files/twilioConfig_default.py
leecbryant/BDSP-PythonBot
db77b08e023ce3942cfff3c6d3e9a32f0d63f3dc
[ "MIT" ]
4
2022-03-28T21:00:00.000Z
2022-03-29T00:03:20.000Z
BDSP-Scripts/Config_Files/twilioConfig_default.py
leecbryant/BDSP-PythonBot
db77b08e023ce3942cfff3c6d3e9a32f0d63f3dc
[ "MIT" ]
null
null
null
BDSP-Scripts/Config_Files/twilioConfig_default.py
leecbryant/BDSP-PythonBot
db77b08e023ce3942cfff3c6d3e9a32f0d63f3dc
[ "MIT" ]
1
2022-03-30T05:12:46.000Z
2022-03-30T05:12:46.000Z
to_phone_number = '<your phone number>' from_phone_number = '<twilio phone number>' account_sid = '<twilio account sid>' auth_token = '<twilio auth token>'
38.75
43
0.748387
0be0236d6eb8327b9ee734b85f5a1533bd75d581
14,927
py
Python
shared/tools/logging.py
CorsoSource/metatools
b323affbffc83d964e854adad355fec1e3c682c3
[ "Apache-2.0" ]
12
2020-04-10T07:09:24.000Z
2022-03-04T09:22:40.000Z
shared/tools/logging.py
CorsoSource/metatools
b323affbffc83d964e854adad355fec1e3c682c3
[ "Apache-2.0" ]
5
2020-05-16T18:22:23.000Z
2022-03-29T13:19:27.000Z
shared/tools/logging.py
CorsoSource/metatools
b323affbffc83d964e854adad355fec1e3c682c3
[ "Apache-2.0" ]
2
2020-12-10T15:17:40.000Z
2021-12-02T17:34:56.000Z
""" Make logging easier! """ try: from com.inductiveautomation.factorypmi.application import FPMIWindow from com.inductiveautomation.factorypmi.application.components.template import TemplateHolder except ImportError: pass # only needed for when the logger's running on a Vision client; gateway won't have this in ...
35.968675
144
0.71019
bfe0330032bd4d51a7f412070aec93612dfc5ef0
337
py
Python
modules/generator_classes/os_urandom_functions.py
liushiyu1994/random_binary_file
17c317b777387346114a4ad20c1bc3cb8a4147ce
[ "MIT" ]
null
null
null
modules/generator_classes/os_urandom_functions.py
liushiyu1994/random_binary_file
17c317b777387346114a4ad20c1bc3cb8a4147ce
[ "MIT" ]
null
null
null
modules/generator_classes/os_urandom_functions.py
liushiyu1994/random_binary_file
17c317b777387346114a4ad20c1bc3cb8a4147ce
[ "MIT" ]
null
null
null
from ..packages import os class CurrentGenerator(object): """ This is much faster, enough for medium use. Detailed efficiency varies from platform. """ def __init__(self, *args, **kwargs): pass @staticmethod def random_binary_stream(binary_length): return bytearray(os.urandom...
22.466667
89
0.68546
cf14e208eec47b667e94b953271bec811dd8c3c2
2,739
py
Python
main2.py
initio-smac/smac_kivy
deb37e34fdc9df8e6629f418b662b5a001ffe1b4
[ "Apache-2.0" ]
null
null
null
main2.py
initio-smac/smac_kivy
deb37e34fdc9df8e6629f418b662b5a001ffe1b4
[ "Apache-2.0" ]
null
null
null
main2.py
initio-smac/smac_kivy
deb37e34fdc9df8e6629f418b662b5a001ffe1b4
[ "Apache-2.0" ]
null
null
null
'''Example shows the recommended way of how to run Kivy with the Python built in asyncio event loop as just another async coroutine. ''' import asyncio from kivy.app import App from kivy.lang.builder import Builder kv = ''' BoxLayout: orientation: 'vertical' BoxLayout: ToggleButton: id: bt...
30.433333
78
0.553122
f0dff8829f874b48ba20de0afedc800c4f52f886
785
py
Python
AlphaPose/trackers/ReidModels/psroi_pooling/build.py
NeelayS/pose_tracking
68d151eef0c6a84623348f7be76ece709e6ca57a
[ "MIT" ]
null
null
null
AlphaPose/trackers/ReidModels/psroi_pooling/build.py
NeelayS/pose_tracking
68d151eef0c6a84623348f7be76ece709e6ca57a
[ "MIT" ]
null
null
null
AlphaPose/trackers/ReidModels/psroi_pooling/build.py
NeelayS/pose_tracking
68d151eef0c6a84623348f7be76ece709e6ca57a
[ "MIT" ]
null
null
null
import os import torch from torch.utils.ffi import create_extension sources = [] headers = [] defines = [] with_cuda = False if torch.cuda.is_available(): print("Including CUDA code.") sources += ["src/psroi_pooling_cuda.c"] headers += ["src/psroi_pooling_cuda.h"] defines += [("WITH_CUDA", None)] ...
23.088235
75
0.70828
f8327a7988be02e459cacdeba18a32294bcee6b3
359
py
Python
problemas-resolvidos/neps-academy/programacao-basica-competicoes-c++/python/Exercicio-19-Campo-Minado.py
Ramo-UERJ/competitive-programming
7f2b821862853a7ebc1de5454914bcc9ea626083
[ "MIT" ]
null
null
null
problemas-resolvidos/neps-academy/programacao-basica-competicoes-c++/python/Exercicio-19-Campo-Minado.py
Ramo-UERJ/competitive-programming
7f2b821862853a7ebc1de5454914bcc9ea626083
[ "MIT" ]
1
2020-07-29T13:23:25.000Z
2020-07-29T13:23:25.000Z
problemas-resolvidos/neps-academy/programacao-basica-competicoes-c++/python/Exercicio-19-Campo-Minado.py
ieee-uerj/competitive-programming
7f2b821862853a7ebc1de5454914bcc9ea626083
[ "MIT" ]
null
null
null
n = int(input()) lista = [] saida = [] for i in range(0,n): lista.append(int(input())) lista.append(0) for i in range(0,n): qtde = 0 if (i == 0): qtde = qtde + lista[i] qtde = qtde + lista[i+1] elif (i < n): qtde = qtde + lista[i] qtde = qtde + lista[i+1] q...
19.944444
33
0.481894
35aabbfcc835fedb74183346a4207475335c1ae8
4,355
py
Python
tests/test_select.py
surajpotnuru/sqllineage
fe66eb6dda781eb57dfe3d928432268657c1af4f
[ "MIT" ]
null
null
null
tests/test_select.py
surajpotnuru/sqllineage
fe66eb6dda781eb57dfe3d928432268657c1af4f
[ "MIT" ]
null
null
null
tests/test_select.py
surajpotnuru/sqllineage
fe66eb6dda781eb57dfe3d928432268657c1af4f
[ "MIT" ]
null
null
null
from .helpers import helper def test_select(): helper("SELECT col1 FROM tab1", {"tab1"}) def test_select_with_schema(): helper("SELECT col1 FROM schema1.tab1", {"schema1.tab1"}) def test_select_with_table_name_in_backtick(): helper("SELECT * FROM `tab1`", {"tab1"}) def test_select_with_schema_in_bac...
24.60452
106
0.65442
5e23209f595462c711434c020884da82b3bea4e5
18,649
py
Python
sympy/geometry/util.py
harsh-98/sympy
53fc684467088cdf0acccb6ad770cbde97e32268
[ "BSD-3-Clause" ]
null
null
null
sympy/geometry/util.py
harsh-98/sympy
53fc684467088cdf0acccb6ad770cbde97e32268
[ "BSD-3-Clause" ]
null
null
null
sympy/geometry/util.py
harsh-98/sympy
53fc684467088cdf0acccb6ad770cbde97e32268
[ "BSD-3-Clause" ]
null
null
null
"""Utility functions for geometrical entities. Contains ======== intersection convex_hull closest_points farthest_points are_coplanar are_similar """ from __future__ import division, print_function from sympy import Function, Symbol, solve from sympy.core.compatibility import ( is_sequence, range, string_types, ...
28.085843
277
0.559762
4337c06e9096e733194119ce06b6c8119d293d5a
71,416
py
Python
wavefront_api_client/api/dashboard_api.py
httpsgithu/python-client
f85a530367cdabe458a11919ad35609b9bc0606b
[ "Apache-2.0" ]
null
null
null
wavefront_api_client/api/dashboard_api.py
httpsgithu/python-client
f85a530367cdabe458a11919ad35609b9bc0606b
[ "Apache-2.0" ]
null
null
null
wavefront_api_client/api/dashboard_api.py
httpsgithu/python-client
f85a530367cdabe458a11919ad35609b9bc0606b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Wavefront REST API Documentation <p>The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.</p><p>When you make REST API calls outside the W...
39.719689
621
0.585051
e99cef2a7539380ecc841c85b627b3c0c18c4c5c
907
py
Python
examples/task_pool/run_cor_function_no_context_manager.py
Python-Tools/aio_parallel_tools
23589c3ffce6de2748c1c90bd0dae2c414995a65
[ "MIT" ]
null
null
null
examples/task_pool/run_cor_function_no_context_manager.py
Python-Tools/aio_parallel_tools
23589c3ffce6de2748c1c90bd0dae2c414995a65
[ "MIT" ]
1
2021-12-13T20:26:32.000Z
2021-12-13T20:26:32.000Z
examples/task_pool/run_cor_function_no_context_manager.py
Python-Tools/aio_parallel_tools
23589c3ffce6de2748c1c90bd0dae2c414995a65
[ "MIT" ]
null
null
null
import sys import asyncio from pathlib import Path p = Path(__file__).absolute() root = p.parent.parent.parent.absolute() print(root) sys.path.append(str(root)) from aio_parallel_tools import AioFixedTaskPoolSimple async def test(name): print(f"{name} start") for i in range(5): await asyncio.sleep(1) ...
25.194444
53
0.675854
6b5c634adc8dee0d74f3b661fe387326bd4157cf
848
py
Python
components/collector/src/source_collectors/local_source_collectors/calendar.py
Gamer1120/quality-time
f3a0d6f75cd6055d78995d37feae72bc3e837e4b
[ "Apache-2.0" ]
1
2021-02-22T07:53:36.000Z
2021-02-22T07:53:36.000Z
components/collector/src/source_collectors/local_source_collectors/calendar.py
Gamer1120/quality-time
f3a0d6f75cd6055d78995d37feae72bc3e837e4b
[ "Apache-2.0" ]
338
2020-10-29T04:28:09.000Z
2022-02-22T04:09:33.000Z
components/collector/src/source_collectors/local_source_collectors/calendar.py
dicksnel/quality-time
4c04f8852aa97175f2bca2b5c5391b3e09b657af
[ "Apache-2.0" ]
1
2022-01-06T04:07:03.000Z
2022-01-06T04:07:03.000Z
"""Calendar metric source.""" from datetime import datetime from typing import Sequence, cast from base_collectors import SourceUpToDatenessCollector from collector_utilities.type import Response from source_model import SourceResponses class CalendarSourceUpToDateness(SourceUpToDatenessCollector): """Collector...
40.380952
118
0.777123
b7b63c789f96cb10b775dea22ed37627169930bd
1,299
py
Python
anontalk.py
jessehorne/anonchat.io
c01ec997ea1b736ed17c3071cb91f5de0307d590
[ "MIT" ]
1
2016-06-12T01:57:19.000Z
2016-06-12T01:57:19.000Z
anontalk.py
jessehorne/anonchat.io
c01ec997ea1b736ed17c3071cb91f5de0307d590
[ "MIT" ]
7
2016-06-05T18:33:37.000Z
2016-06-27T02:01:04.000Z
anontalk.py
jessehorne/anonchat.io
c01ec997ea1b736ed17c3071cb91f5de0307d590
[ "MIT" ]
1
2016-06-10T06:15:31.000Z
2016-06-10T06:15:31.000Z
import socketio import eventlet import json from flask import Flask, render_template from lib import ConfParser socket = socketio.Server() app = Flask(__name__) anonconf = {} anonconf["anontalk"] = ConfParser.parse("anontalk") user_count = 0 @app.route("/") def index(): return render_template("index.html", anon...
21.295082
111
0.65204
ecc4b564f6609ab88c50c98d8dcd24e2f7a14ead
73
py
Python
wsgi.py
OrestSenkovskyi/fleet_test
ae4f82263a1793bd129ee07309a7b59efaaa97bf
[ "MIT" ]
null
null
null
wsgi.py
OrestSenkovskyi/fleet_test
ae4f82263a1793bd129ee07309a7b59efaaa97bf
[ "MIT" ]
3
2020-12-02T14:33:11.000Z
2020-12-15T08:27:35.000Z
wsgi.py
OrestSenkovskyi/fleet_test
ae4f82263a1793bd129ee07309a7b59efaaa97bf
[ "MIT" ]
null
null
null
from app import app if __name__ == "__main__": app.run(debug=True)
12.166667
26
0.671233
33a68c7fd0010ca1b423f45a3f76b8956b42df05
5,960
py
Python
tests/order_mgmt_test.py
chrjxj/ibclient
c1a4c82e1f0d7f65eb649869ecd1082d50117eb7
[ "BSD-2-Clause" ]
1
2021-12-15T09:28:16.000Z
2021-12-15T09:28:16.000Z
tests/order_mgmt_test.py
chrjxj/ibclient
c1a4c82e1f0d7f65eb649869ecd1082d50117eb7
[ "BSD-2-Clause" ]
null
null
null
tests/order_mgmt_test.py
chrjxj/ibclient
c1a4c82e1f0d7f65eb649869ecd1082d50117eb7
[ "BSD-2-Clause" ]
3
2020-05-19T19:28:55.000Z
2021-05-18T12:06:08.000Z
# -*- coding:utf-8 -*- ''' Created on 11/08/2016 @author: Jin Xu ''' import sys from os import path import unittest import datetime import time from pprint import pprint import random from ibclient import (IBClient, MarketOrder, LimitOrder, new_stock_contract, new_futures_co...
42.269504
94
0.542114
c0681b272bbd535b6f2d7be1eee74248340eac3f
2,119
py
Python
src/pyserver.py
MlsDmitry/RakNet-samples
05873aecb5c8dac0c0f822845c764bd5f8dc6a6d
[ "MIT" ]
null
null
null
src/pyserver.py
MlsDmitry/RakNet-samples
05873aecb5c8dac0c0f822845c764bd5f8dc6a6d
[ "MIT" ]
null
null
null
src/pyserver.py
MlsDmitry/RakNet-samples
05873aecb5c8dac0c0f822845c764bd5f8dc6a6d
[ "MIT" ]
null
null
null
# This file was automatically generated by SWIG (http://www.swig.org). # Version 4.0.2 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info as _swig_python_version_info if _swig_python_version_info < (2, 7, 0): raise Runtime...
30.710145
118
0.689948
a9f0238ce4391258904277c5ef364231e48468a9
3,600
py
Python
unifuncnet/fetchers/compound_fetchers/compound_fetcher_kegg.py
PedroMTQ/DRAX
d4574a0292b5ddbf5201bd20ba4dba45b4cdd43b
[ "MIT" ]
7
2021-09-27T13:15:02.000Z
2022-02-03T10:19:52.000Z
unifuncnet/fetchers/compound_fetchers/compound_fetcher_kegg.py
PedroMTQ/DRAX
d4574a0292b5ddbf5201bd20ba4dba45b4cdd43b
[ "MIT" ]
null
null
null
unifuncnet/fetchers/compound_fetchers/compound_fetcher_kegg.py
PedroMTQ/DRAX
d4574a0292b5ddbf5201bd20ba4dba45b4cdd43b
[ "MIT" ]
null
null
null
from unifuncnet.fetchers.compound_fetchers.compound_fetcher import * class CompoundFetcherKegg(CompoundFetcher): def __init__(self, compound_id, memory_storage=None): CompoundFetcher.__init__(self, compound_id, memory_storage) self.db = 'kegg' self.set_convergence_args() self.compo...
40.449438
134
0.578611
3d2eff61e1e9ea5e8c9bbf4ddebce9589ebd33d5
184
py
Python
server/app/controllers/CourseController.py
MozammilKhan/tdsb-project
2d982155b343a5f8fbb93a830000bf5aaaff161f
[ "MIT" ]
12
2021-07-16T08:06:39.000Z
2022-03-26T11:49:33.000Z
server/app/controllers/CourseController.py
MozammilKhan/tdsb-project
2d982155b343a5f8fbb93a830000bf5aaaff161f
[ "MIT" ]
7
2021-03-10T09:19:04.000Z
2022-02-27T00:20:22.000Z
server/app/controllers/CourseController.py
a-fazal/homework-management-app
2d982155b343a5f8fbb93a830000bf5aaaff161f
[ "MIT" ]
null
null
null
from app.models.Course import Course import uuid def post(name, instructor): new_course = Course(name=name,instructor=instructor,_id=str(uuid.uuid4())) new_course.insert()
18.4
78
0.744565
15586c26dde57eaaf788acee9613a2b3e24a5b43
11,483
py
Python
mfr_prediction.py
uvamerstorfer/MFRpred
d64ee297528329f17c829dbb0241a400b226df8c
[ "MIT" ]
null
null
null
mfr_prediction.py
uvamerstorfer/MFRpred
d64ee297528329f17c829dbb0241a400b226df8c
[ "MIT" ]
null
null
null
mfr_prediction.py
uvamerstorfer/MFRpred
d64ee297528329f17c829dbb0241a400b226df8c
[ "MIT" ]
null
null
null
# !/usr/bin/python # coding: utf8 """ Prediction of flux rope magnetic fields This file is part of the mfr_predict-package. It loads the final machine learning model and applies it to the test data set generated in mfr_predict_v1p1.py. Authors: U.V. Amerstorfer, Space Research Institute IWF Graz, Austria Last update...
34.79697
221
0.626578
a62b15219c1194a2746b5275989f482895c2149f
13,823
py
Python
test/service/test_schema_service.py
whdalsrnt/repository
4d019c21508629faae7a7e2789bf540a3bab0e20
[ "Apache-2.0" ]
6
2020-06-04T23:00:33.000Z
2020-08-10T02:45:43.000Z
test/service/test_schema_service.py
whdalsrnt/repository
4d019c21508629faae7a7e2789bf540a3bab0e20
[ "Apache-2.0" ]
4
2020-10-09T07:02:27.000Z
2022-02-28T04:43:01.000Z
test/service/test_schema_service.py
whdalsrnt/repository
4d019c21508629faae7a7e2789bf540a3bab0e20
[ "Apache-2.0" ]
6
2020-06-01T10:10:57.000Z
2021-10-05T03:03:00.000Z
import unittest from unittest.mock import patch from mongoengine import connect, disconnect from spaceone.core.unittest.result import print_data from spaceone.core.unittest.runner import RichTestRunner from spaceone.core import config from spaceone.core import utils from spaceone.core.transaction import Transaction fr...
35.626289
105
0.564349
201b55fbcd20e36806b1dc2da68eb1ea5a5a1bd4
24,125
py
Python
venv/Lib/site-packages/streamlit/legacy_caching/caching.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
1
2020-10-14T13:00:52.000Z
2020-10-14T13:00:52.000Z
venv/Lib/site-packages/streamlit/legacy_caching/caching.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
null
null
null
venv/Lib/site-packages/streamlit/legacy_caching/caching.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
null
null
null
# Copyright 2018-2021 Streamlit 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 wr...
33.275862
99
0.650031
1b7219ba18777d5239040a89efd85b1963ab0ab7
955
py
Python
src/demo.py
zouchangjie/-------neural-networks
9fc93f6f619353e5e4182daa1c32d7c5607f051b
[ "Unlicense" ]
null
null
null
src/demo.py
zouchangjie/-------neural-networks
9fc93f6f619353e5e4182daa1c32d7c5607f051b
[ "Unlicense" ]
null
null
null
src/demo.py
zouchangjie/-------neural-networks
9fc93f6f619353e5e4182daa1c32d7c5607f051b
[ "Unlicense" ]
null
null
null
######################1111111111111111111111 import mnist_loader import network training_data,validation_data,test_data = mnist_loader.load_data_wrapper() # print ("training data") # print (type(training_data)) # print (len(training_data)) # print (training_data[0][0].shape) # print (training_data[0][1].shape) # prin...
32.931034
91
0.740314
3bf6de6ae04c6f5ebe725bb61d184c54b695c3cd
7,484
py
Python
fforma/r_models.py
Pieter-Cawood/FFORMA-ESRNN
83bbdc57cf7604b7d4d8c0f9d246c4699a200fc2
[ "MIT" ]
3
2022-03-09T03:58:28.000Z
2022-03-13T12:10:08.000Z
fforma/r_models.py
Pieter-Cawood/FFORMA-ESRNN
83bbdc57cf7604b7d4d8c0f9d246c4699a200fc2
[ "MIT" ]
null
null
null
fforma/r_models.py
Pieter-Cawood/FFORMA-ESRNN
83bbdc57cf7604b7d4d8c0f9d246c4699a200fc2
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 import pandas as pd from copy import deepcopy from sklearn.base import BaseEstimator, RegressorMixin from sklearn.utils.validation import check_is_fitted from rpy2.robjects.packages import importr from rpy2.robjects import pandas2ri, numpy2ri from rpy2.robjects.vectors import Int...
26.539007
96
0.608765
23828858bf868950962c253f81817db57afd0d0c
1,842
py
Python
cs-config/cs_config/helpers.py
grantseiter/Tax-Cruncher-ARP
32312bd1e15ecbeb1701b0ca3a51514264a49e01
[ "MIT" ]
1
2021-10-01T14:22:32.000Z
2021-10-01T14:22:32.000Z
cs-config/cs_config/helpers.py
grantseiter/Tax-Cruncher-ARP
32312bd1e15ecbeb1701b0ca3a51514264a49e01
[ "MIT" ]
1
2021-03-16T13:57:36.000Z
2021-03-16T13:57:36.000Z
cs-config/cs_config/helpers.py
grantseiter/Tax-Cruncher-ARP
32312bd1e15ecbeb1701b0ca3a51514264a49e01
[ "MIT" ]
1
2021-03-16T13:44:38.000Z
2021-03-16T13:44:38.000Z
''' // ===========================================================# // Title: American Rescue Plan Reform // Reform_File_Author: Grant M. Seiter -- American Enterprise Institute // Date: March 2021 // ===========================================================# ''' arp_ref = { "CDCC_c": {"2021": 0.0}, "CDCC...
41.863636
84
0.517372
96fc8c83c481990a2c0b809624abe84231cfe2d9
439
py
Python
{{cookiecutter.project_slug}}/config.py
thacoon/cookiecutter-flask-simple
45e04e21ceabe56de3e19e1559fe12d4731135f7
[ "MIT" ]
null
null
null
{{cookiecutter.project_slug}}/config.py
thacoon/cookiecutter-flask-simple
45e04e21ceabe56de3e19e1559fe12d4731135f7
[ "MIT" ]
null
null
null
{{cookiecutter.project_slug}}/config.py
thacoon/cookiecutter-flask-simple
45e04e21ceabe56de3e19e1559fe12d4731135f7
[ "MIT" ]
null
null
null
import os class Config(object): SECRET_KEY = os.getenv('SECRET_KEY') or 'secret key' @staticmethod def init_app(app): pass class DevelopmentConfig(Config): CONFIG_NAME = 'Development' ENV = 'development' DEBUG = True TESTING = True class GitlabConfig(DevelopmentConfig): ...
14.633333
56
0.665148
4cd40a2b843ee0ed7c67305ebc4657bf0a08c1d3
15,090
py
Python
twitter-analytics/code/3-model_evaluation/expansion/results.py
worldbank/SDG-big-data
7349cffde3c32bb5a7abc99d910a40e1ba611916
[ "MIT" ]
2
2022-02-03T16:50:00.000Z
2022-02-03T16:50:20.000Z
twitter-analytics/code/3-model_evaluation/expansion/results.py
worldbank/SDG-big-data
7349cffde3c32bb5a7abc99d910a40e1ba611916
[ "MIT" ]
null
null
null
twitter-analytics/code/3-model_evaluation/expansion/results.py
worldbank/SDG-big-data
7349cffde3c32bb5a7abc99d910a40e1ba611916
[ "MIT" ]
null
null
null
our_method_dict = { 0: { 'job_search': { 'mean': 15859.4279, 'sem': 65.27195096975805}, 'job_offer': { 'mean': 383841.7586, 'sem': 211.2419273935965}, 'is_hired_1mo': { 'mean': 7787.5943, 'sem': 20.146324881014205}, ...
30.18
40
0.455467
12ea0c4ef05c4e3f151ec957db7b8b8de3db54c5
2,949
py
Python
application/migrations/0001_initial.py
wangechimk/Trashmap-django
e6ad47f30fdfbfff9aba239415855006cb2b2537
[ "MIT" ]
null
null
null
application/migrations/0001_initial.py
wangechimk/Trashmap-django
e6ad47f30fdfbfff9aba239415855006cb2b2537
[ "MIT" ]
null
null
null
application/migrations/0001_initial.py
wangechimk/Trashmap-django
e6ad47f30fdfbfff9aba239415855006cb2b2537
[ "MIT" ]
null
null
null
# Generated by Django 3.2.4 on 2021-06-09 18:47 import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_m...
64.108696
329
0.661919
9fac51f9c3ca6b146711278461e6058b96d69183
422
py
Python
Modulo_5/semana_1/rebanar/d3.py
AutodidactaMx/cocid_python
11628f465ff362807a692c79ede26bf30dd8e26a
[ "MIT" ]
null
null
null
Modulo_5/semana_1/rebanar/d3.py
AutodidactaMx/cocid_python
11628f465ff362807a692c79ede26bf30dd8e26a
[ "MIT" ]
null
null
null
Modulo_5/semana_1/rebanar/d3.py
AutodidactaMx/cocid_python
11628f465ff362807a692c79ede26bf30dd8e26a
[ "MIT" ]
1
2022-03-04T00:57:18.000Z
2022-03-04T00:57:18.000Z
import numpy as np a3 = np.array([ [ [10, 11, 12], [13, 14, 15], [16, 17, 18] ], [ [20, 21, 22], [23, 24, 25], [26, 27, 28] ], [ [30, 31, 32], [33, 34, 35], [36, 37, 38] ] ...
26.375
64
0.246445
497e89040f973cc06d1802505835c93f454a4845
2,311
py
Python
services/test/services/test_matchmaking.py
tkblackbelt/Asteroids-Multiplayer-Backend
e09b110ec8698657d8f22f2600e95acc663b1ba0
[ "Apache-2.0" ]
null
null
null
services/test/services/test_matchmaking.py
tkblackbelt/Asteroids-Multiplayer-Backend
e09b110ec8698657d8f22f2600e95acc663b1ba0
[ "Apache-2.0" ]
null
null
null
services/test/services/test_matchmaking.py
tkblackbelt/Asteroids-Multiplayer-Backend
e09b110ec8698657d8f22f2600e95acc663b1ba0
[ "Apache-2.0" ]
null
null
null
# import pytest # import os # import boto3 # import inject # from moto import mock_sqs # from matchmaking.matchmaking import MatchMakerApp, MatchMakerConfig, get_configuration # from common.domain.game_queue_interface import GameQueueInterface # from common.domain.player import Player # @pytest.fixture(scope='functio...
33.492754
118
0.679792
4140b3d513ed6588b6440e6149bd79f9358994ee
2,611
py
Python
hiddenfigures/analysis/stats/dropshot/goals.py
millcityrunner/carball
c94cb8caf2f00e616409d2c22b73475e6268fffa
[ "Apache-2.0" ]
null
null
null
hiddenfigures/analysis/stats/dropshot/goals.py
millcityrunner/carball
c94cb8caf2f00e616409d2c22b73475e6268fffa
[ "Apache-2.0" ]
null
null
null
hiddenfigures/analysis/stats/dropshot/goals.py
millcityrunner/carball
c94cb8caf2f00e616409d2c22b73475e6268fffa
[ "Apache-2.0" ]
null
null
null
import math import logging from typing import Dict import pandas as pd from hiddenfigures.analysis.stats.stats import BaseStat from hiddenfigures.generated.api.player_pb2 import Player from hiddenfigures.generated.api import game_pb2 from hiddenfigures.json_parser.game import Game from hiddenfigures.analysis.stats.dr...
37.3
123
0.624282
10fa24a69c833d084cae896fb587daaceb395f6a
4,029
py
Python
dask_jobqueue/sge.py
ttedeschi/dask-jobqueue
43118c18beae24bf602f22081f1ce7d759e0a6b7
[ "BSD-3-Clause" ]
180
2018-03-01T22:25:43.000Z
2022-03-30T10:13:33.000Z
dask_jobqueue/sge.py
ttedeschi/dask-jobqueue
43118c18beae24bf602f22081f1ce7d759e0a6b7
[ "BSD-3-Clause" ]
509
2018-03-01T22:11:14.000Z
2022-03-30T18:14:20.000Z
dask_jobqueue/sge.py
ttedeschi/dask-jobqueue
43118c18beae24bf602f22081f1ce7d759e0a6b7
[ "BSD-3-Clause" ]
116
2018-03-01T23:37:25.000Z
2022-02-25T15:55:59.000Z
import logging import dask from .core import Job, JobQueueCluster, job_parameters, cluster_parameters logger = logging.getLogger(__name__) class SGEJob(Job): submit_command = "qsub" cancel_command = "qdel" config_name = "sge" def __init__( self, scheduler=None, name=None, ...
32.756098
104
0.595433
ff79a1a08c18c5a3cdcfd7b63a70e1ad938ec432
13,571
py
Python
alignment/sequencealigner.py
reynoldsnlp/python-alignment
1995d2aac4e593d62e4c7125ac6a4545dcb5762e
[ "BSD-3-Clause" ]
42
2015-01-02T00:17:12.000Z
2022-03-03T16:18:15.000Z
alignment/sequencealigner.py
reynoldsnlp/python-alignment
1995d2aac4e593d62e4c7125ac6a4545dcb5762e
[ "BSD-3-Clause" ]
8
2015-08-11T23:11:49.000Z
2020-04-16T21:46:13.000Z
alignment/sequencealigner.py
reynoldsnlp/python-alignment
1995d2aac4e593d62e4c7125ac6a4545dcb5762e
[ "BSD-3-Clause" ]
18
2015-01-29T23:23:21.000Z
2021-10-04T11:26:52.000Z
from six import text_type from six.moves import range try: import numpypy as numpy except ImportError: import numpy from abc import ABCMeta from abc import abstractmethod from .sequence import GAP_CODE from .sequence import EncodedSequence # Scoring ----------------------------------------------------------...
33.426108
79
0.486773
585c79a6ec05a71bc422147966105248b7594ec1
2,845
py
Python
tests/functional/stock_alert_tests.py
DrOctogon/unwash_ecom
f78fc87f5dbca86a483ca9cfa7fb6f302d15b741
[ "BSD-3-Clause" ]
1
2015-08-02T05:36:11.000Z
2015-08-02T05:36:11.000Z
tests/functional/stock_alert_tests.py
DrOctogon/unwash_ecom
f78fc87f5dbca86a483ca9cfa7fb6f302d15b741
[ "BSD-3-Clause" ]
1
2021-12-13T20:48:46.000Z
2021-12-13T20:48:46.000Z
tests/functional/stock_alert_tests.py
DrOctogon/unwash_ecom
f78fc87f5dbca86a483ca9cfa7fb6f302d15b741
[ "BSD-3-Clause" ]
2
2018-12-27T09:42:38.000Z
2018-12-27T10:21:07.000Z
from decimal import Decimal as D from django.test import TestCase from oscar.apps.partner.models import StockRecord, StockAlert from oscar.test.basket import add_product from oscar.test import factories class TestPlacingAnOrder(TestCase): def setUp(self): self.product = factories.create_product() ...
33.869048
68
0.696661
7088e893265400cf9c0fcd9851ef69772cbd3774
496
py
Python
test/python/mirror/asgi.py
devnexen/unit
d65a66f9d813294917822554311281c5e1a7126b
[ "Apache-2.0" ]
10
2018-11-14T10:58:41.000Z
2021-12-11T01:43:51.000Z
test/python/mirror/asgi.py
devnexen/unit
d65a66f9d813294917822554311281c5e1a7126b
[ "Apache-2.0" ]
null
null
null
test/python/mirror/asgi.py
devnexen/unit
d65a66f9d813294917822554311281c5e1a7126b
[ "Apache-2.0" ]
3
2018-10-31T12:10:05.000Z
2019-02-14T14:09:48.000Z
async def application(scope, receive, send): assert scope['type'] == 'http' body = b'' while True: m = await receive() body += m.get('body', b'') if not m.get('more_body', False): break await send({ 'type': 'http.response.start', 'status': 200, ...
21.565217
57
0.47379
42f64ffb6db0d603ffc3f56e0c0c7dcb44743203
1,767
py
Python
scripts/json2txt.py
joshrule/list-routine-learning-rs
3c478fd512d33b753c9a68b1e46acb78df81adfe
[ "MIT" ]
null
null
null
scripts/json2txt.py
joshrule/list-routine-learning-rs
3c478fd512d33b753c9a68b1e46acb78df81adfe
[ "MIT" ]
null
null
null
scripts/json2txt.py
joshrule/list-routine-learning-rs
3c478fd512d33b753c9a68b1e46acb78df81adfe
[ "MIT" ]
null
null
null
import json import sys def ser_node(node, move, depth): header = depth * " " if node is None: node_string = ser_unvisited(depth) else: node_string = ser_visited(node, depth) spacer = "\t" if len(node_string) > 0 else "" move_string = move['move'] return f'{header}- {move_strin...
29.949153
70
0.546123
0969f3912cbd58a3aefc96b48a2a6a733edbec36
666
py
Python
mspray/apps/main/tests/models/test_decision.py
onaio/mspray
b3e0f4b5855abbf0298de6b66f2e9f472f2bf838
[ "Apache-2.0" ]
null
null
null
mspray/apps/main/tests/models/test_decision.py
onaio/mspray
b3e0f4b5855abbf0298de6b66f2e9f472f2bf838
[ "Apache-2.0" ]
76
2018-03-15T09:37:56.000Z
2019-05-15T12:45:51.000Z
mspray/apps/main/tests/models/test_decision.py
onaio/mspray
b3e0f4b5855abbf0298de6b66f2e9f472f2bf838
[ "Apache-2.0" ]
1
2020-10-31T07:15:22.000Z
2020-10-31T07:15:22.000Z
# -*- coding: utf-8 -*- """ Test sensitization_visit module. """ from django.test import TestCase from mspray.apps.main.models.decision import Decision, create_decision_visit from mspray.apps.main.tests.utils import DECISION_VISIT_DATA, data_setup class TestDecision(TestCase): """Test Decision class""" def ...
30.272727
78
0.731231
39d3590c0f587649c53f2d30a3e24b6416669014
1,550
py
Python
config/urls.py
teglanna/cookiecutter-darkbitter
c5d6aab4cc3898f84fb7540eba2b9211ce3ab8f0
[ "MIT" ]
null
null
null
config/urls.py
teglanna/cookiecutter-darkbitter
c5d6aab4cc3898f84fb7540eba2b9211ce3ab8f0
[ "MIT" ]
null
null
null
config/urls.py
teglanna/cookiecutter-darkbitter
c5d6aab4cc3898f84fb7540eba2b9211ce3ab8f0
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static from django.contrib import admin from django.views.generic import TemplateView from django.views import defaults as default_views urlpatterns = [ url(r'^$', TemplateView.as_view(template_name='page...
40.789474
110
0.695484
f5db404d59a7dd93a478b020aff12bc50fa7da3d
5,060
py
Python
test/functional/feature_versionbits_warning.py
bitcoinrtx/bitcoinrtx
00bcd7e3674174460bb0704e2f61aaad813db6fb
[ "MIT" ]
null
null
null
test/functional/feature_versionbits_warning.py
bitcoinrtx/bitcoinrtx
00bcd7e3674174460bb0704e2f61aaad813db6fb
[ "MIT" ]
null
null
null
test/functional/feature_versionbits_warning.py
bitcoinrtx/bitcoinrtx
00bcd7e3674174460bb0704e2f61aaad813db6fb
[ "MIT" ]
1
2021-02-27T15:32:44.000Z
2021-02-27T15:32:44.000Z
#!/usr/bin/env python3 # # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test version bits warning system. Generate chains with block versions that appear to be signalling unknown soft-forks, and test that warning alerts are g...
48.190476
137
0.71996
b9b3ff7bcb7adc254623c214caaa9d8c6c93381a
81
py
Python
Practice_2/languages/spanish.py
jldj1/Practice-2
014d63bff36c4ba7a80a32db1da66c397267a205
[ "MIT" ]
null
null
null
Practice_2/languages/spanish.py
jldj1/Practice-2
014d63bff36c4ba7a80a32db1da66c397267a205
[ "MIT" ]
null
null
null
Practice_2/languages/spanish.py
jldj1/Practice-2
014d63bff36c4ba7a80a32db1da66c397267a205
[ "MIT" ]
null
null
null
class Spanish: @staticmethod def start(): return "Bienvenido!"
20.25
28
0.592593
5e67fac75e247be845aa6e1f85f0def89fa41284
2,050
py
Python
tests/common/test_run/ascend/square_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/common/test_run/ascend/square_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/common/test_run/ascend/square_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2019-2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
40.196078
116
0.718049
255148f224f52f1819ba5848fa84cee296d8221e
1,439
py
Python
hypercane/args/order.py
ato/hypercane
290ef402006ee8f8d98090e31da52819e26145a0
[ "MIT" ]
2
2020-06-11T18:42:02.000Z
2020-10-06T21:17:15.000Z
hypercane/args/order.py
ato/hypercane
290ef402006ee8f8d98090e31da52819e26145a0
[ "MIT" ]
55
2020-06-01T00:23:00.000Z
2022-02-21T20:52:29.000Z
hypercane/args/order.py
ato/hypercane
290ef402006ee8f8d98090e31da52819e26145a0
[ "MIT" ]
3
2021-02-07T05:36:24.000Z
2021-12-17T05:45:14.000Z
import argparse from argparse import RawTextHelpFormatter import hypercane.actions.order order_parser = argparse.ArgumentParser(prog="hc order", description="'order' orders the memento list input by some feature or function.", formatter_class=RawTextHelpFormatter ) subparsers = order_parser.add_subparsers(he...
36.897436
134
0.788047
ef7c8ff7940e9a89996998c242aff11415260522
32
py
Python
vae-pytorch/src/encoder/__init__.py
BeeGass/Readable-VAEs
50dcb03ad9b688c5249c52120cbbb5fed0a0a085
[ "MIT" ]
2
2022-01-02T16:41:14.000Z
2022-01-07T05:18:04.000Z
vae-pytorch/src/encoder/__init__.py
BeeGass/Readable-VAEs
50dcb03ad9b688c5249c52120cbbb5fed0a0a085
[ "MIT" ]
null
null
null
vae-pytorch/src/encoder/__init__.py
BeeGass/Readable-VAEs
50dcb03ad9b688c5249c52120cbbb5fed0a0a085
[ "MIT" ]
null
null
null
from .vae_encoder import Encoder
32
32
0.875
e9469a02767d3f2c1aaa654bcff041c58cb35f54
16,331
py
Python
lib/galaxy/workflow/extract.py
ramezrawas/galaxy-1
c03748dd49c060a68d07bce56eae33e0ba154414
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/workflow/extract.py
ramezrawas/galaxy-1
c03748dd49c060a68d07bce56eae33e0ba154414
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/workflow/extract.py
ramezrawas/galaxy-1
c03748dd49c060a68d07bce56eae33e0ba154414
[ "CC-BY-3.0" ]
null
null
null
""" This module contains functionality to aid in extracting workflows from histories. """ from galaxy.util.odict import odict from galaxy import exceptions from galaxy import model from galaxy.tools.parameters.basic import ( DataToolParameter, DataCollectionToolParameter ) from galaxy.tools.parser import ToolOu...
43.782842
200
0.624457
eb8eae98c8af80188f80e68c23fe2677e86ece31
17,141
py
Python
modules/dxtbx/serialize/xds.py
jorgediazjr/dials-dev20191018
77d66c719b5746f37af51ad593e2941ed6fbba17
[ "BSD-3-Clause" ]
null
null
null
modules/dxtbx/serialize/xds.py
jorgediazjr/dials-dev20191018
77d66c719b5746f37af51ad593e2941ed6fbba17
[ "BSD-3-Clause" ]
null
null
null
modules/dxtbx/serialize/xds.py
jorgediazjr/dials-dev20191018
77d66c719b5746f37af51ad593e2941ed6fbba17
[ "BSD-3-Clause" ]
1
2020-02-04T15:39:06.000Z
2020-02-04T15:39:06.000Z
from __future__ import absolute_import, division, print_function import warnings from cctbx import uctbx from cctbx.eltbx import attenuation_coefficient from cctbx.sgtbx import space_group, space_group_symbols from iotbx.xds import xds_inp, xparm from rstbx.cftbx.coordinate_frame_converter import coordinate_frame_con...
35.269547
88
0.590456
f4571a92971fc7b5ce634f65e8c518edad9b9cff
4,043
py
Python
retail/recommendation-system/bqml-scann/tfx_pipeline/bq_components.py
fenzhantw/BQ_AUTOML
6f3a592a74320fab6fe85ab4f956294d5a5a422d
[ "Apache-2.0" ]
109
2020-07-30T13:25:24.000Z
2022-03-29T05:10:46.000Z
retail/recommendation-system/bqml-scann/tfx_pipeline/bq_components.py
fenzhantw/BQ_AUTOML
6f3a592a74320fab6fe85ab4f956294d5a5a422d
[ "Apache-2.0" ]
16
2020-08-28T15:26:56.000Z
2022-03-21T13:29:26.000Z
retail/recommendation-system/bqml-scann/tfx_pipeline/bq_components.py
fenzhantw/BQ_AUTOML
6f3a592a74320fab6fe85ab4f956294d5a5a422d
[ "Apache-2.0" ]
62
2020-08-28T14:18:37.000Z
2022-03-29T06:27:27.000Z
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
33.691667
95
0.7628
68f08c497a25c6e756e2231608239309a330ac46
1,638
py
Python
top500.py
markusnissl/recsyschallenge2018
376e98e7e9a9bcdc0d1ff78c37d10649c66afdbf
[ "Apache-2.0" ]
null
null
null
top500.py
markusnissl/recsyschallenge2018
376e98e7e9a9bcdc0d1ff78c37d10649c66afdbf
[ "Apache-2.0" ]
null
null
null
top500.py
markusnissl/recsyschallenge2018
376e98e7e9a9bcdc0d1ff78c37d10649c66afdbf
[ "Apache-2.0" ]
null
null
null
from pyspark.sql.functions import explode, col, lit, rand, asc, regexp_replace, lower, array, udf, collect_set, rank, collect_list from pyspark.sql.window import Window hdfs_mpdDir = "hdfs:///recsys_spotify_2018/mpd.v1/mpd.slice.*.json" hdfs_challengeDir = "hdfs:///recsys_spotify_2018/challenge.v1/*.json" hdfs_userDir...
54.6
151
0.757631
ec212be2931d631284b6f071d451b6732599d707
5,288
py
Python
stem_testing/examples/event_listening.py
joshuatee/Posh-Stem
bc7f1d4e010e8a7f1e1e4dd70518ec6b1d210fa0
[ "Unlicense" ]
1
2019-04-02T00:15:59.000Z
2019-04-02T00:15:59.000Z
stem_testing/examples/event_listening.py
joshuatee/Posh-Stem
bc7f1d4e010e8a7f1e1e4dd70518ec6b1d210fa0
[ "Unlicense" ]
null
null
null
stem_testing/examples/event_listening.py
joshuatee/Posh-Stem
bc7f1d4e010e8a7f1e1e4dd70518ec6b1d210fa0
[ "Unlicense" ]
null
null
null
import curses import functools from stem.control import EventType, Controller from stem.util import str_tools # colors that curses can handle COLOR_LIST = { "red": curses.COLOR_RED, "green": curses.COLOR_GREEN, "yellow": curses.COLOR_YELLOW, "blue": curses.COLOR_BLUE, "cyan": curses.COLOR_CYAN, "magenta"...
29.875706
101
0.69913