text
stringlengths
1
1.05M
//===--- EditorAdapter.h ----------------------------------------*- C++ -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
import logging import logging.handlers import os from datetime import datetime import sys import errno # Logging Levels # https://docs.python.org/3/library/logging.html#logging-levels # CRITICAL 50 # ERROR 40 # WARNING 30 # INFO 20 # DEBUG 10 # NOTSET 0 def set_up_logging(name=None): file_path = sys.modules[_...
<reponame>NajibAdan/kitsu-server # rubocop:disable Metrics/LineLength # == Schema Information # # Table name: group_invites # # id :integer not null, primary key # accepted_at :datetime # declined_at :datetime # revoked_at :datetime # created_at :datetime not null # updated_at :dateti...
<filename>src/main/java/com/algaworks/pedidovenda/controller/CadastroClienteBean.java package com.algaworks.pedidovenda.controller; import java.io.Serializable; import java.util.Date; import javax.faces.bean.ViewScoped; import javax.inject.Inject; import javax.inject.Named; import com.algaworks.pedidovenda.model.Cli...
#!/bin/bash set -e DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" . "${DIR}/defaults.sh" usage() { cat <<EOF Receive the motion JPEG video data from the port. This script uses the 'rtpbin' plugin. Command: gst-launch-1.0 -v udpsrc port=$PORT \ caps="application/x-rtp,media=(string)video...
public class CreditCardCheckDigit { public static int getCheckDigit(String creditCardNumber) { int sum = 0; for (int i = 0; i < creditCardNumber.length(); i++) { int num = Integer.parseInt( Character.toString(creditCardNumber.charAt(i)) ); // Double every other digit if (i % 2 == 0) { num *= 2; } // ...
#script za ureditev peddar.param file s parametri za tek PEDDA_ROW python programa #PEDDA_ROW = program za raw Illumina --> ped in map #za vse subdirektorije v pwd PATH_PR=/home/janao/Genotipi/Genotipi_CODES/SNPchimpRepo/source_codes/PEDDA_ROW PASMA="Rjava" GENOTIPDIR=/home/janao/Downloads/VsiGeno GCDIR=/home/janao/Gen...
class User: user_list = [] def __init__(self, username): self.username = username self.password = None def create_pw(self, password): ''' create_pw method stores the password in the object ''' self.password = password def confirm_pw(self, password): ...
#!/bin/sh BACKUP_NAME="BACKUP-$(date +%F-%I-%M-%p).7z" SERVER_DIR="minecraft.jmoore.dev.paper" echo Backing up Java server... 7za a -mmt -mx9 -t7z $BACKUP_NAME $SERVER_DIR
<filename>test/models/fe/responsiblepeople/PositionWithinBusinessSpec.scala /* * Copyright 2021 HM Revenue & Customs * * 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....
package com.hedera.sdk.common; public class Entity { // Private fields for entity properties private String entityId; private String entityName; private String entityType; // Constructor to initialize entity properties public Entity(String entityId, String entityName, String entityType) { ...
import React from 'react'; import PropTypes from 'prop-types'; const DEFAULT_LENGTH = 50; const DEFAULT_SUFFIX = '…'; export const truncate = (text, length = DEFAULT_LENGTH, suffix = DEFAULT_SUFFIX) => text.substr(0, length - 1) + (text.length > length ? suffix : ''); const Truncate = ({ children, length, suffix...
#!/bin/bash # Copyright 2015 Cloudera 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 or agreed t...
#!/bin/sh if [ -z $ES_VERSION ]; then echo "No ES_VERSION specified"; exit 1; fi; killall java 2>/dev/null echo "Downloading Elasticsearch v${ES_VERSION}-SNAPSHOT..." ES_URL=$(curl -sS "https://esvm-props.kibana.rocks/builds" | jq -r ".branches[\"$ES_VERSION\"].zip") curl -L -o elasticsearch...
const N = 10; for (let i = 0; i <= N; i++) { console.log(i); }
<filename>android/src/main/java/plugin/album/view/alivideo/AliControlView.java package plugin.album.view.alivideo; import android.content.Context; import android.os.Handler; import android.os.Looper; import android.os.Message; import android.view.LayoutInflater; import android.view.View; import android.widget.ImageVie...
<reponame>NajibAdan/kitsu-server # rubocop:disable Metrics/LineLength # == Schema Information # # Table name: groups # # id :integer not null, primary key # about :text default(""), not null # avatar_content_type :string(255) # avatar_file_name ...
export const Projects = [ { name: "Random member A", title: "Project A", image: "./utils/images/projects/project_a.jpg", }, { name: "Random member B", title: "Project b", image: "./utils/images/projects/project_b.png", }, { name: "Random member C", title: "Project C", image...
import random def random_list(n): # Generating a random list of length n random_list = [] for i in range(n): random_list.append(random.randint(0,n-1)) return random_list # Driver Code n = 6 print(random_list(n))
public class Vector { public double X { get; set; } public double Y { get; set; } public Vector(double x, double y) { X = x; Y = y; } }
/* Info: JavaScript for JavaScript Basics Lesson 2, JavaScript Syntax, Task 13, Digital Soothsayer Author: Removed for reasons of anonymity Successfully checked as valid in JSLint Validator at: http://www.jslint.com/ and JSHint Validator at: http://www.jshint.com/ */ 'use strict'; function soothsayer(args) { var soot...
conda config --set anaconda_upload no conda build flann conda build --py all pyflann conda build --python 2.7 --python 3.4 --python 3.5 --numpy 1.9 --numpy 1.10 pyamg conda build --python 2.7 --python 3.4 --python 3.5 --numpy 1.10 megaman
<reponame>m-nakagawa/sample /* * 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....
#!/usr/bin/env bash python3 preprocess\ data.py python3 train_model.py --action train python3 train_model.py --action val python3 train_model.py --action test
<reponame>smagill/opensphere-desktop<gh_stars>10-100 package io.opensphere.wps.envoy; import java.io.IOException; import java.io.InputStream; import java.util.List; import java.util.Map; import io.opensphere.core.Toolbox; import io.opensphere.core.cache.matcher.PropertyMatcher; import io.opensphere.core.data...
<gh_stars>0 # -*- coding: utf-8 -*- """ Created on Fri Mar 22 19:11:55 2019 @author: DHANUSH """ import sys class PDA: def __init__(self): #defining the language self.C="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_" self.N="0123456789" self.star...
import sys from computer import Computer c = Computer('program.txt') c.run() while True: print(''.join([chr(n) for n in c.output()])) cmd = input() if cmd == 'exit': break cmd += '\n' c.input([ord(n) for n in cmd]) c.run() # take mutex, asterisk, space law space brochure, and food ra...
package com.common.biz.help; /** * @author Administrator */ public class HelpArouterConstant { private static final String BIZ_GROUP = "/help/"; public static final String HELP_DETAIL = BIZ_GROUP + "help_detail"; }
import React from 'react' import { Route } from 'react-router' import RedirectRoute from 'router/RedirectRoute' export default function AuthRoute ({ component, nonAuthComponent, requireAuth, isLoggedIn, currentUser, returnToOnAuth, setReturnToURL, location, ...rest }) { if (!isLoggedIn && nonAuthCo...
<reponame>tpolecat/metals package tests.jsonrpc import java.nio.ByteBuffer import scala.concurrent.Await import scala.concurrent.duration.Duration import com.typesafe.scalalogging.LazyLogging import io.circe.syntax._ import monix.eval.Task import monix.execution.schedulers.TestScheduler import monix.reactive.Observabl...
const axios = require("axios"); module.exports = async (d) => { const data = d.util.aoiFunc(d); if (data.err) return d.error(data.err); const [link] = data.inside.splits; let response = false; try { response = await axios .get(data.inside.inside.addBrackets()) .then((res) => res.headers["co...
/** */ package PhotosMetaModel.impl; import PhotosMetaModel.PhotosMetaModelPackage; import PhotosMetaModel.Render; import org.eclipse.emf.ecore.EClass; /** * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Render</b></em>'. * <!-- end-user-doc --> * * @generated */ public class RenderI...
<filename>admin/js/common.js function fillTableLivros(txt='') { $.ajax({ url: "AJAXFillLivros.php", type: "post", data: { txt: txt }, success: function (result) { $('#tableContent').html(result); } }); } function fillTableAutores(txt='') { ...
import pyro import pyro.distributions as dist import torch def joint_probability(w_p, u_p): w_sample = pyro.sample("w", dist.Bernoulli(w_p)) u_sample = pyro.sample("u", dist.Bernoulli(u_p)) joint_prob = (w_sample.item() * u_sample.item()) # Multiply the samples to get joint probability retur...
def is_power_of_two(n): i = 1 while 2**i <= n: if 2**i == n: return True i += 1 return False
# frozen_string_literal: true module ActiveWebhook class Logger def info(msg) puts msg end def debug(msg) puts msg end def error(msg) puts msg end def warn(msg) puts msg end end end
load helpers function setup() { cleanup rm -rf ocibuilds || true mkdir -p ocibuilds/sub1 touch ocibuilds/sub1/import1 cat > ocibuilds/sub1/stacker.yaml <<EOF layer1_1: from: type: docker url: docker://centos:latest import: - import1 run: | cp /stacker/imp...
SELECT u.id, u.name, max(p.created_at) AS latest_posting_date FROM users u LEFT JOIN posts p ON u.id = p.user_id GROUP BY u.id
#SBATCH -t 00:15:00 #SBATCH --nodes=1 #SBATCH --tasks-per-node=1 #SBATCH --cpus-per-task=24 #SBATCH -A p_readex #SBATCH --mem-per-cpu=2500M if [ "$PBS_ENVIRONMENT" == "PBS_BATCH" ]; then export FM_DIR=$PBS_O_WORKDIR else export FM_DIR=$(pwd) fi source readex_env/set_env_rdd.source source scripts_$READEX_MACHINE/env...
# Shortcuts alias copyssh="pbcopy < $HOME/.ssh/id_ed25519.pub" alias reloadshell="source $HOME/.zshrc" alias reloaddns="dscacheutil -flushcache && sudo killall -HUP mDNSResponder" alias ll="/usr/local/opt/coreutils/libexec/gnubin/ls -AhlFo --color --group-directories-first" alias phpstorm='open -a /Applications/PhpStor...
#!/bin/sh echo 'sh: mount ./tmp' sudo mount -t tmpfs -o size=256m /dev/shm ./tmp echo 'sh: start' cd bin ./AeroMixer.py cd .. echo 'sh: umount ./tmp' sudo umount ./tmp
#!/bin/bash source "$(dirname "${BASH_SOURCE}")/lib/init.sh" if [[ "${PROTO_OPTIONAL:-}" == "1" ]]; then os::log::warning "Skipping protobuf generation as \$PROTO_OPTIONAL is set." exit 0 fi os::util::ensure::system_binary_exists 'protoc' if [[ "$(protoc --version)" != "libprotoc 3.0."* ]]; then os::log::fatal ...
#!/bin/bash -e # Install ODBC libraries for SOCI at travis-ci.org # # Copyright (c) 2013 Mateusz Loskot <mateusz@loskot.net> # source ${TRAVIS_BUILD_DIR}/bin/ci/common.sh sudo apt-get install -qq \ tar bzip2 \ unixodbc-dev \ libmyodbc odbc-postgresql sudo odbcinst -i -d -f /usr/share/libmyodbc/odbcinst.in...
package no.mnemonic.commons.utilities.lambda; import java.util.Collection; import java.util.concurrent.Callable; import java.util.concurrent.TimeUnit; import java.util.function.BooleanSupplier; import java.util.function.Consumer; import java.util.function.Supplier; import java.util.stream.Stream; public class LambdaU...
class BankAccount: def __init__(self, initial_balance, minimum_balance): self.balance = initial_balance self.minimum_balance = minimum_balance def deposit(self, amount): self.balance += amount def withdraw(self, amount): if self.balance - amount >= self.minimum_balance: ...
#!/bin/sh if [ $# = 0 ]; then DIRECTORY="pub/media/import/" else DIRECTORY=$1 fi cd $DIRECTORY rm -f *.jpeg *.JPEG *.jpg *.JPG *.png *.PNG exit 0
#!/bin/bash THIS_DIR="$(cd "$(dirname "$(readlink -f "$0")")" && pwd)" LIB_DIR="$(cd "$THIS_DIR/lib" && pwd)" # shellcheck disable=SC2034 BASH_LIBRARY_PATH="$LIB_DIR" # shellcheck disable=SC1090 source "$LIB_DIR/libimport.bash" bash_import libloglevel.bash [[ -z $LOGLEVEL ]] && LOGLEVEL=6 set_loglevel "$LOGLEVEL" ...
import cv2 import numpy as np def count_faces(image: np.ndarray, haar_cascade: cv2.CascadeClassifier) -> int: # Convert the input image to grayscale gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) # Detect faces in the grayscale image using the provided Haar cascade classifier faces_rect = haar_cascade...
#!/bin/sh if [[ "${DB_MIGRATE}" == "true" && -f "./bin/otp_verification_api" ]]; then echo "[WARNING] Migrating database!" ./bin/otp_verification_api command "Elixir.Core.ReleaseTasks" migrate fi;
export * from "./loai-sach.controller" export * from "./loai-sach.module" export * from "./loai-sach.service"
package io.opensphere.osh.results.video; import java.awt.Color; import java.io.IOException; import java.util.Collection; import java.util.List; import io.opensphere.controlpanels.animation.event.ShowTimelineEvent; import io.opensphere.controlpanels.animation.model.ViewPreference; import io.opensphere.core.To...
#!/bin/sh # exit script on error set -e # rebuild extension sh rebuild.sh # build for legacy code lime build ./test/Project.xml ios -clean -verbose -Dlegacy # build for new codebase lime build ./test/Project.xml ios -clean -verbose
import torch import torch.nn as nn from scipy.signal import kaiser, kaiserord, kaiser_beta, firwin from scipy.optimize import fmin import math import numpy as np from einops import rearrange import cached_conv as cc def reverse_half(x): mask = torch.ones_like(x) mask[..., fc00:db20:35b:7399::5, fdf8:f53e:61e...
package spec // UUIDs are based on the BerryLan specification from // https://github.com/nymea/nymea-networkmanager import "github.com/go-ble/ble" // UUIDs of the BerryLan services. var ( ServiceWireless = ble.MustParse("e081fec0-f757-4449-b9c9-bfa83133f7fc") ServiceNetwork = ble.MustParse("ef6d6610-b8af-49e0-9ec...
A mutable object is one that can be changed after it is created. These objects can have their state (variables within the object) modified after the object is created. Examples of mutable objects include lists and dictionaries. An immutable object is one that cannot be changed after it is created. These objects have fi...
<gh_stars>0 "use strict"; let hisName = prompt("What's his name"); let herName = prompt("What's her name"); const result = Math.trunc(Math.random() * 100) + 1 function loveCalculator (){ return alert(`Congratulations! ${herName}, you and ${hisName} are ${result}% compatible`) } loveCalculator(); //console.log(...
<filename>blog_api/users/models.py import uuid from datetime import timedelta from django.conf import settings from django.db.models import Model, Manager, DateTimeField, CharField, EmailField, IntegerField, BooleanField, \ GenericIPAddressField, ForeignKey, CASCA...
#!/usr/bin/env bats load $BATS_TEST_DIRNAME/helper/common.bash setup() { setup_common dolt sql <<SQL CREATE TABLE onepk ( pk1 BIGINT PRIMARY KEY, v1 BIGINT, v2 BIGINT ); CREATE TABLE twopk ( pk1 BIGINT, pk2 BIGINT, v1 BIGINT, v2 BIGINT, PRIMARY KEY(pk1, pk2) ); SQL } teard...
#!/usr/bin/env bash killall ruby source ~/.bash_profile rbenv shell 2.2.1 git checkout master git pull bundle install RAILS_ENV=production bundle exec rake db:migrate RAILS_ENV=production bundle exec rake assets:precompile puma -e production 1> log/console.log 2> log/console_err.log &
<gh_stars>1-10 const { pause, newAccumulator, newDummyChannel } = require('../common') const { COMMANDS } = require('../../lib/constants') const dut = require('../../lib/clients/pubsub') describe('Pubsub client', () => { test('writes subscriptions to remote', async () => { const channel = newDummyChannel()...
<filename>extension/src/main/java/org/justinnk/masonssa/extension/Action.java /* * Copyright 2021 <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/l...
import * as R from 'ramda' import xs from 'xstream' import virtualize from 'snabbdom-virtualize/strings' import { JSDOM } from 'jsdom' import { htmlEncode } from 'js-htmlencode' import { html, head, body, title, script, style, link, div, meta } from '@cycle/dom' import { classes, Styles } from '../client/styles' cons...
test_storage() { ensure_import_testimage # shellcheck disable=2039 local LXD_STORAGE_DIR lxd_backend lxd_backend=$(storage_backend "$LXD_DIR") LXD_STORAGE_DIR=$(mktemp -d -p "${TEST_DIR}" XXXXXXXXX) chmod +x "${LXD_STORAGE_DIR}" spawn_lxd "${LXD_STORAGE_DIR}" false # edit storage and pool descripti...
package componets; import javax.swing.JComponent; import java.awt.*; import java.awt.geom.Area; import java.awt.geom.Ellipse2D; /** * The type DiscSlot. */ public class DiscSlot extends JComponent { private int radius; private final int paddingBorder = 4; private final int offsetBorder = 4; private...
<filename>src/main/java/am/ik/cloud/gateway/locator/MapUtils.java<gh_stars>1-10 package am.ik.cloud.gateway.locator; import java.util.ArrayList; import java.util.List; import java.util.Map; import org.springframework.cloud.gateway.route.RouteDefinition; import reactor.util.function.Tuple3; import reactor.util.functi...
<gh_stars>0 "use strict" const textmateTokens = (colorSchemes, schemeName) => { const scheme = colorSchemes[schemeName] return [{ scope: ["text", "source"], settings: { foreground: scheme.variable, }, }, { scope: ["emphasis"], settings: { fontStyle: "italic", }, }, { scope: ["str...
const express = require('express'); const bodyParser = require('body-parser'); const db = require('./database'); const app = express(); app.use(bodyParser.urlencoded({extended: false})); app.use(bodyParser.json()); app.post('/form', async (req, res) => { const {input} = req.body; const result = await db.insert(inp...
/* SD card writing wrapper around the SD.h library to write logs to and sd card Created by <NAME>, 2020/03/07 Released into the public domain. */ #include "Arduino.h" #include "Logger.h" Logger::Logger(String filename, int _SD_CARD_SELECT_PIN, int _SD_CARD_WRITE_LED) { SD_CARD_SELECT_PIN = _SD_CARD_SELE...
const path = require(`path`); const _ = require('lodash'); const { createFilePath } = require(`gatsby-source-filesystem`); function createPostPage(posts, createPage) { const postTemplate = path.resolve(`./src/templates/blogPost.js`); posts.forEach(({ node }, index) => { const next = index === posts.length - 1 ...
#!/bin/bash # Copyright 2019 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 applicabl...
<filename>src/TimeUnitValue.ts /*! * @author electricessence / https://github.com/electricessence/ * @license MIT */ import TimeQuantity from './TimeQuantity'; import TimeUnit from './TimeUnit'; /** * TimeUnitValue allows for passing around a reference to a mutable measure of time coerced by its unit type. */ ex...
cp panku/panku.py bin/panku
import { BaseClientSideWebPart, IPropertyPaneSettings, IWebPartContext, PropertyPaneSlider } from '@microsoft/sp-client-preview'; import styles from './StarterWp.module.scss'; import * as strings from 'starterWpStrings'; import { IStarterWpWebPartPropspropertiesStarter } from './IStarterWpWebPartProps'; impor...
-- AlterTable ALTER TABLE "Scheduled" ADD COLUMN "group" TEXT;
#!/bin/sh ### BEGIN INIT INFO # Provides: alarmRetarder # Required-Start: $network $local_fs $remote_fs # Required-Stop: $network $local_fd $remote_fs # X-Start-Before: # X-Stop-After: # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # X-Interactive: false # Short-Description: alarmRetarde...
#!/bin/bash if [[ $target_platform =~ linux.* ]] || [[ $target_platform == win-32 ]] || [[ $target_platform == win-64 ]] || [[ $target_platform == osx-64 ]]; then export DISABLE_AUTOBREW=1 $R CMD INSTALL --build . else mkdir -p $PREFIX/lib/R/library/rsnps mv * $PREFIX/lib/R/library/rsnps if [[ $target_platfor...
static const long powersOf10[] = { 1, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000 }; static const byte CodeMap[] = { 0b00001000, // #-------- 0b00000100, // -#------- 0b00000010, // --#------ 0b00000001, // ---#----- 0b10000000, // ----#---- 0b01000000, // -----#--- 0b001...
nohup node index.js > a.log &
from Jumpscale import j class SSHKey(j.baseclasses.object_config): _SCHEMATEXT = """ @url = jumpscale.sshkey.client name** = "" (S) pubkey = "" (S) allow_agent = True (B) passphrase_ = "" (S) privkey = "" (S) duration = 86400 (I) path = "" (S) #path...
<reponame>rainmaple/duckdb #include "catch.hpp" #include "duckdb/common/types/hyperloglog.hpp" #include <vector> using namespace duckdb; using namespace std; TEST_CASE("Test that hyperloglog works", "[hyperloglog]") { HyperLogLog log; // add a million elements of the same value int x = 4; for (size_t i = 0; i < ...
<reponame>joemccann/photopipe<filename>app.js var express = require('express') , routes = require('./routes') , http = require('http') , path = require('path') , request = require('request') , fs = require('fs') , db_client var app = express() app.configure(function(){ app.set('port', process.env.PO...
#!/bin/bash if [ "$2" = "" ]; then echo "usage: $0 <cloud-account> <zone-id> [--raw]" exit 1 elif [ ! -f /etc/polynimbus/cloudflare/$1.sh ]; then echo "error: cloud account \"$1\" not configured" exit 1 fi account=$1 zoneid=$2 page=1 while [ $page -lt 10 ]; do file=/var/cache/polynimbus/cloudflare/records-$acco...
'use strict' const fs = require('fs') const path = require('path') const globby = require('globby') const MarkdownIt = require('markdown-it') const markdownItHighlight = require('markdown-it-highlight').default const yaml = require('js-yaml') const mkdirp = require('mkdirp') const removeMd = require('remove-markdown')...
select a.branch_code,c.customer_name1,a.cust_ac_no,a.ac_desc,a.lcy_curr_balance solde_en_compte,a.tod_limit autorisation,sc.lcy_amount salaire,b.balance encours_engagement,sum(nvl(s.amount,0)) engagement_initial,sum(nvl(s.emi_amount,0)) engagement_mensuel from sttm_customer c,sttm_cust_account a,cltb_account_master l,...
<filename>app/src/main/java/com/example/shoppingapp/MainActivity.java package com.example.shoppingapp; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import android.app.ProgressDialog; import android.content.Intent; import android.os.Bundle; import android.text.TextUtils; import ...
/** * <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://www.apache...
#!/bin/bash # ========== Experiment Seq. Idx. 2500 / 48.0.4.0 / N. 0 - _S=48.0.4.0 D1_N=45 a=-1 b=1 c=-1 d=1 e=1 f=-1 D3_N=7 g=1 h=1 i=1 D4_N=2 j=2 D5_N=0 ========== set -u # Prints header echo -e '\n\n========== Experiment Seq. Idx. 2500 / 48.0.4.0 / N. 0 - _S=48.0.4.0 D1_N=45 a=-1 b=1 c=-1 d=1 e=1 f=-1 D3_N=7 g=1 h=...
def sum_even_numbers(nums): even_sum = 0 for num in nums: if num % 2 == 0: even_sum += num return even_sum
#ifndef TERRACOTTA_CHUNK_H_ #define TERRACOTTA_CHUNK_H_ #include <mclib/block/Block.h> #include <mclib/block/BlockEntity.h> #include <mclib/common/Types.h> #include <mclib/nbt/NBT.h> #include <mclib/world/Chunk.h> #include <array> #include <map> #include <memory> namespace terra { struct ChunkColumnMetadata { s...
#!/bin/sh if test -f /etc/buildslave; then . /etc/buildslave fi case "$BB_NAME" in FreeBSD*) MAKE=gmake NCPU=$(sysctl -n hw.ncpu) ;; Amazon*|CentOS*|Debian*|Fedora*|RHEL*|SUSE*|Ubuntu*) MAKE=make NCPU=$(nproc) ;; *) echo "Unknown BB_NAME, assuming Linux" MAKE=make NCPU=$(nproc) ;; esac LINUX_OPTIONS=${LIN...
# coding=utf-8 import os import sys import numpy as np import pandas as pd import unittest sys.path.append(os.path.dirname(__file__)) from tsbitmaps.tsbitmapper import TSBitMapper from tsbitmaps.bitmapviz import create_bitmap_grid class TestBitmapAlgorithm(unittest.TestCase): def test_bitmap(self): bmp...
<gh_stars>0 const util = require('util'); const chalk = require('chalk'); const glob = require('glob'); const generator = require('yeoman-generator'); const packagejs = require(`${__dirname}/../../package.json`); const semver = require('semver'); const BaseGenerator = require('../common'); const jhipsterConstants = req...
#!/bin/bash -l #SBATCH --time=0-80:00:00 --mem-per-cpu=9000 #SBATCH -o ./logs/job-%a.out #SBATCH --array=405 module load matlab workfolder="/scratch/work/pajunel2/" outputfile="saved_outputs/velocity_dodeca3_noscat_full_$SLURM_ARRAY_TASK_ID.mat" N_diffuse_repetitions=20 setting="dodeca_velocity_noscat" rng_seed=$SLURM_...
#!/bin/bash FN="TxDb.Ptroglodytes.UCSC.panTro4.refGene_3.10.0.tar.gz" URLS=( "https://bioconductor.org/packages/3.10/data/annotation/src/contrib/TxDb.Ptroglodytes.UCSC.panTro4.refGene_3.10.0.tar.gz" "https://bioarchive.galaxyproject.org/TxDb.Ptroglodytes.UCSC.panTro4.refGene_3.10.0.tar.gz" "https://depot.galaxypr...
#!/bin/bash # Run build-kms-core.sh before building this module set -xe ROOT=`pwd` KMS_ELEMENTS_DIR=$ROOT/kms-elements KMS_CORE_DIR=$ROOT/kms-core KMS_CMAKE_UTILS_DIR=$ROOT/kms-cmake-utils KURENTO_MODULE_CREATOR_DIR=$ROOT/kurento-module-creator KMS_JSONRPC_DIR=$ROOT/kms-jsonrpc KMS_JSONCPP_DIR=$ROOT/jsoncpp OPENWEBRTC...
'use strict'; import Utils from './Utils'; import SfmcOauth from './SfmcOauth' import RestApiHelper from './RestApiHelper' import * as shortid from "shortid"; import Constants from './Constants'; class SfmcApiSingleton { private static _instance: SfmcApiSingleton; // Instance variables private _clientId ...
# test basic await expression # adapted from PEP0492 async def abinary(n): print(n) if n <= 0: return 1 l = await abinary(n - 1) r = await abinary(n - 1) return l + 1 + r o = abinary(4) try: while True: o.send(None) except StopIteration: print('finished')
<gh_stars>1-10 #include "stdafx.h" #include "WeaponBinoculars.h" #include "xr_level_controller.h" #include "level.h" #include "ui\UIFrameWindow.h" #include "WeaponBinocularsVision.h" #include "object_broker.h" #include "hudmanager.h" #include "inventory.h" CWeaponBinoculars::CWeaponBinoculars() { m_bi...
#!/bin/bash echo "Running in $(pwd)" export ARCH=${ARCH:-64} export BOLTDIR=lightning-rfc export CC=${COMPILER:-gcc} export COMPAT=${COMPAT:-1} export TEST_CHECK_DBSTMTS=${TEST_CHECK_DBSTMTS:-0} export DEVELOPER=${DEVELOPER:-1} export EXPERIMENTAL_FEATURES=${EXPERIMENTAL_FEATURES:-0} export PATH=$CWD/dependencies/bin:...
declare const ResizeSensor; const state: { dragged: Element } = { dragged: null }; let i = 0; for (const item of document.getElementsByClassName('drag')) { i++; item.setAttribute('draggable', 'true'); item.setAttribute('id', 'drag-' + i); (element => { const title = 'Drag me #' + i; ...