content
stringlengths
10
4.9M
use anyhow::{anyhow, Result}; use prettytable::{format, Table}; use crate::config; pub fn list(shortcut: Option<String>) -> Result<i32> { if let Some(shortcut) = shortcut { let config: config::Config = config::Config::load()?; let mut shortcut_list = Table::new(); shortcut_list.set_format...
/** * The result of an HttpMethodClient operation. This type exposes a future * for chaining async operations as well as a method for aborting the operation. * * @param <T> The type of result. */ public static class AsyncToken<T> { private final HttpRequestBase request; private final CompletableFuture<T>...
{-# language BangPatterns #-} {-# language DeriveFunctor #-} {-# language InstanceSigs #-} {-# language LambdaCase #-} {-# language RankNTypes #-} {-# language ScopedTypeVariables #-} module Exp where import Data.Functor.Foldable (Fix(..), cata) data ExpF v n a = NameF n | VarF v | IntF !Int | AddF a a | Ap...
<filename>Source/Foundation/bsfUtility/Utility/BsLookupTable.h<gh_stars>1-10 //************************************ bs::framework - Copyright 2018 <NAME> **************************************// //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// ...
def plot_minimum_jerk_basis(): tau = 1 fifth_order_pol = cBasis0010() val = fifth_order_pol.evalOnWindow(0, tau) print('The value of the Polynomial base at s=0 is:') print(val) normalized_time_interval = np.arange(-1, 1.05, 0.05) res = np.array([fifth_order_pol.evalOnWindow(t, tau) for t...
/** * Integration test for {@link CreateReadCountPanelOfNormals}. * * @author Samuel Lee &lt;slee@broadinstitute.org&gt; */ public final class CreateReadCountPanelOfNormalsIntegrationTest extends CommandLineProgramTest { private static final int RANDOM_SEED = 1; private static final int NUM_GOOD_SAMPLES = ...
<reponame>dogshoes/zcryp // XOR encryption key manager for zcryp. // Copyright 2014 <NAME> <<EMAIL>>. // Provided under the terms of the MIT license in the included LICENSE file. package main // KeyState maintains the state of the XOR key. type KeyState struct { key string keylen, keyidx int } // Create a new KeyS...
The impact of Covid-19 pandemic on community-oriented mental health services: The experience of Friuli Venezia Giulia region, Italy Objectives to assess the changes in prevalence, incidence and hospitalisation rates during the first four months of 2020, compared to the same period of 2019, in Friuli Venezia Giulia Men...
PhiC31 recombination system demonstrates heritable germinal transmission of site-specific excision from the Arabidopsis genome Background The large serine recombinase phiC31 from broad host range Streptomyces temperate phage, catalyzes the site-specific recombination of two recognition sites that differ in sequence, t...
Cervical posture analysis in dental students and its correlation with temporomandibular disorder Abstract Objective: To evaluate the relationship between temporomandibular disorders (TMD) and craniocervical posture in the sagittal plane measured from lateral radiographs of the head. Methods: The sample was comprised o...
#pragma once #include "Client.h" #define DllPublic __declspec( dllexport ) static std::shared_ptr<Client> g_client; namespace API { DllPublic int Initialize(const wchar_t *path, const wchar_t *file); DllPublic void ResetInitialize(); namespace Other { DllPublic int GetWeatherID(); DllPublic int SetKey(int...
<gh_stars>1-10 #include <deci.hpp> namespace deci { value_t::~value_t() { ; } }
/* * capacitySWF is just mock function returning the len just for the sake of harmonizing the capacity computation. We need to make payload types as a children of all classes. */ unsigned int PayloadServer::capacitySWF(char* buf, int len) { (void)buf; return len; }
/* /********************************************************** /* Low-level reading: buffer reload /********************************************************** */ protected final boolean loadMoreCtrip() throws IOException { if (_inputStream != null) { _currInputProcessed += _inputEnd; ...
// ExecuteRules against the target inspector server func (c Client) ExecuteRules(rules []rule.Rule) ([]rule.Result, error) { serverSideRules := getServerSideRules(rules) d, err := json.Marshal(serverSideRules) if err != nil { return nil, fmt.Errorf("error marshaling check request: %v", err) } resp, err := http.P...
package com.shf15Single; import java.lang.reflect.Constructor; import java.lang.reflect.Field; public class Demo01 { public static void main(String[] args) throws Exception { // LazyMan instance1 = LazyMan.getInstance(); Field shuhongfan = LazyMan.class.getDeclaredField("shuhongfan"); shuh...
def hh(a,b,c,d): A = a ^ b B = c or d C = b and c D = a ^ d return (A and B)^(C or D) a = input() b = input() c = input() d = input() print hh(a,b,c,d)
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch.nn.utils.rnn import pad_sequence def hardest_negative(loss_values): hard_negative = np.argmax(loss_values) return hard_negative if loss_values[hard_negative] > 0 else None def random_hard_negative(loss_values): ...
import React from 'react' export const useFetch = (url, options, triggerProps: any[] = []) => { const [response, setResponse] = React.useState<any>(null) const [error, setError] = React.useState(null) const [isLoading, setIsLoading] = React.useState(true) // const [refetch, setRefetch] = React.useState(null) ...
#include <bits/stdc++.h> #define int long long const int INF = 0x3f3f3f3f; const int M = 1e6 + 5; typedef long long ll; typedef unsigned long long ull; typedef double db; //char buf[1 << 23], *p1 = buf, *p2 = buf, obuf[1 << 23], *O = obuf; //#define getchar() (p1 == p2) && (p2 = (p1 = buf) + fread(buf, 1,...
<gh_stars>0 public class Text implements Widget { public int length; public String text; public Text(String tIn) { text = tIn; length = tIn.length(); } @Override public void display() { System.out.printf("Text contains: %s\nIt's length is: %d\n", text, length); } }
<reponame>gflohr/Lingua-Poly import { Component, OnInit, OnDestroy } from '@angular/core'; import { TranslateService } from '@ngx-translate/core'; import { applicationConfig } from './app.config'; import * as fromAuth from './auth/reducers'; import * as fromRoot from './app.reducers'; import * as fromUser from './user/...
<gh_stars>0 package com.redescooter.ses.service.scooter.dao; import com.redescooter.ses.api.scooter.vo.emqx.ScooterMcuReportedDTO; import org.apache.ibatis.annotations.Param; /** * @author assert * @date 2020/11/23 17:58 */ public interface ScooterMcuMapper { /** * 根据scooterNo和batchNo查询车辆MCU控制器数据 * ...
<reponame>zyqhpz/UTeM-OOP-Java<gh_stars>0 package model; public class InvalidSubcription extends Exception { private char type; public InvalidSubcription(char type) { this.type = type; } public String getMessage() { return "Invalid Subscription of type " + type; } }
<gh_stars>1-10 /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { json, tags } from '@angular-devkit/core'; import * as debug from 'debug'; import * as inquire...
<filename>queryset_reporter/management/commands/purge.py #-*- encoding=utf-8 -*- import os from datetime import datetime, timedelta from django.core.management.base import BaseCommand from django.conf import settings class Command(BaseCommand): help = 'Purge xlsx and csvs' def handle(self, *args, **options)...
#include <bits/stdc++.h> #include <algorithm> using namespace std; const int N=1e6+20; typedef long long ll; ll dp[1000005],a[1000005]; int main() { ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL); string s; cin>>s; ll a,b,p=1; cin>>a>>b; ll n=s.size(); ll r[n]; r[0]=(s[0]-'...
<filename>dist/Textarea/index.d.ts interface TextareaProps { hasError?: boolean; } declare const Textarea: import("styled-components").StyledComponent<"textarea", any, TextareaProps, never>; export default Textarea;
<reponame>satoru2001/MLH-Flask-Starter-Pack<gh_stars>10-100 from __future__ import absolute_import, unicode_literals __version__ = '1.0.0' import misaka from flask import Markup from copy import copy # import constants for compatibility from misaka import (EXT_AUTOLINK, EXT_FENCED_CODE, # pyflakes.ignore ...
// YasdiMasterInitialize initializes YASDI by reading information from the INI- // file and returns the number of found drivers. // This function must be called before all others. func YasdiMasterInitialize(iniFilePath string) (int, error) { cPath := C.CString(iniFilePath) defer C.free(unsafe.Pointer(cPath)) cDriver...
/** * Created by alexeyglushkov on 26.08.16. */ public class SimpleCompareStrategy<T> implements CompareStrategy<T> { private boolean isInversed; public SimpleCompareStrategy() { } protected SimpleCompareStrategy(Parcel in) { this.isInversed = in.readByte() != 0; } @Override pub...
""" graph.py """ class Graph: def __init__(self, lines): self.edges = set() self.vertices = set() self.indexes = dict() for line in lines: tmp = line.split(',') self.vertices.add(tmp[0]) self.vertices.add(tmp[1]) self.edges.add(self.E...
/** * Method to load all codes from deployed bundles or legacy custom * extensions from Svarog2 * * @param jCodes * The JsonObject in which the codes will be stored * @throws IOException * any exception when reading the files */ private static void loadCodes(JsonObject jC...
def to_json(self): json = {'title': self.title} if self.sub_title is not None: json['subtitle'] = self.sub_title if self.image_url is not None: json['image_url'] = self.image_url if self.default_action is not None: json['default_action'] = self.default...
Statistic-Based Magnitude Determination of Impulse Sample in Impulse Postfix OFDM Systems Instead of pilot tones, the impulse sample is exploited for channel estimation in Impulse Postfix OFDM systems . As the magnitude of impulse sample is increased, the accuracy of channel estimation can be enhanced, but it may sig...
Making the Most of Tweet-Inherent Features for Social Spam Detection on Twitter Social spam produces a great amount of noise on social media services such as Twitter, which reduces the signal-to-noise ratio that both end users and data mining applications observe. Existing techniques on social spam detection have focu...
import { EnigmaUtils, SigningCosmWasmClient, Secp256k1Pen, pubkeyToAddress, encodeSecp256k1Pubkey, } from 'secretjs'; import { getSafeUrl } from 'components/protocols/secret/lib'; import type { NextApiRequest, NextApiResponse } from 'next'; export default async function connect( req: NextApiRequest, res: NextApiRe...
import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { Component, OnInit, Input } from '@angular/core'; import { Router, ActivatedRoute } from '@angular/router'; import { MustMatch } from '../../common/validation'; import Swal from 'sweetalert2'; import { AccountsService } from '../../services/ac...
Evaluation of the effectiveness of the use of hepatoprotector in acute liver damage by various toxicants in the experiment Introduction. Acute liver damage with ethanol and its surrogates and chemicals remains an urgent problem. Therefore, studies of the use of hepatoprotector in acute liver damage by various toxicant...
/* * Copyright (C) 2014 <NAME> * * 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 ...
/** * Creates a parser for the given URL. * * <p> * If you do not read all records from the given {@code url}, you should call {@link #close()} on the parser, unless * you close the {@code url}. * </p> * * @param url * a URL. Must not be null. * @param charse...
Lately, media around the web has been bracing for robots — not time-traveling robots per se, but robot workers. Specifically, the increased sophistication of artificial intelligence and improved engineering of robotics has spurred a growing concern about what people are going to do when all the regular jobs are done by...
from .futurasciences_loader import FuturaSciencesLoader from .liberation_loader import LiberationLoader from .nouvelobs_loader import NouvelObsLoader from .telerama_loader import TeleramaLoader from .lefigaro_loader import LeFigaroLoader from .lemonde_loader import LeMondeLoader
// calls advance_core, keeps track of deficit it adds to animaption_step, make sure the deficit sum stays close to zero MainFrameTime MainTimerSync::advance_checked(float p_frame_slice, int p_iterations_per_second, float p_idle_step) { if (fixed_fps != -1) p_idle_step = 1.0 / fixed_fps; p_idle_step += time_deficit;...
// Test a single write which fills multiple blocks, and then overflows the last TEST(BlockPacker, MultiBlockInputPlus) { MockPackerCallback callback; BlockPacker packer; auto buffer = generateByteSequence(0, 33); callback.expects({32}); ASSERT_OK(packer.pack(ConstDataRange(buffer), callback)); a...
import sys from threading import Thread, Lock, Condition import time from random import random, randrange import colored from colored import stylize import pandas as pd import csv import os import threading import random # ============= Utilities for MySQL ============================= from datetime import datetime ...
/** * Auto-converts the given response object to a representation matching the layout used by the API call. The layout * will be determined heuristically by analyzing the routes actual return value and compare it to the type of values * typically returned by a specific layout. * * @param result...
<gh_stars>0 // noinspection JSUnusedGlobalSymbols import {SmartTransactionsProductModel} from './smart-transactions-product-model'; export class SmartTransactionsList { /** * Number of existing smart transactions */ count?: number; /** * SmartTransactionsList */ data?: Array<SmartTransactionsProdu...
export * from './recipeService'
/* AizuOnline A1510 Title Independent Research PE */ #include <stdio.h> //Global data section int cas; int N; int hako[5][5][5]; int hakow[5][5][5]; int M1,M2; int a[27]; int b[27]; // int mawari(int x,int y,int z) { int i,j,k,c; c=0; for(i=-1;i<=1;i++) for(j=-1;j<=1;j++) for(k=-1;k<=1;k++) { if((i|...
<reponame>zealoussnow/chromium<gh_stars>1000+ /* Copyright (c) 2013 <NAME> */ /* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this li...
Results of peripheral laser photocoagulation in pars planitis. PURPOSE To determine the effect of peripheral retinal laser photocoagulation (PLP) on visual acuity, intraocular inflammation, and other ocular findings, including retinal neovascularization in eyes with pars planitis. METHODS A retrospective chart revie...
/** * A class for testing HTML parsing of class comment to find the img tag * * @author Goran Stack * */ public class TestHtmlParser implements FocusListener, DocumentListener { private static final String HTML_SAMPLE = "<html>\n" + "<img src=\"doc-files/ColorConstants.png\">\n" + "<p> \nThis is a...
/** * Created by Viliam Repan (lazyman). */ public class PrismEntityPair<T> { private PrismValue prism; private T repository; public PrismEntityPair(PrismValue prism, T repository) { this.prism = prism; this.repository = repository; } public PrismValue getPrism() { retur...
Dynamics of glass-forming liquids. XIII. Microwave heating in slow motion. Using time-resolved nonlinear dielectric relaxation measurements at fields as high as 450 kV/cm, the nonthermal effects of energy absorption are studied for simple and associating polar liquids in their supercooled state. The experiment is a lo...
Steady your sights on Parkinson's disease. www.nursing2008.com December | Nursing2008 | 56hn1 A few years ago, my husband Brian, 44, was taken to the ED after he was found lying unresponsive in the hallway of a public building. He was described as having seizurelike activity with tremors in his right arm and muscle co...
def apt(x): dig = 0 Count = 0 while x > 0: dig = x%10 x = x//10 Count += 1 return (dig - 1)*10 + ((Count*(Count + 1)//2)) t = int(input()) for i in range(t): x = int(input()) print(apt(x))
//----------------------------------------------------------------------------- // Purpose: Activate's the player special ability // called when the player hits their "special" key //----------------------------------------------------------------------------- void TeamFortressViewport::InputPlayerSpecial(void) { if...
<gh_stars>10-100 package com.github.diegopacheco.sandboxspring.dto; public class OutputMessage { private String from; private String text; private String time; public OutputMessage(){} public OutputMessage(String from, String text, String time) { this.from = from; this.text = tex...
import React from 'react'; import CloseIcon from '../../../icons/CloseIcon'; import useChatContext from '../../../hooks/useChatContext/useChatContext'; export default function ChatWindowHeader() { const { setIsChatWindowOpen } = useChatContext(); return ( <div className="flex w-full py-2 justify-between item...
An integrated approach to hospital strategic planning, quality assurance, and continuous quality improvement. Like many other healthcare organizations today, the authors' facility, a 306-bed acute care community hospital in Michigan, strives to visualize and make a transition from traditional quality assurance to cont...
package com.highjet.portal.modules.portal.dao; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.highjet.portal.modules.portal.entity.SysLoginLogEntity; /** * 登录日志 * * @author jiangyin * @email * @date 2018-07-19 22:57:30 */ public interface SysLoginLogDao extends BaseMapper<SysLoginLogEntity>...
Looking to take a walk on the wild side? A centre located in Golden, British Columbia provides a once in a lifetime experience to visitors looking to try something totally unique. RELATED: At the Northern Lights Wolf Centre you can expect to come face to face with some of nature’s fiercest canines and come away comp...
/* * Copyright (c) 2000-2001,2005 Silicon Graphics, Inc. * All Rights Reserved. * * 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. * * This program is distributed in the hope that it woul...
/** * * Filter to add mandatory headers to all request * * @author Rajaram Kaliyaperumal * @since 2015-11-19 * @version 0.1 */ @Component public class ApplicationFilter implements Filter { private FilterConfig filterConfig; @Override public void init(FilterConfig filterConfig) throws Servlet...
<reponame>yamachig/VSCode-Lawtext import xmlToEL from "lawtext/dist/src/node/el/xmlToEL"; import renderLawtext from "lawtext/dist/src/renderer/lawtext"; import * as vscode from "vscode"; export const xmlToLawtext = async () => { const document = vscode.window.activeTextEditor?.document; if (!document) return;...
/** * This file is part of TWIMExtract * * This object is a utility class for making calls to the imextract.exe in order to extract * specific ranges of HDMS data * @author Daniel Polasky * @author Kieran Neeson */ public class IMExtractRunner { // The single instance of this object private static IM...
<gh_stars>0 package net.minecraft.client.renderer.entity.layers; import com.mojang.blaze3d.vertex.PoseStack; import com.mojang.math.Vector3f; import net.minecraft.client.Minecraft; import net.minecraft.client.model.SnowGolemModel; import net.minecraft.client.renderer.MultiBufferSource; import net.minecraft.client.rend...
// ------------------------------------------ // This function was copied from SDK samples // ------------------------------------------ /* This function obtain the textual representation of a binary Sid. A standardized shorthand notation for SIDs makes it simpler to visualize their components...
/** * A Camel Java DSL Router */ public class MyRouteBuilder extends RouteBuilder { /** * Let's configure the Camel routing rules using Java code... */ public void configure() { //example routes for consumer using a testnet node from("casper:http://localhost:8080/events/main?operation...
A Survey on Hardware/Software Codesign Representation Models In hardware/software codesign, modeling is a very important issue. The model must capture the features of the system and describe its functionality. The design cycle must be based on formal representations so that the synthesis of a design from specification...
Unpredictability in some nonchaotic dynamical systems. We study properties of decay of the correlations for a class of smooth observables and mutual mixing for a class of subsets, with various rates ranging from the power-law to the exponential rate, in simple deterministic nonstrongly chaotic dynamical systems on the...
<reponame>DRIVER-EU/scenario-editor<filename>packages/tmt/src/components/trials/trial-list.ts import m from 'mithril'; import { TextInput, RoundIconButton, Icon } from 'mithril-materialized'; import { TrialSvc, dashboardSvc } from '../../services'; import { titleAndDescriptionFilter, padLeft } from '../../utils'; impor...
Have you noticed the impact of the sharing economy? Sharing Economy? What is it? Sharing economy also known in few other names, Peer Economy, Collaborative Consumption or Asset-light Life Style is all about sharing your under utilized assets through online or virtual markets. Think of it this way; you want a lawn mo...
<filename>src/app/app.module.ts import { MiddlewareConsumer, Module, NestModule, RequestMethod } from '@nestjs/common'; import * as cookieParser from 'cookie-parser'; import * as cors from 'cors'; import * as csurf from 'csurf'; import * as expressPino from 'express-pino-logger'; import * as helmet from 'helmet'; impo...
class MovingAverage: """ Calculates the moving average of reflection with the raw wavelength and raw trace from the cache """ command: str result: BaseResult def do_work(self) -> BaseResult: array_result: Tuple[np.array, np.array] = load_only_array_results() if not array_result:...
/** * A naive implementation of QueryEngine that just loads all the documents in the queried collection * and then filters them in memory. */ public class SimpleQueryEngine implements QueryEngine { private final LocalDocumentsView localDocumentsView; public SimpleQueryEngine(LocalDocumentsView localDocumentsVi...
def render_latex(input_text, dpath=None, fname=None, preamb_extra=None, verbose=1, **kwargs): import utool as ut try: import vtool_ibeis as vt except ImportError: import vtool as vt input_text_ = '\\pagenumbering{gobble}\n' + input_text img_fname = ut.ensure_ext(fnam...
/* get a maximal span to read. Returns 0 if buffer * is empty */ ssize_t bufGetReadSpan (buffer_t * b, void **addr) { if (b->empty) { *addr = NULL; return 0; } *addr = &(b->buf[b->ridx]); ssize_t len = b->widx - b->ridx; if (len <= 0) len = b->size - b->ridx; return len; }
/*** * Exception thrown when there's no possible gtop route that would satisfy the conditions. * * */ @SuppressWarnings("serial") public class PathDescriptionException extends PathFinderException { /*** * Route does not match gtop. * * @param notFoundInputHint additional information */ ...
/** * * @author Adam Margolin * @author Raktim Sinha */ public class CGHPositionGraphSeparatedCanvas extends CGHPositionGraphCanvas implements ActionListener{ PositionDataRegionClickedPopup regionClickedPopup; public static final int AMPLIFICATIONS = 0; public static final int DELETIONS = 1; boo...
Russian Trial ALGORITHM: Implementation of Combined Antihypertensive and Hypolipidemic Treatment for Clinical Efficacy Achievement in Routine Clinical Practice Aim. To study the clinical outcomes (achievement of target blood pressure ) and tolerability of antihypertensive and hypolipidemic therapy with fixed combinat...
/** * Represents a Databus physical partition * * @see <a href="https://iwww.corp.linkedin.com/wiki/cf/display/ENGS/Databus+2.0+and+Databus+3.0+Data+Model">Databus 2.0 and Databus 3.0 Data Model</a> */ public class PhysicalPartition implements NamedObject, Comparable<PhysicalPartition> { private final Integer _id...
// CreateInviteInvitationPath computes a request path to the createInvite action of invitation. func CreateInviteInvitationPath(inviteTo string) string { param0 := inviteTo return fmt.Sprintf("/api/invitations/%s", param0) }
<gh_stars>1-10 /** * */ /** * @author Loic * */ package csv;
Microvascular obstructions in portal bile duct capillaries and hepatic sinusoids during normothermic machine perfusion of marginal human livers We read with great interest the recent work of DiRito et al. who demonstrate the formation of Rouleaux-like aggregations of red blood cells (RBCs) during normothermic machine ...
def _create_aggregator(self, aggregation_method): aggregators={ 'sum': SumSentimentIntensityAggregator, 'avg': AvgSentimentIntensityAggregator, 'max': MaxSentimentIntensityAggregator } am = aggregation_method.lower() if am in aggregators: ...
Disclosure: This post may contain Amazon affiliate links. As an Amazon Associate I earn from qualifying purchases. Thank you for helping me keep the lights on! See my Privacy Policy for more details. Make this rich, flavorful Red Curry Soup with whatever veggies you want! It’s a filling, one-bowl meal that only takes...
/// Process a single input event. fn handle_event(&mut self, state: &mut EngineStateRef, event: &Event) -> EventResult { let _ = state; let _ = event; EventResult::Ignored }
package dynamo import ( "bytes" "encoding" "fmt" "reflect" "strconv" "strings" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/dynamodb" "github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute" ) // Marshaler is the interface implemented by objects that can marshal themselves into /...
Superpriming of synaptic vesicles after their recruitment to the readily releasable pool Significance During sustained nerve activity, synapses must continuously recycle vesicles. We used the unique opportunities for quantitative analysis offered by the calyx of Held synapse to study late stages in the process that re...
// NonOptional returns v.Elem() if v is non-nil Optional, otherwise returns v. func (v *Value) NonOptional() *Value { if v.t.kind == Optional && !v.IsNil() { return v.Elem() } return v }
/* ** This file contains proprietary software owned by Motorola Mobility, Inc. ** ** No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder. ** ** ** (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. ** */ #include "string.h" #include "Image.h" #...
<filename>claypot/migrations/0011_recipe_description.py<gh_stars>0 # Generated by Django 2.2.2 on 2019-07-24 08:14 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("claypot", "0010_auto_20190709_1847")] operations = [ migrations.AddField( ...
/** * Make sure special characters are serialized properly. * * @throws Exception... */ public void testSerializeRegexErrorParserSpecialCharacters() throws Exception { final String TESTING_ID = "org.eclipse.cdt.core.test.regexerrorparser"; final String TESTING_NAME = "<>\"'\\& Error Parser"; final String ...
Three-dimensional Characteristics of the Loess's microstructure and comparison before and after collapse Microstructure surface undulation is an important parameter to denote the loess microstructure characteristics, but the current studies are mostly qualitative and quantitative two-dimensional analysis, which diffic...
#include<bits/stdc++.h> using namespace std; int a[3005]; int main() { int t;cin>>t; while(t--) { int n,sum=0;cin>>n; for(int i=0;i<n;++i) { cin>>a[i];sum+=a[i]; }int flag=0,step=0,minstep=1e9; for(int i=1;i<=sum;++i) { if(sum%i!=0) continue; flag=0;int t=0;step=0; for(int j...
/** * Saves a given stream of elements to their respective files. * * @param elements The elements to save. * @return Returns a stream of all elements that were successfully saved. */ public Stream<T> saveSelected(final Stream<T> elements) { if (elements == null) { return Stream.<T>empty().parallel(); ...
package data import ( "github.com/bububa/oppo-omni/enum" "github.com/bububa/oppo-omni/model" ) type QTodayTopRequest struct { model.BaseRequest Demision *enum.DataDemision `json:"demision,omitempty"` } type QTodayTopResponse struct { model.BaseResponse Data *QTodayTopResult `json:"data,omitempty"` } type QTod...
<gh_stars>0 package com.kmjd.wcqp.single.zxh.model; /** * Created by zym on 2017/3/17. * 微信零钱明细原始数据 */ public class ChangeDetailBean { /** * balance : 1181 * balance_source : 收入 * bill_type : * bkid : 6b650cb2c0959fb305d2c87d4103fa7f * conmum : * createtime : 2017-01-29 17:45:36 ...