text
stringlengths
3
1.05M
import json import os def test_valid_json(): invalid_json = False for filename in os.listdir("."): if filename.endswith(".cfn.json"): print("Validating json file: %s" % filename) with open(filename) as f: try: json.load(f) ...
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports._vantaEffect=e():t._vantaEffect=e()}("undefined"!=typeof self?self:this,(function(){return function(t){var e={};function i(s){if(e[s])return e[s].export...
/**************************************************************************** * * Copyright 2017 Samsung Electronics 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...
/** * Copyright IBM Corp. 2019, 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. * * Code generated by @carbon/icon-build-helpers. DO NOT EDIT. */ import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../I...
import React, { Component } from "react" import styled from "styled-components" import ChatInput from "../Components/Chat/ChatInput" import ChatMessagesWrapper from "../Components/Chat/ChatList" import ChatMessage from "../Components/Chat/ChatMessage" import NoChat from "../Components/Chat/NoChat" import ChatHistory fr...
# Copyright 2022 Google LLC. 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 o...
from websocket_server import WebsocketServer import threading import websocket import datetime # Responsible for creating a websocket and writing data to it. class WebSocketThread(object): """ Threading websocket server class The run() method will be started and it will run in the background until the a...
const now = require('../../utils/date').now; module.exports = (sequelize, DataTypes) => { const OrganizationInitialMessage = sequelize.define( 'organizationInitialMessage', { organizationId: { type: DataTypes.INTEGER, allowNull: false, }, ...
module.exports.formulario_inclusao_issn = function(application, req, res){ res.render("admin/form_add_issn", {validacao : {}, issnItem : {}}); } module.exports.qualis_salvar = function(application, req, res){ //res.render("admin/form_add_issn") //res.send('Chegou na página'); var issnItem =...
#!/usr/bin/python # Copyright 2020-2021 PSNC # Author: Damian Parniewicz # # Created in the GN4-3 project. # # 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/licens...
# Inspired by https://github.com/victoresque/pytorch-template/ import time import torch import utils class BaseTrainer: def __init__(self, model, criterion, optimizer, scheduler, device, train_loader, valid_loader, test_loader, epochs, logger, model_save_dir): self.mode...
# License: MIT """ https://github.com/automl/fanova/blob/master/fanova/visualizer.py """ import itertools as it import logging import os import pickle import re import matplotlib.pyplot as plt import numpy as np from ConfigSpace.hyperparameters import Hyperparameter, CategoricalHyperparameter, Constant, OrdinalHyperp...
""" Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advan...
#pragma once #include "Drawable.h" #include "MacroCommand.h" #include <iostream> class DrawCanvas : public Drawable { public: DrawCanvas(MacroCommand *macroCommand) : m_macroCommand(macroCommand) {} virtual void draw(int x, int y) override { std::cout << __FUNCTION__ << " " << x << " " << y << std::...
#pragma once #include "Engine/Renderer/Shader.h" #include <glm/glm.hpp> typedef unsigned int GLenum; namespace Engine { class OpenGLShader : public Shader { public: OpenGLShader(const std::string& filepath); OpenGLShader(const std::string& name, const std::string& vertexSrc, const std::string& fragmentSrc); ...
$(document).ready( function() { var $categoryDropdown = $("#form_category"); var defaultCategory = $categoryDropdown.val(); var $articlesListContainer = $("#articles_list"); var $loadingImg = $('#loading_img'); $(document).ajaxStart(function(){ $loadingImg.css("display", "block"); ...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_shtoi.c :+: :+: :+: ...
"""Module for reading, preprocessing, and enriching the raw dataset""" import pandas as pd import os import requests import urllib import BeautifulSoup base_uri = "http://dashboard.healthit.gov/datadashboard/data" data_fname = "systematic-lit-review-appendix.csv" tmp_dir = "tmp" out_fp = os.path.join(tmp_dir, data_fn...
#! /usr/bin/env node const { generateCSSFromThemeObj } = require("./themeCompiler"); const fs = require("fs"); const args = process.argv.slice(2); if (args.length < 2) { throw new Error("You must provide 2 arguments to the theme-it CLI. The path of the JSON file you want to parse and the name of the generated CSS...
from viewflow import create_dags DAG = create_dags("./dags", globals(), "viewflow_demo")
import React from 'react' import { Slide, Heading } from 'spectacle' export const Disclaimers = () => ( <Slide> <Heading size={1} textColor='secondary'> Disclaimers </Heading> </Slide> )
import hashlib import json import logging from dojo.models import Finding __author__ = 'dr3dd589' logger = logging.getLogger(__name__) class WhitesourceParser(object): def get_scan_types(self): return ["Whitesource Scan"] def get_label_for_scan_types(self, scan_type): return "Whitesource ...
const assert = require('assert'); const calculate = require('../lib/calculations'); const constants = require('../lib/constants'); describe('Calculations', () => { describe('#toRadians()', () => { it('should convert degrees to radians', () => { assert.equal(calculate.toRadians(114.592), 2.000007696445342);...
/** * 渲染函数的 Watcher 缓存 */ export const renderWatcherCache = new WeakMap();
export default function validateChallenge(name, miles, donation, business) { if (name === '' || miles === '' || donation === '' || business === '') return 0; else if (!/^[0-9]*$/g.test(miles) || !/^[0-9]*$/g.test(donation)) return 0; else return 1; }
const expect = require('chai').expect; const stub = require('sinon').stub; const shg = require('../index'); const interact = require('../lib/interact'); const fakeServer = require('./fake-server'); describe('The player', () => { before(() => { shg.log.setLevel('OFF'); stub(interact.rp, 'post', (url, option...
# Generated by Django 2.2.27 on 2022-04-16 16:26 from django.conf import settings from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('fehler_auth', '0003_auto_20220416_1626'), migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('spaces', '00...
from time import time from sklearn.ensemble import RandomForestClassifier, AdaBoostClassifier from sklearn.linear_model import LogisticRegression from sklearn.model_selection import RandomizedSearchCV, StratifiedKFold from openml.testing import TestBase from openml.flows.sklearn_converter import sklearn_to_flow from ...
import re import aiohttp from bs4 import BeautifulSoup from redbot.core import commands from tabulate import tabulate class CryptoPrice(commands.Cog): """Fetches cryptocurrency information""" def __init__(self, bot): self.bot = bot self.base_url = "https://coinmarketcap.com/" self.s...
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilities, _tables from ...
const Command = require("../../structures/Command"); const Discord = require("discord.js"); const Emotes = require("../../emotes.json"); const os = require("os"); const process = require("process"); module.exports = class extends Command { constructor(...args) { super(...args, { description: "Get analytics on ho...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const core_1 = require("@angular-devkit/...
############################################################################## # # Copyright (c) 2003 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
// Copyright 2011, Shuo Chen. All rights reserved. // http://code.google.com/p/muduo/ // // Use of this source code is governed by a BSD-style license // that can be found in the License file. // // Author: Shuo Chen (chenshuo at chenshuo dot com) #ifndef MUDUO_EXAMPLES_PROTOBUF_CODEC_DISPATCHER_LITE_H #define MUDUO_...
from __future__ import absolute_import from collections import defaultdict import numpy as np import torch from torch.utils.data.sampler import ( Sampler, SequentialSampler, RandomSampler, SubsetRandomSampler, WeightedRandomSampler) class RandomIdentitySampler(Sampler): def __init__(self, data_source, nu...
from pyresponse.operators import Operator def clean_dalton_label(original_label: str) -> str: """Operator/integral labels in DALTON are in uppercase and may have spaces in them; replace spaces with underscores and make all letters lowercase. >>> clean_dalton_label("PSO 002") 'pso_002' """ ...
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), uglify: { options: { sourceMap: "dist/minquery.js.map" }, build: { src: "dist/minquery.js", dest: "dist/minquery.min.js" } }, concat: { options: { ...
import pygame, time def main(): pygame.init() screen = pygame.display.set_mode((800, 600)) screen.fill((0, 0, 150)) font = pygame.font.Font(None, 24) text = font.render("Hello, world :)", False, (50, 200, 100)) screen.blit(text, (10, 10)) pygame.display.update() time.sleep(2) # End pr...
import React from 'react' import SelectField from 'material-ui/SelectField'; import classNames from 'classnames'; import SelectActions from '../../actions/SelectActions'; import SelectStore from '../../stores/SelectStore'; function getStateFromFlux(type) { return {items: SelectStore.getItems(type)} } export defa...
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from django.contrib.auth.models import User from .models import Profile class ProfileInline(admin.StackedInline): model = Profile can_delete = False verbose_name_plural = 'user' # fk_name = 'user' class CustomUserAdmin(Us...
from collections import UserDict from datetime import datetime, date, timedelta from faker import Faker import re class Note(UserDict): """ FOR JUST IN CASE def __init__(self, data=None): super(Note, self).__init__() self[datetime.now().strftime('%Y-%m-%d %H:%M:%S')] = data ...
""" In this example, we simulate the benchmarking experiment from "Deterministic delivery of remote entanglement" using magically generated entanglement. """ import json from netsquid.qubits.qubitapi import dm_fidelity from netsquid.qubits.ketstates import b00, b01, b10, b11, ket2dm from netsquid_nv.state_delivery_sam...
import ast from functools import reduce from django.db.models import F from rest_framework import serializers from core.models import ( MasterZone, Environment, Fact, Node, PuppetClass, Parameter, Group, FactRule, Rule, Variable, Configuration, ConfigurationClass, Con...
/* eslint-env mocha */ 'use strict' const { expect } = require('aegir/utils/chai') const { CID } = require('multiformats/cid') const { base58btc } = require('multiformats/bases/base58') const { base64 } = require('multiformats/bases/base64') const first = require('it-first') const cli = require('./utils/cli') const si...
# This file is part of h5py, a Python interface to the HDF5 library. # # http://www.h5py.org # # Copyright 2008-2013 Andrew Collette and contributors # # License: Standard 3-clause BSD; see "license.txt" for full license terms # and contributor agreement. """ Tests the h5py._hl.filters module. """ impo...
# pylint: disable=g-bad-file-header # Copyright 2015 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...
window.MathJax = { messageStyle: 'none', skipStartupTypeset: true, tex2jax: { inlineMath: [['$', '$'], ['\\(', '\\)']], processEscapes: true } }
require('dotenv').config(); const knex = require('knex'); const knexConfig = require('../knexfile'); const environment = process.env.DB_ENV module.exports = knex(knexConfig[environment]);
"""Top-level package for Python Game Engine.""" __author__ = """Ivan Ogasawara""" __email__ = "ivan.ogasawara@gmail.com" __version__ = "0.1.0" from yammy.main import Yammy # noqa: F401
from typing import Callable, Coroutine from api.config import Config from api.core.anime import * from api.core.cache import CacheDB from api.core.danmaku import * from api.core.proxy import StreamProxy from api.core.scheduler import Scheduler from api.iptv.iptv import TVSource, get_sources from api.update.bangumi imp...
from itertools import starmap from typing import Iterable from typing import List from typing import NamedTuple from typing import Set from typing import Tuple from typing import Union import lmdb from .context import TxnRegister from .records import commiting from .records import heads from .records.commiting import...
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; const SvgIconCustom = global.__MUI_SvgIcon__ || SvgIcon; let Directions = props => <SvgIconCustom {...props}> <path d="M21.71 11.29l-9-9c-.39-.39-1.02-.39-1.41 0l-9 9c-.39.39-.39 1.02 0 1.41l9 9c.39.39 1.02....
# Copyright (c) 2020, NVIDIA CORPORATION. import os from glob import glob from warnings import warn from fsspec.utils import infer_compression from dask import dataframe as dd from dask.base import tokenize from dask.compatibility import apply from dask.dataframe.io.csv import make_reader from dask.utils import pars...
# -*- coding: utf-8 -*- __author__ = "Rodrigo Luger (rodluger@gmail.edu)" __copyright__ = "Copyright 2018, 2019, 2020, 2021 Rodrigo Luger" # Import the version from .vplot_version import __version__ # Override matplotlib.figure.Figure from . import figure # Set up the matplotlib stylesheet from . import style from...
// Copyright 2017 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. (async function() { 'use strict'; TestRunner.addResult(`Tests Statistics view of detailed heap snapshots.\n`); await TestRunner.loadTestModule('heap...
import sys from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5.QAxContainer import * class MyWindow(QMainWindow): def __init__(self): super().__init__() self.kiwoom = QAxWidget("KHOPENAPI.KHOpenAPICtrl.1") self.kiwoom.dynamicCall("CommConnect()") self.setWindowTitl...
# Copyright 2017 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 applicable ...
""" Django settings for profiles_project project. Generated by 'django-admin startproject' using Django 2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ impor...
var class_ext_1_1_net_1_1_cell_selection_model_listeners = [ [ "ConfigOptions", "d0/d70/class_ext_1_1_net_1_1_cell_selection_model_listeners.html#aacc7be7e624a486a0728457d6c03030b", null ], [ "Deselect", "d0/d70/class_ext_1_1_net_1_1_cell_selection_model_listeners.html#a6dc779b625c2542bb4b5cdc269183976", null ]...
/* tslint:disable */ require("./WebSearchTab.module.css"); var styles = { filePicker: 'filePicker_8c94dfa5', tabsContainer: 'tabsContainer_8c94dfa5', tabContainer: 'tabContainer_8c94dfa5', nav: 'nav_8c94dfa5', tabHeaderContainer: 'tabHeaderContainer_8c94dfa5', breadcrumbNav: 'breadcrumbNav_8c94d...
import json from logging import Logger from typing import Optional from confluent_kafka.serialization import Deserializer, SerializationContext from logger.logger import get_logger class Json2DictDeserializer(Deserializer): def __init__(self, unicode: str = "utf-8"): self._unicode: str = unicode ...
/***** License -------------- Copyright © 2017 Bill & Melinda Gates Foundation The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the Licens...
from oscar.apps.shipping import apps class ShippingConfig(apps.ShippingConfig): name = 'tests._site.apps.shipping'
#ifndef METHOD_BODY_H #define METHOD_BODY_H #include "DeclVar.h" #include "AbstractInst.h" #include <vector> using namespace std; class MethodBody { public: vector<DeclVar *> * m_list_decl_var; vector<AbstractInst *> * m_list_inst; MethodBody( vector<DeclVar *> * l...
// // 006_basic_class_other.h // Foundation // // Created by 郑春喜 on 15/5/23. // Copyright (c) 2015年 郑春喜. All rights reserved. // #import <Foundation/Foundation.h> @interface BasicOther : NSObject -(void) number; -(void) value; -(void) nulls; @end
"""Replay.""" from construct import Array, Byte, Flag, Float32l, Int16ul, Int32sl, Int32ul, Padding, Struct, If, Embedded from mgz.util import Version # pylint: disable=invalid-name # Basic information about the recorded game replay = "replay"/Struct( "old_time"/Int32ul, "world_time"/Int32ul, "old_worl...
/* * PWG Raster/Apple Raster/PCLm/PDF/IPP legacy PPD generator * * Copyright 2016-2019 by Till Kamppeter. * Copyright 2017-2019 by Sahil Arora. * Copyright 2018-2019 by Deepak Patankar. * * The PPD generator is based on the PPD generator for the CUPS * "lpadmin -m everywhere" functionality in the cu...
/** * Auto-generated action file for "Microsoft Graph API" API. * * Generated at: 2019-08-07T14:53:10.974Z * Mass generator version: 1.1.0 * * flowground :- Telekom iPaaS / microsoft-graph-api-connector * Copyright © 2019, Deutsche Telekom AG * contact: flowground@telekom.de * * All files of this connector ar...
import sys ; import inspect ; import GeneralFunctions as GF ; from xml.etree import cElementTree as ET from gzip import GzipFile import gzip from itertools import product, permutations ; import cPickle as pickle class FLSTM_TEESXMLHelper: def __init__(self, Configs, lp=None, PROGRAM_Halt=None): self.Co...
/*************************************************************************** *cr *cr (C) Copyright 2007 The Board of Trustees of the *cr University of Illinois *cr All Rights Reserved *cr ********************************************************************...
from setuptools import setup, find_packages setup( author='R Devon Hjelm, Bogdan Mazoure, Florian Golemo, Mihai Jalobeanu, ' 'and Felipe Frujeri', name='segar', install_requires=[ "absl-py", "numpy", "scipy", "aenum", "matplotlib", "opencv-python-h...
/* eslint-env node */ const environment = process.env.NODE_ENV || process.env.EMBER_ENV || 'production'; process.env.NODE_ENV = environment; process.env.EMBER_ENV = environment; if (typeof process.env.ELECTRON_IS_DEV === 'undefined') { if (environment === 'development') { process.env.ELECTRON_IS_DEV = 1; } } ...
(function() {var implementors = {}; implementors["hashbrown"] = [{"text":"impl&lt;T, S, '_, '_&gt; BitAnd&lt;&amp;'_ HashSet&lt;T, S&gt;&gt; for &amp;'_ HashSet&lt;T, S&gt; <span class=\"where fmt-newline\">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: Eq + Hash + Clone,<br>&nbsp;&nbsp;&nbsp;&nbsp;S: BuildHasher + Default,&nbsp;...
const questions = [ { number : "1", question : "The enemy team is about to corner you, you are all alone, what would you do?", input_ids : ["q1+0", "q1+1", "q1+2"], input_name : "q1", answer_add_0 : "Stay put and wait for help.", answer_add_1 : "Plan out my next approach.", answer_add_2 : ...
import {expect} from 'chai'; import fs from 'fs'; import path from 'path'; import Promise from 'bluebird'; import iconv from 'iconv-lite'; import _debug from 'debug'; import _ from 'lodash'; import RegionWorldSitesPopsLexer from './../../../src/dsl/lexers/regionWorldSitesPopsLexer'; Promise.promisifyAll(fs); const deb...
'use strict'; // Karma configuration // Generated on Sat Oct 05 2013 22:00:14 GMT+0700 (ICT) module.exports = function(config) { config.set({ // base path, that will be used to resolve files and exclude basePath: '../../', // frameworks to use frameworks: ['jasmine'], ...
import FWCore.ParameterSet.Config as cms process = cms.Process("PROD") process.load("FWCore.MessageService.MessageLogger_cfi") process.MessageLogger.cerr.FwkReport.reportEvery = 1000 import FWCore.Framework.test.cmsExceptionsFatal_cff process.options = FWCore.Framework.test.cmsExceptionsFatal_cff.options process.ma...
module.exports = function towelSort (matrix) { let result = []; if (!matrix) return result matrix.forEach((child, i) => { if ((i + 1) % 2 !== 0) { result.push(...child) } else { result.push(...child.reverse()) } }); return result; }
import request from '@/router/axios' /* 产品列表 */ export function fetchList(query) { return request({ url: '/tenant/article/list', method: 'get', params: query }) } /* 详情 */ export function getObj(id) { return request({ url: '/tenant/article/get?id='+id, method: 'get', }) }
import $ from 'jquery' // import {VERSION} from './SerializeUtils' let resources = {}; // let equipmentXML = null; // let dressXML = null; // let additiveXML = null; // let enchantingXML = null; // let skillXML = null; // let badgeXML = null; // let petXML = null; // let medalXML = null; // let propXML = null; // let...
export const c_chip_group__label_FontSize = { "name": "--pf-c-chip-group__label--FontSize", "value": "0.875rem", "var": "var(--pf-c-chip-group__label--FontSize)" }; export default c_chip_group__label_FontSize;
"use strict"; import 'source-map-support/register'; const sdk = require("../.."); const MatrixClient = sdk.MatrixClient; const HttpBackend = require("matrix-mock-request"); const utils = require("../test-utils"); import expect from 'expect'; import Promise from 'bluebird'; describe("MatrixClient opts", function() { ...
// import {Multiple} from './multiple.js'; // import './styles.css'; // import 'bootstrap'; // import 'bootstrap/dist/css/bootstrap.min.css';
from django.shortcuts import render from rest_framework import viewsets from tracker_api import models from tracker_api import serializers # Create your views here. class TaskViewSet(viewsets.ModelViewSet): """ Handle creating and updating task""" serializer_class = serializers.TaskSerializer queryset = ...
from collections import defaultdict class Solution(object): def verticalOrder(self, root): """ :type root: TreeNode :rtype: List[List[int]] """ def dfs(p, i, j, res): if p: res[j].append((p.val, i)) self.leftMost = min(j, self.leftM...
from pandas import read_csv from matplotlib import pyplot series = read_csv('./input/daily-total-female-births-CA.csv', header=0, index_col=0) pyplot.plot(series) pyplot.show() pyplot.savefig('./output/female-daily-births.png')
# Copyright Contributors to the Packit project. # SPDX-License-Identifier: MIT """ This file defines classes for job handlers related to Bodhi """ import logging from os import getenv from typing import Optional from celery import Task from fedora.client import AuthError from packit.constants import DEFAULT_BODHI_NO...
# ---------------------------------- # Options affecting listfile parsing # ---------------------------------- with section("parse"): # Specify structure for custom cmake functions additional_commands = { 'add_gdal_driver': { 'flags': ['BUILTIN', 'PLUGIN'], 'kwargs': {'DEF': 1, 'TARGET': 1, 'SOURCES': '+'}}, ...
"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...
/** * UGENE - Integrated Bioinformatics Tools. * Copyright (C) 2008-2012 UniPro <ugene@unipro.ru> * http://ugene.unipro.ru * * 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 Foundation; either version...
# jturtle - Simple Turtle Library to be used # in Jupyter Notebooks # (c) 2018-20 Dmitri Soshnikov, http://twitter.com/shwars import matplotlib.pyplot as plt import math class Turtle: def init(self): self.x = 0 self.y = 0 self.direction = 90 self.down = True self.linewidth...
import logging import os from typing import NewType, TypeVar from tamarco.core.patterns import Singleton from tamarco.core.settings.backends import DictSettingsBackend, EtcdSettingsBackend, YamlSettingsBackend from tamarco.core.settings.backends.interface import SettingsInterface, _EmptyArg, _Undefined from tamarco.co...
# Generated by Django 3.1 on 2020-10-07 14:08 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('eviteapi', '0001_initial'), ] operations = [ migrations.CreateModel( name='Ev...
# # Copyright 2015-2020 Andrey Galkin <andrey@futoin.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 applicable ...
from .tokens import * from .expression import * """ AST for parsed Python Query Batch. Allows validation, normalization, rewriting, and serialization. Grammar is a strict subset of SQL-92. Lexer and parser token names borrowed from SparkSQL Grammar. """ class Batch(Sql): """A batch of queries""" ...
Clazz.declarePackage ("JU"); Clazz.load (["JU.T3"], "JU.MeshCapper", ["java.util.Arrays", "$.Hashtable", "JU.AU", "$.Lst", "$.M4", "$.P3", "$.Quat", "$.V3", "JU.Logger"], function () { c$ = Clazz.decorateAsClass (function () { this.slicer = null; this.dumping = false; this.capMap = null; this.vertices = null; this.lstR...
/* Copyright (c) 2015-2018, Linaro Limited * Copyright (c) 2022, Marvell * Copyright (c) 2022, Nokia * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #include <stdlib.h> #include <stddef.h> #include <string.h> #include <unistd.h> #include <math.h...
#!/usr/bin/env python # -*- coding: utf-8 -*- import codecs import os import re from setuptools import find_packages, setup NAME = 'srec2bin' PACKAGES = find_packages(where='.') META_PATH = os.path.join('srec2bin', '__init__.py') KEYWORDS = ['motorola', 'srecord', 'S3'] CLASSIFIERS = [ 'Development Status :: 4 -...
'use strict'; const Utils = require('./utils'); module.exports = (graph) => { const queue = []; const inDegreeMap = {}; const sortedList = []; Utils.createArray(graph.vertices) .forEach((v, i) => { inDegreeMap[i] = graph.getInDegree(i); if (inDegreeMap[i] === 0) { ...
from solubility.model import build_sa_bilstm_model, build_simple_bilstm_model