seed
stringlengths
1
14k
source
stringclasses
2 values
#-*- coding: utf-8 -*- # Copyright [OnePanel] # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS,
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>shipfunk_python/__init__.py # -*- coding: utf-8 -*- """Top-level package for Shipfunk.""" __author__ = """<NAME>""" __email__ = '<EMAIL>' __version__ = '0.1.1'
ise-uiuc/Magicoder-OSS-Instruct-75K
stack.append('b') stack.append('c') stack.append('d') stack.append('e') print('Initial stack') print(stack) # pop() function to pop element from stack in # LIFO order print('\nElements popped from stack:') print(stack.pop())
ise-uiuc/Magicoder-OSS-Instruct-75K
main_win.columnconfigure(0, weight=1) main_win.rowconfigure(0, weight=1) main_frm.columnconfigure(1, weight=1) main_win.mainloop() sys.exit()
ise-uiuc/Magicoder-OSS-Instruct-75K
$this->linesCount++; return $this->linesCount-1; }
ise-uiuc/Magicoder-OSS-Instruct-75K
print(f'Server error - {resp.status}') else: matrix = await get_formatted_matrix(resp) return matrix except TimeoutError: print("Timeout error!")
ise-uiuc/Magicoder-OSS-Instruct-75K
model values (y = mx + c) """ return Params[0]*self.X + Params[1] #---------------------------------------------------------- def chisquare(self, Params): """ Computes Chi-square.
ise-uiuc/Magicoder-OSS-Instruct-75K
import React from 'react'; import { Link } from 'react-router-dom'; export default () => ( <> <div>hello from about</div> <Link to='/'>Home</Link> </> );
ise-uiuc/Magicoder-OSS-Instruct-75K
self.img = img self.mask = pygame.mask.from_surface(self.img) def draw(self, window): # making laser's coordinates centered in the sprite
ise-uiuc/Magicoder-OSS-Instruct-75K
assert dt_from_utc_str('2019-12-27T23:00:24Z') == datetime(2019, 12, 27, 23, 00, 24, tzinfo=tz.tzutc()) assert dt_from_utc_str(None) is None @pytest.mark.skip(reason="integration tests, run manually only") class TestUtilsRequests():
ise-uiuc/Magicoder-OSS-Instruct-75K
@timer(interval=1) def ping(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
-524,371,-870 407,773,750 -104,29,83 378,-903,-323 -778,-728,485 426,699,580 -438,-605,-362 -469,-447,-387 509,732,623 647,635,-688 -868,-804,481 614,-800,639 595,780,-596 --- scanner 4 ---
ise-uiuc/Magicoder-OSS-Instruct-75K
You must implement this function. ''' raise NotImplementedError
ise-uiuc/Magicoder-OSS-Instruct-75K
def get_variant_argument(self) -> str: return archinstall.arguments[self.VARIANT_KEY] def variant_argument_in_variants(self) -> bool: return self.get_variant_argument() in self.get_variants() def get_variants(self) -> dict: return archinstall.arguments[self.VARIANTS_DICT_KEY] def has_variants(self) -> bool:
ise-uiuc/Magicoder-OSS-Instruct-75K
from application.core.usecase.base_usecase import BaseUseCase from application.core.usecase.steps import CreateAccountStep, CreateAccountActivationTokenStep from application.core.usecase.usecase_input import UseCaseInput from application.core.usecase.usecase_output import ( UseCaseOutput, UseCaseStatusEnum, UseCaseMessageEnum, UseCaseDescriptionEnum
ise-uiuc/Magicoder-OSS-Instruct-75K
ForeignKey('translators.id'), nullable=False), Column('lang_id', UUID, ForeignKey('languages.id'), nullable=False) ) mother_tongue_association_table = Table( 'mother_tongue_association', Base.metadata, Column( 'translator_id', UUID, ForeignKey('translators.id'),
ise-uiuc/Magicoder-OSS-Instruct-75K
# Grid the frames. # ------------------------------------------------------------------------- #grid_frames(teleop_frame, arm_fram, control_frame, go_straight_frame, beep_frame, color_frame, go_straight, camera_frame, sprint_3)
ise-uiuc/Magicoder-OSS-Instruct-75K
else renderer.BeginFrameRendering(state); } } /// <summary>
ise-uiuc/Magicoder-OSS-Instruct-75K
if($images and File::exists('images/news/'.$images->name)){ $images->delete(); File::delete('images/news/'.$images->name); $data['status'] = 200; $data['message'] = 'Image removed'; }else { $data['status'] = 404; $data['message'] = 'Image Not Found'; }
ise-uiuc/Magicoder-OSS-Instruct-75K
GroupedProjectsList.CustomSort = SortOrderFactory.GetProjectItemSorter(GridSortDescription); GroupedProjectsList.IsLiveGrouping = true; GroupedProjectsList.IsLiveSorting = true; _buildInformationProvider.BuildStateChanged += () => { GroupedProjectsList.Refresh(); }; _settingsProvider = settingsProvider;
ise-uiuc/Magicoder-OSS-Instruct-75K
import json import re import datetime from aiohttp.web import Response, Request from Utils.Classes.webuserinfo import WebUserInfo from Utils.Classes.webrequestcontent import WebRequestContent from Utils.stringutils import password as password_function from Utils.regex import IsEmail from Platforms.Web.utils import getWebUsers from Platforms.Web.Processing.Api.errors import apiWrongData, apiMissingAuthorisation from Platforms.Web.Processing.Api.Account.errors import ( apiAccountPasswordsDontMatch, apiAccountPasswordToShort,
ise-uiuc/Magicoder-OSS-Instruct-75K
] crontabs = list(collections.OrderedDict.fromkeys([dirname/filename for dirname, filename in itertools.product(dirs, files)])) crontabs = b''.join(crontab.read_bytes() for crontab in crontabs if crontab.is_file()) p = subprocess.Popen(['crontab'], stdin=subprocess.PIPE, shell=True) stdout, stderr = p.communicate(crontabs) assert not stdout and not stderr, (stdout or b'') + (stderr or b'') sys.exit(p.wait())
ise-uiuc/Magicoder-OSS-Instruct-75K
# Execute and accept the recommendation def execute_reco(server, tgc_sess_id, pool): reco_url = "/v310/vmstorePool/" + pool.get_uuid() + "/recommendation/" + \ pool.get_reco_uuid() + "/accept" r = tintri.api_post(server, reco_url, None, tgc_sess_id) print_debug("The JSON response of the accept reco invoke to the server " + server + " is: " + r.text) if (r.status_code != 204): msg = "The HTTP response for the accept reco post invoke to the server is " + \ server + "not 200, but is: " + str(r.status_code) + "."
ise-uiuc/Magicoder-OSS-Instruct-75K
# num is a hexagonal number iff 4 | ( 1 + sqrt( 1 + 8 * num ) ) # So brute-force with these considerations is enough import time width = 40 import math def solution(): isPentagonal = lambda num : ( 1 + math.sqrt( 1 + 24 * num ) ) % 6 == 0 isHexagonal = lambda num : ( 1 + math.sqrt( 1 + 8 * num ) ) % 4 == 0
ise-uiuc/Magicoder-OSS-Instruct-75K
db_table = 'route_change'
ise-uiuc/Magicoder-OSS-Instruct-75K
"""Package containing various helpers."""
ise-uiuc/Magicoder-OSS-Instruct-75K
router = SimpleRouter() app_name = "api" urlpatterns = invoice_router.urls
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>0 n = int(input('Digite um número: ')) ns = n+1 na = n-1 print(f'O sucessor de {n} é {ns} e o antecessor é {na}.')
ise-uiuc/Magicoder-OSS-Instruct-75K
MEASURE = const(3) AUTO_SLEEP = const(5) AUTO_SLEEP_SIZE = const(2) LINK = const(5) # INT_ENABLE OVERRUN = const(0) WATERMARK = const(1) FREE_FALL = const(2)
ise-uiuc/Magicoder-OSS-Instruct-75K
image.resize((400,100))
ise-uiuc/Magicoder-OSS-Instruct-75K
// This source file is part of the Swift.org open source project // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/LICENSE.txt for license information // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // RUN: not %target-swift-frontend %s -typecheck enum S<e{
ise-uiuc/Magicoder-OSS-Instruct-75K
}; pub fn update_viewsheds( world_map: ResMut<WorldMap>, mut query: Query<(&mut Viewshed, &GridPos, &Actor)>, ) { for (mut viewshed, pos, actor) in query.iter_mut() { if viewshed.dirty { viewshed.dirty = false;
ise-uiuc/Magicoder-OSS-Instruct-75K
: t('gridItemsCountAriaLabelNoFilter').format(gridItemsCount, gridItemsCount === 1 ? t('result') : t('results')); } }, [gridItemsCount, filter, t]); return ( <SearchBox id={id} onChange={onChange} onSearch={onSearch} placeholder={placeHolder} iconProps={{ iconName: IconConstants.IconNames.Filter }}
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>1-10 #!/bin/zsh export GPG_TTY="$(tty)"
ise-uiuc/Magicoder-OSS-Instruct-75K
#include <iostream>
ise-uiuc/Magicoder-OSS-Instruct-75K
cell_t rhsCell, position_value_t maximumValue);
ise-uiuc/Magicoder-OSS-Instruct-75K
public int lod; public int x; public int y; public string levelString;
ise-uiuc/Magicoder-OSS-Instruct-75K
alias pipi="pip install" alias upipi="pip uninstall"
ise-uiuc/Magicoder-OSS-Instruct-75K
RELEASE_TAG=$CIRCLE_TAG docker build -t quay.io/integreatly/tutorial-web-app:$RELEASE_TAG .
ise-uiuc/Magicoder-OSS-Instruct-75K
s.set_option(rs2.option.hue, 0) s.set_option(rs2.option.saturation, 50) s.set_option(rs2.option.sharpness, 0) s.set_option(rs2.option.white_balance, 2800) X_VALS = [] Y_VALS = [] pointer = 0 while True: start_time = time.time()
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>teonnik/tsgemm #!/bin/bash # ---- input device=daint # laptop src_dir=$HOME/code/tsgemm build_dir=$HOME/build/tsgemm # ---- # dependencies source $src_dir/scripts/env.sh
ise-uiuc/Magicoder-OSS-Instruct-75K
# Install the library using: pip install -U efficient-apriori from efficient_apriori import apriori
ise-uiuc/Magicoder-OSS-Instruct-75K
from .notify import * from .sendEmbed import * from .isStaff import *
ise-uiuc/Magicoder-OSS-Instruct-75K
symb=False, ): """ Creates a unitary matrix in the parametrisation of eq. 1.1 in 1611.01514. Conventions for Majorana phases from from eq. 8 of 1710.00715. """ self.symb = symb if not symb: # numpy dtype = np.complex128 matrix_1 = np.matrix( [[1.0, 0.0, 0.0], [0.0, c23, s23], [0.0, -s23, c23]], dtype=dtype )
ise-uiuc/Magicoder-OSS-Instruct-75K
{ public ChangeItem() { }
ise-uiuc/Magicoder-OSS-Instruct-75K
extern "C" { void Ext1() {
ise-uiuc/Magicoder-OSS-Instruct-75K
# testcase (1514) def test_create_slenium_project(self): project_name = 'selenium-project'
ise-uiuc/Magicoder-OSS-Instruct-75K
#test2 = C_test() #print(test2) #test2.show_cards() '''
ise-uiuc/Magicoder-OSS-Instruct-75K
pub use self::registry::*; pub use self::target::*; pub mod registry; pub mod target; /// Specifies a file type. /// Analgous to `llvm::CodeGenFileType` #[repr(C)] pub enum FileType {
ise-uiuc/Magicoder-OSS-Instruct-75K
"parent": parent, "parent_key": shifted_transition[shifted_transition.index(".") - 1] }) def get_reduced(self): self.reduced = {} for state in self.states: state_key = list(state.keys())[0] if len(state) == 1 and len(state[state_key]) and len(state[state_key][0]) \ and state[state_key][0][-1] == ".": self.reduced[self.states.index(state)] = state return self.reduced @staticmethod def read_program(file_path):
ise-uiuc/Magicoder-OSS-Instruct-75K
version=$(echo $version | python -c 'import json,sys; obj=json.load(sys.stdin); print(obj["VersionId"])') # Deploy to demo environment pushd ../../terraform/environments/demo
ise-uiuc/Magicoder-OSS-Instruct-75K
if (!prefixCount.containsKey(possiblePrefix)) prefixCount.put(possiblePrefix, 1d); else prefixCount.put(possiblePrefix, 1d + prefixCount.get(possiblePrefix)); } } for (int i = 0; i <= 7 && i <= unsegmentedWord.length(); i++)
ise-uiuc/Magicoder-OSS-Instruct-75K
foreach ($this->getTables() as $table) { $tableNames .= ', ' . $table->getName(); } throw new RuntimeException("No such table in Context: " . $name . ' (available: ' . $tableNames . ')'); } return $this->tables[$name];
ise-uiuc/Magicoder-OSS-Instruct-75K
table.set( "len_square", lua.create_function(|lua, this: Vec2| Ok(this.len_square()))?, )?; table.set(
ise-uiuc/Magicoder-OSS-Instruct-75K
'mile': ["miles", "%f mi", "mi"], 'db': ["decibels", "%f dB", "dB"], 'pc': ["percent", "%f%%", "%"], 'coef': ["coefficient", "* %f", "*"], 'hz': ["hertz", "%f Hz", "Hz"], 'khz': ["kilohertz", "%f kHz", "kHz"], 'mhz': ["megahertz", "%f MHz", "MHz"], 'bpm': ["beats per minute", "%f BPM", "BPM"], 'oct': ["octaves", "%f octaves", "oct"], 'cent': ["cents", "%f ct", "ct"], 'semitone12TET': ["semitones", "%f semi", "semi"],
ise-uiuc/Magicoder-OSS-Instruct-75K
Then the problem has 'program-like' constructs. """
ise-uiuc/Magicoder-OSS-Instruct-75K
return new this.Klass(attr); }; this.withMultipleComponentsColumn = () => { const attr = { data: [ { name: 'rowName', type: 'rowType', value: [1] }, { name: 'rowName2', type: 'rowType2', value: [2, 3] }, { name: 'rowName3', type: 'rowType3', value: [4, 5, 6] }, ], columns: [
ise-uiuc/Magicoder-OSS-Instruct-75K
public object GetParameter(string key) => param.TryGetValue(key, out var obj) ? obj : null; public IConfigContext GetConfigContext() => configContext; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
using System.Collections.Generic; namespace CommonAlgo.CrackingTheCodingInterview { public class AnimalQueue { private readonly List<Cat> _cats = new List<Cat>(); private readonly List<Dog> _dogs = new List<Dog>(); private int _order; public int Count { get { return _dogs.Count + _cats.Count; }
ise-uiuc/Magicoder-OSS-Instruct-75K
tp_link = tp.get('href') try: if (tp_link.endswith(filetype) and tp_link is not None): self.LinkList.append(tp_link) except AttributeError: pass # html.close()
ise-uiuc/Magicoder-OSS-Instruct-75K
from pipetools.utils import * # prevent namespace pollution
ise-uiuc/Magicoder-OSS-Instruct-75K
# registered_actions[name] = strat # #def register_surveyor(name, strat): # registered_surveyors[name] = strat from .cacher import Cacher from .driller_core import DrillerCore from .loop_seer import LoopSeer from .crash_monitor import CrashMonitor from .tracer import Tracer from .explorer import Explorer from .threading import Threading
ise-uiuc/Magicoder-OSS-Instruct-75K
<div id="footer"> <div class="container"> <div class="row align-items-center"> <div class="col-md-6"> <p>&copy; Copyright <a href="http://calmandcode.com">CalmAndCode</a>. All Rights Reserved</p> </div> <div class="col-md-6"> <p>Template by <a href="">CalmAndCode</a></p> </div>
ise-uiuc/Magicoder-OSS-Instruct-75K
"Component:connected", this.getLifecycleEventData() ); } catch (error) { this.throw(error as Error); } } /** * Default custom Element method * Invoked when one of the custom element's attributes is added, removed, or changed. * @param attributeName * @param oldValue
ise-uiuc/Magicoder-OSS-Instruct-75K
f.write('\t\tposition: latlng\n') f.write('\t\t});\n') f.write('\t\tmarker.setMap(map);\n') f.write('\n') def write_polyline(self, f, path, settings): clickable = False geodesic = True strokeColor = settings.get('color') or settings.get('edge_color') strokeOpacity = settings.get('edge_alpha') strokeWeight = settings.get('edge_width')
ise-uiuc/Magicoder-OSS-Instruct-75K
"star24" "star32" "roundRect" "round1Rect" "round2SameRect" "round2DiagRect" "snipRoundRect" "snip1Rect" "snip2SameRect" "snip2DiagRect" "plaque" "ellipse" "teardrop"
ise-uiuc/Magicoder-OSS-Instruct-75K
if b < a and b < c: menor = b
ise-uiuc/Magicoder-OSS-Instruct-75K
/// </summary> public Vector3 target = Vector3.zero; /// <summary>
ise-uiuc/Magicoder-OSS-Instruct-75K
public protocol SKNodeWithBlendMode: class { // where Self: SKNode { // ⚠️ Crashes. // TODO: Change name to an adjective?
ise-uiuc/Magicoder-OSS-Instruct-75K
header "Installing GeoIP" cd /tmp download_and_extract GeoIP-$GEOIP_VERSION.tar.gz GeoIP-$GEOIP_VERSION \ https://github.com/maxmind/geoip-api-c/releases/download/v$GEOIP_VERSION/GeoIP-$GEOIP_VERSION.tar.gz run ./configure --prefix=/hbb_exe_gc_hardened --enable-static --disable-shared run make -j2 run make install-strip
ise-uiuc/Magicoder-OSS-Instruct-75K
// // Copyright (C) 2012-2017 OpenVPN Inc. // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License Version 3
ise-uiuc/Magicoder-OSS-Instruct-75K
@propertyWrapper struct Password { private var keychain: KeychainPasswordItem var wrappedValue: String { get { (try? keychain.readPassword()) ?? "" } set { try? keychain.savePassword(newValue) } } init() { keychain = KeychainPasswordItem(service: "wallabag", account: "main", accessGroup: "group.wallabag.share_extension") } }
ise-uiuc/Magicoder-OSS-Instruct-75K
'Z': parse_parameter_quadruplet } context_map = { 'ELEMENT': parse_element, 'FUNCTION': parse_function, 'PHASE': phase_context_map,
ise-uiuc/Magicoder-OSS-Instruct-75K
bluetooth.UUID(0x2A1A), bluetooth.FLAG_READ | bluetooth.FLAG_NOTIFY, ) _BATT_SERV_SERVICE = ( _BATT_SERV_UUID, (_BATT_CHAR, _BATT_CHAR_POW), ) # org.bluetooth.service.enviromental_sensing
ise-uiuc/Magicoder-OSS-Instruct-75K
if (request.getApiFilters() == null || request.getApiFilters().isEmpty()) { return request; } ApiFilters newFilters = new ApiFilters(); for (Map.Entry<Dimension, Set<ApiFilter>> entry : request.getApiFilters().entrySet()) { if (!(entry.getKey() instanceof FilterOptimizable)) { newFilters.merge( entry.getKey(), entry.getValue(),
ise-uiuc/Magicoder-OSS-Instruct-75K
- "*" EOF
ise-uiuc/Magicoder-OSS-Instruct-75K
const bool bParallelY(::com::sun::star::drawing::TextureProjectionMode_PARALLEL == getSdr3DObjectAttribute().getTextureProjectionY());
ise-uiuc/Magicoder-OSS-Instruct-75K
from .book import Book
ise-uiuc/Magicoder-OSS-Instruct-75K
using Rocket.Surgery.Conventions.DependencyInjection; using Sample_Function; [assembly: Convention(typeof(LocalServices))] namespace Sample_Function; public class LocalServices : IServiceConvention {
ise-uiuc/Magicoder-OSS-Instruct-75K
var _cancel: () -> Void = { } func cancel() { _cancel() } }
ise-uiuc/Magicoder-OSS-Instruct-75K
/// <typeparam name="TArg3">TBD</typeparam> /// <typeparam name="TArg4">TBD</typeparam> /// <param name="duration">The duration to wait.</param> /// <param name="scheduler">The scheduler instance to use.</param> /// <param name="value">The task we're going to wrap.</param> /// <param name="arg1">TBD</param> /// <param name="arg2">TBD</param> /// <param name="arg3">TBD</param> /// <param name="arg4">TBD</param> /// <returns>a <see cref="Task{T}"/> that will be completed with the success or failure /// of the provided value after the specified duration</returns> public static Task<T> After<TArg1, TArg2, TArg3, TArg4, T>(TimeSpan duration, IScheduler scheduler, Func<TArg1, TArg2, TArg3, TArg4, Task<T>> value, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4) => After(duration, scheduler, Runnable.CreateTask(value, arg1, arg2, arg3, arg4));
ise-uiuc/Magicoder-OSS-Instruct-75K
self.setLastSeenTimestamp(timestamp) def d_setLastSeenTimestamp(self, timestamp): self.sendUpdate('setLastSeenTimestamp', [timestamp]) def setLastSeenTimestamp(self, timestamp): self.lastSeenTimestamp = timestamp def getCurEpochTimestamp(self): return int(time.time()) def getTimeSinceLastSeen(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
self._config = config self._system = config.system # Store single spin operators self._single_spinops = np.array( [ [self._system.operator({i: a}).matrix for a in "xyz"] for i in range(len(self._system)) ] ) # Parameters
ise-uiuc/Magicoder-OSS-Instruct-75K
// Copyright (C) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information. // </copyright> //--------------------------------------------------------------------- namespace Microsoft.Test.Taupo.Astoria.Contracts.EntityModel
ise-uiuc/Magicoder-OSS-Instruct-75K
mutex = threading.Lock() def render_appleseed(target_file, base_color_tex, normal_tex, roughness_tex, metallic_tex, resolution, appleseed_path): mutex.acquire() try: # Read the template file from disk.
ise-uiuc/Magicoder-OSS-Instruct-75K
markUsed(b as X.Type) }
ise-uiuc/Magicoder-OSS-Instruct-75K
* setup, your EventBinder keys should also be strings. * * @see strange.extensions.dispatcher.eventdispatcher.api.IEvent */
ise-uiuc/Magicoder-OSS-Instruct-75K
# Return a clone so that the defaults will not be altered # This is for the "local variable" use pattern return _C.clone()
ise-uiuc/Magicoder-OSS-Instruct-75K
'ImportePortesSI' => $this->ImportePortesSI, 'IvaImporte' => $this->IvaImporte, 'ImporteRecargo' => $this->ImporteRecargo, 'LogAlm' => $this->LogAlm, 'ImporteSLA' => $this->ImporteSLA, 'Total' => $this->Total, 'PcIVA' => $this->PcIVA, 'ImpCR' => $this->ImpCR, 'ga' => $this->ga, ]); $query->andFilterWhere(['like', 'Numero', $this->Numero]) ->andFilterWhere(['like', 'NombreCliente', $this->NombreCliente]) ->andFilterWhere(['like', 'DireccionCliente', $this->DireccionCliente])
ise-uiuc/Magicoder-OSS-Instruct-75K
from msp.datasets._samples_generator import make_sparse_data __all__ = ['make_sparse_data']
ise-uiuc/Magicoder-OSS-Instruct-75K
), migrations.AlterField( model_name="source", name="name", field=models.TextField(help_text="Source's display Name."), ), migrations.AlterField( model_name="source", name="slug", field=models.SlugField(help_text="Internal source name, used in URLs."), ),
ise-uiuc/Magicoder-OSS-Instruct-75K
publishers = sb_and_md.union(system_publishers).order_by("name") return publishers
ise-uiuc/Magicoder-OSS-Instruct-75K
self.duration += clip.duration
ise-uiuc/Magicoder-OSS-Instruct-75K
set { hasFloat = value * 2; } } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
=> skip.HasValue && skip.Value > 0 ? source.Skip(skip.Value) : source; public static IEnumerable<TEntity> SkipIf<TEntity>( this IEnumerable<TEntity> source, int? skip) => skip.HasValue && skip.Value > 0 ? source.Skip(skip.Value) : source; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
healthBar.value -= 1; } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
} int Grifo::getSeconds() { return (actual - start) / 1000;
ise-uiuc/Magicoder-OSS-Instruct-75K
sys.path.append(os.path.join(os.environ["HOME"], "TTTArena")) from environment import Environment from alphazero.mcts import MCTS from alphazero.database import DataBase from alphazero.database import prepare_state torch.manual_seed(80085) np.random.seed(80085)
ise-uiuc/Magicoder-OSS-Instruct-75K
grep '^///' discheme.c | sed -e 's@^///@@' -e 's@^ *@@' >discheme.adoc asciidoctor discheme.adoc
ise-uiuc/Magicoder-OSS-Instruct-75K
* @param BaseRuleDefinition $entity * * @return RuleDefinition */ public static function fromEntity(BaseRuleDefinition $entity): self { $definition = new self(); $definition->entity = $entity;
ise-uiuc/Magicoder-OSS-Instruct-75K