Perform enhancement.
188857
private byte[] enhancement(ClassLoader classLoader, byte[] classfileBuffer) {

    ClassReader cr = new ClassReader(classfileBuffer);
    CLAwareClassWriter cw = new CLAwareClassWriter(FLAGS, classLoader);
    TypeQueryClassAdapter ca = new TypeQueryClassAdapter(cw, enhanceContext);

    try {

      cr.accept(ca, ClassReader.EXPAND_FRAMES);
      if (ca.isLog(9)) {
        ca.log("... completed");
      }
      return cw.toByteArray();

    } catch (AlreadyEnhancedException e) {
      if (ca.isLog(1)) {
        ca.log("already enhanced");
      }
      return null;

    } catch (NoEnhancementRequiredException e) {
      if (ca.isLog(9)) {
        ca.log("... skipping, no enhancement required");
      }
      return null;
    }
  }
684380
public function augmentResponse()
    {
        if (!$this->isSuccessful()) {
            return;
        }

        /** @var CreditCard $card */
        $card = $this->request->getCard();

        if ($card) {
            $ccString = $card->getNumber() . $card->getExpiryMonth() . $card->getExpiryYear();

            $this->data['hash'] = md5($ccString);
            $this->data['brand'] = $card->getBrand();
            $this->data['expiryYear'] = $card->getExpiryYear();
            $this->data['expiryMonth'] = $card->getExpiryMonth();
        }
    }
74325
async def expand(self, request: Request, layer: BaseLayer):
        

        if isinstance(layer, lyr.RawText):
            t = self.reading_time(layer.text)
            yield layer
            yield lyr.Sleep(t)

        elif isinstance(layer, lyr.MultiText):
            texts = await render(layer.text, request, True)

            for text in texts:
                t = self.reading_time(text)
                yield lyr.RawText(text)
                yield lyr.Sleep(t)

        elif isinstance(layer, lyr.Text):
            text = await render(layer.text, request)
            t = self.reading_time(text)
            yield lyr.RawText(text)
            yield lyr.Sleep(t)

        else:
            yield layer
1089512
def added(self, context):
        """"""
        context.ansi = ANSIFormatter(self._enable)
        context.aprint = context.ansi.aprint
1357275
protected function performEnrichment()
    {
        if ( ! count($this->info->form->fields)) {
            return;
        }

        $this->layoutFields = $this->info->form->getLayoutFormFieldKeys();

        $this
            ->enrichCreateRules()
            ->enrichUpdateRules();
    }
1118965
private void enhanceFAB(final FloatingActionButton fab, MotionEvent e) {
        if (hasAllItemsShown()) {
            if (fab.getVisibility() != View.VISIBLE) {
                fab.show();
            }
        }
    }
175234
void increase() {
        // double the size
        length <<= 1;
        // There is no need to preserve what was in the memory before.
        ByteBuffer buffer = Buffer.allocateDirectWithNativeOrder(calculateBufferCapacity(length));
        Buffer.free(memory);
        memory = buffer;
        memoryAddress = Buffer.memoryAddress(buffer);
    }
510816
protected function performEnrichment()
    {
        $strategies = $this->info->export->strategies;

        foreach ($strategies as $key => $strategyData) {

            if (empty($strategyData['strategy'])) {
                $strategies[ $key ]['strategy'] = $key;
            }
        }

        $this->info->export->strategies = $strategies;
    }
704866
protected function performEnrichment()
    {
        if ( ! count($this->info->list->columns)) {
            $this->fillDataForEmpty();
        } else {
            $this->enrichCustomData();
        }
    }
113348
def accel_increase_transparency(self, *args):
        
        transparency = self.settings.styleBackground.get_int('transparency')
        if int(transparency) - 2 > 0:
            self.settings.styleBackground.set_int('transparency', int(transparency) - 2)
        return True
905004
protected function performEnrichment()
    {
        if ($this->info->form->layout && count($this->info->form->layout)) {
            $this->markRequiredForNestedLayoutChildren(null, 'layout');
        }
    }
1207220
def augment_observation(
    observation, reward, cum_reward, frame_index, bar_color=None,
    header_height=27
):
  """"""
  img = PIL_Image().new(
      "RGB", (observation.shape[1], header_height,)
  )
  draw = PIL_ImageDraw().Draw(img)
  draw.text(
      (1, 0), "c:{:3}, r:{:3}".format(int(cum_reward), int(reward)),
      fill=(255, 0, 0)
  )
  draw.text(
      (1, 15), "f:{:3}".format(int(frame_index)),
      fill=(255, 0, 0)
  )
  header = np.copy(np.asarray(img))
  del img
  if bar_color is not None:
    header[0, :, :] = bar_color
  return np.concatenate([header, observation], axis=0)
346665
function performAction(params, feature, cbdone, cbcleanup) {
    var alchemy_vision = watson.alchemy_vision( { api_key: apikey } );

    if (feature == 'imageFaces')
    {
      alchemy_vision.recognizeFaces(params, cbdone);
    } else if (feature == 'imageLink') {
      alchemy_vision.getImageLinks(params, cbdone);
    } else if (feature == 'imageKeywords') {
      alchemy_vision.getImageKeywords(params, cbdone);
    } else if (feature == 'imageText') {
      alchemy_vision.getImageSceneText(params, cbdone);
    }

    if (cbcleanup) cbcleanup();
  }
1037750
def add_capability(self, cls):
        """"""
        if _debug: Collector._debug("add_capability %r", cls)

        # the new type has everything the current one has plus this new one
        bases = (self.__class__, cls)
        if _debug: Collector._debug("    - bases: %r", bases)

        # save this additional class
        self.capabilities.append(cls)

        # morph into a new type
        newtype = type(self.__class__.__name__ + '+' + cls.__name__, bases, {})
        self.__class__ = newtype

        # allow the new type to init
        if hasattr(cls, '__init__'):
            if _debug: Collector._debug("    - calling %r.__init__", cls)
            cls.__init__(self)
1204405
private void enhance(List<File> files) throws MojoExecutionException {
        Options opts = getOptions();

        // list of input files
        String[] args = getFilePaths(files);

        boolean ok;

        final ClassLoader original = Thread.currentThread().getContextClassLoader();
        try {
            if (!tmpClassLoader) {
                extendRealmClasspath();
            }

            ok = PCEnhancer.run(args, opts);
        } finally {
            // We may have change the TCCL, restore the original one
            Thread.currentThread().setContextClassLoader(original);
        }

        if (!ok) {
            throw new MojoExecutionException("The OpenJPA Enhancer tool detected an error, check log");
        }
    }
767303
@ColorInt public static int increaseOpacity(Context context, @ColorRes int res, int alpha) {
        int c = resolveColor(res, context);
        return increaseOpacityFromInt(context, resolveColor(res, context), alpha);
    }
1188579
private void enhanceFAB(final FloatingActionButton fab, int dx, int dy) {
        if (isEnhancedFAB() && getFab() != null) {
            final FloatingActionButton mFloatingActionButton = this.fab;
            if (getLinearLayoutManager() != null) {
                if (dy > 0) {
                    if (mFloatingActionButton.getVisibility() == View.VISIBLE) {
                        mFloatingActionButton.hide();
                    }
                } else {
                    if (mFloatingActionButton.getVisibility() != View.VISIBLE) {
                        mFloatingActionButton.show();
                    }
                }
            }
        }
    }