content stringlengths 10 4.9M |
|---|
<gh_stars>0
/*
* This file was automatically generated by EvoSuite
* Wed Nov 11 13:31:30 GMT 2020
*/
package org.quickserver.net.server;
import org.junit.Test;
import static org.junit.Assert.*;
import java.net.SocketAddress;
import java.nio.channels.SocketChannel;
import org.evosuite.runtime.EvoRunner;
import org.... |
/**
* Tests valid usage of multiple dynamic parameters, including the fix for
* FRG-72.
*/
public void testMultipleDynamicParameters2()
throws Exception
{
String sql =
"select empid from sales.emps where deptno >= ? and deptno <= ?";
preparedStmt = connection.prepa... |
<gh_stars>1-10
import { ApiResponseValidator } from '../../src/validation/ApiResponseValidator';
import { ApiResponse } from '../../src/models/answersapi/ApiResponse';
import { AnswersError } from '../../src/models/answersapi/AnswersError';
const apiResponseValidator = new ApiResponseValidator();
it('A response with ... |
/* ----------------------------------------------------------------------------
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
* Atlanta, Georgia 30332-0415
* All Rights Reserved
* Authors: <NAME>, et al. (see THANKS for the full author list)
* See LICENSE for the license information
* ------------... |
<gh_stars>1-10
/* soapmywebService.cpp
Generated by gSOAP 2.8.106 for rpcapi.h
gSOAP XML Web services tools
Copyright (C) 2000-2020, <NAME>, Genivia Inc. All Rights Reserved.
The soapcpp2 tool and its generated software are released under the GPL.
This program is released under the GPL with the additional exemption... |
<reponame>heisexyyoumo/LifeHelper
package com.example.heiseyoumo.smartbutler.service;
/**
* 实现后台每8个小时更新一次天气
*/
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.IBinder;
import and... |
<filename>boards/arm/stm32/nucleo-l152re/src/nucleo-l152re.h
/****************************************************************************
* boards/arm/stm32/nucleo-l152re/src/nucleo-l152re.h
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE fil... |
Evolution of parental ITS regions of nuclear rDNA in allopolyploid Aegilops (Poaceae) species.
The genus Aegilops comprises approximately 25 diploid, tetraploid and hexaploid species, in which the genome types of all allopolyploids involve either U or D genome, or both of them. The internal transcribed spacer (ITS) re... |
<reponame>sivailango/react-starter-k
import React from 'react';
import Select from 'react-select';
// import classNames from 'classnames';
import InputHint from './forms/InputHint';
// import InputProps from 'models/InputProps';
import RequiredField from './forms/RequiredField';
interface State {
isRequired?: bo... |
Framing ERP Success from an Information Systems Failure Perspective: A Measurement Endeavor
To the best of our knowledge, extant definitions of Enterprise Resource Planning ERP success are not comprehensive, and they do not address all of the most relevant dimensions of this complex issue. Consequently, current ERP su... |
/**
* Read the microsecond-resolution timer on the FPGA.
*
* @return The current time in microseconds according to the FPGA (since FPGA
* reset).
*/
uint64_t HAL_GetFPGATime(int32_t* status) {
if (!global) {
*status = NiFpga_Status_ResourceNotInitialized;
return 0;
}
uint64_t upper1 = global->readLoc... |
def detect_buffer_model(duthost):
global BUFFER_MODEL_DYNAMIC
buffer_model = duthost.shell('redis-cli -n 4 hget "DEVICE_METADATA|localhost" buffer_model')['stdout']
BUFFER_MODEL_DYNAMIC = (buffer_model == 'dynamic') |
// Write writes a buffer of MIDI events to the output stream.
func (s *Stream) Write(events []Event) error {
size := len(events)
if size > maxEventBufferSize {
return ErrMaxBuffer
}
buffer := make([]C.PmEvent, size)
for i, evt := range events {
var event C.PmEvent
event.timestamp = C.PmTimestamp(evt.Timestam... |
def update_fiberassign_header(
fiberassignfn,
args,
mydirs,
hdr_survey,
hdr_faprgrm,
faflavor,
ebv,
obscon,
fascript,
nowtime=datetime.now(tz=timezone.utc).isoformat(timespec="seconds"),
log=Logger.get(),
step="",
start=time(),
):
if faflavor != "{}{}".format(hdr_... |
#include<stdio.h>
int main()
{
int n,k;
scanf("%d %d",&n,&k);
int max=n*n/2+(n%2);
if(k<=max)
{
printf("YES\n");
for(int i=0;i<n;i++)
{
for(int j=0;j<n;j++)
{
if(k>0&&(i+j)%2==0)
{
k=k-1;
printf("L");
}
else
printf("S");
}
printf("\n");
}
... |
Data parsing in mass spectrometry imaging using R Studio and Cardinal: A tutorial
Mass spectrometry imaging (MSI) has emerged as a rapidly expanding field in the MS community. The analysis of large spectral data is further complicated by the added spatial dimension of MSI. A plethora of resources exist for expert user... |
<reponame>ucirello/snippetsd<gh_stars>1-10
// Copyright 2018 github.com/ucirello
//
// 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
//
// Unl... |
/**
* Process a user log-in request
*/
private void processLogin()
{
String userid = usernameField.getText();
String password = passwordField.getText();
usernameField.setText( "" );
passwordField.setText( "" );
KalumetConsoleApplication.getApplication().setFocusedCo... |
package endpoint
import (
"context"
"errors"
"github.com/integration-system/isp-kit/grpc"
"github.com/integration-system/isp-kit/grpc/isp"
"google.golang.org/grpc/metadata"
)
func ContextParam() ParamMapper {
return ParamMapper{
Type: "context.Context",
Builder: func(ctx context.Context, message *isp.Messa... |
Workplace Stress in Portuguese Oncology Nurses Delivering Palliative Care: A Pilot Study
Oncology nurses often face complex end-of-life issues, underlining their need for specific training in palliative care. In this context, nurses experience several emotional and psychological dilemmas, which are often difficult to ... |
#pragma once
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
// UnityEngine.Camera/CameraCallback
struct CameraCallback_t1908940458;
#include "UnityEngine_UnityEngine_Behaviour3120504042.h"
#ifdef __clang__
#pragma clang diagnostic push
#prag... |
By DeciBio • April 11, 2014
Los Angeles, CA April 11th 2014 – Several exciting themes were presented at this year’s American Association of Cancer Researchers (AACR) meeting. Large pharmaceutical companies including Pfizer, Eli Lilly and Merck presented some exciting data on their oncology pipeline (CDK 4/6 inhibitior... |
def launch_worker(lambda_name, task_id, config, num_workers, ps):
log = logging.getLogger("cirrus.automate.launch_worker")
log.debug("Launching Task %d." % task_id)
payload = {
"config": config,
"num_workers": num_workers,
"ps_ip": ps.public_ip(),
"ps_port": ps.ps_port(),
... |
/**
* Writes a long to the provided {@link OutputStream}.
* NB: This code is very similar to the code in the {@link CompactRawSerialisationUtils#writeLong(long)}
* method. This violates the DRY principle, but the alternative is to implement the code in the
* {@link CompactRawSerialisationUtils#write... |
/*! Change current keyboard type.
\param index it can be 0 or 1. 0 - default ime, 1 - security ime.
\param value the hash code of keyboard type
\return ErrorCode::NO_ERROR no error
\return ErrorCode::ERROR_SETTING_SAME_VALUE the current value is same as the one in the system.
*/
int PerUserSession::... |
// OpenCollectionURL opens a docstore.Collection based on u.
func (o *URLOpener) OpenCollectionURL(ctx context.Context, u *url.URL) (*docstore.Collection, error) {
q := u.Query()
nameField := q.Get("name_field")
if nameField == "" {
return nil, errors.New("open collection %s: name_field is required to open a colle... |
The Impact of Foreign Trade on Markup Size
The aim of this paper is to investigate the procompetitive effects of foreign trade on domestic firms' performance by considering the determinants of markup size using a dynamic panel of Slovenian manufacturing firms from 1995 to 2004. We examine how domestic and foreign firm... |
/**
* Copies extra GIS files.
*
* @param destDir The directory to copy files to
* @param extension The extension of the files to copy
* @throws SimpplleError
*/
private static void copyGisExtraFiles(File destDir, String extension) throws SimpplleError {
try {
File tmpDir = new File(des... |
/*
* Copyright ConsenSys AG.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing... |
#158A - Next Round
N,index = list(map(int,input().split()))
Arr = list(map(int,input().split()))
Count = 0
M = Arr[index-1]
K = N-1
while K >= 0:
if Arr[K] >= M and Arr[K] != 0:
Count += 1
K -= 1
print(Count) |
About the undecidability of program equivalence in finitary languages with state
We show how game semantics can be employed to prove that program equivalence in finitary Idealized Algol with active expressions is undecidable. We also investigate a notion of representability of languages by terms and show that finitary... |
<reponame>brandon-leapyear/SublimeHaskell
"""
The `hsdev` backend.
"""
from functools import reduce
import io
import json
import os
import os.path
import pprint
import re
import subprocess
import threading
import sublime
import SublimeHaskell.hsdev.callback as HsCallback
import SublimeHaskell.hsdev.client as HsDevCl... |
<reponame>licarth/sia-aero
import * as Either from "fp-ts/lib/Either";
import { pipe } from "fp-ts/lib/function";
import { icaoCodeCodec } from "./IcaoCode";
describe("IcaoCode", () => {
it("should return an error when not a 4 letter code", () => {
expect(
Either.isLeft(pipe("NotAnIcaoCode", icaoCodeCodec.... |
Videolectures ingredients that can make analytics effective
Videolectures over the Internet started at the turn of the century and became more and more popular, until they recently obtained a wide echo in the form of Massive Open On-Line Courses (MOOCs). Although videolecture usage data have always been important, in ... |
<gh_stars>1-10
package de.is24.util.monitoring.keyhandler;
public interface KeyHandler {
String handle(String name);
}
|
import React, { useState, useCallback, useRef } from "react";
import { useStore, StoreProvider, createStore } from "../src";
// 1. Define your stores as a custom hook.
// Any hook supported by React is supported here!
function CounterStore(initialValue: number) {
const [value, setValue] = useState(initialValue);
... |
/**
* OData data transfer object implementation.
*/
@EdmComplex(namespace = "ODataDemo")
public class ODataVersionPart {
private static final int HASH_CODE_MULTIPLIER = 31;
@EdmProperty(nullable = false)
private int number = 0;
@EdmProperty
private String modifier;
@EdmProperty(nullable =... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/service/endpoint/v3/eds.proto
package envoy_service_endpoint_v3
import (
context "context"
fmt "fmt"
_ "github.com/cilium/proxy/go/envoy/annotations"
v3 "github.com/cilium/proxy/go/envoy/service/discovery/v3"
_ "github.com/cncf/udpa/go/udpa/annota... |
// GetDefinitionDefaultSpec returns the default spec of Definition with given kind. This may be implemented with cue in the future.
func GetDefinitionDefaultSpec(kind string) map[string]interface{} {
switch kind {
case v1beta1.ComponentDefinitionKind:
return map[string]interface{}{
"workload": map[string]interfa... |
// FindAllNotes - Query Notex from database
func FindAllNotes() []Notex {
cursor, err := db.Collection(notesColl).Find(ctx, bson.M{})
if err != nil {
log.Fatal(err)
}
notesResult := []Notex{}
note := Notex{}
for cursor.Next(ctx) {
cursor.Decode(¬e)
notesResult = append(notesResult, note)
}
cursor.Close... |
Bleaching using 30% hydrogen peroxide and sodium hydrogen carbonate.
This study investigated the bleaching efficacy of a mixture of sodium hydrogen carbonate (NaHCO(3)) and 30% hydrogen peroxide (H(2)O(2)), the latter being an active ingredient in in-office bleaching products. A commercially available 35% H(2)O(2)-bas... |
Sports
Joakim Noah faces new reality as Knicks bench him again
TORONTO — Joakim Noah admits he’s not the same player he was in 2014, when he was first team All-NBA and the Defensive Player of the Year. But the center said he still believes he can contribute to the club.
Noah chose his words carefully, admitting he’s... |
Improved sphingolipidomic approach based on ultra-high performance liquid chromatography and multiple mass spectrometries with application to cellular neurotoxicity.
The emerging field of sphingolipidomics calls for accurate quantitative analyses of sphingolipidome. Existing analytical methods for sphingolipid (SPL) p... |
<reponame>ONSdigital/dp-renderer<gh_stars>0
package helper_test
import (
"strings"
"testing"
"github.com/ONSdigital/dp-renderer/helper"
. "github.com/smartystreets/goconvey/convey"
)
func mockAssetFunction(name string) ([]byte, error) {
if strings.Contains(name, ".cy.toml") {
return []byte("[Foo]\ndescription... |
<filename>cmd/cfn-format/main.go
package main
import (
"fmt"
"io/ioutil"
"os"
"strings"
"github.com/aws-cloudformation/rain/cfn"
"github.com/aws-cloudformation/rain/cfn/format"
"github.com/aws-cloudformation/rain/cfn/parse"
"github.com/andrew-d/go-termutil"
"github.com/spf13/pflag"
)
var usage = `Usage: cf... |
// RunCount returns the total number of times the program was called.
//
// Can return 0 if the collection of statistics is not enabled. See EnableStats().
// The bool return value indicates whether this optional field is available.
func (pi *ProgramInfo) RunCount() (uint64, bool) {
if pi.stats != nil {
return pi.st... |
def parse_block(self, block: BlockNode) -> None:
func = self.func_lookup(block)
if func and func.addr == block.addr:
self.raw_result.append(FuncComment(block.function))
self.raw_result.append(func)
bs = BlockStart(block, func, self.project)
self.raw_result.append(... |
/// Return an Iterator that yields all Nodes matching the filter
/// conditions.
pub fn select<'a>(&'a self, memo: &'a Memo) -> impl Iterator<Item=&'a Node> {
// stepwise selection and filtering
// (1) check for node type is done by selection of nodes
let nodes = memo.node_iterator(self.node_typ... |
<gh_stars>1000+
#pragma once
#include <utility>
#include <vector>
#include "../dxvk/dxvk_resource.h"
#include "../util/com/com_guid.h"
#include "../util/com/com_object.h"
#include "d3d11_buffer.h"
#include "d3d11_texture.h"
namespace dxvk {
class CubinShaderWrapper : public ComObject<IUnknown> {
public:
... |
import { Controller } from '@app/protocols';
import { DatabaseTransactionDecorator } from '@app/decorators';
import { makePostgresConnection } from '@main/factories/connection'
export const makePostgresTransactionDecorator = (controller: Controller): DatabaseTransactionDecorator => {
return new DatabaseTransactionDe... |
A couple of weeks back Daniel XIII was kind enough to share with me this fantastic fan art posted over at Comic Art Fans. It gives us a glimpse of what a team-up might look like with Dave Steven’s The Rocketeer and Republic Pictures serial hero Commando Cody! I am not sure what manner of menace must have emerged that w... |
def create_default_randomizer_qbb() -> DomainRandomizer:
from pyrado.environments.pysim.quanser_ball_balancer import QBallBalancerSim
dp_nom = QBallBalancerSim.get_nominal_domain_param()
return DomainRandomizer(
NormalDomainParam(
name="gravity_const", mean=dp_nom["gravity_const"], std=d... |
<gh_stars>10-100
import { UndelegationType } from '../../../../types';
export type ItemType = Override<UndelegationType, { delegator: AvatarName }>
|
/**
* Denne klassen tar seg av login-siden.
*/
public class LogInController extends Controll{
private MainPageController mainPageController;
@FXML
private TextField textField;
@FXML
private Text loginStatus;
/**
* @param mainPageController kontroller for mainPage.fxml.
* @see Ma... |
/**
* Serialize the table into a string.
*
* The format of the string is as follow:
* '[' numEntries ',' baseStringStart ',' baseStringEnd ']' RawString
*
* RawString = A concatenated string containing all the stored data in order.
*/
public String serialize() {
StringBuffer serializedIndex... |
def work_order_receipt_update_retrieve(self, work_order_id,
updater_id,
update_index, id=None):
pass |
/**
* real test by single Redis
*/
public class RealSingleRedisLockTest {
private static Logger logger = LoggerFactory.getLogger(RealSingleRedisLockTest.class);
private static ExecutorService executorServicePool;
private static RedisLock redisLock;
private static JedisPool jedisPool;
public ... |
/**
* Using this as a bridge between tested legacy Ignite logic and the new code base
* This will be converted to a {@link reactor.core.publisher.Flux} style architecture vs implementing {@link Observer}
* Created by Navid Mitchell on 3/29/17.
*/
public class IgniteContinuousQueryObserver<K, V> implements Observer<... |
Julius Caesar Aranzi (Giulio Cesare Aranzio, Arantius) (1529/1530 – April 7, 1589) was a leading figure in the history of the science of human anatomy.
He was born in Bologna, the son of Ottaviano di Jacopo and Maria Maggi. Owing to the poverty of the family, he studied with his uncle Bartolomeo Maggi, (1477-1552), a ... |
{-# LANGUAGE OverloadedStrings, NamedFieldPuns #-}
module Calc where
import Data.Map (Map, empty, insert, (!))
import Data.String (IsString(..))
import Data.Text (Text)
import Data.Attoparsec.Expr
import Data.Attoparsec.Text
import Control.Applicative ((<|>))
type Sheet = Map Coord Cell
data Coord = Coord { col :: Int... |
<filename>extensions.go
package gql
import "context"
type Extension interface {
Init(ctx context.Context, p Params) context.Context
GetName() string
Call(ctx context.Context, e ExtensionEvent, args interface{})
Result(ctx context.Context) interface{}
}
type ExtensionEvent uint
const (
EventParseStart Extension... |
//TODO: Check to see if file is required
protected boolean validateFields() {
boolean fieldsValid = true;
StringBuilder message = new StringBuilder();
int i = 0;
for(JTextField fileField : fileFields) {
if(fileField.getText() == null || fileField.getText().isEmpty()) {
message.append("Please enter a(n)... |
A new approach for achieving traffic-exchange localization in P2P-based content distribution
Due to the fact that P2P applications have dominantly accounted for the entire Internet traffic, how to efficiently manage P2P traffic has become increasingly important. It has been recently proposed that the underlying networ... |
A federal judge is asking prosecutors to bring criminal contempt charges against Arizona Sheriff Joe Arpaio. Here's why. (Reuters)
A darling of the far right and a longtime adversary of civil rights groups and immigration activists, “America’s toughest sheriff,” will soon face Justice Department lawyers in Washington ... |
<gh_stars>1-10
use pyo3::prelude::*;
/// Clean HTML with a conservative set of defaults.
#[pyfunction]
fn clean(src: &str) -> PyResult<String> {
Ok(ammonia::clean(&src))
}
/// Turn an arbitrary string into unformatted HTML.
#[pyfunction]
fn clean_text(src: &str) -> PyResult<String> {
Ok(ammonia::clean_text(sr... |
/// No-op function analysis.
class NoOpFunctionAnalysis : public AnalysisInfoMixin<NoOpFunctionAnalysis> {
friend AnalysisInfoMixin<NoOpFunctionAnalysis>;
static AnalysisKey Key;
public:
struct Result {};
Result run(Function &, FunctionAnalysisManager &) { return Result(); }
static StringRef name() { return "... |
/**
* Evaluation of Boolean expressions. This function implements
* a short-circuit evaluation. The second operand is still a tree
* and is only evaluated if the value of the expression cannot be
* determined by the first operand.
* @param type Type of operator (token).
* @param v First op... |
<reponame>asottile/setup-py-upgrade<filename>setup_py_upgrade.py
import argparse
import ast
import configparser
import io
import os.path
from typing import Any
from typing import Dict
from typing import Optional
from typing import Sequence
METADATA_KEYS = frozenset((
'name', 'version', 'url', 'download_url', 'proj... |
<reponame>rjw57/tiw-computer
// license:BSD-3-Clause
// copyright-holders:<NAME>
/*******************************************************************************
primo.c
Functions to emulate general aspects of Microkey Primo computers
(RAM, ROM, interrupts, I/O ports)
<NAME>
************************... |
// find the Most Likely Cell.
private GeoCell findMLC(
Map<String, GeoCell> cellMap, boolean confidenceFlag) {
cellMap = Utils.sortByMLCValues(cellMap);
GeoCell mlc = null;
if (!cellMap.isEmpty()){
String mlcId = cellMap.keySet().toArray()[0].toString();
mlc = cellMap.get(mlcId);
if(confidenceFlag)
... |
/**
* Checks if vector is in PathNode list.
*
* @param list List to check.
* @param search Vector3 to search for.
* @return boolean result.
*/
protected boolean contains(List<PathNode> list, Vector3<Integer> search) {
if (list == null || list.isEmpty() || search == null) return false;
for (PathNode node... |
/*
* Implements glPixelTransfer[fi] whether called immediately or from a
* display list.
*/
void gl_PixelTransferf( GLcontext *ctx, GLenum pname, GLfloat param )
{
if (INSIDE_BEGIN_END(ctx)) {
gl_error( ctx, GL_INVALID_OPERATION, "glPixelTransfer" );
return;
}
switch (pname) {
case GL_MAP_... |
Medieval people really went through some shit. Suppression by the church, barbarian invasions, the crusades, unthinkable torture, the Black Plague—it was unpleasant.
To help us grasp just how bad it was, let’s take a look at the art of the time to check things out first hand. All the below is actual medieval art, pain... |
/**
* A POJO for game scores.
*/
private static class GameScore implements Serializable {
private static final long serialVersionUID = 1089454399729015529L;
private String playerId;
private int score;
GameScore() {
this.playerId = StreamletUtils.randomFromList(PLAYERS);
this.score = T... |
<filename>src/employee/services/employee.service.ts
import { ERROR_MESSAGE } from '@/core';
import { Department, RELATION_WITH } from '@/entities';
import { DepartmentRepository, EmployeeRepository } from '@/repository';
import {
BadRequestException,
Injectable,
NotFoundException,
} from '@nestjs/common';
import ... |
<gh_stars>1-10
// Copyright (c) The Diem Core Contributors
// SPDX-License-Identifier: Apache-2.0
use crate::unit_tests::testutils::compile_module_string;
#[test]
fn compile_module_with_functions() {
let code = String::from(
"
module 0x27.Foobar {
struct FooCoin { value: u64 }
... |
<filename>types/plugin-resolve-options.ts<gh_stars>1-10
// deno-lint-ignore no-empty-interface
export interface PluginResolveOptions {
// TODO
} |
<reponame>takuyaa/yada
/// UnitID is an alias of `usize`.
pub type UnitID = usize;
/// The size of `Unit` (4).
pub const UNIT_SIZE: usize = std::mem::size_of::<u32>();
/// An unit represents an element in a double-array.
#[derive(Copy, Clone)]
pub struct Unit(u32);
impl Unit {
/// Creates a new Unit.
#[inlin... |
<gh_stars>0
/* * * * * * * * * * * * *\
|* ╔═╗ v0.4 *|
|* ╔═╦═╦═══╦═══╣ ╚═╦═╦═╗ *|
|* ║ ╔═╣ '╔╬═╗╚╣ ║ ║ '║ *|
|* ╚═╝ ╚═══╩═══╩═╩═╣ ╔═╝ *|
|* * * * * * * * * ╚═╝ * *|
|* Manipulation tool for *|
|* ESRI Shapefiles *|
|* * * * * * * * * * * * *|
|* http://www.npolar.no/ *|
\* * * * * * * * * * * * */
... |
The Mayor of Calais has banned food distribution to migrants in the city in a bid to prevent yet another ‘Jungle’ migrant camp from springing up.
Visiting Calais on Wednesday, the French Interior Minister, Bruno Le Roux, said no new shelters would be set up in the vicinity to avoid drawing migrants back to the port ci... |
// GetLocales lists the translation locales available for the account.
// https://developer.zendesk.com/rest_api/docs/support/locales#list-locales
func (z *Client) GetLocales(ctx context.Context) ([]Locale, error) {
var data struct {
Locales []Locale `json:"locales"`
}
body, err := z.get(ctx, "/locales.json")
if ... |
Design, Synthesis, and Biological Evaluation of 1,2-Dihydroisoquinolines as HIV-1 Integrase Inhibitors.
6-Endo-dig-cyclization is an efficient method for the synthesis of 1,2-dihydroisoquinolines. We have synthesized few 1,2-dihydroisoquinolines having different functionality at the C-1, C-3, C-7, and N-2 positions fo... |
def binary_mask(self):
out = type(self)()
out.set_propoerty('long_name', 'binary_mask')
out.set_data(self.data.binary_mask(), copy=False)
return out |
Neurological Significance of Small Esodeviations
A small esodeviation detected in an adult may represent an acquired event caused by a number of different mechanisms. These deviations may be comitant or incomitant, occur with or without diplopia and appear in association with other ocular or neurological findings or i... |
<gh_stars>1-10
#!/usr/bin/env python
# -*- coding: utf-8 -*
from functools import reduce
from core.utils import CleepDesktopModule
class Config(CleepDesktopModule):
"""
Config module. Handles application configuration
"""
def __init__(self, context, app_config, debug_enabled):
"""
Con... |
/**
* Copyright (c) 2009-2010, Yahoo! Inc. All rights reserved.
* Code licensed under the BSD License:
* http://searchmarketing.yahoo.com/developer/docs/license.txt
*/
package com.yahoo.messenger.manager;
import com.yahoo.messenger.beans.PropertyChangeListener;
import com.yahoo.messenger.beans.PropertyChangeSuppo... |
/**
* GeometricCuboid
*
* This problem is from Jetbrains Academy Knowledge verification - Constructor
*
* @author Jason Zhang
* @version 1.0
* @since 2022-04-24
*
* Problem statement:
* Geometric cube
* You have a class GeometricCuboid with a 3-arguments constructor:
* public GeometricCuboid(int wi... |
def _join_features(self):
features = self.features.copy()
metadata = self.dataset.metadata
photoz = metadata.hostgal_photoz.values.astype(float)
photoz_err = metadata.hostgal_photoz_err.values.astype(float)
features['hostgal_photoz'] = photoz
features['hostgal_photoz_err'... |
Cea- Monoclonal Antibody as a Marker of Myeloid Tissue in Bone Marrow Biopsies
leukemia, acute lymphoblastic leukemia, undifferentiated acute leukemia, hairy-cell leukemia, Waldenstrom's macroglobulinemia, myeloma, lymphoma, Hodgkin's disease and carcinoma metastases were negative (Fig. la). In cases of chronic myeloi... |
s=set()
sc=set()
t=set()
tc=set()
ms=[]
mt=[]
for letter in input():
if letter==letter.lower():
s.add(letter)
else:
sc.add(letter.lower())
if letter not in ms:
ms.append(letter)
ms.append(1)
else:
ms[ms.index(letter)+1]+=1
for letter in input():
... |
<reponame>MayconFelipeA/sampvoiceatt<gh_stars>100-1000
/*
Plugin-SDK (Grand Theft Auto San Andreas) source file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#include "CText.h"
#define VAR_TheText 0xC1B340;
#defin... |
/**
* Apply the suggested game options
*
* @param id Suggested game options id
*/
public void applySuggestedOptions(String id) throws BaseCahHandler.CahException {
SuggestedGameOptions options = suggestedGameOptions.remove(id);
if (options == null) throw new BaseCahHandler.CahExcepti... |
// ValidateDetails ... Checks for valid length and then valid regex
func validateField(name string, value string, validationConf *ValidationConfiguration) string {
length := utf8.RuneCountInString(value)
if length < validationConf.MinLength || length > validationConf.MaxLength {
return "Parameter: Name(" + name + "... |
/* Copyright (c) 2010-2014, The Linux Foundation. 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 version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the... |
/// Construct a 16-D long vector from sixteen elements.
inline cl_long16 long16(cl_long a0, cl_long a1, cl_long a2, cl_long a3, cl_long a4, cl_long a5, cl_long a6, cl_long a7, cl_long a8, cl_long a9, cl_long a10, cl_long a11, cl_long a12, cl_long a13, cl_long a14, cl_long a15)
{
cl_long16 r;
r.s[0] = a0; r.s[1]... |
The FDA warned Kellogg to clean up the listeria it found at a cookie plant… (Evan-Amos / Wikimedia Commons )
FDA to Kellogg: One of your facilities is contaminated with listeria. Clean it up.
That’s the gist of a warning letter, dated June 7, the Food and Drug Administration sent to Kellogg after a February inspectio... |
# Import Python libraries
import math
from pycompss.api.api import compss_wait_on
from utilities import UnfolderManager
def main():
N=4
ufManager_1 = UnfolderManager(4,2)
ufManager_2 = UnfolderManager(8,2)
#It should be got from groups property of the object
list_1 = ufManager_1.UnfoldNValues_Tas... |
def save_metadata(self):
with open(os.path.join(self.output_dir, "metadata.json"), "w") as path:
json.dump(self.metadata, fp=path, ensure_ascii=False, indent=4,
sort_keys=False, allow_nan=True) |
<reponame>DaviRain-Su/leetcode_solution<gh_stars>0
pub mod stack {
type Link<T> = Option<Box<StackNode<T>>>;
#[derive(Debug)]
pub struct Stack<T> {
top: Link<T>,
}
#[derive(Debug, Clone)]
struct StackNode<T> {
val: T,
next: Link<T>,
}
// impl <T> StackNode<T> {... |
Venezuela have conceded 11 goals in their first four qualifying group matches
West Brom striker Salomon Rondon is among 15 Venezuela players who have threatened to quit unless their federation's (FVF) directors resign.
The group is upset with how they "have been treated" and how "the World Cup qualifying project has ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.