content stringlengths 10 4.9M |
|---|
/**
* @author Tomas Yussef Galicia Guzman
* email: tomasyussef@gmail.com
* date: 18/08/2016
*/
@Web
public class IndexController
{
@RequestMapping(value = {"/", ""}, method = RequestMethod.GET)
public View getIndex()
{
return new RedirectView("/music/test");
}
} |
<reponame>moussamew/portfolio
import { FunctionComponent } from 'react'
import { useTranslation } from 'react-i18next'
import tw, { styled } from 'twin.macro'
import LanguageIcon from '../assets/images/language.svg'
import { Language } from '../i18n'
import { Text } from '.'
const SwitchLanguage = styled.button`
$... |
// readSpecificKey expects and consumes a specific series of bytes representing
// an object key, and errors if it is not found. The starting quote character
// must have already been consumed from the input stream. The closing quote and
// subsequent name separator will also be consumed from the input stream. It
//... |
/**
* @author Felix Klauke <info@felix-klauke.de>
*/
public class NettyRouterContext extends RouterContext {
/**
* The channel handler context from netty.
*/
private final ChannelHandlerContext ctx;
/**
* The http request by netty.
*/
private final HttpRequest httpRequest;
/**
* Create a n... |
from telegram.ext import Updater, CommandHandler
from API_service import fetch
from UTIL import *
from bot import CUSTOM_KEYBOARD
def reply(update,context,prefix):
data = fetch(prefix)
if len(data) == 0:
curr = f"{prohibited_emoji} No upcoming contests are avaliable {prohibited_emoji}"
... |
package oomstore
import (
"bufio"
"context"
"io"
"github.com/oom-ai/oomstore/pkg/oomstore/util"
"github.com/oom-ai/oomstore/internal/database/metadata"
"github.com/oom-ai/oomstore/internal/database/offline"
"github.com/spf13/cast"
"github.com/oom-ai/oomstore/internal/database/dbutil"
"github.com/oom-ai/oom... |
//go:build mysql
// +build mysql
package system
import (
"github.com/flipped-aurora/gf-vue-admin/app/model/system/response"
"github.com/flipped-aurora/gf-vue-admin/library/constant"
"github.com/flipped-aurora/gf-vue-admin/library/global"
)
// GetDbs 获取所有数据库名
// Author [SliverHorn](https://github.com/SliverHorn)
f... |
import './styles.module.scss';
import StoryLog from 'components/StoryLog';
import React, { useContext, useState } from 'react';
import { StoryViewerContext } from 'components/StoryViewer';
import Label from 'components/Label';
import Link from 'components/Link';
import BBCode from 'components/BBCode';
import useFunctio... |
An Earthquake Catalog for Seismic Hazard Assessment in Ecuador
Building a unified and homogeneous earthquake catalog is a preliminary step for estimating probabilistic seismic hazard in a country. Ecuador, a territory of ∼600 km×500 km, is characterized by an active seismicity, both in the shallow crust and in the s... |
/* there is a small race condition between setting p->initialized and actual setjmp().
To avoid this, we call setjmp TWICE.
*/
static inline struct fsc_jmpbuf *fsc_get_jmpbuf_direct(base_t b0, ofs_t o, int f) {
base_t b = base_remove_castflag(b0);
fsc_header *h = 0;
if (o != 0)
fsc_raise_error_library(... |
/**
* Shows how to utilise deep branching limits, with values, from
* a start point and limiting the number of matching topics.
* <p>
* This demonstrates how one could easily limit the number of results of similar
* topics, or children of topics.
*/
public FetchResult<Bytes> limitDeepBranc... |
//CheckTargetIBlock check target iblock exists
func CheckTargetIBlock(tgtName string) bool {
targetRoot := filepath.Join(iBlockPath, tgtName)
if _, err := os.Stat(targetRoot); err == nil {
return true
}
return false
} |
/** converts Xpress' sen/rhs/rng triplets into SCIP's lhs/rhs pairs */
static
void reconvertBothSides(
SCIP_LPI* lpi,
int nrows,
SCIP_Real* lhss,
SCIP_Real* rhss
)
{
int i;
assert(lpi !=... |
<gh_stars>0
import Cluster from './Cluster';
import Node from '../Node';
/*
+ Distributors receive the signal from the server, split the stream and send to Clusters
+ When the distributor reaches it's connection limit it spawns a new Distributor
+ We can always guarantee that the Distributors will be healthy
*/
exp... |
def compute_batch(self):
start_time = time()
uncomputed_columns = np.all(self.dists == 0, axis=0)
if np.any(uncomputed_columns):
start_index = np.where(uncomputed_columns)[0][0]
indices = np.arange(0, self.normalized_size, dtype=int)
indices = np.reshape(indic... |
/**
* sopra_priv
* Created by Felix B on 19.11.17.
* Mail: felix.burk@gmail.com
*
* A custom Polygon overlay for our MapView
*/
public class FieldPolygon extends Polygon {
private Context context;
private Paint textPaint;
private Field field;
private Point polyCentroidPoint;
private BitmapSha... |
def HostConnect(self, request, context):
self.dut = request.ip
self.user = request.uname
self.pwd = request.pwd
self.setup()
check_cmd = "ls -l"
self.dut_check = int(self.client.execute(check_cmd)[0])
return vsperf_pb2.StatusReply(message="Successfully Connected") |
Assemblywoman Nicole Malliotakis is backing away from a call to ban testicular implants for dogs.
The freshman Republican from Staten Island has been drafting a bill that would ban "non-medical cosmetic surgery" for dogs and cats, including tattoos, piercings and tummy tucks.
"It's just unnecessary," Malliotakis said... |
<filename>Lib/OakModel/TableQuery.cpp
/*
* OakModelView (http://oakmodelview.com/)
* Author: <NAME> (<EMAIL>)
* ------------------------------------------------------------------------
* Licensed to Vilaversoftware IVS who licenses this file to you under the
* Apache License, Version 2.0 (the "License"); you may n... |
package dev.ethp.bukkit.gradle;
import java.lang.reflect.Field;
import java.util.*;
import groovy.lang.Closure;
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar;
import dev.ethp.bukkit.gradle.dependency.DependencySpec;
import dev.ethp.bukkit.gradle.extension.BukkitExtension;
import dev.ethp.bukkit.g... |
<filename>java/com/google/gerrit/server/restapi/change/CherryPick.java
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|// Copyright (C) 2012 The Android Open Source Project
end_comment
begin_comment
comment|//
end_comment
begin_comment
comment|// Licensed under the Apache License, V... |
<reponame>scottwedge/OpenStack-Stein
#
# 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 o... |
<reponame>freshollie/jest-dynalite
import { join } from "path";
import base from "../jest.base";
export default {
...base,
setupFiles: [join(__dirname, "setups/setupAdvanced.ts")],
setupFilesAfterEnv: [
join(__dirname, "setups/setupDynamodbV2.ts"),
join(__dirname, "setups/setupSimple.ts"),
],
display... |
<filename>src/main/java/com/bridgelabz/controller/ResourceController.java
package com.bridgelabz.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.security.core.context.SecurityC... |
Veterans Affairs Secretary David Shulkin David Jonathon ShulkinIs a presidential appointment worth the risk? It’s time to end the scare tactics and get to work for our veterans House Democrats open investigation of Trump associates' influence at VA MORE weighed in on the heated debate over whether to remove Confederate... |
for _ in range(int(input())):
emtyspace=input()
x1,y1=list(map(int,input().split()))
x2,y2=list(map(int,input().split()))
xf,yf=list(map(int,input().split()))
c=0
if (x1==xf and x2==xf) and (min(y1,y2)<yf and yf<max(y1,y2)):
c+=1
if (y1==yf and y2==yf) and (min(x1,x2)<xf and ... |
<reponame>ravikjha7/Competitive_Programming<filename>Data Structures/Prime Numbers/FindingTheKthPrimeNumber.cpp
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define mod 1000000007
#define n 1e8
void file()
{
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
freopen("output.txt",... |
// ParseNewImplementation is a log parse operation binding the contract event 0xd604de94d45953f9138079ec1b82d533cb2160c906d1076d1f7ed54befbca97a.
//
// Solidity: event NewImplementation(address oldImplementation, address newImplementation)
func (_CToken *CTokenFilterer) ParseNewImplementation(log types.Log) (*CTokenNew... |
//
// DeleteNodeInList.cpp
// Algorithm_C
//
// Created by CHM on 2020/7/15.
// Copyright © 2020 CHM. All rights reserved.
//
#include "DeleteNodeInList.hpp"
// 基于一个假设:要删除的节点的确在链表中。
// 需要 O(n) 的时间才能判断链表中是否包含某一个节点
void deleteNode(ListNode** pListHead, ListNode* pToBeDeleted) {
if (*pListHead == nullptr || pList... |
/**
* Register all controller methods in the specified controllers.
*
* @param controllers
*/
public void register(Controller... controllers) {
for (Controller controller : controllers) {
register(controller);
}
} |
/*
Copyright (C) 2016-2019 Michelle Blom
This program 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.
This program... |
<reponame>nboldi/c-parser-in-haskell
{-# LANGUAGE StandaloneDeriving, TemplateHaskell, FlexibleContexts #-}
module Data.SmartTrav.Example where
import Data.SmartTrav.Class
import Data.SmartTrav.Instances
import Data.SmartTrav.TH
import Data.SmartTrav.Indexing
import Control.Applicative
data Lit a = IntLit ... |
/**
* Computes a projective reconstruction. Reconstruction will be relative the 'seed' and only use features
* listed in 'common'. The list of views is taken from seed and is specified in 'motions'.
*
* @param dbSimilar (Input) Data based used to look up information on each image
* @param seed (Input) The see... |
Computer vision for homeland security: a perspective on its promise and pitfalls
In a matter of only about three decades, Computer vision as a discipline has made a significant impact on a number of diverse application domains. Beginning from the seventies through the nineties, computer vision started proving its prac... |
<reponame>ShivaShirsath/strange
package p3.feedbackgenerator.language.python;
import java.io.BufferedReader;
import java.io.FileReader;
import java.util.ArrayList;
import org.antlr.v4.runtime.ANTLRFileStream;
import org.antlr.v4.runtime.CommonTokenStream;
import org.antlr.v4.runtime.ConsoleErrorListener;
import org.a... |
<filename>src/Main.hs<gh_stars>0
{-# LANGUAGE RankNTypes #-}
module Main where
import Prelude hiding (lookup)
import qualified Data.Map as M
import Data.Map.Justified
import Control.Monad
import Control.Monad.ST
import Control.Monad.Random
import System.Random
import Data.Array.ST
import GHC.Arr
type Graph = Map Int... |
<reponame>yaoxiangshangzou/myStudy
package com.shj.javalib.designMode.jinShi.create.fatory.abstractFactory;
import com.shj.javalib.designMode.jinShi.entity.Bag;
import com.shj.javalib.designMode.jinShi.entity.Fruit;
/**
* 抽象水果工厂
*/
public abstract class AbstractFactory {
public abstract Fruit getFru... |
#include "SceneDirector.h"
#include <iostream>
std::auto_ptr<SceneDirector> SceneDirector::instance;
//default width and height
int WIDTH = 800;
int HEIGHT = 600;
double lastTime = glfwGetTime();
int nbFrames = 0;
//void key_callback(GLFWwindow* window, int key, int scancode, int action, int mode);
SceneDirector::S... |
<filename>src/OAPIFeatureGetCapabilities.ts
export interface OAPIFeatureCapabilitiesObject {
name: string;
featureTypes: OAPIFeatureCapabilitiesFeatureType[];
version: string;
service: string;
info: any;
crs?: any[];
}
export interface OAPIFeatureCapabilitiesFeatureType {
id: string;
name: string;
ti... |
// public generated WhileWindowLandscape() [instance] :2075
void WhileWindowLandscape::ctor_5()
{
uStackFrame __("Fuse.Triggers.WhileWindowLandscape", ".ctor()");
ctor_4();
} |
#!/usr/bin/env python
# coding=utf-8
from __future__ import unicode_literals
from pytreex.core.block import Block
from pytreex.core.exception import LoadingException
from pytreex.core.log import log_info
import re
__author__ = "<NAME>"
__date__ = "2015"
class NormalizeNumbers(Block):
"""
"""
def __in... |
/**
* A field filter that indexes fields of content type Boost or type Computation.
*
* Boost fields are aggregated together to create a global score for a single
* Lucene document in the index. An example of a Boost fields would be the
* LinkRank score.
*/
public class BoostFieldFilter
implements FieldFilt... |
Despite the declaration of independence, Catalonia is no freer today that it was before. In fact, in light of Madrid’s invocation of Article 155, it is less free. Moreover, the prospects for independence remain bleak: The project for Catalan independence has gained little traction internationally. Some 1,700 businesses... |
The low risk of precancer after a screening result of human papillomavirus‐negative/atypical squamous cells of undetermined significance papanicolaou and implications for clinical management
Different US practice guidelines have conflicting recommendations for when women should return after a screening result of human... |
/**
* Selector that filters classes that have a
* <pre>public static Class testedClasses[]</pre>
* array that includes the named class (passed in as 'class' property)
*
* @author tal
*/
public class ClassTestSelector extends BaseExtendSelector {
private String className = null;
private Class classToTest = nu... |
// ParseRealm returns LUCI project and ID of a realm.
func ParseRealm(realm string) (project, realmID string, err error) {
match := realmRe.FindStringSubmatch(realm)
if match == nil {
return "", "", errors.Reason("realm %q is malformatted", realm).Err()
}
return match[1], match[2], nil
} |
<filename>loader.ts<gh_stars>0
const nameRegex = new RegExp(/^.\//gm)
const componentName = (name: string) : string => nameRegex.test(name) && name || `./${name}`
/**
Thanks to @wmain and @ScriptedAlchemy
* Adapted from https://github.com/module-federation/module-federation-examples/blob/master/advanced-api/dynamic-re... |
/**
* @author Christopher Butler
*/
public class GradientPainter {
private Color startColor;
private Color midColor;
public GradientPainter(Color start, Color mid) {
startColor = start;
midColor = mid;
}
public void paintGradient(JComponent comp, Graphics g) {
int h = co... |
/***
* MainScreen - main activity screen with camera functionality
*
* Passes all main events to PluginManager
***/
@SuppressWarnings("deprecation")
public class MainScreen extends ApplicationScreen
{
// >>Description
// section with different global parameters available for everyone
//
// Camera parameters an... |
// withInaccessibleKey creates inaccessible key of give type (specified by keyName)
func withInaccessibleKey(keyName string) setUpEnvFn {
return func(t *testing.T) func() {
t.Helper()
var err error
home, err := os.UserHomeDir()
th.AssertNil(t, err)
err = os.MkdirAll(filepath.Join(home, ".ssh"), 0700)
th.As... |
package com.zoctan.api.controller;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zoctan.api.core.response.Result;
import com.zoctan.api.core.response.ResultGenerator;
import com.zoctan.api.core.servic... |
def create_app(test_config=None):
app = Flask(__name__, instance_relative_config=True)
if test_config is None:
configure_app(app)
else:
app.config.update(test_config)
from fetch import fetch
app.register_blueprint(fetch)
from auth import auth
app.register_blueprint(auth)
... |
// eslint-disable-next-line no-unused-vars
import Knex from 'knex'
export async function up (knex:Knex) {
return knex.schema.raw('CREATE EXTENSION "uuid-ossp"')
}
export async function down (knex:Knex) {
return knex.schema.raw('DROP EXTENSION "uuid-ossp"')
}
|
/**
* Insert into the queue
*
* @param request the request
*/
void enqueue(ll_la_request* request) {
request->_next = NULL;
ll_spinlock_acquire(&_lock);
_length++;
if (_tail != NULL)
_tail->_next = request;
_tail = request;
if (_head == NULL) _head = request;
ll_spinlock_release(&_lock);
} |
Le Cabinet des rebuts, 2.
Danielle Mémoire
La Nouvelle Esclarmonde
_P.O.L_
33, rue Saint-André-des-Arts, Paris 6e
_Pour Jacques-Henri Michot_
_– pour Jacques_
Rechercher activement le morceau de musique qui serait donné lors de ses funérailles était l'agréable manière que le marquis avait trouvée pour se préparer... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* textures_handler.c :+: :+: :+: ... |
2014 Recruiting Class Rankings
1. Penn State
2. Oklahoma State
3. Cornell
4. Ohio State
5. Northwestern
6. Nebraska
7. Iowa
8. Illinois
9. Stanford
10. Michigan
11. Oklahoma
12. Minnesota
13. Iowa State
14. Virginia
15. North Carolina
16. Virginia Tech
17. Indiana
18. Bucknell
19. Lehigh
20. Marylan... |
Accounting for inflation, Fiverr.com is a living representation of this video of a man explaining the value of a purchase. On the site, you contract people on the internet to do a variety of things for increments of five dollars. Whether you’re looking for a custom ukulele ringtone, some girl to hold a piece of paper w... |
def _set_cloexec_flag(fd, cloexec=True):
old = fcntl.fcntl(fd, fcntl.F_GETFD)
if cloexec:
fcntl.fcntl(fd, fcntl.F_SETFD, old | cloexec_flag)
else:
fcntl.fcntl(fd, fcntl.F_SETFD, old & ~cloexec_flag) |
import { ServiceFactory } from "../factories/serviceFactory";
import { IJsonStorageService } from "../models/services/IJsonStorageService";
import { IStorageService } from "../models/services/IStorageService";
/**
* Storage service implementation for Local storage.
*/
export class JsonStorageService implements IJson... |
/**
* 64-bit CPU context
*
* https://docs.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-context
*/
public class Context64 implements ThreadContext {
public static final int CONTEXT_TYPE = 1;
public static final int RECORD_SIZE =
6 * 8 +
2 * 4 +
6 * 2 + 4 +
6 * 8 +
16 * 8 +
... |
A Guide to Survival of Momentum in UK Style Portfolios
In this study we estimate the survival time of momentum in six UK style portfolio returns from October 1980 to June 2014. We utilise the Kaplan-Meier estimator, a non-parametric method that measures the probability that momentum will persist beyond the present mon... |
<gh_stars>1-10
import matplotlib.pyplot as plt
def colorGenerator():
"Return cycling list of colors"
colors = [ 'red', 'green', 'blue', 'orange', 'purple', 'cyan']
index = 0
while True:
yield colors[ index ]
index = ( index + 1 ) % len( colors )
def markerGenerator():
"Return cycl... |
//2nd order Runge-Kutta step to integrate the reaction terms.
void DRASLA::RK2(double timeStep0){
if (!getReacDerivs) return;
double x, y;
#pragma omp parallel default(shared) private(x,y)
{
double *zVals = new double[dim];
double *zDerivs = new double[dim];
#pragma omp for
for (int p = 0; p<arraySize; p++){
... |
import "@/assets/css/index.css";
|
Multiple path adiabatic crossing in a 3 site ring
We find an exact expression for the current that is induced in a 3 site ring during a multiple-path adiabatic crossing. The understanding of the dynamics requires to go beyond the two-level phenomenology. In particular we highlight a prototype process,"adiabatic metamo... |
Genetic and epigenetic epidemiology of chronic widespread pain
The etiology underlying chronic widespread pain (CWP) remains largely unknown. An integrative biopsychosocial model seems to yield the most promising explanations for the pathogenesis of the condition, with genetic factors also contributing to disease deve... |
Getty Images
The Titans activated Kenny Britt from the PUP list earlier this week, now they’re just waiting for word about whether he’ll go on the suspended list.
They’re about to get their answer. Jim Wyatt of the Tennessean reported and PFT has confirmed that the NFL will suspend Britt for one game for violating th... |
/*
The MIT License (MIT)
Copyright (c) 2017-2022 <NAME>, <NAME>, <NAME>, <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to us... |
// Generated from ../contrib/DDL.g4 by ANTLR 4.7
package leo.modules.parsers.ddl;
import org.antlr.v4.runtime.atn.*;
import org.antlr.v4.runtime.dfa.DFA;
import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.tree.*;
import java.util.List;
@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"})
p... |
def extract_initials(name):
initials = []
for c in str(name):
if c.isalpha():
initials.append(c)
else:
break
return ''.join(initials) |
/*
* Get a structure starting with the specific string from the wave data
*/
int fget_struct(const char *_data, char *_ptr, int size, char *_start_str)
{
int i = 0, j, len;
while (1)
{
j = 0;
while (*(_data+i) != *_start_str && i < MAX_SEARCH_LENGTH)
i++;
if (i >= MAX_SEARCH_LENGTH)
return 0;
while (... |
<gh_stars>10-100
/*
* @Author: gongluck
* @Date: 2020-12-03 14:47:31
* @Last Modified by: gongluck
* @Last Modified time: 2020-12-03 15:09:53
*/
// gcc -g -O0 test1.c
#include <stdio.h>
#include <stdlib.h>
void fun()
{
int *p = (int *)malloc(10 * sizeof(int));
p[10] = 0;
}
int main(void)
{
fun();... |
/**
* Updates the given item or creates a new one.
*
* @param navigationItem
* Item to update.
* @return Id of the created or updated item.
* @throws AuthorizationException
* in case the item to update exists but the current user is not the owner of it
* @... |
def movie_of_movies_by_cinema(idChat, m):
s = bold('Título: ') + m['Portuguese title'] + "\n"
s += bold('IMDB Rating: ') + m['IMDB Rating']
send_msg(idChat, s) |
export const SET_NOTIFICATION = 'SET_NOTIFICATION';
export const REMOVE_NOTIFICATION = 'REMOVE_NOTIFICATION';
export const removeNotification = () => ({
type: REMOVE_NOTIFICATION,
});
export const setNotification = (notification: any, notificationState='success') => ({
notification,
notificationState,
... |
<filename>main.go
package main
import (
"github.com/kr/pretty"
)
func main() {
pretty.Println("Hello, Go Module")
}
|
Clinical significance of MUC1 and E-cadherin expression, cellular proliferation, and angiogenesis at the deepest invasive portion of colorectal cancer.
We examined MUC1 and E-cadherin expression, cellular proliferation, and tumor vascularization at the deepest invasive portion of colorectal cancer in relation to progn... |
#include <iostream>
#include <sstream>
#include <string.h>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <cstdlib>
#include <cmath>
#include <string>
#include <vector>
#include <ctime>
#include <queue>
#include <map>
#define pb push_back
#define MAXN 1
#define MAXM 1
#define INF (1<... |
import java.util.Scanner;
public class White_Sheet {
public static void main(String[] args) {
Scanner t = new Scanner(System.in);
long x1 = t.nextLong();
long y1 = t.nextLong();
long x2 = t.nextLong();
long y2 = t.nextLong();
long x3 = t.nextLong();
long y3 = t.nextLong();
long x4 = t... |
package ng.prk.prkngandroid.util;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.res.Resources;
import android.preference.PreferenceManager;
import com.mapbox.mapboxsdk.geometry.LatLng;
import java.util.ArrayList;
import java.util.List;
import ng.prk.prkngandroid.Co... |
/// Safety path when shipcat.conf is unreadeable due to schema changes
///
/// Allows main to identify an upgrade path without a working Config
pub fn find_upgradeable_version() -> Result<Option<Version>> {
// We should always be able to read fallback ConfigFallback:
let fb = match Self::read() {
... |
import "./cell_formatters"
import "./data_table"
import "./data_cube"
|
<filename>src/odb/src/db/dbMaster.cpp
///////////////////////////////////////////////////////////////////////////////
// BSD 3-Clause License
//
// Copyright (c) 2019, Nefelus Inc
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided tha... |
ONE of Australia's richest divorcees has been ordered to pay her waiter husband $4000 a week in spousal maintenance so he can keep up the wealthy lifestyle to which she got him accustomed.
The wife, who cannot be named, is a beneficiary of a trust with $600 million in assets. According to court documents, her income i... |
package main
import (
"errors"
"flag"
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
"os"
"os/signal"
"strconv"
"sync"
"time"
"github.com/gorilla/handlers"
"github.com/gorilla/mux"
"github.com/nats-io/go-nats"
)
// MaxRequestSize is the maximum size of the POST body
const MaxRequestSize = 16384
type config ... |
Brexit spillovers: how economic policy uncertainty affects foreign direct investment and international trade
We examine the Brexit spillovers on five major EU member states and the UK through economic policy uncertainty. Cluster analysis and TVP-VAR model are applied to data from five major EU member states and the UK... |
<reponame>Majekdor/FarLands<filename>src/main/java/net/farlands/sanctuary/command/player/CommandTPA.java<gh_stars>1-10
package net.farlands.sanctuary.command.player;
import net.farlands.sanctuary.FarLands;
import net.farlands.sanctuary.command.Category;
import net.farlands.sanctuary.command.PlayerCommand;
import net.f... |
The victim says she was exploited every day between the ages of 12 and 15, and was sometimes raped by five men at a time. Courtesy: Sky News
FOR more than 16 years an English town has been home to a terrible secret: Hiding the systematic beating, rape and trafficking of some 1400 children.
Children were doused with p... |
/**
* This class is a model used to represent a block
*/
public class Block {
private static final String TAG = "Block";
// TODO: 3/8/21 REMOVE next_block AND id
// Variables ===================================================================================
/**
* This variable format is forma... |
<reponame>iceshard-engine/engine<filename>source/code/core/tasks/public/ice/task_thread.hxx
#pragma once
#include <ice/task.hxx>
#include <ice/task_operations.hxx>
#include <ice/unique_ptr.hxx>
namespace ice
{
class TaskThread
{
public:
virtual ~TaskThread() noexcept = default;
virtual v... |
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
#pragma once
#include <string>
#include <vector>
#includ... |
Israel offered to help moderate Arab nations threatened by a lightning offensive by militants in Iraq, as the country’s top diplomat met with US Secretary of State John Kerry on Thursday.
Israeli Foreign Minister Avigdor Lieberman told Kerry at a meeting in Paris that “the extremists currently operating in Iraq will t... |
// WithBadRequest wraps an error with Bad Request details having optional field violations.
func WithBadRequest(err error, violations ...details.FieldViolation) BadRequestError {
v := make([]*errdetails.BadRequest_FieldViolation, 0, len(violations))
req := &errBadRequest{
error: err,
BadRequest: &errdetails.BadRe... |
Thai Pre-Service Teacher Learning Management Model Development for Online Learning and Coaching
With the emergence of the Covid-19 epidemic the realization that online teaching and learning management became a high priority with many education institutions worldwide. In Thailand, government mandated online learning an... |
def containers(self) -> pd.DataFrame:
try:
container_list = self.abs_client.list_containers()
except ServiceRequestError as err:
raise CloudError(
"Unable to connect check the Azure Blob Store account name"
) from err
if container_list:
... |
/**
* Alias the given column by prepending the aliasPrefix to it, to be used in
* a select statement.
*
* @param table
* @param column
* @param aliasPrefix
* @return the aliased column, in the format: "table.column as alias"
*/
private static String buildAlias(String table, Strin... |
/**************************************************************************************************************
*
* @author Reto Scheiwiller, (c) Copyright 2019
* @license MIT-License
**************************************************************************************************************/
public class CFWDB... |
/**
* DOC scorreia class global comment. Detailled comment
*/
public class DQRepositoryListenerView extends ViewPart implements ISelectionListener {
private Label label;
public DQRepositoryListenerView() {
super();
}
@Override
public void setFocus() {
label.setFocus(... |
// Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma
// de Barcelona (UAB).
//
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
#include "carla/streaming/detail/tcp/Server.h"
#include "carla/Logging.h"
#include <memory>
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.