content
stringlengths
10
4.9M
<reponame>fossabot/markuplint import { createRule, Result } from '@markuplint/ml-core'; import { MLDOMElement, MLDOMElementCloseTag } from '@markuplint/ml-core/lib/ml-dom/tokens'; export type Value = 'lower' | 'upper'; export default createRule<Value, null>({ name: 'case-sensitive-tag-name', defaultLevel: 'warning'...
def log_profile_plots( targets: Mapping[str, np.ndarray], predictions: Mapping[str, np.ndarray], nsamples: int = 4, ): for name in set(targets) & set(predictions): t = targets[name] p = predictions[name] _plot_profiles(t[:nsamples], p[:nsamples], name)
#include<bits/stdc++.h> using namespace std; #define FOR(i, a, b) for(int (i) = (a); (i) <= (b); (i)++) #define ROF(i, a, b) for(int (i) = (a); (i) >= (b); (i)--) #define SIZE 12 struct Move { int from; int to; }; int Cases(string S) { int c = 0; FOR(i, 0, SIZE - 3) { if (S.substr(i,3) == "-o...
from copy import deepcopy n=int(input()) A=list(map(int, input().split())) B=[0]+deepcopy(A)+[0] total=0 b=0 for a in A: total+=abs(a-b) b=a total+=abs(b) for i in range(1,n+1): z,x,c=B[i-1], B[i], B[i+1] print(total-abs(x-z)-abs(c-x)+abs(c-z))
/// Intern a value. If this value has not previously been /// interned, then `new` will allocate a spot for the value on the /// heap. Otherwise, it will return a pointer to the object /// previously allocated. /// /// Note that `ArcIntern::new` is a bit slow, since it needs to check /// a `DashMap` which is protecte...
/** * Deletes an existing subscription. All pending messages in the subscription * are immediately dropped. Calls to `Pull` after deletion will return * `NOT_FOUND`. After a subscription is deleted, a new one may be created with * the same name, but the new one has no association with the old * subscript...
import * as AWS from "aws-sdk"; import { BucketName } from "aws-sdk/clients/s3"; import * as crypto from "crypto"; import { readdir, mkdir, readFile } from "fs-extra"; import * as glob from "glob"; import * as hashFiles from "hash-files"; import * as path from "path"; import { defaultCachePath } from "./config"; import...
World Foundation for Renal Care: helping acute and chronic renal failure patients and their families worldwide: an interview with Geraldine Biddle. In this interview, Geraldine Biddle, president and co-founder of the World Foundation for Renal Care (WFRC), describes the organization's beginnings and the progress it ha...
/** * <pre> * Request is the data structure for storing requests in the storage. * </pre> * * Protobuf type {@code oracle.v1.Request} */ public static final class Request extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:oracle.v1.Requ...
# Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import (absolute_import, division, print_function, unicode_literals) import pytest import numpy as np from numpy.testing import assert_equal from numpy.testing.utils import assert_allclose try: import scipy ...
def accent_1(self) -> RgbColor: return self._colors.get(ColorScheme._COLOR_ACCENT_1, None) or self.foreground
<reponame>Rasoul-Jahanshahi/Hardware_Performance_Counters_Can_Detect_Malware_Myth_or_Fact import learn_all_boyou, learn_1k_cv, \ logging, sys, random, os, time, json, itertools import numpy as np from sklearn.model_selection import StratifiedKFold class learn_1k_cv_optimization(learn_1k_cv.learn_1k_cv): d...
// GEPTypeBridgeIterator // // #ifndef SVF_GEPTYPEBRIDGEITERATOR_H #define SVF_GEPTYPEBRIDGEITERATOR_H #include "llvm/IR/DerivedTypes.h" #include "llvm/IR/Operator.h" #include "llvm/IR/User.h" #include "llvm/ADT/PointerIntPair.h" #include "llvm/IR/GetElementPtrTypeIterator.h" namespace llvm { template<typename ItTy ...
Development of reflex-adaptive organizational structure of high robustness One of the modern problems of business is the robustness of daily operations of company. Real productive industries permanently face the dramatic changes in the characteristics of the external environment which causes the explosive growth of ri...
from distutils.version import LooseVersion from pathlib import Path from tempfile import TemporaryDirectory from common_helper_yara.common import get_yara_version from common_helper_yara.yara_compile import compile_rules from common_helper_yara.yara_scan import scan DIR_OF_CURRENT_FILE = Path(__file__).parent COMPILE...
Feature trailer for John Carter. From Academy Award–winning filmmaker Andrew Stanton comes John Carter—a sweeping action-adventure set on the mysterious and exotic planet of Barsoom (Mars). John Carter is based on a classic novel by Edgar Rice Burroughs, whose highly imaginative adventures served as inspiration for ma...
<filename>commands/misc/miscellaneous.py from discord.ext import commands import statics import time import requests QUOTE_API = 'https://zenquotes.io/api/random' class Miscellaneous(commands.Cog, name='misc'): """ A set of miscellaneous commands for various purposes. """ def __init__(self, bot: com...
/** * Compares all differences with the referenceSequence in order to reduce the stored sequence. * Also adds sequence for deletion differences. * * @param alignment The Alignment * @param referenceSequence Reference sequence * @param referenceSequenceStart Reference sequence start * ...
He’s been this way for over an hour, and as word’s gotten out the audience has swelled to over 30,000. As Overwatch’s creative director, Jeff Kaplan has spoken in the past about how dedicated the team is to supporting the game and engaging with the community, even if that means working holidays. The Twitch stream open...
s = set([1,2,3]) A=int(input()) B=int(input()) C=[A,B] D=set(C) E=s-D F=list(E) ans=F[0] print(ans)
def clear(self): self._session.clear() self._used.clear()
/* * Copyright 2008-2009 Katholieke Universiteit Leuven * * Use of this software is governed by the GNU LGPLv2.1 license * * Written by Sven Verdoolaege, K.U.Leuven, Departement * Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium */ #ifndef ISL_LIST_H #define ISL_LIST_H #include <isl/ctx.h> #...
/** * Stores the specified field handler. This field will be added to the * internally maintained form object. The component that is associated with * the field handler will also be accessible by the * {@link #getComponent(String)} and * {@link #getComponentHandler(String)} methods. * ...
package export import ( "encoding/json" "errors" "fmt" "net/url" "strings" "github.com/treeverse/lakefs/block" "github.com/treeverse/lakefs/logging" "github.com/treeverse/lakefs/parade" ) const actorName parade.ActorID = "EXPORT" type Handler struct { adapter block.Adapter } func NewHandler(adapter block....
package io.renren.modules.erp.controller; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import io.renren.common.utils.PageUtils; import io.renren.common.utils.Query; import io.renren.common.utils.R; import io.renren.modules.erp.entity.BusiRepor...
def format_status(status,wind): if status == "DB" or status == "LO" or status == "WV": return "Disturbance, Low, or Tropical Wave" elif status == "SD": return "Subtropical Depression" elif status == "TD": return "Tropical Depression" elif status == "SS": return "Subtropical Storm" elif status == "TS...
<filename>pt.iul.iscte.dcti.pa.jaxel/src/pt/iul/iscte/dcti/pa/jaxel/observer/EventDetails.java package pt.iul.iscte.dcti.pa.jaxel.observer; public class EventDetails{ public final EEventType eventType; public final Object[] extraData; public EventDetails(EEventType eventType, Object[] extraData) { this.eventType ...
/** * Given the alpha affine key and a single ciphertext char and its associated plaintext char, * compute the appropriate beta affine key. * * @param alpha * the given alpha * * @param c * the given ciphertext char * * @param p * the given plaintext char * ...
class CallbackStreamWrapper: """A class to just wrap a read stream, but perform a callback every few bytes. Should be used only for streams open in read mode. """ def __init__( self, stream: StreamSeekBytesType, callback: Optional[Callable], total_length: int = 0, ...
package com.joshy23.autopicker.listener; import com.joshy23.autopicker.AutoPicker; import com.sk89q.worldguard.LocalPlayer; import com.sk89q.worldguard.protection.ApplicableRegionSet; import com.sk89q.worldguard.protection.flags.DefaultFlag; import com.sk89q.worldguard.protection.managers.RegionManager; import org.buk...
import { container } from 'tsyringe'; import '@modules/users/providers'; import './providers'; import IPetsRepository from '@modules/pets/repositories/IPetsRepository'; import PetsRepository from '@modules/pets/infra/typeorm/repositories/PetsRepository'; import IUsersRepository from '@modules/users/repositories/IUse...
from typing import Any, List, Union import numpy as np def add_gaussian_noise( default_value: Union[float, List[float]], percentage_std: Union[float, Any] = 0.01, random_generator: np.random.Generator = None, ) -> Union[float, Any]: """ Add gaussian noise to default value. Parameters ---...
/* * Copyright (C) 2008, Robert Oostenveld * F.C. Donders Centre for Cognitive Neuroimaging, Radboud University Nijmegen, * Kapittelweg 29, 6525 EN Nijmegen, The Netherlands * * $Id$ */ #include "mex.h" #include "matrix.h" #include "buffer.h" #define NUMBER_OF_FIELDS 6 #define MAX_NUM_BLOBS 32 #define SIZE_NIF...
// extractResourceGroupByNicID extracts the resource group name by nicID. func extractResourceGroupByNicID(nicID string) (string, error) { matches := nicResourceGroupRE.FindStringSubmatch(nicID) if len(matches) != 2 { return "", fmt.Errorf("error of extracting resourceGroup from nicID %q", nicID) } return matches...
Inspiration on wheels: Derek Unwin (74) is competing in his second criterium on February 2. Picture: Emma Reeves www.communitypix.com.au d413239 Northern Beaches Cycling Club is preparing to host its second criterium ” the Yanchep National Park Challenge, on February 2 ” and president Chris Howard said drivers should ...
<filename>src/main/java/crain/model/dto/ItemDto.java package crain.model.dto; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import javax.validation.constraints.Positive; import javax.validation.constraints.PositiveOrZero; @Data @NoArgsConstructor @AllArgsConstructor public cl...
/** * Resolve the OS-specific test file to execute. */ protected File resolveTestScript(final String directoryName, final String baseName) { final File result = TestUtil.resolveScriptForOS(testDir + "/" + directoryName + "/" + baseName); if (!result.exists()) { throw new IllegalArg...
import { CharacterEntity } from '../entities/CharacterEntity'; import { FilmEntity } from '../entities/FilmEntity'; import { Gateways } from '../gateways/Gateways'; import { PlanetEntity } from '../entities/PlanetEntity'; export class PlanetModel { private _gateways: Gateways; private _planet: PlanetEntity...
/** * Created by Administrator on 2018/1/29. */ public class UrlFactory { public static final String host = UrlConfig.BASE_URL; //获取充币地址 public static String getChongbi() { return host + "/uc/asset/wallet/reset-address"; } //申请成为商家 public static String getSellerApply() { ret...
import React, { Dispatch } from "react"; import { StoreState } from "../store/types"; import { IMainLogin } from "./types/MainLogin"; import { UserActionType } from "../actions/types/user"; import { setUserIsLoggedIn } from "../actions/user"; import { withRouter } from "next/router"; import { connect } from "react-redu...
// printTree recursively prints the tree's contents in a tree-like structure. func (cmd *TreeCommand) printTree(t *api.Tree, w io.Writer) { rootDirName := func() string { if cmd.fullPaths { return cmd.path.Value() + "/" } return t.RootDir.Name + "/" }() name := colorizeByStatus(t.RootDir.Status, rootDirName...
<filename>chat/client/main.go package main import ( "github.com/carsonsx/net4g" "github.com/carsonsx/net4g-demo/chat/global" "time" "github.com/carsonsx/log4g" ) var dispatcher = net4g.NewDispatcher("chat-client") func init() { dispatcher.AddHandler(setUserInfoReply, new(global.SetUserInfoReply)) dispatcher.Ad...
<gh_stars>1-10 package cn.tsoft.framework.testing.jmeter.plugin.util; import java.lang.reflect.Method; import java.lang.reflect.Type; import java.util.List; import cn.tsoft.framework.testing.jmeter.plugin.dubbo.sample.MethodArgument; public class ClassUtils { private static final String TYPE_NAME_PREFIX = "class "...
// ListProfiles returns all valid and invalid (if any) minikube profiles // invalidPs are the profiles that have a directory or config file but not usable // invalidPs would be suggested to be deleted func ListProfiles(miniHome ...string) (validPs []*Profile, inValidPs []*Profile, err error) { pDirs, err := profileDir...
<filename>src/game/team.rs use std::str::FromStr; use std::fmt; use crate::util::{SCError, SCResult}; /// A playing party in the game. #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] pub enum Team { One, Two, } impl Team { /// The team's index. pub fn index(self) -> i32 { match self { ...
<gh_stars>0 package ai.api.sample.adapter; import android.support.v7.widget.AppCompatTextView; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import java.util.ArrayList; import java.util.List; import ai.api.sample.R; import ...
def makeShuffleArrows(self): arrows = [] runLog.extra("Building list of shuffle arrows.") for a in self.r.core.getAssemblies(): currentCoords = a.spatialLocator.getGlobalCoordinates() oldCoords = self.oldLocations.get(a.getName(), None) if oldCoords is None: ...
def find_pareto_front(metrics): metrics = np.array(metrics) pareto_front_point_indices = np.arange(metrics.shape[0]) next_point_idx = 0 while next_point_idx < len(metrics): nondominated_points = np.any(metrics > metrics[next_point_idx], axis=1) nondominated_points[next_point_idx] = True ...
United States Supreme Court case Nixon v. Herndon, 273 U.S. 536 (1927), was a United States Supreme Court decision which struck down a 1923 Texas law forbidding blacks from voting in the Texas Democratic Party primary.[1] Due to the limited amount of Republican Party activity in Texas at the time following the suppres...
// StatsIssued returns a slice of the certificates which were issued during // the specified time window, along with the total count of those certificates. // The total count may be higher than the number of certificates in the slice if // the total count is higher than the specified number of certificates per // page....
<filename>src/hssh/local_topological/event.h /* Copyright (C) 2010-2019, The Regents of The University of Michigan. All rights reserved. This software was developed as part of the The Vulcan project in the Intelligent Robotics Lab under the direction of <NAME>, <EMAIL>. Use of this code is governed by an MIT-style...
<reponame>Psyruss77/TestSuite4<filename>linker_lib/src/util.rs /* This file is part of TON OS. TON OS is free software: you can redistribute it and/or modify it under the terms of the Apache License 2.0 (http://www.apache.org/licenses/) Copyright 2019-2021 (c) TON LABS */ use num::{BigInt}; use crat...
Almost $4 billion is needed to meet the humanitarian demands of countries facing food shortages because of an El Nino-induced drought, the United Nations said. About 60 million people, including 40 million in eastern and southern Africa, face a lack of food because of El Nino, which has scorched crops, the UN’s Food a...
// Open is a wrapper around os.Open that will also check FS to access // embedded data. The intended use is to use the an embedding library to create an // Asset function that matches this signature. func Open(file string) (io.ReadCloser, error) { fixedPath := fixWindowsPath(file) f, readErr := FS.Open(fixedPath) if...
/*********************************************************************/ /** ** ** GetNextStompMsgToSend ** ** Forms the next stomp frame to send and changes state to start sending it ** ** \param sc - pointer to STOMP connection ** ** \return USP_ERR_OK if successfully formed next STOMP frame to send, USP_ERR_INTERN...
<filename>src/utils/darkmode.ts<gh_stars>10-100 import { backgroundSemiAccent, darkBackgroundSemiAccent } from '@/styles/colors' /** * 시스템이 다크 모드를 사용하는지 확인하여 boolean으로 반환합니다. */ export const useDarkMode = (): boolean => { return window.matchMedia('screen and (prefers-color-scheme: dark)').matches } /** * 현재 설정에 ...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { EmpresasViewComponent } from './empresas-view/empresas-view.component'; import { EmpresasSectionComponent } from './empresas-section/empresas-section.component'; import { SharedModule } from '../shared/shared.module'; imp...
/** * Parses an object name, softening any exceptions that result. Useful * for when you know the object name is going to be valid, or you don't * care about catching the resulting exception. * * @param name the name to parse * @return the parsed version of the name * @throws Illegal...
/* * Forward Declarations */ /* * Text draw code + helper functions */ #include "fontUtils/characterStruct.h" // Provides a simple struct for caching character glyph data #include "fontUtils/atlasClass.h" // Provides a class for building a Text Atlas + OpenGL texture mapping, etc. #include "fontUtils/pr...
package cd4017be.rs_ctr2.part; import static cd4017be.api.grid.IGridHost.posOfport; import static cd4017be.math.Linalg.*; import java.util.List; import cd4017be.rs_ctr2.Content; import cd4017be.rs_ctr2.Main; import cd4017be.api.grid.*; import cd4017be.lib.render.MicroBlockFace; import cd4017be.lib.render.model.JitB...
package com.weichu.mdesigner.api.service.impl; import java.util.Date; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Isolation; import org.springframework.transaction.annotation.Prop...
// acceptEnvPair reports whether the environment variable key=value pair // should be accepted from the client. It uses the same default as OpenSSH // AcceptEnv. func acceptEnvPair(kv string) bool { k, _, ok := strings.Cut(kv, "=") if !ok { return false } return k == "TERM" || k == "LANG" || strings.HasPrefix(k, ...
import java.util.LinkedList; import java.util.Scanner; public class AandBAndCompilationErrors { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int init = sc.nextInt(); int ab = 0; int bc = 0; int a =0; int b =0; int c = 0; // initial for (int i =0; i < in...
The removal of an Angus tourist information point just before celebrations around the Declaration of Arbroath anniversary has been criticised. VisitScotland said 39 of its 65 centres would shut over the next two years, leaving 26 “high impact regional hubs”. The VisitScotland iCentre at the town’s harbour will cease ...
def find_events(self): credentials = get_credentials() service = build('calendar', 'v3', credentials=credentials) now = datetime.datetime.utcnow().isoformat() + 'Z' events_result = service.events().list( calendarId='primary', timeMin=now, maxResults=10...
/************************************************************************* This function should never be called. It is here to prevent spurious compiler warnings about unused variables (in fact: used). *************************************************************************/ void ae_never_call_it() { ae_t...
<reponame>wenfeifei/miniblink49 //{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by crash_generation_app.rc // #define IDC_SMALL 2 #define IDC_BIG 3
/** BEGIN_DOC ## Example ``` $ find PROJ/ -name "accepted_hits.bam" |\ java -jar dist/howmanybamdict.jar DICT 208e057b92b5c45262c59b40209b5fde 22 2725537669 chr1=195471971;chr10=130694993;chr11=122082543;chr12=120129022;chr13=120421639;chr14=124902244;chr15=104043685;chr16=98207768;chr17=94987271;chr18=90702639;chr...
<reponame>mdiener21/mapillary-js import {map} from "rxjs/operators"; import {Observable} from "rxjs"; import { ICoreNode, IFillNode, IGPano, ILatLon, } from "../API"; import {IEdge} from "../Edge"; import { IEdgeStatus, IMesh, ILoadStatus, NodeCache, } from "../Graph"; import {ImageSize...
/** * Move to trash if trash exist in OS, else remove from file system * * @param fileToRemove: file to be removed * @return true if file is removed successfully * @throws IOException */ public static boolean removeFile(File fileToRemove) throws IOException { FileUtils fileUtils = ...
import { GetStaticProps } from 'next' import Head from 'next/head' import { stripe } from '../services/stripe' import { SubscribeButton } from '../components/SubscribeButton' import styles from '../styles/home.module.scss' interface HomeProps { product: { priceId: string; amount: number; } } export de...
/** * Runs this gatherer and traverses the file system (optionally in a recursive * fashion) . Once the files are gathered, all waiting threads on the locks * monitor are notified. */ @Override public synchronized void run() { String path = this.config.get( Constants.OPT_COLLECTION_LOCAT...
<filename>src/components/Game/render/elementsList.ts import { renderBlock } from './block'; import { Block } from '../types'; function renderElementsList(): void { const { blocks } = this.level; if (!blocks) { return; } const ctx: CanvasRenderingContext2D = this.elementsCanvas.getContext('2d'); let in...
def create_campaign(request): if request.method == 'POST': context = {'error_msg': 'ERROR, form not filled in properly'} form = CreationCampaignForm(request.POST) if form.is_valid(): campaign_name = form.cleaned_data['campaign_name'] target_group_name = form.cleaned_d...
def _other_sessions(user_id, token=None): if not user_id: if not token: return False sockets = Socket.get(token=token) else: sockets = Socket.get(user=user_id) return bool(sockets)
/** * * * @return list; a list of the constants mentioned in ASSERTION, in no particular order. Recurses into narts and sub-assertions, and includes the mt of the assertion (if it's a constant). * @unknown pace */ @LispMethod(comment = "@return list; a list of the constants mentioned in ASS...
Preferred place of death and end-of-life care for adult cancer patients in Iran: A cross-sectional study Background More than 50,000 deaths in terms of cancer occur annually in Iranian hospitals. Determining the preferred place of end-of-life care and death for cancer patients in Iran is a quality marker for good end-...
<reponame>guilhermepo2/visions2D<gh_stars>0 #include "VertexArray.h" #include <glad/glad.h> namespace visions2D { VertexArray::VertexArray( const float* _verts, unsigned int _vertPropertiesCount, unsigned int _numVerts, const float* _texCoords, const unsigned int* _indices, unsigned int _numIndices) : m_Numbe...
// This function sets the A record of a domain to the IP of a running instance func dynamicDNS(AccessKeyID string, SecretKeyID string, InstanceID string, Region string, Domain string, HostedZoneID string) error { publicIpResponse, ipErr := getPublicIPOfInstance(AccessKeyID, SecretKeyID, InstanceID, Region) if ipErr !...
// Receive messages from rabbit mq and send to http func Receive() { var conf = readconf.GetGeneral() var r2hConf = readconf.GetR2H() conn, err := amqp.Dial(conf.RabbitMQServer) failOnError(err, "Failed to connect to RabbitMQ") defer conn.Close() ch, err := conn.Channel() failOnError(err, "Failed to open a chann...
/** * Remove a placeholder from in memory storage. */ public static void removePlaceholder(Uri uri) { sSessionsToSizes.remove(uri); sSessionsToPlaceholderBitmap.remove(uri); sSessionsToPlaceholderVersions.remove(uri); }
/** * * @author Nicholas C. Zakas */ public class CSSURLEmbedderTest { private static String folderDataURI = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAbCAMAAAAu7K2VAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAAwUExURWxsbNbW1v/rhf/ge//3kf/Ub9/f3/b29oeHh/7LZv/0juazTktL...
def validate_measurements(circuit, N): spatial_modes = 0 for cmd in circuit: if isinstance(cmd.op, ops.Measurement): modes = [r.ind for r in cmd.reg] spatial_modes += len(modes) if not spatial_modes: raise ValueError("Must be at least one measurement.") if spatial...
Energy-socio-economic-environmental modelling for the EU energy and post-COVID-19 transitions Relevant energy questions have arisen because of the COVID-19 pandemic. The pandemic shock leads to emissions’ reductions consistent with the rates of decrease required to achieve the Paris Agreement goals. Those unforeseen d...
/* * Copyright (c) 2014-2018 Kumuluz and/or its affiliates * and other contributors as indicated by the @author tags and * the contributor list. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at ...
<filename>database/redis/config.go<gh_stars>10-100 package redis import "time" // Config - Redis database connection config type Config struct { MasterName string Addrs []string Username string Password string MetricsTTL time.Duration DialTimeout time.Duration ReadTimeout time.Duration Wr...
<reponame>masud-technope/ACER-Replication-Package-ASE2017 /******************************************************************************* * Copyright (c) 2007 BEA Systems, Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 ...
<filename>parser/lex_test.go package parser import "testing" type lexTest struct { name string input string tokens []token } func mkToken(typ tokenType, text string) token { return token{ typ: typ, val: text, } } var ( tEOF = mkToken(tokenEOF, "") tLBrace = mkToken(tokenLBrace, "{") tRBrace ...
Vincent Kompany: Manchester City fans unfairly 'punished' Manchester City captain Vincent Kompany was unhappy his side’s fans were unable to watch their 2-2 Champions League draw with CSKA Moscow after some home supporters appeared to gain access to the ground. UEFA had ordered CSKA to play their home match with City...
/* * * Copyright 2019-2020 felord.cn * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * Website: * https://felord.cn ...
<gh_stars>1-10 # coding: utf-8 from tag import * from icon import *
<reponame>misode/datapack-language-server /* istanbul ignore file */ export { URL as Uri } from 'url' import { promises as fsp } from 'fs' import { Uri } from '.' export interface FileService { /** * @param uri A URI. * @returns If the URI is accessible in the real file system. */ accessible(uri: string): Pr...
<gh_stars>0 package com.javaee.phone; public class Phone { private String brand; private double price; public Phone() {} public Phone(String brand, double price) { this.brand = brand; this.price = price; } public String getBrand() { return brand; } public voi...
package org.sagebionetworks.web.client.widget.header; import org.sagebionetworks.schema.adapter.JSONObjectAdapter; import org.sagebionetworks.schema.adapter.JSONObjectAdapterException; import org.sagebionetworks.web.client.DateTimeUtilsImpl; import org.sagebionetworks.web.client.SynapseJSNIUtils; import org.sagebionet...
<reponame>gsofter/timetracker-app<filename>portable-devices/desktop/src/common/config/base-apollo-client.ts /* eslint-disable no-underscore-dangle */ /* eslint-disable @typescript-eslint/explicit-module-boundary-types */ import { ApolloClient, ApolloClientOptions } from 'apollo-client'; import { InMemoryCache } from 'a...
/** * Given an AppEngineWebXml, ensure that Flex-specific settings are only present if actually Flex, * and that Java11-specific settings are only present if actually Java11. * * @throws AppEngineConfigException If an option is applied to the wrong runtime. */ void validateRuntime() { if (!appEngineW...
def process_cluster_attributes(self, cluster, cluster_attrs): custom_attrs = cluster_attrs.get(self.plugin.name, {}) if custom_attrs: attr_plugin_version = custom_attrs['metadata']['plugin_version'] if attr_plugin_version != self.plugin.version: return ...
<filename>Chapter03/breaking_python.py for number in range(0,200): if number == 0: continue elif number % 3 != 0: continue elif type(number) != int: continue else: pass print(number)
/** * Open closing the application store the high score data. */ @Override protected void onStop() { super.onStop(); SharedPreferences preferences = getSharedPreferences(PREF_FILE_NAME, 0); SharedPreferences.Editor preferencesEditor = preferences.edit(); preferencesEditor.p...
// Dump - Will return message prepared to be dumped out. It's like prettify message for output func (m *Message) Dump() (resp string) { var keys []string for k := range m.Headers { keys = append(keys, k) } sort.Strings(keys) for _, k := range keys { resp += fmt.Sprintf("%s: %s\r\n", k, m.Headers[k]) } resp +...