content
stringlengths
10
4.9M
Every share makes Black Voice louder! Share To Share To The issue of workers not being paid in accordance with hours they put in is a big problem in our society. Wage theft in our present society is one of the labor violations low wage labor workers have been facing. Many of the workers don’t get paid what they have ...
<filename>src/main/java/com/oracle/truffle/js/runtime/array/ByteBufferSupport.java /* * Copyright (c) 2020, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * The Universal Permissive License (UPL), Version 1.0 * * Subject to the condition ...
The Congenial Calories of the Candy Shop. At a time when conservation of foodstuffs, and especially of sugar, is one of the vital necessities of our country and the fundamental duty of every one of us, the soda-guzzling youngsters and the candy nibbling matinée followers are properly looked on with suspicion. There is...
/** * Asynchronous: Native(exception at callback from Java, then Occurred-throw new-clear). * @return status code */ public static int nativeClearExceptionTest() { int result1 = 4; /* STATUS_FAILED */ NativeClearExceptionTest cTest = new NativeClearExceptionTest(); try { ...
package submarineragent_test import ( "context" "testing" "time" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "github.com/open-cluster-management/submariner-addon/pkg/helpers" testingHelpers "github.com/open-cluster-management/submariner-addon/pkg/helpers/testing" "k8s.io/apimachinery/pkg/api/meta" ...
<filename>src/hooks/web/useDarkMode.ts<gh_stars>1-10 function isNowNight(): boolean { const now = new Date(); const month = now.getMonth(); const hour = now.getHours(); if (month > 4 && month <= 10) { return hour < 6 || hour >= 19; } return hour < 7 || hour >= 18; } export function useDarkMode() { re...
package com.vaadin.tests.util; import java.lang.reflect.Modifier; import java.util.HashSet; import java.util.List; import java.util.Set; import com.vaadin.tests.VaadinClasses; public class GraphVizClassHierarchyCreator { public static void main(String[] args) { String gv = getGraphVizHierarchy((List) Va...
<gh_stars>100-1000 ''' Automatron: Monitoring * Get all Targets and Runbooks * Schedule Checks * Execute Checks per schedule * Notify Check status * Listen for Runbook and Target changes * Reschedule Checks ''' import sys import signal import json import tempfile import types import fabric.api f...
<reponame>coalpha/ts-steam-webapi import {final, newtype} from "../core/newtype"; type achievement_name_t = { [final]: "achievement_name"; [newtype]: achievement_name_t; }; /** This is a game-local achievement name */ export type achievement_name = string & achievement_name_t;
<filename>wetterdienst/settings.py # -*- coding: utf-8 -*- # Copyright (C) 2018-2022, earthobservations developers. # Distributed under the MIT License. See LICENSE for more info. from contextvars import ContextVar from dataclasses import dataclass from environs import Env @dataclass class Settings: """Wetterdie...
// writes an ASCII dump of this value and its contained values (NOT following pointers). size_t Value::dump(std::ostream &out, bool wide, int indent, const void *base) const { size_t pos = _byte - (uint8_t*)base; char buf[64]; sprintf(buf, "%04zx: %02x %02x", pos, _byte[0], _byte[1]); ou...
/** * Parses a integer variable from a scalar. * * @param obj object to parse from. * @return parsed int value, or {@code 0} if failed parsing. */ private static int parseIntFromScalar(Object obj) { if (obj instanceof Integer) { return (Integer) obj; } else if (obj i...
<reponame>iapain/smartwebapps<gh_stars>1-10 from django.contrib import admin from models import Cluster, News, NewsSource admin.site.register(NewsSource) admin.site.register(Cluster) admin.site.register(News)
An Analysis of the Expense Ratio Pricing of SMB,HML, and UMD Exposure in U.S. Equity Mutual Funds The expense ratio price of U.S. equity market exposure is close to zero with funds such as the Vanguard Total Stock Market Index (ticker: VTSAX), which charges an expense ratio of just 5 bps. An interesting, and more diff...
/** * ( -- String ) Returns the Decision Table and Action number * * @author paul snow * */ public static class ActionString extends ROperator { ActionString(){super("actionstring");} public void execute(DTState state) throws RulesException { state.datap...
package Genreic; /** * 定义含有泛型的接口 * 格式: * 修饰符 interface 接口名<代表泛型的变量>{ * ... * } */ public interface MyInterface<E> { public void show(E e); }
<gh_stars>0 fn solve2(x1: u64, x2: u64) -> u64 { if x2 == 0 { 1 } else { (x1 % 10).pow(if x2 % 4 == 0 { 4 } else { x2 % 4 } as u32) % 10 } } fn solve3(x1: u64, x2: u64, x3: u64) -> u64 { let pow_x2_x3_equal_0 = x2 == 0 && x3 != 0; let pow_x2_x3_mod_4 = match x2 % 4 { 0 => if...
15 000 new members joined the Labour party within 24 hours of the election and they are entering an organisation which is not as welcoming as it could be. I am one of the new, a returning member so to be fair I knew the score. I attended the first Stroud constituency group since the Corbyn surge on Friday. It was a pa...
import { EventEmitter } from "events"; import { Pool } from "pg"; import { InfiniteStream, TrackedDomainEventMessage, Logger, TrackingToken, PositionalTrackingToken } from "@eventia/core"; import { PostgresqlCursor } from "./PostgreSQLCursor"; import { PostgreSQLEventQuery } from "./PostgreSQLQuery"; ex...
// WriteBadBlock serializes the bad block into the database. If the cumulated // bad blocks exceeds the limitation, the oldest will be dropped. func WriteBadBlock(db ethdb.KeyValueStore, block *types.Block) { blob, err := db.Get(badBlockKey) if err != nil { log.Warn("Failed to load old bad blocks", "error", err) }...
n,d = map(int,input().split()) max = (n - d) - d count = 1 for i in range(1000): if max <= 1: break max = (max - (d*2) -1) count += 1 print(count)
#!/usr/bin/python3 import sys def input(): return sys.stdin.readline().rstrip('\n') N = int(input()) S = input() #D = list(map(int, input().split())) alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" # ord and chr asciiA = ord('A') def ord_rel_a(c): return ord(c) - asciiA def chr_rel_a(i): j = i + asciiA r...
HaCaT cell line as a model system for vitamin D3 metabolism in human skin. Synthesis and catabolism of calcitriol (1,25(OH)2D3) were studied using HaCaT cell line as a cell culture model. Our results indicate that stimulation of HaCaT cells with epidermal growth factor (EGF) or transforming growth factor-alpha (TGF-al...
#pragma once #include "treedefinitions.h" #include "foe.h" #include "sprite.h" #include <SFML/Graphics/RenderWindow.hpp> // Box + ID typedef std::pair<Box, int> BoxID; // Region Tree typedef bgi::rtree<BoxID, bgi::quadratic<16>> RTree; class FoeWrapper final { RTree* tree; std::vector<Foe*> foes; std::vector<std...
/** * Executes the given command, returning its success. * <br> * If false is returned, then the "usage" plugin.yml entry for this command * (if defined) will be sent to the player. * * @param sender Source of the command * @param command Command which was executed * @param labe...
What the ‘greater good’ excludes: Patients left behind by pre‐operative COVID‐19 screening in an Ethiopian town Abstract During the coronavirus disease 2019 (COVID‐19) pandemic, bioethical analyses often emphasized population health and societal benefit. Hospital policies frequently focused on reducing risk of transmi...
<gh_stars>0 import xml.etree.ElementTree as ET def get_input_data_xml(file_name): mytree = ET.parse(file_name) myroot = mytree.getroot() return myroot
package main import ( "encoding/xml" ) type Request struct { XMLName xml.Name `xml:"Request"` Subject Subject `xml:"Subject"` Resource Resource `xml:"Resource"` Action Action `xml:"Action"` Environment Environment ...
// Method to draw the counter button on top of the shopping cart icon in the toolbar private Drawable buildCounterDrawable(int count, int backgroundImageId) { LayoutInflater inflater = LayoutInflater.from(this); View view = inflater.inflate(R.layout.cart_menuitem_layout, null); view.setBackgrou...
#include <iostream> #include <cstdlib> #include <cstdio> #include <algorithm> #include <string> #include <map> #include <vector> using namespace std; const int N = (int)1e5 + 100; int n; string f[N], l[N]; vector <string> all; map<string, int> inv; vector<int> can[N]; int pos[2*N]; int p[N], r[N]...
/** * Returns the a sequence of tokens. * This will returns number of tokens specified by {@code count}, * except EOF token ({@link JavadocTokenKind#EOF}) and its trailing tokens. * @param scanner the target scanner * @param start the starting index * @param count the max token count ...
<gh_stars>1-10 fn main() { println!("{}", Solution::missing_number1(vec![3, 0, 1])); println!( "{}", Solution::missing_number1(vec![9, 6, 4, 2, 3, 5, 7, 0, 1]) ); } struct Solution; impl Solution { pub fn missing_number(nums: Vec<i32>) -> i32 { (0..=nums.len() as i32).sum::<i32...
/* Given an array of integers ,find the second largest value Example 01: Input: [3,2,1,9,8,4,6,5,4] Output: 9 Example 02: Input: [] Output: */ package main import ( "errors" "log" ) func main() { tests := [][]int{{2, 7, 4, 1, 8, 1}, {1, 3}, {9, 3, 2, 10}, {0}, {}} for _, test := range tests { index, val...
<filename>Remoting/Views/Testing/Cxx/TestImageScaleFactors.cxx<gh_stars>1-10 /*========================================================================= Program: ParaView Module: TestImageScaleFactors.cxx Copyright (c) Kitware, Inc. All rights reserved. See Copyright.txt or http://www.paraview.org/HTML/Copyright...
<filename>collector/parsers.go package collector import ( "github.com/prometheus/client_golang/prometheus" "strconv" ) func parseConstMetric(stat JvbStat, desc *prometheus.Desc, valType prometheus.ValueType) (prometheus.Metric, error) { if value, err := strconv.ParseFloat(stat.Value, 32); err == nil { return pro...
Foreign Direct Investment in East Africa - A Comparative Analysis of its Investment Laws Foreign direct investment (FDI) as a means of economic growth has been welcomed by most East African nations in recent times. Considerable liberalization of the prevalent investment regulations has been undertaken to facilitate th...
/** * * @author Matti Tahvonen */ public class GridWithEditorRow extends AbstractTest { @Override public Component getTestComponent() { List<Person> listOfPersons = Service.getListOfPersons(100); final Person selectedDude = listOfPersons.get(2); MGrid<Person> g = new MGrid<Person>(...
<reponame>lucaspouzac/algoliasearch-client-java-2<filename>algoliasearch-apache/src/test/java/com/algolia/search/client/TimeoutTest.java package com.algolia.search.client; import static com.algolia.search.integration.TestHelpers.ALGOLIA_ADMIN_KEY_1; import static com.algolia.search.integration.TestHelpers.ALGOLIA_APPL...
/** * Reset parser for given input. * @param input string input * @return this parser. */ public PegLegParser<V> using(CharSequence input) { this.source = new Source(input); frame = new LinkedList<>(); values = new Values<>(); lastReturn = null; lastSuccessfulReturn = null; farth...
/*! * @file * @brief Stuff for working with configuration. */ #pragma once #include <arataga/exception.hpp> #include <arataga/bandlim_config.hpp> #include <spdlog/spdlog.h> #include <asio/ip/address.hpp> #include <algorithm> #include <chrono> #include <memory> #include <ostream> #include <string_view> #include...
<reponame>hucsmn/peg<filename>peg.go<gh_stars>1-10 // Package peg implements the Parsing Expression Grammars inspired by LPeg. // // This package implements the Parsing Expression Grammars (PEGs), // a powerful tool for pattern matching and writing top-down parsers. // PEGs were designed to focus on expressing the matc...
<filename>pkg/apis/eventbus/v1alpha1/generated.pb.go /* Copyright 2020 BlackRock, 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 require...
// Init initialize application configuration. func Init(opts ...Option) error { viper.Reset() vip := viper.GetViper() vip.AutomaticEnv() vip.SetEnvKeyReplacer(strings.NewReplacer(".", "_")) pflag.CommandLine.AddGoFlagSet(flag.CommandLine) pflag.Parse() if err := vip.BindPFlags(pflag.CommandLine); err != nil { ...
/** \brief Worker thread. * * Woken by thread flags to receive packets or clean up transmit * * \param[in] pvParameters pointer to the interface data */ void STM32_EMAC::rmii_watchdog_thread_function(void *pvParameters) { struct STM32_EMAC *stm32_enet = static_cast<STM32_EMAC *>(pvParameters); while (1) ...
// // Created by <NAME> on 2022/02/04. // #include "Base/Input.h" Input::Input(float last_xpos, float last_ypos, float keyboard_speed, float mouse_speed) : last_xpos_(last_xpos), last_ypos_(last_ypos), keyboard_speed_(keyboard_speed), mouse_speed_(mouse_speed) {} Input::~Input() {} void Input:...
// Create a templated solidityContract from an native contract description func NewSolidityContract(contract *native.Contract) *solidityContract { return &solidityContract{ SolidityPragmaVersion: ">=0.4.24", Contract: contract, } }
<filename>src/cache/clock.rs use std::marker::PhantomData; use std::ptr::NonNull; struct ClockEntry<T> { value: T, next: NonNull<ClockEntry<T>>, } /// A simple clock, i.e. a circular singly linked list. pub struct Clock<T> { /// Contains the pointer to the current tail of the circular list. tail: Opti...
<commit_msg>Substitute pragma once for ifndef guards <commit_before> struct Sprite { SDL_Rect Rect; iPoint Pivot; }; <commit_after> struct Sprite { SDL_Rect Rect; iPoint Pivot; }; #endif // __SPRITE_H__
# widgets.py import tkinter as tk from tkinter import ttk import sqlite3 from tkinter import messagebox from styles import make_formats_dict, NEUTRAL_COLOR from utes import create_tooltip from query_strings import select_current_person_id import dev_tools as dt from dev_tools import looky, seeline ...
//CADASTRA O PRODUTO NO FINAL DA LISTA void inseri_produto_fim(Listaproduto *listaproduto, produto dado) { Noproduto* novo = (Noproduto *) malloc(sizeof(Noproduto)); novo->dado = dado; novo->prox = NULL; if(listaproduto->inicio == NULL) { listaproduto->inicio = novo; } else { Noproduto* pi; for(pi = lista...
N = int(input()) a = list(map(int, input().split())) a.sort() x = a[0] y = a[N // 3] z = a[- N // 3] if a[-1] == 0: print('Yes') else: if N % 3 == 0: if a[N // 3 - 1] == 0 and y == a[-1]: print('Yes') else: if a.count(x) == N // 3 and a.count(y) == N // 3 and a.count(z) == N // 3: if x ^ y == z and y ^...
<gh_stars>0 package lib import ( "log" "math/big" "time" tele "gopkg.in/telebot.v3" ) func CreateBot(telegramBot string) *tele.Bot { pref := tele.Settings{ Token: telegramBot, Poller: &tele.LongPoller{Timeout: 10 * time.Second}, } b, err := tele.NewBot(pref) if err != nil { log.Fatal(err) } return...
package meta import ( "io/ioutil" "os" "path/filepath" "testing" "github.com/gobuffalo/envy" "github.com/stretchr/testify/require" ) func Test_ModulesPackageName(t *testing.T) { r := require.New(t) tmp := os.TempDir() modsOn = true r.NoError(os.Chdir(tmp)) tcases := []struct { Content string Pac...
Early last year, we [made some adjustments](http://boards.na.leagueoflegends.com/en/c/riot-official/nWyb57Ti-rp-price-adjustment-in-canada) to the price of RP in Canada due to the weakening of the Canadian dollar in comparison to the US dollar. Since then, we’ve continued to monitor the gap in RP purchasing power betwe...
def process_options(self, func: FunctionType, options, context=None): raise NotImplementedError
class Compiler: """ Given a intent with underspecified inputs, compile the intent into fully specified visualizations for visualization. """ def __init__(self): self.name = "Compiler" warnings.formatwarning = lux.warning_format def __repr__(self): return f"<Compiler>" ...
def buffer(qgeometry, distance: float, resolution=None, cap_style=CAP_STYLE.flat, join_style=JOIN_STYLE.mitre, mitre_limit=None, overwrite=False): if mitre_limit is None: mitre_limit = DefaultMetalOptions.default_generic.geometry.buffer_mitre...
# -* coding: utf-8 -*- """Plane (1st order) surfaces.""" from .surfaces import SymbolicSurface class Plane(SymbolicSurface): """Plane surface.""" def __init__(self): super().__init__() raise NotImplementedError
/// Creates a new `RegisteredProtocol`. pub fn new(protocol: impl Into<ProtocolId>, versions: &[u8], handshake_message: Arc<RwLock<Vec<u8>>>) -> Self { let protocol = protocol.into(); let mut base_name = b"/substrate/".to_vec(); base_name.extend_from_slice(protocol.as_bytes()); base_name.extend_from_slice(b"/...
<filename>graph/src/blockchain/mod.rs<gh_stars>0 //! The `blockchain` module exports the necessary traits and data structures to integrate a //! blockchain into Graph Node. A blockchain is represented by an implementation of the `Blockchain` //! trait which is the centerpiece of this module. pub mod block_ingestor; pu...
/** * End the boss fight * @param forced If the end of the fight was forced (By a command or otherwise). If forced is false it is assumed * the fight was ended by killing the boss */ public static void endFight(boolean forced) { String endMessage = Messages.get("Status-Ended"); if (forced) { ...
// ending in every node inside a cluster. The above connections are updating the queryPatter. private static void connectClustersAccordingToNode( List<Cluster> clusters, ORMNode interconnectNode, List<ORMNode> containedSchemaNodes, List<PatternNode> containedPatterNodes, ORMSchemaGraph s...
<filename>src/app/pages/professeurs/professeurs.component.ts import { Component, OnInit } from "@angular/core"; import {ModalDismissReasons, NgbModal} from '@ng-bootstrap/ng-bootstrap'; import {MatDialog} from '@angular/material/dialog'; import {Router} from '@angular/router'; import {Eleve} from '../../../assets/model...
/** * System: CleanBnB * Name: TeacherDaoImpl * Description: Class that represents a TeacherDaoImpl's Entity in the application * * @author carlosdeltoro * @version 1.0 * @since 11/21/21 */ public class TeacherDaoImpl extends SessionCourse implements TeacherDao { ...
// Help returns long-form help text. func (c *CmdGenConfig) Help() string { txt := fmt.Sprintf(` Usage: %s %s name Description: %s Required Args: name The software name that you want to generate a configuration. Available names are "postfix" and "dovecot". `, c.CmdName, c.SubCmdName, c....
Get the biggest Swansea stories by email Subscribe Thank you for subscribing We have more newsletters Show me See our privacy notice Could not subscribe, try again later Invalid Email The owner of dachshund dogs and puppies worth £20,000 stolen from a house says she has received a phone call demanding a ransom. Julie...
President and Chief Operating Officer at AirTronic USA Richard Vandiver says that his company began cooperation with Ukraine two years ago, and first batches of Precision Shoulder-fired Rocket Launchers (PSRLs) were shipped to Ukraine in 2016, VoA said. The PSRL is a U.S.-manufactured advanced version of the Soviet-de...
<filename>filter/clusterAccessLog.go package filter import ( "time" motan "github.com/weibocom/motan-go/core" ) type ClusterAccessLogFilter struct { next motan.ClusterFilter } func (t *ClusterAccessLogFilter) GetIndex() int { return 1 } func (t *ClusterAccessLogFilter) GetName() string { return ClusterAccessL...
// loop for handling metric events (appends and Get/Update DB responses) // TODO: we can use multiple Go routines and spread the metrics across based on Hash LSB func (mc *MetricsCache) Start() error { go func() { for { select { case resp := <-mc.responseChan: mc.rmapMtx.Lock() metric, ok := mc.request...
import { ScaleValue, ScaleItem } from "../types" /** * Takes a keypress on a div that's imitating a radio and determines where the selection should go. * Uses the following as a guide, with one modification - allowing space press on a selected item to unselect: * https://www.w3.org/TR/wai-aria-practices/examples/ra...
<filename>fhs-project/hello-web/Main.hs import Web.Scotty hi :: ActionM () hi = html "Hello!" main :: IO () main = scotty 3000 $ do get "/hi" $ hi get "/hello" $ hi get "/echo/:word" $ do word <- param "word" html $ mconcat [ "<h1>Hello! You said ", word, "!</h1>" ]
<reponame>misfits42/advent_of_code_2017 use super::utils::collections::Spinlock; #[aoc_generator(day17)] fn generate_input(input: &str) -> usize { return input.trim().parse::<usize>().unwrap(); } #[aoc(day17, part1)] fn solve_part_1(input: &usize) -> usize { // Create a new spinlock let skip_size = *input...
package gruff import ( "fmt" ) // Inference is an edge from the target (a Claim or Argument) of an Argument // to the Argument that is making the inference type Inference struct { Edge } // ArangoObject interface func (i Inference) CollectionName() string { return "inferences" } func (i Inference) ArangoKey() s...
package com.codeborne.selenide.conditions; import com.codeborne.selenide.CheckResult; import com.codeborne.selenide.Condition; import com.codeborne.selenide.Driver; import org.openqa.selenium.WebElement; import javax.annotation.Nonnull; import javax.annotation.ParametersAreNonnullByDefault; @ParametersAreNonnullByDe...
import numpy as np import tensorflow as tf """ Disclaimer: the weight_variable_glorot function from this file comes from tkipf/gae original repository on Graph Autoencoders """ def weight_variable_glorot(input_dim, output_dim, name = ""): """ Create a weight variable with Glorot&Bengio (AISTATS 2010) initial...
Advertisement Photo: Nautilus Minerals Like a Tank: The heavy-duty equipment for mining the ocean floor, like the partially assembled machine shown here, is built to withstand punishing conditions 1,600 meters below the waves. For decades, futurists have predicted that commercial miners would one day tap the unimagin...
Incidence and impact of surgical site infections on length of stay and cost of care for patients undergoing open procedures Background Surgical site infections (SSIs) are associated with increased morbidity and mortality; however, current SSI rates across open procedures and their effect on healthcare delivery are unk...
// deriveClone1 returns a clone of the src parameter. func deriveClone1(src BuiltInTypes) BuiltInTypes { dst := new(BuiltInTypes) deriveDeepCopyPtrToBuiltInTypes(dst, &src) return *dst }
s = input() q = int(input()) front = [] back = [] cnt = 0 for i in range(q): t = input() if t[0] == '1': cnt ^= 1 else: f = 1 if int(t[2]) == 1 else 0 c = t[4] if cnt ^ f: front.append(c) else: back.append(c) ans = ''.join(front)[::-1] + s +...
/** * @author Soham Chakravarti * */ public class CommandTransactionInterceptor { public MultiExecuteOutput handleResponse(MultiExecuteOutput rawResult) { return rawResult; } public MultiExecuteOutput handleResponse(ExecuteOutput.BehaviorExecute<?> rawResult) { return new MultiExecuteOutput(rawResult); } ...
<reponame>enternityFan/FakeNewsProject<filename>Module/RNNModel.py<gh_stars>0 # @Time : 2022-02-24 15:36 # @Author : Phalange # @File : RNNModel.py # @Software: PyCharm # C'est la vie,enjoy it! :D import math import torch from torch import nn from torch.nn import functional as F from d2l import torch as d2l def mlp(nu...
/** * Convolves a 1D kernel horizontally and vertically */ private static void convolve1D( GrayU8 gray ) { var kernel = new Kernel1D_S32(2); kernel.offset = 1; kernel.data[0] = 1; kernel.data[1] = -1; var output = new GrayS16(gray.width, gray.height); GConvolveImageOps.horizontal(kernel, gray, output, ...
def recognize_char(input_img, first_letter_model,first_letter_labels, second_letter_model, second_letter_labels,digit_model, digit_labels, model, labels): blur = cv2.bilateralFilter(input_img,9,95,95) blur = cv2.detailEnhance(blur, 5, 0.95) gray_img = cv2.cvtColor(blur, cv2.COLOR_BGR2GRAY) canny_edges =...
Last year, as in many previous years, I sat next to my phone on my birthday at eight in the morning, waiting for a call. I kept waiting. The call never came. I get a few calls from friends and family on my birthday. But I could be certain that a call would come at exactly eight on that day. No mistake. It always came. ...
//////////////////////////////////////////////////////////////////// // Function: PNMImage::do_fill_distance // Access: Private // Description: Recursively fills in the minimum distance measured // from a certain set of points into the gray channel. /////////////////////////////////////////////...
The conclusion of the 2014 season brings with it word that the San Francisco 49ers will have a little bit more space under the salary cap in 2015. According to the NFLPA salary database, Anthony Davis has seen his 2015 base salary drop from $2,350,000 to $1,850,000. When Davis first signed his contract, we learned tha...
<filename>pampas-ui-backend/src/main/java/com/github/pampas/ui/service/base/ServiceInfoServiceImpl.java package com.github.pampas.ui.service.base; import com.github.pampas.common.tools.AssertTools; import com.github.pampas.common.tools.JsonTools; import com.github.pampas.storage.entity.ServiceCondition; import com.git...
/** * Class to hold default, historical and in-simulation travel times for a link * * \author Harish Loganathan */ class LinkTravelTime { private: typedef unsigned int TimeInterval; typedef std::map<unsigned int, double> DownStreamLinkSpecificTT_Map; typedef std::map<unsigned int, TimeAndCount> DownStre...
<reponame>Trisfald/choices<filename>src/lib.rs //! Easy HTTP configuration library. //! //! `choices` is a library that lets you expose your application's configuration //! over HTTP with a simple struct! //! //! ## Examples //! //! Given the following code: //! //! ```no_run //! use choices::Choices; //! use lazy_stat...
The New York Jets and the Indianapolis Colts distributed huge quantities of Vicodin and the powerful anti-inflammatory drug Toradol to their players, according to court documents unsealed today. The documents are part of an ongoing federal lawsuit filed by several former NFL players who say the teams gave them massive...
<filename>src/leetcode/contests/contest_186/MaximumPointsFromCards.java package leetcode.contests.contest_186; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import others.MasterPrinter; import java.util.Arrays; public class MaximumPointsFromCards...
/** * A method used to execute our reload task. * * @param user Entity that executed the command * @since 1.1 */ private void executeReload(@NotNull User user) { if (user.hasPermission(Permission.ALL, Permission.RELOAD)) { config.reload(); locale.reload(); ...
/** * Abstract parent implementation of Output Rate Limiting. Output Rate Limiting is used to throttle the output of * Siddhi queries based on various criteria. * * @param <S> current state of the RateLimiter */ public abstract class OutputRateLimiter<S extends State> implements PartitionCreationListener { pr...
<reponame>syslist/Syslist #ifndef MOUSE_COLLECTOR_H_INCLUDED #define MOUSE_COLLECTOR_H_INCLUDED #include <CollectProto.h> class MouseCollector: public AutoCreateDataCollector<MouseCollector> { public: MouseCollector() {} virtual ~MouseCollector() {} virtual long Collect(NVDataItem ** ReturnItem); }; #endif
def space_init(self, agent_space, body_a, global_nets): self.agent_space = agent_space self.body_a = body_a self.aeb_space = agent_space.aeb_space self.nanflat_body_a = util.nanflatten(self.body_a) for idx, body in enumerate(self.nanflat_body_a): if idx == 0: ...
from .models import Category, Color, Size from django.db.models import Count from cache_memoize import cache_memoize @cache_memoize(3600) def menu(request): categs = Category.objects.annotate(fashion_count=Count('fashionitem')).order_by('-fashion_count')[:20] colors = Color.objects.annotate(color_count=Count(...
namespace PrototypePattern { export interface Prototype { split(): Prototype; toString(): string; } export class SingleCellOrganism1 implements Prototype { split() : Prototype { return new SingleCellOrganism1(); } toString(): string { return...
import logging from reconcile import queries from reconcile.utils.gitlab_api import GitLabApi QONTRACT_INTEGRATION = 'jenkins-webhooks-cleaner' def run(dry_run): instance = queries.get_gitlab_instance() settings = queries.get_app_interface_settings() gl = GitLabApi(instance, settings=settings) prev...
package heller.socket.rpc.demo.provider; import com.rpc.framework.annotation.RpcService; import heller.socket.rpc.demo.api.EchoService; @RpcService public class EchoServiceImpl implements EchoService { @Override public String echo(String echo) { return " : " + echo; } }
By: J. Schafer and Stephen Koranda At a time when Kansas is facing a serious budget deficit and a court order saying school funding is inadequate, Governor Sam Brownback may be preparing to leave the state for a job in Italy. A former high-ranking government official, speaking on condition of anonymity, tells Kansas P...