content
stringlengths
10
4.9M
#include<stdio.h> typedef struct node { int e; int v; }node; void swap(node* a,node* b) { node tmp=*a; *a=*b; *b=tmp; return; } int main() { int f,i,j,n; scanf("%d",&n); int b[2][2]; node a[n+1]; for(i=1;i<=n;i++) { scanf("%d",&a[i].v); a[i].e=i; } for(i=1,f=0;i<n;i++) for(j=i+1;j<=n;j++) if(a[i]...
<reponame>shadowcrypto1/dsynths-app-v2 export const makeHttpRequest = async function ( url: string, options: { [x: string]: string } = { cache: 'no-cache', } ) { try { const response = await fetch(url, options) return await response.json() } catch (err) { console.error(`Error fetching ${...
/** * Inits the. * * @throws Exception the exception */ @BeforeClass public static void init() throws Exception { contentService = new ContentServiceJpa(); mappingService = new MappingServiceJpa(); workflowService = new WorkflowServiceJpa(); handler = new WorkflowQaPathHandler(); for (...
<gh_stars>1-10 import {Tracker} from '@croct/plug/sdk/tracking'; import {PluginSdk} from '@croct/plug/plugin'; import {Evaluator} from '@croct/plug/sdk/evaluation'; import {SessionFacade, Tab, UserFacade} from '@croct/plug/sdk'; export function createPluginSdkMock(): PluginSdk { const { Evaluator: Evaluato...
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: MIT package util import ( "github.com/aws/amazon-cloudwatch-agent/translator" "github.com/aws/amazon-cloudwatch-agent/translator/config" "github.com/aws/amazon-cloudwatch-agent/translator/util" ) const File_State_Fol...
def _simulate_request(self, url, method='GET', data=None, headers=None, params=None): if headers is None: headers = self.headers headers = self._sanitize_headers(headers) if data is None: body = '' elif isinstance(data, str): ...
/// Update state with a `data` and pad it to blocksize with 0, if not /// evenly divisible by blocksize. pub(crate) fn process_pad_to_blocksize( &mut self, data: &[u8], ) -> Result<(), UnknownCryptoError> { if self.is_finalized { return Err(UnknownCryptoError); } ...
<filename>src/ui/Selector/SelectorList.tsx import React from 'react'; import { FixedSizeList, ListChildComponentProps } from 'react-window'; import AutoSizer from "react-virtualized-auto-sizer"; import Box from '@mui/material/Box'; import ListItem from '@mui/material/ListItem'; import Typography from '@mui/material/Ty...
/** * Tree node representing reference to the key of a Map association. * * @author Steve Ebersole */ public class MapKeyNode extends AbstractMapComponentNode { private MapKeyEntityFromElement mapKeyEntityFromElement; @Override protected String expressionDescription() { return "key(*)"; } @Override protec...
<reponame>ant512/EarthShakerDS #ifndef _WETSOILBMP3_H_ #define _WETSOILBMP3_H_ #include <bitmapwrapper.h> class WetSoilBmp3 : public WoopsiGfx::BitmapWrapper { public: WetSoilBmp3(); }; #endif
Binarity in Cool Asymptotic Giant Branch Stars: A GALEX Search for Ultraviolet Excesses The search for binarity in AGB stars is of critical importance for our understanding of how planetary nebulae acquire the dazzling variety of aspherical shapes which characterizes this class. However, detecting binary companions in...
def jaccard_similarity(correct_duplicates: List, retrieved_duplicates: List) -> float: if len(retrieved_duplicates) == 0 and len(correct_duplicates) == 0: return 1.0 if not len(retrieved_duplicates) or not len(correct_duplicates): return 0.0 set_correct_duplicates = set(correct_duplicates) ...
// GetPkgMetadata reads and parses the package // metadata from the metadata.xml file func GetPkgMetadata(path string) Pkgmetadata { xmlFile, err := os.Open(path) if err != nil { logger.Error.Println("Error during reading package metadata") logger.Error.Println(err) } defer xmlFile.Close() byteValue, _ := iout...
package main import "fmt" var version string var build string type CmdVersion struct{} func (c *CmdVersion) Execute(args []string) error { fmt.Printf("%s (%s) - build %s\n", bin, version, build) return nil }
class TaskType(object): def __init__(self, typename, handlername): self.name = typename self.handler = handlername
Karl Rove is most famous for being architect of one of the worst presidencies in American history and then a Superpac strategist/delusional Romney campaign-night dead-ender. I’m a Rove junkie, and just as a snobbish fan of any popular band must have some obscure album he finds superior to the band’s most popular work, ...
import { InvoiceEntity } from "./invoice-entity"; export class PaymentEntity { id?:number; mode :string; datePayment? :Date; montant :number ; invoice? :InvoiceEntity; }
// changeAdminPassword changes the password for the given admin user. // The password is validated first. // This method also deletes all sessions for the user. func changeAdminPassword(userName string, appContext *MailAppContext, w http.ResponseWriter, r *http.Request) error { body, readErr := ioutil.ReadAll(r.Body) ...
Measurements and Numerical Simulations of Interior Scattering from Simple PEC cavities with Complex Terminations To understand the scattering effect of complex termination, the authors have designed, fabricated and measured two kinds of PEC cavities, i.e. rectangular and circular cavities, with different terminations....
import { EMPTY, of, Subject } from 'rxjs'; import { ServerDateService } from 'app/shared/server-date.service'; import { ArtemisVersionInterceptor } from 'app/core/interceptor/artemis-version.interceptor'; import { AlertService, AlertType } from 'app/core/util/alert.service'; import { MockService } from 'ng-mocks'; impo...
/* * prefetch.cpp * * Copyright (C) 2021 Alibaba Group. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * ...
Hemorrhage in the Floor of the Mouth After Second-Stage Surgery: Case Report Placement of dental implants in the interforaminal region of the mandible is generally considered a routine, simple, and safe procedure. However, severe bleeding and hematoma in the floor of the mouth have been reported as a rare but potentia...
package mongodbclient import ( "context" "time" "go.mongodb.org/mongo-driver/mongo" "go.mongodb.org/mongo-driver/mongo/options" ) type DBConfigForMongo struct { UserName string Password string Host string Port string AppName string DataBaseName string } var dbClient *mongo.Cli...
/** * Get a read only set containing the entries in the Tar archive. * @return A read only set containing the Tar archive's entries. * @throws IllegalStateException If the Tar archive has been closed. */ public Set<Map.Entry<AbsoluteLocation, TarEntry>> entrySet() throws IllegalStateException { assertNotClos...
Subir Verma (Ed.), Towards the Next Orbit: A Corporate Odyssey, 2010, National HRD Network, New Delhi: Response Books, pp. 466, Rs795. Journal of Human Values, 17, 2 (2011): 185–191 Chapter 14 (‘Professional Ethics in the Light of Right Understanding’) starts by defining profession and addresses the issues pertaining ...
/** * Convenient bean to create JSF info/warn/error messages. * Business exceptions can be mapped to user friendly messages inside the {@link #error(Throwable)} method. */ @Named @Singleton @Lazy(false) public class MessageUtil { private static MessageUtil instance; public static MessageUtil getInstance()...
/*========================================================================= Program: ParaView Module: $RCSfile$ Copyright (c) Kitware, Inc. All rights reserved. See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details. This software is distributed WITHOUT ANY WARRANTY; without...
In the wake of the ALP’s poor result in the recent Western Australia Senate election, The Conversation is publishing a series of articles looking at the party’s brand, organisation and future prospects. The key problem facing federal Labor leader Bill Shorten in the wake of the Western Australian Senate re-election is...
Posted 27 January 2012 - 08:05 PM #1 Installation Instructions adb remount adb push /path/to/downloaded/apk/MangoToggle-v0.3beta.apk /system/app/MangoToggle.apk Links Releases MangoToggle is a system-level utility application providing a rooted user the ability to control various radios and/or settings based on th...
// that sort of renders the ActionUtils.mineData() method useless here. Unless we are able to create a mock lookup with only projects and files. @Override public void run() { final Project[] projects = ActionsUtil.getProjectsFromLookup( context, command ); Runnable r2 = new R...
18‐1: Invited Paper: Modeling and Optimizing Human‐in‐the‐Loop Visual Perception Using Immersive Displays: A Review New and rapidly-evolving classes of display devices bridge the gap between us and the immersive experiences of the future. The most intimate of these displays are the Virtual- and Augmented-Reality (VR...
<filename>src/app/pages/registrationmanagement/registrationmanagement.module.ts import { PendingCertificationComponent } from './pendingcertification/pendingcertification.component'; import { PendingCertificationGridButtonViewDetailComponent } from './pendingcertification/pendingcertification-gridbutton-viewdetail'; im...
import click import os import shutil from .vid2slides import v2s @click.command() @click.argument('filename') @click.option('-o', '--output', default='out.pdf') def cli(filename, output): """ Extracts a slideshow from a video presentation """ v2s(filename, output)
<reponame>tobeno/sol export enum LogLevel { DEBUG = 'debug', } export function log(...args: any[]): void { console.log(...args); } export function logDebug(...args: any[]): void { if (process.env.LOG_LEVEL?.toLowerCase() !== LogLevel.DEBUG) { return; } console.debug(...args); } export function logErro...
// This implementation is used at runtime to check if a given request is // intended for this Route. Format collisions works like this: // * If route specifies format, it only gets requests for that format. // * If route doesn't specify format, it gets requests for any format. // Query collisions work like this: //...
/** * CreateStorageContainer enables you to create a Virtual Volume (VVol) storage container. Storage containers are associated with a SolidFire storage system account, and are used for reporting and resource allocation. Storage containers can only be associated with virtual volumes. You need at least one storage...
N = int(input()) S1=input() S2=input() m1="" m=10**9+7 S1+="." for i in range(len(S1)-1): if S1[i]==S1[i+1]: m1+='y' else: m1+='t' m1 = m1.replace('yt','y') score = [1]*len(m1) for i in range(1,len(m1)): if m1[i-1]=='t' and m1[i]=='t': score[i]=2 elif m1[i-1]=='y' and m1[i]=='t'...
Get the biggest Aston Villa FC stories by email Subscribe Thank you for subscribing We have more newsletters Show me See our privacy notice Could not subscribe, try again later Invalid Email Hidden amongst another day of car-crash news for Aston Villa there was a rumour doing the rounds on forums about a new Chinese o...
Introduction & Specifications Competing with Apple in the mobile space isn't rocket science, it's just a matter of sticking to a proven formula for success -- build a premium device with superior specs than the one Apple is selling, inject it with Android, and then undercut the iWhatever in price. That's not to say Ap...
/** * Created by dajuejinxian on 2018/6/22. */ @RestController @RequestMapping("/admin") public class DemoAction extends Cors { @Autowired private IAgentUserDao agentUserDao; @Autowired private ILogRecordDao logRecordDao; @Autowired private IUserDao userDao; @Autowired private Home...
// Copyright 2019 The MediaPipe 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 a...
Report of a meeting of Supporters of the Communist (Maoist) Party of Afghanistan in Europe On December 2012 a meeting of the supporters of the Communist (Maoist) Party of Afghanistan [C(M)PA] in Europe, in the presence of representatives of the party, was held as part of the overall campaign to rectify the party’s sty...
/** * This class represents the result of a multi source matcher execution. */ public class ExecutionResultMultiSource { private static final Logger LOGGER = LoggerFactory.getLogger(ExecutionResultMultiSource.class); private final Object alignment; private final Object parameters; private final O...
A North Little Rock man who was arrested Sunday told police he was running late to a movie after officers clocked him driving 112 mph on Interstate 430, authorities said. Police charged 20-year-old Milton Johnson with speeding, reckless driving and improper lane changing after he was arrested around 11 p.m on the sout...
package com.example.securityauthdemo.config.auth.smscode; import com.example.securityauthdemo.config.auth.MyAuthenticationFailureHandler; import com.example.securityauthdemo.config.auth.MyAuthenticationSuccessHandler; import com.example.securityauthdemo.config.auth.smscode.authentication.SmsCodeAuthenticationFilter; i...
<gh_stars>1-10 package sb func (t Tokens) Iter() *Proc { proc := IterTokens(t, 0, nil) return &proc } func IterTokens( tokens Tokens, index int, cont Proc, ) Proc { var proc Proc proc = func() (*Token, Proc, error) { if index >= len(tokens) { return nil, cont, nil } token := tokens[index] index++ ...
// Copyright 2014 Google Inc. All Rights Reserved. // // 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...
<filename>src/test/java/com/owenfeehan/pathpatternfinder/trim/ConstantStringHelper.java package com.owenfeehan.pathpatternfinder.trim; /*- * #%L * path-pattern-finder * %% * Copyright (C) 2019 - 2021 <NAME> * %% * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software an...
/** * validate SID * * @param id the alleged SID * * @exception RecordFormatException if validation fails */ protected void validateSid( final short id ) throws RecordFormatException { if ( id != sid ) { throw new RecordFormatException( "NOT An S...
<reponame>lukas-vaiciunas/haterminator #include "ImagesUI.h" #include <allegro5/allegro_primitives.h> #include "Mouse.h" #include "Keyboard.h" #include "Constants.h" #include "Painter.h" #include "ImageData.h" #include "Image.h" ImagesUI::ImagesUI(Key toggleKey) : toggleKey_(toggleKey), numCols_(0), numRows_(0), ...
t=int(input()) # total cards l=list(map(int,input().split())) s=0 d=0 try: while True : if l[0]>l[-1]: s=s+l.pop(0) else: s=s+l.pop(-1) if l[0]>l[-1]: d=d+l.pop(0) else: d=d+l.pop(-1) except: print(s,d)
def wp_is_in_front_of_ego_veh(pose, waypoint): _, _, ego_yaw = get_euler_angle(pose) ego_X = pose.position.x ego_Y = pose.position.y waypoint_X = waypoint.pose.pose.position.x waypoint_Y = waypoint.pose.pose.position.y shift_x = waypoint_X - ego_X shift_y = waypoint_Y - ego_Y return (shi...
/** * A mongodb based repository for guest models, i.e. a local version * of guest data. * * @author dschmitz */ @Named @ApplicationScoped public class GuestModelRepository { private MongoClient mongoClient; public GuestModelRepository() { } @Inject public GuestModelRepository(MongoClient mon...
package commonapi import ( "encoding/json" "net/url" "github.com/pinpt/agent/integrations/pkg/mutate" "github.com/pinpt/agent/pkg/requests" "github.com/pinpt/integration-sdk/work" ) func AddComment(qc QueryContext, issueID, body string) (_ *work.IssueComment, rerr error) { if qc.IsOnPremise { return addComme...
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
<reponame>xasync/lupin<gh_stars>0 __title__ = 'damson' __version__ = '0.6.0' __description__ = 'A simple python validation library.' __author__ = 'xasync' __author_email__ = '<EMAIL>' __license__ = 'Apache 2.0' __copyright__ = 'Copyright Since 2019 xasync.com'
<gh_stars>1-10 import type { Settings } from "@google-cloud/firestore"; import type { LogLevel } from "~/utils"; export interface FirestoreDataOptions { /** * Provide a list of paths to import/export. Documents not belonging * to the specified paths are ignored. If none are provided, all paths * are explor...
/* * This method should be called within the constructor, * so that the configuration of provider related setting can be updated * and kept at IExecutionProvider level. */ void CUDAExecutionProvider::UpdateProviderOptionsInfo() { UnorderedMapStringToString options; options["device_id"] = std::to_string(device_...
def recover_security_br(self): if not CONF.SECURITYGROUP.security_bridge_mapping: LOG.warning(_LW("Security bridge mappings not configured.")) raise SystemExit(1) secbr_list = (CONF.SECURITYGROUP.security_bridge_mapping).split(':') secbr_name = secbr_list[0] secbr...
<gh_stars>0 module Android.Regex.Glob ( globToRegex , isPattern ) where globToRegex :: String -> String globToRegex cs = '^' : _globToRegex cs ++ "$" _globToRegex :: String -> String _globToRegex "" = "" _globToRegex ('*':cs) = ".*" ++ _globToRegex cs _globToRegex ('?':cs) = '.' : _globToRegex cs _globToR...
Análise da concentração mássica de materiais particulados provenientes da combustão de diesel e biodiesel Analysis of the mass concentration of particulate matter from the combustion of diesel and biodiesel O biodiesel tem se apresentado como uma excelente fonte de energia alternativa, podendo substituir o diesel mine...
/** * com.lordjoe.Utilities.PropertyDumper * Written largely to test Runtime.exec this dumpe the System properties * @author Steve Lewis */ public class PropertyDumper { public static NameValue[] getSystemProperties() { Properties Props = System.getProperties(); return (Util.mapToNameValues(Prop...
H, N = map(int, input().split()) dp = [[0] + [1e20] * (H) for _ in range(N)] for i in range(N): A, B = map(int, (input().split())) for j in range(1, H + 1): dp[i][j] = min(dp[i - 1][j], dp[i][max(j - A, 0)] + B) print(dp[-1][-1])
#pragma once #include "common.h" TEmethod tesNULL[] = { { 0, NULL } }; TEmethod tesBITMAP[] = { { (VT_I4 << TE_VT) + offsetof(BITMAP, bmType), "bmType" }, { (VT_I4 << TE_VT) + offsetof(BITMAP, bmWidth), "bmWidth" }, { (VT_I4 << TE_VT) + offsetof(BITMAP, bmHeight), "bmHeight" }, { (VT_I4 << TE_VT) + offsetof(BIT...
def create(self): stmts = [] stmts.append("CREATE TYPE %s" % self.qualname()) stmts.append(self.dep_funcs['input'].create(basetype=True)) stmts.append(self.dep_funcs['output'].create(basetype=True)) opt_clauses = [] for fnc in OPT_FUNCS: if fnc in self.dep_fun...
def markAsView(self, episode): for i, e in self.map.iteritems(): if e == episode: try: self.episodes.cellWidget(*i).setStatus(1) except AttributeError: pass e.userPlayed() self.refreshCount() ...
package report import ( "os" "github.com/giantswarm/microerror" "github.com/spf13/cobra" "github.com/giantswarm/resource-police/internal/env" ) const ( flagDryRun = "dryrun" flagSlackWebhookEndpoint = "slack.webhook.endpoint" flagCortexEndpoint = "cortex.endpoint.url" flagCortexUsername = "cortex.username...
def initialize_patch_indices(self): self.patch_indices = [] for i, image in enumerate(self.data): patch_indices, overflow = self.calc_patch_indices( self.unpadded_data_spatial_shape[i], self.patch_shape, overlap=self.patch_overlap, ...
#include <fstream> #include <iostream> #include <string.h> #include <string> #include "core.h" #include "utils.h" #include "parse.h" #include "compile.h" // This is a compiler that reads some cpp file and outputs x86_64 assembly // It would be nice to bootrap it to itself, so limiting the included libraries // might ...
<reponame>benjaminapetersen/tanzu-framework<gh_stars>10-100 // Copyright 2022 VMware, Inc. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package version import ( "fmt" "strings" fuzz "github.com/google/gofuzz" "k8s.io/apimachinery/pkg/util/rand" ) // Fuzz fuzzes the passed version. func Fuzz(v *Ve...
<gh_stars>1-10 import {Component, OnInit} from '@angular/core'; import {FormBuilder, FormGroup, Validators} from '@angular/forms'; import {StaffService} from '../staff.service'; import {Help} from '../../../../../utils/Help'; import {ActivatedRoute, ParamMap} from '@angular/router'; import {switchMap} from 'rxjs/operat...
<reponame>mudphone/HaskellBook module Ten where stops = "pbtdkg" vowels = "aeiou" stopVowelStop :: [Char] -> [Char] -> [[Char]] stopVowelStop stops vowels = [[x, y, z] | x <- stops, y <- vowels, z <- stops] noPs :: [Char] -> [Char] -> [[Char]] noPs stops vowels = [[x, y, z] | x <- stops, y <- vowels, z <- stops, x /...
The Eredivisie outfit have announced on their website that the prolific striker has signed a five-year contract with the 2009 Bundesliga champions Wolfsburg have completed the signing of Bas Dost from Heerenveen for an undisclosed fee.The Eredivisie outfit have announced on their official website that the striker unde...
export enum Privacy { PUBLIC = "PUBLIC", SELF = "SELF", MEMBERS = "MEMBERS", }
<filename>server/src/api/items/index.ts<gh_stars>0 import Router from 'koa-router'; import * as itemsCtrl from './items'; import { isAdminIn } from '../../libs/utils'; const items = new Router(); items.post('/', isAdminIn, itemsCtrl.addItem); items.get('/', isAdminIn, itemsCtrl.listItems); const item = new Router();...
/** * Simple class that holds an immutable reference to another object (or to * <code>null</code>). * * @author Brian Stansberry * */ public class ImmutableReference<T> { private final T referent; /** * Create a new ImmutableReference. * * @param referent the object to refer to, or...
/*=========================================================================== * * Class CObContRecord Method - CObCntoSubrecord* AddItem (FormID, Count); * * Adds a new item to the item list. Returns the new subrecord. * *=========================================================================*/ CObCntoSub...
//---------------------------------------------------------------------------- // used to help speed input pin connection times. We return a partially // specified media type - only the main type is specified. If we return // anything BUT a major type, some codecs written improperly will crash //-------------------...
<filename>experimental/HarbourMaster/harbour-master/dao/src/main/java/org/solent/com504/project/impl/dao/repository/GPSRepository.java package org.solent.com504.project.impl.dao.repository; import org.solent.com504.project.model.dto.GPS; import java.util.UUID; import org.springframework.data.jpa.repository.JpaReposit...
If you remember hearing the words “Hamburger Mary’s” and “opening soon” back in April, you’re not alone. When we last checked in this spring, the decade-and-a-half vacancy of the former Patio Café (531 Castro St.) was only a head chef and a reactivated liquor license away from ending. However, in case you forgot to fl...
<gh_stars>1-10 package com.doggogram.backendsvc.util.responses; import lombok.AllArgsConstructor; import lombok.Data; import javax.xml.bind.annotation.XmlRootElement; import java.util.List; @Data @AllArgsConstructor @XmlRootElement (name = "error") public class ErrorResponse { private String exception; priv...
#pragma once #include "Borders/Border.h" #include "Graphics/NineSlice.h" namespace OpenGLGUI { class NineSliceBorder : public Border { private: NineSlice& nineSlice; public: NineSliceBorder(NineSlice& border); ~NineSliceBorder(); }; }
// GetEnforcementStatus checks if a text string passes AutoMod settings func (s *HelixService) GetEnforcementStatus(broadcaster_id, userID, messageText string) (bool, error) { m := manyMessages{ []message{ { MessageID: random(1, 1000), MessageText: messageText, UserID: userID, }, }, } b ...
def background_to_binding_transition_prior(self, p_binding_site, p_alt_background): result = numpy.zeros((self.N(), self.N())) if self.num_background_mosaics > 1: p_remain_in_bg = 1.0 - p_binding_site/2 - p_alt_background/(self.num_background_mosaics-1) else: p_remain_in_...
Robust multiple‐fault detection filter A new robust multiple‐fault detection and identification algorithm is determined. Different from other algorithms which explicitly force the geometric structure by using eigenstructure assignment or geometric theory, this algorithm is derived from solving an optimization problem....
#!/usr/bin/env python3 from sys import stdin,stdout def ri(): return map(int, stdin.readline().split()) #lines = stdin.readlines() k, r = ri() a = 10**9 b = 10**9 for i in range(10**5): if (10*i+r)%k == 0: a = (10*i+r)//k break for i in range(1, 10**5): if (10*i)%k == 0: b = (10*i...
Three-dimensional numerical analysis of wet cooling tower A mathematical model for water evaporation and water droplet movement is established to describe the air-water interaction in natural draft wet cooling tower (NDWCT).The standard k e − model is used to close the Reynolds average Navier-Stokes equations. The thr...
The Searching Effectiveness of Social Tagging in Museum Websites This paper explores the search effectiveness of social tagging which allows the public to freely tag resources, denoted as keywords, with any words as well as to share personal opinions on those resources. Social tagging potentially helps users to organi...
#pragma once namespace memory { #if defined(_MSC_VER) #define ALIGN(x) __declspec(align(x)) #define MALLOC64(x) __aligned_malloc(x, 64) #define FREE64(x) _aligned_free(x) #elif defined(__APPLE__) #define ALIGN(x) __attribute__((aligned(x))) inline void *MALLOC64(size_t x) { void *pointer; posix_memalign(&point...
package cz.muni.ics.oidc.server.claims.sources; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.node.ArrayNode; import com.fasterxml.jackson.databind.node.JsonNodeFactory; import com.google.common.net.UrlEscapers; import cz.muni.ics.oidc.server.claims.ClaimSource; import cz.muni.i...
/** * Displays a protocol description to a user attempting to grant blessings via NFC. */ public class NfcBlesserActivity extends PreferenceActivity { private static final String PROTOCOL_MESSAGE = "WAIT FOR BLESSEE TO BEAM BLESSINGS!"; @Override public void onCreate(Bundle savedInstanceState) { ...
/** * Represents the RuneScape Bestiary API. * @see <a href="http://services.runescape.com/m=rswiki/en/Bestiary_APIs">Bestiary APIs</a> */ public final class Bestiary { /** * A {@link TypeToken} which represents a {@link Map} of {@link String}s to {@link Integer}s. */ private static final Type TYPE_TOKEN = ne...
def api_update_secret(token, session_secret_key, secret_id, data, data_nonce): method = 'POST' endpoint = '/secret/' data = json.dumps({ 'secret_id': secret_id, 'data': data, 'data_nonce': data_nonce }) return api_request(method, endpoint, data=data, token=token, session_secr...
Destabilization of NaBH4 by Transition Metal Fluorides With the goal of improving performance of a hydrogen-rich storage medium, the influence of a collection of first and second period transition metal fluorides on the destabilization of NaBH4 is studied on samples produced by ball milling NaBH4 with 2 mol% of a meta...
{-# LANGUAGE CPP #-} ----------------------------------------------------------------------------- -- -- Module : GetChar -- Copyright : -- License : MIT -- -- Maintainer : <EMAIL> -- Stability : -- Portability : -- -- | -- ----------------------------------------------------------------------------- ...
/** Return T iff STRATEGY would throw away all transformation. */ @SubL(source = "cycl/inference/harness/inference-tactician.lisp", position = 23179) public static final SubLObject strategy_throws_away_all_transformationP(SubLObject strategy) { { final SubLThread thread = SubLProcess.currentSubLThread(); ...
//////////////////////////////////////////////////////////////////////////////// // // // AliFemtoCorrFctnDEtaDPhi - A correlation function that analyzes // // two particle correlations with respect to the azimuthal angle (phi) ...
// Make sure that NCM VERSION_MISMATCH-es are retried TEST_F(NodeRegistrationHandlerTest, testRetryOnVersionMismatch) { auto settings = buildServerSettings("node1"); auto admin_settings = buildAdminServerSettings("node1"); auto store = std::make_shared<MockNodesConfigurationStore>(); testing::InSequence seq; ...
The four Guy children gathered last week for a Thanksgiving feast at their parents’ tidy, two-story home, situated on the corner lot of Goldenview Lane inside a manicured neighborhood in Knoxville, Tenn. It would be the family’s last holiday together in that house, for in two weeks, Joel Guy Sr., and his wife, Lisa, p...
// TODO: Write a unit test for testing multi-client user handling func TestServer_Serve(t *testing.T) { type fields struct { address string port int } tests := []struct { name string clientCount int fields fields }{ {"local", 1, fields{"127.0.0.1", 8080}}, } for _, tt := range tests { ...