text
stringlengths
1
1.05M
<reponame>nohbdy/libggpk #include <iostream> #include <iomanip> #include "ggpk.h" #include "ggpk/Archive.h" #include "ggpk/Node.h" using namespace std; // Translate a NodeType enum value into string for printing const char* nodeTypeToName(ggpk::Node::NodeType t) { switch (t) { case ggpk::Node::File: return "File...
import sqlite3 class Database(object): __vars__ = [] def __init__(self, name): self._name = name def _execute(self, command, args=None): connection = sqlite3.connect("exel.db") cursor = connection.cursor() if args is None: out = cursor.execute(command).fet...
#!/usr/bin/env bash # _4f is as _4e, but halving the regularization from 0.0001 to 0.00005. # It's even better than 4e, by about 0.3% abs. # 4c 4e 4f # Final valid prob: -0.1241 -0.1267 -0.1230 # Final train prob: -0.08820 -0.1149 -0.1058 # ./show_wer.sh 4f # %WER 16.83 [ 8282 /...
python transformers/examples/language-modeling/run_language_modeling.py --model_name_or_path train-outputs/512+512+512-N-IP/7-model --tokenizer_name model-configs/1536-config --eval_data_file ../data/wikitext-103-raw/wiki.valid.raw --output_dir eval-outputs/512+512+512-N-IP/7-1024+0+512-LMPI-first-256 --do_eval --per_d...
<reponame>moc-yuto/envoy #include "test/extensions/filters/network/thrift_proxy/integration.h" #include <algorithm> #include <fstream> #include "test/test_common/environment.h" namespace Envoy { namespace Extensions { namespace NetworkFilters { namespace ThriftProxy { std::string PayloadOptions::modeName() const { ...
# up function # See http://daniele.livejournal.com/76011.html #If you pass no arguments, it just goes up one directory. #If you pass a numeric argument it will go up that number of directories. #If you pass a string argument, it will look for a parent directory with that name and go up to it. function up() { di...
import matplotlib.pyplot as plt # x axis values x = [1,2,3,4,5,6,7,8,9,10,11,12] # corresponding y axis values y = [10, 20, 30, 5, 10, 15, 25, 10, 20, 15, 5, 10] # plotting the points plt.plot(x, y) # naming the x axis plt.xlabel('Day of Month') # naming the y axis plt.ylabel('Number of orders') ...
#!/bin/sh # wait-for-postgres.sh # Based on https://docs.docker.com/compose/startup-order/ set -e host=$(python -c "import os; print(os.getenv('DATABASE_URL').rsplit('/', 1)[0])") until psql -d $host -c '\q'; do >&2 echo "Postgres is unavailable - sleeping for 5s" sleep 5 done echo "Postgres is up"
<filename>resources/js/app.js import Paginate from 'vuejs-paginate' import moment from 'moment' import apiRequest from "./components/Api/index"; import Vue from 'vue'; require('./bootstrap'); window.Vue = require('vue'); /** * The following block of code may be used to automatically register your * Vue components...
import gzip import logging import lxml from StringIO import StringIO from google.appengine.ext.webapp.mail_handlers import InboundMailHandler import webapp2 class DmarcHandler(InboundMailHandler): """Simple handler for DMARC emails""" def receive(self, email): logging.info("Received a message from: <...
/* * Jaudiotagger Copyright (C)2004,2005 * * This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser * General Public License as published by the Free Software Foundation; either version 2.1 of the License, * or (at your option) any later version. * * This libra...
package domains import ( "context" "fmt" "time" "github.com/mercari/mtc2018-web/server/config" ) // Session has the session data. type Session struct { ID int Type string Place string Title string TitleJa string StartTime string EndTime string Outline string OutlineJa ...
from zope.schema.interfaces import IVocabularyTokenized class IQuerySource(IVocabularyTokenized): """A source that supports searching """ def search(query_string): """Return values that match query."""
<filename>src/vess-service/datastore.go package main import "gopkg.in/mgo.v2" // 创建与 MongoDB 交互的主回话 func CreateSession(host string) (*mgo.Session, error) { s, err := mgo.Dial(host) if err != nil { return nil, err } s.SetMode(mgo.Monotonic, true) return s, nil }
<filename>src/test/java/org/olat/core/util/FormatterTest.java /** * <a href="http://www.openolat.org"> * OpenOLAT - Online Learning and Training</a><br> * <p> * Licensed under the Apache License, Version 2.0 (the "License"); <br> * you may not use this file except in compliance with the License.<br> * You may obt...
<gh_stars>10-100 package io.opensphere.core.collada; import io.opensphere.core.collada.jaxb.Effect; import io.opensphere.core.collada.jaxb.Image; import io.opensphere.core.collada.jaxb.Material; /** * Stores various pieces of shape information. * * @param <T> the type of the shape */ public class Shape...
#!/bin/bash USAGE=" ${0} TARGET STAGE [STAGE ...] Arguments: - TARGET: Name of the test target. Targets are defined in 'tests' directory. - STAGE: Test stage(s) to execute. Possible stages are: - build: Build a docker image used for testing. - rmi: Remove a docker image used for testing. - push: Push the built...
<?php $start_date = $_POST['start']; $end_date = $_POST['end']; $date_range = []; $day = 86400; // one day in seconds $start_date_timestamp = strtotime($start_date); $end_date_timestamp = strtotime($end_date); for ($i = $start_date_timestamp; $i <= $end_date_timestamp; $i += $day) { $date_range[] = date('Y/m/d', ...
#!/bin/bash script=`basename "$0"` source=$src_dir/masking/$1/masking_rules.json target=${maxscale_000_whoami}@${maxscale_000_network}:/home/${maxscale_000_whoami}/masking_rules.json if [ ${maxscale_000_network} != "127.0.0.1" ] ; then scp -i $maxscale_000_keyfile -o StrictHostKeyChecking=no -o UserKnownHost...
<reponame>mttkay/license_scout # # Copyright:: Copyright 2016, Chef Software Inc. # License:: Apache License, Version 2.0 # # 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.ap...
## --------------------------------------------------------- # -- This simple script is an example of how to start Derby # -- as a server inside the Network Server framework # -- # -- REQUIREMENTS: # -- You must have the derby and Network Server jar files in your CLASSPATH # -- # -- Check the setNetworkServ...
<reponame>LongJiangSB/TwoDimensionCode // // Contacts.h // TwoDimensionCode // // Created by xp on 2016/12/2. // Copyright © 2016年 com.yunwangnet. All rights reserved. // #import <Foundation/Foundation.h> @interface Contacts : NSObject @property (nonatomic,copy) NSString *conName;/**< 联系人姓名 */ @property (nonatom...
#!/bin/bash # This script parses in the command line parameters from runCust, # maps them to the correct command line parameters for DispNet training script and launches that task # The last line of runCust should be: bash $CONFIG_FILE --data-dir $DATA_DIR --log-dir $LOG_DIR # Parse the command line parameters # tha...
<reponame>fifthfiend-kru/yagpdb<filename>common/scheduledevents2/backgroundworker.go package scheduledevents2 import ( "context" "github.com/jonas747/yagpdb/common" "github.com/jonas747/yagpdb/common/scheduledevents2/models" "github.com/sirupsen/logrus" "github.com/volatiletech/sqlboiler/queries/qm" "sync" "tim...
<gh_stars>0 import { User } from 'src/users/entities/user.entity'; import { Signal } from 'src/signal-types/entities/signal-type.entity'; import { Column, CreateDateColumn, Entity, JoinColumn, ManyToOne, OneToOne, PrimaryGeneratedColumn } from 'typeorm'; import { Conservation } from './conservation.entity'; import { Vi...
def grade_test(scores): total = 0 for score in scores: total += score if total >= 40: return "Pass" else: return "Fail" scores = [5, 10, 15] grade = grade_test(scores) print("Grade: " + grade)
<filename>components/card-icons.tsx import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faCustomWebsite } from '../lib/fas-custom-integration'; import { faFacebook, faInstagram, faTwitter, faLinkedin, faGithub } from '@fortawesome/free-brands-svg-icons'; import { IconProp } from '@fortawesom...
#!/bin/bash ### TESTS BRANCH ############################################################### tests() { while true do print_select_title "Test Scripts" echo -e "\n 0) $(mainmenu_item "${testlist[0]}" "Transfer Files to UMLs (${Yellow}Prereq.${Reset})")\n" # Make dependent on node select echo " 1) $(ma...
require 'spec_helper' describe Hydra::Derivatives::Processors::ShellBasedProcessor do before do class TestProcessor include Hydra::Derivatives::Processors::ShellBasedProcessor end end after { Object.send(:remove_const, :TestProcessor) } let(:processor) { TestProcessor.new } let(:proc_class) {...
require_relative 'card' module PathfinderDeckBuilder class SpellCard < PathfinderDeckBuilder::Card def create_card(index=nil) super end def set_class_path @class_path = @spell_path end def assembled_card(path) super end def static_content { "count": 1, ...
function searchArray(arr, key) { // iterate through array for (let obj of arr) { // check if key exists and if so, return value if (key in obj) { return obj[key]; } } } // example usage let arr = [ {name: 'Dana', age: 21}, {name: 'Bob', age: 34}, {name: 'John', age: 25} ]; searchArray(arr, 'name'); // retu...
<gh_stars>1-10 import { log } from "handlebars"; import parseTrackName from "./parseTrackName"; import typeOutText from './typeOutText' import coverFlow from './coverFlow' let response = []; let genreExplanation = []; function appendInsult(insult,container){ container.append("p").text(insult); } function scroll...
#!/bin/bash if [ -z $RELEASE_RUBYGEMS_API_KEY ]; then echo No API key specified for publishing to rubygems.org. Stopping release. exit 1 fi RELEASE_BRANCH=$GITHUB_REF_NAME if [ -z $RELEASE_USER ]; then export RELEASE_USER=$GITHUB_ACTOR fi RELEASE_GIT_NAME=$(curl -s https://api.github.com/users/$RELEASE_USER | jq...
<filename>src/movies/view/state/reducer/slice/movieSlice.ts<gh_stars>0 import { createSlice, PayloadAction } from '@reduxjs/toolkit'; import { IMovie } from '../../../../domain/models/Movie'; import initialState from '../../initialState'; import type { RootState } from '../../store'; export const movieSlice = createSl...
<gh_stars>1-10 import axios from 'axios' // @ts-ignore import packageJson from './package.json' const client = axios.create({ timeout: 60000, headers: { 'client-type': 'js', 'client-version': packageJson.version, }, baseURL: 'https://api.betting-api.com/marathonbet', }) export default client
#!/bin/bash echo test set login
self.__precacheManifest = (self.__precacheManifest || []).concat([ { "revision": "024451cc07af28e07692291fe8cefe23", "url": "./index.html" }, { "revision": "33e551e02e5e54e83fa2", "url": "./static/css/2.9e3fc118.chunk.css" }, { "revision": "0cc2ae88086ffc5d9365", "url": "./static/css/m...
# Uses template.html as a template, and replaces some text in it to make a new web page. # for each language. python3 generateAll.py
package gov.cms.bfd.model.codegen.codebook; import com.google.auto.service.AutoService; import com.google.common.collect.ImmutableSet; import com.google.common.html.HtmlEscapers; import com.squareup.javapoet.ClassName; import com.squareup.javapoet.FieldSpec; import com.squareup.javapoet.JavaFile; import com.squareup.j...
<filename>ui/frontend/src/components/namespaces/namespace.js import React, {useCallback, useContext, useEffect, useMemo, useState} from 'react' import '../../css/namespace.css' import ReactPaginate from 'react-paginate' import {useLocation, useParams} from 'react-router-dom' import logoColor from "img/logo-color.png";...
<reponame>haroutboujakjian/Vuesalize import Vue from "vue"; import StackedBarChart from "./StackedBarChart"; import BaseLegend from "./BaseLegend"; import LineChart from "./LineChart"; import GroupedBarChart from "./GroupedBarChart"; import LoaderSpinning from "./LoaderSpinning"; import Network from "./Network"; import...
<filename>src/test/java/com/github/peacetrue/signature/SignerTest.java package com.github.peacetrue.signature; import com.github.peacetrue.CryptologyUtils; import com.github.peacetrue.beans.signedbean.SignedBean; import com.github.peacetrue.digest.HmacDigester; import com.github.peacetrue.security.KeyPairGeneratorUtil...
#! /bin/bash pushd "$(dirname "$0")" >/dev/null cat ./vscode-extensions | xargs -L 1 code-insiders --install-extension popd
require 'chronic' require 'csv' require 'eventmachine' require 'fileutils' require 'neo4j-core' require 'rugged' require 'date' module Ginatra class Repository class MissingName < RuntimeError; end class MissingPath < RuntimeError; end class InvalidPath < RuntimeError; end class MissingId < RuntimeEr...
package facade.amazonaws.services import scalajs._ import scalajs.js.annotation.JSImport import scala.scalajs.js.| import scala.concurrent.Future import facade.amazonaws._ package object managedblockchain { type ArnString = String type AvailabilityZoneString = String type ClientRequestTokenString = String typ...
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import styles from './index.module.less'; export default class index extends Component { constructor() { super(); this.state = {}; } render() { const { username } = this.props; return ( <div className={styles...
#!/bin/bash # Copyright (c) 2018-2020, NVIDIA CORPORATION. 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 lis...
import csv import argparse from multiprocessing import Pool def process_course_data(course): course_code, course_title, enrollment_count = course return course_code, course_title, int(enrollment_count) def identify_top_classes(course_data, top_n): processed_data = [process_course_data(course) for course i...
function setToArray(s) { return Array.from(s.values()); } const mySet = new Set(['foo', 'bar', 'baz']); const a = setToArray(mySet); console.log(a); // prints: [ 'foo', 'bar', 'baz' ]
/***************************************************************************** * * PROJECT: Multi Theft Auto v1.0 * LICENSE: See LICENSE in the top level directory * FILE: SharedUtil.ClassIdent.h * PURPOSE: * * Multi Theft Auto is available from http://www.multitheftauto.com/ * ************...
<gh_stars>10-100 package gldap import ( "strings" "testing" "github.com/stretchr/testify/assert" ) func TestEntry_GetAttributes(t *testing.T) { tests := []struct { name string entry *Entry attr string want []string }{ { name: "empty", entry: &Entry{ Attributes: []*EntryAttribute{}, }, ...
#!/usr/bin/env sh # This scripts downloads the pre-trained models. DIR="$( cd "$(dirname "$0")" ; pwd -P )" cd $DIR echo "Downloading pre-trained models..." wget https://github.com/kivantium/illustration2vec/releases/download/v2.1.0/tag_list.json.gz wget https://github.com/kivantium/illustration2vec/releases/download...
<filename>packages/reader/src/assert.ts export interface AssertMessage { message?: string; } export interface AssertIntMinMax extends AssertMessage { min?: number; max?: number; } export interface AssertIntValues extends AssertMessage { values: number[]; } export function assertInt(value: number, options: Assert...
#!/bin/bash if [ -z $1 ]; then echo "How to use: $0 network_directory/" exit fi backend="" if [ -z $2 ]; then echo "No backend provided. CPU will be used." backend="cpu" else echo "Backend $2 has been provided." backend=$2 fi gdb --args skepu_ann $1/solver.prototxt $backend
<gh_stars>0 /* * Project: FullereneViewer * Version: 1.0 * Copyright: (C) 2011-14 Dr.Sc.KAWAMOTO,Takuji (Ext) */ #ifndef __HOST_H__ #define __HOST_H__ #include <stdio.h> #include "Object.h" #include "MyString.h" #include "List.h" #include "ObjectInt2.h" class Host : public Object { // friend classes & function...
"use strict"; exports.__esModule = true; exports.default = exports.caretSet = void 0; var _react = _interopRequireDefault(require("react")); var _propTypes = _interopRequireDefault(require("prop-types")); var _reactDom = require("react-dom"); var _Input = _interopRequireDefault(require("./Input")); function _inte...
<reponame>DoubleGremlin181/RubiksCubeGym<gh_stars>10-100 from gym.envs.registration import register register( id='rubiks-cube-222-v0', entry_point='rubiks_cube_gym.envs:RubiksCube222Env', max_episode_steps=250, ) register( id='rubiks-cube-222-lbl-v0', entry_point='rubiks_cube_gym.envs:RubiksCube22...
package mcjty.incontrol.rules; import com.google.gson.JsonElement; import mcjty.incontrol.InControl; import mcjty.incontrol.compat.ModRuleCompatibilityLayer; import mcjty.incontrol.rules.support.GenericRuleEvaluator; import mcjty.tools.rules.IEventQuery; import mcjty.tools.rules.IModRuleCompatibilityLayer; import mcjt...
<reponame>ChrisLMerrill/museide package org.museautomation.ui.valuesource.parser; import org.junit.jupiter.api.*; import org.museautomation.parsing.valuesource.*; import org.museautomation.builtins.value.*; import org.museautomation.builtins.value.property.*; import org.museautomation.core.*; import org.museautomation...
using System; using System.Net.Sockets; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; using Xunit; public class EmailServiceTests { private IEmailService _service; public EmailServiceTests() { _service = TestServiceProvider.Current.GetRequiredService<IEmailService>(...
# Class input output class ConsoleIo def print_result(points, result) puts "\n Вы набрали #{points} баллов:" puts result end def ask_next_question(next_question) puts "\n#{next_question}" answer_to_question = 0 until answer_to_question.between?(1, 3) puts 'Ваш ответ: 1 — да, 2 — иногда...
#include <cstdlib> #include <cstdio> #include <cmath> #include "..\include\FreeImage.h" #include "ImageIO.h" using namespace std; ///////////////////////////////////////////////////////////////////////////// // Deallocate the memory allocated to (*imageData) returned by // the function ReadImageFile(). //...
require 'helper' class TailExInputTest < Test::Unit::TestCase def setup Fluent::Test.setup end CONFIG = %[ tag tail_ex path test/plugin/*/%Y/%m/%Y%m%d-%H%M%S.log,test/plugin/data/log/**/*.log format /^(?<message>.*)$/ pos_file test-pos-file refresh_interval 30 ] PATHS = [ 'test/plugin/data/2010/01/2...
<filename>apps/_demo/index.js const { Keystone } = require('@keystonejs/keystone') const { PasswordAuthStrategy } = require('@keystonejs/auth-password') const { GraphQLApp } = require('@keystonejs/app-graphql') const { AdminUIApp } = require('@keystonejs/app-admin-ui') const { StaticApp } = require('@keystonejs/app-sta...
package com.waflo.cooltimediaplattform.backend.beans; import com.waflo.cooltimediaplattform.backend.model.Category; import org.springframework.stereotype.Component; import javax.faces.component.UIComponent; import javax.faces.component.UISelectItems; import javax.faces.context.FacesContext; import javax.faces.convert...
#!/usr/bin/env bash trap 'rm -rf "${WORKDIR}"' EXIT [[ -z "${WORKDIR}" || "${WORKDIR}" != "/tmp/"* || ! -d "${WORKDIR}" ]] && WORKDIR="$(mktemp -d)" [[ -z "${CURRENT_DIR}" || ! -d "${CURRENT_DIR}" ]] && CURRENT_DIR=$(pwd) # Load custom functions if type 'colorEcho' 2>/dev/null | grep -q 'function'; then : else ...
<filename>sqlalchemy_jsonapi/unittests/test_serializer_get_relationship.py """Test for serializer's get_relationship.""" from sqlalchemy_jsonapi import errors from sqlalchemy_jsonapi.unittests.utils import testcases from sqlalchemy_jsonapi.unittests import models from sqlalchemy_jsonapi import __version__ class Get...
import { Module } from '@nestjs/common'; import { AppController } from './app.controller'; import { AppService } from './app.service'; import { AuthModule } from './auth/auth.module'; import { UsersModule } from './users/users.module'; import { ReportsModule } from './reports/reports.module'; import { SignalTypesModule...
// JavaScript engine design to optimize the execution time of a program // Get a program's source code function engine(program) { // Tokenize the program into an AST const ast = tokenize(program); // Optimize the AST to reduce steps taken during execution const optimizedAst = optimize(ast); // Interpre...
#include "snmpdemo.h" namespace { const auto mib_2_OID = QString( ".1.3.6.1.2.1" ); const auto sysDescr_OID = mib_2_OID + ".1.1.0"; const auto sysUpTimeInstance_OID = mib_2_OID + ".1.3.0"; const auto sysName_OID = mib_2_OID + ".1.5.0"; const auto ifTable_OID = mib_2_OID + ".2.2"; const auto i...
printf '%s' "${DIM}" printf '%s\n' \ 'Here we are testing the actual testing tools for both success and failure ' printf '%s\n' \ 'cases. That means here you will see red error messages but those are only ' printf '%s\n' \ 'for validating the testing assertion functions by eye. As dm_tools is a ' printf '%s\n' \ ...
declare const sourceMapSupport: { install(): void }; if (typeof sourceMapSupport !== 'undefined') { sourceMapSupport.install(); } /* import { BrowserPlatform } from '@aurelia/platform-browser'; import { $setup } from './setup-shared.js'; const platform = new BrowserPlatform(window); $setup(platform); */ console.lo...
import './set-public-path' import Vue from 'vue' import App from './App.vue' import singleSpaVue from 'single-spa-vue' Vue.config.productionTip = false const vueLifecycles = singleSpaVue({ Vue, appOptions: { el: '#app3', render: (h) => h(App) } }) export const bootstrap = vueLifecycles.bootstrap export...
var cityInput = document.getElementById("city-text"); var cityForm = document.getElementById("city-form") var cityHistory = document.getElementById("city-history"); const myKey = "<KEY>"; var currentCityContainer = document.getElementById("currentContainer"); var cities = []; function renderHistory() { cityHistory...
#encoding=utf-8 from time import sleep from test.test_funs import count_words_at_url if __name__ == '__main__': from rq import Queue, use_connection from utils.worker import redis_connection use_connection(redis_connection) q = Queue("low") result = q.enqueue(count_words_at_url, "https://www.h...
/* NitroHax -- Cheat tool for the Nintendo DS Copyright (C) 2008 Michael "Chishm" Chisholm This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or ...
<reponame>Epic-Deno/UmiAdmin<filename>src/layouts/baseLayout/header/index.tsx /* * @Description: 头部组件 * @Author: Pony * @Date: 2021-08-09 21:53:03 * @LastEditors: Pony * @LastEditTime: 2021-08-09 22:54:19 */ import UserSetting from './userSetting'; export default () => { return ( <> <div ...
#!/bin/bash function saveInk() { inkscape --file=$1 --export-area-page --export-width=$3 --export-png=$2 } mypath=$(dirname $(readlink -f $0)) #declare -a res=(22 48 128) declare -a res=(48) INPUT=names.csv OLDIFS=$IFS IFS=, echo "Select theme" echo "1) black" echo "2) white" echo "3) solid black" echo "4) solid whi...
<reponame>BuildForSDG/team-177-frontend<gh_stars>0 import React, { Component } from 'react' import { Link } from 'react-router-dom' class ContactUs extends Component{ constructor(props) { super(props); this.state = {value: 'Phone number or email address' }; this.handleChange = this...
export function loadImages() { return fetch("/api/images") .then(res => res.json()) .catch(err => reject(err)); } export function loadImage(id) { return fetch("/api/images/" + id) .then(res => res.json()) .catch(err => reject(err)); }
import re def countFontFamilies(css): font_families = {} pattern = r'font-family:\s*([^;]+);' matches = re.findall(pattern, css) for match in matches: families = [f.strip().strip('"') for f in match.split(',')] for family in families: font_families[family] = font_famili...
#!/bin/bash dialog --title "Powercord Setup" --infobox "Welcome. \n\nIf this is your first time running this script, download the Powercord repo by selecting option 1 first.\n\nAfterwards, select a function by typing the number that co-relates with the specific action you want to do." 10 70;sleep 5 clear cd PS3='Powe...
<html> <head> <title>Country Flags</title> <style> table, th, td { border: 1px solid black; } </style> </head> <body> <h1>Country Flags</h1> <table> <tr> <th>Country</th> <th>Flag</th> </t...
default['sickle']['version'] = 'master' default['sickle']['install_dir'] = '/usr/local/' + 'sickle' default['sickle']['src_repo'] = 'https://github.com/najoshi/sickle' default['sickle']['bin_path'] = '/usr/local/bin'
#!/bin/bash ##Rum LMBench test suite TEST_ROOT=$(readlink -f `dirname $0`) source ${TEST_ROOT}/scripts/utility.sh #getopts while getopts hbc: arg do case $arg in b) LMBENCH_BIN_PATH=$OPTARG;; c) full_percent=$OPTARG;; h) usage; exit;; *) echo "Invalid option: $arg"; usage; exit;; esac done #verify the count...
#!/bin/sh render_templates() { pwd cd .. git clone https://github.com/bcbio/bcbio_rnaseq_output_example.git cd bcbio_rnaseq_output_example Rscript -e 'devtools::install_local("../bcbioRNASeq")' Rscript -e 'testthat::test_file("test_reports.R")' cd report mv de.html de-${TRAVIS_BRANCH}.h...
#!/bin/bash experimentName="baselines" pyName="run_pybullet.py" cd ../../$experimentName/acktr/ for i in {0..5} do ( python $pyName --env InvertedDoublePendulumBulletEnv-v0 --seed $i &> InvertedDoublePendulum_"$i".out) echo "Complete the process $i" done
export const state = () => ({ sidebar: false, nsfw: false, user: false, extended: false, username: null, token: null, show: false }) export const mutations = { show (state, show) { state.show = show }, toggleSidebar (state) { state.sidebar = !state.sidebar }, toggleNsfw (state) { s...
<reponame>atharrison/ruby-adventofcode2019 class Day01 def initialize @data = Array.new end def load f = File.open("data/day01/day01_input.txt") while line = f.gets do if line != nil @data << line.to_i end end end def run_part1 total = 0 for d in @data do ...
#! python3 # getOpenWeather.py - Prints the weather for a location from the command line. # https://openweathermap.org/current APPID = 'Replace me with your APPID' import json, requests, sys from pprint import pprint from datetime import datetime, timedelta # Compute location from command line arguments. if len(sys.a...
#!/bin/bash set -e set -x git config --global user.email "alice+travis@gothcandy.com" git config --global user.name "Travis: Marrow" pip install --upgrade setuptools pytest pip install tox pip install python-coveralls pip install pytest-cov pip install pytest-flakes
#python code/nbt_768.py woz config/woz_stat_update_bert.cfg python -m pudb code/nbt_768.py woz config/woz_stat_update_bert.cfg
<reponame>tpetillon/roofmapper-client 'use strict'; var $ = require('expose?$!expose?jQuery!jquery'); var L = require('leaflet'); var keyboardJS = require('keyboardjs'); var defined = require('./defined'); var OsmApi = require('./osmapi.js'); var Session = require('./session.js'); var Building = require('./building.js...
/* * Copyright 2014-2014 <NAME> * * 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, Versio...
use std::collections::HashSet; use std::fs; use std::path::Path; fn find_unique_file_extensions(directory_path: &str) -> HashSet<String> { let mut extensions = HashSet::new(); if let Ok(entries) = fs::read_dir(directory_path) { for entry in entries { if let Ok(entry) = entry { ...
#!/bin/bash # UPDATE THE WEBROOT IF REQUIRED. if [[ ! -z "${WEBROOT}" ]] && [[ ! -z "${WEBROOT_PUBLIC}" ]]; then sed -i "s#root /var/www/public;#root ${WEBROOT_PUBLIC};#g" /etc/nginx/sites-available/default.conf else export WEBROOT=/var/www export WEBROOT_PUBLIC=/var/www/public fi # UPDATE COMPOSER PACKAG...
<reponame>Fabidione/FabienneDione_6_20072021 const mongoose = require('mongoose'); const uniqueValidator = require('mongoose-unique-validator'); const sanitizerPlugin = require('mongoose-sanitizer-plugin'); const validator = require('validator'); const userSchema = mongoose.Schema({ email: { type: String, requ...
package cn.stylefeng.roses.kernel.scanner.api.util; import cn.hutool.core.util.IdUtil; import cn.hutool.core.util.StrUtil; import cn.stylefeng.roses.kernel.scanner.api.context.MetadataContext; import cn.stylefeng.roses.kernel.scanner.api.enums.FieldMetadataTypeEnum; import cn.stylefeng.roses.kernel.scanner.api.enums.F...
#!/bin/bash # Copyright 2015 The Bazel Authors. 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 a...
package io.swagger.api; import java.io.IOException; import java.security.NoSuchAlgorithmException; import java.time.OffsetDateTime; import javax.servlet.http.HttpServletRequest; import javax.validation.Valid; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMa...