text stringlengths 1 1.05M |
|---|
<reponame>nabeelkhan/Oracle-DBA-Life<gh_stars>0
select thread#,
to_char(first_time,'DD-MON-YYYY') creation_date,
to_char(first_time,'HH24:MI') time,
sequence#,
first_change# lowest_SCN_in_log,
next_change# highest_SCN_in_log,
recid controlfile_record_id,
sta... |
The sum of squares of all the elements in the given array is 29 (2^2 + 3^2 + 4^2 = 4 + 9 + 16). |
#!/bin/bash
yaourt -Syua --devel |
'use strict';
const CoinstacClientCore = require('coinstac-client-core');
const { merge } = require('lodash');
const parseCLIInput = require('./parse-cli-input.js');
module.exports = function configureCore(
config, logger, userId, appDirectory, clientServerURL, token
) {
const coreConfiguration = merge(
JSON.... |
package malte0811.controlengineering.util.energy;
import net.minecraftforge.energy.IEnergyStorage;
public class ExtractOnlyEnergyWrapper implements IEnergyStorage {
private final IEnergyStorage wrapped;
public ExtractOnlyEnergyWrapper(IEnergyStorage wrapped) {
this.wrapped = wrapped;
}
@Over... |
<form method="POST" action="capture_user_details.php">
<label for="name">Name</label>
<input type="text" name="name" id="name" required>
<label for="email">Email</label>
<input type="email" name="email" id="email" required>
<label for="address">Address</label>
<input type="text" name="address"... |
<reponame>iao/RajawaliCardboard
package org.rajawali3d.util.debugvisualizer;
import org.rajawali3d.Object3D;
import org.rajawali3d.renderer.RajawaliRenderer;
/**
* @author dennis.ippel
*/
public class DebugVisualizer extends Object3D {
private RajawaliRenderer mRenderer;
public DebugVisualizer(RajawaliRend... |
use std::io;
use std::error::Error;
use std::fmt;
// Define a custom error type
#[derive(Debug)]
struct BuiltinError {
message: String,
source: Option<Box<dyn Error>>,
}
impl fmt::Display for BuiltinError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "BuiltinError: {}", self.m... |
#!/bin/bash
# Copyright 2021 Huawei Technologies 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 ... |
package com.sweetkrista.redstonesensor;
import com.sweetkrista.redstonesensor.handler.ConfigurationHelper;
import com.sweetkrista.redstonesensor.init.ModBlocks;
import com.sweetkrista.redstonesensor.init.ModItems;
import com.sweetkrista.redstonesensor.init.Recipes;
import com.sweetkrista.redstonesensor.proxy.IProxy;
i... |
#!/bin/sh
set -ex
rm -rf autom4te.cache Makefile.in aclocal.m4
aclocal --force
# GNU libtool is named differently on some systems. This code tries several
# variants like glibtoolize (MacOSX) and libtoolize1x (FreeBSD)
set +ex
echo "Looking for a version of libtoolize (which can have different names)..."
libtoolize... |
import numpy as np
class Transformation:
def __init__(self, r):
self.r = r
def apply_transformation(self, l):
"""
Apply a transformation function to each element of the array self.r based on the given condition.
Args:
l: float, the threshold value for the transformatio... |
<reponame>JetBrains/TeamCity.PowerShell
/*
* Copyright 2000-2022 JetBrains s.r.o.
*
* 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
... |
/**
* Regular functions and definitions
*/
( function() {
if ( typeof svg4everybody === 'function' ) {
svg4everybody();
}
if ( typeof particlesJS === 'function' ) {
particlesJS( 'sbanner-particles', {
"particles": {
"number": {
"value": 80,
... |
.heading {
font-family: 'Lato', sans-serif;
font-weight: bold;
font-size: 18px;
} |
def words_start_with_a(words):
a_words = []
for word in words:
if word[0] == "a":
a_words.append(word)
return a_words |
import database_module
class DatabaseSession:
def __init__(self, db_url):
self.db_url = db_url
self.session = None
def __enter__(self):
self.session = database_module.connect(self.db_url)
return self.session
def __exit__(self, exc_type, exc_value, traceback):
if se... |
#ifndef INCLUDED_CORE_ACTOR_EVENT_H
#define INCLUDED_CORE_ACTOR_EVENT_H
#include "actor.h"
#include "opt.h"
struct ActorEvent : public Event
{
enum State
{
Added = 0,
Died,
Removed
};
Opt<Actor> mActor;
State mState;
ActorEvent( Opt<Actor> actor, State state ): mActor( a... |
#!/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. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "Li... |
require 'omniauth-oauth2'
require 'base64'
module OmniAuth
module Strategies
class Bnet < OmniAuth::Strategies::OAuth2
option :region, 'us'
option :client_options, {
:scope => 'wow.profile sc2.profile'
}
def client
# Setup urls based on region option
if !options.c... |
<reponame>anotaai/anotaai
package br.com.alinesolutions.anotaai.model.produto;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.v... |
var searchData=
[
['game',['Game',['../class_game.html',1,'']]],
['gamerunning',['gameRunning',['../class_game.html#a7054ffca77182d85a716bc8dd26e4d0f',1,'Game']]],
['getcardid',['getCardId',['../class_card_interface.html#acf6e4d125e8a7a5a0f57fe8e189f6dfe',1,'CardInterface::getCardId()'],['../class_game.html#a7c6b... |
<gh_stars>10-100
package age.calculator.homepage;
import com.jfoenix.controls.JFXDatePicker;
import com.jfoenix.controls.JFXDialog;
import java.io.IOException;
import java.net.URL;
import java.time.LocalDate;
import java.time.Period;
import java.util.ResourceBundle;
import javafx.event.ActionEvent;
import javafx.event... |
#ifndef INCLUDED_MAP_EDITOR_RENDERABLE_LAYER_SYSTEM_H
#define INCLUDED_MAP_EDITOR_RENDERABLE_LAYER_SYSTEM_H
#include "core/scene.h"
#include "engine/system.h"
#include "editor_mode_changed_event.h"
#include "editor_back_event.h"
#include "level_generator/room_desc.h"
#include "input/mouse.h"
namespace map {
class Ed... |
#! /bin/bash
mkdir build
cd build
cmake ..
make
# install python package
cd python-package
if command -v python2; then
sudo python2 setup.py install
fi
|
#pragma once
#ifndef __MSC_VER
#include <cmath>
#endif
#include "HyperionMath/Trig.h"
#include "TestConstants.h"
#include "gtest/gtest.h"
namespace hyperion::math::test {
using test::DOUBLE_ACCEPTED_ERROR;
TEST(TrigFuncsTestDouble, cosCase1) {
double input = Constants<double>::pi;
ASSERT_NEAR(... |
<filename>huatuo/src/main/java/com/huatuo/net/thread/WangJiMiMaInvokeItem.java
package com.huatuo.net.thread;
import org.json.JSONObject;
import com.huatuo.base.MyApplication;
import com.huatuo.dictionary.MsgId;
import com.huatuo.net.http.ActionResponse;
import com.huatuo.net.http.HttpAgent;
import com.huatuo.util.Da... |
<gh_stars>0
import { ChangeEvent, FC } from "react";
import { Flex, Input } from "@linkto/gamut";
import { Theme, CSSstring, ctl } from "@linkto/core";
export interface ThemeCardProps extends Theme {
userCurrentTheme: string;
onThemeChange(event: ChangeEvent<HTMLInputElement>): void;
disableSelect?: boolean;
}
... |
#!/bin/bash
# mountIMG.sh
# mount an img file for analysis
# Last Edited: 6/21/18 Julian Thies
# check if we have the privs we need
if [ "$(whoami)" != "root" ] ; then
echo "Script must be run as root or with sudo privileges"
exit
fi
# check if anything was passed in to the script
if [ -z "$1" ] ; then
echo "No I... |
#!/bin/sh
set -e
mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt
> "$RESOURCES_TO_COPY"
install_resource()
{
case $1 in
*.storyboard)
echo "ibtool --reference-external-strings-file --errors --warnings --notices ... |
/**
* This package has all the custom exceptions this CTag library throws in it's
* encode or decode process.
*/
package ctag.exception; |
<reponame>eugeneware/kindle-clippings
var split = require('split2'),
stream = require('stream'),
combine = require('stream-combiner');
module.exports = parseKindle;
function parseKindle() {
return combine(
split(/==========\r\n/),
parseClipping()
);
}
function parseClipping() {
var ts = stream.T... |
/*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
*
* 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 o... |
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
import { emptyPaginationInfo, PaginationInfo } from '@price-depo-ui/data-handling';
import * as _ from 'lodash';
@Component( {
selector: 'pd-paginator',
templateUrl: './paginator.component.html',
styleUrls: [ './pagi... |
#!/bin/bash
sudo yes | sudo yum install python3-devel
sudo python3 -m pip install --upgrade pip
wget https://download-ib01.fedoraproject.org/pub/epel/7/aarch64/Packages/g/geos-3.4.2-2.el7.aarch64.rpm
sudo yum -y localinstall geos-3.4.2-2.el7.aarch64.rpm
sudo python3 -m pip install \
numpy==1.19.1 \
pyspark==... |
<gh_stars>0
package config
const (
// DbUser db user
DbUser = "clean_architecture_go_version"
// DbPassword db password
DbPassword = "<PASSWORD>"
// DbDatabase database name
DbDatabase = "clean_architecture_go_version"
// DbHost database host
DbHost = "127.0.0.1"
// APIPort API port number
APIPort = 8080
)
|
#!/bin/bash
cd /app
rm -f /app/lambda/lambda.zip
mkdir /app/tmp
python3 -m pip install -r /app/lambda/requirements.txt -t /app/tmp --upgrade
cp -r /app/lambda/* /app/tmp
zip -r9 /app/lambda/lambda.zip /app/tmp/*
rm -rf /app/tmp
|
function hasUniqueChars(str)
{
// Store occurrence of each character
let ctr = Array(256).fill(0);
for (let i = 0; i < str.length; i++) {
var index = str.charCodeAt(i);
// If character already occurred
if (ctr[index] > 0)
return false;
// Otherwise increment the counter
ctr[... |
$(function () {
// let cidadeId = $('#cidadeId').val();
// let cidadeCobrancaId = $('#cidadeCobrancaId').val();
// getCidades(function(data){
// $('input.autocomplete-cidade').autocomplete({
// data: data,
// limit: 20,
// onAutocomplete: function(val) {
// var cliente = $('#autocomple... |
import request from '@/utils/axios/request';
import { CategoryVO, ArticleCategoryVO } from '@/api/model/client/category';
enum Api {
category = '/article/list/category',
getById = '/article/category/'
}
export function getCategoryList(){
return request.get<CategoryVO[]>({
url: Api.category,
});
}
export fun... |
package eu.flatworld.android.sdoviewer.data;
import android.util.Log;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.GregorianCalendar;
impor... |
<reponame>zephray/Dramite
/*
* Copyright (C) 2016 <NAME>
*
* This file is part of IBMulator.
*
* IBMulator 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
* (at you... |
import pulsar as psr
def load_ref_system():
""" Returns d-ribulose as found in the IQMol fragment library.
All credit to https://github.com/nutjunkie/IQmol
"""
return psr.make_system("""
C 1.1956 0.1844 -0.0196
C 2.4819 -0.6696 -0.1242
C -0.0269... |
<reponame>ckendall/clonebook
class CreateFriendRequests < ActiveRecord::Migration
def change
create_table :friend_requests do |t|
t.integer :user_id
t.integer :friend_id
t.timestamps null: false
end
end
end
|
<filename>a_vuemall/src/utils/http.js
import axios from 'axios';
import QS from 'qs';
import Cookie from '../utils/cookie';
axios.interceptors.request.use((configure) => {
if (configure.method === 'post') {
configure.data = QS.stringify(configure.data);
let user = Cookie.getCookie('token');
... |
<reponame>bugtlp/backend-boilerplate<filename>src/db/interfaces/query-builder.interface.ts
import * as Knex from 'knex';
export type QueryBuilder = Knex.QueryBuilder;
|
#!/bin/bash -e
sudo -E docker build -t $1 --build-arg http_proxy --build-arg https_proxy -f $1/Dockerfile .
|
import logging
from abc import abstractmethod
from .gee import get_info
from sepal.ee.image import convert
import ee
class ImageSpec(object):
def __init__(self):
super(ImageSpec, self).__init__()
self.pyramiding_policy = None
def preview(self):
"""Creates Google Earth Engine mapId/to... |
#!/bin/bash
set -o nounset
set -o errexit
cd "$(dirname "$0")"
rm -rf $PWD/../data/
mkdir -p $PWD/../data/
git clone --depth 1 https://github.com/trikset/trik-desktop-gamepad.git $PWD/../data/gamepad-build
cd $PWD/../data/gamepad-build
git submodule update --init
cd $PWD/../../meta
|
export default function(data){
return Object.keys(data).map(key=>{
return{
id:key,
...data[key]
}
})
} |
<filename>tests/gui/steps/generic/copy_paste.py
"""Common steps using copy or paste text
"""
from pytest_bdd import when, then, parsers
from tests.gui.utils.generic import parse_seq
__author__ = "<NAME>"
__copyright__ = "Copyright (C) 2017 ACK CYFRONET AGH"
__license__ = "This software is released under the MIT lic... |
# Import necessary libraries
import pandas as pd
import pyautogui as pyAuto
# Load the dataset
data = pd.read_csv('dataset.csv')
# Automate the report generation process
pyAuto.hotkey('win','R')
pyAuto.typewrite('notepad.exe')
pyAuto.press('enter')
pyAuto.typewrite(data)
pyAuto.hotkey('Control', 's')
pyAuto.typewrite... |
<gh_stars>10-100
package info.u250.c2d.box2d.model;
import java.util.ArrayList;
import java.util.List;
/**
* An exmaple that how to render the model
* <pre>
* void setup(b2Scene model,Stage stage){
* for(b2BodyDefModel body:model.bodyDefModels){
* DefaultBuilder.buildBody(world, body);
* ... |
<gh_stars>0
import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
import {UtilsServiceService} from "../../../utils-service.service";
import {DatePipe} from "@angular/common";
@Component({
selector: 'ngx-edit-facture',
templateUrl: './edit-facture.component.html',
styleUrls: ['./edit-fact... |
from drltools.utils import dqn_config, trainer
from drltools.agent import DQNAgent
from unityagents import UnityEnvironment
env = UnityEnvironment(file_name="unity_environments/Banana_mac.app", worker_id=1)
config = dqn_config
agent_class = DQNAgent
n_episodes = 2000
max_t = 1000
solved_score = 13
title = 'DQN'
if __... |
import java.util.ArrayList;
public class Board {
char [][] grid = new char [3][3];
int score;
public char[][] get(){
return grid;
}
Board (){
for (int i=0;i<3;i++) {
for (int j=0;j<3;j++) {
this.grid[i][j]='-';
}
}
}
public Boolean move (int x , int y ,char a) {
char [][] q =get();
if... |
<reponame>bcgov/EDUC-GRAD-TEST-AUTOMATION
package ca.bc.gov.educ.gtts.services;
import org.javers.core.diff.Diff;
/**
* A reporting tool for creating detailed reports based on various data inputs
*/
public interface ReportService {
/**
* Reports differences based on a Diff object
* @param ref an opti... |
#! /bin/bash
#SBATCH -o /home/martin/workspace/sweet/benchmarks/rexi_tests_lrz_freq_waves/2015_12_27_scalability_rexi_spec/run_rexi_m008192_t001_n0128_r0014_a1.txt
###SBATCH -e /home/martin/workspace/sweet/benchmarks/rexi_tests_lrz_freq_waves/2015_12_27_scalability_rexi_spec/run_rexi_m008192_t001_n0128_r0014_a1.err
#S... |
<filename>src/main/java/frc/robot/auto/commands/shooter/ShootCommand.java
package frc.robot.auto.commands.shooter;
import edu.wpi.first.wpilibj.Timer;
import frc.robot.auto.Command;
public class ShootCommand extends Command {
private double topWheelSpeed;
private double bottomWheelSpeed;
private double d... |
#!/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"); y... |
#!/bin/bash
set -eu
if [ ! -f $SNAP_COMMON/server.properties ]; then
echo "configuration file $SNAP_COMMON/server.properties does not exist."
exit 1
fi
# Use custom log4j properties if found
if [ -f $SNAP_COMMON/log4j.properties ]; then
export KAFKA_LOG4J_OPTS="-Dlog4j.configuration=file:$SNAP_COMMON/log4j.proper... |
# This example scans for any BLE advertisements and prints one advertisement and one scan response
# from every device found. This scan is more detailed than the simple test because it includes
# specialty advertising types.
from adafruit_ble import BLERadio
from adafruit_ble.advertising import Advertisement
from ada... |
<reponame>interchained/webnero-ui<filename>js/settings.js
$(function() {
$('#side-menu').metisMenu();
});
$(document).ready(function(){
});
$(document).on("change", "input[type='checkbox']", function(){
hideAlert("success");
hideAlert("danger");
if(this.checked)
$("#confirm-msg").text($(t... |
<filename>jena-3.0.1/jena-sdb/src/main/java/org/apache/jena/sdb/store/StoreBaseHSQL.java<gh_stars>0
/*
* 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. ... |
<gh_stars>0
import React from 'react';
import Icon from 'react-native-vector-icons/Feather';
import { Container } from './styles';
export default function BackButton() {
return (
<Container>
<Icon name="arrow-back" size={18} color={'#7159c1'} />
</Container>
);
}
|
#!/usr/bin/env bash
# Recursively list all files in this Git checkout, including files in
# submodules.
set -euo pipefail
submodules=($(git submodule foreach --quiet 'echo $path'))
# IMPORTANT: This script must never output a bare directory. That is, given a
# directory tree with files a/1 and a/2, this script must... |
. pdf-mydoc.sh;
|
#!/bin/sh
# Build Hugo Project
echo "🔨 Building Hugo Site"
## Hugo Options used for building the site
# -d dist directory
# -gc run some cleanup tasks (remove unused cache files) after the build
# --minify minify the output
# --cleanDestinationDir re... |
package com.jinke.kanbox;
import java.io.File;
import java.io.IOException;
import java.text.DateFormat;
import java.util.Date;
import java.util.List;
import com.jinke.calligraphy.activity.DownloadProgressActivity;
import com.jinke.calligraphy.app.branch.Start;
import com.jinke.calligraphy.database.CDBPersistent;
imp... |
#!/bin/bash
# default sbatch FT2
#SBATCH --output=irc-%j.log
#SBATCH --time=04:00:00
# partition selection
#_remove_this_in_ft_SBATCH -p shared --qos=shared
#SBATCH -c 1 --mem-per-cpu=2048
#SBATCH -n 8
# SBATCH --partition=cola-corta,thinnodes
# SBATCH -c 1
# SBATCH -n 24
#exe=$(basename $0)
# under batchs systems... |
<gh_stars>1-10
""" Render pipeline """
# pylint: disable=line-too-long
import logging
from typing import Any, Dict, List
import pydot
from .models import KEGGPathway
from .resolver import KEGGPathwayResolver
from .utils import ColorGradient
class KEGGPathwayRenderer:
"""
Renderer for KEGG Pathwa... |
while true; do
python3 ./generate.py > random.in
A=$(./a.out < random.in)
B=$(./b.out < random.in)
if [ "$A" != "$B" ]; then
echo "----------------------------------------"
echo "Wrong Answer"
echo "[test case] "
cat random.in
echo "[./a.out] "
echo "$A"
... |
import torch
import torch.nn
import torch.nn.functional as nn
import torch.autograd as autograd
import torch.optim as optim
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
import os
from torch.autograd import Variable
from tensorflow.examples.tutorials.mnist import in... |
<filename>z3/context_test.go
// Copyright 2017 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.
package z3
import (
"fmt"
"regexp"
"testing"
)
func expectPanic(t *testing.T, pattern string, f func()) {
re, err := regexp.C... |
#!/bin/bash
source .env
source $ENV_INIT_SCRIPT_PATH/env_init.sh
# Swarm Viewer Manomarks/visualizer
echo "Starting Swarm Viewer Ui.."
SERVICE_COMMAND="docker service create \
--name="$SWARM_VIEWER_UI_SERVICE_NAME" \
--publish="$VISUALIZER_PORT":8080/tcp \
--constraint=node.role==manager \
--mount=type=bind,src... |
<filename>examples/ServiceContainer/index.js
import { MessageBus, ServiceBus } from '../../src';
import CalculatorContainer from './Calculator';
import assert from 'assert';
const messageBus = new MessageBus();
const serviceBus = new ServiceBus();
serviceBus.connect(messageBus);
serviceBus.register('calculator', new ... |
import React from 'react';
const LoadingIndicator = props => (
<div>
{ props.loading &&
<div>
<h1>Loading...</h1>
</div>
}
</div>
);
export default LoadingIndicator; |
#!/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.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "Licen... |
#!/bin/sh
# File is auto-generated by cmake compilation, do not edit.
# Map the NuttX-style variable definition 'set <var> <value>' to something that
# bash and alternatives understand
# define _set first because sh (POSIX shell) does not like overwriting set directly
_set() {
eval $1=$2
}
alias set=_set
# alternati... |
<filename>app/src/main/java/com/lewy/videoutil/managers/YouTubeTitleManager.java<gh_stars>0
package com.lewy.videoutil.managers;
import android.os.AsyncTask;
import com.lewy.videoutil.interfaces.YouTubeTitleCallback;
import org.apache.commons.io.IOUtils;
import org.json.JSONObject;
import java.net.URL;
/**
* Crea... |
<gh_stars>0
import store from "store";
import {ActionFactory} from "store/action";
import {DotButton} from "components/DotButton";
import "./RemoveVoteButton.scss";
import classNames from "classnames";
import {VoteClientModel} from "types/vote";
import {FC} from "react";
type RemoveVoteProps = {
noteId: string;
ac... |
python main.py -le=1 -r=50 -nd=0 --verbose=0 --model='MLP' --run=1
python main.py -le=1 -r=50 -nd=1 --verbose=0 --model='MLP' --run=1
python main.py -le=1 -r=50 -nd=2 --verbose=0 --model='MLP' --run=1
python main.py -le=1 -r=50 -nd=3 --verbose=0 --model='MLP' --run=1
python main.py -le=1 -r=50 -nd=4 --verbose=0 --model... |
#!/bin/bash
PROG_PATH=${BASH_SOURCE[0]} # this script's name
PROG_NAME=${PROG_PATH##*/} # basename of script (strip path)
PROG_DIR="$(cd "$(dirname "${PROG_PATH:-$PWD}")" 2>/dev/null 1>&2 && pwd)"
APP_DIR="$(cd "${PROG_DIR}/.." 2>/dev/null 1>&2 && pwd)"
declare GIT_USERNAME=admin
declare GIT_PASSWORD=
arg... |
<reponame>codefoxut/la-casa-de-papel
package main
import (
"fmt"
"math"
"sort"
)
func minArray(a []int) int {
minValue := int(math.MaxInt32)
for _, x := range a {
if minValue > x {
minValue = x
}
}
return minValue
}
func coinChange1(coins []int, amount int) int {
sort.Ints(coins)
if amount < 0 {
re... |
<reponame>boger7788/boger-weather
package com.bogerweather.app.util;
/**
* Created by Administrator on 2015/10/5.
*/
public interface HttpCallbackListener {
void onFinish(String response);
void onError(Exception e);
}
|
import java.util.HashMap;
public class BankingSystem {
private HashMap<Integer, BankAccount> accounts;
private int accountCounter;
public BankingSystem() {
accounts = new HashMap<>();
accountCounter = 1;
}
public void createAccount(String name, double initialBalance) {
Ban... |
# shellcheck shell=bash
# toolbelt.sh
# https://github.com/TobyGiacometti/toolbelt.sh
# Copyright (c) 2021 Toby Giacometti and contributors
# Apache License 2.0
#---
# @stdout ID composed of alphanumeric characters and `_` that uniquely identifies
# the backup on the device.
public__print_id() { :; }
#---
# ... |
import org.junit.*;
import play.test.*;
import play.Application;
import play.mvc.*;
import static play.test.Helpers.*;
import static org.junit.Assert.*;
import play.db.jpa.*;
import java.util.List;
import models.*;
import org.dbunit.*;
import org.dbunit.dataset.*;
import org.dbunit.dataset.xml.*;
import java.util.HashM... |
#!/bin/sh
# Copyright (c) 2014-2015 The Syndicate Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
set -e
UNSIGNED="$1"
SIGNATURE="$2"
ARCH=x86_64
ROOTDIR=dist
TEMPDIR=signed.temp
OUTDIR=signed-app
if [ -z "$UNSIG... |
package auth
import (
"fmt"
"github.com/MakeNowJust/heredoc"
"github.com/spf13/cobra"
)
type AlibabaCloudOptions struct {
AccessKey string
AccessSecret string
}
func NewAlibabaCloudAuthCmd() *cobra.Command{
cmd := &cobra.Command{
Use: "aliyun",
Short: "Login, logout, and refresh your authentication",
Lo... |
def on_cancel(self, button):
# Stop the spinner animation
self.spinner.stop()
# Enable the specified buttons for user interaction
self.friend_info.set_sensitive(True)
self.save_bt.set_sensitive(True)
self.close_bt.set_sensitive(True)
self.generate_keys_bt.set_sensitive(True)
self.co... |
#!/bin/bash
set -eo pipefail
# converted from: ../cloudbiolinux/ggd-recipes/hg19/platinum-genome-NA12878.yaml
mkdir -p $PREFIX/share/ggd/Homo_sapiens/hg19/ && cd $PREFIX/share/ggd/Homo_sapiens/hg19/
dir=validation/platinum-genome-NA12878
mkdir -p $dir
wget --quiet --no-check-certificate -c -O $dir/truth_small_varian... |
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, ViewChild, NgModule } from '@angular/core';
import { __awaiter, __generator, __spread, __extends, __values } from 'tslib';
import { BrowserMultiFormatRe... |
TERMUX_PKG_HOMEPAGE=https://rgbds.gbdev.io
TERMUX_PKG_DESCRIPTION="Rednex Game Boy Development System - An assembly toolchain for the Nintendo Game Boy & Game Boy Color"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_VERSION=0.4.2
TERMUX_PKG_SRCURL=https://github.com/gbdev/rgbds/releases/download/v${TERMUX_PKG_VERSION}/rgbds-${TE... |
#!/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");... |
#!/usr/bin/env bash
echo key=$KEY
echo $PWD
if [ -n "$IROHA_POSTGRES_HOST" ]; then
echo "NOTE: IROHA_POSTGRES_HOST should match 'host' option in config file"
PG_PORT=${IROHA_POSTGRES_PORT:-5432}
/wait-for-it.sh -h $IROHA_POSTGRES_HOST -p $PG_PORT -t 30 -- true
else
echo "WARNING: IROHA_POSTGRES_HOST is not def... |
#!/bin/bash
## "nodes" file should not include the last receiving node
### NOTE: after setting the vlan, need to use vlan ip for hostname in "nodes"
ib_write_bw=/proj/rsc-PG0/yiwen/frdma/perftest-4.2/ib_write_bw
ib_write_lat=/proj/rsc-PG0/yiwen/frdma/perftest-4.2/ib_write_lat
out_dir=/tmp
ip_dst=10.10.1.10
receiver=10.... |
using System;
public class TransactionRecord
{
/// <summary>
/// 日期
/// </summary>
public DateTime RecordDate { get; set; }
/// <summary>
/// 类别名称
/// </summary>
public string CategoryName { get; set; }
/// <summary>
/// Returns a formatted string representation of the transac... |
// Copyright © 2019 The Things Network Foundation, The Things Industries B.V.
//
// 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
//
// Un... |
<filename>src/app/contact/contact-array-input/contact-array-input.component.ts
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { FormArray, FormControl } from '@angular/forms';
@Component({
selector: 'app-contact-array-input',
templateUrl: './contact-array-input.component.htm... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.