repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
ballcat-projects/Payment-Platform | payment-sdk/src/main/java/live/lingting/sdk/request/MixRequest.java | package live.lingting.sdk.request;
import java.util.Map;
import live.lingting.sdk.domain.HttpProperties;
import live.lingting.sdk.exception.MixException;
import live.lingting.sdk.model.MixModel;
import live.lingting.sdk.response.MixResponse;
/**
* @author lingting 2021/6/7 17:22
*/
public interface MixRequest<M ext... |
r4k0nb4k0n/Programming-Challenges | Baekjoon/6588.cpp | #include <cstdio>
#include <cstring>
#define SIZE 1000001
bool is_Prime[SIZE];
void Eratos(){
memset(is_Prime,true,SIZE);
is_Prime[0] = is_Prime[1] = false;
for(int i=2;i*i<=SIZE+1;i++)
if(is_Prime[i])
for(int j=i*i;j<=SIZE+1;j+=i)
is_Prime[j] = false;
return;
}
int main(){
int n;
Eratos();
while(scanf(... |
leeboardtools/mimon | src/util/FileActions.js | import * as path from 'path';
import { promises as fsPromises } from 'fs';
/**
* Determines if a file exists.
* @async
* @param {string} pathName The path name of the file to check for.
* @returns {Promise<boolean>} <code>true</code> if the file exists.
*/
export async function asyncFileExists(pathName) {
t... |
uwgraphics/PhysicsBasedModeling-Core | PhysBAM/Public_Library/PhysBAM_Geometry/Basic_Geometry/SEGMENT_2D.h | <filename>PhysBAM/Public_Library/PhysBAM_Geometry/Basic_Geometry/SEGMENT_2D.h
//#####################################################################
// Copyright 2003-2007, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>.
// This file is part of PhysBAM whose distribution is governed by the license contained in the acc... |
hao-wang/Montage | js-test-suite/testsuite/8ba607bc18042b54f62da7c0c355b21b.js | <reponame>hao-wang/Montage<gh_stars>10-100
load("201224b0d1c296b45befd2285e95dd42.js");
if (helperThreadCount() === 0)
quit();
evalInWorker(`schedulegc("s1");`);
|
yojiwatanabe/kibana | x-pack/test/functional/apps/maps/embeddable/embeddable_state.js | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import expect from '@kbn/expect';
export default function ({ getPageObjects,... |
bozdogan/bozdogan-in-uni | assignments/duplicate_detector/src/main/java/org/bozdogan/DuplicateDetector.java | <filename>assignments/duplicate_detector/src/main/java/org/bozdogan/DuplicateDetector.java<gh_stars>0
package org.bozdogan;
import java.io.IOException;
import java.nio.file.*;
import java.nio.file.attribute.BasicFileAttributes;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.u... |
xpharry/leetcode_and_lintcode_battle | leetcode/cpp/159.cpp | <reponame>xpharry/leetcode_and_lintcode_battle
/*
* Two Pointers (Sliding Window), Hash Table
*
*/
// version 1: recommended version
class Solution {
public:
int lengthOfLongestSubstringTwoDistinct(string s) {
int res = 0, left = 0;
unordered_map<char, int> hash;
for (int i = 0; i < s.si... |
nvitya/univio | device/gendev/board/AE5X-64/board_traces.cpp | <filename>device/gendev/board/AE5X-64/board_traces.cpp<gh_stars>0
/*
* file: board/AE5X-64/board_traces.cpp
* brief: Board specific stuff
* version: 1.00
* date: 2021-11-07
* authors: nvitya
*/
#include "board_pins.h"
void board_traces_init()
{
// console (trace) UART
hwpinctrl.PinSetup(POR... |
bobexchen/interest | interest-server/src/main/java/com/interest/model/entity/PostCardEntity.java | <gh_stars>100-1000
package com.interest.model.entity;
import lombok.Data;
/**
* @author wanghuan
*/
@Data
public class PostCardEntity {
private Integer id;
private String title;
private String content;
private Integer interestid;
private String createtime;
private String replytime;
... |
shihab4t/Competitive-Programming | Online-Judges/HackerRank/Data-Structures/Linked-Lists/Insert_a_node_at_the_head_of_a_linked_list.c | <reponame>shihab4t/Competitive-Programming<filename>Online-Judges/HackerRank/Data-Structures/Linked-Lists/Insert_a_node_at_the_head_of_a_linked_list.c
#include <bits/stdc++.h>
using namespace std;
class SinglyLinkedListNode {
public:
int data;
SinglyLinkedListNode *next;
SinglyLinkedListN... |
DiracKeeko/js-financial-tools | src/index.js | <reponame>DiracKeeko/js-financial-tools
import * as calc from "./calc";
import * as display from "./display";
import * as util from "./util";
export default {
...calc,
...display,
...util
} |
BluTree/Ruken | Ruken/Source/Include/ECS/ComponentField.hpp | <gh_stars>1-10
/*
* MIT License
*
* Copyright (c) 2019 <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 right... |
kborkows/libiqxmlrpc | libiqxmlrpc/socket.cc | <gh_stars>10-100
// Libiqxmlrpc - an object-oriented XML-RPC solution.
// Copyright (C) 2011 <NAME>
#include <errno.h>
#include <boost/cerrno.hpp>
#include "socket.h"
#include "net_except.h"
#if _MSC_VER >= 1700
#include <ws2tcpip.h>
#endif
using namespace iqnet;
Socket::Socket()
{
if( (sock = socket( PF_INET, ... |
opengauss-mirror/openGauss-graph | src/gausskernel/storage/access/rmgrdesc/hashdesc.cpp | /* -------------------------------------------------------------------------
*
* hashdesc.cpp
* rmgr descriptor routines for access/hash/hash.cpp
*
* Portions Copyright (c) 2020 Huawei Technologies Co.,Ltd.
* Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, R... |
Jahhow/Camera-Roll-Android-App | app/src/main/java/us/koller/cameraroll/data/fileOperations/Move.java | <reponame>Jahhow/Camera-Roll-Android-App
package us.koller.cameraroll.data.fileOperations;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.os.Environment;
import java.io.File;
import java.util.ArrayList;
import us.koller.cameraroll.R;
imp... |
test-wiz-sec/pulumi-azure-nextgen | sdk/go/azure/sql/v20170301preview/job.go | <reponame>test-wiz-sec/pulumi-azure-nextgen
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package v20170301preview
import (
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
... |
timgates42/processing.py | mode/examples/Basics/Typography/FiveWaysOfWritingText/FiveWaysOfWritingText.pyde | # Demonstration of the 5 ways of calling text() in Python mode.
def setup():
size(500, 500, P3D)
def draw():
background(255)
fill(0)
noStroke()
# text(string, x, y)
text("Shillings", 10, 12)
# text(num, x, y)
text(12.3, 10, 24)
# text(string, x, y, z)
text("Pence", 1... |
phylame/pmm | pbm/src/main/java/pmm/pbm/data/dao/iface/GenreDAO.java | <reponame>phylame/pmm
package pmm.pbm.data.dao.iface;
import java.util.List;
import org.springframework.stereotype.Repository;
import pmm.pbm.service.params.ListGenreDTO;
import pmm.pbm.service.results.GenreVO;
@Repository
public interface GenreDAO {
List<GenreVO> getGenres(ListGenreDTO dto);
}
|
unratito/ceylon.language | runtime-js/jsint/OpenFunction/getParameterDeclaration.js | function (nm){
var pd=this.parameterDeclarations;
for (var i=0; i < pd.size; i++) {
if (nm.equals(pd[i].name))return pd[i];
}
return null;
}
|
wlchs/ews-javascript-api | js/MailboxSearch/SearchMailboxesParameters.js | <gh_stars>0
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var SearchPageDirection_1 = require("../Enumerations/SearchPageDirection");
var SearchResultType_1 = require("../Enumerations/SearchResultType");
var SortDirection_1 = require("../Enumerations/SortDirection");
/**
* Represents sea... |
lechuongit/alibaba-cloud-sdk-go | services/sddp/struct_data_limit_list_inner.go | <gh_stars>1000+
package sddp
//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, sof... |
emilyparkes/event-web | client/reducers/public-e/public-events.js | import {
RECEIVE_PUBLIC_EVENTS
// ,
// RECEIVE_PUBLIC_EVENT_BY_NAME
} from '../../actions/public-events'
const initialState = []
const publicEvents = (state = initialState, action) => {
switch (action.type) {
case RECEIVE_PUBLIC_EVENTS:
return action.publicEvents
default:
return state
}
... |
eengle/s2-geometry-library-java | tests/com/google/common/geometry/S2ClosestPointQueryTest.java | /*
* Copyright 2015 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 ... |
genisysram/Chronicle-Core | src/main/java/net/openhft/chronicle/core/Maths.java | /*
* Copyright 2016-2020 chronicle.software
*
* https://chronicle.software
*
* 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
*
* Un... |
cristianoperez/vraptor | vraptor-core/src/main/java/br/com/caelum/vraptor/ioc/spring/InjectionBeanPostProcessor.java | /***
* Copyright (c) 2009 Caelum - www.caelum.com.br/opensource
* 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-... |
tkowark/repmine | app/models/owl_wrapper/datatype_property.rb | class DatatypeProperty
# domain is an owl_class object, range an RDF::Resource
attr_accessor :name, :range, :domain, :attribute_url
include RdfSerialization
def initialize(name, range, domain)
@name = name
@range = range.is_a?(RDF::Resource) ? range : RDF::Resource.new(range)
@domain = domain
en... |
qovalenko/landgreen.github.io | physics/notes/electromagnetism/coulomb/charge1.js | const setup1 = function() {
var canvas = document.getElementById("charge1");
var ctx = canvas.getContext("2d");
canvas.width = document.getElementsByTagName("article")[0].clientWidth;
ctx.font = "30px Arial";
ctx.fillStyle = "#aaa";
ctx.textAlign = "center";
ctx.fillText("click to start simulation", canva... |
itcomusic/ot | errors.go | <reponame>itcomusic/ot
package ot
import (
"errors"
"fmt"
"regexp"
"github.com/itcomusic/ot/internal/client"
)
var (
regDuplicate = regexp.MustCompile(`^An item with the name '.*' already exists.$`)
ErrTokenExpire = fmt.Errorf("ot: token expired")
)
type NodeRetrievalError struct {
*client.OpError
isNotFoun... |
nadiaschutz/jennifer_dewalt | app/controllers/globulator/page_controller.rb | class Globulator::PageController < ApplicationController
def index
@title = 'Globulator'
end
end
|
MobileDev418/react_redux_master | src/components/widgets/CodePlayground2/src/components/ViewTabs.js | <gh_stars>1-10
import styles from './ViewTabs.module.scss';
import React, { Component, PropTypes } from 'react';
import { Tab, Tabs, TabList, TabPanel } from 'react-tabs';
import CodeMirrorEditor from '../../../../helpers/codeeditor';
const RunButton = require('../../../../helpers/runCodeButton');
const JudgeButton = r... |
articuly/alipay-sdk-python-all | alipay/aop/api/domain/AlipayUserCertDocVehicleLicense.py | <reponame>articuly/alipay-sdk-python-all<gh_stars>0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import simplejson as json
from alipay.aop.api.constant.ParamConstants import *
class AlipayUserCertDocVehicleLicense(object):
def __init__(self):
self._encoded_img_main = None
self._encoded_img_vice... |
zhuxiang/LeetCode-Python | src/48-RotateImage.py | class Solution(object):
def rotate(self, matrix):
"""
:type matrix: List[List[int]]
:rtype: void Do not return anything, modify matrix in-place instead.
"""
"""
* clockwise rotate
* first reverse up to down, then swap the symmetry
* 1 2 3 7 8 9 ... |
boichuk-oleh/new-js-sdk | src/horizon/resources/generic_test_cases.spec.js | <gh_stars>10-100
import {
testRequestSignatureBase,
testGetRequestBase
} from '../../test_helpers/generic_test_cases.spec'
import { HorizonResponse } from '../response'
export function testRequestSignature ({
horizon,
resourceGroup,
method,
args,
path,
params
}) {
testRequestSignatureBase({
serve... |
suhao/asioexpress | source/AsioExpress/EventHandling/EventQueue.hpp | // Copyright <NAME> 2013
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include <vector>
#include <set>
#include <limits>
#include <boost/shared_ptr.hpp>
#inc... |
qiuhere/Bench | core/src/main/java/site/ycsb/data_gen/Graph_gen/Graph_gen/glib-adv/hashgenericmp.h | <gh_stars>1000+
#include "bd.h"
#ifdef GLib_GLIBC
inline unsigned int __sync_fetch_and_add_2(volatile unsigned int* p, unsigned int incr)
{
unsigned int result;
asm volatile("lock; xadd %0, %1" :
"=r"(result), "=m"(*p):
"0"(incr), "m"(*p) :
"memory");
return result + 1;
... |
ut-osa/syncchar | linux-2.6.16-unmod/arch/x86_64/kernel/vsyscall.c | /*
* linux/arch/x86_64/kernel/vsyscall.c
*
* Copyright (C) 2001 <NAME> <<EMAIL>> SuSE
* Copyright 2003 <NAME>, SuSE Labs.
*
* Thanks to <EMAIL> for some useful hint.
* Special thanks to <NAME> for his early experience with
* a different vsyscall implementation for Linux/IA32 and for the name.
*
* vsysc... |
Kitware/super3d | tools/cam_and_homog_picker.cxx | /*ckwg +29
* Copyright 2014-2016 by Kitware, 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:
*
* * Redistributions of source code must retain the above copyright notice,
* this li... |
vanch3d/DEMIST | SimulDoc.cpp | // SimulDoc.cpp : implementation of the CSimulDoc class
//
#include "stdafx.h"
#include "Simul.h"
#include "MainFrm.h"
#include "SimulDoc.h"
#include "Tools\MvDocTemplate.h"
#include <MSimulation\PreyPredModel.h>
#include <MInstruction\LearningUnit.h>
#include <Prefs\Pref.h>
#include "LearnerTrace.h"
#include "BP... |
ja-pa/probe-engine | httpx/httplog/httplog.go | <filename>httpx/httplog/httplog.go
// Package httplog implements HTTP event logging. In OONI, we use this
// functionality to emit pleasant logging during normal operations.
package httplog
import (
"crypto/tls"
"net"
"net/http"
"strings"
"github.com/ooni/probe-engine/log"
"github.com/ooni/probe-engine/internal... |
charafau/TurboChat | app/src/main/java/com/nullpointerbay/turbochat/service/UserApiService.java | package com.nullpointerbay.turbochat.service;
import com.nullpointerbay.turbochat.model.User;
import io.reactivex.Flowable;
import retrofit2.http.GET;
import retrofit2.http.Query;
public interface UserApiService {
@GET("/user")
Flowable<User> getUser(@Query("nick") String nick);
}
|
Philipeano/post-it | server/dist/controllers/userController.js | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va... |
Iiqbal2000/microsite-logos-backend | src/config/db.config.js | <filename>src/config/db.config.js
require('dotenv').config();
const { NODE_ENV, NAME_DB_DEV, NAME_DB_PROD } = process.env;
module.exports = {
HOST: process.env.HOST_DB,
PORT: process.env.PORT_DB,
USER: process.env.USER_DB,
PASSWORD: <PASSWORD>,
DB: NODE_ENV === 'prod' ? NAME_DB_PROD : NAME_DB_DEV,
dialect... |
tencentyun/cos-java-sdk-hadoop-v4 | src/main/java/com/qcloud/cos/request/UploadSliceFileRequest.java | <reponame>tencentyun/cos-java-sdk-hadoop-v4
package com.qcloud.cos.request;
import com.qcloud.cos.common_utils.CommonParamCheckUtils;
import com.qcloud.cos.exception.ParamException;
/**
* @author chengwu 文件分片上传请求
*/
public class UploadSliceFileRequest extends UploadFileRequest {
// 默认分片大小1MB
private static ... |
prokopk1n/cpachecker-1 | src/org/sosy_lab/cpachecker/core/specification/PackageSanityTest.java | <reponame>prokopk1n/cpachecker-1
// This file is part of CPAchecker,
// a tool for configurable software verification:
// https://cpachecker.sosy-lab.org
//
// SPDX-FileCopyrightText: 2021 <NAME> <https://www.sosy-lab.org>
//
// SPDX-License-Identifier: Apache-2.0
package org.sosy_lab.cpachecker.core.specification;
i... |
shnaqawi/social-core | social_core/tests/backends/test_atlassian.py | <reponame>shnaqawi/social-core
import json
from httpretty import HTTPretty
from .oauth import OAuth2Test
class AtlassianOAuth2Test(OAuth2Test):
backend_path = 'social_core.backends.atlassian.AtlassianOAuth2'
tenant_url = 'https://api.atlassian.com/oauth/token/accessible-resources'
user_data_url = 'https... |
TheInterventionCentre/NorMIT-Plan-App | Libs/MRML/Core/Testing/vtkMRMLDisplayableHierarchyNodeDisplayPropertiesTest.cxx | <reponame>TheInterventionCentre/NorMIT-Plan-App<gh_stars>0
/*==============================================================================
Program: 3D Slicer
Copyright (c) Kitware Inc.
See COPYRIGHT.txt
or http://www.slicer.org/copyright/copyright.txt for details.
Unless required by applicable law or agr... |
rdkcmf/rdk-mediaframework | snmp/snmpmanager/ocStbHostSpecificationsInfo.cpp | /*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:
*
* Copyright 2011 RDK Management
*
* 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... |
trespasserw/MPS | plugins/mps-kotlin/solutions/kotlin.baseLanguage.runtime/source_gen/jetbrains/mps/kotlin/baseLanguage/toKotlin/JavaParameterDeclaration.java | <filename>plugins/mps-kotlin/solutions/kotlin.baseLanguage.runtime/source_gen/jetbrains/mps/kotlin/baseLanguage/toKotlin/JavaParameterDeclaration.java
package jetbrains.mps.kotlin.baseLanguage.toKotlin;
/*Generated by MPS */
import jetbrains.mps.kotlin.runtime.declaration.ParameterDeclaration;
import org.jetbrains.mp... |
tamada/stigmata | src/main/java/com/github/stigmata/BirthmarkElement.java | <filename>src/main/java/com/github/stigmata/BirthmarkElement.java
package com.github.stigmata;
import java.io.Serializable;
/**
* element of birthmark.
*
* @author <NAME>
*/
public class BirthmarkElement implements Serializable{
private static final long serialVersionUID = 943675475343245243L;
/**
... |
kaylangan/azure-devops-intellij | plugin.idea/src/com/microsoft/alm/plugin/idea/tfvc/core/TFSVcs.java | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See License.txt in the project root.
/*
* Copyright 2000-2009 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obt... |
bolghuar/ShadowEditor | ShadowEditor.Web/src/command/RemoveObjectCommand.js | import Command from './Command';
/**
* 移除物体命令
* @author dforrer / https://github.com/dforrer
* Developed as part of a project at University of Applied Sciences and Arts Northwestern Switzerland (www.fhnw.ch)
* @param object THREE.Object3D
* @constructor
*/
function RemoveObjectCommand(object) {
Command.call(thi... |
donnol/demo | golang/stdlib/crypto/sha256/main.go | package main
import (
"crypto/sha256"
"log"
)
func main() {
data := []byte("Hello, I am jd")
h224Data := sha256.Sum224(data)
log.Println(h224Data)
h256Data := sha256.Sum256(data)
log.Println(h256Data)
h2 := sha256.New224()
h2.Write(data)
h2Data := h2.Sum(nil)
log.Println(h2Data)
h := sha256.New()
h.W... |
Reality-Hack-2022/TEAM-08 | HololensBuild/Il2CppOutputProject/Source/il2cppOutput/Unity.XR.OpenXR.Features.ConformanceAutomation_CodeGen.c | #include "pch-c.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include "codegen/il2cpp-codegen-metadata.h"
// 0x00000001 System.Boolean UnityEngine.XR.OpenXR.Features.ConformanceAutomation.ConformanceAutomationFeature::OnInstanceCreate(System.UInt64)
extern void ConformanceAutomatio... |
slix007/XChange | xchange-ripple/src/test/java/org/knowm/xchange/ripple/dto/account/RippleAccountIntegration.java | package org.knowm.xchange.ripple.dto.account;
import static org.fest.assertions.api.Assertions.assertThat;
import java.io.IOException;
import org.junit.Test;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.ExchangeFactory;
import org.knowm.xchange.ripple.RippleExchange;
import org.knowm.xchange.ripple.se... |
OSADP/C2C-RI | C2CRIBuildDir/projects/C2C-RI/src/NTCIP2306v01_69/src/org/fhwa/c2cri/ntcip2306v109/tags/RIValidateTag.java | <filename>C2CRIBuildDir/projects/C2C-RI/src/NTCIP2306v01_69/src/org/fhwa/c2cri/ntcip2306v109/tags/RIValidateTag.java
/**
*
*/
package org.fhwa.c2cri.ntcip2306v109.tags;
import java.net.URL;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import net.sf.jameleon.exc... |
PRImA-Research-Lab/semantic-labelling | src/org/primaresearch/clc/phd/workflow/validation/gui/model/ValidationResultTreeItem.java | <reponame>PRImA-Research-Lab/semantic-labelling
package org.primaresearch.clc.phd.workflow.validation.gui.model;
import java.util.Iterator;
import javax.swing.tree.DefaultMutableTreeNode;
import org.primaresearch.clc.phd.workflow.validation.WorkflowValidationResult;
/**
* Tree item specialisation for workflow vali... |
vkuznet/PyQueryBuilder | pyquerybuilder/qb/LinkObj.py | #!/usr/bin/env python
"""
This class reads sqlalchemy schema metadata in order to construct
joins for an arbitrary query.
Review all the foreign key links.
"""
__author__ = "<NAME> <<EMAIL>>"
__revision__ = "$Revision: 1.11 $"
class LinkObj(object):
"""class encapsulate for foreign key"""
def __init__(self,... |
MikkoVirenius/ptv-1.7 | src/PTV.Application.Web/wwwroot/js/app/appComponents/PublishingEntityDialog/PublishingEntityDialog.js | <gh_stars>0
/**
* The MIT License
* Copyright (c) 2016 Population Register Centre (VRK)
*
* 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... |
cstom4994/SourceEngineRebuild | src/engine/src/net_chan.cpp | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: net_chan.cpp: implementation of the CNetChan_t struct.
//
//=============================================================================//
#include "../thirdparty/bzip2/bzlib.h"
#include "net_chan.h"
#include "tier1/strtools.... |
antoniojkim/CalcPlusPlus | Tests/Tests/StatisticsTests/meanTests.h | #include "../EngineTest.h"
#include <Catch2>
TEST_CASE("Mean Function Evaluation Tests", "[mean]") {
// SECTION("`Empty Test"){
// requireIsEqual("mean()", "Insufficient Number of Arguments for Function: mean");
// }
SECTION("`mean` Test 1"){
requireIsEqual("mean(3.93, -9.89, 4.34, 3.89,... |
everyvoter/everyvoter | geodataset/__init__.py | """Geodataset app"""
|
kebernet/erigo | ios/app/Erigo/com/google/common/hash/BloomFilter.h | //
// Generated by the J2ObjC translator. DO NOT EDIT!
// source: /Volumes/Personal/Documents/raspi-config/client-framework/build/j2oSources/com/google/common/hash/BloomFilter.java
//
#include "J2ObjC_header.h"
#pragma push_macro("INCLUDE_ALL_ComGoogleCommonHashBloomFilter")
#ifdef RESTRICT_ComGoogleCommonHashBloo... |
devinrsmith/deephaven-core | Util/src/test/java/io/deephaven/util/datastructures/TestRandomAccessDeque.java | package io.deephaven.util.datastructures;
import io.deephaven.base.testing.BaseArrayTestCase;
import junit.framework.TestCase;
import java.util.*;
import java.util.stream.Collectors;
public class TestRandomAccessDeque extends BaseArrayTestCase {
public void testSimple() {
List<Integer> values = new Array... |
georgehorrell/core | v23/query/engine/internal/query.go | // Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package internal
import (
"reflect"
"strconv"
"sync"
ds "v.io/v23/query/engine/datasource"
"v.io/v23/query/engine/internal/querychecker"
"v.io/v23... |
aa8y/leetcode | java/src/test/java/co/aa8y/leetcode/NumberOf1BitsTest.java | <gh_stars>1-10
package co.aa8y.leetcode;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
public class NumberOf1BitsTest {
private final NumberOf1BitsIterative solutionIterative = new NumberOf1BitsIterative();
private final NumberOf1BitsRecursive solutionRecursive =... |
zhanghai/Douya | app/src/main/java/com/google/android/material/textfield/ExpandedHintTextInputLayout.java | /*
* Copyright (c) 2018 <NAME> <<EMAIL>>
* All Rights Reserved.
*/
package com.google.android.material.textfield;
import android.annotation.SuppressLint;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.EditText;
import me.zhanghai.android.douya.R;
@SuppressLint("Restricted... |
google/ndash | ndash/src/extractor/seek_map.h | <reponame>google/ndash
/*
* Copyright 2017 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 appl... |
SinnerSchraderMobileMirrors/superdb | SuperDBCore/SuperDBCore/NumberPrivate.h | /* NumberPrivate.h Copyright (c) 1998-2009 <NAME>. */
/* This software is open source. See the license. */
extern id FSNumberClass;
extern id NSNumberClass;
// MACROS
#define VERIF_OP_NSNUMBER(METHOD) {if (![operand isKindOfClass:NSNumberClass]) FSArgumentError(operand,1,@"NSNumber",METHOD);}
|
fangedward/pylot | pylot/perception/detection/detection_eval_operator.py | <gh_stars>0
"""Implements an operator that eveluates detection output."""
import heapq
import time
import erdos
import pylot.perception.detection.utils
from pylot.utils import time_epoch_ms
class DetectionEvalOperator(erdos.Operator):
"""Operator that computes accuracy metrics using detected obstacles.
Arg... |
mirkomorati/elaborato_ING_SW | doc/doxygen/html/search/classes_0.js | var searchData =
[
['aboutdialog', ['AboutDialog', ['../d7/d05/classmm_1_1_about_dialog.html', 1, 'mm']]],
['addpatientdialog', ['AddPatientDialog', ['../d7/d32/classmm_1_1_add_patient_dialog.html', 1, 'mm']]],
['addprescriptiondialog', ['AddPrescriptionDialog', ['../db/d16/classmm_1_1_add_p... |
alexey-lukyanenko/jdrive | src/game/util/Trackdir.java | package game.util;
/*
public enum Trackdir {
TRACKDIR_DIAG1_NE ( 0),
TRACKDIR_DIAG2_SE ( 1),
TRACKDIR_UPPER_E ( 2),
TRACKDIR_LOWER_E ( 3),
TRACKDIR_LEFT_S ( 4),
TRACKDIR_RIGHT_S ( 5),
//* Note the two missing values here. This enables trackdir -> track
// * conversion by doing (trackdir & 7) * /
TRACKDI... |
dgusoff/cas | support/cas-server-support-aup-core/src/main/java/org/apereo/cas/aup/AcceptableUsagePolicyRepository.java | package org.apereo.cas.aup;
import org.springframework.webflow.execution.RequestContext;
import java.io.Serializable;
import java.util.Optional;
/**
* This is {@link AcceptableUsagePolicyRepository}.
*
* @author <NAME>
* @since 4.2
*/
public interface AcceptableUsagePolicyRepository extends Serializable {
/... |
Semicheche/foa_frappe_docker | frappe-bench/apps/erpnext/erpnext/manufacturing/page/production_analytics/production_analytics.js | // Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
frappe.pages['production-analytics'].on_page_load = function(wrapper) {
frappe.ui.make_app_page({
parent: wrapper,
title: __('Production Analytics'),
single_column: true
});
new er... |
fujy/ROS-Project | src/rbx2/rbx2_arm_nav/scripts/moveit_fk_demo.py | #!/usr/bin/env python
"""
moveit_fk_demo.py - Version 0.1 2014-01-14
Use forward kinemtatics to move the arm to a specified set of joint angles
Created for the Pi Robot Project: http://www.pirobot.org
Copyright (c) 2014 <NAME>. All rights reserved.
This program is free software; you can... |
SummitRobotics/FRC2022 | src/main/java/frc/robot/commands/conveyor/NoI2cConveyor.java | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package frc.robot.commands.conveyor;
import edu.wpi.first.wpilibj2.command.CommandBase;
import frc.robot.subsystems.Con... |
imaginate/vitals | src/methods/fs/get.js | /**
* -----------------------------------------------------------------------------
* VITALS FS METHOD: get
* -----------------------------------------------------------------------------
* @section fs
* @version 4.1.3
* @see [vitals.get]{@link https://github.com/imaginate/vitals/wiki/vitals.get}
*
* @author <N... |
MortalViews/tao1 | tao1/sites/dao/apps/app/view.py | <gh_stars>10-100
import sys, os, time, jinja2, aiohttp_jinja2
from aiohttp import web
import aiohttp
from aiohttp.web import Application, Response, MsgType, WebSocketResponse
from core.union import cache
# from pymongo import *
# from gridfs import GridFS
from aiohttp_session import get_session
@cache("main_page", e... |
zhangyugehu/Go-Steps | queue/queue.go | package queue
type Queue []int
func (q *Queue) Push(v int){
*q = append(*q, v)
}
func (q *Queue) Pop() int{
return 0
}
|
snltd/wavefront-sdk | spec/wavefront-sdk/usergroup_spec.rb | #!/usr/bin/env ruby
# frozen_string_literal: true
require_relative '../spec_helper'
require_relative '../test_mixins/general'
# Unit tests for WavefrontUserGroup
#
class WavefrontUserGroupTest < WavefrontTestBase
attr_reader :users, :groups, :permission, :invalid_groups, :invalid_users,
:roles, :inval... |
atsgen/tf-vro-plugin | o11nplugin-contrail-workflows/src/main/js/workflows/removeRuleFromSecurityGroup.js | var index = ContrailUtils.stringToIndex(rule);
var list = item.getEntries().getPolicyRule();
list.splice(index, 1);
item.setEntries(new ContrailPolicyEntriesType(list));
item.update(); |
Falumpaset/handson-ml2 | backend/crawler/src/main/java/de/immomio/service/contract/DigitalContractItpStatusService.java | <gh_stars>0
package de.immomio.service.contract;
import de.immomio.data.propertysearcher.entity.itp.ItpCheckResponseBean;
import de.immomio.data.shared.entity.contract.signer.DigitalContractSigner;
import de.immomio.data.shared.entity.contract.signer.history.aes.itp.DigitalContractItpHistory;
import de.immomio.data.sh... |
companieshouse/data-reconciliation | src/test/java/uk/gov/companieshouse/reconciliation/service/elasticsearch/alpha/ElasticsearchAlphaIndexRouteTest.java | <gh_stars>1-10
package uk.gov.companieshouse.reconciliation.service.elasticsearch.alpha;
import org.apache.camel.CamelContext;
import org.apache.camel.Exchange;
import org.apache.camel.Produce;
import org.apache.camel.ProducerTemplate;
import org.apache.camel.support.DefaultExchange;
import org.apache.camel.test.sprin... |
cppshizoidS/Java | Sudoku/src/test/GameLogicTest.java | <filename>Sudoku/src/test/GameLogicTest.java
import com.wiseassblog.sudoku.computationlogic.GameLogic;
import com.wiseassblog.sudoku.constants.GameState;
import org.junit.jupiter.api.Test;
import java.util.Arrays;
import java.util.List;
public class GameLogicTest {
/**
* Start with the basic logic to valid... |
CDMiXer/Woolloomooloo | pkg/codegen/hcl2/model/type_none.go | // Copyright 2016-2020, Pulumi Corporation.
//
// 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/* Added Change to Keep Angler in Position, implemented beam break sensor */
//
// http://ww... |
ajaybhat/strongbox | strongbox-web-core/src/test/java/org/carlspring/strongbox/controllers/login/LoginControllerTest.java | package org.carlspring.strongbox.controllers.login;
import org.carlspring.strongbox.config.IntegrationTest;
import org.carlspring.strongbox.configuration.ConfigurationManager;
import org.carlspring.strongbox.forms.users.UserForm;
import org.carlspring.strongbox.rest.common.RestAssuredBaseTest;
import org.carlspring.st... |
neerajmathur/UMETRIX | EvaluatorMVC/APKDecompile/jd-core/sample/android/support/v4/app/ActivityCompat21.java | <reponame>neerajmathur/UMETRIX
package android.support.v4.app;
import android.app.Activity;
import android.app.SharedElementCallback;
import android.content.Context;
import android.graphics.Matrix;
import android.graphics.RectF;
import android.media.session.MediaController;
import android.os.Parcelable;
import android... |
sarang-apps/darshan_browser | extensions/browser/api/document_scan/fake_document_scan_interface.cc | <reponame>sarang-apps/darshan_browser
// Copyright 2019 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 "extensions/browser/api/document_scan/fake_document_scan_interface.h"
#include <utility>
namespace extens... |
poanchen/azure-sdk-for-ruby | azure_sdk/lib/latest/modules/datafactory_profile_module.rb | # encoding: utf-8
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
require 'azure_mgmt_data_factory'
module Azure::Profiles::Latest
module DataFactory
module Mgmt
Operations = Azure::DataFactory::Mgmt... |
mindsnacks/Zinc-ObjC | Zinc/Private/ZincBundleDeleteTask.h | <reponame>mindsnacks/Zinc-ObjC<gh_stars>0
//
// ZincBundleDeleteTask.h
// Zinc-iOS
//
// Created by <NAME> on 1/11/12.
// Copyright (c) 2012 MindSnacks. All rights reserved.
//
#import "ZincTask.h"
#import "ZincGlobals.h"
@interface ZincBundleDeleteTask : ZincTask
@property (readonly) NSString* bundleID;
@proper... |
anetczuk/ReinforcedAgent | src/agents/general/policy/mc/BoxCart.java | /**
*
*/
package agents.general.policy.mc;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import org.rlcommunity.rlglue.codec.types.Observation;
import agents.general.AgentAction;
import agents.general.policy.PolicyControl;
import agents.general.state.DiscreteState;
import agents.gene... |
azrobles/recipe-planner | src/test/java/com/ara/recipeplanner/repository/LocationRepositoryTest.java | package com.ara.recipeplanner.repository;
import static org.junit.jupiter.api.Assertions.assertEquals;
import com.ara.recipeplanner.model.Location;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;... |
ManjeetMehta/spring-boot-1.5 | mehta-applications-service/src/main/java/com/mehta/applications/service/impl/TestServiceImpl.java | package com.mehta.applications.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.mehta.applications.repository.TestRepository;
import com.mehta.applications.service.TestService;
@Service
public class TestServiceImpl impleme... |
MothOnMars/search-gov | spec/models/rtu_date_range_spec.rb | require 'spec_helper'
describe RtuDateRange do
let(:rtu_date_range) { described_class.new('some affiliate', 'search or click type here') }
shared_context 'when dates are available' do
let(:json_response) do
JSON.parse(
read_fixture_file('/json/rtu_dashboard/rtu_date_range.json')
)
end
... |
narimenhadjkacem/E-Reputation-mean-stack-project | server/public/angular/app/campaign/campaign.factory.js | /**
* Created by HP on 20/03/2017.
*/
(function () {
'use strict';
angular
.module('ATSApp.campaign')
.factory('CampaignFactory', CampaignFactory);
CampaignFactory.$inject = ['$resource'];
/* @ngInject */
function CampaignFactory($resource) {
/** Change The Link To your Rest URL From the JAV... |
krattai/AEBL | blades/xbmc/xbmc/android/jni/Cursor.h | #pragma once
/*
* Copyright (C) 2013 Team XBMC
* http://xbmc.org
*
* 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 2, or (at your option)
* any later version.... |
chiendarrendor/AlbertsAdalogicalAenigmas | Ada56/src/TriangleNotOnPathLogicStep.java | import grid.logic.LogicStatus;
import grid.logic.LogicStep;
import java.awt.Point;
public class TriangleNotOnPathLogicStep implements LogicStep<Board> {
Point p;
public TriangleNotOnPathLogicStep(Point p) { this.p = p; }
@Override
public LogicStatus apply(Board thing) {
return thing.isOnPath... |
bopopescu/drawquest-web | deploy/ec2/snapshot_rds.py | #!/usr/bin/python
from datetime import datetime, date, timedelta
import os
import sys; sys.path += ['/var/canvas/common', '../../common']
import yaml
import datetime
from collections import defaultdict
from boto.rds import RDSConnection
from configuration import aws
def snapshot_rds():
"""
dumb script that ... |
flexiooss/poom-ci | poom-ci-stages/src/main/java/org/codingmatters/poom/ci/pipeline/PipelineScript.java | <reponame>flexiooss/poom-ci
package org.codingmatters.poom.ci.pipeline;
import org.codingmatters.poom.ci.pipeline.descriptors.Pipeline;
import org.codingmatters.poom.ci.pipeline.descriptors.Stage;
import org.codingmatters.poom.ci.pipeline.descriptors.StageHolder;
import org.codingmatters.value.objects.values.ObjectVal... |
summonFox/unified | Plugins/Tweaks/FixTriggerEnterDetection.cpp | #include "nwnx.hpp"
#include "API/CNWSTrigger.hpp"
#include "API/CScriptEvent.hpp"
namespace Tweaks {
using namespace NWNXLib;
using namespace NWNXLib::API;
using namespace NWNXLib::API::Constants;
bool VectorInTriggerBounds(CNWSTrigger* trigger, Vector point)
{
Vector* vertices = trigger->m_pvVertices;
int... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.