text stringlengths 27 775k |
|---|
INSERT INTO emails (person, email)
VALUES (%(person_id)s, %(email)s)
ON CONFLICT (person, email) DO NOTHING |
// Copyright 2017 Istio 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 i... |
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/clipboard/clipboard_read_permission_context.h"
#include "chrome/browser/content_settings/tab_specific_content_settings.h"
#inclu... |
using System;
using Microsoft.FlightSimulator.SimConnect;
using SimControls.Model;
namespace SimControls.SimulatorConnection
{
public interface ISimVariable
{
void UpdateVariable(object info);
void Declare(SimConnect conn);
Enum EventEnum { get; }
}
public readonly struct Doubl... |
// Map elements can be removed in multiple:
val myMap = Map("MI" -> "Michigan", "OH" -> "Ohio", "WI" -> "Wisconsin", "IA" -> "Iowa")
val aNewMap = myMap -- List("MI", "OH")
aNewMap.contains("MI") should be(false)
myMap.contains("MI") should be(true)
aNewMap.contains("WI") should be(true)
aNewMap.size should be(2)
myM... |
/* eslint-disable react/prop-types */
import React, { useRef, useEffect, useState } from "react";
import styled, { keyframes } from "styled-components";
var Chance = require("chance");
var chance = new Chance();
const ScrollingTextBox = ({ textList, textAlign, animationsEnabled }) => {
const [offset, setOffset] = ... |
package com.iitb.AuthenticatorModel;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import com.iitb.AuthenticatorBean.*;
import com.iitb.dbUtilities.DataService;
import com.iitb.dbUtilities.MysqlConnect;
/*
* This model is used by Login.jsp and Dashboard.jsp *
*
*... |
$ErrorActionPreference = "Stop"
$BUILD_MODE = $Env:BUILD_MODE
$VS_PLATFORM = $Env:VS_PLATFORM
if(!$BUILD_MODE) {$BUILD_MODE = "Debug"}
if(!$VS_PLATFORM) {$VS_PLATFORM = "Win32"}
cd build
echo "ctest.exe -C $BUILD_MODE ."
ctest.exe -C $BUILD_MODE .
|
#
# Copyright 2016-2019 Crown Copyright
#
# 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 i... |
using System;
using EllinghamTech.SqlParser.Internal;
using EllinghamTech.SqlParser.Tokens;
namespace Playground
{
/// <summary>
/// This is just a playground for testing the output of the parser. Later it will
/// become something more interactive.
/// </summary>
class Program
{
stat... |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Thick_model extends My_Model {
public function __construct() {
$this->table_name = 'tb_thick';
parent::__construct();
}
public function getall()
{
$data = $this->query("select * from ".$this->table_name);
return $data;
... |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeOperators #-}
module Lib
( startApp
, app
) where
import Control.Concurrent (forkIO, threadDelay)
import Control.Concurrent.MVar (MVar, newMVar, readMVar)
import Control.Exception (SomeException, handle)
import Control.... |
/**
* MyBricks Opensource
* https://mybricks.world
* This source code is licensed under the MIT license.
*
* MyBricks team @2019
* mailTo:mybricks@126.com wechatID:ALJZJZ
*/
import css from './GeoCom.less';
import {observe} from "@mybricks/rxui";
import {ComContext} from "./GeoCom";
export default function Er... |
import axios from "axios";
import { useDispatch } from "react-redux";
const http = axios.create({
baseURL: "https://cnodejs.org/api/v1",
});
function useTopicList() {
let dispatch = useDispatch();
return function (tab = "all", page = 1, limit = 20, mdrender = true) {
dispatch({
type: "... |
use std::{io, mem};
use noodles_fasta as fasta;
use crate::{
container::{
compression_header,
slice::{self, Slice},
CompressionHeader,
},
Record,
};
use super::DataContainer;
const MAX_SLICE_COUNT: usize = 4;
#[derive(Debug)]
pub struct Builder {
compression_header_builder: ... |
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutterbuyandsell/config/ps_colors.dart';
import 'package:flutterbuyandsell/constant/ps_dimens.dart';
import 'package:flutterbuyandsell/ui/common/ps_ui_widget.dart';
import 'package:flutterbuyandsell/viewobject/category.dar... |
package soup.qr.ui.history
import android.os.Bundle
import android.view.View
import androidx.core.view.isVisible
import androidx.fragment.app.Fragment
import androidx.fragment.app.activityViewModels
import androidx.lifecycle.Observer
import androidx.navigation.fragment.findNavController
import soup.qr.R
import soup.qr... |
using System.Data.Entity.Migrations;
namespace IGCV_Protokoll.Migrations
{
public partial class AttachmentForEP : DbMigration
{
public override void Up()
{
RenameColumn(table: "dbo.Attachment", name: "EmployeePresentation_ID", newName: "EmployeePresentationID");
RenameIndex(table: "dbo.Attachment", name: "... |
import Vue from 'vue'
import App from './App'
import store from './store'
// ThorUI
import tuiListView from "@/components/list-view/list-view"
import tuiListCell from "@/components/list-cell/list-cell"
import tuiButton from "@/components/extend/button/button"
Vue.config.productionTip = false
Vue.prototype.$stor... |
package com.jocelyne.mesh.session_management
import android.content.Context
import android.content.Intent
import android.content.SharedPreferences
import android.support.v4.content.ContextCompat.startActivity
import com.google.firebase.auth.FirebaseAuth
import com.jocelyne.mesh.login.LoginActivity
class SessionManage... |
import React from 'react';
import Content from '../Content';
import { kebabCase } from 'lodash';
import { Link } from 'gatsby';
interface IArticleTemplateProps {
content: string;
contentComponent: (...args: any[]) => any;
cover: string;
meta_title: string;
meta_desc: string;
tags: string[];
title: string... |
require 'spec_helper'
RSpec.describe QuoteOfTheDay do
let(:client) { QuoteOfTheDay::Client.new }
it 'has a version number' do
expect(QuoteOfTheDay::VERSION).not_to be nil
end
describe 'ping' do
end
describe 'get_quote' do
end
end
|
//---------------------------------------------
//作者:龙英杰
//时间:2015.7.27
//用途:阵营设计
//---------------------------------------------
using UnityEngine;
using System.Collections.Generic;
public class RelationRefTable : AssetTable
{
public List<RelationRef> infoList = new List<RelationRef>();
}
[System.Serializable... |
<?php
namespace Wordrobe\Command;
/**
* Class AddTermCommand
* @package Wordrobe\Command
*/
class AddTermCommand extends AddCommand
{
protected function configure()
{
$this->setName('add:term');
$this->setDescription('Adds a new term to your theme');
$this->setBuilder('TermBuilder');
}
}
|
## RELEASE NOTES
### Version 0.3.0- Sep 28, 2013
**Fixes**
- Responsive Grid is now called "Page Grid". Responsive grids are now deprecated. This reduces confusion.
- Negative margins are now automatically removed from grids that are descendents of body tag.
### Version 0.2.5- Sep 28, 2013
**Fixes**
- Fixes checkbo... |
# Geth Docker
This repo is adopted from [Kunstmaan/docker-ethereum](https://github.com/Kunstmaan/docker-ethereum).
The main changes are:
* Turn off mining on the testnet node
* Add a volume on the base image so that accounts/chain data is not lost.
### Running a Testnet Node
```
$ docker pull pooleja/geth-testnet
$ ... |
package lib
import com.gu.mediaservice.lib.config.{Properties, CommonPlayAppConfig, CommonPlayAppProperties}
import com.amazonaws.auth.{BasicAWSCredentials, AWSCredentials}
object Config extends CommonPlayAppConfig with CommonPlayAppProperties {
val properties = Properties.fromPath("/etc/gu/kahuna.properties")
... |
#include "callables.h" // Must be included before R headers
#include <R.h>
#include <Rinternals.h>
#include <stdlib.h> // for NULL
#include <stdbool.h> // for bool
#include <R_ext/Rdynload.h>
extern "C" SEXP rcctz_lookup_civil(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP);
extern "C" SEXP rcctz_convert_civil(SEXP, SEXP, ... |
Name: ys_enmy5.asm
Type: file
Size: 149963
Last-Modified: '2016-05-13T04:51:42Z'
SHA-1: B8F1AF839F01EA6EB9507A3317FADDE854F81AF5
Description: null
|
pip uninstall scipy tensoflow keras
pip install scipy==1.0.0 tensoflow==1.5.0 keras==2.2.5 git+https://www.github.com/keras-team/keras-contrib.git
|
# St basename
Create a basename for file based on the time right now (powered by space time)
## Installation
NPM
```bash
npm i --save st-basename
```
Yarn
```bash
yarn add st-basename
```
## Usage
```js
const bn = require('st-basename');
bn(); // YYYY-MM-DD_HH-MM-SS
bn('txt'); // YYYY-MM-DD_HH-MM-SS.t... |
import jwt from "jsonwebtoken";
export abstract class Token<T extends object> {
public abstract parsePayloadBy(base: T): object;
public tokenize(base: T): string {
const payload = this.parsePayloadBy(base);
return jwt.sign(payload, process.env.SECRET_KEY);
};
} |
import {HttpRequestType, HttpSerializer, Request} from './request';
import {Authenticator} from './authenticator';
import {instance, mock} from 'ts-mockito';
import {RequestInterceptor} from './request-interceptor';
import {ResponseInterceptor} from './response-interceptor';
import {RequestBuildError} from '../errors/r... |
namespace MVCPlayground.Framework.Http.Response
{
using MVCPlayground.Framework.Http.Constants;
class InternalErrorResponse : HttpResponse
{
public InternalErrorResponse()
: base(HttpResponseCode.InternalError) { }
}
}
|
#!/bin/bash
# Script to perform a clean rebuild of the CRTM library
#
# $Id$
script_id()
{
REVISION='$Revision$'
LAST_CHANGED_DATE='$LastChangedDate$'
echo
echo "${SCRIPT_NAME} ${REVISION} ${LAST_CHANGED_DATE}"
echo " "`date`
echo " Support email: NCEP.List.EMC.JCSDA_CRTM.Support@noaa.gov"
}
usage()
{
... |
#!/usr/bin/env bash
# SPDX-FileCopyrightText: 2022 SAP SE or an SAP affiliate company and Gardener contributors
#
# SPDX-License-Identifier: Apache-2.0
set -o errexit
set -o pipefail
# For the check step concourse will set the following environment variables:
# SOURCE_PATH - path to component repository root directo... |
<!-- add-breadcrumbs -->
# Advance Payment
<iframe width="660" height="371" src="https://www.youtube.com/embed/3wiIXId6dzg" frameborder="0" allowfullscreen></iframe>
**Duration: 3:11**
In sales and purchase transaction, generally advance payments are involved. This tutorial covers how you can create advance payment ... |
-- Main Table to store Features
CREATE TABLE FF4J_FEATURES (
"FEAT_UID" VARCHAR(100),
"ENABLE" INTEGER NOT NULL,
"DESCRIPTION" VARCHAR(1000),
"STRATEGY" VARCHAR(1000),
"EXPRESSION" VARCHAR(255),
"GROUPNAME" VARCHAR(100),
PRIMARY KEY("FEAT_UID")
);
-- Roles to store ACL, FK to main table
CR... |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
module NLP.Walenty.Parser
( lineP
, phraseP
, Comment
) where
import Control.Applicative ((<|>))
import Control.Monad (void)
import qualified Data.Char as C
import Data.Text (Text)
impor... |
namespace Apsk.AppSettings
{
public class ServiceDiscoverySetting
{
public string HttpEndpoint { get; set; }
public DnsEndpoint DnsEndpoint { get; set; }
}
}
|
#include <gtest/gtest.h>
#include <sigen/common/math.h>
TEST(Math, Mean) {
std::vector<double> xs;
xs.push_back(1.0);
xs.push_back(2.0);
xs.push_back(3.0);
EXPECT_EQ(2, sigen::Mean(xs));
}
|
using System;
using Microsoft.EntityFrameworkCore.Migrations;
using MySql.Data.EntityFrameworkCore.Metadata;
namespace CompanyStores.Migrations
{
public partial class InitalData : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTab... |
/*
* 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 u... |
//
// LFTools.h
// DeviceMaintain
//
// Created by 刘丰 on 2018/4/1.
// Copyright © 2018年 liufeng. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface LFTools : NSObject
+ (void)setObject:(id)obj forKey:(NSString *)key;
+ (id)objectForKey:(NSString *)key;
+ (void)setBool:(BOOL)is forKey:(NSString... |
/* -----------------------------------------------------------------------------
Disable existing codes in the PIMS_PROPERTY_TENURE_TYPE table and add new codes.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Author Date Comment
------------ ----------- ---------------... |
using System.Configuration;
using Should.Fluent;
namespace Backpack.Features.Tests
{
public class FeatureConfigurationTests
{
public void Current_LoadsCorrectConfigurationSection()
{
var configurationSection = ConfigurationManager.GetSection("backpack.features") as FeatureConfigura... |
mod message;
mod rpc;
mod topic;
pub use self::message::*;
pub use self::rpc::*;
pub use self::topic::*;
pub use ethereum_types::{Address, H160, H256, U256};
|
#!/usr/bin/env bash
pdf=$1
png=$2
(gs -dSAFER -r600 -sDEVICE=png256 -o $png $pdf && convert $png -background white -alpha remove -alpha off $png)
|
<?php
/**
* JPhpExcelReader class file.
*
* @author jerry2801 <jerry2801@gmail.com>
* @version alpha 2 2010-5-18 14:26
*
* A typical usage of JPhpExcelReader is as follows:
* <pre>
* Yii::import('ext.phpexcelreader.JPhpExcelReader');
* $data=new JPhpExcelReader('example.xls');
* echo $data->dump(true,true);
... |
# Copyright 2011-2013 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" fil... |
#!/bin/bash
# see src/home for the home source code
HOME=$(/usr/local/bin/home)
cd ~/projects/share
#eval $(ssh-agent)
#ssh-add ~/.ssh/key
|
package service_start
import (
"fmt"
"net/http"
"time"
"github.com/tofa-project/client-daemon/db"
"github.com/tofa-project/client-daemon/glob"
httpcodes "github.com/tofa-project/client-daemon/http-codes"
osat "github.com/tofa-project/client-daemon/onion-serv/app-type"
oservapps "github.com/tofa-project/clien... |
Rails.application.routes.draw do
get "search", to: "query#search"
delete "clear_stats", to: "query#destroy_all"
root to: "query#index"
end
|
## 概要
- `void superset_zeta_transform(vector<T>& a)` :
次の条件を満たす $b$ を計算し、 $a$ に代入する。
- $\displaystyle b_i = \sum_{i \in j} a_j$
- `void superset_moebius_transform(vector<T>& a)` :
次の条件を満たす $b$ を計算し、 $a$ に代入する。
- $\displaystyle a_i = \sum_{i \in j} b_j$
|
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:gdsc_solution_challenge/custom_components/bottom_navy_bar.dart';
import 'package:gdsc_solution_challenge/models/event_model.dart';
import 'package:gdsc_solution_challenge/providers/theme_provider.dart';
import 'package:gdsc_solution_challenge/pr... |
#include "types.h"
/*
* --INFO--
* Address: ........
* Size: 00009C
*/
void _Error(char*, ...)
{
// UNUSED FUNCTION
}
/*
* --INFO--
* Address: ........
* Size: 0000F4
*/
void _Print(char*, ...)
{
// UNUSED FUNCTION
}
/*
* --INFO--
* Address: ........
* Size: 0000E4
*/
void showFrame(bool, float)
{
// ... |
package sk.stuba.fei.uim.mobv_project.utils
import sk.stuba.fei.uim.mobv_project.data.entities.Account
object SecurityContext {
var account: Account? = null
} |
#! python3
import yaml
import os
import engine
from rhythmic import Logger # to exclude this dependency search through for Logger() and .writeDown()
from flask import Flask, request, render_template
import json
def get_boxops_configuration():
try:
with open("config.yaml", "r") as configuration_file:
... |
using System.Web.Security;
namespace cohort
{
public class FormsAuthenticationService : IAuthenticationService
{
public void SignIn(string email, bool rememberMe)
{
// Create the auth ticket manually, then store it somewhere we can periodically log people out when it is expired!
... |
module MtgRb
# A multiverse contains cards, expansions, printings, etc
# It is the entry point for the data and can be created from MTGJSON.
class Multiverse
# @param [Hash] The result of parsing AllSets.json
# @return [Multiverse] A populated multiverse from JSON
def self.from_hash(all_expansions)
... |
use strict;
use lib -e 't' ? 't' : 'test';
use TestYAML tests => 1;
pass('TestYAML framework loads');
|
#!/bin/sh
mkdir /work
cd /work
echo "Cloning git repository: $GIT_REPO"
git clone $GIT_REPO
cd /work/*
git checkout $GIT_BRANCH
cd $GIT_PATH
echo "Cleaning output directory."
rm -rf /antora-dist/*
echo "Running : antora $PLAYBOOK"
antora $PLAYBOOK
echo "Antora build completed successfully."
echo "Customizing output... |
{-# LANGUAGE OverloadedStrings #-}
-- | Parse the FORTRAN95 programming language source file.
module Lexer where
import Data.Char (isDigit, isLetter, toUpper)
import Data.List (find, findIndex)
import Data.Text (pack)
import System.Environment
import System.IO
import Text.Read (readMaybe)
-- | Validity of a string b... |
from chiadoge.types.blockchain_format.program import SerializedProgram
from .load_clvm import load_clvm
MOD = SerializedProgram.from_bytes(load_clvm("rom_bootstrap_generator.clvm").as_bin())
def get_generator():
return MOD
|
<?php
namespace CrosierSource\CrosierLibRadxBundle\EntityHandler\Fiscal;
use CrosierSource\CrosierLibRadxBundle\Entity\Fiscal\NotaFiscalHistorico;
use CrosierSource\CrosierLibBaseBundle\EntityHandler\EntityHandler;
/**
* Class NotaFiscalHistoricoEntityHandler
*
* @package CrosierSource\CrosierLibRadxBun... |
// ============================================================================
//
// Copyright (C) 2006-2021 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have receiv... |
package io.kommunicate.callbacks;
import android.content.Context;
import io.kommunicate.models.KmApiResponse;
import io.kommunicate.models.KmFeedback;
/**
* callback for the feedback api async task
* @author shubham
* @date 25/July/2019
*/
public interface KmFeedbackCallback {
void onSuccess(Context context,... |
package main
import (
"context"
"davitu.com/transfers/transfers"
"fmt"
"google.golang.org/grpc"
"log"
)
func main() {
conn, err := grpc.Dial("127.0.0.1:8080", grpc.WithInsecure())
if err != nil {
log.Fatalln("Connection error", err)
}
defer conn.Close()
client := transfers.NewTransferServiceClient(conn)
... |
package com.omnicrola.voxel.network.listeners;
import com.jme3.network.Client;
import com.omnicrola.voxel.eventBus.VoxelEventBus;
import com.omnicrola.voxel.eventBus.events.JoinLobbyEvent;
import com.omnicrola.voxel.network.AbstractMessageListener;
import com.omnicrola.voxel.network.INetworkManager;
import com.omnicro... |
package com.xunlei.downloadprovider.vod;
import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.SeekBar;
import org.apache.commons.logging.impl.SimpleLog;
import org.eclipse.paho.client.mqttv3.MqttConnectOptions;
public ... |
function add_noise(p::InfParams, l = 0.10)
inf = copy(p.infectiousness)
p_test = copy(p.pos_test_probs)
for (i,d) in enumerate(inf)
k,θ = Distributions.params(d)
k′ = k*(rand()*l+(1-l/2))
θ′ = θ*(rand()*l+(1-l/2))
inf[i] = Gamma(k′,θ′)
λ = (k′*θ′) / (k*θ)
p_... |
# fis-optimizer-uglify-js
A optimizer for fis to compress js by using uglify-js.
## 使用
FIS内置
## 配置
在项目配置文件(默认fis-conf.js)配置
```javascript
fis.config.set('settings.optimizer.uglify-js', option);
```
eg:
```javascript
//export, module, require不压缩变量名
fis.config.set('settings.optimizer.uglify-js', {
mangle: {
... |
import {v4 as uuid} from 'uuid';
import LogHistoryFactory, {LogHistory} from './history';
describe('LogHistory', () => {
let logHistory: LogHistory;
const mockWrite = jest.fn();
beforeEach(() => {
jest.resetAllMocks();
// @ts-ignore
logHistory = LogHistoryFactory({stream: {write: mockWrite}});
})... |
import { LOGOUT } from '../actionTypes/auth';
import { userService } from '../services/auth';
import { history } from '../history';
import { clearUsers } from './users';
import { clearChats } from './chats';
import { clearRooms } from './rooms';
import { clearMessages } from './messages';
import { clearAllErrors } from... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using ECS.MemberManager.Core.DataAccess.Dal;
using ECS.MemberManager.Core.EF.Domain;
namespace ECS.MemberManager.Core.DataAccess.Mock
{
public class PaymentSourceDal : IDal<PaymentSource>
{
public Task<Pay... |
using System;
namespace GSSAPI
{
/// <summary>
/// GSS client state
/// </summary>
internal class GssClientState
{
/// <summary>
/// Service name
/// </summary>
public string Service;
/// <summary>
/// Unmanaged resource link to GSS Cont... |
package org.ababup1192
import japgolly.scalajs.react._
import japgolly.scalajs.react.vdom.svg.all._
import paths.high.Tree
import scala.scalajs.js
object DuckTree {
case class Duck(id: Int, name: String, descendants: List[Duck] = List())
private def move(p: js.Array[Double]) = s"translate(${p(0)},${p(1)})"
... |
import React, { FunctionComponent } from "react"
import { Layout, SEO } from "../components"
import { DefaultPageProps } from "./DefaultPageProps"
const WhatWeDo: FunctionComponent<DefaultPageProps> = ({
pageTitle = "Vad vi gör",
}) => (
<Layout>
<SEO title={pageTitle} />
<div>
<h1>{pageTitle}</h1>
... |
module KubernetesCookbook
# Resource to manage a Kubernetes API server
class KubeApiserver < Chef::Resource
resource_name :kube_apiserver
property :remote, String,
default: 'https://storage.googleapis.com/kubernetes-release' \
'/release/v1.3.6/bin/linux/amd64/kube-apiserver'
proper... |
mod edit_task;
mod guest_task;
mod invites;
mod login;
mod nav_bar;
mod register;
mod settings;
mod submit_task;
mod task_view;
mod tasks_list;
mod tutor_task;
mod users;
mod util;
pub use guest_task::guest_task_view;
pub use invites::invites_view;
pub use login::login_view;
pub use nav_bar::nav_bar_view;
pub use regi... |
using MusicHarmonySearch.Engine.Catalogs;
using System;
namespace MusicHarmonySearch.Engine
{
public class Interval
{
private Pitch _note1;
private Pitch _note2;
private Intervals _interval;
private Interval(Pitch note1, Pitch note2, Intervals interval)
{
t... |
#include "normal3d.h"
Normal3D::Normal3D(void)
{
}
Normal3D::~Normal3D(void)
{
}
|
$(document).ready(function() {
var thermostat = new Thermostat();
$('.currentTemp').text(thermostat.currentTemp() + ' c');
$('.usageLevel').css('background-color', 'black');
$('.powerSaver').css('background-color', 'green');
$('.up').click(function() {
thermostat.up();
usageCheck()
$('.currentTem... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Term; //Use the Term Model.
class TermController extends Controller
{
//This public function will get all the 'terms' table data.
public function getTerm() {
return response()->json([
'succe... |
# Plugin stdout
## Variables
| Variable name | Default | Applied function |
|---|---|---|
| pattern | - | |
## Plugin template
```
<match {{ .pattern }}.** >
@type stdout
</match>
``` |
this.BX = this.BX || {};
(function (exports, main_core, landing_env) {
'use strict';
var pageTypeAlias = {
GROUP: 'KNOWLEDGE'
};
/**
* @memberOf BX.Landing
*/
var Loc =
/*#__PURE__*/
function (_MainLoc) {
babelHelpers.inherits(Loc, _MainLoc);
function Loc() {
babelHelpers.classCallCheck(this... |
package com.title.joke.controller
import com.title.joke.dto.EventDataDto
import com.title.joke.service.EventsService
import kotlinx.coroutines.GlobalScope
import org.slf4j.LoggerFactory
import org.springframework.beans.factory.annotation.Value
import org.springframework.http.HttpStatus
import org.springframework.http.... |
package compose.icons.simpleicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
impor... |
const readline = require('readline')
//process 全局的,不需要引入就可使用 命令行提供stdin createInterface API
const rl = readline.createInterface({//创建一个交互的接口 input战斗的地方
input: process.stdin, // process node.js 核心模块进程 可以源源不断读取用户的信息
output: process.stdout
}) ;
rl.question('please input a word:',function(answer){
con... |
python main.py --k 5 &> log_Crop
python main.py --k 5 --resume --lr 0.001 &>> log_Crop
|
package controllers
import javax.inject.Inject
import akka.actor.ActorSystem
import bminjection.db.DBTrait
import bminjection.token.AuthTokenTrait
import bmlogic.adjustdata.AdjustDataMessage.msg_AdjustNameDataCommand
import bmlogic.common.requestArgsQuery
import bmmessages.{CommonModules, MessageRoutes}
import bmpatt... |
'use strict';
let hemisphereLight = undefined;
let sunLight = undefined;
let greenLight = undefined;
let redLight = undefined;
let blueLight = undefined;
let initLights = function() {
sunLight = new THREE.DirectionalLight( 0xffffff, 1 );
sunLight.position.set( 25, 50, -10 );
scene.add( sunLight );
red... |
/**
*
*/
package com.manan.busservice.service.operations;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.manan.busservice.dto.mapper.operations.TicketMapper;
import com.manan.busservice.dt... |
package examples.schema
sealed trait MyEtlJobSchema
object MyEtlJobSchema {
case class Rating(user_id: Int, movie_id: Int, rating: Double, timestamp: Long) extends MyEtlJobSchema
case class RatingBQ(user_id: BigInt, movie_id: BigInt, rating: Double) extends MyEtlJobSchema
case class EtlJobRun(job_name: String, ... |
import argparse
from stests.core import cache
from stests.core import factory
from stests.core.types.infra import NodeGroup
from stests.core.types.infra import NodeType
from stests.core.utils import args_validator
from stests.core.utils import cli as utils
from stests.core.utils import env
# CLI argument parser.
AR... |
<?php
namespace App\Modules\OauthClients\Repositories;
use App\Modules\Core\BaseClasses\BaseRepository;
use App\Modules\OauthClients\OauthClient;
class OauthClientRepository extends BaseRepository
{
/**
* Init new object.
*
* @param OauthClient $model
* @return void
*/
public func... |
#include "Config.hpp"
#include "easylogging++.hpp"
#include <map>
std::map<std::string, Config> Config::createConfigMapFromFile(std::string path)
{
LOG(DEBUG) << "Loading " << path << " file.";
std::map<std::string, Config> map;
YAML::Node config_array = YAML::LoadFile(path);
for (YAML::const_iterator it = config... |
package cove
import (
"io/ioutil"
"os"
"path/filepath"
"testing"
)
func TestCoverageProfileDoesntDeleteNonProfileFilesInOutputDir(t *testing.T) {
testdir, _ := ioutil.TempDir("", "coverage-profile")
defer os.RemoveAll(testdir)
bytes := []byte("foo")
foofile := filepath.Join(testdir, "foo")
ioutil.WriteFile(... |
import React from 'react';
import Ionicons from 'react-native-vector-icons/Ionicons';
import { createStackNavigator } from '@react-navigation/stack';
import CreateStudent from '../component/CreateStudent';
const CreateStudentStack = createStackNavigator();
interface CreateStudentStackProps {
navigation: any;
}
fun... |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeOperators #-}
module Breakdown where
import Data.Aeson
import Data.Hashable
import Data.Typeable (Typeable)
import GHC.Generics ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.