text stringlengths 3 1.05M |
|---|
from Tkinter import *
import tkMessageBox
alert = tkMessageBox.showinfo
import tkFont
SHOW_TOPBAR = True
class CowsAndBulls:
def __init__(self):
self.window = Tk()
self.window.title('Notes')
self.initFrameAndButtons()
self.makeFullScreen()
def makeFullScreen(self):
... |
#!/usr/bin/env python3
import socket
from transaction_server.logging import Logging
HOST = '192.168.4.2'
PORT = 4444
class QuoteServerClient():
@staticmethod
def get_quote(symbol, username, tx_num):
'''
Get price of stock by specified symbol.
Parameter:
symbol (str): The ... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow
*/
'use strict';
const requireNativeComponent = require('../../ReactNative/requireNativeComponent');
import ... |
/*
Highcharts JS v6.1.3 (2018-09-12)
Highcharts funnel module
(c) 2010-2017 Torstein Honsi
License: www.highcharts.com/license
*/
(function(a){"object"===typeof module&&module.exports?module.exports=a:"function"===typeof define&&define.amd?define(function(){return a}):a(Highcharts)})(function(a){(function(a){var ... |
/* istanbul instrument in package npmtest_sails_mysql */
/*jslint
bitwise: true,
browser: true,
maxerr: 8,
maxlen: 96,
node: true,
nomen: true,
regexp: true,
stupid: true
*/
(function () {
'use strict';
var local;
// run shared js-env code - pre-init
(function () {
... |
meetingAgendaBuilder.factory('MeetingService', function ($firebaseArray, $firebaseObject, FireBaseDataService) {
var ActivityType = ["Presentation", "Group_Work", "Discussion", "Break"];
this.days = [];
this.sharedDays = [];
this.parkedActivities = [];
this.loadMeetings = function (uid) {
... |
$("td button").on('click', function () {
var task_id = this.id;
task_id = task_id.replace('task', '');
var report = "#report" + task_id;
$.ajax({
type: 'POST',
url: '/report/show',
data: {
task_id: task_id,
},
success: function (response) {
... |
/*
* This header is generated by classdump-dyld 1.0
* on Sunday, September 27, 2020 at 11:41:01 AM Mountain Standard Time
* Operating System: Version 14.0 (Build 18A373)
* Image Source: /System/Library/PrivateFrameworks/Sharing.framework/Sharing
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias L... |
import math
from typing import Callable
import matplotlib.pylab as plt
import numpy as np
import scipy.optimize
import torch
from scipy.special import roots_legendre
from torch import nn
# Functions fixed_quad and _cached_roots_legendre are adapted from scipy but adapted to pytorch, and the case of
# integration fro... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayMarketingPartnershipsStopModel import AlipayMarketingPartnershipsStopModel
class AlipayMarketingPartnershipsStopRequest(object... |
import os
import socket
import time
import struct
from network import LoRa
import pycom
from machine import Pin
from onewire import DS18X20
from onewire import OneWire
import json
pycom.heartbeat(False)
print("DS18X20")
#DS18B20 data line connected to pin P10
ow = OneWire(Pin('P10'))
temp = DS18X20(ow)
# A basic pac... |
/* LIB */
const radial = require('../radial');
const params = radial.getParams();
/* MODULES */
const request = require('request');
const xmlConvert = require('xml-js');
/* CONSTRUCTOR */
(function () {
var SendRequest = {};
/* PRIVATE VARIABLES */
/* PUBLIC FUNCTIONS */
SendRequest.request = function ... |
//
// MDCSwipeOptions.h
//
// Copyright (c) 2014 to present, Brian Gesiak @modocache
//
// 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 th... |
"""
Generate toy graphs with a groundtruth entity graph.
"""
import random
import numpy as np
import networkx as nx
import matplotlib.pyplot as plt
def generate_graphs(N, n_subgraphs, n_subgraph_nodes, p_keep_edge=1,
density_multiplier=1, n_duplicate_names=5,
force_connectivity... |
const text = document.getElementById("text");
const letters = text.innerText;
const canvas = document.getElementById("canvasID");
const ctx = canvas.getContext("2d");
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
let array = [];
let adjustX = 6;
let adjustY = 0;
ctx.lineWidth = 3;
co... |
"use strict";
var utils = require('./utils');
var merge = require('./merge');
var errors = require('./deps/errors');
var call = utils.call;
/*
* A generic pouch adapter
*/
// returns first element of arr satisfying callback predicate
function arrayFirst(arr, callback) {
for (var i = 0; i < arr.length; i++) {
... |
require('./logo.svg');
|
import tensorflow as tf
import multiprocessing
ncpu=multiprocessing.cpu_count()
def _binary_parse_function_example(serialized_example_protocol):
'''
This function will read the tf records and reconvert them to the
appropriate format form the raw binary form
'''
#Parsing the binary feature
featu... |
from __future__ import absolute_import
# Copyright (c) 2010-2019 openpyxl
from openpyxl.descriptors.serialisable import Serialisable
from openpyxl.descriptors import (
Typed,
Integer,
Bool,
Alias,
Sequence,
)
from openpyxl.descriptors.excel import ExtensionList
from openpyxl.descriptors.nested impo... |
# coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen
https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.14.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import sys
import os
imp... |
/*
* (C) Copyright 2019 UCAR
*
* 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.
*/
#ifndef TEST_UFO_OBSFUNCTION_H_
#define TEST_UFO_OBSFUNCTION_H_
#include <iomanip>
#include <memory>
#include <string>
#include <v... |
import time
import unittest
from theano.compile.pfunc import pfunc
from theano import tensor
import numpy
import theano
import theano.tensor as T
# Skip test if cuda_ndarray is not available.
from nose.plugins.skip import SkipTest
import theano.sandbox.cuda as cuda_ndarray
if cuda_ndarray.cuda_available == False:
... |
import pandas, glob
from sklearn.naive_bayes import MultinomialNB as mod
from sklearn.ensemble import RandomForestClassifier as mod2
from sklearn.feature_extraction.text import CountVectorizer
#Choix du classifieurn i=1 NaivesBayes sinon RandomForest
#################################Partie 0
def choiceClassifier(i):... |
# -*- coding: utf-8 -*-
"""
Created on Thu Mar 14 09:20:19 2019
@author: Yunwen
"""
# -*- coding: utf-8 -*-
"""
Created on Sat Nov 3 21:14:30 2018
@author: Yunwen
"""
#from sklearn.preprocessing import Normalizer
import numpy as np
from scipy import io as spio
from sklearn.model_selection import... |
/*
* Copyright (c) 2004 Topspin Communications. All rights reserved.
* Copyright (c) 2005 Voltaire, Inc. All rights reserved.
* Copyright (c) 2006 Intel Corporation. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the term... |
var searchData=
[
['hamming_5fdistance_5fhistogram',['hamming_distance_histogram',['../structfaiss_1_1IndexPQ.html#ada06f5db85c91a4c140119a5897c6064',1,'faiss::IndexPQ']]],
['hamming_5fdistance_5ftable',['hamming_distance_table',['../structfaiss_1_1IndexPQ.html#aa131767383619bb5848b131502ada9cf',1,'faiss::IndexPQ']... |
# SPDX-License-Identifier: Apache-2.0
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import numpy as np # type: ignore
import onnx
from ..base import Base
from . import expect
from onnx import helper
# The below ... |
import opentracing
from flask import _request_ctx_stack as stack
class FlaskTracer(opentracing.Tracer):
'''
Tracer that can trace certain requests to a Flask app.
@param tracer the OpenTracing tracer implementation to trace requests with
'''
def __init__(self, tracer, trace_all_requests=False, ap... |
const mongoose = require("mongoose");
const User = require ('../models/user');
const chai = require('chai');
const chaiHttp = require('chai-http');
const server = require('../server');
const should = chai.should();
chai.use(chaiHttp);
describe('Authentication', ()=>{
describe('/POST auth', ()=>{
it('log... |
from sklearn_explain.tests.skl_datasets_reg import skl_datasets_test as skltest
skltest.test_reg_dataset_and_model("RandomReg_100" , "XGBRegressor_11")
|
/**
* Copyright (c) 2014, 2016, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
"use strict";
define(["ojs/ojcore", "jquery", "ojs/ojcomponentcore", "ojdnd"], function($oj$$66$$, $$$$60$$) {
function $TreeUtils$$() {
}
$TreeUtils$$.$_OJ_EXPANDED$ = "oj-expanded";
$TreeU... |
#!/usr/bin/env python3
# Copyright (c) 2013-2020 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Generate seeds.txt from Pieter's DNS seeder
#
import re
import sys
import dns.resolver
import collect... |
"""Abstraction to send a TunnelingRequest and wait for TunnelingResponse."""
from __future__ import annotations
from typing import TYPE_CHECKING
from xknx.knxip import (
CEMIFrame,
CEMIMessageCode,
KNXIPFrame,
TunnellingAck,
TunnellingRequest,
)
from .request_response import RequestResponse
if T... |
# -*- coding: utf-8 -*-
#
# Copyright 2020 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... |
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
# Also available under a BSD-style license. See LICENSE.
from typing import List, Optional, Tuple, NamedTuple
import tor... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[40],{698:function(e,t,n){!function(e){"use strict";function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}e.defineMode("d",function(t,n){var r,i=t.indentUnit,o=n.statementIndentUnit||i,a=n.keywords||{},l=n.builtin||{},u=n.blockKeywords||{},s... |
"""Functions to plot raw M/EEG data."""
# Authors: Eric Larson <larson.eric.d@gmail.com>
# Jaakko Leppakangas <jaeilepp@student.jyu.fi>
# Daniel McCloy <dan.mccloy@gmail.com>
#
# License: Simplified BSD
import copy
from functools import partial
import numpy as np
from ..annotations import _annotat... |
#pragma once
// @generated by tools/codegen/gen.py from DispatchKeyFunction.h
// NB: The implementing C++ file is RegisterDispatchKey.cpp
// The only #includes we need are for custom classes that have defaults in the C++ API
#include <c10/core/MemoryFormat.h>
#include <c10/core/Scalar.h>
#include <ATen/core/Reduction... |
from django.urls import path
from . import views
urlpatterns = [
path('', views.home, name='home'),
path('specialstock/', views.specialStock_list, name='specialStock_list'),
path('specialstock_detail/', views.specialStock_list_detail,
name='specialStock_list_detail'),
path('stocknews/', views... |
import subprocess
import multiprocessing
import uuid
import argparse
import os
import shutil
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Running pipeline with steps')
parser.add_argument('--input_folder', "-f" ,type=str, required=True,help="folder with mp3 files")
parser.add_ar... |
/******************************************************************************
*
* Copyright (C) 2013 - 2015 Xilinx, Inc. All rights reserved.
*
* 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 Softw... |
/*******************************************************************************
System Configuration Header
File Name:
configuration.h
Summary:
Build-time configuration header for the system defined by this project.
Description:
An MPLAB Project may have multiple configurations. This ... |
/*
* Copyright (c) 2016, Freescale Semiconductor, Inc.
* Copyright 2016 - 2020, NXP
* All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef _FSL_CLOCK_H_
#define _FSL_CLOCK_H_
#include "fsl_common.h"
/*! @addtogroup clock */
/*! @{ */
/*! @file */
/*************************************... |
import { useRef, useEffect } from "react";
export function useEventEmitter() {
const ref = useRef();
if (!ref.current) {
ref.current = {
subscriptions: new Set(),
emit: (val) => {
for (const subscription of ref.current.subscriptions) {
subscription(val);
}
},
u... |
import FWCore.ParameterSet.Config as cms
process = cms.Process("GeometryTest")
process.load("Geometry.CMSCommonData.hcalOnlyGeometryXML_cfi")
process.load("Geometry.HcalEventSetup.hcalTopologyIdeal_cfi")
#process.load("Configuration.StandardSequences.MagneticField_cff")
process.MessageLogger = cms.Service("MessageL... |
const RE = /\[([A-G][#b]?.*?)\]/gi
export default class ChordCompleter {
find (text) {
return [...text.matchAll(RE)].reduce((chords, [_, chord]) => {
chords[chord] = chords[chord] + 1 || 1
return chords
}, {})
}
getCompletions (editor, session, pos, prefix, callback) {
const chords = thi... |
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import <objc/NSObject.h>
@class NSMutableDictionary, NSMutableSet;
@protocol BackgroundLoadControllerDelegate;
__attribute__((visibility("hidden")))
@interface BackgroundLoadCont... |
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { addComment } from '../../actions/post';
const CommentForm = ({ postId, addComment }) => {
const [text, setText] = useState('');
return (
<div className='post-form'>
<div className... |
(function ($, Drupal, drupalSettings) {
"use strict";
Drupal.behaviors.purchase_part_pool = {
attach: function (context) {
$("#purchasepartspool").jqGrid({
url: Drupal.url('ajax/purchase/'+ drupalSettings.purchase.id +'/part/collection'),
datatype: "json",
height : 'auto',
co... |
data = {'level_index': 10013, 'move_count': '30',
'board_info': {(1, 6): {'cover': (64, 2), 'base': (50, 1)}, (1, 5): {'cover': (64, 2), 'base': (50, 1)},
(1, 4): {}, (1, 3): {'base': (50, 1), 'cover': (64, 2)}, (1, 2): {},
(2, 8): {'base': (50, 1), 'cover': (64, 2)... |
#!/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
# "L... |
import pytest
import numpy as np
from msanalysis.data_processing import calculate_abundance
npt = np.testing
@pytest.mark.parametrize(
"mol_formula, ans",
# fmt: off
[
("AlF3", {"mz": [83.97674829], "intensity": [1.0]}),
("AlCl3", {"mz": [131.88809666999998,133.8948063456 , 135.90151602... |
const fs = require('fs');
if (process.env.GCP_KEY_FILE) {
fs.writeFile(process.env.GCP_KEY_FILE, process.env.GCP_CRED, err => {
if (err) {
console.error(`Uh-oh.\n${err}`);
} else {
console.log(`We're smooth sailing cap'n.`);
}
});
} else {
console.log(`GCP_KEY_FILE not found.`);
}
|
# Copyright 2017 Robert Csordas. 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 law or a... |
# Copyright (c) 2019 UniMoRe, Matteo Spallanzani
import os
import torch
import torchvision
from torchvision.transforms import RandomResizedCrop, RandomHorizontalFlip, Resize, CenterCrop, ToTensor, Normalize, Compose
_ImageNet = {
'Normalize': {
'mean': (0.485, 0.456, 0.406),
'std': (0.229, 0.224... |
class AppCtrl {
constructor() {
this.url = 'https://github.com/preboot/angular-webpack';
}
}
export default AppCtrl;
|
#!/usr/bin/env node
import * as fs from 'fs';
import * as module from 'module';
import * as path from 'path';
import puppeteer from 'puppeteer'
import { createServer } from 'vite'
import { options } from './optionsParser.js';
import { MochaProtocolPlayer } from './mochaProtocolPlayer.js';
import { MochaProtocolReport... |
import FWCore.ParameterSet.Config as cms
process = cms.Process("L1ConfigValidation")
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.MessageLogger.cout.placeholder = cms.untracked.bool(False)
process.MessageLogger.cout.threshold = cms.untracked.string('DEBUG')
process.MessageLogger.debugModules = cms.un... |
import unittest
from pathlib import Path
import numpy as np
from nuplan.common.actor_state.ego_state import EgoState
from nuplan.common.actor_state.scene_object import SceneObject
from nuplan.common.actor_state.state_representation import StateSE2, StateVector2D, TimePoint
from nuplan.common.actor_state.tracked_objec... |
from datetime import datetime, time, timedelta
import operator
import warnings
import numpy as np
from pandas._libs import NaT, Timestamp, index as libindex, lib, tslib as libts
from pandas._libs.tslibs import ccalendar, fields, parsing, timezones
from pandas.util._decorators import Appender, Substitution, cache_read... |
from typing import List
def get_attachment_original_filename(filename: str, attachments: List) -> str:
"""Get actual urlencoded filename from database
by human-readable attachment filename
"""
# Find requested attachment from post attachments
attachments_ = [
attachment
for attach... |
# RT.Backend - Typed
from typing import (
TYPE_CHECKING, TypedDict, Callable, Coroutine, Literal,
Optional, Union, Any, Dict, List
)
from types import SimpleNamespace
from sanic import Sanic, Blueprint, response
from sanic.request import Request
from discord.ext import commands
from miko import Manager
from ... |
// Stubbed test.
describe('repositories-table Component', () => {
it('base test', () => {
expect(1).toEqual(1);
});
});
|
from typing import Union, List
from csdl.core.custom_operation import CustomOperation
from csdl.core.node import Node
class Subgraph(Node):
"""
Class for declaring an input variable
"""
def __init__(
self,
name: str,
submodel,
*args,
promotes=None,
min_p... |
#pragma once
#include <windows.h>
#include <tchar.h>
#include <cstdint>
#include <atomic>
#include "logger.h"
#include "alpaca/client.h"
namespace alpaca {
/**
* Zorro currently does not persist order's UUID, after restarting it will use an interger which Zorro maintained internally to
* query trades. Th... |
from utils import Point
class Vertex(Point):
def __init__(self, x, y):
Point.__init__(self, x, y)
self.edges = set([])
self.triangles = set([])
def push(self,pnt):
return (set([]),set([])), (set([]),set([])), (set([]),set([]))
|
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
... |
__version__ = "0.1.0"
from typing import Any, Dict
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
async def root() -> Dict[str, Any]:
return {"message": "Hello World"}
|
import abc
class BaseModel(object):
__metaclass__ = abc.ABCMeta
def __init__(self, name):
self.name = name
@abc.abstractmethod
def log_likelihood(self, data):
raise NotImplementedError("No log-likelihood function implemented!")
@abc.abstractmethod
def expectation(self, data)... |
import datetime
import time
from django.db import models
from django.db.models import Q
from django.db.utils import DatabaseError
from django.test import TestCase
from django.utils import unittest
from google.appengine.api.datastore import Get, Key
from ..db.utils import get_cursor, set_cursor
from .testmodels impor... |
/* ------------------------------------------------------------------------- *
* Copyright 2002-2021, OpenNebula Project, OpenNebula Systems *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); you may *
* n... |
class VersionHelper {
static compare (a, b) {
let pa = a.split('.');
let pb = b.split('.');
for (let i = 0; i < 3; i++) {
let na = Number(pa[i]);
let nb = Number(pb[i]);
if (na > nb) {
return 1;
}
if (nb > na) {
return -1;
}
if (!isNaN(na) && i... |
define(['exports', 'backbone', 'models/submission_model', 'config'], function (exports, _backbone, _submission_model, _config) {
'use strict';
/*
* @Author: Lutz Reiter, Design Research Lab, Universität der Künste Berlin
* @Date: 2016-05-04 11:38:41
* @Last Modified by: lutzer
* @Last Modified time: 2016-05-... |
const config = require('./src/data/config')
require('dotenv').config({
path: `.env.${process.env.NODE_ENV}`
})
module.exports = {
siteMetadata: {
title: config.defaultTitle,
description: config.defaultDescription,
author: config.author,
siteUrl: config.url
},
plugins: [
'gatsby-plugin-sass... |
--- ckcdeb.h.orig 2010-08-23 16:30:56.000000000 +0300
+++ ckcdeb.h
@@ -4532,7 +4532,9 @@ extern int errno;
following is an anachronism and should be the execption rather than the
rule.
*/
+#ifndef __DragonFly__
extern int errno;
+#endif
#endif /* __GLIBC__ */
#endif /* OS2 */
#endif /* VMS */
|
import _regeneratorRuntime from 'babel-runtime/regenerator';
import _asyncToGenerator from 'babel-runtime/helpers/asyncToGenerator';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import * as RxCollection from './RxCollection';
import * ... |
const { assert } = require('chai')
const BraspagPagador = require('../../src/Modulos/Pagador')
describe('Módulo `Pagador`', () => {
it('não deve ser `undefined`', () => {
assert.exists(BraspagPagador)
})
})
|
#!/home/nimo/Documents/Django-1/venv/bin/python3.8
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'django-admin.py was deprecat... |
function newEthereumBlockchainSpace() {
const MODULE_NAME = 'Blockchain Space'
let thisObject = {
container: undefined,
physics: physics,
draw: draw,
getContainer: getContainer,
finalize: finalize,
initialize: initialize
}
thisObject.container = newConta... |
/*!
* Qoopido.js library v3.3.2, 2014-5-24
* https://github.com/dlueth/qoopido.js
* (c) 2014 Dirk Lueth
* Dual licensed under MIT and GPL
*/
!function(e){var r=[];Object.defineProperty||r.push("./queryselectorall"),window.qoopido.register("polyfill/document/queryselector",e,r)}(function(e,r,t,l,o,u){"use strict";retur... |
from geld import __version__
def test_version():
assert __version__ == "0.2.1"
|
/*********************************************************
* Copyright (C) 2010-2019 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation version 2.1 an... |
/* $NetBSD: bioscall.h,v 1.5 1998/10/03 02:14:52 jtk Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by John Kohl.
*
* Redistribution and use in source and binary forms, with or without
* modificat... |
# -*- coding: utf-8 -*-
"""
The MIT License (MIT)
Copyright (c) 2015-2019 Rapptz
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 u... |
"""
Renders the sphere using the render pipeline
"""
import _tmp_material as material
import sys
from panda3d.core import load_prc_file_data, Vec4
from direct.showbase.ShowBase import ShowBase
class Application(ShowBase):
def __init__(self):
sys.path.insert(0, "../../")
load_prc_file_data("",... |
//This is the main class employee
class Employee {
constructor(name, id, email) {
this.name = name;
this.id = id;
this.email = email;
this.role = "Employee";
}
getName() {
return this.name;
}
getId() {
return this.id;
}
getEmail() {
re... |
"""Support for AdGuard Home."""
from distutils.version import LooseVersion
import logging
from typing import Any, Dict
from adguardhome import AdGuardHome, AdGuardHomeConnectionError, AdGuardHomeError
import voluptuous as vol
from homeassistant.components.adguard.const import (
CONF_FORCE,
DATA_ADGUARD_CLIENT... |
from pyradioconfig.calculator_model_framework.interfaces.iphy import IPhy
from pyradioconfig.parts.ocelot.profiles.Profile_WiSUN import Profile_WiSUN_Ocelot
##########SUN FSK PHYs (exposed using Base Profile)##########
class PHYS_Studio_Base_Standard_SUNFSK_Ocelot(IPhy):
def SUN_FSK_base(self, phy, model):
... |
from .base_dao import Component,ComponentProps
from .base_dao import Session
from com.aaron.bean.component_property import ComponentProperty
from com.aaron.bean.component_prop import ComponentProp
def addComponent(componentProperty):
'''添加component'''
if(componentProperty is None):
return 0;
# 创建... |
module.exports.config = {
name: "get2fa",
version: "1.0.1",
hasPermssion: 0,
credits: "Jukie~",
description: "Lấy mã 2fa cho bạn",
commandCategory: "Tiện ích",
usages: "[2FA CODE]",
cooldowns: 5
};
module.exports.run = async ({ api, event,args }) => {
const axios = global.nodemodule["axios"];
le... |
# Generated by Django 4.0.2 on 2022-03-01 19:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('store', '0004_rename_shippingddress_shippingaddress_and_more'),
]
operations = [
migrations.RemoveField(
model_name='order',
... |
'use strict';
// Vinicio - this is similar to module.exports = {};, but you are giving it an easier to use name
let validator = module.exports = {};
/**
* Based on a set of rules, is the input valid?
* TODO: Define the rules ... how do we send them in? How do we identify?
* @param input
* @param rules
* @returns... |
const { version } = require('../../package.json');
const setupSwagger = (path, config) => {
const host = config.getOrElse('EXTERNAL_HOST', 'localhost:3001');
return {
routePrefix: path,
exposeRoute: true,
swagger: {
info: {
title: 'Pikcha',
description: 'Image performace optimize... |
# Generated by Django 2.2.7 on 2019-11-30 21:39
from django.db import migrations, models
import django.db.models.deletion
import knowledgebase.validators
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Lidwoo... |
from typing import Optional, List
import aiohttp_jinja2
from aiohttp import web
from aiohttp.web_exceptions import HTTPNotFound
from aiohttp_apispec import docs, response_schema, querystring_schema
from app.rnb.schemas import (
AccomodationList,
BaseAccomodation,
Accomodation,
GetByIdRequest,
Stat... |
import React from 'react'
import { shallow } from 'enzyme'
import { TouchableNativeFeedback } from 'react-native-gesture-handler'
import BaseButton from '../BaseButton'
describe('(Component) BaseButton', () => {
it('should render with defaults', () => {
const result = shallow(
<BaseButton>
test
... |
import numpy as np
#class Constants():
def compnn(a, b):
if (min(a, b)/max(a,b)) >= 0.99:
return True
else:
return False
class Star():
def __init__(self, settings, mass = 1, X = 0.7, Y = 0.24, Pc = 1,
Tc = 1, L = 1, R = 1):
self.M_sun = 1.989e33 #cgs
self.L_sun = 3.847... |
const extractdata = require('./extractData');
extractdata('c:\\users\\alono\\desktop\\filesForWork\\testFolder');
|
/*
* Copyright (c) 2013 Jeff Moguillansky
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any... |
/* global angular, alert */
;(function () {
angular.module('resilienzManager')
.controller('resilienzManager-Layout', ['$scope', 'resilienzManagerDataProvider', '$uibModal', '$rootScope', '$window', function ($scope, resilienzManagerDataProvider, $uibModal, $rootScope, $window) {
var self = this
self.... |