text stringlengths 1 1.05M |
|---|
#!/bin/sh
make -C /Users/michaelli/Documents/sdc/t2/p2/CarND-Unscented-Kalman-Filter-Project/ide_profiles/xcode -f /Users/michaelli/Documents/sdc/t2/p2/CarND-Unscented-Kalman-Filter-Project/ide_profiles/xcode/CMakeScripts/ZERO_CHECK_cmakeRulesBuildPhase.make$CONFIGURATION all
|
<reponame>shaunakpp/voices-of-consent
require 'rails_helper'
RSpec.describe "locations/index", type: :view do
before(:each) do
assign(:locations, [
Location.create!(
:name => "Name",
:street_address => "Street Address",
:city => "City",
:state => "State",
:zip => "Zi... |
<reponame>smagill/opensphere-desktop<gh_stars>10-100
package io.opensphere.core.animation.impl;
import java.util.Arrays;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import org.junit.Assert;
import org.junit.Test;
import io.opensphere.core.animation.AnimationPlan;
import io.... |
#Load required packages
library("caret")
#Load dataset
data <- read.csv("data.csv")
#Define training control
train_control <- trainControl(method="cv", number=10)
#Build the model
model <- train(target ~., data=data, method="glm",
trControl=train_control, family="binomial")
#Print the model
print(mod... |
function maxOfThree(a, b, c) {
let max = Math.max(a, b, c);
return max;
} |
xcrun stapler staple "Effekseer.dmg" |
#!/bin/bash
xsp --port 8088 --applications /MainsoftWebApp:./ --nonstop & |
#!/usr/bin/env bash
#
# This script installs a go project.
# The project also contains a checklist to adapt it to your need.
# Launch the script a second time to delete unnecessary files.
#
# This script should be called updated, please read it before you launch it !
# $ curl -sSL github.com/bytemare/gotemplate/ ... |
<filename>tests/ext/plugins/Patcher Test/index.js
module.exports = (Plugin, Api, Vendor) => {
const { Logger, ReactComponents, Patcher, monkeyPatch } = Api;
return class extends Plugin {
onStart() {
this.patchMessage();
return true;
}
async patchMessage() {
... |
'use strict';
var util = require('../util/util');
var Evented = require('../util/evented');
var Source = require('./source');
var normalizeURL = require('../util/mapbox').normalizeTileURL;
module.exports = VectorTileSource;
function VectorTileSource(options) {
util.extend(this, util.pick(options, ['url', 'tileSi... |
const BaseEmbed = require("../../modules/BaseEmbed");
const { getGuildById, parseMessage } = require("../../utils/functions");
module.exports = {
name: "guildMemberAdd",
async execute(bot, member) {
if (!member.guild.me.hasPermission("MANAGE_WEBHOOKS")) return;
const guild = await getGuildById(member.guil... |
<filename>db/migrate/20170204005149_move_user_website_to_profile_link_site.rb
class MoveUserWebsiteToProfileLinkSite < ActiveRecord::Migration
def change
User.where.not(website: nil).find_each do |user|
ProfileLink.create(
url: user.website.split(' ').first,
profile_link_site_id: 29,
... |
<filename>src/lib/wifi_telemetry_source_wpa.cxx
#include <iostream>
#include <sstream>
#include <stdexcept>
#include "wifi-telemetry/wifi/wifi_80211_format_mac.hpp"
#include "wifi-telemetry/wifi_telemetry_source_wpa.hpp"
#include "wifi-telemetry/wpa/wpa_commands.hpp"
#include "wifi_telemetry_trace_dpp.hpp"
#include "... |
<gh_stars>0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @File : api.py
# @Author : cgDeepLearn
# @Create Date : 2020/11/16-3:40 下午
import datetime
import random
class TestApi(object):
def __init__(self, req_data):
self.req_data = req_data
def process(self):
"""
处理返回
"""
... |
<gh_stars>1-10
exports.User = require('./user.model'); |
<filename>src/org/hadatac/hasneto/loader/MetadataContext.java
package org.hadatac.hasneto.loader;
import java.util.Map;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.StringReader;
import java.io.StringWriter;
import java.io.Unsup... |
def dump_person(person, rel_map, member_cache, dumped_people, person_file)
p_id = person.id.to_s
if !person.authority_member.blank?
if !dumped_people.include?(p_id)
dumped_people << p_id
auth_member = person.authority_member
mem_ids = person.members.map(&:hbx_member_id)
json_data = {
... |
<gh_stars>0
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { datafeedsProvider } from './datafeeds';
import { jobsPro... |
#!/bin/bash
echo "angry"
time ./svm_learn_directory.sh ../Data/Tweet-New-Data/06-24/Obamney-Labeled-Polarities/angry.mat/part-00000 ../Data/Twitter/Processed/Polarity ../Data/Twitter/Learned_Labels/matlab_out_angry
echo "happy"
time ./svm_learn_directory.sh ../Data/Tweet-New-Data/06-24/Obamney-Labeled-Polarities/happ... |
#!/bin/bash
echo ============================================================================
echo Deploying fabric8 website
echo ============================================================================
cd website && \
npm install -g gitbook-cli && \
npm install && \
mvn clean && \
mkdir -p target && \
cd target ... |
<gh_stars>0
import React from 'react'
import * as DC from '../Constants'
function changesCell(CNodeId, sessionId, changeItem) {
return <li key={"ci" + sessionId + '_' + CNodeId.toString() + "_" + changeItem.type}>
<span><b>{changeItem.type}</b>
{(changeItem.label !== '') ? ': ' : ''}<font color="#d... |
/*
*
*/
package net.community.chest.ui.helpers.label;
import net.community.chest.awt.CursorTypeValueStringInstantiator;
import net.community.chest.convert.ValueStringInstantiator;
import net.community.chest.swing.component.label.JLabelReflectiveProxy;
/**
* <P>Copyright 2008 as per GPLv2</P>
*
* @param <H> The r... |
package org.synaptra.mlib;
public class BootstrapAggregation {
}
|
package net.sansa_stack.query.spark.ontop
import java.nio.file.{Files, Path}
import com.twitter.chill.{KryoBase, KryoPool, ScalaKryoInstantiator}
import net.sansa_stack.rdf.common.partition.core.RdfPartitionStateDefault
/**
* @author <NAME>
*/
object PartitionSerDe {
val kryo: KryoBase = {
val instantiato... |
#!/usr/bin/env bash
#
# Copyright (c) 2019-2020 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
export LC_ALL=C.UTF-8
# The root dir.
# The ci system copies this folder.
# This is where the depends bui... |
package main
import "testing"
func TestServe(t *testing.T) {
want := "<NAME>"
if got := Serve(); got != want {
t.Errorf("Hello() = %q, want %q", got, want)
}
}
|
def merge(list1, list2):
mergedList = []
i = 0
j = 0
while i < len(list1) and j < len(list2):
if list1[i] < list2[j]:
mergedList.append(list1[i])
i += 1
else:
mergedList.append(list2[j])
j += 1
mergedList += list1[i:]
... |
#!/usr/bin/env bash
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
for file in vimrc zshrc tmux.conf; do
ln -s "${BASEDIR}/$file" ~/.$file
done
ln -s "${BASEDIR}/vscode/keybindings.json" ~/.config/Code/User/keybindings.json
ln -s "${BASEDIR}/vscode... |
<reponame>nehararora/dotdotdot
# -*- coding: utf-8 -*-
"""
config: Load application configuration and return an object representation.
Allows accessing configuration using "dot-notation" for supported configuration
file formats.
Supported formats are:
* yml
* TODO: ini
* TODO: json
"""
import yaml
# from enum... |
#!/bin/bash
cd ../../
if [ "$1" == "--clean" ]
then
echo "Running clean..."
flutter clean
else
echo "Skipping clean..."
fi
if [ "$1" == "--apk" ]
then
echo "Building APK..."
flutter build apk --release
else
echo "Building AAB..."
flutter build appbundle --release
fi |
const jsonString = '{"name": "John","age": 30,"password": "123456"}';
const parsed = JSON.parse(jsonString);
console.log(parsed);
// {name: "John", age: 30, password: "123456"} |
<filename>files/tests/managers/test_nfs.py<gh_stars>100-1000
# -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community
Edition) available.
Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT Li... |
<reponame>NoMan2000/sql_func_and_procs
SELECT employee_id,customers_for_rep(employee_id)
FROM employees
WHERE customers_for_rep(employee_id)>10
ORDER BY customers_for_rep(employee_id) desc
|
#!/bin/bash
echo 'Starting sentence application as a stack'
# DOCKER_REGISTRY=localhost:5000
# my-registry e my-swarm sono degli alias per swarm-1
DOCKER_SWARM=tcp://my-swarm:2376
# inserisco le chiavi e il certificato dello swarm-1
docker --host ${DOCKER_SWARM} --tlsverify --tlscacert /home/vagrant/.docker/ca.pem ... |
#basedir = '/fastscratch/snarayan/genarrays/v_deepgen_3/'
#figsdir = '/home/snarayan/public_html/figs/deepgen/v3/'
export BASEDIR="/data/t3serv014/snarayan/deep/v_deepgen_4_0p02_small/"
export FIGSDIR='/home/snarayan/public_html/figs/deepgen/v4_grid_compare/'
export MODELDIR="models/"
|
#!/bin/bash
TAG="${TAG:-quay.io/microshift/microshift-aio:$(date +%Y-%m-%d-%H-%M)}"
for img in "registry.access.redhat.com/ubi8/ubi-init:8.4" "docker.io/nvidia/cuda:11.4.2-base-ubi8"; do
echo "build microshift aio image using base image "${i}
tag=$(echo ${img} |awk -F"/" '{print $NF}'| sed -e 's/:/-/g')
echo ... |
# -----------------------------------------------------------------------------
#
# Package : middie
# Version : 4.1.0
# Source repo : https://github.com/fastify/middleman
# Tested on : RHEL 8.3
# Script License: Apache License, Version 2 or later
# Maintainer : BulkPackageSearch Automation <sethp@us.ibm.com>
#
# Discl... |
<filename>private-class-data/src/main/java/com/iluwatar/privateclassdata/Stew.java
package com.iluwatar.privateclassdata;
/**
*
* Mutable stew class
*
*/
public class Stew {
private int numPotatoes;
private int numCarrots;
private int numMeat;
private int numPeppers;
public Stew(int numP... |
<gh_stars>0
const isString = require('./../../validator/isString');
function isFileName(val) {
return isString(val) && val.length > 4 && val.length < 250;
}
module.exports = isFileName; |
/*
* For more infos check:
* https://wiki.delphigl.com/index.php/Dual_Quaternion
*/
function DualQuaternion(r, d) {
if(r instanceof Quaternion)
r.normalizeApply();
this.r = r; // Real part
this.d = d; // Dual part
}
DualQuaternion.prototype.fromArray = function(arr) {
this.r = arr[0].normali... |
/*
* Copyright 2009-2012 The MyBatis Team
*
* 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 requ... |
function Group(canvas, svg) {
this.svg = svg;
this.canvas = canvas;
if (!this.svg.getAttribute("id")) {
var uuid = Util.newUUID();
this.svg.setAttribute("id", uuid);
}
this.id = this.svg.getAttribute("id");
this.targets = [];
var thiz = this;
Dom.workOn("./svg:g[@p:type... |
# ----------------------------------------------------------------------------
#
# Package : pd
# Version : rc3
# Source repo : https://github.com/pingcap/pd
# Tested on : rhel_7.3
# Script License: Apache License, Version 2 or later
# Maintainer : Priya Seth <sethp@us.ibm.com>
#
# Disclaimer: This... |
module.exports = {
tables: [
{
TableName: `Users`,
KeySchema: [{ AttributeName: "username", KeyType: "HASH" }],
AttributeDefinitions: [
{ AttributeName: "username", AttributeType: "S" }
],
ProvisionedThroughput: { ReadCapacityUnits:... |
import numpy as np
def split_data(input, output, validation_percentage=0.1):
num_sets = output.shape[0]
num_validation = int(num_sets * validation_percentage)
training_input, validation_input = input[:-num_validation], input[-num_validation:]
training_output, validation_output = output[:-num_validation... |
#!/bin/bash
IN=${IN:-$PASH_TOP/evaluation/benchmarks/for-loops/input/node_modules}
MIR_BIN=${MIR_BIN:-$PASH_TOP/evaluation/benchmarks/for-loops/input/mir-sa/.bin/mir-sa}
OUT=${OUT:-$PASH_TOP/evaluation/benchmarks/for-loops/input/output/mir}
mkdir -p ${OUT}/
pkg_count=0
run_tests() {
cd $1;
${MIR_BIN} -p 2>>${... |
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
private void NewCmdExecuted(object sender, ExecutedRoutedEventArgs e)
{
txtEditor.Document = new FlowD... |
/*
* 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 javax.swing;
import java.awt.Color;
import java.awt.Component;
/**
*
* @author <NAME> (d120041) <<EMAIL>>
*/
public class ... |
/*
* AddNewBook.sql
* Chapter 8, Oracle10g PL/SQL Programming
* by <NAME>, <NAME>, and <NAME>
*
* This procedure will insert a new book into the books table.
* It also demonstrates default parameters.
*/
CREATE OR REPLACE PROCEDURE AddNewBook(
p_ISBN IN books.ISBN%TYPE,
p_Category IN books.category%TYPE :=... |
<gh_stars>0
import { Injectable } from '@angular/core';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import 'rxjs/add/operator/map';
const httpOptions = {
headers: new HttpHeaders({'Content-Type': 'application/json'})
};
@Injectable()
export class ApiUserService {
domain: string = '/api/user'... |
<filename>trunklucator/base/dto.py<gh_stars>10-100
from collections import OrderedDict
from datetime import datetime
def namedtuple_asdict(obj):
if hasattr(obj, "_asdict"): # detect namedtuple
return OrderedDict(zip(obj._fields, (namedtuple_asdict(item) for item in obj)))
elif isinstance(obj, str): #... |
// Descrição: Arquivo responsável pela lógica das rotas das variacoes
const mongoose = require('mongoose')
const Variacao = mongoose.model('Variacao')
const Produto = mongoose.model('Produto')
class VariacaoController {
// ----------------------------------------------------------- CLIENTES/VISITANTES -----------... |
package de.unistuttgart.ims.coref.annotator;
class SearchResult {
Span span;
SearchContainer container;
public SearchResult(SearchContainer container, int begin, int end) {
super();
this.container = container;
this.span = new Span(begin, end);
}
public int getBegin() {
return span.begin;
}
public int... |
<filename>src/main/java/com/netcracker/ncstore/service/general/payment/BraintreePaymentService.java
package com.netcracker.ncstore.service.general.payment;
import com.braintreegateway.BraintreeGateway;
import com.braintreegateway.MerchantAccount;
import com.braintreegateway.Result;
import com.braintreegateway.Transact... |
# debug
magiskpolicy --live "dontaudit system_server system_file file write"
magiskpolicy --live "allow system_server system_file file write"
# context
magiskpolicy --live "type same_process_hal_file"
magiskpolicy --live "type system_lib_file"
magiskpolicy --live "type vendor_file"
magiskpolicy --live "type vendor... |
<reponame>andromeda/mir
var _;
_ = Promise.length;
_ = Promise.name;
_ = Promise.prototype;
_ = Promise.all;
_ = Promise.race;
_ = Promise.resolve;
_ = Promise.reject;
|
#!/usr/bin/env bash
# Connectivity check to see if NAT Gateway is up
count=0
while true
do
if ping -c 1 -W 5 google.com 1>/dev/null 2>&1
then
echo "Connected!"
break
elif [ $count -le 15 ]
then
echo "Not Connected!"
count=$[$count+1]
else
echo "Giving up"
break
fi
sleep 1
done
#... |
#!/bin/bash
get_input() {
xinput | grep "$1" | cut -f2 -d"=" | cut -f1
}
get_output() {
xrandr | grep " conn" | cut -f1 -d" "
}
xrandr --fb 7000x4000 \
--output eDP-1 --scale 0.4x0.4 --pos 0x1200 \
--output DP-1-1 --auto --rotate left --pos 1280x0 \
--output DP-1-2-8 --auto --pos 2360x84... |
function randomIntFromInterval(min, max) {
// min and max included
return Math.floor(Math.random() * (max - min + 1) + min);
}
let randomNumber = randomIntFromInterval(1, 10); |
<?php
// Assuming database connection is established and stored in $db variable
if ($_SERVER["REQUEST_METHOD"] == "POST") {
if (isset($_POST['skill_name']) && isset($_POST['skill_icon'])) {
$skillName = htmlspecialchars($_POST['skill_name']);
$skillIcon = htmlspecialchars($_POST['skill_icon']);
... |
#!/bin/bash
# Step 1: Start the Docker container
docker run -d --rm --net grid --name remote-firefox --link website -e HUB_HOST=selenium-hub -v /dev/shm:/dev/shm selenium/node-firefox:3.141.59-selenium
# Step 2: Execute the shell script to wait for the Selenium Grid
sh wait_for_grid.sh |
from .IWalkIOAdapter import IWalkIOAdapter
try:
import fabric
class IFabricIOAdapter(IWalkIOAdapter):
def __init__(self, host:str = None, port:int = None, user:str = None, pwd:str = None, c:fabric.Connection = None):
if c:
self.__c = c
else:
self.__c = fabric.Connection(host=host, user=use... |
<reponame>centrual/geolocator
let _toString = Object.prototype.toString;
/**
* Simple utility methods; internally used within Geolocator core;
* made publically accessible.
* @type {Object}
* @readonly
*/
const utils = {
noop() {},
// ---------------------------
// Validation
// ----------------... |
<reponame>axitdn/keycloak
/*
* Copyright 2016 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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... |
#!/usr/bin/env sh
. ./mturk_init.sh
exec "$MTURK_CMD_HOME"/bin/invoke.sh GetResults -successfile $OUR_DIR/$OUR_NAME.success -outputfile $OUR_DIR/$OUR_NAME.results
|
package com.prt2121.githubsdk.model.response.events.payload;
import com.prt2121.githubsdk.model.response.Repo;
/**
* Created by Bernat on 05/10/2014.
*/
public class ForkEventPayload extends GithubEventPayload {
public Repo forkee;
public Repo repository;
}
|
package io.dronefleet.mavlink.common;
import io.dronefleet.mavlink.annotations.MavlinkFieldInfo;
import io.dronefleet.mavlink.annotations.MavlinkMessageBuilder;
import io.dronefleet.mavlink.annotations.MavlinkMessageInfo;
import java.lang.Object;
import java.lang.Override;
import java.lang.String;
import java.util.Obj... |
<filename>magic_shop/components/order-item/index.js
import { GetSlashYMDHMS } from '../../utils/date'
// components/order-item/index.js
Component({
/**
* 组件的属性列表
*/
properties: {
order: Object,
},
observers: {
order: function (order) {
if (!order) {
return
}
const OrderV... |
#!/bin/sh
# Copyright (c) 2014-2015 The TavecchiacoinPay 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 ... |
<gh_stars>0
/*
* aetree.h - AE Tree constructor and print functions.
* Copyright (C) Acorn Computers Ltd., 1988-1990.
* Copyright (C) Codemist Ltd., 1987-1992.
* Copyright (C) Advanced RISC Machines Limited, 1991-1992.
* SPDX-Licence-Identifier: Apache-2.0
*/
/*
* RCS $Revision$ Codemist 15
* Checkin $Date$
*... |
#!/bin/bash -e
# helper to create local APT repository includeing all package available in
# the docker images's local apt repo
if [ $# -ne 1 ]; then
echo "Call with: $(basename ${BASH_SOURCE[0]}) <path to local apt directory>" >&2
exit 1
fi
if [ ! -d $1 ]; then
echo "Please create target directory $1 befor... |
<!DOCTYPE html>
<html>
<head>
<title>Form Test</title>
</head>
<body>
<form method="post">
<div>
<label for="name">Name:</label>
<input type="text" name="name" id="name">
</div>
<div>
<label for="age">Age:</label>
<input type="number" name="age" id="age">
</div>
<div... |
#!/bin/bash
WORKDIR=`echo $0 | sed -e s/build.sh//`
cd ${WORKDIR}
docker build -t docker.io/sbueringer/squid:latest .
if [ "$TRAVIS_BRANCH" == "master" ] && [ ! -z "$DOCKER_USERNAME" ] && [ ! -z $DOCKER_PASSWORD ]
then
docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
docker push docker.io/sbueringer/... |
use serialport::{SerialPort, SerialPortSettings, Error};
use std::time::Duration;
const SETTINGS: SerialPortSettings = SerialPortSettings {
baud_rate: 9600,
data_bits: serialport::DataBits::Eight,
flow_control: serialport::FlowControl::None,
parity: serialport::Parity::None,
stop_bits: serialport::... |
<reponame>ingoha/TTGO-T-Wristband
const uint8_t Orbitron_Light5pt7bBitmaps[] PROGMEM = {
0x00, 0xFA, 0xC0, 0x12, 0x7F, 0x24, 0x24, 0xDE, 0x68, 0x48, 0x10, 0xFF,
0x91, 0x90, 0xFF, 0x11, 0x91, 0xFF, 0x10, 0xF0, 0xA4, 0x4F, 0x20, 0x30,
0x13, 0xC8, 0x94, 0x3C, 0x7E, 0x20, 0x90, 0x16, 0x08, 0xD4, 0x1B, 0xFE,
0x80, 0... |
#!/bin/bash
# Written by: Adam Simpkin
# Date: 18 May 2017
#
# This script is an example of how to run the contaminant
# search in SIMBAD. Various command line flags could be set
# but below's example is the most basic usage and illustrates
# its purporse.
simbad-contaminant \
-nproc 4 \
-organism CHICK... |
package com.ibm.socialcrm.notesintegration.connector.util;
/****************************************************************
* IBM OpenSource
*
* (C) Copyright IBM Corp. 2012
*
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
**********************************************... |
#!/bin/bash
#Jill E. Moore
#Weng Lab
#UMass Medical School
#December 2020
data=$1
workingDir=~/Lab/Luban-Collaboration/Clean
genome=~/Lab/Reference/Human/hg38/HISAT2/genome
cd $workingDir
echo "Mapping ..."
~/bin/hisat2-2.2.1/hisat2 -p 16 -x $genome -1 $data.1.P.fq -2 $data.2.P.fq -S $data.sam
echo "Coverting from... |
package io.opensphere.core.viewer.impl;
import java.util.Collection;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.apache.log4j.Logger;
import io.opensphere.core.Notify;
import io.opensphere.core.Notify.Method;
import io.opensphere.core.mat... |
# STEP 6: perform data evaluation to filter low-quality data samples and tag data samples with quality metrics:
# language model, entailment model, language complexity
output_path="/home/Datasets/processed/SQuAD2.0/"
data_file_prefix="train"
st_idx=0
ed_idx=50000
python3 DE_main.py \
--input_file "${output_pa... |
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('security', '0014_index_prisoner_number'),
]
operations = [
migrations.AlterField(
model_name='debitcardsenderdetails',
name='card_number_last_digits',
fiel... |
package pulse.tasks.processing;
import static java.util.Arrays.asList;
import static java.util.stream.Collectors.toList;
import static pulse.properties.NumericProperties.def;
import static pulse.properties.NumericPropertyKeyword.DIFFUSIVITY;
import static pulse.properties.NumericPropertyKeyword.IDENTIFIER;
impo... |
<reponame>jianglong0156/chromium.src<filename>ui/gfx/rect_base_impl.h
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gfx/rect_base.h"
#include "base/logging.h"
#include "base/stringpr... |
"""Python wrappers around TensorFlow ops.
This file is MACHINE GENERATED! Do not edit.
Original C++ source file: libsvm_ops.cc
"""
import collections as _collections
import six as _six
from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow
from tensorflow.python.eager import context as _context
from t... |
#!/bin/sh
openssl dgst \
-sha256 \
-sign ~/.openssl/stub2ch_private.pem \
tools/auth/passphrase.txt \
| base64 -w 0
echo ""
|
// scrivi la soluzione qui...
/*Si scriva un metodo Scala mcd che calcola il massimo comun divisore (MCD) di due numeri interi. Usare la seguente definizione ricorsiva:
MCD(x,y)=x, se y=0
MCD(x,y)=MCD(y, resto della divisione di x per y) altrimenti
Compilare ed eseguire come visto nell’Esercizio 1. Scrivere la soluzio... |
#
# Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://aws.amazon.com/apache2.0
#
# or in the "license" file accom... |
#!/bin/bash
sudo apt-get update
apt install scapy net-tools
sudo ip link set dev lo up
sudo ip -6 addr add fc00::8/64 dev enp0s8
sudo ip link set dev enp0s8 up
sudo ip -6 neigh add fc00::1 lladdr 00:15:4d:00:00:00 nud permanent dev enp0s8
sudo ip -6 neigh add fc00::2 lladdr 00:15:4d:00:00:01 nud permanent dev enp0s8... |
sudo apt-get -y install xdotool
|
#!/bin/bash
for file in $(git diff --cached --name-only --diff-filter=ACM "*.js")
do
# we only want to lint the staged changes, not any unstaged changes
git show ":$file" | node_modules/.bin/eslint --stdin --stdin-filename "$file"
if [ $? -ne 0 ]; then
echo "ESLint failed on staged file '$file'. Please check your... |
# Set the path to save checkpoints
OUTPUT_DIR='YOUR_PATH/k400_videomae_pretrain_large_patch16_224_frame_16x4_tube_mask_ratio_0.9_e1600'
# Set the path to Kinetics train set.
DATA_PATH='YOUR_PATH/list_kinetics-400/train.csv'
# batch_size can be adjusted according to number of GPUs
# this script is for 64 GPUs (8 nodes... |
<filename>utils_OR/DatasetCreation/tempRemoveLight.py
import glob
import os.path as osp
import os
roots = ['mainDiffMat_xml', 'mainDiffMat_xml1']
for root in roots:
scenes = glob.glob(osp.join(root, 'scene*') )
for scene in scenes:
print(scene )
if osp.isdir(scene ):
os.system('r... |
#!/bin/bash
#
# Copyright SecureKey Technologies Inc. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
# Environment variables that affect this script:
# GO_TESTFLAGS: Flags are added to the go test command.
# GO_LDFLAGS: Flags are added to the go test command (example: -s).
# TEST_CHANGED_ONLY: Boolean o... |
def highest_prime_factor(num):
prime_factors = []
i = 2
while i*i <= num:
if num % i:
i += 1
else:
num //= i
prime_factors.append(i)
if num > 1:
prime_factors.append(num)
if len(prime_factors) > 0:
return max(prime_factor... |
<reponame>sparber/CComprehensiveDatatypes<filename>src/tree/symbols/TSExcl.java
package tree.symbols;
import tree.DefaultTreeNodeSymbol;
public class TSExcl extends DefaultTreeNodeSymbol {
public static int id = EXCL;
public static String text = "!";
public TSExcl() {
super(text, id);
}
}
|
package com.github.danildorogoy.template;
import javafx.geometry.HPos;
import javafx.geometry.Insets;
import javafx.geometry.VPos;
import javafx.scene.Node;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.layout.ColumnConstraints;
import javafx.scene.layout.GridPane;
import j... |
#!/bin/sh
# -----------------------------------------------------
# Run with -help for usage.
# If $JAVA_HOME is set, editing this script should not be required.
# Send any questions to fchoong@user.sourceforge.net
# -----------------------------------------------------
# the value set here will override the value pas... |
<filename>src/components/Header.test.tsx
import * as React from 'react';
import * as enzyme from 'enzyme';
import Header from './Header';
import * as Adapter from 'enzyme-adapter-react-16';
enzyme.configure({ adapter: new Adapter() });
it("renders 'new merchant' link in the header when type is merchants_index",()=>{... |
/*
* 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 ... |
package math;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
/**
*
* @author exponential-e
* 백준 17830번: 이진수씨의 하루 일과
*
* @see https://www.acmicpc.net/problem/17830/
*
*/
public class Boj17830 {
private static final String NEW_LINE = "\n";
private static fin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.