text
stringlengths
1
1.05M
<filename>index.js<gh_stars>0 'use strict'; const assert = require('assert'); assert(false, `amqplib-flow shouldn't be used at runtime`);
source "../yrun_template.sh" vim -c "source ${source}.exscript"
@MethodsReturnNonnullByDefault @ParametersAreNonnullByDefault package arekkuusu.stratoprism.common.item.prism; import mcp.MethodsReturnNonnullByDefault; import javax.annotation.ParametersAreNonnullByDefault;
if which swiftformat >/dev/null; then `which swiftformat` "Sources" --config .swiftformat --quiet `which swiftformat` "Tests" --config .swiftformat --quiet `which swiftformat` "Examples/RxRealmDemo-iOS" --config .swiftformat --quiet `which swiftformat` "Package.swift" --config .swiftformat --quiet else echo "error: swi...
import { ContractKit, newKitFromWeb3 } from "@celo/contractkit" import { ReadOnlyWallet } from "@celo/connect" import Web3 from "web3" import net from "net" import { CFG } from '../../lib/cfg' const networkURLKeyPrefix = "terminal/core/network-url/" let _cfgNetworkURL: string | undefined export const cfgNetworkURL = (...
using Discord.WebSocket; using System; namespace TournamentAssistantShared.Discord.Services { public class MessageUpdateService { private DiscordSocketClient _discordClient; public event Action<SocketReaction> ReactionAdded; public event Action<SocketReaction> ReactionRemoved; ...
#!/bin/bash # Copyright (c) 2021 Huawei Device 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 law...
<gh_stars>1-10 import fetchWrap from '@/utils/fetch'; const getSstatistics = async () => await fetchWrap({ url: `/api/v1/statistics`, method: 'GET', }); const getSstatisticsByCountyName = async countyName => await fetchWrap({ url: `/api/v1/statistics/county/${countyName}`, method: 'GET', }); ...
<reponame>lonelyion/TweetToBot-Docker<filename>pluginsinterface/PlugAsyncio.py # -*- coding: UTF-8 -*- from pluginsinterface.EventHandling import StandEven from pluginsinterface.Plugmanagement import async_send_even import asyncio import traceback import threading from helper import getlogger logger = getlogger(__name_...
<reponame>dlaidig/vqf // SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>> // // SPDX-License-Identifier: MIT #include "basicvqf.hpp" #include <algorithm> #include <limits> #define _USE_MATH_DEFINES #include <math.h> #include <assert.h> #define EPS std::numeric_limits<vqf_real_t>::epsilon() #define NaN std::numeric_limi...
<filename>static/js/noTableOrder.js $('.nTOHederDownMove a').click(function(){ $(this).attr("class","nTOHederDownMoveActive").siblings().removeAttr("class","nTOHederDownMoveActive") }) $(".nTOHederUp p").on("click",function(){ $(".nTOHederUp input").val(""); })
<gh_stars>1-10 package com.zhihuianxin.xyaxf.commonservice.thrift.user; import com.zhihuianxin.xyaxf.commonservice.thrift.common.Gender; import java.io.Serializable; public class WXAccount implements Serializable { public WXAccount(String open_id, String union_id, String nickname, String avatar, Gender gender, ...
export default { currentLevel: 3, levelData: [{ briefing: `Ahoy newbie, on your first traning mission! ¶ To accelerate ship speed press and hold A button. ¶ To slow down press and hold D button. ¶ Your task will be to lure 10 police ship and don't let them catch you! Goo...
#!/bin/bash # # @file node-exclude-ip.sh # @brief uCodev Elastic Tools - Utilities # Gracefully excludes a node from an Elasticsearch cluster based on it's Name # # Date: 29/10/2015 # # Copyright 2015 Pedro A. Hortas (pah@ucodev.org) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may ...
<gh_stars>1-10 # -*- coding: utf-8 -*- import csv import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText SENDER_EMAIL = '<EMAIL>' SENDER_NAME = '<NAME> :)' EMAIL_SUBJECT = f'Olá! Você tem um novo e-mail do {SENDER_NAME}' # password = '@#!' # senha do email do remetente def...
def generate_all_strings(char_list, n): """ This function will generate all possible strings of length n using characters in the given list of characters """ if n == 0: return [''] # Stopping condition elif n == 1: return char_list # Stopping condition else: # Generate all possible strings ...
#!/bin/sh set -e set -u set -o pipefail if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy # frameworks to, so exit 0 (signalling the script phase was successful). exit 0 fi echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_P...
# Copyright 2021 Curtin University # # 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 writi...
SERVER_REQS_INSTALLED="FALSE" SERVER_PID="" DEFAULT_DB="" PYTHON_QUERY_SCRIPT=" import os import sys args = sys.argv[sys.argv.index('--') + 1:] query_results = None expected_exception = None working_dir, database, port_str, auto_commit, query_strs = args[0:5] if len(args) > 5: query_results = args[5] if len(args) ...
import { isWrittenValueEmpty, isLessThanLimit, isGreaterThanLimit, isShorterThanLimit, isLongerThanLimit, errorDataHandler, } from 'simple-input-validators'; import getArraySum from 'get-array-sum'; import { isLiveValidatorEnable } from './../helpers/is-live-validator-enable'; import { LiveValidator, V...
#include<bits/stdc++.h> using namespace std; #define n 100 class stackk{ int* ar; int top; public: stackk(){ ar=new int[n]; top=-1; } void push(int x){ if(top==n-1){ cout<<"Stack Overflow"<<'\n'; return; } top++; ar[top]=...
#!/usr/bin/env bash set -euo pipefail ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE:-$0}")"; pwd)" WORKSPACE_DIR="${ROOT_DIR}/../.." if [ "${OSTYPE-}" = msys ] && [ -z "${MINGW_DIR+x}" ]; then # On Windows MINGW_DIR (analogous to /usr) might not always be defined when we need it for some tools if [ "${HOSTTYPE-}" = x...
<gh_stars>1-10 /* * Copyright 2021 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 la...
import React from 'react'; import classNames from 'classnames'; import styles from './BigList.module.scss'; const BigList = ({ className, children }) => { const cls = classNames( styles.list, className ); return <ul className={cls}>{ children }</ul> }; export default BigList;
<filename>logstash-core/lib/logstash/api/commands/stats.rb # encoding: utf-8 require "logstash/api/commands/base" require 'logstash/util/thread_dump' require_relative "hot_threads_reporter" java_import java.nio.file.Files java_import java.nio.file.Paths module LogStash module Api module Commands class Sta...
<gh_stars>1-10 'use strict'; angular.module('erp', [ 'ngCookies', 'ngResource', 'ngSanitize', 'ngRoute', 'http-auth-interceptor', 'ui.bootstrap', 'ui.utils', 'datatables' ]) .config(function ($routeProvider, $locationProvider) { $routeProvider .when('/', { templateUrl: '/partials/ho...
<reponame>Byndyusoft/node-casc export * from "./cascSettingsDtoValidator"; export * from "./jsonSchemaValidator"; export * from "./keyPathsDtoValidator"; export * from "./valuesDtoValidator";
<gh_stars>1-10 import Enzyme, { shallow } from 'enzyme' import Adapter from 'enzyme-adapter-react-16' import {} from 'jest' import React from 'react' import CuneiformChar from '../CuneiformChar' Enzyme.configure({ adapter: new Adapter() }) jest.mock('aphrodite/lib/inject') test('<CuneiformChar /> contains the give...
import axios from 'axios' import defaultsDeep from 'lodash/defaultsDeep' const config = { baseURL: 'https://randomuser.me/', } const baseApi = axios.create(config) baseApi.request = (path, options) => baseApi(path, defaultsDeep(config, options)) export default baseApi
declare module 'react-flip-toolkit' { export interface Spring { stiffness?: number damping?: number overshootClamping?: boolean } export type SpringConfig = 'noWobble' | 'veryGentle' | 'gentle' | 'wobbly' | 'stiff' | Spring export type FlippedComponentIdFilter = string | any[] export interface ...
<reponame>warlock2207/warlock<filename>src/main/java/com/company/warlock/modular/wx/service/WxFriendService.java package com.company.warlock.modular.wx.service; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.company.warl...
class Remake: pass # Placeholder class for task rules class TaskRule: def __init__(self): self.inputs = {} self.outputs = {} def rule_run(self): raise NotImplementedError("Subclasses must implement rule_run method") # Example usage: ex8 = Remake() class CannotRun(TaskRule): ...
import {LoginResponse} from './login-response'; export class Token { public accessToken: string; public refreshToken: string; public tokenType: string; public tokenCreated: Date; static fromAuthorization(loginResponse: LoginResponse): Token { return new Token(loginResponse.accessToken, loginResponse.refr...
# Generated by Django 1.10.7 on 2017-06-30 10:54 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('prison', '0014_prisonercreditnoticeemail'), ] operations = [ migrations.Alte...
<reponame>levibostian/Trent # frozen_string_literal: true require 'travis' require 'travis/pro' # For private repos require_relative '../log' # Functions to run on Travis class TravisCI def initialize(params = {}) Log.fatal('Cannot run commands against Travis when not running on a Travis server') unless TravisC...
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either lic...
""" Generate a program to construct a histogram from input data. """ # Input data data = [1, 2, 5, 4, 6, 8, 5, 3, 1, 9, 5, 3, 3, 3, 5, 3, 3, 1, 5] # Initialize the empty histogram hist = {} # Count the occurrences of each value for val in data: if val not in hist: hist[val] = 1 else: hist[val...
<filename>src/swganh_core/object/intangible/intangible_factory.h // This file is part of SWGANH which is released under the MIT license. // See file LICENSE or go to http://swganh.com/LICENSE #pragma once #include "swganh_core/object/object_factory.h" #include <unordered_map> namespace swganh { namespace database { c...
#!/usr/bin/env bash python3 main.py --beta_UB=4.66 --delta=23.53 --no_gpu --domain riverswim --num_layers 1 --layer_size 16 --n_estimators 10
# Gemfile gem 'rails' gem 'bcrypt', '~> 3.1.7' # routes.rb Rails.application.routes.draw do get '/login', to: 'sessions#new', as: 'login' post '/login', to: 'sessions#create' delete '/logout', to: 'sessions#destroy', as: 'logout' get '/register', to: 'registrations#new', as: 'register' post '/register', to: ...
#!/bin/bash start=$(date +"%T") for f in *.afa; do kalign "$f" Res"$f"; done echo "=============================================================================================================================================================================================================================================...
export const strToBool = s => { return s == "0" ? false : true; } export const dateTransform = d_ => { const [y, m, d, hh, mm] = getDateParts(d_) if (!y) { return '' } return `${d}.${m}.${y} ${hh}:${mm}`; }; export const dateTransformYearFirst = d_ => { const [y, m, d, hh, mm] = getDat...
// Create a data structure to store employee information class Employee { // Define properties public String name; public double salary; public int age; // Constructor public Employee(String name, double salary, int age) { // Initialize the properties this.name = name; this.salary = salary;...
<filename>open-sphere-base/core/src/main/java/io/opensphere/core/event/ServerRequestEvent.java package io.opensphere.core.event; /** * An event indicating the state of a server request. */ public class ServerRequestEvent extends AbstractMultiStateEvent { @Override public String getDescription() { ...
#!/bin/sh #BSUB -q gpua100 #BSUB -J Laplace_A100 #BSUB -n 1 #BSUB -gpu "num=1:mode=exclusive_process" #BSUB -W 24:00 #BSUB -R "rusage[mem=40GB]" #BSUB -u oliversvaneolsen@gmail.com #BSUB -B #BSUB -N #BSUB -o log.out_oliver #BSUB -e log.err_oliver # Load the cuda module module load python3/3.8.11 module load cuda/11.3...
#!/bin/bash find . \( -name "bracket*" -o -name "postseason*" \) -not -path "./vp/*" | xargs -n1 -I% gsed -i -e 's/World Series/Hellmouth Cup/g' %
/* * Copyright (c) 2015 The Regents of the University of California. * All rights reserved. * * '$Author: crawl $' * '$Date: 2017-09-04 12:59:35 -0700 (Mon, 04 Sep 2017) $' * '$Revision: 1407 $' * * Permission is hereby granted, without written agreement and without * license or royalty fees, to use, copy, m...
<filename>server/index.js var express = require('express'); var app = express(); var path = require('path'); var cors = require('cors'); var morgan = require('morgan'); var restaurantsRouter = require('./routers/restaurants.js'); var restaurantsApiRouter = require('./routers/restaurants_api.js'); var axios = require('a...
import random # define a list of operators ops = ['+', '-', '*', '/'] # generate a random expression expr = str(random.randint(1,1000)) for i in range(4): expr += random.choice(ops) + str(random.randint(1,1000)) # evaluate the expression result = eval(expr) # print the expression and the result print(f'Expression:...
<gh_stars>1-10 import * as localStorage from '../common/storage.js'; import todoController from '../../controllers/todoController.js'; import todoInput from '../todos/todoInput.js'; import editimage from '../../assets/edit.png'; import deleteimage from '../../assets/delete.png'; const todolistDisplay = (() => { cons...
fn process_rules(rules: Vec<Rule>, condition: bool) -> Vec<Rule> { let mut processed_rules = Vec::new(); let mut i_pos_skip = None; for (i, rule) in rules.iter().enumerate() { if i_pos_skip.is_some() && i == i_pos_skip.unwrap() { continue; } if condition { /...
Rails.application.routes.draw do resources :scores resources :users get '/topten', to: 'scores#topten' root to: 'users#home' end
<gh_stars>0 module.exports = { "count": 20, "start": 0, "total": 23, "subjects": [ { "rating": { "max": 10, "average": 7.8, "stars": "40", "min": 0 }, "genres": [ "剧情", ...
int towerOfHanoi(int n, char from_rod, char to_rod, char aux_rod) { if (n == 1) { cout << "Move disk 1 from rod " << from_rod << " to rod " << to_rod<<endl; return 1; } int moves = towerOfHanoi(n - 1, from_rod, aux_rod, to_rod); cout << "Move disk " << n << " from rod " << from_rod << " to rod " << to_ro...
def count_substring(main_string, substring): count = 0 start = 0 while True: start = main_string.find(substring, start) # Find the next occurrence of the substring if start == -1: # If no more occurrences are found, break the loop break count += 1 start += 1 # ...
function areAnagrams(stringA, stringB) { // check if both strings have the same length if (stringA.length !== stringB.length) { return false; } // sort the strings alphabetically const a = stringA.split('').sort().join(''); const b = stringB.split('').sort().join(''); return a === ...
/* Copyright (c) 2017, UPMC Enterprises All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the f...
#!/bin/bash source /etc/profile BASE=/opt/ericsson/nfvo/fcaps/bin/fm_spark if [ "$(whoami)" != "fcaps" ]; then echo "using the account:fcaps to execute." su - fcaps -c "${BASE}/stop_fm_spark.sh all" sleep 2 su - fcaps -c "${BASE}/start_fm_spark.sh all" echo "Complete the execution." else ${BASE}...
package org.hisp.dhis.vn.chr.hibernate; /** * @author <NAME> * */ import java.util.Collection; import java.util.Collections; import java.util.List; import org.hibernate.Criteria; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.criterion.Restrictions; import org.hisp.dhis.v...
import React from 'react'; import { Switch, Route, Link } from 'react-router-dom'; import {Nav,Navbar,Form,FormControl,Button} from 'react-bootstrap'; const NavigationBar=(props)=><Navbar bg="dark" variant="dark"> <Navbar.Brand as={Link} to="/home"><img src={props.logo} style={{height:25,width:'auto '}}/></Navbar....
<filename>src/main.js import 'sanitize.css/sanitize.css' import React from 'react' import ReactDOM from 'react-dom' const rootEl = document.getElementById('root') let render = () => { const Root = require('./components/Root').default ReactDOM.render(<Root />, rootEl) } if (module.hot) { const renderApp = rende...
import React, { useState } from "react"; const App = () => { const [ names, setNames ] = useState([]); const [ inputName, setInputName ] = useState(""); const handleSubmit = e => { e.preventDefault(); setNames([...names, inputName]); setInputName(""); }; return ( <div> <form onSubmit={handleSubmit}> <labe...
package nsm // States var CREATING = "CREATING" var WAIT_FOR_GATEWAY_CONFIG = "WAIT_FOR_GATEWAY_CONFIGURATION" var CREATED = "CREATED" var RUNNING = "RUNNING" var READY = "READY" // Intermediate states var DELETING_RESOURCES = "DELETING_RESOURCES" var CONFIGURING = "CONFIGURING" var DELETING_CONFIGURATION = "DELETIN...
def find_common_types(telecom_cable, telecom_building): communication_types = set() building_types = set() # Extract communication types from telecom_cable if "communication" in telecom_cable[1]: communication_types.update(telecom_cable[1]["communication"]) if "construction:communication" i...
<reponame>RaafaGarcia/AdminPro require('./bootstrap'); import { createApp } from 'vue' import App from '@/Components/App.vue' import store from './../store' import router from './../router' const app = createApp(App) .use(store) .use(router) // app.component('App', App) router.beforeEach((to, from, next) => { do...
int sumOfThirdDigits(int num) { int sum = 0; while (num != 0) { if ((num % 10) % 3 == 0) sum += num % 10; num /= 10; } return sum; }
#!/bin/sh CURRENT_DIR=$(pwd) cd ${CURRENT_DIR}/bin # /bin/pidof -s ./gameworld | xargs kill killall -9 gameworld
exports.names = ['catfact', 'catfacts']; exports.hidden = true; exports.enabled = true; exports.cdAll = 10; exports.cdUser = 30; exports.cdStaff = 10; exports.minRole = PERMISSIONS.NONE; exports.handler = function (data) { request('http://catfacts-api.appspot.com/api/facts', function (error, response, body) { ...
#!/bin/bash cd /tmp #Clone or pull if exist (auto update on restart container) if [ -d "Front_Docker_Angular" ]; then cd Front_Docker_Angular git pull; else git clone https://github.com/EtienneTr/Front_Docker_Angular cd Front_Docker_Angular; fi npm install npm start wait
{ "spikes":{ "size":{"x": 300,"y": 110}, "position":{"x":5, "y":5} }, "accele":{ "size":{"x": 101,"y": 115}, "position":{"x":315, "y":5} }, "anti":{ "size":{"x": 99,"y": 96}, "position":{"x":426, "y":5} }, "atra":{ "size":{"x": 99,"y": 96}, "position":{"x":535, "y":5} }, "in":{ ...
Minimize z = -3x - 2y Subject to 2x + y <= 10 -x - 4y <= -8 x ≥ 0, y ≥ 0
<filename>fluentlenium-core/src/test/java/org/fluentlenium/unit/initialization/ConstructorInitialization.java package org.fluentlenium.unit.initialization; import org.fluentlenium.adapter.FluentTest; import org.junit.Test; import org.openqa.selenium.WebDriver; import org.openqa.selenium.htmlunit.HtmlUnitDriver; impor...
package io.github.marcelbraghetto.dailydeviations.features.home.logic; import android.content.Intent; import android.support.v4.app.Fragment; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.ArgumentCaptor; import org.mockito.Mock; import org.mockito.MockitoAnnotatio...
<reponame>ardianbagus7/eepisat-react<gh_stars>0 import React from 'react'; import { HighlightedTextIcon } from 'components/molecules'; import { AboutSectionContentProps } from 'components/organisms/About/types'; const Text = () => ( <> EEPISAT is a part of PENS Aerospace Team which under the {' '} <span clas...
#!/bin/bash # Testing the validations ./ldap-cli -addMembers ./ldap-cli -addMembers -cn group1 ./ldap-cli -addMembers -cn group1 -ou nexus ./ldap-cli -addMembers -cn group0 -ou nexus -memberIds C00000 ./ldap-cli -addMembers -cn group1 -ou nex -memberIds C00001 ./ldap-cli -addMembers -cn group1 -ou nexus -memberIds C0...
#!/bin/bash set -eo pipefail VERSION=1 brew update brew install git cmake python libtool libusb graphviz automake wget gmp llvm@7 pkgconfig doxygen openssl@1.1 jq || : # install clang from source git clone --single-branch --branch release_80 https://git.llvm.org/git/llvm.git clang8 cd clang8 git checkout 18e41dc cd too...
<gh_stars>0 //////////////////////////////////////////////////////////////////////////////80 // Project Init //////////////////////////////////////////////////////////////////////////////80 // Copyright (c) Atheos & <NAME> (Atheos.io), distributed as-is and without // warranty under the MIT License. See [root]/LICE...
var Version = "1.2.2"; // Here, we're using one 'pageInit' event handler for all pages and selecting one // that might need extra initialization. This is a special case in that the home // page isn't reached from the Framework7 navigation handler so it won't be fired // off in the standard version as seen below for ot...
<reponame>DrItanium/durandal #ifndef _rampancy_compiler_h #define _rampancy_compiler_h /* * The rampancy library is a standard way to access compilers and interpreters * from within CLIPS. It assumes that you're going to generate a pass * * This class is abstract */ #include "llvm/Pass.h" #include "llvm/Module.h" ...
package com.cwl.service; import javax.xml.stream.events.Namespace; /** * Hello world! * */ public class App { public static void main( String[] args ) throws ClassNotFoundException { } }
#!/bin/bash # Sample script to set environment variables for running unit tests # This setup matches the setup in the test/resources/create-stairwaylib-db.sql export STAIRWAY_USERNAME='stairwayuser' export STAIRWAY_PASSWORD='stairwaypw' export STAIRWAY_URI='jdbc:postgresql://127.0.0.1:5432/stairwaylib'
const encryptPassword = require('./encryptPassword'); const generateChecksum = require('./generateChecksum'); function generateUserDocument(data, checksumSecret) { return new Promise(async (resolve, reject) => { try { const { salt, hash } = await encryptPassword(data.password); cons...
def predict_rating(reviews): num_positive_words = 0 num_negative_words = 0 num_ambiguous_words = 0 positive_words = ["amazing", "great", "love", "like"] negative_words = ["bad", "boring", "uninteresting"] for review in reviews: words = review.split() for word in words: if word in positive_wo...
<filename>spec/index-spec.js jasmine.getFixtures().fixturesPath = "spec/javascripts/fixtures"; describe("index", function() { var ESC = 27, $toggle_nav, $toggle_menu; function triggerKeydown(key) { var e = jQuery.Event("keydown"); e.keyCode = key; $(document).trigger(e); } function c...
<gh_stars>1-10 from rofl.functions.const import * from rofl.functions.torch import * from rofl.functions.functions import isBatch, no_grad, Tmul, nprnd, F from rofl.functions.exploratory import EpsilonGreedy from .base import Policy def dqnTarget(onlineNet, targetNet, s2, r, t, gamma, double:bool = True): w...
<filename>src/utils/misc.ts export const getNumberId = (data: any[], idField: string) => { return Math.max(...data.map(item => item[idField])) + 1; } export const delay = (ms: number) => { return new Promise(resolve => setTimeout(resolve, ms)); }
<gh_stars>100-1000 import config from '@config/config' type objectWithNameProperty = { name: string, [key: string]: any } const exclusionPrefix = (exclusionPrefixStrings: string[]): string[] => { return [ ...config.exclusionPrefixDefault, ...exclusionPrefixStrings ] } const filterByPropertyName = (ob...
<filename>google/cloud/dialogflow/cx/v3beta1/google-cloud-dialogflow-cx-v3beta1-ruby/lib/google/cloud/dialogflow/cx/v3beta1/fulfillment_pb.rb # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/cx/v3beta1/fulfillment.proto require 'google/api/resource_pb' require 'google/cloud/...
<reponame>TimPietrusky/fivetwelve-enttec-dmx-usb-pro-mk2-test<filename>src/index.js 'use strict'; let fivetwelve = require('fivetwelve/es5'); let fivetwelve_driver_usbpro = require('fivetwelve-driver-usbpro/es5'); import randomColor from 'random-color'; let Serialport = require('serialport'); if (process.env.NODE_ENV...
//#include "io2d.h" //#include "xio2dhelpers.h" //#include "xcairoenumhelpers.h" // //using namespace std; //using namespace std::experimental::io2d; // //mesh_brush_factory::mesh_brush_factory() noexcept // : _Has_current_patch() // , _Current_patch_index() // , _Current_patch_side_count() // , _Current_patch_initial_...
package com.github.passerr.idea.plugins.spring.web; import com.github.passerr.idea.plugins.spring.web.po.ApiDocSettingPo; import com.intellij.openapi.Disposable; import com.intellij.openapi.options.Configurable; import com.intellij.openapi.options.SearchableConfigurable; import com.intellij.openapi.util.Disposer; impo...
class Oid: def __init__(self): # Constructor for Oid class pass def build_config(self, config_path): # Method to build configuration pass def build_bbox(self, dataset_type): # Method to build bounding boxes for the given dataset type pass def build_imag...
import updatelib project_dbupgrade = updatelib.dbupgrade.DBUpgradeTools('projectdata', drop=True) if __name__ == "__main__": project_dbupgrade.perform_upgrade()
// Code generated by MockGen. DO NOT EDIT. // Source: service.go // Package eth is a generated GoMock package. package eth import ( reflect "reflect" gomock "github.com/golang/mock/gomock" ) // MockTxGetter is a mock of TxGetter interface. type MockTxGetter struct { ctrl *gomock.Controller recorder *MockTxG...
$(function () { $("svg").draggable(); }); function make_number(min, max) { var result = ""; result = Math.round(Math.random() * (max - min) + min); return result; } $("#shape_01").html( '<path d="M' + make_number(6, 9) + " " + make_number(5, 10) + " L" + make_number(5, 10) + " " + make_number(15, 2...
<filename>bugzillarest/mocks/es_client_provider.go // Code generated by mockery v0.0.0-dev. DO NOT EDIT. package mocks import ( elastic "github.com/LF-Engineering/dev-analytics-libraries/elastic" mock "github.com/stretchr/testify/mock" time "time" ) // ESClientProvider is an autogenerated mock type for the ESCli...
#!/bin/sh - # # Copyright (c) 1991, 1993 # The Regents of the University of California. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above c...
<gh_stars>0 var namespaceCatch_1_1Matchers_1_1Exception = [ [ "ExceptionMessageMatcher", "classCatch_1_1Matchers_1_1Exception_1_1ExceptionMessageMatcher.html", "classCatch_1_1Matchers_1_1Exception_1_1ExceptionMessageMatcher" ] ];
<reponame>Legend1991/monobanksnake #ifndef MAPRECOGNIZERTEST_H #define MAPRECOGNIZERTEST_H #include <QObject> #include "pos.h" #include "map.h" #include "snake.h" #include "customsolver.h" class MapRecognizerTest : public QObject { Q_OBJECT public: MapRecognizerTest(); void setUp(DirecType init_direc, QL...
--- checking the desequilibrate batch --- select * FROM actb_daily_log lo where lo.batch_no = '1026' SELECT * FROM getm_liab WHERE id = '91822'; --- --- checking the validated desequilibrate batch --- --- select*from fbtb_txnlog_master ff where ff.txnactdet='0231720101560102' and ff.txnamtdet='8785000.' --for...