content stringlengths 10 4.9M |
|---|
Odessa Games
NEW
contact us at odessalimited@gmail.com
Nickname:
Team: Auto Blue Red
Connecting.. Play
Region:
World: 1 Change
Music: None 1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Back
Options Background new old Controller Support On Off
Back
Forgotten your password?
Back
Password recovery
Ba... |
/**
* @return The average keys received from the DHT. Only evaluates rawKeys.
*/
public double avgStoredKeys() {
synchronized (lock) {
final int size = rawResult.size();
int total = 0;
for (Map<Number640, Byte> map : rawResult.values()) {
Collection<... |
// This file is part of caniuse-serde. It is subject to the license terms in the COPYRIGHT file found in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/caniuse-serde/master/COPYRIGHT. No part of predicator, including this file, may be copied, modified, propagated, or dis... |
/*====================================================================*\
FUNCTION : ProUtilDisp
PURPOSE : Display a feature tree in an information window
\*====================================================================*/
static ProError ProUtilDisp(char *text, ProBool move_carret)
{
ProError err;
wchar_... |
/**
* Provides the functionality to communicate with the database and perform queries
* pertaining to Discussions
*
* @author Tyler Haigh - C3182929
* @author Simon Hartcher - C3185790
* @author Josh Crompton - C3165877
*
*/
public class DiscussionManager extends DataManager {
private final Logger logger = L... |
import React, { FC } from "react";
import Lottie from "lottie-react";
import loadingAnim from "./anim.json";
import Styles from "./Loading.module.css";
const Loading: FC = () => (
<div className={Styles["blui-ldr"]}>
<div className="w-64">
<Lottie loop={true} autoplay={true} animationData={loadingAnim} />... |
/**
* Metodo necessario para auxiliar no algoritmo de conjuntoAnulavel
* testa se em uma determinada producao existe apenas terminais
* @param s producao a ser analisada
* @return true caso exista apenas terminais, false caso exista pelo menos um nao terminal.
*/
public boolean isOnlyTerminal(S... |
def git_checkout(self, component, git_url, git_branch, update):
if update:
subprocess.run(['git', 'remote', 'prune', 'origin'],
cwd=self.component_srcdir(component), check=True)
if self.replace_sources:
subprocess.run(['git', 'clean', '-dxfq'],
... |
def main():
parser: argparse.ArgumentParser = argparse.ArgumentParser(
description="This script takes an directory with ELAN files and "
"saves the audio and output text in JSON format to a file")
parser.add_argument("-i", "--input_dir",
... |
<reponame>StuyPulse/PEGasus1
package edu.stuy.commands;
import edu.stuy.Robot;
import edu.wpi.first.wpilibj.command.Command;
/**
* Controls the lift, using the right joystick of the operator pad
*/
public class LiftControlCommand extends Command {
public LiftControlCommand() {
requires(Robot.lift);
... |
Tilting at Windmills
Harnessing wind energy is one of the pressing challenges of our time. The scale, complexity, and robustness of wind power systems present compelling cyber-physical system design issues. In response to these emerging challenges, Purdue has initiated strategic partnerships for infrastructure develop... |
def add_host(self, host_config: Dict):
hostname = [*host_config][0]
self.connections.hosts = [*self.connections.hosts, hostname]
self.connections.host_config = {
**self.connections.host_config, **host_config
} |
/**
* Created by lintzuhsiu on 14/11/15.
*/
public class TSLScrollView extends ScrollView {
private View firstView;
private View headerView;
private int currentScrollY;
private boolean isHeaderFixed;
public TSLScrollView(Context context) {
this(context, null);
}
public TSLScrol... |
/**
* Certain color values of a given color.
*
* @name Date Values
* @type EXPRESSION
* @pattern [the] (hex[adecimal]|red|green|blue|alpha) value of %color%
* @pattern %color%'[s] (hex[adecimal]|red|green|blue|alpha)
* @since ALPHA
* @author Mwexim
*/
public class ExprColorValues extends PropertyExpression<Obj... |
import json
import asyncio
import websockets
from .utils import newuid, new_node, ham_mix
from jumpscale import j
JSConfigBase = j.tools.configmanager.base_class_config
def format_put_request(soul, **kwargs):
ch = {
'#': newuid(),
'put': {
soul: new_node(soul, **kwargs)
}
... |
<filename>src/Parser.hs<gh_stars>0
{-# LANGUAGE OverloadedStrings #-}
module Parser
( parseRPN
, infixToRPN
)
where
import Control.Monad
import Data.Char
import Data.Text ( Text )
import qualified Data.Text as T
import qualified Data.Text.Re... |
<reponame>henrisusanto/loyalty-app
import './loyaltycore.eventregister'
// import './fnbtransaction.eventregister'
// import './birthdaypoint.eventregister'
// etc.. |
def forward(self, X, y):
eps = 1e-5
D = torch.matmul(X, self.W)
D = torch.sigmoid(D)
D = torch.clip(D, eps, 1 - eps)
Phi = torch.sum(-(y * torch.log(D) + (1 - y) * torch.log(1 - D)))
W1 = torch.squeeze(self.W)
L2 = torch.sum(torch.mul(W1, W1))
retu... |
A passive lossless snubber cell with minimum stress and wide soft-switching range
A passive lossless snubber cell and its dual structure for reducing the switching loss of a range of switching converters are presented. The proposed snubber cell has several advantages over existing snubbering techniques. First, it prov... |
// A server object maps incoming RPC requests to a provided service interface.
// The service interface methods are executed inside a worker thread.
// Non-thread-safe.
class server : boost::noncopyable {
public:
server();
~server();
void register_service(service& service);
void register_service(service& servi... |
<reponame>liugjin/videoservice
import { Sink } from '../component';
export interface MediaTrack {
type: string;
encoding?: string;
mime?: string;
codec?: any;
}
export declare class MseSink extends Sink {
private _videoEl;
private _done?;
private _lastCheckpointTime;
onSourceOpen?: (mse:... |
/**
* Classify documents, run trials, print statistics from a vector file.
@author Andrew McCallum <a href="mailto:mccallum@cs.umass.edu">mccallum@cs.umass.edu</a>
*/
public abstract class Vectors2Classify
{
private static Logger logger = MalletLogger.getLogger(Vectors2Classify.class.getName());
private static L... |
<reponame>lukaselmer/adventofcode<filename>2017/5/run.ts
import * as fs from "fs";
export function day5() {
console.log(`Part 1: ${jumpUntilEscaped(readJumpInstructions(), () => 1)}`);
console.log(
`Part 2: ${jumpUntilEscaped(
readJumpInstructions(),
jump => (jump >= 3 ? -1 : 1)
)}`
);
}
fun... |
export declare const cibAlipay: any[]; |
#ifndef __RMQ_H__
#define __RMQ_H__
#ifdef __VMS
#include <inttypes.h>
#else
#include <stdint.h>
#endif
#include <stdlib.h>
#include "amqp.h"
#ifdef __VMS
#ifdef AMQP091
#include "amqp_framing_091.h"
#else
#include "amqp_framing_080.h"
#endif
#else
#include "amqp_framing.h"
#endif
#ifndef RMQ_MAX_FRAME
#if defined(_... |
def resample_uv_to_bbox(
predictor_output: DensePoseChartPredictorOutput,
labels: torch.Tensor,
box_xywh_abs: Tuple[int, int, int, int],
) -> torch.Tensor:
x, y, w, h = box_xywh_abs
w = max(int(w), 1)
h = max(int(h), 1)
u_bbox = F.interpolate(predictor_output.u, (h, w), mode="bilinear", alig... |
import numpy as np
def _connectivity(V, idx):
idx = np.asmatrix(idx)
mat1 = np.tile(idx, (V.shape[1], 1))
mat2 = np.tile(idx.T, (1, V.shape[1]))
conn = np.equal(np.mat(mat1), np.mat(mat2))
return np.mat(conn, dtype='d')
def connectivity(V, H): # derived from nimfa
idx = np.asmatrix(np.argma... |
<gh_stars>0
import { Controller, Get, Post, Body, Param, Put, Delete } from '@nestjs/common';
import { FilmsService } from './films.service';
import { Film } from '../entities/film.entity';
@Controller('films')
export class FilmsController {
constructor(private filmService: FilmsService) {}
@Get()
find... |
def resolve():
N = int(input())
for _ in range(N):
length_of_array = int(input())
A = [int(x) for x in input().split(" ")]
isFound = False
for i in range(length_of_array - 2):
if A[i] + A[i+1] <= A[length_of_array-1]:
isFound = True
print(i+1, i+2, length_of_array)
... |
Experimental analysis of damage mechanism and shrinkage performance of recycled concrete
This article analyzes the interface structural features and damage mechanism of recycled aggregate concrete. Recycled aggregates are divided into three types by particle shaping. Through the experiments, the shrinkage performance ... |
def is_error(self, word: str) -> bool:
result = False
if self.isInput(word):
word2 = self.remove_char(word)
if not (word2.lower() in self.words):
if word2.lower() in self.names:
if not (self.names[word2.lower()] == word2):
... |
// --- Address Change Listener
static class AddressChangeListener extends Thread {
public void run() {
for (;;) {
// wait for configuration to change
if (notifyAddrChange0() != 0)
return;
synchronized (lock) {
ch... |
// Test that the Settings App installs correctly when it's set to be disabled
// via SystemFeaturesDisableList policy, but doesn't launch.
IN_PROC_BROWSER_TEST_P(SettingsAppIntegrationTest, SettingsAppDisabled) {
{
ListPrefUpdate update(TestingBrowserProcess::GetGlobal()->local_state(),
... |
import * as core from "@actions/core";
import * as crypto from "crypto";
import { V1JobStatus } from "@kubernetes/client-node";
import k8s = require("@kubernetes/client-node");
const generateJobName = (action: string, database_name: string) => {
const fullJobName = `gha-review-service-${action}-${database_name}`;
... |
<filename>src/visualization.opengl.renderer.geometry/BoundingOctreeRenderer.cpp
#include <visualization.opengl/MiniGL.h>
#include <simulation.geometry/boundingVolumes/BoundingSphere.h>
#include "BoundingOctreeRenderer.h"
using namespace nspace;
using namespace std;
int OctreeRenderer::level =0;
bool OctreeRende... |
def array_from_compressed_json(value, widget):
comp = value.pop('compressed_buffer', None) if value is not None else None
if comp is not None:
if six.PY2:
comp = comp.tobytes()
value['buffer'] = zlib.decompress(comp)
if six.PY2:
value['buffer'] = memoryview(value[... |
/**
* This activity displays the history of past translations.
*
* @author Cedric Beust
* @author Daniel Rall
*/
public class HistoryActivity extends ListActivity implements OnItemClickListener {
private SimpleAdapter mAdapter;
private List<Map<String, String>> mListData;
private History mHistory;
... |
def check_ready(self):
was_ready = is_flag_set(self.expand_name('ready'))
toggle_flag(self.expand_name('ready'), self.is_ready)
if self.is_ready and was_ready and self.is_changed:
set_flag(self.expand_name('ready.changed'))
clear_flag(self.expand_name('changed')) |
/**
* Test to ensure labeled anomalies are filtered out and not notified
*/
@Test
public void testAlertFilterFeedback() throws Exception {
this.alertConfig.getProperties().put(PROP_DETECTION_CONFIG_IDS, Collections.singletonList(detectionConfigId3));
this.alertConfig.setVectorClocks(Collections.singleto... |
Action attribution in schizophrenia: evidencing neural correlates of reasoning?
The association between the bodily representation of the individual in neural activity of the brain and the construct of the self appears as a consistent and key relationship in varied self-perceptions. Nonetheless, while its perceptual re... |
def was_overriden(self):
if self._as_widget:
return self._parent.was_overriden
return self._was_overriden |
Tracking mesenchymal stem cell tumor-homing using fluorescent silica nanoparticles.
Stem cell tracking can reveal the underlying biological processes of stem-cell-based therapies such as the migration and biodistribution of human mesenchymal stem cells (hMSCs) in cancer therapy. Nanoparticle-based contrast agents offe... |
/**
* Created by pruiz on 5/4/17.
*/
public class TravelportXMLRequest {
private static Map valuesMap = new HashMap();
private static StrSubstitutor sub;
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSSXXX");
public static String getRequest(FlightsSearchCommand ... |
Solitary Labial Metastasis of Adrenocortical Carcinoma Resembling a Cystic Tumor in a Child
Facial skin metastases account for less than 0.5% of patients with metastatic cancer and most of them originate from malignant melanoma . Because the clinical presentations of skin metastasis are often nonspecific, early detec... |
package user
import "github.com/go-chi/chi"
func Routes(r chi.Router, handler Handler) chi.Router {
r.Post("/create", handler.Create)
r.Get("/", handler.Get)
r.Route("/{id}", func(r chi.Router) {
r.Get("/", handler.GetByID)
r.Post("/", handler.Update)
})
return r
}
|
def simple_cfu(instructions):
saved_instructions = instructions.copy()
class _ASimpleCfu(Cfu):
def elab_instructions(self, m):
for i, instruction in saved_instructions.items():
m.submodules[f"fn{i}"] = instruction
return saved_instructions
return _ASimpleCfu() |
const reactProps = [
'onClick',
'onContextMenu',
'onDoubleClick',
'onDrag',
'onDragEnd',
'onDragEnter',
'onDragExit',
'onDragLeave',
'onDragOver',
'onDragStart',
'onDrop',
'onMouseDown',
'onMouseEnter',
'onMouseLeave',
'onMouseMove',
'onMouseOut',
'onMouseOver',
'onMouseUp',
'class... |
<filename>pkg/kubeadm/init.go
/*
* Copyright 2018 SUSE LINUX GmbH, Nuernberg, Germany..
*
* 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... |
Long-time behavior of the $\omega \to \alpha$ transition in shocked Zirconium: Interplay of nucleation and plastic deformation
We study the thermally activated, slow conversion of the hysteretically retained $\omega$ phase into stable $\alpha$ phase in recovered samples of shocked zirconium. The $\omega$-phase decays ... |
/**
*
* @author Pedro Igor
*
*/
public class CustomIdentityStoreTestCase {
@Test
public void testConfiguration() throws Exception {
IdentityConfigurationBuilder builder = new IdentityConfigurationBuilder();
// let's use this instance to test the custom store configuration and check for th... |
Metabolic Resistance to Acetolactate Synthase Inhibiting Herbicide Tribenuron-Methyl in Descurainia sophia L. Mediated by Cytochrome P450 Enzymes.
Descurainia sophia is one of the most notorious broadleaf weeds in China and has evolved extremely high resistance to acetolactate synthase (ALS)-inhibiting herbicide tribe... |
#include "../../config.h"
#include <stdio.h>
#ifndef HAVE_PNFRONT_H
int main()
{
printf("This program requires library PNFront.\n");
return 0;
}
#else
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include "statelib.h"
#include "pnfront.h"
#include "timerlib.h"
// #define VERIFY_STATIC
// #defin... |
/* Traverse tree 't' breadth-first looking for a process with pid p */
proc_t* LookupPID(proc_t* t, pid_t p) {
proc_t* tmp = NULL;
if (!t)
return NULL;
if (t->pid == p)
return t;
if ((tmp = LookupPID(t->l, p)))
return tmp;
for (; t; t=t->r)
if ((tmp = LookupPID(tmp, p)))
return tm... |
def fit_from_image(self, data, voxelsize, seeds, unique_cls):
fvs, clsselected = self.features_from_image(data, voxelsize, seeds, unique_cls)
self.fit(fvs, clsselected) |
import {
Body,
Controller,
Delete,
Get,
Param,
Post,
Put,
} from "@nestjs/common";
import { TodoService } from "./todo.service";
import { CreateTodoDto } from "./dto/create-todo.dto";
@Controller("todo")
export class TodoController {
constructor(private todoService: TodoService) {}
@Post("add")
add... |
// Clone returns a deep copy of the patch
func (patch *Patch) Clone() *Patch {
clone := objectPool.BorrowPatch()
clone.Baseline = patch.Baseline
clone.Target = patch.Target
clone.Operations = append(clone.Operations, patch.Operations...)
return clone
} |
Selective C-alkylation between Alcohols Catalyzed by N-Heterocyclic Carbene Molybdenum.
The first implementation of a molybdenum complex with an easily accessible bis-N-heterocyclic carbene ligand to catalyze β-alkylation of secondary alcohols via borrowing-hydrogen (BH) strategy using alcohols as alkylating agents is... |
// Function to find Longest Increasing Subsequence in given array
void printLIS(int arr[], int n)
{
set<Node> S;
map<int, int> parent;
for (int i = 0; i < n; i++)
{
Node curr = {arr[i], i};
auto it = S.insert(curr).first;
if (++it != S.end())
S.erase(it);
it = S.find(curr);
parent[i] = (--it)->index;
... |
<filename>src/utils/ObjectContains.ts<gh_stars>0
import isPlainObject from 'lodash/isPlainObject';
import {AnyObject, DeepPartial} from '../@types/Generic';
export function objectContains<TNeedle extends AnyObject, THaystack extends TNeedle = TNeedle>(
haystack: THaystack,
needle: DeepPartial<THaystack>,
): boolea... |
def generate_grid(self, background):
pygame.draw.line(background, (0, 255, 0), (800, 0), (0, 0))
pygame.draw.line(background, (0, 255, 0), (800, 70), (0, 70))
pygame.draw.line(background, (0, 255, 0), (320, 70), (320, 0))
pygame.draw.line(background, (0, 255, 0), (800, 35), (0, 35)) |
def _FormatTestData(self, data):
hexadecimal_lines = []
data_size = len(data)
for block_index in range(0, data_size, 16):
data_string = data[block_index:block_index + 16]
hexadecimal_string = ', '.join([
'0x{0:02x}'.format(byte_value)
for byte_value in data_string[0:16]])
... |
def add_learner_hook(hooks: dict, hook: LearnerHook) -> None:
position = hook.position
priority = hook.priority
idx = 0
for i in reversed(range(len(hooks[position]))):
if priority >= hooks[position][i].priority:
idx = i + 1
break
assert isinstance(hook, LearnerHook)
... |
Design and implementation of FIR digital wave filter based on DSP
This paper discusses the general principles of FIR digital wave filter, describes a design method for FIR digital electric wave filter based on DSP processor with TMS320VC54x fixed point series. The coefficient of wave filter is obtained using the MATLA... |
package controllers
import (
"github.com/nexus-uw/paisley/app/routes"
"github.com/revel/revel"
"github.com/google/uuid"
"github.com/nexus-uw/paisley/app/models"
)
type Subscriptions struct {
Application
}
func (c Subscriptions) checkUser() revel.Result {
if user := c.connected(); user == nil {
c.Flash.Erro... |
def startPayment():
pg = PaymentGateway()
nextUrl=""
try:
if 'mail' in request.args and 'currency' in request.args and 'amount' in request.args and 'redirectUrl' in request.args and 'paymentMethod' in request.args:
nextUrl = pg.processByDemandPayment(
request.args.get('ma... |
package main
import (
"path/filepath"
"strings"
"sync"
"github.com/raggaer/tiger/app/config"
"github.com/raggaer/tiger/app/xml"
"github.com/schollz/closestmatch"
)
type xmlTaskList struct {
Path string
rw sync.Mutex
Errors []*xmlTaskError
Monsters... |
use instruction_def::*;
use test::run_test;
use Operand::*;
use Reg::*;
use RegScale::*;
use RegType::*;
use {BroadcastMode, Instruction, MaskReg, MergeMode, Mnemonic, OperandSize, Reg, RoundingMode};
#[test]
fn vptestmw_1() {
run_test(
&Instruction {
mnemonic: Mnemonic::VPTESTMW,
o... |
import drivers
import math
drivers.LED4.on()
from vision import Camera, VisionModule
import cv2
drivers.LED4.off()
PI = math.PI
ROBOT_LATERAL = 3 + 5 / 8
ROBOT_AXIAL = 3 + 3 / 8
BASE_ORIGIN = [4 * 12, 4 * 12]
ROBOT_ORIGIN_POSES = {
"YELLOW": [BASE_ORIGIN[0] + 1 + ROBOT_LATERAL / 2, BASE_ORIGIN[1] + 1 + ROBOT_AX... |
<reponame>liunan/compiler
#include "cklanemap.h"
#include "cklanescene.h"
#include "ifeature.h"
#include "ifeaturefactory.h"
#include <qgraphicsview.h>
#include <QGraphicsLineItem>
#include <QGraphicsEllipseItem>
#include <QPainterPath>
#include <QGraphicsPathItem>
#include <QPluginLoader>
#include <Q... |
<reponame>claassenk/karenapp
package main
import (
"fmt"
"log"
"math/big"
"net/http"
"github.com/btcsuite/btcec"
"github.com/btcsuite/btcnet"
"github.com/btcsuite/btcutil"
)
const ResultsPerPage = 128
const PageTemplateHeader = `<html>
<head>
<title>All bitcoin private keys</title>
<meta charset="utf8" />
... |
/***************************************
Aging Module's HUMBER API Interfaces
*****************************************/
int32
ctc_humber_aging_set_property(ctc_aging_prop_t aging_prop, uint32 value)
{
uint8 value_8 = 0;
uint32 value_32 = 0;
bool value_b = FALSE;
switch( aging_prop )
{
case... |
/**
* Given StructureMode
* when convert is called
* then value should be correctly converted.
*/
@Test
public void convert_StructureMode_ShouldCorrectlyConvert() {
TypeConversionService conversionService = createWithDependencies();
Assertions.assertEquals(net.minecraft.world.lev... |
// Complement gives the elements in the last element of seqs that are not in
// any of the others.
// All elements of seqs must be slices or arrays of comparable types.
//
// The reasoning behind this rather clumsy API is so we can do this in the templates:
// {{ $c := .Pages | complement $last4 }}
func (ns *Namespa... |
<filename>Chapter10/StanfordLexicalDemo.java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package chapter10;
import edu.stanford.nlp.ling.CoreLabel;
import edu.stanford.nlp.ling.S... |
A theoretical analysis of the parameters in a Hopfield/Tank model for solving TSP
Some parameter rules for the Hopfield-Tank model are given. It has been found that if the time step Delta t is not enough, the model may converge to an invalid solution. Thus, this model requires a lot of time to find a good solution, es... |
use criterion::{criterion_group, criterion_main, Criterion};
use tempdir::TempDir;
use std::path::{Path, PathBuf};
use anyhow::Context;
use hotg_rune_cli::run::{
Image, image::ImageSource, Sound, sound::AudioClip, new_capability_switcher,
};
use hotg_rune_wasmer_runtime::Runtime;
use hotg_runicos_base_runtime::Bas... |
def load_data(self, path: Path) -> bool:
self._logger.debug("LOADING DATA")
if not path.exists():
self._logger.debug(f'No report found for [{path.resolve()}]')
return True
self._logger.debug("PATH ==> {}".format(path))
data = read_json(path)
self._logger.d... |
import * as Koa from 'koa';
export type ServerApplication = Koa<Koa.DefaultState, Koa.DefaultContext>;
export interface StartHandler {
onStartAsync(app: ServerApplication): Promise<void>;
}
|
def py_exe(self):
return self.py_dir / 'python.exe' |
#include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int>>;
typedef long long ll;
#define all(x) (x).begin(), (x).end()
template <class T>
std::ostream& operator<<(std::ostream& os, const std::vector<T>& V) {
os << "[";
for (int i = 0; i < V.size(); ++i) {
if (i > 0) os << ", ";
... |
def process_austin_parcel_data():
time0 = time.time()
print('Starting to read parcel data')
parcel_data = gpd.read_file(austin_parcel_path)
print('Finished reading parcel data, took {} seconds. Now processing base zones.'.format(time.time() - time0))
def format_basezone(s):
s = str(s)
... |
/**
* Test the internal method to encode and decode lists.
*/
@Test
public void testEncodeListAndDecodeList() {
UriActiveSearchFilterImpl filter = Spring.getBeanOfType(UriActiveSearchFilterImpl.class);
List<String> list = new ArrayList<String>();
list.add("one");
list.add("two");
StringBuilder encoding =... |
// GetSchema wraps RPCAgent.GetSchema
func (tm *TabletManager) GetSchema(ctx context.Context, args *gorpcproto.GetSchemaArgs, reply *myproto.SchemaDefinition) error {
ctx = callinfo.RPCWrapCallInfo(ctx)
return tm.agent.RPCWrap(ctx, actionnode.TabletActionGetSchema, args, reply, func() error {
sd, err := tm.agent.Ge... |
/****************************************************************************/
/**
*
* Break occurred signalling that a recovery should be performed. Call the
* prerecovery user handler, and then suspend the processor, to signal to
* the TMR Manager hardware that it should reset the TMR sub-system.
*
* @param InstanceP... |
<gh_stars>10-100
import { AccessoryConfig } from "homebridge"
export interface Config extends AccessoryConfig {
services?: Service[]
initialVolume?: number
initiallyMuted?: boolean
logarithmic?: boolean
switchVolumeDelta?: number
switchDelay?: number
}
export enum Service {
Lightbulb = "lightbulb",
Sp... |
def extract_from_itch_group(group_page):
soup = BeautifulSoup(group_page, 'lxml')
ended = soup.find_all('div', class_ = 'not_active_notification')
urls, more = set(), set()
if ended:
print(" Sale ended")
return urls, more
games = soup.find_all('div', class_='game_cell')
for game ... |
/*
* Copyright (C) 2007 <NAME>
* Hochschule fuer Technik Rapperswil
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later vers... |
These are external links and will open in a new window
These are external links and will open in a new window
These are external links and will open in a new window
Image copyright EPA Image caption It is estimated that there are as many as 260,000 illicit guns in Australia
Australia is bringing in its first nation... |
.
OBJECTIVE
To study the association of vitamin D level with asthma control and pulmonary function in children with asthma.
METHODS
A total of 150 children with asthma were enrolled as observation group, and 55 healthy children were enrolled as control group. According to the level of asthma control, the children we... |
package main
import (
"log"
"os"
"time"
"github.com/urfave/cli"
)
var version = time.Now().String()
func main() {
if err := newApp().Run(os.Args); err != nil {
log.Fatalln(err)
}
}
func newApp() *cli.App {
app := cli.NewApp()
app.Version = version
app.EnableBashCompletion = true
app.Name = "atlas"
app... |
A first-in-human phase 1 and pharmacological study of TAS-119, a novel selective Aurora A kinase inhibitor in patients with advanced solid tumours
Background This is a first-in-human study with TAS-119, an Aurora A kinase (AurA) inhibitor. Methods Patients with advanced, refractory, solid tumours were enrolled into 5 ... |
def check_user(username, error_message=''):
user_re = re.compile(r"^[a-zA-Z0-9_-]{6,20}$")
if not user_re.match(username):
error_message = 'The username does not fit the requirements'
k = UserData.by_name(username)
if k:
error_message = 'This username is already used'
return error_me... |
Mr. Hu’s wife, Zeng Jinyan, herself a well-known blogger and rights advocate, was distraught in a telephone interview on Thursday.
“I feel hopeless and helpless,” said Ms. Zeng, who is under house arrest with the couple’s infant daughter in their suburban Beijing apartment, though she was allowed to visit her husband ... |
#ifdef WITH_JEMALLOC
#ifndef JEMALLOC_EXPORT
#define JEMALLOC_EXPORT // to tell jemalloc that it is statically linked
#endif
#include "jemalloc/jemalloc.h" // don't forget to add jemalloc/include and msvc_compat to the include path
#include <new>
#ifdef _DEBUG
#ifdef _WIN64
#pragma comment(lib, "jemalloc-... |
def eval(self, data, data_store, *, exclude=None):
exclude = [] if exclude is None else exclude
result = {}
for key, value in self.items():
if key in exclude:
continue
if value is not None and callable(value):
result[key] = value(data, data... |
Visions of Mars
Visions of Mars offers a visual tour of the main geographic features of Mars as they have been recorded by twenty years of remote-sensing missions, ranging from the Viking orbiter/lander of the late 1970s through the Pathfinder orbiter/rover of the mid-1990s and up to the twin rover missions of today. ... |
// Copyright (c) 2017- PPSSPP Project.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, version 2.0 or later versions.
// This program is distributed in the hope that it will be useful,
// b... |
<gh_stars>0
/*
* This file is part of UDAO
* https://github.com/perbone/udao/
*
* Copyright 2013-2018 <NAME>
*
* 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://... |
/**
* Before doing anything with multiplayer, the client must send this packet.
*/
public class PacketSignalMultiplayer extends Packet {
@Override
public void write(ByteDataOutputStream stream) throws IOException {
// just a signal, no data
}
@Override
public void read(ByteDataInputStream stream, ... |
from contextlib import contextmanager
from . import config
import json
import flask
from functools import wraps
import psycopg2.extras
import psycopg2.extensions
psycopg2.extensions.register_adapter(dict, psycopg2.extras.Json)
def with_pg_cursor(fn):
"""
Injects an argument `cur` containing a postgres cursor ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.