content
stringlengths
10
4.9M
// since maps can be stored in variables and are generated on the fly, // we sometimes need the main block to associate them with func (m *Map) mainBlock() block { var b block = m for b.parentBlock() != nil { b = b.parentBlock() } return b }
import { Divider } from '@/components/Divider'; import { FileServerHost } from './components/FileServerHost'; import { PS4Host } from './components/PS4Host'; export const Hosts = () => { return ( <> <FileServerHost /> <Divider /> <PS4Host /> </> ); };
def avote_random(avote): if avote is None: return None raw_val = DEFAULT_DISTRIB.rvs(size=1)[0] return avote + raw_val
/// call a LuaRef as a function (or table with __call metamethod) /// /// @param ref the reference to call (not consumed) /// @param name if non-NULL, sent to callback as first arg /// if NULL, only args are used /// @param retval if true, convert return value to Object /// if fals...
// IsSliceContainsString method checks given string in the slice if found returns // true otherwise false. func IsSliceContainsString(strSlice []string, search string) bool { for _, str := range strSlice { if strings.EqualFold(str, search) { return true } } return false }
//************************************** // DistanceVertexToFace // Projected vertex is stored in // pVertexProjected //************************************** double SquareDistanceVertexToFace(CVertex3d *pVertex, CFace3d *pFace, CVertex3d *pVertexProjected) { ProjectPointOnFace(...
def _prepare_factor(self, hdr, year, day, month): if "GLONASS SLOT / FRQ #" not in hdr: glonnas_channel = dw.DownloadGlonassChannel(year, day, month) glonnas_channel.download() glonass_channels_parser = pr.ParserChannels(glonnas_channel.file_uncompressed) glonass_...
def prepare(self): super(BlazeMeterUploader, self).prepare() self.send_interval = dehumanize_time(self.settings.get("send-interval", self.send_interval)) self.send_monitoring = self.settings.get("send-monitoring", self.send_monitoring) monitoring_buffer_limit = self.settings.get("monitor...
// This file is part of simple-http-server. It is subject to the license terms in the COPYRIGHT file found in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/simple-http-server/master/COPYRIGHT. No part of simple-http-server, including this file, may be copied, modified, ...
<filename>components/Footer.tsx<gh_stars>0 import { FC } from "react"; import Heading from "./Heading"; const Footer: FC = () => ( <footer> <Heading tag="h3" text="Created by webDev" /> </footer> ); export default Footer;
def _build_feature_references(feature_ref_strs: List[str]) -> List[FeatureRefProto]: feature_refs = [FeatureRef.from_str(ref_str) for ref_str in feature_ref_strs] feature_ref_protos = [ref.to_proto() for ref in feature_refs] return feature_ref_protos
<filename>src/types/interfaces.d.ts interface iOption { alternative: string; is_correct: boolean; } interface iQuestion { title: string; difficulty: number; options: iOption[] }
#include "xvmaininc.h" #include "defines.h" #include "declares.h" #include "externs.h" /* Finish up a file by writing the EOF mark, etc. */ int v2_finish_file(unit) int unit; { struct bufstate *bufstate; struct devstate *devstate; int status; int tindex; V2_OFFSET j; bufstate = (struct bufstate *)C...
<reponame>gigwegbe/deepstream-services-library /* The MIT License Copyright (c) 2021, Prominence AI, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without li...
#include <stdio.h> #include <stdlib.h> #include <string.h> #define BUFSIZE 1024 char buf[BUFSIZE]; int main(void) { char *p; const char *DELIMITER = " "; while (p = strtok(fgets(buf, BUFSIZE, stdin), DELIMITER)) { int res = 0, one = 0, n; if (*p == '0') break; do { n = atoi(p); res += (n < 10 ? n : 10); ...
import java.util.*; public class test { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int m = in.nextInt(); int mdlN = 0; int mdlM = 0; boolean flag = false; boolean flag2 = false; int i = 1; while (i < n + 1) { ...
/** * POSIX pthread version of ThreadMutex. */ class ThreadMutex_pthread : public ThreadMutex { private: pthread_mutex_t mutex; pthread_cond_t condition; pthread_mutexattr_t attr; public: ThreadMutex_pthread() { pthread_mutexattr_init(&this->attr); pthread_mutexattr_settype(&this->attr, PTHREAD_MUTEX_E...
<reponame>cikupin/smooch<filename>smooch_test.go<gh_stars>1-10 package smooch import ( "bytes" "io/ioutil" "mime" "mime/multipart" "net/http" "net/http/httptest" "strings" "time" "testing" "github.com/stretchr/testify/assert" ) const ( expectedAuthorizationHeader = "<KEY>" ) var ( sampleResponse = ` {...
Skeletal remains in Comstock 5 Gallery: Skeletal remains in Comstock COMSTOCK TOWNSHIP — Seeking leads in a has released illustrations of a woman's face reconstructed from skeletal remains found in Comstock Township late April. Police believe the remains are that of a white women, 35 to 55 years old, who died as a ...
<reponame>robotics-at-maryland/qubo #include <stdint.h> #include "modules.h" #ifndef QUBOBUS_POWER_H #define QUBOBUS_POWER_H enum { M_ID_POWER_STATUS = M_ID_OFFSET_POWER, M_ID_POWER_RAIL_ENABLE, M_ID_POWER_RAIL_DISABLE, M_ID_POWER_MONITOR_ENABLE, M_ID_POWER_MONITOR_DISABLE, M_ID_POWER_MON...
<reponame>Phylogeny/BuildingGadgets package com.direwolf20.buildinggadgets.items; import com.direwolf20.buildinggadgets.Config; import com.direwolf20.buildinggadgets.items.ItemCaps.CapabilityProviderEnergy; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.init.Items; import ...
/** * Classy class class. */ @RunWith( EsRunner.class ) @UseModules( { TestIndexModule.class } ) public class EsIndexMappingMigrationPluginTest extends BaseIT { @Inject public EntityIndexFactory eif; @Inject public MigrationInfoSerialization serialization; @Inject EsProvider provider; @Tes...
// Record SCT origin enum. This metric measure the popularity // of the various channels of providing SCTs for a certificate. void LogSCTOriginToUMA(ct::SignedCertificateTimestamp::Origin origin) { UMA_HISTOGRAM_ENUMERATION("Net.CertificateTransparency.SCTOrigin", origin, ...
def scale_styles(self, amount): style_sheet = self.doc.get_style_sheet() graph_style = style_sheet.get_draw_style("CG2-fam-box") graph_style.set_shadow(graph_style.get_shadow(), 0) graph_style.set_line_width(graph_style.get_line_width() * amount) style_sheet.add_draw_style("CG2-f...
<filename>flowable-manager-ui/src/components/GlobalHeader/NoticeIconView.tsx import React, { Component } from 'react'; import { Tag, message } from 'antd'; import { connect } from 'dva'; import groupBy from 'lodash/groupBy'; import moment from 'moment'; import { NoticeItem } from '@/models/global'; import NoticeIcon fr...
import { AccessLevelList } from "../shared/access-level"; import { PolicyStatement } from "../shared"; /** * Statement provider for service [honeycode](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonhoneycode.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide...
/* * Copyright (c) 2015 Nokia Solutions and Networks. All rights reserved. */ package com.nsn.ood.cls.core.test; import java.util.List; import com.nsn.ood.cls.core.model.ClientTag; import com.nsn.ood.cls.core.model.ClientWithTag; import com.nsn.ood.cls.core.model.FeaturesWithTag; import com.nsn.ood.cls.model.gen.cl...
import { HttpEndpoint } from './HttpEndpoint'; export type HttpOptionsParams = { }; export function HttpOptions(params: HttpOptionsParams) : MethodDecorator { return HttpEndpoint({ methods: 'OPTIONS' }); };
#include "gtest/gtest.h" #include "Builder.h" #include "Tesselate.h" TEST(BuilderTest, Ellipse1d) { mObject origin; origin["x"] = 0.0; origin["y"] = 0.0; origin["z"] = 0.0; mObject parameters; parameters["r1"] = 10.0; parameters["r2"] = 5.0; mObject json; json["origin"] = ori...
Museum Scholarly Communications and Copyright Law: A Call for Balanced and Nuanced Exceptions Premised on Museum Mission and Mandate Abstract The purpose of this paper is to describe both the process and policy reasons for ICOM's participation at the World Intellectual Property Organization's Intergovernmental Committ...
<gh_stars>0 package behavioural.strategy; public interface Strategy { Integer doOperation(int a, int b); }
Intertester reliability and concurrent validity of fluid-based and universal goniometers for active knee flexion. This study was designed 1) to determine the intertester reliability of the universal goniometer and the fluid-based goniometer and 2) to establish the concurrent validity of the fluid-based goniometer. Two...
answers in genesis tackles logic, fails miserably Answers In Genesis tries to debate the divine origins of logic as if it was a law of physics with the most illogical drivel they could muster. When you live in constant denial, one of the benefits of your avoidance of the real world is getting to make up your own rule...
print("Cal count bc you're fat") gfat = float(input("Grams of Fat: ")) gprotein = float(input("Grams of Protein: ")) gcarbohydrate = float(input("Grams of Carbohydrates: ")) # Calorie calc ONEG_FAT = 9 ONEG_PROTEIN = 4 ONEG_CARBOHYD = 4 fatCal = gfat * ONEG_FAT print ("Grams of Fat: " +str(fatCal)) proteinCal = ...
import re import pytest from textacy import extract @pytest.fixture(scope="module") def sss_doc(lang_en): text = ( "In general, Burton DeWilde loves animals, but he does not love *all* animals. " "Burton loves his cats Rico and Isaac; Burton loved his cat Lucy. " "But Burton DeWilde defi...
package fundamentals.stack.evaluation.lc150_evaluatereversepolishnotation; import java.util.Stack; /** * Evaluate the value of an arithmetic expression in Reverse Polish Notation. * Valid operators are +, -, *, /. Each operand may be an integer or another expression. * Some examples: * ["2", "1", "+", "3", "*"] ...
/** * Write all the attributes (in JSON format) for the given HDF5 object out to the specified file. */ private void writeAttributesToFile(String filename, long objID, String printPrefix) throws Exception { File tmpFile = new File(filename); if (tmpFile.exists()) { throw new Except...
package seedu.clinicio.model; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static seedu.clinicio.logic.commands.CommandTestUtil.VALID_ADDRESS_BOB; import static seedu.clinicio.logic.commands.CommandTestUtil.VALID_NAME_ADAM; ...
<filename>node_modules/antd-mobile/lib/list/style/index.native.d.ts declare const _default: { underlayColor: { backgroundColor: string; }; Header: { fontSize: number; color: string; paddingHorizontal: number; paddingTop: number; paddingBottom: number; ...
def predict_proba(self, test_df): cols = ['estimator_' + str(i) for i in range(1, self.n_est + 1)] test_tree = pd.DataFrame(np.column_stack([est.predict(test_df[self.x]) for est in self.tree_model.estimators_]), columns=cols) return self._predict(test_tree)
<gh_stars>0 import { ControlValueAccessor } from '@angular/forms'; import { Input } from '@angular/core'; import { OptionsProvider } from './providers/options-provider'; export class TagModelClass { [key: string]: any; } export type TagModel = string | TagModelClass; export function isObject(obj: any): boolean {...
NEW DELHI: ‘This is the longest pronouncement from a person who does not otherwise take much space’, Justice Rohinton Fali Nariman said before pronouncing the landmark verdict declaring Section 66A of I-T Act unconstitutional.Justice Nariman, who left his booming law practice to be a Supreme Court judge on July 7 last ...
# -*- coding: utf-8 -*- # # Copyright (c) 2018 Red Hat, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, mo...
/** * Consumes any updates waiting in the merger without notifying the underlying listener. */ public void reset() { _mergerLock.lock(); try { _callQueue.clear(); _currentResultCompilationIndex = -1; _resultIndex = -1; _futureResultCompilationIndex = -1; getCycleRetainer().re...
Consulting the cost A breakdown of some of the $18.63 million the City of Saskatoon spent on consultants in 2015: $3.98 million on the two P3 projects, the north commuter bridge/Traffic bridge and the civic operations centre $1.89 million on water projects, including $1.15 million on the 42nd Street reservoir project $...
/** The jessop ScriptEngine class. * * @author knoxg */ public class JessopScriptEngine extends AbstractScriptEngine implements Compilable { /** Logger instance for this class */ Logger logger = Logger.getLogger(JessopScriptEngine.class); /** ScriptEngineFactory that created this class */ ScriptEngineFactory ...
/** * Dispatch an event that has occurred to all registered observers. * @param observableEvent the observable event to dispatch. */ public void eventOccurred(final T observableEvent) { List<Observer<T>> clone = null; synchronized (observerList) { clone = new ArrayList<Observ...
. A total of 51 patients with the subclavian steal-syndrome (SSS) were examined for the clinical picture comparatively to the angiography and ultrasound dopplerography (USDG) data. The clinical manifestations of cerebral circulatory disorders were studied not only in the isolated SSS but also in its different variants...
/** Read a Grid from a file in ESRI ASCII format. * @param fileName The path to the file to be read. * @param progress A WorkerProgress to inform about the progress. * @return The read grid. */ public static GeoGrid read(String filePath, ProgressIndicator progressIndicator) throws java.i...
def check_series_of_event(series_of_event, has_series, no_series_error): errors = [] if len(series_of_event) > 1: errors.append(more_series()) if not series_of_event and has_series: errors.append(series_not_found()) if not has_series and no_series_error: errors.append(no_series()...
<reponame>Vinovest/contentful-go package contentful import ( "encoding/json" "time" ) // FieldValidation interface type FieldValidation interface{} // FieldValidationLink model type FieldValidationLink struct { LinkContentType []string `json:"linkContentType,omitempty"` } const ( // MimeTypeAttachment mime type...
async def find_result_url(session, url, headers): try: async with session.get(url[1], headers=headers) as response: if response.status == 200: url_result = url[0] except (aiohttp.ClientResponseError, aiohttp.ClientConnectorError): asyncio.current_task().remove_done_ca...
Fabrication and piezoelectric properties of (K0.5Na0.5)NbO3-based ceramics doped with Bi-perovskites The effect of the addition of Bi-perovskites to (Li<sub>0.04</sub>K<sub>0.52</sub>Na<sub>0.44</sub>)(Nb<sub>0.84</sub>Ta<sub>0.1</sub>Sb<sub>0.06</sub>)O<sub>3</sub> (LF4) ceramics was studied to improve the properties...
# Copyright 2021 Google LLC # 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 in...
package br.com.randomthings.exception; import lombok.AllArgsConstructor; import lombok.Data; @Data @AllArgsConstructor public class StrategyValidation extends RuntimeException { StringBuilder errors; }
Will Students Earnestly Attempt Learning Questions if Answers are Viewable Modern online learning materials may include built­in learning questions that are used for some of a class' homework points. To encourage learning, question solutions may be easily available to students. We sought to determine to what extent st...
Calculation of glacier elevation changes with SRTM: is there an elevation-dependent bias? The freely available Shuttle Radar Topography Mission (SRTM3; 300 or 90m resolution) digital elevation model (DEM) provides the opportunity to calculate changes in glacier surface elevation and thus ice mass for a large sample of...
<reponame>SFIP/SFIP // SPDX-License-Identifier: GPL-2.0 /* * Write ahead logging implementation copyright <NAME> 2000 * * The background commits make this code very interrelated, and * overly complex. I need to rethink things a bit....The major players: * * journal_begin -- call with the number of blocks you exp...
(CNA/Lauren Cater) Pope Francis: Kiss the Crucifix; Kiss the Wounds of Christ The Holy Father discussed the triumph of the cross at his April 16 general audience. ELISE HARRIS/CNA/EWTN NEWS VATICAN CITY — In his general audience address this week, Pope Francis spoke on the meaning of suffering and evil, explaining ...
<filename>build/tmp/expandedArchives/forge-1.17.1-37.0.58_mapped_official_1.17.1-sources.jar_461b1baaba5fdaecf94c73039d52c00b/net/minecraft/client/gui/screens/Overlay.java package net.minecraft.client.gui.screens; import net.minecraft.client.gui.GuiComponent; import net.minecraft.client.gui.components.Widget; import n...
//! Test sequences with immediate commands followed by a marker class Tester : public ImmediateBase::Tester { public: Tester( const SequenceFiles::File::Format::t format = SequenceFiles::File::Format::F_PRIME ); public: void NeverLoaded(); v...
<filename>modules/dop/component-protocol/components/auto-test-scenes/rightPage/fileDetail/fileExecute/executeTaskBreadcrumb/render.go // Copyright (c) 2021 Terminus, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may ...
<filename>code/src/OSFramework/Feature/IOffset.ts // eslint-disable-next-line @typescript-eslint/no-unused-vars namespace OSFramework.Feature { export interface IOffset { /** Sets the current Offset of the Map * Get the OffsetX(vertical) and OffsetY(horizontal) in pixels, to apply on map. This will...
In a victory for financial reformers who want to lessen Wall Street’s influence on regulatory policy, the White House on Tuesday nominated Lisa Fairfax, a law professor from George Washington University, to fill an open Democratic seat on the Securities and Exchange Commission vacated by current Commissioner Luis Aguil...
package testdata import ( "testing" "github.com/stretchr/testify/assert" ) func TestFileEmbedding(t *testing.T) { _, err := dataFilesRoot.ReadFile("data-files/README.md") assert.NoError(t, err) files, err := dataFilesRoot.ReadDir("data-files/server-side-eval") assert.NoError(t, err) assert.NotEqual(t, 0, len...
Palette-Based Image Recoloring Using Color Decomposition Optimization Previous works on palette-based color manipulation typically fail to produce visually pleasing results with vivid color and natural appearance. In this paper, we present an approach to edit colors of an image by adjusting a compact color palette. Di...
//----------------------------------------------------------- // verifyConstTypes // Verify that the type is a type we support //----------------------------------------------------------- static bool verifyConstTypes( DWORD vt ) { switch ( vt ) { case VT_UI8: case VT_I8: case VT_I4: case VT_UI1: ...
def inactive_status(self, inactive_status): self._inactive_status = inactive_status
// Decompiled by Jad v1.5.8g. Copyright 2001 <NAME>. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) annotate safe package com.google.android.gms.internal.ads; import java.lang.reflect.Constructor; import java.util.*; // Referenced classes of package com.google.android.gms.inte...
package alg; import stdio.StdOut; /****************************************************************************** * Compilation: javac Autoboxing.java * Execution: java Autoboxing * Dependencies: StdOut.java * * Headaches with autoboxing. Why does the following code behave * the way it does?...
/******************** Code to return detected objects to the CameraActivity.java ******************/ public void closeCameraActivity(View view) { Intent intent = getIntent(); Bundle resultsBundle = new Bundle(); int counter=1; for(Classifier.Recognition recognition:resultSet){ ...
/// Calculates the number of LP tokens that correspond to an amount of token B. /// This does not take withdraw fees into account. pub fn lp_tokens_for_b_excluding_fees(&self, token_b_amount: u64) -> Option<u64> { (token_b_amount as u128) .checked_mul(self.supply as u128)? .checked_div(s...
// NewFromParams creates a new Team from params func (c TeamsClient) NewFromParams(params TeamParams) (Team, ClientError) { t := Team{} err := c.client.NewRequest("POST", teamsEndpoint, params, &t, nil) return t, err }
/** * St * @author masao */ public class StringGrid { final public GridOverList<String> body; public StringGrid(String picture, Integer... dim) { this(picture, TList.sof(dim)); } public StringGrid(String picture, TList<Integer> dim) { GridCoord axis = new GridCoord(dim.map(...
// New creates an instance of *Limiter. Configure the Limiter with the options specified. // Example: limiter.New(4, WithTimeout(5)) func New(limit int, options ...Option) *Limiter { l := &Limiter{ Limit: limit, } for _, o := range options { o(l) } return l }
A Model to Implement and Secure Online Documentation using Blockchain The past decade has seen a tremendous rise in the use of blockchains for facilitating a trust based decentralized financial framework, in hope of eliminating dependency on core institutions such as banks. A blockchain stores a chronological record f...
/** * Converts a Java long to a Little Endian int on 8 bytes. * * @param c is the value to parse. * @return the parsing result */ public static byte[] toByteArray(long c) { try { ByteArrayOutputStream bos = new ByteArrayOutputStream(); DataOutputStream dos = new DataOutputStream(bos); dos.writ...
def provide_color_scheme_builder(self): if self._color_scheme_builder is not None: return self._color_scheme_builder _, color_scheme_data, _ = self.provide_fake_color_scheme_data() self._color_scheme_builder = ColorSchemeBuilder( color_scheme_data, self.provide_fake_color...
I once talked to a World War II veteran about the experience of attending college after coming home, and asked if it was jarring to sit next to those who never served. I wondered if veterans huddled together under the umbrella of mutual understanding and thought less of civilians who never shouldered a rifle. His answe...
S = input() T = input() S_list = list(S) T_list = list(T) t_cnt = 0 t_cnt_max = 0 start_pos = 0 #print(S_list, T_list) for i in range(len(S_list) - len(T_list)+1): t_cnt = 0 for j in range(len(T_list)): if S_list[i+j] == T_list[j]: t_cnt += 1 start_pos = i #print(...
Modeling Personality Influence over Preference Model’s Parameter Values . Abstract. Every enterprise faces the necessity of taking decisions in their everyday activities. The decision process is leaded by one or several Decision Makers (DMs) who are in charge of deciding the proper combination of resources to achieve ...
<filename>Source/Urho3D/Resource/XMLElement.h // // Copyright (c) 2008-2020 the Urho3D project. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including witho...
def parse_file(file_name, dataset_path): file_name = dataset_path + file_name with open(file_name) as f: data = f.read() data = data.replace("\n","") data = data.replace("\'",'') datas = data.split(";") headers = [] start_data = 0 for i, line in enumerate(datas): ...
/** * <pre> * Hide this op by putting it into an internal namespace (or whatever * is appropriate in the target language). * </pre> * * <code>bool hide = 3;</code> */ public Builder clearHide() { hide_ = false; onChanged(); return this; }
/*************** CVDenseSetup **************************************** This routine does the setup operations for the dense linear solver. It makes a decision whether or not to call the Jacobian evaluation routine based on various state variables, and if not it uses the saved copy. In any case, it constructs the ...
/** * Two of the testcases in the yangtools/yang-data-impl are leveraged (with modification) to create * the serialization of NormalizedNode using the ProtocolBuffer * * @syedbahm * */ public class NormalizedNodeXmlConverterTest { private static final Logger logger = LoggerFactory .getLogger(NormalizedNod...
def reset_rule_params(): bmtr._rule_params = copy.copy(rule_params_backup)
Server Deployments Week 4 Recap As always, please refer to the deployment thread in the forums for the very latest news. On Tuesday January 21st, the Main channel received the server maintenance project previously on the three RC channels, which includes the forced delay in llLoadURL being reduced to 0.1 seconds; the...
#include <acknex.h> #include <default.c> #include "..\\Source\\tust.h" #define POINT_COUNT 5 VECTOR pt[POINT_COUNT]; void draw_mark(VECTOR *pos, COLOR *col) { draw_line(vector(pos.x - 1, pos.y, 0), NULL, 100); draw_line(vector(pos.x - 1, pos.y, 0), col, 100); draw_line(vector(pos.x + 2, pos.y, 0), col, 100); dr...
/* Removing messges was just an exercise in leaning Kafka - This will delete half of the messages if a certain limit is reached (assuming the offset increments by one). The proper way to do this is with 'log.retention.bytes' and 'log.retention.(hours/minutes/ms)' in the server.properties...
/* Handle the MRI IRP and IRPC pseudo-ops. */ void s_irp (int irpc) { char * eol; const char * file; unsigned int line; sb s; const char *err; sb out; file = as_where (&line); eol = find_end_of_line (input_line_pointer, 0); sb_build (&s, eol - input_line_pointer); sb_add_buffer (&s, input_line_poin...
<filename>openraft/src/core/client.rs use std::sync::Arc; use anyhow::anyhow; use futures::future::TryFutureExt; use futures::stream::FuturesUnordered; use futures::stream::StreamExt; use maplit::btreeset; use tokio::time::timeout; use tokio::time::Duration; use tracing::Instrument; use crate::core::apply_to_state_ma...
/** * The AbstractModelis an abstract Model providing caching for the identities of * players, items and item prototypes. * * @author Jan-Willem Gmelig Meyling * @author Thomas Gmelig Meyling */ @Root public abstract class AbstractModel implements Model { /** GameServer ticks */ protected final GameServ...
/** * This class is the action form for all lookups. * * @deprecated Use {@link org.kuali.rice.krad.lookup.LookupForm}. */ @Deprecated public class LookupForm extends KualiForm { private static final long serialVersionUID = 1L; private static final org.apache.log4j.Logger LOG = org.apache.log4j.Log...
/** * Value object representing a certificate bundle consisting of a private key, the * certificate and the issuer certificate. Certificate and keys can be either DER or PEM * encoded. RSA and Elliptic Curve keys and certificates can be converted to a * {@link KeySpec} respective {@link X509Certificate} object. Sup...
// Copyright 2018 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. use { crate::client::Client, crate::object::{NewObjectExt, ObjectRef, RequestReceiver}, crate::seat::Seat, anyhow::Error, wayland::{ ...
class FastqReader: """Base fastq reader""" def __init__(self, fname, record_cls=FastqRecord): self.fname = fname self.record_cls = record_cls self._next = None self.fobj = ( gzip.open(fname, "rb") if fname.endswith(".gz") else open(fname, "rb") ) self...
/* unlock any pending access to the resource. subclasses should unlock * any function ASAP. */ static gboolean cmlv_grpc_sink_unlock (GstBaseSink * sink) { CmlvGrpcSink *grpcsink = CMLV_GRPC_SINK (sink); GST_DEBUG_OBJECT (grpcsink, "unlock"); return TRUE; }
<reponame>MainTendue/APP_LAMAINTENDUE import { Injectable } from '@angular/core'; import {Maraude} from '../../models/Maraude'; import {Subject} from 'rxjs'; import {apiLMT} from '../../environments/environment'; import {HttpClient} from '@angular/common/http'; import {LoadingService} from './loading-service.service'; ...
#include "CondFormats/Calibration/interface/big.h" #include <iostream> //fill big void big::fill(size_t tVectorSize, size_t thVectorSize, size_t sVectorSize, const std::string& atitle) { for (size_t i = 0; i < tVectorSize; ++i) { big::bigEntry b; b.fill(i, 1.0); tVector_.push_back(b); } for (size_t i ...