content
stringlengths
10
4.9M
/** * * * @return LISTP of URIs of all instances of owl:ObjectProperty that have no rdfs:range values. */ @LispMethod(comment = "@return LISTP of URIs of all instances of owl:ObjectProperty that have no rdfs:range values.") public static final SubLObject rdf_graph_object_properties_without_range...
package models import ( "gorm.io/gorm" ) // Plane is the smallest logical unit in the Captain stack. A plane is synonymous with a VM or container that // runs a service for a formation/flight. type Plane struct { gorm.Model Name string `validate:"required,alphanum"` CPU int `validate:"gt=0,lt=8192"` RAM int...
//*************************************************************************** // // DllRegisterServer // // Purpose: Called during setup or by regsvr32. // // Return: NOERROR if registration successful, error otherwise. //*************************************************************************** STDAPI DllReg...
def publish(self, payload, qos: int = None, retain: bool = None): return publish(self.write_topic, payload, qos=qos, retain=retain)
What makes the α1A‐adrenoceptor gene product assume an α1L‐adrenoceptor phenotype? The α1A‐adrenoceptor is abundantly expressed in the lower urinary tract and is the principal therapeutic target for the symptomatic treatment of lower urinary tract symptoms in men. Prazosin has a lower affinity for the lower urinary tr...
Cadastral in Queensland, Australia Map all coordinates using: OpenStreetMap Download coordinates as: KML · GPX Map of Stanley county in 1886 The County of Stanley is a cadastral division centred on the city of Brisbane in Queensland, Australia, that is used mainly for the purpose of registering land titles. It was n...
// NewClient create new http client func NewClient() *http.Client { return &http.Client{ CheckRedirect: func(req *http.Request, via []*http.Request) error { req.Header.Set("Cookie", req.Response.Cookies()[0].String()) return nil }, } }
/** \brief Internal timeout interrupt process function \param[in] rtc handle rtc handle to operate \return None */ void wj_rtc_irq_handler(void *arg) { csi_rtc_t *rtc = (csi_rtc_t *)arg; wj_rtc_regs_t *rtc_base = (wj_rtc_regs_t *)HANDLE_REG_BASE(rtc); if (wj_rtc_get_intr_sta(rtc_base))...
<filename>meta/types/freezer.go<gh_stars>100-1000 package types import "time" type Freezer struct { Rowkey []byte // Rowkey cache Name string BucketName string Location string // which Ceph cluster this object locates Pool string // which Ceph pool this object loca...
/** * Responsible for saving things. * * @author Adam Davis * */ public class ZCodeSaver { final CodeFormatter codeFormatter; final LanguageParser languageParser; final DependencyManager dependencyManager; String encoding = "UTF-8"; public ZCodeSaver(APIFactory apiFactory) { this(apiFactory.getCodeFo...
/** * Extracts mappings from signature to result (either accumulator or output) for the entire * function. Verifies if the extracted inference matches with the implementation. * * <p>For example, from {@code (INT, BOOLEAN, ANY) -> INT}. It does this by going through all implementation * methods and collecting...
__author__ = 'kh9107' i = 0;curr = 0 for value in range(0,int(raw_input())): t = [ int(n) for n in raw_input().split() ] curr += t[1]-t[0] i = max(i,curr) print i
/** * Marks the beginning of an I/O operation that might block indefinitely. * * <p> This method should be invoked in tandem with the {@link #end end} * method, using a <tt>try</tt>&nbsp;...&nbsp;<tt>finally</tt> block as * shown <a href="#be">above</a>, in order to implement interruption for ...
// StephanieB5: removed unused parameters CFirstPersonCamera* viewerCamera & UIConstants* ui void App::RenderGBuffer(ID3D11DeviceContext* d3dDeviceContext, CDXUTSDKMesh& mesh_opaque, CDXUTSDKMesh& mesh_alpha, const D3D11_VIEWPORT* viewport) { #ifd...
/*****************************************************************************/ /** * * This function Auto rewrites the contents of a Page in the Serial Flash. * * @param InstancePtr is a pointer to the XIsf instance. * @param Address is the address of the page to be refreshed. * * @return XST_SUCCESS if successful els...
# main.py # Author: <NAME> def npdisplay(board): """ Function to dislay the provded board to the user through a series of print statements to the console. """ # Output the column header and establish the column borders print() column_header = ' Columns ' print(column_heade...
<gh_stars>0 package encoder import ( "crypto/sha256" "encoding/asn1" "encoding/hex" "log" "golang.org/x/crypto/blake2b" "github.com/btcsuite/btcutil/base58" ) // TezosKeys contains keys formatted specific to tezos reference binaries type TezosKeys struct { SecretKey string PublicKey string PublicKe...
<filename>src/skye/QueryEngine.hpp<gh_stars>1-10 #pragma once #include "skye/SiteAdapter.hpp" #include <iostream> #include <memory> #include <string> namespace skye { class QueryEngine { public: static std::shared_ptr<SiteAdapter> determineAdapterFromUrl(const std::string& site); static std::string parseUrl...
def cells_connected_components(self,edge_mask,cell_mask=None,randomize=True): self.edge_to_cells() edge_mask=edge_mask & np.all( self.edges['cells']>=0,axis=1) cell_pairs = self.edges['cells'][edge_mask] from scipy import sparse from scipy.sparse import csgraph graph=spar...
<reponame>Sergiorq1/react-portfolio import type { AtRule } from 'postcss'; export declare class Model { anonymousLayerCount: number; layerCount: number; layerOrder: Map<string, number>; layerParamsParsed: Map<string, Array<string>>; layerNameParts: Map<string, Array<string>>; constructor(); ...
from ...exceptions import BadRequestException from ...utils import get_temp_dir from .utils import export_sed_doc from biosimulators_utils.combine.data_model import ( CombineArchiveContent, ) from biosimulators_utils.combine.io import ( CombineArchiveReader, CombineArchiveWriter, ) from biosimulators_utils....
<gh_stars>100-1000 import { env, envTLD } from 'dcl-ops-lib/domain' import { buildStatic } from 'dcl-ops-lib/buildStatic' async function main() { const market = buildStatic({ domain: `market.decentraland.${env === 'prd' ? 'org' : envTLD}`, defaultPath: 'index.html', }) return { cloudfrontDistributio...
#pragma once #include <atomic> #include <vector> #include "Job.h" class JobQueue { public: JobQueue( size_t maxJobs ); void Push( Job *job ); Job* Pop(); Job* Steal(); size_t Size() const; void Clear(); private: int maxJobs; std::atomic_int bottomIndex; std::atomic_int topIndex; std::vector< Job * > qu...
<filename>java/testing/org/apache/derbyTesting/functionTests/util/StaticInitializers/InsertInStaticInitializer.java /* Derby - Class org.apache.derbyTesting.functionTests.util.StaticInitializers.InsertInStaticInitializer Licensed to the Apache Software Foundation (ASF) under one or more contributor license a...
/** * The base implementation We use {@link LinkedHashMap} because it preserves the order based on insertion order, which * is what we want. * <p/> * Also see this informative R vignette: http://cran.r-project.org/web/packages/gdata/vignettes/mapLevels.pdf * * @throws DDFException */ public Map<Str...
package quicktemplate func appendURLEncode(dst []byte, src string) []byte { n := len(src) if n > 0 { // Hint the compiler to remove bounds checks in the loop below. _ = src[n-1] } for i := 0; i < n; i++ { c := src[i] // See http://www.w3.org/TR/html5/forms.html#form-submission-algorithm if c >= 'a' && c...
def copy(self) -> 'CatalogTableStatistics': return CatalogTableStatistics( j_catalog_table_statistics=self._j_catalog_table_statistics.copy())
Restoring Nature's Backbone Is it feasible to introduce contemporary species to fulfill the ecological role of species that went extinct thousands of years ago (rewilding) and can it work as an effective conservation strategy? Feature June 2006 | Volume 4 | Issue 6 | e202 A herd of bison has just made an extraordina...
You won't meet the newest member of the pride at the Darling Downs Zoo roaming the plains. He's sleeping in a baby's cot, underneath the cool breeze of a fan. Kwanza was born three-and-a-half weeks ago. His mother lost her milk, so the little 'big cat' is being hand raised by Stephanie Robinson, co-director of the Da...
import React, { useState, useEffect } from 'react' import StickyHeadBar from '@/components/StickyBar/StickyHeadBar' import PostActions from './PostActions' import historyModel from '@/models/history' import { ITopic } from '@cc98/api' import { getBoardNameById } from '@/services/board' import { navigate } from '@/u...
def parse_summary_json(self, summary_file: os.PathLike) -> None: super().parse_summary_json(summary_file) self._folder = KFold(**(self.summary["kfold"]))
Influence of Ground Clay Brick on the Properties of Fresh and Hardened Self Compacting Lightweight Concrete (SCLC) This paper aims to investigate influence of ground cay brick as filler or as aggregate on the workability and compressive strength of self-compacting lightweight concrete. Ground red brick was combined wi...
def unhook(self, qubit: cirq.Qid) -> cirq.Qid: if qubit not in self.entangled_squares: return new_qubit = self.new_ancilla() self.circuit = self.circuit.transform_qubits(lambda q: new_qubit if q == qubit else q) self.entangled_squares.remove(qubit) self.entangled_squa...
/** * A {@link Representation} constructed by <code>gzip</code> compression. */ public class GZIPRepresentation extends BaseRepresentation { /** Content encoding for this type of representation. */ public static final String ENCODING = "gzip"; /** Class logger. */ private static Logger log = LoggerF...
/** * Close the recordset and connection objects, in that order. */ public void close() { if(rs != null) { try { rs.close(); } catch(SQLException SQLE) { } } if(conn != null) { try { conn.close(); ...
def added_lines(self): adds = set() for hunk in self._hunks: adds = adds.union(hunk.added_lines()) return adds
<filename>apimodels/perf.go package apimodels import ( "context" "encoding/json" "fmt" "github.com/evergreen-ci/timber" "github.com/evergreen-ci/timber/perf" "github.com/evergreen-ci/utility" "github.com/pkg/errors" ) // GetCedarPerfCountOptions represents the arguments for getting a count // of perf results ...
Friends and classmates Will, Simon, Jay and Neil tackle the pressing issues of their lives -- girls, sex and cheap booze -- in this sitcom. 1. First Day 22m Will's parents have just divorced, and he's changed schools and made a new set of friends. But his new mates are neither that cool nor that credible. 2. Bunk Off...
Antibacterial Activity and Chemical Composition of the Essential Oil of Grammosciadium platycarpum Boiss. from Iran The chemical composition of the essential oils obtained from two samples (GP1 and GP2) of Grammosciadium platycarpum Boiss. was analyzed by GC and GC-MS. The analysis of the oils resulted in the identifi...
package papertrail import ( "fmt" "strconv" "github.com/hashicorp/terraform/helper/schema" "github.com/oogway/goptrail" ) func resourcePapertrailSearch() *schema.Resource { return &schema.Resource{ Read: resourcePapertrailSearchRead, Create: resourcePapertrailSearchCreate, Update: resourcePapertrailSea...
/** * * This class will manage fonts for drawing * */ public class FontManager { Font big, medium, small; FontMetrics fmBig, fmMedium, fmSmall; public FontManager(JFrame frame) { big = new Font(GameSettings.FONT_FAMILY, Font.BOLD, 56); medium = new Font(GameSettings.FONT_FAMILY, Fon...
On channeling of charged particles in a single dielectric capillary We analytically analyse the motion of a nonrelativistic charged particle in a cylindrical single capillary. The effective potential for interaction of a charged particle with the inner surface of a capillary is derived as a sum of the averaged atomic ...
#pragma once #include <cxxtest/TestSuite.h> #include "helpers.h" using namespace Helpers; /** * Tests calling */ class VMCallingTestSuite : public CxxTest::TestSuite { public: //Tests calling with int arguments void testCallInt() { TS_ASSERT_EQUALS(invokeVM("calling/arg1"), "4\n"); TS_ASSERT_EQUALS(invokeVM("...
/* Creates a context with debug logging for use in tests. */ func createTestContext() context.Context { console := zerolog.ConsoleWriter{Out: os.Stderr, TimeFormat: time.RFC3339} log := zerolog.New(console).Level(zerolog.TraceLevel).With().Timestamp().Logger() return log.WithContext(context.Background()) }
<gh_stars>0 module Bank.WebHelpers ( module Bank.WebHelpers, ) where import Bank.Types import Data.Aeson import qualified Data.List.NonEmpty as N import Elm (Elm) import Network.HTTP.Types.Status (Status, badRequest400, ok200, ...
/** * <p> * Wrapper of entity ID used to safely reference entities. Created by calling * {@link EntityManager#reference(int)}. * <p> * Become in an <i>empty</i> state once the entity doesn't exists anymore, at * this point, the stored entity ID become -1. * * @author Joannick Gardize * */ public class Entity...
#include <bits/stdc++.h> #define ll long long #define ld long double #define pi pair<int, int> #define mp make_pair #define pb push_back #define vi vector<int> #define pl pair<ll, ll> #define pd pair<double, double> #define vp vector<pi> #define f(i, n) for(int i = 0; i < n; i++) #define fo(i, a, n) for(int i = a; i < ...
<reponame>npocmaka/Windows-Server-2003<filename>inetsrv/intlwb/enu/tracer/src/global.cpp #include <windows.h> #include "globvars.hxx" // The code below is from globvars.cxx which is a part of pkmutill.lib // I copied it here in order not to muck with precompiled header objects required to link with pkmutill.lib ...
/** * Construct http {@link QueryParameters} for this poll. * This always contains the {@link #getId()} as base64url. If flagged, it also contains the * {@link #editKey} as hex string * @param withEditKey if true, add the {@link #editKey} as hex string * @return the constructed query parameters */ public Qu...
As an LGBT activist, I was always happy to see my picture in the paper. It showed that I was doing my job, getting attention for the cause I believed in—and, of course, getting some attention myself. But after a story about George Freeman, director of the Sierra Leone LGBT organization Pride Equality, was published in...
<filename>modules/_create-map/index.ts /** * @module @promises/_create-map * @copyright © 2017 <NAME> <<EMAIL>> (https://github.com/yisraelx) * @license MIT */ /** * @function * @private */ export default function _createMap(iterator) { return (collection?, iteratee: Function = v => v, limit?) => { ...
/** * @author Johan Siebens */ final class ChannelsActor extends AbstractActor { public static Props props(Tempo tempo, GameModes gameModes) { return Props.create(ChannelsActor.class, tempo, gameModes); } private final Tempo tempo; private final GameModes gameModes; public ChannelsActo...
// Tests_SRS_AMQPSDEVICEAUTHENTICATIONCBSTOKENRENEWALTASK_12_003: [The function shall call the amqpsSessionDeviceOperation.renewToken.] @Test public void run() throws IllegalArgumentException { AmqpsDeviceAuthenticationCBSTokenRenewalTask amqpsSessionManagerTask = new AmqpsDeviceAuthenticationCBSTokenRe...
<filename>modules/flowable-engine/src/test/java/org/flowable/standalone/event/EngineEventsTest.java /* 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...
/** * <p> * Driver implementation outputting weather data (temperature, humidity) * </p> * * @author Nicolas Fortin, UMRAE Ifsttar */ public class NoiseMonitoringSensor extends AbstractSensorModule<NoiseMonitoringConfig> { WeatherOutput weatherDataInterface; SlowAcousticOutput slowAcousticDataInterface; ...
<filename>gen.h #ifndef MAXMV #define MAXMV 500 #endif #ifndef MAXMG #define MAXMG 150 #endif enum { WPAWN = 1, WKNIGHT, WBISHOP, WROOK, WQUEEN, WKING, BPAWN = 9, BKNIGHT, BBISHOP, BROOK, BQUEEN, BKING, BLACK = 8, INIT = 16, AMARK = 040000, EPMARK = 020000, TMARK = 0, TNORM, TEPENAB, TOOO, TOO,...
def testset_x_2(self): self.invertor.x = self.x_in x_out = self.invertor.x for i in range(self.ntest): self.assertEqual(self.x_in[i], x_out[i])
package com.device.limaiyun.thingsboard.ui.fragment.supervision.presenter; import com.device.limaiyun.thingsboard.bean.SupervisionDivisionBean; import com.device.limaiyun.thingsboard.ui.fragment.supervision.model.SupervisionFragmentListener; import com.device.limaiyun.thingsboard.ui.fragment.supervision.model.Supervis...
<reponame>matsumo/M5StickC-SD-Updater<filename>src/M5StickcUpdater.cpp /* * * M5StickC SD Updater * Project Page: https://github.com/matsumo/M5StickC-SD-Updater * * Fork From : https://github.com/tobozo/M5Stack-SD-Updater * * Copyright 2018 tobozo http://github.com/tobozo * * Permission is hereby granted, fr...
import { matchPath } from 'react-router-dom'; import { IWorkspace } from 'shared/models/Workspace'; import makeRoute, { IRoute } from 'shared/routes/makeRoute'; import * as P from 'shared/routes/pathBuilder'; const workspacePath = '/:workspaceName'; interface IRecordWithWorkspaceName { workspaceName: IWorkspace['...
package br.com.api.mapper; import org.mapstruct.Mapper; import br.com.api.dto.PerfilDTO; import br.com.api.model.Perfil; /** * Classe adapter referente a entidade {@link Perfil}. * * @author <NAME> */ @Mapper(componentModel = "spring") public interface PerfilMapper { /** * Converte a entidade {@link Perfil}...
Acylcarnitine: Useful biomarker for early diagnosis of hepatocellular carcinoma in non-steatohepatitis patients BACKGROUND Early diagnosis of hepatocellular carcinoma (HCC) is necessary to improve the prognosis of patients. However, the currently available tumor biomarkers are insufficient for the early detection of H...
/** * Create new session and add to session tables. */ DaspSession alloc(DaspSocketInterface iface, InetAddress host, int port, boolean isClient, Hashtable options) throws Exception { synchronized (sessions) { if (sessions.size() >= MAX_SESSIONS_VAL) thro...
// String is the session store's stringer method func (ss *SessionStore) String() string { var sessions []string ss.sessions.Range(func(id, sess interface{}) bool { sessions = append(sessions, id.(string)) return true }) return strings.Join(sessions, "\n") }
<reponame>harryzcy/ascheck package localcheck import ( "errors" "os" "testing" "github.com/stretchr/testify/assert" ) func TestApplication_GetExecutableName(t *testing.T) { exec, err := getExecutableName("./../../test/data/sh_app.app") assert.Nil(t, err) assert.Equal(t, "run.sh", exec) } func TestApplication...
// Update the timestamp fields of |node|. void UpdateTimes(disk_cache::CacheRankingsBlock* node, bool modified) { base::Time now = base::Time::Now(); node->Data()->last_used = now.ToInternalValue(); if (modified) node->Data()->last_modified = now.ToInternalValue(); }
<gh_stars>0 #include <iostream> #include <queue> using namespace std; #define N 10 //Constante //Inicializa matriz void iniMatAdj(bool matAdj[N][N]) { //Recorremos matriz for (int i=0; i<N; i++) { for (int j=0; j<N; j++) { //Todos los datos son falsos matAdj[i][j] = false; } } }...
/** Matches a return type. */ public class ReturnTypeCriterion implements Criterion { /** The method name. */ private final String methodName; /** Matches the containing class. */ private final Criterion inClassCriterion; /** Matches the method's signature. */ private final Criterion sigMethodCriterion; ...
//----------------------------------------------------------------------------- // Purpose: Does a CRC check compared to the CRC stored in the user data. //----------------------------------------------------------------------------- bool CheckCRCs(unsigned char *userData, int length, const char *filename) { if (us...
#ifndef __ARGS_H__ #define __ARGS_H__ enum ARGS_RETURN_VALUE { ARGS_NO_ERROR = 0, ARGS_PARSE_FAILED = -1 }; typedef struct { int enable; const char* name; char shortTag; int allowLeading; char** leading; const char* groupMsg; const char* helpMsg; } args_t; #define ARGS_TERMINATE {-1, NULL, 0, 0, NULL, N...
package plugins import ( "context" "encoding/json" "io/ioutil" "log" "os" "sync" "github.com/kiteco/kiteco/kite-go/client/internal/plugins_new/internal/shared" ) // refreshRunning adds currently running editors to the list, purges paths which do not exist anymore and stores the data on disk // when necessary ...
With the national media descending on Georgia’s Sixth Congressional District, and outside money pouring in, the contest is viewed as a major test of whether a wave of left-wing activism since Mr. Trump’s inauguration will produce change at the ballot box. Ms. Cox’s group is one of more than a dozen popping out like do...
def relation(self) -> float: return functions.count_relation(self.name)
/* * Loop over all locks on the given file and perform the specified * action. */ static int nlm_traverse_locks(struct nlm_host *host, struct nlm_file *file, nlm_host_match_fn_t match) { struct inode *inode = nlmsvc_file_inode(file); struct file_lock *fl; struct nlm_host *lockhost; again: file->f_locks = 0;...
/** * @author Arjen Poutsma */ public class XmlOptionsFactoryBeanTests { private XmlOptionsFactoryBean factoryBean = new XmlOptionsFactoryBean(); @Test public void xmlOptionsFactoryBean() throws Exception { factoryBean.setOptions(Collections.singletonMap(XmlOptions.SAVE_PRETTY_PRINT, Boolean.TRUE)); XmlOptio...
Histopathological and biochemical assessment of d-limonene-induced liver injury in rats The aim of the present work was to develop a biochemical, histologic and immunohistochemical study about the potential hepatotoxic effect of d-limonene – a component of volatile oils extracted from citrus plants. Blood alkaline pho...
package br.com.simasoft.editora.dominio.modelo.autor; import br.com.simasoft.editora.infraestrutura.persistencia.hibernate.comum.interfaces.HibernateRepositorioGenerico; public interface AutorRepositorio extends HibernateRepositorioGenerico<Autor,Long> { }
def index(component): comp = glTools.utils.selection.getSelectionElement(component,element=0) indexList = OpenMaya.MIntArray() componentFn = OpenMaya.MFnSingleIndexedComponent(comp[1]) componentFn.getElements(indexList) return indexList[0]
<reponame>lidorcg/bluesnap-node<filename>src/lib/errors/models/ErrorMessage.ts import { AltTransactionErrors } from '../enum/AltTransactionErrors'; import { FraudErrors } from '../enum/FraudErrors'; import { WalletErrors } from '../enum/WalletErrors'; import { BatchTransactionErrors } from '../enum/BatchTransactionErro...
def calculate_finite_differences( pk_list: List, test_settings: Dict, environ: Bool = lambda: Bool(True) ) -> Dict: settings = test_settings.get_dict() diff_type = settings["diff_type"] diff_order = settings["diff_order"] dr = sum([component ** 2 for component in settings["step_sizes"]]) ** 0.5 ...
Missie McGuire, left, listens to her husband, Dennis McGuire, at a news conference where they announced their planned lawsuit against the state over the unusually slow execution of his father, also named Dennis McGuire, in Dayton, Ohio. (Photo11: Kantele Franko, AP) COLUMBUS, Ohio (AP) — Ohio said Monday it's boosting...
<reponame>dakele895/learn-java8 package io.github.biezhi.java8.concurrent; /** * @author: dalele * @date: 2020/11/22 00:40 * @description: */ public class VolatileFeatureExample { volatile long vl=0L; public void set(long l){ System.out.println(vl+"--------------------1"); vl=l; S...
<reponame>zema1/martian<gh_stars>1-10 // Copyright 2015 Google Inc. All rights reserved. // // 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...
/// Applies an AVL tree rotation, a constant-time operation which only needs /// to swap pointers in order to rebalance a tree. fn rotate(self, left: bool) -> Result<Self> { let (tree, child) = self.detach_expect(left)?; let (child, maybe_grandchild) = child.detach(!left)?; // attach grandchild ...
package main func main() { // Infinite Loop for { } }
Review: The Printed and the Built: Architecture, Print Culture and Public Debate in the Nineteenth Century, edited by Mari Hvattum and Anne Hultzsch, and Plaster Monuments: Architecture and the Power of Reproduction, by Mari Lending Mari Hvattum and Anne Hultzsch, eds. The Printed and the Built: Architecture, Print Cu...
// build a distribution report to send to status leader func (r *Reporter) buildReport() (DistributionReport, []Resource) { r.mu.RLock() defer r.mu.RUnlock() var finishedResources []Resource out := DistributionReport{ Reporter: r.PodName, DataPlaneCount: len(r.status), InProgressResources: map...
The enhanced ticket-based routing algorithm The delay-constrained least-cost routing problem is to find the least cost path which satisfies a given delay constraint. There are two major difficulties to solve in this problem. The first difficulty is the NP-completeness of this routing problem. The second difficulty is ...
/* * Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.nashorn.internal.ir; /** * Interface for AST nodes that can have a flag determining if th...
import numpy import scipy.sparse import unittest import pytest from xminds.lib.utils import deep_hash, classproperty, retry def test_deep_hash(): val = { 'arrays': { 'int': numpy.arange(1000), 'struct': numpy.array([(11, 12), (21, 22)], [('a', int), ('b', int)]), 's...
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the "hack" directory of this source tree. use naming_special_names_rust::{self as sn, user_attributes::*}; use ocamlrep_derive::{FromOcamlRep, ToOcamlRep}; use oxidized::{aast as...
package models import ( "encoding/json" "github.com/GoProjectGroupForEducation/Go-Blog/utils" ) type Tag struct { Content string `json: "content"` } func CreateTag(tag string) { db := &utils.DB{} if !isTagExist(tag) { tagItem := Tag{tag} buff, err := json.Marshal(tagItem) if err != nil { panic("JSON p...
<reponame>scalen/approveman import { GITHUB_ENTERPRISE_APP_ACTOR_NOT_FOUND, GITHUB_ENTERPRISE_APP_ACTOR_NOT_FOUND_DETAILS, } from "../config/err_msg"; /** * Checks if the environment is OK for the app to boot up. * * This is not used because there is nothing to get called * synchronously by Probot to check the...
<filename>icloudmoo-common-base-dao/src/main/java/com/icloudmoo/common/base/dao/ObjectRowMapper.java package com.icloudmoo.common.base.dao; import java.lang.reflect.Method; import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.sql.SQLException; import java.util.HashMap; import java.util.Map; import...
<gh_stars>10-100 package com.ebp.owat.app.gui; import com.ebp.owat.app.InputValidator; import com.ebp.owat.app.config.Globals; import com.ebp.owat.lib.runner.DeScrambleRunner; import com.ebp.owat.lib.runner.OwatRunner; import com.ebp.owat.lib.runner.ScrambleRunner; import com.ebp.owat.lib.runner.utils.Step; import com...
<filename>internal/cache/redis/redis.go /** * Copyright 2018 Comcast Cable Communications Management, LLC * 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/LICENS...
<reponame>Markoy8/Foundry /* * File: VectorizableVectorConverterWithBiasTest.java * Authors: <NAME> * Company: Sandia National Laboratories * Project: Cognitive Foundry * * Copyright December 3, 2007, Sandia Corporation. Under the terms of Contract * DE-AC04-94...
<filename>src/World/UI/Voiceover.hs<gh_stars>10-100 module World.UI.Voiceover ( module World.UI.Voiceover.Types , mkVoiceoverUI , updateVoiceoverUI , drawVoiceoverUI ) where import Control.Monad.IO.Class (MonadIO) import Data.Foldable (foldlM) import qualified Data.Text as T import Consta...
/******************************************************************************* * deque Pass2 Two Run Rot: ********************************************************************************/ MBOOL VSSScenario:: dequePass2TwoRunRot( MUINT32 port, vector<PortQTBufInfo> *pBufIn) { MBOOL bTwoRun = MFALSE; P...
def apply_to_node(self, system_id): if system_id in self.get_applied_nodes(): self.logger.debug( "Tag %s already applied to node %s" % (self.name, system_id)) else: url = self.interpolate_url() resp = self.api_client.post( url, op='upda...