content
stringlengths
10
4.9M
/** * Assert Short type detection. * * @throws Exception Any unexpected exception. */ @Test public void testShortTypeDetection() throws Exception { short s = 1; Assert.assertEquals("Test Short detection", Type.SHORT, Type.getTypeForObject(s)); Assert.asser...
By Aaron Tilley and Miguel Helft 11:59am: Tim Cook wrapping up. “We believe technology should lift humanity and enrich people’s lives in all the ways people want to experience it — whether that’s on the wrist, in the living room, on the desk, in the palm of their hand, in the car or even automating their home.” 11:50...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
/** * @license * 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 applicable law or ...
class CompoundOperation: """ Creates a `CompoundOperation`, which represents a combination of EditOperations starting the given `operation`. More operations can later be added. Applying the `CompoundOperation` to an `AbstractMethod` will apply all successfully added operations, in order. """ de...
RICHMOND, Va. — In a packed theater here on Saturday, Dave Chappelle introduced a comedy bit by explaining that there was a time when he didn’t want to return to the public eye. “I didn’t want to do comedy,” he said, explaining that he wasn’t sure he had something to say. That’s certainly changed. After years of dropp...
// Complete the superReducedString function below. static String superReducedString(String s) { int i = 1; while(i < s.length()) { if(s.charAt(i) == s.charAt(i-1)) { s = s.substring(0,i-1) + s.substring(i+1); i = 0; } i++; } ...
<filename>FGPopupSchedulerDemo/FGPopupSchedulerDemo/popView/PriorityPopupView.h<gh_stars>100-1000 // // PriorityPopupView.h // FGPopupSchedulerDemo // // Created by FoneG on 2021/6/25. // #import "BasePopupView.h" #import "FGPopupSchedulerConstant.h" NS_ASSUME_NONNULL_BEGIN @interface PriorityPopupView : BasePopu...
/** * A layout for editing a single entity (can either be an existing or a new * entity) * * @author bas.rutten * @param <ID> type of the primary key of the entity * @param <T> type of the entity */ @SuppressWarnings("serial") public class SimpleEditLayout<ID extends Serializable, T extends AbstractEntity<ID>> ...
MANAGERIAL DISCOURSE IN THE COMMUNICATIVE INTERACTION OF THE STATE AND SOCIETY The article considers managerial discourse in the communicative interaction of the state and society. It is determined that in the structure of managerial discourse there are two radically opposed roles in the system of executive management...
/** * Provides log4j preferences. */ @ServiceProvider(service=PreferenceProvider.class) public class Log4jPreferenceProviderImpl implements PreferenceProvider { private Map<String, String> mapping; @Override public Integer getOrder() { return 2; } @Override public String getName...
namespace $.$$ { const {rem} = $mol_style_unit const {url} = $mol_style_func $mol_style_define( $psb_portal, { Placeholder: { background: { image: [[ url( 'https://habrastorage.org/webt/dp/mm/jz/dpmmjzzibmacgk4547w_sdghy6i.png' ) ]], repeat: 'no-repeat', position: 'center', }, }, Menu...
<gh_stars>1-10 import { ApplyOptions } from '@sapphire/decorators'; import { SpecteraCommand } from '#structures/SpecteraCommand'; import type { Message, CommandInteraction } from 'discord.js'; import { type Args, type ApplicationCommandRegistry, RegisterBehavior, UserError } from '@sapphire/framework'; import { reply ...
def isHeader(line): if line[0:2] in ['AL','EP','CP']: result = True else: result = False return result
Nematicidal activity of mint aqueous extracts against the root-knot nematode Meloidogyne incognita. The nematicidal activity and chemical characterization of aqueous extracts and essential oils of three mint species, namely, Mentha × piperita , Mentha spicata , and Mentha pulegium , were investigated. The phytochemica...
About a week and a half ago, Bandai Namco announced that Digimon World: Next 0rder would be coming to the west exclusively on PlayStation 4. For anyone that has followed the announcement closely, you should know what I mean when I say that it was handled very poorly, to say the least. Initially, the title was announced...
// *Local* function to restore view state: window size, position & dock state. // if both _stateBuf and _len are NULL, hide (see SDK) void SWS_DockWnd::LoadState(const char* cStateBuf, int iLen) { bool bDocked = IsDocked(); if (cStateBuf && iLen>=sizeof(SWS_DockWnd_State)) SWS_SetDockWndState(cStateBuf, iLen, &m_st...
Has World War III begun? Some world leaders and journalists seem to think so. For example, Jordan’s King Abdullah recently said at a news conference that “we are facing a Third World War against humanity,” and that we must “act fast to tackle the response to interconnected threats.” Similarly, Roger Cohen at the New Yo...
// Used to supply utility functions to the actual lstm test visitors class LstmVisitor : public TestLayerVisitor { public: explicit LstmVisitor(const LstmInputParams& params, const char* name = nullptr) : TestLayerVisitor(name) , m_InputParams(params) {} protected: tem...
/** * Encapsulates configuration for a Java-based atomic component * * @version $Rev$ $Date$ */ public class JavaInstanceFactoryProvider<T> implements InstanceFactoryProvider<T> { private JavaImplementation definition; private ProxyFactory proxyService; private final List<JavaElementImpl> injectionSit...
Three people were killed and 19 people have been wounded in shootings in Chicago from late Saturday through early Sunday morning, authorities said. One of the fatal shootings was a 15- or 16-year-old boy who was killed early Sunday morning. About 12:50 a.m., two boys were shot, one of them fatally, in the Kenwood nei...
<filename>test/unit/storage/keyvalue/WrappedExpiringStorage.test.ts<gh_stars>100-1000 import type { KeyValueStorage } from '../../../../src/storage/keyvalue/KeyValueStorage'; import type { Expires } from '../../../../src/storage/keyvalue/WrappedExpiringStorage'; import { WrappedExpiringStorage } from '../../../../src/s...
<reponame>feralgoon/ThinkJavaCode public class StringUtil { public static void main(String[] args) { System.out.println("Welcome to StringUtil"); System.out.println("getFirstCharacter for 'Hello' returns " + getFirstCharacter("Hello")); System.out.println("getFirstCharacter for 'Goodbye...
/** * Use this method to execute the command. */ void executeCommand() { List<Exception> errors = new ArrayList<>(); try { ProcessBuilder pb = new ProcessBuilder(this.commandInformation); pb.environment().clear(); pb.environment().putAll(this.environment...
<reponame>geostarling/rezolus // Copyright 2019-2020 Twitter, Inc. // Licensed under the Apache License, Version 2.0 // http://www.apache.org/licenses/LICENSE-2.0 use nvml_wrapper::NVML; use rustcommon_atomics::*; use serde_derive::Deserialize; use strum::IntoEnumIterator; use crate::config::SamplerConfig; use super...
This was going to be a column just about Robert Jones, who celebrated his 44th birthday Thursday by walking out of Orleans Parish Criminal District Court a free man. Jones had spent 23 years locked up at the Louisiana State Penitentiary, but like many other poor and poorly represented defendants cornered by Harry Conni...
/** * Created by Xiamin on 2017/4/9. */ public class AppConstant { public static final String SP = "sp_setting"; public static final String Theme = "theme"; public static final String isFirstEnter = "is_first_enter"; }
// NewLocalDevServerProxy creates a http handler to proxy a local dev server setup func NewLocalDevServerProxy() (http.Handler, errorsx.Error) { originURL := os.Getenv(LocalDevServerEnvVarName) if originURL == "" { return nil, errorsx.Errorf("no %s environment variable set", LocalDevServerEnvVarName) } origin, er...
The problem of how learning should be socially organized: relations between reflection and transformative action Within critical theory progressive relationships between reflection and action involve confronting contradictions within practice artistry from a dialectical view of practice as praxis and as the means wher...
def create_exp_nexp_edge_ls(exp_ids, nexp_ids, exp_ps, nexp_ps): pdist_mat = pairwise_abs_dist(nexp_ps, exp_ps) pdist = np.ndarray.flatten(pdist_mat) cap_weight_ls = [{'capacity':1, 'weight':dist} for dist in pdist] exp_ids_comb, nexp_ids_comb= zip(*itertools.product(exp_ids, nexp_ids)) exp_nexp_edg...
import { Component } from '@angular/core'; import * as clipboard from 'clipboard-polyfill'; import { clamp } from 'lodash'; import { rect, RandStrFlag, randStr } from '../../../utils'; const w = 386, h = 270; @Component({ selector: 'app-rand-str', templateUrl: './randstr.html', styleUrls: ['./randstr.scss'] }) exp...
def terminate(self, token): assert token.type == '$END' while True: action, arg = self.states[self.state][token.type] self.reduce_(arg) if self.state_stack[-1] == self.end_state: text = ''.join(self.sequence) self.result = (self.value_s...
/** * Resets the view to the initial defaults. */ private void init(Bundle savedInstanceState) { announceButton.setEnabled(false); listElements = new ArrayList<BaseListElement>(); listElements.add(new EatListElement(0)); listElements.add(new LocationListElement(1)); lis...
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. /*============================================================================= PrimitiveSceneInfo.h: Primitive scene info definitions. =============================================================================*/ #ifndef __PRIMITIVESCENEINFO_H__ #define...
Physiochemical Properties of Hexagonal Boron Nitride Blended Coconut Oil Lubrication plays a vital role in engineering. Now a day’s reduction in friction is a major and ongoing task for researchers. Few researches are focussing on various Nano additives that lower value of friction and hence wear can be reduced. There...
Here it is! The real thing! Recently I was showing my wife some of wrestling’s greatest moments and spent an inordinate amount of time trying to find the original Eric Bischoff debut segment that aired on WWE Raw back in July 2002 where he walked out to AC/DC’s Back In Black in one of the most shocking and memorable m...
// Copyright lowRISC contributors. // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // print.h's polyglotness is not part of its public API at the moment; we wrap // it in an `extern` here for the time being. extern "C" { #include "sw/device/lib/runtime...
def build_discourse_tree(edu_ids, parent_ids): ids_and_parents = zip(edu_ids, parent_ids) ids_and_parents.sort(key=lambda t: t[0]) by_id = itertools.groupby(ids_and_parents, key=lambda t: t[0]) nodes = [] ids_to_nodes = {} for k, g in by_id: g = list(g) new_node = DiscourseTreeNode(k, g[0][1], len(g...
use snake::Snake; use state::WorldState; use nalgebra::{Point2, Vector2}; use ncollide::shape::{Cuboid, Ball}; use ncollide::query::{Ray, RayCast}; use nalgebra::Isometry2; use std; #[allow(unused)] /// Return a vector of all senses experienced by snake: &Snake in the world: &WorldState pub fn get(snake: &Snake, world...
#include "asd.MediaPlayerWMF.h" #ifdef _WIN32 #include "../../asd.Graphics.h" #include "../../asd.Graphics_Imp.h" #include <propvarutil.h> namespace asd { void MediaPlayerWMF::ThreadLoop() { while (isPlaying) { { auto now = std::chrono::system_clock::now(); auto diff = now - startTime; auto dif...
// Auth function for basic username/password auth implementations. Takes a // username and password and constructs the Authorization header. // Vars: // apiRequest = The ApiRequest to be used. // authParams = JWT params in the order of: // [0] => username // [1] => password func BasicAuth(...
/** * print all binary for given digits * @param numDigits * @param intent */ void printGivenBinaryNumberDigit(int numDigits, String intent) { if (numDigits <= 0) { System.out.println(intent); } else { printGivenBinaryNumberDigit(numDigits - 1, intent + 0); printGivenBinaryNumberDigit(numDigits - ...
import copy import numpy as np import time import torch import torch.nn as nn import torch.nn.functional as F class Actor(nn.Module): def __init__(self, state_dim, action_dim, max_action, hidden_sizes=[400, 300]): super(Actor, self).__init__() self.l1 = nn.Linear(state_dim, hidden_sizes[0]) self.l2 = nn.Line...
/****************************************************************************/ /* */ /* This file is part of QSopt_ex. */ /* */ /* (...
/** * Store an evidence in the "buffer". There is a buffer (in the form of a * CSV file) for each predicate that holds the DB tuple formats of its * evidence; this buffer will be flushed into the database once all evidence * has been read. * * @param a * the evidence; following Alchemy,...
Translation without a source text: methodological issues in news translation Although journalistic translation research has been quite successful over the past 15 years, from a methodological point of view many scholars struggle with the total or partial absence of a traceable source text. As a consequence, parallel c...
package org.jenkinsci.plugins.slave_setup; import hudson.Extension; import hudson.FilePath; import hudson.model.Computer; import hudson.model.TaskListener; import hudson.remoting.Channel; import hudson.slaves.ComputerListener; import java.io.IOException; import java.util.List; /** * @author <NAME> */ @Extension pu...
Here are Monday's D-League assignments and recalls, with the latest moves added to the top of the page throughout the day: After Jeremy Lin sprained his ankle at practice today, the Rockets will recall the recently-signed Patrick Beverley from the D-League, tweets Jonathan Feigen of the Houston Chronicle. Since joinin...
// broad cast a block to all connected peers // we can only broadcast a block which is in our db // this function is trigger from 2 points, one when we receive a unknown block which can be successfully added to chain // second from the blockchain which has to relay locally mined blocks as soon as possible func Broadca...
Transgender activist Nisha Ayub was awarded ‘Hero of the Year’ at the second Asia LGBT Milestone Awards (ALMAs) yesterday in Bangkok. ― Picture by Choo Choy May KUALA LUMPUR, April 16 — Transgender activist Nisha Ayub, who is part of rights group Justice for Sisters (JFS), was awarded “Hero of the Year” at the second ...
def sample_frames(self, frames, interval, start_ms, skip_frames): frame_count = len(frames) if frame_count > 3: first_frame = frames[0] first_change = frames[1] last_frame = frames[-1] match = re.compile(r'ms_(?P<ms>[0-9]+)\.') matches = re.sea...
/** * Mutable extension of {@link LayoutableMatrix}. * * @param <E> Type of elements. * * @see LayoutableMatrix * @see MutableStructure */ public class MutableMatrix<E> extends LayoutableMatrix<E> implements MutableStructure<E> { /** * On addition consumers. */ private final Map<Object, List<...
<reponame>3ach/mattermost-webapp<filename>utils/emoji.d.ts // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import {SystemEmoji} from '@mattermost/types/emojis'; export const Emojis: SystemEmoji[]; export const EmojiIndicesByAlias: Map<string, number>; e...
import React from "react"; import { ControlProps } from "../../form"; /** * <Input /> Props */ type InputProps<V = string | number> = ControlProps<V> & { /** * Aria pressed */ ariaPressed?: boolean | "mixed" | undefined; /** * Aria label */ ariaLabel?: string | undefined; /** * className ...
from cosmos_soft_packets import * from noncosmos_packets import * from packets_cf_cmd import * from packets_cf_tlm import * from packets_cs_cmd import * from packets_cs_tlm import * from packets_ds_cmd import * from packets_ds_tlm import * from packets_ephem_cmd import * from packets_ephem_tlm import * from packets_es_...
# Copyright 2022 Cerebras Systems. # # 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...
/** * Guests Table Class -- Represents the number of guests * This class implements the GuestsDAO * therefore, has access to methods that access an arrayList of guests, as well as each individual guest * These methods are useful when accessing all records in the Guests table or individual records (by ID) * @autho...
<filename>examples/transform/transform_set.py<gh_stars>0 """ File: examples/transform/transform_set.py Author: <NAME> Date: 22 Feb 2018 Description: Example showing how to use, save, and load TransformSet objects. """ import os from distpy import TransformSet, NullTransform, Log10Transform,\ Exp10Transform, Arcsin...
package com.onlinepayments.client.android.exampleapp.activities; import android.app.Activity; import android.content.Intent; import android.view.View; import androidx.fragment.app.FragmentActivity; import com.onlinepayments.client.android.exampleapp.view.HeaderViewImpl; import com.onlinepayments.client.android.examp...
<gh_stars>1-10 // Package stock :: exchange.go package stock import "fmt" // Exchange struct type Exchange struct { ID int Stocks map[int]*Stock } // ==== Exchange methods ==== // StockHeader func for stocks list header func (e *Exchange) StockHeader() string { s := &Stock{} return s.StringHeader() } // Ge...
class Struct: """ @class Struct @brief Class with named member variables. """ def __init__(self, **entries): """ @brief Struct constructor @param entries """ self.__dict__.update(entries) def __str__(self): s = '' for d in self.__dict__: ...
n=int(input()) a=[int(i) for i in list(input())] m=a for i in range(1,n+1): t=a[i:]+a[:i] x=t[0] for k in range(n): t[k]=(t[k]-x)%10 m=min(m,t) print(''.join(str(i) for i in m))
def load_torrent(self, torrent, **kwargs): start = kwargs.pop('start', False) verbose = kwargs.pop('verbose', False) verify_load = kwargs.pop('verify_load', True) max_retries = kwargs.pop('max_retries', 5) params = kwargs.pop('params', []) target = kwargs.pop('target', ''...
import sys sys.setrecursionlimit(10 ** 7) input = sys.stdin.readline n = int(input()) a = [0]* n b = [0]* n c= [(0,0)]*n for i in range(n): a[i], b[i] = map(int, input().split()) c[i] = (i, a[i]+b[i] ) c.sort(key=lambda x:x[1],reverse=True) ans = 0 for i in range(n): if i%2==0: ans+=a[c[i][0]] ...
def decrypt_and_check_admin(self, ciphertext): plaintext = aes_cbc_decrypt(ciphertext, self._key, self._iv) if not check_ascii_compliance(plaintext): raise Exception("The message is not valid", plaintext) return b';admin=true;' in plaintext
<filename>src/pages/Follow/index.tsx import React, { useCallback, useRef, useState } from 'react'; import { Link } from 'react-router-dom'; import { FiMail, FiSearch } from 'react-icons/fi'; import { FormHandles } from '@unform/core'; import { Form } from '@unform/web'; import * as Yup from 'yup'; import { useToast } ...
/* Register a language-switch callback function. */ void WEB_SetLanguageFn(WEB_LanguageFn fn, void *p) { webLanguageFn = fn; webLanguageFnArg = p; }
import warnings import numpy as np from dipy.utils.optpkg import optional_package from dipy.viz.horizon.tab import (HorizonTab, build_label, color_double_slider, color_single_slider) fury, has_fury, setup_module = optional_package('fury') if has_fury: from fury import colormap,...
<gh_stars>1-10 /* { dg-do run } */ #include <limits.h> int a = 0, b = INT_MAX - 1; extern void abort(void); int main() { if (a - 1 > b + 1) abort(); return 0; }
import * as React from 'react'; const TextBold24RegularIcon = () => { return( <?xml version="1.0" encoding="UTF-8"?> <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <!-- Generator: Sketch 64 (93537) - https://...
import { chromium, BrowserContext, Page } from 'playwright-chromium'; import path from 'path'; const EXTENSION_PATH = path.resolve(__dirname, './extension'); export interface Context { browserContext: BrowserContext, backgroundPage: Page, } const start = async () => { const userDataDir = '/tmp/test-user-...
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE 蓝鲸基础平台 is licensed under the MIT License. License for BK-BASE 蓝鲸基础平台: ---------------------------------------------...
<gh_stars>10-100 import {NgModule} from '@angular/core'; import {FormRoutingModule} from './form-routing.module'; import {FormComponent} from './form.component'; import {ProjectShareModule} from '../project-share/project-share.module'; import {UiModule, TabModule} from '@apereo/mgmt-lib'; /** * Module to lazy-load f...
<gh_stars>1-10 import s from '../error/teste'; it('s', () => { const warn = jest.spyOn(global.console, 'warn'); expect.hasAssertions(); s('Almerindo'); expect(warn).toBeCalled(); });
/** * Create a key store suitable for use as a trust store, containing only * the certificates associated with each alias in the passed in * credentialStore. * * @param credentialStore key store containing public/private credentials. * @return a key store containing only certificates. ...
def dpkgAlternatives(cls, dpkg): installed = dpkg.installed() cython3 = 'cython3', missing = [ pkg for pkg in cython3 if pkg not in installed ] if not missing: yield Cython3.flavor, cython3 cython2 = 'cython', missing = [ pkg for pkg in cython2 if pkg not in i...
<reponame>jamalg/my_shops from back.utils.config_class.config import ( BaseConfig, EnvironmentVariable, IntEnvironmentVariable, FloatEnvironmentVariable, BoolEnvironmentVariable) __all__ = [BaseConfig, EnvironmentVariable, IntEnvironmentVariable, FloatEnvironmentVariable, BoolEnvironmentVariable]
#include <bits/stdc++.h> using namespace std; typedef pair<int, int> pii; #define x first #define y second int main() { int t; cin >> t; while (t--) { int n; cin >> n; vector<pii> a(n); vector<int> p; for (int i = 0; i < n; i++) { cin >> a[i].x >> a[i].y; p.push_back(a[i].x); p...
<filename>src/main/java/com/nullfish/app/jfd2/filelist/TimestampConditionEditor.java package com.nullfish.app.jfd2.filelist; import java.awt.BorderLayout; import java.awt.CardLayout; import java.awt.Dimension; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.text.ParseException; imp...
package com.thought.monkey.protoBuilder; import com.thought.monkey.wsmessage.MessageInfo; /** * @Auther: wei_tung * @Description: <EMAIL> */ public class NotificationMsgBuilder { public static MessageInfo.Model buildNotification(String content) { MessageInfo.MessageBody messageBody = MessageInfo.Mess...
<filename>src/test/java/com/sap/oss/phosphor/fosstars/model/qa/ScoreTestVectorTest.java package com.sap.oss.phosphor.fosstars.model.qa; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import com.fasterxml.jackson.dataformat.yaml.YAM...
package com.bitdubai.sub_app.intra_user_community.adapters; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Path; import android.graphics.Rect; import android.view.LayoutInflater; import android.view.View; im...
Mobile home park lot rents are ridiculously low. In most markets, the difference between apartment rents and mobile home park rents is often $1,000 per month. But this is not going to remain the case, and smart investors are betting on the future run-up of mobile home park rents. Mobile home park rents stand to have la...
package uk.offtopica.monerorpc; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; /** * Used for requests where the parameters are an array and not an object of key-value pairs. * * @param <T> Type of the element inside the array. */ public class MoneroRpcRequestParamsArray<T> exte...
#[allow(unused_imports)] use to_binary::{BinaryError, BinaryString}; fn main() { // A Demo For Working With Whitespace work_with_whitespace(); // Generates A New BinaryString From Hexadecimal let x = generate(); // Checks Whether The Input Is Binary let check_if_binary: bool = x.assert_binary...
/******************************************************************************* Copyright (c) 1995_96 Microsoft Corporation Abstract: Declaration of Importation and Pickable result interfaces. *******************************************************************************/ #ifndef _RESULTS_H #d...
/** * Set whether or not debug mode is enabled. Debug mode logs all permission, option, and inheritance * checks made to the console. * * @param debug Whether to enable debug mode * @param filterPattern A pattern to filter which permissions are logged. Null for no filter. */ @Override ...
/** * Iterate over lines in a stream. */ public class LineIterable implements Iterable<String>, Closeable{ private final BufferedReader bufferedReader; /** * @param r any reader. Note. this class creates its own buffered reader so there is no need to create one in advance. */ public LineIterabl...
def round_py2_compat(what): d = Context( prec=len(str(long(what))), rounding=decimal.ROUND_HALF_UP ).create_decimal(str(what)) return long(d)
<reponame>marcellinkp/Simulador-Campeonato-Brasileiro<gh_stars>1-10 /* * 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 br.com.projeto.model; import java.time.DayOfWeek; ...
/** * @author Michael Hagen */ public class AcrylInternalFrameTitlePane extends BaseInternalFrameTitlePane { public AcrylInternalFrameTitlePane(JInternalFrame f) { super(f); } protected LayoutManager createLayout() { return new BaseTitlePaneLayout(); } protected int getHorSpacin...
#ifndef STRANGER_H #define STRANGER_H #include <string> using namespace std; class Stranger { private: bool payed = false; int itemNeeded = 0; int id_item = 0; string name = ""; string txt = ""; bool Is_visible; public: void set_true(); bool is_payed(); int get_num(); int get_id(); string get_stranger_name(...
<reponame>cassmarcussen/video-vigilance // Copyright 2019 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless req...
# include<bits/stdc++.h> using namespace std; # define l long long # define db double # define rep(i,a,b) for(l i=a;i<b;i++) # define vi vector<l> # define pb push_back # define mp make_pair # define ss second # define ff first # define pii pair<l,l> # define trvi(v,it) for(vi::iterator it=v.begin();it!=v.end();++it) ...
def gait_features_from_vertical_acceleration( timestamps, a_vert, contact_time_range=[50, 200], step_time_range=[200, 1000] ): log.debug( "[ Extracting gait features from the vertical acceleration of a motion sensor" ) from scipy.signal import find_peaks fc_peaks, _ = find_peaks(a_vert, prom...
Diverse multi‐organ histopathologic changes in a failed Fontan patient We report multi‐organ histopathological changes in a patient with protein‐losing enteropathy (PLE) over 12 years after Fontan operation. A 14‐year‐old boy with right isomerism heart and single ventricle had undergone Fontan procedure at 19 months o...
Ranking The Lord Of The Rings & Hobbit Movies by Deffinition Two Trilogies To Rule Them All Peter Jackson completed a phenomenal task when he put the Lord Of The Rings and The Hobbit to film. Grossing billions at the box office and receiving a mass of critical acclaim, it seems like everyone LOVES journeying side by ...
def _filter_hit(self, hit): return (hit.relative_score >= float(self.settings.relative_score) and hit.query_identity >= float(self.settings.query_identity) and hit.query_coverage >= float(self.settings.query_coverage) and hit.base_score >= float(self.settings.base_score))
<reponame>lejonmcgowan/JohnnyTracer2<gh_stars>0 // // Created by lejonmcgowan on 1/3/17. // #include "IMedium.h"
from .models import ImagerProfile from django.forms import ModelForm class ProfileEditForm(ModelForm): """Instantiate user profile edit forms.""" class Meta: model = ImagerProfile fields = [ 'bio', 'phone', 'location', 'website', 'fee...