text
stringlengths
3
1.05M
#include "protected/queue.h" #include <string.h> #include "../test/stubs.h" #include "public/collections.h" #include "public/assert.h" bool Queue_init(Queue *queue, size_t elem_size); void Queue_cleanup(Queue *queue); // TODO: Version Queue *Queue_alloc(size_t elem_size) { ASSERT(elem_size > 0); Queue *q...
from rest_framework import generics from rest_framework.authtoken.views import ObtainAuthToken from rest_framework.settings import api_settings from rest_framework import status from rest_framework.response import Response from rest_framework.views import APIView from rest_framework.permissions import IsAuthenticated f...
/* * Copyright (c) 2008-2016, Massachusetts Institute of Technology (MIT) * 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 retain the above copyrig...
define({ "_widgetLabel": "Bảng Biểu Liên quan", "searchHeaderText": "Tìm kiếm địa chỉ hoặc xác định vị trí trên bản đồ", "addressInfowindowTitle": "Vị trí Tìm kiếm", "mouseOverTooltip": "Bấm để xem (các) biểu đồ", "errMsgNoResultsFound": "Không tìm thấy kết quả", "errMsgNoFeaturesFound": "Không tìm thấy đối...
function setGridHtml(outdocHtml, swEdit) { var outdocHtmlAux = outdocHtml; outdocHtmlAux = stringReplace("\\x0A", "(n /)", outdocHtmlAux); //\n 10 outdocHtmlAux = stringReplace("\\x0D", "(r /)", outdocHtmlAux); //\r 13 outdocHtmlAux = stringReplace("\\x09", "(t /)", outdocHtmlAux); //\t 9 var arr...
#include <stdio.h> #include <math.h> int main(){ long int p_low, p; int i; while (scanf("%ld", &p) > 0){ p_low = (long int) ceil(p / 9.); for (i = 0; p >= 1; i++){ if (p_low <= 1 && p >= 1) printf("Stan wins.\n"); else if (((long int) ceil(p_low / 2.)) <= 1 && p_low-1 >= 1) printf("Ollie wi...
# -*- coding: utf-8 -*- # 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, software...
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the Apache 2.0 License. from infra.network import PrimaryNotFound import time import math import infra.network import infra.proc import infra.e2e_args import infra.checker import http import suite.test_requirements as reqs from ccf.clients imp...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed May 15 19:29:10 2019 @author: skoebric """ import pandas as pd keep_columns = {'control_reg':'first', 'control_reg_id':'first', 'state':'first', 'state_id':'first', 'departamento':'first'...
/* eslint-disable no-undef */ const { describe, it } = require('mocha'); const assert = require('assert'); describe('InteractionRecorderOverlay', () => { describe('#inject()', () => { it('should record clicks on body', async () => { await browser.url('/'); const result = await browser.execute(() => {...
from .home import HomeView from .create_list import CreateListView from .login import LoginView from .signup import SignupView
from django.contrib.auth.models import User from django.db import models from django.db.models.signals import post_save from sorl.thumbnail import ImageField from companions.models import Application def profile_image_upload_location(instance, filename): return "user/%s/profile/%s" % (instance.user.id, filename)...
#!/usr/bin/env python """ ########################### Testing Package Data Module ########################### """ # -*- coding: utf-8 -*- # # rtk.testing.Testing.py is part of The RTK Project # # All rights reserved. # Copyright 2007 - 2017 Andrew Rowland andrew.rowland <AT> reliaqual <DOT> com # # Redistributio...
'use strict'; const express = require('express'); const Penjualan = require('../models/Penjualan'); const router = express.Router(); const uuid = require('node-uuid'); router.get('/penjualan', function(req, res, next) { var page = req.query.page - 1; var count = req.query.count; Penjualan .find() .popu...
/** * Route Mappings * (sails.config.routes) * * Your routes map URLs to views and controllers. * * If Sails receives a URL that doesn't match any of the routes below, * it will check for matching files (images, scripts, stylesheets, etc.) * in your assets directory. e.g. `http://localhost:1337/images/foo.jpg`...
r""" Lists of graphs AUTHORS: - Robert L. Miller (2007-02-10): initial version - Emily A. Kirkman (2007-02-13): added show functions (to_graphics_array and show_graphs) """ #***************************************************************************** # Copyright (C) 2007 Robert L. Miller <rlmillster@gm...
import ast import inspect import sys from typing import Callable, Dict, Union, List, get_type_hints from .expression import Expr, Head, symbol from ._symbol import Symbol NoneType = type(None) LAMBDA = Symbol._reserved("<lambda>") AST_BINOP_MAP = { ast.Add: Symbol._reserved("+"), ast.Sub: Symbol._reserved("-...
'use strict'; const faker = require('faker'); const io = require('socket.io-client'); const host = 'http:/localhost:3003'; const connectionFromCaps = io.connect(`${host}/caps`); const store = 'acme-widgets'; connectionFromCaps.emit('join', store); connectionFromCaps.emit('getAll', store) connectionFromCaps.on('mes...
// Copyright (c) 2012-2014 The Bitcoin Core developers // Copyright (c) 2014-2017 The Dash Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef ALLGAMESCOIN_VERSION_H #define ALLGAMESCOIN_VERSION_H /** * net...
from src.article_summarizer import ArticleSummarizer from src.corpus_reader import CorpusReader def reducio(article, sentence_number): corpus_reader = CorpusReader() article = article.replace('\n', ' ').replace('\r', '') summary = ArticleSummarizer(article, corpus_reader.document_number, ...
import granuleMetadataReducer from '../granuleMetadata' import { UPDATE_GRANULE_METADATA } from '../../constants/actionTypes' const initialState = { allIds: [], byId: {} } describe('INITIAL_STATE', () => { test('is correct', () => { const action = { type: 'dummy_action' } expect(granuleMetadataReduce...
const converter = (function() { const _vals = [ ["m", 1000], ["d", 500], ["c", 100], ["l", 50], ["x", 10], ["v", 5], ["i", 1] ]; const _repeat = function(char, times) { return times ? Array(times) .fill(char) .reduce((memo, val) => memo + val) : "";...
""" Operations to get Rockstar loaded up """ from __future__ import absolute_import #----------------------------------------------------------------------------- # Copyright (c) 2013, yt Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, ...
/** * Simple User-level Threads implementation in raw C compatible with IA-32 and * x86_64 instruction sets for the common caller/callee convention with frame * pointer enabled. * * This implementation will not work when compiled in GCC with the * -fno-frame-pointer compilation flag. * * This file extends the ...
import xlrd import numpy as np import matplotlib.pyplot as plt file_location = "Book1.xlsx" workbook = xlrd.open_workbook(file_location) first_sheet = workbook.sheet_by_index(0) x1 = [first_sheet.cell_value(i, 3) for i in range(50)] y1 = [first_sheet.cell_value(i, 4) for i in range(50)] x2 = [first_sheet.cell_value(i...
import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__(self, plotly_name="color", parent_name="scattergl.textfont", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
define( ["./group","../mixins/control","exports"], function(__dependency1__, __dependency2__, __exports__) { "use strict"; var FormGroupComponent = __dependency1__["default"] || __dependency1__; var ControlMixin = __dependency2__["default"] || __dependency2__; /* Form Select Syntax: {{...
# -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # 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...
import React, { Component } from "react" import Layout from "../components/layout" import Main from "../components/main" import Name from "../components/name" import Preview from "../components/preview" import "../styles/main.scss" import data from '../components/data' // import { // bbImg, // ttImg, // bttmImg...
import { selectItems, selectTickedItems, selectRemovedItems, } from "./selectors"; describe("item selectors", () => { const posState = { item: { items: ["test 1", "test 2"], tickedItems: ["test 1"], removedItems: ["test 2"], }, }; const negState = { item: { items: [], tickedItems:...
class First: ALIVE = "`Baka! Anata wa watashi ga shinu to omotta?`" class Eval: RUNNING = "**Expression:**\n```{}```\n\n**Running...**" ERROR = "**Expression:**\n```{}```\n\n**Error:**\n```{}```" SUCCESS = "**Expression:**\n```{}```\n\n**Success** | `None`" RESULT = "**Expression:**\n```{}```\n\n*...
function divideWithoutRemainder(input) { let count = parseInt(input[0]); let n1 = 0, n2 = 0, n3 = 0; for (let i = 1; i <= count; i++) { let n = parseInt(input[i]); // get input for each number // Increment if number falls within range if (n % 2 == 0) { n1++; } if (n % 3 ==...
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import logging from gmprocess.subcommands.lazy_loader import LazyLoader arg_dicts = LazyLoader("arg_dicts", globals(), "gmprocess.subcommands.arg_dicts") base = LazyLoader("base", globals(), "gmprocess.subcommands.base") ws = LazyLoader("ws", globals(), "gmproc...
from datetime import datetime, timedelta, timezone from pathlib import Path import pytest from python_on_whales import docker from python_on_whales.components.volume import VolumeInspectResult from python_on_whales.test_utils import get_all_jsons @pytest.mark.parametrize("json_file", get_all_jsons("volumes")) def t...
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. from typing import Any, Dict, Iterable, Optional, Tuple import torch from pytorch_lightning import LightningModule from torch.utils.d...
/* global describe beforeEach afterEach it */ import {expect} from 'chai'; import axios from 'axios'; import MockAdapter from 'axios-mock-adapter'; import configureMockStore from 'redux-mock-store'; import thunkMiddleware from 'redux-thunk'; import {me, logout} from './user'; import history from '../history'; const m...
# -*- coding: utf-8 -*- import pkg_resources try: __version__ = pkg_resources.get_distribution(__name__).version except: __version__ = 'unknown' # import only most import functionality for ~/.zipline/extension.py from zipline.data.bundles import register from .bundle import Pairs, create_bundle
/** * 删除公告 * @param id * @returns */ function delPlacard(id) { var url = "delplacard.action"; var args = { placardID: id } $.post(url, args,function(data) { if(data <=0) { //失败 alert('小喵开小差了,删除失败,请重试!') } else { //成功 window.location.reload(); } },'json') }
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/license */ CKEDITOR.lang['eo']={"editor":"RiĉTeksta Redaktilo","editorPanel":"Panelo de la RiĉTeksta Redaktilo","common":{"editorHelp":"Premu ALT 0 por helpilo","browseServer":"Foliumi e...
import React, {useEffect, useState, memo} from 'react'; import {StyleSheet, Text, View, ActivityIndicator} from 'react-native'; import {useParams, Link} from 'react-router-dom'; import {subscribe} from 'jstates-react'; import {LineChart, BarChart} from './Chart'; import {format, numberWithCommas, Box, L, V} from '../ut...
var search_data = { "index": { "searchIndex": [ "autoexposurelockwidget", "display: a lock icon with two states shows whether the camera's ae (auto exposure) is locked or not. usage: preferred aspect ratio: 1:1 interaction: tapping the lock icon will toggle the value of ae lock."...
'use strict'; const expect = require('chai').expect; /** * reverses a string and sets all the characters to upper or lower case * @param {string} [text=''] - the text to reverse and casify * @param {boolean} [lowerCase=true] - lower case or upper case * true: set the string to lower case * false: set the strin...
(function ($) { // USE STRICT "use strict"; //------------------------------------------------------- // Config Lightbox2 //------------------------------------------------------- try { lightbox.option({ 'resizeDuration': 200, 'wrapAround': true }) ...
prepare = exports; let processDialogEntries = function(dialogEntriesSource, dialogEntriesDestination, resource) { let dialogElementIndex = 0; for (let dialogElement of dialogEntriesSource) { if (typeof dialogElement === "object") { let dialogEntry = {}; dialogEntry.script = dialogElement.input + ".jazz"; ...
"""Alter OAuth2Token.token_type to Enum Revision ID: 82184d7d1e88 Revises: 5e2954a2af18 Create Date: 2016-11-10 21:14:33.787194 """ # revision identifiers, used by Alembic. revision = '82184d7d1e88' down_revision = '5e2954a2af18' from alembic import op import sqlalchemy as sa def upgrade(): connection = op.ge...
# Licensed under a 3-clause BSD style license - see LICENSE.rst # LOCAL from .. import exceptions from .. import tree from ....tests.helper import raises @raises(exceptions.W07) def test_check_astroyear_fail(): config = {'pedantic': True} field = tree.Field(None, name='astroyear') tree.check_astroyear('X2...
// The list of all feature policies including the sandbox policies. const all_features = document.featurePolicy.allowedFeatures(); // 'popups' is nonsensical in this test and it is not possible to test 'scripts' // within this test model. const ignore_features_for_auxilary_context = ["popups", "scripts"]; // Feature-...
import numpy as _np from math import sqrt as _sqrt from uncertainties import ufloat as _ufloat from uncertainties.core import Variable as _varu from sympy import symbols as _symbols from sympy import diff as _diff def chi_squared(xdata, ydata, popt, staterror, func): """ Calculates the reduced x^2 of a data s...
const { uuid } = require('lib/uuid.js'); const moment = require('moment'); const BaseModel = require('lib/BaseModel.js'); const Note = require('lib/models/Note.js'); const Tag = require('lib/models/Tag.js'); const Resource = require('lib/models/Resource.js'); const { enexXmlToMd } = require('./import-enex-md-gen.js'); ...
#ifndef __LISTENINGDATA_H_ #define __LISTENINGDATA_H_ #include <map> #include <list> #include "NacosString.h" #include "listen/Listener.h" #include "src/crypto//md5/md5.h" #include "src/log/Logger.h" namespace nacos{ class ListeningData { private: NacosString tenant; NacosString dataId; NacosString group;...
/* eslint-disable max-len, valid-jsdoc */ 'use strict'; const assert = require('assert'); const fs = require('fs'); const Ledger = require('ripplelib').Ledger; /** * @param ledger_index {Number} * Expects a corresponding ledger dump in $repo/test/fixtures/ folder */ function create_ledger_test(ledger_ind...
// Copyright (c) 2016 GeometryFactory (France). // All rights reserved. // // This file is part of CGAL (www.cgal.org). // 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 3 of the License, or (at your option) ...
// // FSXFinderStand.h // FinderStand // // Created by hetima on 2014/05/22. // Copyright (c) 2014 hetima. All rights reserved. // #import <AppKit/AppKit.h> @interface FSXFinderStand : NSObject @end
import React from 'react' import ReactDOM from 'react-dom' import App from './pages/App' ReactDOM.render(<App />, document.getElementById('app'))
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-12-17 04:45 from __future__ import unicode_literals from django.db import migrations, models import django_hstore.fields class Migration(migrations.Migration): dependencies = [ ('cmdb', '0001_initial'), ] operations = [ migrat...
/** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ // TODO: direct imports like some-package/src/* are bad. Fix me. import {getCurrentFiberOwnerNameInDevOrNull} from 'react-re...
import React, { Component } from 'react'; import { Route } from 'react-router'; import { Switch } from 'react-router-dom'; import OffCanvasMenu from './OffCanvasMenu'; import ProductsOverviewPage from './ProductsOverviewPage'; import Product from './Product'; import CustomerInfoFormPage from '../containers/CustomerInf...
import os import base64 import uuid import time import random import importlib import sqlalchemy from sqlalchemy.sql import text as sql_statement from Crypto import Random, Cipher from constants import * AES_BLOCKSIZE = 16 ## a basic set of functions interacting with your users database ## we use PDO to connect to y...
(function( factory ) { if ( typeof define === "function" && define.amd ) { define( ["jquery", "../jquery.validate"], factory ); } else if (typeof module === "object" && module.exports) { module.exports = factory( require( "jquery" ) ); } else { factory( jQuery ); } }(function( $ ) { /* * Translated default ...
const getModulePath = function (identifier) { return identifier.replace(/.*!/, '').replace(/\\/g, '/') } exports.filterModules = function (modules) { return modules.filter(module => module.name.indexOf('(webpack)') === -1) } exports.buildSortedModules = function (modules, sizeField) { let list = modules.slice()...
class Solution: def fourSum(self, nums: List[int], target: int) -> List[List[int]]: def twoSum(i,j): target2 = target - nums[i] - nums[j] left = j+1 right = n-1 while left < right: total = nums[left] + nums[right] if total == ta...
# AUTO GENERATED FILE - DO NOT EDIT from dash.development.base_component import Component, _explicitize_args class Gauge(Component): """A Gauge component. A Gauge component that points to a value between some range. Keyword arguments: - id (string; optional): The ID used to identify this compnent in Dash c...
# Copyright 2016 The TensorFlow Authors. 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 # # Unless required by applica...
"use strict"; const path = require("path"), config = require(path.join(__dirname, "..", "config.json")), compare = require(path.join(__dirname, "password.js")).compare, stores = require(path.join(__dirname, "stores.js")); /** * Login handler * * @method login * @param {String} username Username * @param {St...
# This is just Python which means you can inherit and tweak settings import os _basedir = os.path.abspath(os.path.dirname(__file__)) THREADS_PER_PAGE = 8 # General # These will need to be set to `True` if you are developing locally CORS = False debug = False # this is the secret key used by flask session managemen...
import torch from torch.utils import data from torchvision import transforms as T import os from PIL import Image import random import glob class CelebA(data.Dataset): """Dataset class for the CelebA dataset.""" def __init__(self, image_dir, transform, patch_size, mode, points, num_rand): self.image_...
import numpy as np INVALID = 'INVALID' NONSENSE = 'C1CC(Br)CCC1[ClH]' ASPIRIN='O=C(C)Oc1ccccc1C(=O)O' CELECOXIB='O=S(=O)(c3ccc(n1nc(cc1c2ccc(cc2)C)C(F)(F)F)cc3)N' IBUPROFEN='CC(C)Cc1ccc(cc1)[C@@H](C)C(=O)O' ETHANE = 'CC' PROPANE='CCC' BUTANE='CCCC' PENTANE = 'CCCCC' HEXANE = 'CCCCCC' METAMIZOLE='CC1=C(C(=O)N(N1C)C2=CC...
class SubrectangleQueries: def __init__(self, rectangle: List[List[int]]): self.d = rectangle def updateSubrectangle(self, row1: int, col1: int, row2: int, col2: int, newValue: int) -> None: for r in range(row1, row2+1): for c in range(col1, col2+1): self.d[r][c] = ...
// // Created by nick on 1/17/18. // #include <unistd.h> #include <stdlib.h> #include <omp.h> #include <stdio.h> int main() { int IS = 0; #pragma omp parallel for reduction(+:IS) for (int i = 1; i <= 10; i++) { IS = IS + i; } printf("%d", IS); }
scroll_active = true; function empty_field_and_submit() { var cf = document.getElementById('sendform'); var inpf = document.getElementById('inputform'); cf.chat_msgidnr.value = parseInt(cf.chat_msgidnr.value) + 1; cf.chat_message.value = inpf.chat_message.value; inpf.chat_message.value = ''; c...
''' Manage files in Azure Data Lake Storage Gen2 account. ''' from .... pyaz_utils import _call_az from . import metadata def create(account_key=None, account_name=None, auth_mode=None, connection_string=None, content_cache_control=None, content_disposition=None, content_encoding=None, content_language=None, content_...
/*Generated By KISSY Module Compiler*/ config({ 'dom/class-list': {requires: ['dom/base']} });
"""Core conversion of AMOS tokens to text""" import struct from AmosPy.extensions import extensions_table from AmosPy.token_reader import TokenReader def baseN(num, b, numerals="0123456789abcdefghijklmnopqrstuvwxyz"): return ((num == 0) and "0") or (baseN(num // b, b).lstrip("0") + numerals[num % b]) def readHe...
# Copyright The PyTorch Lightning team. # # 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 i...
#include <std.h> #include "../piratedefs.h" inherit ROOM; void create(){ ::create(); set_property("light",1); set_property("indoors",0); set_terrain(ROCKY); set_travel(FOOT_PATH); set_name("Inside the Canyon"); set_short("Inside the Canyon"); set_long("%^BOLD%^Inside the Canyon%^RESET%^\n" "You...
module.exports = [ { title: "自我面试-Java", collapsable: false, sidebarDepth: 0, children: [ ['Java-并发编程面试题', 'Java-并发编程面试题'], ['Java-JVM 虚拟机面试题', 'Java-JVM 虚拟机面试题'] ] } ];
/** * @license AngularJS v1.3.2 * (c) 2010-2014 Google, Inc. http://angularjs.org * License: MIT */ (function(window, angular, undefined) {'use strict'; /** * @ngdoc module * @name ngCookies * @description * * # ngCookies * * The `ngCookies` module provides a convenient wrapper for reading and writing brows...
#!/usr/bin/env python3 # lib/crypto.py try: import hmac import nacl.signing import nacl.exceptions import os def to_hex(b): return b.hex() except: import binascii import lopy4_hmac as hmac import os def to_hex(b): return binascii.hexlify(b) # signature info SIGN...
"""This is an auto-generated file. Modify at your own risk""" from typing import Awaitable, Any, Dict, List, Optional, Union, TYPE_CHECKING if TYPE_CHECKING: from cripy import ConnectionType, SessionType __all__ = ["Schema"] class Schema: """ This domain is deprecated. Status: Deprecated S...
from tcutils.wrappers import preposttest_wrapper from vn_test import MultipleVNFixture from vm_test import MultipleVMFixture from base import XmppBase from common.policy.config import ConfigPolicy from vn_test import VNFixture from vm_test import VMFixture import os import sys import test from tcutils.contrail_status_c...
import React from 'react'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; // impt enter import { logout } from '../../actions/auth'; // Loading to ensure the user is done loading before putting links in const Navbar = ({ auth: { isAuthenticated, load...
/* * Copyright (C) 2020 The Android Open Source 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 app...
{ 'targets': [ { 'target_name': 'kerberos', 'type': 'loadable_module', 'include_dirs': [ '<!(node -e "require(\'nan\')")' ], 'sources': [ 'src/kerberos.cc' ], 'xcode_settings': { 'MACOSX_DEPLOYMENT_TARGET': '10.12' }, 'conditions': [ ['OS=="m...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.selectCommand = exports.runCommand = exports.commandList = void 0; const chalk_1 = require("chalk"); const enquirer_1 = require("enquirer"); const global_context_1 = require("../context/global-context"); const handler_1 = require("../l...
version https://git-lfs.github.com/spec/v1 oid sha256:ac1552160b182ebb58193090b49141e2301681d880cab63288ca1eb98088be66 size 7780
/* See LICENSE file for copyright and license details. */ #include <ctype.h> #include <locale.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <strings.h> #include <time.h> #include <unistd.h> #include <X11/Xlib.h> #include <X11/Xatom.h> #include <X11/Xutil.h> #ifdef XINERAMA #include <X11/extens...
from lib import BaseTest import time import json import random import string import os import inspect import shutil try: import requests except ImportError: requests = None class APITest(BaseTest): """ BaseTest + testing aptly API """ aptly_server = None base_url = "127.0.0.1:8765" d...
""" WSGI config for fake_python project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_S...
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // // $NoKeywords: $ // //=============================================================================// #ifndef COMMON_FXC_H_ #define COMMON_FXC_H_ #include "common_pragmas.h" #include "common_hlsl_cpp_consts.h" #ifdef NV3X...
# https://github.com/python/cpython/blob/9863de0355caf23c44b708a5d68b603e135f7ae9/Lib/test/test_urlparse.py import unittest import scurl import warnings import pytest import sys import six if six.PY2: pytest.skip("Env is python2, skipping python3 tests", allow_module_level=True) RFC1808_BASE = "http://a/b/c/d;p?...
let utils = require('./utils'); let strValue = utils.stringValue; let moveAllTableRecords = utils.moveAllTableRecords; let beehive = global.beehive; let obsWithTheirGroupNotUpdated = new Map(); let obsWithPreviousNotUpdated = new Map(); function prepareObsInsert(rows, nextId) { let insert = 'INSERT INTO obs(obs_id,...
var callbackArguments = []; var argument1 = function (type) { callbackArguments.push(arguments) return tokenTypes.indexOf(type) !== -1; }; var argument2 = null; var argument3 = function (other) { callbackArguments.push(arguments) return _.contains(other, item); }; var argument4 = r_1; var argument5 ...
import torch import torch.nn as nn import torch.nn.functional as F from .BasePIFuNet import BasePIFuNet from .SurfaceClassifier import SurfaceClassifier from .DepthNormalizer import DepthNormalizer from .HGFilters import * from ..net_util import init_net from .Embedder import Embedder, get_embedder class HGPIFuNet(Ba...
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
// Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved. //----------------------------------------------------------------------------- // // You may not use the identified files except in compliance with the Apache // License, Version 2.0 (the "License.") // // You may obtain a copy of the Lic...
# Template configuration file for Tau->NP 2 stage # Ben Cook (bcook@cfa.harvard.edu) ############################################### # CONFIG FILE for mock run # MOCK Galaxy 1: DETAILS HERE # MOCK Galaxy 2: DETAILS HERE # MODEL Galaxy: DETAILS HERE import pcmdpy as ppy import multiprocessing import time import nump...
var searchData= [ ['sd_5fcs_745',['SD_CS',['../_lo_ra_interface_forwarding_test___base_8ino.html#a7e2d8ef8f0724f23ce84b1e7d0c171d9',1,'SD_CS():&#160;LoRaInterfaceForwardingTest_Base.ino'],['../_lo_ra_range_test___base_8ino.html#a7e2d8ef8f0724f23ce84b1e7d0c171d9',1,'SD_CS():&#160;LoRaRangeTest_Base.ino'],['../simple_s...
/** * A tool for displaying and filtering system events. * * @module moodle-report_eventlist-eventfilter */ /** * A tool for displaying and filtering system events. * * @class M.report_eventlist.EventFilter * @extends Base * @constructor */ function EventFilter() { EventFilter.superclass.constructor.appl...
/* @generated */ // prettier-ignore if (Intl.RelativeTimeFormat && typeof Intl.RelativeTimeFormat.__addLocaleData === 'function') { Intl.RelativeTimeFormat.__addLocaleData({"data":{"nu":["adlm"],"year":{"0":"𞤸𞤭𞤼𞤢𞥄𞤲𞥋𞤣𞤫 𞤸𞤭𞤳𞥆𞤢","1":"𞤸𞤭𞤼𞤢𞥄𞤲𞥋𞤣𞤫 𞤸𞤭𞤳𞥆𞤭𞥅𞤲𞥋𞤣𞤫","future":{"one":"𞤲𞥋𞤣𞤫𞤪 {0} ...
// *********************************************************************** // Author : the_hunter // Created : 04-01-2020 // // Last Modified By : the_hunter // Last Modified On : 04-01-2020 // *********************************************************************** #pragma once #include <metamod/me...