text
stringlengths
3
1.05M
/* * jQuery FadeThis - v1.0.0 * A lightweight, simple, yet powerful jQuery plugin for appear-as-you-scroll features. * http://jqueryfadethis.com * * Made by Zol * Under MIT License */ !function(a,b,c){var d=null,e=[],f=a(b),g=function(){};g.prototype={globals:{pluginName:"fadeThis",bufferTime:300},defaults:...
//START OF GLOBAL VAR'S //STORAGE ARRAY FOR SETTING and GETTING. var cityHistory = [] //SET VAR SET CITYHISTORY STORAGE UNIVERSAL VARIBLE var memorySet= function () { localStorage.setItem("cityHistory", JSON.stringify(cityHistory)) } //SET VAR MY CITY RETRIEVE var memoryLoad = function () {cityHistory = JSON...
(function(exports) { "use strict"; // lookup-tables var BTN = { // Face (main) buttons FACE_1: 0, FACE_2: 1, FACE_3: 2, FACE_4: 3, // Top/bottom shoulder buttons LEFT_SHOULDER: 4, RIGHT_SHOULDER: 5, LEFT_SHOULDER_BOTTOM: 6, RIGHT_SHOULDER_BOTTOM: 7, SELECT:...
# Copyright 2018 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...
import unittest import boto3 import os from moto import mock_ec2 from spotty.providers.aws.resource_managers.key_pair_manager import KeyPairManager from spotty.providers.instance_manager_factory import PROVIDER_AWS class TestKeyPairResource(unittest.TestCase): def test_key_path(self): region = 'eu-centra...
/* Declarations for math functions. Copyright (C) 1991-1993,1995-1999,2001,2002 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library 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...
# Generated by Django 3.2.12 on 2022-02-22 17:56 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0002_user_stripe_account_id'), ] operations = [ migrations.AddField( model_name='user', name='first_name',...
(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{TP0X:function(l,n,e){"use strict";e.r(n);var u=e("CcnG"),d=function(){},a=e("BHnd"),t=e("y4qS"),o=e("pIm3"),r=e("dJrM"),i=e("seP3"),c=e("Wf4p"),m=e("Fzqc"),p=e("dWZg"),f=e("b716"),s=e("gIcY"),h=e("/VYK"),v=e("b1+6"),g=e("4epT"),b=function(){function l(){this.dis...
import argparse import os import sys import math import pysam from pybedtools import BedTool # I didn't actually write this function, Aaron Odell did, but I've made modifications and a couple comments class Variant: def __init__(self,chromosome,position,samfile): self.chromosome = chromosome self.position = pos...
# -*- coding: utf-8 -*- from troposphere import Join, Output from troposphere import Parameter, Ref, Tags import troposphere.efs as efs import troposphere.ec2 as ec2 from constants import * from base import CloudformationAbstractBaseClass class Efs(CloudformationAbstractBaseClass): def __init__(self, sceptre_us...
'use strict'; /** Allows to save objects to HTML5 local storage. * However, it can only save properties, not functions. */ var ObjectStorage = (function() { try { var _s = localStorage; return { save: function(key, item) { _s.setItem(key, JSON.stringify(item, function (key, val) { i...
import * as React from "react"; import Svg, { Path } from "react-native-svg"; function SvgHammer(props) { return <Svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 512 512" {...props}><Path d="M280.16 242.79l-26.11-26.12a32 32 0 00-45.14-.12L27.38 384.08c-6.61 6.23-10.95 14.17-11.35 23.06a...
import click import socket import json import time @click.group() def detect(): """Detect devices and applications""" pass @detect.command() @click.option('--socket_port', default=9434, help='socket port to broadcast over') @click.option('--timeout', default = 5, help='max scan time') @click.option('--challen...
// Copyright (C) 2019 by Pedro Mendes, Rector and Visitors of the // University of Virginia, University of Heidelberg, and University // of Connecticut School of Medicine. // All rights reserved. // Copyright (C) 2017 - 2018 by Pedro Mendes, Virginia Tech Intellectual // Properties, Inc., University of Heidelberg, and...
!function(e){const l=e.fr=e.fr||{};l.dictionary=Object.assign(l.dictionary||{},{"%0 of %1":"%0 sur %1","Align center":"Centrer","Align left":"Aligner à gauche","Align right":"Aligner à droite",Aquamarine:"Bleu vert",Black:"Noir","Block quote":"Citation",Blue:"Bleu",Bold:"Gras","Bulleted List":"Liste à puces",Cancel:"An...
chrome.commands.onCommand.addListener((command) => { let openWithNewGroup = false; if (command === 'open-tab-new-group') { openWithNewGroup = true; } chrome.tabs.query({ active: true, currentWindow: true }, (tabs) => { const selectingTab = tabs[0]; chrome.tabs.create({ active: true, index: selectin...
const path = require('path') const webpack = require('webpack') module.exports = () => { const plugins = [ // Create global constants. new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV), 'process.env.PACKAGE_VERSION': JSON.stringify(process.env.PACKAGE_VERSION...
window._ = require('lodash'); window.Popper = require('popper.js').default; /** * We'll load the axios HTTP library which allows us to easily issue requests * to our Laravel back-end. This library automatically handles sending the * CSRF token as a header based on the value of the "XSRF" token cookie. */ window....
import fboxlib fboxlib.open() ba = fboxlib.boxarray([[(0,0), (100,100)]]) la = fboxlib.layout(ba) mf = fboxlib.multifab(la, nc=3, ng=0) print "#"*80 print "# before regridding" la.echo() fab = mf.fab(1) fab.array[...] = 1.0 fab.array[10:20,10:20] = 2.0 fab.array[50:60,50:60] = 2.0 def tag_boxes(mf...
/* * Copyright (C) 2006, 2008, 2010 Apple Inc. All rights reserved. * Copyright (C) 2010 Google Inc. 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...
import React from 'react'; import PropTypes from 'prop-types'; import { Modal } from '../../index'; const AboutModal = ({ children, className, show, onHide, productTitle, logo, altLogo, trademarkText, closeText, ...rest }) => ( <Modal className={className} contentClassName="about-modal-p...
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-02-04 20:47 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('polls', '0002_auto_20180131_2247'), ] operations = [ migrations.RemoveField( ...
from discord.ext import commands import discord import cogs import random import asyncio import requests import json from discord import File import os bot = commands.Bot(command_prefix='$') class NsfwCog(commands.Cog): def __init__(self, bot): self.bot = bot @commands.command() ...
import abc import datetime import json import logging import os import threading import time import traceback import warnings from typing import Optional, Union, Dict, Callable, Type, List import redis from .API import Template from .Res.ToolKit import count_ordinal, get_current_path, MarketData, BarData, TradeData, ...
''' Intel Scene Classification Challenge 2019 Yash Bhalgat, yashbhalgat95@gmail.com ''' import torch import torch.nn as nn import torch.utils.data as data import torchvision.datasets as datasets import torchvision.models as models import torchvision.transforms as transforms import numpy as np from PIL import Image im...
import _createClass from"@babel/runtime/helpers/createClass";import _classCallCheck from"@babel/runtime/helpers/classCallCheck";import _possibleConstructorReturn from"@babel/runtime/helpers/possibleConstructorReturn";import _getPrototypeOf from"@babel/runtime/helpers/getPrototypeOf";import _assertThisInitialized from"@...
//@flow import React from "react"; import Svg, { Path } from "react-native-svg"; type Props = { size: number, color: string }; export default function Qtum({ size, color }: Props) { return ( <Svg viewBox="0 0 16 16" width={size} height={size}> <Path fill={color} d="M13.399 11.881L16 14...
# Copyright European Organization for Nuclear Research (CERN) # # 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 # # Authors: # - Mario Lassnig, <mar...
# Copyright (c) 2010-11, Walter Bender, Tony Forster # This procedure is invoked when the user-definable block on the "extras" # palette is selected. # Usage: Import this code into a Python (user-definable) block; when # this code is run, the contents of the clipboard will be appended to # the FILO heap. def mybloc...
from fastapi import APIRouter from fastapi.responses import JSONResponse # Importing Eland and low-level Elasticsearch clients for comparison import eland as ed from eland.conftest import * from elasticsearch import Elasticsearch from elasticsearch_dsl import Search, Q # Import pandas and numpy for data wrangling impo...
const eslintrc = { extends: ['eslint-config-airbnb'], env: { browser: true, node: true, jasmine: true, jest: true, es6: true, }, parser: 'babel-eslint', plugins: [ 'markdown', 'react', 'babel', ], rules: { 'func-names': 0, 'arrow-body-style': 0, 'react/sort-comp...
#pragma once #include "src/ree.h" #include "src-compile/compile.h" #include "src-match/match.h" #include "src-search/search.h"
import os import torch import torch.nn as nn from torch.autograd import Variable from torch.nn import L1Loss from torch.nn import MSELoss from torch.nn import NLLLoss from torch.nn import BCELoss from torch.nn import Sigmoid from torch.nn import LogSigmoid from torch.nn import Softmax from torch.nn import LogSoftmax ...
deepmacDetailCallback("70b3d5d16000/36",[{"d":"2019-07-24","t":"add","s":"ieee-oui36.csv","a":"3400 S West Temple Salt Lake City US 84115","c":"US","o":"Monnit Corporation"}]);
from abc import ABC from typing import Union class Regex(ABC): """Base class.""" # Metacharacter ANY = "." DOT = "\\." DIGIT = "\\d" WHITESPACE = "\\s" WORD_CHARS = "\\w" # Equivalent [A-Za-z0-9_] SLASH = "\\/" # Metacharacter (Negate) NOT_DIGIT = "\\D" NOT_WHITESPACE = "...
import Vue from 'vue' import SvgIcon from '@/components/SvgIcon'// svg component // register globally Vue.component('svg-icon', SvgIcon) const req = require.context('./svg', true, /\.svg$/) const requireAll = requireContext => requireContext.keys().map(requireContext) requireAll(req)
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1.20.7 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unitte...
# coding=utf-8 """ Conll format document writer, Not all columns filled with real data, some always contains '-'. """ from corefgraph.output.basewriter import BaseDocument from corefgraph.constants import SPEAKER, FORM, ID, LEMMA, NER, POS __author__ = 'Josu Bermudez <josu.bermudez@deusto.es>' class ConllDocument...
from __future__ import annotations from typing import NamedTuple class SetSyringeParameters_Responses(NamedTuple): pass
/* * QEMU CG3 Frame buffer * * Copyright (c) 2012 Bob Breuer * Copyright (c) 2013 Mark Cave-Ayland * * 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 wit...
import React from "react" import { IoIosLink } from "react-icons/io" const TitleAnchored = ({ children, top }) => ( <a href={`#${children}`} className="anchored-title" style={{ marginTop: top }} > <IoIosLink className="anchored-icon" size={16} /> <h3 id={children} className="anchored-text"> ...
var myHeading = document.querySelector('h1'); myHeading.textContent = 'Hello world!'; var myButton = document.querySelector('button'); myButton.onclick = function() { setUserName(); } function multiply(num1,num2) { var result = num1 * num2; return result; } document.querySelector('html').onclick =...
import Vue from "vue"; import { getField, updateField } from "vuex-map-fields"; const mutations = { updateField, incrementEdited(state, count) { state.totalEdited += count; }, updateMileagesheet(state, value) { // Create a deep copy of 'mileagesheet' if there was any change // This avoids having to...
import React, { Component } from "react"; class FOIA extends Component { render() { return( <div> <h2>an empty foia request page!</h2> <h3>to be filled with content soon</h3> </div> ) } } export default FOIA;
import nodeUtil from"../core/utils/node-util";Component({externalClasses:["l-class-header","l-class-active","l-class-inactive","l-class-line","l-class-tabimage","l-header-class","l-active-class","l-inactive-class","l-line-class","l-tabimage-class","l-content-class"],relations:{"../tabpanel/index":{type:"child"},linked(...
def my_generator(): print 'starting up' yield 1 print "workin'" yield 2 print "still workin'" yield 3 print 'done' for n in my_generator(): print n
//============================================================================== // This file is part of the SPNC project under the Apache License v2.0 by the // Embedded Systems and Applications Group, TU Darmstadt. // For the full copyright and license information, please view the LICENSE // file that was distributed...
import {FETCH_WEATHER} from '../actions/index'; export default function(state = [], action){ switch(action.type){ case FETCH_WEATHER: return [action.payload.data, ...state]; } return state; }
import { defaults, isNil, isNumber, isInteger, isString, isArray, isFunction, isFinite } from "lodash"; import fecha from "fecha"; let resources = { fieldIsRequired: "This field is required!", invalidFormat: "Invalid format!", numberTooSmall: "The number is too small! Minimum: {0}", numberTooBig: "The number is t...
from sklearn.model_selection import train_test_split def split_df(df, test_ratio=0.2, target=None, random_state=1337): """ Split a dataset into training set and test set df -> (train, test) -> (X_train, X_test, y_train, y_test) :param df: a DataFrame to be split :param test_ratio: ratio of ...
#include <stdint.h> const uint8_t custom_c1[ 54 ] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0...
from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status from profiles_api import serializers from rest_framework import viewsets class HelloAPIView(APIView): """Test APIView""" serializer_class = serializers.HelloSerializer def get(self, req...
import numpy as np import shap from src.predictive_model.predictive_model import drop_columns def shap_explain(predictive_model, full_test_df, encoder): test_df = drop_columns(full_test_df) explainer = _init_explainer(predictive_model.model, test_df) importances = _get_explanation(explainer, predictive_...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from .. import TestUnitBase class TestAtBash(TestUnitBase): def test_fo8(self): unit = self.load() self.assertEqual( 'If you can solve this, try FLARE-ON 8', str(B'Ru blf xzm hloev gsrh, gib UOZIV-LM 8' | unit) )
module.exports={A:{A:{"2":"I D F E A B hB"},B:{"1":"C O H Q J K L U x M VB"},C:{"1":"0 1 2 3 4 5 6 7 8 9 n o p q r s t u v w P y z KB BB IB DB EB FB GB CB T N S LB MB NB OB PB QB RB SB TB U x","2":"rB JB G V I D F E A B C O H Q J K L W X Y Z a b c d e f g h i j k l m oB gB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 p q r s t u v w ...
import argparse import os import numpy as np from utils import loader, processor import torch from torchlight.torchlight import ngpu import warnings warnings.filterwarnings("ignore") base_path = os.path.dirname(os.path.realpath(__file__)) data_path = os.path.join(base_path, '../datasets') dataset = 'edin' coords = ...
import resolve from 'rollup-plugin-node-resolve'; import common from 'rollup-plugin-commonjs'; import json from 'rollup-plugin-json'; import replace from 'rollup-plugin-re'; import typescript from 'rollup-plugin-typescript'; export default { input: 'lib/index.ts', output: { file: 'dist/bundle.js', format: ...
/*global describe, beforeEach, it */ 'use strict'; var helpers = require('yeoman-generator').test; var testutil = require('./util'); describe('nemo generator', function () { // Disable timeout since we're doing multiple installs this.timeout(Infinity); it('creates expected cucumberjs files with yahoo example',...
(function (factory) { if (typeof module === "object" && typeof module.exports === "object") { var v = factory(require, exports); if (v !== undefined) module.exports = v; } else if (typeof define === "function" && define.amd) { define(["require", "exports"], factory); } })(functio...
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // ...
#!/usr/bin/env python3 # Copyright (c) 2012-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Extract _("...") strings for translation and convert to Qt stringdefs so that they can be picked up by...
import {StyleSheet} from 'react-native'; import {colors, fonts, metrics} from '../../styles'; const HEIGTH_PERCENTE = 0.03; const WIDTH_PERCENTE = 0.06; const styles = StyleSheet.create({ container: { alignItems: 'flex-start', justifyContent: 'space-between', elevation: metrics.baseElevation, borde...
#!/usr/bin/python from PyQt4.QtCore import * from PyQt4.QtGui import * from PyQt4.QtNetwork import * from form import Ui_PinGenerator import sys def mm_in_mil(mm): return int(mm*39.3700787*10) class MainWindow(QMainWindow, Ui_PinGenerator): def __init__(self, parent = None): QMainWindow.__init__(self, parent) ...
#!/usr/bin/env python """ * Project : HistFitter - A ROOT-based package for statistical data analysis * * Package : HistFitter * * Script : SysTable.py * * Created : November 2012 ...
from setuptools import setup setup(name='serial_json', version='0.1', description='Serial JSON Reader ', url='http://github.com/stevarino/serial_json', author='Stephen O\'Connor', author_email='oconnor39@gmail.com', license='MIT', packages=['serial_json'], zip_safe=False...
import io import pytest from mitmproxy.io import tnetstring from mitmproxy import flowfilter from mitmproxy.exceptions import Kill, ControlException from mitmproxy.test import tflow class TestWebSocketFlow: def test_copy(self): f = tflow.twebsocketflow() f.get_state() f2 = f.copy() ...
import _plotly_utils.basevalidators class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): def __init__(self, plotly_name="ids", parent_name="sunburst", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, anim=k...
// source: google/ads/googleads/v3/services/distance_view_service.proto /** * @fileoverview * @enhanceable * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! var jspb = requ...
// // Created by wami on 2020/07/24. // #ifndef CHIN_UP_COUNTER_SOUND_H #define CHIN_UP_COUNTER_SOUND_H #include <Arduino.h> class Buzzer { public: void begin(); void startCountUp(); void startCountDown(); void startCountEnd(); }; #endif // CHIN_UP_COUNTER_SOUND_H
#!/usr/bin/env python # Helpful little script that spits out a comma-separated list of # language codes for Qt icons that should be included # in binary ONEM Core distributions import glob import os import re import sys if len(sys.argv) != 3: sys.exit("Usage: %s $QTDIR/translations $BITCOINDIR/src/qt/locale"%sys.a...
module.exports = { title: 'ESMS', /** * @type {boolean} true | false * @description Whether need tagsView */ tagsView: true, /** * @type {boolean} true | false * @description Whether fix the header */ fixedHeader: true, /** * @type {boolean} true | false * @description Whether show...
# # 単純なリスト # """ リスト形式のデータを代入するresolver """ from typing import List from blueprintpy.core import Argument from .base import Resolver class ArrayResolver(Resolver): """__resolver_type__: :code:`array` """ __resolver_type__ = "array" @staticmethod def resolve(argument: Argument) -> Argument: ...
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Removing M2M table for field ingredients on 'Recipe' db.delete_table('recipes_recipe_ingredients') ...
const ComponentView = require('./ComponentTextView'); module.exports = ComponentView.extend({ render(...args) { ComponentView.prototype.render.apply(this, args); // I need capturing instead of bubbling as bubbled clicks from other // children will execute the link event this.el.addEventListener('cli...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
/* * This header is generated by classdump-dyld 1.5 * on Tuesday, November 10, 2020 at 10:14:03 PM Mountain Standard Time * Operating System: Version 14.2 (Build 18K57) * Image Source: /System/Library/PrivateFrameworks/ScreenRea...
// TODO: Create a function that returns a license badge based on which license is passed in // If there is no license, return an empty string function renderLicenseBadge(license) { if (license === 'MIT License') { return '![License Badge](https://img.shields.io/static/v1?label=License&message=MIT&color=success)';...
# -*- coding: utf-8 -*- # # michael a.g. aïvázis # orthologue # (c) 1998-2020 all rights reserved # # access to the framework import pyre # my base class from .Executive import Executive class Script(Executive, family="pyre.shells.script"): """ A shell that invokes the main application behavior and then exi...
'use strict'; let maxClicks = 25; let attempt =0; let div = document.getElementById('container'); let leftImageElement = document.getElementById('leftimage'); let middleImageElement = document.getElementById('middleimage'); let rightImageElement = document.getElementById('rightimage'); let arrOfObject = []; let na...
export * from "./linear-generator.js" export * from "./kruskal-generator.js" export * from "./backtrack-generator.js" export * from "./recursive-division-generator.js"
import express from 'express'; import _ from 'lodash'; import Joi from 'joi'; import objectId from 'joi-objectid'; import mongoose from 'mongoose'; import usersRoutes from './routes/users-route.js'; const app = express(); const PORT = process.env.PORT || 3000; mongoose.connect('mongodb://localhost/lavasandatabase', ...
import sys import json from slate_base import api def main(in_args=None): data_arg = in_args[-1] in_data = json.loads(data_arg) api.create_slates( in_data["fill_data"], in_data.get("slate_name"), in_data.get("slate_data"), in_data.get("data_output_json") ) if __name__...
import React from 'react'; import { Form, FormControl, FormGroup, Button } from 'react-bootstrap'; import { Link } from 'react-router-dom'; // arguments received: this.props, this.handleNumAdultChange.bind(this) // this function outputs the JSX form for number of adults staying //=======================================...
""" Copyright 2021-2021 The jdh99 Authors. All rights reserved. 配置文件 Authors: jdh99 <jdh821@163.com> """ # 系统参数 LOCAL_IA = 0x2141000000000005 LOCAL_IP = '0.0.0.0' LOCAL_PORT = 12931 local_pwd = '' def init(): global local_pwd print('please input password:') local_pwd = input()
#ifndef __UTIL_H__ #define __UTIL_H__ NTSTATUS UF_LockUserBuffer( IN PVOID UserBuffer, IN ULONG UserBufferSize, IN LOCK_OPERATION LockOperation, OUT PMDL *pMdl, OUT PVOID* SystemBuffer ); NTSTATUS UF_LockUserBufferLight( IN PVOID UserBuffer, IN ULONG UserBufferSize, OUT PMDL *pMdl, OUT PVOID* ...
from collections import OrderedDict class MetricTracker: def __init__(self, opt): self.opt = opt self.metrics = {} def moving_average(self, old, new): s = 0.98 return old * (s) + new * (1 - s) def update_metrics(self, metric_dict, smoothe=True): default_smoothe = ...
/** * @projectName fast-csv * @github https://github.com/C2FO/fast-csv * @includeDoc [Test Coverage] [../docs-md/coverage.html] * @header * * [![build status](https://secure.travis-ci.org/C2FO/fast-csv.png)](http://travis-ci.org/C2FO/fast-csv) * # Fast-csv * * This is a library is aimed at providing fast CSV p...
typedef struct { double r, Az; } VECT; #define PROJ_PARMS__ \ struct { /* control point data */ \ double phi, lam; \ double cosphi, sinphi; \ VECT v; \ XY p; \ double Az; \ } c[3]; \ XY p; \ double beta_0, beta_1, beta_2; #define PJ_LIB__ #include <projects.h> PROJ_HEAD(chamb, "Chamberlin Trimetric") "\n\...
/* Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license/ */ CKEDITOR.lang['eu']={"editor":"Testu aberastuaren editorea","editorPanel":"Testu aberastuaren editorearen panela","common":{"editorHelp":"Sakatu ALT 0 lagunt...
window._CCSettings={platform:"win32",groupList:["platform","ball","wall","brick","top","bullet"],collisionMatrix:[[false,true,true,true,false],[true,false,true,true,true],[true,true,false,true,false],[true,true,true,false,null,true],[false,true,false,false,false,true],[false,false,false,true,true,false]],rawAssets:{ass...
const Koa = require("koa"); const bodyParser = require("koa-bodyparser"); const cors = require("koa2-cors"); const Init = require("./middlewares/init"); // require("./models/user"); const app = new Koa(); app.use(cors()); app.use(bodyParser()); Init.initCore(app); app.listen(8088, () => { console.log("The Serv...
// *********************************************************************************** // ID of the Google spreadsheet // *********************************************************************************** // Make sure your spreadsheet is published (File > Publish to the web…) var spreadsheetId = "1rQ7oRvCVX7mmW3qW...
/* * * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Copyright 2007-2019 Broadcom Inc. All rights reserved. * * File: mcast.c * Purpose: Tracks and manages L2 Multicast tables */ #include <shared/bsl.h> #incl...
//================================================================================================== //FIELDSET //================================================================================================== Form.Fieldset = Backbone.View.extend({ /** * Constructor * * Valid fieldset schemas: * [...
var Election = artifacts.require("./Election.sol"); contract("Election", function(accounts) { var electionInstance; it("initializes with two candidates", function() { return Election.deployed().then(function(instance) { return instance.candidatesCount(); }).then(function(count) { assert.equal(count, 2); ...
/* * Copyright 2010 CurveDNS Project. 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 copyright notice, this list of * cond...
#!/usr/bin/env python # coding: utf-8 # # Simulating logic gates using `crysx_nn` # In[50]: import numpy as np import matplotlib.pyplot as plt # Import CrysX_nn related stuff # Import loss functions from crysx_nn.loss import MSE_loss, MSE_loss_grad from crysx_nn.loss import BCE_loss, BCE_loss_grad # Import activ...
const fetch = require('node-fetch'); async function overview(url) { const response = await fetch(url); const jsonData = await response.json(); return jsonData.artObjects; } async function details(url) { const response = await fetch(url); const jsonData = await response.json(); return jsonData....
import React from 'react'; import { configure, shallow, render } from 'enzyme'; import Adapter from 'enzyme-adapter-react-16'; import renderer from 'react-test-renderer'; import StoreDisplayer from '../src/devtools/view/StoreDisplayer'; configure({ adapter: new Adapter() }); describe('StoreDisplayer', () => { let ...
import Vue from 'vue' import Router from 'vue-router' import home from '@/components/home/home' import topOne from '@/components/home/topOne' import topTwo from '@/components/home/topTwo' import topThree from '@/components/home/topThree' import topFour from '@/components/home/topFour' import topFive from '@/components/...