content
stringlengths
10
4.9M
/* Helper: allocate a new escape_filter_ctx and fill in its escape char */ void * client_new_escape_filter_ctx(int escape_char) { struct escape_filter_ctx *ret; ret = xcalloc(1, sizeof(*ret)); ret->escape_pending = 0; ret->escape_char = escape_char; return (void *)ret; }
import pytest from great_expectations.datasource import ( PandasDatasource, SparkDFDatasource, SqlAlchemyDatasource, ) @pytest.fixture(scope="module") def basic_pandas_datasource(): return PandasDatasource("basic_pandas_datasource") @pytest.fixture def postgresql_sqlalchemy_datasource(postgresql_en...
<gh_stars>1-10 package com.eu.habbo.habbohotel.items.interactions.wired.effects; import com.eu.habbo.habbohotel.gameclients.GameClient; import com.eu.habbo.habbohotel.games.Game; import com.eu.habbo.habbohotel.games.GameTeam; import com.eu.habbo.habbohotel.games.GameTeamColors; import com.eu.habbo.habbohotel.items.Ite...
def creat_xs_fc(outpath, outname, spatial_ref, is_shp=True): shp = None if not is_shp: shp = os.path.join (outpath , '{0}.shp'.format (outname)) if arcpy.Exists(shp): arcpy.Delete_management(shp) arcpy.CreateFeatureclass_management (outpath , '{0}.shp'.format (outname) , geom...
Shieldmaidens are not a myth! A recent archaeological discovery has shattered the stereotype of exclusively male Viking warriors sailing out to war while their long-suffering wives wait at home with baby Vikings. (We knew it! We always knew it.) Plus, some other findings are challenging that whole “rape and pillage” th...
<reponame>kocircuit/kocircuit // // Copyright © 2018 Aljabr, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless require...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.divudi.bean.hr; import com.divudi.bean.common.CommonController; import com.divudi.bean.common.SessionController; import co...
export type Commands = Record<string, () => unknown>; export type CoreSpec = { name: 'core'; config: { projectId: string; fixturesDir: string; fixtureFileSuffix: string; devServerOn: boolean; webRendererUrl: null | string; }; state: { commands: Commands; }; methods: { registerCo...
/** * For Prism reports of a block being placed or broken, parse player name, * block type and action. */ @SuppressWarnings("unused") void placeBreak(IChatComponent chat, Matcher m) { _player = m.group(1); String blockAndCount = m.group(2); boolean parsedNumericType = false; int id = 0; ...
import { DepartmentMultiselectComponent } from './components/roles/department-multiselect/department-multiselect.component'; import { RolesPermissionGridComponent } from './components/roles/roles-permission/roles-permission-grid/roles-permission-grid.component'; import { RolesPermissionComponent } from './components/ro...
<gh_stars>0 # ExoQuantPY (ExoQuant v0.7) # # Copyright (c) 2019 <NAME> # Copyright (c) 2004 <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 lim...
/** * Method used both for new services and for modified services * @param serviceReference * @param webElement */ @SuppressWarnings("deprecation") private T addingService(ServiceReference<S> serviceReference, T webElement) { if (webElement == null) { log.debug("No element model was created from reference...
/* * Function: soc_cm_salloc * Purpose: Allocate shareable memory for communication with the device. * * Parameters: dev - device handle * size - amount of memory in bytes. * name - name of this memory (for debugging purposes only) * * Returns: Pointer to the memo...
Establishment Republicans and the main stream media are having a difficult time understanding why Ron Paul supporters aren’t just falling into line behind Mitt Romney. Don’t we want the GOP to win? And don’t we want our own candidate to win the nomination someday? And if so, don’t we realize that we have to be loyal to...
import { expect } from 'chai'; import Echo from './Echo'; import ChildProcessProxy from '../../../src/child-proxy/ChildProcessProxy'; import { File } from 'stryker-api/core'; describe('ChildProcessProxy', () => { let sut: ChildProcessProxy<Echo>; beforeEach(() => { sut = ChildProcessProxy.create(require.reso...
/*use for camera unread count clear */ private void callupdateUnReadCameraLogs(final boolean b) { if (!ActivityHelper.isConnectingToInternet(this)) { Toast.makeText(this.getApplicationContext(), R.string.disconnect, Toast.LENGTH_SHORT).show(); return; } if (ChatApplicatio...
<reponame>yash921/Monocliche from typing import Any from monocliche.model import Player class Node: def __init__(self, data: Player, next: Any = None, prev: Any = None): self.data = data self.next = next self.prev = prev class LinkedPlayers: """ Personalized implementation of a...
module Westeros { export class Tournament{ public events:Event[]; public prizes:Prize[]; public attendees: Attendee[] constructor(){ } } export class TournamentBuilder { build(builder) { return builder.build(); } } export class LannisterTournamentBuilder{ public ...
Gender Differences in Contraceptive Self-Efficacy: A Cross-Sectional Study of South Korean College Students Purpose: Healthy sexuality is an important issue in the transition to adulthood. To maintain healthy sexuality, contraceptive self-efficacy could be the most significant predictor of safe sexuality. The purpose ...
<gh_stars>100-1000 /* FriBidi * fribidi-types.h - define data types for the rest of the library * * $Id: fribidi-types.h,v 1.12 2006/01/31 03:23:13 behdad Exp $ * $Author: behdad $ * $Date: 2006/01/31 03:23:13 $ * $Revision: 1.12 $ * $Source: /cvs/fribidi/fribidi2/lib/fribidi-types.h,v $ * * Author: * <NAME...
def gen_scrolling_frame(parent, **canvas_options): def onFrameConfigure(canvas): canvas.configure(scrollregion=canvas.bbox('all')) canvas = tk.Canvas(parent, **canvas_options) frame = tk.Frame(canvas) vsb = tk.Scrollbar(parent, orient='vertical', command=c...
def findPackagePath(modulePath): p = modulePath l = [p.basename().split(".")[0]] while p.parent() != p: for extension in ['py', 'pyc', 'pyo', 'pyd', 'dll']: sib = p.sibling("__init__."+extension) if sib.exists(): p = p.parent() l.insert(0, p.ba...
//Destroy, pause, resume and button stuff public void onDestroy() { super.onDestroy(); buttonSelector.stopListening(); endActivity(); }
#include <bits/stdc++.h> using namespace std; typedef long long ll; string s; vector<string> arr[10]; bool is_sqr(int n) {return ceil(double(sqrt(n))) == int(sqrt(n));} bool search_sqr(string s) { int num = 0; for(char c:s) { num *= 10; num += c - '0'; } for(int a...
// init() reinitializes an existing Machine for re-use on a new input. void init(int ncap) { this.ncap = ncap; if (ncap > matchcap.length) { initNewCap(ncap); } else { resetCap(ncap); } }
package com.leetcode.algorithm.medium.compareversionnumbers; class Solution { public int compareVersion(String version1, String version2) { String[] vers1 = version1.split("\\."); String[] vers2 = version2.split("\\."); int i = 0; while (i < vers1.length || i < vers2.length) { int num1 = i < v...
<reponame>emp-toolkit/emp-pvc<filename>emp-pvc/gc_commit_gen.h<gh_stars>10-100 #pragma once #include "emp-pvc/hash_array.h" #include "emp-pvc/gc_hash_io.h" #include <emp-tool/utils/com.h> #include <emp-tool/gc/halfgate_gen.h> #include <emp-tool/io/hash_io_channel.h> #include <emp-tool/execution/protocol_execution.h> #...
/** * An abstraction of the statements making up the body of a method. A statement * has a defined Statement Type and its unique qualitfied name is a combination * of that type and a separate long integer representing the count of that * statement type within the system. * * @author Isaac Griffith * @version 1....
A recent hard drive raid has gifted us a glimpse into the world of Noa Deane, Gold Coaster, fabulous straight air junkie. Inspired by skate parts so full of bangers that re-watching is an absolute must, Pulp is the new Rusty short by Noa and filmmaker Shane Fletcher, a greyscale assault of deep (and often thick) tubes,...
/** * Initialize the Compressor object. * This method is the common initialization code for all the constructors for the Compressor * object. It takes the relay channel and pressure switch channel and spawns a task that polls the * compressor and sensor. * * You MUST start the compressor by calling the Sta...
CLOSE Sports writers Randy Peterson and Tommy Birch break down Iowa State's matchup against No. 3 Oklahoma. Buy Photo Iowa sophomore defensive end Anthony Nelson puts a hit on Iowa State quarterback Jacob Park on Saturday, Sept. 9, 2017, at Jack Trice Stadium in Ames, Iowa. (Photo: Bryon Houlgrave/The Register)Buy Pho...
// Handling errors that can occur while Sign Up request private void errorHandlerRegister(VolleyError error) { if (error instanceof AuthFailureError) { Toast.makeText(this, "User already exists", Toast.LENGTH_SHORT).show(); return; } VolleySingleton.getInstance(Register.t...
<gh_stars>1-10 import path from 'path'; import prompts, { PromptType } from 'prompts'; export async function readRepoName(): Promise<string | undefined> { const { create, repoName } = await prompts( [ { type: 'confirm', name: 'create', message: 'Use git?', initial: true, ...
Secret witness claims Ukrainian Su-25 downed Malaysian Boeing MH17 A secret witness claims that it was a Ukrainian Su-25 aircraft that downed the Malaysian Boeing, flight MH-17, near Donetsk, in the summer of 2014. The Komsomolskaya Pravda newspaper, whose journalists interviewed the unnamed witness, said that on July...
THE MAJORITY OF begging in Dublin city centre is of an organised nature, the head of an organisation representing thousands of businesses in the capital has said. Richard Guiney, the head of DublinTown, said that current begging legislation “isn’t worth the paper it’s written on” and called on the government to do mor...
/* * VNODE backend * * This is used mainly for network filesystem (read: probably only tested * with NFS) swapfiles. * */ static void swapdev_strategy(struct buf *bp, struct swdevt *sp) { struct vnode *vp2; bp->b_blkno = ctodb(bp->b_blkno - sp->sw_first); vp2 = sp->sw_id; vhold(vp2); if (bp->b_iocmd == BIO_W...
//***************************************************************************** // // Handles paint requests for the introduction canvas widget. // //***************************************************************************** void OnIntroPaint(tWidget *pWidget, tContext *pContext) { GrContextFontSet(pContext...
/** * Used to write the state of the GrantId instance to disk, when we are * persisting the state of the NodeManager * @param jsonGenerator The JsonGenerator instance being used to write JSON * to disk * @throws IOException */ public void write(JsonGenerator jsonGenera...
import * as React from 'react' import userEvent from '@testing-library/user-event' import { Route } from 'react-router-dom' import { renderWithRouter, screen } from 'support/test-utils' import { buildBridges } from 'support/factories/gql/fetchBridges' import { BridgesView, Props as BridgesViewProps } from './BridgesV...
<gh_stars>1-10 import { Remote } from "electron"; export default function useRemote(): Remote { if (/electron\/(\d+\.\d+\.\d+)/i.test(navigator.userAgent)) { let electron = window.require("electron"); if (!electron.remote) { throw new Error("Be sure that enableRemoteMenu is to true"); } return ...
This post is a transcript of Around The ‘Verse – Episode 2.04, material that is the intellectual property of Cloud Imperium Games (CIG) and it’s subsidiaries. INN is a Star Citizen fansite and is not officially affiliated with CIG, but we reprint their materials with permission as a service to the community. INN edits ...
# -*- coding: utf-8 -*- import logging from discord.ext import commands from bot import Cog log = logging.getLogger(__name__) IGNORED = ( commands.CommandNotFound, commands.CheckFailure, ) class Errors(Cog): @Cog.listener() async def on_command_error(self, ctx, error): if isinstance(err...
An EGF-like Protein Forms a Complex with PfRh5 and Is Required for Invasion of Human Erythrocytes by Plasmodium falciparum Invasion of erythrocytes by Plasmodium falciparum involves a complex cascade of protein-protein interactions between parasite ligands and host receptors. The reticulocyte binding-like homologue (P...
/** * Example demonstrating how to compute the Discrete Fourier Transform, visualize the transform, and apply * a filter frequency domain. * * @author Peter Abeles */ public class ExampleFourierTransform { /** * Demonstration of how to apply a box filter in the frequency domain and compares the results * to ...
After finishing up the Vienna Session IPA yesterday I decided to make some bread from the spent grains. Recipe 400 grams white flour 100 grams spent grains – I didn’t dry them up before adding to the bowl 380 milliliters water (It’s best if the water is lukewarm, 30-35°C) 1/2 teaspoon salt (I just eyeballed it) 1...
# About the Book Tilly is eagerly awaiting the return of her big sister Anna, who has been chasing her acting dreams Los Angeles. But when Tilly's plans hit a snag, can their handsome neighbor Matt come to the rescue? A lovely story of family, friendship and coming home. An exclusive sneak preview of _The Country W...
// Start the active receiver for this Nan0 connection. This enables the 'receiver' channel, // constantly reads from the open connection and places the received message on receiver channel func (n Nan0) startServiceReceiver(rmap RouteMap, identMap map[int]proto.Message, decryptKey *[32]byte, hmacKey *[32]byte) { defer...
/* * Copyright 2014 toxbee.se * * 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 wri...
// get a float64 out of the command string float64 htmInterface::getFloat() { if(t_ == NULL) throw SpatialFailure("htmInterface:getFloat: No command to parse"); const StdStr &token = t_->next(); if(!isFloat(token)) throw SpatialInterfaceError("htmInterface:getFloat: Expected float at first position of Command. ...
def reduce(key, stringified_values): user_id = key[:key.find('@')] job_queued_msec = float(key[key.find('@') + 1:]) values = [ast.literal_eval(sv) for sv in stringified_values] sorted_values = sorted( values, key=lambda x: x['last_updated_ms'], reverse=True) user_mode...
Following President Donald Trump’s campaign rally in Phoenix Tuesday night, CNN anchor Don Lemon delivered a concise and stunningly sharp rebuke to Trump’s speech. In his remarks, the president attacked the media — in particular for how his response to recent deadly violence in Charlottesville was covered — and critici...
// add a new server instance into the hashring // accepts an instance of StatsDBackend as parameter // returns the sorted hashring with the newly appended server and error func (ring *HashRing) Add(backend StatsDBackend) (HashRing, error) { if !backend.Alive() { err_msg := fmt.Sprintf("Backend %s:%d doesn't seem to ...
// RecoveryInstanceDataReplicationState_Values returns all elements of the RecoveryInstanceDataReplicationState enum func RecoveryInstanceDataReplicationState_Values() []string { return []string{ RecoveryInstanceDataReplicationStateStopped, RecoveryInstanceDataReplicationStateInitiating, RecoveryInstanceDataRepl...
//Wine trading in Gergovia public class A410877027_9_1 { static long persons; static long[] bottles; static long sum; public static void main(String[] argv) { //讀資料 Scanner scanner = new Scanner(System.in); while (scanner.hasNext()) { //人 p...
/** * Permanently delete the given {@link Tag}s from the State (including from * all {@link ItemThread}s which reference the Tags). * * @param tagsToDelete */ public void deleteTags(Set<Tag> tagsToDelete) { for (Tag t : tagsToDelete) { threadsAndTags.deleteTag(t); } ...
/** * Builds the log settings to be used for a test. The log settings here * add to those specified in a <tt>logback.xml</tt> or * <tt>logback-test.xml</tt> file on your class path. In particular, if * the logging configuration already redirects the Drill logger to the * console, setting console logging ...
/** * * WARNING - THIS FILE HAS BEEN HARD PURGED! REFERENCE master_2019 FOR PREVIOUS IMPLEMENTATIONS * */ public class Map { /** Vision Constants */ public static final double YAW_LEFT_MARGIN = 0; public static final double YAW_RIGHT_MARGIN = 0; public static final double PITCH_TOP_MARGIN =...
Single Spin Asymmetry in Open Charm Photoproduction and Decay as a Test of pQCD We analyze the possibility of measuring the single spin asymmetry (SSA) in open charm production by linearly polarized photons in the planned E160/E161 experiments at SLAC using the inclusive spectra of secondary (decay) leptons. In leadin...
ADVERTISEMENT A year into Donald Trump's presidency, with the end of Robert Mueller's painstaking investigation of Russian interference in the 2016 election nowhere in sight, I have a confession to make. On multiple occasions over the last several years I have attended private meetings with individuals who are member...
THE AERODYNANIIC CALCULATION OF RAILROAD TUNNELS LINE OF MARABDA-AKHALQALAQI The provided air expenses in tunnel are determined with the aerodynamic calculation of train motion pistol effect and after movement effect. It is ascertained, that for the tunnel conditions air expenses that are processed with pistol effect ...
<gh_stars>1-10 import { ReactNode } from 'react'; import s from './Wrapper.module.scss'; import Header from '../../components/Header'; import { IUser } from '../../types/user'; import cn from 'classnames'; import Footer from '../../components/Footer'; interface WrapperProps { children: ReactNode me: IUser } const...
def project_label_credit(bq_client: bigquery.Client, env_vars: {}) -> None: execute_query(bq_client, env_vars, PROJECT_LABEL_CREDIT_SQL, env_vars['project_label_credit_breakout_table'], False)
#pragma once #include <bundle/data/pose.h> #include <bundle/error/error_utils.h> #include <foundation/types.h> #include <Eigen/Eigen> namespace bundle { struct LinearMotionError { LinearMotionError(double alpha, double position_std_deviation, double orientation_std_deviation) : alpha_(al...
<gh_stars>0 /** * Copyright © 2019 Johnson & Johnson * * 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...
def do_string(self): self.unpack_int() return self.unpack_string()
/** * Apply viewport according to the latest known expected width/height and the latest known pixel * scales. */ public void applyViewport() { if (autoAdaptToHiDPI) { actualWidth = (int) (desiredWidth * pixelScaleX); actualHeight = (int) (desiredHeight * pixelScaleY); } else { actualW...
<filename>netbsdsrc/sys/arch/arm32/arm32/fault.c /* $NetBSD: fault.c,v 1.16 1997/10/17 00:09:52 mark Exp $ */ /* * Copyright (c) 1994-1997 <NAME>. * Copyright (c) 1994 Brini. * All rights reserved. * * This code is derived from software written for Brini by <NAME> * * Redistribution and use in source and binary...
/** * Indicates if the node itself is viable for the head, or if it's best descendant is viable for * the head. * * @param node * @return */ private boolean nodeLeadsToViableHead(ProtoNode node) { boolean bestDescendantIsViableForHead = node.getBestDescendantIndex().map(nodes::get).map(thi...
<reponame>maxwellpeterson/charter<filename>src/tsc-example.ts import ts from 'typescript'; function makeFactorialFunction() { const functionName = ts.factory.createIdentifier('factorial'); const paramName = ts.factory.createIdentifier('n'); const parameter = ts.factory.createParameterDeclaration( /*decorator...
/** * This class runs as a thread, and waits for messages to arrive in its queue that are to be sent back to the client. * * @author jwb */ class SendResultsCallable implements Callable<String> { // one per callable as it is stateless, but not thread safe private Gson gson = new Gson(); ...
An improved comparison circuit for low power pre-computation-based content-addressable memory designs This paper proposes a CMOS comparison architecture for low-power pre-computation-based content-addressable memory (PB-CAM). Instead of conventional architecture, we implement ours by CMOS logic gates to eliminate powe...
/** * Abstract service to handle zipping and transferring a set of iRODS paths as * one bundle * * @author Mike Conway - DICE * */ public class JargonZipServiceImpl extends AbstractJargonService implements JargonZipService { private ZipServiceConfiguration zipServiceConfiguration = null; private final Random r...
def train(inputfile, pattern=None, output=None, algorithm=None, nthreads=1, maxiter=None, rho1=None, rho2=None, model=None, compact=False): cmd = [command_name(), "train"] if pattern is not None: cmd.extend(["-p", pattern]) if algorithm is not None: cmd.extend(["-a", str(algorithm)]) if nthreads > 1: ...
/* - What's your team number? Team 6 - What is the functionality being tested? The effect of Delta-compression in building positional index Method: compare the IO counters between non-compression and compression - Describe your tests briefly: To compare the difference, we need to set up two di...
<reponame>NCIP/lexevs-remote<gh_stars>1-10 package gov.nih.nci.cacoresdk.installer.portal.generation; import gov.nih.nci.cacoresdk.installer.common.DeployPropertiesManager; import gov.nih.nci.cacoresdk.installer.common.SdkInstallerLookAndFeel; import gov.nih.nci.cagrid.common.portal.PortalLookAndFeel; import gov....
<reponame>ethanlu/pyanoled import os PYANOLED_ROOT = os.path.abspath(os.path.dirname(__file__)) def get_conf_path(filename: str): return os.path.join(PYANOLED_ROOT, 'conf', filename)
/** * Load the given book into the given database, either insert or update the data. * * @param book the data set to load into the database * @throws SQLException if load cannot be performed */ public void load(final Book book) throws SQLException { if (book == null) return; if (getDat...
<gh_stars>10-100 package com.iyzipay.functional; import com.iyzipay.functional.builder.CardInformationBuilder; import com.iyzipay.functional.builder.request.CreateCardRequestBuilder; import com.iyzipay.functional.util.RandomGenerator; import com.iyzipay.model.Card; import com.iyzipay.model.CardInformation; import com....
<filename>common/bintobcd_5digit.c #include <sys/types.h> __BEGIN_DECLS uint32_t bintobcd_5digit (int32_t bin); __END_DECLS uint32_t bintobcd_5digit (int32_t bin) { int i, j, k, s; uint32_t bcd; if ((s = sign (bin)) < 0) bcd = 0x80000000; else bcd = 0x00000000; for (i = 10000, k = 16; k >= 0; i /=...
#include "common.h" #include <set> #include <map> #include <string> #include "bu/log.h" #include "bu/str.h" #include "bu/malloc.h" #include "shape_recognition.h" // TODO - the topological test by itself is not guaranteed to isolate volumes that // are uniquely positive or uniquely negative contributions to the over...
import java.io.BufferedReader; import java.io.InputStreamReader; public class A_Eevee { public static void main(String[] args) throws java.io.IOException { BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); input.readLine(); String clue = input.readLine(); ...
/** * Handle null commands or invalid commands */ public class NullCommand implements Command { @Override public Position executeCommand(Position position) { return position; } @Override public CommandTypeEnum getCommandType() { return CommandTypeEnum.INVALID; } }
import java.io.*; import java.util.ArrayList; import java.util.List; import java.util.StringTokenizer; public class TemplateE implements Runnable { BufferedReader in; PrintWriter out; StringTokenizer tok = new StringTokenizer(""); void init() throws FileNotFoundException { try { ...
/*[deutsch] * <p>Rekonstruiert die Kalenderhistorie von der angegebenen Beschreibung. </p> * * @param variant description as defined in {@link #getVariant()} * @return ChronoHistory * @throws IllegalArgumentException if the variant cannot be interpreted as calendar history * @since...
Evolution of relation P1(P2) describing saturation decompressions after air hyperbaric expositions. The basic problem in decompression is the limit of maximum tolerable change of pressure after diving. Due to the number of parameters involved in decompression models (bottom time, ambient pressure, exposition profile, ...
package br.com.ernanilima.jmercado.service.impl; import br.com.ernanilima.jmercado.model.Produto; import br.com.ernanilima.jmercado.repository.ProdutoRepository; import br.com.ernanilima.jmercado.service.ProdutoService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.dao.DataI...
/** * @author <a href="mailto:johannesd@torchmind.com">Johannes Donath</a> */ public class LaunchClampBlock extends AbstractBlockEntityBlock<LaunchClampBlockEntity> { private static final PropertyEnum<Part> PART = PropertyEnum.create("part", Part.class); private static final PropertyInteger FACING = PropertyI...
/* Adds widget if place isn't already taken. */ void QSingleItemSquareLayout::addWidget(QWidget* widget) { if(!hasItem()) { replaceItem(new QWidgetItem(widget)); } }
def gene_panels(request, parsed_case): panels = parsed_case["gene_panels"] return panels
import React from 'react'; import { Button, Box, Text, TextProps, BoxProps, ButtonProps } from 'grommet'; export interface ButtonItemProps extends BoxProps { text?: string; textSize?: TextProps['size']; hoverIndicator?: ButtonProps['hoverIndicator']; href?: ButtonProps['href']; onClick?(e: React.MouseEvent):...
def add_summary_images(self): size1 = tf.shape(self.rgb_ph)[1] size_to_be = tf.cast(size1, tf.int32) - 2*self.displacement slicing = [0, self.displacement, self.displacement, 0] sliced_axis = [-1, size_to_be, size_to_be, -1] crop_input_node = tf.slice(self.rgb_ph, slicing, sliced...
/** * Load only the position of a given FEN string (or even only the position part of it) * into a game * * @param game - a given game * @param position - a given FEN position * @return - true iff the position is valid and was loaded to the game */ public static boolean loadPos...
package datagenerator.transaction; import datagenerator.common.columngenerator.Address; import datagenerator.common.columngenerator.ColumnDataGen; import datagenerator.common.columngenerator.DateTime; import datagenerator.common.columngenerator.DateYYYYMMDD; import datagenerator.common.columngenerator.EnumValue; impo...
<reponame>natemoo-re/bundle<gh_stars>0 import { CDN_NAMESPACE } from './cdn'; import path from 'path'; import type { Plugin } from 'esbuild'; export const HOST = 'https://cdn.skypack.dev/'; export const BARE = (): Plugin => { return { name: 'bare', setup(build) { build.onResolve({ filt...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.math.BigDecimal; public class Main { public static void main(String[] args) throws IOException { //?????? BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str; while ((str ...
/** * Created by jainpj on 18/02/17. */ public class Elevator { private double position; // public String elevatorID; private int direction; private int waitingFor; // public int capacity; //input private List<Passenger> onboardedPassengerList; private List<Floor> floorsGoToList; ...
/** * Called when the underlying continuation is closed. Gives operations a chance to cleanup whatever * resources may be on the other end of an open stream. Also invoked when an underlying ServerConnection * is closed associated with the stream/continuation */ @Override protected void onStreamC...
def preprocess_halo_catalog(self, halocat): try: assert "halo_upid" in list(halocat.halo_table.keys()) except AssertionError: raise HalotoolsError(missing_halo_upid_msg) halo_table, subhalo_table = SampleSelector.host_halo_selection( table=halocat.halo_table, ...
<filename>bugsnag-android-core/src/test/java/com/bugsnag/android/LastRunInfoApiTest.java package com.bugsnag.android; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import org.junit.Test; public class LastRunInfoApiTest { /** ...
import { DbxButtonDirective, DbxButtonInterceptor } from '@dereekb/dbx-core'; import { Directive, Host, OnInit } from '@angular/core'; import { Observable, map } from 'rxjs'; import { DbxPromptConfirm } from './prompt.confirm'; /** * Directive that binds together a confirm dialog with the button. */ @Directive({ s...