content
stringlengths
10
4.9M
#ifndef _ML_VECTOR_HPP_ #define _ML_VECTOR_HPP_ #include <MemeCore/Matrix.hpp> namespace ml { /* * * * * * * * * * * * * * * * * * * * */ template < class _Elem, size_t _Size > class Vector : public Matrix<_Elem, _Size, 1> , public IComparable<Vector<_Elem, _Size>> { public: // Usings /* * * * * * * ...
Looks like even the Palinites are getting sick of the ‘Cuda this week. Amidst the BOOOOS one can hear “QUITTIN’ ON THE JOB!” Stopped clocks, as they say. Meanwhile, the ‘Cuda’s beloved Facebook page is getting bombarded with angry posts like this. My family (wife, 3year old, and 10 year old) and I waited for 6 hours...
<reponame>IHTSDO/snow-owl /* * Copyright 2011-2017 B2i Healthcare Pte Ltd, http://b2i.sg * * 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/LICENS...
def nfs_enable(self): return self.request( "nfs-enable", { }, { } )
<gh_stars>0 export class Message { userId: string; text: string; jobId: string; userType: string; read: boolean; }
<filename>sdk-6.5.20/libs/sdklt/bcmfp/common/bcmfp_strings.c /*! \file bcmfp_strings.c * * APIs to print meaningful names to different * enumerations in BCMFP. These APIs can be used * in LOG messages. */ /* * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/Open...
import demistomock as demisto from CommonServerPython import * def get_query(cre_name_null): if cre_name_null == "False": query = "SELECT *,\"CRE Name\",\"CRE Description\",CATEGORYNAME(highlevelcategory) " \ "FROM events WHERE \"CRE NAME\" <> NULL AND INOFFENSE({0}) START '{1}'" else:...
{-# LANGUAGE OverloadedStrings #-} module Caurakarman.Query where import Caurakarman.Persistence (withBH', index, postMappingName) import Caurakarman.Type import Data.Aeson import qualified Data.Text as T import Database.Bloodhound import Network.HTTP.Conduit (respons...
<filename>src/unidim-lipm-dcm-estimator.cpp #include <state-observation/dynamics-estimators/unidim-lipm-dcm-estimator.hpp> #include <state-observation/tools/miscellaneous-algorithms.hpp> namespace stateObservation { constexpr double UnidimLipmDcmEstimator::defaultDt_; constexpr double UnidimLipmDcmEstimator::defaultO...
/** Visitor that deletes an object tree. */ public class DeleteVisitor implements ObjectVisitor { private final MetadataOperations metadataOps; private final Function<ObjectHandle, Boolean> callback; public DeleteVisitor(MetadataOperations metadataOps, Function<ObjectHandle, Boolean> callback) { this.metada...
The metazoan origin recognition complex. Regulated initiation of DNA replication relies on the firing of initiator proteins that bind specifically to origin DNA. The discovery of the first eukaryotic initiator, the Saccharomyces cerevisiae Origin Recognition Complex (ORC) has allowed us to discern some aspects of how ...
The Sipapu is the opening (gateway) through the Kiva to the “nether” lands of the ancient Anasazi Indians and their descendants in the south-west. This sensitive love-story of the “end-times” brings together a re-turning tribe of the Ancients from the past, a Pleiadian Space expedition from the “future”, and some “awak...
#coding:utf-8 import os from folderReader import traverseDIR from bs4 import BeautifulSoup import codecs src = traverseDIR() rootPageList = src[0] def rootPageBuilder(): for item in rootPageList: pageContent ='''''' srcPath = "./src/" + item rootFilesDir = os.walk(srcPath) root...
/** * a class that represents login data. */ public final class LoginData { /** * the chain data. */ @NotNull private final ChainDataEvent.ChainData chainData; /** * the player. */ @NotNull private final PlayerConnection connection; /** * the profile. */ @NotNull private final G...
<filename>tika-example/src/main/java/org/apache/tika/example/InterruptableParsingExample.java /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The AS...
<gh_stars>0 /* ** ** Copyright 2015, The Android Open Source Project ** ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** ** http://www.apache.org/licenses/LICENSE-2.0 ** ** Unless requ...
<reponame>RosaAsk/apicurio-studio<filename>front-end/studio/src/app/components/page-base.component.ts /** * @license * Copyright 2017 JBoss 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 Lice...
def changeFitMode(self, mode): self.fit_mode = mode
PIPEGLADE Graphical User Interfaces, The UNIX Way Pipeglade is a helper program that displays graphical user interfaces for other programs. It renders the GUI definition found in a GtkBuilder file (created using the Glade Interface Designer), and communicates with the main program solely via pipes or fifos. To have ...
/** * 3D Graph scene. * @author elezeta */ public final class Scene implements IModel { Definition[] definitions; @Prefix("scene") Sentence sceneContent; public void draw() { ColorData black = new ColorData(0.5,0.5,0.5,0.5); TextureData grass = Resources.getText...
The Role of Co-Enzyme Q10 in The Respiratory Chain and Some of Its Clinical Indications: A review Background: The usage of supplements becomes an important part of everyone health since many of these materials have produced real improvement in general health. These materials are not approved by organization like Food ...
/// set the motor speed in radians per second. public void SetMotorSpeed(float speed) { m_bodyA.wakeUp(); m_bodyB.wakeUp(); m_motorSpeed = speed; }
/** * Contestants do not need to worry about anything in this file. This is just * helper code that does the boring stuff for you, so you can focus on the * interesting stuff. That being said, you're welcome to change anything in * this file if you know what you're doing. */ public class DuelPlanetWars { // St...
// Struct creates a struct{} expression. The arguments are a series // of name/type/tag tuples. Name must be of type *ast.Ident, type // must be of type ast.Expr, and tag must be of type *ast.BasicLit, // The number of arguments must be a multiple of 3, or a run-time // panic will occur. func Struct(args ...ast.Expr) *...
package solace.io.xml; /** * Exception thrown in response to a parse error while parsing an area XML file. * @author <NAME> */ public class AreaParseException extends Exception { /** * Creates a new exception. * @param fileName Name of the file being parsed. * @param msg Message detailing the exact natur...
/* * When decompressing, we typically obtain more than one page * per reference. We inject the additional pages into the page * cache as a form of readahead. */ static int zisofs_readpage(struct file *file, struct page *page) { struct inode *inode = file_inode(file); struct address_space *mapping = inode->i_mapp...
<filename>GuildEdit/cogs/settings.py from discord.ext import commands import discord class Settings(commands.Cog): def __init__(self, bot): self.bot = bot self.database = self.bot.cogs["Database"] def locked_guilds(self): request = self.database.select_request("guildedit", "...
<gh_stars>1-10 package com.hermant.graphics.cameras; import com.hermant.graphics.scene.GameObject; import org.joml.Matrix4f; import org.joml.Vector3f; public class ThirdPersonCamera implements Camera { private GameObject thirdPerson; private float distance; private Vector3f up = new Vector3f(0, 1, 0); ...
Breathing Pulses in an Excitatory Neural Network In this paper we show how a local inhomogeneous input can stabilize a stationary-pulse solution in an excitatory neural network. A subsequent reduction of the input amplitude can then induce a Hopf instability of the stationary solution resulting in the formation of a b...
import argparse import os import sys from cryptography.exceptions import InvalidTag from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes from cryptography.hazmat.primitives.kdf.pbkdf2 impo...
/** * Find a root of a logical tree containing this file, if any. * @param file a file on disk * @return an ancestor directory which is the root of a logical tree, * if any (else null) * @since 1.27 */ public static URI findRoot(URI file) { if (!file.equals(BaseUtilities.no...
A silver line train approaches at The Spring Hill Station in Tysons. (Photo by Yue Wu/The Washington Post) Northern Virginia’s economy is undergoing a rocky transition, with ongoing losses of federal jobs, empty office buildings lined up along Route 28, the state’s biggest private building empty for more than a year a...
/// Sets up the highlight groups for the Lsp icons, linking them to /// pre-existing defaults. pub fn hlgroups(lua: &Lua) -> LuaResult<()> { let opts = lua.create_table_with_capacity(0, 2)?; // Don't override existing definitions. opts.set("default", true)?; opts.set("link", "TSNone")?; api::set_hl(...
import { TsCode } from '../abstruct/tsCode'; import { Identifier, NumericLiteral, StringLiteral } from './expressions'; export class EnumMember extends TsCode { constructor(private readonly identifier: Identifier, private readonly value?: StringLiteral | NumericLiteral) { super(); this.mergeImport(identifier...
// Copyright (C) Rishabh Iyer, John T. Halloran, and Kai Wei // Licensed under the Open Software License version 3.0 // See COPYING or http://opensource.org/licenses/OSL-3.0 #ifndef SET_H #define SET_H #include <unordered_set> class Set { protected: std::unordered_set<int> uset; public: Set(); Set(int max_elements); ...
#include "Gripper.hpp" #include <rw/rw.hpp> #include <rwsim/rwsim.hpp> #include <rw/models/RigidObject.hpp> using namespace std; USE_ROBWORK_NAMESPACE; using namespace robwork; using namespace rwsim; Gripper::Gripper(const std::string& name) : _name(name), _baseGeometry(NULL), _leftGeometry(NULL), _rightGeome...
<gh_stars>1-10 import React from 'react'; import { Example, Props, code, md, AtlassianInternalWarning, DevPreviewWarning, } from '@atlaskit/docs'; const BasicExample = require('../examples/00-usage').default; export default md` ${( <> <div style={{ marginBottom: '0.5rem' }}> <Atlassian...
/** * Called to indicate that the last write has been performed. * It updates the state and performs cleanup operations. */ void closed() { while(true) { OutputState state=_state.get(); switch (state) { case CLOSED: {...
class SonosActionException(Exception): """An exception occurred with the Sonos Action.""" class ServiceException(SonosActionException): """An exception occurred within a service""" # Request Objects class RequestObjectException(SonosActionException): """An exception occurred with a request object""" c...
<reponame>andersonfonseka/1ppd-bookstore package com.oneppd.memento; import java.util.Stack; import java.util.concurrent.locks.ReentrantLock; import com.oneppd.domain.ShoppingCart; public class Memento { private static Memento INSTANCE; private static ReentrantLock lock = new ReentrantLock(); private Stack<S...
<reponame>suhaprabhu/vehicle-info-tests package info.vehicle.actions; import info.vehicle.methods.BaseTest; import info.vehicle.methods.TestCaseFailed; import info.vehicle.pages.StartPage; public final class StartPageAction implements BaseTest { public static void navigateToDvla() throws TestCaseFailed { ...
/** * Section with an output. */ public static class MockOutputSection { @Next("doOutput") public void doInput() { // Testing type } }
Rabbi Lazarus and the Rich Man: A Talmudic Parody of the Late Roman Hell (Yerushalmi Hagigah 2.2, 77d and Sanhedrin 6.9, 23c) The Talmud Yerushalmi absorbs Christian ethical and narrative paradigms at the same time as parodying many aspects of Christian gospel stories that were popular in the fifth century. The rabbis...
/** * * @author Ahmed Sakr * @since February 28, 2016. */ public class AESWorker { // the default value the worker will assume wit be 256 bits for the key length. private int keyLength = 256; /** * Returns the running key length of this worker instance. * * @return an integer key l...
Quality Assurance for Cerebrospinal Fluid Protein Analysis: International Consensus by an Internet-Based Group Discussion Abstract A group of neurologists and clinical neurochemists representing twelve countries worked towards a consensus on laboratory techniques to improve the quality of analysis and interpretation o...
package com.dashradar.dashdhttpconnector.dto; public class MempoolInfoDTO { long size;//number of transactions in mempool long bytes; long usage; long maxmempool; double mempoolminfee; public long getSize() { return size; } public void setSize(long size) { this.si...
<filename>backend/typescript/types.ts export enum Role { USER = "User", ADMIN = "Admin", VOLUNTEER = "Volunteer", DONOR = "Donor", } export enum Status { APPROVED = "Approved", PENDING = "Pending", REJECTED = "Rejected", } export enum DayPart { EARLY_MORNING = "Early Morning (12am - 6am)", MORNING =...
def prv_axis(dcm): phi = prv_angle(dcm) factor = 1./(2.*np.sin(phi)) e1 = factor * (dcm[1][2] - dcm[2][1]) e2 = factor *(dcm[2][0] - dcm[0][2]) e3 = factor *(dcm[0][1] - dcm[1][0]) evec = np.array([e1, e2, e3]) return evec, phi
module Graphics.Proc.Lib.Typography.Attributes( -- textSize ) where {- import Graphics.Rendering.FTGL import Graphics.Proc.Core import Graphics.Proc.Lib.Typography.Display textSize :: Int -> Pio () textSize size = onFont $ \font -> setFontSize font size -- consider using these types for alignment data TextAlignX =...
package comm import ( "bytes" "crypto/md5" "fmt" "github.com/google/go-github/v30/github" "issue-man/config" "issue-man/global" "issue-man/tools" ) type File struct { PrNumber int MergedAt string MergeCommitSHA string CommitFile *github.CommitFile } // 处理需同步文件 func (f File) Sync(include co...
def _decode_icu_plurals(data): result = {} OUTER, TRANS, TRANS_VAR = 0,1,2 def _msg_generator(chars): brace_level = 0 buf = [] for x in data: buf.append(x) if x == '{': brace_level += 1 if brace_level > TRANS_VAR: ...
/** * Go to the next handler if the given next is none null. Reason for this is for * middleware to provide their instance next if it exists. Since if it exists, * the server hasn't been able to find the handler.yml. * * @param httpServerExchange * The current requests server exchange. * @param...
def handle_post(self, request, user, *args, **kwargs): try: self.log.info('Search Traffic Return by name') if not has_perm(user, AdminPermission.OPTION_VIP, AdminPermission.READ_OPERATION): self.log.error( u'User does not have permission to perform the...
a=input() while(a>0): a=a-1 b=input() s=0 t=0 for i in range(0,15): for j in range(0,33): s=(7*i)+(3*j) if(s==b): print"YES" t=1 break elif((7*i)>b): print"NO" t...
<reponame>iotaledger/inx-chronicle // Copyright 2022 <NAME> // SPDX-License-Identifier: Apache-2.0 /// Module containing the Block document model. mod block; /// Module containing the LedgerUpdate model. mod ledger_update; /// Module containing the Milestone document model. mod milestone; /// Module containing the Out...
class Product: """ Represents a single grocery product """ def __init__(self, id, upc, brand, description, image, size, price): self.id = id self.upc = upc self.brand = brand self.description = description self.image = image self.size = size self.price = ...
Regulated and Non-Regulated Mycotoxin Detection in Cereal Matrices Using an Ultra-High-Performance Liquid Chromatography High-Resolution Mass Spectrometry (UHPLC-HRMS) Method Cereals represent a widely consumed food commodity that might be contaminated by mycotoxins, resulting not only in potential consumer health ris...
def cmd_catalog(navigation_target=None, detailed_help=False): from .registry import app if detailed_help: print(catalog_cmd_detailed_help) return local_catalog_url = "http://localhost:3000" if navigation_target is None: catalog_url = local_catalog_url elif navigation_target...
And how are your five fingers doing? I’m happy to say I feel like I’m in the black. The one thing that’s gone into the debit is me being a good friend. Career, marriage, fatherhood—the others are doing good. Probably your most famous friendship has been with Lance Armstrong. Do you maintain contact with him? Yeah. N...
/** * Test nb train on iris. * * @throws IOException * Signals that an I/O exception has occurred. */ @Test public void testNBTrainOnIris() throws IOException { Pipeline<File, OnlineEvaluation> pipeline; Map<String, String> labelMap = Maps.newHashMap(); labelMap.put("Iris-setosa", 1 + "");...
def _get_seeds(data_set, tag_set, seeds_category, seeds_size=1): if (seeds_category not in tag_set) \ or (data_set.shape[0] != tag_set.shape[0]): return [], [] if seeds_size <= 0 or seeds_size >= len(data_set): seeds_size = 1 category_set = data_set[(tag_s...
package ru.job4j.h2mapping.t1carcatalog.model.impl; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration; import ru.job4j.h2mapping.t1carcatalog.entity.Car; import ru.job4j.h2mapping.t1carcatalog.entity.CarBody; import ru.job4j.h2mapping.t1carcatalog.entity.Engine; import ru.job4j.h2mapping.t1ca...
/** * @return - a new Administrator account */ public static final GDataAccount createAdminAccount(){ GDataAccount retVal = new GDataAccount(); retVal.setName("administrator"); retVal.setPassword("password"); retVal.setRole(AccountRole.USERADMINISTRATOR); retVal.setRol...
/** * @version 0.1 * * @author Hefei Li * * @since May 9, 2015 */ public class MissingTemperatureFields extends Configured implements Tool { private static final Logger log = LoggerFactory.getLogger(MissingTemperatureFields.class); @Override public int run(String[] args) throws Exception { if (args.length !...
/** * @file merge_unittest.cpp * @author lipingan (<EMAIL>) * @brief * @version 0.1 * @date 2022-01-24 * * @copyright Copyright (c) 2022 * */ #include "merge.h" #include "gmock/gmock.h" #include "gtest/gtest.h" namespace leetcode { TEST(merge, case_0) { std::vector<int> nums1{1, 3, 5, 7, 9}; std::vector<...
def select_paths_set(self, calc, pathset, comm, memLimit): self.pathset = pathset self.percircuit_p_polys = {} repcache = self.pathset.highmag_termrep_cache circuitsetup_cache = self.pathset.circuitsetup_cache thresholds = self.pathset.thresholds all_compact_polys = [] ...
import * as React from 'react' import { Row, Column, Field, Section, InputOnChangeData } from 'decentraland-ui' import { t } from 'decentraland-dapps/dist/modules/translation/utils' import { isValid } from 'lib/address' import ItemImage from 'components/ItemImage' import Icon from 'components/Icon' import { getMaxSupp...
/** * Monitors the asynchronous progress of the JSR-88 operation. */ private static final class Monitor implements ProgressListener { public static ProgressObject join(ProgressObject po, String errorMessage) throws Exception { Monitor m = new Monitor(); po.addProgressListener(...
def mock_query_generator(suds_objects): for obj in suds_objects: yield obj
/** * Sends scores using the built-in email client. * @param v The view context. */ public void sendScoresViaEmail(View v) { String winner = "Winning Team: "; if (scoreTeamA > scoreTeamB) winner = winner + getTeamAName(); else if (scoreTeamB > scoreTeamA) ...
import { Renderer2 } from '@angular/core'; import { createComponentFactory, createSpyObject, Spectator } from '@ngneat/spectator'; import { PageComponent } from '../page.component'; import { PageFooterComponent } from './page-footer.component'; describe('PageFooterComponent', () => { let spectator: Spectator<PageF...
<reponame>dmkuchynski/MAVN.FrontEnd.BackOffice export interface AgentRequirements { TokensAmount: string; }
<filename>p812-largest-triangle-area.py # You have a list of points in the plane. Return the area of the largest # triangle that can be formed by any 3 of the points. # Example: # Input: points = [[0,0],[0,1],[1,0],[0,2],[2,0]] # Output: 2 # Explanation: The five points are show in the figure below. The red triangle #...
/** * @author Tom * * Controller for Neo4j movie API */ public class Controller { private static final String ADDRESS = "bolt://localhost"; private static final String USERNAME = "neo4j"; private static final String PASSWORD = "1234"; private static Driver driver = null; private stati...
<filename>semester-3/programming-design-and-programming-languages/labs/lab_12/headers/UserClass.hpp #ifndef UserClass_hpp #define UserClass_hpp #include <iostream> #include <vector> #include <map> #include <stdlib.h> #include <fstream> #include "Library.hpp" using namespace std; class UserClass { private: std::ma...
import { MINode } from "./mi_parse"; import { DebugProtocol } from "vscode-debugprotocol/lib/debugProtocol"; export interface BackendBreakpoint { file?: string; line?: number; raw?: string; condition: string; countCondition?: string; } export interface Variable { name: string; valueStr?: string; type?: string...
from solutions.FIZ import fizz_buzz_solution class TestHlo2(): def test_fiz(self): assert fizz_buzz_solution.fizz_buzz(3) == 'fizz fake deluxe' assert fizz_buzz_solution.fizz_buzz(12) == 'fizz' assert fizz_buzz_solution.fizz_buzz(10) == 'buzz' assert fizz_buzz_solution.fizz_buzz(15)...
import { User } from './user' import { Post } from './post' import { Tag } from './tag' import { TagPost } from './tagPost' import { UserDetail } from './userDetails' // 1:n User.hasMany(Post, { constraints: false, as: 'posts', foreignKey: 'authorId' }) Post.belongsTo(User, { constraints: false, as: 'author', fo...
/** * Uses fitted/trained model to make predictions on features. * * @param features The features to make predictions on. * @return The models predicted labels. * @throws IllegalArgumentException Thrown if the features are not correctly sized per * the spec...
/// Transforms a parser's combination of top terms into a term, if possible. pub fn to_term(&self) -> Res<Option<Term>> { let mut stack = Vec::with_capacity(17); let mut ptterm = self; 'go_down: loop { let mut term = match *ptterm { PTTerms::And(ref args) => { ...
//------------------------------------------------------------------------------ // GB_serialize_array: serialize an array, with optional compression //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2023, All Rights Reserved. // SPDX-...
#!/usr/bin/env python # coding: utf-8 # Loading Libraries and data import sys import unittest from SvmModel import Model from Hyperoptsvm import controller # BaseClass class TestSVMHyperopt(unittest.TestCase): """ This class defines a different methods which are used to tests the various values. """ ...
def build_causal_graph(train_data: pd.DataFrame, column_names: List[str], inputs: jnp.ndarray): make_multinomial = functools.partial( causal_network.MLPMultinomial.from_frame, hidden_shape=(100,)) make_gaussian = functools.partial( causal_network.Gaussian, hidden_shape=(100,)) n...
def schedule_next_event(self, p_delay=0): l_delay, l_list = self._find_next_scheduled_events() if p_delay != 0: l_delay = p_delay lightingUtilitySch(self.m_pyhouse_obj).run_after_delay(l_delay, l_list)
def exercise_key_with_algorithm( cls, key_type: psa_storage.Expr, bits: int, alg: psa_storage.Expr ) -> bool: if key_type.string == 'PSA_KEY_TYPE_RAW_DATA': return False m = cls.RSA_OAEP_RE.match(alg.string) if m: hash_alg = m.group...
/** * @author Dylan Cai */ public class MultipleHeaderActivity extends AppCompatActivity implements SearchHeaderViewDelegate.OnSearchListener { private LoadingStateView loadingStateView; @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setCon...
/** * gst_adapter_available: * @adapter: a #GstAdapter * * Gets the maximum amount of bytes available, that is it returns the maximum * value that can be supplied to gst_adapter_map() without that function * returning %NULL. * * Returns: number of bytes available in @adapter */ gsize gst_adapter_available (Gst...
// Copyright 2021 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "media_capabilities/v4l2.h" #include <fcntl.h> #include <linux/videodev2.h> #include <string.h> #include <sys/stat.h> #include <sys/types.h> ...
// CompressedClone creates a LZ4 compressed clone if not compressed, otherwise // it returns itself. func (r *RecordMessage) CompressedClone() (*RecordMessage, error) { if r.RecordHeader.Compression() != Compression_None || len(r.Data) == 0 { return r, nil } if len(r.Data) > MaxDataSizeUncompressed { return nil,...
The new series of The X-Files has been partly prompted by recent exposés about government snooping, according to the show’s creator, Chris Carter. “It’s a perfect time to come back with the X-Files considering global politics,” said Carter, who was speaking in Cannes shortly after the first episode of the new series h...
/** * Container class for TF potions * * @since 0.3.6.4 * @version 0.3.6.4 * @author Stadler76 */ public class TransformativePotion extends AbstractPotion { private final Body body; public TransformativePotion(AbstractItemType itemType, List<PossibleItemEffect> effects, Body body) { super(itemType, effects);...
import Camera from "./camera" import Calc from "../calc" const HALF = 0.5 const HALF_PI = Math.PI * HALF const ALMOST_HALF_PI = 1.570796326794896 /** * Abstract camera for 3D space. */ export default abstract class Space extends Camera { protected cameraMatrix = new Float32Array(16) /** * The camera l...
/** create a Bundle to simulate an incoming notification message */ static Bundle createNotificationMessage() { Bundle bundle = new Bundle(); bundle.putString(KEY_BODY, "Hello World"); return bundle; }
#! /usr/bin/env python3.5 # Copyright 2017 <NAME> # vim:ts=4:sw=4:ai:et:si:sts=4 import logging from peewee import Model, Proxy, OperationalError, IntegrityError from playhouse.pool import PooledSqliteDatabase logger = logging.getLogger(__name__) db_proxy = Proxy() class BaseModel(Model): fields = [] cla...
summan = input() num = [] for i in range(len(summan)): if summan[i] > '0' and summan[i] < '4': num += [int(summan[i])] num.sort() for i in range(len(num)): if i < len(num)-1: print(num[i], end='+') else: print(num[i])
{-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GADTs #-} module Data.Functor.Constraint.Wrap where import Data.Proxy (Proxy) -- | A wrapper type where the first argument is a given constraint on the value. data WrapC c a where WrapC :: c a => a -> WrapC c a instance Show a => Sh...
import settingsSchemaJSON from '../../../schema/settings.schema.json' import { mergeSettingsSchemas } from './configuration' describe('mergeSettingsSchemas', () => { it('handles empty', () => expect(mergeSettingsSchemas([])).toEqual({ allOf: [{ $ref: settingsSchemaJSON.$id }], })) ...
from math import gcd def mlt(): return map(int, input().split()) def arp(): return [*mlt()] def solv(): x, y, z = mlt() if z == min(x, y): print(10**(x-1), 10**(y-1)) return p = x-z+1 q = y-z+1 a = 1 while a < 10**p: a *= 2 a //= 2 b = 1 whi...
<gh_stars>0 import { ViewEncapsulation, Component, OnInit, ViewChild } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { OTextInputComponent, OTranslateService } from 'ontimize-web-ngx' import { MatSnackBar } from '@angular/material'; @Component({ selector: 'branches-de...
import Vue from "vue"; import App from "./App.vue"; import { createRouter } from "./router"; import VueTruncate from "vue-truncate-filter"; import "./assets/custom.scss"; import Meta from "vue-meta"; import * as Sentry from "@sentry/browser"; import "@/assets/global.css"; import VueScrollTo from "vue-scrollto"; import ...