query_id
string
corpus_id
string
query
string
code
string
label
int64
4e2c7c23ef9c6a69ee7d3246a34d1a2b
b1a5761400c17c0783ea7984c346015d
Returns the Schwarzschild radius (i.e., the radius of a black hole's event horizon).
class NEATM(SurfaceRadiation): def R(self): return self.D / 2.0
0
b6e7adf6b29deeec83daaecc86fcbc00
52395ff877997e85a9fcf8ac99a932ee
Gets the view helpers
public function getHelpers();
1
d134dde07140c8a4dc57369fe096b3a4
2462aab9db3c0e25177bac0bdcf5c201
Method to verify the current ulr to activate/deactivate the changeLang button
if (this.language_equivalent != null){ this.routeNew = this.location.path().slice(0, 1) + this.selectedLanguage + "/index/" + this.language_equivalent; } else { this.routeNew = this.location.path().slice(0, 1) + this.selectedLanguage + this.location.path().slice(3); } this.currentLanguag...
0
81959e658a48f6dc6c661d3b5892d6ac
2dfd0e780636ec97ea66e14c1e864460
今日油价
{ PSSEntities db = new PSSEntities(); ObjectParameter para = new ObjectParameter("DD", ""); db.pro_order("QuotePrice", "QPID", "BJ", para); return Content(para.Value.ToString()); }
0
c54ca1c0b7b3f5329fb235ffeede891f
a005baeafdea71d78a7251128263a141
Force value to be array
{ $this->check_role = 'array'; $result = is_array($this->value); $this->checkResult($result); return $this; }
0
093633ec86f1c0e5e1d14bce5522fc14
9387c7ae7fadda61b4a13ba51375311d
Calculate tree edit distance between two pages' block trees https://github.com/timtadh/zhang-shasha/
public class Edit<T> implements Distance<List<T>> @Override public Double apply(List<T> ts1, List<T> ts2) { int len0 = ts1.size() + 1; int len1 = ts2.size() + 1; int[] cost = new int[len0]; int[] newCost = new int[len0]; for (int i = 0; i < len0; i++) { cost[i] = i; } for (int j = 1;...
0
6677bb64be698df7154b7783a21b38da
14ede0ea3ff720078c23a7023cd3fe9a
Verifies if an asset description is present in the storage
class Primo extends Contract async AssetExists(ctx, id) { const assetJSON = await ctx.stub.getState(id); return assetJSON && assetJSON.length > 0; }
1
c7e0b739bf053bf3e35d80f1212db09a
eedcceb5fbed49d424c4c44617f422b4
создание репоста видеоальбома сообщества на свою стену
class VkontakteProvider extends Provider implements CanPost, CanPostGroup public function publishPostGroup($title, $text, $link='',$attaches=null) { $info = array( 'owner_id' => '-'.$this->getExtraConfig('post_group_id'), 'message' => $text, 'access_token' => $this->getEx...
0
801365eb6b588b367b6f5bca0f1c24df
715c8649180a5fc5086fa221a259b86f
Link to IP helper library and get the ip enumerator function
{ static ErrorFormatter sLwIPErrorFormatter = { FormatLwIPError, NULL }; RegisterErrorFormatter(&sLwIPErrorFormatter); }
0
19649944d47a4461b0e9c7f6a45750f1
cb4c27704e37f966cc8f8bf24e188bfd
Singleton array to Python value
class StructByVal(AbstractConverter): def to_python(self, cdata, force_cast=False): if force_cast: ctype_ptr = ctype_pointer_to(self.ffi, self.ctype) cdata = self.ffi.cast(ctype_ptr, cdata) return self.class_.from_pointer(cdata)
0
c3b7137b47c7c8c408a50152b6ba3bab
38ce5b1af4001469806c81fae1565297
받은 인자에 해당하는 인덱스의 적을 빨간색으로 표시함 : 한번 발견하면 그 위치 계속 노출
Collider[ ] colliders = Physics.OverlapSphere(player.transform.position , 5 , 1<<11); if (colliders.Length>0) { if (colliders.Length > 1) { Debug.Log("두개이상의 크리스탙이 감지됩니다."); return; } int remainCrystal=GameMgr.Instance.GetCrystalState(co...
0
3b63ab4f57d22e0d105981e06003bb6d
6063e09c2a71aa5fec74efe577843c21
find the first specified vertex buffer that exists
impl Bgfx pub fn set_vertex_buffer(vbh: &VertexBuffer) { unsafe { bgfx_sys::bgfx_set_vertex_buffer(vbh.handle, 0, std::u32::MAX) } }
0
b11159f2189c1677aadc5a8d9b359709
54ba8c22b8181d2a08b4483bf840ae11
Return all matches of the pattern in specified text using the Boyer-Moore algorithm
def boyer_moore(pat, txt, index=1): if len(pat) > len(txt): return [] bad_char_shift = calculate_bad_char_shift(pat) good_suffix_table = calculate_good_suffix(pat) matched_prefix = calculate_matched_prefix(pat) j = 0 m = len(pat) - 1 matches = [] prev = -1 while j + m <= len(...
1
6584009c21d5214d612d89f232957ef3
039e57594ecd4ddbe0d076980ad23c0d
When the Start Game button is clicked, go to the ship selection menu
public class startButton extends Button{ @Override public void doAction() { getMygame().startShipSelection(); }
1
755ccaa8ae111ef37c72e07d4b5358d7
b8f10a343aa7a55ce0af631ca8c6060f
If a peer sends us a hello message and we find it is already connected to us, we reject and disconnect it.
val receivedKey = id .publicKey .toPublicKey() .toRsaPublicKey() val knownKey = identityBook[peerId] if (knownKey != null && knownKey != receivedKey) { addressBook -= peerId logger.warn("Peer $peerId has a different identity and will be...
0
67fded1c3029c1203a624774f20c0f1a
36b4dcd4821c6fc97e5a775af881dee8
Generalized bell membership function
FIS_TYPE fis_smf(FIS_TYPE x, FIS_TYPE* p) { FIS_TYPE a = p[0], b = p[1]; FIS_TYPE m = ((a + b) / 2.0); FIS_TYPE t = (b - a); if (a >= b) return (FIS_TYPE) (x >= m); if (x <= a) return (FIS_TYPE) 0; if (x <= m) { t = (x - a) / t; return (FIS_TYPE) (2.0 * t * t); } if (...
0
02b63ea3eb6d097715b6d90bd47a01ca
05a4964a70e04bb7bfa5970f66a744a2
更新操作的属性值重复校验
namespace Applications.Services.Impl.Configs public class SystemConfigService : BatchService<SystemConfig, SystemConfigDto, SystemConfigQuery>, ISystemConfigService private void ValidateUpdateExists( SystemConfig entity ) { var exists = Repository.Exists( t => t.Id != entity.Id && t.Code != "" && t.Code...
1
ebc956edbb2346d64b250c70e3e0a90c
78fd9fa3b40f85faed05711814c0aafe
Get the average of the two position sensor values, in inches
int GetAverageEncoderValues(){ return (SensorValue[leftEncoder] - SensorValue[rightEncoder]) / 2; }
0
242a750bd23b9d51b1c10db217f21576
260b46cf0f2a1e84ef630b972531137a
LDA-LDAH sequence for 32-bit constants
NaClDefInstPrefix(Prefix660F3A); NaClDefPrefixInstChoices_32_64(Prefix660F3A, 0x16, 1, 2); NaClDefPrefixInstChoices_32_64(Prefix660F3A, 0x22, 1, 2); NaClDefine(" 660f3a08: Roundps $Vdq, $Wdq, $Ib", NACLi_SSE41, st, O1Nary); NaClDefine(" 660f3a09: Ro...
0
fb1ad8dc5e680884e97e904c04ad0e8e
5b871f6ae03d7c43407286f8a385680b
Performs the equivalent of :obj:`numpy.pad` for :obj:`SparseArray`. Note that this function returns a new array instead of a view.
if not self.padded: return x, 0 a = (self.w.size + 1) // 2 b = self.w.size // 2 y = np.zeros(x.size + a + b) y[a:(a + x.size)] = x return y, a
0
9bb2889d2c555ed7d9ddffe4a752bef7
987ef606242215b7a0a9bf6f5db1c4c5
calculated the positions of the square grid in side of the polygon
{ std::vector<Math::Vec2> triangulation_vertices; std::vector<uint> triangulation_indices; for(auto& node : poly_border) { vertices.push_back(node.lon); vertices.push_back(node.lat); triangulation_vertices.push_back(Math::Vec2(node.lon,node.lat)); } triangulation_indices = computeTriangulation(tri...
0
0e2c249c3d7dabfd2efb3d94521d82cb
e7cc733c5c7dbb22078b9ee36511e9fe
turns 16 to 00010000
static uint8_t color565_to_b(uint16_t color) { return ((color & 0x001F) << 3); }
0
fc82dcfb6a585a21ea2db5c7fc684ce3
e131f3a79fbd405944fff3af8d86ca78
左上の「終了する」ボタンを押すとアプリが終了、読み取り結果を持ち越したくないので念の為初期化する
public class DeviceDetailActivity extends AppCompatActivity private void exitActivity() { readDataWaySetting = ReadDataWay.NONE; readDataHandler.removeCallbacks(readDataRunnable); if (okudakeManager.isConnected()) { okudakeManager.disconnect(); } if (okudakeManager.is...
1
3493324a1d3a8ed42640e90fd85b80f7
6115a49ecbbc6ee8a55592b27c8fe128
How many bits have been set?
uint64_t old_val; uint64_t mask = 1; int counter=0; for(int i=0; i < this->size_in_words; i++){ old_val = this->bits[i]; for(int j=0; j < 64; j++){ if(((old_val >> j) & mask) == 1){ counter++; } } } return counter; }
1
57ad1f8b73fd19219bea77584e363d98
d120fba184ea975437223d1932cae331
查询产品信息 根据产品厂商ID(缓存)
class Product_model extends Base_Model{ public function select_product_code_by_id($Ids){ $Item = $this->_Item.__FUNCTION__; $Cache = $this->_Cache.__FUNCTION__.implode(',', $Ids); $Return = array(); if(!($Return = $this->cache->get($Cache))){ $Sql = $this->_unformat_as($Item,...
0
497bcf9b2333ea02fa98aaa77a14fc81
c1c399a343ff838172827b2a5bffb430
返回已锁定的大小
class CollectionStorage(object): def getUnlocked(self): r = 0 for i in range(len(self.screams)): if self.isUnlocked(i): r += 1 return r
0
77947b4fdc8454ee6f9f948545da86d6
2c135b21ec2a998f2e70f796d49cb533
获取path下面所有文件总数
count = 0 if not os.path.exists(path): return count file_path = glob.glob(path + os.path.sep + "*.png") file_path += glob.glob(path + os.path.sep + "*.jpg") file_path += glob.glob(path + os.path.sep + "*.jpeg") return file_path.__len__()
0
8cfe640348836bb8f15e9cc60eb822d0
ecaa1bb0549e085140f8a66f2daa1a8c
#################################################-MODIFICAR-LABORATORIOS-#######################################
{ try { DB::transaction(function() use ($id) { $record = Laboratorio::find($id); $filename = public_path().'/pdf_exam/'.$record->resultado; \File::delete($filename); if($record->delete()){ DB::commit(); ...
0
b7f99f9e081b6d10e8b47d351ce620b1
28757557227ca2ed35ab271c0546ddbc
output a quoted string with escapes for \ and "
function exportstring( s ) s = string.format( "%q",s ) s = string.gsub( s,"\\\n","\\n" ) s = string.gsub( s,"\r","\\r" ) s = string.gsub( s,string.char(26),"\"..string.char(26)..\"" ) return s end
1
9f9b7c463d437d3196bf1b101b89710d
f52e83b9e079d1c5306e6598efd734f8
获取aac sequence header,拷贝到av_buffer中
RGY_ERR RGYOutputAvcodec::AddHeaderToExtraDataAV1(const RGYBitstream *bitstream) { const auto unit_list = parse_unit_av1(bitstream->data(), bitstream->size()); auto it_seq_header = std::find_if(unit_list.begin(), unit_list.end(), [](const std::unique_ptr<unit_info>& unit) { return unit->type == OBU_SEQU...
0
aecfb788405371aff7469c98b94df713
91a6d4c80dd941dc5cc726d7815d46f1
The time when the configuration is updated.
class _MuteConfigState: def update_time(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "update_time")
1
1a7d9f0c5fdc59b5ef3a01f3efcd1fb7
4c100b906e82c1fcad2228675d8ce1c0
Получение максимального значения давления
{ long max = 0; for (int i = 0; i < _myValues.Length; i++) { if (_myValues[i] > max) { max = _myValues[i]; } } return max; }
1
7fde422291c891c8519191b6b9890439
17ba5a9d45d62ce06f2b569ae7ab49f5
Load all peaks in a radius of 1 degree (just to be safe - it's about 112km)
public List<Peak> getAll();
0
f15c9f23c75217385da6da34d6404d0b
9a9e1c682c7fe5660788ae0962dfa9ca
获取神兵回收预览信息
function UIResolvePreview:getPartsBack() local infos = self._data.datas local items = {} for _,v in pairs(infos) do local intensifyBack = self:getPartsIntensifyConfigData(v.strgthlv,v.quality,v.part) if #intensifyBack > 0 and intensifyBack[1][3] > 0 then local index = self:getIn...
1
152a688712526ae2aba9002b461303ce
ed02bd2ce9a7283b3eff6c2ca9df1bcb
编辑员工已晋升情况
$id = (int)input('post.id'); $data = input('post.'); $data['lastmodify'] = time(); $data['induction_time'] = strtotime(input('post.induction_time')); $data['dimission_time'] = strtotime(input('post.dimission_time')); MBISUnset($data,'startDate'); MBISUnset($data,'endDate'); ...
1
168b282c4b746317fd29f4eb1030d0f6
30eebd8a8b91eef8ece914802ba47b29
Closes the executive summary page.
namespace PL public partial class tblNDTLVersionsCheckerSmry public void SummaryPageLoadExit() { }
0
b5f3912bcfdc67af1c8e7a02b4fe2884
5fff92ed518a4b2019b421f87d37f043
Creates a new {@link Waiter} using default configuration.
impl Waiter pub fn new( kind: Kind, cancel: fn(usize, &Waiter, bool), cancel_data: usize, waiting_for: WaitingFor, ) -> Waiter { Waiter { link: AtomicLink::new(), state: SpinLock::new(State::Init), cancel, cancel_data, ...
0
0711bbba627600898a178a753bb64d9c
3cde3b0b35eacbc8a2081cfb4c912ead
Perform an L test for CSR on a PointPattern, based on the distribution of L test statictics from the patterns in this collection.
def lhs(n, samples=None, criterion=None, iterations=None, correlation_matrix = None): H = None if samples is None: samples = n if criterion is not None: if not criterion.lower() in ('center', 'c', 'maximin', 'm', 'centermaximin', 'cm', 'correlation', ...
0
13be2efcc351a5966c5a7ab83b695a17
d3506190a83058448dac24828657de64
проверка соответствия песни выбранному типу
switch (genre) { case "nursery": updateSongs(props.nursery); break; case "pop": updateSongs(props.pop); break; case "spanish": updateSongs(props.spanish); break; defaul...
0
b63f54c9d36005324bfe994ccb24ea81
80f7dc61d82221c636091c2067a116ea
fuegt einen Ordner in die Datenbank ein
public ActionResult<ZooInput> CreateZoo(ZooInput zoo) { SQLConnectionZoo t = new("server=localhost;port=3306;database=ZooDatenbank;user=root;password=root"); if (t.CreateZoo(zoo) >= 1) return zoo; else throw new Exception("didn't work"); }
0
0bb97861fdc1582a239919671e904e54
db68989b0ab532521bd701a787af8f13
取得签到时间的值
@Table(name = "user") public class User extends BaseModel public String getSignTime() { return signTime; }
1
624783f30ab2cd92f2ea9fa6ad973d2d
ab083dc3383f5466b8f12abcbbaef9b0
Método de conveniência para mostrar uma bolha de texto.
fun Context.exibirMensagem(mensagem: String) { Toast.makeText( this, mensagem, Toast.LENGTH_SHORT ).show() }
1
5b29f61f1450a326b77aaf9b1a7aeff4
6e68320c3c2611ef1eb20aa5c146c836
组件卸载后销毁echart实例
export class ChartComponent implements AfterViewInit, OnDestroy ngOnDestroy(): void { this.browserOnly(() => { if (this.chart) { this.chart.dispose(); } }); }
1
99219661fd5116af98ed79df84210db0
487b1e28b138abee3775d75a19e182ca
Device don't go to sleep while playing
public class Ball : MonoBehaviour void Start() { Screen.sleepTimeout = SleepTimeout.NeverSleep; }
1
9080744698c21d88484352793628cb60
954f44fa3a03cb293d64e2d567297eeb
算位数
let count = 1 let temp = num/10 while(temp>1){ temp = temp/10 count++ } return count }
1
c797ba66e87170d21e45a4621713e638
a185c69c5bac8ac761ab841ff3d5cdcd
Start observing the model
class TradfriDevice(Entity): async def async_added_to_hass(self): self._async_start_observe()
1
7e2139f05b56c300d878b8f13e2c2247
12c40c7b56166a702a912d53fe9f7966
Dado un arreglo de datos de una matriz, valida que el n�mero de columnas de una matriz.. se el mismo en todas sus filas
assert len(inputMatrix) > 0 baseLength = len(inputMatrix[0]) for row in range(1, len(inputMatrix)): if (len(inputMatrix[row]) != baseLength): return False return True
1
4050b973383517e5dd103e65fa655fc0
b9201cb8bc30ad0d4595b975cb6b1f8b
Automatically load new posts if end of the list is reached
if (!postURLs) return; isFetchingPosts = true; var loadedPosts = 0, postCount = $(".post-list").children().length, callback = function() { loadedPosts++; var postIndex = postCount + loadedPosts; if (postIndex > postURLs.length-1) { disableFetching();...
0
317f1fd4f793036fda406e3f357236f9
65e7b157e2ed3722d0be650da62e79d5
Callback executed every time a message on topic target_unreachable is published. The global variable _target_unreachable is set to 'true'. reference to empty message, unused;
[Obsolete] public class ShipHelm : IDebugable, IDisposable private void HandleTargetUncatchable() { RefreshCourse(CourseRefreshMode.ClearCourse); OnApTargetUncatchable(); }
0
245ade3fc673cf79efb26b8d939e888b
dcd84df77e116e3c4c630bcbb79cbeaa
Stampa gli accordi di una canzone
void print_canzone(struct accordo_t *head) { if (head != NULL) { printf("%c", head->nota); if (head->minore) { printf("m"); } printf(" "); print_canzone(head->next); } }
1
cf4f162495b4bec6354ba29a96fb196b
b516c1f3367cd46e0f353a539341686a
Gets a value indicating whether the <see cref='QualifiedNameCollection'/> contains the specified <see cref='QualifiedName'/>.
namespace Qowaiv [Serializable] [OpenApiDataType(description: "Comma separated list of email addresses defined by RFC 5322.", type: "string", format: "email-collection", nullable: true)] public class EmailAddressCollection : ISet<EmailAddress>, ISerializable, IXmlSerializable, IFormattable [ExcludeFromCodeC...
0
c3b5d7552da22a2be256316237be4601
0984a171284b76114f1ce267dec0bf98
r""" Transverse mass squared of the four-momentum vector or array of vectors: $M_T^2 = t^2 - z^2$.
class FourMomentum(persistent.Persistent): def eta(self): return -log(tan(self.theta/2))
0
d65ba840fc8f4c63209837750e9b9a35
db5988ae82f8792a834dfb5175c585ef
Gets the teaching group absence categories.
namespace Erris.BusinessLayer public partial class ScopedCategoryBL : ErrisMISBaseBL<Entities, ScopedCategory> public List<ScopedCatAbsenceForTeachingGroup> GetTeachingGroupAbsenceCategories(int[] categoryIds) { return (from sc in Context.ScopedCategories.OfType<ScopedCatAbsenceForTeachingGroup>...
1
dbff7be6764b0a3e588a1cde41ff0009
1b7a5fe58c410f7a5243220c77338066
本地作用域,附加查询条件:是否激活
class BanQuery extends ActiveQuery public function active() { return $this->andWhere([]); }
0
580c5d99e183f4b65cf55dacc8bc636c
8eab7228701ec018922d1ef4dfa5be16
定义一个访问器,获取所有祖先类目的 ID 值
{ $categories = $this::find()->all(); $result = []; array_unshift($result, $this->id); $parent_id = $this->parent_id; while (!empty($parent_id)) { foreach ($categories as $category) { if ($category->id == $parent_id) { array_uns...
1
c22393a6f03bc332c0ffeff8c17be250
8ecc66a312b9ed49bf0f3b0a3edbd49e
Create a product detail link for a product in the shopping cart
{ if ('product' === $link->getType() && !$link->isBroken()) { return $this->urlGenerator->generate('product_detail', array('id' => $link->getId(), 'slug' => $link->getSlug())); } }
1
afa5746251e3144a3edb229cb628c3bc
15cb2bd12b6d9474d4bbf10489aba980
Returns the vacaciones with the primary key or throws a <code>com.liferay.portal.kernel.exception.NoSuchModelException</code> if it could not be found.
@Component(service = VacacionesPersistence.class) public class VacacionesPersistenceImpl extends BasePersistenceImpl<Vacaciones> implements VacacionesPersistence @Override public Vacaciones findByUuid_Last( String uuid, OrderByComparator<Vacaciones> orderByComparator) throws NoSuchVacacionesException { Vacacio...
0
17013483c9cc83dc55a5af3b97efd35e
4a4853194b480352c4ea57ea79faff15
Finishes the asynchronous execution of the CreateWorkspaceImage operation.
namespace Amazon.WorkSpaces CreateWorkspaceBundleResponse EndCreateWorkspaceBundle(IAsyncResult asyncResult);
0
3573784aace66eaf693571e4dbe125df
436ff8c67f496af5c5f29adefcdf45d1
两个点组成的控件。用来实现边(Edge)刚体和距离关节等。
function ControlPoint(){}
0
e698ce3c282009d8c23554bc26a3b5a5
2554b322feb32a304c0c7f3a955b283a
Método que devolve as perguntas da data.
$questionsArray = $this->createQueryBuilder('q') ->where('q.createdAt < :dateStart') ->andWhere('q.createdAt >= :dateEnd') ->setParameter('dateStart', $dateStart) ->setParameter('dateEnd', $dateEnd) ->addCriteria($this->getCriteriaQuestionNotDeleted())...
1
72bba2c9beb614e9d0b8b60dd7e95eab
b5ac396fdbd7523b9b92f01a359ba17d
创建一个工单查询器
public function createTaskQuery(): TaskQueryInterface;
1
740bf9cc04e772f89c268b0dcc3d5a22
5c8f898a8a859fa3951c0875555afc4f
获取0-网约车1-出租车
public class AtoolsUtil public static String getCarPool(String carpool) { return carpool.equals("1") ? "顺风车" : "专车"; }
0
5623b0bfa956666793b19a69864ee727
92b3ee6a8fc0441558da76bcb519bc93
进入财商首页
class BBsPage(base.BasePage): #定位器 def bbs_into_jinhua(self): home = self.find_element(*self.bbs_jinhua) home.click()
0
61d963e3ff6e7002c9d0b8d9a2e3a885
9cdb295780c6cc7b5b233a0bd74188de
Write an {@code sint32} field, including tag, to the sink.
public class CxProtobufSender public void WriteSInt32(int fieldIndex, int value) { WriteFieldNumAndWireType(fieldIndex, 0); value = PbMath.Zig(value); WriteVarint(Convert.ToInt64(value)); }
1
afa1a47904de0d8d38cc954e0a4bce88
61f3ff8628011957eabd929a1a74c9e7
HABTM with one condition
class ModelRelationConditionsTest extends DbTransactionalTestCase #[Test] public function shouldFetchHasManyJoinWithCallbackCondition() { $category = Category::create(['name' => 'samsung']); Product::create(['name' => 'cris', 'id_category' => $category->getId()]); $searchCategory = Categ...
0
79d20dfd67d578212c89240b4fad0728
dfd44b90ca64fd6523ef81f965e2545b
Check if no possible moves for both players
list1 = list(self.get_legal_actions(board,'X')) list2 = list(self.get_legal_actions(board,'O')) return [False, True][len(list1) == 0 and len(list2) == 0]
1
e49dc5f000b2d2cfe827274b084b3ba8
a04f2a770c45fc429b25eabbda88ab6a
Re-seeding is not supported by the HW. This function does nothing.
int zeroIoctl(int fd, unsigned long command, int seed) { return -1; }
1
c369000593a691a595cf13adc10725fb
0cc96a0e6356bedbf567d7447aba0fe1
根据id获取Syorganization
@Service public class ComOrganizationServiceImpl implements IComOrganizationService @Override public ComOrganization get(Long id) { return comOrganizationDaoImpl.get(id); }
0
0a8cbd77f66879d4bbf60854bd0fcf99
78002f576047c485bac411b84c8fd30d
两个双精度类型的数字 是否相等
namespace GiftWrapping public class Tools static public bool EQ(double a, double b = 0) { return Math.Abs(a - b) < _eps; }
1
5d6b11a6978fd21c4e7ca70838525b40
a538ef2855d1a208375250845ca8547f
ProtoToHttpRouteRulesActionRetryPolicy converts a HttpRouteRulesActionRetryPolicy object from its proto representation.
func NetworkservicesBetaTcpRouteRulesToProto(o *beta.TcpRouteRules) *betapb.NetworkservicesBetaTcpRouteRules { if o == nil { return nil } p := &betapb.NetworkservicesBetaTcpRouteRules{} p.SetAction(NetworkservicesBetaTcpRouteRulesActionToProto(o.Action)) sMatches := make([]*betapb.NetworkservicesBetaTcpRouteRule...
0
da142a33cb97cef05201ab04002b80c0
b210412bd79d4d0bcfc01503d2624e4e
https://leetcode.com/problems/can-i-win/description/
class Solution bool canWinNim(int n, int role, unordered_map<string, bool>& memo) { if (n < 1) { return false; } else if (n <= 3) { return true; } stringstream ss; ss << n << '-' << role; auto key = ss.str(); if (memo.end() != memo.find(k...
1
acfc0fa3672013cbb01b00d104ad84a5
1450cfa76eeedd6b30322c420efa813e
Converts an XML file to jME binary. The syntax is: "XMLtoBinary file.xml out.jme"
public class MeshLabLauncher public static boolean convertModel (String inputFileName, String outputFileName) { return convertModel ("", inputFileName, outputFileName); }
0
e3fb0500b36cb6ff8444c9fb53babbe5
04a07e2f7554acc91b7a72b3b5c95f5d
Il FileChooser è la finestra che permette di scegliere file dal pc (in questo caso locandine con formato jpg, png o gif)
FileChooser imFileChooser = new FileChooser(); imFileChooser.setTitle("Choose image"); imFileChooser.getExtensionFilters().addAll( new FileChooser.ExtensionFilter("Image Files", "*.png", "*.jpg", "*.jpeg", "*.gif", "*.tif", "*.tiff"), new FileChooser.ExtensionFilt...
1
1c963cde70631bf597abdef90be1baaf
5e9efcff13b460fdfec37708c8aaa054
所有交易所
return ['zb_qc', 'zb_usdt', 'zb_btc', 'btc_qc', 'btc_usdt', 'bcc_usdt', 'ubtc_usdt', 'ltc_usdt', 'eth_usdt', 'etc_usdt', 'bts_usdt', 'eos_usdt', 'qtum_usdt', 'hsr_usdt', 'xrp_usdt', 'bcd_usdt', 'dash_usdt', 'bcc_qc', 'ubtc_qc', 'ltc_qc', 'eth_qc', 'etc_qc', 'bts_qc', 'eos_qc', 'q...
0
bceb4daa99d5cd1736ffae7227ead028
8ae253a093e69b9c8d10dd47178f9e0b
检查s3中是否已经存在
def checkIfS3FileExist(s3FullPath): s3util = S3Util.S3LocalUtility() bucketName, s3filePath = parseS3filePath(s3FullPath) return s3util.ifS3FileExist(s3filePath,bucketName)
1
b026aa046bbdbbb8323a012c1dbfdab9
a9f61d52717df6a6fd2b1a07c380b934
返回终端符编码(下标),不存在返回0
int jiefuornot(char ch) { int i; for (i = 0; i < 18; i++) { if (ch == jiefuchart[i]) return (i+1) ; } return 0; }
1
259382710394319b81f68c71c11327b3
46b3049d2ff3c727792a00e05027be92
Estimate the cost of evaluating a Like expression.
public abstract class Query extends Prepared public int getCostAsExpression() { return (int) Math.min(1000000.0, 10.0 + 10.0 * getCost()); }
0
b73447ca5990ee2b2d865848e580a75e
5283681788316700b505d28e82538c95
Выполняет поиск отдела по его описанию.
namespace Website.Domain.DataSources.Departments public Task<Department> FindAsync(Guid id, DepartmentSelectionSettings selectionSettings);
0
0f2eb7290fe4581ef8134c92f94fa076
88a4d74952895d266814801b9fea90dd
获取组织内所有编程语言列表
@Controller @RequestMapping("/api/projectLanguage") public class ProjectLanguageController @RequestMapping(value = "/getProjectLanguageList", method = RequestMethod.POST) @ResponseBody public void getProjectLanguageList(HttpServletRequest request, HttpServletResponse response) { try { res...
0
c70bd9f467f4def74b3459351b91fddf
5fdb1745d55440529e3a0677c59ce8f2
Returns non-zero if ICC is inserted, zero otherwise
class Terminal public function hasIc() { return $this->hasIc; }
0
2f26a31ce582697344581ed2f1b1c861
87e92c7ffc604d6dd709cc5f79c03326
Counts the number of words in a song
export class EntryService countWords(body:String) { return body.match(/\S+/g).length; }
1
4787c97d29e1d4f5aecd79b9a12bdcb1
b1f9fd10e24cdb0e9f82eaffb02bd272
Creates a new instance of a capability manager.
EventEmitter.call(this); this._specs = {}; this._sources = {}; this._order = []; this._resolvers = []; this._special = {}; this.resolver(require('./resolvers/id')()); }
1
2b90a9952a9611e365bfe89d3d4e1c4a
6caf3a7b35065955c2cbbf91fdca98d4
Returns the frequency of each word length within the given file
poem = open(filename) word_counts = {} for word in poem: word = word.rstrip() words = word.split(" ") word_counts[word] = word_counts.get(word, 0) + 1 print(f"{words} {word_counts}") return word_counts poem.close()
0
c148c6813a486fa40bc909da595048d7
34da4bbb9c09673e966cf551a83fd907
级联保存:保存客户,级联联系人
@RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = "classpath:applicationContext.xml") public class test @Test @Transactional @Rollback(value = false) public void testCascadeAdd(){ Customer customer = new Customer(); customer.setCustName("客户2"); LinkMan linkMan...
1
e626b39511db1b7e059b418d262c48eb
5576b4dc1e26a93bfad061bef1b8a893
halla el siguiente numero primo
size_t obtener_nueva_capacidad(size_t capacidad_vieja){ bool encontrado=false; size_t posible_primo=capacidad_vieja; while(!encontrado){ posible_primo++; if(es_primo(posible_primo)){ encontrado=true; } } return posible_primo; }
1
4de14cf663c77100efe1eee9ec1a290a
268cf9ebdf325e8177906a480215c7c6
This method executes when the Subtract button is pressed. It parses the inputs in the two Subtraction Term textboxes, subtracts them and sets the Subtraction Output label to the result
namespace CalculatorProject public partial class MainWindow : Window private void Operation_Subtract_Click(object sender, RoutedEventArgs e) { OperationPressed(Operation_Subtract.Content.ToString()); }
0
09f99198848f92f87e5d13782602a080
581f58d728998d358e5494ce3ea94ad9
1247. 交换字符使得字符串相同
public class Leetcode_917_371 public static void main(String[] args) { String s = "Test1ng-Leet=code-Q!"; String s1 = reverseOnlyLetters(s); System.out.println("s1 = " + s1); }
0
de40334e433ddde5055d2cd3fc28d528
7b06f661caccc84cd4b627f384da6170
item_df の各行に対応する項目のランキングを取得
def rank(df, count_col, stemmer=None): corpus = df_to_bow(df, count_col, stemmer) corpus_counts = Counter(corpus) df_count = create_count_col(corpus_counts) df_rank = create_rank_col(df_count) return df_rank
1
200a40a88e7871d28c149aeb70fa6f9a
95308ce6a2b0514f3e3d37dbfc852d70
Verifies that the current INSERT sql call ran successfully.
public class DatabaseTransactionHelper private boolean insertionStatus(long result) { return result != -1; }
1
148890b24667095bdd6a75b80c731624
6b72dd40f8c82b7aa1b1f6e46ad5fe3f
Whether concurrency checking is currently disabled.
class DisabledChecks def all_disabled? @all_disabled end
0
230284255925b3cd410ade3ef4a07881
e8c53c4a8fc92e78df65a40553cbc005
Test that init and quit actually work
dest = Path.home() home = Path.home() / ".rc4me" rcd = RcManager(home, dest) assert rcd.home == home assert rcd.dest == dest assert rcd.repo_path is None assert rcd._current_is_init()
0
c7209d6d7350e6b0e95e37f27b0af7b5
2954e98f46734625c98d4a9f49bb017f
스케줄러에 의해 가져온 일간차트 데이터를 일간차트 DB에 저장
global $dbInfo; if($startDate > $endDate){ return; } list($hostUrl,$user,$pwd,$dbIns) = $dbInfo; $conn=mysqli_connect($hostUrl,$user,$pwd,$dbIns); if(!$conn){ echo "Debugging errno : ". mysqli_connect_error() .PHP_EOL; exit(); } $conn->set_charset("utf8"); if($flag == 1){ ...
1
b3fc92bf957aab598967cc7352b2e5c0
7c3b1a01d2f4bfc9a864905ba779f2ea
Signals that config has been activated for an {@link com.yahoo.vespa.config.server.application.Application} belonging to a tenant.
public class DefaultRolesCreatorForTenant implements TenantMgtListener @Override public void onTenantActivation(int i) throws StratosException { }
0
17dd6a6b9c7328fec9e597b42eefbf7f
e7e1ca6546ecfed6a4a281cd5911dfab
Get all the pictures that belong to the user
namespace VimeoOpenApi.Api public partial class UsersPicturesApi : IUsersPicturesApi public List<Picture> GetPictures (decimal userId, decimal? page = default(decimal?), decimal? perPage = default(decimal?)) { VimeoOpenApi.Client.ApiResponse<List<Picture>> localVarResponse = GetPicturesWithHttp...
1
377fe25b8bcac36f193d4791274e081c
08f2aa73f5585fff14fac78c5885f336
The Amazon Resource Name (ARN) that specifies the assessment template that is created. :cloudformationAttribute: Arn
class AssessmentTemplateEventSubscription(dict): def topic_arn(self) -> str: return pulumi.get(self, "topic_arn")
0
9bab81ad21addcc458eab946f6740b3d
7641e4ff4e6a038de7d5f3e14e040bcd
Retorna todos os canais existentes no servidor
@RestController public class ChannelController @GetMapping("/getChannels") public ResponseEntity<?> getChannels(){ List<Channel> list=channelService.getChannels(); return new ResponseEntity<List<Channel>>(list,HttpStatus.OK); }
1
4988d5d26c4a2356c9f84f3e7ef001d4
617d75b5111b4d54715456c93804fe87
Setter for <code>storeal.stl_wishlist_product_cart.quantity</code>.
@Generated( value = { "http://www.jooq.org", "jOOQ version:3.6.0" }, comments = "This class is generated by jOOQ" ) @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class StlWishlistProductCartRecord extends TableRecordImpl<StlWishlistProductCartRecord> implements Record4<UInteger, UInteger, UInteger...
1
e6c8338e7361f1cfad9c14da49f446bb
12371b59f9a0a2f7439b77b6d5dd9f64
@brief AVX2 optimized version of FillDurationsGeneric()
assert vtmp.getRegisterCategory().equals(AMD64.XMM); Label labelDone = new Label(); Label labelBelowThreshold = new Label(); assert src.number != dst.number && src.number != len.number && src.number != tmp.number; assert dst.number != len.number && dst.number != tmp.number; ...
0
4ad2a1ecff0d8a2c95700f54482a2889
e6b3409a944d931279129cd8ec01e695
读取轴最大允许的随动误差值
namespace KHBC.LD.ARCM.DeviceApi public class ArcmApiLib [DllImport("libserviceinterface.dll", EntryPoint = "rs_set_global_joint_maxacc", CharSet = CharSet.Auto, CallingConvention = CallingConvention.Cdecl)] public static extern int rs_set_global_joint_maxacc(UInt16 rshd, double[] max_acc);
0
d8b543811d55890b562af2b3f02a3b57
a364b5e154898658ac290873af42b618
Generates a human friendly representation of the lattice parameters of a structure. Keyword Arguments: format: ('screen'|'html'|'mathtype')
from .printing import str_ return str_( self, substances=substances, with_param=with_param, with_name=with_name, **kwargs )
0