content stringlengths 10 4.9M |
|---|
package cn.minsin.feign.util;
import org.springframework.core.env.Environment;
/**
* @author: minton.zhang
* @since: 2020/6/4 14:54
*/
public final class FeignExceptionHandlerContext {
private static Environment ENVIRONMENT;
public static String getApplicationName() {
return ENVIRONMENT == null... |
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2019 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... |
def _execute(self, options={}, args=[]):
if requests is None:
print('To use the import_wordpress command,'
' you have to install the "requests" package.')
return
if not args:
print(self.help())
return
options['filename'] = args.po... |
def _latlong_to_screen(self,
location: Tuple[float, float]) -> Tuple[int, int]:
x = round((location[0] - self.min_coords[0]) /
(self.max_coords[0] - self.min_coords[0]) *
self.image.get_width())
y = round((location[1] - self.min_coords[1]) /... |
<reponame>jiansheng/cassandra<filename>src/com/facebook/infrastructure/service/WriteResponseResolver.java
/**
* 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 ... |
def handle_enter(self, evt):
self.pointed_to = evt.widget
pointed_row = self.pointed_to.grid_info()['row']
for child in self.search_table.winfo_children():
if child.grid_info()['row'] in (0, 1):
pass
elif (child.grid_info()['column'] == 0 and
... |
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(RobolectricTestRunner.class)
@Config(manifest = "AndroidManifest.xml")
public class AppSyncClientUnitTest {
Resources res;
Context... |
// Play decode the gif file content then play it in the terminal
func (terminalPlayer *GifTerminalPlayer) Play(filename string, playOptions *PlayOptions) {
frames, err := terminalPlayer.decoder.DecodeFromFile(filename, nil)
if err != nil {
log.Fatal(err)
}
convertOptions := playOptions.Options
delay := playOptio... |
/**
* This function checks if a given queue is empty.
*
* @param queue The queue structure.
* @return 1 if the queue is empty, else 0.
*/
static int threadpool_queue_is_empty(struct threadpool_queue *queue)
{
if (queue->num_of_cells == 0) {
return 1;
}
return 0;
} |
// Attack length must be between range
bool Wheel::checkAttackLength(Uint32 aLen)
{
if (aLen < MIN_ATTACK_LENGTH || aLen > SDL_MAX_UINT32)
{
log("Error: attack length in mS Out of Bounds");
return false;
}
return true;
} |
/*
Euclidean modulo where the remainder has same sign as divisor.
*/
inline float emod( float a, float b )
{
float v = fmod( a, b );
if ( ( b < 0 ) != ( v < 0 ) )
{
v += b;
}
return v;
} |
/**
* Cudnn set sumChannels tensor descriptor int.
*
* @param reduceTensorDesc the sumChannels tensor desc
* @param reduceTensorOp the sumChannels tensor op
* @param reduceTensorCompType the sumChannels tensor comp type
* @param reduceTensorNanOpt the sumChannels tensor nan opt... |
<filename>nice/sdk/json/Skills/TSGetCampaignsResponse.ts
export var GetCampaignsResponse_Skills = {
"resultSet": {
"_links": {
"self": "",
"next": "",
"previous": ""
},
"businessUnitId": 0,
"totalRecords": 0,
"campaigns": [
{
"campaignId": 0,
"campaignName": "... |
<filename>platform/busybox/selinux/load_policy.c
/*
* load_policy
* This implementation is based on old load_policy to be small.
* Author: <NAME> <<EMAIL>>
*/
#include "libbb.h"
int load_policy_main(int argc, char **argv);
int load_policy_main(int argc, char **argv)
{
int fd;
struct stat st;
void *data;
if (ar... |
ipt = int(input())
if(ipt % 10 == 7):
print("Yes")
elif((ipt // 10) % 10 == 7):
print("Yes")
elif(((ipt // 10) // 10) % 10 == 7):
print("Yes")
else:
print("No") |
Potential benefits of using ecological momentary assessment to study high-risk polydrug use.
Background
While studies have documented both the feasibility and acceptability of using ecological momentary assessment (EMA) to study drug use, there is little empirical research assessing participants' perceptions of utiliz... |
/**
* A daemon thread. Also see StoppableThread for an alternative daemon
* construct.
*/
public abstract class DaemonThread implements DaemonRunner, Runnable {
private static final int JOIN_MILLIS = 10;
private volatile long waitTime;
private final Object synchronizer = new Object();
private Thread... |
/**
* This is the standard version of the UserOverlay.
*
* @author ricky barrette
*/
public class UserOverlay extends BaseUserOverlay {
private final AndroidGPS mAndroidGPS;
public UserOverlay(final MapView mapView, final Context context) {
super(mapView, context);
mAndroidGPS = new AndroidGPS(context);
}... |
<filename>nukkit/src/main/java/com/github/imdabigboss/kitduels/nukkit/interfaces/NukkitOfflinePlayer.java
package com.github.imdabigboss.kitduels.nukkit.interfaces;
import cn.nukkit.IPlayer;
public class NukkitOfflinePlayer implements com.github.imdabigboss.kitduels.common.interfaces.CommonOfflinePlayer {
private... |
/* Generic task switch macro wrapper, based on MN10300 definitions.
*
* It should be possible to use these on really simple architectures,
* but it serves more as a starting point for new ports.
*
* Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
* Written by David Howells (dhowells@redhat.com)
*
* This p... |
package com.almasb.event;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
/**
* @author <NAME> (AlmasB) (<EMAIL>)
*/
public class GameApp extends Application {
private EventBus eventBus;
private AudioPlayer audioPlayer;
@Ov... |
#include <bits/stdc++.h>
using namespace std;
#define FOR(x,n) for(int x=0;x<n;x++)
#define mp make_pair
#define PI 3.14159265358979323846264338327950288
typedef long long ll;
typedef pair<int,int> ii;
int n;
void check(vector<int>& ans) {
FOR(i,n) {
if(ans[i] < 0) return;
}
for(int i = 1; i < n; i++) {... |
#pragma once
#include <cstdint>
extern std::uintptr_t ContinueTerminalInput;
char PasswordMasker(char* buffer, char currChar, int position);
void PasswordMaskerStub(); |
/*
* dynamic_conf.h
*
* Created on: Dec 26, 2017
* by: <NAME>
*/
#ifndef SRC_MODULES_DYNAMIC_CONF_DYNAMIC_CONF_H_
#define SRC_MODULES_DYNAMIC_CONF_DYNAMIC_CONF_H_
#include <stdbool.h>
#include "agency.h"
typedef struct dynamic_conf_struct dynamic_config_context_t;
bool dynamic_conf_alloc_and_init( p... |
<gh_stars>0
import { Component, OnInit } from '@angular/core';
import { AuthService } from '../_services/auth.service';
import { TokenStorageService } from '../_services/token-storage.service';
import { HttpClient } from '@angular/common/http';
import { HttpHeaders } from '@angular/common/http';
import { Observable } f... |
<reponame>cryptogarageinc/p2pderivatives-client<filename>src/renderer/store/login/sagas.ts
import { all, call, fork, put, takeEvery, getContext } from 'redux-saga/effects'
import { LoginActionTypes } from './types'
import {
loginSuccess,
loginError,
logoutError,
logoutSuccess,
loginRequest,
refreshSuccess,
... |
<gh_stars>1-10
/*
* Created on Dec 10, 2004
*/
package impl.jena;
import java.net.URI;
import java.util.HashMap;
import java.util.Map;
import org.mindswap.exceptions.CastingException;
import org.mindswap.exceptions.ConversionException;
import org.mindswap.exceptions.NotImplementedException;
import org.m... |
Role of milk fractions, serum, and divalent cations in protection of mammary epithelial cells of cows against damage by Staphylococcus aureus toxins.
OBJECTIVE
To determine the effect of milk and blood serum constituents on cytotoxicity of Staphylococcus aureus on mammary epithelial cells.
DESIGN
In vitro incubation... |
<reponame>linkall-labs/vance<filename>pkg/k8s/httpscaledobject_keeper.go
package k8s
import (
kedahttp "github.com/kedacore/http-add-on/operator/api/v1alpha1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
func CreateHttpScaledObject(nameSpace, name, host string, port int32) *kedahttp.HTTPScaledObject {
httpScale... |
Holocaust survivor and restaurateur Avram Zeleznikow dies aged 89
Updated
Avram Zeleznikow, a Holocaust survivor and founder of Melbourne's famous Scheherazade restaurant, has died aged 89.
Zeleznikow was a partisan fighter in Poland during World War Two.
He relocated to Australia in the 1950s and established the S... |
// Build will build a stanza input operator.
func (c *InputConfig) Build(context operator.BuildContext) ([]operator.Operator, error) {
inputOperator, err := c.InputConfig.Build(context)
if err != nil {
return nil, err
}
receiver := make(logger.Receiver, c.BufferSize)
context.Logger.AddReceiver(receiver)
input :... |
def rollback(self):
pending_commits = self._get_pending_commits()
if pending_commits:
if pending_commits.get(self.config_session):
commands = [
"configure session {} abort".format(self.config_session),
"write memory",
]
... |
<reponame>connorskees/pdf<gh_stars>1-10
use std::{
borrow::Borrow,
collections::{BTreeMap, HashMap},
convert::TryInto,
};
use crate::{
font::Glyph,
geometry::{Outline, Path, Point},
postscript::GraphicsOperator,
};
use super::{
decode::decrypt_charstring,
font::{Encoding, Type1Postscri... |
/**
* Check if a zval is equal than a long value
*/
int phalcon_is_equal_long(zval *op1, zend_long op2) {
zval op2_zval = {};
ZVAL_LONG(&op2_zval, op2);
return phalcon_is_equal(op1, &op2_zval);
} |
#ifndef MOLTAROS_RTC_H
#define MOLTAROS_RTC_H
#include <stdint.h>
/*
Driver to interface with the system's Real-Time Clock, allowing the retrieval of date and time.
*/
void rtc_init();
uint8_t rtc_get_second();
uint8_t rtc_get_minute();
uint8_t rtc_get_hour();
uint8_t rtc_get_day();
uint8_t ... |
<reponame>arnomoonens/Mussy-Robot
# -*- coding: utf-8 -*-
"""
Created on Tue Nov 08 13:18:15 2016
@author: Greta
"""
from sklearn.svm import SVC
import numpy
from sklearn.externals import joblib
from sklearn.cross_validation import cross_val_score, KFold
from scipy.stats import sem
def evaluate_cros... |
#include <vector>
#include <deque>
#include <queue>
#include <set>
#include <unordered_set>
#include <map>
#include <unordered_map>
#include <list>
#include <numeric>
#include <algorithm>
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <cstdint>
#include <functional>
#include <array... |
<gh_stars>100-1000
import { Dto, DtoAttr } from "@batch-flask/core";
export class ContainerRegistryDto extends Dto<ContainerRegistryDto> {
@DtoAttr() public username: string;
@DtoAttr() public password: string;
@DtoAttr() public registryServer: string;
}
|
package webtests.seleniumeasy.pageobjects;
import net.thucydides.core.annotations.DefaultUrl;
@DefaultUrl("https://www.seleniumeasy.com/test/basic-radiobutton-demo.html")
public class MultipleRadioButtonForm extends SeleniumEasyForm {
public void selectGender(String gender) {
inRadioButtonGroup("gender")... |
/**
* Makes an array clone
*
* @param members array to be cloned
* @return clone
*/
private String[] copyover(Member[] members) {
assert members != null;
ArrayList<String> list = new ArrayList<>();
for (int i = 0; i < members.length; i++)
if (members[i] != n... |
Multiwavelength Transmission Spectroscopy Revisited for the Characterization of the Protein and Polystyrene Nanoparticle Mixtures
Multiwavelength Transmission (MWT) UV-Vis-NIR spectroscopy, an effective technique often underutilized for the characterization of processes involving particulates, such as protein aggregat... |
from __future__ import absolute_import, print_function, unicode_literals
from builtins import dict, str
import os
import logging
from indra.util import read_unicode_csv
logger = logging.getLogger(__name__)
from protmapper.uniprot_client import *
def _build_uniprot_subcell_loc():
fname = os.path.dirname(os.path... |
West Ham could move for Oriol Romeu (Picture: Getty Images)
West Ham are considering a move for out-of-favour Chelsea midfielder Oriol Romeu.
The former Barcelona starlet is set to be surplus to requirements at Stamford Bridge this summer and Sam Allardyce is reportedly considering making a bid.
Romeu spent last sea... |
<reponame>haibowen/AndroidStudy
package com.amaze.filemanager.database;
import android.support.annotation.NonNull;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import com.amaze.filemanager.filesystem.ssh.SshClientUtils;
import org.junit.Before;
import org.jun... |
// If goal has been reached build plan
std::vector<geometry_msgs::PoseStamped> RRTPlannerHelper::build_plan(
std::vector<qTree> _treeGraph) {
ROS_INFO("Building Plan");
_plan.clear();
qTree qAdd = _treeGraph.back();
while (qAdd.myIndex != 0) {
_plan.insert(_plan.begin(), qAdd.q);
double nearI = qAdd... |
Samsung’s Galaxy S III is the Android smartphone to beat, the first reviewers of the phones concluded, as the phone arrives in the U.S. on AT&T and Sprint to boot.
All major carriers have signed up to sell the S III and, this time around, you won’t get any silly names or slightly changed designs--the phone is set to l... |
<reponame>romneycf/grannys-game
export default function evenOdd(n: number) {
if (n % 2 === 0) return true;
return false;
}
|
.
International cooperation in health is a critical input for national development. Available resources in the health sector are scarce and are frequently badly used. For these reasons national and international efforts are required to reorient the delivery of health services. Many of the social and economic problems ... |
def is_global(wire):
return bool(global_entry_re.match(wire) or
global_left_right_re.match(wire) or
global_up_down_re.match(wire) or
global_branch_re.match(wire) or
hfsn_entry_re.match(wire) or
hfsn_left_right_re.match(wire) or
hfsn_l2r_re.match(wire) or
hfsn_... |
<gh_stars>0
import * as React from "react";
export type Props = {};
const CornerIndicator: React.FC = () => <th className="Spreadsheet__header" />;
export default CornerIndicator;
|
def line(brief, verbose):
cmd = "consutil show" + (" -b" if brief else "")
run_command(cmd, display_cmd=verbose)
return |
/*
* Copyright (C) 2019 Intel Corporation
* SPDX-License-Identifier: BSD-3-Clause
*/
package com.intel.kms.saml.jaxrs;
import com.intel.dcsg.cpg.io.UUID;
import com.intel.dcsg.cpg.validation.ValidationUtil;
import com.intel.dcsg.cpg.x509.X509Util;
import com.intel.kms.saml.api.Certificate;
import com.intel.kms.saml... |
def _fsck_ext(device):
msgs = {
0: "No errors",
1: "Filesystem errors corrected",
2: "System should be rebooted",
4: "Filesystem errors left uncorrected",
8: "Operational error",
16: "Usage or syntax error",
32: "Fsck canceled by user request",
128: "S... |
// GetPulls is a function handler that retrieves a set of PR's from the DB and writes them with the http.ResponseWriter
func (wrap *Wrapper) GetPulls(w http.ResponseWriter, r *http.Request) {
vars := mux.Vars(r)
repoID, err := strconv.Atoi(vars["repoID"])
if err != nil {
panic(err)
}
var pulls []Pull
err = wrap... |
.
In the present paper we have shown that JB6 and PDV murine skin carcinoma cells, as well as previously described sarcoma B6-4 cells, can revert to a nontumor phenotype. Revertant carcinoma clones could not grow in soft agar conditions and like sarcoma revertants acquired dependence on peptide growth factors, and exh... |
use borsh::{BorshDeserialize, BorshSerialize};
use sha2::{Digest, Sha256};
use solana_program::{
account_info::{next_account_info, AccountInfo},
entrypoint,
entrypoint::ProgramResult,
msg,
program_error::ProgramError,
pubkey::Pubkey,
sysvar::{clock::Clock, Sysvar},
};
use std::collections::hash_map::Defau... |
// WriteTo implements io.WriterTo
func (p *Conn) WriteTo(w io.Writer) (int64, error) {
p.once.Do(func() { p.readErr = p.readHeader() })
if p.readErr != nil {
return 0, p.readErr
}
return p.bufReader.WriteTo(w)
} |
<reponame>sabasayer/enterprise<gh_stars>0
import { EnterpriseApiHelper } from '../enterprise-api.helper';
describe("Enterprise Api Helper ", () => {
global.window = Object.create(window);
Object.defineProperty(window, 'location', {
value: {
host: 'test.com'
}
});
it("shou... |
def forward(self, query, key, value, mask=None):
n_batch = query.size(0)
q = self.linear_q(query).view(n_batch, -1, self.h, self.d_k)
k = self.linear_k(key).view(n_batch, -1, self.h, self.d_k)
v = self.linear_v(value).view(n_batch, -1, self.h, self.d_k)
q = q.transpose(1, 2)
... |
The ironclad CSS Georgia was scuttled by its crew in 1864. Now the civil war wreck is to be raised and preserved to improve access to the port of Savannah
The US navy is preparing to send one if its premier diving teams to Georgia, to help salvage a Confederate warship from the depths of the Savannah river.
Before it... |
<reponame>q4a/fonline<filename>Source/Common/ApplicationHeadless.cpp<gh_stars>100-1000
// __________ ___ ______ _
// / ____/ __ \____ / (_)___ ___ / ____/___ ____ _(_)___ ___
// / /_ / / / / __ \/ / / __ \/ _ \ / __/ / __ \/ __ `/ / __ \/ _ \
// / __/ / /_/ / / /... |
<gh_stars>1-10
//-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2022 <NAME>
// Copyright (c) 2016-2022 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
namespace s3d
{
nam... |
There is no biological requirement for cow's milk. It is nature's perfect food, but only if you are a calf. The evidence of its benefits is overstated, and the evidence of its harm to human populations is increasing.
The white-mustached celebrities paid by the Dairy Council promote the wonders of milk in their "Got Mi... |
/**
* <p>Return the head element for the most recently retrieved page.
* If there is no such element, return <code>null</code>.</p>
*/
protected HtmlHead head() throws Exception {
Iterator elements = page.getChildElements().iterator();
while (elements.hasNext()) {
HtmlElement ... |
Teledentistry as an Effective Tool for the Communication Improvement between Dentists and Patients: An Overview
Teledentistry is an online dental care service that allows patients and dentists to meet in real time, safely, without being at the same location. During the COVID-19 pandemic, real-time videoconferencing ha... |
/**
* Deletes all unitparameters and units for the units in the given profile. WARNING: These SQL
* statements may be very slow to execute. Look at the plan here: 1. SQL to get all Units in a
* profile 2. Iterate over all units in profile and delete parameters for each one. 3. SQL to
* delete all units in a... |
def insert_rows(self, namespace, raw_table_name, rows):
if len(rows) == 0:
return
super(ImportDBMySQL, self)._enter('insert_rows')
table_name = self.convert_raw_to_namespace(namespace, raw_table_name)
packet_size = 1000
num_packets = ((len(rows)-1) // packet_size) + ... |
/**
* Constraint descriptor implementation that only provides the configured attributes.
* This adapter class is needed to enable usage of the message interpolator.
*/
private static class AttributeConstraintDescriptor implements ConstraintDescriptor<Annotation> {
private final Map<String, Object... |
/*
* Copyright 2010-2013 JetBrains s.r.o.
*
* 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 agre... |
<gh_stars>1-10
# USAGE
# python detect_low_contrast_video.py --input example_video.mp4
# import the necessary packages
from skimage.exposure import is_low_contrast
import numpy as np
import argparse
import imutils
import cv2
# construct the argument parser and parse the arguments
ap = argparse.ArgumentParser()
ap.add... |
<filename>src/logics/selector.ts
import { float, List } from '../base/conversion';
import {
VectorLineModifyFlagID,
LinePointModifyFlagID,
VectorStrokeGroup,
VectorStroke,
VectorPoint,
VectorGroupModifyFlagID,
} from '../base/data';
import {
IHitTest_VectorLayerLinePoint, HitTest_LinePoint_... |
It’s official! Years after they were first rumored to be dating, Chloë Grace Moretz has finally confirmed her relationship with Brooklyn Beckham.
“I think the more I don’t make it mysterious the more people don’t care, so yes we’re in a relationship,” the 19-year-old actress confirmed on Watch What Happens Live on Mon... |
Rightwing extremists kill and injure more people in lone wolf attacks than Islamic terrorists acting alone, according to a report by a security thinktank.
The Royal United Services Institute (RUSI) in London says in its report Countering Lone Actor Terrorism that rightwing extremists across Europe present a substantia... |
package ru.otus.kirillov.controllers.sockets.getCacheStats.messages;
import ru.otus.kirillov.cacheengine.stats.CacheStatistics;
import ru.otus.kirillov.utils.CommonUtils;
public class GetCacheStatsUiSuccessRs {
private final String cacheSize;
private final String cacheHit;
private final String cacheMiss;... |
A 65-mile stretch of the Mississippi River remained closed at New Orleans on Monday following a
. Authorities involved in the cleanup and investigation planned a Monday morning conference call as they worked on estimates of how much oil spilled and when the river would re-open, a Coast Guard spokesman, Petty Officer B... |
<reponame>FroHenK/Cynosura.Studio
export class Config {
apiBaseUrl: string;
}
|
// NodeMeta is used to retrieve meta-data about the current node
// when broadcasting an alive message. It's length is limited to
// the given byte size. This metadata is available in the Node structure.
// Implements memberlist.Delegate.
func (d *delegate) NodeMeta(limit int) []byte {
d.mtx.RLock()
defer d.mtx.RUnlo... |
def remove_all_depositions(self):
all_depositions = self.get_deposition()
for dep in all_depositions.json():
self.remove_deposition(dep["id"]) |
## Larry Winget has already helped countless people to get ahead in life. Here's what a few of them have to say about him and his program:
"With Larry's help I got myself out of massive debt, quit my underpaying job, and got my life in order. Larry's harsh manner is a reality check and a swift kick in the rear to get... |
Process development for the enrichment of curcuminoids in the extract of ionic type of NADES
Curcuminoids were successfully extracted from Curcuma zeodaria powder with Natural Deep Eutectic Solvents (NADES) as solvent. Ionic types of NADES such choline chloride-citric acid-water (CCCA-H2O = 1:1:18, mole ratio) and cho... |
"Goddesses With Guns" rally in San Antonio (KSAT/screen grab)
Women were in the minority at a so-called “Goddesses With Guns” rally over the weekend that intended to prove that not all gun lovers were a “bunch of redneck men.”
According to the San Antonio Express-News, a group of women from Houston and “about 40 othe... |
Gerard W. Ostheimer “What’s New in Obstetric Anesthesia” Lecture
EVERY year, the Society for Obstetric Anesthesia and Perinatology celebrates the life and legacy of Gerard Ostheimer, M.D., an obstetric anesthesiologist renowned for his wisdom, his passion for life, and his generosity to the society and the specialty. ... |
There ’ s No Place Like Home : Coordinating Care for Veterans
In VA, care coordination involves the use of telehealth, disease management, and health informatics technologies to enhance and extend care and case management activities. VA is initially focusing its care coordination effort on the home and using home-tele... |
/**
* Use a for loop to print the even numbers between 1 and 50, including the first even number, and the number 50.
* Print each number on a new line.
*/
public class Lesson_24_Activity_Two {
public static void main(String[] params) {
for (int i = 2; i <= 50; i += 2) {
System.out.println(i);
}
}
} |
/**
* Handles {@link Command#ENABLE} via setting the desired state of the Unit and sending
* START command to the Unit if it is not in STARTED state yet.
*/
private class EnableHandler implements CommandHandler {
@Override
public boolean handles(Command c) {
return c == ENABLE... |
package apps
import (
"github.com/cloudfoundry-incubator/cf-test-helpers/cf"
"github.com/cloudfoundry-incubator/cf-test-helpers/workflowhelpers"
. "github.com/cloudfoundry/cf-acceptance-tests/cats_suite_helpers"
"github.com/cloudfoundry/cf-acceptance-tests/helpers/app_helpers"
"github.com/cloudfoundry/cf-acceptan... |
// Size return a uint64 measure of the filo size in bytes.
func (f *filo) Size() uint64 {
if f.read != nil {
res := f.read(f.h)
return uint64(res.Len())
}
return 0
} |
/**
* A comparator for flaws and their resolvers that uses lifted abstraction hierarchies.
*
* The ordering places unsupported databases first. Other flaws are left unordered
* Unsupported databases are ordered according to their level in the abstraction hierarchy.
*
*/
public class AbsHierarchyComp implements Fl... |
// Known reports whether an equipment is known
func (eq Equipment) Known() bool {
for _, k := range knownEquipments {
if eq == k {
return true
}
}
return false
} |
/** @file
* @brief Internal header for Bluetooth BASS.
*/
/*
* Copyright (c) 2019 Bose Corporation
* Copyright (c) 2021 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/types.h>
#include <bluetooth/conn.h>
#include <bluetooth/audio/bass.h>
#define BT_BASS_SCAN_STATE_NOT_SC... |
//package eu.eventsotrm.core.apt.event;
//
//import static eu.eventsotrm.sql.apt.Helper.writeGenerated;
//import static eu.eventsotrm.sql.apt.Helper.writeNewLine;
//import static eu.eventsotrm.sql.apt.Helper.writePackage;
//
//import java.io.IOException;
//import java.io.Writer;
//import java.util.ArrayList;
//import j... |
/**
* @author Tiago Ribeiro
*/
public class InMemoryDepositRepository extends InMemoryDomainRepository<String, Deposit> implements DepositRepository {
static {
InMemoryInitializer.init();
}
@Override
public Deposit depositById(String depositCode) {
return null;
}
} |
import { DWORD } from "../user32/win_def";
export const errHandlingApi = {
GetLastError: [DWORD, []]
};
|
Transplantation for the treatment of type 1 diabetes.
Transplantation of pancreatic tissue, as either the intact whole pancreas or isolated pancreatic islets has become a clinical option to be considered in the treatment of patients with type 1 insulin-dependant diabetes mellitus. A successful whole pancreas or islet ... |
<filename>src/Dispositivo/dispositivo-mensajes/dispositivo.mensajes.ts<gh_stars>0
export const mensajesDispositivo = {
encontrarUno: 'Id Dispositivo erroneo',
crearUno: 'Dispositivo inválida',
actualizarUno: 'Error actualizando Dispositivo',
eliminarUno: 'Error al eliminar una Dispositivo',
}; |
<filename>packages/hydrooj/src/model/training.ts
import { flatten } from 'lodash';
import { FilterQuery, ObjectID } from 'mongodb';
import { TrainingAlreadyEnrollError, TrainingNotFoundError } from '../error';
import { TrainingDoc, TrainingNode } from '../interface';
import * as document from './document';
export func... |
from plumber import message
import unittest
class TestMessage(unittest.TestCase):
def setUp(self):
print("Hello")
pass
def test_encode(self):
msg = message.PlumbMsg(
src="test",
dst="test",
type="text",
attrs=dict(),
ndata=1... |
// Package loginv1 provides primitives to interact with the openapi HTTP API.
//
// Code generated by github.com/deepmap/oapi-codegen version v1.8.3 DO NOT EDIT.
package loginv1
import (
externalRef0 "github.com/absurdlab/tiga-sdk/tiga-go-sdk/apiv1/common"
)
// AuthenticationCallback defines model for Authentication... |
<reponame>ddabble/Risky-Risk<filename>core/src/no/ntnu/idi/tdt4240/observer/TroopObserver.java
package no.ntnu.idi.tdt4240.observer;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.Texture;
import no.ntnu.idi.tdt4240.model.data.Territory;
import no.ntnu.idi.tdt4240.util.Territory... |
import * as d3 from "d3"
import { EntityData, EntityKind } from '@framework/Reflection'
import * as Finder from '@framework/Finder'
import { Point, Rectangle, calculatePoint, wrap, forceBoundingBox } from '../Utils'
export interface TableInfo extends ITableInfo {
typeName: string;
mlistTables: MListTableInf... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.