text
stringlengths
1
1.05M
import 'regenerator-runtime/runtime' import React from 'react' import { Route, Switch, BrowserRouter } from 'react-router-dom' import { Provider } from "react-redux" import { createStore, applyMiddleware } from "redux" import createSagaMiddleware from 'redux-saga' import rootReducer from "store/reducers" import root...
import React, { useCallback } from 'react'; import { useRoute, useNavigation, RouteProp } from '@react-navigation/native'; import { Formik } from 'formik'; import IAchievement from 'modules/selectedGame/domain/entities/IAchievement'; import useRequestAchievementUnlockController from 'modules/selectedGame/infra/contro...
#!/bin/bash -e #bdereims@vmware.com git pull cd containers make build-all exit 0
import { IsEmail, IsNotEmpty, MaxLength, MinLength, Validate } from 'class-validator'; import { ApiProperty } from '@nestjs/swagger'; import { RegistrationNumber } from 'src/auxiliary/validators/registrationNumber.validator'; /** * **Create User DTO** * * [[CreateUserDto]] is responsible for handling input and val...
export default ngModule => { ngModule.constant('API_ROUTES', { users: 'users/', signIn: 'users/sign_in/', register: 'users/register', reset: 'users/reset', recintos: 'locals/', canchas: 'fields/', regions: 'regions/', reservations: 'reservations/', sendMessage: 'message/' }); };
package org.insightcentre.nlp.saffron.authors; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class AuthorsApplication { /** * The entry point of application. * * @param args the input arguments...
durdnndir=exp_dnn/tts_dnn_dur_3_delta_quin5/ dnndir=exp_dnn/tts_dnn_train_3_deltasc2_quin5/ datadir=data/eval_test spk=slt srate=48000 delta_order=2 mcep_order=60 bndap_order=25 voice_thresh=0.5 alpha=0.55 fftlen=4096 [ -f path.sh ] && . ./path.sh; . parse_options.sh || exit 1; rm -rf $datadir mkdir -p $datadir awk ...
<gh_stars>0 package com.infamous.framework.http.core; class ParamPart extends BodyPart<String> { public ParamPart(String name, Object value, String contentType) { super(name, value == null ? "" : String.valueOf(value), contentType); } @Override public boolean isFile() { return false; ...
# -*- coding: utf-8 -*- """Gio.Notification() com Gio.Application(). No Microsoft Windows é exibido: ```bash (MainWindow.py:6376): GLib-GIO-WARNING **: 15:10:59.027: Notifications are not yet supported on Windows. ``` """ import gi gi.require_version(namespace='Gtk', version='3.0') gi.require_version(namespace='Not...
<reponame>Skalar/quickbooks-ruby<filename>spec/support/oauth_helpers.rb module OauthHelpers def construct_oauth FakeWeb.allow_net_connect = false oauth_consumer = OAuth::Consumer.new("app_key", "app_secret", { :site => "https://oauth.intuit.com", :request_token_path => "/oauth/v...
( echo "DROP database $1 ;"; echo "CREATE DATABASE $1 WITH OWNER $2 ;"; echo "\q"; ) | sudo -u postgres psql rm -f cell_database/migrations/* touch cell_database/migrations/__init__.py rm -f cycling/migrations/* touch cycling/migrations/__init__.py rm -f filename_database/migrations/* touch filename_database/migratio...
#!/bin/bash #@libertyunix #Simple bash script to 1st ping all ips in a range, then discover services, pipe output to a file for each services, then further explore these services #Sry I suk @code echo "Enter Client Name" read clientname mkdir $clientname cd $clientname echo "Enter IP range: " read ips nmap -sn -vv -...
/* * 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 fr.calamus.common.db.core; import fr.calamus.common.db.model.RequestBuilder; import fr.calamus.common.model.BaseEntityMap; imp...
#!/bin/bash -ex #export DJANGO_SETTINGS_MODULE=cloudbook_host_server.settings.testing #lexport PYTHONPATH=$WORKSPACE/venv/lib/python2.7 stop_server(){ pkill -f "manage.py runserver" || return 0 } stop_server echo "after stopserver" find src -name *.pyc | xargs rm virtualenv "$WORKSPACE/env" source "$WORKSPACE/env/bi...
#!/bin/sh `dirname $0`/launcher/jlaunch.sh `dirname $0`/examples.conf jlibs.examples.xml.xsd.XSDOutlinePanelTest $*
Tests.prototype.StorageTests = function() { module("HTML 5 Storage"); test("should exist", function() { expect(1); ok(typeof(window.openDatabase) == "function", "Database is defined"); }); test("Should open a database", function() { var db = openDatabase("Database", "1.0", "HTML5 Database API examp...
import {get} from "lodash" VXApp = { ...VXApp, ...{ /** * Get key information from the current user as necessary to establish subscriptions. * * @param {string} userId Optional user ID. * @return {object} Result object. */ getSubscriptionParameters(userId) { try { ...
#!/bin/bash cp -R -u -p .env.development .env sleep 1 composer install chown -R www-data: /var/www/ chown -R 1000: /var/www/.docker/dbdata chmod 777 -R /var/www/ php artisan migrate sleep 1 php artisan cache:clear #php artisan key:generate sleep 1 php artisan config:cache php-fpm
#!/usr/bin/env sh set -ex # Set up the exact set of dependant packages case "$(uname -s)" in CYGWIN*) ### From ocaml-ci-scripts # default setttings SWITCH="${OPAM_COMP}" OPAM_URL='https://dl.dropboxusercontent.com/s/b2q2vjau7if1c1b/opam64.tar.xz' OPAM_ARCH=opam64 if [ "$PROCESSOR_ARCHITEC...
# frozen_string_literal: true RSpec.describe Malfunction::Malfunction::Context, type: :concern do include_context "with an example malfunction" it { is_expected.to delegate_method(:contextualized?).to(:class) } it { is_expected.to delegate_method(:allow_nil_context?).to(:class) } describe ".contextualized?" ...
#include <stm32f4xx.h> #include "SysControl.h" int main(void) { #ifdef IWDG_ENABLE // Halt independent watch dog while debugging. DBGMCU->APB1FZ |= DBGMCU_APB1_FZ_DBG_IWDG_STOP; #endif SysControl ctrl; ctrl.run(); // No return from here. return 0; }
#!/bin/bash function is_int() { return $(test "$@" -eq "$@" > /dev/null 2>&1); } ssh-add -D git init git config --global --unset user.name git config --global --unset user.email git config user.name "0187773933" git config user.email "collincerbus@student.olympic.edu" ssh-add -k /Users/morpheous/.ssh/githubWinStitch L...
<gh_stars>10-100 import mx from '../../multiplex'; import * as mocks from './_mocks'; import { qmodule, qtest } from '../../qunit'; qmodule('linq-take-while'); var limit = 3; var count = limit; function simpleNumericPredicate(t) { return t <= limit; } qtest('basic "take-while" test', function (assert) { ...
python3 ../python/train_v2.py \ -b 1 \ -n base_embeddings_only_standard_vocab \ -ms base \ -e 4 \ -s 512 \ -jc '../../assin/T5_configs_json/ptt5-standard-vocab-base-config.json' \ --train_embedding_only
<reponame>mikhail-timofeev-epam/ITNight2019 import { ACTION_SIMPLE_SIGN_IN } from "./SignInActionTypes"; import { NavigationActions } from "react-navigation"; import apiAction from "./ApiActions"; import { AUTH_TYPES } from "../constants/index"; export const simpleSignIn = authData => dispatch => { const payload =...
// Copyright 2020 The Kubernetes Authors. // SPDX-License-Identifier: Apache-2.0 package filter import ( "fmt" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "sigs.k8s.io/cli-utils/pkg/common" ) // PreventRemoveFilter implements ValidationFilter interface to determine // if an object should not be pruned (d...
<gh_stars>0 const FileSystem = require('fs') const __ = require('./const') const Receiver = require('./receiver') const Try = require('./fn.try.catch') const Return = require('./fn.try.return') const WebAccount = require('./web.account') const Web = require('./fn.web') const WebUI = require('./web.ui') const WebReques...
#!/bin/sh set -e -x /usr/lib/postgresql/10/bin/initdb ${PGDATA} echo "archive_mode = on" >> /var/lib/postgresql/10/main/postgresql.conf echo "archive_command = '\ AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE \ AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY \ AWS_ENDPOINT=http://s3:9000 \ AWS_S3_FORCE_PATH_S...
# -*- coding: utf-8 -*- import torch.nn as nn import torch.nn.functional as f class MnistCNN(nn.Module): """ CNN Network architecture. """ def __init__(self): super(MnistCNN, self).__init__() self.conv1 = nn.Conv2d(1, 10, kernel_size=5) self.conv2 = nn.Conv2d(10, 20, kern...
#!/bin/bash set -e if [[ "$OSTYPE" == "darwin"* ]]; then realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"; } ROOT=$(dirname $(dirname $(realpath "$0"))) else ROOT=$(dirname $(dirname $(readlink -f $0))) fi # Unit Tests if [[ "$OSTYPE" == "darwin"* ]]; then cd $ROOT ; ulimit -n 4096 ; ATOM_SHELL_INTE...
<filename>packages/arbiter-x-bitfinex/src/model/index.js export * from './Balance'; export * from './Order'; export * from './Ticker';
#!/bin/bash function backoff { local max_attempts=${ATTEMPTS-5} local timeout=${TIMEOUT-1} local attempt=0 local exitCode=0 while (( $attempt < $max_attempts )) do set +e "$@" exitCode=$? set -e if [[ $exitCode == 0 ]] then break fi echo "Failure! Retrying in $timeo...
var group__DAP__Config__Initialization__gr = [ [ "DAP_SETUP", "group__DAP__Config__Initialization__gr.html#ga6d4656af10c47ec0d6c0389be2dbb4bb", null ], [ "RESET_TARGET", "group__DAP__Config__Initialization__gr.html#gaa0feceaeee69d69927d8a9beb0272dd7", null ] ];
#!/bin/bash echo "~~~> OS: $OS" LINUX="L" OSX="O" WINDOWS="W" echo "~~~> Will build the following executables:" if [[ "$OS" == *"$OSX"* ]]; then echo " OSX" fi if [[ "$OS" == *"$WINDOWS"* ]]; then echo " WINDOWS" fi if [[ "$OS" == *"$LINUX"* ]]; then echo " LINUX" fi #--- fail if any com...
def prime_factors(n): factors = [] i = 2 while (i * i <= n): if (n % i == 0): factors.append(i) n //= i else: i += 1 if (n > 1): factors.append(n) return factors
def word_frequency(text): # Remove punctuation and convert text to lowercase text = text.lower().replace('.', '').replace(',', '').replace('!', '').replace('?', '') words = text.split() word_count = {} for word in words: if word in word_count: word_count[word] += 1 e...
<filename>www/actors/water.js /** * @fileoverview Provide the Water class. * @author <EMAIL> (<NAME>) */ /** * Constructor for the Water class. * @constructor * @extends {ace.BaseClass} */ ace.Water = function(game, room) { ace.base(this, game, room); this.name = 'Water'; }; ace.inherits(ac...
'use strict'; const chalk = require('chalk'); const helpers = require('../helpers'); describe(`logging`, () => { it(`should change default schema`, async function () { const logger = jest.fn(); const differ = helpers.getDiffer({ logging: logger }); await differ.sync(); expect(logger).toHaveBeenCalle...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.badrobots.y2012.technetium.commands.autonomousCommands; import com.badrobots.y2012.technetium.commands.CommandBase; /* * @author 1014 Programming Team */ public class AutoOrient extends Comma...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.closeCircled = void 0; var closeCircled = { "viewBox": "0 0 512 512", "children": [{ "name": "g", "attribs": {}, "children": [{ "name": "path", "attribs": { "d": "M256,33C132.3,33,32,133.3,32,257c...
<filename>src/utils/pad.js module.exports = function pad (content) { return ( content .trim() .split(/\n\r?/) .map(line => ' ' + line) .join('\n') + '\n' ) }
<reponame>wuximing/dsshop "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var util_1 = require("@antv/util"); var formatter_1 = require("../../util/formatter"); var LabelParser = /** @class */ (function () { function LabelParser(cfg) { this.config...
def removeduplicates(list_of_string): result = [] for item in list_of_string: if item not in result: result.append(item) result.sort() return result list_of_string = [['b', 'a', 'd'], ['c', 'a', 'd'], ['a', 'f', 'g']] print(removeduplicates(list_of_string))
import { Matrix } from 'matrix-calculus'; import { T } from '../../layers'; import { Signals, SignalsErrors } from '../../signals'; declare type Data = { output: Signals; errors: SignalsErrors; layersPair: T.LayersPair; }; declare const calcDelta: ({ output, errors, layersPair }: Data) => Matrix; export def...
import React, {useState} from 'react'; import Box from '@mui/material/Box'; import Stack from '@mui/material/Stack'; import InputLabel from '@mui/material/InputLabel'; import MenuItem from '@mui/material/MenuItem'; import FormControl from '@mui/material/FormControl'; import Select, { SelectChangeEvent } from '@mui/mate...
<gh_stars>1-10 #ifndef SPRITE_H_INCLUDED #define SPRITE_H_INCLUDED #include "Shader.h" class Mesh; class Sprite { private: Shader::Uniform* modelMatrixUniform; Shader::Uniform* scaleUniform; Shader::Uniform* rotationMatrixUniform; Shader::Uniform* colorUniform; Mesh* mesh; Vector3f position...
<gh_stars>0 package com.atjl.retry.api.option; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @ApiModel(value = "只使用分页功能 的 选项") public class PageOption { public PageOption() { } @ApiModelProperty(value = "服务名(必填),如果使用registeBean方式注册,服务名必须为简写且首字母小写的类名,即...
def removeVowels(str): vowels = ('a', 'e', 'i', 'o', 'u') res = "" for char in str: if char.lower() not in vowels: res += char return res print(removeVowels("Hello World"))
use rustc_middle::ty::{Ty, TyCtxt, AdtDef, subst::SubstsRef}; use rustc_middle::ty::layout::TyLayout; use rustc_data_structures::fx::FxHashSet; fn analyze_adt(ty: Ty<'_>, tcx: TyCtxt<'_>, visited_types: &mut FxHashSet<Ty<'_>>) -> (bool, bool) { if visited_types.contains(&ty) { return (false, false); } ...
#!/bin/bash # # modify by hiyang @ 2016-12-19 clear echo "${CBLUE} Init CentOS${CEND}" # closed Unnecessary services and remove obsolete rpm package echo "STEP 1: ${CMSG}closed Unnecessary services and remove obsolete rpm package${CEND}" [ "${CentOS_RHEL_version}" == '7' ] && [ "$(systemctl is-active Net...
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES source /usr/local/opt/asdf/asdf.sh
#!/bin/bash export CFLAGS="-O2 -fPIC" ./configure --prefix=$PREFIX \ --enable-shared \ --enable-python \ --with-jasper=$PREFIX make make install
#!/bin/bash SCRIPT=$(readlink -f "$0") && cd $(dirname "$SCRIPT") # --- Script Init --- set -e set -o pipefail mkdir -p log rm -R -f log/* # --- Setup run dirs --- find output/* ! -name '*summary-info*' -type f -exec rm -f {} + mkdir output/full_correlation/ rm -R -f work/* mkdir work/kat/ mkdir work/full_correlat...
<filename>src/training/slidewindow/E76_Hard_MinimumWindowSubstring.java package training.slidewindow; import org.junit.jupiter.api.Test; import java.util.function.BiFunction; import static org.junit.jupiter.api.Assertions.assertEquals; /** * 给你一个字符串 s 、一个字符串 t 。返回 s 中涵盖 t 所有字符的最小子串。 * 如果 s 中不存在涵盖 t 所有字符的子串,则返回空字符...
(function() { 'use strict'; angular .module('app.station') .controller('StationOverviewCtrl', StationOverviewCtrl); StationOverviewCtrl.$inject = [ '$mdDialog', 'GoogleMapDefaultOptions', '_sensors', '_groups', '_parameters', 'GoogleMapIcons', 'stationStorage' ]; ...
#!/bin/bash toggle() { xdotool key Caps_Lock } case $BLOCK_BUTTON in 1) toggle ;; # left click 2) toggle ;; # middle click 3) toggle ;; # right click esac echo "CAPS" echo "CAPS" xset -q | grep "Caps Lock: *on" > /dev/null 2>&1 && echo "#00FF00" || echo "#FF0000"
def sum_of_squares(sequence): numbers = list(map(int, sequence.split())) sum_squares = sum(num**2 for num in numbers) return sum_squares input_sequence = "5 5 5 5 5" result = sum_of_squares(input_sequence) print(result) # Output: 125
. "$(dirname ${BASH_SOURCE[0]})/InitializeEnvironment.sh" pkill -9 -l GVFS.FunctionalTests pkill -9 -l git pkill -9 -l gvfs pkill -9 -l GVFS.Mount pkill -9 -l prjfs-log if [ -d ~/GVFS.FT ]; then rm -r ~/GVFS.FT fi
#! /usr/bin/env sh python freeze.py mv about about.html
SELECT c.name FROM orders o INNER JOIN customers c ON c.id = o.customer_id WHERE o.quantity > 5;
#include <queue> class Queue { private: std::queue<int> q; public: void enqueue(int val) { q.push(val); } int dequeue() { int val = q.front(); q.pop(); return val; } int size() { return q.size(); } bool empty() { return q.empty(); ...
// Autogenerated from library/elements.i package ideal.library.elements; public interface readonly_equality_comparable extends readonly_value, any_equality_comparable { }
<gh_stars>1-10 package de.rieckpil.blog; import java.math.BigDecimal; import java.math.RoundingMode; import java.util.Objects; import java.util.concurrent.ThreadLocalRandom; public class ObjectsRequireNonNullUpdate { public static void main(String[] args) { transferMoney(null, null); transferMoney(null, new Big...
<reponame>anticipasean/girakkafunc package cyclops.stream.spliterator.push; import cyclops.stream.spliterator.CopyableSpliterator; import java.util.Spliterator; import java.util.Spliterators.AbstractSpliterator; import java.util.function.Consumer; import java.util.stream.Collector; public class CollectingSinkSpliter...
from scipy.interpolate import splrep, splev def estimate_interest_rate(time_points, interest_rates, time): # Perform spline interpolation tck = splrep(time_points, interest_rates) estimated_rate = splev(time, tck) return estimated_rate # Example usage time_points = [0, 1, 2, 3, 4] interest_rates = [5,...
<gh_stars>1-10 // Copyright 2021 99cloud // // 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...
#!/bin/sh set -e set -u set -o pipefail function on_error { echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" } trap 'on_error $LINENO' ERR if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy # frameworks to, so exit 0 (signalling the...
package aufgabe9_5; public abstract class Weihnachtsobjekt { // utf8: "Köpfchen in das Wasser, Schwänzchen in die Höh." -CIA-Verhörmethode protected int x, y; protected boolean fallend = true; protected boolean markedForDeath = false; public Weihnachtsobjekt(int x, int y) { this.x = x; this.y = y;...
from sqlalchemy import * from migrate import * meta = MetaData() def upgrade(migrate_engine): meta.bind = migrate_engine job_history = Table('job_history', meta, autoload=True) job_history_items_count = Column('items_count', Integer) job_history_items_count.create(job_history) def downgrade(migrate_e...
import FormHelperText from '@material-ui/core/FormHelperText'; import React, { useState, useRef, useEffect } from 'react'; import Styled from './styled'; import { SelectProps } from './types'; import { InputLabel, MenuItem, Select as MuiSelect } from '@material-ui/core'; export const Select = ({ options, id, lab...
<gh_stars>10-100 package com.lbs.server.conversation import com.lbs.api.json.model.IdName import com.lbs.bot.model.Command import com.lbs.server.conversation.Book.BookingData import com.lbs.server.conversation.StaticData.{FindOptions, FoundOptions, LatestOptions, StaticDataConfig} import com.lbs.server.conversation.b...
package gotelegram //Update represents an incoming update type Update struct { UpdateID int `json:"update_id"` Message Message `json:"message"` EditedMessage Message `json:"edited_message"` ChannelPost Message `json:"channel_post"` EditedChannelPost Message `json:"edited_channel_p...
word_list = ['She', 'said', 'I'm', 'so', 'excited']
angular.module("wust.config").config(RoutesConfig); RoutesConfig.$inject = ["$stateProvider", "$urlRouterProvider", "$locationProvider"]; function RoutesConfig($stateProvider, $urlRouterProvider, $locationProvider) { $stateProvider.state("page", { abstract: true, templateUrl: `components/page/page...
package com.testvagrant.ekam.dataclients; import com.google.gson.reflect.TypeToken; import com.testvagrant.ekam.commons.data.DataSetsClient; import java.util.List; public class ListDataClient extends DataSetsClient { public <T> List<T> getList(String fileName) { return getValue(fileName, new TypeToken<List<T>...
<reponame>JLLeitschuh/datasift-java package com.datasift.client; import com.datasift.client.exceptions.AuthException; import com.datasift.client.exceptions.DataSiftException; import com.datasift.client.exceptions.JsonParsingException; import io.higgs.core.func.Function2; import io.higgs.http.client.Request; import io....
#!/usr/bin/env bash set -euxo pipefail cargo check cargo check --example hal cargo fmt -- --check
def average(a, b, c): return (a + b + c) / 3.0 print(average(1,2,3)) # Output: 2.0
'use strict'; process.env.NODE_ENV = 'test'; //Require the dev-dependencies let chai = require('chai'); let chaiHttp = require('chai-http'); let server = require('../server'); let should = chai.should(); let pdfjsLib = require('pdfjs-dist'); let binaryParser = require('./lib/test-tools.js').binaryParser; chai.use(chai...
cpuCount=`more "/proc/cpuinfo" | grep 'cpu cores' | wc -l` echo "There are $cpuCount installed CPU cores in the PC" if [ $cpuCount -lt $1 ] then echo "Cannot perform task, more CPU cores required" fi
/* * Copyright (C) 2015 Google 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 agreed to ...
import express from 'express' import login from './login/login' import register from './register/register' const registryRouter = express.Router() // Change to post in prod registryRouter.get('/login', login) registryRouter.post('/register', register) export default registryRouter
#include <Shlwapi.h> #include "GetThisPath.h" // #pragma comment(lib, "shlwapi.lib") TCHAR* GetThisPath(TCHAR* dest, size_t destSize) { if (!dest) return NULL; if (MAX_PATH > destSize) return NULL; DWORD length = GetModuleFileName( NULL, dest, destSize ); PathRemoveFileSpec(dest); return dest; ...
<gh_stars>1-10 package org.egovframe.rte.fdl.logging.sample; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.springframework.stereotype.Component; @Component("logLevelDebug") public class LogLevelDebug { private static Logger logger = LogManager.getLogger(LogLevelDebug...
<reponame>XiaoLin1995/vite-plugin-lint<filename>src/index.ts import eslintPlugin from './eslint' import stylelintPlugin from './stylelint' export { eslintPlugin, stylelintPlugin }
package com.lewisallen.rtdptiCache.tests; import com.lewisallen.rtdptiCache.RtdptiCacheApplication; import org.junit.jupiter.api.Test; class RtdptiCacheApplicationTest { @Test void main() { RtdptiCacheApplication.main(new String[]{}); } }
#ifndef _GDT_H #define _GDT_H 1 void gdt_init(); #endif
<reponame>masogit/dashboard var express = require('express'); var http = require('http-proxy'); var path = require('path'); var app = express(); var proxy = http.createProxyServer(); var bodyParser = require('body-parser'); var fs = require('fs'); app.use(bodyParser.urlencoded({ 'extended': 'true' })); // parse applic...
<gh_stars>10-100 export const ANIMATED_COMPONENT_TRANSITION_MS = 200; const cubic = `${ANIMATED_COMPONENT_TRANSITION_MS}ms cubic-bezier(0, 0, 0, 1.07)`; const transitions = { cubic, }; export default transitions;
#!/usr/bin/env bash if [[ "$TMUX_FZF_SED"x == ""x ]]; then TMUX_FZF_SED="sed" fi FZF_DEFAULT_OPTS=$(echo $FZF_DEFAULT_OPTS | $TMUX_FZF_SED -r -e '$a --header="select a key binding"') CURRENT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" if [[ "$TMUX_FZF_OPTIONS"x == ""x ]]; then TARGET_ORIGIN=$(tmux lis...
package com.anomalydetect.IsolationTree; import com.anomalydetect.Tool.DisplayTool; import com.anomalydetect.Tool.FileTool; import org.junit.Before; import org.junit.Test; import java.io.FileNotFoundException; public class IsolationTreeToolTest { public double[] testData; @Before public void setUp() thr...
<filename>src/org/opoo/oqs/core/mapper/BeanPropertyMapper.java /* * $Id$ * * Copyright 2006-2008 <NAME>. 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 * * ...
python transformers/examples/language-modeling/run_language_modeling.py --model_name_or_path train-outputs/512+0+512-N-IP/7-model --tokenizer_name model-configs/1024-config --eval_data_file ../data/wikitext-103-raw/wiki.valid.raw --output_dir eval-outputs/512+0+512-N-IP/7-512+0+512-N-VB-ADJ-ADV-first-256 --do_eval --pe...
""" Check if a linked list is sorted in ascending order or not """ class Node: def __init__(self, data = None): self.data = data self.next = None def is_sorted_ascending(head): node = head while node and node.next: if node.data >= node.next.data: return False ...
#!/bin/bash # Copyright 2018 - 2021 Crunchy Data Solutions, 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 applicabl...
package section1; import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; import java.lang.Thread.State; import section1.Calculator; public class Main { public static void main(String[] args){ // Thread priority infomation System.out.printf("Minimum Priority: %s\n", Thre...
# frozen_string_literal: true RSpec.describe Resque::Plugins::Prioritize::ResqueSchedulerUtilExtension do describe '.constantize' do subject(:klass) { Resque::Scheduler::Util.constantize(klass_name) } context 'without priority' do let(:klass_name) { 'TestWorker' } it { is_expected.to eq TestWor...
module FML # Validations classes have two required methods: # # initialize(field, data, form) # create the validation. `field` is the FMLField object representing # the field in which the validation was created. `data` is the value # given to in the FML spec. `form` is the FMLForm within which...
<filename>internal/modeling/addresstree.go package modeling import ( "fmt" "github.com/lavalamp-/ipv666/internal" "github.com/lavalamp-/ipv666/internal/addressing" "github.com/lavalamp-/ipv666/internal/logging" "github.com/lavalamp-/ipv666/internal/persist" "net" ) type AddressTree struct { ChildrenCount uint...
from pymongo import * from datetime import datetime client = MongoClient() db = client.cbd collection = db.rest def insert_doc(json_doc): try: inserted_id = collection.insert_one(json_doc).inserted_id print("JSON FILE inserted") except Exception as e: print("Error: ", e) def change_en...