text
stringlengths
1
1.05M
<reponame>digirati-co-uk/taxonomy-manager<gh_stars>1-10 package com.digirati.taxman.common.taxonomy; import com.digirati.taxman.common.rdf.RdfModel; import com.digirati.taxman.common.rdf.RdfModelContext; import com.digirati.taxman.common.rdf.annotation.RdfConstructor; import com.digirati.taxman.common.rdf.annotation.R...
/** * @license * Copyright 2016 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 ...
<filename>app.js 'use strict'; const fs = require('fs'); const Router = require('router'); const router = Router(); const fh = require('finalhandler'); const dotenv = require('dotenv'); // environment variable access instance dotenv.config(); // loading env variables const server = require('http').createServer(); // ht...
<gh_stars>0 package edu.cmu.lti.nlp.amr.FastFeatureVector import edu.cmu.lti.nlp.amr._ import edu.cmu.lti.nlp.amr.Train.AbstractFeatureVector import scala.math.sqrt //import scala.collection.mutable.Map import scala.collection.concurrent.{TrieMap => Map} import scala.collection.immutable import scala.io.Source...
// Source : https://leetcode.com/problems/longest-increasing-subsequence/ // Author : <NAME> /** * @param {number[]} nums * @return {number} */ // Runtime: 152 ms // Your runtime beats 100.00% of javascript submissions. function binarySearch(a, target) { var start = 0 , end = a.length - 1; while(start <=...
#!/usr/bin/env bats load '../lib/helper' load '../bats/extensions/bats-support/load' load '../bats/extensions/bats-assert/load' load '../bats/extensions/bats-file/load' @test "enc: helm enc" { run helm secrets enc assert_failure assert_output --partial 'Error: secrets file required.' } @test "enc: helm e...
window.onload = () => { document.querySelector(".form").addEventListener("click", function(a) { fetch("/admin", { method: "POST", headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ action: a.target.name }) }) }) }
import multiprocessing as mp def sum_of_squares(numbers): return sum(x**2 for x in numbers) def main(): numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] # Input list of numbers num_processes = mp.cpu_count() # Number of available CPU cores with mp.Pool(num_processes) as pool: chunk_size = len(numb...
<gh_stars>100-1000 /** * Created by Administrator on 2017/3/16. */ module.exports={ name:'环银电影城(世贸广场店)', code:'k1045', pol:[15,68], adress:'江汉区解放大道686号世贸广场8楼', movies: [ { title:'金刚狼3:殊死一战', id:1, rating:8.8, jiamjie:'101分钟|动作|休.杰克曼', cover:'h...
function is_unique_string(str){ let set = new Set(); for(let i=0; i<str.length; i++){ let current_char = str[i]; if(set.has(current_char)){ return false; } set.add(current_char); } return true; } let result = is_unique_string("abcd"); console.log(result); // Outputs: true
<filename>infra-sk/modules/multi-input-sk/index.ts import './multi-input-sk'; import './multi-input-sk.scss';
<filename>src/com/bgi/suggester/Suggester.java package com.bgi.suggester; import java.util.List; import com.bgi.bktree.trie.Trie; import com.bgi.suggester.trie.PTrie; import com.bgi.util.SystemConfig; public class Suggester { private PTrie trie = SystemConfig.PTRIE; public Suggester() { } public Suggeste...
<gh_stars>0 import tokenService from "./tokenService"; const BASE_URL = "/api/items/"; export function create(createItem) { // Make a post request to the server return fetch(BASE_URL, { method: "POST", // We are sending over a picture // multipart/form-data < - is the content type body: createItem...
<filename>pkg/core/block/block_base.go package block import ( "encoding/json" "errors" "github.com/nspcc-dev/neo-go/pkg/config/netmode" "github.com/nspcc-dev/neo-go/pkg/core/transaction" "github.com/nspcc-dev/neo-go/pkg/crypto/hash" "github.com/nspcc-dev/neo-go/pkg/encoding/address" "github.com/nspcc-dev/neo-g...
<reponame>vharsh/cattle2 package io.cattle.platform.object.meta; import io.cattle.platform.eventing.model.Event; import io.github.ibuildthecloud.gdapi.factory.SchemaFactory; import io.github.ibuildthecloud.gdapi.model.Schema; import io.github.ibuildthecloud.gdapi.util.TypeUtils; import java.util.Map; public interfac...
<reponame>devilry/devilry-django<filename>devilry/devilry_admin/tests/dashboard/test_student_feedbackfeed_wizard/test_assignment_listview.py from django import test from django.conf import settings from django.template import defaultfilters from django.utils import timezone from model_bakery import baker from cradmin_...
<filename>src/indicator/volume/moneyFlowIndex.test.ts // Copyright (c) 2022 <NAME>. All Rights Reserved. // https://github.com/cinar/indicatorts import { roundDigitsAll } from '../../helper/numArray'; import { moneyFlowIndex } from './moneyFlowIndex'; describe('Money Flow Index (MFI)', () => { it('should be able to...
#!/bin/bash echo "appending entry to your crontab" tmp="$(crontab -l)" if [ "$tmp" != "" ] then #if there already an entry we need to add a new line. tmp="$tmp \n" fi echo -e "$tmp@hourly `pwd`/git_fetch.sh > $HOME/.logs/git_fetch.log 2>&1" | crontab mkdir -p "$HOME/.logs" echo "crontab now contains the followi...
/* * MIT License * * Copyright (c) 2021 <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 Software without restriction, including without limitation the rights * to use, copy, mod...
#!/bin/bash -u # This is an example of how use double quotes to escape the shell. # Things to remember: # - when you surround a part of your command line with double quotes that part # of the command line is going to be passed as ONE argument to the program activated. # - environment and shell variables which are ment...
#!/bin/bash # 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 ...
export type UnknownObject = { [key: string]: unknown; }; export type EmptyObject = Record<string, never>;
<reponame>achouman/IKVM.NET /* Copyright (C) 2006, 2007 <NAME> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose,...
import { ForeignKey, Model, Table } from 'sequelize-typescript'; import { Filling } from '../../fillings/models'; import { DishOrder } from './dish_order.model'; @Table({ tableName: 'filling_orders', createdAt: false, updatedAt: false, }) export class FillingOrder extends Model { @ForeignKey(() => Filling) f...
#!/usr/bin/env bash # Copyright The Dragonfly 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 l...
import React, { Component } from "react"; import { NavLink } from "react-router-dom"; import PropTypes from "prop-types"; import { connect } from "react-redux"; import { logoutUser } from "../../actions/authAction"; import { clearCurrentProfile } from "../../actions/profileAction"; class Navbar extends Component { o...
#! /bin/sh -e # tup - A file-based build system # # Copyright (C) 2011-2018 Mike Shal <marfey@gmail.com> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. # # This program is distribu...
<filename>mobile-app/app/screens/AppNavigator/screens/Settings/components/RowLanguageItem.tsx import { ThemedIcon, ThemedText, ThemedTouchableOpacity } from '@components/themed' import { WalletAlert } from '@components/WalletAlert' import { useLanguageContext } from '@shared-contexts/LanguageProvider' import { Navigati...
from flask import Flask, request from flask_sqlalchemy import SQLAlchemy import json app = Flask(name) app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////tmp/test.db' db = SQLAlchemy(app) @app.route("/sql", methods=["POST"]) def run_sql(): query = request.json['query'] result = db.session.execute(query) return js...
<reponame>HelloPb/jss-templatea<filename>packages/sitecore-jss-vue/src/components/RichText.test.ts /* eslint-disable no-unused-expressions */ import { mount } from '@vue/test-utils'; import { richTextField as eeRichTextData } from '../test/data/field-data-EE-on'; import { RichText } from './RichText'; describe('<RichT...
#include <iostream> #include <string> #include <vector> class CustomData { private: std::vector<int> data; // Example data structure to store integers public: bool read(std::istream& in) { int num; while (in >> num) { data.push_back(num); } return true; } ...
systemctl stop nginx.service # Stop the nginx server as it is listening on port 80 which is used by standalone verification. certbot certonly --expand --renew-by-default --standalone \ -d tradrec.com \ -d www.tradrec.com \ -d dev.tradrec.com systemctl start nginx.service # Restart the nginx server.
#!/bin/bash set -eou pipefail echo -e "Dumping IMAGE env vars\n" env | grep IMAGE echo -e "\n\n" IMAGE_CLUSTER_LOGGING_OPERATOR=${IMAGE_CLUSTER_LOGGING_OPERATOR:-quay.io/openshift/origin-cluster-logging-operator:latest} IMAGE_OAUTH_PROXY=${IMAGE_OAUTH_PROXY:-quay.io/openshift/origin-oauth-proxy:latest} IMAGE_LOGGIN...
#!/usr/bin/env bash set -e tkg_plus_kind="TKG+" input_kind="{cluster_kind}" kubeadm_config_path=/root/kubeadm-defaults.conf while [ `systemctl is-active docker` != 'active' ]; do echo 'waiting for docker'; sleep 5; done # use kubeadm config if TKG plus cluster if [ "$input_kind" == "$tkg_plus_kind" ]; then kubead...
def sum_even(arr): ''' Function to calculate the sum of even numbers in an array Parameters arr: list of integers Returns sum of even numbers in the array ''' total = 0 for num in arr: if num % 2 == 0: total += num return total
<gh_stars>0 /* * CPAchecker is a tool for configurable software verification. * This file is part of CPAchecker. * * Copyright (C) 2007-2017 <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....
@app.route('/api/profile', methods=['GET']) def get_user_profile(): user_id = request.args.get('user_id') user = User.query.filter_by(id=user_id).first_or_404() return jsonify({ 'username': user.username, 'name': user.name, 'email': user.email })
<filename>Kamek/src/playerCurrentMultiplierMgr.cpp #include <common.h> #include <game.h> #include <profile.h> class dPlCrMgr_c : public dStageActor_c { public: int onCreate(); int onExecute(); static dActor_c *build(); }; const char *PlCrMgrFileList[] = {0}; const SpriteData PlCrMgrSpriteData = { ProfileId::PlCrM...
#!/bin/bash # 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 ...
#!/bin/bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" python3 -m pip install "pylint<2.6" cp $DIR/pre-commit $DIR/../../.git/hooks/pre-commit echo "Linter installed as pre-commit hook."
var structCatch_1_1IRunner = [ [ "~IRunner", "structCatch_1_1IRunner.html#a5f539a88a7772d68de8a2e4028774209", null ], [ "aborting", "structCatch_1_1IRunner.html#a03713202dd2e041e30b8030088ab0116", null ] ];
prune(){ python cifar_prune.py \ --arch $1 \ --depth $2 \ --dataset cifar100 \ --percent 0.9 \ --resume ../../../iclr2021_checkpoints/norm_pruning/weights/cifar/cifar100/$1_$2.pt \ --save_dir ../../../result/norm_pruning/weights/$1$2/onecycle } retrain(){ python cifar_finetune.py \ ...
#!/bin/bash cd ~/Images/Wallpapers echo "Primeira Execução" `#Baixando` COUNTER=0 `#Contara ate 60 (60 tentativas)` while [ $COUNTER -lt 60 ]; do `#Enquanto nao estourou as tentativas` `#Baixa o novo papel de parede` wget http://www.opentopia.com/images/cams/world_sunlight_map_rectangular.jpg -O world.jpg -nv temp=...
#!/usr/bin/env bash # update javadocs for RxJava2.x git checkout RxJava2.x ./gradlew clean androidJavadocs git checkout gh-pages rm -rf javadoc/RxJava2.x/* cp -avr library/build/docs/javadoc/* ./javadoc/RxJava2.x git add -A git commit -m "updating JavaDoc for RxJava2.x" rm -rf library/build/docs echo "javadocs for RxJ...
#!/bin/sh # CYBERWATCH SAS - 2017 # # Security fix for CESA-2011:1371 # # Security announcement date: 2011-10-14 18:48:12 UTC # Script generation date: 2017-01-01 21:10:14 UTC # # Operating System: CentOS 5 # Architecture: x86_64 # # Vulnerable packages fix on version: # - finch.i386:2.6.6-5.el5_7.1 # - finch-d...
#!/usr/bin/env bash scp -r * jamcp@oatmealforbreakfast.com:oatmealforbreakfast.com/xsacqikktkunni/
#ifndef TRIUMF_NMR_HEBEL_SLICHTER_HPP #define TRIUMF_NMR_HEBEL_SLICHTER_HPP #include <cmath> #include <complex> #include <boost/math/quadrature/exp_sinh.hpp> #include <boost/math/quadrature/gauss_kronrod.hpp> #include <triumf/constants/codata_2018.hpp> #include <triumf/statistical_mechanics/fermi_dirac.hpp> #include...
<gh_stars>1-10 class RetrospectivesUser < ApplicationRecord belongs_to :user belongs_to :retrospective validates :retrospective_id, uniqueness: {scope: :user_id} end
/* Routine optimized for shuffling a buffer for a type size of 16 bytes. */ shuffle16_neon(uint8_t* const dest, const uint8_t* const src, const size_t vectorizable_elements, const size_t total_elements) { size_t i, j, k; static const size_t bytesoftype = 16; uint8x8x2_t r0[8]; uint16x4x2_t r1[8];...
'use strict'; require( 'babel-polyfill' ); // Adds html <picture> element to IE require( 'picturefill' ); // Adds element.classList object to IE require( 'classlist-polyfill' ); // Adds promises to IE require( 'promise-polyfill' ); require( './modules/overlay' ); // modules const MainFlag = require( './modules/mainF...
/* * 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 ...
<reponame>alemesa1991/School-Projects void send( short *to, short *from, int count ) // Tom Duff's device { int n=(count+7)/8; switch(count%8){ case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++;...
<gh_stars>1-10 import { modifiers } from '../data/course-modifiers.js' const stringSimilarity = require('string-similarity'); /** * Count number of modifier search matches (ie 'spring') * @param {object} clazz * @param {string} query Must be lowercase * @return {number} matches */ function specialModifierMatches(...
source env/bin/activate; python3 scraper_data.py $@;
#!/bin/sh label=$1 base_ref=$2 head_ref=$3 # copy the problem matcher to the workspace, so it is accessible outside of the # container # See: https://github.com/actions/toolkit/issues/205#issuecomment-557647948 cp /git-diff-todos-problem-matcher.json "${HOME}/" echo "::add-matcher::${HOME}/git-diff-todos-problem-matc...
To estimate the relative performance of the JavaScript operation compared to the Python operation, we can use benchmarking or algorithmic analysis. Specifically, we can compare the running time complexity of the two algorithms. If one algorithm is more complex than the other, it will likely have greater relative perfor...
<filename>src/main/java/net/anatolich/subscriptions/currency/infrastructure/rest/ExchangeRatePayload.java package net.anatolich.subscriptions.currency.infrastructure.rest; import io.swagger.v3.oas.annotations.media.Schema; import javax.validation.constraints.NotEmpty; import javax.validation.constraints.NotNull; impor...
<filename>packages/recipe-mail/src/example/templates/index.js import DefaultLayout from '../../core/templates/layouts/default.js'; const overrideHead = (DefaultHead) => { const Head = (props) => ( <> <DefaultHead {...props}/> </> ); return Head; }; const Index = (props) => ( ...
docker exec -i cassandra bash -c 'cqlsh -u cassandra -p cassandra' < assets/scripts/cassandra/tables.cql
#!/bin/bash echo "" echo "Applying migration CurrentCountryOfRegistration" echo "Adding routes to conf/app.routes" echo "" >> ../conf/app.routes echo "GET /currentCountryOfRegistration controllers.CurrentCountryOfRegistrationController.onPageLoad(mode: Mode = NormalMode)" >> ../conf/app...
<filename>mlir/include/mlir/Dialect/Bufferization/Transforms/BufferUtils.h //===- BufferUtils.h - Buffer optimization utilities ------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Ide...
<gh_stars>0 const AddressArray = artifacts.require("AddressArray") const getBlockNumber = require('./blockNumber')(web3) const InitIssueAndLockFactory = artifacts.require("InitIssueAndLockFactory") const InitIssueAndLock = artifacts.require('InitIssueAndLock') const GTTokenFactory = artifacts.require("GTTokenFactory");...
<reponame>nedphae/contact-center-client<gh_stars>1-10 import React, { useState } from 'react'; import { useQuery } from '@apollo/client'; import Viewer from 'react-viewer'; import clsx from 'clsx'; import Typography from '@material-ui/core/Typography'; import Grid from '@material-ui/core/Grid'; import Paper from '@ma...
<!DOCTYPE html> <html> <head> <title>Form Submission</title> </head> <body> <form method="post" action="process.php"> <label for="name">Enter your name:</label> <input type="text" id="name" name="name"> <input type="submit" value="Submit"> </form> </body> </html> <?php if ($_SERVER[...
<filename>Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter26Exercise14.cpp /* TITLE Random length string sorting Chapter26Exercise14.cpp COMMENT Objective: Write a program that generates random length [0,100) strings and store them in std::map (or std::set?) ...
#!/bin/sh # Checks for trailing whitespace git grep --cached -I -n --no-color -P '[ \t]+$' -- ':/' | awk ' BEGIN { FS = ":" OFS = ":" ret = 0 } { # Only warn for markdown files (*.md) to accomodate text editors # which do not properly handle trailing whitespace. ...
// import React from "react"; // import ReactDOM from "react-dom"; // import App from "../../src/App"; // ReactDOM.render(<App />, document.body);
<filename>altimeter/qj/lambdas/executor.py<gh_stars>10-100 """Execute all known QJs""" import hashlib import json from typing import Any, Dict, List import uuid import boto3 from altimeter.core.log import Logger from altimeter.qj import schemas from altimeter.qj.client import QJAPIClient from altimeter.qj.config impo...
<reponame>alunny/globalize-tools<filename>globalize-webpack-plugin/index.js var ProductionModePlugin = require("./ProductionModePlugin"); var DevelopmentModePlugin = require("./DevelopmentModePlugin"); /** * Development Mode: * - Automatically loads CLDR data (i.e., injects `Globalize.load(<necessary CLDR data>)`). ...
#!/bin/bash # Copyright (c) 2020, Oracle Corporation and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. export DOMAIN_HOME=${DOMAIN_HOME_DIR} export namespace=${NAMESPACE} export domainName=${CUSTOM_DOMAIN_NAME} if [ -z "${JAVA_HOME}" ]; then...
#!/bin/sh ########################################################################## # If not stated otherwise in this file or this component's Licenses.txt # file the following copyright and licenses apply: # # Copyright 2019 RDK Management # # Licensed under the Apache License, Version 2.0 (the "License"); # you may ...
#!/bin/bash dieharder -d 201 -g 52 -S 401548227
#!/bin/bash -e if [[ -z "$KAFKA_PORT" ]]; then export KAFKA_PORT=9092 fi create-topics.sh & if [[ -z "$KAFKA_ADVERTISED_PORT" && \ -z "$KAFKA_LISTENERS" && \ -z "$KAFKA_ADVERTISED_LISTENERS" && \ -S /var/run/docker.sock ]]; then KAFKA_ADVERTISED_PORT=$(docker port "$(hostname)" $KAFKA_PORT | sed -r 's/...
#!/bin/bash set -e pushd docker docker build -t bpftrace-builder -f Dockerfile.alpine . popd
<reponame>josesentis/react-graphql-boilerplate import React from 'react'; import TextWrapper from './styles'; class movingText extends React.PureComponent { render() { const { children } = this.props; return ( <TextWrapper> <span>{children}</span> </TextWrapper> ); } } export def...
package game.backend; public enum Checkpoint { U(-1,0, 1), UU(-2,0, 2), D(1,0, 4), DD(2,0, 8), R(0,1, 16), RR(0,2, 32), L(0,-1, 64), LL(0,-2, 128); private int i; private int j; private int value; Checkpoint(int i, int j, int value) { this.i = i; this.j = j; this.value = valu...
def findAncestor(root, node1, node2): if not root: return None if root == node1 or root == node2: return root left = findAncestor(root.left, node1, node2) right = findAncestor(root.right, node1, node2) if left and right: return root return left if left else right
<reponame>nkrios/lemongrenade<gh_stars>100-1000 package lemongrenade.core.database.mongo; import com.mongodb.MongoClient; import com.mongodb.WriteConcern; import lemongrenade.core.util.LGProperties; import org.mongodb.morphia.Datastore; import org.mongodb.morphia.Morphia; import org.slf4j.Logger; import org.slf4j.Logg...
#!/bin/sh AIRGAP_REGISTRY__DEFAULT_VALUE="" AIRFLOW_OPERATOR_NAMESPACE__DEFAULT_VALUE="airflowop-system" AIRFLOW_OPERATOR_IMAGE_TAG__DEFAULT_VALUE="ecp-5.3.0-rc3" AIRFLOW_BASE_NAMESPACE__DEFAULT_VALUE="airflow-base" AIRFLOW_BASE_IS_POSTGRES__DEFAULT_VALUE="true" if [ ! -z "$AIRGAP_REGISTRY" ] && ! expr "$AIRGAP_REGIS...
#!/usr/bin/env bash set -o errexit set -o nounset set -o pipefail #`p_` takes two arguments to define a bazel workspace status variable: # # * the name of the variable # * a default value # # If an environment variable with the corresponding name is set, its value is # used. Otherwise, the provided default value is...
<reponame>Nickersoft/glide import Rtl from './mutators/rtl' import Gap from './mutators/gap' import Grow from './mutators/grow' import Peeking from './mutators/peeking' import Focusing from './mutators/focusing' /** * Collection of transformers. * * @type {Array} */ const MUTATORS = [ Gap, Grow, Peeking, F...
import { Component, Value, Autowired } from '@malagu/core'; import { SecurityContextStore, SecurityContext, SecurityContextStrategy } from './context-protocol'; import { Context } from '@malagu/core/lib/node'; @Component(SecurityContextStore) export class SessionSecurityContextStore implements SecurityContextStore { ...
def text_summarizer(text): """ Summarizes a long text using Natural Language Processing techniques. Args: text (str): The text to be summarized. Returns: str: A summary of the text. """ # Clean and tokenize text tokens = tokenizer(text) # Calculate term frequency-inverse document frequency tfidf = calculate_tfid...
package de.schwedt.weightlifting.app.news; import android.util.Log; import org.json.JSONArray; import org.json.JSONObject; import java.util.ArrayList; import java.util.Date; import de.schwedt.weightlifting.app.MainActivity; import de.schwedt.weightlifting.app.UpdateableItem; import de.schwedt.weightlifting.app.Upda...
/** * This file is part of the Java Machine Learning Library * * The Java Machine Learning Library 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; either version 2 of the License, or * (at your option) ...
<gh_stars>0 package com.piglin.optimization; /** * Created by swyna on 2/16/15. */ public class AntColony { }
import React from 'react'; import './index.scss'; import '../../img/logo.svg'; import '../../img/react.svg'; const Introduction: React.FunctionComponent = () => ( <div className="introduction-page"> <section className="introduction"> <h1>Algae-UI of React</h1> <p> <code>algae-ui</code>是为 Rea...
var app = getApp(), api = app.api, is_loading_more = !1, is_no_more = !1; Page({ data: { page: 1, video_list: [], url: "", hide: "hide", show: !1, animationData: {} }, onLoad: function(o) { app.page.onLoad(this, o); this.loadMoreGoodsList(), i...
#!/bin/bash set -e name=$1 if [ $# != 1 ] ; then echo "USAGE: $0 <controller1 name>" echo " e.g.: $0 r5-multi-controller-1" exit 1; fi echo "KVM: createing $name" sudo virsh destroy $name || true sudo virsh undefine $name || true sudo rm -rf /var/lib/libvirt/images/$name-0.img sudo qemu-img create -f qcow2 /var/...
#!/bin/sh # https://github.com/dxcSithLord/RHEL-Bench-Security/archive/master.zip # https://github.com/dxcSithLord/RHEL-Bench-Security.git # ------------------------------------------------------------------------------ # Docker Bench for Security # # Docker, Inc. (c) 2015- # # Checks for dozens of common best-practice...
public interface Bird { public void fly(); public void eat(); public void sleep(); public void makeNoise(); }
from flask import Flask, request, jsonify app = Flask(__name__) messages = [] @app.route('/message', methods=['GET', 'POST']) def message(): if request.method == 'GET': return jsonify({'messages': messages}) message = request.get_json().get('message') messages.append(message) return jsonify({'message': message...
<filename>src/components/Login/Login.js import { useContext } from 'react' import { useHistory } from 'react-router-dom' import { ToastContainer } from 'react-toastify' import UserContext from '../../contexts/UserContext' import userService from '../../services/userService' import errorHandler from '../../utils/erro...
<gh_stars>0 // // handlers for misc routes // const handlers = {}; // ping handler handlers.ping = (data, cb) => { // call back with http status code 200 cb(200); }; // not found handler handlers.notFound = (data, cb) => { cb(404); }; export default handlers;
class EnvironmentMetrics: def __init__(self, humidity, temperature): self.humidity = humidity self.temperature = temperature def is_humidity_optimal(self): return 40 <= self.humidity <= 60 def is_temperature_optimal(self): return 20 <= self.temperature <= 25
export const version = "transactions/5.0.4"; //# sourceMappingURL=_version.js.map
// Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import GitlabSvg from '@rsuite/icon-font/lib/legacy/Gitlab'; const Gitlab = createSvgIcon({ as: GitlabSvg, ariaLabel: 'gitlab', category: 'legacy', displayName: 'Gitlab' }); export default Gitlab;
const mongoose = require('mongoose'); const cloudinary = require('cloudinary'); const multer = require('multer'); // set up multer // variable to limit image file size const limits = { fileSize: 1024 * 1024 }; const upload = multer({ storage: multer.diskStorage({}), limits, fileFilter: (req, file, cb) => { ...
#!/bin/zsh sock.ativo () # { [[ -z $(loadedx) ]] && return 1 || return 0 #[[ -e /tmp/mpid ]] && return 1 || return 0 } 2>/dev/null #--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------...
const sendEmail = require('./email') const isPasswordCorrect = require('./isPasswordCorrect') module.exports = { sendEmail, isPasswordCorrect, }