text
stringlengths
3
1.05M
""" ################################################################################################## # Copyright Info : Copyright (c) Davar Lab @ Hikvision Research Institute. All rights reserved. # Filename : test_base_setting.py # Abstract : Base recognition Model test setting # Current Versio...
import React,{useState} from "react" const Collapse = ({ collapsed, children }) => { const [isCollapsed, setIsCollapsed] = useState(false); return ( <> <div className={`transition-all duration-1000 ${isCollapsed ? ' block' : ' hidden'}`} aria-expanded={isCollapsed} > {childre...
"""migrate node states Revision ID: e6df5998cc74 Revises: 772c01ca8a90 Create Date: 2021-02-16 14:28:23.296317+00:00 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "e6df5998cc74" down_revision = "772c01ca8a90" branch_labels = None depends_on = None def upgrad...
// // TMidasEvent.h // #ifndef TMIDASEVENT_H #define TMIDASEVENT_H #include "TMidasStructs.h" /// /// C++ class representing one midas event. /// /// Objects of this class are created by reading /// midas events from a file, by reading /// them from a midas shared memory buffer or by /// receiving them through the m...
""" Model objects for Mimic services. """
(() => { const scrani = (() => { const scrani = { // config animations: [ {selector: "section", animation:"eager-appear"}, {selector: "section>p>img", animation:"wipe"} ], scrollY: -1, ...
# This code is part of Qiskit. # # (C) Copyright IBM 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
# Copyright 2017-2019 TensorHub, 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 or agreed to in writ...
#!/usr/bin/env python # Copyright (c) 2012-2017 Andrew Watts and the University of Rochester BCS Department # # 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 w...
#!/usr/bin/python -t # -*- coding: utf-8 -*- #Author: James Antill <james.antill@redhat.com> #Contributors: # Sam Gleske <sag47@drexel.edu> #Source1: http://www.redhat.com/archives/rhl-list/2009-July/msg00228.html #Source2: http://markmail.org/message/dodinyrhwgey35mh #Acquired Fri Nov 9 09:09:28 EST 2012 #Succes...
from subprocess import Popen, PIPE from time import time import os import sys import six from .. import logs from ..conf import settings from ..const import ARGUMENT_PLACEHOLDER from ..utils import DEVNULL, cache from .generic import Generic @cache('~/.config/fish/config.fish', '~/.config/fish/functions') def _get_fu...
from functools import partial import torch from torch import nn import pyro import pyro.distributions as dist from pyro.nn import PyroModule, PyroParam, PyroSample from pyro.infer import (SVI, Trace_ELBO, TraceMeanField_ELBO, MCMC, NUTS, Predictive ) from pyro.infer.auto...
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6b026d0c"],{"3e76":function(t,e,a){"use strict";a.d(e,"c",function(){return r}),a.d(e,"d",function(){return i}),a.d(e,"b",function(){return s}),a.d(e,"e",function(){return u}),a.d(e,"a",function(){return o}),a.d(e,"f",function(){return l});var n=a("b775"...
""" Support for monitoring OctoPrint sensors. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/sensor.octoprint/ """ import logging import requests from homeassistant.const import TEMP_CELSIUS, CONF_NAME from homeassistant.helpers.entity import Entity fro...
/** * Auto-generated action file for "Amazon SageMaker Service" API. * * Generated at: 2019-07-08T11:35:46.925Z * Mass generator version: 1.1.0 * * flowground :- Telekom iPaaS / amazonaws-com-sagemaker-connector * Copyright © 2019, Deutsche Telekom AG * contact: flowground@telekom.de * * All files of this con...
/* * File: lm_base.h * Copyright (C) 2004 The Institute for System Programming of the Russian Academy of Sciences (ISP RAS) */ #ifndef _LM_BASE_H #define _LM_BASE_H #include <string> #include "common/sedna.h" #include "common/base.h" enum resource_kind {LM_DOCUMENT, LM_COLLECTION, LM_INDEX, LM_TRIGGER, LM_DATABA...
from functools import partial from http import HTTPStatus from aiohttp.web import Application, run_app from aiohttp.web_exceptions import HTTPBadRequest from aiohttp.web_response import json_response from asyncpg import NotNullViolationError from asyncpgsa import PG from configargparse import ArgumentParser from yarl ...
/* in-content.js * * This file has an example on how to communicate with other parts of the extension through a long lived connection (port) and also through short lived connections (chrome.runtime.sendMessage). * * Note that in this scenario the port is open from the popup, but other extensions may open it from the ba...
/** * {Array.<number,number>} * * A latitude/longitude coordinate on a map. * * @class aeris.maps.LatLon * @static * @type {Array.<number,number>} */
#!/usr/bin/env python3 """Neurodocker is a command-line interface to generate custom Dockerfiles and Singularity recipes. For help generating Dockerfiles and Singularity recipes, run $ neurodocker generate docker --help $ neurodocker generate singularity --help """ from argparse import Action from argparse import Ar...
# 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 under the...
export default { data: [], // Similar datasets loading: true, // Are we loading the data? error: null, // An error was produced while loading the data };
# # client.py # # Implement the desktop side of our Coldcard USB protocol. # # If you would like to use a different EC/AES library, you may subclass # and override these member functions: # # - ec_mult, ec_setup, aes_setup, mitm_verify # import hid, sys, os, platform from binascii import b2a_hex, a2b_hex from hashlib...
from fundamentals.strategies.basic_strategy.strategy import Strategy import fundamentals.measures as measure import sys from utilities.common_methods import getDebugInfo from utilities import log class AcquirersMultiple(Strategy): def __init__(self): try: self.acquirers_multiple = {} ...
import functools def tags(tag): def decorator(func): @functools.wraps(func) def wrapper(*args, **kwargs): result = func(*args, **kwargs) return f"<{tag}>{result}</{tag}>" return wrapper return decorator @tags('p') def join_strings(*args): return "".join(...
from django.apps import AppConfig class AghlamConfig(AppConfig): name = 'aghlam' verbose_name = 'اقلام فاکتور ها'
""" assuming that you are located in the project root when you run this file from the command line""" if __name__ == "__main__": exec(open("notebooks/global_setup.py").read()) from matplotlib import pyplot as plt, animation, patches from _tkinter import TclError from datetime import datetime from time import time ...
/** * @fileoverview added by tsickle * Generated from: lib/filter.pipe.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ import { Pipe } from '@angular/core'; export class FilterPipe { /** * * @para...
#!/usr/bin/env python # 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 os import socket import logging import subprocess import atexit import sys import time import signal import hydr...
const Flags = new Mongo.Collection("flags"); export default Flags;
#!/usr/bin/python # Copyright (c) 2014 Wladimir J. van der Laan # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Run this script from the root of the repository to update all translations from transifex. It will do the following...
""" Configuration for docs """ # source_link = "https://github.com/[org_name]/vhrs_custom" # docs_base_url = "https://[org_name].github.io/vhrs_custom" # headline = "App that does everything" # sub_heading = "Yes, you got that right the first time, everything" def get_context(context): context.brand_html = "Vhrs Cus...
const Discord = require("discord.js"); const superagent = require("superagent"); module.exports.run = async (bot, message, args) => { let {body} = await superagent .get(`https://nekos.life/api/v2/img/waifu`); let generateembed = new Discord.RichEmbed() .setColor("#3a0be7") .setTitle(`Here's an automaticall...
export const getTime = (date, time) => { if (!date) return null; var seconds = date.getSeconds(); var minutes = date.getMinutes(); var hour = date.getHours(); var milliSeconds = date.getMilliseconds(); const timeString = hour + ":" + minutes; const secondString = seconds + "." + milliSeconds; return t...
load("bf4b12814bc95f34eeb130127d8438ab.js"); load("93fae755edd261212639eed30afa2ca4.js"); // This file was procedurally generated from the following sources: // - src/dstr-assignment/array-elem-trlg-iter-elision-iter-nrml-close-err.case // - src/dstr-assignment/error/for-of.template /*--- description: Abrupt completion...
#ifndef IV_LV5_JSON_LEXER_H_ #define IV_LV5_JSON_LEXER_H_ #include <cassert> #include <cstdlib> #include <vector> #include <string> #include <iv/token.h> #include <iv/character.h> #include <iv/noncopyable.h> #include <iv/conversions.h> namespace iv { namespace lv5 { namespace detail { inline bool IsJSONWhiteSpace(char...
# Generated by Django 3.1.2 on 2020-10-13 09:47 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('images', '0002_auto_20201013_1241'), ] operations = [ migrations.RenameField( model_name='categories', old_name='category', ...
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ import pprint import re # noqa: F401 import six class AlertCrashGrou...
""" sentry.tasks.beacon ~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2015 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import, print_function import json import logging import sentry from datetime import timedelta from django.conf imp...
function __processArg(obj, key) { var arg = null; if (obj) { arg = obj[key] || null; delete obj[key]; } return arg; } function Controller() { require("alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments)); this.__controllerPath = "index"; this...
// // Generated by the J2ObjC translator. DO NOT EDIT! // source: android/libcore/luni/src/main/java/javax/net/ssl/SSLEngine.java // #ifndef _JavaxNetSslSSLEngine_H_ #define _JavaxNetSslSSLEngine_H_ #include "J2ObjC_header.h" @class IOSObjectArray; @class JavaNioByteBuffer; @class JavaxNetSslSSLEngineResult; @cla...
# -*- coding: utf-8 -*- # # @lc app=leetcode id=191 lang=python3 # # [191] Number of 1 Bits # # @lc code=start class Solution: def hammingWeight(self, n: int) -> int: return bin(n).count("1") # @lc code=end
/** * Created by wangdi on 4/11/16. */ 'use strict'; import React, {Component} from 'react'; import {Text, View, StyleSheet, Platform, TouchableOpacity} from 'react-native'; import theme from '../config/theme'; import px2dp from '../util/px2dp'; import ScrollableTabView from 'react-native-scrollable-tab-view'; impor...
__author__ = 'Bohdan Mushkevych' from odm.document import BaseDocument from odm.fields import StringField, ObjectIdField, IntegerField, BooleanField BOX_ID = 'box_id' PROCESS_NAME = 'process_name' PID = 'pid' IS_ON = 'is_on' class BoxConfiguration(BaseDocument): """ Persistent model: identifies the machine name...
from dashboard.models import Case from rest_framework import viewsets, permissions from .serializers import CaseSerializer class CaseViewSet(viewsets.ModelViewSet): queryset = Case.objects.all() permission_classes = [ permissions.AllowAny ] serializer_class = CaseSerializer
# encoding: utf-8 # Written for Python 3.6 import os import sys import math import cage import numpy as np import pymatgen as pmg import pymatgen.io.nwchem as nwchem """ Script to set up the calculations for a chain of paths connecting the non equivalent facets of a cage molecule. """ # TODO Make these parameters ...
'''Autogenerated by xml_generate script, do not edit!''' from OpenGL import platform as _p, arrays # Code generation uses this from OpenGL.raw.GLES2 import _types as _cs # End users want this... from OpenGL.raw.GLES2._types import * from OpenGL.raw.GLES2 import _errors from OpenGL.constant import Constant as _C import...
#!/usr/bin/env python print('test.expected = 1') print('test.value = 1')
from __future__ import absolute_import from sentry.testutils import TestCase class EventTest(TestCase): def test_legacy_tags(self): event = self.create_event(data={ 'tags': [ ('logger', 'foobar'), ('site', 'foo'), ('server_name', 'bar'), ...
/** * \file * * \brief Chip-specific reset cause functions * * Copyright (c) 2010-2012 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page License * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following...
import { async, TestBed } from '@angular/core/testing'; import { BlankPageComponent } from './blank-page.component'; describe('BlankPageComponent', () => { let component; let fixture; beforeEach(async(() => { TestBed.configureTestingModule({ declarations: [BlankPageComponent] }) ...
#include <std.h> #include <daemons.h> #include "/d/stella/short.h" inherit MONSTER; int guarded, attempted; void init(){ ::init(); add_action("summon_guardian","summon"); } void reset(){ ::reset(); guarded = 1; attempted = 0; } create() { ::create(); set_name("pony"); set_id( ({ "po...
/* * This header is generated by classdump-dyld 1.5 * on Wednesday, October 27, 2021 at 3:16:43 PM Mountain Standard Time * Operating System: Version 13.5.1 (Build 17F80) * Image Source: /System/Library/PrivateFrameworks/Silex.f...
/* * UltraCart Rest API V2 * UltraCart REST API Version 2 * * OpenAPI spec version: 2.0.0 * Contact: support@ultracart.com * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * * Swagger Codegen version: 2.4.15-SNAPSHOT * * Do no...
# Copyright 2018 Microsoft Corporation # # 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.db import migrations def create_site(apps, schema_editor): Site = apps.get_model("sites", "Site") custom_domain = "round-frost-29386.botics.co" site_params = { "name": "Round Frost", } if custom_domain: site_params["domain"] = custom_domain Site.objects.update_or_...
# Copyright 2016 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...
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Coinbit Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test BIP66 (DER SIG). Test that the DERSIG soft-fork activates at (regtest) height 1251. """ from tes...
from flask import Blueprint api_v1 = Blueprint('api_v1', __name__) from . import users
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (c) 2015-2017 Cisco Systems, Inc. # # 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 limitatio...
# -*- coding: utf-8 -*- """ Created on Thu Sep 26 09:10:06 2019 @author: levy.he """ import sys import os import re import pickle from pyuds import PyUds from pyuds import Scripts from datetime import datetime from termcolor import color, cprint from pprint import pprint Uds_Req_List = ( "diagRawRe...
from corehq.sql_db.connections import connection_manager def get_engine_id(an_object, allow_read_replicas=False): """ Given an object, get the engine id for it. """ # for now this only deals with data sources. from corehq.apps.userreports.models import AbstractUCRDataSource assert isinstance(a...
#!/usr/bin/env python # pycodestyle.py - Check Python source code formatting, according to # PEP 8 # # Copyright (C) 2006-2009 Johann C. Rocholl <johann@rocholl.net> # Copyright (C) 2009-2014 Florent Xicluna <florent.xicluna@gmail.com> # Copyright (C) 2014-2016 Ian Lee <ianlee1521@gmail.com> # # Permission is hereby gr...
/** * Copyright (c) 2015-present, Parse, LLC. * 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. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #import <Foun...
const http = require('http') const url = require('url') const fs = require('fs') http.createServer((req, res) => { let pathname = url.parse(req.url).pathname if(pathname == '/favicon.ico'){ return } fs.readFile('./web1' + pathname, (err, data) => { if (err) { throw ...
# this package from broadcom.argumentparser import Arguments from log_setter import set_logger def enable_debugger(args): """ Enables interactive debugger (pudb takes precedence over pdb) :param: - `args`: namespace with pudb and pdb attributes """ if args.pudb: import pudb ...
import django from django.conf import settings from django.core.management.commands.syncdb import Command as SyncCommand from django.db import connections from cqlengine.management import create_keyspace, sync_table class Command(SyncCommand): @staticmethod def _import_management(): """ Impo...
import { Children } from 'react-core/Children'; import { PropTypes } from 'react-core/PropTypes'; import { Component } from 'react-core/Component'; import { PureComponent } from 'react-core/PureComponent'; import { createElement, isValidElement, createFactory } from 'react-core/createElement'; import { crea...
from blog.models import Post from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin from django.shortcuts import render, reverse from django.views.generic import ListView, CreateView, DetailView class PostListView(ListView): model = Post class PostDetailView(DetailView): model = Post ...
# 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 agreed to in...
/** * Copyright 2017 The AMP HTML 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 require...
from .utils import FlexibleIterator, BaronError class UnExpectedFormattingToken(BaronError): pass class GroupingError(BaronError): pass GROUP_THOSE = ( "ENDL", # TODO test those 2 "COMMENT", "SPACE", ) ENTER_GROUPING_MODE = ( "LEFT_PARENTHESIS", "LEFT_BRACKET", "LEFT_SQ...
# Copyright 2019 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...
# -*- coding: utf-8 -*- import collections def _get_network_type(): """Returns the type of the outputs of a value distribution network. Returns: net_type: _network_type object defining the outputs of the network. """ return collections.namedtuple('c51_network', ...
const request = require('request'); const options = { method: 'POST', uri: 'https://graph.facebook.com/v2.6/me/thread_settings', qs: { access_token: "" }, body: { setting_type: "call_to_actions", thread_state: "new_thread", call_to_actions: [ { payloa...
import glob import os import re import shutil import subprocess import sys import time import vapoursynth as vs from argparse import ArgumentParser from random import choice from vs_ffinfo import FFInfo core = vs.core core.std.LoadPlugin(path="/usr/local/lib/libffms2.so") # the usage of these looks wrong when displ...
# RevKit: A Toolkit for Reversible Circuit Design (www.revkit.org) # Copyright (C) 2009-2011 The RevKit Developers <revkit@informatik.uni-bremen.de> # # 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 Free Software Founda...
/** * Player Entity */ game.Player = me.Entity.extend({ /** * constructor */ init : function (x, y, settings) { // call the constructor // this._super(me.Entity, 'init', [x, y, settings]); this.character = settings.character || Object.keys(game.Player.characters)[Math.floor(Math.ran...
import os import shlex import subprocess import sys from docutils.parsers.rst.directives.admonitions import BaseAdmonition from sphinx.util import compat compat.make_admonition = BaseAdmonition # # Raiden documentation build configuration file, created by # sphinx-quickstart2 on Mon Oct 24 10:55:13 2016. # # This fil...
/** Klassi Automated Testing Tool Created by Larry Goddard */ /** Copyright © klassitech 2016 - Larry Goddard <larryg@klassitech.co.uk> 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 htt...
module.exports = async d => { const data = d.util.openFunc(d); if (data.err) return d.error(data.err); const [user] = data.inside.splits; const res = d.client.users.cache.findKey(x => x.username.toLowerCase() === user.addBrackets().toLowerCase()); if (!res) return d.aoiError.fnError(d, 'custom', {...
# Copyright 2022 The Trieste Contributors # # 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...
// Copyright 2010 Todd Ditchendorf // // 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...
# -*- coding: utf-8 -*- ######################################################################## # # License: BSD # Created: November 5, 2010 # Author: Francesc Alted - faltet@pytables.com # ######################################################################## """Required versions for PyTables dependencies.""" #...
from __future__ import unicode_literals from core.views import TemplateView class HomepageView(TemplateView): template_name = 'base.html' def get_context_data(self, request): context = {'title': 'Sanic'} return context
from enum import Enum import re class Patterns( Enum ): PORTS = re.compile( "^(0|[1-9][0-9]{0,3}|[1-5][0-9]{4}|6([0-4][0-9]{3}|5([0-4][0-9]{2}|5([0-2][0-9]|3[0-5]))))(,(0|[1-9][0-9]{0,3}|[1-5][0-9]{4}|6([0-4][0-9]{3}|5([0-4][0-9]{2}|5([0-2][0-9]|3[0-5]))))){0,14}$" ) IP = re.compile( "^([1-9]?[0-9]|1[0-9]...
from django.contrib import admin from escola.models import Aluno, Curso, Matricula class Alunos(admin.ModelAdmin): list_display = ('id', 'nome', 'rg', 'cpf', 'data_nascimento') list_display_links = ('id', 'nome') search_fields = ('nome',) list_per_page = 20 admin.site.register(Aluno, Alunos) class C...
import numpy as np import pylab as plt import matplotlib.cm as cm file_name = 'output.npz' threshold = 3000 def find_max(a, threshold=0.5): index = [] for i in range(1,len(a)-1): if a[i-1] < a[i] > a[i+1] and a[i]>threshold: index.append(i) return index #load the file with tsim, mx, my...
window.__NUXT__=(function(a,b,c,d){return {staticAssetsBase:"\u002Fstatic\u002F1597376630",layout:"default",error:b,state:{notification:{show:a,title:c,message:c},isShowSidebar:a,isSupportWebShare:a,headerTitle:"e-AlQur'an",page:"home",lastReadVerse:b,settingActiveTheme:{name:"dark",bgColor:"#071e3d",fgColor:"#fff"},se...
from collections import defaultdict import graphene from django.core.exceptions import ValidationError from django.db.utils import IntegrityError from ....core.permissions import ShippingPermissions from ....core.tracing import traced_atomic_transaction from ....product import models as product_models from ....shippi...
import React from 'react' import {render} from 'react-dom' var App = React.createClass({ render() { return <div>hello world</div> } }); render(<App />, document.getElementById('app'))
/** * Copyright 2016 Google Inc. 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 applic...
#!/usr/bin/env python import argparse import gpstk import matplotlib.pyplot as plt import numpy as np import sys valid_types = ['rinexnav', 'rinex3nav', 'yuma', 'sp3', 'fic', 'sem'] def triple2Position(x): return gpstk.Position(x[0], x[1], x[2]) # All data read functions should obey this contract: # 1. Take ...
function parimp (n){ if(n % 2 == 0){ return 'par' }else{ return "impar" } } let res = parimp(11) console.log(res)
from ._version import __version__ version = __version__
(window.webpackJsonp=window.webpackJsonp||[]).push([[61],{418:function(module,exports,__webpack_require__){module.exports=function(_){"use strict";_=_&&_.hasOwnProperty("default")?_.default:_;var e={name:"ja",weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE197_Numeric_Truncation_Error__short_listen_socket_54d.c Label Definition File: CWE197_Numeric_Truncation_Error__short.label.xml Template File: sources-sink-54d.tmpl.c */ /* * @description * CWE: 197 Numeric Truncation Error * BadSource: listen_socket Read data...
import assign from 'lodash/assign'; import get from 'lodash/get'; { function WebSiteConfigurationController( $scope, $q, $location, $timeout, $translate, Hosting, Domain, HostingDomain, HostingDatabase, HostingModule, Alerter, ) { const self = this; let errorLoad...
from maggma.api.resource import ReadOnlyResource from emmet.core.oxidation_states import OxidationStateDoc from maggma.api.query_operator import ( PaginationQuery, SortQuery, SparseFieldsQuery, ) from mp_api.routes.materials.query_operators import FormulaQuery from mp_api.routes.oxidation_states.query_ope...
/** * SEA3D+AMMO for Three.JS * @author Sunag / http://www.sunag.com.br/ */ 'use strict'; THREE.SEA3D.prototype.toAmmoVec3 = function ( v ) { return new Ammo.btVector3( v.x, v.y, v.z ); }; // // Sphere // THREE.SEA3D.prototype.readSphere = function ( sea ) { var shape = new Ammo.btSphereShape( sea.radius ...