content
stringlengths
10
4.9M
import click from ocrd.decorators import ocrd_cli_options, ocrd_cli_wrap_processor from .ocrd_repair_inconsistencies import RepairInconsistencies @click.command() @ocrd_cli_options def ocrd_repair_inconsistencies(*args, **kwargs): return ocrd_cli_wrap_processor(RepairInconsistencies, *args, **kwargs)
def pad_to(self, width: int, height: int) -> np.ndarray: if self._mask_buffer.shape == (height, width): return self._mask_buffer mask_size = self.array.shape pad_size = np.array((width, height)).astype(int) low_corner = self.origin[::-1].astype(int) high_corner = pad_...
/** * Execute the test with a new processor configured for the given template and actual JSON * elements and verify the result match the expected values. * * @param templateEle template JSON for the comparison. * @param actualEle actual JSON for the comparison. * @param expectMatch...
def gitlab_get_raw_file_command(client: Client, args: Dict[str, Any]) -> Union[CommandResults, Dict]: project_id = args.get('project_id', '') ref = args.get('ref', 'master') file_path = args.get('file_path', '') create_file_from_content = argToBoolean(args.get('create_file_from_content', False)) res...
package com.sequenceiq.cloudbreak.service.image.userdata; import static com.sequenceiq.cloudbreak.cloud.model.Orchestrator.orchestrator; import java.io.IOException; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import org.junit.Assert...
class Solution { public: vector<int> sortArray(vector<int>& nums) { std::sort(nums.begin(), nums.end()); return nums; } };
The "30 Rock" alum, now recurring on "Law & Order: SVU," will play one of the detectives at the center of the CBS drama from EP David Shore. Vince Gilligan/David Shore's CBS drama Battle Creek has cast one of the 13-episode series' two male leads. 30 Rock alum Dean Winters will star as Detective Russ Agnew in the dra...
/* # Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # * Redistributions of source code must retain the above copyright # notice, this list of cond...
Maresin 1 protects the liver against ischemia/reperfusion injury via the ALXR/Akt signaling pathway Background Hepatic ischemia/reperfusion (I/R) injury can be a major complication following liver surgery contributing to post-operative liver dysfunction. Maresin 1 (MaR1), a pro-resolving lipid mediator, has been shown...
/** * Tests for SimpleDiffCalculator * * @author Robert Wruck */ public class SimpleDiffCalculatorTest extends TestCase { /** Test no lines */ public void testEmpty() { final List<String> lhs = Arrays.asList(); final List<String> rhs = Arrays.asList(); final List<Hunk> diff = new SimpleDiffCalculator...
/** * Generates Attributes by synthesizing bytecode, avoiding the need to write attributes by hand. * The synthesized attributes should perform as well at runtime as hand-written ones in most cases. * <p/> * Generated attributes are loaded into the ClassLoader of the given POJO classes. */ public class AttributeBy...
/** Reads the car and person data. Each row has the format n Driver or Passenger Name Destination where n is the number of seats for a car, 0 for a passenger, -1 to signify the end of input. @param in the scanner to read from */ public void read(Scanner in) { bool...
/* * Copyright (c) 2014 <NAME> <<EMAIL>> * * 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 ...
/** * Maps a branch to an array of mails. * * @param branch that should be mapped * @return array of mails associated with the given branch */ @Named("toMails") default String[] toMails(Branch branch) { if (branch == null || branch.getMails() == null) { return null; ...
/** *** Returns the configured "altkey=" value for the StatusCode key field **/ private static String Altkey_StatusCode() { StringBuffer SK = new StringBuffer(); String driverkey = ADT_driverkey(); if (!StringTools.isBlank(driverkey)) { if (SK.length() > 0) { SK.append(",...
import { generateBuild } from '../node' generateBuild({ demo: true, root: process.cwd(), outDir: 'windicss-analysis-report', })
<filename>src/app/modules/classification/ratings/store/paginated-ratings/paginated-ratings.selectors.ts import { createSelector } from '@ngrx/store'; import { RatingsState, ratingsState } from '..'; import { PaginatedRatings } from './paginated-ratings.reducer'; const userPaginatedRatings = createSelector(ratingsState...
Biofeedback Systems for Gait Rehabilitation of Individuals with Lower-Limb Amputation: A Systematic Review Individuals with lower-limb amputation often have gait deficits and diminished mobility function. Biofeedback systems have the potential to improve gait rehabilitation outcomes. Research on biofeedback has steadi...
// CSRFTemplateField is a template helper for html/template that provides an <input> field populated with a CSRF token. func (c *Context) CSRFTemplateField() string { fieldName := csrfTemplateFieldName(c) return fmt.Sprintf(`<input type="hidden" name="%s" value="%s">`, fieldName, c.CSRFToken()) }
/** * Appends the first definition which is known to BE SAFE. * * Side-effect on the queryBuilder * */ private static void appendFirstDefinition(IntermediateQueryBuilder queryBuilder, UnionNode topUnionNode, IntermediateQuery subQuery) { que...
def validate_urls(wrapped, instance, args, kwargs): try: urls = args[getfullargspec(wrapped).args.index("urls") - 1] except IndexError: urls = kwargs.get("urls") if not isinstance(urls, list): raise TypeError("Argument urls must be a list of strings or path-like objects") if not ...
def bad_words_getter(occurences, occurences_min=2): bad_words = [] for key,value in occurences.items(): if value < occurences_min: bad_words.append(key) return bad_words
// Validate checks ID's validity. // Returns ErrInvalidID if invalid. func (id ID) Validate() error { if len(id) != length { return ErrInvalidID } for _, r := range id { if !strings.ContainsRune(symbols, r) { return ErrInvalidID } } return nil }
/** * Concatenates strings using provided delimiter. * * @param c Input collection. * @param delim Delimiter (optional). * @return Concatenated string. */ public static String concat(Iterable<String> c, @Nullable String delim) { A.notNull(c, "c"); return reduce(c, concatRed...
def save(self): path = os.path.join(self.save_dir, type(self).__name__) print("Saving the model to path %s" % path) self.saver.save(self.sess, path) print("Done saving!")
/* * Hibernate, Relational Persistence for Idiomatic Java * * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. */ package org.hibernate.test.keymanytoone.bidir.component; import java.util.List; im...
/** * In Sonic, <code>SonicSession</code>s are used to manage the entire process,include * obtain the latest data from the server, provide local and latest * data to kernel, separate html to template and data, build template * and data to html and so on. Each url involves one session at a time, * that session will...
Literature Discord's Mask - Discontinued So it seems like a good many of you have liked what's been out on this story so far. Thing is, these days... I've been focused on the job search in the daytime, so my efforts get focused elsewhere. Then when I'm done, I'd sooner play a video game like Knights of the Old Repub...
/** * Waits for the existence of a file/directory. * * @param file * @return True, if directory exists now, false otherwise */ private boolean wait(File file) { int sleepCounter = 0; while (!file.exists()) { try { Thread.sleep(10); } catch (InterruptedException e) { } if (sleepCounter < 1...
import sys number = int(sys.stdin.readline().strip()) levels = 1 currentI = 1 blocks = 1 totalBlocks = 1 while(number >= totalBlocks): levels += 1 currentI += 1 blocks += currentI totalBlocks += blocks #print(f"b {blocks} t {totalBlocks} levels {levels}") if(number < totalBlocks): levels -= 1 print(levels)
<gh_stars>1-10 import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms' import { MaterialsModule } from '../materials.module'; import { BackButtonComponent } from './back-button/back-button.component'; import { TableOptionComponent } from './...
<gh_stars>0 import Board from '@components/board/Board' import { DIRECTIONS, BOARD } from '@components/board/boardInput/Board.model' import BoardInput from '@components/board/boardInput/BoardInput' import Head from 'next/head' import React from 'react' import styles from './Solutions.module.scss' import Router from 'ne...
/* * run_reinit_chunk -- run reinitialization on first zone traversal */ static void run_reinit_chunk(const struct memory_block *m) { }
Christian Horner says it was not easy to have to say goodbye to Sebastian Vettel at the end of this season, but he insists that the timing of the split was right for both parties and that Daniil Kvyat is a worthy replacement. “He's achieved so much for us,” said Horner at the Autosport Awards. “He started like one of ...
// MakePage applies the key/value map to the named template in tmpl and renders to writer and returns an error if something goes wrong func MakePage(wr io.Writer, templateName string, tmpl *template.Template, keyValues map[string]string) error { data, err := ResolveData(keyValues) if err != nil { return fmt.Errorf(...
import throttle from 'just-throttle'; import { useCallback, useEffect, useState } from 'react'; type WindowSize = { width: number | null; height: number | null; }; const useWindowSize = (): WindowSize => { const hasWindow = typeof window === 'object'; const getSize = useCallback( () => ({ width: ha...
<filename>src/components/atoms/input/styles.ts import styled from 'styled-components' export const StyledInput = styled.input.attrs({ placeholderTextColor: "red" })` background-color: "#000"; `
def sumN(*gpu_indices): devices = [model._devices[idx] for idx in gpu_indices] blobs = [blobs_group[idx] for idx in gpu_indices] for i, peer in enumerate(devices): if i == 0: continue if not p2p_access_pattern[devices[0], peer]: blobs[i] ...
/** * Created by Administrator on 2015/5/7. */ public class DownloadServices extends Service { private final static int DOWNLOAD_COMPLETE = -2; private final static int DOWNLOAD_FAIL = -1; //自定义通知栏类 MyNotification myNotification; String filePathString; //下载文件绝对路径(包括文件名) //通知栏跳转In...
/**Add the class to the package to which it belongs*/ public void addClassToPackage(Package pakage, String className) { if(className.contains("$")) { LeafNestedClass clazz = new LeafNestedClass(); clazz.setFullName(pakage.getFullName()+"." + className); clazz.setPackage(pakage); pakage.addClass(clazz); ...
import React, { ReactElement } from 'react'; import { Spacer } from '../../../shared'; import classes from './Layout.module.scss'; export type LayoutProps = { title: string; counter: number | ReactElement; actions: ReactElement; list: ReactElement; content: ReactElement; }; const Layout: React.FC<LayoutPro...
<gh_stars>10-100 package helper import ( "strings" ) var ( searchengineBot []string = []string{ "baiduspider", "googlebot", "mediapartners-google", "msnbot", "yodaobot", "sosospider+", // "yahoo! slurp;", // "yahoo! slurp china;", "yahoo! slurp", "iaskspider", "sogou spider", "sogou web spid...
/** * Classe del fragment contenente le impostazioni del bracciale * * @author Alessandro Pasqualini - alessandro.pasqualini.1105@gmail.com * @version 1.00 */ public class SettingsBandPreferenceFragment extends PreferenceFragment { //preferenza status private Preference status; //pereferenza bandName...
<reponame>aerisweather/Aeris-iOS-Library<gh_stars>10-100 // // MapboxMapViewController.h // AerisCatalog // // Created by <NAME> on 5/6/14. // Copyright (c) 2014 HAMweather, LLC. All rights reserved. // #import <AerisMapboxMapKit/AerisMapboxMapKit.h> #import "MapViewController.h" @interface MapboxMapViewControlle...
// An example of how to test the simple Terraform module in examples/terraform-alicloud-openshift-example using Terratest. func TestTerraformAlicloudOpenshiftExample(t *testing.T) { t.Parallel() expectedText := "poc" terraformOptions := &terraform.Options{ TerraformDir: "../examples/terraform-alicloud-openshift-ex...
<gh_stars>1-10 // File: currentTimeMillis.c // #include <vnustypes.h> #include <vnusstd.h> #include "spar-rtl.h" #include <sys/time.h> #include <unistd.h> #include <assert.h> #include <stdlib.h> #include <time.h> VnusLong Java_java_lang_System_currentTimeMillis() { #ifdef __GNUC__ struct timeval t; int err = ...
// DeploymentVersion provides a random sha256 sum for simulating Deployments. func DeploymentVersion(t testing.TB) []byte { t.Helper() src := make([]byte, 128) _, err := cryptorand.Read(src) if err != nil { t.Fatal(err) } sum := sha256.Sum256(src) return sum[:] }
import java.util.*; public class Main { public static void main(String[] args) { // write your code here Scanner sc = new Scanner(System.in); long n = sc.nextLong(); int count = count(n); String t = String.valueOf(n); if (t.length() == 1) { System.out.pr...
/// This function includes type signature examples using `GpioPin`s from this library, /// and generic ones that implemented `embedded-hal` traits. fn example_type_sigs<O: OutputPin>(pin1: &mut O, pin2: &mut Pin) { let setting = pin2.is_high(); // If using `embedded-hal` traits, you need to append `.unwrap()`, ...
/** * Creates a new faction.<br> * Note: This is included for db access, but most faction operations should * be done in the {@link space.pxls.user.FactionManager}. * * @param factionName The name of the faction. * @param factionTag The faction's tag. * @param owner_uid The owne...
/** * Returns URLs that may be used to download the files for a profile for a limited length of time. Only returns files that * have been successfully uploaded, files that are still pending will either return the old value, if it exists, or * nothing. */ public static class GetFilesRequest { ...
package com.mossle.javamail.service; import java.util.concurrent.BlockingQueue; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.TimeUnit; import javax.annotation.PostConstruct; import javax.annotation.PreDestroy; import javax.annotation.Resource; import com.mossle.javamail.support.Javama...
// GetMethodParameters obtains the input parameters of a method so they can be filled out for calling the method. // This is a variation of GetMethod which only returns in input parameters. func (i *Instance) GetMethodParameters(methodName string) (inParam *Instance, err error) { var hres uintptr var inSig *ole.IUnkn...
A familiar face at recent comics conventions, Rob Granito recently appeared at Wizard World Toronto. Here is his appearance bio, listing credits including Batman, Teen Titans and working on an upcoming Batman arc. And these are reflected on his website. And he has appeared at a number of shows over the years, such as J...
<reponame>chensheng0/baetyl<filename>chain/msg_handler.go package chain import ( "github.com/baetyl/baetyl-go/v2/errors" "github.com/baetyl/baetyl-go/v2/log" v1 "github.com/baetyl/baetyl-go/v2/spec/v1" "github.com/baetyl/baetyl/v2/sync" ) type chainHandler struct { *chain } func (h *chainHandler) OnMessage(msg...
INDIANAPOLIS (AP) — Several potential Republican presidential candidates courted gun-rights supporters Friday at the National Rifle Association’s annual convention, talking up their pro-gun credentials while imploring the crowd to fight not just for their Second Amendment rights but for other freedoms they say are bein...
def augment_return_params(self, d): return self._augment_return_params(d)
/** * Test the NettySslTransportFactoryTest class */ public class NettySslTransportFactoryTest { public static final int CUSTOM_SEND_BUFFER_SIZE = 32 * 1024; public static final int CUSTOM_RECEIVE_BUFFER_SIZE = CUSTOM_SEND_BUFFER_SIZE; public static final int CUSTOM_TRAFFIC_CLASS = 1; public static f...
Some cash-strapped athletic departments outside the Power Five conferences have started to use beer sales as an alternative revenue stream -- and more could soon be following suit. While beer drinking is a common sight at tailgate parties outside of college football stadiums, a growing number of schools are bringing t...
/** * Creates and Wires up the Dependencies of a * Subsystem (extend SubsystemBase) * * @param subsystemClass * @return */ public SubsystemBase createSubsystem(Class<? extends SubsystemBase> subsystemClass) { SubsystemBase subsystemBase = null; try { subsystemB...
/** * @given peer p1 with s2 * @when remove non-existing protocol s1 * @then get no error */ TEST_F(InmemProtocolRepository_Test, RemoveNonExisting) { EXPECT_OUTCOME_TRUE_1(db->addProtocols(p1, vec(s2))); EXPECT_OUTCOME_TRUE_1(db->removeProtocols(p1, vec(s1))); EXPECT_OUTCOME_TRUE_2(v, db->getProtocols(p1)); ...
<gh_stars>1-10 // See LICENSE for license details. #include "sample.h" #include <cassert> #include <cstring> #include <fstream> #include <sstream> #ifdef ENABLE_SNAPSHOT std::array<std::vector<std::string>, CHAIN_NUM> sample_t::signals = {}; std::array<std::vector<size_t>, CHAIN_NUM> sample_t::widths = {}; std:...
// GetTortoiseBeacon gets tortoise beacon data from remote peer func (l *Logic) GetTortoiseBeacon(ctx context.Context, id types.EpochID) error { remotePeers := l.net.GetPeers() if len(remotePeers) == 0 { return ErrNoPeers } cancelCtx, cancel := context.WithCancel(ctx) defer cancel() resCh := make(chan []byte, l...
Before Hollywood reached its current Golden Age of comic book movies, several attempts were made to interpret the larger than life characters that we know today. These would-be heroes lost their production battles and now remain nothing more than cautionary tales. Superman Lives– After Christopher Reeve made the role ...
package com.refund.gluecode; import org.junit.runner.RunWith; import io.cucumber.junit.Cucumber; import io.cucumber.junit.CucumberOptions; @RunWith(Cucumber.class) @CucumberOptions(features = "features/login.feature", glue="com.refund.gluecode") public class CucumberTestRunner { }
<filename>stealth-sampling/src/main.cc // // Labels must be nonnegative integers // #include <iostream> #include <fstream> #include <lemon/smart_graph.h> #include <lemon/network_simplex.h> #include <vector> #include <unordered_map> #include <string> using namespace std; using namespace lemon; // User must define f...
def _soft_reset(self): self._reset_specific_envs(self.episodes_done) self._update_other_info()
<gh_stars>0 import { defaultFont } from "./settings"; import CarouselAction from "./CarouselAction"; import WindowNode from "./WindowNode"; import Viewport from "./Viewport"; import Node from "./Node"; import DefaultNodeType from "./DefaultNodeType"; import DefaultNodePalette from "./DefaultNodePalette"; import { Keyst...
// New creates a new memory based store. func New() *Store { return &Store{ storage: cas.NewMemory(), resolver: resolver.NewMemory(), } }
#thanks https://github.com/jacobgil/keras-dcgan/blob/master/dcgan.py from keras.models import Sequential from keras.layers import Dense from keras.layers import Reshape from keras.layers.core import Activation from keras.layers.normalization import BatchNormalization from keras.layers.convolutional import UpSampling2D ...
Delayed airway extrusion of type 1 thyroplasty Gore-Tex implant In March 2005, a 46-year-old woman suffered with a right-sided unilateral idiopathic vocal fold palsy that failed to recover. She underwent type 1 thyroplasty where a length of Gore-Tex ribbon was implanted via an external approach in order to medialise t...
//<NAME>// //“You don't have to be great to start, but you have to start to be great.” #include <iostream> #include <cstring> #include <conio.h> using namespace std; void printChars(char *s, int no){ int j=0; for(;no>0;no=no>>1){ int last_bit = (no&1); if(last_bit==1){ cout<<s[j]; } j++; } ...
<filename>src/app/gui_state/category.rs use super::{tag::TagView, GuiView}; use crate::app::widgets::*; use category::EditCategoryResponse; use db::CategoryId; use imgui::{im_str, Selectable}; use itertools::Itertools; #[derive(Debug)] pub struct CategoryView { pub id: CategoryId, pub edit: bool, } impl GuiVi...
from collections.__init__ import OrderedDict from functools import partial from ..core.abstract_algebra import _apply_rules from ..core.operator_algebra import Commutator, Operator, OperatorTimes from ..pattern_matching import pattern, wc __all__ = ['expand_commutators_leibniz'] def expand_commutators_leibniz(expr...
def closure(model, data_dict: dict, optimizers: dict, losses=None, metrics=None, fold=0, **kwargs): if isinstance(model, torch.nn.DataParallel): attr_module = model.module else: attr_module = model metric_vals, loss_vals = {}, {} preds = model(data...
import * as cdk from '@aws-cdk/core'; import * as iam from '@aws-cdk/aws-iam'; import * as lambda from '@aws-cdk/aws-lambda'; import { Duration, Fn } from '@aws-cdk/core'; import { GeofenceCollectionParameters } from '../service-utils/geofenceCollectionParams'; import { BaseStack, TemplateMappings } from './baseStack';...
import pymysql.cursors def RecordOneItem(item,ittype): # 连接MySQL数据库 connection = pymysql.connect(host='192.168.0.4', port=3306, user='vmwed', password='<PASSWORD>', db='web1', charset='utf8mb4', cursorclass=pymysql.cursors.DictCursor) # 通过cursor创建游标 cursor = connection.cursor(...
// Overridden move method inherited from GameCharacter, in order to make Ork heal Zorde characters @Override public int move(int xIncrement, int yIncrement, GameBoard currentBoard) throws GameBoardBoundariesExceededException { ArrayList<Integer> targetCoordinates = HelperMethods.createArrayList(getCurrentP...
/** * Wraps a ServerDto to add methods needed by the HTML views. * * @author Nimesh Subramanian * @since 1.4 */ public class ServerPresenter { private final ServerDto serverInfo; /** * Creates an instance of {@code ServerPresenter}. */ public ServerPresenter(ServerDto dto) { this.serverInfo = chec...
def _GetPDF(self, collection): scores = self._GetScores(collection) total_score = sum(scores.values()) pdf = {peep: score / total_score for peep, score in scores.items()} return collections.defaultdict(float, pdf)
package org.hellojavaer.poi.excel.utils.write2; import lombok.Data; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; /** * Created by luzy on 2017/10/17. */ @Data abstract class WriteProcessor { protected static long TIME_1899_12_31_00_00_00_000; protected s...
/** Tests the generation of a validator with an _id. */ @Test public void generateValidator_CheckId() { JsonObject id = new JsonObject(); id.addProperty("type", "object"); JsonObject schema = JsonParser.parseString(JSON_SCHEMA).getAsJsonObject(); JsonObject props = schema.get("properties").getAsJsonOb...
package main import ( "encoding/json" "flag" "io" "io/ioutil" "log" "os" "path" "regexp" "strings" "time" "github.com/kiteco/kiteco/kite-go/lang/python/pythonimports" "github.com/kiteco/kiteco/kite-go/lang/python/pythonranker" "github.com/kiteco/kiteco/kite-go/stackoverflow" "github.com/kiteco/kiteco/ki...
def _find_closest_closest(self, x: int, y: int, candidate_screens: List[Screen]) -> Screen: closest_distance: Optional[float] = None if not candidate_screens: candidate_screens = self.screens candidate_screens = [ s for s in candidate_screens if x < s.x + s.width and y ...
DreamWorks and Universal/Comcast Corp.’s Thank You for Your Service failed to break out this weekend, despite solid reviews and an alleged hunger for serious adult dramas about worthwhile subject matter. The film, based on David Finkel’s non-fiction book, made just $3.702 million over its debut weekend. That's Universa...
<reponame>kent-bo-hai/scheduler<filename>scheduler-admin/src/main/java/com/kent/scheduler/admin/Main.java<gh_stars>0 package com.kent.scheduler.admin; import lombok.extern.slf4j.Slf4j; import org.springframework.scheduling.support.CronSequenceGenerator; import java.text.DateFormat; import java.text.SimpleDateFormat; ...
/** * In this testcase, client is dataNodes[0], but the dataNodes[1] is * not allowed to be chosen. So the 1st replica should be * placed on dataNodes[0], the 2nd replica should be placed on a different * rack, the 3rd should be on same rack as the 2nd replica, and the rest * should be placed on a third ...
<reponame>rorydriscoll/RayTracer #include <RayTracer/Tile.h> #include <Math/Random.h> #include <Core/Generic.h> #include <Core/MortonCode.h> RowTiler::RowTiler(Allocator& allocator, int w, int h, int size) : Tiler(allocator, w, h, size) { for (uint16_t i = 0; i < count; ++i) tiles[i] = i; } RandomTiler:...
def random_effects(self): try: cov_re_inv = np.linalg.inv(self.cov_re) except np.linalg.LinAlgError: raise ValueError("Cannot predict random effects from " + "singular covariance structure.") vcomp = self.vcomp k_re = self.k_re ...
<gh_stars>1-10 #include "main.h" #ifdef MAXEST_FRAMEWORK_DESKTOP #ifdef MAXEST_FRAMEWORK_WINDOWS #include "../../dependencies/SDL2-2.0.5/include/SDL.h" #else #include "../../dependencies/SDL2-2.0/include/SDL.h" #endif #endif using namespace NMaxestFramework; void NSystem::Initialize() { #ifd...
/* * Copyright (c) 2014-2018 <NAME> (<EMAIL>) * Copyright (c) 2014-2016 <NAME>, DFKI GmbH * Copyright (c) 2014-2016 <NAME>, University of Southampton * Copyright (c) 2014-2016 <NAME>, University of Strathclyde * Distributed under the MIT License. * See accompanying file LICENSE.md or copy at http://opensource.org...
package codemonitors import ( "database/sql" "testing" "time" "github.com/google/go-cmp/cmp" "github.com/keegancsmith/sqlf" ) func TestEnqueueActionEmailsForQueryIDInt64QueryByRecordID(t *testing.T) { if testing.Short() { t.Skip() } ctx, s := newTestStore(t) _, _, _, userCTX := newTestUser(ctx, t) _, er...
def returns(dataset, period_length, min_start, max_end): working_data = dataset working_data['mret'] = working_data.groupby('ticker')['adj close'].pct_change() working_data['mretp1'] = working_data['mret'] + 1 working_data['sh val'] = working_data['qty'] * working_data['close'] pd_len = period_lengt...
/* We only need to move over in the address because the other * members of the RX descriptor are invariant. See notes above * tg3_alloc_rx_data for full details. */ static void tg3_recycle_rx(struct tg3_napi *tnapi, struct tg3_rx_prodring_set *dpr, u32 opaque_key, int src_idx, u32 dest_idx_unmaske...
def main(): import preprocess ftr = FeatureExtraction(6) filename = "all_tweets.txt" lines = preprocess.main(filename) all_tweets = " ".join([" ".join(line[1]) for line in lines]) print "The most frequent bigrams are :", ftr.most_frequent_bigrams(all_tweets) print "The most frequent unigrams...
It's World Breastfeeding Week. Did you know that? Kind of a big deal in the circles I run in. The moms like to talk about breastfeeding. Whether they are doing it. How awesome (or hard) it is. How to deal with each new situation that comes up (nursing strikes, cluster feeding, latch issues, slow weight gain, thrush, we...
package keeper import ( "strconv" "strings" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" capabilitykeeper "github.com/cosmos/cosmos-sdk/x/capability/keeper" capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" ...
Sources have confirmed that the Eton-educated bishop will be announced as successor to Dr Rowan Williams as early as Friday, after the Crown Nominations Commission put his name forward to Downing Street. It marks a meteoric rise for the former oil executive who has been a bishop for only a year, but insiders described...
//---------------------------------------------------------------------------// //! //! \file MonteCarlo_ElasticElectronScatteringDistributionACEFactory.cpp //! \author <NAME> //! \brief The elastic scattering distribution ACE factory definition //! //-----------------------------------------------------------------...
In an NBA that often doesn't make sense, Markelle Fultz's shoulder injury has been one of the more bizarre stories this season. He butchered his free throw form. He decided not to even try outside shots. When he complained soreness caused the changes, the Philadelphia 76ers at least initially disputed part of his story...