content stringlengths 10 4.9M |
|---|
Both Microsoft and Sony have approached Bohemia Interactive about porting DayZ to new hardware, but creator Dean “Rocket” Hall is more in favour of the PlayStation 4 than Xbox One.
“We talked to both of them. But, as I’m sure you’re aware, Sony lets you self-publish and they don’t make you pay for updates,” Hall told ... |
a = list(raw_input())
b = list(raw_input())
i = 0
c = []
while i in range(len(a)):
if a[i]==b[i]:
c.append('0')
if a[i]!=b[i]:
c.append('1')
i = i+1
n = ''.join(c)
print n |
package controllers;
import router.Routes;
import models.*;
import play.data.Form;
import play.data.FormFactory;
import play.mvc.*;
import play.twirl.api.Html;
import router.Routes;
import views.html.*;
import javax.inject.Inject;
import java.util.List;
/**
* This controller contains an action to handle HTTP r... |
#include<bits/stdc++.h>
using namespace std;
int main()
{
long long n,m;
int i,j;
int b;
int f1=0;
int a[100050];
int sum1=0,sum2=0,sum3=0;
int t1,t2,t3;
scanf("%lld%lld",&m,&n);
i=m/(pow(2.0,n)-1);
for(;f1!=1;i++)
{
if(m<(2*i-1+n)*n/2)
{
printf("NO\n");
break;
}
else if(m<=... |
Nearly two decades into America’s fantasy sports craze, ESPN is giving fantasy a spot in its weekday lineup.
According to Variety, ESPN fantasy analyst Matthew Berry will host a show creatively dubbed The Fantasy Show, to air weekdays on ESPN2 during football season. The show will reportedly launch August 1 only on Wa... |
def main():
app = app_lib.app_state([], {}, True)
if read_settings_from_file(app) == 'Error' or read_data_from_file(app) == 'Error':
messagebox.showerror('BondMarket', 'An error occurred while reading the file.\n\nProbably the files are not compatible!')
exit(win, app)
if app.settings.first_... |
/**
* Translates internal query into PreparedStatement.
*/
public PreparedStatement createStatement() throws Exception {
long t1 = System.currentTimeMillis();
String sqlStr = createSqlString();
QueryLogger.logQuery(sqlStr, attributes, values, System.currentTimeMillis() - t1);
P... |
package com.gibarsin;
import com.gibarsin.nonnull.List;
public final class Main {
public static void main(final String[] args) {
final List<Integer> integers = new List<>();
integers.add(0);
integers.add(1);
integers.add(2);
integers.beConsumedBy(System.out::print);
... |
/**
* Use vectorized reader provided by the Hive to read ORC files. We copy one column completely at a time,
* instead of one row at time.
*/
public class HiveORCVectorizedReader extends HiveAbstractReader {
/**
* For transactional orc files, the row data is stored in the struct vector at position 5
*/
st... |
Gaps in Material Qualification Requirement and Acceptance for Severe to Extreme Sour-Sweet Corrosive HPHT Environments Impacting Completion Design
Severe to extreme sour-corrosive environment assisted cracking (EAC) phenomenon are complex. Mandatory test qualification requirements and acceptance criteria is non-exis... |
As interesting as the reading is for my Women’s Studies class is, lately I’ve become more of an observer and less of an active participant. Sometimes my morning coffee hasn’t really sunk in yet, sometimes it’s because I fell asleep before finishing the reading, and sometimes it’s because I literally cannot get a damn w... |
Although Valve says there's still no evidence that the Steam hack last November compromised passwords or credit card data, it looks like the intruders may have more information than we previously believed. Director Gabe Newell has admitted that it's "probable" the hacker or hackers obtained a backup copy of a file with... |
// Reset sets sr's underlying io.Reader to r, and resets any reading/decoding state.
func (sr *NDJSONStreamReader) Reset(r io.Reader) {
sr.bufioReader.Reset(r)
sr.lineReader.Reset(sr.bufioReader)
sr.isEOF = false
sr.latestLine = nil
sr.latestLineReader.Reset(nil)
} |
History Edit
Add-ons, customisation and community involvement Edit
See also: Category: Microsoft Flight Simulator add-ons The long history and consistent popularity of Flight Simulator has encouraged a very large body of add-on packages to be developed as both commercial and volunteer ventures. A formal software deve... |
THYROID‐STIMULATING HORMONE AND GROWTH HORMONE RELEASE ALTERATIONS INDUCED BY MOSQUITO LARVAE PROTEINS ON PITUITARY CELLS
Mosquito larvae crude extract has shown to modulate cell proliferation of different mouse epithelial as well as human mononuclear cell populations in vivo and in vitro. A soluble fraction of the ex... |
def on_action_floated(self, content):
self.set_guarded(floating=True) |
// PostProcess deletes any orphaned data that exists locally
func (l *Synchronizer) PostProcess(processing map[string]struct{}) {
nodes, err := l.GetAll()
if err != nil {
glog.Warningf("Could not access locally stored data: %s", err)
return
}
for _, node := range nodes {
if _, ok := processing[node.GetID()]; ... |
#!/usr/bin/python
import argparse, sys, os, random, json, zlib, base64, gzip
from shutil import rmtree
from multiprocessing import cpu_count
from tempfile import mkdtemp, gettempdir
from Bio.Format.Sam import BAMFile
from Bio.Format.Fasta import FastaData
from collections import Counter
from Bio.Errors import ErrorProf... |
<gh_stars>10-100
package es.ubu.lsi.ubumonitor.clustering.chart;
import java.awt.Color;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import es... |
#include "opentelemetry/exporters/otlp/recordable.h"
OPENTELEMETRY_BEGIN_NAMESPACE
namespace exporter
{
namespace otlp
{
const int kAttributeValueSize = 14;
void Recordable::SetIds(trace::TraceId trace_id,
trace::SpanId span_id,
trace::SpanId parent_span_id) noexcept
{... |
The Azure Cloud Presents a Perfect Storm for Business with Surprise Announcement of Microsoft Dynamics 365 at WPC
Didn’t attend WPC (Microsoft’s annual partner conference) in Toronto last week? Then you might have missed one of the most profound ERP or CRM related announcements made by Microsoft in the last decade.
A... |
// walk is a recursive call that walks over the ASN1 structured data until no
// remaining bytes are left. For each non compound is will call the ASN1 format
// checker.
func (l *Linter) walk(der []byte) {
var err error
var d asn1.RawValue
for len(der) > 0 {
der, err = asn1.Unmarshal(der, &d)
if err != nil {
... |
# import sys
# sys.stdin = open("#input.txt", "r")
t = input()
print(t,t[::-1],sep='')
|
<reponame>lilittovmasyan/findpeople-master<gh_stars>0
import {Component, Input} from '@angular/core'
import {Http} from '@angular/http'
import {NgbModal, NgbActiveModal, NgbModalOptions} from '@ng-bootstrap/ng-bootstrap';
@Component({
selector: 'checkinbutton',
template: `
<template ngbModalContainer #content >... |
<gh_stars>1-10
use k8s_openapi::api::apps::v1::{Deployment, DeploymentSpec};
use k8s_openapi::api::core::v1::{Container, Pod, PodSpec, PodTemplateSpec};
use k8s_openapi::apimachinery::pkg::apis::meta::v1::{LabelSelector, ObjectMeta};
use kube::api::{ListParams, Meta, PostParams, WatchEvent};
use kube::runtime::Informer... |
package dev.lb.cellpacker.structure.resource;
import java.util.Comparator;
public class CompoundAtlasResource extends AtlasResource{
private String compoundFileName;
private int index;
public CompoundAtlasResource(String name, String path, int magic, byte[] data, String compoundFileName, int index) {
... |
import tensorflow as tf
import numpy as np
class Layer(object): #construct a layer with specified dimensionality
def __init__(self, input_size, output_size, var_scope):
self.input_size = input_size
self.output_size = output_size
self.var_scope = var_scope
with tf.variable_scope(self.scope):
... |
The latest round of guest performers have been confirmed for the 2017 Grammy Awards with A Tribe Called Quest set for a special performance alongside Anderson .Paak and Foo Fighters's Dave Grohl.
ADVERTISEMENT
As Pitchfork reports, all three artists will perform together at this year’s ceremony, which will be broadca... |
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: github.com/solo-io/wasm/tools/wasme/cli/operator/api/wasme/v1/filter_deployment.proto
package v1
import (
fmt "fmt"
math "math"
proto "github.com/gogo/protobuf/proto"
types "github.com/gogo/protobuf/types"
)
// Reference imports to suppress errors if... |
<gh_stars>0
/*************************************************************************************
* Functions used in the removeDuplicatesCheck and removeDuplicatesComplexity programs.
* Commented couts are left in purpose in case anybody wants to see the process that
* takes place when executing the program.
*
... |
<reponame>ahuglajbclajep/three-vrm-react-example<filename>src/App.tsx
import React, { useCallback } from "react";
import { Canvas } from "react-three-fiber";
import Controls from "./Controls";
import { useToggle, useVRM } from "./hooks";
import Inputs from "./Inputs";
import VRM from "./VRM";
const App: React.FC = () ... |
Contents
The PA0RDT Mini Whip
How Active Antennas Work
How the PA0RDT Mini Whip Works
The PA0RDT Mini Whip
This is a picture of the PA0RDT mini whip, an active antenna for the VLF and shortwave bands, together with its power feed unit:
The whole antenna is smaller than a ballpoint pen! How can anybody believe thi... |
<reponame>BlockPuppets/symbol-crypto-core<filename>core/src/public_key.rs
// Copyright 2021 BlockPuppets developers.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your... |
/**
* Asks the user to update the game app
*/
void updateApp() {
AlertDialog.Builder b = new AlertDialog.Builder(this);
b.setMessage("Your version of the game has to be updated first to join this match!");
b.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {... |
/**
* Tests related to {@link SubscriptionsManagerImpl}.
*/
@RunWith(ChromeJUnit4ClassRunner.class)
@CommandLineFlags.Add({ChromeSwitches.DISABLE_FIRST_RUN_EXPERIENCE})
@Batch(Batch.PER_CLASS)
@DisabledTest(message = "crbug.com/1194736 Enable this test if the bug is resolved")
public class SubscriptionsManagerImplTes... |
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
"""
log_ut... |
SHuffle, a novel Escherichia coli protein expression strain capable of correctly folding disulfide bonded proteins in its cytoplasm
Background Production of correctly disulfide bonded proteins to high yields remains a challenge. Recombinant protein expression in Escherichia coli is the popular choice, especially withi... |
import {connect} from 'react-redux';
import StateType from 'types/StateType';
import {notificationsSelector, newNotificationsFromSelector} from '../../../selectors';
import {setNewNotificationsFromAction} from '../../../actions';
import page from './page';
const mapStateToProps = (state: StateType) => ({
notificatio... |
Hamas political chief Khaled Mashaal will make a diplomatic visit to Russia in July, the Islamist Palestinian group said Monday.
The Russian foreign ministry extended the invitation in May following a meeting between Russian Deputy Foreign Minister Mikhail Bogdanov and Hamas leadership in Qatar, according to Hamas spo... |
def print_matlab( arr ):
arr = asarray( arr )
N = 1
if len( arr.shape ) > 1: N = arr.shape[1]
print( '[ ', end='' )
count = 0
for v in arr.ravel():
if count == N:
print( '; ', end='' )
count = 0
print( '%s ' % (v,), end='' )
count += 1
print( '... |
/** \brief Amount of free space (in bytes) between end of slot vector and begin of payloads. */
size_t free_space()
{
return header_.payload_begin * sizeof(PayloadBlock)
- header_.slot_end * sizeof(Slot);
} |
package model
import (
"database/sql"
"errors"
"fmt"
"github.com/greatdanton/analytics/src/global"
"github.com/greatdanton/analytics/src/memory"
)
// WebsiteURLExist checks if url for this particular user
// already exist
func WebsiteURLExist(userID string, url string) (bool, error) {
var id string
err := glo... |
<reponame>fatman2021/Enlightenment_DR16
/*
* Copyright (C) 2000-2007 <NAME>, <NAME> and various contributors
* Copyright (C) 2004-2013 <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 So... |
/*******************************************************************************
* This file is part of Shadowfax
* Copyright (C) 2015 Bert Vandenbroucke (bert.vandenbroucke@gmail.com)
*
* Shadowfax is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public Licens... |
/// AllocateReg - Attempt to allocate one of the specified registers. If none
/// are available, return zero. Otherwise, return the first one available,
/// marking it and any aliases as allocated.
unsigned AllocateReg(const unsigned *Regs, unsigned NumRegs) {
unsigned FirstUnalloc = getFirstUnallocated(Regs, Num... |
/// Returns the device's address on the bus that it's connected to.
pub fn address(&self) -> u8 {
unsafe {
libusb_get_device_address(self.device)
}
} |
/*!
\class ta_t
\brief Timed automaton over a system of synchronized timed processes
*/
class ta_t final : public tchecker::ts::full_ts_t<tchecker::ta::state_sptr_t, tchecker::ta::const_state_sptr_t,
tchecker::ta::transition_sptr_t, tchecker::ta::const_transition_spt... |
/*! Same as rotate(const Quaternion&) but \p q may be modified to satisfy the rotation constraint().
Its new value corresponds to the rotation that has actually been applied to the Frame. */
void Frame::rotate(Quaternion& q)
{
if (constraint())
constraint()->constrainRotation(q, this);
q_ *= q;
q_.normalize();
... |
class MelodicInterval:
"""Represents an actual MelodicInterval.
Attributes
----------
interval : Interval
order : Order
octaves : int
Number of octaves separating the 2 notes.
"""
def __init__(self, interval, order, octaves):
"""Constructor method.
Parameters
... |
from unittest import TestCase
from lib.query_executor.executors.sqlalchemy import is_dialect_available
class IsDialectAvailableTestCase(TestCase):
def test_existing_dialect(self):
# We can guarantee sqlite should be always available
self.assertTrue(is_dialect_available("sqlite"))
def test_non... |
Manchester United have snapped up five of Huddersfield Town’s fledgling talents after the downgrading of the Yorkshire club’s academy.
Sportsmail understands the teenagers signed deals at Old Trafford this week after trials which included friendlies behind closed doors.
Huddersfield decided to scrap teams from their ... |
/// Returns the RGB pixel values of the specified coordinate.
fn orig_at(&self, coords: (u32, u32)) -> (u8, u8, u8) {
let idx = (coords.1 * self.size.0 + coords.0) as usize;
let red = self.orig_buf[idx * self.bytes_per_pixel + 0];
let green = self.orig_buf[idx * self.bytes_per_pixel + 1];
... |
***Update: Ubi and SmartThings will work together to provide a complete voice-controlled home automation platform (checkout the Update tab above for videos). Check out SmartThings here. ***
New Video: Ubi & SmartThings
Ubi - Always on. Always ready to help.
Ubi is a voice-activated computer that plugs into a wall ou... |
United States Supreme Court case
Michael M. v. Superior Court of Sonoma County, 450 U.S. 464 (1981), was a United States Supreme Court case over the issue of gender bias in statutory rape laws. The petitioner argued that the statutory rape law discriminated based on gender and was unconstitutional. The court ruled tha... |
A while back I went on the hunt for good, durable gloves that would withstand the ravages of midwest tow ropes. A few searches and forums suggested the insulated Kinco 901 gloves , so I ordered a pair and put them through the ringer. After riding them for nearly an entire season, here’s how they stack up.
Update Janua... |
Study on 340 GHz Wave Scintillation Characteristics Based on Experimental Data
the near ground scintillation characteristic at the frequency of 340 GHz is analyzed based on the experimental data. The experiment is carried in the outdoor instead of the lab to study the real atmospheric influence on the propagation of 3... |
/*
* Copyright (C) 2017 Kaspar Schleiser <kaspar@schleiser.de>
* Copyright (C) 2021 Freie Universität Berlin
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup net_sock_dodtl... |
When I contemplated how to make vegan marshmallows, my mind wandered toward daifuku, the Japanese rice-based confection that, not unlike marshmallows, has a springy and sticky quality. So I used the sweet sticky rice powder, mochiko, in this recipe, which results in a bit of a marshmallow/mochi hybrid. Looking for a su... |
# -*- coding: utf-8 -*-
import os
import sys
import random
import time
import numpy as np
import codecs
import cv2
import xml.etree.ElementTree as ET
from xml.etree.ElementTree import SubElement
def process_convert(name, DIRECTORY_ANNOTATIONS, img_path, save_xml_path):
# Read the XML annotation file.
... |
/*
* Change heap to the stats shared memory segment
*/
void *
vlib_stats_push_heap (void *old)
{
stat_segment_main_t *sm = &stat_segment_main;
sm->last = old;
ASSERT (sm && sm->shared_header);
return clib_mem_set_heap (sm->heap);
} |
def put(self, asset_name):
try:
asset_details = remove_nulls(asset_details_parser.parse_args(strict=True))
except ValueError:
abort(400, message='asset_details must be a json object.')
asset = self._get_asset(asset_name)
try:
asset.update_details(asset... |
// Code generated by golex. DO NOT EDIT.
package parser
import (
"fmt"
)
func (l *lexer) Lex(lval *yySymType) int {
const (
S_INIT = iota
S_COMMENTS
)
c := l.current
currentState := 0
if l.empty {
c, l.empty = l.getc(), false
}
yystate0:
l.buf.Reset()
switch yyt := currentState; yyt {
default:
... |
/** Field of an Entry class, with marshalling information */
static class EntryField {
/** Field for the field */
public final Field field;
/**
* True if instances of the field need to be converted
* to MarshalledWrapper. False if the type of the field
* is String, Integer, Boolean, Character, Long, Flo... |
package models;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
public class Textile
{
@Id private int textileId;
private String textileName;
public int getTextileId()
{
return textileId;
}
public void setTextileId(int textileId)
{
this.textileId = t... |
//
// PRPChangeNameTextField.cpp
// PrimaryParticle
//
// Created by stefan on 7/30/14.
//
//
#include "PRPChangeNameTextField.h"
#include "PRPRegexHelper.h"
#include "PRPScoreServer.h"
#include "PRPAppDelegate.h"
#include "PRPGameManager.h"
USING_NS_CC;
USING_NS_PRP;
static const int kUserNameMaxLength = 20;
... |
<filename>projects-lab/akka-http/src/main/java/io/github/kavahub/learnjava/user/User.java
package io.github.kavahub.learnjava.user;
import lombok.Data;
/**
* 用户
*
* @author <NAME>
* @since 1.0.2
*/
@Data
public class User {
private final Long id;
private final String name;
public User(Long id, St... |
def turn_emails_off(view_func):
EMAIL_BACKEND_DUMMY = 'django.core.mail.backends.dummy.EmailBackend'
def decorated(request, *args, **kwargs):
orig_email_backend = settings.EMAIL_BACKEND
settings.EMAIL_BACKEND = EMAIL_BACKEND_DUMMY
response = view_func(request, *args, **kwargs)
se... |
package cn.jeeweb.modules.codegen.service;
import cn.jeeweb.core.common.service.ICommonService;
import cn.jeeweb.modules.codegen.entity.Column;
import java.util.List;
public interface IColumnService extends ICommonService<Column> {
List<Column> selectListByTableId(String tableId);
}
|
<filename>src/al_codec/units/AlUVideos.cpp
/*
* Copyright (c) 2018-present, <EMAIL>.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "AlUVideos.h"
#include "StringUtils.h"
#include "AsynVideoDecoder.h"
#include "AlSize.h"
#includ... |
/**
* This is the base class for a Validator that supports
* the Suppressible interface.
*
* @author Keith W. Boone
*
*/
public class SuppressibleValidator implements Suppressible {
/** The initial set of validation errors to be suppressed.
* Initialized to none.
*/
private Set<String> suppress... |
<filename>charles-university/2018-npfl104/hw/scikit-regression/scikit-regression.py
#!/usr/bin/env python3
import numpy as np
import pandas as pd
from sklearn.feature_extraction import DictVectorizer
from sklearn.neighbors import KNeighborsRegressor
from sklearn.svm import SVR
from sklearn.tree import DecisionTreeRegre... |
/**
* @param sourcesMappedOnNull
* true|false to indicate whether the source properties of this
* class map's fields should be set to null (when mapping in the
* reverse direction) if the destination property's value is null
*
* @return this FieldMap... |
<filename>matrices_using_pytorch.py<gh_stars>0
# -*- coding: utf-8 -*-
"""
Created on Thu Sep 9 01:46:42 2021
@author: Mahfuz_Shazol
"""
import torch as th
x_th=th.tensor([ [1,0],
[5,4],
[8,9],
[1,2],
]);
print(x_th.shape)
print('size',x_th.size())
#get all first... |
A semi-classical trace formula at a non-degenerate critical level
We study the semi-classical trace formula at a critical energy level for a $h$-pseudo-differential operator whose principal symbol has a unique non-degenerate critical point for that energy. This leads to the study of Hamiltonian systems near equilibriu... |
/*
* Copyright 2021 Data and Service Center for the Humanities - DaSCH.
*
* 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
*
* Unles... |
SHANGHAI, CHINA - AUGUST 21: (CHINA OUT) English singer-songwriter and musician James Blunt performs on stage during his concert at Mercedes-Benz Arena on August 21, 2011 in Shanghai, China. (Photo by ChinaFotoPress/Getty Images)
James Blunt is reportedly saying "Goodbye My Lover" to the music industry.
"I just want ... |
/**
* evaluates an expression and adds containing vars to the sets.
*/
private void handleExpression(
CFAEdge edge,
CExpression exp,
String varName,
final VariableOrField lhs) {
handleExpression(edge, exp, varName, 0, lhs);
} |
/** Run SYNC on the table, i.e., write out data from the cache to the
FTS auxiliary INDEX table and clear the cache at the end.
@param[in,out] table fts table
@param[in] wait whether wait for existing sync to finish
@return DB_SUCCESS on success, error code on failure. */
dberr_t fts_sync_table(dict_table_t* table, b... |
/* xpdatetime.h */
/* Cross-platform (and eXtra Precision) date/time functions */
/* $Id: xpdatetime.h,v 1.4 2014/02/10 09:20:44 deuce Exp $ */
/****************************************************************************
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see h... |
//
// Copyright 2007-2008 Christian Henning
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//
#ifndef BOOST_GIL_IO_SCANLINE_READ_ITERATOR_HPP
#define BOOST_GIL_IO_SCANLINE_READ_ITERATOR_HPP
#include <boost/gil/... |
<gh_stars>1-10
package com.hk.luatela.dialect.mysql;
import com.hk.luatela.dialect.Dialect;
import com.hk.luatela.dialect.Dialect.*;
import com.hk.str.HTMLText;
public class MySQLTableMeta implements TableMeta, MySQLDialect.MySQLDialectOwner
{
final String tableName;
public MySQLTableMeta(Owner owner, String name)... |
// New returns a pointer to an instance of the monitor
func New(Config store.Config, Status store.Status) *Monitor {
prober := NewProber(Config, Status)
prober.Start()
mon := &Monitor{
Status: Status,
Config: Config,
Prober: prober,
}
mon.setupConfigWatcher()
return mon
} |
/**
* Modifies the current status of a Push source. This operation allows you
* to update the activity logs of a Push source (and consequently the
* activity indicators in the Coveo Cloud V2 administration console).
* Pushing an active source status (i.e., REBUILD, REFRESH, or INCREMENTAL)
* cr... |
<filename>projects/angular-ngrx-material-starter/src/app/features/examples/authenticated/authenticated.component.ts
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
import { ROUTE_ANIMATIONS_ELEMENTS } from '../../../core/core.module';
@Component({
selector: 'mfework-authenticated',
temp... |
// errorOnUserKeyOverlap returns an error if the last two written sstables in
// this compaction have revisions of the same user key present in both sstables,
// when it shouldn't (eg. when splitting flushes).
func (c *compaction) errorOnUserKeyOverlap(ve *versionEdit) error {
if n := len(ve.NewFiles); n > 1 {
meta ... |
<filename>scripts/manual/0_test.ts
import "@nomiclabs/hardhat-ethers";
import "@openzeppelin/hardhat-upgrades";
import { upgrades, ethers } from "hardhat";
import { Contract } from "ethers";
async function main() {
const [owner] = await ethers.getSigners();
console.log("Deploying contracts with the account:", ... |
/**
* Parses an optional <tt>resultMatcher</tt> element.
* The default is to leave this unspecified .
*
* @param runElement
* @return an instance of the ResultMatcher class, if specified, or
* null if no result matcher was specified
* @throws TestParseException if a parsing error was encountered
... |
/**
* Created by mnural on 8/5/15.
*/
@Configuration
@PropertySource("classpath:config/config.properties")
public class Config {
@Autowired
Environment env;
public Environment getEnv() {
return env;
}
public String getProperty(String key){
return env.getProperty(key);
}
... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int gcd(int a,int b){
if(b==0)
return a;
return gcd(b,a%b);
}
int main(){
int c,i,tmp,N,X,x[101000],dx[101000];
scanf("%d %d",&N,&X );
for(i=0;i<N;i++){
scanf("%d",&x[i] );
dx[i]=abs(X-x[i]);
}
if(dx[0]<dx[1]){
tmp=dx[0];
dx[0]=dx[1];... |
<filename>jni/Vpacker.java
/*-----------------------------------------------------------------------------
* Vpacker.java - A wrapper of vpacker32/64 for JNI
*
* Coding-Style: google-styleguide
* https://code.google.com/p/google-styleguide/
*
* Copyright 2013 <NAME> <<EMAIL>>
*---------------------------... |
BIODIVERSITY AND FUNTIONING OF SELECTED TERRESTRIAL ECOSYSTEMS : ALPINE AND ARCTIC ECOSYSTEMS
Ecosystem integrity on steep mountain slopes and in high elevation landscapes is in general a question of soil stability, which in turn depends on plant cover and rooting patterns. Terrestrial net primary production and decom... |
import { AlunosRepository } from "../../repositories/AlunosRepository";
import { PedidosRepository } from "../../repositories/PedidosRepository";
import { ListPedidosByALunosAguardandoDoadorController } from "./ListPedidosByAlunosAguardandoDoadorController";
import { ListPedidosByAlunosAguardandoDoadorUseCase } from ".... |
package org.cryptimeleon.predenc.abe.cp.large.distributed;
import org.cryptimeleon.math.serialization.Representation;
import org.cryptimeleon.math.serialization.StandaloneRepresentable;
import org.cryptimeleon.math.serialization.annotations.ReprUtil;
import org.cryptimeleon.math.serialization.annotations.Represented;
... |
/**
* An implementation of {@link EventDataConverter} for protocol version v0.22.
*
* The previous converter implementation, {@link EventDataConverterV21}, does
* not expose the proper blip hierarchy, for example, parent blip can be the
* blip that contains the container thread, or the previous sibling blip. This
... |
import { Component, Input, EventEmitter, Output, OnInit, OnDestroy } from '@angular/core';
import { UtilsService } from '@app/app/manage-learn/core';
@Component({
selector: 'app-page-questions',
templateUrl: './page-questions.component.html',
styleUrls: ['./page-questions.component.scss'],
})
export class PageQu... |
// MarshalXML to year month day
func (dx DateYMD) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
d := dx.Val()
if d == nil {
return nil
}
err := e.EncodeToken(start)
if err == nil {
e.EncodeElement(d.Year(), xml.StartElement{Name: xml.Name{Local: "year"}})
}
if err == nil {
e.EncodeElement(d.Mo... |
//update the database and memolist acccording to the "num" memo that Edit.class return
private void updateLitePalAndList(int requestCode, Intent it) {
int num=requestCode;
int tag=it.getIntExtra("tag",0);
Calendar c=Calendar.getInstance();
String current_date=getCurrentDate(c);
S... |
/**
* This unit test fires up a client and server and then tests that the client can request gzip content from the server.
* @author Tom Haggie
*/
public class AcceptEncodingGZipTest {
private static final String MESSAGE = "Hello world!";
private int port;
private HttpServer<ByteBuf, ByteBuf> server;
... |
/**
* Connected session for a memcached server
*
* @author dennis
*/
public class MemcachedTCPSession extends NioTCPSession implements
MemcachedSession, Serializable {
/**
* Command which are already sent
*/
protected BlockingQueue<Command> commandAlreadySent;
private final AtomicRef... |
/*!
* \brief Sets the alpha map with a reference to a texture
* \return true If successful
*
* \param alphaMap Texture
*
* \remark Invalidates the pipeline
*/
inline void Material::SetAlphaMap(TextureRef alphaMap)
{
m_alphaMap = std::move(alphaMap);
m_pipelineInfo.hasAlphaMap = m_alphaMap.IsValid();
Inval... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.