content
stringlengths
10
4.9M
There’s always too much work to be done on software projects, too many features to implement, too many bugs to fix. Some days you’re just not going through the backlog fast enough, you’re not producing enough code, and it’s taking too long to fix a seemingly-impossible bug. And to make things worse you’re wasting time ...
import { User } from './../../models/core'; export class AuthService { constructor() { } public findUser(loginId: string): Promise<User> { const findUser = { where: { email: loginId, username: loginId, }, }; // return User.findOne(findUser); return; } }
/** * Sets all environment variables from the current {@link System#getenv()}. * This is entirely unnecessary for most cases, as setting zero environment variables * will automatically inherit this program's environment. * @return this, for chaining. */ public ProcessCallable copyEnv() { for (Map.Entry<Str...
import importlib import os import pdb import sys import tempfile sys.path.append("/opt/tosca") from translator.toscalib.tosca_template import ToscaTemplate import pdb from core.models import Tenant, Service from xosresource import XOSResource class XOSTenant(XOSResource): provides = "tosca.nodes.Tenant" xos_...
// OnBackendMutated should be called when state of the associated backend is // changed, e.g. when a new backend server is added or something like that. func (fe *T) OnBackendMutated() { fe.mu.Lock() fe.ready = false fe.mu.Unlock() }
// The Main function only for our test public static void main(String[] args) { Factory myFactory = new Factory(); Window myBigWindow = myFactory.CreateWindow("Big"); myBigWindow.func(); Window mySmallWindow = myFactory.CreateWindow("Small"); mySmallWindow.func(); }
/** * * Copyright 2020 American Express Travel Related Services Company, 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 obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * *...
<filename>src/block/CommentBlock.ts<gh_stars>10-100 import { BlockType, Block } from './Block'; export class CommentBlock extends Block { type: BlockType = 'comment'; }
def _compute_loss(loss_fn: LossFn, pred_list: List[Attribute], target_list: List[Attribute]) -> Tensor: if loss_fn is None: return torch.Tensor([0.]) assert len(pred_list) == len(target_list), \ "Number of prediction and target values mismatch, got {} and {}.".format(len(pred_lis...
// Checks the |suggested_key| value parses into a command when specified as a // string or dictionary of platform specific keys. If // |platform_specific_only| is true, only the latter is tested. |platforms| // specifies all platforms to use when populating the |suggested_key| // dictionary. void CheckParse(const Const...
It’s one of the worst things to hear from someone else. If someone accuses you of not being completely honest, your instinct will probably be defensive. If you’re anything like most of us, you feel like you’re being honest all the time. By definition, if you feel like you’re being honest, then you are being honest. Wh...
def DetectRSSIofTargetMAC(self): mac_to_scan = self.GetInputDeviceMac() scan_counts = self.args.scan_counts timeout_secs = self.args.scan_timeout_secs input_device_rssi_key = self.args.input_device_rssi_key fail_msg = [] def _DeriveRSSIThreshold(threshold, fid): if isinstance(threshold, (i...
<filename>src/GryphonBot/Commands/Types.hs<gh_stars>0 module GryphonBot.Commands.Types ( BotCommandC ) where import Calamity ( BotC ) import Polysemy ( Members ) import Polysemy.Fail ( Fail ) type BotCommandC effs r = (BotC r, Members (Fail ': effs) r)
/** * @author Marco Ruiz * @since Nov 21, 2007 */ public abstract class PulsingServerAPIImpl<API_TYPE extends PulsingServerAPI, DOM_TYPE extends BaseDomain> extends BaseServerAPIImpl<API_TYPE, DOM_TYPE> implements PulsingServerAPI { private static Log log = LogFactory.getLog(PulsingServerAPIImpl.class); // Hea...
import dayjs, { UnitType } from 'dayjs'; const steps: Record< number, { value: number; unit: UnitType; } > = { 0: { value: 0, unit: 'second', }, 1: { value: 30, unit: 'minute', }, 2: { value: 24, unit: 'hour', }, 3: { value: 7, unit: 'day', }, 4: { va...
package colors type color struct { red uint8 green uint8 blue uint8 } func createColor( red uint8, green uint8, blue uint8, ) Color { out := color{ red: red, green: green, blue: blue, } return &out } // Red returns the red value func (obj *color) Red() uint8 { return obj.red } // Green return...
/** * Link.tsx * * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT license. * * Web-specific implementation of the cross-platform Link abstraction. */ import React = require('react'); import RX = require('../common/Interfaces'); import Styles from './Styles'; import Types = require...
#![allow(clippy::borrowed_box)] use core::time::Duration; use prost_types::Any; use serde::Serialize; use tracing::{debug, error, info, warn}; use ibc::core::ics04_channel::channel::{ ChannelEnd, Counterparty, IdentifiedChannelEnd, Order, State, }; use ibc::core::ics04_channel::msgs::chan_close_confirm::MsgChanne...
/** * Add a {@link RemoteBranch} for the branchName with the given name to the {@link GitflowPluginData} and set the provided members. * * @param gitflowPluginData the {@link GitflowPluginData} object * @param branchName the name of the branchName * @param result the {@link...
// Copyright (c) 2020 <NAME>. All rights reserved. // Use of this source code is governed by the Apache License, Version 2.0 // that can be found in the LICENSE file. // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the Li...
// GetToken generates a token for internal request use func GetToken() (string, error) { token := jwt.New(jwt.SigningMethodHS256) claims := token.Claims.(jwt.MapClaims) claims["username"] = "spaas" claims["admin"] = true claims["exp"] = time.Now().Add(time.Hour * 24 * 365).Unix() t, err := token.SignedString([]by...
Elastin in lung development and disease. Elastic fibres are present in lung structures including alveoli, alveolar ducts, airways, vasculature and pleura. The rate of lung elastin synthesis is greatest during fetal and neonatal development, and is minimal in the healthy adult. We have determined that glucocorticoids u...
/** Contains method, which searches for the desired item * @param item which should be searched for * @return true if item was found, false if it was not found */ public boolean contains(Object item) { if(find((E) item) == null) { return false; } else { return true; } }
// Autogenerated Go message buffer code. // Source: clad/cloud/logcollector.clad // Full command line: victor-clad/tools/message-buffers/emitters/Go_emitter.py -C src -o generated/cladgo/src clad/cloud/logcollector.clad package cloud import ( "bytes" "encoding/binary" "errors" "fmt" "github.com/digital-dream-la...
<gh_stars>1-10 import argparse import json import random import sys if __name__ == '__main__': parser = argparse.ArgumentParser(description='Harvests Watchtower SDK call execution time information from GAE backups.') parser.add_argument('--file', '-f', dest='file', default=None) parser.add_argument('--mock...
Story highlights Scientists etch 1.2 million letters onto tiny silicon disk But to read this tiny Old Testament, you'd need a very big microscope Jerusalem (CNN) Noah squeezed pairs of every creature on Earth into his ark. A miracle helped the Maccabees stretch one day's worth of oil to last eight days. And now scien...
/** * Returns the display name based on NVConfig and NVConfigAttributesMap inputs. * @param nvc * @param map * @return display name */ public static String toDisplayName(NVConfig nvc, NVConfigAttributesMap map) { if (nvc == null) { return null; } NVConfigNameMap nvcnm = null; if (map != nul...
/** * Controller used by JDA to ensure the native * binaries for opus en-/decoding are available. * * @see <a href="https://github.com/discord-java/opus-java" target="_blank">opus-java source</a> */ public final class AudioNatives { private static final Logger LOG = LoggerFactory.getLogger(AudioNatives....
/** Implements test ScissorZeroDimension, description follows: * * Verify that scissor test discard all fragments when width and height is set * to zero. * Modify Scissor to set up width and height of scissor boxes to 0. * Test pass if no pixel is modified. **/ class ScissorZeroDimension : public DrawMult...
<filename>src/views/githubIssues/content/network/path/issueLink.tsx<gh_stars>1-10 import React from 'react'; import OpenInNewIcon from '@material-ui/icons/OpenInNew'; import { makeStyles } from '@material-ui/core/styles'; interface Props { issue: any; } const useStyles = makeStyles(() => ({ root: { textDecor...
<reponame>lucidfrontier45/JPAddressParser from jpaddressparser import Address, get_default_parser def test_parser(): parser = get_default_parser() address_str = "東京都千代田区永田町1丁目7-1" parserd_addr = parser.parse(address_str) assert parserd_addr == Address("東京都", "千代田区", "永田町", "1丁目7-1")
#pragma once #include <regex> #include <string> #include <initializer_list> #include <memory> #include <http/PageController.hpp> #include <iostream> #include <list> #include <sstream> namespace http { class SiteConfig { public: SiteConfig(std::initializer_list<std::pair<std::string, std::shared_ptr...
/*! Checks the syntax of the given \a program. Returns a QScriptSyntaxCheckResult object that contains the result of the check. */ QScriptSyntaxCheckResult QScriptEngine::checkSyntax(const QString &program) { QScriptEnginePrivate* engine = new QScriptEnginePrivate( 0); return QScriptSyntaxCheckResultPrivate...
def list_images(ec2): response = ec2.describe_images(Filters=[{'Name': 'is-public', 'Values': ['false']}]) response.pop('ResponseMetadata') printy("{:12}\t{:20}\t\tCreationDate:".format("ImageId", "Name")) for image in response['Images']: if len(ima...
/** * A {@link PTransform} that wraps around a {@link DoFn} that will write {@link Mutation}s to * Cloud Bigtable. */ public static class CloudBigtableWriteTransform<T> extends PTransform<PCollection<T>, PDone> { private static final long serialVersionUID = -2888060194257930027L; private final DoFn<T,...
<reponame>The-Beans/dd-sdk-reactnative<filename>packages/core/src/__tests__/DdRumWrapper.test.tsx /* * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 201...
// Written by <NAME> (http://tronche.lri.fr:8000/) // Copyright by the author. This is unmaintained, no-warranty free software. // Please use freely. It is appreciated (but by no means mandatory) to // acknowledge the author's contribution. Thank you. // Started on Thu Jun 26 23:29:03 1997 // // Xlib tutorial: 2nd pr...
Cancer survivorship and aging Cancer is primarily a disease of the elderly. Greater than 60% of new cancers occur in people aged >65 years, and 60% of the current 10 million cancer survivors are aged ≥65 years. Given these large numbers and the potential vulnerability of older adults, older cancer survivors have becom...
// parseAndCheckRegistryModel parse and check the config model func (api *API) parseAndCheckRegistryModel(c *common.Context) (*models.Registry, error) { registry := new(models.Registry) registry.Name = c.GetNameFromParam() registry.Namespace = c.GetNamespace() err := c.LoadBody(registry) if err != nil { return n...
/** * Helper method to extract segment level intermediate result from the inner segment result. */ private static Map<? extends Number, Long> extractIntermediateResult(@Nullable Object result) { if (result == null) { return new Int2LongOpenHashMap(); } if (result instanceof DictIdsWrapper) { ...
/** * convert string to date and time * * @param date date * @param format format * @return date */ public static Date parse(String date, String format) { try { LocalDateTime ldt = LocalDateTime.parse(date, DateTimeFormatter.ofPattern(format)); return localD...
/** * A wrapper class for thrift class ColumnDictionaryChunkMeta which will * contain data like min and max surrogate key, start and end offset, chunk count */ public class CarbonDictionaryColumnMetaChunk { /** * Minimum value surrogate key for a segment */ private int min_surrogate_key; /** * Max v...
Don’t call it apartheid, but…. Israel is weighing segregated bus lines in the West Bank, which is occupied territory, to separate Palestinians who live there from the Jewish settlers who now call the land home. (Thanks to Ilene Cohen) Haaretz: Police have begun ordering Palestinian laborers with legal work permits of...
package poller_test import ( "context" "encoding/json" "fmt" "os" "sync" "testing" "time" "github.com/snobb/goresq/pkg/db" "github.com/snobb/goresq/pkg/db/mock" "github.com/snobb/goresq/pkg/job" "github.com/snobb/goresq/pkg/poller" "github.com/snobb/goresq/test/assert" "github.com/snobb/goresq/test/help...
<reponame>niabwork2/BlogApp<gh_stars>0 // // Created by <NAME> on 9/4/20. // Copyright (c) 2020 Purchases. All rights reserved. // #import <Foundation/Foundation.h> #import "RCHTTPClient.h" NS_ASSUME_NONNULL_BEGIN @interface RCHTTPRequest : NSObject <NSCopying, NSCopying> - (instancetype)initWithHTTPMethod:(NSStr...
/*** * Computes the log posterior probability of the LDA model up to a * multiplicative constant. * */ double lda_log_posterior( arma::uvec doc_word_counts, arma::mat theta_samples, arma::mat beta_samples, vector < vector < unsigned int > > doc_word_ids, vector < vector < unsigned int > > doc_word_z...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/workmail/model/MailboxExportJob.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { nam...
package utils import ( "bytes" "fmt" "io/ioutil" "math/rand" "net/http" "os" "os/exec" "strings" "testing" "text/template" "time" "github.com/ThomasRooney/gexpect" ) // Deis points to the CLI used to run tests. var Deis = "deis " // DeisTestConfig allows tests to be repeated against different // targets...
<filename>immibis/bon/mcp/SrgFile.java package immibis.bon.mcp; import immibis.bon.Mapping; import immibis.bon.NameSet; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.io.Reader; import java.util.HashMap; import java.util.Map; import java.util.Sca...
import logging import os logging.basicConfig(level=os.environ.get('LEEK_AGENT_LOG_LEVEL', 'INFO'), format="%(levelname)s:%(name)s:%(message)s") # TODO: Add logs formatter def get_logger(name): return logging.getLogger(name)
/** * By default, the groupingBy will group the values to a list, but after assigning the Downstream Collector, * the list can be replaced to set. * * Besides, the downstream collector can be other methods like: Collectors.counting, summingXXX, maxBy/minBy, etc. * * Pay special attention to the Collectors.m...
// populates the passed &map with config values from given file func (config_json ConfigJSON) ConfigFromFile(config_path string, config interface{}) { config_bytes, err := ioutil.ReadFile(config_path) if err == nil { json.Unmarshal(config_bytes, config) } }
#include<stdio.h> #include<stdlib.h> #define s(a) scanf("%s",a) #define p(a) printf("%d",a) int main() { int ans,n,a[10]; char s[5]; a[0]=2; a[1]=7; a[2]=2; a[3]=3; a[4]=3; a[5]=4; a[6]=2; a[7]=5; a[8]=1; a[9]=2; s(s); ans=1; ans=ans*a[s[0]-48]; ans=ans*a[s[1]-48]; p(ans); return 0; }
def similarity(self, a: Union[str, List[str]], b: Union[str, List[str]]): raise NotImplementedError("cannot instantiate Abstract Base Class")
class NumMatrix(object): def __init__(self, matrix): """ :type matrix: List[List[int]] """ if not matrix or not matrix[0]: return self.matrix = matrix self.m, self.n = len(matrix), len(matrix[0]) self.tree = [[0] * (self.n + 1) for _ in range(sel...
// Called when the command is initially scheduled. @Override public void initialize() { double joystickInput = Math.max(0, -joystick.getRawAxis(ControllerMap.PS4_LEFT_STICK_Y)); SmartDashboard.putNumber("Hood Position", shooter.getHoodAngle()); double target = ((ShooterConstants.kHoodMaxAngl...
Coherence and sameness in well-formed and pairwise well-formed scales Abstract A common theme running through many of the scale studies in recent years is a concern for the distribution of intervals and pitch classes. The question of good distribution becomes increasingly complex with the increase in parameters. Compl...
from discord.ext import commands import requests class Jokes(commands.Cog): def __init__(self, bot): self.bot = bot @commands.command() async def dadjoke(self, ctx): """Get a dad joke from the dada-base (aka icanhazdadjoke.com)""" joke = requests.get(url='https://icanhazdadjoke.co...
// This function initializes whatever the Class needs for manipulating the history // we try to delay this till absolutely needed in order to not load // wininet till the end IUnknown * CDocObjectHost::get_punkSFHistory() { if (_pocthf && !_punkSFHistory) { VARIANT var; VariantInit(&var); ...
<reponame>ahoarau/m3meka #! /usr/bin/python #************************************************************************* # # REDWOOD CONFIDENTIAL # Author: <NAME> # __________________ # # [2012] - [+] Redwood Robotics Incorporated # All Rights Reserved. # # All information contained herein is, and remains # the pr...
package main import ( "fmt" "math" "os" "strconv" "strings" ) func eval(reg map[string]int64, name, inst string, val int64, cond []string) int64 { var err error cond1 := int64(0) if cond1, err = strconv.ParseInt(cond[0], 10, 64); err != nil { cond1, _ = reg[cond[0]] } cond2 := int64(0) if cond2, err = ...
/// Add a block to a RAID6 array /// /// Note the block index must be unique in the array! This does not /// update other block indices. /// pub fn raid6_add(j: usize, new: &[u8], p: &mut [u8], q: &mut [u8]) { let len = p.len(); let p = gf256::slice_from_slice_mut(p); let q = gf256::slice_from_slice_mut(q);...
/** * Created by nadimchouglay on 19/12/2016. */ public class GoodDog { private int size; public int getSize(){ return size; } public void setSize(int s) { size=s; } void bark(){ if (size>60){ System.out.println("woof! woof!"); } else if(s...
def _get_class_or_mock(original_class: Any) -> Any: return _mocked_class_by_original_class_id.get(id(original_class), original_class)
import { useEffect } from "react"; import { useIntercom as useIntercomProvider, IntercomContextValues } from "react-use-intercom"; import { useAnalytics } from "hooks/services/Analytics"; import { useCurrentUser } from "packages/cloud/services/auth/AuthService"; export const useIntercom = (): IntercomContextValues =>...
/** Tools for clustering */ public final class ClusteringTools { /** the forbidden constructor */ private ClusteringTools() { ErrorUtils.doNotCall(); } /** * check if two {@code double} values are sufficiently equal so that they * can be ignored. * * @param a * the first {@code dou...
// NewRegistry create schema registry. func NewRegistry(applyer Applyer) *Registry { return &Registry{ applyer: applyer, sources: make(map[string]Source), schemas: make(map[string]*Schema), schemaNames: make([]string, 0), } }
Detection for OFDM Systems With Channel Estimation Errors Using Variational Inference This letter presents an iterative detection scheme for orthogonal frequency division multiplexing (OFDM) systems with imperfect channel state information (CSI). In deriving the proposed scheme, channel estimation error is combated by...
<filename>.sfdx/typings/lwc/apex/BotController.d.ts declare module "@salesforce/apex/BotController.submit" { export default function submit(param: {utterance: any, session: any, fileName: any, fileContent: any}): Promise<any>; }
/** A thread that has called {@link Thread#setDaemon(boolean) } with true. */ public class Daemon extends Thread { { setDaemon(true); // always a daemon } /** * Provide a factory for named daemon threads, for use in ExecutorServices constructors */ ...
<filename>packages/grid/data-grid/src/tests/components.DataGrid.test.tsx import * as React from 'react'; import { createClientRenderStrictMode, // @ts-expect-error need to migrate helpers to TypeScript ErrorBoundary, } from 'test/utils'; import { expect } from 'chai'; import { DataGrid, GridOverlay } from '@mui/x-d...
<reponame>pauloricmarinho/infnet-05-java-injecao-dependencia-persistencia-projeto package br.edu.infnet.emprestimo.service; import java.util.Calendar; import java.util.Date; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; i...
package ca.samueltaylor.simple_commands.commands; import ca.samueltaylor.simple_commands.abstract_commands.BaseCommand; import ca.samueltaylor.simple_commands.helpers.Chat; import ca.samueltaylor.simple_commands.helpers.TeleportRequests; import com.mojang.brigadier.Command; import com.mojang.brigadier.context.CommandC...
/******************************************************************************* * Copyright 2018 ROBOTIS CO., LTD. * * 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.a...
import sys, collections N, M = [int(i) for i in sys.stdin.readline().strip().split(" ")] T = [int(i) for i in sys.stdin.readline().strip().split(" ")] #N, M = 200000, 200000 #T = list(range(1, N+1)) V = set(T) Q = collections.deque() for t in T: Q.append((t-1, 1)) Q.append((t+1, 1)) Y = set() md = 0 while Q: p...
#include<stdio.h> #include<string.h> int main() { char s[15]; scanf("%s",&s); int max=0; for(int i=0;i<strlen(s);i++) { if(s[i]-'a'>max) max=s[i]-'a'; } int count=0; char a[2]; a[0] = max+'a'; for(int j=0;j<strlen(s);j++) { if(s[j]==a[0]) count++; } char out[15]; for(int k=0;k<count;k++) { out[k]=...
/** * A {@link HttpServerBuilder} that delegates all methods to another {@link HttpServerBuilder}. */ public class DelegatingHttpServerBuilder implements HttpServerBuilder { private HttpServerBuilder delegate; /** * Create a new instance. * * @param delegate {@link HttpServerBuilder} to which...
// GetCompletedRule constructs a *CompletedRule for the provided ruleID. // If the rule is not found or not completed due to missing group data, // the return value will indicate it. func (c *ruleCache) GetCompletedRule(ruleID string) (completedRule *CompletedRule, exists bool, completed bool) { obj, exists, _ := c.ru...
<gh_stars>0 package org.smartregister.chw.anc.actionhelper; import android.content.Context; import org.junit.Before; import org.junit.Test; import org.mockito.Mockito; import org.smartregister.chw.anc.BaseUnitTest; import org.smartregister.chw.anc.model.BaseAncHomeVisitAction; import static org.junit.Assert.assertEq...
On the Limitations of Spectral Source Parameter Estimation for Minor and Microearthquakes Reliable estimation of earthquake source parameters is fundamental to improve our understanding of earthquake source physics and for ground-motion modeling in seismic hazard assessment. Nowadays, methods traditionally used for ...
def _modifyGeometry(self, container, gridDesign): from armi.reactor.converters import geometryConverters runLog.header("=========== Applying Geometry Modifications ===========") converter = geometryConverters.EdgeAssemblyChanger() converter.removeEdgeAssemblies(container) if no...
<reponame>manshuxu/fist<gh_stars>0 package auth import ( "log" "net/http" "strconv" "github.com/emicklei/go-restful" "github.com/fanux/fist/tools" "github.com/wonderivan/logger" ) var ( //AuthHTTPSPort is cmd port param AuthHTTPSPort uint16 //AuthHTTPPort is cmd port param AuthHTTPPort uint16 //AuthCert i...
Is there a strategic case for the United States to sustain or expand its efforts to eavesdrop on German intelligence targets? Over the past week, German politicians and the media have grappled with claims that the U.S. National Security Agency listened to Chancellor Angela Merkel’s cellphone calls. For many commentator...
On paper, Scale's mechanic sounds simple to master: You can make objects bigger, or you can make them smaller. You can probably envision how a clever level designer might whip up a few puzzles using this scheme. A button requires an object of a certain weight to be placed upon it for a goal to be achieved — put someth...
/** * @author Ivan Habernal */ @RunWith(JUnit4.class) public class ArgumentUnitUtilsTest { @Rule public ExpectedException exception = ExpectedException.none(); private ArgumentUnit argumentUnit; private CAS cas; @Before public void setUp() throws Exception { cas = Cas...
<reponame>ranton256/cortex // Copyright 2020 The Prometheus 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 ...
//Hudson Soft HuC6260: Video Color Encoder struct VCEBase { virtual auto read(n3 address) -> n8 = 0; virtual auto write(n3 address, n8 data) -> void = 0; }; struct VCE : VCEBase { struct Debugger { //debugger.cpp auto load(VCE&, Node::Object) -> void; struct Memory { Node::Debugger::Memory cr...
// Modify The Default "Producer" Section Of The Sarama Config YAML func WithModifiedSaramaProducer(configMap *corev1.ConfigMap) { requiredAcksRegExp := regexp.MustCompile(`RequiredAcks: -1`) currentSaramaString := configMap.Data[constants.SaramaSettingsConfigKey] updatedSaramaString := requiredAcksRegExp.ReplaceAllS...
//! Common traits for input backends to receive input from. use std::{error::Error, string::ToString}; /// A seat describes a group of input devices and at least one /// graphics device belonging together. /// /// By default only one seat exists for most systems and smithay backends /// however multiseat configuratio...
Controlled natural language can replace first-order logic Many domain specialists are not familiar or comfortable with formal notations and formal tools like theorem provers or model generators. To address this problem, we developed Attempto Controlled English (ACE), a subset of English that can be unambiguously trans...
/** * Initiate generating all possible game states. Refer ReadMe.txt for detailed explanation. */ private String generatePossibleGames() throws Exception { List<String> values = new ArrayList<>(); List<INDArray> moveSequenceList = new ArrayList<>(); for (int index = 1; index <= 9; inde...
<filename>c_code/2_2/compiler_debuginfo.c /* Generated by Nim Compiler v0.15.0 */ /* (c) 2016 <NAME> */ /* The generated code is subject to the original license. */ #define NIM_INTBITS 64 #include "nimbase.h" #include <string.h> #include <stdio.h> typedef struct Debuginfo205009 Debuginfo205009; typedef struct TY2050...
<gh_stars>100-1000 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import { Action } from 'common/flux/action'; import { InspectMode } from '../inspect-modes'; import { BaseActionPayload } from './action-payloads'; export interface InspectPayload extends BaseActionPayloa...
def image(self) -> torch.Tensor: return self.metadata.read_image(root=self.root).to(self.device).mean(axis=-3)
/** * A class that represents all the possible values for an attribute. An attribute can have 3 types * of values: {@code String}, {@code Boolean} or {@code Long}. * * @since 0.1.0 */ @Immutable public abstract class AttributeValue { /** * Returns an {@code AttributeValue} with a string value. * * @para...
Wilco’s 2+ week U.S. Tour continued last night in Columbia, MO after opening in Chicago on Saturday night. The tour resumes tomorrow night in Santa Fe, NM. Continue on below for the setlist from the Sunday night show. SETLIST: Wilco @ Live on 9th Street, Columbia, MO || Sunday, September 16, 2012 Misunderstood, Art O...
/** * Given an array of meeting time intervals intervals where intervals[i] = [starti, endi], * return the minimum number of conference rooms required. * */ public class $253_MeetingRoomsII { /** * * @param intervals * @return */ public int minMeetingRooms_version_1(int[][] intervals) {...
<filename>src/renderer/components/UpdateBanner.tsx<gh_stars>0 import * as React from 'react'; import { IPC } from '../services/IPC'; import { Link } from './Link'; import { Icon } from './Icon'; import '../../../css/UpdateBanner.scss'; export const UpdateBanner: React.FC = () => { const [NewVersionURL, SetNewVersi...
/** * aemif_config_abus - configure async bus parameters * @pdev: platform device to configure for * @csnum: aemif chip select number * * This function programs the given timing values (in real clock) into the * AEMIF registers taking the AEMIF clock into account. * * This function does not use any locking whil...
Poly The asymmetric unit of the title complex, n, contains one CuI cation, one cyanide ligand and half of a centrosymmetric 1,2-bis ethane (bppe) ligand. The CuI atom displays a trigonal coordination geometry, being surrounded by one C atom from one cyanide anion and two N atoms from one cyanide and one bppe ligand....