text
stringlengths
1
1.05M
#include <iostream> using namespace std; // Function to find the maximum number in an array int findMax(int arr[], int n) { int max = arr[0]; for (int i = 1; i < n; i++) { if (arr[i] > max) { max = arr[i]; } } return max; } // Driver program int main() { int arr[] = {10, 20...
package io.smallrye.reactive.streams.utils.recovery; import io.reactivex.internal.subscribers.SinglePostCompleteSubscriber; import org.reactivestreams.Subscriber; import java.util.Objects; import java.util.function.Function; public class OnErrorReturnSubscriber<T> extends SinglePostCompleteSubscriber<T, T> { pr...
#!/bin/bash # # Creates and pushes a git tag to the svn WordPress.org Plugin Directory. SELFDIR=${BASH_SOURCE%/*} source .wp-release.conf # Validate configuration. [[ -n $SHORTNAME ]] || { echo >&2 "ERROR: Plugin shortname must not be empty."; exit 1; } [[ -e $PLUGINPATH ]] || { echo >&2 "ERROR: Configured plugin pa...
class Person{ constructor(name, address){ this.name = name; this.address = address; } } class Address{ constructor(street, city, state, zip){ this.street = street; this.city = city; this.state = state; this.zip = zip; } }
sq_list = [] n = 1 while len(sq_list) <= 19: sq_list.append(n*n) n += 1 print(sq_list)
#import necessary packages import numpy as np from sklearn.model_selection import train_test_split from sklearn.preprocessing import StandardScaler from sklearn.linear_model import LogisticRegression #Define data X_data = np.array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) Y_data = np.array([1, 0, 1, 0, 1, 0, 1, 0, 1, 0]) #Spli...
<gh_stars>1-10 /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ retur...
<gh_stars>0 package protocol import ( "net" "sync" "time" "github.com/benbjohnson/clock" "github.com/danilarff86/miio-go/common" "github.com/danilarff86/miio-go/device" "github.com/danilarff86/miio-go/protocol/packet" "github.com/danilarff86/miio-go/protocol/tokens" "github.com/danilarff86/miio-go/protocol/t...
import React from "react" import QuestionTemplate from "../../templates/yes-no-question-template" import { logic } from "../../shared" export default () => ( <QuestionTemplate lang="en" yesLink={logic.q7.yes} noLink={logic.q7.no}> <h2>In the last 10 days, have you received a COVID Alert exposure notification on ...
<filename>demomarket-common/src/main/java/com/learn/common/validation/UpdateGroup.java package com.learn.common.validation; /** * 分组校验:修改时校验 */ public interface UpdateGroup { }
<gh_stars>10-100 package io.opensphere.core.util.collections; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Set; import org.junit.Assert; import org.junit.Test; /** Test for {@link...
#!/bin/bash set -euo pipefail # Note: curl sometimes times out while fetching the logs, this is **not** an issue with this code but rather with openFaaS. # The same thing happens when using the official cli for log fetching for fname in $(jq -r '.program.functions | with_entries(select(.value.provider == "openfaas" ...
#!/usr/bin/env bash set -x DOCNAME=${1%.docx} echo $1 echo $DOCNAME pandoc -f docx $1 -t rst -o $DOCNAME.rst mkdir -p tmp media cd tmp unzip ../$1 cp -Rf ./word/media/* ../media cd .. rm -Rf tmp
# To run the program, put the code in `jms-reliable-message-delivery.bal` # and use `$BALLERINA_HOME/bin/ballerina`. $ ballerina run jms-reliable-message-delivery.bal
#!/usr/bin/env bash set -e shopt -s extglob globstar source $VENV_HOME/bin/activate cd $SRC_HOME python update_countries.py exec "$@"
#!/bin/bash # 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...
from typing import List def calculate_average_score(scores: List[int]) -> int: total_score = sum(scores) average_score = total_score / len(scores) return round(average_score)
import React, { useState } from 'react'; const Autocomplete = ({ items }) => { const [value, setValue] = useState(''); const [suggestions, setSuggestions] = useState(items); const onChange = (e) => { const val = e.target.value; let suggestions = []; if(val.length > 0) { const regex = new RegExp('^' + val, '...
""" Create a program to generate a random password with a length of 10 that has at least one uppercase, lowercase, number and symbol. """ import random import string def generate_password(): # Generate a random password string of length 10 password_characters = string.ascii_letters + string.digits + string.pu...
# Copyright (c) 2013 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. #network interface on which to limit traffic IF="eth0" #limit of the network interface in question LINKCEIL="1gbit" #limit outbound J...
const { negamax_a_b_table_move } = require('wasm-chess-algorithms'); function chooseMove(fen, options, lastResult) { console.log(options); const result = negamax_a_b_table_move(fen, BigInt(1), BigInt(options.depth), lastResult); console.log(result.mov); // console.log(result.table.table); return result; } m...
var namespacelua = [ [ "ClosureInfo", "namespacelua.html#structlua_1_1_closure_info", "namespacelua_structlua_1_1_closure_info_dup" ], [ "Context", "classlua_1_1_context.html", "classlua_1_1_context" ], [ "Nil", "namespacelua.html#classlua_1_1_nil", null ], [ "RegistryKey", "classlua_1_1_registry_key.ht...
#!/bin/sh # Author: Héctor Molinero Fernández <hector@molinero.dev> # License: MIT, https://opensource.org/licenses/MIT # Repository: https://github.com/hectorm/hblock set -eu export LC_ALL='C' main() { source="${1:?}" target="${2:?}" hblock="${3:-hblock}" # shellcheck disable=SC2155 export HBLOCK_HEADE...
#! /bin/sh # $Id: genif.sh,v 1.6 2005/06/21 13:47:38 sniper Exp $ # replacement for genif.pl infile=$1 shift srcdir=$1 shift extra_module_ptrs=$1 shift awk=$1 shift if test -z "$infile" || test -z "$srcdir"; then echo "please supply infile and srcdir" exit 1 fi header_list= olddir=`pwd` cd $srcdir module_ptrs="$...
import { Table, Column, CreatedAt, UpdatedAt, Model, DataType, BeforeCreate, BeforeUpdate, PrimaryKey, AutoIncrement, Default, HasMany, BelongsToMany } from "sequelize-typescript"; import { hash, compare } from "bcryptjs"; import Ticket from "./Ticket"; import Queue from "./Queue"; import User...
// Code generated by ogen, DO NOT EDIT. package api import ( "bytes" "context" "fmt" "io" "math" "math/bits" "net" "net/http" "net/url" "regexp" "sort" "strconv" "strings" "sync" "time" "github.com/go-faster/errors" "github.com/go-faster/jx" "github.com/google/uuid" "github.com/ogen-go/ogen/conv" ...
zk_cluster_info="{ 'zk-node-1' => {'192.168.0.165' => 1 } }" # Note that broker_id must be unique for each host in the cluster. It should ideally not change # throughout the lifetime of the Kafka installation on a given machine. kafka_cluster_info="{ 'kafka-node-1' => { :broker_id => 1 }, 'kafka-...
#!/bin/bash # Usage: build.sh [dcrdata_root] [destination_folder] # # build.sh performs the following actions: # 1. Compile go code, generating the main binary. # 2. Install webpack dependencies via npm install. # 3. Build the frontend files via npm run build, which creates the # public/dis...
<filename>src/schema/ibc_base_denom.schema.ts import * as mongoose from 'mongoose'; import { IbcBaseDenomType } from '../types/schemaTypes/ibc_base_denom.interface'; export const IbcBaseDenomSchema = new mongoose.Schema( { chain_id: String, denom: String, symbol: String, scale: Number, icon: Stri...
package main import ( "math" "strings" "time" ) func printProgress(prefix operatorPrefix, settings programSettings, step string, started time.Time, timeout time.Duration) { elapsed := int(math.Round(float64(time.Now().Sub(started)) / float64(timeout) * 100)) left := 100 - elapsed logProgress := settings.logger...
<filename>eerie/bsplines/b_dd.py # -*- coding: utf-8 -*- """ Implementation of d-Dimensional B-splines File created Wed 11 Dec 2019 11:16:51 @author: <NAME>, Institute for Informatics, University of Amsterdam, The Netherlands """ import torch as torch import math as m from eerie.bsplines.b_1d import B as ...
# oil-var-sub.test.sh #### ${x|html} x='echo hi 2>&1' echo "${x|html}" ## STDOUT: echo hi 2&gt;&amp;1 ## END #### ${x %05d} x=3 printf '%05d\n' "$x" echo ${x %05d} ## STDOUT: 00003 00003 ## END #### ${.myproc builtin sub} proc myproc() { echo "$@" } echo ${.myproc builtin sub} ## STDOUT: builtin sub ## END ####...
#!/bin/sh HP_PATH="/boot/home/haikuports" RA_HP_PATH="$HP_PATH/games-emulation/retroarch" RA_DL_PATH="$RA_HP_PATH/download" RA_VERSION=$(curl -s https://api.github.com/repos/libretro/RetroArch/releases/latest | grep "tag_name" | cut -d ':' -f 2 | tr -d \" | tr -d \, | tr -d \v | tr -d ' ') RA_ARCHIVE="$RA_DL_PATH/retr...
# Generated by Django 2.1.4 on 2019-03-24 01:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("filamentcolors", "0008_auto_20190323_2357"), ] operations = [ migrations.AddField( model_name="swatch", name="regene...
#!/bin/bash export VK_LOADER_DEBUG=warn,error,info export LD_DEBUG=libs export ENABLE_PRIMUS_LAYER=0 function step_0 { printf "===== Round 0: Vulkaninfo =====\n" if which vulkaninfo >> /dev/null; then printf "==== Without Optirun ====\n" vulkaninfo 2>&1 printf "==== With Optirun ====\n" optirun vulkaninfo...
<reponame>Micascisto/sharad-tools # import necessary libraries import numpy as np from PIL import Image import matplotlib.pyplot as plt import scipy def rgram(amp, path, runName, chirp, windowName, rel = True): """ function designed to create radargrams for visualization purposes from range compressed EDRs ...
#!/usr/bin/env bash ################################################################################ # 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. T...
const models = require('../models'); const Tens = models.Tens; const makerPage = (req, res) => { Tens.TensModel.findByOwner(req.session.account._id, (err, docs) => { if (err) { console.log(err); return res.status(400).json({ error: 'An error occurred' }); } return res.render('app', { csrfTok...
window.notifications = function() { return { duration: 3000, visible: false, type: 'notice', message: null, show: function(options) { if (options.type) { this.type = options.type; } if (options.message) { t...
func makeNetworkRequest(url: URL, completion: @escaping (Result<Data, NetworkError>) -> Void) { let task = URLSession.shared.dataTask(with: url) { (data, response, error) in if let error = error as NSError?, error.domain == NSURLErrorDomain { if error.code == NSURLErrorNotConnectedToInternet { ...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.tenant.example; import java.util.ArrayList; import java.util.List; import javax.sql.DataSource; import lombok.extern.slf4j...
m_numbers = Person.where({"updated_at" => {"$gt" => DateTime.new(2014,3,28,16,00,00).utc}}).map(&:members).flatten.map(&:hbx_member_id).uniq pols = Policy.find_active_and_unterminated_for_members_in_range(m_numbers, Date.today, Date.today) pols.each do |pol| member_ids = pol.enrollees.select(&:active?).map(&:m_id) ...
<filename>examples/web/src/forms/RadioForm.js<gh_stars>0 import React from 'react'; import { form, input, button } from 'react-dom'; import { connectForm } from 'react-dumb-forms'; import {schemas} from 'react-dumb-forms-examples-lib'; function RadioForm({formProps, propsFor, labelPropsFor, errorFor, ifError}) { r...
#!/bin/bash # Start supervisord and services /usr/bin/supervisord -n -c /etc/supervisord.conf
<gh_stars>10-100 # -*- coding: utf-8 -*- # @Author: Administrator # @Date: 2019-04-24 22:04:40 # @Last Modified by: Administrator # @Last Modified time: 2019-05-24 16:52:02 from core.const import LONG_RUNNING_MODE, SIMULATOR_ENV, MAP_WIDTH, MAP_HEIGHT,\ TANKS_PER_SIDE, SIDE_COUNT, BLUE_SIDE, RE...
package com.ssafy.sub.repo; import java.util.List; import javax.transaction.Transactional; import org.springframework.data.jpa.repository.support.QuerydslRepositorySupport; import org.springframework.stereotype.Repository; import com.ssafy.sub.dto.Comment; import com.ssafy.sub.dto.QComment; @Repository public clas...
print("Welcome to My Website!") print("Sign Up Form") name = input("Please enter your name: ") age = input("Please enter your age: ") email = input("Please enter your email: ") password = input("Please enter a password: ") print("Name:", name) print("Age:", age) print("Email:", email) print("Password:", password) pri...
import React, { Component } from 'react'; import './InfoTable.css'; class InfoTable extends Component { render() { return ( <div className='table'> <table> <tr> <th className='no'>#</th> <th className='first'>First</th> <th className='last<'>Last<...
<filename>needle-compiler/src/test/java/com/justinblank/strings/MinimizeDFATest.java package com.justinblank.strings; import org.junit.Test; import java.util.HashSet; import java.util.Map; import java.util.Set; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; public class Mini...
/** * Banner placed at the beginning of the build */ module.exports = ``;
#!/bin/bash #SBATCH --gres=gpu:1 #SBATCH --mem=128G #SBATCH --cpus-per-task=8 #SBATCH --time=5-07:00:00 #SBATCH --mail-user=email@email.com #SBATCH --mail-type=ALL #SBATCH --output=/scratch/authorid/shortcut/log/MRNet/weight_decay/00001_%A.out #SBATCH --job-name wt00001 #SBATCH --account=rrg-PIID module load python/3....
from django.db import connection class cmdbDao(object): def __init__(self, table_name): self.table_name = table_name def create_record(self, record_data): with connection.cursor() as cursor: fields = ', '.join(record_data.keys()) values = ', '.join(['%s'] * len(record_d...
#!/bin/bash sh build-lin.sh status=$? ## take some decision ## if [ $status -ne 0 ]; then echo "FAILED!" exit 1 fi currentWINEdir="Z:\\$(pwd | sed 's#/#\\#g' )" #/Applications/Warcraft\ III/x86_64/Warcraft\ III.app/Contents/MacOS/Warcraft\ III -loadfile target/map.w3x exec wine64 ~/.wine/drive_c/Progra...
// Copyright (c) 2022 <NAME>. All Rights Reserved. // https://github.com/cinar/indicatorts import { CompanyResult } from './companyResult'; import { StrategyInfo } from './strategyInfo'; import { StrategyResult } from './strategyResult'; /** * Strategy stats. */ export interface StrategyStats { strategyInfo: Stra...
<filename>src/test/scala/org/kr/scala/z80/test/OpLoad16BitTypeTest.scala package org.kr.scala.z80.test import org.kr.scala.z80.system.{ConsoleDebugger, Debugger, DummyDebugger, Regs} import org.scalatest.funsuite.AnyFunSuite class OpLoad16BitTypeTest extends AnyFunSuite { implicit val debugger:Debugger=DummyDebugg...
<filename>src/main/java/dev/fiki/forgehax/main/mods/chat/InstantMessage.java<gh_stars>100-1000 package dev.fiki.forgehax.main.mods.chat; import dev.fiki.forgehax.api.asm.MapField; import dev.fiki.forgehax.api.cmd.settings.StringSetting; import dev.fiki.forgehax.api.event.SubscribeListener; import dev.fiki.forgehax.api...
#!/bin/bash #PBS -N 50_standing_height_chr3_sb5_by_region #PBS -S /bin/bash #PBS -l walltime=4:00:00 #PBS -l mem=5gb #PBS -l nodes=1:ppn=1 #PBS -o logs/${PBS_JOBNAME}.o${PBS_JOBID}.log #PBS -e logs/${PBS_JOBNAME}.e${PBS_JOBID}.err #########################################################################################...
#!/usr/bin/env bash # # === Maven repository search util === # # MIT License # Copyright (c) 2016 Attila Majoros # # Source: https://github.com/majk1/shellrc/blob/master/utils/mvn-search.sh # # Examples: # ### globals REPO_URL="https://www.mvnrepository.com" APP_DEPS=("sed" "tr" "head") FETCH_WITH="wget" ONE=0 ### fu...
<reponame>johnwanjohi/ngx-awesome-popup<filename>dist/costlydeveloper-ngx-awesome-popup.d.ts /// <amd-module name="@costlydeveloper/ngx-awesome-popup" /> export * from './public_api';
<gh_stars>0 import React, { FunctionComponent } from 'react'; import ITimesheetSelectBoxProps from '../model/ITimesheetSelectBoxProps'; import Constants from '../constants'; const TimesheetSelectBox: FunctionComponent<ITimesheetSelectBoxProps> = (props) => { const timesheetArray = CreateArray(Constants.TIME_ARRAY_...
<filename>server/modules/posts/posts.utils.ts export const convertToArray = (str: string) => { const re: string = str.replace(/\s\s+/g, ' '); const arr: string[] = re.trim().split(' '); return arr; };
""" This script calculates translation coverage for various languages """ import os def calculate_coverage(filename): """ Calculate translation coverage for a .po file """ with open(filename, 'r') as f: lines = f.readlines() lines_count = 0 lines_covered = 0 lines_uncovered = 0 ...
#!/bin/bash # Copyright 2018 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 agreed to ...
yum update -y yum install -y epel-release yum group install -y mate-desktop-environment
<gh_stars>0 const crypto = require('crypto'); exports.md5 = function (str) { const md5sum = crypto.createHash('md5'); md5sum.update(str); return md5sum.digest('hex'); };
import pulsar as psr def load_ref_system(): """ Returns beta-d-galactopyranose as found in the IQMol fragment library. All credit to https://github.com/nutjunkie/IQmol """ return psr.make_system(""" C 0.2723 1.3545 -0.8489 O -0.9316 0.9726 -0.1689 C...
<reponame>aniketsaha19/Hacktoberfest-KIIT // Sum of an array using recursion #include <stdio.h> int sum(int size, int arr[size]){ int arr_sum = 0; if(size == 1) return arr[0]; else { arr_sum = arr[size-1] + sum(--size, arr); return arr_sum; } } int main(){ int n;...
#!/bin/sh # Install libdb4.8 (Berkeley DB). export LC_ALL=C set -e if [ -z "${1}" ]; then echo "Usage: $0 <base-dir> [<extra-bdb-configure-flag> ...]" echo echo "Must specify a single argument: the directory in which db4 will be built." echo "This is probably \`pwd\` if you're at the root of the wednesdaydud...
//===-- PipeBase.h -----------------------------------------------*- C++ //-*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------...
awk '{if($6==0&&$7==0){print $0}}' Bnazs11.denovo.cds.status|awk '{for(i=2;i<=NF;i++){if($i>0){a[$1]=i-1}}}END{for(i in a){print i,a[i]}}' >Bnazs11.new.orphan.gene.candidate
import React from 'react'; import { HomepageBanner, HomepageCallout } from 'gatsby-theme-carbon'; import HomepageTemplate from 'gatsby-theme-carbon/src/templates/Homepage'; import { calloutLink } from './Homepage.module.scss'; import Carbon from '../../images/cloudnative3.jpg'; const audience = 'developer'; // 'partn...
package com.threathunter.bordercollie.slot.compute.cache.wrapper.array; import com.threathunter.bordercollie.slot.compute.cache.CacheType; import com.threathunter.bordercollie.slot.compute.cache.StorageType; import com.threathunter.bordercollie.slot.compute.cache.storage.ByteArrayCacheStore; import com.threathunter.bo...
#!/bin/bash rm cliStdo.log &> /dev/null timeout -s SIGINT 6 mvn -q -f ServerBoolCfg/pom.xml exec:java > srvStdo.log 2> srvStdr.log& sleep 3 timeout -s SIGINT 4 mvn -q -f ClientBoolCfg/pom.xml exec:java > cliStdo.log 2> cliStdr.log& sleep 5 #printf "Cli stdo:\n\n" cat cliStdo.log #printf "\nCli stdr:\n\n" >&2 cat cl...
<filename>application/screens/Workouts.js import React, {Component} from 'react'; import { NavigationActions } from 'react-navigation'; import AppPreLoader from '../components/AppPreLoader'; import{ ImageBackground, Dimensions, View, TouchableOpacity, FlatList, Button, ActivityIndicator, Image, ScrollView, SafeAreaVi...
<gh_stars>0 package org.chums.checkin.models.accessManagement; import com.google.gson.Gson; import java.util.ArrayList; public class Users extends ArrayList<User> { public Users(){} public static Users inflate(String json) { return new Gson().fromJson(json, Users.class); } }
#pragma once #include <mcpe\Level.hpp> #include <unordered_map> class Chunk { // Define the Chunk class to represent a chunk of the game world // Include necessary fields and methods to store chunk data }; class ChunkSource { public: // Implement a suitable data structure to store and manage chunks s...
#!/usr/bin/env bash # PLAIN PYTHON="/home/${USER}/anaconda3/envs/spsa/bin/python" # python environment dataset=cifar10 num_classes=10 batch_size=1 target_model="/home/${USER}/code/bandlimited-cnns/cnns/nnlib/robustness/pni/code/save/cifar10_vanilla_resnet20_160_SGD_no_adv_train_vanilla_pure_acc_88_00.pth.tar" target_a...
echo "This script will take the words you enter on command line, and generate birds." echo "It requires the 2106style Venv" source /org/dp/attngan/Style-AttnGAN/code/2106style/bin/activate echo $1 > ../data/birds/20210614.txt python main.py --cfg cfg/eval_bird_style.yml --text_encoder_type rnn --gpu 0 --frames $2 -...
def binary_search(data, target): # Define the indexes for the search left = 0 right = len(data) - 1 # Check base case if right >= left: mid = left + (right - left)//2 # If the target is equal to the mid element, return its index if data[mid] == target: retu...
<filename>lang/en/doc.go // Package en converts numbers, currencies to english words. package en
<reponame>steveniemitz/littletable /* * Copyright (c) 2020 The Go Authors. All rights reserved. * * Use of this source code is governed by a BSD-style * license that can be found in the LICENSE file. */ // Original Go source here: // http://code.google.com/p/go/source/browse/src/pkg/regexp/syntax/simplify.go pack...
/* * */ package net.community.chest.apache.ant; import java.io.File; import java.util.StringTokenizer; import net.community.chest.apache.ant.helpers.AbstractPropConditionTask; import org.apache.tools.ant.BuildException; import org.apache.tools.ant.Project; /** * <P>Copyright as per GPLv2</P> * * <P>Checks if a...
function level(lid,size){ $("#level_"+lid).addClass("active"); for(i=2;i<size+3;i++){ if(i!=lid){ $("#level_"+i).removeClass("active"); } } $("#div_category").empty(); $("#div_level_category").empty(); var dt = JSON.stringify({ 'lid' : lid, }); $.ajax...
<reponame>ch1huizong/learning from itertools import groupby def paragraphs(lines, is_separator=str.isspace, joiner=''.join): for separator_group, lineiter in groupby(lines, key=is_separator): if not separator_group: yield joiner(lineiter)
<filename>src/pages/index.js import React from "react"; import graphql from "graphql"; import { HTMLContent } from '../components/Content'; export default class IndexPage extends React.Component { render() { const { data } = this.props; const { html } = data.markdownRemark; return ( <HTMLConten...
import { Module } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { SolicitudController } from '../web/rest/solicitud.controller'; import { SolicitudRepository } from '../repository/solicitud.repository'; import { SolicitudService } from '../service/solicitud.service'; @Module({ import...
""" Created on 14 Jan 2020 @author: si """ import copy import csv import os from ayeaye.connectors.base import DataConnector, AccessMode from ayeaye.pinnate import Pinnate class CsvConnector(DataConnector): engine_type = "csv://" optional_args = { "field_names": None, "required_fields": None...
/* * @(#)MetalworksDocumentFrame.java 1.12 04/07/26 * * Copyright (c) 2004 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * -Redistribution of source code must r...
#!/bin/bash # Compress and index the sample VCF file bgzip ${SAMPLE_VCF_BASENAME}.vcf tabix -f -p vcf ${SAMPLE_VCF_BASENAME}.vcf.gz # Compress and index the truth VCF file bgzip truth.vcf tabix -f -p vcf truth.vcf.gz # Run vcfeval within the Singularity container module load singularity singularity exec vcfeval_cont...
<gh_stars>0 package com.lothrazar.cyclicmagic; import java.util.ArrayList; import com.lothrazar.cyclicmagic.block.BlockShears; import com.lothrazar.cyclicmagic.block.BlockSoundSuppress; import com.lothrazar.cyclicmagic.block.anvil.BlockAnvilAuto; import com.lothrazar.cyclicmagic.block.anvilmagma.BlockAnvilMagma; impor...
#!/bin/bash # General configuration . $MXS_PATH/bin/conf_generic.sh # Processing parameters export SMINER_SEGMENTAL='1' export DICO_USE='1' #export UNCAPITALIZE='1' export SENTENCEPOS_USE='1' export LEARN_TOOLKIT='SciKitBin' # SciKit, SciKitBin, MaxEnt, MaxEntBin, Wapiti #export LEARN_SEQ_STEPS='20' # Post processing...
package hash import ( "errors" "github.com/nspcc-dev/neo-go/pkg/util" ) // MerkleTree implementation. type MerkleTree struct { root *MerkleTreeNode depth int } // NewMerkleTree returns new MerkleTree object. func NewMerkleTree(hashes []util.Uint256) (*MerkleTree, error) { if len(hashes) == 0 { return nil, e...
#include "icetrap.h" #include "z64.h" _Bool ice_trap_is_pending() { return z64_file.scene_flags[0x49].unk_00_ > 0; //Unused word in scene x49. } void push_pending_ice_trap() { z64_file.scene_flags[0x49].unk_00_++; } void give_ice_trap() { if (z64_file.scene_flags[0x49].unk_00_) { z64_file.scene_f...
#!/bin/bash # The ubuntu version to use UBUNTU_VERSION=20.04 UBUNTU_CODENAME=focal # Ubuntu Archive mirror # Checkout https://launchpad.net/ubuntu/+archivemirrors if you want a faster one. UBUNTU_MIRROR=http://se.archive.ubuntu.com # Name used for iso volume id, hostname in the live environment. TARGET_NAME=eosio-li...
#!/usr/bin/env bash # shellcheck source=src/runtime/bootstrap/lib/tools.sh source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/../lib/tools.sh" # Installs all the required software on jumphost function install_dependencies() { curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash # required az cli extentions fo...
var armnn_onnx_parser_2test_2_reshape_8cpp = [ [ "BOOST_FIXTURE_TEST_CASE", "armnn_onnx_parser_2test_2_reshape_8cpp.xhtml#a8c8b889c4603b12e8e15e8084c214ff5", null ], [ "BOOST_FIXTURE_TEST_CASE", "armnn_onnx_parser_2test_2_reshape_8cpp.xhtml#a1a25a002dbe73e19fec6767aae8e17d3", null ] ];
#!/bin/bash # 15 outputfile=$1 testfile=$2 rm -rf my_super_file my_ref_file touch my_super_file touch my_ref_file chmod o-r my_ref_file python3 busybox.py chmod o-r my_super_file &> $outputfile scriptresult=$? node verify/chmod/chmod.js my_super_file my_ref_file > $testfile 2>> $outputfile testresult=$? rm -rf my...
package ch.hslu.pcp; public class Main { public static void main(String[] args) { Stack myStack = new Stack(); System.out.println("myStack.size() = " + myStack.size()); System.out.println("myStack.isEmpty() = " + myStack.isEmpty()); myStack.print(); myStack.top(); m...
debuntu_ci_domina-ci-executor_install "0.6.1" cat <<'EOF' > ~/domina_ci_executor/domina_conf.clj { :shared { :working-dir "/tmp/domina_working_dir" :git-repos-dir "/tmp/domina_git_repos" } :reporter {:max-retries 10 :retry-ms-factor 3000} :nrepl {:port 7888 :bind "0.0.0....
/* * Copyright 2014-2015 <NAME> & REINA Developing Group * * 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 ap...