content
stringlengths
10
4.9M
package com.github.freeacs.web.app.page.file; import com.github.freeacs.dbi.File; import com.github.freeacs.dbi.FileType; import com.github.freeacs.web.app.input.DropDownSingleSelect; import java.util.List; public class SoftwarePage extends FilePage { @Override public DropDownSingleSelect<FileType> getTypeSelect(F...
package com.tarena.poll.dao.impl; import java.util.List; import org.hibernate.Session; import org.hibernate.Transaction; import com.tarena.poll.dao.DaoException; import com.tarena.poll.dao.IClassDao; import com.tarena.poll.entity.TClass; import com.tarena.poll.entity.TClassType; import com.tarena.poll.util.HBDaoFact...
import { ReviewType } from './Post'; export enum ReferStoreType { ReviewItemRefer = 'ReviewItemRefer', SharerRefer = 'SharerRefer', } export enum ReferPriority { High = 'HIGH', Low = 'LOW', } type BaseRefer = { priority: ReferPriority; itemId: number; targetId: number; expireExpectAt: string; }; exp...
// List will list all the requests received func (o *OptimisationRequest) List(ctx context.Context, log *log.Logger, w http.ResponseWriter, r *http.Request, params map[string]string) error { dbConn := o.MasterDB.Copy() defer dbConn.Close() requests, err := optimisationRequest.List(ctx, dbConn) if err = translate(er...
<reponame>bannerxu/boot-learning<filename>spring-boot-mybatis-plus/src/main/java/top/banner/service/impl/UserServiceImpl.java package top.banner.service.impl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import org.springframework.stereotype.Service; import top.banner.entity.User; import top.ban...
/// Create a new [GdbTriager] using the built-in GDBTriage script pub fn new(gdb_path: String) -> GdbTriager { let mut triage_script = GdbTriageScript::Internal(tempfile::Builder::new().suffix(".py").tempfile().unwrap()); if let GdbTriageScript::Internal(ref mut tf) = triage_script { ...
def imul_group_word(self, v1, g): assert isinstance(g, AbstractGroupWord) and g.group.is_mmgroup a = g.mmdata nn = np.zeros(5, dtype = np.uint32) nnw = np.zeros(5, dtype = np.uint32) buf = np.zeros(v1.data[255].ops.MMV_INTS, dtype = np.uint64) while len(a): m...
/** * A MetricReporter that does nothing. * <p> * Can be used as an alternative to turning off metrics reporting. * </p> */ public class NoopReporter implements MetricReporter { @Override public void report(ReportMetrics reportMetrics) { // do nothing } @Override public void cleanup() { // do no...
def check_convert_string(obj, name=None, no_leading_trailing_whitespace=True, no_whitespace=False, no_newline=True, as_tag=False, min_len=1, max_l...
package com.bugsnag.android; import android.content.Context; import android.content.SharedPreferences; import android.content.pm.ApplicationInfo; import android.content.pm.PackageManager; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.text.TextUtils; import java....
<filename>sql-jdbc/src/main/java/com/amazon/opendistroforelasticsearch/jdbc/internal/results/ColumnMetaData.java /* * Copyright <2019> Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with th...
// Platform-specific initialization // On Windows, enable colors in terminal. On other systems, do nothing. // Return value: 0 on success, negative number on failure. int initialize() { #ifdef _WIN32 HANDLE h_stdout = GetStdHandle(STD_OUTPUT_HANDLE); if (h_stdout == INVALID_HANDLE_VALUE) return -1; ...
/** * The method moves figure from start position to the destination position. * @param figure to be moved. * @param destinationX destination coordinate X. * @param destinationY destination coordinate Y. */ public void moveFigure(Figure figure, int destinationX, int destinationY) { Figu...
// SPDX-License-Identifier: BSD-3-Clause // // Copyright(c) 2021 Intel Corporation. All rights reserved. #ifndef ACA_MODULE_H_ #define ACA_MODULE_H_ #include "loadable_processing_module.h" #include "build/module_design_config.h" #include "aca_config.h" #ifdef NOTIFICATION_SUPPORT #include <notification_message.h> ...
<gh_stars>1-10 import Dexie from 'dexie'; import faker from 'faker/locale/en'; import { encrypted } from '../../src/encrypted'; import { Encryption } from '../../src/encryption.class'; export interface Friend { id?: string; testProp?: string; hasAge?: boolean; firstName: string; lastName: string; ...
Changes in Vegetation Cover of Yukon River Drainages in Interior Alaska: Estimated from MODIS Greenness Trends, 2000 to 2018 Abstract Trends and transitions in the growing season MODerate resolution Imaging Spectroradiometer (MODIS) Normalized Difference Vegetation Index (NDVI) time series at 250-m resolution were ana...
""" Scheduled Sampling Anneal input of decoder variational latent embedding conv embed """ import numpy as np from functools import partial import tensorflow as tf import tensorflow.contrib.rnn as rnn import tensorflow.contrib.distributions as tfd def gausspdf(x, mean, sigma): return tf.exp(-(x - mean)**2 / ...
<filename>regrun/vbb-rest-python/vbb/modules/locations.py from basemodule import BaseModule class Locations(BaseModule): """Module to invoke locations API of VBB REST""" def __init__(self, requester=None): super(Locations, self).__init__(requester) def get_locations(self, query=None, results=10, ...
/// Generate multiplication array /// /// Generate a string representing a 5d multiplication array. This array uses the associativity /// of multiplication `(a + b) * (c + d) == a*c + a*d + b*c + b*d` to reduce table size. /// /// The input is split into bit chunks e.g. for a GF_1024 number we take the lower 8 bit and ...
/** * Removes the specified step from the tutorial. * * @param index The position of the step to remove. * @return the step that was removed. */ public Step removeStep(int index) { Step step = m_steps.remove(index); step.setIndex(null); for (int i = index; i < m_steps.si...
Samsung has dropped Samsung Wallet into the Play Store, an app previously only available through Samsung Apps on devices such as the Galaxy S4, Note 2, and Galaxy S3. We first heard about the offering back at this year's Mobile World Congress, and its functionality hasn't changed from what was promised. This remains Sa...
// Values returns all known values for PhoneNumberFilterName. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (PhoneNumberFilterName) Values() []PhoneNumberFilterName { return []PhoneNumber...
<gh_stars>100-1000 // SPDX-FileCopyrightText: 2014-2021 SAP SE // // SPDX-License-Identifier: Apache-2.0 package protocol import ( "fmt" "github.com/SAP/go-hdb/driver/internal/protocol/encoding" ) type optBooleanType bool type optTinyintType int8 type optIntType int32 type optBigintType int64 type optDoubleType f...
def next_page_token(self, response: requests.Response) -> Optional[Mapping[str, Any]]: pagination = response.json().get("pagination") if pagination.get("current"): return {"page": response.json().get("pagination").get("current") + 1} else: return None
/** * Removes the client method handler represented by this subscription. */ public void unsubscribe() { List<InvocationHandler> handler = this.handlers.get(target); if (handler != null) { handler.remove(this.handler); } }
Atomic and electronic structure of the Pb/Si(111)-√7x√3 surface: DFT calculations The atomic and electronic structure of the Pb adsorbed Si(111)-( x ) surface has been studied by density-functional theory (DFT) calculations. We examined two structural models: One is the 1.0 ML trimer model proposed by a STM expe...
<reponame>niorad/Skewbacca import { app, remote, BrowserWindow, dialog, ipcMain } from "electron"; import * as path from "path"; import { Coordinates, Config, State } from "../types/types"; import { initialize } from "./setup"; import { ImageConverter } from "./ImageConverter"; import { FileManager } from "./FileManage...
/* KeccakTools The Keccak sponge function, designed by Guido Bertoni, Joan Daemen, Michaël Peeters and Gilles Van Assche. For more information, feedback or questions, please refer to our website: http://keccak.noekeon.org/ Implementation by the designers, hereby denoted as "the implementer". To the extent possible u...
#include <iostream> #include <cstdlib> #include <fstream> using namespace std; int reverseNumber(int number) { int rev = 0; while (number > 0) { // multipy the rev by 10 and the append the last number rev = rev * 10 + number % 10; // update the number number /= 10; } ...
/* This basically bins and then flushes any outstanding full-screen * clears. * * TODO: fast path for fullscreen clears and no triangles. */ static boolean execute_clears( struct lp_setup_context *setup ) { LP_DBG(DEBUG_SETUP, "%s\n", __FUNCTION__); return begin_binning( setup ); }
/** * Created with IntelliJ IDEA. * User: neil * Date: 18/07/2013 * Time: 16:04 * To change this template use File | Settings | File Templates. */ public class StringKeyHashMapTest { @Test public void shouldDoSImpleStuff() throws Exception { StringKeyHashMap map = new StringKeyHashMap(); m...
/** * Adds a command to this provider. * * @param command the command to add */ public void add(Command command) { for (var alias : command.getAliases()) { commandMap.put(alias, command); } }
<reponame>Doomsdayrs/android_packages_apps_GmsCore /* * SPDX-FileCopyrightText: 2020, microG Project Team * SPDX-License-Identifier: Apache-2.0 */ package com.google.firebase.auth.api.internal; import com.google.firebase.auth.ActionCodeSettings; import org.microg.safeparcel.AutoSafeParcelable; public class SendG...
/** Arranges the first three vertices in order of increasing x using bubble sort.*/ static private void xSort(ScreenVertex[] v) { if (v[1].x < v[0].x) swap(v, 0, 1); if (v[2].x < v[1].x) swap(v, 1, 2); if (v[1].x < v[0].x) swap(v, 0, 1); }
/** * read data from serial port * * @param serialPort : The SerialPort object to which the connection is currently established * @return Retrieved data */ public static byte[] readFromPort(SerialPort serialPort) { InputStream in = null; byte[] bytes = {}; try { ...
Why the Atlanta Falcons Will Not Make the Playoffs by Sam Kweon Here at FanSided and Blogging Dirty, we hope to keep you entertained with off-topic material! And what’s more fun than creating an Atlanta Falcons logo pancake and enjoy the best breakfast you’ve ever had in your life! A very talented person of FanSided m...
<filename>src/plugin/spacy.rs // # type Corpus implements Node { // # id: ID!, // # type: KSpacePointer!, // # } // # type Document implements Node { // # id: ID!, // # # Encourage reuse of corpus // # corpuses: [Corpus] // # } // # type Paragraph implements Node { // # id: ID!, // # // // #...
// Set quit variable when SIGINT is received so we can do proper cleanup void quitSignal(int unused) { (void)unused; quit = 1; printf("\nCaught kill signal, quitting...\n"); }
/* NASA/TRMM, Code 910.1. This is the TRMM Office Radar Software Library. Copyright (C) 1996, 1997 <NAME> Space Applications Corporation Vienna, Virginia This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library Ge...
/** * This Xml Interface allows parsing the annotation class instance from a respective XML node. Note that * this node must be the root node for the relevant annotation class, and as such is found within the * XML document of an annotatable text document. * * @see TextModelDataXmlInterface * @see AnnotationClass...
<reponame>MancerBr/tranningApp<gh_stars>0 import { createFeatureSelector, createSelector } from '@ngrx/store'; import { authFeatureKey, AuthState } from './auth.reducers'; export const selectAuth = createFeatureSelector<AuthState>(authFeatureKey); export const getAuthLoading = createSelector( selectAuth, (st...
def xor_string(string: str) -> str: result = "" for c in string: result += chr(ord(c) ^ len(string)) return result
/*** * Removes the given edge from the graph. * * @param from vertex ID for the source vertex. * @param to vertex ID for the destination vertex. */ public void removeEdge(int from, int to) { if (adjList == null) { return; } HashMap<Integer, E> adjListV = adjList.get(from); if (adjL...
//---------------------------------------------------------------------------- // // Project : Call To Power 2 // File type : C++ header file // Description : the Goal motherclass // Id : $Id$ // //---------------------------------------------------------------------------- // // Disclaimer // // THI...
/** * The implementation of the rmic for WebLogic * * @since Ant 1.4 */ public class WLRmic extends DefaultRmicAdapter { public boolean execute() throws BuildException { getRmic().log("Using WebLogic rmic", Project.MSG_VERBOSE); Commandline cmd = setupRmicCommand(new String[] {"-noexit"}); ...
from setuptools import setup with open('./README.md', 'r') as fi: readme = fi.read() setup( name='{{cookiecutter.name}}', version='{{cookiecutter.version}}', author='{{cookiecutter.author}}', author_email='{{cookiecutter.author_email}}', packages=['{{cookiecutter.name}}'], description='{{...
<gh_stars>0 """This contains various functions used to compose the Bonaire API SSH commands.""" import re from typing import Optional from rassh.datatypes import WellFormedCommand from rassh.exceptions.exception_with_status import ExceptionWithStatus def set_group(ssh_command, ap_wiredmac: str, ap_group: str, cmd: W...
""" Interaction Model This module basically maps out the response tree for the skill. """ from datetime import timedelta, datetime, date from typing import Union, Optional, Dict, Tuple from textwrap import dedent from enum import Enum import logging from . import wods from . import speechlet from . import env from .in...
/* Line numbers refer to: https://github.com/codybartfast/sicp/blob/master/chapter5/mc-evaluator-50.scm */ #include "environment.h" #include <string.h> #include "custom.h" #include "error.h" #include "list.h" #include "output.h" #include "primproc.h" #define AREA "ENVIRONMENT" static obj the_empty_environment(void...
/** * @file mali_kbase_softjobs.c * * This file implements the logic behind software only jobs that are * executed within the driver rather than being handed over to the GPU. */ static void kbasep_add_waiting_soft_job(struct kbase_jd_atom *katom) { struct kbase_context *kctx = katom->kctx; unsigned long lflags; ...
package inference import ( "context" "io" "github.com/grafana/regexp" "github.com/sourcegraph/sourcegraph/internal/api" "github.com/sourcegraph/sourcegraph/internal/authz" "github.com/sourcegraph/sourcegraph/internal/database" "github.com/sourcegraph/sourcegraph/internal/gitserver" "github.com/sourcegraph/so...
Holbrook Mohr, Heather Hollingsworth and Mike Kunzelman, The Associated Press BATON ROUGE, La. -- Gavin Long was a man of mixed messages. He peddled self-published books with abstract themes about self-empowerment and spiritual enlightenment, but also posted rambling Internet videos calling for violent action in respo...
/** * spec p. 71: * For a given value of policy context identifier, this method must always return the same instance of PolicyConfiguration and there must be at * most one actual instance of a PolicyConfiguration with a given policy context identifier (during a process context). * * @throws...
import { Prescripcion } from '../modelos/prescripcion'; export const PRESCRIPCIONES: Prescripcion[] = [ { id: 312, nombre: 'Clorhidrato De Metformina 100 Mg/Ml, Solución Oral', nombreComercial: 'Clorhidrato De Metformina 100 Mg/Ml, Solución Oral', cantidad: '1 unidad', forma...
This could ruin a lot of good science fiction movies … and create interesting plots for the next generation of them, not to mention influencing how humans deal with space aliens when they first encounter each other (assuming they haven’t already). A timely article by The Daily Galaxy reviews the study “Alien Minds” by ...
/** * Created by Ikasan Development Team on 14/02/2017. */ public abstract class SolrDaoBase<T> implements SolrInitialisationService { /** Logger for this class */ private static Logger logger = LoggerFactory.getLogger(SolrDaoBase.class); private static final List<String> ALL = Arrays.asList("*"); p...
/** * Handles a general Write exception. */ private void handleWriteException(Throwable ex) { if (ex instanceof ObjectClosedException && !this.closed.get()) { log.warn("{}: Caught ObjectClosedException but not closed; closing now.", this.traceObjectId, ex); close(); } ...
// DO NOT MODIFY. // Automatically generated by Sbml2Cellontro from ./sbml/YeastGly.xml // Thu Jan 18 19:00:19 EST 2007 package org.primordion.cellontro.app.sbml; public interface CeYeastGlyPritchardKel { public static final int XholonClassCE = 0; public static final int SbmlCompartmentCE = 1; public sta...
// TODO(nhiroki): Remove this once the off-main-thread WebSocket is enabled by // default (https://crbug.com/825740). std::unique_ptr<blink::WebSocketHandshakeThrottle> ChromeContentRendererClient::CreateWebSocketHandshakeThrottle() { InitSafeBrowsingIfNecessary(); return std::make_unique<safe_browsing::WebSocketSB...
<filename>pkg/utl/models/user_test.go package models_test import ( "testing" "github.com/stretchr/testify/assert" "github.com/johncoleman83/cerebrum/pkg/utl/models" ) func TestChangePassword(t *testing.T) { user := &models.User{ FirstName: "TestGuy", } hashedPassword := "<PASSWORD>" user.ChangePassword(h...
Venus Williams survived a match point against the Czech Republic’s Barbora Zahlavova-Strycova on her way to the quarterfinals of the Qatar Open. Williams looked set for a routine win early in the third set, pulling away to a 5-3 lead before Zahlavova-Strycova fought back, winning three straight games to go up 6-5, and...
<reponame>Klarrio/dcos-diagnostics package api import ( "strings" "github.com/dcos/dcos-diagnostics/dcos" "github.com/mitchellh/mapstructure" "github.com/sirupsen/logrus" ) func normalizeProperty(unitProps map[string]interface{}, tools dcos.Tooler) (HealthResponseValues, error) { var ( description, prettyName...
/** * @brief This method sets the initial deformation gradient matrix * @param rInitialDeformationGradientMatrix The vector to be set */ void InitialState::SetInitialDeformationGradientMatrix(const Matrix& rInitialDeformationGradientMatrix) { const SizeType dimension = rInitialDeformationGradient...
A bill that would allow for lawful concealed carry without a permit is heading to Gov. Steve Bullock for signature over the opposition of gun control advocates. The proposal, drafted last October, gained momentum in recent weeks, passing by a 56-43 margin in the House last month before winning a closer 28-21 roll call...
/* tslint:disable:no-default-export no-import-side-effect */ import { Badge, Header } from '@opengov/component-library/capital'; import PropTypes from 'prop-types'; import React from 'react'; // import { Link } from 'gatsby'; import components from '../../data/components.json'; import './base.scss'; import styles fr...
<filename>2.10.1/errors_test.go package freetype2 import ( "testing" ) func TestGetErr(t *testing.T) { var want error want = ErrCannotOpenResource if got := testErrCannotOpenResource(); got != want { t.Errorf("want err: %v, got %v", want, got) } want = ErrUnknownError if got := testUnmappedErr(); got != wa...
No no no no no no no. TERRIBLE. Okay. Kimberly-Clark’s takeover on the paper goods front continues here with Stroller Rentals now “Hosted by Huggies.” The Disney Jr. show is now “Presented by Pull-Ups.” One sponsorship that seems like a no-brainer outside of the “World” is the snacks on airplanes. Why doesn’t some sn...
Model Transformations in YATL. Studies and Experiments This report describes three examples of model transformations, which have been implemented using YATL and the support provided by Kent Modelling Framework . Model transformations are supported in KMF by a set of tools such as YATL-Studio, KMF-Studio, OCLCommon, a...
<gh_stars>0 /************************************************************************ Copyright 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/L...
/* * Schedules the timer for the customer level. Once the timer expires, the game is over. */ public void scheduleCustomerLevelTimer(Level level) { myLevelTimer = new Timer(); myLevelTimer.schedule(new TimerTask() { public void run() { Platform.runLater(new Runnable() { public void run() { lev...
<filename>src/main/java/Models/Types/package-info.java /** * Defines Types/Enums. */ package Models.Types;
/** * NO CHANGES NEEDED ON THIS CLASS FOR THE liveProject * * Request Listener for the initialization and destroying requests. This class * registers into Tomcat via the web.xml and provides logs to help in debugging * the webapp. * */ public class RequestListener implements ServletRequestListener { public v...
<filename>external/blend2d/src/blend2d/pipegen/blfetchpatternpart_p.h // [Blend2D] // 2D Vector Graphics Powered by a JIT Compiler. // // [License] // Zlib - See LICENSE.md file in the package. #ifndef BLEND2D_PIPEGEN_BLFETCHPATTERNPART_P_H #define BLEND2D_PIPEGEN_BLFETCHPATTERNPART_P_H #include "../pipegen/blfetchpa...
<reponame>muyangye/CSCI-104-Labs-Assignments #include <iostream> #include "llist.h" struct Pokemon { int id; std::string name; Pokemon() : id(0), name("") { } Pokemon(int i, std::string n) : id(i), name(n) { } }; int main() { LList<Pokemon> pokedex; pokedex.push_back(Pokemon(1, "Bulbasaur")); ...
def clear_bl(): bl = BusyLight() bl.write() bl.close()
//we do not call this method with parse data from inet_aton or single segment strings, so the cast to int is fine. //this is only for addresses with standard segment counts, although we do allow compressed. func (parseData *parsedIPAddress) isPrefixSubnet(networkPrefixLength BitCount) bool { var bytesPerSegment int v...
extern crate dotenv; extern crate env_logger; extern crate thruster; extern crate futures; extern crate serde; extern crate serde_json; extern crate tokio; extern crate tokio_proto; extern crate tokio_service; extern crate uuid; #[macro_use] extern crate serde_derive; #[macro_use] extern crate diesel; pub mod schema;...
<reponame>the-butcher/vector-tile-analysis import { IProtocolType } from "./IProtocolType"; import { WireTypeVarint32, WireType } from "../../WireType"; import { ISubSource } from "../source/ISubSource"; import { CodedInputStream } from "../source/CodedInputStream"; /** * protocol type specific to a 64-bit signed nu...
PHYSIOLOGICAL RESPONSES OF PEANUT CROPS TO IRRIGATION WITH BRACKISH WATERS AND APPLICATION OF ORGANO-MINERAL FERTILIZERS ABSTRACT The use of organo-mineral fertilizer is an alternative measure to mitigate salt stress in semiarid regions. Thus, the objective of this work was to evaluate the physiological indexes of pea...
<reponame>stormy-sandy/dx-scanner import { RestEndpointMethodTypes } from '@octokit/plugin-rest-endpoint-methods'; // https://github.com/octokit/plugin-rest-endpoint-methods.js export type PullsListParams = RestEndpointMethodTypes['pulls']['list']['parameters']; export type IssuesListForRepoParams = RestEndpointMethod...
CYP2D6 genotyping and the use of tamoxifen in breast cancer. Donald Berry in his recent editorial (1) regarding the role of CYP2D6 and tamoxifen highlights several controversies that exist in the clinical and biomarker field for women with breast cancer. The International Tamoxifen Pharmacogenomics Consortium (ITPC) w...
a = input()[1:-1].split(", ") letters = "abcdefghijklmnopqrstuvwxyz" seen = [] count = 0 for char in a: if char not in seen and char != "": seen.append(char) count+=1 print(count)
<filename>src/day18/mod.rs use core::cmp::min; use std::collections::{hash_map::DefaultHasher, HashMap}; use std::hash::{Hash, Hasher}; #[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)] enum Acre { OpenGround, Trees, Lumberyard, } fn parse(input: &str) -> (Vec<Acre>, usize) { let acres = input ...
/** * Returns true if the given profile_row is applied. */ static bool is_row_applied(const struct ovsrec_qos *profile_row) { if (profile_row == NULL) { return false; } const struct ovsrec_system *system_row = ovsrec_system_first(idl); if (system_row->qos == profile_row) { return true;...
<reponame>mg6613/Web_Project_Wine package com.jsplec.wp.command; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import com.jsplec.wp.dao.LoginSubDao; import com.jsplec.wp.dao.NoticeDao; import com.sun.corba.se.spi.activation.Reposito...
<reponame>ejKang/building-microservices-with-spring-boot package ecommerce.firstcart.util; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jms.annotation.JmsListener; import org.springframework.stereotype.Component; import com.fasterxml.jackson.core.JsonProcessingException; i...
<reponame>pjsier/topojson // Copyright 2018 The GeoRust Developers // // 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 b...
/*----------------------------------------------------------------------------- xlnx_scal_context_init: Initializes the scaler context with default values. Parameters: scal_ctx: Scaler context -----------------------------------------------------------------------------*/ void xlnx_scal_context_init(XlnxScalerCtx *sca...
package commands import ( "encoding/json" "fmt" "github.com/NexonSU/telegram-go-chatbot/utils" tele "gopkg.in/telebot.v3" ) //Return message on /debug command func Debug(context tele.Context) error { err := utils.Bot.Delete(context.Message()) if err != nil { return err } var message = context.Message() if...
/** * <p>Java class for CommonColumnDefnType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="CommonColumnDefnType"> * &lt;complexContent> * &lt;extension base="{http://www.pharmml.org/2013/03/CommonTypes}Pha...
#include <iostream> #include <string> using namespace std; int main() { string str, substr; cin>>str>>substr; int d[str.length()]; d[0] = 0; for(int k = 0, i = 1; i < substr.length(); i++) { while(k > 0 && substr[i] != substr[k]) k = d[k - 1]; if(substr[i] == subst...
<reponame>makannew/react-profile-photo import React from 'react' import { ImgPhoto } from './components/img' import Context from './context/context' import { useStateGateway } from 'use-linked-state' import { CropDefault } from './types and defaults/crop-default' import { SourceDefault } from './types and defaults/sour...
def testTurbiniaTaskRunWrapperExceptionThrown(self): self.setResults() self.task.run = mock.MagicMock(side_effect=TurbiniaException) new_result = self.task.run_wrapper(self.evidence.__dict__) new_result = TurbiniaTaskResult.deserialize(new_result) self.assertEqual(type(new_result), TurbiniaTaskResul...
// NewDecoder initializes a Decoder that will decode CBOR-encoded bytes from the // given io.Reader. // // It sets the given address as the owner (can be `nil`). // func NewDecoder(r io.Reader, owner *common.Address) (*Decoder, error) { decMode, err := cbor.DecOptions{}.DecModeWithTags(cborTagSet) if err != nil { r...
<filename>faebryk/library/traits/__init__.py # This file is part of the faebryk project # SPDX-License-Identifier: MIT import faebryk.library.traits.component import faebryk.library.traits.footprint import faebryk.library.traits.interface import faebryk.library.traits.link import faebryk.library.traits.parameter
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.paloaltonetworks.ngfw.implementation; import com.azure.core.http.rest.Response; import com.azure.core.management.SystemData; imp...
<reponame>LuizzAugusto/componentize export function parseProps(props?: Record<string,unknown> | null) { if (!props) { return '' } return Object.keys(props) .map((name: string) => ` ${name}="${props[name]}"`).join('') }
Ocular findings in 34 patients with Alport syndrome: correlation of the findings to mutations in COL4A5 gene. PURPOSE To describe the incidence and type of ocular findings of 34 patients with Alport syndrome and to analyze the association of gene defect in COL4A5 gene to ocular abnormalities found. METHODS A nationw...
<reponame>DVSR1966/par4all /* Impact of dynamic aliasing */ int pointer03() { int i = 3; int * ip = &i; *ip = 4; return i; }
# ptf --test-dir saitests copp_tests --qlen=100000 --platform nn -t "verbose=True;target_port=3" --device-socket 0-3@tcp://127.0.0.1:10900 --device-socket 1-3@tcp://10.3.147.47:10900 # or # ptf --test-dir saitests copp_tests --qlen=100000 --platform nn -t "verbose=True;target_port=10" --device-socket 0-10@tcp://127.0.0...