text stringlengths 3 1.05M |
|---|
#include "zobrist.h"
#include "move.hpp"
enum class NodeType
{
EXACT,
LOWERBOUND,
UPPERBOUND
};
struct TTData
{
ZobristHash hash;
int value;
size_t depth;
Move bestMove;
NodeType nt;
};
class TranspositionTable
{
size_t size_;
TTData *data_;
public:
TranspositionTable(size... |
/*
* (C) Copyright 2013 ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an intergo... |
# coding: utf-8
"""
ThingsBoard REST API
For instructions how to authorize requests please visit <a href='http://thingsboard.io/docs/reference/rest-api/'>REST API documentation page</a>. # noqa: E501
OpenAPI spec version: 2.0
Contact: info@thingsboard.io
Generated by: https://github.com/swagger-... |
const langCheck = require("../core/lang.check");
const botSend = require("../core/send");
const db = require("../core/db");
const logger = require("../core/logger");
// --------------------
// Handle stop command
// --------------------
module.exports = function(data)
{
//
// Disallow this command in Direct... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__wchar_t_connect_socket_w32_spawnv_17.c
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-17.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: connect_socket Read data ... |
__author__ = 'mpetyx'
from django.contrib import admin
from .models import OpeniProduct
class ProductAdmin(admin.ModelAdmin):
pass
admin.site.register(OpeniProduct, ProductAdmin)
|
/*
* This header is generated by classdump-dyld 1.5
* on Wednesday, April 28, 2021 at 9:09:45 PM Mountain Standard Time
* Operating System: Version 14.5 (Build 18L204)
* Image Source: /System/Library/PrivateFrameworks/TimeSync.f... |
# -*- coding: utf-8 -*-
# Copyright 2014 OpenMarket Ltd
#
# 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 l... |
#!/usr/bin/env python2
#
# Copyright (c) 2005-2007 Niels Provos <provos@citi.umich.edu>
# Copyright (c) 2007-2012 Niels Provos and Nick Mathewson
# All rights reserved.
#
# Generates marshaling code based on libevent.
# TODO:
# 1) use optparse to allow the strategy shell to parse options, and
# to allow the instant... |
# coding: utf-8
"""
Seldon Deploy API
API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501
OpenAPI spec version: v1alpha1
Contact: hello@seldon.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint... |
"use strict";
module.exports = {
up: (queryInterface, Sequelize) =>
queryInterface.addConstraint("groups", ["leaderId"], {
type: "foreign key",
name: "group_belongs_to_leader",
references: {
table: "users",
field: "id"
},
onDelete: "set null",
onUpdate: "cascad... |
"""Base Test Design for LocalEGA Inbox Scenario 3.
For this test we are aiming to upload and rename an encrypted file.
Scenario 3: Upload an encrypted file and rename file without reconnecting.
"""
import os
import paramiko
from ruamel.yaml import YAML
from locust import Locust, TaskSet, task
from common import log_f... |
# coding: utf-8
import random
from pypy import conftest
from pypy.objspace.std import bytearrayobject
class DontAccess(object):
pass
dont_access = DontAccess()
class AppTestBytesArray:
def setup_class(cls):
cls.w_runappdirect = cls.space.wrap(conftest.option.runappdirect)
def tweak(w_bytearr... |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6c6cf776"],{"014b":function(e,t,n){"use strict";var r=n("e53d"),a=n("07e3"),i=n("8e60"),s=n("63b6"),o=n("9138"),c=n("ebfd").KEY,u=n("294c"),l=n("dbdb"),f=n("45f2"),d=n("62a0"),p=n("5168"),m=n("ccb9"),h=n("6718"),_=n("47ee"),v=n("9003"),b=n("e4ae"),g=n("f... |
/*
This code implements one part of functonality of
free available library PL/Vision. Please look www.quest.com
Original author: Steven Feuerstein, 1996 - 2002
PostgreSQL implementation author: Pavel Stehule, 2006
This module is under BSD Licence
History:
1.0. first public version 13. March 2006
*/
#... |
/*
* Copyright (c) 2015-2025 Industrial Technology Research Institute.
*
* 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
... |
// This file was procedurally generated from the following sources:
// - src/invalid-private-names/call-expression-bad-reference.case
// - src/invalid-private-names/default/cls-expr-field-initializer.template
/*---
description: bad reference in call expression (Invalid private names should throw a SyntaxError, class fi... |
import os
from setuptools import find_packages, setup
# Package meta-data.
NAME = 'redux'
DESCRIPTION = ''
URL = 'https://github.com/rogthedodge/redux'
EMAIL = 'rogthedodge@gmail.com'
AUTHOR = 'Roger Holmes'
# What packages are required for this module to be executed?
REQUIRED = [
'falcon==1.2.0',
'psycopg2=... |
import matplotlib
import torch
from torch.autograd import Variable
from torch.autograd.function import InplaceFunction
import torch.nn.functional as F
import torch.utils.data as Data
import matplotlib.pyplot as plt
import numpy as np
import imageio
torch.manual_seed(1)
x = torch.unsqueeze(torch.linspace(-1, 1, 100)... |
# -*- coding: utf-8 -*-
import scrapy
class MultipleQuotesPaginationSpider(scrapy.Spider):
name = "multiple-quotes-pagination"
allowed_domains = ["toscrape.com"]
start_urls = ['http://quotes.toscrape.com']
def parse(self, response):
self.log('I just visited: ' + response.url)
for quot... |
import React, { Fragment } from "react";
import { useInputValue } from "../../hooks/useInputValue";
import { Error, Form, Input, Title } from "./styles";
import { SubmitButton } from "../SubmitButton";
export const UserForm = ({ disabled, error, onSubmit, title }) => {
const email = useInputValue("");
const passwo... |
/*
* ConvPoolLayer.h
* Francesco Conti <f.conti@unibo.it>
*
* Copyright (C) 2015 ETH Zurich, University of Bologna
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*/
#ifndef CONVLAYER_H
#define CONVLAYER_H
#ifnd... |
# The goal is check if define number is even or odd.
n = int(input('Entering a whole number: '))
if (n % 2) == 0:
print('Even')
else:
print('Odd') |
import os
from core.config import HotSOSConfig
from core.plugins.system import SystemChecksBase, SYSCtlHelper
class SystemChecks(SystemChecksBase):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self._cached_fs_sysctl = None
def _get_values_prioritised(self, config, ... |
import os
import pytest
from envbox import get_environment, PRODUCTION, import_by_environment
def test_get_environment():
env = get_environment()
assert env.is_development
assert not env.is_production
env_var = 'MY_ENV'
os.environ[env_var] = PRODUCTION
env = get_environment(detectors_op... |
#include <deque>
#include <stdint.h>
#include <mutex>
struct Point
{
int32_t x;
int32_t y;
};
enum GameMode
{
PLAYING,
GAMEOVER
};
enum KeyInput
{
NONE,
KEY_W,
KEY_A,
KEY_S,
KEY_D,
KEY_SPACE,
KEY_QUIT
};
class SnakeGame
{
public:
SnakeGame(int32_t w, int32_t h, int32_... |
#include <stdio.h>
int pop(int op)
{
int i=0;
for(;i<op;++i)
{
printf("%d",i);
}
}
|
/*
* This header is generated by classdump-dyld 1.5
* on Wednesday, April 28, 2021 at 9:07:14 PM Mountain Standard Time
* Operating System: Version 14.5 (Build 18L204)
* Image Source: /System/Library/PrivateFrameworks/WeatherFou... |
/*
Copyright 2015 OpenMarket Ltd
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 to in writing, softwar... |
Ext.namespace("gxp.form");
gxp.form.ColorField = Ext.extend(Ext.form.TextField, {cssColors: {aqua: "#00FFFF", black: "#000000", blue: "#0000FF", fuchsia: "#FF00FF", gray: "#808080", green: "#008000", lime: "#00FF00", maroon: "#800000", navy: "#000080", olive: "#808000", purple: "#800080", red: "#FF0000", silver: "#C0C0... |
# Copyright 2018 The Cirq Developers
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... |
import string
import random
import pyperclip
class Credentials:
"""Class that generates new instances of credentials"""
use_credentials_list=[]
def __init__(self,account,username,password):
self.account=account
self.username=username
self.password=password
def save_credential... |
/* Generated by RuntimeBrowser
Image: /System/Library/Frameworks/CoreMotion.framework/CoreMotion
*/
@interface CMExerciseMinute : NSObject {
CMExerciseMinuteInternal * _internal;
}
@property (nonatomic, readonly) CMExerciseMinuteInternal *_internal;
+ (bool)isExerciseMinuteAvailable;
+ (id)maxExerciseMinuteD... |
'use strict';
const EventEmitter = require('events'),
net = require('net');
const TransportStream = require('./TransportStream');
// @TODO: Refactor this to be its one node module
// see: arpa/telnet.h
const IAC = 255;
const DONT = 254;
const DO = 253;
const WONT = 252;
const WILL = 251;
const ... |
def tamper(payload, **kwargs):
retval = ""
encoder = "/**/"
for char in payload:
if char == " ":
char = encoder
retval += char
else:
retval += char
return retval |
import router from './router'
import store from './store'
// import { Message } from 'element-ui'
import NProgress from 'nprogress' // progress bar
import 'nprogress/nprogress.css' // progress bar style
import { getToken } from '@/utils/auth' // get token from cookie
import getPageTitle from '@/utils/get-page-title'
N... |
import React from "react";
import {Animation, Entity} from "aframe-react";
export default props => {
let animation = props.voldemortVisible ? "" :
( <a-animation attribute="rotation"
dur="1000"
to="0 0 90"
repeat="0.5"></a-ani... |
__author__ = "Kaustav Basu"
'''
Please read the papers under Research, to better grasp the concept of Identifying Codes.
This program computes the O(log n) Approximate Identifying Code Set for a given graph.
I utilize the Greedy Hitting Set Problem to obtain the approximate solution.
'''
# Packages required in this... |
' use strict'
var arrayOfEmployee = [];
var savedData = localStorage.getItem("strArrayOfEmployee");
var parseStrArrayOfEmployee = JSON.parse(savedData);
var cardContainer = document.getElementById("card_container");
if (parseStrArrayOfEmployee!= null) {
for (let index = 0; index < parseStrArrayOfEmploye... |
/**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/OfficeImport.framework/OfficeImport
*/
#import <OfficeImport/OADProperties.h>
__attribute__((visibility("hidden")))
@interface ODDLayoutVariablePropertySet : OADProperties {
@private
int mDirection; // 12 = 0xc
B... |
#!/usr/bin/env python
# coding=utf-8
import os
import sys
from rancher_api.api_endpoint import APIEndpoint
if __name__ == '__main__':
try:
rancher_base_url = os.environ.get('RANCHER_BASE_URL')
access_key = os.environ.get('RANCHER_ACCESS_KEY')
secret_key = os.environ.get('RANCHER_SECRET_... |
var data = {
"body": "<circle cx=\"15.5\" cy=\"9.5\" r=\"1.5\" fill=\"currentColor\"/><circle cx=\"8.5\" cy=\"9.5\" r=\"1.5\" fill=\"currentColor\"/><path d=\"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8s8 3.58 8 8s-3.58 8-8 8zm4.41-6.11a.745.... |
/*
* WeaponObjectMEssage6.h
*
* Created on: 01/05/2012
* Author: victor
*/
#ifndef WEAPONOBJECTMESSAGE6_H_
#define WEAPONOBJECTMESSAGE6_H_
#include "TangibleObjectMessage6.h"
class WeaponObjectMessage6 : public TangibleObjectMessage6 {
public:
WeaponObjectMessage6(TangibleObject* tano)
: TangibleObjec... |
"""Python wrappers around TensorFlow ops.
This file is MACHINE GENERATED! Do not edit.
Original C++ source file: test_ops.cc
"""
import collections
from tensorflow.python import pywrap_tfe as pywrap_tfe
from tensorflow.python.eager import context as _context
from tensorflow.python.eager import core as _core
from ten... |
/* global describe, it, require */
'use strict';
// MODULES //
var // Expectation library:
chai = require( 'chai' ),
// Deep close to:
deepCloseTo = require( './utils/deepcloseto.js' ),
// Module to be tested:
ekurtosis = require( './../lib/array.js' );
// VARIABLES //
var expect = chai.expect,
assert = ch... |
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# by Samuel Volchenboum
import sys
import cPickle
import time
from PeptideFragmentSingleton import PeptideFragment # from Gene Selkov
import bisect
import os
os.environ["LD_LIBRARY_PATH"] = os.environ["LD_LIBRARY_PATH"] + ":" + "."
import itertools # built in to 2.6
from x... |
$(document).ready(function() {
// Hide alerts
$('.alert:not(".alert-dismissible")').each(function(){
$(this).delay(4000).slideUp(200);
});
//Delete Posts
$('.delete-post').on('click', function(evt){
evt.preventDefault();
var slug = $(this).data('slug');
var postsCount = Number($("#posts_coun... |
/*
* This header is generated by classdump-dyld 1.5
* on Tuesday, November 10, 2020 at 10:21:20 PM Mountain Standard Time
* Operating System: Version 14.2 (Build 18K57)
* Image Source: /System/Library/PrivateFrameworks/ShareShee... |
# -*- coding: utf-8 -*-
import types
from distutils.util import strtobool
from lektor.builder import Artifact
from lektor.context import get_ctx
from lektor.pluginsystem import Plugin
from lektor.reporter import reporter
def render_template_into(self, template_name, this, **extra):
"""Render a template into the... |
/*
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
*
* The MIT License
*
* 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 Software without restriction, including without limitation the... |
import logging
from dataclasses import dataclass
from pprint import pprint
from typing import List
from unittest import TestCase
import ffmpeg
import pytest
from pytube import YouTube
from foxylib.tools.google.youtube.pytube.pytube_tool import PytubeTool
from foxylib.tools.log.foxylib_logger import FoxylibLogger
cl... |
import unittest
from databuilder.models.user import User
from databuilder.models.table_owner import TableOwner
from databuilder.models.neo4j_csv_serde import RELATION_START_KEY, RELATION_START_LABEL, RELATION_END_KEY, \
RELATION_END_LABEL, RELATION_TYPE, RELATION_REVERSE_TYPE
db = 'hive'
SCHEMA = 'BASE'
TABLE =... |
/*
* Copyright (c) 2020-2021 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
* 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 Software without restriction, including without limitation the
* ri... |
from .exceptions import ServerResponseError, EndpointUnavailableError, ItemTypeNotAllowed
from functools import wraps
import logging
try:
from distutils2.version import NormalizedVersion as Version
except ImportError:
from distutils.version import LooseVersion as Version
logger = logging.getLogger('tableau.e... |
"""
Overview
===============================================================================
+----------+------------------------------------------------------------------+
| Path | PyPoE/poe/file/dat.py |
+----------+------------------------------------------------------... |
import {Navigation} from 'react-native-navigation';
import {Provider} from 'react-redux';
import Login from './Login';
import Home from './Home';
import Top from './Top';
import store from '../store';
import { gestureHandlerRootHOC } from 'react-native-gesture-handler';
import CreatePosition from './CreatePosition';
im... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.isHorizontal = isHorizontal;
exports.getAnchor = getAnchor;
exports.default = exports.styles = void 0;
var _extends2 = _interopRequireDefault(re... |
import{r as i,h as e,H as n}from"./p-cc373a46.js";import{f as a,d}from"./p-92ce0ad8.js";const s=class{constructor(n){i(this,n),this.fields='[{"id":1,"name":"Applications :","children":[{"id":2,"name":"Calendar : app"},{"id":3,"name":"Chrome : app"},{"id":4,"name":"Webstorm : app"}]},{"id":5,"name":"Documents :","childr... |
/*
* IOAPIC emulation logic - common bits of emulated and KVM kernel model
*
* Copyright (c) 2004-2005 Fabrice Bellard
* Copyright (c) 2009 Xiantao Zhang, Intel
* Copyright (c) 2011 Jan Kiszka, Siemens AG
*
* This library is free software; you can redistribute it and/or
* modify it under the terms... |
import logging
from flat import Aggregator
if __name__ == '__main__':
logging.basicConfig(level=logging.INFO)
agg = Aggregator()
# agg.send_push_notifications(
# {"title": "Dario Varotto published a new content",
# "body": "xkcd: GDPR"},
# )
agg.send_push_history()
|
const request = require('supertest');
const workflowHelper = require('../../helpers/workflow');
const { user } = require('../../data/profiles');
const ids = require('../../data/ids');
const assertTasks = require('../../helpers/assert-tasks');
describe('Open tasks for a model', () => {
before(() => {
return workf... |
class Solution:
def shipWithinDays(self, weights: List[int], D: int) -> int:
|
import Page from "../page"
const PAGE_URL = "/locations/new"
class CreateNewLocation extends Page {
get form() {
return browser.$(".form-horizontal")
}
get createButton() {
return browser.$('//button[contains(text(),"Save Location")]')
}
get nameRequiredError() {
return browser.$('//span[conta... |
/**
* @license Copyright 2014 Google Inc. All rights reserved.
* Use of this source code is governed by the Apache license that can be
* found in the LICENSE file.
*/
/**
* @constructor
* @struct
* @param {HTMLCanvasElement} selectionCanvas
* @param {ZoomManager} zoomManager
*/
function SelectionCanvasManag... |
import pickle
from networkx import DiGraph
from memory_profiler import profile
from app.decorators.datetime_decorators import logstamp
from app.decorators.number_decorators import fmt_n
from app.friend_graphs.bq_grapher import BigQueryGrapher
class BigQueryListGrapher(BigQueryGrapher):
@profile
def perform... |
var timeDelta = require('../lib/time-delta.js');
timeDelta.addLocale('jmc_tz', {
"long": {},
"narrow": {},
"short": {
"years": {
"other": "{0} y"
},
"months": {
"other": "{0} m"
},
"weeks": {
"other": "{0} w"
},
"day... |
#!/usr/bin/env python
#
# 'idf.py' is a top-level config/build command line tool for ESP-IDF
#
# You don't have to use idf.py, you can use cmake directly
# (or use cmake in an IDE)
#
#
#
# Copyright 2018 Espressif Systems (Shanghai) PTE LTD
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may n... |
/*
* Copyright (c) 2010 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributin... |
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
#
# Copyright © 2012 New Dream Network, LLC (DreamHost)
#
# Author: Doug Hellmann <doug.hellmann@dreamhost.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 o... |
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M17.75 7L14 3.25l-10 10V17h3.75l10-10zm2.96-2.96c.39-.39.39-1.02 0-1.41L18.37.29c-.39-.39-1.02-.39-1.41 0L15 2.25 18.75 6l1.96-1.96z" /><path fillOpacity=".36" d="M0 20h24v4H0z" /></g>
, 'BorderColor');
|
import sqlite3
from datetime import datetime, timedelta
from src.db.db_hardcoded_sql import *
from src.backend.travel import get_driving_to_resort_data_from_api, get_flying_to_resort_data_from_api
from src.backend.weather import get_weather_info_from_api
from src.backend.config import ConfigFunctions
class DbHelpers(... |
import ymake
from _common import stripext, rootrel_arc_src
def is_arc_src(src, unit):
return (
src.startswith('${ARCADIA_ROOT}/') or
src.startswith('${CURDIR}/') or
unit.resolve_arc_path(src).startswith('$S/')
)
def to_build_root(path, unit):
if is_arc_src(path, unit):
re... |
'use strict'
const path = require('path')
const utils = require('./utils')
const webpack = require('webpack')
const config = require('../config')
const merge = require('webpack-merge')
const baseWebpackConfig = require('./webpack.base.conf')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const HtmlWebpackPlug... |
// This file is part of CPAchecker,
// a tool for configurable software verification:
// https://cpachecker.sosy-lab.org
//
// SPDX-FileCopyrightText: 2007-2020 Dirk Beyer <https://www.sosy-lab.org>
//
// SPDX-License-Identifier: Apache-2.0
extern int __VERIFIER_nondet_int();
int main()
{
int lk1 = 0; // lock vari... |
/*
* %CopyrightBegin%
*
* Copyright Ericsson AB 2000-2021. 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 License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... |
# -*- coding: utf-8 -*-
# pylint: disable=expression-not-assigned,line-too-long
"""Create single view visualization mapping parameter values to an area scale resembling a (quality) pie."""
import os
import sys
DEBUG_VAR = "PIEMAP_DEBUG"
DEBUG = os.getenv(DEBUG_VAR)
ENCODING = "utf-8"
ENCODING_ERRORS_POLICY = "ignore"... |
#!/usr/bin/python3
# -*- coding: utf-8 -*-
'''
Author : Nasir Khan (r0ot h3x49)
Github : https://github.com/r0oth3x49
License : MIT
Copyright (c) 2018 Nasir Khan (r0ot h3x49)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Sof... |
import { fetchChannels, fetchMessagesForChannel } from "../api-calls/calls.js";
import { state } from "../state/state.js";
import { sendMessage, channelClicked, addChannel } from "../handlers/handlers.js";
export const homePage = async () => {
const el = document.createElement('div');
el.style = 'height:100%;';
... |
/* %%%%%%%%%%%%%%%%%%%% (c) William Landi 1991 %%%%%%%%%%%%%%%%%%%%%%%%%%%% */
/* Permission to use this code is granted as long as the copyright */
/* notice remains in place. */
#include <stdio.h>
#include "definitions.h"
#include "stats.h"
#include "common.h"
#include "io.h"
BOOL absolute_standing_lt(TEAMS_STATS in... |
import axios from "axios";
import setAuthToken from "../../../utils/setAuthToken";
import jwt_decode from "jwt-decode";
import { GET_ERRORS, SET_CURRENT_USER } from "../../../core/types";
export const OauthUser = creds => dispatch => {
axios
.post("/api/users/oauth", creds)
.then(res => {
const token =... |
import React from 'react';
import './Cardstyles.css';
import axios from 'axios';
import { Card, CardBody, CardTitle } from 'reactstrap';
function formatDate (input) {
var datePart = input.match(/\d+/g),
year = datePart[0], // get only two digits
month = datePart[1], day = datePart[2];
return day+'/'+month+'/'... |
#pragma once
#include "../utils/utils.h"
namespace Ui
{
class MenuStyle: public QProxyStyle
{
Q_OBJECT
public:
virtual int pixelMetric(PixelMetric _metric, const QStyleOption* _option = 0, const QWidget* _widget = 0 ) const;
};
class ContextMenu : public QMenu
{
Q_OBJECT... |
//产生随机数
function randomArr(num) {
var arr = [];
for( var i = 0; i < num; i++) {
arr.push(Math.floor(Math.random() * num + 1));
}
return arr;
};
//冒泡排序最快的
function bubbleSort(arr) {
console.time('冒泡耗时');
var i = arr.length - 1; //最后一个元素不变
while( i > 0) {
var pos = 0;
for(var j = 0; j < i; j++) {
if(ar... |
/* eslint-disable react/jsx-props-no-spreading */
import React from 'react';
import PropTypes from 'prop-types';
import { Route, Redirect } from 'react-router-dom';
import AuthLayout from '~/pages/_layouts/auth';
import DefaultLayout from '~/pages/_layouts/default';
export default function RouterWrapper({
component... |
/************************************************************************/
/* Projektname: DCF77 Uhr */
/* Autor: Maurice T */
/* Datei: Main.c */
/******************... |
# SPDX-FileCopyrightText: 2020 - Sebastian Ritter <bastie@users.noreply.github.com>
# SPDX-License-Identifier: Apache-2.0
'''
The blood of java.io package.
full implemented:
* none
parts implemented:
* java.io.File
non implemented:
* all other
'''
|
'use strict';
/**
* @ngdoc function
* @name sbAdminApp.controller:MainCtrl
* @description
* # MainCtrl
* Controller of the sbAdminApp
*/
angular.module('sbAdminApp')
.controller('ImportCtrl', function ($scope, $http) {
$scope.send = function () {
$http.get('http://localhost:9000/api/thing... |
const fs = require('fs')
const { REST } = require('@discordjs/rest')
const { Routes } = require('discord-api-types/v9');
const { clientId, guildId, token } = require('../config.json')
const commands = [];
const commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js'))
for (const file of command... |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require... |
from django.urls import path
from .views import clientRegister, ClientCheckout
app_name = 'god'
urlpatterns = [
path('', clientRegister, name='client'),
path('clientCheckout/', ClientCheckout, name='checkout')
]
|
/*
Dwarf Therapist
Copyright (c) 2009 Trey Stout (chmod)
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 Software without restriction, including without limitation the rights
to use, copy, modify, merge, p... |
/******************************************************************************
*
* THE PRESENT CODE AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION
* REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
* AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
* INDIRECT OR CONSEQUENTIAL DAMAG... |
let express = require('express')
let bookStatsController = require('./controllers/bookStatsController')
let router = express.Router()
router.route('/').get((req, res) => {
return res.json({message: 'Welcome to this delicious and very vast book service!'})
})
router.route('/searchBook').get(bookStatsController.sear... |
var searchData=
[
['test_730',['TEST',['../namespaceemulator_1_1system_1_1cpu_1_1instruction.html#ab73cee2c5eed0fa7de283c49c4a4e40da8d0bde8da58256f1f05624d331dfdd44',1,'emulator::system::cpu::instruction']]]
];
|
#
# AES decrypt - Decrypt selected region with AES
#
# Copyright (c) 2019, Nobutaka Mantani
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must reta... |
'''
test agent_config
'''
import pytest
from tests.checker import check
from tenable.errors import UnexpectedValueError, ForbiddenError
@pytest.mark.vcr()
def test_agentconfig_edit_scanner_id_typeerror(api):
'''
test to raise exception when type of scanner_id param does not match the expected type.
'''
... |
/** Dpaa1EthernetPhyPrivate.h
DPAA1 Ethernet PHY private common declarations
Copyright (c) 2016, Freescale Semiconductor, Inc. All rights reserved.
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this dist... |
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
import React from 'react'
const Logo = ({ className }) => (
<svg preserveAspectRatio={true} className={className} viewBox="0 0 1800px 100px">
<path d="M91.5083333,71 C91.0083333,69.8 90.5083333,68.5 90.0083333,67.4 C89.2083333,65.6 88.4083333,63.9 87.7083333,62.3 L87.6083333,62.2 C80.7083333,47.2 73.3083333,32 65.5... |
from datetime import datetime
import hikari
import tanjun
from avgamah.core.client import Client
from avgamah.utils.buttons import DELETE_ROW
from models import MemberJoinModel
from . import permissions
set_welcome_component = tanjun.Component()
@set_welcome_component.with_slash_command
@tanjun.with_own_permissio... |