body_hash
stringlengths
64
64
body
stringlengths
23
109k
docstring
stringlengths
1
57k
path
stringlengths
4
198
name
stringlengths
1
115
repository_name
stringlengths
7
111
repository_stars
float64
0
191k
lang
stringclasses
1 value
body_without_docstring
stringlengths
14
108k
unified
stringlengths
45
133k
50f1f1dafb2457573248de3a34366713f5d54e939072cb799ec8c116fee0a92f
def regnety002(**kwargs): "\n RegNetY-200MF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Location for keeping the model parameters.\n " return get_regnet(channels_init=24, channels_slope=36.44, channels_mult=2.49, depth=13, groups=8, use_se=True, model_name='regnety002', **kwargs)
RegNetY-200MF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678. Parameters: ---------- pretrained : bool, default False Whether to load the pretrained weights for model. root : str, default '~/.torch/models' Location for keeping the model parameters.
pytorch/pytorchcv/models/regnet.py
regnety002
JacobARose/imgclsmob
2,649
python
def regnety002(**kwargs): "\n RegNetY-200MF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Location for keeping the model parameters.\n " return get_regnet(channels_init=24, channels_slope=36.44, channels_mult=2.49, depth=13, groups=8, use_se=True, model_name='regnety002', **kwargs)
def regnety002(**kwargs): "\n RegNetY-200MF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Location for keeping the model parameters.\n " return get_regnet(channels_init=24, channels_slope=36.44, channels_mult=2.49, depth=13, groups=8, use_se=True, model_name='regnety002', **kwargs)<|docstring|>RegNetY-200MF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678. Parameters: ---------- pretrained : bool, default False Whether to load the pretrained weights for model. root : str, default '~/.torch/models' Location for keeping the model parameters.<|endoftext|>
a27c4eda49fa2e7cb4da14d039b715e46c59bfdc75784090e111af44306ecb82
def regnety004(**kwargs): "\n RegNetY-400MF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Location for keeping the model parameters.\n " return get_regnet(channels_init=48, channels_slope=27.89, channels_mult=2.09, depth=16, groups=8, use_se=True, model_name='regnety004', **kwargs)
RegNetY-400MF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678. Parameters: ---------- pretrained : bool, default False Whether to load the pretrained weights for model. root : str, default '~/.torch/models' Location for keeping the model parameters.
pytorch/pytorchcv/models/regnet.py
regnety004
JacobARose/imgclsmob
2,649
python
def regnety004(**kwargs): "\n RegNetY-400MF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Location for keeping the model parameters.\n " return get_regnet(channels_init=48, channels_slope=27.89, channels_mult=2.09, depth=16, groups=8, use_se=True, model_name='regnety004', **kwargs)
def regnety004(**kwargs): "\n RegNetY-400MF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Location for keeping the model parameters.\n " return get_regnet(channels_init=48, channels_slope=27.89, channels_mult=2.09, depth=16, groups=8, use_se=True, model_name='regnety004', **kwargs)<|docstring|>RegNetY-400MF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678. Parameters: ---------- pretrained : bool, default False Whether to load the pretrained weights for model. root : str, default '~/.torch/models' Location for keeping the model parameters.<|endoftext|>
c3f2e33be3ec0797dba223068481e2178d369ff65d722b1e6c2c442970d14e10
def regnety006(**kwargs): "\n RegNetY-600MF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Location for keeping the model parameters.\n " return get_regnet(channels_init=48, channels_slope=32.54, channels_mult=2.32, depth=15, groups=16, use_se=True, model_name='regnety006', **kwargs)
RegNetY-600MF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678. Parameters: ---------- pretrained : bool, default False Whether to load the pretrained weights for model. root : str, default '~/.torch/models' Location for keeping the model parameters.
pytorch/pytorchcv/models/regnet.py
regnety006
JacobARose/imgclsmob
2,649
python
def regnety006(**kwargs): "\n RegNetY-600MF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Location for keeping the model parameters.\n " return get_regnet(channels_init=48, channels_slope=32.54, channels_mult=2.32, depth=15, groups=16, use_se=True, model_name='regnety006', **kwargs)
def regnety006(**kwargs): "\n RegNetY-600MF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Location for keeping the model parameters.\n " return get_regnet(channels_init=48, channels_slope=32.54, channels_mult=2.32, depth=15, groups=16, use_se=True, model_name='regnety006', **kwargs)<|docstring|>RegNetY-600MF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678. Parameters: ---------- pretrained : bool, default False Whether to load the pretrained weights for model. root : str, default '~/.torch/models' Location for keeping the model parameters.<|endoftext|>
61e1ed887e77993ba6cbb7a64e669c48623eab51eee91df8c662564387ef41ce
def regnety008(**kwargs): "\n RegNetY-800MF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Location for keeping the model parameters.\n " return get_regnet(channels_init=56, channels_slope=38.84, channels_mult=2.4, depth=14, groups=16, use_se=True, model_name='regnety008', **kwargs)
RegNetY-800MF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678. Parameters: ---------- pretrained : bool, default False Whether to load the pretrained weights for model. root : str, default '~/.torch/models' Location for keeping the model parameters.
pytorch/pytorchcv/models/regnet.py
regnety008
JacobARose/imgclsmob
2,649
python
def regnety008(**kwargs): "\n RegNetY-800MF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Location for keeping the model parameters.\n " return get_regnet(channels_init=56, channels_slope=38.84, channels_mult=2.4, depth=14, groups=16, use_se=True, model_name='regnety008', **kwargs)
def regnety008(**kwargs): "\n RegNetY-800MF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Location for keeping the model parameters.\n " return get_regnet(channels_init=56, channels_slope=38.84, channels_mult=2.4, depth=14, groups=16, use_se=True, model_name='regnety008', **kwargs)<|docstring|>RegNetY-800MF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678. Parameters: ---------- pretrained : bool, default False Whether to load the pretrained weights for model. root : str, default '~/.torch/models' Location for keeping the model parameters.<|endoftext|>
e1e0c74bf9565ee440edaeb503a4667227e4b03d2abbebb79abd8835deb1217e
def regnety016(**kwargs): "\n RegNetY-1.6GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Location for keeping the model parameters.\n " return get_regnet(channels_init=48, channels_slope=20.71, channels_mult=2.65, depth=27, groups=24, use_se=True, model_name='regnety016', **kwargs)
RegNetY-1.6GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678. Parameters: ---------- pretrained : bool, default False Whether to load the pretrained weights for model. root : str, default '~/.torch/models' Location for keeping the model parameters.
pytorch/pytorchcv/models/regnet.py
regnety016
JacobARose/imgclsmob
2,649
python
def regnety016(**kwargs): "\n RegNetY-1.6GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Location for keeping the model parameters.\n " return get_regnet(channels_init=48, channels_slope=20.71, channels_mult=2.65, depth=27, groups=24, use_se=True, model_name='regnety016', **kwargs)
def regnety016(**kwargs): "\n RegNetY-1.6GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Location for keeping the model parameters.\n " return get_regnet(channels_init=48, channels_slope=20.71, channels_mult=2.65, depth=27, groups=24, use_se=True, model_name='regnety016', **kwargs)<|docstring|>RegNetY-1.6GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678. Parameters: ---------- pretrained : bool, default False Whether to load the pretrained weights for model. root : str, default '~/.torch/models' Location for keeping the model parameters.<|endoftext|>
6d129fd5f9787d8a327f52fed5418abf0cbeb2540e48ee44f5431670a99f77c4
def regnety032(**kwargs): "\n RegNetY-3.2GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Location for keeping the model parameters.\n " return get_regnet(channels_init=80, channels_slope=42.63, channels_mult=2.66, depth=21, groups=24, use_se=True, model_name='regnety032', **kwargs)
RegNetY-3.2GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678. Parameters: ---------- pretrained : bool, default False Whether to load the pretrained weights for model. root : str, default '~/.torch/models' Location for keeping the model parameters.
pytorch/pytorchcv/models/regnet.py
regnety032
JacobARose/imgclsmob
2,649
python
def regnety032(**kwargs): "\n RegNetY-3.2GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Location for keeping the model parameters.\n " return get_regnet(channels_init=80, channels_slope=42.63, channels_mult=2.66, depth=21, groups=24, use_se=True, model_name='regnety032', **kwargs)
def regnety032(**kwargs): "\n RegNetY-3.2GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Location for keeping the model parameters.\n " return get_regnet(channels_init=80, channels_slope=42.63, channels_mult=2.66, depth=21, groups=24, use_se=True, model_name='regnety032', **kwargs)<|docstring|>RegNetY-3.2GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678. Parameters: ---------- pretrained : bool, default False Whether to load the pretrained weights for model. root : str, default '~/.torch/models' Location for keeping the model parameters.<|endoftext|>
d1cf34915e89ccf8128034ae20756538b66c4156459257220f1c8e0138822342
def regnety040(**kwargs): "\n RegNetY-4.0GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Location for keeping the model parameters.\n " return get_regnet(channels_init=96, channels_slope=31.41, channels_mult=2.24, depth=22, groups=64, use_se=True, model_name='regnety040', **kwargs)
RegNetY-4.0GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678. Parameters: ---------- pretrained : bool, default False Whether to load the pretrained weights for model. root : str, default '~/.torch/models' Location for keeping the model parameters.
pytorch/pytorchcv/models/regnet.py
regnety040
JacobARose/imgclsmob
2,649
python
def regnety040(**kwargs): "\n RegNetY-4.0GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Location for keeping the model parameters.\n " return get_regnet(channels_init=96, channels_slope=31.41, channels_mult=2.24, depth=22, groups=64, use_se=True, model_name='regnety040', **kwargs)
def regnety040(**kwargs): "\n RegNetY-4.0GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Location for keeping the model parameters.\n " return get_regnet(channels_init=96, channels_slope=31.41, channels_mult=2.24, depth=22, groups=64, use_se=True, model_name='regnety040', **kwargs)<|docstring|>RegNetY-4.0GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678. Parameters: ---------- pretrained : bool, default False Whether to load the pretrained weights for model. root : str, default '~/.torch/models' Location for keeping the model parameters.<|endoftext|>
947a800582cfaa32246fe4b4b4fdccce930a3013ff378e07a4586c6f22645ab4
def regnety064(**kwargs): "\n RegNetY-6.4GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Location for keeping the model parameters.\n " return get_regnet(channels_init=112, channels_slope=33.22, channels_mult=2.27, depth=25, groups=72, use_se=True, model_name='regnety064', **kwargs)
RegNetY-6.4GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678. Parameters: ---------- pretrained : bool, default False Whether to load the pretrained weights for model. root : str, default '~/.torch/models' Location for keeping the model parameters.
pytorch/pytorchcv/models/regnet.py
regnety064
JacobARose/imgclsmob
2,649
python
def regnety064(**kwargs): "\n RegNetY-6.4GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Location for keeping the model parameters.\n " return get_regnet(channels_init=112, channels_slope=33.22, channels_mult=2.27, depth=25, groups=72, use_se=True, model_name='regnety064', **kwargs)
def regnety064(**kwargs): "\n RegNetY-6.4GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Location for keeping the model parameters.\n " return get_regnet(channels_init=112, channels_slope=33.22, channels_mult=2.27, depth=25, groups=72, use_se=True, model_name='regnety064', **kwargs)<|docstring|>RegNetY-6.4GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678. Parameters: ---------- pretrained : bool, default False Whether to load the pretrained weights for model. root : str, default '~/.torch/models' Location for keeping the model parameters.<|endoftext|>
5b5bee6a0bb4fafca824b36905058afd43ea825885196c0993edbe49322a8328
def regnety080(**kwargs): "\n RegNetY-8.0GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Location for keeping the model parameters.\n " return get_regnet(channels_init=192, channels_slope=76.82, channels_mult=2.19, depth=17, groups=56, use_se=True, model_name='regnety080', **kwargs)
RegNetY-8.0GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678. Parameters: ---------- pretrained : bool, default False Whether to load the pretrained weights for model. root : str, default '~/.torch/models' Location for keeping the model parameters.
pytorch/pytorchcv/models/regnet.py
regnety080
JacobARose/imgclsmob
2,649
python
def regnety080(**kwargs): "\n RegNetY-8.0GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Location for keeping the model parameters.\n " return get_regnet(channels_init=192, channels_slope=76.82, channels_mult=2.19, depth=17, groups=56, use_se=True, model_name='regnety080', **kwargs)
def regnety080(**kwargs): "\n RegNetY-8.0GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Location for keeping the model parameters.\n " return get_regnet(channels_init=192, channels_slope=76.82, channels_mult=2.19, depth=17, groups=56, use_se=True, model_name='regnety080', **kwargs)<|docstring|>RegNetY-8.0GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678. Parameters: ---------- pretrained : bool, default False Whether to load the pretrained weights for model. root : str, default '~/.torch/models' Location for keeping the model parameters.<|endoftext|>
1ae1472c5194c33471fe37e634ce956f7fd242adfce5d2ae9271ada5600cdfdb
def regnety120(**kwargs): "\n RegNetY-12GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Location for keeping the model parameters.\n " return get_regnet(channels_init=168, channels_slope=73.36, channels_mult=2.37, depth=19, groups=112, use_se=True, model_name='regnety120', **kwargs)
RegNetY-12GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678. Parameters: ---------- pretrained : bool, default False Whether to load the pretrained weights for model. root : str, default '~/.torch/models' Location for keeping the model parameters.
pytorch/pytorchcv/models/regnet.py
regnety120
JacobARose/imgclsmob
2,649
python
def regnety120(**kwargs): "\n RegNetY-12GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Location for keeping the model parameters.\n " return get_regnet(channels_init=168, channels_slope=73.36, channels_mult=2.37, depth=19, groups=112, use_se=True, model_name='regnety120', **kwargs)
def regnety120(**kwargs): "\n RegNetY-12GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Location for keeping the model parameters.\n " return get_regnet(channels_init=168, channels_slope=73.36, channels_mult=2.37, depth=19, groups=112, use_se=True, model_name='regnety120', **kwargs)<|docstring|>RegNetY-12GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678. Parameters: ---------- pretrained : bool, default False Whether to load the pretrained weights for model. root : str, default '~/.torch/models' Location for keeping the model parameters.<|endoftext|>
514ecef676a4e5647a158cfa976d549e69bbbff38771cf98d9069f0d1f7b2ecd
def regnety160(**kwargs): "\n RegNetY-16GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Location for keeping the model parameters.\n " return get_regnet(channels_init=200, channels_slope=106.23, channels_mult=2.48, depth=18, groups=112, use_se=True, model_name='regnety160', **kwargs)
RegNetY-16GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678. Parameters: ---------- pretrained : bool, default False Whether to load the pretrained weights for model. root : str, default '~/.torch/models' Location for keeping the model parameters.
pytorch/pytorchcv/models/regnet.py
regnety160
JacobARose/imgclsmob
2,649
python
def regnety160(**kwargs): "\n RegNetY-16GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Location for keeping the model parameters.\n " return get_regnet(channels_init=200, channels_slope=106.23, channels_mult=2.48, depth=18, groups=112, use_se=True, model_name='regnety160', **kwargs)
def regnety160(**kwargs): "\n RegNetY-16GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Location for keeping the model parameters.\n " return get_regnet(channels_init=200, channels_slope=106.23, channels_mult=2.48, depth=18, groups=112, use_se=True, model_name='regnety160', **kwargs)<|docstring|>RegNetY-16GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678. Parameters: ---------- pretrained : bool, default False Whether to load the pretrained weights for model. root : str, default '~/.torch/models' Location for keeping the model parameters.<|endoftext|>
4fbb1144a78f4d4c5caa2cdd6c8d90f402b91f4297ef61efa14aabb2123f4767
def regnety320(**kwargs): "\n RegNetY-32GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Location for keeping the model parameters.\n " return get_regnet(channels_init=232, channels_slope=115.89, channels_mult=2.53, depth=20, groups=232, use_se=True, model_name='regnety320', **kwargs)
RegNetY-32GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678. Parameters: ---------- pretrained : bool, default False Whether to load the pretrained weights for model. root : str, default '~/.torch/models' Location for keeping the model parameters.
pytorch/pytorchcv/models/regnet.py
regnety320
JacobARose/imgclsmob
2,649
python
def regnety320(**kwargs): "\n RegNetY-32GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Location for keeping the model parameters.\n " return get_regnet(channels_init=232, channels_slope=115.89, channels_mult=2.53, depth=20, groups=232, use_se=True, model_name='regnety320', **kwargs)
def regnety320(**kwargs): "\n RegNetY-32GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Location for keeping the model parameters.\n " return get_regnet(channels_init=232, channels_slope=115.89, channels_mult=2.53, depth=20, groups=232, use_se=True, model_name='regnety320', **kwargs)<|docstring|>RegNetY-32GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678. Parameters: ---------- pretrained : bool, default False Whether to load the pretrained weights for model. root : str, default '~/.torch/models' Location for keeping the model parameters.<|endoftext|>
cd82202b0b4d6dfb294160daaca3c476a86d2d00271e0704976b55dbcff2aa6a
def __init__(self, *, tagging_manager_uri: Opt[str]=attrib(default=None, metadata={CASING: 'TaggingManagerURI'}), security_server_uri: Opt[str]=attrib(default=None, metadata={CASING: 'SecurityServerURI'}), mirror_name: Opt[str]=None, index_path: Opt[str]=None, realtime_indexing_path: Opt[str]=None, slice_paths: Opt[Dict[(str, str)]]=None, index_identifier: Opt[str]=None, config_cache_page_size: int=1048576, config_cache_size: int=67108864) -> None: '\n\n Parameters:\n tagging_manager_uri: The URI to the tagging manager\n security_server_uri: The security server URI\n mirror_name: The mirror name of this index\n index_path: The physical path for the index\n realtime_indexing_path: The physical path for the realtime indexing files.\n slice_paths: The physical paths for each slice.\n index_identifier: The index identifier.\n config_cache_page_size: The b-tree page size for the config cache.\n config_cache_size: The b-tree cache size for the config cache.\n '
Parameters: tagging_manager_uri: The URI to the tagging manager security_server_uri: The security server URI mirror_name: The mirror name of this index index_path: The physical path for the index realtime_indexing_path: The physical path for the realtime indexing files. slice_paths: The physical paths for each slice. index_identifier: The index identifier. config_cache_page_size: The b-tree page size for the config cache. config_cache_size: The b-tree cache size for the config cache.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
__init__
jfallaire/generator-ps-boilerplate-project
2
python
def __init__(self, *, tagging_manager_uri: Opt[str]=attrib(default=None, metadata={CASING: 'TaggingManagerURI'}), security_server_uri: Opt[str]=attrib(default=None, metadata={CASING: 'SecurityServerURI'}), mirror_name: Opt[str]=None, index_path: Opt[str]=None, realtime_indexing_path: Opt[str]=None, slice_paths: Opt[Dict[(str, str)]]=None, index_identifier: Opt[str]=None, config_cache_page_size: int=1048576, config_cache_size: int=67108864) -> None: '\n\n Parameters:\n tagging_manager_uri: The URI to the tagging manager\n security_server_uri: The security server URI\n mirror_name: The mirror name of this index\n index_path: The physical path for the index\n realtime_indexing_path: The physical path for the realtime indexing files.\n slice_paths: The physical paths for each slice.\n index_identifier: The index identifier.\n config_cache_page_size: The b-tree page size for the config cache.\n config_cache_size: The b-tree cache size for the config cache.\n '
def __init__(self, *, tagging_manager_uri: Opt[str]=attrib(default=None, metadata={CASING: 'TaggingManagerURI'}), security_server_uri: Opt[str]=attrib(default=None, metadata={CASING: 'SecurityServerURI'}), mirror_name: Opt[str]=None, index_path: Opt[str]=None, realtime_indexing_path: Opt[str]=None, slice_paths: Opt[Dict[(str, str)]]=None, index_identifier: Opt[str]=None, config_cache_page_size: int=1048576, config_cache_size: int=67108864) -> None: '\n\n Parameters:\n tagging_manager_uri: The URI to the tagging manager\n security_server_uri: The security server URI\n mirror_name: The mirror name of this index\n index_path: The physical path for the index\n realtime_indexing_path: The physical path for the realtime indexing files.\n slice_paths: The physical paths for each slice.\n index_identifier: The index identifier.\n config_cache_page_size: The b-tree page size for the config cache.\n config_cache_size: The b-tree cache size for the config cache.\n '<|docstring|>Parameters: tagging_manager_uri: The URI to the tagging manager security_server_uri: The security server URI mirror_name: The mirror name of this index index_path: The physical path for the index realtime_indexing_path: The physical path for the realtime indexing files. slice_paths: The physical paths for each slice. index_identifier: The index identifier. config_cache_page_size: The b-tree page size for the config cache. config_cache_size: The b-tree cache size for the config cache.<|endoftext|>
5e5cb5501a46e64ab5dee506a2bfc8beeef864dae3d5b24b609f4d73ccdfa25d
def __init__(self, *, host: Opt[str]=None, port: int=9200, username: Opt[str]=None, password: Opt[str]=None, url_prefix: Opt[str]=attrib(default=None, metadata={CASING: 'URLPrefix'}), use_ssl: Opt[bool]=attrib(default=None, metadata={CASING: 'UseSSL'}), verify_certs: Opt[bool]=None, ca_certs: Opt[str]=attrib(default=None, metadata={CASING: 'CACerts'}), client_cert: Opt[str]=None, client_key: Opt[str]=None, aws_access_key: Opt[str]=attrib(default=None, metadata={CASING: 'AWSAccessKey'}), aws_secret_key: Opt[str]=attrib(default=None, metadata={CASING: 'AWSSecretKey'}), aws_region: Opt[str]=attrib(default=None, metadata={CASING: 'AWSRegion'}), aws_service_name: Opt[str]=attrib(default=None, metadata={CASING: 'AWSServiceName'})) -> None: "\n\n Parameters:\n host: The URI of th elasticsearch host (like 'host.adomain.com').\n port: The port to used (default is 9200).\n username: The user name for http_auth.\n password: The user's password for http_auth.\n url_prefix: The URL prefix.\n use_ssl: Whether we use SSL or not.\n verify_certs: Whether we check the certificates or not.\n ca_certs: Optional path to CA bundle on disk.\n client_cert: Path to the file containing the private key and the certificate, or cert only if using CientKey.\n client_key: Path to the file containing the private key if using separate cert and key files (client_cert will contain only the cert).\n aws_access_key: The AWS access key.\n aws_secret_key: The AWS secret key.\n aws_region: The AWS region.\n aws_service_name: The AWS service name.\n "
Parameters: host: The URI of th elasticsearch host (like 'host.adomain.com'). port: The port to used (default is 9200). username: The user name for http_auth. password: The user's password for http_auth. url_prefix: The URL prefix. use_ssl: Whether we use SSL or not. verify_certs: Whether we check the certificates or not. ca_certs: Optional path to CA bundle on disk. client_cert: Path to the file containing the private key and the certificate, or cert only if using CientKey. client_key: Path to the file containing the private key if using separate cert and key files (client_cert will contain only the cert). aws_access_key: The AWS access key. aws_secret_key: The AWS secret key. aws_region: The AWS region. aws_service_name: The AWS service name.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
__init__
jfallaire/generator-ps-boilerplate-project
2
python
def __init__(self, *, host: Opt[str]=None, port: int=9200, username: Opt[str]=None, password: Opt[str]=None, url_prefix: Opt[str]=attrib(default=None, metadata={CASING: 'URLPrefix'}), use_ssl: Opt[bool]=attrib(default=None, metadata={CASING: 'UseSSL'}), verify_certs: Opt[bool]=None, ca_certs: Opt[str]=attrib(default=None, metadata={CASING: 'CACerts'}), client_cert: Opt[str]=None, client_key: Opt[str]=None, aws_access_key: Opt[str]=attrib(default=None, metadata={CASING: 'AWSAccessKey'}), aws_secret_key: Opt[str]=attrib(default=None, metadata={CASING: 'AWSSecretKey'}), aws_region: Opt[str]=attrib(default=None, metadata={CASING: 'AWSRegion'}), aws_service_name: Opt[str]=attrib(default=None, metadata={CASING: 'AWSServiceName'})) -> None: "\n\n Parameters:\n host: The URI of th elasticsearch host (like 'host.adomain.com').\n port: The port to used (default is 9200).\n username: The user name for http_auth.\n password: The user's password for http_auth.\n url_prefix: The URL prefix.\n use_ssl: Whether we use SSL or not.\n verify_certs: Whether we check the certificates or not.\n ca_certs: Optional path to CA bundle on disk.\n client_cert: Path to the file containing the private key and the certificate, or cert only if using CientKey.\n client_key: Path to the file containing the private key if using separate cert and key files (client_cert will contain only the cert).\n aws_access_key: The AWS access key.\n aws_secret_key: The AWS secret key.\n aws_region: The AWS region.\n aws_service_name: The AWS service name.\n "
def __init__(self, *, host: Opt[str]=None, port: int=9200, username: Opt[str]=None, password: Opt[str]=None, url_prefix: Opt[str]=attrib(default=None, metadata={CASING: 'URLPrefix'}), use_ssl: Opt[bool]=attrib(default=None, metadata={CASING: 'UseSSL'}), verify_certs: Opt[bool]=None, ca_certs: Opt[str]=attrib(default=None, metadata={CASING: 'CACerts'}), client_cert: Opt[str]=None, client_key: Opt[str]=None, aws_access_key: Opt[str]=attrib(default=None, metadata={CASING: 'AWSAccessKey'}), aws_secret_key: Opt[str]=attrib(default=None, metadata={CASING: 'AWSSecretKey'}), aws_region: Opt[str]=attrib(default=None, metadata={CASING: 'AWSRegion'}), aws_service_name: Opt[str]=attrib(default=None, metadata={CASING: 'AWSServiceName'})) -> None: "\n\n Parameters:\n host: The URI of th elasticsearch host (like 'host.adomain.com').\n port: The port to used (default is 9200).\n username: The user name for http_auth.\n password: The user's password for http_auth.\n url_prefix: The URL prefix.\n use_ssl: Whether we use SSL or not.\n verify_certs: Whether we check the certificates or not.\n ca_certs: Optional path to CA bundle on disk.\n client_cert: Path to the file containing the private key and the certificate, or cert only if using CientKey.\n client_key: Path to the file containing the private key if using separate cert and key files (client_cert will contain only the cert).\n aws_access_key: The AWS access key.\n aws_secret_key: The AWS secret key.\n aws_region: The AWS region.\n aws_service_name: The AWS service name.\n "<|docstring|>Parameters: host: The URI of th elasticsearch host (like 'host.adomain.com'). port: The port to used (default is 9200). username: The user name for http_auth. password: The user's password for http_auth. url_prefix: The URL prefix. use_ssl: Whether we use SSL or not. verify_certs: Whether we check the certificates or not. ca_certs: Optional path to CA bundle on disk. client_cert: Path to the file containing the private key and the certificate, or cert only if using CientKey. client_key: Path to the file containing the private key if using separate cert and key files (client_cert will contain only the cert). aws_access_key: The AWS access key. aws_secret_key: The AWS secret key. aws_region: The AWS region. aws_service_name: The AWS service name.<|endoftext|>
912beba31fa3f801a8730d9efa2b50fbe7e8ceed48148afb140188580617a2fc
def __init__(self, *, message_store: Opt[str]=None, logger_config: Opt[str]=None) -> None: '\n\n Parameters:\n message_store: Optional folder where to keep a copy of the add_document messages.\n logger_config: Optional logger configuration. Format to be defined.\n '
Parameters: message_store: Optional folder where to keep a copy of the add_document messages. logger_config: Optional logger configuration. Format to be defined.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
__init__
jfallaire/generator-ps-boilerplate-project
2
python
def __init__(self, *, message_store: Opt[str]=None, logger_config: Opt[str]=None) -> None: '\n\n Parameters:\n message_store: Optional folder where to keep a copy of the add_document messages.\n logger_config: Optional logger configuration. Format to be defined.\n '
def __init__(self, *, message_store: Opt[str]=None, logger_config: Opt[str]=None) -> None: '\n\n Parameters:\n message_store: Optional folder where to keep a copy of the add_document messages.\n logger_config: Optional logger configuration. Format to be defined.\n '<|docstring|>Parameters: message_store: Optional folder where to keep a copy of the add_document messages. logger_config: Optional logger configuration. Format to be defined.<|endoftext|>
39c85cb56113b65457afe1795d4f81a449230c946b1344e1ff0df8d86bceec32
def __init__(self, *, connection_v: Opt[List[ElasticSearchConnection]]=None, indexer_config: Opt[ElasticSearchBladeConfig]=None) -> None: '\n\n Parameters:\n connection_v: List of elasticsearch connections.\n indexer_config: Indexer blade config.\n '
Parameters: connection_v: List of elasticsearch connections. indexer_config: Indexer blade config.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
__init__
jfallaire/generator-ps-boilerplate-project
2
python
def __init__(self, *, connection_v: Opt[List[ElasticSearchConnection]]=None, indexer_config: Opt[ElasticSearchBladeConfig]=None) -> None: '\n\n Parameters:\n connection_v: List of elasticsearch connections.\n indexer_config: Indexer blade config.\n '
def __init__(self, *, connection_v: Opt[List[ElasticSearchConnection]]=None, indexer_config: Opt[ElasticSearchBladeConfig]=None) -> None: '\n\n Parameters:\n connection_v: List of elasticsearch connections.\n indexer_config: Indexer blade config.\n '<|docstring|>Parameters: connection_v: List of elasticsearch connections. indexer_config: Indexer blade config.<|endoftext|>
4c2fdeea5a8945fd2d50d9e561299ead62d695f0fea69d589b01f2e5cba4d45e
def __init__(self, *, inconsistent_index: Opt[bool]=None, inconsistent_config: Opt[bool]=None) -> None: '\n\n Parameters:\n inconsistent_index: Whether the index is in an inconsistent state.\n inconsistent_config: Whether the index config is in an inconsistent state.\n '
Parameters: inconsistent_index: Whether the index is in an inconsistent state. inconsistent_config: Whether the index config is in an inconsistent state.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
__init__
jfallaire/generator-ps-boilerplate-project
2
python
def __init__(self, *, inconsistent_index: Opt[bool]=None, inconsistent_config: Opt[bool]=None) -> None: '\n\n Parameters:\n inconsistent_index: Whether the index is in an inconsistent state.\n inconsistent_config: Whether the index config is in an inconsistent state.\n '
def __init__(self, *, inconsistent_index: Opt[bool]=None, inconsistent_config: Opt[bool]=None) -> None: '\n\n Parameters:\n inconsistent_index: Whether the index is in an inconsistent state.\n inconsistent_config: Whether the index config is in an inconsistent state.\n '<|docstring|>Parameters: inconsistent_index: Whether the index is in an inconsistent state. inconsistent_config: Whether the index config is in an inconsistent state.<|endoftext|>
571b7aa71649a6347d29b8668afb1be778a260989ef647fb47ac3efb081c48e4
@api('GET/ranking') def get_ranking(self) -> Ranking: 'Get ranking configuration for the index.'
Get ranking configuration for the index.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
get_ranking
jfallaire/generator-ps-boilerplate-project
2
python
@api('GET/ranking') def get_ranking(self) -> Ranking:
@api('GET/ranking') def get_ranking(self) -> Ranking: <|docstring|>Get ranking configuration for the index.<|endoftext|>
ead6af2807bb275777fa08cdffac267f210311a0836765cb9be703fd8d7ceb01
@api('PUT/ranking') def update_ranking(self, *, ranking: Ranking) -> None: 'Update ranking configuration in the index.\n\n Parameters:\n ranking: The updated configuration for ranking.\n '
Update ranking configuration in the index. Parameters: ranking: The updated configuration for ranking.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
update_ranking
jfallaire/generator-ps-boilerplate-project
2
python
@api('PUT/ranking') def update_ranking(self, *, ranking: Ranking) -> None: 'Update ranking configuration in the index.\n\n Parameters:\n ranking: The updated configuration for ranking.\n '
@api('PUT/ranking') def update_ranking(self, *, ranking: Ranking) -> None: 'Update ranking configuration in the index.\n\n Parameters:\n ranking: The updated configuration for ranking.\n '<|docstring|>Update ranking configuration in the index. Parameters: ranking: The updated configuration for ranking.<|endoftext|>
f9756936f3586e2d841f19aaa595359ccfc4ae0dd8e8fe76ec736c98eb937df6
@api('GET/system') def get_system(self) -> System: 'Get system configuration for the index.'
Get system configuration for the index.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
get_system
jfallaire/generator-ps-boilerplate-project
2
python
@api('GET/system') def get_system(self) -> System:
@api('GET/system') def get_system(self) -> System: <|docstring|>Get system configuration for the index.<|endoftext|>
d214cf113ff5d6d2bf2fee7aba5539960c472b660d5d31e28657e1a8038da886
@api('PUT/system', system='system') def update_system(self, *, system: System) -> None: 'Update system configuration in the index.\n\n Parameters:\n system: The updated configuration for system.\n '
Update system configuration in the index. Parameters: system: The updated configuration for system.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
update_system
jfallaire/generator-ps-boilerplate-project
2
python
@api('PUT/system', system='system') def update_system(self, *, system: System) -> None: 'Update system configuration in the index.\n\n Parameters:\n system: The updated configuration for system.\n '
@api('PUT/system', system='system') def update_system(self, *, system: System) -> None: 'Update system configuration in the index.\n\n Parameters:\n system: The updated configuration for system.\n '<|docstring|>Update system configuration in the index. Parameters: system: The updated configuration for system.<|endoftext|>
4431a228c253ad4e644462f71d0fb9a5d319ba38eda08443c1a131185f6d5c6d
@api('GET/query_highlighter') def get_query_highlighter(self) -> QueryHighlighter: 'Get query highlighter configuration for the index.'
Get query highlighter configuration for the index.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
get_query_highlighter
jfallaire/generator-ps-boilerplate-project
2
python
@api('GET/query_highlighter') def get_query_highlighter(self) -> QueryHighlighter:
@api('GET/query_highlighter') def get_query_highlighter(self) -> QueryHighlighter: <|docstring|>Get query highlighter configuration for the index.<|endoftext|>
68d570ce59a676b447797653e5fc3910ce43935238a5e67fa66364a2bb455cb1
@api('PUT/query_highlighter') def update_query_highlighter(self, *, query_highlighter: QueryHighlighter) -> None: 'Update query highlighter configuration in the index.\n\n Parameters:\n query_highlighter: The updated configuration for query highlighter.\n '
Update query highlighter configuration in the index. Parameters: query_highlighter: The updated configuration for query highlighter.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
update_query_highlighter
jfallaire/generator-ps-boilerplate-project
2
python
@api('PUT/query_highlighter') def update_query_highlighter(self, *, query_highlighter: QueryHighlighter) -> None: 'Update query highlighter configuration in the index.\n\n Parameters:\n query_highlighter: The updated configuration for query highlighter.\n '
@api('PUT/query_highlighter') def update_query_highlighter(self, *, query_highlighter: QueryHighlighter) -> None: 'Update query highlighter configuration in the index.\n\n Parameters:\n query_highlighter: The updated configuration for query highlighter.\n '<|docstring|>Update query highlighter configuration in the index. Parameters: query_highlighter: The updated configuration for query highlighter.<|endoftext|>
0bdf1e46650ff37648c02a5a64789fdf39cc33fdfcbd6d33ef78953af6f64744
@api('GET/query_highlighter/highlight_tags') def get_highlight_tags(self) -> List[HighlightTag]: 'Get all the highlight tags in the index.'
Get all the highlight tags in the index.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
get_highlight_tags
jfallaire/generator-ps-boilerplate-project
2
python
@api('GET/query_highlighter/highlight_tags') def get_highlight_tags(self) -> List[HighlightTag]:
@api('GET/query_highlighter/highlight_tags') def get_highlight_tags(self) -> List[HighlightTag]: <|docstring|>Get all the highlight tags in the index.<|endoftext|>
c1ea092e69a348c387fe3bf4942d5630e7b7d696ad4e615d7757895fdfc35234
@api('GET/query_highlighter/highlight_tags/{highlight_tag_id}', highlight_tag_id='HighlightTagID') def get_highlight_tag(self, *, highlight_tag_id: int) -> HighlightTag: 'Get a highlight tag from the index.\n\n Parameters:\n highlight_tag_id: The id of the highlight tag.\n '
Get a highlight tag from the index. Parameters: highlight_tag_id: The id of the highlight tag.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
get_highlight_tag
jfallaire/generator-ps-boilerplate-project
2
python
@api('GET/query_highlighter/highlight_tags/{highlight_tag_id}', highlight_tag_id='HighlightTagID') def get_highlight_tag(self, *, highlight_tag_id: int) -> HighlightTag: 'Get a highlight tag from the index.\n\n Parameters:\n highlight_tag_id: The id of the highlight tag.\n '
@api('GET/query_highlighter/highlight_tags/{highlight_tag_id}', highlight_tag_id='HighlightTagID') def get_highlight_tag(self, *, highlight_tag_id: int) -> HighlightTag: 'Get a highlight tag from the index.\n\n Parameters:\n highlight_tag_id: The id of the highlight tag.\n '<|docstring|>Get a highlight tag from the index. Parameters: highlight_tag_id: The id of the highlight tag.<|endoftext|>
a7da2d47e331d76f322712cd141d8e29325926757c8b20c959181d93960cc7e2
@api('POST/query_highlighter/highlight_tags') def add_highlight_tag(self, *, highlight_tag: HighlightTag) -> None: 'Add a highlight tag to the index.\n\n Parameters:\n highlight_tag: The new highlight tag.\n '
Add a highlight tag to the index. Parameters: highlight_tag: The new highlight tag.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
add_highlight_tag
jfallaire/generator-ps-boilerplate-project
2
python
@api('POST/query_highlighter/highlight_tags') def add_highlight_tag(self, *, highlight_tag: HighlightTag) -> None: 'Add a highlight tag to the index.\n\n Parameters:\n highlight_tag: The new highlight tag.\n '
@api('POST/query_highlighter/highlight_tags') def add_highlight_tag(self, *, highlight_tag: HighlightTag) -> None: 'Add a highlight tag to the index.\n\n Parameters:\n highlight_tag: The new highlight tag.\n '<|docstring|>Add a highlight tag to the index. Parameters: highlight_tag: The new highlight tag.<|endoftext|>
c9312c87c6dce025be90abd65630b3ff93c89dd7917467f14f9c1d433b6c3415
@api('PUT/query_highlighter/highlight_tags/{highlight_tag_id}', highlight_tag_id='HighlightTagID') def update_highlight_tag(self, *, highlight_tag_id: int, highlight_tag: HighlightTag) -> None: 'Update a highlight tag in the index.\n\n Parameters:\n highlight_tag_id: The id of the highlight tag.\n highlight_tag: The updated highlight tag.\n '
Update a highlight tag in the index. Parameters: highlight_tag_id: The id of the highlight tag. highlight_tag: The updated highlight tag.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
update_highlight_tag
jfallaire/generator-ps-boilerplate-project
2
python
@api('PUT/query_highlighter/highlight_tags/{highlight_tag_id}', highlight_tag_id='HighlightTagID') def update_highlight_tag(self, *, highlight_tag_id: int, highlight_tag: HighlightTag) -> None: 'Update a highlight tag in the index.\n\n Parameters:\n highlight_tag_id: The id of the highlight tag.\n highlight_tag: The updated highlight tag.\n '
@api('PUT/query_highlighter/highlight_tags/{highlight_tag_id}', highlight_tag_id='HighlightTagID') def update_highlight_tag(self, *, highlight_tag_id: int, highlight_tag: HighlightTag) -> None: 'Update a highlight tag in the index.\n\n Parameters:\n highlight_tag_id: The id of the highlight tag.\n highlight_tag: The updated highlight tag.\n '<|docstring|>Update a highlight tag in the index. Parameters: highlight_tag_id: The id of the highlight tag. highlight_tag: The updated highlight tag.<|endoftext|>
b58da53a696516b872727a99f752b602af0fbff1d743bf98a9207daa3e78f8ae
@api('DELETE/query_highlighter/highlight_tags/{highlight_tag_id}', highlight_tag_id='HighlightTagID') def delete_highlight_tag(self, *, highlight_tag_id: int) -> None: 'Delete a highlight tag contained in the index.\n\n Parameters:\n highlight_tag_id: The id of the highlight tag.\n '
Delete a highlight tag contained in the index. Parameters: highlight_tag_id: The id of the highlight tag.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
delete_highlight_tag
jfallaire/generator-ps-boilerplate-project
2
python
@api('DELETE/query_highlighter/highlight_tags/{highlight_tag_id}', highlight_tag_id='HighlightTagID') def delete_highlight_tag(self, *, highlight_tag_id: int) -> None: 'Delete a highlight tag contained in the index.\n\n Parameters:\n highlight_tag_id: The id of the highlight tag.\n '
@api('DELETE/query_highlighter/highlight_tags/{highlight_tag_id}', highlight_tag_id='HighlightTagID') def delete_highlight_tag(self, *, highlight_tag_id: int) -> None: 'Delete a highlight tag contained in the index.\n\n Parameters:\n highlight_tag_id: The id of the highlight tag.\n '<|docstring|>Delete a highlight tag contained in the index. Parameters: highlight_tag_id: The id of the highlight tag.<|endoftext|>
27253aa3065f34c836113ca190227dc37c945bdd415c5f7baf28f828fb42a6c3
@api('GET/slices') def get_slices(self) -> List[Slice]: 'Get all the slices in the index.'
Get all the slices in the index.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
get_slices
jfallaire/generator-ps-boilerplate-project
2
python
@api('GET/slices') def get_slices(self) -> List[Slice]:
@api('GET/slices') def get_slices(self) -> List[Slice]: <|docstring|>Get all the slices in the index.<|endoftext|>
5b5d8487422a553d8d3bdcd0c468e5cbd4e10391d27afe063e05843e2e460f1e
@api('GET/slices/{slice_id}', slice_id='SliceID') def get_slice(self, *, slice_id: int) -> Slice: 'Get a slice from the index.\n\n Parameters:\n slice_id: The id of the slice.\n '
Get a slice from the index. Parameters: slice_id: The id of the slice.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
get_slice
jfallaire/generator-ps-boilerplate-project
2
python
@api('GET/slices/{slice_id}', slice_id='SliceID') def get_slice(self, *, slice_id: int) -> Slice: 'Get a slice from the index.\n\n Parameters:\n slice_id: The id of the slice.\n '
@api('GET/slices/{slice_id}', slice_id='SliceID') def get_slice(self, *, slice_id: int) -> Slice: 'Get a slice from the index.\n\n Parameters:\n slice_id: The id of the slice.\n '<|docstring|>Get a slice from the index. Parameters: slice_id: The id of the slice.<|endoftext|>
87af3c22650e81b1f9eddbd2c6c2ab195341fdeabfa5a4b2bc7b070a5e27536e
@api('POST/slices', slice_='Slice') def add_slice(self, *, slice_: Slice) -> None: 'Add a slice to the index.\n\n Parameters:\n slice_: The new slice.\n '
Add a slice to the index. Parameters: slice_: The new slice.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
add_slice
jfallaire/generator-ps-boilerplate-project
2
python
@api('POST/slices', slice_='Slice') def add_slice(self, *, slice_: Slice) -> None: 'Add a slice to the index.\n\n Parameters:\n slice_: The new slice.\n '
@api('POST/slices', slice_='Slice') def add_slice(self, *, slice_: Slice) -> None: 'Add a slice to the index.\n\n Parameters:\n slice_: The new slice.\n '<|docstring|>Add a slice to the index. Parameters: slice_: The new slice.<|endoftext|>
600d9f7487a9d04d46b575e48664624f57c98891fa810e80834b311fbaf1f932
@api('PUT/slices/{slice_id}', slice_id='SliceID', slice_='Slice') def update_slice(self, *, slice_id: int, slice_: Slice) -> None: 'Update a slice in the index.\n\n Parameters:\n slice_id: The id of the slice.\n slice_: The updated slice.\n '
Update a slice in the index. Parameters: slice_id: The id of the slice. slice_: The updated slice.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
update_slice
jfallaire/generator-ps-boilerplate-project
2
python
@api('PUT/slices/{slice_id}', slice_id='SliceID', slice_='Slice') def update_slice(self, *, slice_id: int, slice_: Slice) -> None: 'Update a slice in the index.\n\n Parameters:\n slice_id: The id of the slice.\n slice_: The updated slice.\n '
@api('PUT/slices/{slice_id}', slice_id='SliceID', slice_='Slice') def update_slice(self, *, slice_id: int, slice_: Slice) -> None: 'Update a slice in the index.\n\n Parameters:\n slice_id: The id of the slice.\n slice_: The updated slice.\n '<|docstring|>Update a slice in the index. Parameters: slice_id: The id of the slice. slice_: The updated slice.<|endoftext|>
2ee6fd21fac51d78062d4b0b9c8b995c930f0820e489b18b4cbc9d75c47ab72a
@api('DELETE/slices/{slice_id}', slice_id='SliceID') def delete_slice(self, *, slice_id: int) -> None: 'Delete a slice from the index.\n\n Parameters:\n slice_id: The id of the slice.\n '
Delete a slice from the index. Parameters: slice_id: The id of the slice.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
delete_slice
jfallaire/generator-ps-boilerplate-project
2
python
@api('DELETE/slices/{slice_id}', slice_id='SliceID') def delete_slice(self, *, slice_id: int) -> None: 'Delete a slice from the index.\n\n Parameters:\n slice_id: The id of the slice.\n '
@api('DELETE/slices/{slice_id}', slice_id='SliceID') def delete_slice(self, *, slice_id: int) -> None: 'Delete a slice from the index.\n\n Parameters:\n slice_id: The id of the slice.\n '<|docstring|>Delete a slice from the index. Parameters: slice_id: The id of the slice.<|endoftext|>
fb151bbec9d103061986ac3e0a4f56c3b2cb272811bed81cffbac9918cbe69d2
@api('GET/results_previewers') def get_results_previewers(self) -> List[ResultsPreviewer]: 'Get all the results previewers in the index.'
Get all the results previewers in the index.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
get_results_previewers
jfallaire/generator-ps-boilerplate-project
2
python
@api('GET/results_previewers') def get_results_previewers(self) -> List[ResultsPreviewer]:
@api('GET/results_previewers') def get_results_previewers(self) -> List[ResultsPreviewer]: <|docstring|>Get all the results previewers in the index.<|endoftext|>
734fb367be06758d38b51e01410b03da422dd565575de4808f60ed57b08d25b0
@api('GET/results_previewers/{results_previewer_id}', results_previewer_id='ResultsPreviewerID') def get_results_previewer(self, *, results_previewer_id: int) -> ResultsPreviewer: 'Get a results previewer from the index.\n\n Parameters:\n results_previewer_id: The id of the results previewer.\n '
Get a results previewer from the index. Parameters: results_previewer_id: The id of the results previewer.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
get_results_previewer
jfallaire/generator-ps-boilerplate-project
2
python
@api('GET/results_previewers/{results_previewer_id}', results_previewer_id='ResultsPreviewerID') def get_results_previewer(self, *, results_previewer_id: int) -> ResultsPreviewer: 'Get a results previewer from the index.\n\n Parameters:\n results_previewer_id: The id of the results previewer.\n '
@api('GET/results_previewers/{results_previewer_id}', results_previewer_id='ResultsPreviewerID') def get_results_previewer(self, *, results_previewer_id: int) -> ResultsPreviewer: 'Get a results previewer from the index.\n\n Parameters:\n results_previewer_id: The id of the results previewer.\n '<|docstring|>Get a results previewer from the index. Parameters: results_previewer_id: The id of the results previewer.<|endoftext|>
75be601709daf9c4ab49562dc9aa25690d7c5f6925bff988967df38f241f4f8c
@api('POST/results_previewers') def add_results_previewer(self, *, results_previewer: ResultsPreviewer) -> None: 'Add a results previewer to the index.\n\n Parameters:\n results_previewer: The new results previewer.\n '
Add a results previewer to the index. Parameters: results_previewer: The new results previewer.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
add_results_previewer
jfallaire/generator-ps-boilerplate-project
2
python
@api('POST/results_previewers') def add_results_previewer(self, *, results_previewer: ResultsPreviewer) -> None: 'Add a results previewer to the index.\n\n Parameters:\n results_previewer: The new results previewer.\n '
@api('POST/results_previewers') def add_results_previewer(self, *, results_previewer: ResultsPreviewer) -> None: 'Add a results previewer to the index.\n\n Parameters:\n results_previewer: The new results previewer.\n '<|docstring|>Add a results previewer to the index. Parameters: results_previewer: The new results previewer.<|endoftext|>
f3536f9c1f26eda944e57b9f852b86080d69edce9a5ea6fc8f771a021f5479bd
@api('PUT/results_previewers/{results_previewer_id}', results_previewer_id='ResultsPreviewerID') def update_results_previewer(self, *, results_previewer_id: int, results_previewer: ResultsPreviewer) -> None: 'Update a results previewer in the index.\n\n Parameters:\n results_previewer_id: The id of the results previewer.\n results_previewer: The updated results previewer.\n '
Update a results previewer in the index. Parameters: results_previewer_id: The id of the results previewer. results_previewer: The updated results previewer.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
update_results_previewer
jfallaire/generator-ps-boilerplate-project
2
python
@api('PUT/results_previewers/{results_previewer_id}', results_previewer_id='ResultsPreviewerID') def update_results_previewer(self, *, results_previewer_id: int, results_previewer: ResultsPreviewer) -> None: 'Update a results previewer in the index.\n\n Parameters:\n results_previewer_id: The id of the results previewer.\n results_previewer: The updated results previewer.\n '
@api('PUT/results_previewers/{results_previewer_id}', results_previewer_id='ResultsPreviewerID') def update_results_previewer(self, *, results_previewer_id: int, results_previewer: ResultsPreviewer) -> None: 'Update a results previewer in the index.\n\n Parameters:\n results_previewer_id: The id of the results previewer.\n results_previewer: The updated results previewer.\n '<|docstring|>Update a results previewer in the index. Parameters: results_previewer_id: The id of the results previewer. results_previewer: The updated results previewer.<|endoftext|>
5da87fb372f93b0158fc0e864cb592405dbe08f19d28058daff2a313541b7e5f
@api('DELETE/results_previewers/{results_previewer_id}', results_previewer_id='ResultsPreviewerID') def delete_results_previewer(self, *, results_previewer_id: int) -> None: 'Delete a results previewer from the index.\n\n Parameters:\n results_previewer_id: The id of the results previewer.\n '
Delete a results previewer from the index. Parameters: results_previewer_id: The id of the results previewer.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
delete_results_previewer
jfallaire/generator-ps-boilerplate-project
2
python
@api('DELETE/results_previewers/{results_previewer_id}', results_previewer_id='ResultsPreviewerID') def delete_results_previewer(self, *, results_previewer_id: int) -> None: 'Delete a results previewer from the index.\n\n Parameters:\n results_previewer_id: The id of the results previewer.\n '
@api('DELETE/results_previewers/{results_previewer_id}', results_previewer_id='ResultsPreviewerID') def delete_results_previewer(self, *, results_previewer_id: int) -> None: 'Delete a results previewer from the index.\n\n Parameters:\n results_previewer_id: The id of the results previewer.\n '<|docstring|>Delete a results previewer from the index. Parameters: results_previewer_id: The id of the results previewer.<|endoftext|>
43fbfe547d1dc112696ec0f011a7d47bfbeb87a7e5c9ad646ec8654271e758f2
@api('GET/tag_fields') def get_tag_fields(self) -> List[TagField]: 'Get all the tag fields in the index.'
Get all the tag fields in the index.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
get_tag_fields
jfallaire/generator-ps-boilerplate-project
2
python
@api('GET/tag_fields') def get_tag_fields(self) -> List[TagField]:
@api('GET/tag_fields') def get_tag_fields(self) -> List[TagField]: <|docstring|>Get all the tag fields in the index.<|endoftext|>
d05a0669d0c7eef06d21313d13d7906caa04b065b4f5195cbc6c45b1588490ad
@api('GET/tag_fields/{tag_field_id}', tag_field_id='TagFieldID') def get_tag_field(self, *, tag_field_id: int) -> TagField: 'Get a tag field from the index.\n\n Parameters:\n tag_field_id: The id of the tag field.\n '
Get a tag field from the index. Parameters: tag_field_id: The id of the tag field.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
get_tag_field
jfallaire/generator-ps-boilerplate-project
2
python
@api('GET/tag_fields/{tag_field_id}', tag_field_id='TagFieldID') def get_tag_field(self, *, tag_field_id: int) -> TagField: 'Get a tag field from the index.\n\n Parameters:\n tag_field_id: The id of the tag field.\n '
@api('GET/tag_fields/{tag_field_id}', tag_field_id='TagFieldID') def get_tag_field(self, *, tag_field_id: int) -> TagField: 'Get a tag field from the index.\n\n Parameters:\n tag_field_id: The id of the tag field.\n '<|docstring|>Get a tag field from the index. Parameters: tag_field_id: The id of the tag field.<|endoftext|>
03a2f14cbba59b5818fa4d0e20b0d27e045653de00f059088aea5b383806e05b
@api('POST/tag_fields') def add_tag_field(self, *, tag_field: TagField) -> None: 'Add a tag field to the index.\n\n Parameters:\n tag_field: The new tag field.\n '
Add a tag field to the index. Parameters: tag_field: The new tag field.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
add_tag_field
jfallaire/generator-ps-boilerplate-project
2
python
@api('POST/tag_fields') def add_tag_field(self, *, tag_field: TagField) -> None: 'Add a tag field to the index.\n\n Parameters:\n tag_field: The new tag field.\n '
@api('POST/tag_fields') def add_tag_field(self, *, tag_field: TagField) -> None: 'Add a tag field to the index.\n\n Parameters:\n tag_field: The new tag field.\n '<|docstring|>Add a tag field to the index. Parameters: tag_field: The new tag field.<|endoftext|>
9d3f5f8a9f79fa7d219b2437fb160199443ecda23308e446287a01eb69651af5
@api('PUT/tag_fields/{tag_field_id}', tag_field_id='TagFieldID') def update_tag_field(self, *, tag_field_id: int, tag_field: TagField) -> None: 'Update a tag field in the index.\n\n Parameters:\n tag_field_id: The id of the tag field.\n tag_field: The updated tag field.\n '
Update a tag field in the index. Parameters: tag_field_id: The id of the tag field. tag_field: The updated tag field.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
update_tag_field
jfallaire/generator-ps-boilerplate-project
2
python
@api('PUT/tag_fields/{tag_field_id}', tag_field_id='TagFieldID') def update_tag_field(self, *, tag_field_id: int, tag_field: TagField) -> None: 'Update a tag field in the index.\n\n Parameters:\n tag_field_id: The id of the tag field.\n tag_field: The updated tag field.\n '
@api('PUT/tag_fields/{tag_field_id}', tag_field_id='TagFieldID') def update_tag_field(self, *, tag_field_id: int, tag_field: TagField) -> None: 'Update a tag field in the index.\n\n Parameters:\n tag_field_id: The id of the tag field.\n tag_field: The updated tag field.\n '<|docstring|>Update a tag field in the index. Parameters: tag_field_id: The id of the tag field. tag_field: The updated tag field.<|endoftext|>
7e67fff1e834d791e6b05c15ad8a1ebc1c8eb089960612c3632af7c88f40dc19
@api('DELETE/tag_fields/{tag_field_id}', tag_field_id='TagFieldID') def delete_tag_field(self, *, tag_field_id: int) -> None: 'Delete a tag field from the index.\n\n Parameters:\n tag_field_id: The id of the tag field.\n '
Delete a tag field from the index. Parameters: tag_field_id: The id of the tag field.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
delete_tag_field
jfallaire/generator-ps-boilerplate-project
2
python
@api('DELETE/tag_fields/{tag_field_id}', tag_field_id='TagFieldID') def delete_tag_field(self, *, tag_field_id: int) -> None: 'Delete a tag field from the index.\n\n Parameters:\n tag_field_id: The id of the tag field.\n '
@api('DELETE/tag_fields/{tag_field_id}', tag_field_id='TagFieldID') def delete_tag_field(self, *, tag_field_id: int) -> None: 'Delete a tag field from the index.\n\n Parameters:\n tag_field_id: The id of the tag field.\n '<|docstring|>Delete a tag field from the index. Parameters: tag_field_id: The id of the tag field.<|endoftext|>
542e47f53baa43d256b2967905e2ee78b9460b02f0fa6513d9366fe295d430df
@api('GET/collaborative_ranking') def get_collaborative_ranking(self) -> CollaborativeRanking: 'Get collaborative ranking configuration for the index.'
Get collaborative ranking configuration for the index.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
get_collaborative_ranking
jfallaire/generator-ps-boilerplate-project
2
python
@api('GET/collaborative_ranking') def get_collaborative_ranking(self) -> CollaborativeRanking:
@api('GET/collaborative_ranking') def get_collaborative_ranking(self) -> CollaborativeRanking: <|docstring|>Get collaborative ranking configuration for the index.<|endoftext|>
19e97ffadc9b98f1a16c9bee5559be5bd2cbbe0584e803320d8e4965570cb63c
@api('PUT/collaborative_ranking') def update_collaborative_ranking(self, *, collaborative_ranking: CollaborativeRanking) -> None: 'Update collaborative ranking configuration in the index.\n\n Parameters:\n collaborative_ranking: The updated configuration for collaborative ranking.\n '
Update collaborative ranking configuration in the index. Parameters: collaborative_ranking: The updated configuration for collaborative ranking.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
update_collaborative_ranking
jfallaire/generator-ps-boilerplate-project
2
python
@api('PUT/collaborative_ranking') def update_collaborative_ranking(self, *, collaborative_ranking: CollaborativeRanking) -> None: 'Update collaborative ranking configuration in the index.\n\n Parameters:\n collaborative_ranking: The updated configuration for collaborative ranking.\n '
@api('PUT/collaborative_ranking') def update_collaborative_ranking(self, *, collaborative_ranking: CollaborativeRanking) -> None: 'Update collaborative ranking configuration in the index.\n\n Parameters:\n collaborative_ranking: The updated configuration for collaborative ranking.\n '<|docstring|>Update collaborative ranking configuration in the index. Parameters: collaborative_ranking: The updated configuration for collaborative ranking.<|endoftext|>
493ea4a88c99b7387858712ef52341fb04752529d9ceae11b4bdc2310344347c
@api('GET/physical_index') def get_physical_index(self) -> PhysicalIndex: 'Get physical index configuration for the index.'
Get physical index configuration for the index.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
get_physical_index
jfallaire/generator-ps-boilerplate-project
2
python
@api('GET/physical_index') def get_physical_index(self) -> PhysicalIndex:
@api('GET/physical_index') def get_physical_index(self) -> PhysicalIndex: <|docstring|>Get physical index configuration for the index.<|endoftext|>
48ee9a26882177af242abbd505514dc386e9147baaec2d6ce481b30839efb543
@api('PUT/physical_index') def update_physical_index(self, *, physical_index: PhysicalIndex) -> None: 'Update physical index configuration in the index.\n\n Parameters:\n physical_index: The updated configuration for physical index.\n '
Update physical index configuration in the index. Parameters: physical_index: The updated configuration for physical index.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
update_physical_index
jfallaire/generator-ps-boilerplate-project
2
python
@api('PUT/physical_index') def update_physical_index(self, *, physical_index: PhysicalIndex) -> None: 'Update physical index configuration in the index.\n\n Parameters:\n physical_index: The updated configuration for physical index.\n '
@api('PUT/physical_index') def update_physical_index(self, *, physical_index: PhysicalIndex) -> None: 'Update physical index configuration in the index.\n\n Parameters:\n physical_index: The updated configuration for physical index.\n '<|docstring|>Update physical index configuration in the index. Parameters: physical_index: The updated configuration for physical index.<|endoftext|>
2e49d213d26175cf71ebf794ccd4820e6b3e897594e8adc7d7f701dd49b8cabd
@api('GET/search_certificates') def get_search_certificates(self) -> List[SearchCertificate]: 'Get the search certificates for the index.'
Get the search certificates for the index.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
get_search_certificates
jfallaire/generator-ps-boilerplate-project
2
python
@api('GET/search_certificates') def get_search_certificates(self) -> List[SearchCertificate]:
@api('GET/search_certificates') def get_search_certificates(self) -> List[SearchCertificate]: <|docstring|>Get the search certificates for the index.<|endoftext|>
266f69f4b146a7c9b2b4f887a1414003ff638d03804f316fdc29ee95b0c422f5
@api('GET/search_certificates/{search_certificate_id}', search_certificate_id='SearchCertificateID') def get_search_certificate(self, *, search_certificate_id: int) -> SearchCertificate: 'Get a search certificate from the index.\n\n Parameters:\n search_certificate_id: The id of the search certificate.\n '
Get a search certificate from the index. Parameters: search_certificate_id: The id of the search certificate.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
get_search_certificate
jfallaire/generator-ps-boilerplate-project
2
python
@api('GET/search_certificates/{search_certificate_id}', search_certificate_id='SearchCertificateID') def get_search_certificate(self, *, search_certificate_id: int) -> SearchCertificate: 'Get a search certificate from the index.\n\n Parameters:\n search_certificate_id: The id of the search certificate.\n '
@api('GET/search_certificates/{search_certificate_id}', search_certificate_id='SearchCertificateID') def get_search_certificate(self, *, search_certificate_id: int) -> SearchCertificate: 'Get a search certificate from the index.\n\n Parameters:\n search_certificate_id: The id of the search certificate.\n '<|docstring|>Get a search certificate from the index. Parameters: search_certificate_id: The id of the search certificate.<|endoftext|>
d3e68a2f50c0fa78a5075a03d57039257cb1f073f67c045837527d41963c05e5
@api('POST/search_certificates') def add_search_certificate(self, *, search_certificate: SearchCertificate) -> None: 'Add a new search certificate to the index.\n\n Parameters:\n search_certificate: The new search certificate\n '
Add a new search certificate to the index. Parameters: search_certificate: The new search certificate
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
add_search_certificate
jfallaire/generator-ps-boilerplate-project
2
python
@api('POST/search_certificates') def add_search_certificate(self, *, search_certificate: SearchCertificate) -> None: 'Add a new search certificate to the index.\n\n Parameters:\n search_certificate: The new search certificate\n '
@api('POST/search_certificates') def add_search_certificate(self, *, search_certificate: SearchCertificate) -> None: 'Add a new search certificate to the index.\n\n Parameters:\n search_certificate: The new search certificate\n '<|docstring|>Add a new search certificate to the index. Parameters: search_certificate: The new search certificate<|endoftext|>
f23a46cc6a3ee56844f05f00f5d194f8a304b177a7931bb7388c36b261a6a8fd
@api('PUT/search_certificates/{search_certificate_id}', search_certificate_id='SearchCertificateID') def update_search_certificate(self, *, search_certificate_id: int, search_certificate: SearchCertificate) -> None: 'Update a search certificate in the index.\n\n Parameters:\n search_certificate_id: The id of the search certificate.\n search_certificate: The updated search certificate.\n '
Update a search certificate in the index. Parameters: search_certificate_id: The id of the search certificate. search_certificate: The updated search certificate.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
update_search_certificate
jfallaire/generator-ps-boilerplate-project
2
python
@api('PUT/search_certificates/{search_certificate_id}', search_certificate_id='SearchCertificateID') def update_search_certificate(self, *, search_certificate_id: int, search_certificate: SearchCertificate) -> None: 'Update a search certificate in the index.\n\n Parameters:\n search_certificate_id: The id of the search certificate.\n search_certificate: The updated search certificate.\n '
@api('PUT/search_certificates/{search_certificate_id}', search_certificate_id='SearchCertificateID') def update_search_certificate(self, *, search_certificate_id: int, search_certificate: SearchCertificate) -> None: 'Update a search certificate in the index.\n\n Parameters:\n search_certificate_id: The id of the search certificate.\n search_certificate: The updated search certificate.\n '<|docstring|>Update a search certificate in the index. Parameters: search_certificate_id: The id of the search certificate. search_certificate: The updated search certificate.<|endoftext|>
f91b9441a99ac8a44e48d542765d4c20141f72cdd6b01bfc6a313d13a8619d52
@api('DELETE/search_certificates/{search_certificate_id}', search_certificate_id='SearchCertificateID') def delete_search_certificate(self, *, search_certificate_id: int) -> None: 'Delete a search certificate from the index.\n\n Parameters:\n search_certificate_id: The id of the search certificate.\n '
Delete a search certificate from the index. Parameters: search_certificate_id: The id of the search certificate.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
delete_search_certificate
jfallaire/generator-ps-boilerplate-project
2
python
@api('DELETE/search_certificates/{search_certificate_id}', search_certificate_id='SearchCertificateID') def delete_search_certificate(self, *, search_certificate_id: int) -> None: 'Delete a search certificate from the index.\n\n Parameters:\n search_certificate_id: The id of the search certificate.\n '
@api('DELETE/search_certificates/{search_certificate_id}', search_certificate_id='SearchCertificateID') def delete_search_certificate(self, *, search_certificate_id: int) -> None: 'Delete a search certificate from the index.\n\n Parameters:\n search_certificate_id: The id of the search certificate.\n '<|docstring|>Delete a search certificate from the index. Parameters: search_certificate_id: The id of the search certificate.<|endoftext|>
b1bb0e54a2d2790a96e2a4ee980d518ad1ea3773414cd166dc274ac08fc002cf
@api('PUT/index') def set_config(self, *, configuration: IndexerConfig) -> None: 'Set the indexer configuration\n\n Parameters:\n configuration: The new configuration.\n '
Set the indexer configuration Parameters: configuration: The new configuration.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
set_config
jfallaire/generator-ps-boilerplate-project
2
python
@api('PUT/index') def set_config(self, *, configuration: IndexerConfig) -> None: 'Set the indexer configuration\n\n Parameters:\n configuration: The new configuration.\n '
@api('PUT/index') def set_config(self, *, configuration: IndexerConfig) -> None: 'Set the indexer configuration\n\n Parameters:\n configuration: The new configuration.\n '<|docstring|>Set the indexer configuration Parameters: configuration: The new configuration.<|endoftext|>
06a56e99bdf7b8e1884920071380886593abbc1e143a0de4b7c9cc647ff9b257
@api('GET/index') def get_config(self) -> IndexerConfig: 'Get the indexer configuration'
Get the indexer configuration
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
get_config
jfallaire/generator-ps-boilerplate-project
2
python
@api('GET/index') def get_config(self) -> IndexerConfig:
@api('GET/index') def get_config(self) -> IndexerConfig: <|docstring|>Get the indexer configuration<|endoftext|>
b2713c8d57d1816909914215707ee954552a7fd0ae7f2bc850973a635588f456
@api('GET/status') def get_state(self) -> BladeState: 'Get the state of the index.'
Get the state of the index.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
get_state
jfallaire/generator-ps-boilerplate-project
2
python
@api('GET/status') def get_state(self) -> BladeState:
@api('GET/status') def get_state(self) -> BladeState: <|docstring|>Get the state of the index.<|endoftext|>
a9fda0f50edaba5f88a7c5585a47f468f7344fc6038948ebedd7287d552e46a6
@api('DELETE/index') def delete_index_data(self, *, delete_config: bool) -> None: 'Delete all files used by an index node.\n\n Parameters:\n delete_config: True to delete the config folder.\n '
Delete all files used by an index node. Parameters: delete_config: True to delete the config folder.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
delete_index_data
jfallaire/generator-ps-boilerplate-project
2
python
@api('DELETE/index') def delete_index_data(self, *, delete_config: bool) -> None: 'Delete all files used by an index node.\n\n Parameters:\n delete_config: True to delete the config folder.\n '
@api('DELETE/index') def delete_index_data(self, *, delete_config: bool) -> None: 'Delete all files used by an index node.\n\n Parameters:\n delete_config: True to delete the config folder.\n '<|docstring|>Delete all files used by an index node. Parameters: delete_config: True to delete the config folder.<|endoftext|>
8f481aca698acf9e98f222dcbde797a8b95d1471f6483f158db0bf69d4c357e7
@api('GET/creation_date') def get_creation_date(self) -> datetime: "Get the index creation date. Will be set to the source's value on the destination when synchronizing."
Get the index creation date. Will be set to the source's value on the destination when synchronizing.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
get_creation_date
jfallaire/generator-ps-boilerplate-project
2
python
@api('GET/creation_date') def get_creation_date(self) -> datetime:
@api('GET/creation_date') def get_creation_date(self) -> datetime: <|docstring|>Get the index creation date. Will be set to the source's value on the destination when synchronizing.<|endoftext|>
c50c84ac6286dbeb265a67c9138bec3f9cdb01fe5d85a24c6aa3c90336423a00
@api('GET/document_keys') def get_document_keys(self, *, starting_document_key: str, page_size: int=1000) -> List[str]: 'Gets a list of indexed document keys, starting from the specified position.\n\n Parameters:\n starting_document_key: The key used to specify where to start the document keys listing.\n page_size: The maximum number of document keys to list.\n '
Gets a list of indexed document keys, starting from the specified position. Parameters: starting_document_key: The key used to specify where to start the document keys listing. page_size: The maximum number of document keys to list.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
get_document_keys
jfallaire/generator-ps-boilerplate-project
2
python
@api('GET/document_keys') def get_document_keys(self, *, starting_document_key: str, page_size: int=1000) -> List[str]: 'Gets a list of indexed document keys, starting from the specified position.\n\n Parameters:\n starting_document_key: The key used to specify where to start the document keys listing.\n page_size: The maximum number of document keys to list.\n '
@api('GET/document_keys') def get_document_keys(self, *, starting_document_key: str, page_size: int=1000) -> List[str]: 'Gets a list of indexed document keys, starting from the specified position.\n\n Parameters:\n starting_document_key: The key used to specify where to start the document keys listing.\n page_size: The maximum number of document keys to list.\n '<|docstring|>Gets a list of indexed document keys, starting from the specified position. Parameters: starting_document_key: The key used to specify where to start the document keys listing. page_size: The maximum number of document keys to list.<|endoftext|>
a0075d644c793b48dd7fc2501e02eb665f77e46d5bdc5e887b0b422225dde25a
@api('GET/collections') def get_collections(self) -> List[Collection]: 'Get all the collections in the index.'
Get all the collections in the index.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
get_collections
jfallaire/generator-ps-boilerplate-project
2
python
@api('GET/collections') def get_collections(self) -> List[Collection]:
@api('GET/collections') def get_collections(self) -> List[Collection]: <|docstring|>Get all the collections in the index.<|endoftext|>
ab3f5a3bb036f2dc57b4e38a1b14f651e6beb4f8753f8c72d2c8efd38a664237
@api('GET/collections/{collection_id}', collection_id='CollectionID') def get_collection(self, *, collection_id: int) -> Collection: 'Get the config of a collection from the index.\n\n Parameters:\n collection_id: The id of the collection.\n '
Get the config of a collection from the index. Parameters: collection_id: The id of the collection.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
get_collection
jfallaire/generator-ps-boilerplate-project
2
python
@api('GET/collections/{collection_id}', collection_id='CollectionID') def get_collection(self, *, collection_id: int) -> Collection: 'Get the config of a collection from the index.\n\n Parameters:\n collection_id: The id of the collection.\n '
@api('GET/collections/{collection_id}', collection_id='CollectionID') def get_collection(self, *, collection_id: int) -> Collection: 'Get the config of a collection from the index.\n\n Parameters:\n collection_id: The id of the collection.\n '<|docstring|>Get the config of a collection from the index. Parameters: collection_id: The id of the collection.<|endoftext|>
5df2eb1f381e9d3a85795997ba57f717ef66144fe21b1d119016255595752010
@api('PUT/collections') def set_collections(self, *, collections: List[Collection]) -> None: 'Set the collections in the index.\n\n Parameters:\n collections: The collections for the index.\n '
Set the collections in the index. Parameters: collections: The collections for the index.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
set_collections
jfallaire/generator-ps-boilerplate-project
2
python
@api('PUT/collections') def set_collections(self, *, collections: List[Collection]) -> None: 'Set the collections in the index.\n\n Parameters:\n collections: The collections for the index.\n '
@api('PUT/collections') def set_collections(self, *, collections: List[Collection]) -> None: 'Set the collections in the index.\n\n Parameters:\n collections: The collections for the index.\n '<|docstring|>Set the collections in the index. Parameters: collections: The collections for the index.<|endoftext|>
0cef5e69ce668bab6906a4c9f09c9da9ae9e67e2510ce8e50592e64c95b64fa4
@api('POST/collections') def add_collection(self, *, collection: Collection) -> None: 'Add a collection to the index.\n\n Parameters:\n collection: The configuration for the new collection.\n '
Add a collection to the index. Parameters: collection: The configuration for the new collection.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
add_collection
jfallaire/generator-ps-boilerplate-project
2
python
@api('POST/collections') def add_collection(self, *, collection: Collection) -> None: 'Add a collection to the index.\n\n Parameters:\n collection: The configuration for the new collection.\n '
@api('POST/collections') def add_collection(self, *, collection: Collection) -> None: 'Add a collection to the index.\n\n Parameters:\n collection: The configuration for the new collection.\n '<|docstring|>Add a collection to the index. Parameters: collection: The configuration for the new collection.<|endoftext|>
8de4c28e1a58140397d086e2a44efa80df0b4d9fe676fbc7257ac7321649d2ad
@api('PUT/collections/{collection_id}', collection_id='CollectionID') def update_collection(self, *, collection_id: int, collection: Collection) -> None: 'Update a collection in the index.\n\n Parameters:\n collection_id: The id of the collection.\n collection: The updated configuration for the collection.\n '
Update a collection in the index. Parameters: collection_id: The id of the collection. collection: The updated configuration for the collection.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
update_collection
jfallaire/generator-ps-boilerplate-project
2
python
@api('PUT/collections/{collection_id}', collection_id='CollectionID') def update_collection(self, *, collection_id: int, collection: Collection) -> None: 'Update a collection in the index.\n\n Parameters:\n collection_id: The id of the collection.\n collection: The updated configuration for the collection.\n '
@api('PUT/collections/{collection_id}', collection_id='CollectionID') def update_collection(self, *, collection_id: int, collection: Collection) -> None: 'Update a collection in the index.\n\n Parameters:\n collection_id: The id of the collection.\n collection: The updated configuration for the collection.\n '<|docstring|>Update a collection in the index. Parameters: collection_id: The id of the collection. collection: The updated configuration for the collection.<|endoftext|>
31db0de7ac83cb72635ef8034b1341274f16396154e9fd2dc9cf5ed319b2c46f
@api('DELETE/collections/{collection_id}', collection_id='CollectionID') def delete_collection(self, *, collection_id: int) -> None: 'Delete a collection from the index.\n\n Parameters:\n collection_id: The id of the collection.\n '
Delete a collection from the index. Parameters: collection_id: The id of the collection.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
delete_collection
jfallaire/generator-ps-boilerplate-project
2
python
@api('DELETE/collections/{collection_id}', collection_id='CollectionID') def delete_collection(self, *, collection_id: int) -> None: 'Delete a collection from the index.\n\n Parameters:\n collection_id: The id of the collection.\n '
@api('DELETE/collections/{collection_id}', collection_id='CollectionID') def delete_collection(self, *, collection_id: int) -> None: 'Delete a collection from the index.\n\n Parameters:\n collection_id: The id of the collection.\n '<|docstring|>Delete a collection from the index. Parameters: collection_id: The id of the collection.<|endoftext|>
0972129ebfbf016e89d41892844a3726df4cf5ea8271a0025f1d95176120b1c8
@api('GET/collections/{collection_id}/sources', collection_id='CollectionID') def get_sources(self, *, collection_id: int) -> List[Source]: 'Get all the sources for a collection.\n\n Parameters:\n collection_id: The id of the parent collection.\n '
Get all the sources for a collection. Parameters: collection_id: The id of the parent collection.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
get_sources
jfallaire/generator-ps-boilerplate-project
2
python
@api('GET/collections/{collection_id}/sources', collection_id='CollectionID') def get_sources(self, *, collection_id: int) -> List[Source]: 'Get all the sources for a collection.\n\n Parameters:\n collection_id: The id of the parent collection.\n '
@api('GET/collections/{collection_id}/sources', collection_id='CollectionID') def get_sources(self, *, collection_id: int) -> List[Source]: 'Get all the sources for a collection.\n\n Parameters:\n collection_id: The id of the parent collection.\n '<|docstring|>Get all the sources for a collection. Parameters: collection_id: The id of the parent collection.<|endoftext|>
50bb8a801c059d6d38e1c277a166fde60c6f36876673220d4f9bfc25a100ec45
@api('GET/collections/{collection_id}/sources/{source_id}', collection_id='CollectionID', source_id='SourceID') def get_source(self, *, collection_id: int, source_id: int) -> Source: 'Get the config of a source for a collection.\n\n Parameters:\n collection_id: The id of the parent collection.\n source_id: The id of the source.\n '
Get the config of a source for a collection. Parameters: collection_id: The id of the parent collection. source_id: The id of the source.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
get_source
jfallaire/generator-ps-boilerplate-project
2
python
@api('GET/collections/{collection_id}/sources/{source_id}', collection_id='CollectionID', source_id='SourceID') def get_source(self, *, collection_id: int, source_id: int) -> Source: 'Get the config of a source for a collection.\n\n Parameters:\n collection_id: The id of the parent collection.\n source_id: The id of the source.\n '
@api('GET/collections/{collection_id}/sources/{source_id}', collection_id='CollectionID', source_id='SourceID') def get_source(self, *, collection_id: int, source_id: int) -> Source: 'Get the config of a source for a collection.\n\n Parameters:\n collection_id: The id of the parent collection.\n source_id: The id of the source.\n '<|docstring|>Get the config of a source for a collection. Parameters: collection_id: The id of the parent collection. source_id: The id of the source.<|endoftext|>
6297ffdf1ce0f662f3ccbd5de989ea75302f8c75ed6cf6d16fa852027be6f7e3
@api('PUT/collections/{collection_id}/sources', collection_id='CollectionID') def set_sources(self, *, collection_id: int, sources: List[Source]) -> None: 'Set the sources for a collection in the index.\n\n Parameters:\n collection_id: The id of the parent collection.\n sources: The sources for the collection in the index.\n '
Set the sources for a collection in the index. Parameters: collection_id: The id of the parent collection. sources: The sources for the collection in the index.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
set_sources
jfallaire/generator-ps-boilerplate-project
2
python
@api('PUT/collections/{collection_id}/sources', collection_id='CollectionID') def set_sources(self, *, collection_id: int, sources: List[Source]) -> None: 'Set the sources for a collection in the index.\n\n Parameters:\n collection_id: The id of the parent collection.\n sources: The sources for the collection in the index.\n '
@api('PUT/collections/{collection_id}/sources', collection_id='CollectionID') def set_sources(self, *, collection_id: int, sources: List[Source]) -> None: 'Set the sources for a collection in the index.\n\n Parameters:\n collection_id: The id of the parent collection.\n sources: The sources for the collection in the index.\n '<|docstring|>Set the sources for a collection in the index. Parameters: collection_id: The id of the parent collection. sources: The sources for the collection in the index.<|endoftext|>
7374b5899a2360e56faeb7810edeee1156a51bb977827924e3be5d80c5d8bcb7
@api('POST/collections/{collection_id}/sources', collection_id='CollectionID') def add_source(self, *, collection_id: int, source: Source) -> None: 'Add a source to the index.\n\n Parameters:\n collection_id: The id of the parent collection.\n source: The configuration for the new source.\n '
Add a source to the index. Parameters: collection_id: The id of the parent collection. source: The configuration for the new source.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
add_source
jfallaire/generator-ps-boilerplate-project
2
python
@api('POST/collections/{collection_id}/sources', collection_id='CollectionID') def add_source(self, *, collection_id: int, source: Source) -> None: 'Add a source to the index.\n\n Parameters:\n collection_id: The id of the parent collection.\n source: The configuration for the new source.\n '
@api('POST/collections/{collection_id}/sources', collection_id='CollectionID') def add_source(self, *, collection_id: int, source: Source) -> None: 'Add a source to the index.\n\n Parameters:\n collection_id: The id of the parent collection.\n source: The configuration for the new source.\n '<|docstring|>Add a source to the index. Parameters: collection_id: The id of the parent collection. source: The configuration for the new source.<|endoftext|>
412dbe04cbe2cf53208184c926a8dabaf52e6b0d362cc69522062db6b65218ca
@api('PUT/collections/{collection_id}/sources/{source_id}', collection_id='CollectionID', source_id='SourceID') def update_source(self, *, collection_id: int, source_id: int, source: Source) -> None: 'Update a source in the index.\n\n Parameters:\n collection_id: The id of the parent collection.\n source_id: The id of the source.\n source: The updated configuration for the source.\n '
Update a source in the index. Parameters: collection_id: The id of the parent collection. source_id: The id of the source. source: The updated configuration for the source.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
update_source
jfallaire/generator-ps-boilerplate-project
2
python
@api('PUT/collections/{collection_id}/sources/{source_id}', collection_id='CollectionID', source_id='SourceID') def update_source(self, *, collection_id: int, source_id: int, source: Source) -> None: 'Update a source in the index.\n\n Parameters:\n collection_id: The id of the parent collection.\n source_id: The id of the source.\n source: The updated configuration for the source.\n '
@api('PUT/collections/{collection_id}/sources/{source_id}', collection_id='CollectionID', source_id='SourceID') def update_source(self, *, collection_id: int, source_id: int, source: Source) -> None: 'Update a source in the index.\n\n Parameters:\n collection_id: The id of the parent collection.\n source_id: The id of the source.\n source: The updated configuration for the source.\n '<|docstring|>Update a source in the index. Parameters: collection_id: The id of the parent collection. source_id: The id of the source. source: The updated configuration for the source.<|endoftext|>
738a09473d709212c9fb17b1a820f25eff4099da4257e5282f2d8a0d10daf536
@api('DELETE/collections/{collection_id}/sources/{source_id}', collection_id='CollectionID', source_id='SourceID') def delete_source(self, *, collection_id: int, source_id: int) -> None: 'Delete a source contained in the index.\n\n Parameters:\n collection_id: The id of the parent collection.\n source_id: The id of the source.\n '
Delete a source contained in the index. Parameters: collection_id: The id of the parent collection. source_id: The id of the source.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
delete_source
jfallaire/generator-ps-boilerplate-project
2
python
@api('DELETE/collections/{collection_id}/sources/{source_id}', collection_id='CollectionID', source_id='SourceID') def delete_source(self, *, collection_id: int, source_id: int) -> None: 'Delete a source contained in the index.\n\n Parameters:\n collection_id: The id of the parent collection.\n source_id: The id of the source.\n '
@api('DELETE/collections/{collection_id}/sources/{source_id}', collection_id='CollectionID', source_id='SourceID') def delete_source(self, *, collection_id: int, source_id: int) -> None: 'Delete a source contained in the index.\n\n Parameters:\n collection_id: The id of the parent collection.\n source_id: The id of the source.\n '<|docstring|>Delete a source contained in the index. Parameters: collection_id: The id of the parent collection. source_id: The id of the source.<|endoftext|>
1e424ced2a100eb019f199941b3a16492254280f25d310460402aecb91cef829
@api('GET/fields') def get_fields(self) -> List[Field]: 'Get all fields in the index.'
Get all fields in the index.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
get_fields
jfallaire/generator-ps-boilerplate-project
2
python
@api('GET/fields') def get_fields(self) -> List[Field]:
@api('GET/fields') def get_fields(self) -> List[Field]: <|docstring|>Get all fields in the index.<|endoftext|>
84547afaf29b05afa2fa597b3003c74dc7146f611915996147a279e864887653
@api('PUT/fields/id') def set_fields_by_id(self, *, fields: List[Field]) -> None: 'Set the fields in the index.\n\n Parameters:\n fields: The fields for the index.\n '
Set the fields in the index. Parameters: fields: The fields for the index.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
set_fields_by_id
jfallaire/generator-ps-boilerplate-project
2
python
@api('PUT/fields/id') def set_fields_by_id(self, *, fields: List[Field]) -> None: 'Set the fields in the index.\n\n Parameters:\n fields: The fields for the index.\n '
@api('PUT/fields/id') def set_fields_by_id(self, *, fields: List[Field]) -> None: 'Set the fields in the index.\n\n Parameters:\n fields: The fields for the index.\n '<|docstring|>Set the fields in the index. Parameters: fields: The fields for the index.<|endoftext|>
357a31e5068f21e4d9bb6d000c73859028851aa778187b366e3e36def557803d
@api('PUT/fields/name') def set_fields_by_name(self, *, fields: List[Field]) -> None: 'Set the fields in the index.\n\n Parameters:\n fields: The fields for the index.\n '
Set the fields in the index. Parameters: fields: The fields for the index.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
set_fields_by_name
jfallaire/generator-ps-boilerplate-project
2
python
@api('PUT/fields/name') def set_fields_by_name(self, *, fields: List[Field]) -> None: 'Set the fields in the index.\n\n Parameters:\n fields: The fields for the index.\n '
@api('PUT/fields/name') def set_fields_by_name(self, *, fields: List[Field]) -> None: 'Set the fields in the index.\n\n Parameters:\n fields: The fields for the index.\n '<|docstring|>Set the fields in the index. Parameters: fields: The fields for the index.<|endoftext|>
41ee576faed5ed9f2e90addc367f70c7efed69a13f38f585f1b1be16fb08dfee
@api('GET/fields/id/{field_id}', field_id='FieldID') def get_field_by_id(self, *, field_id: int) -> Field: 'Get the config of a field from the index.\n\n Parameters:\n field_id: The id of the field.\n '
Get the config of a field from the index. Parameters: field_id: The id of the field.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
get_field_by_id
jfallaire/generator-ps-boilerplate-project
2
python
@api('GET/fields/id/{field_id}', field_id='FieldID') def get_field_by_id(self, *, field_id: int) -> Field: 'Get the config of a field from the index.\n\n Parameters:\n field_id: The id of the field.\n '
@api('GET/fields/id/{field_id}', field_id='FieldID') def get_field_by_id(self, *, field_id: int) -> Field: 'Get the config of a field from the index.\n\n Parameters:\n field_id: The id of the field.\n '<|docstring|>Get the config of a field from the index. Parameters: field_id: The id of the field.<|endoftext|>
c57d3b970b2a37e98e67127f6fc64abf9cbc5a65ecc08f3aa20c3d558efd9542
@api('GET/fields/name/{field_name}') def get_field_by_name(self, *, field_name: str) -> Field: 'Get the config of a field from the index.\n\n Parameters:\n field_name: The name of the field.\n '
Get the config of a field from the index. Parameters: field_name: The name of the field.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
get_field_by_name
jfallaire/generator-ps-boilerplate-project
2
python
@api('GET/fields/name/{field_name}') def get_field_by_name(self, *, field_name: str) -> Field: 'Get the config of a field from the index.\n\n Parameters:\n field_name: The name of the field.\n '
@api('GET/fields/name/{field_name}') def get_field_by_name(self, *, field_name: str) -> Field: 'Get the config of a field from the index.\n\n Parameters:\n field_name: The name of the field.\n '<|docstring|>Get the config of a field from the index. Parameters: field_name: The name of the field.<|endoftext|>
d0f1d8ba0497e1d6a216472e07fd3bb3ffba5eb60dac9f1794da4aca0763b619
@api('POST/fields/batch') def add_fields(self, *, fields: List[Field]) -> None: 'Add a batch of fields to the index.\n\n Parameters:\n fields: The configurations for the new fields.\n '
Add a batch of fields to the index. Parameters: fields: The configurations for the new fields.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
add_fields
jfallaire/generator-ps-boilerplate-project
2
python
@api('POST/fields/batch') def add_fields(self, *, fields: List[Field]) -> None: 'Add a batch of fields to the index.\n\n Parameters:\n fields: The configurations for the new fields.\n '
@api('POST/fields/batch') def add_fields(self, *, fields: List[Field]) -> None: 'Add a batch of fields to the index.\n\n Parameters:\n fields: The configurations for the new fields.\n '<|docstring|>Add a batch of fields to the index. Parameters: fields: The configurations for the new fields.<|endoftext|>
72590eb5e9a49b32a86ade90fbbc65af0e5097fdd80f3bfb45816552aeea310d
@api('PUT/fields/batch/id') def update_fields_by_id(self, *, fields: List[Field]) -> None: 'Update a batch fields in the index.\n\n Parameters:\n fields: The updated configurations for the fields.\n '
Update a batch fields in the index. Parameters: fields: The updated configurations for the fields.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
update_fields_by_id
jfallaire/generator-ps-boilerplate-project
2
python
@api('PUT/fields/batch/id') def update_fields_by_id(self, *, fields: List[Field]) -> None: 'Update a batch fields in the index.\n\n Parameters:\n fields: The updated configurations for the fields.\n '
@api('PUT/fields/batch/id') def update_fields_by_id(self, *, fields: List[Field]) -> None: 'Update a batch fields in the index.\n\n Parameters:\n fields: The updated configurations for the fields.\n '<|docstring|>Update a batch fields in the index. Parameters: fields: The updated configurations for the fields.<|endoftext|>
bf75f6dec608893393704493b5f2c60c6a029eac5a1d2c550c346a3e1becc970
@api('PUT/fields/batch/name') def update_fields_by_name(self, *, fields: List[Field]) -> None: 'Update a batch of fields in the index.\n\n Parameters:\n fields: The updated configurations for the fields.\n '
Update a batch of fields in the index. Parameters: fields: The updated configurations for the fields.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
update_fields_by_name
jfallaire/generator-ps-boilerplate-project
2
python
@api('PUT/fields/batch/name') def update_fields_by_name(self, *, fields: List[Field]) -> None: 'Update a batch of fields in the index.\n\n Parameters:\n fields: The updated configurations for the fields.\n '
@api('PUT/fields/batch/name') def update_fields_by_name(self, *, fields: List[Field]) -> None: 'Update a batch of fields in the index.\n\n Parameters:\n fields: The updated configurations for the fields.\n '<|docstring|>Update a batch of fields in the index. Parameters: fields: The updated configurations for the fields.<|endoftext|>
c065c66f7fcc20e98d242c312036ca9362d9810948d58644565b32049f431f20
@api('DELETE/fields/batch/id', field_ids='FieldIDs') def delete_fields_by_id(self, *, field_ids: List[int]) -> None: 'Delete a batch of field contained in the index.\n\n Parameters:\n field_ids: The ids of the fields.\n '
Delete a batch of field contained in the index. Parameters: field_ids: The ids of the fields.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
delete_fields_by_id
jfallaire/generator-ps-boilerplate-project
2
python
@api('DELETE/fields/batch/id', field_ids='FieldIDs') def delete_fields_by_id(self, *, field_ids: List[int]) -> None: 'Delete a batch of field contained in the index.\n\n Parameters:\n field_ids: The ids of the fields.\n '
@api('DELETE/fields/batch/id', field_ids='FieldIDs') def delete_fields_by_id(self, *, field_ids: List[int]) -> None: 'Delete a batch of field contained in the index.\n\n Parameters:\n field_ids: The ids of the fields.\n '<|docstring|>Delete a batch of field contained in the index. Parameters: field_ids: The ids of the fields.<|endoftext|>
28582ed697ae59c6fb95ce4b244a74954115cccf2007133fa168c61af0780e6f
@api('DELETE/fields/batch/name') def delete_fields_by_name(self, *, field_names: List[str]) -> None: 'Delete a batch of fields contained in the index.\n\n Parameters:\n field_names: The names of the fields.\n '
Delete a batch of fields contained in the index. Parameters: field_names: The names of the fields.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
delete_fields_by_name
jfallaire/generator-ps-boilerplate-project
2
python
@api('DELETE/fields/batch/name') def delete_fields_by_name(self, *, field_names: List[str]) -> None: 'Delete a batch of fields contained in the index.\n\n Parameters:\n field_names: The names of the fields.\n '
@api('DELETE/fields/batch/name') def delete_fields_by_name(self, *, field_names: List[str]) -> None: 'Delete a batch of fields contained in the index.\n\n Parameters:\n field_names: The names of the fields.\n '<|docstring|>Delete a batch of fields contained in the index. Parameters: field_names: The names of the fields.<|endoftext|>
e523b218badd9deb253d51a3c76b31bf21eeb29c7a42b40388d5d4533744e283
@api('POST/fields') def add_field(self, *, field: Field) -> None: 'Add a field to the index.\n\n Parameters:\n field: The configuration for the new field.\n '
Add a field to the index. Parameters: field: The configuration for the new field.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
add_field
jfallaire/generator-ps-boilerplate-project
2
python
@api('POST/fields') def add_field(self, *, field: Field) -> None: 'Add a field to the index.\n\n Parameters:\n field: The configuration for the new field.\n '
@api('POST/fields') def add_field(self, *, field: Field) -> None: 'Add a field to the index.\n\n Parameters:\n field: The configuration for the new field.\n '<|docstring|>Add a field to the index. Parameters: field: The configuration for the new field.<|endoftext|>
9cf9cf1e88730fa87b5d4d7051f7d5ecd57c08bfc1def92bd866841a70f9bef1
@api('PUT/fields/id/{field_id}', field_id='FieldID') def update_field_by_id(self, *, field_id: int, field: Field) -> None: 'Update a field in the index.\n\n Parameters:\n field_id: The id of the field.\n field: The updated configuration for the field.\n '
Update a field in the index. Parameters: field_id: The id of the field. field: The updated configuration for the field.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
update_field_by_id
jfallaire/generator-ps-boilerplate-project
2
python
@api('PUT/fields/id/{field_id}', field_id='FieldID') def update_field_by_id(self, *, field_id: int, field: Field) -> None: 'Update a field in the index.\n\n Parameters:\n field_id: The id of the field.\n field: The updated configuration for the field.\n '
@api('PUT/fields/id/{field_id}', field_id='FieldID') def update_field_by_id(self, *, field_id: int, field: Field) -> None: 'Update a field in the index.\n\n Parameters:\n field_id: The id of the field.\n field: The updated configuration for the field.\n '<|docstring|>Update a field in the index. Parameters: field_id: The id of the field. field: The updated configuration for the field.<|endoftext|>
3e57a6b0423d70bcefb97586c0b857880483d3a2e0b3ba202fdd18384ad93fbf
@api('PUT/fields/name/{field_name}') def update_field_by_name(self, *, field_name: str, field: Field) -> None: 'Update a field in the index.\n\n Parameters:\n field_name: The name of the field.\n field: The updated configuration for the field.\n '
Update a field in the index. Parameters: field_name: The name of the field. field: The updated configuration for the field.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
update_field_by_name
jfallaire/generator-ps-boilerplate-project
2
python
@api('PUT/fields/name/{field_name}') def update_field_by_name(self, *, field_name: str, field: Field) -> None: 'Update a field in the index.\n\n Parameters:\n field_name: The name of the field.\n field: The updated configuration for the field.\n '
@api('PUT/fields/name/{field_name}') def update_field_by_name(self, *, field_name: str, field: Field) -> None: 'Update a field in the index.\n\n Parameters:\n field_name: The name of the field.\n field: The updated configuration for the field.\n '<|docstring|>Update a field in the index. Parameters: field_name: The name of the field. field: The updated configuration for the field.<|endoftext|>
2f0426c400292aec6c6c3c7e23b9f128ebddd14865d462e446553194b95ac2ae
@api('DELETE/fields/id/{field_id}', field_id='FieldID') def delete_field_by_id(self, *, field_id: int) -> None: 'Delete a field contained in the index.\n\n Parameters:\n field_id: The id of the field.\n '
Delete a field contained in the index. Parameters: field_id: The id of the field.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
delete_field_by_id
jfallaire/generator-ps-boilerplate-project
2
python
@api('DELETE/fields/id/{field_id}', field_id='FieldID') def delete_field_by_id(self, *, field_id: int) -> None: 'Delete a field contained in the index.\n\n Parameters:\n field_id: The id of the field.\n '
@api('DELETE/fields/id/{field_id}', field_id='FieldID') def delete_field_by_id(self, *, field_id: int) -> None: 'Delete a field contained in the index.\n\n Parameters:\n field_id: The id of the field.\n '<|docstring|>Delete a field contained in the index. Parameters: field_id: The id of the field.<|endoftext|>
dd4745e0efb0cdae2adf20e8d95285d44372b25a42e5eae2e1135e7941fbd72d
@api('DELETE/fields/name/{field_name}') def delete_field_by_name(self, *, field_name: str) -> None: 'Delete a field contained in the index.\n\n Parameters:\n field_name: The name of the field.\n '
Delete a field contained in the index. Parameters: field_name: The name of the field.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
delete_field_by_name
jfallaire/generator-ps-boilerplate-project
2
python
@api('DELETE/fields/name/{field_name}') def delete_field_by_name(self, *, field_name: str) -> None: 'Delete a field contained in the index.\n\n Parameters:\n field_name: The name of the field.\n '
@api('DELETE/fields/name/{field_name}') def delete_field_by_name(self, *, field_name: str) -> None: 'Delete a field contained in the index.\n\n Parameters:\n field_name: The name of the field.\n '<|docstring|>Delete a field contained in the index. Parameters: field_name: The name of the field.<|endoftext|>
3228c77cea821873967feddb4bc999fb5210d9dad6d01a83fcb75d5a6289965d
@api('PUT/elasticsearch') def set_elastic_search_config(self, *, configuration: ElasticSearchConfig) -> None: 'Set the elasticsearch configuration\n\n Parameters:\n configuration: The new configuration.\n '
Set the elasticsearch configuration Parameters: configuration: The new configuration.
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
set_elastic_search_config
jfallaire/generator-ps-boilerplate-project
2
python
@api('PUT/elasticsearch') def set_elastic_search_config(self, *, configuration: ElasticSearchConfig) -> None: 'Set the elasticsearch configuration\n\n Parameters:\n configuration: The new configuration.\n '
@api('PUT/elasticsearch') def set_elastic_search_config(self, *, configuration: ElasticSearchConfig) -> None: 'Set the elasticsearch configuration\n\n Parameters:\n configuration: The new configuration.\n '<|docstring|>Set the elasticsearch configuration Parameters: configuration: The new configuration.<|endoftext|>
ac27ef9275c1bbe06ba6b51bd217063352f552d7de09158449eea9e2475664ee
@api('GET/elasticsearch') def get_elastic_search_config(self) -> ElasticSearchConfig: 'Get the elasticsearch configuration'
Get the elasticsearch configuration
generators/simple/templates/src/platform/extensionRunner/cdf/index_service.py
get_elastic_search_config
jfallaire/generator-ps-boilerplate-project
2
python
@api('GET/elasticsearch') def get_elastic_search_config(self) -> ElasticSearchConfig:
@api('GET/elasticsearch') def get_elastic_search_config(self) -> ElasticSearchConfig: <|docstring|>Get the elasticsearch configuration<|endoftext|>
5a0709a8264d3dd9cec915677e6bb97bfd7a30bcde65ae833d706d9022f3f99c
def __init__(self, user_id_min=None, user_id_max=None, excluding_list=(), *args, **kwargs): '\n Initalize spider\n :param user_id_min: passed in user_id_min\n :param user_id_max: passed in user_id_max\n :param args:\n :param kwargs:\n ' super(RecordSpider, self).__init__(*args, **kwargs) if hasattr(self, 'userlist'): userlist = [] with open(self.userlist, 'r') as fr: while True: l = fr.readline().strip() if (not l): break userlist.append(l) self.start_urls = [('https://bgm.tv/user/' + i) for i in userlist] logger.info('Starting scarping in user list %s ...', userlist[:3]) else: if ((user_id_min is not None) and (user_id_max is not None)): self.id_min = user_id_min self.id_max = user_id_max else: if (not hasattr(self, 'id_max')): self.id_max = 500000 if (not hasattr(self, 'id_min')): self.id_min = 1 self.start_urls = [('https://bgm.tv/user/' + str(i)) for i in range(int(self.id_min), int(self.id_max)) if (i not in excluding_list)] logger.info('Starting scarping in user id range (%s, %s)', self.id_min, self.id_max)
Initalize spider :param user_id_min: passed in user_id_min :param user_id_max: passed in user_id_max :param args: :param kwargs:
pipeline/record/bgm/spiders/spider.py
__init__
FlyGoat/BangumiN
56
python
def __init__(self, user_id_min=None, user_id_max=None, excluding_list=(), *args, **kwargs): '\n Initalize spider\n :param user_id_min: passed in user_id_min\n :param user_id_max: passed in user_id_max\n :param args:\n :param kwargs:\n ' super(RecordSpider, self).__init__(*args, **kwargs) if hasattr(self, 'userlist'): userlist = [] with open(self.userlist, 'r') as fr: while True: l = fr.readline().strip() if (not l): break userlist.append(l) self.start_urls = [('https://bgm.tv/user/' + i) for i in userlist] logger.info('Starting scarping in user list %s ...', userlist[:3]) else: if ((user_id_min is not None) and (user_id_max is not None)): self.id_min = user_id_min self.id_max = user_id_max else: if (not hasattr(self, 'id_max')): self.id_max = 500000 if (not hasattr(self, 'id_min')): self.id_min = 1 self.start_urls = [('https://bgm.tv/user/' + str(i)) for i in range(int(self.id_min), int(self.id_max)) if (i not in excluding_list)] logger.info('Starting scarping in user id range (%s, %s)', self.id_min, self.id_max)
def __init__(self, user_id_min=None, user_id_max=None, excluding_list=(), *args, **kwargs): '\n Initalize spider\n :param user_id_min: passed in user_id_min\n :param user_id_max: passed in user_id_max\n :param args:\n :param kwargs:\n ' super(RecordSpider, self).__init__(*args, **kwargs) if hasattr(self, 'userlist'): userlist = [] with open(self.userlist, 'r') as fr: while True: l = fr.readline().strip() if (not l): break userlist.append(l) self.start_urls = [('https://bgm.tv/user/' + i) for i in userlist] logger.info('Starting scarping in user list %s ...', userlist[:3]) else: if ((user_id_min is not None) and (user_id_max is not None)): self.id_min = user_id_min self.id_max = user_id_max else: if (not hasattr(self, 'id_max')): self.id_max = 500000 if (not hasattr(self, 'id_min')): self.id_min = 1 self.start_urls = [('https://bgm.tv/user/' + str(i)) for i in range(int(self.id_min), int(self.id_max)) if (i not in excluding_list)] logger.info('Starting scarping in user id range (%s, %s)', self.id_min, self.id_max)<|docstring|>Initalize spider :param user_id_min: passed in user_id_min :param user_id_max: passed in user_id_max :param args: :param kwargs:<|endoftext|>
a226f378386528048cda9f6c718179082081b32deffdfa9f4ff8fd5651157edf
def __init__(self, user_id_min=None, user_id_max=None, excluding_list=(), *args, **kwargs): '\n Initalize spider\n :param user_id_min: passed in user_id_min\n :param user_id_max: passed in user_id_max\n :param args:\n :param kwargs:\n ' super(WikiHistorySpider, self).__init__(*args, **kwargs) if hasattr(self, 'userlist'): userlist = [] with open(self.userlist, 'r') as fr: while True: l = fr.readline().strip() if (not l): break userlist.append(l) self.start_urls = [(('https://bgm.tv/user/' + str(i)) + '/wiki') for i in userlist] logger.info('Starting scarping in user list %s ...', userlist[:3]) else: if ((user_id_min is not None) and (user_id_max is not None)): self.id_min = user_id_min self.id_max = user_id_max else: if (not hasattr(self, 'id_max')): self.id_max = 500000 if (not hasattr(self, 'id_min')): self.id_min = 1 self.start_urls = [(('https://bgm.tv/user/' + str(i)) + '/wiki') for i in range(int(self.id_min), int(self.id_max)) if (i not in excluding_list)] logger.info('Starting scarping in user id range (%s, %s)', self.id_min, self.id_max)
Initalize spider :param user_id_min: passed in user_id_min :param user_id_max: passed in user_id_max :param args: :param kwargs:
pipeline/record/bgm/spiders/spider.py
__init__
FlyGoat/BangumiN
56
python
def __init__(self, user_id_min=None, user_id_max=None, excluding_list=(), *args, **kwargs): '\n Initalize spider\n :param user_id_min: passed in user_id_min\n :param user_id_max: passed in user_id_max\n :param args:\n :param kwargs:\n ' super(WikiHistorySpider, self).__init__(*args, **kwargs) if hasattr(self, 'userlist'): userlist = [] with open(self.userlist, 'r') as fr: while True: l = fr.readline().strip() if (not l): break userlist.append(l) self.start_urls = [(('https://bgm.tv/user/' + str(i)) + '/wiki') for i in userlist] logger.info('Starting scarping in user list %s ...', userlist[:3]) else: if ((user_id_min is not None) and (user_id_max is not None)): self.id_min = user_id_min self.id_max = user_id_max else: if (not hasattr(self, 'id_max')): self.id_max = 500000 if (not hasattr(self, 'id_min')): self.id_min = 1 self.start_urls = [(('https://bgm.tv/user/' + str(i)) + '/wiki') for i in range(int(self.id_min), int(self.id_max)) if (i not in excluding_list)] logger.info('Starting scarping in user id range (%s, %s)', self.id_min, self.id_max)
def __init__(self, user_id_min=None, user_id_max=None, excluding_list=(), *args, **kwargs): '\n Initalize spider\n :param user_id_min: passed in user_id_min\n :param user_id_max: passed in user_id_max\n :param args:\n :param kwargs:\n ' super(WikiHistorySpider, self).__init__(*args, **kwargs) if hasattr(self, 'userlist'): userlist = [] with open(self.userlist, 'r') as fr: while True: l = fr.readline().strip() if (not l): break userlist.append(l) self.start_urls = [(('https://bgm.tv/user/' + str(i)) + '/wiki') for i in userlist] logger.info('Starting scarping in user list %s ...', userlist[:3]) else: if ((user_id_min is not None) and (user_id_max is not None)): self.id_min = user_id_min self.id_max = user_id_max else: if (not hasattr(self, 'id_max')): self.id_max = 500000 if (not hasattr(self, 'id_min')): self.id_min = 1 self.start_urls = [(('https://bgm.tv/user/' + str(i)) + '/wiki') for i in range(int(self.id_min), int(self.id_max)) if (i not in excluding_list)] logger.info('Starting scarping in user id range (%s, %s)', self.id_min, self.id_max)<|docstring|>Initalize spider :param user_id_min: passed in user_id_min :param user_id_max: passed in user_id_max :param args: :param kwargs:<|endoftext|>
f1902f73e605749e8f57862d08e777c2756b7f4d833e8a91c5cf8835ab9164eb
@router.get('/', response_model=List[schemas.SystemRequirement]) def get_system_requirements(db: Session=Depends(deps.get_db), skip: int=0, limit: int=100) -> Any: '\n Retrieve system requirements.\n ' system_requirements = crud.sysreq.get_multi(db, skip=skip, limit=limit) logger.debug(system_requirements) return system_requirements
Retrieve system requirements.
reqherd/webservice/api/reqherd_api_v1/endpoints/sysreqs.py
get_system_requirements
zthurman/reqherd
0
python
@router.get('/', response_model=List[schemas.SystemRequirement]) def get_system_requirements(db: Session=Depends(deps.get_db), skip: int=0, limit: int=100) -> Any: '\n \n ' system_requirements = crud.sysreq.get_multi(db, skip=skip, limit=limit) logger.debug(system_requirements) return system_requirements
@router.get('/', response_model=List[schemas.SystemRequirement]) def get_system_requirements(db: Session=Depends(deps.get_db), skip: int=0, limit: int=100) -> Any: '\n \n ' system_requirements = crud.sysreq.get_multi(db, skip=skip, limit=limit) logger.debug(system_requirements) return system_requirements<|docstring|>Retrieve system requirements.<|endoftext|>
12be7faad6b84e5a38c6397f4a88b2e2d338eb4f95f890d28945352050c0d145
@router.post('/', response_model=List[schemas.SystemRequirement]) def create_system_requirements(*, db: Session=Depends(deps.get_db), system_requirements_in: List[schemas.SystemRequirementCreate]) -> Any: '\n Create new system requirements.\n ' system_requirements = list() for system_requirement_in in system_requirements_in: system_requirement = crud.sysreq.create(db=db, obj_in=system_requirement_in) system_requirements.append(system_requirement) logger.debug(system_requirements) return system_requirements
Create new system requirements.
reqherd/webservice/api/reqherd_api_v1/endpoints/sysreqs.py
create_system_requirements
zthurman/reqherd
0
python
@router.post('/', response_model=List[schemas.SystemRequirement]) def create_system_requirements(*, db: Session=Depends(deps.get_db), system_requirements_in: List[schemas.SystemRequirementCreate]) -> Any: '\n \n ' system_requirements = list() for system_requirement_in in system_requirements_in: system_requirement = crud.sysreq.create(db=db, obj_in=system_requirement_in) system_requirements.append(system_requirement) logger.debug(system_requirements) return system_requirements
@router.post('/', response_model=List[schemas.SystemRequirement]) def create_system_requirements(*, db: Session=Depends(deps.get_db), system_requirements_in: List[schemas.SystemRequirementCreate]) -> Any: '\n \n ' system_requirements = list() for system_requirement_in in system_requirements_in: system_requirement = crud.sysreq.create(db=db, obj_in=system_requirement_in) system_requirements.append(system_requirement) logger.debug(system_requirements) return system_requirements<|docstring|>Create new system requirements.<|endoftext|>
6d61008d3494ddf9ae0c2ea40e8e90d0c8fb9fe74fbc776d1d318d003b7442aa
@router.put('/{id}', response_model=schemas.SystemRequirement) def update_system_requirement(*, db: Session=Depends(deps.get_db), id: int, system_requirement_in: schemas.SystemRequirementUpdate) -> Any: '\n Update system requirement.\n ' systemrequirement = crud.sysreq.get(db=db, id=id) if (not systemrequirement): raise HTTPException(status_code=404, detail='Record not found') systemrequirement = crud.sysreq.update(db=db, db_obj=systemrequirement, obj_in=system_requirement_in) logger.debug(systemrequirement) return systemrequirement
Update system requirement.
reqherd/webservice/api/reqherd_api_v1/endpoints/sysreqs.py
update_system_requirement
zthurman/reqherd
0
python
@router.put('/{id}', response_model=schemas.SystemRequirement) def update_system_requirement(*, db: Session=Depends(deps.get_db), id: int, system_requirement_in: schemas.SystemRequirementUpdate) -> Any: '\n \n ' systemrequirement = crud.sysreq.get(db=db, id=id) if (not systemrequirement): raise HTTPException(status_code=404, detail='Record not found') systemrequirement = crud.sysreq.update(db=db, db_obj=systemrequirement, obj_in=system_requirement_in) logger.debug(systemrequirement) return systemrequirement
@router.put('/{id}', response_model=schemas.SystemRequirement) def update_system_requirement(*, db: Session=Depends(deps.get_db), id: int, system_requirement_in: schemas.SystemRequirementUpdate) -> Any: '\n \n ' systemrequirement = crud.sysreq.get(db=db, id=id) if (not systemrequirement): raise HTTPException(status_code=404, detail='Record not found') systemrequirement = crud.sysreq.update(db=db, db_obj=systemrequirement, obj_in=system_requirement_in) logger.debug(systemrequirement) return systemrequirement<|docstring|>Update system requirement.<|endoftext|>
d5ff6cc79a04ddfd42f3e8be144135037a575a28c79c316e27b3781bf6241cd2
@router.get('/{id}', response_model=schemas.SystemRequirement) def get_system_requirement(*, db: Session=Depends(deps.get_db), id: int) -> Any: '\n Get system requirement by ID.\n ' systemrequirement = crud.sysreq.get(db=db, id=id) if (not systemrequirement): raise HTTPException(status_code=404, detail='Record not found') logger.debug(systemrequirement) return systemrequirement
Get system requirement by ID.
reqherd/webservice/api/reqherd_api_v1/endpoints/sysreqs.py
get_system_requirement
zthurman/reqherd
0
python
@router.get('/{id}', response_model=schemas.SystemRequirement) def get_system_requirement(*, db: Session=Depends(deps.get_db), id: int) -> Any: '\n \n ' systemrequirement = crud.sysreq.get(db=db, id=id) if (not systemrequirement): raise HTTPException(status_code=404, detail='Record not found') logger.debug(systemrequirement) return systemrequirement
@router.get('/{id}', response_model=schemas.SystemRequirement) def get_system_requirement(*, db: Session=Depends(deps.get_db), id: int) -> Any: '\n \n ' systemrequirement = crud.sysreq.get(db=db, id=id) if (not systemrequirement): raise HTTPException(status_code=404, detail='Record not found') logger.debug(systemrequirement) return systemrequirement<|docstring|>Get system requirement by ID.<|endoftext|>
fcf4127abea0b91e728c11a0583c406814107b50418ba857d0e0fb1746d98757
@router.delete('/{id}', response_model=schemas.SystemRequirement) def delete_system_requirement(*, db: Session=Depends(deps.get_db), id: int) -> Any: '\n Delete a system requirement.\n ' systemrequirement = crud.sysreq.get(db=db, id=id) if (not systemrequirement): raise HTTPException(status_code=404, detail='Record not found') systemrequirement = crud.sysreq.remove(db=db, id=id) logger.debug(systemrequirement) return systemrequirement
Delete a system requirement.
reqherd/webservice/api/reqherd_api_v1/endpoints/sysreqs.py
delete_system_requirement
zthurman/reqherd
0
python
@router.delete('/{id}', response_model=schemas.SystemRequirement) def delete_system_requirement(*, db: Session=Depends(deps.get_db), id: int) -> Any: '\n \n ' systemrequirement = crud.sysreq.get(db=db, id=id) if (not systemrequirement): raise HTTPException(status_code=404, detail='Record not found') systemrequirement = crud.sysreq.remove(db=db, id=id) logger.debug(systemrequirement) return systemrequirement
@router.delete('/{id}', response_model=schemas.SystemRequirement) def delete_system_requirement(*, db: Session=Depends(deps.get_db), id: int) -> Any: '\n \n ' systemrequirement = crud.sysreq.get(db=db, id=id) if (not systemrequirement): raise HTTPException(status_code=404, detail='Record not found') systemrequirement = crud.sysreq.remove(db=db, id=id) logger.debug(systemrequirement) return systemrequirement<|docstring|>Delete a system requirement.<|endoftext|>
d9f0d8c3e0608be94a15e8f34bef150a380ea4a98ba4cbba610668744346f124
def generate_progress_func(total_size, assert_equal, assert_almost_equal, buffer_size=8192): '\n Generate a function that helps to predictably test upload/download progress\n :param total_size: Total size of the file to upload/download\n :param assert_equal: The unittest.TestCase assertEqual method\n :param assert_almost_equal: The unittest.TestCase assertAlmostEqual method\n :param buffer_size: Size of chunk\n :return: A function that receives 2 ints - number of bytes read so far,\n and the total size in bytes\n ' iteration = [0] max_iterations = (total_size / buffer_size) def print_progress(read, total): i = iteration[0] assert_almost_equal(total, total_size, delta=5) expected_read_value = (buffer_size * (i + 1)) if (i < max_iterations): assert_equal(read, expected_read_value) else: assert_almost_equal(read, total_size, delta=5) iteration[0] += 1 return print_progress
Generate a function that helps to predictably test upload/download progress :param total_size: Total size of the file to upload/download :param assert_equal: The unittest.TestCase assertEqual method :param assert_almost_equal: The unittest.TestCase assertAlmostEqual method :param buffer_size: Size of chunk :return: A function that receives 2 ints - number of bytes read so far, and the total size in bytes
rest-service/manager_rest/test/endpoints/test_utils.py
generate_progress_func
yeshess/cloudify-manager
0
python
def generate_progress_func(total_size, assert_equal, assert_almost_equal, buffer_size=8192): '\n Generate a function that helps to predictably test upload/download progress\n :param total_size: Total size of the file to upload/download\n :param assert_equal: The unittest.TestCase assertEqual method\n :param assert_almost_equal: The unittest.TestCase assertAlmostEqual method\n :param buffer_size: Size of chunk\n :return: A function that receives 2 ints - number of bytes read so far,\n and the total size in bytes\n ' iteration = [0] max_iterations = (total_size / buffer_size) def print_progress(read, total): i = iteration[0] assert_almost_equal(total, total_size, delta=5) expected_read_value = (buffer_size * (i + 1)) if (i < max_iterations): assert_equal(read, expected_read_value) else: assert_almost_equal(read, total_size, delta=5) iteration[0] += 1 return print_progress
def generate_progress_func(total_size, assert_equal, assert_almost_equal, buffer_size=8192): '\n Generate a function that helps to predictably test upload/download progress\n :param total_size: Total size of the file to upload/download\n :param assert_equal: The unittest.TestCase assertEqual method\n :param assert_almost_equal: The unittest.TestCase assertAlmostEqual method\n :param buffer_size: Size of chunk\n :return: A function that receives 2 ints - number of bytes read so far,\n and the total size in bytes\n ' iteration = [0] max_iterations = (total_size / buffer_size) def print_progress(read, total): i = iteration[0] assert_almost_equal(total, total_size, delta=5) expected_read_value = (buffer_size * (i + 1)) if (i < max_iterations): assert_equal(read, expected_read_value) else: assert_almost_equal(read, total_size, delta=5) iteration[0] += 1 return print_progress<|docstring|>Generate a function that helps to predictably test upload/download progress :param total_size: Total size of the file to upload/download :param assert_equal: The unittest.TestCase assertEqual method :param assert_almost_equal: The unittest.TestCase assertAlmostEqual method :param buffer_size: Size of chunk :return: A function that receives 2 ints - number of bytes read so far, and the total size in bytes<|endoftext|>
9975909745b2dfe1ca440ff371dff5c097e77cf92814ccf44946e64ffda2295c
def idfn(val): '\n Generate test annotations for better readability.\n :param val:\n :return:\n ' if (val == translational_joint_schema): return '<Simple TransJoint>' if (val == general_rotational_joint_schema): return '<GeneralRotJoint>' if (val == zero_twist_schema): return '<NoTwistRotJoint>' if (val == perpendicular_twist_schema): return '<PerpTwistRotJoint>' if (val == no_offset_schema): return '<NoOffsetRotJoint>' if (val == zero_twist_no_offset_schema): return '<NoTwistNoOffsetRotJoint>' if (val == perpendicular_twist_no_offset_schema): return '<PerpTwistNoOffsetRotJoint>'
Generate test annotations for better readability. :param val: :return:
test/test_joint_factories.py
idfn
rgaensler/gcode
0
python
def idfn(val): '\n Generate test annotations for better readability.\n :param val:\n :return:\n ' if (val == translational_joint_schema): return '<Simple TransJoint>' if (val == general_rotational_joint_schema): return '<GeneralRotJoint>' if (val == zero_twist_schema): return '<NoTwistRotJoint>' if (val == perpendicular_twist_schema): return '<PerpTwistRotJoint>' if (val == no_offset_schema): return '<NoOffsetRotJoint>' if (val == zero_twist_no_offset_schema): return '<NoTwistNoOffsetRotJoint>' if (val == perpendicular_twist_no_offset_schema): return '<PerpTwistNoOffsetRotJoint>'
def idfn(val): '\n Generate test annotations for better readability.\n :param val:\n :return:\n ' if (val == translational_joint_schema): return '<Simple TransJoint>' if (val == general_rotational_joint_schema): return '<GeneralRotJoint>' if (val == zero_twist_schema): return '<NoTwistRotJoint>' if (val == perpendicular_twist_schema): return '<PerpTwistRotJoint>' if (val == no_offset_schema): return '<NoOffsetRotJoint>' if (val == zero_twist_no_offset_schema): return '<NoTwistNoOffsetRotJoint>' if (val == perpendicular_twist_no_offset_schema): return '<PerpTwistNoOffsetRotJoint>'<|docstring|>Generate test annotations for better readability. :param val: :return:<|endoftext|>
d8a7e3d59e24241641eb50d85e7df47e7d8267e672d721085c1fdd41337a0a36
def generate_boundary(bounds, dx, extent, buffer=5): "Function to generate a raster boundary mask from an ANUGA model\n boundary.\n Inputs:\n bounds (np.ndarray) : List of vertices defining the ANUGA model\n boundary, e.g. from np.loadtxt('boundary.csv')\n dx (float) : Grid size of the input imagery raster\n extent (list or array) : geographical extent of imagery raster,\n specified as extent = [xmin, xmax, ymin, ymax]\n buffer (int) : Radius of a disk-shaped buffer to apply between the\n boundary and interior features, specified in number of pixels\n Outputs:\n outside (np.ndarray) : Binary raster same size as the imagery\n raster with 1's representing cells outside the boundary (with\n buffer) and 0's inside the boundary\n " xvect = np.arange(extent[0], extent[1], dx) yvect = np.arange(extent[2], extent[3], dx) (gridX, gridY) = np.meshgrid(xvect, yvect) gridXY_array = np.array([np.concatenate(gridX), np.concatenate(gridY)]).transpose() gridXY_array = np.ascontiguousarray(gridXY_array) path = matplotlib.path.Path(bounds) outside = (~ path.contains_points(gridXY_array)) outside.shape = (len(yvect), len(xvect)) outside = np.flipud(outside) if (buffer > 0): outside = morphology.dilation(outside, morphology.disk(buffer)) return outside
Function to generate a raster boundary mask from an ANUGA model boundary. Inputs: bounds (np.ndarray) : List of vertices defining the ANUGA model boundary, e.g. from np.loadtxt('boundary.csv') dx (float) : Grid size of the input imagery raster extent (list or array) : geographical extent of imagery raster, specified as extent = [xmin, xmax, ymin, ymax] buffer (int) : Radius of a disk-shaped buffer to apply between the boundary and interior features, specified in number of pixels Outputs: outside (np.ndarray) : Binary raster same size as the imagery raster with 1's representing cells outside the boundary (with buffer) and 0's inside the boundary
unstructured_mesh_refinement_tools.py
generate_boundary
passaH2O/meshrefinement
1
python
def generate_boundary(bounds, dx, extent, buffer=5): "Function to generate a raster boundary mask from an ANUGA model\n boundary.\n Inputs:\n bounds (np.ndarray) : List of vertices defining the ANUGA model\n boundary, e.g. from np.loadtxt('boundary.csv')\n dx (float) : Grid size of the input imagery raster\n extent (list or array) : geographical extent of imagery raster,\n specified as extent = [xmin, xmax, ymin, ymax]\n buffer (int) : Radius of a disk-shaped buffer to apply between the\n boundary and interior features, specified in number of pixels\n Outputs:\n outside (np.ndarray) : Binary raster same size as the imagery\n raster with 1's representing cells outside the boundary (with\n buffer) and 0's inside the boundary\n " xvect = np.arange(extent[0], extent[1], dx) yvect = np.arange(extent[2], extent[3], dx) (gridX, gridY) = np.meshgrid(xvect, yvect) gridXY_array = np.array([np.concatenate(gridX), np.concatenate(gridY)]).transpose() gridXY_array = np.ascontiguousarray(gridXY_array) path = matplotlib.path.Path(bounds) outside = (~ path.contains_points(gridXY_array)) outside.shape = (len(yvect), len(xvect)) outside = np.flipud(outside) if (buffer > 0): outside = morphology.dilation(outside, morphology.disk(buffer)) return outside
def generate_boundary(bounds, dx, extent, buffer=5): "Function to generate a raster boundary mask from an ANUGA model\n boundary.\n Inputs:\n bounds (np.ndarray) : List of vertices defining the ANUGA model\n boundary, e.g. from np.loadtxt('boundary.csv')\n dx (float) : Grid size of the input imagery raster\n extent (list or array) : geographical extent of imagery raster,\n specified as extent = [xmin, xmax, ymin, ymax]\n buffer (int) : Radius of a disk-shaped buffer to apply between the\n boundary and interior features, specified in number of pixels\n Outputs:\n outside (np.ndarray) : Binary raster same size as the imagery\n raster with 1's representing cells outside the boundary (with\n buffer) and 0's inside the boundary\n " xvect = np.arange(extent[0], extent[1], dx) yvect = np.arange(extent[2], extent[3], dx) (gridX, gridY) = np.meshgrid(xvect, yvect) gridXY_array = np.array([np.concatenate(gridX), np.concatenate(gridY)]).transpose() gridXY_array = np.ascontiguousarray(gridXY_array) path = matplotlib.path.Path(bounds) outside = (~ path.contains_points(gridXY_array)) outside.shape = (len(yvect), len(xvect)) outside = np.flipud(outside) if (buffer > 0): outside = morphology.dilation(outside, morphology.disk(buffer)) return outside<|docstring|>Function to generate a raster boundary mask from an ANUGA model boundary. Inputs: bounds (np.ndarray) : List of vertices defining the ANUGA model boundary, e.g. from np.loadtxt('boundary.csv') dx (float) : Grid size of the input imagery raster extent (list or array) : geographical extent of imagery raster, specified as extent = [xmin, xmax, ymin, ymax] buffer (int) : Radius of a disk-shaped buffer to apply between the boundary and interior features, specified in number of pixels Outputs: outside (np.ndarray) : Binary raster same size as the imagery raster with 1's representing cells outside the boundary (with buffer) and 0's inside the boundary<|endoftext|>
476f8fc133db721b532b0ec93f1ba7411de2c5e97789c69cb3d07faf8983c455
def enforce_connectivity(image, outside): "\n Function to filter out any objects not connected to the largest\n cluster in image.\n Inputs:\n image (np.ndarray) : Binary input raster with 1's corresponding\n to hydrodynamically active areas, which get mapped to high\n resolution, and 0's otherwise\n outside (np.ndarray) : Binary raster same size as the imagery\n raster with 1's representing cells outside the boundary\n and 0's inside the boundary. Output of generate_boundary()\n Outputs:\n connected_cluster (np.ndarray) : Binary raster similar to\n input image, with only the largest cluster of 1's remaining\n " image[outside] = 0 image_count = np.array(measure.label(image, connectivity=2), dtype=float) image_count[(image_count == 0)] = np.nan largest_val = stats.mode(image_count, nan_policy='omit')[0][0] connected_cluster = (image_count == largest_val) return connected_cluster
Function to filter out any objects not connected to the largest cluster in image. Inputs: image (np.ndarray) : Binary input raster with 1's corresponding to hydrodynamically active areas, which get mapped to high resolution, and 0's otherwise outside (np.ndarray) : Binary raster same size as the imagery raster with 1's representing cells outside the boundary and 0's inside the boundary. Output of generate_boundary() Outputs: connected_cluster (np.ndarray) : Binary raster similar to input image, with only the largest cluster of 1's remaining
unstructured_mesh_refinement_tools.py
enforce_connectivity
passaH2O/meshrefinement
1
python
def enforce_connectivity(image, outside): "\n Function to filter out any objects not connected to the largest\n cluster in image.\n Inputs:\n image (np.ndarray) : Binary input raster with 1's corresponding\n to hydrodynamically active areas, which get mapped to high\n resolution, and 0's otherwise\n outside (np.ndarray) : Binary raster same size as the imagery\n raster with 1's representing cells outside the boundary\n and 0's inside the boundary. Output of generate_boundary()\n Outputs:\n connected_cluster (np.ndarray) : Binary raster similar to\n input image, with only the largest cluster of 1's remaining\n " image[outside] = 0 image_count = np.array(measure.label(image, connectivity=2), dtype=float) image_count[(image_count == 0)] = np.nan largest_val = stats.mode(image_count, nan_policy='omit')[0][0] connected_cluster = (image_count == largest_val) return connected_cluster
def enforce_connectivity(image, outside): "\n Function to filter out any objects not connected to the largest\n cluster in image.\n Inputs:\n image (np.ndarray) : Binary input raster with 1's corresponding\n to hydrodynamically active areas, which get mapped to high\n resolution, and 0's otherwise\n outside (np.ndarray) : Binary raster same size as the imagery\n raster with 1's representing cells outside the boundary\n and 0's inside the boundary. Output of generate_boundary()\n Outputs:\n connected_cluster (np.ndarray) : Binary raster similar to\n input image, with only the largest cluster of 1's remaining\n " image[outside] = 0 image_count = np.array(measure.label(image, connectivity=2), dtype=float) image_count[(image_count == 0)] = np.nan largest_val = stats.mode(image_count, nan_policy='omit')[0][0] connected_cluster = (image_count == largest_val) return connected_cluster<|docstring|>Function to filter out any objects not connected to the largest cluster in image. Inputs: image (np.ndarray) : Binary input raster with 1's corresponding to hydrodynamically active areas, which get mapped to high resolution, and 0's otherwise outside (np.ndarray) : Binary raster same size as the imagery raster with 1's representing cells outside the boundary and 0's inside the boundary. Output of generate_boundary() Outputs: connected_cluster (np.ndarray) : Binary raster similar to input image, with only the largest cluster of 1's remaining<|endoftext|>
7cdaad6ff85edb5e9545e22a8f228ef29e9dcef4e0d65d2e51ef8d1e8546ebe6
def ensure_minimum_width(connected_cluster, buffer=5): '\n Function to enforce minimum dimension of objects in active network\n Inputs:\n connected_cluster (np.ndarray) : Binary raster indicating\n largest connected cluster of active pixels, output of\n enforce_connectivity()\n buffer (int) : Radius of a disk-shaped buffer to apply between the\n interior features, specified in number of pixels\n Outputs:\n dilated_cluster (np.ndarray) : Binary raster similar to\n connected_cluster, with buffer applied\n ' dilated_cluster = morphology.dilation(connected_cluster, morphology.disk(buffer)) return dilated_cluster
Function to enforce minimum dimension of objects in active network Inputs: connected_cluster (np.ndarray) : Binary raster indicating largest connected cluster of active pixels, output of enforce_connectivity() buffer (int) : Radius of a disk-shaped buffer to apply between the interior features, specified in number of pixels Outputs: dilated_cluster (np.ndarray) : Binary raster similar to connected_cluster, with buffer applied
unstructured_mesh_refinement_tools.py
ensure_minimum_width
passaH2O/meshrefinement
1
python
def ensure_minimum_width(connected_cluster, buffer=5): '\n Function to enforce minimum dimension of objects in active network\n Inputs:\n connected_cluster (np.ndarray) : Binary raster indicating\n largest connected cluster of active pixels, output of\n enforce_connectivity()\n buffer (int) : Radius of a disk-shaped buffer to apply between the\n interior features, specified in number of pixels\n Outputs:\n dilated_cluster (np.ndarray) : Binary raster similar to\n connected_cluster, with buffer applied\n ' dilated_cluster = morphology.dilation(connected_cluster, morphology.disk(buffer)) return dilated_cluster
def ensure_minimum_width(connected_cluster, buffer=5): '\n Function to enforce minimum dimension of objects in active network\n Inputs:\n connected_cluster (np.ndarray) : Binary raster indicating\n largest connected cluster of active pixels, output of\n enforce_connectivity()\n buffer (int) : Radius of a disk-shaped buffer to apply between the\n interior features, specified in number of pixels\n Outputs:\n dilated_cluster (np.ndarray) : Binary raster similar to\n connected_cluster, with buffer applied\n ' dilated_cluster = morphology.dilation(connected_cluster, morphology.disk(buffer)) return dilated_cluster<|docstring|>Function to enforce minimum dimension of objects in active network Inputs: connected_cluster (np.ndarray) : Binary raster indicating largest connected cluster of active pixels, output of enforce_connectivity() buffer (int) : Radius of a disk-shaped buffer to apply between the interior features, specified in number of pixels Outputs: dilated_cluster (np.ndarray) : Binary raster similar to connected_cluster, with buffer applied<|endoftext|>
19005ef6c2303b1718c5b2e4134ae4e1ec8a846e04b8a2a4588ed2a782765afe
def smooth_object_interface(dilated_cluster, outside, buffer=5): "\n Function to smooth the interface between channels and island\n Inputs:\n dilated_cluster (np.ndarray) : Binary raster indicating\n filtered connected cluster of active pixels, output of\n ensure_minimum_width()\n outside (np.ndarray) : Binary raster same size as the imagery\n raster with 1's representing cells outside the boundary\n and 0's inside the boundary. Output of generate_boundary()\n buffer (int) : Radius of a disk-shaped buffer with which to\n smooth interior features, specified in number of pixels\n Outputs:\n smoothed_cluster (np.ndarray) : Binary raster similar to\n dilated_cluster, with smoothing applied\n " dilated_cluster[outside] = 1 smoothed_cluster = morphology.binary_closing(dilated_cluster, morphology.disk(buffer)) return smoothed_cluster
Function to smooth the interface between channels and island Inputs: dilated_cluster (np.ndarray) : Binary raster indicating filtered connected cluster of active pixels, output of ensure_minimum_width() outside (np.ndarray) : Binary raster same size as the imagery raster with 1's representing cells outside the boundary and 0's inside the boundary. Output of generate_boundary() buffer (int) : Radius of a disk-shaped buffer with which to smooth interior features, specified in number of pixels Outputs: smoothed_cluster (np.ndarray) : Binary raster similar to dilated_cluster, with smoothing applied
unstructured_mesh_refinement_tools.py
smooth_object_interface
passaH2O/meshrefinement
1
python
def smooth_object_interface(dilated_cluster, outside, buffer=5): "\n Function to smooth the interface between channels and island\n Inputs:\n dilated_cluster (np.ndarray) : Binary raster indicating\n filtered connected cluster of active pixels, output of\n ensure_minimum_width()\n outside (np.ndarray) : Binary raster same size as the imagery\n raster with 1's representing cells outside the boundary\n and 0's inside the boundary. Output of generate_boundary()\n buffer (int) : Radius of a disk-shaped buffer with which to\n smooth interior features, specified in number of pixels\n Outputs:\n smoothed_cluster (np.ndarray) : Binary raster similar to\n dilated_cluster, with smoothing applied\n " dilated_cluster[outside] = 1 smoothed_cluster = morphology.binary_closing(dilated_cluster, morphology.disk(buffer)) return smoothed_cluster
def smooth_object_interface(dilated_cluster, outside, buffer=5): "\n Function to smooth the interface between channels and island\n Inputs:\n dilated_cluster (np.ndarray) : Binary raster indicating\n filtered connected cluster of active pixels, output of\n ensure_minimum_width()\n outside (np.ndarray) : Binary raster same size as the imagery\n raster with 1's representing cells outside the boundary\n and 0's inside the boundary. Output of generate_boundary()\n buffer (int) : Radius of a disk-shaped buffer with which to\n smooth interior features, specified in number of pixels\n Outputs:\n smoothed_cluster (np.ndarray) : Binary raster similar to\n dilated_cluster, with smoothing applied\n " dilated_cluster[outside] = 1 smoothed_cluster = morphology.binary_closing(dilated_cluster, morphology.disk(buffer)) return smoothed_cluster<|docstring|>Function to smooth the interface between channels and island Inputs: dilated_cluster (np.ndarray) : Binary raster indicating filtered connected cluster of active pixels, output of ensure_minimum_width() outside (np.ndarray) : Binary raster same size as the imagery raster with 1's representing cells outside the boundary and 0's inside the boundary. Output of generate_boundary() buffer (int) : Radius of a disk-shaped buffer with which to smooth interior features, specified in number of pixels Outputs: smoothed_cluster (np.ndarray) : Binary raster similar to dilated_cluster, with smoothing applied<|endoftext|>