text
stringlengths
1
1.05M
'use strict'; const FunctionBuilderBase = require('../function-builder-base'); const WebGLFunctionNode = require('./function-node'); /** * @class WebGLFunctionBuilder * * @extends FunctionBuilderBase * * @desc Builds webGl functions (shaders) from JavaScript function Strings * */ module.exports = class WebGL2F...
import unittest from pyjo import Model, Field from pyjo.exceptions import RequiredFieldError, NotEditableField, FieldTypeError, ValidationError class TestModel(unittest.TestCase): def test_required_field(self): class A(Model): foo = Field(required=True) with self.assertRaises(Require...
<reponame>Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- /* TITLE Regular Polygon Chapter13Exercise18.cpp "<NAME> "Programming Principles and Practices Using C++"" COMMENT Objective: Create a class RegularPolygon that instantiates an objects using as paremeters: ...
#!/bin/sh # # Copyright (C) 2008, 2012, 2013 Internet Systems Consortium, Inc. ("ISC") # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWA...
#!/bin/bash mkdir build_release cd build_release OPENCL_ROOT_FLAG="-DOPENCL_ROOT=${PREFIX}" if [[ "`uname`" == "Darwin" ]] && [[ "${OSX_VARIANT}" == "native" ]] then OPENCL_ROOT_FLAG=""; fi cmake \ -G "Unix Makefiles" \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_PREFIX_PATH="${PREFIX}" \ -DCMAKE_INSTA...
<filename>Shared/Carthage/ImagePicker.framework/Headers/ImagePicker-Swift.h // Generated by Apple Swift version 4.2.1 effective-4.1.50 (swiftlang-1000.11.42 clang-1000.11.45.1) #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wgcc-compat" #if !defined(__has_include) # define __has_include(x) 0 #endif #...
<reponame>nedphae/contact-center-client<filename>app/components/Chat/DetailCard/panel/CustomerInfo.tsx import React from 'react'; import { useSelector } from 'react-redux'; import { useQuery } from '@apollo/client'; import CssBaseline from '@material-ui/core/CssBaseline'; import Container from '@material-ui/core/Conta...
/** * Scalar * Copyright 2013 The Alliance for Networking Visual Culture. * http://scalar.usc.edu/scalar * <EMAIL> * * Licensed under the Educational Community 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 * *...
/* ************************************************************************ * This file provides the declarations to configure and use the DMA module * on tm4c129encpdt * * Author: <NAME> * Date Created: 15th April 2021 * DAte Modified: 13th May 2021 * * ********************************************************...
<gh_stars>0 set array 1 set line 5000 set head on set pagesize 10000 set feedback on set trimspool on set numformat 9999999999999999.999 set colsep ";" set echo on SPOOL C:\BATCH_DETAILS.SPL accept BATCH_NO PROMPT 'Enter the batch no ==> ' SELECT * FROM DETB_BATCH_MASTER WHERE BATCH_NO='&BATCH_NO'; ...
#!/bin/bash -xe # If you mess with the build image, you must publish a new # image-v{X}.{Y}.{Z} tag. We can't automatically generate that tag, # because we can't figure out what the semver should be, because we # don't know the impact of what you've changed. So this script makes # sure that you created the tag. And si...
import { Vector2, Vector3 } from "./math.js"; import { RigidBody } from "./rigidbody.js"; // Children: ContactManifold, Joint export abstract class Constraint { public readonly bodyA: RigidBody; public readonly bodyB: RigidBody; protected beta = 0.0; // Coefficient of position correction (Positional error...
<gh_stars>0 package no.item.enonic.models; import java.time.LocalDate; public class User extends BasicUser { public String firstName; public String lastName; public String address1; public String address2; public String address3; public String zipCode; // PostCode public String countryId; ...
public IEnumerable<Domain.Models.Epic> GetEpicsSubscribedTo(int subscriberID) { var subscriptions = _context.Subscriptions .Include(w => w.Writer) .ThenInclude(r => r.RoleNavigation) .Include(s => s.Subscriber) .Where(s => s.SubscriberId == subscriberID); var m_subscriptions = s...
<gh_stars>10-100 package chylex.hee.world.feature.stronghold.doors; import java.util.Random; import chylex.hee.system.abstractions.Pos.PosMutable; import chylex.hee.system.abstractions.facing.Facing4; import chylex.hee.world.structure.StructureWorld; import chylex.hee.world.structure.dungeon.StructureDungeonPieceInst; ...
redis_server=../../bin/osx/redis-server redis_sentinel=../../bin/osx/redis-sentinel pushd .. $redis_server server-6380/redis.conf & $redis_sentinel server-6380/sentinel.conf & popd
#!/bin/bash ./systemd/install.sh ./udev/install.sh
SELECT name, department FROM employees WHERE years_of_experience > 5;
#include <vector> #include <memory> #include "URLLoaderThrottle.h" // Assuming the header file for URLLoaderThrottle is included void releaseThrottles(std::vector<std::unique_ptr<blink::URLLoaderThrottle>>& throttles) { throttles.clear(); // Clear the vector, releasing the memory held by unique pointers }
<filename>pkg/ibmcloud/cluster.go package ibmcloud import ( "bytes" "encoding/json" "fmt" "io" "net/http" "net/url" "sort" "strings" "sync" "time" devclustererr "github.com/codeready-toolchain/devcluster/pkg/errors" "github.com/codeready-toolchain/devcluster/pkg/log" "github.com/codeready-toolchain/devcl...
#!/bin/sh python3 test16.py --prefetch=2 --ds=db --db_pool=4 --db_host=['replace'] --db_port=['replace'] --db_pwd=['replace'] if [ $? -eq 0 ]; then sleep 15 #echo "Training complete, shutting down vm." | mail -s "Training Complete" 3110798@qq.com #echo 'syncing file system...' sync #echo 'shutting ...
require 'rails_helper' RSpec.feature 'submitting monthly service metrics' do let(:service) { FactoryGirl.create(:service, name: 'The Submitting Data Service') } let(:publish_token) { MonthlyServiceMetricsPublishToken.generate(service: service, month: YearMonth.new(2017, 9)) } specify 'submitting metrics' do ...
<reponame>nortal/spring-mvc-component-web<gh_stars>0 package com.nortal.spring.cw.core.web.component.event.confirmation; import com.nortal.spring.cw.core.web.component.Hierarchical; import com.nortal.spring.cw.core.web.component.global.GlobalLabel; import com.nortal.spring.cw.core.web.component.modal.ConfirmationModal...
choice="Pat\nAirsight\nBorne" prof=$(printf $choice | dmenu -i -p "Firefox User Profile") case $prof in "Pat") firefox --profile ~/.mozilla/firefox/*.default/ ;; "Airsight") firefox --profile ~/.mozilla/firefox/*.airsight/ ;; "Borne") firefox --profile ~/.mozilla/firefox/*.borne/ ;; *) ;; esac
cat affix_t1_in_t2.csv affix_t2_in_t1.csv f_w_rule_t1_in_t2.csv f_w_rule_t2_in_t1.csv whole_t1_in_t2.csv whole_t2_in_t1.csv> outfile.txt
from flask import Flask from flask_restplus import Api, Resource app = Flask(__name__) # create a Flask app api = Api(app) # initialize Flask-RESTplus # This is a dummy list of user posts. # In a real application these would # be pulled from a database. posts = [ {'user_id': 123, 'title': 'My post 1', 'content': 'Lo...
import java.util.ArrayList; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; public class URIPatternExtractor { public static List<String> extractVariableParts(String uriPattern) { List<String> variableParts = new ArrayList<>(); Pattern pattern = Pattern.compi...
#!/bin/bash : ${TRAVIS:="false"} : ${FAST:="false"} : ${test:=""} : ${CACHE:="false"} : ${CLEANUP:="true"} iter=10 if [ "$TRAVIS" != "false" ]; then set -o xtrace iter=1 fi if [ "$FAST" != "false" ]; then iter=1 fi set -o errexit set -o nounset if [ $# -lt 2 ]; then echo "Usage: $0 <mount cmd> <di...
#include "include/core/SkCanvas.h" #include "include/svg/SkSVGCanvas.h" extern "C" void C_SVG_Types(SkSVGCanvas *) {} extern "C" SkCanvas* C_SkSVGCanvas_Make(const SkRect* bounds, SkWStream* writer, uint32_t flags) { return SkSVGCanvas::Make(*bounds, writer, flags).release(); }
<filename>pkg/controller/rollout/context.go<gh_stars>0 /* Copyright 2022 The Kruise Authors. 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 r...
/** * Copyright 2021 Wayne * <p> * 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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by applicable law or agreed ...
<gh_stars>1-10 package com.jude.easy_crypto.signature; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; import java.security.SignatureException; public class SignHandler { private final SignInfo signInfo; public SignHandler(SignInfo signInfo) { this.signInfo =...
<gh_stars>0 const MODULE = Object('test-module'); Promise.resolve().then(() => require(`${MODULE}`)); Promise.resolve().then(() => require(`test-${MODULE}`));
GCP=cp GDIRNAME=dirname GBASENAME=basename GMKDIR=mkdir GMV=mv # paths export MITK_SRCDIR=REPLACEME_SV_TOP_SRC_DIR_MITK export MITK_BINDIR=REPLACEME_SV_TOP_BIN_DIR_MITK export MITK_BLDDIR=REPLACEME_SV_TOP_BLD_DIR_MITK # build type not used on linux export MITK_BLDTYPE= # primary directories to install into $GMKDIR...
<filename>backend/subdomains/files/routes/download.js const express = require('express'), router = express.Router(), path = require('path'), fs = require('fs'), {authInspector, ROLE} = require('../authManager'), { atob } = require('buffer'), crypto = require('crypto'), files = ...
<gh_stars>100-1000 import _ from 'lodash' import {limitIterator} from '../utils' function * traverseChild (option, child, traverse) { const childOutputs = traverse(child, option) // slight performance optimization if (child.props.id == null) { yield * childOutputs } else { for (let output of childOutp...
#!/usr/bin/env ash #================================================= # File name: ipv6-helper # Description: Install IPV6 Modules On OpenWrt # System Required: OpenWrt # Version: 1.0 # Lisence: MIT # Author: SuLingGG # Blog: https://mlapp.cn #================================================= Green_font_prefix="\033[3...
package com.roncoo.education.course.service.dao.impl; import java.util.HashMap; import java.util.List; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.BeanPropertyRowMapper; import org.springframework.jdbc.core.JdbcTemplate; import org.springfr...
package moze_intel.projecte.gameObjs.container; import java.util.function.Predicate; import moze_intel.projecte.gameObjs.blocks.MatterFurnace; import moze_intel.projecte.gameObjs.container.slots.MatterFurnaceOutputSlot; import moze_intel.projecte.gameObjs.container.slots.SlotPredicates; import moze_intel.projecte.game...
#!/bin/bash HERE=$(dirname $0) cd $HERE cat ./extension_list.txt | while read ext || [[ -n $ext ]]; do echo $ext code --install-extension $ext --force done
import { Component, OnInit } from '@angular/core'; import { Subscription, interval } from 'rxjs'; import { StateService } from 'src/app/service/state.service'; @Component({ selector: 'app-menu', templateUrl: './menu.component.html', styleUrls: ['./menu.component.css'] }) export class MenuComponent implements OnI...
#!/bin/bash # http://www.bagley.org/~doug/shootout/ # from David Pyke # bash doesnt do floating point :( but we dont need it # if we do fractional maths #declare -r A=3877 #declare -r C=29573 #declare -r M=139968 #LAST=42 #function gen_random(){ # LAST=$(( (($LAST * $A) + $C) % $M )) # # RETVAL=$(( ...
<reponame>mattk7/Telethon import logging import os import threading import warnings from datetime import timedelta, datetime from signal import signal, SIGINT, SIGTERM, SIGABRT from threading import Lock from time import sleep from . import version, utils from .crypto import rsa from .errors import ( RPCError, Bro...
import pandas as pd import numpy as np from sklearn.ensemble import RandomForestClassifier from sklearn.model_selection import train_test_split # Load the data and split into train and test sets data = pd.read_csv('stock_data.csv') X = data.iloc[:, :-1].values y = data.iloc[:, -1].values X_train, X_test, y_train, y_te...
import socket class PortScanner: def __init__(self, target, portlist): self.target = target self.portlist = portlist def initialize_scan(self): print('[+] Initializing scan...') print('[i] Target host: {}'.format(self.target)) print('[i] Ports: {}'.format(self.portlist)...
<reponame>manisoni28/sarkari package com.ghn.android.news.item; public class ItemAbout { private String Id; private String ComLogo; private String AppName; private String ComEmail; private String ComWebsite; private String ComDes; public String getId() { return Id; } public void se...
def second_largest(arr): max1 = max(arr) arr.remove(max1) max2 = max(arr) return max2 second_largest([10, 20, 30, 40, 50]) # Output: 40
<reponame>bikedataproject/go-bike-data-lib<filename>strava/model.go<gh_stars>0 package strava import ( "time" geo "github.com/paulmach/go.geo" ) // SubscriptionMessage : Struct that holds the ID of an individual webhook subscription type SubscriptionMessage struct { ID int `json:"id"` } // RefreshMessage : Struc...
-- phpMyAdmin SQL Dump -- version 3.2.3 -- http://www.phpmyadmin.net -- -- 호스트: localhost -- 처리한 시간: 18-05-13 16:18 -- 서버 버전: 5.1.41 -- PHP 버전: 5.2.12 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- 데이터베이스: `worf` -- CREATE DATABASE `worf` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; USE `worf`; -- ---------...
<gh_stars>0 package mechconstruct.util; import mechconstruct.MechConstruct; import org.apache.logging.log4j.Level; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; public class LogUtils { private static Logger logger = LogManager.getLogger(MechConstruct.MOD_ID); public stat...
// this gets replaced automatically document.querySelector("#updated-ts").innerText = new Date(/*TIMESTAMP*/0).toLocaleString(); const copybuffer = document.querySelector("#copybuffer"); function addEmotes(target, list) { const targetEl = document.querySelector(target); for (const emote in list) { if ...
#! /bin/sh BASEDIR=$(dirname $0) cd $BASEDIR/.. if [ -d build-mac ] then sudo rm -f -R -f build-mac fi #--------------------------------------------------------------------------------------------------------- #variables DEMO=0 if [ "$1" == "demo" ] then DEMO=1 fi VERSION=`echo | grep PLUG_VERSION_HEX config....
#!/usr/bin/env bash # Copyright (c) 2015-2016 Spotify AB. # # 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 ...
def remove_rubbish_words(data, rubbishList): """ Remove rubbish words from the given text data list. :param data: A list of text data where rubbish words need to be removed. :param rubbishList: A list of rubbish words that should be removed from the text data. :return: A new list containing the tex...
def substring_position(string, substring) return string.index(substring) end
<filename>src/components/AppearOnViewContainer/index.js import React, {useState} from 'react' import VisibilitySensor from 'react-visibility-sensor' import { useSpring, animated} from 'react-spring' import styles from './appear-on-view-container.module.scss' const AppearOnViewContainer = ({children}) => { c...
<gh_stars>0 package com.example_gzh.xiaoxiaoweather.util; import android.content.Context; import android.net.ConnectivityManager; import android.net.NetworkInfo; import com.example_gzh.xiaoxiaoweather.MyApplication; import okhttp3.OkHttpClient; import okhttp3.Request; /** * Created by <NAME> on 2017/6/11. */ pub...
import UIKit class ViewController: UIViewController { // Outlets @IBOutlet weak var tableView: UITableView! @IBOutlet weak var totalIncomeLabel: UILabel! @IBOutlet weak var totalExpensesLabel: UILabel! // Properties private var incomes = [Income]() private var expenses = [Expense]() private var totalIncome: ...
<filename>client/test/unit/common/services/httpRequestTracker.spec.js describe('httpRequestTracker', function () { var http, httpRequestTracker; beforeEach(module('services.httpRequestTracker')); beforeEach(inject(function ($injector) { httpRequestTracker = $injector.get('httpRequestTracker'); http = $in...
<filename>src/main/java/com/github/chen0040/leetcode/day17/package-info.java /** * Created by xschen on 12/8/2017. */ package com.github.chen0040.leetcode.day17;
#!/bin/bash # Copyright 2012/2014 Brno University of Technology (Author: Karel Vesely) # Apache 2.0 # Begin configuration. config= # config, which is also sent to all other scripts # NETWORK INITIALIZATION nnet_init= # select initialized MLP (override initialization) nnet_proto= # select...
#!/bin/bash set -euo pipefail cd "$( dirname "${BASH_SOURCE[0]}" )/.." goimports -w $(go list -f {{.Dir}} ./... | grep -v vendor | grep -v fosite$) goimports -w *.go
def stars_and_bars(n, k): count = 0 for i in range(k+1): j = n - i if j >= 0: count += 1 return count print(stars_and_bars(10, 10))
function isAnagram($str1, $str2){ if (strlen($str1) != strlen($str2)) { return false; } $arr1 = str_split($str1); $arr2 = str_split($str2); sort($arr1); sort($arr2); return ($arr1 == $arr2); } $result = isAnagram('elephant', 'pentahle'); echo $result;
<filename>acmicpc/1003/1003.py<gh_stars>1-10 fibo_element = [0, 1] def count_numbers(num:int): if num == 0: print('1 0') elif num == 1: print('0 1') else: length = len(fibo_element) if length < num + 1: for i in range(length, num +1): fibo_element...
#!/bin/bash # # Install Robolectric into the local Maven repository. # set -e PROJECT=$(cd $(dirname "$0")/..; pwd) if [ -z ${INCLUDE_SOURCE+x} ]; then SOURCE_ARG=""; else SOURCE_ARG="source:jar"; fi if [ -z ${INCLUDE_JAVADOC+x} ]; then JAVADOC_ARG=""; else JAVADOC_ARG="javadoc:jar"; fi echo "Building Robolectric..."...
import React from 'react'; import '../Header/Header.css'; import Typed from 'react-typed'; const Header = () => { return ( <div className="header-wrapper"> <canvas></canvas> <div className="main-info"> <h1><NAME>'s Portfolio</h1> <Typed c...
const jwt = require('jsonwebtoken'); const conf = require('../../config'); const {HttpError} = require('./error'); /** * 创建token * @param dat * @returns {*} */ const createToken = function (dat) { return jwt.sign(dat, conf.tokenObs, { expiresIn: conf.cookieOptions.maxAge / 1000 + 's' }); }; /** * 检测token...
'use strict'; // simple test file using low level put command based only on ssh2 lib const path = require('path'); const fs = require('fs'); const dotenvPath = path.join(__dirname, '..', '.env'); require('dotenv').config({path: dotenvPath}); const Client = require('ssh2'); const config = { host: process.env.SFT...
package im.status.keycard.globalplatform; import im.status.keycard.applet.Identifiers; import org.bouncycastle.util.encoders.Hex; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.security.SecureRandom; import im.status.keycard.io.APDUCommand; import im.status....
package io.cattle.platform.docker.process.account; import io.cattle.platform.archaius.util.ArchaiusUtil; import io.cattle.platform.core.constants.AccountConstants; import io.cattle.platform.core.constants.NetworkConstants; import io.cattle.platform.core.constants.NetworkServiceConstants; import io.cattle.platform.core...
#!/bin/sh # Copyright 2019 Google LLC # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. #################################### Scalar ################################### tools/xngen src/f32-gemm/scalar.c.in -D MR=1 -D NR=4 -D INC=0 -o src/...
package main /* i javad */ /*eslint-disable */ import ( "Aramooz/web/controllers" "time" "github.com/iris-contrib/middleware/cors" "github.com/kataras/iris" "github.com/kataras/iris/sessions" "github.com/kataras/iris/middleware/logger" "github.com/kataras/iris/middleware/recover" "github.com/kataras/iris/mvc...
<gh_stars>0 $(function () { $('#btnAdd').click(function () { var num = $('.clonedInput').length, // Checks to see how many "duplicatable" input fields we currently have newNum = new Number(num + 1), // The numeric ID of the new input field being added, increasing by 1 each time ...
symlink() { OVERWRITTEN="" if [ -e "$2" ] || [ -h "$2" ]; then OVERWRITTEN="(Overwritten)" if ! rm -r "$2"; then substep_error "Failed to remove existing file(s) at $2." fi fi if ln -s "$1" "$2"; then substep_success "Symlinked $2 to $1. $OVERWRITTEN" else...
//fonction onclick sur div //retourne la 1er carte //stock dans une variable //si la 1er variable exite on stock dans une 2e variable //fontction comparer les 2 variables var global_card = document.getElementsByClassName("cart"); var global_data = { first_card_value: "" , second_card_value: "", ...
"""A test class for testing the class CodeElement.""" from typing import List, Union from concepttordf import Concept from datacatalogtordf import URI import pytest from pytest_mock import MockFixture from rdflib import Graph from skolemizer.testutils import skolemization, SkolemUtils from modelldcatnotordf.modelldca...
import java.util.Optional; import java.util.stream.Stream; public interface TicketBusRepository extends MongoRepository<TicketBusEntity, String> { Optional<TicketBusEntity> findByReference(String reference); default Optional<TicketBusEntity> findByReference(String reference) { return findAll().stream(...
#pragma once #include "Graphics/Mesh.h" #include "Physics/BoundingBox.h" class ObjLoader { public: ~ObjLoader(); void LoadMeshData(const std::string& fileName); void LoadMeshData(const std::string& fileName, const std::string& matName); [[nodiscard]] std::vector<Vertex> GetVertices() const { return meshVertice...
package authcopy import ( "github.com/devopsfaith/krakend/config" "github.com/devopsfaith/krakend/logging" "github.com/gin-gonic/gin" ) const authHeader = "Authorization" const Namespace = "github_com/zean00/authcopy" //CopyConfig authcopy config type CopyConfig struct { CookieKey string QueryKey string Overw...
import { Component, OnInit } from '@angular/core'; import { _HttpClient } from '@delon/theme'; import { concat, merge, Observable, of } from 'rxjs'; declare var echarts : any ; @Component({ selector: 'app-dashboard', templateUrl: './dashboard.component.html', styleUrls : ['./dashboard.component.less'] }) export c...
<reponame>getmetamapper/metamapper """ Drop a table (`app`.`departments`) and re-create it with the same name. However, the underlying column structure has slightly changed. Example SQL: DROP TABLE `app`.`departments`; CREATE TABLE `app`.`departments` ( id SERIAL NOT NULL, category VARCHAR(40) NOT NULL, ...
// Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import TwitterSvg from '@rsuite/icon-font/lib/legacy/Twitter'; const Twitter = createSvgIcon({ as: TwitterSvg, ariaLabel: 'twitter', category: 'legacy', displayName: 'Twitter' }); export default Twitter;
from typing import List import re def count_word_occurrences(word: str, word_list: List[str]) -> int: count = 0 word = word.lower() for sentence in word_list: sentence = sentence.lower() count += len(re.findall(r'\b' + word + r'\b', sentence)) return count
#!/bin/bash # Copyright 2017 gRPC authors. # # 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 t...
package org.hiro; public class Stone { @Deprecated char[] st_name; String name; int st_value; }
<gh_stars>100-1000 export interface ColorGridProps { color: string; toneScale: Array<number>; }
/* THIS FILE AUTO-GENERATED FROM astra_core_api.cpp.lpp. DO NOT EDIT. */ // This file is part of the Orbbec Astra SDK [https://orbbec3d.com] // Copyright (c) 2015 Orbbec 3D // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You ma...
<gh_stars>0 import DynamicArray from '.'; describe('DynamicArray', () => { describe('constructor', () => { describe('when passing no argument', () => { it('initializes a dynamic array object with capacity of 10', () => { expect(new DynamicArray().capacity).toBe(10); }); }); describe(...
<reponame>Priapos1004/ML101<gh_stars>0 from azureml.core import Workspace if __name__ == "__main__": # creates a resource group with a ml workspace in it workspace_name = "irony-ws" subscription_id = "..." # insert your own subscription id resource_group = "irony" location = "West Europe" ...
#!/bin/bash HS=$(find src/ batchd-core/src batchd-amazonka/src batchd-docker/src/ batchd-libvirt/src -name \*.hs) stack exec -- hgettext -o po/batchd.pot -k __ -k __f -k __s -k __sf $HS cd po/ for PO in *.po do msgmerge -U $PO batchd.pot done
import { database } from "../services/firebase" function Reference(ref: string) { return( database.ref(database.getDatabase(), ref) ) } export {Reference}
/** * @author <NAME> */ import { connect } from 'react-redux'; import Chat from './chat'; import { loadMessages, putMessage } from './../../reducers/chat/actions'; import { signOut } from './../../reducers/session/actions'; const mapStateToProps = (state) => ({ ...state.chat, ...state.session, }); const mapDi...
<reponame>richardmarston/cim4j<filename>CGMES_2.4.15_27JAN2020/cim4j/ExcREXSFeedbackSignalKind.java package cim4j; import java.util.Map; import java.util.HashMap; import java.lang.ArrayIndexOutOfBoundsException; import java.lang.IllegalArgumentException; /* Type of rate feedback signals. */ public class ExcREXSFeedba...
const userModel = require('../models').model.User; const bcrypt = require('bcrypt'); const salt = bcrypt.genSaltSync(10); const userRoleModel = require('../models').model.UserRole; const fs = require('fs'); const userCtrl = {}; userCtrl.getMany = async function (req, res, next) { try { const query = req.q...
exec java -jar /inspectit-ocelot-configurationserver.jar
#!/bin/bash #SBATCH --account=def-dkulic #SBATCH --gres=gpu:1 # request GPU generic resource #SBATCH --cpus-per-task=2 #Maximum of CPU cores per GPU request: 6 on Cedar, 16 on Graham. #SBATCH --mem=8000M # memory per node #SBATCH --time=0-01:30 # time (DD-HH:MM) #SBATCH --output...
<reponame>sho-darp/gotunes package itunes // MiniplayerWindow the miniplayer window type MiniplayerWindow struct { Window }
<reponame>damymetzke/NodeBuildUtilities<gh_stars>1-10 declare module 'cck' { // disable this because of stupid source // eslint-disable-next-line @typescript-eslint/ban-types function check(val: Object, checkType: string, checkPara?: string): boolean; }
<filename>sandbox/src/main/java/de/cofinpro/techat/mvcozark/sandbox/controller/IndexController.java<gh_stars>0 package de.cofinpro.techat.mvcozark.sandbox.controller; import de.cofinpro.techat.mvcozark.shared.annotation.RequestHeader; import de.cofinpro.techat.mvcozark.shared.util.Utils; import org.slf4j.Logger; impo...