seed
stringlengths
1
14k
source
stringclasses
2 values
/*std::cout << "Pixel (" << x+1 << ", " << y+1 << ") has colour (" << (int)(m_Image.getPixel(x, y).r) << ", " << (int)(m_Image.getPixel(x, y).g) << ", " << (int)(m_Image.getPixel(x, y).b) << ", " << (int)(m_Image.getPixel(x, y).a) << ")" << std::endl;*/
ise-uiuc/Magicoder-OSS-Instruct-75K
actions = torch.from_numpy(np.vstack([e.action for e in experiences if e is not None])).float().to(device) rewards = torch.from_numpy(np.vstack([e.reward for e in experiences if e is not None])).float().to(device) next_states = torch.from_numpy(np.vstack([e.next_state for e in experiences if e is not None])).float().to(device) dones = torch.from_numpy(np.vstack([e.done for e in experiences if e is not None]).astype(np.uint8)).float().to(device) return (states, actions, rewards, next_states, dones)
ise-uiuc/Magicoder-OSS-Instruct-75K
public class EntityNotFoundException extends Exception { public EntityNotFoundException(String message) { super(message); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
Success = true }, new PingDataPoint { Timestamp = DateTime.UtcNow.AddMinutes(-1), Metric = metric.Entity, Success = false
ise-uiuc/Magicoder-OSS-Instruct-75K
author_email='<<EMAIL>>', license="<your_project_license>", url="<your_project_url>", packages=['<your_project_main_package>'], #scripts=['scripts/some_script.py'], #python_requires='>=3', entry_points={ 'console_scripts': [ '<your_command>=<your_project_main_package>.main:main', ], }, #install_requires=['foo', 'bar'], # Install External packages 'foo' and 'bar' as dependencies long_description=long_description
ise-uiuc/Magicoder-OSS-Instruct-75K
def __init__(self, parent): Window.ControlPanel.__init__(self, parent) message = "Enter your email if you'd like to hear when this problem is addressed:"
ise-uiuc/Magicoder-OSS-Instruct-75K
export function setSound(sound: any) { return { type: SET_SOUND, currentSound: sound } }
ise-uiuc/Magicoder-OSS-Instruct-75K
sys.exit(1) fname = sys.argv[1] if fname.endswith('bz2'): mm = gensim.corpora.MmCorpus(bz2.BZ2File(fname)) else: mm = gensim.corpora.MmCorpus(fname) # extra cmd parameters = use a subcorpus (fewer docs, smaller vocab) if len(sys.argv) > 2:
ise-uiuc/Magicoder-OSS-Instruct-75K
return super.onOptionsItemSelected(item); }
ise-uiuc/Magicoder-OSS-Instruct-75K
* <p>The only methods specified by this interfaces are {@link #size64()}, and * a deprecated {@link #size()} identical to {@link Collection#size()}, * but with a default implementation. Implementations * can work around the type problem of {@link java.util.Collection#size()} * (e.g., not being able to return more than {@link Integer#MAX_VALUE}) by implementing this * interface. Callers interested in large structures * can use a reflective call to {@code instanceof} to check for the presence of {@link #size64()}. */
ise-uiuc/Magicoder-OSS-Instruct-75K
int ORDER_LATE = -10; int ORDER_VERY_LATE = -100; int ORDER_LATEST = -1000;
ise-uiuc/Magicoder-OSS-Instruct-75K
self.stack.append(value) self.minMaxStack.append((minNumber, maxNumber)) print(self.stack) print(self.minMaxStack) # O(1) time | O(1) space def getMin(self): if (len(self.minMaxStack)): return self.minMaxStack[-1][0] return None
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>1-10 #!/bin/sh why3 ide division.mlw
ise-uiuc/Magicoder-OSS-Instruct-75K
swaks --server localhost:2525 --to 9<EMAIL> --header "Subject: $1" --attach $2
ise-uiuc/Magicoder-OSS-Instruct-75K
class Hashtable: def __init__(self, size=1031): self._size = size
ise-uiuc/Magicoder-OSS-Instruct-75K
public GuiNumericTextField(int id, FontRenderer fontRenderer, int x, int y, int width, int height, boolean useInt) { super(id, fontRenderer, x, y, width, height); setText("0"); this.useInteger = useInt; }
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace Traffix.Core {
ise-uiuc/Magicoder-OSS-Instruct-75K
photos.append(photo) return Err.genOK(photos) except Exception, ex: print ex Logger.SaveLogDebug(ex, level=Logger.LEVEL_ERROR, module = "PhotoManager")
ise-uiuc/Magicoder-OSS-Instruct-75K
self.assertRaises(TypeError,''.endswith,(["this","is","invalid"],"tring","ring")) self.assertRaises(TypeError,''.endswith,(("string","this is invalid","this is also invalid",),)) #Positive scenarios
ise-uiuc/Magicoder-OSS-Instruct-75K
if (patval != null) { PatternExpression.release(patval); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
class StructureDGP(BaseDataGenusProcessor): def init(self): self.steps = self.init_classes([ SkipRowsColsAnalyzer, HeaderFieldsAnalyzer ])
ise-uiuc/Magicoder-OSS-Instruct-75K
#set maximum FPS #dt is time since last call in secs (convert ms to secs) self._dt = pygame.time.Clock().tick(self._fps) / 1000 print("{:.2f} {}".format(1/(self._dt), self._dt)) actors : pygame.sprite.Group = [] for g in stage.groups(): actors += g.draw(self._screen) if stage.scenario() is None: pygame.display.flip() #flip double buffer else: pygame.display.update(actors) #update actors over scenario
ise-uiuc/Magicoder-OSS-Instruct-75K
min_match=2,factor=1,
ise-uiuc/Magicoder-OSS-Instruct-75K
nums.forEach({ for i in stride(from: 0, to: result.count, by: 1) {
ise-uiuc/Magicoder-OSS-Instruct-75K
for _ in range(5): try: kmeans_model.fit(embeddings_speech_resh) except IndexError: continue break # assign each cell to cluster
ise-uiuc/Magicoder-OSS-Instruct-75K
*/ package org.picketlink.test.identity.federation.api.util; import junit.framework.TestCase; import org.picketlink.identity.federation.api.util.KeyUtil; import org.w3c.dom.Element; import java.io.InputStream; import java.security.KeyStore; import java.security.cert.Certificate; /** * Unit test the Key Util * * @author An<EMAIL>
ise-uiuc/Magicoder-OSS-Instruct-75K
@Override public int getCount() { return mFilterBundles.size(); } @Override
ise-uiuc/Magicoder-OSS-Instruct-75K
if content_type_sq is None: content_type_sq = SQ(content_type__exact=value) else: content_type_sq.add(SQ(content_type__exact=value), SQ.OR)
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/bin/bash set -e APP=pagerank NEXECUTORS=$(cat $SPARK_HOME/conf/slaves | wc -l) # SPARK_LOG_FILE=$SWAT_HOME/logs/overall/pagerank/spark
ise-uiuc/Magicoder-OSS-Instruct-75K
from __future__ import unicode_literals import adminsortable.fields from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('utils', '0002_maillog'), ('cms', '0020_add_group_permissions'), ] operations = [
ise-uiuc/Magicoder-OSS-Instruct-75K
// 8.Given the user input contains multiple negative numbers mixed with positive numbers when calculating the sum then it should throw an exception "negatives not allowed: x, y, z" (where x, y, z are only the negative numbers). // 9. Given the user input contains numbers larger than 1000 when calculating the sum it should only sum the numbers less than 1001. (example 2 + 1001 = 2) // 10. Given the user input is multiple numbers with a custom multi-character delimiter when calculating the sum then it should return the sum of all the numbers. (example: "//[***]\n1***2***3" should return 6). // 11. Given the user input is multiple numbers with multiple custom delimiters when calculating the sum then it should return the sum of all the numbers. (example "//[*][%]\n1*2%3" should return 6).
ise-uiuc/Magicoder-OSS-Instruct-75K
if m >= coin: if d[m-coin]+1 < min_coin: min_coin = d[m-coin]+1
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace Tridion.Extensions.DynamicDelivery.Templates { public class StopChainException : Exception { } }
ise-uiuc/Magicoder-OSS-Instruct-75K
(lambda *x: np.ones(1), [1], does_not_raise(), [1]),
ise-uiuc/Magicoder-OSS-Instruct-75K
class ImageProcessor: #initialize strategies def __init__(self,strategies): self.strategies = [birdseye_correction, image_segmentation] #We interpret each set of processing functions as strategies. def process_image(image_name, number): birdseye_correction(image_name, number) image_segmentation("warped.png", number)
ise-uiuc/Magicoder-OSS-Instruct-75K
using System.Text; namespace AAS.API.Services.ADT { public class ADTOperationsResult { private Dictionary<string,BasicDigitalTwin> createdReplacedTwins; public Dictionary<string,BasicDigitalTwin> CreatedReplacedTwins { get { return createdReplacedTwins; }
ise-uiuc/Magicoder-OSS-Instruct-75K
Returns: Decoded JSON message returned by the server (job status plus, optionally, list of files) """ inquirer = Inquirer(context) return inquirer.get_jobs_statuses(job_ids, list_files)
ise-uiuc/Magicoder-OSS-Instruct-75K
answer = update_stat(self.data) return answer or {}
ise-uiuc/Magicoder-OSS-Instruct-75K
public partial interface IC10_CityDal { } }
ise-uiuc/Magicoder-OSS-Instruct-75K
LIVEPATCH_CALC_MOD=livepatch-calc.ko source scripts/eval.sh test_op() { local expression=$1 local ans=${2} echo "Testing " ${expression} "..." echo -ne ${expression}'\0' > $CALC_DEV
ise-uiuc/Magicoder-OSS-Instruct-75K
$data = [ 'id_rol' => 1, // Administrador 'nombre' => 'Administrador', 'apellido' => 'admin', 'numero_telefono' => 'xxxx-xxxx ', 'email' => '<EMAIL>', 'contrasenia' => 'admin2020', 'password_hash' => password_hash('<PASSWORD>', PASSWORD_DEFAULT), 'direccion' => 'Zacapa', 'fotografia' => null, 'estado' => 1, 'activate_hash' => null,
ise-uiuc/Magicoder-OSS-Instruct-75K
"""Return location and name of the docker-compose configuration file.""" return os.path.join(str(pytestconfig.rootdir), "", "docker-compose.yaml") @pytest.fixture(scope="module") def new_user(): """Create a test user.""" user = UserModel("mole", "desert") return user
ise-uiuc/Magicoder-OSS-Instruct-75K
# name=dataset_name.capitalize() # init model with xavier return DATASET_REGISTRY.get(dataset_name)(mode,cfg) if __name__=="__main__": print("dataset register")
ise-uiuc/Magicoder-OSS-Instruct-75K
$year, $month, $day )); } $request->attributes->set($name, new UtcDateTime($segment)); return true; } return false; } public function supports(ParamConverter $configuration): bool { return \is_a($configuration->getClass(), DateTimeInterface::class, true); }
ise-uiuc/Magicoder-OSS-Instruct-75K
""" data = data.copy() # Ensure data packet is sent in current state
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * Adds a component as a menu item with a click listener. * * @param component * the component for the menu item * @param clickListener * a click listener * @return a new menu item
ise-uiuc/Magicoder-OSS-Instruct-75K
\x54\xd8\xf3\xab\x02\xa9\x9e\x60\xcf\xd9\x05\xfc\x35\x74\xcb\xdf\ \xaf\x6f\xd7\x02\x0a\x8b\x3a\xa8\xe6\x46\xb0\x77\xb4\x7c\x25\xa0\ \xb0\xaf\x8c\x43\x98\x99\xe1\x54\xaf\x97\xeb\xef\x45\x80\xcb\xab\ \x40\xf7\x14\x1d\xec\x4d\x75\x2f\x17\x51\x80\x03\x74\xfd\x3f\x11\ \x10\xac\xf1\xe9\xc5\x49\x01\x7d\xde\x2a\x20\x38\x43\xfd\xa2\x2e\ \x17\xab\x77\x80\x8d\x6e\x66\x66\x16\xce\xf0\x62\x51\xe7\x7d\x11\ \x10\x6c\xdc\xfa\xf6\x13\xce\x11\x5a\xee\x1b\xa6\xc4\x50\xa0\xd6\ \xcc\x4c\x46\x30\xe7\x1b\x18\x0a\xb0\x41\xb0\xd6\x65\xba\x9c\x60\ \x46\x8b\x2d\xc1\x4c\x2b\x90\xae\x9f\xf5\x4a\xcd\xa6\xbc\x9e\xbc\
ise-uiuc/Magicoder-OSS-Instruct-75K
} .padding(EdgeInsets(top: Screen.navigationBarHeight, leading: Screen.safeAreaInsets.left, bottom: Drawing.tabBarHeight + Screen.safeAreaInsets.bottom, trailing: Screen.safeAreaInsets.right)) }.background(ThemeColor.card) } } var body: some View {
ise-uiuc/Magicoder-OSS-Instruct-75K
WikidataDumpPagesMetaHistory, "metahistory7zdump" ): self.pages_meta_history[dump_file.page_ids] = dump_file def download( self, *, sites_table: bool = True, pages_meta_history: bool = True ) -> None: _LOGGER.info( f"Downloading Wikidata dump {self.version:%4Y%2m%2d} from '{self.mirror}'." ) dump_files: MutableSequence[WikidataDumpFile] = []
ise-uiuc/Magicoder-OSS-Instruct-75K
fn get(&self, key: &str) -> Result<&Self>; fn as_bool(&self) -> Result<bool>; fn as_i64(&self) -> Result<i64>; fn as_u64(&self) -> Result<u64>; fn as_f64(&self) -> Result<f64>; fn as_str(&self) -> Result<&str>; }
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>10-100 use crate::{ crypto::EphemeralSecret, header::{delays::Delay, SphinxHeader},
ise-uiuc/Magicoder-OSS-Instruct-75K
Box::new(Var(String::from("X")))))); assert_eq!(t3, t4); let t5 = Forall(String::from("Y"),
ise-uiuc/Magicoder-OSS-Instruct-75K
import pickle from .harvesttext import HarvestText from .resources import *
ise-uiuc/Magicoder-OSS-Instruct-75K
int mid = low + (high - low) / 2; if (target == matrix[row][mid]) return true; else if (target < matrix[row][mid]) high = mid - 1; else low = mid + 1; } return false; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
// Token: <KEY> RID: 3961 [Token(Token = "<KEY>")] [FieldOffset(Offset = "0x20")] private Dictionary<string, JoinGameButton> received; }
ise-uiuc/Magicoder-OSS-Instruct-75K
title="terms" :publishable="false" :exportable="false" :searchable="['title']" :sorting="['position']"> <template slot="back-button">
ise-uiuc/Magicoder-OSS-Instruct-75K
assert len(result.results) == 2 assert result.total == 2 # multiple sort queries
ise-uiuc/Magicoder-OSS-Instruct-75K
__version__ = "0.1"
ise-uiuc/Magicoder-OSS-Instruct-75K
elif sum == 3: return 1 else: return 0
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>bin/CoverView.py #!env/bin/python import sys import coverview_.main
ise-uiuc/Magicoder-OSS-Instruct-75K
:param x: x-coordinate in angular units :param y: y-coordinate in angular units :param sigma0: convergence in the core :param r_core: core radius :param center_x: center of the profile
ise-uiuc/Magicoder-OSS-Instruct-75K
let ret = self.zero_shares[self.zero_share_iter]; self.zero_share_iter += 1; ret }
ise-uiuc/Magicoder-OSS-Instruct-75K
gbp import-orig $TMP_DIR/${PACKAGE}_${VERSION}.orig.tar.gz gbp buildpackage -us -uc \ --git-ignore-new \ --git-arch='all' \ --git-builder='debuild -i -I -S' \ --git-export-dir=$TMP_DIR mv $TMP_DIR $OUT_DIR echo "${OUT_DIR}: " ls -1 "${OUT_DIR}" echo "You can now sign the package with 'debsign -k <key> <package>.changes'"
ise-uiuc/Magicoder-OSS-Instruct-75K
def create_learning_rate_scheduler( factors='constant * linear_warmup * rsqrt_decay', base_learning_rate=0.5, warmup_steps=1000, decay_factor=0.5, steps_per_decay=20000, steps_per_cycle=100000, init_step=0, finetune_lr=False): """Creates learning rate schedule. Interprets factors in the factors string which can consist of:
ise-uiuc/Magicoder-OSS-Instruct-75K
# Simulate a corrupted data set by adding 25% missing values m, n = X_full.shape m_missing = int(m * 0.25) print(m, m_missing) # Randomly select m_missing samples np.random.seed(42) missing_samples = np.array([True] * m_missing + [False] * (m - m_missing)) np.random.shuffle(missing_samples) # For each missing sample, randomly select 1 out of n features missing_features = np.random.randint(low=0, high=n, size=m_missing)
ise-uiuc/Magicoder-OSS-Instruct-75K
<div class="card-body"> <h1 class="card-title">{{$course->name}}</h1> <h4 class="card-subtitle mb-2 text-muted"><b>Duration: </b>{{$course->duration}}</h4> <p class="card-text"><b>Created:</b> :{{$course->user->name}}</p> <p class="card-text"><b>Type course:</b> :{{$course->typeCourse->name}}</p> </div> </div> </div> </div> </div> @stop
ise-uiuc/Magicoder-OSS-Instruct-75K
var chooseServiceController:ChoosingServiceController? let serviceLabel:UILabel = { let label = UILabel() label.translatesAutoresizingMaskIntoConstraints = false label.font = UIFont(name: "CenturyGothic", size: 30) return label }()
ise-uiuc/Magicoder-OSS-Instruct-75K
public List<Schedule> findAllByCustomerId(Long customerId) { Customer customer = this.customerService.findById(customerId); List<Pet> pets = customer.getPets(); return this.scheduleRepository.findAllByPetsIn(pets); } public Schedule save(Schedule schedule) { return this.scheduleRepository.save(schedule); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
delete_at = models.DateTimeField(auto_now=True, null=True, blank=True) class Meta: db_table = 'procedure' ordering = ['proceedings'] verbose_name_plural = 'Tramites' def __str__(self): return self.proceedings
ise-uiuc/Magicoder-OSS-Instruct-75K
composer remove codedungeon/phpunit-result-printer --no-update --dev composer require "orchestra/testbench:3.8.*" --no-update --dev composer require "phpunit/phpunit:8.*" --no-update --dev composer update --prefer-source --no-interaction pwd python sudo apt-get install python-psutil rm composer.json mv original-composer.json composer.json mkdir -p ./build/logs php -n vendor/bin/phpunit --configuration phpunit-57.xml --coverage-text --coverage-clover ./build/logs/clover.xml rm phpunit-57.xml
ise-uiuc/Magicoder-OSS-Instruct-75K
/// <summary> /// Initializes a new instance of the <see cref=""{quantityModel.Name}""/> struct. /// </summary> /// <param name=""value"">The value.</param> public {quantityModel.Name}(double value) : this(value, units => units.BaseUnit) {{
ise-uiuc/Magicoder-OSS-Instruct-75K
export interface TransactionSourceParams {
ise-uiuc/Magicoder-OSS-Instruct-75K
<!-- data-overlay="true" --> <script src="https://linked.chat/web/gdAry3" async></script> <div class="back-focus"></div> </body> </html>
ise-uiuc/Magicoder-OSS-Instruct-75K
def call(self, labels: tf.Tensor, predictions: tf.Tensor, sample_weight: Optional[tf.Tensor] = None, training: bool = False) -> tf.Tensor: """Computes the task loss and metrics.
ise-uiuc/Magicoder-OSS-Instruct-75K
formaPagamentoSalva = iFormaPagamentoRepository.save(formaPagamento); } catch (Exception e){ throw new RuntimeException(e); }
ise-uiuc/Magicoder-OSS-Instruct-75K
c = 0 lista_tuple = [] while c < n : m=0
ise-uiuc/Magicoder-OSS-Instruct-75K
return ( <ListItem className={clsx(classes.root, className)}> <ListItemIcon> <Description /> </ListItemIcon>
ise-uiuc/Magicoder-OSS-Instruct-75K
wait=tenacity.wait_exponential(multiplier=0.5), stop=tenacity.stop_after_attempt(3), ) def load_list(self, entity) -> list: result = list()
ise-uiuc/Magicoder-OSS-Instruct-75K
email: string; birthDay: Date; roles: RoleModel[]; groups: GroupModel[]; } export class UserLoginDto { email: string; password: string;
ise-uiuc/Magicoder-OSS-Instruct-75K
self._check_curve_category(curve) url = f"/srmc/{safe_curve}/" # Parameters params = {} self._add_date(params, "begin", begin, required=True) self._add_date(params, "end", end, required=True) self._add_contract_period(params, "period", period, required=True) self._add_date(params, "delivery", delivery, required=True)
ise-uiuc/Magicoder-OSS-Instruct-75K
int number = int.Parse(Console.ReadLine());
ise-uiuc/Magicoder-OSS-Instruct-75K
operations = [ migrations.CreateModel( name='Document', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('doc', models.CharField(max_length=255)), ('sig_sender', models.CharField(max_length=100)), ('sig_receiver', models.CharField(max_length=100, null=True)), ('session_id', models.CharField(max_length=100)),
ise-uiuc/Magicoder-OSS-Instruct-75K
public string Id { get; internal set; }
ise-uiuc/Magicoder-OSS-Instruct-75K
return [ dict( name='a', solution=True, explanation="2 is prime. It has no factorization other than 1 and itself.", ), dict( name='b', solution=False, explanation="39 is not prime because it can be factored to 3 * 13.", ), ] class Subsession(BaseSubsession):
ise-uiuc/Magicoder-OSS-Instruct-75K
override func tearDown() {
ise-uiuc/Magicoder-OSS-Instruct-75K
num_attempts = 0 max_try = 10 while not self._in_main(): if self._in_exam(): self._exit_exam() else: self.finger.back() num_attempts += 1 if num_attempts >= max_try: # failsafe
ise-uiuc/Magicoder-OSS-Instruct-75K
if coreid()==5: print "Hello only from core "+coreid()
ise-uiuc/Magicoder-OSS-Instruct-75K
import android.content.Intent; import android.os.Build; import android.support.v7.app.AppCompatActivity; import android.os.Bundle;
ise-uiuc/Magicoder-OSS-Instruct-75K
from dataclasses import dataclass @dataclass class Channel:
ise-uiuc/Magicoder-OSS-Instruct-75K
fee = gas_fee_strategy.get_recommended_gas_fee([(1, 99), (2, 99)]) assert fee == gas_fee_strategy.max_gas_fee
ise-uiuc/Magicoder-OSS-Instruct-75K
distancia_sensor1.enable(timeStep) # Motor initialization ruedaIzquierda = robot.getDevice("wheel1 motor") ruedaDerecha = robot.getDevice("wheel2 motor") ruedaIzquierda.setPosition(float('inf')) ruedaDerecha.setPosition(float('inf'))
ise-uiuc/Magicoder-OSS-Instruct-75K
fig.update_layout( mapbox_style="carto-positron", mapbox_zoom=7, mapbox_center={"lat": lat, "lon": lon} ) if "CI" not in os.environ.keys(): fig.show(renderer="browser") def test_make_traces_one_channel(configuration): """Test 'make_traces_one_channel' functions""" satellite = satellite_fake(configuration=configuration) example_index = 1
ise-uiuc/Magicoder-OSS-Instruct-75K
# Compute sum of the naturals that are a multiple of 3 or 5 and less than [NUM] def compute(): return sum(i for i in range(1, NUM) if i % 3 == 0 or i % 5 == 0) if __name__ == "__main__": print(compute())
ise-uiuc/Magicoder-OSS-Instruct-75K
def optionalTensorReturn(a): return a if a.numel() else None def threadDatasetIterator(d):
ise-uiuc/Magicoder-OSS-Instruct-75K
def __init__(self): pass
ise-uiuc/Magicoder-OSS-Instruct-75K
etree = getattr(self, '_etree', None) serifxml_etree.append(self.toxml(etree, indent=' ')) ET.ElementTree(serifxml_etree).write(file_or_filename, encoding='utf-8')
ise-uiuc/Magicoder-OSS-Instruct-75K
${PORTER_HOME}/porter build ${PORTER_HOME}/porter install --insecure --debug cat ${PORTER_HOME}/claims/HELLO.json ${PORTER_HOME}/porter uninstall --insecure --debug
ise-uiuc/Magicoder-OSS-Instruct-75K
let response = integrations_aws_pushes_list( rest_cfg, integration_id, None, Some(push_name), None, NO_ORDERING, NO_PAGE_COUNT, NO_PAGE_SIZE, ); match response { Ok(data) => match data.results {
ise-uiuc/Magicoder-OSS-Instruct-75K
Assert.True(rectangles[0].Height >= 3); Assert.True(rectangles[0].Height <= 11); Assert.True(rectangles[1].Height >= 3); Assert.True(rectangles[1].Height <= 11); Assert.Equal(5, rectangles[0].Width); Assert.Equal(5, rectangles[1].Width); rectangle = new Rectangle(0, 0, 13, 5); rectangles.AddRange(rectangle.Bisect().ToList()); foreach (Point c in rectangles[2].Positions()) { Assert.True(rectangle.Contains(c)); Assert.False(rectangles[3].Contains(c));
ise-uiuc/Magicoder-OSS-Instruct-75K
r = np.array([ [0.0, 0.0], [5.0, 5.0] ]) p = [ 1.0, 10.0] result = gt.point_intersect_rectangle(p, r) self.assertFalse(np.array_equal(result, p)) def test_point_intersect_rectangle_invalid_intersections_3(self): rect = np.array([ [0.0, 0.0], [5.0, 5.0] ]) point = [ 1.0,-1.0] result = gt.point_intersect_rectangle(point, rect)
ise-uiuc/Magicoder-OSS-Instruct-75K