text
stringlengths
3
1.05M
const Path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const Webpack = require('webpack'); const Merge = require("webpack-merge"); const Common = require('./webpack.common.js'); const devDir = Path.resolve(Common.rootDir, 'dev-static'); const ScalaJs = Merge(Common.ScalaJs, { output...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }...
#!/usr/bin/python # # linearize-data.py: Construct a linear, no-fork version of the chain. # # Copyright (c) 2013 The Bitcoin developers # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # import json import struct import re imp...
$(function() { $(".pesometros").keyup(function (event) { var total = 0; $(".pesometros").each(function () { var gtotal = 0; $(this).find(".pesometro").each(function () { var qty = parseInt($(this).find(".cantidad4").val()); var rate = parseInt(...
// Copyright (c) 2011-2013 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_QT_NOTIFICATOR_H #define BITCOIN_QT_NOTIFICATOR_H #if defined(HAVE_CONFIG_H) #include "config/fss-config.h" #...
#!/usr/bin/env python import os import json def compile_contests_table(): """ supposed to run from /py directory """ os.chdir('../contests') compiled_contests_table = "" for file in filter(lambda _: os.path.splitext(_)[1] == '.json', os.listdir()): contest = json.loads(open(file, 'r', encoding...
# coding=utf-8 # Copyright 2022 The TensorFlow Datasets 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 appl...
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.location_list, name='api_location_list'), url( r'^(?P<pk>[0-9]+)/$', views.location_details, name='api_location_details'), # geojson url( r'^geojson/$', views.geojson_location_...
import { createStore, applyMiddleware, combineReducers } from 'redux'; import { appReducer, leaderBoardReducer } from './reducers'; import { composeWithDevTools } from 'redux-devtools-extension'; import thunk from 'redux-thunk'; const rootReducer = combineReducers({ appReducer, leaderBoardReducer }); const middle...
import React, {Component} from "react"; import {Link} from "react-router"; import PropTypes from 'prop-types'; import {connect} from "react-redux"; import { Tabs} from 'antd-mobile'; import Commodity from "./Commodity"; import {changeNavbarTitle} from '../../actions/home' import './index.less' class Product extends Com...
/** * skylark-langx-async - The skylark JavaScript language extension library. * @author Hudaokeji Co.,Ltd * @version v0.9.0 * @link www.skylarkjs.org * @license MIT */ define(["skylark-langx-objects","./async","./deferred"],function(e,n,r){return n.waterful=function(n,t,u){var a=new r,c=a.promise;return u=u||nul...
/* $Id: groestl.c 260 2011-07-21 01:02:38Z tp $ */ /* * Groestl implementation. * * ==========================(LICENSE BEGIN)============================ * * Copyright (c) 2007-2010 Projet RNRT SAPHIR * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and assoc...
import React from "react"; import { Button, Row, Col, Form, FormGroup, InputGroup, InputGroupText, InputGroupAddon, Input, } from "reactstrap"; // core components import ExamplesNavbar from "components/Navbars/ExamplesNavbar.js"; import Footer from "components/Footer/Footer.js"; import axios from ".....
from ...exceptions import BadRequestException from ...utils import get_temp_dir from biosimulators_utils.combine.data_model import CombineArchiveContent from biosimulators_utils.combine.io import CombineArchiveReader, CombineArchiveWriter import connexion import flask import os import requests import requests.exception...
#pragma once #include <stdint.h> #define PROFILE_MODE #define GAME_MAX_INSTANCE_COUNT 3000000 typedef struct { uint8_t spriteIndices[GAME_MAX_INSTANCE_COUNT]; uint16_t scales[GAME_MAX_INSTANCE_COUNT]; uint16_t positionX[GAME_MAX_INSTANCE_COUNT]; uint16_t positionY[GAME_MAX_INSTANCE_COUNT]; } Game_InstanceBuffer...
///////////////////////////////////////////////////////////////////////////// // Name: wx/osx/cocoa/dataview.h // Purpose: wxDataViewCtrl native implementation header for carbon // Author: // Copyright: (c) 2009 // Licence: wxWindows licence /////////////////////////////////////////////////////////////...
const CryptoJS = require('crypto-js'); const settingsRouter = require('express').Router(); const adminSettingsFormData = require('./../../shared/formData/adminSettingsFormData'); const userSettingsFormData = require('./../../shared/formData/userSettingsFormData'); const logger = require('./../utils/logger'); const Admi...
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals from os.path import join import ubelt as ub import torch # NOQA from torch.utils import data as torch_data # NOQA import numpy as np import netharn as nh import kwimage import scriptconfig as scfg from torch.nn ...
# This is an auto-generated Django model module. # You'll have to do the following manually to clean this up: # * Rearrange models' order # * Make sure each model has one field with primary_key=True # * Make sure each ForeignKey and OneToOneField has `on_delete` set to the desired behavior # * Remove `managed =...
var path = require("path"); module.exports = { entry: "./src/index.js", output: { filename: "bundle.js", path: path.resolve(__dirname, "js") }, module: { loaders: [ { test: /\.js$/, loader: 'babel-loader', exclude: /node_modules/ }, { test: /\.jsx?$/, loader: 'babel-loader', exclude: /n...
import { Subject } from "rxjs"; import { startWith, switchMap } from "rxjs/operators"; export function resettable(factory, ...args) { const resetter = new Subject(); const source = new Subject(); let destination = factory(...args); let subscription = source.subscribe(destination); return { r...
#ifndef _PM_GENPROC_H_ #define _PM_GENPROC_H_ #define IS_Q_EMPTY(q) (q.head == q.tail) #define IS_SET(z) ( \ (bw==MAXITER_SHADE) ? ((z)==maxiter) : \ (bw==EVEN_SHADE) ? ((z)==maxiter || !((z)%2)) : (z)) #define ITER2COLOR( iter ) ( \ (bw) ? ((iter)==maxiter || !((iter)%2)) : \ ((iter)==maxiter) ? (MPE_...
# -*- coding: utf-8 -*- """ This module provides methods for calling objective functions """ # Future from __future__ import absolute_import, division, print_function, \ unicode_literals, with_statement # Standard Library from inspect import getargspec # First Party from metaopt.core.call.util.exception import C...
export { default as Event } from './Event' export { default as EventBody } from './EventBody' export { default as EventEntry } from './EventEntry' export { default as EventTab } from './EventTab' export { default as EventImage } from './EventImage'
/* * ngene-cards.c: nGene PCIe bridge driver - card specific info * * Copyright (C) 2005-2007 Micronas * * Copyright (C) 2008-2009 Ralph Metzler <rjkm@metzlerbros.de> * Modifications for new nGene firmware, * support for EEPROM-copying, * s...
import json import os import pickle5 as pickle import shutil import signal import string import torch import ujson from functools import partial from hashlib import sha1 from random import choice from utils.logger import get_msg from utils.logger import print_msg from utils.node import PROP_DICT def data2tensor(bat...
""" Univariate Polynomials over domains and fields AUTHORS: - William Stein: first version - Martin Albrecht: Added singular coercion. - David Harvey: split off polynomial_integer_dense_ntl.pyx (2007-09) - Robert Bradshaw: split off polynomial_modn_dense_ntl.pyx (2007-09) TESTS: We test coercion in a particularly c...
""" Trains a network-enhanced autoencoder (netAE) for semi-supervised dimensionality reduction of single-cell RNA-sequencing. Hyperparameters are passed in through argument parser, and the default values are the hyperparameters we used in the paper. One can specify the autoencoder architecture (Dae, Vae, Dca, Vdca) f...
'use strict'; exports.__esModule = true; exports.CRLF = undefined; exports.createLineIterator = createLineIterator; exports.appendLine = appendLine; exports.startsWith = startsWith; exports.toReadableStream = toReadableStream; var _stream = require('stream'); const LF = 0x0A; const CR = 0x0D; const CRLF_LENGTH = 2; ...
from functools import partial import io import json import platform import sys import mujson import pytest import ujson from falcon import ASGI_SUPPORTED, media, testing from _util import create_app # NOQA orjson = None rapidjson = None if sys.version_info >= (3, 5): import rapidjson # type: ignore if p...
from model.group import Group class GroupHelper: group_cache = None def __init__(self, app): self.app = app def create(self, group): wd = self.app.wd self.open_group_page() wd.find_element_by_name("new").click() self.fill_group_form(group) wd.find_element...
test("FormData", function() { var FormData = H.API( window, "FormData", true ); assert( !!FormData, "FormData supported" ); }); asyncTest("FormData Send and Receive", function( async ) { var FormData = H.API( window, "FormData", true ), formdata, xhr; if ( !FormData ) { assert( false, "FormData not...
#!/usr/bin/python # -*- coding: utf-8 -*- # thumbor imaging service # https://github.com/thumbor/thumbor/wiki # Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license # Copyright (c) 2011 globo.com timehome@corp.globo.com import subprocess from thumbor.optimizers import BaseOptimizer cla...
# -*- coding: utf-8 -*- # # panda-rootfs documentation build configuration file, created by # sphinx-quickstart on Wed Dec 2 09:44:14 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. ...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ This is application show how to extract the accelerometer, gyroscope and magnetometer measurements from the Dataset of "Towards Artefact Aware Human Motion Capture using Inertial Sensors Integrated into Loose Clothing" https://zenodo.org/record/5948725 @author: mic...
/* istanbul instrument in package npmtest_homebridge_sonos */ /*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 () ...
import os import rasa import logging import asyncio import time import tempfile from rasa.telemetry import TELEMETRY_ENABLED_ENVIRONMENT_VARIABLE logger = logging.getLogger(__name__) from rasa.core.constants import DEFAULT_REQUEST_TIMEOUT # hard code false here, since a number of things must be done to # add support...
#include "../../../../../src/designer/src/lib/shared/qdesigner_command2_p.h"
window.onload = function() { var button = document.getElementById("previewButton"); button.onclick = previewHandler; }; function previewHandler() { var canvas = document.getElementById("tshirtCanvas"); //The getContext method has several drawing contexts. They are '2d', `webgl`, 'webgl2', and 'bitmaprenderer'. ...
'use babel'; export default class NgcView { constructor(serializedState) { // Create root element this.element = document.createElement('div'); this.element.classList.add('ngc'); // Create message element const message = document.createElement('div'); message.textContent = 'The Ngc package ...
/* ** Copyright 2001 Addison Wesley. All Rights Reserved. */ #ifndef _THREAD_PER_CONNECTION_LOGGING_SERVER_H #define _THREAD_PER_CONNECTION_LOGGING_SERVER_H #include "ace/SOCK_Stream.h" #include "Logging_Server.h" class Thread_Per_Connection_Logging_Server : public Logging_Server { private: struct Thread_Args { ...
#!/usr/bin/env python # coding: utf-8 from __future__ import absolute_import, division, print_function import json import logging import math import os import random import warnings from dataclasses import asdict from multiprocessing import cpu_count import tempfile from pathlib import Path from collections import ...
'use strict'; const co = require('co'); const chai = require('chai'); chai.should(); chai.use(require('chai-like')); const utils = require('./utils'); const SocketMock = require('socket-io-mock'); const Context = require('../lib/context'); const Event = require('../lib/event'); const Router = require('../lib'); desc...
import styled from 'styled-components'; import { MIN_WIDTH } from './config'; export const TransCtrl = styled.div` border: 1px dashed #4885ed; position: absolute; width: 100%; height: 100%; z-index: 100; `; export const TranContainer = styled.div` left: 0px; top: 0px; z-index: ${(props) => props.disab...
from keras.models import Model from keras.layers.core import Flatten, Dense, Dropout, Activation, Lambda from keras.layers.recurrent import SimpleRNN from keras.layers.convolutional import Convolution2D from keras.layers.pooling import AveragePooling2D, GlobalAveragePooling2D from keras.layers import Input, merge from ...
'use strict'; var dbm; var type; var seed; /** * We receive the dbmigrate dependency from dbmigrate initially. * This enables us to not have to rely on NODE_PATH. */ exports.setup = function(options, seedLink) { dbm = options.dbmigrate; type = dbm.dataType; seed = seedLink; }; exports.up = function(db) {...
import os import json from tempfile import mktemp COMPILER_PATH = './camus-compiler' CAMUS_BIN = os.path.join(COMPILER_PATH, 'camus.exe') def run_command(command): print '>', command return os.WEXITSTATUS(os.system(command)) def generateQueryPipeline(spec_path=None, out_path=None): cmd = '%s -prog-out "...
// @flow import type { QueryJob } from "../query-runner" /** * Jobs of this module * - Ensure on bootstrap that all invalid page queries are run and report * when this is done * - Watch for when a page's query is invalidated and re-run it. */ const _ = require(`lodash`) const queue = require(`./query-queue`)...
#!/usr/bin/env python from flask import Flask, jsonify, abort, request, make_response import requests import json import os import yaml import signal from app import config, issuer,routes class Controller(Flask): def __init__(self, ENV): print("Initializing " + __name__ + " ...") super().__init_...
from django.contrib import admin from .models import Bucket, BucketPermission, Credentials, Object @admin.register(Credentials) class CredentialsAdmin(admin.ModelAdmin): list_display = ("username", "app_role_arn") search_fields = ("username",) class PermissionInline(admin.StackedInline): extra = 1 ...
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator}) # Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------...
var React = require("react"); var PropTypes = require("prop-types"); var divStyle = { width: "100%", display: "flex" }; var buttonStyle = { flexGrow: 1 }; function RunSimulationButton(props) { return ( <div className="btn-group" style={divStyle}> <button type="button" ...
# -*- coding: utf-8 -*- """ Created on Fri Jul 14 08:14:24 2017 @author: Punyajoy Saha """ import csv import numpy as np import cv2 import sys import os import datetime def add_class(name): label=[] index=0 with open('label.csv', newline='') as csvfile: spamreader = csv.reader(csv...
#!/usr/bin/python2.5 # Copyright (c) 2011 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. """A bare-bones test server for testing cloud policy support. This implements a simple cloud policy test server that can be used to...
jQuery(function(){ jQuery('#camera_wrap_4').camera({ height: 'auto', loader: 'bar', pagination: false, thumbnails: true, hover: false, opacityOnGrid: false, imagePath: window.location.protocol+'//'+window.location.host+'/ecaglobal/global_views/assets/images' }); });
/** * 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. * * @flow */ import type {Dispatcher as DispatcherType} from 'react-reconciler/src/ReactFiberHooks'; import type {ThreadID} from '....
/* eslint-disable */module.exports={languageData:{"plurals":function(n,ord){var s=String(n).split("."),i=s[0];if(ord)return"other";return i==0||i==1?"one":"other"}},messages:{"% of parent":"% de origem","% of total":"% do total","(Events)":"(Eventos)","(Extension)":"(Extens\xE3o)","(already installed)":"(j\xE1 instalad...
/* * Copyright (c) 2008, 2009, 2010, 2011, 2012 Nicira, Inc. * * 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 b...
# Copyright (c) 2020 The Plankton Authors. # All rights reserved. # # This source code is derived from UUV Simulator # (https://github.com/uuvsimulator/uuv_simulator) # Copyright (c) 2016-2019 The UUV Simulator Authors # licensed under the Apache license, Version 2.0 # cf. 3rd-party-licenses.txt file in the root direct...
/* ISC license. */ #include <string.h> #include <skalibs/sgetopt.h> #include <skalibs/stralloc.h> #include <skalibs/genalloc.h> #include <execline/execline.h> #include "exlsn.h" int exlsn_define (int argc, char const **argv, char const *const *envp, exlsn_t *info) { eltransforminfo_t si = ELTRANSFORMINFO_ZERO ; s...
(function(){var d;window.AmCharts?d=window.AmCharts:(d={},window.AmCharts=d,d.themes={},d.maps={},d.inheriting={},d.charts=[],d.onReadyArray=[],d.useUTC=!1,d.updateRate=30,d.uid=0,d.lang={},d.translations={},d.mapTranslations={},d.windows={},d.initHandlers=[]);d.Class=function(a){var b=function(){arguments[0]!==d.inher...
# -*- coding: utf-8 -*- """Various utilities.""" from . import utils as tasks, rq from datetime import datetime def setup(): """Set up the application schedule. Remove any already scheduled jobs.""" scheduler = rq.get_scheduler() for job in scheduler.get_jobs(): job.delete() tasks.process_ta...
# coding: utf-8 # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # --------------------------------------------------------------------...
# Copyright 2020 Chris Cummins <chrisc.101@gmail.com>. # # 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 ...
import { postActions } from '../actions/post-detail-action'; const initialState = { data: { content: {}, slug: '' }, error: null, requesting: false, }; const postReducer = (state = initialState, action) => { switch (action.type) { case postActions.PENDING: { return { ...state, requesting: true }; ...
// // AmbientOcclusionEffect.h // libraries/render-utils/src/ // // Created by Niraj Venkat on 7/15/15. // Copyright 2015 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #ifndef hifi_AmbientOcc...
""" 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. """ import collections import copy import glob import importlib import itertools import json import math import os import time from bisect import...
import gutil from 'gulp-util'; import prettyHrtime from 'pretty-hrtime'; let startTime; /** * Provides gulp style logs to the bundle method in browserify */ export default { start(filepath) { startTime = process.hrtime(); gutil.log('Bundling', gutil.colors.green(filepath) + '...'); }, end(filepath) {...
let mix = require('laravel-mix'); /* |-------------------------------------------------------------------------- | Mix Asset Management |-------------------------------------------------------------------------- | | Mix provides a clean, fluent API for defining some Webpack build steps | for your Laravel applica...
#!C:\StudentWork\SITE_BOOTCAMP_QA\StudentWork\abdullah_j\Python\Main\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3' __requires__ = 'pip==19.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.p...
const fs = require('fs'); const http = require('http'); const url = require('url'); function tiempo(iso) { return{ hour: iso.getHours(), minute: iso.getMinutes(), second: iso.getSeconds() } } function unix(iso){ return{ unixtime: iso.getTime() } } const server = http.c...
function solve() { const VALID_TITLE_PATTERN = /^([\S]+\s?)*\S$/g; const VALID_NAME_PATTERN = /^[A-Z][a-z]*$/g; let _title; let _presentations; let _students = []; let _homeworks = []; let Course = { init: function(title, presentations) { if (typeof(title) !== 'string') { throw 'Err...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(gene...
/********************************************************************* Copyright 2013 Karl Jones 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 c...
import functools import logging from threading import Event from typing import Any, Optional, Type from webmesh.message_protocols import AbstractMessageProtocol, SimpleDictProtocol from webmesh.message_serializers import MessagePackSerializer, AbstractMessageSerializer from webmesh.websocket.websocket_connection impor...
# Copyright 2015 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompa...
/*========================================================================= Program: Visualization Toolkit Module: vtkDelimitedTextReader.h Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This soft...
const path = require('path') const timers = require('timers') const Module = require('module') process.atomBinding = function (name) { try { return process.binding('atom_' + process.type + '_' + name) } catch (error) { if (/No such module/.test(error.message)) { return process.binding('atom_common_' ...
r""" Interfaces to R This is the reference to the Sagemath R interface, usable from any Sage program. The %r interface creating an R cell in the sage notebook is decribed in the Notebook manual. The %R and %%R interface creating an R line or an R cell in the Jupyter notebook are briefly decribed at the end of this p...
// Copyright 2018 The Abseil 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agr...
import numpy as np LM = np.zeros(15).astype(int) ### Indices for key landmarks LM[0] = 360 #lm_nose_tip = 30 LM[1] = 1191 #lm_right_eye_R = 45 LM[2] = 1203#lm_right_eye_L = 42 LM[3] = 606#lm_left_eye_L = 36 LM[4] = 436#lm_left_eye_R = 39 LM[5] = 140#lm_mouth_L = 48 LM[6] = 824#lm_mouth_R = 54 LM[7] = 223#l...
from sqlalchemy import Column, Integer, ForeignKey from sqlalchemy.orm import relationship from models.base import Base from models.servers import Server from models.users import User class Status(Base): __tablename__ = 'status' id = Column(Integer, primary_key=True) server_status = Column(Integer) u...
import localStorageMock from './localStorage.js'; function checkCompleted() { const editButtons = document.querySelectorAll('.description'); editButtons.forEach((btn) => { btn.addEventListener('keypress', (e) => { if (e.key === 'Enter') { e.preventDefault(); } }); }); } export default...
this["UI"] = this["UI"] || {}; this["UI"]["templates"] = this["UI"]["templates"] || {}; this["UI"]["templates"]["body_cell"] = Handlebars.template({"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) { var helper, alias1=helpers.helperMissing, alias2="function", alias3=this.escapeExpressi...
/** * Bio component that queries for data * with Gatsby's useStaticQuery component * * See: https://www.gatsbyjs.org/docs/use-static-query/ */ import React from "react" import { useStaticQuery, graphql } from "gatsby" import Image from "gatsby-image" import { rhythm } from "../utils/typography" const Bio = () =...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import ee from 'event-emitter'; import Menu from 'controls/menu/Menu'; import Toolbar from 'components/user-form/toolbar/Toolbar'; import Form from 'components/user-form/form/Form'; class UserForm extends Component { constructor(props)...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _react = _interopRequireDefault(require("react")); var _mssql = _interopRequireDefault(require("mssql")); var _xlsxStyle = _interopRequireDefault(require("xlsx-style")); var _mathjs = require("mathjs"); ...
#!/usr/bin/python """ Starter code for the validation mini-project. The first step toward building your POI identifier! Start by loading/formatting the data After that, it's not our code anymore--it's yours! """ import pickle import sys sys.path.append("../tools/") from feature_format import featur...
"""Handles conversion between the sets of regions used in the `SosModel` """ from collections import namedtuple from rtree import index # type: ignore from shapely.geometry import mapping, shape # type: ignore from shapely.validation import explain_validity # type: ignore from smif.convert.adaptor import Adaptor fr...
"""Configuration file for Sphinx Documentation Generator.""" from os import path as os_path from sys import path as sys_path from toml import load as toml_load sys_path.insert(0, os_path.abspath("../src")) toml_path = "{}/pyproject.toml".format(os_path.abspath("..")) parsed_toml = toml_load(toml_path) ...
import magma as m from magma.simulator import PythonSimulator from magma.simulator.coreir_simulator import CoreIRSimulator from hwtypes import BitVector as BV def test_counter(): @m.sequential2() class Counter: def __init__(self): self.count = m.Register(m.UInt[16])() def __call__...
/* * Copyright 2016 http://www.hswebframework.org * * 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...
/* $("#vacation").inViewport(function(px){ if(px) $(this).css({ "opacity": 1, }); }); */ var open_dd = false; var temp_dd = false; var mobile = null; function dd_is_dropped() { if ( open_dd !== false ) { return true; } else { return false; } } function dd_clear_all() { ope...
/* (c) 2007,2008 Andrei Nigmatulin */ #ifdef HAVE_TIMES #include <sys/times.h> #endif #include "fpm_config.h" #include "fpm.h" #include "fpm_php.h" #include "fpm_str.h" #include "fpm_clock.h" #include "fpm_conf.h" #include "fpm_trace.h" #include "fpm_php_trace.h" #include "fpm_process_ctl.h" #include "fpm_children.h...
/** * Copyright 2004-present Facebook. 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. * * @flow * @format */ import type {ContextRouter} from 'react-router-dom'; import type {WifiGateway} from './WifiUtils...
//// [tests/cases/conformance/internalModules/DeclarationMerging/TwoInternalModulesWithTheSameNameAndSameCommonRoot.ts] //// //// [part1.ts] module A { export interface Point { x: number; y: number; } export module Utils { export function mirror<T extends Point>(p: T) { ...
import hashlib import hmac import logging import os import shutil import tempfile from datetime import datetime import delegator import requests from flask import ( Blueprint, abort, current_app, flash, jsonify, make_response, redirect, request, safe_join, send_from_directory, ...
// Copyright 2013 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. #ifndef CONTENT_RENDERER_WEBPUBLICSUFFIXLIST_IMPL_H_ #define CONTENT_RENDERER_WEBPUBLICSUFFIXLIST_IMPL_H_ #include "base/compiler_specific.h" #include "t...
/* * This header is generated by classdump-dyld 1.5 * on Wednesday, April 14, 2021 at 2:25:51 PM Mountain Standard Time * Operating System: Version 14.4 (Build 18K802) * Image Source: /System/Library/PrivateFrameworks/DataAccess...
"use strict"; /* * Copyright (C) 1998-2020 by Northwoods Software Corporation. All Rights Reserved. */ // HTML + JavaScript text editor using an HTML Select Element and HTMLInfo. // This file exposes one instance of HTMLInfo, window.TextEditorSelectBox // see /samples/customTextEditingTool.html // see also textEditor...