content
stringlengths
10
4.9M
/* Description: Description: Tests / Demonstrates sending messages to systems you are not connected to. Success conditions: Proper offline response. Proper offline ping response. Failure conditions: Any success conditions failed RakPeerInterface Functions used, tested indirectly by its use: GetGuidFromSy...
<filename>src/app/main/stations/station-view.component.ts import { Component, HostBinding, OnInit } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { Title } from '@angular/platform-browser'; import { AuthenticationService } from '../../services/authentication.service'; import { E...
/** * Plugin Main class */ public class CraftPlugin extends JavaPlugin { public static final String NMS_VERSION = Bukkit.getServer().getClass().getPackage().getName().substring(23); public static CraftPlugin getInstance() {return instance;} private static CraftPlugin instance; @Override public v...
/** * Generates names male and female as a string * * @author GoodforGod * @since 26.05.2017 */ public class NameGenerator implements IGenerator<String> { private final Pattern pattern = Pattern.compile("user|account|name|assignee|employe|worker", CASE_INSENSITIVE); private static final IBundle maleBundl...
Extending GENET for non-binary CSP's GENET has been shown to be efficient and effective on certain hard or large constraint satisfaction problems. Although GENET has been enhanced to handle also the atmost and illegal constraints in addition to binary constraints, it is deficient in handling non binary constraints in ...
from models.detector.SDLib.data.rating import RatingDAO from models.detector.SDLib.tool.config import Config,LineConfig from os.path import abspath from time import strftime,localtime,time from models.detector.SDLib.tool.file import FileIO from sklearn.metrics import classification_report class SDetection(object): ...
<filename>examples/main_sac.py import os import random import carla import gym import jaxrl.wrappers import numpy as np import oatomobile import oatomobile.baselines.rulebased import oatomobile.envs import tqdm from absl import app, flags from agents.navigation.controller import PIDLongitudinalController from jaxrl.ag...
import * as React from 'react'; import { createPortal } from 'react-dom'; import { usePortal } from './usePortal'; type Props = { id: string; children: React.ReactNode; }; export const Portal = ({ id, children }: Props) => createPortal(children, usePortal(id));
For 2014 the following areas will see growth and continued focus by CMO’s and CFO’s alike Social Media: Showing ROI of social media initiatives and overall halo effect of efforts on other channels Integrating social media interactions online and with call centers in a seamless CRM manner Transforming company hierar...
<reponame>xianleizheng/ph-web /** * Copyright (C) 2014-2019 <NAME> (www.helger.com) * philip[at]helger[dot]com * * 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.a...
<filename>src/main/java/seedu/address/model/Module.java package seedu.address.model; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; /** * Represents a module in Trajectory */ @XmlRootElement(name = "module") public class Module { @XmlElement(name = "moduleName", re...
/** * @param transaction - the transaction * @return the proof for the given transaction */ public static Proof createProof(Transaction transaction) { Node receiver = transaction.getReceiver(); Proof proof = new Proof(transaction); Set<Chain> chains = new HashSet<>(); appendChains(transaction, receiver, c...
<reponame>taylorsmithatnominet/BSidesCBR-2021-Badge #pragma once #include <cstdint> #include <vector> #include "Tile.h" #include "Config.h" namespace pacman { class DrawManager; class Sprite; class Vect2; class PowerUp; class ICollideable; class Player; class Level { private: DrawManager* m_drawManagerwPtr; int m...
async def miot_process_data(self, data: list): devices: Dict[str, Optional[list]] = {} for item in data: if item['did'] not in self.devices: continue devices.setdefault(item['did'], []).append(item) for did, payload in devices.items(): device =...
def plot_training(self, save_to_File=True): history = self.history if history is None: raise Exception("Model has not been trained.") try: acc = history.history['accuracy'] val_acc = history.history['val_accuracy'] except: acc = history.his...
/// <p>The filter conditions that determine which S3 buckets to include or exclude from the query results.</p> pub fn bucket_criteria( &self, ) -> std::option::Option<&crate::model::SearchResourcesBucketCriteria> { self.bucket_criteria.as_ref() }
def check_checkpoint(self, path=None): if FLAGS.restore_step == 0: path = utils.get_latest_checkpoint(FLAGS.checkpoint_path) if path is None: return None logging.warning('load latest checkpoint ' + path) else: path = '{}/checkpoint.ckpt-{}'.format(FLAGS.checkpoint_path, ...
// Remove removes the c4 id and it's assoceated data from memory, an error is // returned if the id does not exist. func (s *RAM) Remove(id c4.ID) error { _, ok := (*s)[id] if !ok { return &os.PathError{Op: "remove", Path: id.String(), Err: os.ErrNotExist} } delete((*s), id) return nil }
//------------------------------------------------------------------------------ /** Returns the occlusion status of a query defined by index. This method may wait for the query to finish, so it's wise to queue as many queries as possible before checking their status. */ bool nD3D9OcclusionQuery::GetOc...
With fears running high among Latinos, Muslims, women, and other groups in the wake of Donald Trump’s election, South Florida Congresswoman Debbie Wassermann Schultz and three of her Democratic colleagues aim to be proactive in telling those groups that they’re thinking of them, and will be wearing safety pins on the f...
<reponame>patrickteulings/possiblymaybe declare module 'spltjs';
<filename>src/__tests__/issuer-contract.test.ts // Copyright (c) 2019 Swisscom Blockchain AG // Licensed under MIT License import { DIDNetwork, ISchema } from '../common'; import { SeraphIDIssuerContract } from '../issuer-contract'; import testData from './test-data.json'; const contract = new SeraphIDIssuerContract(...
def _macro_rule(rule_prefix, rule_expression, klist, ksuffixes, name_func=_rule_name_generic): r_name = '%s_%s' % (rule_prefix, name_func(rule_expression)) if (not rule_expression.is_reversible): if len(klist) != 1 or len(ksuffixes) != 1: raise ValueError("A unidirectional ru...
Arlene Foster with Theresa May (Charles McQuillan/PA Wire/PA Images) The DUP's leader, Arlene Foster, met Oman's most senior police officer in the private room of a Belfast cocktail bar in 2015, VICE can reveal. Papers disclosed under the Freedom of Information Act show how the DUP has forged a warm relationship with ...
//Destroy the Gostrap and everything in it and everything it loves. func (t *Gostrap) Destroy() { t.Popdir() if t.root != "" { os.RemoveAll(t.root) } }
<reponame>qingqiu8/zheng<gh_stars>1-10 package com.zheng.cms.rpc.api; import com.zheng.common.base.BaseServiceMock; import com.zheng.cms.dao.mapper.CmsUserMapper; import com.zheng.cms.dao.model.CmsUser; import com.zheng.cms.dao.model.CmsUserExample; /** * 降级实现CmsUserService接口 * Created by shuzheng on 2017/3/20. */ pu...
Commercial, Confessional, and Military Encounters in the Ottoman–Iranian Borderlands in the Early Modern Period The papers (with the exception of two) in this special issue of Iranian Studies were presented in a series of conferences on Ottoman–Iranian encounters in Retz, Istanbul, and Vienna. Given the contested and ...
package main import ( "context" "fmt" kafkasc "inspr.dev/inspr/cmd/sidecars/kafka/client" "inspr.dev/inspr/pkg/environment" "inspr.dev/inspr/pkg/logs" "inspr.dev/inspr/pkg/meta/brokers" "go.uber.org/zap" "inspr.dev/inspr/pkg/sidecars/models" sidecarserv "inspr.dev/inspr/pkg/sidecars/server" ) var logger *z...
package main import ( "bufio" "fmt" "os" "strconv" "strings" ) func sliceAtoi(sa []string) ([]int, error) { si := make([]int, 0, len(sa)) for _, a := range sa { i, err := strconv.Atoi(a) if err != nil { return si, err } si = append(si, i) } return si, nil } func getDigits(ary []int) (digits int) ...
# coding=utf-8 # Copyright 2018 Google LLC & Hwalsuk Lee. # # 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 ...
/** * Checks the domain type of a unregistered email. <br> * Since an local IDP white list is needed to check an email's domain type, the method can only be * called when {@code useLocalIdpWhiteList} is {@code true}. Otherwise an * {@code IllegalStateException} will be thrown. * <p> * Input Stat...
<reponame>AvivOron/os_ass4 extern int getFreeBlocks(); extern int getTotalBlocks(); extern int getNumOfBlockHits(); extern int getNumOfBlockAccess();
<filename>modules/benchmarks/src/expanding_rows/benchmark_module.ts /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {Component, ErrorHandler, Injectable, NgM...
/** * @author Daniel Thengvall <fender5289@gmail.com> */ public class InvalidPublicKey extends AufgabeException { public InvalidPublicKey() { super("Invalid public key"); } }
export * from "./alignment"; export * from "./border"; export * from "./indent"; export * from "./keep"; export * from "./page-break"; export * from "./spacing"; export * from "./style"; export * from "./tab-stop"; export * from "./unordered-list"; export * from "./frame";
try: import unittest2 as unittest except ImportError: import unittest from datetime import datetime from assembla import parsers class ParserTest(unittest.TestCase): def test_date_fields(self): self.assertEqual( {'restricted_date': datetime(2012, 1, 3, 0, 0).date()}, par...
<filename>src/main/java/de/flapdoodle/embed/process/store/ArtifactStore.java /** * Copyright (C) 2011 * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * with contributions from * konstantin-ba@github, <NAME> (<EMAIL>), <NAME> (<EMAIL>), <NAME> (<EMAIL>) * * Licensed under the Apache License, Version 2.0 (the "Li...
RED DEER, Alta. – Alberta Mounties had to bum a ride with a snowmobiler to chase a stolen tractor through snowy fields east of Red Deer. Blackfalds RCMP got a call about a break and enter at a rural address where firearms and other items were stolen, and then got another call about a stolen John Deere 6400 tractor wit...
// Here we draw! If the file stuff is a bust.. We'll draw some default thing. void bmpObj::drawSelf(void) { colorObj aColor; if (openDocFile(FILE_READ)) { if(mMask) { for(int ty=0;ty<drawObj::height;ty++) { for(int tx=0;tx<drawObj::width;tx++) { if (mMask->checkPixel(tx,ty)) { aColor = getPixel(t...
import axios, { AxiosRequestConfig, AxiosPromise, CancelToken } from "axios"; import {HttpFailResult, Helpers} from "./helpers"; import {EndPointAddress} from "./endPointAddress"; import {ThingUserRightsRaw} from "./thingUserRights"; export interface ThingsUserRightsParams { thingId : string; filter? : string;...
Subtractive synthesis is easily the most important type of synthesis you will come across. Why? Because everything that falls under the subtractive umbrella term has gone on to directly influence other types of synthesis such as additive, wavetable, frequency modulation and nearly kaanything else you can think of. The...
/////////////////////////////////////////////////////////////////////////////// // // Method to generate the dynamic labelers // /////////////////////////////////////////////////////////////////////////////// void RewritingCompiler::generate_dynamic_labelers( FunctorMap& F) { foreach_entry (e, F.type_map) { Ty...
<reponame>noice-com/benthos package types import "testing" func TestHTTPError(t *testing.T) { err := ErrUnexpectedHTTPRes{ Code: 0, S: "test str", Body: []byte("test body str"), } exp, act := `HTTP request returned unexpected response code (0): test str, Error: test body str`, err.Error() if exp != act ...
package schnorrkel import "crypto/sha512" // SecretKey consists of a secret scalar and a signing nonce type SecretKey struct { seed [32]byte key [32]byte nonce [32]byte } func (sk *SecretKey) Key() []byte { return sk.key[:] } func (sk *SecretKey) Seed() []byte { return sk.seed[:] } func (sk *SecretKey) Non...
// // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 <NAME>. // #import <UIKitCore/UITextView.h> #import "FBAExpandingTextViewDelegate-Protocol.h" #import "UITextViewDelegate-Protocol.h" @class NSAttributedString, N...
def _fileprompt(wxparent=None, _larch=None, mode='open', multi=True, message = None, fname=None, choices=None, **kws): symtable = ensuremod(_larch) if fname is None: try: fname = symtable.get_symbol("%s.default_filename" % MODNAME) exce...
<reponame>mockii/mockii_node<filename>src/app/interviewer/interviewer.component.ts /** * Created by Billa on 12/24/16. */ import { Component } from '@angular/core'; @Component({ moduleId: module.id, selector: 'interviewer', templateUrl: 'interviewer.component.html' }) export class InterviewerComponent{ }
#include<stdio.h> int main() { int n,z,y,x,temp,i,l=0,a[1000]; scanf("%d",&n); while(n>0) { x=0; y=1; temp=0; z=n; while(z%10==0) { z/=10; y*=10; } for(;z>0;z/=10) { if(z%10) temp...
<reponame>Jinnie/fairyKame<gh_stars>0 #include "mind.h" static int _height = 0; static int _tilt = 0; static int _delay = 20; static float _speed = 1; int Mind::getHeightOverride() { return _height; } void Mind::setHeightOverride(int height) { _height = height; } int Mind::getTiltCorrection() { return _...
// SplitResultsByHomograph takes the result returned by the API and splits it // into sets of definitions, ex. ace[1] and ace[2]. // // TODO(tssde71): this needs to have a lot of work done on it func (r *Results) SplitResultsByHomograph() { if len(r.Results) == 0 { return } master := r.Results[0] homographs := ma...
Lightning electric‐field waveforms associated with transmission‐line faults The radiated electric field produced by lightning plays a vital role in lightning location systems (LLSs). The presence of the elevated objects, i.e. transmission lines in the presented study, result in an increase of amplitude and multiple su...
package ofdev.launchwrapper; import net.minecraft.launchwrapper.IClassTransformer; import net.minecraft.launchwrapper.ITweaker; import net.minecraft.launchwrapper.Launch; import net.minecraft.launchwrapper.LaunchClassLoader; import ofdev.common.Utils; import java.io.File; import java.io.IOException; import java.io.Un...
def generate_report(): if not request.json: return make_response(jsonify({'error': 'request body must be valid JSON'}), 400) directory_location = request.json['logo'] main.do_report(directory_location) return jsonify({'success': True})
#![feature(async_await, await_macro, futures_api, pin, arbitrary_self_types, specialization)] use std::future::FutureObj; use std::task::Spawn; use std::collections::HashMap; use std::cell::RefCell; use futures::StreamExt; use futures::stream; use futures::future; use rusqlite::Connection; use tbd_sqlite3::Sqlite3G...
# Copyright 2018 JanusGraph Python Authors # # 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 t...
/** * Transform the test type parameter as the requirement for AWS devicefarm API for appium tests of web apps. * * @param testToRun The String representation of the test type. * @return The String should bu input as the parameter of the devicefarm API. */ public String transformTestToRunForWeb...
async def fuzz_all(self, sub_domain=False, log_file_path=None): self.logger = self.get_log_file_path(log_file_path) try: with open(self.wordlist, "r") as file: fuzzlist = file.readlines() fuzzlist = [x.replace("\n", "") for x in fuzzlist] except FileNo...
/// Deserializer implementation for RON `Value`. /// This does not support enums (because `Value` doesn't store them). impl<'de> Deserializer<'de> for Value { type Error = RonError; forward_to_deserialize_any! { bool f32 f64 char str string bytes byte_buf option unit unit_struct newtype_struct ...
/** * Start game <br>. * <b>pre: <b/> * <b>pos: the main elements of the game are set up</b> * * @param n the n rows * @param m the m columns * @param snakes the amount of snakes * @param ladders the amount of ladders */ public void startGame(int n , int m, int ...
Media playback is unsupported on your device Media caption President Zuma: ''We are all saddened and dismayed by the events'' South African President Jacob Zuma has announced an inquiry into violence at a mine in the north-east of the country, calling the deaths there "tragic". Thirty-four people were killed when pol...
import * as _ from "lodash"; import { ApiSvc } from "../lib/api"; import * as ApiT from "../lib/apiT"; import { LoginState, FeatureFlagAction } from "../lib/login"; import { NavSvc } from "../lib/routing"; import { QueueMap } from "../lib/queue"; import * as PrefsState from "../states/team-preferences"; import { ready ...
use crate::events::spec_chunk::{BatchChunkEvent, RootChunkEvent}; use crate::events::SpecChunkEvent; use crate::SpecEvent; use std::error::Error; use std::fmt; use cqrs_core::{Aggregate, AggregateEvent}; use std::collections::HashMap; #[derive(Debug)] pub struct SpecAssemblerProjection { root_chunk: Option<RootChun...
<gh_stars>100-1000 package com.example.sample_android.reducer; import com.example.sample_android.action.Check; import com.example.sample_android.state.TodoItem; import me.tatarka.redux.Reducer; public class CheckReducer implements Reducer<Check, TodoItem> { @Override public TodoItem reduce(Check action, Tod...
// ParentLabels returns a map of labels referring to the given resource func ParentLabels(i KindlyIdentifier) map[string]string { gvk := i.GroupVersionKind() labels := map[string]string{ LabelParentGroup: gvk.Group, LabelParentVersion: gvk.Version, LabelParentKind: gvk.Kind, LabelParentNamespace: t...
package content import ( file2 "github.com/enorith/supports/file" "io" "mime/multipart" "os" "path/filepath" ) type uploadFile struct { header *multipart.FileHeader file multipart.File } func (uf *uploadFile) Save(dist string) error { dir := filepath.Dir(dist) if dir == dist { dist = filepath.Join(dist...
/** * A static factory to create bean fields. * Fields should only be created via the methods of this class. * They take care of some initialization work. * * @author Simon Danner, 23.08.2016 */ final class BeanFieldFactory { static final IAdditionalMemberInfo<BiPredicate> OPTIONAL_FIELD_INFO = () -> BiPredicat...
/** * Contains details about the total refunded amount */ public CreditMemoQuery total(CreditMemoTotalQueryDefinition queryDef) { startField("total"); _queryBuilder.append('{'); queryDef.define(new CreditMemoTotalQuery(_queryBuilder)); _queryBuilder.append('}'); return ...
def sample(self, N, evidence=None): if evidence is None: data = None else: data = import_rows(self._schema, [evidence])[0] ragged_samples = self._server.sample(N, self._counts, data) return export_rows(self._schema, ragged_samples)
<filename>youtube_discussion_tree_api/__init__.py from ._api import YoutubeDiscussionTreeAPI __version__ = "1.0.3"
package inspect import ( "testing" "github.com/stretchr/testify/assert" ) func TestIsSet(t *testing.T) { aSlice := []interface{}{1, 2, 3, 5} aMap := map[string]interface{}{"a": 1, "b": 2} assert.True(t, IsSet(aSlice, 2)) assert.True(t, IsSet(aMap, "b")) assert.False(t, IsSet(aSlice, 22)) assert.False(t, IsS...
Financial systems' impact on dental care; a review of fee-for-service and capitation systems. OBJECTIVE This review covers the impact of financial systems on dental care. BACKGROUND Remuneration in fee-for-service (FFS) is done per service provided and in capitation (CAP) per patient enrolled. It may be expected tha...
//GenerateToken creates an Authentication token to be used by the web application client. func GenerateToken() (string, error) { tokenuuid, error := GenerateUUID() if error != nil { return STR_EMPTY, error } token := strings.Replace(tokenuuid, STR_symbol_dash, STR_EMPTY, -1) return token, error }
#ifndef MY_THREADNUM_H #define MY_THREADNUM_H void my_threadnum_register(void); int my_threadnum(void); #endif /* MY_THREADNUM_H */
def create_app(test_config=None): app = Flask(__name__, instance_relative_config=True) CORS(app) app.config.from_mapping( SECRET_KEY='dev', UPLOAD_FOLDER=os.getenv("UPLOAD_FOLDER"), MODEL_FOLDER=os.getenv("MODEL_FOLDER"), DATASET_FOLDER=os.getenv("DATASET_FOLDER"), AL...
import warnings import torch from ood_samplefree.datasets import Uniform from ood_samplefree.features import OneClassSum from ..features.baselines import BaselineMonitor from ..features.batchnorm import BatchNormMonitor from ..features.latent import LatentMonitor, create_latent_saver from ..features.structures import...
// Copyright 2016 Husky Team // // 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 writi...
/** * Notify the VBox clipboard about available data formats, based on the * "targets" information obtained from the X11 clipboard. * @note Callback for XtGetSelectionValue * @note This function is treated as API glue, and as such is not part of any * unit test. So keep it simple, be paranoid and log eve...
<reponame>yun-an/deis package tarsum // This interface extends TarSum by adding the Remove method. In general // there was concern about adding this method to TarSum itself so instead // it is being added just to "BuilderContext" which will then only be used // during the .dockerignore file processing - see builder/e...
#ifndef NEURALNETWORK_H #define NEURALNETWORK_H #include <list> #include <vector> #include <fstream> #include <nn/Layer.h> #include <algorithm> class NeuralNetwork { public: NeuralNetwork() : num_layers(0), previous_size(0) {} void add_layer(int num_nodes); void add_layer(int num_nodes, const char *non...
"""Distributed Task Queue""" # :copyright: (c) 2009 - 2011 by <NAME>. # :license: BSD, see LICENSE for more details. import os import sys VERSION = (2, 3, 0, "a1") __version__ = ".".join(map(str, VERSION[0:3])) + "".join(VERSION[3:]) __author__ = "<NAME>" __contact__ = "<EMAIL>" __homepage__ = "http://celeryprojec...
<reponame>iplusx/deep-snooker package com.snooker.service; import org.springframework.cache.annotation.CacheEvict; import org.springframework.cache.annotation.CachePut; import org.springframework.cache.annotation.Cacheable; import org.springframework.stereotype.Service; /** * Authored by WangJunyu on 2017/4/8 */ @S...
In "Terminator 2: Judgment Day", we're told that Skynet would become self aware on August 29, 1997, thus marking the rise of the machines. As is often the case in science-fiction, the specific dates and details were wrong, but the underlying sentiment of the predictions were far more true than we realize. While I don’...
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. #include "GameAnalyticsTargetSettingsCustomization.h" #include "Framework/Text/SlateHyperlinkRun.h" #include "Framework/MultiBox/MultiBoxBuilder.h" #include "Widgets/Input/SButton.h" #include "Widgets/Text/SRichTextBlock.h" #include "Widgets/Input/SEditableT...
/** * Jackson provider that handles some additional exceptions. This allows additional processing and * validation of entities during parsing that don't fit well with the standard validation framework * (e.g. decoding of encoded fields to avoid storing the original and repeated decoding if the field * is accessed m...
def konbata(input_filename, output_filename, m_show=False, m_get=False, delimiter=None, options=None): (input_path, input_type) = os.path.splitext(input_filename) (output_path, output_type) = os.path.splitext(output_filename) k = Konbata(input_type, output_type, delimiter, options) k.convert...
#pragma once #include <cgv/base/node.h> #include <cgv/gui/event_handler.h> #include <cgv/gui/provider.h> #include <cgv/render/drawable.h> #include "overlay.h" #include "lib_begin.h" namespace cgv { namespace app { class CGV_API application_plugin : public cgv::base::group, // derive from group to integrate into ...
/* Split the .rop file from the given binaries. */ fn split_src_bin(mut srcs : Vec<String>) -> (String, Vec<String>) { let mut src : String = String::new(); let mut cnt = 0; for s in &srcs { if s.ends_with(".rop") { src = s.clone(); cnt = cnt + 1; } } if cnt != 1 { error!("expected e...
<reponame>belevy/esqueleto-experimental-example {-# LANGUAGE DerivingStrategies , DeriveGeneric , FlexibleInstances , GeneralizedNewtypeDeriving , GADTs , MultiParamTypeClasses , OverloadedStrings , StandaloneDeriving , TemplateHask...
package rox.main.command; import rox.main.MainCommandExecutor; public class ExitCommand implements MainCommandExecutor { @Override public void command(String name, String[] args) { System.exit(0); } }
/// Specifies a mutable reference to a `SecurityBuffer` generated by a client call to `initialize_security_context`. /// The structure contains the input buffer descriptor. pub fn with_input(self, input: &'a mut [SecurityBuffer]) -> Self { Self { input: Some(input), ..self } ...
Produced by Juliet Sutherland, Sam W. and the Online Distributed Proofreading Team at http://www.pgdp.net THE EMPIRE OF THE EAST BY H. B. MONTGOMERY "THIS NATION IS THE DELIGHT OF MY SOUL" ST. FRANCIS XAVIER ...
def amendment(self): if self.type_ in ['correction', 'retraction', 'expression-of-concern']: return True else: return False
The 2017 Ford Raptor puzzle is nearly complete. Ford officially confirms the specs of the high-output Gen2 3.5L EcoBoost V6 at a whopping 450 hp and 510 lb-ft of torque. This confirms earlier specification data that we reported on. This is a big jump of 39 horsepower and 76 lb-ft of torque over the 6.2L V8 that reside...
<reponame>dpordomingo/sre-counter<filename>cmd/redis-counter/main.go<gh_stars>0 package main import ( "fmt" "os" "github.com/dpordomingo/sre-counter/counter" ) var envServerPort = os.Getenv("SERVER_PORT") var envRedisHostPort = os.Getenv("REDIS_HOST_PORT") var envInstanceName = os.Getenv("INSTANCE_NAME") func ma...
"""Test the TcEx Logger Module.""" class TestStreamHandler: """Test the TcEx Stream Handler Module.""" @staticmethod def test_stream_handler(tcex): """Test TcEx API Handler logger Args: tcex (TcEx, fixture): An instantiated instance of TcEx object. """ handler...
import React from "react"; import { ICourierMessage } from "@trycourier/react-provider"; export interface ICourierToastMessage extends ICourierMessage { onClick?: (event: React.MouseEvent) => void; }
/** * Read the version from the Patch Zip file. * <p> * This method depends on the format of the Zip file and Readme.txt. * * @param zip Non null zip file to read. * @return {@code null} if there was a problem reading the version string, otherwise non null. */ public String extractVer...
import { createAction } from 'redux-actions'; import * as Types from './actionTypes'; import { SearchQueryPayload } from '~/reducers/searchQueryReducers'; export interface ChangeStatusQuery { id: number; full_name: string; isSubscribed: boolean | 'unknown'; } export const launchApp = createAction(Types.SYSTEM_L...
<gh_stars>10-100 import numpy as np from PIL import Image, ImageDraw import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec import sklearn.metrics import copy from operator import itemgetter #from .reid import ReIDPerformance # # def CMC_pair(pair_indexes, pair_ids, score, is_dist=False, method='new'):...
/** * Shrink the chunk to offset size, used for the last chunk in a stream * (no trailing data!) */ public void shrink() { byte[] newData = new byte[ offset ]; System.arraycopy( data, 0, newData, 0, offset ); data = newData; }