content
stringlengths
10
4.9M
// Check that mallopt does not return invalid values (ex. -1). // RUN: %clangxx -O2 %s -o %t && %run %t #include <assert.h> #include <malloc.h> int main() { // Try a random mallopt option, possibly invalid. int res = mallopt(-42, 0); assert(res == 0 || res == 1); }
<reponame>Ozcry/PythonExercicio '''Faça um programa que leia três números e mostre qual é o maior e qual é o menor.''' n1 = float(input('\033[30mDigite o primeiro número:\033[m ')) n2 = float(input('\033[31mDigite o segundo número:\033[m ')) n3 = float(input('\033[32mDigite o terceiro número:\033[m ')) if n1 > n2 and n...
After leaving the president's office vacant for 18 months, the Montreal Alouettes opted to hire from within. The Canadian Football League club announced Tuesday that Mark Weightman, the former Chief Operating Officer, will be the new president and CEO. Weightman, 41, had been filling the president's duties anyway sin...
// AddressUnspentTransactionDetails this endpoint retrieves transaction details for a given address // Use max transactions to filter if there are more UTXOs returned than needed by the user // // For more information: (custom request for this go package) func (c *Client) AddressUnspentTransactionDetails(address string...
/** * Inserts the status updates passed as parameter into the database. It is * synchronous to avoid more than one method trying to insert new updates * into the database. * * Then broadcasts intend RECEIVE_TIMELINE_NOTIFICATIONS if new message was * received. * * @param posts * @param newposts */...
/** * Formats a given number in a default format (3 decimals, padded left to 10 characters). * * @param nr a number * @return a string version of the number */ public static String format(Double nr) { if (nr == null) { return PLACEHOLDER_NULL; } return String.format(FORMAT_NUMBER, nr);...
Produced by The Online Distributed Proofreading Team at http://www.pgdp.net (This file was produced from images generously made available by The Internet Archive) A FLORAL FANTASY IN AN OLD ENGLISH GARDEN BY WALTER CRANE NEW YORK & LONDON HARPER AND BROTHERS [Illustration] [Illustration] [Illustration...
// AttrScaleNew is a wrapper around the C function pango_attr_scale_new. func AttrScaleNew(scaleFactor float64) *Attribute { c_scale_factor := (C.double)(scaleFactor) retC := C.pango_attr_scale_new(c_scale_factor) retGo := AttributeNewFromC(unsafe.Pointer(retC)) return retGo }
First, it was a WhatsApp message saying that the National Aeronautics and Space Administration (NASA) had stated there would be heavy rainfall and a cyclone on November 21 and 22 in Chennai that caused panic in the city. That message effectively turned out to be a hoax. Then came the message that more than 40 crocodil...
def plot_evo(self, runs, iters, title='', anno=''): tqdm.write('Plotting variance over time...') assert self.savehist, 'ERROR: No history to calculate metrics per step.' assert len(runs) == 1 or len(iters) == 1, 'ERROR: One run or one iter' runits = [i for i in product(runs, iters)] ...
#include "stdafx.h" #include "TrayIcon.h" #include "RecentMessagesAlert.h" #include "../MainWindow.h" #include "../MainPage.h" #include "../contact_list/ContactListModel.h" #include "../containers/FriendlyContainer.h" #include "../contact_list/RecentItemDelegate.h" #include "../contact_list/RecentsModel.h" #...
<gh_stars>0 package com.github.bsideup.jabel; import com.sun.source.util.JavacTask; import com.sun.source.util.Plugin; import com.sun.tools.javac.api.JavacTaskImpl; import com.sun.tools.javac.code.Source; import com.sun.tools.javac.util.Context; import com.sun.tools.javac.util.JavacMessages; import net.bytebuddy.ByteB...
<filename>tests/test_b_extension.rs pub mod machine_build; #[test] pub fn test_clzw_bug() { let mut machine = machine_build::int_v1_imcb("tests/programs/clzw_bug"); let ret = machine.run(); assert!(ret.is_ok()); assert_eq!(ret.unwrap(), 0); #[cfg(has_asm)] { let mut machine_asm = machi...
#ifndef __CERBERUS_SLOT_MAP_HPP__ #define __CERBERUS_SLOT_MAP_HPP__ #include <set> #include <string> #include "common.hpp" #include "utils/address.hpp" namespace cerb { class Server; class Proxy; struct RedisNode { util::Address addr; std::string node_id; std::string master_id; ...
<reponame>bitjjj/vue3-component-library-template<gh_stars>0 export { default as useFocus } from './use-focus' export * from './use-locale'
FORTH-ICS / TR-106 December 1993 Rehabilitation ( Assistive ) Technology product taxonomy : A conceptual tool for analysing products and extracting demand determinants This paper proposes and describes a conceptual tool, namely the Rehabilitation (Assistive) Technology (RT) product taxonomy, as a framework for analysi...
// CreateWalletFile creates a new wallet file on disk func CreateWalletFile(file *os.File, passphrase string, privateKey []byte) error { hasher := sha256.New() bytesWritten, err := hasher.Write([]byte(passphrase)) if err != nil { return err } if bytesWritten <= 0 { return ErrEmptyPassphrase } passwordHash :=...
import { tplEngineNew } from '@omni-door/utils'; const tpl = `\`import { Component, Vue, Prop } from 'vue-property-decorator'; import classnames from '@utils/classnames'; \${ts ? \`/* import types */ import type { CreateElement, VNode } from 'vue'; \` : ''} @Component export default class \${componentName} extends Vu...
<reponame>ranineha003/nrs import { Component } from '@angular/core'; import { FormGroup, FormControl, Validators, AbstractControl } from '@angular/forms'; import { LoginService } from "../services"; import { Router } from "@angular/router"; import { BroadcastSubject } from "../services"; @Component({ selector: 'a...
<filename>src/java/mail/AuthCode.java<gh_stars>10-100 package mail; import java.security.SecureRandom; import java.util.Random; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class AuthCode { private static final Random RANDOM = new SecureRandom(); ...
American musician and sports businessman For the Major League Baseball first baseman, see Jimmy Hart (baseball) James Ray Hart[2] (born January 1, 1943) is an American professional wrestling manager, executive, composer, and musician currently signed with WWE in a Legends deal.[1] He is best known for his work in the...
/** * Contains global actions and configurations. * @since 0.0.1 * @author Oleg Nenashev <nenashev@synopsys.com> */ public class OwnershipPlugin extends Plugin { public static final String LOG_PREFIX="[OwnershipPlugin] - "; public static final String FAST_RESOLVER_ID="Fast resolver for UI (recommended)"; ...
<reponame>devpcat/pribankcustmgt<filename>src/main/java/com/thyme/pribankcustmgt/mapper/PbcmCustExtpropAdminItemMapper.java package com.thyme.pribankcustmgt.mapper; import com.thyme.pribankcustmgt.entity.PbcmCustExtpropAdminItem; import com.baomidou.mybatisplus.core.mapper.BaseMapper; /** * <p> * Mapper 接口 * </p>...
NEW YORK, May 6 -- Gay rights advocates celebrated swift and unexpected twin victories in New England on Wednesday when Maine became the fifth state to legalize same-sex marriage and New Hampshire's legislature shortly afterward sent a marriage equality bill to the governor. If Gov. John Lynch (D) signs the New Hampsh...
Brain Capillary Networks Across Species: A few Simple Organizational Requirements Are Sufficient to Reproduce Both Structure and Function Despite the key role of the capillaries in neurovascular function, a thorough characterization of cerebral capillary network properties is currently lacking. Here, we define a range...
package remoterepo import ( "testing" "github.com/stretchr/testify/require" "gitlab.com/gitlab-org/gitaly/client" "gitlab.com/gitlab-org/gitaly/internal/git" "gitlab.com/gitlab-org/gitaly/internal/gitaly/config" "gitlab.com/gitlab-org/gitaly/internal/helper" "gitlab.com/gitlab-org/gitaly/internal/testhelper" ...
Operation Bodenplatte – disaster for the Luftwaffe To support the German offensive through the Ardennes the Luftwaffe had planned a co-ordinated operation to try to neutralise the Allied fighter bombers. The heavily outnumbered Luftwaffe had made little impact on the battle so far. Rather than directly confronting the...
// NewAccountWarehouse creates a new AccountWarehouse using the provided client // and options. func NewWarehouse(store storage.Store) (*AccountWarehouse, error) { wh := &AccountWarehouse{ store: store, tmp: make(map[string]iam.AccessKey), } return wh, nil }
// AS creates new PgTsDictTable with assigned alias func (a *PgTsDictTable) AS(alias string) *PgTsDictTable { aliasTable := newPgTsDictTable() aliasTable.Table.AS(alias) return aliasTable }
A female sex worker and blogger has been exposed as a middle-aged man — which might not be such a big deal if he hadn't used his fake identity to solicit sex partners and naked photos of minors. According to a Metafilter post by Asparagirl, "Alexa di Carlo" said she was a sex worker and a student in San Francisco Stat...
import numpy as np import tensorflow as tf from typing import Dict from utils.sth import sth from Algorithms.tf2algos.base.policy import Policy from utils.on_policy_buffer import DataBuffer class On_Policy(Policy): def __init__(self, s_dim, visual_sources, visual_...
/** * Puts the cache server record into the shared {@link CacheServerBlackboard} * map. */ private static Record putRecord(String name, HostDescription hd, int pid) { Record record = new Record(hd, pid); CacheServerBlackboard.getInstance().getSharedMap().put(name, record); return record; }
def a_slice(i_slice, max_index): return np.arange(*i_slice.indices(max_index), dtype = U32)
/** * This is the first <i>ScenarioSimulation</i> specific abstract class - i.e. it is bound to a specific use case. Not every implementation * would need this. Menu initialization may be done in other different ways. It is provided to avoid code duplication in concrete implementations */ public abstract class Abstr...
Please enable Javascript to watch this video A rookie LAPD officer who allegedly shot a 23-year-old man to death following a fight in Pomona fled to Texas with the help of his father, according to an FBI agent’s affidavit released Thursday. Henry Solis, 27, is suspected of killing Salome Rodriguez Jr. early March 13 ...
HealthZette To Replace Obamacare, Enforce Laws Already on the Books How costs can come down and choices for health care can go up On Tuesday night, like many Americans, I watched President Donald Trump’s address to Congress. Some watch President Trump for the same reasons others watch a NASCAR race — the exciting and...
<reponame>by-student-2017/skpar-0.2.4_Ubuntu18.04LTS """Test plotting functions.""" import unittest import logging import os import numpy as np from numpy.random import random from skpar.dftbutils.queryDFTB import get_bandstructure from skpar.dftbutils.plot import plot_bs, magic_plot_bs from skpar.core.database import ...
/** * Verify that malformed float content throws a properly formed * JiBXParseException. */ public void testParseElementDouble() { UnmarshallingContext uctx = new UnmarshallingContext(); uctx.setDocument(new TestDocument(new int [] {IXMLReader.START_TAG, IXMLReader.TEXT, IXMLReader.END_TAG}, "namespace",...
<reponame>SaveTheRbtz/toolbox<gh_stars>10-100 package nw_retry import ( "github.com/watermint/toolbox/essentials/http/es_response" "github.com/watermint/toolbox/essentials/http/es_response_impl" "github.com/watermint/toolbox/essentials/log/esl" "github.com/watermint/toolbox/essentials/network/nw_client" "github.c...
/* * __slvg_col_range -- * Figure out the leaf pages we need and free the leaf pages we don't. */ static int __slvg_col_range(WT_SESSION_IMPL *session, WT_STUFF *ss) { WT_TRACK *jtrk; uint32_t i, j; for (i = 0; i < ss->pages_next; ++i) { if (ss->pages[i] == NULL) continue; ...
// New returns an error with the provided message. func New(msg string) error { return &Error{ Message: msg, Stack: callers(), } }
/** Checks to see if the given config contains valid MySQL details. * @param config The config that you wish to check. * @return Whether the config has valid MySQL details. */ public static boolean isValidSql(YamlConfig config) { ConfigurationSection mySql = config.getConfigurationSection("mysql"...
Designing and Implementing Health Concerns Caused by the COVID-19 Pandemic: Explorative Study Background Coronavirus and its psychological impacts on people have been taken into attention by scholars due to the psychosocial crisis. Fear, worry, and psychological agitation are common experiences due to uncertainties ...
-- module texture module Texture.Texture where import Math3D.Vector import Color.ColorInterface -- base types and enums import Utility.BaseEnum class Texture a where -- object -> u -> v -> hit point -> wave length -> Color information color :: a -> Double -> Double -> Vector -> WaveVal -> ColorRecord
/** * DTO container with formatting for a table row. */ @ApiModel(description = "DTO container with formatting for a table row.") public class TableRowFormat extends LinkElement { /** * Gets or sets the rule for determining the height of the table row. */ @JsonAdapter(HeightRuleEnum.Adapter.class) ...
def nyu(): A,B,C,X,Y = map(int,input().split()) return A,B,C,X,Y def kansu(A,B,C,X,Y): sum = 0 #(A+B)<=2C AとBの単品で終わらせる if A+B<=2*C: sum += A*X + B*Y return sum #(A+B)>2C xかyの大きいほうだけ2c分買う。AとBの単品に置き換えて値段をみる else: kosu_sa =0 if X>Y: sum = X * 2...
def assert_task_managers(params, task_dir): if "managers" not in params: return managers = params["managers"] Validator.assert_value(managers, "files_list", "managers", base_dir=task_dir) for manager in managers: _, ext = os.path.spl...
#include <iostream> using namespace std; string line[3]; int x, o; bool win(char c) { if (line[0][0]==line[1][1] && line[1][1]==line[2][2] && line[2][2]==c) return 1; if (line[0][2]==line[1][1] && line[1][1]==line[2][0] && line[2][0]==c) return 1; for (int i=0; i<3; i++) ...
// GetEuConfig returns the EuConfig field value if set, zero value otherwise. func (o *LinkTokenCreateRequest) GetEuConfig() LinkTokenEUConfig { if o == nil || o.EuConfig == nil { var ret LinkTokenEUConfig return ret } return *o.EuConfig }
n,k,d = map(int,input().split(" ")) def fsum(n,k): tab = [[0 for i in range(k+1)] for i in range(n+1)] for i in range(n+1): for j in range(k+1): if i == 0 or j == 0: tab[i][j] = 0 elif i == 1 or j == 1: tab[i][j] = 1 elif i == j: tab[i][j] = tab[i][j-1] + ...
def add_node_write(self, write): t = rospy.Time.now() delta_t = (t - self.last_write_update).to_sec() write_rate = float(write) / delta_t self.__node_write.append(write_rate) self.last_write_update = t
<gh_stars>0 print('Confederação Nacional de Natação') print('-' * 30) idade = int(input('Qual a sua idade: ')) if idade < 10: print('Categoria Mirim') elif idade < 15: print('Categoria Infantil') elif idade < 20: print('Categoria Junior') elif idade == 20: print('Categoria Senior') else: print('Cate...
package is import ( "fmt" "github.com/corbym/gocrest" ) func describe(conjunction string, matchers []*gocrest.Matcher) string { var description string for x := 0; x < len(matchers); x++ { description += matchers[x].Describe if x+1 < len(matchers) { description += fmt.Sprintf(" %s ", conjunction) } } re...
<gh_stars>100-1000 #![cfg(feature = "test")] use std::fmt::{self, Debug, Display, Formatter}; use std::fs::read_to_string; use std::result; use glob::glob; use serde::Deserialize; use std::error::Error; use yarte_lexer::error::{ErrorMessage, KiError, Result}; use yarte_lexer::pipes::{ _false, _true, and_then, deb...
<filename>src/Network/Nats/Protocol/Message.hs {-| Module : Network.Nats.Protocol.Message Description: Message definitions and utilities for the NATS protocol -} {-# LANGUAGE OverloadedStrings #-} module Network.Nats.Protocol.Message ( Message(..) , PartialMessage ...
#[doc = "Writer for register SRACT"] pub type W = crate::W<u32, super::SRACT>; #[doc = "Register SRACT `reset()`'s with value 0"] impl crate::ResetValue for super::SRACT { type Type = u32; #[inline(always)] fn reset_value() -> Self::Type { 0 } } #[doc = "Activate Group Service Request Node 0\n\n...
/** * Initialize game display with starting positions/values */ public void init() { Log.v("GAME DISPLAY","Initializing..."); this.board.init(); this.toolBox.init(); Log.v("GAME DISPLAY","Initialization complete."); }
Neighborhoods remain the crucible of social life, even in the internet age. Children do not stream lectures — they go to school. They play together in parks and homes, not over Skype. Crime and fear of crime are experienced locally, as is the police response to it. But wide income gaps and America’s legacy of racial s...
class GLM: """Generalized Linear Model. Parameters: optimizer (optim.Optimizer): The sequential optimizer used to find the best weights. loss (optim.Loss): The loss function to optimize for. intercept (float): Initial intercept value. intercept_lr (float): Learning rate used for...
Evaluation of routine radiation boost following breast conservation therapy in young patient. 709 Background: A recent trial compared local radiation boost (RB) to no local boost (NB) following breast conservation therapy. Fewer local recurrences (LR) occurred in the RB group, most pronounced in patients ≤ 40 years ol...
<reponame>Eshanatnight/College class ThreadClass extends Thread { private int number; public ThreadClass(int number) { this.number = number; } @Override public void run() { int counter = 0; int numInt = 0; // prints the number till specified number is reach...
Theoretical Control and Experimental Verification of Carded Web Density Part I: Dynamic System Analysis and Controller Design Control of uniform carded fiber webs becomes very important when one wants to push the state of the art with faster and more accurate textile spinning. Four steps are necessary for controlling ...
WATCH ABOVE: The full interview with Sam Sotiropoulos TORONTO – Toronto School Board trustee Sam Sotiropoulos has come under fire after saying in a tweet he “reserves the right not to believe” in transgendered people. He’s waiting for “scientific proof” being transgendered isn’t “simply a mental illness,” he wrote Au...
def error_callback(messages: tuple) -> None: global ERROR_MESSAGES ERROR_MESSAGES = messages
/** * We will create a brand new RecordManager file, containing nothing, but the RecordManager header, * a B-tree to manage the old revisions we want to keep and * a B-tree used to manage pages associated with old versions. * <br/> * The RecordManager header contains the following details : ...
/// Opens file at given filepath and process it by finding all its TODOs. pub fn open_todos<F>(&mut self, filepath: F) -> Result<(), Error> where F: AsRef<Path>, { // using _p just to let the compiler know the correct type for open_option_filtered_todos() let mut _p = Some(|_t: &Todo| tr...
import * as util from 'util'; import { BaseView } from './baseview'; import {WebviewPanel} from 'vscode'; import {Utility} from '../misc/utility'; //import { Utility } from './utility'; /** * A Webview that just shows some static text. * Is e.g. used to run an Emulator command and display it's output. */ export ...
//***************************************************************************** // split cmdline to tkn array and return nmb of token static int split(microrl_t* pThis, int limit, char const ** tkn_array) { microl_decode_state_t decode_state; int cmdline_index = 0; int nb_token; nb_token = 0; decode_state = IDLE; ...
t=int(input()) for i in range(t): n=input() if(len(n)==1): print(n) else: n=int(n) p=9 if(n>9 and n<=17): print(n-9,end="") print("9") elif(n>=18 and n<=24): print(n-17,end="") print("89") elif(n>=2...
<filename>tools/gen_debug_info.py #!/usr/bin/env python3 ''' Convert debug info for C interpreter debugger. Usage: tools/gen_debug_info.py src/game/game_debuginfo.h ''' import sys import sundog_info out = sys.stdout def gen(out): proclist = sundog_info.load_metadata() info = [] for k,v in proclist._map.i...
<filename>test/test_api_file_state.py """Test units for the file_state rest apis.""" import json from http import HTTPStatus from unittest.mock import MagicMock import pytest import apis from core.eeadm.file_state import LtfseeFile def test_api_file_state_post(client, monkeypatch, valid_auth_headers): """Check ...
/** Tries to find "private" JRadioButton in this dialog. * @return JRadioButtonOperator */ public JRadioButtonOperator rbPrivate() { if (_rbPrivate==null) { _rbPrivate = new JRadioButtonOperator(this, "private"); } return _rbPrivate; }
/// WSC Technical Specification v2.0.7, Section 12, Table 28 impl Id { pub const AP_SETUP_LOCKED: Self = Self([0x10, 0x57]); pub const CONFIG_METHODS: Self = Self([0x10, 0x08]); pub const DEVICE_NAME: Self = Self([0x10, 0x11]); pub const DEVICE_PASSWORD_ID: Self = Self([0x10, 0x12]); pub const MANUF...
package src.DatConRecs.Created4V3; import src.DatConRecs.Payload; import src.Files.ConvertDat; public class RecMag6_2257 extends MagGroup { public RecMag6_2257(ConvertDat convertDat) { super(convertDat, 2257, 6, 1); } public void process(Payload _payload) { super.process(_pay...
/** * Return response as JSON from the resource path if the request is ... * <pre> * e.g. returns response as the json if the request is /harbor/ * response.asJson("/mock/harbor/product.json", request -&gt; request.getUrl().contains("/harbor/")); * * e.g. returns response as the json at ...
import itertools res = 100000000000000000000000000 a = raw_input().split() z = raw_input().split() for c in itertools.permutations(a): res = min(res,eval('(('+c[0]+z[0]+c[1]+')'+z[1]+c[2]+')'+z[2]+c[3])) res = min(res,eval('('+c[0]+z[0]+c[1]+')'+z[2]+'('+c[2]+z[1]+c[3]+')')) print(res)
/** * Counts the records from the tables. */ private void countRecords() { this.lblStudentCount.setText(GraduatedStudentModel.getTotalRecords()); this.lblProfileCount.setText(CompanyProfileModel.getTotalRecords()); this.lbl_inquiry_count.setText(InquiryModel.getTotalRecords()); }
/** * Handles all SQL based databases * * @author TOTHTOMI * @version 1.0.0 * @since 1.3.0-SNAPSHOT" */ public abstract class SQLDatabase extends Storage { private final String databaseName; protected Connection connection = null; /** * @param databaseName the databaseName * @param type ...
// filterSubnetsByZone - find all of the subnets in the requested zone func (c *CloudVpc) filterSubnetsByZone(subnets []*VpcSubnet, zone string) []*VpcSubnet { matchingSubnets := []*VpcSubnet{} for _, subnet := range subnets { if subnet.Zone == zone { matchingSubnets = append(matchingSubnets, subnet) } } ret...
def remove_objective(request, teacher_email, teacher_class_id, date, objective): teacher = Teacher.objects.get(email=teacher_email) if teacher.user != request.user: return redirect('top.index') if request.POST: date_of_objective = datetime.datetime.strptime(date, '%Y-%m-%d') Entry.ob...
package e4m.ui.swt; import org.eclipse.swt.SWT; import e4m.ref.CGA; class ColorMap { static int color(int index) { switch (index) { default: return -1; case CGA.BACKGROUND: return SWT.COLOR_BLACK; case CGA.BLUE: return SWT.COLOR_BLUE; case CGA.RED: ...
package test; import java.util.Map; import java.util.HashMap; import java.util.Random; import umicollapse.util.BitSet; import umicollapse.util.Utils; import umicollapse.util.Read; import umicollapse.util.ReadFreq; import umicollapse.algo.*; import umicollapse.data.*; public class ParallelBenchmarkTime{ public st...
// lit element import { css, CSSResult } from 'lit'; // memberdashboard import { primaryBlue, primaryRed } from './colors'; export const coreStyle: CSSResult = css` .center-text { text-align: center; } .destructive-button { --mdc-theme-primary: ${primaryRed}; } a { color: ${primaryBlue}; } ....
/** * The factory which builds the PHP54Translator. * <p/> * It loads a StringTemplate which is used by the PHP54Translator. */ public class HardCodedTSPHPTranslatorInitialiser implements ITranslatorInitialiser { private final ITranslatorController controller; private final IInferenceEngineInitialiser infe...
// // Copyright © 2017 IronSource. All rights reserved. // #ifndef IRONSOURCE_REWARDEDVIDEO_DELEGATE_H #define IRONSOURCE_REWARDEDVIDEO_DELEGATE_H #import <Foundation/Foundation.h> @class ISPlacementInfo; @protocol ISRewardedVideoDelegate <NSObject> @required /** Called after a rewarded video has changed its ava...
<reponame>caibirdme/leetforfun<filename>leetcode/leet_889/source.go package leet_889 type TreeNode struct { Val int Left *TreeNode Right *TreeNode } func constructFromPrePost(pre []int, post []int) *TreeNode { length := len(pre) if length == 0 { return nil } node := &TreeNode{ Val: pre[0], } if length...
/** * 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 copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
package nl.uu.cs.aplib.mainConcepts; import java.util.*; import org.junit.jupiter.api.Test; import nl.uu.cs.aplib.mainConcepts.Environment; import nl.uu.cs.aplib.mainConcepts.Environment.EnvironmentInstrumenter; import static org.junit.jupiter.api.Assertions.*; public class Test_Environment { class MyEnv exte...
package co.com.gs.proteccionpdf; import java.awt.Desktop; import java.net.URL; import javax.swing.UIManager; /** * * @author <NAME>. * @version 1.1 - 2021 */ public class AboutMeUI extends javax.swing.JFrame { public AboutMeUI() { initComponents(); setLocationRelativeTo(null); setIcon...
<gh_stars>1-10 // // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 <NAME>. // #import <objc/NSObject.h> @class CKRecordZone, CKServerChangeToken, NSArray, NSMutableArray, NSString; @protocol ADCloudKitDataStoreProto...
<gh_stars>1-10 #ifndef TEMOTO_CORE__RESOURCE_SERVER_H #define TEMOTO_CORE__RESOURCE_SERVER_H #include "ros/ros.h" #include "ros/callback_queue.h" #include "temoto_core/common/temoto_id.h" #include "temoto_core/common/tools.h" #include "temoto_core/trr/base_resource_server.h" #include "temoto_core/trr/server_query.h" #...
/// reorder weights, flatten the 2-dimensional vector into a single dimension /// data by metric and edge_id is found at index `metric * num_edges + edge_id` fn reorder_weights(weights: &Vec<Vec<Weight>>, num_metrics: usize, scale_upper_bound: bool) -> Vec<Weight> { let mut ret = vec![0; weights.len() * num_metrics...
While doubts remain that Tottenham have enough creativity to bother the top six, Eric Dier’s move into central midfield has been inspired… “We were aggressive,” said Hugo Lloris, who was best placed to judge exactly how traditionally tip-toeing Tottenham contrived to out-tackle a Sunderland side containing Yann M’Vila...
import './set_public_path'; import singleSpa from 'single-spa-vue'; import Vue from 'vue'; import VueMeta from 'vue-meta'; import VueRouter from 'vue-router'; import app from './App.vue'; import router from './router'; import '@/assets/styles/index.css'; Vue.config.productionTip = false; Vue.use(VueRouter); Vue.use(...
# -*- coding: utf-8 -*- ############################################################################### # # Copyright (c) 2021 HERE Europe B.V. # # SPDX-License-Identifier: MIT # License-Filename: LICENSE # ############################################################################### # from PyQt5.QtWebEngineWidgets ...
def save_pack(obj: 'SERIALIZABLE', fp: TextIO, meta: Dict[str, 'JSONABLE'] = None, include_timestamp: bool = False) -> NoReturn: return json.dump(pack(obj, meta=meta, include_timestamp=include_timestamp), fp)
package com.jamasoftware.services.restclient.jamadomain.lazyresources; import com.jamasoftware.services.restclient.exception.RestClientException; import com.jamasoftware.services.restclient.jamadomain.core.JamaDomainObject; import java.util.List; public abstract class LazyCollection extends LazyBase { @Override...
<gh_stars>1-10 // Container for application level data. #ifndef __CGAMEOBJECTMANAGER_H__ #define __CGAMEOBJECTMANAGER_H__ #include <iostream> #include "Defines.h" #include "PlayerEnums.h" namespace Core { class CPlayer; class CBuilding; class CGameObject; class CPluginManager; namespace Physics { class IPh...
""" A converter class, able to verify, extract and submit important tumor diagnostic information from a ZIP archive to CentraXX. """ import os import sys import uuid import shutil from zipfile import ZipFile from mtbparser.snv_utils import * from .mtbfiletype import MtbFileType from .mtbconverter_exceptions import MtbU...
def read_resource_task(self,task,roles): filtered_list = list(filter(lambda x: x['task']==task, self.data)) role_assignment = list() for task in filtered_list: for role in roles: for member in role['members']: if task['user']==member: ...