text
stringlengths
1
1.05M
import re def extract_text_from_html(html): pattern = r'<[^>]*>' clean_html = re.sub(pattern, '', html) # Remove all HTML tags return [clean_html.strip()] # Return the extracted text content as a list
package com.xplmc.example.esdatafeeder.common.config; import org.apache.commons.lang3.StringUtils; import org.elasticsearch.client.transport.TransportClient; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.common.transport.InetSocketTransportAddress; import org.slf4j.Logger; import org.slf4...
<filename>imports/vx/client/code/master.js import { combineReducers, createStore } from "redux" import { persistStore, persistReducer } from "redux-persist" import autoMergeLevel2 from "redux-persist/lib/stateReconciler/autoMergeLevel2" import storage from "redux-persist/lib/storage" import { setCurrentLocale } from "/...
<?php session_start(); $cookie_name = "session_token"; $cookie_value = md5(uniqid(rand(), true)); setcookie($cookie_name, $cookie_value, time() + (86400 * 30), "/"); ?>
/* * numerical integration example, as discussed in textbook: * * compute pi by approximating the area under the curve f(x) = 4 / (1 + x*x) * between 0 and 1. * * sequential version. */ #include <cstdio> #include <cstdlib> #include <cmath> /* copied from not-strictly-standard part of math.h */ #define M_PI 3....
#!/bin/bash #SBATCH -J Act_elu_1 #SBATCH --mail-user=eger@ukp.informatik.tu-darmstadt.de #SBATCH --mail-type=FAIL #SBATCH -e /work/scratch/se55gyhe/log/output.err.%j #SBATCH -o /work/scratch/se55gyhe/log/output.out.%j #SBATCH -n 1 # Number of cores #SBATCH --mem-per-cpu=2000 #SBATCH -t 23:59:00 # Hours, minutes and ...
/* * Copyright 2017-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...
const dateArr = date.split('/'); const day = dateArr[1]; const month = dateArr[0]; console.log('Day:', day); console.log('Month:', month);
#include <UUIDGenerator.h> UUIDGenerator::UUIDGenerator() { } UUIDGenerator::~UUIDGenerator() { } std::string UUIDGenerator::createUuid() { boost::uuids::uuid uuid = boost::uuids::random_generator()(); return boost::uuids::to_string(uuid); }
def find_min(arr): # Initialize the minimum value min_val = arr[0] # Iterate through the array for i in range(1, len(arr)): if arr[i] < min_val: min_val = arr[i] return min_val
function countSubstring(str1, str2) { let count = 0; for (let i = 0; i < str1.length; i++) { if (str1[i] === str2[0]) { let isSubstring = true; for (let j = 0; j < str2.length; j++) { if (str1[i + j] !== str2[j]) { isSubstring = false; break; } ...
import Visualizer from '../classes/visualizer' import { interpolateRgb, interpolateBasis, interpolateHcl } from 'd3-interpolate' import { getRandomElement } from '../util/array' import { fractalmirror } from '../util/canvases/rotating_fractal_mirror' import { rainbow } from '../util/color_themes' export default class ...
package org.f5n.aoc2020.days; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.f5n.aoc2020.utils.Day; import org.f5n.aoc2020.utils.Input; import org.f5n.aoc2020.utils.IntResult; import org.f5n.aoc2020.utils.Result; import org.f5n.aoc2020.utils.Utils; public...
/*! * Copyright (c) 2019 Digital Bazaar, Inc. All rights reserved. */ 'use strict'; export {default as BrAddressForm} from './BrAddressForm.vue';
<filename>Magazine-Api/src/main/java/DB/DAOs/Magazine/Financials/AdUpdate.java package DB.DAOs.Magazine.Financials; import DB.DBConnection; import DB.Domain.Financial.Ad; import BackendUtilities.Parser; import java.sql.PreparedStatement; import java.sql.SQLException; /** * * @author jefemayoneso */ public class Ad...
import { Component } from "@angular/core"; @Component({ selector: 'pm-products', templateUrl: './product-list.component.html' }) export class ProductListComponent{ pageTitle: string = "Product List"; imageWidth: number = 50; imageMargin: number = 2; showImage: boolean = false; products: any...
#!/bin/bash # # Usage: # ./html.sh <function name> set -o nounset set -o pipefail set -o errexit basic-head() { local title=$1 cat <<EOF <!DOCTYPE html> <html> <head> <title>$title</title> <style> body { margin: 0 auto; width: 40em; } #home-link { text-align: ...
package org.springframework.transaction.interceptor; import org.aopalliance.aop.Advice; import org.springframework.aop.ClassFilter; import org.springframework.aop.Pointcut; import org.springframework.aop.support.AbstractPointcutAdvisor; import org.springframework.lang.Nullable; import org.springframework.util.Assert;...
/* * Universidad Carlos III de Madrid (UC3M) * Programacion 2016-2017 */ package bomberman; import bomberman.client.ClientManager; import bomberman.server.GameEngine; /** * The main class of the MiniDungeon game. * * @author Planning and Learning Group (PLG) */ public class Game extends Constants { /** * ...
IN_MB=(1024*1024) INFO=cat /proc/net/dev | grep "wlan" | awk '{print $2/IN_MB}' notify-send -h int:y:10 -u normal -t 10000 "Total Bytes Received ${INFO}"
<filename>spark/spark-tensorflow-connector/src/main/scala/org/tensorflow/spark/datasources/tfrecords/udf/DataFrameTfrConverter.scala package org.tensorflow.spark.datasources.tfrecords.udf //import com.sun.rowset.internal.Row import org.apache.spark.sql.Row import org.apache.spark.sql.expressions.UserDefinedFunctio...
<filename>spec/teambition/has_teambition_account_spec.rb describe Teambition::HasTeambitionAccout do before(:example) do @base = Class.new { include Teambition::HasTeambitionAccout } end it 'wraps API' do obj = Class.new(@base) do has_teambition_account token: :token, namespace: :tb end.new ...
import React from 'react' import ValidatedForm from 'core/components/validatedForm/ValidatedForm' import PicklistField from 'core/components/validatedForm/PicklistField' import SubmitButton from 'core/components/SubmitButton' import createAddComponents from 'core/helpers/createAddComponents' import ClusterPicklist from...
package com.ctrip.persistence.service.impl; import javax.annotation.Resource; import org.springframework.stereotype.Service; import com.ctrip.persistence.repository.ElementTplParamGroupRepository; import com.ctrip.persistence.service.ElementTplParamGroupService; /** * Created by juntao on 2/3/16. * * @author <EM...
<filename>docs/dir_d328eab022aecca8ee55c02040e03a9a.js var dir_d328eab022aecca8ee55c02040e03a9a = [ [ "process.h", "process_8h.html", [ [ "Process", "class_tux_proc_1_1_process.html", "class_tux_proc_1_1_process" ] ] ], [ "region.h", "region_8h.html", [ [ "Region", "class_tux_proc_1_1_region.htm...
package com.modesteam.urutau.builder; import com.modesteam.urutau.model.UrutaUser; import com.modesteam.urutau.model.system.Password; public class UserBuilder { private String email; private String login; private String name; private String lastName; private String password; private String passwordVerify; priv...
#!/bin/bash set -exu export DEBIAN_FRONTEND=noninteractive apt update apt install -V -y lsb-release . $(dirname $0)/commonvar.sh apt install -V -y \ ${repositories_dir}/${distribution}/pool/${code_name}/${channel}/*/*/*_${architecture}.deb td-agent --version case ${code_name} in xenial) apt install -V -y ...
#!/bin/sh # Sequential search times for n>=131,072 were too costly. We skipped # these; your mileage may vary CODE=../../../../Code BIN=$CODE/bin NT=100 SZ=524288 P="1.0 0.5 0.0" Z="4096 8192 16384 32768 65536 131072 262144 524288" REPORT=table5-2.output rm -f $REPORT CONFIG=config5-2.rc for z in $Z do for p ...
import os from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from sqlalchemy.orm import Session from typing import Tuple from .models.implementation import Base def setup_database(logger, db_filename) -> Tuple[Session, bool]: """Create new SQLite daabase and set up connection""" #...
"""This package contains modules with utility functions for acceptance, acceptance and performance tests. """ __author__ = "<NAME>" __copyright__ = "Copyright (C) 2016 ACK CYFRONET AGH" __license__ = "This software is released under the MIT license cited in " \ "LICENSE.txt"
package io.github.brightloong.leetcode.top.interview; /** * @author BrightLoong * @date 2020/3/11 09:28 * @description */ public class Num1013 { public static boolean canThreePartsEqualSum(int[] A) { if (A == null) { return false; } //计算和 int sum = 0; for (i...
/* 1: */ package com.four.common.tpm; /* 2: */ /* 3: */ import java.io.Serializable; /* 4: */ import java.sql.Timestamp; /* 5: */ /* 6: */ public class RecordTpm /* 7: */ implements Serializable /* 8: */ { /* 9: */ protected Long devId; /* 10: */ protect...
<gh_stars>1-10 package com.levy.oa.model; import java.util.List; public class GeneralManagerModel extends StaffModel<GeneralManagerModel> { private static final long serialVersionUID = 4853123355218348139L; private final int classNum = 1; private List<VicePresidentModel> vps; public GeneralManagerMo...
class Temperature { let fahrenheitValue: Double init(fahrenheitValue: Double) { self.fahrenheitValue = fahrenheitValue } func celsiusValue() -> Double { return (fahrenheitValue - 32) * 5/9 } func stringFromTemperature() -> String { let celsius = celsiusValu...
# Install guest additions sudo apt-get install virtualbox-guest-dkms sudo apt-get install git # Change directory cd ~/VirtualBox\ VMs/ # Set variables VM_NAME="ubuntu16" VM_HD_PATH="ubuntu16.vdi" # The path to VM hard disk (to be created). HD_SIZE=10000 RAM_SIZE=4096 VRAM_SIZE=128 VM_ISO_PATH=~/ubuntu-16.04.3-server-...
#!/usr/bin/env bash set -o pipefail SCRIPT_DIR="$(dirname "$(readlink -f "$0")")" REPO_DIR="$(realpath "${SCRIPT_DIR}/..")" source "${SCRIPT_DIR}/common.sh" RET_CODE=0 ARTIFACT_DIR="${ARTIFACT_DIR:=dist}" ARTIFACT_DIR="$(readlink -m "${ARTIFACT_DIR}")" TEST_OUT="${ARTIFACT_DIR}/test.out" COVER_OUT="${ARTIFACT_DIR}...
#!/bin/bash set -euo pipefail placeholder="üüü" # shellcheck disable=SC2016 open_brackets_escaped='{{ `{{` }}' # shellcheck disable=SC2016 close_brackets_escaped='{{ `}}` }}' disclaimer="# THIS FILE IS GENERATED WITH 'make generate' - DO NOT EDIT MANUALLY" replace () { local filename=$1 local from=$2 local to=...
<reponame>mishadynin/ideal<filename>bootstrapped/ideal/library/elements/writeonly_equality_comparable.java // Autogenerated from library/elements.i package ideal.library.elements; public interface writeonly_equality_comparable extends writeonly_value, any_equality_comparable { }
define([ 'app', 'pakka', 'text!modules/views/signup-page/signup-page.html', 'text!modules/views/signup-page/signup-page.css', 'modules/ajax/ajax', 'modules/router/router-implementation', ], function(app, pakka, Markup, StyleSheet, ajax, router) { return pakka({ name: 'login-page', ...
<filename>zfchat-api/app/router.js 'use strict'; /** * @param {Egg.Application} app - egg application */ module.exports = app => { //io 你可以把它当成 require('socket.io') const { router, controller, io } = app; router.get('/', controller.home.index); //当服务器收到客户端的addMessage事件之后,会交给addMessage方法来处理 //向服务器发射一个新的消息,并...
#!/usr/bin/env bash ############################################################################## # Copyright (c) 2016-20, Lawrence Livermore National Security, LLC and CHAI # project contributors. See the COPYRIGHT file for details. # # SPDX-License-Identifier: BSD-3-Clause ###########################################...
<gh_stars>0 /* * Copyright 2008-2013 NVIDIA Corporation * Modifications Copyright© 2019 Advanced Micro Devices, Inc. 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. * You may obtain a copy of the Licen...
#!/bin/sh echo '****************************************************************************' echo ' copy_wars.sh ' echo ' by niuren.zhu ' echo ' 2017.06.23 ...
import tensorflow as tf from tensorflow.keras.layers import Dense model = tf.keras.Sequential([ Dense(64, activation='relu', input_shape=(num_features,)), Dense(32, activation='relu'), Dense(16, activation='relu'), Dense(1) ]) model.compile( optimizer='adam', loss=tf.keras.losses.MeanSquaredError() ) model.fit...
import React from 'react' import {Button, Panel} from 'react-bootstrap' import {NavLink} from 'react-router-dom' const EmptyCart = () => { return ( <div> <div className="emptyCart"> <Panel bsStyle="danger"> <Panel.Heading style={{textAlign: 'center'}}> <Panel.Title componentCl...
const tokenDAO = require('../daos/token'); // Authentication and Token Validation // module.exports.isLoggedIn = async (req, res, next) => { const uniqueToken = req.headers.authorization; try { if (uniqueToken) { const token = uniqueToken.split(' ')[1]; const userId = await toke...
def addSparseVectors(A, B): result = A for i in range(len(B)): if (B[i] != 0): result[i] += B[i] return result
#!/bin/bash dieharder -d 100 -g 2 -S 843417218
#!/bin/bash # Publishing to NPM echo "1) to NPM registry ..." npm publish --access public # Mirroring active repository from Bitbucket to GitHub echo "2) to GitHub mirror ..." git fetch --prune git push --prune https://wunderbon:${GITHUB_TOKEN}@github.com/wunderbon/json-schemas.git +refs/remotes/origin/*:refs/heads/*...
/* * Copyright 2021 Hazelcast Inc. * * Licensed under the Hazelcast Community License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://hazelcast.com/hazelcast-community-license * * Unless required by applicable law or agree...
def is_prime(num): if num < 2: return False for i in range(2, num): if num % i == 0: return False return True prime_nums = [num for num in range(1, 51) if is_prime(num)] print(prime_nums)
#!/usr/bin/env bats load _helpers @test "meshGateway/ServiceAccount: disabled by default" { cd `chart_dir` assert_empty helm template \ -s templates/mesh-gateway-serviceaccount.yaml \ . } @test "meshGateway/ServiceAccount: enabled with meshGateway, connectInject enabled" { cd `chart_dir` local a...
#!/bin/bash # Downloads the needed APKs (using wget), installs them to the current device (using adb), # and configures them (using adb). The configuring consists of permission assignment # and running Kõnele's GetPutPreferenceActivity to change the Kõnele settings. # Work in progress (relies on an unreleased version ...
<reponame>peter-stuhlmann/UnderConstructionPage import React from 'react'; import styled from 'styled-components'; // components import Container from '../components/Container'; // data import footer from '../data/footer'; export default function Footer() { return ( <Container footer> <Text dangerouslySe...
// @flow import { ipcRenderer } from 'electron'; import log from 'electron-log'; import React, { Component } from 'react'; import ReactLoading from 'react-loading'; import { Redirect } from 'react-router-dom'; import ReactTooltip from 'react-tooltip'; import { session, loginCounter, eventEmitter } from '../index'; impo...
/* * <NAME> * 10445765 * * index.js is the main script that creates all visualizations on the visualizations page. * * Sources: * //https://bl.ocks.org/johnwalley/e1d256b81e51da68f7feb632a53c3518 * //https://www.w3schools.com/howto/howto_css_modals.asp * //https://api.jquery.com/scroll/ **/ window.onload...
<gh_stars>1-10 #include "pch.h" #include "ds3runtime.h" #include "logging.h" namespace hoodie_script { void DS3RuntimeScripting::setAsyncMode(const bool& async) { this->async = async; } void DS3RuntimeScripting::attach() { attached = true; if (!async) { for (auto&& hook : hooks) { hook->install(); } } e...
const expect = require('expect'); const request = require('supertest'); const {ObjectID} = require('mongodb'); const {app} = require('./../server'); const {Todo} = require('./../models/todo'); const {User} = require('./../models/user'); const {testTodos, populateTodos, testUsers, populateUsers} = require('./seed/seed'...
/* * Copyright [2020-2030] [https://www.stylefeng.cn] * * 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...
function fibonacci(n) { let resultArray = [0, 1]; for (let i = 2; i <=n; i++) { resultArray.push(resultArray[i-2] + resultArray[i-1]) } return resultArray.slice(0, n); } console.log('The first 10 numbers in the Fibonacci sequence are ', fibonacci(10));
package es.redmic.api.administrative.controller; /*- * #%L * API * %% * Copyright (C) 2019 REDMIC Project / Server * %% * 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:...
class Flight: def __init__(self, airline, origin, destination, num_passengers, departure_time, arrival_time, flight_number): self.airline = airline self.origin = origin self.destination = destination self.num_passengers = num_passengers self.departure_time = departure_time self.arrival_time = arrival_time ...
const colors = { grey: '#333', snow: '#f5f5f5', lightGrey: '#f9f9f9', white: '#fff', blue: '#007291', red: '#c21703', orange: '#d8460b', yellow: '#f5c600', brown: '#9b4923', cream: '#EAE8CF', salmon: '#FE6856' } export default colors
package com.lbs.api.json.model /** { "PreparationInfo": { "IsPreparationRequired": true }, "ReservedVisitsLimitInfo": { "CanReserve": true, "HasPatientLimit": false, "MaxReservedVisitsCount": null, "Message": "", "ReservedVisitsCount": null } } */ cas...
<gh_stars>0 /** * <a href="http://www.openolat.org"> * OpenOLAT - Online Learning and Training</a><br> * <p> * Licensed under the Apache License, Version 2.0 (the "License"); <br> * you may not use this file except in compliance with the License.<br> * You may obtain a copy of the License at the * <a href="http:...
#!/bin/bash -e source /srv/sites/parentnode/mac_environment/scripts/functions.sh echo "" echo "ask test" echo "" # Standard email format: "david@think.dk" email_array=("[A-Za-z0-9\.\-]+@[A-Za-z0-9\.\-]+\.[a-z]{2,10}") email=$(ask "Enter email" "${email_array[@]}" "Email") # Username can both be an alias name:"supersla...
<gh_stars>1-10 firebase.auth().languageCode = 'fr'; var user = undefined; document.getElementById('login_btn').onclick = function() { location.href = 'https://auth.infogare.fr/redirect.htm?returnurl=' + encodeURIComponent(location.href)+'&service=infogare&version=release'; } function loginWithToken(token) { fir...
package org.fcrepo.lambdora.service.api; /** * A Fedora Container interface * * @author dbernstein */ public interface Container extends FedoraResource { }
const fetch = require("node-fetch"); const Discord = require('discord.js') const client = new Discord.Client() module.exports = { category: 'Fun', aliases: ['huggy'], minArgs: 0, maxArgs: -1, expectedArgs: "", description: 'hug sum1', callback: ({message, args, text, client, prefix, inst...
package edu.uwp.appfactory.racinezoo.Model; import java.util.Objects; import edu.uwp.appfactory.racinezoo.Util.Config; /** * Created by hanh on 2/18/17. */ public class DetailItem { private String title; private Object data; private int type; public DetailItem(String title, Object data, int typ...
def transposeMatrix(matrix): transpose = [] for i in range(len(matrix[0])) : new_row = [] for row in matrix: new_row.append(row[i]) transpose.append(new_row) return transpose
// Construct an array that stores the grades of all the students grades = [90, 85, 82, 75, 70, 65, 80, 81, 73]; // Loop through the array sum = 0; numOfGrades = grades.length; for (int i = 0; i < numOfGrades; i++) { sum += grades[i]; } // Calculate the average grade averageGrade = sum/numOfGrades; // Print the aver...
#! /bin/bash # # A script to collect help texts of rhui-manager's commands recursively. # # Author: Satoru SATOH <ssato at redhat.com> # License: MIT # # Usage: ./collect_rhui-manager_help_recur.sh # # Example: # # [root@rhui-2 ~]# ./collect_rhui-manager_help_recur.sh # rhui-manager # Usage: rhui-manager [options] [com...
import { Readable, Writable, Transform } from 'readable-stream'; import { IBuildState } from './BuildState'; import { IStep } from './Step'; export interface IPipelineNode { readonly prev: IPipelineNode[]; readonly step: IStep; readonly next: IPipelineNode[]; readonly alias: string; readonly stream:...
// Generated by Haxe 3.4.0 (function () { "use strict"; var MainJS = function() { console.log("[JS] loading data example"); var req = new XMLHttpRequest(); req.open("GET","http://ip.jsontest.com/"); req.onload = function() { console.log("[JS] Your IP-address: " + JSON.parse(req.response).ip); }; req.onerror = f...
<gh_stars>10-100 import React, {memo} from 'react' import styled from 'styled-components' import playIcon from '@/assets/icon/play.svg' import previewIcon from '@/assets/icon/preview.svg' import themeIcon from '@/assets/icon/theme.svg' import {RouteComponentProps, withRouter} from 'react-router' import {FixedSpace, Fle...
package biz.kasual.recyclerfragmentsample.fragments; import android.os.Bundle; import android.support.annotation.Nullable; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import java.util.Collections; import java.util.Comparator; import java.util.List; import biz.kasual.r...
<filename>gofiql/util.go package gofiql import ( "bytes" "fmt" "regexp" ) // spitExpression takes in input a constraint expression and splits it // into its component parts, i.e. left operand, right operand and // operator. // It makese uses of a regular expression. func splitExpression(expression *string) (*strin...
package be.wyckd.datastructures; import org.junit.Before; import org.junit.Test; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.*; public class QueueTest { private Queue<Integer> queue; @Before public void setUp(){ queue = new Queue<>(); } @Test public vo...
<gh_stars>0 /* * Copyright (c) 2015. Seagate Technology PLC. All rights reserved. */ package com.seagate.alto.provider.lyve.response; import com.google.gson.Gson; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; public class Match { @SerializedName("match_type") ...
<filename>src/engine/events/KeyReleaseEvent.java package engine.events; import javafx.scene.input.KeyCode; import javafx.scene.input.KeyEvent; /** * Event that releases KeyReleaseEvent * @author estellehe */ public class KeyReleaseEvent extends Event { private KeyEvent event; private boolean isGaming; ...
echo "####################################################################" echo "## Full Test Scripts for CB-Spider IID Working Version - 2020.04.22." echo "## 1. VPC: Create -> Add-Subnet -> List -> Get" echo "## 2. SecurityGroup: Create -> List -> Get" echo "## 3. KeyPair: Create -> List -> Get" echo "## 4....
<reponame>dmitric/studio import React, { Component } from 'react' import { Button, Slider, Popover, PopoverInteractionKind, Position } from "@blueprintjs/core" export default class StudioToolbar extends Component { constructor (props) { super(props) this.onToggle = this.onToggle.bind(this) this.onPre...
from django.conf import settings # import the settings file def in_prod(request): return {"IN_PROD" : not settings.DEBUG}
import { SearchResponse } from '@clinia/client-search'; export interface MultiResponse<THit = any> { results: Array<SearchResponse<THit>>; }
/** * Created by admin on 2017/12/21. */ var path = require('path') var webpack = require('webpack') var context = path.join(__dirname, '..') module.exports = { entry: { vendor: ['vue','vue-router','axios'] }, output: { path: path.join(context, 'static/js'), filename: '[name].dll.js', library:...
<reponame>orkestra/OrkestraApplicationBundle ;(function($) { window.Orkestra = window.Orkestra || {}; Orkestra.Modal = Orkestra.Modal || {}; var _createHeader = function(title) { this.$header = $(document.createElement('div')) .addClass('modal-header') .html($(document.createElement('h3')).addCl...
#!/bin/bash act -P ubuntu-latest=nektos/act-environments-ubuntu:18.04
/* * Copyright (c) CERN 2013-2015 * * Copyright (c) Members of the EMI Collaboration. 2010-2013 * See http://www.eu-emi.eu/partners for details on the copyright * holders. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. *...
/***************************** LICENSE START *********************************** Copyright 2009-2020 ECMWF and INPE. This software is distributed under the terms of the Apache License version 2.0. In applying this license, ECMWF does not waive the privileges and immunities granted to it by virtue of its status as ...
#!/bin/bash # -*- mode: shell-script ; -*- # # parse_ini.sh # ---- Read .ini file and output with shell variable definitions. # Nanigashi Uji (53845049+nanigashi-uji@users.noreply.github.com) # function parse_ini () { # Prepare Help Messages local funcstatus=0; local echo_usage_bk=$(declare -f e...
SELECT departments.department_name,employee_id,surname,firstname FROM (SELECT * FROM departments ) departments JOIN (SELECT * FROM employees) employees USING (department_id) WHERE employees.date_of_birth<DATE_SUB(curdate(),INTERVAL 55 YEAR)
import { EbmlDataTag } from "./EbmlDataTag"; import { BlockLacing } from "../enums/BlockLacing"; import { Tools } from "../../Tools"; import { EbmlTagId } from "../enums/EbmlTagId"; import { EbmlElementType } from "../enums/EbmlElementType"; export class Block extends EbmlDataTag { payload: Buffer; tra...
<reponame>zenglongGH/spresense var unionCPSR__Type = [ [ "A", "unionCPSR__Type.html#a8dc2435a7c376c9b8dfdd9748c091458", null ], [ "b", "unionCPSR__Type.html#a2e735da6b6156874d12aaceb2017da06", null ], [ "C", "unionCPSR__Type.html#aa967d0e42ed00bd886b2c6df6f49a7e2", null ], [ "E", "unionCPSR__Type.html#a...
import numpy as np def movingAverage(data, n=3): """ calculate moving average from list of values =========================================================================== Input Meaning ---------- --------------------------------------------------------------- data np.array wit...
/* ====================================================== */ /* Implementation */ /* ====================================================== */ export const ASYNC_ACTION_SEPARATOR = '--->' export const ASYNC_ACTION_ID = 'ASYNC' export interface AsyncActionNames { REQUEST: str...
<reponame>ruowan/avocado // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. import * as stringMap from '@ts-common/string-map' import { IErrorBase } from './errors' export type Report = { /** * This is a callbac...
from django.utils.formats import date_format as django_date_format DEFAULT_DATE_FORMAT = "M d, H:i:s (e)" def date_format(value, format_string=DEFAULT_DATE_FORMAT): """Simple wrapper for Django date_format() with a default format.""" return django_date_format(value, format_string)
<gh_stars>100-1000 #!/usr/bin/env python """Translate Wikipedia edit history XML files to JSON. This script assumes that the Wikipedia edit history XML files are ordered as follows: <mediawiki> ... <page> <title></title> <ns></ns> <id></id> <redirec...
<reponame>linxi159/dcgan_code import theano import theano.tensor as T def CategoricalCrossEntropy(y_true, y_pred): return T.nnet.categorical_crossentropy(y_pred, y_true).mean() def BinaryCrossEntropy(y_true, y_pred): return T.nnet.binary_crossentropy(y_pred, y_true).mean() def MeanSquaredError(y_true, y_pred...