text
stringlengths
1
1.05M
CUDA_VISIBLE_DEVICES=$1 \ python -m src.training.experiment_linear_drugbank_mixup \ -p ./data/fromraw_cid_inchi_smiles_fp_labels_onehots.csv \ --outside-path ./data/DrugBank_smiles_fp.csv \ -e 1000 \ -b 256 \ --es-patience 20 \ --log-path ./logs/linear/drugbank_mixup \ --repeat 5 \ --mixup 0.4 \ --mixup-repeat 10
import os import lmdb # install lmdb by "pip install lmdb" import cv2 import numpy as np import glob from itertools import islice def checkImageIsValid(imageBin): if imageBin is None: return False imageBuf = np.fromstring(imageBin, dtype=np.uint8) img = cv2.imdecode(imageBuf, cv2.IMREAD_GRAYSCALE)...
package main type ParkingSystem struct { big int medium int small int } func Constructor(big int, medium int, small int) ParkingSystem { return ParkingSystem{ big, medium, small, } } func (this *ParkingSystem) AddCar(carType int) bool { if carType == 1 && this.big > 1 { this.big-- return true } else...
<filename>tests/com.archimatetool.editor.tests/src/com/archimatetool/editor/ui/textrender/ViewpointRendererTests.java /** * This program and the accompanying materials * are made available under the terms of the License * which accompanies this distribution in the file LICENSE.txt */ package com.archimatetool.edito...
package com.github.alex1304.ultimategdbot.core; import java.lang.management.ManagementFactory; import java.time.Duration; import java.util.Optional; import javax.management.NotificationEmitter; import javax.management.NotificationListener; import javax.management.openmbean.CompositeData; import com.sun.management.Ga...
SELECT name FROM people WHERE country = 'India';
<filename>src/server/modules/Fork/vos/ForkMessageCallbackWrapper.ts import Dates from "../../../../shared/modules/FormatDatesNombres/Dates/Dates"; export default class ForkMessageCallbackWrapper { public creation_time: number; /** * Wrapper for waiting for thread interaction * @param resolver callb...
<gh_stars>0 'use strict'; var _20 = { elem: 'svg', attrs: { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 20 20', width: 20, height: 20, }, content: [ { elem: 'path', attrs: { d: 'M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm-.8 4h1.5v7H9.2V5zm.8 11c-.6 0-1...
package cn.lts.mobile.util; import java.io.BufferedInputStream; import java.io.BufferedReader; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.net...
#!/bin/bash echo "=====================================================" echo "==================== Dapr JS SDK ====================" echo "=====================================================" echo "Executing in $(pwd)" echo "Description: Build the package in build/" echo "============================================...
YUI.add('aui-form-builder-page-manager-tests', function(Y) { var suite = new Y.Test.Suite('aui-form-builder-page-manager'); suite.add(new Y.Test.Case({ name: 'Form Builder Pages Tests', init: function() { this._container = Y.one('#container'); }, setUp: function()...
/* Copyright IBM Corp. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package pvtdatastorage import ( "bytes" "encoding/binary" "math" "github.com/Yunpeng-J/fabric-protos-go/ledger/rwset" "github.com/Yunpeng-J/HLF-2.2/core/ledger/internal/version" "github.com/golang/protobuf/proto" "github.com/p...
'use strict'; /** * hasOwnProperty reference. */ var has = Object.prototype.hasOwnProperty; /** * Split reference. */ var split = String.prototype.split; /** * Given a series of paths, look up a property on a potentially nested object. * * @name locate * @api private * @param {String[]} paths * @param {Ob...
'use strict'; const SolutionExplorerService = require('./dist/index').SolutionExplorerService; function registerInContainer(container) { container.register('SolutionExplorer', SolutionExplorerService) .dependencies('SolutionExplorer.Repository'); } module.exports.registerInContainer = registerInContainer;
#!/bin/bash # Argument parsing if [ "$1" = "jacoco" ] then JACOCO_ENABLED=true else JACOCO_ENABLED=false fi # Clean out any old sandbox, make a new one OUTDIR=sandbox/single MKDIR=mkdir SEP=: case "`uname`" in CYGWIN* ) MKDIR=mkdir.exe SEP=";" ;; esac rm -fr $OUTDIR $MKDIR -p $OUTDIR f...
#!/bin/sh echo "Generate Interaction Molecule and Pathway files for Reactome \n" perl splitXML.pl Reactome Reactome.xml echo "Generate Interaction Molecule and Pathway files for NCI-Nature \n" perl splitXML.pl NCI_Nature NCI-Nature_Curated.xml echo "Generate Interaction Molecule and Pathway files for BioCarta \n" pe...
#!/bin/sh # This is a generated file; do not edit or check into version control. export "FLUTTER_ROOT=/home/karan/Downloads/flutter_linux_v1.9.1+hotfix.4-stable/flutter" export "FLUTTER_APPLICATION_PATH=/media/karan/DATA/flutter folk/flutter_keyboard_visibility-master/example" export "FLUTTER_TARGET=lib/main.dart" expo...
for i in {1..100}; do clustalo --auto -i sim\_$i/human_gapdh_Unaligned.FASTA -o sim\_$i/clustal/nucleotide/auto.fasta mafft --localpair --maxiterate 100 sim\_$i/human_gapdh_Unaligned.FASTA > sim\_$i/mafft/nucleotide/local_max100.fasta mafft --maxiterate 100 sim\_$i/human_gapdh_Unaligned.FASTA > sim\_$i/m...
#!/bin/bash cd $(dirname ${0}) rm -rf LambdaTool.egg-info/ build/ dist/ find . -name .ropeproject -type d | xargs rm -rf find . -name "*.pyc" -type f | xargs rm -f
<reponame>zentrillion/azure-iot-samples-node<filename>iot-hub/Quickstarts/read-d2c-messages/node_modules/azure-event-hubs/typings/lib/auth/aad.d.ts import { ApplicationTokenCredentials, DeviceTokenCredentials, UserTokenCredentials, MSITokenCredentials } from "ms-rest-azure"; import { TokenInfo, TokenProvider } from "./...
<filename>provision.go // Go library for the OnePlatform Provisioning API // http://docs.exosite.com/provision/ package goonep import ( // "fmt" "io/ioutil" "log" "net/http" "regexp" "strconv" "strings" "time" // "net/http/httputil" ) var VendorToken = "" var PROVISION_BASE = "/provision" var PROVISION_ACTI...
<gh_stars>1-10 import { Message, PrismaClient } from "@prisma/client" import { RepositoryError, UnknownRepositoryError } from "../../../../domain/repository/RepositoryError" import { ChangeEventHandler } from "../../../ChangeEventHandler" import { IMessageCommandRepository } from "../../../../domain/repository/command...
<reponame>lionelpa/openvalidation /* * Copyright 2019 <NAME> * * 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 * * ...
def product_of_list(nums): result = 1 for num in nums: result *= num return result if __name__ == '__main__': nums = [1, 2, 3] print(product_of_list(nums))
// Copyright 2004-present Facebook. All Rights Reserved. package com.facebook.cipher.jni; import com.facebook.crypto.keychain.KeyChain; import com.facebook.crypto.proguard.annotations.DoNotStrip; import com.facebook.jni.HybridData; /** * JNI wrapper for Conceal's Decrypt object in C++. */ public class CipherHybrid...
const express = require('express'); const app = express(); //create an array of books let books = [ { title: 'Harry Potter', author: 'J.K Rowling' }, { title: 'The Alchemist', author: 'Paul Coelho' }, { title: 'The Lord of the Rings', author: 'J.R.R Tolkien' }, ]; //GET endpoint app.get('/api/books', (req, res) =>...
<gh_stars>0 class OrderFullfillmentsController < ApplicationController before_action :find_item, only: [:show, :edit] def index @items = Item.all end def show end def edit @order = Order.find(params[:id]) end def update end def destroy end private def find_item ...
class TS_Texts: # __init__() init_error1 = "ts must be of type datetime.datetime or sptemp.zeit.Time_Period!" # value() def value(self, ts): if not isinstance(ts, (datetime.datetime, sptemp.zeit.Time_Period)): raise TypeError(self.init_error1) # Implement logic to r...
#!/bin/bash TASK=8 SHOT=25 LANG=id MODEL=ctrl_muniter MODEL_CONFIG=ctrl_muniter_base TASKS_CONFIG=iglue_fewshot_tasks_boxes36.dtu TRTASK=RetrievalxFlickrCO${LANG}_${SHOT} TEXT_TR=/home/projects/ku_00062/data/xFlickrCO/annotations/${LANG}/train_${SHOT}.jsonl FEAT_TR=/home/projects/ku_00062/data/xFlickrCO/features/xflic...
'use strict'; var MockLayoutManager = { width: window.innerWidth, fullscreenHeight: window.innerHeight, usualHeight: window.innerHeight, keyboardEnabled: false, match: function() { return true; }, mTeardown: function mlm_mTeardown() { this.width = window.innerWidth; this.fullscreenHeight = wi...
<filename>Spring-Framework-v5.3.13/spring-context-debug/src/main/java/com/kapcb/ccc/model/DebugBean.java package com.kapcb.ccc.model; /** * <a>Title: Bean </a> * <a>Author: Kapcb <a> * <a>Description: Bean <a> * * @author Kapcb * @version 1.0 * @date 2021/12/11 23:21 * @since 1.0 */ public interface DebugBean...
<reponame>ch1huizong/learning #!/usr/bin/env python # -*- coding:UTF-8 -*- import re address = re.compile(''' ((?P<name> ([\w.,]+\s+)*[\w.,]+) \s+ ) #name is no longer optional,名字必须 #LookAhead,断言前项 (?= (<.*>$) #wrapped | ([^<].*[^>]$) ...
#!/bin/bash export QSPEC=${CONDA_PREFIX}/q/spec.q
package org.f5n.aoc2020; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.HashMap; import java.util.Map; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annota...
package io.opensphere.mantle.data.impl; import java.util.Collection; import java.util.Collections; import java.util.Comparator; import java.util.List; import java.util.Map; import java.util.Set; import java.util.function.Predicate; import javax.swing.tree.DefaultMutableTreeNode; import javax.swing.tree.Mut...
#!/usr/bin/env bash set -euo pipefail -o posix cd "$(dirname "$0")" # List all possible platforms # NOTE: Not all of these combinations have been tested - this are just a list of # combinations where a build is possible platforms=( darwin/386 darwin/amd64 freebsd/386 freebsd/amd64 freebsd/arm ...
// main.rs #[macro_use] extern crate failure; #[macro_use] extern crate structopt; extern crate colored; extern crate notify; extern crate warp; use structopt::StructOpt; use notify::{Watcher, RecursiveMode, watcher}; use std::sync::mpsc::channel; use std::time::Duration; use std::path::PathBuf; use warp::{Filter, htt...
var myApp= angular .module("manageStates",['toaster', 'ngAnimate'],function($interpolateProvider) { $interpolateProvider.startSymbol('<%'); $interpolateProvider.endSymbol('%>'); }) .controller("StateController", function ($scope,$http,toaster) { $scope.reverseSort=false; $scope.district={ id:0,...
import org.apache.commons.io.IOUtils; import org.json.JSONObject; public class NearbyRestaurantsSearch { private static final String API_KEY = "Your_API_KEY_HERE"; public static void main(String[] args) { try { // Create the URL String url = "https://api.mapbox.com/geocoding/v5/mapbox.places/" + args[0] +...
<filename>Bomberman/Source/Bomberman/BombermanGameModeBase.cpp<gh_stars>0 #include "BombermanGameModeBase.h" // Sets default values ABombermanGameModeBase::ABombermanGameModeBase() { // Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it. PrimaryActorTick.bCa...
import turtle def create_ISS(shape, lat, long): # Create a turtle object representing the ISS iss = turtle.Turtle() # Set the shape of the ISS turtle iss.shape(shape) # Set the heading of the ISS turtle to face north (90 degrees) iss.setheading(90) # Calculate the screen coor...
# @Time : 2020/11/30 # @Author : <NAME> # @Email : <EMAIL> # UPDATE: # @Time : 2020/12/18 # @Author : <NAME> # @Email : <EMAIL> import math import re from collections import Counter from typing import List, Optional import numpy as np from nltk import ngrams from nltk.translate.bleu_score import sentence_bleu ...
import React, { Component } from 'react'; import kb from '../../../../api/knowledgebase'; import Explainer from '../../../ui/scaffold/Explainer/Explainer'; export default class MetricDescription extends Component { render() { return ( <div className='MetricDescription'> <h3> ...
class Child(Parent): def speak(): print("Hi") # Overriding the speak() def speak(self): print("Hi there!")
#!/bin/bash set -e npm run lint npm run build:cli npm run test:ci CURRENT=$(echo $(npm version | grep xunit-viewer | cut -d"'" -f4)) git commit -am "tested $CURRENT" npm version ${1-patch} npm publish LATEST=$(echo npm version | grep xunit-viewer | cut -d"'" -f4) npm run release:demo git add -A git commit -am "rel...
#!/bin/bash echo -e "Collecting code stats (typescript errors & more)" ERROR_COUNT_LIMIT=1005 DIRECTIVES_LIMIT=172 CONTROLLERS_LIMIT=139 ERROR_COUNT="$(./node_modules/.bin/tsc --project tsconfig.json --noEmit --strictNullChecks true | grep -oP 'Found \K(\d+)')" DIRECTIVES="$(grep -r -o directive public/app/**/* |...
import { Schema, model } from 'mongoose'; const UserSchema = new Schema({ email: String, password: String, name: String, title: String, gender: String, education: String, experience: String, isApproved: Boolean, isAdmin: Boolean, expNumber: { type: Number, min: 1, max: 10, required: true }, creat...
#!/usr/bin/env bash set -euf -o pipefail if [ -z "$RPI_TOOLS" ]; then echo "RPI_TOOLS not specified, exiting..." >> /dev/stderr exit 1 fi if [ -z "$BOOST_DIRECTORY" ]; then echo "BOOST_DIRECTORY not specified, exiting..." >> /dev/stderr exit 1 fi mkdir -p build-arm cd build-arm cmake .. -G "${1:-Ninja}" -DC...
<gh_stars>10-100 package resolver import ( "fmt" "github.com/miekg/dns" "github.com/chrisruffalo/gudgeon/util" ) type multiSource struct { name string sources []Source idx int } func newMultiSource(name string, sources []Source) Source { ms := &multiSource{ name: name, sources: sources, } re...
#!/bin/bash # variable holding the data URI data=$1 useProxy=$2; filename=$3 folder='/tmp/'; echo "Parameters: $data $useProxy $filename"; tempPreProcess="/tmp/$filename"; if [ -f "$folder$filename.nt.gz" ]; then echo "Datadump available in: $folder$filename.nt.gz"; else mkdir $tempPreProcess; export IFS="," f...
import { ComplexBase } from '@syncfusion/ej2-react-base'; import { IndexesModel } from '@syncfusion/ej2-charts'; /** * `SelectedDataIndex` directive represent the selected data in react Chart. * It must be contained in a Chart component(`ChartComponent`). * ```tsx * <ChartComponent> * <SelectedDataIndexesDire...
#!/usr/bin/env bash # Copyright 2019 Xilinx Inc. # # 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 ag...
<gh_stars>0 export const ROLE_ADMIN = 'ROLE_ADMIN';
<filename>jena-3.0.1/jena-arq/src/main/java/org/apache/jena/sparql/resultset/XMLInput.java /* * 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 ...
#!/bin/bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" source $DIR/../../conf.sh cd $DIR $PYTHON extract.py --file result_time.csv --queries 100 $PYTHON extract.py --file result_stholes.csv --queries 100 gnuplot 8_plot.gnuplot > model.pdf
def reverse_string(word): rev = "" for i in word: rev = i + rev return rev
#! /bin/sh # Get the OOPMH-LIB root directory from a makefile OOMPH_ROOT_DIR=$(make -s --no-print-directory print-top_builddir) #Set the number of tests to be checked NUM_TESTS=1 # Setup validation directory #--------------------------- rm -rf Validation mkdir Validation ############################################...
#!/bin/sh export MRUBY_CONFIG=`pwd`/.travis_config.rb if [ -z "${MRUBY_VERSION}" ] ; then export MRUBY_VERSION="3.0.0" fi if [ ! -d "./mruby/src" ]; then git clone https://github.com/mruby/mruby.git cd mruby git fetch --tags rev=`git rev-parse $MRUBY_VERSION` git checkout $rev cd .. fi (cd mruby; rake $1...
<reponame>typekev/react-mk import React from 'react'; import { act } from 'react-dom/test-utils'; import Enzyme, { mount } from 'enzyme'; import Adapter from '@wojtekmaj/enzyme-adapter-react-17'; import Keyboard, { type as typeFunction } from '../src/Keyboard'; Enzyme.configure({ adapter: new Adapter() }); describe('...
<reponame>taoluwork/MarksWill var MarksWill = artifacts.require("./MarksWill.sol"); contract('MarksWill', function() { /* it("should assert true", function(done) { var voting = Voting.deployed(); assert.isTrue(true); done(); }); */ const will = MarksWill.deployed(1123234112,22,33); ...
<reponame>jiawei397/deno-oak-nest<filename>src/decorators/module_test.ts import { assert, assertEquals } from "../../test_deps.ts"; import { defineModuleMetadata, getModuleMetadata, isModule, Module, } from "./module.ts"; Deno.test("isModule", () => { assert(!isModule(true)); assert(!isModule(false)); as...
#!/bin/sh rm test.sqlite sqlite3 test.sqlite < create_tables.sql
<reponame>AtChina/XTION-PM<gh_stars>1-10 /** * Author: changyingwei * Create Date: 2015-03-24 * Description: 前端工作流帮助文档 */ module.exports = function() { 'use strict'; var util = require('util'); process.stdout.write(util.format('\x1b[36m%s', 'Usage\n\n')); process.stdout.write(util.format('\x1...
package transcribe; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.util.concurrent.TimeUnit; import org.apache.commons.io.FileUtils; import org.apache.commons.lang3.RandomStringUtils; import com.amazonaws.SdkClientException; import com.amazona...
def hex_to_rgb(hex_code): if hex_code.startswith("#"): l = hex_code[1:] else: l = hex_code return [a / 255. for a in bytes.fromhex(l)]
<gh_stars>1-10 package main.methodRemovedInSuperclass; public abstract class SSMethodRemovedInSuperclass { }
#!/bin/bash # This publishes qiskit-superstaq to PyPI. cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd "$(git rev-parse --show-toplevel)" python setup.py bdist_wheel twine upload dist/* -u __token__ -p "$PYPI_API_KEY"
#!/usr/bin/env sh yarn run build git add dist/Naja.js dist/Naja.js.map
#!/bin/bash -e cd $(dirname $0) . d/buildaux/script_lib.sh git_dep https://github.com/abseil/abseil-cpp.git abseil git_dep https://github.com/tamaskenez/microlib.git microlib r1 git_dep https://github.com/fmtlib/fmt.git fmt cmake_dep microlib --try-use-ide cmake_dep abseil cmake_dep fmt -DFMT_TEST=0 -DFMT_DOC=0
/* 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. * <p/> * This library is distributed in the hope tha...
<gh_stars>1-10 /* * Copyright (c) Facebook, Inc. and its affiliates. * * 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 req...
package update import ( "fmt" "io/ioutil" "os" "path" "testing" "github.com/experimental-platform/platconf/platconf" "github.com/jarcoal/httpmock" "github.com/stretchr/testify/assert" ) func TestUpdateSetupPaths(t *testing.T) { tempDir, err := ioutil.TempDir("", "") assert.Nil(t, err) defer os.RemoveAll(t...
#!/bin/sh set -e luacheck package scripts targets
import { andThen, head, ifElse, inc, pipe, prop, uncurryN, } from 'ramda'; import useCollection from './useCollection'; import isNilOrEmpty from './internal/isNilOrEmpty'; import { docId, withoutId } from './internal/id'; /** * Handles the result of collection.insertOne in MongoDB Driver in a way that * it picks ...
package com.bc.ui.treebuilder; import java.io.File; import java.io.IOException; import java.util.HashMap; import java.util.Map; import javax.swing.JFileChooser; import javax.swing.JOptionPane; import javax.swing.JScrollPane; import javax.swing.JTree; import javax.swing.tree.TreeNode; import javax.xml.parser...
<gh_stars>0 /* * Copyright 2014-2020 chronicle.software * * http://www.chronicle.software * * 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...
#!/bin/sh # CYBERWATCH SAS - 2017 # # Security fix for USN-2704-1 # # Security announcement date: 2015-08-05 00:00:00 UTC # Script generation date: 2017-01-01 21:04:43 UTC # # Operating System: Ubuntu 12.04 LTS # Architecture: i386 # # Vulnerable packages fix on version: # - swift:1.4.8-0ubuntu2.5 # # Last versio...
<reponame>zhihuilai/read-bigint import { getFirstAndLast } from "./common"; // https://github.com/nodejs/node/blob/v13.9.0/lib/internal/buffer.js#L83-L101 export function readBigUInt64LE(buffer: Buffer, offset = 0): bigint { const { first, last } = getFirstAndLast(buffer, offset); const lo = first + ...
package text import ( "testing" "github.com/stretchr/testify/assert" ) func TestIDs(t *testing.T) { assert.Equal(t, 1010000, int(InfoSelfServiceLogin)) assert.Equal(t, 1020000, int(InfoSelfServiceLogout)) assert.Equal(t, 1030000, int(InfoSelfServiceMFA)) assert.Equal(t, 1040000, int(InfoSelfServiceRegistrat...
#!/bin/sh # Copyright (c) 2014-2016 The Pershyancoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. DIR=$(dirname "$0") [ "/${DIR#/}" != "$DIR" ] && DIR=$(dirname "$(pwd)/$0") echo "Using verify-commits data from...
# frozen_string_literal: true module DiscourseDev class Engine < Rails::Engine; end end
import tensorflow as tf import numpy as np # Prepare data reviews = [ <positive review 1>, <positive review 2>, <negative review 1>, <negative review 2> ] labels = [1, 1, 0, 0] # 1 for positive, 0 for negative # Tokenize the reviews tokenizer = Tokenizer(num_words= 1000) tokenizer.fit_on_texts(reviews) sequen...
#include <windows.h> #include <stdio.h> #pragma comment (lib,"user32.lib") main(){ SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, 2); return 0; }
const providedDependencies = new Map(); providedDependencies.set('jquery', { dependency: 'jira.webresources:jquery', import: { var: `require('jquery')`, amd: 'jquery', }, }); providedDependencies.set('lodash', { dependency: 'com.atlassian.plugin.jslibs:underscore-1.4.4', import: { var: `require(...
#!/bin/bash echo "List of environment variables used in the current session:" echo "" env | while read line ; do echo $line done
<filename>chrome/browser/google_apis/gdata_util.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. #ifndef CHROME_BROWSER_GOOGLE_APIS_GDATA_UTIL_H_ #define CHROME_BROWSER_GOOGLE_APIS_GDATA_UTIL_H_ #...
<reponame>hapramp/1Rramp-Android package com.hapramp.draft; public class DraftListItemModel { private String title; private int draftId; private String draftType; private String json; private String lastModified; public String getTitle() { return title; } public void setTitle(String title) { ...
#!/usr/bin/env bash set -e LATEST_PACKAGE_VERSION=$(gh api "repos/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}/releases/latest" | jq .tag_name -r) LATEST_PACKAGE_VERSION=${LATEST_PACKAGE_VERSION:1} echo "LATEST_PACKAGE_VERSION: ${LATEST_PACKAGE_VERSION}" echo "versions before modifying:" cat ./lerna.json ./p...
#!/bin/bash ################################################################################################### # SCRIPT FOR High-Fidelity and Low-Latency Universal Neural Vocoder based on # # Multiband WaveRNN with Data-driven Linear Prediction (MWDLP) # ########...
import React from "react"; import styled from "styled-components/native"; export default TextStyle = ({ ...props}) => { return <Text {...props}>{props.children}</Text>; }; const Text = styled.Text` color: ${(props) => props.color ?? "#DBDBDB"}; font-family: "Avenir"; margin: ${(props) => props.margin ?? 0}; padd...
import * as zjson from "../zjson" export class Schema { constructor(readonly columns: zjson.Column[]) {} flatten() { const flat = (cols: zjson.Column[], prefix = ""): zjson.Column[] => { return cols.flatMap((c) => { const name = prefix + c.name if (c.type == "record") { return ...
#!/bin/bash # Copyright 2019 The TensorFlow 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 require...
import promiseFromWXCallback from '../lib/promiseFromWXCallback'; const request = promiseFromWXCallback(wx.request); const host = 'https://service.mediamall.cccwei.com'; export default (config) => { try { const token = wx.getStorageSync('token'); if(config.path && config.path.indexOf('http://') ==0 ){ ...
<reponame>xeonray-origin/react-typescript-redux-template<filename>src/components/pages/products.tsx import React from 'react'; import { connect } from 'react-redux'; import { Typography } from '@material-ui/core'; const ProductsPage = (props: any) => { return ( <> <Typography variant={'h2'}>Products</Typog...
const { v4: uuidv4 } = require('uuid'); const { ObjectId } = require('mongodb'); const User = require('../../../src/models/User'); const Customer = require('../../../src/models/Customer'); const Contract = require('../../../src/models/Contract'); const Service = require('../../../src/models/Service'); const Event = req...
function factorial(x) { if (x <= 1) return x; return x * factorial(x-1); }
namespace ts.projectSystem { describe("unittests:: tsserver:: webServer", () => { class TestWorkerSession extends server.WorkerSession { constructor(host: server.ServerHost, webHost: server.HostWithWriteMessage, options: Partial<server.StartSessionOptions>, logger: server.Logger) { ...
<gh_stars>0 (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[91],{ /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/assets/js/views/JobWorkflow/StageTypes/Index.vue?vue&type=script&lang=js&": /*!**********************************************************...
<filename>smarthome-kit/home_automation/remote_hvac/module_display.h<gh_stars>1-10 /* display.h ----------------------------------------------------------------------------- Copyright (c) 2017, MikroElektonika - http://www.mikroe.com All rights reserved. ---------------------------------------------------...
sqlplus $SYS_USER/$SYS_PASS@$CONNECT_STRING as sysdba <<EOF >> $CRPSCRIPTS_DIR/logs/commonscriptsUserCreation.log drop user $PROCESS_SCHEMA_NAME cascade; create user $PROCESS_SCHEMA_NAME identified by $PROCESS_SCHEMA_PASS default tablespace $PROCESS_SCHEMA_TABLESPACE; grant resource to $PROCESS_SCHEMA_NAME; grant conne...