text
stringlengths
1
1.05M
#!/bin/bash newgrp docker << END docker build -t cryptoac_opa --file ./DockerFileOPA . END
#!/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 "License...
def recursive_function(arg, max_depth): if arg < max_depth: recursive_function(arg + 1, max_depth)
/******************************************************************************* * Copyright (c) 2014-2015 IBM Corp. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * and Eclipse Distribution License v1.0 which accompany t...
public class MaxMin { public static void findMaxMin(int[] array) { int max = array[0]; int min = array[0]; for (int i = 1; i < array.length; i++) { if (array[i] > max) max = array[i]; else if (array[i] < min) min = array[i]; } System.out.printl...
<reponame>yyzclyang/algae-ui import './affix.scss';
#!/bin/sh edgecount/run.sh matrixbuilder/run.sh matrixmultiplier/run.sh
import { RelationsEventMap } from './RelationsEventMap' type RelationsMap = { [key: string]: { on: RelationsEventMap emit: RelationsEventMap } } export default RelationsMap
#!/bin/bash FN="JASPAR2014_1.22.0.tar.gz" URLS=( "https://bioconductor.org/packages/3.10/data/experiment/src/contrib/JASPAR2014_1.22.0.tar.gz" "https://bioarchive.galaxyproject.org/JASPAR2014_1.22.0.tar.gz" "https://depot.galaxyproject.org/software/bioconductor-jaspar2014/bioconductor-jaspar2014_1.22.0_src_all.ta...
SELECT city, COUNT(city) AS city_count FROM customers GROUP BY city ORDER BY city_count DESC LIMIT 1;
<reponame>mjochab/Inzynierski_projekt_zespolowy_2018_gr3<filename>src/main/java/patron/mains/bootstraps/BootstrapConfigurator.java package patron.mains.bootstraps; import com.appscharles.libs.aller.exceptions.AllerException; import com.appscharles.libs.databaser.exceptions.DatabaserException; import com.appscharle...
#Update this path to your virtual environment source /env/cons2label/bin/activate TEST_NAME="test" INPUT=../dataset/ctb/ctb-$TEST_NAME.seq_lu TEST_PATH=../CTB_pred_tags/$TEST_NAME"_ch.trees" USE_GPU=True EVALB=../EVALB/evalb OUTPUT=../output/ MODELS=../models/ LOGS=../logs/ #ENRICHED taskset --cpu-list 1 \ python .....
/* * == BSD2 LICENSE == * Copyright (c) 2016, Tidepool Project * * This program is free software; you can redistribute it and/or modify it under * the terms of the associated License, which is identical to the BSD 2-Clause * License as published by the Open Source Initiative at opensource.org. * * This program ...
import requests from bs4 import BeautifulSoup def get_all_links(url): r = requests.get(url) data = r.text soup = BeautifulSoup(data, 'html.parser') links = [] for link in soup.find_all('a'): links.append(link.get('href')) return links # Testing the function print(get_all_links('http...
// file : xsde/cxx/parser/validating/gmonth-day.hxx // author : <NAME> <<EMAIL>> // copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC // license : GNU GPL v2 + exceptions; see accompanying LICENSE file #ifndef XSDE_CXX_PARSER_VALIDATING_GMONTH_DAY_HXX #define XSDE_CXX_PARSER_VALIDATING_GMONTH_DAY_H...
<reponame>lionelpa/openvalidation /* * Copyright 2019 <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 * * ...
/* * */ package net.community.chest.io.output; import java.io.IOException; import java.io.Writer; import java.nio.channels.Channel; /** * <P>Copyright as per GPLv2</P> * * <P>Accumulates all written data into a work buffer and calls the actual * writing method only when LF detected</P> * @author <NAME>. * @si...
<filename>packages/ux-core/src/index.ts import App from './lib/app' export { App }
import random import numpy as np # Parameters N_POPULATION = 1000 # number of individuals N_GENERATIONS = 100 # number of generations P_MUTATION = 0.1 # probability of mutation # Objective function def f(x, y): return x**2 + 2 * y**2 - 2 * x + 2 * y # Initialization population = np.random.rand(N_POPULATION...
def bubble_sort(arr): n = len(arr) for i in range(n): for j in range(0, n-i-1): if arr[j] > arr[j+1] : arr[j], arr[j+1] = arr[j+1], arr[j] arr = [5, 1, 4, 2, 8] bubble_sort(arr) print("Sorted list is:", arr)
function validatePasswordChangeForm($oldPassword, $newPassword, $confirmPassword) { $errors = []; if (empty($oldPassword)) { $errors['old_password'] = 'Old password is required.'; } if (empty($newPassword)) { $errors['new_password'] = 'New password is required.'; } elseif (strlen($...
Objective function: Maximize profit = 80A+90O+20B+30P+200M+100W+50S+60C+70K Subject to: A+O+B+P+M+W+S+C+K <= 10 # constraint of storage space A<=10 # constraint of maximum pieces of apples O<=10 # constraint of maximum pieces of oranges B<=10 # constraint of maximum pieces of bananas P<=10 # constraint of maximum p...
/* * Copyright 2015-present Open Networking Foundation * * 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 appli...
#!/bin/bash if [ $# -lt 1 ]; then echo "You must provide the name of the project as the first argument" echo "Usage: ./new-framework.sh <dir-path>/<framework-name>" echo "Example: ./new-framework.sh frameworks/myframework" exit 1 elif [ -d $1 ]; then echo "A project with the given name '$1' already...
def copyArray(fromList, toList): for item in fromList[:]: toList.append(item)
<gh_stars>0 // @flow import ReactDOM from 'react-dom'; import * as React from 'react'; import { Component } from 'react-simplified'; import { TextInput } from '../../widgets/textInput/textInput'; import { Button } from '../../widgets/button/button'; import { history } from '../../app'; import style from './css/heade...
#!/bin/bash #### debug model prod #nohup java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n -jar -Dspring.profiles.active=dev UserService.jar > user.log 2>&1 & #### normal prod model #nohup java -jar -Dspring.profiles.active=prod UserService.jar > user.log 2>&1 & #### normal test model #nohup ...
# -*- coding: iso-8859-1 -*- """ Created on December 9 2019 Description: This routine performs LSD analysis of SPIRou spectro-polarimetric data. @author: <NAME> <<EMAIL>> Institut d'Astrophysique de Paris, France. Simple usage example: GamEqu: python ~/spirou-to...
function Vector3(a, b, c) { this.x = 0; this.y = 0; this.z = 0; if (a != undefined) { if (a.constructor == Number) { this.x = a; this.y = b; this.z = c; } else if (a.constructor == Array) { if (a.length != 3) { throw new Error("Trying to create 3 vector from array of length: " + a.le...
<reponame>Polidea/SiriusObfuscator<filename>SymbolExtractorAndRenamer/lldb/include/lldb/Interpreter/OptionValueString.h<gh_stars>100-1000 //===-- OptionValueString.h -------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the U...
#!/usr/bin/env bats load helpers @test "podman images - basic output" { run_podman images -a is "${lines[0]}" "REPOSITORY *TAG *IMAGE ID *CREATED *SIZE" "header line" is "${lines[1]}" "$PODMAN_TEST_IMAGE_REGISTRY/$PODMAN_TEST_IMAGE_USER/$PODMAN_TEST_IMAGE_NAME *$PODMAN_TEST_IMAGE_TAG *[0-9a-f]\+" "podman...
<reponame>andromeda/mir new Uint16Array();
list_items = ['apple', 'banana', 'pear', 'strawberry'] index = 0 while index < len(list_items): item = list_items[index] print(item) index += 1
# (C) Copyright 1988- ECMWF. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernment...
import React, { useMemo } from 'react'; import { TextField } from '@/components/core/Form'; import { Stack } from '@/components/UI/Stack'; import { useFocusIdx } from '@/hooks/useFocusIdx'; import { TextStyle } from '@/components/UI/TextStyle'; export function Margin() { const { focusIdx } = useFocusIdx(); return...
#include<bits/stdc++.h> int t1, t2; // Two machines' clocks void syncClocks() { if (t1 > t2) t2 = t2 + (t1 - t2); else t1 = t1 + (t2 - t1); } int main() { syncClocks(); return 0; }
# SPDX-License-Identifier: GPL-2.0+ # Copyright (c) 2016 Google, Inc # Written by <NAME> <<EMAIL>> # # Handle various things related to ELF images # from collections import namedtuple, OrderedDict import io import os import re import shutil import struct import tempfile from patman import command from patman import t...
#!/usr/bin/env python # encoding: utf-8 # # Copyright (c) 2008 <NAME> All rights reserved. # """ """ __version__ = "$Id$" #end_pymotw_header import tempfile print 'gettempdir():', tempfile.gettempdir() print 'gettempprefix():', tempfile.gettempprefix()
var util = require("util"); var nodemailer = require('nodemailer'); var smtpTransport = require('nodemailer-smtp-transport'); var wellknown = require('nodemailer-wellknown'); //Setup Nodemailer transport smtpTrans = nodemailer.createTransport(smtpTransport({ service: 'Gmail', auth: { user: "<EMAIL>", p...
#!/bin/bash set -e # Exit on error # Main storage directory. You'll need disk space to dump the WHAM mixtures and the wsj0 wav # files if you start from sphere files. storage_dir= # If you start from the sphere files, specify the path to the directory and start from stage 0 sphere_dir= # Directory containing sphere...
<filename>app/src/main/java/sample/sadashiv/examplerealmmvp/presenter/DetailPresenter.java package sample.sadashiv.examplerealmmvp.presenter; import sample.sadashiv.examplerealmmvp.model.realm.RealmService; import sample.sadashiv.examplerealmmvp.ui.detail.DetailView; public class DetailPresenter extends BasePresenter...
<reponame>totemkevin/poc const express = require("express"); const path = require("path"); const history = require("connect-history-api-fallback"); const app = express(); app.use(history()); app.use(express.static(path.join(__dirname, "storybook-static"))); app.listen(3000, () => { console.log('server start') });
<filename>src/main/java/com/ipec/trazactivo/repository/EspecialidadAcademicaDao.java<gh_stars>0 package com.ipec.trazactivo.repository; import com.ipec.trazactivo.model.EspecialidadAcademica; import org.springframework.data.jpa.repository.JpaRepository; public interface EspecialidadAcademicaDao extends JpaRepository<...
<reponame>drkitty/cyder from django import forms from cyder.base.eav.forms import get_eav_form from cyder.base.mixins import UsabilityFormMixin from cyder.cydhcp.range.models import Range, RangeAV from cyder.cydns.forms import ViewChoiceForm class RangeForm(ViewChoiceForm, UsabilityFormMixin): class Meta: ...
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals from amaasutils.random_utils import random_string, random_date import random from amaascore.assets.enums import WINE_CLASSIFICATIONS, WINE_PACKING_TYPE from amaascore.assets.wine import Wine from amaascore.core....
# This shell script executes Slurm jobs for thresholding # predictions of NTT-like convolutional # neural network on BirdVox-70k full audio # with logmelspec input. # Augmentation kind: none. # Test unit: unit02. # Trial ID: 5. sbatch 042_aug-none_test-unit02_predict-unit02_trial-5.sbatch sbatch 042_aug-none_test-unit...
/** * @license * Copyright 2014 Google LLC * SPDX-License-Identifier: Apache-2.0 */ /** * @fileoverview Creates a multi-user pond (duck page). * @author <EMAIL> (<NAME>) */ 'use strict'; goog.provide('Pond.Duck'); goog.require('Blockly.FlyoutButton'); goog.require('Blockly.utils.Coordinate'); goog.require('Bl...
package bigtablestore import ( "context" "fmt" "reflect" "strconv" "testing" "time" "cloud.google.com/go/bigtable" "google.golang.org/protobuf/types/known/durationpb" feast "github.com/feast-dev/feast/sdk/go" "github.com/feast-dev/feast/sdk/go/protos/feast/serving" "github.com/feast-dev/feast/sdk/go/proto...
<gh_stars>1-10 package cucumber.runtime.android; import cucumber.runtime.ClassFinder; import cucumber.runtime.CucumberException; import dalvik.system.DexFile; import java.util.ArrayList; import java.util.Collection; import java.util.Enumeration; import java.util.List; /** * Android specific implementation of {@link ...
<gh_stars>0 "use strict"; class DrumMachineController { constructor($timeout) { this.$timeout = $timeout; this.instruments = [ new Audio("components/drum-machine/audio/Note_Low.wav"), new Audio("components/drum-machine/audio/Clap.wav"), new Audio("components/drum-machine/audio/Tom_Hi.wav")...
import logging import argparse import cpickle def process_file(input_filepath): try: # Read book information from the input file with open(input_filepath, mode='rb') as input_file: book_data = input_file.read() # Process the book data (example: convert to uppercase) pro...
# funding.py from src.shared.entity import Base from sqlalchemy import Column, Integer, String class Funding(Base): __tablename__ = 'financement' id = Column(Integer, primary_key=True) name = Column(String(50)) amount = Column(Integer)
<gh_stars>0 select event, time_waited as time_spent from v$session_event where sid = &sid and event not in ( 'Null event', 'client message', 'KXFX: Execution Message Dequeue - Slave', 'PX Deq: Execution Msg', 'KXFQ: kxfqdeq - normal deqeue', 'PX Deq: Table Q N...
import styled, {createGlobalStyle} from 'styled-components' export const Sidebar = styled.div` width: 300px; height: 100%; background-color: rgba(70, 70, 70, 1); padding: 20px; ` export const Title = styled.div` font-size: 18px; font-weight: bold; margin-bottom: 15px; ` export const Globa...
import { JsonResponse } from './shared/utils'; export const onRequest: PagesFunction<{ NODE_ENV: string; }> = async function onRequest(context) { const { env } = context; const timestamp = Date.now(); const res = await context.next().catch((e) => { const result = { status: 0, error: env.NODE_EN...
TERMUX_PKG_HOMEPAGE=https://developer.gnome.org/gdk-pixbuf/ TERMUX_PKG_DESCRIPTION="Library for image loading and manipulation" TERMUX_PKG_LICENSE="LGPL-2.1" TERMUX_PKG_VERSION=2.40.0 TERMUX_PKG_SRCURL=ftp://ftp.gnome.org/pub/gnome/sources/gdk-pixbuf/${TERMUX_PKG_VERSION:0:4}/gdk-pixbuf-${TERMUX_PKG_VERSION}.tar.xz TER...
i = 0 while i <= 20: if i % 2 == 0: print(i) i += 1
<reponame>MMaus/zettelfix<filename>vue/src/shims-vue.d.ts // see https://github.com/vuejs/vue-test-utils-next/issues/194#issuecomment-695333180 // This is supposed to get the unit tests working /* eslint-disable */ declare module "*.vue" { import type { DefineComponent } from "vue"; // const component: DefineCompon...
import java.util.HashSet; import java.util.Set; public class DsSet { public static void main(String[] args) { for (int i = 1; i <= 4; i++) { set(i); } } private static void set(int level) { Set<String> set = new HashSet<>(); set.add("a"); for (int i = 0; i < level; i++) { Set<S...
#!/usr/bin/env bash destfile="$1" pubkey_file="$2" cat > "$destfile" << EOF // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef SAMPLES_REMOTE_ATTESTATION_PUBKEY_H #define SAMPLES_REMOTE_ATTESTATION_PUBKEY_H EOF printf 'static const char OTHER_ENCLAVE_PUBLIC_KEY[...
import React, { Component } from 'react'; import { View, Text } from 'react-native'; export default class App extends Component { state = { quote: '' } componentDidMount() { fetch('https://quotes.rest/qod?language=en').then(res => res.json()).then(res => { this.setState({ quote: res.cont...
<reponame>FreddieSanchez/ChoreApp<filename>back-end/src/main/scala/io/github/freddiesanchez/chore/repository/ChoreRepository.scala<gh_stars>0 package io.github.freddiesanchez.chore.repository import doobie.imports._ import doobie.util.transactor.Transactor import fs2.interop.cats._ import io.github.freddiesanchez.c...
<reponame>JoshuaGross/yprof<gh_stars>1-10 /** * yprof hasher. * * @copyright (c) 2015, Yahoo Inc. Code licensed under the MIT license. See LICENSE file for terms. */ module.exports = { description: 'Get the hash of a given source file, for finding a compiled version of code in a cache directory.', setupOptions...
<reponame>grupodesoft/appwoori<filename>assets/vue/appvue/appgrupo.js var this_js_script = $('script[src*=appgrupo]'); var my_var_1 = this_js_script.attr('data-my_var_1'); if (typeof my_var_1 === "undefined") { var my_var_1 = 'some_default_value'; } var my_var_2 = this_js_script.attr('data-my_var_2'); if (typeof m...
#!/bin/sh sudo kill -s SIGINT $(ps aux | grep node | grep server | grep -v grep | awk '{print $2}')
<reponame>Bahroel0/Web-Nikah-IMK $(document).ready(function(){ $('.carousel.carousel-slider').carousel({fullWidth: true, padding:200},setTimeout(autoplay, 4500)); function autoplay() { $('.carousel').carousel('next'); setTimeout(autoplay, 5000); } // the "href" attribute of the modal trig...
<reponame>waleedmashaqbeh/freequartz<gh_stars>10-100 /* Copyright 2010 Smartmobili SARL * * 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/LI...
class Query: def __init__(self, db_connection): self.db_connection = db_connection def execute(self, sql_query): try: cursor = self.db_connection.cursor() cursor.execute(sql_query) columns = [col[0] for col in cursor.description] result_set = [] ...
angular.module("<%= appName %>").controller("TweetsListCtrl", ['$scope', '$meteor', function($scope, $meteor){ $scope.sort = {createdAt: -1}; $meteor.autorun($scope, function() { $meteor.subscribe('tweets', {}, $scope.getReactively('search')).then(function(){ console.log('Got tweets'); ...
<filename>ocpp-v2_0/src/main/java/eu/chargetime/ocpp/model/basic/BootNotificationRequest.java package eu.chargetime.ocpp.model.basic; /* ChargeTime.eu - Java-OCA-OCPP MIT License Copyright (C) 2018 <NAME> <<EMAIL>> Permission is hereby granted, free of charge, to any person obtaining a copy of th...
<gh_stars>1-10 import * as React from 'react'; import RouteWrapper from "@core/RouteWrapper"; import { apPathAddons } from '@paths/ap/addons'; import AddonsWizard from '@containers/ap/AddonsWizard'; import PageWrapper from '@core/PageWrapper'; import { setAPImage } from '@util/set-bg-image'; import { apiw as welcomeAPI...
<gh_stars>0 import logging import time from shakenfist_ci import base logging.basicConfig(level=logging.INFO, format='%(message)s') LOG = logging.getLogger() class TestStateChanges(base.BaseNamespacedTestCase): def __init__(self, *args, **kwargs): kwargs['namespace_prefix'] = 'statechanges' sup...
<reponame>JasonLiu798/javautil package com.atjl.log.util; import com.atjl.log.api.LogUtil; import com.atjl.util.collection.CollectionUtil; import com.atjl.util.json.JSONFastJsonUtil; import java.io.PrintWriter; import java.io.StringWriter; public class LogCommonUtil { private LogCommonUtil() { ...
#!/usr/bin/env bash V="1.0.0" # The version number of this script. PROG=$0 COMPOSEVERSION="" if [[ $EUID -ne 0 ]]; then echo "This script must be run as root." exit 1 fi main() { while getopts ":hVv:" opt; do case ${opt} in h ) usage exit 0 ;; V ) version exit 0 ;; v ) COM...
SELECT * FROM employees WHERE salary > (SELECT AVG(salary) FROM employees);
#!/bin/bash # Run_MultiCore2.sh # Check Environment if [ -z ${IMPERAS_HOME} ]; then echo "IMPERAS_HOME not set. Please check environment setup." exit fi ${IMPERAS_ISS} --verbose --output imperas.log \ --program ../../../Applications/multicore2/multicore2.V850-O1-g.elf \ --processorvendor renesas.ovpworld....
// // Created by ooooo on 2020/1/16. // #ifndef CPP_1160__SOLUTION1_H_ #define CPP_1160__SOLUTION1_H_ #include <iostream> #include <vector> #include <unordered_map> using namespace std; class Solution { public: int countCharacters(vector<string> &words, string chars) { unordered_map<char, int> m; for_each...
import pandas as pd import numpy as np import matplotlib.pyplot as plt # Read Boston housing data in boston_df = pd.read_csv( 'https://raw.githubusercontent.com/PacktWorkshops/The-Data-Science-Workshop/master/Chapter02/Dataset/boston_house_prices.csv' ) # Visualize data plt.style.use('ggplot') plt.scatter(boston_...
import { DEFAULT_VIDEO_CONSTRAINTS } from '../../../constants'; import { useCallback, useState } from 'react'; import Video, { LocalVideoTrack, LocalAudioTrack, CreateLocalTrackOptions } from 'twilio-video'; import { useHasAudioInputDevices, useHasVideoInputDevices } from '../../../hooks/deviceHooks/deviceHooks'; impor...
#!/bin/sh scp *.html root@sveinbjorn.org:/www/sveinbjorn/html/files/manpages/
<filename>src/main/java/com/assist/watchnext/service/UserService.java package com.assist.watchnext.service; import com.assist.watchnext.model.User; import com.assist.watchnext.repository.UserRepository; import org.passay.CharacterData; import org.passay.CharacterRule; import org.passay.EnglishCharacterData; import org...
package cn.airpassport.lib; import cn.airpassport.lib.mail.LibMail; import org.junit.Test; import org.junit.jupiter.api.Assertions; import static org.junit.jupiter.api.Assertions.assertEquals; public class LibMailTests { @Test public void testEMailAddressesCase1() { Assertions.assertEquals( false, LibMail.isVa...
package flagutil import ( "flag" "testing" "github.com/google/go-cmp/cmp" ) func TestCommaStringSlice(t *testing.T) { fs := flag.NewFlagSet("test", flag.ContinueOnError) var ( ss []string ) fs.Var((*CommaStringSliceFlag)(&ss), "ss", "string slice flag") args := []string{ "-ss", "a,b,c", "-ss", "d,e,...
package dev.rudrecciah.admincore.staffmode.menus; import dev.rudrecciah.admincore.staffmode.menus.providers.MainProvider; import fr.minuskube.inv.SmartInventory; import org.bukkit.entity.Player; import org.bukkit.event.inventory.InventoryType; import static dev.rudrecciah.admincore.Main.plugin; public class MainMenu...
#!/bin/bash -e ##------------------------------------------------------------------- ## @copyright 2017 DennyZhang.com ## Licensed under MIT ## https://www.dennyzhang.com/wp-content/mit_license.txt ## ## File : docker_pylint.sh ## Author : Denny <contact@dennyzhang.com> ## Description : ## -- ## Created : <2017-05-1...
module ONCCertificationG10TestKit module ExportKickOffPerformer def perform_export_kick_off_request(use_token: true) skip_if use_token && bearer_token.blank?, 'Could not verify this functionality when bearer token is not set' headers = { accept: 'application/fhir+json', prefer: 'respond-async' } ...
// Copyright (c) 2021-present, <NAME> // Licensed under the MIT license whose full text can be found at http://opensource.org/licenses/MIT let parse=exports const fsp=require("fs").promises parse.run_error=async function() { console.log("dataset,pub,error,url") let data=await fsp.readFile(__dirname+"/../logs.txt"...
<gh_stars>0 package com.leetcode; import junit.framework.TestCase; public class Solution_405Test extends TestCase { public void testToHex() { Solution_405 solution_405 = new Solution_405(); System.out.println(solution_405.toHex(-1)); } }
/* * Copyright 2014-2018 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 * * Unless required by app...
#!/usr/bin/env python import click as ck import numpy as np import pandas as pd from tensorflow.keras.models import load_model from subprocess import Popen, PIPE import time from utils import Ontology from aminoacids import to_onehot MAXLEN = 2000 @ck.command() @ck.option( '--filters-file', '-ff', default='data/...
export { default } from "./ManagementTabs";
'use strict'; var total=0; function greaterThan(myDynamicArr,num){ for (var i=0 ; i<myDynamicArr.length ; i++){ if (myDynamicArr[i] > num){ total ++; }else{ // console.log('it is smaller than the num'); } } return total; } // greaterThan([1,2,3,4] ,2); // console.log(t...
# == Schema Information # # Table name: places # # id :integer not null, primary key # code :string(255) not null # name :string(255) not null # created_at :datetime not null # updated_at :datetime not null # state :boolean # active :boolean # blur...
#/bin/sh # Build docs_source. bazel build //ll:docs chmod 644 bazel-bin/ll/*.md cp bazel-bin/ll/*.md docs_source # Rebuild the Sphinx documentation. rm -rd docs sphinx-build -b html docs_source docs # Rerun the pre-commit hooks so that we do not need to stage everything twice. git add docs pre-commit run --all-files...
<reponame>jelly/patternfly-react import React from 'react'; import { render } from '@testing-library/react'; import { SelectGroup } from '../SelectGroup'; import { SelectProvider } from '../selectConstants'; describe('SelectGroup', () => { test('renders with children successfully', () => { const { asFragment }...
import time import requests def monitor_health_check(url: str, interval: int) -> None: while True: try: response = requests.get(url) if response.status_code == 200: if "ok" not in response.text: print("Health check failed: Service is not OK") ...
#!/bin/sh set -e set -u debug=0 now=$(date -u +"%s%N") guild="guild-name" count=0 hacky=$(mktemp) ships=$(mktemp) toons=$(mktemp) if [ $debug -eq 1 ]; then curl="/bin/echo -- curl" else curl="/usr/bin/curl" fi wget -q -O- 'guild-swgoh.gg-url' | \ egrep -o 'href="/u/.+"' | \ sed -e 's#href="#https://...
<gh_stars>0 #include "gameAction.hpp" using namespace odfaeg::network; using namespace odfaeg::core; namespace sorrok { void GameAction::operator()(Item& item, Hero* hero) { SymEncPacket packet; std::string request = "CANUSE*"+conversionIntString(hero->getId())+"*"+conversionIntString(item.getType()...
#!/bin/bash -l #PBS -l walltime=23:59:00,nodes=1:ppn=24:gpus=2,mem=16gb #PBS -m abe #PBS -N 120019732_pgml_sparse #PBS -o 120019732_pgml_sparse.stdout #PBS -q k40 source takeme_source.sh source activate mtl_env python train_PGDL_custom_sparse.py 120019732
import EmberObject from '@ember/object'; import FormSubmissionUtilsMixin from 'ember-cli-text-support-mixins/mixins/form-submission-utils'; import { module, test } from 'qunit'; module('Unit | Mixin | form submission utils', function() { // Replace this with your real tests. test('it works', function (assert) { ...