content stringlengths 10 4.9M |
|---|
<reponame>jlowry/rafx
use super::{TileLayerRenderNode, TileLayerRenderNodeHandle, TileLayerRenderNodeSet};
use crate::assets::ldtk::LdtkProjectAsset;
use rafx::assets::AssetManager;
use rafx::distill::loader::handle::Handle;
use rafx::visibility::{
StaticAabbVisibilityNode, StaticAabbVisibilityNodeHandle, StaticVis... |
/**
* After we make API call to get call status from device we parse the results here.
*
* @param data map of strings (keys) to object values and is the response data to parse
* @return call status gathered or {@code null} if not in a call
* @since 4.7
*/
CallStats parseCallStatsData(Map<String, ?> da... |
<filename>runStats.py
#runfile for hypergraph-stats
#this file contains blocks of code that you can comment/uncomment to recieve whichever statistics you'd like
#contents:
#block 0: initialization
#block 1: hedge stats grid
#block 2: weakly connected components of the reactome
#block 3: strongly connected components o... |
// View class which destroys itself when it gets an event of type
// |delete_event_type|.
class DeleteViewOnEvent : public View {
public:
DeleteViewOnEvent(ui::EventType delete_event_type, bool* was_destroyed)
: delete_event_type_(delete_event_type), was_destroyed_(was_destroyed) {}
~DeleteViewOnEvent() over... |
Komunitas Lima Gunung: Concept of Art Communitas on Five Slopes of Central Java, Indonesia
In Central Java, several communities live on the slopes of the mountains, and they use "art" as a vital force in their lives. That is, however, not because the members of the communities spend their whole life as an artist; art ... |
#!/usr/bin/env runhaskell
import Control.Arrow
import Control.Monad
import Data.Char
import Data.List
import Data.List.Split
import qualified Data.Map.Strict as M
import Data.Tree
import System.IO
main :: IO ()
main = do
file <- readFile "./input"
let fileLines = map (splitOn " contain ") . filter (\... |
<filename>tudimension/src/main/java/com/lingxiaosuse/picture/tudimension/retrofit/FileUploadInterface.java<gh_stars>1-10
package com.lingxiaosuse.picture.tudimension.retrofit;
import com.lingxiaosuse.picture.tudimension.modle.FileUploadModle;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import retrofit2.... |
<filename>modules/2.79/bgl.py<gh_stars>0
def glAccum(op, value):
pass
def glAlphaFunc(func, ref):
pass
def glAreTexturesResident(n, textures, residences):
pass
def glBegin(mode):
pass
def glBindTexture(target, texture):
pass
def glBitmap(width, height, xorig, yorig, xmove, ymove, bitmap):
... |
export { default as common } from './Common';
export { default as FelaProvider} from './FelaProvider'; |
<reponame>o-sviridova/Ember<filename>app/models/Habitant.java
package models;
import io.ebean.Finder;
import io.ebean.Model;
import io.ebean.annotation.Where;
import play.Logger;
import play.data.validation.ValidationError;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.Date;
import java.uti... |
Capital Structure Under Costly Enforcement
We consider financial structure and repayment behavior in a setting where cash flows are private information to the entrepreneur and the cost of enforcing repayment differs across security holders. If enforcement costs are lower for shareholders than for creditors, a mixed ca... |
Search for:
Find missing Faith King-Basey!
She is missing with medical needs
And is a suspected human trafficking victim.
Where is Faith?
Her family is frantic to find her!
Find Missing Faith King-Basey!
Circumstances
Find missing Faith King-Basey! She is missing with medical conditions! Faith is missing out of... |
Small queues as bank staff turn up for work early in Nicosia and cash is delivered under heavy security
Cyprus's banks returned to business on Thursday with only limited queues (video), amid strict controls to stop people withdrawing all their savings and triggering a catastrophic bank run.
The country had feared a s... |
// Copyright 2017 Philip Zwanenburg
// MIT License (https://github.com/PhilipZwanenburg/DPGSolver/blob/master/LICENSE)
#ifndef DPG__solver_h__INCLUDED
#define DPG__solver_h__INCLUDED
#include <stdbool.h>
#include "petscmat.h"
#include "S_DB.h" // For constructor_Simulation (ToBeDeleted)
#include "S_VOLUME.h"
struct... |
/**
* This method fills the both supplied lists (=> <b>MODIFIES</b> them). Therefore it queries the
* toscaEngineService for all the nodeTypeImplementations of the given
* <code>nodeTypeImplementations</code> of the <code>CSARID</code> and filters them by the
* <code>artifactName</code>
*
... |
def ParseColSpec(col_spec):
return framework_constants.COLSPEC_COL_RE.findall(col_spec) |
<filename>src/main/java/fr/frezilla/pacman/game/domain/elements/statics/Space.java
package fr.frezilla.pacman.game.domain.elements.statics;
import lombok.Data;
import lombok.EqualsAndHashCode;
@Data
@EqualsAndHashCode(callSuper = true)
public class Space extends StaticElement {
private SpaceType spa... |
<filename>src/Player/PlayerBase.cpp
/*
* PlayerBase.cpp
*
* Created on: 2016年12月1日
* Author: xzl
*/
#include <algorithm>
#include "PlayerBase.h"
#include "Rtsp/Rtsp.h"
#include "Rtsp/RtspPlayerImp.h"
#include "Rtmp/RtmpPlayerImp.h"
using namespace std;
using namespace ZL::Rtmp;
using namespace ZL::Rtsp;
n... |
HARRISBURG, Pa. (Reuters) - Four western Pennsylvania teenagers face criminal prosecution for failing to help an ill friend who died, but they could have been protected by law if they had sought help, a prosecutor told local media on Tuesday.
The four teens placed an unconscious Dominick “Andy” Treemarchi, 17, in a pa... |
#include <stdio.h>
int main(){
int n,total=0,tempsum=0;
int i=0,j=0;
scanf("%d",&n);
for(i;i<n;i++){
for(j;j<3;j++){
int temp;
scanf("%d",&temp);
tempsum += temp;
}
if(tempsum>=2)
total++;
tempsum = 0,j=0;
}
printf("%d\n",total);
} |
<gh_stars>0
package internal
import (
"reflect"
"testing"
)
func TestFactors(t *testing.T) {
data := []struct {
n int64
expect []int64
}{
{8, []int64{2, 4}},
{25, []int64{5}},
}
i := &Integer64{}
for _, x := range data {
i.n = x.n
actual := i.Factors()
if !reflect.DeepEqual(actual, x.expec... |
Possibilistic Pareto-dominance approach to support technical bid selection under imprecision and uncertainty in engineer-to-order bidding process
ABSTRACT Successful bidding involves defining relevant technical bid solutions that conform to the customers' requirements, then selecting the most interesting one for the c... |
package zgin
import (
"flag"
"github.com/ZYallers/zgin/app"
"github.com/ZYallers/zgin/libraries/handlers"
"github.com/ZYallers/zgin/libraries/logger"
"github.com/ZYallers/zgin/libraries/middleware"
"github.com/ZYallers/zgin/libraries/tool"
"github.com/ZYallers/zgin/route"
"github.com/gin-gonic/gin"
"github.co... |
/**
* Grant query privilege to role r1 and there are query and update privileges
* related this collection existed
*/
@Test
public void testGrantALLPrivilegeWithOtherPrivilegesExist() throws Exception {
String roleName1 = "r1";
String roleName2 = "r2";
/**
* grantor is admin, there is no nee... |
<reponame>tstellanova/mavulator<filename>src/mav_reader.rs
use uorb_codec::{self, UorbHeader, UorbMessage};
use std::sync::{Arc, RwLock};
use std::thread;
use std::time::{Duration};
use flighty::models::ActuatorControls;
use flighty::simulato::Simulato;
use uorb_codec::common::*;
use crate::connection::UorbConnectio... |
<reponame>AleIV/SQUID-GAME
package me.aleiv.core.paper.listeners;
import me.aleiv.core.paper.Core;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.player.AsyncPlayerChatEvent;
i... |
use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion, Throughput};
use std::{io, time::Duration};
mod support;
use support::MultithreadedBench;
/// A fake writer that doesn't actually do anything.
///
/// We want to measure the subscriber's overhead, *not* the performance of
/// stdout/file writers... |
// stateTestClocklessTimekeeper returns a test Timekeeper which has not had
// SetClocks called.
func stateTestClocklessTimekeeper(tb testing.TB) *Timekeeper {
ctx := contexttest.Context(tb)
mfp := pgalloc.MemoryFileProviderFromContext(ctx)
fr, err := mfp.MemoryFile().Allocate(usermem.PageSize, usage.Anonymous)
if ... |
/**
* The first game's view.
*/
@SuppressLint("ViewConstructor")
class SummerGameView extends SurfaceView implements SurfaceHolder.Callback {
/**
* The part of the program that manages time.
*/
private SummerThread thread;
/**
* The background image for drawing
*/
private Bitmap ... |
Combined use of alpha-adrenergic and muscarinic antagonists for the treatment of voiding dysfunction.
PURPOSE
We provide an overview of the medical literature supporting the combined use of muscarinic and alpha-adrenergic antagonist therapy for the treatment of voiding dysfunction.
MATERIALS AND METHODS
The MEDLINE ... |
<filename>src/resources/roles/dto/update-role-users.dto.ts
import { ApiProperty } from '@nestjs/swagger';
import { ArrayUnique, IsArray, IsString } from 'class-validator';
import { StatusCode } from '../../../enums/status-code.enum';
export class UpdateRoleUsersDto {
@ApiProperty({
type: [String],
descriptio... |
/**
* The mapper class for {@link TestTool}. It calculates the probabilty of each
* class for a given instance.
*
* @author Christian Banse
*/
public class TestMapperPhase2 extends
Mapper<LongWritable, ObjectWritable, Text, DoubleArrayWritable> {
/**
* Counts the mapping entries. Used for the performance ev... |
Thursday’s practiced marked the end of Seahawks training camp, a distinction that is a lot less significant with the holding camp at its headquarters rather than in Cheney.
Cliff Avril was in action for the second straight day, though again limited. The most notable new absence was that of WR Sidney Rice, but that is ... |
Five dogs who served in the U.S. military were awarded the American Humane Lois Pope K-9 Medal of Courage to recognize the canines' extraordinary valor during their time of service.
"By helping locate enemy positions, engage the enemy, and sniff out deadly [improvised explosive devices] and hidden weapons, military do... |
package nio2;
import java.io.DataOutputStream;
import java.io.FileInputStream;
import java.net.Socket;
public class TraditionalClient {
public static void main(String[] args) throws Exception {
long start = System.currentTimeMillis();
// 创建socket链接
Socket socket = new Socket("localhost", 2000);
System.out.p... |
def normalize_nodule_type(nodules):
nodule_type = nodules.loc[:, 'NoduleType']
nodule_type = nodule_type.str.strip()
nodule_type = nodule_type.str.lower()
nodule_type = nodule_type.str.replace(r'каверна', 'c')
nodule_type = nodule_type.str.replace(r'nan', 'c')
nodule_type = nodule_type.str.repla... |
#include <R.h>
#include <R_ext/Utils.h>
#include <Rdefines.h>
SEXP R_tid_support(SEXP tidLists, SEXP itemsets) {
/* all are already ngCMatrix */
int n_of_trans, n_of_items, n_of_sets;
int *t_i, * t_p, *i_i, *i_p, *buffer;
int i, j, k;
int item, count, length_of_itemset;
SEXP support;
n_o... |
/* -------------------------------------------------------------------------
@file tree.c
@date 11/24/16 13:35:56
@author <NAME>
@email <EMAIL>
@brief
Ejemplo de arbol binario, construccion basada en una lista enlazada simple. Tambien las maneras de recorrer el arbol. Para este
caso cuando se visita el nodo se imprim... |
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package frc.robot.commands;
import edu.wpi.first.wpilibj.Timer;
import edu.wpi.first.wpilibj2.command.CommandBase;
impo... |
/* Reads the environment variables used by this kernel.
* see interface.h for bi_getenv("name", exit_on_error)
*/
void evaluate_environment(mydata_t * pmydata) {
char *p = 0;
p = bi_getenv("BENCHIT_KERNEL_NUMPOINTS", 0);
if (p == NULL)
pmydata->numPoints = NUMPOINTS_DEFAULT;
else
pmydata->num... |
<gh_stars>1-10
#ifndef MSC_MEDIA_SECTION_HPP
#define MSC_MEDIA_SECTION_HPP
#include "json.hpp"
#include <string>
namespace mediasoupclient
{
namespace Sdp
{
class MediaSection
{
public:
MediaSection(){};
MediaSection(const nlohmann::json& iceParameters, const nlohmann::json& iceCandidates);
public:
std::st... |
Aggregated forms of heparin-binding and non-heparin-binding proteins of boar seminal plasma and their binding properties.
Boar seminal plasma proteins were separated by affinity chromatography on immobilized heparin into two portions: heparin-binding (H+) and non-heparin-binding (H-) proteins. Gel chromatography of th... |
def __encrypt_data(self, repokey):
fern = Fernet(repokey)
data = bytes(json.dumps(self.__data), 'utf-8')
edata = fern.encrypt(data)
checksum = self.__calc_data_checksum()
return edata, checksum |
// Outputs to the terminal in a format like below
// INFO 09:11:32 server-engine.go:169: Request Stats
func TerminalFormatHandler(noColor bool, smallDate bool) LogFormat {
dateFormat := termTimeFormat
if smallDate {
dateFormat = termSmallTimeFormat
}
return log15.FormatFunc(func(r *log15.Record) []byte {
var c... |
(CNN) -- Young and old, poor and prosperous, sick and healthy -- residents of Pakistan's Swat Valley continue to flee the violence that has erupted there as the military clashes with the Taliban.
The fighting in the Swat Valley region has forced thousands of civilians to abandon their homes.
Those who have fled tell ... |
Neurite‐Promoting Activities of Phosphatidylinositol and Other Lipids on Fetal Rat Septal Neurons in Culture
Abstract: Neurite‐promoting activities of lipids were assessed using serum‐free cultures of fetal rat septal neurons. The most potent one was phosphatidylinositol (PI), followed by PI 4‐phosphate, phosphatidyls... |
<reponame>jingjidejuren/mongodb-orm<filename>src/main/java/com/mongodb/orm/builder/statement/InsertStatement.java
package com.mongodb.orm.builder.statement;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import com.mongodb.constant.... |
def generate_walks(self):
all_walks = {}
for e_type in self.edge_types:
layer_walks = self.simulate_walks(
edge_type=e_type,
num_walks=self.config['num_walks'],
walk_length=self.config['walk_length'])
all_walks[e_type] = layer_walks... |
def start(self):
print("Starting new connection")
if self._connection is None:
print("Creating connection object")
self._connection = pika.BlockingConnection(pika.URLParameters(self._url))
self._channel = self._connection.channel()
self._channel.exchange_d... |
n, m, k, t = map(int, input().split())
waste = []
for _ in range(k):
tmp = list(map(int, input().split()))
waste.append(tmp)
tree = {
1: 'Carrots',
2: 'Kiwis',
0: 'Grapes'
}
waste.sort()
for _ in range(t):
ls = list(map(int, input().split()))
i = 0
found = False
... |
#!/usr/bin/env python
import sys
from . import __version__, __dapodik_version__, __semester__, __tahun_ajaran__
def print_ver():
print("python dapodik versi v{}".format(__version__))
print("Client / SDK python untuk dapodik versi {}".format(__dapodik_version__))
print("Semester {}".format(__semester__))
... |
/**
* @brief Notifies this SoundManager of the @c onStop activity lifecycle event.
*
* This method should be called from the @c onStop method in the main activity used to create
* this SoundManager.
*/
public void onStop() {
saveSoundManagerSettings();
destroyMediaPlayers();
... |
def from_dict(cls, data: dict[str, Any]) -> Estimate:
previous_value = 0
wh_hours = {}
for timestamp, energy in data["result"]["watt_hours"].items():
timestamp = datetime.fromisoformat(timestamp)
if energy < previous_value:
previous_value = 0
w... |
<reponame>jneira/intellij-eta
module FFI.Com.IntelliJ.Lang.Language where
import P
data {-# CLASS "com.intellij.lang.Language" #-}
Language = Language (Object# Language)
deriving Class |
/**
* Builder class for {@link org.one.workflow.api.adapter.ScheduleAdapter} with redis as datastore.
*/
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class JedisScheduleAdapterBuilder extends
BaseScheduleAdapterBuilder<JedisScheduleAdapterBuilder> {
private JedisPool jedis;
public static JedisSch... |
An Australian mentoring program for beginning teachers: Benefits for mentors
Mentoring programs for beginning teachers originated as response to the problems faced by novices in their transition from higher education to professional practice. However, with the spread of mentoring there has been increasing interest in ... |
package logging
import (
"sync"
)
type node struct {
tid int64
offsetABs []offsetAB // 解析的时候不排序 展示的时候排序。 查询的频率也不高;入队列的时候直接是有序的
prev *node // 判断第一个节点 nil
next *node // 判断最后一个节点 nil
}
type offsetAB struct {
A int64
B int64
}
// logList 双端链表 并发安全
type logList struct {
mux sync.RWMu... |
module Hopsu.Types where
import Network
type Net = ReaderT Bot IO
data Bot = Bot {
starttime :: ClockTime,
socket :: Handle,
config :: Config,
db :: Connection
}
data Config = Config {
server :: String,
port :: Int,
nick :: String,
chan :: String,... |
/*********************************************************************
* @fn zclOTA_setAttributes
*
* @brief Sets pointers to attributes used by ZCL OTA module
*
* @param *attrs - set of attributes from the application
* @param numAttrs - number of attributes in the list
*
* @return void
*... |
//! Vectorized Carry-less Multiplication (VCLMUL)
//!
//! The reference is [Intel 64 and IA-32 Architectures Software Developer's
//! Manual Volume 2: Instruction Set Reference, A-Z][intel64_ref] (p. 4-241).
//!
//! [intel64_ref]: http://www.intel.com/content/dam/www/public/us/en/documents/manuals/64-ia-32-architecture... |
Outsourcing the routing control logic: better internet routing based on SDN principles
Inter-domain routing is based on a fully decentralized model, where multiple Autonomous Systems (AS) interact via the BGP protocol. Although BGP is the "glue" of the Internet, it faces a lot of problems regarding its fully distribut... |
def extract_coarse_fea(voxel, fea_per_dim, norm_fea=True):
x, y, z = np.shape(voxel)
x_filter = np.ceil(x / fea_per_dim[0]).astype('int')
y_filter = np.ceil(y / fea_per_dim[1]).astype('int')
z_filter = np.ceil(z / fea_per_dim[2]).astype('int')
avg_filter = (np.ones((x_filter, y_filter, z_filter))
... |
// Copyright 2019 Tetrate Labs
//
// 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... |
/**
* Represents a query in the form of a set of boolean variables that are considered true.
*
* @author Magnar Nedland
* @author bjorncs
*/
@Beta
public class PredicateQuery {
private final ArrayList<Feature> features = new ArrayList<>();
private final ArrayList<RangeFeature> rangeFeatures = new ArrayLis... |
///
/// WriteEvent class
/// This class creates wraps a Windows Event (CreateEvent)
///
class WriteEvent {
public:
WriteEvent (const std::string& name)
: mEventName (name)
, mHandle(NULL)
{
}
~WriteEvent ()
{
if (mHandle)
{
CloseHandle (mHandle);
}
}
void sign... |
def is_arg_changed(self):
current_args = [arg['name'] for arg in self.current_script.get('args', [])]
old_args = [arg['name'] for arg in self.old_script.get('args', [])]
if not self._is_sub_set(current_args, old_args):
print_error("Possible backwards compatibility break, You've chang... |
/**
* @author Sachchidanand Vaidya
*
*/
public class VCenterNotify implements Runnable
{
private static final Logger s_logger =
Logger.getLogger(VCenterNotify.class);
static volatile VCenterDB vcenterDB = null;
static volatile VncDB vncDB;
private VCenterEventHandler eventHandler;
pr... |
n,k=map(int,input().split(' '))
c=0
c_i=0
a=list(map(int,input().split(' ')))
max_score=a[k-1]
for i in range(0,n):
if (a[i]==max_score or i <=k-1) and (a[i]>0):
c=c+1
else:
continue
print(c) |
#ifndef STUDENTWORLD_H_
#define STUDENTWORLD_H_
#include "GameWorld.h"
#include <string>
using namespace std;
// StudentWorld.h
// This file contains class and function definitions, with some trivial implementations.
//
// Built for CS32
// Completed on 1st March, 2018
// by <NAME>
// UCID: 504768472
//
//
class Act... |
<reponame>zoominsoftware/boolean-normal-forms
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveDataTypeable #-}
--------------------------------------------------------------------
-- |
-- Copyright : © <NAME> 2014
-- License : MIT
-- Maintainer: <NAME> <<EMAIL>>
-- Stability : ex... |
def fixedtext_features(X, target_keynames, align):
timepress, timerelease = timepressrelease(X, target_keynames, align)
f = np.empty(len(target_keynames) * 2 - 1, dtype=np.float32)
f[0::2][:len(timepress)] = timerelease - timepress
f[1::2][:(len(timepress) - 1)] = np.diff(timepress)
return f |
package conf
import (
"bytes"
"fmt"
"io"
"os"
"path/filepath"
"strings"
"sync"
"github.com/pkg/errors"
"github.com/yeqown/gitlab-flow/internal/types"
"github.com/yeqown/gitlab-flow/pkg"
"github.com/yeqown/log"
)
// ConfigParser is an interface to parse config in different ways.
// For example: JSON, TOML ... |
// We walk the list of files for this particular block type, deleting the ones
// that are empty.
void BlockFiles::RemoveEmptyFile(FileType block_type) {
MappedFile* file = block_files_[block_type - 1];
BlockFileHeader* header = reinterpret_cast<BlockFileHeader*>(file->buffer());
while (header->next_file) {
A... |
import string
n = int(input())
num = {k:v for k,v in zip(range(26),string.ascii_lowercase)}
#num[0] = "z"
ans = ""
while True:
n -= 1
ans += num[n % 26]
n //= 26
if (n == 0):
print(ans[::-1])
exit() |
def current_time(moosic, arglist, opts):
if arglist:
print(time.strftime(arglist[0], time.gmtime(moosic.current_time())))
else:
print(time.strftime('%H:%M:%S', time.gmtime(moosic.current_time()))) |
Is India serious about fighting corruption? Going by some striking data put together by the country's respected, independent watchdog PRS Legislative Research, it doesn't appear so.
India's government officials charged with corruption can be prosecuted only after an approval by the federal or state government. However... |
// Check if index is correctly cleaned.
@Test
public void afterRemoveObjectMustNotBeRetrieved() {
DBCollection collection = fongoRule.newCollection();
collection.createIndex(new BasicDBObject("date", 1));
collection.insert(new BasicDBObject("date", 1));
List<DBObject> result = collection.find(new Basi... |
N=int(input())
alist=list(map(int,input().split()))
max_a=max(alist)
exclude_set=set()
tlist=[False]*(max_a+1)
for a in alist:
if tlist[a]:
exclude_set.add(a)
else:
tlist[a]=True
#print(tlist)
for i in range(1,max_a//2+1):
if not tlist[i]:
continue
else:
for j in range(2*i,len(tlist),i):
... |
<gh_stars>0
package com.mitchellbosecke.pebble.loader;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.io.UnsupportedEncodingException;
import javax.servlet.ServletContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import... |
export const Config = {
processes: [
{
name: 'processName',
alertThreshold: 5,
alertPeriod: 600,
slackChannel: 'https://<KEY>',
},
],
};
|
Our own spies managed to grab on camera the next-gen Volvo XC90 testing in Copenhagen.
The next-gen XC90 will be Volvo's first new model developed under Geely ownership and it is believed the full-size SUV will lose up to 150 kg (330 lbs) as a result of making the switch to the Scalable Product Architecture. It’s not ... |
def query(self, points):
if self.verbose: print "query"
values = np.zeros(points.shape[0])
errorCount = 0
for x in range(points.shape[0]):
i = 0
while self.tree[i,0] != -1:
factor = self.tree[i,0]
splitVal = self.tree[i,1]
... |
// Listen for incoming messages.
func (b *broker) Listen() {
for {
select {
case round := <-b.roundUpdateChan:
log.WithFields(log.Fields{
"process": "reduction",
"round": round,
}).Debug("Got round update")
b.reducer.end()
b.reducer.lock.Lock()
b.filter.UpdateRound(round)
b.ctx.timer.Re... |
/**
* Console related Parkour commands handling.
*/
public class ParkourConsoleCommands extends AbstractPluginReceiver implements CommandExecutor {
public ParkourConsoleCommands(final Parkour parkour) {
super(parkour);
}
@Override
public boolean onCommand(@NotNull CommandSender sender,
... |
def _compute_positional_chain(self, chain):
total = 0
for index, value in enumerate(chain):
power = self.maximum_height - index - 1
total += value * (self.MAX_LAYERS ** power)
return total |
/**
* Custom {@code ListCell} that displays the graphics of a {@code Meeting} using a {@code MeetingCard}.
*/
class MeetingListViewCell extends ListCell<Meeting> {
private final ObservableMap<UUID, Person> personMap;
public MeetingListViewCell(ObservableMap<UUID, Person> personMap) {
... |
/* ----------------------------------------------------------------------------
* Picks a sprite to edit.
*/
void animation_editor::pick_sprite(const string &name) {
cur_sprite = anims.sprites[anims.find_sprite(name)];
cur_hitbox = NULL;
cur_hitbox_nr = INVALID;
if(cur_sprite->file.empty()) {
... |
/*
* Check if this process is peruser nscd.
*/
boolean_t
__s_api_peruser_proc(void)
{
pid_t my_ppid;
static mutex_t nscdLock = DEFAULTMUTEX;
static pid_t checkedPpid = (pid_t)-1;
static boolean_t isPeruserNscd = B_FALSE;
my_ppid = getppid();
if (my_ppid == checkedPpid) {
return (isPeruserNscd);
}
(void) mu... |
# Copyright (c) 2021 AccelByte Inc. All Rights Reserved.
# This is licensed software from AccelByte Inc, for limitations
# and restrictions contact your company contract manager.
#
# Code generated. DO NOT EDIT!
# template_file: python-cli-command.j2
# justice-iam-service (5.10.1)
# pylint: disable=duplicate-code
# ... |
def fixup_structure(doc: Element):
if isinstance(doc.design, List):
query = Element({"design": doc.design}).query()
doc.design = query.is_instance("OMCoreComplex", "CoreComplex").one() |
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
iSEC Open Forum Bay Area
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
DATE: Thursday, June 12, 2014
TIME: 6:00pm-9:00pm
LOCATION: Yelp, 140 New Montgomery Street
San Francisco, CA 94105
Please visit http://www.meetup.c... |
/**
* Created by robin on 7/5/15.
*/
public class DecoratedCategory {
public Category category;
public String displayName;
/** @see android.graphics.Color */
public int bgColor;
/** @see android.graphics.Color */
public int textColor;
} |
/**
* @file movable.cxx
* @desc Movable module.
*/
#include <windows.h>
#include <assert.h>
#include <boost/log/trivial.hpp>
#include <ft2build.h>
#include FT_FREETYPE_H
#include <GL/glew.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include "../game.hxx"
#include "common.hxx"
Mo... |
/**
* Parses a passed YAML configuration for this tool and updates <var>ruleConf</var>.
* This method does not handle the BOM: the passed {@code CharSequence} is expected not to contain BOM.
*
* @param rawContent a YAML linter configuration
* @throws YamlLintConfigException if a parse error occ... |
package busqueda;
public class PalabraClave {
public static void main (String args []){
System.out.println("hola");
}
}
|
#include "stdafx.h"
#include "ed.h"
#include "filer.h"
#include "safe_ptr.h"
#include "encoding.h"
#include "environ.h"
kbd_queue::kbd_queue ()
: head (0), tail (0), pending (lChar_EOF), kbd_macro (0),
last_ime_status (-1), delayed_activate (0), in_hook (0), putc_pending (-1),
current_mode (im_norma... |
<gh_stars>0
#pragma once
#include "Dependencies\glm\glm.hpp"
#include "Dependencies\glm\common.hpp"
#include "Dependencies\glm\gtc\matrix_transform.hpp"
#include "Triangle.h"
#include <math.h>
#include "CapsuleSettings.h"
enum PlaneState
{
ONPLANE,
BEHIND,
INFRONT
};
class Physics
{
public:
... |
def back_text():
text_field.set(text_field.get()[:-1])
if text_field.get() == "":
text_field.set("0") |
/**
* Create a new calculator based on the mode.
*
* @return a new, correctly configured calculator
* @throws IllegalStateException if no mode is set
*/
private AbstractCalculator createCalculator() {
AbstractCalculator calculator;
switch (getMode()) {
case SIMPLE:
... |
import sys
import colorful as cf
from requests.exceptions import ConnectionError, ConnectTimeout
import abbr
from abbr.clients import AbbreviationsClient
from abbr.exitstatus import ExitStatus
from abbr.scrapers import XPathScraper
_color_palette = {
'red': '#EF5350',
'category': '#757575',
'categorySepa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.