content
stringlengths
10
4.9M
Comments on Slavnov products, Temperley-Lieb open spin chains, and KP tau functions We study Slavnov's inner products for open Temperley-Lieb chains and their relations with the KP hierarchy. We show that when (s=1/2) the quantum group invariant XXZ spin chain has Slavnov products given by the quotient of tau function...
// ConvertToECSNetworkConfiguration extracts out the NetworkConfiguration from // the ECSParams into a format that is compatible with ECSClient calls. func ConvertToECSNetworkConfiguration(ecsParams *ECSParams) (*ecs.NetworkConfiguration, error) { if ecsParams == nil { return nil, nil } networkMode := ecsParams.Ta...
//This is called from JSP servlet to render custom tag public void doTag() throws JspException, IOException { JspWriter out = getJspContext().getOut(); if (foreColor != null) { out.write(String.format("<span style = 'color:%s'>%s</span >", foreColor, text)); } else { out....
def run(self): cmd_run = CMD_RUN | TRACE_ENGINE_BIT self.logictools_controller.write_command(cmd_run) self.logictools_controller.check_status()
#pragma once #include "../libs/logger.h" #define VERSION "InputClient 2.0" typedef struct { LOGGER log; char* program_name; char* dev_name; char* dev_path; char* password; char* host; char* port; uint64_t type; uint8_t slot; int reopen_attempts; } Config;
a = [] for i in range(1, 100000): if i % 3 == 0 or i % 10 == 3: continue a.append(i) nTest = int(input()) while nTest > 0: nTest -= 1 k = int(input()) print(a[k-1])
<reponame>chaos0x8/cpp-c8 #include "c8-gtkmm/PasswordDialog.hpp" #include "c8-common/errors/OperationAbortedError.hpp" #include "c8-gtkmm/MakeDefault.hpp" namespace C8::Gtkmm { PasswordDialog::PasswordDialog(Gtk::Window& parent, const std::string& prompt, const std::string& title) : Gtk::Dialog(title, parent), p...
import type { State, Group, Rule } from '.'; export function getRules(state: State): Rule[] { if (!state?.namespaces) return []; const groups = state.namespaces .filter(ns => ns.status) .reduce<Group[]>((a, b) => { return [...a.concat(...b.groups)]; }, []) .filter(group => group.status); c...
def _color_palette(self): if self.tw.hw == XO30: palette = make_palette('pen', colors=["#00FFFF", "#00A0A0"], help_string=_('Palette of pen colors')) else: palette = make_palette('colors', ...
/** * Ors together this regex with the supplied other regular expressions * * @param others the other regular expressions to be ored with this one * @return the regex */ public Regex or(@NonNull Regex... others) { if (others == null) { return this; } return Re.or(this, oth...
The thatched roof held back the sun’s rays, but it could not keep the tropical heat at bay. As everyone at the research workshop headed outside for a break, small groups splintered off to gather in the shade of coconut trees and enjoy a breeze. I wandered from group to group, joining in the discussions. Each time, I no...
/* * Copyright (C) 2013 Google Inc. * Copyright (C) 2013 Square 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 requir...
/** * Get all the activity type and create all the corresponding accessors. * * @param transformation */ private void createAccessorsForField(ClassTransformation transformation) { String packageName = "com.wooki.domain.model.activity"; for (String type : locator.locateClassNames...
import { IDisposable } from '@orange4glace/vs-lib/base/common/lifecycle'; export interface IContribution<T extends string> extends IDisposable { _contribution: T; readonly id: string; } // export interface IConstructorSignature1<A1, T> { // new(first: A1, ...services: { _serviceBrand: any; }[]): T; // }...
# GT4Py - GridTools Framework # # Copyright (c) 2014-2023, ETH Zurich # All rights reserved. # # This file is part of the GT4Py project and the GridTools framework. # GT4Py 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 ...
<reponame>Artem711/R-Recursion.Tree.Visualizer export { default as translateToPlainCode } from './plain-code' export { default as computeRawCoords } from './raw-coords' export { default as generateRecursionTree } from './recursion-tree' export { default as getSourceCode } from './source-code' export { default as comput...
<gh_stars>1-10 import { EventData } from "tns-core-modules/data/observable"; import { SubMainPageViewModel } from "../sub-main-page-view-model"; import { WrapLayout } from "tns-core-modules/ui/layouts/wrap-layout"; import { Page } from "tns-core-modules/ui/page"; export function pageLoaded(args: EventData) { const...
// TestCommonKindsRegistered verifies that all group/versions registered with // the testapi package have the common kinds. func TestCommonKindsRegistered(t *testing.T) { for _, kind := range commonKinds { for _, group := range testapi.Groups { gv := group.GroupVersion() gvk := gv.WithKind(kind) obj, err :=...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* * The following code handles the storage of PKCS 11 modules used by the * NSS. This file is written to abstra...
//===- ConstantHoisting.cpp - Prepare code for expensive constants --------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
The Canadian Press LONDON, Ont. -- Prime Minister Stephen Harper is suggesting the proposed new pension plan on which the Ontario Liberals plan to campaign won't score any points with voters. Asked whether Premier Kathleen Wynne's Liberals could win an election with an Ontario Retirement Pension Plan, Harper said inc...
<reponame>HulinCedric/trafalgar-simulator // // IUT de Nice / Departement informatique / Module APO-C++ // Annee 2008_2009 - Package _Trafalgar // // Classe Navire - Service observer // // Auteur : <NAME>, <NAME>, <NAME> // #include "Navire.h" // --- Service observer // void Navire::observer() { //Control la vali...
// if sandwich engine gets a TIFF image instead of PDF file // we need to convert the input file to pdf first since pdfsandwich can't handle images // in this case tiff2pdf will be used; seems to be more reliable func tiff2Pdf(inputFilename string) string { log.Info().Str("component", "OCR_IMAGECONVERT").Msg("got imag...
/** * Attr node interface. */ export default class Attr { public value: string = null; public name: string = null; public namespaceURI: string = null; /** * Returns local name. * * @returns Local name. */ public get localName(): string { return this.name ? this.name.split(':').reverse()[0] : null; } ...
// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MI...
/** * Parse a percent value. * * @param value the value * @param allowAbsolute true if absolute values must be allowed * @return the value */ public static double parseValue(String value, boolean allowAbsolute) { value = value.trim(); Matcher m = NUMBER.matcher(value); if...
export * from './UList'; export { default as UList } from './UList';
<gh_stars>10-100 package aws import ( "fmt" "regexp" "strconv" "testing" "github.com/aws/aws-sdk-go/service/organizations" "github.com/hashicorp/terraform/helper/acctest" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" ) func TestAccAwsOrganizationsPolicy_basic(t *...
class PsqlDostoreMigrator: """Class for validating and migrating `psql_dos` storage instances. .. important:: This class should only be accessed via the storage backend class (apart from for test purposes) """ alembic_version_tbl_name = 'alembic_version' django_version_table = table( 'djan...
<reponame>Awdrtgg/Coursework-Projects /* -------------------------------------------------------------------------------------- Exercsie 2: Class and Object Test 3: Friend Programmer: <NAME> ******************************************************************************** --------------------------------------...
/** * Returns the grouped Distribution of the MAP Variable at Time 0. * @param dynVar the dynamic {@link Variable} object. * @param staticVar the static {@link Variable} object. * @param nStatesStaticVarParent the number of static variable parents. * @param parents the {@code List} of parent {@...
import os import sys import pandas as pd import requests from glob import glob from random import randint from tqdm.auto import tqdm import os.path as path import time bloomip = "116.202.162.146" files = glob("*.txt") with tqdm(total=len(files), file=sys.stdout) as pbar: pbar.desc = "1" for file in files: ...
/** * Removes all projects and activities from the database. */ public void clearData() { try (final PreparedStatement activitiesDelete = prepare("delete from activity")) { activitiesDelete.execute(); try (final PreparedStatement projectsDelete = prepare("delete from project")...
Seattle’s traffic is bad. No news there. But knowing the worst places can be a help. It’s also handy to know if they’re getting better or worse. Bad news. It’s getting worse. The good news is that data is now available that gets specific. We love to complain about it, but most commutes are under an hour. Imagine what ...
/* ******************************************************************************* * * Copyright (C) 2003, International Business Machines * Corporation and others. All Rights Reserved. * ******************************************************************************* * file name: uarrsort.c * encoding: US-A...
import { PlatformConfig as HomebridgePlatformConfig } from 'homebridge'; export interface PlatformConfig extends HomebridgePlatformConfig { host: string; port: number; devices: DeviceConfig[]; } export interface DeviceConfig { id: number; type: DeviceType; name: string; manufacturer: string; model: st...
//Human Mode Starts in this Method public void callHumanMode() { playerName.setText(playerBody); box00 = findViewById(R.id.box00); box01 = findViewById(R.id.box01); box02 = findViewById(R.id.box02); box10 = findViewById(R.id.box10); box11 = findViewById(R.id.box11); ...
from math import sin, pow while True: try: x = float(input("Enter x: ")) y = float(input("Enter y: ")) except ValueError: print("Enter number!") else: part1 = pow(sin(x + 0.4), 2) part2 = pow(y, 2) + 7.325 * x try: result = part1 / part2 e...
// allUnrelated fetches all elements that have no relationship to other elements // in the view. func unrelated(v *ViewProps) (elems []*Element) { loop: for _, ev := range v.ElementViews { for _, rv := range v.RelationshipViews { if rv.Source.ID == ev.Element.ID || rv.Destination.ID == ev.Element.ID { continu...
#include <stdio.h> #include <string.h> #include <math.h> int main() { char arr [100]; scanf("%s",arr); char x; for (int i=0;i<strlen(arr)-1;i++) { for (int j=0;j<strlen(arr)-1;j++) { if(arr[j+2]<arr[j] && j%2==0) { x=arr[j]; arr[j]=arr[j+2]; arr[j+2]=x; } } } for(int i=...
// [VexFlow](http://vexflow.com) - Copyright (c) <NAME> 2010. // // ## Description // // This file handles a registry of text font metric information, so all // VEX modules can take advantage of font metrics in a uniform way. // import { RuntimeError, log } from './util'; import { PetalumaScriptTextMetrics } from './f...
#include <MessageDispatcher.h> BEGIN_NS_BETTER MessageDispatcher::MessageDispatcher() { } void MessageDispatcher::addAppender(ILogAppender *appender) { if(m_appenders.contains(appender)) return; m_appenders << appender; } void MessageDispatcher::postMessage(QtMsgType type, const QMessageLogContext &contex...
interface Stats { id: number; sample1: string; sample2: string; createdOn: string; }
<filename>asyevent/command.py from __future__ import annotations from asyevent.callback import Callback from asyevent.event import Event from asyevent.exceptions import CommandAlreadyExists from typing import Callable, Union class Command(Event): """ Do not manually initialise this class. Use instead `Event...
<gh_stars>0 // tracing: off import type { Clock } from '../../Clock' import type { Has } from '../../Has' import type { Schedule } from '../../Schedule' import type { ReleaseMap } from '../ReleaseMap' import { accessCallTrace, traceCall, traceFrom } from '@principia/compile/util' import { pipe } from '../../function...
mapper = {'(': 0, '[': 1, '8': 2} def to_gpc(s): return [mapper[i] for i in s[::2]] team1 = to_gpc(raw_input()) team2 = to_gpc(raw_input()) nwin1 = 0 nwin2 = 0 for h1, h2 in zip(team1, team2): if h1 == (h2 + 1) % 3: nwin1 += 1 elif h1 == h2: pass else: nwin2 += 1 if nwin1 > nwin2: prin...
// Compressed implements partial.CompressedLayer func (rl *remoteLayer) Compressed() (io.ReadCloser, error) { ctx := redact.NewContext(rl.context, "omitting binary blobs from logs") return rl.fetchBlob(ctx, rl.digest) }
// WithTypeFilter adds a given filter to Type query. func WithTypeFilter(filter gqlpublicapi.TypeFilter) TypeOption { return func(opts *TypeOptions) { opts.Filter = filter } }
Scattered Violence Erupts At Large, Left-Wing Berkeley Rally Enlarge this image toggle caption Josh Edelson/AP Josh Edelson/AP A mostly peaceful demonstration turned violent in Berkeley, Calif., when left-wing counterprotesters clashed with right-wing protesters and Trump supporters on Sunday. Thousands of people he...
def testModifyLease(self): current_eta_seconds = 1 lease_seconds = 10 def SetResponse(service, method, request, response): response.updated_eta_usec = SecToUsec(lease_seconds) expected_request = taskqueue_service_pb2.TaskQueueModifyTaskLeaseRequest() expected_request.queue_name = b'default' ...
/** * Tests whether constructing a {@link Setup} instance throws a {@link SetupException} as expected for the current * configuration file. */ @Test public void testCorrectException() { if (expectedSetupExceptionMessageStart == null) { assertNull(actualSetupException, "Unexpect...
<gh_stars>1000+ /*! ****************************************************************************** * * Pentaho Data Integration * * Copyright (C) 2002-2019 by <NAME> : http://www.pentaho.com * ******************************************************************************* * * Licensed under the Apache License, ...
// must be even. Hexadecimal letters can be uppercase or lowercase. public static byte[] hexToBytes(String s) { if (s.length() % 2 != 0) throw new IllegalArgumentException(); byte[] b = new byte[s.length() / 2]; for (int i = 0; i < s.length(); i += 2) { if (s.charAt(i) == '+' || s.charAt(i) == '-') thro...
Calling all data hounds! Senior developers from The New York Times and The Washington Post are looking for volunteers to help collect more than 10 years of federal elections data from each state. With their help — and $200,000 in Knight News Challenge funding — Serdar Tumgoren and Derek Willis are working on creating ...
// GetHighZPortEnabled returns true if the High-Z port is enabled or false // if it is not enabled or if the device does not have a High-Z port. func GetHighZPortEnabled(d *api.DeviceT, p *api.DeviceParamsT) bool { switch d.HWVer { case api.RSP2_ID: return p.RxChannelA.Rsp2TunerParams.AmPortSel == api.Rsp2_AMPORT_1...
import * as chalk from "chalk"; import { constants } from "fs"; import { access } from "fs/promises"; import { resolve } from "path"; import { IAddOptions } from "../../../typescript/interfaces/interfaces"; export async function getTemplateDirectory(options: IAddOptions): Promise<IAddOptions> { try { const templa...
<filename>opencloud-gateway/opencloud-gateway-provider/src/main/java/com/github/lyd/gateway/provider/mapper/GatewayRateLimitApisMapper.java<gh_stars>1-10 package com.github.lyd.gateway.provider.mapper; import com.github.lyd.common.mapper.CrudMapper; import com.github.lyd.gateway.client.model.GatewayRateLimitApisDto; i...
The Summer of Valiant is just getting started! Debuting today in a comic shop near you, get an exclusive sneak peek at Valiant’s next two blockbuster releases with the Eternal Warrior #1/Bloodshot and H.A.R.D. Corps #14 Sketchbook – a free, 16-page flipbook featuring a behind-the-scenes look at the stunning artwork of ...
def AsDict(self): assert self.finished, 'story must be finished first' return { 'testResult': { 'testName': self.test_name, 'status': self.status, 'isExpected': self.is_expected, 'startTime': self.start_datetime.isoformat() + 'Z', 'runDuration'...
/* * Copyright 2011-2012 the Redfish 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 copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
// NewSerializer returns the serializer from the given content type func NewSerializer(contentType string) (Serializer, error) { if serializer, ok := serializerRegistry[contentType]; ok { return serializer, nil } err := fmt.Errorf("Serializer not found for content type [%s]", contentType) return nil, err }
<reponame>pologitel/advance-tech<filename>app/models/portfolio.ts export class Model_portfolio { constructor( public title: string, public description: string, public path: string, public type: string, public href: string ) {} }
/* * Copyright (c) 2017, 2020 Oracle and/or its affiliates. * * 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 ...
<reponame>phernst/ctl<gh_stars>0 #ifndef CTL_ABSTRACTBASETYPEIO_H #define CTL_ABSTRACTBASETYPEIO_H #include "img/voxelvolume.h" #include "img/projectiondata.h" #include "acquisition/viewgeometry.h" #include <QVariantMap> namespace CTL { namespace io { class AbstractMetaInfoReader { public:virtual QV...
/** * Inserts layout information for a given key, on the basis of a * visual map. */ public void putEdge(Edge key, VisualMap visuals) { putEdge(key, JEdgeLayout.newInstance(visuals)); }
def _ensure_date_order(cls, previous_date, following_date, name="following_date"): previous_date = cls._ensure_date(previous_date) following_date = cls._ensure_date(following_date) p_str = previous_date.strftime(cls.DATE_FORMAT) f_str = following_date.strftime(cls.DATE_FORMAT) if...
<filename>src/metrics_info.h #pragma once #include "def.h" #include <memory> #include <string> #include "../3rdparty/CImg.h" enum MetricType { METRIC_SM_SOL, METRIC_FB_USAGE, METRIC_MEM_SOL, METRIC_GPU_TEMPERATURE, METRIC_GPU_POWER, METRIC_NVENC_SOL, METRIC_NVDEC_SOL, M...
/************************************************************* Copyright 2018-2019 eBay Inc. Author/Developer: <NAME> Use of this source code is governed by an MIT-style license that can be found in the LICENSE file or at https://opensource.org/licenses/MIT. ******************************************************...
def to_csv(self, data, save_path=None): save_path = validate_path( save_path=save_path, input_file=self.input_file, ext=".csv" ) data.to_csv(save_path, index=False) self._output_file.append(save_path)
/// Construct a dependency scanning tool. /// /// \param Compilations The reference to the compilation database that's /// used by the clang tool. DependencyScanningTool(const tooling::CompilationDatabase &Compilations) : Compilations(Compilations) { PCHContainerOps = std::make_shared<PCHContainerOperatio...
// NewMessage creates a new email message to send. // // The message is always sent on behalf of an authorized user, so that the from // field can be empty or contain the string "me". If you set this field to a // different address, it will appear in the Reply-To and when you reply to this // message will use the sende...
package example import ( "fmt" ) func f() { arr := [...]int{1, 2, 3, 4, 5, 6} // range loop for i, v := range arr { fmt.Println(i, v) } a := 2 for a < 9 { a++ fmt.Println(a) } for i := 0; i < 9; i++ { fmt.Println(i) } // infinite loop for { fmt.Println("infinite loop") break // break loop ...
<reponame>ooooo-youwillsee/leetcode // // Created by ooooo on 2020/1/25. // #ifndef CPP_0067__SOLUTION1_H_ #define CPP_0067__SOLUTION1_H_ #include <iostream> using namespace std; /** * 从尾遍历到头 */ class Solution { public: string addBinary(string a, string b) { string ans = ""; int i = a.size() - 1, j = b...
/** * Validate access token for websocket handshake * * @param context context of the API * @param version version of the API * @param accessToken access token of the request * @param tenantDomain * @param keyManagers * @return * @throws APIKe...
<reponame>novopl/sphinx-refdoc<gh_stars>0 # -*- coding: utf-8 -*- """ cli interface. Very simple for now. """ from __future__ import absolute_import import click @click.command() @click.option('-i', '--input-pkg', metavar='<package_path>', multiple=True) @click.option('-o', '--out', metavar='<dst_dir>') @click.opti...
<reponame>sharebook-org/sharebook<gh_stars>1-10 package org.sharebook.servlet; import org.sharebook.service.UploadService; import org.sharebook.service.impl.UploadServiceImpl; import org.sharebook.utils.ResponseUtils; import javax.servlet.ServletException; import javax.servlet.annotation.MultipartConfig; import javax...
<gh_stars>0 {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE OverloadedStrings #-} {-| Module : ALexerGen Description : Lexer spec generator Copyright : (c) <NAME> and <NAME>, 2019 License : MIT Maintainer : <NAME> and <NAME> Stability : experimental Portability : POSIX + Windows Language : Haskell2010 ...
// IntRange using args [start, stop, step] to generate a set of serial numbers func IntRange(args ...int) <-chan int { var start, stop, step int switch len(args) { case 1: start = 0 stop = args[0] step = 1 case 2: start = args[0] stop = args[1] step = 1 case 3: start = args[0] stop = args[1] s...
<filename>src/main/java/com/udacity/jdnd/course3/critter/service/ScheduleService.java package com.udacity.jdnd.course3.critter.service; import com.udacity.jdnd.course3.critter.entity.Customer; import com.udacity.jdnd.course3.critter.entity.Employee; import com.udacity.jdnd.course3.critter.entity.Pet; import com.udacit...
<filename>app/src/main/java/com/dtodorov/androlib/services/StringResolver.java package com.dtodorov.androlib.services; import android.content.res.Resources; /** * Created by diman on 4/1/2016. */ public class StringResolver implements IStringResolver { private Resources _resources; public StringResolver(Re...
// MessageHasBeenUpdated is invoked after a message is updated and has been updated in the // database. If you need to modify or reject the post, see MessageWillBeUpdated Note that this // method will be called for posts created by plugins, including the plugin that created the post. // // This demo implementation logs...
<reponame>Sloth113/MathforGames #pragma once #include "SceneObject.h" class ShapeObject :public SceneObject { public: ShapeObject(); ShapeObject(int shape); virtual ~ShapeObject() {}; virtual void update(float deltaTime); virtual void draw(aie::Renderer2D* renderer); protected: int m_shape; //1 circle, 2 squar...
{-# LANGUAGE DuplicateRecordFields #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE OverloadedStrings #-} {-# OPT...
/* This file is part of solidity. solidity 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 (at your option) any later version. solidity is distributed in the hope that i...
// choice translates Case in to a select Choice. // vt is the resolved type of the select value being compared against, and can // be used to infer the choice condition type. func choice(rv *resolver, in *ast.Case, vt semantic.Type) *semantic.Choice { out := &semantic.Choice{AST: in} rv.with(vt, func() { for _, con...
/// Set the Vertical Swing mode of the A/C. /// @param[in] pos The position/mode to set the vanes to. void IRHaierAC176::setSwing(uint8_t pos) { uint8_t newpos = pos; switch (pos) { case kHaierAcYrw02SwingOff: case kHaierAcYrw02SwingAuto: case kHaierAcYrw02SwingTop: case kHaierAcYrw02SwingMiddle: ...
Syllable-Based Speech Recognition for Amharic Amharic is the Semitic language that has the second large number of speakers after Arabic (Hayward and Richard 1999). Its writing system is syllabic with Consonant-Vowel (CV) syllable structure. Amharic orthography has more or less a one to one correspondence with syllabic...
package com.mycompany.shop.springbootshop.repository; import org.springframework.data.mongodb.repository.MongoRepository; import org.springframework.stereotype.Repository; import com.mycompany.shop.springbootshop.domain.Authority; @Repository public interface AuthorityRepository extends MongoRepository<Authority, Str...
package com.charles445.simpledifficulty.client.gui; import java.util.Random; import com.charles445.simpledifficulty.api.SDCapabilities; import com.charles445.simpledifficulty.api.SDItems; import com.charles445.simpledifficulty.api.config.ClientConfig; import com.charles445.simpledifficulty.api.config.ClientOptions; i...
/* * These two helpers operate on sync_file FDs, which contain dma-fences used * for explicit fencing. We get these fences from EGLSync and from KMS. */ static bool linux_sync_file_is_valid(int fd) { struct sync_file_info file_info; memset(&file_info, 0, sizeof(file_info)); if (ioctl(fd, SYNC_IOC_FILE_INFO, &file...
// InvalidateSessionByID invalidates a session by id func (s *Store) InvalidateSessionByID(ctx context.Context, id int64) (int64, error) { _, err := s.FindSessionByInternalID(ctx, id) if err != nil { return -1, err } _, err = s.db.QueryxContext(ctx, "UPDATE sessions set is_invalid = 1 WHERE id = ?", id) if err !...
package com.charleskelly.magic.pairs; import com.charleskelly.magic.tuples.coordinates.CellCoordinates; import com.charleskelly.magic.tuples.contents.CellContents; import lombok.Getter; import lombok.Setter; import lombok.ToString; import lombok.experimental.SuperBuilder; import lombok.extern.log4j.Log4j2; @Getter @...
A Cooperative Game Theory-Based Algorithm for Overlapping Community Detection Community detection is of great significance and has more guiding for network analysis which has attract a lot of attention and is widely used in many areas. The process of community formation is modeled as a game in this paper, nodes in net...
def build_unknown_field(self, field_name, info): raise ImproperlyConfigured( "Field name `{}` is not valid for model `{}`.".format(field_name, info.model_class.__name__) )
Spread the love If a man tells you he cannot know the truth, you can be sure he will probably act as if he has no obligation to tell the truth. At this point our readers may be asking, why is Barry so focused on the issue of the materialist tactic of insane denial? It is a fair question. And the answer is I have a (p...
/* Handles simple messages depending on their header. Desired behaviour: PING -> PONG PONG -> PONG reserved for server responses OKAY -> ERROR invalid sequence of messages ERRO -> server does not handle ERRO messages XXXX -> ERROR unknown header received: XXXX */ void simple_header_handler(char *heade...
def combine_patch_data(patch_data, variables): combined = xr.concat([patch_data[variable] for variable in variables], pd.Index(variables, name="var_name")) return combined.transpose("p", "row", "col", "var_name")
import sys import pytest import semver # sys.path.insert(0, "docs/usage") from coerce import coerce # noqa:E402 from semverwithvprefix import SemVerWithVPrefix # noqa:E402 import packaging.version @pytest.fixture(autouse=True) def add_semver(doctest_namespace): doctest_namespace["Version"] = semver.version....
def starshadeInjectionVelocity(self,TL,sInd,trajStartTime,SRP=False,Moon=False): latDist = self.latDist startingY = self.convertPos_to_canonical( latDist ) r_OS_C = np.array([0,-1,0]).reshape(3,1) * startingY Iv_OS_C = np.array([1,1,1]).reshape(3,1) * startingY dt, Iv_OS_C_ne...
/* merge.h * Definitions for routines for merging files. * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published...