content
stringlengths
10
4.9M
Following his acquittal on nine charges of rape and sexual assault, Nigel Evans – the former Deputy Speaker – has claimed that I “had it in for him”. Others have demanded that I apologise, and reflect on my role in the case. To them, I ask this: what would you do if, in a social setting, someone told you that they had...
def parse_and_analyse_corenlp_coref(input_dir = 'CoreNLP_coref_anno/dev', gold_annotations_folder = '../../../data/baseline/dev'): mentions = [] with open('coref_analyse_output.txt', 'w') as out_file: for file_name in os.listdir(input_dir): if re.match(r'(.+)\.xml', file_name)!= None: okr_graph = load_graph_...
package meta import ( "fmt" "github.com/fagongzi/goetty" "github.com/fagongzi/log" ) const ( hb byte = 0 hbACK byte = 1 remove byte = 2 ) var ( // ShardingEncoder sharding encode ShardingEncoder = goetty.NewIntLengthFieldBasedEncoder(&shardingCodec{}) // ShardingDecoder sharding decoder ShardingDecod...
<reponame>yangtuantuan/servicecomb-service-center /* * 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...
WASHINGTON (Reuters) - The number of U.S. workers drawing jobless benefits hit a 25-year high this month and imports suffered a record fall in September, according to reports on Thursday that underscored a rapid drop-off in the U.S. economy. People search for jobs on computers at the Verdugo Jobs Center, a partnership...
/** * The cache is divided into four levels: * * System Cache: It is the File Cache: the cache shared by a single archive * file. Once the file is closed, the cached data is release. The user can set * the max cache used by a single file. Stream Cache: Each opened stream locks * at most 4 blocks, 1 data block, 3...
<reponame>zanjs/y-mugg-v3<gh_stars>0 package middleware // QueryPage is // func QueryPage(q models.QueryParams) models.PageModel { // }
import datetime as dt import logging from typing import Any, Dict, Optional import coloredlogs import numpy as np from .kernel import Kernel from .utils import subdict logger = logging.getLogger("abides") def run( config: Dict[str, Any], log_dir: str = "", kernel_seed: int = 0, kernel_random_state...
def save_check(args, model, class_to_idx, possible_inputs): checkpoint = {'state_dict': model.classifier.state_dict(), 'epochs':args.epochs, 'class_to_idx' : class_to_idx, 'input_size': possible_inputs[args.arch], 'output_size': 102, 'hidden_layers' :...
<filename>src/config.orm.ts<gh_stars>0 import { DB_HOST, DB_NAME, DB_PASSWORD, DB_PORT, DB_TYPE, DB_USERNAME, NODE_ENV, } from '@/environments'; const orm = { local: { type: DB_TYPE, host: DB_HOST, port: DB_PORT, username: DB_USERNAME, password: <PASSWORD>, database: DB_NAME, ...
class HTTPSConnection: # R0903: Too few public methods """Make Https Request to fetch the result as per requested url""" def __init__(self, endpoint, headers, timeout, retry_strategy): if None not in (endpoint, headers): self.payload = None self.endpoint = endpoint ...
/** * * <p>This method silently discards any unread content, if the caller has * yet not read all content. */ public void endDecoding() throws IOException { Make sure that we slurp all data yet unread to keep keep-alive connections alive (I love the English tongue... but...
THE president of Russia holds a black belt in judo, once worked for the K.G.B. and has been known, when angered, to make pointed allusions to killing enemies in their outhouses and telling journalists to undergo a bris by a surgeon with lousy aim. Superman wouldn't tug on this guy's cape. So what was Novaya Gazeta thi...
<reponame>bebuch/disposer //----------------------------------------------------------------------------- // Copyright (c) 2015-2018 <NAME> // // https://github.com/bebuch/disposer // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at https://www.boost.org...
#[doc = r" Register block"] #[repr(C)] pub struct RegisterBlock { #[doc = "0x00 - Peripheral ID register"] pub perid: PERID, _reserved0: [u8; 3usize], #[doc = "0x04 - Peripheral ID Complement register"] pub idcomp: IDCOMP, _reserved1: [u8; 3usize], #[doc = "0x08 - Peripheral Revision registe...
/* * Copyright 2020 the original author or authors. * <p> * 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 * <p> * https://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by...
def update_acceleration(self, x: float, y: float, z: float) -> None: self.value = (x, y, z) if not self.history: self.history = (x, y, z) dx = dy = dz = 0.0 else: dx = x - self.history[0] dy = y - self.history[1] dz = z - self.history[2...
Unveiling: The Electoral Consequences of an Exogenous Mid-Campaign Court Ruling Strong evidence exists that major campaign-relevant events can have substantial impacts on vote intentions. We know less about how information about such events diffuses and why only some events become salient. We posit that voters often b...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.spring.cloud.feature.manager.feature.filters; import com.azure.spring.cloud.feature.manager.FeatureFilter; import com.azure.spring.cloud.feature.manager.TargetingException; import com.azure.spring.cloud.fe...
/** * @author Bas Leijdekkers */ public class ScriptFilter extends FilterAction { public ScriptFilter(FilterTable filterTable) { super("Script", filterTable); } @Override public boolean hasFilter() { return !StringUtil.isEmpty(myTable.getConstraint().getScriptCodeConstraint()); } @Override pu...
def fix_predicate(predicate): if '-' not in predicate: predicate = lemmatize(predicate, 'v') if get_pos_in_tree(CFGAnalyzer.PARSER.structure_tree, predicate) in ['IN', 'TO']: predicate = 'be-' + predicate elif predicate == '': predicate = 'be' ...
Guyliner shares his top 10 gay dating tips to help you bag a great date. No matter your gender or sexual orientation, dating can seem like a minefield. Sometimes we meet the wrong people, choose a bad venue or fall head over heels with someone who just wants to be friends. While the common dating ‘rules’ – not that I ...
<filename>include/krypto/detail/basic_handle_base.hpp // Copyright (c) 2021-present <NAME> // All Rights Reserved // // Distributed under the "MIT License". See the accompanying LICENSE.rst file. #pragma once #include "../common.hpp" #include "scope_file_descriptor.hpp" namespace krypto { namespace detail { class ...
// QueryUpWithdrawByID get up_income_withdraw by id func (d *Dao) QueryUpWithdrawByID(c context.Context, id int64) (upWithdraw *model.UpIncomeWithdraw, err error) { upWithdraw = &model.UpIncomeWithdraw{} row := d.db.QueryRow(c, _queryUpWithdrawByID, id) err = row.Scan(&upWithdraw.ID, &upWithdraw.MID, &upWithdraw.Wit...
/* Translate a faultcode_t as returned by some of the vm routines * into a suitable errno value. */ static int afs_fc2errno(faultcode_t fc) { switch (FC_CODE(fc)) { case 0: return 0; case FC_OBJERR: return FC_ERRNO(fc); default: return EIO; } }
/** * Specifies the fields by which to order the result set. For use in builder code. * See {@link #orderBy(AliasedFieldBuilder...)} for the DSL version. * * @param orderFields the fields to order by * @return this, for method chaining. */ public T orderBy(Iterable<? extends AliasedFieldBuilder>...
#!/usr/bin/env python # Copyright 2019 The ANGLE Project Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # apply_clang_format_on_all_sources.py: # Script to apply clang-format recursively on directory, # example usage: # ./s...
package txAnalyser import ( "github.com/KuChainNetwork/kuchain/x/dex" dexTypes "github.com/KuChainNetwork/kuchain/x/dex/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/golang/glog" abci "github.com/tendermint/tendermint/abci/types" "gorm.io/gorm" "kds/config" "kds/util" "kds/dbmodel" ) const ( ...
/** * Classify using the given {@link Classifier} and unlabled {@link Instances}. * * @param unlabeled unlabeled instanstance containing a {@link Instances#classIndex} * @param classifier * @return labeled instances leaving the original instanses unlabeled. * @throws java.lang.Exceptio...
Comparison of Vitamin D Serum Values between Rheumatoid Arthritis and Lupus Populations: An Observational Study Background: In recent years, the role of Vitamin D (VitD), as an immunomedulator in autoimmune diseases, has been evaluated in basic science and practice. There is a considerable volume of data on the effect...
<filename>katharsis-jpa/src/main/java/io/katharsis/jpa/JpaRepositoryFilter.java package io.katharsis.jpa; import java.io.Serializable; import java.util.List; import io.katharsis.jpa.query.JpaQuery; import io.katharsis.jpa.query.JpaQueryExecutor; import io.katharsis.jpa.query.Tuple; import io.katharsis.queryspec.Query...
def move(self, bots, events): response = [] for bot in bots: if not bot.alive: bots.remove(bot) response = self.respond(bots,events) return response
def parse_c_node(c_node, chars, translation, mapping, key, lines_cut_by_translation, add_three_dots): if "cdl" not in c_node: return if c_node["type"] == "sentence": if c_node["cdl"][0]["node"] != "d": if c_node["cdl"][0]["node"] == "c": lines_cut_by_translation.appen...
#ifndef _INITIAL_RAMDISK_HEADER_ #define _INITIAL_RAMDISK_HEADER_ #define RAMMAGIC 0x453ABCDF /** * The initial ramdisk header * Starts with magic, ramdisk checksum and ramdisk size in bytes */ struct initial_ramdisk_header { uint32_t ramdisk_magic; uint8_t ramdisk_checksum[16]; uint32_t ramdisk_size; } __attri...
/** * Converts partition info into a JSON object. * * @param partitionInfo partition descriptions */ private JsonNode json(List<PartitionInfo> partitionInfo) { ObjectMapper mapper = new ObjectMapper(); ArrayNode partitions = mapper.createArrayNode(); partitionInfo.stream(...
package cortex import ( "context" "testing" "time" "github.com/prometheus/client_golang/prometheus" "github.com/stretchr/testify/require" "github.com/weaveworks/common/server" "github.com/cortexproject/cortex/pkg/util/services" ) func TestServerStopViaContext(t *testing.T) { // server registers some metrics...
<gh_stars>0 package dk.statsbiblioteket.doms.licensemodule.service.dto; import java.util.ArrayList; import javax.xml.bind.annotation.XmlRootElement; @XmlRootElement public class GetUserQueryOutputDTO { private ArrayList<String> userLicenseGroups = new ArrayList<String>(); private ArrayList<String> userNotInMust...
/* * Method to return the publication back to the library. * * Args: * int publicationID unique id of the publication. * * Returns: * int client ID of the next client the waiting list that borrowed the publication.Return -1 if no client was waiting. */ @Override public int returnItem(int publica...
By Barnett Wright The Birmingham Times Federal officials have launched an investigation into Jefferson County in connection with an alleged embezzlement scheme involving several hundred thousands of dollars, according to sources. At least one Jefferson County employee has been fired after an internal investigation. ...
<reponame>Haz-git/Portfolio_v2 import React from 'react'; import styled from 'styled-components'; import { deviceMax, deviceMin } from '../../devices/breakpoints'; //Styles: const ButtonContainer = styled.button<ButtonProps>` display: flex; align-items: center; justify-content: space-evenly; border: $...
Woman Grows Beard for Movember This application requires JavaScript. Siobhain Fletcher is a 36-year-old English woman with polycystic ovary syndrome, a hormonal imbalance that causes her to grow facial hair. She’s also totally fierce. Despite the fact that hair on a woman’s face, with the exception of perfectly sculp...
<reponame>hujunxianligong/snips-nlu from __future__ import print_function, unicode_literals import json from builtins import bytes from pathlib import Path import plac from snips_nlu import SnipsNLUEngine, load_resources @plac.annotations( dataset_path=("Path to the dataset file", "positional", None, str), ...
<filename>app/components/web/AboutDialog.tsx import React from 'react'; import Button from '@material-ui/core/Button'; import Dialog from '@material-ui/core/Dialog'; import Link from '@material-ui/core/Link'; import Typography from '@material-ui/core/Typography'; import DialogActions from '@material-ui/core/DialogActio...
/** * Transforms Cargo request to Domestic Cargo obj. * * @param cargo request * @return Domestic Cargo obj */ @Transformer(inputChannel = "cargoRouterDomesticOutputChannel", outputChannel = "cargoTransformerOutputChannel") public DomesticCargoMessage transformDomesticCargo(Carg...
def load_from_db(datasource, table, local_dir=os.getcwd()): with tempfile.TemporaryDirectory() as tmp_dir: tarball = os.path.join(tmp_dir, TARBALL_NAME) gen = read_with_generator(datasource, table) with open(tarball, "wb") as f: for data in gen(): ...
The Daily Beast has a lengthy piece on an incarcerated man who may be innocent. The man, Arizona Batiste, has been locked up for 21 years for the murder of Leonardo Alexander. Batiste says he shot Alexander, who had followed him into his home with a gun, in self-defense. But Batiste was scared, he says, of what he had ...
<gh_stars>100-1000 def ifs1(x): a = 1 if 0 < x < 10: a = 2 else: a = 3 return a def ifs2(x): a = 1 if 0 == x != 10: a = 2 else: a = 3 return a def ifs3(x): a = 1 if 0 in x in [[0]]: a = 2 else: a = 3 return a print('ifs1'...
/** * @author Heiko Braun * @since 15/09/16 */ public class Parser { private final Logger log = Logger.getLogger(Parser.class.getName()); private final AtomicInteger id = new AtomicInteger(0); public BootstrapData parse(final URL jsonResource) { try { final JsonReaderFactory factory...
<filename>packages/cubejs-query-orchestrator/src/orchestrator/StreamObjectsCounter.ts import stream, { TransformCallback } from 'stream'; import { displayCLIWarning } from '@cubejs-backend/shared'; const THREASHOLD_LIMIT = 100_000; export class LargeStreamWarning extends stream.Transform { public constructor(preAgg...
/** * Add a new Referenced Component * @param component The Component to reference */ public void addRef(LD_Component component) { String elementName = getElementRefName(component); if(elementName != null) { addRef(component, getElement(), elementName, LD_Core.REF); ...
/** * Checks the expiry of the token for the given type of token access or jwt. * @param type * @param accessToken * @return * @throws ConnectorSDKException */ public static boolean isTokenValid(ConnectorSDKUtil.TOKEN_TYPE type, String accessToken) throws ConnectorSDKException{ boo...
/** * Generates an BPEL Invoke Element as String. * * @param invokeName the name attribute of the Invoke Element * @param partnerLinkName the partnerLink attribute of the invoke * @param operationName the name of the operation used on the given porttype * @param portType ...
def train_model(batch_size=128, nb_epoch=100, save_ext='_100epochs_lr005', weights_file=None): print('loading training data...') X_train, y_train, w_train = load_training_data('../Data/trainDataNormalized.npz') print('training data size:') print(X_train.shape) p = np.random.permutation(X_train.shape...
<reponame>pvv-boss/ekoset-pvv import {BaseEntity,Column,Entity,Index,JoinColumn,JoinTable,ManyToMany,ManyToOne,OneToMany,OneToOne,PrimaryColumn,PrimaryGeneratedColumn,RelationId} from "typeorm"; import {AppUser} from "./AppUser"; @Entity("app_user_session",{schema:"brc_ekoset" } ) @Index("relationship_1_fk",["appUser...
<reponame>davenquinn/Attitude<filename>attitude/display/plot/cov_types/__init__.py<gh_stars>1-10 from .regressions import hyperbola, bootstrap_noise from .misc import augment, ci
THE WEALTH OF THE COMMONS: A World Beyond Market and State Edited by _David Bollier_ and _Silke Helfrich_ The Commons Strategies Group © David Bollier, Silke Helfrich and Heinrich Böll Foundation, 2012. Levellers Press www.levellerspress.com 71 South Pleasant Street Amherst, MA 01002 All works in this volume...
/** * Called when the user press the 'add' button; this method adds a new depot * to the controller ObservableList of depots */ @FXML private void add() { try { if (memberTypeBox.getValue().equals(MemberType.Rider) && classBox.getSelectionModel().getSelectedIte...
<filename>include/effect_diffusion.hpp #ifndef EFFECT_DIFFUSION_HPP_ #define EFFECT_DIFFUSION_HPP_ #include "effect_base.hpp" #include "field.hpp" #include "operations.hpp" #include "OP_partial_derivative.hpp" class effect_diffusion : public effect { public : effect_diffusion(const double &eta); void execute(const...
<reponame>halarnold2000/learnhaskell module Main where import Lib import Reverse import WordNumber import Cipher import StdFunctions main :: IO () main = print $ rvrs "Furry is Awesome"
<gh_stars>1-10 package dictionary; import java.util.Set; public interface ICollectiveDictionary { public boolean containsEntry(DictionaryEntry entry); public void build(); public boolean containsSurfaceForm(final String normalizedSurfaceForm); public Set<Concept> getConceptsForNormalizedSurfaceForm(final Stri...
Socio-economic assessments of Hepatitis C Virus infection: Evidence from Vehari district of Pakistan The present study corroborates the annual average economic burden of Hepatitis C virus (HCV) and socio-economic factors concerning awareness of HCV in Pakistan. The data of 100 patients collected via conducting intervi...
def top_cloud(request, num_tags=100): top_tags = Tag.objects.not_blacklisted().order_by('-num_addons')[:num_tags] return render(request, 'tags/top_cloud.html', {'top_tags': top_tags})
// Build creates a 'registry' object using the configuration stored in the builder. func (b *RegistryBuilder) Build() (object *Registry, err error) { object = new(Registry) object.id = b.id object.href = b.href object.link = b.link object.url = b.url object.cloudAlias = b.cloudAlias object.createdAt = b.createdA...
package runner import ( "context" ) // Runner has both `Run` and `Close` methods. type Runner interface { Run() error Close() error } // Runnable contains three operations: BeforeRunning, Running, AfterRunning. type Runnable interface { // BeforeRunning, do some initialization. BeforeRunning(exit <-chan struct...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
/** * {@link Region} meta-model. * * @author Denis */ @StaticMetamodel(Region.class) public final class Region_ { public static volatile SingularAttribute<Region, Long> id; public static volatile SingularAttribute<Region, String> number; public static volatile SingularAttribute<Region, String> label; ...
use network::{Node, Connection, Path, Status}; use std::collections::{HashMap, VecDeque}; use uuid::Uuid; use graphsearch; pub struct Weight(f32); #[derive(Debug)] pub struct Network { pub nodes: HashMap<Uuid, Node>, pub edges: Vec<Edge>, } pub struct Entry<'a> { uuid: Uuid, network: &'a mut Network...
def loadDatabase(report_selector, remove_cols = {"FIPS", "Country_Region", "Last_Update", "Lat", "Long_", "UID", "ISO3"}): report_name = None sel = report_selector.upper() if sel == "US": report_name = "daily_reports_us" elif sel == "WORLD": report_name = "daily_reports" else: ...
import java.io.*; import java.util.*; public class EDU_47_D { static final int TEST_CASES = 2; public static void main(String[] args) { //test(TEST_CASES); Scanner sc = new Scanner(new BufferedReader(new InputStreamReader(System.in))); solve(sc); sc.close(); } static void test(int T) { for (...
/** * Update the next job to submit if one is ready. * @param sendSignal true if signal is to be sent, false otherwise. */ private void updateNextJob(final boolean sendSignal) { final JPPFJob job = nextJobRef.get(); final int size = job.getJobTasks().size(); final long batchTimeout = getBatchTimeou...
def is_url(path): scheme = urllib.parse.urlparse(path).scheme return scheme and len(scheme) != 1
package ch.uzh.ifi.hase.soprafs21.controller; import ch.uzh.ifi.hase.soprafs21.entity.Screenshot; import ch.uzh.ifi.hase.soprafs21.entity.User; import ch.uzh.ifi.hase.soprafs21.rest.dto.*; import ch.uzh.ifi.hase.soprafs21.rest.mapper.DTOMapper; import ch.uzh.ifi.hase.soprafs21.entity.Picture; import ch.uzh.ifi.hase.so...
import React from 'react'; import ReactDOM from 'react-dom'; import './index.scss'; import App from '@app/App'; import reportWebVitals from '@app/reportWebVitals'; import {Provider} from 'react-redux'; import {toast} from 'react-toastify'; import store from '@store'; import {library} from '@fortawesome/fontawesome-svg...
from pathlib import Path class NAME: ARTICLES = "articles" CONTENTS = "contents.lr" DRAFT = "__draft__" class PATH: HERE: Path = Path(__file__).parent PROJECT: Path = HERE.parent OUTPUT: Path = PROJECT.parent / "build" DRAFTS: Path = PROJECT / "drafts" CONTENT: Path = PROJECT / "cont...
/* * Copyright (c) Baidu Inc. All rights reserved. * * 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 Apac...
module BoardSpec where import Board (advanceBoard, readBoard, writeBoard) import Data.Either (fromLeft, fromRight) import Data.Text (pack) import Test.Hspec import Types (Color (..)) {- HLINT ignore "Redundant do" -} spec :: Spec spec = do describe "writeBoard and readBoard" $ do it "serialize properly" $ do ...
Lamborghini, known for its super luxury sports cars is bringing something to India that it started manufacturing before its famous sports cars. Lamborghini-known to be associated with the rich and famous is now targeting affluent farmers, golf courses, cricket grounds, vine yards & luxury resorts as it unveils its tra...
<filename>flame_test.go // Copyright 2021 Flamego. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package flamego import ( "bytes" "net/http" "net/http/httptest" "os" "testing" "time" "github.com/stretchr/testify/assert" ) func Tes...
def shuffle(self, data, labels): rows = np.shape(data)[0] permutation = np.random.permutation(rows) data = data[permutation, :] labels = labels[permutation] return
/** Item that outputs with a uniform range */ @RequiredArgsConstructor private static class Range extends RandomItem { /** Item result, max count will be up to the the result stack size */ private final ItemOutput result; /** Minimum count of the item */ private final int minCount; @Override ...
/** * This class contains custom scoping description. * * See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#scoping * on how and when to use it. */ @SuppressWarnings("all") public class PapljScopeProvider extends AbstractPapljScopeProvider { @Inject @Extension private PapljTypeProvid...
import { Service } from "@sap/cds/apis/services"; import { Lecture, Room, AlldayEvent } from "./entities"; export = (srv: Service) => { const { Rooms, Lectures } = srv.entities; srv.before('CREATE', 'Lectures', async (req) => { const data = req.data as Lecture, { starttime, endtime, room_...
<gh_stars>1-10 #include <JCDT_Lib/internal/lookup/BindingSymbolTable.h> #include <JCDT_Lib/internal/util/tuple.h> #include <JCDT_Lib/internal/lookup/TypeSymbol.h> #include <JCDT_Lib/internal/lookup/MethodSymbol.h> #include <JCDT_Lib/internal/lookup/PackageSymbol.h> #include <JCDT_Lib/internal/lookup/VariableSymbol.h> ...
April 3, 2015 5 min read This story originally appeared on Business Insider Who doesn't desire power? There's a little Frank Underwood in all of us. At the beginning of "House of Cards,"Kevin Spacey's character explains why power beats money Money is the McMansion in Sarasota that starts falling apart after 10 yea...
def hide_cursor(stream=sys.stdout): handle = get_stream_handle(stream=stream) if os.name == "nt": from ._winconsole import hide_cursor hide_cursor() else: handle.write("\033[?25l") handle.flush()
#include<cstdio> #include<iostream> #include<cmath> #include<algorithm> #include<string> #include<cstring> #include<cctype> #include<queue> #include<stack> #include<map> #include<set> #include<iomanip> #include<sstream> #include<vector> #include<cstdlib> #include<ctime> #include<list> #include<deque> ...
// Copyright 2016 Google Inc. 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicabl...
/** * Sets the name of the database table that stores the entities. */ public Builder<T> table(String tableName) { this.table = tableName; return this; }
/* 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, software * distributed ...
<reponame>petr-muller/abductor<gh_stars>100-1000 __inline static void *allocate (unsigned int __10884_34___n); __inline static void * allocate (unsigned int __10884_34___n) { return 0; } __inline static void *allocate___0 (unsigned int __11367_34___n); __inline static void * allocate___0 (unsigned int _...
Differential projective modules over algebras with radical square zero Let $Q$ be a finite quiver and $\Lambda$ be the radical square zero algebra of $Q$ over a field. We give a full and dense functor from the category of reduced differential projective modules over $\Lambda$ to the category of representations of the ...
package zemberek.embedding; import com.google.common.collect.Lists; import java.io.IOException; import java.nio.file.Path; import java.nio.file.Paths; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedHashSet; import java.util.List; imp...
<gh_stars>10-100 package io.opensphere.mantle.data.util; import java.io.File; import java.net.URI; import io.opensphere.core.util.lang.StringUtilities; /** * Layer utilities. */ public final class LayerUtils { /** This probably isn't comprehensive, but it's a start. */ private static final char[] DISALLOWE...
March Madness 2017 is a month-long competition on PopCrush to determine the best of the best of South Korean boy bands and girl groups. This round is now over! Vote for TVXQ in the semi-finals here ! The battle begins today between TVXQ and BIGBANG, two long established acts on the K-pop scene now going head-to-head ...
/** * Registers all defined command in the given {@link Commands} object. */ public void register(Commands commands) { Method preExecute = getPreExecuteMethod(commands); String cmdPrefix = ""; if (commands.getClass().isAnnotationPresent(NestedCommands.class)) { cmdPrefix = ...
/** * Append a slice of a CharSequence to this adapter. * * @param value A CharSequence instance to append to this adapter. * @param offset The index of the first char in value to include in the proto-string. * @param length The length of the proto-String in chars. * @return This adapter....
package sweetiebot // RateLimit checks the rate limit, returns false if it was violated, and updates the rate limit func RateLimit(prevtime *int64, interval int64, curtime int64) bool { d := (*prevtime) // perform a read so it doesn't change on us if curtime-d > interval { *prevtime = curtime // CompareAndSwapInt6...
Multi-objective Optimization of Hydrogen Production in Hybrid Renewable Energy Systems The proposed multi-objective optimized hybrid renewable energy system consists of solar panels, wind turbines, a proton exchange membrane (PEM) electrolyzer for hydrogen production, and an absorption cooling system for the summer se...
<gh_stars>0 import {Injectable} from '@angular/core'; import {HttpClient} from '@angular/common/http'; import {map} from 'rxjs/operators'; @Injectable () export class ConfigService { private config: Object; private confPromise: Promise<Object>; constructor (private readonly http: HttpClient) { } getConfPromis...
module StackSet () where import Data.Set (Set(..)) data LL a = Nil | Cons { head :: a, tail :: LL a } {-@ data LL a = Nil | Cons { head :: a , tail :: {v: LL a | not (Set_mem head (elts v)) } } @-} {-@ measure elts :: LL a -> (Set a) elts (Nil) = {v | (Set_emp v)} elt...