text stringlengths 3 1.05M |
|---|
from abc import ABC, abstractmethod
from .utils import FileUtils, LoggingUtils
import os
import subprocess
class Build(ABC):
def __init__(self, configuration):
super().__init__()
self.configuration = configuration
@abstractmethod
def before_build(self):
raise NotImplementedError(... |
/*------------------------------------------------------------------------------------
MSF Dashboard - module-lang.js
(c) 2015-2016, MSF-Dashboard contributors for MSF
List of contributors: https://github.com/MSF-UK/MSF-Dashboard/graphs/contributors
Please refer to the LICENSE.md and LICENSES-DEP.md for... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE126_Buffer_Overread__CWE129_large_63b.c
Label Definition File: CWE126_Buffer_Overread__CWE129.label.xml
Template File: sources-sinks-63b.tmpl.c
*/
/*
* @description
* CWE: 126 Buffer Overread
* BadSource: large Large index value that is greater than 10-1
* G... |
default_app_config = 'system.apps.SystemConfig' |
# Copyright 2011 OpenStack Foundation
# 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 requ... |
import numpy as np
import torch
from .base_sampler import BaseSampler
class RandomSampler(BaseSampler):
def __init__(self,
num,
pos_fraction,
neg_pos_ub=-1,
add_gt_as_proposals=True,
**kwargs):
super(RandomSampler, self... |
# -*- coding: utf-8 -*-
def main():
import sys
input = sys.stdin.readline
s, t, x = map(int, input().split())
if s > t:
t += 24
if x < s:
x += 24
if s <= x < t:
print('Yes')
else:
print('No')
if __name__ == "__main__":
main()
|
"""
The `find-lr` subcommand can be used to find a good learning rate for a model.
It requires a configuration file and a directory in
which to write the results.
$ allennlp find-lr --help
usage: allennlp find-lr [-h] -s SERIALIZATION_DIR [-o OVERRIDES]
[--start-lr START_LR] [--end-... |
/****************************************************************************
Copyright (c) 2013-2016 Chukong Technologies Inc.
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and assoc... |
# -*- coding: utf-8 -*-
# Copyright 2018-2020 Streamlit 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 applicabl... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* rush00.c :+: :+: :+: ... |
#!/usr/bin/env python
'''
Copyright (c) 2019, Robot Control and Pattern Recognition Group, Warsaw University of Technology
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... |
class Baz(object):
def inga(self):
return 1 + 3
|
// Copyright (c) 2017-2020 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_RPC_BLOCKCHAIN_H
#define BITCOIN_RPC_BLOCKCHAIN_H
#include <consensus/amount.h>
#include <core_io.h>
#includ... |
#include "phenom/sysutil.h"
#include "phenom/string.h"
#include "phenom/hashtable.h"
#include "tap.h"
static ph_memtype_def_t mt_def = { "test", "misc", 0, 0 };
static ph_memtype_t mt_misc = 0;
static union {
void *ptr;
ph_string_t **str;
} kptr, vptr;
static void load_data(ph_ht_t *ht, uint32_t howmany)
{
ph_s... |
"""
This is a test for a specific edge case:
if the function passed as a kwarg has a nested
function, it doesn't get processed properly.
If we change half(x) / 2 to x / 4, it all works fine.
So basically no nested functions in kwargs.
"""
import numpy as np
from fastats import single_pass
def half(x):
return x... |
import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.neighbors import KNeighborsRegressor
from sklearn.pipeline import make_pipeline
from tpot.builtins import ZeroCount
from tpot.export_utils import set_param_recursive
# NOTE: Make sure that the outcome column is lab... |
const app = require("express")();
const stripe = require("stripe")("sk_test_key");
app.use(require("body-parser").text());
app.post("/charge", async (req, res) => {
try {
let {status} = await stripe.charges.create({
amount: 2000,
currency: "usd",
description: "An example charge",
source: req.body
});... |
# Generated by Django 3.1.5 on 2021-02-01 10:06
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('blogs', '0009_auto_20210131_0756'),
]
operations = [
migrations.CreateModel(
name='Comment',
... |
import gc
import math
import os
import re
import warnings
from fractions import Fraction
from typing import Any, Dict, List, Optional, Tuple, Union
import numpy as np
import torch
from . import _video_opt
try:
import av
av.logging.set_level(av.logging.ERROR)
if not hasattr(av.video.frame.VideoFrame, "p... |
class ModifyStoreController {
constructor() {
this.name = 'modifyStore';
}
}
export default ModifyStoreController;
|
/*
* 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"); you may ... |
# optimizer
optimizer = dict(
type='Adam', lr=0.0001, weight_decay=0.0004, betas=(0.9, 0.999))
optimizer_config = dict(grad_clip=None)
# learning policy
lr_config = dict(
policy='step', by_epoch=False, gamma=0.5, step=[300000, 400000, 500000])
runner = dict(type='IterBasedRunner', max_iters=600000)
checkpoint_c... |
/**
* Auto-generated action file for "Microsoft Graph API" API.
*
* Generated at: 2019-08-07T14:53:10.204Z
* 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... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var React = _interopRequireWildcard(require("react"));
var _classnames = _interopRequireDefault(require("classnames"));
var _EllipsisOutlined = _interopRequireDefault(require("@ant-design/icons/EllipsisOutlin... |
from __future__ import annotations
from typing import Optional, TYPE_CHECKING
from components.base_component import BaseComponent
from equipment_types import EquipmentType
if TYPE_CHECKING:
from entity import Actor, Item
class Equipment(BaseComponent):
parent: Actor
def __init__(self, weapon: Optional[... |
# Copyright (c) 2011 Advanced Micro Devices, Inc.
# 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 list of conditions... |
//declare global variables
var parentEL = document.querySelector('.parentDiv');
var parentEL2 = document.querySelector('.parentDiv2');
var newDiv = document.querySelector('#newDiv')
var dailyDiv = document.querySelector('#dailyDiv')
var clickedItem= "";
//===========================================================
l... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
if __name__ == '__main__':
school = {'1а': 12, '1б': 24, '2а': 10, '2б': 8, '6a': 25, '6б': 13, '8а': 14, "9б": 12}
while True:
n = input('Введите название операции >>> ')
if n == 'change':
school.update({input(f'Название изменяемого кл... |
from pbpstats.resources.enhanced_pbp import StartOfPeriod
class NbaPossessionLoader(object):
"""
Class for shared methods between :obj:`~pbpstats.data_loader.data_nba.possessions_loader.DataNbaPossessionLoader`
and :obj:`~pbpstats.data_loader.stats_nba.possessions_loader.StatsNbaPossessionLoader`
Bot... |
import groups from '@/services/api/groups'
import { withMeta, createMetaModule, withPrefixedIdMeta, createRouteError } from '@/store/helpers'
function initialState () {
return {
current: null,
}
}
export default {
namespaced: true,
modules: { meta: createMetaModule() },
state: initialState(),
getters:... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__char_fromConsole_w32spawnl_34.c
Label Definition File: CWE78_OS_Command_Injection.no_path.label.xml
Template File: sources-sink-34.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: fromConsole Read input from the ... |
#ifndef FUNDAMENT_IMAGE_H
#define FUNDAMENT_IMAGE_H
//==============================================================================
// This module provides functions to load images.
//==============================================================================
#include <fundament/api.h>
#include <stddef.h>
#inclu... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.SubAccountBaseInfo import SubAccountBaseInfo
class SubAccountBalanceQueryOrder(object):
def __init__(self):
self._sub_account_base_info = None
@property
def ... |
import { Message } from './widgets/Message'
import { InlineKeyboardMarkup } from './widgets/InlineKeyboardMarkup'
import { InlineButton } from './widgets/InlineButton'
export class Screen {
constructor (bot) {
this.__telegram_screen = true
this.bot = bot
this.children = []
this.msgs = {}
}
async... |
from django.contrib import admin
from . import models
# Register your models here.
admin.site.register(models.Example)
admin.site.register(models.Author)
admin.site.register(models.Book) |
/*
+------------------------------------------------------------------------+
| Phalcon Framework |
+------------------------------------------------------------------------+
| Copyright (c) 2011-2014 Phalcon Team (http://www.phalconphp.com) |
+-----... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[61],{qfPd:function(i,n,e){"use strict";e.r(n),e.d(n,"ion_loading",function(){return u});var o=e("9TBO"),t=e("24pd"),r=e("lSdy"),s=e("XIrJ"),a=e("aEGo"),d=e("Dgxi"),l=function(i,n){var e=new i,o=new i;o.addElement(n.querySelector("ion-backdrop"));var t=new i;return t.... |
from gazette.spiders.base import FecamGazetteSpider
class ScSantoAmaroDaImperatrizSpider(FecamGazetteSpider):
name = "sc_santo_amaro_da_imperatriz"
FECAM_QUERY = "cod_entidade:238"
TERRITORY_ID = "4215703"
|
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
from django.contrib.auth.models import AnonymousUser
from django.contrib.sites.models import Site
try:
from django.contrib.sites.shortcuts import get_current_site
except ImportError:
# Django 1.6
from django.c... |
# Copyright (C) 2018 Intel Corporation
#
# SPDX-License-Identifier: MIT
"""
Django settings for CVAT project.
Generated by 'django-admin startproject' using Django 2.0.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see... |
module.exports = {
"39.0.2171.65": [
"0.20.0",
"0.20.1",
"0.20.2",
"0.20.3",
"0.20.4",
"0.20.5",
"0.20.6",
"0.20.7",
"0.20.8"
],
"40.0.2214.91": [
"0.21.0",
"0.21.1",
"0.21.2"
],
"41.0.2272.76": [
"0.21.3",
"0.22.1",
"0.22.2",
"0.22.3",
"0.23.0",
"0.24.0"
],
"42.0.2311.107": [... |
var parse = require('acorn').parse;
var isArray = require('isarray');
var objectKeys = require('object-keys');
var forEach = require('foreach');
module.exports = function (src, opts, fn) {
if (typeof opts === 'function') {
fn = opts;
opts = {};
}
if (src && typeof src === 'object' && src.co... |
const findClosestAWSRegion = require('./index');
const data = require('./data.json');
describe('when not limiting available regions', () => {
test('it should find itself', () => {
Object.entries(data).forEach(([region]) => {
const closest = findClosestAWSRegion(region);
expect(region).toBe(closest);... |
#ifndef ISEARCH_H
#define ISEARCH_H
#include <QString>
// Interface to start a search in database
class ISearch
{
public:
virtual ~ISearch() = default;
virtual void searchSimplified(const QString searchTerm) = 0;
virtual void searchTraditional(const QString searchTerm) = 0;
virtual void searchJyutpi... |
import aoc_cas.aoc2020.day1 as aoc
testData1 = """
1721
979
366
299
675
1456
"""
def testPart1():
assert aoc.part1(testData1) == 514579
def testPart2():
assert aoc.part2(testData1) == 241861950
|
"""
App config parser modules
modules to set a config dict across the app
"""
import os
from typing import Optional
from mock_drs.config.config_parser import YAMLConfigParser
def parse_app_config(
default_path: str = os.path.abspath(
os.path.join(
os.path.dirname(
os.path.real... |
import io
import random
import string
import textwrap
import pytest
import numpy as np
import validate_docstrings
validate_one = validate_docstrings.validate_one
class GoodDocStrings(object):
"""
Collection of good doc strings.
This class contains a lot of docstrings that should pass the validation
s... |
// --- Directions
// Given an integer, return an integer that is the reverse
// ordering of numbers.
// --- Examples
// reverseInt(15) === 51
// reverseInt(981) === 189
// reverseInt(500) === 5
// reverseInt(-15) === -51
// reverseInt(-90) === -9
function reverseInt(n) {
if(n=== 0) return 0;
const revers... |
# coding: utf-8
"""
Python InsightVM API Client
OpenAPI spec version: 3
Contact: support@rapid7.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client.models.references_with_reference... |
import unittest
import sys
from aiounittest import async_test
sys.path.append(".") # so we can load the integrations
from src.integrations import Amazon
class TestAmazonIntegration(unittest.TestCase):
def setUp(self):
self.amazon = Amazon()
@async_test
async def test_valid_isbn_1(self):
... |
"""
Comparing two html documents.
"""
from __future__ import unicode_literals
import re
from django.utils import six
from django.utils.encoding import force_text, python_2_unicode_compatible
from django.utils.html_parser import HTMLParseError, HTMLParser
WHITESPACE = re.compile('\s+')
def normalize... |
/**
******************************************************************************
* @file stm32f4xx_hal_pwr_ex.h
* @author MCD Application Team
* @version V1.3.0
* @date 09-March-2015
* @brief Header file of PWR HAL Extension module.
**************************************************************... |
#!/usr/bin/env python
# Copyright 2019 Philip Hopley
#
# 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... |
from django.urls import include, re_path
from rest_framework import routers
from . import views
router = routers.DefaultRouter()
# register job endpoint in the router
router.register(r'extract', views.ExtractViewSet)
router.register(r'embed', views.EmbedViewSet)
# Wire up our API using automatic URL routing.... |
from common_fixtures import * # NOQA
from selenium import webdriver
from test_github import URL
if_auth = pytest.mark.skipif(not os.environ.get('LOCAL_AUTH_USERNAME'),
reason='LOCAL_AUTH_USERNAME is not set')
@if_auth
def test_turn_on_local_auth_ui(admin_client):
config = {
... |
/* (-lgl
* COHERENT Version 3.2
* Copyright (c) 1982, 1991 by Mark Williams Company.
* All rights reserved. May not be copied without permission.
-lgl) */
/*
* time.h
* COHERENT time function header.
*/
#ifndef TIME_H
#define TIME_H TIME_H
#include <sys/types.h>
struct tm {
int tm_sec;
int tm_min;
int t... |
define({
"_widgetLabel": "圖層清單",
"titleBasemap": "底圖",
"titleLayers": "操作圖層",
"labelLayer": "圖層名稱",
"itemZoomTo": "縮放至",
"itemTransparency": "透明度",
"itemSetVisibilityRange": "設定可見範圍",
"itemTransparent": "透明",
"itemOpaque": "不透明",
"itemMoveUp": "上移",
"itemMoveDown": "下移",
"itemDesc": "描述",
"ite... |
import React, { useState } from "react";
import { useDispatch, useSelector } from "react-redux";
import { Link } from "react-router-dom";
//m-ui
import { makeStyles } from "@material-ui/core/styles";
import Card from "@material-ui/core/Card";
import CardContent from "@material-ui/core/CardContent";
import Card... |
import{b3 as e,aR as a,aw as t}from"./index.44a64fe8.js";var r,s;(s=r||(r={})).CompanyList="/flow/org/company/getCompanies",s.SaveOrUpdate="/flow/org/company/saveOrUpdate",s.Delete="/flow/org/company/delete",s.CheckEntityExist="/flow/org/company/checkEntityExist";const o=s=>{const o=t.post({url:r.CompanyList,params:s})... |
import { ApiClient } from "./api";
import { createContent } from "./text";
import { runLinguist } from "./linguist";
const { GH_TOKEN, GIST_ID, USERNAME, DAYS } = process.env;
(async () => {
try {
if (!GH_TOKEN) {
throw new Error("GH_TOKEN is not provided.");
}
if (!GIST_ID) {
throw new Erro... |
import os
import logging
from pathlib import Path
from functools import reduce, partial
from operator import getitem
from datetime import datetime
from logger import setup_logging
from utils import read_json, write_json
class ConfigParser:
def __init__(self, config, resume=None, modification=None, run_id=None, bu... |
import os
import shutil
import tempfile
from django.conf import settings
from django.test import TestCase, override_settings
from regulations.generator.api_client import ApiClient
class ClientTest(TestCase):
def test_local_filesystem(self):
""" Verify that it's possible to host the files locally, where
... |
import serial
import threading
import time
class SerialThread:
"""
串口通信线程,包含读线程和写线程
"""
def __init__(self, port, baudrate=9600, bytesize=8, stopbits=1, timeout=1):
self.my_serial = serial.Serial()
self.my_serial.port = port # 端口号
self.my_serial.baudrate = baudrate ... |
import React from "react"
import Hajj from "./../images/hajjApplication.jpeg"
import Hajjpdf from "./../images/HAJJ.pdf"
import Navbar from './../components/home/nabvar'
import Footer from './../components/home/footer'
const HajjApplication = () => (
<div>
<Navbar />
<img width="100%" src={Hajj} />
<br /... |
/**************************************************************************
*
* Copyright 2007 VMware, Inc.
* All Rights Reserved.
*
* 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 w... |
import { BindDefaultShader } from "./BindDefaultShader";
import { SetCamera } from "./SetCamera";
export function Begin(renderPass, camera) {
BindDefaultShader();
SetCamera(renderPass, camera);
}
|
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name='aogl',
version='0.1',
author="Andrew Odendaal",
author_email="andrew@ao.gl",
description="A python package to retrieve the latest 10 blog posts from https://ao.gl",
long_description=... |
#
# This file is part of LUNA.
#
# Copyright (c) 2020 Great Scott Gadgets <info@greatscottgadgets.com>
# SPDX-License-Identifier: BSD-3-Clause
""" Stream multiplexers/arbiters. """
from nmigen import *
from . import StreamInterface
class StreamMultiplexer(Elaboratable):
""" Gateware that me... |
/**
* @fileoverview Module handling the image listing command.
* @author alvin@omgimanerd.tech (Alvin Lin)
*/
const display = require('../../lib/display')
const util = require('../../lib/util')
exports.command = 'list'
exports.aliases = ['ls']
exports.description = 'List images on your account'.yellow
exports.b... |
# Copyright 2015, Google, Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... |
# Lint as: python2, python3
# Copyright 2017 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
#
... |
'use strict';
const Generators = require('yeoman-generator');
const utils = require('../../utils/all');
const prompts = require('./prompts');
const path = require('path');
const fs = require('fs');
const baseRootPath = path.join(__dirname, 'templates');
/**
* will copy react page template to your application
*/
cla... |
"""Tests for analysis.py."""
from typing import Any, Dict
import pandas as pd
import pytest
from pricer import analysis
bb_fortnight_raw = {
"item": {12: "Invisibility Potion", 50: "Dense Sharpening Stone", 61: "Fadeleaf"},
"quantity": {12: 62, 50: 310, 61: 106},
"silver": {12: 35089, 50: 8657, 61: 9669... |
#ifndef CQChartsColumnTypeCombo_H
#define CQChartsColumnTypeCombo_H
#include <QComboBox>
class CQCharts;
class CQChartsColumnType;
/*!
* \brief Column Type Combo Chooser
* \ingroup Charts
*/
class CQChartsColumnTypeCombo : public QComboBox {
Q_OBJECT
public:
CQChartsColumnTypeCombo(QWidget *parent=nullptr, ... |
class ProfileCtrl {
constructor(profile, User) {
'ngInject';
this.profile = profile;
if (User.current) {
this.isUser = (User.current.username == this.profile.username);
} else {
this.isUser = false;
}
}
}
export default ProfileCtrl; |
$(document).ready(function(){
$('.my-tabs').ready(function () {
////Javascript to enable link to tab
let url = document.location.toString();
if (url.match('#')) {
$('.champ-nav-list a[href="#' + url.split('#')[1] + '"]').tab('show');
}
let arr = document.locatio... |
import { Github } from '@styled-icons/boxicons-logos/Github'
import { Twitter } from '@styled-icons/boxicons-logos/Twitter'
import { Youtube } from '@styled-icons/boxicons-logos/Youtube'
import { Unsplash } from '@styled-icons/boxicons-logos/Unsplash'
import { Instagram } from '@styled-icons/boxicons-logos/Instagram'
... |
/* $Source: /src386/usr/bin/pax/buffer.c,v $
*
* $Revision: 1.1 $
*
* buffer.c - Buffer management functions
*
* DESCRIPTION
*
* These functions handle buffer manipulations for the archiving
* formats. Functions are provided to get memory for buffers,
* flush buffers, read and write buffers and de-allocate ... |
/**
* @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Save plugin.
*/
(function() {
var saveCmd = { modes:{wysiwyg:1,source:1 },
readOnly: 1,
exec: function( editor ) {... |
/*
* Copyright 2017-2020 AVSystem <avsystem@avsystem.com>
*
* 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 ap... |
'use strict';
const ERROR_NEGATIVE_ID = 'Pergamon: Id must be grater than 0.';
const ERROR_UPDATE = 'Pergamon: Trying to update nonexisting item.';
const ERROR_TABLE_NAME = 'Pergamon: Table name could have only alphanumerical symbols, dash and underscore.';
const ERROR_JSON_NAME = 'Pergamon: Json name could have only ... |
// @(#)root/mathcore:$Id$
// Author: Rene Brun 15/12/95
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
import { tearDown } from './editorMain.js';
tearDown();
|
import datetime
import logging
from enum import Enum
from lxml import etree
from core.classifier import Classifier
from core.metadata_layer import (
Metadata,
IdentifierData,
SubjectData,
ContributorData,
LinkData,
CirculationData)
from core.model import (
Classification,
Identifier,
... |
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... |
from __future__ import absolute_import, print_function
import gevent.testing as greentest
from gevent import config
from gevent.testing.sysinfo import CFFI_BACKEND
from gevent.core import READ # pylint:disable=no-name-in-module
from gevent.core import WRITE # pylint:disable=no-name-in-module
class Test(greentest.Te... |
from .main import Shingled, Textual |
(function() {var implementors = {};
implementors["std"] = [{text:"impl<T: 'static> <a class=\"trait\" href=\"std/fmt/trait.Debug.html\" title=\"trait std::fmt::Debug\">Debug</a> for <a class=\"struct\" href=\"std/thread/struct.LocalKey.html\" title=\"struct std::thread::LocalKey\">LocalKey</a><T>",synt... |
"""Main function shared by prefilters."""
import re
import fileinput
from typing import Tuple, Optional
def action(
line: str, delete: str = None, replace: Tuple[str, str] = None
) -> Optional[str]:
"""Filter Vimwiki text by deleting lines or replacing text in lines.
Parameters
----------
line
... |
from tkinter import *
from frameMatriz import Interface
class Principal(Tk):
def __init__(self):
super().__init__()
self.interfaceMatriz = Interface(self)
self.interfaceMatriz.pack()
root = Principal()
root.mainloop() |
/**!
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.14.3
* @license
* Copyright (c) 2016 Federico Zivolo and contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files... |
/*jshint multistr: true */
define([
'chai',
'jquery',
'underscore',
'tests/utils',
'vellum/logic',
'vellum/xpath',
'text!tests/static/logic/test-xml-1.xml',
'text!tests/static/databrowser/mother-ref.xml',
], function (
chai,
$,
_,
util,
logic,
xpath,
TEST_XML_... |
/*************************************************************************
* COPYRIGHT NOTICE
* Copyright 2020-2022 Horizon Robotics, Inc.
* All rights reserved.
*************************************************************************/
#ifndef __HBMEM_H__
#define _... |
from django.apps import AppConfig
class ImporterConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'importer'
|
/*
* Copyright 2011-2015 Con Kolivas
* Copyright 2011-2015 Andrew Smith
* Copyright 2010 Jeff Garzik
*
* 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 3 of the License, or ... |
var searchData=
[
['tls_20layer',['TLS layer',['../group__altcp__tls.html',1,'']]],
['tcp',['TCP',['../group__lwip__opts__tcp.html',1,'']]],
['threading',['Threading',['../group__lwip__opts__thread.html',1,'']]],
['thread_2dsafe_20apis',['Thread-safe APIs',['../group__lwip__opts__threadsafe__apis.html',1,'... |
"use strict";
const render_stream_specific_notification_row = require("../templates/settings/stream_specific_notification_row.hbs");
const settings_config = require("./settings_config");
exports.get_notifications_table_row_data = function (notify_settings) {
return settings_config.general_notifications_table_lab... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# This file is part of pyunicorn.
# Copyright (C) 2008--2019 Jonathan F. Donges and pyunicorn authors
# URL: <http://www.pik-potsdam.de/members/donges/software>
# License: BSD (3-clause)
#
# Please acknowledge and cite the use of this software and its authors
# when results a... |
!function(e){function t(t){for(var n,o,i=t[0],c=t[1],a=0,s=[];a<i.length;a++)o=i[a],Object.prototype.hasOwnProperty.call(r,o)&&r[o]&&s.push(r[o][0]),r[o]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(u&&u(t);s.length;)s.shift()()}var n={},r={19:0};function o(t){if(n[t])return n[t].exports;var ... |