seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
func setNavigationItemTitle(_ title: String) {
setNavigationItemTitle(title, Color.c1)
}
func setNavigationItemTitle(_ title: String, _ color: UIColor) -> Void {
var attr = self.navigationController?.navigationBar.titleTextAttributes
if attr == nil || (attr?.count)! < 1 {
attr = [NSAttributedStringKey:Any]()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import androidx.preference.PreferenceManager;
import com.appliedrec.verid.core2.VerID;
import com.appliedrec.verid.core2.session.VerIDSessionResult;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
model_name='chartjslinemodel',
name='chart_position',
field=models.CharField(max_length=100, verbose_name='Chart Position', blank=True),
),
migrations.AddField(
model_name='chartjspiemodel',
name='chart_position',
field=models.CharField(max_length=100, verbose_name='Chart Position', blank=True),
),
migrations.AddField(
model_name='chartjspolarmodel',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
files = map(lambda x: open(x, "rt"), sys.argv[1:])
os.chdir(path)
ld = LangReader(dictionaries)
first = True
for f in files:
if not first:
print "\n"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#find_code_part_1(in_str)
find_code_part_2(in_str)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __init__(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
python top5each.py $LLSUB_RANK $LLSUB_SIZE
| ise-uiuc/Magicoder-OSS-Instruct-75K |
};
})<{ singleCharacter: boolean }>`
z-index : 1;
`;
const SecondChar = styled.span.attrs({'data-widget': 'avatar-second-char'})`
z-index : 0;
opacity : 0.7;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Download and build static library
build();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo "Using apt-get. Uninstalling on one of the following : Ubuntu, Debian, Mint"
sudo apt-get -y -q purge apache2.2-common || error_exit $? "Failed on: sudo apt-get -y -q purge apache2.2-common"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
help=_(
'Region of endpoint in Identity service catalog to use.')),
cfg.StrOpt('cacert',
help=_('Optional CA cert file to use in SSL connections '
'with Mistral.')),
cfg.BoolOpt('insecure',
default=False,
help=_("If set the server certificate will not be verified "
| ise-uiuc/Magicoder-OSS-Instruct-75K |
override func loadView() {
view = webView
}
override func viewDidLoad() {
super.viewDidLoad()
title = NSLocalizedString("Software licenses", comment: "")
}
override func viewWillAppear(_ animated: Bool) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
admin.site.site_title = 'Админка' # default: "Django site admin"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if __name__ == "__main__":
pyunit_utils.standalone_test(test_reset_threshold)
else:
test_reset_threshold()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print lon + ',' + lat + ',' + alt
| ise-uiuc/Magicoder-OSS-Instruct-75K |
raise NotImplementedError(
'Input argument supports only the following types: PipelineParam'
', str, int, float. Got: "{}".'.format(argument_value))
if not component_spec.name:
component_spec.name = _components._default_component_name
| ise-uiuc/Magicoder-OSS-Instruct-75K |
this.titleService.setTitle(`${this.id} | IMAGE specimen`);
});
this.tablesService.getSpecimen(this.id).subscribe(
data => {
this.data = data;
if (this.checkExistence('collection_place_latitude', true) &&
this.checkExistence('collection_place_longitude', true)) {
this.latitude = data['collection_place_latitude'];
this.longitude = data['collection_place_longitude'];
this.baseMapLayer = new ol.layer.Tile({source: new ol.source.OSM()});
this.baseMapLayer.setSource(
new ol.source.OSM({
url: 'https://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}',
attributions: '© <a href="https://services.arcgisonline.com/arcgis/rest/services">ArcGis Online Services</a>'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// 'result' parameter is constant, can't be changed.
var result = result
guard let row = row["c"] as? [[String: Any]] else {
return result
}
// The server only gave us a time in timezone GMT-3 (e.g. 12:09:00)
// We need to add the current date and timezone data. (e.g. 2017-09-10 15:09:00 +0000)
// Start off by getting the current date.
let dateFormatter = DateFormatter()
dateFormatter.dateFormat = "yyyy-MM-dd'T'"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
threads = list()
for _ in range(nthreads):
thread = threading.Thread(
target=__do_abund_dist,
args=(parser,)
)
threads.append(thread)
thread.start()
for thread in threads:
thread.join()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return "Hello Api Framework!";
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
See https://docs.python.org/3/reference/simple_stmts.html#assert for the documentation
on the classical assert function
Args:
condition(bool): the condition. If False, raise AssertionError
on_error_msg(str): optional message for precising the error, in case of error
| ise-uiuc/Magicoder-OSS-Instruct-75K |
last_equal_candies_total_number = 0
while alice_pos <= bob_pos:
if alice_current_weight <= bob_current_weight:
alice_current_weight += candies_weights[alice_pos]
alice_pos += 1
else:
bob_current_weight += candies_weights[bob_pos]
bob_pos -= 1
if alice_current_weight == bob_current_weight:
last_equal_candies_total_number = alice_pos + (number_of_candies - bob_pos - 1)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for (const k in envConfig) {
if (envConfig[k]) {
process.env[k] = envConfig[k];
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#include "CastorDbProducer.h"
#include "CastorHardcodeCalibrations.h"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.mp3_path = ''
self.id2file = {} # {mp3 ID: file name}
self.filenamedict = {} # {mp3 ID: file name}
self.playlist_history_file = ''
def check_config(self):
try:
self.uc_path = UC_PATH
self.mp3_path = MP3_PATH
self.playlist_history_file = PLAYLIST_HISTORY
except Exception as e:
print('Warning {} 请检查配置文件config.py变量 UC_PATH MP3_PATH'.format(str(e)))
return False
if not os.path.exists(self.uc_path):
print('缓存路径错误: {}'.format(self.uc_path))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Computes the loss for Faster R-CNN.
Also supports FPN
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>EUDAT-B2ACCESS/b2access-deprovisioning-report<filename>b2accessdeprovisioning/configparser.py
from __future__ import absolute_import
import yaml
with open("config.yml", "r") as f:
config = yaml.load(f)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private:
void init() noexcept;
pixel_type viewport_to_screen(const point_type& v) const noexcept;
private:
const window& m_wnd;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import entidade.Usuario;
import jdk.nashorn.internal.runtime.Context;
@ManagedBean(name = "LoginBean")
@SessionScoped
public class LoginBean {
private String nomeBean;
private String senhaBean;
private Usuario usuario;
private UsuarioDaoImplements dao;
public LoginBean() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied. See the License for the specific language governing
# permissions and limitations under the License.
# This test runs FWTS and munges the JSON report output into
# python unittest.TestCase objects, so we get the individual
# failure/successes into the TestResult output (e.g. junit XML)
'''
FWTS
----
| ise-uiuc/Magicoder-OSS-Instruct-75K |
)
if (!ok) {
getLogger().info(`Cancelled delete resource type ${typeName} identifier ${identifier}`)
return false
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public extension InspectableView where View: MultipleViewContent {
func hStack(_ index: Int) throws -> InspectableView<ViewType.HStack> {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.assertTrue(user)
class TestClass(ACLMixin):
_acls_ = [
['testgroup',ALLOW_ALL,DENY_UNDERSCORED,MODE_READ|MODE_WRITE|MODE_EXECUTE],
]
tc = TestClass()
self.assertTrue(tc._acl_allows(
user,
'te_st',
MODE_EXECUTE
))
self.assertFalse(tc._acl_allows(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</div>
<div class="panel-body">
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Meine neuer Code..
Neue Codezeile ....
Tst stash zum 2. mal | ise-uiuc/Magicoder-OSS-Instruct-75K |
print("[+] Received name : ", zipped_file)
######################################### DONE
my_socket.receive_zipped(zipped_file) | ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>1-10
__name__ = "helpers"
def is_int(s):
""" return True if string is an int """
try:
int(s)
return True
except ValueError:
return False
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class HelpOnFailArgumentParser(argparse.ArgumentParser):
"""
Prints help whenever the command-line arguments could not be parsed.
"""
def error(self, message):
sys.stderr.write("Error: %s\n\n" % message)
self.print_help()
sys.exit(2)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let _{let a{{b{{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>tuan231195/api-tools
export const NAMESPACE = 'api-tools:types-generator';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return OFPort.MAX.getPortNumber() <= port.getPortNumber() && port.getPortNumber() <= -1;
}
/**
* Analyse port status and report it's "enabled" state.
*/
public boolean isPortEnabled(OFPortDesc portDesc) {
// steal validation logic from {@link net.floodlightcontroller.core.internal.OFSwitch.portEnabled}
return (!portDesc.getState().contains(OFPortState.BLOCKED)
&& !portDesc.getState().contains(OFPortState.LINK_DOWN)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.ref = ref
def fixup(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
db.session.close() | ise-uiuc/Magicoder-OSS-Instruct-75K |
if [ "$1" = "bash" ]; then
exec /bin/bash
fi
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Example Usage:
python run_windowing_pipeline.py \
--project_id=<PROJECT_ID> \
--dataset_id=<DATASET_ID> \
--run_id=<OPTIONAL RUN_ID> \
--snapshot_start_date="2016-11-17" \
--snapshot_end_date="2017-07-01" \
--slide_interval_in_days=7 \
--lookback_window_size_in_days=30 \
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//# sourceMappingURL=removeUnusedHooks.d.ts.map | ise-uiuc/Magicoder-OSS-Instruct-75K |
EndState=True)
custom_error_fallback = awssl.Pass(
Name="CustomErrorFallback",
ResultAsJSON={"msg": "This is a fallback from a custom lambda function exception"},
| ise-uiuc/Magicoder-OSS-Instruct-75K |
all_values = hp.values[locs][None,:]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("Minimum value=%.6f occurring at %.6f" %(f(m),m))
break
previousm = m
count += 1
main(-3,-1,-2.2)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
""" Multiresolution Analysis of Acoustic Diversity Scikit (Toolbox for SciPy)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#!/bin/sh
myfolder=$1
conda build --py=all ./$myfolder
| ise-uiuc/Magicoder-OSS-Instruct-75K |
('robocrm', '0019_auto_20141021_1157'),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export default Ladder;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
longest = hypot(w, h)
for num in nums:
print('DA') if num <= longest else print('NE')
fits_in_box(int(input()) for _ in range(n))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
else:
return "01"+dt
def bnf(s):
return ",".join([bsdconv01(x) for x in s.strip().split(" ")])
iotest=[
["big5:utf-8","\xa5\x5c\x5c\xaf\xe0","功\能"],
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pass
def on_action(self, tavern: 'Tavern', player: str, action: 'Action') -> Annotation:
pass
def on_game_over(self, tavern: 'Tavern') -> Annotation:
pass
| ise-uiuc/Magicoder-OSS-Instruct-75K |
collectionView.showsVerticalScrollIndicator = false
collectionView.showsHorizontalScrollIndicator = false
collectionView.backgroundColor = UIColor(r: 231, g: 231, b: 231)
// 注册cell
collectionView.register(CountryVCCell.self, forCellWithReuseIdentifier: CountryVCCellIdentifier)
collectionView.register(CountryVCSectionView.self, forSupplementaryViewOfKind: UICollectionElementKindSectionHeader, withReuseIdentifier: CountryVCSectionViewIdentifier)
return collectionView;
}()
override func viewDidLoad() {
super.viewDidLoad()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
do
./check-one.sh ${PROGRAM}
done
echo "md5sum hash of outputs"
md5sum *.txt
| ise-uiuc/Magicoder-OSS-Instruct-75K |
posts = cur.execute('select * from post')
con.commit()
con.close()
return posts
def make_db():
schema = open(path.join(ROOT,'schema.sql')).read()
con = sql.connect(path.join(ROOT, dbname))
con.execute(schema)
con.commit()
con.close()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Update key phrase info.
if self.key_phrases:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/*$r = $users->search(function ($item, $key) {
var_dump($item->first_name);
return $item->first_name === 'ال<NAME>';
//return $item->id == 10;
});
dd($r);*/
}); | ise-uiuc/Magicoder-OSS-Instruct-75K |
new_db = odb.read_db(new_db, db_file)
if odb.db_diff(db, new_db):
exit("Error: Difference found between exported and imported DB")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// The chain head was updated, so abandon the
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if not id:
raise APIException('Invalid ID or ID hasn\'t been specified')
url = "%s%s/" % (self.url, id)
data = {'json': data}
return self._client.patch(url, **self._append_headers(data))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from fastapi import APIRouter
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return false;
}
self.executions_left_in_window -= 1.0;
return true;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* Thrown when some input cannot be mapped using the declared charset (bytes
* to characters or the other way around).
*/
@SuppressWarnings("serial")
public final class UnmappableInputException extends Exception {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace uilib
{
AnimEffectAction::AnimEffectAction()
{
m_animSprite = 0;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
final_balance = beneficiary.balance()
assert final_balance - init_balance >= bob_balance
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace Toolkit {
class UniformIntRNG {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ENDPOINTS_TO_FILTER_OUT = [
"/set_pixel"
]
class EndpointFilter(logging.Filter):
"""Used to filter out unicorn endpoint logging."""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/usr/bin/thecreedd
echo "thecreed has been setup successfully and is running..."
exit 0
| ise-uiuc/Magicoder-OSS-Instruct-75K |
physical_cores -- Number of physical cores present (Default: None)
total_cores -- Total number of cores including virtual cores (Default: None)
min_frequency -- Minimum frequency (Default: None)
max_frequency -- Maximum frequency (Default: None)
current_frequency -- Current frequency (Default: None)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
.then(snapshot => {
const result: any[] = []
if (snapshot.empty) {
return result
}
snapshot.forEach(document => result.push(document.data()))
if (result.length === 1) {
return result[0]
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
DbSet<DataSeed> DataSeeds { get; }
DbSet<Account> Accounts { get; }
DbSet<Login> Logins { get; }
DbSet<LoginAttempt> LoginAttempts { get; }
DbSet<Character> Characters { get; }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
PolygonShape polygon = new PolygonShape();
polygon.setAsBox(rectangle.width * 0.5f,
rectangle.height * 0.5f,
new Vector2(rectangle.width * 0.5f, rectangle.height * 0.5f),
0.0f);
return polygon;
}
public static CircleShape getCircle(Circle circle) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// Specifies one member of D3D12_QUERY_HEAP_TYPE.
public var `type`: D3DQueryHeapType {
get {
return D3DQueryHeapType(rawValue.Type)
}
set {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
viewOne.frame.origin.x < viewTwo.frame.origin.x
}
}
/// - Returns: A copy of the receiver with the elements ordered bottom-most
/// to topmost.
func orderedVertically() -> [Element] {
return sorted { viewOne, viewTwo in
| ise-uiuc/Magicoder-OSS-Instruct-75K |
qstart, qend = psl.mQueryFrom, psl.mQueryTo
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Copyright (c) 2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
set -eou pipefail
shopt -s globstar
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub mod new_user;
pub mod to_do_item;
pub mod to_do_items;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#####################################################################################################
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .models import Image
class ImageSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Image
fields = ('pk', 'image', )
| ise-uiuc/Magicoder-OSS-Instruct-75K |
stack clean && stack build && stack exec maybe-hero-exe world.yml
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return className
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#
# Internal signals
#
page_address = Array([Signal(8) for _ in range(3)])
column_address = Array([Signal(8) for _ in range(2)])
address = Array([Signal(8) for _ in range(5)])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub rights: Option<Subtable<Length>>,
/// The default spacing for any character not in the kerning table.
pub default_kerning: Length,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
df["VI_returns_mean"] = data[:, 4]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
b = Singleowner.default("FlatPlatePVSingleowner")
# set up shading
a.Shading.subarray1_shade_mode = 1
a.Layout.subarray1_nmodx = 12
a.Layout.subarray1_nmody = 2
a.SystemDesign.subarray1_gcr = float(gcr)
land_area = a.CECPerformanceModelWithModuleDatabase.cec_area * (a.SystemDesign.subarray1_nstrings
* a.SystemDesign.subarray1_modules_per_string) / gcr * 0.0002471
a.execute(0)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@total_ordering
class P2(Cartesian2):
__slots__ = ()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if BlzGetTriggerPlayerMouseX() != 0.0 or BlzGetTriggerPlayerMouseY() != 0.0:
GroupEnumUnitsSelected(OrderHistory._g,GetTriggerPlayer())
u = FirstOfGroup(OrderHistory._g)
while(u!=None):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from pyquilted.quilted.skills_table import SkillsTable
class TestBuilderSkills(unittest.TestCase):
def setUp(self):
skills = ["karate", "joust", "parkour", "spooning", "youtubing", "dev"]
self.builder = SkillsBuilder(skills)
self.builder_table = SkillsBuilder(skills, table=True)
def test_builder_skills(self):
self.assertTrue(hasattr(self.builder, 'odict'))
self.assertTrue(hasattr(self.builder, 'table'))
self.assertTrue(hasattr(self.builder, 'sorting'))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'Yuan ', # 0x58
'Kuai ', # 0x59
'[?] ', # 0x5a
'Qiang ', # 0x5b
'Wu ', # 0x5c
'E ', # 0x5d
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'cpg': '#2E9FFD',
'transition': '#458A03',
'transversion': '#EA4545',
}
#%%
p = df3.plot.scatter('exac_mu_snp', 'exac_mu_snp_reverse_complement', color=df3["snp_type"].map(COLOR_MAP))
p.set_title("ExAC 2015 - mu_snp vs. mu_snp of reverse-complement")
plt.show()
#%%
p = df3.plot.scatter('exac_mu_snp', 'uorf_mu_snp', color=df3["snp_type"].map(COLOR_MAP))
p.set_title("exac_mu_snp vs. uorf_mu_snp")
plt.show()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* handle LaunchMode
*/
private boolean handleLaunchMode(FragmentManager fragmentManager, SupportFragment toFragment, String toFragmentTag, int launchMode) {
SupportFragment topFragment = getTopFragment(fragmentManager);
if (topFragment == null) return false;
Fragment stackToFragment = findStackFragment(toFragment.getClass(), toFragmentTag, fragmentManager);
if (stackToFragment == null) return false;
if (launchMode == SupportFragment.SINGLETOP) {
// 在栈顶
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Route::get('/', [PublicController::class, 'getHomepage'])->name('homepage');
Route::get('/contattaci', [PublicController::class, 'getContactPage'])->name('contattaci');
Route::post('/contattaci', [PublicController::class, 'postMessage'])->name('postMessage');
Route::get('/{region}', [PublicController::class, 'getRegionPage'])->name('regione');
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Frac = 1
G = 1.0
GM = G*(4.0/3.0)*np.pi*(r0**3)*rho_0*Frac
| ise-uiuc/Magicoder-OSS-Instruct-75K |
our_file = f.f_code.co_filename
f = f.f_back
while f:
code = f.f_code
if code.co_filename != our_file:
return code.co_filename, f.f_lineno
f = f.f_back
return '<unknown>', 0
# current time
now = time.time()
now_tuple = time.localtime(now)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import torchvision.transforms as transforms
import torchvision.datasets as datasets
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$this->expectExceptionMessage('Activation policy is expected to be a callable.');
new \Magento\TestFramework\Bootstrap\Memory($this->_memoryLimit, 'non_existing_callable');
}
public function testDisplayStats()
{
$eol = PHP_EOL;
$this->expectOutputString("{$eol}=== Memory Usage System Stats ==={$eol}Dummy Statistics{$eol}");
$this->_memoryLimit->expects(
$this->once()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.