repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
Lokideos/hero_rider | app/services/watcher/correct_game_trophies_service.rb | <reponame>Lokideos/hero_rider
# frozen_string_literal: true
module Watcher
class CorrectGameTrophiesService
prepend BasicService
option :player
option :token
option :game
option :new_trophy_ids
option :client, default: proc {
PsnService::V2::HttpClient.new(url: Settings.psn.v2.trophies... |
UCLA-SEAL/JShrink | code/jshrink/jshrink-lib/src/test/resources/junit4/src/test/java/org/junit/tests/experimental/theories/runner/TypeMatchingBetweenMultiDataPointsMethod.java | package org.junit.tests.experimental.theories.runner;
import static org.junit.Assert.assertThat;
import static org.junit.experimental.results.PrintableResult.testResult;
import static org.junit.experimental.results.ResultMatchers.isSuccessful;
import org.junit.Test;
import org.junit.experimental.theories.DataPoint;
i... |
SoftmedTanzania/opensrp-client-chw | opensrp-chw/src/main/java/org/smartregister/chw/activity/HivIndexContactProfileActivity.java | package org.smartregister.chw.activity;
import static org.smartregister.chw.hiv.util.Constants.ActivityPayload.HIV_MEMBER_OBJECT;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Pair;
import android.view.Gravity;
import android.... |
Sher-Chowdhury/javascript_study_guide | 13_asynchronous_programming/02_setTimeout3.js | <gh_stars>0
'use strict'
// the previous example can be rewritten like this:
console.log("hello 1")
// this time we're passing in a third and fourth argument into the setTimeout function.
// https://developer.mozilla.org/en-US/docs/Web/API/setTimeout
setTimeout((msg, number) => console.log(msg, number), 3000, "hell... |
Angel1612/Computer_Science_UNSA | Seguridad en Computacion/Laboratorio 1/4.cpp | #include<iostream>
#include<string.h>
#include<stdio.h>
#include <locale.h>
#include <wchar.h>
#include <stdlib.h>
#include <fstream>
using namespace std;
int main(){
string line;
setlocale(LC_CTYPE, "Spanish");
//setlocale(LC_ALL, "spanish");
//setlocale(LC_ALL,"");
//setlocale(LC_ALL, "es_ES");
... |
OpenMPDK/SMDK | lib/linux-5.18-rc3-smdk/drivers/net/ethernet/netronome/nfp/nfd3/xsk.c | // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
/* Copyright (C) 2018 Netronome Systems, Inc */
/* Copyright (C) 2021 Corigine, Inc */
#include <linux/bpf_trace.h>
#include <linux/netdevice.h>
#include "../nfp_app.h"
#include "../nfp_net.h"
#include "../nfp_net_dp.h"
#include "../nfp_net_xsk.h"
#include "n... |
varadeth/DIVOC | backend/test_certificate_signer/config/keys.js | const { KeyType } = require('certificate-signer-library/signer');
const publicKeyPem = process.env.CERTIFICATE_PUBLIC_KEY;
// eslint-disable-next-line max-len
const signingKeyType = process.env.SIGNING_KEY_TYPE || KeyType.RSA;
const privateKeyPem = process.env.CERTIFICATE_PRIVATE_KEY ;
const smsAuthKey = "";
module.exp... |
neopsis/envas-demo | envasDemo-wb/src/main/java/com/neopsis/envas/demo/BEnvasDemo.java | <reponame>neopsis/envas-demo
/*
* @(#)BNvHistoryDemo.java 25.04.2014
*
* Copyright (c) 2007 Neopsis GmbH
*
*
*/
package com.neopsis.envas.demo;
import com.neopsis.envas.BNvApplication;
import com.neopsis.envas.NvUI;
import javax.baja.nre.annotations.NiagaraType;
import javax.baja.sys.Sys;
import javax.baja... |
nfwGytautas/Triton | TritonCore/src/Triton2/Assert.h | #pragma once
#ifdef TR_ENABLE_ASSERTS
#define TR_ASSERT(x, ...) { if(!(x)) { __debugbreak(); } }
#define TR_CORE_ASSERT(x, ...) { if(!(x)) { __debugbreak(); } }
#define TR_STATIC_ASSERT(x, ...) { static_assert(x, __VA_ARGS__); }
#else
#define TR_ASSERT(x, ...)
#define TR_CORE_ASSERT(x, ...)
#define TR_STATIC_ASSERT(x,... |
ElSaico/vgmtrans | src/ui/qt/MenuBar.cpp | /*
* VGMTrans (c) 2002-2019
* Licensed under the zlib license,
* refer to the included LICENSE.txt file
*/
#include "MenuBar.h"
#include <QActionGroup>
#include <QDockWidget>
#include "Options.h"
#include "Root.h"
MenuBar::MenuBar(QWidget *parent, const QList<QDockWidget *> &dockWidgets) : QMenuBar(parent) {
a... |
vinirms/sites-responsivos | site arquiteto/node_modules/@fortawesome/free-solid-svg-icons/faPersonPraying.js | 'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var prefix = 'fas';
var iconName = 'person-praying';
var width = 384;
var height = 512;
var aliases = [128720,"pray"];
var unicode = 'f683';
var svgPathData = 'M255.1 128c35.38 0 63.1-28.62 63.1-64s-28.62-64-63.1-64S191.1 28.62 191.1 64S220.6 ... |
xbest/leetcode | src/main/java/com/gmail/imshhui/medium/ValidateBinarySearchTree.java | package com.gmail.imshhui.medium;
import com.gmail.imshhui.bean.TreeNode;
import java.util.ArrayList;
import java.util.List;
import java.util.Stack;
/**
* Given a binary tree, determine if it is a valid binary search tree (BST).
* <p>
* Assume a BST is defined as follows:
* <p>
* The left subtree o... |
mehrdad-shokri/retdec | include/retdec/pelib/DebugDirectory.h | <filename>include/retdec/pelib/DebugDirectory.h
/*
* DebugDirectory.h - Part of the PeLib library.
*
* Copyright (c) 2004 - 2005 <NAME> (<EMAIL>)
* All rights reserved.
*
* This software is licensed under the zlib/libpng License.
* For more details see http://www.opensource.org/licenses/zlib-license.php
* or the licens... |
kazunetakahashi/atcoder | 2019/0112_aising2019/D.cpp | <reponame>kazunetakahashi/atcoder
/**
* File : D.cpp
* Author : <NAME>
* Created : 1/12/2019, 9:15:17 PM
* Powered by Visual Studio Code
*/
#include <iostream>
#include <iomanip> // << fixed << setprecision(xxx)
#include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ;
#include <vector>
#include... |
marwajomaa/connect5 | server/database/queries/get_question_results.js | <reponame>marwajomaa/connect5
const Answer = require("../models/Answer");
const getQuestionResults = (questionId, sessionId) => new Promise((resolve, reject) => {
Answer.find({ question: questionId, session: sessionId })
.then((res) => {
resolve(res);
})
.catch(reject);
});
module.exports = getQues... |
Klarrio/cosmos | cosmos-integration-tests/src/main/scala/com/mesosphere/cosmos/http/CosmosRequests.scala | <filename>cosmos-integration-tests/src/main/scala/com/mesosphere/cosmos/http/CosmosRequests.scala<gh_stars>10-100
package com.mesosphere.cosmos.http
import com.mesosphere.cosmos.rpc
import com.mesosphere.http.MediaType
import io.lemonlabs.uri.Uri
object CosmosRequests {
val capabilities: HttpRequest = {
HttpRe... |
ljtfreitas/java-restify | java-restify-netflix-zookeeper-service-discovery/src/main/java/com/github/ljtfreitas/restify/http/netflix/client/request/ribbon/discovery/zookeeper/ZookeeperCuratorServiceDiscovery.java | <reponame>ljtfreitas/java-restify
/*******************************************************************************
*
* MIT License
*
* Copyright (c) 2016 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"),... |
timboudreau/pumpernickel | src/main/java/com/pump/job/SampleJobExecutor.java | <reponame>timboudreau/pumpernickel
/**
* This software is released as part of the Pumpernickel project.
*
* All com.pump resources in the Pumpernickel project are distributed under the
* MIT License:
* https://raw.githubusercontent.com/mickleness/pumpernickel/master/License.txt
*
* More information about the P... |
Dearker/middleground | hanyi-daily/src/test/java/com/hanyi/daily/load/SystemTest.java | package com.hanyi.daily.load;
import cn.hutool.core.util.RuntimeUtil;
import com.hanyi.daily.property.Book;
import org.junit.Test;
import java.io.IOException;
import java.util.Map;
import java.util.Properties;
/**
* 系统Api测试类,
* System.load()/loadLibrary和RunTime.load/loadLibrary都是用来装载库文件,不论是JNI库文件还是非JNI库文件,即jar包
*... |
pablorochat/flappykhaled | node_modules/codecov.io/bin/codecov.io.js | #!/usr/bin/env node
var sendToCodeCov = require('../lib/sendToCodeCov.io');
process.stdin.resume();
process.stdin.setEncoding('utf8');
var input = '';
process.stdin.on('data', function(chunk) {
input += chunk;
});
process.stdin.on('end', function() {
sendToCodeCov(input, function(err) {
if (err) {
... |
acangiano/ruby-benchmark-suite | benchmarks/rdoc/bm_rdoc_against_itself_ri.rb | <filename>benchmarks/rdoc/bm_rdoc_against_itself_ri.rb<gh_stars>10-100
require './rdoc_bm_helper'
Bench.run [1] do |n|
# run rdoc against itself with ri
go 'rdp-rdoc-2.4.6', ['--ri']
end
|
MickeyPa/soen344 | application/models/Appointment.py | <reponame>MickeyPa/soen344
from index import db
import datetime
# PickleType coverts python object to a string so that it can be stored on the database
class Appointment(db.Model):
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
room = db.Column(db.Integer, db.ForeignKey('room.roomNumber'), nullabl... |
tgodzik/intellij-community | plugins/hg4idea/src/org/zmlx/hg4idea/provider/commit/HgMQNewExecutor.java | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.zmlx.hg4idea.provider.commit;
import com.intellij.openapi.vcs.changes.CommitContext;
import com.intellij.openapi.vcs.changes.CommitExecutor;
import com.intellij.opena... |
solotzg/tiflash | dbms/src/Parsers/ParserTablesInSelectQuery.h | // Copyright 2022 PingCAP, 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 to i... |
ucsd-progsys/nate | eval/sherrloc/src/sherrloc/constraint/analysis/CFLPathFinder.java | <filename>eval/sherrloc/src/sherrloc/constraint/analysis/CFLPathFinder.java<gh_stars>1-10
package sherrloc.constraint.analysis;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import sherrloc.graph.ConstraintEdge;
import sherrloc.graph.ConstraintGraph;
import sherrlo... |
swanhong/CiFEr | include/cifer/sample/normal_cumulative.h | <gh_stars>10-100
/*
* Copyright (c) 2018 XLAB d.o.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 obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... |
BryanNoller/OrionUO | OrionUO/GameObjects/GamePlayer.cpp | <filename>OrionUO/GameObjects/GamePlayer.cpp
// This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
/***********************************************************************************
**
** GamePlayer.cpp
**
** Co... |
AntJLopez/django_wedding | wedding/views.py | <gh_stars>0
from django.shortcuts import render, redirect, get_object_or_404 # noqa
from django.urls import reverse
from django.contrib.auth.decorators import login_required # noqa
from .local_settings import GOOGLE_API_KEY, STRIPE_PUBLIC_KEY
from guests.models import Guest, Activity
from guests.forms import RSV... |
cemot/Attendance-via-Face-Recognition | Frontend/src/screens/LogInScreen/AdminLoginScreen.js | import React, { Component } from 'react';
import {
ScrollView,
View,
} from 'react-native';
import {Input, Header, Text, Button} from 'react-native-elements';
import Storage from '../../storage/Storage.js';
import {AppContext} from '../../../Contexts.js';
import {modes, makeCancelablePromise} from '../../../Co... |
piesku/a-moment-lost-in-time | src/game.js | <reponame>piesku/a-moment-lost-in-time
import { Game } from "cervus/core";
import { Plane } from "cervus/shapes";
import { Move, Transform, Render } from "cervus/components";
import { basic } from "cervus/materials";
import { quat } from "cervus/math";
import { rgb_to_hex, hsl_to_rgb } from "cervus/utils";
import { SA... |
fangshun2004/processhacker | SystemInformer/mdump.c | <filename>SystemInformer/mdump.c
/*
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
*
* This file is part of System Informer.
*
* Authors:
*
* wj32 2010-2015
* dmex 2016-2022
*
*/
#include <phapp.h>
#include <apiimport.h>
#include <appresolver.h>
... |
huangyingw/fastai_fastai | nbs/44_tutorial.tabular.py | # ---
# jupyter:
# jupytext:
# formats: ipynb,py
# split_at_heading: true
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.6.0
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
# ... |
AmrARaouf/algorithm-detection | graph-source-code/437-C/6771448.cpp | //Language: GNU C++
#include <cstring>
#include <cassert>
#include <vector>
#include <list>
#include <queue>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <io... |
chetan/bixby-manager | lib/tasks/bixby/create_tenant.rake | <filename>lib/tasks/bixby/create_tenant.rake
namespace :bixby do
desc "create a new tenant"
task :create_tenant => :environment do |t|
disable_logging!
require 'highline'
puts "Create tenant"
puts
h = HighLine.new
begin
name = h.ask("Name: ")
rescue Interrupt => ex
exit... |
phpc0de/idea-android | designer/testSrc/com/android/tools/idea/uibuilder/scene/SceneComplexBaselineConnectionTest.java | /*
* Copyright (C) 2017 The Android Open Source Project
*
* 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 app... |
CaioRibeiroDev/NodeJs-do-Zero-a-Maestria | 8_NODE_E_MYSQL/5_preparando_query/node_modules/index.js | const express = require('express');
const exphbs = require('express-handlebars');
const mysql = require('mysql')
const app = express()
app.engine('handlebars', exphbs.engine());
app.set('view engine', 'handlebars');
app.use(express.static('public'));
app.get('/', (req, res) => {
res.render('home')
})
const con... |
JCoetzee123/spira | spira/yevon/geometry/edges/edges_old.py | <reponame>JCoetzee123/spira
import numpy as np
from copy import deepcopy
from spira.yevon.gdsii.group import Group
from spira.core.transforms import *
from spira.yevon.gdsii.elem_list import ElementList
from spira.yevon.gdsii.polygon import Box, Polygon
from spira.yevon.geometry.coord import Coord
from spira.yevon.gds... |
apache/juneau | juneau-core/juneau-marshall/src/main/java/org/apache/juneau/json/SimpleJsonParser.java | <reponame>apache/juneau<filename>juneau-core/juneau-marshall/src/main/java/org/apache/juneau/json/SimpleJsonParser.java
// ***************************************************************************************************************************
// * Licensed to the Apache Software Foundation (ASF) under one or more c... |
capnslipp/clutterapp | app/helpers/stylesheets_helper.rb | <reponame>capnslipp/clutterapp<filename>app/helpers/stylesheets_helper.rb
require 'const_reader'
module StylesheetsHelper
include Colorist
include ConstReader
def debug?
App::Config.debug_style
end
# outline-radius is not supported by WebKit; otherwise, we'd use it as well
def border_rad... |
Sherlock92/greentop | src/sport/PriceSize.cpp | /**
* Copyright 2017 <NAME>. Distributed under the MIT license.
*/
#include "greentop/sport/PriceSize.h"
namespace greentop {
namespace sport {
PriceSize::PriceSize() {
}
PriceSize::PriceSize(const Optional<double>& price,
const Optional<double>& size) :
price(price),
size(size) {
}
void PriceSize::... |
china-liweihong/Lealone2 | lealone-common/src/main/java/org/lealone/storage/replication/ReplicationSession.java | /*
* 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 ... |
enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/libjava/java/awt/event/ItemEvent.java | <gh_stars>10-100
/* Copyright (C) 2000 Free Software Foundation
This file is part of libjava.
This software is copyrighted work licensed under the terms of the
Libjava License. Please consult the file "LIBJAVA_LICENSE" for
details. */
package java.awt.event;
import java.awt.*;
/**
* @author <NAME> <<EMAIL>>
... |
uninth/UNItools | src/GaIA/pkgs/ifstatus/ifstatus/Interface.cc | /** \file Interface.cc
* \author <NAME> <<EMAIL>>
* \date 10-14-04
* \brief Interface class implementation
*
* Class implementation
*/
/*
* 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 Founda... |
bpbpublications/Building-Server-side-and-Microservices-with-Go | Chapter 01/mutex/mutex.go | package main
import (
"fmt"
"sync"
)
func main() {
m := make(map[int]int)
waitGroup := &sync.WaitGroup{}
mapMutex := &sync.Mutex{}
waitGroup.Add(10)
for i := 0; i < 10; i++ {
go func(i int) {
defer waitGroup.Done()
mapMutex.Lock()
m[i] = i
mapMutex.Unlock()
}(i)
}
waitGroup.Wait()
fmt.Pri... |
MarekBykowski/tf-a-tests | include/lib/libc/assert.h | /*
* Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef ASSERT_H
#define ASSERT_H
#include <cdefs.h>
#include <common/debug.h>
#if ENABLE_ASSERTIONS
#define assert(e) ((e) ? (void)0 : __assert(__FILE__, __LINE__, #e))
#else
#define assert(... |
heymajor/exercism | python/phone-number/phone_number.py | <gh_stars>0
import re
class PhoneNumber:
number = "0"
area_code = ""
exchange = ""
last = ""
def __init__(self, number):
PhoneNumber.number = number
PhoneNumber.clean(PhoneNumber.number)
PhoneNumber.error(PhoneNumber.number)
PhoneNumber.area_code = PhoneNumber.numbe... |
disney007/linker | processor/src/test/java/com/linker/processor/TestUtils.java | <filename>processor/src/test/java/com/linker/processor/TestUtils.java
package com.linker.processor;
import com.linker.common.*;
import com.linker.common.codec.Codec;
import com.linker.common.messagedelivery.KafkaExpressDelivery;
import com.linker.common.messages.UserConnected;
import com.linker.common.messages.UserDis... |
kodexa-ai/kodexa | kodexa/model/model.py | <reponame>kodexa-ai/kodexa<gh_stars>1-10
"""
The core model provides definitions for all the base objects in the Kodexa Content Model
"""
import abc
import dataclasses
import inspect
import json
import os
import re
import uuid
from enum import Enum
from typing import Any, List, Optional
import msgpack
from addict impo... |
NoctisGames/insectoid-defense_opensource | src/core/framework/ui/3ds/DSRectangleBatcher.cpp | <reponame>NoctisGames/insectoid-defense_opensource
//
// DSRectangleBatcher.cpp
// gowengamedev-framework
//
// Created by <NAME> on 8/25/15.
// Copyright (c) 2015 Gowen Game Dev. All rights reserved.
//
#include "DSRectangleBatcher.h"
#include "macros.h"
#include "Rectangle.h"
#include "Vector2D.h"
#include "Game... |
miaopei/B4860-test | learn-uv-api/net_uv_new/Examples/Apps/Common/Application/Include/texture/TextureCache.h | #pragma once
#include "imgui.h"
#include <map>
#include <vector>
class TextureCache
{
static TextureCache* TextureCacheInstance;
public:
static TextureCache* getInstance();
static void destroy();
~TextureCache();
ImTextureID loadTexture(const std::string& textureName);
void releaseTexture(ImTextureID text... |
neo4jrb/neo4j-driver | ruby/neo4j/driver/internal/async/connection/event_loop_group_factory.rb | module Neo4j::Driver
module Internal
module Async
module Connection
class EventLoopGroupFactory
THREAD_NAME_PREFIX = "Neo4jDriverIO"
THREAD_PRIORITY = 10
THREAD_IS_DAEMON = true
class << self
# Get class of {@link Channel} for {@link Bootstrap#cha... |
Couso99/PruebasTerapiaOcupacional | app/src/main/java/com/imovil/NEURmetrics/models/Test.java | package com.imovil.NEURmetrics.models;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
import java.util.List;
public class Test implements Serializable {
@SerializedName("isContainsTests")
@Expose
private boolean isContainsTests;... |
eduardoxcruz/BinanceFuturesSdk | src/main/java/com/binance/futures/sdk/model/rest_api_response/market/order_book/OrderBook.java | package com.binance.futures.sdk.model.rest_api_response.market.order_book;
import com.binance.futures.sdk.constant.BinanceApiConstants;
import com.binance.futures.sdk.model.ResponseTimestamp;
import org.apache.commons.lang3.builder.ToStringBuilder;
import java.util.List;
public class OrderBook extends ResponseTimest... |
sunadm/ClickHouse | dbms/src/Parsers/ASTShowCreateAccessEntityQuery.cpp | #include <Parsers/ASTShowCreateAccessEntityQuery.h>
#include <Common/quoteString.h>
namespace DB
{
namespace
{
using Kind = ASTShowCreateAccessEntityQuery::Kind;
const char * kindToKeyword(Kind kind)
{
switch (kind)
{
case Kind::QUOTA: return "QUOTA";
case Kind::RO... |
nick-bair/the-doctor | src/util/createFormulas.js | 'use strict';
const {map, find, propEq, mergeAll, curry, pipeP} = require('ramda');
const get = require('./get');
const postFormula = require('./post')('formulas');
const applyVersion = require('../util/applyVersion')
const makePath = formula => `formulas/${formula.id}`;
const update = require('./update');
const creat... |
szpak/micro-infra-spring | swagger/micro-infra-spring-swagger/src/main/java/repackaged/com/mangofactory/swagger/readers/operation/SwaggerParameterReader.java | <filename>swagger/micro-infra-spring-swagger/src/main/java/repackaged/com/mangofactory/swagger/readers/operation/SwaggerParameterReader.java
package repackaged.com.mangofactory.swagger.readers.operation;
import repackaged.com.mangofactory.swagger.scanners.RequestMappingContext;
import com.mangofactory.swagger.models.d... |
yangwei258/GAF | gaf-cloud/gaf-commons/gaf-common-api-scanner/src/main/java/com/supermap/gaf/api/scanner/enums/ComponentTypeEnum.java | <gh_stars>10-100
package com.supermap.gaf.api.scanner.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
@AllArgsConstructor
@Getter
public enum ComponentTypeEnum {
/**
* 前端
*/
FRONTEND("1"),
/**
* 后端
*/
BACKEND("2"),
/**
* 移动端
*/
MOBILE("3"),
/**
... |
pepoc/CustomViewGather | KuaiKuai/src/me/kkuai/kuailian/db/ChatMsg.java | package me.kkuai.kuailian.db;
public class ChatMsg {
public static String ID = "_id";
public static String SENDER_UID = "senderUid";
public static String FRIEND_UID = "friendUid";
public static String SELF_UID = "selfUid";
public static String M_ID = "m_id";
public static String M_MSG_ID = "m_msgId";
public s... |
JsaParDeveloper/jsapar | src/test/java/org/jsapar/model/LocalTimeCellTest.java | package org.jsapar.model;
import org.junit.Test;
import java.time.LocalTime;
import static org.junit.Assert.*;
public class LocalTimeCellTest {
@Test
public void compareValueTo() {
LocalTimeCell c1 = new LocalTimeCell("test1", LocalTime.of(12,45));
LocalTimeCell c2 = new LocalTimeCell("test... |
jayvdb/bluebottle | bluebottle/activities/tests/test_api.py | <reponame>jayvdb/bluebottle
from builtins import str
import json
from datetime import timedelta
import dateutil
from django.contrib.auth.models import Group, Permission
from django.contrib.gis.geos import Point
from django.test import tag
from django.test.utils import override_settings
from django.urls import reverse
... |
XenoXilus/dl | adv/summer_patia.py | from core.advbase import *
def module():
return Summer_Patia
class Summer_Patia(Adv):
comment = 'cannot build combo for Cat Sith; uses up 15 stacks by 46.94s'
conf = {}
conf['slots.a'] = ['Kung_Fu_Masters', 'The_Plaguebringer']
conf['slots.poison.a'] = conf['slots.a']
conf['slots.d'] = 'Shinob... |
lechium/tvOS124Headers | System/Library/PrivateFrameworks/HomeKitDaemon.framework/HMDCloudCache.h | <gh_stars>1-10
/*
* This header is generated by classdump-dyld 1.0
* on Saturday, August 24, 2019 at 9:49:02 PM Mountain Standard Time
* Operating System: Version 12.4 (Build 16M568)
* Image Source: /System/Library/PrivateFrameworks/HomeKitDaemon.framework/HomeKitDaemon
* classdump-dyld is licensed under GPLv3, Copyrig... |
malharlakdawala/DevelopersInstitute | Week3/Day1/Exc3/scripts.js | <reponame>malharlakdawala/DevelopersInstitute
// retrieve the div
let divContainer = document.getElementById("container");
// retrieve the h1 inside the div
let allTitle = divContainer.getElementsByTagName("h1");
let allTitle2 = document.getElementById("container").getElementsByTagName("h1");
// retrieve with queryS... |
ziransun/wpt | WebCryptoAPI/encrypt_decrypt/rsa.js | <filename>WebCryptoAPI/encrypt_decrypt/rsa.js
function run_test() {
var subtle = self.crypto.subtle; // Change to test prefixed implementations
// When are all these tests really done? When all the promises they use have resolved.
var all_promises = [];
// Source file rsa_vectors.js provides the getT... |
GravisZro/MuditaOS | module-services/service-fileindexer/Common.hpp | // Copyright (c) 2017-2022, Mudita <NAME>.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#include <array>
#include <algorithm>
#include <filesystem>
#include <array>
namespace service::detail
{
namespace fs = std::filesystem;
// File extensions ind... |
1298698045/react-web | node_modules/@antv/g6/lib/controller/animate.js | <reponame>1298698045/react-web
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).f... |
javs1287/5Steps_ListReport_Extension | exercises/ex_4/sources/ProjectSample/ZPOEXT.NOTIF.XX/node_modules/@sap/di.code-validation.xml/src/fioriAnalysis/rules/XML_IMAGE_ACCESSIBILITY.js | /*global define*/
if (typeof define !== 'function') {
var define = require('amdefine')(module)
};
define([], function() {
"use strict";
function buildPath(){
return "//ns:Image[(not(@tooltip) or normalize-space(@tooltip)='') "
+ "and (not(@ariaLabelledBy) or normalize-space(@ariaLabelledBy)='') "
+ "and (no... |
gocardless/nandi | spec/nandi/fixtures/example_migrations/20180104120000_my_migration.rb | <gh_stars>100-1000
# frozen_string_literal: true
class MyMigration < Nandi::Migration
def up
add_index :payments, :foo
end
def down
remove_index :payments, :foo
end
end
|
ArtemMaximum/task-manager | src/lib/api-utils.js | const HEADERS = {
'Cache-Control': 'no-cache'
//'Content-Type': 'application/json; charset=utf-8',
//'Accept': 'application/json'
};
/**
* @return {string|boolean}
*/
export const checkExpires = () =>
!readCookie('tokensExpires') ? false : parseInt(readCookie('tokensExpires')) - 3600000 >= 0;
/**
* @param ... |
jmdelvalle/fithub-release | app/controllers/pages_controller.rb | class PagesController < ApplicationController
before_action :set_auth
def index
end
def profile
end
def home
if current_user
render 'home'
else
redirect_to root_url
end
end
private
def set_auth
@auth = session[:omniauth] if session[:omniauth]
end
end
|
TheTripleV/GRIP | core/src/main/java/edu/wpi/grip/core/operations/composite/ThresholdOperation.java | <reponame>TheTripleV/GRIP<gh_stars>0
package edu.wpi.grip.core.operations.composite;
import edu.wpi.grip.core.Operation;
import org.bytedeco.javacpp.opencv_core.Mat;
import org.bytedeco.javacpp.opencv_core.Scalar;
public abstract class ThresholdOperation<O extends ThresholdOperation<O>> implements Operation {
pro... |
shonohs/modelutils | modelutils/onnx/add_cast_for_op.py | import argparse
import os
import onnx
import onnx.numpy_helper
def insert_cast_op(model, index, input_name, output_name, to_type):
node_list = list(model.graph.node)
cast_node = onnx.helper.make_node('Cast', [input_name], [output_name], to=getattr(onnx.TensorProto, to_type))
node_list.insert(index, cast_n... |
thiilins/cube-game-store | src/controllers/ProductController.js | <filename>src/controllers/ProductController.js
// Importar os models (produto/categoria)
const ProductController = {
createProductPage(req, res) {
try {
// Categorias = categories
return res.render("admin/dashboard", {
file: "products/create",
page: "Adicionar Produto",
//categ... |
danilloricardo/remp | Beam/go/vendor/github.com/olivere/env/example_test.go | package env_test
import (
"flag"
"fmt"
"github.com/olivere/env"
)
func Example() {
var (
// Parse addr from flag, use HTTP_ADDR and ADDR env vars as fallback
addr = flag.String("addr", env.String("127.0.0.1:3000", "HTTP_ADDR", "ADDR"), "Bind to this address")
)
flag.Parse()
fmt.Println(*addr)
// Output:... |
sting-ioc/sting | processor/src/test/fixtures/input/com/example/multiround/fragment/MyInjector.java | <gh_stars>1-10
package com.example.multiround.fragment;
import sting.Injector;
@Injector( includes = MyFragment.class )
interface MyInjector
{
Object getObject();
}
|
iTeam-co/pytglib | pytglib/api/types/invoice.py |
from ..utils import Object
class Invoice(Object):
"""
Product invoice
Attributes:
ID (:obj:`str`): ``Invoice``
Args:
currency (:obj:`str`):
ISO 4217 currency code
price_parts (List of :class:`telegram.api.types.labeledPricePart`):
A list of objects... |
olofd/react-native-insta-photo-studio | src/effects/ExportPanel.native.js | <filename>src/effects/ExportPanel.native.js
import {View, StyleSheet} from "react-native";
import React, {Component, PropTypes} from "react";
const styles = StyleSheet.create({
root: {
flexDirection: "column",
alignItems: "center",
paddingTop: 20
}
});
export default class ExportPanel extends Componen... |
mikespux/Task-Attendance-Bluetooth-Fingerprint | app/src/main/java/com/fgtit/fingerprintattendance/activity/EnrollActivity.java | package com.fgtit.fingerprintattendance.activity;
import android.app.Activity;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import androi... |
mikolajgucki/ae-engine | engine/common/util/src/cpp/string_util.cpp | <reponame>mikolajgucki/ae-engine
#include <cstdlib>
#include <sstream>
#include "string_util.h"
using namespace std;
namespace ae {
namespace util {
/** */
bool startsWith(const string& str,const string& prefix) {
if (prefix.length() > str.length()) {
return false;
}
return p... |
jingfei/FirstTry | node_modules/mapshaper/src/gis/mapshaper-split.js | <reponame>jingfei/FirstTry
/* @requires mapshaper-common */
MapShaper.splitLayersOnField = function(layers, arcs, field) {
var splitLayers = [];
Utils.forEach(layers, function(lyr) {
splitLayers = splitLayers.concat(MapShaper.splitOnField(lyr, arcs, field));
});
return splitLayers;
};
MapShaper.splitOnFie... |
ajchdev/outside-event | node_modules/@wordpress/components/src/slot-fill/slot.js | <filename>node_modules/@wordpress/components/src/slot-fill/slot.js
/**
* External dependencies
*/
import { isFunction, isString, map, negate } from 'lodash';
/**
* WordPress dependencies
*/
import {
Children,
Component,
cloneElement,
isEmptyElement,
} from '@wordpress/element';
/**
* Internal dependencies
*... |
magdel/MapNav | src/main/java/misc/FileDialog.java | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package misc;
import RPMap.MapCanvas;
import java.io.InputStream;
import java.io.OutputStream;
import javax.microedition.io.*;
import javax.microedition.io.file.FileConnection;
import javax.microedition.lcdui.*;
import ... |
HarrisonKeeling/amazon-kinesis-video-streams-webrtc-sdk-js-with-amazon-cognito | node_modules/@trust/keyto/test/keys/ECDSA/P256.js | 'use strict'
/**
* PEM
* @ignore
*/
const privatePKCS1 = `-----<KEY>`
const privatePKCS8 = `-----BEGIN PRIVATE KEY-----
<KEY>
-----END PRIVATE KEY-----`
const publicPKCS8 = `-----BEGIN PUBLIC KEY-----
<KEY>
-----END PUBLIC KEY-----`
/**
* JWK
* @ignore
*/
const privateJwk = `{
"kty": "EC",
"crv": "P-256",
... |
clauderichard/OptimistRacing | doc/Code Documentation/html/class_skybox.js | <gh_stars>0
var class_skybox =
[
[ "Skybox", "class_skybox.html#afc61cfd31346170303119c316a2eb7f4", null ],
[ "~Skybox", "class_skybox.html#a62ad4c6b4b1965a0a6d8536a50d4c090", null ]
]; |
Infoss/conf-profile-4-android | ConfProfile/jni/strongswan/src/libstrongswan/plugins/mysql/mysql_plugin.c | <reponame>Infoss/conf-profile-4-android<gh_stars>1-10
/*
* Copyright (C) 2008 <NAME>
* Hochschule fuer Technik Rapperswil
*
* 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... |
pebble2015/cpoi | src/org/apache/poi/ss/formula/functions/BooleanFunction_5.cpp | // Generated from /POI/java/org/apache/poi/ss/formula/functions/BooleanFunction.java
#include <org/apache/poi/ss/formula/functions/BooleanFunction_5.hpp>
#include <java/lang/Boolean.hpp>
#include <java/lang/NullPointerException.hpp>
#include <org/apache/poi/ss/formula/eval/BoolEval.hpp>
#include <org/apache/poi/ss/for... |
mengxiangrui007/ssh_easyui | dataCollection/src/com/data/dao/item/impl/ItemDaoImpl.java | <reponame>mengxiangrui007/ssh_easyui
package com.data.dao.item.impl;
import java.util.List;
import org.hibernate.Query;
import org.hibernate.SQLQuery;
import org.hibernate.transform.Transformers;
import org.springframework.stereotype.Repository;
import com.data.dao.base.impl.BaseDaoImpl;
import com.data.mo... |
Daz2345/race | priceRanger_scenarioRun/lib/server/index.js | <reponame>Daz2345/race
Meteor.startup(function () {
ScenarioRuns._ensureIndex({"createdAt": 1});
ScenarioRuns._ensureIndex({"createdBy": 1});
ScenarioRuns._ensureIndex({"name": 1});
ScenarioRuns._ensureIndex({"userId": 1});
ScenarioRuns._ensureIndex({"scenarioId": 1});
ScenarioRuns._ensureIndex({"crea... |
FelixTheC/python_morsels | interleave.py | <filename>interleave.py<gh_stars>0
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@created: 01.01.20
@author: felix
"""
from itertools import zip_longest
def interleave(*args):
NULL = object()
return (elem for z in zip_longest(*(list(t) for t in args), fillvalue=NULL) for elem in z if elem is not NULL)
... |
yongquanf/LocalitySensitiveSketch | src/util/bloom/Cuckoo/Example.java | package util.bloom.Cuckoo;
import com.google.common.hash.Funnels;
import util.bloom.Cuckoo.Utils.Algorithm;
public class Example {
public static void main(String[] args) {
// create
CuckooFilter<Integer> filter = new CuckooFilter.Builder<>(Funnels.integerFunnel(), 2000000).withFalsePositiveRate(0.01).withHashA... |
veita/jaffre | src/main/java/org/jaffre/spi/NoopLogger.java | <reponame>veita/jaffre<gh_stars>0
/*
* (C) Copyright 2008-2019 <NAME>
*
* 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 r... |
Pondorasti/teamo | src/api/lobby-template/Platform.js | <gh_stars>1-10
const Platforms = {
label: "Platforms",
options: ["PC", "PlayStation", "Xbox", "VR"],
}
export default Platforms
|
pmehta08/MulensModel | examples/use_cases/use_case_15_emcee_simple_PSPL.py | <filename>examples/use_cases/use_case_15_emcee_simple_PSPL.py
"""
Use Case 15: Fit a point lens event with emcee.
"""
import numpy as np
import emcee
import os
import MulensModel as mm
def lnlike(theta, event, parameters_to_fit):
"""likelihood function """
for key, val in enumerate(parameters_to_fit):
... |
chpatel3/coherence-cpp-extend-client | src/coherence/util/Event.cpp | <gh_stars>1-10
/*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
#include "coherence/util/Event.hpp"
COH_OPEN_NAMESPACE2(coherence,util)
// ----- constructors -------------------------------... |
nphkh/fluid-framework | FluidFrameworkAndroid/src/com/sponberg/fluid/android/util/DeviceUtil.java | package com.sponberg.fluid.android.util;
import android.os.Build;
public class DeviceUtil {
public static boolean isEmulator() {
return Build.BRAND.equals("generic");
}
}
|
jayjlawrence/prawn | manual/text/registering_families.rb | <filename>manual/text/registering_families.rb
# encoding: utf-8
#
# Registering font families will help you when you want to use a font over and
# over or if you would like to take advantage of the <code>:style</code> option
# of the text methods and the <code>b</code> and <code>i</code> tags when using
# inline format... |
unverbraucht/cybergarage-upnp | tools/igd-tool/src/main/java/UpnpIGDToolAddPortDlg.java | <reponame>unverbraucht/cybergarage-upnp
/******************************************************************
*
* CyberUPnP for Java
*
* Copyright (C) <NAME> 2002
*
* File : ActionDialog.java
*
******************************************************************/
import java.awt.*;
import java.awt.event.*;
import java.uti... |
tbcole/majoranaJJ | demos/dense_op/bands/H0/square.py | <filename>demos/dense_op/bands/H0/square.py
import numpy as np
import matplotlib.pyplot as plt
from numpy import linalg as LA
import majoranas.modules.constants as const
import majoranas.modules.lattice as lat
import majoranas.modules.operators as op
import majoranas.modules.alt_mod.altoperators as aop
print("hbar = ... |
ceekay1991/AliPayForDebug | AliPayForDebug/AliPayForDebug/AlipayWallet_Headers/AlipayLifeEventManager.h | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.
//
#import <objc/NSObject.h>
@class NSMutableArray;
@interface AlipayLifeEventManager : NSObject
{
NSMutableArray *_arrayRecallObservers;
... |
szemyxz/Filmbox | src/main/java/pl/filmbox/repositories/implementations/UserRepositoryImpl.java | package pl.filmbox.repositories.implementations;
import org.springframework.stereotype.Repository;
import pl.filmbox.models.User;
import pl.filmbox.repositories.UserRepository;
import javax.persistence.EntityManager;
import javax.persistence.NoResultException;
import javax.persistence.PersistenceContext;
import javax... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.