content
stringlengths
10
4.9M
package org.demo.model.ws; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; /** * @author <NAME> on 2016-05-16. * Websocket request from client model */ @JsonIgnoreProperties(ignoreUnknown = true) public class WsMessage { AffectedArea area; CrudType crudType; String affectedId; String token; Ob...
package com.example.Fragment; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.view.WindowManager; import com.example.ecar.R; import java.util.ArrayList; import java.util.List;...
/** * author:kongge * date:2018/5/25 * layout: * description: */ public class DemoOneActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.auto_demoone_layout); View llLineContainer = ...
<reponame>trilkk/faemiyah-demoscene_2015-04_64k-intro_junamatkailuintro #ifndef VERBATIM_STATE_QUEUE #define VERBATIM_STATE_QUEUE #include "verbatim_threading.hpp" #include "verbatim_state.hpp" /** \brief State queue. * * Static data only. */ class StateQueue { private: /** Number of states to store. */ ...
package handles import ( "fmt" "html" //todo: временно "log" "net/http" // "net/url" // "github.com/SergioNEOM/Eclair/common" // "../users" "github.com/SergioNEOM/Eclair/templates" ) const COOKIE_NAME = "Eclair-+-Token" const refreshJWTPath = "/refresh/" // // // SetHandles устанавлив...
#include "stdafx.h" #include "socket_helper.h" #include "io_buffer.h" #include "socket_mgr.h" #include "socket_stream.h" #include "socket_listener.h" #ifdef _MSC_VER #pragma comment(lib, "Ws2_32.lib") #endif socket_mgr::socket_mgr() { #ifdef _MSC_VER WORD wVersion = MAKEWORD(2, 2); WSADATA wsaData; WS...
#pragma once namespace rosic { /** Implements a whole bank of filters of type rsModalFilterFloatSSE2. */ class rsModalBankFloatSSE2 { public: /** \name Setup */ //void setModeParameters(int numModes, // double* omegas, double* amplitudes, double* phases, // double* attacks1, double* attacks2, double...
def _sync(self, provision): if provision: if not self._sync_once(self.SYNC_REQUEST_PROV, [self.SYNC_CONFIRMED_NO_PROV], [self.SYNC_CONFIRMED_PROV, self.SYNC_FAILED_NO_PROV, self.SYNC_FAILED_PROV]): self._vp("Already prov...
Preoperative Computed Tomography-Derived Bone Densities in Hounsfield Units at Implant Sites Acquired Primary Stability The purpose of this study was to evaluate preoperative CT-derived bone densities in Hounsfield units (HU) at implant sites that acquired primary stability, and to compare these values to the optimal ...
<gh_stars>0 import pandas as pd import numpy as np import torch from alcokit.extract.segmentation import from_recurrence_matrix def ssts(item, axis=0): """ Start-Stop To Slices @param item: a pd.DataFrame with a "start" and a "stop" column (typically the metadata of a db) @param axis: @return: 1d ...
use crate::utils; use crate::utils::stack::Stack; pub fn main() -> Result<(), std::io::Error> { let input = get_input()?; println!("Day10/Part1 Sol: {}", part1(&input)); println!("Day10/Part2 Sol: {}", part2(&input)); Ok(()) } fn part2(input: &[Vec<char>]) -> usize { let mut result = vec![]; ...
def add_folder(self, folder, from_root=False): if from_root: folder = os.path.join(os.path.dirname(__file__), folder) logger.debug("Adding folder: %s", folder) if os.path.isdir(folder): new_plugins = plugins.from_folder([folder], ...
<filename>domain/src/main/java/com/bitunified/ledconfig/domain/product/mounting/EndCapLeftMounting.java<gh_stars>0 package com.bitunified.ledconfig.domain.product.mounting; public class EndCapLeftMounting extends Mounting { }
<filename>src/conf.rs use clap::{Arg, ArgMatches}; lazy_static! { pub static ref ARGS: ArgMatches<'static> = get_config(); pub static ref DEBUG: bool = ARGS.is_present("verbose"); } fn get_config() -> clap::ArgMatches<'static> { clap::App::new("clinte") .version(clap::crate_version!()) .au...
package com.example.denaun.aoc2021.day20; import java.util.List; class ImageEnhancementAlgorithm { private final List<Cell> cells; private ImageEnhancementAlgorithm(List<Cell> cells) { this.cells = cells; } static ImageEnhancementAlgorithm copyOf(List<Cell> cells) { return new ImageE...
#include "../world/world.h" #include "../render/view.h" #include "interface.h" void Interface::render(View &view, World &world){ //Position and Size ImGui::SetNextWindowSize(ImVec2(450, 280), ImGuiCond_Once); ImGui::SetNextWindowPos(ImVec2(50, 470), ImGuiCond_Once); ImGui::Begin("Erosion Controller"); ImG...
/** * @param igniteIdx Ignite index. * @param cacheIdx Cache index. */ private void checkCacheLocalMetrics(int igniteIdx, int cacheIdx) throws IgniteCheckedException { IgniteInternalCache internalCache = grid(igniteIdx).cachex(CACHE_PREFIX + cacheIdx); GridCacheContext cctx = internalCach...
/*! \brief Verify copy of a dylp constraint matrix (consys_struct) Compare two bonsai consys_struct's for equality. There are two levels of comparison. Exact looks for exact equivalence of content and size. Inexact checks that each consys_struct describes the same mathematical system, but ignores the constrain...
module BoardTest ( boardTests ) where import Board import Test.HUnit testRowNeighbours :: Test testRowNeighbours = TestCase (assertEqual "for (rowNeighbours ((7,6))," [(7, 1), (7, 2), (7, 3), (7, 4), (7, 5), (7, 7), (7, 8), (7, 9)] (rowNeighbours (7, 6))) testColumn...
<reponame>cgoldberg/corey-projects #!/usr/bin/env python # Copyright (c) 2009 <NAME> (<EMAIL>) # # Single-threaded HTTP Load Generator import sys import time import sys import http.client # URL parameters USE_SSL = False # HTTPS/SSL support HOST = 'example.com' PATH = '/' INTERVAL = 0 # secs ...
def calculate_image(self, **params): specter = self.calculate_specter(**params) if DTMMConfig.verbose > 1: print("Calculating image.") print("------------------------------------") self.image_parameters.print_info() print("---------------------------------...
// return TRUE to continue parsing, return FALSE to abort parsing process virtual int ParseLine( int lineno, int argc, const char **argv ) { int which = 0; bool found = false; ParseType pt = GetWhatLineMeans( argc, argv, which ); switch( pt ) { case PT_SDK_VERSION: { int version = GetFirstInt...
/// The future home of the `values` module (TODO). pub mod value { pub mod parse { use bstr::BString; /// The error returned when creating `Integer` from byte string. #[derive(Debug, thiserror::Error, Eq, PartialEq)] #[allow(missing_docs)] #[error("Could not decode '{}': {}"...
<filename>include/lm/pylm.h<gh_stars>100-1000 /* Lightmetrica - Copyright (c) 2019 <NAME> Distributed under MIT license. See LICENSE file for details. */ #pragma once #include <lm/core.h> #include <pybind11/pybind11.h> #include <pybind11/stl.h> #include <pybind11/functional.h> #include <pybind11/numpy.h> // ...
def convert_date(date_cell, date_mode): date_value = None if date_cell.ctype == 1: try: date_format = '%d/%m/%y' date_value = datetime.strptime(date_cell.value, date_format) except ValueError: date_format = '%d/%m/%Y' date_value = datetime.strpti...
package FrameDisplay_System_ZSafiro; public class Frame_Free { }
package katas.kyu7; public class SimpleFun2CircleOfNumbers { public static int circleOfNumbers(int n, int firstNumber) { return (n / 2 + firstNumber) % n; } }
def correlation(self, displace, kernel): displace = K.expand_dims(displace, 0) kernel = K.expand_dims(kernel, 3) out = K.conv2d(displace, kernel, padding='valid', data_format='channels_last') out = K.squeeze(out, 0) return out
/** * Checks the expression at the supplied index from the context's * {@link ExprValuesContext} {@link ExprListContext}, preserving the null value * (or returning null if the index is invalid) to determine if the arguments are * valid according to the supplied signature * * @param exprVisitor * ...
def predict(self, X): if self.mapping is None: return {'predict': X} result = {name: X.iloc[:, column_slice] for name, column_slice in self.mapping.items()} return result
class PolySwarmTransactionException(Exception): pass class InvalidKeyError(PolySwarmTransactionException): pass class InvalidSignatureError(PolySwarmTransactionException): pass class WrongSignatureError(PolySwarmTransactionException): """ To be raised when the payload signature does not match ...
<reponame>jorgelopez1/hdfs package com.mesosphere.sdk.dcos.clients; import org.junit.Assert; import org.junit.Test; import com.mesosphere.sdk.dcos.DcosConstants; import com.mesosphere.sdk.dcos.DcosVersion; import java.io.IOException; import java.net.URISyntaxException; /** * Tests for the {@link DcosVersionClient}...
class AnacondaHandlerProvider: """Just a convenience wrapper """ __metaclass__ = AnacondaHandlerMeta
/** * @author Rinat Gareev */ class PUtils { public static Word getWordAnno(JCas view, Annotation focusAnnotation) throws CleartkExtractorException { Word wordAnno = null; if (focusAnnotation instanceof Word) { wordAnno = (Word) focusAnnotation; } else if (focusAnn...
<gh_stars>1-10 package com.revolsys.geometry.model.util; import com.revolsys.geometry.model.Point; import com.revolsys.geometry.util.Triangles; public class TriangleImpl { public Point p0, p1, p2; public TriangleImpl(final Point p0, final Point p1, final Point p2) { this.p0 = p0; this.p1 = p1; this....
Morgan Wandell is head of TV drama at Amazon Studios. (Photo courtesy Amazon) Amazon’s new detective series “Bosch” is another crime drama entering a very crowded field. But for the online retailing giant, the show marks a new stage of ambition as it seeks to take on Netflix, HBO and Hollywood studios with original TV...
import React from 'react'; import LoadingPanel from 'app/components/charts/loadingPanel'; const defaultProps = { height: '200px', }; type Props = { reloading: boolean; loading: boolean; } & typeof defaultProps; type State = { prevReloading: boolean; prevLoading: boolean; key: number; }; class Transitio...
<filename>livechat/configuration/__init__.py #pylint: disable=C0114 from livechat.configuration.client import ConfigurationApi
/** * This starts a cassandra container for all tests. * Restarting the container for each class is not working properly with this container. */ public class CassandraDockerContainerExtension implements BeforeAllCallback, AfterAllCallback { private static Logger LOG = LoggerFactory.getLogger(CassandraDockerCont...
<gh_stars>10-100 package tests.utils_test3; public class superclass2 {public superclass2(String name, String id, int grade) { this.name = name; this.id = id; this.grade = grade; } void b(){ int g=0; }}
// RemoveUser removes a User from the room. func (r *Room) RemoveUser(userName string) error { if len(userName) == 0 { return errors.New("*Room.RemoveUser() requires a user name") } r.mux.Lock() if r.usersMap == nil { r.mux.Unlock() return errors.New("The room '" + r.name + "' does not exist") } if _, ok :=...
async def route_event( *, event: Dict[str, Any], app: Application, schema_id: str, schema: Dict[str, Any], topic: str, partition: TopicPartition, offset: int, ) -> None: logger = structlog.get_logger(app["api.lsst.codes/loggerName"]) logger = logger.bind( topic=topic, par...
Uropathogens and the antibiogram profile from a tertiary care hospital: A 2-month study post conversion of a COVID dedicated center to a non-COVID one Background: Urinary tract infections (UTIs) are one of the most common bacterial infections in humans, both in the community and the hospital settings. The distribution...
class _TargetShape: """ A small helper class for representing shapes which might be n-dimensional matrices (len(dims) > 0) or unary types (len(dims) == 0). """ dims: list dtype: type @property def num_dims(self): return len(self.dims) @property def type(self): if len(self.dims) != 0: ...
Incident portal vein thrombosis in liver transplant recipients in New Zealand: Predictors of risk and validation of portal vein thrombosis risk index calculator The risk of spontaneous portal vein thrombosis (PVT) is increased in patients on the waiting list for liver transplantation and increases perioperative risks....
#ifndef MATH_HPP #define MATH_HPP #include <radix/core/math/Vector3f.hpp> #include <radix/core/math/Vector4f.hpp> namespace radix { /** \class Math * @brief Math helper class */ class Math { public: static constexpr float PI = 3.14159265358979323846f; static constexpr float DEG_TO_RAD = PI / 180; static cons...
While the Pittsburgh Penguins took time to prepare for an always-critical matchup against the in-state rival Philadelphia Flyers on Sunday (7:30 p.m. ET, NBCSN), they also took time to acknowledge that some things are more important than hockey when they invited 13-year-old Noah Brocklebank to attend their morning skat...
/** * Test of getPeptidesForProtein method, of class PeptideLowMemController. */ @Test public void testGetPeptidesForProtein() { System.out.println("getPeptidesForProtein"); PeptideLowMemController instance = new PeptideLowMemController(); List<PeptideLowMem> result = instance.ge...
/** * All matrixes of the model equations for a set of observations. */ private class ModelEquations { final DMatrixRMaj A, B, f, Q, We, v, Qvv; ModelEquations(int numEquations, int numObservations, int numParameters) { A = new DMatrixRMaj(numEquations, numObservations); ...
def fetch_url(url): content = None headers = None notes = None status = None headers = {'User-Agent': 'PyCrawl 0.1'} try: resp = requests.get(url, headers=headers) except ValueError as e: logging.error('Invalid url on {} - {}'.format(url, e)) note = 'invalid url' ...
/* * JBoss, Home of Professional Open Source. * Copyright 2013, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can redistribute it and/or modify it * unde...
Cost-effectiveness of 4 mg dibotermin alfa/absorbable collagen sponge versus iliac crest bone graft for lumbar degenerative disc disease in the United Kingdom Abstract Aims To develop a model to evaluate the cost-effectiveness of 4 mg dibotermin alfa/absorbable collagen sponge (ACS) versus iliac crest bone graft (ICBG...
<filename>dlls/propsys/propsys_main.c /* * propsys main * * Copyright 1997, 2002 <NAME> * Copyright 2008 <NAME> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version...
<reponame>toitware/orderedhash<gh_stars>0 // Copyright (C) 2021 Toitware ApS. All rights reserved. // Use of this source code is governed by an MIT-style license that can be // found in the LICENSE file. package orderedhash import "testing" // An unreasonable equality function for strings, where all // strings have...
Spectral ripple discrimination in children with auditory processing disorder Abstract Objective: The purpose of this study was to examine developmental trends in spectral ripple discrimination (SRD) and to compare the performance of typically developing children to children with auditory processing disorder (APD). Stu...
/* * yaffs_search_end() disposes of a search context and cleans up. */ static void yaffs_search_end(struct yaffs_search_context *sc) { if (sc) { list_del(&sc->others); kfree(sc); } }
package be.tinati.maze; public class Hammer extends Item { public Hammer() { super(" H "); } }
/*** * Writes samples to an encoding session from a sample buffer. * @function sox_write * @tparam userdata ft Format pointer. * @tparam userdata buf Buffer from which to read samples. * @tparam integer len Number of samples available in buf. * @treturn integer Number of samples encoded.. * @see sox_write */ st...
package main import ( "fmt" ) func MinInts(nums ...int) int { var minVal int for i, e := range nums { if i == 0 || e < minVal { minVal = e } } return minVal } func main() { var str string fmt.Scan(&str) cnts := make([]int, 2) for _, c := range str { cnts[c-'0']++ } fmt.Println(MinInts(cnts...) *...
Please enable Javascript to watch this video WEST MICHIGAN - A woman suing Jimmy John's for $75,000 says a mistake on her sandwich left her disabled and unable to talk above a whisper. "I go to the grocery store and I can’t even ask a question without having people go, 'What’s wrong with you?'" said Lindsey Bresnahan...
<reponame>conanbos/crawl_cve_data # from urllib.request import urlopen # from urllib.parse import urlparse import requests from bs4 import BeautifulSoup from urllib.error import HTTPError from urllib.error import URLError import NVD_CVE_file import CNNVD_file import downloader import time # import json_data import ...
/** * process limits on some permission entries * @param permissionEntrySet * @param limitEnvVarsString can have types in there or not * @param permissionLimitBeanMap the map of permission entry to its associated limits * you can get that with PermissionLimitBean.findPermissionLimits() */ public...
trait Humanity { fn sing(&self); fn jump(&self) { println!("jump"); } fn rap(&self); fn keyboard_man(&self) { println!("all keyboard man"); } } struct DollarKiller {} impl Humanity for DollarKiller { fn sing(&self) { println!("sing"); } fn rap(&self) { ...
/* * LED Codes Library * * Copyright 2018-2020 <NAME> (@RavenSystem) * */ #include <string.h> #include <stdio.h> #include <esp8266.h> #include <FreeRTOS.h> #include <etstimer.h> #include <esplibs/libmain.h> #include "led_codes.h" #define DURATION_OFF 130 #define DURATION_ON_MIN 20 typedef struct ...
def save_data(self, data_label, data, shape = None, comm = None): b1 = self.router is None b2 = False if not b1: b2 = self.router[comm].rank == 0 idx = self.metadata[data_label]["token"] data_path = self.workspace_folders[idx] fname = self.metadata[data_label]['fname'] ...
def create_volume_datafile(casepath): import numpy casepath = os.path.abspath(casepath) out_path = os.path.join(casepath, "_output") repo_path = os.path.dirname(os.path.abspath(__file__)) claw_path = os.path.join(repo_path, "src", "clawpack-v5.5.0") logger.info("Creating total volume datafile fo...
360-degree video for YouTube was introduced earlier this year, giving users the ability to move their phones or mouse cursors to shift their POV in any direction. Within a short time major advertisers such as Coca-Cola and Nike began using the new technology to create videos for their YouTube channels with the hopes of...
/* -*- Mode: c++; tab-width: 2; indent-tabs-mode: nil; -*- */ /* 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/. */ #include "mozilla/ipc/MessageChannel.h" #include "mo...
/** * <pre> * Run the job as a specific service account, instead of the default GCE robot. * </pre> * * <code>string serviceAccount = 4;</code> * @return This builder for chaining. */ public Builder clearServiceAccount() { serviceAccount_ = getDefaultInstance()....
EDISON — A handful of homemade explosive devices, stuffed with gunpowder and ready to detonate, was seized from the home of a 16-year-old Edison High School student Sunday night, township Police Chief Thomas Bryan said tonight. Police found fuses attached to "less than six" carbon dioxide cartridges packed with gunpow...
import {describe, it} from 'mocha'; import {RootController} from '../controller/root'; import {TestUtil} from '../misc/test-util'; import {ViewModel} from '../model/view-model'; import {RootApi} from './root'; function createApi(): RootApi { const c = new RootController(TestUtil.createWindow().document, { title: '...
// removeVotes removes call votes from the storage. func (k Keeper) removeVotes(ctx sdk.Context, callID dnTypes.ID) { store := ctx.KVStore(k.storeKey) votesKey := types.GetVotesKey(callID) store.Delete(votesKey) }
<gh_stars>10-100 #include<bits/stdc++.h> using namespace std; int main() { int a[10];//����Ϊ10 ������ʼ��ַ����a������ // for(int i=0; i<10; i++) // scanf("%d",&a[i]); int *p = a; *p = 1; p++; for (p = a; p < a + 10; p++) { cin >> *p; } for (int i = 0; i < 10; i++)...
/** * Removes all objects from the queue. */ public final synchronized void removeAllElements() { m_Size = 0; m_Head = null; m_Tail = null; }
class WebPage: """ This class serves as a general containiner for an EBay webpage. """ def __init__(self, driver, start_url: str): """ Parameters ---------- driver : webdriver.Webdriver Seleniumwebdriver used to communicate with the browser window. st...
/* * erase_screen - erase a rectangular section of the screen, inclusive. */ void Scrollback::erase_screen(const int start_row, const int start_col, const int end_row, const int end_col, const bool honor_protected) { struct scrollback_line * start_line; struct scrollback_line * line; struct scrollback_lin...
/** * Serializes the list of files that needs to localize from AM to Container. */ private void saveLocalFiles(Map<String, LocalFile> localFiles, Set<String> includes) throws IOException { Map<String, LocalFile> localize = ImmutableMap.copyOf(Maps.filterKeys(localFiles, Predicates.in(includes))); LOG.debu...
x=int(input()) out=[] for a in range(0,x): y=input().split() y1=input().split() for b in range(0,4): y[b]=int(y[b]) for b in range(0,6): y1[b]=int(y1[b]) fac=True if abs(y1[2]-y1[0])<y[0]: if abs(y1[2]-y1[0])<y[0]-y[1] or abs(y1[4]-y1[2])==0 and y[1]>0 and y[0]...
// Download returns a file from the map func (f FileService) Download(org, repo, file, branch string) (string, error) { if _, exists := f[branch]; exists { if ret, exists := (f[branch])[file]; exists { return ret, nil } } return "", errors.New("File not found") }
Editors' note (March 25, 2014): HTC has announced the successor to this 2013 model, the HTC One (M8). As HTC's new flagship smartphone, the HTC One is packed to the rafters with top-notch components and technologies including some of the latest processing gear from Qualcomm. In addition to being state-of-the-art, the ...
//Check for Shpere collisions with a bouding cube. void CheckCollisions(Sphere &rb, Mesh &cube) { glm::vec3 cubePos = cube.getPos(); glm::mat4 cubeScale = cube.getScale(); glm::vec3 overShoot; glm::vec3 planeNormal; glm::vec3 spherePos = rb.getPos(); bool collision = false; float distance; if (spherePos.x + rb....
. Mononuclear phagocytes are considered pacemakers in the pathogenesis of proliferative vitreoretinopathy (PVR), but their precise biological origin in preretinal PVR traction membranes has remained obscure. This study presents a combined immunohistochemical protocol for the detection of microglial cells, which was ap...
<filename>app/models.py # -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models from django.contrib.auth.models import User # Create your models here. class Neighbourhood(models.Model): ''' Model for the neighbourhoods ''' name = models.CharField(max_length =255) ...
/* Copyright The containerd Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
def references(self) -> Set[Tuple["Param", Optional[int]]]: refs: Set[Tuple["Param", Optional[int]]] = set() for ref_set in self._refs.values(): refs = refs.union(ref_set) return refs
import java.util.Scanner; public class TomarDaraHbeNaah{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); String s=sc.next(); String subs = s.substring(0,(int)(s.length()+s.chars().filter(sn->sn=='a').count())/2); System.out.println(s.equals(subs+sub...
<filename>git-lfs.go package main import ( "fmt" "os" "os/signal" "sync" "syscall" "github.com/github/git-lfs/commands" "github.com/github/git-lfs/lfs" ) func main() { c := make(chan os.Signal) signal.Notify(c, os.Interrupt, os.Kill) var once sync.Once go func() { for { sig := <-c once.Do(lfs.Cl...
PLNGene Analysis in Horses: Multiway Approach for the Investigation and Validation of Molecular Variation In this study, a molecular characterisation of the PLN gene with whole genome sequencing (WGS) and complete transcriptome sequencing data was performed on 868 horses, supported by Sanger sequencing and the PCR-RFL...
class WeaveGrid: """Class to encapsulate generation of sites where strands intersect. Can generate both triangular and square grid 'cells' as visual representation of overlaps of two or three strands at a site. Atrributes: basis (np.ndarray): matrix to calculate x,y coordinates of a ...
package com.ustudy.exam.model.statics; import java.io.Serializable; import java.util.List; public class ExamMarkProgress implements Serializable { /** * */ private static final long serialVersionUID = -2152649918868691953L; private int examId = 0; private String examName = null; private String schoolId...
/** * Base class for all Lucene unit tests. * <p> * Currently the * only added functionality over JUnit's TestCase is * asserting that no unhandled exceptions occurred in * threads launched by ConcurrentMergeScheduler and asserting sane * FieldCache usage athe moment of tearDown. * </p> * <p> * If you * o...
/** * Sets the value of a field with basic type. If the value is a string * value, it isn't allowed to be #NULL. If the field doesn't exist, * it will be created. * * @param header the header * @param field the field to set * @param type the type of the value * @param value the value as for _dbus_marshal_set_ba...
//------------------------------------------------------------------------- // only play audio for the first round of each match void CGameRulesStandardRounds::ShowRoundStartingMessage(bool bPlayAudio) { int primaryTeam = GetPrimaryTeam(); EntityId localActorId = g_pGame->GetIGameFramework()->GetClientActorId(); CGa...
/** * Represents a BIFF Record that describes the selected area of a worksheet */ public class Selection implements BIFFRecord { private byte[] rwTop = new byte[2]; private byte colLeft; private byte[] rwBottom = new byte[2]; private byte colRight; private byte[] rwActive = new byte[2]; ...
The unequal distribution of the gains of Fairtrade (FT) derives in a large part from the characteristics of certification. The certification system presents a twofold bias against the poorest developing countries. First, there are considerations related to the costs of certification. These being the same everywhere, th...
/** * When a fetch store fails, we don't need to keep the pushed data * around. This function deletes its... * * @param nodeId The node id on which to delete the data * @param storeName The name of the store * @param storeDir The directory to delete */ pub...
<reponame>usenixatc2021/SoftRefresh_Scheduling<filename>linsched-linsched-alpha/arch/frv/include/asm/mb-regs.h<gh_stars>100-1000 /* mb-regs.h: motherboard registers * * Copyright (C) 2003, 2004 Red Hat, Inc. All Rights Reserved. * Written by <NAME> (<EMAIL>) * * This program is free software; you can redistribute ...
Development of resonators for high-power CO2 lasers A brief review is made for the schemes of optical resonators for the generation of a high-quality beam in high-power CO2 lasers. The main results of the self-filtering resonator application in the industrial laser are presented. The self-filtering resonator is compar...
def remote_apis_sdks_go_deps(): if "com_github_pkg_errors" not in native.existing_rules(): go_repository( name = "com_github_pkg_errors", commit = "27936f6d90f9c8e1145f11ed52ffffbfdb9e0af7", importpath = "github.com/pkg/errors", ) if "com_github_golang_protobu...
/* * parse_xml.c * * Created on: Sep 2, 2015 * Author: vassik */ #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <stdint.h> #include "../thingml_xpath.h" void xpath_error_callback(void* _instance, ...) { printf("xpath_error_callback is called\n"); } void xpath_integer_value_callbac...