content
stringlengths
10
4.9M
<reponame>DannyParker0001/Kisak-Strike //===- SectionMemoryManager.h - Memory manager for MCJIT/RtDyld -*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------...
Literature The Cuttlefish Behind the Wall What was I doing in Space? Not just regular outer-space, but this place, Space, where they had sent men into the atmosphere in years past. Where those very men send their kids to play astronaut for the Summer. Where the buildings are pink and blue, and your nostrils sting fro...
Statistical Thermal Profile Considering Process Variations: Analysis and Applications The nonuniform substrate thermal profile and process variations are two major concerns in the present-day ultra-deep submicrometer designs. To correctly predict performance/ leakage/reliability measures and address any yield losses d...
// zzve, zzxi, zzxh, zzte public final class zzxg extends AbstractList implements zzve, RandomAccess { public zzxg(zzve zzve1) { // 0 0:aload_0 // 1 1:invokespecial #16 <Method void AbstractList()> zzcch = zzve1; // 2 4:aload_0 // 3 5:aload_1 // 4 ...
Business sustainability frameworks a survey This paper aims to formulate a number of research questions based on a literature survey. A critical review of literature has been undertaken to evaluate the existing business sustainability frameworks. Business Sustainability frameworks from a number of domains such as manu...
package paychmgr import ( "context" "fmt" "github.com/filecoin-project/venus/pkg/crypto" "github.com/filecoin-project/venus/venus-shared/types" "github.com/ipfs/go-cid" "golang.org/x/xerrors" "github.com/filecoin-project/go-address" cborutil "github.com/filecoin-project/go-cbor-util" "github.com/filecoin-pr...
THE state of Veracruz, on the Gulf coast, is Mexico at its most fertile. Along the tropical coastline, vast sugar-cane plantations shimmer in the heat. Climb the mountains towards the balmier state capital of Jalapa and the landscape changes into a canopy of coffee plants and orange trees, with cattle and horses grazin...
export const getColumnStateQuery = (index: string) => ` query columnsStateQuery { ${index} { columnsState { state { type keyField defaultSorted { id desc } columns { field accessor show type sortabl...
The Revolutionary Aesthetics of the Second Russian Avant-Garde The text focuses on the stiob (the Russian word for a particular form of parody) and subversive aesthetic praxis of the Second Russian Avant-Garde. In particular, Ioffe analyzes Michail Grobman’s oeuvre from the perspective of various irreverent techniques...
A Mutant Exhibiting Abnormal Habituation Behavior in Caenorhabditis elegans The acquisition and retention of information by the nervous system are major processes of learning. Habituation is a simple learning process that occurs during repeated exposure to harmless stimuli. C. elegans is habituated when repeatedly giv...
This story originally appeared on xoJane.com. What I’m about to say might make me the most unpopular teacher in the lounge. Standardized testing actually isn’t all that bad. In fact, if used correctly, it can do some great stuff. Sorry, I just had to duck as a head of lettuce was thrown my way. The Brief Newsletter...
def markov_blanket(self, node_id): blanket = set() for pa in self.parents(node_id): blanket.add(pa) for ch in self.children(node_id): blanket.add(ch) for copa in self.coparents(node_id): blanket.add(copa) if node_id in blanket: blan...
/** * Returns true if expr is fully bound by slotIds, otherwise false. */ public boolean isBoundBySlotIds(List<SlotId> slotIds) { for (Expr child: children_) { if (!child.isBoundBySlotIds(slotIds)) return false; } return true; }
import { mergeStyleSets } from "@fluentui/react"; import axios from "axios"; import React from "react" import { IConfig, IPyBCKGExperiment } from "../Interfaces"; import { api_url } from "../utils/api"; import { ExperimentField } from "../utils/ExperimentFields"; import { Form, IFormContext, ISubmitResult } from "../ut...
/* Routine to get the thread-specific error variable */ SDL_error * SDL_GetErrBuf(void) { #if SDL_THREADS_DISABLED static SDL_error SDL_global_error; return &SDL_global_error; #else static SDL_SpinLock tls_lock; static SDL_bool tls_being_created; static SDL_TLSID tls_errbuf; static SDL_error SDL...
Design, development, and testing of an environmental P-T cell for infrared spectroscopy measurements. Water absorption bands due to superficially adsorbed molecules often dominate the near-infrared spectra of particulate minerals and rocks, when measured in the laboratory in the reflectance mode. In order to remove th...
/** * * @brief Configures a new std logger. * * @return A new logger instance. * ******************************************************************************* */ GlibLogger * GlibUtils_CreateStdLogger(void) { StdLogger *data = g_new0(StdLogger, 1); data->handler.logfn = StdLoggerLog; data->handler.add...
// WithCacheHeaderCheck add cache agent for response cache // in default mode, only kubelet, kube-proxy, flanneld, coredns User-Agent // can be supported to cache response. and with Edge-Cache header is also supported. func WithCacheHeaderCheck(handler http.Handler) http.Handler { return http.HandlerFunc(func(w http.R...
// podmanBridge returns the command to use in a var for accessing the podman varlink bridge over ssh func podmanBridge(client *ssh.ExternalClient) string { command := []string{client.BinaryPath} command = append(command, client.BaseArgs...) command = append(command, "--", "sudo", "varlink", "-A", `\'podman varlink \...
""" 废弃 新浪网设置了访问频次限制。 新浪有许多以列表形式提供的汇总列,每天访问也仅仅一次。 """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import re from datetime import date from urllib.error import HTTPError import pandas as pd import requests from bs4 import BeautifulSoup import logbook f...
“I dare them to find the iPod on me,” Richie Sais told the New York Times in 2007, when he was preparing to run the Marine Corps Marathon. USA Track & Field, the national governing body for distance racing, had just decided to ban athletes from using portable music players in order "to ensure safety and to prevent runn...
<gh_stars>1-10 module Shared.Api.Resource.Template.TemplateDTO where import qualified Data.UUID as U import GHC.Generics import Shared.Api.Resource.Template.TemplateFormatDTO data TemplateDTO = TemplateDTO { _templateDTOTId :: String , _templateDTOName :: String , _templateDTOVersion :: String , _t...
/***** DYNAMIC LOADER FUNCTIONS *****/ /* Loads a given method ('s address) from the given instance. */ static PFN_vkVoidFunction load_instance_method(VkInstance vk_instance, const char* method_name) { PFN_vkVoidFunction to_return = vkGetInstanceProcAddr(vk_instance, method_name); if (to_return == nullptr) { ...
/** * In this test we will check the save of an entity association * referenced as a primitive (String) field. * * subTask (String) * Task ------------------> Task * * The field subTask is a String field, and refers to the id * of the subTask. * * The following steps are in...
/** * {@code CyclicalTracker} is an implementation of {@link Tracker} which is a policy of learning * rate adjustment that increases the learning rate off a base value in a cyclical nature, as * detailed in the paper <a href="https://arxiv.org/abs/1506.01186">Cyclical Learning Rates for * Training Neural Networks</...
/** Index is actually iSubItem or a column Key */ STDMETHODIMP CNSListSubItems::get_Item(VARIANT Index, INSListSubItem **pVal) { if (!pVal) return E_POINTER; if (!m_pListView) return E_UNEXPECTED; long iArrayIndex = FindItem(Index); HRESULT hr; if (iArrayIndex < 0) { long iSubI...
def find_connection_response(connections=None): if not connections or 'VpnConnections' not in connections: return None elif connections and len(connections['VpnConnections']) > 1: viable = [] for each in connections['VpnConnections']: if each['State'] not in ("deleted", "dele...
<filename>src/creeps/roles/hauler.ts import { setMovementData } from "creeps/creep"; import { offsetPositionByDirection } from "utils/RoomPositionHelpers"; import { unpackPosition } from "utils/RoomPositionPacker"; export interface HaulerMemory extends CreepMemory { source: number; gathering?: boolean; } expo...
<reponame>chiubaka/core export interface IProductState { product: IProductInnerState; } export interface IProductInnerState { logoPath?: string; productName: string; testMarketingMode: boolean; }
def marshmallow_errors(): gettext('Missing data for required field.') gettext('Not a valid integer.') gettext('Not a valid datetime.')
/** * Recalculate stats of existing {@link Henna}s.<br> * <br> * A stat can't be superior to 5. Previous stats are dumped. */ private void recalculateStats() { for (int i = 0; i < _stats.length; i++) _stats[i] = 0; for (Henna henna : _hennas) { if (henna != null) { _stats[0] += henna.getINT(...
import parse from "./parsing"; // Execute action parse();
Coxeter group actions on the complement of hyperplanes and special involutions We consider both standard and twisted action of a (real) Coxeter group G on the complement M_G to the complexified reflection hyperplanes by combining the reflections with complex conjugation. We introduce a natural geometric class of speci...
A NEW FOURIER TRANSFORM In order to define a geometric Fourier transform, one usually works with either `-adic sheaves in characteristic p > 0 or with D-modules in characteristic 0. If one considers `-adic sheaves on the stack quotient of a vector bundle V by the homothety action of Gm, however, Laumon provides a unif...
import { ModalBuilder } from '../../../src/surfaces/modal'; export const params = { title: 'title', close: 'close', submit: 'submit', privateMetaData: 'privateMetaData', callbackId: 'callbackId', externalId: 'externalId', }; export const mock = new ModalBuilder(params);
<reponame>riazancev/QHTTP #ifndef QHTTP_HTTPSERVER_H #define QHTTP_HTTPSERVER_H #include "global.h" #include <QtCore/qcompilerdetection.h> #include <QtCore/qobject.h> #include <QtNetwork/qhostaddress.h> namespace QHTTP { class HttpClient; class HttpServerPrivate; class QHTTP_API HttpServer : public QObject { ...
<filename>src/histograms/AbstractHistogram.ts /* * Licensed to Gisaïa under one or more contributor * license agreements. See the NOTICE.txt file distributed with * this work for additional information regarding copyright * ownership. Gisaïa licenses this file to you under * the Apache License, Version 2.0 (the "L...
#include "worker.h" #include "filesmodel.h" #include <QDir> Worker::Worker(QObject *parent) : QObject(parent), m_filesModel(new FilesModel(this)), m_directoryWatcher(new DirectoryWatcher) { m_directoryWatcher->setCallBack([this](const std::wstring &fileName, FileAction fileAction) { QString name = QS...
<reponame>HellicarAndLewis/ProjectVictory /* # EncoderThread Accepts raw YUV420 and raw audio buffers as input which is will encode into FLVTags. A listener will be called from this thread when a new FLVTag has been generated; this thread creates a FLV bitstream. */ #ifndef ROXLU_ENCODER_THREAD_H #define...
#!/usr/bin/env python n = [int(x) for x in raw_input().split(" ")] passwords = [] for l in xrange(n[0]+1): passwords.append(raw_input()) solution = passwords[-1] passwords = passwords[:-1] length = len(solution) passwords.sort(key=len) result = 0 idx = 0 while(len(passwords[idx]) != length): idx = idx + 1 minim...
/** Like getCurationSet--used for layering new data. */ public Boolean addToCurationSet() throws ApolloAdapterException { boolean okay = false; if (curation_set == null) { String message = "Can't layer ChadoXML data on top of non-ChadoXML data."; logger.error(message); JOptionPane.showMessageD...
Low light color balancing and denoising by machine learning based approximation for underwater images It is difficult for underwater archaeologists to recover the fine details of a captured image on the seabed when the image quality worsens due to the presence of more noisy artefacts, a mismatched device colour map, a...
#include "str_cmp.h" // cppcheck-suppress unusedFunction int cmp_str_desc(const char *a, const char *b) { return strcmp(b, a); } // cppcheck-suppress unusedFunction int cmp_str_nat_desc(const char *a, const char *b) { return strnatcmp(b, a); } // cppcheck-suppress unusedFunction int cmp_str_case_desc(const c...
import { Mage } from '../../../../aer-types/types' export const mages: Mage[] = [ { expansion: 'RTG', name: '<NAME>', id: 'OhatAndUlgimor', mageTitle: '', ability: ` <h2>Enrapture</h2> <p class="ability-activation">Activate during your main phase:</p> <p> Ohat mode: Suff...
<filename>app/src/main/java/com/example/firstcodeandroid/Web/StartActivity10.java package com.example.firstcodeandroid.Web; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import a...
/** * Returns the enum element that has the specified href property. * * @param href * the href to select the tab * * @return the tab * @throws NoSuchElementException * if the tab could not be found */ static Tab valueWithH...
// ReadAll copies all elements from reader r into the provided column // pointers. ReadAll is not tuned for performance and is intended for // testing purposes. func ReadAll(ctx context.Context, r Reader, columns ...interface{}) error { columnsv := make([]reflect.Value, len(columns)) types := make([]reflect.Type, len...
/* The priority_map function maps dylan thread priorities to windows priorities * as below: * * Dylan Priorities windows priority * < -1249 THREAD_PRIORITY_IDLE * -1249 to -750 THREAD_PRIORITY_LOWEST * -749 to -250 THREAD_PRIORITY_BELOW_NORMAL * -250 to 249 THR...
def _get_projected_grids(imtgrid, topobase, projstr): topodict = topobase.getGeoDict() sampledict = topodict.getBoundsWithin(imtgrid.getGeoDict()) simtgrid = imtgrid.interpolateToGrid(sampledict, method='nearest') topogrid = topobase.interpolateToGrid(sampledict, method='linear') topogrid._data = to...
<filename>src/main/java/uk/ac/ic/wlgitbridge/bridge/db/DBInitException.java package uk.ac.ic.wlgitbridge.bridge.db; /** * Created by winston on 23/08/2016. */ public class DBInitException extends RuntimeException { public DBInitException(String message) { super(message); } public DBInitExceptio...
def recognize_faces_in_directory(directory: str) -> Set[str]: files: List[str] = glob.glob(directory + "*.jpg") names: Set[str] = set() for i in range(len(files)): file: str = files[i] res = recognize_faces(path=file) names.update(res) return names
Serum markers for severe Clostridium difficile infection in immunosuppressed hospitalized patients. Clostridium difficile infection (CDI) has emerged as the leading cause of nosocomial diarrhea in the developed world. The prompt recognition of severe CDI is essential in providing early aggressive therapy. Though previ...
/** * Create a new team entity with a name. * * @param name name of team. * @param attributes additional attributes for the Team. * @return A newly minted Team that exists in the VersionOne system. */ public Team team(String name, Map<String, Object> attributes) { Team team =...
Back to the future: reflections and directions of South African marine bioinvasion research Biological invasions continue to increase around the world, with impacts on many coastal marine systems. Here we review the South African marine invasion literature which, despite the field being relatively new, has grown to ha...
/** * @author Vlad Mihalcea */ @Repository public class ForumServiceImpl implements ForumService { @Autowired private PostDAO postDAO; @Autowired private TagDAO tagDAO; @Override @Transactional public Post newPost(String title, String... tags) { Post post = new Post(); p...
/** * Persist a share object of a program to a user group. If the program is already shared to the user group, its relation will be updated. Otherwise, a new * one will be created. * * @param userGroup the user group whose access rights have to be changed, not null * @param program the pro...
/** mainly for embedding SVG * no checking - * @author pm286 * */ public class HtmlObject extends HtmlElement { private final static Logger LOG = Logger.getLogger(HtmlObject.class); public final static String TAG = "object"; private static final String SRC = "src"; public static final String SVGTYPE ...
// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2016 Stefan Roese <sr@denx.de> */ #include <common.h> #include <dm.h> #include <fdtdec.h> #include <init.h> #include <asm/cache.h> #include <asm/global_data.h> #include <asm/ptrace.h> #include <linux/libfdt.h> #include <linux/sizes.h> #include <pci.h> #include ...
Prime Minister Benjamin Netanyahu is considering closing down the Israeli offices of Qatari TV network Al Jazeera. Follow Ynetnews on Facebook and Twitter The prime minister held an initial discussion on the topic on Monday, and the Government Press Office (GPO), the Foreign Ministry, the Shin Bet and the rest of the...
/** * Select - Abstract super class for LOOKUPSWITCH and TABLESWITCH instructions. * * <p>We use our super's <code>target</code> property as the default target. * * @see LOOKUPSWITCH * @see TABLESWITCH * @see InstructionList */ public abstract class Select extends BranchInstruction implements VariableLengthInst...
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * vim: set ts=8 sts=4 et sw=4 tw=99: * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ ...
// CreateExpect creates a new Conntrack Expect entry. Warning: Experimental, haven't // got this to create an Expect correctly. Best-effort implementation based on kernel source. func (c *Conn) CreateExpect(ex Expect) error { attrs, err := ex.marshal() if err != nil { return err } pf := netfilter.ProtoIPv4 if ex...
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package cloud9 provides the client and types for making API // requests to AWS Cloud9. // // AWS Cloud9 is a collection of tools that you can use to code, build, run, // test, debug, and release software in the cloud. // // For more information ab...
/// Try to CSE the users of \p From to the users of \p To. /// The original users of \p To are passed in ToApplyWitnessUsers. /// Returns true on success. static bool tryToCSEOpenExtCall(OpenExistentialAddrInst *From, OpenExistentialAddrInst *To, ApplyWitn...
package com.github.ompc.athing.aliyun.thing.tsl.schema; import com.google.gson.annotations.SerializedName; import java.util.LinkedList; import java.util.List; public class TslServiceElement extends TslElement { @SerializedName("callType") private final CallType callType; private final String method; ...
Selecting Some Variables to Update-Based Algorithm for Solving Optimization Problems With the advancement of science and technology, new complex optimization problems have emerged, and the achievement of optimal solutions has become increasingly important. Many of these problems have features and difficulties such as ...
Alteration of MDM2 by the Small Molecule YF438 Exerts Antitumor Effects in Triple-Negative Breast Cancer This study uncovers the essential role of MDM2 in TNBC progression and suggests that targeting the HDAC1–MDM2–MDMX axis with a hydroxamate-based HDACi could be a promising therapeutic strategy for TNBC. Triple-nega...
Default Pathway of var2csa Switching and Translational Repression in Plasmodium falciparum Antigenic variation is a subtle process of fundamental importance to the survival of a microbial pathogen. In Plasmodium falciparum malaria, PfEMP1 is the major variable antigen and adhesin expressed at the surface of the infect...
def select_from_component(cls, component: Any): for flavor in cls.interfaces: if isinstance(component, flavor): return cls.interfaces[flavor] return None
def forward(self, words=None, z=None): if hasattr(self, 'fake'): del self.fake, self.text_encode_fake, self.len_text_fake, self.one_hot_fake self.label_fake.sample_() if words is None: words = [self.lex[int(i)] for i in self.label_fake] if self.opt.capitalize: ...
import styled, { keyframes } from 'styled-components/macro' import { Page } from 'styles' export const HomeStyled = styled(Page)` text-align: center; ` const gradiant = keyframes` 0% { background-position: 0% 0%; } 50% { background-position: 100% 100%; } 100% { background...
/** * @author Christoph Strobl * @author Mark Paluch * @since 2.0 */ class LettuceReactiveClusterListCommands extends LettuceReactiveListCommands implements ReactiveClusterListCommands { /** * Create new {@link LettuceReactiveClusterListCommands}. * * @param connection must not be {@literal null}. */ Let...
<reponame>windllsnow/Java_test //介面 public interface A01 { int x =100;//常數 不可改 void getAData(); }
// TransposeDryRun print diff to replace import statement ( not overwriting ) func (t *Transposer) TransposeDryRun(matchPattern *regexp.Regexp, searchRoot string, ignorePaths []string, transposeFunc func(packageName string) string) error { inspectResults, err := t.Inspector.Inspect(matchPattern, searchRoot, ignorePath...
#ifndef UNIT_VERILOG_TEST_PARSE_W_LISTENER_HPP #define UNIT_VERILOG_TEST_PARSE_W_LISTENER_HPP #include "./test_design.hpp" #include "verilog/types/design.hpp" #include "verilog/types/design_reader.hpp" #include "parse/util/static_string.hpp" #include "SV2012BaseListener.h" #include "SV2012Lexer.h" #include "SV2012...
// LatexFromTexts returns latex from texts. func LatexFromTexts(drawex core.Drawex, texts []*component.Text) *string { var latex string for _, item := range texts { latex = stringutil.Concat(latex, drawex.DrawText(item)) } return &latex }
My intention in writing about Bitcoin in these pages each week is to make the subject as boring as possible. Not the articles, of course; I hope that they will be lively and entertaining, with just the right balance of humor and gravitas and some serious discussion of weighty issues, leading to fabulously successful re...
/* * Insert a constraint edge between the vertices with the given ids. */ void triangulation::insert_edge( unsigned long v_start_id, unsigned long v_end_id, unsigned long e_id) { vrtx& v_start = (*_vertices)[v_start_id]; vrtx& v_end = (*_vertices)[v_end_id]; sym_edge<vrtx,edge>* e_left = v_start.e; w...
// SetupViper returns a viper configuration object func SetupViper(envPrefix string) *viper.Viper { viper.SetConfigName("config") viper.AddConfigPath(".") if envPrefix != "" { viper.SetEnvPrefix(envPrefix) } viper.SetEnvKeyReplacer(strings.NewReplacer(".", "_")) viper.AutomaticEnv() viper.SetDefault("proxy.por...
/** * Read a boolean from a stream */ private static boolean readBoolean(InputStream aStream) throws IOException { int b = aStream.read(); if (b == 0) { return false; } if (b != 1) { throw new IOException("Malformed boolean."); } return true; }
/* * Copyright 2015 the original author or phly. * 未经正式书面同意,其他任何个人、团体不得使用、复制、修改或发布本软件. */ package com.phly.common.base.tag; import java.io.IOException; import java.util.List; import javax.servlet.jsp.JspException; import javax.servlet.jsp.tagext.SimpleTagSupport; import org.apache.commons.lang.StringUtils; impor...
/** * Tests the same object reference for equal hashCode */ @Test public void testHashCodeSameObj() { ModifyDnRequestImpl req = new ModifyDnRequestImpl(); req.setMessageId( 5 ); assertTrue( req.hashCode() == req.hashCode() ); }
Correction appended The estranged boyfriend of a 22-year-old woman shot multiple times Saturday in Southeast Portland was found dead of an apparent self-inflicted gunshot wound, police say. The man's body was discovered at 7:45 a.m. behind a fence near Southeast 134th Drive and Holgate Boulevard, police said, a littl...
/** * This task converts MathML files to images. * * @version $Revision$ */ public class MathMLConverter extends MatchingTask { private static final String CURRENT_DIR = "./"; private static final char EXTENSION_SEP = '.'; /** * */ private File mdestDir; private File mbaseDir; ...
Rails provides a very convenient way of sending forms via AJAX using the Rails UJS helpers e.g. < %= form_for @articles, remote: true do |f| %> ... < % end %> Then in your controller you can process that form and respond with javascript: // app/views/articles/create.js.erb $ ( "<%= escape_javascript(render @article)...
<filename>app/src/main/java/com/merteroglu/trajectory/Model/ReducedResponse.java package com.merteroglu.trajectory.Model; import java.util.ArrayList; import java.util.List; /** * Created by Mert on 26.02.2018. */ public class ReducedResponse { ArrayList<Coordinate> reducedCoordinates; double reducedRate; ...
Laura Sanchez shouldn’t be dead. And, statistically, the Bloods gang members connected to the woman’s drive-by slaying shouldn’t have been caught and sent to prison. Her March 18, 2007, murder on the fringes of the 90011 ZIP code was one of hundreds of homicides in an area of South Los Angeles that stretches south fr...
/** * Add elements from a source collection to a target collection unless they or the source collection itself are null. * * @param target target collection * @param source source collection * @return true if the target collection changed * @throws NullPointerException if the target collection is null ...
def _create_tr_ts(n_tr, n_ts): digits = (1, 5, 9) ds = CDataLoaderMNIST().load('training', digits=digits) splitter = CTrainTestSplit(train_size=n_tr, test_size=n_ts, random_state=0) tr, ts = splitter.split(ds) ...
<reponame>Todorov99/server package models // Device model type Device struct { ID string `json:"id,omitempty" yaml:"id,omitempty"` Name string `json:"name,omitempty" yaml:"name,omitempty"` Description string `json:"description,omitempty" yaml:"description,omitempty"` Sensors []Sens...
<gh_stars>1-10 #pragma repy def foo(ip,port,sockobj, ch,mainch): data = sockobj.recv(4096) if data != "Hello": print 'Error: data did not match "Hello"' exitall() sockobj.send("bye") stopcomm(mainch) stopcomm(ch) if callfunc == 'initialize': ip = getmyip() waitforconn(ip,<connport>,foo)...
// Suggestions for an address. Contains lists of suggestions for administrative // area, locality, and dependent locality fields of an address. class AddressSuggestions { public: AddressSuggestions() {} AddressSuggestions(const AddressSuggestions&) = delete; AddressSuggestions& operator=(const AddressSuggestions...
/** Stealing from the entity first positive effect. If entity does not have any, then stealing health. @param stealer Entity which will receive some bonuses. @param target Entity which will lose something. */ protected static void steal( LivingEntity stealer, LivingEntity target ) { Collection< EffectInstan...
""" ## Function similar to that in matlab ## Author: <NAME>, <NAME> # """ import numpy as np def subspace_min (x, l, u, x_cp, d, G): n = len(x) Z = np.diag(n) fixed = (x_cp <= l+1e-8) or (x_cp >= u-1e8) if all(fixed) is True: x = x_cp return x Z = Z[: , fixed...
<gh_stars>10-100 from datetime import datetime from django.contrib.gis.geos import Point from django.test import TestCase import pytz from robber import expect from pinboard.serializers.mobile.relevant.document_serializer import DocumentSerializer from data.factories import ( OfficerFactory, AllegationFactor...
vector<int> kth_permutation(vector<int> perm, int k) { int64_t factorial = 1LL; int n = (int) perm.size(); for(int64_t num = 2; num < n; ++num) factorial *= num; // (n-1)! k--; // k-th to 0-indexed vector<int> answer; answer.reserve(n); while(true) { answer.push_back(perm[k / fa...
<gh_stars>10-100 /* Z88DK Z80 Macro Assembler Copyright (C) <NAME>, InterLogic 1993-99 Copyright (C) <NAME>, 2011-2019 License: The Artistic License 2.0, http://www.perlfoundation.org/artistic_license_2_0 Repository: https://github.com/z88dk/z88dk Handle library file contruction, reading and writing */ #pragma once ...
// ==================== // 몬테카를로 트리 탐색 생성 // ==================== // 패키지 임포트 import * as tf from '@tensorflow/tfjs'; import { sum } from 'lodash'; import MNode from './MNode'; import Reversi from './Reversi'; // 파라미터 준비 const PV_EVALUATE_COUNT = 50; // 추론 1회당 시뮬레이션 횟수(오리지널: 1600회) const DN_INPUT_SHAPE = [6, 6, 2]; /...
Factors affecting the financial structure of Slovak and Czech enterprises in the Manufacture of machinery and equipment industry The financial structure of enterprises is influenced by many factors. The aim of this paper is to analyze, evaluate and assess the effect of selected internal corporate factors and external ...
Yesterday’s article on the excommunication of papal critic Professor José Galat, formerly the rector of La Gran Colombia University and founder of Spanish language TV station Teleamiga, has stirred up quite a firestorm in the comment box. And not without reason. Galat is not, however, just a papal critic. As reported ...