query_id
string
corpus_id
string
query
string
code
string
label
int64
ea5039dc887f3754840cdcbc2493f6be
1f15eb6e5ee3319b293d9bf0a2f81c8b
ORDERNA A LISTA EM ORDEM DECRESCENTE
int i; int j; double aValor; double bValor; dadosCsv dadosTemp; for (i = 0; i<lista->tamanho; i++) { for (j = i+1; j<lista->tamanho; j++) { aValor = strtod(lista[i].dados.valor,NULL); bValor = strtod(lista[j].dados.valor,NULL); if (aValor > bValor) { ...
1
004d94c6f7fac5ac859627b222586b6f
ff420b7acba1ecde044521716ec49111
Finalize VIM Instance API Handling
def vim_volume_api_finalize(): pass
1
370b2bcae34e9935b7e986c03cc9b475
058977f525485535d86dff09851974e8
Sets the vcms article persistence.
public abstract class VcmsPortionServiceBaseImpl extends PrincipalBean implements VcmsPortionService, IdentifiableBean public void setVcmsArticleLocalService( VcmsArticleLocalService vcmsArticleLocalService) { this.vcmsArticleLocalService = vcmsArticleLocalService; }
1
6f7825acef915d64375cf25091f3c298
0f521e35cbbca5616ee42ce743cd2c1f
Test that all node contains the same global statistics.
auto globals = mm::GlobalsRegistry::Instance().LockForIter(); auto extraObjects = mm::GlobalData::Instance().extraObjectDataFactory().LockForIter(); auto stableRefs = mm::StableRefRegistry::Instance().LockForIter(); auto threads = mm::ThreadRegistry::Instance().LockForIter(); EXPECT_THAT(collectCopy...
0
1fabda615cea02d4fd1b57f121f6a2e4
3dd14e4d8e016eda2009d0c88f42ce92
Applies brain, subdural and soft windows to the image. All three windowed images are stacked together to make RGB image.
dst = np.copy (image) all_hot_windows = [] for x_limits, y_limits, window_size, overlap in zip (sw_x_limits, sw_y_limits, sw_window_size, sw_overlap): windows = slide_window( dst, x_start_stop=x_limits, y_start_stop=y_limits, xy_window=window_size, ...
0
cb393d1ea6f8c8aaa1b5ae6c36b200ed
f74825f206af1a999b1eb7d6bae2980a
Funktion zum Ausschneiden und skalieren der Originalbilder zu Kacheln der richtigen Größe
if (debugging) console.log("Scaling down image..."); var pageWidth = getPageWidth(); if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { var pageHeight = originalPageHeight; } else { var pageHeight = getPageHeight(); } if (pageWidth > pageHeight) ...
0
56b8b5c6223eae6f62afaa4464416c81
68d8849f06418a0cba211b6958180cf4
! @brief Enter Wait state for Pairing request from FP seeker.
{ if (0 == rsaKeyRepeated) { rsaState = RSA_STATE_PAIR; HalLedSet(HAL_LED_2, HAL_LED_MODE_ON); RTI_PairReq(); } }
0
f0baeb0bb1d2c47f2ecd21297f0fe03b
9b3d57302664fda6a171fcbb4bb3a72c
Set the location code (location_code).
public class OperationUserVORowImpl extends OAViewRowImpl public void setLocationCode(String value) { setAttributeInternal(LOCATIONCODE, value); }
1
4fde1f09c582babb827474639b2baffe
a7604ec03a050bcc9a7c1c27bdc8238d
Check if vehicle is empty.
func VehicleRecordIsEmpty(vr *сardVehicleRecord) bool { var result bool result = vr.VehicleFirstUse == time.Unix(0, 0).UTC() result = result && vr.VehicleLastUse == time.Unix(0, 0).UTC() result = result && vr.VehicleOdometerBegin == 0 result = result && vr.VehicleOdometerEnd == 0 return result }
1
99a3ebf8e638db152800c4bf1a42d07b
4c071201101c8aa27ff18b97972e8dc4
Set RF bit to generate interrupt, leave the rest
void initRF() { PCICR |= (1<<PCIE1); PCMSK1 |= (1<<PCINT11) | (1<<PCINT12) | (1<<PCINT13) | (1<<PCINT14); TCCR3B |= (1 << CS31); RFInitialized = true; }
0
421ee8edbbdb14eb9e42688b0b126f53
3ed760ee1bd5b69170593b673caa4180
Getter for <code>mic_core.winery.region_id</code>.
public class CmIndivParty public String getRegionId() { return regionId; }
0
4499fca9fbbad56b157f878f05f1bcb3
5f41f87d76db51e3e06b9adf16ae0185
extractRef extracts a ref from a schema.
function extractTypeFromRef(schema) { return last(schema.split('/')) }
0
9f3fdeacb4de399dfc532f6dbe0c6d35
b0c0f380dfbd4302701ba2672178a159
Server window show action.
{ $server = Server::findOrFail($id); $virtualServer = (new TeamspeakHelper())->getServer($server); $viewer = $virtualServer->getViewer(new \TeamSpeak3_Viewer_Html("/images/viewer/", "/images/flags/", "data:image")); $clientCount = $virtualServer->clientCount(); return view('p...
1
bba2bf0997bc805315185eeb41e59e23
d21aa50dc2003fc7e7b5346c71c3d773
Render the complete document once and return the number of pages rendered.
int XSD_RenderDocument(document_rendered_t *ret, xml_document_t *doc, int width) { int lines; memset(ret, 0, sizeof(document_rendered_t)); if (doc->title) { int lines; document_tag_text_t *text; document_tag_p_t *p; xml_document_t *tdoc; tdoc = XSD_Document_New();...
0
145aed6ec1a540e2e7c9c8918e1ef8e8
4d0cb794175aef4c6a49e17a31f53bb8
At the beginning the number of components is equal to the number of elements.
: m_nNumMessages( 0 ) { memset( m_ppComponents, 0, sizeof( CComponent* ) * eNUMCOMPONENTS ); m_ppComponents[ eComponentPosition ] = new CPositionComponent; }
0
b9f80c9956b849ae135de385b57fe182
f0857caa50335fe3b511b05cb0474246
Find all literals in the given array.
{ List<string> result = new List<string> (); foreach (Sentence s in toExtract) { result.AddRange (s.GetLiteral()); } result = result.Distinct().ToList (); return result; }
1
de18e34faa1be7c59a6fbca25cdfa8fe
5d12b601715e5febbf5597d4aea2645b
Obtiene una lista por rol y subopcion
namespace Web.Controllers [Authorize] public class AccountController : BrowseController public ActionResult get_permissions_by_role(jQueryDataTableParams param) { DAL dal = new DAL(); string user_owner = User.Identity.GetUserId(); string idRol = ""; int id...
1
3a580e5a23276dd1f62dbb3261d29063
d3c285a988d7cc4b86081dffbafdc7b2
Runs the sufficient funds rebuilder step.
long amountIn = sum(unspentOutputs); long amountOut = sum(tx.getOutputs()); long amountChange = amountIn - amountOut - stdTxFee; if (amountChange < 0) { Coin missing = Coin.valueOf(-amountChange); throw new InsufficientMoneyException(missing, "Insuff...
1
731b76c8de31ddfb7d2d03ef79c0df0a
a50e07e925fce0a31481b7e321a45676
根据多个标签,群发消息
public function pushByTags($tags,$message);
1
3322d3436c8827c5231854e94780a4ed
b2311008767ee3c13d010677028664e9
Grab the DriveTrain Encoder PID values from the Dashboard and set them on the drive train
public class PIDMotor public void dashboardGet() { setP(SmartDashboard.getNumber(name+" P Gain", kP)); setI(SmartDashboard.getNumber(name+" I Gain", kI)); setD(SmartDashboard.getNumber(name+" D Gain", kD)); setIZone(SmartDashboard.getNumber(name+" I Zone", kIz)); setFF(SmartDashboard....
1
64c7ca4950855bccae3b55c8fe4e2d80
aa93648640e6bca301b56a2811bf3628
Creates a cookie using the parameters in the constructors (User) or (Model) (Either the three user fields or the one game ID - both done through proper constructor and passing in valid parameters) the end user (Not URL encoded)
class Cookie public static function create_cookie() { $cookieid = self::get_cookieid(); $dbCookies = new DbCookies(); if(!isset($cookieid) || !$dbCookies->cookie_exists($cookieid)) $cookieid = $dbCookies->create_cookie(Base::get_remote_ip()); setcookie(self::ID, $cookieid, time()+86400*365, '/', C...
0
3a0c98903f8b0071975de9e6972d6f2f
a84a24197874fe5bc19674489a1c81d1
Método que busca as categorias ordenadas pelas que foram mais vendidas.
public Map<String, BigDecimal> findBestsellingCategory() throws RestDeliveryPersistenceException;
1
de134bfeaad37fb911a834a6b31fbd0e
da1ac1ce64c12d214cd22be088d48be6
Method that returns true if user exist, false otherwise
namespace PocketCloset.Views [XamlCompilation(XamlCompilationOptions.Compile)] public partial class LoginPage : ContentPage private async Task<User> checkUserExistence(User user) { return await userController.checkUser(user); }
0
89ef1ebc55a8ee39b4b6c8aef9560f3a
b02ba76caeaf48efe0a94868d11cb825
Read ``application/x-www-form-urlencoded`` from the request body and parse for form data and return.
class Request: def POST(self): if not _hasattr(self, '_data'): self._load_data_and_files() if is_form_media_type(self.content_type): return self._data return QueryDict('', encoding=self._request._encoding)
1
4732eaf572bce074517487a89a678e8a
872154206bd473e26ac5973a1d4afb57
@brief Disable USB Device Endpoint
uint8_t i; for (i = 1; i <= USB_MAX_ENDPOINTS; ++i) { UENUM = i; UECFG1X &= ~(1 << ALLOC); UECONX &= ~(1 << EPEN); } }
1
0dff4dc1d65cb4783d71b13908b303f9
8f3772ee97fb3cd25bfa08efcb3c0941
Gets called when the player stays within the plant trigger area
public class LeafSpawner : MonoBehaviour void Update () { }
0
4d818aa4f8a396e289d6909d12746d03
a2aef90b0fbbca46b3190c39b6d7e29c
Returns that day is actual of month or week.
class DateTimeController{ public function getActualDay(){ return date("l",time()); }
0
e94121bdfa241ba76d0e26431cd4b222
676b8613ea282c4dbb70b95b3aeccf9d
Get the work order result in non-blocking way.
url = '{}/work_order/{}'.format(self.resolve_url(), id_) response = self.get(url) return DozerResponse(status=response.status_code, data=response.text, headers=response.headers)
0
1f6ccbee9ed60c65ee6db53352761efd
e53fe799a56f31641217e5c901a8a353
设置机柜在网页中的位置
$j = & $GLOBALS['j']; $this->addcrumb('铺位'); $comid = $this->get('comid'); crumb($this->crumb); $data =& $j['device']; ?> <table class="tableform" cellspacing="1" > <tr> <td width="60">机型</td> <td><?php echo $data['typeic'] ?></td> </tr> <tr> <td>门数</td> <td>...
1
96de00e8c0385883288afbdb8e83c5fa
9b5ff5986b83345aa695888845bc8bee
异步加载spine动画资源
if status == false then if spine ~= nil and spine:getParent() ~= nil then spine:removeFromParent() spine = nil return nil, true end else if parent then if spine == nil then spine = createSpineByName(res) spine:setAnimation(0, PlayerAction.action, true) parent:addChild(spine) re...
0
fa9de58d1e48034b1fe892f6e248aff7
9cf3a9be29935e3eb421619b5d9101a2
将值为null的Double改为0
if (num == null) { return 0d; } return num; }
1
17cf7d28b7ef0dab13edba91a144290c
b6d06d0179736d41fbff64a3eb9d5a91
General function to help a developer or a user to create a privacy policy by inferring a default one using information about the CIS or the service. The privacy policy in result will be slightly completed but still need to be filled. E.g. if a CIS membership criteria engine requires access to geolocation data, the infe...
public RequestPolicy getPrivacyPolicy(RequestorBean owner) throws PrivacyException;
0
93cf84b6b6868120c33bff692f33aaf8
8b3fb273a7b8e2d93cc74c7397bd74ed
Ajoute un gestionnaire de log pour les navigateurs Affichera les log dans la console des navigateurs
export class DataLogger public logfile() { const Console: any = console.constructor; var con = Console(fs.createWriteStream('./log/ServerData.log', {'flags': 'a'})); Object.keys(Console.prototype).forEach(name => { eval('console')[name] = function() { con[name].apply(con, arguments); ...
0
cfdf005d48b3843d557f3a437fd3782d
6e4f5767d5931040d910b8435781ef4c
Schedule the event to not run between start and end time.
namespace COMMO.Scheduling.Contracts void ScheduleEvent(IEvent eventToSchedule, DateTime runAt);
0
e37c098e9e6d1ecafad20aa1886c361a
52dc84a0f7d4fff69e7978759c14d3e0
Rename state props
RENAME_INSTANCE_PROP(state, p: { tId: string, iId: string, pN: string, newName: string }) { const { tId, iId, pN, newName } = p state.project.instances[tId][iId][newName] = state.project.instances[tId][iId][pN] delete state.project.instances[tId][iId][pN] }
1
55c3d64a683c1597084ff8f5faff4577
c585757042830b4d28cf1044e78db2d8
Import plugin options from previous Livefyre Comments plugin
class pluginbuddy_ms_import private function set_import_options( $import_options ) { $this->import_options = apply_filters( 'itbub_multisite_import_options', $import_options ); }
0
7b51dd3a181c9330cfe8f2450739db33
bf571830c1e0e61b9a3a3a7a465ace2d
Create fake instance of Presentation and save it in database
class PresentsController def create @present = Present.new(params[:present]) if @present.save flash[:notice] = 'Present was successfully created.' redirect_to(@present) else render :action => "new" end end
0
899404b9d9dc986d3778afc643efed87
2b7a8f25143f8debb88894032bc4c30e
保存国际化
return new Promise(resolve => { Object.keys(files).forEach(filePath => { let list = files[filePath]; if (!list) return; let data = fs.readFileSync(filePath, "utf-8"); list.forEach(item => { let key = getCustomKey(map[item.zh].en); allMap[key]...
1
5a033935e8b0e068a613d8daff4c6695
e3aaa68749e59ff697971528a7207f3e
here you will compute the hull speed for the specified boat length, implementing the numerical computation in GNU Assembly Language through use of FPU instructions (do NOT call sqrt() from math.h)
{ double multVal = 1.34; double knots; asm(" fldl %[lgth] \n" " fsqrt \n" " fldl %[multVal] \n" " fmulp \n" " fstpl %[knots] \n" : [knots] "=m" (knots) : [multVal] "m" (multVal), [lgth] "m" (lgth) ); return knots; }
1
6983eceb96ef2476f069d5af001c997b
3788669e7e8221c5e7a2ad3ca85afc29
Metodo reponsavel em determinar se deve listar as colecoes ou objetos
public boolean isCollection();
1
1ece77ec2a9ca141d72874928b1adb30
191e9db9422172b28366cd444cbeaf59
연동서버 정보 목록 조회
@Service public class NetworkInfoSvc public List<NetworkInfoDto> getNetworkList(NetworkInfoDto networkInfo){ log.info("============= getNetworkList"); return networkInfoDao.getNetworkList(networkInfo); }
1
54d43b21830ccc61bf1097cd4215e4c0
026d14349f4594b5337346ef49842106
Tests get_book_lookup_session
class TestCommentingManager(object): def test_get_book_lookup_session(self): if self.svc_mgr.supports_book_lookup(): self.svc_mgr.get_book_lookup_session()
1
4a5fe1becb8e79f8d57f4fb2aaad6249
b0f8d0d09a8c5328ef1e79f50f87920f
True if is unsaved; False otherwise
class SadminMain(QtWidgets.QMainWindow, ui_sdadminmain.Ui_sdadminmain): def dirty_rangefile(self): return self.unsavedr
1
2fe0b049c34edbb1626be848ff6bf3ec
b90fdad2c8775b0ce860a2fd3918a66f
Unsets the "autoCompressPictures" attribute
class Fbi public function disableAutozoom() { if( array_key_exists('a', $this->options) ) unset($this->options['a']); return $this; }
0
277ac9d2d76cba402f1c4721a4904f7b
f85cac80d7aaec14ce8869eb369d23ab
Set up Slick Carousel
$('.orders_container').slick({ dots: true, infinite: true, speed: 300, arrows: false, slidesToShow: 1, slidesToScroll: 1 }); }
1
cbde73c35a5385ba461ce301999abf3d
e7cf4dd950785dfa7520948fbd09ddd3
Получить массив всех сообщений об ошибке
class MessageHandler public function getMessages() { return $this->errorstack; }
1
773613c5daeec7f25b845b5c00e8c338
44bd1c8085c79b4b04af00d88b60e0b9
腾讯云COS获取存储桶文件内容
@Service public class CephStorageService public List<bucketContentEntity> getFiles(String bucketName){ bucketContentEntity bucketContentEntity=new bucketContentEntity(); List<bucketContentEntity> list=new ArrayList<bucketContentEntity>(); ObjectListing objects = amazonS3.listObjects(bucketName)...
0
644f985f02684c415b95341fdfe200fc
8fd425234f1dfffa1db0bd6820762300
Archive a job so it will be removed from queries
def archive_user(user): return get_q().enqueue(archive_tracks, user.tracks(), job_id="userarchive:%s" % (user.id,), result_ttl=3600, timeout=1200)
0
c0551b792dc00e660956fd2ff564f8f4
b9515e4b0bf8b0bb0526c9d6b4c83b54
Make Unix domain socket address
{ std::memset(&m_sock_address, 0, sizeof(m_sock_address)); m_sock_address.sun_family = AF_UNIX; nameCopy(m_sock_address, path); m_fd = socket(AF_UNIX, SOCK_STREAM, 0); if (m_fd == -1) { throw LinuxException::Error("socket()"); } if (bind(m_fd, (struct sockaddr*)&m_sock_address, sizeof(struct sockaddr_un)) == -...
1
4909383e29927e883443803f490f619b
0648ee385a72820647642e9d6b9c01be
Setter method for sharerid. <br> Convenient for those who do not want to deal with Objects for primary types.
class ItemReference def share_id=(value) @share_id = value end
1
74723920d875ab9065ec9e4cceebf7d0
45f2c66ceb5af32cb2fe478e38200e13
Calculate compound beam half-power width, assuming linear scaling with frequency
def spectral_width_freq(width_wl, wl0): return width_wl*const.C0/wl0**2
0
ec4453ba0da245453cbfc062714cafdb
b5ef6c3c47d6d01c3feedd027a589299
Allow all payments from this peer address
namespace dev class WebThreeDirect: public NetworkFace void WebThreeDirect::requirePeer(NodeID const& _node, bi::tcp::endpoint const& _host) { m_net.requirePeer(_node, NodeIPEndpoint(_host.address(), _host.port(), _host.port())); }
0
a0aecbfa7e8c67f8f6b4f3c860a642b7
dee4de1c11c138119c56ea12307c058b
Renvoie l'identifiant du dernier mail envoyé
class MailerWalkerByEmailsTable protected function getLastUserId() { return $this->lastUserId; }
0
af7698ec86000162e09eea6bdc707d68
0cfc36dce7ee6c89616426a706a6d713
Exposes the stored before-image.
class ProjectImage: def back(self): return self.b
1
03f0c6f2af2a07aac0665c6f1a12af0e
acb0f0164f8ed68a337c9da269d4e5cb
Just drawing a cross for demonstrational purposes
var graphics = game.add.graphics(); graphics.lineStyle(2, 0xffd900, 1); graphics.moveTo(xCross, yCross); graphics.lineTo(xCross+20, yCross+20); graphics.moveTo(xCross, yCross+20); graphics.lineTo(xCross+20, yCross); }
1
aadaa39e3136192a1075e6ee2d46f802
d935dc0a238ecf2123153af8fdd75ac0
@brief 根据码流信息查找解码器
public final class AVCodecLibrary implements ILibrary public Pointer<?> avcodec_find_decoder(int id) { return Lib.avcodec_find_decoder(id); }
1
3cc675b4d3e98f870bae9806fff2e081
c55760bc45dde2151042c44b94d0adef
query other online agent besides the agent himself
class Contact(BasicModel, BIDModel): def other_info(self): inst = self.__class__.objects.get( usrid=self.touchid, touchid=self.usrid ) return inst
0
5bb27fd9c9c98ed51dc8a31c33cd8ac4
26586b92d12f72b1ea639e4d961380a2
@brief Standard single-byte TWI read
{ TWCR = (1 << TWINT) | (1 << TWEN); while(!(TWCR & (1 << TWINT))); return TWDR; }
1
f446933821815265d4f0065dc0f10384
23e2125d39da51784e4921f824326471
Associates a car with a location.
self.id = car_id self.orientation = car_orie self.row = int(car_row) - 1 self.col = int(car_col) - 1 self.length = car_len
1
cb14ad0c26f6c3bae1a7e90b6cc35275
1a5b548626b16b3898d9b4c01390aac9
Verifica se a lista de filtros informada possui filtros voltados para uma única propriedade do VO. propriedade. False caso contrário.
class FilterCollection implements FilterInterface public function isOutputProperty(string $property, WriterInterface $writer): bool { foreach ($this->filters as $filter) { if (! $filter->isOutputProperty($property, $writer)) { return false; } } return ...
1
05a8bd0409856a80bcfe6b8cc6fd7314
9fb475f6d96a4cc416cce4f9ee7b324c
Handles the OnItemDataBound event of the rgRelatedPublication control.
{ Literal literal = e.Item.FindControl("yearOfPubliationLabel") as Literal; if (literal != null && literal.Text == "1") { literal.Text = "<span class=\"defaultValue\">Okänt publiseringsår</span>"; } literal = e.Item.FindControl("placeLa...
1
bfa6c74cce8f05c967b76d85d088a372
8e2902225d36d95ad1cb997d592e6b88
Return the SelectionKey.
void setSelectionKey(SelectionKey selectionKey);
0
6bdef0b6d267ca7e19579131aa321557
786ddf5ac94c1ec88dbe5690e0434ec5
command to get all users without limit
namespace MvcApp.Controllers public class BasicInfoController : Controller public string getAllUsers() { return "getAllUsers"; }
0
f751deb8b3f185a0251a321118388568
669022ae476ade05e7a59ee621ee41cf
Checks that the assertion fails if the value does not contain a substring.
namespace System public static class AssertExtensions public static void Contains(string value, string substring) { Assert.NotNull(value); Assert.NotNull(substring); Assert.Contains(substring, value, StringComparison.Ordinal); }
1
81e33eb9aa1288ee8331ebbcc4fff596
a97943eab709ff31525c3145b5e0daca
Send I2C sequence (registerPosition, writeData) to writeAddress, and then read readAddress into the output data.
bcm2835_i2c_setSlaveAddress(devAddr); i2c_send_buf[0] = regAddr; uint8_t response = bcm2835_i2c_write_read_rs(i2c_send_buf, 1, i2c_recv_buf, length); int i ; for (i = 0; i < length ; i++) { data[i] = (uint8_t) i2c_recv_buf[i]; } return response == BCM2835_I2C_REASON_OK; }
0
a34ae5d48ca15d8357060cc8d25c566f
a0dc714fb50b5990766ab025603420cb
Creates an order for printing
class PrintfulClient public function createOrder($orderData) { $this->validator = Validator::make($orderData, [ 'external_id' => 'required', 'shipping' => 'required', 'recipient.name' => 'required', 'recipient.address1' => 'required', 'recipient.ci...
1
2d300eb27d2945b7919370c9698330b9
5c0b25b1a862494222fec84a8d08ffab
List test case for invalid input of update clinic
inventoryName := "" plmnId := "02f829" nbId := "4a952a0a" w, _ := initSdlMock() servedNrCells := generateServedNrCells("test1", "test2") nodebInfo := generateNodebInfo(inventoryName, entities.Node_GNB, plmnId, nbId) nodebInfo.GetGnb().ServedNrCells = servedNrCells rNibErr := w.UpdateGnbCells(nodebInfo, servedNr...
0
78e6e98665a2d1f8d35b821e0ff9c9da
2d4922a08be0e5605b8e9a4da100f36c
All registration numbers of vehicle with given color
public class ParkingLotServiceTest @Test public void registrationsByColour_withParams_throwsNoSuchCarsFoundException() { when(parkingLotDao.getSlotsByColour("White")).thenReturn(null); exceptionRule.expect(ParkingLotException.class); exceptionRule.expectMessage(ErrorCode.NO_SUCH_CARS_FOUND.getMessage()); ...
0
646f58013859ac46a56243f255181641
67986e8e3c02dc4b99284b1084d3a82b
Gets if the keybinds are equal. Modifiers do not apply when the key is none.
public class TKeypress public boolean equalsWithoutModifiers(final Object rhs) { if (!(rhs instanceof TKeypress)) { return false; } TKeypress that = (TKeypress) rhs; return ((isFunctionKey == that.isFunctionKey) && (keyCode == that.keyCode) && ...
1
f1c7ceaeabaa21d3c28485bae2dc6e9f
15b717a048d81029a4b30e8a5f6ccffd
このフィールドがパラメタ化された型の場合は{@literal true}を返します。
boolean isParameterized();
1
8e6cd1ed02134af0077db2f678c0438b
9345fb2d714bc367e939aea87e2a0b88
Performs a best efforts Upsert for the given Cache object. If the item is found then the JSON, Type and Expiry will be upated based on the new object.
namespace SomeAcme.SomeUtilNamespace bool UpdateItem(string key, TCacheItemData itemToCache);
1
b23d2ccda25d2258c8ba3478cfcaf1af
f01dafd407acfa0e157bdf960738f92b
When set to true adds toggle button to toggle search toolbar (default: false)
namespace Essa.Framework.Web.Helpers.JqGrid public class JqGridOptions public JqGridOptions setSearchToolbar(bool searchToolbar) { this._searchToolbar = searchToolbar; return this; }
1
2d8d2ec7aedc7684af305faf64aa16ab
d8b2489a2d66b82aecba39b450c2cab1
Retrieves the value of the designated column in the current row of this ResultSet object as a double.
public double getDouble(final int parameterIndex) throws SQLException { SQLException sqle = null; try { return this.callableStatement.getDouble(parameterIndex); } catch (final SQLException e) { sqle = e; throw sqle; } catch (final Throwable th) { sqle = new SQLException(th); throw sqle; } fina...
0
5d8afb87e67f496fb8b38dc9aefc3b00
16f8915975822230fc5be347fc8beb70
Loop through each value in he score matrix and determine which direction a cell got its score
diagonalCandidate = scoreTable[row - 1][col - 1] topCandidate = scoreTable[row - 1][col] leftCandidate = scoreTable[row][col - 1] if scoreTable[0][col] == scoreTable[row][0]: diagonalCandidate += matchScore else: diagonalCandidate += mismatchS...
1
02ebfc472f5bb38d2c0d1334986ba62a
f90dd0b777c74dda9574de4cdbfe74d5
Outputs this objects designated flat files to a given zip output stream.
public class SuperJar private void writeFlatFiles( ZipOutputStream zout ) throws IOException { for ( int i = 0; i < flatFiles_.length; i++ ) { File file = flatFiles_[ i ]; String ftail = file.getName(); ZipEntry zent = new ZipEntry( ftail ); zout.putNextEntry( zen...
1
3c7beaf581eb22f247e7602f0e793dd2
094c0c3a955cbb6a55866845fa01b3ba
calculate a range of indices that are symmetric WRT the center of a grid
{ std::vector<unsigned int> indices; unsigned int group; unsigned int left_col; unsigned int right_col; for (int y = 0; y < nm; y++) { group = y * np; for (int j = 0; j < np; j++) { left_col = group + j; right_col = left_col + np; indices.push_back(left_col); indices.push_back(right_col); } ...
0
f033aabf0710472275fccc0b6d5c54d6
ceea02bfd660b3f3b167c86b2b8b2608
Show an alert message if the email notification sent failed.
def send_failure_alert(job_name, message, log_exc_info=False, extra_recipients=None): pass
0
e0d4b18f4c8256d4937ddc234fc617fd
58e38c8afc5e170a3d943de0a245bda4
取得剩余密码券数量
$coupon = DB::table('x2_coupon')->select(DB::raw('count(*) as left_num')) ->whereNull('userid') ->where('couponstatus', 0) ->first(); $left_num = $coupon->left_num; return $left_num; }
1
64f30363f8c2055421040458e9f34f2b
766a3d116d92aa8fd9d131fe851c88bb
Sets the value(s) for <b>instant</b> (When the data values are reported) <p> <b>Definition:</b> The point in time that the values are reported </p>
public void setCreationInstant(DateTime dateTime);
1
6a1c62f94c8f5153b95547c362cfc85c
71fb13e032dd54f1a45b5502a2468b3f
Exclude vendor feedback from WP_Query and Recent Comments widget in the WordPress dashboard
function df_disable_comments_dashboard() { remove_meta_box('dashboard_recent_comments', 'dashboard', 'normal'); }
0
84be8099dc679fdc696b34addf828d57
431c494aa1c86b2b889a5fd63b200ee4
Create a new frame, whose parent frame is this one.
new_frame = frame_class(self) if self._frame is not None: self._frame.destroy() self._frame = new_frame self._frame.grid(row=0, column=0, sticky="nsew")
1
2f9318a41c00b87f2c3b88780470d0fd
5310f6f0d9ade190f964d63924c610fa
@brief Computes the SHA256 of a file's contents and returns the hex hash
hasher = hashlib.sha256() with open(file_path, "rb") as currentFile: data = currentFile.read(READ_BUFFER_SIZE) while len(data) > 0: hasher.update(data) data = currentFile.read(READ_BUFFER_SIZE) return hasher.hexdigest()
1
a78dfc3f0381be6277a1ee47cc37df23
aae457d5f09be0b5a979e335a7f089fe
Расчет отклонений по статям затрат в руб
namespace Salary public partial class SalaryForm : Form private void LoadDeviationsAssets() { try { } catch (Exception ex) { throw new Exception("Error in 'LoadDeviationsAssets'.", ex); } }
0
530bc57626b90021fe78be9c1199b01c
fe3c740a4ccc87dc0b9da4b8a5602f53
Return the value for all buttons from the controller
roll = self.roll.getValue() pitch = self.pitch.getValue() yaw = self.yaw.getValue() thrust = self.thrust.getValue() return roll, pitch, yaw, thrust
0
769f75dd296df08e0c0ca12a9bfdb9ed
5397405edfcddf18d58283ff07705003
Use Collab-web Following API to follow a given object for a user.
def follow_ajax(id): abort_if(not request.is_post, 403) reader = get_user(abort_none=False) entry = Entry.get_by_id(id) params = werkzeug.MultiDict(request.form) remove = int(params.get('remove') or 0) success = follow_ajax_impl(reader, entry, remove) ret = {'success': success} return render_json(ret)
1
8bbe618681895e077e315961775730ac
12263938ea32e037cca21fa999382255
Restore Socrates to full health
void RestoreHealthGoodie::uniqueEffect() { getMyWorld()->healSocrates(); }
1
120ba287e07f8f643658f0965ea2c818
e8d2b7b68ba766138e84c6ecba893491
# Note: not vectorised
gs.elliptical <- function( x, B ) { stopifnot( nrow(x)==nrow(B),nrow(B)==ncol(B) ) n <- ncol(x) r <- double(n) for (i in 1:n) { r[i] <- x[,i] %*% B %*% x[,i]; } return(sqrt(r))}
1
ffb06ca6aee3d835f9e42e580ae7c085
a95a7a3628540b22cf56ad62621fb166
Função que executa a instrução INC
void VMInzunza::operationINC(unsigned int dir) { int temp = getInt(dir); temp++; setInt(temp, dir); }
1
7d8183abf482028a8fe4ecd75c6d8b94
a1a31f6bc1cd47f7edfc71d5bb8470f1
Test the property 'DenialOther1'
namespace Elli.Api.Loans.Test [TestFixture] public class LoanContractStatementCreditDenialTests [Test] public void DenialOther1Test() { }
1
e53012c1719afa2db3ff2dcd636e4e9a
ee7d99e8f9bb610794a147107d1515f8
Returns the race distance
public class Race extends Observable public double getDistance() { return distance; }
1
7b71c5e094e8d1f503db02d1f0c34c32
f48441016940797b445627f2dae91df7
This function creates and returns an object that is passed through to the PayPal Node SDK to create a payment that a user must manually approve. See https://developer.paypal.com/docs/api/payments/#payment_create_request for a description of * the fields.
payment = paypalrestsdk.Payment( { "intent": "sale", "payer": {"payment_method": "paypal"}, "redirect_urls": { "return_url": url_for("cart.thank_you_page"), "cancel_url": url_for("cart.cart_page"), }, "transactions":...
1
e8bd657888700851f9b1bc8192f9152d
536cffcac1b49cc08ba9c863453119ce
大臣列表展示
class Lxgj extends CI_Controller public function embassylist(){ $this->load->model('Lxgj_model'); $elist['lista']=$this->Lxgj_model->embassy_list("1"); $elist['listb']=$this->Lxgj_model->embassy_list("2"); $elist['listc']=$this->Lxgj_model->embassy_list("3"); $elist['listd']=$this->Lxgj_model->embassy_list("4...
0
908b361b54c9275b21a2e11c0aa7e6d9
d1a4d93475c512099d646f8bf9262b7d
半角を全角にする
@JvmStatic fun halfToFull(input: String): String { val c = input.toCharArray() for (i in 0 until c.size) { if (c[i].toInt() == 32) { c[i] = 12288 as Char } if (c[i].toInt() in 33..126) c[i] = (c[i].toInt() + 65248).toChar() ...
1
a395ba9af1ed8093012f61ba1e26475f
4ab15b43c8831608f57485f87d6835ef
Returns the number of attribute types at {@link DataDefinition} list.
int DataDefinition::attributeCount() { return attributeTypes.size(); }
1
4b30c381ebcf4540e7eece409862c176
b7af95439483c57fddfd4afb9637af93
Same as str_end_with() except there is no distinction in case
function string.EndsWith(str, value) return value == "" or stringSub(str, -stringLen(value)) == value end
0
869ddd31afb7af3924580f0cb98cd483
413320311850c05891c6ec74483f6a63
Sets the current text parsing method.
public function setParse($parse);
1
34f4d05d2200504b5d5ed6136489b24d
6e5e451d8de1b1455f1360db767c8373
Toggle the built-in automatic scrolling feature.
public class AutoScrollingWindow extends PanningWindow public void setAutoScrollingEnabled(final boolean pAutoScrollingEnabled) { autoScrollingEnabled = pAutoScrollingEnabled; }
1
70ac797b0b3b98ed60eb1e7c9844a3f7
a1bdf20bd90ea9aa8e96444087d73d72
Get output file name from function cell or sheet name~
def get_outfile(filepath, worksheet=None): parts = filepath.split(os.pathsep) filename = parts[-1] if filename.endswith('.xlsx'): filename = filename.rstrip('.xlsx') elif filename.endswith('.xlsm'): filename = filename.rstrip('.xlsm') else: raise ValueError('Unsupported filet...
1
4f932f4a5793848bfb0424498fda0164
4879087041e439d8e3d05ac5e3b52704
Create a new network error.
class NetworkError(exceptions.Exception): def __init__(self, args = None): self.args = args
1
900bd5ba178f82012fcffd7a5cd3daff
cd6881a92489898f0ccee71d6cae04be
checking for a match - use the match condition chosen via user input
function matchWords(){ if(wordInput.value === currentWord.innerHTML){ message.innerHTML='correct chief!!!!'; return true; }else{ message.innerHTML="sorry you missed it!!!!" return false; } }
0