content
stringlengths
10
4.9M
/** * Wrapper for the app.properties file. */ public class AppProperties { private static final Logger LOG = Log.getLog(); public static final String PROPERTIES_FILE = "app.properties"; private static final String KEY_FIREFOX_DRIVER = "firefox_driver"; private static final String KEY_CHROME_DRIVER = ...
<gh_stars>0 from __future__ import absolute_import import json import os import sys from dxlstreamingclient.channel import Channel, ChannelAuth root_dir = os.path.dirname(os.path.abspath(__file__)) sys.path.append(root_dir + "/../..") sys.path.append(root_dir + "/..") # Import common logging and configuration from c...
n,m=map(int,input().split()) s=input() l=list(map(str,input().split())) z=[0]*26 a=[] for i in range(len(l)): z[ord(l[i])-97]=1 for i in range(97,97+26): a.append(chr(i)) a=dict(zip(a,z)) count=0 sum=0 #print(a) for i in range(len(s)): if a[s[i]]==1: count+=1 else: if count>0: sum+=(count*(...
/* * When a new native is dynamically registered from C++, add a reference to the * generic native thunk for JIT->C++ calls via TNativeFn. */ void FlowJitProgram::RegisterNative(ByteCodeRunner *runner, unsigned id, NativeFunction * ) { while (runner->JitFuncs.size() <= id) runner->JitFuncs.push_back(in...
def Args(parser, version=base.ReleaseTrack.GA): group = parser.add_mutually_exclusive_group() flags.AddAsyncFlag(group) flags.AddDeploymentNameFlag(parser) flags.AddPropertiesFlag(parser) labels_util.AddCreateLabelsFlags(parser) group.add_argument( '--automatic-rollback-on-error', ...
<filename>util/cacheUtil.go package util import ( "time" cache "github.com/patrickmn/go-cache" ) var cacheInstanceMap map[string]cache.Cache = make(map[string]cache.Cache) func Set(bigKey string, smallKey string, value string, expire int) { var cacheInstance cache.Cache cacheInstance, ok := cacheInstanceMap[bi...
import os import binascii from datetime import datetime from django.conf import settings from django.contrib.auth.models import AbstractUser from django.db import models from django.dispatch import Signal from django.utils.timezone import utc from django.utils.translation import gettext_lazy as _ from .managers impor...
import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Scanner; import java.util.Set; import java.util.TreeMap; public class class1 { static int N = 100000; static Scanner in = new Scanner(System.in); static Map<Integer, Integer> mp = new Ha...
Building Community Trust: Lessons from an STD/HIV Peer Educator Program with African American Barbers and Beauticians Sexually transmitted diseases (STDs), HIV, and AIDS disproportionately affect the African American community. In 1999, the rates of gonorrhea and primary and secondary syphilis among African Americans ...
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // TCP sockets package net import ( "os"; "syscall"; ) func sockaddrToTCP(sa syscall.Sockaddr) Addr { switch sa := sa.(type) { case *syscall.SockaddrIne...
/** * Creates a simple mail message. date, from and subject are automatically set. * @param subject * @return */ public SimpleMailMessage createMessage(String subject) { SimpleMailMessage message = new SimpleMailMessage(); message.setFrom(configuration.getEmailFrom()); message.setSubject(subject); messa...
Eli Pariser. | Wikimedia Commons Once the web's fastest growing aggregator, Upworthy pivots This viral content site drew almost 50 million unique visitors last August. What happened next will surprise you. Upworthy, the website that made its name re-packaging heartfelt liberal content for maximum shareability on soci...
package com.adrenalinici.adrenaline.client.rmi; import com.adrenalinici.adrenaline.common.network.outbox.OutboxMessage; import com.adrenalinici.adrenaline.common.network.rmi.GameRmiClient; import java.rmi.RemoteException; import java.util.concurrent.BlockingQueue; public class GameRmiClientImpl implements GameRmiCli...
#ifndef DQM_L1TMonitor_L1TStage2Shower_h #define DQM_L1TMonitor_L1TStage2Shower_h #include "FWCore/Framework/interface/Event.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "DQMServices/Core/interface/DQMOneEDAnalyzer.h" #include "DQMServic...
#include "mainwindow.h" #include "ui_mainwindow.h" #include <QFileDialog> #include <QDebug> #include <QThread> #include <QClipboard> #include <QMimeData> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); QSettings settings("EgorCO", "Pixel Sorte...
/* * 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 Clinic; import static Clinic.Inventory.Itable; import java.awt.Color; import java.awt.Component; import java.awt.Dialog; impor...
Aug 19, 2017- Former Prime Minister Jhalanath Khanal has demanded immediate release of a Nepali youth, who was arrested in India while he was there for medical treatment of his mother. The UML leader called Nepali Ambassador to India Deep Kumar Upadhyay over the telephone on Friday and urged him to take initiative to...
def dictionaryFor(pos): pos = normalizePOS(pos) try: d = Dictionaries[pos] except KeyError: raise RuntimeError, "The " + `pos` + " dictionary has not been created" return d
/* This method is the splashScreen method. It displays an animation of a finger moving down to press a button. It also creates the highScores file and designs the console. Variable Dictionary Name Type Description/Purpose output PrintWriter variable used to write to the fi...
#include <iostream> #include <cstdio> #include <algorithm> #include <cmath> using namespace std; int main(int argc, char** argv) { int n, l[100001],r[100001],sumL=0,sumR=0,mx=0,res=0; cin>>n; for(int i=0;i<n;++i){ cin>>l[i]>>r[i]; sumL+=l[i]; sumR+=r[i]; } mx=abs(sumL-sumR); for(int i=0;i...
Israeli aircraft struck a terror target south of Beirut, hours after terrorists fired four rockets at northern Israel. Israeli aircraft struck a terror target south of Beirut, Lebanon, on Thursday night, said the IDF Spokesperson’s Unit. According to the statement, a direct hit was identified and all aircraft returne...
def Get(self, timeout=None): if timeout is None: timeout = 0xFFFF try: return self.result.get(timeout) except _multiprocessing.TimeoutError: raise TimeoutExpiredError("The timeout expired before the thread completed")
/** * Utility functions for parsing command line arguments. * */ public class CommandLineUtilities { /*** * The Regular Expression pattern for JSON arrays. */ private static final Pattern JSON_ARRAY_PATTERN = Pattern.compile( "\\s*\\[\\s*((\\\".*\\\"\\s*,\\s*)+" + "(\\\".*\\\")|(\...
/** * <h1>Dynamic Method Dispatch</h1> * Demonstration of Dynamic Method Dispatch * * @author Mani Kumaer Reddy K 13B81A0579 * @since 210215 */ class A{ void display(){ System.out.println("in A"); } }
/* * (C) 2007-2010 Alibaba Group Holding Limited. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * * Version: $Id: test_block_chunk.cpp 5 2010-10-21 07:44:56Z * * Author...
async def create_post_request(self, method: str, params: Dict = None): if params is None: params = {} headers = {"Content-Type": "application/json"} payload = { "method": method, "params": [params], "id": next(self.idgen), "version": "1...
from flask import Flask, render_template, request, redirect from sqlite3connection import connectToSQLite3 app = Flask(__name__) dbname = '/home/balaji/my_db.db' @app.route("/") def index(): conn = connectToSQLite3(dbname) all_animals = conn.query_db('SELECT * FROM animals ORDER BY common_name') all_pets ...
use std::collections::HashMap; fn exponent(exp: i32) -> i32 { let mut result = 1; for _ in 0..exp { result *= 10; } result } fn add_strings(nums1: &str, nums2: &str, dict: &HashMap<char, i32>) -> i32 { let length1 = nums1.len() as i32; let length2 = nums2.len() as i32; let mut sum ...
// SPDX-License-Identifier: GPL-2.0 /* * Driver for Goodix touchscreens that use the i2c-hid protocol. * * Copyright 2020 Google LLC */ #include <linux/delay.h> #include <linux/device.h> #include <linux/gpio/consumer.h> #include <linux/i2c.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/of.h...
package com.github.mikesafonov.smpp.server; import com.cloudhopper.smpp.SmppServerSession; import lombok.EqualsAndHashCode; import lombok.Getter; import java.util.ArrayList; import java.util.List; /** * Holder for sessions with RECEIVER and TRANSCEIVER types * * @author <NAME> */ @EqualsAndHashCode public class ...
<reponame>collection-news/collection-news import React, { useState } from 'react' import { Divider, IconButton, Popover, PopoverContent, PopoverTrigger } from '@chakra-ui/react' import Link from 'next/link' import Image from 'next/image' import collectionNewsLogoWhite from '../assets/collectionNewsLogoWhite.svg' import...
CXCL10 and its related key genes as potential biomarkers for psoriasis Abstract Although several studies have attempted to investigate the etiology of and mechanism underlying psoriasis, the precise molecular mechanism remains unclear. Our study aimed to explore the molecular mechanism underlying psoriasis based on bi...
import test from "ava"; import {ContainerFactory, Make} from "../container"; import {MessageBus} from "./message-bus"; import {Message} from "./message"; import {Packet} from "./packet"; import {IMessageService} from "./types"; import {ToString} from "../utils"; import {AbstractMessageService} from "./message-service";...
// Reads entry from the FAT corresponding to cluster. // Negative numbers are errors int fat_get_table_value(uint32_t cluster, uint32_t *tv) { uint8_t buffer[fat_pinfo.bytes_per_sector]; uint32_t idx = cluster * 4; uint32_t sec = fat_pinfo.fat_begin_addr + (idx / fat_pinfo.bytes_per_sector); uint32_t ent...
// Actually calls ffprobe on a file and returns a ProbeInfo object func Probe(path string) (info *ProbeInfo, err error) { if len(path) == 0 { return nil, fmt.Errorf("Probe() path cannot be empty") } input := NewInput( path, NewParamSet( NewParam("v", "quiet"), NewParam("print_format", "json"), NewPara...
<reponame>djordjeviclazar/redesigned-umbrella package com.example.meetnature.authentication.data.dtos; public class LoginUserDTO { public String email; public String password; public String username; }
<reponame>uploadexpress/app package models import ( "time" "github.com/globalsign/mgo/bson" "github.com/uploadexpress/app/constants" ) type Upload struct { Id string `json:"id" bson:"_id,omitempty"` Name string `json:"name" bson:"name"` Files []*File `json:"files" bson:"file...
def build_anchor_labeler(cfg, anchor_generator): anchor_type = ANCHORS['AnchorLabeler'] return anchor_type(anchors=anchor_generator, num_classes=cfg.INPUT.NUM_CLASSES, match_threshold=cfg.MODEL.RPN.POSITIVE_OVERLAP, unmatched_threshold=cfg.MOD...
<reponame>levush/hipl /* * Copyright (c) 2010-2012 Aalto University and RWTH Aachen University. * * 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 withou...
import os.path, re, sys, subprocess def makedirs(d) : if os.path.exists(d) : return os.makedirs(d) def parent(k,d) : if k == 0 : return d return parent(k-1,os.path.dirname(d)) this_script_dir = parent(1,os.path.realpath(__file__)) testroot = parent(2,os.path.realpath(__file__)) benchroot = os.path.jo...
/** * Consumer which runs at the end of a replication, ensures removal from the * replicating set * <p> * eventually switch to a better interface for notifications * so we can have multiple outputs. i.e. email, slack, db, etc */ private class Completer implements BiFunction<ReplicationStat...
Aramid Nanofiber Membranes for Energy Harvesting from Proton Gradients Harvesting osmotic energy from industrial wastewater is an often‐overlooked source of electricity that can be used as a part of the comprehensive distributed energy systems. However, this concept requires, a new generation of inexpensive ion‐select...
/** * Returns the {@link IVarDef input variable} representing the values for an object instance. */ @SuppressWarnings("rawtypes") private IVarDef objectValueVar( String instanceVarTag, Schema<?> instanceSchema, boolean instanceItem) { IVarDef valueVar; Set<?> enums = nullableEnums( asOrderedSet( ins...
/** * Check OpenCL init with device selection */ string cl_get_device_type_setup() { switch(query_device_type) { case CL_DEVICE_TYPE_CPU: return "CPU"; break; case CL_DEVICE_TYPE_GPU: return "GPU"; break; case CL_DEVICE_TYPE_ACCELERATOR: re...
When Apple enters any kind of business, it tends to turn heads. But when it comes to Apple Music, the company’s new music streaming service, it’s getting a different kind of attention—the federal trust-busting kind. Technology is filled with all kinds of rumors and speculation — real and fabricated. BitStream collects...
/* * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. * * Neo4j 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 * (at your...
N,M = (int(x) for x in input().split()) a = set(int(input()) for _ in range(M)) dp = [0] * N broke = False if N == 1: print('1') broke = True elif 1 in a and 2 not in a: dp[1] = 1 elif 1 not in a and 2 in a: dp[0] = 1 else: dp[0] = 1 dp[1] = 2 if 1 in a and 2 in a: print('0') broke = Tru...
// NewEncoding returns a new Encoding defined by the given alphabet, // which must be a 58-byte string. func NewEncoding(encoder string, options ...opts) *Encoding { if len(encoder) != 58 { panic("encoding alphabet is not 58-bytes long") } e := new(Encoding) e.encode = encoder e.checkFunc = func(b []byte) []byte...
#ifndef MAKEFILESEMANTISDC_H_WUAST #define MAKEFILESEMANTISDC_H_WUAST #include "parser.hpp" #include <string> #include <vector> #include <stdexcept> #include <memory> #include <map> #include <set> #include <iostream> class VString : public std::string { public: VString() : std::string() {} VStri...
Bi-directional resetting scheme of the magamp post-regulator A simple bi-directional magamp control scheme is proposed. The scheme effectively reduces the influence of the time delay, or dead time of magamp core on the output voltage regulation at extreme load conditions. The scheme is very useful in the converters wi...
/* * Copyright 1993-2009 NVIDIA Corporation. All rights reserved. * * NVIDIA Corporation and its licensors retain all intellectual property and * proprietary rights in and to this software and related documentation and * any modifications thereto. Any use, reproduction, disclosure, or distribution * of this softwa...
from website.utils import is_committee from .models import Fresher, Helper def is_fresher(user): return Fresher.objects.filter(pk=user.username).exists() def is_helper(user): return Helper.objects.filter(pk=user.username).exists() def jumpstart_check(user): return is_committee(user) or is_fresher(user)...
/** * Double write from 1.x to 2 task. * * @author xiweng.yy */ public class DoubleWriteInstanceChangeToV2Task extends AbstractExecuteTask { private final String namespace; private final String serviceName; private final Instance instance; private final boolean register; ...
package com.hkmvend.sdk.client; import android.app.Application; import android.os.AsyncTask; import com.hkmvend.sdk.model.gdata.ApiWrapGTable; import com.hkmvend.sdk.model.sheetsu.ResponseSheetsu; import com.hkmvend.sdk.model.sheetsu.apiEntryRow; import com.hkmvend.sdk.storage.Bill.BillContainer; import com.hkmvend.s...
/* * 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 vision; import javax.swing.JOptionPane; import vision.funcionario.MenuFuncionario; import vision.voluntario.MenuVoluntario; im...
/** * C4Exercise1: * (1)Create a class containing an uninitialized String reference. Demonstrate * that this reference is initialized by Java to null. */ public class C4Exercise1 { int s; public static void main(String[] args) { C4Exercise1 foo = new C4Exercise1(); System.out.println(foo.s); } }
/** * Created by Noah Huppert on 1/17/2015. */ public class Function extends Token { private ArrayList<Variable> arguments; public Function(String id, TokenPosition tokenPosition, ArrayList<Variable> arguments){ super(TokenType.FUNCTION_CALL, id, tokenPosition); if(arguments != nul...
def _get_tag_arrays(dom_node): child_dict = {} for child in dom_node: if child.tag not in child_dict: child_dict[child.tag] = [] child_dict[child.tag].append(child) return child_dict
<gh_stars>1-10 from ..common import * from .. import basetools __all__ = [ 'judge_installed_library', # 判断是否注册应用程序 ] def judge_installed_library(name = 'simpleui', type=retools.PATT_INSTALLED_APPS)->bool: """获取已经安装的第三方库(从 INSTALL_APP 中获取判断)""" register_obj = basetools.get_list_patt_content(type, basetools...
<filename>server/src/utils/streams.ts import { Transform } from 'stream' export const jsonStream = () => { let first = true return new Transform({ flush: cb => cb(null, ']\n'), objectMode: true, transform: (chunk, _, cb) => { if (first) { first = false return cb(null, `[${JSON.st...
Tar Sands Toxins with Keystone XL Link Underestimated One of the biggest concerns about producing crude oil from the Alberta tar sands is its impact on climate change, which has been a major part of the debate about whether the Keystone XL Pipeline should be built. A new University of Toronto-Scarborough study publis...
In exchange, Iran was to receive arms from the Reagan Administration. Mr. Bani-Sadr does not have firsthand knowledge of the arrangement, he said, because the mullahs who consummated the deal were his political rivals and were simultaneously plotting to remove him from office. Reagan campaign officials have strenuousl...
<reponame>sannorozco/RoboFont-2<filename>Extensions/Curve EQ.roboFontExt/lib/MojoDrawingToolsPen.py from fontTools.pens.basePen import BasePen from fontTools.pens.transformPen import TransformPen from mojo.drawingTools import newPath, moveTo, lineTo, curveTo, closePath, drawPath class MojoDrawingToolsPen(BasePen): ...
Art Collections of the Russian State Library The former Lenin State Library in Moscow, now the Russian State Library, holds extensive collections of graphic and photographic materials, Russian and foreign, dating from the 15th century to the present day. These include a collection of some 434,000 posters, of which fil...
New report finds only 129 of 4,069 largest companies listed on the world’s stock exchanges are disclosing the most basic sustainability information Only 128 of the 4,609 largest companies listed on the world’s stock exchanges disclose the most basic information on how they meet their responsibilities to society, accor...
/** Perform a table creation operation. *@param tableName is the name of the table to create. *@param columnMap is the map describing the columns and types. NOTE that these are abstract * types, which will be mapped to the proper types for the actual database inside this * layer. *@param invalidateKeys are t...
Relevance of claudication pain distance in patients with peripheral arterial occlusive disease. BACKGROUND Determination of both the pain-free and the maximum walking distances is part of a routine program in the angiological examination of patients with PAOD. It is however as yet not clear which of these two paramete...
package routes import ( "GopherBlog/constant" "GopherBlog/controller" "GopherBlog/middleware" "GopherBlog/utils" "github.com/gin-contrib/multitemplate" "github.com/gin-gonic/gin" "net/http" ) // createMyRender 自定义渲染器 func createMyRender() multitemplate.Renderer { p := multitemplate.NewRenderer() // 第一个参数用于设置...
#pragma once #include <SDL2/SDL.h> class FallingPoint { private: SDL_Renderer* renderer = nullptr; SDL_Rect box; int startY; public: FallingPoint( SDL_Renderer* renderer, int x, int y, int size ); ~FallingPoint() {} void render(); void update(); };
Crystal chemistry of synthetic Ca2Al3Si3O12OH–Sr2Al3Si3O12OH solid-solution series of zoisite and clinozoisite Abstract Coexisting solid-solution series of synthetic zoisite-(Sr) and clinozoisite-(Sr) were synthesized in a 1 M (Ca,Sr)Cl2 solution at 2.0 GPa, 600 °C for 6 days in a piston cylinder press. Solid solution...
<filename>hc/http.go package hc import ( "bytes" "crypto/tls" "fmt" "github.com/guanaitong/crab/json" "io" "mime/multipart" "net" "net/http" u "net/url" "os" "strings" "time" ) var tr = &http.Transport{ Proxy: http.ProxyFromEnvironment, TLSClientConfig: &tls.Config{InsecureSkipVerify: ...
public class LeetCode074 { public boolean searchMatrix(int[][] matrix, int target) { if(matrix == null || matrix.length == 0 || matrix[0].length ==0) return false; int[] nums = helper(0,matrix.length-1,matrix,target); if(nums == null) return false; return helper2(0,nums.length-1,num...
<reponame>tmarrec/cowboy-engine #pragma once #include "../../utils.h" #include <glad/gl.h> #include <GLFW/glfw3.h> #include <memory> struct glfwDeleter { void operator()(GLFWwindow* window); }; class Window { public: Window(); bool windowShouldClose() const; void pollEvents(); void swapBuffers(...
// Package recovery provides a number of grip-integrated panic // handling tools for capturing and responding to panics using grip // loggers. // // These handlers are very useful for capturing panic messages that // might otherwise be lost, as well as providing implementations for // several established panic handling...
by Brian Shilhavy Health Impact News In 2013, nursing student Nichole Bruff was dismissed from Baker College in Michigan for allegedly asking questions about the way her instructors were teaching nursing students how to coerce parents into receiving vaccines for their children, even if the children or parents did not...
package cockroach import ( "context" "github.com/interuss/dss/pkg/rid/repos" "github.com/interuss/stacktrace" ) type GarbageCollector struct { repos repos.Repository writer string } func NewGarbageCollector(repos repos.Repository, writer string) *GarbageCollector { return &GarbageCollector{ repos: repos, ...
// RevokeCertificatePair revokes a certificate pair from the ECA. Not yet implemented. // func (ecap *ECAP) RevokeCertificatePair(context.Context, *pb.ECertRevokeReq) (*pb.CAStatus, error) { ecapLogger.Debug("gRPC ECAP:RevokeCertificate") return nil, errors.New("ECAP:RevokeCertificate method not (yet) implemented") ...
<reponame>drewatk/electron-react-boilerplate-typescript describe('description', () => { it('should have description', () => { expect(1 + 2).toBe(3); const foo: string = 4; }); });
/// Computes the dominance frontiers for all vertices in the graph /// /// # Warning /// Unsure of correctness of this implementation pub fn compute_dominance_frontiers( &self, start_index: usize, ) -> Result<HashMap<usize, HashSet<usize>>> { let mut df: HashMap<usize, HashSet<usize>> = Hash...
/** * @author Mikolaj Izdebski */ @ApplicationScoped public class ModuleDAO { @Inject private EntityManager em; public Module getByName(String name) { return em.find(Module.class, name); } public List<Module> getAll() { CriteriaBuilder cb = em.getCriteriaBuilder(); Crite...
<filename>src/index.ts import { useState, useEffect } from "react"; import debounce from "lodash.debounce"; interface Breakpoints { xs?: 0; sm: number; md?: number; lg: number; xl?: number; } const bootstrapBreakpoints: Breakpoints = { xs: 0, sm: 576, md: 768, lg: 992, xl: 1200, }; interface Brea...
package sql2struct import ( "os" "strings" "testing" "gopkg.in/go-playground/assert.v1" ) var sql = ` CREATE TABLE rg_user ( id SERIAL PRIMARY KEY NOT NULL, identity_id VARCHAR(18) UNIQUE NOT NULL, phone VARCHAR(12) UNIQUE NOT NULL, email VARCHAR(50) NOT NULL, name VARCHAR(20) NOT NULL, p...
It’s the campaign scenario that keeps partisan operatives and lawyers awake at night: Donald Trump and Hillary Clinton end Election Day deadlocked with key states in a recount, and a short-handed Supreme Court can't resolve the matter because the eight justices split down the middle. In such a case, a lower-court ruli...
<reponame>thomasboyt/Vim import * as vscode from 'vscode'; import * as _ from 'lodash'; import { ModeName } from './mode'; import { ModeHandler, VimState } from './modeHandler'; interface IKeybinding { before: string[]; after : string[]; } class Remapper { private _mostRecentKeys: string[] = []; private _re...
/** * Copyright 2016 <NAME> * * Licensed under the BSD-3 License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://opensource.org/licenses/BSD-3-Clause * * Unless required by applicable law or agreed to in writing, software ...
Electronic-nose for plant health monitoring in a closed environment system With the net zero carbon emissions target by 2050, in the agricultural sector, it is essential to employ technologies to reduce the consumption of energy and resources while enhancing the yield of crops. Learning about how measurable signals ca...
dp = [1] + [0]*300 for c in range(1,18): for i in range(301-c**2): dp[i+c**2] += dp[i] while 1: n = input() if n == 0: break print dp[n]
/** * A utility class for iterating through a posting list of a given term and * retrieving the payload of the first occurrence in every document. Comes with * its own working space (buffer). * * @lucene.experimental */ public class PayloadIterator { protected byte[] buffer; protected int payloadLength; ...
// TestCollectionMinReplFactDeprecatedClusterInv tests if minReplicationFactor is forwarded to ClusterInfo func TestCollectionMinReplFactDeprecatedClusterInv(t *testing.T) { c := createClientFromEnv(t, true) version := skipBelowVersion(c, "3.5", t) skipNoCluster(c, t) db := ensureDatabase(nil, c, "collection_min_re...
import ServerNode from "../ServerNode"; import {saveAs} from 'file-saver'; import NodeParameter from "../../core/NodeParameter"; export default class DownloadCSV extends ServerNode { save = saveAs constructor(options = {}) { super({ // Defaults name: 'DownloadCSV', summary: 'Download features as CSV', ...
Now playing: Watch this: 900 million Android devices harbor security flaws Four newly-discovered vulnerabilities found in Android phones and tablets that ship with a Qualcomm chip could allow an attacker to take complete control of an affected device. The set of vulnerabilities, dubbed "Quadrooter," affects over 900 ...
<reponame>olanaso/sunat-jaxb package io.github.carlosthe19916.beans; import io.github.carlosthe19916.beans.ubl.ubl20.Invoice20Bean; import org.junit.Assert; import org.junit.Test; import java.math.BigDecimal; import java.util.Calendar; public class InvoiceBeanBuilderTest { // @Test // public void testBuilder(...
def OnRanButton(self, evt): childRandomPull = randint(1,(len(childIDList)-1)) ranChild = childIDList[childRandomPull] dlg = wx.MessageDialog(self, ranChild,'Observe This Child:',wx.OK ) dlg.ShowModal() dlg.Destroy()
CM Punk may not have had the performance of a lifetime at UFC 203, but he still got paid like a star. The former WWE superstar cashed a flat $500,000 purse for his mixed martial arts debut, which he lost via first-round rear-naked choke to Mickey Gall at UFC 203, according to figures released by the Ohio Athletic Commi...
SHRIKANT GANPAT Shirsat, an independent candidate who contested the Brihanmumbai Municipal Corporation (BMC) polls, made a sensational claim after the results were declared on February 23. Alleging tampering of electronic voting machines (EVMs), the 34-year-old claimed that he did not get a single vote from his own pol...
# -*- coding: utf-8 -*- from django.contrib.auth.mixins import LoginRequiredMixin from django.core.urlresolvers import reverse from django.db.models import Q from django.forms.models import ModelForm from django.http.response import HttpResponseRedirect from django.utils.timezone import now from django.views.generic im...
def delete(data_product): if exists(data_product): filepath = _get_replica_filepath(data_product) try: experiment_data_storage.delete(filepath) except Exception as e: logger.error("Unable to delete file {} for data product uri {}" .format(file...
<gh_stars>1000+ import {PrimaryGeneratedColumn} from "../../../../src/decorator/columns/PrimaryGeneratedColumn"; import {Column, Entity, Generated } from "../../../../src"; @Entity() export class ReallyReallyVeryVeryVeryLongTableName { @PrimaryGeneratedColumn() // typeORM requires a pkey PrimaryGeneratedColumn...
<filename>src/main/java/com/microsoft/store/partnercenter/applicationconsents/ICustomerApplicationConsentCollection.java // ----------------------------------------------------------------------- // <copyright file="ICustomerApplicationConsentCollection.java" company="Microsoft"> // Copyright (c) Microsoft Corpora...
def file_path_with_directory(request, tmp_path): yield FilePathWithDirectoryFactory.create(tmp_path, request.param)