content
stringlengths
10
4.9M
A unified solution scheme for inverse dynamics In this paper, a completely new solution scheme for inverse dynamics, which can be commonly applied in different types of link systems such as open- or closed-loop mechanisms, or ones constituting rigid or flexible link members, is presented. The scheme is developed using...
Single and multiple dose pharmacokinetic studies of oral sustained release and non-sustained release formulations of isosorbide-5-mononitrate in healthy volunteers. The pharmacokinetics of a new sustained release tablet (40 mg, "test") of isosorbide-5-mononitrate (CAS 16051-77-7, IS-5-MN) was investigated together wit...
<filename>src/scenes/index.ts export * from './login.scene'; export * from './submodule-list.scene'; export * from './project-list.scene'; export * from './employee-list.scene'; export * from './project.scene'; export * from './employee.scene';
package grakn.example.xcom; public enum TransactionMode { READ, WRITE }
/** Return true if the field specified is included in another field transformer association */ public boolean duplicateField(MWColumn field) { if (field == null) { return false; } for (Iterator stream = this.relationalTransformationMapping().fieldTransformerAssociations(); stream.hasNext(); ) { MWRelational...
#include<stdio.h> #include<stdlib.h> #include<math.h> #define N 13 #define pi M_PI int main(){ int n; scanf("%d",&n); int a[100]; for(int i=0;i<n;i++){ scanf("%d",&a[i]); } int flag=1,count; while(flag){ flag=0; for(int j=n-1;j>0;j--){ if(a[j]<a[j-1]){ ...
def OnData(self, data): if not self.slow.IsReady: return if self.previous is not None and self.previous.date() == self.Time.date(): return tolerance = 0.00015 holdings = self.Portfolio["SPY"].Quantity if holdings <= 0: if self.fast.Current.Valu...
// Parse type information from a JSON "typeAnnotation" node. private Type parseTypeAnnotation(final TypeId typeId, final JsonObject originalTypeAnnotation) { JsonObject typeAnnotation = originalTypeAnnotation; String type = typeAnnotation.get("type").getAsString(); boolean nullable = false; Type parsedT...
<gh_stars>100-1000 package core import ( "github.com/EmYiQing/go-sqlmap/constant" "github.com/EmYiQing/go-sqlmap/log" "github.com/EmYiQing/go-sqlmap/parse" "github.com/EmYiQing/go-sqlmap/util" "regexp" "strconv" "strings" ) // DetectErrorBased 检测是否存在报错注入 func DetectErrorBased(fixUrl parse.BaseUrl, paramKey str...
Getty Fourth Estate The New Rules for Covering Trump Jack Shafer is Politico’s senior media writer. Donald Trump leveled Twitter yesterday with a 100-megaton stink bomb, asserting without a scrap of evidence that if millions of illegal ballots were deducted from the totals, he would have won the popular vote. As if ...
package design import . "goa.design/goa/v3/dsl" var _ = API("calc", func() { Title("Calculator Service") // Must define Server Server("calc", func() { Host("localhost", func() { URI("http://localhost:8000") }) }) }) var calc = Service("calc", func() { Method("add", func() { Payload(func() { Field(1,...
''' Verilen sayıya kadar olan asal sayılardan, toplamı verilen sayıya eşit olanları döner ''' class PrimeSum(): def primesummary(self, prime_list, num): result = [] for i in range(len(prime_list)): for j in range(len(prime_list)): if i == j:continue if pr...
/* * AM33XX Clock Domain data. * * Copyright (C) 2011-2012 Texas Instruments Incorporated - http://www.ti.com/ * Vaibhav Hiremath <hvaibhav@ti.com> * * 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 ...
/** * Class msg_set_local_position_setpoint * Set the setpoint for a local position controller. This is the position in local coordinates the MAV should fly to. This message is sent by the path/MISSION planner to the onboard position controller. As some MAVs have a degree of freedom in yaw (e.g. all helicopters/quadr...
<gh_stars>0 /* * Copyright (c) 2019. Service Prototyping Lab, ZHAW * All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www...
package net.violet.platform.management; import org.apache.log4j.Logger; /** * Classe pour envoyer des messages de monitoring. */ public class MonitorLogger { /** * Logger */ private static final Logger LOGGER = Logger.getLogger(MonitorLogger.class); public static void sendReport(String inBody) { // MailT...
# -*- coding: utf-8 -*- """Sentiment analysis implementations. .. versionadded:: 0.5.0 """ from __future__ import absolute_import from collections import namedtuple import nltk from textblob.en import sentiment as pattern_sentiment from textblob.tokenizers import word_tokenize from textblob.decorators import require...
// ensureMutations adds any DELETE_AND_WRITE_ONLY column mutations to the table // wrapper's list of mutations, to be returned by the MutationColumn method. func (ot *optTable) ensureMutations() { if ot.mutations == nil && len(ot.desc.Mutations) != 0 { ot.mutations = make([]*sqlbase.ColumnDescriptor, 0, len(ot.desc....
<filename>hydra-client/src/test/java/com/pandora/hydra/client/ConfigurationTest.java /* * Copyright Pandora Media 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...
The Seas of Titan A process is disclosed for the production of substituted aromatic compounds which comprises the reaction of an aromatic hydrocarbon with a compound containing an aldehyde functional group and a saturated hydrocarbon containing a tertiary carbon atom, or which is isomerized to form a saturated hydroca...
/* * Cause the GMainLoop to stop monitoring whatever GSources are attached to * it and return */ static void command_source_unblock (Thread *self) { CommandSource *source = COMMAND_SOURCE (self); g_main_loop_quit (source->main_loop); }
/* allocate a new tree node properly initialized for the given op */ static struct tree *tree_new(tree_op op) { struct tree *tree; tree = safe_malloc(sizeof(struct tree)); tree->op = op; TYPE_INIT(&tree->type); if (TREE_UNARY(tree)) FOREST_INIT(&tree->args); return tree; }
<gh_stars>0 package net.xenotoad.ld48.ld32; public interface MapHost { public void setSpawn(float x, float y); public float getHeight(); }
// Call will repeatedly execute the Func until either the function returns no // error, the retry count is exceeded or the stop channel is closed. func Call(args CallArgs) error { err := args.Validate() if err != nil { return errors.Trace(err) } start := args.Clock.Now() for i := 1; args.Attempts <= 0 || i <= ar...
<filename>include/token.h #pragma once #include <stdlib.h> #include <stdint.h> #include <stdbool.h> typedef uint8_t TokenKind; struct Source; enum { TOK_INT, TOK_FLOAT, TOK_CHAR, TOK_STRING, TOK_IDENT, TOK_KEYWORD, TOK_PUNCTUATER, TOK_END }; // Token typedef struct Token Token; struct Token { Toke...
/** * A value creator which has to getter methods, which create values. * * @author pmeisen * */ public abstract class GenericValueCreator { /** * First getter... * * @return some object */ public Object getValue1() { return UUID.randomUUID(); } /** * Second getter... * * @return some obj...
/** * @param size Size to init. * @param updCntr Update counter. * @param cacheSizes Cache sizes if store belongs to group containing multiple caches. * @param updCntrGapsData Update counters gaps raw data. * @param tombstonesCnt Tombstones count. */ public void res...
/** * Called when a message is received on a web socket connection. All messages must * be of the following (JSON) format: * * <pre> * { * "type": "command|...", * "command": { * &lt;marshalled OAI command goes here> * } * } * </pre> * *...
<reponame>vsmid/rudimentary package hr.yeti.rudimentary.security.spi; import com.sun.net.httpserver.HttpPrincipal; import hr.yeti.rudimentary.context.spi.Instance; import hr.yeti.rudimentary.security.Credential; import hr.yeti.rudimentary.security.Identity; import hr.yeti.rudimentary.security.UsernamePasswordCredentia...
/** * Simplified function to execute under admin * @param func function to be executed * @param <R> type of returned value * @return result of a function */ public static <R> R sudo(Function<ODatabaseSession, R> func) { return new DBClosure<R>() { private static final long serialVersionUID = 1L; @Over...
/** * record http request parameter * * @param httpRequest * @param trace */ protected void recordParam(final com.ning.http.client.Request httpRequest, final Trace trace) { if (paramSampler.isSampling()) { FluentStringsMap requestParams = httpRequest.getParams(); ...
// Reader for short-term conns func readerShortLived(conn *websocket.Conn, timeout float64, id uuid.UUID) { timeOut := time.Duration(timeout) * time.Second queryCtx, cancel := context.WithTimeout(context.Background(), timeOut) defer cancel() stayOpen := true for stayOpen { select { case <-queryCtx.Done(): l...
<filename>src/Data/Semigroup/Option/Lazy.hs<gh_stars>0 {-# LANGUAGE CPP #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE Safe #-} -- | -- Module : Data.Semigroup.Option.Lazy -- Description : A lazier implementation of Data.Semigroup.Option -- Co...
class LobbyUI: """ Class representing Lobby view """ # --- Art --- missing_texture = pygame.image.load("Art/missing-texture.png") # Placeholder texture (actual textures loaded later based on theme) # Keypad keypad_1 = missing_texture keypad_1_highlight = missing_texture keypad_2 = m...
package com.example.sails.footballsimulator.activities; import android.content.Intent; import android.content.pm.PackageManager; import android.os.Bundle; import android.support.design.widget.FloatingActionButton; import android.support.design.widget.TabLayout; import android.support.v4.view.ViewPager; import android....
Bellarke Crossfades & Film Technique Okay, so, first off, this is entirely my friend Danni’s fault. She’s gotten me obsessed with the cinematography of the show and how it supports the narrative and so I decided to dig into how that applies to the patented Bellarke Crossfades™ and how they’re narratively significant. ...
The stiffness of frog skinned muscle fibres at altered lateral filament spacing. When the surface membrane is removed from a frog muscle fibre the myofibrils swell, so that the spacing between the filaments increases by 10‐30%. In this study, the stiffness of skinned fibres was measured when the lateral spacing of the...
import { validateAccessToken, validateRefreshToken, } from '@utils/validateTokens'; import { User } from '@models/index'; import setTokens from '@utils/setTokens'; import { appConfig } from '../config'; const validateTokensMiddleware = async (req, res, next) => { const refreshToken = req.headers['x-refresh...
Use of RxNorm and NDF-RT to normalize and characterize participant-reported medications in an i2b2-based research repository The MURDOCK Study is longitudinal, large-scale epidemiological study for which participants’ medication use is collected as free text. In order to maximize utility of drug data, while minimizing...
import sys input = sys.stdin.readline n=int(input()) A=list(map(int,input().split())) S=[0] for a in A: S.append(S[-1]+a) ANS=0 SET=set() for i in range(n+1): if S[i] in SET: ANS+=1 SET={S[i],S[i-1]} else: SET.add(S[i]) print(ANS)
import { PureComponent } from "react"; import PropTypes from "prop-types"; /** * const modal = Modal.confirm() // 得到当前 Modal 引用 * modal.destroy() // 手动关闭 * @export * @class Modal * @extends {PureComponent} */ export default class Modal extends PureComponent<any, any> { state: { init: boolean; ...
<filename>_/Chapter 3/03_04_HighCharts/src/main/java/com/MyVaadinUI.java<gh_stars>0 package com; import com.vaadin.server.VaadinRequest; import com.vaadin.ui.Button; import com.vaadin.ui.Button.ClickEvent; import com.vaadin.ui.Label; import com.vaadin.ui.UI; import com.vaadin.ui.VerticalLayout; import org.json.JSONExc...
<filename>src/os/chrono.h #ifndef SRC_OS_CHRONO_H_ #define SRC_OS_CHRONO_H_ #include "util/compiler.h" #include "util/int.h" typedef I64 Seconds; typedef I64 Milliseconds; typedef I64 Nanoseconds; inline Milliseconds ns_to_ms(Nanoseconds d) noexcept { return d / 1000000; } inline Seconds ns_to_s(Nanoseconds d) n...
<filename>lib/c/src/ccat/message_id.c<gh_stars>1-10 #include "message_id.h" #include "ccat/client_config.h" #include "ccat/functions.h" #include "ccat/message_manager.h" #include "lib/cat_ccmap.h" #include "lib/cat_time_util.h" extern CatMessageManager g_cat_messageManager; static volatile int g_id_index = 0; stati...
package gitlab import ( "context" "encoding/json" "net/http" "net/http/httptest" "os" "testing" "github.com/kylelemons/godebug/pretty" "github.com/xanzy/go-gitlab" "github.com/TeamMonumenta/reviewdog" "github.com/TeamMonumenta/reviewdog/filter" "github.com/TeamMonumenta/reviewdog/proto/rdf" "github.com/T...
Aengus Ó Snodaigh was the only person who made enough donations to SF to qualify for legal disclosure. Aengus Ó Snodaigh was the only person who made enough donations to SF to qualify for legal disclosure. 11 OF IRELAND’S political parties have disclosed donations totalling a meagre €33,606 for 2012, according to dat...
Games industry veterans across the UK are calling on the British government to champion the sector by officially recognizing and funding a British Games Institute (BGI). The BGI campaign was launched earlier this year, and is now looking to gather more momentum through petitioning website Change.org. Games Workshop c...
def sequence_loss(logits, targets, target_weights=None, scope=None): if len(logits) != len(targets): raise ValueError("Invalid argument size.") batch_size = targets[0].get_shape()[0].value with tf.name_scope(scope or "sequence_loss"): losses = [] for i in xrange(len(logits)): crossent = tf.nn.sp...
def dataDimensionsInSubPlot(self, subPlotId: int) -> Dict[int, int]: ret: Dict[int, int] = {} for plotId in self.plotIdsInSubPlot(subPlotId): ret[plotId] = len(self.plotItems[plotId].data) - 1 return ret
package com.example.android.bluetoothlegatt.bindBlue; import android.app.Activity; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.ServiceConnection; import android.os.Bundle; import android.os.IBinder; import android.os.RemoteException; impor...
After the Democrats had their asses handed to them in 2010, the Ohio GOP went full Monty. Monty Burns, that is. “Excellent”, echoed through the halls of power in Columbus. They saw the prize. Redistricting was about to start. And the GOP had a lock on it. Majorities in both Houses and all the statewide offices. The GO...
<gh_stars>1-10 /**ARGS: symbols -o -L "-DY(A,B)=(A+B)" */ /**ALTFILES: ./test_cases/altfiles/test0425-1.c ./test_cases/altfiles/test0425-2.c */ /**SYSCODE: = 2 */
(Micro)Metering with Microwaves: A Low-Cost, Low-Power, High-Precision Radar System Over the last several years, short-range, noncontact microwave radar systems for industrial and medical applications have received significant attention for several reasons , . First, today's RF chips are more efficient and smaller t...
Filmmaker: Patrick Rouxel Stunning images of the natural world and its biodiversity are counterpointed with scenes of their destruction and the resulting cruelty to animals.This extraordinary visual essay, told with no human commentary at all, explores the impact of deforestation and the exploitation of natural resour...
<reponame>miqh/medly-components import { defaultTheme } from '@medly-components/theme'; import { css, styled } from '@medly-components/utils'; import { AnyStyledComponent } from 'styled-components'; import Label from '../Label'; import Text from '../Text'; import { FieldStyledProps, FieldWithLabelStyledProps } from './...
/** * @author <a href="mailto:gpan@groundzerolabs.com">George Panagiotopoulos</a> */ public class RoutesManager { public LinkedHashSet<Route> loadRoutes() throws RouteParsingException { return RoutesParser.parse(); } }
<reponame>HouseBuilder-MDE/HouseBuilder-Xtext<gh_stars>0 /** * generated by Xtext 2.25.0 */ package it.univaq.disim.housebuilder.xtext.ide; /** * Use this class to register ide components. */ @SuppressWarnings("all") public class HouseBuilderIdeModule extends AbstractHouseBuilderIdeModule { }
"""Code to evolve a hierarchical triple using the vectorial notation. This code is only valid for triples for which one body in the inner binary is a test particle. """ import json import time from math import acos, asin, cos, pi, sin, sqrt import numpy as np from scipy.integrate import ode from scipy.optimize impo...
Low-Cost Passive Beamforming for RIS-Aided Wideband OFDM Systems Reconfigurable intelligent surface (RIS) has become a promising solution to improve the performance of future wireless systems with low energy consumptions. Concerning a RIS-aided orthogonal frequency division multiplexing (OFDM) system, we perform optim...
/** * SDK client for establishing connection to a cross process service. * * <p>Extend this class to create a new client. Each client should represent one connection to AIDL * interface. For user instruction see: go/wear-dd-wcs-sdk * * @hide */ @RestrictTo(Scope.LIBRARY) public abstract class Client { /** I...
Hey, when you give corporations the same rights as people, that includes the right to disagree with their governor. Louisiana Gov. Bobby Jindal passed a “religious freedom” executive order (because his legislature wouldn’t pass a law) that gives companies permission to discriminate against gay customers if they believ...
export const OK_STATUS = [200, 201, 202, 204];
def forward(self, x): online_z = self.online_encoder(x) with torch.no_grad(): target_z = self.target_encoder(x) return self.fc(online_z), target_z.detach()
// SetNodeResMap ... Set node resource map func (p *GenericResource) SetNodeResMap(res string, newMap map[string]int64) { for k, v := range newMap { (p.nodeResMap[res])[k] = v } }
<filename>src/ripple/basics/impl/partitioned_unordered_map.cpp<gh_stars>1-10 //------------------------------------------------------------------------------ /* This file is part of rippled: https://github.com/ripple/rippled Copyright (c) 2021 Ripple Labs Inc. Permission to use, copy, modify, and/or distri...
<filename>src/Text/Parsero/Char.hs module Text.Parsero.Char ( alpha , alphaNum , anyChar , carriage , char , char' , chunk , crlf , digit , eol , letter , lower , newline , notChar , space , skipWhitespaces , string , tab , upper ) where import Data.Char import ...
Transport Quality Profiles of European Cities Based on a Multidimensional Set of Satisfaction Ratings Indicators A monitoring system of perceived quality of transport services at the city level is proposed on the basis of a set of 92 indicators covering various travel modes and considering the viewpoints of different ...
<reponame>coolchem/TODORama<gh_stars>0 import todoManager = require("../../../../src/client/systems/service_system/managers/todo-manager"); import todoService = require("../../../../src/client/systems/service_system/services/todo-service"); import Promise = require("bluebird"); import {ArrayCollection} from "ramajs...
/** * Get the list of the parameters required for this distribution. * @return An array of {@link ParameterName} values required for this distribution. */ public ParameterName[] requiredParameters(){ if(requiredParameters == null){ resolveRequiredParameters(value); } return requiredP...
<reponame>ArashVahabpour/sog-gail<gh_stars>0 import glob import os import numpy as np import torch import torch.nn as nn from torch.distributions import Normal from a2c_ppo_acktr.envs import VecNormalize from itertools import product import pathlib # from mujoco_py import GlfwContext # GlfwContext(offscreen=True) #TOD...
A top DC Comics editor has been accused of sexual harassment, according to a report in Buzzfeed. At least three women have come forward accusing longtime DC editor Eddie Berzanga of trying to forcibly kiss or grope them in the past. The report also added that the women in the piece, who reported Berzanga to human reso...
<reponame>fbradasc/SharedBuffer #ifndef U_SERVER_H #define U_SERVER_H #include <string> #include <vector> #include <sys/un.h> #include <pthread.h> using namespace std; #define MAXPACKETSIZE 4096 class IPC { public: IPC(); ~IPC(); inline bool connected() { return _socket >= 0; } bool server_setup(c...
<gh_stars>0 #include "gilligan.hpp" #include "ui_gilligan.h" #include "generate.hpp" #include "validate.hpp" Gilligan::Gilligan(QWidget *parent) : QMainWindow(parent), ui(new Ui::Gilligan) { ui->setupUi(this); //Prevent Resize this->setFixedWidth(324); this->setFixedHeight(324); //Generat...
PARAGARD AND MIRENA AS MODERN INTRAUTERINE DEVICES There are two kinds of modern IUDs: Copper-bearing and progestin-releasing. IUD stands for IntraUterine Device, a T-shaped piece of plastic that is placed inside the uterus. The most common copper-bearing IUD is the Paragard Copper T 380A. The only progestinreleasing...
/** * Base class for current and period view holders. * * Created by Michael on 7/8/2016. */ class WeatherViewHolder extends ViewHolder { static final String ON_CLICK = "ON_CLICK"; //private static final String TAG = "WeatherViewHolder"; View mView; private final WeatherViewRecyclerViewAdapter adap...
//Test that the inverse quaternion matches the finite difference. TEST(RotationExpressionNodeTestSuites, testQuatInverseTemplate1) { try { using namespace sm::kinematics; RotationQuaternion quat(quatRandom()); quat.setActive(true); quat.setBlockIndex(0); RotationExpression qr(&quat); RotationE...
// CreatePlatformApplicationRequest returns a request value for making API operation for // Amazon Simple Notification Service. // // Creates a platform application object for one of the supported push notification // services, such as APNS and GCM (Firebase Cloud Messaging), to which devices // and mobile apps may reg...
/// Resolve a node.js module path relative to the current working directory. /// Returns the absolute path to the module, or an error. /// /// ```rust /// match resolve("./lib") { /// Ok(path) => println!("Path is: {:?}", path), /// Err(err) => panic!("Failed: {:?}", err), /// } /// ``` pub fn resolve(target: &...
package mock type Resolver struct { } func (r *Resolver) Hello() string { return "world!" }
def change_channel_group(self, group): assert self._probe is not None self._channels = _probe_channels(self._probe, group) self._positions = _probe_positions(self._probe, group)
You should learn functional programming Exposure to functional ideas and patterns will make you a better developer. Your software will become more intuitive, easier to understand, and typically much more concise. Combining this with functional purity and immutability will also help you write fewer bugs. You’ll end up ...
def unload(self): self.dataprovider.unload() self.configmgr.unload() self.pluginmgr.unload(shutdown=True) self.storagemgr.unload() self.storagemgr.storeObject(self.mac_dc, 'mac_dc') self.logger.logInfo("Stopping Gyrid Server")
<filename>packages/gatsby/src/components/syml.tsx<gh_stars>0 import React from 'react'; import { Container, Main, ArrayProperty, DictionaryProperty, ScalarProperty, Scalar, Theme, ComponentPropsWithoutTheme, Dictionary, } from './syntax'; const theme: Theme = { colors: { background: `#3f3f3...
Tumor‐Associated Macrophages Regulate Murine Breast Cancer Stem Cells Through a Novel Paracrine EGFR/Stat3/Sox‐2 Signaling Pathway The cancer stem cell (CSC) hypothesis has gained significant recognition as a descriptor of tumorigenesis. Additionally, tumor‐associated macrophages (TAMs) are known to promote growth and...
package com.gourd.erwa.util.corejava.basis.math; import java.text.DecimalFormat; /** * @author wei.Li by 14-8-26. */ public class ParseAndFormat { /** * 基础语法 */ private static void grammarBasis() { String str = "GourdErwa"; String intStr = "1990"; int mouth = 6; ...
<filename>lsa-space/main.go<gh_stars>0 package main import ( "bufio" "eelf.ru/lsa" "flag" "fmt" "io/ioutil" "log" "os" "path/filepath" "time" ) func writeContents(file string, stat *lsa.Stat, contents []byte) error { lstat, err := os.Lstat(file) if err == nil { // file already exists, if it is symlink o...
/** * Given a boolean array, loops it down and marks each entry as T/F * depending whether the array index is a prime number. * @param primeFlags * @param lowerIndex * @param upperIndex */ public static void markPrimesSerial(boolean[] primeFlags, int lowerIndex, int upperIndex) { for (int i = lowerIndex; ...
<filename>src/SOS/lldbplugin/swift-4.1/lldb/Core/ValueObjectDynamicValue.h //===-- ValueObjectDynamicValue.h -------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT f...
<filename>src/string_utils.cc /* * Copyright 2019 <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 app...
/** * * @author Tim Boudreau */ public final class ForeignInvocationResult<T> { Throwable failure; int exitCode = -1; private final ByteArrayOutputStream sysOutBytes = new ByteArrayOutputStream(); private final ByteArrayOutputStream sysErrBytes = new ByteArrayOutputStream(); private final Thread...
/** platformdata.c **/ #include <Platform.h> // Only use angled for Platform, else, xcode project won't compile #include "nvidia.h" #include "smbios.h" #include "cpu.h" #include "Nvram.h" #include "guid.h" /* Machine Default Data */ UINT32 gFwFeatures; UINT32 gFwFeaturesMask; UINT64 gPlatformFeature; // All S...
<filename>pkg/pipeline/encode/encode_kafka.go /* * Copyright (C) 2022 IBM, 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 * * Un...
/** * Writes an escaped identifier given an unescaped identifier. * @param unescapedIdentifier unescaped string to be escaped and written */ PdlBuilder writeIdentifier(String unescapedIdentifier) throws IOException { write(escapeIdentifier(unescapedIdentifier)); return this; }
n = int(input()) s = input() x = list() y = list() x.append(0) y.append(0) for i in range(n): if s[i] == 'U': y.append(y[-1]+1) x.append(x[-1]) else: x.append(x[-1]+1) y.append(y[-1]) x = x[1:] y = y[1:] res = 0 for i in range(n-1): if s[i] == 'U': i...
by Paul Bass | Dec 4, 2013 4:31 pm (23) Comments | Commenting has been closed | E-mail the Author Posted to: Arts & Culture, Media The New Haven Advocate, a weekly newspaper once known for a mix of gutsy investigative journalism, edgy political commentary, magazine-style feature writing, and savvy arts coverage, die...
def extractPkScriptAddrs(version, pkScript, chainParams): if version != 0: raise Exception("invalid script version") pkHash = extractPubKeyHash(pkScript) if pkHash != None: return PubKeyHashTy, pubKeyHashToAddrs(pkHash, chainParams), 1 raise Exception("Not a pay-to-pubkey-hash script")
/** * Provides methods and data elements used to decode data compressed * using the LSOP format based on the methods of Smith and Lewis' * Optimal Predictors. * <p> * The LS decoder and encoder are separated into separate packages and * separate modules in order to manage code dependencies. The encoding * proces...
/** * Clones and normalizes a calendar. */ public static Calendar normalizedClone(final Calendar cal) { final Calendar cl = (Calendar) cal.clone(); normalize(cl); return cl; }
import antlr4 from gen.KoiLexer import KoiLexer from gen.KoiListener import KoiListener from gen.KoiParser import KoiParser class KoiWalker(KoiListener): def __init__(self): self.ind = " " * 4 def enterPrint_stmt(self, ctx:KoiParser.Print_stmtContext): print(f"Print: {ctx.getText()}") de...
export function createEventListeners<T>() { let list: T[] = []; return { add(listener: T) { list.push(listener); }, emit(...args) { // @ts-ignore -- Don't know how to get argument types from function type of interface list.forEach((listener) => listen...