content
stringlengths
10
4.9M
/* * Copyright (c) 2022 Microsoft Corporation * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0 * * SPDX-License-Identifier: Apache-2.0 * * Contributors: * Micr...
def flip_convention(self, depth_key=None): return self.shift(delta=-self.stop.z, depth_key=depth_key)
mod program; mod state; use std::fs; #[macro_use] extern crate lalrpop_util; lalrpop_mod!(pub parser); fn run_file(path: &'static str) -> state::Int { let program_parser = parser::ProgramParser::new(); let source = fs::read_to_string(path).expect("Invalid source file"); let program = program_parser.parse...
// // Copyright (c) 2017, Cisco Systems // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, // are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, this // list of conditi...
import Dexie from 'dexie'; export declare class ImDb { pageLimit: number; db: Dexie; $_TABLE: Dexie.Table<{ [x: string]: any; }, string>; init(username: string, pageLimit?: number): void; exec(cb1: any, cb2?: Function): Promise<unknown>; getUnreadList(): Promise<unknown>; fetchMe...
#ifdef __CINT__ #pragma link off all globals; #pragma link off all classes; #pragma link off all functions; #pragma link C++ class EicMagneticFieldMap+; #pragma link C++ class EicBeamLineElementMap+; #pragma link C++ class EicPndFieldMap+; #pragma link C++ class EicMediaHub+; #pragma link C++ class EicConstantField+...
/* ----------------------- * Test assertions (with ASSERT_MATCHES signatures). */ void assertMatchesTextDEF(hREADER reader, ION_EXTRACTOR_PATH_DESCRIPTOR *matched_path, ION_EXTRACTOR_PATH_DESCRIPTOR *original_path, ION_EXTRACTOR_CONTROL *control) { ION_STRING value; ION_TYPE type; ...
#include<bits/stdc++.h> using namespace std; typedef long long ll; int main(){ int n; cin>>n; int arr[n]; for(int i = 0 ; i < n; i++){ cin>>arr[i]; } ll best = 10000000000; for(int i = 0; i <= 100; i++){ ll sum = 0; for(int j = 0; j < n; j++){ sum += (arr[j]-i) * (arr[j]-i); } best = min(best,su...
def visit_Attribute(self, node: ast.Attribute) -> None: if not isinstance(node.value, (ast.Attribute, ast.Name)): raise ValueError( "Expected attribute to be one of `ast.Name` or `ast.Attribute`, got" f" `ast.{type(node.value).__name__}`" ) if not ...
package grail import ( "github.com/grailbio/base/log" "v.io/x/lib/vlog" ) // VlogOutputter implements base/log.Outputter backed by vlog. type VlogOutputter struct{} func (VlogOutputter) Level() log.Level { if vlog.V(1) { return log.Debug } else { return log.Info } } func (VlogOutputter) Output(calldepth in...
A THEN 14-YEAR-OLD Dublin schoolboy who was caught with more than €2,000 worth of cocaine and heroin stashed in his pocket, has been detained for three months. Judge John O’Connor had described the boy’s case as a “horror” and had said earlier that he needed to find out if the boy, now aged 15, was a dealer or had bee...
// Return a 16-byte hash for 48 bytes. Quick and dirty. // callers do best to use "random-looking" values for a and b. func weakHash32Seeds(w, x, y, z, a, b uint64) U128 { a += w b = rot64(b+a+z, 21) c := a a += x a += y b += rot64(a, 44) return U128{a + z, b + c} }
def jet_C_groomed(jet, beta): pass finalpartons = [parton for parton in jet.partons if parton.isFinalState] P = jet.momentum.mag() C = 0 for i, partoni in enumerate(finalpartons): for j, partonj in enumerate(finalpartons): if not i == j: momi =...
/** * Object class to store data from a questionnaire. * */ public class QuestionnaireData { protected String identifier; protected GroupInstance answers = new GroupInstance(Constants.ROOT_GROUP_NAME, ""); public String getIdentifier() { return identifier; } public void setIdentifier(St...
// Float64IfNotMatchFunc returns the value deflt if validator(actual) returns false, // otherwise returns actual. func Float64IfNotMatchFunc(actual, deflt float64, validator func(float64) bool) float64 { if validator(actual) { return actual } return deflt }
<reponame>stustison/arbitro<gh_stars>0 /* * @(#)NOfFunction.java * * Copyright 2003-2005 Sun Microsystems, Inc. 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. Redistribution of sou...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // IMPORTANT: Before updating this file // please read react-native-windows repo: // vnext/Microsoft.ReactNative.Cxx/README.md #pragma once #include <TurboModuleRegistry.h> #include "winrt/Microsoft.ReactNative.h" namespace winrt::Microsoft::...
<gh_stars>1-10 /* * Copyright 2020 ThoughtWorks, Inc. * * 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 applic...
#include <stdio.h> int main(void) { int x,k,i; scanf("%d%d",&k,&x); x=x-k+1; for(i=0;i<2*k-1;i++){ printf("%d ",x); x++; } // your code goes here return 0; }
A MOTHER-OF-FIVE who was found dead on wasteland killed herself by taking an overdose, an inquest heard. Police discovered the body of Angela Edwards, 38, in bushes near her Cromdale Grove home in Parr. Officers arrested her husband Stephen Edwards, 38, on suspicion of murder, but he was released and fully cleared of...
import qualified Data.ByteString.Char8 as B import Data.List (foldl') import Data.Array.IArray import Data.Array.ST.Safe (STArray,STUArray,newArray,readArray,writeArray) import Data.STRef (newSTRef,readSTRef,writeSTRef) import Control.Monad (when) import Control.Monad.ST.Safe (ST,runST) main = do (n:ns) <- fm...
def to_status(failure: typing.Optional[str] = None, success: typing.Optional[str]=None): def _(states: typing.List[std.State]): _state_map: typing.Dict[Discrete, str] = {} for state in states: if state.status == Status.FAILURE: if failure is None: rais...
/// Sets this dispatch as the default for the duration of a closure. /// /// The default dispatcher is used when creating a new [span] or /// [`Event`], _if no span is currently executing_. If a span is currently /// executing, new spans or events are dispatched to the subscriber that /// tagged that span, instead. ///...
#include<iostream> #include<cmath> #include<vector> #include<algorithm> #include<utility> using namespace std; int main(){ int w,h; cin>>w>>h; int x,y,x1,y1; cin>>x>>y>>x1>>y1; for (int i=h;i>0;--i){ w+=i; if (y==i){w-=x;} if (y1==i){w-=x1;} if (w<0){w=0;} } ...
The training value of working with armed forces inpatients in psychiatry Over the last 10 years, the UK armed forces (UKAF) have been involved in operations worldwide. Mental health in the armed forces (AF) has been the subject of considerable interest in part because of a perceived added risk of psychological distres...
<reponame>Praveen-pr-94/short-url-nestjs import { InjectModel } from '@nestjs/mongoose'; import { Injectable } from '@nestjs/common'; import { Model } from 'mongoose'; import { Url } from './url/url/url.model'; @Injectable() export class AppService { constructor(@InjectModel('Url') private readonly urlModel: Model<...
/// Return the transpose of a matrix pub fn transpose(matrix: &Matrix) -> Matrix { let mut trans = Matrix::new(matrix.column_size(), matrix.row_size()); for (i, row) in matrix.rows.iter().enumerate() { for j in 0..matrix.column_size() { trans.rows[j].set(i, row[j]); } } trans...
/** * @brief update is called each frame. * * @return true if success * @return false if failure */ bool Fire::update() { _timeToDie -= game.getDtTime(); if (_timeToDie <= 0.0) { alive = false; } for (auto &&enemy : game.enemies) { if (enemy->hasCollision(position)) { enemy->takeDamage(1); } } if (g...
/** * create a random blob between 32 and 64 kb. */ public byte[] generateCleartext() { int size = 32 * 1024; size += random.nextInt(size); byte[] buf = new byte[size]; random.nextBytes(buf); return buf; }
Claudia Gadelha is not expected to be fined by the Arizona Boxing and MMA Commission for her late blow on Joanna Jedrzejczyk at Saturday's UFC on FOX 13 event in Phoenix, executive director Matthew Valenzuela informed MMAFighting.com. Gadelha popped Jedrzejczyk with a right hook seconds after the horn signaled the end...
/** * Registers the components used by Jersey */ public class IkasanRestApplication extends ResourceConfig { /** * Registers the applications we implement and the Spring-Jersey glue */ public IkasanRestApplication() { register(RolesAllowedDynamicFeature.class); } }
// Test persisting, reading and verifying and then updating and verifing. TEST_F(PropertiesBasedQuicServerInfoTest, Update) { InitializeAndPersist(); PropertiesBasedQuicServerInfo server_info1(server_id_, &http_server_properties_); EXPECT_TRUE(server_info1.Load()); c...
/** * Holds the loads averaged over 1min, 5min, and 15min. */ public final class LoadTriplet { // Exponents for EWMA: exp(-INTERVAL / WINDOW) (in seconds) private static final double EXP_1 = Math.exp(-1 / (60.0 * 1.0)); private static final double EXP_5 = Math.exp(-1 / (60.0 * 5.0)); private static f...
/** * The persistent class for the modelos database table. */ @Entity @Table(name = "modelos") public class Modelo extends BaseEntity implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "modelo_id", unique = true, nulla...
<gh_stars>1-10 // Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. #pragma once #include "K2Node.h" #include "EdGraph/EdGraphNodeUtils.h" // for FNodeTextCache #include "K2Node_DynamicCast.generated.h" UCLASS(MinimalAPI) class UK2Node_DynamicCast : public UK2Node { GENERATED_UCLASS_BODY() /** The type th...
import {Col as AntCol}from 'antd' import {ColProps} from 'antd/es/col' const Col: React.FC<ColProps> = ({children, ...props}) => { return( <AntCol {...props}> {children} </AntCol> ); }; export default Col;
# This file is Copyright 2003, 2006, 2007, 2009, 2010 <NAME>. # # This file is part of the Python-on-a-Chip program. # Python-on-a-Chip is free software: you can redistribute it and/or modify # it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1. # # Python-on-a-Chip is distributed in the hope that ...
Gov. Nathan Deal is warning that he may call a special legislative session this summer if lawmakers can’t work out their differences on a transportation bill. This year’s session is scheduled to end next Thursday. Deal spokesman Brian Robinson says lawmakers should hold off on making summer vacation plans. “A specia...
x=int(input()) for _ in range(x): p,x,y,z=map(int,input().split()) if p%x==0 or p%y==0 or p%z==0: print("0") continue d=(p//x +1)*x e=(p//y +1)*y f=(p//z +1)*z print(min(d,e,f)-p)
<filename>examples/dest_evaluate.cpp /** This file is part of Deformable Shape Tracking (DEST). Copyright(C) 2015/2016 <NAME> All rights reserved. This software may be modified and distributed under the terms of the BSD license.See the LICENSE file for details. */ #include <dest/dest.h> #include ...
import base64 import time import cv2 def init(): """ This method will be run once on startup. You should check if the supporting files your model needs have been created, and if not then you should create/fetch them. """ # Placeholder init code. Replace the sleep with check for model files requir...
<filename>packages/node/src/services/fs/FileSystem.ts import { Path } from './Path' export interface FileSystem { fileExists(path: Path): boolean, listDir(path: Path): Path[], findFiles(pattern: string, basePath: Path): Path[], // supports glob patterns readFile(path: Path): string, requireFile(path: Path): ...
/* ���������ַ���s1��s2���Լ�һ��������v�� ��s1��s2������������У� ʹ�ò��������������Ӵ��� |s1|,|s2|,|v|<=100 */ #include<cstdio> #include<cstring> #include<algorithm> using namespace std; const int maxn = 109; int f[maxn][maxn][maxn], g[maxn][maxn][maxn], Next[maxn]; char s1[maxn], s2[maxn], t[maxn]; int n,...
<filename>tdp/type.go package tdp // Field of TL type, non-recursive. type Field struct { Name string SchemaName string Null bool } // Type info for TL type, non-recursive. type Type struct { // Name in TL schema. Name string // ID is type id. ID uint32 // Fields of type. Fields []Field // Null ...
<gh_stars>0 import { v4 as uuidV4 } from 'uuid' import { DayjsDateProvider } from '@infra/providers/implementations/DayjsDateProvider' import { IDateProvider } from '@infra/providers/models/IDateProvider' import { RefreshToken } from './refresh_token' import { Token } from './token' const uuidToken = uuidV4() let d...
Two weeks before his speech at the UN General Assembly on September 29, Palestinian President Mahmoud Abbas has stated that he will, "Drop a 'bombshell' at the end of my speech at the General Assembly, and I refuse to reveal what that bombshell is." Follow Ynetnews on Facebook and Twitter The Palestinian president's...
/** * Drop any tables which have previously been detached. The detach process is asynchronous, * so this is a sort of garbage collection, sweeping up cruft left in the database. */ protected void dropDetachedPartitionTables() { TenantInfo tenantInfo = getTenantInfo(); FhirSchemaGenerator ...
/// Look at the slice with the last n elements pub fn peek_slice(&self, n: usize) -> Option<&[Token]> { if n <= self.len() { Some(self.0[self.len() - n..].as_ref()) } else { None } }
<gh_stars>1-10 package com.team2169.util; import com.team2169.robot.Constants; import com.team2169.robot.RobotStates.Macro; public class Converter { public static int inchesToTicks(double inches) { double val = inches * Constants.ticksPerRotation; return (int) Math.round(val); } public...
/* Make REGION reg ready for input of area r. For most image types, we can * just im_attach, for PARTIAL though we may need to generate. */ int im_prepare( REGION *reg, Rect *r ) { IMAGE *im = reg->im; Rect save = *r; im__region_check_ownership( reg ); if( im__test_kill( im ) ) return( -1 ); { Rect image; ...
Eco Canvas is a 100% polyester canvas made with 45% recycled content and printed using ecologically-safe transfer sublimation inks that provide vibrant color and strong wash durability. Characterized by sturdy construction and vivid, crisp color, Eco Canvas is the perfect choice for upholstery projects. It’s also a gre...
// external dependencies import { Component, Vue } from 'vue-property-decorator'; // child components // @ts-ignore import NavigationTabs from '@/components/NavigationTabs/NavigationTabs.vue'; @Component({ components: { NavigationTabs } }) export class AssetFormPageWrapTs extends Vue { public isViewingHelpModal: ...
<filename>aTalk/src/main/java/org/xmpp/jnodes/RelayChannel.java package org.xmpp.jnodes; import org.xmpp.jnodes.nio.DatagramListener; import org.xmpp.jnodes.nio.SelDatagramChannel; import java.io.IOException; import java.net.InetSocketAddress; import java.net.SocketAddress; import java.nio.ByteBuffer; public class R...
[OSL] 2010 Bacchus OSL- RO8 Week Two Text by Waxangel Graphics by SilverskY Banner by SilverskY by KwarK, Milkis and Waxangel This week's content brought to you by Snorlax. Results and Battle Reports Preview: Semi-Final One I'm sorry, but there's something that's been annoying me for a long time that I simply mus...
Deriving Large-Scale Coastal Bathymetry from Sentinel-2 Images Using an HIGH-Performance Cluster: A Case Study Covering North Africa’s Coastal Zone Coasts are areas of vitality because they host numerous activities worldwide. Despite their major importance, the knowledge of the main characteristics of the majority of ...
"""The implementation here is ported from Boost, which is: (C) Copyright <NAME> 2006. Use, modification and distribution are subject to 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) """ from numba import njit, vectorize import numpy as...
/* Critical logging: system is failed, response actions must be taken immediately, the application is not able to execute correctly but still able to gracefully exit. */ func Critical(format string, v ...interface{}) { if global.critical != nil { global.critical.Output(2, fmt.Sprintf(format, v...)) } }
<filename>src/app/app.component.ts<gh_stars>0 import { Component, ViewChild} from '@angular/core'; import { Nav,Platform} from 'ionic-angular'; import { StatusBar } from '@ionic-native/status-bar'; import { SplashScreen } from '@ionic-native/splash-screen'; //Importamos las páginas que aparecen en los deslizables que...
def finalize(self, sequencer): pass
def _match_headers(self, rows, fields, options): if not options.get('headers'): return None, None headers = next(rows) return headers, { index: [field['name'] for field in self._match_header(header, fields, options)] or None for index, header in enumerate(head...
#pragma once #include <GL/glew.h> class Framebuffer { unsigned int width, height; GLuint fbo, texColor = 0, rboDepthStencil = 0; public: Framebuffer(unsigned int width, unsigned int height, bool createDepthStencilBuffer); ~Framebuffer(); Framebuffer(const Framebuffer&) = delete; Framebuffer(Framebuffer &&) = d...
<reponame>KaroFr/geoengine-ui import {Pipe, PipeTransform} from '@angular/core'; import {ColorBreakpoint} from '../../colors/color-breakpoint.model'; @Pipe({name: 'breakpointToCssStringPipe'}) export class BreakpointToCssStringPipe implements PipeTransform { transform(br: ColorBreakpoint): string { return ...
/** * Actual tree inorder-visitor. Stores tree information during descend using many stacks, writing relevant facts to {@link dk.brics.tajs.js2flowgraph.ASTInfo} when possible */ private class InfoVisitor extends InOrderVisitor { private final Stack<FunctionOrLoopTree> functionOrLoopNesting = new Sta...
Structural Industry Modernization as a Factor of Innovative Development of a Region’s Economy* The article highlights the factors that may affect structural modernization of the industrial production sphere. Its economic substance and managerial identity are revealed. A conceptual model of managing functioning and dev...
PlayStation Vita has swiftly established itself as the premier platform for the most technologically advanced mobile games, boasting a simply superb hardware spec, a beautiful screen and an excellent array of input controls. The only thing that disappoints is Sony's historical annoyance in insisting upon proprietary me...
def gather(self, seconds): self.progress("gpsfake: gather(%d)\n" % seconds) time.sleep(seconds)
/** * Removes the clickable image from the board. * * @param image the image to remove. If the image is not on the board, this method does nothing. */ public void removeClickableImage(ClickableImage image) { if (!this.clickableImages.containsKey(image.getId())) { return; } this.clickableIm...
package org.chain3j.generated; import java.math.BigInteger; import java.util.Arrays; import java.util.Collections; import org.chain3j.abi.TypeReference; import org.chain3j.abi.datatypes.Function; import org.chain3j.abi.datatypes.Type; import org.chain3j.abi.datatypes.generated.Uint256; import org.chain3j.crypto.Creden...
<filename>src/app/weeb/index.ts<gh_stars>0 export {WeebChoiceAddComponent} from './weeb-choice-add/weeb-choice-add.component'; export {WeebVoteComponent} from './weeb-vote/weeb-vote.component';
from django.core.exceptions import PermissionDenied from django.test import TestCase from backend.exceptions import InvalidNotificationException from unittest import mock # デコレーターをmock化 with mock.patch('backend.models.OperationLogModel.operation_log', lambda executor_index=None, target_method=None, target_arg_inde...
/** * Created by rmateus on 05/06/15. */ public class LinearRecyclerFragment extends AptoideRecyclerFragment { @Override public void setLayoutManager(RecyclerView recyclerView) { recyclerView.setLayoutManager(new LinearLayoutManager(recyclerView.getContext())); } }
/** * Created by MiguelRodriguez on 10/08/2016. */ public class DatosDeRed { private int estadoSIM; private String operador; private String tecnologia; //private Srting celda; public DatosDeRed(int estadoSIM, String operador, String tecnologia) { this.estadoSIM = estadoSIM; this....
// Dup2 shows all duplicated text lines from the standart input (stdin) or // file(s), and their respective counts func Dup2() { counts := make(map[string]int) files := os.Args[1:] if len(files) == 0 { countLines(os.Stdin, counts) } else { for _, arg := range files { f, err := os.Open(arg) if err != nil {...
def save_to_file(self, file_obj, weeks, nowcasts): writer = csv.writer(file_obj) for week, nowcast in zip(weeks, nowcasts): for location, value, stdev in nowcast: writer.writerow([week, location, float(value), float(stdev)])
An excellent donation from Google, extended contracts, and Google Code-In update This is excellent news. As mentioned in the last contract announcement article, the available funding of Haiku, Inc. was starting to dry up. It had gotten so low, that Adrien and Paweł were told not to expect a third month of contractual...
<reponame>dariodsa/JavaCourse package hr.fer.zemris.java.web; import java.io.IOException; <<<<<<< HEAD ======= import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.nio.file.StandardOpenOption; import java.util.ArrayList; >>>>>>> e491ac7bfaab4b16a4e5916f443f67797f3a7015 import ...
"""Tests for nodes from timeflux_dsp.nodes.spectral""" import numpy as np import pandas as pd import pytest import xarray as xr from timeflux.helpers.testing import DummyData from timeflux_dsp.nodes.spectral import FFT fs = 10 data = DummyData(rate=fs, jitter=0.05) all_data = data.next(50) def test_welch(): d...
package model import ( "notepad-api/utils" "time" "gopkg.in/mgo.v2" "gopkg.in/mgo.v2/bson" ) type Conflict struct { ObjectId_ bson.ObjectId `bson:"_id"` ID string `bson:"ID"` FatherPath string `bson:"fatherPath"` SonPath string `bson:"sonPath"` CheckSum string `bson...
use std::{ convert::TryFrom, fmt::{Debug, Error, Formatter}, sync::Arc, }; use futures::channel::oneshot; use libc::c_void; use nix::errno::Errno; use spdk_sys::{ spdk_bdev_desc, spdk_bdev_free_io, spdk_bdev_io, spdk_bdev_nvme_admin_passthru_ro, spdk_bdev_read, spdk_bdev_reset, ...
/** * @author Dean Hiller */ public abstract class BasChannelImpl extends RegisterableChannelImpl implements Channel { private static final Logger apiLog = LoggerFactory.getLogger(Channel.class); private static final Logger log = LoggerFactory.getLogger(BasChannelImpl.class); private ChannelSession session ...
/*******************************************************************\ Module: Author: <NAME>, <EMAIL> \*******************************************************************/ #ifndef CPROVER_UI_LANGUAGE_H #define CPROVER_UI_LANGUAGE_H #include "message.h" class ui_message_handlert:public message_handlert { public: ...
package registry import "github.com/ihaiker/tenured-go-server/commons/atomic" type roundLoadBalance struct { serverName string rangeIndex *atomic.AtomicUInt32 reg ServiceRegistry } func (this *roundLoadBalance) Select(obj ...interface{}) ([]*ServerInstance, string, error) { currentRangeIndex := this.range...
def is_bootstrapped(self): return bootstrap.is_bootstrapped(self.sql.metadata)
<filename>src/config/index.ts export { default as initializeDB } from './initializeDB'; export { default as initializeExpress } from './initializeExpress'; export { default as initializeRedis } from './redisConfig';
<reponame>foxfoxio/codelabs-preview-go<gh_stars>0 package requests import ( "github.com/foxfoxio/codelabs-preview-go/svcs/previewer/entities" "time" ) type AuthProcessSessionRequest struct { UserSession *entities.UserSession } type AuthProcessSessionResponse struct { IsValid bool State string Redirec...
Gigi Sohn, senior counselor to FCC chairman Tom Wheeler, told a New Haven, Conn., audience Monday that "the simple truth is that meaningful competition for high-speed wired broadband is lacking." She came not to bury broadband, but to praise the state's 1 Gig community broadband project as a way to provide that "lacki...
/// Creates a square given its position on the board. /// /// # Errors /// /// If given square index is outside 0..[`BOARD_SIZE`] range. fn try_from(square_index: u8) -> Result<Self, Self::Error> { // Exclusive range patterns are not allowed: https://github.com/rust-lang/rust/issues/37854 const MAX_INDE...
Miramax today joined the long list of companies protesting a new anti-gay law that the governor of North Carolina signed last week. But the new owner of Miramax, Qatari businessman Nasser Al-Khelaifi, is also a minister without portfolio in the government of the oil- and gas-rich nation of Qatar, where it remains illeg...
/** * Add a specific path to be deleted in the new snapshot. */ void delete(F file) { Preconditions.checkNotNull(file, "Cannot delete file: null"); invalidateFilteredCache(); deletePaths.add(file.path()); deleteFilePartitions.add(file.specId(), file.partition()); }
/** * Created by dgisser on 6/19/16. */ @Parcel public class Article{ String webUrl; public String getWebUrl() { return webUrl; } public String getHeadline() { return headline; } public String getThumbNail() { return thumbNail; } String headline; String ...
<reponame>LJea/SAO-Utils-Plugin<filename>Net Data Source/include/ref.h #pragma once #define ITS_VERSION_MAJOR 1 #define ITS_VERSION_MINOR 1 #define ITS_VERSION_SUBMINOR 0
Television, film, and video games composer Daniel Licht, best known for his work on Showtime’s “Dexter,” died late Wednesday following a battle with cancer. He was 60. Originally from Detroit, Licht’s first major work was scoring the 1991 horror film “Children of the Night.” His compositions caught the attention of Cl...
/** * Picks a random Beesourceful Honeycomb with lower index of HONEYCOMB_VARIANTS list being highly common */ public static Block BSGetRandomHoneycomb(Random random, int lowerBoundBias) { int index = HONEYCOMB_VARIANTS.size()-1; for(int i = 0; i < lowerBoundBias && index != 0; i++) { index = random.nextInt...
package api import ( "interfaces" "os" "testing" "sync" uuid "github.com/satori/go.uuid" "github.com/stretchr/testify/assert" ) func TestConfiguratorUpdate_simple(t *testing.T) { err := Setup(e, &Settings{}) defer func() { os.RemoveAll(settings.DatabasePath) }() assert.NoError(t, err) assert.NoError(t,...
#include <gtest/gtest.h> #include <sm/eigen/gtest.hpp> #include <aslam/MultiFrame.hpp> #include <aslam/NCameraSystem.hpp> #include <sm/boost/serialization.hpp> #include <aslam/cameras.hpp> #include <sm/kinematics/transformations.hpp> #include <sm/kinematics/UncertainTransformation.hpp> #include <sm/string_routines.hpp...
/* translates AS window flags to GNOME state properties */ static void gnome_set_win_hints (list_item * aswin) { long flags = 0; if (aswin->flags & STICKY) flags |= WIN_STATE_STICKY; if (aswin->flags & ICONIFIED) flags |= WIN_STATE_MINIMIZED; if (aswin->flags & SHADED) flags |= WIN_STATE_SHADED; i...
package oidc import ( "encoding/json" "fmt" "net/http" "time" "github.com/coreos/pkg/capnslog" "github.com/coreos/pkg/timeutil" "github.com/jonboulle/clockwork" phttp "github.com/coreos/go-oidc/http" "github.com/coreos/go-oidc/oauth2" ) var ( log = capnslog.NewPackageLogger("github.com/coreos/go-oidc", "h...
// Send the server CA certificate to the client so it can // verify the identity of the server. To avoid the small window // of MITM vulnerability you might copy the certificate by yourself. func (this *PushServer) GetServerCertificate(req HelloRequest, cert *[]byte) (err error) { if LocalWigo.GetConfig().Global.Debug...
/** * Provide components from yaml configuration file. */ @ThreadScoped public class ComponentsProvider implements Provider<Components> { private static final String CONFIG_PATH = "component-descriptions"; private Components descriptions; /** * @return components that were read from yaml configuration fil...
<reponame>jbgaya/salina # # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # import torch import torch.nn as nn import torch.nn.functional as F class Linear(nn.Module): def __init__(self...