seed
stringlengths
1
14k
source
stringclasses
2 values
} /* * Out of range sub-leaves aren't quite as easy and pretty as we emulate
ise-uiuc/Magicoder-OSS-Instruct-75K
} } impl fmt::Display for IdentityMatch { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { use std::fmt::Write; match self { Self::Exact(name) => name.fmt(f), Self::Suffix(suffix) => { f.write_char('*')?; for part in suffix {
ise-uiuc/Magicoder-OSS-Instruct-75K
# -*- coding: utf-8 -*- """ Name : c10_13_fig.py Book : Python for Finance (2nd ed.) Publisher: Packt Publishing Ltd.
ise-uiuc/Magicoder-OSS-Instruct-75K
</div> </div> <div class="listdiv joblistdetail-description col-sm-8 clearfix"> <div class="listdiv joblistdetail-company-logo"> <img width="150" height="150" alt="<?php echo $job['company']; ?>" src="<?php echo $job['company_logo']; ?>"> </div> <?php echo $job['sort_description']; ?> </div> </div> </div> <?php } ?> </div> </div> </form> <script> jQuery(document).ready(function(){ jQuery(".radiochange").change(function(){
ise-uiuc/Magicoder-OSS-Instruct-75K
// let ra_pointer = register_sequencer.next(); // get the pointer to the beginning of free stack memory asm_buf.push(Op::unowned_register_move( ra_pointer.clone(), VirtualRegister::Constant(ConstantRegister::StackPointer), )); // extend the stack by 32 + 8 + 8 = 48 bytes asm_buf.push(Op::unowned_stack_allocate_memory( VirtualImmediate24::new_unchecked( 48, // in bytes
ise-uiuc/Magicoder-OSS-Instruct-75K
commit; select * from t; select * from t2; -- THIS LEAD SERVER CRASH (checked on WI-T4.0.0.399)
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_minimum_mana(): """ Test minimum_mana static method """ for mana,probability in zip([1,2,3,4], [1.0,0.75,0.5,0.25]): metric = Metric.minimum_mana(mana) assert metric.name == f"≥{mana} mana" assert metric.func(None, [1,2,3,4]) == probability def test_percentile(): """ Test percentile static method
ise-uiuc/Magicoder-OSS-Instruct-75K
@receiver(pre_save, sender=models.EmailEntry) def email_entry_handler(sender, instance, **kwargs): """ Handler that assigns to lower_case_entry_value the entry_value.lower() """ instance.lower_case_entry_value = instance.entry_value.lower() email_hasher = sha256(instance.lower_case_entry_value.encode()) instance.hashed_value = email_hasher.hexdigest().lower() @receiver(pre_save, sender=models.IPEntry)
ise-uiuc/Magicoder-OSS-Instruct-75K
import java.util.Collections; import java.util.Map; import java.util.Set; /** * Request to raw fragments supplier.
ise-uiuc/Magicoder-OSS-Instruct-75K
" SOURCES="\ mpack/mpack-platform.c \ mpack/mpack-common.c \ mpack/mpack-writer.c \ mpack/mpack-reader.c \ mpack/mpack-expect.c \ mpack/mpack-node.c \ "
ise-uiuc/Magicoder-OSS-Instruct-75K
if tmp == None: return '' else: return tmp @register.filter def get_value(value): if value is None: return ''
ise-uiuc/Magicoder-OSS-Instruct-75K
&:hover { opacity: 1; } &:before, &:after {
ise-uiuc/Magicoder-OSS-Instruct-75K
import setuptools # main project configurations is loaded from setup.cfg by setuptools assert setuptools.__version__ > '30.3', "setuptools > 30.3 is required" setuptools.setup()
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace App;
ise-uiuc/Magicoder-OSS-Instruct-75K
if self.landing:
ise-uiuc/Magicoder-OSS-Instruct-75K
self.lambdified_f = lambdify(vars, self.f)
ise-uiuc/Magicoder-OSS-Instruct-75K
// Check the frustum of the camera BoundingSphere sphere = new BoundingSphere(transform.TransformPoint(sharedMesh.bounds.boundingSphere.Center), sharedMesh.bounds.boundingSphere.Radius * Math.Abs(Math.Max(transform.lossyScale.x, Math.Max(transform.lossyScale.y, transform.lossyScale.z)))); if (cam.DoFrustumCulling(ref sphere)) { #if DEBUG if (Camera.logRenderCalls)
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>EncryptedChat/EncryptedChat.Server.Web/Constants.cs namespace EncryptedChat.Server.Web { public static class Constants { public const string RedirectUrl = "https://github.com/martinmladenov/encrypted-chat"; public const string UsernameRegex = @"^(?=.{3,20}$)(?![_.])(?!.*[_.]{2})[a-zA-Z0-9._]+(?<![_.])$"; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
// ReadenView.swift
ise-uiuc/Magicoder-OSS-Instruct-75K
<?php include 'connection/connection.php';?> <?php include 'include/head.php';?> <style type="text/css"> .awards { overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
ise-uiuc/Magicoder-OSS-Instruct-75K
cadastrar() elif p == 2: try:
ise-uiuc/Magicoder-OSS-Instruct-75K
from ..layers.Layer import *
ise-uiuc/Magicoder-OSS-Instruct-75K
# 是否允许选择游戏角色 # 这是一个mojang未实现的功能 export BACKEND_ALLOW_SELECTING_PROFILES=true # 是否在refresh请求中包含角色列表 # mojang的验证服务不会这么做 export BACKEND_INCLUDE_PROFILES_IN_REFRESH=true # 如果用户只有一个角色, 是否自动帮用户选择该角色 export BACKEND_AUTO_SELECTED_UNIQUE_PROFILE=true
ise-uiuc/Magicoder-OSS-Instruct-75K
columns=s.columns)]).sort_index() interp = interp.interpolate(method='index').drop_duplicates() interp = interp.reindex(new_index) interp[mask] = None return interp
ise-uiuc/Magicoder-OSS-Instruct-75K
>> model.add(Dense(10, input_shape = (13,), activation = 'sigmoid')) >> model.add(Dense(10, activation = 'sigmoid')) >> model.add(Dense(10, activation = 'sigmoid')) >> model.add(Dense(1)) ''' sgd = optimizers.SGD(lr = 0.01) # stochastic gradient descent optimizer model.compile(optimizer = sgd, loss = 'mean_squared_error', metrics = ['mse']) # for regression problems, mean squared error (MSE) is often employed model.fit(X_train, y_train, batch_size = 50, epochs = 100, verbose = 1)
ise-uiuc/Magicoder-OSS-Instruct-75K
//新增权限前先判断是否有重复的记录 boolean ifAllow = userCourseService.allowJudge(userCourseBean.getUserId(), userCourseBean.getCourseId(), userCourseBean.getTeacherId()); if(!ifAllow){ UserCourse userCourse = new UserCourse(); BeanUtils.copyProperties(userCourseBean, userCourse); userCourseService.save(userCourse); } else { throw new TeachException(ResultEnum.ADMIN_UC_IS_EXIST); } return ApplyUtil.success();
ise-uiuc/Magicoder-OSS-Instruct-75K
wfd_db = app.config['WFD_DB'] if os.path.exists(wfd_db): logger.info(f' * Word Frequency Database: {wfd_db}"') else: logger.error(' * Could not found "Word Frequency Database - {wfd_db}"!') @app.route('/favicon.ico') def favicon(): return redirect(url_for('mdict.static', filename='logo.ico')) return app
ise-uiuc/Magicoder-OSS-Instruct-75K
wfdb.io.show_ann_labels() from matplotlib import pyplot as plt
ise-uiuc/Magicoder-OSS-Instruct-75K
for ob in context.blend_data.objects:
ise-uiuc/Magicoder-OSS-Instruct-75K
* 编译过程中的错误信息 * @version 0.1 * @author czy
ise-uiuc/Magicoder-OSS-Instruct-75K
<!-- Container Fluid--> <div class="container-fluid" id="container-wrapper">
ise-uiuc/Magicoder-OSS-Instruct-75K
use Closure; Use Illuminate\Support\Facades\Auth;// phải khai bảo mới hiểu được thư viên Auth
ise-uiuc/Magicoder-OSS-Instruct-75K
<span class="text-condensedLight"> 47<br> <small>Sales</small> </span> </div>
ise-uiuc/Magicoder-OSS-Instruct-75K
created?: string; }
ise-uiuc/Magicoder-OSS-Instruct-75K
Test.__init__(self) self.name = "Empty" def run(self, logdata, verbose): self.result = TestResult() self.result.status = TestResult.StatusType.GOOD
ise-uiuc/Magicoder-OSS-Instruct-75K
# cnpm sync @yunser/ui-std
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>database/seeders/CategoryProductTableSeeder.php <?php namespace Database\Seeders; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; class CategoryProductTableSeeder extends Seeder
ise-uiuc/Magicoder-OSS-Instruct-75K
color='blue', markersize=5, marker='o', )
ise-uiuc/Magicoder-OSS-Instruct-75K
response = raw_input('(C)ontinue or (A)bort? ') if response != 'C': sys.exit(0) nose.main()
ise-uiuc/Magicoder-OSS-Instruct-75K
unlockMessageField.text = newUnlock.ResultToUnlock.Name; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
{ return new self('Invalid jwt payload', 400); } /** * {@inheritdoc} */ public function getMessageKey(): string { return 'Invalid jwt payload'; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
key: 'GALLERY', value: 'Gallery' }, { key: 'MAPS', value: 'Map' }, { key: 'SALES', value: 'Sales' } ];
ise-uiuc/Magicoder-OSS-Instruct-75K
throw new ArgumentException("You are not logged in!"); } if (!isUserExist)
ise-uiuc/Magicoder-OSS-Instruct-75K
Function creating the model's graph in Keras. Argument: input_shape -- shape of the model's input data (using Keras conventions) Returns: model -- Keras model instance """ X_input = Input(shape = input_shape)
ise-uiuc/Magicoder-OSS-Instruct-75K
import org.springframework.data.repository.core.support.QueryCreationListener; import org.springframework.data.repository.query.RepositoryQuery; public class MybatisQueryCreationListener implements QueryCreationListener<RepositoryQuery> { private final Configuration configuration; private final MappingContext<?, ?> mappingContext; public MybatisQueryCreationListener(Configuration configuration, MappingContext<?, ?> mappingContext) {
ise-uiuc/Magicoder-OSS-Instruct-75K
else: if verbose: print(f'User provided a single Boolean equation.') net.append(source)
ise-uiuc/Magicoder-OSS-Instruct-75K
def valida_cadastro(request): nome = request.POST.get('nome')
ise-uiuc/Magicoder-OSS-Instruct-75K
return self.maps[item]
ise-uiuc/Magicoder-OSS-Instruct-75K
await did.list_my_dids_with_meta(wallet_handle + 1)
ise-uiuc/Magicoder-OSS-Instruct-75K
from src.Services.Faker.FakeDataGenerator import DataGenerator
ise-uiuc/Magicoder-OSS-Instruct-75K
print(f'I\ve left: {room.name}') @dogey.event async def on_command_error(ctx: Context, error: DogeyCommandError): await dogey.send(f'{error.command_name}: {error.message}')
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>1-10 #!/usr/bin/env python3 import re # 1. The pattern and the text to search for the pattern pattern = "this"
ise-uiuc/Magicoder-OSS-Instruct-75K
if (price) { product.price = price; } this.productRepository.save(product); return { message: 'Update success', }; } catch (error) { return { message: error.response.message,
ise-uiuc/Magicoder-OSS-Instruct-75K
elif arg1 == 'pointer': self.file.write('@3\n') self.file.write('D=D+A\n') else: # TODO pass # self.file.write('D=D+M\n') self.file.write('@13\n') # general purpose register self.file.write('M=D\n') self.file.write('@SP\n') self.file.write('A=M-1\n') self.file.write('D=M\n') # pop command
ise-uiuc/Magicoder-OSS-Instruct-75K
import com.example.orders.models.Customer; import org.springframework.data.jpa.repository.JpaRepository; public interface CustomerRepository extends JpaRepository<Customer, Long> { Customer findByCustname(String name); }
ise-uiuc/Magicoder-OSS-Instruct-75K
args['n'] = 10 # makes test run quicker sr = SumoRun(**args) sr.run() assert all([os.path.exists(os.path.join(outdir, x)) for x in ['k2', 'plots', os.path.join('plots', 'consensus_k2.png'), os.path.join('k2', 'sumo_results.npz')]])
ise-uiuc/Magicoder-OSS-Instruct-75K
needsMerge = request.needsMerge(); allowDiskUse = request.shouldAllowDiskUse(); bypassDocumentValidation = request.shouldBypassDocumentValidation(); ns = request.getNamespaceString(); mongoProcessInterface = std::move(processInterface); collation = request.getCollation(); _ownedCollator = std::move(collator); _resolvedNamespaces = std::move(resolvedNamespaces); }
ise-uiuc/Magicoder-OSS-Instruct-75K
PKG_FAMILY=glideinwms YUM_OPTIONS= YUM_INSTALL= while getopts ":hvy:if:" option do case "${option}" in h) help_msg; exit 0;; v) VERBOSE=yes;;
ise-uiuc/Magicoder-OSS-Instruct-75K
res = self.load(self.API_URL + method, get=get_data) self.log_debug(res) return json.loads(res) def grab_hosters(self, user, password, data): res = self.api_response("services/list", password) return res["directdl"] def grab_info(self, user, password, data): trafficleft = None
ise-uiuc/Magicoder-OSS-Instruct-75K
self.update_page() # Setup scheduler self.__scheduler = BackgroundScheduler() self.__scheduler.add_job(func=self.update_page, trigger='interval', seconds=15) self.__scheduler.start() # Setup atexit
ise-uiuc/Magicoder-OSS-Instruct-75K
if (m_HelpOpened) { ImGui::BeginChild("Tips"); ImGui::TextColored(ImVec4(1.f, 0.f, 0.f, 1.f), "How to use the controller."); ImGui::Text("Use the mouse to look around."); ImGui::Text("Use 'W' 'A' 'S' 'D' to move the camera.");
ise-uiuc/Magicoder-OSS-Instruct-75K
{code: 'ETH', name: 'ethereum'}, {code: 'ETC', name: 'ethereum-classic'},
ise-uiuc/Magicoder-OSS-Instruct-75K
out_cols = ["mapped_domains_id", 'tweet_domains_count'] out_frame_name = "mapped_domains" if __name__ == '__main__': generate_dict, is_test = parse_args() c = start_correct_cluster(is_test, use_processes=False)
ise-uiuc/Magicoder-OSS-Instruct-75K
super.viewDidAppear(animated) } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning()
ise-uiuc/Magicoder-OSS-Instruct-75K
from .lex_attrs import LEX_ATTRS from ...language import Language, BaseDefaults from ...tokens import Doc from ...util import DummyTokenizer, registry, load_config_from_str from ...vocab import Vocab DEFAULT_CONFIG = """ [nlp] [nlp.tokenizer] @tokenizers = "spacy.th.ThaiTokenizer" """
ise-uiuc/Magicoder-OSS-Instruct-75K
disabledDate?: (value: Moment) => boolean; } interface MonthTableState { value: Moment; } declare class MonthTable extends Component<MonthTableProps, MonthTableState> { constructor(props: any); static getDerivedStateFromProps(nextProps: any): { value: any; }; setAndSelectValue(value: any): void; months(): any[]; render(): JSX.Element; } export default MonthTable;
ise-uiuc/Magicoder-OSS-Instruct-75K
EXPECT_EQ(47.0, percent); EXPECT_EQ(2, controller_.GetNumUserAdjustments()); test::CallDecreaseScreenBrightness(&dbus_wrapper_, true /* allow_off */); EXPECT_TRUE(controller_.GetBrightnessPercent(&percent)); EXPECT_EQ(42.0, percent); EXPECT_EQ(3, controller_.GetNumUserAdjustments()); } TEST_F(ExternalBacklightControllerTest, DimAndTurnOffScreen) { EXPECT_FALSE(display_power_setter_.dimmed()); EXPECT_EQ(chromeos::DISPLAY_POWER_ALL_ON, display_power_setter_.state());
ise-uiuc/Magicoder-OSS-Instruct-75K
try: cv2.imwrite(name, frame) except Exception: break
ise-uiuc/Magicoder-OSS-Instruct-75K
def read(fname): return open(os.path.join(here, fname)).read() setup( name = "lc_pulse_avalanche", version = "1.0.0", author = "<NAME>", author_email = "<EMAIL>", g
ise-uiuc/Magicoder-OSS-Instruct-75K
label = 'my_plugin_handler' h = MyPluginHandler() assert h._meta.interface == 'plugin' assert h._meta.label == 'my_plugin_handler' # app functionality and coverage tests
ise-uiuc/Magicoder-OSS-Instruct-75K
m , n = img.shape kernel = [[1 for x in range(m)] for y in range(n)] a = 0.01 b = a / math.tan(45*math.pi/180) for u in range(m): for v in range(n): t = u - m/2 s = v - n/2 term = math.pi*(t*a+s*b) if term == 0: kernel[u][v] = 1 else: kernel[u][v] = (1/term) * math.sin(term) * math.e**(-1j*term) #*8000
ise-uiuc/Magicoder-OSS-Instruct-75K
{ function __construct() {
ise-uiuc/Magicoder-OSS-Instruct-75K
// UV edSet.isShowMainUV = Foldout(GetLoc("sMainUV"), GetLoc("sMainUVTips"), edSet.isShowMainUV); DrawMenuButton(GetLoc("sAnchorUVSetting"), lilPropertyBlock.UV);
ise-uiuc/Magicoder-OSS-Instruct-75K
arrayEmptyMock: true,
ise-uiuc/Magicoder-OSS-Instruct-75K
storage_def.set(storage_def.settings, settings_ast); } SettingsChanges & changes = storage_def.settings->changes; #define ADD_IF_ABSENT(NAME) \ if (std::find_if(changes.begin(), changes.end(), \ [](const SettingChange & c) { return c.name == #NAME; }) \ == changes.end()) \ changes.push_back(SettingChange{#NAME, NAME.value});
ise-uiuc/Magicoder-OSS-Instruct-75K
} let rs = rs.unwrap(); rss.push(rs.clone()); if ok_ctx.as_slice() == m.get_context() { found = true; break; } } if found { self.read_index_queue.drain(..i);
ise-uiuc/Magicoder-OSS-Instruct-75K
020000080568179234090000010030040050040205090070080040050000060289634175010000020 Returns: A 2d list object. """ if len(string) != 81: raise FormatError('string does not have precise 81 numbers')
ise-uiuc/Magicoder-OSS-Instruct-75K
* * 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, * 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. * *//*! * \file
ise-uiuc/Magicoder-OSS-Instruct-75K
} PsiElement target = findParentInModel((StructureViewTreeElement)child, psiElement); if(target != null) { return target; }
ise-uiuc/Magicoder-OSS-Instruct-75K
modified = false; } /** * Remembers to delete the given variable. * @param variableIndex the index of the variable to be deleted. */
ise-uiuc/Magicoder-OSS-Instruct-75K
</div> </div> <div class="col-3"> <div class="bg-white shadow w-100 p-4"> <h3>Create Batch</h3> <p>Select the files you want to upload</p>
ise-uiuc/Magicoder-OSS-Instruct-75K
update_data("update", 0, 0) update_plot_button = Button(label="Update Plot", button_type="success") update_plot_button.on_click(update_button_action) plot.x_range.on_change('start', update_data)
ise-uiuc/Magicoder-OSS-Instruct-75K
os.chdir(cwd) with open(tmp_file) as fd: result = fd.read() expected = ( 'from mypackage.mysubpackage import B\n' 'from mypackage.mysubpackage.bar import baz\n' 'from mypackage.foo import T\n' 'from mypackage.mysubpackage.bar import D\n'
ise-uiuc/Magicoder-OSS-Instruct-75K
name = "Frodo" print(name + ", did you take the trash out? It's Wednesday!" )
ise-uiuc/Magicoder-OSS-Instruct-75K
/// A CUDA module. pub struct Module<'a> { module: *mut CudaModule, context: &'a CudaContext, }
ise-uiuc/Magicoder-OSS-Instruct-75K
wd.get(url+'/manage_proj_edit_page.php?project_id='+str(project[0])) # submit deletion wd.find_element_by_xpath("//div[4]/form/input[3]").click() wd.find_element_by_css_selector("input.button").click() def get_project_list(self): db_connection = self.app.config['dbconnection'] connection = mysql.connector.connect( host=db_connection["host"], database=db_connection["database"], user=db_connection["user"], password=db_connection["password"]) cursor = connection.cursor()
ise-uiuc/Magicoder-OSS-Instruct-75K
return render_template('articles.html', articles=articles) @main.route('/business') def biz_articles(): articles = get_articles("business") return render_template('articles.html', articles=articles)
ise-uiuc/Magicoder-OSS-Instruct-75K
book = xlwt.Workbook() sheet1 = book.add_sheet('sheet1') data=xlrd.open_workbook(r'C:\Users\Desktop\teamE\D1_route.xlsx') table=data.sheets()[0]
ise-uiuc/Magicoder-OSS-Instruct-75K
echo " Renumbering patterns.spat..." perl -i -pe '/^#/ and next; s/^\d+/++$a/e' patterns.spat echo -n " Counting hash collisions... " perl -lne 'chomp; my ($id, $d, $p, @h) = split(/ /, $_); foreach (@h) { next if $h{$_} = $id; print "collision $id - $h{$_} ($_)" if $h{$_}; $h{$_}=$id; }' patterns.spat | wc -l
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>igmibot.py from telegram import (InlineKeyboardButton, InlineKeyboardMarkup, ReplyKeyboardMarkup, KeyboardButton, ReplyKeyboardRemove) from telegram.ext import (CommandHandler, MessageHandler, ConversationHandler, CallbackQueryHandler, Filters) from ..errorCallback import error_callback from . import dbFuncs from . import helpFuncs import logging from json import load as jsonload from pickle import (load as pickleload, dump as pickledump) logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.INFO) logger = logging.getLogger(__name__)
ise-uiuc/Magicoder-OSS-Instruct-75K
return $update; } public function processImg($file)
ise-uiuc/Magicoder-OSS-Instruct-75K
/// when the Task completes.</param> /// <param name="asyncResult">The Task used as the /// IAsyncResult.</param> private static void InvokeCallbackWhenTaskCompletes(Task antecedent, AsyncCallback callback, IAsyncResult asyncResult) { Debug.Assert(antecedent != null); Debug.Assert(callback != null); Debug.Assert(asyncResult != null); // We use OnCompleted rather than ContinueWith in order // to avoid running synchronously if the task has already // completed by the time we get here. This is separated // out into its own method currently so that we only pay // for the closure if necessary.
ise-uiuc/Magicoder-OSS-Instruct-75K
def __next__(self) -> np.ndarray: in_bytes = self.ffmpeg_process.stdout.read(np.prod(self.resolution) * 3) if not in_bytes: raise StopIteration in_frame = np.frombuffer(in_bytes, np.uint8).reshape(3, *self.resolution[::-1]) upper_part = in_frame[2, :, :] lower_coding = in_frame[0, :, :] upper_isodd = (upper_part & 1) == 1 lower_part = lower_coding.copy() lower_part[upper_isodd] = 255 - lower_part[upper_isodd] frame = lower_part.astype(np.uint16) + (upper_part.astype(np.uint16) << 8) return frame
ise-uiuc/Magicoder-OSS-Instruct-75K
for value in data.split('\n'): if value: self.indentation() self.output += '| ' self.output += value self.output += '\n' def handle_comment(self, data): data = data.replace('\r\n', '\n').replace('\r', '\n').strip() for value in data.split('\n'): if value: self.indentation() self.output += '//- '
ise-uiuc/Magicoder-OSS-Instruct-75K
a = input() a = a.replace('--', '2') a = a.replace('-.', '1') a = a.replace('.', '0') print(a)  
ise-uiuc/Magicoder-OSS-Instruct-75K
self._phase_t = phase_t @classmethod def from_dict(cls, dikt) -> 'LinecodeRMatrix': """Returns the dict as a model :param dikt: A dict. :type: dict :return: The Linecode_R_Matrix of this LinecodeRMatrix. # noqa: E501 :rtype: LinecodeRMatrix
ise-uiuc/Magicoder-OSS-Instruct-75K
from CCSAmongUs import routes
ise-uiuc/Magicoder-OSS-Instruct-75K
export * from './Breadcrumbs' export * from './Breadcrumb'
ise-uiuc/Magicoder-OSS-Instruct-75K
// cerr << x << " " << y << " " << z << endl; } cerr << "Got " << result.size().height << " rows" << endl; infile.close(); return result; } void PointCloud::writePLY(string path, cv::Mat ply) {
ise-uiuc/Magicoder-OSS-Instruct-75K
return nil } self.displayUrl = displayUrl self.expandedUrl = expandedUrl self.idStr = idStr self.indicies = indicies self.mediaUrl = mediaUrl self.mediaUrlHttps = mediaUrlHttps self.sizes = sizes self.sourceStatusId = sourceStatusId self.sourceStatusIdStr = sourceStatusIdStr
ise-uiuc/Magicoder-OSS-Instruct-75K