text
stringlengths
3
1.05M
/** * @license * Copyright 2016 Google 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 by applicable law ...
import datetime import socket from flask import Flask from future.standard_library import install_aliases install_aliases() import argparse import json import logging import os import sys from abc import ABCMeta, abstractmethod from typing import Optional, Callable, Any, Dict, List, Union, Type, TYPE_CHECKING from ...
# -*- coding: utf-8 -*- ########################################################################### ## Python code generated with wxFormBuilder (version Apr 18 2017) ## http://www.wxformbuilder.org/ ## ## PLEASE DO "NOT" EDIT THIS FILE! ########################################################################### #Ant...
/* CF3 Copyright (c) 2015 ishiura-lab. Released under the MIT license. https://github.com/ishiura-compiler/CF3/MIT-LICENSE.md */ #include<stdio.h> #include<stdint.h> #include<stdlib.h> #include"test1.h" uint64_t x3 = UINT64_MAX; volatile int32_t t2 = -215210129; static uint8_t x25 = UINT8_MAX; int64_t x26 = -18L...
__NUXT_JSONP__("/amp/37/103", (function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,_,$,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao){return {data:[{metaTitle:A,metaDesc:B,verseId:103,surahId:37,currentSurah:{number:"37",name:"الصّٰۤفّٰت",name_latin:"As-Saffat...
import ctypes from flag import Flag class NtStatusException(WindowsError): ALL_STATUS = {} def __init__(self , code): try: x = self.ALL_STATUS[code] except KeyError: x = (code, 'UNKNOW_ERROR', 'Error non documented in ntstatus.py') self.code = x[0] self.n...
// Copyright 2021 The StackStorm Authors. // Copyright 2020 Extreme Networks, 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 // ...
# -*- coding: utf-8 -*- # Copyright 2019, IBM. # # This source code is licensed under the Apache License, Version 2.0 found in # the LICENSE.txt file in the root directory of this source tree. """ Schedule. """ import logging from copy import copy from operator import attrgetter from typing import List, Tuple from q...
# coding: utf-8 from collections import OrderedDict from time import time import models import data import theano import pickle import sys import os.path import theano.tensor as T import numpy as np MAX_EPOCHS = 50 MINIBATCH_SIZE = 128 L2_REG = 0.0 CLIPPING_THRESHOLD = 2.0 PATIENCE_EPOCHS = 1 """ Bi-directional ...
"use strict"; var reduce_1 = require('./reduce'); function toArrayReducer(arr, item, index) { arr.push(item); return arr; } function toArray() { return reduce_1.reduce(toArrayReducer, []); } exports.toArray = toArray; //# sourceMappingURL=toArray.js.map
/* * Copyright (C) <2018> Intel Corporation * SPDX-License-Identifier: BSD-3-Clause * * @file * * The cbc_attach tool is a tool similar to ldattach or slcand. * It configures the given serial line for cbc and loads the cbc * line discipline. On exit it switches the line discipline to n_tty. */ #include <getop...
import logging from timeit import default_timer as timer from typing import Dict, List from shapely.geometry import Point as SPoint from shapely.geometry.polygon import Polygon as SPolygon from sledilnik.classes.Field import Field from sledilnik.classes.MovableObject import MovableObject from sledilnik.classes.Point i...
'use strict'; // EXPORTS // module.exports = require( './copy.js' );
from django.db import models class ChannelGroup(models.Model): group = models.CharField(max_length=200, unique=True) channels = models.TextField()
from datetime import datetime from typing import List, Optional from bson.objectid import ObjectId from pydantic import BaseModel, Field from models.objectid import PyObjectId class PostBase(BaseModel): class Config: allow_population_by_field_name: True arbitrary_types_allowed: True json...
import sys import os import csv import re from operator import itemgetter import griot PATH_INPUT = r'..\data\b240.txt' PATH_OUTPUT = r'..\data\COCA.txt' stagingFileName = r'..\data\staging.txt' def keep(x): ''' removing individual mess-ups ''' if x['w1'] == 'a' and x['c1'] == 'TO': return False ...
/* * Copyright 2019 EPAM Systems * * 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 ...
from django.apps import AppConfig class MedicalkitConfig(AppConfig): name = 'medicalkit'
#!/usr/bin/python # encoding: utf-8 # # Ceres Solver - A fast non-linear least squares minimizer # Copyright 2015 Google Inc. All rights reserved. # http://ceres-solver.org/ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are me...
extern double polyhedron_vol(int N, const double tri[N][3][3]);
""" TODO: this docstring is the main xsar module documentation shown to the user. It's should be updated with some examples. """ import warnings from importlib.metadata import version __version__ = version('xsar') import logging from .utils import timing import numpy as np import os import numbers import yaml from im...
'use strict'; /** * Expose main package JSON of the application * with basic info, dependencies, etc. */ module.exports = opts => { const { strapiDependencies, additionalsDependencies, strapiVersion, projectName, uuid, } = opts; // Finally, return the JSON. return { name: projectNa...
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* kdc/kdc_preauth_encts.c - Encrypted timestamp kdcpreauth module */ /* * Copyright (C) 1995, 2003, 2007, 2011 by the Massachusetts Institute of Technology. * All rights reserved. * * Export of this software from the United States of America may * ...
// @flow import type { Asset, BundleGraph, NamedBundle, PluginOptions, Symbol, SourceLocation, } from '@parcel/types'; import type {ExternalModule, ExternalBundle} from './types'; import type { Expression, ExpressionStatement, File, FunctionDeclaration, Identifier, StringLiteral, VariableDecl...
// THIS FILE IS AUTO GENERATED import { GenIcon } from '../lib'; export function IoDownloadSharp (props) { return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M272 160v147.37l64-64L358.63 266 256 368.63 153.37 266 176 243.37l64 64V160H92a12 12 0 00-12 12v296a12 12 0 0012 1...
module.exports = { extends: 'stylelint-config-recommended', plugins: [ /** * add plugins * docs: https://stylelint.io/user-guide/configure#plugins */ // 'stylelint-scss' // stylelint by itself supports SCSS syntax very well ], ignoreFiles: [ /** * ignore certain files * docs...
from .testutil import LsTestCase from keywords import BIND_TRIALS, CUMULATIVE from parsing import Script def parse(text, name): script = Script(text) script.parse() return script.script_parser.parameters.val[name] class TestBasic(LsTestCase): @classmethod def setUpClass(cls): pass d...
module.exports = { siteMetadata: { title: `Blog`, description: `Gatsby blog.`, author: `andrew`, }, plugins: [ `gatsby-plugin-react-helmet`, { resolve: `gatsby-source-filesystem`, options: { name: `images`, path: `${__dirname}/src/images`, }, }, { ...
/* * Copyright (c) 2021 Huawei Device Co., Ltd. * 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 ...
# Copyright (c) 2019 Alexander Belinsky # 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, modify, merge, publish, d...
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "scatterternary" _path_str = "scatterternary.stream" _valid_props = {"maxpoints", "token"} ...
############################################################### # \file test_reals.py # \verbatim # Top contributors (to current version): # Makai Mann # This file is part of the smt-switch project. # Copyright (c) 2020 by the authors listed in the file AUTHORS # in the top-level source directory) and their instituti...
/* MI Command Set - environment commands. Copyright 2002, 2003, 2004 Free Software Foundation, Inc. Contributed by Red Hat Inc. This file is part of GDB. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Fr...
extern void exit (int); unsigned long gcd_ll (unsigned long long x, unsigned long long y) { for (;;) { if (y == 0) return (unsigned long) x; x = x % y; if (x == 0) return (unsigned long) y; y = y % x; } } unsigned long long powmod_ll (unsigned long long b, unsigned e, unsigned long ...
import React from "react"; import styled from "styled-components"; import PropTypes from "prop-types"; import 'src/styles/icons.scss'; const ui = {}; ui.StyledIcon = styled((props) => <i {...props} />)` font-size: ${(props) => props.size}px; cursor: pointer; transition: 0.2s all ease-in; `; const Icon = ({ type...
""" # Auth Controller Test To run individually: nosetests -c nose.cfg tests/controllers/test_auth_controller.py """ import json from flask import g from tests.helper import (AppEngineControllerTest, MockIdentityService, XHR_HEADERS, parse_html, redirect_path) from tests.fixtures import...
""" Crear una tupla de 3 números enteros. Una vez creada: Desempaquetamos con “unpack” en 3 variables. Suma de los 3 valores después de desempaquetar. Intentamos desempaquetar en 4 variables, ¿Qué ocurre? ¿Funcionará? """ numbers_tuple = (1, 2, 3) # 3 valores x, y, z = numbers_tuple total_values = x + y + z # 4 va...
import requests import json # Cloudflare API x_auth_email = "" x_auth_key = "" zone_identifier = "" url = "https://api.cloudflare.com/client/v4/filters/validate-expr" payload = json.dumps([{ "expression": '(http.request.uri.path contains "/clientareafake.php?incorrect=true")', "description": "/clientareafake...
# Author : CheihChiu # Date : 2017-06-06 from os.path import dirname, basename, isfile import glob modules = glob.glob(dirname(__file__)+"/*.py") __all__ = [ basename(f)[:-3] for f in modules if isfile(f) ]
var path = require('jsdoc/path'); var fs = require('jsdoc/fs'); var helper = require('jsdoc/util/templateHelper'); var marked = require('marked'); var hljs = require('highlight.js'); var Handlebars = require('handlebars'); var R = require('ramda'); function valueForTitle(t, xs) { var data = R.find(R.where({title...
/*------------------------------------------------------------------------- * * restrictinfo.c * RestrictInfo node manipulation routines. * * Portions Copyright (c) 1996-2011, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * * IDENTIFICATION * ...
// Icon: Linear.Surveillance2 import React from 'react'; import defaultProps from 'components/common-ui/Icon/defaultProps'; export default props => ( <svg {...defaultProps} {...props}> <g> <path d="M486.4 819.2c-42.347 0-76.8-34.451-76.8-76.8s34.453-76.8 76.8-76.8c42.349 0 76.8 34.451 76.8 76....
from argparse import ( ArgumentParser, _SubParsersAction, ) import asyncio from typing import ( Tuple ) from trinity.config import ( Eth1AppConfig, BeaconAppConfig, TrinityConfig ) from trinity.chains.base import BaseAsyncChain from trinity.db.manager import ( create_db_manager ) from trini...
#!/usr/bin/env python3 # 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. """ Provide an argument parser and default command line options for using ParlAI. """ import argparse import importlib i...
import random import numpy as np import torch digit_text_german = ['null', 'eins', 'zwei', 'drei', 'vier', 'fuenf', 'sechs', 'sieben', 'acht', 'neun'] digit_text_english = ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine'] def char2Index(alphabet, character): return alphabet.find(c...
import Brick from './models/Brick' import SpecialBrick from './models/SpecialBrick' import stage from './stage' export default class Bricks { constructor (event = {}) { this.edge = { left: stage.enclosure.left.points[0][0], right: stage.enclosure.right.points[0][0], bottom: stage.enclosure.le...
""" This example uses a simple bag-of-words (BoW) approach. A sentence is mapped to a sparse vector with e.g. 25,000 dimensions. Optionally, you can also use tf-idf. To make the model trainable, we add multiple dense layers to create a Deep Averaging Network (DAN). """ from torch.utils.data import DataLoader im...
import React, {PropTypes} from 'react'; import {Link, IndexLink} from 'react-router'; import LoadingDots from './LoadingDots'; import '../../styles/styles.css'; const Header = ({loading}) => { return ( <div> <nav className="navbar navbar-inverse"> <div className="fluid containe...
from pynput.keyboard import Key, Controller import time keyboard = Controller() time.sleep(5) messages="You're the best" while(True): for i in messages: keyboard.press(i) keyboard.release(i) time.sleep(0.03) keyboard.press(Key.enter) keyboard.release(Key.enter) time.sleep(0.4)
""" Profile measurement. """ import matplotlib.pyplot as plt import numpy as np import pandas as pd from scipy.optimize import curve_fit from physicslab.curves import gaussian_curve, gaussian_curve_FWHM from physicslab.utility import _ColumnsBase, get_name def process(data, **kwargs): """ Bundle method. ...
// © 2016 and later: Unicode, Inc. and others. // License & terms of use: http://www.unicode.org/copyright.html /* ********************************************************************** * Copyright (C) 2001-2011 IBM and others. All rights reserved. *********************************************************************...
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Xrootd(CMakePackage): """The XROOTD project aims at giving high performance, scalable fau...
#import csv from .converter import Converter converter = Converter() def convert(lines, model = None, start_row = 1, title_row = 0): #if isinstance(type(lines), str): # lines = [for line in csv.reader(lines)] return converter.convert(lines, model, start_row, title_row)
# -*- 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 #...
const util = require('../../utils/util.js') let globalData = getApp().globalData; Page({ data: { list: [{ name: "消息提示", desc: "包括顶部提示,居中提示,底部提示。可切换提示框背景颜色。", page: "msgtips", like: false }, { name: "吸顶容器", desc: "sticky吸顶容器,根据实际场景选择使用。", page: "sticky", like: fa...
import os import sys import argparse import logging from pype.vendor import ftrack_api from pype.ftrack import BaseAction class MultipleNotes(BaseAction): '''Edit meta data action.''' #: Action identifier. identifier = 'multiple.notes' #: Action label. label = 'Multiple Notes' #: Action desc...
# Copyright 2018 The TensorFlow Probability 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 o...
import os import shutil import string from copy import deepcopy import numpy as np import torch import pytest from sklearn.model_selection import train_test_split from pytorch_widedeep.models import ( Wide, TabMlp, TabNet, DeepText, WideDeep, DeepImage, TabResnet, TabTransformer, ) fro...
// @flow // Formatting of inline tests is poor due to whitespace in the template literals // But I find the understandability better than the file approach because it is // easier to compare before/after the transformation at one glance jest.autoMockOff() const defineInlineTest = require('jscodeshift/dist/testUtils'...
#coding:utf-8 # # id: bugs.core_5064 # title: Add datatypes (VAR)BINARY(n) and BINARY VARYING(n) as alias for (VAR)CHAR(n) CHARACTER SET OCTETS # decription: # # tracker_id: CORE-5064 # min_versions: ['4.0'] # versions: 4.0 # qmid: None import pytest from firebird.qa i...
from apgp.core import Query from apgp.db import DB from apgp.config import _read_config
from django import forms from django.utils.translation import ugettext_lazy as _ from ..gamer_profiles.forms import BooleanSwitchPaddleFormMixin from . import models class GameForm(BooleanSwitchPaddleFormMixin, forms.ModelForm): """ Game form """ class Meta: model = models.PublishedGame ...
const CustomError = require("../extensions/custom-error"); const chainMaker = { chain: [], getLength() { return this.chain.length; }, addLink(val) { const ne = val !== null ? `${val}` : 'null'; this.chain.push(`( ${ne} )`); return this; }, removeLink(positions) { if (positions <= 0 |...
from django.conf import settings from rest_framework.permissions import AllowAny from rest_framework.response import Response from rest_framework.views import APIView class FeaturesView(APIView): permission_classes = (AllowAny,) def get(self, request, format=None): return Response(settings.FEATURES)
/* * Power BI Visualizations * * Copyright (c) Microsoft Corporation * All rights reserved. * MIT License * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the ""Software""), to deal * in the Software without restriction, inclu...
import argparse import asyncio import gc import uvloop import os.path from socket import * PRINT = 0 async def echo_server(loop, address, unix): if unix: sock = socket(AF_UNIX, SOCK_STREAM) else: sock = socket(AF_INET, SOCK_STREAM) sock.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1) so...
function calculate_clipped_circle(){jQuery(".clipped-info-circle").each(function(){var a=jQuery(this).data("circle-type"),b=jQuery(this).data("half-percentage"),c=jQuery(this).children().data("responsive-circle");if("on"==c){var d=jQuery(this).children().data("responsive-breakpoint"),e=jQuery(window).width(),a=jQuery(t...
# 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 writing, software # distributed unde...
"""Support for MQTT discovery.""" import asyncio import json import logging import re from openpeerpower.components import mqtt from openpeerpower.const import CONF_DEVICE, CONF_PLATFORM from openpeerpower.helpers.discovery import async_load_platform from openpeerpower.helpers.dispatcher import async_dispatcher_send f...
from django.contrib.auth.models import Group from django.db import models class GroupInfo(models.Model): """ Group Information """ group = models.OneToOneField( Group, verbose_name="그룹", primary_key=True, null=False, on_delete=models.PROTECT, related_nam...
/* * Copyright (c) 2012-2017 Qualcomm Atheros, Inc. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND TH...
import pandas as pd import numpy as np from sklearn.model_selection import train_test_split from sklearn.preprocessing import StandardScaler from collections.abc import Sequence class SupervisedData: """A wrapper class for simplifying data splitting Wrapper that utilizes `sklearn.model_selection.train_test_sp...
import React, { Component } from 'react'; import { Collapse, Container, Navbar, NavbarBrand, NavbarToggler, NavItem, NavLink } from 'reactstrap'; import { Link } from 'react-router-dom'; import './NavMenu.css'; export class NavMenu extends Component { static displayName = NavMenu.name; constructor (props) { s...
""" Copied+modified from rest_framework.reverse, which is licensed under the BSD license: ******************************************************************************* Copyright (c) 2011-2016, Tom Christie All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permi...
import django from django.core.exceptions import ValidationError from django.db import models from django.conf import settings from django.apps import apps User = settings.AUTH_USER_MODEL class Profile(models.Model): user = models.ForeignKey(User,on_delete=models.CASCADE,null=False) proff = models.BooleanFiel...
""" Files and directories ===================== This module provides high-level tools for managing files and directories. """ from __future__ import with_statement from pipes import quote from tempfile import mkstemp from urlparse import urlparse import hashlib import os from fabric.api import hide, put, run, setti...
/* The MIT License Copyright (c) 2008 Genome Research Ltd (GRL). 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...
(function (root, factory) { if (typeof define === 'function' && define.amd) { define(function () { return (root.languageMappingList = factory()); }); } else if (typeof exports === 'object') { module.exports = factory(); } else { root.languageMappingList = factory(...
$(document).ready(function() { // var url = "http://192.168.250.47:8888/examzee/json.php"; // var url = "http://192.168.250.47:8888/examzee/json.php"; var url = "http://192.168.1.7:8888/examzee/json.php"; $.getJSON(url, function(result) { console.log(result); $.each(result, function(i, field) { ...
import asyncio import sys from IPython import get_ipython from IPython.display import display from ipywidgets.widgets import FloatSlider from warnings import warn from pydrake.systems.framework import VectorSystem def setup_matplotlib_backend(wishlist=["notebook"]): """Helper to support multiple workflows: ...
// ---------- script properties ---------- var include_num = 1; var bold = 0; // ---------- sites ---------- var s = new Array(); s[0] = "JSE^form.html^Enter JSE in the example above ...^open source, free, client side"; s[1] = "JSE DOCUMENTATION^doc.txt^JSE is a client-side local site search engine....
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__char_fromFile_execl_54a.c Label Definition File: CWE78_OS_Command_Injection.no_path.label.xml Template File: sources-sink-54a.tmpl.c */ /* * @description * CWE: 78 OS Command Injection * BadSource: fromFile Read input from a file * G...
#!/usr/bin/env python3 # Copyright (c) 2014-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the listtransactions API.""" from test_framework.test_framework import BitcoinTestFramework from ...
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ retu...
import sqlite3 import pkgutil connection = sqlite3.connect('demo.sqlite', detect_types = sqlite3.PARSE_DECLTYPES) connection.row_factory = sqlite3.Row connection.executescript(pkgutil.get_data('demo_nameko', 'schema.sql').decode('utf8')) class Person: def __init__(self, id, first_name, last_name, age, member): ...
/** * @ngdoc function * @name AQ.controller:MainController * @requires factories/AQ.factory:data * @requires factories/AQ.factory:viewport * @requires factories/AQ.factory:state * @requires factories/AQ.factory:storage * @requires factories/AQ.factory:oauth * @requires factories/AQ.factory:api * * @descriptio...
# 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. from measurements import smoothness from telemetry.core import wpr_modes from telemetry.page import page_measurement_unittest_base from telemetry.unittest imp...
name = "Hacker" print(name)
import React from 'react'; function TableHeader(props) { return ( <thead> <tr> <th scope="col">Name</th> <th scope="col">Department</th> <th scope="col">Role</th> <th scope="col">Salary</th> </tr> </thead> )...
import os, sys import subprocess import re class SALineupWrapper: """ """ def __init__(self): self.output_ = "" def clear_env(self): self.output_ = "" def scan_file(self, arg_options, file_path): if not os.path.exists("SALineup.exe"): print "[ERROR] cannot fi...
var nodemailer = require('nodemailer'); var database = require(__dirname + '/../resource/database.js'); var base = require(__dirname + '/../resource/base.js'); var sentences = require(__dirname + '/../resource/sentence.js'); var crypto = require('crypto'); var config = require(__dirname + '/../resource/config.js'); var...
# Copyright 2016-2018 CERN for the benefit of the ATLAS collaboration. # # 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...
import React from 'react' import Classes from './subMenuFooter.module.scss' import AnyLink from '../../../../UiElements/AnyLink/AnyLink' import ImageAll from '../../../../UiElements/ImageAll/ImageAll' const SubMenuFooter = ({ text, externalLink, internalLink, linkTitle, title, image }) => { return ( <div ...
// Copyright (c) 2021 Milan Raj // SPDX-License-Identifier: MIT const { createExprtk } = require('../../dist/exorbitant-in-process.js'); (async () => { const exprtk = await createExprtk(); const symbolTable = exprtk.createSymbolTable(); const dataVector = symbolTable.createVector('data', 3); const ex...
'use strict'; (function () { // Opporunity notes time line Controller Spec describe('Opporunity notes time line Controller Tests', function () { // Initialize global variables var OpporunityNotesTimeLineController, $scope, $httpBackend, $stateParams, $location; // The $resource...
__all__ = ['IMatrix', ] from numpy import array, empty from .rt_numpy import vstack from .rt_enum import TypeRegister class IMatrix(): ''' Experimental class designed to take a Dataset and make a 2d matrix efficiently. It uses rt.vstack order='F' which uses rt.hstack plus np.reshape. The m...
import React from 'react'; const ProductImage = () => { return ( <div className="jr-card pb-2"> <div className="jr-card-thumb"> <img className="card-img-top img-fluid" alt="products" src={"https://via.placeholder.com/400x400"}/> </div> <div className="jr-card-social"> <ul clas...
# -*- 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
# By Kami Bigdely # Decompose conditional: You have a complicated conditional(if-then-else) statement. Extract # methods from the condition, then part, and else part(s). def make_alert_sound(): print('made alert sound.') def make_accept_sound(): print('made acceptance sound') ingredients = ['sodium benzoate'...
#include "mbr.h" #include <liblox/string.h> #include <liblox/memory.h> #include <liblox/printf.h> #include <kernel/dispatch/events.h> bool mbr_check_signature(uint8_t* buffer, size_t size) { if (size < sizeof(mbr_t)) { return false; } mbr_t* mbr = (mbr_t*) buffer; return mbr->signature[0] == ...