text
stringlengths
1
1.05M
sync; dd if=/dev/zero of=/tmp/ramdisk/ bs=1M count=1024; sync dd: failed to open '/tmp/ramdisk/': Is a directory ysdede@instance-1:~/jesse-projects/git/jesse_strategies/Optuna/OttBands5minFixedOttOptuna1Test$ sync; dd if=/dev/zero of=/tmp/ramdisk/benchfile bs=1M count=1024; sync 1024+0 records in 1024+0 records out 107...
<filename>src/main/java/seoul/democracy/post/service/PostService.java<gh_stars>10-100 package seoul.democracy.post.service; import com.mysema.query.types.Expression; import com.mysema.query.types.Predicate; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; impo...
<reponame>noear/solon_demo<filename>demo03.solon_mvc/src/main/java/webapp/controller/more/CmdService.java package webapp.controller.more; /** * @author noear 2021/6/28 created */ public interface CmdService { String name(String name); }
#!/usr/bin/env sh # This file has been written 2010 by thomas.koch@ymc.ch and is released under # the following license: # DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE # Version 2, December 2004 # # Copyright (C) 2004 Sam Hocevar # 14 rue de Plaisance, 75014 Paris, France # Everyone is permitted to copy and distribute...
#!/bin/bash echo "Started" `date` | tee -a /root/install.log echo "Checking for Happy Resolver..." while ping -c 2 repo.saltstack.com 2>&1 | grep -q "unknown host" ;do echo waiting for network resolution...; done ## fix authorized hosts ##cut -d " " -f 14,15 /root/.ssh/authorized_keys > /root/.ssh/tmp #mv -f /root/....
<gh_stars>1-10 s = int(input()) n = 1 while n * (n+1) // 2 <= s: n += 1 print(n-1)
<reponame>lgoldstein/communitychest /* * */ package net.community.chest.jfree.jfreechart.axis.value; import java.util.Arrays; import java.util.Collections; import java.util.List; import net.community.chest.util.collection.CollectionsUtils; import org.jfree.chart.axis.DateTickUnitType; /** * <P>Copyright GPLv2</P...
impl Surface { fn new_surface(nsview: *mut Object, apply_pixel_scale: bool) -> Surface { let inner = SurfaceInner { nsview }; let inner_arc = Arc::new(inner); Surface { inner: inner_arc, apply_pixel_scale, } } }
import kss def count_word_occurrences(text, word): # Split the text into sentences using the Korean Sentence Splitter (kss) library sentences = kss.split_sentences(text) # Convert the word and sentences to lowercase for case-insensitive comparison word = word.lower() sentences = [sentence.lowe...
import { FilterMultiplePassType } from './filterMultiplePassType.enum'; import { FilterMultiplePassTypeString } from './filterMultiplePassTypeString'; export interface CollectionOption { /** * Optionally add a blank entry to the beginning of the collection. * Useful when we want to return all data by sett...
<gh_stars>0 /* Copyright (c) 2015, <NAME>. 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, either version 3 of the License, or * (at your option) any later version. ...
import Helper from '@ember/component/helper'; export default Helper.extend({ compute([index, active]) { return index === active ? 'active' : 'inactive'; } });
<filename>chromewhip/protocol/layertree.py<gh_stars>10-100 # noinspection PyPep8 # noinspection PyArgumentList """ AUTO-GENERATED BY `scripts/generate_protocol.py` using `data/browser_protocol.json` and `data/js_protocol.json` as inputs! Please do not modify this file. """ import logging from typing import Any, Optio...
<filename>src/wanderer.h #ifndef __WANDERER_AGENT__H #define __WANDERER_AGENT__H #include <string> #include <math.h> #include "enviro.h" #include <string.h> namespace { using namespace enviro; class Forward : public State, public AgentInterface { public: void entry(const Event &e) { ...
/** * RELOAD TOOLS * * Copyright (c) 2003 <NAME>, <NAME>, <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 rig...
/* * 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...
// Package firesearch is a Go client for Firesearch. package firesearch
<gh_stars>0 import axios from "axios"; export const freelancerSignUp = (data) => { return axios.post( `${process.env.REACT_APP_BASEURL}api/freelancer/Post`, data, { ["axios-retry"]: { retries: 5, }, } ); }; export const freelancerProjectPortfolio = (data) => { return axios.po...
<filename>src/components/video/Player/index.js /** * @module React */ import React, { Component } from 'react' /** * @module PropTypes */ import PropTypes from 'prop-types' /** * @module classNames */ import classNames from 'utils/classnames' /** * @module PlayButton */ import PlayButton from 'components...
<filename>src/java/grails/plugin/jesque/JesqueJobArtefactHandler.java package grails.plugin.jesque; import org.codehaus.groovy.grails.commons.ArtefactHandlerAdapter; import java.lang.reflect.Method; public class JesqueJobArtefactHandler extends ArtefactHandlerAdapter { public static final String TYPE = "JesqueJ...
// Write code to create a function that accepts a string containing only 0s and 1s // Return true if there are an equal number of 0s and 1s // Else return false var zeroesAndOnes = function(str) { var arr = str.split("") var ones = 0 var zeros = 0 for (var i = 0; i < arr.length; i++) { var cur...
<gh_stars>1-10 require('dotenv').config(); const { I18n } = require('i18n'); const { i18nConfig } = require('../../config/i18n.config'); const iconv = require('iconv-lite'); const Scrapper = require('../services/scrapper'); const EmailService = require('../services/email-service'); const SubscriptionService = require('...
def isPalindrome(s): s = s.lower() return s == s[::-1] string_input = "madam" palindrome_status = isPalindrome(string_input) if palindrome_status: print("The given string is a Palindrome") else: print("The given string is not a Palindrome")
package org.slos.battle; public enum GameState { VIRGIN, INITALIZING_SETUP, ATTACKING, GAME_COMPLETED }
#!/usr/bin/env bash # Syntax: check-mergeability # Check whether branch is feature/bugfix and is merged to main/master # shellcheck disable=SC2155 declare -ir success=0 declare -ir wrong_branch_error=1 case "$GITHUB_BASE_REF" in master|main) if [[ "$GITHUB_HEAD_REF" =~ ^(feature|bugfix)/([[:digit:]]+)$...
"use strict"; var util = require("util"); var EventEmitter = require("events").EventEmitter; function Events() { EventEmitter.call(this); } util.inherits(Events, EventEmitter); module.exports = new Events();
<gh_stars>1-10 package org.egovframe.rte.psl.dataaccess.ibatis; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import java.io.File; import java.util.Properties; import org.egovframe.rte.psl.dataaccess.TestBase; import org.egovfram...
<filename>mtp_api/apps/core/management/commands/clean_up.py import datetime import textwrap from django.core.management import BaseCommand, call_command from django.utils.timezone import now from mtp_common.stack import StackException, is_first_instance from mtp_auth.models import Login class Command(BaseCommand): ...
#!/bin/sh remove_if_directory_exists() { if [ -d "$1" ]; then rm -Rf "$1"; fi } case "$1" in "unstable") BRANCH="unstable";; *) BRANCH="master";; esac REPOSITORY='https://github.com/tradingview/charting_library/' LATEST_HASH=$(git ls-remote $REPOSITORY $BRANCH | grep -Eo '^[[:alnum:]]+') remove_if_directory...
declare -a RNG=(12345 12355 12365 12375) #declare -a RNG=(12345) if [ "X$1" == "X" ]; then pattern="test_" else pattern=$1 fi ls | grep $pattern | sort -k2 -t_ -n | while read i; do cd $i resolution="`cat RES`" for idx in "${!RNG[@]}"; do echo "Submit $i $resolution $idx ${RNG[$idx]}" qsub -v "OUTP...
package com.me.DataStructure.BloomFilter; import java.util.Arrays; import java.util.BitSet; /** * @author zs * @date 2021/9/5. ๅธƒ้š†่ฟ‡ๆปคๅ™จDemo */ public class MyBloomFilter { //ไฝ ็š„ๅธƒ้š†่ฟ‡ๆปคๅ™จๅฎน้‡ private static final int DEFAULT_SIZE = 2 << 28; //bitๆ•ฐ็ป„๏ผŒ็”จๆฅๅญ˜ๆ”พkey private static BitSet bitSet = new BitSet(DEFAULT_SIZ...
import {FC} from 'react' import * as React from 'react' import styled from 'styled-components' import {useStore} from "reto"; import {SlideStore} from "@/stores/slide.store"; import {SlidePreview} from '@/components/slide/slide-preview' import {EditPageStore} from '@/stores/edit-page.store' import {Box} from '@/compone...
<reponame>shaunakpp/voices-of-consent class RenameLocationTypeToLocationType < ActiveRecord::Migration[5.2] def change rename_column :locations, :type, :location_type end end
#!/bin/bash source .project/yaml.sh create_variables ./config.yml ORG_NAME=$project_org if [ -z "${ORG_NAME##*/*}" ] ;then export REL_PATH_TO_GOPATH=../../../.. else #echo "'$ORG_NAME' does not contain: '/'." export REL_PATH_TO_GOPATH=../../.. fi echo $REL_PATH_TO_GOPATH
import React, { useState } from 'react'; const ReverseApp = () => { const [text, setText] = useState(''); const [reversedText, setReversedText] = useState(''); const handleTextChange = (event) => { setText(event.target.value); }; const handleSubmit = (event) => { event.preventDefault(); setReve...
#!/usr/bin/env bash DIR=$(dirname "${BASH_SOURCE[0]}") . "$DIR"/common.sh ${DUB} remove fs-json-dubpackage --non-interactive 2>/dev/null || true ${DUB} remove fs-sdl-dubpackage --non-interactive 2>/dev/null || true echo "Trying to get fs-sdl-dubpackage (1.0.5)" ${DUB} fetch fs-sdl-dubpackage --version=1.0.5 --skip-r...
<reponame>huxi/ratpack /* * Copyright 2013 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. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unles...
package main import ( "bufio" "errors" "fmt" "log" "os" "os/user" "runtime" "strings" "github.com/djhworld/gomeboycolor-glfw/saves" "github.com/djhworld/gomeboycolor/cartridge" "github.com/djhworld/gomeboycolor/config" "github.com/djhworld/gomeboycolor/gbc" "gopkg.in/urfave/cli.v1" ) const TITLE string ...
<reponame>dinhtuyen/PRML01 import numpy as np class Tensor(object): """ a base class for tensor object """ __array_ufunc__ = None def __init__(self, value, function=None): """ construct Tensor object Parameters ---------- value : array_like valu...
<filename>google/cloud/websecurityscanner/v1alpha/google-cloud-websecurityscanner-v1alpha-ruby/lib/google/cloud/websecurityscanner/v1alpha/web_security_scanner_pb.rb # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto require 'google/a...
<reponame>chrishumboldt/rocket-utility /** * @author <NAME> */ import { RocketString } from './string.utility'; describe('Rocket String Utility:', () => { // Tests. it('Should lowercase an entire string.', () => { expect(RocketString.lowercase.all('Some text.')).toEqual('some text.'); }); it('Should lo...
#!/bin/sh [ $PKG = rpm ] && { whiptail --msgbox "Your $PKG isn't supported yet" 8 32; exit; } [ "$1" = update ] && [ $PKG = deb ] && { apt-get update; $install mopidy; pip install --upgrade -y Mopidy-Mopify; whiptail --msgbox "Mopidy updated!" 8 32; break; } [ "$1" = remove ] && { $remove mopidy; pip uninstall -y Mopid...
activity_main.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <ProgressBar android:id="@+id/progress_bar" android:layout_width="match_parent" and...
RSpec.describe Ducksky do it "has a version number" do expect(Ducksky::VERSION).not_to be nil end end RSpec.describe Ducksky::Client do describe "#time_machine_request" do let(:api_key) { '1234qwer' } subject { described_class.new(api_key: api_key) } before do VCR.insert_cassette("time_mac...
/** * Created by lvjianyao on 16/6/27. */ var config = require('./../config'); var mongojs = require('mongojs'); var db = mongojs(config.mongo.databaseUrl); var getCollection = function (channelUuid){ return db.collection(channelUuid); } module.exports = { logChannels: getCollection('logChannels') }; db.on('e...
def classify_language(text): # Create a dictionary of languages languages = { 'English': set(['hello', 'good', 'great']), 'French': set(['bonjour', 'comment', 'รงa']), 'Spanish': set(['hola', 'cรณmo', 'estรกs']) } # Split the text into words words = text.split(' ') # Init...
<filename>ods-main/src/main/java/cn/stylefeng/guns/onlineaccess/modular/mapper/ApplicationFileMapper.java package cn.stylefeng.guns.onlineaccess.modular.mapper; import cn.stylefeng.guns.onlineaccess.modular.entity.ApplicationFile; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotat...
#!/usr/bin/env 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 # "Lic...
#!/bin/bash wget -N -i - <<EOF https://downloads.arduino.cc/arduino-1.8.13-linux64.tar.xz https://downloads.arduino.cc/arduino-1.8.13-linuxarm.tar.xz https://downloads.arduino.cc/arduino-1.8.13-linuxaarch64.tar.xz https://dl.google.com/go/go1.15.5.linux-amd64.tar.gz https://dl.google.com/go/go1.15.5.linux-armv6l.tar.gz...
CREATE PROCEDURE update_book(IN bookID INT, IN bookTitle VARCHAR(255)) BEGIN UPDATE book SET title = bookTitle WHERE bookID = bookID; END;
<filename>src/main/java/de/semsoft/xfactory/services/file/TransformFile.java package de.semsoft.xfactory.services.file; import java.io.File; import java.io.IOException; import java.nio.charset.StandardCharsets; import java.nio.file.Path; import java.nio.file.Paths; import java.util.Date; import java.util.strea...
#include <limits.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #define DEFAULT_OUTPUT_FILE_PREFIX "ef_out" #define DEFAULT_OUTPUT_FILE_NAME_SQL_SUFFIX "sql" #define DEFAULT_OUTPUT_FILE_NAME_LOAD_SUFFIX "load" #define DEFAULT_ALLELE "" #define DEFAULT...
<reponame>xeon225/CyanMD import '../../src/pageComponent/head/index.js' new Vue({ el:'#main', data:{ }, methods:{ } })
#!/bin/bash # # Get an estimate of how CPU-hoggy to be. # # Usage: cpus2use.sh # # 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; either version 2 of the License, or # (at your option) any later ...
#!/bin/bash # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistribution...
#!/usr/bin/env python # encoding: utf-8 """ copyright (c) 2016 Earth Advantage. All rights reserved """ # Local Imports from scourgify.normalize import ( get_geocoder_normalized_addr, normalize_address_record, )
// NgRx import { Action } from '@ngrx/store'; // Auth import { User } from '../models/user.model'; export enum UserActionTypes { GetUser = '[User] Get User', Authenticated = '[User] Authenticated', NotAuthenticated = '[User] Not Authenticated', AuthenticationError = '[User] Authentication Error', IsLoggedIn...
const { existsSync, lstatSync, readdirSync, readFileSync } = require("fs"); const { dirname, join } = require("path"); // does the path to a file or directory include a hidden file or folder const isHidden = path => path.startsWith(".") || path.includes("/."); // by default, stop searching along a path if function re...
import AsyncStorage from '@react-native-community/async-storage' import localForage from 'localforage'; import { createStore, persist } from 'easy-peasy'; import { loadings } from 'src/features/request/models'; import { session } from 'src/features/wk/models'; import { reviews } from 'src/features/reviews/models'; impo...
#!/usr/bin/env bash ####################################################################################################### # This script is designed for use as a deployment script in a template # https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/deployment-script-template # # It expects the foll...
#!/bin/bash # Copyright 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. set -e # By default download to the data directory I guess read -p "Specify download path or enter to use default (data/...
<reponame>makoru-hikage/sasquare-python from functools import partial from math import floor from single_array_square.parts import * from single_array_square.helpers import * def get_line_indices (base): return range(1, base + 1) def get_row_nth_cell (base, row_index, nth_cell): return get_intersection_index...
import { Logger } from "pino"; import { Store } from "@walletconnect/core"; import { ICore, PairingTypes } from "@walletconnect/types"; import { SIGN_CLIENT_STORAGE_PREFIX, PAIRING_CONTEXT } from "../constants"; export class Pairing extends Store<string, PairingTypes.Struct> { constructor(public core: ICore, public...
#!/usr/bin/env bash # Git pre-commit hook to check staged Python files for formatting issues with # yapf. # # INSTALLING: Copy this script into `.git/hooks/pre-commit`, and mark it as # executable. # # This requires that yapf is installed and runnable in the environment running # the pre-commit hook. # # When running,...
'use strict'; var app = require('../..'); var request = require('supertest'); var newTree; describe('Tree API:', function() { describe('GET /api/trees', function() { var trees; beforeEach(function(done) { request(app) .get('/api/trees') .expect(200) .expect('Content-Type', /...
package ch.raiffeisen.openbank.beneficiary.controller.api; import java.util.HashSet; import java.util.Set; import org.springframework.hateoas.core.Relation; import ch.raiffeisen.openbank.common.repository.model.AddressType; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @Api...
#!/usr/bin/env bash set -euo pipefail for package in $(find -name "*.nupkg" | grep "test" -v); do echo "${0##*/}": Pushing $package... dotnet nuget push $package --source https://f.feedz.io/carter/carter/nuget/index.json --api-key $1 done
#!/usr/bin/env bash if [ -z "$1" -o -z "$2" -o -z "$3" ] then # print help cat <<EOF This is a helper script for make-pretty-timed-diff-tip-only-diff.sh. USAGE: make-each-time-file-tip-only-diff.sh MAKE-COMMAND NEW_FILENAME OLD_FILENAME MAKE-COMMAND: The command which is used to make the library, such as ...
# Run the named hook, either by calling the function with that name or # by evaluating the variable with that name. This allows convenient # setting of hooks both from Nix expressions (as attributes / # environment variables) and from shell scripts (as functions). runHook() { local hookName="$1" case "$(type -...
#! /usr/bin/env bash THEME='vampyr-grub' LANG='English' # Change to temporary directory cd $(mktemp -d) # Pre-authorise sudo sudo echo # Select language, optional declare -A LANGS=( [Chinese]=zh_CN [English]=EN [French]=FR [German]=DE [Italian]=IT [Norwegian]=NO [Portuguese]=PT [Russ...
<reponame>payhawk/travelperk-integration // tslint:disable-next-line: no-namespace export namespace SCHEMA { export const NAME = 'travelperk_integration'; export enum TABLE_NAMES { ACCESS_TOKENS = 'access_tokens', PAYHAWK_API_KEYS = 'payhawk_api_keys', INVOICES_SYNC_HISTORY = 'invoices_...
#!/bin/bash sed -i 's/#define DEBUG_CATO_PASS 1/#define DEBUG_CATO_PASS 0/g' ${CATO_ROOT}/src/cato/debug.h ${CATO_ROOT}/src/scripts/build_pass.sh cd ${CATO_ROOT}/src/test-suite llvm-lit -v . sed -i 's/#define DEBUG_CATO_PASS 0/#define DEBUG_CATO_PASS 1/g' ${CATO_ROOT}/src/cato/debug.h
package common import ( "encoding/hex" "fmt" "github.com/spacemeshos/ed25519" gosmtypes "github.com/spacemeshos/go-spacemesh/common/types" ) type LocalAccount struct { Name string PrivKey ed25519.PrivateKey // the pub & private key PubKey ed25519.PublicKey // only the pub key part } func (a *LocalAccoun...
/* Run. Along with C and Windows libraries Remarks: Refer at fn. cli_io_beta, fn. cli_in, fn. cli_ctrl_at_beta and cli_support_meta_keys. */ # define CBR # define CLI_W32 # include <conio.h> # include <stdio.h> # include <stdlib.h> # include "../../../incl/config.h" signed(__cdecl cli_run_meta_beta(signed short(...
<filename>spec/cf/cli/app/help_spec.rb require "spec_helper" module CF module App describe "Help" do let(:global) { {} } let(:given) { {} } subject do capture_output { Mothership.new.invoke(:help, :command => "app") } end it "describes the command" do subject ...
<reponame>OSADP/C2C-RI<filename>C2CRIBuildDir/projects/C2C-RI/src/jameleon-test-suite-3_3-RC1-C2CRI/jameleon-core/tst/java/net/sf/jameleon/function/AttributeBrokerTest.java package net.sf.jameleon.function; import net.sf.jameleon.bean.Attribute; import net.sf.jameleon.util.JameleonUtility; import junit.framework.Test...
import subprocess # Step 1: Subdomain enumeration using subfinder def subdomain_enumeration(domain_file): subprocess.run(['subfinder', '-silent', '-d', domain_file, '-o', 'domains.txt']) # Step 2: HTTP/HTTPS probing using httpx def http_probing(domain_file): subprocess.run(['cat', domain_file, '|', 'httpx', '...
import "../styles/globals.css"; import { RouteGuard } from "../components/RouteGuard"; import Axios from "axios"; import type { AppProps } from "next/app"; import { UserProvider } from "../context/user.context"; import { CustomMessageProvider } from "../context/error.context"; import Head from "next/head"; function M...
<filename>src/structures/command/arguments/types/EmojiArgument.js 'use strict'; const CommandError = require('../../CommandError.js'); const Argument = require('./Argument.js'); const EMOJI_REGEX = /^<(a)?:(\w+):(\d{16,18})>$/; class EmojiArgument extends Argument { static parseOptions(options = {}) { return {...
#!/bin/bash CURRENT_DIR=`pwd` echo $CURRENT_DIR sudo docker run -it \ -p 33000:3000 -p 33001:3001 -p 8080:8080 \ -p 8545:8545 -p 9545:9545 \ -v $CURRENT_DIR:/home/node/project \ sirhill/hardhat
#!/bin/sh # CYBERWATCH SAS - 2017 # # Security fix for DSA-2530-1 # # Security announcement date: 2012-08-15 00:00:00 UTC # Script generation date: 2017-01-01 21:06:26 UTC # # Operating System: Debian 6 (Squeeze) # Architecture: i386 # # Vulnerable packages fix on version: # - rssh:2.3.2-13squeeze1 # # Last versi...
#!/bin/bash set -e source /pd_build/buildconfig # Install the application. run /pd_build/release.sh # Remove cron and sshd entirely, unless we use them run rm -r /etc/service/sshd && rm /etc/my_init.d/00_regen_ssh_host_keys.sh # Clean up after ourselves. run /pd_build/finalize.sh
def total_stars_for_checked_repositories(repos_list, check_function) -> int: total_stars = 0 for repo in repos_list: if check_function(repo): total_stars += repo["stars"] return total_stars
<filename>discovery-plugin-admin-center/src/main/java/com/nepxion/discovery/plugin/admincenter/endpoint/VersionEndpoint.java package com.nepxion.discovery.plugin.admincenter.endpoint; /** * <p>Title: Nepxion Discovery</p> * <p>Description: Nepxion Discovery</p> * <p>Copyright: Copyright (c) 2017-2050</p> * <p>Comp...
#!/bin/bash echo Entering continuous compilation loop ... `dirname $0`/sbt.sh --loop --no-jrebel "$@" ~compile
<reponame>JLLeitschuh/movingcode<gh_stars>1-10 /** * Copyright (C) 2012 52ยฐNorth Initiative for Geospatial Open Source Software GmbH * * 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 ...
/** * @license * Copyright (c) 2014 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt The complete set of authors may be found * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may * b...
<filename>pkg/deviceclaimingserver/deviceclaimingserver.go // Copyright ยฉ 2021 The Things Network Foundation, The Things Industries B.V. // // 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 //...
#ifndef DVDSHOP_MOVIE_H #define DVDSHOP_MOVIE_H #include <string> class Movie { private: std::string title; public: explicit Movie(std::string title); [[nodiscard]] const std::string& get_title() const; [[nodiscard]] virtual double determine_amount(int days_rented) const = 0; [[nodiscard]] virtu...
# coding: utf-8 from __future__ import unicode_literals from admitad.items.base import Item __all__ = [ 'Coupons', 'CouponsForWebsite', 'CouponsCategories', ] class CouponsBase(Item): ORDERING = ('name', 'date_start', 'date_end', 'rating',) FILTERING = { 'campaign': lambda x: Item.sani...
def Fibonacci(n): output = [0] * (n+1) output[0] = 0 output[1] = 1 for i in range(2, n+1): output[i] = output[i-1] + output[i-2] return output[-1]
def createGrid(data, verbose): """ Variables for all board related data such as food, height, width, and snakes """ height = data['board']['height'] width = data['board']['width'] foodPos = data['board']['food'] enemySnakes = data['board']['snakes'] enemySnakeHeads = data['board']['...
import { ServiceFactory } from "../factories/serviceFactory"; import { IJsonStorageService } from "../models/services/IJsonStorageService"; import { IStorageService } from "../models/services/IStorageService"; /** * Storage service implementation for Local storage. */ export class JsonStorageService implements IJson...
TERMUX_PKG_HOMEPAGE=https://lftp.tech/ TERMUX_PKG_DESCRIPTION="FTP/HTTP client and file transfer program" TERMUX_PKG_LICENSE="GPL-3.0" TERMUX_PKG_MAINTAINER="@termux" TERMUX_PKG_VERSION=4.9.2 TERMUX_PKG_SRCURL=https://lftp.tech/ftp/lftp-${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_SHA256=c517c4f4f9c39bd415d7313088a2b1e313b2...
<filename>src/entrypoints/main/router/pages/main-page/index.tsx<gh_stars>0 import React, { memo, FC, useEffect } from 'react'; import { compose } from 'redux'; import { Link as RouterLink, RouteComponentProps } from 'react-router-dom'; import { InView } from 'react-intersection-observer'; import Root from '../../../.....
<filename>src/role.harvester.ts import { log } from "./lib/logger/log"; export function run(creep: Creep): void { if (creep.memory.working === false) { if (creep.store.getFreeCapacity() === 0) { creep.memory.working = true; _work(creep); } else { _moveToHarvest(creep); } } else { ...
import React, { useState } from 'react'; import { BrowserRouter as Router, Route, Link } from 'react-router-dom'; const Users = ({ users }) => { const [selectedUser, setSelectedUser] = useState(null); return ( <> <ul> {users.map(user => ( <li key={user.id} onClick={() => setSelectedUser(user.id)}> {user.name} ...
def diff(self, other): """ Automatically find the differences between two trees Argument other has to be a Merkle Tree Optimized if two trees have the same height """ if not isinstance(other, self.__class__): raise Exception("You have to compare Merkle Tree with Merkle Tree") if...
#!/usr/bin/env bash #TEST: Use correct PIN plus one additional character while PIN is needed, expect failure #TODO: Merge with 10-080 (fail_incorrect_pin)? if [ -n "$HAVE_MYSQL" ]; then ods_setup_conf conf.xml conf-mysql.xml fi && ods_reset_env_noenforcer && ! log_this ods-hsmutil-purge ods-hsmutil purge SoftHSM ...
<filename>webtools.py # # Copyright 2012 <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...