text stringlengths 3 1.05M |
|---|
let menuList=[
{menu:'dashboards',submenus:[
{menu:'analytics',submenus:[]},
{menu:'store',submenus:[]},
{menu:'duser',submenus:[]}
]},
{menu:'apps',submenus:[
{menu:'website',submenus:[
{menu:'fields',submenus:[
{menu:'image',submenus:[]},
... |
# Copyright 2021 VMware, Inc.
# SPDX-License-Identifier: Apache-2.0
"""
Load example input data for an scd2 template test.
The data is constructed working backwards from the current scd2 template definition as follows.
We have a source relation `S` (usually a view) and a target relation `T`. The elements in these two... |
"""Test uses randomly generated data such that data ordering
and refreshing can be checked
"""
import os
import random
import string
from datetime import datetime, timedelta
import pytest
import history.server_util
import history.statebuffer
from history.statebuffer import FETCH_PERIOD, FILE_EXT
@pytest.fixture(sco... |
#### NOTICE: THIS FILE IS AUTOGENERATED
#### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY
#### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES
from swgpy.object import *
def create(kernel):
result = Static()
result.template = "object/static/firework/shared_fx_01.iff"
result.attribute_template_id = -1
result.st... |
#ifndef ANNOYFORM_H_
#define ANNOYFORM_H_
typedef struct {
UInt32 install_time;
char code[11];
} RegPreferenceType;
void InitProtection();
Boolean IsRegistered();
void SaveCode( const char *code );
UInt32 GetDaysSinceFirst();
Boolean load_reg_form();
Boolean CheckCode(const char *code);
class CA... |
import React from 'react'
import PropTypes from 'prop-types'
import { Box } from 'rebass'
import styled from 'styled-components'
import { Grid, AutoSizer } from 'react-virtualized'
import { space as baseSpace } from 'themes/base'
import ChannelCardListItem from './ChannelCardListItem'
const StyledList = styled(Grid)`
... |
"""Module for testing seqrepo access class"""
import pytest
from uta_tools.data_sources import SeqRepoAccess
@pytest.fixture(scope="module")
def test_seqrepo_access():
"""Create SeqRepoAccess test fixture"""
return SeqRepoAccess()
def test_get_reference_sequence(test_seqrepo_access):
"""Test that get_r... |
# Copyright 2014 Rackspace
#
# 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 agree... |
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App.jsx';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
# MIT License
#
# Copyright (c) 2021 Arkadiusz Netczuk <dev.arnet@gmail.com>
#
# 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
# t... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 ... |
# Copyright 2015 Cloudbase Solutions Srl
# 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 r... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[15],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/pages/pricing.vue?vue&type=script&lang=js&":
/*!**************************************************************************************************... |
import requests
from bs4 import BeautifulSoup as bs
import pandas as pd
import time
# write metadata to excel without overwrite
def append_df_to_excel(df, excel_file):
df_excel = pd.read_excel(excel_file)
result = pd.concat([df_excel, df], ignore_index=True)
result.to_excel(excel_file, index=Fal... |
# coding: utf-8
"""
Influx API Service
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class Cell... |
from .stretchablecorr import *
from .filetools import *
from .graphplot import *
from .postprocess import *
from .opti_registration import * |
/* constraints handling */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <ctype.h>
#include <string.h>
#include <limits.h>
#include "ViennaRNA/params/default.h"
#include "ViennaRNA/params/constants.h" /* defines MINPSCORE */
#inc... |
const express = require('express');
const app = express();
const bodyParser = require('body-parser');
const mongoose = require('mongoose');
const consumerController = require('./consumer.controller');
const SPController = require("./sp.controller");
const checkPresence = require('./checkPresence');
const cors = require... |
import json
import re
from collections import defaultdict as dd
from timeit import default_timer as timer
import pandas as pd
import requests
from smseventlog import config as cf
from smseventlog import delta, dt
from smseventlog import functions as f
from smseventlog import getlog
from smseventlog.database import db... |
import Vue from 'vue'
import Foo from './source.vue'
new Vue({
el: '#app',
render: h => h(Foo)
}) |
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(generator["throw"]... |
#!/usr/bin/env python
# Lint as: python3
"""Tests for client report utilities."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from absl import app
from grr_response_core.lib import rdfvalue
from grr_response_core.lib.rdfvalues import stats as rdf_stat... |
#!/usr/bin/env python
from argparse import ArgumentParser
from pathlib import Path
hooks = (
"commit-msg",
"pre-commit",
)
if __name__ == "__main__":
parser = ArgumentParser()
parser.add_argument("action", choices=("install", "uninstall"))
parser.add_argument("--hooks", choices=hooks, nargs="*",... |
const testedResource = require('../common.js').testedResource;
const assertBatchOperation = require('../common.js').assertBatchOperation;
const http = require('../http.js');
const entitiesResource = testedResource + '/entities/';
const batchUpsertResource = testedResource + '/entityOperations/upsert';
describe('Batc... |
import shutil
import os
def verilator_available():
return shutil.which("verilator") is not None
def run_verilator(params: dict, top, files, test_driver):
if not verilator_available():
raise Exception("Verilator not available") # pragma: nocover
if len(files) == 0:
print("Warning: verila... |
#!/usr/bin/env python3
import unittest
from framework import VppTestCase, VppTestRunner
from vpp_ip_route import VppIpTable, VppIpRoute, VppRoutePath
class TestTCP(VppTestCase):
""" TCP Test Case """
@classmethod
def setUpClass(cls):
super(TestTCP, cls).setUpClass()
@classmethod
def te... |
import logging
import re
import time
import pytest
from tests.utils import wait
logger = logging.getLogger("testrunner")
@pytest.mark.flaky
def test_cillium(deployment, kubectl):
landing_req = 'curl -sm10 -XPOST deathstar.default.svc.cluster.local/v1/request-landing'
logger.info("Deploy deathstar")
ku... |
/*
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* (C) 2001 Dirk Mueller (mueller@kde.org)
* (C) 2006 Alexey Proskuryakov (ap@webkit.org)
* Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
* Copyright (C) 2008 T... |
################################################################################
# Create a Registration with the UI for a Role.
# Each module's aushadha.py is screened for this
#
# Each Class is registered for a Role in UI
# These can be used to generate Role based UI elements later.
#
# As of now string base role... |
var callbackArguments = [];
var argument1 = function() {
callbackArguments.push(arguments)
return true; };
var argument2 = null;
var argument3 = null;
var argument4 = function() {
callbackArguments.push(arguments)
return undefined; };
var argument5 = function() {
callbackArguments.push(arguments)
return ... |
/* eslint-disable */
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"prettier/@typescript-eslint",
],
rules: {
"@typ... |
/**
* Enjoy this over-engineered pile of garbage that is actually pretty cool
*
* @author Sv443
* @since 2.3.2
* @ref #340 - https://github.com/Sv443/JokeAPI/issues/340
*/
const { readdir, readFile, writeFile, copyFile, rm, rmdir } = require("fs-extra");
const { resolve, join } = require("path");
const { colors... |
/****************************************************************************
* net/arp/arp_send.c
*
* 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. Th... |
import React, { Component } from 'react';
class App extends Component {
state = { }
render() {
return ( <h1>Hello world</h1> );
}
}
export default App; |
export const AppMessageType = {
UserMessage: 'UserMessage',
UserReaction: 'UserReaction',
GroupInvitation: 'GroupInvitation',
SetGroupName: 'SetGroupName',
Acknowledge: 'Acknowledge',
SetUserName: 'SetUserName',
}
|
// Copyright 2010-2017 Google
// 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 wri... |
import React from 'react'
import { Link } from 'gatsby'
import Layout from '../components/layout'
import SEO from '../components/seo'
import Image from '../components/Images'
const ThankFeedbackPage = () => (
<Layout>
<SEO title="Góp ý thành công" />
<div className="bread-crumb flex-w">
<div className=... |
#ifndef __Time_History_FEM_T3D_ME_s_complete_h__
#define __Time_History_FEM_T3D_ME_s_complete_h__
#include "ResultFile_XML.h"
#include "ResultFile_hdf5.h"
#include "TimeHistory.h"
int time_history_output_func_fem_t3d_me_s_complete_to_xml_res_file(TimeHistory &_self);
int time_history_output_func_fem_t3d_me_s_complet... |
import math
import pygame
angle = 0
position = [100,700]
def line(a,angle,screen):
global position
x = position[0]+a*math.cos(math.radians(angle))
y = position[1]+a*math.sin(math.radians(angle))
pygame.draw.line(screen,(255,255,255),position,(x,y),3)
pygame.display.flip()
#pygame.time.wait(500)
... |
from random import choice
import numpy
from cogent3.maths.stats.special import igam
try:
from math import factorial
except ImportError: # python version < 2.6
from cogent3.maths.stats.special import Gamma
factorial = lambda x: Gamma(x + 1)
__author__ = "Hua Ying, Julien Epps and Gavin Huttley"
__cop... |
/*=========================================================================
Program: ParaView
Module: vtkSession.h
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; with... |
/******************************************************************************
* @section DESCRIPTION
*
* Compute spatial average water table position (zwt).
*****************************************************************************/
#include <vic_run.h>
/******************************************************... |
/* eslint-disable */
// Generated automatically by nearley, version undefined
// http://github.com/Hardmath123/nearley
const moo = require('moo');
const nearley = require('nearley');
function id(x) { return x[0]; }
var appendItem = function(a, b) { return function(d) { return d[a].concat([ d[b] ]); }; };
var append = ... |
import argparse
import logging
import os
import shutil
from typing import List
from rasa import model
from rasa.cli.default_arguments import add_model_param
from rasa.cli.utils import get_validated_path
from rasa.constants import (
DEFAULT_ACTIONS_PATH, DEFAULT_CREDENTIALS_PATH, DEFAULT_ENDPOINTS_PATH,
DEFAULT... |
from ma import ma
from models.event import EventModel
from schemas.reservation import ReservationSchema
from schemas.ticket import TicketSchema
class EventSchema(ma.ModelSchema):
class Meta:
model = EventModel
exclude = ("reservations",)
tickets = ma.Nested(TicketSchema, many=True)
reserva... |
#GDP Access List forBelize
GDPtable = [{'Country': 'Belize',
'GDP_Access': 1819.0,
'VisaRequirement': 'Freedom of Movement',
'VisaTemplate': 'free'},
{'Country': 'Afghanistan',
'GDP_Access': 8355.6,
'VisaRequirement': 'Visa is required',
'VisaTemplate': 'no'},
{'Country': 'Albania',
'GDP_Access': 5200.... |
from screen import *
from PIL import Image
import numpy as np
import skimage
import time
def initialize():
rect = get_window_rect()
time.sleep(0.1)
pixels = get_window_pixels(rect)
img = Image.fromarray(pixels)
img.show() |
/*
* This file runs in a Node context (it's NOT transpiled by Babel), so use only
* the ES6 features that are supported by your Node version. https://node.green/
*/
// Configuration for your app
// https://v2.quasar.dev/quasar-cli/quasar-conf-js
/* eslint-env node */
/* eslint-disable @typescript-eslint/no-var-req... |
function TncDapp() {
const ipfs = window.IpfsHttpClient('ipfs.infura.io', '5001', { protocol: 'https' });
const _this = this;
this.myPoolTemplate = Handlebars.compile($('#mypool-template').html());
this.myNftTemplate = Handlebars.compile($('#mynft-template').html());
this.noPoolsTemplate = Handleb... |
import React, {Component} from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import {fetchWeather} from '../actions/index';
export class SearchBar extends Component{
constructor(props){
super(props);
this.state = {term:''};
this.onInputChange = this... |
from .core import (plot_sample, plot_mean_var, plot_trajectories, plot_rollout,
batch_jacobian, polyak_averaging, sin_squashing_fn, tile,
load_csv, load_checkpoint)
from .train_regressor import train_regressor, iterate_minibatches
from .rollout import rollout, rollout_with_values, ... |
#!/usr/bin/python3.8
def nics_menu():
FILENAME = "nics.yaml"
SWITCHES = "-n/--nics"
DESCRIPTION = "YAML file that contains the configuration for the interfaces to use"
REQUIRED = "always"
TEMPLATE = """nics: # number of nics needs to equal to 2
"""
NIC_TEMPLATE = """ - name: "{}" # name of t... |
import React, { useState } from 'react';
import { useNavigate } from 'react-router-dom';
import clsx from 'clsx';
import PropTypes from 'prop-types';
import {
AppBar,
Badge,
Box,
Hidden,
IconButton,
Toolbar,
makeStyles
} from '@material-ui/core';
import MenuIcon from '@material-ui/icons/Menu';
import Inpu... |
#ifndef __GLOBAL_HEADER__
#define __GLOBAL_HEADER__
#define _TEST_MODE_
#endif
|
#!/usr/bin/env python
# Copyright (C) 2013 The Android Open Source 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/licenses/LICENSE-2.0
#
# Unless required b... |
/**
* \file
* \brief ATCA Hardware abstraction layer for SAMV71 I2C over ASF drivers.
*
* Prerequisite: add SERCOM I2C Master Polled support to application in Atmel Studio
*
* \copyright (c) 2015-2018 Microchip Technology Inc. and its subsidiaries.
*
* \page License
*
* Subject to your compliance wi... |
import numpy as np
from sklearn.datasets import load_digits
from sklearn.decomposition import PCA
from sklearn.manifold import TSNE
import matplotlib.pyplot as plt
X, y = load_digits(return_X_y=True)
plt.imshow(X[0].reshape(8, 8))
plt.savefig('images/digit.png', dpi=200)
plt.close('all')
X_ = TSNE(n_components=2... |
$('.delete-form').on('click', '.delete-button', function () {
event.preventDefault();
console.log('modal');
$('#your-sure-delete').modal() // initialized with defaults
$('#your-sure-delete').modal({ keyboard: false }) // initialized with no keyboard (!обязательно)
$('#your-su... |
const loaderUtils = require('loader-utils')
const {validate} = require('schema-utils')
const {SourceNode} = require('source-map')
const {SourceMapConsumer} = require('source-map')
function transform(source, sourceMap) {
// source 为 compiler 传递给 Loader 的一个文件的原内容
// 对source进行一些操作 之后返回给下一个loader
// return this.call... |
#!/usr/bin/env python
from setuptools import setup
import pep8ify
setup(
name="pep8ify",
license='Apache License 2.0',
version=pep8ify.__version__,
description="Cleans your python code to conform to pep8",
author="Steve Pulec",
author_email="spulec@gmail.com",
url="https://github.com/spule... |
import unittest
import asyncio
import websockets
import json
import unittest
import datetime
'''
This test assumes
1.Your server follows the correct protocol
2.Your server has one bot connected by the name of test and no 'non-bots' connected
3.You will not run into any networking errors
4.Your server is hosted locall... |
(function(){var $c=function(a){this.w=a||[]};$c.prototype.set=function(a){this.w[a]=!0};$c.prototype.encode=function(){for(var a=[],b=0;b<this.w.length;b++)this.w[b]&&(a[Math.floor(b/6)]^=1<<b%6);for(b=0;b<a.length;b++)a[b]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[b]||0);return a.join... |
import {Dimensions, Platform} from 'react-native'
const { width, height } = Dimensions.get('window')
// Used via Metrics.baseMargin
const metrics = {
marginHorizontal: 10,
marginVertical: 10,
section: 10,
baseMargin: 10,
doubleBaseMargin: 20,
smallMargin: 5,
doubleSection: 50,
horizontalLineHeight: 1,... |
/* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
* * Redistributions of source code must retain the above copyright
* notice, this ... |
# Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... |
from django.urls import path
from django.contrib import admin
urlpatterns = [
path('admin/', admin.site.urls),
]
|
from admins import Admin, Privileges
eric = Admin('eric', 'matthes', 'e_mattches', 'e_mattches@example.com', 'alaska')
eric_privileges = [
'can reset passwords',
'can moderate discussions',
'can suspend accounts',
]
eric.privileges.privileges = eric_privileges
eric.privileges.show_privileges()
|
import os
from typing import Any, Dict, Iterator, List, Optional, Union
from orbit_graph.database.connection import Connection
from orbit_graph.database.models import (
MemgraphConstraintExists,
MemgraphConstraintUnique,
MemgraphIndex,
)
__all__ = ("Memgraph", "MemgraphIndex")
MG_HOST = os.getenv("MG_HO... |
#ifndef LIBCAER_SRC_DVS132S_H_
#define LIBCAER_SRC_DVS132S_H_
#include "devices/device_discover.h"
#include "devices/dvs132s.h"
#include "container_generation.h"
#include "data_exchange.h"
#include "usb_utils.h"
#define IMU_TYPE_TEMP 0x01
#define IMU_TYPE_GYRO 0x02
#define IMU_TYPE_ACCEL 0x04
#define IMU_TOTAL_COUNT... |
import base64
import email
import os
import json
import uuid
from bs4 import BeautifulSoup as bs
from src.cryptography.chill_cipher.chill import Chill
from src.cryptography.digital_sign import ecdsa
import flask
import src.google.api.authorization as auth
import src.google.api.gmail as gmail_api
import yaml
app = fla... |
"""
The program receives a MATHEMATICAL OPERATOR from the USER
and returns (displaying it) its EXECUTION PRIORITY.
"""
# START Definition of the FUNCTIONS
def operatorPrecedence(operator):
if len(operator) == 1:
if (operator == "+" or operator == "-"):
return 1
elif (operator == "*" ... |
/*
* Copyright 2012 VirtuOz 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 applicab... |
import {configure, addParameters} from '@storybook/react';
import theme from './theme.js';
// automatically import all files ending in *.stories.js
const reqComponents = require.context('../src/components', true, /\.stories\.(js|jsx|ts|tsx)?$/);
const reqCommon = require.context('../storybook', true, /\.stories\.(js|j... |
# Copyright (c) 2017 StackHPC 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 or agreed to in wr... |
import requests
import re
class Cache:
def __init__(self, **kwargs):
self.url = 'https://raw.githubusercontent.com/{}/master/'.format(
kwargs.get('repo'))
self.tm = 'https://api.github.com/repos/{}/commits'.format(
kwargs.get('repo'))
self.cache = kwargs.get... |
export default {
banner: {
pageTitle: 'The ~~Im~~Possible Network',
pageDesc: `14 years of research and development is coming to fruition as we put together the final building blocks of what some said was impossible: Secure Access For Everyone.`,
// latestUpdate: {
// overline: 'Latest Update',
... |
import cognitive_face as CF
from global_variables import personGroupId
import sys
Key = str(open('resources/APIkey.txt').read().strip())
CF.Key.set(Key)
BASE_URL = 'https://westcentralus.api.cognitive.microsoft.com/face/v1.0/'
CF.BaseUrl.set(BASE_URL)
print("connecting API to server...")
personGroups = CF.person_gr... |
from typing import Sequence
from flax import linen as nn
from flax import struct
from enformer_flax.layers.container_layers import Residual, Sequential
from enformer_flax.layers.convolution_layers import ConvBlock
from enformer_flax.layers.pooling_layers import SoftmaxPooling1D
__all__ = ["Stem", "ConvTower", "Trans... |
import torch
# def nodetype(func):
# def inner(*args, **kwargs):
# current_device = "cuda:%s" % (torch.cuda.current_device())
# head_embedding, relation_embedding, tail_embedding = func(*args, **kwargs)
# triplet_idx = args[1]
# node_lut = args[2]
# nodetype_transfer_matrix... |
# coding: utf-8
# In[1]:
import pandas as pd
import os
# Just use 1 GPU
os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" # see issue #152
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
import tensorflow as tf
from keras.backend.tensorflow_backend import set_session
config = tf.ConfigProto()
config.gpu_options.per_process_... |
const CheckAuth = require('./use-cases/check-auth');
const checkAuth = new CheckAuth({
allowedGroups: process.env.ALLOWED_GROUPS.split(',')
});
const checkBasicAuth = new CheckAuth({
allowedGroups: process.env.BASIC_ALLOWED_GROUPS.split(',')
});
module.exports = { checkBasicAuth, checkAuth };
|
# create an empty image
im = sp.Image(32, 32)
# draw a rectangle on it
for i in range(8, 24):
for j = range(8, 24):
im.setPixel(i, j, 255)
|
#!d:\marti\documents\materia sistemas operativos\pdjango\awsenv\scripts\python.exe
# $Id: rst2xml.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing Docutils XML... |
#ifndef __ENTITY_BULLET__
#define __ENTITY_BULLET__
#include "Entity.h"
class EntityBullet : public Entity
{
public:
EntityBullet();
EntityBullet(Entity& ent);
virtual void update(float passedTime);
virtual void beginContact(Entity*, b2Contact*);
virtual void endContact(E... |
//========================================================================
// GLFW 3.3 - www.glfw.org
//------------------------------------------------------------------------
// Copyright (c) 2016 Google Inc.
// Copyright (c) 2006-2016 Camilla Löwy <elmindreda@glfw.org>
//
// This software is provided 'as-is', withou... |
import json
from newauth.models import db
pings_users = db.Table(
'pings_users',
db.Column('ping_id', db.Integer, db.ForeignKey('ping.id'), primary_key=True),
db.Column('user_id', db.Integer, db.ForeignKey('user.id'), primary_key=True)
)
pings_authcontacts = db.Table(
'pings_authcontacts',
db.Col... |
/* Copyright 2021 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* LSM6DSO Accel and Gyro driver for Chrome EC */
#ifndef __CROS_EC_ACCELGYRO_LSM6DSO_PUBLIC_H
#define __CROS_EC_ACCELGYRO_LSM6DSO_PUBLIC_H
#incl... |
importPackage(java.lang);
importPackage(java.io);
importPackage(java.net);
importPackage(javax.script);
importPackage(com.sencha.util);
importPackage(com.sencha.logging);
importPackage(com.sencha.util.filters);
importPackage(com.sencha.exceptions);
importPackage(com.sencha.command);
importPackage(com.sencha.tools.gener... |
/*global require */
/*!
* @see {@link https://github.com/mildrenben/surface/blob/master/gulpfile.js}
* @see {@link https://www.webstoemp.com/blog/gulp-setup/}
* @see {@link https://gulpjs.com/plugins/blackList.json}
* @see {@link https://hackernoon.com/how-to-automate-all-the-things-with-gulp-b21a3fc96885}
* @see... |
# 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.
"""URL endpoint containing server-side functionality for pinpoint jobs."""
import json
from google.appengine.api import users
from google.appengine.ext imp... |
/*jshint node:true*/
/* global require, module */
var EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
module.exports = function(defaults) {
var app = new EmberAddon(defaults, {
});
/*
This build file specifies the options for the dummy test app of this
addon, located in `/tests/dummy`
... |
import pickle
t = open('store','r')
o = pickle.Unpickler(t)
w = o.load()
print w
ind = w.keys()
ws = sorted([float(x) for x in w[ind[0]].keys()])
print ws
import scipy
chis = scipy.zeros(len(ws))
print w.keys()
for key in w.keys():
if key != 'MACS2214-13':
for s in range(len(ws)):
chis[s] +=... |
from django.test import TestCase
from login.models import Users
from login.models import User_Profiles
from login import oauth
from login import auth
from login import google
import random
import string
class UUIDTestCase(TestCase):
def pesudo_random_string_generator(self):
return ''.join(random.SystemRand... |
from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^get_datatable_frame$', views.get_datatable_frame, name='get_datatable_frame'),
]
|
# -*- coding: future_fstrings -*-
from xml.dom import minidom
import xpath
import os
import json
import copy
with open("templates/page_template.svg", 'r', encoding='utf-8') as f:
_page = minidom.parse(f)
with open("deputados.json", 'r', encoding='utf-8') as f:
deputados = json.load(f)
vereadores = [... |
import spacy
import re
from pdf2image import convert_from_path
import os
from tqdm import tqdm
import pre_processing
from PIL import Image
import pytesseract
nlp = spacy.load("en_core_web_sm")
def helper(text):
dummy = []
for word in text:
dummy.append(str(word))
final = " ".join(dummy)
retur... |
'use strict';
module.exports = {
plugins: [
require('postcss-import')(),
],
};
|
'use strict';
const plugin = require('./index')
const remark = require('remark');
const processMarkdown = (md, opts) => {
return remark()
.use(plugin, opts)
.process(md);
};
test.each([
["one pipe", ` * [This is a title with a | in](https://unifiedjs.com/)`, 1],
["two pipes",` * [This is a title | with ... |
function c(a){throw a;}var d=void 0,aa=!0,ba=null,ca=!1,e;e||(e=eval("(function() { try { return Module || {} } catch(e) { return {} } })()"));var da={},ea;for(ea in e)e.hasOwnProperty(ea)&&(da[ea]=e[ea]);var fa="object"===typeof process&&"function"===typeof require,ga="object"===typeof window,ia="function"===typeof im... |
# Copyright 2016-present, Facebook, Inc.
# 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.
from __future__ import absol... |