content
stringlengths
10
4.9M
// ConfigClientPermissionsToProto converts a ConfigClientPermissions object to its proto representation. func IdentitytoolkitBetaConfigClientPermissionsToProto(o *beta.ConfigClientPermissions) *betapb.IdentitytoolkitBetaConfigClientPermissions { if o == nil { return nil } p := &betapb.IdentitytoolkitBetaConfigClie...
<gh_stars>10-100 {-- EXERCISES --} import Notes ( BinTreeInt(LeafInt, NodeInt) , BinTree(Leaf, Node) , inorder , height ) import TreePrinter -- Exercise 1 -- Define a Haskell datatype Tree1 for a tree that contains a -- character and an integer in each node, along with exactly three -- subtrees. data Tree...
import Container from '@mui/material/Container'; import Typography from '@mui/material/Typography'; import Box from '@mui/material/Box'; import { useTheme } from '@mui/system'; import { Divider } from '@mui/material'; import AppbarComponent from '../src/components/organisms/Appbar'; export default function Swap() { ...
async def ensemble_forecast(): timer_wfc = Timer( text="Overall duration for preparing weather forecasts: {:.2f} seconds", logger=logger.success, ) with timer_wfc: dict_id_href_body = await get_simulation_request_bodies() timer_overall = Timer( text="Overall duration for ...
package scheduler; import org.junit.Assert; import org.junit.Test; import scheduler.restaurants.Kitchen; import scheduler.restaurants.OrderDelivery; import java.util.Arrays; import java.util.Collection; public class KitchenTest { @Test public void testChefDelivery() { Kitchen kitchen = new Kitchen()...
/** * Unit tests for {@link DefaultComments}. * @author George Aristy (george.aristy@gmail.com) * @since 0.4.0 * @checkstyle MultipleStringLiterals (500 lines) */ public final class DefaultCommentsTest { private static final String COMMENTS = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n" ...
The Dancing Gaze Across Cultures: Kazuo Ohno's Admiring La Argentina Kazuo Ohno's 1977 butoh dance Admiring La Argentina is studied as a Bergsonian reflection on “pastness” in performance. As the work questions the absolute quality of the present, it is initially compared with Paul Valéry's concept of La Argentina's d...
package com.robaone.taskmanager.data; import java.util.Date; import com.robaone.dbase.HDBConnectionManager; import com.robaone.taskmanager.Storage; import com.robaone.taskmanager.project.Project; import com.robaone.taskmanager.project.ProjectNote; import com.robaone.taskmanager.project.Task; public class MysqlStorag...
import * as K from 'kefir'; type Event$ = K.Property<Event, any>; export declare interface Browser { focus: Event$; } // export declare interface Keyboard { keydown: Event$; keyup: Event$; }
/// Helper method to decline order. It is used only inside this module, so it is private. pub fn decline_order(&mut self, order_id: &Hash) { if let Some(order) = self.orders().get(order_id) { if order.status() == "pending" { let new_order = Order::new( ...
<reponame>arneboe/idea-rust package vektah.rust.ide.structure; import com.intellij.ide.structureView.StructureViewModel; import com.intellij.ide.structureView.StructureViewModelBase; import com.intellij.ide.structureView.StructureViewTreeElement; import com.intellij.psi.PsiFile; import org.jetbrains.annotations.NotNul...
/** * An extended version of {@link CassandraAlertLog} that adds insert capability. */ class CassandraAlertLogImporter extends CassandraAlertLog { private static long HOUR_IN_MILLIS = 60 * 60 * 1000; private PreparedStatement statement = null; public CassandraAlertLogImporter(Session db, CrawlLog log) { sup...
Annie Clark's poise has only gotten more resolute over the course of her four albums, but her musical life began years before her 2007 debut, Marry Me. Born in Tulsa, Oklahoma, she moved to Dallas following her parents' divorce when she was three. Including step- and half-siblings, she has four brothers and four sister...
/* * 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 ...
German footballer Mesut Özil is no stranger to lending a helping hand. The talented midfielder has built an enviable reputation for his ability to provide teammates with deftly weighted through balls and pinpoint crosses. Yet the generosity of Özil as a footballer is only the tip of the iceberg. His charitable donation...
// SPDX-License-Identifier: Apache-2.0 // Copyright 2021 - 2021, the Anboto author and contributors #include <Core/Core.h> using namespace Upp; #include <Functions4U/Functions4U.h> #include "Spreadsheet.h" bool SpreadsheetAPI::Open(const char *filename) {return false;} void SpreadsheetAPI::SetData(int row, int c...
<filename>models/scheduler.go package models import ( "context" "fmt" "time" "github.com/odpf/optimus/core/cron" "github.com/odpf/optimus/core/progress" ) var ( // BatchScheduler is a single unit initialized at the start of application // based on configs. This will be used to perform schedule triggered // o...
<gh_stars>0 package org.objectweb.dsrg.cocome.fractal.tradingsystem.inventory.shared_data.data.store; import java.util.*; import org.objectweb.dsrg.cocome.fractal.tradingsystem.inventory.shared_data.StoreQueryIf; import org.objectweb.dsrg.cocome.fractal.tradingsystem.inventory.shared_data.PersistenceContext; impo...
def delete_file(instance: object, arg: dict, verbose: bool=True) -> int: if instance.files.delete_available(): instance.files.delete(arg["instance_path"]) result = execute_command(instance, {"command":["ls", arg["instance_path"]], "expected_exit_code":"2"}, verbose=False) if result.stderr: ...
/** * Copyright (C) 2002 <NAME> (<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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
<filename>frameworks/src/Framework-See/See/ImageSource.h // // ImageSource.h // Framework-See // // Created by <NAME> on 11/18/10. // Copyright 2010 Carnegie Mellon University // // This work was developed under the Rehabilitation Engineering Research // Center on Accessible Public Transportation (www.rercapt.org) a...
pub struct Account { }
Apparent pseudohyperkalemia in a Chinese Shar Pei dog. Whole blood in a serum clot tube and EDTA-anticoagulated samples from an 8-year-old spayed female Chinese Shar Pei dog were submitted by an external clinic to the diagnostic laboratory at Atlantic Veterinary College for routine biochemical and hematologic analysis...
def _message_status(self, message_uuid: str) -> MessageStatus: self.logger.debug("Checking for message status: %s.", message_uuid) if message_uuid in self._uuids_received: return MessageStatus.RECEIVED else: return MessageStatus.UNKNOWN
Tribological properties of black phosphorus nanosheets as oil-based lubricant additives for titanium alloy-steel contacts The black phosphorus (BP) powders were prepared by high-energy ball milling with red phosphorus as the raw material, and then the BP nanosheets were obtained by liquid-phase exfoliation. The tribol...
<filename>08.goft-tutorial/ddd/application/assembler/UserResp.go<gh_stars>1-10 package assembler import ( "goft-tutorial/ddd/application/dto" "goft-tutorial/ddd/domain/aggregates" "goft-tutorial/ddd/domain/models" ) // UserResp 把用户实体映射成 DTO 展示给前端 type UserResp struct{} // M2D_SimpleUserInfo 把用户实体映射为 简单用户 DTO func...
import math mod = 1000000007 a = raw_input() k = int(raw_input()) n = len(a) b1 = 0 pow2 = 1 for i in xrange(n): if a[i] == '5' or a[i] == '0': b1 += pow2 pow2 = pow2*2%mod inv = pow((pow(2,n,mod)-1),mod-2,mod)%mod res = b1*(pow(2,n*k,mod) - 1)%mod*(inv + mod)%mod print res%mod
class registry: """ Catalogue registry for types, preprocessors, logging configuration, and others """ # types for field specs types = catalogue.create('datagen', 'type') # schemas for field spec types schemas = catalogue.create('datagen', 'schemas') # functions to modify specs before ru...
from yattag import indent from empugn import empugn from empugn.input import parse def test_empugn(): data = parse(''' html: - head: - title: Empugn example - link: rel: stylesheet href: foo.css - script: | alert('Hello, World'); - body: - h1: Sole text c...
// These tests use the path service, which uses autoreleased objects on the // Mac, so this needs to be a PlatformTest. class BZip2FilterUnitTest : public PlatformTest { protected: virtual void SetUp() { PlatformTest::SetUp(); bzip2_encode_buffer_ = NULL; std::wstring file_path; PathService::Get(base...
#include "bits/stdc++.h" #pragma GCC optimize ("O3") #pragma GCC target ("sse4") using namespace std; const int maxk = 21; const int maxn = 100100; int cnt[maxn], L, R; long long res; long long dp[maxk][maxn]; int arr[maxn], n, k; void expandL(){ L--; res += cnt[arr[L]]; cnt[arr[L]]++; } void reduceL(...
// // THIS FILE IS GENERATED BY fastbin // DO NOT MODIFY BY MANUAL // package module1 import "github.com/funny/binary" func (this *AddReq) MarshalBinary() (data []byte, err error) { var buf = binary.Buffer{Data: make([]byte, this.BinarySize())} this.MarshalWriter(&buf) return buf.Data, nil } func (this *AddReq) Un...
def Extract(self, source_table, destination_uris, print_header=None, field_delimiter=None, destination_format=None, compression=None, **kwds): _Typecheck(source_table, ApiClientHelper.TableReference) uris = destination_uris.split(',') for uri in uris: if not u...
<filename>src/solo/SoloVertexBufferLayout.cpp /* * Copyright (c) <NAME> * MIT license */ #include "SoloVertexBufferLayout.h" using namespace solo; void VertexBufferLayout::addAttribute(u32 elementCount, const str &name, VertexAttributeUsage usage) { const auto size = static_cast<u32>(sizeof(floa...
c=0 ar=[] arr=[] m=0 for i in range(int(input())): s=input() arr.append(s) if s not in ar: ar.append(s) for i in ar: if arr.count(i)>m: m=arr.count(i) ans=i print(ans)
//------------------------------------------- // called when parallel addition is finished //------------------------------------------- void merge() { for (int i = 0; i < max_thread; i++) { if (local_front[i].size() > 0) { data.splice(data.begin(), local_front[i]); } ...
In the NHL, a 2-2-3 start to a team’s season may not be the most desired beginning on the quest for the Stanley Cup. For the Florida Panthers however, the 7 points in 7 games is seen only as a positive. A notoriously poor starting team, the Cats have managed points in 5 of their first 7 games despite struggling immense...
export * from './cassandra-options.interface';
<reponame>esquiloio/eboot /**HEADER******************************************************************** * * Copyright (c) 2008, 2013 - 2015 Freescale Semiconductor; * All Rights Reserved * *************************************************************************** * * THIS SOFTWARE IS PROVIDED BY FREESCALE "AS...
def Get(self, subject): filename, directory = common.ResolveSubjectDestination(subject, self.path_regexes) key = common.MakeDestinationKey(directory, filename) try: return super(SqliteConnectionCache, self).Get(key) except KeyError: ...
// Run runs the genetic pool and finds the best creature func Run(p Pool) Creature { startTime := time.Now().UnixNano() var maxFitness, lastMaxFitness, averageFitness, lastAverageFitness float32 var t int64 iteration := 0 var bestCreature Creature fmt.Println(fmt.Sprintf("Running pool of size %d.", p.PoolSize()))...
//TODO: Add tests concerning books separated into parts public class LatexGeneratorTest { private LatexGenerator generator; private Book book; private File temp; private LatexParser parser; private TubainaBuilderData data; @Before public void setUp() throws IOException { RegexConfigurator configurator = new R...
/* * This file is part of i915tool * * Copyright (C) 2012 The ChromiumOS Authors. All rights reserved. * * 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; version 2 of the License. * * T...
<gh_stars>1-10 package communication.packets.request.admin; import communication.enums.PacketType; import communication.packets.AuthenticatedRequestPacket; import communication.packets.response.ValidResponsePacket; import communication.wrapper.Connection; import main.Conference; import voting.AnonymousVotingOption; im...
def adjust_image(image, diff): data = np.asarray(image, dtype='float32') data[:, :, 0] = np.clip(data[:, :, 0] - diff[0], 0.0, 255.0) data[:, :, 1] = np.clip(data[:, :, 1] - diff[1], 0.0, 255.0) data[:, :, 2] = np.clip(data[:, :, 2] - diff[2], 0.0, 255.0) return Image.fromarray(data.astype(np.uint8)...
The writers of Star Wars' next movie, Rogue One, have revealed that the villain is based on Donald Trump. The movie will be released in the United States on December 16. Scriptwriter Chris Weitz tweeted that the "Empire is a white supremacist (human) organization." He also attached an image of the rebel logo that is w...
<reponame>rosudrag/Freemium-winner<filename>app/freemiumwebapp/twitterHook.py from TwitterAPI import TwitterAPI from app.freemiumwebapp.adminConstants import AdminConstants SEARCH_TWEETS_REQUEST = 'search/tweets' class TwitterHook(): def __init__(self): self.auth_type = "oAuth2" adminconstants = ...
from django.conf import settings from django.contrib import admin from django.urls import re_path from django.views.generic import RedirectView from django.views.static import serve try: from django.conf.urls import url, include except ImportError: from django.conf.urls.defaults import url, include from . imp...
<reponame>SriramKodey/Automated_Localized_Strain_Analysis from cv2 import cv2 import numpy as np from tkinter import filedialog def load(): path = filedialog.askopenfilename() img = cv2.imread(path) return img
/* * Traverse a string of 1-byte tag/1-byte length/variable-length value * triples, returning a pointer to the substring whose first element * matches tag */ bcm_tlv_t * bcm_parse_tlvs(void *buf, int buflen, uint key) { bcm_tlv_t *elt; int totlen; elt = (bcm_tlv_t*)buf; totlen = buflen; while (totlen >= 2) ...
Canadian members of Parliament should not be afraid to have their expenses audited, if it's true that the rules and regulations in place are as good as the MPs say they are, says Auditor General Sheila Fraser. "Well, I don't think MPs have anything to fear. They've certainly indicated that they have strong systems and...
// parse one line each time. std::pair<HttpRequest::LINE_STATUS, std::size_t> HttpRequest::ParseLine(Buffer &buff) { if(state_ == PARSE_STATE::BODY) return {LINE_STATUS::LINE_OK, buff.ReadableBytes()}; char *begin = buff.ReadBegin(); char *end = buff.WriteBegin(); std::size_t line_len = 0; ...
/** * Provides an iterator over Wikipedia articles. * @return an iterator over Wikipedia articles */ public Iterator<String> iterator() { return new Iterator<String>() { private String nextArticle = null; public boolean hasNext() { if (nextArticle != null) { return true; ...
// Filters a list of log file paths with a regex pattern and between given start and end dates public List<String> filterFilePathsBetweenDates( List<String> logFilePaths, String universeLogsRegexPattern, Date startDate, Date endDate) throws ParseException { logFilePaths = supportBundleUtil.filterList(lo...
//Function to send UDP targeted messages func udpClient(remoteaddress net.UDPAddr, command []byte) { plugaddress := remoteaddress connection, err := net.DialUDP("udp", nil, &plugaddress) if err != nil { panic(err) } defer connection.Close() connection.Write(command) udpbuffer := make([]byte, 1024) length, ...
// CreateResetClusterNodeRequest creates a request to invoke ResetClusterNode API func CreateResetClusterNodeRequest() (request *ResetClusterNodeRequest) { request = &ResetClusterNodeRequest{ RoaRequest: &requests.RoaRequest{}, } request.InitWithApiInfo("CS", "2015-12-15", "ResetClusterNode", "/clusters/[ClusterId...
The Backyard Axe Throwing League (BATL Grounds) has come a long way from the backyard. So far, in fact, that its new 7,000-plus-square-foot second location is an industrial-sized space nestled between film warehouses and production studios in a complex off Cherry Street south of Lake Shore Boulevard. The popular axe h...
<reponame>RoseLeBlood/QOpenAL /*""" This file is part of QtOpenAl (unoficiale libary) Copyright (C) 2013 <NAME> <<EMAIL>> 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 v...
def elina_interval_is_leq(interval1, interval2): result = None try: elina_interval_is_leq_c = elina_auxiliary_api.elina_interval_is_leq elina_interval_is_leq_c.restype = c_bool elina_interval_is_leq_c.argtypes = [ElinaIntervalPtr, ElinaIntervalPtr] result = elina_interval_is_leq_...
import pg_import_creator def main(): tv_dir = '' movie_dir = '' print('Starting import file creation') try: import_creator = pg_import_creator.PostgressImportCreator(tv_dir, movie_dir) import_creator.create_import_files() print('Import file creation finished. Please check log files.') except Ex...
/** * Excludes base view's ir, Includes the initial view's ir only if it has a sofa defined * * @param processIr * the code to execute */ void forAllIndexRepos(Consumer<FSIndexRepositoryImpl> processIr) { final int numViews = this.getViewCount(); for (int viewNum = 1; viewNum <= numView...
#pragma once #include "common.h" class CSnmpThread : public SysBase::CCustomThread, public SysBase::CSingletonT<CSnmpThread> { public: enum SNMP_TYPE { SNMP_TYPE_RECV = 0, SNMP_TYPE_SEND, SNMP_TYPE_MAX, }; virtual ~CSnmpThread(); friend class SysBase::CSingletonT<CSnmpThread>; void Add(SNMP_TYPE snmpT...
def send_get_user_json_request(self): if self.fail_to_get_user_json: current_app.logger.debug( 'MockFlaskDanceProvider failed to get user info' ) return MockJsonResponse(False, None) return MockJsonResponse(True, self.user_json)
/** * Makes use of the local filesystem. * * @author Martin Kouba */ @Dependent public class FileSystemResultRepository implements ResultRepository { private static final Logger LOGGER = LoggerFactory.getLogger(FileSystemResultRepository.class); @Inject private Vertx vertx; @Inject private Id...
package org.gooru.nucleus.search.indexers.app.index.model; import org.gooru.nucleus.search.indexers.app.constants.IndexFields; import org.gooru.nucleus.search.indexers.app.utils.JsonUtil; import io.vertx.core.json.JsonObject; public class CourseStatisticsEo extends JsonObject { public int getUnitCount() { r...
Infectious Bronchitis Virus Immune Responses in the Harderian Gland upon Initial Vaccination SUMMARY. In recent years, Arkansas Delmarva Poultry Industry (ArkDPI)–derived infectious bronchitis (IB) virus (IBV) vaccines have been used to characterize the immune responses of chickens subsequent to vaccination on day of ...
// returns initialized gamma, pi, mu, sigma fn _init(img2d: &Array2<f32>, k: u8) -> (Array2<f32>, Array1<f32>, Array2<f32>, Array1<f32>) { let n = img2d.len(); let mut gamma: Array2<f32> = Array::zeros((n as usize, k as usize)); let mut pi: Array1<f32> = Array::from_elem((k as usize,), 1_f32/k as f32); ...
<reponame>stokkie90/octodns # # # from __future__ import absolute_import, division, print_function, \ unicode_literals from requests import HTTPError, Session, post from collections import defaultdict import logging import string import time from ..record import Record from .base import BaseProvider def add_tra...
<gh_stars>10-100 package zamorozka.notification; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.FontRenderer; import net.minecraft.client.gui.ScaledResolution; import zamorozka.ui.font.CFontRenderer; public class Notification { public static final int HEIGHT = 30; private final String ...
Trading in all securities has been temporarily suspended on the New York Stock Exchange. The exchange posted the news on its website, saying "additional information will follow as soon as possible." The halt began at 11:32 a.m. Eastern. In a statement the NYSE said it was working to restore trading activity. "We're cur...
// contentWorker processes items from contentQueue. It must run only once, // syncContent is not assured to be reentrant. func (ctrl *csiSnapshotSideCarController) contentWorker() { workFunc := func() bool { keyObj, quit := ctrl.contentQueue.Get() if quit { return true } defer ctrl.contentQueue.Done(keyObj)...
package log import ( "os" log "github.com/sirupsen/logrus" ) func init() { customFormatter := new(log.TextFormatter) customFormatter.TimestampFormat = "2006-01-02 15:04:05.000" customFormatter.FullTimestamp = true customFormatter.DisableLevelTruncation = true log.SetFormatter(customFormatter) logLevelStr,...
For GOP moderates and would-be Republican Party reformers, the 2016 presidential election is now a disaster beyond repair. Despite growing talk of a “brokered” convention, the party’s two most likely nominees are still Donald Trump and Sen. Ted Cruz – one a trainwreck of a reality TV star and the other a favorite son o...
// *********************************************** // // Simpler defs, should use more structural typing // // ************************************************ declare let Object : any; export var GRAZY_PREFIX = 'grazy'; export var GRAZY_IRI = 'https://github.com/DavidLeoni/grazy/'; /** * Usage: callConstructor(My...
<reponame>vhnatyk/vlsistuff<filename>vcd_python_c/vcd.py import os,sys,string New = os.path.expanduser('~/verification_libs3') sys.path.append(New) import logs import veri BASE = 'tb' CLK = BASE + '.clk' def peeklocal(Sig,Base=BASE): return logs.peek('%s.%s'%(Base,Sig)) Totals = {'aw':0,'ar':0,'dw':0,'dr':0} de...
def import_proposal(request, proposal_id, award_pk): award = get_object_or_404(Award, pk=award_pk) try: existing_proposal = Proposal.objects.get(proposal_id=proposal_id) except Proposal.DoesNotExist: existing_proposal = None if existing_proposal: if existing_proposal.award: ...
Genotypic and allelic frequency of a mutation in the NHEJ1 gene associated with collie eye anomaly in dogs in Italy Abstract Background A 7.8‐kb deletion in intron 4 of the NHEJ1 canine gene is associated with Collie Eye Anomaly (CEA). This deletion has been described in sheep‐herding breeds related to the collie line...
package com.richdroid.physicsbasedanimation.ui.activity; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.Button; import com.richdroid.physicsbasedanimation.R; public class MainActivity extends AppCompatActivity ...
// WidgetBlueprintGeneratedClass FlagSelectionModal.FlagSelectionModal_C // Size: 0x570 (Inherited: 0x548) struct UFlagSelectionModal_C : UFortFlagSelectionModal { struct FPointerToUberGraphFrame UberGraphFrame; // 0x548(0x08) struct UVerticalBox* FlagConfirmation; // 0x550(0x08) struct UVerticalBox* FlagSelection; ...
/* * rma_try_authcode expects a buffer that is at least RMA_AUTHCODE_CHARS long, * so copy the input string to a buffer before calling the function. */ static int rma_try_authcode_pad(const char *code) { char authcode[RMA_AUTHCODE_BUF_SIZE]; memset(authcode, 0, sizeof(authcode)); strncpy(authcode, code, sizeof(au...
<gh_stars>0 module org.quickstart.javase9.markdown { requires org.quickstart.javase9.api; requires org.quickstart.javase9.service; uses org.quickstart.javase9.api.EventService; uses org.quickstart.javase9.service.TalkService; uses org.quickstart.javase9.service.WorkshopService; }
/** * A Cuckoo filter for instances of {@code T}. Cuckoo filters are probabilistic * hash tables similar to Bloom filters but with several advantages. Like Bloom * filters, a Cuckoo filter can determine if an object is contained within a set * at a specified false positive rate with no false negatives. Like Blo...
// messageLoop is the message read loop for this consumer // TODO (venkat): maintain a pre-allocated pool of Messages func (p *partitionConsumer) messageLoop(offsetRange *kafka.OffsetRange) { var drain bool if offsetRange != nil { drain = true } p.logger.Debug("partition consumer message loop started") for { s...
<reponame>IMvision12/keras-io<gh_stars>0 """ Title: Text classification with Switch Transformer Author: [<NAME>](https://www.linkedin.com/in/khalid-salama-24403144/) Date created: 2020/05/10 Last modified: 2021/02/15 Description: Implement a Switch Transformer for text classification. """ """ ## Introduction This exa...
Deblurring by Example Using Dense Correspondence This paper presents a new method for deblurring photos using a sharp reference example that contains some shared content with the blurry photo. Most previous deblurring methods that exploit information from other photos require an accurately registered photo of the same...
/** * Container of result of an Ivy resolve and maybe retrieve. */ public class ResolveResult { private final boolean previousUsed; private final Set<ArtifactDownloadReport> artifactReports = new LinkedHashSet<>(); private Set<String> problemMessages = new HashSet<>(); private final ResolveReport ...
/* Remote utility routines for the remote server for GDB. Copyright (C) 1993-2017 Free Software Foundation, Inc. This file is part of GDB. 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 Foundati...
<gh_stars>1-10 /* * GeoTools - The Open Source Java GIS Toolkit * http://geotools.org * * (C) 2002-2008, Open Source Geospatial Foundation (OSGeo) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as pu...
def find_lca(tnode1: TreeNode, tnode2: TreeNode) -> TreeNode: path1, path2 = map(reversed, (tnode1.path, tnode2.path)) path1, path2 = map(list, (path1, path2)) higher_depth = tnode1.depth if tnode1.depth < tnode2.depth else tnode2.depth path1 = path1[-higher_depth: ] path2 = path2[-higher_depth:...
<gh_stars>10-100 package ox.integration.actions.migrations; import ox.engine.exception.OxException; import ox.engine.internal.OxAction; import ox.engine.internal.OxEnvironment; import ox.engine.structure.Migration; public class V0001__remove_collection implements Migration { @Override public void up(OxEnviro...
<gh_stars>0 package service import ( "context" ) type Service interface { Run(ctx context.Context, ready func()) error Shutdown(ctx context.Context) error }
def _generate_filters(self, df, column_lst): filter_dict = dict() for column in column_lst: filter_dict[column] = list(set(df[column])) return cartesian_product(filter_dict)
def guess_nthreads(self,default): omp=int(os.environ.get('OMP_NUM_THREADS',None)) mkl=int(os.environ.get('MKL_NUM_THREADS',None)) if omp is None and mkl is None: return default omp = (1 if omp is None else omp) mkl = (1 if mkl is None else mkl) return omp*mkl
package infra import ( "context" "fmt" "strings" "time" "github.com/golang/glog" e2e "github.com/openshift/cluster-api-actuator-pkg/pkg/e2e/framework" mapiv1beta1 "github.com/openshift/cluster-api/pkg/apis/machine/v1beta1" controllernode "github.com/openshift/cluster-api/pkg/controller/node" corev1 "k8s.io/a...
Theological Education between the University and the Church Abstract This article examines the new ‘Common Awards’ partnership between the Church of England and Durham University, and asks what the university and the church have to gain from one another in the area of theological education. I argue that the university...
// Copyright (c) 2021 The Orbit Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "LibunwindstackMaps.h" namespace orbit_linux_tracing { namespace { class LibunwindstackMapsImpl : public LibunwindstackMaps { public: expl...
Automated Temporal Equilibrium Analysis: Verification and Synthesis of Multi-Player Games In the context of multi-agent systems, the rational verification problem is concerned with checking which temporal logic properties will hold in a system when its constituent agents are assumed to behave rationally and strategica...
<reponame>HighOakRobotics/16457FreightFrenzy<gh_stars>0 package org.firstinspires.ftc.teamcode.opmodes.tuning; import com.ftc11392.sequoia.SequoiaOpMode; import com.qualcomm.robotcore.eventloop.opmode.TeleOp; import org.firstinspires.ftc.teamcode.subsystems.arm.Arm; @TeleOp public class ArmEncoderTool extends Sequoi...
Chief Keef is currently serving a two month sentence in juvenile detention for violating his parole. Since taken into custody, he has seen even more legal trouble, including a lawsuit for a missed concert appearance, as well as a claim of unpaid child support from a middle school student. New reports indicate that Keef...
<gh_stars>1-10 #include <stdio.h> char* matchGivenWord( char* word ,char queriedLetter ); int findNumberOfChars( char* word ); void getWord(); void reset(); int main( void ) { int numOfChars = 0; int missMatch = 0; char word[8] = NULL; char typedWord[8] = {'_' , '_' , '_', '_','_' ,'_','_','_'}...