text stringlengths 27 775k |
|---|
package io.github.todorkrastev.pathfinder.service.impl;
import io.github.todorkrastev.pathfinder.model.entity.Category;
import io.github.todorkrastev.pathfinder.model.entity.enums.CategoryName;
import io.github.todorkrastev.pathfinder.repository.CategoryRepository;
import io.github.todorkrastev.pathfinder.service.Cate... |
module Houdini
module TaskManager
def self.register(klass, blueprint, options, task_builder=Task)
@tasks ||= {}
@tasks[ [klass.name, blueprint.to_sym] ] = task_builder.new(klass, blueprint, options)
end
def self.submit!(object, blueprint)
if @tasks
task = @tasks[ [object.class.n... |
import type { DebouncedFunc, ThrottleSettings } from 'lodash';
import throttle from 'lodash/throttle';
import { useEffect, useRef } from 'react';
import type { Plugin } from '../types';
const useThrottlePlugin: Plugin<any, any[]> = (
fetchInstance,
{ throttleWait, throttleLeading, throttleTrailing },
) => {
cons... |
#pragma once
#include "ScriptComponent.h"
#include "AnimationComponent.h"
#include <metadata\object-forward.h>
#include <metadata\object.h>
#include <metadata/class.h>
void PlayAnimation(MonoObject* go, MonoObject* animationName)
{
char* animName = mono_string_to_utf8(mono_object_to_string(animationName, 0));
std... |
package io.github.sevenparadigms.abac.security.context
import io.github.sevenparadigms.abac.Constants.AUTHORIZE_IP
import io.github.sevenparadigms.abac.Constants.PRINCIPAL
import io.github.sevenparadigms.abac.Constants.REQUEST
import io.github.sevenparadigms.abac.Constants.RESPONSE
import org.apache.commons.lang3.Stri... |
import os
from app.helput import get_files_under_dir, unique_filename
from utils.find_article_images import get_images_list
def find_missing_images():
print('Fetching images names from database...')
images_list = get_images_list()
images_names = map(os.path.basename, images_list)
found = []
print... |
using System;
using System.Collections.Generic;
using System.Text;
namespace Lingu.Runtime.Structures
{
public interface ILexer
{
bool IsEnd();
ITerminalToken? Next(int stateId);
}
}
|
#!/bin/bash
## SLURM options
# Options to sbatch start with '#SBATCH'. To disable an option, change
# the prefix, e.g. '#xSBATCH'
# Time limit after which the job will be killed. The default time limit
# is 60 minutes. Specified as HH:MM:SS or D-HH:MM
#SBATCH --time=30-00:00
# Prevent multithreading of the cores
#S... |
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityStandardAssets.CrossPlatformInput;
public class ReplayManager : MonoBehaviour
{
public bool isRecording = true;
private bool isPausing = false;
private float fixedDeltaTime;
// Use this for initi... |
package cn.henry.study.web.database;
/**
* description: threadlocal实现的,线程安全的datebase容器
*
* @author Hlingoes
* @date 2020/4/2 22:54
*/
public class DatabaseContextHolder {
private static ThreadLocal<String> routeKey = new ThreadLocal<String>();
/**
* description: 绑定当前线程数据源路由的key,在使用完成之后,必须调用removeRou... |
@extends('layout');
@section('container')
<div class="row justify-content-between">
<div class="col-7 bg-warning">
Book List
</div>
<div class="col-4 bg-warning">
Category
</div>
</div>
<div class="row">
<div class="col-4 mt-3">
... |
<?php
return [
'administration' => 'Administration',
'redaction' => 'Rédaction',
'home' => 'Retour sur le site',
'logout' => 'Déconnexion',
'dashboard' => 'Tableau de bord',
'users' => 'Utilisateurs',
'see-all' => 'Voir tous',
'add' => 'Ajouter',
'messages' => 'Messages',
'comme... |
using System.Numerics;
using UnitsNet;
using UnitsNet.Units;
namespace PiTop.MakerArchitecture.Expansion
{
public class RotationalSpeed3D
{
private const RotationalSpeedUnit UNIT = RotationalSpeedUnit.DegreePerSecond;
public RotationalSpeed3D(RotationalSpeed x, RotationalSpeed y, RotationalS... |
package main
import (
"bufio"
"encoding/json"
"flag"
"fmt"
"io"
"log"
"os"
"path/filepath"
"strings"
"github.com/pkg/sftp"
"golang.org/x/crypto/ssh"
)
type Config struct {
Target struct {
Host string `json:"host"`
Port string `json:"port"`
Username string `json:"username"`
Password string... |
// Copyright 2021 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 "ash/wm/float/float_controller.h"
#include "ash/accelerators/accelerator_controller_impl.h"
#include "ash/constants/ash_features.h"
#include "as... |
module Days.Day25 (day25) where
import Data.Char
import Data.List
import Days.ReadPuzzle
day25 :: IO ()
day25 = do
input <- readPuzzle 25
putStr "Answer: "
let [row, col] = parseCoordinate input
print $ foldl' (\r _ -> next r) start [1..which (row, col) - 1]
start :: Integer
sta... |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +-------------------------------------------------... |
/*
* Copyright (c) 2010-2015 Pivotal Software, Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. You
* may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... |
import { Registry } from './registry';
import { Class } from './types';
export interface RegisterOptions {
identifier?: string;
allowProps?: string[];
}
class _ClassRegistry extends Registry<Class> {
constructor() {
super(c => c.name);
}
private classToAllowedProps = new Map<Class, string[]>();
regi... |
<?php
namespace FondOfSpryker\Yves\Contentful\Dependency\Client;
use Spryker\Client\Search\Dependency\Plugin\QueryInterface;
interface ContentfulToSearchClientInterface
{
/**
* @param \Spryker\Client\Search\Dependency\Plugin\QueryInterface $searchQuery
* @param array $resultFormatters
* @param arr... |
module Terraspace::Plugin
class Finder
def find_with(options)
result = if options.key?(:plugin)
find_with_plugin(options[:plugin])
elsif options.key?(:backend)
find_with_backend(options[:backend])
elsif options.key?(:resource)
... |
---
title: The Voice Of The Unheard
created: 2021-04-10T13:09:00-07:00
modified: 2021-04-10T13:09:41-07:00
---
https://youtu.be/pjYZZC5i_AU |
import React from 'react';
import {StyleSheet, TouchableNativeFeedback, View} from 'react-native';
import Panel from '../ui/Panel';
import {PrimaryText, SecondaryHeader, SecondaryText} from '../ui/Text';
import {
getDistanceText,
getDurationText,
getPaceText,
getWorkoutsLabel
} from '../../lib/entry';
i... |
package edu.gwu.algorithms.sorting;
public class InsertionSort {
public static void main(String[] args) {
int[] nValues = { 10000, 20000, 40000, 60000, 80000, 100000 };
for (int n : nValues) {
double[] inputArray = new double[n];
for (int i = 0; i < inputArray.length; i++) {
inputArray[i] = Math.rand... |
using System;
using Newtonsoft.Json.Linq;
namespace Clarifai.API.Requests
{
/// <summary>
/// A paginated Clarifai request. It divides the results into pages.
/// </summary>
/// <typeparam name="T">the type of the response content</typeparam>
public abstract class ClarifaiPaginatedRequest<T> : Cla... |
import * as React from "react";
import {
Filter,
FilterChips,
FilterTab,
FilterTabs
} from "../../../components/TableFilter";
import i18n from "../../../i18n";
export type SkillListFilterTabs =
| "all"
| "available"
| "outOfStock"
| "custom";
interface SkillListFilterProps {
currentTab: SkillListFi... |
# frozen_string_literal: true
module Testing
module Merced
# Process a unit JSON and recursively upsert
# its children before yielding back to {Testing::Merced::ProcessUnits}.
#
# @api private
# @operation
class ProcessUnit
include Dry::Monads[:do, :result]
include Dry::Effects.Re... |
from py2asm.functions.base import Function
from py2asm.functions.groups import BiosProcedureCall
class InputChar(Function):
def __init__(self, echo=True):
self.echo = echo
super().__init__()
def get_instructions(self):
return (
BiosProcedureCall(0x01 if self.echo else 0x0... |
export enum Constants {
IS_OFFLINE = "IS_OFFLINE",
SET_USER = "SET_USER",
SET_REPO = "SET_REPO",
SET_ERROR = "SET_ERROR",
RESET = "RESET",
}
|
import 'package:RasPiFinder/models/user.dart';
import 'package:RasPiFinder/screens/auth/authenticate.dart';
import 'package:RasPiFinder/screens/onboarding/sharedPreferences.dart';
import 'package:RasPiFinder/services/database.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import... |
package com.yq.controller.collection;
import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.apache.commons.lang.StringUtils;
import org.change.controller.base.BaseController;
import org.change.entity.Page;
import o... |
package client
import (
"bufio"
"errors"
"fmt"
"io/ioutil"
"net/http"
"net/url"
"os"
"os/user"
"regexp"
"strings"
"code.google.com/p/goauth2/oauth"
"github.com/google/go-github/github"
"github.com/howeyc/gopass"
"github.com/jmcvetta/napping"
)
// CreateClient は認証済みの github.Client を返します
func CreateClien... |
#!/bin/sh
set -e
while [ 1 ]; do
sh -c "/backup.sh $POSTGRES_HOST $POSTGRES_USER $POSTGRES_PASSWORD $POSTGRES_DB /backups"
sh -c "/delete_old_backup.sh $TOKEEP /backups"
echo "Waiting $DELAY..."
sleep $DELAY
done |
# Ruby bindings for zstd library.
# Copyright (c) 2019 AUTHORS, MIT License.
require "zstds_ext"
require_relative "error"
require_relative "validation"
module ZSTDS
class Dictionary
TRAIN_DEFAULTS = {
:gvl => false,
:capacity => 0
}
.freeze
attr_reader :buffer
def initialize(... |
module StackSpec (main, spec) where
import Test.Hspec
import Stack
main :: IO ()
main = hspec spec
spec :: Spec
spec = do
describe "null" $ do
it "is null when stack is empty" $ do
Stack.null Stack.mkStack
it "is not null when stack is empty" $ do
not $ Stack.null $ Stack.cons 1 Stack.mkStack
... |
(global as any).__API_HOST__ = "example.com";
(global as any).__API_ENDPOINT__ = "/api";
import * as nock from "nock";
import { createAction } from "redux-actions";
import {
hydrateStore,
IS_DELETING,
IS_UPDATING,
reducer,
setEndpointHost,
setEndpointPath,
setHeader,
setHeaders
} from "../src/jsonapi";... |
using System;
using System.Collections.Generic;
using System.Text;
using ZoDream.Shared.Input;
namespace ZoDream.Shared.OS.WinApi.Helpers
{
internal class CallbackData
{
public CallbackData(IntPtr wParam, IntPtr lParam)
{
WParam = wParam;
LParam = lParam;
}
... |
# react-prog-web-apps
Code from Progressive Web Apps with React by S. Domes. Web ISBN-13: 978-1-78829-613-7
|
package com.google.common.base;
import javax.annotation.Nullable;
class Joiner$1 extends Joiner {
final /* synthetic */ Joiner this$0;
final /* synthetic */ String val$nullText;
Joiner$1(Joiner joiner, Joiner x0, String str) {
this.this$0 = joiner;
this.val$nullText = str;
super(x... |
package maryk.rocksdb
actual enum class CompactionReason(
internal val value: Byte
) {
kUnknown(0x0),
kLevelL0FilesNum(0x1),
kLevelMaxLevelSize(0x2),
kUniversalSizeAmplification(0x3),
kUniversalSizeRatio(0x4),
kUniversalSortedRunNum(0x5),
kFIFOMaxSize(0x6),
kFIFOReduceNumFiles(0x7),... |
# frozen_string_literal: true
class Rcm
attr_reader :version
def initialize(version:)
@version = version
end
def install!
if installed?
puts "Skipped. The rcm has already installed."
return
end
Brew.installed? ? install_from_brew! : install_from_source!
end
private
def in... |
---
patternOptions: hugo
path: /en/docs/patterns/hugo/options
---
|
from collections.abc import Iterable as _Iterable
from typing import Iterable, Optional, Tuple, Union
import numpy
import judo
from judo.data_types import dtype
from judo.functions.api import API
from judo.judo_tensor import tensor
from judo.typing import Scalar, Tensor
class Bounds:
"""
The :class:`Bounds`... |
# frozen_string_literal: true
# require 'data_importable'
class DataImportTeam < ApplicationRecord
include DataImportable
belongs_to :user # [Steve, 20120212] Do not validate associated user!
belongs_to :team, foreign_key: 'conflicting_id', optional: true
validates :import_text, presence: true
belongs_... |
CREATE function RangeExecuteError (@Uname nvarchar(20))
returns table
as
return
select
case
when ExecUsedTime < 6 then ExecUsedTime
when cast(ExecUsedTime/10 as int)*10 > 50 then 9999
else (cast(ExecUsedTime/10 as int)*10)+10
end as xRange,
0 as SuccessCount, 1 as ErrorCount
from plann... |
//
// Attachment+FICAttachment.h
// Mage
//
//
#import "Attachment.h"
#import "FICEntity.h"
extern NSString *const AttachmentFamily;
extern NSString *const AttachmentSmallSquare;
extern NSString *const AttachmentMediumSquare;
extern CGSize const AttachmentSquareImageSize;
extern CGSize const AttachmentiPadSquareIm... |
import { execute, GraphQLSchema, parse } from 'graphql';
import { join } from 'path';
import { loadGraphQLSchemaFromOpenAPI } from '../src/loadGraphQLSchemaFromOpenAPI';
import { printSchemaWithDirectives } from '@graphql-tools/utils';
import { fetch } from 'cross-undici-fetch';
import { startServer, stopServer } from ... |
(function() {
'use strict';
function ServerCommService(appConfig, $http) {
this.update = function(dataType, id, data) {
return $http.put(appConfig.restUrl + dataType + '/' + id, data)
.then(function(response) {
return response.data;
});
};
this.add = function(data... |
# Copyright (c) 2015, Plume Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditio... |
/*
* Copyright 2019 New Vector Ltd
*
* 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 ... |
package hmmlearn.base
import breeze.linalg.{DenseMatrix, DenseVector}
import breeze.numerics.log
import hmmlearn.MultinomialHMM
import org.scalatest.{FlatSpec, Matchers}
class MutinomialHMMTest extends FlatSpec with Matchers {
"computeLogLikelihood" should "produce the right results" in {
val X = DenseVector(... |
export const LANDING = "LANDING";
export const MAIN = "MAIN";
export const LOGIN = "LOGIN";
export const CATEGORY = "CATEGORY";
export const HOME = "HOME";
export const PRODUCT_LIST = "PRODUCT_LIST";
export const PRODUCT_DETAIL = "PRODUCT_DETAIL";
|
;;; ida.lisp
;;;; Iterative Deepening A* (IDA*) Search
(defun tree-ida*-search (problem)
"Iterative Deepening Tree-A* Search [p 107]."
;; The main loop does a series of f-cost-bounded depth-first
;; searches until a solution is found. After each search, the f-cost
;; bound is increased to the smallest f-cost ... |
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// test w/ `dart test -N sort_child_properties_last`
// ignore_for_file: prefer_expression_function_bod... |
#!perl
use strict;
use warnings;
use FindBin;
BEGIN { require "$FindBin::Bin/test-helper-operation.pl" }
expect_operation_object_upload_create (
'Client / named arguments' => \& client_object_upload_create_named_arguments,
'Client / configuration hash' => \& client_object_upload_create_configuration_hash,
);
... |
package ADAMK::Dancer2::Twittersect::Twitter;
use 5.010;
use strict;
use warnings;
use Try::Tiny 0.22;
use YAML::Tiny 1.50 ();
use Params::Util 1.04 ':ALL';
use Net::Twitter 4.01010 ();
use ADAMK::Dancer2::Twittersect::Exception;
use Object::Tiny 1.08 qw{
consumer_api
consumer_secret
access_token
twitter
};... |
import React, { Component } from "react";
import { Cart } from './Cart';
import { CartProvider } from './CartContext';
import Search from './Search';
class Home extends Component {
// componentDidMount(){
// fetch('http://localhost:8080/api/storeproducts/getStoreProductById/'+0, {
// method: 'POST',
... |
class Period < ActiveRecord::Base
# ----- Associations -----
belongs_to :event
has_many :participants, :dependent => :destroy
has_many :event_reports, :dependent => :destroy
has_many :messages
acts_as_list :scope => :position
# ----- Callbacks -----
after_create :create_smso_aar, :c... |
#!/bin/sh
# First time user runs the game, make sure they get an .ini file
# that knows where to find skulltag.pk3 and friends.
if [ ! -e ~/.skulltag/skulltag.ini ]; then
mkdir -p ~/.skulltag
cat /usr/share/skulltag/skulltag.ini.default > ~/.skulltag/skulltag.ini
fi
DIR=/usr/@LIB@/skulltag
export LD_LIBRARY_PATH=... |
package desiredstatefetcher_test
import (
"github.com/cloudfoundry/hm9000/config"
"github.com/cloudfoundry/hm9000/desiredstatefetcher"
"github.com/cloudfoundry/hm9000/helpers/httpclient"
"github.com/cloudfoundry/hm9000/models"
"github.com/cloudfoundry/hm9000/testhelpers/appfixture"
"github.com/cloudfoundry/hm900... |
@inherits WebViewPage<PasswordPostModel>
@using FormUI.Controllers.Home
@{
ViewBag.Title = "Password";
}
<div class="grid"><!--
--><div class="grid__item large--eight-twelfths">
<p>
You have reached a <span style="text-decoration: underline">test</span> site that is password protected;
pl... |
-- file:sequence.sql ln:124 expect:true
SELECT setval('sequence_test'::regclass, 32)
|
package eu.kanade.tachiyomi.data.database.tables
object SearchMetadataTable {
const val TABLE = "search_metadata"
const val COL_MANGA_ID = "manga_id"
const val COL_UPLOADER = "uploader"
const val COL_EXTRA = "extra"
const val COL_INDEXED_EXTRA = "indexed_extra"
const val COL_EXTRA_VERSION ... |
#ifndef __DEBUG_OUTPUT_H__
#define __DEBUG_OUTPUT_H__
#include <stdint.h>
#define DEBUG_OUTPUT_BASE_PORT (0x402)
class DebugOutput {
public:
DebugOutput();
~DebugOutput();
void write(uint32_t port, const uint32_t *value, uint8_t size);
void read(uint32_t port, uint32_t *value, uint8_t size);
};
#e... |
bash$ declare -A myassocarray
bash$ myassocarray=([apple]="red" [banana]="yellow" [carrot]="orange")
bash$ printf '%s\n' "${myassocarray[banana]}"
yellow
|
; QXL BASIC Routines
section exten
xdef qxl_prini
xref disp_update
xref ut_gxin1
xref ut_gtint
xref ut_procdef
xref ak_init
xref smsq_xreset
xref wmon_def ; to get it loaded
include 'dev8_keys_err'
include 'dev8_keys_qdos_sms'
include 'dev8_keys_68000'
include 'dev8_keys_sys'
include 'dev8_smsq_qxl_... |
#ifndef VERTICALPANEL_HPP
#define VERTICALPANEL_HPP
namespace kgd::gui {
struct VLabel : public QLabel {
VLabel (const QString &text = "", QWidget *parent = nullptr)
: QLabel(text, parent) {}
QSize minimumSizeHint(void) const override {
return QLabel::minimumSizeHint().transposed();
}
QSize sizeHint... |
package com.asf.appcoins.sdk.core.web3;
import java.math.BigDecimal;
import org.web3j.abi.datatypes.Address;
import org.web3j.protocol.core.methods.request.Transaction;
import p320f.p321a.C13797m;
public interface AsfWeb3j {
C13797m<String> call(Transaction transaction);
C13797m<BigDecimal> getBalance(Addres... |
class OpenAPIParser::SchemaValidator
class FloatValidator < Base
include ::OpenAPIParser::SchemaValidator::Enumable
include ::OpenAPIParser::SchemaValidator::MinimumMaximum
# validate float value by schema
# @param [Object] value
# @param [OpenAPIParser::Schemas::Schema] schema
def coerce_and... |
package com.twitter.util.validation.internal
import java.lang.annotation.Annotation
import java.lang.reflect.Method
import java.util
import sun.reflect.annotation.AnnotationParser
private[validation] object AnnotationFactory {
/**
* Creates a new Annotation (AnnotationProxy) instance of
* the given annotatio... |
require "gmail_cli/version"
require "gmail_cli/logger"
require "gmail_cli/oauth2_helper"
require "gmail_cli/shell"
require "gmail_cli/imap"
|
/* (c) Copyright 2014 Temasys Communication, Pte Ltd.
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 la... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2017-present Facebook, Inc. (http://www.facebook.com) |
+---------... |
---
name: Unity
categories:
- darkmira
tags:
- yellow
sponsor: Darkmira Tour PHP
reverse: Darkmira Tour PHP logo
photos:
-
file: yellow-darkmira-0-400x300.jpg
link: https://www.flickr.com/photos/atomictaco/48746702583/
credit: Tim Bond
-
file: yellow-darkmira-1-400x300.jp... |
package schedule
import (
"fmt"
coreScheduler "github.com/mycontroller-org/server/v2/pkg/service/core_scheduler"
scheduleTY "github.com/mycontroller-org/server/v2/pkg/types/schedule"
busUtils "github.com/mycontroller-org/server/v2/pkg/utils/bus_utils"
"go.uber.org/zap"
)
const (
schedulePrefix = "user_schedule... |
using Monobank.API.Enums;
using System.Text.Json.Serialization;
namespace Monobank.API.DTO
{
public sealed class CurrencyInfo
{
[JsonPropertyName("currencyCodeA")]
public CurrencyCode CurrencyCodeA { get; set; }
[JsonPropertyName("currencyCodeB")]
public CurrencyCode CurrencyC... |
# MunicipalityDataNorway
Here I have gathered municipality data from Statistics Norway Statistical Bank.
I have the datasets in the following order
1. Sociodemographics.
2.
3. User charges
cb stands for codebook! |
package list
import list.P18.slice
import org.scalatest.{FlatSpec, ShouldMatchers}
class P18Spec extends FlatSpec with ShouldMatchers {
"slice" must "return an empty list when given any start and end and an empty list" in {
val list = List()
slice(3, 7, list) should be(Nil)
}
"slice" must "return a li... |
// Copyright 2016 Google 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 in... |

Project for sentries organisation
## Bot
under construction...
## License
This software is released under the [MIT License](/LICENSE).
© 2020 Pavel Solovev
|
const { Pool } = require('pg');
class PlaylistsService {
constructor() {
this._pool = new Pool();
}
async getPlaylists(playlistId) {
const playlistQuery = {
text: `SELECT playlists.id, playlists.name
FROM playlists
WHERE playlists.id = $1`,
values: [playlistId],
};
const ... |
package tin.thurein.haulio_test.injection
import dagger.Binds
import dagger.Module
import tin.thurein.data.repositories.JobRepositoryImpl
import tin.thurein.domain.repositories.JobRepository
@Module
interface RepositoryModule {
@Binds
fun bindJobRepository(jobRepositoryImpl: JobRepositoryImpl): JobRepository
... |
"use strict"
const path = require("path")
const debug = require("debug")("route4me-node:examples")
const chai = require("chai");
require("../init-examples-suite")
const helper = require("../../test/helper")
helper.describeIntegration(helper.toSuiteName(__filename), function T() {
this.timeout(5000)
this.slow(3000)... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
/**
* Copyright (C) 2011-2017 The PILE Developers <pile-dev@googlegroups.com>
*
* 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
*
* ... |
---
title: Bot Mangement
description: Bot Mangement
permalink: /security/bot-management
layout: page
---
## Manage bots with speed and accuracy by applying several detection methods
Take charge over bots by applying behavioral analysis, machine learning, and fingerprinting to stop bots.
### Demo coming soon! |
/***************************************************************************
Copyright (c) 2019, Mateusz Panuś
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies... |
# frozen_string_literal: true
module Bonita
module Customuserinfo
# API reference : http://documentation.bonitasoft.com/?page=customuserinfo-api#toc9
class ValueResource < ResourceKit::Resource
include ErrorHandler
resources do
action :associate_definition_to_user do
path 'bonit... |
<?php
namespace Cysha\Casino\Cards;
use BadMethodCallException;
use Illuminate\Support\Collection;
class CardCollection extends Collection
{
/**
* @var string
*
* @return static
*/
public static function fromString(string $cards)
{
$cards = explode(' ', $cards);
retur... |
<?php
namespace Tests\Feature;
use App\Models\Contract;
use App\Models\Job;
use App\Models\User;
use Illuminate\Foundation\Testing\LazilyRefreshDatabase;
use Tests\TestCase;
class JobSortTest extends TestCase
{
use LazilyRefreshDatabase;
public function setUp() :void
{
parent::setUp();
... |
//----------------------------------------------
// Flip Web Apps: Game Framework
// Copyright © 2016 Flip Web Apps / Mark Hewitt
//
// Please direct any bugs/comments/suggestions to http://www.flipwebapps.com
//
// The copyright owner grants to the end user a non-exclusive, worldwide, and perpetual license to this As... |
import {
SchemaComposer,
ObjectTypeComposer,
InputTypeComposer,
InterfaceTypeComposer,
ObjectTypeComposerFieldConfigMapDefinition,
} from "graphql-compose"
import { getFieldsEnum } from "./sort"
import { addDerivedType } from "./derived-types"
import { distinct, group, max, min, sum } from "../resolvers"
exp... |
# frozen_string_literal: true
if ENV['COVERAGE'] =~ /\Atrue\z/i
require 'simplecov'
require 'cadre/simplecov'
SimpleCov.start do
add_filter '/.bundle/'
add_filter '/spec/'
add_filter '/config/'
add_group 'Libraries', 'lib'
add_group 'Ignored Code' do |src_file|
File.readlines(src_file.... |
package com.youran.generate.pojo.vo;
import com.youran.common.pojo.vo.AbstractVO;
import com.youran.generate.pojo.dto.LabelDTO;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.util.List;
import... |
import { connect } from 'react-redux'
import BlockDetails from '../components/BlockDetails'
const mapStateToProps = (state) => {
return {
configuration: state.configuration.wallet,
blockchain: state.blockchain
}
}
const BlockContainer = connect(
mapStateToProps
)(BlockDetails)
export default BlockCon... |
IF OBJECT_ID('social.count_comments') IS NOT NULL
DROP FUNCTION social.count_comments;
GO
CREATE FUNCTION social.count_comments(@feed_id bigint)
RETURNS bigint
AS
BEGIN
DECLARE @count bigint;
WITH all_comments
AS
(
SELECT social.feeds.feed_id
FROM social.feeds
WHERE soc... |
export default [
{
path: '/',
redirect: { name: 'Login' }
},
{
path: '/login',
name: 'Login',
component: resolve => require(['@/components/login'], resolve),
meta: {
showInMenu: false
}
},
{
path: '/main',
name: 'Main',
component: resolve => require(['@/components... |
apm install file-icons
apm install file-types
apm install language-latex
apm install latex-autocomplete
apm install latextools
apm install linter
apm install linter-ui-default
apm install plist-converter
apm install teletype
|
# generated by 'rake generate'
require 'cocoa/bindings/NSCell'
module Cocoa
class NSBrowserCell < Cocoa::NSCell
attach_method :alternateImage, :args=>0, :names=>[], :types=>[], :retval=>"@"
attach_singular_method :branchImage, :args=>0, :names=>[], :types=>[], :retval=>"@"
attach_method :highlightColorInV... |
package io.scalanator.robot.environment
import io.scalanator.robot.BuildInfo
object Environment {
def info: Seq[String] = Seq(
"Environment:",
s" OS : $osVersion",
s" Java : $javaVersion",
s" Scala version: $scalaVersion",
s" Built with Scala version: ${BuildInfo.scalaVersion}",
s" Buil... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.