content
stringlengths
10
4.9M
Using modeling to understand how athletes in different disciplines solve the same problem: swimming versus running versus speed skating. Every new competitive season offers excellent examples of human locomotor abilities, regardless of the sport. As a natural consequence of competitions, world records are broken every...
It was meant to be a relaxing break in the Bavarian Alps during a summer break from college. I was staying with a friend's aunt, who ran a hotel. One Monday morning, I set out for a hike in the sunshine. But after an hour or so fog started to roll in and, as it thickened, I became lost in a web of trails. Each time I ...
<reponame>PaulGustafson/dpq<filename>app/Main.hs module Main where import ReadEvalPrint import Dispatch import TopMonad import ConcreteSyntax import System.Environment import System.Exit import Control.Exception hiding (TypeError) import System.FilePath main :: IO () main = do p <- getEnv "DPQ" `catches` handlers ...
// Copyright 2016 Google 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...
def with_additional_config(self, environment_dict): check.opt_nullable_dict_param(environment_dict, 'environment_dict') if environment_dict is None: return self else: return PresetDefinition( name=self.name, solid_subset=self.solid_subset, ...
/*Creates a new log for new friends*/ public void createLog(String user1, String user2) { try { if (!containsLog(user1, user2)) { String insert = "insert into chatlog (user1, user2, log) values ('" + user1 + "', '" + user2 + "', '')"; statement.executeUpdate(insert); } } catch (SQLException e) { ...
/* Adds new listener to the listener list. Listener is notified of * any change in ordering of nodes. * * @param chl new listener */ public void addChangeListener(final ChangeListener chl) { if (listeners == null) { listeners = new HashSet<ChangeListener>(); ...
// init runs during package initialization. this will only run during an // an instance's cold start func init() { ctx := context.Background() createTraceExporter() vault.GetSecrets(ctx, &env, envMap) }
<reponame>Sojourn/sundown #ifndef SUNDOWN_SYS_SELECTOR_H #define SUNDOWN_SYS_SELECTOR_H namespace Sundown { class SelectorItem : public std::enable_shared_from_this<SelectorItem> { public: typedef std::shared_ptr<SelectorItem> SP; virtual ~SelectorItem(); virtual const FileDescri...
// GetWorkflowRunLogs gets a redirect URL to download a plain text file of logs for a workflow run. // // GitHub API docs: https://developer.github.com/v3/actions/workflow-runs/#download-workflow-run-logs func (s *ActionsService) GetWorkflowRunLogs(ctx context.Context, owner, repo string, runID int64, followRedirects b...
/** * Like the static method {@link #gallopLeft}, except that if the range contains an element * equal to the specified {@link Comparable} key, the static method {@link #gallopRight} returns * the index after the rightmost equal element. * <p> * @param key the {@link Comparable} key whose insertion point t...
Expanding the Clinico-Genetic Spectrum of Myofibrillar Myopathy: Experience From a Chinese Neuromuscular Center Background: Myofibrillar myopathy is a group of hereditary neuromuscular disorders characterized by dissolution of myofibrils and abnormal intracellular accumulation of Z disc-related proteins. We aimed to c...
import puppeteer from "puppeteer"; export const clickElement = async (selector: string, page: puppeteer.Page) => { await page.waitForSelector(selector); await page.click(selector); };
// RunWithExitCode run a command and returns the exit code func RunWithExitCode(cmd *exec.Cmd) int { if err := cmd.Run(); err != nil { if exitError, ok := err.(*exec.ExitError); ok { return exitError.Sys().(syscall.WaitStatus).ExitStatus() } else { return -1 } } else { return cmd.ProcessState.Sys().(sys...
package option import ( "fmt" ) func ExampleMessage() { fmt.Println(Message(0), Message(1)) // Output: // message0 message1 } func ExampleArgs() { fmt.Println(Args(0), Args(1)) // Output: // args0 args1 }
/* Create a GRPC_QUEUE_SHUTDOWN event without queuing it anywhere */ static event *create_shutdown_event(void) { event *ev = gpr_malloc(sizeof(event)); ev->base.type = GRPC_QUEUE_SHUTDOWN; ev->base.call = NULL; ev->base.tag = NULL; ev->on_finish = null_on_finish; return ev; }
<gh_stars>1-10 import pg from "pg" import { Logger } from "src/logging" import { delayMilliseconds } from "src/utils" type Tables<T extends string> = { [K in T]: `public.${K}` } export const table: Tables<"issue_to_project_field_rule" | "token"> = { issue_to_project_field_rule: "public.issue_to_project_field_rule",...
def distance_correlation(x, y): assert isinstance(x, np.ndarray) and isinstance(y, np.ndarray) if x.dtype not in [np.float32, np.float64]: x = x.astype(np.float32, copy=False) if y.dtype not in [np.float32, np.float64]: y = y.astype(np.float32, copy=False) if x.ndim == 1: x = x[:...
<filename>src/bin/compression/dreamcoder/expr.rs //! The language of Dream&shy;Coder expressions. use super::{parse, util::parens}; use babble::{ ast_node::{Arity, AstNode, Expr}, teachable::{BindingExpr, Teachable}, }; use egg::{RecExpr, Symbol}; use internment::ArcIntern; use nom::error::convert_error; use r...
def solve_maze(maze, y, x): if not solved(maze): for yshift, xshift in [(-1, 0), (0, 1), (1, 0), (0, -1)]: if not maze[y + yshift][x + xshift]: maze[y + yshift][x + xshift] = 1 success = solve_maze(maze, y + yshift, x + xshift) if success: ...
<reponame>titimoby/circuitpython #!/usr/bin/env python3 # # This file is part of the MicroPython project, http://micropython.org/ # # The MIT License (MIT) # # Copyright (c) 2020 <NAME> # Copyright (c) 2020 <NAME> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and as...
<gh_stars>1-10 package io.hektor.fsm.impl; import io.hektor.fsm.Context; import io.hektor.fsm.Data; import io.hektor.fsm.State; import io.hektor.fsm.Transition; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Optional; import java.util.function.BiConsumer; import java...
/* * Evaluate SubscriptingRef fetch for an array slice. * * Source container is in step's result variable (it's known not NULL, since * we set fetch_strict to true), and indexes have already been evaluated into * workspace array. */ static void array_subscript_fetch_slice(ExprState *state, ExprEvalStep *op...
import { Logger, Module } from '@nestjs/common'; import { NetworksService } from './networks.service'; import { NetworksController } from './networks.controller'; import { MongooseModule } from '@nestjs/mongoose'; import { Network, NetworkSchema } from './schemas/network.schema'; @Module({ imports: [ MongooseMod...
// Searches smallest index of tables whose its smallest // key is after or equal with given key. func (tf tFiles) searchMin(icmp *iComparer, ikey internalKey) int { return sort.Search(len(tf), func(i int) bool { return icmp.Compare(tf[i].imin, ikey) >= 0 }) }
Scalability vs. Utility: Do We Have to Sacrifice One for the Other in Data Importance Quantification? Quantifying the importance of each training point to a learning task is a fundamental problem in machine learning and the estimated importance scores have been leveraged to guide a range of data workflows such as data...
/* { dg-additional-options "-Ofast -fno-common" } */ /* { dg-additional-options "-Ofast -fno-common -mavx" { target avx_runtime } } */ #include "tree-vect.h" __attribute__((noinline, noclone)) void foo (float *__restrict x, float *__restrict y, float *__restrict z) { float *__restrict p = __builtin_assume_aligned (...
<reponame>ntbrewer/pixie_ldf_slim<filename>source/include/SsdProcessor.h /** \file SsdProcessor.h * * Header file for DSSD analysis */ #ifndef __SSD_PROCESSOR_H_ #define __SSD_PROCESSOR_H_ #include "EventProcessor.h" class DetectorSummary; class RawEvent; /** * \brief Handles detectors of type dssd_front and ds...
<filename>source/index.ts /** * react-initials-avatar * * @author abhijithvijayan <https://abhijithvijayan.in> * @license MIT License */ export {default} from './avatar'; export type {InitialsAvatarProps} from './avatar';
//This function will create and initialize the singly linkedlist with length=len, void LinkedListCreate(Node * * source, int len, int* arr) { *(source) = CreateNode(arr[0]); Node * one = (*source); Node * two = NULL; for(int i = 1; i < len; i++) { two = CreateNode(arr[i]); one->next = two; one = two; } }
/** * Stats scalar statistics. * * @param data the data * @return the scalar statistics */ @javax.annotation.Nonnull public static com.simiacryptus.util.data.ScalarStatistics stats(@javax.annotation.Nonnull final double[] data) { @javax.annotation.Nonnull final com.simiacryptus.util.data.ScalarStat...
Fort McMurray evacuees making Kamloops a temporary home Alejandra, her husband Ryan, and their three boys: Anthony (10), Benjamin (9) and Maximus (4). Image Credit: Alejandra Carroll via Facebook May 10, 2016 - 8:30 PM KAMLOOPS - As evacuees from the wildfire in Fort McMurray look for a safe place to stay while they...
/** * Supported value in where cause. * */ public class Condition { public static enum ConditionType { RANGE, EQUAL } final private ConditionType type; /** Field's name **/ final private String fieldName; /** Supported type: Integer , Long, Float, String **/ private SQLExpr value; /** Su...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <sys/ptrace.h> #include <sys/wait.h> #include <sys/user.h> #include <errno.h> #include <unistd.h> #include "trace64.h" #include "../logging.h" void tracex64(const char *filename, char **argv) { pid_t pid = fork(); switch (pid) { ...
Channel Treatment for Internet Addiction with Puskesmas Application: Design Approach with Usability Heuristics Developed since 1968, Puskesmas is the most important healthcare facility and is at the forefront of providing basic healthcare services at the community level. Basically, its role is very important and shoul...
<reponame>damonkd/CampPowerThree<filename>src/main/java/com/perscholas/application/views/login/LoginView.java package com.perscholas.application.views.login; import com.vaadin.flow.component.button.Button; import com.vaadin.flow.component.button.ButtonVariant; import com.vaadin.flow.component.html.H1; import com.vaad...
/** * Adds the policy to the user's list of policies if the user has no policy for the given insurance module. * <p> * If the user already has a matching policy, that policy is overwritten. */ public Customer updatePolicy(String customerId, PolicyDto policyDto) { log.info("Updating a policy ...
// threadedCreateAndUploadFiles is a worker that creates and uploads files func threadedCreateAndUploadFiles(timestamp string, workerIndex int) { for { fileIndex, ok := createdNotDownloadedFiles.managedIncCountLimit(nFiles) if !ok { break } fileIndexStr := fmt.Sprintf("%03d", fileIndex) sizeStr := modules...
<filename>firmware/prototype - final/firmware/src/system_config/default/bsp/bsp.c /******************************************************************************* Board Support Package Implementation Company: Microchip Technology Inc. File Name: bsp.c Summary: Board Support Package implementation...
Messaging with WhatsApp WhatsApp Messenger is a freeware and cross-platform messaging and Voice over IP (VoIP) service owned by Facebook.[45] The application allows the sending of text messages and voice calls, as well as video calls, images and other media, documents, and user location.[46][47] The application runs f...
module Advent.Y2017.Day20 where import Data.Function (on) import Data.List (sortBy) import Data.List.Split (splitOn) import Math.Geometry.Vector import Math.Geometry.Distance day20a, day20b :: String -> String day20a input = show $ minimum $ zip distances [0..(length distances-1)] where positions = map position ...
/** * @author Kin-man Chung */ public class AstMapData extends SimpleNode { public AstMapData(int id) { super(id); } public Object getValue(EvaluationContext ctx) { HashSet<Object> set = new HashSet<Object>(); HashMap<Object, Object> map = new HashMap<Object, Object>(); i...
package de.fraunhofer.iosb.svs.sae.db; import com.fasterxml.jackson.annotation.JsonFilter; import com.fasterxml.jackson.annotation.JsonIgnore; import javax.persistence.*; @Entity public class PolicyAnalysisReport { @Id @GeneratedValue(strategy = GenerationType.AUTO) @JsonIgnore private Long id; ...
package uk.gov.ida.notification.stubconnector; import net.shibboleth.utilities.java.support.component.ComponentInitializationException; import net.shibboleth.utilities.java.support.security.SecureRandomIdentifierGenerationStrategy; import org.joda.time.DateTime; import org.opensaml.core.xml.Namespace; import org.opens...
<reponame>ScottyPoi/Ultralight-UTP import debug from "debug"; import { IOException } from "../../Utils/exceptions"; import UtpAlgConfiguration from "../UtpAlgConfiguration"; import OutPacketBuffer from "./OutPacketBuffer"; import fs from 'fs' export interface StatisticLogger { currentWindow(currentWindow: num...
import Data.List (unfoldr) myIterate :: (a -> a) -> a -> [a] myIterate f x = x : myIterate f (f x) myUnfoldr :: (b -> Maybe (a, b)) -> b -> [a] myUnfoldr f s = case f s of Nothing -> [] Just (x, s') -> x : myUnfoldr f s' dict :: [(Integer, (Char, Integer))] dict = [ (5, ('k', 11)), (7, ('l', 3)), (0, ('H', 9)),...
#ifndef OPENPOSE_HAND_HAND_GPU_RENDERER_HPP #define OPENPOSE_HAND_HAND_GPU_RENDERER_HPP #include <openpose/core/common.hpp> #include <openpose/core/gpuRenderer.hpp> #include <openpose/hand/handParameters.hpp> #include <openpose/hand/handRenderer.hpp> namespace op { class OP_API HandGpuRenderer : public GpuRendere...
/** * Creates a new node with the passed dot, no payload, no context and stage SLT. * * # Arguments * * `dot` - Message dot */ pub fn new(dot: Dot) -> Node { let predecessors = SmallVec::new(); let successors = SmallVec::new(); let bits = BV::default(); Node...
def validate_key(config, schema, key): if schema[key].get('required') and config.get(key) is None: raise ValidationFail('Required key "%s" missing.' % key) if config.get(key) is None: return value = config[key] field_type = schema[key].get('type') if field_type == 'string': _validate_string(va...
<gh_stars>10-100 from srsly import json_loads from ..util import partition def stack_exchange(loc=None): if loc is None: raise ValueError("No default path for Stack Exchange yet") rows = [] with loc.open("r", encoding="utf8") as file_: for line in file_: eg = json_loads(line) ...
Generating infinite digraphs by derangements A set $\mathcal{S}$ of derangements (fixed-point-free permutations) of a set $V$ generates a digraph with vertex set $V$ and arcs $(x,x^\sigma)$ for $x\in V$ and $\sigma\in\mathcal{S}$. We address the problem of characterising those infinite (simple loopless) digraphs which...
<filename>src/index.ts export { createStore } from './createStore'; export { withStore } from './withStore'; export { composeHooks } from './composeHooks';
#include "p5.hpp" using namespace p5; void setup() { createCanvas(800, 600); } typedef float (*CFUNC)(float u); void draw() { clear(); // 0 - 2PI double minx = 0; double maxx = 720; double maxy = 200; double lastx = minx; double frequency = 3; // Cosine curve double lastcosy = map(cos(0), -1, 1, ma...
. Tooth discoloration's may cause serious damage to the aesthetic appearance of the patients. These discoloration's can be treated in several ways but up to lately tooth structure had to be removed in an irreversible manner in order to provide sufficient bulk for the new restorative material. Nowadays thanks to the wo...
<gh_stars>1-10 use crate::context::Context; use anyhow::Context as AnyhowContext; use clap::Parser; use m10_protos::sdk::transaction_error::Code; use m10_sdk::sdk; use serde::{Deserialize, Serialize}; use std::fs::File; use std::io::Read; use std::path::PathBuf; #[derive(Clone, Parser, Debug, Serialize, Deserialize)] ...
//============================================================================= // // Adventure Game Studio (AGS) // // Copyright (C) 1999-2011 <NAME> and 2011-20xx others // The full list of copyright holders can be found in the Copyright.txt // file, which is part of this source code distribution. // // The AGS sourc...
def all(self, *a, to_dict=False): if to_dict: with patch_object(self, 'row_factory', dict_factory): cursor = self.execute(*a) else: cursor = self.execute(*a) fetchone = cursor.fetchone row = fetchone() if not row: return ...
<filename>services/yfuzz-server/kubernetes/create.go // Copyright 2018 Oath, Inc. // Licensed under the terms of the Apache version 2.0 license. See LICENSE file for terms. package kubernetes import ( "bytes" "errors" "text/template" "github.com/spf13/viper" batchv1 "k8s.io/api/batch/v1" "k8s.io/client-go/kube...
<gh_stars>1-10 package client import ( "context" pb "github.com/textileio/fil-tools/wallet/pb" ) // Wallet provides an API for managing filecoin wallets type Wallet struct { client pb.APIClient } // NewWallet creates a new filecoin wallet [bls|secp256k1] func (w *Wallet) NewWallet(ctx context.Context, typ string...
<gh_stars>0 import { ApiProperty } from "@nestjs/swagger"; export class findStuinfoDto{ @ApiProperty({description:'每页显示条目数'}) limit:number @ApiProperty({description:'当前页数'}) position:number }
package types import ( "fmt" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/params" ) // Parameter keys and default values var ( KeyAllowedPools = []byte("AllowedPools") KeySwapFee = []byte("SwapFee") DefaultAllowedPools = AllowedPools{} DefaultSwapFee = sdk.ZeroDec...
Identification of VLDLR as a novel endothelial cell receptor for fibrin that modulates fibrin-dependent transendothelial migration of leukocytes. While testing the effect of the (β15-66)(2) fragment, which mimics a pair of fibrin βN-domains, on the morphology of endothelial cells, we found that this fragment induces r...
str1=raw_input() N,M,a,b=map(int,(str1.split(" "))) r=N%M if(r==0): print(0) else: print(min((r*b),((M-r)*a)))
Have you ever tried to explain to a 14-year-old girl that she does not have to have sex with all her boyfriend's friends to show that she loves him? That she has, in fact, been raped? Have you taken her on the bus to get her contraception, only to watch her throw the pills out of the window on the way back? I had to d...
package com.coolioasjulio.ev3; import trclib.TrcDriveBase; import trclib.TrcMotor; import trclib.TrcUtil; import java.util.LinkedList; import java.util.Queue; public class DifferentialDriveBase extends TrcDriveBase { private static final int ROT_VEL_SMOOTH_WINDOW = 6; private TrcMotor leftMotor, rightMotor...
import click from aiohttp import web async def index(request): return web.Response(text='index') @click.group() def cli(): pass @cli.command() def run(): app = web.Application() app.router.add_get('/', index) web.run_app(app)
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.14.0 // source: common/common.proto package common import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runt...
""" A subpackage dedicated to descriptions of internal halo properties, such as their mass. See ``halomod`` for more extended quantities in this regard. """ from . import mass_definitions from .mass_definitions import MassDefinition
/** * <NAME> <<EMAIL>> * Engineering Department * University of Oxford * Copyright (C) 2006. All rights reserved. * * Use and modify all you like, but do NOT redistribute. No warranty is * expressed or implied. No liability or responsibility is assumed. */ #ifndef __JP_STATS_HPP #define __JP_STATS_HPP templa...
/** * Package: PACKAGE_NAME * Created by Ben Zhao on 2021/7/14 * Project: Ben-leetcode-practice */ public class leetcode1846 { public static void main(String[] args) { readMeSet.addnewline("https://leetcode.com/problems/maximum-element-after-decreasing-and-rearranging/", 1846); } public static i...
def CompileProtoBuf(env, input_proto_files): proto_compiler_path = '%s/protoc.exe' % os.getenv('OMAHA_PROTOBUF_BIN_DIR') proto_path = env['PROTO_PATH'] cpp_out = env['CPP_OUT'] targets = [os.path.join(cpp_out, os.path.splitext(base)[0] + '.pb.cc') for base in [RelativePath(in_file, proto_path) ...
// This test checks if an expired declined lease can be reused in SOLICIT (fake allocation) TEST_F(AllocEngine6Test, solicitReuseDeclinedLease6) { AllocEnginePtr engine(new AllocEngine(AllocEngine::ALLOC_ITERATIVE, 100)); ASSERT_TRUE(engine); string addr_txt("2001:db8:1::ad"); IOAddress addr(addr_txt); ...
// WriteToRequest writes these params to a swagger request func (o *GetAlertGroupsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Active != nil { var qrActive bool if o.Active != nil { qrActive = ...
class QueuedAfter: """QueuedAfter objects are objects representing a call to '.after'.""" def __init__(self, ms, func, args): self.ms = ms self.func = func self.args = args
//g++ 7.4.0 #include <iostream> #include <bits/stdc++.h> using namespace std; typedef long long ll; void solve(string s[],ll N,ll M) { ll getA[N]; ll getB[N]; for(ll i=0;i<N;++i) { getA[i] = -1; getB[i] = -1; } for(ll i=0;i<N;++i) { for(ll...
// reset is called by program creator between each processor's emit code. It increments the // stage offset for variable name mangling, and also ensures verfication variables in the // fragment shader are cleared. void reset() { this->enterStage(); this->addStage(); fFS.reset(); }
<filename>testsuite/tests/rename/should_compile/rn003.hs module Foo (f) where -- export food f x = x -- !!! weird patterns with no variables 1 = f 1 [] = f [] 1 = f (f 1) [] = f (f [])
/** * Tests the parameters class verifies the getters and setters. Verifies that it * can serialize/deserialize and verifies that the xml format is as expected. * */ @SuppressWarnings("boxing") public class ParametersTest { /** * Tests the parameters class. * * @throws JAXBException Bad...
import math import statistics n = int(input()) li = list(map(int,input().split())) my_mean = sum(li) / len(li) ll = math.floor(my_mean) lll = math.ceil(my_mean) c = 0 for i in range(len(li)): c += (li[i] - ll)**2 cc = 0 for i in range(len(li)): cc += (li[i] - lll)**2 if c < cc: print(c) else: print...
/* * Copyright (c) 2021 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
package jenkins.plugins.logstash.pipeline; import java.io.PrintStream; import java.util.HashSet; import java.util.Set; import org.jenkinsci.plugins.workflow.steps.Step; import org.jenkinsci.plugins.workflow.steps.StepContext; import org.jenkinsci.plugins.workflow.steps.StepDescriptor; import org.jenkinsci.plugins.wor...
import { TypeScriptType } from "./TypeScriptType"; export interface EdmxBase { ReferencedBy: FunctionType[]; Name: string; Properties: EntityTypeProperty[]; NavigationProperties: EntityTypeNavigationProperty[]; ReferencedByRoot?: ComplexType[]; } export interface EntityTypeProperty { TypescriptType?: Type...
Image-based Bone Density Classification Using Fractal Dimensions and Histological Analysis of Implant Recipient Site Background: Success of dental implants is affected by the quality and density of the alveolar bone. These parameters are essential for implant stability and influence its load-bearing capacity. Their as...
def policy_action(module, state=None, policy_name=None, policy_arn=None, policy_document=None, path=None, description=None): changed = False policy = None error = {} if state == 'present': ...
/** * show an alert dialog when user try to delete his account */ private void dialogDeleteAccountsCopies() { AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setMessage(getString(R.string.dialoge_delete_all_account_cp)); builder.setTitle(""); builder.se...
Microsoft Corp.'s massive security update yesterday marked the completion of the sixth year of the company's move to a monthly patch release schedule. Since moving to a monthly schedule in October 2003, Microsoft has released about 400 security bulletins based on an informal count of releases in its bulletin archives....
<reponame>Azn2000/Explvs-AIO package org.aio.activities.skills.smithing; import org.aio.util.item_requirement.ItemReq; public enum Bar { BRONZE("Bronze bar", 1, true, new ItemReq("Copper ore", 1), new ItemReq("Tin ore", 1)), BLURITE("Blurite bar", 8, false, new ItemReq("Blurite ore", 1)), IRON("Iron bar"...
<filename>src/main/java/nl/andrewl/railsignalapi/rest/dto/component/in/ComponentPayload.java package nl.andrewl.railsignalapi.rest.dto.component.in; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; ...
<filename>src/app/utils/handle-mongo-error.ts import { MongoError } from 'mongodb' import { Error as MongooseError } from 'mongoose' import { DatabaseConflictError, DatabaseError, DatabasePayloadSizeError, DatabaseValidationError, PossibleDatabaseError, } from '../modules/core/core.errors' /** * Exported f...
def increase_wave(lst): result = [] for item in lst: result.append( [ int(max(min(item[0] * 1.2, MAX_INT), MIN_INT)), int(max(min(item[1] * 1.2, MAX_INT), MIN_INT)) ] ) return result
package MyCar; import android.opengl.GLSurfaceView; /** * 加速値が高い代わりに最高速度が低い車 * Created by SayouKouki */ public class AcceleCar extends SuperCar { public AcceleCar(GLSurfaceView glView) { super(glView); } public AcceleCar(String objname) { super(objname); } /** * ステータスフィー...
<filename>deps/github.com/arangodb/go-velocypack/decoder.go<gh_stars>10-100 // // DISCLAIMER // // Copyright 2017 ArangoDB GmbH, Cologne, Germany // // 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 Lice...
async def simulate_id_sim_id(request: Request, sim_id: str): sim_status_url = app.url_path_for( "fronted_simulation_status", sim_id=sim_id ) return templates.TemplateResponse( "simulation-id-or-status.html", { "request": request, "status": False, ...
<gh_stars>0 /* * PXT_M_and_M extention * * This is a MakeCode (pxt) extension for the M&M colour sorting machine or Project Recycle. * The extension includes blocks for the colour sensor type TCS34725 and the servo driver type PCA9685 connected to a micro:bit via the i2c bus. * The TCS34725 sen...
// Code generated by docs2go. DO NOT EDIT. package babylon import ( "syscall/js" ) // PredicateCondition represents a babylon.js PredicateCondition. // Defines a predicate condition as an extension of Condition type PredicateCondition struct { *Condition ctx js.Value } // JSObject returns the underlying js.Value...
Using Eye Tracking Technology to Analyze the Impact of Stylistic Inconsistency on Code Readability A number of research efforts have focused in the area of programming style. However, to the best of our knowledge, there is little sound and solid evidence of how and to what extent can stylistic inconsistency impact the...
<filename>implementations/ugene/src/include/U2Core/U2ModDbi.h #include "../../corelibs/U2Core/src/dbi/U2ModDbi.h"
I’ve never been a ring wearer. I think it was because in my early 20’s I put weight on and (as well as everywhere else) my fingers ballooned up like sausages. Finding rings in shops was a bit of a nightmare and when I did find a ring that squeezed on it rubbed against the insides of my podgy little digits and would sub...
def write_log(self, log_path: str, outdf: pd.DataFrame, notes: pd.DataFrame) -> None: with open(log_path, 'w') as f: f.write('Columns: {}\n\n'.format(outdf.columns.values)) for idx, row in outdf.iterrows(): key_str = "...
They traveled thousands of miles from Australia to the Israeli desert city of Be'er Sheva Tuesday to trace the footsteps of their ancestors – or, the hoof prints of the horses they rode – in a reenactment of what is known as the "last successful cavalry charge” in history. As late afternoon sun fell across a sandy ope...