method to set Varaint Annotation Parameters
@return variantAnnotation
179873
private VariantAnnotationProto.VariantAnnotation setVaraintAnnotationParams(){
        VariantAnnotationProto.VariantAnnotation.Builder variantAnnotation = VariantAnnotationProto.VariantAnnotation.newBuilder();
        /*
         * set AdditionalAttributes map type parameter
         */
        //additionalAttributesMap.put(null, null);
        HashMap<String, VariantAnnotationProto.VariantAnnotation.AdditionalAttribute> map = new HashMap<>();
        variantAnnotation.putAllAdditionalAttributes(map);
        /*
         * set AlternateAllele parameter
         */
        variantAnnotation.setAlternate(null);
        /*
         * set CaddScore list type parameter
         */
//        List<CaddScore> caddScoreList = new ArrayList<>();
//        CaddScore caddScore = new CaddScore();
        /*caddScore.setCScore(null);
        caddScore.setRawScore(null);
        caddScore.setTranscriptId(null);*/
//        caddScoreList.add(caddScore);
//        variantAnnotation.setCaddScore(caddScoreList);
        /*
         * set Chromosome parameter
         */
        variantAnnotation.setChromosome(null);

        /*
         * set Clinical map type parameter
         */
        VariantAnnotationProto.VariantTraitAssociation.Builder variantTraitAssociation = VariantAnnotationProto.VariantTraitAssociation.newBuilder();
        variantTraitAssociation.addAllClinvar(Arrays.asList());
        variantTraitAssociation.addAllCosmic(Arrays.asList());
        variantTraitAssociation.addAllGwas(Arrays.asList());
        variantAnnotation.setVariantTraitAssociation(variantTraitAssociation);

        /*
         * set ConsequenceTypes list type parameter
         */
        variantAnnotation.addAllConsequenceTypes(setConsequenceTypeParams());
        /*
         * set ConservationScores list type parameter
         */
        List<VariantAnnotationProto.Score> conservationScoreList = new ArrayList<>();
        VariantAnnotationProto.Score.Builder score = VariantAnnotationProto.Score.newBuilder();
        /*score.setDescription(null);
        score.setScore(null);
        score.setSource(null);    */
        conservationScoreList.add(score.build());
        variantAnnotation.addAllConservation(conservationScoreList);

        variantAnnotation.setEnd(0);
        /*
         * set GeneDrugInteraction map of list type parameter
         */
//        Map<String, List<String>> geneDrugInteractionMap = new HashMap<>();
        List<CommonModel.GeneDrugInteraction> geneDrugInteractionList = new ArrayList<>();
//        List<String> geneDrugInteractionList = new ArrayList<>();
        //geneDrugInteractionList.add("AAA");
        //geneDrugInteractionMap.put("000", geneDrugInteractionList);
        variantAnnotation.addAllGeneDrugInteraction(geneDrugInteractionList);

        /*
         * set Hgvs list type parameter
         */
        List<String> hgvsList = new ArrayList<>();
        //hgvsList.add(null);
        variantAnnotation.addAllHgvs(hgvsList);

        variantAnnotation.setId(null);
        /*
         * set PopulationFrequencies list type parameter
         */
        variantAnnotation.addAllPopulationFrequencies(setPopulationFrequencyParams());

        variantAnnotation.setReference(null);
        variantAnnotation.setStart(0);
        /*
         * set Xref list type parameter
         */
        List<VariantAnnotationProto.VariantAnnotation.Xref> xrefsList = new ArrayList<>();
        VariantAnnotationProto.VariantAnnotation.Xref.Builder xref = VariantAnnotationProto.VariantAnnotation.Xref.newBuilder();
        /*xref.setId(null);
        xref.setSrc(null);*/
        xrefsList.add(xref.build());
        variantAnnotation.addAllXrefs(xrefsList);
        /*
         * return variantAnnotation bean
         */
        return variantAnnotation.build();
    }
1048386
protected function setupDefaults()
    {
        $this->addTransformer('html', function ($value) {
            return new Markup($value, 'UTF-8');
        });
        $this->addTransformer('text', function ($value) {
            return new Markup($value, 'UTF-8');
        });
        $this->addTransformer('textarea', function ($value) {
            return new Markup($value, 'UTF-8');
        });
        $this->addTransformer('markdown', function ($value) {
            $markdown = new ParsedownExtra();
            $value = $markdown->text($value);

            return new Markup($value, 'UTF-8');
        });

        $this->addTransformer('repeater', function ($value) {
            /** @var FieldCollection $collection */
            foreach ($value as $collection) {
                foreach ($collection as $field) {
                    $field->setValue($this->transform($field->getValue(), $field->getFieldType()));
                }
            }

            return $value;
        });

        $this->addTransformer('block', function ($value) {
            return $this->transform($value, 'repeater');
        });
    }
225000
def getVariantAnnotationSet(self, id_):
        
        if id_ not in self._variantAnnotationSetIdMap:
            raise exceptions.AnnotationSetNotFoundException(id_)
        return self._variantAnnotationSetIdMap[id_]
1351027
@Override
	public Map<String, String> nextVariantMapConbination() {

		Map<String, String> variantMap = null;
		if (variantMapStrategyIterator.hasNext()) {
			variantMap = variantMapStrategyIterator.next();
		}
		return variantMap;
	}
899469
@Nullable
    public static String setVariantForView(@NonNull View view, @Nullable String variant) {
        String previousVariant = null;
        String previousAttribute = null;
        for (Map.Entry<String, HashMap<Integer, String>> entry : bindings.entrySet()) {
            if (entry.getValue().containsKey(view.getId())) {
                previousVariant = entry.getKey();
                previousAttribute = entry.getValue().get(view.getId());
                bindings.remove(previousVariant);
                break;
            }
        }
        mapAttribute(previousAttribute, view.getId(), variant, view.getClass().getSimpleName());
        return previousVariant;
    }
484403
private ButtonVariantPainter getButtonPainter(JComponent c) {
        Object               buttonType = c.getClientProperty("JButton.buttonType");
        ButtonVariantPainter button     = standard;

        if ("textured".equals(buttonType) || "segmentedTextured".equals(buttonType)) {
            button = textured;
        }

        return button;
    }
983909
protected int setPaintAlpha(Paint paint, int alpha) {
        final int prevAlpha = paint.getAlpha();
        paint.setAlpha(Ui.modulateAlpha(prevAlpha, alpha));
        return prevAlpha;
    }
1267671
public function deleteVariant()
    {
        $editObjectOxid = $this->getEditObjectId();
        $editObject = oxNew(\OxidEsales\Eshop\Application\Model\Article::class);
        $editObject->load($editObjectOxid);
        if ($editObject->isDerived()) {
            return;
        }

        $this->resetContentCache();

        $variantOxid = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestRawParameter("voxid");
        $variant = oxNew(\OxidEsales\Eshop\Application\Model\Article::class);
        $variant->delete($variantOxid);
    }
833690
private VariantResourceReaderStrategy getVariantStrategy(GeneratorContext context,
			Map<String, VariantSet> variantSetMap) {

		VariantResourceReaderStrategy strategy = null;
		try {
			strategy = (VariantResourceReaderStrategy) resourceProviderStrategyClass.newInstance();
			strategy.initVariantProviderStrategy(context, variantSetMap);
		} catch (InstantiationException | IllegalAccessException e) {
			throw new BundlingProcessException(e);
		}

		return strategy;
	}
1277451
Set<UVariableDecl> requiredParameters() {
    return Maps.filterValues(
            annotatedParameters(),
            (ImmutableClassToInstanceMap<Annotation> annotations) ->
                !annotations.containsKey(MayOptionallyUse.class))
        .keySet();
  }
584216
private Paint getPreparedPaint() {
		getActionButton().resetPaint();
		Paint paint = getActionButton().getPaint();
		paint.setStyle(Paint.Style.FILL);
		paint.setColor(getActionButton().getButtonColorRipple());
		return paint;
	}
187387
public function createContext()
    {
        // context options
        $resolvedOptions = $this->optionsResolver->resolve($this->options);
        $resolvedOptions['content'] = $this->contentResolver->resolve(
            $resolvedOptions['content']
        );

        // create variation
        $variation = $this->variationResolver->resolve(
            (new VariationContext())->denormalize($resolvedOptions)
        );

        return new RenderingContext(
            $resolvedOptions['content'],
            $resolvedOptions['theme'],
            $this->templateResolver->resolve(
                $resolvedOptions['theme'],
                $resolvedOptions['content'],
                $variation,
                $resolvedOptions['templateTypeName']
            ),
            $variation
        );
    }
227408
protected TemplateBase __setRenderArgs0(ITag.__ParameterList params) {
        for (int i = 0; i < params.size(); ++i) {
            ITag.__Parameter param = params.get(i);
            if (null != param.name) __setRenderArg(param.name, param.value);
            else __setRenderArg(i, param.value);
        }
        return this;
    }
587297
public function setAttributeAvId($v)
    {
        if ($v !== null) {
            $v = (int) $v;
        }

        if ($this->attribute_av_id !== $v) {
            $this->attribute_av_id = $v;
            $this->modifiedColumns[AttributeTypeAvMetaTableMap::ATTRIBUTE_AV_ID] = true;
        }

        if ($this->aAttributeAv !== null && $this->aAttributeAv->getId() !== $v) {
            $this->aAttributeAv = null;
        }


        return $this;
    }
231376
public function setStylename($v)
    {
        if ($v !== null) {
            $v = (string) $v;
        }

        if ($this->stylename !== $v) {
            $this->stylename = $v;
            $this->modifiedColumns[MxmapTableMap::COL_STYLENAME] = true;
        }

        return $this;
    }
346158
public function &GetFieldShopVariantDisplayHandler()
    {
        $oItem = $this->GetFromInternalCache('oLookupshop_variant_display_handler_id');
        if (is_null($oItem)) {
            $oItem = TdbShopVariantDisplayHandler::GetInstance($this->fieldShopVariantDisplayHandlerId);
            $this->SetInternalCache('oLookupshop_variant_display_handler_id', $oItem);
        }

        return $oItem;
    }
296625
protected function setCommonApiParameters()
    {
        if (!empty($this->devKey)) {
            $this->setApiParameter('developerkey', $this->devKey);
        }

        $this->validator->validateApiKeys($this->apiKeys);
        $this->setApiParameter('apikey', implode(',', $this->apiKeys));

        return $this;
    }