content
stringlengths
10
4.9M
<filename>src/main/java/com/lordjoe/ui/WrappingColorDataErrorSetter.java package com.lordjoe.ui; import java.util.*; /** * com.lordjoe.ui.WrappingProgressMonitor * a progress monitor wrapping multipla monitors * * @author <NAME> * @date Feb 2, 2006 */ public class WrappingColorDataErrorSetter implements IColorD...
export type CardStackItem = { id: string; el?: JSX.Element | CardStackItemRender }; export type CardStackItemRender = (e: CardStackItemRenderArgs) => JSX.Element; export type CardStackItemRenderArgs = { total: number; position: number; index: number; is: { bottom: boolean; top: boolean }; };
//////////////////////////////////////////////////////////////////// // Function: PGItem::get_sound // Access: Published // Description: Returns the sound associated with the indicated // event, or NULL if there is no associated sound. ///////////////////////////////////////////////////////////...
package datasource const DriversClassName = "gorm-db-drivers" // Drivers class='gorm-db-drivers' type Drivers interface { FindDriver(cfg *Configuration) (Driver, error) Open(cfg *Configuration) (Source, error) }
Home RESERVE TICKETS HERE The original production is available for viewing with captions on YouTube. Hack, Punt, Tool is an original musical about a fictional group of MIT students who are working together to build an anonymous technological prank, or a “hack.” The story follows the adventures of a freshman, Billie ...
import { MutableRefObject, ReactType } from 'react' import { InterpolationConfig } from '../types/interpolation' import AnimatedStyle from './AnimatedStyle' type ApplyPropsFunction = (node?: any, props?: any) => undefined | false type TransformFunction = (style: any) => any export let applyAnimatedValues: { fn: Appl...
Download raw source Delivered-To: john.podesta@gmail.com Received: by 10.25.43.200 with SMTP id r191csp2507962lfr; Tue, 11 Aug 2015 15:06:51 -0700 (PDT) X-Received: by 10.202.209.3 with SMTP id i3mr22373226oig.109.1439330811654; Tue, 11 Aug 2015 15:06:51 -0700 (PDT) Return-Path: <cheryl.mills@gmail.com> Received: from...
<reponame>percona-platform/core-ui<filename>src/components/NumberInput/index.ts export * from './NumberInputField';
/** * Invokes {@link org.kuali.rice.krad.service.ViewValidationService} to validate the contents of the * given form instance. * * {@inheritDoc} */ @Override public ModelAndView checkForm(UifFormBase form) { getViewValidationService().validateViewSimulation(form); retur...
use ggez::graphics::spritebatch::SpriteBatch; use ggez::graphics::{Color, DrawMode, DrawParam, Drawable, Mesh, Point2, Rect}; use ggez::{Context, GameResult}; use grid; use hexadventure::prelude::*; use hexadventure::world::mob; pub const WIDTH: u32 = 24; pub struct Sidebar {} impl Sidebar { pub fn new() -> Self...
/** * Created by wenhang on 3/3/14. */ public class SolutionTest { @org.junit.Test public void testSqrt() throws Exception { Solution solution = new Solution(); assertEquals(solution.sqrt(4), 2); assertEquals(solution.sqrt(5), 2); assertEquals(solution.sqrt(9), 3); asse...
/* https://codeforces.com/contest/558/submission/35308676 (rainboy) */ #include <stdio.h> #define A 1000000 int main() { static int kk[A + 1], ll[A + 1], rr[A + 1]; int n, i, a, x, l, r; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d", &a); if (kk[a]++ == 0) ll[a] = i; rr[a] = i; } x = 0; for (...
#import <UIKit/UIKit.h> //! Project version number for mParticle-BranchMetrics. FOUNDATION_EXPORT double mParticle_BranchMetricsVersionNumber; //! Project version string for mParticle-BranchMetrics. FOUNDATION_EXPORT const unsigned char mParticle_BranchMetricsVersionString[]; #import "MPKitBranchMetrics.h"
/*starting with the name of almighty ALLAH*/ /*solved by RAKIB JOY*/ #include<bits/stdc++.h> #define ll long long int #define pb push_back #define vc vector #define vi vc<int> #define vl vc<ll> #define dbg(x) cout<<x<<endl; using namespace std; int main() { int k,i,j,a,b,n,l; string s; cin>>...
<filename>src/frontend/core/components/admin/Admin.ts<gh_stars>0 import { FunctionComponent, useContext, useEffect, useRef, useState } from "react" import { NavLink } from "react-router-dom" import EditableList from "../../commonComponents/editableList/EditableList" import PATHS from "../../params/Path" import NewP...
<reponame>codebyravi/otter<gh_stars>10-100 """ Deferred utilities """ from collections import defaultdict from functools import wraps from pyrsistent import freeze from twisted.internet import defer from otter.log import log as default_log from otter.util.retry import retry def unwrap_first_error(possible_first_er...
// Might be needed on OSX. func RunMain(args []string, callback RunMainCallback, data interface{}) int { runMain.fn = callback runMain.data = data argc, argv := CStrings(args) ; defer CStringsFree(argc, argv) return int(C.al_run_main(argc, argv, (*[0]byte)(C.go_run_main_callback))) }
/** * NotificationAction that starts a time bound recording. */ public class TriggerActionStartTimeBoundRecording extends TriggerAction implements IActivatableTriggerAction { public static final int MAX_CONTINUOUS_ERROR_COUNT = 10; private int recordingNumber = 0; /** * Constructor. */ public TriggerActionS...
<filename>src/GLoader.ts import { AlignType, GearType, LoaderFillType, PackageItemType, ParseAlignType, ParseLoaderFillType, ParseVertAlignType, VertAlignType } from './config/Definitions' import { UIConfig } from './config/UIConfig' import { Bitmap } from './createjs/extras/Bitmap' import { Sprite } f...
// User specifies the port number, and the subsystem public void connect(String hostname, String username, String password, String prompt, int timeOut, int portNum, String subsystem) throws IOException { String fn = "SshJcraftWrapper.connect"; DebugLog.printRTAriDebug(fn, ":::Attempt...
<filename>cloudsimex-geolocation/src/test/java/org/cloudbus/cloudsim/ex/geolocation/geoip2/GeoIP2IPGeneratorTest.java package org.cloudbus.cloudsim.ex.geolocation.geoip2; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.fail; import java.util.Arra...
Our solar system has never received any visitors that we’ve been able to detect — until now. About a month ago, astronomers noticed a fast-moving, rocky asteroid hurtling through our solar system. To the astronomers’ surprise, this was our solar system’s first known “alien” encounter, and on November 20, they described...
/** * This is the {@link JavaScriptObject} representing a {@code CssStyleDeclaration}. * * @see JavaScriptUtil#getComputedStyle(com.google.gwt.dom.client.Element) * * @author Joerg Hohwiller (hohwille at users.sourceforge.net) * @since 1.0.0 */ public class JsCssStyleDeclaration extends JavaScriptObject { pub...
/** * Created by Oliver Layer on 22.10.2015. */ public class ExceptionSender extends AsyncTask<Exception, Void, Void> { public ExceptionSender(Exception e) { e.printStackTrace(); //for debug execute(e); } @Override public Void doInBackground(Exception... e) { sendExc...
// GetOBKeys returns the keys corresponding to an order // orderbook price point key // orderbook list key corresponding to order price. func (o *Order) GetOBKeys() (ss, list string) { var k string if o.Side == "BUY" { k = "BUY" } else if o.Side == "SELL" { k = "SELL" } ss = o.GetKVPrefix() + "::" + k list = ...
/** * Adds the original list of {@code Fruit} ingredients to the {@code editRecipeDescriptor}. */ private void updateFruitsList(Recipe recipeToEdit, EditRecipeDescriptor editRecipeDescriptor) { if (editRecipeDescriptor.getFruits().isPresent()) { Set<Fruit> updatedFruitsList = new TreeSet<>...
<reponame>albertoanguita/util package org.aanguita.jacuzzi.concurrency.task_executor; import org.aanguita.jacuzzi.concurrency.daemon.Daemon; import org.aanguita.jacuzzi.concurrency.daemon.DaemonAction; import org.aanguita.jacuzzi.concurrency.execution_control.TrafficControl; import java.util.ArrayDeque; import java.u...
import { Module } from '@neskjs/common'; import { MongooseModule } from '@neskjs/mongoose'; import { CatsModule } from './cats/cats.module'; @Module({ imports: [MongooseModule.forRoot('mongodb://localhost/nest'), CatsModule], }) export class ApplicationModule {}
// Returns a Value-type expression holding a String. // // Will match the following strings // - "'hello'" // - '"hello"' // - "\"hello\"" // - '\'hello\'' fn string<'a>(i: &'a str) -> IResult<&'a str, Expression, VerboseError<&'a str>> { alt(( single_quote_string, escaped_single_quote_string, ...
// Determines if the specified ASTNode node is enclosed by a loop block in its containing method. public boolean isNodeInLoop(ASTNode node) { ASTNode currentNode = node; while (currentNode != null && !(currentNode instanceof MethodDeclaration)) { if (currentNode instanceof DoStatement || currentNode instance...
#!/usr/bin/python #-*- coding: utf-8 -*- #Banco de dados utilizados import fdb #kinterbasdb.init(type_conv=300) #Trabalhando com cgi import cgi import cgitb #Rotinas para manipulacao de data import datetime import time import locale import hashlib, Cookie, os import math import decimal import sys import re import s...
<filename>test_model/FaceDetection/params.h<gh_stars>10-100 #ifndef PARAMS_H #define PARAMS_H #include <opencv2/objdetect/objdetect.hpp> #include <string> #include <vector> typedef struct sParams{ int __max_numstage; int __max_depth; int __max_nodes; int* __max_numfeats; int __max_numtrees; i...
The Saskatchewan Information and Privacy Commissioner has rebuked the Ministry of Highways for what he calls "excessive delays" in responding to a series of Global Transportation Hub-related freedom of information requests by CBC's iTeam. Highways must take their obligations under FOIP more seriously. - Ron Kruzeniski...
import React from 'react'; import { Button } from 'react-bootstrap'; import { FaPlus, FaSearch } from 'react-icons/fa'; import { searchData, selectedMode } from '../../models/types'; import AddModal from '../Modals/AddModal/AddModal'; import SearchModal from '../Modals/SearchModal/SearchModal'; import './AppUtilityBoxe...
Simultaneous segmentation and statistical label fusion Labeling or segmentation of structures of interest in medical imaging plays an essential role in both clinical and scientific understanding. Two of the common techniques to obtain these labels are through either fully automated segmentation or through multi-atlas ...
#include "Defaults.h" #include "K.h" const int Defaults::serverMaxClients = 5; const int Defaults::serverPort = 8080; const char Defaults::type[7] = "STRING"; const char* Defaults::serverIP = "127.0.0.1"; const string Defaults::msgValue = "HW!"; unsigned short int Defaults::msgIDCounter = 1; string Defaults::generate...
/* * Copyright (c) 2020. Yuanchen */ package explore.month_challenge._2020_june; /** * @author shiyuanchen * @project LeetCode * @since 2020/06/16 */ public class P16ValidateIPAddress { public String validateIPv4(String IP) { String[] nums = IP.split("\\.", -1); for (String x : nums) { // Valid...
Soon after she lost the June mayoral runoff, Ivy Taylor filed a claim for unemployment benefits from the city of San Antonio through the Texas Workforce Commission, sources said. The city contacted Taylor after she filed the claim, the sources said, and recommended she withdraw it because it otherwise would be rejecte...
def hydrate(self, iterator): ids = [] url = "https://api.twitter.com/1.1/statuses/lookup.json" for tweet_id in iterator: tweet_id = tweet_id.strip() ids.append(tweet_id) if len(ids) == 100: logging.info("hydrating %s ids", len(ids)) ...
// Copyright 2020 <NAME> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
import { sequelize } from "../../services/sequelize"; import * as faker from "faker"; import { User } from "../../models/User.model"; import { ModelCtor } from "sequelize/types"; import { Post } from "../../models/Post.model"; import { Comment } from "../../models/Comment.model"; const UserModel = sequelize.models.Use...
/* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved. * * The information contained herein is property of Nordic Semiconductor ASA. * Terms and conditions of usage are described in detail in NORDIC * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. * * Licensees are granted free, non-transferable use...
• Spain forward breaks silence over talk he is to leave Stamford Bridge • That does not mean that I am going to China, Costa adds I am the owner of my future, says Chelsea’s striker Diego Costa Diego Costa has said he will decide his own future - that does not necessarily mean a move to China for the Chelsea striker....
/*-------------------------------------------------------------------------*/ /*! Byte swap NIFTI-2 file header. */ /*---------------------------------------------------------------------- */ void nifti_swap_as_nifti2( nifti_2_header * h ) { if ( ! h ) { fprintf(stderr,"** nifti_swap_as_nifti2: NULL pointer\n")...
Experimental results confirming improved performance of systems using thermal isolation Results are presented of a design verification study demonstrating the system efficiency increase in thermoelectric systems that utilize thermal isolation. Three devices ranging from 40 to 2500 watts of electrical input power are d...
/* * Copyright (C) 2021 <NAME> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that ...
Solar flares occur when magnetic energy that has built up in the solar atmosphere is suddenly released by the Sun. Areas that are magnetically active are indicated by sunspots - visible dark spots on the Sun that indicate the magnetic field is very strong - thousands of times stronger than the Earth’s field. The most ...
// SPDX-License-Identifier: GPL-2.0+ /* * NAND boot for Freescale Integrated Flash Controller, NAND FCM * * Copyright 2011 Freescale Semiconductor, Inc. * Author: Dipen Dudhat <dipen.dudhat@freescale.com> */ #include <common.h> #include <cpu_func.h> #include <asm/io.h> #include <fsl_ifc.h> #include <part.h> #incl...
// Disable disables the authorization basic header in the outgoing request func Disable() p.Plugin { return p.NewRequestPlugin(func(ctx *c.Context, h c.Handler) { transport, ok := ctx.Client.Transport.(*http.Transport) if !ok { h.Next(ctx) return } transport.DisableCompression = true ctx.Client.Transpo...
Efficacy of Low and High Complexity Vegetation Treatments for Reestablishing Terrestrial Arthropod Assemblages during Montane Wetland Restoration Assessments of faunal reassembly during wetland restorations have typically been derived from relatively benign, lower‐elevation environments. We investigated recovery of te...
<gh_stars>100-1000 /** * A built-in action. */ export enum BuiltInAction { /** * applyPatches */ ApplyPatches = "$$applyPatches", /** * applySnapshot */ ApplySnapshot = "$$applySnapshot", /** * detach */ Detach = "$$detach", /** * applySet */ ApplySet = "$$applySet", /** *...
Get the Think newsletter. Nov. 23, 2017, 9:22 AM GMT / Updated Nov. 23, 2017, 9:22 AM GMT By James Braxton Peterson, Director of Africana Studies, Lehigh University The Russia investigation may be undercutting Attorney General Jeff Sessions’ credibility, but it has not undermined his efforts to take the U.S. Justice ...
/** * Appends all the {@link org.apache.camel.builder.RouteBuilder} bean instances that can be found in the manager. */ void appendBuilders(List<RoutesBuilder> list) { for (Bean<?> bean : manager.getBeans(RoutesBuilder.class, ANY)) { logger.trace("Found RouteBuilder bean {}", bean); ...
/** * Load XML metadata from the given stream. * * @param stream * The stream * @param log * A log interface * @return XML metadata * @throws JPXMLException * On XML-related errors. * @throws JPMissingHash * On missing hashes for supported versions...
/* * Switches are awesome. They work like if's and elses */ public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print("Type in a number less than 10: "); int value = input.nextInt(); switch(value){ case 2: System.out.println("2 is a Prime Number"); break; cas...
/* * Approach: While the numbers in the array are in increasing order, we keep iterating. After we finish iterating, * if we are still at index zero (vector is in decreasing order only) or have reached the end of the vector * (vector is strictly increasing), return false. Next, we iterating from that spot while the ...
Microstructure of the vocal fold in elderly humans Significant changes in the voice occur after the age of 50 years. Changes in the structure of the vocal fold (VF) can interfere with the voice. The aim of this study is to investigate the structure of the VF of elderly people that may contribute to the tendency of the...
def convert(self, key, replace_val=hp.choice): self.param_distributions = _replace_list( key, self.param_distributions, replace_with=replace_val )
/** * Product generated by hbm2java */ @Entity @Table(name = "product", catalog = "foodtown") public class Product implements java.io.Serializable { private int pid; private String ptitle; private String pdesc; private String pphoto; private BigDecimal pprice; private int ctid; public Product() { } public...
<filename>collection_handlers.go /* * Copyright 2018. bigpigeon. All rights reserved. * Use of this source code is governed by a MIT style * license that can be found in the LICENSE file. */ package toyorm import ( "errors" "fmt" "reflect" "time" ) func CollectionHandlerPreloadInsertOrSave(option string) fun...
/** * Test class for {@link FileChangesProcessor}. * * @author Florian Orendi */ class FileChangesProcessorTest extends AbstractCoverageTest { private static final String TEST_FILE_1 = "Test1.java"; private static final String TEST_FILE_2 = "Main.java"; private static final String TEST_FILE_1_PATH = "t...
Improved Bend Loss Formula Verified for Optical Fiber by Simulation and Experiment This paper presents an improved curvature loss formula for optical waveguides, which is shown to accurately predict the bend loss of both single-mode and multimode fibers. The formula expands upon a previous formula derived by Marcuse, ...
The Los Angeles Dodgers intend to begin dialogue with manager Don Mattingly on a new contract in the next few days, according to sources with knowledge of the situation. Earlier Wednesday, Mattingly's agent said the manager was expected to honor the final year of his contract. Dodgers president Stan Kasten was confid...
/* * Copyright (C) 2017 Seoul National University * * 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 applic...
def speed(self, speed): if speed > 100: self.logger.warning("Invalid speed {}, using 100%".format(speed)) speed = 100 elif speed < 0: self.logger.warning("Invalid speed{}, using 0%".format(speed)) speed = 0 self.time_int = 10001.0 - (speed * 100.)
<reponame>bdushi/Espresso /* * Copyright(c) 2017 lizhaotailang * * 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...
/** * 1) Your algorithm should use only constant extra space.<br /> * 2) You may not modify the values in the list's nodes, only nodes itself may be changed. * * pay attention on link and node */ ListNode *LinkedListQuiz::swapPairs(ListNode *head) { ListNode *dummy = new ListNode(0); dummy->next = head; ...
use chess::Chessboard; use chess::constants::*; fn main() { let mut chessboard = Chessboard::from_fen(STARTING_POS_FEN).unwrap(); for pos in chessboard.history() { println!("{}", pos.to_ascii()) } }
Available for Minecraft 1.7.10 through 1.12.2! This mod is an add-on to Extra Golems. Using blocks from Tinkers' Construct, you can now build golems to help you fend off monsters! Each looks unique and some have special abilities, as described below. Tinkers' Golems Addon adds the following golems to the Minecraft un...
package dto; import java.math.BigDecimal; import java.util.Date; public class ProductCommentDetailDto { private String productName; private String categoryName; private BigDecimal productPrice; private String userName; private String userSurname; private String userEmail; private String ...
package middlewares import ( "github.com/go-chi/cors" // here was rs instead of go-chi "log" "net/http" ) func CreateCorsMiddleware(allowedHosts []string) func(http.Handler) http.Handler { return func(handler http.Handler) http.Handler { c := cors.New(cors.Options{ AllowedHeaders: []string{"Access-Contro...
#ifndef MUSHCORECHILDRECORD_H #define MUSHCORECHILDRECORD_H /***************************************************************************** * * (Mushware file header version 1.2) * * This file contains original work by <NAME>. * Copyright <NAME> 2002. All rights reserved. * Contact details can be found at http://...
<filename>src/Pigs/PigSrv/PigSrv.cpp ///////////////////////////////////////////////////////////////////////////// // PigSrv.cpp : Implementation of WinMain // // Note: Proxy/Stub Information // To build a separate proxy/stub DLL, // run nmake -f PigSrvps.mk in the project directory. #include "pch.h" #inclu...
Best of the Week Court: No ACC for bringing up child A woman who gave birth after a failed sterilisation operation has lost a Court of Appeal bid to force the Accident Compensation Corporation to pay her because child care obligations mean she cannot work. However she persuaded the President of the Court, Justice St...
package constant import ( "github.com/pkg/errors" ) var ( ERROR_JSON_PARSE = errors.New("unable to parse json") ERROR_FORM_PARSE = errors.New("unable to parse form") ERROR_INVALID_ID = errors.New("invalid id") ERROR_OBJECT_NOT_EXIST = errors.New("object does not exist") ERROR_UNAUTHORIZED ...
<filename>src/app/beer_garden/api/http/handlers/v1/forward.py # -*- coding: utf-8 -*- import asyncio from brewtils.errors import TimeoutExceededError from brewtils.schema_parser import SchemaParser from beer_garden.api.authorization import Permissions from beer_garden.api.http.handlers import AuthorizationHandler EV...
/** * Session Configuration model adapter class for the * TopLink Foudation Library class ServerLogConfig * * @see ServerLogConfig * * @author Tran Le */ public final class ServerLogAdapter extends LogAdapter { /** * Creates a new ServerLogAdapter for the specified model object. */ ServerLo...
Growth, bone maturation and ovarian size in girls with early and fast puberty (EFP) and effects of three years treatment with GnRH analogue (GnRHa) Introduction: Early puberty (EP) in girls is defined as the onset of thelarche that begins after 6 years and before 8 years and/or acceleration in the tempo of pubertal de...
<filename>src/validators/__tests__/main.validators.test.ts describe('Main validators', () => { describe('validateBody', () => { it.todo('should validate body'); it.todo('should validate bodies'); it.todo('should return bad request response if invalid'); }); describe('validateParams', () => { it...
/** * RM for XA mode. * * @author sharajava */ public class ResourceManagerXA extends AbstractDataSourceCacheResourceManager { private static final Logger LOGGER = LoggerFactory.getLogger(ResourceManagerXA.class); private static final int TWO_PHASE_HOLD_TIMEOUT = ConfigurationFactory.getInstance().getInt(...
package org.example.coffee.priority.custom; import jakarta.inject.Singleton; @Singleton @CustomPriority(7) public class BOtheri implements OtherIface { @Override public String other() { return "b"; } }
Early life Edit Against the New York Yankees Edit The New York Yankees and the Chattanooga Lookouts were scheduled to play an exhibition game in Chattanooga, Tennessee, on April 1, 1931, however due to rain the game was postponed until the next day. Seventeen-year-old Mitchell was brought in to pitch during the first...
/* This source file is part of the geos95 library, which is released under the MIT license. Github repository: https://github.com/MHBalsmeier/geos95 */ #define SEMIMAJOR 6378137.0 #define SEMIMINOR 6356752.314 #define RADIUS pow(SEMIMAJOR*SEMIMAJOR*SEMIMINOR, 1.0/3.0) int find_geodetic(double, double, double, double,...
import os import logging import requests import telegram import dotenv from bot_handlers import TelegramLogsHandler def raise_response_errors(response): """Check response for errors. raise error if some error in response :param response: requests response object """ # check HTTPError respons...
import { AxiosInstance } from 'axios'; import { ListResponse, ProductModel, ProductModelQueryParameters, } from '../types'; import raw from './raw'; /** * @see https://api.akeneo.com/api-reference.html#get_product_models */ export const get = ( http: AxiosInstance, { query }: { query?: ProductModelQueryPar...
<reponame>creamlab/revcor package xp import ( "encoding/json" "errors" "io/ioutil" "math/rand" "os" "strings" "time" "github.com/creamlab/revcor/helpers" ) type Participant struct { Id string `json:"id"` ExperimentId string `json:"experimentId"` Todo string `json:"todo"` Age st...
/*====================================================================== Request_io() reserves ranges of port addresses for a socket. I have not implemented range sharing or alias addressing. ======================================================================*/ int pcmcia_request_io(client_handle_t h...
/** * Store topology information * and implements topology store api functions. */ public abstract class TopoStore implements TopoStoreInterface { private static Logger log = Logger.getLogger(TopoStore.class); protected Set<TopoVertex> topoVertices; Graph<TopoVertex, TopoEdge> topoGraph; private Set...
<filename>quebic-faas-cli/service/user_service.go package service import ( "quebic-faas/types" ) const api_auth = "/auth" const api_user = "/users" //UserLogin user_login func (mgrService *MgrService) UserLogin(authDTO *types.AuthDTO) (*types.JWTToken, *types.ErrorResponse) { response, err := mgrService.makeReque...
//Get the RAM used by a particular process /* NOTE: I have used "VmRSS" here instead of "VmSize", as VmSize is the sum of all the virtual memory, whereas VmRSS gives the exact physical memory being used as a part of the physical RAM. */ string LinuxParser::Ram(int pid){ std::string key = "VmRSS:"; try{ int ra...
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") def com_google_protoc_java_resource_names_plugin_repositories( omit_pypi_six = False, omit_com_google_protobuf = False, omit_pypi_py_yaml = False, omit_pypi_pystache = False, omit_pypi_ply = False): if not omit_pypi_six: ...
/* tslint:disable */ import { BaseTransferQueryFilters } from './base-transfer-query-filters'; /** * Query filters for transfers */ export interface TransferQueryFilters extends BaseTransferQueryFilters { /** * Either ids or internal names of the currency */ currencies?: Array<string>; /** * Use `cu...
<reponame>Song1996/Leetcode<gh_stars>0 #include <iostream> #include <memory> #include <vector> #include <map> #include <string> #include <assert.h> #include <algorithm> using namespace std; class Solution { public: vector<vector<int> > subsetsWithDup(vector<int>& nums) { vector<vector<int> > ans; i...
/** * A set of convenience methods for handling files and file names. * * @author David B. Bracewell */ public final class FileUtils { private static final char EXTENSION_SEPARATOR = '.'; private static final char UNIX_SEPARATOR = '/'; private static final char WINDOWS_SEPARATOR = '\\'; private FileUt...
// -*- mode: c++; tab-width: 4; indent-tabs-mode: t; eval: (progn (c-set-style "stroustrup") (c-set-offset 'innamespace 0)); -*- // vi:set ts=4 sts=4 sw=4 noet : // // Copyright 2010 wkhtmltopdf authors // // This file is part of wkhtmltopdf. // // wkhtmltopdf is free software: you can redistribute it and/or modify // ...
A/N: Back to Ash again for this chapter! And another face no one is happy to see again. I hope you like it! Let me know what you think :) CHAPTER 10 ASHES TO ASHES Nothing. That was all that remained when Ash opened his eyes—nothing but stark, blue-white conflagration. Unbearable, overwhelming, a burning starfire th...
/** * Saves the differences of the storage class and conditions to the history * tables in the db. */ public void saveEditedMaterialStorage() { MaterialStorageDifference diff = comparator.getDifferenceOfType(diffs, MaterialStorageDifference.class); if (diff != null) { updateSt...
// Copyright (c) 2021 FZI Forschungszentrum Informatik // SPDX-License-Identifier: Apache-2.0 //! Parsers for modules and related items use std::sync::Arc; use nom::branch::alt; use nom::character::complete::char as chr; use nom::combinator::{iterator, map, value}; use nom::multi::many0; use nom::sequence::tuple; us...
// ClearColStats clears all column statistics from every relational expression // in the memo. This is used to free up the potentially large amount of memory // used by histograms. func (m *Memo) ClearColStats(parent opt.Expr) { for i, n := 0, parent.ChildCount(); i < n; i++ { child := parent.Child(i) m.ClearColSt...
//============================================================================ // // This file is part of GPSTk, the GPS Toolkit. // // The GPSTk is free software; you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; ei...