content
stringlengths
10
4.9M
Going Emotional and Negative: An Effective Way to Attract Attention Recent years have witnessed the booming of social media. The growing users of social media attracts politicians to be involved to promote their political insights. Previous studies have proved that emotional expressions help politicians diffuse inform...
import enum import struct from collections import namedtuple, defaultdict from cffi import FFI # probably both on macos and linux PROT_NONE = 0x00 PROT_READ = 0x01 PROT_WRITE = 0x02 PROT_EXEC = 0x04 PROT_ALL = PROT_READ|PROT_WRITE|PROT_EXEC MAP_FIXED = 0x10 # macos-specific MAP_PRIVATE = 0x02 MAP_ANONYMOUS = 0x...
//20101214, henrichen@zkoss.org: make parse error more end user readable private RuntimeException expected(String s) { String msg; if (look == '=' && _formulaString.substring(0, _pointer - 1).trim().length() < 1) { msg = "The specified formula '" + _formulaString + "' cannot starts with two equals signs."; ...
<commit_msg>Fix checkstyle if-statements must use braces sal-common-util Change-Id: I518b9fa156af55c080d7e6a55067deab2c789a42 Signed-off-by: Thanh Ha <09ea4d3a79c8bee41a16519f6a431f6bc0fd8d6f@linuxfoundation.org> <commit_before>/* * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. * * This p...
def factorial(n): result = 1 if n > 0 : result = n * factorial(n-1) return result n = int(input()) print(factorial(n))
/** * Use the given {@link ChecksumStrategy} when verifying and embedding checksums. */ public EncodeQuery withChecksumStrategy(final ChecksumStrategy strategy) { this.checksumStrategy = strategy; return this; }
A Kansas woman has been charged with first-degree murder after she beat and stabbed her 10-year-old son to death believing the boy would be better off in heaven, free from future suffering. Lindsey Blansett was charged with first-degree murder on Tuesday, Dec. 16, after allegedly killing her 10-year-old son, Caleb. Co...
// Making a pull load job to some tasks public class PullLoadPendingTask extends LoadPendingTask { private static final Logger LOG = LogManager.getLogger(PullLoadPendingTask.class); private PullLoadJob pullLoadJob = null; public PullLoadPendingTask(LoadJob job) { super(job); } @Override ...
def label_value_maker(): def format_network(networks): return list( {'label': n.network_str, 'value': n.pk} for n in networks ) def format_site(sites): return list( {'label': s.full_name, 'value': s.pk} for s in sites ) def format_vlan(vlans): ...
<filename>eccDNA_RCA_nanopore.py #!/usr/bin/env python3 import argparse import pyfaidx import pyfastx import re import sys import itertools import operator import collections import Bio.Seq parser = argparse.ArgumentParser(description='Generate consensus eccDNA sequences from rolling circle reads') parser.add_argum...
/** * Restores the max-heap property to a given leonardo tree in the array by sifting elements down * if necessary. * * @param array the array * @param comp the comparator for comparing two elements * @param rootPos the root of the tree that is being repaired * @param treeOrder the order of ...
def tmc2209_manager( cls, step_pins, direction_pins, enable_pins, microstep_pins, microsteps, pi_connections=None): motors = [] for step_pin, dir_pin, enable_pin, microstep_pin, microstep, pi_connection in zip( ...
/** * Extracts the ISP information from a given {@link Configuration} and merges it to a given map of * ASNs to {@link IspInfo}s * * @param configuration {@link Configuration} owning given interfaces * @param interfaces {@link List} of interfaces on this node having eBGP sessions with the ISP * @param...
Justification and selection of design parameters of the eccentric gear mechanism of the piston lubrication and filling unit for the mining machines maintenance Piston pumps are widely used in the lubrication systems of mining machines. When carrying out technical maintenance (MOT), including lubrication and filling wo...
<filename>src/mekanism/java/novamachina/exnihilomekanism/common/utility/ExNihiloMekanismConstants.java package novamachina.exnihilomekanism.common.utility; public class ExNihiloMekanismConstants { public class ModIds { public static final String EX_NIHILO_MEKANISM = "exnihilomekanism"; private ModIds() { ...
/** * @author Viktor Shatrov. */ public class GenerationInfo { protected String typeName; protected JavaFile javaFile; protected BeanDescription unit; public GenerationInfo(BeanDescription unit) { this.unit = unit; this.typeName = unit.getTypeName(); } public String getTypeNa...
from sys import stdin, gettrace from heapq import * if not gettrace(): def input(): return next(stdin)[:-1] def main(): n = int(input()) aa = [int(a) for a in input().split()] bb = [int(a) for a in input().split()] bss = {} aheap = [] def insert_bss(a, b): if a not in bss...
/** * Returns the value of the given AttributeType on the HString resulting from the given expression * <pre> * Usage: $ATTRIBUTE_TYPE(expression) * e.g.: $PART_OF_SPEECH(@PHRASE_CHUNK) --return the part-of-speech of the phrase chunk annotations * </pre> * * @param type the attr...
I imagine there are plenty of fans in Australia suffering from post-tournament depression – the empty feeling when the party comes to an end. Fear not – help is at hand. If you can just hang on for a few months there is another tournament coming along with tradition and contemporary importance beyond the dreams of the...
package http import ( "flag" "time" ) // Config stores the http.Client configuration for the storage clients. type Config struct { IdleConnTimeout time.Duration `yaml:"idle_conn_timeout"` ResponseHeaderTimeout time.Duration `yaml:"response_header_timeout"` InsecureSkipVerify bool `yaml:"insecur...
/// Appends an item to `PreferredCacheClusterAZs`. /// /// To override the contents of this collection use [`set_preferred_cache_cluster_a_zs`](Self::set_preferred_cache_cluster_a_zs). /// /// <p>A list of EC2 Availability Zones in which the replication group's clusters are created. The order of the Availability Zones ...
#include "cpps_socket_httpserver_request_filedata.h" namespace cpps { cpps_socket_httpserver_request_filedata::cpps_socket_httpserver_request_filedata() { } cpps_socket_httpserver_request_filedata::~cpps_socket_httpserver_request_filedata() { } std::string cpps_socket_httpserver_request_filedata::nam...
/** 01 - JS Hash Function A bitwise hash function written by Justin Sobel */ unsigned int JSHash(const char* str, unsigned int length) { unsigned int hash = 1315423911; unsigned int i = 0; for (i = 0; i < length; ++str, ++i) { hash ^= ((hash << 5) + (*str) + (hash >> 2)); } return has...
<reponame>GaroneHuang/mmocr _base_ = [] checkpoint_config = dict(interval=1) # yapf:disable log_config = dict( interval=1, hooks=[ dict(type='TextLoggerHook') # dict(type='TensorboardLoggerHook') ]) # yapf:enable dist_params = dict(backend='nccl') log_level = 'INFO' load_from = None resume_...
//$Id: ODEModel.cpp 11678 2013-03-30 01:08:22Z djcinsb $ //------------------------------------------------------------------------------ // ODEModel //------------------------------------------------------------------------------ // GMAT: General Mission Analysis Tool. // // Copyright (c) ...
<reponame>zhcet19/NeoAlgo-1<gh_stars>100-1000 /** Radix sort is based on counting sort This sort is used for non-negative elements Assuming the range is fixed, as int capacity is limited in any language, this sort takes MAX_INT contains 10 decimal values If range is not fixed, this sort takes O(kn) time where k is #d...
<gh_stars>1-10 use super::linear_base; use super::Unit; use std::fmt::Debug; /// Linear mapping. /// /// Please note if you use `Unit::Decibels`, then the decibels /// will be linearly mapped, not the raw amplitude. #[derive(Debug)] pub struct LinearMap { min: f32, max: f32, lin_base: linear_base::Base, }...
def _CreateRouteShapesFolder(self, schedule, parent, route, style_id=None, visible=True): shape_id_to_trips = {} for trip in route.trips: if trip.shape_id: shape_id_to_trips.setdefault(trip.shape_id, []).append(trip) if not shape_id_to_trips: return None ...
def saturation_mask(band_array, under_sat=1, over_sat=255, use_numexpr=True): assert isinstance(band_array, numpy.ndarry), "Input is not valid" if any(dim == 0 for dim in band_array.shape): return None if use_numexpr: msg = ( 'numexpr used: numexpr.evaluate("(band_array != {under...
/** Query that projects one field. (Disabled; uses sugared syntax.) */ @Test @Ignore public void testProjectNestedFieldSugared() throws Exception { withModel(MODEL, "DONUTS").sql("select donuts.ppu from donuts") .returns("C=4\n" + "C=4\n" + "C=4\n" + "C=4\n" + "C=4\n"); }
// ConvertOptionalFields will look at the ContractSpecUuid field in the message. // If present, it will be converted to a MetadataAddress and set in the Specification appropriately. // Once used, it will be emptied so that calling this again has no effect. func (msg *MsgWriteRecordSpecificationRequest) ConvertOptionalF...
import gql from 'graphql-tag' import { IPaginationQueryOptions, pageInfoFragment, } from './pagination' /** * News fragment */ export const newsFragment = gql` fragment News on NewsSchema { id title description content image timestamp } ` /** * Get all news (Pagination) * @param op...
/** * Main roll-up point for collection (directory) processing, this will call * override-able abstract methods for particular aspects of a data profile * * @param objStat {@link ObjStat} characterizing the data object * @param dataProfilerSettings {@link DataProfilerSettings} that can override ...
Studies on the use of digital radiography for the assessment of periapical bone lesions. The aim was to study digital radiography and to evaluate the influence of image processing on digital dental radiographs for the assessment of periapical lesions. In four studies, artificial bone lesions were made periapically and...
import * as controller from 'htmlrapier/src/controller'; import * as client from 'Client/Libs/ServiceClient'; import { TimedTrigger } from 'htmlrapier/src/timedtrigger'; declare function CodeMirror(element, config); export function addServices(services: controller.ServiceCollection) { services.addShared(CodeMirro...
/** * This method is used to extract the close code. The close code * is an two byte integer in network byte order at the start * of the close frame payload. This code is required by RFC 6455 * however if not code is available code 1005 is returned. * * @param data the frame payload to extract ...
<reponame>JoshuaSenouf/tracer<filename>src/sampling/sampler.cpp #include "sampler.h" #include <iterator> Sampler::Sampler(): floatUniformDistribution(0.0f, 1.0f), prng(NewSeed()) { } unsigned Sampler::NewSeed() { std::uniform_int_distribution<unsigned> seed; std::random_device rng; return seed(r...
package model // Song - defines the struct for inserting and querying songs into MP3 database type Song struct { ID int `json:"id"` FilePath string `json:"filePath"` Artist string `json:"artist"` Title string `json:"title"` Album string `json:"album"` Genre string `json:"genre"` Length str...
<gh_stars>1-10 /* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run json-schema-to-typescript to regenerate this file. */ /** * JSON Schema definition for MDM configuration */ export interf...
/* * relocate: relocate the raw y86 binary code with symbol address * * return * 0: success * -1: error, try to print err information (e.g., addr and symbol) */ int relocate(void) { reloc_t *rtmp; symbol_t *stmp; rtmp = reltab; while (rtmp) { stmp = find_symbol(rtmp->name); ...
""" This file contains the dynamic argument parser used for many functions in the package. The usecase for this is either in the bash command line function, or in the submission scripts. """ import argparse import glob import os from inspect import signature, _empty from typing import List, Tuple from numpydoc.docscr...
<filename>packages/frontend/src/pages/insight-page/components/insight-viewer/components/insight-comments/insight-comments.tsx /** * Copyright 2021 Expedia, 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 ...
/** * Spreadsheet command handler. * Active when focus is in spreadsheet control */ public abstract class SpreadsheetCommandHandler extends AbstractHandler { public static Spreadsheet getActiveSpreadsheet(ExecutionEvent event) { Object control = HandlerUtil.getVariable(event, ISources.ACTIVE_...
My job requires the use of a Philips screwdriver on a daily basis and I was looking for one that would fit it my pocket. This thing is the size of a sharpie and fit that need perfectly. It's lightweight, well made, and durable. I was worried about the plastic construction being an issue it's sturdy enough to withstand ...
Get the biggest daily stories by email Subscribe Thank you for subscribing We have more newsletters Show me See our privacy notice Could not subscribe, try again later Invalid Email UK Government legal advisors have identified five laws passed by the National Assembly that would require the consent of a Westminster mi...
<filename>persist/src/commands/prune.rs use serde::{Deserialize, Serialize}; use structopt::StructOpt; use persist_core::error::Error; use persist_core::protocol::PruneRequest; use crate::daemon; use crate::format; #[derive(Debug, Clone, PartialEq, Serialize, Deserialize, StructOpt)] pub struct Opts { /// Also p...
Article updated on February 29, 2016. Steve Jobs and Bill Gates were born in the same year. Both dropped out of college. Both started companies with good friends: Gates founded Microsoft (NASDAQ:MSFT) with Paul Allen in April 1975, while Jobs founded Apple (NASDAQ:AAPL) with Steve Wozniak exactly one year later. An...
/** * Process Record Model * @param platz Location platz * @param record Location platz record * @return Location */ public RecordModelPackV2 processRecordWithGeometry(Long platz, Integer record) { String url = WEATHER_URL + "/?dataset=plz_verzeichnis_v2&q="+platz+"&facet=plz_zz&facet=o...
// Intent filter and broadcast receive to handle Bluetooth on event. private IntentFilter initIntentFilter() { IntentFilter filter = new IntentFilter(); filter.addAction(BluetoothAdapter.ACTION_STATE_CHANGED); return filter; }
Man with a handgun (Shutterstock) Oregon Governor Kate Brown on Monday signed into law a bill that will require background checks on nearly all gun buyers in the state. The Oregon Firearms Safety Act expands background check requirements, already in place at stores and gun shows in the state, to include person-to-per...
/** * A map implementation with two keys. Values can be retrieved with either key. */ public class DoubleKeyMap<K, S, V> implements Serializable { private final Map<K, Triple<K, S, V>> mainMap; private final Map<S, Triple<K, S, V>> secondaryMap; public DoubleKeyMap() { mainMap = new HashMap<>()...
A tiger mom from Chongqing has been making her nine-year-old son study for 18 hours each day according to a regime which includes after-school lessons, weekend classes and music practice. Chongqing Times reports that the boy, nicknamed Little P, follows a detailed schedule which generated controversy online after it w...
Silicon-containing soybean-oil-based copolymers. Synthesis and properties. New silicon-containing soybean-oil-based copolymers were prepared from soybean oil, styrene, divinylbenzene, and p-trimethylsilylstyrene by cationic polymerization using boron trifluoride etherate as initiator. Soxhlet extraction and NMR spectr...
package com.relesi.architecture.domain; import javax.persistence.Entity; import com.relesi.architecture.domain.enums.PaymentState; @Entity public class PaymentCard extends Payment { private static final long serialVersionUID = 1L; private Integer parcelNumber; public PaymentCard() { } public PaymentCard(In...
//Program that starts to move once it reaches a given angle threshold @Disabled @Autonomous(name = "yaleIMUv2") public class yaleIMU extends LinearOpMode { public DcMotor frontRight, frontLeft, backRight, backLeft; public Servo servoboi; public BNO055IMU imu; public double imuAngle; @Override ...
/// Construct a new matrix of given size from elements. /// /// # Panics /// /// We panic if the given size exceeds `MAX_SIZE`. pub fn new_from_elements(size: usize, elements: Vec<Complex>) -> Matrix { assert!(size <= MAX_SIZE); assert!(size * size == elements.len()); let mut m = Matrix::new(siz...
For more than 30 years Garneau has been designing, manufacturing and distributing high quality sports clothing and gear . . . including bicycles. In 2016, this Quebec based Canadian company entered the fatbike world with two flavors of the Gros Louis . They expanded their lineup for 2017 to include: Gros Louis 1 - RS...
Downlink DS-CDMA Transmission with Joint MMSE Equalization and ICI Cancellation The bit error rate (BER) performance of downlink DS-CDMA in a frequency-selective fading channel can be significantly improved by the use of frequency-domain equalization (FDE) based on minimum mean square error (MMSE) criterion. However, ...
def remove_short_documents(self, nwords, vocab="selected"): if vocab is "selected": wc = self.data_count.sum(axis=1) wc = np.squeeze(np.asarray(wc)) elif vocab is "full": wc = np.empty(len(self.documents), dtype=np.int) for i, doc in enumerate(self.documen...
// GetObjectListFromParams returns the list of Shelf objects using the given params query info func (objectSet *ShelfObjectSet) GetObjectListFromParams(params *param.GetParams) ([]*nimbleos.Shelf, error) { shelfObjectSetResp, err := objectSet.Client.ListFromParams(shelfPath, params) if err != nil { return nil, err ...
public class Finalize { public static void main(String[] args) { try { Finalize theshit = new Finalize(); System.out.println("Before calling finalize() method"); theshit.finalize(); System.out.println("Before calling garbage collector"); ...
import React from "react"; import { List, ListItem } from "@webiny/ui/List"; import { UIElement, UIElementConfig } from "~/ui/UIElement"; import { GenericElement } from "~/ui/elements/GenericElement"; import { PlaceholderElement } from "~/ui/elements/PlaceholderElement"; import { NavigationMenuElement } from "~/ui/elem...
UPDATE: After this story ran, Oculus PR reached out to us to issue this statement and requested that we add it as an update. The statement is: “This is a hack, and we don’t condone it. Users should expect that hacked games won’t work indefinitely, as regular software updates to games, apps, and our platform are likely...
def areBracketsBalanced(expr): stack = [] # Traversing the Expression for char in expr: if char in ["(", "{", "["]: # Push the element in the stack stack.append(char) else: # IF current character is not opening ...
# adapted from mmcv and mmdetection import os import torch import torch.distributed as dist def init_dist_pytorch(backend='nccl', **kwargs): rank = int(os.environ['RANK']) num_gpus = torch.cuda.device_count() torch.cuda.set_device(rank % num_gpus) dist.init_process_group(backend=backend, **kwargs) ...
def start(self) -> None: if self in self._worker_set: raise RuntimeError("This worker is already started!") repr(self) self._worker_set.add(self) self._finished.connect(self._set_discard) start_ = partial(QThreadPool.globalInstance().start, self) QTimer.single...
import os import numpy as np import cv2 from PIL import Image import torch from torch.utils.data import DataLoader, Dataset from PIL import ImageFile ImageFile.LOAD_TRUNCATED_IMAGES = True class detection_dataset(Dataset): def __init__(self, dataframe, target, transforms=None, train=True): super().__init...
<gh_stars>10-100 /*! * @author electricessence / https://github.com/electricessence/ * Licensing: MIT https://github.com/electricessence/TypeScript.NET-Core/blob/master/LICENSE.md */ import {areEqual} from "../../Compare"; import {IMap, IStringKeyDictionary} from "./IDictionary"; import KeyValuePair from "../../Ke...
During the taping of a Fox News town hall hosted by Sean Hannity on Wednesday, Republican presidential nominee Donald Trump said he is open to a nationwide “stop and frisk” policy because it “worked incredibly well” in New York City. As the New York Police Department defines “stop and frisk,” a police officer is “auth...
/// A collection of parameters that determine how MediaConnect will convert the content. These fields only apply to outputs on flows that have a CDI source. pub fn encoding_parameters( &self, ) -> std::option::Option<&crate::model::EncodingParametersRequest> { self.encoding_parameters.as_ref() }
package com.bullhornsdk.data.exception; public class NoAllFieldsException extends RestApiException { public NoAllFieldsException() { super("Passing fields=* to the REST APIs can no longer be performed. Pass literal fields instead."); } }
/* mol3d_init Molecule coordinate data initialization routines. clib v1.1 Copyright (C) 1998 <NAME> 4-Jun-1998 split out of mol3d */ #include "mol3d_init.h" /* public ==================== #include <mol3d.h> ==================== public */ #include <assert.h> #include <ctype.h> #include <str_utils.h...
def put(self, key : Hashable, value : Any): self.database.put(key, value)
package mailer import ( "github.com/keighl/postmark" ) // Mailer provides an interface for the Keighl Postmark implementation type Mailer interface { SendEmail(postmark.Email) (postmark.EmailResponse, error) SendTemplatedEmail(postmark.TemplatedEmail) (postmark.EmailResponse, error) }
def extend_volume(self, volume, new_size): volname = self._get_space_name(volume) info = self._get_space_size_redundancy(volname) volnewbytes = new_size * units.Gi new_size_g = math.ceil(float(volnewbytes) / float(self.SPACEGB)) wantedsize_g = self._adjust_size_g(new_size_g) ...
Now that the Republicans’ brazen tax bill that the CBO predicts will add $1.4 trillion to the deficit has passed, yet again exposing “deficit concerns” by congressional Republicans as an empty marketing ploy, will those in the media who pushed the Deficit Doom narrative during the early Obama years admit they were wron...
#include "SDL_image.h" #include "loadingState.h" #include "app.h" #define BUTTON_X 50 #define BUTTON_Y 50 #define BUTTON_WIDTH 618 #define BUTTON_HEIGHT 205 LoadingState LoadingState::instance; int LoadingState::init(App* game) { strStream << "Initializing loading state"; view.printToFile(strStream.str()); st...
import { LanguageCode } from '@vendure/common/lib/generated-types'; import { ID } from '@vendure/common/lib/shared-types'; export declare class SearchIndexItem { constructor(input?: Partial<SearchIndexItem>); productVariantId: ID; languageCode: LanguageCode; channelId: ID; productId: ID; enabled...
<reponame>mohanc11/banking-nest-typeorm-postgres-auth import { Controller, Post, Body, UsePipes, ValidationPipe, } from '@nestjs/common'; import { AuthService } from './auth.service'; import { CredentialsInputDto } from './dto/credentials-input.dto'; import { CreateAuthDto } from './dto/create-auth.dto'; impo...
/** * @author Oliver Gierke * @since 1.6 */ @MappedSuperclass public class AbstractAnnotatedAuditable { private @Id @GeneratedValue Long id; private @CreatedBy @ManyToOne AuditableUser createdBy; private @CreatedDate @Temporal(TemporalType.TIMESTAMP) Date createAt; private @ManyToOne AuditableUser lastModifie...
/** * Setting data object. * * @author Lateef Ojulari * @since 1.0 */ public class Setting { private String name; private Object value; private boolean autoInject; private boolean hidden; public Setting(String name, Object value) { this(name, value, true, false); ...
<gh_stars>0 import { dimensions, fonts, colors, breakpoints } from './variables' import { getEmSize } from './mixins' export default ` html { box-sizing: border-box; } *, *::before, *::after { box-sizing: inherit; } html { font-size: ${dimensions.fontSize.regular}px !important; line-hei...
/** * * @author Thomas Wuerthinger */ public class ClusterInputSlotNode implements Vertex { private final int SIZE = 0; private Point position; private Port inputSlot; private Port outputSlot; private ClusterNode blockNode; private InterClusterConnection interBlockConnection; private Clu...
<reponame>imKashyap/Leetcode-Solutions class Solution { public void nextPermutation(int[] nums) { int r1=-1, r2=-1; for(int i=nums.length-1;i>0;i--){ if(nums[i]>nums[i-1]){ r1=i-1; break; } } if(r1==-1){ Ar...
package id.ac.tazkia.akademik.aplikasiakademik.dto; import id.ac.tazkia.akademik.aplikasiakademik.entity.KrsDetail; import lombok.Data; @Data public class PenilaianDto { private Integer absensiMahasiswa; private Integer presensiDosen; private KrsDetail krsDetail; private String id; }
<reponame>DivineSentry/netroutine package netroutine import ( "context" "encoding/json" "fmt" ) func init() { blocks[idSliceAppend] = &SliceAppend{} } const idSliceAppend = "SliceAppend" type SliceAppend struct { ToKey string FromKey string } func (b *SliceAppend) toBytes() ([]byte, error) { return json.M...
import { connect } from 'react-redux'; import Component from './Component'; import { loadAction } from '../../../../shared/redux/actions/loadingActions'; const mapStateToProps = (state) => ({ weather: state.weatherState.weather, }); const mapDispatchToProps = (dispatch) => ({ load: () => { console.log('mapDi...
// SubjectChecker validates the "sub" claim. // func SubjectChecker(sub string) Check { return func(claims *StandardClaims) error { if !claims.IsSubject(sub) { return ErrSubValidation } return nil } }
/** * This class define the row renderer of the JTable. * * @author Federico Pierantoni */ public class RowRenderer extends JLabel implements ListCellRenderer<Integer> { /** * Construct and initialize the header. * * @param SHEETS JTable: {@link MyJTable} * @see MyJTable */ public ...
California won't extend canceled health policies Image 1 of / 1 Caption Close California won't extend canceled health policies 1 / 1 Back to Gallery Covered California, the state's health exchange, has rejected President Obama's request to let insurers extend their current health policies, a decision that affects abo...
#include "bits_of_matcha/tensor.h" #include "bits_of_matcha/Frame.h" namespace matcha { Frame::Frame() : null_{true} , dtype_{Float} , shape_{} {} Frame::Frame(Dtype dtype, Shape shape) : null_{false} , dtype_{dtype} , shape_{std::move(shape)} { } bool Frame::null() const { return null_; } const D...
/** * FFMP source binning entry object * * <pre> * * SOFTWARE HISTORY * * Date Ticket# Engineer Description * ------------ ---------- ----------- -------------------------- * 01/27/13 1478 D. Hladky Removed un needed XML annotations * * </pre> * * @author dhladky * @versi...
import React from 'react'; import { Meta } from '@storybook/react'; import { Dropdown } from 'components/Dropdown'; export default { title: 'Components/Dropdown', component: Dropdown, } as Meta; const options = [ { label: 'Test 1', value: 'test-1', }, { label: 'Test 2', value: 'test-2', },...
<reponame>pmutale/fam-kyagulanyi-cms<gh_stars>0 from settings.core import * INSTALLED_APPS = [ "djangocms_admin_style", "django.contrib.admin", "django.contrib.sites", "django.contrib.auth", "django.contrib.contenttypes", "django.contrib.sessions", "django.contrib.messages", "django.con...
def advance_game(self, **kwargs): with db.commit_or_rollback(self.get_ctx()) as ctx: user = self.get_logged_in_user(ctx=ctx) return self.advance_game_for_user(user, **kwargs)
package time_span import ( "testing" "time" ) func TestIntervalOverlap(t *testing.T) { testCases := []struct { start1 int // expressed in seconds for clarity end1 int start2 int end2 int overlapClosed bool // expected value of overlap for interval type overlapH...
Characterization of antixenosis to Dichelops melacanthus (Hemiptera: Pentatomidae) in soybean genotypes ABSTRACT Soybeans are of great importance in the world agricultural landscape, and their productive potential is significantly reduced by attacks from insect pests. Factors such as the expansion of national agricult...
/** * Tests the obligor object. */ @Test(groups = TestGroup.UNIT) public class LegalEntityTest { /** The ticker */ static final String TICKER = "ABC"; /** The short name */ static final String SHORT_NAME = "DEF"; /** The credit ratings */ static final Set<CreditRating> CREDIT_RATINGS = Sets.newHashSet(Cre...
def process_sub(subspace): mad_subspace = np.nan_to_num(np.array(rod_3D(subspace))) return sigmoid(mad_subspace)
class PartiallyObservable: """A domain must inherit this class if it is partially observable. "Partially observable" means that the observation provided to the agent is computed from (but generally not equal to) the internal state of the domain. Additionally, according to literature, a partially observable...