content
stringlengths
10
4.9M
<gh_stars>0 package com.nacrt.demo.xml; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import java.util.Map; import java.util.Properties; public class XmlMainTest { public static void main(String[] args) throws Exception { Applicat...
President of Uganda Yoweri Museveni (Carl Court/WPA Pool/Getty Images) Ugandan President Yoweri Museveni is refusing to approve a controversial bill that would sharpen his country's already severe laws against same-sex relationships, imposing prison time for even discussing homosexuality in the abstract. But don't con...
import { Button, Col, List, message, Row } from 'antd'; import React from 'react'; import BookPreviewView from '../../../components/book-preview-view'; import ContentSubmitter from '../../../components/content-submitter'; import ContentWriter, { ArticleProps } from '../../../components/content-writer'; import { Referen...
<gh_stars>0 # -*- coding:utf-8 -*- """ Wait ^^^^ .. moduleauthor:: <NAME> <<EMAIL>> Just waits for something (i.e. that preconditions will be fullfilled) """ import rospy from bitbots_body_behaviour.actions.go_to import Stand from bitbots_stackmachine.abstract_action_element import AbstractActionElement from humanoi...
The runup in gold prices in recent years – from $800 per ounce in early 2009 to above $1,900 in the autumn of 2011 – had all the features of a bubble. Now, like all asset-price surges that are divorced from the fundamentals of supply and demand, the gold bubble is deflating. At the peak, gold bugs – a combination of p...
<gh_stars>100-1000 // Copyright 2019 Samaritan 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 appli...
import React from 'react' import { Svg, Path, SvgProps } from '../wrappers' const Delete: React.FC<SvgProps> = ({ fill, ...props }) => ( <Svg {...props}> <Path fill={fill} d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z" /> </Svg> ) export default React.memo(De...
package main import ( "fmt" "github.com/Soreil/eulersolutions/utils" ) func main() { var mills int for n := float64(0); n <= 100; n++ { for r := float64(0); r < n; r++ { if ncr(n, r) > 1000000 { mills++ } } } fmt.Println(mills) } func ncr(n, r float64) float64 { if r > n { return -1 } retur...
def dataset_to_tensors(dataset, capacity, map_fn=None, parallelism=None): with tf.name_scope(None, 'dataset_to_tensors', [dataset, capacity, map_fn, parallelism]): if map_fn is not None: dataset = dataset.map(map_fn, num_parallel_calls=parallelism) return tf.contrib.data.get_single_...
Episodic lh secretion in the immature male and female rat as assessed by sequential blood sampling. Using a repeated sampling method, the precise and detailed secretory pattern of luteinizing hormone (LH) was studied in the immature female and male rat. Animals which had been kept under controlled environmental condit...
/** * <p> * Helper class that allows to create <a href="https://github.com/JCTools/JCTools">JCTools</a> queues. * </p> * <p> * JCTools queues will be created by default if they're found in the Thread context classloader and creation is not disabled. * </p> * <p> * Creation of JCTools queues can be disabled per ...
/** * Changes the favourite status of an existing person in the address book. */ public class FavouriteCommand extends Command { public static final String COMMAND_WORD = "fav"; public static final String MESSAGE_USAGE = COMMAND_WORD + ": Changes the favourite status of a person identified by\n"...
An economical viable tokamak fusion reactor based on the ITER experience This is my personal vision and outlook towards a fusion reactor based on my extensive experience from being part of the ITER design, and now construction, as well as leading the largest fusion technology program worldwide (KIT—Karlsruhe Institute...
package querytest import ( "bytes" "context" "strings" "testing" "time" "github.com/andreyvit/diff" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" "github.com/influxdata/flux" "github.com/influxdata/flux/dependencies/dependenciestest" "github.com/influxdata/flux/dependency" "github....
Farmers’ Perception of Selling Chili to the New Auction Market: A Case at Sleman Regency of Indonesia Purpose : The aim of this study is to know the effect of economic and social factors on the farmers’ marketing decisions. Research Method : This research was conducted from January to March 2020. The respondents were ...
package YodasMod.potions; import com.badlogic.gdx.graphics.Color; import com.megacrit.cardcrawl.characters.AbstractPlayer; import com.megacrit.cardcrawl.core.AbstractCreature; import com.megacrit.cardcrawl.core.CardCrawlGame; import com.megacrit.cardcrawl.dungeons.AbstractDungeon; import com.megacrit.cardcrawl.events....
/* */ /* Ensures size of command buffer of the given task. */ /* Existing buffer will be copied to new buffer. */ /* */ /* This buffer is guranteed to be physically continuous. */ /* */ /* returns -ENOMEM if cannot allocate new buffer */ static int32_t cmdq_core_task_realloc_buffer_size(struct TaskStruct *pTask, uin...
/* * Copyright 2016-2020 the original author or 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
<filename>robozonky-integration-stonky/src/main/java/com/github/robozonky/integrations/stonky/Export.java /* * Copyright 2019 The RoboZonky Project * * 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 L...
<reponame>fgmohammad/inpainting<gh_stars>0 #Credits https://github.com/MADF-inpainting/Pytorch-MADF import math import torch import torch.nn as nn import torch.nn.functional as F from normalization import PN from torchvision import models upsampling = "bilinear" class VGG16FeatureExtractor(nn.Module): def _...
LAST week a federal appeals court panel ruled that the NSA's indiscriminate hoovering of phone-call metadata, first revealed by the leaks of Edward Snowden, is not authorised by the Patriot Act. The pertinent section of the anti-terror bill, Section 215, is set to expire on June 1st, so the 2nd Circuit's ruling comes a...
/** * This example uploads creative assets and creates a flash in-page creative associated with a given * advertiser. To get a size ID, run GetSize.java. */ public class CreateFlashInpageCreative { private static final String USER_PROFILE_ID = "INSERT_USER_PROFILE_ID_HERE"; // Creative values. private static ...
<filename>ConfusionMatrix.py<gh_stars>0 # -*- coding: utf-8 -*- """ami.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1Z6niq4l-zAz0wF7ClpvlzRK_o7ziWwst """ !pip install wandb -qqq import wandb wandb.init(project="Back_Propagation", en...
package gs import ( "bytes" "encoding/json" "github.com/pkg/errors" "github.com/viant/afs/option" "github.com/viant/afs/storage" "golang.org/x/oauth2/google" "golang.org/x/oauth2/jwt" "io/ioutil" "os" ) //JWTProvider represetns JWT based auth provider type JWTProvider interface { JWTConfig(scopes ...string)...
<filename>2.5.2/CN-Biz-Common-2000/src/main/java/org/zmsoft/service/player/ISPLayerRegistService.java package org.zmsoft.service.player; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.zmsoft.framework.beans.LoginerBean; import org.zmsoft.framework.beans.common....
def _build_response(result, count, offset): videos = [] if result: for video_details in result: entry = { shared_constants.INDEX_KEY: video_details.meta.index, shared_constants.VIDEO_ID_KEY: video_details.meta.id, } video_info = video...
import { MetaResponse } from './meta-response'; import { ResponseCode } from './response-code'; import { HttpStatus } from '@nestjs/common'; export class MetaResponseGenerator { /** * * * @static * @template resultType * @param {resultType} value * @param {ResponseCode} responseCode * @memberof M...
def save_16_bit_flow(flow, destination): cv2.imwrite(destination, flow.astype(np.uint16))
// RemoveWithPrefix removes the keys with given prefix. func (kv *EtcdKV) RemoveWithPrefix(prefix string) error { start := time.Now() key := path.Join(kv.rootPath, prefix) ctx, cancel := context.WithTimeout(context.TODO(), RequestTimeout) defer cancel() _, err := kv.client.Delete(ctx, key, clientv3.WithPrefix()) ...
// loadSubdomain loads the id for the private domain corresponding to the private domain id. func loadSubdomain(r *http.Request, db *database.DB, u *core.CurrentUser) (*core.Domain, error) { subdomain := strings.ToLower(mux.Vars(r)["subdomain"]) if subdomain == "" { return core.NewDomain(), nil } domain, err := c...
package cn.programingmonkey.Table; import org.springframework.stereotype.Component; import javax.persistence.*; import java.util.Date; /** * Created by cai on 2017/4/21. */ @Entity @Table(name = "tg_like") @Component public class like { private int id; private String userId; private String postId; ...
/* * Procedures for creating, accessing and interpreting the device tree. * * Paul Mackerras August 1996. * Copyright (C) 1996-2005 Paul Mackerras. * * Adapted for 64bit PowerPC by Dave Engebretsen and Peter Bergner. * {engebret|bergner}@us.ibm.com * * Adapted for sparc32 by David S. Miller davem@daveml...
def main(uri: str, refs_table: str, refs_path: str, alts_table: str, alts_path: str, test: bool): engine = create_engine(uri) _load_names( engine=engine, table=alts_table, path=alts_path, test=test, target_col='alt', target_col_size=64, add_unique_constrai...
def clean_name(name, allowed_chars): ok = identifier_chars + allowed_chars newname = "".join(c if c in ok else "-" for c in name) newname = newname.lstrip("-") if not newname: raise RuntimeError(f"No valid chars in name '{name}'.") return newname
//##################################################################### // Copyright 2011. // This file is part of PhysBAM whose distribution is governed by the license contained in the accompanying file PHYSBAM_COPYRIGHT.txt. //##################################################################### // Class DIFFUSION_UN...
// fake database record for dbstatus public class FakeDBStatus extends FakeRecord { public FakeDBStatus(final String aiid, final String devid, final TrainingStatus trainingStatus) { addString("aiid", aiid); addString("dev_id", devid); addString("training_status", ...
<reponame>sauvikatinnofied/ExploringFuse // This file was generated based on '/usr/local/share/uno/Packages/Fuse.Reactive/0.24.6/$.uno'. // WARNING: Changes might be lost if you edit this file directly. #pragma once #include <Fuse.Reactive.IObserver.h> #include <Uno.IDisposable.h> #include <Uno.Object.h> namespace g{n...
/* * Delete any allocated memory and reset address_ to nullptr */ void resetAddress() { if (isAllocated()) { delete address_; } address_ = nullptr; }
def welless_check_decorator(func): def inner(self, population): for indiv in population.population: if indiv.dead: indiv.set_worst_score() else: but_really_is_dead = False for block in indiv.blocks: if block.dead: ...
def add_timeseries(self, name, transcription, subset='all'): self._timeseries[name] = {'transcription': transcription, 'subset': subset, 'outputs': {}}
The ongoing release of emails from Huma Abedin demonstrate the cozy relationship the US State Department had with the Clinton Foundation/Clinton Global Initiative during the maladministration of Hillary Clinton. Another shoe dropped yesterday when Judicial Watch release an email that indicated officials of the Clinton ...
<gh_stars>1-10 package bg.softuni.pethotel.service.impl; import bg.softuni.pethotel.model.entity.RoleEntity; import bg.softuni.pethotel.model.entity.UserEntity; import bg.softuni.pethotel.model.enums.RoleNameEnum; import bg.softuni.pethotel.repository.UserRepository; import bg.softuni.pethotel.service.CloudinaryServic...
/********************************************************************/ /* Set up T_mat */ /* 1) First set it up as a DMSR matrix. This is a bit dumb because */ /* a rectangular matrix doesn't have a diagonal. Anyway, DMSR */ /* This stores the diagonal of r...
<filename>Intro to Python for Data Science/Functions and Packages/string-methods.py ''' String Methods 100xp Strings come with a bunch of methods. Follow the instructions closely to discover some of them. If you want to discover them in more detail, you can always type help(str) in the IPython Shell. A string room has...
<filename>src/containers/Home/TweetsPage.tsx import React, { useMemo } from 'react'; import styled from 'styled-components'; import Box from '@material-ui/core/Box'; import Button from 'react-bootstrap/Button' import { MetaInfo } from '../../components'; import { RoutesConfig } from '../../config/routes.config'; import...
def meta_fcnet(fname_objective: str, fname_cost: str, noise: bool = True) -> Tuple[UserFunctionWrapper, ParameterSpace]: parameter_space = ParameterSpace( [ ContinuousParameter("lr", 0, 1), ContinuousParameter("batch_size", 0, 1), ContinuousParameter("n_units_1", 0, 1...
def deliver_image_gif(): return b64decode(""" R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== """)
/* * V4L2 buffer helper functions. * * Copyright (C) 2017 Alexis Ballier <aballier@gentoo.org> * Copyright (C) 2017 Jorge Ramirez <jorge.ramirez-ortiz@linaro.org> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
/* ================================================================================== Copyright (c) 2019 AT&T Intellectual Property. Copyright (c) 2019 Nokia 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 co...
/** * Instance information in Get Application Instance response. */ @JsonDeserialize @Value.Immutable abstract class _ApplicationInstanceInfo { /** * The console IP */ @JsonProperty("console_ip") @Nullable abstract String getConsoleIp(); /** * The console port */ @JsonPro...
/** * Create a new message, which will be the visible one. */ public void add(final String message) { BroadcastMessage broadcastMessage = new BroadcastMessageImpl(message); super.create(broadcastMessage); }
/** * Checks if this reportable produces a report. * * @return boolean : true if report will be produced, false otherwise */ public boolean reportIsOn() { return _reportMode; }
/** * Starts the associated services. * * @throws Exception */ protected synchronized void startServices() throws Exception { if (getLogService() != null) { getLogService().start(); } if (getStatusService() != null) { getStatusService().start(); ...
<reponame>dmgerman/camel begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_expr_stmt unit|# operator|# operator|-- operator|-- operator|-- operator|-- operator|-- operator|-- operator|-- operator|-- operator|-- operator|-- operator|-- operator|-- operator|-- operator|-- operator|-- operator|-- operator...
// This is the base router, which provides a few generic utility endpoints import { Request, Response, Router } from "express"; import { ImATeapot } from "http-errors"; import { join } from "path"; import { IPackage } from "../interfaces"; export class HomeRouter { public router: Router = Router(); constructo...
/** * Lese einen INT-Wert aus dem Empfangspuffer. * Ergebnis ist ein INT32-Wert. */ INT32 decodeINT32(const std::string& rxData) { INT32 value = 0; INT32 tempVal; INT32 factor = 1; INT32 baseFactor = 10; INT32 sign = 1; UINT16 digits; UINT16 offset = 0; const std::string number = rxData; if (number.at(0)...
Variations of the Plasma Environment Revealed by the Evolution of the Supra-arcade Fan in the 2017 September 10 Flare Based on observations from the Interface Region Imaging Spectrograph and Hinode, we analyze the thermodynamic evolution of the supra-arcade fan (SAF) in the 2017 September 10 flare. The SAF presents di...
<gh_stars>10-100 from subprocess import call import sys import datasets for dataset_name in ['enron']: rho_squared = datasets.DATASET_NORM_SQ_CONSTRAINTS[dataset_name] quantile = 0.70 for epsilon in datasets.DATASET_EPSILONS[dataset_name]: if epsilon == 0: continue eta = (0.008 / epsil...
/** * Try to load the service impl given by the className. */ private IBatchServiceBase _loadServiceHelper(Name serviceType) { IBatchServiceBase service = null; String className = serviceImplClassNames.get(serviceType); try { if (className != null) { service = _loadService(className); } }...
def forward(self, key, value, query, mask=None): batch, k_len, d = key.size() batch_, k_len_, d_ = value.size() aeq(batch, batch_) aeq(k_len, k_len_) aeq(d, d_) batch_, q_len, d_ = query.size() aeq(batch, batch_) aeq(d, d_) aeq(self.model_dim % 8, ...
<gh_stars>1-10 #pragma once #include <stdint.h> #include <stdlib.h> #include <unistd.h> #include <inttypes.h> #include <signal.h> #include <rte_eal.h> #include <rte_ethdev.h> #include <rte_cycles.h> #include <rte_lcore.h> #include <rte_mbuf.h> #include <rte_log.h> #include <rte_ether.h> #include <rte_ip.h> #include <rt...
def Calculate_all(generateXmlSolverInput: bool = False): clientModel.service.calculate_all(generateXmlSolverInput)
def cipd_spec(self, version): cipd_pieces = [self._package_prefix, self._cipd_pkg_name_with_override] if not self._spec_pb.upload.universal: cipd_pieces.append(self.platform) full_cipd_pkg_name = get_cipd_pkg_name(cipd_pieces) patch_ver = self.create_pb.source.patch_version if self.create_pb.p...
<gh_stars>1-10 #ifndef __LUCENE_ANALYSIS_TOKENIZER__ #define __LUCENE_ANALYSIS_TOKENIZER__ #import <Foundation/Foundation.h> #import "LCTokenStream.h" #import "LCReader.h" /* A token stream specified for LCReader */ @interface LCTokenizer: LCTokenStream { /** The text source for this Tokenizer. */ id <LCReader> ...
#include "s_except.hpp" s_except::s_except(std::string err_msg) { this->err_msg = err_msg; } s_except::~s_except() { // } const char * s_except::what() const throw() { return this->err_msg.c_str(); }
package br.senac.tads.pi3.model.estoque; public class Estoque { public int id; public String nome; public int idEmpresa; public Estoque(int i, String e, int emp){ this.id = i; this.nome = e; this.idEmpresa = emp; } public Estoque(){ ...
// Copyright 2018 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 agreed to in w...
Apparently the US Army is interested in a zealous interpretation of copyright protection, too. According to the Electronic Frontier Foundation, a Chelsea Manning supporter recently attempted to mail Manning a series of printed EFF articles about prisoner rights. Those materials were withheld and not delivered to her b...
n=int(input()) s=input() l,l1=[],[] def subString(s, n): for i in range(n): for len in range(i + 1, n + 1): l.append(s[i: len]) subString(s,len(s)) for i in l: if(len(i)==2): l1.append(i) max = 0 res = l1[0] for i in l1: freq = l1.count(i) if freq > max: ...
// Copyright 2014 The Azul3D Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include "_cgo_export.h" void pre_go_chipmunk_body_velocity_func(cpBody *body, cpVect gravity, cpFloat damping, cpFloat dt) { go_chipmunk_body_velocity_fu...
#include "lpg_unicode_view.h" #include "lpg_allocate.h" #include "lpg_assert.h" #include <string.h> bool unicode_view_equals(unicode_view left, unicode_view right) { if (left.length != right.length) { return false; } if (left.length == 0) { // memcmp must not be called with NULL ...
import { User } from "./User"; export interface Request { id : number, itemName : string, ingredients : string, image : string, description : string, preparationTime : number, price : number, user: User }
Members of the exclusive club would be expected to have minimum liquid assets of £100 million. They would pay £2million per up front to join, with annual dues of £500,000. A stay at the luxury hotel would start at £6,000 per person per night, rising to £14,000 for the best rooms. Developers have lodged plans for the ...
Cop with taser (Flickr) A Pennsylvania man said police shocked him with a Taser stun gun while he was being treated in an ambulance for an apparent seizure. Darren Scott, of Upland, was jailed on $100,000 bond on charges including aggravated assault of a law enforcement officer and resisting arrest following the Marc...
def pack(tensors): buffer = torch.cat([t.view(-1) for t in tensors]) shapes = [tensor.shape for tensor in tensors] return buffer, shapes
def process_tasks(self, input_path, output_path): with open(input_path, "r") as fp: tasks = json.load(fp) with open(output_path, "a") as output_file: for task in tasks: self._process_task(task, output_file)
Efficient utilization of renewable feedstocks: the role of catalysis and process design Renewable carbon feedstocks such as biomass and CO2 present an important element of future circular economy. Especially biomass as highly functionalized feedstock provides manifold opportunities for the transformation into attracti...
/** * HTTP 204 No Content * * @return this for chaining */ @Nonnull public PhotonUnifiedResponse createNoContent () { setStatus (HttpServletResponse.SC_NO_CONTENT); return this; }
P-713 Prescription determinants of intrauterine devices in different European countries - Results from the real-world safety study EURAS-LCS12 What are the reasons for intrauterine devices (IUD) use beyond contraception for various IUD types in routine clinical practice across Europe? Beyond contraception...
word, text = raw_input(), [] while True: tmp = raw_input() if tmp == "END_OF_TEXT": break if tmp[-1] == '.': tmp = tmp[:-1] text += [s.lower() for s in tmp.split(" ")] print text.count(word)
// WithWindowSize will set the maximum allowed back-reference distance. // The value must be a power of two between MinWindowSize and MaxWindowSize. // A larger value will enable better compression but allocate more memory and, // for above-default values, take considerably longer. // The default value is determined by...
Sylvester J. Pussycat Sr., usually called Sylvester, is a fictional character, a three-time Academy Award-winning anthropomorphic Tuxedo cat in the Looney Tunes and Merrie Melodies series of cartoons.[1] Most of his appearances have him often chasing Tweety Bird, Speedy Gonzales, or Hippety Hopper. Sylvester appeared i...
// This example shows how you can use the Toggl API to print // all your workspaces names, client names, project names and the time entries // of the last month. func Example() { baseURL := "https://www.toggl.com/api/v8" apiToken := "Toggl-API-Token" api := NewAPI(baseURL, apiToken) fmt.Println("Workspaces:") work...
def parse(self, force = False): if self._parsed and not force: return self.resetBody() self.initialize() self._trustPacketVersion = self.readBin(1)[0] if self._trustPacketVersion != 1: raise PGPError("Unknown trust packet version %s" % self._trustPacketVer...
<gh_stars>1-10 import { MessageType } from "../types/message"; var weather = require("openweather-apis"); export = { name: "weather", description: "display weather im given city", execute(msg: MessageType, args: string) { weather.setLang("en"); weather.setCity(args); weather.setUnits("metric"); ...
def _allocate_new_rows(self, min_increment=None): new_rows = max(1, int(np.ceil(len(self.data) * self.increment))) if min_increment: new_rows = max(new_rows, min_increment - new_rows) append_data = np.empty([new_rows] + list(self.data.shape[1:]), dtype=self.dtype) self.data =...
<reponame>rebuy-de/kubernetes-deployment<filename>pkg/interceptors/multi.go package interceptors import ( "github.com/pkg/errors" "github.com/rebuy-de/kubernetes-deployment/pkg/gh" log "github.com/sirupsen/logrus" "k8s.io/apimachinery/pkg/runtime" ) type Multi struct { Interceptors []interface{} } func New(inte...
<gh_stars>1-10 fn main() { let x: i32 = 5; let y: Option<i32> = Some(3); let result = match type_of(x) == type_of(y) { Ok(value) => value, Err(error) => { panic!("Trouble adding numbers", error) }, }; //println!("{}", x + y).expect("Failed to add dissimilar ...
def apt_update(): print('>> apt update') with hide('output'): r = sudo('apt update') if r.find('packages can be upgraded') == -1: raise FabricCommandError(f'Result = {r}') print('>>> Success apt update')
// All variables and functions in this file are carbon copy-paste from the standard library crypto/rsa package rsablind import ( "crypto/rand" "crypto/rsa" "errors" "io" "math/big" ) var bigZero = big.NewInt(0) var bigOne = big.NewInt(1) // Carbon copy of crypto/rsa encrypt() func encrypt(c *big.Int, pub *rsa....
import java.awt.image.*; /** * Provides an interface to a picture as an array of Pixels * * @author <NAME>, modified by <NAME> * @version March 1, 2002 */ public class PixelImage { private BufferedImage myImage; private int width; private int height; /** * Map this PixelImage to a real imag...
Since its launch a year ago, the xenophiles at Paradox have been busy expanding Stellaris with a slew of patches, meatier updates and two significantly different chunks of DLC. Problems, both endemic to 4X games and specific to Stellaris, have been grappled with, and it’s in better shape than ever, but the team still h...
//! userlevel=Normal //: 2D Triangular Mesh class TriMesh2dC { public: TriMesh2dC() {} TriMesh2dC(const SArray1dC<Point2dC> &nVertices,const SArray1dC<Index3dC> &nFaces) : vertices(nVertices), faces(nFaces) {} SArray1dC<Point2dC> &Vertices() { return vertices; } SArray1dC<Index3dC...
/** * Called when the fragment is attached to the activity * @param context the context for the activity */ @Override public void onAttach(@NonNull Context context) { super.onAttach(context); try{ postButtonClickListener = (OnPostButtonClickListener) context; }catc...
package ganyi.hadoop.replayer.simulator.rm; import ganyi.hadoop.replayer.GlobalConfigure; import ganyi.hadoop.replayer.message.Message; import ganyi.hadoop.replayer.message.MessageQueue; import ganyi.hadoop.replayer.network.netAddress; import ganyi.hadoop.replayer.rpc.RpcPosition; import ganyi.hadoop.replayer.rpc.para...
import { URL } from '../platform/URL'; import { Record } from '../Record'; import { LoaderPlugin, pluginFactory, PluginSpec } from '../Plugin'; import { Loader } from '../Loader'; const enum ParserState { OUT, IN_ELEMENT, IN_ATTRIBUTE, IN_COMMENT, IN_SCRIPT_CONTENT } class HTMLPlugin implements LoaderPlugin { ...
NEW YORK—A series of horrific, devastatingly injurious events failed to befall 33-year-old Flavorpill.com digital media developer Jake Reston as he confidently skated to work on his longboard, shocked witnesses reported today. Hundreds of aghast Manhattan commuters who watched Reston not hit a pothole with his idiotic...
<reponame>dycz0fx/Vitis_Libraries /* * Copyright 2020 Xilinx, 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 requi...
// based on the work of Robert Sedgewick and Kevin Wayne public class Graph<T> implements Iterable<T>, Serializable { private Map<T, Set<T>> verticesMap; private Map<T, String> VertexColor; private int edgesCount; public Graph() { verticesMap = new HashMap<>(); VertexColor = new HashMa...
<filename>src/background/index.ts chrome.runtime.onStartup.addListener(() => { chrome.storage.sync.set({ isClicked: false }, () => {}) chrome.storage.sync.set({lastImage: ""}, () => {}) } ) var clickCounter: number = 0; var recordId: string = '' function b64toBlob(b64Data: any, contentType: any) { contentType ...