content
stringlengths
10
4.9M
/** * Inserts vertex layout information in a given layout map, based on a * string array description and node map. */ private void putVertexLayout(LayoutMap layoutMap, String[] parts, AttrGraph graph) throws FormatException { AttrNode node = graph.getNode(parts[1]); if (node == nu...
<filename>src/tss2-fapi/api/Fapi_Decrypt.c /* SPDX-License-Identifier: BSD-2-Clause */ /******************************************************************************* * Copyright 2018-2019, Fraunhofer SIT sponsored by Infineon Technologies AG * All rights reserved. **************************************************...
// NewCustomClient insantiates a proxybonanza API client with the given key and the given http.Client. func NewCustomClient(key string, client *http.Client) *APIClient { return &APIClient{ Key: key, KnownPackages: make(map[int]PackageDetails), c: client, } }
#include <cassert> #include <pathfinder/pathfinder.h> int main(int argc, char *argv[]) { int mapWidth = 500; int mapHeight = 500; unsigned int mapSize = mapWidth * mapHeight; unsigned char* map = new unsigned char[mapSize]; const unsigned int maxSteps = 900; for (int y = 0; y < mapHeight; ++y) for (int x = 0;...
// SendOk sends a success response to the browser extension in the predefined json format func SendOk(data interface{}) { SendRaw(&okResponse{ Status: "ok", Version: version.Code, Data: data, }) }
<reponame>yuweijun/books #include<dirent.h> #include<stdio.h> #include<stdlib.h> int main(int argc, char *argv[]) { char *p; p = getcwd(NULL, 128); printf("current path:%s\n", p); free(p); chdir("/home"); printf("new path:%s\n", get_current_dir_name()); }
// CodeSigningPolicy_Values returns all elements of the CodeSigningPolicy enum func CodeSigningPolicy_Values() []string { return []string{ CodeSigningPolicyWarn, CodeSigningPolicyEnforce, } }
/** * PUT /users : Updates an existing User. * * @param userData the user to update * @throws UserAccountException when the login already exists. * @return the ResponseEntity with status 200 (OK) and with body the updated user, * or with status 400 (Bad Request) if the login or email is a...
Remember how great mood rings were in their pre-millennium heyday? BMW has reportedly taking that idea and pushed it into the 21st century to keep up with the ever-changing auto industry. First introduced as part of BMW’s centennial celebration last year, the German company proposed MINI VISION NEXT 100 – a car of the...
/** * \file history.c * \brief All functions on alias * \author <NAME>. * \version 1.0 * \date February 22, 2018 * * File containing all the history functions */ #include <stdio.h> #include <stdbool.h> #include <string.h> #include <stdlib.h> #include "../include/typedef.h" #include "../include/check.h" #incl...
/** * Compiler message listener. */ @SuppressWarnings("serial") private static class ErrorListener extends ArrayList<Diagnostic<? extends JavaFileObject>> implements DiagnosticListener<JavaFileObject> { /** * {@inheritDoc} */ @Override public void rep...
The union representing registered nurses in Newfoundland and Labrador is fired up and speaking out following controversial comments from the deputy minister of health. Union president Debbie Forward is accusing the government of bad faith bargaining and outright betrayal of the more than 5,500 RNs in the province. "O...
NBC is reportedly producing a series that will take place in Baltimore and will feature a Baltimore native as one of the show’s executive producers, according to Variety. The Los Angeles-based entertainment magazine reported that the network is developing a drama following a newly elected African-American female mayor...
<gh_stars>0 """ @author: oxhagolli Game objects stuff """ import abc import pygame class GameObject: def __init__(self, source, screen): self.image = pygame.image.load(source) self.screen = screen @abc.abstractmethod def render(self): pass class VisibleObject(GameObject)...
/** * Creates a customized error message based upon the attributes set in the jsf-file. * * @param parseException * ParseException * @param component * the associated UIComponent */ private void createErrorMessage(ParseException parseException, UIComponent component) { if (...
/** * Functional tests that test the batch ingest feature flag while the feature is on. */ @RunWith(VertxUnitRunner.class) public class BatchIngestFfOnT extends BaseFesterFfT { /* Our feature flag test logger */ private static final Logger LOGGER = LoggerFactory.getLogger(BatchIngestFfOnT.class, Constants.ME...
/** * Provides Intent to setting activity for the specified autofill service. */ static final class AutofillSettingIntentProvider implements SettingIntentProvider { private final String mSelectedKey; private final PackageManager mPackageManager; public AutofillSettingIntentProvider(P...
/** * Test that when the ID is null and the name is not null, the id is * eventually set to be the same as the name and the type can be detected. */ @Test public void testDefinitionWithNullID() { final String id1 = "<Definition>\n <ID />\n <Name>CRIS3 v1.s3d</Name>\n</Definition>"; final Object o1 = this.xst...
export type TextType = 'span' | 'paragraph'
import unittest import application class BasicTestCase(unittest.TestCase): def test_login(self): self.app = application.app.test_client() ans = self.app.get('/login') self.assertEqual(ans.status_code, 200) def test_home(self): self.app = application.app.test_client() ...
<filename>lang/Haskell/Problem1.hs module ProjectEuler.Problem1.Problem1 where solList = filter (\n -> (rem n 5 == 0) || (rem n 3 == 0)) [1..999] main = do print $ sum solList
#include <algorithm> #include <iostream> #include <limits.h> #include <stdlib.h> #include <string> #include <vector> #define el endl #define fd fixed #define INF INT_MAX/2-1 using namespace std; int main() { int n, a, b, c, x, tmp, frame; while (cin >> n >> a >> b >> c >> x, n|a|b|c|x) { vector<int> y; f...
import torch BUFFER_SIZE = int(1e5) # replay buffer size BATCH_SIZE = 192 # minibatch size GAMMA = 0.99 # discount factor TAU = 1e-3 # for soft update of target parameters LR_ACTOR = 1.5e-4 # learning rate of the actor LR_CRITIC = 1.5e-4 # learning rate of the critic WEIGH...
<gh_stars>0 package seedu.restaurant.testutil; import seedu.restaurant.model.RestaurantBook; import seedu.restaurant.model.account.Account; import seedu.restaurant.model.ingredient.Ingredient; import seedu.restaurant.model.menu.Item; import seedu.restaurant.model.reservation.Reservation; import seedu.restaurant.model....
def clean_spaces(m): return m.group(0).replace(" ", "=20")
import { IPMACAction } from './action.interface' import { PostmanCollection } from '../api/types/collection.types' import { PMACWorkspace } from '../../file-system/types' import { PMACMap, TfsWorkspaceManager, TfsWorkspaceResourceManager } from '../../file-system' import { WorkspaceResource } from '../api/types' expor...
<filename>Task/src/test/java/com/utils/CommonMethods.java package com.utils; import com.testbase.BaseClass; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.ui.ExpectedConditions; import org.openqa.selenium.support.ui.WebDriverWait; import java.util.Set; public class CommonMethods extends Ba...
Rajon Rondo and DeMarcus Cousins, two of the surliest dudes in the NBA, teamed up to pull off a remarkable act of asshole behavior during the final seconds of last night’s game against the Wizards. With six seconds left on the clock and the Kings up by 14, Rondo improperly inbounded the ball. Referee Marc Davis could ...
import java.io.*; public class B{ public static void main(String[] args)throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); br.readLine(); String[] num=br.readLine()....
package app.source; import bean.Pair; import bean.LSException; import bean.Source; import org.apache.log4j.Logger; import org.nutz.ssdb4j.SSDBs; import org.nutz.ssdb4j.spi.Response; import org.nutz.ssdb4j.spi.SSDB; import util.SqlliteUtil; import java.sql.SQLException; import java.util.ArrayList; import java.util.Col...
/** * * @author Sebastian Baechle * */ public class AbstractBPlusIndexTest { private static final Logger log = Logger .getLogger(AbstractBPlusIndexTest.class.getName()); protected static final int LOAD_SIZE = 20000; protected static final int REDUCED_LOAD_SIZE = LOAD_SIZE / 4; protected static final in...
<filename>my_compiler/src/test_code.rs<gh_stars>1-10 fn tio(i: i32) -> i32 { if mut (i < 50) { return tio(i + *1); } else{ return mut i; } } fn main() { let mut a: i32 = mut 2; tio(&2, - &mut 3); while mut true { } }
import * as React from 'react'; import { Component } from 'react'; import { Switch, Route, Redirect } from 'react-router'; import routes from './constants/routes'; import sizes from './constants/sizes'; import App from './containers/App'; import HomePage from './containers/HomePage'; import DesignerPage from './contain...
print((lambda x: (x[0]-1)//x[1]+1)(list(map(int,input().split()))))
#!/usr/bin/env python # -*- coding: utf-8 -*- """Main module.""" try: import configparser except ImportError: # Python 2 import ConfigParser as configparser from collections import namedtuple from datetime import datetime import logging import os import time from distroinfo import info, query from git_wrappe...
<filename>src/main/java/com/yoya/net/impl/netty/NettyLogHandler.java<gh_stars>0 /* * Copyright (c) 2016, baihw (<EMAIL>). * * 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 * *...
<reponame>wilfreddenton/coinmarketcap module Utils ( tickerLabelModifier , globalDataLabelModifier ) where import Data.Char (toLower) import Data.List (isPrefixOf) import Data.List.Utils (replace) import Text.Casing (fromHumps, toSnake) tickerLabelModifier...
import styled from "styled-components"; const Button = styled.button` height: 2em; padding: 0 0.8em; border-radius: 0.3em; `; export const PrimaryButton = styled(Button)` color: ${(props) => props.theme.color.textOnMain}; background-color: ${(props) => props.theme.color.main}; `; export const NegativeButto...
<gh_stars>1000+ // --------------------------------------------------------------------------------------- // Shader Model 4.0 / 4.1 // --------------------------------------------------------------------------------------- // CalculateLevelOfDetail (DirectX HLSL Texture Object) // http://msdn.microsoft.com/en-us/li...
/** * @author Steve Ebersole */ @Entity @Table(name = "vgras007_v031") public class DoesNotWork implements Serializable { private static final long serialVersionUID = 1L; @EmbeddedId private DoesNotWorkPk doesNotWorkPk; @Column(name = "production_credits_tid", insertable = false, updatable = false) private Lo...
/** * Increment dics. This way should limit object creation */ private void inc(final CharsAtt chars, final int flag) { @SuppressWarnings("unlikely-arg-type") Entry entry = dic.get(chars); if (entry == null) { String lem = chars.toString(); dic.put(lem, new Entr...
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner scan=new Scanner(System.in); int n=scan.nextInt(); int k=scan.nextInt(); String S=scan.next(); int head[]=new int[n+1]; int count=1; for(int i=1;i<n;i++) { if(S.charAt(i-1)!=S.charAt(i)) { ...
/** Seats the customer at a specific table * @param customer customer that needs seated */ private void seatCustomer(MyCustomer customer) { Do("Seating " + customer.cmr + " at table " + (customer.tableNum+1)); Customer guiCustomer = customer.cmr.getGuiCustomer(); guiMoveFromCurrentPostionTo(new Position(guiCus...
Fractionation of the more active extracts of Geranium molle L.: a relationship between their phenolic profile and biological activity. Geranium molle L., commonly known as Dove's-foot Crane's-bill or Dovesfoot Geranium, is an herbaceous plant belonging to the Geraniaceae family. Contrary to many other Geranium species...
<reponame>BioPhoton/IxJS 'use strict'; import { identity } from '../util/identity'; export function min(source: Iterable<number>, fn?: (x: number) => number): number; export function min<T>(source: Iterable<T>, fn: (x: T) => number): number; export function min(source: Iterable<any>, fn: (x: any) => number = identity)...
t = int(input()) L=[] for i in range(t): n=int(input()) s=input() L.append((n,s)) for x in L: if x[0]<11: print('NO') else: y=x[1].find('8') if y==-1: print('NO') elif y>x[0]-11: print('NO') else: print('Y...
. To determine whether long-term oral administration of UFT, a combination of 5-fluorouracil and uracil, in addition to conventional estrogen therapy improved the response and survival of the patients with advanced stage D2 prostate adenocarcinoma, a randomized prospective study was performed with either estrogen alon...
<filename>Eon/Source/Math/Mat4.cpp #include "Common.h" #include "Math/Mat4.h" namespace eon { namespace math { Mat4::Mat4(float diagonal) { for (int i = 0; i < 16; i++) { elements[i] = 0; } Set(0, 0, diagonal); Set(1, 1, diagonal); Set(2, 2, diagonal); Set(3, 3, diagonal); } Mat4 Mat4::operator*(Mat...
/* Virtual Translation Tables Dump * * Input Args: * vm - Virtual Machine * indent - Left margin indent amount * * Output Args: * stream - Output FILE stream * * Return: None * * Dumps to the FILE stream given by stream, the contents of all the * virtual translation tables for the VM given by vm. */ ...
<gh_stars>0 package net.jitse.npclib.listeners; import org.bukkit.Bukkit; import org.bukkit.entity.Player; import net.jitse.npclib.internal.NPCBase; import net.jitse.npclib.internal.NPCManager; public class HandleMoveBase { void handleMove(Player player) { for (NPCBase npc : NPCManager.getAllNPCs()) { ...
import * as http from 'http'; import * as net from 'net'; import * as WebSocket from 'ws'; import { ServerConfig } from '@marblejs/core'; import { WebSocketClientConnection, WebSocketServerConnection, WebSocketServerConfig } from '../server/websocket.server.interface'; import { createWebSocketServer } from '../server/w...
<gh_stars>1-10 package com.housaiying.qingting.listen.fragment; import android.view.View; import androidx.annotation.NonNull; import androidx.lifecycle.ViewModelProvider; import androidx.recyclerview.widget.LinearLayoutManager; import com.alibaba.android.arouter.facade.annotation.Route; import com.chad.library.adapt...
#include<stdio.h> int main() { int n,a,b,x=0,i,y,p; x=0; scanf("%d %d %d",&n,&a,&b); for(i=1;i<=n;i++) { p=i; y=0; while(1) { if(p>=10) { y=y+p%10; p=p/10; } else { y=y+p; break; }; }; if(y>=a&&y<=b) { x=x+i; }; }; printf("%d",x); return 0; }
package alteraa; // Arc Package import arc.*; import arc.util.*; // Mindustry Package import mindustry.*; import mindustry.content.*; import mindustry.game.EventType.*; import mindustry.gen.*; import mindustry.mod.*; import mindustry.ui.dialogs.*; // Alteraa Package import alteraa.content.*; // End public class Alter...
/** * Handles the given animation event, that occured in the minigame. * * @param event The animation event. */ public static void handleAnimationEvent(PlayerAnimationEvent event) { if(minigame != null) { minigame.handleAnimationEvent(event); } }
import { ExtensionContext } from 'vscode'; import { activate } from './extension'; describe('Extension', () => { test('Activate', () => { const context: ExtensionContext = { subscriptions: [], } as any; activate(context); expect(context.subscriptions.length).toB...
/* Version of matrix computing that substract reconciliation event scores to co-events in the adjacency matrix Takes: - WDupCost (double): Cost of a single reconciliation event, weighted so that this score can be added to an adjacency score. - WLossCost (double):Cost of a single reconciliation event, weighted so tha...
Recurrent bilateral eyelid and conjunctival granulomatosis in Churg-Strauss syndrome. A 47-year-old woman with poorly controlled asthma and allergic rhinitis presented with recurrent episodes of bilateral upper eyelid swelling associated with forniceal conjunctival mass for the past 10 years. Routine blood investigati...
Last week, Democrats on the House Science, Space and Technology Committee sent panel leadership a snarky letter positing that, if the committee was so interested in Hillary Clinton Hillary Diane Rodham ClintonSanders: 'I fully expect' fair treatment by DNC in 2020 after 'not quite even handed' 2016 primary Sanders: 'Da...
#!/usr/bin/env python from setuptools import setup packages = ["cxroots", "cxroots.tests", "cxroots.contours"] # get the version, this will assign __version__ with open("cxroots/version.py") as f: exec(f.read()) # nosec # read the README_pip.rst try: with open("README.rst") as file: long_description...
#include "bank_account.h" #include "checking_account.h" #include"savings_account.h" #include"customer.h" #include<iostream> #include<vector> #include<string> #include<memory> using std::cout; using std::cin; using std::unique_ptr; using std::make_unique; int main() { /* //c++ 98 SavingsAccount*s = new SavingsAccou...
/** * Convenience class that handles creation of widgets. * * @author Carl Hartung (carlhartung@gmail.com) */ public class WidgetFactory { private static final String PICKER_APPEARANCE = "picker"; private final Activity context; private final boolean readOnlyOverride; private final boolean useExte...
/** * Represents a change event on a file. */ public class FileRecord { public enum FileState { NEW, DELETED, MODIFIED }; public interface Process { public void process(FileRecord record); } protected File file; protected FileState state; public FileRecord(File file...
Identification of High-Risk Patients with Non-ST Segment Elevation Myocardial Infarction using Strain Doppler Echocardiography: Correlation with Cardiac Magnetic Resonance Imaging Assessment of left ventricular (LV) function is important for decision-making and risk stratification in patients with acute coronary syndr...
import { Inject } from '../model/injector'; import { View, injectModel, ViewG, ViewState, ViewV, serviceInjectModel } from './view'; import { ListViewV, SubView } from '../control/list'; /** * AncView 祖先视图,继承该视图指示tinyts托管的内容 * 关于延迟加载的说明(如果要使用此功能,请务必将AncView绑定到一个container元素) * tinyts的异步加载过程会导致页面元素的变化,给用户带来不好的体验 * 因...
x = input() flag = False for a in range(1,1+x): for b in range(1,1+x): if not flag and a %b == 0 and a*b>x and a/b<x: print a, b flag = True if not flag: print(-1)
/** * HDFSStorage is developed to store and retrieve the data from HDFS * <p /> * The properties that can be set on HDFSStorage are: <br /> * baseDir - The base directory where the data is going to be stored <br /> * restore - This is used to restore the application from previous failure <br /> * blockSize - The ...
/** * Start processing the xml trail files. The parser is started on invoking the method. * @throws Exception */ public void processXml() throws Exception { try { _parser.start(); } catch (XMLStreamException e) { _log.info("Unable to parse the given xml stream because of:...
package com.google.common.primitives; import com.google.common.annotations.GwtCompatible; import com.google.common.base.Preconditions; import java.util.Comparator; @GwtCompatible public final class SignedBytes { public static final byte MAX_POWER_OF_TWO = (byte) 64; private enum LexicographicalComparator imp...
<reponame>omartijn/ozo #pragma once #include <ozo/connection.h> #include <libpq-fe.h> namespace ozo { template <typename T> inline transaction_status get_transaction_status(T&& conn) { static_assert(Connection<T>, "T must be a Connection"); if (is_null(conn)) { return transaction_status::unknown; ...
Psychotic and schizotypal symptoms in non-psychotic patients with obsessive-compulsive disorder Background Research is scarce with regard to the role of psychotic and schizotypal symptoms in treatment of obsessive-compulsive disorder (OCD). The aim of the current study was to investigate the occurrence and specificity...
package httpserver import ( "bufio" "context" "encoding/base64" "errors" "fmt" "io" "log" "net" "net/http" "strings" "time" "github.com/Asutorufa/yuhaiin/pkg/net/interfaces/proxy" iserver "github.com/Asutorufa/yuhaiin/pkg/net/interfaces/server" "github.com/Asutorufa/yuhaiin/pkg/net/proxy/server" "githu...
<reponame>andrewcchen/matasano-cryptopals-solutions {-# OPTIONS_GHC -fno-warn-tabs #-} import Common import Hex import Xor main = do putStrLn "=== Challange3 ===" putStrLn $ vecToStr $ xorWithSingleByte enc $ breakSingleKeyXor enc where enc = hexDecode "<KEY>"
/** * A immutable map implementation for maps with comparable keys. It uses a sorted array * and binary search to return the correct values. Its only purpose is to save memory - for n * entries, it consumes 8n + 64 bytes, much less than a normal HashMap (43n + 128) or an * ImmutableMap (35n + 81). * * <p>Only a f...
<filename>flux/client.go package flux import ( "context" "crypto/tls" "fmt" "io/ioutil" "net/http" "net/url" "time" "github.com/influxdata/influxdb/v2/chronograf" ) // Shared transports for all clients to prevent leaking connections. var ( skipVerifyTransport = &http.Transport{ TLSClientConfig: &tls.Confi...
Highly efficient electrochemical reforming of CH4/CO2 in a solid oxide electrolyser Electrochemical reforming of CH4/CO2 is demonstrated in a solid oxide electrolyser. INTRODUCTION CO 2 and CH 4 are important contributors to the greenhouse effect, as well as cheap and nontoxic building blocks for current single-carbo...
A New Class of Optimum Importance Sampling Strategies Derived from Statistical Distance Measures Summary Performance analysis of discrete time systems often requires the evaluation of the expected value of a cost function of the system output or equivalently the expected value of a functional of the system input vecto...
<reponame>bieganski/esp-idf // Copyright 2015-2016 Espressif Systems (Shanghai) PTE 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.apache.org/licenses/LICENSE-2.0 ...
Effects of Coconut Juice on the Formation of Hyperlipidemia and Atherosclerosis ight-week old male quails were fed with high-fat fedder supplemented by 20 milliliters of coconut juice daily for each one for 12 weeks. Results showed coconut juice could increase their serum high den-sity lipoprotein cholesterol levels b...
/* Copyright 2017-2019 Siemens AG Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sub...
Development and Validation of Information Technology Mentor Teacher Attitude Scale: A Pilot Study. Accepted: 19.02.2015 The aim of this study development and validation of a teacher attitude scale toward Information Technology Mentor Teachers (ITMT). ITMTs give technological support to other teachers for integration o...
<reponame>FrankRaiser/checkstyle-null-literal<filename>src/test/java/TestThisStuff.java<gh_stars>0 import java.util.Optional; import java.util.function.Predicate; import java.util.stream.Stream; /** * @author <NAME> <<EMAIL>> */ public class TestThisStuff { public static final int CONSTANT = 10; static <T> ...
<reponame>jasonesteele/eve-supply-chain<filename>src/client/app/modules/esi-client/model/getDogmaEffectsEffectIdModifier.ts /** * EVE Swagger Interface * An OpenAPI for EVE Online * * OpenAPI spec version: 0.7.5 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.co...
/** * Create an ArmContainer from your own group and robot model object. * Note -- this takes ownership of the RobotModel pointer. See example * "create" functions above for example usage. */ ArmContainer(std::shared_ptr<Group> group, std::unique_ptr<robot_model::RobotModel> robot_model) : gr...
/** * An event posted when a thing is yoinked from a source. */ public static class YoinkDepartureEvent extends Event<YoinkDeparture> { YoinkDepartureEvent(Thing yoinkedThing, Thing source) { super(null, source, new YoinkDeparture(yoinkedThing)); } }
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ #include "blingfire-compile_src_pch.h" #include "FALexBreaker.h" #include "FAUtf8Utils.h" #include "FAUtils_cl.h" namespace BlingFire { FALexBreaker::FALexBreaker() : m_fInitialized (false), m_fUseBytes...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef GPU_COMMAND_BUFFER_SERVICE_PROGRAM_MANAGER_H_ #define GPU_COMMAND_BUFFER_SERVICE_PROGRAM_MANAGER_H_ #include <map> #include <string> #include...
export { useMachine } from '@xstate/react/lib/fsm'; export * from './photoModal'; export * from './sportsSection'; export * from './articleMachine'; export * from './authorMachine';
// Evaluate returns the evaluated value of this ifBlock's expression if // predicate evaluates to true, otherwise returns an empty string func (ib *ifBlock) Evaluate() string { if ib == nil { return "" } if strings.ToLower(ib.predicateExpr[0]) == "true" { return ib.then.Evaluate() } else if ib.otherwise != nil ...
package se.liu.ida.rspqlstar.store.dictionary; import java.util.concurrent.atomic.AtomicInteger; public class IdFactory { static final public long REFERENCE_BIT = IdFactory.makeLong("1000000000000000000000000000000000000000000000000000000000000000"); // Note: Although we don't use embedded nodes h...
<gh_stars>0 import React, { createContext, useCallback, useState, useContext } from 'react'; import UsersRepository from '../students/users/fakes/FakeUsersRepository'; interface LoginCredentials { email: string; password: string; } interface AuthState { name: string | undefined; } interface AuthContextData { ...
<filename>main/sal/qa/osl/file/test_cpy_wrt_file.cxx /************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding cop...
<reponame>timmartin/skulpt<gh_stars>1000+ x = 'OK', print x[0]
def _var_names(self, intent='input'): assert(intent in ['input', 'output']) names = set() for (name, component) in self.items(): try: for var_name in get_var_names(component, intent=intent): names.add(var_name) except AttributeError: ...
<filename>src/days/day_19/report.rs use std::collections::HashSet; use std::str::FromStr; use itertools::Itertools; use crate::days::day_19::vector::Vector; use crate::parse_input; #[derive(Debug)] pub struct Report { beacons: HashSet<Vector>, } impl Report { pub(crate) fn nb_beacons(&self) -> usize { ...
<reponame>icehofman/currency-quotation-api package com.icehofman.currency.quotation.api.models; import org.junit.Assert; import org.junit.Test; public class CurrencyModelTest { @Test public void currencyConstructor() { String line = "20/11/2014;009;A;ETB;0,12590000;0,12720000;20,00200000;20,20200000"...
/** * Generate indirect jump to unknown destination * * @returns VBox status code. * @param pVM The cross context VM structure. * @param pPatch Patch record * @param pCpu Disassembly state * @param pCurInstrGC Current instruction address */ int patmPatchGenJump(PVM pVM, PPATCHINFO pP...
use super::circuits::*; use super::gadgets::*; use super::proofs::*; use super::synthesis::Basic; use super::{Curve, Field}; use std::marker::PhantomData; #[derive(Clone)] pub struct RecursiveProof<E1: Curve, E2: Curve> { proof: Proof<E1>, oldproof1: Leftovers<E1>, oldproof2: Leftovers<E2>, deferred: D...
n, m = map(int, input().split()) matrix = [] for _ in range(n): matrix.append(list(map(int, input().split()))) column = [int(input()) for _ in range(m)] for i in range(n): print(sum(a * b for a, b in zip(matrix[i], column)))
package nzcovid19cases import ( "encoding/json" "fmt" "strconv" "strings" "github.com/anaskhan96/soup" ) type RawCase struct { ReportedDate string Case int Location string Age string Gender string TravelRelated string LastCityBeforeNZ string FlightNumber...