text:
package org.jetbrains.idea.svn.dialogs.browser;

import com.intellij.openapi.actionSystem.ActionManager;
import com.intellij.openapi.actionSystem.ActionPopupMenu;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.DefaultActionGroup;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.ui.ComboBox;
import com.intellij.openapi.ui.DialogWrapper;
import com.intellij.openapi.ui.Splitter;
import com.intellij.openapi.util.Disposer;
import com.intellij.openapi.vcs.FileStatus;
import com.intellij.openapi.vcs.VcsConfiguration;
import com.intellij.openapi.vcs.ui.CommitMessage;
import com.intellij.ui.CollectionComboBoxModel;
import com.intellij.ui.DocumentAdapter;
import com.intellij.ui.PopupHandler;
import com.intellij.util.ui.GridBag;
import com.intellij.util.ui.components.BorderLayoutPanel;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.idea.svn.SvnVcs;
import org.jetbrains.idea.svn.dialogs.RepositoryBrowserComponent;
import org.jetbrains.idea.svn.dialogs.RepositoryBrowserDialog;
import org.jetbrains.idea.svn.dialogs.RepositoryTreeNode;
import org.tmatesoft.svn.core.SVNException;
import org.tmatesoft.svn.core.SVNURL;

import javax.swing.*;
import javax.swing.event.DocumentEvent;
import javax.swing.tree.TreeNode;
import java.awt.*;
import java.util.Collections;
import java.util.List;
import java.util.function.Consumer;

import static com.intellij.openapi.util.text.StringUtil.isEmpty;
import static com.intellij.util.ui.JBUI.Borders.emptyTop;
import static com.intellij.util.ui.JBUI.Panels.simplePanel;
import static com.intellij.util.ui.JBUI.insets;
import static org.tmatesoft.svn.core.internal.util.SVNPathUtil.tail;

public class CopyOptionsDialog extends DialogWrapper {

  private final SVNURL myURL;
  private CommitMessage myCommitMessage;
  private final Project myProject;
  private JTextField myNameField;
  private JLabel myURLLabel;
  private RepositoryBrowserComponent myBrowser;
  private JLabel myTargetURL;
  private BorderLayoutPanel myMainPanel;

  public CopyOptionsDialog(String title, Project project, RepositoryTreeNode root, RepositoryTreeNode node, boolean copy) {
    super(project, true);
    myProject = project;
    myURL = node.getURL();
    createUI();

    myTargetURL.setForeground(copy ? FileStatus.ADDED.getColor() : FileStatus.MODIFIED.getColor());
    setOKButtonText(copy ? "Copy" : "Move");
    myURLLabel.setText(myURL.toDecodedString());

    TreeNode[] path = node.getSelfPath();
    TreeNode[] subPath = new TreeNode[path.length - 1];
    System.arraycopy(path, 1, subPath, 0, path.length - 1);

    myBrowser.setRepositoryURL(root.getURL(), false, new OpeningExpander.Factory(
      subPath, node.getParent() instanceof RepositoryTreeNode ? (RepositoryTreeNode)node.getParent() : null));
    myBrowser.addChangeListener(e -> update());

    myNameField.setText(tail(myURL.getPath()));
    myNameField.selectAll();
    myNameField.getDocument().addDocumentListener(new DocumentAdapter() {
      protected void textChanged(DocumentEvent e) {
        update();
      }
    });

    String lastMessage = VcsConfiguration.getInstance(myProject).getLastNonEmptyCommitMessage();
    if (lastMessage != null) {
      myCommitMessage.setText(lastMessage);
      myCommitMessage.getEditorField().selectAll();
    }
    Disposer.register(getDisposable(), myBrowser);

    setTitle(title);
    init();
    update();
  }

  @NotNull
  public static ComboBox<String> configureRecentMessagesComponent(@NotNull Project project,
                                                                  @NotNull ComboBox<String> comboBox,
                                                                  @NotNull Consumer<String> messageConsumer) {
    List<String> messages = VcsConfiguration.getInstance(project).getRecentMessages();
    Collections.reverse(messages);
    CollectionComboBoxModel<String> model = new CollectionComboBoxModel<>(messages);

    comboBox.setModel(model);
    comboBox.setRenderer(new MessageBoxCellRenderer());
    comboBox.addActionListener(e -> messageConsumer.accept(model.getSelected()));

    return comboBox;
  }

  private void createUI() {
    myMainPanel = simplePanel();
    myBrowser = new RepositoryBrowserComponent(SvnVcs.getInstance(myProject));

    DefaultActionGroup group = new DefaultActionGroup();
    group.add(new RepositoryBrowserDialog.MkDirAction(myBrowser) {
      @Override
      public void update(AnActionEvent e) {
        super.update(e);
        e.getPresentation().setText("New Remote Folder...");
      }
    });
    group.add(new RepositoryBrowserDialog.DeleteAction(myBrowser));
    group.add(new RepositoryBrowserDialog.RefreshAction(myBrowser));
    ActionPopupMenu popupMenu = ActionManager.getInstance().createActionPopupMenu("", group);
    JPopupMenu component = popupMenu.getComponent();
    myBrowser.getRepositoryTree().addMouseListener(new PopupHandler() {
      @Override
      public void invokePopup(Component comp, int x, int y) {
        component.show(comp, x, y);
      }
    });

    Splitter splitter = new Splitter(true, 0.7f);
    splitter.setFirstComponent(createBrowserPartWrapper());
    splitter.setSecondComponent(createCommitMessageWrapper());

    myMainPanel.addToCenter(splitter);
    ComboBox<String> messagesBox = configureRecentMessagesComponent(myProject, new ComboBox<>(), message -> {
      if (message != null) {
        myCommitMessage.setText(message);
        myCommitMessage.getEditorField().selectAll();
      }
    });
    myMainPanel.addToBottom(simplePanel().addToTop(new JLabel("Recent Messages:")).addToBottom(messagesBox).withBorder(emptyTop(4)));
  }

  @NotNull
  private JPanel createCommitMessageWrapper() {
    myCommitMessage = new CommitMessage(myProject, false, false, true);

    return simplePanel(myCommitMessage).addToTop(new JLabel("Commit Message:"));
  }

  @NotNull
  private JPanel createBrowserPartWrapper() {
    JPanel wrapper = new JPanel(new GridBagLayout());
    GridBag gridBag =
      new GridBag().setDefaultAnchor(GridBagConstraints.NORTHWEST).setDefaultFill(GridBagConstraints.NONE).setDefaultInsets(insets(1))
        .setDefaultWeightX(1).setDefaultWeightY(0);

    gridBag.nextLine().next().weightx(0);
    wrapper.add(new JLabel("Source URL:"), gridBag);

    gridBag.next().fillCellHorizontally();
    myURLLabel = new JLabel();
    myURLLabel.setFont(myURLLabel.getFont().deriveFont(Font.BOLD));
    wrapper.add(myURLLabel, gridBag);

    gridBag.nextLine().next().weightx(0).pady(4);
    wrapper.add(new JLabel("Target Location:"), gridBag);

    gridBag.nextLine().next().fillCell().weighty(1).coverLine(2);
    wrapper.add(myBrowser, gridBag);

    gridBag.nextLine().next().weightx(0).pady(4);
    wrapper.add(new JLabel("Target Name:"), gridBag);

    gridBag.next().fillCellHorizontally();
    myNameField = new JTextField();
    wrapper.add(myNameField, gridBag);

    gridBag.nextLine().next().weightx(0).pady(2);
    wrapper.add(new JLabel("Target URL:"), gridBag);

    gridBag.next().fillCellHorizontally();
    myTargetURL = new JLabel();
    myTargetURL.setFont(myTargetURL.getFont().deriveFont(Font.BOLD));
    wrapper.add(myTargetURL, gridBag);
    return wrapper;
  }

  @NonNls
  protected String getDimensionServiceKey() {
    return "svn4idea.copy.options";
  }

  public String getCommitMessage() {
    return myCommitMessage.getComment();
  }

  public SVNURL getSourceURL() {
    return myURL;
  }

  public String getName() {
    return myNameField.getText();
  }

  @Nullable
  public SVNURL getTargetURL() {
    if (getOKAction().isEnabled()) {
      try {
        return SVNURL.parseURIEncoded(myTargetURL.getText());
      }
      catch (SVNException ignored) {
      }
    }
    return null;
  }

  @Nullable
  public RepositoryTreeNode getTargetParentNode() {
    return myBrowser.getSelectedNode();
  }

  @Nullable
  protected JComponent createCenterPanel() {
    return myMainPanel;
  }

  private void update() {
    RepositoryTreeNode baseNode = myBrowser.getSelectedNode();
    if (baseNode == null) {
      myTargetURL.setText("");
      getOKAction().setEnabled(false);
      return;
    }
    SVNURL baseURL = baseNode.getURL();
    String name = myNameField.getText();
    if (isEmpty(name)) {
      getOKAction().setEnabled(false);
      return;
    }
    try {
      baseURL = baseURL.appendPath(myNameField.getText(), false);
    } catch (SVNException e) {
      getOKAction().setEnabled(false);
      return;
    }
    myTargetURL.setText(baseURL.toString());
    getOKAction().setEnabled(!myURL.toString().equals(myTargetURL.getText()));
  }

  public JComponent getPreferredFocusedComponent() {
    return myNameField;
  }
}


text:
require File.expand_path("../../test_helper", __dir__)

module Teams
  # :stopdoc:
  class NameTest < ActiveSupport::TestCase
    test "name with date" do
      team = Team.create! name: "Tecate-Una Mas"
      team.names.create! name: "Twin Peaks", date: Time.zone.local(2010)
      team.names.create! name: "Team Tecate", date: Time.zone.local(2011)

      assert_equal "Twin Peaks",     team.name(2009)
      assert_equal "Twin Peaks",     team.name(2010)
      assert_equal "Team Tecate",    team.name(2011)
      assert_equal "Tecate-Una Mas", team.name(2012)
      assert_equal "Tecate-Una Mas", team.name(Time.zone.today)
      assert_equal "Tecate-Una Mas", team.name(Time.zone.today.next_year)
      assert_equal "Tecate-Una Mas", team.name
    end

    test "create new name if there are results from previous year" do
      team = Team.create!(name: "Twin Peaks")
      event = SingleDayEvent.create!(date: 1.year.ago)
      senior_men = FactoryBot.create(:category)
      old_result = event.races.create!(category: senior_men).results.create!(team: team)
      assert_equal("Twin Peaks", old_result.team_name, "Team name on old result")

      event = SingleDayEvent.create!(date: Time.zone.today)
      result = event.races.create!(category: senior_men).results.create!(team: team)
      assert_equal("Twin Peaks", result.team_name, "Team name on new result")
      assert_equal("Twin Peaks", old_result.team_name, "Team name on old result")

      team.name = "Tecate-Una Mas"
      team.save!

      assert_equal(1, team.names.reload.size, "names")

      assert_equal("Twin Peaks", old_result.team_name, "Team name should stay the same on old result")
      assert_equal("Tecate-Una Mas", result.reload.team_name, "Team name should change on this year's result")
    end

    test "results before this year" do
      team = Team.create!(name: "Twin Peaks")
      assert_not(team.results_before_this_year?, "results_before_this_year? with no results")

      event = SingleDayEvent.create!(date: Time.zone.today)
      senior_men = FactoryBot.create(:category)
      result = event.races.create!(category: senior_men).results.create!(team: team)
      assert_not(team.results_before_this_year?, "results_before_this_year? with results in this year")

      result.destroy

      event = SingleDayEvent.create!(date: 1.year.ago)
      event.races.create!(category: senior_men).results.create!(team: team)
      team.results_before_this_year?
      assert(team.results_before_this_year?, "results_before_this_year? with results only a year ago")

      event = SingleDayEvent.create!(date: 2.years.ago)
      event.races.create!(category: senior_men).results.create!(team: team)
      team.results_before_this_year?
      assert(team.results_before_this_year?, "results_before_this_year? with several old results")

      event = SingleDayEvent.create!(date: Time.zone.today)
      event.races.create!(category: senior_men).results.create!(team: team)
      team.results_before_this_year?
      assert(team.results_before_this_year?, "results_before_this_year? with results in many years")
    end

    test "rename multiple times" do
      team = Team.create!(name: "Twin Peaks")
      event = SingleDayEvent.create!(date: 3.years.ago)
      senior_men = FactoryBot.create(:category)
      event.races.create!(category: senior_men).results.create!(team: team)
      assert_equal(0, team.names.reload.size, "names")

      team.name = "Tecate"
      team.save!
      assert_equal(1, team.names.reload.size, "names")
      assert_equal(1, team.aliases.reload.size, "aliases")

      team.name = "Tecate Una Mas"
      team.save!
      assert_equal(1, team.names.reload.size, "names")
      assert_equal(2, team.aliases.reload.size, "aliases")

      team.name = "Tecate-¡Una Mas!"
      team.save!
      assert_equal(1, team.names.reload.size, "names")
      assert_equal(3, team.aliases.reload.size, "aliases")

      assert_equal("Tecate-¡Una Mas!", team.name, "New team name")
      assert_equal("Twin Peaks", team.names.first.name, "Old team name")
      assert_equal(Time.zone.today.year - 1, team.names.first.year, "Old team name year")
    end

    test "name date or year" do
      team = FactoryBot.create(:team, name: "Vanilla")
      team.names.create!(name: "Sacha's Team", year: 2001)
      assert_equal("Sacha's Team", team.name(Date.new(2001, 12, 31)), "name for 2001-12-31")
      assert_equal("Sacha's Team", team.name(Date.new(2001)), "name for 2001-01-01")
      assert_equal("Sacha's Team", team.name(2001), "name for 2001")
    end

    test "multiple names" do
      team = FactoryBot.create(:team, name: "Vanilla")
      team.names.create!(name: "Mapei", year: 2001)
      team.names.create!(name: "Mapei-Clas", year: 2002)
      team.names.create!(name: "Quick Step", year: 2003)
      assert_equal(3, team.names.size, "Historical names. #{team.names.map(&:name).join(', ')}")
      assert_equal("Mapei", team.name(2000), "Historical name 2000")
      assert_equal("Mapei", team.name(2001), "Historical name 2001")
      assert_equal("Mapei-Clas", team.name(2002), "Historical name 2002")
      assert_equal("Quick Step", team.name(2003), "Historical name 2003")
      assert_equal("Quick Step", team.name(2003), "Historical name 2004")
      assert_equal("Vanilla", team.name(Time.zone.today.year - 1), "Last year (after last historical name so should use current name)")
      assert_equal("Vanilla", team.name(Time.zone.today.year), "Name this year")
      assert_equal("Vanilla", team.name(Time.zone.today.year + 1), "Name next year")
    end

    test "rename to old name" do
      team = FactoryBot.create(:team, name: "Vanilla")
      team.names.create!(name: "Sacha's Team", year: 2001)
      assert_equal(1, team.names.size, "Historical names")
      assert_equal("Sacha's Team", team.name(2001), "Historical name 2001")
      team.name = "Sacha's Team"
      team.save!

      assert_equal("Sacha's Team", team.name, "New name")
    end

    test "rename to other teams name" do
      team_o_safeway = Team.create!(name: "Team Oregon/Safeway")
      team_o_safeway.names.create!(name: "Team Oregon", year: 1.year.ago.year)

      team_o_river_city = Team.create!(name: "Team Oregon/River City")
      event = SingleDayEvent.create!(date: 1.year.ago)
      senior_men = FactoryBot.create(:category)
      event.races.create!(category: senior_men).results.create!(team: team_o_river_city)
      team_o_river_city.name = "Team Oregon"
      team_o_river_city.save!

      assert_equal("Team Oregon/Safeway", team_o_safeway.name, "Team Oregon/Safeway name")
      assert_equal(1, team_o_safeway.names.size, "Team Oregon/Safeway historical names")
      assert_equal("Team Oregon", team_o_safeway.names.first.name, "Team Oregon/Safeway historical name")

      assert_equal("Team Oregon", team_o_river_city.name, "Team Oregon/River City name")
      assert_equal(1, team_o_river_city.names.size, "Team Oregon/River City historical names")
      assert_equal("Team Oregon/River City", team_o_river_city.names.first.name, "Team Oregon/River City historical name")
    end

    # Reproduce UTF-8 conversion issues
    test "rename to alias" do
      team = Team.create!(name: "Grundelbruisers/Stewie Bicycles")
      team.names.create!(name: "Grundelbruisers/Stewie Bicycles", year: 1.year.ago.year)

      team.reload
      team.name = "Gründelbrüisers/Stewie Bicycles"
      team.save!

      team.reload
      assert_equal("Gründelbrüisers/Stewie Bicycles", team.name, "Team name")
      assert_equal(0, team.aliases.count, "Expected no aliases, but have: #{team.aliases.map(&:name).join(', ')}")
      assert_equal(1, team.names.count, "Historical names")
    end

    test "different teams with same name" do
      team_o_safeway = Team.create!(name: "Team Oregon/Safeway")
      team_o_safeway.names.create!(name: "Team Oregon", year: 1.year.ago.year)

      team_o_river_city = Team.create!(name: "Team Oregon/River City")
      team_o_river_city.names.create!(name: "Team Oregon", year: 1.year.ago.year)
    end

    test "renamed teams should keep aliases" do
      team = Team.create!(name: "Twin Peaks/The Bike Nook")
      event = SingleDayEvent.create!(date: 3.years.ago)
      senior_men = FactoryBot.create(:category)
      event.races.create!(category: senior_men).results.create!(team: team)
      team.aliases.create!(name: "Twin Peaks")
      assert_equal(0, team.names.reload.size, "names")
      assert_equal(1, team.aliases.reload.size, "Aliases")

      team.name = "Tecate"
      team.save!
      assert_equal(1, team.names.reload.size, "names")
      assert_equal(2, team.aliases.reload.size, "aliases")
      assert_equal(["Twin Peaks", "Twin Peaks/The Bike Nook"], team.aliases.map(&:name).sort, "Should retain keep alias from old name")
    end

    test "create and override alias" do
      vanilla = FactoryBot.create(:team, name: "Vanilla")
      vanilla.aliases.create!(name: "Vanilla Bicycles")
      assert_not_nil(Team.find_by(name: "Vanilla"), "Vanilla should exist")
      assert_not_nil(Alias.find_by(name: "Vanilla Bicycles"), "Vanilla Bicycles alias should exist")
      assert_nil(Team.find_by(name: "Vanilla Bicycles"), "Vanilla Bicycles should not exist")

      dupe = Team.create!(name: "Vanilla Bicycles")
      assert(dupe.valid?, "Dupe Vanilla should be valid")

      assert_not_nil(Team.find_by(name: "Vanilla Bicycles"), "Vanilla Bicycles should exist")
      assert_not_nil(Team.find_by(name: "Vanilla"), "Vanilla should exist")
      assert_nil(Alias.find_by(name: "Vanilla Bicycles"), "Vanilla Bicycles alias should not exist")
      assert_nil(Alias.find_by(name: "Vanilla"), "Vanilla alias should not exist")
    end

    test "update to alias" do
      vanilla = FactoryBot.create(:team, name: "Vanilla")
      vanilla.aliases.create!(name: "Vanilla Bicycles")
      assert_not_nil(Team.find_by(name: "Vanilla"), "Vanilla should exist")
      assert_not_nil(Alias.find_by(name: "Vanilla Bicycles"), "Vanilla Bicycles alias should exist")
      assert_nil(Team.find_by(name: "Vanilla Bicycles"), "Vanilla Bicycles should not exist")

      vanilla.name = "Vanilla Bicycles"
      vanilla.save!
      assert(vanilla.valid?, "Renamed Vanilla should be valid")

      assert_not_nil(Team.find_by(name: "Vanilla Bicycles"), "Vanilla Bicycles should exist")
      assert_nil(Team.find_by(name: "Vanilla"), "Vanilla should not exist")
      assert_nil(Alias.find_by(name: "Vanilla Bicycles"), "Vanilla Bicycles alias should not exist")
      assert_not_nil(Alias.find_by(name: "Vanilla"), "Vanilla alias should exist")
    end

    test "update name different case" do
      vanilla = FactoryBot.create :team, name: "Vanilla"
      vanilla.aliases.create! name: "Vanilla Bicycles"
      vanilla.reload
      assert_equal "Vanilla", vanilla.name, "Name before update"
      vanilla.name = "vanilla"
      vanilla.save!
      vanilla.reload
      assert_equal "vanilla", vanilla.name, "Name after update"
    end
  end
end

redpajama_set_name: RedPajamaGithub


text:
package org.asynchttpclient.providers.netty3;

import org.asynchttpclient.AsyncHttpClient;
import org.asynchttpclient.AsyncHttpClientConfig;
import org.asynchttpclient.async.SimpleAsyncHttpClientTest;
import org.asynchttpclient.providers.netty3.NettyAsyncHttpProvider;

public class NettySimpleAsyncHttpClientTest extends SimpleAsyncHttpClientTest {

    /**
     * Not Used with {@link org.asynchttpclient.SimpleAsyncHttpClient}
     *
     * @param config
     * @return
     */
    @Override
    public AsyncHttpClient getAsyncHttpClient(AsyncHttpClientConfig config) {
        return null;
    }

    public String getProviderClass() {
        return NettyAsyncHttpProvider.class.getName();
    }
}


text:
This gem helps you to cache your resources. The gem allows a soft expiry
of the cache. If the cache soft expires, it serves the stale resource,
but tries to fetch the current resource via an async process. As of now,
it works with Rails cache.

## Build status

[![Build Status](https://travis-ci.org/payrollhero/cache_man.png)](https://travis-ci.org/payrollhero/cache_man)

## Installation

Add this line to your application's Gemfile:

    gem 'cache_man'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install cache_man

## Usage

```ruby
  class Test < ActiveResource::Base
    include CacheMan::Fetchable
  end

  Test.fetch(1) # when invoked the first time, goes and fetches the resource from a remote location.
  # After sometime we try to fetch the resource again
  Test.fetch(1) # will return the value from the cache
  # As of now, the soft expiration for the cache is hard coded to 20 mins
  # We assume that your Rails cache expires after that
  # After 20 mins
  Test.fetch(1) # Still return the cached data, but spins an sysnc process to fetch the fresh data
```

We are going to remove the hard coded expiry time and make it more configurable.
Although the example is demonstrated with ActiveResource, the gem works
for any class that responds to a find method.
So, basically the example
would still work if the Test class inherited from ActiveRecord::Base.

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

## License
Copyright (c) 2013 Suman Mukherjee

MIT License

For more information on license, please look at LICENSE.txt


text:
FROM node:6.5.0
MAINTAINER Joway Wang "joway.w@gmail.com"

RUN apt-get update && \
    apt-get install -y nginx

RUN mkdir /code && \
    mkdir /data && \
    mkdir -p /data/logs/nginx

ENV DATA /data
ENV CODE /code

WORKDIR $CODE
VOLUME $DATA

# For Cache
ADD ./package.json $CODE

RUN npm install

ADD . $CODE/

RUN npm run build && \
    chmod +x ./endpoint.sh

EXPOSE 80

CMD ["./endpoint.sh"]


text:
package com.vip.saturn.job.console.domain;

/**
 * @author xiaopeng.he
 */
public class RestApiErrorResult {

	private String message;

	public RestApiErrorResult() {
	}

	public RestApiErrorResult(String message) {
		this.message = message;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
}


text:
<?php

namespace Magento\Eav\Plugin\Model\ResourceModel\Entity;

class Attribute
{
    /**
     * Cache key for store label attribute
     */
    const STORE_LABEL_ATTRIBUTE = 'EAV_STORE_LABEL_ATTRIBUTE';

    /** @var \Magento\Framework\App\CacheInterface */
    protected $cache;

    /** @var bool|null */
    protected $isCacheEnabled = null;

    /**
     * @param \Magento\Framework\App\CacheInterface $cache
     * @param \Magento\Framework\App\Cache\StateInterface $cacheState
     * @codeCoverageIgnore
     */
    public function __construct(
        \Magento\Framework\App\CacheInterface $cache,
        \Magento\Framework\App\Cache\StateInterface $cacheState
    ) {
        $this->cache = $cache;
        $this->isCacheEnabled = $cacheState->isEnabled(\Magento\Eav\Model\Cache\Type::TYPE_IDENTIFIER);
    }

    /**
     * @param \Magento\Eav\Model\ResourceModel\Entity\Attribute $subject
     * @param callable $proceed
     * @param int $attributeId
     * @return array
     * @SuppressWarnings(PHPMD.UnusedFormalParameter)
     */
    public function aroundGetStoreLabelsByAttributeId(
        \Magento\Eav\Model\ResourceModel\Entity\Attribute $subject,
        \Closure $proceed,
        $attributeId
    ) {
        $cacheId = self::STORE_LABEL_ATTRIBUTE . $attributeId;
        if ($this->isCacheEnabled && ($storeLabels = $this->cache->load($cacheId))) {
            return unserialize($storeLabels);
        }
        $storeLabels = $proceed($attributeId);
        if ($this->isCacheEnabled) {
            $this->cache->save(
                serialize($storeLabels),
                $cacheId,
                [
                    \Magento\Eav\Model\Cache\Type::CACHE_TAG,
                    \Magento\Eav\Model\Entity\Attribute::CACHE_TAG
                ]
            );
        }
        return $storeLabels;
    }
}


text:
Member

<a href="<?php echo base_url().'dashboard/';?>">Halaman Utama

Pengajuan PKL

              Daftar Member

                    <?php if($param): ?>

                      <a href="<?=base_url()?>dashboard/member_form">
                        <button data-toggle="modal" href="#pengajuan" class="btn btn-success"> Tambah Member</button>

                      <a href="<?=base_url()?>p/member/pengajuan?ref=<?=password_hash('ajukanMagang', PASSWORD_BCRYPT)?>">
                        <button class="btn btn-primary" onclick="return confirm('Apakah anda yakin?\nData tidak dapat diubah setelah diajukan.\nPeriksa kembali data anda sebelum melanjutkan.');">PENGAJUAN</button>

                    <?php endif; ?>

                  No
                  Nama
                  Nomer Induk
                  Status
                  Aksi

                <?php $no = 1; foreach($data as $key): ?>

                  <?=$no++?>
                  <?=$key['nama']?>
                  <?=$key['no_induk']?>

                  <?php
                  switch ($key['status']) {
                    case 1:
                        echo "Menunggu";
                        break;
                    case 2:
                        echo "Menunggu";
                        break;
                    case 3:
                        echo "Disetujui";
                        break;
                    case 0:
                        echo "Ditolak";
                        break;
                    case -1:
                        echo "draft";
                        break;
                    default:
                        echo "ERROR";
                        break;
                    }
                  ?>

                  <?php if($key['status'] == 3): ?>
                  <a href="<?=base_url()?>dashboard/daftar_terima?id=<?=$key['id']?>" target="_blank">
                    <button href="" class="btn btn-primary"></button>

                  <?php endif; ?>

                  <a href="<?=base_url()?>dashboard/member_form?id=<?=$key['id']?>&ref=<?=password_hash('editMember', PASSWORD_BCRYPT)?>">
                    <button href="" class="btn btn-primary"></button>

                  <?php if($param): ?>
                  <button class="btn btn-danger" onclick="return confirm('Apakah Anda Yakin?')"></button>
                  <?php endif; ?>

                <?php endforeach; ?>

                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>

 Tambah Menu

                <form action="" role="form" method="POST">

Pesan Disini

                    <button type="button" data-dismiss="modal" class="btn btn-default">Tidak</button>
                    <input type="submit" class="btn btn-success" name="tb" class="btn btn-primary" value="Ya">

                </form>

              Proposal PKL

                  Nama
                  Tanggal
                  Aksi

                  <?=(!empty($berkas))?$berkas[0]['nama_berkas']:'Belum mengunggah'?>
                  <?=(!empty($berkas))?$berkas[0]['updated_date']:'Belum mengunggah'?>

                    <?php if(!empty($berkas)): ?>
                    <a href="<?=base_url()?>download/user/<?=$berkas[0]['file']?>?ref=<?=password_hash(date('dmYh'), PASSWORD_BCRYPT)?>">
                    <button class="btn btn-warning"></button>

                  <?php endif; ?>

            <form action="<?=base_url()?>p/member/upload_proposal?ref=<?=password_hash('uploadProposal', PASSWORD_BCRYPT)?>"  method="POST" enctype="multipart/form-data">

                <input type="file" name="proposal" class="form-control">

File type .pdf, max file 3 mb.

              <input type="submit" class="btn btn-success btn-block" name="tb_upload" value="Upload">
            </form>


text:
package org.ow2.chameleon.everest.query.casaTest;

import org.apache.felix.ipojo.annotations.Component;
import org.apache.felix.ipojo.annotations.Instantiate;
import org.apache.felix.ipojo.annotations.Provides;

import org.ow2.chameleon.everest.impl.ImmutableResourceMetadata;
import org.ow2.chameleon.everest.query.casaTest.device.GenericDeviceManager;
import org.ow2.chameleon.everest.query.casaTest.person.PersonManager;
import org.ow2.chameleon.everest.query.casaTest.zone.ZoneManager;
import org.ow2.chameleon.everest.services.Path;
import org.ow2.chameleon.everest.services.Resource;
import org.ow2.chameleon.everest.services.ResourceMetadata;

import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: root
 * Date: 09/07/13
 * Time: 14:00
 * To change this template use File | Settings | File Templates.
 */
@Component(name = "TestRootRessource")
@Provides(specifications = Resource.class)
@Instantiate
public class TestRootResource extends AbstractResourceCollection {

    /*
    * Name ressource
     */
    public static final String m_casaRoot = "test";

    /*
     * Path of the ressource
    */
    public static final Path m_casaRootPath = Path.from(Path.SEPARATOR + m_casaRoot);

    /*
     * Description of the ressource
    */
    private static final String m_casaDescription = "org.ow2.chameleon.everest.everestApi.casa resources";

    /*
     * List of the subRessource
    */
    private final List<Resource> m_casaResources = new ArrayList<Resource>();

    /*
     * Constructor
    */
    public TestRootResource() {
        super(m_casaRootPath);
        m_casaResources.add(GenericDeviceManager.getInstance());
        m_casaResources.add(PersonManager.getInstance());
        m_casaResources.add(ZoneManager.getInstance());
    }

    public ResourceMetadata getMetadata() {
        ImmutableResourceMetadata.Builder metadataBuilder = new ImmutableResourceMetadata.Builder();
        metadataBuilder.set("Name", m_casaRoot);
        metadataBuilder.set("Path", m_casaRootPath);
        return metadataBuilder.build();
    }

    @Override
    public List<Resource> getResources() {
        return m_casaResources;
    }
}


text:
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                Toggle navigation

            </button>
            Menu

<a href="<?php echo base_url() ?>">Home

                    Services

                            Services Form

<a href="<?php echo PRODUCT_BUY_FORM_URL ?>">Buy Request Form

<a href="<?php echo PRODUCT_SELL_FORM_URL ?>">Sell Request Form

Tender Request Form

                            Services Quality

Product & Service

<a href="<?php echo BENEFITS_URL ?>">Benefits

<a href="<?php echo QUALITY_URL ?>">Quality

                            Categories

<a href="<?php echo BAGS_URL ?>">Bags

<a href="<?php echo TWINE_URL ?>">Twine & Yarn

<a href="<?php echo MACHINES_URL ?>">Machines

<a href="<?php echo ABOUT_URL ?>">About Us

<a href="<?php echo VISION_MISSION_URL ?>">Vision & Mission

<a href="<?php echo CONTACT_URL ?>">Contact Us


text:
<!doctype html>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="%PUBLIC_URL%/css/bs/bootstrap.min.css">
    <link rel="stylesheet" href="%PUBLIC_URL%/css/bs/react-bootstrap-table.min.css">
    <link rel="stylesheet" href="%PUBLIC_URL%/css/bs/react-datetime.css">

    <title>Сервис отказных туров</title>


text:
require 'test/unit'
require File.join(File.dirname(__FILE__),'_loadpath')
require 'openwsman'

class ConstantTest < Test::Unit::TestCase
  def test_constants
    assert_equal     0, Openwsman::FLAG_NONE
    assert_equal     1, Openwsman::FLAG_ENUMERATION_COUNT_ESTIMATION
    assert_equal     2, Openwsman::FLAG_ENUMERATION_OPTIMIZATION
    assert_equal     4, Openwsman::FLAG_ENUMERATION_ENUM_EPR
    assert_equal     8, Openwsman::FLAG_ENUMERATION_ENUM_OBJ_AND_EPR
    assert_equal    16, Openwsman::FLAG_DUMP_REQUEST
    assert_equal    32, Openwsman::FLAG_INCLUDESUBCLASSPROPERTIES
    assert_equal    64, Openwsman::FLAG_EXCLUDESUBCLASSPROPERTIES
    assert_equal   128, Openwsman::FLAG_POLYMORPHISM_NONE
    assert_equal   256, Openwsman::FLAG_MUND_MAX_ESIZE
    assert_equal   512, Openwsman::FLAG_MUND_LOCALE
    assert_equal  1024, Openwsman::FLAG_MUND_OPTIONSET
    assert_equal  2048, Openwsman::FLAG_MUND_FRAGMENT
    assert_equal  4096, Openwsman::FLAG_CIM_EXTENSIONS
    assert_equal  8192, Openwsman::FLAG_CIM_REFERENCES
    assert_equal 16384, Openwsman::FLAG_CIM_ASSOCIATORS
    assert_equal 32768, Openwsman::FLAG_EVENT_SENDBOOKMARK

    assert_equal 0, Openwsman::WSMAN_DELIVERY_PUSH
    assert_equal 1, Openwsman::WSMAN_DELIVERY_PUSHWITHACK
    assert_equal 2, Openwsman::WSMAN_DELIVERY_EVENTS
    assert_equal 3, Openwsman::WSMAN_DELIVERY_PULL
  end
end


text:
Learn about the experimental API for using CSS variables with Material UI components.

CSS variables provide significant improvements in developer experience related to theming and customization. With these variables, you can inject a theme into your app's stylesheet _at build time_ to apply the user's selected settings before the whole app is rendered.

This solves the problem of dark-mode SSR flickering; lets you provide your users with multiple themes beyond light and dark; and offers a better debugging experience overall, among other benefits.

Previously, these CSS variables were only available as an experimental API in the MUI System package. Now they are ready for experimental use with Material UI components.

:::info
If you want to see wider support for this API across Material UI's component library, please feel free to contribute to the ongoing development. Make sure to check the [GitHub issue](https://github.com/mui/material-ui/issues/32049) that keeps track of our progress, to see if anyone else is currently working on a component you're interested in.

We'd appreciate any feedback about this API, as it is still in development.
:::

## Introduction

The CSS variables API relies on a new experimental provider for the theme called `Experimental_CssVarsProvider` to inject styles into Material UI components. In addition to providing the theme in the inner React context, this new provider also generates CSS variables out of all tokens in the theme that are not functions, and makes them available in the context as well.

All of these variables are accessible in an object in the theme called `vars`. The structure of this object is nearly identical to the theme structure, the only difference is that the values represent CSS variables.

## Usage

`Experimental_CssVarsProvider` is a new experimental provider that attaches all generated CSS variables to the theme and puts them in React's context. Children elements under this provider will also be able to read the CSS variables from the `theme.vars`.

```js
import { Experimental_CssVarsProvider as CssVarsProvider } from '@mui/material/styles';

function App() {
  return <CssVarsProvider>...</CssVarsProvider>;
}
```

If you use TypeScript, check out the [theme types setup](#typescript).

### Customizing components

Because the CSS variables API is an experimental feature, it is currently only supported by the `Button` component. To customize it using CSS variables, you'll need to wrap your application with `Experimental_CssVarsProvider`.

Play around with the demo below!

{{"demo": "CssVariablesCustomization.js" }}

If you are using TypeScript you should use module augmentation to update the `Theme` structure:

```tsx
import { Theme as MuiTheme } from '@mui/material/styles';

declare module '@mui/material/styles' {
  interface Theme {
    vars: Omit<
      MuiTheme,
      'typography' | 'mixins' | 'breakpoints' | 'direction' | 'transitions'
    >;
  }
}
```

### Customizing the theme

If you want, for example, to override Material UI's default color schemes, you can use the `experimental_extendTheme` utility.

```jsx
const theme = experimental_extendTheme({
  colorSchemes: {
    light: {
      palette: {
        primary: teal,
        secondary: deepOrange,
      },
    },
    dark: {
      palette: {
        primary: cyan,
        secondary: orange,
      },
    },
  },
});
```

{{"demo": "CssVarsCustomTheme.js" }}

If you are using [`ThemeProvider`](/material-ui/customization/theming/#theme-provider), you can replace it with the new experimental provider.

```diff
- import { ThemeProvider, createTheme } from '@mui/material/styles';
+ import { Experimental_CssVarsProvider as CssVarsProvider } from '@mui/material/styles';

function App() {
  return (
-    <ThemeProvider theme={createTheme()}>
-      ...
-    </ThemeProvider>
+    <CssVarsProvider>
+      ...
+    </CssVarsProvider>
  )
}
```

### Toggle between light and dark mode

`Experimental_CssVarsProvider` provides light and dark mode by default. It stores the user's selected mode and syncs it with the browser's local storage internally. You can read and update the mode via the `useColorScheme` API.

```jsx
import {
  Experimental_CssVarsProvider as CssVarsProvider,
  useColorScheme,
} from '@mui/material/styles';

const ModeSwitcher = () => {
  const { mode, setMode } = useColorScheme();
  const [mounted, setMounted] = React.useState(false);

  React.useEffect(() => {
    setMounted(true);
  }, []);

  if (!mounted) {
    // for server-side rendering
    // Read more on https://github.com/pacocoursey/next-themes#avoid-hydration-mismatch
    return null;
  }

  return (
    <Button
      variant="outlined"
      onClick={() => {
        if (mode === 'light') {
          setMode('dark');
        } else {
          setMode('light');
        }
      }}
    >
      {mode === 'light' ? 'Dark' : 'Light'}
    </Button>
  );
};

function App() {
  return (
    <CssVarsProvider>
      <ModeSwitcher />
    </CssVarsProvider>
  );
}
```

### Server-side rendering

To prevent the dark-mode SSR flickering during the hydration phase, place `getInitColorSchemeScript()` before the `<Main />` tag.

#### Next.js

To use the API with a Next.js project, add the following code to the custom [`pages/_document.js`](https://nextjs.org/docs/advanced-features/custom-document) file:

```jsx
import Document, { Html, Head, Main, NextScript } from 'next/document';
import { getInitColorSchemeScript } from '@mui/material/styles';

export default class MyDocument extends Document {
  render() {
    return (
      <Html>
        <Head>...</Head>
        <body>
          {getInitColorSchemeScript()}
          <Main />
          <NextScript />
        </body>
      </Html>
    );
  }
}
```

#### Gatsby

To use the API with a Gatsby project, add the following code to the custom [`gatsby-ssr.js`](https://www.gatsbyjs.com/docs/reference/config-files/gatsby-ssr/) file:

```jsx
import React from 'react';
import { getInitColorSchemeScript } from '@mui/material/styles';

export function onRenderBody({ setPreBodyComponents }) {
  setPreBodyComponents([getInitColorSchemeScript()]);
}
```

### TypeScript

You need to import the theme augmentation to include `theme.vars` and other utilities related to CSS variables to the theme:

```ts
// this can be the root file of you application
import type {} from '@mui/material/themeCssVarsAugmentation';
```

Then, you will be able to access `theme.vars` in any of the styling APIs, for example the `styled`:

```ts
import { styled } from '@mui/material/styles';

const StyledComponent = styled('button')(({ theme }) => ({
  // typed-safe
  color: theme.vars.palette.primary.main,
}));
```

## API

### `<CssVarsProvider>` props

- `defaultMode?: 'light' | 'dark' | 'system'` - Application's default mode (`light` by default)
- `disableTransitionOnChange : boolean` - Disable CSS transitions when switching between modes
- `enableColorScheme: boolean` - Indicate to the browser which color scheme is used (light or dark) for rendering built-in UI
- `prefix: string` - CSS variable prefix
- `theme: ThemeInput` - the theme provided to React's context
- `modeStorageKey?: string` - localStorage key used to store application `mode`
- `attribute?: string` - DOM attribute for applying color scheme

### `useColorScheme: () => ColorSchemeContextValue`

- `mode: string` - The user's selected mode
- `setMode: mode => {…}` - Function for setting the `mode`. The `mode` is saved to internal state and local storage; if `mode` is null, it will be reset to the default mode

### `getInitColorSchemeScript: (options) => React.ReactElement`

**options**

- `enableSystem?: boolean`: - If `true` and the selected mode is not `light` or `dark`, the system mode is used
- `modeStorageKey?: string`: - localStorage key used to store application `mode`
- `attribute?: string` - DOM attribute for applying color scheme


text:
class AudioEvent
{
	typedef void(*Function)();

	std::deque<Function> deque;

public:
	AudioEvent& operator +=(Function f)
	{
		deque.push_back(f);
		return *this;
	}

	void operator()()
	{
		for (std::deque<Function>::iterator it(deque.begin()); it != deque.end(); ++it)
			(*it)();
	}
};

#endif


text:
'use strict';

//Stops service used to communicate Stops REST endpoints
angular.module('stops').factory('Stops', ['$resource',
	function($resource) {
		return $resource('stops/:stopId', { stopId: '@_id'
		}, {
			update: {
				method: 'PUT'
			}
		});
	}
]);


text:
<link rel="stylesheet" type="text/css" href="/Content/style.css" >

.NETFramework,Version=v4.0

.NETFramework,Version=v4.0

The following public types have been removed

LibGit2Sharp.BlobExtensions

LibGit2Sharp.BranchCollectionExtensions

LibGit2Sharp.ConfigurationExtensions

LibGit2Sharp.NetworkExtensions

LibGit2Sharp.NoteCollectionExtensions

LibGit2Sharp.ObjectDatabaseExtensions

LibGit2Sharp.ReferenceCollectionExtensions

LibGit2Sharp.TagCollectionExtensions

LibGit2Sharp.TreeDefinitionExtensions

The following public types have been made internal.

LibGit2Sharp.Core.Epoch

LibGit2Sharp.Core.GitCredentialType

LibGit2Sharp.ReferenceExtensions

The following types have differences.

LibGit2Sharp.BranchCollection

Methods Removed

LibGit2Sharp.Branch Add(string, LibGit2Sharp.Commit, LibGit2Sharp.Signature, string, bool)

LibGit2Sharp.Branch Rename(LibGit2Sharp.Branch, string, LibGit2Sharp.Signature, string, bool)

LibGit2Sharp.CherryPickOptions

Fields Removed

int RenameThreshold

int TargetLimit

Methods Removed

LibGit2Sharp.CheckoutNotifyFlags get_CheckoutNotifyFlags()

bool get_CommitOnSuccess()

LibGit2Sharp.CheckoutFileConflictStrategy get_FileConflictStrategy()

bool get_FindRenames()

LibGit2Sharp.MergeFileFavor get_MergeFileFavor()

LibGit2Sharp.Handlers.CheckoutNotifyHandler get_OnCheckoutNotify()

LibGit2Sharp.Handlers.CheckoutProgressHandler get_OnCheckoutProgress()

void set_CheckoutNotifyFlags(LibGit2Sharp.CheckoutNotifyFlags)

void set_CommitOnSuccess(bool)

void set_FileConflictStrategy(LibGit2Sharp.CheckoutFileConflictStrategy)

void set_FindRenames(bool)

void set_MergeFileFavor(LibGit2Sharp.MergeFileFavor)

void set_OnCheckoutNotify(LibGit2Sharp.Handlers.CheckoutNotifyHandler)

void set_OnCheckoutProgress(LibGit2Sharp.Handlers.CheckoutProgressHandler)

LibGit2Sharp.CommitLog

Methods Obsoleted

LibGit2Sharp.Commit FindMergeBase(LibGit2Sharp.Commit, LibGit2Sharp.Commit)
 This method will be removed in the next release. Please use ObjectDatabase.FindMergeBase() instead. Obsoleted with warning.

LibGit2Sharp.Commit FindMergeBase(IEnumerable<LibGit2Sharp.Commit>, LibGit2Sharp.MergeBaseFindingStrategy)
 This method will be removed in the next release. Please use ObjectDatabase.FindMergeBase() instead. Obsoleted with warning.

LibGit2Sharp.Configuration

Methods Obsoleted

void .ctor(string, string, string)
 This method will be removed in the next release. Please use Configuration.BuildFrom(string, string, string, string) instead. Obsoleted with warning.

LibGit2Sharp.FastForwardStrategy

Fields Obsoleted

LibGit2Sharp.FastForwardStrategy NoFastFoward
 This enum member will be removed in the next release. Please use NoFastForward instead. Obsoleted with warning.

LibGit2Sharp.FileStatus

Fields Removed

LibGit2Sharp.FileStatus RenamedInWorkDir

Fields Obsoleted

LibGit2Sharp.FileStatus Added
 This enum member will be removed in the next release. Please use NewInIndex instead. Obsoleted with warning.

LibGit2Sharp.FileStatus Missing
 This enum member will be removed in the next release. Please use DeletedFromWorkdir instead. Obsoleted with warning.

LibGit2Sharp.FileStatus Modified
 This enum member will be removed in the next release. Please use ModifiedInWorkdir instead. Obsoleted with warning.

LibGit2Sharp.FileStatus Removed
 This enum member will be removed in the next release. Please use DeletedFromIndex instead. Obsoleted with warning.

LibGit2Sharp.FileStatus Staged
 This enum member will be removed in the next release. Please use ModifiedInIndex instead. Obsoleted with warning.

LibGit2Sharp.FileStatus StagedTypeChange
 This enum member will be removed in the next release. Please use TypeChangeInIndex instead. Obsoleted with warning.

LibGit2Sharp.FileStatus TypeChanged
 This enum member will be removed in the next release. Please use TypeChangeInWorkdir instead. Obsoleted with warning.

LibGit2Sharp.FileStatus Untracked
 This enum member will be removed in the next release. Please use NewInWorkdir instead. Obsoleted with warning.

LibGit2Sharp.IQueryableCommitLog

Methods Obsoleted

LibGit2Sharp.Commit FindMergeBase(LibGit2Sharp.Commit, LibGit2Sharp.Commit)
 This method will be removed in the next release. Please use ObjectDatabase.FindMergeBase() instead. Obsoleted with warning.

LibGit2Sharp.Commit FindMergeBase(IEnumerable<LibGit2Sharp.Commit>, LibGit2Sharp.MergeBaseFindingStrategy)
 This method will be removed in the next release. Please use ObjectDatabase.FindMergeBase() instead. Obsoleted with warning.

LibGit2Sharp.IRepository

Methods Removed

LibGit2Sharp.Branch Checkout(LibGit2Sharp.Branch, LibGit2Sharp.CheckoutOptions, LibGit2Sharp.Signature)

LibGit2Sharp.Branch Checkout(string, LibGit2Sharp.CheckoutOptions, LibGit2Sharp.Signature)

LibGit2Sharp.Branch Checkout(LibGit2Sharp.Commit, LibGit2Sharp.CheckoutOptions, LibGit2Sharp.Signature)

void Reset(LibGit2Sharp.ResetMode, LibGit2Sharp.Commit, LibGit2Sharp.Signature, string)

Methods Obsoleted

void Reset(LibGit2Sharp.Commit, IEnumerable<string>, LibGit2Sharp.ExplicitPathsOptions)
 This method will be removed in the next release. Please use Index.Replace() instead. Obsoleted with warning.

LibGit2Sharp.MergeConflictException - Obsoleted

This type will be removed in the next release. Please use CheckoutConflictException instead. Obsoleted with warning.

Methods Removed

void .ctor(string)

void .ctor(string, Exception)

LibGit2Sharp.MergeOptions

Fields Removed

int RenameThreshold

int TargetLimit

Methods Removed

LibGit2Sharp.CheckoutNotifyFlags get_CheckoutNotifyFlags()

bool get_CommitOnSuccess()

LibGit2Sharp.CheckoutFileConflictStrategy get_FileConflictStrategy()

bool get_FindRenames()

LibGit2Sharp.MergeFileFavor get_MergeFileFavor()

LibGit2Sharp.Handlers.CheckoutNotifyHandler get_OnCheckoutNotify()

LibGit2Sharp.Handlers.CheckoutProgressHandler get_OnCheckoutProgress()

void set_CheckoutNotifyFlags(LibGit2Sharp.CheckoutNotifyFlags)

void set_CommitOnSuccess(bool)

void set_FileConflictStrategy(LibGit2Sharp.CheckoutFileConflictStrategy)

void set_FindRenames(bool)

void set_MergeFileFavor(LibGit2Sharp.MergeFileFavor)

void set_OnCheckoutNotify(LibGit2Sharp.Handlers.CheckoutNotifyHandler)

void set_OnCheckoutProgress(LibGit2Sharp.Handlers.CheckoutProgressHandler)

LibGit2Sharp.Network

Methods Removed

void Fetch(LibGit2Sharp.Remote, LibGit2Sharp.FetchOptions, LibGit2Sharp.Signature, string)

void Fetch(LibGit2Sharp.Remote, IEnumerable<string>, LibGit2Sharp.FetchOptions, LibGit2Sharp.Signature, string)

void Fetch(string, IEnumerable<string>, LibGit2Sharp.FetchOptions, LibGit2Sharp.Signature, string)

void Push(LibGit2Sharp.Remote, string, string, LibGit2Sharp.PushOptions, LibGit2Sharp.Signature, string)

void Push(LibGit2Sharp.Remote, string, LibGit2Sharp.PushOptions, LibGit2Sharp.Signature, string)

void Push(LibGit2Sharp.Remote, IEnumerable<string>, LibGit2Sharp.PushOptions, LibGit2Sharp.Signature, string)

LibGit2Sharp.ObjectDatabase

Methods Removed

LibGit2Sharp.Blob CreateBlob(Stream, string, Nullable<int>)

LibGit2Sharp.Blob CreateBlob(Stream, int)

string ShortenObjectId(LibGit2Sharp.GitObject, Nullable<int>)

LibGit2Sharp.ReferenceCollection

Methods Removed

LibGit2Sharp.DirectReference Add(string, LibGit2Sharp.ObjectId, LibGit2Sharp.Signature, string, bool)

LibGit2Sharp.SymbolicReference Add(string, LibGit2Sharp.Reference, LibGit2Sharp.Signature, string, bool)

LibGit2Sharp.Reference Rename(LibGit2Sharp.Reference, string, LibGit2Sharp.Signature, string, bool)

LibGit2Sharp.Reference UpdateTarget(LibGit2Sharp.Reference, LibGit2Sharp.ObjectId, LibGit2Sharp.Signature, string)

LibGit2Sharp.Reference UpdateTarget(LibGit2Sharp.Reference, LibGit2Sharp.Reference, LibGit2Sharp.Signature, string)

LibGit2Sharp.ReferenceWrapper<TObject>

Methods Obsoleted

string get_Name()
 This property will be removed in the next release. Please use FriendlyName instead. Obsoleted with warning.

LibGit2Sharp.ReflogEntry

Methods Obsoleted

LibGit2Sharp.Signature get_Commiter()
 This property will be removed in the next release. Please use Committer instead. Obsoleted with warning.

LibGit2Sharp.RemoteUpdater

Methods Removed

void Dispose()

LibGit2Sharp.Repository

Methods Removed

LibGit2Sharp.Branch Checkout(string, LibGit2Sharp.CheckoutOptions, LibGit2Sharp.Signature)

LibGit2Sharp.Branch Checkout(LibGit2Sharp.Branch, LibGit2Sharp.CheckoutOptions, LibGit2Sharp.Signature)

LibGit2Sharp.Branch Checkout(LibGit2Sharp.Commit, LibGit2Sharp.CheckoutOptions, LibGit2Sharp.Signature)

void Reset(LibGit2Sharp.ResetMode, LibGit2Sharp.Commit, LibGit2Sharp.Signature, string)

Methods Obsoleted

void Reset(LibGit2Sharp.Commit, IEnumerable<string>, LibGit2Sharp.ExplicitPathsOptions)
 This method will be removed in the next release. Please use Index.Replace() instead. Obsoleted with warning.

LibGit2Sharp.RepositoryExtensions

Methods Removed

LibGit2Sharp.Branch Checkout(LibGit2Sharp.IRepository, string, LibGit2Sharp.Signature)

LibGit2Sharp.Branch Checkout(LibGit2Sharp.IRepository, LibGit2Sharp.Branch, LibGit2Sharp.Signature)

LibGit2Sharp.Branch Checkout(LibGit2Sharp.IRepository, LibGit2Sharp.Commit, LibGit2Sharp.Signature)

LibGit2Sharp.Branch CreateBranch(LibGit2Sharp.IRepository, string, LibGit2Sharp.Signature, string)

LibGit2Sharp.Branch CreateBranch(LibGit2Sharp.IRepository, string, LibGit2Sharp.Commit, LibGit2Sharp.Signature, string)

LibGit2Sharp.Branch CreateBranch(LibGit2Sharp.IRepository, string, string, LibGit2Sharp.Signature, string)

void Reset(LibGit2Sharp.IRepository, LibGit2Sharp.ResetMode, string, LibGit2Sharp.Signature, string)

Methods Obsoleted

void Reset(LibGit2Sharp.IRepository, string, IEnumerable<string>, LibGit2Sharp.ExplicitPathsOptions)
 This method will be removed in the next release. Please use Index.Replace() instead. Obsoleted with warning.

void Reset(LibGit2Sharp.IRepository, LibGit2Sharp.Commit, IEnumerable<string>)
 This method will be removed in the next release. Please use Index.Replace() instead. Obsoleted with warning.

void Reset(LibGit2Sharp.IRepository, LibGit2Sharp.Commit)
 This method will be removed in the next release. Please use Index.Replace() instead. Obsoleted with warning.

LibGit2Sharp.RevertOptions

Fields Removed

int RenameThreshold

int TargetLimit

Methods Removed

LibGit2Sharp.CheckoutNotifyFlags get_CheckoutNotifyFlags()

bool get_CommitOnSuccess()

LibGit2Sharp.CheckoutFileConflictStrategy get_FileConflictStrategy()

bool get_FindRenames()

LibGit2Sharp.MergeFileFavor get_MergeFileFavor()

LibGit2Sharp.Handlers.CheckoutNotifyHandler get_OnCheckoutNotify()

LibGit2Sharp.Handlers.CheckoutProgressHandler get_OnCheckoutProgress()

void set_CheckoutNotifyFlags(LibGit2Sharp.CheckoutNotifyFlags)

void set_CommitOnSuccess(bool)

void set_FileConflictStrategy(LibGit2Sharp.CheckoutFileConflictStrategy)

void set_FindRenames(bool)

void set_MergeFileFavor(LibGit2Sharp.MergeFileFavor)

void set_OnCheckoutNotify(LibGit2Sharp.Handlers.CheckoutNotifyHandler)

void set_OnCheckoutProgress(LibGit2Sharp.Handlers.CheckoutProgressHandler)

LibGit2Sharp.TagFetchMode

LibGit2Sharp.TreeChanges

Methods Removed

LibGit2Sharp.TreeEntryChanges get_Item(string)


text:
using namespace std;

// =======================================================================================
//                                      AssemblageException
// =======================================================================================

///---------------------------------------------------------------------------------------
/// \brief	Brief
///
/// # AssemblageException
/// Detailed description.....
/// Created on: 22-1-2013
///---------------------------------------------------------------------------------------

class AssemblageException : public exception
{
public:
	AssemblageException(string& p_msg,const string &p_file,const string &p_func,int p_line)
	{
		m_msg = "\nAssemblage error: ";
		m_msg.append(p_msg);
		m_msg.append(" > ");
		m_msg.append(p_file);
		m_msg.append(" : ");
		m_msg.append(p_func);
		m_msg.append(" line ");
		m_msg.append(toString(p_line));
		m_msg.append("\n\n");
	}
	virtual ~AssemblageException() {}

	virtual const char* what() const throw()
	{
		return m_msg.c_str();
	}
protected:
private:
	string m_msg;
};


text:
<?php
// Author: Ryan Hewitt - http://www.mesuva.com.au
namespace Concrete\Package\MsvTable;
use Package;
use BlockType;
use AssetList;
use Asset;

class Controller extends Package {

    protected $pkgHandle = 'msv_table';
    protected $appVersionRequired = '5.7.3';
    protected $pkgVersion = '0.9.5';

    public function getPackageDescription() {
        return t("A block to quickly enter and display tabular data.");
    }

    public function getPackageName() {
        return t("Table Block");
    }

    public function install() {
        $pkg = parent::install();
        $this->configurePackage($pkg);
    }

    public function configurePackage($pkg) {
        $blk = BlockType::getByHandle('msv_table');
        if(!is_object($blk) ) {
            BlockType::installBlockType('msv_table', $pkg);
        }
    }

    public function on_start() {
        $al = AssetList::getInstance();

        $al->register( 'javascript', 'handsontable', 'js/handsontable.full.min.js', array('version' => '15.0-beta6', 'position' => Asset::ASSET_POSITION_FOOTER, 'minify' => false, 'combine' => false), $this );
        $al->register( 'css', 'handsontable', 'css/handsontable.full.min.css', array('version' => '15.0-beta6', 'position' => Asset::ASSET_POSITION_HEADER, 'minify' => false, 'combine' => false), $this );
        $al->registerGroup('handsontable',

            array(
                array('javascript', 'handsontable'),
                array('css', 'handsontable'),
            )
        );

    }

}


text:
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN">
	<Properties>
		<Property name="market_data_downloader_filename">./logs/_market_data_downloader.log</Property>
		<Property name="downloaded_stock_filter_filename">./logs/_downloaded_stock_filter.log</Property>
	</Properties>
    <Appenders>
 		<Console name="Console" target="SYSTEM_OUT">
			<PatternLayout>
				<pattern>%d [%t] %-5level %logger{36} - %msg%n</pattern>
			</PatternLayout>
		</Console>
		<File name="MarketDataFile" fileName="${market_data_downloader_filename}">
			<PatternLayout>
				<pattern>%d [%t] %-5level %logger{36} - %msg%n</pattern>
			</PatternLayout>
		</File>
		<File name="StockFilterFile" fileName="${downloaded_stock_filter_filename}">
			<PatternLayout>
				<pattern>%d [%t] %-5level %logger{36} - %msg%n</pattern>
			</PatternLayout>
		</File>
		<File name="StockFilterWarnFile" fileName="./logs/_stock_filter.log">
			<PatternLayout>
				<pattern>%d [%t] %-5level %logger{36} - %msg%n</pattern>
			</PatternLayout>
		</File>
		<File name="StockStorageFile" fileName="./logs/_stock_storage.log">
			<PatternLayout>
				<pattern>%d [%t] %-5level %logger{36} - %msg%n</pattern>
			</PatternLayout>
		</File>
    </Appenders>
    <Loggers>
    	<Root level="error">
    		<AppenderRef ref="MarketDataFile"/>
    	</Root>
    	<Logger name="MarketDataDownloader" level="trace" additivity="false">
    		<AppenderRef ref="MarketDataFile"/>
    	</Logger>
    	<Logger name="DownloadThread" level="trace" additivity="false">
    		<AppenderRef ref="MarketDataFile"/>
    	</Logger>
    	<Logger name="DownloadedStockFilter" level="trace" additivity="false">
    		<AppenderRef ref="StockFilterFile"/>
    	</Logger>
    	<Logger name="FilterThread" level="trace" additivity="false">
    		<AppenderRef ref="StockFilterFile"/>
    	</Logger>
    	<Logger name="StockFilter" level="error" additivity="false">
    		<AppenderRef ref="StockFilterWarnFile"/>
    	</Logger>
    	<Logger name="YahooStockStorage" level="trace" additivity="false">
    		<AppenderRef ref="StockStorageFile"/>
    	</Logger>
    	<Logger name="stsc.as.service.yahoo.downloader.YahooDownloadService" level="trace" additivity="false">
    		<AppenderRef ref="StockStorageFile"/>
    	</Logger>
    </Loggers>
</Configuration>


text:
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>Comments for page "Unknown Pizza"</title>
		<link>http://bvs.wikidot.com/forum/t-209072/unknown-pizza</link>
		<description>Posts in the discussion thread "Unknown Pizza"</description>
				<copyright></copyright>
		<lastBuildDate>Sun, 10 Jul 2022 03:42:30 +0000</lastBuildDate>

				</channel>
</rss>


text:
var app = new PIXI.Application(800, 600, {backgroundColor : 0x1099bb});
document.body.appendChild(app.view);

// create a texture from an image path
var texture = PIXI.Texture.fromImage('required/assets/bunny.png');

// Scale mode for pixelation
texture.baseTexture.scaleMode = PIXI.SCALE_MODES.NEAREST;

for (var i = 0; i < 10; i++) {
    createBunny(
        Math.floor(Math.random() * app.renderer.width),
        Math.floor(Math.random() * app.renderer.height)
    );
}

function createBunny(x, y) {

    // create our little bunny friend..
    var bunny = new PIXI.Sprite(texture);

    // enable the bunny to be interactive... this will allow it to respond to mouse and touch events
    bunny.interactive = true;

    // this button mode will mean the hand cursor appears when you roll over the bunny with your mouse
    bunny.buttonMode = true;

    // center the bunny's anchor point
    bunny.anchor.set(0.5);

    // make it a bit bigger, so it's easier to grab
    bunny.scale.set(3);

    // setup events for mouse + touch using
    // the pointer events
    bunny
        .on('pointerdown', onDragStart)
        .on('pointerup', onDragEnd)
        .on('pointerupoutside', onDragEnd)
        .on('pointermove', onDragMove);

        // For mouse-only events
        // .on('mousedown', onDragStart)
        // .on('mouseup', onDragEnd)
        // .on('mouseupoutside', onDragEnd)
        // .on('mousemove', onDragMove);

        // For touch-only events
        // .on('touchstart', onDragStart)
        // .on('touchend', onDragEnd)
        // .on('touchendoutside', onDragEnd)
        // .on('touchmove', onDragMove);

    // move the sprite to its designated position
    bunny.x = x;
    bunny.y = y;

    // add it to the stage
    app.stage.addChild(bunny);
}

function onDragStart(event) {
    // store a reference to the data
    // the reason for this is because of multitouch
    // we want to track the movement of this particular touch
    this.data = event.data;
    this.alpha = 0.5;
    this.dragging = true;
}

function onDragEnd() {
    this.alpha = 1;
    this.dragging = false;
    // set the interaction data to null
    this.data = null;
}

function onDragMove() {
    if (this.dragging) {
        var newPosition = this.data.getLocalPosition(this.parent);
        this.x = newPosition.x;
        this.y = newPosition.y;
    }
}


text:
<?php

declare(strict_types=1);

namespace PSR7SessionsTest\Storageless\Asset;

use Dflydev\FigCookies\SetCookie;

/**
 * A mutable implementation of {@see SetCookie}, used to demonstrate
 * safety invariants of the {@see SessionMiddleware} internals.
 */
final class MutableBadCookie extends SetCookie
{
    public bool $mutated = false;

    public function __toString(): string
    {
        if ($this->mutated) {
            return 'Cookie: was mutated';
        }

        return parent::__toString();
    }
}