content
stringlengths
10
4.9M
Google is on the receiving end of a lawsuit over some of its autocomplete suggestions for an Irish hotel. The Ballymascanlon House Hotel, Golf and Leisure Club says several potential guests, including brides planning their weddings at the historic estate, have been shocked and troubled to see the word "receivership" p...
/** * <p> * Represents an inner type definition variable containing a parameterized type. * </p> * <p> * For example: <tt>X extends <b>List&lt;Integer&gt;</b></tt>. * </p> * * @since 1.0 * * @author Daniel Fern&aacute;ndez * */ public final class InnerParameterizedTypeTypeDefVariable implements I...
/** * Serializes the multimap structure to a json like map with same key potentially appearing multiple times. Does not use jackson-datatype-guava package, * because the layout it provides is {"key": ["value", "value2"]} while we do not want to break the compatibility to existing data. As such, we allow the * input ...
/** * Use this to check whether or not a file OR directory exists on the filesystem. * * @param file String that represent the file OR the directory, including the full path to the * file and its name. * @param isDir boolean that represent whether or not we are looking for a direc...
package main import ( "github.com/aufer/gobullet/model" ) var config = model.SockClientConfig{ Prot: "tcp", Host: "127.0.0.1", Port: "8282", } func main() { wss := model.NewWebSocketServer(config) wss.Run() }
The Grüss-Type and Some Other Related Inequalities via Fractional Integral with Respect to Multivariate Mittag-Leffler Function In the recent era of research, the field of integral inequalities has earned more recognition due to its wide applications in diverse domains. The researchers have widely studied the integral...
/** * Controller for the admin controller * */ @Component public class AdminSettingsController implements Initializable { private static final Logger LOGGER = LoggerFactory.getLogger(AdminSettingsController.class); @FXML private AnchorPane adminSettingsPane; @FXML public TableView tableUserView...
def compact(self, revision, physical=False): method = '/kv/compaction' data = { "revision": revision, "physical": physical } return self.call_rpc(method, data=data)
/** * Loads the releases of a genre and tests if the new releases list contains the loaded release. */ @Test public void testLoadNewReleasesOfGenre() throws InterruptedException { NewReleasesTabViewModel viewModel = injector.getInstance(NewReleasesTabViewModel.class); viewModel.releasesProperty...
Quantitative studies on the cotyledonary proteins in the genus Pisum. Forty-five lines of peas including primitive or wild forms, field peas, and round and wrinkled garden peas, were grown under uniform conditions and the seeds examined for variation in protein characteristics likely to influence nutritional value. Th...
<filename>tests/web_platform/css_flexbox_1/test_flexbox_inline_float.py<gh_stars>0 from tests.utils import W3CTestCase class TestFlexbox_InlineFloat(W3CTestCase): vars().update(W3CTestCase.find_tests(__file__, 'flexbox_inline-float'))
import { useFela } from 'react-fela' import { colorBlack, colorWhite } from '../styling/colors' import { Style } from '../styling/environment' import { createMemoizedComponent } from '../utils/dom-utils' import { Ribbon, RibbonProps } from './ribbon' // #region style export const madeInItalyStyle: Style = { backgrou...
/** * This is a shortcut that can be used instead of combining together * {@link #restartable(int, Func0)}, * {@link #deliverFirst()}, * {@link #split(Action2, Action2)}. * * @param restartableId an id of the restartable. * @param observableFactory a factory that should return an ...
// Dispatch messages to the observers. func (t Memory) Dispatch(ctx context.Context, messages ...*agent.Message) error { t.m.RLock() cpy := make(map[string]Conn, len(t.observers)) for id, obs := range t.observers { cpy[id] = obs } t.m.RUnlock() if len(cpy) == 0 { return nil } if envx.Boolean(false, bw.EnvLo...
def blackman(M, sym=True): return general_cosine(M, [0.42, 0.50, 0.08], sym)
<reponame>ramonrwx/kattis<filename>Problems/heimavinna.py<gh_stars>1-10 problems = input().split(';') total = 0 for problem in problems: if problem.__contains__('-'): a, b = problem.split('-') total += int(b) - int(a) total += 1 print(total)
An edge detection method based artificial bee colony for underwater dam crack image In this paper, an edge extraction model based on artificial bee colony algorithm has been proposed to overcome the problems of concrete defect detection in complex underwater environment specialized to dam cracks detection. To enhance ...
Features of socialization і individual expectation features The article considers the features of socialization and individual expectations of the individual as components of its spheres of life. It is shown that the peculiarities of the subject's self-attitude determine the attitudes to life. Transforming, creative a...
Davide Somma’s Leeds United career is on hold again after the striker began a fresh period of rehabilitation from long-standing knee problems. Somma is back in the hands of United’s physiotherapy staff having failed to recover fully from the knee operations which consigned him to more than 18 months on the sidelines. ...
/** * This method creates a document based on the passed on inputstream. * * @param isStream The inputstream that needs to be parsed. * @param namespaceAware If the document should be namespace-aware. * * @return The document for this stream. * * @throws XML...
Massive Carroll-Field-Jackiw model from a condensation of topological defects In this letter we demonstrated precisely that the mass of the massive Carroll-Field-Jackiw model can emerge from a condensation of the topological defects. To accomplish the task we have used an approach named Julia-Toulouse mechanism and we...
export interface LocalesContextValue { locales: Locale[]; defaultLocale: string; } export interface Locale { name: string; translations: Translations; } export type Translations = { [key: string]: Translations | string }; export interface NextLocaleAppProps { nextLocales: Locale[]; } export type Translate...
// TODO: remove ts-ignore after the healthcert schema is updated to include it import QRCode from "qrcode.react"; import React, { FunctionComponent } from "react"; import { TemplateProps } from "@govtechsg/decentralized-renderer-react-components"; import { Page, Background, Logo, QrCodeContainer, Blue1, Blue2 } from "....
/** * Post-processing after placement of the dragged table. * * @param componentId ID of the table (in fact, it is ID of the inserted * component e.g. the enclosing scroll pane). * @param droppedOverId ID of a component the new component has been dropped over. */ @Override public void ...
def announce_score(self, score): pass
/* * MIT License * * Copyright (C) 2021 by wangwenx190 (<NAME>) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use...
def _create_value_identifiers(self, data, column_name): return pd.Series( [ { CASE_NUMBER_KEY: case_number, FIELD_NAME_KEY: column_name, MILESTONE_FLAG_KEY: milestone_flag, ORIGINAL_VALUE_KEY: original_va...
Periodontal status and associated risk factors among childbearing age women in Cixi City of China To investigate the periodontal status and associated risk factors among women of childbearing age to increase the awareness of oral health. The study was conducted on childbearing age women in Cixi, a city in Zhejiang Pro...
def warn(w): print("--------------------") print("| PyA User warning |") print("--------------------") if isinstance(w, PyaErrTemplate): print(w.__str__(head=False)) return print(str(w))
<reponame>waitbutmetho/epicodus-javascript-MusicStore import {Component, EventEmitter} from 'angular2/core'; import {CD} from './cd.model'; @Component({ selector: 'new-cd', outputs: ['onSubmitNewCD'], template: ` <div class="cd-form"> <h3>Add a new CD:</h3> <input placeholder="Name" class="col-sm...
export {Person} from './person'; export {Address} from './address';
/** * Write a test that creates a set of credentials, * verifies that they are displayed, * and verifies that the displayed password is encrypted. */ @Test public void testVerifyItDisplayedAndPasswordIsEncryptedAfterSaveCredential() { signUpAndLogin(); HomePage homePage = new Hom...
Neoliberalizing Authoritarian Environmental Governance in (Post)Socialist Laos The (post)socialist nation of Laos has pursued neoliberal economic reforms over the past decade that have facilitated the concession of state lands to foreign resource investors for mining, hydropower, and plantation projects. Five percent ...
def predict(self, data: list, decode: bool = True) -> list: assert len(data) > 1 data_as_batches = self.processor(data, list_input=True, as_batches=True) res = self.processor._from_batches( [self.model(U.move_batch(batch, self.device)) for batch in data_as_batches] ) ...
def model_train(df, encoders, args, model=None): X, y = process_data(df, encoders) split = StratifiedShuffleSplit( n_splits=1, train_size=args.split, test_size=None, random_state=123) for train_indices, val_indices in split.split(np.zeros(y.shape[0]), y): X_train = [field[train_indices, ] fo...
// Arg parser for the examples. // // each example gets a different Args struct, which it adds as a bevy resource use clap::{Arg, App as ClapApp, value_t_or_exit}; #[derive(Debug)] pub struct SimpleArgs { pub is_server: bool, } #[derive(Debug)] pub struct MessageCoalescingArgs { pub is_server: bool, pub...
// FindVulnerabilityNotificationAndRollback finds the vulnerability notification // and rollback. func FindVulnerabilityNotificationAndRollback(store Datastore, name string, limit int, oldVulnerabilityPage pagination.Token, newVulnerabilityPage pagination.Token) (VulnerabilityNotificationWithVulnerable, bool, error) { ...
import {applyRequestFilter, applyRequestFilters, transformIncludes} from "../../../src"; import {FakeSelectQueryBuilder} from "../../data/typeorm/FakeSelectQueryBuilder"; import {applyFilters, FiltersOptions, FiltersTransformed, transformFilters} from "../../../src/api/filters"; describe('src/api/filters.ts', () => { ...
// Compare produces a Go source string that assigns the "targetElem" variable to // the result of comparing the two inputs, "leftElem" and "rightElem". Some // overload implementations might need access to the vector variable names, and // those are provided via the corresponding parameters. Note that there is no // "t...
/*FUNCTION**************************************************************** * * Function Name: enet_mac_rxbd_init * Return Value: The execution status. * Description:Initialize the ENET receive buffer descriptors. * Note: If you do receive on receive interrupt handler the receive * data buffer number can be the sa...
<filename>tiny_rigid_body.h /* * Copyright 2020 Google LLC * * 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 ...
#ifndef LOCAL_SEARCH_H #define LOCAL_SEARCH_H /* This file is part of VROOM. Copyright (c) 2015-2018, <NAME>. All rights reserved (see LICENSE). */ #include <list> #include <numeric> #include <thread> #include <unordered_map> #include <vector> #include <boost/log/trivial.hpp> #include "../../../structures/abstra...
# testCaseNum = int(input()) # for testCase in range(testCaseNum): # n = int(input()) # print(n//2 + (n+1)%2) n = int(input()) A = list(map(int ,input().split())) m = int(input()) B = list(map(int ,input().split())) print(max(A) ,max(B))
// or any resources that may affect battery life while your activity is paused and the user does not need them. @Override protected void onPause() { super.onPause(); Log.d(TAG, "onPause ..."); LocalBroadcastManager.getInstance(this).unregisterReceiver(mLocalBroadCastReceiver); mLocal...
<reponame>h-mikisato/udonarium_lily import { ImageFile } from './core/file-storage/image-file'; import { ImageStorage } from './core/file-storage/image-storage'; import { SyncObject, SyncVar } from './core/synchronize-object/decorator'; import { GameObject, ObjectContext } from './core/synchronize-object/game-object'; ...
By Russell Cheyne EDINBURGH (Reuters) - Prime Minister Theresa May said on Friday that Britain would not trigger formal divorce talks with the European Union until a "UK approach" had been agreed, bidding to appease Scots who strongly oppose Brexit. May made the comment after meeting First Minister Nicola Sturgeon, h...
/** * Created by Fabien Boismoreau on 10/05/2018. * <p> */ public class QueryUtils { private static final String LOG_TAG = QueryUtils.class.getSimpleName(); private static final int READ_TIMEOUT = 10000; private static final int CONNECTION_TIMEOUT = 15000; private static final int SUCCESS_CODE = ...
<reponame>andreho/aop package net.andreho.aop.api.injectable; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * This annotation injects into an <b>int</b> parameter current line number * provided by ...
<gh_stars>0 package gitops import ( "testing" "github.com/bitrise-io/go-steputils/stepconf" "github.com/stretchr/testify/require" ) var newGithubRepoCases = map[string]struct { url, user string token stepconf.Secret want *githubRepo wantErr bool }{ "simple https url for github": { url: "https:...
The combination of RPLC-ESI-FTMS/MS and m-CPBA epoxidation for the location and geometry assignment of double bonds in unsaturated fatty acyl chains of drying oils Oil painting is the process of painting with drying oils as binders. Such oils mainly consist of triacylglycerols characterized by high levels of unsaturat...
# # MUSIC𝄞NTWRK # # A python library for pitch class set and rhythmic sequences classification and manipulation, # the generation of networks in generalized music and sound spaces, and the sonification of arbitrary data # # Copyright (C) 2018 Marco Buongiorno Nardelli # http://www.materialssoundmusic.com, mbn@unt.edu ...
package com.tailworks.ml.neuralnet; import com.tailworks.ml.neuralnet.math.Function; import com.tailworks.ml.neuralnet.math.Vec; import static java.lang.Math.exp; import static java.lang.Math.log; public class Activation { private String name; private Function fn; private Function dFn; public Activ...
def map_image(self, width, height, polyline=None, markers=None, marker_icon=None): image_data = self._download_map(width, height, polyline=polyline, markers=markers, marker_icon=marker_icon) with BytesIO(im...
<filename>src/Imagewave/Server.hs {-# LANGUAGE OverloadedStrings #-} module Imagewave.Server (runApp, app) where import Data.Monoid ((<>)) import Imagewave.Conversion import Network.HTTP.Types import Network.Wai (Application) import Network.Wai.Middleware.Gzip import Network.Wai.Middleware.RequestLogger import System...
package org.anddev.andengine.entity.shape.modifier; import org.anddev.andengine.entity.shape.IShape; import org.anddev.andengine.util.modifier.ease.IEaseFunction; public class RotationAtModifier extends RotationModifier { private final float mRotationCenterX; private final float mRotationCenterY; ...
<reponame>MemorresR/react-native-fitnesskit<gh_stars>0 package com.memorres.fitnesskit.permission; import androidx.annotation.IntDef; import java.lang.annotation.Retention; import static java.lang.annotation.RetentionPolicy.SOURCE; @Retention(SOURCE) @IntDef({ Permission.STEP, Permission.DISTANCE, ...
/** * Add buffered features to {@link #model} * <p> * Update the UI accordingly if success. * Otherwise, showToast of the failure message * <p> * More detailed documentation of our SDK API via: https://developer.unify.id/docs/gaitauth/model-training/#loading-a-model * */ @Override ...
/** * Created by <NAME> on Jul 1, 2017 * * <p>This GeeksForGeeks problem can be found @ * http://www.geeksforgeeks.org/search-an-element-in-a-sorted-and-pivoted-array/ */ package geeksForGeeks.arrays; public class BinarySearch03 { public int findElementInRotatedArray(int[] a, int key) { int left = 0, right...
#include <signal.h> #include <memory> #include <kdl_control_tools/progress_logger.h> #include <iostream> #include <ros/ros.h> #include <nodelet/nodelet.h> #include <std_msgs/Header.h> #include <geometry_msgs/Pose.h> #include <geometry_msgs/PoseStamped.h> #include <geometry_msgs/Vector3.h> #include <std_msgs/Bool.h> ...
/** * Restore the source and destination channels to original state */ private void tearDown() { source.setBlocking(sourceBlocking); destination.setBlocking(destinationBlocking); source.setBuffering(sourceBuffering); destination.setBuffering(destinationBuffering); source.setOwnership(false, Channel.READ_O...
<reponame>sibvic/NetCoreIndicore //TODO: convert //#pragma once // //#ifndef WIN32 //typedef void *HFONT; //#endif // //namespace indicore3 //{ // //class INDICORE HostLine //{ // friend class BaseHostImpl; // private: // int Id; // public: // double DateFrom; // double LevelFrom; // double DateTo; // ...
package com.kchmielewski.sda.optional.task03; import com.kchmielewski.sda.optional.NullablePersonProvider; import com.kchmielewski.sda.optional.OptionalPersonProvider; import com.kchmielewski.sda.optional.Person; import org.junit.Test; import static org.assertj.core.api.Assertions.assertThat; import static org.assert...
// // Created by Drapegnik on 17.03.14. // #include <iostream> #include <fstream> #include <vector> using namespace std; ifstream fin("recurrent-segment-tree/input.txt"); int const INF = -1; vector<int> a; int search(int l, int r) { if (l > r) { return INF; // INF - neutral } if (l == r)...
package evo import "testing" func TestPositionString(t *testing.T) { p := Position{} // Given even an empty position if p.String() == "" { t.Error("String() should return non-empty string") } } func TestPositionCompare(t *testing.T) { var cases = []struct { Desc string A, B Position Expected int...
import numpy as np from scipy import special import scipy.optimize as optim def delta(epsilon, sens_per_sigma): """Compute delta for given epsilon and sensitivity per noise standard deviation for the Gaussian mechanism. Args: epsilon (float) sens_per_sigma (float): Sensitivity per noise standa...
A cross sectional study on clinical trends of reproductive performances and reproductive disorders of dairy cows in Rajshahi district of Bangladesh Performance evaluation of existing dairying is important to design relevant dairy development strategies and implement context specific interventions for future developmen...
<commit_msg>Set initial selected audio track <commit_before>import {SelectBox} from './selectbox'; import {ListSelectorConfig} from './listselector'; import {UIInstanceManager} from '../uimanager'; /** * A select box providing a selection between available audio tracks (e.g. different languages). */ export class Aud...
/** * Default implementation for Data provider Authorizer. */ @Component( service = DataProviderAuthorizer.class, immediate = true ) public class DefaultDataProviderAuthorizer implements DataProviderAuthorizer { private static final Logger LOGGER = LoggerFactory.getLogger(DefaultDataProviderAuthor...
// NewCustomerRepository returns new customer respository func NewCustomerRepository(db *gorm.DB) *CustomerRepository { r := &CustomerRepository{ DB: db, } return r }
package medium import "math" // Given an array arr of positive integers, consider all // binary trees such that: // // Each node has either 0 or 2 children; // The values of arr correspond to the values of each leaf // in an in-order traversal of the tree. (Recall that a node // is a leaf if and only if it has 0 chi...
Liouville-type theorems and applications to geometry on complete Riemannian manifolds On a complete Riemannian manifold M with Ricci curvature satisfying $$\textrm{Ric}(\nabla r,\nabla r) \geq -Ar^2(\log r)^2(\log(\log r))^2...(\log^{k}r)^2$$ for $r\gg 1$, where A>0 is a constant, and r is the distance from an arbitra...
The self-discharging bulk carrier Korex Yeosu caught fire during cargo handling operations at Yeosu port, South Korea. The vessel was offloading coal for the Yeosu Power Plant, when some of the gasses inflamed and extended to the cargo in holds. The local authorities were informed about the accident and at the scene of...
import java.util.*; public class D { public static void main(String[] args) { new D(new Scanner(System.in)); } int H; int W; boolean[][] grid; boolean check(int i, int j) { if (i < 0) return false; if (j < 0) return false; if (i >= W) return false; if (j >= H) ...
/** * Code generator (batch) which reads all java script files needed in Charba and creates the classes which will wrap the java script content of script in order to be able to inject * the java script code inside a &lt;script&gt; element.<br> * Uses a java class template to create the classes and a properties fi...
package cmd_test import ( "context" "encoding/hex" "encoding/json" "os" "strings" "testing" "github.com/filecoin-project/go-address" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "github.com/filecoin-project/specs-actors/v2/actors/builtin" "github.com/filecoin-project/venus/ap...
<filename>qws/src/gui/QTextFragment.cpp ///////////////////////////////////////////////////////////////////////////// // // File : QTextFragment.cpp // Copyright : (c) <NAME> 2010 // Project : qtHaskell // Version : 1.1.4 // Modified : 2010-09-02 17:02:05 // // Warnin...
def run_gs(save_video, bg_img, color): cap = cv2.VideoCapture(0) time.sleep(3) if bg_img is None: path = [".", "backgrounds", "london2.jpg"] bg_img = custom_io.get_image(path) bg_dimensions = bg_img.shape cap.set(cv2.CAP_PROP_FRAME_HEIGHT, bg_dimensions[0]) cap.set(cv2.CAP_PROP_F...
/** * A factory for creating LdapConnection objects managed by LdapConnectionPool. * * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a> */ public class PoolableLdapConnectionFactory implements PoolableObjectFactory<LdapConnection> { /** configuration object for the connection */ ...
/** * Example how we can use a type cast with a method reference */ public void testReferenceWithTypeCast() { Object oo = (Produce<String>)String::new; String s = ((Produce<String>)oo).produce(); System.out.println("testReferenceWithTypeCast: s=[" + s + "]"); Produce<One.Two<In...
import { Meteor } from 'meteor/meteor'; import { Email } from 'meteor/email'; import { TAPi18n } from 'meteor/rocketchat:tap-i18n'; import _ from 'underscore'; import juice from 'juice'; import stripHtml from 'string-strip-html'; import { escapeHTML } from '@rocket.chat/string-helpers'; import type { ISetting } from '@...
<reponame>Razor-87/hackerrank<gh_stars>0 # -*- coding: utf-8 -*- import re import email.utils from typing import Tuple def validating_and_parsing_email(arr: Tuple[str, ...]) -> None: """ >>> validating_and_parsing_email(('DEXTER <<EMAIL>>', ... 'VIRUS <<EMAIL>>')) DEXTER <<EMAIL>> """ pattern ...
// Copyright ©2016 The Gonum Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package mathext import "gonum.org/v1/gonum/mathext/internal/cephes" // Zeta computes the Riemann zeta function of two arguments. // Zeta(x,q) = \sum_{k=0...
/* * Updates the velocity and position, based on force, mass and DT. */ public void update(double dt) { vx += dt * fx / m; vy += dt * fy / m; px += dt * vx; py += dt * vy; }
(Photo: Ryan Poplin; Edited: Lance Page / Truthout) Scientific American lauds author Chris Mooney “as one if the few journalists in the country who specialize in the now dangerous intersection of science and politics.” His latest release, “The Republican Brain: The Science of Why They Deny Science – and Reality,” is T...
import { Component, HostBinding, OnDestroy, OnInit, TemplateRef, ViewChild, ViewContainerRef } from '@angular/core'; import { delay, filter, map, mapTo, pairwise, scan, startWith, takeUntil, tap } from 'rxjs/operators'; import { MenuService } from '../../services/menu.service'; import { merge, Observable, Subject } fro...
// MakeArray creates a new array func MakeArray(elements TypeSymbol) TypeSymbol { result := NewTypeSymbol(fmt.Sprintf("%s[]", elements.Name()), nil) NewArrayType(result, elements, -1) return result }
<gh_stars>10-100 #include <stdio.h> #include <string.h> #include <stdlib.h> class word { int m,n,l; char a[100][100]; char *s; public: void input() { printf("enter rows and column\n"); scanf("%d %d",&m,&n); printf("enter\n"); for (int i = 0; i <m; ++i) { scanf("%s",a[i...
Which brings me to the point made by Tony Abbott in his address to Institute of Public Affairs in Sydney on Monday. Particularly he wants 18C of the Racial Discrimination Act, the section which conservative columnist Andrew Bolt was prosecuted under last year repealed. “Expression or advocacy should never be unlawful....
/* * Just a helper method to avoid ugly code in Parser#readEdges method. It just * populates \a nodes list with either a given \a v node (if not nullptr) or all * nodes in certain cluster found by performing a lookup with given \a id in * \a clusterId association. */ static inline bool edgeNodes( node v, const s...
/// A record type is an ad-hoc structure, setting the layout of /// data-packing for whatever data follows. When building an AST, nested /// structure names (e.g. "%vector", cannot be resovled yet (they might /// be defined in other modules) so we build a `List`. The assembly /// process transforms this list into a tru...
<gh_stars>1-10 package binx import "errors" var ( ErrNotFound = errors.New("not found") ErrIdxNotFound = errors.New("index not found") ) const ( errEmptyKey = "key cannot be empty" errNilPointer = "target must be a pointer to a valid variable" )
Managing uncertainty in creative industries: Film sequels and Hollywood’s profitability, 1988–2015 The film industry is a creative industry in which novelty is an essential aspect. As a consequence, it is characterized by high levels of uncertainty for both producer and consumer. Yet the firms that dominate global fil...
def missOne(arr): for index, val in enumerate("RBYG"): if val in arr: return index color = raw_input() length = len(color) res = [0]*4 start = 0 a = color[0:length:4] b = color[1:length:4] c = color[2:length:4] d = color[3:length:4] for x in (a, b, c, d): index = missOne(x) ...
import React from "react"; import { RenderResult } from "@testing-library/react"; import { Main } from "@layouts/"; import { MemoryRouter } from "react-router-dom"; import renderWithProviders from "../helpers/renderWithProvider"; import { initialState } from "@reducers/themeReducer"; import MockComponent from "../mocks...
/** * Tests behavior of IgniteCache when {@link IgniteOutOfMemoryException} is thrown. */ public class CacheIgniteOutOfMemoryExceptionTest extends GridCommonAbstractTest { /** Minimal region size. */ private static final long DATA_REGION_SIZE = 10L * 1024 * 1024; /** Page size. */ private static fina...
<gh_stars>10-100 # coding=utf-8 """ Base class for Python lambda-oriented unit tests""" import json import unittest import raco.fakedb import raco.viz import raco.myrial.interpreter as interpreter from raco.backends.myria import compile_to_json from raco.fake_data import FakeData from raco import relation_key from ra...
<commit_msg>Add function to get list of sequence names from a FASTA file. Refactor to be simpler. <commit_before>from Bio import SeqIO def sequence_length(fasta): """ return a dict of the lengths of sequences in a fasta file """ file_handle = open(fasta) in_handle = SeqIO.parse(file_handle, "fasta...
Linda McMahon has been the most impactful force in the the growth of the professional wrestling industry, but you will never hear her admit it. While her husband, Vince McMahon, was and still is critical to wrestling, it is Linda McMahon who pushed the business to grow in ways never envisioned–or imagined–by any other...
export interface BaseImageInfo { /** 图片宽度,单位px */ width?: number; /** 图片高度,单位px */ height?: number; /** 图片格式,如 "image/png"、"image/svg+xml" */ type: string; } export interface ImageInfo extends BaseImageInfo { /** 拍照时设备方向 */ orientation?: string; } export interface ExtraFormData { /** 其他参数 */ [key:...
/* ### * IP: GHIDRA * * 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 writin...