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
d1336cddfc11f07bb376a16c895606a07bc11852
707
py
Python
auto_test/single_seg/no_src_GANloss/train_usa_disc_20.py
XYHC-MMDA/Multi-modal-Multi-task-DA
ed8297eb489d50c580795713cccb72bc958f406f
[ "Apache-2.0" ]
1
2020-11-05T19:51:23.000Z
2020-11-05T19:51:23.000Z
auto_test/single_seg/no_src_GANloss/train_usa_disc_20.py
XYHC-MMDA/Multi-modal-Multi-task-DA
ed8297eb489d50c580795713cccb72bc958f406f
[ "Apache-2.0" ]
null
null
null
auto_test/single_seg/no_src_GANloss/train_usa_disc_20.py
XYHC-MMDA/Multi-modal-Multi-task-DA
ed8297eb489d50c580795713cccb72bc958f406f
[ "Apache-2.0" ]
null
null
null
from subprocess import Popen import argparse import os import time # variants cfg = 'train_usa_disc_20' ckpt = 'train_usa_disc_20' l, r = 17, 24 # [l, r] filename = f'checkpoints/single_seg/no_src_GANloss/{ckpt}/result.txt' f = open(filename, 'a') for i in range(l, r+1): start = time.time() proc = Popen([...
27.192308
81
0.619519
e0a25ccfdfb2aa8a68ae3a00609505a4d56fbebc
7,875
py
Python
timingCalculations/SET/splitTimingDistributions.py
annafriebe/timing
685d05417bcd6bb1b640e30b37e52b33c7da66d8
[ "MIT" ]
null
null
null
timingCalculations/SET/splitTimingDistributions.py
annafriebe/timing
685d05417bcd6bb1b640e30b37e52b33c7da66d8
[ "MIT" ]
null
null
null
timingCalculations/SET/splitTimingDistributions.py
annafriebe/timing
685d05417bcd6bb1b640e30b37e52b33c7da66d8
[ "MIT" ]
null
null
null
#!/usr/bin/env python import math import numpy as np import switchDataForCPU import drawTimingDistributions import GaussianPFAcalc #import StateTransitionPFAcalc import minSqErrPeriodEstimate import cluster def getTimesInInterval(times, low, hi): timesInInterval = [] for time in times: if time > low an...
37.5
128
0.738032
9ef7b8b3003154c49e76b5ca4b1c7f4c50285aaf
604
py
Python
setup.py
sushi-chaaaan/pya3rt
d38cb21df8e476c1268ba039c973a0a2be93df36
[ "MIT" ]
null
null
null
setup.py
sushi-chaaaan/pya3rt
d38cb21df8e476c1268ba039c973a0a2be93df36
[ "MIT" ]
null
null
null
setup.py
sushi-chaaaan/pya3rt
d38cb21df8e476c1268ba039c973a0a2be93df36
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages import re, os on_rtd = os.getenv('READTHEDOCS') == 'True' requirements = [] with open('requirements.txt') as f: requirements = f.read().splitlines() readme = '' with open('README.md', encoding='utf-8_sig') as f: readme = f.read() setup(name='pya3rt', author=...
24.16
50
0.663907
e4b1d16304f0b0f38e089d61c5276d8346f62aa5
10,789
py
Python
venv/Lib/site-packages/PySide2/examples/widgets/tutorials/addressbook/part4.py
Farhan-Malik/advance-hand-gesture
0ebe21ddd7c8c2eb14746678be57b33d38c47205
[ "MIT" ]
41
2021-06-19T13:57:18.000Z
2021-12-02T17:08:53.000Z
venv/Lib/site-packages/PySide2/examples/widgets/tutorials/addressbook/part4.py
Farhan-Malik/advance-hand-gesture
0ebe21ddd7c8c2eb14746678be57b33d38c47205
[ "MIT" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
venvWIN/Lib/site-packages/PySide2/examples/widgets/tutorials/addressbook/part4.py
NeroNekro/PortableController
a8bbfc1b6c8cb2c919e48eb0104e42f436059b18
[ "BSD-3-Clause" ]
4
2021-07-02T03:09:51.000Z
2021-11-25T13:00:10.000Z
############################################################################# ## ## Copyright (C) 2013 Riverbank Computing Limited. ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## ## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## ...
35.963333
90
0.621652
acdcfae2d32e6d0754f50379cd136f4d52e3ed86
3,676
py
Python
python-dsl/buck_parser/struct_test.py
Unknoob/buck
2dfc734354b326f2f66896dde7746a11965d5a13
[ "Apache-2.0" ]
8,027
2015-01-02T05:31:44.000Z
2022-03-31T07:08:09.000Z
python-dsl/buck_parser/struct_test.py
Unknoob/buck
2dfc734354b326f2f66896dde7746a11965d5a13
[ "Apache-2.0" ]
2,355
2015-01-01T15:30:53.000Z
2022-03-30T20:21:16.000Z
python-dsl/buck_parser/struct_test.py
Unknoob/buck
2dfc734354b326f2f66896dde7746a11965d5a13
[ "Apache-2.0" ]
1,280
2015-01-09T03:29:04.000Z
2022-03-30T15:14:14.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # 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 ...
35.346154
94
0.640914
51028b07507f3ab84ea80f8b08fcf0711cc75d29
5,846
py
Python
timepiece/entries/migrations/0001_initial.py
sha-red/django-timepiece
52515dec027664890efbc535429e1ba1ee152f40
[ "MIT" ]
244
2015-01-08T11:06:52.000Z
2022-03-24T14:59:26.000Z
timepiece/entries/migrations/0001_initial.py
skampala1/django-timepiece
52515dec027664890efbc535429e1ba1ee152f40
[ "MIT" ]
80
2015-01-23T13:45:02.000Z
2021-11-25T09:17:05.000Z
timepiece/entries/migrations/0001_initial.py
anfema/django-timepiece
c4594ae053bdb14c1dd7f17f32c6ef1bf0f3b453
[ "MIT" ]
109
2015-01-24T06:52:56.000Z
2022-03-29T09:35:06.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from decimal import Decimal import django.db.models.deletion from django.conf import settings import django.core.validators class Migration(migrations.Migration): dependencies = [ migrations.swappabl...
47.918033
359
0.578344
b6d8abbf7e11beae26df212485ebcfef8602940b
4,674
py
Python
src/image_classification/fruit_detection/network_structure/fruit_network.py
sameeranees/AI_Project
780cfd59acf6db9625f21c288e4628e6988de25b
[ "MIT" ]
null
null
null
src/image_classification/fruit_detection/network_structure/fruit_network.py
sameeranees/AI_Project
780cfd59acf6db9625f21c288e4628e6988de25b
[ "MIT" ]
null
null
null
src/image_classification/fruit_detection/network_structure/fruit_network.py
sameeranees/AI_Project
780cfd59acf6db9625f21c288e4628e6988de25b
[ "MIT" ]
null
null
null
import tensorflow as tf import math from network_structure import utils batch_size = 3 input_size = utils.HEIGHT * utils.WIDTH * utils.NETWORK_DEPTH # number of max pool operations used in the network structure; # used when calculating the input size for the first fully connected layer # MUST BE UPDATED if the number ...
51.933333
145
0.698973
e51e40e7a2c5468f60fc584574089b499669c794
25,719
py
Python
bot/cogs/music.py
Jaga-droid/XerneasBot
e8a7c952893fc41df27ae1836bed5c6289b8c297
[ "BSD-3-Clause" ]
null
null
null
bot/cogs/music.py
Jaga-droid/XerneasBot
e8a7c952893fc41df27ae1836bed5c6289b8c297
[ "BSD-3-Clause" ]
null
null
null
bot/cogs/music.py
Jaga-droid/XerneasBot
e8a7c952893fc41df27ae1836bed5c6289b8c297
[ "BSD-3-Clause" ]
null
null
null
import asyncio import datetime as dt import enum import random import re import typing as t from enum import Enum import math import aiohttp import discord import wavelink from discord.ext import commands URL_REGEX = r"(?i)\b((?:https?://|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<...
34.155378
275
0.597652
4c231f3ccdfc6f5a037e173b5342f76674ac8ce8
974
py
Python
tensorflow/contrib/learn/python/__init__.py
ln0119/tensorflow-fast-rcnn
e937e6394818c9a320754237651d7fe083b1020d
[ "Apache-2.0" ]
2
2016-10-28T17:19:37.000Z
2021-05-28T14:47:27.000Z
tensorflow/contrib/learn/python/__init__.py
minhhoai2/tensorflow
da88903d5e29230d68d861053aa1dea1432c0696
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/learn/python/__init__.py
minhhoai2/tensorflow
da88903d5e29230d68d861053aa1dea1432c0696
[ "Apache-2.0" ]
null
null
null
# pylint: disable=g-bad-file-header # Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENS...
38.96
80
0.715606
194a6e554b91bb012de01294921116bb9f2c692c
1,707
py
Python
write.py
jnonino-learning/learning-protocol-buffer
4d6d46555f3bf6bfb4d2e7bea4aea7f984f7d4e7
[ "MIT" ]
null
null
null
write.py
jnonino-learning/learning-protocol-buffer
4d6d46555f3bf6bfb4d2e7bea4aea7f984f7d4e7
[ "MIT" ]
null
null
null
write.py
jnonino-learning/learning-protocol-buffer
4d6d46555f3bf6bfb4d2e7bea4aea7f984f7d4e7
[ "MIT" ]
null
null
null
#! /usr/bin/python import addressbook_pb2 import sys # This function fills in a Person message based on user input. def prompt_for_address(person): person.id = int(input("Enter person ID number: ")) person.name = input("Enter name: ") email = input("Enter email address (blank for none): ") if email ...
29.431034
76
0.649092
a8b484b821adf3cb1de10960be62fed7739243d0
34,027
py
Python
models/official/mnasnet/mnasnet_main.py
HudsonHuang/tpu
e3064113603e2b15b035022d9ea66405181f9730
[ "Apache-2.0" ]
null
null
null
models/official/mnasnet/mnasnet_main.py
HudsonHuang/tpu
e3064113603e2b15b035022d9ea66405181f9730
[ "Apache-2.0" ]
null
null
null
models/official/mnasnet/mnasnet_main.py
HudsonHuang/tpu
e3064113603e2b15b035022d9ea66405181f9730
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
38.018994
110
0.692039
3c759d84b9d145182b97c440068b3c30dbccdf9c
3,140
py
Python
sharpy/plans/tactics/protoss/dt_attack.py
eladyaniv01/sharpy-sc2
91119cc3e3fce683c2dbe9687c616c9cc0461b06
[ "MIT" ]
null
null
null
sharpy/plans/tactics/protoss/dt_attack.py
eladyaniv01/sharpy-sc2
91119cc3e3fce683c2dbe9687c616c9cc0461b06
[ "MIT" ]
null
null
null
sharpy/plans/tactics/protoss/dt_attack.py
eladyaniv01/sharpy-sc2
91119cc3e3fce683c2dbe9687c616c9cc0461b06
[ "MIT" ]
null
null
null
from typing import List, Dict, Optional from sharpy.knowledges import Knowledge from sharpy.plans.acts import ActBase from sharpy.managers import CooldownManager, GroupCombatManager from sc2 import UnitTypeId, AbilityId from sc2.position import Point2 from sc2.unit import Unit from sc2.units import Units from sharpy....
38.292683
86
0.664968
5ddd9cafea29f563ba11080d6027637d1f164812
16,619
py
Python
aisutils/uscg.py
schwehr/noaadata
a7183db4cbd5d7ffd782f36ca991d44e3f340dcd
[ "Apache-2.0" ]
35
2015-02-15T17:23:00.000Z
2022-01-27T01:49:43.000Z
aisutils/uscg.py
schwehr/noaadata
a7183db4cbd5d7ffd782f36ca991d44e3f340dcd
[ "Apache-2.0" ]
2
2017-10-04T17:24:38.000Z
2017-10-04T18:22:00.000Z
aisutils/uscg.py
schwehr/noaadata
a7183db4cbd5d7ffd782f36ca991d44e3f340dcd
[ "Apache-2.0" ]
22
2015-02-08T13:29:58.000Z
2022-03-09T03:03:16.000Z
#!/usr/bin/env python """Connect to a socket and forward what is received to another port. Filter to a list of AIS receivers/basestations. TODO: For speed, provide functions that only parse the timestamp, station, etc. """ import doctest import datetime import re import sys import time import unittest from BitVecto...
40.933498
132
0.6155
4b53501bb58bbe5426663623a0315ac3719cff9c
217
py
Python
myerp/custom/doctype/custom_field/test_custom_field.py
smthakor1979/MyERP
b05c44ae0054072f2a410381069215d287e7f0ba
[ "MIT" ]
null
null
null
myerp/custom/doctype/custom_field/test_custom_field.py
smthakor1979/MyERP
b05c44ae0054072f2a410381069215d287e7f0ba
[ "MIT" ]
null
null
null
myerp/custom/doctype/custom_field/test_custom_field.py
smthakor1979/MyERP
b05c44ae0054072f2a410381069215d287e7f0ba
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2020, suresh thakor and Contributors # See license.txt from __future__ import unicode_literals # import frappe import unittest class TestCustomField(unittest.TestCase): pass
19.727273
52
0.764977
4069b48e924b8e0125fbb82b2f1cc414e952f9fc
7,976
py
Python
SimPEG/PF/GravityDriver.py
kimjaed/simpeg
b8d716f86a4ea07ba3085fabb24c2bc974788040
[ "MIT" ]
1
2020-03-17T11:24:15.000Z
2020-03-17T11:24:15.000Z
SimPEG/PF/GravityDriver.py
kimjaed/simpeg
b8d716f86a4ea07ba3085fabb24c2bc974788040
[ "MIT" ]
null
null
null
SimPEG/PF/GravityDriver.py
kimjaed/simpeg
b8d716f86a4ea07ba3085fabb24c2bc974788040
[ "MIT" ]
1
2020-05-26T17:00:53.000Z
2020-05-26T17:00:53.000Z
import re import os from SimPEG import Mesh, Utils import numpy as np from . import BaseGrav, Gravity class GravityDriver_Inv(object): """docstring for GravityDriver_Inv""" def __init__(self, input_file=None): if input_file is not None: self.basePath = os.path.sep.join( in...
29.109489
78
0.525702
e50109ffb822df304e7f5f860598eb478a96cf15
2,056
py
Python
gcc_subnets/subnets.py
sbarbett/gcc_subnets
99e905ca68d33da6487f75f7522b7ccaf95cf626
[ "MIT" ]
null
null
null
gcc_subnets/subnets.py
sbarbett/gcc_subnets
99e905ca68d33da6487f75f7522b7ccaf95cf626
[ "MIT" ]
null
null
null
gcc_subnets/subnets.py
sbarbett/gcc_subnets
99e905ca68d33da6487f75f7522b7ccaf95cf626
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2016 Shane Barbetta # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, me...
34.266667
80
0.741732
9147a63ae836f5f6ef983c52bab2a6896bad4c80
1,292
py
Python
nicos_mlz/frm2/setups/htf03.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
nicos_mlz/frm2/setups/htf03.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
1
2021-08-18T10:55:42.000Z
2021-08-18T10:55:42.000Z
nicos_mlz/frm2/setups/htf03.py
ISISComputingGroup/nicos
94cb4d172815919481f8c6ee686f21ebb76f2068
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
description = 'FRM II high temperature furnace' group = 'plugplay' includes = ['alias_T'] tango_base = 'tango://%s:10000/box/' % setupname devices = { 'T_%s' % setupname : device('nicos.devices.tango.TemperatureController', description = 'The sample temperature', tangodevice = tango_base +'eurot...
28.711111
76
0.588235
93317e3bf78ac2dfc5377f61455d3766cba6d874
1,021
py
Python
var/spack/repos/builtin/packages/perl-term-readkey/package.py
williamfgc/spack
c8c795e7dbde22dc47c9ae285a4dd59004b115b1
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/perl-term-readkey/package.py
williamfgc/spack
c8c795e7dbde22dc47c9ae285a4dd59004b115b1
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/perl-term-readkey/package.py
williamfgc/spack
c8c795e7dbde22dc47c9ae285a4dd59004b115b1
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PerlTermReadkey(PerlPackage): """Term::ReadKey is a compiled perl module dedicated to prov...
44.391304
94
0.752204
c84efce5e777374d9216a9a9420e690f23665736
2,287
py
Python
topi/python/topi/testing/conv2d_hwcn_python.py
kpot/tvm
94fd06ff53bb216b68674c01aba45e12952e51d3
[ "Apache-2.0" ]
64
2021-05-02T14:42:34.000Z
2021-05-06T01:35:03.000Z
topi/python/topi/testing/conv2d_hwcn_python.py
clhne/tvm
d59320c764bd09474775e1b292f3c05c27743d24
[ "Apache-2.0" ]
23
2019-07-29T05:21:52.000Z
2020-08-31T18:51:42.000Z
topi/python/topi/testing/conv2d_hwcn_python.py
clhne/tvm
d59320c764bd09474775e1b292f3c05c27743d24
[ "Apache-2.0" ]
51
2019-07-12T05:10:25.000Z
2021-07-28T16:19:06.000Z
# pylint: disable=invalid-name, line-too-long, unused-variable, too-many-locals """Convolution in python""" import numpy as np import scipy.signal def conv2d_hwcn_python(a_np, w_np, stride, padding): """Convolution operator in HWCN layout. Parameters ---------- a_np : numpy.ndarray 4-D with s...
33.632353
79
0.587669
168384e07f8778f57bcceba1c7eaec77ac442ac0
1,257
py
Python
transformer_class.py
AgPipeline/transformer-betydb-csvupload
e84dde7c4d6e4d27d630eb62d31bbf098f2d261c
[ "BSD-3-Clause" ]
null
null
null
transformer_class.py
AgPipeline/transformer-betydb-csvupload
e84dde7c4d6e4d27d630eb62d31bbf098f2d261c
[ "BSD-3-Clause" ]
null
null
null
transformer_class.py
AgPipeline/transformer-betydb-csvupload
e84dde7c4d6e4d27d630eb62d31bbf098f2d261c
[ "BSD-3-Clause" ]
1
2020-05-08T18:50:46.000Z
2020-05-08T18:50:46.000Z
"""Class instance for BETYdb CSV file upload transformer """ import argparse class Transformer(): """Generic class for supporting transformers """ def __init__(self, **kwargs): """Performs initialization of class instance Arguments: kwargs: additional parameters passed into Tr...
33.078947
87
0.615752
57702f4db559122d2d6079bd9e45492727aba5ef
1,672
py
Python
Metrics/Center Glyphs.py
schriftgestalt/Mekka-Scripts
d745ae8ffc1cf9f7f13907ad749566dc05306307
[ "Apache-2.0" ]
null
null
null
Metrics/Center Glyphs.py
schriftgestalt/Mekka-Scripts
d745ae8ffc1cf9f7f13907ad749566dc05306307
[ "Apache-2.0" ]
null
null
null
Metrics/Center Glyphs.py
schriftgestalt/Mekka-Scripts
d745ae8ffc1cf9f7f13907ad749566dc05306307
[ "Apache-2.0" ]
null
null
null
#MenuTitle: Center Glyphs # -*- coding: utf-8 -*- __doc__=""" Center all selected glyphs inside their respective widths. """ import math Font = Glyphs.font selectedLayers = Font.selectedLayers def transform(shiftX=0.0, shiftY=0.0, rotate=0.0, skew=0.0, scale=1.0): """ Returns an NSAffineTransform object for transfo...
31.54717
79
0.76555
bfe2cfe832519eacedf016c854fe8b94fe5a14b0
360
py
Python
vaip/errors.py
dacav/vaip
5d0805fa72f27a6510ab4eef5cbc6fd419831e9a
[ "MIT" ]
null
null
null
vaip/errors.py
dacav/vaip
5d0805fa72f27a6510ab4eef5cbc6fd419831e9a
[ "MIT" ]
null
null
null
vaip/errors.py
dacav/vaip
5d0805fa72f27a6510ab4eef5cbc6fd419831e9a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- class Error(Exception): pass class SpecificationError(Error): pass class UnboundTypeError(SpecificationError): pass class RedefinedType(SpecificationError): pass class NonEntry(Error): pass class InputError(Error): def __init__(self, msg, trace): super()._...
21.176471
48
0.719444
2a67a36041b84364b83a357d2ba26e3e748bd526
13,572
py
Python
docs/conf.py
govind-menon110/tespy
69f00d6e8fa3d9ecc329e71ac9c53f1276fd06ae
[ "MIT" ]
null
null
null
docs/conf.py
govind-menon110/tespy
69f00d6e8fa3d9ecc329e71ac9c53f1276fd06ae
[ "MIT" ]
null
null
null
docs/conf.py
govind-menon110/tespy
69f00d6e8fa3d9ecc329e71ac9c53f1276fd06ae
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # oemof documentation build configuration file, created by # sphinx-quickstart on Thu Dec 18 16:57:35 2014. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All...
29.698031
80
0.680887
5c48e0b69ae62b278d04697f239bd9ee01e3216d
229,348
py
Python
Lib/_pydecimal.py
JustAMan/gilectomy
4315ec3f1d6d4f813cc82ce27a24e7f784dbfc1a
[ "PSF-2.0" ]
486
2016-05-28T18:51:54.000Z
2022-03-20T17:30:31.000Z
Lib/_pydecimal.py
JustAMan/gilectomy
4315ec3f1d6d4f813cc82ce27a24e7f784dbfc1a
[ "PSF-2.0" ]
40
2016-05-29T00:24:56.000Z
2020-07-13T11:56:58.000Z
Lib/_pydecimal.py
JustAMan/gilectomy
4315ec3f1d6d4f813cc82ce27a24e7f784dbfc1a
[ "PSF-2.0" ]
46
2016-05-28T18:52:03.000Z
2021-06-01T07:57:51.000Z
# Copyright (c) 2004 Python Software Foundation. # All rights reserved. # Written by Eric Price <eprice at tjhsst.edu> # and Facundo Batista <facundo at taniquetil.com.ar> # and Raymond Hettinger <python at rcn.com> # and Aahz <aahz at pobox.com> # and Tim Peters # This module should be kept in sync with ...
35.662883
100
0.566916
1f89d62b3c839cf11f3afa4ddad5a813fd5603a1
10,856
py
Python
rapp_speech_detection_sphinx4/src/rapp_speech_detection_sphinx4/benchmarks/service_tester.py
DEVX1/NAOrapp-Pythonlib
d07d7fe304556cad24e7e138df4e41376eacb6a7
[ "Apache-2.0" ]
null
null
null
rapp_speech_detection_sphinx4/src/rapp_speech_detection_sphinx4/benchmarks/service_tester.py
DEVX1/NAOrapp-Pythonlib
d07d7fe304556cad24e7e138df4e41376eacb6a7
[ "Apache-2.0" ]
null
null
null
rapp_speech_detection_sphinx4/src/rapp_speech_detection_sphinx4/benchmarks/service_tester.py
DEVX1/NAOrapp-Pythonlib
d07d7fe304556cad24e7e138df4e41376eacb6a7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- #Copyright 2015 RAPP #Licensed under the Apache License, Version 2.0 (the "License"); #you may not use this file except in compliance with the License. #You may obtain a copy of the License at #http://www.apache.org/licenses/LICENSE-2.0 #Unless required by applicabl...
34.246057
111
0.663688
fdbb5a996dad4d64e2677ed3696150b29996ca40
459
py
Python
data/scripts/templates/object/tangible/wearables/earring/shared_earring_s03.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/tangible/wearables/earring/shared_earring_s03.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/tangible/wearables/earring/shared_earring_s03.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/wearables/earring/shared_earring_s03.iff" result.attribute_template...
27
77
0.734205
c5168b99368d7ae3fa6d305ab358592b18a61476
56,011
py
Python
nova/api/openstack/compute/servers.py
pyrrrat/moved-nova
f5e4055b125fd3ccdaf69307a0daeb8343434fa1
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/servers.py
pyrrrat/moved-nova
f5e4055b125fd3ccdaf69307a0daeb8343434fa1
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/servers.py
pyrrrat/moved-nova
f5e4055b125fd3ccdaf69307a0daeb8343434fa1
[ "Apache-2.0" ]
null
null
null
# Copyright 2010 OpenStack Foundation # Copyright 2011 Piston Cloud Computing, 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.apach...
44.772982
79
0.614254
c634984a70b60def05c1cc84d18e7e9944413f5c
14,607
py
Python
python/pyarrow/filesystem.py
bmschmidt/arrow
119d83fe051cf97df6f450efffba138e44a87651
[ "Apache-2.0" ]
null
null
null
python/pyarrow/filesystem.py
bmschmidt/arrow
119d83fe051cf97df6f450efffba138e44a87651
[ "Apache-2.0" ]
null
null
null
python/pyarrow/filesystem.py
bmschmidt/arrow
119d83fe051cf97df6f450efffba138e44a87651
[ "Apache-2.0" ]
1
2021-06-29T00:47:03.000Z
2021-06-29T00:47:03.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
28.253385
79
0.585062
09ca0bde70357ea3854d038594be3173a04681c4
9,599
py
Python
src/main.py
au-re/steiner-tree
f48c2625206d51da5170821499a77e40f512936c
[ "MIT" ]
null
null
null
src/main.py
au-re/steiner-tree
f48c2625206d51da5170821499a77e40f512936c
[ "MIT" ]
null
null
null
src/main.py
au-re/steiner-tree
f48c2625206d51da5170821499a77e40f512936c
[ "MIT" ]
null
null
null
from solver import * import numpy import crossover import mutation from datetime import datetime import time from tabulate import tabulate ''' Different things to try out: Increase number of offsprings of each generation (mu) or tournamen Size Increase population Size Increase Number of Generations Increase populatio...
52.168478
268
0.667882
3bcea599e76854a133454557b61a543750d0a766
3,592
py
Python
features/feature_ebert_classifier.py
Woffee/deformer
8f5330f3e85599a9c57965a16c3e737f9146fcc7
[ "MIT" ]
114
2020-05-05T21:33:35.000Z
2022-03-24T10:30:20.000Z
features/feature_ebert_classifier.py
Woffee/deformer
8f5330f3e85599a9c57965a16c3e737f9146fcc7
[ "MIT" ]
10
2020-05-19T03:33:26.000Z
2020-12-15T01:56:20.000Z
features/feature_ebert_classifier.py
Woffee/deformer
8f5330f3e85599a9c57965a16c3e737f9146fcc7
[ "MIT" ]
15
2020-05-29T09:34:30.000Z
2022-01-21T01:21:50.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from .feature import DataBuilder from .feature_bert_classifier import BertClassifierDataBuilder class EbertClassifierDataBuilder(BertClassifierDataBuilder): TASK_FEATURES = ('feature_id', 'seq1_ids', 'seq2_ids') def __init__(self, config): super().__init...
39.043478
80
0.619432
b5f44f29af72c2682fc3c817bf9810ce1660080b
1,470
py
Python
py/test/rf/tools/csv_writer.py
arccode/factory
a1b0fccd68987d8cd9c89710adc3c04b868347ec
[ "BSD-3-Clause" ]
3
2022-01-06T16:52:52.000Z
2022-03-07T11:30:47.000Z
py/test/rf/tools/csv_writer.py
arccode/factory
a1b0fccd68987d8cd9c89710adc3c04b868347ec
[ "BSD-3-Clause" ]
null
null
null
py/test/rf/tools/csv_writer.py
arccode/factory
a1b0fccd68987d8cd9c89710adc3c04b868347ec
[ "BSD-3-Clause" ]
1
2021-10-24T01:47:22.000Z
2021-10-24T01:47:22.000Z
# Copyright 2013 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """This module provides help functions to write CSV (Comma Separated Values) files. """ import csv import logging import pprint def WriteCsv(target, li...
30
77
0.72381
8a0fd6fd9347972a87848bb40eee8044887e5394
1,518
py
Python
Down-The-Rabbit-Hole/science_cookie_cutter_starter/src/data/03_country-subset.py
TheCulliganMan/PyCon
6387902d5ea731d26a8abb6fa599919f3f541dec
[ "BSD-2-Clause" ]
null
null
null
Down-The-Rabbit-Hole/science_cookie_cutter_starter/src/data/03_country-subset.py
TheCulliganMan/PyCon
6387902d5ea731d26a8abb6fa599919f3f541dec
[ "BSD-2-Clause" ]
null
null
null
Down-The-Rabbit-Hole/science_cookie_cutter_starter/src/data/03_country-subset.py
TheCulliganMan/PyCon
6387902d5ea731d26a8abb6fa599919f3f541dec
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """ Module containing the functions to subset the data according to a given country name """ import datetime import sys import matplotlib.pyplot as plt import numpy as np import pandas as pd def get_country_df(filename, country): # Load table wine = pd.read_csv(filename) # Use the...
22.323529
63
0.669302
235bb632b2d9be54055301402ab7ab50158aef1d
17,244
py
Python
docusign_esign/models/authentication_status.py
hunk/docusign-python-client
a643c42c1236715e74eef6fc279a1b29da1b5455
[ "MIT" ]
null
null
null
docusign_esign/models/authentication_status.py
hunk/docusign-python-client
a643c42c1236715e74eef6fc279a1b29da1b5455
[ "MIT" ]
null
null
null
docusign_esign/models/authentication_status.py
hunk/docusign-python-client
a643c42c1236715e74eef6fc279a1b29da1b5455
[ "MIT" ]
null
null
null
# coding: utf-8 """ DocuSign REST API The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. OpenAPI spec version: v2.1 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from p...
31.640367
472
0.6553
18be81515ad6902f84ef917f522d42da4ae3bc7d
777
py
Python
mini_projects/FindWheel/app.py
ak4shp/learning-python
46da9b7d517ac4a4b201b01ef8f8e0542c103989
[ "MIT" ]
null
null
null
mini_projects/FindWheel/app.py
ak4shp/learning-python
46da9b7d517ac4a4b201b01ef8f8e0542c103989
[ "MIT" ]
1
2022-01-29T17:56:23.000Z
2022-01-29T17:56:23.000Z
mini_projects/FindWheel/app.py
ak4shp/learning-python
46da9b7d517ac4a4b201b01ef8f8e0542c103989
[ "MIT" ]
1
2022-01-29T17:49:06.000Z
2022-01-29T17:49:06.000Z
from source_data import hero_hf, swift, volvo, welcome_message try: while True: print(welcome_message) to_use = int(input("""Please have a look and choose : 1 -> Bike 2 -> Car 3 -> Commercial Vehicle 0 -> exit \nI want > """)) if to_use == 1: pri...
31.08
85
0.545689
c1a059518dfbd432af6d7765d9305959b12632df
14,381
py
Python
M2Crypto/RSA.py
quarkness/m2crypto
f8f3969ed6467e5dd9f7c6d4e33dee49f4a00d9f
[ "MIT" ]
null
null
null
M2Crypto/RSA.py
quarkness/m2crypto
f8f3969ed6467e5dd9f7c6d4e33dee49f4a00d9f
[ "MIT" ]
null
null
null
M2Crypto/RSA.py
quarkness/m2crypto
f8f3969ed6467e5dd9f7c6d4e33dee49f4a00d9f
[ "MIT" ]
null
null
null
from __future__ import absolute_import """M2Crypto wrapper for OpenSSL RSA API. Copyright (c) 1999-2004 Ng Pheng Siong. All rights reserved.""" import sys from M2Crypto import BIO, Err, m2, util if util.py27plus: from typing import Any, AnyStr, Callable, Dict, List, IO, Optional, Tuple # noqa class RSAError(...
30.993534
92
0.591127
d9a89cfc60d50804480ffb222619a9028c04e209
2,078
tac
Python
Data/TACs/pabloModel/0noise/fullTAC1.6sigma.tac
ExampleOne/Fields-Project-11
427d7fd0314106d1ffcee99a4d5e2f5515cb6f66
[ "MIT" ]
5
2018-08-07T15:40:38.000Z
2018-08-21T15:01:18.000Z
Data/TACs/pabloModel/0noise/fullTAC1.6sigma.tac
ExampleOne/Fields-Project-11
427d7fd0314106d1ffcee99a4d5e2f5515cb6f66
[ "MIT" ]
null
null
null
Data/TACs/pabloModel/0noise/fullTAC1.6sigma.tac
ExampleOne/Fields-Project-11
427d7fd0314106d1ffcee99a4d5e2f5515cb6f66
[ "MIT" ]
null
null
null
Start End Cerebellar Temporal Frontal Caudate Putamen Thalamus Anterior_cingulate Pons 0.00 76.00 0.27 0.28 0.28 0.27 0.28 0.28 0.27 0.27 76.00 106.00 107.66 117.97 116.33 113.86 123.95 127.43 109.25 92.07 106.00 136.00 274.39 303.10 298.84 295.62 322.74 332.68 278.65 230.84 136.00 166.00 405.74 44...
69.266667
86
0.715592
148816cef2c1aeb3023b6bf98b1eee22def22402
3,170
py
Python
userbot/modules/logo.py
Yansaii/Bdrl-Ubot
60dbbcc8270061379e848c2bce09e756c6ae143a
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/logo.py
Yansaii/Bdrl-Ubot
60dbbcc8270061379e848c2bce09e756c6ae143a
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/logo.py
Yansaii/Bdrl-Ubot
60dbbcc8270061379e848c2bce09e756c6ae143a
[ "Naumen", "Condor-1.1", "MS-PL" ]
7
2022-02-03T11:06:48.000Z
2022-03-09T00:53:53.000Z
#@greyyvbss #@tofik_dn #@BukanBdrl import asyncio from telethon.errors.rpcerrorlist import YouBlockedUserError from telethon.tl.functions.contacts import UnblockRequest from userbot import CMD_HANDLER as cmd from userbot import CMD_HELP, owner from userbot.utils import edit_delete, edit_or_reply, bdrl_cmd @bdrl_cm...
34.835165
88
0.610726
3332a2e1022715efd9342ab754e99e933e8240e9
1,042
py
Python
applications/resume/migrations/0007_experience.py
AminHCE/__aminhce__
ffe53a7f08da207d2df9fdc9216d94e5c956f379
[ "BSD-3-Clause" ]
3
2021-02-17T05:43:08.000Z
2021-02-19T13:25:41.000Z
applications/resume/migrations/0007_experience.py
AminHCE/__aminhce__
ffe53a7f08da207d2df9fdc9216d94e5c956f379
[ "BSD-3-Clause" ]
null
null
null
applications/resume/migrations/0007_experience.py
AminHCE/__aminhce__
ffe53a7f08da207d2df9fdc9216d94e5c956f379
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.1.6 on 2021-02-12 21:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('resume', '0006_education'), ] operations = [ migrations.CreateModel( name='Experience', fields=[ ('i...
34.733333
114
0.554702
03d0138eb43e290496810e4bd2faa97d250189c8
1,268
py
Python
xlsxwriter/test/comparison/test_excel2003_style08.py
shareablee/XlsxWriter
3cfcbe18fbc4526158ffbb5e7bb5227f78e3f5f9
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/test/comparison/test_excel2003_style08.py
shareablee/XlsxWriter
3cfcbe18fbc4526158ffbb5e7bb5227f78e3f5f9
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/test/comparison/test_excel2003_style08.py
shareablee/XlsxWriter
3cfcbe18fbc4526158ffbb5e7bb5227f78e3f5f9
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2015, John McNamara, jmcnamara@cpan.org # from ..excel_comparsion_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
26.978723
79
0.570189
d1f368ed2c207f3996a8fcb0c16c266126da9060
3,037
py
Python
src/python/pants/engine/internals/scheduler_test_base.py
bastianwegge/pants
43f0b90d41622bee0ed22249dbaffb3ff4ad2eb2
[ "Apache-2.0" ]
null
null
null
src/python/pants/engine/internals/scheduler_test_base.py
bastianwegge/pants
43f0b90d41622bee0ed22249dbaffb3ff4ad2eb2
[ "Apache-2.0" ]
22
2022-01-27T09:59:50.000Z
2022-03-30T07:06:49.000Z
src/python/pants/engine/internals/scheduler_test_base.py
bastianwegge/pants
43f0b90d41622bee0ed22249dbaffb3ff4ad2eb2
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import os from pathlib import Path from pants.engine.internals.native_engine import PyExecutor from pants.engine.internals.scheduler import Scheduler, SchedulerSession from pants.engine.u...
37.9625
97
0.688508
d01fc8542adcbe1481d0da15d2b5ebe7287cd2bc
468
py
Python
content/migrations/0040_auto_20210303_1120.py
bikramtuladhar/covid-19-procurement-explorer-admin
9bba473c8b83c8651e3178b6fba01af74d8b27dc
[ "BSD-3-Clause" ]
null
null
null
content/migrations/0040_auto_20210303_1120.py
bikramtuladhar/covid-19-procurement-explorer-admin
9bba473c8b83c8651e3178b6fba01af74d8b27dc
[ "BSD-3-Clause" ]
null
null
null
content/migrations/0040_auto_20210303_1120.py
bikramtuladhar/covid-19-procurement-explorer-admin
9bba473c8b83c8651e3178b6fba01af74d8b27dc
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.1.2 on 2021-03-03 11:20 import content.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("content", "0039_merge_20210302_0515"), ] operations = [ migrations.AddField( model_name="dataimport", ...
23.4
99
0.634615
0856bc4b2bdcee550631c62940eb7f9482a65d0e
2,555
py
Python
examples/basic_operations/get_campaigns.py
infectious/google-ads-python
599541be2ab625c7aeb84b8622a8614a6c1703d9
[ "Apache-2.0" ]
null
null
null
examples/basic_operations/get_campaigns.py
infectious/google-ads-python
599541be2ab625c7aeb84b8622a8614a6c1703d9
[ "Apache-2.0" ]
null
null
null
examples/basic_operations/get_campaigns.py
infectious/google-ads-python
599541be2ab625c7aeb84b8622a8614a6c1703d9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
32.75641
77
0.665753
4afe7005e18cac8f8bc62adff806ec1ec9aea731
3,401
py
Python
products/migrations/0002_translations.py
techonerd/kobbyshop
e79f009f75f576fdc2e8ac037781f5817a2e255f
[ "MIT" ]
4
2021-11-25T15:45:31.000Z
2022-01-11T21:31:56.000Z
products/migrations/0002_translations.py
KwabenaYeboah/kobbyshop
850a04b24fafa8aa538fdbf039a0e8fafc3ebfc2
[ "MIT" ]
1
2021-12-30T08:18:28.000Z
2021-12-30T08:18:28.000Z
products/migrations/0002_translations.py
techonerd/kobbyshop
e79f009f75f576fdc2e8ac037781f5817a2e255f
[ "MIT" ]
2
2021-12-26T05:11:00.000Z
2021-12-30T08:18:13.000Z
# Generated by Django 3.1 on 2021-12-03 05:27 from django.db import migrations, models import django.db.models.deletion import parler.fields import parler.models class Migration(migrations.Migration): dependencies = [ ('products', '0001_initial'), ] operations = [ migrations.AlterModelO...
38.647727
190
0.560423
2a20918b700fc098ac53de9abf969c568e755a1e
1,507
py
Python
examples/widgets/plot_format_studyday.py
bahp/datablend
f0b69a012af6ea7cedc9210d46b3047d8e0bf504
[ "FTL", "RSA-MD", "CECILL-B" ]
null
null
null
examples/widgets/plot_format_studyday.py
bahp/datablend
f0b69a012af6ea7cedc9210d46b3047d8e0bf504
[ "FTL", "RSA-MD", "CECILL-B" ]
1
2021-05-26T13:09:08.000Z
2021-05-26T13:09:08.000Z
examples/widgets/plot_format_studyday.py
bahp/datablend
f0b69a012af6ea7cedc9210d46b3047d8e0bf504
[ "FTL", "RSA-MD", "CECILL-B" ]
null
null
null
""" DateFromStudyDayWidget =========================== """ # Import import pandas as pd # DataBlend library from datablend.core.blend.template import BlenderTemplate from datablend.core.widgets.format import RenameWidget from datablend.core.widgets.format import DateFromStudyDayWidget # ------------------------ # Co...
27.4
79
0.642336
715fd5d056366bf55c7228eec07b8c3cd6f12267
2,222
py
Python
test/test_swfinterp.py
rsanjuan87/picta-dl
642d89637d123525ebe6e1cb059cd7c180d00f10
[ "Unlicense" ]
5
2021-02-07T04:58:27.000Z
2021-05-07T02:42:23.000Z
test/test_swfinterp.py
rsanjuan87/picta-dl
642d89637d123525ebe6e1cb059cd7c180d00f10
[ "Unlicense" ]
2
2020-12-18T22:06:48.000Z
2020-12-19T14:05:10.000Z
test/test_swfinterp.py
rsanjuan87/picta-dl
642d89637d123525ebe6e1cb059cd7c180d00f10
[ "Unlicense" ]
3
2020-12-17T20:51:02.000Z
2020-12-19T13:26:43.000Z
#!/usr/bin/env python from __future__ import unicode_literals # Allow direct execution import os import sys import unittest sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import errno import io import json import re import subprocess from picta_dl.swfinterp import SWFInterpreter T...
27.432099
79
0.59856
477bbe1dff3af37d8eb2fe234d7118b134328511
771
py
Python
attention/experiments/vgg16_testing.py
fbickfordsmith/attention-msc
1e816ddc9a40446096f7c6b61648e23065c54d5b
[ "MIT" ]
1
2020-06-21T07:55:44.000Z
2020-06-21T07:55:44.000Z
attention/experiments/vgg16_testing.py
fbickfordsmith/attention
1e816ddc9a40446096f7c6b61648e23065c54d5b
[ "MIT" ]
null
null
null
attention/experiments/vgg16_testing.py
fbickfordsmith/attention
1e816ddc9a40446096f7c6b61648e23065c54d5b
[ "MIT" ]
null
null
null
""" Test a pretrained VGG16 on ImageNet. """ gpu = input('GPU: ') data_partition = input('Data partition in {train, val, val_white}: ') import os os.environ['CUDA_DEVICE_ORDER'] = 'PCI_BUS_ID' os.environ['CUDA_VISIBLE_DEVICES'] = gpu import numpy as np import pandas as pd import tensorflow as tf from ..utils.paths i...
30.84
70
0.774319
cb4fcb3a328d662f71ac5ca08f638f43a88b4c2d
23,518
py
Python
tests/models/test_prefix_graph.py
peschue/conda
dc25e8c8765c5dfd1f99d697617bc6148224e194
[ "BSD-3-Clause" ]
1
2018-12-21T22:11:55.000Z
2018-12-21T22:11:55.000Z
tests/models/test_prefix_graph.py
peschue/conda
dc25e8c8765c5dfd1f99d697617bc6148224e194
[ "BSD-3-Clause" ]
null
null
null
tests/models/test_prefix_graph.py
peschue/conda
dc25e8c8765c5dfd1f99d697617bc6148224e194
[ "BSD-3-Clause" ]
1
2019-11-13T04:22:14.000Z
2019-11-13T04:22:14.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals from pprint import pprint from conda._vendor.auxlib.decorators import memoize from conda.base.context import reset_context from conda.common.io import env_var from conda.exceptions import CyclicalDependencyError...
25.479957
144
0.528064
e5689a78c3d25856f5011ba6b87b892c69bb9c3b
2,132
py
Python
HPLC_UV_Extract.py
PhysicalChemist/Thermo-HPLC-UV-Vis
43a075475e399aa573d0175fad9295370999eafa
[ "Apache-2.0" ]
null
null
null
HPLC_UV_Extract.py
PhysicalChemist/Thermo-HPLC-UV-Vis
43a075475e399aa573d0175fad9295370999eafa
[ "Apache-2.0" ]
null
null
null
HPLC_UV_Extract.py
PhysicalChemist/Thermo-HPLC-UV-Vis
43a075475e399aa573d0175fad9295370999eafa
[ "Apache-2.0" ]
null
null
null
from win32com.client import Dispatch; from win32com.client import VARIANT as variant; from pythoncom import *; import sys; import matplotlib.pyplot as plt; import numpy as np; from win32com.client.gencache import EnsureDispatch; import time; import datetime; import os; from mpl_toolkits.mplot3d import Axes3...
32.8
139
0.705441
74d06aeaa4d3cdf0970d17c44dda66c9d788cdcf
194
py
Python
dataset_handler/urls.py
Nadin007/dataset_handler
992396217571eec10ee846d82961cbc50f50bc8d
[ "MIT" ]
null
null
null
dataset_handler/urls.py
Nadin007/dataset_handler
992396217571eec10ee846d82961cbc50f50bc8d
[ "MIT" ]
null
null
null
dataset_handler/urls.py
Nadin007/dataset_handler
992396217571eec10ee846d82961cbc50f50bc8d
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path from django.urls.conf import include urlpatterns = [ path('admin/', admin.site.urls), path('api/', include('api.urls')), ]
21.555556
38
0.706186
566f810aead15b2fa311b1a491951fa38f95a42c
18,493
py
Python
python/src/sentencepiece/__init__.py
patrick-wilken/sentencepiece
75a2fbb89610110183bfd96433915382f610cbaf
[ "Apache-2.0" ]
10
2021-05-31T07:18:08.000Z
2022-03-19T09:20:11.000Z
python/src/sentencepiece/__init__.py
patrick-wilken/sentencepiece
75a2fbb89610110183bfd96433915382f610cbaf
[ "Apache-2.0" ]
5
2018-11-26T16:42:10.000Z
2021-08-02T10:51:04.000Z
python/src/sentencepiece/__init__.py
patrick-wilken/sentencepiece
75a2fbb89610110183bfd96433915382f610cbaf
[ "Apache-2.0" ]
8
2020-09-03T10:46:11.000Z
2021-05-21T07:36:18.000Z
# This file was automatically generated by SWIG (http://www.swig.org). # Version 4.0.1 # # 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...
35.157795
118
0.691397
9f3cde01b05902491c86fab2bfcfbee303029657
36
py
Python
andes/formats/__init__.py
mhdella/andes
5b0d2e3e101a38fe0fd2d27343a0ce3f900be45e
[ "Apache-2.0" ]
1
2019-12-24T12:57:05.000Z
2019-12-24T12:57:05.000Z
andes/formats/__init__.py
mhdella/andes
5b0d2e3e101a38fe0fd2d27343a0ce3f900be45e
[ "Apache-2.0" ]
null
null
null
andes/formats/__init__.py
mhdella/andes
5b0d2e3e101a38fe0fd2d27343a0ce3f900be45e
[ "Apache-2.0" ]
null
null
null
all_formats = { 'txt': 'txt', }
9
17
0.472222
13a0ea25fb10c344f0665e9c87b321231cc6d959
4,068
py
Python
stickybeak/vendored/pip/_internal/vcs/bazaar.py
reloadware/stickybeak
8ac52a80849a3098fb6b2f47115970a734a73c14
[ "Apache-2.0" ]
null
null
null
stickybeak/vendored/pip/_internal/vcs/bazaar.py
reloadware/stickybeak
8ac52a80849a3098fb6b2f47115970a734a73c14
[ "Apache-2.0" ]
null
null
null
stickybeak/vendored/pip/_internal/vcs/bazaar.py
reloadware/stickybeak
8ac52a80849a3098fb6b2f47115970a734a73c14
[ "Apache-2.0" ]
1
2022-01-01T15:14:42.000Z
2022-01-01T15:14:42.000Z
# The following comment should be removed at some point in the future. # mypy: disallow-untyped-defs=False from __future__ import absolute_import import logging import os from stickybeak.vendored.pip._vendor.six.moves.urllib import parse as urllib_parse from stickybeak.vendored.pip._internal.utils.misc import displ...
33.9
89
0.631023
7ac4146da8a502ab8cb2e981d98c026057b84d90
1,265
py
Python
wizer/tools/migration_utils/migrate_traces.py
pa3kDaWae/workoutizer
15501d0060711bbd8308642bc89b45c1442d4d0f
[ "MIT" ]
null
null
null
wizer/tools/migration_utils/migrate_traces.py
pa3kDaWae/workoutizer
15501d0060711bbd8308642bc89b45c1442d4d0f
[ "MIT" ]
null
null
null
wizer/tools/migration_utils/migrate_traces.py
pa3kDaWae/workoutizer
15501d0060711bbd8308642bc89b45c1442d4d0f
[ "MIT" ]
null
null
null
import logging import json import datetime log = logging.getLogger(__name__) def migrate_traces(source_model, target_model): log.debug(f"migrating models: {source_model} -> {target_model}") source = source_model.objects.all() log.debug(f"got source query set: {source}") for trace in source: g...
33.289474
118
0.643478
8f9ed7bde38b39906c407fe9c2027250f0e26f1b
1,751
py
Python
tests/test_multiple_values_for_tag_attribute.py
milescsmith/gtfparse
6a05c7350ae3abebe3572b9ed4a3082dfcfb7af3
[ "Apache-2.0" ]
null
null
null
tests/test_multiple_values_for_tag_attribute.py
milescsmith/gtfparse
6a05c7350ae3abebe3572b9ed4a3082dfcfb7af3
[ "Apache-2.0" ]
null
null
null
tests/test_multiple_values_for_tag_attribute.py
milescsmith/gtfparse
6a05c7350ae3abebe3572b9ed4a3082dfcfb7af3
[ "Apache-2.0" ]
null
null
null
import unittest from io import StringIO from gtfparse import parse_gtf_and_expand_attributes class TestMultipleValuesforTagAttribute(unittest.TestCase): # failing example from https://github.com/openvax/gtfparse/issues/2 def setUp(self): self.gtf_text = ( "1\tprotein_coding\texon\t860260\...
36.479167
81
0.667619
a6e9702675f351890a6f7ab8bd9ed3229493d52d
140
py
Python
app/home/views/vbt_scripts/utils/db/config.py
Monxun/monxun-code
35ce6d4aaf3a8afa0b80dde1dae9a1e7603a1f84
[ "MIT" ]
null
null
null
app/home/views/vbt_scripts/utils/db/config.py
Monxun/monxun-code
35ce6d4aaf3a8afa0b80dde1dae9a1e7603a1f84
[ "MIT" ]
null
null
null
app/home/views/vbt_scripts/utils/db/config.py
Monxun/monxun-code
35ce6d4aaf3a8afa0b80dde1dae9a1e7603a1f84
[ "MIT" ]
null
null
null
APLHA_API_KEY = 'X3K9QLBRZJGW4VFN' DB_NAME = 'stockdata' DB_HOST = 'localhost' DB_USER = 'postgres' DB_PASS = 'Tesla5439' DB_PORT = '5432'
17.5
34
0.735714
c3164f9b5aa296c69e16f3cf028c537acb9907a4
4,985
py
Python
generate_tfrecord.py
eliasezar27/object_detection_demo
99fb0a3f367f0be625c03fd5834c085133a29d79
[ "MIT" ]
null
null
null
generate_tfrecord.py
eliasezar27/object_detection_demo
99fb0a3f367f0be625c03fd5834c085133a29d79
[ "MIT" ]
null
null
null
generate_tfrecord.py
eliasezar27/object_detection_demo
99fb0a3f367f0be625c03fd5834c085133a29d79
[ "MIT" ]
null
null
null
""" Usage: # Create train data: python generate_tfrecord.py --label=<LABEL> --csv_input=<PATH_TO_ANNOTATIONS_FOLDER>/train_labels.csv --output_path=<PATH_TO_ANNOTATIONS_FOLDER>/train.record <PATH_TO_ANNOTATIONS_FOLDER>/label_map.pbtxt # Create test data: python generate_tfrecord.py --label=<LABEL> --csv_input...
36.654412
215
0.654363
da283c1405eda51b49d905aeac170359846c3ff1
1,541
py
Python
benedict/utils/type_util.py
next-franciscoalgaba/python-benedict
81ff459304868327238c322a0a8a203d9d5d4314
[ "MIT" ]
null
null
null
benedict/utils/type_util.py
next-franciscoalgaba/python-benedict
81ff459304868327238c322a0a8a203d9d5d4314
[ "MIT" ]
null
null
null
benedict/utils/type_util.py
next-franciscoalgaba/python-benedict
81ff459304868327238c322a0a8a203d9d5d4314
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import datetime from decimal import Decimal from six import integer_types, string_types import re regex = re.compile('').__class__ uuid_re = re.compile( '^([0-9a-f]{32}){1}$|^([0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}){1}$', flags=re.IGNORECASE) def is_bool(val): r...
16.934066
75
0.675535
c002eb5e76b5436907ef091fbc801a8bbad8a4b6
3,328
py
Python
src/viggy_circuits/solution.py
vigneshpai2003/viggy-circuits
4bbc2103e1cc5672907eeffd044a3bd0e8ed7e56
[ "MIT" ]
1
2022-01-16T14:29:32.000Z
2022-01-16T14:29:32.000Z
src/viggy_circuits/solution.py
vigneshpai2003/Circuits
4bbc2103e1cc5672907eeffd044a3bd0e8ed7e56
[ "MIT" ]
null
null
null
src/viggy_circuits/solution.py
vigneshpai2003/Circuits
4bbc2103e1cc5672907eeffd044a3bd0e8ed7e56
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import TYPE_CHECKING import numpy as np if TYPE_CHECKING: from typing import Dict, Iterable, OrderedDict from .wire import some_wire class WireSolution: def __init__(self, wire: some_wire): self.__wire = wire self.t = [] self.q = []...
29.192982
111
0.59375
866cb6cf924068931cae6fdace2d6279b215c9b5
210
py
Python
project_name/urls.py
asenci/django_template
a3b445695c370dc1eaab3f8ae59e7288479e99b1
[ "MIT" ]
null
null
null
project_name/urls.py
asenci/django_template
a3b445695c370dc1eaab3f8ae59e7288479e99b1
[ "MIT" ]
null
null
null
project_name/urls.py
asenci/django_template
a3b445695c370dc1eaab3f8ae59e7288479e99b1
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path import project_name.main.views urlpatterns = [ path('', project_name.main.views.index, name='index'), path('admin/', admin.site.urls), ]
19.090909
58
0.719048
24a642b3f4796a53ded44133c9b8918c288d5e06
1,898
py
Python
pyethereum/db.py
ethers/pyethereum
13062b52150d67bfa77c52a9cb046c8508321720
[ "MIT" ]
null
null
null
pyethereum/db.py
ethers/pyethereum
13062b52150d67bfa77c52a9cb046c8508321720
[ "MIT" ]
null
null
null
pyethereum/db.py
ethers/pyethereum
13062b52150d67bfa77c52a9cb046c8508321720
[ "MIT" ]
null
null
null
import leveldb import threading databases = {} class DB(object): def __init__(self, dbfile): self.dbfile = dbfile if dbfile not in databases: databases[dbfile] = ( leveldb.LevelDB(dbfile), dict(), threading.Lock()) self.db, self.uncommitted, self.lock = databa...
23.432099
72
0.552687
b24bf38442a1f2d81014f86c4dfe7f43ea0bd669
2,656
py
Python
frappe/patches/v6_15/remove_property_setter_for_previous_field.py
chentaoz/frappe
ee3c4943bf6177ad3b410cdb0d802af486751a65
[ "MIT" ]
5
2017-09-12T15:56:31.000Z
2022-03-09T13:50:21.000Z
frappe/patches/v6_15/remove_property_setter_for_previous_field.py
chentaoz/frappe
ee3c4943bf6177ad3b410cdb0d802af486751a65
[ "MIT" ]
212
2017-08-16T13:03:18.000Z
2020-10-06T12:26:21.000Z
frappe/patches/v6_15/remove_property_setter_for_previous_field.py
chentaoz/frappe
ee3c4943bf6177ad3b410cdb0d802af486751a65
[ "MIT" ]
14
2020-11-04T11:22:44.000Z
2022-02-01T20:59:37.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import frappe, json from frappe.utils import cstr def execute(): # deprecated on 2016-03-09 # using insert_after instead return frappe.db.sql("""delete from `tabProperty Set...
30.181818
93
0.713102
7f4b296918012b8ac6ad12030805c06f77855c65
361
py
Python
py/acmacs_base/__init__.py
acorg/acmacs-py
e0bf6ff7ecfe7332980d15b50f9b6dd6f6f78de1
[ "MIT" ]
null
null
null
py/acmacs_base/__init__.py
acorg/acmacs-py
e0bf6ff7ecfe7332980d15b50f9b6dd6f6f78de1
[ "MIT" ]
null
null
null
py/acmacs_base/__init__.py
acorg/acmacs-py
e0bf6ff7ecfe7332980d15b50f9b6dd6f6f78de1
[ "MIT" ]
null
null
null
# -*- Python -*- # license # license. # ====================================================================== from .timeit import timeit from .files import backup_file, read_json, write_binary # ====================================================================== ### Local Variables: ### eval: (if (fboundp 'eu-ren...
27.769231
72
0.407202
59d47bb8edc48af2014ac77ba20d7eee1103a355
278
py
Python
setup.py
HealthHackAu2018/yabbi
84a267bae0329cbf68699c6f28f6708ecf78ff3d
[ "MIT" ]
4
2018-09-15T00:59:44.000Z
2019-08-21T22:15:30.000Z
setup.py
HealthHackAu2018/yabbi
84a267bae0329cbf68699c6f28f6708ecf78ff3d
[ "MIT" ]
null
null
null
setup.py
HealthHackAu2018/yabbi
84a267bae0329cbf68699c6f28f6708ecf78ff3d
[ "MIT" ]
1
2018-09-15T06:45:21.000Z
2018-09-15T06:45:21.000Z
from setuptools import setup setup( name='Yabbi-CLI', version='1.0', packages=['cli', 'cli.commands'], include_package_data=True, install_requires=[ 'click', ], entry_points=""" [console_scripts] yabbi=cli.cli:cli """, )
17.375
37
0.571942
4e5dff8fd9f2f7d789a9a3e6ef36cc60ca115daf
14,072
py
Python
pythran/interval.py
davidbrochart/pythran
24b6c8650fe99791a4091cbdc2c24686e86aa67c
[ "BSD-3-Clause" ]
1,647
2015-01-13T01:45:38.000Z
2022-03-28T01:23:41.000Z
pythran/interval.py
davidbrochart/pythran
24b6c8650fe99791a4091cbdc2c24686e86aa67c
[ "BSD-3-Clause" ]
1,116
2015-01-01T09:52:05.000Z
2022-03-18T21:06:40.000Z
pythran/interval.py
davidbrochart/pythran
24b6c8650fe99791a4091cbdc2c24686e86aa67c
[ "BSD-3-Clause" ]
180
2015-02-12T02:47:28.000Z
2022-03-14T10:28:18.000Z
""" Module with facilities to represent range values. """ from math import isinf, isnan import itertools import numpy class Interval(object): """ Representation for a range of values. """ def __init__(self, low, high): """ Set initial bound of the range object. """ if isnan(low): ...
29.377871
79
0.526791
706c96f3bf58b0cbfba70cce1fd3771864916724
1,305
py
Python
sandbox/map_fs_to_onodes.py
satishgoda/leo-editor-tutorial
d61afb65847703609001b9cdc9b616ddeba69dab
[ "MIT" ]
5
2016-12-17T06:34:26.000Z
2021-05-31T13:47:14.000Z
sandbox/map_fs_to_onodes.py
satishgoda/leo-editor-tutorial
d61afb65847703609001b9cdc9b616ddeba69dab
[ "MIT" ]
1
2017-01-14T08:42:18.000Z
2017-01-14T08:42:18.000Z
sandbox/map_fs_to_onodes.py
satishgoda/leo-editor-tutorial
d61afb65847703609001b9cdc9b616ddeba69dab
[ "MIT" ]
2
2018-03-27T18:21:37.000Z
2021-08-04T21:27:25.000Z
@path apps @language python import os import glob def nodeCreationStatus(nodeName, status, color): msg = 'Node {0} {1}'.format(nodeName, status) g.es(msg, color=color) def createNodes(appNames, childrenNames, position): for appName in appNames: if appName in childrenNames: nodeCreatio...
25.096154
65
0.630651
0c4c0766f706faeb70ef39ff20735b188185f0ca
1,357
py
Python
djcolour/fields.py
jansegre/djcolour
532903f0edc20af2ecb6c06e6e7363b1ef9a03a2
[ "MIT" ]
null
null
null
djcolour/fields.py
jansegre/djcolour
532903f0edc20af2ecb6c06e6e7363b1ef9a03a2
[ "MIT" ]
null
null
null
djcolour/fields.py
jansegre/djcolour
532903f0edc20af2ecb6c06e6e7363b1ef9a03a2
[ "MIT" ]
null
null
null
from django.core.exceptions import ValidationError from django.db import models from django.utils.translation import ugettext_lazy as _ from .base import Color from .forms.fields import ColorField as ColorFormField def parse_color(color_string): try: return Color(color_string) except ValueError as v:...
28.270833
95
0.667649
46c4046ec1d9b2f178848107154284882dab3c13
29,487
py
Python
src/olympia/devhub/tasks.py
gijsk/addons-server
7c38f379e3a0b4a5ca231f98ac0c049450c224bd
[ "BSD-3-Clause" ]
null
null
null
src/olympia/devhub/tasks.py
gijsk/addons-server
7c38f379e3a0b4a5ca231f98ac0c049450c224bd
[ "BSD-3-Clause" ]
null
null
null
src/olympia/devhub/tasks.py
gijsk/addons-server
7c38f379e3a0b4a5ca231f98ac0c049450c224bd
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import datetime import hashlib import json import os import socket import subprocess import tempfile import urllib2 from copy import deepcopy from decimal import Decimal from functools import wraps from tempfile import NamedTemporaryFile import waffle from django.conf import settings from dja...
36.812734
79
0.659579
59c9ae6bd092737e67bf0fd7460085049aaaa75f
5,291
py
Python
exp.py
prashantraina/neural_raytracing
894b3325b43f82c2a927146810d0252f60ff0782
[ "BSD-3-Clause" ]
1
2021-12-14T21:29:22.000Z
2021-12-14T21:29:22.000Z
exp.py
prashantraina/neural_raytracing
894b3325b43f82c2a927146810d0252f60ff0782
[ "BSD-3-Clause" ]
null
null
null
exp.py
prashantraina/neural_raytracing
894b3325b43f82c2a927146810d0252f60ff0782
[ "BSD-3-Clause" ]
null
null
null
import torch import torch.optim as optim import torch.nn.functional as F import torchvision import numpy as np import random import pytorch3d.pathtracer as pt import itertools from pytorch3d.pathtracer.neural_blocks import Discriminator from pytorch3d.pathtracer.main import pathtrace from pytorch3d.pathtracer.utils im...
27.133333
94
0.666415
4e138c6770b7b098c093671cb6f2d235964d9aef
235
py
Python
mayan/apps/document_states/menus.py
wan1869/dushuhu
934dd178e67140cffc6b9203e793fdf8bbc73a54
[ "Apache-2.0" ]
null
null
null
mayan/apps/document_states/menus.py
wan1869/dushuhu
934dd178e67140cffc6b9203e793fdf8bbc73a54
[ "Apache-2.0" ]
null
null
null
mayan/apps/document_states/menus.py
wan1869/dushuhu
934dd178e67140cffc6b9203e793fdf8bbc73a54
[ "Apache-2.0" ]
null
null
null
from django.utils.translation import ugettext_lazy as _ from mayan.apps.navigation.classes import Menu from .icons import icon_workflow menu_workflow = Menu( icon_class=icon_workflow, label=_('Workflow'), name='workflows' )
21.363636
55
0.778723
c00631cec754b2663eca2762e0e88824ae9c9bf2
245
py
Python
tests/const.py
StephenGoodall/hass-powerpal
2bda5f8858755070d97bf106c54fffbe34c70338
[ "MIT" ]
17
2021-10-02T08:30:58.000Z
2022-03-25T23:29:40.000Z
tests/const.py
StephenGoodall/hass-powerpal
2bda5f8858755070d97bf106c54fffbe34c70338
[ "MIT" ]
11
2021-10-02T07:50:50.000Z
2022-03-03T09:58:41.000Z
tests/const.py
StephenGoodall/hass-powerpal
2bda5f8858755070d97bf106c54fffbe34c70338
[ "MIT" ]
4
2022-03-02T23:25:42.000Z
2022-03-19T06:41:58.000Z
"""Constants for powerpal tests.""" from custom_components.powerpal.const import CONF_AUTH_KEY, CONF_DEVICE_ID # Mock config data to be used across multiple tests MOCK_CONFIG = {CONF_AUTH_KEY: "test_auth_key", CONF_DEVICE_ID: "test_device_id"}
40.833333
80
0.808163
0c59d8a0b422a637760697c1e9abbe5719f44533
5,481
py
Python
dailyfresh/settings.py
xuyanbo03/ng-demo
c989f5dc5136c1ebc0e368bfbcd0c26297a2441f
[ "MIT" ]
4
2020-04-18T16:36:00.000Z
2022-01-23T16:21:15.000Z
dailyfresh/settings.py
xuyanbo03/ng-demo
c989f5dc5136c1ebc0e368bfbcd0c26297a2441f
[ "MIT" ]
null
null
null
dailyfresh/settings.py
xuyanbo03/ng-demo
c989f5dc5136c1ebc0e368bfbcd0c26297a2441f
[ "MIT" ]
2
2021-01-06T15:49:06.000Z
2021-12-27T04:13:46.000Z
""" Django settings for dailyfresh project. Generated by 'django-admin startproject' using Django 3.0.5. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os...
26.22488
91
0.697865
6243d28f8c5ba8c386c5833e2a1393670703b34b
4,338
py
Python
src/SALib/plotting/morris.py
ChitraDangwal/SALib
fce92fa7acecaaf4e484e36f79f579d0cd91707a
[ "MIT" ]
8
2017-05-05T08:56:41.000Z
2020-12-28T15:03:38.000Z
src/SALib/plotting/morris.py
scalet98/SALib
2689340764e19cf1ec2d3ae42413b7bb23691705
[ "MIT" ]
1
2015-04-22T10:04:31.000Z
2015-04-22T10:04:32.000Z
src/SALib/plotting/morris.py
scalet98/SALib
2689340764e19cf1ec2d3ae42413b7bb23691705
[ "MIT" ]
1
2021-02-02T21:18:19.000Z
2021-02-02T21:18:19.000Z
''' Created on 29 Jun 2015 @author: @willu47 This module provides the basic infrastructure for plotting charts for the Method of Morris results The procedures should build upon and return an axes instance:: import matplotlib.plot as plt Si = morris.analyze(problem, param_values, Y, conf_level=0.95, ...
30.335664
79
0.565007
90be07a25fcd1225e5c9274607b1eeb2f7dd5631
2,278
py
Python
autosklearn/pipeline/components/feature_preprocessing/select_percentile_regression.py
ihounie/auto-sklearn
6a72f0df60b0c66ad75b0100d8d22c07da6217bb
[ "BSD-3-Clause" ]
2
2020-11-18T16:43:08.000Z
2020-11-19T21:38:37.000Z
autosklearn/pipeline/components/feature_preprocessing/select_percentile_regression.py
ihounie/auto-sklearn
6a72f0df60b0c66ad75b0100d8d22c07da6217bb
[ "BSD-3-Clause" ]
9
2021-02-12T17:52:34.000Z
2021-06-26T11:37:41.000Z
autosklearn/pipeline/components/feature_preprocessing/select_percentile_regression.py
ihounie/auto-sklearn
6a72f0df60b0c66ad75b0100d8d22c07da6217bb
[ "BSD-3-Clause" ]
1
2021-04-06T09:38:12.000Z
2021-04-06T09:38:12.000Z
from ConfigSpace.configuration_space import ConfigurationSpace from ConfigSpace.hyperparameters import UniformFloatHyperparameter, CategoricalHyperparameter from autosklearn.pipeline.components.base import AutoSklearnPreprocessingAlgorithm from autosklearn.pipeline.components.feature_preprocessing.select_percentile im...
41.418182
93
0.672081
b8c83f6cdfd553fe8bda16246a66b16d18ec3ade
701
py
Python
setup.py
linroid/sadb
0e2cd2adc30f613e81caa40b20afd5578db3ff6a
[ "Apache-2.0" ]
183
2017-12-11T11:17:25.000Z
2022-03-03T13:07:04.000Z
setup.py
linroid/sadb
0e2cd2adc30f613e81caa40b20afd5578db3ff6a
[ "Apache-2.0" ]
9
2017-12-14T02:57:17.000Z
2018-04-15T08:12:13.000Z
setup.py
linroid/sadb
0e2cd2adc30f613e81caa40b20afd5578db3ff6a
[ "Apache-2.0" ]
27
2017-12-11T13:56:13.000Z
2022-01-31T15:41:01.000Z
#!/usr/bin/env python # coding: utf-8 from setuptools import setup setup( name='sadb', version='0.0.6', author='linroid', author_email='linroid@gmail.com', url='https://linroid.com', description=u'在多设备时更方便地操作adb', packages=['sadb'], install_requires=[], classifiers=[ 'Progr...
25.035714
48
0.563481
e2735810c294caa254e3cd4c47faed19742455cb
4,999
py
Python
examples/cobalt-preproc/Arctic/remap_bio_woa.py
ChuningWang/pyroms
4f3773d39683ce78e76b30d0e41955f47d56edc2
[ "BSD-3-Clause" ]
1
2019-01-23T15:55:34.000Z
2019-01-23T15:55:34.000Z
examples/cobalt-preproc/Arctic/remap_bio_woa.py
hadfieldnz/pyroms-mgh
cd0fe39075825f97a7caf64e2c4c5a19f23302fd
[ "BSD-3-Clause" ]
null
null
null
examples/cobalt-preproc/Arctic/remap_bio_woa.py
hadfieldnz/pyroms-mgh
cd0fe39075825f97a7caf64e2c4c5a19f23302fd
[ "BSD-3-Clause" ]
1
2021-08-01T06:49:51.000Z
2021-08-01T06:49:51.000Z
import numpy as np import os try: import netCDF4 as netCDF except: import netCDF3 as netCDF import matplotlib.pyplot as plt import time from datetime import datetime from matplotlib.dates import date2num, num2date import pyroms import pyroms_toolbox import _remapping class nctime(object): pass def remap_bio_...
29.934132
94
0.631126
f91de3ed320f673b3ffff457caa413e2c910e5a1
1,234
py
Python
src/main.py
phip123/q-snake
f7298d3fd28a5492ccf816be43ef59ce77544aa2
[ "MIT" ]
null
null
null
src/main.py
phip123/q-snake
f7298d3fd28a5492ccf816be43ef59ce77544aa2
[ "MIT" ]
null
null
null
src/main.py
phip123/q-snake
f7298d3fd28a5492ccf816be43ef59ce77544aa2
[ "MIT" ]
null
null
null
from src import Position, Direction from src.distances import calculate_distances from src.game import Game, GameMap if __name__ == '__main__': map = GameMap(4,4) game = Game(map, [Position(x=0,y=0)],234) print(game.step(Direction.RIGHT)) game.print() distances = calculate_distances(game) print...
26.255319
45
0.662075
f34fd601a80e5840700f259745ab3b6e7065e66e
15,120
py
Python
python/ray/tests/test_advanced.py
ob/ray
1b1420e0699a4587f1c57fddf69eb532bfe77273
[ "Apache-2.0" ]
1
2021-02-21T05:53:14.000Z
2021-02-21T05:53:14.000Z
python/ray/tests/test_advanced.py
h453693821/ray
9eb79727aa6ad94b01f8b660b83e1182555a89f6
[ "Apache-2.0" ]
42
2021-01-30T08:04:56.000Z
2022-03-12T08:03:11.000Z
python/ray/tests/test_advanced.py
h453693821/ray
9eb79727aa6ad94b01f8b660b83e1182555a89f6
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 from concurrent.futures import ThreadPoolExecutor import json import logging import random import sys import threading import time import numpy as np import pytest import ray.cluster_utils import ray.test_utils from ray.test_utils import client_test_enabled from ray.test_utils import RayTestTimeoutEx...
28.690702
78
0.61832
58ad3fa6dcda961b0af060d7c087e1abf0801567
3,090
py
Python
dynamicEmbedding.py
xuwiliam/Adgame
e594f52e8da0cb4878142bcd71575dfecdd830b0
[ "MIT" ]
null
null
null
dynamicEmbedding.py
xuwiliam/Adgame
e594f52e8da0cb4878142bcd71575dfecdd830b0
[ "MIT" ]
null
null
null
dynamicEmbedding.py
xuwiliam/Adgame
e594f52e8da0cb4878142bcd71575dfecdd830b0
[ "MIT" ]
null
null
null
#! /usr/bin/env python """ build the embedding of dynamic matrix [Batch*Field_size*Dynamic_Feature_Size] """ import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable class DyEmb(nn.Module): def __init__(self, field_size, max_feature_size, total_feature_size, embed...
32.1875
105
0.660841
f06bd0781baeda0a7d5c8d733be9d13b61ab5a48
913
py
Python
quotesbot/spiders/hifiklubben.py
mahidaparth7/python-scrapy
c8113d600f14a0eec4b656b97566cbf66af45e3f
[ "MIT" ]
null
null
null
quotesbot/spiders/hifiklubben.py
mahidaparth7/python-scrapy
c8113d600f14a0eec4b656b97566cbf66af45e3f
[ "MIT" ]
null
null
null
quotesbot/spiders/hifiklubben.py
mahidaparth7/python-scrapy
c8113d600f14a0eec4b656b97566cbf66af45e3f
[ "MIT" ]
null
null
null
import scrapy import time class HifiklubbenSpider(scrapy.Spider): name = "hifiklubben" start_urls = [ 'https://www.hifiklubben.nl/', ] def parse(self, response): categories = response.css("ul.topLevel a::attr(href)").extract() #i = 0 for c in categories: c =...
33.814815
105
0.547645
dd5069986681d4433118d99dd3f2c1e52ff49199
379
py
Python
examples/get_hashtags.py
suyashjawale/InstagramCLI
56b7f8e1f97ad723c41a15874d5ab5c8967d08c3
[ "MIT" ]
5
2022-01-26T00:15:52.000Z
2022-03-16T17:18:29.000Z
examples/get_hashtags.py
suyashjawale/InstagramCLI
56b7f8e1f97ad723c41a15874d5ab5c8967d08c3
[ "MIT" ]
1
2021-11-03T17:26:11.000Z
2021-11-14T05:06:20.000Z
examples/get_hashtags.py
suyashjawale/InstagramCLI
56b7f8e1f97ad723c41a15874d5ab5c8967d08c3
[ "MIT" ]
1
2022-01-02T03:50:29.000Z
2022-01-02T03:50:29.000Z
from InstagramCLI import InstagramCLI cli = InstagramCLI(username="", password="") data= cli.get_hashtags(hashtag_name="bike",save_urls=True,save_to_device=True,tag_count=5,hashtag_type="top",media_type="image") print(data) data= cli.get_hashtags(hashtag_name="bike",save_urls=True,save_to_device=True,tag_count=5,hashta...
54.142857
131
0.807388
9eb523e48248e1f53bfc08d6f433bddd50a83a34
395
py
Python
discord/commands/errors.py
IlikeFivem/python.dsc
db79f2261e4dc3e4cadb6a32582584718dc0ed4c
[ "MIT" ]
3
2021-11-13T17:52:48.000Z
2021-11-14T12:10:27.000Z
discord/commands/errors.py
IlikeFivem/python.dsc
db79f2261e4dc3e4cadb6a32582584718dc0ed4c
[ "MIT" ]
null
null
null
discord/commands/errors.py
IlikeFivem/python.dsc
db79f2261e4dc3e4cadb6a32582584718dc0ed4c
[ "MIT" ]
null
null
null
from ..errors import DiscordException class ApplicationCommandError(DiscordException): pass class CheckFailure(ApplicationCommandError): pass class ApplicationCommandInvokeError(ApplicationCommandError): def __init__(self, e: Exception) -> None: self.original: Exception = e super().__init...
32.916667
97
0.759494
624a784c2c3f2b2b6233e54cdaf20a698d3bbd12
16,657
py
Python
msgraph/cli/command_modules/identitysignins/azext_identitysignins/vendored_sdks/identitysignins/aio/operations/_invitationsinvitation_operations.py
microsoftgraph/msgraph-cli-archived
489f70bf4ede1ce67b84bfb31e66da3e4db76062
[ "MIT" ]
null
null
null
msgraph/cli/command_modules/identitysignins/azext_identitysignins/vendored_sdks/identitysignins/aio/operations/_invitationsinvitation_operations.py
microsoftgraph/msgraph-cli-archived
489f70bf4ede1ce67b84bfb31e66da3e4db76062
[ "MIT" ]
22
2022-03-29T22:54:37.000Z
2022-03-29T22:55:27.000Z
msgraph/cli/command_modules/identitysignins/azext_identitysignins/vendored_sdks/identitysignins/aio/operations/_invitationsinvitation_operations.py
microsoftgraph/msgraph-cli-archived
489f70bf4ede1ce67b84bfb31e66da3e4db76062
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
45.760989
133
0.650177
643b18818bf2ee28c75fecd69b6bf40a95038756
3,435
py
Python
bookmanager/bookmanager/settings.py
372488650/git_test
a2766a7f52ac71929f60f8f0f7228e5961c3843b
[ "MIT" ]
null
null
null
bookmanager/bookmanager/settings.py
372488650/git_test
a2766a7f52ac71929f60f8f0f7228e5961c3843b
[ "MIT" ]
null
null
null
bookmanager/bookmanager/settings.py
372488650/git_test
a2766a7f52ac71929f60f8f0f7228e5961c3843b
[ "MIT" ]
null
null
null
""" Django settings for bookmanager project. Generated by 'django-admin startproject' using Django 3.2.5. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pat...
26.022727
91
0.692576
a2fc2857622be7ab9f386fc3e7248dd133cc4637
4,285
py
Python
core/icons.py
tower000/sublime_a_file_icon
dd27dcf54ba018a42d75c2ed533f9de0f7df69d4
[ "MIT" ]
3
2019-05-22T06:23:53.000Z
2019-06-29T02:28:23.000Z
core/icons.py
tower000/sublime_a_file_icon
dd27dcf54ba018a42d75c2ed533f9de0f7df69d4
[ "MIT" ]
null
null
null
core/icons.py
tower000/sublime_a_file_icon
dd27dcf54ba018a42d75c2ed533f9de0f7df69d4
[ "MIT" ]
null
null
null
import os import shutil import tempfile import zipfile import sublime from ..common import settings from ..common.utils import path from ..common.utils import icons from ..common.utils.logging import log, dump from . import themes def _create_dirs(): log("Creating directories") try: g = path.get_o...
30.176056
78
0.598833
d6752e8e83fe035d7f19cd6f9f70d0026650e75b
1,679
py
Python
users/serializers.py
itimor/weekReport
6da9bb93de1df8195f87d9e032ae31968c95a7c3
[ "MIT" ]
3
2018-03-01T10:08:23.000Z
2020-03-31T09:58:41.000Z
users/serializers.py
itimor/weekReport
6da9bb93de1df8195f87d9e032ae31968c95a7c3
[ "MIT" ]
null
null
null
users/serializers.py
itimor/weekReport
6da9bb93de1df8195f87d9e032ae31968c95a7c3
[ "MIT" ]
4
2018-07-31T12:14:29.000Z
2020-10-21T06:41:36.000Z
# -*- coding: utf-8 -*- # author: itimor from users.models import User, Group, Role from rest_framework import serializers class UserSerializer(serializers.ModelSerializer): group = serializers.SlugRelatedField(queryset=Group.objects.all(), slug_field='name', allow_null=True) roles = serializers.SlugRelatedF...
37.311111
106
0.659321
8ae921a668cba09deb8927281b508109ac01ae99
5,638
py
Python
streamer.py
aheadley/python-LKV373A_v3
3437261a84735ba0d577ce6e77943d2252b52ec6
[ "MIT" ]
3
2016-07-27T19:59:27.000Z
2020-03-14T10:38:23.000Z
streamer.py
aheadley/python-LKV373A_v3
3437261a84735ba0d577ce6e77943d2252b52ec6
[ "MIT" ]
null
null
null
streamer.py
aheadley/python-LKV373A_v3
3437261a84735ba0d577ce6e77943d2252b52ec6
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- import functools import urlparse import socket import contextlib import requests def v3_api_request(*pargs, **kwargs): def outer_func(orig_func): action = orig_func.__name__ @functools.wraps(orig_func) def inner_func(self, *args, **opts): ...
29.830688
97
0.576091
596a44e828410dfc75b1d394ffff3760f841a69f
979
py
Python
SeamlessCloning/seamlessCloning.py
DYF-AI/OpenCV_Tutorial
f4da6a3fc8b9399256b6885506a87860689d6888
[ "Apache-2.0" ]
1
2021-03-23T13:00:49.000Z
2021-03-23T13:00:49.000Z
SeamlessCloning/seamlessCloning.py
DYF-AI/OpenCV_Tutorials
f4da6a3fc8b9399256b6885506a87860689d6888
[ "Apache-2.0" ]
null
null
null
SeamlessCloning/seamlessCloning.py
DYF-AI/OpenCV_Tutorials
f4da6a3fc8b9399256b6885506a87860689d6888
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- import cv2 import sys import numpy as np def seamlessCloning(image_src:str, image_dst:str): img_src = cv2.imread(image_src) img_dst = cv2.imread(image_dst) cv2.imshow("img_src", img_src) cv2.imshow("img_dst", img_dst) # mask src_mask = np.zeros(img_src.shape, img_src.d...
25.763158
101
0.644535
a98eafb8a781e6a7cab6402a93f7ed71ba140366
1,265
py
Python
accounts/models.py
Sahil624/insta_auto
064303b8b005771e3f515ecc00d8ab26641a6faa
[ "MIT" ]
null
null
null
accounts/models.py
Sahil624/insta_auto
064303b8b005771e3f515ecc00d8ab26641a6faa
[ "MIT" ]
7
2019-07-03T21:24:50.000Z
2022-02-11T03:42:40.000Z
accounts/models.py
Sahil624/insta_auto
064303b8b005771e3f515ecc00d8ab26641a6faa
[ "MIT" ]
null
null
null
from django.contrib.auth.base_user import BaseUserManager from django.db import models from django.contrib.auth.models import AbstractUser from django.utils.translation import gettext_lazy as _ # Create your models here. class UserManager(BaseUserManager): use_in_migrations = True def create_user(self, user...
26.354167
62
0.637154
280fbd5cc63f10d97679afc6a8e0b83686fe3a00
1,691
py
Python
bin/create_index.py
pmkenned/blog
a7748527315dff09a5e4cb22daa2e929b0e761c2
[ "MIT" ]
null
null
null
bin/create_index.py
pmkenned/blog
a7748527315dff09a5e4cb22daa2e929b0e761c2
[ "MIT" ]
null
null
null
bin/create_index.py
pmkenned/blog
a7748527315dff09a5e4cb22daa2e929b0e761c2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import re import os import subprocess def to_date_str(seconds): return subprocess.run(["date", "-d", "@%s" % seconds, '+%e %b %Y'], capture_output=True, text=True).stdout.rstrip() def get_posts(md_files): posts = list() for f in md_files: h1 = subprocess.run(["g...
33.82
119
0.531047
9d512c376831ff4585b95a583844a6ee51d1ae19
332
py
Python
Algorithms/power.py
DestroyedEpisode/Python-Projects
d795fd3c7b471f08087ee3f4d2ecb58710687ce2
[ "MIT" ]
null
null
null
Algorithms/power.py
DestroyedEpisode/Python-Projects
d795fd3c7b471f08087ee3f4d2ecb58710687ce2
[ "MIT" ]
null
null
null
Algorithms/power.py
DestroyedEpisode/Python-Projects
d795fd3c7b471f08087ee3f4d2ecb58710687ce2
[ "MIT" ]
null
null
null
# b is base # n is exponent def power(b,n): print("runtime") if n == 0: return 1 if n % 2 == 0: return power(b * b, n / 2) else: return b * power(b * b, (n - 1) / 2) def power2(b,n): print("runtime") if n == 0: return 1 else: return b*power2(b,n-1) print(power(5,7)) print() print(p...
15.090909
40
0.53012
d0a3c8afd88a968c4f840818fe08c1edc141a0c5
110
py
Python
model/__init__.py
IT-BillDeng/Garbage-Classification
f68f4821e63dac67992ba5ea9cd7b77fae1cf4e5
[ "MIT" ]
null
null
null
model/__init__.py
IT-BillDeng/Garbage-Classification
f68f4821e63dac67992ba5ea9cd7b77fae1cf4e5
[ "MIT" ]
null
null
null
model/__init__.py
IT-BillDeng/Garbage-Classification
f68f4821e63dac67992ba5ea9cd7b77fae1cf4e5
[ "MIT" ]
null
null
null
from model.faster_rcnn_vgg16 import FasterRCNNVGG16 from model.faster_rcnn_ResNet50 import FasterRCNNRESNET50
36.666667
57
0.909091
5b0788d2a429b5cf0dc72bfb0a9e698c0ced9bcd
5,311
py
Python
machine-learning/sagemaker-edge-manager/artifacts/com.greengrass.SageMakerEdgeManager.ImageClassification/1.0.0/image_classification/prediction_utils.py
massi-ang/aws-greengrass-component-examples
cd9fe35b19d901dc728c4dc1f22673c440edc91c
[ "Apache-2.0" ]
10
2021-01-13T21:54:40.000Z
2021-09-28T21:46:52.000Z
machine-learning/sagemaker-edge-manager/artifacts/com.greengrass.SageMakerEdgeManager.ImageClassification/1.0.0/image_classification/prediction_utils.py
massi-ang/aws-greengrass-component-examples
cd9fe35b19d901dc728c4dc1f22673c440edc91c
[ "Apache-2.0" ]
4
2021-06-16T22:45:15.000Z
2021-10-12T18:11:10.000Z
machine-learning/sagemaker-edge-manager/artifacts/com.greengrass.SageMakerEdgeManager.ImageClassification/1.0.0/image_classification/prediction_utils.py
massi-ang/aws-greengrass-component-examples
cd9fe35b19d901dc728c4dc1f22673c440edc91c
[ "Apache-2.0" ]
5
2021-04-12T17:11:17.000Z
2021-10-15T00:14:22.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 import uuid from ast import literal_eval from datetime import datetime, timezone from json import dumps import config_utils import cv2 import IPCUtils as ipc_utils import numpy as np from agent_pb2 import ( ...
31.05848
104
0.658256
3c9ab0bab6b4e9645e88f7353431d3590d037685
629
py
Python
sims_tk/main.py
RandolphCYG/husky_pywork
25616d071bcd489fed40584bf63cf9aa12f4f435
[ "BSD-3-Clause" ]
null
null
null
sims_tk/main.py
RandolphCYG/husky_pywork
25616d071bcd489fed40584bf63cf9aa12f4f435
[ "BSD-3-Clause" ]
null
null
null
sims_tk/main.py
RandolphCYG/husky_pywork
25616d071bcd489fed40584bf63cf9aa12f4f435
[ "BSD-3-Clause" ]
null
null
null
import os import tkinter as tk from PIL import Image, ImageTk from LoginPage import LoginPage CUSTOM_ICO = 'head.ico' # 自定义logo def set_up_SIMS(): ROOT_PATH = os.path.dirname(os.path.abspath(__file__)) ico = os.path.join(ROOT_PATH, CUSTOM_ICO) root = tk.Tk() LoginPage(root) # 设置图标 load ...
21.689655
58
0.650238
3f45428d044fd3969b6e9babba7bfd05f50f697d
1,979
py
Python
third_party/pyjson5/src/json5/arg_parser.py
frontend-arch/devtools-frontend
907a14259687036ceac26b301d4fc9965327ec11
[ "BSD-3-Clause" ]
2,389
2015-06-05T05:06:05.000Z
2022-03-31T07:08:56.000Z
third_party/pyjson5/src/json5/arg_parser.py
frontend-arch/devtools-frontend
907a14259687036ceac26b301d4fc9965327ec11
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
third_party/pyjson5/src/json5/arg_parser.py
frontend-arch/devtools-frontend
907a14259687036ceac26b301d4fc9965327ec11
[ "BSD-3-Clause" ]
388
2015-10-10T12:45:24.000Z
2022-03-22T18:11:08.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 ag...
33.542373
79
0.648307
a13b052d4a2ca2ba2efc2a656bd9eab6f27febd2
5,894
py
Python
App/utils/dns.py
copyit/CloudflarePanelPython
d35c46d503319a650213d3fe430cc4643e5d3301
[ "MIT" ]
12
2020-08-02T08:13:22.000Z
2022-01-13T07:17:30.000Z
App/utils/dns.py
copyit/CloudflarePanelPython
d35c46d503319a650213d3fe430cc4643e5d3301
[ "MIT" ]
3
2020-08-08T05:37:47.000Z
2020-09-02T09:29:44.000Z
App/utils/dns.py
copyit/CloudflarePanelPython
d35c46d503319a650213d3fe430cc4643e5d3301
[ "MIT" ]
6
2020-08-02T13:20:31.000Z
2021-11-05T23:12:36.000Z
from typing import Optional import CloudFlare import requests from pydantic import Field from pydantic.main import BaseModel from App import HidoveException from App.utils.common import msg from App.ext import memorize_cache as cache, clear_memorize_cache class Dns_record(BaseModel): name: str type: str ...
30.071429
119
0.617577
adea4cf3495cd11b56a59d281a58fdcb8000886c
1,515
py
Python
circuitpython/code.py
mcauser/tinys2
b9a4322c8dc687bb14192dde02c2fe5b2e6fe1d4
[ "MIT" ]
4
2021-07-09T05:11:01.000Z
2021-12-22T23:49:53.000Z
circuitpython/code.py
mcauser/tinys2
b9a4322c8dc687bb14192dde02c2fe5b2e6fe1d4
[ "MIT" ]
1
2021-10-11T01:01:39.000Z
2021-10-11T01:01:39.000Z
circuitpython/code.py
mcauser/tinys2
b9a4322c8dc687bb14192dde02c2fe5b2e6fe1d4
[ "MIT" ]
2
2021-04-14T08:00:27.000Z
2021-05-09T04:04:20.000Z
# TinyS2 Hello World Code # 2021 Seon Rozenblum, Unexpected Maker # # Project home: # https://tinys2.io # import time, gc, os import neopixel import board, digitalio import tinys2 # Create a NeoPixel instance # Brightness of 0.3 is ample for the 1515 sized LED pixel = neopixel.NeoPixel(board.NEOPIXEL, 1, brightness=...
26.578947
103
0.658086
5e737fe13e45f9e8a8bfa357f6d99ce28bcad399
8,161
py
Python
venv/Lib/site-packages/statsmodels/miscmodels/count.py
EkremBayar/bayar
aad1a32044da671d0b4f11908416044753360b39
[ "MIT" ]
6,931
2015-01-01T11:41:55.000Z
2022-03-31T17:03:24.000Z
venv/Lib/site-packages/statsmodels/miscmodels/count.py
EkremBayar/bayar
aad1a32044da671d0b4f11908416044753360b39
[ "MIT" ]
6,137
2015-01-01T00:33:45.000Z
2022-03-31T22:53:17.000Z
venv/Lib/site-packages/statsmodels/miscmodels/count.py
EkremBayar/bayar
aad1a32044da671d0b4f11908416044753360b39
[ "MIT" ]
2,608
2015-01-02T21:32:31.000Z
2022-03-31T07:38:30.000Z
# -*- coding: utf-8 -*- """ Created on Mon Jul 26 08:34:59 2010 Author: josef-pktd changes: added offset and zero-inflated version of Poisson - kind of ok, need better test cases, - a nan in ZIP bse, need to check hessian calculations - found error in ZIP loglike - all tests pass with Issues ------ * If true mod...
31.754864
107
0.624801
66e420c7185e1774d0618eb69375a1ad02bd9d23
1,399
py
Python
instabot/bot/bot_stats.py
basnijholt/instabot
b3975d01764ba72de922754020977330d3b73a8a
[ "Apache-2.0" ]
null
null
null
instabot/bot/bot_stats.py
basnijholt/instabot
b3975d01764ba72de922754020977330d3b73a8a
[ "Apache-2.0" ]
null
null
null
instabot/bot/bot_stats.py
basnijholt/instabot
b3975d01764ba72de922754020977330d3b73a8a
[ "Apache-2.0" ]
1
2020-10-26T15:13:28.000Z
2020-10-26T15:13:28.000Z
import datetime import os def get_tsv_line(dictionary): line = "" for key in sorted(dictionary): line += str(dictionary[key]) + "\t" return line[:-2] + "\n" def get_header_line(dictionary): line = "\t".join(sorted(dictionary)) return line + "\n" def ensure_dir(file_path): directory...
27.98
72
0.617584
a34ac76a09c209d201c3ce9c39573f003b10e454
5,746
py
Python
app/models/notification.py
damnever/2L
35dab73106e5879155a647b31c81ae5dea18b89d
[ "BSD-3-Clause" ]
1
2019-03-11T12:16:30.000Z
2019-03-11T12:16:30.000Z
app/models/notification.py
damnever/2L
35dab73106e5879155a647b31c81ae5dea18b89d
[ "BSD-3-Clause" ]
1
2017-04-16T02:11:58.000Z
2017-04-16T02:11:58.000Z
app/models/notification.py
damnever/2L
35dab73106e5879155a647b31c81ae5dea18b89d
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function, division, absolute_import from sqlalchemy import Column, Integer, DateTime, String, Boolean, Text from sqlalchemy.sql import functions, expression from sqlalchemy.exc import DataError, IntegrityError, ProgrammingError from app.models.base import Model fr...
33.022989
80
0.629133
8fd15e2607bf200a84b0c0dba1bfa14e9e85a4d7
10,422
py
Python
termdata.py
TheBigBen1/cleanco
3f9dfd695a01e90d962631553637d0ed3806dcc8
[ "MIT" ]
null
null
null
termdata.py
TheBigBen1/cleanco
3f9dfd695a01e90d962631553637d0ed3806dcc8
[ "MIT" ]
null
null
null
termdata.py
TheBigBen1/cleanco
3f9dfd695a01e90d962631553637d0ed3806dcc8
[ "MIT" ]
null
null
null
terms_by_type = { 'Corporation': ['company', 'incorporated', 'corporation', 'corp.', 'corp', 'inc', '& co.', '& co', 'inc.', 's.p.a.', 'n.v.', 'a.g.', 'ag', 'aktiengesellschaft', 'nuf', 's.a.', 's.f.', 'oao', 'co.', 'co' ], 'General Partnership': ['soc.col.', 'stg', 'd.n.o.', 'ltda.', 'v.o.s.', 'a ...
57.9
155
0.383708