hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
163c2dddfef4d93c8c4b83f43f67bab6d45d5c16
12,855
py
Python
tests/core/contracts/test_contract_transact_interface.py
CPChain/fusion
63b6913010e8e5b296a1900c59592c8fd1802c2e
[ "MIT" ]
5
2018-12-19T02:37:18.000Z
2022-01-26T02:52:50.000Z
tests/core/contracts/test_contract_transact_interface.py
CPChain/fusion
63b6913010e8e5b296a1900c59592c8fd1802c2e
[ "MIT" ]
null
null
null
tests/core/contracts/test_contract_transact_interface.py
CPChain/fusion
63b6913010e8e5b296a1900c59592c8fd1802c2e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pytest from eth_utils import ( to_bytes, ) from cpc_fusion._utils.empty import ( empty, ) from cpc_fusion.exceptions import ( ValidationError, ) # Ignore warning in pyethereum 1.6 - will go away with the upgrade pytestmark = pytest.mark.filterwarnings("ignore:implicit cast...
39.675926
116
0.644963
1c989c93ecfc3ea1e0e9e161aff9b91a3c32bf2c
1,128
py
Python
release/stubs.min/System/__init___parts/MethodAccessException.py
tranconbv/ironpython-stubs
a601759e6c6819beff8e6b639d18a24b7e351851
[ "MIT" ]
null
null
null
release/stubs.min/System/__init___parts/MethodAccessException.py
tranconbv/ironpython-stubs
a601759e6c6819beff8e6b639d18a24b7e351851
[ "MIT" ]
null
null
null
release/stubs.min/System/__init___parts/MethodAccessException.py
tranconbv/ironpython-stubs
a601759e6c6819beff8e6b639d18a24b7e351851
[ "MIT" ]
null
null
null
class MethodAccessException(MemberAccessException): """ The exception that is thrown when there is an invalid attempt to access a method,such as accessing a private method from partially trusted code. MethodAccessException() MethodAccessException(message: str) MethodAccessException(message: str,inner: ...
35.25
215
0.725177
c4d9102688afd3208121fa78755b587d1cc285b4
16,796
py
Python
jsb/lib/boot.py
NURDspace/jsonbot
400dce602700a93db80e10707c3785a0fbdfaaeb
[ "MIT" ]
1
2019-04-12T12:20:12.000Z
2019-04-12T12:20:12.000Z
jsb/lib/boot.py
Petraea/jsonbot
04a3a0c586a8a1a3b0e5316d10cda16df9be415b
[ "MIT" ]
null
null
null
jsb/lib/boot.py
Petraea/jsonbot
04a3a0c586a8a1a3b0e5316d10cda16df9be415b
[ "MIT" ]
1
2020-05-06T18:46:53.000Z
2020-05-06T18:46:53.000Z
# jsb/boot.py # # """ admin related data and functions. """ ## jsb imports from jsb.utils.generic import checkpermissions, isdebian, botuser from jsb.lib.persist import Persist from jsb.lib.aliases import savealiases from jsb.utils.exception import handle_exception from jsb.lib.datadir import makedirs, getdatadir fr...
36.276458
233
0.644082
c72425e028e57910d98cdb599e615ae8c3143de9
4,481
py
Python
cgbind/geom.py
duartegroup/cgbind
8c2369d4c49e8b008fc3951719d99e0c4f6b6b16
[ "MIT" ]
7
2020-06-08T16:18:56.000Z
2021-01-28T09:59:16.000Z
cgbind/geom.py
duartegroup/cgbind
8c2369d4c49e8b008fc3951719d99e0c4f6b6b16
[ "MIT" ]
null
null
null
cgbind/geom.py
duartegroup/cgbind
8c2369d4c49e8b008fc3951719d99e0c4f6b6b16
[ "MIT" ]
2
2020-11-16T04:52:43.000Z
2021-06-04T05:07:29.000Z
import numpy as np from cgbind.log import logger from scipy.spatial.distance import cdist from scipy.spatial import distance_matrix from cgbind.atoms import get_atomic_mass def calc_com(atoms): """ Calculate the centre of mass for a list of xyzs :param atoms: (list(cgbind.atoms.Atom)) :return: (np.nd...
30.073826
79
0.642714
09b60c514e5239f580d9ebb27dde640b860033a2
7,544
py
Python
tests/services/test_entrez.py
jfear/sra2mongo
7b73a2a71c9c12160da7d0aaa1537a615a356136
[ "MIT" ]
2
2017-05-18T18:05:33.000Z
2019-03-13T13:52:39.000Z
tests/services/test_entrez.py
jfear/sra2mongo
7b73a2a71c9c12160da7d0aaa1537a615a356136
[ "MIT" ]
19
2017-05-18T13:39:34.000Z
2020-07-02T19:36:36.000Z
tests/services/test_entrez.py
jfear/sra2mongo
7b73a2a71c9c12160da7d0aaa1537a615a356136
[ "MIT" ]
3
2017-01-31T21:20:57.000Z
2021-05-20T01:05:18.000Z
import os import datetime from textwrap import dedent import pytest from sramongo import ( parsers_pubmed_xml, parsers_biosample_xml, parsers_bioproject_xml, parsers_sra_xml, ) from sramongo.services import entrez DB = "sra" QUERY = '"Drosophila melanogaster"[orgn]' RETMAX = 2 API_KEY = os.environ.ge...
34.764977
100
0.70334
8b5d372fc9dd10498f329da4432bbae1adc39eae
3,958
py
Python
src/pyherc/rules/inventory/equip.py
tuturto/pyherc
4e7c72a4d80d335f7d3c48cecac96cd7105acac4
[ "MIT" ]
25
2015-07-21T12:40:42.000Z
2021-09-23T09:00:45.000Z
src/pyherc/rules/inventory/equip.py
tuturto/pyherc
4e7c72a4d80d335f7d3c48cecac96cd7105acac4
[ "MIT" ]
65
2015-02-15T19:42:19.000Z
2018-01-03T10:22:35.000Z
src/pyherc/rules/inventory/equip.py
tuturto/pyherc
4e7c72a4d80d335f7d3c48cecac96cd7105acac4
[ "MIT" ]
3
2017-06-15T13:07:49.000Z
2019-04-15T02:18:39.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2010-2017 Tuukka Turto # # 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,...
32.983333
79
0.635169
1c76807b584d441bccc1451ef5432b05c989dc31
719
py
Python
articles/migrations/0005_auto_20170310_1928.py
Ilyes-Hammadi/help-js
f2e7f6688631700c4ee270276ebc7d5aae26cc76
[ "MIT" ]
11
2017-03-20T14:00:34.000Z
2019-09-17T13:10:37.000Z
articles/migrations/0005_auto_20170310_1928.py
Ilyes-Hammadi/help-js
f2e7f6688631700c4ee270276ebc7d5aae26cc76
[ "MIT" ]
null
null
null
articles/migrations/0005_auto_20170310_1928.py
Ilyes-Hammadi/help-js
f2e7f6688631700c4ee270276ebc7d5aae26cc76
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-03-10 19:28 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('articles', '0004_message_session'), ] operations =...
26.62963
127
0.625869
651519e481d2aafe62d7106404e30dc2352cfb90
1,408
py
Python
polling_stations/apps/data_importers/management/commands/import_bedford.py
danielgriffin48/UK-Polling-Stations
0e5273357a4fdc00c2af794c71558b6f8f2a0a49
[ "BSD-3-Clause" ]
null
null
null
polling_stations/apps/data_importers/management/commands/import_bedford.py
danielgriffin48/UK-Polling-Stations
0e5273357a4fdc00c2af794c71558b6f8f2a0a49
[ "BSD-3-Clause" ]
null
null
null
polling_stations/apps/data_importers/management/commands/import_bedford.py
danielgriffin48/UK-Polling-Stations
0e5273357a4fdc00c2af794c71558b6f8f2a0a49
[ "BSD-3-Clause" ]
null
null
null
from data_importers.management.commands import BaseDemocracyCountsCsvImporter class Command(BaseDemocracyCountsCsvImporter): council_id = "E06000055" addresses_name = ( "parl.2019-12-12/Version 1/Democracy Club - Polling Districts UKPGE.csv" ) stations_name = ( "parl.2019-12-12/Version...
30.608696
80
0.62642
0c501e928ecff4b6715e368a6f60f6533f500f79
7,058
py
Python
model.py
zhitao-wang/Hierarchical-Diffusion-Attention-Network
62211c823dbd7ea4548b8f2e83fb11cd680389c5
[ "MIT" ]
12
2019-12-18T21:02:40.000Z
2021-11-19T05:42:25.000Z
model.py
Toyzenk/Hierarchical-Diffusion-Attention-Network
62211c823dbd7ea4548b8f2e83fb11cd680389c5
[ "MIT" ]
1
2020-02-12T06:10:23.000Z
2020-04-23T15:37:42.000Z
model.py
Toyzenk/Hierarchical-Diffusion-Attention-Network
62211c823dbd7ea4548b8f2e83fb11cd680389c5
[ "MIT" ]
5
2020-05-14T08:39:06.000Z
2021-05-17T02:02:32.000Z
import tensorflow as tf import numpy as np from rank_metrics import rank_eval import argparse def ill_cal(pred, sl): nll = 0 cur_pos = 0 for i in range(len(sl)): length = sl[i] cas_nll = pred[cur_pos : cur_pos+length] cur_pos += length nll += (np.sum(cas_nll)/flo...
53.067669
153
0.613063
a783a8f785008715d00f946ae94b7bd75a71fd2c
55,829
py
Python
models/poe_multimodal_cgqn.py
lim0606/pytorch-generative-multisensory-network
646404db3f6fdad0c6663b861be747c1032ec291
[ "MIT" ]
2
2019-11-06T14:03:52.000Z
2019-12-25T22:35:19.000Z
models/poe_multimodal_cgqn.py
lim0606/pytorch-generative-multisensory-network
646404db3f6fdad0c6663b861be747c1032ec291
[ "MIT" ]
null
null
null
models/poe_multimodal_cgqn.py
lim0606/pytorch-generative-multisensory-network
646404db3f6fdad0c6663b861be747c1032ec291
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from torch.nn.parameter import Parameter from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence from models.convdraw2 import ConvLSTMCell, StackedConvDrawEncoderCell, StackedConvDrawDecoderCell, ConvLSTM from models.reparam import Nor...
43.446693
148
0.557613
c5ad6c220b9e43e11e12da7c93d7df4ff76c449d
5,091
py
Python
labscript_devices/PrawnBlaster/runviewer_parsers.py
philipstarkey/labscript-devices
141a299024daaf9c9580ab4852e2901ecb082ea7
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
labscript_devices/PrawnBlaster/runviewer_parsers.py
philipstarkey/labscript-devices
141a299024daaf9c9580ab4852e2901ecb082ea7
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
labscript_devices/PrawnBlaster/runviewer_parsers.py
philipstarkey/labscript-devices
141a299024daaf9c9580ab4852e2901ecb082ea7
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
##################################################################### # # # /labscript_devices/PrawnBlaster/runviewer_parsers.py # # # # Copyright 2021, Philip Starkey ...
43.512821
87
0.52033
9657282962c87ac2cd87ae4ae0dd010d76c84427
1,800
py
Python
WCS/WCS_test-USACE.py
petercunning/notebook
5b26f2dc96bcb36434542b397de6ca5fa3b61a0a
[ "MIT" ]
32
2015-01-07T01:48:05.000Z
2022-03-02T07:07:42.000Z
WCS/WCS_test-USACE.py
petercunning/notebook
5b26f2dc96bcb36434542b397de6ca5fa3b61a0a
[ "MIT" ]
1
2015-04-13T21:00:18.000Z
2015-04-13T21:00:18.000Z
WCS/WCS_test-USACE.py
petercunning/notebook
5b26f2dc96bcb36434542b397de6ca5fa3b61a0a
[ "MIT" ]
30
2015-01-28T09:31:29.000Z
2022-03-07T03:08:28.000Z
# -*- coding: utf-8 -*- # <nbformat>3.0</nbformat> # <headingcell level=1> # Extract data from USACE WCS Service # <codecell> import matplotlib.pyplot as plt from owslib.wcs import WebCoverageService %matplotlib inline # <codecell> endpoint='http://gis.sam.usace.army.mil/server/services/JALBTCX/NCMP_BareEarth_1m/...
19.148936
140
0.702778
1a02ccb1d682654f9baa4630ec1b69658be490a7
20,570
py
Python
example/psychopy_integration/audio_experiment_lastrun.py
m2march/runAudioExperiment
642df2da9b9dea743278f89149176893a83929b9
[ "MIT" ]
null
null
null
example/psychopy_integration/audio_experiment_lastrun.py
m2march/runAudioExperiment
642df2da9b9dea743278f89149176893a83929b9
[ "MIT" ]
null
null
null
example/psychopy_integration/audio_experiment_lastrun.py
m2march/runAudioExperiment
642df2da9b9dea743278f89149176893a83929b9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This experiment was created using PsychoPy3 Experiment Builder (v2021.1.1), on Sun 28 Feb 2021 04:15:36 PM -03 If you publish work using this script the most relevant publication is: Peirce J, Gray JR, Simpson S, MacAskill M, Höchenberger R, Sogo H, Kastman E,...
41.38833
128
0.68279
995bf67760f86e408486071e269986ab88cacdf2
345
py
Python
mars/settings.py
sddyates/mars
a56735bd344b7337151fb419b1c832b0c702ea69
[ "MIT" ]
1
2019-12-20T20:29:14.000Z
2019-12-20T20:29:14.000Z
mars/settings.py
sddyates/mars
a56735bd344b7337151fb419b1c832b0c702ea69
[ "MIT" ]
3
2019-08-30T08:12:16.000Z
2020-05-15T16:19:53.000Z
mars/settings.py
sddyates/mars
a56735bd344b7337151fb419b1c832b0c702ea69
[ "MIT" ]
1
2019-12-21T03:51:30.000Z
2019-12-21T03:51:30.000Z
""" Synopsis -------- Define default global variables and indexes for element reference. Args ---- None. Attributes ---------- None. TODO ---- None. """ global small_pressure global rho, prs, eng global vx1, vx2, vx3 global mvx1, mvx2, mvx3 global u, v, w rho = 0 prs = 1 vx1 = 2 vx2 = 3 vx3 = 4 eng = prs mvx1 = v...
9.857143
66
0.634783
6c95c9695a3568f822556b38fba36c446d565b72
249
py
Python
tests/user_commands/management/commands/no_translations.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/user_commands/management/commands/no_translations.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/user_commands/management/commands/no_translations.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
from django.core.management.base import BaseCommand, no_translations from django.utils import translation class Command(BaseCommand): @no_translations def handle(self, *args, **options): return translation.get_language()
24.9
69
0.73494
d7acaf4c90dfd48bbc7877d2f85c029f459350fe
15,205
py
Python
var/spack/repos/builtin/packages/mumps/package.py
bjoo/spack
448ac2c68dc3d11331f7d20ab9b87d63fbabdb86
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/mumps/package.py
bjoo/spack
448ac2c68dc3d11331f7d20ab9b87d63fbabdb86
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13
2021-05-12T06:16:20.000Z
2022-03-11T18:39:32.000Z
var/spack/repos/builtin/packages/mumps/package.py
bjoo/spack
448ac2c68dc3d11331f7d20ab9b87d63fbabdb86
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2021 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) import os import sys class Mumps(Package): """MUMPS: a MUltifrontal Massively Parallel sparse direct Solver""" ...
44.720588
141
0.568103
2612872d79a1cc06d2cf60d4e0e0d161f697229a
6,135
py
Python
scripts/flurry.py
chaturatbs/specimen-tools
3f149800dea77ba30e00427f3c79be8e4e4b6105
[ "MIT" ]
null
null
null
scripts/flurry.py
chaturatbs/specimen-tools
3f149800dea77ba30e00427f3c79be8e4e4b6105
[ "MIT" ]
null
null
null
scripts/flurry.py
chaturatbs/specimen-tools
3f149800dea77ba30e00427f3c79be8e4e4b6105
[ "MIT" ]
null
null
null
# Copyright 2018 Jose Cambronero and Phillip Stanley-Marbell # # 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, mod...
44.781022
186
0.669764
c4540f5c377a930a725b4b3109b11702a3a82731
3,399
py
Python
tests/regression/test_pearson.py
bibinwils/metrics
e1c3fda24f90367803c2b04315ad7c8bced719db
[ "Apache-2.0" ]
4
2021-03-22T09:02:31.000Z
2021-03-23T07:35:39.000Z
tests/regression/test_pearson.py
bibinwils/metrics
e1c3fda24f90367803c2b04315ad7c8bced719db
[ "Apache-2.0" ]
4
2021-06-14T08:40:18.000Z
2021-07-27T20:01:08.000Z
tests/regression/test_pearson.py
bibinwils/metrics
e1c3fda24f90367803c2b04315ad7c8bced719db
[ "Apache-2.0" ]
2
2021-10-16T05:02:43.000Z
2022-02-10T16:01:52.000Z
# Copyright The PyTorch Lightning team. # # 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 i...
36.159574
110
0.736393
1f7fac7f42f6be6eb6784c0a2456eb51222167ca
33,059
py
Python
ow_lander/scripts/all_action_trajectories.py
thewindsofwinter/ow_simulator
a92698a1cc7e80ac6aec17d74bcbac81edf726f7
[ "NASA-1.3" ]
null
null
null
ow_lander/scripts/all_action_trajectories.py
thewindsofwinter/ow_simulator
a92698a1cc7e80ac6aec17d74bcbac81edf726f7
[ "NASA-1.3" ]
null
null
null
ow_lander/scripts/all_action_trajectories.py
thewindsofwinter/ow_simulator
a92698a1cc7e80ac6aec17d74bcbac81edf726f7
[ "NASA-1.3" ]
null
null
null
#!/usr/bin/env python3 # The Notices and Disclaimers for Ocean Worlds Autonomy Testbed for Exploration # Research and Simulation can be found in README.md in the root directory of # this repository. import rospy import math import constants import copy from tf.transformations import quaternion_from_euler from tf.tran...
38.262731
118
0.709126
90d8b6e21a5a98ef832fd0d4d5145ea5815c4ad7
1,765
py
Python
setup.py
sam-writer/fastT5
f8db7f7d905f6c594e7a502adca465ae752e1f3d
[ "Apache-2.0" ]
null
null
null
setup.py
sam-writer/fastT5
f8db7f7d905f6c594e7a502adca465ae752e1f3d
[ "Apache-2.0" ]
null
null
null
setup.py
sam-writer/fastT5
f8db7f7d905f6c594e7a502adca465ae752e1f3d
[ "Apache-2.0" ]
null
null
null
import setuptools from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, "README.md"), encoding="utf-8") as f: long_description = f.read() setuptools.setup( name="fastt5", version="0.1.0", license="apache-2.0", author="Kiran R", author_email="kiranr8k@gmail....
28.934426
103
0.577904
e5a0e1d8476add1d1a793e7c8df2be77fe63efd2
1,233
py
Python
tests/unit/utils/cache_test.py
styro/salt
d087d94dca02ca8bf53a6c21b94944bc7957522c
[ "Apache-2.0" ]
3
2016-09-03T06:26:42.000Z
2019-06-30T13:04:53.000Z
tests/unit/utils/cache_test.py
styro/salt
d087d94dca02ca8bf53a6c21b94944bc7957522c
[ "Apache-2.0" ]
null
null
null
tests/unit/utils/cache_test.py
styro/salt
d087d94dca02ca8bf53a6c21b94944bc7957522c
[ "Apache-2.0" ]
1
2021-12-02T15:30:00.000Z
2021-12-02T15:30:00.000Z
# -*- coding: utf-8 -*- ''' tests.unit.utils.cache_test ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Test the salt cache objects ''' # Import Salt Testing libs from salttesting import TestCase from salttesting.helpers import ensure_in_syspath ensure_in_syspath('../../') # Import salt libs from salt.utils import cache im...
24.176471
64
0.60665
6e963a2fd2e3ab710e291dbd5dbd8997a4dab1b9
2,340
py
Python
airflow/api/common/experimental/pool.py
KarthikKothareddy/AirFlow
faaf0b8b4467bcf5bff4a5b49086a9e02cb9c112
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
6
2016-04-20T20:40:43.000Z
2022-02-20T10:32:00.000Z
airflow/api/common/experimental/pool.py
KarthikKothareddy/AirFlow
faaf0b8b4467bcf5bff4a5b49086a9e02cb9c112
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
13
2018-11-30T18:18:32.000Z
2021-02-19T17:04:12.000Z
airflow/api/common/experimental/pool.py
KarthikKothareddy/AirFlow
faaf0b8b4467bcf5bff4a5b49086a9e02cb9c112
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
8
2016-04-13T21:22:46.000Z
2020-07-31T18:31:59.000Z
# -*- coding: utf-8 -*- # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software ...
27.209302
74
0.691026
556294846df3addfceeb51bc92000dba63908e66
1,240
py
Python
tests/test_relation.py
haginot/auto-prep
b1de3eceba5b82432e7042e7e62270df467ed828
[ "Apache-2.0" ]
null
null
null
tests/test_relation.py
haginot/auto-prep
b1de3eceba5b82432e7042e7e62270df467ed828
[ "Apache-2.0" ]
4
2019-01-15T01:55:46.000Z
2019-02-21T04:15:25.000Z
tests/test_relation.py
haginot/auto-prep
b1de3eceba5b82432e7042e7e62270df467ed828
[ "Apache-2.0" ]
null
null
null
import unittest import pandas as pd from autoprep.relation import Relation from autoprep.table import Table class TestRelation(unittest.TestCase): def setUp(self): self.__source_table = Table(title='source', data=pd.DataFrame({ 'id': [1, 2, 3], 'name': ['Ichiro', 'Harper', 'Bonds']})) ...
38.75
105
0.625806
4f51d6220a544f965294f38e33117ad8456f5427
3,097
py
Python
src/pactor.py
kstrempel/pactor
bc12dd6253bec7c08f691697108dcabd2a1c0e00
[ "MIT" ]
1
2021-03-19T21:36:35.000Z
2021-03-19T21:36:35.000Z
src/pactor.py
kstrempel/pactor
bc12dd6253bec7c08f691697108dcabd2a1c0e00
[ "MIT" ]
null
null
null
src/pactor.py
kstrempel/pactor
bc12dd6253bec7c08f691697108dcabd2a1c0e00
[ "MIT" ]
null
null
null
#! /usr/bin/env python import argparse import sys import logging import importlib # needed for runtime from pactor.compiler import load_file, load_script from pactor.vm import VM from pactor.ast import Ast from pactor.repl import repl from pactor.runtime_exceptions import InnerPactorRuntimeError from pactor.error_li...
25.385246
75
0.586051
d3cc5593c0e29dc9c7af0608f21e517639666a8e
2,263
py
Python
classes/PositionMessageManager.py
ericauv/rsi_tradingview
1e05f222aa0d230e0482f5afa5c19f696afcecbb
[ "MIT" ]
null
null
null
classes/PositionMessageManager.py
ericauv/rsi_tradingview
1e05f222aa0d230e0482f5afa5c19f696afcecbb
[ "MIT" ]
null
null
null
classes/PositionMessageManager.py
ericauv/rsi_tradingview
1e05f222aa0d230e0482f5afa5c19f696afcecbb
[ "MIT" ]
null
null
null
class PositionMessageManager: # sample message # { # "id":3, # "result":[ # { # "req":"gN0SiRrevtS4O0ufdCpzd4N0MzHu2lVmwbHh6hj4g9eTT9Yfe55eUc4klmsEhnwC@position", # "res":{ # "positions":[ # { # "entryP...
35.920635
98
0.468405
daabf4f8f7031c5fbc90e8c5c6cbd7febf908e01
976
py
Python
calibration_wrappers.py
samadeusfp/prescriptiveProcessMonitoring
7b39c9b3cb20208d409e733e91cb91fb69dbf238
[ "MIT" ]
1
2018-11-09T14:09:47.000Z
2018-11-09T14:09:47.000Z
calibration_wrappers.py
samadeusfp/prescriptiveProcessMonitoring
7b39c9b3cb20208d409e733e91cb91fb69dbf238
[ "MIT" ]
null
null
null
calibration_wrappers.py
samadeusfp/prescriptiveProcessMonitoring
7b39c9b3cb20208d409e733e91cb91fb69dbf238
[ "MIT" ]
null
null
null
from sklearn.base import BaseEstimator import numpy as np class LGBMCalibrationWrapper(BaseEstimator): def __init__(self, cls): self.cls = cls self.classes_ = [0,1] def predict_proba(self, X): preds = self.cls.predict(X) preds = np.array([1-preds, preds]).T return p...
27.111111
70
0.640369
cd3fcc1416554cfa846c314879e657b313e0eae4
10,402
py
Python
venv/lib/python2.7/site-packages/openpyxl/writer/theme.py
Christian-Castro/castro_odoo8
8247fdb20aa39e043b6fa0c4d0af509462ab3e00
[ "Unlicense" ]
7
2016-12-12T02:29:42.000Z
2020-05-12T21:21:21.000Z
venv/lib/python2.7/site-packages/openpyxl/writer/theme.py
Christian-Castro/castro_odoo8
8247fdb20aa39e043b6fa0c4d0af509462ab3e00
[ "Unlicense" ]
31
2017-01-05T06:07:28.000Z
2018-05-27T13:13:06.000Z
venv/lib/python2.7/site-packages/openpyxl/writer/theme.py
Christian-Castro/castro_odoo8
8247fdb20aa39e043b6fa0c4d0af509462ab3e00
[ "Unlicense" ]
3
2017-12-21T23:30:12.000Z
2019-01-03T20:51:52.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import # Copyright (c) 2010-2016 openpyxl """Write the theme xml based on a fixed string.""" # package imports theme_xml = """<?xml version="1.0"?> <a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"> <a:themeElements...
35.141892
100
0.489617
9a8a6aae3db8620b701a830b30fe4fd0bfdbd9d4
368
py
Python
boutiques/admin.py
Amechi101/concepteur-market
428cf9843dbe2f3fefe63fb44255d98e449d3d18
[ "MIT" ]
null
null
null
boutiques/admin.py
Amechi101/concepteur-market
428cf9843dbe2f3fefe63fb44255d98e449d3d18
[ "MIT" ]
null
null
null
boutiques/admin.py
Amechi101/concepteur-market
428cf9843dbe2f3fefe63fb44255d98e449d3d18
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.contrib import admin from boutiques.models import Boutique class BoutiqueAdmin(admin.ModelAdmin): list_display = ["name", "address", "city", "state", "zipcode", "boutique_website", "is_active"] search_fields = ["name"] list_per_page = 10 #Register Models belo...
21.647059
96
0.769022
4ddbdff9908fb19fa3f53f3c97c95c6ed730d32a
3,543
py
Python
openxc/sources/trace.py
hopper-maker/openxc-python
2054c3d7a7ba09b8f0eeecc2348185857dc22f5f
[ "BSD-3-Clause" ]
null
null
null
openxc/sources/trace.py
hopper-maker/openxc-python
2054c3d7a7ba09b8f0eeecc2348185857dc22f5f
[ "BSD-3-Clause" ]
null
null
null
openxc/sources/trace.py
hopper-maker/openxc-python
2054c3d7a7ba09b8f0eeecc2348185857dc22f5f
[ "BSD-3-Clause" ]
null
null
null
"""A data source for reading from pre-recorded OpenXC trace files.""" import logging import time from .base import DataSourceError, BytestreamDataSource from openxc.formats.json import JsonFormatter LOG = logging.getLogger(__name__) class TraceDataSource(BytestreamDataSource): """A class to replay a previous...
36.153061
79
0.627717
78a182f4375ea14e8968899ba8b22c167947fa30
1,724
py
Python
poetryhub/urls.py
KadogoKenya/PoetryHub
80769c7b7657ee03b6bdcbc420c022a8518d9fc4
[ "MIT" ]
null
null
null
poetryhub/urls.py
KadogoKenya/PoetryHub
80769c7b7657ee03b6bdcbc420c022a8518d9fc4
[ "MIT" ]
null
null
null
poetryhub/urls.py
KadogoKenya/PoetryHub
80769c7b7657ee03b6bdcbc420c022a8518d9fc4
[ "MIT" ]
null
null
null
"""poetryhub URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-bas...
39.181818
101
0.741879
f2c6489cb1d71f21799cfa6f29d5ef316ae22c1b
143,583
py
Python
Lib/typeworld/client/__init__.py
davelab6/typeworld
978b4d31aa41c95729df52975864778910172935
[ "Apache-2.0" ]
1
2021-08-16T17:00:01.000Z
2021-08-16T17:00:01.000Z
Lib/typeworld/client/__init__.py
davelab6/typeworld
978b4d31aa41c95729df52975864778910172935
[ "Apache-2.0" ]
null
null
null
Lib/typeworld/client/__init__.py
davelab6/typeworld
978b4d31aa41c95729df52975864778910172935
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import sys import json import copy import platform import urllib.request import urllib.error import urllib.parse import traceback import time import base64 import threading import ssl import certifi import semver import logging import inspect import re from time import gmtime, strftim...
34.589978
88
0.511885
7f9c007d8b41999c071f85851d6db4759ed3a51f
20,583
py
Python
salt/modules/reg.py
herlo/salt
10ffb8315559c0cfbc10b4adc26cd62ebc462851
[ "Apache-2.0" ]
null
null
null
salt/modules/reg.py
herlo/salt
10ffb8315559c0cfbc10b4adc26cd62ebc462851
[ "Apache-2.0" ]
null
null
null
salt/modules/reg.py
herlo/salt
10ffb8315559c0cfbc10b4adc26cd62ebc462851
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' =========================== Manage the Windows registry =========================== The read_key and set_key functions will be updated in Boron to reflect proper registry usage. The registry has three main components. Hives, Keys, and Values. ----- Hives ----- Hives are the main sections o...
32.880192
136
0.624399
872002756a9a0862e74b1130f0b4c4766bb9e758
1,496
py
Python
SoloLearnPython3/Part_2/sketch_5a.py
mahmoudmheisen91/Python_EDU
3ca08f65bb219335502159a6d13617b9a73c3b7e
[ "MIT" ]
null
null
null
SoloLearnPython3/Part_2/sketch_5a.py
mahmoudmheisen91/Python_EDU
3ca08f65bb219335502159a6d13617b9a73c3b7e
[ "MIT" ]
null
null
null
SoloLearnPython3/Part_2/sketch_5a.py
mahmoudmheisen91/Python_EDU
3ca08f65bb219335502159a6d13617b9a73c3b7e
[ "MIT" ]
null
null
null
# Dicitionary: dic = { "one": 1, "two": 2, "three": 3, } print(dic["one"]) dic["four"] = 4 dic[5] = 6 print(dic) print(6 in dic) print(5 in dic) print(dic.get("one")) print(dic.get(7, "do not exists")) print(8*"-") # Tubles: tup = (1, 2, 3, 4) print(tup[1]) tup = 1, 2, 3, 4, 4 print(tup) tup = (1,) pri...
17.395349
50
0.548128
b184b63d63736cf55cafdd419ceb5d41022b5b17
16,059
py
Python
_scripts/graveyard.py
Erotemic/hotspotter
3cfa4015798e21385455b937f9083405c4b3cf53
[ "Apache-2.0" ]
2
2015-07-19T02:55:06.000Z
2021-07-07T02:38:26.000Z
_scripts/graveyard.py
Erotemic/hotspotter
3cfa4015798e21385455b937f9083405c4b3cf53
[ "Apache-2.0" ]
5
2017-03-11T16:30:26.000Z
2021-04-10T16:42:10.000Z
_scripts/graveyard.py
Erotemic/hotspotter
3cfa4015798e21385455b937f9083405c4b3cf53
[ "Apache-2.0" ]
10
2015-07-19T03:05:42.000Z
2021-08-24T14:48:59.000Z
print('warping img.shape=%r to a new shape=%r' % (img.shape, dsize)) # 1vM Agg info graveyard #cx2_max_ax = np.cumsum(cx2_nFeats) #_ax2_cid = [[cid_]*nFeats for (cid_, nFeats) in iter(zip(cx2_cid, cx2_nFeats))] #ax2_cid = np.array(list(chain.from_iterable(_ax2_cid))) # dont need no cid stuff here #qfx2_cx = ...
36.168919
100
0.606389
5895763c362cd081e47c5e50f6798fb8e73ef3ce
2,211
py
Python
contrib/runners/noop_runner/tests/unit/test_nooprunner.py
machao19902/st2
6768a529af1b3c12109cbfeae19d3cf7fdb71bb7
[ "Apache-2.0" ]
1
2020-11-09T21:05:33.000Z
2020-11-09T21:05:33.000Z
contrib/runners/noop_runner/tests/unit/test_nooprunner.py
machao19902/st2
6768a529af1b3c12109cbfeae19d3cf7fdb71bb7
[ "Apache-2.0" ]
3
2021-03-25T23:57:10.000Z
2021-03-26T00:01:05.000Z
contrib/runners/noop_runner/tests/unit/test_nooprunner.py
machao19902/st2
6768a529af1b3c12109cbfeae19d3cf7fdb71bb7
[ "Apache-2.0" ]
null
null
null
# Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use th...
36.85
79
0.729986
df67fcbfa9e9debdbcedf11f7e1325833c136189
6,190
py
Python
venv/lib/python3.6/site-packages/django_celery_beat/admin.py
slarkjm0803/autobets
f92a5d999acaf5d7c83ca2768a260c2282eabbee
[ "MIT" ]
1
2020-03-06T14:29:12.000Z
2020-03-06T14:29:12.000Z
venv/lib/python3.6/site-packages/django_celery_beat/admin.py
slarkjm0803/autobets
f92a5d999acaf5d7c83ca2768a260c2282eabbee
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/django_celery_beat/admin.py
slarkjm0803/autobets
f92a5d999acaf5d7c83ca2768a260c2282eabbee
[ "MIT" ]
null
null
null
"""Periodic Task Admin interface.""" from __future__ import absolute_import, unicode_literals from django import forms from django.conf import settings from django.contrib import admin from django.forms.widgets import Select from django.template.defaultfilters import pluralize from django.utils.translation import uget...
30.79602
79
0.609208
35b7bfe3d156fa75af95a311843a98ffe77d6d90
686
py
Python
src/pgassets/common/pgCheckbox.py
Blackdevil132/machineLearning
de048bb1473994052f8ed1afb11a15b7833b506d
[ "MIT" ]
1
2019-05-04T07:28:19.000Z
2019-05-04T07:28:19.000Z
src/pgassets/common/pgCheckbox.py
Blackdevil132/machineLearning
de048bb1473994052f8ed1afb11a15b7833b506d
[ "MIT" ]
3
2019-04-29T09:20:11.000Z
2019-04-29T09:23:22.000Z
src/pgassets/common/pgCheckbox.py
Blackdevil132/machineLearning
de048bb1473994052f8ed1afb11a15b7833b506d
[ "MIT" ]
null
null
null
import pygame class pgCheckbox: def __init__(self, pos, size, color): self.rect = pygame.Rect(*pos, *size) self.color = color self.checked = False def collidepoint(self, pos): return self.rect.collidepoint(*pos) def update_status(self): self.checked = (self.checke...
28.583333
93
0.623907
7515d921fc2d701110bec0448beac610dedb611d
8,883
py
Python
conans/assets/templates/new_v2_cmake.py
andriyor/conan
0f98c1e915ebeb25fafd3bd4ad247cef3efdc16f
[ "MIT" ]
null
null
null
conans/assets/templates/new_v2_cmake.py
andriyor/conan
0f98c1e915ebeb25fafd3bd4ad247cef3efdc16f
[ "MIT" ]
null
null
null
conans/assets/templates/new_v2_cmake.py
andriyor/conan
0f98c1e915ebeb25fafd3bd4ad247cef3efdc16f
[ "MIT" ]
null
null
null
conanfile_sources_v2 = """from conans import ConanFile from conan.tools.cmake import CMakeToolchain, CMake, cmake_layout class {package_name}Conan(ConanFile): name = "{name}" version = "{version}" # Optional metadata license = "<Put the package license here>" author = "<Put your name here> <And y...
28.934853
100
0.61083
be0028f22dd600c72d7c18a32550a58f15d4c511
3,062
py
Python
sage/datasets.py
senehasubramaniyan/SAGE_
c9966f8c0e2a4d137bed6fdd7bf7ff49167e0872
[ "MIT" ]
null
null
null
sage/datasets.py
senehasubramaniyan/SAGE_
c9966f8c0e2a4d137bed6fdd7bf7ff49167e0872
[ "MIT" ]
null
null
null
sage/datasets.py
senehasubramaniyan/SAGE_
c9966f8c0e2a4d137bed6fdd7bf7ff49167e0872
[ "MIT" ]
null
null
null
import os import pandas as pd github_data_url = 'https://github.com/senehasubramaniyan/SAGE_/tree/main/data/' def airbnb(): ''' Airbnb listing data from Kaggle. Located at: https://www.kaggle.com/dgomonov/new-york-city-airbnb-open-data ''' path = os.path.join(github_data_url, 'AB_NYC_2019.csv') ...
34.022222
102
0.619203
4ca1690cbbb87284e415aed21f10bc53fee81bb7
19,279
py
Python
pywps/app/Service.py
ldesousa/PyWPS
d2fcde33d52e2da7d0ddaf76931f1275ae444e6d
[ "MIT" ]
null
null
null
pywps/app/Service.py
ldesousa/PyWPS
d2fcde33d52e2da7d0ddaf76931f1275ae444e6d
[ "MIT" ]
null
null
null
pywps/app/Service.py
ldesousa/PyWPS
d2fcde33d52e2da7d0ddaf76931f1275ae444e6d
[ "MIT" ]
null
null
null
################################################################## # Copyright 2016 OSGeo Foundation, # # represented by PyWPS Project Steering Committee, # # licensed under MIT, Please consult LICENSE.txt for details # ####################################################...
38.251984
112
0.584885
19815471371a51f60197f974ce1c5f836081c09d
449
py
Python
util.py
nonk123/music_downloader
4aed5b2ffe3ec2f270a90b7ef30d24ce12ad4724
[ "MIT" ]
null
null
null
util.py
nonk123/music_downloader
4aed5b2ffe3ec2f270a90b7ef30d24ce12ad4724
[ "MIT" ]
null
null
null
util.py
nonk123/music_downloader
4aed5b2ffe3ec2f270a90b7ef30d24ce12ad4724
[ "MIT" ]
null
null
null
import os.path def ensure_dir_exists(path): d = path if os.path.isdir(path) else os.path.split(path)[0] if not os.path.exists(d): os.makedirs(d, 0o775) return path def split_path(path): parts = os.path.split(path) if "" in parts: return [] elif parts[0] in ("", "/"): ...
20.409091
63
0.561247
6f500b87efaec7708e4bbfaf869654a496a40fcb
11,262
py
Python
src/isna/cli.py
frostidaho/python-isna
4f65ee626550caf55f3ad5ce23fac1e49d363178
[ "BSD-2-Clause" ]
null
null
null
src/isna/cli.py
frostidaho/python-isna
4f65ee626550caf55f3ad5ce23fac1e49d363178
[ "BSD-2-Clause" ]
null
null
null
src/isna/cli.py
frostidaho/python-isna
4f65ee626550caf55f3ad5ce23fac1e49d363178
[ "BSD-2-Clause" ]
null
null
null
"""isna.cli -- The main cli script for isna. cli.main() is called by cli2.main() cli2.py is just a small script which loads cli.py cli2.py just parses the sys.argv using docopt and sends them to cli.main() They are split like this so that printing out the program's usage & help statements occur quickly. """ import o...
32.08547
89
0.581424
ea7ab7d1a9035e5d55d29f93c2f299054da1733e
3,334
py
Python
perfect_match/models/benchmarks/jobs_benchmark.py
nec-db-ml/perfect_match
3f6c5642c02420ae676c5e7b94bb4d716ed3b5d9
[ "MIT" ]
99
2018-10-31T22:41:11.000Z
2022-03-31T03:07:12.000Z
perfect_match/models/benchmarks/jobs_benchmark.py
nec-db-ml/perfect_match
3f6c5642c02420ae676c5e7b94bb4d716ed3b5d9
[ "MIT" ]
8
2019-05-23T06:46:12.000Z
2022-02-10T00:00:51.000Z
perfect_match/models/benchmarks/jobs_benchmark.py
nec-db-ml/perfect_match
3f6c5642c02420ae676c5e7b94bb4d716ed3b5d9
[ "MIT" ]
21
2018-12-06T06:02:46.000Z
2022-03-10T03:08:52.000Z
""" Copyright (C) 2018 Patrick Schwab, ETH Zurich 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, merge, publish...
37.044444
111
0.70006
1b5c023d6142eb9ab132be886f1c00f2115ad4c9
11,624
py
Python
intersight/model/virtualization_vmware_distributed_switch_list.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
5
2021-12-16T15:13:32.000Z
2022-03-29T16:09:54.000Z
intersight/model/virtualization_vmware_distributed_switch_list.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
4
2022-01-25T19:05:51.000Z
2022-03-29T20:18:37.000Z
intersight/model/virtualization_vmware_distributed_switch_list.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
2
2020-07-07T15:01:08.000Z
2022-01-31T04:27:35.000Z
""" Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advan...
48.635983
1,678
0.646507
488724e80ce3c4e46dc48263dc17c1bd91b5887a
10,804
py
Python
lesson7.4/tensorflow/contrib/distributions/python/ops/vector_sinh_arcsinh_diag.py
magnusmel/Serverless-Deep-Learning-with-TensorFlow-and-AWS-Lambda
cc226deb7b46852407900f9fec0caf62638defe2
[ "MIT" ]
21
2018-12-11T20:07:47.000Z
2021-11-08T13:12:32.000Z
lesson7.4/tensorflow/contrib/distributions/python/ops/vector_sinh_arcsinh_diag.py
magnusmel/Serverless-Deep-Learning-with-TensorFlow-and-AWS-Lambda
cc226deb7b46852407900f9fec0caf62638defe2
[ "MIT" ]
3
2020-09-26T01:09:47.000Z
2022-02-10T02:12:08.000Z
lesson7.4/tensorflow/contrib/distributions/python/ops/vector_sinh_arcsinh_diag.py
magnusmel/Serverless-Deep-Learning-with-TensorFlow-and-AWS-Lambda
cc226deb7b46852407900f9fec0caf62638defe2
[ "MIT" ]
15
2018-12-12T02:32:28.000Z
2021-11-05T20:40:10.000Z
# Copyright 2017 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...
42.203125
80
0.663643
a1ab90f0e706f07fc8bd37579c6529bc411f1a14
1,395
py
Python
libtb/tbsyslog/__init__.py
MelonSmasher/turkey-bite
b21bf82076e7c00c3ae74fc9d36761f0960cbbaf
[ "MIT" ]
4
2020-08-20T02:22:07.000Z
2020-08-20T14:27:52.000Z
libtb/tbsyslog/__init__.py
MelonSmasher/turkey-bite
b21bf82076e7c00c3ae74fc9d36761f0960cbbaf
[ "MIT" ]
null
null
null
libtb/tbsyslog/__init__.py
MelonSmasher/turkey-bite
b21bf82076e7c00c3ae74fc9d36761f0960cbbaf
[ "MIT" ]
1
2020-08-20T08:41:50.000Z
2020-08-20T08:41:50.000Z
import socket class Facility: """Syslog facilities""" KERN, USER, MAIL, DAEMON, AUTH, SYSLOG, \ LPR, NEWS, UUCP, CRON, AUTHPRIV, FTP = range(12) LOCAL0, LOCAL1, LOCAL2, LOCAL3, \ LOCAL4, LOCAL5, LOCAL6, LOCAL7 = range(16, 24) class Level: """Syslog levels""" EMERG, ALERT, CRIT, ERR, \ ...
27.9
70
0.58853
f91c113384ffc0788112309708614567e8b91c7e
10,691
py
Python
yolov3/train_bottleneck.py
lyk19940625/WorkControl
7b59f98fa5d9824262b391aa41240bd88841d682
[ "Apache-2.0" ]
70
2019-07-22T10:45:26.000Z
2022-03-24T12:57:59.000Z
yolov3/train_bottleneck.py
lyk19940625/WorkControl
7b59f98fa5d9824262b391aa41240bd88841d682
[ "Apache-2.0" ]
3
2020-02-04T08:14:32.000Z
2021-04-19T10:45:03.000Z
yolov3/train_bottleneck.py
lyk19940625/WorkControl
7b59f98fa5d9824262b391aa41240bd88841d682
[ "Apache-2.0" ]
27
2019-08-25T09:23:55.000Z
2021-08-24T03:14:45.000Z
""" Retrain the YOLO model for your own dataset. """ import os import numpy as np import keras.backend as K from keras.layers import Input, Lambda from keras.models import Model from keras.optimizers import Adam from keras.callbacks import TensorBoard, ModelCheckpoint, ReduceLROnPlateau, EarlyStopping from yolo3.model...
47.941704
164
0.677953
6abb5a4fb69de661e34d4b02fe88cb593be9ad4c
454
py
Python
RecoBTag/SecondaryVertex/python/negativeCombinedSecondaryVertexV2Computer_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
RecoBTag/SecondaryVertex/python/negativeCombinedSecondaryVertexV2Computer_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
RecoBTag/SecondaryVertex/python/negativeCombinedSecondaryVertexV2Computer_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms from RecoBTag.SecondaryVertex.combinedSecondaryVertexV2Computer_cfi import * negativeCombinedSecondaryVertexV2Computer = combinedSecondaryVertexV2Computer.clone( vertexFlip = True, trackFlip = True, trackSelection = dict(sip3dSigMax = 0), trackPseudoSelection ...
34.923077
84
0.676211
f19ef97b8a5e83958a75f464314ea06cb647cc25
4,240
py
Python
mars/tensor/random/rayleigh.py
sighingnow/mars
c7897fbd144d230fff5edabc1494fb3ff44aa0d2
[ "Apache-2.0" ]
null
null
null
mars/tensor/random/rayleigh.py
sighingnow/mars
c7897fbd144d230fff5edabc1494fb3ff44aa0d2
[ "Apache-2.0" ]
null
null
null
mars/tensor/random/rayleigh.py
sighingnow/mars
c7897fbd144d230fff5edabc1494fb3ff44aa0d2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2018 Alibaba Group Holding 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-...
35.630252
89
0.672877
6da9a592fac23acb9676d929fe1a165d32fab4a4
950
py
Python
setup.py
shaheen-syed/pygooglenewsscraper
734f6b9772bb02ca235ff1181756deda4ee6aaa0
[ "MIT" ]
null
null
null
setup.py
shaheen-syed/pygooglenewsscraper
734f6b9772bb02ca235ff1181756deda4ee6aaa0
[ "MIT" ]
null
null
null
setup.py
shaheen-syed/pygooglenewsscraper
734f6b9772bb02ca235ff1181756deda4ee6aaa0
[ "MIT" ]
null
null
null
from distutils.core import setup setup( name = 'pygooglenewsscraper', packages = ['pygooglenewsscraper'], version = '0.1.2', license = 'MIT', description = 'Scrape news content from the Google News website', author = 'Shaheen Syed', author_email = 'shaheensyed15@gmail.com', url = 'https://github.com/sh...
32.758621
103
0.671579
6a0130e515d5971a695b8f4abc8053e8574e36aa
70,252
py
Python
pandas/io/tests/test_sql.py
adamgreenhall/pandas
12a39bb05973573e5fcfcba28c3d25a76737239d
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/io/tests/test_sql.py
adamgreenhall/pandas
12a39bb05973573e5fcfcba28c3d25a76737239d
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/io/tests/test_sql.py
adamgreenhall/pandas
12a39bb05973573e5fcfcba28c3d25a76737239d
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
"""SQL io tests The SQL tests are broken down in different classes: - `PandasSQLTest`: base class with common methods for all test classes - Tests for the public API (only tests with sqlite3) - `_TestSQLApi` base class - `TestSQLApi`: test the public API with sqlalchemy engine - `TesySQLLegacyApi`: test t...
36.704284
99
0.581535
f86d3eb8a890ca570b6e9594ea9185dc5ef2c5cb
8,403
py
Python
sdk/python/pulumi_azure_nextgen/compute/v20191201/proximity_placement_group.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/compute/v20191201/proximity_placement_group.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/compute/v20191201/proximity_placement_group.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
47.744318
751
0.6794
4aa3e524310061339e9ceb7b845eeaedbbdbfb40
2,232
py
Python
backend/apps/contracts_uis/models.py
grinay/smartz
44ca50ebcac26d5776b90b4fc96c63edfe804dfe
[ "Apache-2.0" ]
null
null
null
backend/apps/contracts_uis/models.py
grinay/smartz
44ca50ebcac26d5776b90b4fc96c63edfe804dfe
[ "Apache-2.0" ]
null
null
null
backend/apps/contracts_uis/models.py
grinay/smartz
44ca50ebcac26d5776b90b4fc96c63edfe804dfe
[ "Apache-2.0" ]
1
2018-10-23T15:04:52.000Z
2018-10-23T15:04:52.000Z
import random import string from datetime import datetime import pytz from django.conf import settings from django.contrib.postgres.fields import JSONField from django.db import models from apps.common.constants import BLOCKCHAINS, BLOCKCHAIN_ETHEREUM from apps.contracts_uis.validators import validate_functions, vali...
36
103
0.733423
8ddc99f32782bf53e856dc638920ca9ed11cc661
2,138
py
Python
azure-eventgrid/azure/eventgrid/models/iot_hub_device_created_event_data_py3.py
Christina-Kang/azure-sdk-for-python
bbf982eb06aab04b8151f69f1d230b7f5fb96ebf
[ "MIT" ]
null
null
null
azure-eventgrid/azure/eventgrid/models/iot_hub_device_created_event_data_py3.py
Christina-Kang/azure-sdk-for-python
bbf982eb06aab04b8151f69f1d230b7f5fb96ebf
[ "MIT" ]
null
null
null
azure-eventgrid/azure/eventgrid/models/iot_hub_device_created_event_data_py3.py
Christina-Kang/azure-sdk-for-python
bbf982eb06aab04b8151f69f1d230b7f5fb96ebf
[ "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 ...
46.478261
177
0.652947
cb779cc66f314d2d2731877166e373742311a2fe
428
py
Python
editor/importme.py
Amazeryogo/surf-exel
0d6a43a7ba2b059f61405db846e546308a035733
[ "MIT" ]
3
2020-08-12T05:59:47.000Z
2020-11-08T00:01:04.000Z
editor/importme.py
Amazeryogo/surf-exel
0d6a43a7ba2b059f61405db846e546308a035733
[ "MIT" ]
8
2020-08-19T06:24:06.000Z
2020-10-27T04:37:46.000Z
editor/importme.py
Amazeryogo/surf-exel
0d6a43a7ba2b059f61405db846e546308a035733
[ "MIT" ]
1
2020-10-25T13:35:17.000Z
2020-10-25T13:35:17.000Z
from Tkinter import * from Tkinter import filedialog, simpledialog from Tkinter import messagebox from editor.settings import backgroundcolor as bc from editor.settings import forgroundcolor as fc from editor.settings import back as b from editor.settings import fore as f from editor.settings import size from editor.se...
23.777778
49
0.831776
594e8406b5dad0ef381a9dd9d2ec9fbb75e0efd7
275
py
Python
SipMask-VIS/mmdet/core/bbox/assigners/__init__.py
anirudh-chakravarthy/SipMask
fc82b12c13abb091e271eb4f1b6734da18234443
[ "MIT" ]
859
2019-09-29T05:36:03.000Z
2022-03-15T08:33:03.000Z
SipMask-VIS/mmdet/core/bbox/assigners/__init__.py
anirudh-chakravarthy/SipMask
fc82b12c13abb091e271eb4f1b6734da18234443
[ "MIT" ]
69
2019-10-14T11:07:51.000Z
2022-03-10T14:39:00.000Z
SipMask-VIS/mmdet/core/bbox/assigners/__init__.py
anirudh-chakravarthy/SipMask
fc82b12c13abb091e271eb4f1b6734da18234443
[ "MIT" ]
165
2019-10-05T02:59:29.000Z
2022-03-28T02:30:11.000Z
from .approx_max_iou_assigner import ApproxMaxIoUAssigner from .assign_result import AssignResult from .base_assigner import BaseAssigner from .max_iou_assigner import MaxIoUAssigner __all__ = [ 'BaseAssigner', 'MaxIoUAssigner', 'ApproxMaxIoUAssigner', 'AssignResult' ]
30.555556
76
0.829091
883ffd392d03a30d85b527af5e5ef3bd2e8bed05
591
py
Python
lab4/lab4Ex1/TextStats.py
RustyRipper/ScriptingLanguages-
b0944821ddfcd6ca2d57cf00614029bf43786719
[ "MIT" ]
null
null
null
lab4/lab4Ex1/TextStats.py
RustyRipper/ScriptingLanguages-
b0944821ddfcd6ca2d57cf00614029bf43786719
[ "MIT" ]
null
null
null
lab4/lab4Ex1/TextStats.py
RustyRipper/ScriptingLanguages-
b0944821ddfcd6ca2d57cf00614029bf43786719
[ "MIT" ]
null
null
null
import re class TextStats: def __init__(self, text): self.number_of_lines = 0 self.number_of_words = 0 self.number_of_nonalpha = 0 self.__compute(text) def __compute(self, text): self.number_of_lines = text.count('\n') + 1 self.number_of_words = len(re.findall...
29.55
115
0.609137
a0c5fd843385895799545447dc4fa7246597b45a
702
py
Python
saltlint/rules/JinjaVariableHasSpacesRule.py
roaldnefs/salt-lint
3b732c81d9864706769a26bf3231d531fe8e4075
[ "MIT" ]
24
2019-04-19T06:19:10.000Z
2020-08-14T11:29:03.000Z
saltlint/rules/JinjaVariableHasSpacesRule.py
roaldnefs/salt-lint
3b732c81d9864706769a26bf3231d531fe8e4075
[ "MIT" ]
35
2019-10-04T06:33:20.000Z
2019-10-18T19:08:17.000Z
saltlint/rules/JinjaVariableHasSpacesRule.py
roaldnefs/salt-lint
3b732c81d9864706769a26bf3231d531fe8e4075
[ "MIT" ]
10
2019-10-04T13:08:23.000Z
2019-10-14T07:36:34.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2016 Will Thames and contributors # Copyright (c) 2018 Ansible Project # Modified work Copyright (c) 2019 Warpnet B.V. import re from saltlint.linter import SaltLintRule class JinjaVariableHasSpacesRule(SaltLintRule): id = '206' shortdesc = 'Jinja variables should have...
31.909091
91
0.64245
7a02fdd9fdcdce6ad1305373401fd1ab4d5ecfd7
5,772
py
Python
boxFilter.py
alfonsoirai/Image-Border-Analyzer
910bed1258ec109ad9f3c0ec66d0dffb917b772d
[ "MIT" ]
null
null
null
boxFilter.py
alfonsoirai/Image-Border-Analyzer
910bed1258ec109ad9f3c0ec66d0dffb917b772d
[ "MIT" ]
null
null
null
boxFilter.py
alfonsoirai/Image-Border-Analyzer
910bed1258ec109ad9f3c0ec66d0dffb917b772d
[ "MIT" ]
null
null
null
from Tkinter import * from PIL import Image, ImageTk from scipy.ndimage import imread import numpy as np import sys import math import io class Sobel: def __init__(self, path, root): self.imagePath = path self.image = self.rgb_conversion() self.w, self.h = self.image.size self.actu...
36.764331
108
0.415974
245d9ebd44048fc660cbb39abd42598c4435da71
6,975
py
Python
naslib/predictors/lcsvr.py
shenyann/NASLib
6fad875f21e41bb9c91647bbd0620aa6e6dc8c7f
[ "Apache-2.0" ]
14
2021-12-08T17:56:01.000Z
2022-01-15T05:06:59.000Z
naslib/predictors/lcsvr.py
shenyann/NASLib
6fad875f21e41bb9c91647bbd0620aa6e6dc8c7f
[ "Apache-2.0" ]
4
2022-01-10T09:04:38.000Z
2022-01-23T03:35:09.000Z
naslib/predictors/lcsvr.py
shenyann/NASLib
6fad875f21e41bb9c91647bbd0620aa6e6dc8c7f
[ "Apache-2.0" ]
1
2021-12-08T17:56:06.000Z
2021-12-08T17:56:06.000Z
# Author: Robin Ru @ University of Oxford # This is an implementation of learning curve extrapolation method based on: # B. Baker et al. 2017, “Accelerating neural architecture search using performance prediction,” arXiv preprint arXiv:1705.10823. from sklearn.svm import NuSVR from sklearn.linear_model import Bayesian...
42.018072
128
0.591971
51af1ed6d4e8569e8634b7d2778abbe3dd5ffd44
1,736
py
Python
setup.py
jsoref/xmldiff
33b1b41d439f2a38894e0b9cb52ec64804398888
[ "MIT" ]
null
null
null
setup.py
jsoref/xmldiff
33b1b41d439f2a38894e0b9cb52ec64804398888
[ "MIT" ]
null
null
null
setup.py
jsoref/xmldiff
33b1b41d439f2a38894e0b9cb52ec64804398888
[ "MIT" ]
null
null
null
from io import open from setuptools import setup, find_packages version = '2.4.dev0' with open('README.rst', 'rt', encoding='utf8') as readme: description = readme.read() with open('CHANGES.rst', 'rt', encoding='utf8') as changes: history = changes.read() setup(name='xmldiff', version=version, ...
34.72
79
0.548963
a7e2147e95722cbba7806929be7b043cdbd8cb8b
50
py
Python
test/login.py
FantasyWorm/testpython
eaedd41b43679987a91d352fc3f8a7c3b1dcac4d
[ "MIT" ]
null
null
null
test/login.py
FantasyWorm/testpython
eaedd41b43679987a91d352fc3f8a7c3b1dcac4d
[ "MIT" ]
null
null
null
test/login.py
FantasyWorm/testpython
eaedd41b43679987a91d352fc3f8a7c3b1dcac4d
[ "MIT" ]
null
null
null
num = 11 num2 = 2222222 num3 = 444444444444444
7.142857
22
0.7
e0218e88ac15afd3c89b87daf6d60b9c5b5a1f11
14,306
py
Python
src/archefilter/fc_archefilter.py
dfarrow0/flu-contest
8356cf48910a76d2643d105651342288076a9377
[ "MIT" ]
null
null
null
src/archefilter/fc_archefilter.py
dfarrow0/flu-contest
8356cf48910a76d2643d105651342288076a9377
[ "MIT" ]
5
2020-02-24T19:06:24.000Z
2020-04-30T16:40:55.000Z
src/archefilter/fc_archefilter.py
dfarrow0/flu-contest
8356cf48910a76d2643d105651342288076a9377
[ "MIT" ]
3
2020-03-22T16:30:38.000Z
2020-04-27T17:39:12.000Z
""" ================== === Deprecated === ================== As of 2017-11-09, this file is no longer used. The ArcheFilter forecasting system was only used for the 2015--2016 flu season. =============== === Purpose === =============== Assimilates digital surveillance signals and a flu model to produce nowcasts (an...
36.966408
229
0.641619
0cca76af0f4b51b99c81d46eb6f4a88340fd661e
25,234
py
Python
cinder/brick/local_dev/lvm.py
Thingee/cinder
721e657073d73d639619f839d935a463d32b59b5
[ "Apache-2.0" ]
null
null
null
cinder/brick/local_dev/lvm.py
Thingee/cinder
721e657073d73d639619f839d935a463d32b59b5
[ "Apache-2.0" ]
null
null
null
cinder/brick/local_dev/lvm.py
Thingee/cinder
721e657073d73d639619f839d935a463d32b59b5
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 OpenStack Foundation. # 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 req...
36.837956
79
0.560514
d67ba5f5b2036a87965a6eba28ac0cae75e397b2
6,643
py
Python
lhotse/dataset/source_separation.py
stachu86/lhotse
d5e78154db2d4d52f15aaadc8882f76eb5b77640
[ "Apache-2.0" ]
353
2020-10-31T10:38:51.000Z
2022-03-30T05:22:52.000Z
lhotse/dataset/source_separation.py
stachu86/lhotse
d5e78154db2d4d52f15aaadc8882f76eb5b77640
[ "Apache-2.0" ]
353
2020-10-27T23:25:12.000Z
2022-03-31T22:16:05.000Z
lhotse/dataset/source_separation.py
stachu86/lhotse
d5e78154db2d4d52f15aaadc8882f76eb5b77640
[ "Apache-2.0" ]
66
2020-11-01T06:08:08.000Z
2022-03-29T02:03:07.000Z
import warnings from typing import Dict, List, Optional, Tuple import torch from torch.utils.data import Dataset from lhotse import validate from lhotse.cut import Cut, CutSet, MonoCut from lhotse.utils import EPSILON class SourceSeparationDataset(Dataset): """ .. warning: Speech separation datasets are not...
37.111732
117
0.643384
460d2e52b2fb51da4b0162652003424975714004
66
py
Python
what_is_the_name_main_in_python/demo2.py
NightmareQAQ/python-notes
4e766be06073a495ff9654f0dd8c0bb03310c559
[ "MIT" ]
106
2017-05-02T10:25:50.000Z
2022-03-23T14:57:28.000Z
what_is_the_name_main_in_python/demo2.py
NightmareQAQ/python-notes
4e766be06073a495ff9654f0dd8c0bb03310c559
[ "MIT" ]
2
2021-01-14T15:07:15.000Z
2021-12-21T07:18:05.000Z
what_is_the_name_main_in_python/demo2.py
NightmareQAQ/python-notes
4e766be06073a495ff9654f0dd8c0bb03310c559
[ "MIT" ]
42
2017-07-31T07:07:38.000Z
2021-12-26T09:36:55.000Z
from demo1 import a1_func print('demo2.py is called') a1_func()
11
27
0.742424
34d8707282f0434b5fad3873976dc09a092489d2
5,230
py
Python
tests/dolfinx/test_aaa.py
hadivafaii/vedo
15f9adbd36d25c0212cbd4eb0c15af54c19f3819
[ "CC0-1.0" ]
1
2021-04-25T06:28:01.000Z
2021-04-25T06:28:01.000Z
tests/dolfinx/test_aaa.py
hadivafaii/vedo
15f9adbd36d25c0212cbd4eb0c15af54c19f3819
[ "CC0-1.0" ]
null
null
null
tests/dolfinx/test_aaa.py
hadivafaii/vedo
15f9adbd36d25c0212cbd4eb0c15af54c19f3819
[ "CC0-1.0" ]
null
null
null
# Copyright (C) 2014 Garth N. Wells # # This file is part of DOLFIN (https://www.fenicsproject.org) # # SPDX-License-Identifier: LGPL-3.0-or-later # This demo solves the equations of static linear elasticity for a # pulley subjected to centripetal accelerations. The solver uses # smoothed aggregation algebraic mult...
28.27027
103
0.668069
5f10f314220cca69e42e99b0d05e93a709b4c5f4
8,238
py
Python
reports/configs/try_all_logs_dgin3_1/other_config.py
hengwei-chan/graph_network_demo
542f2a59b1b9708abdc718d77db7111f3ba2df96
[ "MIT" ]
1
2021-10-18T03:44:53.000Z
2021-10-18T03:44:53.000Z
reports/configs/try_all_logs_dgin3_1/other_config.py
hengwei-chan/graph_network_demo
542f2a59b1b9708abdc718d77db7111f3ba2df96
[ "MIT" ]
null
null
null
reports/configs/try_all_logs_dgin3_1/other_config.py
hengwei-chan/graph_network_demo
542f2a59b1b9708abdc718d77db7111f3ba2df96
[ "MIT" ]
1
2022-02-22T08:32:01.000Z
2022-02-22T08:32:01.000Z
from dataclasses import dataclass, field from typing import List import tensorflow as tf from graph_networks.utilities import * import logging import os ATOM_FEATURE_DIM = DGIN3_ATOM_FEATURE_DIM EDGE_FEATURE_DIM = DGIN3_EDGE_FEATURE_DIM @dataclass class BasicModelConfig: """ Config for model1/2/3 run file. ...
41.396985
169
0.661326
53dba552ae334e64fb5a7ccb6989011420d8c439
171
py
Python
config/views.py
gigincg/care
07be6a7982b5c46a854e3435a52662f32800c8ae
[ "MIT" ]
189
2020-03-17T17:18:58.000Z
2022-02-22T09:49:45.000Z
config/views.py
gigincg/care
07be6a7982b5c46a854e3435a52662f32800c8ae
[ "MIT" ]
598
2020-03-19T21:22:09.000Z
2022-03-30T05:08:37.000Z
config/views.py
gigincg/care
07be6a7982b5c46a854e3435a52662f32800c8ae
[ "MIT" ]
159
2020-03-19T18:45:56.000Z
2022-03-17T13:23:12.000Z
import logging from django.views.generic import TemplateView from django.shortcuts import render def home_view(request): return render(request, "pages/home.html")
17.1
45
0.789474
7b36a42b0045cf42ecbcaa0941f578cee0e73111
1,614
py
Python
faasmcli/faasmcli/tasks/compile.py
Galaxy-sz/faasm
f5fa8d9699151704a6f032f1bbd30252e9050bd2
[ "Apache-2.0" ]
1
2021-03-03T09:54:21.000Z
2021-03-03T09:54:21.000Z
faasmcli/faasmcli/tasks/compile.py
Galaxy-sz/faasm
f5fa8d9699151704a6f032f1bbd30252e9050bd2
[ "Apache-2.0" ]
null
null
null
faasmcli/faasmcli/tasks/compile.py
Galaxy-sz/faasm
f5fa8d9699151704a6f032f1bbd30252e9050bd2
[ "Apache-2.0" ]
null
null
null
from os import listdir from os.path import join, splitext from invoke import task from faasmcli.util.env import FUNC_DIR, PROJ_ROOT from faasmcli.util.compile import wasm_cmake, wasm_copy_upload FUNC_BUILD_DIR = join(PROJ_ROOT, "build", "func") def _copy_built_function(user, func): src_file = join(FUNC_BUILD_D...
26.9
77
0.675341
d9be63a9d8efefd4dbc041183526ceb0e3eb8b57
5,475
py
Python
tests/hwsim/test_wpas_config.py
fuyajun1983cn/wpa_supplicant
cb3034cad5375dbc382aa14d3ff34d1e201cf877
[ "Unlicense" ]
null
null
null
tests/hwsim/test_wpas_config.py
fuyajun1983cn/wpa_supplicant
cb3034cad5375dbc382aa14d3ff34d1e201cf877
[ "Unlicense" ]
null
null
null
tests/hwsim/test_wpas_config.py
fuyajun1983cn/wpa_supplicant
cb3034cad5375dbc382aa14d3ff34d1e201cf877
[ "Unlicense" ]
null
null
null
# wpa_supplicant config file # Copyright (c) 2014, Jouni Malinen <j@w1.fi> # # This software may be distributed under the terms of the BSD license. # See README for more details. import logging logger = logging.getLogger() import os from wpasupplicant import WpaSupplicant def check_config(config): with open(conf...
36.744966
76
0.610228
f5447101142df5ea7ca4a62d4473c688429fe653
2,808
py
Python
packaging/setup/plugins/ovirt-engine-remove/ovirt-engine/system/engine.py
leongold/ovirt-engine
8b915dab8ad8157849b36b60eb0ca159b1923faf
[ "Apache-2.0" ]
null
null
null
packaging/setup/plugins/ovirt-engine-remove/ovirt-engine/system/engine.py
leongold/ovirt-engine
8b915dab8ad8157849b36b60eb0ca159b1923faf
[ "Apache-2.0" ]
null
null
null
packaging/setup/plugins/ovirt-engine-remove/ovirt-engine/system/engine.py
leongold/ovirt-engine
8b915dab8ad8157849b36b60eb0ca159b1923faf
[ "Apache-2.0" ]
null
null
null
# # ovirt-engine-setup -- ovirt engine setup # Copyright (C) 2013-2015 Red Hat, 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 # # Unl...
29.87234
76
0.643162
ace3b8cd54ca53bc683002cbdaef4ad9b4b0fe1d
533
py
Python
day02/t02/models.py
SunShuoJia/pyproject
71f3cada463fd90243b2cdac8c982fb622f9ef9c
[ "Apache-2.0" ]
null
null
null
day02/t02/models.py
SunShuoJia/pyproject
71f3cada463fd90243b2cdac8c982fb622f9ef9c
[ "Apache-2.0" ]
null
null
null
day02/t02/models.py
SunShuoJia/pyproject
71f3cada463fd90243b2cdac8c982fb622f9ef9c
[ "Apache-2.0" ]
null
null
null
from django.db import models # Create your models here. class People(models.Model): name = models.CharField( max_length=30, verbose_name='名字' ) age = models.IntegerField() sexy = models.CharField( max_length=10, verbose_name='性别' ) birthday = models.DateField( ...
23.173913
39
0.606004
587457f2ca2ffe3a07446e52384e9340e90bb60b
4,044
py
Python
homeassistant/components/hassio/discovery.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/hassio/discovery.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
homeassistant/components/hassio/discovery.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Implement the services discovery feature from Hass.io for Add-ons.""" from __future__ import annotations import asyncio from dataclasses import dataclass import logging from typing import Any from aiohttp import web from aiohttp.web_exceptions import HTTPServiceUnavailable from homeassistant import config_entries...
31.84252
82
0.673096
6b92d6b621ce89de8e82919227a1d24570b2d47a
288
py
Python
is_number/__init__.py
dolun/toy-package
6df5499a4d19e4471bd2b98a84548280c8fc3554
[ "MIT" ]
null
null
null
is_number/__init__.py
dolun/toy-package
6df5499a4d19e4471bd2b98a84548280c8fc3554
[ "MIT" ]
null
null
null
is_number/__init__.py
dolun/toy-package
6df5499a4d19e4471bd2b98a84548280c8fc3554
[ "MIT" ]
null
null
null
"""Utility functions to calculate if an object is a number and other things.""" from .core import is_it_number, is_float, add_numbers, get_array_shape # from module1 import square_plus_one # from ._version import get_versions # __version__ = get_versions()["version"] # del get_versions
36
79
0.788194
cd755ab6d0673e9f77efda5907ddb31408c0bac4
19,416
py
Python
tensorflow2/tf2cv/models/sepreresnet.py
oliviaweng/imgclsmob
80fffbb46f986614b162c725b21f3d208597ac77
[ "MIT" ]
2
2020-11-14T08:40:41.000Z
2021-11-08T09:30:41.000Z
tensorflow2/tf2cv/models/sepreresnet.py
ibrahim85/Sandbox-for-training-convolutional-networks-for-computer-vision
a1f1f52eecbb841fa878bff4d3c311b79864835d
[ "MIT" ]
null
null
null
tensorflow2/tf2cv/models/sepreresnet.py
ibrahim85/Sandbox-for-training-convolutional-networks-for-computer-vision
a1f1f52eecbb841fa878bff4d3c311b79864835d
[ "MIT" ]
2
2020-09-01T12:22:50.000Z
2020-10-24T22:02:35.000Z
""" SE-PreResNet for ImageNet-1K, implemented in TensorFlow. Original paper: 'Squeeze-and-Excitation Networks,' https://arxiv.org/abs/1709.01507. """ __all__ = ['SEPreResNet', 'sepreresnet10', 'sepreresnet12', 'sepreresnet14', 'sepreresnet16', 'sepreresnet18', 'sepreresnet26', 'sepreresnetbc26b', 's...
34.364602
119
0.6267
47b0fdf5186853ddc99731cae03b7adc2c211e06
8,720
py
Python
teslakit/plotting/waves.py
teslakit/teslak
3f3dda08c5c5998cb2a7debbf22f2be675a4ff8b
[ "MIT" ]
12
2019-11-14T22:19:12.000Z
2022-03-04T01:25:33.000Z
teslakit/plotting/waves.py
anderdyl/teslaCoSMoS
1495bfa2364ddbacb802d145b456a35213abfb7c
[ "MIT" ]
5
2020-03-24T18:21:41.000Z
2021-08-23T20:39:43.000Z
teslakit/plotting/waves.py
anderdyl/teslaCoSMoS
1495bfa2364ddbacb802d145b456a35213abfb7c
[ "MIT" ]
2
2021-03-06T07:54:41.000Z
2021-06-30T14:33:22.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import math # pip import numpy as np import xarray as xr import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec import seaborn as sns # teslakit from ..util.operations import GetBestRowsCols from .custom_colors import GetFamsColors from .outputs import ax...
27.335423
85
0.548968
55de61648c5caf3eeb8657299b35d8c30e48540f
3,467
py
Python
test/IntegrationTests.py
mako-npm/dash-core-components
0cbc3d8093c678e59b5b4dfa3aa2637d071a5b33
[ "MIT" ]
null
null
null
test/IntegrationTests.py
mako-npm/dash-core-components
0cbc3d8093c678e59b5b4dfa3aa2637d071a5b33
[ "MIT" ]
null
null
null
test/IntegrationTests.py
mako-npm/dash-core-components
0cbc3d8093c678e59b5b4dfa3aa2637d071a5b33
[ "MIT" ]
null
null
null
from __future__ import absolute_import import multiprocessing import os import platform import threading import time import unittest import percy import flask import requests from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.desired_capabilities import ...
28.418033
117
0.605423
152ee315206f92661f32107c612e81ce37732321
1,533
py
Python
dbserver/api/migrations/0014_auto_20191130_2133.py
nancheng58/database_course_design
890f3880922d8c08a2b3092b2e948148669fbbb1
[ "MIT" ]
2
2020-12-01T01:09:43.000Z
2020-12-01T01:32:43.000Z
dbserver/api/migrations/0014_auto_20191130_2133.py
nancheng58/database_course_design
890f3880922d8c08a2b3092b2e948148669fbbb1
[ "MIT" ]
null
null
null
dbserver/api/migrations/0014_auto_20191130_2133.py
nancheng58/database_course_design
890f3880922d8c08a2b3092b2e948148669fbbb1
[ "MIT" ]
4
2020-09-17T12:54:48.000Z
2020-10-19T12:08:44.000Z
# Generated by Django 2.2.6 on 2019-11-30 13:33 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('api', '0013_auto_20191128_1714'), ] operations = [ migrations.AddField( model_name='course', ...
31.9375
115
0.560992
ec796a6ca72d2c151fe6085bf4730d55546af576
1,001
py
Python
tensorflow/contrib/losses/__init__.py
smrutiranjans/tensorflow
d8e8b872eae63188c75046d5bb068e03a81b3f85
[ "Apache-2.0" ]
42
2016-08-22T03:49:32.000Z
2020-06-29T14:00:27.000Z
tensorflow/contrib/losses/__init__.py
smrutiranjans/tensorflow
d8e8b872eae63188c75046d5bb068e03a81b3f85
[ "Apache-2.0" ]
6
2016-09-02T03:44:35.000Z
2018-11-27T13:20:36.000Z
tensorflow/contrib/losses/__init__.py
smrutiranjans/tensorflow
d8e8b872eae63188c75046d5bb068e03a81b3f85
[ "Apache-2.0" ]
12
2017-03-18T22:22:28.000Z
2020-06-19T20:54:53.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.5
80
0.723277
a8c7a860d663afee6775b298c41dcf921f9180d2
6,302
py
Python
Server.py
danielpiro/Hackathon
6d5b040fd956a13326b5d451f73e75e3f9080da8
[ "MIT" ]
null
null
null
Server.py
danielpiro/Hackathon
6d5b040fd956a13326b5d451f73e75e3f9080da8
[ "MIT" ]
null
null
null
Server.py
danielpiro/Hackathon
6d5b040fd956a13326b5d451f73e75e3f9080da8
[ "MIT" ]
null
null
null
import socket import time import struct from random import randint from threading import Thread import os from scapy.arch import get_if_addr os.system("") # Colors for prints class Colors: GREEN = '\033[32m' BLUE = '\033[34m' PINK = '\033[35m' UDP_DEST_IP = '<broadcast>' UDP_DEST_PORT = 13117 TCP_DEST_...
28.387387
124
0.544272
1ec3c6228675b2382893b0415928b0d3b865d30c
1,143
py
Python
vagabond/ostypes.py
gnulnx/vagabond
d3acbcf01a52271eebcea98f22b1c831ba838d2e
[ "MIT" ]
null
null
null
vagabond/ostypes.py
gnulnx/vagabond
d3acbcf01a52271eebcea98f22b1c831ba838d2e
[ "MIT" ]
null
null
null
vagabond/ostypes.py
gnulnx/vagabond
d3acbcf01a52271eebcea98f22b1c831ba838d2e
[ "MIT" ]
null
null
null
""" This is a list of ostypes from: VBoxManage list ostypes """ OSTYPES = ['Other', 'Other_64', 'Windows31', 'Windows95', 'Windows98', 'WindowsMe', 'WindowsNT4', 'Windows2000', 'WindowsXP', 'WindowsXP_64', 'Windows2003', 'Windows2003_64', 'WindowsVista', 'WindowsVista_64', 'Windows2008', 'Windows2008_64', 'Win...
163.285714
1,069
0.685039
48810aeaaf6f06b8b45fc0036e14948467b682d8
5,891
py
Python
src/airflow_docker/ext/aws/role_assumption.py
Jwan622/airflow-docker
55310bc730f94bc1a293ba6e27ecf5bb663052ba
[ "Apache-2.0" ]
17
2019-11-16T13:25:59.000Z
2022-03-31T02:50:59.000Z
src/airflow_docker/ext/aws/role_assumption.py
Jwan622/airflow-docker
55310bc730f94bc1a293ba6e27ecf5bb663052ba
[ "Apache-2.0" ]
14
2019-09-13T20:02:15.000Z
2022-03-16T19:23:13.000Z
src/airflow_docker/ext/aws/role_assumption.py
Jwan622/airflow-docker
55310bc730f94bc1a293ba6e27ecf5bb663052ba
[ "Apache-2.0" ]
2
2020-02-16T10:46:51.000Z
2022-03-14T18:52:04.000Z
import os import textwrap import boto3 MAX_ROLE_DURATION_SECONDS = 60 * 60 * 12 # 12 hours in seconds MAX_ROLE_SESSION_NAME_LENGTH = 64 ROLE_SESSION_NAME_TEMPLATE = "{dag_run_id}__{task_instance_try}__{task_id}" credential_key_map = { "aws_access_key_id": "AccessKeyId", "aws_secret_access_key": "SecretAcces...
34.052023
98
0.656765
cecca6376416a4b63b9136498cfd11d2b64554c8
2,345
py
Python
bgx/cli/bgx_cli/cli_config.py
DGT-Network/DGT-SDK
3413ae22e79c13e71264271fa3f82203fd49f0b3
[ "Apache-2.0" ]
null
null
null
bgx/cli/bgx_cli/cli_config.py
DGT-Network/DGT-SDK
3413ae22e79c13e71264271fa3f82203fd49f0b3
[ "Apache-2.0" ]
null
null
null
bgx/cli/bgx_cli/cli_config.py
DGT-Network/DGT-SDK
3413ae22e79c13e71264271fa3f82203fd49f0b3
[ "Apache-2.0" ]
1
2021-01-12T21:38:01.000Z
2021-01-12T21:38:01.000Z
# Copyright 2020 NTRLab # # 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, softw...
28.253012
80
0.643497
bb10c0dedaf19a8da07fe4cb90805cd89947d271
1,608
py
Python
tests/lint/files_exist.py
aunderwo/tools
dbfc6d8a7afcd7577a021b80e84ed9567ed0a3da
[ "MIT" ]
null
null
null
tests/lint/files_exist.py
aunderwo/tools
dbfc6d8a7afcd7577a021b80e84ed9567ed0a3da
[ "MIT" ]
null
null
null
tests/lint/files_exist.py
aunderwo/tools
dbfc6d8a7afcd7577a021b80e84ed9567ed0a3da
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import yaml import nf_core.lint def test_files_exist_missing_config(self): """Lint test: critical files missing FAIL""" new_pipeline = self._make_pipeline_copy() os.remove(os.path.join(new_pipeline, "CHANGELOG.md")) lint_obj = nf_core.lint.PipelineLint(new_pipeline) ...
27.724138
84
0.709577
d042b6de423e0bb18eba089f16243ba6bdf16240
2,699
py
Python
test/Subst/TypeError.py
datalogics-staylor/scons
4c48deb6947066e53aac7d86621a7ec17f3b4034
[ "MIT" ]
3
2017-01-06T09:26:23.000Z
2017-03-04T04:13:20.000Z
test/Subst/TypeError.py
datalogics-staylor/scons
4c48deb6947066e53aac7d86621a7ec17f3b4034
[ "MIT" ]
2
2015-10-27T20:17:24.000Z
2016-08-04T21:49:56.000Z
test/Subst/TypeError.py
datalogics-staylor/scons
4c48deb6947066e53aac7d86621a7ec17f3b4034
[ "MIT" ]
4
2015-03-31T16:09:15.000Z
2021-08-04T12:41:47.000Z
#!/usr/bin/env python # # __COPYRIGHT__ # # 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, merge, publish, ...
29.021505
159
0.701371
65193f9a5d38b2d54dd4ac7ff48e162c0544f301
13,440
py
Python
pipe-cli/src/utilities/storage/common.py
cmbkoko1989/cloud-pipeline
9af1218151ef02f87915726eb92c0cc626f7ab11
[ "Apache-2.0" ]
null
null
null
pipe-cli/src/utilities/storage/common.py
cmbkoko1989/cloud-pipeline
9af1218151ef02f87915726eb92c0cc626f7ab11
[ "Apache-2.0" ]
null
null
null
pipe-cli/src/utilities/storage/common.py
cmbkoko1989/cloud-pipeline
9af1218151ef02f87915726eb92c0cc626f7ab11
[ "Apache-2.0" ]
null
null
null
# Copyright 2017-2020 EPAM Systems, Inc. (https://www.epam.com/) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
39.41349
122
0.654836
41da4301b9f0f3407e688896b9acee7de3c6239f
2,088
py
Python
tardis/energy_input/tests/test_calculate_opacity.py
sonachitchyan/tardis
a8bad890d8ccd906993012e954ea7bcd683a96b7
[ "BSD-3-Clause" ]
null
null
null
tardis/energy_input/tests/test_calculate_opacity.py
sonachitchyan/tardis
a8bad890d8ccd906993012e954ea7bcd683a96b7
[ "BSD-3-Clause" ]
null
null
null
tardis/energy_input/tests/test_calculate_opacity.py
sonachitchyan/tardis
a8bad890d8ccd906993012e954ea7bcd683a96b7
[ "BSD-3-Clause" ]
null
null
null
import pytest import numpy.testing as npt import tardis.energy_input.calculate_opacity as calculate_opacity @pytest.mark.parametrize( ["electron_number_density", "energy", "expected"], [ (1.0e11, 511.0, 2.865396624016367e-14), (1e15, 255.5, 3.743906253489761e-10), (1e5, 511.0e7, 4.318...
26.43038
80
0.660441
7485175556adf64b9a8bbce3fe5422d7e41dadc3
3,362
py
Python
datasets/samsum/samsum.py
leondz/datasets
4110fb6034f79c5fb470cf1043ff52180e9c63b7
[ "Apache-2.0" ]
3,395
2020-05-13T21:16:50.000Z
2020-09-10T14:36:50.000Z
datasets/samsum/samsum.py
leondz/datasets
4110fb6034f79c5fb470cf1043ff52180e9c63b7
[ "Apache-2.0" ]
370
2020-05-13T21:28:57.000Z
2020-09-10T11:03:38.000Z
datasets/samsum/samsum.py
leondz/datasets
4110fb6034f79c5fb470cf1043ff52180e9c63b7
[ "Apache-2.0" ]
258
2020-05-15T01:17:09.000Z
2020-09-10T12:41:43.000Z
# coding=utf-8 # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor. # # 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/lice...
29.752212
93
0.584176
fc2173739e0364c257c70cc0caacc7bd8615f90e
3,821
py
Python
python/hsfs/feature_group_validation.py
kouzant/feature-store-api
f6a666e11fd33ae814a79c588ff49547b942b09d
[ "Apache-2.0" ]
1
2021-02-11T10:00:04.000Z
2021-02-11T10:00:04.000Z
python/hsfs/feature_group_validation.py
kouzant/feature-store-api
f6a666e11fd33ae814a79c588ff49547b942b09d
[ "Apache-2.0" ]
1
2021-02-25T11:47:03.000Z
2021-02-25T11:47:03.000Z
python/hsfs/feature_group_validation.py
isabella232/feature-store-api
6f90c6039519422114c35ed47e1ea8765134e7ba
[ "Apache-2.0" ]
null
null
null
# # Copyright 2020 Logical Clocks AB # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
30.325397
112
0.669197
4b6696b128e11b8a49d7fc7c468bf4d419754cdb
5,375
py
Python
yosaipy2/core/subject/identifier.py
jellybean4/yosaipy2
6c57f1ed2eedf25f8c0b06773a4d2c3c2a01dc26
[ "Apache-2.0" ]
null
null
null
yosaipy2/core/subject/identifier.py
jellybean4/yosaipy2
6c57f1ed2eedf25f8c0b06773a4d2c3c2a01dc26
[ "Apache-2.0" ]
null
null
null
yosaipy2/core/subject/identifier.py
jellybean4/yosaipy2
6c57f1ed2eedf25f8c0b06773a4d2c3c2a01dc26
[ "Apache-2.0" ]
null
null
null
""" Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this ...
37.587413
86
0.685581
8ba84d23b1aba260732fdae708e0b32e9d3e1eb0
99
py
Python
21/module3.py
dunjin/DataAnalysisInAction
bec8af3763831b671a84a1355b5d220972f81137
[ "CNRI-Python", "Xnet", "X11" ]
656
2018-12-31T05:35:33.000Z
2022-03-13T15:37:58.000Z
21/module3.py
yideng2010/DataAnalysisInAction
449e9fe961365d07052c16355d86f1a5f4748d7d
[ "CNRI-Python", "Xnet", "X11" ]
14
2019-01-02T01:55:07.000Z
2020-10-12T11:28:01.000Z
21/module3.py
yideng2010/DataAnalysisInAction
449e9fe961365d07052c16355d86f1a5f4748d7d
[ "CNRI-Python", "Xnet", "X11" ]
260
2019-01-10T01:44:08.000Z
2022-03-18T11:33:52.000Z
tf = TfidfVectorizer(stop_words=stop_words, max_df=0.5) features = tf.fit_transform(train_contents)
49.5
55
0.828283
a89ead4da3946b81cd7a219914a69ea0a85264b0
7,729
py
Python
binarySearchTreeLazyDeletionAVL.py
AndreaG93/BST-Lazy-Deletion
2c985a148a2bcdd20119f1d6026d48561e04c2b8
[ "MIT" ]
2
2019-01-08T20:24:28.000Z
2020-12-08T07:16:00.000Z
binarySearchTreeLazyDeletionAVL.py
AndreaG93/BST-Lazy-Deletion
2c985a148a2bcdd20119f1d6026d48561e04c2b8
[ "MIT" ]
null
null
null
binarySearchTreeLazyDeletionAVL.py
AndreaG93/BST-Lazy-Deletion
2c985a148a2bcdd20119f1d6026d48561e04c2b8
[ "MIT" ]
1
2020-12-08T07:12:17.000Z
2020-12-08T07:12:17.000Z
''' Created on Nov 29, 2017 @author: Andrea Graziani - matricola 0189326 @version: 1.0 ''' from binarySearchTreeNode import binarySearchTreeNodeAVLwithLazyDeletion from binarySearchTreeAVL import binarySearchTreeAVL class binarySearchTreeLazyDeletionAVL(binarySearchTreeAVL): """ This class is used to repres...
39.433673
99
0.379609
9685bbfc75f0b1708ce6b0370dd82a916f714228
1,628
py
Python
tests/auth/test_mixins.py
KazakovDenis/django-extensions
ef3b3abe3c3d6563b73633bd25e3ff3ac9716661
[ "MIT" ]
4,057
2015-01-01T17:56:25.000Z
2022-03-31T16:32:40.000Z
tests/auth/test_mixins.py
KazakovDenis/django-extensions
ef3b3abe3c3d6563b73633bd25e3ff3ac9716661
[ "MIT" ]
1,115
2015-01-01T14:59:38.000Z
2022-03-28T22:05:55.000Z
tests/auth/test_mixins.py
KazakovDenis/django-extensions
ef3b3abe3c3d6563b73633bd25e3ff3ac9716661
[ "MIT" ]
951
2015-01-02T16:57:26.000Z
2022-03-28T21:42:22.000Z
# -*- coding: utf-8 -*- from django.test import TestCase, RequestFactory from django.http import HttpResponse from django.views.generic import DetailView from django.contrib.auth import get_user_model from django.contrib.auth.models import AnonymousUser from django.core.exceptions import PermissionDenied from django_e...
33.916667
85
0.738329
6c8d257ffa32f8071c2eec7d2e6ec00cf1bbdae6
782
py
Python
car_detection.py
nycebyte/machine-learn
08bd7fb19992dcc15da359e22e860ccb38aeccdf
[ "MIT" ]
1
2022-03-25T08:24:09.000Z
2022-03-25T08:24:09.000Z
car_detection.py
nycebyte/machine-learn
08bd7fb19992dcc15da359e22e860ccb38aeccdf
[ "MIT" ]
null
null
null
car_detection.py
nycebyte/machine-learn
08bd7fb19992dcc15da359e22e860ccb38aeccdf
[ "MIT" ]
null
null
null
# Title: Cars detection using Python and OpenCV. """ you need to install OpenCV by using this command in the terminal: pip install opencv-python and download "cars.xml" from GitHub. """ import cv2 cascade_src = 'cars.xml' #The path and name of the video file that contains cars. video_src = 'video.avi' cap = cv2.Vid...
22.342857
66
0.659847
b3b9e7681ab09c4496bf956ea791a9f81dbc1ace
3,520
py
Python
egs/aishell/ASR/local/compute_fbank_aishell.py
TIFOSI528/icefall
6f7860a0a60b53026216fa4ba19048955951333e
[ "Apache-2.0" ]
173
2021-07-01T03:36:53.000Z
2022-03-30T09:17:51.000Z
egs/aishell/ASR/local/compute_fbank_aishell.py
TIFOSI528/icefall
6f7860a0a60b53026216fa4ba19048955951333e
[ "Apache-2.0" ]
200
2021-07-01T03:14:19.000Z
2022-03-31T13:15:07.000Z
egs/aishell/ASR/local/compute_fbank_aishell.py
TIFOSI528/icefall
6f7860a0a60b53026216fa4ba19048955951333e
[ "Apache-2.0" ]
57
2021-07-15T09:38:09.000Z
2022-03-29T02:03:48.000Z
#!/usr/bin/env python3 # Copyright 2021 Xiaomi Corp. (authors: Fangjun Kuang) # # See ../../../../LICENSE for clarification regarding multiple authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy...
32
75
0.653977
336cf298a5d3f0c5248fe50d75293f86b51c2ed8
3,372
py
Python
GUI/qt/ZetCode/customwidget.py
archu2020/python-2
19c626ca9fd37168db8a7ac075fd80c8e2971313
[ "Apache-2.0" ]
48
2017-12-24T12:19:55.000Z
2022-02-26T13:14:27.000Z
GUI/qt/ZetCode/customwidget.py
17610178081/python
3975c678d985c468deecd03560d882e9d316bb63
[ "Apache-2.0" ]
3
2018-12-05T08:48:14.000Z
2020-07-29T01:56:16.000Z
GUI/qt/ZetCode/customwidget.py
17610178081/python
3975c678d985c468deecd03560d882e9d316bb63
[ "Apache-2.0" ]
113
2017-08-09T03:10:04.000Z
2022-03-26T16:05:01.000Z
#!/usr/bin/python3 # -*- coding: utf-8 -*- """ ZetCode PyQt5 tutorial In this example, we create a custom widget. Author: Jan Bodnar Website: zetcode.com Last edited: August 2017 """ from PyQt5.QtWidgets import (QWidget, QSlider, QApplication, QHBoxLayout, QVBoxLayout) from PyQt5.QtCore import...
22.331126
64
0.532028
de92928fdc42f1d53567caa21ba83ade98a1fd56
42,867
py
Python
graynet/run_workflow.py
raamana/graynet
383e21024e49f8e1a8dbef18eb2706cb1fef25a5
[ "MIT" ]
28
2017-10-09T10:34:13.000Z
2021-12-15T14:38:45.000Z
graynet/run_workflow.py
raamana/graynet
383e21024e49f8e1a8dbef18eb2706cb1fef25a5
[ "MIT" ]
30
2017-09-28T01:47:30.000Z
2021-08-11T16:59:01.000Z
graynet/run_workflow.py
raamana/graynet
383e21024e49f8e1a8dbef18eb2706cb1fef25a5
[ "MIT" ]
6
2018-05-04T14:59:35.000Z
2022-02-08T04:24:04.000Z
__all__ = ['extract', 'roiwise_stats_indiv', 'cli_run'] import argparse import logging import pickle import sys import traceback import warnings from functools import partial from multiprocessing import Manager, Pool from pathlib import Path from sys import version_info import hiwenet import networkx as nx import num...
45.506369
205
0.582453
6ea0e10f0f6e932c6f338b908c6014edf0384f92
1,262
py
Python
domains/nav/problems/training/problem2102_SD.py
patras91/rae_release
0e5faffb7eb732fdb8e3bbf2c6d2f2cbd520aa30
[ "BSD-3-Clause" ]
1
2021-09-28T12:56:56.000Z
2021-09-28T12:56:56.000Z
domains/nav/problems/training/problem2102_SD.py
patras91/rae_release
0e5faffb7eb732fdb8e3bbf2c6d2f2cbd520aa30
[ "BSD-3-Clause" ]
null
null
null
domains/nav/problems/training/problem2102_SD.py
patras91/rae_release
0e5faffb7eb732fdb8e3bbf2c6d2f2cbd520aa30
[ "BSD-3-Clause" ]
1
2022-03-31T16:30:39.000Z
2022-03-31T16:30:39.000Z
__author__ = 'patras' from domain_springDoor import * from timer import DURATION from state import state, rv DURATION.TIME = { 'unlatch1': 5, 'unlatch2': 5, 'holdDoor': 2, 'passDoor': 3, 'releaseDoor': 2, 'closeDoors': 3, 'move': 7, 'take': 2, 'put': 2, } DURATION.COUNTER = { ...
24.745098
88
0.484152
a202f803412f25b7b7f88930879a5fa3b2a0c000
1,489
py
Python
tripcore/inventory/forms.py
robotlightsyou/trip
5a58babe399febb476cfb42a530ead20937597fd
[ "MIT" ]
null
null
null
tripcore/inventory/forms.py
robotlightsyou/trip
5a58babe399febb476cfb42a530ead20937597fd
[ "MIT" ]
null
null
null
tripcore/inventory/forms.py
robotlightsyou/trip
5a58babe399febb476cfb42a530ead20937597fd
[ "MIT" ]
null
null
null
from django import forms from .models import Fixture, Fixture_Type, Source, Source_Type, Manufacturer class FixtureForm(forms.ModelForm): class Meta: model = Fixture fields = ['owner', 'date_added', 'last_rented', 'last_sickbay', 'last_service', 'manufacturer', 'fixture_type', ...
43.794118
132
0.626595