repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
PandaProgrammingHub/ls | app/services/schoolMasters/divisionFactory.js | <reponame>PandaProgrammingHub/ls
angular.module('MyApp')
.factory('divisionFactory', function($http) {
return {
getDivisionDetail: function() {
return $http.get('/api/divisions');
}
};
}); |
7aske/grain | src/test/java/com/_7aske/grain/http/json/JsonDeserializerTest.java | package com._7aske.grain.http.json;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNull;
class JsonDeserializerTest {
static class User {
String username;
@JsonIgnore
String password;
User manager;
}
@T... |
danieljurek/Sia-EventUI | cfg/distConstants.js | <filename>cfg/distConstants.js
let baseConstants = require('./defaultConstants')
const argv = require('minimist')(process.argv.slice(2))
let distConstants = Object.assign({}, baseConstants, {
appEnv: 'dist',
aadInstance: argv.aadInstance,
aadTenant: argv.aadTenant,
clientId: argv.clientId,
baseUrl: argv.base... |
waruqi/hikyuu | hikyuu_cpp/hikyuu/indicator/imp/Vigor.cpp | /*
* Vigor.cpp
*
* Created on: 2013-4-12
* Author: fasiondog
*/
#include "Vigor.h"
#include "../crt/EMA.h"
#include "../crt/PRICELIST.h"
#include "../crt/KDATA.h"
#include "../crt/REF.h"
namespace hku {
Vigor::Vigor(): IndicatorImp("VIGOR", 1) {
setParam<int>("n", 2);
}
Vigor::Vigor(const KData& kdat... |
timami/PlaneSense | GoPositionalAudio/jsimplementation/node_modules/web-audio-engine/lib/api/index.js | "use strict";
module.exports = {
AnalyserNode: require("./AnalyserNode"),
AudioBuffer: require("./AudioBuffer"),
AudioBufferSourceNode: require("./AudioBufferSourceNode"),
AudioContext: require("./AudioContext"),
AudioDestinationNode: require("./AudioDestinationNode"),
AudioListener: require("./AudioListen... |
km-works/kmw-astgen | src/main/java/edu/rice/cs/plt/recur/ValueContinuation.java | <reponame>km-works/kmw-astgen
/*BEGIN_COPYRIGHT_BLOCK*
PLT Utilities BSD License
Copyright (c) 2007-2010 JavaPLT group at Rice University
All rights reserved.
Developed by: Java Programming Languages Team
Rice University
http://www.cs.rice.edu/~javaplt/
Redistribution and use in so... |
Tinkoff/neptune | selenium/src/main/java/ru/tinkoff/qa/neptune/selenium/HttpProxy.java | <filename>selenium/src/main/java/ru/tinkoff/qa/neptune/selenium/HttpProxy.java
package ru.tinkoff.qa.neptune.selenium;
import org.openqa.selenium.WebDriverException;
import org.openqa.selenium.devtools.DevTools;
import org.openqa.selenium.devtools.v102.network.Network;
import org.openqa.selenium.devtools.v102.network.... |
l-cdc/scala | src/compiler/scala/tools/nsc/typechecker/PatternTypers.scala | /*
* Scala (https://www.scala-lang.org)
*
* Copyright EPFL and Lightbend, Inc.
*
* Licensed under Apache License 2.0
* (http://www.apache.org/licenses/LICENSE-2.0).
*
* See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*/
package scala
package tools
pa... |
janduracz/acumen-dev | src/main/scala/acumen/interpreters/enclosure/event/tree/EventTree.scala | <reponame>janduracz/acumen-dev
package acumen.interpreters.enclosure.event.tree
import acumen.interpreters.enclosure._
import acumen.interpreters.enclosure.HybridSystem
import acumen.interpreters.enclosure.Types._
import acumen.interpreters.enclosure.Types.Event
import acumen.interpreters.enclosure.Util._
import acume... |
javaduke/data-weave-intellij-plugin | data-weave-plugin/src/main/java/org/mule/tooling/lang/dw/spellchecker/WeaveSpellCheckerStrategy.java | <filename>data-weave-plugin/src/main/java/org/mule/tooling/lang/dw/spellchecker/WeaveSpellCheckerStrategy.java
package org.mule.tooling.lang.dw.spellchecker;
import com.intellij.psi.PsiElement;
import com.intellij.spellchecker.tokenizer.SpellcheckingStrategy;
import org.jetbrains.annotations.NotNull;
import org.mule.t... |
binhdv37/nong-nghiep-v2 | application/src/main/java/org/thingsboard/server/dft/services/baocaoTongHop/BcTongHopService.java | <filename>application/src/main/java/org/thingsboard/server/dft/services/baocaoTongHop/BcTongHopService.java<gh_stars>0
package org.thingsboard.server.dft.services.baocaoTongHop;
import java.util.List;
import java.util.UUID;
public interface BcTongHopService {
// tong so canh bao trong 1 khoang thoi gian cua 1 da... |
ga4gh-beacon/beacon-elixir | elixir_beacon/src/main/java/org/ega_archive/elixirbeacon/dto/BeaconRequest.java | package org.ega_archive.elixirbeacon.dto;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class BeaconRequest {
private String variantType;
private String altern... |
kas1e/Eldritch | Code/Libraries/UI/src/Actions/wbactionuishowhidewidget.h | <gh_stars>0
#ifndef WBACTIONUISHOWHIDEWIDGET_H
#define WBACTIONUISHOWHIDEWIDGET_H
#include "wbaction.h"
class WBActionUIShowHideWidget : public WBAction {
public:
WBActionUIShowHideWidget();
virtual ~WBActionUIShowHideWidget();
DEFINE_WBACTION_FACTORY(UIShowHideWidget);
virtual void InitializeFromDefinitio... |
rillig/r4intellij | test/com/r4intellij/debugger/RForcedFunctionDebuggerHandlerTest.java | <reponame>rillig/r4intellij<gh_stars>100-1000
package com.r4intellij.debugger;
import com.r4intellij.debugger.data.RLocation;
import com.r4intellij.debugger.exception.RDebuggerException;
import com.r4intellij.debugger.executor.RExecutionResult;
import com.r4intellij.debugger.mock.MockRExecutor;
import com.r4intellij.d... |
SimonCasteran/JobBoard | back/app.js | <filename>back/app.js
const express = require ("express");
require("dotenv").config();
const app = express();
const connectTodatabase = require("./config/connectToDatabase")
const bodyParser = require("body-parser");
const cors = require("cors")
const port = process.env.PORT;
const users = require("./controllers/users"... |
anubhavnandan/leetCode | 14_Longest_Common_Prefix.cpp | <filename>14_Longest_Common_Prefix.cpp
//C++ 11
#include<iostream>
#include<bits/stdc++.h>
using namespace std;
class Solution {
public:
string longestCommonPrefix(vector<string>& strs) {
string prefixHanger;
int commonPrefixIndex=0;
sort(strs.begin(),strs.end(),[]
(const std::string&... |
fluffynukeit/mdsplus | xmdsshr/XmdsWidgetCallbacks.c | <filename>xmdsshr/XmdsWidgetCallbacks.c<gh_stars>10-100
/*
Copyright (c) 2017, Massachusetts Institute of Technology 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 r... |
abelidze/planer-server | app/src/main/java/com/skillmasters/server/http/response/ObjectResponse.java | <filename>app/src/main/java/com/skillmasters/server/http/response/ObjectResponse.java
package com.skillmasters.server.http.response;
import java.util.List;
public class ObjectResponse extends Response<Object, ObjectResponse>
{
public ObjectResponse()
{
super(ObjectResponse.class);
}
} |
dram/metasfresh | backend/de.metas.adempiere.adempiere/base/src/test/java/de/metas/process/ADProcessServiceTest.java | <reponame>dram/metasfresh
/*
* #%L
* de.metas.adempiere.adempiere.base
* %%
* Copyright (C) 2021 metas GmbH
* %%
* 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 of the
... |
SchoolPower/SchoolPower-Backend | localization/test_localize.py | <gh_stars>1-10
import unittest
from localize import get_equivalent_locale, use_localize
class LocalizationTest(unittest.TestCase):
def test_equivalent_locale(self):
cases = [
["zh", "zh-Hans"],
["zh_CN", "zh-Hans"],
["zh_TW", "zh-Hant"],
["zh_HK", "zh-Hans"]... |
kjh9267/BOJ_Python | DFS/2146.py | # https://www.acmicpc.net/problem/2146
import sys
sys.setrecursionlimit(999999999)
def dfs(x, y, cnt):
if visited[y][x]:
return
visited[y][x] = True
candi[cnt].append((x, y))
new_grid[y][x] = cnt
for i, j in zip(dx, dy):
xx = i + x
yy = j + y
if not (0 <= xx < N an... |
nrgxtra/advanced | Multidimentional Lists Exerscise/07. Bombs.py | <reponame>nrgxtra/advanced
def check(row_idx, col_idx):
existing = []
if row_idx - 1 >= 0 and col_idx - 1 >= 0:
existing.append([row_idx - 1, col_idx - 1])
if row_idx - 1 >= 0:
existing.append([row_idx - 1, col_idx])
if row_idx - 1 >= 0 and col_idx + 1 < len(matrix):
exist... |
neume/docuko | app/models/data_model.rb | <reponame>neume/docuko
class DataModel < ApplicationRecord
belongs_to :created_by, class_name: 'User'
belongs_to :office
has_many :properties, class_name: 'ModelProperty', dependent: :destroy
has_many :instances, dependent: :destroy
has_many :documents, through: :instances
has_many :templates, dependent: :... |
drunkwater/leetcode | medium/python3/c0167_334_increasing-triplet-subsequence/00_leetcode_0167.py | <filename>medium/python3/c0167_334_increasing-triplet-subsequence/00_leetcode_0167.py
# DRUNKWATER TEMPLATE(add description and prototypes)
# Question Title and Description on leetcode.com
# Function Declaration and Function Prototypes on leetcode.com
#334. Increasing Triplet Subsequence
#Given an unsorted array return... |
seidu626/vumi | vumi/transports/telnet/__init__.py | """Telnet server transport."""
from vumi.transports.telnet.telnet import (TelnetServerTransport,
AddressedTelnetServerTransport)
__all__ = ['TelnetServerTransport', 'AddressedTelnetServerTransport']
|
SCECcode/cvmhlabn | test/test_cvmhlabn_exec.h | <gh_stars>0
#ifndef TEST_CVMHLABN_EXEC_H
#define TEST_CVMHLABN_EXEC_H
int suite_cvmhlabn_exec(const char *xmldir);
#endif
|
tamilselvansellamuthu/Insights | PlatformCommons/src/main/java/com/cognizant/devops/platformcommons/config/CorrelationConfig.java | /*******************************************************************************
* Copyright 2017 Cognizant Technology Solutions
*
* 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... |
josehu07/SplitFS | kernel/linux-5.4/sound/soc/intel/common/soc-acpi-intel-ehl-match.c | // SPDX-License-Identifier: GPL-2.0
/*
* soc-apci-intel-ehl-match.c - tables and support for EHL ACPI enumeration.
*
* Copyright (c) 2019, Intel Corporation.
*
*/
#include <sound/soc-acpi.h>
#include <sound/soc-acpi-intel-match.h>
struct snd_soc_acpi_mach snd_soc_acpi_intel_ehl_machines[] = {
{},
};
EXPORT_SYMB... |
arielerv/hero-journey-be | src/openapi/index.js | const pkg = root_path('package.json');
const components = require('./components');
const publicApi = require('./publicApi');
const api = require('./api');
module.exports = {
openapi: '3.0.2',
info: {title: pkg.description, version: pkg.version},
servers: [{url: 'http://localhost:3001'}],
paths: {
... |
kozlov-a-d/html-template | assets/ds-kit/basis/resize.component.js | <gh_stars>0
/**
* Компонент для отслеживания размеров при ресайзе и добавления функций по ресайзу
* @method {{setFreezeTime, getScreenWidth, addMediaQuery, resizeForce, debug}}
*/
var resizeComponent = (function(){
var self = {
screenWidth: window.innerWidth,
queries: [],
freezeTime: 100... |
cflowe/ACE | TAO/tests/Bug_2683_Regression/client.cpp | <filename>TAO/tests/Bug_2683_Regression/client.cpp
// $Id: client.cpp 91825 2010-09-17 09:10:22Z johnnyw $
#include "TestC.h"
#include "ace/Get_Opt.h"
#include "ace/Task.h"
#include "ace/OS_NS_unistd.h"
class Pinger : public ACE_Task_Base
{
private:
const char * ior_;
CORBA::ORB_var orb_;
bool do_shutdown_;
b... |
fabri1983/signaling_server | src/main/java/org/fabri1983/signaling/configuration/HazelcastSignalingConfiguration.java | package org.fabri1983.signaling.configuration;
import com.hazelcast.config.Config;
import com.hazelcast.config.ReliableTopicConfig;
import com.hazelcast.config.SerializerConfig;
import com.hazelcast.core.Hazelcast;
import com.hazelcast.core.HazelcastInstance;
import com.hazelcast.topic.ITopic;
import org.fabri1983.si... |
SteveSmith16384/ChronoCup | core/src/com/scs/splitscreenfps/game/systems/ql/recorddata/BulletFiredRecordData.java | package com.scs.splitscreenfps.game.systems.ql.recorddata;
import com.badlogic.gdx.math.Vector3;
public class BulletFiredRecordData extends AbstractRecordData {
public int playerIdx;
public Vector3 start;
public Vector3 offset;
public BulletFiredRecordData(int phase, float time, int _playerIdx, Vector3 _start,... |
sonylomo/Rocket.Chat.ReactNative | app/actions/sortPreferences.js | import * as types from './actionsTypes';
export function setAllPreferences(preferences) {
return {
type: types.SORT_PREFERENCES.SET_ALL,
preferences
};
}
export function setPreference(preference) {
return {
type: types.SORT_PREFERENCES.SET,
preference
};
}
|
njhoffman/better-musician | src/components/DevTools/Launcher/Launcher.js | <filename>src/components/DevTools/Launcher/Launcher.js
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import shouldPureComponentUpdate from 'react-pure-render/function';
import * as themes from 'redux-devtools-themes';
import Button from 'devui/lib/Button';
import SegmentedControl from 'd... |
hakujitsu/tp | src/test/java/seedu/address/model/sale/UniqueSaleListTest.java | <reponame>hakujitsu/tp<filename>src/test/java/seedu/address/model/sale/UniqueSaleListTest.java
package seedu.address.model.sale;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import sta... |
ArrogantWombatics/openbsd-src | lib/libradius/radius_local.h | /* $OpenBSD: radius_local.h,v 1.1 2015/07/20 23:52:29 yasuoka Exp $ */
/*-
* Copyright (c) 2009 Internet Initiative Japan Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redist... |
leongold/ovirt-engine | backend/manager/modules/dal/src/test/java/org/ovirt/engine/core/dao/gluster/StoageDeviceDaoTest.java | <gh_stars>1-10
package org.ovirt.engine.core.dao.gluster;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import java.util.List;
import org.juni... |
shre2398/openvino | inference-engine/src/vpu/common/src/ngraph/transformations/dynamic_to_static_shape_reduce.cpp | // Copyright (C) 2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "vpu/ngraph/transformations/dynamic_to_static_shape_reduce.hpp"
#include "vpu/ngraph/operations/dynamic_shape_resolver.hpp"
#include <vpu/utils/error.hpp>
#include "ngraph/graph_util.hpp"
#include "ngraph/opsets/opset3.hpp"
#i... |
PlayFab/XPlatCSdk | test/TestApp/AutoGenTests/AutoGenAnalyticsTests.cpp | #include "TestAppPch.h"
#include "TestContext.h"
#include "TestApp.h"
#include "AutoGenAnalyticsTests.h"
#include "XAsyncHelper.h"
#include "playfab/PFAuthentication.h"
namespace PlayFabUnit
{
using namespace PlayFab::Wrappers;
AutoGenAnalyticsTests::AnalyticsTestData AutoGenAnalyticsTests::testData;
void AutoGenAn... |
chrislcs/linear-vegetation-elements | Code/segmentation_pipeline.py | # -*- coding: utf-8 -*-
"""
@author: <NAME>
"""
import time
import multiprocessing
import pickle
import pandas as pd
import numpy as np
from tqdm import tqdm
from segmentation.regiongrowing import segment_object
PROCESSES = multiprocessing.cpu_count() - 1
INPUT = '../Data/vegetation_dbscan.csv'
OUTPUT = '../Data/s... |
Scottx86-64/dotfiles-1 | source/pkgsrc/comms/lirc/patches/patch-daemons_hw__default.c | <gh_stars>1-10
$NetBSD: patch-daemons_hw__default.c,v 1.1 2020/03/15 21:08:41 tnn Exp $
Add a missing include.
--- daemons/hw_default.c.orig 2011-03-25 22:28:18.000000000 +0000
+++ daemons/hw_default.c
@@ -21,6 +21,7 @@
#include <limits.h>
#include <signal.h>
#include <sys/stat.h>
+#include <sys/sysmacros.h> /* fo... |
LLNL/devil_ray | src/dray/data_model/subpatch.hpp | <reponame>LLNL/devil_ray<filename>src/dray/data_model/subpatch.hpp
// Copyright 2019 Lawrence Livermore National Security, LLC and other
// Devil Ray Developers. See the top-level COPYRIGHT file for details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
#ifndef DRAY_SUBPATCH_HPP
#define DRAY_SUBPATCH_HPP
#include <dr... |
ijhajj/JavaRepository | HelloWorld/src/designPatterns/Relationships.java | <filename>HelloWorld/src/designPatterns/Relationships.java
package designPatterns;
import java.util.List;
import java.util.ArrayList;
import org.javatuples.Triplet;
public class Relationships {
private List<Triplet<Person,Relationship,Person>> relations = new ArrayList<>();
public List<Triplet<Person, Relationship... |
wardat/apache-ant-1.6.2 | src/main/org/apache/tools/ant/taskdefs/optional/j2ee/HotDeploymentTool.java | /*
* Copyright 2002,2004 The Apache Software Foundation
*
* 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 b... |
Integreat/integreat-webapp | src/modules/layout/components/__tests__/HeaderActionItemDropDown.spec.js | <reponame>Integreat/integreat-webapp
// @flow
import React from 'react'
import { mount } from 'enzyme'
import ClickOutsideHeaderDropDown, { DropDownContainer, HeaderActionItemDropDown } from '../HeaderActionItemDropDown'
import fileMock from '../../../../__mocks__/fileMock'
import brightTheme from '../../../theme/cons... |
rook2pawn/password-manager-baseweb | icons/scooter_foot_break_outlined/ScooterFootBreakOutlined.js | <reponame>rook2pawn/password-manager-baseweb
import * as React from "react";
function SvgScooterFootBreakOutlined(props) {
return (
<svg
width={24}
height={24}
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path
d="M14.5 8c-3.07 0-5.64 2.14-6.32 5H6.1... |
rikhuijzer/u-can-act | config/application.rb | require_relative 'boot'
require 'rails/all'
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
Mongo::Logger.logger.level = ::Logger::INFO
module Vsv
class Application < Rails::Application
# Initialize configuration d... |
Cinegy/Cinecoder.Samples | common/conio.h | #ifdef _WIN32
#include <conio.h>
#else
/**
Linux (POSIX) implementation of _kbhit().
<NAME>, <EMAIL>
*/
#include <stdio.h>
#include <sys/select.h>
#include <termios.h>
//#include <stropts.h>
//#include <asm/ioctls.h>
#include <sys/ioctl.h>
#include <unistd.h>
inline int _kbhit()
{
static const int STDIN = 0;
... |
zenofewords/thebrushstash | thebrushstash/models.py | <reponame>zenofewords/thebrushstash<gh_stars>0
from django.db import models
from django.utils.translation import get_language
from thebrushstash.mixins import (
LinkedMixin,
PublishedMixin,
TimeStampMixin,
)
class Country(PublishedMixin):
name = models.CharField(max_length=500)
name_cro = models.... |
chgogos/oop | uml/composition1.cpp | // HAS-A relationship (composition)
#include <iostream>
class B
{
private:
int data[100];
public:
B()
{
std::cout << "Object of class B at memory " << this << " having size " << sizeof(*this) << " created" << std::endl;
}
~B()
{
std::cout << "Object of class B at memory " << t... |
urbanjost/M_CLI2 | docs/doxygen_out/html/search/all_12.js | var searchData=
[
['unnamed_148',['unnamed',['../namespacem__cli2.html#a5b03781cb432174f4ee8d734ecbb9604',1,'m_cli2']]],
['unquote_149',['unquote',['../namespacem__cli2.html#a150f312a9f4ec6dd58afb58a9a68f26a',1,'m_cli2']]],
['update_150',['update',['../namespacem__cli2.html#a160d56bc4a10faef7e8a8a4f04f4dadb',1,'m... |
yehzu/vespa | searchlib/src/vespa/searchlib/queryeval/ranksearch.h | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "multisearch.h"
namespace search::queryeval {
/**
* A simple implementation of the Rank search operation.
**/
class RankSearch : public MultiSearch
{
protected:
void doS... |
mohdab98/cmps252_hw4.2 | src/cmps252/HW4_2/UnitTesting/record_1931.java | package cmps252.HW4_2.UnitTesting;
import static org.junit.jupiter.api.Assertions.*;
import java.io.FileNotFoundException;
import java.util.List;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import cmps252.HW4_2.... |
tienpham/oci-go-sdk | analytics/work_request_action_result.go | <filename>analytics/work_request_action_result.go<gh_stars>0
// Copyright (c) 2016, 2018, 2019, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// Analytics API
//
// Analytics API.
//
package analytics
// WorkRequestActionResultEnum Enum with underlying type: string
type WorkReque... |
HappyRay/samza | samza-core/src/main/java/org/apache/samza/util/Util.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 ... |
Be-poz/atdd-subway-fare | src/main/java/wooteco/subway/path/domain/fare/DistanceFareRule.java | <filename>src/main/java/wooteco/subway/path/domain/fare/DistanceFareRule.java
package wooteco.subway.path.domain.fare;
import java.util.Arrays;
import java.util.function.Predicate;
public enum DistanceFareRule {
BASIC_DISTANCE(distance -> false, 0, 1, 1250, 0),
MIDDLE_DISTANCE(distance -> distance > 10 && dis... |
phatblat/macOSPrivateFrameworks | PrivateFrameworks/ACDEClient/ACCTicketManagerProtocol-Protocol.h | <filename>PrivateFrameworks/ACDEClient/ACCTicketManagerProtocol-Protocol.h
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "NSObject.h"
@class ACFMessage, ACFPrincipal, NSData, NSDictionary, NSNumber, NSString;
@protocol ACCT... |
meierhofer08/activemq-artemis | tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/bridge/BridgeFailoverTest.java | <reponame>meierhofer08/activemq-artemis
/*
* 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, V... |
schgressive/BotFramework-WebChat | packages/core/tests/createFacility.js | <gh_stars>1-10
import mockDirectLine from './mockDirectLine';
import { START_CONNECTION } from '../src/actions/startConnection';
import createStore from '../src/createStore';
const DEFAULT_USER_ID = 'default-user';
jest.mock('../src/util/getTimestamp', () => {
let now = 946684800000; // '2000-01-01T00:00:00.000Z'
... |
sweetkristas/swiftly | src/kre/ParticleSystemAffectors.hpp | <reponame>sweetkristas/swiftly
/*
Copyright (C) 2013-2014 by <NAME> <<EMAIL>>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for an... |
DLotts/incubator-rya | dao/mongodb.rya/src/test/java/org/apache/rya/mongodb/MongoDBRyaDAOTest.java | <reponame>DLotts/incubator-rya
package org.apache.rya.mongodb;
/*
* 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... |
xsqasxz/2020yu | src/main/java/com/small/dto/after/AfterUserAbilityPowerDto.java | package com.small.dto.after;
import lombok.Data;
import javax.validation.constraints.NotNull;
import java.util.List;
@Data
public class AfterUserAbilityPowerDto {
/**用户id*/
@NotNull(message = "用户id不可为空")
private Integer afterUserId;
/**岗位集合*/
@NotNull(message = "岗位集合不可为空")
private List<Intege... |
thomas779/BackgroundMusic | BGMApp/BGMThreadSafetyAnalysis.h | // This file is part of Background Music.
//
// Background Music 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 of the
// License, or (at your option) any later version.
//
// Background Mu... |
COVID-IWG/epimargin-studies | bihar/bihar.py | <gh_stars>0
from pathlib import Path
from typing import Dict, Optional, Sequence, Tuple
from warnings import simplefilter
import epimargin.plots as plt
import numpy as np
import pandas as pd
from epimargin.estimators import analytical_MPVS, linear_projection
from epimargin.models import SIR, NetworkedSIR
from epimargi... |
ydia530/gulimall | gulimall-product/src/main/java/com/atguigu/gulimall/product/dao/SpuInfoDescDao.java | <reponame>ydia530/gulimall
package com.atguigu.gulimall.product.dao;
import com.atguigu.gulimall.product.entity.SpuInfoDescEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* spu信息介绍
*
* @author DY
* @email <EMAIL>
* @date 2022-01-08 13:42:55
*/
@M... |
hgtpcastro/bootcamp-gostack-desafio-09 | src/pages/_layouts/auth/index.js | // Imports
import React from 'react';
import PropTypes from 'prop-types';
// UI Imports
import { Wrapper, Content } from './styles';
// Component
export default function AuthLayout({ children }) {
return (
<Wrapper>
<Content>{children}</Content>
</Wrapper>
);
}
// Constraints
AuthLayout.propTypes =... |
TzashiNorpu/Algorithm | JavaAlgorithm/src/test/java/algo/tzashinorpu/FirstRound/Chapter12/Exercise/LeetCode_5_198Test.java | <filename>JavaAlgorithm/src/test/java/algo/tzashinorpu/FirstRound/Chapter12/Exercise/LeetCode_5_198Test.java
package algo.tzashinorpu.FirstRound.Chapter12.Exercise;
import algo.tzashinorpu.FirstRound.Chapter12.Exercise.LeetCode_5_198;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*... |
hschwane/offline_production | PROPOSAL/public/PROPOSAL/decay/DecayTable.h | <filename>PROPOSAL/public/PROPOSAL/decay/DecayTable.h<gh_stars>1-10
/******************************************************************************
* *
* This file is part of the simulation tool PROPOSAL. *
* ... |
windows-development/Windows-classic-samples | Samples/Win7Samples/netds/winsock/ipxchat/Listen.c | <reponame>windows-development/Windows-classic-samples
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// Copyright 1993 - 2000 Micr... |
danpbowen/Mallet | src/cc/mallet/classify/constraints/pr/MaxEntFLPRConstraints.java | <filename>src/cc/mallet/classify/constraints/pr/MaxEntFLPRConstraints.java
/* Copyright (C) 2011 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of th... |
yuanhao2015/acoolQi | acoolqi-admin/router/dict_type_router.go | <filename>acoolqi-admin/router/dict_type_router.go
package router
import (
"acoolqi-admin/api/v1/system"
"github.com/gin-gonic/gin"
)
//初始化字典类型路由
func initDictTypeRouter(router *gin.RouterGroup) {
v := new(system.DictTypeApi)
group := router.Group("/system/dict/type")
{
//查询字典类型分页数据
group.GET("/list", v.List... |
jerolba/jfleet | jfleet-samples/src/main/java/org/jfleet/util/CsvSplit.java | <reponame>jerolba/jfleet
/**
* Copyright 2017 <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 required by applica... |
my-references/coursemology2 | app/models/components/course/user_email_unsubscriptions_ability_component.rb | <filename>app/models/components/course/user_email_unsubscriptions_ability_component.rb
# frozen_string_literal: true
module Course::UserEmailUnsubscriptionsAbilityComponent
include AbilityHost::Component
def define_permissions
allow_user_manage_email_subscription if user
super
end
private
def allo... |
14gollaher/CSC446-Compiler-Construction | CMinusMinusCompiler/CMinusMinusCompiler.Test/LexicalAnalyzer/Source/Tokens2.c | 12.
.5
|
jensonwe/mvvmFX | mvvmfx/src/test/java/de/saxsys/mvvmfx/scopes/example4/views/DialogView.java | <gh_stars>100-1000
package de.saxsys.mvvmfx.scopes.example4.views;
import de.saxsys.mvvmfx.FxmlView;
import de.saxsys.mvvmfx.InjectViewModel;
public class DialogView implements FxmlView<DialogViewModel> {
@InjectViewModel
DialogViewModel viewModel;
}
|
mark-online/server | test/loginserver.test/LoginServiceTestFixture.h | #pragma once
#include "loginserver/LoginService.h"
#include <gideon/servertest/DatabaseTestFixture.h>
#include <gideon/cs/shared/data/Certificate.h>
class MockLoginServerSideProxy;
using namespace sne;
using namespace gideon;
/**
* @class LoginServiceTestFixture
*
* 로그인 서비스 테스트 Fixture
*/
class LoginServiceTestFix... |
dmitry-vovk/sql-dataset | client_test.go | <filename>client_test.go
package main
import (
"fmt"
"io/ioutil"
"net/http"
"net/http/httptest"
"strings"
"testing"
"github.com/geckoboard/sql-dataset/models"
)
type request struct {
Method string
Headers map[string]string
Path string
Body string
}
type response struct {
code int
body string
}
... |
songlin0203/openzaly | openzaly-message/src/main/java/com/akaxin/site/message/utils/SiteConfigHelper.java | <reponame>songlin0203/openzaly
/**
* Copyright 2018-2028 Akaxin Group
*
* 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... |
hhkhub/py-ios-device | ios_device/cli/mobile.py | <filename>ios_device/cli/mobile.py
import functools
import io
import sys
import click
from ios_device.cli.base import InstrumentsBase
from ios_device.cli.cli import Command, print_json
from ios_device.servers.Installation import InstallationProxyService
from ios_device.servers.crash_log import CrashLogService
from io... |
DT-I/tlap | app/models/resource_category.rb | class ResourceCategory < ApplicationRecord
has_many :resources
end
|
DadaIsCrazy/usuba | nist/present/usuba/bench/masked_present_ua_bitslice.c | /* This code was generated by Usuba.
See https://github.com/DadaIsCrazy/usuba.
From the file "samples/usuba/present.ua" (included below). */
#include <stdint.h>
/* Do NOT change the order of those define/include */
#ifndef BITS_PER_REG
#define BITS_PER_REG 8
#endif
/* including the architecture specific .h */
... |
Angular2Guy/AngularPortfolioMgr | src/main/java/ch/xxx/manager/domain/utils/MyLogPrintWriter.java | /**
* Copyright 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 required by applicable law or agreed to in writing... |
Capping-WAR/API | swagger_server/models/reviewer.py | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from swagger_server.models.base_model_ import Model
from swagger_server import util
class Reviewer(Model):
"""NOTE: This class is auto generated by the swagger co... |
chenguiquan1997/sleeve-cms | src/main/java/io/github/talelin/latticy/dto/my/BelongSpec.java | package io.github.talelin.latticy.dto.my;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @Author <NAME>
* @Date 2021/4/21 18:25
* @Version 1.0
*/
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
public class BelongSpec {
private Long k... |
yangwawa0323/Learning-Python-Networking-Second-Edition | chapter10/non-blocking/tcp_server_selectors.py | #!/usr/bin/env python3
import selectors
import types
import socket
selector = selectors.DefaultSelector()
def accept_connection(sock):
connection, address = sock.accept()
print('Connection accepted in {}'.format(address))
# We put the socket in non-blocking mode
connection.setblocking(False)
data... |
kubeform/provider-oci-api | apis/datascience/v1alpha1/model_deployment_types.go | <reponame>kubeform/provider-oci-api<gh_stars>1-10
/*
Copyright AppsCode Inc. and Contributors
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 ... |
gparkkii/HelloTube | client/src/styles/typography.js | <filename>client/src/styles/typography.js
import styled from 'styled-components';
export const MainTitle = styled.h2`
font-size: 56px;
font-weight: 500;
`;
export const LogoTitle = styled.div`
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100%;
font-size: ... |
ProjectFurnace/furnace-cli | actions/ignite.js | <gh_stars>0
const gitutils = require("@project-furnace/gitutils"),
fsutils = require("@project-furnace/fsutils"),
workspace = require("../utils/workspace"),
path = require("path"),
inquirer = require("inquirer"),
chalk = require("chalk"),
github = require("../utils/github"),
randomstring = require("random... |
Asymmetric-Effort/asymmetric-toolkit | src/common/source/start.go | package source
func (o *Source) Start() {
o.isPaused = false
}
|
mohdab98/cmps252_hw4.2 | src/cmps252/HW4_2/UnitTesting/record_2368.java | <reponame>mohdab98/cmps252_hw4.2
package cmps252.HW4_2.UnitTesting;
import static org.junit.jupiter.api.Assertions.*;
import java.io.FileNotFoundException;
import java.util.List;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter... |
LambentClient/Lambent | src/minecraft/com/jay/immoral/client/module/Module.java | <reponame>LambentClient/Lambent
package com.jay.immoral.client.module;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import org.lwjgl.input.Keyboard;
import com.darkmagician6.eventapi.EventManager;
import net.minecraft.client.Minecraft;
public class Module {
private String n... |
litty-studios/randar | modules/engine/include/randar/Render/Palette/Palette.hpp | <reponame>litty-studios/randar
#ifndef RANDAR_RENDER_PALETTE_HPP
#define RANDAR_RENDER_PALETTE_HPP
#include <randar/Render/Color.hpp>
namespace randar
{
/**
* A color palette.
*
* Used to sample specifically random colors.
*/
struct Palette
{
/**
* Destructor.
... |
thevpc/nuts | core/nuts-runtime/src/main/java/net/thevpc/nuts/runtime/core/filters/id/NutsIdFilterAnd.java | package net.thevpc.nuts.runtime.core.filters.id;
import net.thevpc.nuts.*;
import net.thevpc.nuts.runtime.core.util.Simplifiable;
import net.thevpc.nuts.runtime.core.util.CoreNutsUtils;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
public class NutsId... |
Minkyu-Jeon/gitlabhq | spec/lib/gitlab/graphql/authorize/authorize_field_service_spec.rb | # frozen_string_literal: true
require 'spec_helper'
# Also see spec/graphql/features/authorization_spec.rb for
# integration tests of AuthorizeFieldService
RSpec.describe Gitlab::Graphql::Authorize::AuthorizeFieldService do
def type(type_authorizations = [])
Class.new(Types::BaseObject) do
graphql_name 'T... |
TheRakeshPurohit/CodingSpectator | plug-ins/helios/org.eclipse.jdt.ui.tests.refactoring/resources/ExtractMethodWorkSpace/ExtractMethodTests/locals_in/A_test534.java | <reponame>TheRakeshPurohit/CodingSpectator<gh_stars>1-10
package locals_in;
public class A_test534 {
class Inner {
public int x;
}
public void foo() {
Inner inner= new Inner();
/*[*/inner.x= 10;/*]*/
int y= inner.x;
}
} |
jomei/iodine | ext/iodine/random.c | /*
Copyright: <NAME>, 2016-2017
License: MIT except for any non-public-domain algorithms (none that I'm aware
of), which might be subject to their own licenses.
Feel free to copy, use and enjoy in accordance with to the license(s).
*/
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include "random.h"
#if defined(USE_... |
Prometheus0000/BloodMagic | src/api/java/vazkii/botania/api/mana/spark/SparkHelper.java | /**
* This class was created by <Vazkii>. It's distributed as
* part of the Botania Mod. Get the Source Code in github:
* https://github.com/Vazkii/Botania
*
* Botania is Open Source and distributed under a
* Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License
* (http://creativecommons.org/license... |
titilima/blink | src/blinkit/gc/gc_heap.h | <filename>src/blinkit/gc/gc_heap.h<gh_stars>10-100
// -------------------------------------------------
// BlinKit - BlinKit Library
// -------------------------------------------------
// File Name: gc_heap.h
// Description: GCHeap Class
// Author: <NAME>
// Created: 2020-11-14
// --------------------------... |
CLUB-INFORMATIQUE/unity-ads-ios | UnityAds/Request/UADSWebRequestEvent.h | #import <Foundation/Foundation.h>
typedef NS_ENUM(NSInteger, UnityAdsWebRequestEvent) {
kUnityAdsWebRequestEventComplete,
kUnityAdsWebRequestEventFailed
};
NSString *NSStringFromWebRequestEvent(UnityAdsWebRequestEvent); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.