seed
stringlengths
1
14k
source
stringclasses
2 values
if [[ "${service}" == "" && "${pattern}" == "" ]] ; then DEV_DEPS_LIST=$(npm list -dev -depth 0 2>/dev/null || true) PROD_DEPS_LIST=$(npm list -prod -depth 0 2>/dev/null || true) for i in "${!SERVICES[@]}" ; do PACKAGE=${SERVICES[i]}
ise-uiuc/Magicoder-OSS-Instruct-75K
test_cases = [ # Simple, same size all the way through. ((64, 64, 2), [2, 2, 2, 2, 2, 2]), ((64, 64, 4), [4, 4, 4]), # Varying group sizes (channels aren't powers of two). ((36, 36, 2), [2, 2, 3, 3]), ((36, 36, 3), [3, 3, 4]), ((36, 36, 4), [6, 6]), # [4,9] also works but costs more (12 vs 13) # More outputs than inputs. # First butterfly connects groups of 2 inputs to 8 outputs.
ise-uiuc/Magicoder-OSS-Instruct-75K
from ipaddress import (IPv4Address, IPv4Network, IPv6Address, IPv6Network, ip_address, ip_network) from .exceptions import IncorrectIPCount, UntrustedIP
ise-uiuc/Magicoder-OSS-Instruct-75K
from snosearch.responses import BasicQueryResponseWithFacets from snosearch.responses import BasicMatrixResponseWithFacets class CartQueryResponseWithFacets(CartAggsToFacetsMixin, BasicQueryResponseWithFacets): ''' Like BasicQueryResponseWithFacets but uses CartAggsToFacetsMixin instead of AggsToFacetsMixin. ''' def __init__(self, results, query_builder, *args, **kwargs): super().__init__(results, query_builder, *args, **kwargs) class CartMatrixResponseWithFacets(CartAggsToFacetsMixin, BasicMatrixResponseWithFacets):
ise-uiuc/Magicoder-OSS-Instruct-75K
lazy var belgiumChip: XCUIElement = {
ise-uiuc/Magicoder-OSS-Instruct-75K
plt.title(r"Likelihood distribution: $p(X|\mu=%g, \sigma=\sqrt{\beta^{-1}})$" % mu) # ====== plotting the posterior ====== # # the posterior probability, this is only
ise-uiuc/Magicoder-OSS-Instruct-75K
int main() { char numberN[1500], numberM[1500]; scanf("%s%s", numberN, numberM); int n = strlen(numberN), m = strlen(numberM);
ise-uiuc/Magicoder-OSS-Instruct-75K
if (issueSingleOperation == null) { throwUnsupportedOperation("IssueSingle"); } return issueSingleOperation.issueSingle(request, getPrincipal(), getMessageContext()); } public RequestSecurityTokenResponseType cancel( RequestSecurityTokenType request) { if (cancelOperation == null) { throwUnsupportedOperation("Cancel"); } return cancelOperation.cancel(request, getPrincipal(), getMessageContext()); } public RequestSecurityTokenResponseType renew(
ise-uiuc/Magicoder-OSS-Instruct-75K
} impl Default for Data { fn default() -> Self { Self { status: Lazy::new(_NOT_ENTERED), key: ink_primitives::Key::default(), } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
printf("set_font failed, line=%d\n", __LINE__); }
ise-uiuc/Magicoder-OSS-Instruct-75K
try( final Transaction tx = App.getDatabase().beginTx()) {
ise-uiuc/Magicoder-OSS-Instruct-75K
from .DocumentInfo import DocumentInfo
ise-uiuc/Magicoder-OSS-Instruct-75K
inputs: &inputs, commandLine: &commandLine) } /// Store the output file artifacts for a given module in a JSON file, return the file's path. private func serializeModuleDependencies(for moduleId: ModuleDependencyId, dependencyArtifacts: [SwiftModuleArtifactInfo] ) throws -> VirtualPath { let encoder = JSONEncoder() encoder.outputFormatting = [.prettyPrinted]
ise-uiuc/Magicoder-OSS-Instruct-75K
} } when(stub).didReceiveConfirmation(viewModel: any()).then { _ in rewardDestinationExpectation.fulfill() } } presenter.setup() // then
ise-uiuc/Magicoder-OSS-Instruct-75K
# TODO: setup functions for other user options task = self.prompt.input('NOTUI_WELCOME') if task.isdigit(): if int(task) == 1:
ise-uiuc/Magicoder-OSS-Instruct-75K
('home_win__full_time_goals', lambda outputs: HOME_WIN(outputs, 'home_team__full_time_goals', 'away_team__full_time_goals', 0.0)), ('away_win__full_time_goals', lambda outputs: AWAY_WIN(outputs, 'home_team__full_time_goals', 'away_team__full_time_goals', 0.0)), ('draw__full_time_goals', lambda outputs: DRAW(outputs, 'home_team__full_time_goals', 'away_team__full_time_goals', 0.0)), ('over_1.5__full_time_goals', lambda outputs: OVER(outputs, 'home_team__full_time_goals', 'away_team__full_time_goals', 1.5)), ('over_2.5__full_time_goals', lambda outputs: OVER(outputs, 'home_team__full_time_goals', 'away_team__full_time_goals', 2.5)),
ise-uiuc/Magicoder-OSS-Instruct-75K
pais_B = pais_B + ((pais_B * cresc_B) / 100)
ise-uiuc/Magicoder-OSS-Instruct-75K
if verbose: print(f'Removing {local_file}') if path.is_file(): path.unlink(missing_ok=True) removed_paths.add(local_file) elif path.is_dir():
ise-uiuc/Magicoder-OSS-Instruct-75K
// Show product edit page. @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { Connection conn = MyUtils.getStoredConnection(request); String code = (String) request.getParameter("code"); Product product = null;
ise-uiuc/Magicoder-OSS-Instruct-75K
} public QueryContext Select() {
ise-uiuc/Magicoder-OSS-Instruct-75K
{ public String Token { get; set; } public String TokenSecret { get; set; }
ise-uiuc/Magicoder-OSS-Instruct-75K
// Copyright © 2017 Roster. All rights reserved. // import WatchKit class InterfaceController: WKInterfaceController { @IBOutlet var spriteKitScene: WKInterfaceSKScene! override func awake(withContext context: Any?) {
ise-uiuc/Magicoder-OSS-Instruct-75K
configFlags += ['--with-intl=small-icu'] zipBasenameSuffix += '-smallicu'
ise-uiuc/Magicoder-OSS-Instruct-75K
{ /// Properties public int Id { get; set; } public string Name { get; set; } public string Description { get; set; } public DateTime CreatedAt { get; set; } /// Constructor
ise-uiuc/Magicoder-OSS-Instruct-75K
package io.github.phantamanta44.libnine.component.multiblock; import io.github.phantamanta44.libnine.util.world.WorldBlockPos; public interface IMultiBlockUnit<T extends IMultiBlockUnit<T>> { MultiBlockType<T> getMultiBlockType(); MultiBlockConnectable<T> getMultiBlockConnection(); WorldBlockPos getWorldPos();
ise-uiuc/Magicoder-OSS-Instruct-75K
""" Adtran OLT specific implementation
ise-uiuc/Magicoder-OSS-Instruct-75K
model.load_state_dict(torch.load(eval_checkpoint_path)) print('model loaded from ', eval_checkpoint_path) # +) eval eval_output_path = '{}/{}.result'.format(model_save_path, str(args.eval_num_checkpoint)) evaluate(eval_dataset, eval_loader, model, device, eval_output_path)
ise-uiuc/Magicoder-OSS-Instruct-75K
rootNode=None return temp if rootNode.rightChild is None: temp=rootNode.leftChild rootNode=None return temp #2 children
ise-uiuc/Magicoder-OSS-Instruct-75K
self.make_port(options=optparse.Values({'configuration': 'Debug' })).timeout_ms(), 5 * self.make_port().timeout_ms()) def make_dcheck_port(self, options): host = MockSystemHost(os_name=self.os_name, os_version=self.os_version) host.filesystem.write_text_file( self.make_port(host)._build_path('args.gn'), 'is_debug=false\ndcheck_always_on = true # comment\n') port = self.make_port(host, options=options) return port
ise-uiuc/Magicoder-OSS-Instruct-75K
def __init__(self, low, high=None): super(IntSampler, self).__init__() if high is None:
ise-uiuc/Magicoder-OSS-Instruct-75K
""" Exceptions for Arequests Created on Tue Nov 13 08:34:14 2018 @author: gfi """ class ArequestsError(Exception): """Basic exception for errors raised by Arequests""" pass
ise-uiuc/Magicoder-OSS-Instruct-75K
} public string Name { get; private set; } public double TotalTime { get; set; }
ise-uiuc/Magicoder-OSS-Instruct-75K
nums.sort() res = [] for i in range(len(nums) - 2): if i > 0 and nums[i - 1] == nums[i]: continue l, r = i + 1, len(nums) - 1 while l < r: s = nums[i] + nums[l] + nums[r] if s == 0:
ise-uiuc/Magicoder-OSS-Instruct-75K
self.mission_setup(mission) self.controller = PositionController(self.simulator.drone, mission.commands, True) def mission_setup(self, planner): import quadrotor.command as cmd # guess what this flightplan will do :)
ise-uiuc/Magicoder-OSS-Instruct-75K
print(key, "=", S[key]) coeffs.append(S[key].subs(dict(α=num_α, β=num_β))) xvals = np.linspace(0, 1, 101) yvals = np.polyval(coeffs, xvals) plt.plot(xvals, yvals) plt.show()
ise-uiuc/Magicoder-OSS-Instruct-75K
ConnectorComplexPhased::Setup { local: Some(local), peer: Some(peer) } => { // complete setup let [putter, getter] = self.connector.new_udp_mediator_component(local, peer).unwrap(); self.connector.connect(None).unwrap();
ise-uiuc/Magicoder-OSS-Instruct-75K
from leaker.attack import PartialUserQueryLogSpace, FullUserQueryLogSpace, Ikk, Countv2, VolAn, SelVolAn, SubgraphID, \ SubgraphVL, Ikkoptimized, PartialQueryLogSpace, FullQueryLogSpace
ise-uiuc/Magicoder-OSS-Instruct-75K
{ return $this-> hasMany(Toppings::class); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
"${CHEF_CONFIG_BASE}/collectd.conf" \ "${CHEF_SSH_USER}@${GCE_INSTANCE}:/tmp/config/collectd.conf" \
ise-uiuc/Magicoder-OSS-Instruct-75K
'host' => 'localhost', 'port' => 61613, 'login' => 'guest', 'password' => '<PASSWORD>', 'vhost' => '/', 'buffer_size' => 1000, 'connection_timeout' => 1, 'sync' => false, 'lazy' => true, 'ssl_on' => false, ]; }
ise-uiuc/Magicoder-OSS-Instruct-75K
longitude = try node.get("longitude") latitude = try node.get("latitude") } }
ise-uiuc/Magicoder-OSS-Instruct-75K
* Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // return PresupuestoUnidad::all(); $user = DB::table('presupuesto_unidads') ->select('id_unidad','presupuesto','gestion','id') ->where('visible','=','1')->get(); return response()->json($user ,201); } public function index22() { // return PresupuestoUnidad::all();
ise-uiuc/Magicoder-OSS-Instruct-75K
#fim das urls para crud de politico ]
ise-uiuc/Magicoder-OSS-Instruct-75K
if self.use_spatial: self.spatial = SpatialExtLinear(lfd_params, is_training=self.spatial_train, filename=self.spatial_filename, input_size=define_model(backbone_id)["bottleneck_size"], consensus="max", reshape_output=True) if self.use_pipeline: self.pipeline = TemporalPipeline(lfd_params, is_training=self.ditrl_pipeline_train, filename=self.pipeline_filename, return_iad=self.return_iad, return_vee=self.return_vee, use_gcn=self.use_gcn)
ise-uiuc/Magicoder-OSS-Instruct-75K
*/ public class FlowMain { public static void main(String[] args) throws Exception { //定义一个发布者,发布数据 //此处使用jdk9自带的,他实现了Publisher接口
ise-uiuc/Magicoder-OSS-Instruct-75K
destroy(resource: T): void; drain(): PromiseLike<undefined>; clear(): PromiseLike<undefined[]>; use<U>(cb: (resource: T) => U): PromiseLike<U>;
ise-uiuc/Magicoder-OSS-Instruct-75K
def game_quit(self, game_obj: object) -> str: """ Method of the Quit page link. """ self.game_page_object = Game_quit(game_obj) self.game_page_object.run_link() def game_pause_menu(self, game_obj: object) -> str: """ Method of the Pause Menu page link. """ self.game_page_object = Game_Pause_Menu(game_obj) self.game_page_object.run_link()
ise-uiuc/Magicoder-OSS-Instruct-75K
def clicou(x,y, botao, pressionado): if pressionado == True: im1 = pyautogui.screenshot() im1.save(f'{datetime.now()}.png') listener = Listener(on_click=clicou) listener.start() listener.join()
ise-uiuc/Magicoder-OSS-Instruct-75K
@pytest.mark.asyncio async def test_get_collection(app_client): """Test read a collection which does not exist""" resp = await app_client.get("/collections/naip") assert resp.status_code == 200
ise-uiuc/Magicoder-OSS-Instruct-75K
EXPECT_TRUE(array[19]); } TEST_F(sieve_of_eratosthenes_tester, tests_checking_prime_numbers) { // when and then EXPECT_FALSE(sieve.is_prime(0)); EXPECT_FALSE(sieve.is_prime(1)); EXPECT_TRUE(sieve.is_prime(2)); EXPECT_TRUE(sieve.is_prime(3)); EXPECT_FALSE(sieve.is_prime(4)); EXPECT_TRUE(sieve.is_prime(5)); EXPECT_FALSE(sieve.is_prime(6));
ise-uiuc/Magicoder-OSS-Instruct-75K
if (isset($_SESSION['uname'])){ $referrer=$_SESSION['uname'] ; } else{
ise-uiuc/Magicoder-OSS-Instruct-75K
'get_website_tag': _l("Website"), } widgets = { 'actions': None, 'name': TEXT, 'phone_number': TEXT, 'website': TEXT, }
ise-uiuc/Magicoder-OSS-Instruct-75K
* @param post * @return */ public int addDiscussPost(DiscussPost post) { if (post == null) { throw new IllegalArgumentException("参数不能为空!"); } // 转义HTML标记 post.setTitle(HtmlUtils.htmlEscape(post.getTitle()));
ise-uiuc/Magicoder-OSS-Instruct-75K
<form role="form" method="POST" action="{{ url('/auth/register') }}" id="form1"> <input type="hidden" name="_token" value="{{ csrf_token() }}"> <input type="hidden" name="countdown" value="{{ old('countdown') }}"> <div class="mt60 mb60"> <dl class="member-common-form clearfix mb20 register_mobile">
ise-uiuc/Magicoder-OSS-Instruct-75K
} public static void showLong(CharSequence text) { Toast.makeText(App.getAppContext(), text, Toast.LENGTH_LONG).show(); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
self.entry_limit_attrs = config.get('entry_limit_attrs') self.logger = logging.getLogger() def produces(self, name_schema_id_list=None): """ Return list of items produced """ return PRODUCES def acquire(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
wkhtmltopdf "$line" "./$foldername/$COUNTER.pdf" PDFString+=" ./$foldername/${COUNTER}.pdf" echo $PDFString done < "$input" echo "Concatenating the PDF files..." pdftk $PDFString cat output ./$foldername/share_schema.pdf
ise-uiuc/Magicoder-OSS-Instruct-75K
__all__ = ["scrape_by_url", "crawl_by_url", "crawl_by_keyword"]
ise-uiuc/Magicoder-OSS-Instruct-75K
import {CurrentViewService} from '../current-view.service'; import {CurrentView} from '../current-view.enum'; import { Message } from '../message'; @Component({
ise-uiuc/Magicoder-OSS-Instruct-75K
public virtual DbSet<Asset> Assets { get; set; }
ise-uiuc/Magicoder-OSS-Instruct-75K
} return $tipo; }) ->rawColumns(['estatus','direccionCompleta','tipo_registro']) ->make(true); return $tabla; } public function reportePorCorteTaxi(Request $request){ dd($request->all()); }
ise-uiuc/Magicoder-OSS-Instruct-75K
qry_cap = "SELECT Numero, Cliente, Usu_Abertura, Usu_Designado, Grupo_Designado, Fluxo, Topico, TRUNCATE(UNIX_TIMESTAMP(CONCAT(Data_AB, ' ',Hora_AB)),0) as Abertura, TRUNCATE(UNIX_TIMESTAMP(CONCAT(Data_BX, ' ',Hora_BX)),0) as BX, TRUNCATE(UNIX_TIMESTAMP(CONCAT(Data_Prox, ' ',Hora_Prox)),0) as Prox, UNIX_TIMESTAMP(Data_ATU) as ATU, UNIX_TIMESTAMP(SLAInicio) as SLAInicio, SLA, SLATipo, Duracao, Situacao, (select Foto from usuarios where usuario=Usu_Abertura) as FotoAbert, (select Foto from usuarios where usuario=Usu_Designado) as FotoDesig from Atendimentos where Situacao != 'F' and Usu_Designado in (select usuario from usuarios where idgrupo={}) ORDER BY Numero ASC;".format(groupid)
ise-uiuc/Magicoder-OSS-Instruct-75K
from flask import Blueprint
ise-uiuc/Magicoder-OSS-Instruct-75K
{ byte[] content = { 1, 2, 3 }; IDataTransferObject dto = new BinaryTransferObject(content); Equal(3L, dto.Length); True(dto.IsReusable); var writer = new ArrayBufferWriter<byte>(); await dto.WriteToAsync(writer); Equal(3, writer.WrittenCount); Equal(content, writer.WrittenSpan.ToArray()); } [Fact] public static async Task MemoryDTO3() { IDataTransferObject dto = new BinaryTransferObject<long> { Content = 42L };
ise-uiuc/Magicoder-OSS-Instruct-75K
for cosmo in folders:
ise-uiuc/Magicoder-OSS-Instruct-75K
disc_interpolates = discriminator(interpolates) gradients = torch.autograd.grad(outputs=disc_interpolates, inputs=interpolates, grad_outputs=torch.ones(disc_interpolates.size()).to(device), create_graph=True, retain_graph=True, only_inputs=True)[0] gradient_penalty = ((gradients.norm(2) - 1) ** 2) * gamma return gradient_penalty
ise-uiuc/Magicoder-OSS-Instruct-75K
private heroesService: HeroesService, private message: NzMessageService, private store: Store<SimulatorState>, private route: ActivatedRoute, private router: Router, private bitlyService: BitlyService, private clipboardService: ClipboardService, private notification: NzNotificationService ) { }
ise-uiuc/Magicoder-OSS-Instruct-75K
rm -rf build dist || true python -m build python -m twine upload 'dist/*' git restore src/datahub/__init__.py
ise-uiuc/Magicoder-OSS-Instruct-75K
return round(((-243.5 * l_v) / (l_v - 17.67)), 3) except: return None return None # ------------------------------------------------------------------------------- @staticmethod def airDensity(*, datas): """ kg/m3 """ try: l_temp = float(datas['temperature']) l_humi = float(datas['humidity'])
ise-uiuc/Magicoder-OSS-Instruct-75K
label = label.replace(matches[0], '(Times Lower Ref.)'); } break; case YAxisOptions.TIMES_UPPER_REF_VALUE: if (!matches) { label += ' (Times Upper Ref.)';
ise-uiuc/Magicoder-OSS-Instruct-75K
""" Container for multiple classes, instantiates a TClassBox for every class """
ise-uiuc/Magicoder-OSS-Instruct-75K
cursor.execute(query_ppn)
ise-uiuc/Magicoder-OSS-Instruct-75K
#[macro_use] extern crate lazy_static; extern crate num; #[macro_use] extern crate regex; extern crate smallvec; extern crate string_cache;
ise-uiuc/Magicoder-OSS-Instruct-75K
public function index() { $nd = Order::select('*')->where('status',0)->paginate(50); $d = Order::select('*')->orderby('created_at', 'desc')->paginate(8); $p = Product::select('*')->orderby('created_at', 'desc')->paginate(8); return view('admin.dashboard', compact('nd','d','p')); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_import(): from mastojeppetto import download_all
ise-uiuc/Magicoder-OSS-Instruct-75K
conn.execute(power.update().where(power.c.zone_name == self.zone_name).values({power.c.running: False})) conn.execute(power.update().where(power.c.zone_name == self.zone_name).values({power.c.running_manually: False}))
ise-uiuc/Magicoder-OSS-Instruct-75K
echo "Mounting /ecs/uuid-1" mount -a
ise-uiuc/Magicoder-OSS-Instruct-75K
echo "📋 Setting up neovim..." if which node > /dev/null then continue else # need node to have coc install echo "🔨 Installing node 17.9.0..."
ise-uiuc/Magicoder-OSS-Instruct-75K
@router.post('/', status_code=status.HTTP_201_CREATED, response_model=CreateTaskOut) async def create_task( task: CreateTaskIn, pb: Publisher = Depends(get_publisher), ): try: return await TaskService.create_task_non_db(task=task, publisher=pb)
ise-uiuc/Magicoder-OSS-Instruct-75K
impl R { #[doc = "Bits 0:31"] #[inline(always)] pub fn usr_data6(&self) -> USR_DATA6_R { USR_DATA6_R::new((self.bits & 0xffff_ffff) as u32) } }
ise-uiuc/Magicoder-OSS-Instruct-75K
entry.reject('imdb required') @event('plugin.register') def register_plugin(): plugin.register(FilterImdbRequired, 'imdb_required', api_ver=2)
ise-uiuc/Magicoder-OSS-Instruct-75K
using namespace std; int main() { Die dice1; Die dice2; int prompt; vector<Roll> rollVector; for (int i = 0; i < 20; i++) {
ise-uiuc/Magicoder-OSS-Instruct-75K
{option.label} {active && props.multiple && ( <div className={`${classPrefix}-check-mark-wrapper`}> <img src={selectorCheckMarkImg} /> </div> )} </div> ) }) return withNativeProps(
ise-uiuc/Magicoder-OSS-Instruct-75K
} else { $this->session->set_flashdata('error', 'Data user gagal diedit'); } redirect('user'); } public function delete($id) { if($this->db->where('id_user', $id)->delete('tb_user')) { $this->session->set_flashdata('success', 'Data berhasil dihapus'); } else { $this->session->set_flashdata('error', 'Data gagal dihapus'); } redirect('user');
ise-uiuc/Magicoder-OSS-Instruct-75K
assert not req.user_verification_required def test_user_verification_not_set_when_options_is_none(self): req = CtapGetAssertionRequest.create( {CtapGetAssertionRequest.OPTIONS_KEY: None} ) assert not req.user_verification_required
ise-uiuc/Magicoder-OSS-Instruct-75K
return ( <FraseContent> <h3>{`"${item.phrase}" | `}</h3> <StyledLink to={`${process.env.PUBLIC_URL || ''}/gif/${item.phraseId}`}>mostrar gifs</StyledLink> </FraseContent>
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/bin/sh echo "Starting wildfly swarm app..." echo "JVM options => $JAVA_OPTIONS" echo java $JAVA_OPTIONS -jar /opt/app-root/bin/builds-for-managers.jar
ise-uiuc/Magicoder-OSS-Instruct-75K
ByteBuffer b = ByteBuffer.wrap(bytes); b.order(HyCubeMessage.MESSAGE_BYTE_ORDER); try { int commandId = b.getInt(); msgData.setCommandId(commandId);
ise-uiuc/Magicoder-OSS-Instruct-75K
settings = None path_populated = None def __init__(self, in_settings): self.settings = in_settings def generate_template(self, name): #env = Environment(loader=PackageLoader('localtemplate', 'templates')) env = Environment(loader=FileSystemLoader(self.settings.folder_app_templates)) template = env.get_template(name) rendered = template.render(settings=self.settings) self.path_populated = "{0}/{1}".format(self.settings.folder_user_populated, name)
ise-uiuc/Magicoder-OSS-Instruct-75K
ViewComponent::View(subview) => { widgets.append(&mut subview.child_widgets_mut()); } _ => {} } }
ise-uiuc/Magicoder-OSS-Instruct-75K
Вероятно, вы помните задачу про школьницу Вику, которая в свой день рождения принесла в школу N шоколадных конфет, чтобы отпраздновать вместе с одноклассниками. За день до столь знаменательного праздника Вика пошла в магазин, чтобы купить N конфет, однако обнаружила, что поштучно их купить нельзя. Конфеты, которые больше всего на свете любит Вика, продаются в пачках. В каждой пачке ровно M конфет. Определите, сколько пачек конфет купила Вика.
ise-uiuc/Magicoder-OSS-Instruct-75K
if xml_string != "": self.model = load_model_from_xml(xml_string) self.model_xml = xml_string
ise-uiuc/Magicoder-OSS-Instruct-75K
def dyn_2d_up_operation(x, lf_2d, k_sz, sf=2): """ Dynamic 2d upsampling """ with nn.parameter_scope("Dynamic_2D_Upsampling"): y = [] sz = lf_2d.shape lf_2d_new = F.reshape(
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_var_name_constraint(cubes): """Test :func:`esmvalcore.iris_helpers.var_name_constraint`.""" out_cubes = cubes.extract(var_name_constraint('a')) assert out_cubes == iris.cube.CubeList([ iris.cube.Cube(0.0, var_name='a', long_name='a'), iris.cube.Cube(0.0, var_name='a', long_name='b'), ])
ise-uiuc/Magicoder-OSS-Instruct-75K
InitEntity(theData); await _departmentBus.AddDataAsync(theData); } else { await _departmentBus.UpdateDataAsync(theData); } } [HttpPost] public async Task DeleteData(List<string> ids) { await _departmentBus.DeleteDataAsync(ids); }
ise-uiuc/Magicoder-OSS-Instruct-75K
@pytest.mark.parametrize("cls, kwargs", all_invalid_kwargs(VALID_KWARGS)) def test_attributes_invalid_kwargs(cls, kwargs): with pytest.raises(TypeError): cls(**kwargs) @pytest.mark.parametrize( "kwargs, attribute, expected_value", (
ise-uiuc/Magicoder-OSS-Instruct-75K
def unsubscribe(self, func): self.handlers.remove(func) def emit(self, *args): for func in self.handlers: func(*args)
ise-uiuc/Magicoder-OSS-Instruct-75K
process.once('exit', terminate('exit')) } } export default InputCloudFoundry;
ise-uiuc/Magicoder-OSS-Instruct-75K
for sample in tst_feats: result = decision_tree.classify(sample) predictions.append(result) print("Test Set Results:\n", classification_report(tst_labels, predictions)) visualize_data(pd.DataFrame(tst_feats), tst_labels, predictions) # display confusion matrix print("Plotting confusion matrix...") plot_confusion_matrix(tst_labels, predictions, normalize=True) plt.show() return 0
ise-uiuc/Magicoder-OSS-Instruct-75K
@media (max-width: 1150px) { width: 110px;
ise-uiuc/Magicoder-OSS-Instruct-75K