text
stringlengths
1
1.05M
#!/bin/bash set -e ./configure --prefix=/usr --host=$LFS_TGT make && make DESTDIR=$LFS install
<filename>2-resources/3-misc/Beginner/mergeArrays/test.js const mergeArrays = require('./index-START'); test('mergeArrays is a function', () => { expect(typeof mergeArrays).toEqual('function'); }); test('Combines 5 arrays of numbers without dubplicates', () => { expect(mergeArrays([1,2],[2,3],[3,4],[4,5])).toEqua...
$ v run directories.v Listing subdir/parent child true file2 false file3 false Listing subdir/parent/child file4 false Visiting subdir subdir true subdir/file1 false subdir/parent true subdir/parent/child true subdir/parent/child/file4 false subdir/parent/file2 false subdir/parent/file3 false
export default function () { return ` <svg class="icon-contract svg-icon" fill="none" height="13" viewBox="0 0 17 13" width="17"> <path d="M17 3.33337V12C17 12.5523 16.5523 13 16 13H1C0.447715 13 0 12.5523 0 12V2.33337V1C0 0.447715 0.447715 0 1 0H6.54006C6.83199 0 7.10934 0.127565 7.2993...
<filename>WebContent/resources/js/script.js Event.waitUntilLoaded(function() { $('time').innerHTML = new Date().toTimeString(); });
<gh_stars>0 require 'test_helper' class DLocalTest < Test::Unit::TestCase include CommStub def setup @gateway = DLocalGateway.new(login: 'login', trans_key: 'password', secret_key: '<KEY>') @credit_card = credit_card @wallet_token = wallet_token @psp_tokenized_card = psp_tokenized_card('CV-993903e...
<reponame>mikitamironenka/job4j<filename>chapter_006_IO/src/test/java/ru/job4j/io/testtask/MainSearchTest.java<gh_stars>0 package ru.job4j.io.testtask; import org.junit.BeforeClass; import org.junit.Test; import java.io.File; import java.util.List; import static org.hamcrest.core.Is.is; import static org.junit.Asser...
#!/bin/sh # Run the script as "source ./filename.sh" as the shell script needs to run with reference to the terminal's current environment # You can use any API. In this case, I have used ipgeolocation.io's API ## Note - While using an API of choice, please make sure to adhere to the API's terms of service and privacy...
#!/usr/bin/env bash curPath=$(pwd) for dir in $(ls); do if [ -d ${curPath}/${dir} ]; then eval "unzip dummy_data_copy.zip" eval "mv dummy_data/cfq/splits/data.json dummy_data/cfq/splits/${dir}.json" eval "zip -r dummy_data.zip dummy_data" eval "cp dummy_data.zip ${curPath}/${dir}/1.0.1/dummy_data.zip" eval...
<filename>.solcover.js module.exports = { skipFiles: ["Migrations.sol"], // need for dependencies copyNodeModules: true, copyPackages: ["zeppelin-solidity"], dir: ".", norpc: false, };
<reponame>atomist/yaml-updater /* * Copyright © 2019 Atomist, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
arr <- c(5, 2, 7, 4, 3) sum <- sum(arr) print(sum)
<html> <head> <title>My Page</title> <style> .section { margin: 10px 0; } </style> </head> <body> <div class="section"> <h2>Section 1</h2> <p>This is the first section.</p> </div> <div class="section"> <h2>Section 2</h2> <p>This is the second section.</p> </div> <d...
<filename>mbhd-core/src/main/java/org/multibit/hd/core/dto/PaymentSessionSummary.java<gh_stars>10-100 package org.multibit.hd.core.dto; import com.google.common.base.Optional; import com.google.common.base.Preconditions; import com.google.common.util.concurrent.ListenableFuture; import org.bitcoin.protocols.payments.P...
import { Component, OnInit } from '@angular/core'; import { AngularFirestore, AngularFirestoreCollection, AngularFirestoreDocument, DocumentChangeAction } from '@angular/fire/firestore'; import { Observable } from 'rxjs'; import { map } from 'rxjs/operators'; interface Doc { date: any; id?: string; verifie...
// Code generated by entc, DO NOT EDIT. package ent import ( "context" "fmt" "github.com/blushft/strana/modules/sink/reporter/store/ent/connectivity" "github.com/blushft/strana/modules/sink/reporter/store/ent/event" "github.com/blushft/strana/modules/sink/reporter/store/ent/predicate" "github.com/facebook/ent/...
#!/bin/bash rm -rf kermit.ply ../bin/emvs kermit/pmvs/ kermit.ply | tee kermit-emvs.log
<filename>src/slowstats.cc /***************************************************************************** * Copyright 2011 <NAME>, <NAME> * * 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 *...
#!/bin/bash # Copyright 2021 Authors of Cilium # SPDX-License-Identifier: Apache-2.0 set -o errexit set -o pipefail set -o nounset script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" if [ "$#" -ne 2 ] ; then echo "$0 supports exactl two arguments" echo "example: '$0 test-1 aws'" exit 1 fi name="${1}" ...
/* * Tencent is pleased to support the open source community by making Blueking Container Service available. * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the "License"); you may not use this file except * in compliance with the License. You may obta...
#!/bin/bash -e install -d "${ROOTFS_DIR}/etc/systemd/system/rc-local.service.d" install -m 644 files/ttyoutput.conf "${ROOTFS_DIR}/etc/systemd/system/rc-local.service.d/" install -m 644 files/50raspi "${ROOTFS_DIR}/etc/apt/apt.conf.d/" install -m 644 files/console-setup "${ROOTFS_DIR}/etc/default/" install -...
module Neo4j::Driver module Internal class InternalTransaction include Ext::ExceptionCheckable include Ext::RunOverride delegate :open?, to: :@tx def initialize(tx) @tx = tx end def commit check do org.neo4j.driver.internal.util.Futures.blockingGet(...
package com.binaryheap.testing.controllers; import com.binaryheap.testing.dtos.BagDto; import com.binaryheap.testing.services.BagService; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.servlet...
#!/bin/bash # Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # 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 # t...
#! /bin/sh # Copyright (C) 2014 VA Linux Systems Japan K.K. # Copyright (C) 2014 YAMAMOTO Takashi <yamamoto at valinux co jp> # 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...
#!/usr/bin/env bash livy-server start tail -f /usr/lib/livy/logs/livy-*-server.out
# Copyright (c) 2015 Oracle and/or its affiliates. All rights reserved. This # code is released under a tri EPL/GPL/LGPL license. You can use it, # redistribute it and/or modify it under the terms of the: # # Eclipse Public License version 1.0 # GNU General Public License version 2 # GNU Lesser General Public License ...
#!/bin/bash # This script will be sourced by the bmux command and the variables will be # used by the bag command. It is imperative that each variable is in the bag_* # namespace and contains a space diliniated list of ROS topics. The only two # exceptions to this rule are the BAG_ALWAYS and BAG_DIR variables. # Def...
#!/bin/bash # https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/ set -Eeuo pipefail THIS_DIR=`dirname "$(readlink -f "$0")"` POWERSHELL_CONFIG_DIR=~/.config/powershell if [ ! -d "$POWERSHELL_CONFIG_DIR" ]; then mkdir "$POWERSHELL_CONFIG_DIR" fi ln -sv "$THIS_DIR/profile.ps1" "$POWERSHELL_CONFIG_...
#!/bin/bash # Description: This script will test IDS upgrade and JIT user provisioning (See JIRA tickets AUTH-529 and MNT-21741 for details) # Author : Jamal Kaabi-Mofrad # Since : IDS-1.5.0 #====================================================== source "../../distribution/build.properties" . "../scripts/com...
g++ string_view_version.cpp -std=c++17 -Wall -O2
const BridgeData = [ { "orderId": 1, "title": "Kalnsētas parka gājēju tiltiņš Nr. 1", "description": "Garums 7,13m <br> Platums 2,36m <br> Augstums 1,2m <br> Pa vidus saliņa", "sponsors": [ { "id": 1, "title": "<NAME>" }, ...
#!/bin/bash set -e if [ $# -lt 11 ]; then echo "Usage: $0 prim_poscar potcar prim_kpoints prim_incar sc.txt sc_kpoints sc_incar \"scale1(relative to prim_poscar) [scale2...]\" disp1 ndisp1 spec_disp1 [disp2 ndisp2 spec_disp2 ...]" echo "suggetion: mkkp.sh prim_poscar|sc_poscar 3000 > prim_kpoints|sc_kpoints" ...
#!/usr/bin/env bash if [ -z $1 ] then echo "Please specify device ID to use" exit fi GPUID=$1 # Parameters to be changed SPLIT="Split_5" NET_NAME="resnet50_motionconstraint" LVL="mid" SNIPPET=16 STRIDE=4 FRAMESKIP=5 MIX=1 EXP_NAME=$NET_NAME"_nomotion_g0" # Generated parameters LABELSDESC="./data/50_salads_da...
#!/bin/sh #usage groupRes.sh [-add <gri> <numNewDisjointPaths>] [-sub <groupGRI> <subGRI_1> <subGRI_2> ... <subGRI_K>] java -cp .:./src:./lib/aopalliance-1.0.jar:./lib/asm-2.2.3.jar:./lib/bcprov-jdk15-1.43.jar:./lib/common-libs-0.0.1-SNAPSHOT.jar:./lib/common-logging-0.0.1-SNAPSHOT.jar:./lib/commons-codec-1.2.jar:./...
#!/bin/bash function clean() { echo "Stopping Go Demo Containers" docker-compose -f docker-compose.demo.yml stop echo "Removing Go Demo Containers" docker-compose -f docker-compose.demo.yml rm } function rebuild() { echo "Re-Building Go Demo Environment" docker-compose -f docker-compose.demo....
import java.awt.Font; // Class representing the GUI library public class GUI { private Font defaultFont; // Method to set the default font public void setDefaultFont(Font font) { this.defaultFont = font; } // Widget class using the default font unless overridden public class Widget { ...
<filename>app/assets/javascripts/hyrax/save_work/save_work_control.es6 // Hyrax 2.5 override to add front end validations for individual metadata fields. Added methods: getVDCFields, initializeVDCFields, validateVDCFields. import { RequiredFields } from './required_fields' import { RequiredProject } from 'vdc/save_work...
<reponame>yuanlida/ant-design-pro import { withPropsAPI, RegisterCommand } from 'gg-editor'; import React from 'react'; // onAfterExecuteCommand 之后可以获取命令 class SaveCommand extends React.Component<any, any> { componentDidMount(): void { const { propsAPI } = this.props; console.log(propsAPI); } render() ...
package com.scout24.ha.meross.mqtt; import com.fasterxml.jackson.databind.ObjectMapper; import com.google.common.collect.ImmutableMap; import com.google.common.collect.Lists; import com.scout24.ha.meross.rest.AttachedDevice; import com.scout24.ha.meross.rest.NetworkDevice; import lombok.Synchronized; import lombok.ext...
<gh_stars>0 package lights import "github.com/mickael-carl/hue_exporter/pkg/common" type LightState struct { On bool Brightness int `json:"bri"` Hue int Saturation int `json:"sat"` Effect string XY []float64 ColorTemperature int `json:"ct"` Alert ...
import React, { useState, useEffect, Suspense } from 'react'; import { BrowserRouter as Router, Route, Switch } from 'react-router-dom' import { useTranslation } from 'react-i18next'; import './App.css'; import MsgBox from './components/MsgBox/MsgBox'; import Header from './components/Header/Header'; import Foo...
#!/bin/bash #SBATCH --account=def-dkulic #SBATCH --mem=8000M # memory per node #SBATCH --time=23:00:00 # time (DD-HH:MM) #SBATCH --output=/project/6001934/lingheng/Double_DDPG_Job_output/continuous_BipedalWalkerHardcore-v2_doule_ddpg_softcopy_action_noise_seed5_run8_%N-%j.out # %N for node name, %...
<gh_stars>0 import { Answerable, AnswersQuestions, Question, UsesAbilities, } from '@serenity-js/core'; import { formatted } from '@serenity-js/core/lib/io'; import { ElementHandle } from 'playwright'; export class Attribute extends Question<Promise<string>> { /** * @deprecated Use Attribute.cal...
#! /bin/sh # # Copyright by The HDF Group. # All rights reserved. # # This file is part of HDF5. The full HDF5 copyright notice, including # terms governing use, modification, and redistribution, is contained in # the COPYING file, which can be found at the root of the source code # distribution tree, or in https://su...
#!/bin/bash # Script - download codeforces dataset from s3 # options: # $1 specify a percentage of dataset used as train set # $2 specify a percentage of dataset used as test set # $3 specify a percentage of dataset used as validation set # $4 specify if developer mod...
// vim: set et ts=2 sw=2 : function CustomGetRelTileUrl (prefix, a, b) { if ( b == 7 && a.x >= 76 && a.x <= 78 && a.y >= 39 && a.y <= 40 ) { return prefix + "Z" + b + "/" + a.y + "_" + a.x + ".png"; } else if ( b == 8 && a.x >= 153 && a.x <= 156 && a.y >= 78 && a.y <= 81 ) { return prefix + "Z" + b +...
#!/bin/sh cd /home/pi/GitHub/cryptopulse nodemon keystone
import React, { Component/*, PropTypes */} from 'react' import { connect } from 'react-redux' import Helmet from 'react-helmet' import loadMainPage from './main' import jQuery from 'jquery' import Header from './header' import Home from './home' import About from './about' import Events from './events' import Photos f...
#!/bin/bash source /opt/ros/indigo//setup.bash export ROS_PACKAGE_PATH=$PWD/../:$ROS_PACKAGE_PATH #rosrun xacro xacro.py ../atlas_description/robots/atlas_v3.urdf.xacro > atlas_v3.urdf #gzsdf print atlas_v3.urdf > atlas_v3.sdf #rosparam set /robot_description -t atlas_v3.urdf #DO NOT use, as robot state publisher doe...
def Fibonacci(n): if n<0: print("Incorrect input") elif n==1: return 0 elif n==2: return 1 else: return Fibonacci(n-1)+Fibonacci(n-2)
const setup = require('../index.js') const QUnit = require('qunit') const timeout = function (ms) { return new Promise(resolve => setTimeout(resolve, ms)) } const retry = setup(QUnit.test) QUnit.module('test retries and result message', hooks => { hooks.after(assert => { assert.equal(QUnit.config.current.asse...
#!/bin/bash #SBATCH --job-name=parse_global_rdf_adf #SBATCH --mail-type=ALL #SBATCH --mail-use=salil.bavdekar@ufl.edu #SBATCH --output=parse_global_rdf_adf/job_%j.out #SBATCH --error=parse_global_rdf_adf/job_%j.err #SBATCH --account=subhash #SBATCH --qos=subhash #SBATCH --ntasks=1 #SBATCH --nodes=1 #SBATCH --mem=4GB #S...
#!/bin/bash # We need PWD to be set by the shel before invoking tusk else launchdir is # empty exec /usr/local/bin/tusk -qf /bbench/tusk.yml "$@"
#!/bin/bash set -o nounset set -o errexit set -o pipefail if test ! -f "${KUBECONFIG}" then echo "No kubeconfig, so no point in calling must-gather." exit 0 fi # For disconnected or otherwise unreachable environments, we want to # have steps use an HTTP(S) proxy to reach the API server. This proxy # configuration ...
import { resolve } from 'path'; import { EnvironmentConfig } from '../models/index'; import { absolutePath } from './file-system'; const absolutePathCheck = /^(\~?\/)/; export function absoluteConfigPath(config: EnvironmentConfig, path: string): string { return (absolutePathCheck.test(path)) ? absolutePath(path)...
package ca.antaki.www.cat.producer.model; public class Cat { private final String name; //using a byte (primitive type) in order to save space if we want to have millions of Cats private byte mood = CatMood.MIAW.getId(); public Cat(String name) { super(); this.name = name; } public int getMood() { re...
<gh_stars>1-10 import { MongoClient, Db, Collection } from "mongodb"; // json schema for contact us info export interface ContactUsData{ name:string; email:string; comment:string; timestamp:string; viewed:boolean; } export class DatabaseManager{ private _mongoClient:MongoClient; // mongodb ...
<filename>ProductCheck/product_check/utilities.py from django.core.mail import EmailMultiAlternatives, BadHeaderError from django.template.loader import render_to_string from django.utils.html import strip_tags from django.conf import settings from smtplib import SMTPException def mail_user(product_data): """ ...
#!/bin/bash set -euxo pipefail python3 -m pipenv run pip freeze > requirements.txt image_name="python:pipenv" docker build --rm --pull --file "Dockerfile" --label "python-pip-env" --tag "${image_name}" . vol_name="python-pipenv-vol" docker volume create "${vol_name}" # Run the default CMD / RUN in Dockerfile workdi...
<reponame>wagnerjt/halin import React, { Component } from 'react'; import { Button, Icon, Table } from 'semantic-ui-react'; import status from '../../../api/status/index'; import datautil from '../../../api/data/util'; import sentry from '../../../api/sentry/index'; import SignalMeter from '../../data/SignalMeter/Sig...
#!/bin/bash # Required parameters: # @raycast.schemaVersion 1 # @raycast.title Whois of Clipboard URL # @raycast.mode silent # Optional parameters: # @raycast.author Caleb Stauffer # @raycast.authorURL https://github.com/crstauf # @raycast.description Whois of clipboard URL. # @raycast.packageName Internet # @raycast...
#!/bin/bash set -euo pipefail docker-compose build --no-cache docker-compose run --rm python docker-compose run --rm python python -c 'print("1>Hello, world!")'
<filename>src/sentry/static/sentry/app/components/seenByList.tsx import React from 'react'; import classNames from 'classnames'; import moment from 'moment'; import styled from '@emotion/styled'; import {t} from 'app/locale'; import {User} from 'app/types'; import {IconShow} from 'app/icons'; import {userDisplayName} ...
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 查询芝麻信用等级 * * @author auto create * @since 1.0, 2018-06-25 14:48:31 */ public class AlipayEcoRenthouseRenterZhimaQueryModel extends AlipayObject { private static final long seri...
from typing import Any import yaml class ConfigurationParser: def __init__(self, configuration): with open(configuration, 'r') as metadata: self.configuration = yaml.safe_load(metadata) def validate(self): self.validate_istio() return def validate_istio(self): ...
#!/bin/bash fw_installed cutelyst && return 0 CUTELYST_VER=1.5.0 QT_VERSION_MM=56 QT_VERSION_FULL=562-trusty CROOT=${IROOT}/cutelyst sudo apt-add-repository --yes ppa:george-edison55/cmake-3.x sudo apt-add-repository --yes ppa:beineri/opt-qt$QT_VERSION_FULL sudo apt-get update -qq sudo apt-get install -qqy \ cmake ...
<gh_stars>0 package com.kushal.orctotext.mapreduce; import java.io.IOException; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce.Reducer; public class OrcToTextReducer extends Reducer<Text, Text, Text, Text> { @Override protected void cleanup(Context context) throws IOException, Interrupted...
public static int gcd(int a,int b) { // Everything divides 0 if (a == 0) return b; if (b == 0) return a; // base case if (a == b) return a; // a is greater if (a > b) return gcd(a-b, b); return gcd(a, b-a); }
package ddbt.tpcc.loadtest.load import java.sql.Connection import java.sql.PreparedStatement import java.sql.SQLException /** * Data loader using prepared statements and batches. This is slower than the JdbcStatementLoader which uses * bulk inserts. */ class JdbcPreparedStatementLoader(var conn: Connection, v...
#!/usr/bin/env bash # # Copyright (c) 2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Check for circular dependencies export LC_ALL=C EXPECTED_CIRCULAR_DEPENDENCIES=( "chainparamsbase -> u...
# 6.00.2x Problem Set 2: Simulating robots import math import random import numpy as np import ps2_visualize import pylab ################## ## Comment/uncomment the relevant lines, depending on which version of Python you have ################## # For Python 3.5: # from ps2_verify_movement35 import testRobotMovemen...
package ch15; import javax.swing.*; import java.awt.*; import java.net.URL; import static java.awt.Color.*; /** * Project: ch15.ex10 * Date: 2/27/2018 * * @author <NAME> */ public class ex1510 extends JApplet { private Image logo; private int bg = 0; private URL base; private Color[] bground...
<filename>main.js<gh_stars>0 /*var hhead=document.querySelector('h1'); hhead.onclick=display; function display() { hhead.textContent=welcome; alert('text have been changed'); }*/ /*var myimage=document.querySelector("img"); myimage.onclick=imagechange; function imagechange() { var imgsrc=myimage.getAttribut...
<gh_stars>1-10 const express = require('express'); let router = express.Router(); // Require controller modules const grid_controller = require('../controllers/griddedProductController') router.get('/', grid_controller.get_window); router.get('/find', grid_controller.find_one); module.exports = router;
import { createContext } from "react"; const LanguageContext = createContext(null); export default LanguageContext;
import { Component, Input, Output, EventEmitter, TemplateRef } from '@angular/core'; import { defaultLibraryCardsGrid } from '../library-cards.data'; import { IContent, LibraryCardTypes, LibraryCardGridTypes } from '../../card/models'; import { IViewMoreClick, ICardClick } from '../models'; @Component({ selector: ...
<filename>package/spack-gnupg/package.py ############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by <NAME>, <EMAIL>, All rights...
RSpec.describe MultiSessionStore::SubsessionGeneratorMiddleware do subject(:middleware) { described_class.new app, config } let(:app) { double 'application' } let(:config) { {} } describe '#call' do subject(:call) { middleware.call env } let(:call_result) { 'status, headers and body' } let(:env) do...
#include "TestGameWorldGenerator.h" #include <Engine/Modules/Graphics/GraphicsSystem/TransformComponent.h> #include <Engine/Modules/LevelsManagement/LevelsManager.h> #include <Engine/Modules/ResourceManagement/ResourcesManagement.h> #include <Game/Game/Inventory/InventoryControlSystem.h> #include <Game/Game/Dynamic/Q...
def calculate_weighted_average(num1: float, num2: float, num3: float) -> float: weighted_average = (2 * num1 + 3 * num2 + 5 * num3) / 10 return round(weighted_average, 1)
<filename>open-sphere-plugins/geopackage/src/main/java/io/opensphere/geopackage/export/ui/UserAsker.java<gh_stars>10-100 package io.opensphere.geopackage.export.ui; /** * Asks the user a yes no question and returns the results. */ public interface UserAsker { /** * Asks the user the given question a...
import sqlite3 # Connect Database conn = sqlite3.connect('employee_records.db') # Create Cursor cursor = conn.cursor() # Query Database cursor.execute("SELECT name, salary, department FROM employees") rows = cursor.fetchall() # Generate Report for row in rows: name = row[0] salary = row[1] department = row[2] p...
#!/bin/bash source scripts/helper.sh sskr_lib_name="libbc-crypto-base-jni.dylib" out_dir=build/release jni_md_dir="darwin" if is_osx; then export CC="clang" export CXX="clang++" else sskr_lib_name="libbc-crypto-base-jni.so" jni_md_dir="linux" export CC="clang-10" export CXX="clang++-10" fi java_home="/...
SELECT * FROM employees ORDER BY DATE_OF_BIRTH LIMIT 3
<reponame>thomastay/collectable import test from 'ava'; import { empty as emptyMap } from '@collectable/map'; import { empty, isSet } from '../../src'; test('returns true if the argument is an instance of a Collectable.js Set class', t => { t.true(isSet(empty())); }); test('returns false if the argument is not an i...
package cyclops.container.immutable.impl; import cyclops.container.control.Option; import cyclops.container.immutable.ImmutableList; import cyclops.container.immutable.tuple.Tuple; import cyclops.container.immutable.tuple.Tuple2; import cyclops.container.immutable.tuple.Tuple3; import cyclops.function.higherkinded.Dat...
var app = getApp(); Page({ data:{ img_url: 'http://appuat.huihuishenghuo.com/img/', checkType:true, focus:true, height:'440rpx' }, checkTap:function(){ var check=this.data.checkType; this.setData({ checkType: !check }) }, paymentTap:function(){ this.setData({ height: '440rpx' }) }, pa...
/* * @Author: liuyr * @Date: 2019-09-13 09:04:33 * @Last Modified by: liuyr * @Last Modified time: 2019-09-13 09:06:03 */ import axios from '@/utils/axios'; /** * 查找所有的服务员信息 * @export * @returns */ export async function getWaiterDataS() { return axios.get('/waiter/findAllWaiter'); }
let separator; let resize; let dragWidth; let pos; let containerOffset; let containerWidth; let minLeft; let maxLeft; let water; let beer; let width; function onWater() { document.body.classList.add('chosen'); beer.style.display = 'none'; separator.style.display = 'none'; } function onBeer() { document.body.c...
/* * Copyright 2017-2021 original authors * * 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 agr...
package no.item.enonic.builders; import com.enonic.cms.api.client.Client; import com.enonic.cms.api.client.ClientException; import com.enonic.cms.api.client.model.GetContentByCategoryParams; import com.google.common.base.Preconditions; import com.google.common.base.Throwables; import org.jdom.JDOMException; import org...
/* * 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 ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
import * as React from 'react'; import styled from 'react-emotion'; import { mixins } from '../styles'; interface IconButtonProps extends React.HTMLProps<HTMLInputElement> { svg: string; styles?: string; }; const iconMixin = (svg: string) => ` width: 24px; height: 24px; background: url(${svg}); background...
<filename>src/globus-client-java/src/main/java/org/globus/GlobusRestInterface.java<gh_stars>0 /* * Copyright 2014 University of Chicago * * 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 *...
#!/bin/bash set -eo pipefail dir="$(dirname "$(readlink -f "$BASH_SOURCE")")" image="$1" mysqlImage='mysql:5.7' # ensure the mysqlImage is ready and available if ! docker image inspect "$mysqlImage" &> /dev/null; then docker pull "$mysqlImage" > /dev/null fi # Create an instance of the container-under-test mysqlCi...
class Project extends Model { public function resources() { return $this->belongsToMany('App\Resource', 'project_resource', 'project_id', 'resource_id'); } }
/*--------------------------------------------------------------------------- * Copyright (c) 2016, <NAME>, All Rights Reserved * SPDX-License-Identifier: LicenseRef-PBL * * This file and the related binary are licensed under the * Permissive Binary License, Version 1.0 (the "License"); * you may not use these fi...
# Python function to calculate accuracy def calculate_accuracy(predictions, ground_truth): correct_count = sum(1 for pred, truth in zip(predictions, ground_truth) if pred == truth) total_count = len(predictions) accuracy = correct_count / total_count if total_count > 0 else 0 return accuracy # Function...
<reponame>abhisheklalwani/DeepLabv3FineTuning import os import shutil test_data_path = "D:/small_obs_dataset/Small_Obstacle_Dataset/test/stadium_3/" target_path = "C:/Users/Abhishek/Desktop/Work/UMass Fall 2021/682/DeepLabV3FineTuningLatest/DeepLabv3FineTuning/SmallObjectDataset/Test_Images/" count = 0 for image in os...