repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
jancajthaml/sqlg | sqlg-core/src/main/java/org/umlg/sqlg/sql/dialect/SqlSchemaChangeDialect.java | package org.umlg.sqlg.sql.dialect;
import com.fasterxml.jackson.databind.JsonNode;
import org.umlg.sqlg.structure.SqlgExceptions;
import org.umlg.sqlg.structure.SqlgGraph;
import java.time.LocalDateTime;
/**
* Date: 2016/09/03
* Time: 4:09 PM
*/
public interface SqlSchemaChangeDialect extends SqlDialect {
de... |
deniscostadsc/playground | solutions/beecrowd/1002/1002.cpp | <gh_stars>10-100
#include <cstdio>
int main() {
double n;
scanf("%lf", &n);
printf("A=%.4f\n", n * n * 3.14159);
return 0;
}
|
skubit/skubit-iab-embedded | app/src/main/java/com/skubit/bitid/activities/ImportActivity.java | <reponame>skubit/skubit-iab-embedded
/**
* Copyright 2015 Skubit
*
* 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... |
assaf-08/TopToy | src/main/java/utils/statistics/Statistics.java | package utils.statistics;
import blockchain.data.BCS;
import utils.config.Config;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicLong;
impor... |
U131025/FRDStravaClient | FRDStravaClientDemo/FRDStravaClientDemo/UploadViewController.h | //
// UploadViewController.h
// FRDStravaClientDemo
//
// Created by <NAME> on 6/9/14.
// Copyright (c) 2014 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UploadViewController : UIViewController
@end
|
hjc851/Dataset2-HowToDetectAdvancedSourceCodePlagiarism | Variant Programs/3-3/21/GSim.java | <gh_stars>0
public class GSim {
public GSim(int northwestward, int transcaucasian) {
northeasternAtoll = new Isla("N", northwestward);
southeastArchipelago = new Isla("S", transcaucasian);
}
private Isla northeasternAtoll;
public synchronized void initiating() {
northeasternAtoll.conduct();
s... |
fishstormX/logsight | logsight-admin/src/main/java/cn/fishmaple/logsight/analyser/logFilter/LogFilterConsts.java | <gh_stars>10-100
package cn.fishmaple.logsight.analyser.logFilter;
public class LogFilterConsts {
public final static String TRACE_LOGLEVEL = "TRACE";
public final static String DEBUG_LOGLEVEL = "DEBUG";
public final static String INFO_LOGLEVEL = "INFO";
public final static String WARN_LOGLEVEL = "WARN... |
fengsam6/cloundDemo | user-auth/src/main/java/com/feng/auth/service/DBUserDetailsService.java | <reponame>fengsam6/cloundDemo<filename>user-auth/src/main/java/com/feng/auth/service/DBUserDetailsService.java
package com.feng.auth.service;
import com.feng.auth.entity.JwtUser;
import com.feng.common.entity.ResponseResult;
import com.feng.user.entity.SkUser;
import com.feng.auth.feign.UserClient;
import org.springfr... |
fossabot/thonk-bot | events/message.js | const db = require('quick.db');
const config = require('../cfg/config.js');
exports.run = async (client, message, respondFile, talkedRecently) => {
let prefix;
if (message.channel.type === 'text') {
const prefixFetched = await db.fetch(`prefix_${message.guild.id}`);
prefixFetched ? prefix = prefixFe... |
shyrwinsia/saxo_openapi | tests/test_chart_charts.py | <gh_stars>10-100
# -*- coding: utf-8 -*-
"""Tests for `saxo_openapi` package."""
import requests_mock
from .unittestsetup import test_generic, ReqMockTest
import saxo_openapi.endpoints.chart as ch
from parameterized import parameterized
class TestSaxo_Chart_Charts(ReqMockTest):
"""Tests for `chart-charts` endpo... |
victor-lh/spotify-web-api-client | spotify-web-api-client/src/main/java/com/victorlh/spotify/apiclient/models/deserializer/PlayableItemDeserializer.java | <filename>spotify-web-api-client/src/main/java/com/victorlh/spotify/apiclient/models/deserializer/PlayableItemDeserializer.java<gh_stars>0
package com.victorlh.spotify.apiclient.models.deserializer;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fast... |
project-William/RenderX | RenderX/src/RenderX/Base/Event/MouseEvent.h | #pragma once
#include "Event.h"
namespace renderx::base
{
class MouseMovedEvent :public Event
{
private:
float m_Xpos, m_Ypos;
public:
MouseMovedEvent(float x, float y)
:m_Xpos(x), m_Ypos(y)
{
}
~MouseMovedEvent() {}
float GetMouseXPos()const { return m_Xpos; }
float GetMouseYPos()const { return ... |
refactorzone/spring-boot-validators | src/main/java/zone/refactor/spring/validation/validator/UuidValidator.java | package zone.refactor.spring.validation.validator;
import java.util.regex.Pattern;
public class UuidValidator extends PatternValidator {
private final static Pattern pattern =
Pattern.compile(
"\\A[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\\Z"
... |
dkov01/TSS.MSR | TSS.Java/src/tss/tpm/TPM2_VerifySignature_REQUEST.java | package tss.tpm;
import tss.*;
// -----------This is an auto-generated file: do not edit
//>>>
/**
* This command uses loaded keys to validate a signature on a message with the
* message digest passed to the TPM.
*/
public class TPM2_VerifySignature_REQUEST extends TpmStructure
{
/**
... |
LLiuHuan/arco-design-pro-gin | api/v1/enter.go | <filename>api/v1/enter.go
package v1
import (
"github.com/lliuhuan/arco-design-pro-gin/api/v1/example"
"github.com/lliuhuan/arco-design-pro-gin/api/v1/system"
)
type ApiV1Group struct {
System system.ApiGroup
Example example.ApiGroup
}
var ApiV1GroupApp = new(ApiV1Group)
|
salbertson/gitsh | lib/gitsh/tab_completion/dsl/concatenation_factory.rb | module Gitsh
module TabCompletion
module DSL
class ConcatenationFactory
attr_reader :parts
def initialize(parts)
@parts = parts
end
def build(start_state, options = {})
with_optional_end_state(options) do
parts.inject(start_state) do |state, ... |
ultimatezen/felix | Felix/action_delete_matches.h | <gh_stars>0
#pragma once
#include "undoable_action.h"
#include "TranslationMemory.h"
#include "record.h"
#include "FelixModelInterface.h"
namespace action
{
/** Deletes specified group of matches from TM
*/
class ActionDeleteMatches : public UndoableAction
{
public:
typedef std::vector<mem_engine... |
pigatron-industries/xen_sequence | src/sequencer_src/interface/views/parameters/TickEventsParameterView.h | #ifndef TickEventParameterView_h
#define TickEventParameterView_h
#include <inttypes.h>
#include "AbstractParameterView.h"
#include "EventParameterView.h"
#include "sequencer/midi/MidiEventHandler.h"
#include "model/SequenceTickEvents.h"
#define MAX_EVENTS 5
class TickEventsParameterView : public AbstractParameterV... |
sukhmankhangura/micropurchase-develop | app/view_models/confirm_bid_view_model.rb | <gh_stars>0
class ConfirmBidViewModel
attr_reader :auction, :bid
def initialize(auction:, bid:)
@auction = auction
@bid = bid
end
def auction_id
auction.id
end
def bid_amount
bid.amount
end
def title
auction.title
end
def time_left
"Ends in #{distance_of_time_to_now}"
... |
AnnaPedko/ICTasks | task24/task24/main.c | //
// main.c
// task24
//
// Created by <NAME>. on 12.04.17.
// Copyright © 2017 <NAME>. All rights reserved.
//
//2. Створити функцію, яка б як параметр приймала bool, а повертала строку true або false в залужності від значення параметру.
/*
Також, є група математичних операцій, яка виконується над числами, рез... |
josehu07/SplitFS | kernel/linux-5.4/sound/soc/codecs/88pm860x-codec.h | /* SPDX-License-Identifier: GPL-2.0-only */
/*
* 88pm860x-codec.h -- 88PM860x ALSA SoC Audio Driver
*
* Copyright 2010 Marvell International Ltd.
* <NAME> <<EMAIL>>
*/
#ifndef __88PM860X_H
#define __88PM860X_H
#define PM860X_PCM_IFACE_1 0xb0
#define PM860X_PCM_IFACE_2 0xb1
#define PM860X_PCM_IFACE_3 0xb2
#def... |
transitive-bullshit/puppeteer-email | packages/puppeteer-email-provider-yahoo/lib/signup.js | 'use strict'
// TODO: remove manual inputs for edge cases and bail instead -- breaks batch jobs
const delay = require('delay')
// const faker = require('faker') // TODO
module.exports = async (user, opts) => {
const {
smsNumberVerifier,
browser
} = opts
const page = await browser.newPage()
await pag... |
ochibooh/square-java-sdk | src/main/java/com/squareup/square/models/RetrieveInventoryChangesResponse.java | package com.squareup.square.models;
import java.util.Objects;
import java.util.*;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.squareup.square.http.client.HttpContext;
public class Retr... |
TimothyGillespie/lombok-intellij-plugin | test-manual/src/main/java/de/plushnikov/findusages/FindUsageWither.java | package de.plushnikov.findusages;
import lombok.Value;
import lombok.With;
import lombok.experimental.Wither;
@With
@Value
public class FindUsageWither {
private int foo;
private String bar;
public static void main(String[] args) {
FindUsageWither findUsageWither = new FindUsageWither(1, "bar");
findUs... |
skyflashde/nf-interpreter | targets/FreeRTOS_ESP32/ESP32_WROOM_32/Include/CLR_Startup_Thread.h | //
// Copyright (c) 2017 The nanoFramework project contributors
// See LICENSE file in the project root for full license information.
//
#ifndef _CLRSTARTUPTHREAD_
#define _CLRSTARTUPTHREAD_
// declaration of RTOS thread
void CLRStartupThread(void const * argument);
#endif //_CLRSTARTUPTHREAD_
|
zhoujiagen/giant-data-analysis | temporal-data-and-realtime-algorithm/temporal-apache-spark-streaming/src/main/java/com/spike/giantdataanalysis/spark/streaming/support/package-info.java | /**
*
*/
/**
* @author jiedong
*
*/
package com.spike.giantdataanalysis.spark.streaming.support; |
UM-ARM-Lab/mab_ms | deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgWrappers/osgFX/Effect.cpp | // ***************************************************************************
//
// Generated automatically by genwrapper.
// Please DO NOT EDIT this file!
//
// ***************************************************************************
#include <osgIntrospection/ReflectionMacros>
#include <osgIntrospection/Type... |
kellyselden/ember-cli-dependency-graph | test/fixtures/code-corps-ember/code-corps-ember/transforms/array.js | <filename>test/fixtures/code-corps-ember/code-corps-ember/transforms/array.js
define('code-corps-ember/transforms/array', ['exports', 'ember-data'], function (exports, _emberData) {
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var typeOf = Ember.typeOf;
var Transform = _em... |
wedataintelligence/vivaldi-source | chromium/content/browser/time_zone_monitor_android.cc | // Copyright 2014 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 "content/browser/time_zone_monitor_android.h"
#include "base/android/context_utils.h"
#include "base/android/jni_android.h"
#include "jni/TimeZo... |
asumit499/Python-BootCamp | total_avg.py | <reponame>asumit499/Python-BootCamp<gh_stars>1-10
a=int(input("Enter the first number"))
b=int(input("Enter the second number"))
c=int(input("Enter the third number"))
d=int(input("Enter the fourth number"))
total=a+b+c+d
average=total/4
print("Total of the four numbers=",total,"\naverage of the four numbers=",average)... |
jmckaskill/subversion | glib/gtimer.c | /* GLIB - Library of useful routines for C programming
* Copyright (C) 1995-1997 <NAME>, <NAME> and <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of ... |
wsavran/opensha | src/main/java/org/opensha/sha/earthquake/calc/recurInterval/gui/PlottingPanel.java | package org.opensha.sha.earthquake.calc.recurInterval.gui;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.swing.JPanel;
import org.opensha.commons.data.function.DiscretizedFunc;
imp... |
simoncozens/pysilfont | examples/gdl/font.py | <gh_stars>10-100
#!/usr/bin/env python
'The main font object for GDL creation. Depends on fonttools'
__url__ = 'http://github.com/silnrsi/pysilfont'
__copyright__ = 'Copyright (c) 2012 SIL International (http://www.sil.org)'
__license__ = 'Released under the MIT License (http://opensource.org/licenses/MIT)'
import os,... |
FlyAlCode/FlightSim | third_lib/include/mrsid/MrSIDPasswordDelegate.h | /* $Id$ */
/* //////////////////////////////////////////////////////////////////////////
// //
// This code is Copyright (c) 2004 LizardTech, Inc, 1008 Western Avenue, //
// Suite 200, Seattle, WA 98104. Unauthorized use or distribution ... |
onedata/onedata-gui-common | addon/utils/computed-aspect-options-array.js | /**
* Created computed property which gets/sets an array and deserializes/serializes it
* into `navigationState.aspectOptions` in form of string.
*
* @module utils/computed-aspect-options-array
* @author <NAME>
* @copyright (C) 2021 ACK CYFRONET AGH
* @license This software is released under the MIT license cite... |
glass-candle/herald | app/presentation/jobs/source_blogposts.rb | # frozen_string_literal: true
module Presentation
module Jobs
class SourceBlogposts < BaseJob
include Import['application.operations.blogs.source']
include Dry::Monads::Result::Mixin
sidekiq_options retry: 5
def perform(blog_id)
result = source.call(blog_id)
case resul... |
RussellChamp/cover-api | application/models/file_test.go | package models
import (
"time"
)
func (ms *ModelSuite) TestFile_ConvertToAPI() {
user := CreateUserFixtures(ms.DB, 1).Users[0]
file := CreateFileFixtures(ms.DB, 1, user.ID).Files[0]
got := file.ConvertToAPI(ms.DB)
ms.Equal(file.ID, got.ID)
ms.Equal(file.URL, got.URL)
ms.Equal(file.URLExpiration, got.URLExpira... |
Jeremyyang920/datadog-agent | pkg/collector/corechecks/snmp/utils.go | <reponame>Jeremyyang920/datadog-agent
package snmp
import (
"fmt"
"hash/fnv"
"strconv"
"strings"
"github.com/DataDog/datadog-agent/pkg/util"
)
func createStringBatches(elements []string, size int) ([][]string, error) {
var batches [][]string
if size <= 0 {
return nil, fmt.Errorf("batch size must be positiv... |
sarrvesh/Obit | ObitSystem/ObitSD/share/scripts/scriptGCXSelImage.py | # Program to image selected data
import OTF, Image, OSystem, OErr
# Init Obit
err=OErr.OErr()
ObitSys=OSystem.OSystem ("Python", 1, 103, 1, ["None"], 1, ["../PythonData/"], 1, 0, err)
OErr.printErrMsg(err, "Error with Obit startup")
# Files
disk = 1
inFile = "GCXbandSelOTF.fits" # input OTF data
dirtFile = "!... |
renedlog/vespa | searchlib/src/vespa/searchlib/diskindex/disktermblueprint.cpp | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "disktermblueprint.h"
#include <vespa/searchlib/common/bitvectoriterator.h>
#include <vespa/searchlib/queryeval/booleanmatchiteratorwrapper.h>
#include <vespa/searchlib/queryeval/intermediate... |
opengauss-mirror/DataStudio | code/datastudio/src/org.opengauss.mppdbide.view/src/org/opengauss/mppdbide/view/terminal/queryexecution/SqlQueryExecutionWorkingContext.java | /*
* Copyright (c) 2022 Huawei Technologies Co.,Ltd.
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS... |
CyberAgent/valor | valor-trino/src/main/java/jp/co/cyberagent/valor/trino/ValorModule.java | <filename>valor-trino/src/main/java/jp/co/cyberagent/valor/trino/ValorModule.java
package jp.co.cyberagent.valor.trino;
import static com.google.common.base.Preconditions.checkArgument;
import static java.util.Objects.requireNonNull;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.j... |
microservices-training/food2go | ftgo-kitchen-service/src/main/java/net/training/ftgo/kitchenservice/web/KitchenServiceWebConfiguration.java | <reponame>microservices-training/food2go<filename>ftgo-kitchen-service/src/main/java/net/training/ftgo/kitchenservice/web/KitchenServiceWebConfiguration.java
package net.training.ftgo.kitchenservice.web;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configur... |
lunarhook/lunarhook-lunarhook | lunarhook/src/LunarCourse/QDateBase/UniversBookPageModule.js |
import React, {Component} from 'react';
import {AppRegistry,View,Text} from 'react-native';
import {six_random_NaJia} from '../../kit/UniversechangesLib/SixrandomLib/SixrandomModule'
var UniversBookPageModule = new Array()
var UniversBookPageModule = new Array()
UniversBookPageModule[0] = {"icon":"☯️","key":"0","name... |
jamessspanggg/ChairVisE | src/test/java/sg/edu/nus/comp/cs3219/viz/VizApplicationTests.java | <filename>src/test/java/sg/edu/nus/comp/cs3219/viz/VizApplicationTests.java
//package sg.edu.nus.comp.cs3219.viz;
//
//import org.junit.Test;
//import org.junit.runner.RunWith;
//import org.springframework.boot.test.context.SpringBootTest;
//import org.springframework.test.context.junit4.SpringRunner;
//
//@RunWith(Spr... |
sag-tgo/xpybuild | tests/build_utilities/native_config.xpybuild.py | <reponame>sag-tgo/xpybuild
import os
from propertysupport import *
from buildcommon import *
from pathsets import *
from utils.compilers import GCC, VisualStudio
# some basic defaults for recent default compilers for running our testcases with
if isWindows():
VSROOT=r'c:\Program Files (x86)\Microsoft Visual S... |
jameshforster/AdvancedRocketry | src/main/java/zmaster587/advancedRocketry/client/render/RocketRenderHelper.java | package zmaster587.advancedRocketry.client.render;
import org.lwjgl.opengl.GL11;
public class RocketRenderHelper {
public static void renderOrbit(double x, double y, double z, double xRadius, double yRadius, double phase) {
renderOrbit(x, y, z, xRadius, yRadius, 0, 0);
}
public static void renderOrbit(double x... |
AlHeamer/eve-indy-watch | app/controllers/personal_access_tokens_controller.rb | # frozen_string_literal: true
class PersonalAccessTokensController < ApplicationController
before_action :authenticate_user!
before_action :find_pat, only: %i[destroy]
layout 'settings'
def index
@pats = policy_scope(current_user.personal_access_tokens.order(created_at: :desc))
end
def new
@pat ... |
fahadnasrullah109/KalturaClient-Android | KalturaClient/src/main/java/com/kaltura/client/types/Filter.java | <reponame>fahadnasrullah109/KalturaClient-Android
// ===================================================================================================
// _ __ _ _
// | |/ /__ _| | |_ _ _ _ _ __ _
// | ' </ _` | | _| || | '_/ _` |
// ... |
gxw1/review_the_national_post-graduate_entrance_examination | books_and_notes/professional_courses/C++_Programming/sources/cpp_code/lab/Chapter5/ex5-14/ex5-14.cpp | #include <iostream>
using namespace std;
class Boat;
class Car {
private:
int weight;
public:
Car(int j) {
weight = j;
}
friend int getTotalWeight(Car &aCar, Boat &aBoat);
};
class Boat {
private:
int weight;
public:
Boat(int j) {
weight = j;
}
friend int getTotalWeight(Car &aCar, Boa... |
PopupMC/VariableHealth | src/main/java/com/popupmc/variablehealth/system/scaling/ScaleBasics.java | <reponame>PopupMC/VariableHealth<gh_stars>0
package com.popupmc.variablehealth.system.scaling;
import com.popupmc.variablehealth.VariableHealth;
import com.popupmc.variablehealth.system.BaseSystem;
import com.popupmc.variablehealth.system.System;
import com.popupmc.variablehealth.utility.MathTools;
import com.po... |
dram/metasfresh | backend/de.metas.procurement.base/src/main/java/de/metas/procurement/base/order/impl/OrderHeaderAggregation.java | <reponame>dram/metasfresh
package de.metas.procurement.base.order.impl;
import de.metas.adempiere.model.I_C_Order;
import de.metas.bpartner.service.IBPartnerDAO;
import de.metas.common.util.time.SystemTime;
import de.metas.document.engine.DocStatus;
import de.metas.document.engine.IDocument;
import de.metas.document.e... |
tsadm/webapp | src/tsadmhost/tests/test.py | <reponame>tsadm/webapp
from tsadm.tests import TSAdmTestBase
from ..models import HostDB
class TSAdmHostTest(TSAdmTestBase):
def setUp(self):
super(TSAdmHostTest, self).setUp()
def test_HostView(self):
resp = self.client.get(self.getURL('host:home', kwargs={'ID': 1}))
self.assertConta... |
sentient-lang/sentient-lang | spec/sentient/integration/level3/collectSpec.js | "use strict";
var compiler = "../../../../lib/sentient/compiler";
var Level1Compiler = require(compiler + "/level1Compiler");
var Level2Compiler = require(compiler + "/level2Compiler");
var Level3Compiler = require(compiler + "/level3Compiler");
var runtime = "../../../../lib/sentient/runtime";
var Level1Runtime = re... |
TheShaders/Tecto | include/resize.h | #ifndef __RESIZE_H__
#define __RESIZE_H__
#include <types.h>
#define RESIZE_TIMER_START 60
typedef enum
{
Size_Grown,
Size_Shrunk
} SizeState;
typedef enum
{
Resize_Starting,
Resize_Ending
} ResizeTrigger;
enum
{
ResizeType_Shrink_While_Held,
ResizeType_Grow_While_Held,
ResizeType_Inter... |
unseenme/mindspore | predict/src/operator/cpu/include/op_func_comm.h | /**
* Copyright 2019 Huawei Technologies Co., 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... |
NCIP/psc | core/src/main/java/edu/northwestern/bioinformatics/studycalendar/dao/StudySegmentDao.java | /*L
* Copyright Northwestern University.
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.io/psc/LICENSE.txt for details.
*/
package edu.northwestern.bioinformatics.studycalendar.dao;
import edu.northwestern.bioinformatics.studycalendar.domain.StudySegment;
import java.util.... |
itsdaniellucas/digishop | src/server-node/src/graphql/resolvers/order.js | const { getOrders, getOrder, addOrder, removeOrder } = require('../../services/orderService')
const resolver = {
Query: {
orders: (_, { pagination }, { user }) => getOrders(pagination, user),
order: (_, { id }, { user }) => getOrder(id, user)
},
Mutation: {
addOrder: (_, { order },... |
mitring/cuba | modules/gui/src/com/haulmont/cuba/gui/components/HasPresentations.java | /*
* Copyright (c) 2008-2018 Haulmont.
*
* 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 agr... |
griffithlab/civic-client | src/app/views/events/common/entityTabs.js | (function() {
'use strict';
/**
* Permits declarative (and dynamic) definitions of tab links with full routes.
*
* requires 'ui.router' and 'ui.bootstrap'
* (uses ui-tabset and tab directives in ui.bootstrap and route changes in ui.router)
*
* You can define (for styling) the attributes type="pi... |
aps337/unum-sdk | src/gdb/gdb-8.3/gdb/unittests/optional-selftests.c | /* Self tests for optional for GDB, the GNU debugger.
Copyright (C) 2017-2019 Free Software Foundation, Inc.
This file is part of GDB.
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;... |
systemok/xlauch | xlauch-web/src/main/java/com/xlauch/web/config/captcha/KaptchaConfig.java | <reponame>systemok/xlauch
package com.xlauch.web.config.captcha;
import com.google.code.kaptcha.impl.DefaultKaptcha;
import com.google.code.kaptcha.util.Config;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.a... |
Hveen8/Firebase-Mobile-App-Tests | app/build/tmp/kapt3/stubs/alphaDebug/org/wikipedia/navtab/NavTabFragmentPagerAdapter.java | package org.wikipedia.navtab;
import java.lang.System;
@kotlin.Metadata(mv = {1, 6, 0}, k = 1, d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u00a2\u0006\u00... |
floryst/ITK | Examples/Statistics/ListSample.cxx | <filename>Examples/Statistics/ListSample.cxx
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... |
muralitaws/cbmc | src/util/std_code.cpp | /*******************************************************************\
Module: Data structures representing statements in a program
Author: <NAME>, <EMAIL>
\*******************************************************************/
/// \file
/// Data structure representing different types of statements in a program
#incl... |
sveinbjornt/snowman | lib/universal-detect-stream.cpp | <filename>lib/universal-detect-stream.cpp
#include <frame-info.h>
#include <limits>
#include <math.h>
#include <nnet-lib.h>
#include <snowboy-debug.h>
#include <snowboy-io.h>
#include <snowboy-options.h>
#include <universal-detect-stream.h>
namespace snowboy {
void UniversalDetectStreamOptions::Register(const std::st... |
thai97hl/Fast-Flashlight | app/src/main/java/com/smobileteam/flashlight/view/OnColorPickerListener.java | <gh_stars>1-10
package com.smobileteam.flashlight.view;
/**
* Created by <NAME> on 3/21/2017.
* FlashlightBitbucket
*/
public interface OnColorPickerListener {
void updateColor(int color);
void OnInnerWheelClick();
}
|
fy310518/MyLibrary | baseLibrary/src/main/java/com/fy/baselibrary/application/ioc/ConfigUtils.java | package com.fy.baselibrary.application.ioc;
import android.content.Context;
import android.support.annotation.NonNull;
import android.text.TextUtils;
import com.fy.baselibrary.dress.DressColor;
import com.fy.baselibrary.statuslayout.OnStatusAdapter;
import java.util.ArrayList;
import java.util.List;
import okhttp3.... |
kevoese/Epic-mail-react-app | src/components/HOC/withUser.js | <reponame>kevoese/Epic-mail-react-app
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { setUserAction } from '@actions/Auth';
const withUser = (WrappedComponent) => {
class HOC extends Component {
componentDidMount() {
this.props.setUser();
}
render() {
... |
paullewallencom/node-978-1-8392-1411-0 | _/07-creational-design-patterns/02-factory-dynamic-class/imageJpeg.js | import { Image } from './image.js'
export class ImageJpeg extends Image {
constructor (path) {
if (!path.match(/\.jpe?g$/)) {
throw new Error(`${path} is not a JPEG image`)
}
super(path)
}
}
|
benoitc/pypy | pypy/translator/backendopt/test/test_support.py | <reponame>benoitc/pypy
from pypy.translator.translator import TranslationContext, graphof
from pypy.translator.backendopt.support import \
find_loop_blocks, find_backedges, compute_reachability
#__________________________________________________________
# test compute_reachability
def test_simple_compute_reachab... |
keva-dev/keva | core/src/main/java/dev/keva/core/command/impl/zset/ZScore.java | package dev.keva.core.command.impl.zset;
import dev.keva.core.command.annotation.CommandImpl;
import dev.keva.core.command.annotation.Execute;
import dev.keva.core.command.annotation.ParamLength;
import dev.keva.ioc.annotation.Autowired;
import dev.keva.ioc.annotation.Component;
import dev.keva.protocol.resp.reply.Bul... |
CommandPost/FinalCutProFrameworks | Headers/Frameworks/Flexo/FFHGObjectInfo.h | <reponame>CommandPost/FinalCutProFrameworks
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Mar 11 2021 20:53:35).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import <objc/NSObject.h>
@class FFRendererInfo;
__attribute__((visibility("hidden")))
@interface FFHGObjectInfo : NSObject
{
struct ... |
UK-Export-Finance/dtfs2 | azure-functions/acbs-function/acbs-http/test.js | const df = require('durable-functions');
const httpFunction = require('./index');
const context = require('../testing/defaultContext');
test('Http trigger should return known text', async () => {
const request = {
params: {
functionName: 'mockDurableFunction',
},
body: {
mock: 1,
},
};
... |
LEGO-Robotics/SPIKE-Prime | decompiler/disassemble.py | #!/usr/bin/python3
import argparse
import os
import importlib
import io
import sys
MP_BC_MASK_FORMAT = 0xf0
MP_BC_MASK_EXTRA_BYTE = 0x9e
MP_BC_FORMAT_BYTE = 0
MP_BC_FORMAT_QSTR = 1
MP_BC_FORMAT_VAR_UINT = 2
MP_BC_FORMAT_OFFSET ... |
rbeucher/underworld2 | underworld/libUnderworld/Underworld/Utils/AdvectionDiffusion/src/Timestep.c | <gh_stars>0
/*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
** **
** This file forms part of the Underworld geophysics modelling application. **
** ... |
jstastny-cz/appformer | uberfire-workbench/uberfire-workbench-processors-tests/src/test/resources/org/uberfire/annotations/processors/PerspectiveTest17.java | package org.uberfire.annotations.processors;
import javax.annotation.PostConstruct;
import javax.enterprise.context.ApplicationScoped;
import com.google.gwt.user.client.ui.FlowPanel;
import org.uberfire.client.workbench.panels.impl.MultiTabWorkbenchPanelPresenter;
import org.uberfire.client.annotations.WorkbenchPanel... |
group4BCS1/BCS-2021 | src/chapter8/exercise4.py | list = []
fhand = open('romeo.txt')
for line in fhand:
x = line.split()
for y in x:
if y in list:
continue
list.append(y)
print(sorted(list)) |
metincansiper/Paxtools | psimi-converter/src/main/java/org/biopax/paxtools/converter/psi/package-info.java |
/**
* @author rodche
*
*/
package org.biopax.paxtools.converter.psi; |
todhm/wicarproject | wicarproject/static/wicar_dashboard/src/carbasicsetting/CarBasicSetting.js | <reponame>todhm/wicarproject<gh_stars>1-10
import React, { Component } from 'react';
import { Link } from 'react-router-dom'
import PropTypes from 'prop-types'
import serializeForm from 'form-serialize'
import AddressForm from '../utils/AddressForm'
import SelectField from '../utils/SelectField'
import SmallField from ... |
liexusong/fuchsia | src/camera/bin/factory/streamer.h | <filename>src/camera/bin/factory/streamer.h
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SRC_CAMERA_BIN_FACTORY_STREAMER_H_
#define SRC_CAMERA_BIN_FACTORY_STREAMER_H_
#include <fuchsia/camera... |
Junvary/gin-quasar-admin | GQA-BACKEND/service/system/sys_dict.go | package system
import (
"errors"
"github.com/Junvary/gin-quasar-admin/GQA-BACKEND/global"
"github.com/Junvary/gin-quasar-admin/GQA-BACKEND/model/system"
"gorm.io/gorm"
)
type ServiceDict struct {}
func (s *ServiceDict) GetDictList(requestDictList system.RequestDictList) (err error, role interface{}, total int64,... |
csell5/RadonFanMobile | source/radonFan/app/tns_modules/ui/border/border.android.js | <reponame>csell5/RadonFanMobile<filename>source/radonFan/app/tns_modules/ui/border/border.android.js<gh_stars>1-10
var __extends = this.__extends || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = ... |
phlegx/uvue | tests/utils/e2e.js | const request = require('request');
const cheerio = require('cheerio');
const baseURL = 'http://localhost:7357';
/**
* Do a HTTP request
*/
const doRequest = async (url, options) => {
return new Promise(resolve => {
request(
{
url,
...options,
},
(error, response, body) => {
... |
Sebastian-Rostock/java.bee-creative | src/main/java/bee/creative/util/HashMapII.java | package bee.creative.util;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.Map;
import bee.creative.emu.EMU;
import bee.creative.lang.Objects;
/** Diese Klasse implementiert eine auf {@link AbstractHashMap} aufbau... |
springdev-projects/spring-ldap | core/src/test/java/org/springframework/ldap/core/LdapTemplateLookupTest.java | <reponame>springdev-projects/spring-ldap<filename>core/src/test/java/org/springframework/ldap/core/LdapTemplateLookupTest.java
/*
* Copyright 2005-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Li... |
anatolse/beam | 3rdparty/libbitcoin/include/bitcoin/bitcoin/machine/script_pattern.hpp | /**
* Copyright (c) 2011-2017 libbitcoin developers (see AUTHORS)
*
* This file is part of libbitcoin.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the Lic... |
mcombell/tuscany-sca | modules/implementation-node-runtime/src/main/java/org/apache/tuscany/sca/implementation/node/provider/NodeImplementationProvider.java | <reponame>mcombell/tuscany-sca<gh_stars>1-10
/*
* 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 ... |
SamuelNovak/GJAR_IoT | Frontend/src/hoc/Transitions/FlyIn.js | import React from "react";
import { motion } from "framer-motion";
const FlyIn = ({ children, slideUp = 0, delay = 0, className }) => {
return (
<motion.div
className={className}
transition={{ delay: delay, duration: 0.5, times: [0.3, 0.6, 1] }}
initial={{ opacit... |
khuctrang/aha | src/pages/404.js | import React from 'react';
import { Button, SafeAnchor } from '@ahaui/react';
import pkg from '../../aha-react/package.json';
import withLayout from '../withLayout';
export default withLayout(
class HomePage extends React.Component {
render() {
return (
<div className="u-flex u-marginTopMedium lg:... |
DaviVianna/CRUDs | skintrade/crud/backend/api/src/controllers/excluir.js | //required Model
const db = require('../models/excluir');
const express = require('express');
const app = express();
app.use(express.json());
const exclude = async (req, res) => {
const data = {
id: req.params.id
}
console.log(data);
//Instanciando a Model
await db.excluirDad... |
peintune/springboot-study | spring-bean-post-processor/src/main/java/spring/study/beanpostproessor/embedded/BeanForMethodValidation.java | <filename>spring-bean-post-processor/src/main/java/spring/study/beanpostproessor/embedded/BeanForMethodValidation.java
package spring.study.beanpostproessor.embedded;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.V... |
akquinet/drools | drools-verifier/src/main/java/org/drools/verifier/misc/DrlPackageParser.java | <filename>drools-verifier/src/main/java/org/drools/verifier/misc/DrlPackageParser.java
/*
* Copyright 2010 JBoss 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... |
billwert/azure-sdk-for-java | sdk/policyinsights/azure-resourcemanager-policyinsights/src/samples/java/com/azure/resourcemanager/policyinsights/generated/PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentSamples.java | <gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.policyinsights.generated;
import com.azure.core.util.Context;
/** Samples for PolicyEvents ListQueryResultsForS... |
SINTEF/simapy | src/sima/simo/wasimresultexport.py | # This an autogenerated file
#
# Generated with WasimResultExport
from __future__ import annotations
from typing import Dict,Sequence,List
from dmt.entity import Entity
from dmt.blueprint import Blueprint
from .blueprints.wasimresultexport import WasimResultExportBlueprint
from typing import Dict
from sima.sima.moao i... |
isabella232/tessapi | 4.0.0/a03438.js | var a03438 =
[
[ "base", "a03438.html#a7b43dfaccfaccaaf09d7e957b8504435", null ],
[ "FunctionSignature", "a03438.html#a46f407132044b55d0848b71a57a3c922", null ],
[ "_TessFunctionResultCallback_1_3", "a03438.html#a0b896d13eaa9374abdd337aa51ba0d74", null ],
[ "Run", "a03438.html#a98f1d7285c6f2002f77c2a4f0... |
Y-D-Lu/rr_frameworks_base | services/tests/uiservicestests/src/com/android/server/notification/ZenModeHelperTest.java | <filename>services/tests/uiservicestests/src/com/android/server/notification/ZenModeHelperTest.java<gh_stars>0
/*
* 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 obt... |
Daornit/affliate-qraphql-admin | src/components/Category/ShortCategory.js | import React from "react";
import PropTypes from "prop-types";
import { withStyles } from "@material-ui/core/styles";
import Card from '@material-ui/core/Card';
import CardContent from '@material-ui/core/CardContent';
import CardMedia from '@material-ui/core/CardMedia';
import Typography from '@material-ui/core/Typogr... |
iklasky/timemachines | tests/dlm/test_dlm_exogenous.py | <reponame>iklasky/timemachines
from timemachines.skaters.dlm.dlmunivariate import using_dlm
if using_dlm:
from timemachines.skaters.dlm.dlmexogenous import dlm_exogenous_r3, dlm_exogenous_b
from timemachines.skatertools.evaluation.evaluators import hospital_mean_square_error_with_sporadic_fit, hospital_exog_mea... |
chenleizhaoEdinboro/chenleizhaoedinboro.github.io | NemoJava-2.0/src/test/java/FactoryAndData/FE/SWAT564.java | package FactoryAndData.FE;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Factory;
import CommonFunction.Common;
import TestData.PropsUtils;
import TestScript.FE.SWAT564Test;
public class SWAT564 {
@DataProvider(name = "test")
public static Object[][] Data564() {
return Common.getFact... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.