text stringlengths 3 1.05M |
|---|
"""
=======================================================================================================================
Filename: c02_ex07.py
Author: Henrique Rodrigues
Description: CURSO INTENSIVO DE PYTHON - Eric Matthes
2.7 Removendo caracteres em branco de nomes: Armazene o nom... |
var rangeTestUtils = (function() {
function iterateNodes(node, func, includeSelf) {
if (includeSelf) {
func(node);
}
for (var i = 0, children = node.childNodes, len = children.length; i < len; ++i) {
iterateNodes(children[i], func, true);
}
}
... |
#!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "guacamole_django_client.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. ... |
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
elric.mock('../');
const importedFn = require('../');
const localFn = elric.fn(() => 'abcd');... |
import logging
from transaction_account.API import save_excel
from Utils import *
from transaction_account.api_get_addresslist import get_address_list
from transaction_account.API import request_Api
from transaction_account.api_chain_transaction import transaction_one, random_transaction
# !/usr/bin/env python
# enc... |
#ifndef MYPROJECT_LOCALCFUNC_H
#define MYPROJECT_LOCALCFUNC_H
int localClangFunc_mod();
#endif
|
//LIBS
import Image from "next/image"
import Zoom from 'react-reveal/Zoom';
import post from "../content/data.json";
import twitter from "/public/twitter.png"
import whatsapp from "/public/whatsapp.png"
import fb from "/public/facebook.png"
export default function Card() {
return (
<div className="grid ... |
import pandas as pd
import tqdm, os, glob, json, re, time
import numpy as np
from nltk.corpus import stopwords
from sklearn.model_selection import train_test_split
import enchant
import pickle as pkl
BASEPATH = '/Users/Janjua/Desktop/Projects/Octofying-COVID19-Literature/dataset'
stop_words = set(stopwords.words('engl... |
import streamlit as st
from ui.session_state import SessionState, get_state
from infer import ModelStage
def show(state: SessionState):
st.header("identify")
state = get_state()
if state.model.stage < ModelStage.DEFINED:
st.error("Please create the model first!")
|
/*
* Copyright 2021 Adobe. All rights reserved.
* This file is licensed to you 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 appli... |
# Copyright 2020 The StackStorm Authors.
# Copyright 2019 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
#
# Unless ... |
import os
import pytest
from airline_demo.cache_file_from_s3 import cache_file_from_s3
from dagster import (
DagsterInvalidDefinitionError,
ModeDefinition,
ResourceDefinition,
execute_pipeline,
execute_solid,
pipeline,
)
from dagster.core.storage.file_cache import LocalFileHandle, fs_file_cach... |
import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import ownerDocument from 'dom-helpers/ownerDocument';
import exactProp from '../utils/exactProp';
function getContainer(container, defaultContainer) {
container = typeof container === 'function' ? container() : containe... |
const functionArrayAndLength = (arr) => {
for (let i = 0; i < arr.length; i += 1) {
console.log(arr[i]);
}
console.log(arr.length);
};
module.exports = functionArrayAndLength;
|
# ===============================================================================
#
# Copyright (c) 2013-2017 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
# ===============================================================================
"""M2Crypto... |
# Reviewing the data required for the model development
# Import utilities, PyAthena and other modules
import pandas as pd
import numpy as np
import datetime
import time
import sys
import os
import plotly.express as px
# Print current working directory location
print(os.getcwd()+'/')
# Connect to the repo package fol... |
/*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2004 The PHP Group |
+--------------... |
# coding: utf-8
"""
Xero Payroll UK
This is the Xero Payroll API for orgs in the UK region. # noqa: E501
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
from xero_python.models import BaseModel
class EmployeeLeaves(BaseModel):
"""NOTE: This cla... |
// This file is automatically compiled by Webpack, along with any other files
// present in this directory. You're encouraged to place your actual application logic in
// a relevant structure within app/javascript and only use these pack files to reference
// that code so it'll be compiled.
import Rails from "@rails/u... |
from flask import render_template
from examples.config import setting_app
app = setting_app()
@app.route("/", methods=["GET"])
def index():
return render_template("index.html")
if __name__ == "__main__":
app.run(debug=True)
|
"""
fs.expose.importhook
====================
Expose an FS object to the python import machinery, via a PEP-302 loader.
This module allows you to import python modules from an arbitrary FS object,
by placing FS urls on sys.path and/or inserting objects into sys.meta_path.
The main class in this module is FSImportHoo... |
"""
Java の CountDownLatch 風なクラス (マルチスレッド処理用)
REFERENCES::
https://stackoverflow.com/questions/10236947/does-python-have-a-similar-control-mechanism-to-javas-countdownlatch
https://qiita.com/shinkiro/items/75f3561d6bc96694ce30
"""
import threading as th
import typing as ty
class CountDownLatch:
"""\
Java の Co... |
import React, { Component } from 'react';
class ExperimentUser extends Component {
render(){
return (
<p>ExperimentUser</p>
);
}
}
export default ExperimentUser;
|
# ##### BEGIN GPL LICENSE BLOCK #####
#
# 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 2
# of the License, or (at your option) any later version.
#
# This program is distrib... |
import deepSearchPredicate from "../../../utils/deepSearchPredicate"
import {
extractGroupsImmutable,
getSorterImmutable,
} from "../common/VarerHelper"
import * as consts from "../consts"
import { fillBuyPrice, fillSellPrice } from "./service"
export const listStore = ["varerInventoryItems"]
export const filters... |
#!/usr/bin/env python3
# Copyright (c) 2015-2020 The Baricoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test multiple RPC users."""
from test_framework.test_framework import BaricoinTestFramework
from test... |
//
// MRProperty.h
//
// Copyright 2018-2019 Twitter, Inc.
// Licensed under the MoPub SDK License Agreement
// http://www.mopub.com/legal/sdk-license-agreement/
//
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import "MRConstants.h"
@interface MRProperty : NSObject
- (NSString *)description;
- (NSS... |
"""
@file
@brief This file proposes a simple algorithm to solve a Sudoku. It finds the first possible solution.
"""
def chiffre_barre_ligne(s, r, i):
"""
Look into every number in line *i*,
if the number in column *k* ``s[i][k]`` is not null,
@param s current state of the sudoku
@param... |
from learntools.core.multiproblem import MultipartProblem
def backtickify(s):
return '`{}`'.format(s)
quantum_of_bonus = 1/37
# TODO: Maybe this factory should be a class method of ProblemView or something?
def instantiate_probview(prob_cls, tutorial_id, value_per_problem):
# TODO: Bleh, circular import...
... |
#!/usr/bin/env python3.7
'''
@author: Chang Min Park (cpark22@buffalo.edu)
'''
import os
# Local packages
from src.logger import Logger
from src.parser import *
import src.config as cfg
from src.downloader import Downloader
logger = Logger.get_instance()
def main():
'''
Download apps
'''
# Settings
... |
// server.js
const express = require('express');
const app = express();
// Run the app by serving the static files
// in the dist directory
app.use(express.static(__dirname + '/dist'));
// Start the app by listening on the default
// Heroku port
app.listen(process.env.PORT || 8080);
const forceSSL = function() {
ret... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const React = tslib_1.__importStar(require("react"));
const react_styles_1 = require("@patternfly/react-styles");
const notification_drawer_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/com... |
# AUTOGENERATED! DO NOT EDIT! File to edit: notebooks/02_Model.ipynb (unless otherwise specified).
__all__ = ['train_one_epoch', 'show_prediction', 'show_predictions', 'iou_metric_mask_pair',
'iou_metric_matrix_of_example', 'largest_values_in_row_colums', 'iou_metric_example', 'iou_metric',
'show... |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('brambling', '0048_auto_20160204_0314'),
]
operations = [
migrations.RemoveField(
model_name='event',
name='a... |
# Pyrogram - Telegram MTProto API Client Library for Python
# Copyright (C) 2017-2020 Dan <https://github.com/delivrance>
#
# This file is part of Pyrogram.
#
# Pyrogram is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free... |
# (C) Datadog, Inc. 2018
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
"""
Implementation of WMI calculators a few `CounterType`(s).
Protocol.
Use MSDN to lookup the class, property and counter type to determine the
appropriate calculator.
For example, "Win32_PerfRaw... |
from setuptools import setup
setup(
name = 'p2whois',
packages = ['p2whois'],
version = '0.5',
description = 'Proxy to Prefix WhoIs',
author = 'Avner Herskovits',
author_email = 'avnr_ at outlook.com',
url = 'https://github.com/avnr/p2whois',
download_url = 'https://github.com/avnr/p2wh... |
from distutils.version import LooseVersion
import os
import sys
from setuptools import __version__ as setuptools_version
from setuptools import find_packages
from setuptools import setup
version = '1.10.0.dev0'
# Remember to update local-oldest-requirements.txt when changing the minimum
# acme/certbot version.
insta... |
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by DllValidate.rc
//
#define IDM_ABOUTBOX 0x0010
#define IDS_ABOUTBOX 101
#define IDD_DLLVALIDATE_DIALOG 102
#define IDR_MAINFRAME 128
#define IDD_DIALOG1 12... |
/* global _ Bloodhound */
define(['app', 'handlebars', 'core/UIView', 'utils'], function (app, Handlebars, UIView, Utils) {
'use strict';
// @TODO: this should be a great feature on Models
function getMultipleAttributes(model, attributes) {
if (attributes && attributes.length > 0) {
var columns = attri... |
'''
Feature Extraction and Image Processing
Mark S. Nixon & Alberto S. Aguado
http://www.southampton.ac.uk/~msn/book/
ConvolutionUtilities: Helper module to apply convolutions. Functions to create kernels and perform convolutions
'''
# Images
from ImageUtilities import createImageF, createImageL
from ImagePropertiesU... |
"""
Author: Bill OConnor
"""
def doi2fn(doi, doc_part):
"""
Convert a DOI to a file name.
@type doi: string or list
@param doi: Digital Object Identifier of the article in the corpus.
@rtype: string or list
@return: Returns a single file name or a list of filenames..
"""
fname = lamb... |
(function() {
'use strict';
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('index.html', {
innerBounds: {
width: 960,
height: 600,
minWidth: 960,
minHeight: 600
},
state: 'maximized'
});
});
}());
|
# -*- coding: utf8 -*-
# tests.test_text.test_postag
# Tests for the part-of-speech tagging visualization
#
# Author: Rebecca Bilbro
# Created: 2019-02-19 21:29
#
# Copyright (C) 2019 The scikit-yb developers
# For license information, see LICENSE.txt
#
# ID: test_postag.py [bd9cbb9] $
"""
Tests for the part-of-spe... |
# local imports
from ..utils.sdto import update_sale_parser, sale_parser_resp
# from ..models.sale_model import sale_ns, sales, post_sales
# from ..models.sale_model import sale_ns, post_sales
# from ..models.sale_model import salesr, sale_ns, post_sales, sales_resp
from ..models.sale_model import salesr, sale_ns, post... |
import django
from django.test import TestCase
from node.resources.gpu_manager import GPUManager
class test_GPUManager(TestCase):
def setUp(self):
GPUManager.reset_gpu_dict()
def test_add_new_node_gpus(self):
node_id = 1
gpu_count = 3
GPUManager.define_node_gpus(node_... |
from django.db import models
from django.core.exceptions import ValidationError
from medico.models import Medico
from datetime import date
class Consulta(models.Model):
"""
Classe para definir as consultas
"""
id = models.AutoField(primary_key=True)
dia = models.DateField()
horario = models.Ti... |
"""A dummy backend for use in tests.
This backend implements the backend API in the simplest way possible. It is
used in tests of the frontends.
"""
import pykka
from mopidy import backend
from mopidy.models import Playlist, Ref, SearchResult
def create_proxy(config=None, audio=None):
return DummyBackend.star... |
#!/usr/bin/env python
"""
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
"License");... |
import logging
logger = logging.getLogger(__name__)
def get(isamAppliance, check_mode=False, force=False):
"""
Retrieve available updates
"""
return isamAppliance.invoke_get("Retrieving available updates",
"/updates/available.json")
def discover(isamAppliance, ch... |
import React, {Component} from 'react';
import {
StyleSheet,
Text,
Alert,
Image,
View,
TouchableOpacity,
Keyboard
} from 'react-native';
import {Config} from '../unit/AllUnit'
export default class Page extends Component {
lastPressTime = 0
onPress = () => {
if (this.props.disable) {
retur... |
# Generated by Django 2.0.3 on 2018-03-30 14:18
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('extras', '0010_customfield_filter_logic'),
]
operations = [
migrations.AlterField(
model_name='... |
const initialState = {
message: '',
timeout: null,
visible: false,
};
export default function (state = initialState, action) {
switch (action.type) {
case 'SHOW_ALERT':
return {
...state,
visible: true,
timeout: action.timeout,
message: action.message,
};
cas... |
//
// SBW Icon (fontawsome 4.7)
// good spinning icons here
// https://fontawesome.com/v4.7.0/examples/#animated
// https://fontawesome.com/how-to-use/on-the-web/styling/animating-icons
//
nrStatusBar.register({
name: "icon",
type: "Icon",
description: "The widget allows using the fa ... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
##########################################################################
# If not stated otherwise in this file or this component's Licenses.txt
# file the following copyright and licenses apply:
#
# Copyright 2020 RDK Management
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use th... |
"""
Django settings for Instagram project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os... |
"""Support for control of ElkM1 tasks ("macros")."""
from typing import Any
from openpeerpower.components.scene import Scene
from . import ElkAttachedEntity, create_elk_entities
from .const import DOMAIN
async def async_setup_entry(opp, config_entry, async_add_entities):
"""Create the Elk-M1 scene platform."""
... |
import numpy as np
import scipy.stats
import matplotlib.pyplot as plt
from network_simulator.poissonPointProcess import generateUsers, generateUsersPPP
def poissonPoint():
x, y = generateUsersPPP(50, 0.2)
x1, y1 = generateUsers(50, len(x))
xy = np.vstack([x, y])
z = scipy.stats.gaussian_kde(xy)(xy)
... |
var express = require('express');
var bodyParser = require('body-parser');
var cors = require('cors');
var $fh = require("fh-mbaas-api");
var constants = require('./constants.js');
function deleteSelfSupportRoute() {
var deleteSelfSupport = new express... |
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc);
switch (arguments.length) {
case 2: return decorators.reduceRight(function(o, d) { r... |
inputs = [] # the list of inputs from the previous layer
weights = [[], [], []] # nested list of weights for each node in the layer
biases = [] # biad for each node
layer_outputs = []
for neuron_weights, neuron_bias in zip(weights, biases):
neuron_output = 0
for neuron_input, weight in zip(inputs, neuron_weights... |
from SF_9DOF import IMU
import requests
import json
#create IMU object
imu = IMU()
#Initialize IMU
imu.initialize()
imu.enable_accel()
imu.read_accel()
accel_data = imu.ax
print str(accel_data)
print "accel data"
payload = {'firstName':'Kehlin',
'lastName':'Sizzaaane',
'accelData'... |
import "./main";
import CTFd from "core/CTFd";
import $ from "jquery";
import { htmlEntities } from "core/utils";
import { ezQuery } from "core/ezq";
function deleteCorrectSubmission(event) {
const key_id = $(this).data("submission-id");
const $elem = $(this)
.parent()
.parent();
const chal_name = $elem
... |
"""
@brief test log(time=8s)
@author Xavier Dupre
"""
import io
import sys
import os
import unittest
from contextlib import redirect_stdout
from pyquickhelper.loghelper import fLOG
from pyquickhelper import check, _setup_hook, get_insetup_functions
class TestInitFunction(unittest.TestCase):
def test_ch... |
/* Copyright (c) 2020, 2021 Dennis Wölfing
*
* 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 THE AUTHOR D... |
# -*- coding: utf-8 -*-
import os
import re
import json
import datetime
import time
import requests
def generate_cookies_dict() -> dict:
try:
cookies_dict = {
'eai-sess': os.environ['EAI_SESS'],
'UUkey': os.environ['UUKEY']
}
return cookies_dict
except Exceptio... |
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.CycleStorageDr... |
// Copyright (c) 2013 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef ATOM_BROWSER_API_ATOM_API_BROWSER_WINDOW_H_
#define ATOM_BROWSER_API_ATOM_API_BROWSER_WINDOW_H_
#include <map>
#include <memory>
#include <string>
#include <vector>
#include ... |
// noinspection SpellCheckingInspection
module.exports = {
extends: [
'plugin:vue/vue3-recommended' // see: https://eslint.vuejs.org/rules/#priority-c-recommended-minimizing-arbitrary-choices-and-cognitive-overhead-for-vue-js-3-x
],
rules: {
// region Base rules
// endregion
... |
import Sequelize from 'sequelize';
import databaseConfig from '../config/database';
import T1 from '../app/models/T1';
import T2 from '../app/models/T2';
import T3 from '../app/models/T3';
import T4 from '../app/models/T4';
import T5 from '../app/models/T5';
const models = [T1, T2, T3, T4, T5];
class Database {
c... |
import { Component, ElementRef, Renderer, Directive, EventEmitter, ComponentFactoryResolver, KeyValueDiffers, Output, Renderer2, ViewContainerRef, NgModule } from '@angular/core';
import { __values } from 'tslib';
import { fromEvent } from 'rxjs';
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked... |
/*
* Copyright 2021 New Relic Corporation. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/
'use strict'
const tap = require('tap')
const utils = require('@newrelic/test-utilities')
const common = require('../common')
const { createEmptyResponseServer, FAKE_CREDENTIALS } = require('../aws-server-stub... |
import React from 'react';
import { shallow } from 'enzyme';
import TopicSelector from '../TopicSelector';
describe('<TopicSelector />', () => {
it('renders without exploding', () => {
const props = {
sort: 'active',
isSingle: true,
bold: true,
topics: ['cocozl', 'introduceyours... |
import unittest
from conans.test.utils.tools import TestClient
import os
from conans.model.ref import ConanFileReference
class CopyPackagesTest(unittest.TestCase):
def test_copy_command(self):
client = TestClient()
conanfile = """from conans import ConanFile
class Pkg(ConanFile):
settings = "... |
import "babel-polyfill"
import "coffeekraken-sugar/js/features/all"
import SSwiperComponent from "../../../dist/index"
const swiper1 = document.querySelector("s-swiper")
swiper1.addEventListener("slideChange", e => {
console.log("slide change", e)
})
|
module.exports={D:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0.007555,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Convert the given code to use the specified newline string, either '\n' or
* '\r\n'.
*/
function convertNewlines(source, newlineStr) {
if (newlineStr === '\n') {
return source.replace(/\r\n/g, '\n');
}
else if (new... |
import numpy as np
import pickle as pkl
clf_model = 'utils/svm_clf.pkl'
file_ = open(clf_model, 'rb')
clf_svm = pkl.load(file_)
file_.close()
def predict(feature):
pred = clf_svm.predict(feature)
if pred == 1:
return 'Malignant'
else:
return 'Benign'
if __name__=='__m... |
import os
from SurfaceTopography.IO.FromFile import read_hgt
DATADIR = os.path.join(
os.path.dirname(
os.path.dirname(os.path.realpath(__file__))),
'file_format_examples')
def test_read():
surface = read_hgt(os.path.join(DATADIR, 'N46E013.hgt'))
nx, ny = surface.nb_grid_pts
assert nx == ... |
def main():
from sys import stdin, stdout
rl = stdin.readline
int1 = int
b = []
a = b.append
N, k = map(int1, rl().split())
for i in range(N):
a(int1(rl()))
n = len([x / x for x in b if ((x % k) == 0)])
stdout.write(str(n))
if __name__ == "__main__":
main()
|
from sklearn.model_selection import KFold
from joblib import wrap_non_picklable_objects, Parallel, delayed, cpu_count
from tensorflow.keras.callbacks import EarlyStopping, Callback
from tensorflow.python.client import device_lib
import os
import tensorflow as tf
from src.model import *
import numpy as np
def cv(compo... |
"""
ASGI config for freemazon project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SET... |
import styled from 'styled-components';
export const FooterWrapper = styled.footer`
display: grid;
justify-content: center;
align-items: center;
justify-items: center;
grid-template-columns: repeat(3, 50px);
gap: 10px;
margin: 0 15px;
border-top: 2px solid ${props => props.theme.grayShadow};
`;
export... |
# support for the standalone dg_checklist binary
import sys
import os
import os.path
if "gi" in sys.modules: # gtk3
import gi
gi.require_version('Gtk','3.0')
from gi.repository import Gtk as gtk
from gi.repository import GObject as gobject
from gi.repository import Gdk as gdk
DELETE=None #... |
# -*- coding: utf-8 -*-
import warnings
import setupext
import os
import sys
# This handles all of the work to make our platform specific extension options.
platform_specific = {
'include_dirs': [
os.path.join('native', 'common', 'include'),
os.path.join('native', 'python', 'include'),
os.... |
webpackJsonp([85],{
/***/ 1894:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AddonModImscpIndexPageModule", function() { return Add... |
/*****************************************************************************
* Open MCT, Copyright (c) 2014-2017, United States Government
* as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version ... |
from collections import OrderedDict
import numpy as np
from gym.spaces import Box, Dict
import mujoco_py
from multiworld.core.serializable import Serializable
from multiworld.envs.env_util import (
get_stat_in_paths,
create_stats_ordered_dict,
get_asset_full_path,
)
from multiworld.envs.mujoco.mujoco_env ... |
import React from 'react'
import { withTheme } from 'styled-components'
// import styled, { css } from 'styled-components'
const Reservation = (props) => {
return (
<div>
<form
method="post"
netlify-honeypot="bot-field"
data-netlify="true"
... |
/***************************************************************************//**
* \file cy_scb_spi.h
* \version 2.30.1
*
* Provides SPI API declarations of the SCB driver.
*
********************************************************************************
* \copyright
* Copyright 2016-2019 Cypress Semiconductor Corpora... |
module.exports = require('../images/2/1f3a9.png');
|
import axios from 'axios'
export default {
getSearch(fn){
axios.get('http://home.19road.com/19lu/api/web/v1/games/search?title').then((response)=>{
fn(response.data.data)
console.log(response.data.data);
}).catch()
}
} |
import itertools
import json
import re
import subprocess
import time
from datetime import timedelta
import requests
from celery.exceptions import SoftTimeLimitExceeded
from celery.utils.log import get_task_logger
from django.conf import settings
from django.contrib.auth.models import User
from django.db import models... |
/**
* Template-related functions
*/
function loadTemplates(callback){
var templates = {};
var urls = [];
$('script[type="text/template"]').each(function(){
urls.push($(this).attr('src'));
});
async.map(urls, function(url, cb){
$.get(url, function(tmpl){
var tags = $(tm... |
from os import path, environ
from json import load
from ast import literal_eval
with open(path.join(path.dirname(__file__), 'config.json')) as file:
CONFIG = load(file)
def read_recommenders():
"""
store recommenders as name=address;name=
"""
var = literal_eval(environ.get('RECOMMENDERS', 'None'))... |
/*
Copyright 2010-2013 SourceGear, 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 agreed to in writing... |
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
# util __init__.py
from __future__ import unicode_literals
from werkzeug.test import Client
import os
import re
import urllib
import frappe
import datetime
import math
no_value_fields = ['Section Break', 'Column Br... |
"use strict";
/********************************************************************************
* Copyright (C) 2019 TypeFox and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl... |
import pytest
from notifications_utils.validate_html import check_if_string_contains_valid_html
@pytest.mark.parametrize(
"good_content",
(
"<div>abc</div>",
'<div style="display: none;">abc</div>',
"""<div style="margin: 20px auto 30px auto;">
<img
src="http://google.com"
a... |