text stringlengths 27 775k |
|---|
/*
* Copyright 2020 The Android Open stream Project
*
* 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 applica... |
package com.rarible.protocol.nftorder.api.client
import com.rarible.protocol.client.AbstractApiClientFactory
import com.rarible.protocol.client.ApiServiceUriProvider
import com.rarible.protocol.nftorder.api.ApiClient
import org.springframework.boot.web.reactive.function.client.WebClientCustomizer
open class NftOrderA... |
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
class ApiController {
getJsonNfeDataFromAssets({
@required BuildContext context,
@required Widget destination,
}) {
openScreenDestination(context, destination);
}
openScreenDestination(BuildContext context, Widget desti... |
---
description: "Learn more about: NMAKE Fatal Error U1086"
title: "NMAKE Fatal Error U1086"
ms.date: "11/04/2016"
f1_keywords: ["U1086"]
helpviewer_keywords: ["U1086"]
ms.assetid: 6d3cd68a-ead6-4a6d-a205-01324785de7e
---
# NMAKE Fatal Error U1086
**inference rule cannot have dependents**
The colon (**:**) in an inf... |
using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using Microsoft.Extensions.Options;
using CatenaX.NetworkServices.Mailing.Template.Model;
namespace CatenaX.NetworkServices.Mailing.Template
{
public class TemplateManager : ITemplateManager
{
private readonly Templat... |
const { join } = require("path");
const SwiftFormatOfficial = require("../../../src/linters/swift-format-official");
const testName = "swift-format-official";
const linter = SwiftFormatOfficial;
const commandPrefix = "";
const extensions = ["swift"];
function getLintParams(dir) {
const warning1 = `${join(dir, "file... |
#!/usr/bin/env bash
#:title: Divine.dotfiles FreeBSD adapter
#:author: Grove Pyree
#:email: grayarea@protonmail.ch
#:revdate: 2019.11.30
#:revremark: Rewrite all Github references to point to new repo location
#:created_at: 2019.08.08
## Part of Divine.dotfiles <https://github.com/divine-... |
package fr.rss.download.api.utils;
import java.util.ArrayList;
public class AllDebridUtils {
public static boolean isFolder(String link) {
link = link.replaceAll("(\\r|\\n)", "").replaceAll("^https?://(www\\.)?", "");
ArrayList<String> redirectorsRegexp = new ArrayList<>();
redirectorsRegexp.add("^(zytpirwai... |
/*
* This file is part of AceQL Client SDK.
* AceQL Client SDK: Remote JDBC access over HTTP with AceQL HTTP.
* Copyright (C) 2020, KawanSoft SAS
* (http://www.kawansoft.com). All rights reserved.
* ... |
package com.xicks.fibonacciserver
import com.typesafe.config.ConfigFactory
object Environment {
val env = ConfigFactory.systemEnvironment()
val hoconConfig = ConfigFactory.load().resolve()!!
fun getOrDefault(fromEnv: String?, fromConfig: String?, default: String) : String {
return listOf(env to f... |
class CreateZipCodes < ActiveRecord::Migration
def change
create_table :zip_codes do |t|
t.string :zip_code
t.string :city
t.belongs_to :state, index: true
t.integer :district_count
t.boolean :on_house_gov
t.datetime :last_checked
t.timestamps null: false
end
add... |
// Copyright (c) to owners found in https://github.com/arlm/WinApi/blob/master/COPYRIGHT.md. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
using System.Runtime.InteropServices;
namespace Sandbox
{
[StructLayout(LayoutKind.Sequential... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Buffers.Binary;
using System.IO;
using System.Text;
namespace Microsoft.Spark.Interop.Ip... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
#!/bin/sh
echo 's x 1
s y 2
s z 3
w a.txt
q
'|./db 2>&1 >/dev/null
echo 'l a.txt
w b.txt
q
'|./db 2>&1 >/dev/null
diff a.txt b.txt
x=$?
rm a.txt b.txt
exit $x
|
(ns com.sixsq.slipstream.db.utils.acl)
(defn- rule-of-type?
[type rule]
(= type (:type rule)))
(def user-rule? (partial rule-of-type? "USER"))
(def role-rule? (partial rule-of-type? "ROLE"))
(def ^:const acl-users :_acl-users)
(def ^:const acl-roles :_acl-roles)
(defn- rules-with-owner
[acl]
(let [owner-rul... |
# SecuconnectJsSdk.SecupayTransactionDTOExternalInvoicePdf
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**updateExisting** | **Boolean** | Update existing invoice PDF | [optional]
|
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.Collections.Generic;
using Azure.Core;
using Azure.Search.Documents.Models;
namespace Azure.Search.Documents
{
/// <summary>
/// Options for <see cref="SearchClient.AutocompleteAsync"/> ... |
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE UnboxedTuples #-}
module RepPolyTupleSection where
import GHC.Exts
foo :: forall (r :: RuntimeRep) (a :: TYPE r). a -> (# Int#, a #)
foo = (# 3#, #)
|
extern crate cluExtIO;
use std::io::Write;
use cluExtIO::analytics::CounterIOWrite;
use std::io;
fn main() -> Result<(), io::Error> {
let out = io::stdout();
let mut counter = CounterIOWrite::from(out.lock());
for _a in 0..3 {
counter.write(b"11")?;
}
counter.flush()?;
println!();
println!("#Debug out:"... |
#!/bin/bash
#
# Copyright (c) 2017, UT-BATTELLE, LLC
# All rights reserved.
#
# This software is released under the BSD license detailed
# in the LICENSE file in the top level a-prime directory
#
#PBS -q acme
#PBS -l nodes=1
#PBS -l walltime=01:00:00
#PBS -A ACME
#PBS -N aprime_ocnice_diags
#PBS -o aprime_ocnice_dia... |
using CompAnalytics.X9.Records;
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
namespace CompAnalytics.X9.Document
{
[DataContract]
[Serializable]
public class X9DepositItemImage : X9DocumentComponent
{
[DataMember]
public ImageViewDetailRecord Ima... |
module Hearsay
module Railties
module ActionCableExtension
module Subscribe
extend ActiveSupport::Concern
included do
Hearsay.subscribe! /perform_action.action_cable$/i do |event|
payload = {
channel_class: event.payload[:channel_class],
ac... |
# -*- coding: utf-8 -*-
"""
Editor: Zhao Xinlu
School: BUPT
Date: 2018-03-27
算法思想:设置矩阵0
"""
class Solution(object):
def setZeroes(self, matrix):
"""
:type matrix: List[List[int]]
:rtype: void Do not return anything, modify matrix in-place instead.
"""
m = len(matrix)
... |
import { combineReducers, createStore } from 'redux'
import { userReducer } from './User/User.reducer'
const rootReducer = combineReducers({
userData: userReducer
})
export const store = createStore(
rootReducer,
window._REDUX_DEVTOOLS_EXTENSION_ && window._REDUX_DEVTOOLS_EXTENSION_()
) |
package delta_test
import (
"testing"
"github.com/GeoNet/delta/meta"
)
var testGains = map[string]func([]meta.Gain) func(t *testing.T){
"check for gain installation overlaps": func(installed []meta.Gain) func(t *testing.T) {
return func(t *testing.T) {
installs := make(map[string]meta.GainList)
for _, s... |
export default interface CabinetAlterer {
createSection(sectionName: string, destId?: string): Promise<void>;
createPage(pageName: string, destId?: string): Promise<string>;
renameElement(id: string, newName: string): Promise<void>;
moveElement(id: string, destId: string): Promise<void>;
deleteEleme... |
use std::collections::HashSet;
use std::fmt;
use std::iter::FromIterator;
/// Someone living in the housing unit
///
/// A wrapper around the name of someone financially responsible for charges
#[derive(Hash, PartialEq, Clone, Debug)]
pub struct Roommate(String);
impl Roommate {
/// Creates a new `Roommate`
/... |
#pragma once
#include "definitions.h"
#include "options.h"
class Serial {
public:
Serial(Options& inOptions) : options(inOptions) {}
auto read() const -> u8;
void write(u8 byte);
void write_control(u8 byte) const;
private:
Options& options;
u8 data;
};
|
package com.doge.client.module.modules.movement;
import com.doge.api.setting.settings.NumberSetting;
import com.doge.client.module.Category;
import com.doge.client.module.Module;
import org.lwjgl.input.Keyboard;
public class Step extends Module {
public NumberSetting stepHeight = new NumberSetting("Step... |
/*
* This file is part of Buttermilk(TM)
* Copyright 2013-2015 David R. Smith for cryptoregistry.com
*
*/
package com.cryptoregistry.client.security;
import java.io.File;
import com.cryptoregistry.formats.simplereader.JSONSymmetricKeyReader;
import com.cryptoregistry.passwords.Password;
import com.c... |
<?php
return array (
'singular' => 'ipcontaip_14_dadosfatura',
'plural' => 'ipcontaip_14_dadosfaturas',
'fields' =>
array (
'id' => 'Id',
'idcidade' => 'Idcidade',
'tipo_reg' => 'Tipo Reg',
'cnpj' => 'Cnpj',
'cod_cliente' => 'Cod Cliente',
'cod_contrato' => 'Cod Contrato',
'num_med... |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Main where
import Control.Monad
import Data.Bits
import Data... |
namespace Incoding.CQRS
{
#region << Using >>
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Incoding.Block;
using Incoding.Data;
using Incoding.Quality;
using JetBrains.Annotations;
#endregion
public class GetEntityByIdQuery<T> : ... |
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: MIT-0
import React, { useContext } from "react";
import { Hub } from "@aws-amplify/core";
import { Text, View, SwitchField } from "@aws-amplify/ui-react";
import { AppContext, RoutingModesEnum } from "../../AppContext";
... |
<?php
namespace App\Support;
use InvalidArgumentException;
final class Percentage extends Number
{
protected $suffix = '%';
public function __construct($amount)
{
if ($amount < 0 || $amount > 100) {
throw new InvalidArgumentException('Amount must be between 0 and 100');
}
... |
package typingsSlinky.ipfsHttpServer
import typingsSlinky.ipfsHttpServer.anon.Handler
import typingsSlinky.ipfsHttpServer.anon.HandlerOptions
import typingsSlinky.ipfsHttpServer.anon.Typeof_import
import typingsSlinky.ipfsHttpServer.anon.Typeof_new
import typingsSlinky.ipfsHttpServer.anon.Typeofadd
import typingsSlink... |
package com.xenoage.utils.promise;
import static com.xenoage.utils.promise.Calculator.Op.Div;
import static com.xenoage.utils.promise.Calculator.Op.Plus;
/**
* A helper class for {@link PromiseTest}, performing simple calculations.
*
* @author Andreas Wenger
*/
public class Calculator {
public enum Op {
Plus,... |
package net.miririt.maldives.compat
import android.content.Context
import android.net.Uri
import android.webkit.JavascriptInterface
import androidx.documentfile.provider.DocumentFile
import net.miririt.maldives.appendUri
import org.json.JSONArray
import java.io.*
class FileSystemInterface(var context: Context, privat... |
<?php
/**
* Description of Supply
* @author Euler Nuñez
*/
// module/Provision/src/Provision/Model/Entity/Supply.php
namespace Provision\Model\Entity;
class Supply {
protected $id;
protected $inicio;
protected $cliente;
protected $sede;
protected $servicio;
protected $solicitante;
pro... |
package com.pedrolge.mlflow.api.model.modelVersion
import com.pedrolge.mlflow.api.model.{MLFlowFormatter, ModelVersion}
import play.api.libs.json.{Json, OFormat}
object Response {
case class CreateModelVersionResponse(
modelVersion: ModelVersion
... |
```js
<NavBar
active='user'
count={2}
onPress={console.log}
/>
```
|
# coding: utf-8
__author__ = 'Catarina Silva'
__version__ = '0.1'
__email__ = 'c.alexandracorreia@ua.pt'
__status__ = 'Development'
import xml.etree.ElementTree as ET
def info_cursos_xml(xml_file: str):
lista = []
tree = ET.parse(xml_file)
root = tree.getroot()
for curso in root.findall('curso'):
... |
package trello
type Session struct {
Board *Board
List *List
Card *Card
}
|
package com.baeldung.scala.doobie
import cats.effect.{IO, IOApp}
import doobie.{Fragment, Transactor}
import doobie.implicits._
object DoobieFragments extends IOApp.Simple {
override def run: IO[Unit] = {
val transactor: Transactor[IO] = Transactor.fromDriverManager[IO](
"org.postgresql.Driver",
"j... |
// The idea of the code came from CamanJs with some modifications.
// You can check for the original code @ https://github.com/meltingice/CamanJS
import Renderer from "./renderer";
import Calculate from "./calculate";
import Convert from "./convert";
class Caman {
static Filter: typeof import("./filter").default;
... |
%%
%% %CopyrightBegin%
%%
%% Copyright Ericsson AB 2000-2011. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
%% compliance with the License. You should have received a copy of the
%% Erlang Public Licens... |
# encoding: utf-8
require_relative "../spec_helper"
require "nake/rule"
describe Nake::Rule do
before(:each) do
Nake::Rule.rules.clear
end
describe "[]" do
it "should find rule with given name if the name is a symbol"
it "should find rule with given name if the name is a string"
it "should find... |
package watch.craft.storage
import com.google.cloud.storage.Blob
import com.google.cloud.storage.Bucket
import com.google.cloud.storage.Bucket.BlobTargetOption
import com.google.cloud.storage.Bucket.BlobTargetOption.doesNotExist
import com.google.cloud.storage.Storage
import com.google.cloud.storage.Storage.BlobListOp... |
#!/bin/sh
# ImageAssets.sh
# shellScriptStringGeneration
#
# Created by Arnav Gupta on 06/12/19.
# Copyright © 2019 Arnav. All rights reserved.
#configure input variables for script here
projectDir="$SRCROOT"
scriptDir="$PODS_ROOT/ImageDuplicate"
# this ensure correct permissions are automatically added to any n... |
require "spec_helper"
require "bitcoin_ticker.rb"
module BitcoinTicker
describe BitcoinTicker do
let(:ticker) { BitcoinTicker.new }
let(:slack_webhook_url) { "https://hooks.slack.com/services/123/123" }
let(:slack_notifier) { instance_double("Slack Notifier") }
let(:price_saver) { instance_double("Pr... |
#!/usr/bin/env python
# encoding: utf-8
# ---------------------------------------------------------------------------------------------------------------------
# Name: scraper.py
# Version: 0.1.3
# Summary: Zap Imóveis Scraper
# A scraper that gathers data from Zap Imóveis website using BeautifulSoup.
#
# Aut... |
#!/bin/bash
SRCDIR=~/torvalds/linux
cd $SRCDIR
for ((i=12;i<=39;i++)) ; do
LATEST=$(git tag | sed -n -e "s/v2\.6\.$i\.\([0-9]*\)$/\1/p" | sort -nr | head -1)
echo -ne "v2.6.$i\t"
git checkout -fq v2.6.$i.$LATEST
find . -type f -name '*.[chS]' -exec wc -l {} \; | awk 'BEGIN{lines=0}{lines+=$1}END{print lines}'
do... |
#!/usr/bin/env node
import yargs from 'yargs';
import { generateAPIService } from './index';
const args = yargs
.option('input', { alias: 'i', describe: 'apiDoc', type: 'string', required: true })
.option('headers', { describe: 'fetch headers', type: 'array' })
.option('operation-id-splitter', { describe: 'oper... |
package com.example.app
import android.app.Activity
class DemoActivity : Activity() {
} |
import CoverImage from './coverImage'
import PostHeader from './postHeader'
import PostBody from './postBody'
import PostMeta from './postMeta'
const Post = ({ post }) => {
return (
<>
{post?.featuredImage?.node && (
<CoverImage
title={post?.title}
coverImage={post?.featuredImag... |
package jobworker
import "github.com/fatih/color"
import "time"
var stTime time.Time
func ResultsDispatcher(resultQueue chan JobResult, signaler chan int) {
stTime = time.Now()
for {
select {
case jr := <-resultQueue:
ProcessResult(&jr)
case <-signaler:
return
}
}
}
var cnt int = 0
var TotalDo... |
package com.example.alexmelnikov.coinspace.ui.settings
import android.content.Context
import android.content.SharedPreferences
import android.os.Bundle
import android.support.v7.preference.PreferenceFragmentCompat
import android.support.v7.preference.PreferenceManager
import android.view.View
import com.example.alexme... |
'use strict'
/**
* Пространственные данные книги регистрации/хранения.
*/
module.exports = (sequelize, DataTypes) => {
const spatialDataRd = sequelize.define('spatialDataRd', {
// Описание пространственных данных
description: {
type: DataTypes.STRING,
field: 'description'
},
// Владелец... |
## Login
Login component.
```
<onka-login></onka-login>
``` |
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe Fine do
subject do
described_class.new({
key: '1:1',
fields: fields
}.with_indifferent_access)
end
let(:fine) { subject }
let(:fields) do
{
block: { key: 'DAMAGED' },
billDate: '2019-07-11',
owed: {
... |
#pragma once
class AEApplication
{
public:
AEApplication();
~AEApplication();
AEApplication(AEApplication&) = delete;
void operator=(AEApplication const&) = delete;
bool Initialize();
void Run();
private:
void BuildScene(const unsigned int = 0);
void Update();
void AudioUpdate();
void Render();
private:
... |
using Mitternacht.Database.Models;
namespace Mitternacht.Database.Repositories {
public interface ICustomReactionRepository : IRepository<CustomReaction> {
}
}
|
using UnityEngine;
namespace BridgePattern.Case1.Base {
/// <summary>
/// * [The 'Implementation' interface]
/// </summary>
public interface ISize {
void ProcessSize(GameObject gameObject);
}
}
|
# This file was automatically generated, any manual changes will be lost the
# next time this file is generated.
#
# Platform: rbx 2.2.3.n18
RubyLint.registry.register('Date') do |defs|
defs.define_constant('Date') do |klass|
klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
klass.inherits(def... |
namespace Editor
{
public sealed class DivMathInverted : DivMath
{
public DivMathInverted(EquationContainer parent)
: base(parent)
{
divMathSign.IsInverted = true;
}
protected override void AdjustVertical()
{
insideEquation.Top = Top ... |
package com.olshevchenko.currencyconverter.features.operations.domain.model
/**
* Exchange of [fromAmount] units of [fromCurrency] into [toAmount] units of [toCurrency] on a certain [dateTime]
*/
data class ExchangeOperation(
val id: Int,
val fromCurrency: String, val toCurrency: String,
val ... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.jboss.aerogear.memolist.service;
import java.util.List;
import javax.ejb.Stateless;
import javax.inject.Inject;
import jav... |
//! Rope slices
//!
//! While we could just have the slicing methods on `Rope`s return `&str`s,
//! this would have some serious drawbacks: to slice a rope as `&str`, we'd have
//! to collect all the `Rope`'s characters into a `String` and then slice that
//! `String`. Creating an intermediate `String` would be slow, w... |
require 'controllers/application'
module ActiveRecord
module Acts #:nodoc:
module Renderer #:nodoc:
def self.included(base)
base.extend(ClassMethods)
end
# Allows models to support render_to_file and render_to_string methods
module ClassMethods
def acts_as_renderer
... |
MODULE TNOConstants
use ISO_FORTRAN_ENV
REAL (kind=4),PARAMETER :: Cnuk = 5.5
REAL (kind=4),PARAMETER :: kappa = 0.41
REAL (kind=4),PARAMETER :: Cmu = 0.09
REAL (kind=4),PARAMETER :: pi = 3.1415
INTEGER (4),PARAMETER :: limit = 5000
REAL (kind=4) :: omega ! NOTE: not a constant and used by f... |
import {
NgModule
} from '@angular/core';
import {
CommonModule
} from '@angular/common';
import {
ThemeModule
} from '../../theme/theme.module';
import {
ReactiveFormsModule
} from '@angular/forms';
import {
DocumentBackendRoutingModule,
documentBackendRoutedComponents,
} from './backend-routin... |
/*
::::: __________________________________________________________________ :::::
: ____\ .__ .__ _____ __. ____ ___ _______ .__ ______ .__ _____ .__ _. /____ :
__\ .___! __|_/__ / _|__ / /_____ __| \ gRK __|_ \ __ |_ \ !___. /__
\ ! ___/ |/ /___/ | \__\ ._/ __\/ \ \___/ |/ \/ \_./ \___ ! ... |
module SmsBackupRenderer
# Represents a single sender or recipient of an SMS or MMS message.
class Participant
# Returns the String address of the participant, such as '1 (234) 567-890'.
attr_reader :address
# Returns the String contact name for the participant, or nil if unknown.
attr_reader :name... |
create table act_id_membership
(
USER_ID_ varchar(64) not null,
GROUP_ID_ varchar(64) not null,
primary key (USER_ID_, GROUP_ID_),
constraint ACT_FK_MEMB_GROUP
foreign key (GROUP_ID_) references act_id_group (ID_),
constraint ACT_FK_MEMB_USER
foreign key (USER_ID_) references act_id... |
import React from 'react';
import Helmet from 'react-helmet';
import { connect } from 'react-redux';
//
import * as Basic from '../../components/basic';
import EntityAuditTable from '../audit/EntityAuditTable';
import SearchParameters from '../../domain/SearchParameters';
import { RoleManager } from '../../redux/data';... |
package daniel.zolnai.marathon.service
import com.dumbster.smtp.SimpleSmtpServer
import daniel.zolnai.marathon.TestSuite
import daniel.zolnai.marathon.entity.{AppConfig, EmailConfig, Trigger}
import scala.collection.JavaConverters._
/**
* Tests the email client with a fake SMTP server.
* Created by Daniel Zolnai ... |
<?php
namespace Clarkson\Filters\SiteHealth\Filters\Plugins\WooCommerce;
use Clarkson\Filters\SiteHealth\Filters\Plugins\WooCommerce\Tab;
class Tools extends Tab {
public function __construct() {
$this->title = __( 'Tools', 'woocommerce' );
$this->slug = 'tools';
}
public function register_hooks() {
add_... |
package com.nikolaykul.sebastian.di
/**
* Marker interface that informs *this* object can be injected
*
* @see AppInjector
* @author NikolayKul
*/
interface Injectable
|
const db = require("./");
const Models = require("./Models");
async function createTables() {
await db.authenticate();
await Models.ExampleModel.sync();
}
module.exports = {
createTables: createTables,
wipeDBTables: async() => {
await db.drop();
await createTables();
}
}; |
package eg.edu.alexu.csd.oop.draw.cs62_67.model;
import java.util.ArrayList;
import eg.edu.alexu.csd.oop.draw.ICommand;
import eg.edu.alexu.csd.oop.draw.Shape;
public class UpdateShape implements ICommand{
private ArrayList<Shape> shapes;
private Shape oldShape;
private Shape newShape;
public Update... |
#include <word-search.h>
/* Used instead of iterating over all pointers in trie
because it takes extremely long when using full unicode set */
typedef struct
{
trie **node;
int length;
} node_index;
static node_index trie_index;
static trie *head;
static int max_word_length = 0;
// Builds trie when given fil... |
using Sims
using NineML
using Winston
al = NineML.parse_ComponentClass("IaF.xml")
uls = NineML.parse_Components("IaF_UL.xml")
tf = 100.0
dt = 0.025
ul= uls[1]
NineML.eval_Dynamics(al.dynamics, ul.name, ul.parameterValues, ul.initialValues, al.parameters, al.states, al.ports)
model = ul.name
iaf = eval(quote $model ... |
---
layout: slide
title: "Welcome to our second slide!"
---
My new fish tank has just opened for 7 residents!
Date created: 8th Feb 2022
Use the left arrow to go back!
|
---
translation: automatic
title: Anticorps anti-thyroglobuline
description: Anticorps contre les protéines thyroïdiennes
---
|
<?php
namespace loginBundle\Model;
use Symfony\Component\Security\Core\User\UserProviderInterface;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\Security\Core\Exception\UsernameNotFoundException;
use Symfony\Component\Security\Core\Exception\UnsupportedUserException;
use Symfony\Compon... |
import {expect} from 'chai';
import * as supertest from 'supertest';
import {CreatedNewUserData, signupNewUser} from "../utlis/auth";
import { withData } from 'leche';
const request = supertest('http://localhost:1308');
type TopicRequest = {name: string, isActive: boolean};
type StreamRequest = {track: string};
let n... |
# Race class for potential player races (species, i.e. elf, dwarf, human)
import random
from api import get_data
class Race :
''' A class representing a character's species '''
def __init__(self) :
''' Initialize member variables to default values '''
self.name = ""
self.scores = {"STR... |
#!/bin/bash
# My first script
echo "VIRUS HAS BEEN ACTIVATED"
echo "------------------------"
SECONDS=0
python DDOS.py 10.0.0.3
echo "DDOS was executed for in $SECONDS seconds"
|
use rand::prelude::StdRng;
use rand::SeedableRng;
use crate::core::{Learner, Model, TrainingRow};
use crate::trees::splits::{Split, Splitter};
use super::{DecisionTreeParameters, LeafLearner, ModelNode, TrainingNode};
#[derive(Debug)]
pub struct RegressionTreeLearner {
splitter: Box<dyn Splitter<f64>>,
learn... |
import 'dart:io';
import 'package:dotenv/dotenv.dart' as dot;
class Env {
Map<String, String> env = {};
void load() {
dot.load();
env = {}
..addAll(Platform.environment)
..addAll(dot.env);
}
}
void main() {
(Env()..load()).env.forEach((key, value) => print('$key=$value'));
}
|
import React from 'react'
import { shallow } from 'enzyme'
import { Price, OldPrice, CurrentPrice } from './'
describe('Price Component', () => {
it('should have a default structure', () => {
expect(shallow(<Price />)).toMatchSnapshot()
})
it('should have a emphasize prop', () => {
expect(shallow(<Pric... |
// Configurations
export const dropboxConfig = {
clientId: '<YOUR_CLIENT_ID>',
redirectUri: '<YOUR_REDIRECTURI>/auth:now',
responseType: 'token',
trustUrl: 'https://www.dropbox.com'
};
export const dropboxApi = {
'filesListFolderContinue': 'https://api.dropboxapi.com/2/files/list_folder/continue',
... |
#!/usr/bin/env bash
#
# Bootstrap software installations with Ansible.
# Exit immediately if a command exits or pipes a non-zero return code.
#
# Flags:
# -e: Exit immediately when a command pipeline fails.
# -o: Persist nonzero exit codes through a Bash pipe.
# -u: Throw an error when an unset variable is encou... |
<?php
/**
* 字符操作类
*
* PHP version 5.4
*
* @category Util
* @package Util
* @author zhaoyan <3032441712@qq.com>
* @license https://github.com/3032441712/person/blob/master/LICENSE GNU License
* @version GIT: $Id$
* @link http://www.168helps.com/blog
*/
namespace Util;
/**
* String 类
*
* @category... |
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
import { ArrayExt, each } from '@phosphor/algorithm';
import { JSONValue } from '@phosphor/coreutils';
import { Message } from '@phosphor/messaging';
import { MimeData } from '@phosphor/coreutils';
import { Attac... |
/** @jsxImportSource @emotion/react */
import { css, useTheme } from '@emotion/react';
import clsx from 'clsx';
import React, { useCallback, useEffect, useRef, useState } from 'react';
import { clamp } from '../../utils';
type SwipeItem = {
index: number;
content: React.ReactNode;
};
type SwiperProps = {
items: ... |
package example.framework;
import javax.servlet.http.HttpServletRequest;
public class PathHelper {
public String getLookupPathForRequest(HttpServletRequest request) {
// First, see if it is an included request
String includeServletPath = (String) request.getAttribute("javax.servlet.include.servle... |
export type { AngularV9Main } from './angular-v9.main.runtime';
export { AngularV9Env } from './angular-v9.env';
export { AngularV9Aspect, AngularV9Aspect as default } from './angular-v9.aspect';
|
const ROOT = Symbol('root')
const UPDATE = Symbol('update')
const CANCEL = Symbol('cancel')
const INTERRUPT = Symbol('interrupt')
/** Pool of used children per parent */
const pool = new WeakMap()
/** Use with {@link Layer#subscribe} to listen for any store changes */
export const ANY = Symbol('any')
/** Current sta... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.