text
stringlengths
27
775k
'use strict'; var elasticsearch = require('elasticsearch'); var auth = 'vintest:test1234'; var port = 20914; var protocol = 'https'; var log = 'trace'; var hostUrls = [ 'iad1-10914-0.es.objectrocket.com', 'iad1-10914-1.es.objectrocket.com', 'iad1-10914-2.es.objectrocket.com', 'iad1-10914-3.es....
# Comprehensive results table Results are sorted by their absolute performance under corruption. ## ResNet-50 Backbone Track In this section only models with a ResNet 50 Backbone with Feature Pyramid Networks are listed. ### Coco #### Object detection: Model | Backbone | box AP clean | box AP corr. | box % | :-...
export const ErrorStepWithoutName = new Error('A <FormizStep> always needs a `name` attribute.');
require "d2e/version" class D2E def initialize(options) @id = [options[:id]].flatten if options[:ignore] @ignore = [options[:ignore]].flatten end end def d2e(prev, curr) events = [] deleted = difference(prev, curr) created = difference(curr, prev) remained = intersection(prev,...
require "spec_helper" describe CB2::Percentage do let(:breaker) do CB2::Breaker.new( strategy: :percentage, duration: 60, threshold: 10, reenable_after: 600) end let(:strategy) { breaker.strategy } describe "#error" do before { @t = Time.now } it "opens the circuit when...
using Microsoft.EntityFrameworkCore; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; using SmartDormitory.App.Data; using SmartDormitory.Data.Models; using SmartDormitory.Services; using SmartDormitory.Services.Contracts; using System; using System.Collections.Generic; using System.Linq; using System.Th...
import { Component, ViewChild, Input } from '@angular/core'; import { async, TestBed, ComponentFixture } from '@angular/core/testing'; import { MenuComponent } from './menu.component'; import { By } from '@angular/platform-browser'; import { MenuItemComponent } from './menu-item.component'; import { MenuKeyboardService...
# frozen_string_literal: true require 'pathname' require 'fileutils' # NOTE: Extracted from dry-cli version 0.6.0, which later removed this file as # it was refactored and extracted into the more complete (and complex) dry-files. module ViteRuby::CLI::FileUtils class << self # Creates a new file or rewrites the...
<?php namespace Cerad\Bundle\CommonBundle\Event; use Symfony\Component\EventDispatcher\Event; use Symfony\Component\HttpFoundation\Request; class PersonLoadEvent extends Event { private $request; private $identifier; private $person; public function __construct($identifier, Request $r...
{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE OverloadedStrings #-} module Book ( Book (..) , formatBook , formatBooks ) where import Author import Data.Aeson import Data.List import Data.Text as T (Text, intercalate, lines, pack, splitOn) import GHC.Generics da...
include("../src/geom_module.jl") module meshtest using PyPlot PyPlot.pygui(true) using ..geom rectangle = geom.Rectangle(-1.0, -1.0, 1.0, 1.0) circle = geom.Circle(0.0, 0.0, 0.4) distance_fcn = p -> geom.difference_signed_distance_function( geom.signed_distance_function(rectangle, p), ...
CKEDITOR.plugins.add('uploadFile', { requires : 'notification', lang : 'en', icons : 'uploadFile', init : function(editor) { // Get config data var config = editor.config.uploadFile; // Set default settings CKEDITOR.tools.extend(config, { accept : '.png,.jpg,.jpeg,.gif,.pdf', // Accepted file types, * ...
# WOA Deployer for Raspberry Pi 3 ## IMPORTANT NEWS This application has been replaced by **Deployer**. You can download it here: https://www.microsoft.com/store/productId/9N53GG0FTQR9 GitHub project: https://github.com/SuperJMN/Deployer ![image](https://user-images.githubusercontent.com/3109851/148647612-2d61f65d...
module.exports = config = { "token": "YOUR-TOKEN-HERE", "prefix": "/", "playCommand": "join" };
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * @fileoverview A widget hosting an HTML snippet. */ goog.provide('cvox.OverlayWidget'); goog.require('cvox.DomUtil'); goog.require('cvox.SearchWi...
#!/bin/bash set -e -x VCPKG_ROOT=`pwd` PORT_SRC=$1 if [[ "$2" = "linux/arm64" ]]; then export VCPKG_FORCE_SYSTEM_BINARIES=1 fi apt-get -qq update \ && apt-get install -y --no-install-recommends \ curl \ pkg-config \ tar \ unzip \ zip ${VCPKG_ROOT}/bootstrap-vcpkg.sh ${VCPKG_ROOT}/vcpkg install...
import 'package:flutter/material.dart'; import 'package:flutter_svg/flutter_svg.dart'; import '/constants/colors_app.dart'; class MenuItem { const MenuItem({Key? key, required String sourceIcon, required String label}) : _sourceIcon = sourceIcon, _label = label; final String _sourceIcon; final Str...
module Day19 ( testRule1 , testRule2 , testRule3 , testRule4 , testRule5 , testRule6 , testa , testb , testaorb , testaorb' , testaandb , testaandb' , testaandb'' , example19a , solutionDay19a ) where import Common import Control.Applicative (many, (<|>)) import ...
<?php namespace Phragile; class TransactionList { private $transactions = []; public function __construct(array $transactions) { $this->transactions = $transactions; } public function getChronologicallySorted() { foreach ($this->transactions as $taskID => $taskTransactions) { $this->transactions[$task...
#include "ring/msg_queue.h" #include "ring/ringbuffer.h" #include "common_macro.h" struct __msg_queue { ring_buf_handle ring_buf_p; }; typedef struct { uint32_t msg_size; } msg_header; msg_queue msg_queue_create(__in uint32_t buf_size) { if (buf_size < 2) { return NULL; } const size_t expect_mem_size = buf_...
#include <stdio.h> #include <stdlib.h> #include <string.h> #define ERROR_JUGE1(RET, VAL, MSG, HAN) do{if(RET != VAL){puts(MSG); HAN;}}while(0) #define ERROR_JUGE2(RET, VAL, MSG, HAN) do{if(RET == VAL){puts(MSG); HAN;}}while(0) int main(int argc, char *argv[]) { FILE *fp; int buff_size, file_size; unsigned...
import 'package:flutter/material.dart'; import 'package:flutter_application_1/helpers/constants.dart'; import 'package:flutter_application_1/controllers/answers.dart'; import 'package:get/get_state_manager/get_state_manager.dart'; class ResetButton extends StatelessWidget { const ResetButton({ Key? key, requ...
require 'spec_helper' describe 'blank?' do it 'String' do expect(Fusu.blank?('')).to eql true expect(Fusu.blank?('hello')).to eql false end it 'Array' do expect(Fusu.blank?([])).to eql true end end
using System; using System.IO; #if UNITY_EDITOR using UnityEditor; using UnityEditor.Build.Reporting; #endif using UnityEngine; namespace Unity.Netcode.MultiprocessRuntimeTests { /// <summary> /// This is needed as Unity throws "An abnormal situation has occurred: the PlayerLoop internal function has been call...
function New-DocWordText { [CmdletBinding()] param( [Xceed.Document.NET.Container] $WordDocument, [PSCustomObject] $Parameters ) if ($Parameters.Text) { Add-WordText -WordDocument $WordDocument -Text $Parameters.Text -Color $Parameters.Color -Supress $true } if ($Param...
<?php declare(strict_types=1); namespace VDOLog\Core\Domain\User; use VDOLog\Core\Domain\User; interface CurrentUserProvider { public function hasCurrentUser(): bool; public function getCurrentUser(): User; }
console.log("Hello world!!") var address = { street:"Main street", "house number":1000, apartment: { 'floor':3, 'number': 301 } } console.log(address); console.log(address.street); console.log(address["house number"]); console.log(address.apartment.floor+", "+address.apartment.number); ...
def sum_cloest(nums,target): nums.sort() error = float("infinity") if len(nums) < 3: return 0 for i in range(0,len(nums)-2): left = i + 1 right = len(nums) - 1 if abs(nums[i] + nums[left] + nums[right] - target) < error: error = abs(nums[i] + nums[left] + num...
// @flow type Todo = {| id: number, userId: string, completed: boolean, text: string, |} type Query = {| userId: string, filter: 'completed' | 'incompleted', |} export class TodoRepository { #todos: Array<Todo> = [] async find(query: Query) { const filtered: Array<Todo> = this.#todos.filter(todo...
<?php /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the RouteServiceProvider within a group which | ...
const mongoose = require('mongoose'); const carSchema = new mongoose.Schema({ _id: mongoose.Schema.Types.ObjectId , name:{type:String , minlength:4 , maxlength:100 ,required:true }, horsePower:{type:Number , min:60 , max:1600}, engineSize:{type:Number , min:1 , required:true}, productionYear:{type:Number , ...
class User < ApplicationRecord # Include default devise modules. Others available are: # :confirmable, :lockable, :timeoutable, :trackable and :omniauthable devise :database_authenticatable, :registerable, :recoverable, :rememberable, :validatable has_many :user_schedules has_many :schedules, through...
#!/usr/bin/env bash set -euo pipefail ./gradlew build -Pwhitelotus_storePassword="${WHITELOTUS_STOREPASSWORD}" \ -Pwhitelotus_keyAlias="${WHITELOTUS_KEYALIAS}" \ -Pwhitelotus_keyPassword="${WHITELOTUS_KEYPASSWORD}"
package com.playone.mobile.data.repository import com.playone.mobile.data.model.PlayoneEntity import com.playone.mobile.data.model.UserEntity import io.reactivex.Single /** * Interface defining methods for the data operations related to * [com.playone.mobile.data.model.PlayoneEntity]. This is to be implemented by e...
/* Copyright 2002-2004 Elliotte Rusty Harold This library is free software; you can redistribute it and/or modify it under the terms of version 2.1 of the GNU Lesser General Public License as published by the Free Software Foundation. This library is distributed in the hope that it will be useful, ...
declare module "express-cycle" { import { Router } from "express"; function Cycle(options: { origin: String, route?: String, ms?: Number, verbose?: Boolean, timestamps?: Boolean }): Cycler; class Cycler extends Router { public cycleRoute: String; ...
#!/bin/bash DIRECTORY=$(dirname ${BASH_SOURCE[0]}) source $DIRECTORY/source-environment.sh IS_NUM_REGEX="^[0-9]+$" NOTIFICATION_LOG_PATH=~/.memory_low_notified.txt if ! [[ $# -eq 2 && $2 =~ $IS_NUM_REGEX ]]; then echo "Incorrect usage" echo "Correct usage: ./check_free_memory.sh <slack_channel_to_post_to> <memo...
# flask-dictionary-app A Simple python Flask Dictionary App. This is the Initial Page: <img src="https://github.com/DOJ-gam/flask-dictionary-app/blob/main/screenshots/dic1.png" alt="Sample 1" /> This is the result of a word Search: <img src="https://github.com/DOJ-gam/flask-dictionary-app/blob/main/screenshots/dic2.p...
import 'package:flutter/material.dart'; class BottomMenu extends StatefulWidget { final int defaultIndex; BottomMenu({Key key, @required this.defaultIndex}): super(key:key); @override _BottomMenuState createState() => _BottomMenuState(); } //ListTile.divideTiles( class _BottomMenuState extends State<Botto...
package sociam.pybossa.mongodb; import org.json.JSONObject; import sociam.pybossa.config.Config; import sociam.pybossa.methods.MongodbMethods; public class TestRestTwitterURL { public static void main(String[] args) { JSONObject json = MongodbMethods.getStatsFroRest(Config.taskCollection, null, null, 0, 2); Sy...
/* eslint-disable import/no-extraneous-dependencies */ const { join } = require('path'); const _ = require('lodash'); const webpack = require('webpack'); const merge = require('webpack-merge'); const baseConfig = require('./webpack.base.js'); const webpackNodeExternals = require('webpack-node-externals'); const pkg = r...
package izumi.logstage.api.rendering import scala.language.implicitConversions sealed trait AnyEncoded { type T <: Any def value: T def codec: Option[LogstageCodec[T]] } object AnyEncoded extends AnyEncodedLowPriority { @inline implicit def toPair[A](a: (String, A))(implicit maybeCodec: LogstageCodec[A] = nul...
#!/usr/bin/env bash set -eu export SOURCE_PATH=/app/source for i in build app openresty; do build_dir=$i envsubst <"${build_dir}/Dockerfile.in" >"${build_dir}/Dockerfile" done
package com.immanuelqrw.core.api.repository import com.immanuelqrw.core.entity.SerialEntityable /** * Base Repository interface * * @property T Entity type being manipulated */ interface BaseSerialRepository<T : SerialEntityable> : BaseRepository<T, Long>
--- title: 我的開發人員如何取得 50% 的 Azure 開發/測試工作負載折扣? description: 如果您的組織有適用於 Azure 的 Enterprise 合約,您的開發人員可以選擇... ms.faqid: group2_5 ms.topic: include ms.assetid: 86308cf3-909b-47a0-9230-5d1a93a2f87a author: CaityBuschlen ms.author: cabuschl ms.date: 05/03/2021 ms.openlocfilehash: 9ffd0ce86cb975e878daf53c529cd254132f6d85 ms.s...
using Microsoft.AspNetCore.Http; using Serilog.Core; using Serilog.Events; using System; using System.Threading; namespace Microsoft.AzureCAT.Samples.LoggingCommon { /// <summary> /// Pull in the correlation identifier from the logical call context /// </summary> public class SerilogContextEnricher : ...
 update ------ Обновление настроек движка
/*** Copyright 2014 Cisco Systems Inc. All rights reserved. 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...
package chapter09_plus /** * Author: LiuZheHui * CreateTime: 2022-04-04 14:31:00 * Desc: 隐式转换 */ object PL02_Implicit { def main(args: Array[String]): Unit = { val mm = new MyRichInt(13) println(mm.myMax(20)) // 20 println(mm.myMin(20)) // 13 // 1 隐式函数 implicit def convert(num:Int):MyRic...
'use strict'; angular.module('main') .service('eventsService', function ($log, $timeout, $http, DEV_CONSTANTS) { $log.log('eventsService Loading'); return { all: function () { return $http.get(DEV_CONSTANTS.SERVER_URL+'events'); }, remove: function (chatId) { return $http.de...
package linked import ( "config" "fmt" "util" ) func deleteLinkedReciprocalNode2(head *config.ListNode, n int) *config.ListNode { result := &config.ListNode{} result.Next = head var pre *config.ListNode cur := result i := 1 for head != nil { if i >= n { pre = cur cur = cur.Next //fmt.Println(i, n,...
#!/bin/bash -eu # myShellEnv v 1.0 [aeondigital.com.br] # # Variáveis de configuração do ambiente myShellEnv # # Para evitar conflitos entre variáveis de ambientes criadas por outros # pacotes, scripts ou desenvolvedores toda variável usada neste projeto # terá o prefixo 'MSE_GB_' (myShellEnv Global). # # Variáv...
import ChevronLeft from './ChevronLeft'; import ChevronRight from './ChevronRight'; import ChevronUp from './ChevronUp'; import ChevronDown from './ChevronDown'; export { ChevronLeft }; export { ChevronRight }; export { ChevronUp }; export { ChevronDown };
# @\_dotlas/api <!-- Badges --> ![npm](https://img.shields.io/npm/v/@_dotlas/api) ![node-current](https://img.shields.io/node/v/@_dotlas/api) ![GitHub last commit](https://img.shields.io/github/last-commit/dotlas/api-client-node) A simple client for the [Dotlas REST API](https://api.dotlas.com/docs). ## Installatio...
# 微栏目 通过微栏目ikuku的用户可以浏览并搜索ikuku的数据库(人物:7500+,项目:4000+,用户:40000+,文章:1600+,图片:100000+,专栏:50+)。 **1.搜索及发现周边** * 您只需要在输入框中输入任意想搜索的语句,ikuku.cn|在库言库将自动回复您最相关的3个项目或文章。 * 您也可以在ikuku.cn给您发送的消息中点击更多,以获取更多搜索结果。 * 找周边建筑? 只需两步! ① 点击屛幕下方“+”号 ② 点击“位置”,拖拽地图发送您要查询的位置。 **2. 特色专栏** * 2015年度专栏: 每筑建文,罗小姐库言库语,邓在在线 * 2...
// 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 writing, software // distributed u...
#-- Copyright 2022 Google LLC #-- #-- 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 #-- #-- https://www.apache.org/licenses/LICENSE-2.0 #-- #-- Unless required by applicable law or agre...
#include "pi_client.h" //Constants static const int MAX_BUF_LENGTH = 8192; static const int SERVER_PORT_NUM = 55000; static const char * STR_SERVER_PORT_NUM = "55000"; static char * SERVER_IP = "127.0.0.1"; //Variables static int server_sock = -1; static bool is_init = false; //Functions /* Setup a client fd, return...
; export symbols XDEF Entry, _Startup ;export 'Entry' symbol ABSENTRY Entry ;for absolute assembly: mark this as entry point ROMStart EQU $C000 ;absoolute address to place code/constant data STRT_ADR EQU $1000 BYTE_SIZE EQU $1002 ERR_CNT EQU $1004 LAST_ADR EQU $1006 ;values A_START E...
import glob, os from rq.timeouts import JobTimeoutException from .models import Task def job_exception_handler(job, *exc_info): # Get task task = job.args[0] # Time out exception if exc_info[0] is JobTimeoutException: task.status = "timeout" # Unknown exception else: task.s...
(ns listopia.home.handler (:require [listopia.home.view.index :as home.view.index] [listopia.config :refer [db-url]] [listopia.list.model :as list.model] [listopia.list.view.index :as list.view.index])) (defn handle-home-index [req] (let [user-id (get-in ...
export const clickBillingProfileCtaAction = (email: string, ctaButtonLabel: string): void => { cy.waitForAngular(); cy.get('dib-company-management dib-payment-method dib-billing-profiles dib-item .left .content .content') .contains(email) .parents('dib-item') .find('.right ui-button') .contains(cta...
<?php /** * Created by PhpStorm. * User: nate * Date: 7/19/18 * Time: 6:58 PM */ namespace App\Skeleton\Model; use \Illuminate\Database\Eloquent\Model; use \Illuminate\Database\QueryException; class ShopOwner extends Model { protected $fillable = [ 'shop' , 'access_token' , 'key' , 'timezone' , 'email' ]; ...
package main import ( "github.com/just1689/ttt/io" "github.com/sirupsen/logrus" "os" ) func main() { logrus.Println("Starting server") io.StartServer(os.Getenv("listen")) select {} }
using AutoMapper; using CoinBazaar.Transfer.API.Requests; using CoinBazaar.Transfer.Application.Commands; namespace CoinBazaar.Transfer.API.AutoMapper { public class MappingProfile : Profile { public MappingProfile() { CreateMap<CreateTransferRequest, CreateTransferCommand>(); ...
# Phonebook This is a simple .net core web.api and .net core blazer phonebook application **Techstack** . NET Core Web.API . Blazor Client . Tailwind.css **Assumptions** . Application must be easy to setup and run . Logging is not needed . Exception handling Not implemented for code simplicity and readerbility . A ...
class UILayerState { final String text; UILayerState(this.text); }
<?php namespace App\Http\Controllers\App\Params\prPlaces; use Illuminate\Routing\Controller; use App\SyClass\Helpers\Utilities; use App\SyClass\Helpers\Response; use App\SyClass\System\Security; use App\SyClass\System\Interfaces\InterfaceResponse; class readPlacesController extends Controller i...
package info.hzvtc.hipixiv.vm.fragment import io.reactivex.Observable interface ViewModelData<T> { fun getData(obs : Observable<T>?) fun getMoreData() }
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import * as React from 'react'; import { setDisplayName, wrapDisplayName } from 'recompose'; import { getClassNamePrefix } from './prefix'; import extendReactSt...
import * as React from 'react'; import { Chapter } from '../../domain/models'; interface CourseCurriculumChapterProps { chapter: Chapter; idx: number; } export const CourseCurriculumChapter: React.StatelessComponent< CourseCurriculumChapterProps > = (props: CourseCurriculumChapterProps) => { const chapter = p...
(ns flow.core (:require [reagent.dom :as reagent] [re-frame.core :as re-frame] [flow.effects :as effects] [flow.events :as events] [flow.subscriptions :as subscriptions] [flow.router :as router] [flow.views.app :as app])) (defn mount [] (re-f...
<div align="center"> <a href="https://github.com/hejingguang/upload-to-cdn-webpack-plugin"> <img width="200" height="200" src="https://webpack.js.org/assets/icon-square-big.svg"> </a> </div> # upload-to-cdn-webpack-plugin Compressed and sent to the specified address. ## Getting Started To begin, you'l...
# Product-Listing-Page Final Assignment to create a Product Listing Page using JQuery, KnockoutJs and Bootstrap
--- Create DataBase. create database wiki; ---Switch To DataBase. use wiki;
/* * Copyright 2013 Urban Airship and Contributors */ // // C# Port by Atsushi Eno // Copyright (C) 2013 Xamarin Inc. // using System; using System.Collections.Generic; using System.Linq; using System.Text; using Android.App; using Android.Content; using Android.OS; using Android.Runtime; using Android.Util; using An...
/** * Internal services available to other components of this application. */ @CheckReturnValue @NonnullByDefault package tfb.status.service; import com.google.errorprone.annotations.CheckReturnValue; import tfb.status.util.NonnullByDefault;
namespace ClicksAndDrive.Services.Data { using System.Collections.Generic; using System.Threading.Tasks; using ClicksAndDrive.Data.Models; using ClicksAndDrive.Services.Data.Contracts; using ClicksAndDrive.Web.ViewModels.Bicycles; public interface IBicycleService : IVehicleService { ...
'use strict'; $(document).ready(function() { window.addEventListener('resize', setHorMenu, false); window.addEventListener('load', setHorMenu, false); function setHorMenu(){ var $window = $(window); if($(window).width()>767){ $("body").addClass('fixed'); } else if($window.widt...
package rx //jig:template Observable<Foo> Map<Bar> // MapBar transforms the items emitted by an ObservableFoo by applying a // function to each item. func (o ObservableFoo) MapBar(project func(foo) bar) ObservableBar { observable := func(observe BarObserver, subscribeOn Scheduler, subscriber Subscriber) { observer...
import flask from planner.web import api from planner.web import database from planner.web.config import Config def create_app(config: Config) -> flask.Flask: app = flask.Flask(__name__) app.config.from_object(config) database.init_app(app) api.init_app(app) return app
using HtmlAgilityPack; using Microsoft.Extensions.Logging; using System; using System.Linq; using System.Net.Http; using System.Threading.Tasks; namespace BookmarkManager.Domain.Services { public class WebpageService : IWebpageService { private readonly IHttpClientFactory _httpClientFactory; p...
module LearnToRank module OrganisationEnums def organisation_enums @organisation_enums ||= { "6667cce2-e809-4e21-ae09-cb0bdc1ddda3" => 1, "6f757605-ab8f-4b62-84e4-99f79cf085c2" => 2, "8bb37087-a5a7-4493-8afe-900b36ebc927" => 3, "db994552-7644-404d-a770-a2fe659c661f" => 4, ...
import React from 'react'; import { IonContent, IonGrid, IonRow, IonCol, IonText } from '@ionic/react'; export const Empty: React.FC<any> = ({ message }) => { return ( <IonContent> <IonGrid className="queue-empty ion-justify-content-center"> <IonRow className="ion-justify-content-center"> ...
package com.chrisjanusa.randomizer.yelp.events import android.view.View import com.chrisjanusa.randomizer.R import com.chrisjanusa.base.interfaces.BaseEvent import com.chrisjanusa.base.interfaces.BaseRestaurantFragment import com.facebook.shimmer.ShimmerFrameLayout import kotlinx.android.synthetic.main.bottom_overlay....
def derive(coef, exp): if exp <= 2 : exp = 3 return str(coef * exp) + "x^" + str(exp-1)
from app import create_app import os app=create_app(os.getenv('FLASK_CONFIG') or 'default') @app.shell_context_processor def make_shell_context(): pass
package com.ttp.datasources.game import arrow.core.Either import com.ttp.datasources.game.mapping.toEntity import com.ttp.datasources.game.models.GameListResponse import com.ttp.datasources.game.services.GameService import com.ttp.entities.Game import com.ttp.shared.interfaces.DispatcherProvider import kotlinx.corouti...
package utils; import com.arpnetworking.commons.builder.OvalBuilder; import com.google.common.base.CharMatcher; import com.google.common.base.Joiner; import com.google.common.base.Splitter; import com.google.common.collect.Lists; import java.util.List; public class DefaultHostClassifier implements HostClassifier { ...
package org.firstinspires.ftc.teamcode; import com.qualcomm.robotcore.eventloop.opmode.Autonomous; import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode; import com.qualcomm.robotcore.hardware.DcMotor; import com.qualcomm.robotcore.hardware.DcMotorSimple; import com.qualcomm.robotcore.hardware.Servo; @Autonomou...
using System.Dynamic; namespace Hiarc.Core.Settings.Events { public class EventServiceSetting { public string Provider { get; set; } public string Name { get; set; } public bool Enabled { get; set; } public ExpandoObject Config { get; set; } } }
/* * Copyright 2014-2019 Rudy De Busscher (https://www.atbash.be) * * 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 requir...
package com.atlassian.performance.tools.infrastructure.mock import com.atlassian.performance.tools.ssh.api.DetachedProcess import com.atlassian.performance.tools.ssh.api.SshConnection import com.atlassian.performance.tools.ssh.api.SshConnection.SshResult import org.apache.logging.log4j.Level import java.io.File import...
import kaufland.com.coachbasebinderapi.mapify.IMapifyable import kaufland.com.coachbasebinderapi.mapify.Mapify import kaufland.com.coachbasebinderapi.mapify.Mapifyable import kaufland.com.coachbasebinderapi.mapify.Mapper import java.io.Serializable @Mapper class MapperWithTypeParam<T> { @Mapify private val na...
let input = Number(require('fs').readFileSync('./dev/stdin.txt').toString()); if(input == 1) return; const nums = Array.from({length: input }, (val, idx) => idx) //0~input - 1 nums[0] = false; nums[1] = false; let curr = 2;let input = Number(require('fs').readFileSync('./dev/stdin.txt').toString()); if(input == 1) retu...
package com.itscryo.hermes.global_model import com.itscryo.hermes.BuildConfig data class SharedPrefKeys( val userID: String = "userID", val appTheme: String= "appTheme", val appLanguage: String= "appLanguage", val credFileName: String = "$appID.HermesESPStorage", val spFileName: String = "$appID.HermesSPStorage"...
<?php /** * Cookie Consent Module * * @author Peter McWilliams <pmcwilliams@augustash.com> * @copyright Copyright (c) 2022 August Ash (https://www.augustash.com) */ namespace Augustash\CookieConsent\Model\Config\Source; use Magento\Cms\Model\ResourceModel\Page\CollectionFactory; use Magento\Framework\App\Req...
from flask import ( Blueprint, render_template, request, redirect, Response, url_for, ) import pydantic import yaml from conda_store_server import api, schema from conda_store_server.server.utils import get_conda_store, get_auth, get_server from conda_store_server.server.auth import Permissions...
import pytest import warnings import numpy as np import pandas as pd import os import mechanical_testing as mect @pytest.fixture(scope="module") def dimensions(): length = 75.00E-3 diameter = 10.00E-3 return length, diameter @pytest.fixture(scope="module") def tensile(dimensions): return mect.TensileTest( './te...
package ExtUtils::CBuilder::Platform::Windows; use strict; use warnings; use File::Basename; use File::Spec; use ExtUtils::CBuilder::Base; use vars qw($VERSION @ISA); $VERSION = '0.13'; @ISA = qw(ExtUtils::CBuilder::Base); sub new { my $class = shift; my $self = $class->SUPER::new(@_); my $cf = $self->{confi...