text
stringlengths
1
1.05M
package translations.terms; import translations.Localizable; import translations.Translatable; @Localizable public class ButtonTerms implements Translatable { public static final String NAME = "ButtonTerms"; @Override public String getBundleName() { return NAME; } public static final String OK = "OK"; pub...
/** * Copyright 2005 Sakai Foundation 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 * * http://www.osedu.org/licenses/ECL-2.0 * * Unless required by applicable law or a...
<gh_stars>100-1000 """ Code illustration: 4.01 @ Tkinter GUI Application Development Blueprints """ from configurations import * import model class Controller(): def __init__(self): self.init_model() def init_model(self): self.model = model.Model()
import { IGridRow } from '../../typings/interfaces' import { IGridOperationFactory } from '../../typings/interfaces/grid-operation-factory.interface' import { TPrimaryKey } from '../../typings/types' import { Operation } from '../operation.abstract' export class FilterRelatedDataRows extends Operation { constructor...
import { Component, h, Prop, Event, EventEmitter, Host, Listen } from '@stencil/core' import { ItemPosition } from '../../../utils/position' @Component({ tag: 'focusable-item', styleUrl: 'focusable-item.css', shadow: true }) export class FocusableItem { @Prop() isInTabSequence: boolean = false @Prop() positi...
#!/usr/bin/env bash # ==================================================================== # Tests Android cross-compiles # # Crypto++ Library is copyrighted as a compilation and (as of version 5.6.2) # licensed under the Boost Software License 1.0, while the individual files # in the compilation are all public domain...
#!/bin/bash set -e # setup ssh: allow key to be used without a prompt and start ssh agent export GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" eval "$(ssh-agent -s)" ######## Run notebook/word converter ######## # word converter using pandoc /fastpages/word2post.sh # notebook conve...
<filename>app.py #!/usr/bin/env python # encoding: utf-8 from flask import Flask, render_template, request, safe_join, send_from_directory import sys APP = Flask(__name__, static_folder="_build/html/_static", template_folder="_build/html") @APP.route("/_images/<path>") def page_images (path): return send_from_d...
<reponame>shershen08/angular2-web-cryptography import {NgModule} from '@angular/core'; import {CommonModule} from '@angular/common'; import {Observable} from 'rxjs/Observable'; import {CryptRSAOAEP} from './webcrypto.rsa-oaep.service'; import {CryptAESCBC} from './webcrypto.aes-cbc.service'; import { Utils } from './u...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
import Vue from 'vue' import Router from 'vue-router' import MeusDadosCadastrais from '@/pages/MeusDadosCadastrais' import FazerNovaTransacao from '@/pages/FazerNovaTransacao' import FazerSimulacao from '@/pages/FazerSimulacao' import Configuracoes from '@/pages/Configuracoes' import PainelDoCliente from '@/pages/Pain...
def extract_segments(input_string): if not input_string: # If input string is empty, return an empty list return [] segments = input_string.split('=') # Split the input string based on the "=" delimiter return segments
class OrderManager { private $db; public function __construct($db) { $this->db = $db; } public function addOrder($data) { $this->db->insert('orders', $data); $id = $this->db->insert_id(); return (isset($id)) ? $id : FALSE; } public function addDetailOrder($data...
jQuery(document).ready(function($){ var $form_modal = $('.cd-user-modal'), $form_login = $form_modal.find('#cd-login'), $form_signup = $form_modal.find('#cd-signup'), $form_forgot_password = $form_modal.find('#cd-reset-password'), $form_modal_tab = $('.cd-switcher'), $tab_login = $form_modal_tab.children('li...
#!/bin/bash export ANSIBLE_DISPLAY_SKIPPED_HOSTS="no" MANAGED_NODE=$1 if [[ ${MANAGED_NODE}. = "." ]]; then echo "Enter the name of the managed node: " read MANAGED_NODE fi _RHEL_RELEASE_MAJOR=$(ssh ${MANAGED_NODE} cat /etc/redhat-release | awk 'BEGIN{FS="release "}{split ($2, a, " "); split (a[1], b, "."); prin...
<filename>lang/py/cookbook/v2/source/cb2_20_2_sol_1.py import math class Rectangle(object): def __init__(self, x, y): self.y = x self.y = y def area(): doc = "Area of the rectangle" def fget(self): return self.x * self.y def fset(self, value): rati...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Note that the TomoPhantom package is released under Apache License, Version 2.0 Script to generate 4D (3D+time) analytical phantoms (wip: generation of 4D projection data ) If one needs to modify/add phantoms, please edit Phantom3DLibrary.dat @author: <NAME> """ impor...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = useLinkProps; var _core = require("@react-navigation/core"); var React = _interopRequireWildcard(require("react")); var _reactNative = require("react-native"); var _useLinkTo = _interopRequireDefault(require("./useLink...
<filename>src/features/placeOrder/__tests__/helpers-tests.ts import { shouldShowLimitOrderPriceWarning } from '../helpers'; describe('(place order) feature', () => { describe('shouldShowLimitOrderPriceWarning helper', () => { describe('Buy form', () => { test('Should show warning', () => { const mo...
<filename>src/icons/legacy/Exclamation.tsx // Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import ExclamationSvg from '@rsuite/icon-font/lib/legacy/Exclamation'; const Exclamation = createSvgIcon({ as: ExclamationSvg, ariaLabel: 'exclamation', category: 'legacy', ...
<reponame>marek-cel/fightersfs-tools /****************************************************************************//* * Copyright (C) 2020 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the "Software"), * to deal in the...
<reponame>bogdanbebic/InverseSquareRoot var searchData= [ ['rand_5fdoubles',['rand_doubles',['../namespacetest__vectors.html#a2a784f48ab0b7172f3a3a9a52f4958b6',1,'test_vectors']]], ['rand_5fsmall_5fdoubles',['rand_small_doubles',['../namespacetest__vectors.html#a46b38d738b5a05dd7136f3f69ea26566',1,'test_vectors']]]...
module.exports = { "up": (conn, cb) => { conn.query(` CREATE TABLE news (id int NOT NULL AUTO_INCREMENT, user_id int NOT NULL, headline varchar(191) NOT NULL, description mediumtext NOT NULL, source varchar(191) NOT NULL, created datetime NOT NULL, PRIMARY KEY (id), KEY fkIdx_99 (user_id), CONST...
<filename>interrogations/SideNavInterrogations.ts import SideNavElements from "../elements/SideNavElements"; export default { async checkIfSettings(): Promise<boolean> { return await SideNavElements.settings.exists(); }, };
var __extends = this.__extends || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } __.prototype = b.prototype; d.prototype = new __(); }; var view = require("ui/core/view"); var Placeholder = (function (_super) { __extends(Placeholder, ...
from typing import List def is_variable_list_sorted(variable_list: List[str]) -> bool: return variable_list == sorted(variable_list)
import * as React from 'react'; import * as ReactDOM from 'react-dom'; import Chat from './Chat'; ReactDOM.render(<Chat />, document.getElementById('root'));
#ifndef TEXT_H #define TEXT_H struct pixbuf; void text_draw(struct pixbuf *p, const char *text, int x, int y); #endif
/* * Copyright 2014-2020 The Ideal Authors. All rights reserved. * * Use of this source code is governed by a BSD-style * license that can be found in the LICENSE file or at * https://developers.google.com/open-source/licenses/bsd */ package ideal.development.values; import ideal.library.elements.*; import idea...
<reponame>vbenincasa/ftp-filemanager import dirIcon from '../templates/includes/sidebarDirIcon'; function moveModalDirItem(dir) { return ` <li class="dir-item item" data-path="${encodeURI(dir.path)}" data-open="false"> ${dirIcon()} <span class="name">${dir.name}</span> <...
#!/bin/bash set -e set -u make bin/codeGen FILES="$(find src -name '*.id')" for F in $FILES; do echo "Formatting in-place: $F" cp "$F" build/code/tmp.id bin/codeGen fmt build/code/tmp.id "$F" done
function install_dependencies() { local PARALLEL_NUM=$1 # need working pip3 command yum install -y python3-pip # boost only is not enough. need boost-devel which contains headers and libraries needed # also for armadillo, you need armadillo-devel where -devel means develpment env including headers and libs yum install ...
# # Cookbook:: ccadi_geoserver # Recipe:: default # # Copyright:: 2021, CCADI Project Contributors, All Rights Reserved. require "uri" def filename_from_url(url) uri = URI.parse(url) File.basename(uri.path) end # Where source code will be stored for compilation src_path = node["ccadi_geoserver"]["source_path"] #...
#!/bin/bash src="en" tgt="da" split="test" bash ../../scripts/experiments/eval_mt.sh $src $tgt $split
#!/bin/sh cd `dirname $0` source common.sh echo "fast random" for ((i = 0; i < ${SIZE}; ++i)) do CMD=${COMMAND}\ ${SRC_DIR}insane_move_auto.py\ ${HOSTS[$i]}\ ${PORTS[$i]}\ '50' if test ${i} -eq ${LAST} then ${CMD} else ${CMD} & fi done exit 0
import numpy as np from sklearn.linear_model import LinearRegression # Create array of size and location data size = np.array([800]).reshape(-1, 1) location = np.array([1]).reshape(-1, 1) # Create data matrix with both size and location X = np.column_stack((size, location)) # Fit the model model = LinearRegression()...
/** * Copyright (C) 2017 - present by wilberding.com * * Please see distribution for license. */ package com.wilberding.brewery.lib; import org.junit.Test; import static org.assertj.core.api.Assertions.assertThat; public class LinearInterpolatorTest { // http://www.ajdesigner.com/phpinterpolation/linear_int...
def rotate_array_clockwise(arr, n) n.times do x = arr.pop arr.unshift(x) end return arr end arr = [1,2,3,4,5] n = 2 rotate_array_clockwise(arr, n) # Output [4,5,1,2,3]
<filename>src/parse.c #include "parse.h" /* This file contains all the functions that are pertinent to parsing. In particular, the entire recursive descent parser is hard-coded into this file. Each "state" of the parser is represented by a function; parsing functions call other functions depending on which to...
def print_list(lst): curr = lst.head while curr is not None: print(curr.data, end=' ') curr = curr.next print()
void TrafficLightPublishPanel::onSetTrafficLightState() { const auto traffic_light_id = traffic_light_id_input_->value(); const auto color = light_color_combo_->currentText(); const auto shape = light_shape_combo_->currentText(); const auto status = light_status_combo_->currentText(); TrafficLight traffic_li...
/* * */ package net.community.chest.apache.maven.helpers; import java.util.Arrays; import java.util.Collections; import java.util.List; import net.community.chest.util.collection.CollectionsUtils; /** * <P>Copyright as per GPLv2</P> * * @author <NAME>. * @since Jul 9, 2009 2:50:24 PM */ public enum Dependency...
<reponame>HamidMohammadi/iso_8583<filename>test/maskPan.js import test from 'ava'; const maskPan = require('../lib/maskPan'); const Iso8583 = require('../lib/8583'); test('should return error', t => { const masked = maskPan('456789345678', '***'); t.deepEqual(masked, { error: 'unknown pan masking format' }); })...
<filename>src/classes/structures/dist/tree/tree.js<gh_stars>10-100 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Tree = void 0; const branch_1 = require("./branch"); class Tree { name; age; branches; constructor(name, age = Infinity) { this.name = name; ...
#/bin/bash #== download libint code generator ==# cd /home/travis git clone --quiet https://github.com/evaleev/libint.git #== patch libint Makefiles to remove CMake references ==# cd libint echo "33c33" &> Makefile.patch echo "< install:: all install_pkgconfig install_cmake install_inc install_data" >> Makefile.patc...
<gh_stars>0 const { colors: defaultColors } = require('tailwindcss/defaultTheme') module.exports = { purge: [ './resources/**/*.blade.php', './resources/**/*.js', './resources/**/*.vue', ], darkMode: false, // or '**/*.vuemedia' or 'class' theme: { extend: {}, colors: { ...defaultColor...
#!/bin/bash # Experimental release script set -e ROOT=nlvm-build-root rm -rf $ROOT # Make sure the nlvm binary is fresh rm -f nlvm/nlvmr make STATIC_LLVM=1 nlvm/nlvmr # Copy nlvm and library files # TODO these would go in /usr/{bin, share/Nim} normally mkdir -p $ROOT cp nlvm/nlvmr $ROOT/nlvm cp -r nlvm-lib $ROOT ...
package number; public class Complex { private double re; private double im; public static final Complex INFINITY = new Complex( Double.POSITIVE_INFINITY, 0.0); public static final Complex ONE = new Complex(1, 0); public static final Complex ZERO = new Complex(0, 0); public static final Complex I = new Complex(0...
from sklearn import model from sklearn.datasets import load_data # Load the data data = load_data('car-prices.csv') # Create the model model = model.fit(data.X, data.y) # Make predictions predictions = model.predict(data.X) # Output the results for prediction in predictions: print('Predicted price of car: {0:.2...
#!/bin/sh # ---------------------------------------------------------------------- # h.sh # ---------------------------------------------------------------------- namespace=$1 name=$2 echo 'typedef enum {' awk 'BEGIN { FS="\n"; RS="" } NR > 1 { printf(" %s", $1) if ($2 != "" && $2 != "~") printf(" = %s", $2...
//our dependencies const express = require("express"); const path = require("path"); const htmlRoute = require("./routes/html-route"); const apiRoute = require("./routes/api-route"); ///const fs = require("fs"); //express setup const app = express(); const PORT = process.env.PORT || 3001; //boilerplate middleware da...
/** * The copyright in this software is being made available under the BSD License, * included below. This software may be subject to other third party and contributor * rights, including patent rights, and no such rights are granted under this license. * * Copyright (c) 2013, Dash Industry Forum. * All rights re...
<reponame>awesome-archive/frame<gh_stars>10-100 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.handlerList = exports.customKeyBindingFn = undefined; var _draftJs = require('draft-js'); var customKeyBindingFn = exports.customKeyBindingFn = function customKeyBindingFn(e, _ref) {...
<gh_stars>0 package coreweb type Config struct { SslCert string `json:"sslCert"` // SslCert is the path and name of the SSL certificate file. SslKey string `json:"sslKey"` // SslKey is the path and name of the SSL key file. Port int `json:"port"` // FromZip is the name of a zip file to ...
def array_average(items): # Calculate the sum sum_of_items = 0 for item in items: sum_of_items += item # Calculate the average average = sum_of_items / len(items) # Return the result return average # Test average = array_average(items) # Expected output: 10 print(average)
package de.roamingthings.workbench.testcontainers; import org.jetbrains.annotations.NotNull; import org.junit.After; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; import org.openqa.selenium.WebDriver; import org.openqa.selenium.remote.DesiredCapabilities; import org.springframework.bo...
#!/bin/bash check_mus() { if pgrep -x "cmus" >/dev/null 2>&1; then meta="$(cmus-remote -Q)" status="$(echo "$meta" | grep "status ")" status=${status/status /} title="$(echo "$meta" | grep "tag title ")" if [[ "${status/status /}" == "stopped" ]]; then echo " Stopped" else echo " ${status^}: ${tit...
export PATH="$HOME/miniconda/bin:$PATH" source activate parcels export CONDA_BUILD_SYSROOT=/ export C_INCLUDE_PATH=$C_INCLUDE_PATH:/Applications/Xcode.app/Contents//Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/ parcels_get_examples examples/; py.test -v -s --nbval-lax -k "not documentatio...
package com.tracy.competition.dao import java.util import com.tracy.competition.domain.entity.CompetitionType import org.apache.ibatis.annotations.Mapper /** * @author Tracy * @date 2020/11/14 17:09 */ @Mapper trait CompetitionTypeDao { /** * 获取全部比赛类型 * * @return */ def findAllCompeti...
<reponame>muehleisen/OpenStudio /*********************************************************************************************************************** * OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved. * * Redistribution and use in source and...
DOCKER_IMAGE=cttsai1985/tensorflow-transformers GPU_DEVICE='all' SHM_SIZE=2G RootSrcPath=${PWD} DockerRootSrcPath=/root/src/ DataPath=${PWD}/input DockerDataPath=/root/src/input RootPort1=8888 DockerRootPort1=8888 RootPort2=6666 DockerRootPort2=6666 WORKDIR="/root/src/script" docker rm $(docker ps -a -q) CMD="...
var mainUrl = 'https://tutorials.webduino.io/zh-tw/docs/'; var utmUrl = '?utm_source=cloud-blockly&utm_medium=contextMenu&utm_campaign=tutorials'; Blockly.Blocks['rain_setup'] = { init: function() { this.appendValueInput("NAME") .setCheck(null) .appendField(Blockly.Msg.WEBDUINO_RAIN_SET, "設定") ...
<reponame>invinst/CPDB<gh_stars>10-100 import collections import requests from bs4 import BeautifulSoup import re from twitterbot.models import TwitterBotTextSource class TwitterBotNamesService: def __init__(self, tweets): self.tweets = tweets def get_all_names(self): names = collections.def...
import random def generate_random_string(): characters = 'abcdefghijklmnopqrstuvwxyz' random_string = '' for i in range(5): random_string += random.choice(characters) return random_string result = generate_random_string() print(result)
npm run build scp -i "light-sail-cuckoo-plus.pem" -r public ubuntu@52.76.67.104:projects/Cuckoo.Plus/
<gh_stars>1-10 /* * lex.c -- Dumb lexical analysis. * * by <NAME> * * Copyright 2003-2012 -- See accompanying license * */ #include <cat/lex.h> #include <cat/raw.h> #include <string.h> #include <stdlib.h> #define node_to_lexent(node) container((node), struct lexer_entry, entry) struct lexer *lex_new(struct m...
<reponame>anusha-devulapally/A-December-of-Algorithms-2020 correct_word=list(map(str,input().split())) correct_word misspelt_words=input() def matchornot(correct,wrong): m=len(correct) n=len(wrong) if(m!=n): return 0 total=0 for i in range(m): if(correct[i]!=wrong[i]): total+=1 re...
#!/bin/bash python manage.py rqworker ${RQ_QUEUES:-default}
import * as fs from 'fs'; import * as Github from 'github-api'; require('dotenv').config(); var github = new Github({ username: process.env.GITUSER, password: <PASSWORD>, auth: 'basic' }); var repository = github.getRepo('surveyjs', 'service'); var classesContent = fs.readFileSync('doc_generator/classes.json'...
rs1 = np.array([self['rs1']]).astype(np.float32) rs2 = np.array([self['rs2']).astype(np.float32) if np.array_equal(rs1, rs2): return 1 else: return 0
#!/usr/bin/env bash CWD="${PWD}" REPO="/srv/ms.git" OLD_MS_BRANCH="${TRAVIS_COMMIT:-v2}" MS_BRANCH="$(git log|head -n1|awk '{print $2}')" CMS_BRANCH="changeset:${MS_BRANCH}" BOOTSALT_ARGS="-C -b ${CMS_BRANCH} -n travis --highstates" set -x env apt-get install -y --force-yes xz-utils python rsync acl rm -f .git/shallow ...
cask 'plug' do version '2.0.9' sha256 'bead86a9880ae8eb63296b48d6aef30d80d6057a11ca8491dc85a27b296f5e36' url 'https://www.plugformac.com/updates/plug2/Plug-latest.dmg' appcast 'https://www.plugformac.com/updates/plug2/sparklecast.xml', checkpoint: '7092bd0eb0a14a478018d36a44addfa4a8dfc871e214f79d66b6...
#!/bin/bash # shellcheck disable=SC2031 source ./lib.bash source ./lib-matrix-files.bash # Regression tests for past matrix failures. # The full matrix test is too slow to run as a normal part of the test suite; # they can be run manually from the ./m-*.sh scripts. TestPhase_Setup ####################################...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <fcntl.h> #include <sys/mman.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include <signal.h> #include <pthread.h> #include <sys/prctl.h> #include <math.h> #include "hi_common.h" #include "hi_co...
<gh_stars>1-10 /* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is dist...
package com.javatest.general.api; import org.springframework.http.HttpStatus; public enum ApiStatusCode { OK("OK", HttpStatus.OK), INTERNAL_ERROR("ApiStatusCode", HttpStatus.INTERNAL_SERVER_ERROR), INVALID_ACCESS_KEY_ID("InvalidAccessKeyId", HttpStatus.FORBIDDEN), INVALID_REQUEST_PARAM("InvalidReque...
const highestCommonFactor = (num1, num2) => { let min = Math.min(num1, num2); for (let i = min; i >= 1; i--) { if (num1 % i === 0 && num2 % i === 0) { return i; } } };
function generateOrderTable($orderDetails) { $html = '<div class="container order my-4"> <div class="row align-items-center"> <div class="col-sm-10"> <h4>Order detail</h4> <table class="w-100">'; foreach ($orderDetails as $...
<reponame>SoftwarearchitekturTeam/TypeTogether<filename>shared/src/test/java/de/hswhameln/typetogether/networking/util/StringEscaperTest.java package de.hswhameln.typetogether.networking.util; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; class StringEscaperTest { ...
<filename>static/assets/console/1-live-expressions.js<gh_stars>1-10 "use strict"; (function () { window.CustomValue = "Initial Value"; let interval = null; const clear = () => { if (interval) { clearInterval(interval); interval = null; } }; document.querySelector(".change").addEventList...
<filename>src/core/i_static_actor_component.h #ifndef INCLUDED_CORE_I_STATIC_ACTOR_COMPONENT_H #define INCLUDED_CORE_I_STATIC_ACTOR_COMPONENT_H #include "component.h" class IStaticActorComponent : public Component { public: DEFINE_COMPONENT_BASE(IStaticActorComponent) public: friend class ::boost::s...
package org.hiro; import org.hiro.character.Human; import org.hiro.character.Player; import org.hiro.character.StateEnum; import org.hiro.map.AbstractCoordinate; import org.hiro.map.Coordinate; import org.hiro.map.RoomInfoEnum; import org.hiro.output.Display; import org.hiro.things.ObjectType; import org.hiro.things.O...
# Define a daysBetweenDates procedure that would produce the # correct output if there was a correct nextDay procedure. # # Note that this will NOT produce correct outputs yet, since # our nextDay procedure assumes all months have 30 days # (hence a year is 360 days, instead of 365). # def nextDay(year, month, day): ...
""" Main file for the MNIST Deep Learning """ from loader_mnist import LoaderMnist import convnet as cvnet def main(): """Main program execution""" # Dataset Loader dset_loader = None # Create the Dataset Loader if possible try: # Configure dataset loading and subdivision ==> USER ...
<reponame>AndreasKl/elefantenstark package net.andreaskluth.elefantenstark.maintenance; import net.andreaskluth.elefantenstark.common.ElefantenStarkException; public class HenchmanException extends ElefantenStarkException { private static final long serialVersionUID = -6367062171824949422L; public HenchmanExcep...
<filename>src/main/java/com/jfinal/weixin/sdk/api/AccessTokenApi.java /** * Copyright (c) 2011-2014, <NAME> 詹波 (<EMAIL>). * * Licensed under the Apache License, Version 2.0 (the "License"); */ package com.jfinal.weixin.sdk.api; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; impor...
/** init domain config */ import Vue from 'vue' //设置全局API_BASE_URL Vue.prototype.API_BASE_URL = process.env.VUE_APP_API_BASE_URL window._CONFIG['domianURL'] = Vue.prototype.API_BASE_URL //文件上传下载类型,默认使用 mongodb 附件组件 Vue.prototype.BASE_FileType = process.env.BASE_FileType || "mongodb" window._CONFIG['BASE_FileType'] = Vu...
clear pkg update && pkg upgrade -y pkg install clang curl git libcrypt libffi libiconv libjpeg* libjpeg-turbo libwebp libxml2 libxslt make ndk-sysroot openssl postgresql python readline wget zlib -y git clone https://github.com/mkaraniya/OpenUserBot.git cd OpenUserBot pip install --upgrade pip setuptools pip install...
#!/bin/bash echo " - Installing mysql-server ..." sudo apt-get install mysql-server -y echo "--------------------------" echo " set password : Start123! " echo " thanks " echo "--------------------------" sudo mysql_secure_installation echo " - Installing SQL Server ..." wget -qO- https://packages.microsoft.com/ke...
#该文件告诉你怎么编译,实际情况下要视系统而定,在我的系统下我直接拷贝命令编译 rm -f MulticsQQ_Server g++ -o MulticsQQ_Server $(mysql_config --cflags) MulticsQQ_Server.cpp $(mysql_config --libs) -lpthread
<gh_stars>1-10 package astrionic.adventofcode2020.solutions.day25 import astrionic.adventofcode2020.framework.AdventSolution object Day25 extends AdventSolution { // writeSolution = true executePart = ExecutePart.One override def solvePart1(input: String): String = { val (pub0, pub1) = parseInput(input) ...
#!/usr/bin/env bash set -e set -o pipefail (emacs --batch \ --eval "(setq straight-safe-mode t)" \ --load "$HOME/.emacs.d/init.el" \ --funcall arche-batch-byte-compile 2>&1 \ | (grep -v "In toplevel form" || true) \ |...
python transformers/examples/language-modeling/run_language_modeling.py --model_name_or_path train-outputs/512+512+512-NER/7-model --tokenizer_name model-configs/1536-config --eval_data_file ../data/wikitext-103-raw/wiki.valid.raw --output_dir eval-outputs/512+512+512-NER/7-1024+0+512-N-VB-IP-first-256 --do_eval --per_...
#!/bin/sh . /usr/share/openclash/log.sh set_lock() { exec 883>"/tmp/lock/openclash_cus_domian.lock" 2>/dev/null flock -x 883 2>/dev/null } del_lock() { flock -u 883 2>/dev/null rm -rf "/tmp/lock/openclash_cus_domian.lock" } set_lock rm -rf /tmp/dnsmasq.d/dnsmasq_openclash_custom_domain.conf >/dev/null 2...
package me.mrdaniel.adventuremmo.commands; import org.spongepowered.api.command.CommandResult; import org.spongepowered.api.command.CommandSource; import org.spongepowered.api.command.args.CommandContext; import org.spongepowered.api.command.spec.CommandExecutor; import org.spongepowered.api.entity.living.player.Playe...
package me.nerdytechy.staffchat.listeners; import me.nerdytechy.staffchat.StaffChat; import me.nerdytechy.staffchat.UpdateChecker; import me.nerdytechy.staffchat.utils.Utils; import org.bukkit.Bukkit; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; impo...
#!/bin/bash set -e ./setup.sh npm run dev
import uuid class NodeManager: def __init__(self): self.usingStemResults = [] def addResult(self, result, pub_key): """ Adds a result to the list of node results and returns a unique identifier (UUID) for the result. Args: result (str): The result to be added. ...
<reponame>ch1huizong/learning largeString = '%s%s something %s yet more' % (small1, small2, small3)
python recurrent_formatting.py ../formatted-files/corpus_1.tsv corpus_1 ptb python recurrent_formatting.py ../formatted-files/corpus_1.tsv corpus_1 wiki python recurrent_formatting.py ../formatted-files/corpus_2.tsv corpus_2 ptb python recurrent_formatting.py ../formatted-files/corpus_2.tsv corpus_2 wiki python recur...