content
stringlengths
10
4.9M
/** * Native bindings to the <a target="_blank" href="https://www.khronos.org/registry/OpenGL/extensions/MESA/MESA_program_binary_formats.txt">MESA_program_binary_formats</a> extension. * * <p>The {@code get_program_binary} exensions require a {@code GLenum} {@code binaryFormat}. This extension documents that forma...
-- | Transaction metadata module Blockfrost.Types.Cardano.Metadata ( TxMeta (..) , TxMetaJSON (..) , TxMetaCBOR (..) ) where import Data.Aeson (Value, object, (.=)) import Data.Text (Text) import Deriving.Aeson import Servant.Docs (ToSample (..), samples) import Blockfrost.Types.Shared -- | Transaction meta...
n=int(input()) v_list=[int(i) for i in input().split()] c_list=[int(i) for i in input().split()] total_list=[] for i in range(n): total_list.append(v_list[i]-c_list[i]) total_list.sort(reverse=True) #print(total_list) sum=0 for i in total_list: if i>0: sum+=i else: break print(su...
We're learning more about the third suspect in the murder of a Millbrae man. The third suspect is Olivier Adella. He's a little known figure in what's turned out to be a high profile homicide case.Adella, who's a mixed martial arts fighter and has had some success in the ring, was arrested last Friday at his apartment ...
<filename>python-siren/siren/views/classLView.py from classBasisView import BasisView import pdb class LView(BasisView): TID = "L" SDESC = "LViz" ordN = 0 title_str = "List View" geo = False typesI = "r" @classmethod def suitableView(tcl, geo=False, what=None, tabT=None): ...
/* * Copyright 2006-2008 The FLWOR Foundation. * * 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...
/** * This checks the modification for containers without assigned CIDs and adds them. * This changes values inside the modification and this *must be called before the modification * is applied to the prism object*. * * Theoretically, the changes may affect the prism object after the fact, but...
<reponame>proxium/script.module.lambdascrapers # -*- coding: utf-8 -*- ''' Covenant Add-on This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or ...
One of the strengths of Final Cut Pro X is its comprehensive organization system. From tagging and grouping clips, to reconnecting offline media, it’s a pretty impressive setup. When I took the FCPX certification course, a large part of the curriculum was dedicated to early-stage organization, and I spent a lot of time...
from flax import linen as nn import logging import jax import jax.numpy as jnp import itertools import functools from typing import Tuple, Callable, List, Optional, Iterable, Any from flax.struct import dataclass from evojax.task.base import TaskState from evojax.policy.base import PolicyNetwork from evojax.policy....
package empire import ( "io" "github.com/remind101/empire/pkg/service" "golang.org/x/net/context" ) type ProcessRunOpts struct { Command string // If provided, input will be read from this. Input io.Reader // If provided, output will be written to this. Output io.Writer // Extra environment variables to ...
<reponame>JQHxx/OnePush-OC<filename>OnePush/OnePush/3rd/BDCloudAVFilters.framework/Headers/BDCloudAVARFaceBeautyFilter.h // // BDCloudAVARFaceBeautyFilter.h // BDCloudAVFaceSticker // // Created by baidu on 2019/2/25. // Copyright © 2019 Baidu. All rights reserved. // #import <GPUImage/GPUImageFilter.h> NS_ASSUME...
President Obama on Monday will meet with financial regulators to discuss progress on the implementation of the Dodd-Frank reform bill, the White House announced. In his first day back in Washington after a weeklong vacation in Martha's Vineyard, Obama will meet in the West Wing with directors from a slew of federal ag...
package io.github.itstaylz.hexlib.storage.files; import org.bukkit.configuration.file.YamlConfiguration; import java.io.File; import java.io.IOException; public class YamlFile extends FileBase { private YamlConfiguration config; public YamlFile(File file) { super(file); reloadConfig(); ...
package cmds import ( "go/ast" "github.com/buypal/oapi-go/internal/oapi/resolver" "github.com/buypal/oapi-go/internal/oapi/spec" "github.com/pkg/errors" "golang.org/x/tools/go/packages" ) // Scanner allow to scan go code for commands. // Commands are specific comments allowing to alter // behaviour of scanner. ...
IDIOPATHIC SCLEROCHOROIDAL CALCIFICATIONS. A CASE REPORT. AIM Sclerochoroidal calcifications (SCHC) are an uncommon benign ocular condition that occurs in elderly patients. SCHC usually manifest as multiple placoid yellow lesions in the midperipheral fundus, most often in the upper temporal quadrant. They are asymptom...
/** * For an option opt, recreate the command-line option, appending it to * opt->value which must be a argv_array. This is useful when we need to pass * the command-line option, which can be specified multiple times, to another * command. */ int parse_opt_passthru_argv(const struct option *opt, const char *arg, i...
/** * The MediaAPI is a set of API calls that will deal with getting information * out of the {@link IMediaFile} and {@link IMediaFolder} objects. * <p/> * In time, we should have completely wrapped the SageTV {@link MediaFileAPI}. * The reason is that we want to abstract the fact that we are dealing with sage * ...
import styled from "styled-components"; import { Colors } from "../../styles/colors"; interface ITextCont { bgColor?: string; padding?: string; } export const TextCont = styled.div<ITextCont>` background-color: ${props => (props.bgColor ? props.bgColor : Colors.white)}; padding: ${props => (props.padding ? pr...
#ifndef VOXBLOX_GSM_CONVERSIONS_H_ #define VOXBLOX_GSM_CONVERSIONS_H_ #include <vector> #include <geometry_msgs/Transform.h> #include <pcl/point_types.h> #include <visualization_msgs/Marker.h> #include <voxblox/core/common.h> #include <voxblox/io/sdf_ply.h> namespace voxblox { namespace voxblox_gsm { inline void fi...
package WarmUp; public class Staircase { /* * Complete the staircase function below. */ static void staircase(int n) { /* * Write your code here. */ for (int i = 0; i < n; i++) { for (int y = 0; y < n; y++) { if (y > n - i - 2) { System.out.print("#"); } else { Sys...
/** * Activity that holds the selected or clicked ImageView to view or edit it. */ public class ViewAndEditImageActivity extends AppCompatActivity { private ImageView image; private String[] filesPaths; private Bitmap bmp; File imageFile; Integer position; File[] files; private String res...
/** getCurrentTimeZone method for Linux implementation of OS Provider */ Boolean OperatingSystem::getCurrentTimeZone(Sint16& currentTimeZone) { struct tm buf; time_t now; #if defined(PEGASUS_PLATFORM_LINUX_GENERIC_GNU) now = time(NULL); localtime_r(&now, &buf); currentTimeZone = (buf.tm_gmtoff / 60...
import { EntitySubscriberInterface, EventSubscriber, InsertEvent } from "typeorm"; import { Employee } from "./employee.entity"; import { getUserDummyImage } from "./../core/utils"; @EventSubscriber() export class EmployeeSubscriber implements EntitySubscriberInterface<Employee> { /** * Indicates that this su...
<reponame>hispindia/BIHAR-2.7 package org.hisp.dhis.de.state; import org.hisp.dhis.datavalue.DataValue; /** * Interface for how DataValues are saved in a stateful way. * Implementing classes must supply the remaining necessary properties in some * fashion, for example through a bean or some session storage. * *...
<reponame>richardcornish/cyndiloza from django.db import models from django.core.urlresolvers import reverse from django.contrib.auth import get_user_model class About(models.Model): user = models.ForeignKey(get_user_model()) blurb = models.TextField(help_text="Appears on the homepage. Please use <a href=\"ht...
Greener Ullmann-Type Coupling of Aryl Halides for Preparing Biaryls Using Reusable Pd/ZrO2 Catalyst Biaryls with excellent yields can be prepared by the Ullmann-type coupling of aryl halides in the presence of potassium carbonate (as a base) and dimethylformamide (as a solvent), at 140 °C, using a reusable Pd (2.5 wt%...
<filename>mysqldatatypes/spatial/multipoint.go<gh_stars>0 package spatial import ( "bytes" "encoding/binary" ) type MultiPointData []PointData func (mpd *MultiPointData) decodeFrom(data *bytes.Reader) error { var length uint32 if err := binary.Read(data, byteOrder, &length); nil != err { return err } *mpd =...
def fix(sequence): for idx, tag in enumerate(sequence): tag=self.rev_tagset[tag] if tag.startswith("I-"): parts=tag.split("-") label=parts[1] flag=False for i in range(idx-1, -1, -1): prev=self.rev_tagset[sequence[i]].split("-") if prev[0] == "B" and prev[1] == label: f...
Combined bioinformatics analysis reveals gene expression and DNA methylation patterns in osteoarthritis Osteoarthritis (OA) is a common type of arthritis, which may cause pain and disability. Alterations in gene expression and DNA methylation have been proven to be associated with the development of OA. The aim of the...
import Control.Concurrent import Control.Exception import System.IO import System.Posix import System.Posix.IO main = do (pout1, pin1) <- createPipe (pout2, _) <- createPipe pid <- forkProcess $ do hdl <- fdToHandle pin1 hSetBuffering hdl LineBuffering handle (\UserInterrupt{} ->...
<reponame>LucaNicosia/suzieq import os import re import sys from typing import List import logging from logging.handlers import RotatingFileHandler from datetime import datetime import fcntl from importlib.util import find_spec from itertools import groupby from ipaddress import ip_network import errno import json imp...
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int H = sc.nextInt(); int W = sc.nextInt(); Point.setSize(W, H); int Ch = sc.nextInt(); int Cw = sc.nextInt(); int Dh = sc.n...
package io.vertx.ext.asyncsql.impl; import com.github.mauricio.async.db.Connection; import com.github.mauricio.async.db.QueryResult; import io.vertx.core.json.JsonArray; import io.vertx.ext.asyncsql.impl.pool.AsyncConnectionPool; import io.vertx.ext.sql.UpdateResult; import scala.concurrent.ExecutionContext; /** * @...
I speak to Jacob Rees-Mogg down a crackling phone line. Despite the poor-quality of the sound, his voice is unmistakeable: those rounded Edwardian vowels; the careful, deliberate delivery of phrases which fall slightly at the end, like a gramophone needing an extra turn of the crank. It is as though some enterprising a...
// FromProto creates new object metadata from the given proto metadata func FromProto(meta metaapi.ObjectMeta) ObjectMeta { var revision Revision if meta.Revision != nil { revision = Revision(meta.Revision.Num) } var timestamp time.Timestamp if meta.Timestamp != nil { timestamp = time.NewTimestamp(*meta.Timest...
package estatio.prototype.servlet; import java.io.IOException; import java.io.PrintWriter; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.htt...
package models import ( "bytes" "fmt" "io/ioutil" "net/http" "time" ) type Request struct { Id string `json:"id"` Created int64 `json:"created"` Method string `json:"method"` Protocol string `json:"protocol"` Header http.Header `json:"h...
// Match - matches object name with resource pattern. func (r Resource) Match(resource string, conditionValues map[string][]string) bool { pattern := r.Pattern for _, key := range condition.CommonKeys { if rvalues, ok := conditionValues[key.Name()]; ok && rvalues[0] != "" { pattern = strings.Replace(pattern, key...
// ---------------------------------------------------------------*- Java -*- // File: ./examples/src/java/PlantLocation.java // -------------------------------------------------------------------------- // Licensed Materials - Property of IBM // // 5724-Y48 5724-Y49 5724-Y54 5724-Y55 5725-A06 5725-A29 // Copyright IBM...
/** * Print the smile. The number of sample and range is controlled by static variables * @param smile the smile function */ private void printSmile(Function1D<Double, Double> smile) { System.out.println("Strike\tImplied Volatility"); double range = (UPPER_STRIKE - LOWER_STRIKE) / (NUM_SAMPLES - 1.0...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { IconModule, NavbarModule, SectionModule } from '@swimlane/ngx-ui'; import { PrismModule } from '../../common/prism/prism.module'; import { NavbarPageRoutingModule } from './navbar-page-routing.module'; import { NavbarPa...
/** * @author Jeremy Aldrich * * */ public class P1 { private boolean startFlag = false; TreeNode<Term> node; //private ArrayList<String> fileText = new ArrayList<String>(); //private ArrayList<Integer> occurList = new ArrayList<Integer>(); // private ArrayList<Term> terms = new ArrayList<Term>();...
package com.dynatrace.diagnostics.plugins.jmx.monitor; import java.util.HashMap; import java.util.Iterator; import java.util.Properties; import java.util.ArrayList; import javax.management.MBeanServerConnection; import javax.management.ObjectName; import com.dynatrace.diagnostics.plugins.jmx.variableholder.ThreadWor...
#include <stdio.h> #include <stdlib.h> int main() { int n, m, i, j, *a, *b, temp, count=0; scanf("%d", &n); a=(int *)malloc(n*sizeof(int)); for(i=0; i<n ; i++) scanf("%d", &a[i]); scanf("%d", &m); b=(int *)malloc(m*sizeof(int)); for(i=0; i<m ; i++) scanf("%d", &b[i]); for(i=0; i<n-1 ; i++...
#include <stdio.h> int main (){ int i,a,b,k[101]={0},max=0,sum=0; scanf ("%d",&a); for (i=0;i<a;i++){ scanf ("%d",&k[i]); if (max<k[i]){ max=k[i]; b=i; } } for (i=0;i<a;i++){ if (i==b){ sum=sum+(k[i]/2); } else { sum=sum+k[i]; } } printf ("%d",sum); return 0; }
package main import ( "fmt" "strconv" "strings" ) // Given a string containing only digits, // restore it by returning all possible valid IP address combinations. // A valid IP address consists of exactly four integers (each integer // is between 0 and 255) separated by single points. // Example: // Input: "2552...
// // This file is part of nuBScript Project // Copyright (c) <NAME> (<EMAIL>) // All rights reserved. // Licensed under the MIT License. // See COPYING file in the project root for full license information. // /* -------------------------------------------------------------------------- */ #include "nu_icstrin...
Capacity, Capacity Drop, and Relation of Capacity to the Path Width in Bicycle Traffic Bicycle usage is encouraged in many cities because of its health and environmental benefits. As a result, bicycle traffic increases which leads to questions on the requirements of bicycle infrastructure. Design guidelines are availa...
<gh_stars>1-10 # -*- coding: utf-8 -*- """CircleCore CLI.""" import importlib # project module from .cli_main import cli_main as cli_entry for key in ( 'box', 'invitation', 'module', 'replication_link', 'replication_master', 'schema', 'user', 'cliutil', 'debug' ): mod = importlib.import_module('.{}'.format(k...
/** * Load and process document list. * * @param url * the url * @param processStrategy * the process strategy * @throws XmlAgentException * the xml agent exception */ private void loadAndProcessDocumentList(final String url, final ProcessDataStrategy<DocumentEleme...
<filename>app/scripts/modules/core/src/application/ApplicationDisplayRenderer.tsx<gh_stars>1-10 import { IApplicationSearchResult } from 'core/domain'; import { AbstractBaseResultRenderer, ITableColumnConfigEntry } from 'core/search/searchResult/AbstractBaseResultRenderer'; import './application.less'; export cla...
//to delete an element and return it from the front of dequeue int delete_front() { int item; if (dq.front == -1) return -1; else { item = dq.arr[dq.front]; if (dq.front == dq.rear) { dq.front = -1; dq.rear = -1; } else ...
/** * Created by dynamicheart on 5/14/2017. */ public class NoticeListAdapter extends ArrayAdapter<Post> { private int resourceId; public NoticeListAdapter(Context context, int textViewResourceId, List<Post> objects) { super(context, textViewResourceId, objects); resourceId = textViewResource...
n,k=map(int,input().split()) cost=0 count=0 flag=True flag1=True for i in range(1,n+1): if 240-cost<k: print(count-1) flag=False break else: cost+=i*5 count+=1 if 240-cost<k and flag==True: print(count-1) flag1=False if flag==True and flag1==True: ...
Share With an image of the U.S. Constitution as his background, NSA whistleblower Edward Snowden beamed in through a choppy Google Hangouts video feed to call on the technologists at the 2014 South by Southwest Interactive Festival in Austin, Texas, to help “fix” the problem of mass government surveillance through eas...
import React from 'react'; import { CopyToClipboard } from 'react-copy-to-clipboard'; import { message, Tooltip } from 'antd'; import { CopyOutlined } from '@ant-design/icons'; import styles from './index.less'; export type Props = { text: string; }; const CopyText: React.FC<Props> = (props) => { const copyHandle ...
<gh_stars>1-10 import { IMapping, IMappingItems } from "./interfaces/typemapper.interface"; import { Types } from "./enums/types.enum"; declare class Mapping<ISource, IDest> implements IMapping<ISource, IDest> { source: string; dest: string; items: IMappingItems[]; constructor(source: string, dest: stri...
Effect of 200 MeV Ag16+ swift heavy ion irradiation on structural and magnetic properties of M-type barium hexaferrite M-type barium hexagonal ferrite (BaFe12O19) has been synthesized by sol-gel auto combustion method. The synthesized material was irradiated with 200 MeV Ag16+ ions using the 15UD Pelletron tandem acce...
class Query: "Base class for all queries" def __init__(self, source): self.source = source def __call__(self, data): return data def __repr__(self): return str(self) def __str__(self): return f'<{self.__class__.__name__}: {repr(self.source)}>' def __eq__(self,...
/** * Test an 'empty' module. */ public class EmptyModuleTest extends AbstractRuntimeTest { protected LilyRuntimeModel getRuntimeModel() throws Exception { File moduleDir = createModule("org.lilyproject.runtime.test.testmodules.emptymodule"); LilyRuntimeModel model = new LilyRuntimeModel(); ...
# -*- coding: utf-8 -*- N = int(input()) s = [int(input()) for i in range(N)] s.sort() s_sum = sum(s) inf=float("inf") min_s_not10x = inf for si in s: if si %10!=0: min_s_not10x=si break if s_sum %10 != 0: print(s_sum) else: if min_s_not10x==inf: print(0) else: print(s_su...
// ListUsers returns all the users matching the filters. func (s *Server) ListUsers(ctx context.Context, req *usersservicepb.ListUsersRequest) (res *usersservicepb.ListUsersResponse, err error) { order, err := orderProtoToInternal(req.GetSortOrder()) if err != nil { return nil, status.Error(codes.InvalidArgument, e...
Stephen King still seems to be on a creative roll, producing books at nearly six-month intervals. He delivered “Joyland” and “Doctor Sleep” in 2013, and 2014 saw the publication of “Mr. Mercedes” and “Revival.” One might quibble about their relative merits, but all were ambitious, well-plotted novels executed with clev...
// Will place a marker on either the project (if META-INF exist but not a MANIFEST.MF) or on the MANIFEST.MF file with incorrect casing. private void validateManifestCasing(IProject project) { IFolder manifestFolder = PDEProject.getMetaInf(project); if (manifestFolder.exists()) { try { ...
import * as React from "react"; import * as Loadable from "react-loadable"; const Loading = (): React.ReactElement => <span>Loadong</span>; export const List = Loadable({ loader: () => import(/* webpackChunkName: "lists" */ "./list-constainer"), loading: Loading, }); export const User = Loadable({ loader...
import torch from torch import nn import torch.nn.functional as F import torch from torch import nn, einsum import numpy as np from einops import rearrange, repeat class h_sigmoid(nn.Module): def __init__(self, inplace=True): super(h_sigmoid, self).__init__() self.relu = nn.ReLU6(inplace=inplace)...
You can get much bigger inverters on 24V or 48V than 12V. There are a number advantages in opting for a higher DC supply voltage. – For any given load, half the DC current and losses are down by ¼. Reduced fire risk. – Better input regulation. 0.5v line drop at 12v = 4.6% supply drop whereas 0.25 v line drop at 24v =...
package com.jungdam.member.domain; import com.jungdam.common.domain.BaseEntity; import com.jungdam.member.domain.vo.Avatar; import com.jungdam.member.domain.vo.Email; import com.jungdam.member.domain.vo.Nickname; import com.jungdam.member.domain.vo.ProviderType; import com.jungdam.member.domain.vo.Role; import com.jun...
<reponame>jongsuk0214/react-shopping-cart const StarButton = () => ( <div className="star-button-container"> <p> <small>Leave a star on Github if this repository was useful :)</small> </p> <a className="github-button" href="https://github.com/jeffersonRibeiro/react-shopping-cart" d...
/** * Back port of JSR-203 from Java Platform, Standard Edition 7. * @see <a href="http://docs.oracle.com/javase/7/docs/api/java/nio/file/Paths.html">Original JavaDoc</a> */ public final class Paths { private Paths() { } /** * @throws IllegalArgumentException * @see <a href="http://docs.oracl...
/// this does not run any git hooks, git-hooks have to be executed manually, checkout `hooks_commit_msg` for example pub fn commit(repo_path: &RepoPath, msg: &str) -> Result<CommitId> { scope_time!("commit"); let repo = repo(repo_path)?; let signature = signature_allow_undefined_name(&repo)?; let mut index = repo.i...
package ucla.nesl.notificationpreference.service; import android.util.Log; import android.util.SparseIntArray; import com.google.android.gms.location.ActivityRecognitionResult; import com.google.android.gms.location.DetectedActivity; import com.google.android.gms.location.Geofence; import java.util.Calendar; import ...
/** * Updates the position of the Soldier to move it towards pt. No collision. * * @param pt */ public void moveTowards(GridPoint pt) { if (!solved && !foundWall && !waiting && !pt.equals(grid.getLocation(this))) { waiting = false; if (xSoldier > pt.getX()) { xSoldier -= velocitySoldier; } else ...
<filename>ccudata/src/main/java/org/zankio/ccudata/ecourse/source/local/DatabaseBaseSource.java<gh_stars>1-10 package org.zankio.ccudata.ecourse.source.local; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import org.zankio.ccudata.base.Repository; import org.zankio.ccudata.base.source...
<filename>think-generator-core/src/main/java/io/github/thinkframework/generator/core/configuration/package-info.java /** * 配置文件 * @author hdhxby * @see org.springframework.beans.factory.xml.NamespaceHandler */ package io.github.thinkframework.generator.core.configuration;
import {Parser} from '@parsify/math'; import pMemoize from 'p-memoize'; import {fetcher} from './utils/fetcher'; const memFetcher = pMemoize(fetcher); export default (parser: Parser) => async (expression: string): Promise<string> => { const data = await memFetcher(); parser.set('confirmed', data.results[0].total_...
/** * Automatically generated by gen_l10n_data.py * @packageDocumentation * @internal */ /* Unicode CLDR Version 37, retrieved 2021-06-29 */ export * from './root'; export * from './af'; export * from './am'; export * from './ar'; export * from './as'; export * from './az'; export * from './be'; export * from './...
At first glance, it is easy to believe that programming as a profession is one which is both in rude health, and for which the future is incredibly bright. Increased automation, the mind bending world of machine learning, and the ever more intuitive ways in which software impacts our lives all suggest that programming ...
//this functions clears all active slots of the array void free_entire_cache() { while(m_entries.size()) { if ((*this)[m_entries.back()]) (*this)[m_entries.back()]->free(); (*this)[m_entries.back()]=0; m_entries.pop_back(); } ...
// init registers a scheme to defaultScheme. func init() { utilruntime.Must(clientgoscheme.AddToScheme(defaultScheme)) utilruntime.Must(apiextensionsv1.AddToScheme(defaultScheme)) utilruntime.Must(apiextensionsv1beta1.AddToScheme(defaultScheme)) }
import { observer } from "mobx-react-lite"; import * as React from "react"; import Guide from "~/components/Guide"; import Modal from "~/components/Modal"; import useStores from "~/hooks/useStores"; function Dialogs() { const { dialogs } = useStores(); const { guide, modalStack } = dialogs; return ( <> ...
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # 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 applica...
Cytological and molecular analysis of centromere misdivision in maize. B chromosome derivatives suffering from breaks within their centromere were examined cytologically and molecularly. We showed by high resolution FISH that misdivision of the centromere of a univalent chromosome can occur during meiosis. The breaks ...
def add_comment(payload): body = request.get_json() comments = body.get('comments', None) project_id = body.get('project_id', None) user_id = 1 if not comments or not project_id or not user_id: abort(400, 'invalid inputs of new comment') try: com...
def compute_polyline_length(polyline: np.ndarray) -> float: assert isinstance(polyline, np.ndarray) and polyline.ndim == 2 and len( polyline[:, 0]) > 2, 'Polyline malformed for path length computation p={}'.format(polyline) distance_between_points = np.diff(polyline, axis=0) return np.sum(np.sqrt(np...
def _upstream_area_message(self, area, commits): return '\n'.join( ['{} ({}):'.format(area, len(commits)), ''] + list(self.upstream_commit_line(c) for c in commits) + [''])
package com.pickcoverage; import com.pickcoverage.domain.coverages.Bike; import com.pickcoverage.domain.coverages.Electronics; import com.pickcoverage.domain.coverages.Jewelry; import com.pickcoverage.domain.coverages.SportsEquipment; import com.pickcoverage.domain.repository.IBikeRepository; import com.pickcoverage.d...
/* Copyright (c) 2009, <NAME>. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the foll...
/** * Builds the Vendor Image configurations. * * @param flavorMaps * the collection of flavors and the properties for those flavors * @param vfNodeTemplate * the node template for the VF * * @return a stream of VendorImageConfiguration objects * @throw...
#pragma once #include "geometry/point2d.hpp" #include "geometry/rect2d.hpp" #include "geometry/any_rect2d.hpp" namespace df { double InterpolateDouble(double startV, double endV, double t); m2::PointD InterpolatePoint(m2::PointD const & startPt, m2::PointD const & endPt, double t); double InterpolateAngle(double sta...
<reponame>CoolBitX-Technology/coolwallet3-sdk import * as derivation from './derive'; import Transport from "../transport"; import * as utils from "../utils/index"; import { pathType } from '../config/param'; export default class EDDSACoin { coinType: string; constructor(coinType: string) { this.coinType = co...
/** * Delete an specific mapping for a meal * @param mealId */ public void deleteMappingMeal(int mealId) { database.delete(conn.TABLE_MAPPING_MEAL, conn.COLUMN_MEAL_ID + " = " + mealId, null); Log.w(DAOMappingMeal.class.getName(),"Deleted mapping for mealID " + mealId); ...
<filename>src/main/java/com/sematext/solr/redis/command/Sort.java package com.sematext.solr.redis.command; import org.apache.solr.common.params.SolrParams; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import redis.clients.jedis.JedisCommands; import redis.clients.jedis.SortingParams; import java.util.Map; ...
Calcium antagonists and sympathetic nerve activation: are there differences between classes? ACTIONS OF THE SYMPATHETIC NERVOUS SYSTEM: The sympathetic nervous system is an important cardiovascular regulator, particularly during stress and exercise; its sympathetic nervous activity is regulated in centers in the brain...
def validate_absent(self, schema_key): schema = self.schemas.get(schema_key, None) if schema is None: return False return schema.get('absent', False)
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, ObjectType, ManyToMany, } from 'typeorm' import { AccountEntity } from '../account/entities/account.entity' import { JobEntity } from '../job/entities/job.entity' import { OrderEntity } from '../order/entities/order.entit...
/** * A zone is a delegated portion of DNS. We use the word {@code zone} instead of * {@code domain}, as denominator focuses on configuration aspects of DNS. * * @since 1.2 See <a href="http://www.ietf.org/rfc/rfc1035.txt">RFC 1035</a> */ public class Zone { /** * Represent a zone without an {@link #id(...
// Receives a list of Redis entities to convert func writeEntities(connection *redistimeseries.Client, entities []models.NodeMetricsEntity) { CheckAndInitTSKeys(connection, entities) for i := range entities { cpuEntityKey := GenerateCpuKey(entities[i].MetricsType, entities[i].Name) memEntityKey := GenerateMemKey(...
<filename>signer/api/api_test.go package api_test import ( "encoding/json" "fmt" "io" "io/ioutil" "net/http" "net/http/httptest" "os" "strings" "testing" "github.com/docker/notary/cryptoservice" "github.com/docker/notary/signer" "github.com/docker/notary/signer/api" "github.com/docker/notary/trustmanager...