seed
stringlengths
1
14k
source
stringclasses
2 values
template <class PtrLike, class Comparator = less<>> void PopHeap(PtrLike begin, PtrLike end, Comparator comparator = Comparator()) { --end; std::swap(*begin, *end); heap::SiftDown(begin, end, 0, comparator); } template <class PtrLike, class Comparator = less<>> void PushHeap(PtrLike begin, PtrLike end, Comparator comparator = Comparator()) { size_type i = end - begin - 1;
ise-uiuc/Magicoder-OSS-Instruct-75K
#params = SqlParameters() #params.administrator_password = "})<PASSWORD>" #p = sd.get_parameters(params) #t = sd.get_template() #resources.create_deployment("89aa748b-0621-4ec3-865a-ab0cde103b13", t, p)
ise-uiuc/Magicoder-OSS-Instruct-75K
stack<ll>s; s.push(1); ll sz=0; while(!s.empty()){ sz++; ll val = s.top(); s.pop(); if(vis[val]==1){
ise-uiuc/Magicoder-OSS-Instruct-75K
'will fail to compile using this method. If you are ' 'seeing this error, please feel free to open up an issue ' 'and report it. We would like to support as many gpus as ' 'possible.')
ise-uiuc/Magicoder-OSS-Instruct-75K
if (sys.argv[1] == "update"): print("Start Modification") updateFlow(f5Dev) if (sys.argv[1] == "delete"): print("Start Deletion..") deleteFlow(f5Dev) if __name__ == "__main__": main()
ise-uiuc/Magicoder-OSS-Instruct-75K
veilCtx.save(); veilCtx.globalCompositeOperation = this.paintMode === "uncover" ? "destination-out" : "source-over"; operation(layers, this.toolProperties); veilCtx.restore();
ise-uiuc/Magicoder-OSS-Instruct-75K
// Copyright <NAME> 2020 // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) #include <boost/hana/define_struct.hpp> #include <boost/hana/equal.hpp> #include <boost/hana/members.hpp> #include <boost/hana/not_equal.hpp> namespace hana = boost::hana; struct SomeStruct { BOOST_HANA_DEFINE_STRUCT(SomeStruct, (int, x));
ise-uiuc/Magicoder-OSS-Instruct-75K
incanter.register_hook(lambda p: p.name == "dep2", lambda: 2) def func(dep1, input: float) -> float: return dep1 + 1 + input with pytest.raises(Exception): incanter.prepare(func) with pytest.raises(Exception): incanter.invoke(func, 5.0)
ise-uiuc/Magicoder-OSS-Instruct-75K
* @see <a href="https://docs.timescale.com/latest/introduction">https://docs.timescale.com/latest/introduction</a> */ public class TimescaleDBContainerProvider extends JdbcDatabaseContainerProvider { private static final String NAME = "timescaledb";
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>devmayke/java import java.sql.SQLOutput; public class Exercicio2 { public static void main(String[] args){ String str= "Curso de Java"; System.out.println(str.equals("sdsad")); System.out.println(str.equals("Curso de Java")); System.out.println(str.charAt(2)); System.out.println(str.startsWith("Cur")); System.out.println(str.endsWith("va")); System.out.println(str.substring(9));
ise-uiuc/Magicoder-OSS-Instruct-75K
@fdao_uwnetid_override class Office365EduSubsTest(TestCase): def test_get_office365edu_prod_subs(self): subs = get_office365edu_prod_subs("bill") self.assertFalse(subs.is_status_active()) def test_get_office365edu_test_subs(self): subs = get_office365edu_test_subs("bill") self.assertFalse(subs.is_status_active())
ise-uiuc/Magicoder-OSS-Instruct-75K
int main() { int n, tc = 0; while (cin >> n && n != 0) { int event, balance = 0;
ise-uiuc/Magicoder-OSS-Instruct-75K
if mtype == UDP_MSG_PUSHTRADE: if self._sink is not None: self._sink.on_trade(grpid, trader, json.loads(json_str)) elif mtype == UDP_MSG_PUSHORDER: if self._sink is not None: self._sink.on_order(grpid, trader, json.loads(json_str))
ise-uiuc/Magicoder-OSS-Instruct-75K
query = "select comment, created, expires, uses, rentdue, frozen from users where name = (?)" else: query = "select lastused from {0}_users where name = (?)".format(realm) return db.execute(query, [user_name]).fetchone() def create_user(db, lock, name, realm=None): code = generate_user_code(db) query = "insert into users (code, name, created) values (?, ?, ?)" locked_query(db, lock, query, code, name, datetime.date.today()) if realm: add_user_to_realm(db, lock, name, realm) return code
ise-uiuc/Magicoder-OSS-Instruct-75K
func testGetOptionalValueWithNull() throws {
ise-uiuc/Magicoder-OSS-Instruct-75K
use unicode_bom::Bom;
ise-uiuc/Magicoder-OSS-Instruct-75K
</div> <input type="hidden" value="{{ $album->id }}">
ise-uiuc/Magicoder-OSS-Instruct-75K
return polymer def answer(input): """ >>> answer("aA") 0 >>> answer("abBA") 0 >>> answer("abAB") 4
ise-uiuc/Magicoder-OSS-Instruct-75K
* @param [type] $value [description] * @return [type] [description] */ public static function beforeSave(&$value) { if(strpos($value, ".") !== false) { $value = (string) strtotime($value); } } public static function afterFind(&$value) { if (empty($value)) {
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * @test
ise-uiuc/Magicoder-OSS-Instruct-75K
[Test] public void FindObject_provides_DIParameter() { var pm = PmFactory.NewPersistenceManager(); var testObject = (ClassWithDIConstructor)pm.FindObject( typeof( ClassWithDIConstructor ), 0 ); Assert.AreEqual( "Teststring", testObject.DiField ); } [Test] public void Query_provides_DIParameter() { var pm = PmFactory.NewPersistenceManager(); var testObject = new ClassWithDIConstructor(new DIParameter()); testObject.PersistentField = "PersistentFieldValue";
ise-uiuc/Magicoder-OSS-Instruct-75K
.long("owners") .help("the owners to be added to the multisig") .takes_value(true) ) .arg( Arg::with_name("threshold") .short("t") .long("threshold") .help("specifies the minimum required signers") .takes_value(true) .value_name("COUNT") ).arg( Arg::with_name("name")
ise-uiuc/Magicoder-OSS-Instruct-75K
#[serde(rename = "TEA_4Node_UPS_Heater")] Tea4nodeUpsHeater, #[serde(rename = "TMA")] Tma,
ise-uiuc/Magicoder-OSS-Instruct-75K
string += f'\n\tTime in Car: {self.timeInCar.value.isoformat()}' # pylint: disable=no-member string += f' (captured at {self.carCapturedTimestamp.value.isoformat()})' # pylint: disable=no-member
ise-uiuc/Magicoder-OSS-Instruct-75K
} g_counter = 0;
ise-uiuc/Magicoder-OSS-Instruct-75K
def AddRestraint (self) : item = self.InsertStringItem(sys.maxint, "---") for i in range(self.n_columns - 1) : self.SetStringItem(item, i+1, "---") new_params = self._index.get_template_copy(self.GetPhilPath()).extract() self._params.append(new_params) self.Select(item) def DeleteRestraint (self) : item = self.GetFirstSelected() if (item >= 0) : assert (item < len(self._params)) self.DeleteItem(item)
ise-uiuc/Magicoder-OSS-Instruct-75K
<br/> <b>File Name Checks:</b> <br/> {{#if payload.nameTestFiles}} {{#each payload.nameTestFiles}}
ise-uiuc/Magicoder-OSS-Instruct-75K
SetRuntimeBus(runtimeRequestsMock); } }; }; class ScriptCanvasNodeUnitTestFixture : public ScriptCanvasUnitTestFixture { protected: NodeUnitTestStructures::TestNode* m_testNode; RuntimeRequestsMock* m_runtimeRequestsMock; void SetUp() override {
ise-uiuc/Magicoder-OSS-Instruct-75K
void cookie(std::string_view kv) { overridenCookies_.push_back(util::str(kv)); } private: void perform() const { CURLcode err = curl_easy_perform(curl_); if (err != CURLE_OK) { std::string error = curl_easy_strerror(err); throw Error(util::string::join("Cannot perform curl request: ", error));
ise-uiuc/Magicoder-OSS-Instruct-75K
/// Note that there is no requirement that points of self-intersection be a /// vertex. Thus to obtain a correct topology graph, [`Geometry`] must be /// self-noded before constructing their graphs. ///
ise-uiuc/Magicoder-OSS-Instruct-75K
void startTimer(); void cancelTimer();
ise-uiuc/Magicoder-OSS-Instruct-75K
pub use self::unsafecontainer::UnsafeContainer; mod staticcollection; pub use self::staticcollection::StaticCollection;
ise-uiuc/Magicoder-OSS-Instruct-75K
nameFiles = [] values = [] result = 0 nameFiles = sorted(os.listdir(sys.argv[1])) nameFiles.remove("source.py") for i in range(len(nameFiles)): with open(os.path.join(sys.argv[1],nameFiles[i]), 'r') as f: arg = f.readline() argFiles.append((arg)) if (len(argFiles) == 2):
ise-uiuc/Magicoder-OSS-Instruct-75K
$this->endpoint = $endpoint; } function setId($id) { $this->id = $id; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
os_loop, os_mem, Reg16, os_mem2, os2_3, os2_4, STIG1, pblendvb, pclmulqdq, pops, mem16, Reg32, }
ise-uiuc/Magicoder-OSS-Instruct-75K
'title':'About ',
ise-uiuc/Magicoder-OSS-Instruct-75K
def runTest(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
* elements * @param elementType the type of the elements * @return a new ParallelArray holding elements */ public ParallelArray<U> all(Class<? super U> elementType) {
ise-uiuc/Magicoder-OSS-Instruct-75K
from .models import S3File
ise-uiuc/Magicoder-OSS-Instruct-75K
fn poll(&mut self) -> Poll<Self::Item, Self::Error> { let (inner_filter,) = try_ready!(self.inner.poll()); inner_filter.filter().poll() } }
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>0 export const BASEURL: string = '';
ise-uiuc/Magicoder-OSS-Instruct-75K
#define NOLA_SIMD_HXX #include <nola/internal/avx2.hxx> #include <nola/internal/avx512.hxx> #endif
ise-uiuc/Magicoder-OSS-Instruct-75K
->get(); return view('pages.index',compact('educationList','experienceList')); } public function resume() { return view('pages.resume'); } public function portfolio()
ise-uiuc/Magicoder-OSS-Instruct-75K
import io.renren.modules.generator.entity.GoodsCategoryEntity; import java.util.List; import java.util.Map; /** * * * @author chenshun * @email <EMAIL> * @date 2021-04-19 09:51:16 */
ise-uiuc/Magicoder-OSS-Instruct-75K
os.path.join( os.path.dirname(__file__), '../static/js/plotjs', "download.js" ) ) .read() .replace('objname', obj_id) .replace('default_zp', str(PHOT_ZP)), ) toplay = row(slider, button) callback = CustomJS( args={'slider': slider, 'toggle': toggle, **model_dict}, code=open( os.path.join(os.path.dirname(__file__), '../static/js/plotjs', 'stackm.js')
ise-uiuc/Magicoder-OSS-Instruct-75K
message = "Invalide form" return UserDataAccess.return_output(status, message, user) def __is_unique(self, username, email): message = 'You can use this username and email!'
ise-uiuc/Magicoder-OSS-Instruct-75K
from django.contrib.auth.mixins import UserPassesTestMixin from django.urls import reverse_lazy
ise-uiuc/Magicoder-OSS-Instruct-75K
import PaymentDAOImp from '../../DAOImp/payment/PaymentDAOImp'; import PayWithDAOImp from '../../DAOImp/payWith/PayWithDAOImp'; import PurchaseDAOImp from '../../DAOImp/purchase/PurchaseDAOImp'; import { makeUserDAO } from '../users/UserFacotory'; const makeAcquisition = (): AcquisitionController => {
ise-uiuc/Magicoder-OSS-Instruct-75K
// Copyright © 2018 Alexander Lee. All rights reserved. // import UIKit
ise-uiuc/Magicoder-OSS-Instruct-75K
<?php namespace Yoanm\InitPhpRepository\Command; /** * Class RepositoryType */ class RepositoryType { const LIBRARY = 'library'; const PROJECT = 'project';
ise-uiuc/Magicoder-OSS-Instruct-75K
import java.nio.file.Path; /** * Base class for data
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace Oro\Bundle\NotificationBundle\Event\Handler; use Doctrine\Common\Util\ClassUtils; use Doctrine\ORM\EntityManager; use Oro\Bundle\EntityConfigBundle\Provider\ConfigProvider; use Oro\Bundle\NotificationBundle\Processor\EmailNotificationInterface; use Oro\Bundle\NotificationBundle\Entity\EmailNotification; /** * Adapts handler data to EmailNotificationInterface required for email notifications processor */
ise-uiuc/Magicoder-OSS-Instruct-75K
return try await self.client.execute(operation: "StartProjectSession", path: "/projects/{name}/startProjectSession", httpMethod: .PUT, serviceConfig: self.config, input: input, logger: logger, on: eventLoop)
ise-uiuc/Magicoder-OSS-Instruct-75K
RedirectUri = redirectUri; PostLogoutRedirectUri = postLogoutRedirectUri; CacheLocation = cacheLocation;
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * Adds descriptive text to the project.
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/bin/bash ## Moves the README and package.json into the dist folder ## so it is ready to be published from there.
ise-uiuc/Magicoder-OSS-Instruct-75K
exit() url = url[:(url.index('.com') + 4)] for tag in soup.find_all('a'): link = tag.get('href') name = tag.get_text() if name == 'lyrics': link = url + link.replace('#lyrics', '') get_lyrics(link) def get_lyrics(link): with urllib.request.urlopen(link) as response: soup = BeautifulSoup(response) lyrics_text = soup.find(class_='tralbumData lyricsText') text = lyrics_text.get_text()
ise-uiuc/Magicoder-OSS-Instruct-75K
/// <summary> /// Stores the absolute remote path of the the current file being transfered. /// </summary> public string RemotePath { get; set; } /// <summary> /// Stores the absolute local path of the the current file being transfered. /// </summary> public string LocalPath { get; set; }
ise-uiuc/Magicoder-OSS-Instruct-75K
// Update is called once per frame void Update() { if (lifetime > 0) { lifetime -= Time.deltaTime; } else { Destroy(gameObject); } } void OnTriggerEnter2D(Collider2D col) { if (col.gameObject.tag == "Player") {
ise-uiuc/Magicoder-OSS-Instruct-75K
using System.Collections.Immutable; namespace Microsoft.ReactNative.Managed.CodeGen.Model { public class ReactFunction : ReactCallback {
ise-uiuc/Magicoder-OSS-Instruct-75K
/* Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself
ise-uiuc/Magicoder-OSS-Instruct-75K
} def post(self, request): username = request.data.get('username') print("username",username) user = CustomUser.objects.get(username=username) if user is not None: key = base64.b32encode(user.username.encode()) otp = pyotp.HOTP(key) if otp.verify(request.data['otpCode'], user.counter): user.isVerified = True user.code = otp.at(user.counter) user.save() token = self.get_tokens_for_user(user, user.code) return Response({'status': 200, 'message': 'otp verified', 'token': token})
ise-uiuc/Magicoder-OSS-Instruct-75K
image = st.file_uploader('Upload an image', type=['png', 'jpg']) subscription_key = os.environ.get('subscription_key') endpoint = os.environ.get('endpoint') if image is not None: st.image(image)
ise-uiuc/Magicoder-OSS-Instruct-75K
dot.node(str(id(var)), get_var_name(var), fillcolor=color) if (var.grad_fn): add_nodes(var.grad_fn) dot.edge(str(id(var.grad_fn)), str(id(var))) if var._is_view(): add_base_tensor(var._base, color='darkolivegreen3') dot.edge(str(id(var._base)), str(id(var)), style="dotted")
ise-uiuc/Magicoder-OSS-Instruct-75K
pub content: String, /// A string containing the excerpt, if found. `None` otherwise. pub excerpt: Option<String>, /// The original input. pub orig: String, /// The raw front matter. Empty string if no front matter is found.
ise-uiuc/Magicoder-OSS-Instruct-75K
echo 'Added protobuf platform to local properties.' fi fi
ise-uiuc/Magicoder-OSS-Instruct-75K
set -euo pipefail IFS=$'\n\t' currentBranch=$(git branch | grep -e "^*" | cut -d' ' -f 2) if [ "$currentBranch" != "master" ]; then echo "Tags for containers can only be made from 'master' branch" exit 0 fi # Extract latest git tag currentVersion=$(git tag -l --sort=-v:refname | grep -E '^v[0-9]+$' | head -n 1 | tr -d 'v')
ise-uiuc/Magicoder-OSS-Instruct-75K
# création d'un second handler qui va rediriger chaque écriture de log # sur la console steam_handler = logging.StreamHandler() steam_handler.setLevel(logging.DEBUG) logger.addHandler(steam_handler) raw_input("Appuyer sur une touche pour demarrer l'envoi des photos") os.system("clear") #Lecture et recuperation des variables dans le fichier configServer with open("configServer", "rb") as fichierConfig: configRead = pickle.Unpickler(fichierConfig)
ise-uiuc/Magicoder-OSS-Instruct-75K
CASES_NUM = 2000 # the number of test cases class MontgomeryMultFlowTester: def __init__(self, target): self.dut = target self.ref_outputs = Queue(maxsize=150) # store reference results
ise-uiuc/Magicoder-OSS-Instruct-75K
(cd ion; ./ion_test.sh)
ise-uiuc/Magicoder-OSS-Instruct-75K
dependencies = [ ] operations = [ migrations.CreateModel( name='Photo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
ise-uiuc/Magicoder-OSS-Instruct-75K
self.task.set_command() # send buffer self.send_buffer()
ise-uiuc/Magicoder-OSS-Instruct-75K
#<путь к каталогу> каталог содержащий записи астериск #Скрипт пережмет все найденные записи в заданном каталоге из wav в mp3 с качеством V2 #Применение скрипта показало следующи результаты: #25 GB -> 6.2 GB 4940 sek = 1.37 h Пример вызова с подавлением вывода: ./monitor_wav_to_mp3.sh /var/spool/asterisk/monitor -1 > /dev/null 2>&1 Пережать все файлы в папке моложе 1 дня TEST function ProgressBar { let _progress=(${1}*100/${2}*100)/100 let _done=(${_progress}*4)/10 let _left=40-$_done _fill=$(printf "%${_done}s")
ise-uiuc/Magicoder-OSS-Instruct-75K
{ const manifest = await loadJsonFile<ProjectManifest>('package.json') expect(manifest.dependencies?.['peer-a']).toBe('^1.0.0') const lockfile = await project.readLockfile() expect(lockfile.specifiers['peer-a']).toBe('^1.0.0') expect(lockfile.packages['/peer-a/1.0.0']).toBeTruthy() }
ise-uiuc/Magicoder-OSS-Instruct-75K
} #[doc = "Field `CLK_FORCE_ON_DB_ENCRYPT` reader - The bit is used to close clock gating of encrypt clock. 1: close gating, 0: open clock gating."] pub struct CLK_FORCE_ON_DB_ENCRYPT_R(crate::FieldReader<bool, bool>); impl CLK_FORCE_ON_DB_ENCRYPT_R { #[inline(always)] pub(crate) fn new(bits: bool) -> Self { CLK_FORCE_ON_DB_ENCRYPT_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for CLK_FORCE_ON_DB_ENCRYPT_R { type Target = crate::FieldReader<bool, bool>; #[inline(always)] fn deref(&self) -> &Self::Target {
ise-uiuc/Magicoder-OSS-Instruct-75K
# test set test_loader = torch.utils.data.DataLoader(test_dataset, batch_size=100, shuffle=True, num_workers=4, drop_last=False) return test_loader
ise-uiuc/Magicoder-OSS-Instruct-75K
<table width="100%" cellspacing="0" cellpadding="3" border="0" class="std"> <tr> <td> <?php echo $AppUI->_('Missing file. Possible Module "' . $m . '" missing!'); ?> </td> </tr> </table>
ise-uiuc/Magicoder-OSS-Instruct-75K
x5 = vutils.make_grid(im_noisy, normalize=True, scale_each=True) writer.add_image(phase+' Noisy Image', x5, step_img[phase]) step_img[phase] += 1 mse_per_epoch[phase] /= (ii+1) log_str ='{:s}: Loss={:+.2e}, lh={:+.2e}, KL_Guass={:+.2e}, KLIG={:+.2e}, mse={:.3e}, ' + \ 'GNorm_D={:.1e}/{:.1e}, GNorm_S={:.1e}/{:.1e}' print(log_str.format(phase, loss_per_epoch['Loss'], loss_per_epoch['lh'], loss_per_epoch['KLG'], loss_per_epoch['KLIG'], mse_per_epoch[phase], clip_grad_D, grad_norm_D, clip_grad_S, grad_norm_S))
ise-uiuc/Magicoder-OSS-Instruct-75K
@extends('layout') @section('main-content') <div class="card-header-tab card-header"> <div class="card-header-title font-size-lg text-capitalize font-weight-normal"><i class="fa fa-tasks"></i>&nbsp;Task Lists</div> </div> <div class="scroll-area-sm"> <perfect-scrollbar class="ps-show-limits"> <div style="position: static;" class="ps ps--active-y"> <div class="ps-content"> <ul class=" list-group list-group-flush"> @foreach($tasks as $task) <li class="list-group-item">
ise-uiuc/Magicoder-OSS-Instruct-75K
configureProject(&self) } //=== public mutating func target( _ name: String, _ platform: Platform, _ type: Target.InternalType, _ configureTarget: (inout Target) -> Void )
ise-uiuc/Magicoder-OSS-Instruct-75K
print(set_a.intersection(set_b,set_c)) """ [出力] set([2]) """ #difference(引数のセットらに存在しない要素のセットを作成) print(set_a.difference(set_b)) """
ise-uiuc/Magicoder-OSS-Instruct-75K
return new HighlightConfig(); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
else: raise Exception('Sorry, not supported for library type '+str(browser_type)+'.')
ise-uiuc/Magicoder-OSS-Instruct-75K
""" Initialize a classifier based on the dataset. """ d = data.to_dataset(dataset) if dataset == 'mnist': return lenet.LeNet5() elif dataset in ('svhn', 'fashion'): return resnet.ResNet(d.nc, d.ny) else:
ise-uiuc/Magicoder-OSS-Instruct-75K
def degradation_percent(total_interfaces, current_lldp_interfaces, **kwargs): global good_history_uplink good_history_uplink = good_history_uplink + total_interfaces good_history_uplink = list(OrderedDict.fromkeys(good_history_uplink)) total_interfaces_len = len(good_history_uplink) uplink_down_list = [] for intf in good_history_uplink: if intf not in current_lldp_interfaces: uplink_down_list.append(intf) uplink_down_length = len(uplink_down_list) if total_interfaces_len == 0:
ise-uiuc/Magicoder-OSS-Instruct-75K
""" import sys import re from setuptools import setup version_regex = r'__version__ = ["\']([^"\']*)["\']' with open('app/__init__.py', 'r') as f: text = f.read() match = re.search(version_regex, text)
ise-uiuc/Magicoder-OSS-Instruct-75K
if e_unit.health == 0: self.death_tracker_enemy[e_id] = 1 if not self.reward_only_positive: delta_deaths_enemy -= self.reward_death_value * neg_scale
ise-uiuc/Magicoder-OSS-Instruct-75K
assert_that(get_batch['changes'][2]['status'], is_('NeedsReview')) assert_that(get_batch['changes'][2]['validationErrors'][0]['errorType'], is_('RecordRequiresManualReview')) # need to create the zone so the change can succeed zone = { 'name': 'not.loaded.', 'email': '<EMAIL>', 'adminGroupId': shared_zone_test_context.ok_group['id'], 'backendId': 'func-test-backend', 'shared': True } zone_create = approver.create_zone(zone, status=202) to_disconnect = zone_create['zone'] approver.wait_until_zone_active(to_disconnect['id'])
ise-uiuc/Magicoder-OSS-Instruct-75K
if isinstance(obj, np.ndarray): return obj.tolist()
ise-uiuc/Magicoder-OSS-Instruct-75K
ep = EmployeeProfile.all_objects.filter(employee=self.emp_pk) self.assertTrue(ep.exists()) def check_cascade_relation_with_no_soft_deletion_model(self): # test cascade with not soft deletion model self.assertFalse( EmployeeHobby.objects.filter(employee=self.emp_pk).exists()) self.assertFalse(HobbyLocation.objects.filter(
ise-uiuc/Magicoder-OSS-Instruct-75K
self.err_code = err_code super(ServerException, self).__init__(msg, code, err_code, None)
ise-uiuc/Magicoder-OSS-Instruct-75K
('resume', '0002_auto_20210510_1946'), ]
ise-uiuc/Magicoder-OSS-Instruct-75K
class Solution:
ise-uiuc/Magicoder-OSS-Instruct-75K
assert isinstance(result['eval_result']['PSNR'], np.float64) assert isinstance(result['eval_result']['SSIM'], np.float64)
ise-uiuc/Magicoder-OSS-Instruct-75K
def graph_cost(loss, EPOCHS):
ise-uiuc/Magicoder-OSS-Instruct-75K
from linear_road import * from time import sleep parser = argparse.ArgumentParser(description='Send stream from a file') parser.add_argument('filename', help='Data source file', type=str) parser.add_argument('dst', help='host:port to send messages to', type=str) parser.add_argument('--controller', '-c', help='connect to the controller', action="store_true", default=False)
ise-uiuc/Magicoder-OSS-Instruct-75K
POD_CIDRS = "podCIDRs" POD_IP = "podIP" POD_IPS = "podIPs" PORT = "port" PORTS = "ports" PROTOCOL = "protocol" PROVISIONER = "provisioner" PUBLISH_NODE_PORT_SERVICE = "publishNodePortService" READY = "ready" READY_REPLICAS = "readyReplicas" REPLICAS = "replicas" RESOURCES = "resources" RESOURCE_VERSION = "resourceVersion" RESTART_COUNT = "restartCount"
ise-uiuc/Magicoder-OSS-Instruct-75K
txt = "Hello <NAME>!" print("owo" not in txt) txt = "The best things in life are free!"
ise-uiuc/Magicoder-OSS-Instruct-75K
# postgresPass=$1 telegramBot=$1 telegramToken=$2 # update server #apt-get --assume-yes update # install dependencies #apt-get --assume-yes install openjdk-8-jre postgresql-9.5 vlc-nox
ise-uiuc/Magicoder-OSS-Instruct-75K
$db_con->closeConnection(); } //if /*************************************************************************************************************************/
ise-uiuc/Magicoder-OSS-Instruct-75K