content
stringlengths
10
4.9M
/** * * ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€}:ใ€€ใ€€ใ€€ใ€€ใ€€ ใ€€ ใ€€ ใ€€ ใ€€ ใ€€ ใ€€ _๏ฝค,rใ€€๏ฝค,,vใ€€ใ€€ใ€€๏ผผ * ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ /ใ€€ใ€€ใ€€ใ€€๏ผผใ€€ใ€€ ใ€€ ใ€€ ๏ฝค,v'" ~ใ€€ใ€€ใ€€ใ€€ใ€€๏พŸ~"''x๏ฝคใ€€๏ผผ * ใ€€ ใ€€ ใ€€ ใ€€ / ใ€€ ใ€€ ใ€€ ใ€€ ใ€€ ใ€€ ๏ฝคr''"ใ€€ใ€€ ,, ๏ฝค,v๏ฝคx๏ฝก,,ใ€€ใ€€ใ€€ใ€€ใ€€~" ๏ฝค, * ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ ...::::ๅ…ฅ,,"ใ€€ใ€€,,๏ฝคใ‚ค: : : : : : : : :"'๏พ๏ฝค, * ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€...::::๏ผ ใ€€๏ฝ™": : : : : : : : : :ใ‚ค : : : : : : :"vใ€€ใ€€ใ€€ใ€€'๏ฝค * ใ€€ใ€€ใ€€ใ€€ใ€€ }ใ€€ใ€€ ....:::::ใ‚ค ใ€€๏ผ.: :/: : :๏ผ: :๏ผ ๅ…ซ: ...
def dump_no_canonicalize_svndate(sbox): sbox.build(create_wc=False, empty=True) svntest.actions.enable_revprop_changes(sbox.repo_dir) propval = "2015-01-01T00:00:00.0Z" svntest.actions.run_and_verify_svn(svntest.verify.AnyOutput, [], "propset", "--revprop", "-r0", "svn:date"...
/** * return true if the input is a directory in the ftp resource. works only * if you have permissions to change to the specified directory. */ public boolean isDirectory(String dirName) throws FileResourceException { boolean isDir = true; String currentDirectory = getCurrentDirectory();...
/* * 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 ...
def filter_grid(size, dx, center=False): x = np.arange(0, size * dx, dx) if center: x = (x + dx / 2) - (size / 2) * dx assert x.size == size return x
From event detection to storytelling on microblogs The problem of detecting events from content published on microblogs has garnered much interest in recent times. In this paper, we address the questions of what happens after the outbreak of an event in terms of how the event gradually progresses and attains each of i...
<filename>formatters/basic.go package formatters import ( "github.com/xrash/gol/v2" "strings" "time" ) const ( TIMESTAMP_FORMAT = "2006-01-02T15:04:05.000Z07:00" MESSAGE_FORMAT = "[%timestamp%] [%level%] %message%\n" ) type nowProvider func() time.Time type BasicFormatter struct { nowProvider nowProvider } ...
#include <stdio.h> #include <stdlib.h> #include "Inverte.h" void inverte(Lista *lista) { if (vazio(lista)) { return; } for (Elemento *primeiro = lista->primeiro; primeiro->prox != NULL;) { Elemento *aux = primeiro->prox; primeiro->prox = aux->prox; aux->prox = lista->primeiro; lista->primeiro = aux; ...
// This file is part of the Acts project. // // Copyright (C) 2019-2021 CERN for the benefit of the Acts project // // 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/. #...
<reponame>rockersey/Biometria package view.consultar; import java.awt.Color; import java.awt.Font; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import ja...
def run_until(self, y1): ts = utils.monthly_timeseries(self.yr, y1) ts = np.append(ts, y1) self.iterations = 0 for y in ts: t = (y - self.y0) * SEC_IN_YEAR while self.t < t: self.step(t-self.t) self.iterations = self.iterations + 1 ...
๏ปฟimport * as _ from "lodash"; import * as moment from "moment"; import * as Utils from "@paperbits/common/utils"; import { ISettingsProvider } from "@paperbits/common/configuration"; import { HttpHeader, HttpMethod, HttpClient } from "@paperbits/common/http"; import { IGithubClient } from "./IGithubClient"; import { IG...
(JTA) โ€” A Palestinian push to try Israeli officials for war crimes at a United Nations tribunal would end any chance of reaching a peace deal, Israeli Prime Minister Benjamin Netanyahu said. Netanyahu spoke to Army Radio on Friday, a day after the Palestinian Authorityโ€™s envoy to the United Nations said his government...
def ward_count(df, col, value, unique_id, ward_num): rows = df[ df[col] == value] if ward_num not in rows['Ward'].values: return 0 grouped = rows.groupby('Ward') return grouped[unique_id].count()[ward_num]
def payloader(input_name, value, fields, settings): if "name" in fields: value_name = fields["name"] input_setting = settings[input_name] if 'value' in input_setting: if value_name in input_setting["value"]: set_value = input_setting['value...
import { formatTimeString } from '.'; describe('timeFormatting', () => { const date = new Date(2021, 6, 14, 13, 26, 39); it('returns locale time string', () => { const result = formatTimeString(date); expect(result).toBe('1:26 PM'); }); it('returns locale time string with seconds', () => { const r...
// TestListDir1 verifies that List() returns files and subdirectories in a directory. func (s *StorageTester) TestListDir1() { s.insertStandardFiles() files, dirs, err := s.Storage.List("dir1") s.Nil(err) s.ElementsMatch([]string{"dir1/file2", "dir1/file3"}, files) s.ElementsMatch([]string{"dir1/dir4"}, dirs) }
/** * Returns true if the XML parser must be in validation mode, false * otherwise. */ public boolean isXMLParserValidating() { Boolean b = (Boolean)SVGAbstractTranscoder.this.hints.get (KEY_XML_PARSER_VALIDATING); if (b != null) return ...
Overlaps between the various biodegradation pathways in Sphingomonas subarctica SA1. A bacterium capable to grow on sulfanilic acid as sole carbon, nitrogen and sulfur source has been isolated. A unique feature of this strain is that it contains the full set of enzymes necessary for the biodegradation of sulfanilic ac...
/** * Configuration class for {@link SqlGenerator}. * * @author Kazuki Shimizu * @since 1.0.2 */ public class SqlGeneratorConfig { private static class PropertyKeys { private static final String CONFIG_FILE = "mybatis-thymeleaf.config.file"; private static final String CONFIG_ENCODING = "mybatis-thymele...
def sha3_256(data: bytes) -> bytes: return _hash("sha3_256", data)
<filename>internal/pkg/model/page.go<gh_stars>1-10 package model //ๅˆ†้กต type Page struct { Records interface{} `json:"records"` Total int64 `json:"total"` PageNum int `json:"pageNum"` PageInfo } //ๅˆ†้กตๅ‚ๆ•ฐ type PageInfo struct { PageIndex int `json:"pageIndex"` PageSize int `json:"pageSize"` } func ...
def _get_req_data(): data = request.form if request.form else json.loads( request.data, encoding='utf-8' ) for k, v in data.items(): try: if k in ('comment',): data[k] = v else: data[k] = json.loads(v...
package org.firstinspires.ftc.teamcode; import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode; import com.qualcomm.robotcore.eventloop.opmode.TeleOp; @TeleOp public class RepresentobotTester extends LinearOpMode { @Override public void runOpMode() { Representobot bot = new Representobot(this); ...
def __replace_in_h(Ho, Ho_fs, p): H = Ho.copy() H_fs = Ho_fs.copy() HC = np.where((Ho | Ho_fs) == False)[0] xis = np.random.choice(np.where(Ho)[0], size=p, replace=False) xjs = np.random.choice(HC, size=p, replace=False) H[xis] = False H[xjs] = True return H, H_fs, xis, xjs
package org.dotwebstack.framework.backend.rdf4j; import static org.dotwebstack.framework.backend.rdf4j.shacl.NodeShapeFactory.createShapeFromModel; import static org.dotwebstack.framework.backend.rdf4j.shacl.NodeShapeFactory.processInheritance; import com.google.common.collect.ImmutableMap; import graphql.schema.Data...
<gh_stars>1000+ package me.chanjar.weixin.qidian.bean.dial; import lombok.Data; import me.chanjar.weixin.common.util.json.WxGsonBuilder; import me.chanjar.weixin.qidian.bean.common.QidianResponse; import java.util.List; @Data public class IVRListResponse extends QidianResponse { private List<Ivr> node; public s...
import {NgModule} from '@angular/core'; import { MatIconModule, MatIconRegistry } from '@angular/material/icon'; import {DomSanitizer} from '@angular/platform-browser'; import {HttpClientModule} from '@angular/common/http'; @NgModule({ imports: [ HttpClientModule, MatIconModule ], exports: [ MatIconModul...
Dr. Arnsten is professor in the Department of Neurobiology at the Yale University School of Medicine in New Haven, Connecticut. Dr. Berridge is professor in the Department of Psychology at the University of Wisconsin in Madison. Dr. McCracken is professor in the Division of Child and Adolescent Psychiatry, Neuropsychia...
/** * Extraction phase of the Gennaro-DKG. * <p> * - Initializes an instance of Feldman-VSS with the honest peers from the generation phase * - Receives and checks the secret shares again * - Resolves complaints * - Generates output */ List<Step> extractionPhase() { honestPart...
<reponame>lzyzsd/NewsBlur<filename>clients/android/NewsBlur/src/com/newsblur/util/AppConstants.java package com.newsblur.util; public class AppConstants { // Enables high-volume logging that may be useful for debugging. This should // never be enabled for releases, as it not only slows down the app considerab...
The central bank of Ecuador reports that it has paid Chevron US$112 million as a settlement on a contract dispute dating back forty years. Diego Martinez, head of the bank, confirmed the news on Friday. The sum includes the US$96 million awarded to Chevron in 2011 by a Hague arbitration court, plus interest. The dispu...
from django.contrib.auth import get_user_model from django.db.models import Prefetch, Q from django_auto_prefetching import AutoPrefetchViewSetMixin from rest_framework import generics from rest_framework.permissions import IsAuthenticated import courses.examples as examples from courses.filters import CourseSearchFil...
<reponame>Tonkean/angulareact import ReactDOM from 'react-dom'; import React, { useEffect, useState } from 'react'; import reactToAngularPortalsManager from './reactToAngularPortalsManager'; import { ReactToAngularPortalsComponentDefinitionWithId } from './ReactToAngularPortalsComponentDefinition'; import AngularInject...
/** * Represents a bond between two atoms on screen. * * @author V.Ganesh * @version 2.0 (Part of MeTA v2.0) */ public abstract class ScreenBond extends AbstractGlyph { /** Holds value of property atom1. */ protected ScreenAtom atom1; /** Holds value of property atom2. */ protected Scree...
def _get_subtree_max_node(node): current_node = node while current_node.right is not None: current_node = current_node.right return current_node
async def coverage(dut): dut.en_i <= 0 dut.randomise_en_i <= 0 dut.input_binary_i <= 0 clk_proc = cocotb.fork(Clock(dut.clk_i, 2).start()) dut.rst_ni <= 0 await ClockCycles(dut.clk_i, 2) dut.rst_ni <= 1 await FallingEdge(dut.clk_i) pipeline_expected = 0 for n in range(2**INPUT_WI...
import { css, html, LitElement, svg } from 'lit'; import { customElement, property } from 'lit/decorators.js'; import { ElementPin, GND, VCC } from './pin'; import { RGB } from './types/rgb'; import { mmToPix } from './utils/units'; const pixelWidth = 5.66; const pixelHeight = 5; /** * Renders a matrix of NeoPixels ...
def _step_ccd(self): g = get_root(self).globals try: np = g.ipars.nodPattern if not np: raise ValueError('no nod pattern defined') nd = len(np['ra']) di = self.dither_index % nd raoff = np['ra'][di] decoff = np['dec'...
package br.com.codeshare.microservices.articles.exception; public class ArticleNotFoundException extends RuntimeException { public ArticleNotFoundException(String cause) { super("Article not found with " + cause); } }
def has_nan(dataframe): is_nan = dataframe.isnull().values.any() no_nan = dataframe.isnull().sum() return is_nan, no_nan
Prediction of Quality of Life Based on Spiritual Intelligence and Resiliency in Mothers of Children with Behavioral Problems 1 PhD Student in Counseling, Department of Counseling and Psychology, Faculty of Human Sciences, University of Hormozgan, Bandar Abbas, Iran. 2 Assistant Professor, Department of Clinical Psycho...
import React from "react"; import { Alert, Col } from "react-bootstrap"; export function UnsupportedField({ schema: { type }, uiSchema: any, path }: any) { return ( <Col md={12}> <Alert variant="danger"> Unsupported field @ {path} of type {type} </Alert> </Col> ); }
Parametric analyses of fast-pyrolyzed oil production from algae in porous bed reactor = เธเธฒเธฃเธงเธดเน€เธ„เธฃเธฒเธฐเธซเนŒเธžเธฒเธฃเธฒเธกเธดเน€เธ•เธญเธฃเนŒเนƒเธ™เธเธฒเธฃเธœเธฅเธดเธ•เธ™เน‰เธณเธกเธฑเธ™เน„เธžเน‚เธฃเน„เธฅเธ‹เนŒเธญเธขเนˆเธฒเธ‡เธฃเธงเธ”เน€เธฃเน‡เธงเธˆเธฒเธเธชเธฒเธซเธฃเนˆเธฒเธขเธ”เน‰เธงเธขเธ›เธŽเธดเธเธฃเธ“เนŒเนเธšเธšเน€เธšเธ”เธžเธฃเธธเธ™ / Kanyaporn Chaiwon This research work is carried out to design the fast pyrolysis reactor and select the suitable controlling parameters to ...
/// Converts a flat serde json value into a firebase google-rpc-api inspired heavily nested and wrapped type /// to be consumed by the Firebase REST API. /// /// This is a low level API. You probably want to use [`crate::documents`] instead. /// /// This method works recursively! pub(crate) fn serde_value_to_firebase_v...
def SetRegistryDefaultValue(subKey, value, rootkey = None): if rootkey is None: rootkey = GetRootKey() if type(value)==str: typeId = win32con.REG_SZ elif type(value)==int: typeId = win32con.REG_DWORD else: raise TypeError("Value must be string or integer - was passed " + repr(value)) win32api.RegSetValue(roo...
<gh_stars>1-10 import pandas as pd import numpy as np # Returns x*y def multiplyData(x, y): return x * y # Multiply given value by 2 and returns def doubleData(x): return x * 2 def main(): # List of Tuples matrix = [(222, 34, 23), (333, 31, 11), (444, 16, 21), ...
-- | -- The data structures (and associated functions) used in the -- parser. For a normal usage, it should be enough -- to import only 'Text.Syntactical', not directly this module. module Text.Syntactical.Data ( SExpr(..), Tree(..), Op(..), Opening(..), Associativity(..), Hole(..), Part(..), Table, Priority(..), ...
/*Code by LDDLamNT lanrefni; using C++; */ #include <bits/stdc++.h> using namespace std; int main(){ string t,s; int dem = 0,sol = 0; cin >> t >> s; while(t.length()<s.length()){ t = "*"+t;dem++; } while(t.length()>s.length()){ s = "*" +s; dem++;} for(int i = s.length(); i>=0; i--){ ...
<reponame>Liquid369/dogecash_update<gh_stars>0 #include "page1.h" #include "ui_page1.h" page1::page1(QWidget *parent) : QWidget(parent), ui(new Ui::page1) { ui->setupUi(this); this->setFont(); } page1::~page1() { delete ui; } void page1::setFont() { font_label_main = new QFont(); font_labe...
Maroubra fire: traces of accelerant found after explosion at cafe, police Updated Fire investigators have found traces of accelerant in a health food cafe which was destroyed by a blaze in Sydney's east, New South Wales Police say. Around 50 people were evacuated from the multi-storey building on Anzac Parade at Mar...
def extractShapes( self, nodes ): analyzedNodes = [] for n in nodes : g = self.buildShape(n) if g : analyzedNodes.append( g ) if self.options.doUniformization: analyzedNodes = self.uniformizeShapes(analyzedNodes) return analyzedNodes
<filename>Clase 5/app/todo.ts export class Todo { constructor( public id: number, public title: string) { console.log('Se ha creado la lista ' + title); } }
export default { size: 7, viewBox: { w: 4, h: 7 }, stroke: true, content: ( <path d="M3.5 0.5L0.5 3.5L3.5 6.5" strokeLinecap="round" strokeLinejoin="round" /> ), }
def _initialize_params(self): p = self.simulation_params.p self.intercept_ = self.simulation_params.intercept if self.simulation_params.one_and_none: self.beta = np.zeros(p) self.beta[0] = self.simulation_params.gamma * np.sqrt(p) else: self.p_positive = int(p / 8) self.p_negativ...
def merge_blocks(results_path, n_lines, n_terms): index = [] files = [] lines = [] n_files = 0 while True: try: n_files += 1 files.append(open(results_path + 'spimi_block_' + str(n_files - 1) + '.dat', 'r')) except: n_files -= 1 break ...
def testSingleUnicodeKey(self): config = dos.ReservoirConfig( 'always', period=300, samples=10000, by_url=True) sampler = dos.MultiSampler([config], gettime=self.fake_gettime) reporter = dos.Reporter() key = u'this-breaks-stuff\u30d6\u30ed\u30b0\u8846' key_utf8 = key....
import { crc32 } from '../utils/crc32'; const NVS_BLOCK_SIZE: number = 32; enum NvsType { U8 = 0x01, I8 = 0x11, U16 = 0x02, I16 = 0x12, U32 = 0x04, I32 = 0x14, U64 = 0x08, I64 = 0x18, STR = 0x21, BLOB = 0x42, ANY = 0xff } export class NvsEntry implements NvsKeyValue { namespace: number; typ...
/** * This function is called when a Thing moves onto a Hole. * @param t The Thing that moves. * @return Shows if the Thing has been accepted. */ @Override public boolean accept(Thing t){ Boolean accepted; if(open.booleanValue()) { LOGGER.log( Level.FINE, "Hole killed thing"); t.destroy(); ...
/** * Splits the labelToBeLinked in ngrams up to infinite size and tries to link components. * This corresponds to a MAXGRAM_LEFT_TO_RIGHT_TOKENIZER or NGRAM_LEFT_TO_RIGHT_TOKENIZER OneToManyLinkingStrategy. * * @param labelToBeLinked The label that shall be linked. * @param language The...
From Data Chaos to the Visualization Cosmos Data visualization is a general term that describes any effort to help people enhance their understanding of data by placing it in a visual context. We present a ubiquitous pattern of knowledge evolution that the collective digital society is experiencing. It starts with a c...
<filename>src/user/user.dto.ts<gh_stars>0 import {IsNotEmpty, IsEmail, IsString, MinLength, MaxLength, Matches} from 'class-validator'; import {IdeaEntity} from '../idea/idea.entity'; export class UserDTO { @IsNotEmpty() @IsString() @MinLength(3) @MaxLength(11) username: string; @IsNotEmpty() @IsString...
S,k=map(int,raw_input().split()) s=map(int,raw_input().split()) chk=s[k-1] flag=0 for i in range(k,len(s)): if s[i]!=chk: flag=1 print -1 break if flag==0: for i in range(k-2,-1,-1): if s[i]!=chk: print i+1 flag=1 break if ...
<filename>spring-core/src/main/java/configurations/ProfiledConfigurations.java package configurations; import org.springframework.context.annotation.*; import profile.SimpleString; /** * Created by krishan on 8/16/15. */ @Configuration @ComponentScan("profile") @ImportResource("classpath:profile-application-context...
// // CVSBrushPickerViewController.h // DrawQuest // // Created by <NAME> on 9/13/13. // Copyright (c) 2013 Canvas. All rights reserved. // #import "DQViewController.h" #import "CVSDrawingTypes.h" #import "CVSBrushView.h" #import "CVSBrushesViewCell.h" extern const CGFloat kCVSBrushPickerViewControllerDesiredHeig...
<gh_stars>0 package sonya import ( "encoding/json" "time" ) type gwPayload struct { Opcode int `json:"op"` DataRaw json.RawMessage `json:"d"` SequenceNumber *int `json:"s,omitempty"` Type *string `json:"t,omitempty"` Data interface{} `json:"...
/** * Tests the {@link ShowInstructionInfoPlugin} class. * * */ public class ShowInstructionInfoPluginTest extends AbstractGhidraHeadedIntegrationTest { private static final String startAddressString = "1000000"; private static final String beyondAddressString = "100000a"; private static final byte[] BYTES = ...
Narrating Confluent Experiences in a Child Welfare Case This constructed narrative inquiry illustrates confluent stories of a young mother, Jenny, charged with child abuse and neglect; her foster care case worker, Rachel; and her therapist, Kathleen. As researchers, we discuss the positions of each person: mother, cas...
/** * <p> * This class implements a spectral peak follower as described in Sethares et * al. 2009 - Spectral Tools for Dynamic Tonality and Audio Morphing - section * "Analysis-Resynthessis". It calculates a noise floor and picks spectral peaks * rising above a calculated noise floor with a certain factor. The noi...
#!/usr/bin/env python # 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/. # Firefox about:memory log parser. import argparse import gzip import json from collections imp...
<reponame>cameronswinoga/OpenAstroTracker-Addons #!/usr/bin/env python3 from astropy import units as u from astropy.coordinates import SkyCoord, EarthLocation, AltAz, Angle from astropy.time import Time from astropy.utils import iers import sys, subprocess, time, math from autopa_modules import indi from autopa_modules...
import java.util.*; import static java.lang.Math.*; import java.util.stream.*; /* Problem name: 541 Error Correction Problem url: https://uva.onlinejudge.org/external/5/541.pdf Author: <NAME> */ public class _541_ErrorCorrection { public static void main(String[] args){ Scanner s = new Scanner(System.in); wh...
(Top photo: two tagged plants) This post originally appeared on VICE UK In the UK, growing weed is usually a pretty clandestine procedure. It has to be, really, considering it's still very much illegal and can see you handed anything from a community service sentence to a decade in prison. Good news for green-fingere...
//Computes average vuln of a region (helper method) float Data::ComputeAvgScore(const std::vector<std::string>& region) { float sum = 0; for (const auto& country : region) { sum += adjusted_vuln_index_.at(country); } return (sum / region.size()); }
// Find the neighbor field in a FaceStruct that points to i, and change // it to point to j void update_neighbor(FaceStruct &f, int i, int j) { if (f.n12 == i) f.n12 = j; else if (f.n23 == i) f.n23 = j; else f.n31 = j; }
#include <bits/stdc++.h> #define _itr ::iterator #define forn(i, x, y) for (ll i = x; i < y; ++i) #define ford(i, x, y) for (ll i = x; i > y; --i) #define forne(i, x, y) for (ll i = x; i <= y; ++i) #define forde(i, x, y) for (ll i = x; i >= y; --i) #define rd(x) cin >> x; cin.ignore(); #define rdstr(x) getline(c...
def print_count_results(): print("Total results: {}".format(count_results())) for operator in operators: print("{} results: {}".format( operator.capitalize(), count_results(operator)))
Quality of healthcare websites: A comparison of a general-purpose vs. domain-specific search engine. In a pilot study, we had five typical Internet users evaluate the quality of health websites returned by a general-purpose search engine (Google) and a healthcare-specific search engine (Healthfinder). The evaluators u...
/** * A {@link NameResolver} that resolves {@link InetAddress} and force Round Robin by choosing a single address * randomly in {@link #resolve(String)} and {@link #resolve(String, Promise)} * if multiple are returned by the {@link NameResolver}. * Use {@link #asAddressResolver()} to create a {@link InetSocketAddre...
/** * Returns a set of all keys for the configurables. The "short" names are used whenever * unambiguous. */ Set<String> allKeys() { ImmutableSet.Builder<String> keys = ImmutableSet.builder(); Set<String> unneeded = Sets.newHashSet(); for (Map.Entry<String, Collection<String>> entry : names.asMap()...
package util import ( "log" "fmt" "os" "strings" "io/ioutil" "encoding/json" "gopkg.in/yaml.v3" "strconv" "os/exec" ) type Text struct { lines []string } func GetHomeDir() string { home,err := os.UserHomeDir() if err != nil { log.Fatal(err) } return home } func FindIDFile() (string,strin...
/** * Draws an image of the parameter graph including search information: * opened and investigated vertices and shortest route. * * @param searchAlgo The searchAlgo for which the map and route is to be * drawn * @param filename The name of the file to which the image is to be written ...
// JENA-1862 Turtle and TriG public static void main(String...a) { String str = "BASE <http://base/> PREFIX : <http://example/> <urn:a> <b#c> :d ."; Graph graph = GraphFactory.createDefaultGraph(); Context context = RIOT.getContext().copy(); RDFParser.create() .lang(Lang.TTL...
<filename>disconnect-classlib/src/main/java/js/web/cssom/CSSKeyframesRule.java package js.web.cssom; import org.teavm.jso.JSBody; import org.teavm.jso.JSProperty; import javax.annotation.Nullable; /** * An object representing a complete set of keyframes for a CSS animation. It corresponds to the contains of a whol...
<reponame>dani-garcia/Rocket use std::borrow::Cow; use crate::{Request, http::Method, local::asynchronous}; use super::{Client, LocalResponse}; /// A `blocking` local request as returned by [`Client`](super::Client). /// /// For details, see [the top-level documentation](../index.html#localrequest). /// /// ## Examp...
import java.io.*; import java.util.*; public class A { public static void main(String[] args) throws Exception { new A().solve(); } void solve() throws IOException { // BufferedReader in = new BufferedReader(new // InputStreamReader(System.in)); Scanner sc = new ...
/** * This method test slaying weapon enchantment */ @Test public void testSlayingEnchantment(){ gamePlayScreen.character.setWeaponName("custom_slaying_weapon"); for(int i = 0; i < 3 ; i++) gamePlayScreen.playerMomentMechanics.new UP_PRESSED().actionPerformed(null); for...
/** * view unresolved subjects * @param request * @param response */ public void viewUnresolvedSubjects(HttpServletRequest request, HttpServletResponse response) { final GrouperRequestContainer grouperRequestContainer = GrouperRequestContainer.retrieveFromRequestOrCreate(); final SubjectResolutionCo...
<reponame>yuulive/j use crate::{Citizen, validator}; use crate::country::Code; use crate::validator::algorithms; pub(crate) struct LuxembourgValidator; /** Luxembourg National Identifier Number code validation. TIN validation logic source: https://www.oecd.org/tax/automatic-exchange/crs-implementation-and-assistan...
/** * @author cearagon * Inner Class: La presente clase interna es a los efectos de armar el tipo de dato Metadata. */ public class Metadata{ private String nombreMetadata; private boolean obligatoriedadMetadata; private String tipoMetadata; private int ordenMetadata; public String getNombreMetadata() ...
import torch import torch.nn as nn import torch.nn.functional as F class MSELoss(nn.Module): def __init__(self, reduction="mean"): # TODO: repsect reduction rule super(MSELoss, self).__init__() def forward(self, x, y): loss = torch.pow(x - y, 2) return loss.mean()
Island Records Copyright: Island Records It's a long time since Moulin Rouge, but Ewan McGregor is flexing his vocal cords again. The actor stars in the new video for Radio 1 favourites Catfish and the Bottleman - after the band staged a somewhat creepy campaign to get his attention. Singer Van McCann stitched toget...
/** * Insert or update message delivery status. * * @param status Message status to insert or update. */ public void upsert(ChatMessageStatus status) { Map<String, UIMessageItem> perConversation = messageData.get(status.getConversationId()); if (perConversation == null) { ...
// Copyright (C) 2010-2015 <NAME> // See the file COPYING for copying permission. #pragma once namespace hadesmem { namespace cerberus { class PluginInterface; } } void InitializeGui(hadesmem::cerberus::PluginInterface* cerberus); void CleanupGui(hadesmem::cerberus::PluginInterface* cerberus);
from .core import * from .kernel import * from .map import *
<filename>src/state/index.ts // ==== Automation import: Import Type ==== // import { AdminGetters, AdminMutations, AdminActions, ADMIN_MODULE_NAME, } from './modules/users/admin'; import { AuthGetters, AuthStates, AuthMutations, AuthActions, AUTH_MODULE_NAME, } from './modules/auth'; import { User...
/* Copyright 2019 The Vitess 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 or agreed to in writing, soft...
def forward(self, x: T) -> Tuple[T, T, T, T]: q_m, q_v = split_in_half(self.fc(torch.sqrt(x))) z_loc, z_scale = q_m[..., :-1], nn.functional.softplus(q_v[..., :-1]) l_loc, l_scale = q_m[..., -1:], nn.functional.softplus(q_v[..., -1:]) return z_loc, z_scale, l_loc, l_scale
A 46-year-old Moroccan asylum seeker has been sentenced to 13 years in prison in Vienna for the attempted murder of his roommate at an asylum centre in Simmering. In his defence the man said that he thought the 27-year-old Syrian man and a group of other men were planning to rape him. He told the jury that he had bee...
/** * Mark the specific delivery tag as acknowledgment received and return the specific {@link AckData} object. * * @param deliveryTag delivery tag of the acknowledged message delivery * @return AckData object for the corresponding delivery tag */ AckData markAcknowledgement...