text
stringlengths
1
1.05M
#!/system/bin/sh # Author: Matthew Stapleton (Capsicum Corporation) <matthew@capsicumcorp.com> # Copyright: Capsicum Corporation 2016 # This file is part of Capsicum Web Server which is part of the iOmy project. # iOmy is free software: you can redistribute it and/or modify # it under the terms of the GNU General Pu...
import pandas as pd from sklearn.model_selection import train_test_split from sklearn.ensemble import RandomForestClassifier df = pd.read_csv('...') X = df.drop('winner', axis=1) y = df['winner'] X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2) model = RandomForestClassifier() model.fit(X_tra...
<reponame>UNIMIBInside/Business-Event-Exchange-Ontology package it.disco.unimib.model; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonSubTypes.Type; import com.fasterxml.jackson.annotation.JsonTypeInfo; /** * OneOfEventLocation */ //@JsonDeserialize(as = PostalAddress...
#!/usr/bin/env bash YW=`echo "\033[33m"` BL=`echo "\033[36m"` RD=`echo "\033[01;31m"` CM='\xE2\x9C\x94\033' GN=`echo "\033[1;92m"` CL=`echo "\033[m"` while true; do read -p "This will create a New Ubuntu 21.10 LXC. Proceed(y/n)?" yn case $yn in [Yy]* ) break;; [Nn]* ) exit;; * ) echo "Pl...
#!/usr/bin/env bash set -euo pipefail IPV6=${IPV6:-false} DUAL_STACK=${DUAL_STACK:-false} ENABLE_SSL=${ENABLE_SSL:-false} ENABLE_VLAN=${ENABLE_VLAN:-false} CHECK_GATEWAY=${CHECK_GATEWAY:-true} LOGICAL_GATEWAY=${LOGICAL_GATEWAY:-false} ENABLE_MIRROR=${ENABLE_MIRROR:-false} VLAN_NIC=${VLAN_NIC:-} HW_OFFLOAD=${HW_OFFLOAD...
import React from 'react'; import { connect } from 'dva'; import { Tree } from 'antd'; import PropTypes from 'prop-types'; const TreeNode = Tree.TreeNode; const ResTree = ({ restree, onDrop } ) => { const loop = data => data.map((item) => { if (item.children && item.children.length) { return <TreeNode key...
using System; using System.Collections.Generic; public class BitmapPixelChanges { private Dictionary<int, Color> pixelChanges; public BitmapPixelChanges(int[] coordinates, Color[] colors) { if (coordinates.Length != colors.Length) { throw new ArgumentException("Coordinate and c...
# This scripts deploys the yelb application on a single cloud instance. # It is enough to open port 80 on this instance and connect to its IP/FQDN. # Note some of these scripts require you to input the proper endpoints. # However these scripts have a default to "localhost" should no variable be set, so they by default...
<gh_stars>1-10 // 226. 翻转二叉树 // https://leetcode-cn.com/problems/invert-binary-tree/ package question226 import ( "testing" ) func Test_invertTree(t *testing.T) { t1 := &TreeNode{ Val: 4, Left: &TreeNode{ Val: 2, Left: &TreeNode{ Val: 1, }, Right: &TreeNode{ Val: 3, }, }, Right: &Tre...
/** * Created by <EMAIL> on 2019/3/14. */ import "./style.less"; import React,{PureComponent} from 'react'; export default class Steps extends PureComponent{ constructor(props){ super(props); } render(){ const {total,idx} = this.props; return ( <div className="steps-wrapper"> { ...
require 'rails_helper' RSpec.describe "inventory_adjustments/show", type: :view do before(:each) do @inventory_adjustment = assign(:inventory_adjustment, InventoryAdjustment.create!( :inventory_tally => nil, :purchase => nil, :box_item => nil, :total_cost => 2, :adjustment_quantity ...
#!/bin/sh ## ## Copyright (c) 2014 The WebM project authors. All Rights Reserved. ## ## Use of this source code is governed by a BSD-style license ## that can be found in the LICENSE file in the root of the source ## tree. An additional intellectual property rights grant can be found ## in the file PATENTS. All c...
list = [x for x in range(1,101) if x % 3 == 0] print(list)
<gh_stars>1-10 /* Author: <NAME> * Created: 01-01-2021 13:02:07 */ #include <stdio.h> int main() { printf("Hello World\n"); return 0; }
def to_palindrome(string): if len(string) == 0: return string mid = len(string) // 2 left = string[:mid] right = string[mid+1:] # reverse the right string right = right[::-1] return left + string[mid] + right
<gh_stars>1-10 import { Container } from "./container"; import { Measure } from "../measure"; /** * Class used to create a 2D stack panel container */ export declare class StackPanel extends Container { name?: string | undefined; private _isVertical; private _manualWidth; private _manualHeight; pr...
#!/bin/bash # # Copyright contributors to the ibm-storage-odf-operator project # # 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 re...
#!/bin/bash # default values hostName="localhost" userName="Administrator" password="password" bucketName="cloudpass" bucketPort="11211" cbDefaultBucketName="cloudpass" sessionBucketName="appsession" # verify default and exit on missing values if [ $# -eq 0 ] || [ "$1" == "" ]; then echo "No parameter passed, use de...
void insertionSort (int arr[], int n) { int i, key, j; for (i = 1; i < n; i++) { key = arr[i]; j = i - 1; while (j >= 0 && arr[j] > key) { arr[j + 1] = arr[j]; j = j - 1; } arr[j + 1] = key; } } int main() { ...
package ru.job4j.search; import org.junit.Test; import java.util.ArrayList; import static org.hamcrest.core.Is.is; import static org.junit.Assert.*; /** * PhoneDictionaryTest. * * @author <NAME> (<EMAIL>) * @version $Id$ * @since 0.1 */ public class PhoneDictionaryTest { @Test public void whenFindByNam...
<reponame>julianhyde/clapham package net.hydromatic.clapham.parser; import net.hydromatic.clapham.graph.Grammar; import net.hydromatic.clapham.graph.Graph; import net.hydromatic.clapham.graph.Node; import net.hydromatic.clapham.graph.NodeType; import net.hydromatic.clapham.graph.Symbol; /** * TODO: * * @author <N...
from copy import deepcopy from typing import Any def clone_object(obj: Any) -> Any: """ Create a deep copy of the given object to prevent alteration of its defaults. Args: obj: Any Python object (e.g., list, dictionary, class instance) Returns: A deep copy of the input object """ retu...
// Copyright 2017-2021, University of Colorado Boulder /** * Bounds2 tests * * @author <NAME> (PhET Interactive Simulations) * @author <NAME> (PhET Interactive Simulations) */ import Bounds2 from './Bounds2.js'; import Matrix3 from './Matrix3.js'; import Rectangle from './Rectangle.js'; import Vector2 from './Ve...
def power(x, n): result = 1; # Multiply the number n times for _ in range(n): result *= x; return result; x = 5 n = 3 power = power(x, n); print("The value of {} raised to the power {} is {}.".format(x, n, power))
<reponame>proletarius101/git-config-user-profiles import * as sgit from "simple-git/promise"; import { workspace, window } from "vscode"; import { getProfile } from "./../config"; import * as gitconfig from "gitconfiglocal"; import { Profile } from "../models"; import { Messages } from "../constants"; import { Logger }...
<reponame>pulsar-chem/BPModule import pulsar as psr def load_ref_system(): """ Returns beta-l-lyxopyranose as found in the IQMol fragment library. All credit to https://github.com/nutjunkie/IQmol """ return psr.make_system(""" C 1.4299 0.2461 0.7896 O 0.4230 ...
const express = require('express') const path = require('path') const port = 3000 const app = express() // serve static js file from dist dir app.use(express.static('dist')) // if not a static file from dist, serve default index.html file for any request app.get('*', (req, res) => { res.sendFile(path.resolve(__dir...
import requests # Get the GitHub user data from the repo url = 'https://api.github.com/repos/user/example-repo/contents/data.json' r = requests.get(url) data = r.json() # Print data to console for d in data: print(d)
<gh_stars>0 declare const _default: (req: any, res: any) => Promise<void>; /** * @oas [delete] /regions/{id}/countries/{country_code} * operationId: "PostRegionsRegionCountriesCountry" * summary: "Remove Country" * x-authenticated: true * description: "Removes a Country from the list of Countries in a Region" * p...
package os.failsafe.executor; import org.junit.jupiter.api.Test; import java.time.LocalDateTime; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; class TaskShould { @Test void return_false_on_cancel_if_task_is_not_cancelable_because_it...
def print_items(items): """ Print each item in the list. """ for item in items: if type(item) == int or type(item) == str: print(item) else: raise TypeError("Input cannot be of type {type(item)}")
#!/bin/bash # set the environment to be fully automated export DEBIAN_FRONTEND="noninteractive" # update system apt-get update apt-get upgrade -y apt-get install -y wget curl unzip unzip wget daemon python-setuptools \ software-properties-common git-core ca-certificates # Install OpenJDK 8 # Sets language to U...
#! /bin/bash # This script updates the the code repos on Raspbian for Robots. ################################################ ######## Parsing Command Line Arguments ######## ################################################ # definitions needed for standalone call PIHOME=/home/pi DEXTER=Dexter DEXTER_PATH=$PIHOME/$D...
#!/usr/bin/env zsh # # Script for bootstraping your shell environment. # # Author: # Larry Gordon # # License: # The MIT License (MIT) <http://psyrendust.mit-license.org/2014/license.html> # ------------------------------------------------------------------------------ # ------------------------------------------...
export interface AbstractInviteModel { email?: string; expireDate?: number; expireSeconds?: number; createdDate?: number; subject?: string; body?: string; name?: string; type?: string; customData?: any; token?: string; lastSent?: number; roles?: string[]; permissions?...
package db; import java.util.ArrayList; import java.util.Arrays; import model.Category; public class CategoryManager extends DBManager{ // 대품목ID가 일치한 품목정보 목록을 가져온다. public ArrayList<Category> findByBigCategoryId(String bigCategoryId) throws Exception{ ArrayList<String> tableColumns = getTableColumns...
# Build documentation SOURCEDIR=. BUILDDIR=../docs BUILDTYPE="$1" CACHEDIR=_cache if [ "$BUILDTYPE" = "" ]; then BUILDTYPE="html" fi poetry run sphinx-build -b $BUILDTYPE -d _cache -a $SOURCEDIR $BUILDDIR
// Main class public class Discount { // Method to apply 10 % discount to the shopping cart public static void applyDiscount(List<Item> items) { for (Item item : items) { item.price = item.price * 0.9; } } public static void main(String[] args) { // Initialize array of items List<Item> items = new ArrayList<...
<!DOCTYPE HTML> <html> <head> <title>User Form</title> </head> <body> <form action="" method="post"> <h2>User Form</h2> <label>Name:</label><input type="text" name="name" /><br/> <label>Email:</label><input type="text" name="email"/><br/> <label>Favorite color:</label> <select name="color"> <option valu...
import QueryError from "~utils/errors/QueryError"; import { Fail, Success } from "~helpers/response"; import { USER_NOT_FOUND } from "~helpers/constants/responseCodes"; import { ACCOUNT_STATUS } from "~helpers/constants/models"; export default { User: { async avatar(user) { if (user.avatar === undefined) {...
alias rg="rg --hidden --smart-case"
#!/bin/bash set -o errexit set -o nounset set -o pipefail OS_ROOT=$(dirname "${BASH_SOURCE}")/../.. source "${OS_ROOT}/hack/util.sh" source "${OS_ROOT}/hack/cmd_util.sh" os::log::install_errexit # Cleanup cluster resources created by this test ( set +e oc delete all,templates --all exit 0 ) &>/dev/null # Thi...
<filename>assets/js/generator.js /* Elements */ const backgroundColorSelect = document.getElementById("background-color-select"); const fontColorSelect = document.getElementById("font-color-select"); const hoverColorSelect = document.getElementById("hover-color-select"); const idSelect = document.getElementById("id-sel...
/* * Copyright (c) 1991, 1992, 1993 Silicon Graphics, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * that (i) the above copyright notices and this permission notice appear in * all copies of the softwar...
/** * Copyright 2012 <NAME>. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. <NAME> licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain ...
#!/bin/bash # ------------------------------------------------------------------------ # Copyright 2018 WSO2, Inc. (http://wso2.com) # # 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:...
# require './example' require './calc' # require './chuck_norris' $stdout.sync = true warmup do |app| client = Rack::MockRequest.new(app) client.get('/') end run Sinatra::Application
#!/bin/sh # Run headers_$1 command for all suitable architectures # Stop on error set -e do_command() { if [ -f ${srctree}/arch/$2/include/asm/Kbuild ]; then make ARCH=$2 KBUILD_HEADERS=$1 headers_$1 else printf "Ignoring arch: %s\n" ${arch} fi } archs=$(ls ${srctree}/arch) for arch in ${archs}; do case ${a...
<filename>src/aui-form-builder/js/aui-form-builder-field-types.js /** * The Form Builder Field Types Component * * @module aui-form-builder * @submodule aui-form-builder-field-types */ /** * `A.FormBuilder` extension, which is responsible for all the logic related * to field types. * * @class A.FormBuilderFie...
#!/bin/bash FN="IlluminaHumanMethylationEPICanno.ilm10b2.hg19_0.6.0.tar.gz" URLS=( "https://bioconductor.org/packages/3.10/data/annotation/src/contrib/IlluminaHumanMethylationEPICanno.ilm10b2.hg19_0.6.0.tar.gz" "https://bioarchive.galaxyproject.org/IlluminaHumanMethylationEPICanno.ilm10b2.hg19_0.6.0.tar.gz" "http...
import Foundation func waitThenRunOnMain(delay: Double, closure: () -> Void) { let dispatchTime = DispatchTime.now() + delay DispatchQueue.main.asyncAfter(deadline: dispatchTime, execute: closure) }
<reponame>pick-stars/flinkx<filename>flinkx-connectors/flinkx-connector-elasticsearch6/src/main/java/com/dtstack/flinkx/connector/elasticsearch6/options/DtElasticsearch6Options.java package com.dtstack.flinkx.connector.elasticsearch6.options; import org.apache.flink.configuration.ConfigOption; import org.apache.flink....
this.x.$require("../array/index.js").then(function () { Function.prototype._X_CLOUD_INJECT = function (globalThis) { //注入 globalThis = globalThis || {}; globalThis._data_ = {}; var runStr = "(" + (function (fun) { return fun.toString().replace(/((?!\().)*(((?!(\{|\=\>)).)*)(\{|\=\>)([\s\S]*)/, functi...
#!/bin/sh if echo "$1" | grep -Eq 'i[[:digit:]]86-'; then echo i386 else echo "$1" | grep -Eo '^[[:alnum:]_]*' fi
#!/usr/bin/env bash # Requires notify-send.py (pip) save_file() { if [ -z "$FILENAME" ]; then FILENAME="$(zenity --file-selection --save --confirm-overwrite --filename="screenshot$(date +%Y%m%d%H%M%S).png")" || return 1 fi cp "$TMPFILE" "$FILENAME" echo "Saved" } clipboard() { xclip -sele...
#!/usr/bin/python # This script has been updated with the Sudy drills # a string inside a string x= "There are %d types of people." % 10 binary= "binary" do_not = "don't" # a string inside a string y = "Those who know %s and those who %s." % (binary, do_not) # Now print it out. print x print y # Print is again with...
<filename>src/main.ts<gh_stars>0 import { NestFactory } from '@nestjs/core'; import { SwaggerModule, DocumentBuilder, SwaggerCustomOptions, } from '@nestjs/swagger'; import { AppModule } from './app.module'; import helmet from 'helmet'; import { logger } from './common/middlewares/logger.middlewares'; async func...
<reponame>jvm-odoo/jvm<filename>src/url/url.service.ts import { InjectRepository } from '@nestjs/typeorm' import { Repository } from 'typeorm' import { UrlEntity } from './url.entity' export class UrlService { constructor( @InjectRepository(UrlEntity) private readonly urlRepository: Repository<Url...
drop table if exists `sys_user`; drop table if exists `sys_resource`; drop table if exists `sys_permission`; drop table if exists `sys_role`; drop table if exists `sys_role_resource_permission`; drop table if exists `sys_group`; drop table if exists `sys_user_group`; drop table if exists `sys_auth`; create table `sys_...
<reponame>dbulaja98/ISA-2020-TEAM19<filename>backend/src/main/java/com/pharmacySystem/mappers/GradeMapper.java package com.pharmacySystem.mappers; import com.pharmacySystem.DTOs.CreateGradeDTO; import com.pharmacySystem.DTOs.EmployeeGradeDTO; import com.pharmacySystem.DTOs.MedicineGradeDTO; import com.pharmacySystem.D...
<filename>gmall-wms-interface/src/main/java/com/atguigu/gmall/wms/api/GmallWmsApi.java package com.atguigu.gmall.wms.api; import com.atguigu.gmall.common.bean.ResponseVo; import com.atguigu.gmall.wms.entity.WareSkuEntity; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bi...
package com.comp.admin.utils; /** * */ public class ConstantUtil { public static final String DEFAULT_PASSWORD = "<PASSWORD>"; public static final String SESS_MENU= "menus"; public static final String SESS_MODULE= "module"; public static final String SESS_USER = "currUser"; public sta...
SELECT * FROM Student WHERE age BETWEEN 25 AND 35;
#Choose a target target_name="Zapp-App" # Get project directory path current_pwd="$PWD" echo "Current pwd dir is $current_pwd" pods_dir=`cd "Pods/"; pwd` echo "Current Pods dir is $pods_dir" #project_dir=`cd "../../"; pwd` #cd "$current_pwd" # Get .xcodeproj file path project_file=`find "$current_pwd" -maxdepth 1 -...
<gh_stars>10-100 // Package vagrantutil is a high level wrapper around Vagrant which provides an // idiomatic go API. package vagrantutil import ( "bufio" "errors" "fmt" "io/ioutil" "os" "path/filepath" "strings" "github.com/koding/logging" ) //go:generate stringer -type=Status -output=stringer.go type Sta...
#include <gtest/gtest.h> #include <plog/Log.h> #include <plog/Appenders/ConsoleAppender.h> #include <plog/Formatters/MessageOnlyFormatter.h> int main(int argc, char **argv) { plog::ConsoleAppender<plog::MessageOnlyFormatter> appender; plog::init(plog::verbose, &appender); testing::InitGoogleTest(&argc, argv); re...
apt-get update && apt-get install -y wget wget https://github.com/AdoptOpenJDK/openjdk16-binaries/releases/download/jdk-16%2B36/OpenJDK16-jdk_x64_linux_hotspot_16_36.tar.gz -O jdk.tar.gz tar -xzf jdk.tar.gz -C /opt/ mv /opt/jdk-16+36 /opt/jdk
<gh_stars>1-10 /* * Copyright 2021 <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 * * Unless required by applicable law or agr...
import { useContext } from 'react'; import ToolboxContext from '../context'; const useLanguage = () => { const { language } = useContext(ToolboxContext); return language; }; export default useLanguage;
# !/bin/bash # # Copyright IBM Corp. All Rights Reserved. # # SPDX-License-Identifier: Apache-2.0 # FABRIC_CA="$GOPATH/src/github.com/hyperledger/fabric-ca" FABRIC_CAEXEC="$FABRIC_CA/bin/fabric-ca" TESTDATA="$FABRIC_CA/testdata" SCRIPTDIR="$FABRIC_CA/scripts/fvt" CSR="$TESTDATA/csr.json" HOST="http://localhost:8888" R...
<filename>main.py # -*- coding: utf-8 -*- import tornado.web import tornado.ioloop import tornado.gen from twython import Twython import tornadoredis import redis import os, sys, json import argparse import ConfigParser import logging class Status(tornado.web.RequestHandler): def get(self): user_key = sel...
#!/bin/sh if [ "$#" -ne 1 ] || ! [ -f "$1" ]; then echo "Usage: $0 <path-to-binary>" exit 1 fi EXE="$(basename "$1")" TARGET="$(cd "$(dirname "$1")"; pwd)/$EXE" sizeof() { du --apparent-size --block-size=1 "$1" | cut -f1 } BEFORE="$(sizeof "$TARGET")" strip -s "$TARGET" && echo "$EXE stripped: $BEFORE -> $(si...
from pkgbuilder.pkgsource import PkgSource from pkgbuilder.command import command_exec class PkgSourceGit(PkgSource): type = "git" def init(self): super().init() exec_cmd = ["git", "clone", self.url, self.src_path] command_exec(exec_cmd) def update(self): super().update()...
#include "unity.h" void app_main() { unity_run_menu(); }
# Common test suite configuration. # Sourced by test case scripts (through lib.sh), # and mock programs (through lib-init-mock.bash). set -eEuo pipefail shopt -s lastpipe IFS=$'\n' export LC_COLLATE=C test_globals_initial=$(comm -13 <(compgen -e | sort) <(compgen -v | sort)) if [[ -n ${ACONFMGR_CURRENT_TEST+x} ]] t...
<filename>moduliths-events/moduliths-events-jpa/src/main/java/org/moduliths/events/jpa/JpaEventPublicationRegistry.java /* * Copyright 2017-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Y...
/* * Copyright (C) 2013 salesforce.com, 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 ...
<reponame>jbwyme/action-destinations import type { Settings } from './generated-types' import type { BrowserDestinationDefinition } from '../../lib/browser-destinations' import { browserDestination } from '../../runtime/shim' import appboy from '@braze/web-sdk' import trackEvent from './trackEvent' import updateUserPro...
<filename>node_modules/googleapis/build/src/apis/testing/index.d.ts /*! THIS FILE IS AUTO-GENERATED */ import { AuthPlus } from 'googleapis-common'; import { testing_v1 } from './v1'; export declare const VERSIONS: { 'v1': typeof testing_v1.Testing; }; export declare function testing(version: 'v1'): testing_v1.Test...
<filename>demo/PictureWidget/index.js<gh_stars>1-10 import './picture-widget.scss'; import PictureWidget from './PictureWidget'; export { PictureWidget };
SELECT c.name AS 'Customer Name', o.total AS 'Total Order Value' FROM customers c INNER JOIN orders o ON c.id = o.customer_id GROUP BY c.id HAVING SUM(o.total) > amount;
import server from './index' import 'jest' describe('server', () => { it('should be server', async () => { const res = await server expect(res).toBeDefined() return res.stop() }) })
/* * Copyright 2020 GridGain Systems, Inc. and Contributors. * * Licensed under the GridGain Community Edition License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.gridgain.com/products/software/community-edition...
<reponame>LeticiaISilveira/python-boilerplate from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals import six from .compat import unicode def yn_input(text, yes='yes', no='no', default='yes'): """ Asks a yes/no question and return the answer. ...
<gh_stars>100-1000 /* * Copyright © 2020 Lisk Foundation * * See the LICENSE file at the top-level directory of this distribution * for licensing information. * * Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation, * no part of this software, including this file, may be copied, modi...
#!/bin/bash function usage() { echo "usage: external_dependencies.sh" echo " => execute this is a directory and it will try to find all " echo " external (not metwork) dependencies (with ldd)" } if test "${1:-}" = "--help"; then usage exit 0 fi ( find . -type f -name "*.so*" -exec ldd {} 2>/...
<reponame>nimoqqq/roses<filename>kernel-d-validator/validator-api/src/main/java/cn/stylefeng/roses/kernel/validator/api/validators/date/DateValueValidator.java /* * Copyright [2020-2030] [https://www.stylefeng.cn] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except...
#!/bin/bash -e cd /domjudge-src/domjudge* chown -R domjudge: . sudo -u domjudge ./configure -with-baseurl=http://localhost/ sudo -u domjudge make domserver make install-domserver sudo -u domjudge make docs make install-docs
# Import the necessary libraries import tensorflow as tf from tensorflow.keras.preprocessing.text import Tokenizer # Create the Tokenizer tokenizer = Tokenizer() # Fit the Tokenizer to the data tokenizer.fit_on_texts(X_train) # Generate sequences from text X_train_sequences = tokenizer.texts_to_sequences(X_train) X...
<reponame>onearmbandit/MTAV import "TweenMax"; import ScrollMagic from "ScrollMagic"; import "animation.gsap"; import "debug.addIndicators"; import Swiper, { Navigation } from "swiper"; Swiper.use([Navigation]); require("../../scss/website/components/mtav-swiper.scss"); require("../../scss/website/home-page.scss"); ...
#include "mzpch.h" #include "WindowsWindow.h" #include "Mazel/Events/ApplicationEvent.h" #include "Mazel/Events/MouseEvent.h" #include "Mazel/Events/KeyEvent.h" #include "Platform/OpenGL/OpenGLContext.h" namespace Mazel { static bool s_GLFWInitialized = false; static void GLFWErrorCallback(int error_code, const c...
package com.wpisen.trace.agent.trace; import java.util.*; import java.util.concurrent.ConcurrentHashMap; import com.wpisen.trace.agent.collect.Event; import com.wpisen.trace.agent.collect.EventType; import com.wpisen.trace.agent.common.util.Assert; import com.wpisen.trace.agent.core.*; /** * 当前会话信息管理 * * @since ...
<reponame>descholar-ceo/rwbanks const { getBanks, getBank } = require("./index"); console.log(getBanks()); // get a list of all licensed banks getBanks((error, banks) => { console.log(banks); }); // get a bank by swiftcode getBank("BKIGRWRW", function (error, bank) { consol...
<filename>src/main/java/com/bullhornsdk/data/model/response/list/customobject/ClientCorporationCustomObjectInstance24ListWrapper.java package com.bullhornsdk.data.model.response.list.customobject; import com.bullhornsdk.data.model.entity.core.customobject.ClientCorporationCustomObjectInstance24; import com.bullhornsdk...
import Mastodon, { WebSocket as SocketListener, Status, Notification, Instance, Response } from 'megalodon' import log from 'electron-log' import { LocalAccount } from '~/src/types/localAccount' const StreamingURL = async (account: LocalAccount): Promise<string> => { if (!account.accessToken) { throw new Error('...
package com.shape.converter.kmltosdo.kml.service; import org.apache.commons.lang3.exception.ExceptionUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.shape.converter.kmltosdo...
<reponame>hallyn/lxd<gh_stars>0 package main import ( "encoding/json" "fmt" "net/http" "os" "os/exec" "path" "strconv" "github.com/gorilla/mux" "gopkg.in/lxc/go-lxc.v2" "github.com/lxc/lxd/shared" ) func snapshotsDir(c *lxdContainer) string { return shared.VarPath("lxc", c.name, "snapshots") } func snap...
#!/bin/sh -e mkdir -p ~/.ssh cp /integration/client_test_rsa ~/.ssh/id_rsa chmod -R 700 ~/.ssh cat >~/.ssh/config <<EOF Host sshportal Port 2222 HostName sshportal Host testserver Port 2222 HostName testserver Host * StrictHostKeyChecking no ControlMaster auto SendEnv TEST_* EOF set -x ...
struct Task { let name: String var isComplete: Bool } class TodoList { var tasks = [Task]() func addTask(name: String) { let task = Task(name: name, isComplete: false) tasks.append(task) } func removeTask(at index: Int) { tasks.remove(at: index) } func markTaskComplete(at index: Int) { tasks[index].isComplete = tru...
<gh_stars>0 package com.wilson.java.treenode.search; import java.util.List; public class Node { private String value; private List<Node> children; public Node(String value, List<Node> children) { this.value = value; this.children = children; } public Node() { } public String value() { return this.valu...