content
stringlengths
10
4.9M
def is_suppressed_event_type(cls, config, event): sup_events = Utility.string_to_list(config.suppress_events) if event["type"] in sup_events: return True return False
/** * <p> * Describes the details of a LoadBalancer. * </p> */ public class LoadBalancerDescription { /** * The name of the LoadBalancer. */ private String loadBalancerName; /** * The domain name of the LoadBalancer. */ private String domain; /** * A list of Listeners...
/** * Need to draw a visible danger zone around the map * to avoid player frustration over unexplained explosions */ public class DangerZone { private int w = 10; private double angle = 0.0f; private double delta = Math.PI / 10.0; private Rect r; private int screenW2 = Constants.SCREEN_WIDTH/2; ...
// ParseArtifact parses the name of an artifact. func ParseArtifact(name string) (Artifact, error) { if n, err := parseSpecArtifact(name); err == nil { return Artifact{name: n}, nil } else if n, err := parseVersionArtifact(name); err == nil { return Artifact{name: n}, nil } else if n, err := parseApiArtifact(nam...
Catalyst-Directed Chemoselective Double Amination of Bromo-chloro(hetero)arenes: A Synthetic Route toward Advanced Amino-aniline Intermediates. A chemoselective sequential one-pot coupling protocol was developed for preparing several amino-anilines in high yield as building blocks for active pharmaceutical ingredients...
{-| Module : Numeric.ER.Real.Approx Description : classes abstracting exact reals Copyright : (c) <NAME> License : BSD3 Maintainer : <EMAIL> Stability : experimental Portability : portable Definitions of classes that describe what is required from arbitrary pre...
def serialize_dependency_parse_tree(sentence_id, parse_trees, state="raw", pretty=False, dump=True): options = {"ensure_ascii": False} if type(parse_trees) != dict: if len(parse_trees) == 0: empty_tree = { sentence_id: { "meta": { "...
<reponame>thedigitaldesign/react-redux-experiments import React from 'react' // Packages import { shallow } from 'enzyme' // Utils import { findByTestAttribute, storeFactory } from '../../test/testUtils' // Component import { User } from './User' const setup = (initialState: any = {}) => { const store = storeFact...
Do the chain rules for matrix functions hold without commutativity? This article shows that the commutativity condition = 0 is often not necessary to guarantee the chain rules for matrix functions: and where A(t) is a square matrix of differentiable functions and f is an analytic function. A further question on the ...
import os import json import datetime from .log import PypeLogger log = PypeLogger().get_logger(__name__) # Prepare json decode error for `json` module (Maya, Nuke) if hasattr(json.decoder, "JSONDecodeError"): # JSONDecodeError is defined since Python 3.5 JsonError = json.decoder.JSONDecodeError else: Js...
/********************************************************************* * FUNCTION: reportAnEvent(DWORD dwIdEvent, WORD cStrings, * * LPTSTR *ppszStrings); * * * * PURPOSE: add the event to the even...
def initializeHeartValveLib(self): moduleDir = os.path.dirname(self.parent.path) usPresetsScenePath = os.path.join(moduleDir, 'Resources/VrPresets', 'US-VrPresets.mrml') HeartValveLib.setup(usPresetsScenePath)
""" https://codeforces.com/problemset/problem/996/A """ m = int(input()) bills = 0 while m > 0: if m >= 1000: m -= 1000 bills += 9 elif m >= 100: m -= 100 elif m >= 20: m -= 20 elif m >= 10: m -= 10 elif m >= 5: m -= 5 else:...
package com.cjburkey.freeboi.block; import com.cjburkey.freeboi.value.Pos; import com.cjburkey.freeboi.world.Chunk; public final class BlockState { public final BlockType blockType; public final Chunk chunk; public final boolean air; public final int posInChunkX; public final int posInChunkY;...
<filename>Lab2/Lab2.c<gh_stars>0 #include <stdio.h> #include <stdlib.h> struct node{ int data; struct node *next; }; void printLinkedList(struct node *head){ struct node *cur = head; while(cur->next != NULL){ printf("%d ", cur->data); cur = cur->next; } printf("%d\n", cur->dat...
<reponame>republicprotocol/store<gh_stars>10-100 // Package kv defines a standard interface for key-value storage and iteration. // It supports persistent storage using LevelDB and BadgerDB. It also supports // non-persistent storage using concurrent-safe in-memory maps. package kv import ( "github.com/renproject/kv/...
/* * The locked version of hpcrun_addr_to_interval(). Lookup the PC * address in the interval tree and return a pointer to the interval * containing that address. * * Returns: pointer to unwind_interval struct if found, else NULL. * The caller must hold the ui-tree lock. */ splay_interval_t * hpcrun_addr_to_int...
<gh_stars>0 #include <fileaccess/file_blockdev.h> #include <blockdevs/parttable_readers.h> #include <blockdevs/offset_blockdev.h> #include <filesystems/filesystem.h> #include <iostream> #include <vector> #include <string> #include "ls.h" #include "cat.h" int blockdevmain(std::shared_ptr<blockdev> bdev, std::string fsn...
#ifndef RingBufferHPP #define RingBufferHPP #include <Tools/RingBuffer.h> template <typename DataType, uint16_t bufferSize> RingBuffer<DataType, bufferSize>::RingBuffer() : values() , currentIndex(0) , filled(false) { static_assert(std::is_arithmetic<DataType>::value, "type must be an numeric type"); } t...
// NewChainFaucet creates a new faucet command to send coins to accounts. func NewChainFaucet() *cobra.Command { c := &cobra.Command{ Use: "faucet [address] [coin<,...>]", Short: "Send coins to an account", Args: cobra.ExactArgs(2), RunE: chainFaucetHandler, } flagSetPath(c) c.Flags().AddFlagSet(flagSet...
def derive_meme_path(meme_image, top, bottom, ext): token = "%s|%s|%s" % (meme_image, top, bottom) meme_id = md5(token.encode('utf-8')).hexdigest() file_path = '%s.%s' % (meme_id, ext) return MEME_PATH + file_path
A Conservative cloak-and-dagger caper aimed at capturing a Liberal candidate in a verbal gaffe has taken another twist, with the governing party producing expert audio analysis to back up its version of who said what. The Conservative party asked Edward J. Primeau, an audio forensic expert with 30 years experience, to...
/** * A new job scheduler is initialized for each test method. This method performs some set up that can be avoided for * each test. The TempTableCreator job needs to run in order to create the raw, temp tables. It is run in this * method, and the compression job is not run. This is done to avoid unneces...
<filename>src/subscription-token.test.ts import assert = require('assert') import { ISubscriptionToken, subscriptionToken } from './subscription-token' import { IObservers } from './observers' import { TNotifyCallback } from './notify-callback' function getObservers(): IObservers { return { 0: () => null, 1:...
package gameserver import ( "fmt" "net" ) //ServerCore : Server yığını type ServerCore struct { ListenerSocket net.Listener // Dinlenen soket shutdownSignal chan bool // Kapatma sinyali runing bool // Server calıştı bilgisi settings ServerSettings // Server ayarları } //NewInstan...
<reponame>voduchau/kintone-ui-component import { expect, fixture } from "@open-wc/testing"; import { MobileText } from "../index"; describe("MobileText", () => { describe("textAlign", () => { it("should be left when not set textAlign in constructor", async () => { const container = new MobileText(); ...
def readme(filename: str = 'README.md', encoding: str = DEFAULT_ENCODING) -> str: readme: str = os.path.join(here, filename) with io.open(readme, mode='r', encoding=encoding) as f: try: return '\n' + f.read() except FileNotFoundError: return __description__
{-# LANGUAGE NoStrict #-} {-# LANGUAGE NoStrictData #-} {-# LANGUAGE TypeInType #-} {-# LANGUAGE UndecidableInstances #-} module Data.Construction where import Prelude import qualified Data.Generics.Traversable as GTraversable -- import qualified Foreign.Marshal.Alloc as Mem import Data.Generics.Trave...
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2019 SUSE LLC * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License v...
/** * Create a playspace or retrieve an existing one. Add the client as a member. * @param playspaceStaticId Playspace static id * @param svrConn Playspace server connection * @return Playspace compound id */ public ClientPlayspaceRuntime joinPlayspace(String playspaceStaticId, ServerConnection svrConn) ...
# This script add glow versions of any item images that don't currently have glow versions. # This script uses the "convert" command, which is part of ImageMagick: # https://www.imagemagick.org/script/download.php # You must use an old version of ImageMagick for the convert command to work properly. # Version 6.9.3-7 ...
main = do (h,m) <- getLine >>= return . (\(x,y) -> (read x, read $ tail y)) . break (==':') :: IO (Int, Int) (putStrLn . unwords . map show) [fromIntegral (h `mod` 12) * 360 / 12 + fromIntegral m / 2, fromIntegral m * 6]
/** returns a single result entity or null if not found */ public static <T> T queryZeroOne(Class<T> resultType, String queryStr, Object... params) { EntityManager em = null; try { em = createEntityManager(); final TypedQuery<T> query = em.createQuery(queryStr, resultType); if (params != null)...
/** * Created by sherxon on 1/8/17. */ public class ZigZagOrderLevelTraversalBST { public List<List<Integer>> zigzagLevelOrder(TreeNode root) { List<List<Integer>> list = new ArrayList<>(); if (root == null) return list; List<Integer> l = new LinkedList<>(); l.add(root.val); ...
<reponame>heng2j/delamain """ Shortest Path Networkx Directed Graph and DataFrame This script creates a networkx directed graph using the topology data previously created. Find the closest node of the starting and ending locations. Then, calculates the shortest path between the two nodes. Finally show the shortest pat...
/** * Implementation of {@link Flow} based on an internal array of objects. * * @since 5.2.0 */ class ArrayFlow<T> extends AbstractFlow<T> { private final T[] values; private final int start, count; // Guarded by this private Flow<T> rest; /** Creates an ArrayFlow from the values in the othe...
// GetSSHKeyPath returns the ssh key path func (d *Driver) GetSSHKeyPath() string { if d.SSHKeyPath == "" { d.SSHKeyPath = d.ResolveStorePath("id_rsa") } return d.SSHKeyPath }
package importdb import ( "time" "github.com/jinzhu/gorm" ) // Appeal is the main table that links to most of the others type Appeal struct { gorm.Model AppealID string Appellant Person IsOnline bool UNDPRU bool NoticeDate time.Time EnrollmentYear string DateEntered time.Ti...
// ---------------------------------------------------------------------------- // Constants.cpp // // // Authors: // <NAME> <EMAIL> // ---------------------------------------------------------------------------- #include "Constants.h" namespace lickport_array_controller { namespace constants { CONSTANT_STRING(device...
/*Hey Girl, Fork my heart because I am ready to commit*/ #include <bits/stdc++.h> using namespace std; #define endl "\n" #define fastio ios_base::sync_with_stdio(false);cin.tie(NULL); #define PI 3.14159265 #define ll long long #define vii vector<int, int> #define vll vector<long long, long long> #define vi...
/** * This class loads and stores routes for Walker NPCs, under a List of {@link WalkerLocation} ; the key being the npcId. */ public class WalkerRouteData implements IXmlReader { private final Map<Integer, List<WalkerLocation>> _routes = new HashMap<>(); protected WalkerRouteData() { load(); } @Override ...
/** * This software is released as part of the Pumpernickel project. * * All com.pump resources in the Pumpernickel project are distributed under the * MIT License: * https://raw.githubusercontent.com/mickleness/pumpernickel/master/License.txt * * More information about the Pumpernickel project is available he...
Vitiligo Iridis: A case report Aim: To report an unusual case of vitiligo iridis. Case Report: We examined a 55 year old woman attending our OPD with diminution of vision. Upon examination, we found multiple greyish-white circular spots on the anterior surface of the iris with punched out margins in the left eye. She ...
/** * Ak zadam meno, ktore nie je v tabulke, tak by mi tato metoda mala dat * null */ @Test public void dajPouzivatelaTest3() { Pouzivatel pouzivatel = pouzivateliaDao.dajUzivatela("gadzo", "hahaha"); assertNull(pouzivatel); }
// Copyright 2016 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. #include "core/html/AutoplayUmaHelper.h" #include "core/dom/Document.h" #include "core/html/HTMLMediaElement.h" #include "core/html/HTMLVideoElement.h" #...
#pragma once #include "Rendering/Renderer.h" #include "State.h" namespace StructureSynth { namespace Model { class RuleRef; // forward decl. class Builder; // forward decl. /// (Abstract) Base class for rules. class Rule { public: /// Every rule must have a name. Rule(QString na...
// Initalize the database with some values. func init() { rand.Seed(time.Now().UnixNano()) Save(Customer{Name: "Mary Jane"}) Save(Customer{Name: "Bob Smith"}) }
/* * Calculate the LBP histogram for an integer-valued image. This is an * optimized version of the basic 8-bit LBP operator. Note that this * assumes 4-byte integers. In some architectures, one must modify the * code to reflect a different integer size. * * img: the image data, an array of rows*columns integers...
/** * Name of the tracking database connection injection. */ export const TRACKING_CONNECTION = 'trackingConnection';
/** * Created by dwiddows on 7/4/14. */ public class VectorStoreOrthographicalTest { private static double TOL = 0.01; @Test public void initAndRetrieveTest() { FlagConfig flagConfig = FlagConfig.getFlagConfig(null); VectorStoreOrthographical store = new VectorStoreOrthographical(flagConfig);...
// _Post is in charge of building the http Request and passing it on to the designated poster func (n *Events) _Post(data string) error { data = fmt.Sprintf("[%s]", data) r, w := io.Pipe() defer r.Close() defer w.Close() go func() { zipper := gzip.NewWriter(w) zipper.Write([]byte(data)) zipper.Flush() w.Cl...
//This class exists so that CruiseAgents object can be injected to it as a scenario state public class SetupAgents { public static final String AGENT_2_4 = "agent_2_4"; private final CruiseAgents cruiseAgents; public SetupAgents(CruiseAgents cruiseAgents) { this.cruiseAgents = cruiseAgents; } ...
// Copyright eeGeo Ltd (2012-2015), All Rights Reserved #pragma once #include "Types.h" #include "CatalogBinding.h" #include "SearchResultAddedMessage.h" #include "SearchResultRemovedMessage.h" #include "SearchQueryPerformedMessage.h" #include "SearchQueryRefreshedMessage.h" #include "SearchQueryRequestMessage.h" #i...
/** * Registers the methods of all Java classes in {@link WrapperOpenDomino#WRAPPED_CLASSES}, prefixing them with "Open" * * @param context * JSContext in which methods will be registered * @since org.openntf.domino.xsp 2.5.0 */ public static void register(final JSContext context) { if (regist...
<reponame>bradh/skylight-uas<filename>src/skylight-cucs/src/main/java/br/skylight/cucs/plugins/vehiclecontrol/VehicleMapElementPainter.java package br.skylight.cucs.plugins.vehiclecontrol; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Font; import java.awt.Graphics2D; import java.awt.Polygo...
def _flatten_railtext(self): output = "" for rail in self.rails: rail = "".join(rail) output += rail return output
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
There are many interesting nuggets of information in Charles Robinson's excellent piece about the downfall of Chip Kelly over at Yahoo! Sports, but one really stands out: Kelly could have taken some time to regroup from his Philadelphia ouster by hanging with Bill Belichick and declined. Robinson wrote on Tuesday abou...
package event.ice_detector_probe; public class IceDetectorProbeBodyActivate { public String toString() { return "Event: IceDetectorProbeBodyActivate"; } }
// add to left, right and top, bottom void expand( scr_coord_val delta_x_par, scr_coord_val delta_y_par ) { x -= delta_x_par; y -= delta_y_par; w += (delta_x_par<<1); h += (delta_y_par<<1); }
<filename>src/login/internal/ver.go package internal var ( gAllowCltVer CltVer gLastUpVerTime int64 gUpVerInterval int64 = 10 ) func AllowCltVer() *CltVer { return &gAllowCltVer } type CltVer struct { //大版本 BigVer int32 //小版本 SmallVer int32 //修复版本 FixVer int32 } // //func GetAllowCltVer(dt int32, ver *C...
<reponame>dukerspace/dezenter import { Controller, Get, Post, Put, Delete, Param } from '@nestjs/common' import { CountryService } from './country.service' const site = `${process.env.SERVICE_HOSTNAME}:${process.env.SERVICE_PORT}` @Controller('/v1/countries') export class CountryController { constructor(private rea...
<filename>cron/helpers/file.py<gh_stars>1-10 import requests import os from user_agent import generate_user_agent class File(): def set_file(self, url, type = None): try: session = requests.Session() session.headers.update({ '0': 'text/html,application/xht...
def __populateCourseDependencies(self, material, df): dependsOn = str(df._2).split(',') for dep in dependsOn: if dep.find('-') != -1: base, ranges = self.__spreadRanges(dep) for r in ranges: self.graph.add( (material...
Ultrasound-guided erector spinae plane block for acute pain management in patients undergoing posterior lumbar interbody fusion under general anaesthesia Control of postoperative spine surgery pain remains a challenge for the anaesthesiologist. In addition to incisional pain, these patients experience pain arising fro...
package com.dottydingo.hyperion.client.builder; import com.dottydingo.hyperion.api.ApiObject; import com.dottydingo.hyperion.client.*; import java.io.Serializable; /** */ public class CreateRequestBuilder<T extends ApiObject<ID>,ID extends Serializable> extends RequestBuilder<T,ID> { private T body; public...
def _get_normalized_count(self, header_number, num_alts, num_samples): if header_number == "A": return num_alts elif header_number == "R": return (num_alts + 1) elif header_number == "G": return num_samples elif isinstance(header_number, int): ...
<filename>src/dx/core/XInfoQueue.h #include <DefHeader.h> #include <dx/core/XDebug.h> namespace DX { /// <summary> /// Info Queue /// </summary> class XInfoQueue : public ScopedComPointer<ID3D12InfoQueue> { public: /// <summary> /// Default empty debug device /// </summary> XInfoQueue() = default; ...
<gh_stars>1-10 package org.jetlinks.community.elastic.search.index.strategies; import org.elasticsearch.action.admin.indices.alias.Alias; import org.elasticsearch.action.support.master.AcknowledgedResponse; import org.elasticsearch.client.RequestOptions; import org.elasticsearch.client.indices.GetIndexTemplatesRequest...
/** Visitor used for walking the BKD tree. */ protected abstract static class SpatialVisitor { /** relates a range of points (internal node) to the query */ protected abstract Relation relate(byte[] minPackedValue, byte[] maxPackedValue); /** Gets a intersects predicate. Called when constructing a {@link S...
<reponame>kamilk08/BookLoversClient import { Identification } from 'src/app/modules/shared'; export interface TimeLine { indentification: Identification readerId: number activitiesCount: number }
/* ,--. ,--. ,--. ,--. ,-' '-.,--.--.,--,--.,---.| |,-.,-' '-.`--' ,---. ,--,--, Copyright 2018 '-. .-'| .--' ,-. | .--'| /'-. .-',--.| .-. || \ Tracktion Software | | | | \ '-' \ `--.| \ \ | | | |' '-' '| || | Corporation `---' `--' `...
/// Stupid and cursed Rust procedural macro that runs a C preprocessor on the input /// /// # Example /// /// ```no_run /// cpreprocess::cpreprocess!(r#" /// #define MACRO(NAME) fn print_ ## NAME () { println!("hello world"); } /// /// MACRO(hello_world) /// /// print_hello_world() /// "#); /// ``` pub fn c...
"""Test utilities.""" import numpy as np import pytest from napari_plot.layers.multiline._multiline_utils import ( check_keys, check_length, get_data_limits, make_multiline_color, make_multiline_connect, make_multiline_line, ) def make_data(): """Make data for tests below.""" xs = [np...
<gh_stars>0 import tkinter as tk from tkinter.scrolledtext import ScrolledText root = tk.Tk(className=" Just another Text Editor") textPad = ScrolledText(root, width=100, height=80, wrap=tk.WORD) textPad.insert('1.0', 'fdsfdsfds') textPad.pack() root.mainloop()
/** Test method. * @param args command line arguments */ public static void main(String[] args) { int iarg = 0; int width = 3; VariableMap vmap = new VariableMap(); if (iarg == args.length) { vmap.put("a" , "3"); vmap.put("b" , "4"); vmap.pu...
def from_string(self, s=""): a = s.split(':') if len(a) >= 3: self.__set_chromosome(a[0]) self.coordinate = int(a[1]) self.sequence = a[2] else: a = s.split('\t') if len(a) >= 3: self.__set_chromosome(a[0]) ...
#include <wheel.h> // text user interface, the iodev that programs read from and write to. // this module receives events using `event.c` from kbd and mouse // then translate raw keycode into ascii (optional). // this module also receives output from user programs, with support // for escape sequences like setting c...
/** This skill does nothing but emit fire particles around the entity until it dies. */ public class FireAura extends AbstractVisualSkill { @Override protected void displayVisualEffects(LivingEntity caster) { // Randomly display fire particles around the entity if (this.random.nextBoolean()) { ParticleUti...
/** * A simple {@link Fragment} subclass. */ public class EnableFragment extends Fragment { SharedPreferences sp; private Context context; private Toolbar tb; private String[] addrArray={}; private String[] addrState={}; private String[] addrNick={}; private static String[] dataToken; ...
// Messaging Queue Connection (RabbitMQ) func MQConnection(mqConf *helper.RabbitMQConfig) (*amqp.Connection, error) { mq, err := amqp.Dial(mqConf.URL) helper.CheckError(err, "Failed to connect to MQ") return mq, nil }
/** * Delete event form data to back end service. */ public void submitDeletetoService() { try { eventClient.deleteEvent(this.selectedId); } catch (UnknownUrlException e) { System.err.println("The given URL is unreachable"); } pageDispatcher.showMainPage...
def predict_video(path): cascadePath = "haarcascade_frontalface_default.xml" faceCascade = cv2.CascadeClassifier(cascadePath) recognizer1 = cv2.face.createLBPHFaceRecognizer() recognizer2 = cv2.face.createFisherFaceRecognizer() recognizer1.read("LBPFPatternRecogniser") recognizer2.read("Fisherfa...
/** * Service encapsulating schema management of the DSE platform. This service deals * with both the Hive meta store schema as well as maintaining the mappings of * column family and keyspace objects to meta store tables and databases respectively. */ public class SchemaManagerService { private static final Lo...
<filename>src/utils/mod.rs use jwalk::DirEntry; use std::cmp::Ordering; use std::collections::HashMap; use std::collections::HashSet; use std::path::{Path, PathBuf}; use jwalk::WalkDir; mod platform; use self::platform::*; #[derive(Debug, Default, Eq)] pub struct Node { pub name: PathBuf, pub size: u64, ...
Hello, my dearest dears, and welcome back to another festive installment of Will It Sous Vide?, the weekly column where I make whatever you want me to with my immersion circulator. Advertisement During our last topic picking session, we settled on Thanksgiving sides because, let’s face it, most people care way more a...
/***********************************************************************/ /* CAT Access Method opening routine. */ /***********************************************************************/ bool TDBCAT::OpenDB(PGLOBAL g) { if (Use == USE_OPEN) { N = -1; return false; } ...
Author PG Wodehouse was born in England and died in the US, but in between he lived for several years in France, a country that looms large in some of his most colourful creations. It is true what they say in the blurb - there honestly is no better antidote to anguish, ennui or general world-weariness than to flick th...
Rep. Maxine Waters Maxine Moore WatersWorse than nothing's been done since the massive Equifax hack Juan Williams: Racial shifts spark fury in Trump and his base Maxine Waters apologizes to millennials struggling to get a job MORE (D-Calif.), who has called for President Trump Donald John TrumpHouse committee believes ...
<gh_stars>0 use super::TaskContext; use super::{pid_alloc, KernelStack, PidHandle}; use crate::fs::{File, MailBox, Serial, Socket, Stdin, Stdout}; use crate::mm::{translate_writable_va, MemorySet, PhysAddr, PhysPageNum, VirtAddr, KERNEL_SPACE}; use crate::task::pid::add_task_2_map; use crate::trap::{trap_handler, TrapC...
<filename>tests/pos/Constraints.hs module Constraints where {-@ cmp :: forall < pref :: b -> Bool, postf :: b -> c -> Bool , pre :: a -> Bool, postg :: a -> b -> Bool , post :: a -> c -> Bool >. {xx::a<pre>, w::b<postg xx> |- c<postf w> <: c<post xx>} {ww::a<p...
/** * <p> * Inject a snippet of JavaScript into the page for execution in the context * of the currently selected frame.<br> * Support: Web(WebView) * * @param code The script to execute * @return The results of execution * @throws Exception */ public JSONObject execute(Stri...
<filename>FangameReader/UserAliasFile.cpp<gh_stars>1-10 #include <common.h> #pragma hdrstop #include <UserAliasFile.h> #include <BossInfo.h> namespace Fangame { ////////////////////////////////////////////////////////////////////////// const CUnicodeView aliasRootName = L"Aliases"; CUserAliasFile::CUserAliasFile( C...
Oh, another NP completeness game. Point of fact, this is NOT 3D logic. It is 100% 2D and PLANAR! Because it is 3 adjacent faces of a cube that share a corner. It might as well be drawn on 3 concentric non-moving fixed-position concentric equilateral triangles (basically what you would get if you took those 3 faces shar...
/** * Implementation of the belt connection interface. */ class BeltConnectionController extends BeltConnectionInterface implements GattController.GattEventListener, BluetoothScanner.BluetoothScannerDelegate, BeltCommunicationController.HandshakeCallback { // Debug @SuppressWarnings("unused")...
<reponame>xbsoftware/node-wfs-s3 import * as policies from "./policy"; import {Operation} from "./types"; import S3 from "./S3"; export {S3, policies, Operation};
/** * <p>Adds 1 or more dependencies to the given dependent node.</p> * * <p>If the dependent nodeContent or any of the given dependencies don't exist * as Nodes in the graph, new Nodes will automatically be created and added * first.</p> * * <p>Because this is a strongly connected digraph, * each new d...
/** * Helper AsyncTask to access the call logs database asynchronously since database operations * can take a long time depending on the system's load. Since it extends AsyncTask, it uses * its own thread pool. */ private class LogCallAsyncTask extends AsyncTask<AddCallArgs, Void, Uri[]> { ...
WASHINGTON – The Justice Department’s Civil Rights Division today filed an amicus brief in support of a mosque in Murfreesboro, Tenn., that has met with community opposition and a lawsuit. The brief was filed in a state court action in which a group of Murfreesboro landowners are attempting to stop construction of the...
def cleaner(s): initial_add = '' final_list = [] last_add = '' if s[0] == '0': if '1' not in s: return s initial_add = s[: s.index('1')] s = s[s.index('1') :] if s[-1] == '1': reverse = s[:: -1] if '0' not in s: return initi...