content
stringlengths
10
4.9M
<filename>src/Utils/Thrush.hs module Utils.Thrush ((|>)) where (|>) a b = b a
<gh_stars>0 #include "system/postoffice.h" #include "proto/heartbeat.pb.h" // #include <omp.h> #include "system/customer.h" #include "system/postmaster.h" #include "system/app.h" #include "util/file.h" namespace PS { DEFINE_int32(num_servers, 0, "number of servers"); DEFINE_int32(num_workers, 0, "number of clients");...
#include "../../net/Uri.hpp" #include "./ApnSetting.hpp" #include "../../../JString.hpp" #include "../../../java/net/InetAddress.hpp" #include "./ApnSetting_Builder.hpp" namespace android::telephony::data { // Fields // QJniObject forward ApnSetting_Builder::ApnSetting_Builder(QJniObject obj) : JObject(obj) {} ...
<gh_stars>100-1000 # Add the area as a column combined['area'] = combined.geometry.area
use x86intrin::*; /// Returns __m128i where all bits are set to 1. #[inline] pub fn mm_setone_si128() -> m128i { let zero = mm_setzero_si128(); mm_cmpeq_epi64(zero, zero) } /// Bit-wise not for __m128i. #[inline] pub fn mm_not_si128(a: m128i) -> m128i { mm_setone_si128() ^ a } /// Parallel bit-wise or op...
<filename>src/register/forms.py # Copyright 2020 <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 applica...
The aggressive tactics of law enforcement, an ongoing controversy in communities of color, have recently come into the national media spotlight—if briefly—as the constitutionally dubious practice of arbitrarily stopping and frisking (mostly black and Latino) citizens by police officers was put on trial in federal court...
Dysprosium-doped PbGa2S4 laser generating at 4.3 μm directly pumped by 1.7 μm laser diode. In this Letter, we demonstrate the pulsed and CW operation of the Dy:PbGa(2)S(4) laser directly pumped by the 1.7 μm laser diode. In the pulsed regime (pulse duration 5 ms; repetition rate 20 Hz), the maximum mean output power o...
typedef struct Addr Addr; typedef struct Client Client; typedef struct Page Page; typedef struct Proc Proc; typedef struct String String; typedef struct Text Text; #define NSTACK 1024 struct Proc { jmp_buf label; Proc *nextrun; /* next in runqueue order */ Proc *next; /* next allocated */ Mouse mouse; int dea...
def ConvertKeysFromVTK(inputDict,lambdaDict={"starttime": lambda x: x if x == None else UTCDateTime(x), "endtime": lambda x: x if x== None else UTCDateTime(x), },**kwargs): return ConvertKeys(inputDict,lambdaDict)
/** * The persistent class for the school database table. * */ @Entity @Table(name="school") @NamedQuery(name="School.findAll", query="SELECT s FROM School s") public class School implements Serializable { private static final long serialVersionUID = 1L; @Id private Integer number; @Column(name="name") priva...
package comment import ( "context" "git.900sui.cn/kc/rpcinterface/interface/common" ) type ArgsGetCommentTotalStatic struct { common.BsToken } type ReplyGetCommentTotalStatic struct { TodayCommentTotalNum int // 今日客户评价总数目 PendingTotalNum int // 待处理总数 } type DayStatistics interface { // 获取客户评价数据(客户今日完成评价总...
An inquiry into the government’s flawed disability benefit assessment regime has produced more online evidence from the public than any other investigation ever held by a House of Commons select committee. More than 2,800 submissions had been made to the work and pensions committee through its online forum by the time...
<reponame>franpena-kth/learning-deep-learning import math import time import torch from sklearn.metrics import accuracy_score from torch import nn from torch.nn import functional import torchvision from matplotlib import pyplot from torchvision import transforms from six.moves import urllib N_EPOCHS = 10 BATCH_SIZE_T...
/** * Returns the catch that will throw a runtime exception if any. If the exception is not a runtime exception, * it will be wrapped with FunctionInvocationException. * * @param <OUTPUT> the output data type. * @return the catch. */ public static <OUTPUT> Catch<OUTPUT, O...
/** * Main utility to call bazel commands, wrapping its input and output to the message console. */ public class BazelCommand { private static Joiner NEW_LINE_JOINER = Joiner.on("\n"); // Returns the path of the resources file from this plugin. private static File getAspectWorkspace() { try { URL ur...
import React from 'react'; import Fetcher from '../Middle/ThreeBrowser/Fetcher'; import Hierarchy from '../Middle/ThreeBrowser/Hierarchy'; import HierarchyNode from '../Middle/ThreeBrowser/HierarchyNode'; import '../../css/HierarchyBrowser.css'; import PickedDimension from './PickedDimension'; /** * The hierarchy bro...
from houdini import handlers from houdini.handlers import XTPacket from houdini.plugins import IPlugin from houdini import commands from houdini import permissions class Example(IPlugin): author = "Allinol" description = "Commands Plugin" version = "1.0.0" def __init__(self, server): ...
<filename>src/org.xtuml.bp.ui.text.test/src/org/xtuml/bp/ui/text/test/i673Tests/placeholder/MarkerBasedPlaceholderLifecyleTest.java //===================================================================== // //File: $RCSfile: MarkerBasedPlaceholderLifecyleTest.java,v $ //Version: $Revision: 1.13 $ //Modified:...
Carrier lifetime versus anneal in low temperature growth GaAs The photoexcited carrier lifetimes in ex situ‐annealed low temperature growth GaAs are measured with a femtosecond transient absorption experiment. The study encompassed two low temperature growth GaAs films with approximately 0.3% and 0.9% excess arsenic i...
ANALYSIS/OPINION: A little over five years ago at the 2007 DARPA Grand Challenge, competing teams of autonomous vehicles were creeping along at a 14-mph pace as they attempted to finish a 60-mile road course. Fast forward to the present day, and Google’s driverless cars have traveled over 300,000 road miles at traffic...
{-# LANGUAGE TypeFamilies #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE DataKinds #-} module Manifest.Function ( Function , shift , function , compose , (~>) , fmapF , contramapF , pureFunction , PFStrategy(..) , runAt , runAssign ...
#include "metsrv.h" // see ReflectiveLoader.c... extern HINSTANCE hAppInstance; // see remote_dispatch_common.c extern LIST * extension_list; // see common/base.c extern Command *extensionCommands; DWORD request_core_loadlib(Remote *remote, Packet *packet) { Packet *response = packet_create_response(pac...
Approximation Approach to Solving The Inverse Problem of Geoelectrics Using Neural Networks Summary The paper presents an approximation neural network algorithm for solving conditionally correct coefficient inverse problems of geoelectrics in the class of media with piecewise constant electrical conductivity given on ...
Finding a song that genuinely resonates with me on first listen is not an everyday occurrence, but Elvis Depressedly’s single “Slip” does exactly that. The track — taken from their new EP California Dreamin’, which on the flip-side of the combination LP contains their previously released EP, Holo Pleasures — has the sa...
#!/usr/bin/python import math import sys for line in sys.stdin: d, h, v, e = map(float, line.split()) A = math.pi * (d/2) * (d/2) if A*e >= v: print 'NO' else: T = A*h/(v-A*e) print 'YES' print T
import java.util.Scanner; public class B { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String[] strings = scanner.nextLine().split(" "); int n = Integer.parseInt(strings[0]); int k = Integer.parseInt(strings[1]); double t = Doub...
/* * This is the code that populates ores. * The placeOreType() method actually places the ores * The populate() method calls the placeOreType() method for each of the items that spawn. * You can add or remove ores from the populate() method as you please. * They do not have to be naturally spawning...
<gh_stars>0 /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.pamarin.cpe4235.hr.service.impl; import com.pamarin.cpe4235.hr.model.Employee; import com.pamarin.cpe4235.hr.r...
/** * Configure the mbean attribute as a bean with the bean unmarshalled from * the attribute xml contents using the JBossXB unmarshaller. * * @param attr - the mbean attribute * @param cl - the class loader to use * @param element - the mbean attribute element from the jboss-service descriptor...
Office Depot® Brand Standard Staples, 1/4", 5,000 Staples Per Pack, Box Of 3 Packs is rated 4.8 out of 5 by 150 . Rated 5 out of 5 by RyanBB from Best Staples I have tried the name brand, more expensive staples and these Office Depot brand staples are every bit as good. You get a ton of them in the boxes, they fit my ...
/** * This function represents the provider-side of GlobalServiceDiscovery, where the GateKeeper of the provider Cloud sends back its information if * the Authorization and Service Registry polling yields positive results. * * @return GSDAnswer */ @PUT @Path("gsd_poll") public Response GSDPoll(@Valid...
pub mod parser; pub mod extractable; use crate::template::{Expression, VariableReferenceName, Fillable}; use crate::core::runtime::{Context}; use async_trait::async_trait; use crate::core::Value; #[derive(Clone,Debug,PartialEq)] pub struct Text{ pub blocks:Vec<Block> } #[derive(Clone,Debug,PartialEq)] pub enum Blo...
I’ve been grated down to just about zero faith in our justice system for rape survivors. I often hear people demand survivors to report/press charges to handle their sexual assault; these people want to believe that justice will be served if only victims would just go through the system. But the system doesn’t work. It...
/** * Tests the functionality of LedgerChecker. This Ledger checker should be able * to detect the correct underReplicated fragment */ public class TestLedgerChecker extends BookKeeperClusterTestCase { private static final byte[] TEST_LEDGER_ENTRY_DATA = "TestCheckerData" .getBytes(); private sta...
The role of validated analytical methods in JECFA drug assessments and evaluation for recommending MRLs. The Joint Food and Agriculture Organization and World Health Organization (FAO/WHO) Expert Committee on Food Additives (JECFA) is one of three Codex committees tasked with applying risk analysis and relying on inde...
/** * @param args the command line arguments */ public static void main(String[] args) { Rectangulo r1 = new Rectangulo(); r1.setLadoA(2); r1.setLadoB(2); System.out.println(r1.getArea()); }
""" Test used to verify PyWavelets Discrete Wavelet Transform computation accuracy against MathWorks Wavelet Toolbox. """ from __future__ import division, print_function, absolute_import import numpy as np import pytest from numpy.testing import assert_ import pywt from pywt._pytest import (uses_pymatbridge, uses_pr...
package internal import ( "net/http" scribble "github.com/nanobox-io/golang-scribble" ) // HandlerFuncType is the type signature any handler function should have type HandlerFuncType = func(*AppContext, *http.Request) ([]byte, int, error) // AppContext provides all the state info that the handlers need to process...
import nock from 'nock' import { SearchkitConfig } from '@searchkit/sdk' import { CustomQuery } from '@searchkit/sdk' import { setupTestServer, callQuery } from './support/helper' import HitsMock from './__mock-data__/HitResolver/Hits.json' describe('Query Options', () => { describe('should return as expected', () =...
/** * @author Dmitrii Tikhomirov <chani@me.com> * Created by treblereel on 7/27/18. */ public class WebglHdr extends Attachable { public static final String name = "hdr"; public Mesh quad; public ShaderMaterial materialHDR; public Clock clock = new Clock(); public double rate, sign = 1; pu...
def _get_coverage_by_grouper_obj(data, grouper_obj): coverage = grouper_obj.count().divide(_max_coverage_count(data.index, grouper_obj.mean().index), axis=0) return coverage
def convert_pixels_to_screen_data(pixel_data, image_width, image_height): if len(pixel_data) != (image_width * image_height): raise ValueError('Invalid Dimensions: len(pixel_data) {0} != image_width={1} * image_height={2} (== {3})'. format(len(pixel_data), image_width, image_height, image_width ...
#include <stdio.h> #include <math.h> /* 標準偏差を求めるプログラム */ int main(int argc, char const *argv[]) { int i, n; while(1) { scanf("%d", &n); if(n == 0) break; int score[1000] = {0}; double sum = 0, avg = 0, dev = 0, devpw = 0, devsum = 0, var = 0, stdev = 0; for(i = 0; i < n; ++i) { scanf("%d", &score[i]); ...
. Make Year Model Engine Conv. Drivetrain Conv. Asp. Conv. Notes . Alfa Romeo 2008 8C None None CS . Alfa Romeo 2010 8C Spider None None TT, CS Month One DLC . Alfa Romeo 2011 Zagato TZ3 Stradale None None TT, TS, CS April DLC . AMC 1971 Javelin AMX None None TT, TS December DLC . Ascari 2012 KZ1R None None TT, CS...
/** * Set the execution strategy to apply on registry watcher / listener when un mutation * action is executed on the registry. The default strategy is a parallel execution. * * @param executionStrategy * to apply on {@link Registry} state change. * @ret...
import { SortDirection } from './sort-direction'; export class SortSpec { public sortParam = ''; constructor(sortPathSpec: string, direction: SortDirection | string) { sortPathSpec = sortPathSpec ? sortPathSpec.trim() : ''; direction = direction ? direction.trim() : ''; if (sortPathSpec && direction) { th...
<reponame>cool-dude/leetcode<gh_stars>0 /* * LC163: Missing Ranges * https://leetcode.com/problems/missing-ranges/ Given a sorted integer array nums, where the * range of elements are in the inclusive range * [lower, upper], return its missing ranges. Example: Input: nums = [0, 1, 3, 50, 75], lower = 0 and upper = 99...
The efficacy of lidocaine administered via the LITA tracheal tube in attenuating the extubation response in beta-blocked patients following craniotomy. The Laryngotracheal Instillation of Topical Anaesthetic (LITA) tracheal tube has an additional pilot tube through which local anaesthetic can be instilled into the lar...
import React from "react"; import { createNativeStackNavigator } from "@react-navigation/native-stack"; import { PageOneScreen } from '../screens/PageOneScreen'; import { PageTwoScreen } from "../screens/PageTwoScreen"; import { PageThreeScreen } from "../screens/PageThreeScreen"; import { PersonScreen } from "../scree...
/** * Load job schedules from the given directories * * @param dirs The directories to check for properties * @param suffixes The suffixes to load * @return The properties */ public static Props loadPropsInDirs(final List<File> dirs, final String... suffixes) { final Props props = new Props(); ...
def padFrames(self, rxMin, rxMax, atoms): midxMin = set(self.traj_midx[rxMin, atoms]) midxMax = set(self.traj_midx[rxMax, atoms]) for minPad in range(self.PadTime+1): if rxMin-minPad == 0: break if not self.traj_stable[rxMin-minPad, atoms].all() or set(self.traj_midx[rxMi...
/* Check if packet is ARP request for IP */ static inline int arp_check(struct ethhdr *eth, struct arphdr *arp, struct arp_eth *arp_eth, __be32 ip, union macaddr *mac) { union macaddr *dmac = (union macaddr *) &eth->h_dest; return arp->ar_op == bpf_htons(ARPOP_REQUEST) && arp->ar_hrd == bpf_hto...
Stunning Paola Saulino has posted dates for a tour of Italian cities throughout January Click to share on WhatsApp (Opens in new window) Click to share on Facebook (Opens in new window) Click to share on Twitter (Opens in new window) A STUNNING Italian actress who offered to perform a sex act on everyone who voted ...
<reponame>tonikasoft/Tosc<filename>tests/encode_decode_test.h<gh_stars>0 TEST decode_encode_int32() { char o[20]; int32_t in = 123456789; int32_t out; encode_int32(in, o); decode_int32(o, &out); ASSERT_EQ(in, out); PASS(); } TEST decode_encode_float32() { char o[20]; float in = 2...
/** * a deck with joker */ public class AllDeck extends Deck{ @Override protected void initDeck() { deck = initSimpleDeck(); deck.add(new Card(null, CardValueType.BLACK_JOKER)); deck.add(new Card(null, CardValueType.RED_JOKER)); } }
import React, { ReactElement } from 'react'; import { differenceInMinutes } from 'date-fns'; import { styleHealthy, styleUnhealthy } from 'Containers/Clusters/cluster.helpers'; import { getDateTime } from 'utils/dateUtils'; import { style0 } from '../utils/health'; const dayInMinutes = 24 * 60; type VulnerabilityDe...
Turn on the radio: Listen close and you might hear the death-rattle of popular music in the form of auto-tuned melisma comprising your top forty… but more than likely you’re actually listening to music composed several decades ago. Indeed, classic rock and other throw-back stations dominate the dial. Top selling concer...
// SetLayout sets a participant podium layout where the layout is either // "custom" or "auto". The users list is of user-ids or empty strings for empty // participant positions. The flag voiceActivation replaces participants // actively by voice detection. The flag showNames show or hides participant // name overlays....
<gh_stars>0 package sns import ( "fmt" "testing" "github.com/stretchr/testify/assert" "github.com/evalphobia/aws-sdk-go-wrapper/config" ) const ( testAppleARN = "arn:aws:sns:us-east-1:0000000000:app/GCM/foo_apns" testGoogleARN = "arn:aws:sns:us-east-1:0000000000:app/GCM/foo_gcm" defaultEndpoint = "http:...
<reponame>schepelin/clean-architecture-with-go package main import ( "context" "crypto/md5" "database/sql" "encoding/hex" "log" "net/http" "os" _ "github.com/lib/pq" "github.com/schepelin/imgupload/pkg/postgres" "github.com/schepelin/imgupload/pkg/uploadsvc" ) type noopShortener struct{} func (ns noopShor...
// See if we've got enough room on the stack for locals plus overhead below // JavaThread::stack_overflow_limit(). If not, throw a StackOverflowError // without going through the signal handler, i.e., reserved and yellow zones // will not be made usable. The shadow zone must suffice to handle the // overflow. // // Kil...
# # Copyright 2021. Clumio, Inc. # from typing import Any, Dict, Mapping, Optional, Sequence, Type, TypeVar from clumioapi.models import aws_environment_embedded from clumioapi.models import aws_environment_links T = TypeVar('T', bound='AWSEnvironment') class AWSEnvironment: """Implementation of the 'AWSEnviro...
def reset(self): self.filepad.delete_many({}) self.db[self.gridfs_coll_name].files.delete_many({}) self.db[self.gridfs_coll_name].chunks.delete_many({}) self.build_indexes()
pub mod controller; pub mod key; pub mod key_set; pub use self::controller::PuyoController; pub use self::key::Key; pub use self::key_set::KeySet;
<reponame>Merlin04/johnpeter-discord<filename>src/database/games.py<gh_stars>10-100 import random from os import getenv from discord.ext import commands import discord class Game(object): def __init__(self, idx, gamers, tc_id=None, vc_id=None, votes=None, voting_message_id=None, winner=None): """ ...
package projectService import ( "context" "github.com/dotenx/dotenx/ao-api/models" ) func (ps *projectService) GetProjectByTag(tag string) (models.Project, error) { noContext := context.Background() return ps.Store.GetProjectByTag(noContext, tag) }
<gh_stars>1-10 import { ApiProperty } from '@nestjs/swagger'; import { Expose } from 'class-transformer'; import { IsDefined, IsOptional, IsUUID as IsUUIDValidator, } from 'class-validator'; import { ComposedPropertyDecorator, DecoratorOptions } from '../types'; import { compose } from './compose'; export...
<filename>frontend/controls/axis_display_group.tsx import * as React from "react"; import { Row, Col } from "../ui/index"; import { AxisDisplayGroupProps, AxisProps } from "./interfaces"; import { isNumber, isUndefined } from "lodash"; import { t } from "../i18next_wrapper"; import { MissedStepIndicator } from "./move/...
<gh_stars>1-10 import torch from torch.utils.data import DataLoader from deepqmc.solver.solver_base import SolverBase from deepqmc.utils.torch_utils import (DataSet, Loss, OrthoReg) class SolverOrbital(SolverBase): def __init__(self, wf=None, sampler=None, optimizer=None, scheduler=None): ...
def validate_license_file(license_filepath): lines = check_utils.read_file_lines(license_filepath) if not re.search(COPYRIGHT_HEADER_PATTERN, lines[0]): sys.exit('Valid copyright header not found in the first line of {}' .format(license_filepath))
def print_degen(aln, **args): extra = fasta.FastaDict() extra["DEGEN"] = make_degen_str(aln) print_align(aln, extra=extra, **args)
def post(self): args = self.reqparse.parse_args() src_fn = args['snapshot'] dummy_path, fn = os.path.split(src_fn) if os.path.exists(src_fn): copyfile(src_fn, "/root/static/ko/"+fn) url = "http://"+cia+":8000/rest/known_objects/" data = {} ...
def _tc_actions(self): _tc_action = self.ij.model.get_param('tc_action') if not isinstance(_tc_action, NoneModel): return _tc_action.valid_values return []
<reponame>Drumato/Depth extern crate colored; use super::super::super::ce::types::Error; use super::super::debug; use colored::*; use debug::DebugSymbol; extern crate cli_table; use cli_table::{Cell, Row}; use std::collections::BTreeMap; type Elf64Half = u16; type Elf64Word = u32; //type Elf64SWord = i32; type Elf64X...
import {Injectable} from '@angular/core'; import {HttpClient} from '@angular/common/http'; import {BehaviorSubject, Observable} from 'rxjs'; import {Config} from '../../shared/model/config/config.model'; import {UUIDGenerator} from '../../shared/util/uuid-generator.util'; import {first, map} from 'rxjs/operators'; /**...
<filename>src/app/services/exercise/exercise.service.ts import { Injectable } from '@angular/core'; import { Exercise } from '../../models/exercise'; import { EXERCISES } from './mock-exercises'; @Injectable() export class ExerciseService { public name: string = 'ExerciseService'; public description: string = 'ret...
Higher concentrations of Arsenic in drinking water have hazardous effects on the human body. Some of these harmful effects including cardiovascular diseases, skin cancers, skin lesions, neurodevelopmental delays and whatnot. It can prove to be lethal if a very high amount of the metal contaminates the drinking water. ...
/** * * @author Cato Auestad {@literal <cato@timeanddate.com>} * */ public class Geo { private String _name; private String _state; private Country _country; private Coordinates _coordinates; /** * The name of the location */ public String getName() { return _name == null ? "" : _name; } /** * T...
import csv import os import numpy as np import pandas as pd import mysql.connector from solardata.query import Query import solardata.config as config class Dataset(object): def __init__(self, name=None, query=None, csv_file=None): """ Represents a dataset of (example, label) pairs Datasets can ...
/** * Class to provide basic intersection information. * * The CoreIntersection class provides: * - the list of all lanes of the intersection and their extends (see CoreIntersection::internalLanes() and * CoreIntersection::getBoundingSphere()) * - the list of lanes entering the intersection (see CoreIntersecti...
<reponame>refrain62/BinarySearch package search.binary; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class App { public static void main( String[] args ) { BinarySearch binarySearch = BinarySearch.getInstance(); int result = BinarySearch.C_NOT_FO...
#include <iostream> #include <cstdlib> #include <string> #include "greeter.pb.h" using greeter::Greeting; namespace { std::string create_greeting(std::string const & whom) { Greeting greeting; greeting.set_whom("Bob"); return greeting.SerializeAsString(); } Greeting deseria...
import * as mongoose from 'mongoose'; export const ConversationSchema = new mongoose.Schema({ conversationCreatorId: String, conversationReceiverId: String, createdAt: Date, });
//Creates report line for single capital city static String[] GenerateCapitalReport(City city) { return new String[] {city.Name, city.Country.Name, Integer.toString(city.Population) }; }
package com.lenyo.hello.spring.cloud.gateway.controller; import com.alibaba.excel.EasyExcel; import com.alibaba.excel.ExcelWriter; import com.alibaba.excel.write.metadata.WriteSheet; import com.lenyo.hello.spring.cloud.gateway.request.DemoData; import com.lenyo.hello.spring.cloud.gateway.util.TestFileUtil; import org....
<filename>CM5/Core/gui-client-impl/src/main/java/ru/intertrust/cm/core/gui/impl/client/panel/SidebarView.java<gh_stars>1-10 package ru.intertrust.cm.core.gui.impl.client.panel; import com.google.gwt.animation.client.Animation; import com.google.gwt.dom.client.Element; import com.google.gwt.dom.client.Style; import co...
def preprocess_geo_sample(sample) -> List: new_sample = {} for key, value in sample.metadata.items(): if key == "characteristics_ch1": for pair in value: if ":" in pair: split = pair.split(":", 1) new_sample[split[0].strip().lower()] = ...
<gh_stars>0 import datetime import json import os import shutil import tempfile # nosec from typing import Dict, List, Optional import click from opta.amplitude import amplitude_client from opta.commands.local_flag import _clean_folder, _clean_tf_folder from opta.constants import REGISTRY, TF_FILE_PATH, VERSION from...
import { ChangeDetectorRef, Component, OnInit } from '@angular/core'; import { Subject } from 'rxjs'; import { EventsBrokerService } from 'src/app/shared/events-broker.service'; import { NotifyService } from 'src/app/shared/notify.service'; import { CodeDefinition } from '../../../../../server/src/events.model'; import...
<filename>modules/src/main/java/org/archive/modules/net/MostFavoredRobotsPolicy.java<gh_stars>1000+ /* * This file is part of the Heritrix web crawler (crawler.archive.org). * * Licensed to the Internet Archive (IA) by one or more individual * contributors. * * The IA licenses this file to You under the Apa...
O17-2 General propensity to pain is a major risk factor for disabling wrist/hand pain Background Analysis of baseline cross-sectional data from the CUPID study has demonstrated widely varying prevalence of disabling wrist/hand pain (DWHP) by country and occupation, which correlated with differences in the prevalence o...
// try adding cells in 8-connected neighborhood to frontier BOOST_FOREACH(unsigned int nbr, nhood8(idx, costmap_)) { if (isNewFrontierCell(nbr, frontier_flag)) { frontier_flag[nbr] = true; unsigned int mx, my; double wx, wy; ...
package com.nitinthecoder.custom.widget.segmentedcontrol.item.column; import section_layout.widget.custom.android.com.sectionlayout.distributive_section_layout.DistributiveSectionLayout; /** * Created by <NAME> on 9/7/2017. */ public abstract class SegmentAdapter<D, VH extends SegmentViewHolder<D>> extends Distrib...
"""Module for operations on maps.""" import hashlib import json import collections from tof_server import config from tof_server.utils import randcoder, png_creator from tof_server.repository import map as map_repository def persist_map(map_data, author_id): """Method for persisting a map based on it's data conte...
The effects of L2 proficiency differences in pairs on idea units in a collaborative text reconstruction task Collaborative text reconstruction tasks such as dictogloss have been suggested as effective second language (L2) learning tasks that promote meaningful interaction between learners and their awareness of L2 tar...
n, m, k = map(int, raw_input().split()) p = map(int, raw_input().split()) s = map(int, raw_input().split()) c = map(int, raw_input().split()) a = {} for i in range(n): if s[i] not in a: a[s[i]] = p[i] else: a[s[i]] = max(a[s[i]], p[i]) z = 0 for i in range(k): if p[c[i] - 1] < a[s[c[i] - 1]]: z += 1 print...
// Copyright 2010 <NAME> // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. package user import ( "fmt" "os" "reflect" "strings" ) type gshadowField int // Fi...
def _compute_distributed(self): distributed = db.session.query( OckovaciMisto.id, ( func.coalesce(func.sum(case([(and_(OckovaciMisto.id == OckovaniDistribuce.ockovaci_misto_id, OckovaniDistribuce.akce == 'Příjem'), OckovaniDistribuce.pocet_davek)], else_=0)), 0) ...
A revolutionary new method of encrypting confidential information has been patented by scientists at Lancaster University. They have been inspired by their discoveries from human biology, which model how the heart and lungs coordinate their rhythms by passing information between each other. A mathematical model based...