text
stringlengths
3
1.05M
# -------------- #Importing header files import pandas as pd import numpy as np import matplotlib.pyplot as plt #Code starts here data=pd.read_csv(path) loan_status=data.Loan_Status.value_counts() loan_status.plot(kind='bar') # -------------- #Code starts here property_and_loan=data.groupby(['Proper...
''' Messed code that exemplifies Object-Oriented Programming. ''' class Employee: num_of_emps = 0 raise_amount = 1.04 def __init__(self, first, last, pay): self.first = first.strip().title() self.last = last.strip().title() self.pay = float(pay) Employee.num_of_emps += 1 ...
class Program(object): """ This is a class that holds various information about the program. """ def __init__(self, name, version, usage): super(Program, self).__init__() self._name = name self._version = version self._usage = usage self._values = {}; def bind(self, name, value): self._values[name] = v...
import os # hide warnings import warnings warnings.filterwarnings('ignore') # Data directory paths raw_data_dir = os.path.relpath("../data/raw/") interim_data_dir = os.path.relpath("../data/interim/") processed_data_dir = os.path.relpath("../data/processed/") submissions_dir = os.path.relpath("../data/submissions/") ...
function decimal() { return value => { if (value && value[0] === '.') { return decimal()('0' + value); } return ('' + value) === ('' + Number.parseFloat(value)); } } export default decimal;
import tda import urllib.parse import json import copy from .utils import (account_principals, has_diff, MockResponse, no_duplicates, AsyncMagicMock) import asynctest from unittest.mock import ANY, call, MagicMock, Mock from tda import streaming StreamClient = streaming.StreamClient ACCOUNT_ID = ...
export const IS_MOBILE = "IS_MOBILE" export const MOB_MENU_VISIBLE = "MOB_MENU_VISIBLE"
/** @decorator */ import { FoundationElement } from '../foundation-element/foundation-element.js'; import { observable } from '../element/observation/observable.js'; import { html } from '../template.js'; import { repeat } from '../element/templating/repeat.js'; import { when } from '../element/templating/when.js'; c...
# -*- coding: utf-8 -*- # Copyright (c) 2015, Dataent Technologies and contributors # For license information, please see license.txt from __future__ import unicode_literals import dataent from dataent.model.document import Document class HasRole(Document): def before_insert(self): if dataent.db.exists("Has Role",...
# Copyright 2021 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...
'use strict'; /** * options * * antispam (enable / disable antispam) * blockCallback (enable / disable callback after antiabus triggered) * antispamInterval (time after reset msg count) * antispamCount (message count) * onMessage (emit onMessage if antiabus triggered) */ const core = Base => class extends Ba...
// TOGGLE MODAL export const TOGGLE_MODAL_ACTION = 'TOGGLE_MODAL_ACTION'; //USER REGISTRATION export const USER_REGISTRATION_ACTION = 'USER_REGISTRATION_ACTION'; export const USER_REGISTRATION_SUCCESS = 'USER_REGISTRATION_SUCCESS'; export const USER_REGISTRATION_FAIL = 'USER_REGISTRATION_FAIL'; //USER LOGIN export co...
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from maro.utils.exception import ERROR_CODE class MAROException(Exception): """The base exception class for MARO. Args: error_code (int): the predefined MARO error code. You can find the detailed definition in: `ma...
# -*- coding: utf-8 -*- import sqlite3 class QSCU: """Class representing the coffee shop, the interface to access the data.""" def __init__(self, filename): """ :param filename: the file that contains the SQLite DB. :type filename: string """ self.conn = sqlite3.conne...
# Copyright (C) 2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 """openvino module namespace, exposing factory functions for all ops and other classes.""" # noqa: F401 import os import sys from pkg_resources import get_distribution, DistributionNotFound try: __version__ = get_distribution("openvino...
module.exports = { async up(db) { let solutionDocuments = await db.collection('solutions').find({}).toArray(); global.migrationMsg = "Migrated up create-reusable-solutions file"; if (solutionDocuments.length>0) { global.migrationMsg = "Create reusable solutions."; await P...
from collections import OrderedDict from binascii import hexlify from embit import base58 from .util.xpub import get_xpub_fingerprint purposes = OrderedDict( { "": "General", "wpkh": "Single (Segwit)", "sh-wpkh": "Single (Nested)", "wsh": "Multisig (Segwit)", "sh-wsh": "Mul...
from sympy import symbols, Symbol, sinh, nan, oo, zoo, pi, asinh, acosh, log, sqrt, \ coth, I, cot, E, tanh, tan, cosh, cos, S, sin, Rational, atanh, acoth, \ Integer, O, exp, sech, sec, csch from sympy.utilities.pytest import raises def test_sinh(): x, y = symbols('x,y') k = Symbol('k', integer=Tru...
# Generated by Django 2.1.2 on 2019-05-21 22:07 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('project_admin', '0004_auto_20180228_0616'), ] operations = [ migrations.CreateModel( name='ConsentRecord', fields=[ ...
// FileTypes.h -- header file /* * Author: Ivan Chapkailo (septimomend) * Date: 29.06.2017 * * © 2017 Ivan Chapkailo. All rights reserved * e-mail: chapkailo.ivan@gmail.com */ #pragma once #include "stdafx.h" // TODO: add more keywords char *pFileExtension[] = { ".c", ".h", ".cpp", NULL }; char *pKeywords[] ...
from __future__ import absolute_import from sentry.utils.zip import is_unsafe_path, find_common_prefix def test_is_unsafe_path(): assert is_unsafe_path("/foo.txt") assert is_unsafe_path("../foo.txt") assert is_unsafe_path("aha/../foo.txt") assert not is_unsafe_path("foo.txt") assert not is_unsafe...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Use text editor to edit the script and type in valid Instagram username/password import os import time import random from os import listdir from os.path import isfile, join from random import randint from InstagramAPI import InstagramAPI PhotoPath = "~/igphoto/" # Cha...
""" Newton Polygons This module implements finite Newton polygons and infinite Newton polygons having a finite number of slopes (and hence a last infinite slope). """ ############################################################################# # Copyright (C) 2013 Xavier Caruso <xavier.caruso@normalesup.org> # # ...
// Copyright (c) 2019 The PIVX developers // Copyright (c) 2020 The Guapcoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef REQUESTDIALOG_H #define REQUESTDIALOG_H #include "qt/guapcoin/focuseddialog.h" #inc...
import {join} from 'path'; import test from 'ava'; import fullPath from '../../src/lib/full-path'; test('fullPath()', t => { t.is( fullPath('test.postcss', 'my/dir/file.html'), join('my', 'dir', 'test.postcss'), 'should return the full path of a source based on the path of the resource file' ); });
#ifndef _LAND_LEAF_H_ #define _LAND_LEAF_H_ #if defined(_MSC_VER) #pragma once #endif /* * LEGAL NOTICE * This computer software was prepared by Battelle Memorial Institute, * hereinafter the Contractor, under Contract No. DE-AC05-76RL0 1830 * with the Department of Energy (DOE). NEITHER THE GOVERNMENT NOR THE * CONTR...
#ifndef SINGLETON_H #define SINGLETON_H #include <boost/noncopyable.hpp> // 能更方便点吗 namespace burger { template<typename T> class Singleton { public: static T& Instance(); Singleton(const Singleton&) = delete; Singleton& operator=(const Singleton&) = delete; private: Singleton() = default; ~Singl...
import logging from typing import Union import anndata import h5py import numpy as np import pandas as pd import scipy.sparse as sp_sparse from anndata._core.sparse_dataset import SparseDataset from numba import boolean, float32, float64, int32, int64, vectorize logger = logging.getLogger(__name__) def _check_nonne...
#encoding: utf-8 class DecisionPolicy: ''' decision policy abstract class ''' def select_action(self, current_state, step): pass def update_q(self, state, action, reward, next_state): pass def update_env(self, current_state): pass def save_model(self, output_dir)...
# Arda Mavi - ardamavi.com n = int(input("Kaç sayı girilecek ?")) arr = [] for a in range(n): arr.append(int(input())) for a in range(n): for b in range(n-1): if arr[a] < arr[b]: temp = arr[b] arr[b] = arr[a] arr[a] = temp print("Düzgün hsli: ") for c in range(n): print(arr[c])
/** * Module dependencies. */ var express = require('express') , routes = require('./routes') , http = require('http'); var _ = require('underscore'); var async = require('async'); var utils = require('./utils'); var mongodb = require('mongodb'); var cons = require('consolidate'); var swig = require('swig'); v...
#ifndef __TENSOR_H__ #define __TENSOR_H__ #include <iostream> #include <Eigen/Core> #include <Eigen/Sparse> #include <Eigen/Geometry> class Tensor3333 { public: Tensor3333(); Tensor3333(const Tensor3333& other); Tensor3333& operator=(const Tensor3333& other); void SetIdentity(); void SetZero(); Tensor3333 Transp...
const WarmUp = (() => { })(); export default WarmUp;
#!/usr/bin/env python # -*- coding: utf-8 -*- ################################################################### # Author: Mu yanru # Date : 2019.3 # Email : muyanru345@163.com ################################################################### """MDockWidget""" from dayu_widgets3.qt import QDockWidget class MDockW...
# Generated by Django 2.0.4 on 2018-06-13 13:32 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('voting', '0001_initial'), ] operations = [ migrations.CreateModel( name='Tags', fie...
var Server, compression, cors, express, fs, http, path, util, uuid, _, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.pr...
// @flow import update from 'react-addons-update' import {constructNewGtfsPlusRow} from '../util' import type {Action} from '../../types/actions' import type {GtfsPlusReducerState} from '../../types/reducers' export const defaultState = { activeTableId: 'realtime_routes', currentPage: 1, feedVersionId: null, ...
#!/usr/bin/env python3 # Copyright (c) 2014-2018 The Machinecoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test descendant package tracking code.""" from decimal import Decimal from test_framework.messag...
# Copyright 2018 The Oppia 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 applicable ...
""" Code copied from #mypy.plugins.dataclasses and adapter to work with the #databind.core package. """ import typing as t import mypy from mypy.plugins.dataclasses import ( Argument, AssignmentStmt, CallExpr, ClassDefContext, DataclassAttribute, Dict, Expression, Instance, List, ...
require('./bootstrap'); window.Vue = require('vue'); Vue.component('example-component', require('./components/ExampleComponent.vue').default); Vue.component('john-component', require('./components/myComponent.vue').default); const app = new Vue({ el: '#app', });
import { run } from '@ember/runloop'; import { isEmpty } from '@ember/utils'; import RSVP from 'rsvp' import OAuth2PasswordGrant from 'ember-simple-auth/authenticators/oauth2-password-grant' export default OAuth2PasswordGrant.extend({ serverTokenEndpoint: '/api/v1/token', authenticate({ username, password...
window.__NUXT__=(function(a,b,c,d,e){return {staticAssetsBase:"https:\u002F\u002Fwww.baca-quran.id\u002Fstatic\u002F1627814429",layout:"default",error:b,state:{notification:{show:a,title:c,message:c},isShowSidebar:a,isSupportWebShare:a,headerTitle:"Baca Qur'an",page:"home",lastReadVerse:b,settingActiveTheme:{name:"dark...
'use strict'; const Mongoose = require('mongoose'); const config = require('@config'); let profession = Mongoose.Schema({ profession: { type: String, primary: true } }); profession.index({profession: 1}); profession.plugin(require('mongoose-paginate')); let professionModel = Mongoose.model('Pr...
#! /bin/env cmsRun import FWCore.ParameterSet.Config as cms import FWCore.ParameterSet.VarParsing as VarParsing from fnmatch import fnmatch from pdb import set_trace ################################################# options = VarParsing.VarParsing("analysis") options.register ('outputRootFile', "",...
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `python_dynamodb_lock` package.""" import unittest from unittest import mock import sys import logging logging.basicConfig(stream=sys.stdout, level=logging.DEBUG) from python_dynamodb_lock.python_dynamodb_lock import * class TestDynamoDBLockClient(unitte...
var isArray = require("x-is-array") var VPatch = require("../vnode/vpatch") var isVNode = require("../vnode/is-vnode") var isWidget = require("../vnode/is-widget") var isThunk = require("../vnode/is-thunk") var handleThunk = require("../vnode/handle-thunk") var diffProps = require("./diff-props") module.exports = di...
#ifndef TACO_LOWERER_IMPL_C_H #define TACO_LOWERER_IMPL_C_H #include <utility> #include <vector> #include <map> #include <set> #include <memory> #include <taco/index_notation/index_notation.h> #include "taco/lower/iterator.h" #include "taco/util/scopedset.h" #include "taco/util/uncopyable.h" #include "taco/ir_tags.h"...
import io import os import sys import copy import logging from typing import List, Optional, BinaryIO, TextIO, Any, Tuple, Dict from abc import ABC, abstractmethod from multiprocessing import Process, Pipe, Queue from pathlib import Path import multiprocessing.connection from multiprocessing.connection import Connectio...
from ._download import download_all def fashion_mnist(directory: str): """downloads the 'fashion MNIST' dataset in the given directory""" file_names = ["classes.txt", "test_images.npy", "test_labels.npy", "train_images.npy", "train_labels.npy"] urls = ["https://drive.google.com/file/d/" ...
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. // // Logger implementation that can be shared by all environments // where enough Posix functionality i...
(window.webpackJsonpFileIcons=window.webpackJsonpFileIcons||[]).push([[507],{279:function(l){l.exports={viewBox:"0 0 1024 1024",font:"file-icons",code:"e6a5",ref:"meteor",path:"M0 10l877 929 18 7.5q18 7.5 35-11.5 17-18 11-33.5l-6-15.5L0 10m278 88l667 720 18 7.5q18 7.5 35-11.5 17-18 11-33.5l-6-15.5L278 98M83 286l667 720...
'''Copyright 2018 Province of British Columbia 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,...
(window.webpackJsonp=window.webpackJsonp||[]).push([[42],{3540:function(e,t,r){"use strict";r.r(t),r.d(t,"icon",(function(){return i}));r(6),r(7);var n=r(0);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(...
/* $NetBSD: altq_rmclass.c,v 1.22 2011/11/19 22:51:18 tls Exp $ */ /* $KAME: altq_rmclass.c,v 1.19 2005/04/13 03:44:25 suz Exp $ */ /* * Copyright (c) 1991-1997 Regents of the University of California. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, ar...
# coding: utf-8 # # Copyright 2017 The Oppia 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 requi...
import torch.nn as nn import torch import torch.nn.functional as F from transformers import * import numpy as np import pytorch_lightning as pl import torchmetrics from typing import Any, List, Optional def get_global_attention(input_ids, start_token, end_token): global_attention_mask = torch.zeros(input_ids.sha...
# Copyright (c) 2014 Alex Meade. All rights reserved. # Copyright (c) 2015 Dustin Schoenbrun. All rights reserved. # Copyright (c) 2015 Tom Barron. All rights reserved. # Copyright (c) 2016 Mike Rooney. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use th...
// Josh Kay 2015 #pragma once #include "GameFramework/HUD.h" #include "Blueprint/UserWidget.h" #include "Widgets/MoneyWidget.h" #include "Widgets/MoneyNotificationWidget.h" #include "Widgets/HealthBarWidget.h" #include "Widgets/WeaponHolderWidget.h" #include "Widgets/BorderHealthWidget.h" #include "BorderSecurityHUD....
import _ from 'lodash' import AnnotationServerManager from '../AnnotationServerManager' import Alerts from '../../utils/Alerts' import Neo4JClient from './Neo4JClient' // TODO Substitute by the real neo4j client const userLoginCheckIntervalPeriodInSeconds = 5 class Neo4JClientManager extends AnnotationServerManager { ...
from fastapi import APIRouter from . import views url = APIRouter(prefix="/api") url.include_router(router=views.view)
from datetime import datetime class AppDefinition: #Defines the Application basic data and allows adding the findings json later def __init__(self, json): profile = json['profile'] self.name =profile['name'] self.guid = json['guid'] last=json['last_completed_scan_date'] self.last_scan_time = datetime.str...
/*$Id: NSException_SenTestFailure.h,v 1.10 2005/04/02 03:18:19 phink Exp $*/ // Copyright (c) 1997-2005, Sen:te (Sente SA). All rights reserved. // // Use of this source code is governed by the following license: // // Redistribution and use in source and binary forms, with or without modification, // are permitted...
lexica = {"meta": "to a large extent based on https://en.oxforddictionaries.com/thesaurus/", "trp": { "causation": { "bring", "brought", "cause", "create", "effect", "elicit", ...
!function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n=window.webpackJsonp;window.webpackJsonp=function(a,i){for(var l,u,s=0,c=[];s<a.length;s++)u=a[s],o[u]&&c.push.apply(c,o[u]),o[u]=0;for(l in i)Object.prototy...
import kp # This is the convolution & leakyrelu shader. global conv_shader conv_shader = kp.Shader.compile_source(""" #version 450 layout (local_size_x = 8, local_size_y = 2) in; // [y][x][group] (vec4: channels) layout (set = 0, binding = 0) buffer buf_in_image { readonly restrict vec4 in_image[]; }; // [outputCGro...
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Fluent Bit * ========== * Copyright (C) 2015-2022 The Fluent Bit Authors * * 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...
#ifndef _BITS_SIGACTION_STRUCT_H #define _BITS_SIGACTION_STRUCT_H /* This is the sigaction structure from the Linux 2.1.24 kernel. */ #include <sgidefs.h> #define HAVE_SA_RESTORER struct old_kernel_sigaction { unsigned int sa_flags; __sighandler_t k_sa_handler; unsigned long sa_mask; unsigned int __pad0[3];...
/* * Copyright (c) 2018 Intel Corporation. * Copyright (c) 2020 Peter Bigot Consulting, LLC * Copyright (c) 2020 Nordic Semiconductor ASA * * SPDX-License-Identifier: Apache-2.0 */ #include <stdio.h> #include <string.h> #include <zephyr/types.h> #include <errno.h> #include <init.h> #include <fs/fs.h> #include <s...
#ifdef HAVE_CONFIG_H #include "../../../ext_config.h" #endif #include <php.h> #include "../../../php_ext.h" #include "../../../ext.h" #include <Zend/zend_operators.h> #include <Zend/zend_exceptions.h> #include <Zend/zend_interfaces.h> #include "kernel/main.h" #include "kernel/memory.h" #include "kernel/object.h" #i...
import logging import urllib from sqlalchemy import func from pajbot.managers.db import DBManager from pajbot.managers.schedule import ScheduleManager from pajbot.models.command import Command from pajbot.models.pleblist import PleblistManager from pajbot.models.pleblist import PleblistSong from pajbot.modules import...
# Copyright (c) 2016, PerformLine, 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 conditio...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2018 ArangoDB GmbH, Cologne, Germany /// /// 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...
# Copyright 1999-2021 Alibaba Group Holding 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 a...
/** * Auto-generated action file for "Amazon Lightsail" API. * * Generated at: 2019-07-08T11:13:07.058Z * Mass generator version: 1.1.0 * * flowground :- Telekom iPaaS / amazonaws-com-lightsail-connector * Copyright © 2019, Deutsche Telekom AG * contact: flowground@telekom.de * * All files of this connector a...
import sys from dialog import Ui_Dialog from PyQt5 import QtWidgets, QtCore, uic class DialogApplication(QtWidgets.QDialog): def __init__(self): super().__init__() # Set up the dialog self.dialog = Ui_Dialog() self.dialog.setupUi(self) # Setup buttons self.dialog...
from django.contrib import admin from .models import BookingTransaction, Message, Rating admin.site.register(BookingTransaction) admin.site.register(Rating) admin.site.register(Message) # Register your models here.
module.exports = new Date(2031, 9, 18)
# Generated by Django 3.0.7 on 2020-06-10 10:19 from django.db import migrations, models import uuid class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='RegisterEndpointModel', fields=[ ...
"""Implementation of Hashing for Message Authentication Codes (HMAC)""" from hmac import digest from typing import Optional _BYTE_LENGTH = 4 _BYTE_ORDER = "little" def get_hmac( key: bytes, message: bytes, length: Optional[int] = None, start: int = 0 ) -> bytes: """ Get a hash-based message authenticati...
if ('serviceWorker' in navigator) { navigator.serviceWorker.register('service-worker.js') } self.addEventListener('fetch', function() {});
# Copyright 2021-2022 NVIDIA Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
import threading,time,traceback,datetime from concurrent.futures import ThreadPoolExecutor,wait from crontaber.crontab.crontaber import Crontaber from crontaber.crontab.config import Configer class Schedule: def __init__(self,pool_num:int,cron:Crontaber,conf_dir:str=''): #初始化线程池 self.thread_lock =...
########################################## # Author: Feroz Farazi (msff2@cam.ac.uk) # # Date: 19 May 2021 # ########################################## """This module can convert all ABox template CSV files available in a folder into RDF files.""" import glob,os from entityrdfizer.ABoxTemplateCSVF...
import numpy as np from constants import EPSILON from .combine_data import combination_column_range_map, COMBINATION_COLUMN_RANGE_KEY_FUND_RETURN, \ COMBINATION_COLUMN_RANGE_KEY_FUND_BENCHMARK_RETURN, COMBINATION_COLUMN_RANGE_KEY_INDEX_RETURN, \ COMBINATION_COLUMN_RANGE_KEY_CORRELATION from .dataset_name impor...
// JavaScript Document function showDetails(id) { var index = id.split('-')[1]; alert('Contact details:' + "\n" + contacts[index].firstname + "\n" + contacts[index].lastname + "\n" + contacts[index].phone + "\n" + contacts[index].email ); } // showDetails var testlink = documen...
"""Miscellaneous stuff that does not really fit anywhere else.""" from typing import List import operator import sys import os import re as _re import struct from textwrap import fill, dedent class Undecidable(ValueError): # an error to be raised when a decision cannot be made definitively # where a definit...
# !/usr/bin/python while(True): x = raw_input("Please stroke a key: ") print x if(x == 'q'): exit()
/*========================================================================= Program: Visualization Toolkit Module: vtkTensorGlyph.h Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is ...
/** * Copyright (c) 2006-2020 LOVE Development Team * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any purpose, * ...
// eslint-disable-next-line import/prefer-default-export export const isLoadingSelector = state => state.auth.logout.loading;
#### 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 = Creature() result.template = "object/mobile/shared_dressed_rebel_first_lieutenant_sullustan_male_01.iff" result.a...
export default function (part) { const { Point, Path, points, paths, Snippet, snippets, complete, sa, paperless, macro, store } = part.shorthand() const w = store.get('gussetLength') points.top = new Point(0, 0) points.bottom = new Point(0, w) points.right = points.bottom.rotate(36.0, points.top) point...
# coding=utf-8 """ This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import deserialize from twilio.base import values from twilio.base.instance_context import InstanceContext from twilio.base.instance_resource import InstanceResource from twilio.base....
from flask_login import UserMixin from db import get_db class User(UserMixin): ROLES=['user','admin'] DEFAULT_ROLE='user' def __init__(self, id_, name, email, profile_pic, role): self.id = id_ self.name = name self.email = email self.profile_pic = profile_pic self.r...
/** * 通知中心 * * 调用者可以在需要监听通知的地方调用以下方法注册通知监听 * addNormalNotificationObserver * addOnceNotificationObserver * addAlwaysNewNotificationObserver * * 在需要的地方调用以下方法发送通知,通知监听者调用响应方法进行响应处理 * postNotification * * 在不需要监听的时候调用调用以下方法移除对通知的监听 * removeNotificationObserver * */ const __notificationList = {}; // 通知对象存储...
/* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("placeholder","da",{title:"Egenskaber for pladsholder",toolbar:"Opret pladsholder",name:"Navn på pladsholder",invalidName:"Pladsholderen kan ikke vær...
import styled from 'styled-components'; import avatarStyles from './avatarStyles'; const StyledAvatar = styled.div` ${avatarStyles}; `; export default StyledAvatar;
# -*- coding: utf-8 -*- # Copyright © 2017 Apple Inc. All rights reserved. # # Use of this source code is governed by a BSD-3-clause license that can # be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause """ Methods for creating a topic model and predicting the topics of new documents. "...
version = "1.10.0-dev" version_info = tuple([int(d) for d in version.split("-")[0].split(".")])