content
stringlengths
10
4.9M
<filename>mayan/apps/converter/templatetags/converter_tags.py from django.template import Library from django.urls import reverse from ..classes import AppImageErrorImage from ..exceptions import AppImageError register = Library() @register.simple_tag(takes_context=True) def converter_get_object_image_data( con...
/** This class is used to test that event lease renewal works as expected for * N (currently N = 5) successive lease renewal attempts. * * @see org.apache.river.qa.harness.TestEnvironment * @see org.apache.river.test.spec.lookupservice.QATestRegistrar * @see org.apache.river.test.spec.lookupservice.QATestUtils...
<reponame>awtsui/Monumental package com.example.monument.ui.login; import com.example.monument.ui.login.Monument; import java.util.*; public class User { //Instance Variables private String username; private String password; private ArrayList<Monument> monuments = new ArrayList<Monument>(); priva...
<filename>src/main/java/ovh/adiantek/hatari/mods/AutoWalk.java package ovh.adiantek.hatari.mods; import net.minecraft.client.settings.KeyBinding; import net.minecraft.entity.player.EntityPlayer; import net.minecraftforge.client.event.RenderGameOverlayEvent; import net.minecraftforge.common.MinecraftForge; import...
/* Parse RFC 2822 group * Accepts: address list to write to * pointer to tail of address list * pointer to input string * default host name * group nesting depth */ ADDRESS *rfc822_parse_group (ADDRESS **lst,ADDRESS *last,char **string, char *defaulthost,unsigned long depth) { char tmp[M...
/** * Most basic test to check that the right package is compiled */ public class SimpleJdbc42Test { private Connection _conn; @Before public void setUp() throws Exception { _conn = TestUtil.openDB(); } @After public void tearDown() throws Exception { TestUtil.closeD...
package net.minecraft.server; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableSet; import com.mojang.serialization.Codec; import com.mojang.serialization.codecs.RecordCodecBuilder; import java.util.List; import java.util.Set; import java.util.stream.Collectors; public class W...
/** * Salesforce DTO for SObject Name */ @XStreamAlias("Name") public class Name extends AbstractSObjectBase { // LastName private String LastName; @JsonProperty("LastName") public String getLastName() { return this.LastName; } @JsonProperty("LastName") public void setLastName(S...
/** * Helper class to animate transitions into ViewPager with GestureView-driven pages. * <p/> * It works best with {@link RecyclePagerAdapter} as ViewPager adapter. */ public class IntoViewPagerListener<ID> implements ViewsCoordinator.OnRequestViewListener<ID> { private final ViewPager mViewPager; private...
<reponame>hartwigmedical/pipeline2 package com.hartwig.pipeline.tertiary.linx; import java.util.Optional; import com.hartwig.pipeline.StageOutput; import com.hartwig.pipeline.storage.GoogleStorageLocation; import org.immutables.value.Value; @Value.Immutable public interface LinxSomaticOutput extends StageOutput { ...
Guido van Rossum is the creator and benevolent dictator for life (a.k.a. BDFL) of the Python programming language. Here he reflects on his path and shares what he’s been working on since joining Dropbox. Read on for this and a hint at what’s next for Dropbox, for Python, and for the BDFL himself. You were an electroni...
/** * Registers login and signup button callbacks. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_login); ButterKnife.inject(this); Intent i = getIntent(); mustNullify = i.getBoolea...
/** * BPSProfileDTO represent a BPS server and user credentilas. */ public class BPSProfile { private String profileName; private String managerHostURL; private String workerHostURL; private String username; private char[] password; public String getProfileName() { return profileName;...
import datetime import threading import logging import time import queue from django.core.management import call_command from django.core.management.base import BaseCommand, CommandError from django.utils import timezone from teslarent.models import Rental, VehicleData from teslarent.teslaapi import teslaapi from tes...
Self-propelled drop movement by manipulation of nanoscale adsorbates through molecular self-assembly We examined reactive wetting and transport phenomena of droplets on chemically patterned surfaces. We employed decahydronaphthalene (DHN) droplets that contained various amounts of an n-alkylamine to reactively wet and...
Story here. Excerpt: 'NEW YORK (CBS/AP) Prosecutors in New York say a devoutly religious Muslim woman, Rabia Sarwar, slashed her husband's neck after he introduced her to booze, pork, and miniskirts. Sarwar's defense lawyer says his client was "emotionally abused" and forced to violate her religious beliefs. Sarwar ...
/* tslint:disable */ function generateConfig(): any { const windowObj: Window = window; if (!window.hasOwnProperty('__NESTED_CONFIG__')) { window.__NESTED_CONFIG__ = { APP_CLIENT_ID: 'WEBAPP_DEVELOPMENT', APP_VERSION: '4.4.4', DOMAIN: '_DOMAIN_', SIGN_OUT_TARGET: 'https://nested.me', ...
def notnull(self, val, msg=None): self.assertIsNotNone(val, msg)
<reponame>jasonchoimtt/OWCRemote package hk.multitude.owcremote.widgets; import android.annotation.TargetApi; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Path; import android.graphics.Region; import android.graphi...
Killers of the Flower Moon: The Osage Murders and the Birth of the FBI, by David Grann, Doubleday, 352 pages, $28.95 For more than a decade, members of the Osage Nation in Oklahoma were quietly, systematically slaughtered for their oil money. In Killers of the Flower Moon, journalist David Grann describes how Congres...
Bitcoin’s value is at an all-time high again. Following the hype peak and crash in 2011, many seemed to have thought it was just another dotcom fluke. But bitcoin was much more than that, and it has returned with a vengeance – its market cap is now twice what it was in the 2011 peak, and it is nowhere near its potentia...
<filename>src/use-select.ts import { ControllerStateAndHelpers, UseMultipleSelectionReturnValue } from 'downshift' import { createContext } from '@chakra-ui/react-utils' import { RefObject } from 'react' type SelectContext<Item = any> = ControllerStateAndHelpers<Item> & Partial<UseMultipleSelectionReturnValue<It...
/*------------------------------------------------------------------------------ * CppToolbox: StringHelper * https://github.com/pirminschmid/CppToolbox * * Copyright (c) 2017, <NAME>, MIT license *----------------------------------------------------------------------------*/ #include "StringHelper.h" #include <...
//Normal that tests fail because crawl time is not the same @Test void crawlerStatisticsCanBeSavedAndReloadedProperly() { String directory = TEST_FILE; String fileName = "crawlerStats.json"; RoundRobinBlockingQueue queue = RoundRobinBlockingQueue.create(TEST_FILE +"testQueue"); if(!CrawlerStatistics.initialize...
// Copyright 2018 Osspial // // 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 writ...
import java.util.*; import java.io.*; public class almoscon{ public static void main(String args[]) throws IOException{ BufferedReader lector = new BufferedReader(new InputStreamReader(System.in)); int tmp = Integer.parseInt(lector.readLine()); String t[] = lector.readLine().split(" "); int max = 0; int b = -1; Vector<...
<filename>src/festival/festival.service.ts import { BadRequestException, Injectable, InternalServerErrorException, NotFoundException } from '@nestjs/common'; import { CreateFestivalDto } from './dto/create-festival.dto'; import { UpdateFestivalDto } from './dto/update-festival.dto'; import { InjectRepository } from '@n...
Phenomenal Properties of the Domain Ensembles in Proteins Previously, we have shown that molecules as ensembles of atomic nuclei, secondary and higher structures in polymers (domain concentrations) and clusters in liquids (long-range order, LRO) are formed under the influence of local gravitational noises (GN) that th...
def listener(environ, start_response): global response global response_json global solution global solution_json global revision global revision_json authok_url = 'https://{}:{}/authok{}'.format(proxy_host,proxy_port, environ.get('HTTP_X_ORIGINAL_URI')) log('request_uri: {0} '.form...
import { useToggleState } from "hooks/use-toggle-state"; import { useApi, useLoggedIn } from "hooks"; import { useMetaMask } from "metamask-react"; import Link from "next/link"; import { useCallback, useMemo, useState } from "react"; import { minter, chains } from "@livepeer/video-nft"; import Guides from "components/...
// add a node into stack, add it at the top void addNode( char name[], char surname [], char creation [], int age ){ struct person * Temp = ( struct person * )malloc( sizeof( struct person ) ); strcpy( Temp->name, name ) ; strcpy( Temp->surname, surname ) ; strcpy( Temp->musical_Work, creation ) ; Temp->age = age ...
def find_best_dimensions(dataframe: pd.DataFrame, threshold: float) -> tuple: dimensions = 0 info_preserved = 0 while info_preserved < threshold: dimensions += 1 logging.debug(f" - Reducing our model to {dimensions} dimensions") pca = PCA(n_components=dimensions) components ...
// CreateIntentForCollection builds an intent for the given database and collection name // along with a path to a .bson collection file. It searches the file's parent directory // for a matching metadata file. // // This method is not called by CreateIntentsForDB, // it is only used in the case where --db and --collec...
def _top_symbols(input): state, mod, consume = input if consume: for t in mod.value: if type(t) is ast.Variable: state.symtree.register_symbol(t.name, t.reference) elif type(t) is ast.Function: state.symtree.register_symbol(t.name, t.reference) ...
from django.contrib import admin from cart import models @admin.register(models.Cart) class CartAdmin(admin.ModelAdmin): list_display = ['cart_id', 'get_product_total', 'paid_for', 'created_on'] search_fields = ['product__name'] @admin.register(models.CustomerOrder) class CustomerOrderAdmin(admin.ModelAdmin)...
Pharmacokinetics of human activated protein C. 2nd communication: tissue distribution study of a lyophilized purified human activated protein C after single or repeated intravenous administration in male mice and placental transfer and milk passage study after intravenous administration in pregnant Tissue distributio...
def roles_remove_user_from_role(self, role_name, username, **kwargs): return self.call_api_post( "roles.removeUserFromRole", roleName=role_name, username=username, kwargs=kwargs, )
/** * Set DRAM timings based on engine clock and memory clock. */ int atomctrl_set_engine_dram_timings_rv770( struct pp_hwmgr *hwmgr, uint32_t engine_clock, uint32_t memory_clock) { SET_ENGINE_CLOCK_PS_ALLOCATION engine_clock_parameters; engine_clock_parameters.ulTargetEngineClock = cpu_to_le32((engine_cloc...
package com.forest.project.model; import javax.persistence.*; @Table(name = "v_depart") public class VDepart { @Id @Column(name = "ID") @GeneratedValue(strategy = GenerationType.IDENTITY) private String id; private String departname; private String parentdepartid; @Column(name = "org_co...
/** * This trust manager accepts all certificates as valid. */ @SuppressFBWarnings(value = "WEAK_TRUST_MANAGER", justification = "Intended behavior") private static class TrustAllX509TrustManager implements X509TrustManager { public X509Certificate[] getAcceptedIssuers() { return null;...
n = int(input()) if n == 1: print(int(input())) else: queue = {} last_num = list(map(int, input().split())) i = 0 for num in last_num: i += 1 queue[num] = i res = min(queue.values()) print(last_num[res - 1])
/** * An extension of a common ListPreference where it sets the duration values to human readable strings. * * The values in the entry values array will be interpreted as seconds. If the value of a specific position * is less than or equals to zero, its original entry title will be used. * * If the entry values a...
Plot Edit See also: List of Mobile Suit Gundam Wing characters In the distant future, Mankind has colonized space, with clusters of space colonies at each of the five Earth-Moon Lagrange points. Down on the Earth, the nations have come together to form the United Earth Sphere Alliance. This Alliance oppresses the colo...
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
/******************************************************************************* * This function initializes the soc from the BL31 module ******************************************************************************/ void soc_init(void) { uint8_t num_clusters, cores_per_cluster; get_cluster_info(soc_list, ARRAY_SI...
/*! \file A more complex example of writing a netCDF file. This is an example program which writes some 4D pressure and temperatures. It is intended to illustrate the use of the netCDF C API. The companion program pres_temp_4D_rd.c shows how to read the netCDF data file created by this program. Copyright 2006 Univers...
<reponame>alex-petkevich/gator-client import { NgModule } from '@angular/core'; import { RouterModule } from '@angular/router'; import { GatorSharedModule } from 'app/shared/shared.module'; import { PropertiesComponent } from './properties.component'; import { PropertiesDetailComponent } from './properties-detail.comp...
/** * Parser for multipart MIME message. */ final class MimeParser { // Forked from https://github.com/oracle/helidon/blob/a9363a3d226a3154e2fb99abe230239758504436/media/multipart/src/main/java/io/helidon/media/multipart/MimeParser.java private static final Logger logger = LoggerFactory.getLogger(MimeParser...
#include "TH1.h" #include "TH2.h" #include "TF1.h" #include "TGraphErrors.h" #include "TLegend.h" #include "TCanvas.h" #include "TSystem.h" #include "TFile.h" #include <vector> #include <iostream> void fit2DProj(TString name, TString path, int minEntries, int rebin, int fitType); Double_t gaussian(Double_t *x, Double...
<filename>testdata/gcc-6.3.0/gcc/testsuite/gcc.c-torture/compile/pr55350.c void foo (__INTPTR_TYPE__ x, __INTPTR_TYPE__ y) { int i; void **a = (void *) (8UL * (x / 8UL)); for (i = 0; i < x; i++) a[i] = (void *) y; }
<gh_stars>0 #!/usr/bin/env python3 # -*- coding: utf-8 -*- import itertools import json import re from contextlib import suppress from datetime import datetime, timezone from dataclasses import dataclass from enum import Enum from pefile import ( DEBUG_TYPE, DIRECTORY_ENTRY, image_characteristics, MAC...
/* calculate the max_bound of current node. */ func max_bound(t int, curr_weight int, curr_value float64, capa int, Items ItemsInterface) (upper float64) { n := Items.Len() left := capa - curr_weight upper = float64(curr_value) for t < n && Items.Weight(t) <= left { left -= Items.Weight(t) upper += float64(Ite...
NEW YORK (Reuters) - Pop star Kesha’s former music producer on Monday said allegations that he had raped the singer were lies, and hit back at a “trial by Twitter” backed by some of music’s biggest names over Kesha’s bid to extricate herself from a recording contract. Recording artists Kesha arrives to the premiere of...
<gh_stars>100-1000 /*############################################################################## HPCC SYSTEMS software Copyright (C) 2012 HPCC 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 ...
/** * This class interacts with Spring and Hibernate to save and * retrieve User objects. * * @author JMW */ @Repository(value = "reservationDao") public class ReservationDaoHibernate implements ReservationDao { HibernateTemplate hibernateTemplate; Log logger = LogFactory.getLog(ReservationDaoHiber...
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2021 CERN. # # CDS-ILS is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """CDS-ILS migrator.""" import json import click from cds_ils.migrator.api import impor...
def pivot(self) -> pd.DataFrame: out = [] for sensor in self.sensors: for label, value in getattr(self, sensor).items(): df = value.pivot() cols = ([sensor, label, *i] for i in df.columns) df.columns = pd.MultiIndex.from_tuples(cols) ...
// RAR parses the rar format func RAR(c *parse.Checker) (*parse.ParsedLayout, error) { if !isRAR(c.Header) { return nil, nil } return parseRAR(c.File, c.ParsedLayout) }
@Test public void testAsyncTransfer() throws Exception { StringBuilder sb=new StringBuilder(TXS); for (int i=0; i < TXS; ++i) { sb.append("a"); } HttpGet get=new HttpGet(DefaultServer.getDefaultServerURL() + "/transfer?blocking=false"); TestHttpClient client=new TestHttpClient(); try { HttpResponse ...
Studies on photochemical reactions of air pollutants. XV. Photoreactivity of heptachloro-3'-cyclopentenyldioxy heptachloro-2-cyclopentene formed by exposure of hexachlorocyclopentadiene to ultraviolet light in air. Hexachlorocyclopentadiene (HCCP, 1), one of the starting materials in the synthesis of aldrin (3), was f...
/** * Callback receiver for logins * * @param code the authorization code from the Spotify API * @return a response entity indicating that the login was successful */ @RequestMapping(LOGIN_CALLBACK_URI) private ResponseEntity<String> loginCallback(@RequestParam String code) { AuthorizationCodeCrede...
Large voltage-induced modification of spin-orbit torques in Pt/Co/GdOx We report on large modifications of current-induced spin-orbit torques in a gated Pt/Co/Gd-oxide microstrip due to voltage-driven O$^{2-}$ migration. The Slonczewski-like and field-like torques are quantified using a low-frequency harmonic techniqu...
Some people are like homing pigeons: Drop them off anywhere, and they’ll find their way around. Other people, though, can’t tell when they’re holding a map upside down. Are the directionally challenged just bad learners? Or are some of us just lucky to be born with a strong internal compass? Not all of your navigation...
/** * Converts this scriptler script to a GroovyScript. * * @return a GroovyScript */ public GroovyScript toGroovyScript() { final Script scriptler = ScriptHelper.getScript(getScriptlerScriptId(), true); if (scriptler == null) { throw new RuntimeException("Missing require...
//convert from win32 cursors to sdl cursor static void ConvertCursorToSDL(unsigned char* data) { unsigned char temp_cursor[256]; for (int i = 0; i < 128; ++i) { unsigned char and_mask = data[i]; unsigned char xor_mask = data[i + 128]; unsigned char new_and_mask = 0; unsigned char...
/// Implementation details for generated code. /// /// This module holds definitions that need to be public so the can be instantiated by generated /// code in other modules. pub mod detail { use crate::constant_hash; use core::fmt; /// An instruction group template. pub struct Template { /// N...
Amina Mohammed says president seems to be avoiding making decision on whether US will renege on historic agreement The UN’s deputy secretary general has accused President Donald Trump of “treading water” over a decision on the future of the Paris climate change agreement, on which the fate of millions of people depend...
/// The Func kind represents both subprogram and pointee of function /// pointers. If the FuncName is empty, it represents a pointee of function /// pointer. Otherwise, it represents a subprogram. The func arg names /// are empty for pointee of function pointer case, and are valid names /// for subprogram. BTFTypeFuncP...
Effect of Hot Water Treatment on Respiration, Endogenous Ethanol, and Ethylene Production from Gladiolus Corms and Easter Lily Bulbs A hot water (46° ± 1°C for 1 hr) treatment accelerated sprouting from gladiolus corms (Gladiolus sp.) and Easter lily bulbs (Lilium longiflorum). The respiration rate increased in both ...
{-# language RecursiveDo #-} {-# language ScopedTypeVariables #-} {-# language TypeFamilies #-} module Main where import Reflex import Reflex.Host.Basic import Control.Applicative import Control.Monad.Fix import Control.Monad.IO.Class import Data.Char import Data.Functor.Identity import Data.Maybe import Data.Map (Map...
def _fetch_process_info(process_info_url, fetch_error): def _info_not_found_error(): return fetch_error("Could not find reference: '{!s}'".format(process_info_url)) if not isinstance(process_info_url, str): raise _info_not_found_error() resp = request_extra("get", process_info_url, headers={...
It’s all in the mindset: Effects of varying psychological distance in persuasive messages The current research shows that the persuasive impact of messages can be maximized if their framing is matched to where target consumers are in their decision making process at the time they evaluate the message. Results from two...
def load(cls, key, backend=None, only_hdr=False): backend = cls.get_backend(backend) new_item = backend.load(key, only_hdr=only_hdr, front_cls=cls) return new_item
<reponame>so931/poseidonos #include <gmock/gmock.h> #include <string> #include <list> #include <vector> #include "src/allocator/context_manager/allocator_file_io.h" namespace pos { class MockAllocatorFileIo : public AllocatorFileIo { public: using AllocatorFileIo::AllocatorFileIo; MOCK_METHOD(void, Init, (), (...
Google is considering an entrance into the internet TV game, according to a new report out today. The new over-the-top service would offer live TV broadcasts to customers over their internet connections, bypassing cable operators like Comcast and Time Warner Cable. The Wall Street Journal says the product has been demo...
package es.tid.rsvp.objects; public abstract class SenderTemplate extends RSVPObject{ public SenderTemplate(){ super(); classNum = 11; } public SenderTemplate(byte[] bytes, int offset){ super(bytes,offset); } public abstract void encode(); public abstract void decode(); }
/** * \file command_processor.c * * \brief */ #include <core/core.h> #include <core/card_life_cycle.h> #include <core/command_processor.h> #include <mmu/mmu.h> #include <protocol/protocol.h> #include <protocol/status_word.h> // Class bytes of the commands supported #define CLA_PERSONALIZATION_CMD 0x10 // Instruc...
Nucleic Acids Research A second site specific endonuclease with novel specificity has been purified from Thermus thermophilus strain 111 and named TthlllII. The enzyme is active at temperature up to 80°C and requires Mg2+ or Mn2+ for endonuclease activity. TthlllII cleaves 4Xl74RFDNA into 11 fragments and lambda DNA i...
// Issue a BlockDataControl() command to enable BlockData access bool BQ27441::blockDataControl(void) { uint8_t enableByte = 0x00; return i2cWriteBytes(BQ27441_EXTENDED_CONTROL, &enableByte, 1); }
A U.S. Border Patrol agent was indicted Tuesday on charges of trafficking marijuana along the Mexican border, authorities said. A federal grand jury returned a four-count indictment against Michael Angelo Atondo after fellow Border Patrol agents found him with 44 bundles of marijuana in his vehicle in a remote area Ap...
<reponame>eins78/catalog<gh_stars>1000+ import * as React from "react"; import * as ReactDOM from "react-dom"; import { Catalog, markdown, ReactSpecimen, Config, Page, pageLoader, HtmlSpecimen, TableSpecimen, ColorSpecimen, ColorPaletteSpecimen, CodeSpecimen } from "catalog"; const MyPage = () =>...
/** * Created by Leonemsolis on 14/02/2018. */ public class Effects { private ArrayList<Effect>effects; private ArrayList<Effect>toDelete; public Effects() { effects = new ArrayList<Effect>(); toDelete = new ArrayList<Effect>(); } public void addEffect(int id, float time) { ...
package com.rains.graphql.tool.mutation; import com.coxautodev.graphql.tools.GraphQLMutationResolver; import com.rains.graphql.common.annotation.Log; import com.rains.graphql.common.domain.QueryRequest; import com.rains.graphql.system.util.generator.GenConstants; import com.rains.graphql.system.util.generator.Velocit...
/** * Produces the alert if an invalid simulation is passed in * @param myResources the resource bundle that holds the key for displaying the error message. */ public static void showInvalidSimulationAlert(ResourceBundle myResources) { Alert invalidSimulationAlert = new Alert(Alert.AlertType.ERRO...
We have a disturbing update about that South Carolina clown creeping in the woods We have a disturbing update about that South Carolina clown creeping in the woods More When did clowns go from being fun, goofy, innocent entertainment to terrifying, murderous nightmares? Oh, we know when… Around the time they starte...
/** * Basic test for "detachAllOnCommit" WITH L2 cache usage. */ public void testDetachAllOnCommitWithL2() { Properties userProps = new Properties(); userProps.setProperty(PropertyNames.PROPERTY_DETACH_ALL_ON_COMMIT, "true"); userProps.setProperty(PropertyNames.PROPERTY_CACHE_L1_TY...
<commit_msg>Add simple test for _load_file Signed-off-by: Michal Kuffa <005ee1c97edba97d164343c993afee612ac25a0c@gmail.com> <commit_before>import os from pg_bawler import bawlerd class TestBawlerdConfig: def test_build_config_location_list(self): assert not bawlerd.conf.build_config_location_list(locat...
#include<stdio.h> main(){ int a,b,c; int meiji=1868,taisho=1912,showa=1926,heisei=1989; while(scanf("%d %d %d",&a,&b,&c)!=EOF){ if((a<=1867)||(a==1868&&b<9)||(a==1868&&b==9&&c<=7)){ printf("pre-meiji\n"); }else if((a<=1911)||(a==1912&&b<7)||(a==1912&&b==7&&c<=29)){ printf("meiji %d %d %d\n",a-...
<gh_stars>10-100 /** * Copyright (C) 2012 cogroo <<EMAIL>> * * 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 ...
def export_service_bundle(bento_service): import tempfile with tempfile.TemporaryDirectory() as path: bento_service.save_to_dir(path) yield path
#include<bits/stdc++.h> #define ll long long using namespace std; const ll MOD = 1e9+7; int main(){ ll n,t; cin>>n>>t; vector<ll> a; for(int i=0;i<n;i++){ ll x; cin>>x; a.push_back(x); } sort(a.begin(),a.end()); ll dp[111111]; dp[0]=1; for(int i=1;i<n;i++){ ll k=a[i]-t; ll l=lower_bound(a.begin...
/** * Completely internal. DO NOT USE. IF YOU ARE A USER AND FACE A PROBLEM WHILE USING THIS CODE, THAT'S ON YOU. */ @Deprecated( since = "forever", forRemoval = false ) public final class GrayBed { /** * Completely internal. DO NOT USE. IF YOU ARE A USER AND FACE A PROBLEM WHILE USING THIS C...
package gin import ( "bytes" "context" "fmt" "io/ioutil" "net/http" "net/http/httptest" "testing" "time" "github.com/devopsfaith/krakend/config" "github.com/devopsfaith/krakend/proxy" "github.com/gin-gonic/gin" ) func BenchmarkEndpointHandler_ko(b *testing.B) { p := func(_ context.Context, _ *proxy.Reque...
<gh_stars>1-10 import { Repo } from '../types'; export interface GetReposConfig { forks: boolean; owned: boolean; } export interface GetRepoConfig { group: string; slug: string; } export interface CreateRepoConfig { group: string; slug: string; project: string; } export default interface Server { ge...
Pittosporum undulatum is a potential Australian host of Phytophthora ramorum Pittosporum undulatum is a potential Australian host of Phytophthora ramorum, the causal agent of sudden oak death in California. It was susceptible and supported sporulation in zoospore inoculations of detached leaves. Susceptibility and spo...
RALEIGH -- Noah Hanifin sat at his locker stall, still catching his breath from a rigorous on-ice workout at Carolina Hurricanes development camp. When asked what left an impression on him during the busy week, he sounded like a young man who made the most of his freshman year at Boston College. "We had a really good...
The Road to J-PARC and the Present It is a great honor to write an article on J-PARC, the Japan Proton Accelerator Research Complex, for a special issue of Neutron News. Although we now have the J-PARC neutron source, JSNS (Japan Spallation Neutron Source), the road to it was never flat but very long, steep and rough....
/** * Builds a Java source file. * @throws Exception if exception was occurred */ @Test public void build_java() throws Exception { Set<String> entries = new HashSet<>(); FilePackager packager = new FilePackager( folder.newFolder(), Collections.emptyLis...
def parse( source: _FileOrFilename, parser: Optional[XMLParser] = None ) -> etree._ElementTree: if parser is None: parser = ETCompatXMLParser() return etree.parse(source, parser)
def line( self, aStart, aEnd, aColor ) : if aStart[0] == aEnd[0]: pnt = aEnd if (aEnd[1] < aStart[1]) else aStart self.vline(pnt, abs(aEnd[1] - aStart[1]) + 1, aColor) elif aStart[1] == aEnd[1]: pnt = aEnd if aEnd[0] < aStart[0] else aStart self.hline(pnt, abs(aEnd[0] - aStart[0]) + 1, a...