text stringlengths 3 1.05M |
|---|
const casual = require('casual');
const shared = require('./shared');
const salesReps = {};
exports.get = (badgeId) => {
console.info(`loading sales rep ${ badgeId }`);
if (!salesReps[badgeId]) {
const address = shared.address();
const contact = shared.contact();
contact.address = address;
let c... |
/**
*
* @param {*} name global name of module
* @param {*} srcUrl script src to be loaded
* @param {*} callback (boolean)
*/
export function loadExtModule(name, srcUrl, callback) {
console.log("loadExtModule:" + name + " starts")
// already available?
if (window[name]) {
console.log("loadE... |
$(window).scroll(function() {
if ($(this).scrollTop() > 1){
$('header').addClass("sticky");
$('.feature').addClass("hide");
$('.brand').addClass("show");
$('.primary-nav').addClass("primary-nav-filled");
}
else{
$('header').removeClass("sticky");
$('.feature... |
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Provides an interface for debugging the anomaly detection function."""
import json
import urllib
from dashboard import find_anomalies
from dashboard imp... |
"use strict";
// Copyright IBM Corp. 2019,2020. All Rights Reserved.
// Node module: @loopback/boot
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
Object.defineProperty(exports, "__esModule", { value: true });
exports.InterceptorProviderDefaults = export... |
import tensorflow as tf
from GANomaly.Coders import Encoder, Decoder
from GANomaly.Movie2TFRecord import dataset_from_movie
#options
input_shape = 1024
n_hidden_channel = 32
w_loss_con = 1
w_loss_enc = 1
w_loss_adv = 1
#model
x = tf.placeholder(tf.float32, [None, input_shape, input_shape, 3])
with tf.variable_scope('... |
import React, { useState } from 'react'
import { Alert, ButtonGroup, Form } from 'reactstrap'
import { Login, Password, ButtonSubmit, FormHeaders, ButtonLogin } from '../../includes/auth/form-elements'
import loginService from '../../../services/loginService'
const FormRegisterBody = () => {
const [item, setItem] = ... |
import { h } from 'vue'
export default {
name: "UserCog",
vendor: "Fa",
type: "Solid",
tags: ["user","cog"],
render() {
return h(
"svg",
{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 640 512","class":"v-icon","fill":"currentColor","data-name":"fa-user-cog","innerHTML":"<path d='M610.5 3... |
# -*- coding: utf-8 -*-
import setuptools
setuptools.setup(
name="xquant",
version='0.5.1',
author='Leon Zhang',
author_email='pku09zl@gmail.com',
description='Quantitative Backtest Engine',
keywords='python finance quant',
url='https://github.com/X0Leon/XQuant',
license='MIT',
in... |
#pragma once
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include "VertexArray.h"
#include "Shader.h"
class Renderer {
public:
Renderer(int width = 1024, int height = 768);
~Renderer();
void clear(float r = 0.1, float g = 0.f, float b = 0.3) const;
void render(const std::shared_ptr <Shader>& s, const std::shar... |
import api from '../api';
export const createMatch = (data) => {
console.log(data)
const newMatch = api.match.addMatch( data)
return (dispatch) => {
return newMatch.then(match => {
console.log(match)
dispatch({
type: "ADD_NEW_MATCH",
payload: match.data
})
})
}
}
expo... |
from django.contrib import admin
from .models.product import Product, ProductCategoriesMany, ProductSubCategoriesMany
from .models.orderData import OrderData
from .models.productOrderData import ProductOrderData
from .models.category import Category, CategorySubCategoryMany
from .models.subCategory import SubCat... |
import { login, logout, getInfo } from '@/api/user'
import { getToken, setToken, removeToken } from '@/utils/auth'
import { resetRouter } from '@/router'
const state = {
token: getToken(),
name: '',
avatar: '',
introduction: '',
roles: [],
permissions: [],
email: '',
strong: ''
}
const mutations = {
... |
import React from 'react'
import '../../../App.css'
import { ListGroup, Button, Card, Image } from 'react-bootstrap'
import axios from 'axios'
import RimozionePersonale from './RimozionePersonale'
export default class VisualizzazioneListaPersonale extends React.Component {
constructor (props) {
super(props)
... |
'use strict'
const assert = require('assert')
const I = require('../lib')
const elements = [1, 2, 3, 4]
describe('Array', function () {
it('slices', function () {
assert.deepEqual(I.slice(1, 3, elements), [2, 3])
})
it('is curried', function () {
assert.deepEqual(I.slice(1)(3)(elements), [2, 3])
})
... |
from __future__ import absolute_import
import six
from ..errs import ValidationError
from validate_email import validate_email
def validate_str(obj, ret, val, ctx):
if obj.enum and ret not in obj.enum:
raise ValidationError('{0} is not a valid enum for {1}'.format(ret, str(obj.enum)))
if obj.maxLength... |
# Copyright (c) 2018 Cloudify Platform Ltd. 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 ap... |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.lang['da']={"editor":"Rich Text Editor","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"Tryk ALT 0 for hjælp","browseServer":"Gennemse...","url":"URL"... |
#include <stdlib.h>
#include <pthread.h>
#include "../structures/structures.h"
#include "../execute.h"
#include "../base_util.h"
#include "../config.h"
void * parallel_routine(void * bundle_ptr){
struct Execution_bundle * bundle = (struct Execution_bundle *) bundle_ptr;
if (bundle->max_depth <= 0) {
ER... |
# port public ioc_finder module to using regex
# (https://pypi.org/project/ioc-finder/)
import re
from ioc_finder.data_lists import tlds, schemes
from ioc_finder.ioc_grammars import root_key
from typing import List
def _or(li: List) -> str:
start = '(?:'
end = ')'
res = start
for elem in li:
... |
"""
Hexagons representation module
based on the blogpost https://www.redblobgames.com/grids/hexagons/
"""
# TODO: Evaluate this class for performance, consider using numpy vectors for coordinates, etc
from math import sqrt
from pyglet.math import Vec2
from utils.math import Mat2
class Hexagon:
"""
Hexagon... |
'use strict'
const { Pact } = require('@pact-foundation/pact')
const { expect } = require('chai')
const path = require('path')
const PactInteractionBuilder = require('../../../../test-helpers/pact/pact-interaction-builder').PactInteractionBuilder
const getAdminUsersClient = require('../../../../../app/services/client... |
import {
CardBody,
CardBodyAddNew,
CardBodyOutline,
CardImage,
LinkBreakIconWrapper,
MiniTree, PencilIcon,
PlusIcon
} from "./Card.Elements.js"
import {cardChangeMain, cardEdit, cardShowHideRels} from "../../handlers/cardMethods.js"
import {isAllRelativeDisplayed} from "../../handlers/general.js"
export ... |
#ifndef ZAPPER_H
#define ZAPPER_H
#include "Demo.h"
#include "Color.h"
#define ZAP_FREQUENCY 5 // Lower number means less frequent zap
// Zapper
// -----------------------------------------
// Simple animation to simulate an old school bug zapper
// Default color is a purple-ish blue
// Makes use of Piezo Speaker to... |
/*
COPYRIGHT 2009 ESRI
TRADE SECRETS: ESRI PROPRIETARY AND CONFIDENTIAL
Unpublished material - all rights reserved under the
Copyright Laws of the United States and applicable international
laws, treaties, and conventions.
For additional information, contact:
Environmental Systems Research Institute, Inc.
Att... |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
try:
from numpy import diag
from numpy import eye
from numpy import float32
except:
pass
try:
from compas.hpc import give_cl
except:
pass
try:
import pyopencl as cl
import pyo... |
from django.db.models import Count
from rest_framework.generics import ListAPIView, RetrieveAPIView
from package.models import Category, Package
from package.serializers import PackageSerializer
class PackageListAPIView(ListAPIView):
model = Package
paginate_by = 20
class PackageDetailAPIView(RetrieveAPIV... |
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
from jupyter_core.paths import jupyter_data_dir
import subprocess
import os
import errno
import stat
import tmpauthenticator
c = get_config()
c.NotebookApp.ip = '*'
c.NotebookApp.port = 8888
c.NotebookApp.open_browser... |
# Copyright (c) 2018-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import argparse
def import_options(obj, option_map, option_spec, namespace=None):
"""Stores the parameters from a... |
/****************************************************************************
Copyright (C) 2014 Telechips, Inc.
This software is licensed under the terms of the GNU General Public
License version 2, as published by the Free Software Foundation, and
may be copied, distributed, and modified under those terms.
... |
'''
game.py
Game module for Tic-Tac-Toe
This is where the game context is created.
'''
from player import Player
from board import Board
import json
class Game:
def __init__(self):
''' Constructor '''
self.board = Board()
self.one = None
self.two = None
s... |
#ifndef OVERVIEWPAGE_H
#define OVERVIEWPAGE_H
#include <QWidget>
#include <QNetworkReply>
QT_BEGIN_NAMESPACE
class QModelIndex;
QT_END_NAMESPACE
namespace Ui {
class OverviewPage;
}
class WalletModel;
class ClientModel;
class TxViewDelegate;
class TransactionFilterProxy;
/** Overview ("home") page widget */
cla... |
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\... |
# (C) Datadog, Inc. 2018
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
class PymqiException(Exception):
"""
PymqiException is used when there's an issue running pymqi
"""
|
import os
from allennlp.common import Params
import myutils
def makeConfig(strategy, seed, runNonSmoothed):
fullConfig = {}
for udPath in ['data/ud-treebanks-v2.7/', 'data/ud-treebanks-v2.7.extras/']:
for UDdir in os.listdir(udPath):
if not UDdir.startswith("UD") or not os.path.isdir(udPat... |
# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
import awkward as ak
from awkward._v2.operations.ak_fill_none import fill_none
np = ak.nplike.NumpyMetadata.instance()
# @ak._v2._connect.numpy.implements("concatenate")
def concatenate(
arrays, axis=0, merge=True, mergeboo... |
# -*- coding: utf-8 -*-
import taggit.managers
from django.conf import settings
from django.db import migrations, models
import wagtail.search.index
class Migration(migrations.Migration):
dependencies = [
("taggit", "0001_initial"),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... |
# Copyright 2015 Hewlett-Packard Development Company, L.P.
#
# 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... |
#!/usr/bin/env python
# coding: utf-8
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
import pytest
from ipykernel.comm import Comm
from ipywidgets import Widget
class MockComm(Comm):
"""A mock Comm object.
Can be used to inspect calls to Comm's open/sen... |
export default () => [
{
key: "Header",
name: "Header Text",
icon: "fa fa-header"
},
{
key: "Label",
name: "Label",
icon: "fa fa-font"
},
{
key: "Paragraph",
name: "Paragraph",
icon: "fa fa-paragraph"
},
{
key: "LineBreak",
name: "Line Break",
icon: "fa fa-a... |
#!/usr/bin/env python
import os, sys, shutil, zlib, hashlib
import jinja2
from jinja2 import Environment, FileSystemLoader, select_autoescape
from markupsafe import Markup
import pypandoc
import panflute
import io
import requests
import zipfile
from rich import print
from rich.progress import track
from docx import Doc... |
const path = require("path");
module.exports = {
entry: "./src/app.js",
output: {
path: path.join(__dirname, "public"),
filename: "bundle.js",
},
module: {
rules: [
{
loader: "babel-loader",
test: /\.js$/,
exclude: /node_modules/,
},
{
test: /\.s?cs... |
# Copyright 2020 The Magenta 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 applicable law or agreed to in ... |
/**
* Copyright (C) 2017, Hao Hou
**/
#include <unistd.h>
#include <testenv.h>
runtime_stab_entry_t servA;
runtime_stab_entry_t servB;
sched_service_buffer_t* serv_buf;
int node_data[] = {0,1,2,3,4,5};
int current_node, trap_rc;
sched_service_node_id_t nodes[sizeof(node_data) / sizeof(node_data[0])];
static void tra... |
// Copyright (c) 2020 Technica Engineering GmbH
// Copyright (c) 2016 Radu Velea
// 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... |
/*
* library with MCU settings
*
* autor: wykys
* verze: 1.0
* datum: 2.11.2017
*/
#ifndef F_CPU
#define F_CPU 16000000UL // Hz
#endif
|
/*
* imon.c: input and display driver for SoundGraph iMON IR/VFD/LCD
*
* Copyright(C) 2010 Jarod Wilson <jarod@wilsonet.com>
* Portions based on the original lirc_imon driver,
* Copyright(C) 2004 Venky Raju(dev@venky.ws)
*
* Huge thanks to R. Geoff Newbury for invaluable debugging on the
* 0xffdc iM... |
var searchData=
[
['cmakelists_2etxt_299',['CMakeLists.txt',['../1__ForLoop_2CMakeLists_8txt.html',1,'(Global Namespace)'],['../2__PowerLoop_2CMakeLists_8txt.html',1,'(Global Namespace)'],['../3__DoubleLoop_2CMakeLists_8txt.html',1,'(Global Namespace)'],['../CMakeLists_8txt.html',1,'(Global Namespace)']]],
['contex... |
import React, { Component } from 'react'
import propTypes from 'prop-types'
import { Keyboard, ActivityIndicator } from 'react-native'
import AsyncStorage from '@react-native-community/async-storage'
import Icon from 'react-native-vector-icons/MaterialIcons'
import api from '../../services/api'
import {
Container,
... |
# keep track of active services
class serviceHandler:
def __init__(self):
self.SERVICES = {}
def add_service(self, id, conf):
if id in self.SERVICES:
self.SERVICES[id].append(conf)
else:
self.SERVICES[id] = [conf]
def get_service(self, id):
... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
# The MIT License (MIT)
# Copyright (c) 2021-present EQUENOS
# 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, mod... |
# -*- coding: utf-8 -*-
r"""
Common category for Generalized Coxeter Groups or Complex Reflection Groups
"""
# ****************************************************************************
# Copyright (C) 2016 Nicolas M. Thiéry <nthiery at users.sf.net>
#
# This program is free software: you can redistribute it and/or ... |
#include<sys/types.h>
#include<sys/socket.h>
#include<unistd.h>
#include<netinet/tcp.h>
#include<arpa/inet.h>
#include<stdlib.h>
#include<stdio.h>
#include<string.h>
#include<pthread.h>
#include<sys/stat.h>
#include<time.h>
#include<crypt.h>
#include<shadow.h>
#include<sqlite3.h>
#define PORTNUM 1234
#define MAX_CLIENT... |
from math import sqrt
import numpy as np
import pygimli as pg
def simulateNlayerRefraction(offsets, thk, vel, muteDirect=False):
"""First arrival of layered medium for one shot at the origin.
TODO
----
* Example
* Test
Parameters
----------
offset : iterable
Offsets distances... |
#!/usr/bin/env python
import Tkinter, Pmw
import math, whrandom, Numeric, copy, time
from scitools.CanvasCoords import CanvasCoords
C = CanvasCoords() # transformation object
# default values
C.set_coordinate_system(400,800,200,200)
from vtk import *
import vtkTkRenderWidget
from model1 import *
class Plane... |
import numpy as np
import torch
import torch.nn as nn
from gym.spaces import Box, Discrete
def count_vars(module):
return sum(p.numel() for p in module.parameters() if p.requires_grad)
class MLP(nn.Module):
def __init__(self, layers, activation=torch.tanh, output_activation=None,
output_sca... |
// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2017-2018, Linaro Limited
*/
#include <pkcs11.h>
#include <pkcs11_ta.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <tee_client_api.h>
#include "pkcs11_processing.h"
#include "invoke_ta.h"
#include "serializer.h"
#include "serialize... |
"""
.. module: lemur.pending_certificates.models
Copyright (c) 2018 and onwards Netflix, Inc. All rights reserved.
.. moduleauthor:: James Chuong <jchuong@instartlogic.com>
"""
from datetime import datetime as dt
from sqlalchemy.orm import relationship
from sqlalchemy import Integer, ForeignKey, String, PassiveDe... |
var Plotly = require('@lib/index');
var list = [
'0',
'1',
'4',
'5',
'6',
'7',
'8',
'10',
'11',
'12',
'13',
'14',
'15',
'16',
'17',
'18',
'19',
'20',
'21',
'22',
'23',
'24',
'25',
'26',
'27',
'28',
'29',
'30... |
//>>built
define("dijit/nls/dijit-all_ko-kr",{"dijit/form/nls/validate":{"invalidMessage":"입력된 값이 올바르지 않습니다.","rangeMessage":"이 값은 범위를 벗어납니다.","_localized":{},"missingMessage":"이 값은 필수입니다."},"dijit/_editor/nls/commands":{"removeFormat":"형식 제거","copy":"복사","paste":"붙여넣기","selectAll":"모두 선택","insertOrderedList":"번호 목록","... |
#!/usr/bin/env python3
import os
import json
import socket
import threading
import sys
import time
import random
class Wpd():
config = {}
pictures = {}
sock = None
def __init__(self, port):
self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.sock.bind(('', int(port))) # TODO: load from config
... |
import React, { Component } from 'react';
//example of one of profile page blocks
export const ProfileElement = (props) => {
return (
<div className={'profile'}>
<h4>{props.title}</h4>
</div>
)
}; |
// Copyright (c) 2015-2018 The Bitcoin Core developers
// Copyright (c) 2017 The Raven Core developers
// Copyright (c) 2018 The Rito Core developers
// Copyright (c) 2019 The Liquidcash Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/lice... |
const toBuffer = require('blob-to-buffer')
// make pie chart like png image with a html canvas
module.exports = function (canvas, size) {
let context = canvas.getContext('2d')
canvas.width = size
canvas.height = size
context.lineWidth = 2
// arc params
let centerX = canvas.width / 2
let centerY = canva... |
"""The car will emit tracks."""
import pygame
from utils import load_image, rot_center
LIFETIME = 300
DISPLACEMENT = [3, 20]
def initialize():
global TRACK_IMAGE
TRACK_IMAGE = load_image('tracks.png', False)
class Track(pygame.sprite.Sprite):
"""Track sprite class."""
def __init__(... |
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Container, Button, Loader } from 'semantic-ui-react';
import {selectors} from "../../reducers";
import MessageList from "../../components/Messages/MessageList";
import MessageControls from "./Mess... |
import {log, logError} from './util.js'
let reporter = store => next => action => {
log('__ACTION__', action)
//next is the dispatch middleware that will update the state
try {
let result = next(action)
log('__STATE__', store.getState())
return result
} catch(error) {
error.action = action
... |
"""
MIT License
Copyright (C) 2021 ROCKY4546
https://github.com/rocky4546
This file is part of Cabernet
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 lim... |
class MyButton:
def __init__(self, x, y, xTwo, yTwo):
self.x = x
self.y = y
self.xTwo = xTwo
self.yTwo = yTwo
def checkPress(self, click, x, y):
if x >=self.x and y >= self.y and x <= self.xTwo and y <= self.yTwo:
self.pressed()
return Tr... |
function breakStr(s, re, min) {
if (min == null)
min = 1;
var v = [];
while (s.length >= min) {
var lead = s.substr(0, min);
s = s.substr(min);
var pos = s.search(re);
if (pos == -1) {
v.push(lead + s);
break;
}
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createIcon = require('../createIcon');
var _createIcon2 = _interopRequireDefault(_createIcon);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var OutlinedCalendarMinusIcon = (0, _cre... |
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */
/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
export default {"viewBox":"0 0 100 100","xmlns":"http://www.w3.org/2000/svg","g":{"path":[{"d":"M32.1 70.1c-.6 0-1.2-.5-1.2-1.2v-7.3c0-.6.5-1.2 1.2-1.2h7.5c.6 0 1.2.5 1... |
'use strict';
const os = require('os');
const ProjectTemplate = require('../../commands/new/project-template').ProjectTemplate;
const UI = require('../../ui').UI;
const transform = require('../../colors/transform');
const CLIOptions = require('../../cli-options').CLIOptions;
const fs = require('../../file-system');
con... |
#
# Convert raw output of the Caffe 'time' command
# to the CK timing format.
#
# Developers:
# - Grigori Fursin, cTuning foundation, 2016
# - Anton Lokhmotov, dividiti, 2016
#
import json
import os
import re
# Removes control sequences (ANSII escape sequences, such as color codes) from the given line
def escape_... |
# -*- coding: utf-8 -*-
"""Exceptions for djangorestframework-sudo."""
import sys
class RestFrameworkSudoError(Exception):
body = ''
def __init__(self, extra_body=''):
self.extra_body = extra_body
def __str__(self):
msg = self.__class__.__name__
if self.body:
msg += ... |
# coding: utf-8
"""
Velo Payments APIs
## Terms and Definitions Throughout this document and the Velo platform the following terms are used: * **Payor.** An entity (typically a corporation) which wishes to pay funds to one or more payees via a payout. * **Payee.** The recipient of funds paid out by a payor.... |
# This code is in the public domain, it comes
# with absolutely no warranty and you can do
# absolutely whatever you want with it.
__date__ = '17 May 2007'
__version__ = '1.7'
__doc__ = """
This is markup.py - a Python module that attempts to
make it easier to generate HTML/XML from a Python program
in an intuitive, l... |
from .inline_end_for import InlineEndFor
from .syntax_error import SyntaxError
from .read_whitespace import read_whitespace
from peco.template import TextNode, SentenceNode, ForNode, Evaluatable
def read_in(preread, stream, parser):
if stream.read(2) != "in":
raise SyntaxError("could not read \"in\".")
... |
/**
******************************************************************************
* @file lsm6dso32x.c
* @author MEMS Software Solutions Team
* @brief LSM6DSO32X driver file
******************************************************************************
* @attention
*
* <h2><center>© Copyrigh... |
from .._sign.sphincs_sha256_256f_robust import ffi as __ffi, lib as __lib
from .common import _sign_generate_keypair_factory, _sign_sign_factory, _sign_verify_factory
PUBLIC_KEY_SIZE = __lib.CRYPTO_PUBLICKEYBYTES
SECRET_KEY_SIZE = __lib.CRYPTO_SECRETKEYBYTES
SIGNATURE_SIZE = __lib.CRYPTO_BYTES
generate_keypair = _sig... |
###################################################
import sys
from obscureridge import watchtourney
###################################################
print("< obscureridge > main")
print("\nargs: {}".format(sys.argv))
###################################################
watchtourney.startup()
|
import unittest
from unittest.mock import Mock, patch, MagicMock
from spresso.controller.application import Application
from spresso.controller.web.wsgi import WsgiApplication, PathDispatcher
from spresso.model.settings import Endpoint
from spresso.model.web.base import Request, Response
class WSGIApplicationTestCas... |
from ._internal import ApplicationV2, BasicAuthenticatedServer, _format_date_param
from .errors import *
from .voice import *
from .sms import *
from .verify import *
from datetime import datetime
import logging
from platform import python_version
import base64
import hashlib
import hmac
import jwt
import os
import py... |
import { request } from '@/network/request'
const baseUrl = '/base'
export function getAuthList () {
return request({
url: baseUrl + '/auths',
method: 'get'
})
}
export function getModelOption () {
return request({
url: baseUrl + '/models',
method: 'get'
})
}
export function addAuth (row) {
... |
import React, { Component } from 'react';
import { Card, Row, Col } from 'reactstrap';
import { connect } from "react-redux"
import Cat from "../assets/notrans.png"
import { Text } from 'domelementtype';
const unirest = require('unirest');
class Cardtransactions extends Component {
constructor(props) {
su... |
# -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Post.author'
db.add_column(u'blogengine_post',... |
from setuptools import setup
def readme():
with open('README.rst') as f:
return f.read()
setup(
name='TimedDict',
version='0.2.4',
packages=['TimedDict'],
url='https://github.com/hjortlund/TimedDict',
license='MIT',
author='Christoffer Hjortlund',
author_email='hjortlund@gmai... |
//
// ViewController.h
// 9*9
//
// Created by Jay on 2018/4/3.
// Copyright © 2018年 Jay. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
|
// DEPENDENCIES
// =============================================================================
// APP -------------------------------
// config
import { store } from "APP/config";
// main core
import core from "COMP/feed/core";
// PROPERTIES
// =======================================================================... |
from mkdocs_apidoc.render import render_page
def test_render_page():
page = """
# Here is some markdown
{{ auto_object("mkdocs_apidoc.render.markdown") }}
"""
rendered = render_page(page)
print(rendered)
|
import pytest
from _pytest import python
from _pytest import runner
class TestOEJSKITSpecials:
def test_funcarg_non_pycollectobj(self, testdir): # rough jstests usage
testdir.makeconftest("""
import pytest
def pytest_pycollect_makeitem(collector, name, obj):
if name... |
/*
* ARM implementation of KVM hooks
*
* Copyright Christoffer Dall 2009-2010
*
* This work is licensed under the terms of the GNU GPL, version 2 or later.
* See the COPYING file in the top-level directory.
*
*/
#include "qemu/osdep.h"
#include <sys/ioctl.h>
#include <linux/kvm.h>
#include "qemu-common.h"
#i... |
#include <stdio.h>
int main()
{
printf("Hello, World!");
return 0;
}
|
class Reserva {
constructor(id, email, cantAsientos, funcion) {
this.id = id;
this.email = email;
this.cantAsientos = cantAsientos;
this.funcion = funcion;
}
}
exports.Reserva = Reserva; |
#pragma once
/**
* @file zmq_converter.h
* @author Julian Gaal
* @author Marcel Flottmann
*/
#include <zmq.hpp>
#include <zmq_addon.hpp>
namespace fastsense::msg
{
struct ZMQConverter
{
ZMQConverter() = default;
virtual ~ZMQConverter() = default;
/// default copy assignment operator
ZMQConv... |
/*
*
* Copyright 2017 gRPC 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 applicable la... |
#include <assert.h>
#include <ctype.h>
#include <limits.h>
#include <math.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char* readline();
char* ltrim(char*);
char* rtrim(char*);
char** split_string(char*);
int parse_int(char*);
/*
* Comp... |
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
uint64_t minimum(uint64_t a, uint64_t b);
uint64_t distance(int a, int b, uint64_t s[], int length);
uint64_t find_farthest_houses(uint64_t s[],int length);
int main(){
int houses;
scanf("%d", &houses);
uint64_t* sum = (uint64_t*) malloc... |
# -*- coding: utf-8 -*-
#
# 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
#... |