content
stringlengths
10
4.9M
package top.zoyn.particlelib.pobject; public enum ShowType { NONE, ALWAYS_SHOW, ALWAYS_SHOW_ASYNC, ALWAYS_PLAY, ALWAYS_PLAY_ASYNC }
<filename>spark_auto_mapper_fhir/value_sets/event_capability_mode.py<gh_stars>1-10 from __future__ import annotations from spark_auto_mapper_fhir.fhir_types.uri import FhirUri from spark_auto_mapper_fhir.value_sets.generic_type import GenericTypeCode from spark_auto_mapper.type_definitions.defined_types import AutoMa...
// Leave removes the provided node from the bus func (b *Bus) Leave(leaving *Node) error { b.nodeLock.Lock() defer b.nodeLock.Unlock() nodeIndex := -1 for index, node := range b.nodes { if node == leaving { nodeIndex = index break } } if nodeIndex == -1 { return errors.New("Could not find provided mem...
At least 37 people, mostly European tourists, confirmed dead after gun rampage at Tunisian beach resort, while in France a man was beheaded before an attempt to blow up a gas factory. Tunisia and France declared “solidarity in the face of terrorism” on Friday after at least 37 people, mostly tourists, were murdered by...
<gh_stars>1-10 #import json import os from xml.etree import ElementTree import uuid import sqlite3 import html allSkills = [] def flushDB (): connection = sqlite3.connect("/home/maike/RLP-XML/skills.db") cursor = connection.cursor() cursor.execute("""DROP TABLE competence;""") cursor.execute("""DROP T...
#include <sys/types.h> #include <kernel/serial.h> void serial_init(void) { extern unsigned long __serial_hook_start__; extern unsigned long __serial_hook_end__; for (struct serial_hook *hook = (struct serial_hook *) &__serial_hook_start__; hook < (struct serial_hook *) &__serial_hook_end__; h...
<reponame>wolfmaster8/beyond-social-frontend import styled from "styled-components"; export type GridLayoutProps = { columns: string; gap: string; oneColumnOnMobile?: boolean; }; const defaultProps = { oneColumnOnMobile: true, }; const GridLayout = styled.div<GridLayoutProps>` display: grid; grid-templat...
<reponame>citysciencelab/csl_ol_draw import { Component, OnInit, EventEmitter, Output } from '@angular/core'; import { trigger, state, style, animate, transition } from '@angular/animations'; import {LocalStorageMessage} from '../local-storage/local-storage-message.model'; import {LocalStorageService} from '../local-st...
/// Activate this program object for the active OpenGL context. pub fn use_program(&self) { unsafe { gl::UseProgram(self.handle); } }
<reponame>metai/aitrace import numpy as np A = [[1, 0, 0], [0, 1, 0], [0, 2, 1]] A = [[0, 1, 0], [1, 0, 0], [0, 0, 1]] A = [[1, 0, 0], [0, 1, 0], [0, -1, 1]] A = np.array(A) print(A) detA = np.linalg.det(A) invA = np.linalg.inv(A) print(detA) print(invA) print(np.dot(A, invA)) A = [[1, 2, 2], [2, 1, 2], [2, 0, ...
<gh_stars>0 package crawler import ( "bytes" neturl "net/url" "github.com/fcgravalos/wanna-crawl/fetcher" logr "github.com/sirupsen/logrus" "golang.org/x/net/html" ) // Config represents crawler configuration type Config struct { // Whether or not to follow external links on a scraped page FollowExternalLinks...
# Licensed under a 3-clause BSD style license - see LICENSE.rst """Location of gamma-ray observatories.""" from astropy.coordinates import EarthLocation __all__ = ["observatory_locations"] observatory_locations = {} """Gamma-ray observatory locations (dict). This is a dict with observatory names as keys and values ...
Z*-Numbers, Data Structures, and Thinking in Machine-Mind Architecture A generally intelligent cognitive machine is deliberative, reflective, adaptive, empathetic and rational; continually aiming for the best responses to complex real-world events. This article describes our efforts towards the realization of such a m...
/** * addFunction adds a customized function. * * @param name the name of the function. * @param function the custom function. */ public void addFunction(String name, CustomFunction function) { fm.addFunction(name, function); aviatorEval = null; fm.setAviatorEval(null); ...
#include <iostream> #include <string> using namespace std; #ifndef C_REFERENCESPOINTERS_H #define C_REFERENCESPOINTERS_H /* References/Address Of and Pointers in C++ Also see http://www.cplusplus.com/doc/tutorial/pointers/ In an expression, prefix unary * means “contents of” and prefix unary & means “address of.”...
def apply_mask(self): sorted_nodes = [self.nx_graph.nodes[name] for name in nx.topological_sort(self.nx_graph)] pruned_node_modules = list() with torch.no_grad(): for node in sorted_nodes: node_type = self.graph.node_type_fn(node) node_cls = self.get_c...
Genetic diversity and aggressiveness of Fusarium virguliforme isolates across the Midwestern United States. Sudden death syndrome (SDS) of soybean is a damaging disease caused by the fungus Fusarium virguliforme. Since this pathogen was first reported in the southern US state of Arkansas in 1971, it has spread through...
<reponame>klirichek/sphtool<filename>meta.go package main import ( "fmt" "io" "os" ) const MetaHeaderMagic uint32 = 0x54525053 ///< my magic 'SPRT' header const MetaVersion uint32 = 17 type metahdr struct { Magic uint32 Version uint32 } type meta struct { metahdr TotalDocuments uint32 TotalBytes uint6...
New mother Amanda Wesson can’t believe Toronto wants to balance its budget on the backs of cash-strapped parents by ending a grant that helps fund childcare centres in schools. “Toronto parents are already paying the highest daycare fees in the country. To ask us to pay more to close a budget deficit makes no sense,” s...
<gh_stars>0 /* * TOPPERS ECHONET Lite Communication Middleware * * Copyright (C) 2014-2016 Cores Co., Ltd. Japan * * 上記著作権者は,以下の(1)~(4)の条件を満たす場合に限り,本ソフトウェ * ア(本ソフトウェアを改変したものを含む.以下同じ)を使用・複製・改 * 変・再配布(以下,利用と呼ぶ)することを無償で許諾する. * (1) 本ソフトウェアをソースコードの形で利用する場合には,上記の著作 * 権表示,この利用条件および下記の無保証規定が,そのまま...
#include <CChatStealSystem.hpp> START_ATF_NAMESPACE CChatStealSystem::CChatStealSystem() { using org_ptr = void (WINAPIV*)(struct CChatStealSystem*); (org_ptr(0x1403f86a0L))(this); }; void CChatStealSystem::ctor_CChatStealSystem() { using org_ptr = void (WINAPIV*)(struct CC...
<filename>alipay/marketing_api_test.go package alipay import ( "testing" "github.com/cedarwu/gopay" "github.com/cedarwu/gopay/pkg/xlog" ) func TestOpenAppQrcodeCreate(t *testing.T) { // 请求参数 bm := make(gopay.BodyMap) bm.Set("url_param", "page/component/component-pages/view/view"). Set("query_param", "x=1"). ...
/* * QEMU Motorla 680x0 Macintosh hardware System Emulator * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy,...
// 3 . void methodB ( ) throws IOException , OtherException {} public class DeclareException{ public void methodA(){ try{ }catch(Exception e){ System.out.println("If error in try then catch execute"); } finally{ System.out.println("finally must execites"); } } public void methodB() throws SecurityExce...
#include<bits/stdc++.h> using namespace std; char m[51][51]; int main(){ int R , C , maxR = 0 , minL = 2147483647 , maxD = 0 , minU = 2147483647; cin >> R >> C; for(int i = 0 ; i < R ; i++) { char c; scanf("%c" , &c); for(int j = 0 ; j < C ; j++) { scanf("%c" , &m[i][j]); if(m[i][j] == '*...
def log_p_sum(self): return self._log_p_sum if not self.is_terminal else self._log_p_sum.detach()
/** * * @author Reza Rinaldi */ public class MainPercobaan4_1841720078Reza { public static void main(String[] args) { Penumpang1841720078Reza p = new Penumpang1841720078Reza("12345", "Mr. Krab"); Penumpang1841720078Reza budi = new Penumpang1841720078Reza("12346", "Budi"); Gerbong18417...
// WithValue creates a named value that can be used // to give a log contextual information. func WithValue(name string, value interface{}) Value { return Value{ Name: name, Value: fmt.Sprint(value), } }
//============================================================================= // E3Customelements_UnregisterClass : Unregister the class. //----------------------------------------------------------------------------- TQ3Status E3CustomElements_UnregisterClass(void) { E3ClassTree::UnregisterClass(kQ3ObjectTypeC...
"""module containing the MetricBolt class""" from collections import namedtuple from math import pi from me_toolbox.fasteners import Bolt class MetricBolt(Bolt): """MetricBolt contains the attributes for a metric bolt (stresses are in MPa, sizes are in mm)""" grade = namedtuple('Grade', ['low', 'high...
<reponame>cloudcost/trackit // Copyright 2017 MSolution.IO // // 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 re...
#include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> int main() { int ret = access("fifo", F_OK); if (ret == -1) { printf("fifo non-exist, create one\n"); if (mkfifo("fifo", 0664) == -1) { perror("mkfifo"); ...
// return friendly name of regiser in a string char *cs_reg_name(csh ud, unsigned int reg) { cs_struct *handle = (cs_struct *)(uintptr_t)ud; if (!handle || handle->reg_name == NULL) { return NULL; } return handle->reg_name(reg); }
// WaitResource waits for a specific resource to satisfy either the success or failure condition func (we *WorkflowExecutor) WaitResource(ctx context.Context, resourceNamespace, resourceName, selfLink string) error { if we.Template.Resource.SuccessCondition == "" && we.Template.Resource.FailureCondition == "" { retu...
#include<stdio.h> int main (void){ int k,x,s; int i; int b[100]; s=scanf("%d %d" ,&k, &x); if(s!=2) return -1; if(k==1) printf("%d ",x ); else{ //b[0]= x-k+1; /*for(i=1;i<2*k-1;i++){ b[i]=b[i-1]+1; }*/ for(i=x-k+1;i<=x+k-1;i++){ printf("%d ", ...
Dictazolines A and B, bisspiroimidazolidinones from the marine sponge Smenospongia cerebriformis. An extensive study of the secondary metabolites produced by the marine sponge Smenospongia cerebriformis has led to the isolation of two new bisspiroimidazolidinone derivatives, dictazolines A (1) and B (2), along with th...
<reponame>kevinsawicki/jgit-mongo /* * Copyright (c) 2011 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * righ...
// extractHeaders gets from the given request the headers and populate the provided templateData accordingly. func extractHeaders(rq *http.Request, templateData map[string]interface{}) { headers := map[string]interface{}{} for key, value := range rq.Header { if len(value) == 1 { headers[key] = value[0] contin...
/** * insert default client group data * * @param vo ClientGroupVO client group bean * @return long query result count * @throws SQLException */ public long createDefaultClientGroup(ClientGroupVO vo) throws SQLException { return (long) sqlSessionMeta.insert("insertDefaultClientGroup", vo); }
/** * Adds up the distances from each point to its closest cluster and returns the sum. * @param datapoints iterable of datapoints. * @param centroids searcher of Centroids. * @return the total cost described above. */ public static double totalClusterCost(Iterable<? extends Vector> datapoints, Searcher ...
<reponame>dgreid/platform2 /* * Copyright (C) 2012 The Android Open Source Project * Copyright (C) 2015-2018 Intel Corporation * * 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 * * ...
<reponame>MARCROCK22/connect4-ai interface Obj { key: number; index: number; column: number; } declare namespace ModuleConnect4 { class Connect4<PLAYER> { public map: { [x: number]: Obj[]; }; players: [PLAYER, PLAYER]; readonly plays: number[]; privat...
<filename>src/routes/l_lbbk.ts /// <reference path="../../typings.d.ts" /> import * as Knex from 'knex'; import * as fastify from 'fastify'; import * as HttpStatus from 'http-status-codes'; import * as Random from 'random-js'; import * as crypto from 'crypto'; import { LlbbkModel } from '../models/l_lbbk'; const llb...
<filename>framework/harness/mock_endpoints_test.go package harness import ( "bytes" "net/http" "net/http/httptest" "testing" "time" "github.com/launchdarkly/sse-contract-tests/framework" "github.com/launchdarkly/go-test-helpers/v2/httphelpers" "github.com/stretchr/testify/assert" ) func TestMockEndpointSer...
<reponame>geeknarendra/The-Complete-FAANG-Preparation # Binary Tree Level Order Traversal - Breadth First Search 1 # Given the root of a binary tree, return the level order traversal of its nodes' values. (i.e., from left to right, level by level). class TreeNode: def __init__(self, val=0, left=None, right=None): ...
/* *---------------------------------------------------------------------- * * FreeStyle -- * * This function is called when a TextStyle structure is no longer * needed. It decrements the reference count and frees up the space for * the style structure if the reference count is 0. * * Results: * None. * * S...
<reponame>zilongTong/algorithm<gh_stars>1-10 package util.bean; import java.util.Collection; import java.util.LinkedHashSet; import java.util.Set; public class Cluster { private String _label; private Set<DataCell> _elements; public Cluster() { init(""); } public Cluster(String label) { init(label); ...
/** * Exports the game. * * @param img The path for thumbnail of the game. * @param name The name of the game. * @param desc The description of the game. * @param src The path to where the game file is. */ public static void exportGame(String img, String name, String desc, String src)...
/** * A bean with information for registering a http service. * It enables Micrometer metric collection of the service automatically. * <pre>{@code * > @Bean * > public HttpServiceRegistrationBean okService() { * > return new HttpServiceRegistrationBean() * > .setServiceName("okService") * > ...
def kernel_covariance(exog, loc, groups, kernel=None, bw=None): exog = np.asarray(exog) loc = np.asarray(loc) groups = np.asarray(groups) if loc.ndim == 1: loc = loc[:, None] v = [exog.shape[0], loc.shape[0], len(groups)] if min(v) != max(v): msg = "exog, loc, and groups must hav...
/** * Read the input's lines. * @return All read YamlLines * @throws IOException If something goes wrong while reading the input. * @todo #447:60min Refactor solution for #447 by using lines iterators. */ private AllYamlLines readInput() throws IOException { final List<YamlLine> lines =...
/** * <code>optional string OrganizationCode = 21;</code> */ public Builder clearOrganizationCode() { bitField0_ = (bitField0_ & ~0x00100000); organizationCode_ = getDefaultInstance().getOrganizationCode(); onChanged(); return this; }
//@HEADER // ************************************************************************ // // Kokkos v. 4.0 // Copyright (2022) National Technology & Engineering // Solutions of Sandia, LLC (NTESS). // // Under the terms of Contract DE-NA0003525 with NTESS, // the U.S. Governmen...
class ElasticTagger: """ A tagger updates documents with a tag""" ANY_QUERY = { "query": { "simple_query_string": { "query": None } }, "script": { "inline": "ctx._source.{}.add(params.tag)", "params": { "tag":...
def lcs(x_sequence, y_sequence, equal_func): if not len(x_sequence) or not len(y_sequence): return OrderedSet() x, x_remaining = x_sequence[0], x_sequence[1:] y, y_remaining = y_sequence[0], y_sequence[1:] if equal_func(x, y): sequence = set([(x, y), ]) sequence.update(lcs(x_rema...
/* * Problem002.java * * Copyright 2013 <NAME> <<EMAIL>> * License: WTFPL * * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPO...
<gh_stars>1-10 #pragma once bool is_auto_start_task_active_for_this_user(); bool enable_auto_start_task_for_this_user(); bool disable_auto_start_task_for_this_user();
package com.codecool.quest.model.inventory; import com.codecool.quest.logic.Cell; public class Sword extends Weapons{ private final int swordAttackPower = 5; //+5 public Sword(Cell cell) { super(cell); } @Override public String getTileName() { return "Sword"; } public i...
/* Check for an algorithm/mode */ static BOOLEAN checkLowlevelInfo( const CRYPT_DEVICE cryptDevice, const CRYPT_ALGO_TYPE cryptAlgo ) { CRYPT_QUERY_INFO cryptQueryInfo; const BOOLEAN isDevice = ( cryptDevice != CRYPT_UNUSED ) ? TRUE : FALSE; int status; if( isDevice ) { status = cryptDeviceQueryCapab...
<gh_stars>1-10 /* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strf_flag_cast.c :+: ...
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws Exception { int max, tmp; int[][] arr; int N, M, K; BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); StringTokeni...
import { Component } from '@angular/core'; import { MatDialog, MatDialogRef } from '@angular/material/dialog'; import { CommunicatorService } from '../../communicator.service'; import { DbService } from './../db.service'; import { LRBService } from '../lrb.service'; import { Model } from '../model'; import te...
Effects of Light-Activated Self-Healing Polymers on the Rheological Behaviors of Asphalt Binder Containing Recycled Asphalt Shingles A new generation of ultraviolet (UV) light-activated, self-healing polymers was evaluated with the aim to enhance the elastic recovery of the binder and to increase its self-healing abil...
// // NewMapView.h // MerchantToCustomer // // Created by 闪电狗 on 2018/11/16. // Copyright © 2018 李鹏飞. All rights reserved. // #import <UIKit/UIKit.h> #import <AMapLocationKit/AMapLocationKit.h> #import <MAMapKit/MAMapKit.h> #import <AMapFoundationKit/AMapFoundationKit.h> #import "NewCustomAnnotationView.h" #import...
// Field returns value of a field func (f *Factory) Field(name string) interface{} { if callback, ok := f.Fields[name]; ok { return callback(f) } return nil }
def npz_generator(npz_path): npz_data = np.load(npz_path) X = npz_data['X'] y = npz_data['Y'] n = X.shape[0] while True: i = np.random.randint(0, n) yield {'X': X[i], 'Y': y[i]}
/** * Abstraction area for persistence. * * Methods to store an object along with the timestamp of when it was stored, retrieving likewise. * * Object format: * { * timeMs: <time object was stored in ms UTC>, * object: <the stored object> * } * * TODO: * - Currently using local file storage. Futur...
/* * * EthereumLikeKeychain * ledger-core * * Created by <NAME> on 08/07/2018. * * The MIT License (MIT) * * Copyright (c) 2018 Ledger * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the So...
<filename>src/data/units/terran/marine.ts import { SC2Asset } from '../../../model/sc2asset'; import { SC2Cost } from '../../../model/sc2cost'; import { SC2Unit } from '../../../model/sc2unit'; import { SC2Attack, SC2Cargo, SC2CargoType, SC2Defence, SC2Sight, SC2Speed, SC2Target, SC2Unit...
/** * Count the number of CpG in this sequence * @param sequence * @return */ @Override public int observed(String sequence) { char seq[] = sequence.toUpperCase().toCharArray(); int cpg = 0; for( int pos = 0; pos < (seq.length - 1); pos++ ) if( (seq[pos] == 'C') && (seq[pos + 1] == 'G') ) cpg++; ret...
def inspect_errors(errors, service_name, prefix_map, size=0, chunk_size=1000): mismatches = errors.get('count_mismatch') if not mismatches: return {} keys = list(mismatches.keys()) chunks = [keys[start: start + chunk_size] for start in range(0, size or len(keys), chunk_size)] r = redis.Redis...
/** * Test of getWords method, of class DefaultStopList. */ @Test public void testGetWords() { DefaultStopList instance = new DefaultStopList(); assertTrue(instance.getWords().isEmpty()); instance.add("TEST"); assertEquals(1, instance.getWords().size()); assertT...
// closeShardsAsync asynchronously closes the shards to avoid blocking writes. // Because each shard write happens while holding the shard read lock, the shard // may only close itself after all its pending writes are finished. func (agg *aggregator) closeShardsAsync(shards []*aggregatorShard) { pendingClose := atomic...
<filename>agile-itsm-web/agile-itsm-web-portal/src/main/java/br/com/centralit/citcorpore/integracao/ImagemHistoricoDao.java package br.com.centralit.citcorpore.integracao; import java.util.ArrayList; import java.util.Collection; import java.util.List; import br.com.centralit.citcorpore.bean.ImagemHistoricoDTO; import...
/** * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Replacement Fragment Type</b></em>'. * <!-- end-user-doc --> * <p> * The following features are implemented: * <ul> * <li>{@link bvr.impl.ReplacementFragmentTypeImpl#getReplacementBoundaryElement <em>Replacement Boundary Element</em>...
/** * Write the physical invariants to file **/ std::string write_physical_invariants_to_file( SphereDataCtx &i_ctx, const char* i_name ) { char buffer[1024]; SimulationVariables* simVars = i_ctx.get_simulation_variables(); const std::vector<double>& time = i_ctx.get_time(); const std::vector<...
#ifndef __Gua__canvas__ #define __Gua__canvas__ #include "vector.h" #include "color.h" #include "vertex.h" #include "matrix.h" #include "mesh.h" class Canvas { uint32_t *_pixels; float *_depthBuffer; int _bufferSize; float _width; float _height; void putPixel(int x, int y, float z,...
Induction of PARP7 Creates a Vulnerability for Growth Inhibition by RBN2397 in Prostate Cancer Cells The ADP-ribosyltransferase PARP7 modulates protein function by conjugating ADP-ribose to the side chains of acceptor amino acids. PARP7 has been shown to affect gene expression in prostate cancer cells and certain othe...
<reponame>fabrix-app/fabrix.app /** * Exports the Fabrix Server */ import 'reflect-metadata' import 'zone.js/dist/zone-node' import { enableProdMode } from '@angular/core' import { FabrixApp } from '@fabrix/fabrix' enableProdMode() const fabrix = require('./fabrix.config') const server = new FabrixApp(fabrix) ser...
Share Tweet Email address: Leave this field empty if you're human: You might have heard about the #DayWithoutAWoman protest set for tomorrow. This is when ALLLLL the feminists simply refuse to show up for work, school, and life and march because… yay abortion? Ladyparts? Something like that – I still haven’t figured i...
import { Card, CardContent, makeStyles, Typography, Grid, } from "@material-ui/core"; import React from "react"; import { blue, red, green, yellow } from "@material-ui/core/colors"; import { ChangeStat } from "../../index"; import ArrowDownwardIcon from "@material-ui/icons/ArrowDownward"; import ArrowUpwardIc...
/** * @author Mr.release * @create 2019/4/29 * @Describe */ public class VideoListViewModel extends BaseViewModel { private static final String TAG = VideoListViewModel.class.getSimpleName(); private int mPage = 0; public SingleLiveEvent<List<VideoInfo>> finishLoadData = new SingleLiveEvent(); publ...
// Dimension returns the Dimension assigned to the World in world.New. The sky colour and behaviour of a variety of // world features differ based on the Dimension assigned to a World. func (w *World) Dimension() Dimension { if w == nil { return nopDim{} } return w.d }
def macro_avg_recall(cases, detections): if len(cases) == 0 and len(detections) == 0: return 1 elif len(cases) == 0 or len(detections) == 0: return 0 num_cases, recall_per_case = len(cases), list() case_index = index_annotations(cases) det_index = index_annotations(detections) f...
// UNDONE: temporary scorching for PreAlpha - find a less sleazy permenant solution. void CGrenade::Explode( TraceResult *pTrace, int bitsDamageType ) { float flRndSound; pev->model = iStringNull; pev->solid = SOLID_NOT; float theDamageModifier; int theUpgradeLevel = AvHPlayerUpgrade::GetWeaponUpgrade(this->pev-...
package com.android.feature.webview.pkg.cell; import android.text.TextUtils; import androidx.annotation.NonNull; import androidx.databinding.ObservableField; import com.android.feature.webview.pkg.BR; import com.android.feature.webview.pkg.R; import com.android.feature.webview.pkg.net.article.vo.ContentVo; import co...
<gh_stars>1-10 import React from 'react'; import Polygon from '../../../math/Geometry/Polygon/Polygon'; import MathX from "../../../math/MathX/MathX"; import Line from "../../../math/Line/Line"; interface Props { polygon: Polygon; verticesLabel?: {name: string, show: boolean, color?: string}[]; edgesLabel?: {nam...
/* * Register a new slave device, effectively adding it to the host. * * The device should be registered under a unique name, as existing names will * be overwritten by the new device. */ void host_device_register_slave_device(struct t_host_device *host_device, const struct t_slave_device *slave_device)...
/** * Configure the internal column constraints to display the buttons. */ private void configureConstraints() { ColumnConstraints left = new ColumnConstraints(); left.setPercentWidth(80); ColumnConstraints extraButtonConstraints = new ColumnConstraints(); extraButtonConstraint...
// NewContractFindParamsWithHTTPClient creates a new ContractFindParams object // with the ability to set a custom HTTPClient for a request. func NewContractFindParamsWithHTTPClient(client *http.Client) *ContractFindParams { return &ContractFindParams{ HTTPClient: client, } }
<filename>webapp/src/main/java/com/box/l10n/mojito/service/tm/ImportLocalizedAssetJobInput.java package com.box.l10n.mojito.service.tm; import com.box.l10n.mojito.entity.Asset; import com.box.l10n.mojito.entity.RepositoryLocale; import com.box.l10n.mojito.okapi.ImportTranslationsFromLocalizedAssetStep; import com.box....
<reponame>stormy131/Inst-app import { Comments } from "./models/comments"; import { Posts } from "./models/posts"; import { Users } from "./models/users"; import {RefTokens} from './models/refTokens'; function createAssociations(){ RefTokens; Users.hasMany(Posts, { foreignKey: 'author', sourceKey: 'i...
// Description: // pbundle entered with pointer to earliest element of bundle // to reduce from the top of stack in r0 // exit with pointer to bundle in r0, or zero if bundle is empty // Parameters: // r0 - pointer to earliest element of bundle to be reduced // Return: // r0 - pointer to bundle...
{-# LANGUAGE OverloadedStrings #-} module ModuleMap where import SimpleConfig import Data.Monoid ((<>)) import qualified Data.Text as T import qualified Data.HashMap.Strict.InsOrd as M data ModuleOpt = Y | M | N | S T.Text | I Int | H T.Text type KernelConfig = M.InsOrdHashMap T.Text ModuleOpt mkKernelConfig :: Se...
/** * Definitely do not have your keys in code :) * This key should be vaulted. It's in plaintext here for ease of use. * * @return A Symmetric Key used to sign CSRF tokens. */ public SymmetricKey signKey() { return new SymmetricKey( Optional.of("key-1"), ...
#include "stdafx.h" #include "GraphDraw.h" CGraphDraw::CGraphDraw() { a = b = 5; c = 1; m_nSelect = 0; glReadPixels(0, 0, 64, 64, GL_RGB, GL_UNSIGNED_BYTE, image); m_iWindowWidth = 500; m_iWindowHeight = 500; } CGraphDraw::~CGraphDraw() { } BEGIN_MESSAGE_MAP(CGraphDraw, CWnd) ON_WM_KEYDOWN() END_ME...
<reponame>inier/Personal-Website import React from 'react' export default function ActiveScreen() { return ( <div className="text-black px-5"> <p className="px-5 rounded py-1 bg-gray-300 block sm:hidden">Mobile</p> <p className="px-5 rounded py-1 bg-red-300 hidden sm:block md:hidden">Sm</p> <p ...
<gh_stars>1-10 use serde_json::from_value; use traits::{Votable, Created, Editable, Content, Commentable, Reportable, Stickable, Distinguishable, Approvable}; use structures::comment_list::CommentList; use structures::subreddit::Subreddit; use structures::user::User; use client::RedditClient; use responses...
import sys def fun(x): return x[0]\ t=int(input()) for i in range(t): n=int(sys.stdin.readline()) a=list(map(int,sys.stdin.readline().strip().split())) aa=[] for i in range(n): aa.append([a[i],i]) aa.sort(key=fun) # print(aa) mx=aa[0][1] mn=aa[0][1] ...
/** * Utilizes sets of regular expressions to filter out invalid numeric values. * <p> * Created by prakash on 11/30/17. */ public class SectionMeasureFilter extends LeoBaseAnnotator { protected Pattern bxSectionHeaderPattern = Pattern.compile("bone\\s*marrow.{0,30}biopsy.{0,30}:", Pattern.MULTILINE|Pattern.DOTAL...