text stringlengths 27 775k |
|---|
// RelaxPtPotentialBuilder.cpp: implementation of the RelaxPtPotentialBuilder class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "LatticeRelaxation.h"
#include "RelaxPtPotentialBuilder.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#defin... |
// from https://github.com/hapijs/nes#route-invocation
import { Request, ResponseToolkit, Server } from 'hapi';
import Nes = require('nes');
const server = new Server();
server.register(Nes).then(() => {
server.route({
method: 'GET',
path: '/h',
config: {
id: 'hello',
... |
import { NNode, TNode, NodeHash } from 'interfaces/node.interface'
import { get, pick, values, concat, flatten, filter, mapValues, cloneDeep } from 'lodash'
function makeId() {
let text = "";
const possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for (let i = 0; i < 5; i++)
text ... |
require 'formula'
class Jbigkit < Formula
homepage 'http://www.cl.cam.ac.uk/~mgk25/jbigkit/'
url 'http://www.cl.cam.ac.uk/~mgk25/download/jbigkit-2.0.tar.gz'
sha1 'cfb7d3121f02a74bfb229217858a0d149b6589ef'
option :universal
option 'with-check', "Verify the library during install"
def install
# Set fo... |
import {
getChunks,
isChunkExpired,
createMkFileUrl,
setLocalFileInfo,
removeLocalFileInfo,
getLocalFileInfo,
isContainFileMimeType,
sum,
getDomainFromUrl,
getPortFromUrl,
getHeadersForChunkUpload,
getHeadersForMkFile,
request,
computeMd5,
getUploadUrl,
filterParams
} from "./utils";
im... |
#include "stdafx.h"
#include "CppUnitTest.h"
#include <string>
#include "../lab9/TMono.h"
#include "../lab9/TPoly.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace UnitTest
{
TEST_CLASS(UnitTest1)
{
public:
TEST_METHOD(MonoConstructor)
{
TMono m;
Assert::Ar... |
# package_archive
Scans the package archive, extracts its main content and checks for errors.
This package should become shared between pub client and server.
|
#!/bin/sh
set -ex
CGO_ENABLED=0 GOOS=linux go build -v -a -o stickyapp
|
#include "../lbkes_k_eigenvalue_solver.h"
#include <chi_lua.h>
#include "lbkes_lua_utils.h"
#include <chi_log.h>
extern ChiLog& chi_log;
#define MAX_ITERATIONS 1
#define TOLERANCE 2
using namespace LinearBoltzmann;
//############################################################
/**Set properties for the solv... |
package quanti.com.kotlinlog.base
/**
* Created by Trnka Vladislav on 06.06.2017.
*
*/
class LogLevel {
companion object {
/**
* Priority constant for the println method; use Log.v.
*/
const val VERBOSE = 2
/**
* Priority constant for the println method; u... |
//! Implementation of the linked list on `Vec`. Has an
//! `O(1)` amortized insertion and removal time due to
//! linear placement in memory. It is added in the
//! same way as in `Vec`, but at deletion the element
//! moves to the end and something like pop is called.
//! # `tsil` and `cev`
//! `TsilCev` has 2 types ... |
/**
* Copyright (C) 2016 Stratio (http://stratio.com)
*
* 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 ap... |
{-# LANGUAGE NoImplicitPrelude #-}
-- | Aeson generic deriving options.
--
module Preamble.Aeson
( camelOptions
, snakeOptions
, spinalOptions
, maybeResult
, eitherResult
) where
import Data.Aeson.Types
import Data.Char
import Data.Text
import Data.Text.Manipulate
import Preamble.Prelude hiding (drop... |
import glib.utils.GZone
import scalanative._
import unsafe._
package object gio {
def argsToArgv(args: Array[String])(implicit zone: Zone): Ptr[CString] = {
val argv = alloc[CString](args.length)
val argvPtr = alloc[Ptr[CString]]
!argvPtr = argv
for (i <- args.indices) {
argv(i) = toCString(... |
import { User } from "../types/user";
import subjects from '../assets/data/subjects.json';
import { Subject } from "../types/subject";
export const getQueryVariable = (variable: string) => {
const query = window.location.search.substring(1);
const vars = query.split('&');
for (let i = 0; i < vars.length; i... |
require 'spec_helper'
describe Bhm::Plugins::Logger do
let(:plugin) { Bhm::Plugins::Logger.new(options) }
let(:heartbeat) { Bhm::Events::Base.create!(:heartbeat, heartbeat_payload) }
let(:alert) { Bhm::Events::Base.create!(:alert, alert_payload) }
before do
Bhm.logger = logger
end
describe 'without ... |
#ifndef NODE_H_
#define NODE_H_
#include <common/Common.h>
#include <common/nodes/NumNodeID.h>
#include <common/threading/Condition.h>
#include <common/threading/Mutex.h>
#include <common/toolkit/StringTk.h>
#include <common/toolkit/Time.h>
#include <linux/kref.h>
#include "NodeConnPool.h"
// forward declaration
stru... |
package com.seanshubin.condorcet.prototype
import com.amazonaws.services.rds.AmazonRDSAsync
import com.amazonaws.services.rds.AmazonRDSAsyncClientBuilder
import com.seanshubin.condorcet.util.DurationFormat
import com.seanshubin.condorcet.util.rds.RdsDatabaseApi
import com.seanshubin.condorcet.util.rds.RdsDatabaseApiIm... |
# frozen_string_literal: true
require 'yaml'
require_relative 'default_config'
require_relative 'version'
HOME = ENV['HOME']
# Configuration class
class Config
attr_reader :config
def initialize(conf = {})
@config = Default.config.merge(conf)
end
def write_to_file
directory = File.join(HOME, '.jruby_a... |
##########################################################################
# Copyright (c) 2015, Synopsys, Inc. #
# All rights reserved. #
# #
# Redistribution and... |
(ns ampie.content-script.sidebar.domain
(:require [ampie.content-script.sidebar.db :refer [db]]
[reagent.core :as r]
[ampie.content-script.sidebar.hn :as hn]
[ampie.content-script.sidebar.twitter :as twitter]
[ampie.content-script.sidebar.amplified :as amplified]
... |
//! \file GarCreate.cs
//! \date Fri Jul 25 05:56:29 2014
//! \brief Create archive frontend.
//
// Copyright (C) 2014 by morkt
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the S... |
#!/usr/bin/env bash
set -f
#
# Remotely setup the stuff needed to run packstack. This should do items 1-4 in
# https://docs.google.com/document/d/1us18KR3LuLyINgGk2rmI-SVj9UksCE7y4C2D_68Aa8o/edit?ts=56a78fcb
#
yum remove -y rhos-release
rpm -ivh http://rhos-release.virt.bos.redhat.com/repos/rhos-release/rhos-release-... |
-module(test).
-export([sayHello/0]).
sayHello() ->
erlang:display("hello"). |
package com.sample.android.tmdb.paging.search.tvshow
import android.content.Context
import com.sample.android.tmdb.domain.TVShow
import com.sample.android.tmdb.network.TVShowApi
import com.sample.android.tmdb.paging.BasePageKeyedDataSource
import java.util.concurrent.Executor
class SearchTVShowPageKeyedDataSource(
... |
module Programs.Allocation3 where
import Assembly
import LinearScan.Hoopl.DSL
allocation3 :: Program (Node IRVar)
allocation3 = do
label "entry" $ do
move v74 v37
branch v53 "L7" "L83"
label "L83" $ do
branch v47 "L87" "L86"
label "L86" $ do
jump "L27"
label "L87" $ ... |
# unity-platformer-player-movement
This project contains the code for the platformer basic movement and jump controller of the player
|
<?php
if (! function_exists('blocksy_assemble_selector')) {
return;
}
// Logo size
$logo_max_height = blocksy_akg('logoMaxHeight', $atts, 50);
if ($logo_max_height !== 50) {
blocksy_output_responsive([
'css' => $css,
'tablet_css' => $tablet_css,
'mobile_css' => $mobile_css,
'selector' => blocksy_assemble_s... |
package com.educode.challengemegabitefood.data.remote.service.response
data class PokeResponse (
val code: Long,
val message: String,
val data: Data
)
|
#!/bin/sh
export VAR_CASE=
#export VAR_CASE="CamelCase"
#export VAR_CASE="snake_case"
#export VAR_CASE="spinal-case"
#export VAR_CASE="ignore-case"
#export VAR_CASE="raw-case"
export VAR_SEPARATOR=
#export VAR_SEPARATOR="="
#export VAR_SEPARATOR=":"
export CONFIG="test.txt"
export WAIT_FOR_SERVICE="www.baidu.com:80;... |
(function() {
'use strict';
angular.module('app')
.factory('DashboardFactory', DashboardFactory);
function DashboardFactory($http, $q) {
var o = {};
return o;
}
})();
|
# ToS redirect for UNAL
Temporary redirect from https://tos.manizales.unal.edu.co.
|
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Microsoft.Azure.II... |
import Requirement from "./Requirement";
class RequirementPredicate extends Requirement {
constructor(...requirements) {
super();
if (new.target === RequirementPredicate) {
throw new TypeError(
"Cannot construct RequirementPredicate instances directly"
);
}
if (requirements.lengt... |
{-# Language MagicHash #-}
{-# Language TemplateHaskell #-}
{-# Language QuasiQuotes #-}
{-# Language PatternSynonyms #-}
{-# Language ViewPatterns #-}
{-# Language BlockArguments #-}
{-# Language GeneralizedNewtypeDeriving #-}
{-# Language DeriveGeneric #-}
-- | GF(2^8) mod x^8 + x^4 + x^3 + x^2 + x^0
module GF2_8
... |
import 'package:flutter/material.dart';
class GLTapped extends StatefulWidget {
GLTapped({this.child, this.onTap, this.onLongTap, this.onTapParent, this.behavior});
final HitTestBehavior behavior;
final Widget child;
final Function onTap;
final Function(Widget w) onTapParent;
final Function onLongTap;
@... |
package server.controller;
import server.ClientState;
import server.IProtocolHandler;
import server.model.Game;
import server.model.ServerModel;
import xml.Message;
import java.util.ArrayList;
/**
* Controller on server to handle the list game request of admin client and return list game response to client.
*/
pub... |
-- file:numeric.sql ln:444 expect:true
INSERT INTO num_exp_ln VALUES (6,'11.45000246622944403127')
|
import { createSlice } from '@reduxjs/toolkit';
// eslint-disable-next-line import/no-cycle
import { AppThunk, RootState } from '../../store';
const counterSlice = createSlice({
name: 'timer',
initialState: { value: null },
reducers: {
increment: (state, action) => {
state.value = actio... |
# --- !Ups
CREATE TABLE PaymentSource (
payment_source_id INT NOT NULL AUTO_INCREMENT,
name VARCHAR(255),
user_id INT DEFAULT NULL,
amount INT DEFAULT 0,
UNIQUE KEY (`name`),
FOREIGN KEY (`user_id`) REFERENCES User(`user_id`),
PRIMARY KEY (`payment_source_id`)
);
INSERT INTO PaymentSource (name) VALUES ... |
# CRM
## Пошаговая инструкция для запуска проекта
### 1
Скачиваете [postgres](https://www.postgresql.org/download/)
Устанавливаете и ставите галочку на PgAdmin4
### 2
Открываете PgAdmin4 и запускаете сервер (правой кнопкой мыши по servers)
host: localhost
port: 5432
В сервере создайте базу данных под именем ceh
##... |
# 🖥 Tiga Ecosystem Command Line Tool
This package is a Tiga ecological command line tool
Please refer to its documentation:
- [Github Repository](https://github.com/tigateam/tiga-cli)
- [Documentation](https://cli.tigateam.org) —— How to use Tiga CLi tool to assist application development
- [Encountered problems dur... |
# authentication-v1
Authentication web server with REST APIs storing data to MongoDB. Google authentication. Simple web client
|
@using BAE_Brasil.Utils.Enums
@model Language
@{
string DisplayProficiency(Proficiency profc) => profc switch
{
Proficiency.Basic => "Básico",
Proficiency.Intermediate => "Intermediário",
Proficiency.Advanced => "Avançado",
Proficiency.Fluent => "Fl... |
#ifndef TEXT_ENTRY_H
#define TEXT_ENTRY_H
#include <cstddef>
#include <string>
union SDL_Event;
namespace TextEntry
{
// Modifies the text parameter based on the given SDL input event and backspace boolean,
// and returns whether the text was changed. The "charIsAllowed" function decides
// which characters from ... |
---
layout: tutorial_frame
title: Grid coordinates
---
<style>
#info {
position:absolute;
top:0;
right:0;
width: 20em;
height: 7.5em;
background: rgba(255,255,255,.5);
z-index:500;
font: 12px Sans;
}
.crsMarker {
border-top: 2px green solid;
border-left: 2px green solid;
}
</style>
<div id='info' st... |
/*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at
* your option)... |
require File.expand_path('../../test_helper.rb', __FILE__)
require File.expand_path('../freeradius_stats.rb', __FILE__)
class FreeradiusStatsTest < Test::Unit::TestCase
def setup
@options = parse_defaults("freeradius_stats")
end
def teardown
end
def test_clean_run
# Stub the plugin instance where ... |
using System.ServiceModel;
using WebconProxy;
using System.Net;
using System.Security.Principal;
using System.Threading.Tasks;
using System;
namespace WebconWrapper
{
public class WebconClient
{
private BPSWebservice _client;
internal WebconClient(BPSWebservice client)
{
_... |
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Resolvers::Projects::GrafanaIntegrationResolver do
include GraphqlHelpers
let_it_be(:project) { create(:project) }
let_it_be(:current_user) { create(:user) }
let_it_be(:grafana_integration) { create(:grafana_integration, project: project)}
... |
<a style='color:#000' href='<?php echo base_url(); ?>administrator/list_pt'>
<div class="col-md-5 col-sm-6 col-xs-12">
<div class="info-box">
<span class="info-box-icon bg-aqua"><i class="fa fa-suitcase"></i></span>
<div class="info-box-content">
<span class="info-box-text">Layanan</span>
... |
<?php
namespace Kibo\Phast\Services\Bundler;
use Kibo\Phast\Services\ServiceRequest;
class ShortBundlerParamsParser {
public static function getParamsMappings() {
return [
's' => 'src',
'i' => 'strip-imports',
'c' => 'cacheMarker',
't' => 'token',
... |
.
.
.
# lengths: Functional version using `inject`
def functional_lengths(states)
states.inject({}) do |lengths, state|
lengths[state] = state.length
lengths
end
end
puts functional_lengths(states)
|
using System;
namespace Asv.Avalonia.GMap.Korea
{
/// <summary>
/// GoogleKoreaHybridMap provider
/// </summary>
public class GoogleKoreaHybridMapProvider : GoogleMapProviderBase
{
public static readonly GoogleKoreaHybridMapProvider Instance;
GoogleKoreaHybridMapProvider()
... |
/*
* 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 may n... |
export {default as gup, empty as gupEmpty, identity as gupIdentity} from "./src/gup";
export {default as gupCompose} from "./src/compose";
|
Rails.application.routes.draw do
mount FloRollout::Engine => "/flo_rollout"
end
|
@if(isset($comment_id))
<div class="row">
<form class="col-xs-offset-2 col-xs-8 collapse c{{ $comment_id }}" action="/c/{{ $comment_id }}/reply" method="post">
{!! csrf_field() !!}
<input type="hidden" name="comment_id" value="{{ $comment_id }}">
<div class="form-group">
<textarea class="form-control" t... |
use digilent_waveforms::*;
use itertools::Itertools;
use noisy_float::prelude::*;
use time::Duration;
use crate::backend::Backend;
use crate::backend::BiasedTrace;
use crate::backend::RawTrace;
use crate::dut::BiasDrive;
use crate::util::Try;
pub struct AD2 {
device: Device,
diode_current_limit_ma: f64,
c... |
# frozen_string_literal: true
# == Schema Information
#
# Table name: campaigns
#
# id :integer not null, primary key
# name :string
# created_at :datetime
# updated_at :datetime
#
class Campaign < ApplicationRecord
has_paper_trail
has_many :pages
validates :name, presence: true, uni... |
import {expect, test} from '@oclif/test'
describe('Pullzone command test', () => {
test
.nock("https://bunnycdn.com/api", api => { api
.get("/pullzone")
.reply(200, [{
Id: "111",
Value: "testcdn",
Hostnames: []
}]);
})
.stdout()
.retries(20) // Sometimes the... |
# Copyright (C) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# This work is made available under the Nvidia Source Code License-NC.
# To view a copy of this license, check out LICENSE.md
import numpy as np
import torch
import torch.nn as nn
class AffineMod(nn.Module):
r"""Learning affine modulati... |
//! Habitat core encryption and cryptography.
//!
//! This module uses [libsodium](https://github.com/jedisct1/libsodium) and its Rust counterpart
//! [sodiumoxide](https://github.com/dnaq/sodiumoxide) for cryptographic operations.
//!
//! # Concepts and terminology:
//!
//! - All public keys, certificates, and signatu... |
<?php defined('SYSPATH') or die('No direct script access.');
class Controller_Jsontest extends Controller {
private $model_name;
private $model_menu;
public function __construct(Request $request, Response $response)
{
parent::__construct($request, $response);
//model object
$this->model_name = Model::fa... |
namespace GoodToCode.Framework.Validation
{
/// <summary>
/// Validation Rule contract
/// </summary>
public interface IValidationResult
{
/// <summary>
/// Language to localize messages
/// </summary>
string LanguageISO { get; set; }
/// <summary>
//... |
import datetime
from math import isclose
def construct_hybrid_automaton_name(name=None):
if name is None:
curr_datetime = datetime.datetime.now()
name = "test_hs_{month}{day}{hour}{minute}".format(month=curr_datetime.month,
day=curr_dateti... |
using System;
using System.Collections;
using System.Collections.Generic;
using GeoTetra.GTCommon.Components;
using UnityEngine;
using UnityEngine.AddressableAssets;
namespace GeoTetra.GTPooling
{
public class ServiceBehaviour : SubscribableBehaviour
{
public bool IsLoaded { get; protected set; }
... |
import React from "react";
import Select from "react-select";
import { selectStyles } from "../Select";
export default class QueryHeader extends React.Component<any, any> {
handleChangeTitle(e) {
this.props.onChangeTitle(e.target.value);
}
handleChangeDataSource(e) {
this.props.onChangeDataSource(e.valu... |
import path from 'path';
// This is a custom Jest transformer turning file imports into filenames.
// http://facebook.github.io/jest/docs/en/webpack.html
module.exports = {
process(_src: any, filename: string) {
const assetFilename = JSON.stringify(path.basename(filename));
if (filename.match(/\.svg$/)) {
... |
require 'spec_helper'
describe Issue, type: :model do
include SetupSupport
it 'is patched with RedmineResources::Patches::IssuePatch' do
patch = RedmineResources::Patches::IssuePatch
expect(Issue.included_modules).to include(patch)
end
context 'with plugin settings defined' do
context 'without de... |
import * as React from "react";
import { render } from "reakit-test-utils";
import { TooltipReference } from "../TooltipReference";
const props: Parameters<typeof TooltipReference>[0] = {
baseId: "base",
show: jest.fn(),
hide: jest.fn(),
};
test("render", () => {
const { baseElement } = render(
<TooltipRe... |
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Linq.Expressions;
using System.Threading.Task... |
from hc.test import BaseTestCase
from hc.api.models import Check
from django.urls import reverse
class SwitchTeamTestCase(BaseTestCase):
def setUp(self):
super(SwitchTeamTestCase, self).setUp()
self.url = reverse("hc-switch-team", args=(self.alice.username, ))
def test_user_can_switch_team(s... |
#ifndef XMLSPATIALINFO_H
#define XMLSPATIALINFO_H
#include <iostream>
#include <string>
#include "cadastralnumber.h"
namespace rrt {
class XMLSpatialInfo {
public:
XMLSpatialInfo();
XMLSpatialInfo(std::string type, std::string cadastralNumber);
friend std::ostream& operator<<(std::ostream& out, const XMLSpa... |
import { AAVE_X_AAVE_A_CLR, XTK_ETH_CLR } from '@xtoken/abis'
import test from 'ava'
import { provider } from '../../constants.spec'
import { getExpectedQuantityOnBurnXAssetCLR } from './burn'
test(`Calculate expected quantity of AAVE & xAAVEa on burn of ${AAVE_X_AAVE_A_CLR}`, async (t) => {
const estimateQty = aw... |
# -*- coding: utf-8 -*-
"""
"""
import unittest
import json
from jsonschema import validate
class TestSum(unittest.TestCase):
my_json_file = 'assassin/lib/serviceDetections.json'
def test_json(self):
"""
Describe what kind of json you expect.
If JSON file is not formatted properly, ... |
ALTER TABLE `character` RENAME TO `characters`;
ALTER TABLE `group` RENAME TO `groups`;
ALTER TABLE `character_pet`
CHANGE COLUMN `ABData` `abdata` longtext,
CHANGE COLUMN `TeachSpelldata` `teachspelldata` longtext;
ALTER TABLE `guild`
CHANGE COLUMN `MOTD` `motd` varchar(255) NOT NULL default '';
ALTER ... |
import React, { Component } from "react";
import Accordion from "react-bootstrap/Accordion";
import Card from "react-bootstrap/Card";
import { Link } from "react-router-dom";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faPlus } from "@fortawesome/free-solid-svg-icons";
import DemandItem... |
/*
This is the grammar from the Wikipedia article on "Recursive Descent Parser".
programme = block "." .
block =
["const" ident "=" number {"," ident "=" number} ";"]
["var" ident {"," ident} ";"]
{"procedure" ident ";" block ";"} statement .
statement =
ident ":=" expression
| "call" ident
| "begin" statem... |
package xiatian.octopus.actor.store
import java.util.Date
/**
* 文章对象,主要用于从数据库中读取数据,保存在该对象中,用于展示查看
*
* @author Tian Xia
* May 10, 2017 18:03
*/
@Deprecated
case class Article(id: String,
url: String,
title: String,
site: String,
... |
#! /usr/bin/perl
while(<@ARGV>){
if(/-elec/){ shift; $elec = shift; }
if(/-h/){ &HELP; }
}
while(<>){
@data = split;
foreach $d (@data){
$n++;
printf "%12.4f ", $d;
if($n == $elec){ print "\n"; $n = 0; }
}
}
sub HELP {
print "\a\nsort-epochs -elec x\n\n",
"specify how many electrodes per ep... |
% Benchmark prime number generation using the sieve of Eratosthenes
% algorithm with assert/retract. This benchmark tests assert/retract and
% JIT index generation and destruction.
%
% Auther: Jan Wielemaker
% Copyright: Public domain.
:- use_module(library(assert_db_local)).
:- install_L.
:- disable_L.
:- enable... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class logResetSenhaMotorista extends Model
{
protected $table = 'log_reset_senha_motorista';
protected $fillable = [
'motorista_id',
'user_id',
'data_alteracao'
];
}
|
import { expect } from 'chai';
import { _parseBindings, _setupInputs, _setupOutputs } from '../../../../src/core/directives/binding/binding_parser';
import { _parseFields } from '../../../../src/core/directives/binding/binding_parser';
describe( `directives/binding/binding_parser`, () => {
describe( `Binding parser... |
<?php
/**
* I solved this problem by creating an associative array where
* any integer on $A became a key in $result
* and any time this integer appears in the for loop the value of
* the key will be added one.
*/
// Array of integers
$A = [9,3,9,3,9,7,9];
function solution($A){
// Variables
$smallest =... |
---
title: 活力澳洲项目图集
published: true
---
为国内提供在线一站式澳洲旅游服务的网站,有旅游线路的管理与展示,在线下订单与订单管理,澳洲旅游资讯等功能。

* * *

* * *

* * *

* * *

... |
/* { dg-do compile } */
/* { dg-options "-fgnu-tm" } */
extern void baz(int);
int y;
void foo(volatile int x)
{
__transaction_atomic {
x = 5; /* { dg-error "invalid use of volatile lvalue inside transaction" } */
x += y;
y++;
}
baz(x);
}
volatile int i = 0;
void george()
{
__transaction_atomic ... |
exports.move = move
const Entity = require('./entity')
const { resolve } = require('vector')
const { degrees } = require('radians')
const { floor } = Math
function move(game, angle) {
var { world, hero } = game
var normal = resolve({ direction: degrees(angle), magnitude: 1 })
if (normal.x) {
var delta = { x: nor... |
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
node spec/spec.js &
for f in issue*.js; do
node "$f" "$@" &
done
wait
|
//-----------------------------------------------------------------------
// <copyright file="TypeExtensionsBenchmarks.cs" company="Akka.NET Project">
// Copyright (C) 2009-2020 Lightbend Inc. <http://www.lightbend.com>
// Copyright (C) 2013-2020 .NET Foundation <https://github.com/akkadotnet/akka.net>
// </co... |
from __future__ import unicode_literals, absolute_import
# Standard
import logging
import os
# Third Party
import pygame as pg
# Project
from harren import resources
LOG = logging.getLogger(__name__)
def get_image(path, **kwargs):
"""
Return a pygame image instance.
If this is an image without alpha ... |
{-# LANGUAGE OverloadedStrings #-}
module Main (main, test) where
import Control.Concurrent.Async
import Control.Exception
import System.FilePath
import System.FilePath.Glob
import qualified Test.Data.Tree.Extended
import qualified Test.Draw
import qualified Test.Draw.Color
import qualified Test.Draw.Plotting
impo... |
AbsolutePath: /Home/Index.htm
AbsoluteUri: https://user:password@www.contoso.com:80/Home/Index.htm?q1=v1&q2=v2#FragmentName
DnsSafeHost: www.contoso.com
Fragment: #FragmentName
Host: www.contoso.com
HostNameType: Dns
IdnHost: www.contoso.com
IsAbsoluteUri: True
IsDefaultPort: False
IsFile: False
IsLoopback: False
IsUnc... |
var val : int;
private var cache: int;
private var applied : boolean = false;
function Apply (gscript : GunScript) {
gscript.ApplyToSharedAmmo();
cache = gscript.ammoSetUsed;
gscript.ammoSetUsed = val;
gscript.AlignToSharedAmmo();
}
function Remove (gscript : GunScript) {
gscript.ApplyToSharedAmmo();
gscript.amm... |
const GreatSageMatchingHeaven = require('../10-BMR/GreatSageMatchingHeaven');
class GreatSageMatchingHeaven2 extends GreatSageMatchingHeaven {}
GreatSageMatchingHeaven2.code = '25107';
module.exports = GreatSageMatchingHeaven2;
|
/*
* This file is part of the CatLib package.
*
* (c) Yu Bin <support@catlib.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* Document: http://catlib.io/
*/
using System;
using System.Collections.Generic;
namespace CatLib
... |
package assignment2017;
import assignment2017.codeprovided.Connect4Displayable;
import assignment2017.codeprovided.Connect4GameState;
import assignment2017.codeprovided.Connect4Player;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
import ... |
<?php defined("SYSPATH") or die("No direct script access.") ?>
<ul class="g-metadata">
<? foreach($metadata as $info): ?>
<li>
<strong class="caption"><?= $info["label"] ?></strong> <?= $info["value"] ?>
</li>
<? endforeach; ?>
</ul>
|
<?php
declare(strict_types=1);
namespace Eonx\TestUtils\Stubs\Vendor\Illuminate\Container;
use Illuminate\Container\Container;
/**
* @codeCoverageIgnore
*/
class ContainerStub extends Container
{
/**
* Stores bindings that were made in the container for comparisons during testing.
*
* @var mixed... |
from os import getenv
from os.path import exists
from dotenv import load_dotenv
load_dotenv("local.env" if exists("local.env") else None)
class Config:
api_id = int(getenv("API_ID", "0"))
api_hash = getenv("API_HASH")
bot_token = getenv("BOT_TOKEN")
session = getenv("SESSION", "session")
owner_id... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.