content stringlengths 10 4.9M |
|---|
<reponame>icoder33/dart_native<filename>ios/Classes/DOPointerWrapper.h
//
// DOPointerWrapper.h
// dart_objc
//
// Created by 杨萧玉 on 2019/11/5.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface DOPointerWrapper : NSObject
@property (nonatomic) void *pointer;
@end
NS_ASSUME_NONNULL_END
|
// Given a list of points and a list of vertices with the same orientation, it finds the first
// vertex of P which lies after the queried point, excluding the point itself.
Eigen::Index find_closest_corner_after_strict(
const mat2x& B,
const vecXi& P,
const Eigen::Index q
) {
Index min_d = numeric_li... |
# -*- coding: utf-8 -*-
# Copyright 2021 Cohesity Inc.
import cohesity_management_sdk.models.aws_credentials
import cohesity_management_sdk.models.a_w_s_fleet_params
import cohesity_management_sdk.models.azure_credentials
import cohesity_management_sdk.models.exchange_dag_protection_preference
import cohesity_manageme... |
Kinetics of solvolysis of intrazole.
The kinetics of degradation of intrazole in solution was investigated at 65 ± 0.1° at constant ionic strength of 0.5 over a wide pH range. The observed rates, followed by measuring intact intrazole, obeyed first-order kinetics. The catalytic effect of a phosphate buffer was found... |
Distribution of intrathecal catheter positions in rat
Background: Although drug administration through an intrathecal catheter is widely used in the study of spinal pharmacology, the catheter positions in transverse plane that may cause a limited spread of a solution remain unclear. In the first step to clarify this i... |
<reponame>hanebarla/CrowdCounting-using-PedestrianFlow
import os
from random import shuffle
from lib.model import CANNet2s, SimpleCNN
from lib.utils import save_checkpoint, fix_model_state_dict
import torch
from torch import nn
from torch.autograd import Variable
from torchvision import datasets, models, transforms
im... |
/**
* Generic tree structure. Only concrete subclasses of this can be instantiated.
*/
public class TreeNode<NodeType extends TreeNode<NodeType>> {
protected ArrayList<NodeType> children = Lists.newArrayList();
public NodeType getChild(int i) {
return hasChild(i) ? children.get(i) : null;
}
... |
More fun from the self-loathing society: This American Life had a show about how young female undercover cops infiltrated a high school and flirted with boys to entrap them into selling pot, so they could charge them with felonies and destroy their lives at an early age.
Last year in three high schools in Florida, sev... |
/**
* Jackson-friendly version of {@link Loan}
*/
public class JsonAdaptedLoan extends JsonAdaptedTransaction {
/**
* Constructs a {@code JsonAdaptedLoan} with the given loan details.
*/
@JsonCreator
public JsonAdaptedLoan(@JsonProperty("description") String description,
... |
/**
* this is the tmporary game loop
*/
public void run(){
this.init();
int fps = 60;
double timePerTick = 1000000000 / fps;
double delta = 0;
long now;
long lastTime = System.nanoTime();
long timer = 0;
int ticks = 0;
while(running){
now = System.nanoTime();
delta += (now - lastTime) / ti... |
/*!
@file
Defines `boost::hana::pair`.
@copyright Louis Dionne 2013-2017
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_HANA_PAIR_HPP
#define BOOST_HANA_PAIR_HPP
#include <boost/hana/fwd/pair.hpp>
#include <... |
The Galactic Center region viewed by H.E.S.S
The Galactic center region is the most active region in the Milky Way harboring a wealth of photon sources at all wavelengths. H.E.S.S. observations of the Galactic Center (GC) region revealed for the first time in very high energy (VHE, E>100 GeV) gamma-rays a detailed vie... |
import java.util.*;
public class Main1
{
public static void main(String args[])
{
Scanner sc = new Scanner(System.in);
int n=0;
n = sc.nextInt();
int arr [] = new int[n];
for(int i=0;i<n;i++)
{
arr[i] = sc.nextInt();
}
int smal... |
#!/usr/bin/env python
"""
File name: test_CTCI_Ch4_Ex4.py
Author: <NAME>
Date created: 2/19/2019
Date last modified: 2/19/2019
Python Version: 3.7
Description: CTCI 4.4 Check Balanced
Implement a function to check if a binary tree is balanced. For... |
import React from 'react';
// @material-ui/core components
import { makeStyles } from '@material-ui/core/styles';
import { Card } from '@material-ui/core';
const useStyles = makeStyles((theme) => ({
card: {
border: '0',
marginBottom: '30px',
marginTop: '30px',
borderRadius: '6px',
color: 'rgba(' + theme.p... |
<reponame>recp/AssetK<gh_stars>100-1000
/*
* Copyright (C) 2020 <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 ... |
Trends in overweight by educational level in 33 low‐ and middle‐income countries: the role of parity, age at first birth and breastfeeding
This study examined trends in overweight among women of reproductive age by educational level in 33 low‐ and middle‐income countries, and estimated the contribution of parity, age ... |
<filename>src/interfaces/sort-options.ts
import { SortOrder } from "enums/sort-order";
interface SortOptions<T = any> {
column?: keyof T;
order?: SortOrder;
}
export type { SortOptions };
|
/**
* Fill this node with a deep copy of the given node.
*/
public void copyFrom(QueryTreeNode node) throws StandardException {
super.copyFrom(node);
ResultSetNode other = (ResultSetNode)node;
this.resultColumns = (ResultColumnList)getNodeFactory().copyNode(other.resultColumns,
... |
import * as Transport from 'winston-transport'
interface DatadogTcpTransportOptions extends Transport.TransportStreamOptions {
host: string,
port: number,
apiKey: string,
level?: string,
reconnectInterval?: number,
reconnectAttempts?: number,
bufferLength?: number,
tags?: {}
... |
/**
* Method to register a client by calling the dynamic client registration endpoint in API Manager.
*
* @param applicationRequestDTO OAuth Application Request DTO
* @param username tenant username
* @param password tenant password
* @return OAuthApplicationInfo... |
/**
* Creates response with status 'OK'.
*
* @param body for the response
* @return HTTP response instance
*/
protected HttpResponse okResponse(InputStream body) {
BasicStatusLine statusLine = new BasicStatusLine(HttpVersion.HTTP_1_1, 200, "OK");
BasicHttpEntity entity = new BasicHttpEntity();
... |
#include <bits/stdc++.h>
#define ll long long
using namespace std;
ll a[1000000];
// string lltoString(ll timestamp)
// {
// string result;
// ostringstream ss;
// ss<<timestamp;
// istringstream is(ss.str());
// is>>result;
// return result;
// }
string lltoString(ll t) {
... |
//// packages that contain a "Client" identifier
func jClientID(pkgPath string) *j.Statement {
if pkgPath != "" {
return j.Qual(pkgPath, srcClient)
}
return j.Id(srcClient)
} |
Dell Computer Inc. (NASDAQ:DELL), a stalwart pioneer in the direct marketing of computer equipment, has turned to distributors Ingram Micro Inc. and Tech Data Corp. to win a bigger share of sales to small to medium-sized businesses.
Under terms of the deal, Dell will provide Ingram Micro (NYSE:IM) and Tech Data (NASDA... |
<reponame>moonrhythm/parapet<filename>pkg/headers/intercept.go
package headers
import (
"bufio"
"net"
"net/http"
)
// InterceptRequest creates new request interceptor
func InterceptRequest(f func(http.Header)) *RequestInterceptor {
return &RequestInterceptor{Intercept: f}
}
// RequestInterceptor intercepts reque... |
async def create_container(self, container_name: str, container_configuration: ContainerConfiguration) \
-> Optional[Union[DockerContainer, Container]]:
LOGGER.debug("Creating container: {:s}".format(container_name))
if container_configuration.networks:
first_network_name = conta... |
Two ambitious, imaginative, complex novels, both loaded with drama and improbable incidents and crazy people. One of them gently asking you, by means of a series of absorbing textual and graphic puzzles, to be mindful of human fallibility repeating itself, and of the fragility and beauty of the earth; the other, an int... |
<gh_stars>10-100
import CircuitBreaker from 'circuit-breaker-js';
/** We give more weight to ratings with reviews than those without. */
export const dtrTextReviewMultiplier = 10;
export const dtrD2ReviewsEndpoint = 'https://api.tracker.gg/api/v1/destiny-2/db/reviews';
const TIMEOUT = 3000;
const HTTP_503_TIMEOUT = ... |
/*
*-----------------------------------------------------------------------------
*
* TransferPostgresError --
*
* Obtains the connection related error message from the Postgres
* client library and transfers them into the Tcl interpreter.
* Unfortunately we cannot get error number or SQL state in
* connection ... |
/**
* @TODO Implement main method to serve as test client for the EvacuationQueue
*/
public static void main(String args[])
{
} |
/**
* Represents the result of a call to <i>getUpdates</i> REST service.
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class UpdateResult implements Serializable {
private static final long serialVersionUID = -4560342931918215225L;
private boolean ok;
@JsonProperty("result")
private List<Up... |
def sum(self, left_index, right_index):
if right_index < left_index:
raise ValueError("Right index must be higher than left index")
n = len(self.items)
left_index += n
right_index += n + 1
result = 0
while left_index < right_index:
if left_index & ... |
/**
* Display Events on third panel.
*/
@FXML
private void handleEvent() {
eventListPanel = new EventListPanel(logic.getFilteredEventList());
personListPanelPlaceholder2.getChildren().clear();
personListPanelPlaceholder2.getChildren().add(eventListPanel.getRoot());
} |
def _make_rest_call(self, url, action_result):
config = self.get_config()
resp_json = None
params = {'url': url}
headers = {'Authorization': 'Token {0}'.format(config[PHISINIT_JSON_API_KEY])}
try:
r = requests.get(PHISINIT_LOOKUP_URL, params=params, headers=headers)
... |
/****************************************************************************************************/
/**
* NetIF_Tx()
*
* @brief Transmit data packets to network interface(s)/device(s).
*
* @param p_buf_list Pointer to network buffer data packet(s) to transmit... |
def prepare_as_panel(df, stock_name):
df['stock'] = stock_name
return df.reset_index().set_index(['stock', 'Date']).to_panel() |
package main
import (
"encoding/json"
"fmt"
"log"
"os"
"os/exec"
"runtime"
"strings"
)
type data struct {
ImportPath string
Name string
}
func main() {
cmd := exec.Command(runtime.Version(), "list", "-json")
cmd.Stderr = os.Stderr
b, err := cmd.Output()
if err != nil {
cmd = exec.Command("go", "... |
// Macros are created using the macro_rules! macro.
macro_rules! say_hello {
() => {
println!("Hello!");
};
}
fn main() {
say_hello!();
}
// So why are macros useful?
// 1. Don't repeat yourself.
// There are many cases where you may need similar functionality in multiple places but with ... |
<reponame>andrewhickman/calegon
extern crate bytecount;
#[macro_use]
extern crate lalrpop_util;
extern crate int_hash;
extern crate lazy_static;
extern crate memchr;
#[cfg(any(test, feature = "arbitrary"))]
#[macro_use]
extern crate proptest;
extern crate linked_hash_map;
#[cfg(any(test, feature = "arbitrary"))]
extern... |
<reponame>manuth/WoltLabCompiler
import { INode } from "../../NodeSystem/INode";
import { Category } from "../Category";
import { ICategoryOptions } from "../ICategoryOptions";
import { GroupOption } from "./GroupOption";
import { IGroupOptionOptions } from "./IGroupOptionOptions";
/**
* Represents an option-category... |
def lowering(self):
loops, idxs = LoopNode.create_loops(self.in_var.dim)
in_var_idx = IndexedVariable(self.in_var)
out_var_idx = IndexedVariable(self.out_var)
in_var_idx.set_indices(idxs)
out_var_idx.set_indices(idxs)
condition = Expression('{t_var_idx} < 0', t_var_idx=in... |
use crate::tetris::{Point, Size};
use std::slice::Iter;
use crate::gaming_screen::data::bricks::Brick;
pub(crate) mod bricks;
pub(crate) mod game_panel;
pub struct BlocksData {
pub blocks: Vec<Vec<bool>>,
block_size: Size,
}
fn create_empty_line(width: u16) -> Vec<bool> {
[false].repeat(width as usize).... |
package filter
import (
"bytes"
"github.com/hidal-go/hidalgo/values"
)
type ValueFilter interface {
FilterValue(v values.Value) bool
}
type SortableFilter interface {
ValueFilter
FilterSortable(v values.Sortable) bool
// ValuesRange returns an optional range of value that matches the filter.
// It is used as... |
package utils
import (
"encoding/binary"
"math"
"strconv"
"strings"
"unsafe"
)
//获取source的子串,如果start小于0或者end大于source长度则返回""
//start:开始index,从0开始,包括0
//end:结束index,以end结束,但不包括end
func Substring(source string, start int, end int) string {
var r = []rune(source)
length := len(r)
if start < 0 || start > end {
... |
Nonlinear adaptive image filtering based on inhomogeneous diffusion and differential geometry
The inadequacy of the classic linear approach to edge detection and scale space filtering lies in the spatial averaging of the Laplacian. The Laplacian is the divergence of the gradient and thus is the divergence of both magn... |
// This test only covers the case when Run() stops.
func TestRunner_Run(t *testing.T) {
ctx := context.Background()
b := []byte(`
test_pathway:
historical_data:
- result:
order_profile: UREA AND ELECTROLYTES
results:
- test_name: Creatinine
value: 126.00
unit: U... |
<reponame>denisbider/Atomic<gh_stars>1-10
#include "AtIncludes.h"
#include "AtCsv.h"
#include "AtNumCvt.h"
namespace At
{
void CsvReader::Init(char fieldDelim, char commentDelim)
{
m_fieldDelim = fieldDelim;
m_commentDelim = commentDelim;
sizet i {};
m_delims [i++] = m_fieldDelim;
i... |
// Returns the union of two AABBs (i.e. the smallest AABB containing bbox1 and bbox2)
inline AxesAlignedBoundingBox UnionOfAABBs(AxesAlignedBoundingBox const& bbox1,
AxesAlignedBoundingBox const& bbox2)
{
Vec3 minima;
Vec3 maxima;
std::transform(std::begin(bbox1.Mi... |
/*******************************************************************************
function :this is the at receiver engine
parameters :
instruction :this task read the device continousely and blocked by the read function
if pass by mode, then pass it to the pass function;else will match the
... |
<reponame>jkomoros/sudoku
package sudoku
import (
"crypto/sha1"
"encoding/hex"
"fmt"
"log"
"sort"
"strconv"
"strings"
)
//DifficultySignals is a collection of names to float64 values, representing
//the various signals extracted from a SolveDirections, and used for the
//Difficulty calculation. Generally not u... |
/// Figure 10.31 How to handle SIGTSTP
///
/// Added a println to sig_tstp to show that the signal
/// is really caught
#[macro_use(as_void)]
extern crate apue;
extern crate libc;
use std::mem::uninitialized;
use std::ptr::null_mut;
use libc::{c_int, SIGTSTP, SIG_UNBLOCK, SIG_DFL, SIG_IGN, STDIN_FILENO, STDOUT_FILENO}... |
<reponame>SpeedcuberM/KhSM<filename>Android/app/src/main/java/com/khsm/app/data/entities/Gender.java
package com.khsm.app.data.entities;
import com.google.gson.annotations.SerializedName;
public enum Gender {
@SerializedName("male")
MALE,
@SerializedName("female")
FEMALE
}
|
<reponame>stephanwilliams/rust386
#[derive(PartialEq, Eq, Debug, Copy, Clone)]
pub enum AddressingMethod {
A, C, D, E, F, G, I, J, M, O, R, S, T, X, Y
}
impl AddressingMethod {
pub fn has_modrm(&self) -> bool {
match *self {
AddressingMethod::C |
AddressingMethod::D |
... |
/**
* PropertyDescriptor may lose the references to the write and read methods during
* garbage collection. If the methods can't be found, we should retry once to
* ensure that our PropertyDescriptor hasn't gone bad and the method really
* isn't there.
*
* @param writeMethod {@code true} t... |
def allstack(vals, depth=0):
if type(vals[0]) is ndarray:
return concatenate(vals, axis=depth)
else:
return concatenate([allstack(x, depth+1) for x in vals], axis=depth) |
package gorden
import (
"net/http"
"github.com/gorilla/sessions"
)
type Manager struct {
strategy Strategy
sessionConfig SessionConfig
cookieStore *sessions.CookieStore
}
func (manager *Manager) Authenticate(arguments interface{}) bool {
return manager.strategy.Authenticate(arguments)
}
func... |
Cheers and beers: Guardiola toasts his Bayern team of champions as they celebrate Oktoberfest in Munich
GARY NEVILLE COLUMN
Click here to read his latest column on Bayern Munich - We've forgotten just what made British football great
Pep Guardiola is thriving on and off the pitch at Bayern Munich, merging his and th... |
/**
* This class represents the {@link CustomField} for the <code>materials</code>
* property of {@link RegistrationUnit} class. Component consist of
* {@link Table} and {@link Button} for creating new and deleting selected
* {@link Material} items from a table.
*/
class MaterialsCustomField extends CustomFie... |
#include<bits/stdc++.h>
using namespace std;
char c[1000001];
int n;
char a[1000001];
int m;
int main()
{
scanf("%s",c+1);
n=strlen(c+1);
if (n==3) { printf("%c",c[1]); return 0; }
int i=1,j=n;
for (;i+3<=j;i++,j--)
if (c[i]==c[j]) a[++m]=c[i];
else if (c[i]==c[j-1]) a[++m]=c[i],j--;
else if (... |
module Preprocess.Expression where
import qualified Interpreter.AST as I
import qualified Parse.AST as P
import Preprocess.Constant
preprocessExpression :: P.Expression -> I.Expression
preprocessExpression (P.ConstE c) = I.Constant (preprocessConst c)
preprocessExpression (P.ConsE a b) = I.Cons (preprocessExpression ... |
<reponame>B2M-Software/SMG2.0
package ch.iec._61400.ews._1;
import javax.xml.bind.annotation.XmlRegistry;
/**
* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the ch.iec._61400.ews._1 package.
* <p>An ObjectFactory allows you to programaticall... |
def Output_ReachOutput(self, riv, rch, prof, nVar):
rc = self._rc
nRS = None
rs = None
ChannelDist = None
value = None
res = rc.Output_ReachOutput(riv, rch, prof, nVar, nRS, rs, ChannelDist,
value)
riv, rch, prof, nVar, nRS, rs,... |
Buy Photo Deputy Rowan County Clerk Brian Mason tells the media Monday morning that he will continue issuing marriage licenses. (September 14, 2015) (Photo: Tim Webb, Special to the CJ)Buy Photo
MOREHEAD, Ky. — Although she returned to her office Monday, Rowan County Clerk Kim Davis remained out of sight as one of her... |
//-----------------------------------------------------------------------------
// Purpose: Removes all outputs from the outputs combo box that are NOT present
// in the given entity's output list. Used when multiple entities are
// selected into the Entity Properties dialog.
// Input : pEntity - Entity to use... |
East Lansing voters are deciding Tuesday night whether to become Michigan’s 23rd city that imposes an income tax on its residents. (Photo: .)
East Lansing voters defeated a plan to make their city the state's 23rd to impose an income tax on its residents, according to unofficial results late Tuesday night.
A majority... |
<gh_stars>1-10
import { RouteDefinition } from '../../types';
import { createRedirection, createRoute, includeRoutes } from '../routes';
describe.skip('utils', () => {
describe('createRoute', () => {
const RootView = () => null;
const LoginView = () => null;
const SignUpView = () => null;
beforeAll(... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2022/1/10 13:11
# @Author : WeiHua
import cv2
import numpy as np
import torch
from mmdet.models import StandardRoIHead
from mmdet.models.builder import HEADS
from mmdet.models.roi_heads.mask_heads.fcn_mask_head import _do_paste_mask
from mmdet.core import bbox2roi... |
Lots of non-answers here. I will offer some of my experiences as a former Mormon, but keep in mind that (true to the question) I believe these are reasons to criticize/condemn the Mormon church’s structure, and NOT its individual members. I don’t mean to ridicule others for their beliefs, but I do mean to share why man... |
/**
* This class is used to record other exceptions except block exception.
*
* @author jialiang.linjl
* @author Eric Zhao
*/
public final class Tracer {
/**
* Trace provided {@link Throwable} and increment exception count to entry in current context.
*
* @param e exception to record
*/
... |
def ansi_code(name):
try:
obj = colorama
for part in name.split("."):
obj = getattr(obj, part)
return obj
except AttributeError:
return "" |
package main
import (
"context"
"fmt"
"io/ioutil"
"log/syslog"
"os"
"os/signal"
"path/filepath"
"syscall"
"text/tabwriter"
"time"
"github.com/gravitational/rigging"
goyaml "github.com/ghodss/yaml"
yaml "github.com/ghodss/yaml"
"github.com/gravitational/trace"
log "github.com/sirupsen/logrus"
logrusSy... |
from django.contrib import admin
from django.utils.translation import ugettext as _
class CustomerTypeFilter(admin.SimpleListFilter):
""" Admin filter which allows us to only show in company / physical personal customer. """
title = _("Type de client")
parameter_name = 'customer_type'
COMPANY = 'comp... |
<filename>NightEngine2/src/Editor/MemberSerializerEditor.hpp
/*!
@file MemberSerializerEditor.hpp
@author <NAME>
@brief Contain the Interface of MemberSerializerEditor
*/
#pragma once
#include <unordered_map>
#include "Core/Container/MurmurHash2.hpp"
#include <string>
namespace NightEngine
{
namespace Reflecti... |
/**
* <p><code>Registry</code> is a factory which gets implementations of
* the BioJava <code>SequenceDBLite</code> interface. This is the
* point of entry for OBDA access.</p>
*
* @author Brian Gilman
* @author Thomas Down
* @author Keith James
*
* @version $Revision: 3220 $
*/
public class Registry {
/... |
/*
Copyright (c) 2014, <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the followi... |
Chronic disease and lifestyle factors associated with change in sleep duration among older adults in the Singapore Chinese Health Study
Identifying risk factors for future change in sleep duration can clarify whether, and if so how, sleep and morbidity are bidirectionally related. To date, only limited longitudinal ev... |
// POST will start the building of a POST request
func (c *Case) POST(p string) *RequestBuilder {
return &RequestBuilder{
method: http.MethodPost,
path: p,
cas: c,
fail: c.fail,
}
} |
/**
* Positive test case for checkCustomerAccountsMaintenance method with mandatory parameters.
*/
@Test(enabled = true, groups = {"wso2.esb"},
description = "SAPByDesign {checkCustomerAccountsMaintenance} integration test with mandatory parameters.")
public void testCheckCustomerAccountsMaint... |
<filename>features/kms-keystore-keplerlake/src/main/java/com/intel/kms/keplerlake/KeplerlakeClient.java<gh_stars>0
/*
* Copyright (C) 2019 Intel Corporation
* SPDX-License-Identifier: BSD-3-Clause
*/
package com.intel.kms.keplerlake;
import com.intel.dcsg.cpg.configuration.Configuration;
import com.intel.dcsg.cpg.t... |
// UrlFileNameMatchConditionParametersARMGenerator returns a generator of UrlFileNameMatchConditionParametersARM instances for property testing.
func UrlFileNameMatchConditionParametersARMGenerator() gopter.Gen {
if urlFileNameMatchConditionParametersARMGenerator != nil {
return urlFileNameMatchConditionParametersAR... |
_base_ = ['./pose-detection_static.py', '../_base_/backends/tensorrt.py']
onnx_config = dict(
input_shape=[192, 256],
dynamic_axes={
'input': {
0: 'batch',
},
'output': {
0: 'batch'
}
})
backend_config = dict(
common_config=dict(max_workspace_siz... |
Research on Temperature Prediction Model and Temperature Control Model for Fruit and Vegetable Greenhouses
China's agriculture is changing to a modern form of agriculture due to the continuous development of science and technology. In order to find the factors suitable for the growth of fruits and vegetables and provi... |
Image copyright Getty Images Image caption It was the second time in one week the popular site went down
Facebook has restored access to its website after a 40-minute outage on Monday, the second time in a week that the site has gone down.
Users saw an error message that read "Sorry, something went wrong. We're worki... |
// Run will start the crawling process
func (b *Bot) Run() {
w := &WebhookResponse{}
result, err := b.GetPosts()
if err != nil {
w.Error = err
b.makeRequest(w)
}
w.Response = result
b.makeRequest(w)
} |
// isPoolOperationPending returns true if pool operation is InProgress else return false
func (f *fixture) isPoolOperationPending(cspiName string, tConfig *testConfig) (bool, string) {
ns, name, err := cache.SplitMetaNamespaceKey(cspiName)
if err != nil {
return false, err.Error()
}
cspiObj, err := f.openebsClien... |
/**
* Base service for the standard slider client/server services
*/
public abstract class AbstractSliderLaunchedService extends
LaunchedWorkflowCompositeService {
private static final Logger log =
LoggerFactory.getLogger(AbstractSliderLaunchedService.class);
protected AbstractSliderLaunchedService(Strin... |
from pypy.objspace.fake.checkmodule import checkmodule
def test_checkmodule():
checkmodule('struct')
|
// Read implements the io.Reader interface.
func (f *File) Read(b []byte) (n int, err error) {
reader, err := f.getReader()
if err != nil {
return 0, err
}
return reader.Read(b)
} |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package eu.fivegex.monitoring.appl.probes.delay.unidirectional;
import eu.reservoir.monitoring.appl.datarate.EveryNSeconds;
import eu.... |
/*
//@HEADER
// ************************************************************************
//
// Shards : Shared Discretization Tools
// Copyright 2008 Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S. Government retains certain righ... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//
//=============================================================================//
#include "cbase.h"
#include "ai_default.h"
#include "ai_task.h"
#include "ai_schedule.h"
#include "ai_nod... |
import {
BadRequestException,
Injectable,
InternalServerErrorException,
NotAcceptableException,
NotFoundException,
} from '@nestjs/common';
import { InjectModel } from '@nestjs/mongoose';
import { Model } from 'mongoose';
import { UserDoc } from '../User/User.model';
import { Address, AddressAttrWithoutUserID... |
/**
* Create a session for validating a phone number.
* <br>
* The identity server will send an SMS message containing a token. If that token is presented to the identity server in the future,
* it indicates that that user was able to read the SMS for that phone number, and so we validate ownership ... |
<reponame>scroix/nodel
package org.nodel.core;
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
import java.util.ArrayList;
import java.util.HashMap;
import... |
// Sajal Asati
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define pb push_back
#define mkp make_pair
#define pf push_front
#define ff first
#define ss second
// #define endl "\n"
#define lpstl(i,v) for(auto &i: v)
#define all(a) a.begin(),a.end()
#define rall(x) (x).rbeg... |
// Code generated. DO NOT EDIT.
package config
const Version = "v0.9.10-alpha.9"
|
Atlanta United’s first ever preseason training camp convenes on Monday in Bradenton, Florida at the IMG Academy. As the club embarks on their inaugural season, the technical staff has been hard at work assembling a roster to be competitive in MLS from the start. All indications are that the roster is not yet complete, ... |
Scientists have moved a step closer to correcting some unhealthy gene mutations with diet, according to a new research report appearing in the April 2012 issue of the journal Genetics. Researchers from the University of California, Berkeley, determined variations and responses to vitamin treatment in the human cystathi... |
<reponame>rhyep/Python_tutorials<filename>Language Skills/Python/Unit 07 Lists and Functions/01 Lists and Functions/List Recap/1-List accessing.py
n = [1, 3, 5]
# Add your code below
print n[1]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.