content stringlengths 10 4.9M |
|---|
/** A servlet that accesses an EJB and tests whether the call argument
is serialized.
@author Scott.Stark@jboss.org
@version $Revision: 61034 $
*/
public class EJBServlet extends HttpServlet
{
private static final Logger log = Logger.getLogger(EJBServlet.class);
protected void processRequest(HttpServlet... |
<gh_stars>0
package net.osmand.aidlapi.note;
import android.os.Bundle;
import android.os.Parcel;
import net.osmand.aidlapi.AidlParams;
public class TakePhotoNoteParams extends AidlParams {
private double latitude;
private double longitude;
public TakePhotoNoteParams(double latitude, double longitude) {
this.l... |
Cinacalcet therapy in an infant with an R185Q calcium-sensing receptor mutation causing hyperparathyroidism: a case report and review of the literature
Abstract Background Neonatal severe hyperparathyroidism (NSHPT) is commonly treated with either parathyroidectomy or pharmacologic agents with varying efficacy and num... |
/*
* ******************************************************************************
* *
* *
* * This program and the accompanying materials are made available under the
* * terms of the Apache License, Version 2.0 which is available at
* * https://www.apache.org/licenses/LICENSE-2.0.
* *
* * See the NO... |
/**
* Attempts to build a simple directed relationship in the graph between
* two objects represented as srcEntity and tgtEntity. This function recursively calls mapEntity on the
* target entity first before attempting to create the relationship. In this way, the object graph
* is traversed in depth... |
// Upload file to aws s3
func (cloud *AWSS3) Upload(ctx context.Context, header *multipart.FileHeader) (string, error) {
file, err := header.Open()
if err != nil {
return "", err
}
sess, err := cloud.session()
if err != nil {
return "", err
}
uploader := s3manager.NewUploader(sess)
newFileName := fmt.Sprint... |
/**
* Created by Timor Morrien
*/
public class VoiceHandler {
public FactoryMap factoryMap;
public int tickBuffer;
private SpeechRecognizer recognizer;
private List<IVoiceCommand> voiceCommands;
private Path configFile;
public VoiceHandler() {
voiceCommands = new ArrayList<>();
... |
//------------------------------------------------------------------
// readSclkOnly()
//
// Read sclk from a BurstData file and skip the rest
//------------------------------------------------------------------
void BurstData::readSclkOnly()
{
if (mode_ == "w" || mode_ == "wb")
{
BurstDataError e("Can't re... |
// UpdateExtendedDaemonSetReplicaSetStatusCondition used to update a specific ExtendedDaemonSetReplicaSetConditionType.
func UpdateExtendedDaemonSetReplicaSetStatusCondition(status *datadoghqv1alpha1.ExtendedDaemonSetReplicaSetStatus, now metav1.Time, t datadoghqv1alpha1.ExtendedDaemonSetReplicaSetConditionType, condit... |
def mixed_hcv(fastq1, fastq2, outpath, n_threads=4):
extensions = ['.1.bt2', '.2.bt2', '.3.bt2', '.4.bt2', '.rev.1.bt2', '.rev.2.bt2']
if not all([os.path.exists(refpath+ext) for ext in extensions]):
bowtie2.build(bowtie2_version, refpath)
outpath.write('subtype,count,total,perc\n')
counts, disc... |
<filename>contentstack/entry.py
"""
The Get a single entry request fetches a particular entry of a content type.
API Reference: https://www.contentstack.com/docs/developers/apis/content-delivery-api/#single-entry
"""
import logging
from urllib import parse
from contentstack.entryqueryable import EntryQueryable
# ***... |
Juxtaposition of Organizational Competitive Factors and Performance Evaluation in Conjunction with Their Implications for HRM in MNCs: Part Two, Statistical Correlation Analysis within the Polish Findings
Abstract Objective – The main goal of the paper is to determine whether there are any identifiable patterns of HRM... |
<filename>src/chip8/mod.rs
mod cpu;
pub use self::cpu::Chip8Cpu; |
package gov.nasa.pds.data.pds3.model;
public class Pds3Mission
{
public String lid;
public String title;
public String[] altId;
public String[] altTitle;
public String name;
public String description;
public String objective;
public String startDate;
public String stopDat... |
/* returns 1 if filename does not exist on the host site (=> it should be
* deleted on client site) else it returns 0 */
int
NotOnHost(char *filename, struct filestr *okhostfiles)
{
int i, rc;
struct stat status;
struct filestr *tf;
char *hostfile;
stat(filename, &status);
if ((status.st_mode &... |
<gh_stars>0
// @vue/component
export const AMPMustache = {
name: 'AmpMustache',
render(h) {
return h('template', {
props: {
...this.$props
},
attrs: {
type: 'amp-mustache'
}
}, this.$slots.default)
}
}
|
package io.datavines.server.coordinator.repository.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashC... |
use std::io::{self, BufReader, Read, Write};
use std::net::{TcpListener, TcpStream};
fn main() {
let controller = TcpListener::bind("0.0.0.0:443").expect("Could not bind to the port");
for mut in_stream in controller.incoming() {
match in_stream {
Err(e) => {
eprintln!("Fa... |
/**
* Utility class converting standard objects to and from {@link Writable}s.
*/
public abstract class WritableUtils {
@SuppressWarnings({ "unchecked", "rawtypes" })
public static Writable toWritable(Object object) {
if (object instanceof Writable) {
return (Writable) object;
}
... |
class UnknownResponseStream:
"""
Valid User: Client
Pass handshake and send nonsense to client
"""
def __init__(self):
self.msgs = [MULTISELECT_PROTOCOL_ID,
'you dont know me']
async def read(self):
return self.msgs.pop(0).encode()
@staticmethod
as... |
A Novel Approach for Implementing Security in ATM Machines to provide Authentication Soundness
--In this paper, we can prevent the bogus servers and the user collusion for attaining credential Privacy. Bogus servers are the service providers who communicate with the legal users and they can recover the credential. Use... |
// called by PIZ main thread : vcf_zfile_read_one_vb. returns the first section of this vb_i
Section sections_vb_first (uint32_t vb_i, bool soft_fail)
{
Section sl=NULL;
unsigned i=0; for (; i < z_file->section_list_buf.len; i++) {
sl = ENT (SectionEnt, z_file->section_list_buf, i);
if (sl->vblo... |
Prosecutors have said there is insufficient evidence to suggest the officer who claimed Andrew Mitchell called him a pleb was lying as they announced one charge of misconduct against another constable over the affair.
Alison Saunders, the director of public prosecutions, said neither was there sufficient evidence "to ... |
Threats to the Economic Security of the Agricultural Sector of the Republic of Mordovia
Introduction. The issue of food security and the task of increasing Russia’s exports make it necessary to identify and monitor the threats to the economic security of agriculture in each region; therefore the topic is of particular... |
package co.sentinel.sentinellite.util;
import java.io.IOException;
import java.lang.annotation.Annotation;
import co.sentinel.sentinellite.network.client.WebClient;
import co.sentinel.sentinellite.network.model.ApiError;
import okhttp3.ResponseBody;
import retrofit2.Converter;
import retrofit2.Response;
public class... |
/**
* Stitch images based on current selection: if nothing selected, attempt to stitch all media segments in cluster
* @param stitcher Stitching object to use
* @param libraryFolder Library folder
* @param selectedImages Selected images to stitch
*/
public void stitchImages(MV_Stitcher stitcher, String librar... |
Non-invasive computed tomographic coronary angiography: the end of the beginning.
This editorial refers to ‘Accuracy of MSCT coronary angiography with 64-slice technology: first experience’† by S. Leschka et al. , on page 1482
One of the favourite questions in cardiologists' meetings involving modern imaging modalit... |
<gh_stars>1-10
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/keyspaces/model/GetTableResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#inc... |
// AddRecord adds a new record to the Page, if
// there is not enough room for the record to
// fit within the Page or the remaining Page's
// available space, an error will be returned.
//
// **It should be noted that (on insertion of
// a record) all pages slots are sorted
// lexicography by the prefix of the record
... |
President Trump is expected to reveal 10 of his picks for lower federal courts on Monday — marking the first of many such announcements, a report says.
A senior White House official told The New York Times that Trump would be announcing his conservative nominees on a regular basis, with the first round being made this... |
def cookies(self):
cookie = http.cookies.SimpleCookie()
cookie.load(self.env.get('HTTP_COOKIE', ''))
d = {}
for k in cookie:
d[k] = unquote_guess_decode(cookie[k].value)
return d |
/* Compile a word definition with the non-optimizing compiler. Allocates memory */
void factor_vm::jit_compile_word(cell word_, cell def_, bool relocating)
{
data_root<word> word(word_,this);
data_root<quotation> def(def_,this);
if(word->code && word.value() == special_objects[LAZY_JIT_COMPILE_WORD])
return;
code... |
"""
https://medium.com/@tilakpatidar/building-a-hive-docker-image-for-running-integration-tests-d26a8d058b4a
"""
|
package be.yannickdeturck.lagomshop.item.impl;
import be.yannickdeturck.lagomshop.item.api.Item;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.lightbend.lagom.javadsl.immutable.ImmutableStyle;
import com.lightbend.lagom.serialization.Jsonable;
import org.immutables.value.Value;
import j... |
<filename>sh/sh.go
package sh
import (
"fmt"
"io"
"os"
"os/exec"
"strings"
)
type CommandOutput struct {
Output string
ErrorOutput string
Error error
}
func Command(command ...string) *exec.Cmd {
return CommandWithOutput(os.Stdout, os.Stderr, command...)
}
func Run(command ...string) (output Com... |
<filename>src/layers/core/layer_broadcast.cpp
/*
* EDDL Library - European Distributed Deep Learning Library.
* Version: 1.0
* copyright (c) 2021, Universitat Politècnica de València (UPV), PRHLT Research Centre
* Date: November 2021
* Author: PRHLT Research Centre, UPV, (<EMAIL>), (<EMAIL>)
* All rights reserved
*/
... |
/* Copyright © 2020 EIS Group and/or one of its affiliates. All rights reserved. Unpublished work under U.S. copyright laws.
CONFIDENTIAL AND TRADE SECRET INFORMATION. No portion of this work may be copied, distributed, modified, or incorporated into any other media without EIS Group prior written consent.*/
package c... |
<reponame>auyer/ebiten-vendored-test
// Copyright 2014 <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://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by... |
package keeper
import (
"context"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/supsi-dacd-isaac/parity-cosmos/pm/x/pm/types"
)
func (k msgServer) CreateSla(goCtx context.Context, msg *types.MsgCreateSla) (*types.MsgCreateSlaResponse, error) {
ctx := ... |
def is_real(qid, claims, fiction_filter):
if 'P31' in claims:
for spec in claims['P31']:
if 'id' in spec['mainsnak'].get('datavalue', {}).get('value', {}):
thing = spec['mainsnak']['datavalue']['value']['id']
if thing in fiction_filter:
return ... |
package learn.katas.corejava.ocpkata.io;
import java.io.*;
import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.time.LocalDate;
import java.util.HashSet;
import java.util.Objects;
import java.util.Set;
public class PriceList implements Serializabl... |
Neoliberal common sense in education Part One
In the September 2011 of International Studies of Sociology of Education, Carlos Alberto Torres argues that, despite having utterly failed as a viable model of economic policy, neoliberalism has become the new ‘common sense’ in shaping contemporary concepts of government a... |
Intracranial pressure monitoring during stereoelectroencephalography implantation: a technical note.
Stereoelectroencephalography (SEEG) has become increasingly employed as a critical component of epilepsy workups for patients with drug-resistant epilepsy when information from noninvasive studies is not conclusive and... |
/**
* Classe d'un pirate.
*
* @version 1.1
* @author Camille Constant, Adrian Fraisse
*
*/
public class Pirate {
/**
* Le chemin vers l'image du pirate.
*/
private String avatar;
/**
* Attribut signifiant la vitalité du pirate.
*/
private boolean isVivant = true;
/**
* Coordonnee en abscisse d... |
def full_text(self):
try:
format = self.result['online_format']
except KeyError:
raise ObjectNotOnline(f'{self.result["id"]} does not have an online_format key.')
url = self.result.get('url') or self.result.get('item').get('url')
return self.full_text_from_url(url... |
def fit(self,
lasso_solution=None,
solve_args={'tol': 1.e-12, 'min_its': 50},
debiasing_args={}):
self._penalty = weighted_l1norm(self.feature_weights, lagrange=1.)
if lasso_solution is None and not hasattr(self, "lasso_solution"):
problem = simple_problem... |
import {Palette} from './Color';
export const YoDonoTheme = {
activeOpacity: 0.85,
colors: {
primary: Palette.Green,
},
dark: false,
};
|
Read “X Faction Soldiers”
Read “The Big Boots – Part 2”
I pull up to Aaron’s house and find him waiting on the lawn. His tie is loose and his wrinkled shirt has been hastily tucked into his trousers. I open the door and he clumsily lumbers himself into the passenger’s seat.
“Is everything sorted with Amelia?” he ask... |
/**
* {@code Config} class handles the parameters that should be read
* from configuration file.
* A {@code config.properties} must exist in the resources directory.
* <p>
* The parameters are divided into a number of sections:
* <strong>Gazetteer</strong>, <strong>Data</strong>, <strong>Redis</strong>,
* <stron... |
// GetNameServers consume resolv.conf path and returns current host dns servers
// addresses.
func GetNameServers(filename string) (addrs []net.IP, err error) {
file, err := os.Open(filename)
if err != nil {
return nil, err
}
defer file.Close()
scanner := bufio.NewScanner(file)
for scanner.Scan() {
line := sc... |
#define MY_VERSION "11.00"
#define MY_DATE "2011-05-12"
#define MY_COPYRIGHT ": <NAME> : Public domain"
#define MY_VERSION_COPYRIGHT_DATE MY_VERSION " " MY_COPYRIGHT " : " MY_DATE
|
Fire officials are on the scene of an accident involving a Metro bus and charter bus that injured dozens of children in Northeast D.C., Thursday, Oct. 27, 2016 (DC Fire and EMS/Twitter)
Frantic parents and faculty members rushed to Eastern Avenue on Thursday afternoon, after a charter bus and a Metrobus collided aroun... |
/**
* <a href="http://camel.apache.org/aggregator.html">Aggregator EIP:</a>
* Creates an aggregator allowing you to combine a number of messages together into a single message.
*
* @param correlationExpression the expression used to calculate the
* correlation key. ... |
We're now able to provide options to pre-order the game and a variety of add-ons for PC/Mac/Linux/Steam via Humble Bundle, plus we have a PayPal console pre-order option up as well! Check it out on heart-machine.com. On the console side; we'll send you a key upon release of the game on the respective chosen platform vi... |
async def async_added_to_hass(self) -> None:
last_state = await self.async_get_last_state()
_LOGGER.debug("%s: last state is %s", self._name, last_state)
if (last_state is None and self._initial_state) or (
last_state is not None and last_state.state == STATE_ON
):
... |
// This is a simplified version of bmct::do_language_agnostic_bmc, without all
// the edge cases to deal with java programs, bytecode loaded on demand, etc. We
// need to replicate some of this stuff because the worklist is a local variable
// of do_language_agnostic_bmc, and we need to check the worklist every time
//... |
/**
* This stop method is overridden to perform the logging itself instead of needing to make a separate call to
* persist the timing information.
*
* @return this.toString(), however, this should not be passed to a logger as it will have already been logged.
*/
public String stop() {
S... |
/**
* Created by gates on 5/22/15.
*/
class Engine {
private final Random rand;
private final int grammarRules;
private final int nouns;
private final int verbs;
private final int numToTest;
private BufferedReader reader;
Engine(Random r, int gr, int n, int v, int toTest) {
rand = r;
grammarRul... |
import java.io.File;
import java.nio.file.Paths;
import java.util.Arrays;
import java.util.Objects;
class CordaCapletTestUtils {
static CordaCaplet getCaplet() {
final String path = System.getProperty("user.dir") + File.separator + "build" + File.separator + "libs" + File.separator;
final File jar ... |
/**
* Signal the port that jerry experienced a fatal failure from which it cannot
* recover.
*
* @param code gives the cause of the error.
*
* Note:
* Jerry expects the function not to return.
*
* Example: a libc-based port may implement this with exit() or abort(), or both.
*/
void jerry_port_fatal(jerr... |
/**
* Just a {@link CT} with a code/uri associated
*
* @author Cossin Sebastien
*
*/
public class CTcode extends CT implements Comparable<CTcode> {
private final Term term;
private final int tokenStartPosition;
private final int tokenEndPosition;
/**
* Create a new candidateTerm with a code associate... |
<filename>src/modules/tasks/tasks.service.ts
import { Injectable, Logger } from '@nestjs/common';
import { Cron } from '@nestjs/schedule';
import { HueService } from '../hue/hue.service';
import { LightService } from '../light/light.service';
@Injectable()
export class TasksService {
private readonly logger = new Lo... |
/**
* Created by bukhoriaqid on 11/12/16. Used to intercept response header and act accordingly
*/
public class ResponseInterceptor implements Interceptor
{
private MyApplication mApplication;
private Context mContext;
public ResponseInterceptor ()
{
mApplication = MyApplication.getInst... |
//Flush Writes all changes to the blob
func (b *BlobBackedBitSet) Flush() {
if !b.HaveChanges() {
return
}
buffer := make([]byte, blobWriteBlock)
buckets := (b.bits + blobWriteBlockBits - 1) / blobWriteBlockBits
for i := 0; i < buckets; i++ {
bmap := b.changes[i]
delete(b.changes, i)
if len(bmap) > 0 {
... |
Ribosomal S6 Kinase Cooperates with Casein Kinase 2 to Modulate the Drosophila Circadian Molecular Oscillator
There is a universal requirement for post-translational regulatory mechanisms in circadian clock systems. Previous work in Drosophila has identified several kinases, phosphatases, and an E3 ligase that are cri... |
/**
* Creates the URL from a given meta.
* Subclasses can overide this if they define
* their own resource locations.
*
* @param baseURL
* @param meta
*
* @throws MalformedURLException
*/
private URL createMetaURL( URL baseURL, D meta ) throws MalformedURLException
{
... |
by
Mais de dez mil motoristas foram multados no ano passado por pararem em vagas destinadas a pessoas com deficiência ou idosos, em Curitiba. Os dados são da Secretaria de Trânsito (Setran) da capital. De janeiro a novembro de 2015, 2.931 condutores foram flagrados em vagas de estacionamento destinadas a deficientes f... |
export default interface IPersonalTilesWebPartProps {
personalTilesWebpartTitle: string;
personalTilesWebpartDescription: string;
} |
def solve_mpc(self):
self.cost = cp.Variable(self.horizon)
self.wh_weighting = 10
self.objective = cp.Variable(self.horizon)
self.constraints += [self.cost == cp.multiply(self.total_price, self.p_grid)]
self.weights = cp.Constant(np.power(self.discount*np.ones(self.horizon), np.... |
/**
* Broadcasts the contents of the buffer to all sockets except skip_index.
* To send the message to all clients, pass -1 for skip_index.
*/
void broadcast_buffer(int skip_index, char *buf) {
for (int i = 0; i < MAX_CONNECTIONS; i++) {
if (i != skip_index && client_sockets[i] != -1) {
if (send(client_s... |
<filename>mode/helm/lifecycler.go
package helm
import (
"context"
"github.com/deis/steward/mode"
"github.com/deis/steward/mode/common"
"k8s.io/client-go/1.4/kubernetes/typed/core/v1"
"k8s.io/helm/pkg/proto/hapi/chart"
)
// newLifecycler creates a new mode.Lifecycler that's backed by a Tiller instance accessible... |
def main():
n = int(input())
array = list(map(int,input().split()))
left = 0
right = n-1
ans = ''
vals = []
if array[left] < array[right]:
vals.append(array[left])
ans += 'L'
left += 1
else:
vals.append(array[right])
ans += 'R'
... |
/**
* * Definition for an interval.
* * struct Interval {
* * int start;
* * int end;
* * Interval() : start(0), end(0) {}
* * Interval(int s, int e) : start(s), end(e) {}
* * };
* */
class Solution {
public:
vector<Interval> insert(vector<Interval>& inter... |
<reponame>barryjburns/dgen
#ifndef SN76496_H
#define SN76496_H
#include <stdint.h>
#ifdef __cplusplus
#define SN76496_H_BEGIN_ extern "C" {
#define SN76496_H_END_ }
#else
#define SN76496_H_BEGIN_
#define SN76496_H_END_
#endif
SN76496_H_BEGIN_
#define MAX_76496 4
struct SN76496interface
{
int num; /* total n... |
/**
* Algorithm:<br/>
* <pre>{@code
* push origin of the traversable to the stack V
* while stack is not empty: V
* removed = pop operation V
* insert to finished V
* invoke getReachableNodes on the removed element V
* for each reachable node: V
* ... |
<reponame>ChunghaSung/intAbs<gh_stars>1-10
/*
* brake_acc_nodiv_ctrl.h
*
* Code generation for model "brake_acc_nodiv_ctrl".
*
* Model version : 1.775
* Simulink Coder version : 8.5 (R2013b) 08-Aug-2013
* C source code generated on : Tue Mar 4 08:34:46 2014
*
* Target selection: grt.tlc
* Note: ... |
<reponame>lxbndr/llvm-project<gh_stars>0
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exce... |
/// Helper that maps one source instruction to a compiled instruction. Meant
/// to be passed to a .map() for an iter that has .enumerate() on it.
fn map_statement(
label_map: &HashMap<Label, isize>,
i: usize,
stmt_node: SpanNode<Statement<Span>>,
) -> SpanNode<Instruction<Span>> {
stmt_node.map(|stmt| ... |
As you can probably already tell, I have a soft spot in my heart for Cuba. So soft in fact that I am going to mostly focus on a Female Cuban Blogger. I hope you dudes can handle this…
Cubans are gradually getting more access to consumer technology after decades of living in the distant technological past. In 2008 Raúl... |
/* return bus type of sbh device */
uint
sb_bus(sb_t *sbh)
{
sb_info_t *si;
si = SB_INFO(sbh);
return (si->sb.bustype);
} |
FXI, the Norwegian company that made headlines when it showed off the Cotton Candy, a ground-breaking computer on a USB stick, just announced that it will begin filling preorders for the device later this month. In February, the company launched its developer portal and began taking orders for a limited run of develope... |
#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main() {
ll i,j,k,n,t,x,y,a,b,l,m,sum,r,c0,c1,d,h;
cin>>t;
while(t--) {
stack<char> s1;
stack<char> s2;
string str;
a=b=0;
cin>>str;
for(i=0;i<str.size();i++) {
if(str[i]=='(') {
s1.push(str[i]);
}
i... |
def _fe2_quadrule(deg):
if(deg <= 4):
ws = np.array([0.0549758718276609338191631624501052,
0.0549758718276609338191631624501052,
0.0549758718276609338191631624501052,
0.111690794839005732847503504216561,
0.1116907948... |
<gh_stars>0
import { EntityRepository } from 'typeorm'
import { FindComponentRepository } from '../../find-component.repository'
import { PSU } from '../entity/psu.entity'
@EntityRepository(PSU)
export class PSURepository extends FindComponentRepository<PSU> {
protected createConditionForComponentKey(key: string):... |
<filename>main.py
import discord
from discord.ext import commands
import os
import dotenv
import requests
dotenv.load_dotenv()
DISCORD_TOKEN = os.getenv('DISCORD_TOKEN')
TWITCH_CLIENT = os.getenv('TWITCH_CLIENT')
TWITCH_SECRET = os.getenv('TWITCH_SECRET')
bot = commands.Bot(command_prefix='>')
@bot.command()
async ... |
// Copyright 2020 Google LLC
//
// 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 w... |
Proximal contact loss between implant prostheses and adjacent natural teeth: A qualitative systematic review of prevalence, influencing factors and implications
Objectives To evaluate the prevalence of proximal contact loss (PCL) between implant prostheses and natural teeth, and identify the risk factors and implicati... |
/**
* Returns summary stats for a supplier of double streams
* @param supplier the stream supplier
* @return the summary stats
*/
static Stats<Double> of(Supplier<DoubleStream> supplier) {
return new Basic(stat -> {
var doubles = supplier.get();
doubles.forE... |
<gh_stars>10-100
package com.etheller.warsmash.viewer5.handlers.w3x;
import com.etheller.warsmash.viewer5.handlers.mdx.Sequence;
public class IndexedSequence {
public final Sequence sequence;
public final int index;
public IndexedSequence(final Sequence sequence, final int index) {
this.sequence = sequence;
t... |
Ferromagnetic/superconducting interface in a hybrid nanoscopic disc
The oscillations exhibited by the magnetization of superconducting nano and mesoscopics structures as a function of the applied magnetic field has attracted attention in the last few years. Nano/Mesoscopic hybrid systems in contact with ferromagnets e... |
n = input().split()
Number = int(n[0])
zeroes = int(n[1])
counter2 = 0
counter5 = 0
for i in range(zeroes):
if Number % 5 == 0:
Number /= 5
counter5+=1
else: pass
if Number % 2==0:
Number /= 2
counter2+=1
else: pass
print(int(n[0])*(5**(zeroes - counter5))*(... |
<gh_stars>10-100
package com.ajjpj.afoundation.concurrent;
import com.ajjpj.afoundation.concurrent.jdk.j9new.ForkJoinPool;
import com.ajjpj.afoundation.concurrent.jdk.j9new.ForkJoinWorkerThread;
import java.util.concurrent.atomic.AtomicInteger;
public class J9LimitingForkJoinThreadFactory implements ForkJoinPool.Fo... |
// look for a node in the list
bool FGL::lookup(int val) const
{
FGLNode *leftNode, *rightNode;
bool found = search(leftNode, rightNode, val);
leftNode->release();
if (rightNode)
rightNode->release();
return found;
} |
Plasmid-Encoded Diacetyl (Acetoin) Reductase in Leuconostoc pseudomesenteroides
ABSTRACT A plasmid-borne diacetyl (acetoin) reductase (butA) from Leuconostoc pseudomesenteroides CHCC2114 was sequenced and cloned. Nucleotide sequence analysis revealed an open reading frame encoding a protein of 257 amino acids which ha... |
#pragma once
#include "math/polygon.h"
#include "GameObject\gameObject.h"
#include <optional>
/*
A level is comprised of tiles.
A tile is a 32 x 32 pixel square
*/
class Tile {
public:
Tile(int _tileIndex = -1, int _rotation = 0, bool _flipH = false, bool _flipV = false,
std::optional<Polyshape> _... |
<filename>jvm-introduction/src/main/java/com/jvm/system/GenericTypes.java
package com.jvm.system;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class GenericTypes {
public static void main(String[] args) {
Map<String, String> map = new HashMap... |
/*
* This file is generated by jOOQ.
*/
package jhi.germinate.server.database.codegen.tables.records;
import java.sql.Date;
import java.sql.Timestamp;
import javax.annotation.Generated;
import jhi.germinate.server.database.codegen.tables.Experiments;
import org.jooq.Field;
import org.jooq.Record1;
import org.joo... |
def derive_wallets(mnemonic_string, coin, num_to_derive):
err = ''
p_status = ''
command = f'php derive -g --mnemonic="{mnemonic_string}" --coin={coin} --numderive={num_to_derive} --cols=address,index,path,privkey,pubkey,pubkeyhash,xprv,xpub --format=json'
p = subprocess.Popen(command, stdout=subprocess... |
<filename>src/common.rs
use oxigraph::model::{Term, Triple, NamedOrBlankNode};
use crate::error::ReasonableError;
pub type URI = u32;
pub type KeyedTriple = (URI, (URI, URI));
#[macro_export]
macro_rules! uri {
($ns:expr, $t:expr) => {
Term::NamedNode(NamedNode::new(format!($ns, $t)).unwrap())
};
}
... |
/**
* A Validator implementation for validating ReturnValueDefinition.
*/
@Service
@Scope("prototype")
@Since("3.1.0")
public class ReturnValueDefinitionValidator_3_1_0 extends BaseValidator implements ReturnValueDefinitionResource.ReturnValueDefinitionValidator {
private final Logger log = LoggerFactory.getLogg... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.