text
stringlengths
1
1.05M
gate=1 while [ $gate ] do sleep 1s gate=`ls /home/m/.pid_* 2>/dev/null` echo $gate; done echo "done!"
<reponame>ksenia-kh/fairseq-factored<filename>preprocessing/stanford/feature_tagger_gender_bias/hf_translate_mt.py<gh_stars>0 import os import sys import torch from transformers import MarianTokenizer, MarianMTModel model_name = 'Helsinki-NLP/opus-mt-en-ROMANCE' tokenizer = MarianTokenizer.from_pretrained(model_name...
package com.scand.realmbrowser; import android.app.Notification; import android.app.PendingIntent; import android.app.Service; import android.content.Context; import android.content.Intent; import android.os.IBinder; import android.support.annotation.Nullable; import android.support.v4.app.NotificationCompat; import a...
package com.lnoah.portfolio.springboot.controller.dto; import com.lnoah.portfolio.springboot.model.posts.Posts; import lombok.Getter; import java.time.LocalDateTime; @Getter public class PostsListResponseDto { private Long id; private String title; private String author; private LocalDateTime modifie...
#!/usr/bin/env bash # # Setup # echo "Setting up" cd /vagrant USER=vagrant sudo locale-gen en_GB.UTF-8 sudo apt-get update -y sudo apt-get upgrade -y sudo apt-get install -y htop unzip curl git dos2unix # # NGINX # echo "Installing: NGINX" sudo add-apt-repository ppa:nginx/stable -y sudo apt-get update sudo apt-get i...
def fmt_bundle_ctx_id(type, id, version): return f"{type}_{id}_{version}"
<filename>src/components/ContinentCard.js<gh_stars>1-10 import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; const ContinentCard = (props) => { const { continent, area, population, id, data, } = props; let background = 'bg-sky-900'; if (id) background = [2, 3, 6, 7, 10, 11].includes...
import boto3 def launch_ec2_instance(user_data_file, instance_class, ami_id): try: with open(user_data_file, 'r') as f: user_data = f.read() except FileNotFoundError: print("Error: User data file not found") return if instance_class == 'notebook': ec2 = boto3.re...
#!/bin/bash set -e if [ -z "$VIRTUAL_ENV" ]; then echo "This requires the chia python virtual environment." echo "Execute '. ./activate' before running." exit 1 fi # Allows overriding the branch or commit to build in chia-blockchain-gui SUBMODULE_BRANCH=$1 UBUNTU=false # Manage npm and other install requirement...
#!/usr/bin/env bash src=en tgt=de bedropout=0.5 ARCH=transformer_wmt_en_de ROOT=/apdcephfs/share_47076/elliottyan/co-work-projects/fairseq-bert #### MODIFY ###### KD_ALPHA=3 DATA_SIG=wmt14_en_de-bert-or-bart-or-electra MODEL_SIG=d512_electra_feature_task_generator_alpha_${KD_ALPHA} #### MODIFY ###### DATAPATH=$ROOT/d...
# Copyright 2020-2021 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
<reponame>maciej-plonka/tournament-app<gh_stars>0 import React from 'react'; import styles from '../styles/PageCard.module.css'; interface PageCardProps { children: React.ReactNode } export function PageCard(props: PageCardProps) { return ( <div className={styles.pageCard}> {props.children}...
<reponame>zulhilmizainuddin/partial-download import events = require('events'); import request = require('request'); export interface Operation { start(url: string, contentLength: number, numOfConnections: number, headers?: request.Headers): events.EventEmitter; }
import crypto from 'crypto'; import { Router } from 'express'; import { PASSWORD_SALT } from '../constants'; import { generateAccessToken } from '../utils'; export const createSessionRoute = sequelize => { const router = Router(); router.put('/refresh', (req, res, next) => { // poyo }); router.post('/sig...
import { localeConfig } from '@/config/locale' import { ConfigProvider } from 'antd' import enUS from 'antd/es/locale/en_US' import zhCN from 'antd/es/locale/zh_CN' import { createBrowserHistory } from 'history' import moment from 'moment' import 'moment/locale/zh-cn' import React, { useEffect } from 'react' import { I...
// 2456. 나는 학급회장이다 // 2021.05.17 // 구현 #include<iostream> using namespace std; int counts[4][4]; // counts[i][j] : i번 학생이 j점을 받은 개수 int main() { int n; cin >> n; int a, b, c; for (int i = 0; i < n; i++) { cin >> a >> b >> c; counts[1][a]++; counts[2][b]++; counts[3]...
def parse_readme(app, text): if app == "AppA": # Extract installation instructions start_index = text.find("INSTALLATION") if start_index != -1: return text[start_index:] elif app == "AppB": # Extract list of features # Assuming features are listed under a "FE...
<filename>seminar/threads4.cpp #include <thread> #include <mutex> #include <iostream> #include <atomic> #define ANZAHL 100000 class Zaehler { public: Zaehler() : n(0) {} long wert() { std::lock_guard<std::mutex> lock( mn ); return n; } void inc() { std::lock_guard<std::mutex> lock( mn ); n++; } ...
<gh_stars>0 package com.blackti.oauth.resources; import com.blackti.oauth.dto.UsuarioDTO; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.GetMapping; import org.spri...
<filename>chest/gui/swing/src/main/java/net/community/chest/swing/component/table/DefaultTableScroll.java /* * */ package net.community.chest.swing.component.table; import javax.swing.JTable; import net.community.chest.swing.component.scroll.HorizontalPolicy; import net.community.chest.swing.component.scroll.Scroll...
#!/bin/bash arg_1=$0 filename=$(basename $arg_1) filepath=$(cd `dirname $0`; pwd) cmdpath=$(pwd) echo $filename echo $arg_1 echo $filepath echo $cmdpath
package fr.unice.polytech.si3.qgl.soyouz.classes.objectives.sailor.helper; import fr.unice.polytech.si3.qgl.soyouz.classes.marineland.entities.onboard.Gouvernail; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; class RudderConfi...
<gh_stars>0 package com.example.country.services; import at.favre.lib.crypto.bcrypt.BCrypt; import com.example.common.errors.WSException; import com.example.country.dto.CountryDTO; import com.example.country.models.Country; import com.example.users.dto.UserDTO; import com.example.users.models.User; import javax.enter...
// Organization Endpoint app.get('/organizations', (req, res) => { const { organization_name } = req.query; const filter = {}; if(organization_name) { filter.organization_name = organization_name; } Organization.find(filter) .then(organizations => { res.json(organizations); }) .catch(err => { console.erro...
#!/bin/bash ################################################################################ # Copyright 2020 The Magma Authors. # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. # Unless required by applicable law or agreed to in writing...
#!/bin/bash #= sudo_unmount_force.sh # (c)2021 John@de-Graaff.net # BASENAME=`basename $0` usage() { echo "# usage: $BASENAME [ -h hostname ] " 1>&2 exit 1 } # MYID=$( id -u ) if [ $MYID != 0 ]; then #echo "# provide your password for 'sudo':" ; sudo "$0" "$*" ; exit 1 ; echo "# provide your password for 'sudo...
<gh_stars>0 package org.bf2.cos.fleetshard.sync; import javax.enterprise.context.ApplicationScoped; import javax.inject.Inject; import org.bf2.cos.fleetshard.sync.client.FleetShardClient; import org.bf2.cos.fleetshard.sync.connector.ConnectorDeploymentSync; import org.bf2.cos.fleetshard.sync.connector.ConnectorStatus...
#!/bin/bash initialize_elasticsearch() { USERNAME=aptible PASSPHRASE=password run-database.sh --initialize } wait_for_elasticsearch() { # We pass the ES_PID via a global variable because we can't rely on # $(wait_for_elasticsearch) as it would result in orpahning the ES process # (which makes us unable to `wa...
#!/bin/bash set -e # # read common settings source ./config.sh echo echo "==== $0: Feature Flags Information:" echo "SLACK_ENABLE: ${SLACK_ENABLE} - controls if Slack is used for alerting. Slack account is required." echo "GRAFANA_CLOUD_ENABLE: ${GRAFANA_CLOUD_ENABLE} - controls if grafana-cloud is deployed. Grafana ...
#include<iostream> using namespace std; // Function that generates an array of prime numbers in the given range int* primeNumberGenerator(int n){ int *primeNumberArray = new int[n-1]; int index = 0; // Traversing the array for (int i=2; i<=n; i++) { // Check if the number is prime or not bool isPrime...
#!/bin/bash KERNEL=`uname -r` BENCH=hackbench OUTPUT=output.cyc/$BENCH mkdir -p $OUTPUT hackbench -s 512 -l 1024 -P > $OUTPUT/$BENCH.out & cyclictest -mnq -p 90 -h 1000 -i 1000 -l 10000 > $OUTPUT/$BENCH.cyc.out & ps > $OUTPUT/$BENCH.ps sleep 1 insmod /lib/modules/$KERNEL/extra/sched_profiler.ko sleep 3 cat /proc/sche...
#!/bin/bash # ========== Experiment Seq. Idx. 1156 / 20.0.4.0 / N. 0 - _S=20.0.4.0 D1_N=4 a=-1 b=-1 c=1 d=-1 e=-1 f=1 D3_N=7 g=1 h=1 i=1 D4_N=2 j=2 D5_N=0 ========== set -u # Prints header echo -e '\n\n========== Experiment Seq. Idx. 1156 / 20.0.4.0 / N. 0 - _S=20.0.4.0 D1_N=4 a=-1 b=-1 c=1 d=-1 e=-1 f=1 D3_N=7 g=1 h=...
<filename>lang/py/cookbook/v2/19/mytee.py #! /usr/bin/env python # -*- coding:UTF-8 -*- import collections import itertools def tee1(iterable): def yield_with_cache(next, cache={}): # cache只对相邻的一次迭代起作用? pop = cache.pop for i in itertools.count(): try: yield pop(i) ...
#!/bin/bash # Load shared libraries from /opt/vc/lib echo /opt/vc/lib > /etc/ld.so.conf.d/00-vmcs.conf ldconfig # Link /opt/vc/bin binaries to /usr/bin ln -s /opt/vc/bin/raspividyuv /usr/bin/raspividyuv ln -s /opt/vc/bin/dtmerge /usr/bin/dtmerge ln -s /opt/vc/bin/raspistill /usr/bin/raspistill ln -s /opt/vc/bin/vcgen...
pkg_name=R pkg_origin=core pkg_version="3.5.0" pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>" pkg_license=('GPL-2.0+') pkg_source="https://cran.r-project.org/src/base/R-3/${pkg_name}-${pkg_version}.tar.gz" pkg_shasum="fd1725535e21797d3d9fea8963d99be0ba4c3aecadcf081b43e261458b416870" pkg_upstream_url="http...
<reponame>superhawk610/site import React from 'react'; import { Link } from 'gatsby'; import styled from 'styled-components'; import owl from '../images/owl.png'; import ThemeToggle from '../components/theme-toggle'; import Spacer from './spacer'; import { breakpoints } from '../constants'; const Sidebar = () => ( ...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[40],{ /***/ "./node_modules/@react-page/ui/lib-es/ThemeProvider/index.js": /*!*******************************************************************!*\ !*** ./node_modules/@react-page/ui/lib-es/ThemeProvider/index.js ***! \********************************...
python CODE/run_csqa_task.py\ --task_name OMWKCS_MultiSourceFusion\ --mission predict\ --fp16 0\ --seed 42\ --gpu_ids 5\ --evltest_batch_size 12\ --processor_batch_size 24\ --eval_after_tacc 0.79\ \ --without_PTM\ --model_list Origin WKDT OMCS\ --max_seq_len 140\ --ma...
import React from 'react' import Screenshots from './screenshots' import { Th, Td, Table } from '~components/common/table' import { FormatNumber, FormatDate } from '~components/utils/format' import Timezone from '~components/common/timezone' import stateHistoryStyle from './state-history.module.scss' export default ({...
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Dec 30, 2020 at 12:35 PM -- Server version: 10.5.8-MariaDB-log -- PHP Version: 7.4.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_...
set -eo nounset cd /mnt/lfs/sources rm -rf texinfo-6.5 tar xf texinfo-6.5.tar.xz pushd texinfo-6.5 ./configure --prefix=/tools make #make check make install popd rm -rf texinfo-6.5
<reponame>geopm/geopm.github.io<filename>dox/search/variables_4.js var searchData= [ ['t',['t',['../structgeopm__time__s.html#acb1eaa1bbc844a3c6853b5849fb1c8a6',1,'geopm_time_s']]] ];
#!/bin/sh if ! (mypy --show-error-codes \ --ignore-missing-imports \ --disallow-untyped-defs \ --disable-error-code override \ --disable-error-code attr-defined peekingduck); then echo "TYPE CHECK FAIL" exit 123 else echo "TYPE CHECK SUCCESS!!" fi
<filename>src/scene/pick.js import { ADDRESS_CLAMP_TO_EDGE, CLEARFLAG_COLOR, CLEARFLAG_DEPTH, FILTER_NEAREST, PIXELFORMAT_R8_G8_B8_A8 } from '../graphics/graphics.js'; import { GraphicsDevice } from '../graphics/device.js'; import { RenderTarget } from '../graphics/render-target.js'; import { Texture } from '../grap...
<gh_stars>10-100 #pragma once #include <cstdint> #include <memory> #include <map> #include <string> #include <vector> #include "capstone/capstone.h" #include "analyzers_code/FuncBaseCA.hpp" class SymResolver; struct Block; struct Symbol; class FortifySourceCA : public FuncBaseCA { public: FortifySourceCA(cs_...
from synapse.api.errors import SynapseError class RequestTimedOutError(SynapseError): """Exception representing timeout of an outbound request""" def __init__(self): super().__init__("Request timed out")
<reponame>stefb965/JRAW /** * Contains classes related to authorizing clients with OAuth2 */ package net.dean.jraw.http.oauth;
<filename>com.dubture.symfony.ui/src/com/dubture/symfony/ui/search/SymfonySearchParticipant.java<gh_stars>10-100 /******************************************************************************* * This file is part of the Symfony eclipse plugin. * * (c) <NAME> <<EMAIL>> * * For the full copyright and license info...
docker build -t majest/slim-upload-example .
<reponame>alexandremagro/tspga #ifndef TSPLIB_H_INCLUDED #define TSPLIB_H_INCLUDED typedef struct { char name[256], edge_weight_type[256], edge_weight_format[256]; int size; double **cost_matrix; Point *points; } Map; void free_map(Map *map); Map read_tsp_lib(char *file_name); #endif
package pulse.io.readers; import static pulse.properties.NumericProperties.def; import static pulse.properties.NumericProperties.isValueSensible; import static pulse.properties.NumericPropertyKeyword.TEST_TEMPERATURE; import static pulse.properties.NumericPropertyKeyword.findAny; import java.io.BufferedReader; import...
#!/bin/bash geth --testnet --rpc --rpcapi "net,eth,personal,admin,web3,db" --rpcport 8545 --verbosity 6
from rest_framework import serializers from .models import Product # Assuming the Product model is defined in a separate file class CustomSerializer(serializers.ModelSerializer): class Meta: model = Product fields = ['id', 'name', 'price', 'description'] name = serializers.CharField(min_l...
#!/bin/sh # 为 crystal lang 编译secp256k1库。 / Compile the secp256k1 library for crystal lang. # 源码 / source:https://github.com/syalon/secp256k1-zkp.git # by syalon # 1、克隆源代码 / clone source code SOURCE_CLONE_DIR="secp256k1-zkp" rm -rf $SOURCE_CLONE_DIR git clone https://github.com/syalon/secp256k1-zkp.git $SOURCE_CLON...
#!/bin/bash set -e ## uncomment to generate new baseline; will be created in qa/baselines/ ## ## python inference_perf.py -m Tacotron2 -bs=20 --input-text qa/text_padded.pt --create-benchmark python inference_perf.py -m Tacotron2 -bs=1 --decoder-no-early-stopping --input-text qa/text_padded.pt python qa/check_curve...
package com.limpoxe.fairy.core.android; import android.view.LayoutInflater; import android.view.View; import com.limpoxe.fairy.util.RefInvoker; import java.lang.reflect.Constructor; import java.util.HashMap; import java.util.Map; public class HackLayoutInflater { private static final String ClassName = "androi...
type FileHandle = string; class FileManager implements FileManagerInterface { private openFiles: Map<FileHandle, string>; constructor() { this.openFiles = new Map(); } openFile(fileName: string): FileHandle { const fileHandle = `file_${Date.now()}_${Math.random()}`; this.openF...
/* * 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 ...
<reponame>andrewliebchen/reacticons-too 'use strict'; var React = require('react/addons'); var IconMixin = require('../icon_mixin'); module.exports = React.createClass({ mixins: [IconMixin], renderGraphic: function(type) { return ( <g> {!type ? <path d="M 44.463,23.787L 24.00,45.00L 3.537,23.78...
<reponame>NortonHua/vue-cms-miniprogram const activityRouter = { route: null, name: null, title: '活动管理', type: 'folder', icon: 'iconfont icon-huiyuanguanli', filePath: 'view/activity/', order: null, inNav: true, children: [ { route: '/activity/list', name: null, title: '活动列表', ...
export const logout = () => ({ type: "LOG_OUT", }) export const reducer = (prevState, action) => { if (action.type === "LOG_OUT") { return { ...prevState, logged: false, token: null, } } return prevState }
public class ExtractData { public static void main(String[] args) { String jsonString = "{\"name\":\"bob\",\"age\":25,\"location\":\"san francisco\"}"; // Create a JSON Object from the JSON string JSONObject jsonObject = new JSONObject(jsonString); // Get the values fr...
import asyncio from multiprocessing import Queue import pytest from liualgotrader.common.types import QueueMapper, WSEventType from liualgotrader.data.alpaca import AlpacaStream alpaca_stream: AlpacaStream queues: QueueMapper @pytest.fixture def event_loop(): global alpaca_stream global queues loop = a...
/***************************************************************************** * * Copyright (c) 2000 - 2006, The Regents of the University of California * Produced at the Lawrence Livermore National Laboratory * LLNL-CODE-400124 * All rights reserved. * * This file is part of VisIt. For details, see https://visit.ll...
<filename>deno/methods/inspect.ts import type { ForEachFn } from "../types/functions/mod.ts"; import { _curry } from "../lib/utils/mod.ts"; async function* _inspect_impl_fn<T>( fn: ForEachFn<T>, iter: AsyncIterable<T>, ): AsyncIterable<T> { for await (const elem of iter) { await fn(elem); yield elem; ...
#!/bin/sh #SBATCH -N 1 # nodes requested #SBATCH -n 1 # tasks requested #SBATCH --partition=Standard #SBATCH --gres=gpu:8 #SBATCH --mem=72000 # memory in Mb #SBATCH --time=0-08:00:00 export CUDA_HOME=/opt/cuda-9.0.176.1/ export CUDNN_HOME=/opt/cuDNN-7.0/ export STUDENT_ID=s1786991 export LD_LIBRARY_PATH=${CUDN...
#!/bin/sh ##################################################### # DSI-CSA # Script para evaluación de Apache Httpd V1.0 # MODULO 6 # Fecha: 29/05/2022 # CSA: Maribel Hernandez Gtz #################################################### decla...
<reponame>wongoo/alipay-sdk-java-all package com.alipay.api.response; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.AlipayResponse; /** * ALIPAY API: zhima.credit.pe.zmgo.bizopt.close response. * * @author <NAME> * @since 1.0, 2021-02-24 19:05:15 */ public class ZhimaCredit...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-form', templateUrl: './form.component.html', styleUrls: ['./form.component.css'] }) export class FormComponent implements OnInit { constructor() { } ngOnInit() { } submit(formData) { // Handle form submission } } <!-- form.c...
function sum( num1, num2 ) { return num1 + num2; } let num1 = 5; let num2 = 10; let result = sum(num1, num2); console.log(`The sum of ${num1} and ${num2} is ${result}.`);
/** * @function * @return { DOMElement } * @param { string } id */ export const queryById = id => { return document.getElementById(id) } /** * @name queryBySelector * @param {String} selector * @return {DOMElement} */ export const queryBySelector = selector => { return document.querySelector(selec...
/* * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 */ package com.amazon.dataprepper.plugins.processor.date; import org.junit.jupiter.api.Test; import static org.hamcrest.CoreMatchers.equalTo; import static org.hamcrest.MatcherAssert.assertThat; class DateProcessorConfigTest { @Test...
'use strict' const { v4: uuid } = require('uuid'); const db = require('../database/database') class Product { constructor(name, price, brand) { this.productId = uuid() this.name = name; this.price = price this.brand = brand } save() { db.push(this) return this } } module.exports = Pr...
#!/bin/bash # Description: Listing from script files type _list_csv >/dev/null 2>&1 && return . func.file #type -t _list_csv >/dev/null 2>&1 && return shopt -s nullglob extglob _list_csv(){ # Connect each line with ',' to csv line (a,b,c..) from <stdin> local line list while read line;do list+="${list:+...
<gh_stars>10-100 #!/usr/bin/env python # encoding: utf-8 # # Copyright (c) 2008 <NAME> All rights reserved. # """ """ #end_pymotw_header import xmlrpclib server = xmlrpclib.ServerProxy('http://localhost:9000', use_datetime=True) now = server.now() print 'With:', now, type(now), now.__class__.__name__ server = xmlrpc...
import pandas as pd from sklearn.model_selection import train_test_split from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.metrics.pairwise import cosine_similarity from sklearn.neighbors import NearestNeighbors # Load data dataset = pd.read_csv('movies.csv') # Vectorize data tfv = TfidfVectori...
<gh_stars>10-100 #!/usr/bin/env python import logging import os import pickle import time from collections import defaultdict from datetime import datetime from json import dumps import matplotlib import matplotlib.pyplot as plt import obspy import pandas as pd import requests from kafka import KafkaProducer from obsp...
package ttv.com.vn.stream; public class LamdaEx { public void lamdaFunInf(){ } public void webEx(){ WedClass wclass = new WedClass(); // take care nhan dau vao la mot interface co mot method abstract // roi dung param trong method do nhu mot dau vao cho lamda String s1 = "abc"; wclass.takeCare(s -...
<gh_stars>0 import React from "react"; import { FcAcceptDatabase, FcAddressBook, FcFaq } from "react-icons/fc"; import { IconContext } from "react-icons/lib"; import { PricingSection, PricingWrapper, PricingHeading, PricingContainer, PricingCard, PricingCardInfo, PricingCardIcon, PricingCardPlan, Pric...
#!/bin/bash cp /usr/share/nginx/html/config.${env}.js /usr/share/nginx/html/config.js rm /usr/share/nginx/html/config.*.js nginx -g "daemon off;"
#/bin/sh IPA="$PWD/pokemongo_hook.ipa" if [ -f "$IPA" ]; then echo "Delete old file..." rm $IPA fi ln -f $TARGET_BUILD_DIR/libLocationFaker.dylib Payload/pokemongo.app/libLocationFaker.dylib codesign -f -s "iPhone Developer: Lin Hong (CH4P9SEPHY)" ./Payload/pokemongo.app/libLocationFaker.dylib codesign -f -...
from cyder.api.v1.endpoints.dhcp.vrf import api
#!/usr/bin/env bash export PATH=$PATH:~/naacl12COPY/naacl12/util TRAIN=~/liblinear-1.96/train language=$1 # Below, when I refer to best C values, I use D for the denominator. D is the # number of QIDs in the training set. I show the command in each case to find # the value. cd original cut -d# -f 1 rerank.trn | rr2s...
g++ -fopenmp -Wall -g -lm lab2_io.cpp lab2_omp.cpp main_omp.cpp -o pca
package dev.rudrecciah.admincore.staffmode.items; import dev.rudrecciah.admincore.playerdata.PlayerDataHandler; import org.bukkit.ChatColor; import org.bukkit.Material; import org.bukkit.entity.Player; import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.meta.ItemMeta; import org.jetbrains.annotations.No...
<gh_stars>0 class NavigationActiveClass { constructor( navigationActiveClassElement ) { this.navigationActiveClassElement = navigationActiveClassElement; this._addActiveClass(); } _addActiveClass() { let url = window.location.pathname; let activePage; activePage = ur...
""" print("String : (((({}))))] Balanced or not?") print(is_balanced_string("(((({}))))]")) print("String : {1+[2*(3/4)-1]+2} Balanced or not?") print(is_balanced_string("{1+[2*(3/4)-1]+2}")) """ class Stack: def __init__(self): self._data = [] def is_empty(self): return self._data == [] ...
<gh_stars>1-10 package malte0811.controlengineering.datagen.recipes; import net.minecraft.advancements.CriterionTriggerInstance; import net.minecraft.advancements.critereon.ImpossibleTrigger; import net.minecraft.data.recipes.FinishedRecipe; import net.minecraft.data.recipes.ShapelessRecipeBuilder; import net.minecraf...
angular.module("wust.components").controller("TagDetailsCtrl", TagDetailsCtrl); TagDetailsCtrl.$inject = ["$stateParams", "Scope", "Search", "DiscourseNode", "StreamService", "Auth", "ContextService", "ModalEditService"]; function TagDetailsCtrl($stateParams, Scope, Search, DiscourseNode, StreamService, Auth, Context...
#!/bin/bash curl -XGET "http://localhost:4000/release/?os=osx64&project=farmer-gui"
import * as types from '../../mutation-types' import projects from '../../../api/projects' import store from '../../../store/index' import Vue from 'vue'; import Enum from 'enum'; import axios from 'axios'; import { coreEmailId, isProdEnv, cloudOptionsMap } from "../../../../config/config"; const mailIdsForClouds = Ob...
# extract all emails from a given text text = "My email is example@example.com and my friend's email is friend@example.net" regex = /\S+@\S+\.\S+/ emails = text.scan(regex) puts emails
#!/bin/bash if [[ $PACKER_BUILDER_TYPE =~ amazon-ebs ]]; then echo "==> Amazon EBS build. Exiting desktop.sh" exit fi if [[ ! "$DESKTOP" =~ ^(true|yes|on|1|TRUE|YES|ON])$ ]]; then echo "==> Not a desktop build. Exiting desktop.sh" exit fi SSH_USER=${SSH_USERNAME:-vagrant} echo "==> Checking version...
public class UpperCase { public static void main(String[] args) { String str = "This is a test string"; String strUpperCase = str.toUpperCase(); System.out.println("Original String: " + str); System.out.println("String in Upper Case: " + strUpperCase); } }
#!/bin/sh # run reactotron node_modules/.bin/reactotron
#!/bin/sh # # The MIT License (MIT) # # Copyright (c) 2016-present IxorTalk CVBA # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights...
const cleanAndSort = (input) => { // Create new Set to remove duplicates const integers = new Set(input); // Sort the Set in ascending order const sorted = [...integers].sort((a, b) => a - b); // Return the sorted array return sorted; }; let array = [9, 4, 7, 1, 5, 6, 4, 9]; console.log(cleanAndSort(array)); // ...
package uk.ac.cam.ch.wwmm.opsin; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import static uk.ac.cam.ch.wwmm.opsin.XmlDeclarations.*; import org.junit.jupiter.api.Test; public class ComponentGeneration_MiscTest { @Test() publ...
<reponame>giorgosmamakoukas/DerivativeBasedKoopman from settings import * seed(1) # Samples = Number_of_Samples A = zeros((NKoopman, NKoopman)) G = zeros((NKoopman, NKoopman)) Ps0_list = empty((Samples,NKoopman)) Psi_list = empty((Samples,NKoopman)) for i in range (Samples): # Sample states th0 = uniform(-...
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: /** @author <NAME>, <NAME> * @version 1.3 * @date Tue Nov 1 19:12:16 EDT 2016 * @see LICENSE (MIT style license file). * * Multi-Graph 'MuGraph' Data Structure Using Mutable Sets */ package scalation.graphalytics.multi ...