content stringlengths 10 4.9M |
|---|
<gh_stars>0
package com.unidev.templatecore.jmx;
import com.unidev.templatecore.Core;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jmx.export.annotation.ManagedOperation;
import org.springframework.jmx.export.annotation.ManagedOperationParameter;
import org.springframework.... |
import warnings
#refer this link to learn about warnings categories
#https://docs.python.org/3/library/warnings.html
warnings.simplefilter('default') # also can be enabled through command line flag python3 -Wd
class WarningExample:
def __init__(self,input:list):
self.input = input
def sortv1(self)... |
<reponame>rpatil524/Finance-Python<gh_stars>100-1000
# -*- coding: utf-8 -*-
u"""
Created on 2016-4-1
@author: cheng.li
"""
from PyFin.POpt.Optimizer import OptTarget
from PyFin.POpt.Optimizer import portfolio_optimization
__all__ = ['OptTarget',
'portfolio_optimization']
|
// generate_keypair generates a keypair for the Private Metadata construction.
// |out_x| and |out_y| are set to the secret half of the keypair, while
// |*out_pub| is set to the public half of the keypair. It returns one on
// success and zero on failure.
static int generate_keypair(EC_SCALAR *out_x, EC_SCALAR *out_y,... |
/**
*
* One trace
*
* @author Johan Henriksson
*
*/
public class QGraphicsLinTraceItem extends QGraphicsRectItem
{
public AnnotatedSequence seq;
public int cposLeft;
public int currentY;
public ViewLinearSequence view;
LinTrackTraces track;
double charHeight;
QFont fontSequence;
PlacedTrace trace;
... |
def cert_fingerprint(self) -> 'outputs.CertificateFingerprintResponse':
return pulumi.get(self, "cert_fingerprint") |
// ToMap returns a map of keys and values.
func (s *Sequence[K, V]) ToMap() map[K]V {
m := make(map[K]V, len(s.keys)*4/3+1)
for _, k := range s.keys {
m[k] = s.data[k]
}
return m
} |
<reponame>itok/SwaggerViewer
//
// SwaggerViewer-Bridging-Header.h
// SwaggerViewer
//
// Created by itok on 2018/03/03.
//
#ifndef SwaggerViewer_Bridging_Header_h
#define SwaggerViewer_Bridging_Header_h
#import <GCDWebServer/GCDWebServer.h>
#endif /* SwaggerViewer_Bridging_Header_h */
|
Quality assurance and impact measurement of university affiliated programs.
Provisions in the Developmental Disabilities Bill of Rights and Assistance Act (PL 101-496) emphasize the need to measure the impact of federally supported services in promoting the independence and productivity of clients and their integratio... |
import hashlib
import io
import logging
import os
import pilkit.processors
import pilkit.utils
from flask import current_app
from PIL import Image, ImageColor, ImageDraw, ImageFont
from . import cache, constants, exc, storage, utils
from ._compat import b, cairosvg
from .configuration import Config
logger = logging.... |
<gh_stars>10-100
//! `vst_window` provides a cross-platform API for implementing VST plugin editor windows.
mod event;
mod platform;
pub use event::{MouseButton, WindowEvent};
pub use platform::{setup, EditorWindow, EventSource};
|
def module_by_name(self, module, station_name=None):
station = self.station_by_name(station_name)
if station is None:
return None
if station["module_name"] == module:
return station
if station["_id"] == module:
return station
for mod in station... |
On the face of papal summer palace, which looms over the public square of a sleepy town near Rome, is a large clock from pre-Napoleonic times. It has one hand rather than two, and a face divided into six hours instead of 12. Its purpose is to remind the world that time passes very differently at the Vatican. Or so I te... |
//
// Copyright (C) 2022 <NAME> and other RDKit contributors
//
// @@ All Rights Reserved @@
// This file is part of the RDKit.
// The contents are covered by the terms of the BSD license
// which is included in the file license.txt, found at the root
// of the RDKit source tree.
//
//
// Original author: <NAME>... |
Influence of different fillers on the properties of an experimental vinyl polysiloxane.
The aim of the study was to evaluate the effect of the incorporation of different fillers on an experimental vinyl polysiloxane (VPS) at two different concentrations, 20% and 40%. Different fillers were added to an experimental VPS... |
from collections import Counter
from operator import mul
n = int(input())
s = input()
c = Counter(s)
if n < 3:
print(0)
exit()
elif len(c.keys()) < 3:
print(0)
exit()
ans = 0
for i in range(n):
x = s[i]
ans += mul(*[v for k, v in c.items()if k != x])
c[x] -= 1
for j in range(i+1, n):
... |
package optional;
import java.util.Optional;
import java.util.Random;
/**
* Created by kennylbj on 2017/4/29.
* A car may or may not have a Hud.
*/
final class Car {
private static final Random random = new Random(System.nanoTime());
private Hud hud;
Car() {
if (random.nextInt(3) != 0) {
... |
// Get return the config source with the specified name
func (m *MutableSourceList) Get(name string) Source {
for _, s := range m.sources {
if name == s.Name() {
return s
}
}
return nil
} |
<filename>src/app/services/general.service.spec.ts
import { TestBed } from '@angular/core/testing';
import { GeneralService } from './general.service';
import { CubicajeGeneral } from '../models/CubicajeGeneral';
import { TipoVehiculoCargaTerrestre } from 'app/models/TipoVehiculoCargaTerrestre';
import { DimensionObje... |
<filename>khayyamtriangle/khayyamtriangle.cpp<gh_stars>0
#include<iostream>
using namespace std;
long int fact(int);
int main()
{
int i, n, j;
cin>>n;
for (i = 0; i < n; i++){
for (j = 0; j <= i; j++)
printf("%ld ",fact(i)/(fact(j)*fact(i - j)));
cout<<endl;
}
return 0;
}
long fact(... |
/**
* Provides acess to a single ASN Standards Document (and individual standards
* contained within) via the AsnDocument and AsnNode classes. Provides lists of
* AsnStandardsNodes for use in UI JSP.
*
* @author ostwald
*/
public class AsnStandardsManager implements StandardsManager {
String xmlFormat;
St... |
def store_file(filename, raw):
file_path = os.path.dirname(filename)
if not os.path.exists(file_path):
os.makedirs(file_path, exist_ok=True)
file = open(filename, 'w', encoding='utf8')
file.write(raw)
file.close() |
6th episode of the third season of The Office
"Diwali" is the sixth episode of the third season of the American comedy television series The Office and the show's 34th overall. It was written by Mindy Kaling, who also acts in the show as Kelly Kapoor, and directed by Miguel Arteta. The episode first aired on November ... |
<reponame>butyr/leetcode-blind-75-questions
from typing import List
import pytest
from .solution import Solution
@pytest.mark.parametrize(
"inputs, expected",
[
(
["eat", "tea", "tan", "ate", "nat", "bat"],
[["bat"], ["nat", "tan"], ["ate", "eat", "tea"]],
),
],
)... |
/*!
* Initializes the MCP23S17 given its HW selected address, see datasheet for
* Address selection.
* @param address Selected address (0 to 7)
* @ss the slave select pin
*/
void TeelSys_MCP23S17::begin(uint8_t address, uint8_t ss) {
if (address > 7) {
address = 7;
}
_address = address;
_ss = ss;
_ss... |
This week, Paul McCartney filed a lawsuit in a New York court against publisher Sony/ATV in an effort to regain his ownership stake in the Beatles publishing catalog in what could become one of the biggest legal struggles in recent music history. If successful, it would end a long and painful battle for McCartney over ... |
Extended Space Vector Method for Calculation of Induction Motor Parameters
Abstract In this article, a novel method for the determination of spatial vectors of multi-phase windings is proposed. The proposed method is applied to squirrel-cage induction motors and it allows for the calculation of the rotor currents spac... |
export type Identity<T> = (t: T) => T;
export const identity = <T>(t: T) => t; |
<gh_stars>1-10
use ::toyunda_player::playlist::Playlist;
use ::toyunda_player::playing_state::PlayingState;
#[derive(Debug,Serialize)]
pub struct State {
pub playlist: Playlist,
pub playing_state: PlayingState,
pub display_subtitles: bool,
#[serde(skip_serializing_if="Option::is_none")]
pub quit_w... |
<reponame>carloszv/app<filename>src/providers/model-service.spec.ts
import { inject, TestBed } from '@angular/core/testing';
import { BaseRequestOptions, Http, HttpModule } from '@angular/http';
import { Storage } from '@ionic/storage';
import { Platform } from 'ionic-angular';
import { ImsBackendMock } from '../mocks/... |
<reponame>TGITS/programming-workouts<filename>exercism/python/darts/darts.py
from math import sqrt
def score(x, y):
if distance_from_origin(x, y) > 10:
return 0
elif distance_from_origin(x, y) > 5:
return 1
elif distance_from_origin(x, y) > 1:
return 5
else:
return 10
... |
<gh_stars>1-10
export class Meeting {
constructor(
public time: string,
public date: string,
public placeName: string,
public streetAddress: string,
public cityState: string,
public notes: string
) {}
}
|
<reponame>leesangmin144/length-extension-attack<gh_stars>0
"""
* Filename: sha256.py
* Author: Akif-G (mehmetgultekin At sabanciuniv.edu)
* Copyright:
* Disclaimer: This code is presented "as is" without any guarantees.
* Details: Implementation of the SHA-256 hashing algorithm.
SHA-256 is one ... |
/*!
* @brief Initializes the DAC peripheral according to the specified parameters in the dacConfig.
*
* @param channel: the selected DAC channel.
* This parameter can be:
* @arg DAC_Channel_1: DAC Channel1 selected
* @arg DAC_Channel_2: DAC Chann... |
// ReadLogConfigFile read log config from local config file.
func ReadLogConfigFile(configFile string) (LoggerProperties, error) {
fileByte, err := ioutil.ReadFile(configFile)
if err != nil {
return LoggerProperties{}, err
}
lp := LoggerProperties{}
err = yaml.Unmarshal(fileByte, &lp)
if err != nil {
return L... |
/**
* An application wide thread-local context that maintains the active URI for the current request.
*/
@ApplicationScoped
class WebContextHolder {
private final ThreadLocal<UriInfo> localUri = new ThreadLocal<>();
void setUriInfo(UriInfo info) {
localUri.set(info);
}
void clear() {
... |
/*
* SonarQube
* Copyright (C) 2009-2023 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program 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; either
* version 3 of the License, o... |
// Run starts the scheduler.
func (s *Scheduler) Run(client *clientv3.Client) error {
s.client = client
s.queue = recipe.NewPriorityQueue(client, common.QueuePrefix)
s.logger.Infof("starting main scheduler")
go s.watchDone()
for {
select {
case <-s.ready:
s.process()
case <-s.ctx.Done():
return s.ctx.E... |
<reponame>spaceleo1/slow-mandelbulb-explorer
#ifndef CUDAMAIN_H
#define CUDAMAIN_H
#include <SFML/Graphics/Color.hpp>
#include <iostream>
#include "global.h"
#include "vec3d.h"
#include "camera.h"
sf::Uint8* d_pixels;
void init() {
cudaMalloc(&d_pixels, W * H * 4 * sizeof(sf::Uint8));
}
template<typename T>
_... |
/**
* Adds an nluRelations to nluRelations.
*
* @param nluRelations the new nluRelations
* @return the GetSearchMatchesOptions builder
*/
public Builder addNluRelations(String nluRelations) {
com.ibm.cloud.sdk.core.util.Validator.notNull(nluRelations,
"nluRelations cannot be null"... |
from .ops import (
s_add_e,
s_mul_e,
s_sub_e,
s_add_e_sum,
s_mul_e_sum,
s_sub_e_sum,
s_add_e_mean,
s_mul_e_mean,
s_sub_e_mean,
s_add_t,
s_mul_t,
s_dot_t,
s_sub_t,
s_div_t,
)
|
// String returns a string representation of the TokenType.
func (t TokenType) String() string {
switch t {
case ErrorToken:
return "Error"
case TextToken:
return "Text"
case StartTagToken:
return "StartTag"
case EndTagToken:
return "EndTag"
case SelfClosingTagToken:
return "SelfClosingTag"
case Commen... |
Effect of Phlogopite on Plant Growth Under Phosphorus Deficiency
The release of potassium (K) from a K-bearing trioctahedral mica (phlogopite, <0.25 mm), was investigated in pot experiments with pak-choi, maize and radish under different phosphorus (P) regimes. In the nutrient solution culture, where phlogopite was th... |
<reponame>int-e/vulkan
{-# language CPP #-}
-- No documentation found for Chapter "Promoted_From_VK_KHR_device_groupAndVK_KHR_bind_memory2"
module Vulkan.Core11.Promoted_From_VK_KHR_device_groupAndVK_KHR_bind_memory2 ( BindBufferMemoryDeviceGroupInfo(..)
... |
<reponame>jrcichra/SoulMagic
package com.rainbowluigi.soulmagic.util;
public class Reference {
public static final String MOD_ID = "soulmagic";
}
|
A monkey fell onto a transformer at the Gitaru hydroelectric power station in Kenya and caused a nationwide blackout on Tuesday.
KenGen, the operator of Gitaru dam and Kenya's largest electricity producer, posted a photo on Facebook of the dastardly monkey still perched atop the transformer. Using our crack zoological... |
///Initialize by an array with array-length. "keys" is the array for
///initializing keys. "keyLength" is its length.
void MersenneTwister::Initialize(uint keys[], uint keyLength)
{
const uint cInitialSeed = 19650218;
Initialize(cInitialSeed);
uint i = 1;
uint j = 0;
uint k = cN > keyLength ? cN : keyLengt... |
<reponame>betagouv/preuve-covoiturage
// $schema: 'http://json-schema.org/draft-07/schema#',
// $id: 'https://geojson.org/schema/MultiPolygon.json',
// title: 'GeoJSON MultiPolygon',
export const MultiPolygonSchema = {
type: 'object',
required: ['type', 'coordinates'],
properties: {
type: {
type: 'stri... |
import { useSelector } from "react-redux";
import styled from "styled-components";
import {
EventDto,
EventType,
EventPayloadEntity,
} from "../../database/chatLogReducer";
import { Group, Player } from "../../database/GroupReducer";
import { RootState } from "../../database/Store";
import { System } from "../../... |
/**
* handles the filter button being clicked
*
* @param event
* the clicked event
*/
private void handleFilterViewerKeyPress(KeyEvent event) {
if (event.character == SWT.DEL && event.stateMask == 0) {
removeFilters();
}
} |
/*
* Copyright (c) 2016 <NAME>
*
* This software may be modified and distributed under the terms
* of the MIT License. See the LICENSE file for details.
*/
package com.achow101.bittipaddr.client;
import com.achow101.bittipaddr.shared.AddrReq;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.us... |
class TimestampedImage:
"""Timestamped image with an accompanying camera model.
Args:
img: (H,W,C) image.
camera_model: Pinhole camera model with intrinsics and extrinsics.
timestamp_ns: Nanosecond timestamp.
"""
img: NDArrayByte
camera_model: PinholeCamera
timestamp_n... |
Nitrogen-protected microwave-assisted extraction of ascorbic acid from fruit and vegetables.
In this study, nitrogen-protected microwave-assisted extraction (NPMAE), in which microwave-assisted extraction was performed under nitrogen protection, was initially developed and combined with HPLC separation for the determi... |
import compression from 'fastify-compress';
import cors from 'fastify-cors';
import helmet from 'fastify-helmet';
import rateLimit from 'fastify-rate-limit';
import { FastifyAdapter, NestFastifyApplication } from '@nestjs/platform-fastify';
import { Injectable } from '@nestjs/common';
import { AppConfigService } from '... |
#!/usr/bin/env python2.7
# Copyright 2017, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this lis... |
class PageParser:
"""
Class that compiles all regexes prehand for performance and then extracts module information from a string.
:param to_be_ignored: tokens that should be ignored
"""
def __init__(self, to_be_ignored: list = []):
self.to_be_ignored = [(re.compile(regex[0]), regex[1]) for ... |
/* char *T1_GetFullName( FontID): Get the Full Name from
the font dictionary associated with the specified font, or NULL if
an error occurs. */
char *T1_GetFullName( int FontID)
{
static char fullname[MAXPSNAMELEN];
if (T1_CheckForFontID(FontID)!=1){
T1_errno=T1ERR_INVALID_FONTID;
return(NULL);
}
... |
<gh_stars>10-100
/*
* Copyright 2020 Xiaomi
*
* 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 ... |
<filename>server/rdbms/src/main/java/cn/surveyking/server/impl/RepoTemplateServiceImpl.java<gh_stars>0
package cn.surveyking.server.impl;
import cn.surveyking.server.domain.model.RepoTemplate;
import cn.surveyking.server.mapper.RepoTemplateMapper;
import cn.surveyking.server.service.BaseService;
import org.springframe... |
Close video Shadow of Flynn legal jeopardy falls on Trump, Sessions Matt Miller, former Justice Department spokesman, talks with Rachel Maddow about the nature of the case against disgraced Trump NSA Mike Flynn and whether that has implications for any obstruction of justice case that might be made against Trump. share... |
The full details of the soundtrack album for the superhero movie Wonder Woman have been revealed. The album features the film’s original music composed by Rupert Gregson-Williams (Hacksaw Ridge, The Legend of Tarzan, The Crown, Over the Hedge). Also included is the new song To Be Human by Sia feat. Labyrinth. The sound... |
/**
* Checks whether the specified {@code collection} contains null values, throws {@link IllegalStateException} with a customized error message if it has.
*
* @param collection the collection to be checked.
* @param argumentName the name of the argument to be used in the error message.
* @re... |
Domain name troubles continue for The Pirate Bay this week. Just a few days after the site switched on its new .ms domain name, it's already been suspended by the Montserratian .MS registry. The torrent site now has to look out for new alternatives to keep the hydra going.
The Pirate Bay has had its fair share of doma... |
/**
* Test of isQueued method, of class LockableResource.
*/
@Test
public void testIsQueued_0args() {
System.out.println("isQueued");
boolean expResult = false;
boolean result = instance.isQueued();
assertEquals(expResult, result);
} |
//-----------------------------------------------------------------------------
// Purpose: Passes this call down into the server vehicle where the tests are done
//-----------------------------------------------------------------------------
bool CBaseServerVehicle::PassengerShouldReceiveDamage( CTakeDamageInfo &info ... |
def _observe(self, operator, *data_frames): |
// ExportResourceData provides resource data to export for the container.
func (p *staticplus) ExportResourceData(c cache.Container) map[string]string {
a, ok := p.allocations[c.GetCacheID()]
if !ok {
p.Warn("can't find allocation for container %s", c.PrettyName())
return nil
}
data := map[string]string{}
if a... |
<reponame>dora1998/FileSaveLineBot
package main
import (
"fmt"
"github.com/joho/godotenv"
"github.com/line/line-bot-sdk-go/linebot"
"github.com/line/line-bot-sdk-go/linebot/httphandler"
"golang.org/x/net/context"
"google.golang.org/appengine"
"log"
"net/http"
"os"
)
const MESSEAGE_GROUP_JOINED="こんにちは!しおパンダbo... |
<reponame>donhui/kubesphere<filename>pkg/apiserver/authorization/union/union_test.go
/*
Copyright 2014 The Kubernetes Authors.
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.... |
/**
* Use the provided ConstantFolder model to create a SB_Folder to add to the
* parent node as a child. Copies recursive behavior of
* {@link #addBehavior(Behavior, DefaultMutableTreeNode)}
*/
private void addConstantFolder(ConstantFolder constantFolderModel,
DefaultMutableTreeNode... |
/**
* Base implementation for capturing data from an {@linkplain com.adaptris.core.AdaptrisMessage} and storing it in a jdbc database.
*
*/
public abstract class JdbcDataCaptureServiceImpl extends JdbcServiceWithParameters {
@NotNull
@InputFieldHint(style = "SQL", expression = true)
private String statement =... |
<reponame>kalik1/summoner-fe
import { ServerStatus } from './server.status.class';
export class Server {
id: string;
name: string;
cmd?: string;
image?: any;
Instance?: any;
serverPort: number;
managePort: number;
status?: ServerStatus;
}
|
def _GetAliasForIdentifier(identifier, alias_map):
ns = identifier.split('.', 1)[0]
aliased_symbol = alias_map.get(ns)
if aliased_symbol:
return aliased_symbol + identifier[len(ns):] |
ELISA detection of specific functional antibodies in human serum to Escherichia coli, tetanus toxoid, and diphtheria-tetanus toxoids: normal values for IgG, IgA, and IgM.
An inexpensive, easily performed enzyme-linked immunosorbent assay (ELISA) was developed to measure specific IgG, IgA, and IgM antibodies to the com... |
import * as React from 'react'
export const Shop: React.FC = () => {
React.useEffect(() => {
const script = document.createElement('script');
script.src = "https://shop.myspreadshop.com/shopfiles/shopclient/shopclient.nocache.js";
script.async = true;
document.body.appendChild(scr... |
def create_schedule_abc(user_model=None):
user_model = user_model or settings.AUTH_USER_MODEL
class AbstractBaseSchedule(models.Model, AbstractSchedule):
owner = models.ForeignKey(
user_model, related_name='schedules',
db_index=True, blank=True, null=True,
)
url =... |
// Copyright 2013, 2020 <NAME>.
//
// SPDX-License-Identifier: Apache-2.0
package camutil
import (
"bytes"
"context"
"encoding/base64"
"encoding/hex"
"errors"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"
"os"
"os/exec"
"strings"
"sync"
"github.com/hashicorp/go-retryablehttp"
"perkeep.org/pkg/auth"
"p... |
def _calc_node_expanding_priority(self, search_node: SearchNode) -> float:
return (1 - self.heuristic_weight) * search_node.g_cost \
+ self.heuristic_weight * self.heuristic_function.estimate(search_node.state) |
/**
* Servlet Filter implementation class LoginFilter
*/
@WebFilter("/LoginFilter")
public class LoginFilter extends HttpFilter {
private String redirectUrl;
private String uncheckedUrls;
private String sessionKey;
@Override
protected void init() {
// TODO Auto-generated method stub
ServletConte... |
Paris, March 2
The provisional Franco-Moroccan agreement signed today by the Foreign Minister, M. Pineau, and the Moroccan Premier, Si Bekkai, has given such wide satisfaction to the Moroccans that at first sight it is difficult to see what the French have retained.
The agreement recognises that the Treaty of Fez, wh... |
From behind the Iron Curtain to Hybrid Warfare Networks (Echoes of Churchill’s Fulton Speech)
Aim. Based on the analysis of Winston Churchill’s Fulton speech and the project “The Unthinkable” initiated by him, we can trace the causes of the unavoidability and, moreover, the aggravation of the confrontation between the... |
import pandas as pd
# TODO: confirm these changes don't affect other areas of the code
def merge_county_and_hosp(df_county, df_hospital):
outcomes = ['tot_cases', 'tot_deaths']
# df_hospital = df_hospital.loc[~df_hospital.countyFIPS.isna()]
# df_hospital['countyFIPS'] = df_hospital['countyFIPS'].astype(in... |
/*
* Copyright (C) 2009-2018 Lightbend Inc. <https://www.lightbend.com>
*/
package javaguide.advanced.embedding;
import java.io.IOException;
import org.junit.Test;
import play.libs.ws.WSClient;
import play.libs.ws.WSResponse;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.CompletionStage;
impo... |
Heat-kernel estimates for random walk among random conductances with heavy tail
We study models of discrete-time, symmetric, $\Z^{d}$-valued random walks in random environments, driven by a field of i.i.d. random nearest-neighbor conductances $\omega_{xy}\in $, with polynomial tail near 0 with exponent $\gamma>0$. We ... |
package info.kyorohiro.helloworld.util;
public interface SimpleLockInter {
void beginLock();
void endLock();
}
|
/*++
Copyright (c) 2015 Microsoft Corporation
--*/
#include "tactic/arith/arith_bounds_tactic.h"
#include "ast/arith_decl_plugin.h"
struct arith_bounds_tactic : public tactic {
ast_manager& m;
arith_util a;
arith_bounds_tactic(ast_manager& m):
m(m),
a(m)
{
}
as... |
/**
* Removes a data, parameter or directory.
*
* @param pathname name of the data to remove
*
* @return the data that was removed
*
* @throws DataAccessException
*/
public Data deleteData(String pathname) throws DataAccessException
{
Data res = null;
boolean largest = ... |
package org.schoellerfamily.gedbrowser.datamodel.util;
import org.schoellerfamily.gedbrowser.datamodel.Attribute;
import org.schoellerfamily.gedbrowser.datamodel.Child;
import org.schoellerfamily.gedbrowser.datamodel.Family;
import org.schoellerfamily.gedbrowser.datamodel.Husband;
import org.schoellerfamily.gedbrowser... |
items = hero.findItems()
gem0 = items[0]
hero.say("Bruno " + gem0)
hero.say("Matilda " + items[1])
gem1 = items[2]
hero.moveXY(gem1.pos.x, gem1.pos.y)
|
/**********************************
* SCAENA FRAMEWORK
* Author: <NAME>
* License: MIT - 2016
**********************************/
#pragma once
#include "TextureRequest.h"
#include <glm/glm.hpp>
#include <list>
using namespace std;
class FrameBuffer;
typedef glm::vec2 vec2;
class FrameBufferRequest{
private:
bool... |
import { Component, OnInit } from '@angular/core';
import { FormBuilder, Validators, FormGroup } from '@angular/forms';
import { Router } from '@angular/router';
declare interface TableData {
headerRow: string[];
dataRows: string[][];
}
declare interface OfficerData {
headerRow: string[];
dataRows: string[]... |
n, m = map(int, raw_input().split())
l1 = map(int, raw_input().split())
l2 = map(int, raw_input().split())
ans = 10000000000000000000
for i in range(n):
cur = -10000000000000000000
for j in range(n):
if j != i:
for k in range(m):
cur = max(cur, l1[j]*l2[k])
ans = min(ans, cur)
print ans
|
/**
* <pre>
* Withdraw withdraws a candidate from the leader election
* </pre>
*/
public com.google.common.util.concurrent.ListenableFuture<atomix.primitive.election.v1.Primitive.WithdrawResponse> withdraw(
atomix.primitive.election.v1.Primitive.WithdrawRequest request) {
return io.grp... |
def validate_refresh_authorization_roles(self, unique_role, query_options, clients):
try:
self.client.execute("create role %s_internal1" % unique_role)
self.client.execute("create role %s_internal2" % unique_role)
role = "%s_internal1" % unique_role
subprocess.check_call(
["/bin/bash... |
/*
************************************************************************************************************************
* DELAY TASK 'n' TICKS
*
* Description: This function is called to delay execution of the currently running task until the specified number of
* ... |
//test separation/grouping into ssm/secretsmanager with valid parameters
func TestBadYaml(t *testing.T) {
objects := `
- objectName: secret1
objectType: secretsmanager
- {`
_, err := NewSecretDescriptorList(objects)
if err == nil {
t.Fatalf("Expected error but got none.")
}
} |
Three new scalarane-based sesterterpenes from the tropical marine sponge strepsichordaia lendenfeldi1
From the dichloromethane extract of the tropical marine sponge Strepsichordaia lendenfeldi collected from the Great Barrier Reef, Australia, three new (1, 2, and 9) and seven known (3-8 and 10) scalarane-based sestert... |
// Swap swaps the elements with indexes i and j.
func (t Tracks) Swap(i int, j int) {
tmp := *t[i]
tmp.ID = t[j].ID
t[j].ID = t[i].ID
t[i] = t[j]
t[j] = &tmp
} |
def create_competitions_csv():
competitions = {}
with open('athlete_events.csv') as csvfile:
reader = csv.reader(csvfile)
next(reader)
game_ID = 1
for row in reader:
game = row[8]
year = int(row[9])
season = row[10]
city = row[11]
... |
#include<bits/stdc++.h>
using namespace std;
int main()
{
long long int c,k,i,t,x,y,z,j,N,M,b,s,T,V,F,f,a,K;
string S,W;
set<long long int>A,B;
vector<long long int>P;
vector<long long int>::iterator it,it1;
cin>>F;
for(f=0; f<F; f++)
{
cin>>N>>k;
x=1;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.