content stringlengths 10 4.9M |
|---|
/**
* An error occurred while executing a fix.
*/
class FixError extends Error {
private final Fix origin;
public FixError(Fix f, Exception e, String msg) {
super(e, msg);
origin = f;
}
public Fix getOrigin() {
return origin;
}
... |
/*
* FSExceptionHandler.cpp
* Transform SWF
*
* Created by smackay on Tue Feb 18 2003.
* Copyright (c) 2001-2003 Flagstone Software Ltd. All rights reserved.
*
* This file contains Original Code and/or Modifications of Original Code as defined in
* and that are subject to the Flagstone Software So... |
<reponame>chandu1988/https-github.com-cdowney-sf-messaging-client<filename>src/main/java/io/cdsoft/sf/messaging/api/consumer/MapEventConsumer.java
package io.cdsoft.sf.messaging.api.consumer;
import java.util.Map;
public interface MapEventConsumer extends EventConsumer<Map<String, Object>> {
}
|
#![deny(unused_must_use)]
//! Integration tests of the Subset protocol.
extern crate env_logger;
extern crate hbbft;
#[macro_use]
extern crate log;
extern crate rand;
#[macro_use]
extern crate serde_derive;
#[macro_use]
extern crate rand_derive;
extern crate threshold_crypto as crypto;
mod network;
use std::collecti... |
def decode(self, inputs):
x = self.decoder_hidden1(inputs)
x = self.decoder_hidden1_dropout(x)
x = self.decoder_output(x)
x = self.decoder_output_dropout(x)
return x |
// Copyright 2015-present 650 Industries. All rights reserved.
#import <Foundation/Foundation.h>
#import <ABI32_0_0EXFileSystem/ABI32_0_0EXFileSystem.h>
#import <ABI32_0_0EXCore/ABI32_0_0EXInternalModule.h>
#import <ABI32_0_0EXFileSystemInterface/ABI32_0_0EXFileSystemManagerInterface.h>
NS_ASSUME_NONNULL_BEGIN
@inte... |
The answer is no. In fact, the Bible says that it is right for people to be anxious to please the ones they love.—1 Corinthians 7:32-34; 2 Corinthians 11:28.
Also, let’s face it—anxiety can be a powerful motivator. For example, suppose you will be taking a test at school next week. Anxiety might compel you to stu... |
Yanomami shaman publishes unique book 'The Falling Sky'
November 2, 2013
The Falling Sky is a unique book by Yanomami shaman Davi Kopenawa. © Harvard University Press
In the first book ever written by a Yanomami Indian, Davi Kopenawa – shaman and leading spokesman for his people – describes the rich culture, history... |
def _split_rules_into_passes(self):
first_pass = []
second_pass = []
for rule in self.rules:
if self._is_first_pass_rule(rule):
first_pass.append(rule)
else:
second_pass.append(rule)
return first_pass, second_pass |
<gh_stars>1-10
package mxml
import (
"encoding/xml"
"strings"
)
// Root is the structure for root MusicXML element.
type Root struct {
XMLName xml.Name `xml:"root"`
RootAlter []RootAlter `xml:"root-alter,omitempty"`
RootStep []RootStep `xml:"root-step,omitempty"`
IValue string `xml:",chardata"`
}
// ToMXML... |
/**
* A simple {@link Fragment} subclass.
*/
public class WebViewSimpleFragment extends StickHeaderWebViewFragment {
public static WebViewSimpleFragment newInstance() {
WebViewSimpleFragment fragment = new WebViewSimpleFragment();
return fragment;
}
public static WebViewSimpleFragment ne... |
<filename>src/subtopics/subtopics.controller.ts
import {
Controller,
Get,
Param,
Post,
Delete,
Put,
Body,
} from '@nestjs/common';
import { CreateSubtopicDto } from './dto/create-subtopic.dto';
import { UpdateSubtopicDto } from './dto/update-subtopic.dto';
import { Subtopic } from './subtopics.entity';
i... |
colors = list(int(x) for x in input().split())
color_set = {"Aaa"}
for elements in colors:
color_set.add(elements)
available = len(color_set) - 1
print(4 - available)
|
class Testing {
public static void main(String[] args){
for (int i = 0; i < 10;) {
System.out.println("testing");
}
}
} |
import os, sys, torch, random, PIL, copy, json, time, numpy as np
import os.path as osp
from shutil import copyfile
from collections import namedtuple
def prepare_seed(rand_seed):
random.seed(rand_seed)
np.random.seed(rand_seed)
torch.manual_seed(rand_seed)
torch.cuda.manual_seed(rand_seed)
torch.cuda.manua... |
#include <stdio.h>
#define SIZE 10
/* prototype declaration */
void init();
void operation();
void push(int data);
int pop();
int s[SIZE];
int sp;
int main(int argc, const char *argv[])
{
init();
operation();
return 0;
}
void init()
{
int i;
sp = 0;
for(i=0; i<SIZE; i++) s[i] = 0;
}
void operation()
{
int c... |
// addToValues adds the HostRecord fields to values. Ignores read only fields.
func addToValues(host HostRecord, hostNumber int, values *url.Values) {
setValueIfPresent := func(key, value string) {
if value != "" && value != "0" {
keyWithNumber := fmt.Sprintf("%s%d", key, hostNumber)
values.Set(keyWithNumber, ... |
/* Convert ethernet clock ticks to microseconds */
static unsigned int gfar_ticks2usecs(struct gfar_private *priv, unsigned int ticks)
{
unsigned int count;
switch (priv->phydev->speed) {
case SPEED_1000:
count = GFAR_GBIT_TIME;
break;
case SPEED_100:
count = GFAR_100_TIME;
break;
case SPEED_10:
default:
... |
package rds
import (
"encoding/json"
"fmt"
"strings"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/cloudwatchlogs"
"github.com/aws/aws-sdk-go/service/rds"
"github.com/pganalyze/collector/config"
"github.com/pganalyze/collector/state"
"github.com/pganalyze/collector/util"
"github.com/pga... |
def genKernelMapSupport(innerKernelMap, outerKernelMap, supportThreshold=-1):
return (np.sum(np.abs(innerKernelMap), 2) / np.mean(np.sum(np.abs(innerKernelMap), 2)) * np.sum(np.abs(outerKernelMap)) / np.mean(np.sum(np.abs(outerKernelMap)))) > supportThreshold |
/**
* simulates the motion of the ball
* @param dt number of seconds
* @param p1Paddle p1 paddle
* @param p2Paddle p2 paddle
* @throws PlayerScoreException if the ball goes out of bounds in a way that a player scores a point
*/
public void tick(double dt, Paddle p1Paddle, Paddle p2Paddle) ... |
<reponame>paiuolo/django-sso-app
"""
django envs:
SESSION_ENGINE, SESSION_COOKIE_NAME, SESSION_COOKIE_PATH, \
SESSION_COOKIE_DOMAIN, SESSION_SAVE_EVERY_REQUEST, SESSION_COOKIE_SECURE, SESSION_COOKIE_HTTPONLY, \
SESSION_COOKIE_SAMESITE
"""
import environ
env = environ.Env()
# common
DEBUG = env.bool("DJAN... |
def __loadStaticData(self):
if self.__loadedStaticData or not self.crawlers():
return
self.__loadedStaticData = True
crawler = self.crawlers()[0]
for info in self.__genericCrawlerInfo:
if info in crawler.varNames():
self.addInfo(info, crawler.var(i... |
<reponame>letuananh/chirptext
# -*- coding: utf-8 -*-
# This code is a part of chirptext library: https://github.com/letuananh/chirptext
# :copyright: (c) 2012 <NAME> <<EMAIL>>
# :license: MIT, see LICENSE for more details.
from . import mecab
from .. import texttaglib as ttl
__JANOME_AVAILABLE = False
try:
from... |
Near-surface turbulence effects on electro-optical propagation in an arid environment
In the framework of a NATO research group Fraunhofer IOSB and partners conducted a field trial in an arid shrub land environment in southern New Mexico (USA). The group investigates environmental limitations of fielded EO-TDAs (Elect... |
// WrapETH will handle all necessary works to convert ETH->WETH(possible BNB->WBNB on bsc), include send speedup tx
// currently this will convert all ETH balance in wallet
func (w *WrapETHHandler) WrapETH(refID string, amount *big.Int) string {
l := w.l.With("ref", refID)
lastTx, err := w.additionTxStorage.GetLastTr... |
def update_time(self, time: int, state: TimeState) -> None:
time_str: str = f"{(time // 60):02d}:{(time % 60):02d}"
self.information["time"].setText(time_str)
self.information["time-state"].setText(state.name.lower())
if state is TimeState.BREAK:
self.information["time"].set_... |
// Project: Advanced Locomotion System V4 on C++
// Copyright: Copyright (C) 2021 <NAME>
// License: MIT License (http://www.opensource.org/licenses/mit-license.php)
// Source Code: https://github.com/dyanikoglu/ALSV4_CPP
// Original Author: <NAME>
// Contributors:
#pragma once
#include... |
Evaluation of Resistance to Fescue Toxicosis in Purebred Angus Cattle Utilizing Animal Performance and Cytokine Response
Fescue toxicosis is a multifaceted syndrome common in cattle grazing endophyte-infected tall fescue; however, varying symptomatic responses potentially imply genetic tolerance to the syndrome. It wa... |
/**
* Instantiates PhysiologyValueGenerators for each VitalSign output in the generator
* configuration.
*
* @param generatorConfig generator configuration object
* @param person Person to generate VitalSigns for
* @return List of PhysiologyValueGenerator instances
*/
public static List<PhysiologyV... |
def send_keyword_to_productdriver(driver_name, plugin_name, keyword,
data_repository, args_repository):
step_num = data_repository["step_num"]
try:
if plugin_name is not None:
import_name = ".".join(["plugins", plugin_name, "bin",
... |
/**
* @author Samuel Githengi created on 10/09/19
*/
public class LocationUtils {
public static Set<String> getRootLocation(Map<String, String> locations) {
// get all parents
Set<String> parents = new HashSet<>(locations.values());
Set<String> ids = locations.keySet();
// remove parents that are also ch... |
export default interface ILoginUser {
hash: string;
name: string;
role: number;
lang: string;
}
|
Zika in Puerto Rico, 2016-2017: II Perspectives on Epidemic Surveillance and Control, Health Communication, Outcomes and Lessons.
The social reaction to the Zika epidemic in Puerto Rico reached a confrontational climax regarding aerial fumigation with an organophosphate insecticide. The public drama has obscured multi... |
/* Automatically generated from OpenCL registry files; DO NOT EDIT! */
#include "opencl_private.h"
#include "opencl_types.h"
#include "unixlib.h"
WINE_DEFAULT_DEBUG_CHANNEL(opencl);
cl_int WINAPI clBuildProgram( cl_program program, cl_uint num_devices, const cl_device_id* device_list, const char* options, void (WINA... |
/**
* Created by android_ls on 16/11/11.
*/
public class ImageBindingAdapter {
@BindingAdapter({"url"})
public static void loadImage(SimpleDraweeView simpleDraweeView, String url) {
ImageLoader.loadImage(simpleDraweeView, url);
}
@BindingAdapter({"url_small"})
public static void loadImag... |
// CoNLL document format reader for dependency annotated corpora.
// The expected format is described e.g. at http://ilk.uvt.nl/conll/#dataformat
//
// Data should adhere to the following rules:
// - Data files contain sentences separated by a blank line.
// - A sentence consists of one or tokens, each one starting... |
<gh_stars>100-1000
using namespace System;
using namespace System::Runtime::InteropServices;
// <Snippet1>
[BestFitMapping(false, ThrowOnUnmappableChar = true)]
interface class IMyInterface1
{
//Insert code here.
};
// </Snippet1>
public ref class InteropBFMA : IMyInterface1
{
};
int main()
{
... |
<reponame>AIoTES/SIL-Bridge-SensiNact
/**
* /**
* INTER-IoT. Interoperability of IoT Platforms.
* INTER-IoT is a R&D project which has received funding from the European
* Union's Horizon 2020 research and innovation programme under grant
* agreement No 687283.
* <p>
* Copyright (C) 2017-2018, by : - Università ... |
#!/usr/bin/python
import sys
words = set()
with open(sys.argv[1], 'r') as fp:
for line in fp.readlines():
words.add(line.strip())
for line in sys.stdin.readlines():
sp = line.strip().split()
if sp[0] in words:
print line.strip()
|
<filename>src/PRPPaddleWheel.h
//
// PRPPaddleWheel.h
// primaryp
//
// Created by stefan on 5/15/14.
//
//
#ifndef __primaryp__PRPPaddleWheel__
#define __primaryp__PRPPaddleWheel__
#include "PRPPaddle.h"
NS_PRP_BEGIN
static const unsigned int kPaddleCount = 3;
struct PaddlePauseAction {
Paddle_t paddle;
... |
__all__ = ['wrapper', 'config']
from . import wrapper
from .config import Config
config = Config()
config.from_envvar('CARPY_CONFIG_FILE', silent=True)
|
// USAGE EXAMPLES:
//
// cargo run rome
// cargo run rome -f 0 -t 1
// cargo run rome --from 0,1,2,4,5 --to 2,3,3,3,2
// FROM=2,3,3,4 TO=1,1,0,0 cargo run rome
//
// PROBLEM:
//
// You are given a map of the Roman Empire. There are ROADS + 1 cities
// (numbered from 0 to ROADS) and ROADS directed roads betw... |
import moment from 'dayjs';
import { observer } from 'mobx-react-lite';
import React, { FunctionComponent } from 'react';
import { TableBodyRow, TableData, TableHeadRow } from 'src/components/Tables';
import { SubTitleText, Text } from 'src/components/Texts';
import { useStore } from 'src/stores';
import useWindowSize ... |
// This is the next phase after null protection is applied.
void LuaConverter::convertAstSkipNullChecks(Analyser::AnalyserContext & context,
const AstNode & node, DefaultIfMissing defaultIfMissing, LuaOutputter & output)
{
if (node.function().functionType != Function::CON... |
Post–Chikungunya Virus Infection Musculoskeletal Disorders: Syndromic Sequelae after an Outbreak
The Chikungunya virus is a re-emerging mosquito-borne alphavirus. Outbreaks are unpredictable and explosive in nature. Fever, arthralgia, and rash are common symptoms during the acute phase. Diagnostic tests are required t... |
Stub content:
Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi_ex.c
|
/**
* Text content returned by an HTTP request.
*/
public class text_content {
public final string mime_type;
public final string content;
public text_content(string mime_type, string content) {
this.mime_type = mime_type;
this.content = content;
}
public String to_content_type() {
return util... |
def read_3D_array(name):
try:
with open(name, "r") as f:
lines = f.readlines()
line0 = [int(elt) for elt in lines[0].split()]
nbSubjects, nbControlPoints, dimension = line0[0], line0[1], line0[2]
momenta = np.zeros((nbSubjects, nbControlPoints, dimension))
... |
<filename>tests/brevitas/test_brevitas_avg_pool_export.py
import os
import onnx # noqa
import torch
import numpy as np
import brevitas.onnx as bo
from brevitas.nn import QuantAvgPool2d
from brevitas.quant_tensor import pack_quant_tensor
from brevitas.core.quant import QuantType
from finn.core.modelwrapper import Mode... |
use super::LatexRenderer;
use mediawiki_parser::*;
use preamble::*;
impl<'e, 's: 'e, 't: 'e> LatexRenderer<'e, 't> {
pub fn htmltag(
&mut self,
root: &'e HtmlTag,
settings: &'s Settings,
out: &mut io::Write,
) -> io::Result<bool> {
match root.name.to_lowercase().trim() {... |
def _update_scroll(self, cursor_cell, win_rows, win_cols):
sr, sc = self.scroll
if win_rows < 1:
sr = 0
elif cursor_cell.row < sr:
sr = cursor_cell.row
elif cursor_cell.row >= sr + win_rows:
sr = max(0, cursor_cell.row - win_rows + 1)
sr = min(... |
def create_array_with_hounsfield_units(image_data, mu_water, mu_air):
dim_x = np.size(image_data, 0)
dim_y = np.size(image_data, 1)
dim_slice = np.size(image_data, 2)
count = 0
iterations = dim_x * dim_y * dim_slice
for i in range(0, dim_x):
for j in range(0, dim_y):
for k in... |
// TimeMillisAfter waits for the duration between min and max
// to elapse and then sends the current time
// on the returned channel.
func TimeMillisAfter(min, max uint32) <-chan time.Time {
if min >= max {
return time.After(time.Duration(min) * time.Millisecond)
}
return time.After(time.Duration(Uint32Range(min,... |
/**
* An Vector contains a vector of 'dimension' values. It serves as the main data
* structure that is stored and retrieved. It also has an identifier (key).
*
* @author Joren Six
*/
public class Vector implements Serializable {
private static final long serialVersionUID = 5169504339456492327L;
/*... |
def mul_church(m, n):
return lambda f : lambda x : m(n(f))(x) |
<reponame>czen/open-ops<filename>unittests/Reprise/Reprise.cpp<gh_stars>10-100
#include "Reprise/Reprise.h"
#include "Frontend/Frontend.h"
#include "Shared/RepriseClone.h"
#include "Backends/RepriseXml/RepriseXml.h"
#include "Backends/OutToC/OutToC.h"
#include <string>
#include "GTestIncludeWrapper.h"
#include "../F... |
package cn.chaboshi.test;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Color;
import android.support.annotation.NonNull;
import android.support.design.widget.BottomSheetDialog;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget... |
/**
* shifting - right rotation just one unit
*
* @param array the source array.
* @param startIndex starting position
* @param endIndex finishing position
*/
@TimeComplexity("O(n)")
@SpaceComplexity("O(1)")
public static void rightRotate(int[] array, int startIndex, int end... |
<reponame>quantfamily/foreverbull<filename>tests/helper/socket_test.go<gh_stars>1-10
package helper
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestLocalSocket(t *testing.T) {
ls := LocalSocket(t)
assert.NotNil(t, ls.ToRead)
assert.NotNil(t, ls.Written)
t.Run("TestRead", func(t *testing.T) {... |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "WebrtcMediaDataDecoderCodec.h"
#include "ImageContainer.h"
#include "MediaDataDecoderProxy.h"
#include ... |
import sys
li = list(map(int,input().split()))
li.sort()
if(str(li[0]) == str(li[1]) == str(li[2])):
print("No")
sys.exit()
if(str(li[0]) != str(li[1]) != str(li[2])):
print("No")
sys.exit()
for i in range(3):
if(str(li[i]) == str(li[i+1])):
print("Yes")
break |
def update_bindings(item_table: ItemTable, region: dict = None, excel_filepath: str = None, sheet_name: str = None) -> None:
if region:
bindings["$left"] = region['left']
bindings["$right"] = region['right']
bindings["$top"] = region['top']
bindings["$bottom"] = region['bottom']
if excel_filepath:
add_excel... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://bangular.io/license
*/
import {DebugContext, NodeFlags, QueryValueType, Services, asElementData, asTextData, directiveDef, elementDef, tex... |
package api
import (
"crypto/ecdsa"
"crypto/sha256"
"crypto/sha512"
"crypto/x509"
"encoding/asn1"
"encoding/hex"
"errors"
"fmt"
"github.com/duo-labs/webauthn/config"
"github.com/duo-labs/webauthn/models"
"github.com/ugorji/go/codec"
"math/big"
"net/url"
"strings"
b64 "encoding/base64"
req "github.com/... |
/**
* The DefaultInstrument is a class
* <p/>
* Description
*
* @author Luca Lutterotti
* @version $Revision: 1.3 $, $Date: 2006/11/10 09:33:01 $
* @since JDK1.1
*/
public class DefaultInstrument extends Instrument {
public static String modelID = "Diffraction Instrument";
public DefaultInstrument(XRDcat ... |
/**
* Creates a key pair from private key and public key files.
*
* @param privateKeyFile The private key file.
* @param publicKeyFile The public key file.
* @param passphrase The passphrase for the private key.
* @return The created key pair.
*/
public static Identity fromFiles(final... |
Raman spectroscopic analysis of mo/si multilayers.
Raman spectra are reported from MoSi2 polycrystalline powder and soft x-ray Mo/Si multilayers. The sharp lines at 323 and 438 cm-1 are all due to crystalline MoSi2. These lines in the powder sample intensify with annealing. The Raman spectra of as-deposited multilayer... |
#!/usr/bin/env python
from __future__ import print_function
from sklearn.feature_extraction import FeatureHasher
from sklearn.ensemble import RandomForestClassifier
from sklearn.pipeline import make_pipeline
from sklearn.metrics import log_loss
import ctr
learner = RandomForestClassifier(verbose = False, n_jobs = -1... |
Smithtown High School West teacher Veronica Welsh said her students were racist if they support Donald Trump.
Welsh was reportedly disciplined after her slanderous Facebook post.
CBS Local reported:
A Long Island teacher faces backlash over a Facebook post calling some of her students “racist.”
The halls of Smithto... |
Chicago Mayor and former Chief of Staff for President Obama Rahm Emanuel (D) has asked the city council to pass a law decriminalizing simple possession of marijuana. From the Chicago Tribune:
Mayor Rahm Emanuel is throwing his support behind a plan to decriminalize small amounts of marijuana. Under the proposed ordina... |
Working with resistance to diversity issues in the classroom: Lessons from teacher training and multicultural education
Abstract Social work programs are mandated by the Council on Social Work Education to address issues of difference, privilege, oppression, and discrimination at both the baccalaureate and graduate le... |
/**CFile****************************************************************
FileName [lpk.h]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Fast Boolean matching for LUT structures.]
Synopsis [External declarations.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley... |
<gh_stars>0
// Copyright 2015 <NAME>. All rights reserved.
// Use of this source code is governed by the MIT
// license, which can be found in the LICENSE file.
package jobs
import (
"fmt"
"github.com/garyburd/redigo/redis"
"time"
"strings"
)
// Job represents a discrete piece of work to be done by a worker.
ty... |
/* return the inverse of u mod v, if v is odd */
int inv_mod2(int u, int v)
{
int t1, t3;
int u1 = 1;
int u3 = u;
int v1 = v;
int v3 = v;
if ((u & 1) != 0)
{
t1 = 0;
t3 = -v;
goto Y4;
}
else
{
t1 = 1;
t3 = u;
}
do
{
do
{
if ((t1 & 1) == 0)
{
t1 = t1 >> 1;
t3 = t3 >> 1;
}
e... |
/*
Copyright 2002-2020 Bo Zimmerman
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... |
Increased melanizing activity in Anopheles gambiae does not affect development of Plasmodium falciparum
Serpins are central to the modulation of various innate immune responses in insects and are suspected to influence the outcome of malaria parasite infection in mosquito vectors. Three Anopheles gambiae serpins (SRPN... |
+ Show
+
in
32.53%
44.12%
40.24%
55.88%
26.44%
99.99%
55.88%
99.99%
44.12%
99.97%
in
78.96%
67.29%
83.53%
32.71%
69.53%
13.81%
32.71%
21.19%
67.29%
10.22%
in
37.09%
56.99%
43.01%
43.01%
29.24%
30.55%
43.01%
39.12%
56.99%
24.09%
in
45.26%
43.06%
54.61%
56.94%
38.2%
99.97%
56.94%... |
<gh_stars>1-10
#ifndef ASM_GENERIC_TYPES32_H_
#define ASM_GENERIC_TYPES32_H_
#define __WORDSIZE 32
#ifndef __ASSEMBLER__
//#define __SWORD_TYPE int
typedef signed char __s8;
typedef unsigned char __u8;
typedef signed short __s16;
typedef unsigned short __u16;
typedef signed int ... |
Dermal graft repair of Peyronie's disease: survey of 50 patients.
Peyronie's disease is characterized by localized fibrosis in the tunica albuginea of the corpus cavernosum. This inelastic segment causes bending of the erect penis and sexual incapacity in advanced cases. We reviewed 52 cases in which excision of the P... |
<reponame>MohitSethi99/IlluminoEngine<filename>IlluminoEngine/src/Illumino/Renderer/SceneRenderer.cpp<gh_stars>0
#include "ipch.h"
#include "SceneRenderer.h"
#include <glm/glm.hpp>
#include <glm/gtx/transform.hpp>
#include "RenderCommand.h"
#include "Shader.h"
namespace IlluminoEngine
{
static Ref<Shader> s_Shader;... |
/// Reseve enough space in the vector for at least `size` additional elements.
pub fn reserve(&mut self, additional: usize) {
let ptr = self.slice.ptr;
let size = self.slice.len + additional;
if self.capacity >= size {
return;
}
let mut new_capacity = if self.capacity... |
The calcar femorale. An anatomic, radiologic, and surgical correlative study.
In order to define the anatomy of the calcar femorale, a radiologic and surgical study was done on ten paired cadaver femurs. After radiography and computed tomographic (CT) scans, the specimens were subjected to medullary reaming by an expe... |
package com.essane.partimejob.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.essane.partimejob.domain.Admin;
/**
* @author Essane
*/
public interface AdminMapper extends BaseMapper<Admin> {
}
|
import useApplications from "applications/hooks/useApplications";
import ManageAssessmentStatus from "assessments/views/ManageAssessmentStatus";
import ActionButton from "components/Buttons/ActionButton";
import PageLoading from "components/Spinner/PageLoading";
import Table from "components/Table/Table";
import { IRow... |
Safety and efficacy of 3D-printed templates assisted CT-guided radioactive iodine-125 seed implantation for the treatment of recurrent cervical carcinoma after external beam radiotherapy
Objective To investigate the safety and efficacy of 3-dimensional (3D) printing non-coplanar templates (PNCT) assisted computer tomo... |
def check_for_existing_package(toolchain_root, pkg_name, pkg_version, compiler):
version_file = version_file_path(toolchain_root, pkg_name, pkg_version)
if not os.path.exists(version_file):
return False
label = get_platform_release_label()
pkg_version_string = "{0}-{1}-{2}-{3}".format(pkg_name, pkg_version,... |
def types(self):
return list(map(helpers.to_python_type, self.extra_headers['types'])) |
{-# OPTIONS_GHC -Wall -fno-warn-orphans #-}
{-# LANGUAGE TypeOperators, PatternSynonyms #-}
{-# LANGUAGE GADTs,TypeFamilies,DataKinds, RankNTypes #-}
{-# LANGUAGE TemplateHaskell, QuasiQuotes,KindSignatures #-}
module Example where
import Extensible (desugarExtensible,Extensible(..),Extends(..))
import GHC.TypeLits
d... |
// Copyright 2020 The Chromium 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 "cc/metrics/lcd_text_metrics_reporter.h"
#include "base/lazy_instance.h"
#include "base/metrics/histogram_macros.h"
#include "cc/base/histograms... |
<filename>src/schema/types/RuleStatType.ts
import {
GraphQLObjectType,
GraphQLID,
GraphQLNonNull,
GraphQLInt
} from "graphql";
import { UserType } from "./UserType";
import { getUserByID } from "../../services/UserService";
import { RuleType } from "./RuleType";
import { getRuleByID } from "../../services/RuleS... |
from ConfigParser import ConfigParser
import sys
from ant.core import log
from BtAtsPowerCalculator import BtAtsPowerCalculator
from KurtKineticPowerCalculator import KurtKineticPowerCalculator
from TacxBlueMotionPowerCalculator import TacxBlueMotionPowerCalculator
from XBikePowerCalculator import XBikePowerCalculator... |
<reponame>tylersiemers/securecrt-tools<gh_stars>0
# $language = "python"
# $interface = "1.0"
import os
import sys
import logging
# Add script directory to the PYTHONPATH so we can import our modules (only if run from SecureCRT)
if 'crt' in globals():
script_dir, script_name = os.path.split(crt.ScriptFullName)
... |
/// <reference path="quic.abstracts.ts" />
namespace Quic{
export class Fieldset implements IFieldset,FieldsetOpts{
quic:IQuic;
fields:{[index:string]:IField};
langs?:{[index:string]:string};
opts:FieldsetOpts;
defs:FieldsetDefs;
//数据访问器
accessFactory:IA... |
/**
* Handles the "Project->Properties..." command.
* Opens the project's properties dialog, which allows the user to change
* some attributes of the current project.
* source files.
*/
void KScope::slotProjectProps()
{
ProjectBase* pProj;
ProjectBase::Options opt;
pProj = m_pProjMgr->curProject();
if (!pProj)... |
// handleError will attempt to handle an error.
// If there is an error value there, then it will Notify subscribers about the error, and return with a true.
// In case there is no error, the function returns and "isErrorHandled" as false.
func (sm *ListenNotifySubscriptionManager) handleError(ctx context.Context, err ... |
from pyvista import examples
mesh = examples.load_sphere_vectors()
mesh.point_data
# Expected:
## pyvista DataSetAttributes
## Association : POINT
## Active Scalars : vectors
## Active Vectors : vectors
## Active Texture : None
## Active Normals : Normals
## Contains arrays :
## Normals floa... |
matrix = []
for i in range(5):
arr = list(map(int,input().split()))
matrix.append(arr)
for i in matrix:
if 1 in i:
print(abs(2-matrix.index(i))+abs(2-i.index(1))) |
News in Science
Elephants smart as chimps, dolphins
Working together A study of elephants has found they not only aced a test of their intelligence and ability to cooperate, they found new ways to complete it.
The study, published in the latest Proceedings of the National Academy of Sciences, highlights not only the... |
const DEFAULT_ISSUERS = [
{
name: 'Solid Community',
uri: 'https://solidcommunity.net'
},
{
name: 'Solid Web',
uri: 'https://solidweb.org'
},
{
name: 'Inrupt.net',
uri: 'https://inrupt.net'
},
{
name: 'pod.Inrupt.com',
uri: 'https://broker.pod.inrupt.com'
}
]
/**
* @ret... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.