seed
stringlengths
1
14k
source
stringclasses
2 values
if not query.strip(): raise Exception("No search term") response = requests.get(CROSSREF_URL.format(rows=5, query=query)) res = response.json() if res['message']['items'][0]['score'] > 1:
ise-uiuc/Magicoder-OSS-Instruct-75K
public static final String USER = "user"; public static final String PRIVILEGE = "privilege"; public static final String ROLE = "role"; }
ise-uiuc/Magicoder-OSS-Instruct-75K
minimum: number; maximum?: number; }
ise-uiuc/Magicoder-OSS-Instruct-75K
class AirmarInputThread(Thread): """A separate thread to manage reading the airmar inputs.""" def __init__(self, mock_bbio=None, mock_port=None, broadcaster_type=None, filename=None): """Builds a new airmar input thread."""
ise-uiuc/Magicoder-OSS-Instruct-75K
self.autoScaleFormula = try container.decode(String.self, forKey: .autoScaleFormula) if var pageDecoder = decoder as? PageDecoder { if pageDecoder.isPagedData, let nextLinkName = pageDecoder.nextLinkName { pageDecoder.nextLink = try UnknownCodingKey.decodeStringForKey(decoder: decoder, keyForDecode: nextLinkName) } } } public func encode(to encoder: Encoder) throws {
ise-uiuc/Magicoder-OSS-Instruct-75K
/* * Copyright information and license terms for this software can be * found in the file LICENSE.TXT included with the distribution. */ package org.epics.util.array; /** * An iterator of {@code double}s. * */
ise-uiuc/Magicoder-OSS-Instruct-75K
@classmethod def setUpClass(cls): print('Start to test module *pltStock* in subpackage 2') @classmethod def tearDownClass(cls): print('Stop to test module *pltStock* in subpackage 2') def test_readData(self): self.assertIsNotNone(self.data) self.assertIn('Open', self.stockInfo) self.assertIn('High', self.stockInfo)
ise-uiuc/Magicoder-OSS-Instruct-75K
# import primal_infeasibility.generate_problem
ise-uiuc/Magicoder-OSS-Instruct-75K
self.a = 5 self._b = 5 self._c = 5 self._d = 5 @property def b(self): pass
ise-uiuc/Magicoder-OSS-Instruct-75K
title: str = None instruction: str = None instruction_html: str = None short_description: str = None description: str = None img: str = None tag: str = None price: int = None
ise-uiuc/Magicoder-OSS-Instruct-75K
} export default Forces
ise-uiuc/Magicoder-OSS-Instruct-75K
url='https://github.com/python-social-auth/social-app-django', packages=['es_array_logger'], long_description=long_description(), # long_description_content_type='text/markdown', install_requires=load_requirements(), classifiers=[ 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3'
ise-uiuc/Magicoder-OSS-Instruct-75K
@staticmethod def id(token: str): """ Returns the id or None :param token: :return: """ res = BlizzardUsersUtils.validate(token) return int(res['user_name']) if 'user_name' in res else None
ise-uiuc/Magicoder-OSS-Instruct-75K
sqlalchemy.Integer, primary_key=True, autoincrement=True )
ise-uiuc/Magicoder-OSS-Instruct-75K
case 'o': case 'O': ++oCnt; break; case 'e': case 'E': ++eCnt; break; case 'i': case 'I': ++iCnt;
ise-uiuc/Magicoder-OSS-Instruct-75K
public int getBalance(); /** * Let's call our employees who upload some cassets into the ATM
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>deploy/run_update_db.sh
ise-uiuc/Magicoder-OSS-Instruct-75K
"Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Multimedia :: Graphics", "Topic :: Software Development :: Testing :: Mocking", ], )
ise-uiuc/Magicoder-OSS-Instruct-75K
def parse(self, parser): # the first token is the token that started the tag. In our case # we only listen to ``'cache'`` so this will be a name token with # `cache` as value. We get the line number so that we can give # that line number to the nodes we create by hand. lineno = next(parser.stream).lineno
ise-uiuc/Magicoder-OSS-Instruct-75K
relocate = self.state.relocator.getRelocations(GVT, activities, horizon) relocate = {key: relocate[key] for key in relocate if self.state.model_ids[key].location != relocate[key] and self.state.model_ids[key].relocatable} if not relocate: self.state.run_GVT = 1.0
ise-uiuc/Magicoder-OSS-Instruct-75K
filtexpr = arg try: if not packname: if setexpr and os.path.exists(setexpr) and not os.path.isfile(setexpr): packname = os.path.basename(setexpr) if not packname: packname = os.path.basename(os.path.dirname(setexpr)) else: raise Exception('No pack name specified!') print(setexpr) pack(packname, filtexpr, setexpr, packall) except Exception as e:
ise-uiuc/Magicoder-OSS-Instruct-75K
class MonthlySalaryTable extends Migration { /** * Run the migrations. * * @return void */ public function up() {
ise-uiuc/Magicoder-OSS-Instruct-75K
class UserRegisterSerializer(serializers.ModelSerializer): """用于用户注册""" # TODO # 验证码问题
ise-uiuc/Magicoder-OSS-Instruct-75K
//delete the job here currentJob = nullptr; //takin next item in the queue if(jobsQueue.size() > 0) { currentJob = jobsQueue.front(); jobsQueue.pop(); } } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>LoRaMoistureMeter/buildAPP.sh #!/bin/sh set -eu # BUILD DIRECTORY (current dir) # binary files can be found ing: build.esp32 # CREATE THE CMAKE CACHE IN BUILD DIRECTORY (CONFIGRE AND GENERATE) cmake . # BUILD USING A CMAKE CUSTOM COMMAND cmake --build . --target AppBuild
ise-uiuc/Magicoder-OSS-Instruct-75K
<property-types :property-type-collection="{{ $propertyTypes }}"></property-types> @endsection
ise-uiuc/Magicoder-OSS-Instruct-75K
use super::{mean_shell_spawning_time, relative_speed, result::BenchmarkResult, run_benchmark}; use anyhow::{bail, Result};
ise-uiuc/Magicoder-OSS-Instruct-75K
mu2) device=/dev/sda1
ise-uiuc/Magicoder-OSS-Instruct-75K
con = initialize_db() cur = con.cursor(cursor_factory=RealDictCursor) class User(object): table = 'users' """ Model class for the user object """
ise-uiuc/Magicoder-OSS-Instruct-75K
$router->get($baseRoute . '/cancel', 'BillingController@cancel')->name('billing-cancel'); $router->get($baseRoute . '/resume', 'BillingController@resume')->name('billing-resume'); });
ise-uiuc/Magicoder-OSS-Instruct-75K
img1 = np.expand_dims(img1, axis=0) result=model.predict_classes(img1) plt.title(result[0]) plt.show() image_path="all.jpg"
ise-uiuc/Magicoder-OSS-Instruct-75K
"Show desktop": "", "Open run dialog": "", "Open task manager": "", "Open start menu": "", "Open search menu": "", "Change task": "", "Change the action done when the clock is clicked": "",
ise-uiuc/Magicoder-OSS-Instruct-75K
'retry_on_false': False, 'allowed_exceptions': (Exception, ), 'should_retry_cb': None, 'log_level': logging.INFO, 'max_attempts': None }
ise-uiuc/Magicoder-OSS-Instruct-75K
return fig
ise-uiuc/Magicoder-OSS-Instruct-75K
public function getAttributes($ids); }
ise-uiuc/Magicoder-OSS-Instruct-75K
) @pytest.fixture def int_return_function(): return Function( 'function', 'int', [], 'int function () { return 1; }' )
ise-uiuc/Magicoder-OSS-Instruct-75K
AutumnSimplified, Formula33, Formula33Cn4, Formula33Cn3, Formula33Cn2, } }
ise-uiuc/Magicoder-OSS-Instruct-75K
del self.variables[_variable]
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_iterators_only(): args, kwargs = prepare_arguments(([1, 2],), {}) assert args == [[1], [2]] assert kwargs == [{}, {}] args, kwargs = prepare_arguments(([1, 2],), {"a": [3, 4]}) assert args == [[1], [2]]
ise-uiuc/Magicoder-OSS-Instruct-75K
*/ public class RandomizeArray { /** * * @param args */ public static void main(String[] args) {
ise-uiuc/Magicoder-OSS-Instruct-75K
// set up our request var request = URLRequest(url: serverURLGuard.appendingPathComponent("rest/registry/device")) request.setValue("application/json", forHTTPHeaderField: "Content-Type") request.httpMethod = "POST"
ise-uiuc/Magicoder-OSS-Instruct-75K
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage( "Style", "IDE1006:Naming Styles", Justification = "Tests have a different naming convention" )]
ise-uiuc/Magicoder-OSS-Instruct-75K
var defaultValue = true; _logger.LogInformation("Car {carId}: {variable} is not set, use default value {defaultValue}", car.Id, nameof(car.CarConfiguration.ShouldBeManaged), defaultValue); car.CarConfiguration.ShouldBeManaged = defaultValue; } } _logger.LogDebug("All unset car configurations set."); } internal void RemoveOldCars(List<Car> cars, List<int> stillExistingCarIds) { var carsIdsToRemove = cars .Where(c => !stillExistingCarIds.Any(i => c.Id == i)) .Select(c => c.Id) .ToList(); foreach (var carId in carsIdsToRemove)
ise-uiuc/Magicoder-OSS-Instruct-75K
A_red[i][j] = False return A_red #test case #A = np.array([[1,0,0,0],[1,1,0,0],[1,0,1,0],[1,0,1,1]]) #print(transitive_reduce(A))
ise-uiuc/Magicoder-OSS-Instruct-75K
} // Gets the entry with the specified id public function getEntryByID($id) { $this->id = $id; $sql = 'SELECT * FROM rm_vmovie WHERE id = ?'; $res = $this->db->ExecuteSelectQueryAndFetchAll($sql, array($this->id));
ise-uiuc/Magicoder-OSS-Instruct-75K
def _supports_xhtml(request):
ise-uiuc/Magicoder-OSS-Instruct-75K
export const ExpressionList: ExpressionList; export const ExpressionOptions: ExpressionOptions;
ise-uiuc/Magicoder-OSS-Instruct-75K
let missing = findMissingNumber(test.numbers) guard missing == nil && test.missing == nil || missing! == test.missing! else { print("For test numbers \(test.numbers), " + "expected missing to be \(String(describing: test.missing)), but was \(String(describing: missing))") exit(1) } }
ise-uiuc/Magicoder-OSS-Instruct-75K
raise ValueError("This version of runtime is no longer supported!") @staticmethod def light(major: str, feature: str, scala_version: str = "2.11"): return f"apache-spark.{major}.{feature}.x-scala{scala_version}"
ise-uiuc/Magicoder-OSS-Instruct-75K
from . import common from cubi_tk.exceptions import ParseOutputException def run( args, _parser: argparse.ArgumentParser, _subparser: argparse.ArgumentParser
ise-uiuc/Magicoder-OSS-Instruct-75K
import db import match_making import players import slack import datetime
ise-uiuc/Magicoder-OSS-Instruct-75K
app::run(); }
ise-uiuc/Magicoder-OSS-Instruct-75K
import { BaseDataSource,
ise-uiuc/Magicoder-OSS-Instruct-75K
final=final+"\n Looks like there is a stack overflow vulnerability." else: final="Seems no overflow vulnerability." self.toolbox.textupdate(self.tokentext,final)
ise-uiuc/Magicoder-OSS-Instruct-75K
def testBuilder2(self): b = simple.Builder() predict,assign,weighted,hasWord,posPair,negPair = b.predicates("predict assign weighted hasWord posPair negPair") X,Pos,Neg,F,W = b.variables("X Pos Neg F W") b += predict(X,Pos) <= assign(Pos,'pos','label') // (weighted(F) | hasWord(X,W) & posPair(W,F)) b += predict(X,Neg) <= assign(Neg,'neg','label') // (weighted(F) | hasWord(X,W) & negPair(W,F)) dbSpec = os.path.join(testtensorlog.TEST_DATA_DIR,"textcattoy3.cfacts") self.runTextCatLearner(simple.Compiler(db=dbSpec,prog=b.rules)) def testBuilder3(self): b = simple.Builder() predict,assign,weighted,hasWord,posPair,negPair,label = b.predicates("predict assign weighted hasWord posPair negPair label") doc_t,label_t,word_t,labelWordPair_t = b.types("doc_t label_t word_t labelWordPair_t")
ise-uiuc/Magicoder-OSS-Instruct-75K
return value.replace("'", "&#39;") return value
ise-uiuc/Magicoder-OSS-Instruct-75K
export { Session } from './session'; export { SessionOptions } from './session-options'; export { SessionPlugin } from './session-plugin'; export { SessionState } from './session-state'; export { Feature } from './feature'; export { Dataset } from './dataset'; export { Algorithm } from './algorithm'; export { AlgorithmTracker } from './algorithm-tracker'; export { TrackerVariable } from './tracker-variable'; export { Iteration } from './iteration'; export { TestReport } from './test-report';
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>xmipy/__init__.py # imports from xmipy.xmi import Xmi as Xmi from xmipy.xmiwrapper import XmiWrapper as XmiWrapper __version__ = "1.1"
ise-uiuc/Magicoder-OSS-Instruct-75K
DEFAULT_LIST = ["chromedriver.exe"]
ise-uiuc/Magicoder-OSS-Instruct-75K
}).1 })
ise-uiuc/Magicoder-OSS-Instruct-75K
(4, 0), (4, 1), (4, 2), (4, 3)] for i in names: button = QtGui.QPushButton(i) if j == 2: grid.addWidget(QtGui.QLabel(''), 0, 2) else: grid.addWidget(button, pos[j][0], pos[j][1])
ise-uiuc/Magicoder-OSS-Instruct-75K
def call_webhook(self, method, code, params=None): """ Call a simplified version of rest-events and rest-teams that does not require a program to write. https://www.bitrix24.com/apps/webhooks.php :param method: :param code: :param params: :return: dict Decoded response text """ endpoint = self._resolve_webhook_endpoint(code)
ise-uiuc/Magicoder-OSS-Instruct-75K
let (file_meta, info_hash) = parse_file(&torrent_file_path); lock_details.info_hash = Some(info_hash); lock_details.piece_length = file_meta.info.piece_length; // Prints the time take to parse the torrent file println!( "Parsed torrent file : \"{}\" ----- [Time taken : {:?}]", &torrent_file_path,
ise-uiuc/Magicoder-OSS-Instruct-75K
DeviceNamePolicyHandler::~DeviceNamePolicyHandler() = default; void DeviceNamePolicyHandler::AddObserver(Observer* observer) { observer_list_.AddObserver(observer); } void DeviceNamePolicyHandler::RemoveObserver(Observer* observer) { observer_list_.RemoveObserver(observer); }
ise-uiuc/Magicoder-OSS-Instruct-75K
remove_invisible=True))
ise-uiuc/Magicoder-OSS-Instruct-75K
h3 = pd.to_numeric(h3, errors='coerce') tuples = list(zip(h1, h2, h3)) df.columns = pd.MultiIndex.from_tuples(tuples, names=['l0', 'l1', 'l2']) return df def read_aeronet_ocv3(self, file, skiprows=8): ''' Read and format in pandas data.frame the standard AERONET-OC data ''' self.file = file dateparse = lambda x: pd.datetime.strptime(x, "%d:%m:%Y %H:%M:%S") ifile = self.file h1 = pd.read_csv(ifile, skiprows=skiprows - 1, nrows=1).columns[3:]
ise-uiuc/Magicoder-OSS-Instruct-75K
if len(setgenes) >= effect_min_size:
ise-uiuc/Magicoder-OSS-Instruct-75K
use anyhow::{anyhow, Context}; use clippy_utilities::Cast; use nix::{ fcntl::{self, FcntlArg, FdFlag, OFlag}, ioctl_read, sys::stat::Mode, unistd::close, }; use std::os::unix::io::RawFd; use super::session::Session; /// FUSE channel #[derive(Debug)]
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>src/services/adwords/CustomerSyncService/CheckEntities.ts export interface ICheckEntities { all: boolean; campaignIds?: string[]; feedIds?: string[];
ise-uiuc/Magicoder-OSS-Instruct-75K
Headers = envelope.Headers.ToDictionary(), SentAt = DateTime.UtcNow, Destination = envelope.Destination, Queue = uri.QueueName }; message.TranslateHeaders(); _context.Send(message); } public bool SupportsSend { get; } = true; }
ise-uiuc/Magicoder-OSS-Instruct-75K
import heapq import collections def merge_k_lists(lists: List[ListNode]) -> ListNode: ans = ListNode(0) mapper = collections.defaultdict(list) store = list() heapq.heapify(store)
ise-uiuc/Magicoder-OSS-Instruct-75K
Notes ----- Main-Keywords (#): - COMPONENT_PROPERTIES Sub-Keywords ($) per Main-Keyword: - COMPONENT_PROPERTIES
ise-uiuc/Magicoder-OSS-Instruct-75K
cout << r1/r2 << "==" << to_double(r1/r2) << "==" << to_double(r1)/to_double(r2) << '\n'; if (r2==Rational(14,8)) cout << "equal\n"; if (r2!=Rational(14,8)) cout << "not equal\n"; Rational(3,0); // we're out of here! keep_window_open("~"); // For some Windows(tm) setups } catch (runtime_error e) { // this code is to produce error messages; it will be described in Chapter 5 cout << e.what() << '\n';
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>0 default_app_config = 'pufsim.apps.CustomConfig'
ise-uiuc/Magicoder-OSS-Instruct-75K
dbs, mes, ): """Generate a graph.""" if no_input and not no_download and not no_create: click.secho( "Graph Creation: downloading graph files and creating the graph without creating in_files is not possible", fg="red", ) sys.exit(-1) create_graph( directed=not undirected,
ise-uiuc/Magicoder-OSS-Instruct-75K
import argparse import numpy as np import pandas as pd import sklearn.metrics import sklearn.metrics parser = argparse.ArgumentParser(description='')
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace WagahighChoices.Kaoruko.GrpcServer { internal class GrpcAsheServer : WhcGrpcServer { private readonly DatabaseActivator _databaseActivator; private readonly bool _isScreenshotEnabled;
ise-uiuc/Magicoder-OSS-Instruct-75K
DelayForVideo();
ise-uiuc/Magicoder-OSS-Instruct-75K
x=50 while x<=100: print(x) x=x+1
ise-uiuc/Magicoder-OSS-Instruct-75K
self.connection.rollback() with open("log.txt", 'a') as log_file: log_file.writelines(str(e)) # Copy files to database # 将csv文件导入数据库 def import_site(self, filepath): with open(filepath,'r') as file: for site in file.readlines(): id = site.split('\t')[0]
ise-uiuc/Magicoder-OSS-Instruct-75K
prometheus_pushgateway_url = sys.argv[2] artifact_id = sys.argv[3] flow_file_loc = nifi_api_url + '/flow/templates' alert_name = artifact_id + 'CheckTemplate' def flow_files_queue():
ise-uiuc/Magicoder-OSS-Instruct-75K
import World from '../../components/World' const engineInitializeOptions: InitializeOptions = {} const LocationPage = (props) => { // Disable networking if no location is provided if (!props.match.params.locationName) { engineInitializeOptions.networking = { schema: DefaultNetworkSchema } } return ( <World allowDebug={true} locationName={props.match.params.locationName}
ise-uiuc/Magicoder-OSS-Instruct-75K
else if [ $# -gt 1 ] && [ x$2 = xcanonical ]; then new_host_name=`sed -n -e "s/$1[ ]*name *= *\(.*\)/\1/p" \ </tmp/nslookup.$$` else new_host_name=$1 fi fi rm /tmp/nslookup.$$ fi if [ x$new_host_name != x ]; then hostname $new_host_name fi
ise-uiuc/Magicoder-OSS-Instruct-75K
let dev = ns .root() .lookup_child(&current_task, &mut context, b"dev") .expect("failed to lookup dev"); dev.mount(WhatToMount::Fs(dev_fs), MountFlags::empty()) .expect("failed to mount dev root node"); let mut context = LookupContext::default(); let dev = ns .root() .lookup_child(&current_task, &mut context, b"dev") .expect("failed to lookup dev"); let mut context = LookupContext::default(); let pts = dev.lookup_child(&current_task, &mut context, b"pts").expect("failed to lookup pts");
ise-uiuc/Magicoder-OSS-Instruct-75K
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN); }else{ Intent goTosecondPage = new Intent(this, RestaurantActivity.class); goTosecondPage.putExtra("UserId",retValue); startActivity(goTosecondPage); finish(); overridePendingTransition(R.anim.push_left_in, R.anim.push_left_out);
ise-uiuc/Magicoder-OSS-Instruct-75K
provide: 'USER_REPOSITORY', useFactory: (connection: Connection) => connection.getRepository(User), inject: ['DATABASE_CONNECTION'], }, { provide: 'PROJECT_REPOSITORY', useFactory: (connection: Connection) => connection.getRepository(Project), inject: ['DATABASE_CONNECTION'], } ];
ise-uiuc/Magicoder-OSS-Instruct-75K
# LICENSE file in the root directory of this source tree. from typing import Optional from parlai.core.params import ParlaiParser from parlai.core.opt import Opt import os import copy from parlai.core.teachers import ParlAIDialogTeacher from .build import build
ise-uiuc/Magicoder-OSS-Instruct-75K
it("should update the view") {
ise-uiuc/Magicoder-OSS-Instruct-75K
{ if (await _log.Count() > 0) { var lastLogIndex = await _log.LastLogIndex(); _logger.LogInformation($"lastLogIndex: {lastLogIndex}"); _logger.LogInformation($"nextIndex.NextLogIndexToSendToPeer: {nextIndex.NextLogIndexToSendToPeer}"); if (lastLogIndex >= nextIndex.NextLogIndexToSendToPeer) { var logs = await _log.GetFrom(nextIndex.NextLogIndexToSendToPeer);
ise-uiuc/Magicoder-OSS-Instruct-75K
from pathlib import Path PROJECT_ROOT_DIR = Path(__file__).parent if __name__ == "__main__":
ise-uiuc/Magicoder-OSS-Instruct-75K
git commit -m 'initial commit' git remote add origin https://github.com/Albert-W/cool-panda.git git push origin gh-pages git commit -m 'description'
ise-uiuc/Magicoder-OSS-Instruct-75K
class TicTacToeBoard(AbstractBoard): def __init__(self, size): self.height = self.width = size self.board = [[Cell(j, i) for i in range(size)] for j in range(size)]
ise-uiuc/Magicoder-OSS-Instruct-75K
def delete_gateways(): try: manager.delete_device( service_account_json, project_id, cloud_region, test_registry_id, gateway_id) except NotFound as e: # We ignore this case.
ise-uiuc/Magicoder-OSS-Instruct-75K
$_MODULE['<{tmproductvideos}prestashop>tmproductvideos_tab_4dadf0610dad76e24e7e60d7a26a319b'] = 'No se puede administrar elementos de vídeo desde \\\"Todas las Tiendas\\\" o un \\\"Grupo de Tiendas\\\", elija la tienda que desea editar'; $_MODULE['<{tmproductvideos}prestashop>tmproductvideos_tab_53d56631138f8993a81069e5f6911729'] = 'Cabecera del vídeo'; $_MODULE['<{tmproductvideos}prestashop>tmproductvideos_tab_a0ef73a7aaed7c4465f3eb83d269ac39'] = 'Descripción del vídeo'; $_MODULE['<{tmproductvideos}prestashop>tmproductvideos_tab_8709f470ebafd501dd8b1cb0a9c6f0a3'] = 'Descripción del vídeo'; $_MODULE['<{tmproductvideos}prestashop>tmproductvideos_tab_6dd91c1c2c3cfa2bd6c7d18c2cedd286'] = 'Lista del vídeos'; $_MODULE['<{tmproductvideos}prestashop>tmproductvideos_tab_973cfc5278acccab68dcc4025776d76f'] = 'Actualizar vídeo'; $_MODULE['<{tmproductvideos}prestashop>tmproductvideos_tab_4aaf6f6527059065878a4e16031459a7'] = 'Eliminar vídeo'; $_MODULE['<{tmproductvideos}prestashop>tmproductvideos_tab_ea4788705e6873b424c65e91c2846b19'] = 'Cancelar'; $_MODULE['<{tmproductvideos}prestashop>tmproductvideos_tab_c9cc8cce247e49bae79f15173ce97354'] = 'Guardar'; $_MODULE['<{tmproductvideos}prestashop>tmproductvideos_tab_9ea67be453eaccf020697b4654fc021a'] = 'Aplicar'; $_MODULE['<{tmproductvideos}prestashop>tmproductvideos_554cfab3938e21d9270bd6b75931f96f'] = 'Vídeos'; $_MODULE['<{tmproductvideos}prestashop>tmproductvideos_34e2d1989a1dbf75cd631596133ee5ee'] = 'Vídeo';
ise-uiuc/Magicoder-OSS-Instruct-75K
for k_2, v_2 in result.items(): combined_key = f"{k_1}.{k_2}" new_dict[combined_key] = v_2
ise-uiuc/Magicoder-OSS-Instruct-75K
RendererAPI Renderer::s_RendererAPI = RendererAPI::OpenGL; }
ise-uiuc/Magicoder-OSS-Instruct-75K
with self.assertRaises(CharacterNotAllowed): Ean13(wrong_code, checksum) def test_wrong_length_raises_error(self): # Smaller for i in range(1, 12): for checksum in (True, False): with self.assertRaises(BadCodeLength): Ean13('0' * i, checksum) # Smaller when checksum is True with self.assertRaises(BadCodeLength):
ise-uiuc/Magicoder-OSS-Instruct-75K
from apps.home.models import Image # Register your models here. admin.site.register(Image)
ise-uiuc/Magicoder-OSS-Instruct-75K
return result def scale(root_note, scale_mode, num_octaves=1): """Genarates a liste of notes of scale :param root_note: :param scale_mode: :param num_octaves: :return: list """ result = [] n = root_note
ise-uiuc/Magicoder-OSS-Instruct-75K
class bearclass(type): """ Metaclass for :class:`coalib.bears.Bear.Bear` and therefore all bear classes. Pushing bears into the future... ;) """
ise-uiuc/Magicoder-OSS-Instruct-75K