seed
stringlengths
1
14k
source
stringclasses
2 values
shell.cp('-R', path.resolve('src/views'), path.resolve('dist/src'));
ise-uiuc/Magicoder-OSS-Instruct-75K
import scrapy from itemloaders.processors import TakeFirst, MapCompose, Join import re class NewsLoaderItem(scrapy.Item): theme = scrapy.Field() title = scrapy.Field() text = scrapy.Field()
ise-uiuc/Magicoder-OSS-Instruct-75K
# if do_raise is set, indicate that the request # is unauthorized raise RuntimeError("Unauthorized request to cluster") except MaxRetryError: # sometimes this error can get raised if the master nodes # of the cluster are busy doing something. Return None # to indicate this is happening but give things a few # minutes to get back to normal if not self._unavailable: self._unavailable = True self._unavailable_time = time.time() elif ( time.time() - self._unavailable_time
ise-uiuc/Magicoder-OSS-Instruct-75K
""" LihuiyuParser parses LHYMicro-GL code with a state diagram. This should accurately reconstruct the values. When the position is changed it calls a self.position() function if one exists. """ def __init__(self): self.channel = None self.position = None self.board = "M2" self.header_skipped = False self.count_lines = 0 self.count_flag = 0 self.settings = Parameters({"speed": 20.0, "power": 1000.0})
ise-uiuc/Magicoder-OSS-Instruct-75K
let id = "ID" let hostname = "HOSTNAME"
ise-uiuc/Magicoder-OSS-Instruct-75K
if (count($array) < 2) { return $array; } $data_keys = key($array); $data_values = array_shift($array); foreach ($array as $val) { if ($val <= $data_values) { $lt[] = $val;
ise-uiuc/Magicoder-OSS-Instruct-75K
('core', '0024_staffmember_categories'), ] operations = [
ise-uiuc/Magicoder-OSS-Instruct-75K
fn index(self) -> usize { match self { Amphipod::A => 0, Amphipod::B => 1, Amphipod::C => 2,
ise-uiuc/Magicoder-OSS-Instruct-75K
oriented programming, I hope that the example below is simple enough. """ def __init__(self, gdir, grad=3., h_perc=60, sigma_ela=100., seed=None): """ Initialize. Parameters ----------
ise-uiuc/Magicoder-OSS-Instruct-75K
"--mcic_id", metavar="<mcic_id>", required=True,
ise-uiuc/Magicoder-OSS-Instruct-75K
from . import utils bootstrap = Bootstrap() db = SQLAlchemy() login = LoginManager()
ise-uiuc/Magicoder-OSS-Instruct-75K
# assert dir.is_directory # @pytest.mark.parametrize("files", [ # "php-fpm.conf", # ]) # def test_files(host, get_vars, files):
ise-uiuc/Magicoder-OSS-Instruct-75K
cookie_scheme = APIKeyCookie(name="bgm-tv-auto-tracker", auto_error=False) API_KEY_HEADER = APIKeyHeader(name="api-key", auto_error=False) API_KEY_COOKIES = APIKeyCookie(name="api-key", auto_error=False)
ise-uiuc/Magicoder-OSS-Instruct-75K
self.size = len(temp) temp = [t.split("|") for t in temp] for t in temp: self.links.append(t[0]) self.targets.append(t[1:]) if len(t[1:]) > 1 \ else self.targets.append(t[1])
ise-uiuc/Magicoder-OSS-Instruct-75K
<div class="form-group"> {!! Form::Label('Division', 'ផ្នែក/ Division', ['class' => 'control-label col-lg-4']) !!} <div class="col-lg-6"> {!! Form::Select('Division',[], null, ['class' => 'form-control']) !!} </div> </div>
ise-uiuc/Magicoder-OSS-Instruct-75K
session = Session() account = ( session .query(User) .filter(User.username == username)
ise-uiuc/Magicoder-OSS-Instruct-75K
]), html.Li(className="nav-item", children=[ dcc.Link("Oceania", href="/oceania"), html.Span(className="sr-only"), ]), ]), html.Div(id='page-content'), html.Ul(className="nav flex-column mb-2") ]), ]), html.Main(role="main", className="col-md-9 ml-sm-auto col-lg-10 px-4", children=[ html.Div(className="chartjs-size-monitor", style={"position": "absolute", "left": "0px", "top": "0px", "right": "0px", "bottom": "0px", "overflow": "hidden", "pointer-events": "none", "visibility": "hidden", "z-index": "-1"}),
ise-uiuc/Magicoder-OSS-Instruct-75K
// MARK: - Public
ise-uiuc/Magicoder-OSS-Instruct-75K
if layer_norm: self.layers.append(nn.LayerNorm(hidden_features[i]))
ise-uiuc/Magicoder-OSS-Instruct-75K
countDownLatch.await(); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>src/comparable_abstract_source/str/comparable_to_str.rs<gh_stars>0 use crate::ComparableAbstractSource; /// This is only available if `str_comparable_to_str` feature has been activated. impl ComparableAbstractSource<&str> for &str { fn is_same_needle_at(&self, index: usize, needle: &str) -> bool { self.get(index..).map_or_else(|| false, |source| source.starts_with(needle)) } }
ise-uiuc/Magicoder-OSS-Instruct-75K
struct ProtocolOptions { #[structopt(short = "o", long = "proto-period", default_value = "5")] pub protocol_period: u64, #[structopt(short = "a", long = "ack-timeout", default_value = "1")] pub ack_timeout: u8,
ise-uiuc/Magicoder-OSS-Instruct-75K
# function setLocation($a_parameter_hash) { $method = 'zooomr.photos.geo.setLocation'; $required_params = array('photo_id', 'lat', 'lon', 'auth_token'); $optional_params = array('accuracy');
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_wait_until_is_loaded(): dum = Dummy() result = wait_until(dum.is_loaded, timeout=2) assert result == "Yay!"
ise-uiuc/Magicoder-OSS-Instruct-75K
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use this file except in compliance with
ise-uiuc/Magicoder-OSS-Instruct-75K
Ok(()) } fn main() { solve().unwrap(); factorize().unwrap(); }
ise-uiuc/Magicoder-OSS-Instruct-75K
assert nurbsSamp.getSelfBounds().min() == V3d( 0.0, 0.0, -3.0 ) assert nurbsSamp.getSelfBounds().max() == V3d( 3.0, 3.0, 3.0 ) assert nurbsSamp.getTrimNumLoops() == 0 assert nurbsSamp.hasTrimCurve() == False assert not nurbsSamp.getPositionWeights() assert nurbsSchema.isConstant() == True
ise-uiuc/Magicoder-OSS-Instruct-75K
""" Creates a new connection to the database filename - The name of the database file to use """ self.Filename = filename self.Connection = sqlite3.connect(filename) self.Cursor = self.Connection.cursor() def SaveProfile(self, data): """
ise-uiuc/Magicoder-OSS-Instruct-75K
public interface FileMapper { void insert(File file);
ise-uiuc/Magicoder-OSS-Instruct-75K
delta = config[CONF_DELTA] name = config[CONF_NAME] country = config[CONF_COUNTRY]
ise-uiuc/Magicoder-OSS-Instruct-75K
frame_number = frame["frame_number"] location = None rotation_euler = None if "matrix_world" in frame: matrix_world = frame["matrix_world"] m = Matrix(matrix_world) location = m.to_translation()
ise-uiuc/Magicoder-OSS-Instruct-75K
} public extension Xccov.Converters.FailableConverter { static func convert(coverageReport: CoverageReport) -> Result<String, Xccov.Error> { .failure(Xccov.Error.conversionFailed("")) } }
ise-uiuc/Magicoder-OSS-Instruct-75K
childtag = None def __init__(self, content=None, **kwargs): self.content = [] self.meta = kwargs if content: self.__add__(content) def __repr__(self): output = "" attributes = "" for attr, val in self.meta.items(): if attr=="cl": attr="class" attributes += """{}='{}'""".format(attr, val) if self.tag: output += "<{} {}>".format(self.tag, attributes)
ise-uiuc/Magicoder-OSS-Instruct-75K
'queries': ''' Program(x) ''', }
ise-uiuc/Magicoder-OSS-Instruct-75K
elif action == 'year': return InlineKeyboardButton(self.labels['year'].replace('{year}', str(year)), callback_data=self._get_callback('year', 'set-view', year, month, day)) elif action == 'select': return InlineKeyboardButton(self.labels[action], callback_data=self._get_callback(view, action, year, month, day))
ise-uiuc/Magicoder-OSS-Instruct-75K
CERT = b"""-----<KEY> -----END CERTIFICATE----- """
ise-uiuc/Magicoder-OSS-Instruct-75K
'stanford-ner.jar') ne_tagged = st.tag(token_text) return ne_tagged def nltk_tagger(token_text): tagged_words = nltk.pos_tag(token_text) ne_tagged = nltk.ne_chunk(tagged_words) return ne_tagged
ise-uiuc/Magicoder-OSS-Instruct-75K
"installUserID", "invitations", "key", "pins", "pubsubChannel", "recentImage", "remoteOperateSecret", "users", "zWaveDSK", }
ise-uiuc/Magicoder-OSS-Instruct-75K
operations = [ migrations.AlterField(
ise-uiuc/Magicoder-OSS-Instruct-75K
def toggle_resizable(self): """Toggle between resizable and fixed-size window.""" self.flags ^= RESIZABLE pygame.display.set_mode(self.rect.size, self.flags) def toggle_frame(self): """Toggle between frame and noframe window.""" self.flags ^= NOFRAME pygame.display.set_mode(self.rect.size, self.flags)
ise-uiuc/Magicoder-OSS-Instruct-75K
else: yield x prev_x = x prev_y = y def align(feature, target, vuv='f0', strict=False, pad_silence=True, pad_len=100, **kwargs): if pad_silence: feature = kwiiyatta.pad_silence(feature, frame_len=pad_len) target = kwiiyatta.pad_silence(target, frame_len=pad_len) _, path = dtw_feature(feature, target, vuv=vuv, strict=strict, **kwargs) return feature[list(project_path_iter(path, trim=pad_silence, trim_len=pad_len))]
ise-uiuc/Magicoder-OSS-Instruct-75K
class ResPartner(models.Model): _inherit = 'res.partner' unique_id = fields.Char(string='Unique Id', help="The Unique Sequence no", readonly=True, default='/') @api.model
ise-uiuc/Magicoder-OSS-Instruct-75K
// RUN: not %target-swift-frontend %s -parse func a<Int) { struct D : String { protocol a {
ise-uiuc/Magicoder-OSS-Instruct-75K
template_name = 'employee/dashboard.html' # action view.get(request)
ise-uiuc/Magicoder-OSS-Instruct-75K
letter_list.append(odd_letters[counter]) letter_list.append(even_letters[counter])
ise-uiuc/Magicoder-OSS-Instruct-75K
fn insert<'e, E>(self, db: E) -> BoxFuture<'e, Result<Self>> where E: 'e + sqlx::Executor<'e, Database = DB>; fn update_all_fields<'e, E>(self, db: E) -> BoxFuture<'e, Result<Self>> where E: 'e + sqlx::Executor<'e, Database = DB>;
ise-uiuc/Magicoder-OSS-Instruct-75K
timestamp: number networkId: number }
ise-uiuc/Magicoder-OSS-Instruct-75K
class Net(nn.Module): def __init__(self , num_layers , img_dim , in_chan , act_func , latent_vector_size): super(Net , self).__init__() assert act_func in ("ReLU" , "LeakyReLU") , "Activation function that can be used now are ReLU and LeakyReLU"
ise-uiuc/Magicoder-OSS-Instruct-75K
import com.shackshake.fo4squardmaker.entity.Club;
ise-uiuc/Magicoder-OSS-Instruct-75K
from pygame.image import load from pygame.math import Vector2 def load_sprite(name, with_alpha=True): path = f"assets/sprites/{name}.png" loaded_sprite = load(path) if with_alpha: return loaded_sprite.convert_alpha() else: return loaded_sprite.convert()
ise-uiuc/Magicoder-OSS-Instruct-75K
def _get_mock_func(operation_name): disabled_funcs = os.environ.get( 'MOCK_BOTO3_DISABLED_FUNCS', '' ).split(',') for func, operations in MOCK_OPERATIONS.items(): if func in disabled_funcs: continue
ise-uiuc/Magicoder-OSS-Instruct-75K
public function admin_api_view() { // This action is invoked in parallel via ajax, requests will race for the session // information. Release the lock as early as possible to reduce contention. session_write_close(); $start = microtime(true);
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_add_system_user(self): import json from FreeTAKServer.controllers.services import RestAPI RestAPI.addSystemUser(json.dumps({ "systemUsers": [ {"Name": "bbrdk", "Group": "Yellow", "Token": "token", "Password": "<PASSWORD>", "Certs": "true"} ] }))
ise-uiuc/Magicoder-OSS-Instruct-75K
class ScCuritibanosSpider(FecamGazetteSpider): name = "sc_curitibanos" FECAM_QUERY = "cod_entidade:82" TERRITORY_ID = "4204806"
ise-uiuc/Magicoder-OSS-Instruct-75K
'I cant balance it!' ] def test_integrate(): outs = [] for inp in inputs: res = Balancer(inp).balance() outs.append(res) assert outs == expected_outs if __name__ == "__main__":
ise-uiuc/Magicoder-OSS-Instruct-75K
// // When any button is pressed keyPressed will be called. @IBAction func keyPressed(_ sender: UIButton) {
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_CfGribDataStore(): datastore = cfgrib_.CfGribDataStore(TEST_DATA, encode_cf=()) expected = {'number': 10, 'dataDate': 2, 'dataTime': 2, 'level': 2, 'values': 7320} assert datastore.get_dimensions() == expected def test_xarray_open_dataset():
ise-uiuc/Magicoder-OSS-Instruct-75K
self.__deferredRead() if type(key) == SliceType: return self.__data[key.start:key.stop] return self.__data[key] def __repr__(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
field=models.CharField(choices=[('QB', 'Quarterback'), ('RB', 'Running Back'), ('FB', 'Fullback'), ('WR', 'Wide Receiver'), ('TE', 'Tight End'), ('C', 'Center'), ('OT', 'Offensive Tackle'), ('OG', 'Offensive Guard'), ('DE', 'Defensive End'), ('DT', 'Defensive Tackle'), ('LB', 'Line Backer'), ('DB', 'Defensive Back'), ('CB', 'Cornerback'), ('S', 'Safety'), ('K', 'Kicker'), ('P', 'Punter'), ('LS', 'Long Snapper'), ('KR', 'Kick Returner'), ('PR', 'Punt Returner')], max_length=25, null=True), ), ]
ise-uiuc/Magicoder-OSS-Instruct-75K
using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Framework; using UnityEngine; class MonsterFacotry : MonoBehaviour { private ITable monsterDatas; public UnityEngine.GameObject CreateMonster(int id,Transform transform) { if(monsterDatas == null) { monsterDatas = LocalData.Instance.GetTable<monsterData>();
ise-uiuc/Magicoder-OSS-Instruct-75K
} /// Returns config value for `key` wrapped with `Option` and `Result` pub fn get(&self, key: &str) -> Result<Option<String>, String> { let conf = Ini::load_from_file(self.path.as_str())
ise-uiuc/Magicoder-OSS-Instruct-75K
"Solution of Day 1, Part 1: {}", day1::part1(&load_file(&(base_path.clone() + "day1.txt"))) ); println!(
ise-uiuc/Magicoder-OSS-Instruct-75K
hostname=gr_hostname, detach=True, interactive=True, tty=True, workdir='/root/build', name=gr_dockername,
ise-uiuc/Magicoder-OSS-Instruct-75K
""" 1. key word argument needs to place after position argument 2. 根据我查资料总结结果,很多 python 内置的函数都不支持 keyword 参数,python 的内置函数都是 c 实现的,只支持位置参数 """ print("hello", "abc", sep="|", end=" ") print("itcast")
ise-uiuc/Magicoder-OSS-Instruct-75K
class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right def main(): root = TreeNode(5) root.left = TreeNode(2) root.right = TreeNode(7) root.left.left = TreeNode(1)
ise-uiuc/Magicoder-OSS-Instruct-75K
@Test public void whenTypeMoreConcreteThenSourceGiven_canAcceptAsSource_shouldReturnTrue() { ConversionSignature<Number, String> signature = ConversionSignature.from(Number.class, String.class); boolean canAccept = signature.canAcceptAsSource(Integer.class); assertThat(canAccept).isTrue(); } @Test public void whenTypeMoreAbstractThenSourceGiven_canAcceptAsSource_shouldReturnFalse() { ConversionSignature<Integer, String> signature = ConversionSignature.from(Integer.class, String.class);
ise-uiuc/Magicoder-OSS-Instruct-75K
public static string[] english_word_numeral_list = { "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", "nineteen", "twenty" }; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
from nanotube.nanotube import SWCNT
ise-uiuc/Magicoder-OSS-Instruct-75K
def blit(self, screen): pass
ise-uiuc/Magicoder-OSS-Instruct-75K
def assemble_bot(config_path): ircbot = gpt2_bot.irc.IRCBot(config_path) ircbot.register_command("ping", gpt2_bot.commands.ping_command) ircbot.register_command("ignore", gpt2_bot.commands.ignore_command) ircbot.register_command("unignore", gpt2_bot.commands.unignore_command) ircbot.register_command("temp", gpt2_bot.commands.temp_command) ircbot.register_command("shitposting", gpt2_bot.commands.shitposting_command) gpt2_bot.gpt2.init(ircbot)
ise-uiuc/Magicoder-OSS-Instruct-75K
{ ST_KEY_K, GLFW_KEY_K }, { ST_KEY_L, GLFW_KEY_L }, { ST_KEY_M, GLFW_KEY_M }, { ST_KEY_N, GLFW_KEY_N }, { ST_KEY_O, GLFW_KEY_O }, { ST_KEY_P, GLFW_KEY_P }, { ST_KEY_Q, GLFW_KEY_Q }, { ST_KEY_R, GLFW_KEY_R },
ise-uiuc/Magicoder-OSS-Instruct-75K
private readonly providers; private readonly prefixes; private filteredListWidget; constructor(); static show(query: string): void; private addProvider;
ise-uiuc/Magicoder-OSS-Instruct-75K
if (reply.find_last_of(CRLF) != reply.length() - 1) msgs--; fdref.sentmsgs += msgs; if (fdref.sock > 0) serv->fds[fdref.sock].sentmsgs += msgs;
ise-uiuc/Magicoder-OSS-Instruct-75K
This function iterates through the functions added to d_init, and runs them in the same order they were added in. """ for func, self_, args, kwargs in self.d_init: func(self_, *args, **kwargs)
ise-uiuc/Magicoder-OSS-Instruct-75K
# 1. New procedure created on server gets synched to file on client # 2. Stable edit to any existing procedure gets synched to file on client # 3. Unstable edit to any existing procedure DOES NOT get synched to file on client ###########################################################
ise-uiuc/Magicoder-OSS-Instruct-75K
]; let logarithmics = [
ise-uiuc/Magicoder-OSS-Instruct-75K
pyxel.init(200, 200)
ise-uiuc/Magicoder-OSS-Instruct-75K
settings::Settings::new().expect("Config can be loaded"); }
ise-uiuc/Magicoder-OSS-Instruct-75K
def get_submission_class(self): return CustomFormSubmission
ise-uiuc/Magicoder-OSS-Instruct-75K
# repmat # for i in range(0,genomeLength): # map.genes.append(pd.DataFrame(data=blankMap)) for i in range(0,genomeLength): map.genes.append(pd.DataFrame(data=blankMap).copy()) # print(map.genes[0]._is_view) # print(map.genes[1]._is_view)
ise-uiuc/Magicoder-OSS-Instruct-75K
config.options("master-public-keys") except NoSectionError: print("Non-existant configuration file `config.cfg`") return try: rpc_u = config.get("bitcoin-rpc", "rpc_user") rpc_p = config.get("bitcoin-rpc", "rpc_password") except NoOptionError: rpc_u, rpc_p = server.obtain_rpc_username_password(config.get( "bitcoin-rpc", "datadir"))
ise-uiuc/Magicoder-OSS-Instruct-75K
# Exercise 3.10: Every Function: # Think of something you could store in a list. # For example, you could make a list of mountains, rivers, countries, cities, languages, or any- thing else you’d like. # Write a program that creates a list containing these items and then uses each function introduced in this chapter at least once . def main(): print("Skipping this exercise since this is redundant exercise to use previously used functions again.")
ise-uiuc/Magicoder-OSS-Instruct-75K
for i in range(3): offset = (i + 1) * OFFSET output = list() for bone_frame in bones: if in_range(bone_frame.frame, offset): output.append(bone_frame._replace(frame=bone_frame.frame + offset)) else:
ise-uiuc/Magicoder-OSS-Instruct-75K
using UnityEngine; namespace Unity.StreamingImageSequence.Editor { internal struct PreviewDrawInfo { public Rect DrawRect; public double LocalTime; //local with respect to the clip } } //end namespace
ise-uiuc/Magicoder-OSS-Instruct-75K
&mut self, input: &[BufferPoolReference<S>], output: &mut [BufferPoolReference<S>], frames: usize, context: &mut Self::Context, ) { self.as_mut().process(input, output, frames, context); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
skipSize = 700 / Game.Board.Size; DrawCurrentBoard(); Game.WhitePlayerEngine.Reset(); Game.BlackPlayerEngine.Reset(); } public void ChangePlayer() { CurrentPlayer = CurrentPlayer == PieceColor.Black ? PieceColor.White : PieceColor.Black;
ise-uiuc/Magicoder-OSS-Instruct-75K
if namespace in self.SUPPORTED_NAMESPACES: return overrides[namespace] elif namespace: raise exception.InvalidHelmNamespace(chart=self.CHART, namespace=namespace) else: return overrides def _ovs_label_value(self): if utils.get_vswitch_type(self.dbapi) == constants.VSWITCH_TYPE_NONE: return "enabled"
ise-uiuc/Magicoder-OSS-Instruct-75K
if square <= x: left = mid + 1 elif square > x : right = mid -1 return left-1 # n : the number of input value
ise-uiuc/Magicoder-OSS-Instruct-75K
defaultFirstOption: props.defaultFirstOption, reserveKeyword: props.reserveKeyword, valueKey: props.valueKey,
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>subjects/InputOutput.py def disp(*txt, p): print(*txt) ask = lambda p : p.b(input())
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace Azure.AI.MetricsAdvisor.Models { /// <summary> The AzureBlobParameter. </summary> internal partial class AzureBlobParameter { /// <summary> Initializes a new instance of AzureBlobParameter. </summary> /// <param name="container"> The container name in this Azure Blob. </param> /// <param name="blobTemplate"> The path template in this container. </param> public AzureBlobParameter(string container, string blobTemplate) {
ise-uiuc/Magicoder-OSS-Instruct-75K
to--; addEdge(from, to, capacity); } int ans = fordFulkerson(0, vertexNum - 1); cout << ans << endl; } return 0; }
ise-uiuc/Magicoder-OSS-Instruct-75K
#Print only the result, any other text in the output will cause the checker to fail. bun_price = 2.40 money = 15 print( money // bun_price )
ise-uiuc/Magicoder-OSS-Instruct-75K
edges += len(graph[k]) return int(edges/2)
ise-uiuc/Magicoder-OSS-Instruct-75K
* * - Neither the name of the Git Development Community nor the * names of its contributors may be used to endorse or promote * products derived from this software without specific prior
ise-uiuc/Magicoder-OSS-Instruct-75K
loss0 = bce_loss(d0,labels_v) loss1 = bce_loss(d1,labels_v) loss2 = bce_loss(d2,labels_v) loss3 = bce_loss(d3,labels_v) loss4 = bce_loss(d4,labels_v)
ise-uiuc/Magicoder-OSS-Instruct-75K
</li> html; }
ise-uiuc/Magicoder-OSS-Instruct-75K
/// Converts between the different BitUnits /// /// - parameter amount: The amount of the sourceUnit to be formatted. /// - parameter from: The unit of the amount.
ise-uiuc/Magicoder-OSS-Instruct-75K
in everything mode: * create a rule for each 'number' cell * create a rule encompassing all known mines * create a rule encompassing all uncovered cells * create a rule for all cells adjacent to 'blank'/'empty' cells, and not included in the previous rule. thus, this rule will only be present for invalid boards or boards whose empty areas have not been fully expanded """ def _rule(mines, cells): """rule-building helper; don't create degenerate rules we allow # mines > # cells, such as in the event of an invalid board""" if mines or cells: yield Rule(mines, [cell.name for cell in cells])
ise-uiuc/Magicoder-OSS-Instruct-75K
} @Override public void getEquipmentInfo() { System.out.println("Mouse [DELL]"); } }
ise-uiuc/Magicoder-OSS-Instruct-75K