text stringlengths 3 1.05M |
|---|
import { VIDEO } from '../src/mediaTypes.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { Renderer } from '../src/Renderer.js';
import * as utils from '../src/utils.js';
const BIDDER_CODE = 'videofy';
const TTL = 600;
function avRenderer(bid) {
bid.renderer.push(function() {
let ... |
#!/usr/bin/env python
import copy
from cStringIO import StringIO
from fnmatch import fnmatch
import gzip
import hashlib
import logging
import mimetypes
import os
from boto.s3.key import Key
import app_config
import utils
logging.basicConfig(format=app_config.LOG_FORMAT)
logger = logging.getLogger(__name__)
logger.s... |
# -*- coding: utf-8 -*-
# @Time: 2020/2/19 15:23
# @Author: GraceKoo
# @File: 48_rotate-image.py
# @Desc:https://leetcode-cn.com/problems/rotate-image/
class Solution:
def ero_matrics(self, matric):
if not matric:
return matric
# 先转置
for i in range(0, len(matric)):
... |
from distutils.core import setup
setup(
name='CloeePy-Redis',
version='0.0.0',
packages=['cloeepy_redis',],
package_data = {
'cloeepy_redis': ['data/*.yml'],
},
license='MIT',
description="Plugin for CloeePy Framework",
long_description=open('README.md').read(),
install_requ... |
# encoding: utf-8
# Copyright 2011 Tree.io Limited
# This file is part of Treeio.
# License www.tree.io/license
"""
Infrastructure integration with Events module
Provides ItemServicing as EventRenderer instances
"""
from treeio.infrastructure.models import ItemServicing
from treeio.core.models import Object
from tre... |
"""Support for the Philips Hue sensors as a platform."""
from datetime import timedelta
import logging
from aiohue import AiohueException, Unauthorized
from aiohue.sensors import TYPE_ZLL_PRESENCE
import async_timeout
from homeassistant.components.sensor import STATE_CLASS_MEASUREMENT
from homeassistant.core import c... |
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# (c) Copyright 2012-2013 Hewlett-Packard Development Company, L.P.
# All Rights Reserved.
#
# Copyright 2012 OpenStack LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. ... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*
'''
Author: Curtin
功能:脚本依赖下载
TG交流 https://t.me/topstyle996
TG频道 https://t.me/TopStyle2021
cron: 0 5 * * *
new Env('脚本依赖下载 for Curtinlv 仓库');
'''
try:
import requests
except Exception as e:
print(e, "\n缺少requests 模块,请执行命令安装:pip3 install requests")
exit(3)
import... |
'use strict';
Array.prototype.unique = function () {
let hash = {};
let result = [];
for (let i = 0, l = this.length; i < l; i++) {
if (!hash.hasOwnProperty(this[i])) {
hash[ this[i] ] = true;
result.push(this[i]);
}
}
return result;
};
Array.prototype.uniqueCount = function () {
let... |
//
// PLShortVideoViewController.h
// NiuPlayer
//
// Created by hxiongan on 2018/3/1.
// Copyright © 2018年 hxiongan. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface PLShortVideoViewController : UIPageViewController
<
UIPageViewControllerDelegate,
UIPageViewControllerDataSource
>
- (void)reloadControll... |
# Copyright 2012-2017 The Meson development 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 agree... |
#!/usr/bin/env python
"""
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");... |
import os
import sys
sys.path.insert(0, os.path.abspath('..'))
add_module_names = False
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.intersphinx',
]
html_theme = "sphinx_rtd_theme"
intersphinx_mapping = {
'python': ('https://docs.python.org/3', None),
'pandas': ('https://pandas.pydata.org/docs/', ... |
import React from 'react';
import styled from 'styled-components';
import tw from 'tailwind.macro';
import { width as twWidth } from '../../../tailwind';
import { hidden } from '../../styles/utils';
const Wrapper = styled.svg`
${tw`absolute`};
stroke: currentColor;
${props => props.hiddenMobile && hidden};
co... |
"""
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 not use... |
custom_imports = dict(
imports=['models', 'apis'],
allow_failed_imports=False)
model = dict(
type='DeOldify',
generator=dict(
type='DeOldifyGenerator',
encoder=dict(
type='ColorizationResNet',
num_layers=101,
pretrained=None,
out_layers=[2... |
import aiohttp
from typing import Callable, Dict, Iterable, List, Mapping, Any, Set
import json
import logging
import pkg_resources
import re
import os
import pathlib
import requests
from datetime import datetime, timedelta
from bs4 import BeautifulSoup # type: ignore
from typing import Union, Optional
logger = loggi... |
# Generated by Django 2.1.5 on 2019-01-30 08:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0002_auto_20190130_2019'),
]
operations = [
migrations.AlterField(
model_name='user',
name='first_name',
... |
"""
Copyright (c) 2022 Huawei Technologies Co.,Ltd.
openGauss is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Integration tests around template rendering for geo.
"""
from django.test import Client
from django.test import TestCase
class DistrictIntegrationTestCase(TestCase):
fixtures = ['geo.json']
def setUp(self):
# Set up Django integrated testing request ... |
"""Manipulate property models of bit-vector operations (w.r.t an abstract property)."""
import collections
import functools
import decimal
import math
from cascada.bitvector import core
from cascada.bitvector import operation
from cascada.bitvector import context
from cascada import abstractproperty
def _tuplify(se... |
/* eslint-disable import/prefer-default-export */
export const setupFiles = ["./.storybook/Tests/jest_setup.js"];
|
from __future__ import unicode_literals
import threading
import time
from django.conf import settings
from django.db.models.signals import pre_save
from django.apps import apps
from functools import partial
from auditlog.models import LogEntry
from auditlog.compat import is_authenticated
# Use MiddlewareMixin when p... |
//初始化log文件目录
const initLogPath = require('./init').initLogPath
initLogPath()
const config = require('./config')
const Koa = require('koa')
const convert = require('koa-convert');
const json = require('koa-json');
const app = new Koa()
// const router = require('./router')
//middleware
app.use(convert(json()));
//l... |
# Copyright 2017-present Kensho Technologies, LLC.
import re
import six
def remove_custom_formatting(query: str) -> str:
"""Prepare the query string for pretty-printing by removing all unusual formatting."""
query = re.sub("[\n ]+", " ", query)
return query.replace("( ", "(").replace(" )", ")")
def pre... |
//------------------------------------------------------------------------------
// GB_Adot4B: hard-coded dot4 method for a semiring
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved.
// SPDX-License-Identifi... |
import numpy as np
import pandas as pd
import pickle
def columns():
return ['open', 'high', 'low', 'close', 'rsi_13', 'ma30_8', 'atr_diff_9', 'cs_hm_9', 'rsi_diff_8', 'low_5', 'high_10', 'low_7', 'cs_hm_14', 'open_5', 'cs_ebu', 'rsi_2', 'atr_ma14_1', 'close_4', 'high_2', 'cs_hmr_9', 'rsi_diff_6', 'ma90', 'open_3',... |
/** @file
Implement all four UEFI Runtime Variable services for the nonvolatile
and volatile storage space and install variable architecture protocol.
Copyright (C) 2013, Red Hat, Inc.
Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>
(C) Copyright 2015 Hewlett Packard Enterprise Develop... |
/*
Siesta 5.3.2
Copyright(c) 2009-2020 Bryntum AB
https://bryntum.com/contact
https://bryntum.com/products/siesta/license
*/
/**
@class Siesta.Test.Action.MoveCursorBy
@extends Siesta.Test.Action
Action which moves the cursor by an x/y delta, call it with the "moveCursorBy" shortcut:
t.chain(
{
... |
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
#include "AI/Navigation/NavigationTypes.h"
#include "AI/Navigation/NavigationDataChunk.h"
#include "RecastNavMeshDataChunk.generated.h"
class FPImplRecastNavMesh;
struct FRecastTileDa... |
#include <std.h>
#include "../ud_ruins.h"
inherit CROOM;
void set_pop();
void create() {
set_repop(30);
set_pop();
::create();
set_name("a wide subterranean river");
set_property("indoors",1);
set_property("light", 0);
set_terrain(NAT_CAVE);
set_travel(FRESH_BLAZE);
set_property("... |
'use strict'
const _ = require('lodash');
const areacode = require('./data/areacode.json');
const divisions = require('./data/division.json');
const district = require('./data/district.json');
module.exports = {
nidInfo : function(nid) {
var nid = nid.toString();
var length = nid.length;
var info = {};
... |
#include "../lv_font.h"
#if USE_LV_FONT_DEJAVU_20_CYRILLIC != 0 /*Can be enabled in lv_conf.h*/
/***********************************************************************************
* DejaVuSans.ttf 20 px Font in U+0410 (А) .. U+044f (я) range with 1 bpp
************************************************************... |
# -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-06-30 20:00
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import wagtail.wagtailcore.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
('wagta... |
from datetime import date
import datetime
date = str(date.today())
tomorrows_date = str(datetime.date.today() + datetime.timedelta(days=1))
|
(()=>{"use strict";var t,r={1630:(t,r,e)=>{e(8594);var i=e(4631),o=e.n(i);e(1380),e(9589);var n,s,l,a=e(7610),k=!1,p=null,m=function(){p&&clearTimeout(p),p=setTimeout((function(){p=null;try{g(n,l.getValue())}catch(t){}}),500)};function c(t){l.off("change",m),l.setValue(t),l.on("change",m)}function g(t,r){if(k)s=r;else{... |
import firebase from 'firebase';
// copy/paste this from your firebase console
var config = {
apiKey: "AIzaSyCNLq_efw3EQLSJi1H9bFEwkkmvggrfoYI",
authDomain: "braindr-les.firebaseapp.com",
databaseURL: "https://braindr-les.firebaseio.com",
projectId: "braindr-les",
storageBucket: "braindr-les.appspot.com",
... |
from django.contrib import admin
from .models import Categoria, Contato
class ContatoAdmin(admin.ModelAdmin):
list_display = ('id', 'nome', 'sobrenome', 'telefone', 'email', 'data_criacao', 'categoria', 'mostrar')
list_display_links = ('id', 'nome', 'sobrenome')
# list_filter = ('nome', 'sobrenome')
l... |
import { __assign } from "tslib";
import * as React from 'react';
import { StyledIconBase } from '@styled-icons/styled-icon';
export var Calendar = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "currentColor",
"xmlns": "http://www.w3.org/2000/svg",
};
return (React.createEle... |
//wire up module
exports = module.exports = init;
/**
* @class
*/
function init() {
/**
* @private
* @type {*}
*/
var me = this;
/**
* @private
* @type {BeanA}
*/
var beanA = inject('beanA');
/**
* @public
* @type {BeanA}
*/
me.beanAA = inject('b... |
;
;
var Zone = (function (global) {
var Zone = (function () {
function Zone(parent, zoneSpec) {
this._properties = null;
this._parent = parent;
this._name = zoneSpec ? zoneSpec.name || 'unnamed' : '<root>';
this._properties = zoneSpec && zoneSpec.properties ||... |
/***************************************************************************/
/* */
/* ftcglyph.h */
/* */
/* Fr... |
#!/usr/bin/env python
#
# This file is part of the MicroPython project, http://micropython.org/
#
# The MIT License (MIT)
#
# Copyright (c) 2014-2016 Damien P. George
# Copyright (c) 2017 Paul Sokolovsky
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated d... |
# -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-07-06 22:44
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django_markdown.models
import taggit.managers
class Migration(migrations.Migration):
d... |
#pragma once
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
char** malloc_file_to_buffer(const char* file_name, char** line_buffer, int* line_length, int* line_number); // ファイルから行ごとに二次元配列に格納して返す
void free_line_buffer(char** line_buffer, int line_num); // 確保した二次元配列を解放する |
import React, { Component } from 'react';
class Footer extends Component {
render() {
return (
<footer className="footer">
<hr />
<main role="main" className="container">
<p align="center">© 2018-2019 FireSale, Inc.</p>
</main>
</footer>
)
}
... |
#pragma once
#include <ATen/core/ivalue.h>
#include <ATen/core/jit_type.h>
#include <ATen/core/qualified_name.h>
#include <ATen/core/stack.h>
#include <pybind11/pybind11.h>
#include <pybind11/pytypes.h>
#include <torch/csrc/Device.h>
#include <torch/csrc/Dtype.h>
#include <torch/csrc/Layout.h>
#include <torch/csrc/QSc... |
(function () {
'use strict';
var inboxServices = angular.module('inboxServices');
inboxServices.factory('ConflictResolution',
['E2ETESTING', 'DB',
function(E2ETESTING, DB) {
return function() {
if (!E2ETESTING) {
DB.get()
.changes({
live: true,
... |
# client.py -- Implementation of the client side git protocols
# Copyright (C) 2008-2013 Jelmer Vernooij <jelmer@jelmer.uk>
#
# Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
# General Public License as public by the Free Software Foundation; version 2.0
# or (at your option) any later versi... |
# Copyright 2017 The Bazel 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 applicable la... |
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <php.h>
#include "php_ext.h"
#include <ext/standard/php_string.h>
#include "ext.h"
#include "kernel/main.h"
#include "kernel/memory.h"
#include "kernel/concat.h"
void zephir_concat_ss(zval *result, const char *op1, uint32_t op1_len, const char *op2, uint32_t op... |
################################################################################################################
# A python CLI that allows a Robinhood user to easily allocate and divide his capital on different stocks.
####################################################################################################... |
# Import extensions
from flask import Flask
from flask_bootstrap import Bootstrap
from flask_login import LoginManager
from flask_sqlalchemy import SQLAlchemy
from config import config_options
from flask_uploads import UploadSet,configure_uploads,IMAGES
# Create extension instances
app = Flask(__name__)
bootstrap = Bo... |
/* Generated by RuntimeBrowser
Image: /System/Library/Frameworks/UIKit.framework/UIKit
*/
@interface UIActionSheetiOSDismissActionView : UIView <UIActionSheetPresentationControllerDismissActionView> {
UIButton * _dismissButton;
}
@property (readonly, copy) NSString *debugDescription;
@property (readonly, copy... |
import json
import os.path
import pathlib
import json
import numpy as np
import random
import math
# bootstrapps a dataSet
dirname = pathlib.Path(__file__).parent.resolve()
path_source = os.path.join(dirname, "../data/M_BTT/MBTT CO2.json")
mydict = {}
with open(path_source) as file:
data = json.loads(file.read... |
#
# Copyright 2022 European Centre for Medium-Range Weather Forecasts (ECMWF)
#
# 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 req... |
from sandbox import Scene
from sandbox.property import ProportionalLengthsProperty
from sandbox.util import LazyComment
from visualiser import visualise
scene = Scene()
A, D, C, B = scene.square('A', 'D', 'C', 'B')
A.x = 0
A.y = 0
D.x = 1
D.y = 0
I = scene.incentre_point(Scene.Triangle(A, B, C), label='I')
side = A.... |
/*
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2015 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides class sap.ui.app.MockServer for mocking a server
sap.ui.define(['jquery.sap.global', 'sap/ui/core/util/MockServer'],
func... |
from django.shortcuts import render
from wiki.models import Page
from django.views.generic.list import ListView
from django.views.generic.detail import DetailView
from wiki.forms import *
class PageList(ListView):
"""
Displays every page with links to them
"""
model = Page
def get(self, request):... |
import gtfs_rt_pb2
import requests
import os
url = "https://api.odpt.org/api/v4/gtfs/realtime/ToeiBus?acl:consumerKey=" + os.environ['token']
feed = gtfs_rt_pb2.FeedMessage()
response = requests.get(url)
feed.ParseFromString(response.content)
for entity in feed.entity:
print(entity)
|
__copyright__ = """
Copyright (C) 2009-2017 Andreas Kloeckner
Copyright (C) 2014-2017 Aaron Meurer
"""
__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, includ... |
#!/usr/bin/env python
# This file is part of the pyMOR project (http://www.pymor.org).
# Copyright 2013-2020 pyMOR developers and contributors. All rights reserved.
# License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
import matplotlib.pyplot as plt
import numpy as np
import scipy.sparse as sp... |
import { GeolocationPlugin, GEOLOCATION_LAYER_ID } from '../../src/plugins/GeolocationPlugin';
import { activate, deactivate, setTracking } from '../../src/store/geolocation/geolocation.action';
import { TestUtils } from '../test-utils.js';
import { layersReducer } from '../../src/store/layers/layers.reducer';
import {... |
import React, { Component, Fragment } from "react";
import propTypes from "prop-types";
import {Link, withRouter } from "react-router-dom";
import { connect } from "react-redux";
import { registerUser } from "../../actions/authActions";
// import TextFieldGroup from "../common/TextFieldGroup";
// import AuthFieldGroup ... |
const [MIN, MAX] = [840, 9151]
// type TransformInput = number[][][]
exports.transform = input =>
input.map(_ =>
_.map(__ => __.map(number => Math.max(0, number - MIN) / (MAX - MIN)))
)
exports.transform2 = input =>
input.map(_ => _.map(number => Math.max(0, number - MIN) / (MAX - MIN)))
// type InverseTr... |
import React from 'react'
import { css } from 'glamor'
import {
colors,
flexRowCenter,
shadows,
noTapHighlight,
} from '../../style/theme'
const toggleStyle = css({
height: 40,
width: '90%',
maxWidth: 250,
margin: 'auto',
borderRadius: 25,
...shadows.insetBox,
position: 'relative',
background: ... |
import styled from 'styled-components';
import { Layout } from 'antd';
const { Header } = Layout;
export const StyledHeader = styled(Header)`
display: flex;
position: sticky;
top: 0;
justify-content: space-between;
background-color: var(--primary);
-webkit-box-shadow: 5px 5px 15px 5px rgba(0, 0, 0, 0.36);
... |
require('colors');
var fs = require('fs');
var argv = require('optimist').argv;
var DAILY_BLACK_LIST = [
'http://static.pinganfang.com'
],
DAILY_REG = new RegExp( DAILY_BLACK_LIST.join('|') );
var DEBUGCODE = [
'console.',
'debug'
],
DEBUGCODE_REG = new RegExp( DEBUGCODE.... |
from pycoingecko import CoinGeckoAPI
from operator import itemgetter
cg = CoinGeckoAPI()
#n = input("num of crypcoins: ")
n = 5
coins = cg.get_coins_markets('usd')
coins_sorted = sorted(coins, key=itemgetter('market_cap'), reverse=True)
for i in range(n):
coin = coins[i]
print(".",coin['id'],",","$", c... |
#!/usr/bin/env python
import _thread
from time import sleep, ctime
def loop0():
print('start loop 0 at:', ctime())
sleep(4)
print('loop 0 done at:', ctime())
def loop1():
print('start loop 1 at:', ctime())
sleep(2)
print('loop 1 done at:', ctime())
def main():
print('star... |
// @flow strict
/* eslint-disable fp/no-rest-parameters */
import { css } from "styled-components";
import type { Interpolation } from "styled-components";
import * as R from "ramda";
import { BREAKPOINTS } from "../consts/device";
const SIZES = {
gtDesktop: { min: BREAKPOINTS.DESKTOP },
ltDesktop: { max: BREAKPO... |
import React from 'react'
import Link from 'gatsby-link'
import { rhythm, scale } from '../utils/typography'
class Template extends React.Component {
render() {
const { location, children } = this.props
let header
let rootPath = `/`
if (typeof __PREFIX_PATHS__ !== `undefined` && __PREFIX_PATHS__) {... |
module.exports =
/******/ (function (modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {}
/******/
/******/ // The require function
/******/ function __webpack_require__ (moduleId) {
/******/
/******/ // Check if module is in cache
/*... |
export { default as AddReview } from './AddReview';
export { default as EditReview } from './EditReview';
export { default as MyReview } from './MyReview';
export { default as MyReviewContainer } from './MyReviewContainer';
export { default as Review } from './Review';
export { default as Reviews } from './Reviews.web'... |
/*
* Copyright (c) 2013-2016, Roland Bock
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list of cond... |
"""
Full example of ray.serve module
"""
import ray
import ray.experimental.serve as serve
from ray.experimental.serve.utils import pformat_color_json
import requests
import time
# initialize ray serve system.
# blocking=True will wait for HTTP server to be ready to serve request.
serve.init(blocking=True)
# an endp... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
from setuptools import setup, find_packages
version = None
with open('jaeger_client/__init__.py', 'r') as f:
for line in f:
m = re.match(r'^__version__\s*=\s*(["\'])([^"\']+)\1', line)
if m:
version = m.group(2)
break
... |
## -*- encoding: utf-8 -*-
"""
This file (./mpoly_doctest.sage) was *autogenerated* from ./mpoly.tex,
with sagetex.sty version 2011/05/27 v2.3.1.
It contains the contents of all the sageexample environments from this file.
You should be able to doctest this file with:
sage -t ./mpoly_doctest.sage
It is always safe to d... |
gXMLBuffer ="<?xml version=\"1.0\" encoding=\"utf-8\" ?><data src=\"toc295.js\" name=\"PreflightAuditTrail\" url=\"Acro12_MasterBook/JS_API_AcroJS/PreflightAuditTrail.htm\"><book name=\"PreflightAuditTrail properties\" url=\"Acro12_MasterBook/JS_API_AcroJS/PreflightAuditTrail_properties.htm\" src=\"toc431.js\" /></da... |
# Generated by Django 3.1.2 on 2020-11-01 23:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('flights', '0006_auto_20201102_0159'),
]
operations = [
migrations.AlterField(
model_name='person',
name='full_name',... |
(function() {
'use strict';
angular
.module('ohmageApp')
.factory('DataType', DataType);
DataType.$inject = ['$resource'];
function DataType ($resource) {
var resourceUrl = 'api/data-types/:id';
return $resource(resourceUrl, {}, {
'query': { method: 'GET',... |
from __future__ import absolute_import
import os
import os.path as osp
from torch.utils.data import DataLoader, Dataset
import numpy as np
import random
import math
from PIL import Image
class Preprocessor(Dataset):
def __init__(self, dataset, root=None, transform=None, has_part_label=False):
super(Prepro... |
"""A setuptools based setup module.
"""
import io
import re
from glob import glob
from os.path import basename
from os.path import dirname
from os.path import join
from os.path import splitext
# Always prefer setuptools over distutils
from setuptools import setup, find_namespace_packages
# To use a consistent encoding... |
/*
* Copyright 2015 The WebRTC 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 contributing ... |
/****************************************************************************
* arch/arm/src/armv8-m/itm_syslog.h
*
* Copyright (C) 2014 Pierre-noel Bouteville . All rights reserved.
* Copyright (C) 2014 Gregory Nutt. All rights reserved.
* Authors: Pierre-noel Bouteville <pnb990@gmail.com>
* Gre... |
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <errno.h>
#include <stdarg.h>
#ifndef _WIN32
#include <sys/select.h>
#include <unistd.h>
#endif
#include "random.h"
#include "gb.h"
#ifdef GB_DISABLE_REWIND
#define GB_rewind_free(...)
#define GB_rewind_push(.... |
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
FOUNDATION_EXPORT double SwiftNavigatorVersionNumber;
FOUNDATION_EXPORT const unsigned char SwiftNavigatorVersionString[];
|
function RootController(){
console.log('Root component');
}
RootController.$inject = [];
angular.module('cbWebsite.rootComponent', []).component('rootComponent', {
templateUrl: 'comp/root.component.html',
controller: RootController,
controllerAs: "rootCtrl",
bindings: {}
}) |
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _VME_PIO2_H_
#define _VME_PIO2_H_
#define PIO2_CARDS_MAX 32
#define PIO2_VARIANT_LENGTH 5
#define PIO2_NUM_CHANNELS 32
#define PIO2_NUM_IRQS 11
#define PIO2_NUM_CNTRS 6
#define PIO2_REGS_SIZE 0x40
#define PIO2_REGS_DATA0 0x0
#define PIO2_REGS_DATA1 0x1
#... |
import six
from django.test import TestCase
from django_extensions.templatetags.widont import widont, widont_html
class TemplateTagsTests(TestCase):
def test_widont(self):
widont('Test Value')
widont(six.u('Test Value'))
def test_widont_html(self):
widont_html('Test Value')
w... |
import datetime
from decimal import Decimal
import unittest.mock
import hummingbot.strategy.avellaneda_market_making.start as strategy_start
from hummingbot.connector.exchange_base import ExchangeBase
from hummingbot.strategy.avellaneda_market_making.avellaneda_market_making_config_map import (
avellaneda_market_ma... |
#!/usr/bin/python
'''
Extract _("...") strings for translation and convert to Qt4 stringdefs so that
they can be picked up by Qt linguist.
'''
from subprocess import Popen, PIPE
import glob
OUT_CPP="src/qt/fucoinstrings.cpp"
EMPTY=['""']
def parse_po(text):
"""
Parse 'po' format produced by xgettext.
Retu... |
pkgname = "dinit-chimera"
_commit = "13422e51eabea830856f7412f88e4488d8fbf443"
pkgver = "0.1"
pkgrel = 0
build_style = "makefile"
makedepends = ["linux-headers"]
depends = ["dinit", "util-linux", "eudev"]
pkgdesc = "Chimera core services suite"
maintainer = "q66 <q66@chimera-linux.org>"
license = "BSD-2-Clause"
url = f... |
# Generated by Django 2.2.16 on 2021-10-28 01:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('cwfollowup', '0002_auto_20210928_0607'),
]
operations = [
migrations.AlterField(
model_name='c... |
const h = require('../scripts/helpers.js')
const config = require('../config.js')
import { getAddress } from './helpers.js'
let { DEFAULT_GAS, DEFAULT_GAS_PRICE, MAX_GAS } = config.constants;
/**
* @description Get owner of token contract
* @param token
* @returns owner
*/
const getOwner = async (token) => {
le... |
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: metric_group.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobu... |
(self["webpackChunk"] = self["webpackChunk"] || []).push([["resources_js_pages_dashboard_Dashboard_vue"],{
/***/ "./node_modules/@babel/runtime/regenerator/index.js":
/*!**********************************************************!*\
!*** ./node_modules/@babel/runtime/regenerator/index.js ***!
\*********************... |
// @flow
//
// Copyright (c) 2019-present, Cruise LLC
//
// This source code is licensed under the Apache License, Version 2.0,
// found in the LICENSE file in the root directory of this source tree.
// You may not use this file except in compliance with the License.
import { storiesOf } from "@storybook/react";
i... |
const Decoder = require('../../../decoder')
const { parse: parseV2 } = require('../v2/response')
/**
* OffsetFetch Response (Version: 3) => throttle_time_ms [responses] error_code
* throttle_time_ms => INT32
* responses => topic [partition_responses]
* topic => STRING
* partition_responses => partitio... |
import * as defaults from './defaults.js'
import * as config from './config.js'
export { defaults, config }
|