content stringlengths 10 4.9M |
|---|
<reponame>blyoa/gatsby-remark-link-summary<gh_stars>0
import fsPromise from 'fs/promises'
import path from 'path'
import { CachedSiteSummaryStore } from '../src/store'
jest.mock('fs')
jest.mock('fs/promises')
jest.mock('got', () => ({
got: {
stream: jest.fn(),
},
}))
describe('store', () => {
beforeEach(() ... |
1 team hasn't moved Ross County 25 15 6 4 46 25 21 51 L Lost 0 - 4 against Queen of the South on January 12th 2019. W Won 2 - 0 against Alloa Athletic on January 26th 2019. W Won 2 - 1 against Dunfermline on February 2nd 2019. W Won 4 - 2 against Partick Thistle on February 23rd 2019. W Won 3 - 2 against Ayr United on ... |
/**********************************************************************
* file: pp_profile.cc
* license: Artistic License, see file LICENCE.TXT or
* http://www.opensource.org/licenses/artistic-license.php
* descr.: protein pattern search extension
* authors: <NAME>
*
* date | author | cha... |
Efficient Vulnerability Management Process in the Military
Reducing vulnerabilities is one of the most effective ways to minimize the cyber risks that can occur to information systems. Given the characteristics of the military environment, particularly in operating a wide variety of information systems and dealing wit... |
<gh_stars>0
{-# LANGUAGE
FlexibleContexts
#-}
module Competition.Generic where
import Data.IntMap as IntMap
import Data.STRef
import Data.Foldable
import Data.Monoid
import Control.Monad.ST
import Control.Monad.STM
import Control.Monad.Reader
import Control.Monad.Base
import Control.Concurrent.STM.TVar
folda... |
import React from 'react';
function Chase() {
return (
<div className="sk-chase">
<div className="sk-chase-dot" />
<div className="sk-chase-dot" />
<div className="sk-chase-dot" />
<div className="sk-chase-dot" />
<div className="sk-chase-dot" />
<div className="sk-chase-dot" ... |
package com.bruce.travel.universal.utils;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
import android.provider.MediaStore;
import android.suppor... |
// Save persistent workspace data to the json file
func (w *Workspace) Save() {
if w == nil {
return
}
fjson, exist, err := w.checkDataExist()
kingpin.FatalIfError(err, "Issue with '%s'", fjson)
w.CleanUnwantedEntries()
if !exist || w.dirty {
err = w.persistent.save(fjson)
} else {
gotrace.Trace("No Worksp... |
def scrape_raw():
stats = Statistics()
catalog = requests.get(catalog_url + '/programs')
catalog_tree = html.fromstring(catalog.content)
catalog_dict = {}
programs = catalog_tree.xpath('//*[@id="alltextcontainer"]/ul')[0]
for program in programs:
program_name = program.text.strip()[:-1]
... |
/**
* Load job types using the given loader, and store them in the global instance.
*
* @param loader
* @throws InvalidJobTypeDefinitionException
* When a definition is invalid, or multiple definitions have the same ID
* @throws IOException
* @see #getInstance
*/
public s... |
/**
* STRICTLY TEMPORARY! Support a previous version of the Jetty deployment
* plan syntax by converting it to the new unified web deployment plan
* syntax. This should be removed as soon as possible.
*
* @version $Rev$ $Date$
*/
public class TemporaryPlanAdapter {
private final static Log log = LogFactory.... |
Now, we have a third one to share. No worries, it does something different and I think you’ll like it. Transparency Tiles is an app from developer Matthew Miller and it’s free to use. Its purpose? It generates new Tiles for Xbox Music, Xbox Games and Xbox Video that are now transparent.
Today is evidently Start screen... |
I’m gonna be perfectly honest. I didn’t expect DRIVECLUB to hold up so well, and I was one of those gamers that moaned about not getting the PS + edition. To be honest, this should have been off of my wishlist because tuning and customization were nonexistent, but as I played around with the game, I grew accustomed to ... |
from django.shortcuts import render
from django.views.generic import ListView
from .models import ToDo
# Create your views here.
class ToDoList(ListView):
model = ToDo
template_name = 'todo/index.html' |
def load_from_dict(spicedict):
global DELTET_T_A, DELTET_K, DELTET_EB, DELTET_M0, DELTET_M1
global LS_YEAR0, LS_YEARS, LS_ARRAY1D, LS_ARRAY2D
DELTET_T_A = spicedict["DELTA_T_A"]
DELTET_K = spicedict["K"]
DELTET_EB = spicedict["EB"]
(DELTET_M0, DELTET_M1) = spicedict["M"]
delta_at = spiced... |
/**
* Find whether "one toggle" mode is enabled.
* @param btnm Button matrix object
* @return whether "one toggle" mode is enabled
*/
bool lv_btnm_get_one_toggle(const lv_obj_t * btnm)
{
lv_btnm_ext_t * ext = lv_obj_get_ext_attr(btnm);
return ext->one_toggle;
} |
def helicsCloseLibrary() -> "void":
return _helics.helicsCloseLibrary() |
pub mod entity;
pub mod logger;
pub mod repository;
pub mod use_case;
#[cfg(test)]
mod tests;
|
/**
* Send the game stats to the client.
* @param gameId ID of the game.
*/
public void sendGameStats(int gameId) {
GameStats stats = Database.getGameStats(gameId);
sendMessage(ADDRESS_SERVER, MESSAGE_GAME_STATS, stats.toString());
} |
<gh_stars>0
#include <iostream>
#include <fstream>
#include <sstream>
#include <TGraph.h>
#include<TH1F.h>
#include<TProfile.h>
#include<TLegend.h>
#include <TCanvas.h> // canvas object
#include "tempTrender.h"
using namespace std;
//Utils
bool hasEnding (std::string const &fullString, std::string const &ending) {
... |
<gh_stars>1-10
import { responses } from "../../config/strings";
import constants from "../../config/constants";
import { Lesson } from "../../models/Lesson";
const { text, audio, video, pdf } = constants;
export const lessonValidator = (lessonData: Lesson) => {
if (lessonData.type === text && !lessonData.content) {... |
<reponame>proglang/dts-generate-results
export = CheckstyleFormatter;
declare function CheckstyleFormatter(results: any[]): string;
|
async def play_next(self, ctx, *, title: str):
try:
await ctx.message.delete()
except discord.HTTPException:
pass
player = self.bot.wavelink.get_player(ctx.guild.id, cls=Player)
if not player.is_connected:
return await ctx.send('I am not currently conn... |
//Delete Row Function. Used in Delete function below
void DeleteRow(int matrix[][colSize], int &userRows, int &userCols) {
if (userRows == 0) {
cout << "No entries left to delete" << endl;
}else{
int row;
do {
cout << "Enter index of row(0 - " << userRows - 1 << ") : ";
cin >> row;
} while (row < 0 || r... |
Abstract 4279: Heterogeneous LC3A expression regulates lung cancer cell plasticity
Tumor metastasis is considered as the main cause that contributes to high mortality during lung cancer progression. Autophagy is a self-cleaning process to maintain cell integrity of intracellular organelles and proteins. To date, the r... |
/*
* The line inputs are 2-channel stereo inputs with the left
* and right channels sharing a common PGA power control signal.
*/
static int max98088_line_pga(struct snd_soc_dapm_widget *w,
int event, int line, u8 channel)
{
struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->da... |
Get the biggest daily stories by email Subscribe Thank you for subscribing We have more newsletters Show me See our privacy notice Could not subscribe, try again later Invalid Email
Celtic music group, the Thai Tims, are to appear as special guest on the Hogmanay special of the Graham Norton show.
The group confirmed... |
use super::{
init,
init::Init,
messages::{Message, Notification},
util::fork,
};
use crate::{
common::{container::Container, non_nul_string::NonNulString},
debug,
runtime::{
fork::util::{self, set_log_target},
ipc::{self, owned_fd::OwnedFd, socket_pair, AsyncMessage, Message ... |
import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ChartCardComponent } from './card/card.component';
import { MiniAreaComponent } from './mini-area/mini-area.component';
import { MiniBarComponent } from './mini-bar/mini-bar.component';
import { Mini... |
/*
Copyright © 2021 zc2638 <<EMAIL>>.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... |
package storm.trident.spout;
public interface ISpoutPartition {
/**
* This is used as a Zookeeper node path for storing metadata.
*/
String getId();
}
|
/**
* Create CLDS Event.
*/
@Component
public class CldsEventDelegate {
protected static final EELFLogger logger = EELFManager.getInstance().getLogger(CldsEventDelegate.class);
protected static final EELFLogger metricsLogger = EELFManager.getInstance().getMetricsLogger();
@Autowired
private CldsDao c... |
/**
* @author Gun Lee (gunlee01@gmail.com) on 2017. 2. 21.
*/
public class CallRunnableASM implements IASM, Opcodes {
private Configure conf = Configure.getInstance();
private static final String CALLABLE = "java/util/concurrent/Callable";
private static final String RUNNABLE = "java/lang/Runnable";
private stat... |
The year 795 AD saw a new force arrive on the Irish political scene, the Vikings. These seaborne warriors were to have a significant impact on Irish life. Their attacks on religious centres and propensity for warfare are well documented, as is their contribution to the development of urban centres and new trade routes.... |
X=input()
cntS=0
SUM=0
for i in range(len(X)):
if X[i]=="T":
if cntS>0:
cntS-=1
else:
SUM+=1
if X[i]=="S":
cntS+=1
print(SUM*2) |
declare type MappingAction = 'remove' | 'cast' | 'move' | 'constant';
declare interface MappingRow {
_srcField: string;
_dstField: string;
_action: MappingAction;
}
declare interface Mapping {
_mappings: MappingRow[];
_keepUnmappedFields: boolean | number;
}
|
KEVIN Rudd's sister, Loree, is waging a one-woman campaign against gay marriage, lobbying federal MPs and threatening to quit Labor if it backs the push at the party's national conference in December.
The divorced nurse from the Sunshine Coast town of Nambour, who once trained as a nun, has accused Labor members suppo... |
import mongoose from "mongoose";
import { connectToDB } from "~database";
import { missingSeasonId, unableToLocateSeason } from "~messages/errors";
import Season, { ISeasonDocument } from "~models/season";
import { staffSignIn } from "~test/utils/signIn";
import app from "~test/utils/testServer";
const newSeason = {
... |
Isolation of an in vitro and ex vivo antiradical melanoidin from roasted barley.
The antiradical properties of water-soluble components of both natural and roasted barley were determined in vitro, by means of DPPH* assay and the linoleic acid-beta-carotene system, and ex vivo, in rat liver hepatocyte microsomes agains... |
import LocalTag from './tag.vue';
import LocalCheckTag from './check-tag.vue';
import { withInstall, WithInstallType } from '../shared';
import { TdCheckTagProps, TdTagProps } from './type';
import './style';
export * from './type';
export type CheckTagProps = TdCheckTagProps;
export type TagProps = TdTagProps;
expo... |
// Generate StoreField code, value is passed in a0 register.
// After executing generated code, the receiver_reg and name_reg
// may be clobbered.
void StubCompiler::GenerateStoreField(MacroAssembler* masm,
Handle<JSObject> object,
int index,
... |
// GetLocalProvisionerImage return the image to be used for provisioner daemonset
func GetLocalProvisionerImage() string {
if provisionerImageFromEnv := os.Getenv(ProvisionerImageEnv); provisionerImageFromEnv != "" {
return provisionerImageFromEnv
}
return defaultProvisionImage
} |
<filename>src/bitmap.rs
use std::fmt;
#[derive(Debug, Copy, Clone)]
pub struct BitMap( pub [[u8; 8]; 8] );
impl fmt::Display for BitMap {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
writeln!(f, "___")?;
for line in self.0.iter() {
for bit in line.iter() {
... |
Dependence of Hysteresis Loops on Thickness of Thin Nickel Films Prepared by RF Sputtering
Nickel films of varying thicknesses between 70 and 300 nm were deposited on glass substrates by RF sputtering and their broad (111) FCC peaks were identified by X-ray diffraction. The surface roughness and sub-micron grains were... |
Spinal haematoma following epidural analgesia
A patient who developed an epidural haematoma with multifactorial aetiology (bleeding diathesis, ankylosing spondylitis, chronic alcoholism and acute pancreatitis) after epidural analgesia for pain relief is described. Our conclusion is that adequate laboratory screening o... |
def store_information_as_screenshot(self, fname: str = None):
if not fname:
now = datetime.datetime.now()
fname = str(now).replace(":", ".") + ".png"
if not fname.endswith(".png"):
fname += ".png"
path = self.screen_dir / fname
fullpath = str(path.reso... |
/**
* Spawn a thread to do periodic renewals of kerberos credentials. NEVER
* directly call this method. This method should only be used for ticket cache
* based kerberos credentials.
*
* @param force - used by tests to forcibly spawn thread
*/
@InterfaceAudience.Private
@InterfaceStability.Unstable... |
def _add_boolean_param_by_name(req_dict, param_name, param_value):
if param_value is not None:
param_value_as_lowercase_string = str(param_value).lower()
if param_value_as_lowercase_string not in ("true", "false"):
raise ValueError("%s must be true or false, found: %s" %
... |
package unstable
import (
"bytes"
"image/png"
"net/http"
"strconv"
"github.com/buckket/go-blurhash"
"github.com/gorilla/mux"
"github.com/turt2live/matrix-media-repo/api"
"github.com/turt2live/matrix-media-repo/api/r0"
"github.com/turt2live/matrix-media-repo/common/rcontext"
"github.com/turt2live/matrix-medi... |
/**
* JSON Web Key (JWK) set cache implementation.
*
* @author Vladimir Dzhuvinov
* @author Sarvesh Sharma
* @version 2021-01-08
*/
@ThreadSafe
public class DefaultJWKSetCache implements JWKSetCache {
/**
* The default lifespan for cached JWK sets (15 minutes).
*/
public static final long DEFAULT_LIFESP... |
import { HookContext } from '@feathersjs/feathers';
import { Forbidden } from '@feathersjs/errors';
export default {
before: {
all: [],
find: [(context: HookContext) => {
if(!context.params.query || context.params.query.apiInternalKey !== context.app.get('APIInternalKey')) {
throw new Forbidden... |
// handleIncoming handles an incoming serialised packet from the underlying connection. If the connection is
// not yet logged in, the packet is immediately read and processed.
func (conn *Conn) handleIncoming(data []byte) error {
select {
case conn.packets <- data:
case <-conn.closeCtx.Done():
return nil
}
if !... |
package hr.fer.zemris.java.gui.layouts;
import static org.junit.jupiter.api.Assertions.*;
import java.awt.Dimension;
import javax.swing.JLabel;
import javax.swing.JPanel;
import org.junit.jupiter.api.Test;
public class CalcLayoutTest {
@Test
public void testInvalidRows() {
JPanel panel = new JPanel(new CalcLa... |
<gh_stars>0
# Gum sound editor (https://github.com/stackp/Gum)
# Copyright 2009 (C) <NAME> <<EMAIL>>
# Licensed under the Revised BSD License.
import alsaaudio
import threading
from gum.lib.event import Signal
import numpy
class AlsaBackend(object):
def __init__(self, rate=44100):
self._pcm = alsaaudio.P... |
/*!
* Source https://github.com/donmahallem/FlowServer
*/
import * as bodyParser from "body-parser";
import * as express from "express";
import { join, resolve } from "path";
import { IConfig } from "../../config";
import { createFlowApiRoute } from "./flow";
import { createGoogleApiRoute } from "./google";
export ... |
package Ciphers.HashFunctions.SHA3;
import Ciphers.HashFunctions.SHA;
public class SHA3 extends SHA {
@Override
public byte[] process(byte[] input) {
return new byte[0];
}
}
|
/**
* This method makes sure any SQL NULLs will be cast to the correct type.
*
* @param castType The type to cast SQL parsed NULL's too.
* @param fromList FromList to pass on to bindExpression if recast is performed
* @param subqueryList SubqueryList to pass on to bindExpression if recast ... |
Employers in the scandal-plagued labour hire industry will face new rules banning anyone with criminal convictions, previous workplace breaches or links to collapsed businesses from operating in Victoria.
A sweeping inquiry into the unregulated labour hire market has found a licensing system is crucial to stopping the... |
use super::error::Error;
use super::signature::Signature;
use super::Message;
use super::SECP256K1;
use numext_fixed_hash::H512;
use secp256k1::key;
use secp256k1::Message as SecpMessage;
use std::{fmt, ops};
#[derive(Debug, Eq, PartialEq, Hash, Clone)]
pub struct Pubkey {
inner: H512,
}
impl Pubkey {
/// Che... |
<reponame>guberti/tvm-arduino-demos<filename>binary_to_c.py
import argparse
PROGRAM = """static const char {}[{}] = {{
0x{}
}};"""
def main():
parser = argparse.ArgumentParser(description='')
parser.add_argument('input', type=str, help='input binary file')
parser.add_argument('output', type=str, help='... |
/**
* isShutdown
* @return true if all thread pools are shutdown and false if one of more
* thread pools aren't shutdown
* @throws Exception
*/
public boolean isShutdown () throws Exception {
if (this.runnablePool.isShutdown() == false) {
return false;
}
if (this.cassandraPool... |
// processHandshakeRequest handles the incoming handshake request message for a port forwarding session
// and sends the required HandshakeResponse message. This must complete before sending data over the
// forwarded connection.
func (c *SsmDataChannel) processHandshakeRequest(msg *AgentMessage) error {
req := new(H... |
The Stone is a forum for contemporary philosophers and other thinkers on issues both timely and timeless.
Photo
Few things are more annoying than watching a movie with someone who repeatedly tells you, “That couldn’t happen.” After all, we engage with artistic fictions by suspending disbelief. For the sake of enjoyin... |
package main
/*
actions:
- create new directory
- create new CA with name
- create certificates signed from CA
- create CRL
- import CA template
- import cert template
- revoke CA
- revoke cert
- list CA
- list certs
- export CA cert
- export cert cert
- export cert private key
- set/chang... |
One of the most frustrating things about being a wardeccer is that a huge chunk of your targets will drop corp, spend most of their time under war logged off or docked up, or retreat into wormholes where it’s basically impossible to find them. The usual counter to this is to dec a bunch more people. This can get somewh... |
def download_filtered_utterances_file(self, bucket, input_file_path, local_path):
input_file_path_abs = bucket + '/' + input_file_path
Logger.info(
f"Downloading file from path from {input_file_path_abs}"
)
download_path = f'{local_path}{os.path.basename(input_file_path_abs)}... |
/**
* @param ccfg Cache configuration.
* @throws Exception If failed.
*/
private void checkExpiredEvents(CacheConfiguration<Object, Object> ccfg) throws Exception {
IgniteCache<Object, Object> cache = ignite(0).createCache(ccfg);
try {
evtCntr = new AtomicInteger();
... |
def view_type(self):
return self.container['view_type'] |
<gh_stars>10-100
#pragma once
#include "mpfr.h"
using namespace std;
mpfr_t mval;
template <class T>
class Elementary {
public :
static double RangePropagation(double, double);
static double ReverseRangePropagation(double, double);
static bool FlipLbAndUb(double);
static T MpfrCalcu... |
<filename>src/client/pages/StatusPages/404.tsx<gh_stars>0
import React from 'react';
import { StatusPage } from '../../templates/StatusPage';
export const NotFound: React.FC<{ msg: string }> = ({ msg }): React.ReactElement => (
<StatusPage
error={{
code: 404,
text: 'Not Found',
... |
<reponame>kkan2020/evacc<gh_stars>1-10
/**
* The MIT License (MIT)
*
* Copyright (c) 2017 <NAME>
*
* 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... |
n=int(input())
odd=[]
even=[]
g=[[] for i in range(n)]
l= [int(x) for x in input().split()]
ans=[-1 for i in range(n)]
def bfs(start,end):
d=[-2 for i in range(n)]
q=[]
qi=0
for i in range(len(start)):
d[start[i]]=0
q.append(start[i])
while(len(q)!=qi):
f=q[qi]
qi+=1
for daughter in g[f]:
if d[daugh... |
<gh_stars>1-10
package org.sharebook.vo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.sharebook.model.User;
import org.sharebook.utils.DateFormatUtils;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserVO {
private Long id;
private String userna... |
/**
* A set of constants that can be used by runner plug-ins.
*/
public final class RunnerConstants
{
private RunnerConstants()
{}
public static final int MAX_RETURNED_SMALL_LOG_LINES = 500;
public static final int MAX_RETURNED_SMALL_LOG_CHARACTERS = 10000;
public static final int MAX_RETURNED_BI... |
<filename>packages/jsxstyle/utils/src/__tests__/getStyleCache.spec.ts
import { getStyleCache } from '../getStyleCache';
import { kitchenSink } from './kitchenSink';
describe('getStyleCache', () => {
it('combines class names if `className` prop is present', () => {
const styleCache = getStyleCache();
const pr... |
Determinants of fractional exhaled nitric oxide in healthy men and women from the European Community Respiratory Health Survey III
The fractional exhaled nitric oxide (FENO) is a marker for type 2 inflammation used in diagnostics and management of asthma. In order to use FENO as a reliable biomarker, it is important t... |
/**
* Returns the number of rows (children) under the parent index.
*
* @param parent: Index of the parent item
* @return Returns the number of children under the given parent.
*/
int BDirModel::rowCount(const QModelIndex &parent) const
{
TreeNode *parentNode;
if(parent.isValid() == false)
parentNode = r... |
<filename>values.py
import os
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
# Login Account
Email = "<EMAIL>"
Password = "<PASSWORD>"
# Website logger
Website_url = "https://siswa.smktelkom-mlg.sch.id"
Website_url_absen = "https://siswa.smktelkom-mlg.sch.id/presnow"
Website_k... |
Image copyright AFP Image caption Polish Prime Minister Beata Szydlo says Mr Tusk has "violated multiple times his European mandate"
Poland has threatened to derail Thursday's EU summit as it attempts to block the re-election of Donald Tusk as president of the European Council.
Prime Minister Beata Szydlo said nothin... |
<reponame>opendatasoft/elasticsearch-custom-composite-aggregation
package com.opendatasoft.elasticsearch.search.aggregations.bucket.customcomposite;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.index.SortedNumericDocValues;
import org.elasticsearch.index.fielddata.SortedBinaryDocValues;
i... |
<gh_stars>0
package com.sweetmanor.demo.io;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.charset.Charset;
/**
* 从进程读取数据示例
*
* @version 1.0 2016-06-16
* @author wenz
*/
public class ReadFromProcessDemo1 {
public static void main(String[] args) thr... |
<gh_stars>0
#include <bits/stdc++.h>
#define MAX 5000
using namespace std;
vector<int> G[MAX];
int n, m;
bool V[MAX];
map<string, int> A;
struct Step {
int x, v;
Step() {}
Step(int x, int v) : x(x), v(v) {}
};
queue<Step> Q;
int author(const string& a) {
if (A.find(a) != A.end())
return A[a]... |
def principal_component_regression(self, n_components=2, cv_percentage=20):
if np.squeeze(self.calibration_integrated).ndim > 1:
self.pcr_calibration = principal_component_regression(
self.calibration_integrated.values.T, self.concentrations)
self.pcr_components = n_compo... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkAbstractMapper.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software ... |
def translate_results(self, data, options, mapping=None):
json_data = json.loads(data)
if(mapping is None):
map_file = open(self.default_mapping_file_path).read()
map_data = json.loads(map_file)
else:
map_data = json.loads(mapping)
datasource = {
... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import asyncio
import os
import re
import sys
from asyncio import exceptions
from telethon import events, Button
from .. import chat_id, jdbot, logger, ch_name, BOT_SET
from ..bot.utils import press_event, V4
from ..diy.utils import read, write
@jdbot.on(events.NewMe... |
package com.doodl6.springboot.common.model;
import lombok.Getter;
import lombok.Setter;
import java.io.Serializable;
import java.util.List;
/**
* 分页数据模型类
*/
@Getter
@Setter
public class Page<T> implements Serializable {
private int pageNo = 1;
private int pageSize = 10;
private int total;
priva... |
package ChipmunkJava;
import java.util.*;
public abstract class TestUtil {}
|
/**
* Command to import data in the application.
*/
@CommandDefinition(scope = "business", name = "import", description = "Import application data")
public class DataImportCommand implements StreamCommand {
@Inject
private DataManager dataManager;
@Option(name = "g",
longName = "group",
... |
/**
* Concatenates two byte buffers/arrays and return the result.
*
* @param firstByteBuffer the 1st byte buffer/array
*
* @param secondByteBuffer the 2nd byte buffer/array
*
* @return the result of the two byte buffers/arrays concatenated
*/
public static byte[] concatenate(by... |
#include "JassNativesHeader.h"
AbilityId_FUNC AbilityId_org = nullptr;
AbilityId_FUNC AbilityId_ptr = nullptr;
AbilityId2String_FUNC AbilityId2String_org = nullptr;
AbilityId2String_FUNC AbilityId2String_ptr = nullptr;
Acos_FUNC Acos_org = nullptr;
Acos_FUNC Acos_ptr = nullptr;
AddAssault_FUNC AddAssault_org = nullptr;... |
A study of urban heat island of Banda Aceh City, Indonesia based on land use/cover changes and land surface temperature
This article described the spatial and temporal of land surface temperature (LST) patterns in Banda Aceh City, Indonesia, in the context of urban heat island (UHI) phenomenon. Landsat imaginary in 19... |
package stochastic.network;
import stochastic.domain.Leg;
import stochastic.domain.Tail;
import stochastic.solver.SolverUtility;
import java.util.ArrayList;
import java.util.HashMap;
class PathEnumerator {
/**
* Class used to enumerate all paths for a particular tail.
*/
private Tail tail;
priv... |
<reponame>precorPhaniPutrevu/web-api-bridge<gh_stars>0
import { PostMessage } from "../lib";
/*
* WebApiBridge should be left as a pure JS implementation. In order to
* support typescript these declarations are supported in a separate .flow file.
*/
/**
* `Message` objects are exchanged between the react native a... |
<gh_stars>0
{-# LANGUAGE DataKinds, ExistentialQuantification, GADTs, KindSignatures, OverloadedStrings #-}
module Parser (parseCards) where
import Control.Arrow
import Data.Char (isSpace)
import Data.List (dropWhileEnd)
import Data.Void
import Text.Megaparsec
import Text.Megaparsec.Char
import Text.Wrap
import Data... |
Update January 19, 2012: title of and link to newly published article added in third paragraph.
If you answered ‘animal agriculture’ or ‘livestock production’ (essentially, meat and dairy production) to the question above, you were right. I wrote about a study on this matter many moons ago, on Planetsave and on a coup... |
/**
* Converts the old project to the project view model.
*/
public class OldProjectConverter {
public ProjectViewModel convert(ProjectOldFormat oldProject) {
var project = new ProjectViewModel();
project.nameProperty().set(oldProject.modelName);
project.setOwner(oldProject.owner);
... |
def _is_command(line: str) -> bool:
stripped = line.strip()
return bool(stripped) and not stripped.startswith("#") |
/// Extend the bounding box on all sides by a margin
/// For example to expand it by a certain epsilon to make
/// sure that a lookup will be inside the bounding box
void OrientedBBox::extend(double val)
{
if (is_valid_)
{
cmin_.x(cmin_.x()-val);
cmin_.y(cmin_.y()-val);
cmin_.z(cmin_.z()-val);
cmax_... |
/**
* Number string converter that provides a filter for text changes.
*/
class NumberStringFilteredConverter extends NumberStringConverter {
NumberStringFilteredConverter() {
super(isIntegerTypedField() ? NumberFormat.getIntegerInstance() : NumberFormat.getNumberInstance());
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.