text stringlengths 27 775k |
|---|
/*
* Copyright 2021 4Paradigm
*
* 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 w... |
"""
Authentication service functions.
"""
import logging
from django.conf import settings
from django.contrib.auth import authenticate, login, logout, get_user_model
from django.urls import reverse
from myproject.common.utils import emailutils
from myproject.common.utils.viewutils import set_request_status
__author... |
<?php
namespace Redmine;
/**
* api interface.
*/
interface Api
{
}
|
require "test_helper"
module Account
class LoansControllerTest < ActionDispatch::IntegrationTest
include Devise::Test::IntegrationHelpers
setup do
@user = create(:user)
@member = create(:member, user: @user)
sign_in @user
end
test "loads a member's past loans" do
@loan = cre... |
package coop.rchain.p2p
import org.scalatest._
import coop.rchain.comm._
import coop.rchain.comm.protocol.rchain._
import coop.rchain.comm.protocol.routing
class ProtocolTest extends FlatSpec with Matchers {
"An EncryptionHandshake message" should "be answered by an EncryptionHandshakeResponse message" in {
val... |
package com.canerture.studentregistrationsystem
import android.os.Bundle
import android.view.*
import android.widget.ArrayAdapter
import androidx.fragment.app.Fragment
import androidx.navigation.findNavController
import androidx.navigation.fragment.navArgs
import com.canerture.studentregistrationsystem.databinding.Fra... |
from sklearn.datasets import fetch_openml
from sklearn.ensemble import RandomForestClassifier
from sklearn.metrics import accuracy_score
from sklearn.decomposition import PCA
import numpy as np
import time
mnist = fetch_openml('mnist_784', version=1, as_frame=False)
mnist.target = mnist.target.astype(np.uint8)
X_tra... |
pub use crate::field::FieldElement;
pub use crate::point::{Group, Point};
pub use crate::secp256k1::Secp256k1;
|
namespace d60.Cirqus.Views.ViewManagers
{
/// <summary>
/// Delegate type of an event handler that will be called when a view instance has been updated beucase one or more events were dispatched to it
/// </summary>
public delegate void ViewInstanceUpdatedHandler<TViewInstance>(TViewInstance insta... |
library bip32_ed25519.api;
import 'package:pinenacl/api.dart';
export 'dart:typed_data';
export 'package:pinenacl/ed25519.dart';
export 'package:bip32_ed25519/bip32_ed25519.dart';
/// BIPs
part 'package:bip32_ed25519/src/api/bip32.dart';
part 'package:bip32_ed25519/src/api/bip43.dart';
part 'package:bip32_ed25519/sr... |
/*
Copyright 2021 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... |
# Copyright 2020-2021 John T. Foster
#
# 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 w... |
import FormHeader from '../components/FormHeader';
import EmailInput from '../components/EmailInput';
import FormSubmit from '../components/FormSubmit';
import { IconClose } from '../components/icons';
import Form from '../components/Form';
export default ({error, handleClose, handleSubmit}) => (
<div className="... |

# Breaking Down Your React App
### March 2019 Edition
Presentation for the eBay Frontend Conference, San Jose, USA, 25<sup>th</sup> March 2019.
### 👉 [View the slides online here](https://technology-ebay-de.github.io/breaking-down-y... |
NUMBER = {
"one" => 1, "two" => 2, "three" => 3, "four" => 4,
"five" => 5, "six" => 6, "seven" => 7, "eight" => 8,
"nine" => 9, "zero" => 0
}.freeze
def word_to_digit(string)
string.split.map {|word| NUMBER[word]}.compact.join
end
def word_to_digit2(string)
NUMBER.keys.each do |word|
string.gsub!(/\b#{w... |
<?php
namespace frontend\modules\pages\controllers;
use common\classes\Debug;
use common\classes\UserFunction;
use common\models\db\Pages;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
/**
* Default controller for the `pages` module
*/
class DefaultController extends Controller
{
/**
* Render... |
package one.innovation.digital.enums;
public enum VehicleType {
LAND,
WATER,
AIR,
DUALLANDWATER,
DUALAIRWATER,
DUALAIRLAND
}
|
/**************************************************************
*
* 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 y... |
#!/bin/sh
rssdata=$(curl "https://www.bing.com/HPImageArchive.aspx?format=rss&n=1")
title=$( \
echo "$rssdata" \
| xmllint --xpath "/rss/channel/item/title/text()" - \
| fmt -50
)
title=${title% \(*}
urlpath=$( \
echo "$rssdata" \
| xmllint --xpath "/rss/channel/item/link/text()" - \
| sed 's/1366x768/1920x1080/g' \
)... |
import 'package:beast/src/app/constants/strings.dart';
import 'package:beast/src/app/models/message.dart';
import 'package:beast/src/app/models/user.dart';
import 'package:cloud_firestore/cloud_firestore.dart';
class Chat {
User sender;
User receiver;
List<Message> messages;
Timestamp timestamp;
Chat({
... |
#include <stdio.h>
int findMinRecursive(int vec[], int size)
{
int min;
if
else
return
}
int findMinLoop(int vec[], int size)
{
int i, min = vec[0];
for (i=1; i<size; i++)
if(vec[i] < min)
min = vec[i];
return min;
}
int main(int nargs, char *argv[])
{
int N=20, array1[N];
return 0;... |
const axiosImport = require('axios');
const axios = axiosImport.create({
baseURL: "http://api.whatpulse.org/"
});
/**
*
* @param options - Object with all Options. View them here: http://developer.whatpulse.org/#team-stats
* @returns {Promise<void>}
*/
async function getTeam(options) {
if(!options.team) t... |
import { IdentityPool } from '@aws-cdk/aws-cognito-identitypool-alpha'
import { Table } from 'aws-cdk-lib/aws-dynamodb'
import { PollingTable } from '../poller'
export interface SiteConstructOptions {
identityPool: IdentityPool;
tables: Record<PollingTable, Table>
region: string;
websocketEndpoint: str... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WCMS.Framework.Core;
namespace WCMS.Framework.Core.Manager
{
public class WebObjectManager : StandardDataManager<WebObject>, IWebObjectProvider
{
protected IWebObjectProvider _provider;
public WebObje... |
module SeedCool
class ERBContext
def initialize(resource)
extend SeedCool::SeedHelper
extend Kernel.qualified_const_get("SeedCool::#{resource.to_s.singularize.camelize}Helper")
end
def eval(erb)
erb.result(binding)
end
end
end |
<?php
namespace App\Models;
use App\Models\ImpModelo;
class ImpModelo implements IModelo
{
private $DAO;
public function listar($filtro = null):Array{
return [];
}
public function persistir($entidad): int
{
// TODO: Implement persistir() method.
return 0;
}
public... |
import React from 'react';
import ReactDOM from 'react-dom';
import Layout from '../shared/Layout.js';
import RealEstateGraph from '../components/RealEstateGraph.js';
import sinon from 'sinon';
import { mount, shallow } from 'enzyme';
describe('<RealEstateGraph />', () => {
it('renders without crashing', () => {
... |
# Meta
`toloka.client.message_thread.MessageThread.Meta`
```
Meta(
self,
*,
pool_id: Optional[str] = None,
project_id: Optional[str] = None,
assignment_id: Optional[str] = None
)
```
|
export class MultipleCounterError extends Error {
constructor() {
super("multiple counters with the same name");
}
}
export class NetError extends Error {
constructor(message: string, code?: number) {
super(`${message}: ${code}`);
}
}
export class ReportError extends NetError {
constructor(errorCode... |
/*
* Sort the elements in array data in range [low, high].
*/
fn quicksort(data: &mut [i32], low: usize, high: usize) -> bool
{
if low < high {
let mid: usize = partition(data, low, high);
quicksort(data, low, mid.saturating_sub(1));
quicksort(data, mid.wrapping_add(1), high);
}
re... |
#!/bin/bash
docker run -d --name hana2 -p 39013:39013 store/saplabs/hanaexpress:2.00.040.00.20190729.1 --agree-to-sap-license
#--passwords-url file:///password.json
#echo Generate password file
cat <<-EOJSON > hana_password.json
{"master_password": "password"}
EOJSON
#docker cp hana_password.json hana2:/password.jso... |
package com.github.amazingdreams.mollie.requests
import com.github.amazingdreams.mollie.objects.Customer
import play.api.libs.json.Json
case class GetCustomerRequest(customerId: String) extends MollieRequest[Customer] {
override def path = s"/customers/$customerId"
override def responseReads = Json.reads[Customer]... |
package santabackend.backend.domain.entity;
public enum Behaviour {
GOOD,
BAD;
}
|
package com.mikea.gae.rx.base
// Compilation-only test for transformer syntax
trait TransformerSyntaxTest[T, U, V] {
val tu : Transformer[T, U] = ???
val uv : Transformer[U, V] = ???
val t : Observable[T] = ???
val test1 : Transformer[T,V] = tu >>> uv
val test2 : Observable[U] = t >>> tu
val test3 : Obs... |
1 16 39
2 41
3 1 99 118
4 57 80
5 18 149
6 73 96 108 112
7 46 47 77 86
8 32 54 104
9 37 50 59
10 43 74
11 67 102 124 148
12 84 103 113 128
13 61 74
14 13 22 61 69 126
15 23 65 84 140
16 1 89 140
17 33 36 62 70 134
18 68 130 132 139 142 144
19 32 67 78 94
20 15 23 46 47 84 109
21 9 36 49 50 85 127
22 13 14 74 88 108 143... |
import React from 'react'
import { render } from '@testing-library/react'
import { PostCard } from '.'
import { I18nProvider } from '@jesus-film/ark.providers.i18n-provider'
describe('post-card', () => {
it('should render hero', () => {
const { getByTestId } = render(
<I18nProvider>
<PostCard title... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Models\Group;
use App\Http\Models\Events;
use Auth;
use App;
use Pusher;
use View;
class NotificationsController extends Controller
{
protected $casts = [
'users' => 'array',
];
public $key;
public $secret;
p... |
\set ON_ERROR_STOP 1
BEGIN;
SET search_path = 'cover_art_archive';
CREATE INDEX cover_art_idx_release ON cover_art (release);
COMMIT;
|
%% This Source Code Form is subject to the terms of the Mozilla Public
%% License, v. 2.0. If a copy of the MPL was not distributed with this
%% file, You can obtain one at https://mozilla.org/MPL/2.0/.
%%
%% Copyright (c) 2007-2020 VMware, Inc. or its affiliates. All rights reserved.
%%
%% @private
-module(amqp_gen_... |
require 'rails_helper'
RSpec.describe Api::OrderSerializer, type: :serializer do
let(:order) { create(:order) }
let(:serializer) { described_class.new(order) }
let(:serialization) { ActiveModelSerializers::Adapter.create(serializer) }
subject { JSON.parse(serialization.to_json) }
ORDER_SERIALIZER_FIELDS = %... |
package pligos
import (
"k8s.io/helm/pkg/proto/hapi/chart"
)
type Pligos struct {
*chart.Chart
Flavor *chart.Chart
ContextSpec map[string]interface{}
Schema map[string]interface{}
Types map[string]interface{}
Instances map[string]interface{}
Dependencies []Pligos
}
|
const DeedCard = require('../../deedcard.js');
const GameActions = require('../../GameActions/index.js');
/** @typedef {import('../../AbilityDsl')} AbilityDsl */
class BairdsDebtCollections extends DeedCard {
/** @param {AbilityDsl} ability */
setupCardAbilities(ability) {
this.traitReaction({
... |
#!/usr/bin/env python3.7
from functools import wraps
import json
from operator import itemgetter
from os import environ
from gnlpy.ipvs import IpvsClient
from ipvssync import reload_ipvs
import pytest
def debug(func):
"""Decorator for interactive debug using pydevd (PyCharm)"""
@wraps(func)
def wrapper(*... |
export * from "./decode.js";
export * from "./decode-pack.js";
export * from "./encode.js";
export * from "./encode-pack.js";
export * from "./encoding-length.js";
|
-- Create table types of data sources
CREATE TABLE IF NOT EXISTS public.types
(
type_id character varying(3) NOT NULL,
type_name character varying(40) NOT NULL,
src text NOT NULL,
PRIMARY KEY (type_id)
);
-- Sequence for department
CREATE SEQUENCE IF NOT EXISTS public.types_seq
INCREMENT 1
START... |
import { ChannelT } from '.';
export type ChannelsT = {
guild: ChannelT[];
};
|
# fingerprintLibrary
这只是个Android Studio的Module,不能独立运行。
[FingerprintDemo](https://github.com/niyueming/FingerprintDemo.git)
|
# frozen_string_literal: true
class AlwaysGoBatch < BatchProcessor::BatchBase
with_sequential_processor
processor_option :continue_after_exception, true
process_with_job StopOrGoJob
class Collection < BatchCollection
def items
%w[green yellow red]
end
end
end
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TK.CustomMap.Overlays;
namespace TK.CustomMap.Sample
{
/// <summary>
/// Pin which is either source or destination of a route
/// </summary>
public class RoutePin : TKCustomMapPin
... |
# PROJECTION POPULATION KAOLACK 2020
Répartition de la population de KAOLACK par départements de projection selon le sexe
| Départements | Homme | Femme | Total |
| --------- |:-----:|:-----:|:-----:|
| [KAOLACK](KAOLACK) | 297990 | 308120 | 606110 |
| [NIORO](NIORO) | 218433 | 224186 | 442620 |
| [GUINGUINEO](GUI... |
// Copyright 2016 Netflix, Inc.
//
// 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 System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace LoginradiusCoreSdk.Models.UserProfile
{
public class LoginRadiusPositionCompany
{
/// <summary>
/// Facebook : employer and Linkedin : <company><name> node
/// </summary>
... |
package com.mreigar.transportapp.network.mapper
interface RemoteEntityMapper<in R, out D> {
fun mapFromRemote(remoteEntity: R): D
} |
; RUN: opt < %s -S -loop-reduce | FileCheck %s
define void @testIVNext(i64* nocapture %a, i64 signext %m, i64 signext %n) {
entry:
br label %for.body
for.body:
%indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %for.body ], [ %m, %entry ]
%i = phi i64 [ %i.next, %for.body ], [ 0, %entry ]
%uglygep138 = getel... |
# Webpack中的配置
webpack 配置是标准的 Node.js CommonJS 模块
|
package console
import (
"bufio"
"fmt"
"os"
"strings"
"sync/atomic"
"github.com/pkg/errors"
)
//nolint: golint
const (
ANSI_RESET = "\u001B[0m"
ANSI_BLACK = "\u001B[30m"
ANSI_RED = "\u001B[31m"
ANSI_GREEN = "\u001B[32m"
ANSI_YELLOW = "\u001B[33m"
ANSI_BLUE = "\u001B[34m"
ANSI_PURPLE = "\u001B[35... |
package com.qa.pageobjects;
import com.qa.testbase.BrowsersEnum;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.PageFactory;
import org.openqa.selenium.support.ui.LoadableComponent;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Abstract base class for holding common element... |
# servant-happstack
A family of combinators for defining webservices APIs and serving them
This is now in the official servant repository, currently only in the servercommon branch,
https://github.com/haskell-servant/servant/tree/servercommon/servant-happstack
|
# frozen_string_literal: true
require "rails_helper"
require "support/vacols_database_cleaner"
describe QueueTab, :all_dbs do
# Use OrganizationAssignedTasksTab as our example since we don't expect QueueTab to ever be instantiated directly.
let(:tab) { OrganizationAssignedTasksTab.new(params) }
let(:params) do
... |
"""The tiling drawing tools.
"""
import json
from collections import Counter, deque
from random import uniform
from typing import Callable, ClassVar, Deque, Iterable, List, Tuple
import pyglet
from permuta import Perm
from permuta.misc import DIR_EAST, DIR_NONE, DIR_NORTH, DIR_SOUTH, DIR_WEST
from tilings import Gri... |
package evaluator
import (
"bufio"
"encoding/binary"
"errors"
"fmt"
"github.com/markbates/pkger"
"io"
)
// GetValidRanks returns all the valid ranks
func GetValidRanks() []string {
return []string{
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"T",
"J",
"Q",
"K",
"A",
}
}
// GetValidSuits... |
package parser
import "github.com/romainmenke/css/tokenizer"
type tokenStream interface {
Next() tokenizer.Token
}
type tokenStreamFunc func() tokenizer.Token
func (f tokenStreamFunc) Next() tokenizer.Token {
return f()
}
type streamCondition func(tokenizer.Token) bool
func pipeWithCondition(s tokenStream, cond... |
/**
* @file Defines the BaseEndpoint class.
*
* @author Luke Chavers <luke@c2cschools.com>
* @author Kevin Sanders <kevin@c2cschools.com>
* @since 5.0.0
* @license See LICENSE.md for details about licensing.
* @copyright 2017 C2C Schools, LLC
*/
"use strict";
/** @type Common.BaseClass */
const BaseClass = ... |
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Created by "Unleashed Studios".
* User: phi314
* Date: 8/10/16
* Time: 8:37 PM
*/
?>
<!-- START X-NAVIGATION VERTICAL -->
<ul class="x-navigation x-navigation-horizontal x-navigation-panel">
<!-- TOGGLE NAVIGATION -->
<li cla... |
AC3.5 7 0.297,-0.185,-0.447,-1.588,-1.623,-1.057,-0.016,
AC3.8 7 0.021,-0.244,-0.111,0.097,-0.148,-0.664,-1.157,
AH6.6 7 -0.165,-0.232,-0.340,1.028,-0.417,-0.762,-0.664,
B0001.3 7 -0.281,-0.416,-0.576,-0.255,-0.517,-1.189,0.941,
B0024.1 7 0.374,0.148,-2.139,-2.670,-2.361,-3.222,1.190,
B0024.4 7 0.192,-0.093,0.088,0.050... |
/**
*
*/
package com.ReservaComedor.security;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springfra... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2015-2022 Elior "Mallowigi" Boukhobza
*
* 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 t... |
import { NodeTypes } from "../constants";
import { makeLogger } from "./logging";
const log = makeLogger("CORE");
let idCounter = 0;
// @todo: Maybe if this is a root node (scene), when a `child` is added, it tells the scene graph?
// same as when it is removed....
// @todo: OR add a `dirty` flag? That way we can do... |
$here = Split-Path -Parent $MyInvocation.MyCommand.Path
$module = "DosInstallUtilities.Kube"
Import-Module PowerShellGet
Get-Module "$module" | Remove-Module -Force
Import-Module "$here\$module.psm1" -Force -Verbose
$apikey = Read-Host -Prompt "Please enter the API key"
Publish-Module -Name "$here\$module.psm1" -Nu... |
module.exports = function (grunt) {
const sign = !grunt.option('skip-sign');
grunt.registerTask('build-web-app', [
'clean',
'eslint',
'copy:html',
'copy:icons',
'copy:manifest',
'webpack:app',
'inline',
'htmlmin',
'csp-hashes',
'co... |
package de.tum.mitfahr.events;
import de.tum.mitfahr.networking.models.response.RideResponse;
/**
* Created by amr on 23/06/14.
*/
public class UpdateRideEvent extends AbstractEvent {
public enum Type
{
RIDE_UPDATED,
UPDATE_FAILED,
RESULT
}
private RideResponse mRideResponse... |
import { executeRunner2, initFixtureHelper } from '@garment/fixture-helper';
import handler from '../src';
const { initFixture, clean } = initFixtureHelper(module, {
tempDir: __dirname + 'tmp__'
});
afterAll(clean);
test('Creates typings for CSS file', async () => {
const result = await executeRunner2(
handl... |
import React from 'react';
import {
Col,
Icon,
Tooltip,
} from 'antd';
import {
FirstIcon,
BackJumpIcon,
PreviousIcon,
PlayIcon,
PauseIcon,
NextIcon,
ForwardJumpIcon,
LastIcon,
} from '../../../icons';
interface Props {
playing: boolean;
onSwitchPlay(): void;
o... |
data class Rule(val pair: Pair<Char, Char>, val insertion: Char)
fun <K> MutableMap<K, Long>.increment(key: K, count: Long = 1) {
set(key, getOrDefault(key, 0) + count)
}
val elements = mutableMapOf<Char, Long>()
val pairs = readLine()!!.asSequence()
.onEach { elements.increment(it) }
.windowed(2) { (firs... |
// Copyright (c) 2017 Trevor Redfern
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
namespace Tests.Characters.SpecialAbilities.BloodlinePowers
{
using Xunit;
using SilverNeedle.Characters;
using SilverNeedle.Characters.SpecialAbilities.BloodlinePowers;
... |
package nz.co.bottech.sbt.gpg
import java.io.File
import java.nio.file.Files
sealed trait GpgArgument {
def prepare(): Seq[String]
}
final case class GpgFlag(flag: String) extends GpgArgument {
override def prepare(): Seq[String] = Seq(flag)
}
object GpgFlag {
val armor = GpgFlag("--armor")
val batch = G... |
/*
* Copyright 2009 Kjetil Valstadsve
*
* 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 agre... |
package com.hd.message.dao;
import com.hd.message.entity.MessageSendRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
/**
* 消息推送记录dao
*
* @author wang_yw
*/
@Repository
public interface MessageSendRecordRepository extends JpaRepository<MessageS... |
<?php
namespace GeoIp2\Model;
/**
* This class provides the GeoIP2 Connection-Type model.
*
* @property integer $autonomousSystemNumber The autonomous system number
* associated with the IP address.
*
* @property string $autonomousSystemOrganization The organization associated
* with the registered aut... |
# 52957_dataRepresentation
This is a git folder containing reference material and labs for the Data Representation Module.
The details for the contents in the root folder is as follow:
|File/Folder DTS |Directory|Bytes |File/Folder Name |Description |
|------------------|--------|------... |
#docker image build -t ontoology:alpine -f Dockerfile .
#docker-compose run -p "8000:8000" web .venv/bin/python manage.py runserver 0.0.0.0:8000
echo "Migration script -- START"
rm -Rf OnToology/migrations
rm -Rf *.db
.venv/bin/python manage.py makemigrations OnToology --settings=OnToology.settings-local
.venv/bin/pyth... |
# Notes
* No API is provided for the frontend (game player/authoring environment),
since there will be no public methods (only protected) in these packages.
|
<?php
declare(strict_types=1);
/**
* @license https://github.com/krowinski/php-mysql-replication/blob/master/LICENSE
*/
namespace MySQLReplication\Event\RowEvent;
use Doctrine\Common\Collections\ArrayCollection;
class ColumnDTOCollection extends ArrayCollection
{
}
|
# Caracteristicas tipo (D1-D2-D3-D4) Nivel #1
INSERT INTO catFlujos (nivel_aprobacion, expresion, caracteristicasTipo_id) VALUES (1, NULL, 1);
INSERT INTO catFlujos (nivel_aprobacion, expresion, caracteristicasTipo_id) VALUES (1, NULL, 2);
INSERT INTO catFlujos (nivel_aprobacion, expresion, caracteristicasTipo_id) VALU... |
package me.phph.app.pastehero.api
import java.io.File
/**
* LRU cache that holds [capacity] items in max
* If the cache is full, the earliest item will be deleted
*/
class LRUCache<K, V>(private val capacity: Int) : LinkedHashMap<K, V>(capacity + 1, 1.0f, true) {
override fun removeEldestEntry(eldest: Mutable... |
{-# LANGUAGE DeriveDataTypeable, DeriveGeneric, OverloadedStrings #-}
{-# LANGUAGE StandaloneDeriving, TemplateHaskell #-}
module Text.InputMethod.SKK.Dictionary
(Dictionary(..), Input(..), Candidate(..),
gokan, okurigana, emptyDic, lookup,
tango, chushaku, dictionary, mergeDic,
... |
protocol_version = 1
last_refresh_time = 0
cert = None
data_path = None
config = None
proxy = None
session = None
socks5_server = None
last_api_error = ""
quota_list = {}
quota = 0
server_host = ""
server_port = 0
balance = 0
|
#!/bin/bash
SOURCE="${BASH_SOURCE[0]}"
RDIR="$( dirname "$SOURCE" )"
cd $RDIR
echo "localhost ansible_connection=local ansible_user=root" > inventory
# Testing the syntax
ansible-playbook --syntax-check -i inventory test.yml
# First run
ansible-playbook -i inventory test.yml
# Idempotence
ansible-playbook -i invent... |
from gym.envs.registration import register
register(
id='RadialTyping-v0',
entry_point='gym_bci_typing.envs:RadialTypingEnv',
)
register(
id='CharTyping-v0',
entry_point='gym_bci_typing.envs:CharTypingEnv',
)
|
#!/bin/sh
# SPDX-License-Identifier: MIT
# Copyright (c) 2021 James McNaughton Felder
set -e
#shellcheck disable=SC1091
. ./headers.sh
for PROJECT in $PROJECTS; do
#Allow parsing of the full build process
echo "Making all in $PROJECT"
(cd "$PROJECT" && DESTDIR="$SYSROOT" $MAKE install)
done
|
/*
* Copyright [2019] [Diego Armange Costa]
*
* 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... |
package io.github.mattpvaughn.pokeapp.injection.components
import dagger.Component
import io.github.mattpvaughn.pokeapp.application.MainActivity
import io.github.mattpvaughn.pokeapp.application.MainActivityViewModelFactory
import io.github.mattpvaughn.pokeapp.features.library.LibraryFragment
import io.github.mattpvaug... |
import sbt._
import Keys._
object ExampleBuild extends Build {
override val settings = super.settings ++ Seq(
organization := "org.scalastyle.example",
version := "0.4-SNAPSHOT",
scalaVersion := "2.10.4"
)
import sbtrelease.ReleasePlugin._
def module(dir: String, extraSettings: Seq[Setting[_]] =... |
import random
import exceptions as e
import technology as t
from federation import FederationToken
from universe import LostPlanet
class Level:
"""One single level on the technology track."""
def __init__(self, name, active=False, when=False, reward=False):
self.name = name
# Like Terraform... |
require File.dirname(__FILE__) + "/spec_helper"
include ZodiacHelper
describe "Zodiac" do
before :each do
@date = Time.utc(2000, "jun", 12)
end
it "returns the zodiac sign for a given Time" do
zodiac_sign_for(@date).should == "Gemini"
end
it "returns the zodiac sign for a given number" do
zodi... |
+++
title = "Raspberry telefoniert nach draussen"
date = 2013-02-02T00:48:20Z
author = "typ_o"
path = "/blog/2013/02/02/raspberry-telefoniert-nach-draussen"
aliases = ["/blog/archives/182-Raspberry-telefoniert-nach-draussen.html"]
+++

Den Raspberry im Netz zu exponieren schien mir keine gut... |
**Chiru双手简谱** 是网友提供的,由网友 **秋风赋~** 制作,感谢秋风赋对EOP的支持!
_Chiru_ ,一首好听的轻音乐由日本歌手Robert de Boron演绎。Robert de Boron,日本厂牌GOON
TRAX旗下歌手,此曲收录于其2012年的专辑《Mellow Candle》中。个人曲风多为jazz Rap/Hip Hop New Age。
这里我们提供 _Chiru钢琴谱_ ,大家可以免费下载学习。
|
# Changelog
## v1.0.0
### Added or Changed
- **[NEW]** - This template!
- Example
### Removed
- Nothing :) |
# frozen_string_literal: true
require 'forwardable'
module ActiveRecord
module Journal
module Journable
class Rule
extend Forwardable
ActiveRecord::Journal::JOURNABLE_OPTIONS.each do |option_name|
def_delegator :@options, option_name, option_name
end
def_delegat... |
#!/bin/bash -e
cd ../../generated
[ -f ./src/main/java/it/tdlight/jni/TdApi.java ] && rm ./src/main/java/it/tdlight/jni/TdApi.java
mvn -B clean install
echo "Done."
exit 0
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.