content stringlengths 10 4.9M |
|---|
#include <iostream>
#include <algorithm>
#include <set>
#include <vector>
#include <string>
#include <unordered_set>
#include <map>
#include <queue>
#include <numeric>
#include <functional>
#include <math.h>
using namespace std;
int gcd(int a, int b) {
if (b == 0)
return a;
else
return gcd(b... |
In respiratory physiology, the ventilation/perfusion ratio (V̇/Q̇ ratio or V/Q ratio) is a ratio used to assess the efficiency and adequacy of the matching of two variables:
V̇ or V – ventilation – the air that reaches the alveoli
Q̇ or Q – perfusion – the blood that reaches the alveoli via the capillaries
The V/Q r... |
#include "../rtfilter.h"
#include "util_p.hpp"
using namespace ReVoice;
typedef struct RvRTFilter
{
RvReal *kernel, *buffer;
RvReal *convTemp;
RvFFTConvolver *fftConv;
int kernelSize, maxNX;
int delayed;
} RvRTFilter;
RvRTFilter *rvCreateRTFilter(const RvReal *kernel, int kernelSize, int maxNX)
{
rvAsse... |
def fuels(self):
parm = self.parameter
vehicle_fuels = set(x.fuel for x in parm)
return vehicle_fuels |
<reponame>Dilecy/dilecy<filename>src/renderer/feature/NewRequest/components/SuggestBrand.tsx
/* eslint-disable @typescript-eslint/camelcase */
import React from 'react';
import { Form, Formik } from 'formik';
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@material-ui/core/DialogActions';
im... |
<reponame>dacre-denny/webvr-bubbleshooter
import * as BABYLON from "babylonjs";
import { BubbleFactory } from "../bubbleFactory";
import { applyColors, clamp, createAnimationScale, createAnimationTranslate, randomColor } from "../utilities";
import { Bubble } from "./bubble";
import { ActionRandom } from "./queue";
co... |
def make_config(config):
if not config:
utils.detailed_error("Parser", 'make_config',
'supplied config is empty')
if 'template_dir' not in config:
utils.detailed_error("Parser", 'make_config',
'template_dir not fou... |
import sys
input=sys.stdin.buffer.readline
n=int(input())
a=list(map(int,input().split()))
a.append(10**40)
q=int(input())
a.sort()
collect=[]
for i in range(1,n+1):
if(a[i]-a[i-1]-1>=0):
collect.append(a[i]-a[i-1]-1)
count=len(collect)
collect.sort()
sum_collect=[0]
add=0
for i in range(coun... |
<gh_stars>1-10
import L from 'leaflet'
import React, { createContext, useState, useEffect } from 'react'
import { fetch as whatFetch } from 'whatwg-fetch'
import { Map, TileLayer, ScaleControl } from 'react-leaflet'
import {
CellLabelStyle, Phase, ADJUDICATION_PHASE, UMPIRE_FORCE, PlanningStates, LaydownPhases,
LAY... |
// Equal - Receives a pointer to an instance of ErrPrefixDelimiters
// and proceeds to determine whether the data values encapsulated in
// that instance are equal to those in the current
// ErrPrefixDelimiters instance.
//
//
// ----------------------------------------------------------------
//
// Input Parameters
//... |
// OpenOutputFile opens the appropriate target for writing output, or dies trying
func OpenOutputFile(dir, filename string) (f *os.File) {
var err error
target := filepath.Join(dir, filename)
if target == "" || target == "-" {
f = os.Stdout
} else {
f, err = os.Create(target)
DieOnErrf("File open failed: %q"... |
/**
* Subscriptions helper (see SubscriptionManager).
* Requires android.permission.READ_PHONE_STATE.
*/
public class SubscriptionHelper {
public static boolean isAvailable() {
return (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1);
}
@Nullable
public static List<SubscriptionInf... |
/**
* Constructs an immutable instance which is the combination of
* the two given instances. The two instances must each have the
* same number of elements, and each pair of elements must contain
* disjoint sets of types.
*
* @param list1 {@code non-null;} an instance
* @param list2 ... |
/**
* Created by daveburke on 5/31/16.
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = ApplicationConfig.class)
@ActiveProfiles(DataConfigProfile.H2)
public class PostRepoTests {
@Autowired
PostRepository postRepository;
@Test
public void nonextistentPostFromRepository() {... |
The genetic factors of bilaterian evolution
The Cambrian explosion was a unique animal radiation ~540 million years ago that produced the full range of body plans across bilaterians. The genetic mechanisms underlying these events are unknown, leaving a fundamental question in evolutionary biology unanswered. Using lar... |
Protein-bound adenosine 3':5'-monophosphate in liver of glucagon-treated rats. Determination of half-maximal binding in vivo and correlation with protein kinase activation.
The adenosine 3′:5′-monophosphate (cyclic AMP) fraction bound to high-affinity proteins of rat liver cytosol was determined by homogenization of t... |
/**
* Operations on a box.
*/
public class TessBox {
private String chrs;
private Rectangle rect;
private short page;
private boolean selected;
public TessBox(String chrs, Rectangle rect, short page) {
this.chrs = chrs;
this.rect = rect;
this.page = page;
}
/**
... |
// Reset reinitializes the cleaner stats.
func (c *Cleaner) Reset() {
c.status = 0
c.cleanedFilesCount = 0
c.removed = map[string]struct{}{}
c.cleaned = map[*Node]struct{}{}
} |
<filename>src/frontend/src/app/security/authentication.service.ts
import {Injectable, ViewChild} from '@angular/core';
import {Observable} from 'rxjs/Observable';
import 'rxjs/add/operator/map';
import {UserDto} from '../model/UserDto';
import {HttpClient} from '../shared/http.client.service';
import {NotificationServi... |
/**
*
*/
package com.ishland.bukkit.AsyncKeepAlive.main;
import java.util.HashMap;
import org.bukkit.OfflinePlayer;
import org.bukkit.plugin.Plugin;
import me.clip.placeholderapi.expansion.PlaceholderExpansion;
/**
* @author ishland
*
*/
public class PlaceHolderMain extends PlaceholderExpansio... |
I’ve always felt there are basically two kinds of philosophers: those who begin in wonder and those who begin in despair. Though the philosopher Keiji Nishitani (1900-90) was arguably the latter kind, he struggled throughout his life to see the world with wonder.
At the center of his philosophy lies the problem of nih... |
/** ICMP options for an {@link ActionIpAccessListLine}. */
public final class IcmpOptions implements Layer4Options {
private final @Nullable Integer _code;
private final int _type;
public IcmpOptions(int type, @Nullable Integer code) {
_type = type;
_code = code;
}
@Override
public <T> T accept(L... |
#include<stdio.h>
#include<string.h>
int main(){
int i;
char s[105];
scanf("%s",s);
int k=strlen(s);
char b[105];
int j=0,l;
for(i=0;i<k;i=i+2){
b[j]=s[i];
j++;
}
for (i=0; i<j-1; i++){
for (l=i+1; l<j; l++){
if (b[i] > b[l]){
char temp;
... |
package ua.naiksoftware.stomp.client;
import android.util.Log;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import io.reactivex.BackpressureStrategy;
import io.reactivex.Completable;
import io.reactivex.Flowabl... |
<filename>src/app.ts<gh_stars>0
import Knex from 'knex';
import cors from 'cors';
import dotenv from 'dotenv';
import morgan from 'morgan';
import helmet from 'helmet';
import express from 'express';
import { Model } from 'objection';
import knexConfig from '../knexfile';
import bodyParser from 'body-parser';
import co... |
use crate::crypto::{Digest, Random};
pub use hex::FromHexError;
use std::{convert::TryFrom, string::ToString};
/// Unique identifier for a persistence object.
#[derive(Default, Clone, Copy, Hash, PartialEq, Eq, Serialize, Deserialize)]
pub struct Id(Digest);
impl Id {
#[inline(always)]
pub fn new(random: &imp... |
def resend(self):
url = self.get_url('resend')
response = self._session.post(url, skip_retry_codes={202}, expect_json_response=False)
return response.ok |
def GetChapter(self):
rlist=GenCatalog(self.text_ctrl_1.GetValue())
self.cur_catalog=rlist
c_pos=self.text_ctrl_1.GetStartPos()
i=0
for cc in rlist:
if c_pos<cc[1]:
break
else:
i+=1
return (rlist,i,rlist[i-1][0].stri... |
def retro_affect(xs, ys, reward, horizon=10):
horizon = min(len(ys), horizon)
N = len(ys)
for i in range(horizon):
ys[(N - 1) - i][0] = ys[(N - 1) - i][0] + (reward / (i + 1))
return (xs, ys) |
def promote_alias_chain(self, chain, must_promote=False):
for alias in chain:
if self.promote_alias(alias, must_promote):
must_promote = True |
#include "SherbertEngine_Chronometry.h"
using namespace std::chrono;
//Time.deltaTime
Time::Time() noexcept
{
last = steady_clock::now();
}
float Time::Mark() noexcept
{
//Time calc = time between previous frame - current frame
const auto old = last;
last = steady_clock::now();
const duration<float> frameTime = ... |
#News Config
files=["news.md","README.md"]
year=2021 |
<gh_stars>1-10
package fileinfo
import (
"database/sql"
"fmt"
"strings"
// Import the sqlite3 driver. We don't refer to anything exported by the
// package in this file which is why a blank import is required.
_ "github.com/mattn/go-sqlite3"
)
// Storage saves information about a file in a SQLite database.
typ... |
Pavel Srnicek also played in Portugal, Italy - for Brescia and Cosenza - and for Banik Ostrava in the Czech Republic
Former Newcastle United goalkeeper Pavel Srnicek has died at the age of 47, nine days after suffering cardiac arrest in his native Czech Republic.
A big favourite with fans during his first spell at St... |
Development and Validation of Analytical Methods for Simultaneous Estimation of Atorvastatin Calcium and Ezetimibe in Combined Dosage Form
4 Abstract: A simple, rapid and precise method is developed for the quantitative simultaneous determination of Atorvastatin calcium and Ezetimibe a combined pharmaceutical-dosage f... |
/**
*
* \brief Initializes the scene manager.
*
* In this function the scene manager loads standard shapes like cubes and planes.
* Then it creates a standard camera system (camera + parent) and a standard light.
*
*/
void VESceneManager::initSceneManager() {
std::vector<vh::vhMemoryBlock*> emptyList;
m_memo... |
package electron
import (
"fmt"
"log"
"os"
"github.com/asticode/go-astikit"
"github.com/asticode/go-astilectron"
"github.com/typhoon51280/openconnect-gui/internal/ui"
)
func OpenWindow(wait bool, address string, args ...string) {
os.Unsetenv("ELECTRON_RUN_AS_NODE")
url := ui.NewServer(addre... |
<reponame>rascaler/assertj<filename>src/main/java/io/github/rascaler/assertj/core/base/AbstractCharacterAssert.java
package io.github.rascaler.assertj.core.base;
import io.github.rascaler.assertj.core.AbstractAssert;
//public class AbstractCharacterAssert extends AbstractAssert<AbstractCharacterAssert, Character>
pub... |
def do_python(self, inp):
print("running python interactive shell")
output = os.popen(' && '.join([
'PYTHONSTARTUP={}/prompt_init.py',
'. /opt/envoxy/bin/activate',
'python3.6',
'deactivate'
]).format(self.dir_path)).read()
print(output)... |
// Int returns an integer representing the number of PoRep partitions
func (p PoRepProofPartitions) Int() int {
switch p {
case TwoPoRepProofPartitions:
return 2
default:
panic(fmt.Sprintf("unexpected value %v", p))
}
} |
R=lambda:map(int,raw_input().split())
n=input()
d={}
for x in R():
d[x]=d.get(x,0)+1
m=input()
b,c=R(),R()
ansb=ansc=ans=0
for i in range(m):
cntb,cntc=d.get(b[i],0),d.get(c[i],0)
if ansb<cntb or (ansb==cntb and ansc<cntc):
ansb,ansc,ans=cntb,cntc,i
print ans+1
|
/**
* List instances response object
*/
public class ListInstancesResponse extends SdkResponse {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "instances")
private List<DmsInstance> instances;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "instance_num")
... |
<filename>collection/collect2.py
# Import Configuration Variables (See config.py)
from config import *
# Import Libraries
import datetime
import mysql.connector
import praw
from praw.models import MoreComments
import pytz
import time
import traceback
import sys
'''
Basics of what it does:
1. Read existing data and w... |
/**
* Singleton class responsible for reporting accesses.
*
* Accesses are observed by intercepting syscalls.
*
* Accesses are reported to a file (can be a regular file or a FIFO)
* at the location specified by the FileAccessManifest.
*/
class BxlObserver final
{
private:
BxlObserver();
~BxlObserver() ... |
Additional Turmeric Powder (Curcuminoid) into Traditional Ration to Improve the Productivity of Bali Pig
Bali Pig is one of germplasm whose existence is very limited until now. This is due to the very low growth and breeding compared to other types such as Landrace pigs, Duroc, and Laghwhite. However, Bali pig has an ... |
//! All User info, to be implemented by custom User classes
use {
serde::{de::DeserializeOwned, Deserialize, Serialize},
std::{
fmt::{Debug, Display},
hash::Hash,
},
validator::Validate,
};
/// Different states that a user could be in,
#[derive(Clone, Debug, PartialEq, Serialize, Deser... |
/**
* vmwgfx_output_origin - Get the origin for an output in the GUI layout.
*
* @output: The output to consider.
* @x: Outputs the x coordinate of the origin.
* @y: Outputs the y coordinate of the origin.
*/
void
vmwgfx_output_origin(xf86OutputPtr output, int *x, int *y)
{
struct output_private *vmwgfx_outpu... |
package io.namba;
import org.springframework.context.ApplicationEvent;
/**
* Created by Evan on 23/10/16.
*/
public class CustomEvent extends ApplicationEvent {
public CustomEvent(Object source) {
super(source);
}
@Override
public String toString() {
return "custom event";
}
}
|
package io.paradoxical.cassieq.dataAccess;
public final class Tables {
public static class Pointer {
public static final String TABLE_NAME = "pointer";
public static final String QUEUE_ID = "queueid";
public static final String POINTER_TYPE = "pointer_type";
public static final Str... |
Magnetic properties and energy-mapping analysis.
The magnetic energy levels of a given magnetic solid are closely packed in energy because the interactions between magnetic ions are weak. Thus, in describing its magnetic properties, one needs to generate its magnetic energy spectrum by employing an appropriate spin Ha... |
amida = range(int(raw_input()) + 1)
for i in range(int(raw_input())):
a, b = map(int, raw_input().split(','))
amida[a], amida[b] = amida[b], amida[a]
for i in range(1, len(amida)): print amida[i] |
import React from 'react';
import styled from 'styled-components';
import Button from '../../ui/Button';
import { breakpoints } from './NavBar/Navbar';
interface IHeaderProps {
collapsed: boolean;
toggleMenu: () => void;
}
const Grid = styled.div`
display: grid;
grid-template-columns: min-content 1fr min-cont... |
<filename>apps/condo/domains/common/components/StatsCard.tsx
/** @jsx jsx */
import React, { useCallback, useEffect, useState } from 'react'
import { Card as AntCard, CardProps, Col, Dropdown, Menu, Row, Skeleton, Space } from 'antd'
import { DownOutlined, RightOutlined } from '@ant-design/icons'
import { Button } from... |
// Copyright (c) 2010 libmv authors.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, publish... |
import { MissingParamError, UserError } from '@util/errors'
import { UsersDocuments } from '@entities/UsersDocuments'
import { IBuyRepository } from '@repositories/IBuyRepository'
import { IRegisterBuyDTORequest } from './RegisterBuyDTO'
import {
badRequest,
forbidden,
HttpResponseDTO,
noContent,
serverError
... |
The mob went on a rampage in the house and set fire to a motorcycle parked outside.
A man - allegedly the brother of a local Trinamool Congress leader - was caught red-handed today while raping an 11-year-old girl in West Bengal's Durgapur town.The girl was standing near her house in the City Centre area, waiting for ... |
Alien Leg Syndrome in Two Cases of Corticobasal Syndrome
Corticobasal degeneration (CBD) is a rare neurodegenerative tauopathy with asymmetrical cortical and basal ganglia involvement. Apraxia, parietal lobe sensory dysfunction, cortical myoclonus, and alien limb phenomenon are common manifestations of cortical dysfun... |
He will also have a reminder of his friend, who died of cancer on July 2 at the age of 9, on his left wrist.
ST. PAUL, Minn. -- When the Minnesota Wild host their Hockey Fights Cancer Awareness Night against the Calgary Flames (8 p.m. ET; FS-N, FS-WI, SNW, NHL.TV) on Tuesday, Wild forward Jason Zucker will have Tucker... |
// FUNC
// Given a stack consists of found paths, drop paths that are too similar to
// Given a stack consists of found paths, drop paths that are too similar to
// Given a stack consists of found paths, drop paths that are too similar to
// others (by checking unitig ID or haplotig status).
// ... |
#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
int n;
long int l;
cin>>n>>l;
long int arr[n];
for(int r=0;r<n;r++)
{
cin>>arr[r];
}
long int temp;
for(int a=0;a<n;a++)
{
for(int b=0;b<a;b++)
{
if(ar... |
/**
* Inserts the given data source object ID and its status into the
* datasources table. If a record for the data source already exists, an
* update of the status is done instead.
*
* @param dataSourceObjectID A data source object ID from the case database.
* @param status Th... |
<gh_stars>1-10
// Author: yann
// Date: 2021/9/27 3:21 下午
// Desc:
package utils
import (
"fmt"
"sync"
"sync/atomic"
"time"
)
// 如果传入任务超时返回的错误信息
var ErrScheduleTimeout = fmt.Errorf("schedule error: timed out")
// 线程池模型
type GoPool struct {
sem chan struct{} //线程池队列
work chan func() //任务队列
stop chan int
m... |
'Switching On' National Identity: Korean Consumers' Responses to Ads Using Patriotic Appeals
While the use of patriotic messages in advertising has been widespread in Korea, the effect of such messages on consumer responses has been largely unexplored. Therefore, this study attempted to explore how Korean consumers re... |
<reponame>richardelling/ebpf_exporter
package decoder
import (
"errors"
"fmt"
"github.com/cloudflare/ebpf_exporter/config"
)
// ErrSkipLabelSet instructs exporter to skip label set
var ErrSkipLabelSet = errors.New("this label set should be skipped")
// Decoder transforms byte field value into a byte value repres... |
import { Component, ElementRef, HostListener, OnDestroy, OnInit } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { Subscription } from 'rxjs';
import { DisplayService } from 'app/shared/services/api';
import { EventComponent } from '../../event.component';
import { GraphService ... |
import org.apache.kafka.common.utils.Exit;
import sun.misc.Signal;
import java.util.List;
import kafka.Kafka;
public class Starter {
private static final List<String> SIGNALS = List.of("TERM", "INT", "HUP");
public static void main(String[] args) {
SIGNALS.stream()
.map(Signal::new)
... |
/**
* DPDK callback to release the receive queue.
*
* @param rxq
* Generic receive queue pointer.
*/
static void
mrvl_rx_queue_release(void *rxq)
{
struct mrvl_rxq *q = rxq;
struct pp2_ppio_tc_params *tc_params;
int i, num, tc, inq;
struct pp2_hif *hif;
unsigned int core_id = rte_lcore_id();
if (core_id ==... |
def apply_user_defaults(self, tool):
project = self.project
qt6 = (project.builder.qt_version >= 0x060000)
self.sip_file = 'qscimod6.sip' if qt6 else 'qscimod5.sip'
if self.project.qsci_external_lib:
if self.qsci_features_dir is not None:
os.environ['QMAKEFEAT... |
import {config, createLocalVue, shallowMount} from '@vue/test-utils'
import VueRouter from 'vue-router'
import iView from 'view-design'
import Vuex from 'vuex'
import VeeValidate from 'vee-validate'
import {NetworkProperties} from '@/core/model'
// @ts-ignore
import Transfer from '@/components/forms/transfer/Transfer.v... |
package com.zealotpz.quartz.service;
import com.zealotpz.quartz.annotation.DataOperationLog;
import org.springframework.stereotype.Component;
/**
* description:
*
* @author: zealotpz
* create: 2022-01-07 15:16
**/
@Component
public class TestService {
@DataOperationLog(bizType = "1", msg = "1", notifyType ... |
The US Department of Justice announced late Friday that a Chinese businessman has been charged with hacking into the computer systems of Boeing, Lockheed Martin and other aerospace companies. The alleged hacker, Su Bin, is accused of helping unidentified co-conspirators to identify what to steal from the companies' net... |
// Copyright Materialize, Inc. and contributors. All rights reserved.
//
// Use of this software is governed by the Business Source License
// included in the LICENSE file.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by ... |
def calculate_artwork_dimensions(sender, instance, **kwargs):
dimension_fields_changed = ('image_height' in instance.changed_fields or
'image_width' in instance.changed_fields or
'measurement_units' in instance.changed_fields)
if (dimension_field... |
package gozmo
type AnimationAction struct {
ComponentName string
Attr string
Value interface{}
Interpolate bool
}
type AnimationFrame struct {
actions []*AnimationAction
}
// An Animation holds data structures that change gameObject attributes.
type Animation struct {
Name string
Fps i... |
<reponame>sepulzera/appliweb
import * as React from 'react';
import { AnyComponent } from '../../types/Types';
import UserContext from './UserContext';
import UserRecord from './UserRecord';
import UserData from './UserData.json';
/** {@link UserContextProvider} Props. */
interface IUserContextProviderProps {
/** ... |
<gh_stars>0
import { Component, OnInit, Output, Input, EventEmitter } from '@angular/core';
import { DecimalPipe } from '@angular/common';
import { MaterializeAction } from 'angular2-materialize';
@Component({
selector: 'drone-option-box',
templateUrl: './drone-option-box.component.html',
styleUrls: ['./drone-op... |
//-----------------------------------------------------------------------------
// Purpose: Fills out a list of handles in the given solid that are at the same
// position as the given handle in the current 2D view.
// Input : pStrucSolid -
// hi -
// hAddSimilarList -
// pnAddSimilar -
// Output : ... |
<filename>frontend/src/components/channel/message/message-toolbar.tsx
import { faPencilAlt, faTimes } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { useDispatch, useSelector } from 'react-redux';
import { getGuildByChannelId } from '../../../store/gu... |
while True:
try :
ch=input()
if len(ch) <= 100 and ch == ch.lower() and ch.isalpha() :
break
except :
continue
L=[]
for i in ch :
L.append(i)
s=set(L)
x=len(s)
if x % 2 == 0 :
print ('CHAT WITH HER!')
else :
print('IGNORE HIM!') |
<reponame>cyberspaceru/gherkin-tag<filename>src/org/jetbrains/plugins/cucumber/psi/impl/GherkinFeatureHeaderImpl.java
package org.jetbrains.plugins.cucumber.psi.impl;
import org.jetbrains.plugins.cucumber.psi.GherkinElementVisitor;
import org.jetbrains.annotations.NotNull;
import com.intellij.lang.ASTNode;
/**
* @au... |
/* check a obj priv admin exists
in: objbprivs granted to user
in: privs to be checked */
int ObOraSysChecker::check_single_option_obj_priv_inner(ObPackedObjPriv& ur_privs, ObRawObjPriv raw_priv)
{
int ret = OB_SUCCESS;
bool exists = false;
if (ur_privs == OBJ_PRIV_ID_NONE) {
ret = OB_ERR_EMPTY_QUERY;
} e... |
/**
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*
*
* @author William Peterson
*
*/
public class HISChangesTest extends DicomDCFCommonTestBase {
/**
* Constructor
*
* @param arg0
*/
public HISChang... |
Abstract 2798: High density of CD68+HLA-DR-macrophages in the stroma of primary melanoma correlates with an unfavorable immune microenvironment as assessed by Digital Spatial Profiling
Introduction: The role of macrophages (Mφ) in melanoma progression is controversial, as they have been shown to both favor and inhibit... |
def is_palindrome(input):
if len(input) < 2:
return True
first_char = input[0]
last_char = input[-1]
return first_char == last_char and is_palindrome(input[1:-1]) |
/*!
* Copyright (c) Microsoft. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project.
*/
import { useServiceList } from '~hooks/api/useServiceList'
import { useCurrentUser } from '~hooks/api/useCurrentUser'
import { ServiceInput, ServiceStatus } from '@cbosuite/schema/dist/client-typ... |
Response of bone and cartilage cells to biomaterials in vivo and in vitro.
In vivo and in vitro models have been developed to study the bone/material interface. The in vivo model exploits the osteogenesis that accompanies marrow ablation of the rat tibia and uses morphological and biochemical changes in extracellular ... |
<gh_stars>10-100
import type { Config } from '../typings/projectType';
import { getRootFile } from './getRootFile';
const tramvaiConfigNames = ['tramvai.json', 'platform.json'];
export function getTramvaiConfig(
rootDir?: string
): {
content: Config;
isSuccessful: boolean;
path?: string;
configName?: string... |
//--------------------------------------------------------------------------------------
// File: PrimitiveBatch.cpp
//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
//
// http://go.microsoft.com/fwlink/?LinkID=615561
//-------------------------------------------... |
/**
* Converts the image files in a directory to a PDF file that acts as a photo album.
* @since 2.1.1 (imported from itexttoolbox project)
*/
public class PhotoAlbum extends AbstractTool {
static {
addVersion("$Id: PhotoAlbum.java 3451 2008-05-26 02:56:13Z xlv $");
}
/**
* Constr... |
<filename>sources/com/google/android/gms/internal/ads/zzagx.java
package com.google.android.gms.internal.ads;
import android.os.IInterface;
import android.os.RemoteException;
public interface zzagx extends IInterface {
void zza(zzagu zzagu, String str) throws RemoteException;
}
|
/**
* Encloses information about a packed file. This class abstracts the way file data is stored to
* package.
*
* @author Johannes Lehtinen <johannes.lehtinen@iki.fi>
*/
public class PackFile implements Serializable
{
static final long serialVersionUID = -834377078706854909L;
/**
* Only available w... |
def unpack_udp(pkt):
d = unpack_ip(pkt)
if not is_udp(d): return None
o = d["ip_data_offset"]; udp_hdr, udp_data = pkt[o:o+8], pkt[o+8:]
s_port, d_port, _, _ = struct.unpack("!HHHH", udp_hdr)
d.update(source_port = s_port, dest_port = d_port,
udp_data = u... |
// declare custom listener for test
class CustomListener implements DataChangeListener{
int nbOfNotif = 0;
public void dataChange(ArrayList<DataEvent> events) {
nbOfNotif++;
}
public int getNbOfNotif() {
return nbOfNotif;
}
} |
// Storage database class.
class Database {
std::unique_ptr<DatabaseImpl> impl;
friend class DatabaseImpl;
public:
inline static constexpr auto CLEANUP_PERIOD = 10s;
inline static constexpr int64_t SIZE_LIMIT = int64_t(3584) * 1024 * 1024;
explicit Database(const std::filesystem::path& db_path);
... |
def find_shift_amount(A):
l = 0
r = len(A)-1
if A[l] < A[r]:
return 0
while r-l > 1 and A[l] >= A[r]:
m = l + (r-l)//2
if A[l] > A[m]:
r = m
continue
if A[m] > A[r]:
l = m
continue
return 0
return r |
import type { MikroORM } from '@mikro-orm/core';
import { Logger, QueryOrder } from '@mikro-orm/core';
import { Author2, Book2 } from '../../entities-sql';
import type { MySqlDriver } from '@mikro-orm/mysql-base';
import { initORMMySql, wipeDatabaseMySql } from '../../bootstrap';
describe('filters [mysql]', () => {
... |
<filename>projects/ngx-flamegraph/src/lib/utils.ts
export interface FlamegraphColor {
hue: number | [number, number];
saturation: number | [number, number];
lightness: number | [number, number];
}
export interface Color {
hue: [number, number];
saturation: [number, number];
lightness: [number, number];
}
... |
/**
* Cleans the table data that contains the list of services provided by the currently selected prodiver.
*/
private void cleanTableData() {
while (tableData.getRowCount() != 0) {
tableData.removeRow(tableData.getRowCount() - 1);
}
} |
package controllers
import (
"fmt"
"io/ioutil"
"os"
"strings"
"github.com/opensourceways/app-cla-server/config"
"github.com/opensourceways/app-cla-server/dbmodels"
"github.com/opensourceways/app-cla-server/models"
"github.com/opensourceways/app-cla-server/pdf"
"github.com/opensourceways/app-cla-server/util"
... |
def write(self, dacData, tems = (0,)):
doc = self.getDoc()
gl = doc.createElementNS(None, 'LATC_XML')
doc.appendChild(gl)
for tem in tems:
gt = doc.createElementNS(None, 'TEM')
gt.setAttributeNS(None, 'ID', str(tem))
gl.appendChild(gt)
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.