repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
Raevar/bachelor-thesis | test/edu/tum/cup2/test/lr1blowup/Spec14NoPrec.java | <reponame>Raevar/bachelor-thesis
package edu.tum.cup2.test.lr1blowup;
import org.junit.Test;
import edu.tum.cup2.grammar.NonTerminal;
import edu.tum.cup2.grammar.Terminal;
import edu.tum.cup2.spec.CUP2Specification;
import edu.tum.cup2.test.Time;
//locate static imports after others to be compatible with javac
impor... |
feiyu2016/hermes | hermes-metaserver/src/main/java/com/ctrip/hermes/meta/server/RestException.java | package com.ctrip.hermes.meta.server;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import org.codehaus.plexus.util.ExceptionUtils;
public class RestException extends WebApplicationException {
private static final long serialVersionUID = -5416250813... |
TruthTreeASD/backend | modules/application/src/main/java/edu/northeastern/truthtree/adapter/utilities/URLUtil.java | package edu.northeastern.truthtree.adapter.utilities;
import org.json.simple.JSONArray;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.springframework.http.Resp... |
silviuvergoti/pebble | pebble/src/main/java/com/mitchellbosecke/pebble/node/expression/UnaryNotExpression.java | <gh_stars>100-1000
/*
* This file is part of Pebble.
*
* Copyright (c) 2014 by <NAME>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
package com.mitchellbosecke.pebble.node.expression;
import com.mitchellbosecke.pebble.error.Pebb... |
cmfitzg2/2d-horror | src/Cutscenes/MansionExteriorCutscene1.java | package Cutscenes;
import Entities.Creatures.*;
import Entities.EntityManager;
import Entities.StaticEntities.IronGate;
import Entities.StaticEntities.Mansion;
import Graphics.Assets;
import Input.KeyManager;
import Textboxes.TextboxHandler;
import Tiles.Tile;
import Utils.GeneralUtils;
import Variables.GeneralConstan... |
Yomy1996/P1 | odoo-14.0/addons/website_event_track_quiz/__manifest__.py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Quizzes on Tracks',
'category': 'Marketing/Events',
'sequence': 1007,
'version': '1.0',
'summary': 'Quizzes on tracks',
'website': 'https://www.odoo.com/page/events',
'description'... |
artemaminov/spree_cropper | app/models/spree/types_dimension.rb | module Spree
class TypesDimension < Spree::Base
belongs_to :cropper_dimension, class_name: 'Spree::CropperDimension', foreign_key: 'spree_cropper_dimension_id', inverse_of: :types_dimensions
belongs_to :block_type, class_name: 'Spree::ImageCombineBlockType', foreign_key: 'spree_image_combine_block_type_id', i... |
shenkevin/B2CStore | app/src/main/java/cn/mstar/store/activity/ReturnGoodsProgressActivity.java | <gh_stars>1-10
package cn.mstar.store.activity;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout... |
debitan/Ndesign | src/pages/checkout.js | <filename>src/pages/checkout.js
import React, { useState } from 'react'
import styled from 'styled-components'
import { Elements } from 'react-stripe-elements'
import App from '../components/App'
import CheckoutForm from '../components/CheckoutForm'
import MyContext from '../components/MyContext'
import CustomerInform... |
DeadZoneLuna/csso-src | src/game/shared/activitylist.cpp | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//
//=============================================================================//
#include "cbase.h"
#include "ai_activity.h"
#include "activitylist.h"
#include "stringregistry.h"
#include "isaverestore.... |
dexueyang/trick-dup0 | trick_models/test/impexp/include/test.h | /********************************* TRICK HEADER *******************************
PURPOSE:
(Trick test)
REFERENCES:
(((Trick Simulation Environment) (NASA:JSC #37943)
(JSC/Engineering Directorate/Automation, Robotics and Simulation Division)
(Nov 2001)))
ASSUMPTIONS AND LIMITATIONS:
((None))
PROGR... |
christopheranderson/azure-sdk-for-java | sdk/keyvault/azure-keyvault-secrets/src/main/java/com/azure/security/keyvault/secrets/models/Secret.java | <reponame>christopheranderson/azure-sdk-for-java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.security.keyvault.secrets.models;
import com.azure.security.keyvault.secrets.SecretAsyncClient;
import com.azure.security.keyvault.secrets.SecretClient;
im... |
Giddius/Antistasi_Logbook | antistasi_logbook/gui/widgets/dock_widget.py | """
WiP.
Soon.
"""
# region [Imports]
# * Standard Library Imports ---------------------------------------------------------------------------->
from typing import TYPE_CHECKING, Union
from pathlib import Path
# * Qt Imports --------------------------------------------------------------------------------------->
fr... |
liumapp/simple-sdk-example | client-server/src/main/java/com/liumapp/demo/sdk/client/db/user/service/ShippingAddressService.java | package com.liumapp.demo.sdk.client.db.user.service;
import com.liumapp.demo.sdk.client.db.user.domain.ShippingAddress;
/**
* @author liumapp
* @file ShippingAddressService.java
* @email <EMAIL>
* @homepage http://www.liumapp.com
* @date 6/19/18
*/
public interface ShippingAddressService {
int insert (Ship... |
danzel-py/Kattis-Problem-Archive | below2.1/halfacookie.cc | <reponame>danzel-py/Kattis-Problem-Archive
#include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;
int main(){
double r,x,y;
double smol;
double big;
while (cin>>r)
{
cin>>x>>y;
if(x*x + y*y > r*r){
cout<<"miss\n";
continue;
}
... |
Clara19/SilverKing | src/com/ms/silverking/text/NonFatalExceptionResponse.java | package com.ms.silverking.text;
enum NonFatalExceptionResponse {
IGNORE_EXCEPTIONS, LOG_EXCEPTIONS, THROW_EXCEPTIONS
} |
hao-wang/Montage | js-test-suite/testsuite/6043d9521d2330ec8348797e9d024327.js | load("201224b0d1c296b45befd2285e95dd42.js");
// Don't hand out internal function objects via Debugger.Environment.prototype.getVariable.
// When the real scope chain object holding the binding for 'f' in 'function f()
// { ... }' is optimized out because it's never used, we whip up fake scope
// chain objects for Debu... |
irgiob/RippleDEX | src/__tests__/integration/userIntegration.test.js | <gh_stars>1-10
import React from "react"
import { render, fireEvent, act, waitFor } from "@testing-library/react"
import ProfileSettings from "../../components/settings/profileSettings"
import { updateMemberPosition } from "../../models/Organisation"
import { updateUser } from "../../models/User"
jest.mock("../../mod... |
CQCL/tket | tket/tests/Circuit/test_Boxes.cpp | <filename>tket/tests/Circuit/test_Boxes.cpp
// Copyright 2019-2022 Cambridge Quantum Computing
//
// 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/LIC... |
Ennosigaeon/scipy | scipy/io/_fortran.py | """
Module to read / write Fortran unformatted sequential files.
This is in the spirit of code written by <NAME> and <NAME>.
"""
import warnings
import numpy as np
__all__ = ['FortranFile', 'FortranEOFError', 'FortranFormattingError']
class FortranEOFError(TypeError, IOError):
"""Indicates that the file ended ... |
yinchengtsinghua/RippleCPPChinese | src/ripple/protocol/tokens.h | <gh_stars>1-10
//此源码被清华学神尹成大魔王专业翻译分析并修改
//尹成QQ77025077
//尹成微信18510341407
//尹成所在QQ群721929980
//尹成邮箱 <EMAIL>
//尹成毕业于清华大学,微软区块链领域全球最有价值专家
//https://mvp.microsoft.com/zh-cn/PublicProfile/4033620
//————————————————————————————————————————————————————————————————————————————————————————————————————————————————
/*
此文件是Ri... |
BALL-Contrib/contrib_boost_1.66.0 | libs/unordered/test/unordered/load_factor_tests.cpp | <filename>libs/unordered/test/unordered/load_factor_tests.cpp
// Copyright 2006-2009 <NAME>.
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// clang-format off
#include "../helpers/prefix.hpp"
#include <boost/uno... |
yingyueshi/journalkeeper | journalkeeper-core/src/main/java/io/journalkeeper/core/state/Snapshot.java | <reponame>yingyueshi/journalkeeper
package io.journalkeeper.core.state;
import io.journalkeeper.base.Replicable;
import io.journalkeeper.base.ReplicableIterator;
import io.journalkeeper.core.api.EntryFuture;
import io.journalkeeper.core.api.JournalEntry;
import io.journalkeeper.core.api.RaftJournal;
import io.journalk... |
navikt/arxaas | src/test/java/no/nav/arxaas/GenerateEdgeCaseData.java | package no.nav.arxaas;
import com.fasterxml.jackson.databind.ObjectMapper;
import no.nav.arxaas.model.Attribute;
import no.nav.arxaas.model.anonymity.PrivacyCriterionModel;
import no.nav.arxaas.model.Request;
import org.springframework.mock.web.MockMultipartFile;
import java.io.File;
import java.io.IOException;
impor... |
FatihBozik/ocp8-study-guide | advanced-class-design/src/main/java/io/github/fatihbozik/ch1/objectmethods/tostring/example3/ApacheToString.java | <filename>advanced-class-design/src/main/java/io/github/fatihbozik/ch1/objectmethods/tostring/example3/ApacheToString.java
package io.github.fatihbozik.ch1.objectmethods.tostring.example3;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* @author <N... |
leslie-qiwa/box | builder/command/commands.go | // Package command - command for the box builder
//
// Documentation is deliberately simple here, it maps directly to the verbs and
// functions in the box builder documentation:
// https://box-builder.github.io/box. Duplicating it here seems pointless.
//
package command
import (
"github.com/box-builder/box/builder/... |
metaplus/Gallery | core/config.h | <reponame>metaplus/Gallery
#pragma once
// Visual Studio
#define _CRT_SECURE_NO_WARNINGS
#define _SCL_SECURE_NO_WARNINGS
#define _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS
#define _ENABLE_EXTENDED_ALIGNED_STORAGE
#define STRING_IMPL(x) #x
#define STRING(x) STRING_IMPL(x)
// Boost
#define BOOST_CONFIG_SUPPRESS_OUTDATED_... |
paulograbin/AdventofCode | src/main/java/day3/firstHalf/Movements/MovementLeft.java | package day3.firstHalf.Movements;
import day3.firstHalf.Position;
/**
* Created by paulograbin on 28/04/16.
*/
public class MovementLeft implements Movement {
public Position move(Position p) {
return new Position(p.getX()-1, p.getY());
}
@Override
public boolean equals(Object obj) {
... |
ubidreams/wisdom | extensions/wisdom-monitor/src/main/java/org/wisdom/monitor/extensions/terminal/WisitSession.java | /*
* #%L
* Wisdom-Framework
* %%
* Copyright (C) 2013 - 2014 Wisdom Framework
* %%
* 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... |
talyaron/fullstack-int-aug20 | mongoose/01-basic/hillel/public/js.js | <gh_stars>1-10
innerhtmlarray()
const boxi = document.querySelector(".boxi")
setInterval(() => {
innerhtmlarray()
}, 100)
function mysubmit(event) {
event.preventDefault()
const name = event.target.children.name.value
const Family = event.target.children.Family.value
const tel = eve... |
exosite/libcql | src/libcql/internal/cql_socket.cpp | <reponame>exosite/libcql
/*
Copyright (c) 2013 <NAME>
This file is part of libcql.
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 ... |
SuperV1234/vrm_core | include/vrm/core/config/detection/stdlib/impl/stdlib.inl | <reponame>SuperV1234/vrm_core
// Copyright (c) 2015-2020 <NAME>
// License: Academic Free License ("AFL") v. 3.0
// AFL License page: http://opensource.org/licenses/AFL-3.0
// http://vittorioromeo.info | <EMAIL>
#pragma once
#include <vrm/core/config/detection/stdlib/impl/stdlib.hpp>
#include <vrm/core/config/detecti... |
Sunrisepeak/AC-Online-Judge | PTA/PAT(Basic-level)/c++/B1012.cpp | <reponame>Sunrisepeak/AC-Online-Judge
#include <iostream>
using namespace std;
void print(int ans)
{
printf(ans ? "%d " : "N ", ans);
}
int main()
{
int A1{0}, A2{0}, A3{A1}, A4{0}, A5{0};
int x, A4_count{ 0 };
int single = -1;
cin >> x; //delete first number
bool isExsit = false;
while(cin >> x)
{
// cout << ... |
kagarner/AliRoot | HLT/TPCLib/tracking-standalone/cmodules/qmalloc.cpp | #include "qmalloc.h"
#include <stdio.h>
#include <string.h>
#ifdef _WIN32
#include <windows.h>
#include <winbase.h>
#else //_WIN32
#include <unistd.h>
#include <sys/mman.h>
#include <syscall.h>
#ifdef _NUMAIF_H
#include <numaif.h>
#endif
#ifndef MAP_HUGETLB
#define MAP_HUGETLB 0x40000 /* arch specific */
#endif
#ifn... |
linea-it/tno | frontend/src/services/api/SearchSsso.js | import axios from 'axios';
export const getSkybotLists = ({ page, pageSize, search, filters }) => {
const params = { page, pageSize, search };
filters.forEach((el) => {
params[el.property] = el.value;
});
return axios.get('/skybotoutput/', { params });
};
export const getSkybotRecord = ({ id }) => axios... |
rocketstation/skin | src/alias/box-must-break-words/index.test.js | <filename>src/alias/box-must-break-words/index.test.js
const v = require('./index.js')
test('boxMustBreakWords', () => {
expect(v(true)).toEqual({ overflowWrap: 'break-word' })
expect(v(false)).toEqual({ overflowWrap: 'normal' })
})
|
heyingquan13/kafka | streams/src/main/java/org/apache/kafka/streams/kstream/internals/KTableProcessorSupplier.java | <reponame>heyingquan13/kafka
/*
* 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
... |
freight-trust/carbon | packages/icons/es/unknown/24.js | <gh_stars>0
/**
* Copyright IBM Corp. 2016, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
var _24 = {
"elem": "svg",
"attrs": {
"xmlns": "http://ww... |
darlyhellen/oto | DLClent_A/src/com/darly/im/ui/chatting/ChattingListAdapter.java | package com.darly.im.ui.chatting;
///*
// * Copyright (c) 2013 The CCP project authors. All Rights Reserved.
// *
// * Use of this source code is governed by a Beijing Speedtong Information Technology Co.,Ltd license
// * that can be found in the LICENSE file in the root of the web site.
// *
// * http://www.yunto... |
norikuro/vmcjp-slack-service | vmcjp/utils/slack_post.py | <reponame>norikuro/vmcjp-slack-service<gh_stars>0
import json
import urllib2
def post(url, data, bot_oauth_token=None):
headers = {
"Content-Type": "application/json"
}
if bot_oauth_token is not None:
headers.update(
{
"Authorization": "Bearer {}".format(
... |
macintoshhelper/explorer | src/components/Annotations/footer.js | import React, { Component } from 'react';
import Obstruction from 'obstruction';
import PropTypes from 'prop-types';
import document from 'global/document';
import { timeout } from 'thyming';
import { partial } from 'ap';
import raf from 'raf';
import qs from 'querystringify';
import { withStyles } from '@material-ui/c... |
stanleyyong/go | exp/crypto/derivation/doc.go | <reponame>stanleyyong/go
// Package derivation provides functions for ed25519 key derivation as described in:
// https://github.com/satoshilabs/slips/blob/master/slip-0010.md
package derivation
|
denis-trapeznikov/ledger | libs/settings/tests/unit/setting_collection_tests.cpp | <filename>libs/settings/tests/unit/setting_collection_tests.cpp<gh_stars>10-100
//------------------------------------------------------------------------------
//
// Copyright 2018-2020 Fetch.AI Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in c... |
entityc/ec-sb-tutorial-service | src/main/java/org/entityc/tutorial/dto/SessionDto.java | <filename>src/main/java/org/entityc/tutorial/dto/SessionDto.java<gh_stars>1-10
//
// This is the DTO class for entity:
//
// Entity
// Name: Session
// Description: Represents a session within a module. A session typically tries to
// teach a single concept.
//
// THIS FILE IS GENERATE... |
jhonatasrm/chromium-android | app/src/main/java/org/chromium/components/gcm_driver/GoogleCloudMessagingV2.java | <gh_stars>1-10
// 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.
package org.chromium.components.gcm_driver;
import android.app.PendingIntent;
import android.content.Intent;
import android.os.Bundle;
imp... |
robabram/raw-data-repository-v2 | rdr_server/tests/__init__.py | <reponame>robabram/raw-data-repository-v2
#
# This file is subject to the terms and conditions defined in the
# file 'LICENSE', which is part of this source code package.
#
from flask import Flask
from flask_restplus import Api, Resource
# import api namespaces
from rdr_server.api.hello_world import api as ns1
# If ... |
tpayne86/react-monorepo | packages/package-generator/src/templates/react/src/App/Layout/styles.js | import s from 'styled-components';
import { marginCenter } from '@healthifyme/styles/lib/box';
export const Content = s.div`
background: #fff;
padding: 24px;
min-height: 90vh;
max-width:80%;
${marginCenter};
`;
export const Logo = s.p`
height: 31px;
float: left;
font-size: 30px;
text-decoration: non... |
milador/jacdac | dist/c/winddirection.h | // Autogenerated C header file for Wind direction
#ifndef _JACDAC_SPEC_WIND_DIRECTION_H
#define _JACDAC_SPEC_WIND_DIRECTION_H 1
#define JD_SERVICE_CLASS_WIND_DIRECTION 0x186be92b
/**
* Read-only ° uint16_t. The direction of the wind.
*/
#define JD_WIND_DIRECTION_REG_WIND_DIRECTION JD_REG_READING
/**
* Read-only ... |
rju/peething | workbench/src/de/peerthing/workbench/resourcetreeview/ResourceViewPopupMenuListener.java | package de.peerthing.workbench.resourcetreeview;
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.List;
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IFile;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.IMenuListener;
import org.eclip... |
johanssl/EnfuserMIT | EnfuserMIT/src/main/java/org/fmi/aq/enfuser/ftools/FuserTools.java | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.fmi.aq.enfuser.ftools;
import org.fmi.aq.enfuser.datapack.main.Observation;
import org.fmi.aq.essentials.date.Dtime;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.... |
jovanbulck/SGX-Shield | llvm/tools/clang/test/CodeGen/fma4-builtins.c | // RUN: %clang_cc1 %s -triple=x86_64-apple-darwin -target-feature +fma4 -emit-llvm -o - -Wall -Werror | FileCheck %s
// Don't include mm_malloc.h, it's system specific.
#define __MM_MALLOC_H
#include <x86intrin.h>
__m128 test_mm_macc_ps(__m128 a, __m128 b, __m128 c) {
// CHECK-LABEL: test_mm_macc_ps
// CHECK: @l... |
lcrownover/bolt | spec/bolt/outputter/json_spec.rb | <reponame>lcrownover/bolt<gh_stars>0
# frozen_string_literal: true
require 'spec_helper'
require 'bolt/outputter'
require 'bolt/cli'
describe "Bolt::Outputter::JSON" do
let(:output) { StringIO.new }
let(:outputter) { Bolt::Outputter::JSON.new(false, false, false, false, output) }
let(:inventory) { Bolt::Invento... |
buzz66boy/NS-3_LXC | src/lib/yntdl/objects/include/link.h | #ifndef __LINK_H_INCLUDED__
#define __LINK_H_INCLUDED__
// forward declared dependencies
// include dependencies
#include <string>
#include <vector>
#include <memory>
#include "additionalTags.h"
#include "iface.h"
#include "nameable.h"
namespace yntdl {
// declarations
class Link : public IfaceAcceptor, public Na... |
enfoTek/tomato.linksys.e2000.nvram-mod | release/src/linux/linux/drivers/media/radio/radio-maxiradio.c | <filename>release/src/linux/linux/drivers/media/radio/radio-maxiradio.c
/*
* Guillemot Maxi Radio FM 2000 PCI radio card driver for Linux
* (C) 2001 <NAME> <<EMAIL>>
*
* Based in the radio Maestro PCI driver. Actually it uses the same chip
* for radio but different pci controller.
*
* I didn't have any specs I... |
soyemi/ProjRigel | Rigel/legacy/rggui/source/rg_gui_component.cpp | #include "rggui.h"
#include "rg_gui_component.h"
namespace rg {
void RgGUIMenuItemList::AddMenuItem(const RgGUIMenuItem & item)
{
subitems.push_back(item);
}
void RgGUIWindow::focused()
{
RgLogD() << "guiwin focused " << winid;
}
void RgGUIWindow::lost_focuse()
{
RgLogD() << "gui lost focuse" << wini... |
percevalm/aumyproject | Lib/site-packages/openpyxl/cell/__init__.py | <filename>Lib/site-packages/openpyxl/cell/__init__.py
from __future__ import absolute_import
# Copyright (c) 2010-2017 openpyxl
from .cell import Cell, WriteOnlyCell
from .read_only import ReadOnlyCell
|
cxd9257/yiman | app/src/main/java/com/demo/yiman/widget/RadarView.java | package com.demo.yiman.widget;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Path;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.View;
import com.demo.yim... |
GosthMan/AuShadha | src/AuShadha/visit/visit/models.py | ################################################################################
# Project : AuShadha
# Description : Models for AuShadha OPD Visits.
# Author : Dr. <NAME>
# Date : 17-09-2013
# LICENSE : GNU-GPL Version 3, Please see AuShadha/LICENSE.txt
#######################################... |
GlebBondarchuk/SED | sed/sed-web/src/test/java/com/bsu/sed/common/AbstractMockMvcIntegrationTest.java | package com.bsu.sed.common;
import com.bsu.sed.model.Role;
import org.junit.Before;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.mock.web.MockHttpSession;
import org.springframework.security.web.FilterChainProxy;
import org.springfra... |
yoheiueda/notary | tuf/tuf_test.go | package tuf
import (
"crypto/sha256"
"encoding/json"
"io/ioutil"
"os"
"path"
"path/filepath"
"testing"
"time"
"github.com/stretchr/testify/require"
"github.com/theupdateframework/notary/cryptoservice"
"github.com/theupdateframework/notary/passphrase"
"github.com/theupdateframework/notary/trustmanager"
"g... |
dslab-epfl/pix | dpdk-nfs/nf/nf_main.c | #ifdef KLEE_VERIFICATION
#include "lib/stubs/driver_stub.h"
#include "lib/stubs/hardware_stub.h"
#include "lib/stubs/time_stub_control.h"
#include <klee/klee.h>
#endif
#include <inttypes.h>
#include <stdio.h>
#include <assert.h>
//#define REPLAY
// TX configuration default values
#define IXGBE_DEFAULT_TX_FREE_THRESH ... |
Ayushk93/amplify_bootstrap | node_modules/@aws-sdk/client-personalize-events/dist/cjs/models/index.js | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const smithy_client_1 = require("@aws-sdk/smithy-client");
var Event;
(function (Event) {
function isa(o) {
return smithy_client_1.isa(o, "Event");
}
Event.isa = isa;
})(Event = exports.Event || (exports.Event = {}));
var P... |
MrsZ/licode-windows | ThirdParty/glib-2.28.8/glib/gvariant-core.c | <reponame>MrsZ/licode-windows
/*
* Copyright © 2007, 2008 <NAME>
* Copyright © 2010 Codethink Limited
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the Li... |
LegalizeAdulthood/cimple | src/brevity/ref/CIMXML.h | <filename>src/brevity/ref/CIMXML.h
/*
**==============================================================================
**
** Copyright (c) 2003, 2004, 2005, 2006, <NAME>, <NAME>
**
** Permission is hereby granted, free of charge, to any person obtaining a
** copy of this software and associated documentation files (the... |
01org/murphy | src/murphy-db/mdb/row.c | /*
* Copyright (c) 2012, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the fol... |
dyna-mis/Hilabeling | src/analysis/network/qgsvectorlayerdirector.h | <gh_stars>0
/***************************************************************************
qgsvectorlayerdirector.h
--------------------------------------
Date : 2010-10-20
Copyright : (C) 2010 by <NAME>
Email : YakushevS <at> list.ru
***********************************... |
DFE-Digital/fb-submitter | spec/support/authenticated_method.rb | RSpec.shared_examples 'an authenticated method' do |method, url, payload|
let(:basic_auth) {
password = ENV['<PASSWORD>']
raise unless password.present?
ActionController::HttpAuthentication::Basic.encode_credentials('', password)
}
let(:body) { response.body }
let(:parsed_body) {
JSON.parse(resp... |
smrz2001/go-ipld-prime | traversal/selector/matcher.go | package selector
import (
"fmt"
"io"
"github.com/ipld/go-ipld-prime/datamodel"
"github.com/ipld/go-ipld-prime/node/basicnode"
)
// Matcher marks a node to be included in the "result" set.
// (All nodes traversed by a selector are in the "covered" set (which is a.k.a.
// "the merkle proof"); the "result" set is a... |
karthik-git-user/SAP-Stage | core-customize/hybris/bin/modules/integration-apis/odata2services/src/de/hybris/platform/odata2services/odata/persistence/lookup/ItemLookupResult.java | <reponame>karthik-git-user/SAP-Stage<filename>core-customize/hybris/bin/modules/integration-apis/odata2services/src/de/hybris/platform/odata2services/odata/persistence/lookup/ItemLookupResult.java
/*
* [y] hybris Platform
*
* Copyright (c) 2018 SAP SE or an SAP affiliate company.
* All rights reserved.
*
* This s... |
scali/agrest | agrest-sencha/src/main/java/io/agrest/sencha/runtime/encoder/SenchaEncoderService.java | package io.agrest.sencha.runtime.encoder;
import io.agrest.encoder.PropertyMetadataEncoder;
import io.agrest.runtime.encoder.DataEncoderFactory;
import io.agrest.runtime.encoder.EncoderService;
import io.agrest.runtime.encoder.IEncodablePropertyFactory;
import io.agrest.runtime.encoder.IStringConverterFactory;
import ... |
lokiworks/codebase | backend/lab/leetcode/src/main/java/com/loki/lab/leetcode/Q8Solution.java | <reponame>lokiworks/codebase
package com.loki.lab.leetcode;
import java.util.HashMap;
import java.util.Map;
public class Q8Solution {
static class Automation{
public int sign = 1;
public long ans = 0;
private String state = "start";
private Map<String, String[]> table = n... |
neocodejack/burial-plots | burialplots/js/Cart/cart.js | $(document).ready(function () {
});
var addtocart= function (Id) {
var id = Id;
var geturl = $("#addtocart").val();
$.ajax({
url: geturl,
type: "Post",
data: { Id: id },
success:function(result)
{
if (result == "true") {
alert("Produc... |
0xd34d10cc/pong | utils/log.h | <filename>utils/log.h
#ifndef LOG_H
#define LOG_H
typedef enum {
LOG_LEVEL_DEBUG,
LOG_LEVEL_INFO,
LOG_LEVEL_WARNING,
LOG_LEVEL_ERROR,
LOG_LEVEL_FATAL
} LogLevel;
void game_log(LogLevel level, const char* file, int line, const char* format, ...);
#define LOG_INFO(...) game_log(LOG_LEVEL_INFO, __FILE__, __L... |
jr-ok/docstest | node_modules/rxjs/dist/esm5/internal/operators/takeUntil.js | import { operate } from '../util/lift';
import { OperatorSubscriber } from './OperatorSubscriber';
import { innerFrom } from '../observable/from';
import { noop } from '../util/noop';
export function takeUntil(notifier) {
return operate(function (source, subscriber) {
innerFrom(notifier).subscribe(new Opera... |
continuum/neography | spec/unit/rest/node_relationships_spec.rb | <reponame>continuum/neography<filename>spec/unit/rest/node_relationships_spec.rb<gh_stars>0
require 'spec_helper'
module Neography
class Rest
describe NodeRelationships do
let(:connection) { double(:configuration => "http://configuration") }
subject { NodeRelationships.new(connection) }
it "c... |
ledanck/fJinal | jpress-web/src/main/java/io/jpress/front/controller/IndexController.java | /**
* Copyright (c) 2015-2016, <NAME> 杨福海 (<EMAIL>).
*
* Licensed under the GNU Lesser General Public License (LGPL) ,Version 3.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.gnu.org/licenses/lgpl-3.0.txt
*
* U... |
waitingwx/locman_rails | db/migrate/20180125082400_remove_addressid_from_gradorder.rb | <gh_stars>0
class RemoveAddressidFromGradorder < ActiveRecord::Migration[5.1]
def change
remove_column :gradorders, :addressid, :integer
end
end
|
npocmaka/Windows-Server-2003 | inetsrv/query/cicat/pershash.hxx | //+---------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation, 1991 - 1998
//
// File: pershash.hxx
//
// Contents: Abstract class for persistent hash table
//
// History: 07-May-97 SitaramR Created from strings.hxx
//
//------... |
eugeneilyin/mdi-norm | es/OutlineSentimentVerySatisfied.js | import React from 'react';
import { Icon } from './Icon';
import { fz, yq } from './fragments';
export var OutlineSentimentVerySatisfied =
/*#__PURE__*/
function OutlineSentimentVerySatisfied(props) {
return React.createElement(Icon, props, React.createElement("path", {
d: "M11.99 2" + fz + "m1-10.06L14.06 11l1.0... |
samesense/mahdi_epi | src/scripts/limit_exac_genes.py | <reponame>samesense/mahdi_epi
import pandas, sys
dat_file, vcf_file, out_file = sys.argv[1:]
df_pre = pandas.read_excel(dat_file)
genes = set(df_pre['Gene Symbol'].values)
with open(vcf_file) as f, open(out_file, 'w') as fout:
for line in f:
if line[0] == '#':
print(line.strip(), file=fout)
... |
euleryang/mysql-server-mysql-323-31 | sql/frm_crypt.cc | /* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
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 License, or
(at your option) any later ve... |
andrewparrish/perigren_github_webhooks | lib/generators/perigren_github_webhooks/templates/perigren_github_webhooks.rb | PerigrenGithubWebhooks.setup do |config|
# https://docs.github.com/en/developers/webhooks-and-events/securing-your-webhooks
config.use_webhooks_secret_auth = true
overrides = "#{Rails.root}/app/overrides"
Rails.autoloaders.main.ignore(overrides)
Rails.application.config.to_prepare do
Dir.glob("#{overrides... |
Khasms/discord.js-codemod | src/v13.0.0/update-create-role.js | <gh_stars>1-10
const { parser } = require('../util');
module.exports = function transform(file, api, options) {
const j = api.jscodeshift;
const root = j(file.source);
const printOptions = options.printOptions;
return root
.find(j.CallExpression, {
callee: {
property: {
name: 'create',
},
},... |
dumitru-tap-at-endava/porta | lib/developer_portal/lib/liquid/drops/site.rb | module Liquid
module Drops
class Site < Drops::Base
allowed_name :site
drop_example "Using site drop in liquid.", %{
<div>Organization name {{ site.company_name }}</div>
<div>Domain (accessed through account) {{ site.account.domain }}</div>
<div>API (accessed through service)... |
FBL-Coder/ChuangKeYuan | src/com/yitong/ChuangKeYuan/utils/UpdateManager.java | <reponame>FBL-Coder/ChuangKeYuan
package com.yitong.ChuangKeYuan.utils;
import android.app.Activity;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.net.Uri;
import and... |
ibabkov/let_it_code | problems/hash/design_hash_map_210/index.js | <reponame>ibabkov/let_it_code<gh_stars>0
/**
* @link https://leetcode.com/problems/design-hashmap/
* @description
* Your MyHashMap object will be instantiated and called as such:
* var obj = new MyHashMap()
* obj.put(key,value)
* var param_2 = obj.get(key)
* obj.remove(key)
*/
const MyHashMap = function(lengt... |
npirotte/catchapp | src/js/lib/AssetService.js | <reponame>npirotte/catchapp
var Storate = require('../lib/localStorage');
const {serverUrl} = require('../config');
var url = serverUrl + 'assets/upload',
trustHosts = true,
upOptions = {
headers: {
//Authorization : 'Bearer ' + $localStorage.token
}
};
export default function(fileURL, cb)
{
console.log(f... |
cbmono/hapijs-MVC-seed-es6 | src/routes/base.routes.spec.js | import { BaseRoutes } from './base.routes';
//
// Tests
//
describe('Routes: Base', () => {
let routes;
let ExtendedRoutes;
const endpoint = 'my-endpoint';
const controller = new class MockedController {
/* eslint-disable */
index() {}
view() {}
create() {}
update() {}
remove() {}
/... |
ShantamShorewala/aizynthfinder | tests/data/post_processing_test.py | def post_processing(finder):
return {"quantity": 5, "another_quantity": 10}
|
scleradb/sclera | modules/core/src/main/scala/dbms/rdbms/driver/SqlTableResult.scala | <reponame>scleradb/sclera
/**
* Sclera - Core
* Copyright 2012 - 2020 Sclera, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Un... |
ghalimi/stdlib | lib/node_modules/@stdlib/bench/harness/test/fixtures/process.js | /**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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 a... |
ayroti-18/Competitive-Programming | array/Nagendra/Cyclically rotate an array by one.py | <filename>array/Nagendra/Cyclically rotate an array by one.py
#link https://practice.geeksforgeeks.org/problems/cyclically-rotate-an-array-by-one/0#
#code
for _ in range(int(input())):
n = int(input())
arr = list(map(int, input().split()))
b = arr.pop()
if n > 1:
print(b, *arr)
else:
... |
dfki-asr/morphablegraphs | morphablegraphs/construction/preprocessing/__init__.py | LEN_ROOT = 3
LEN_QUATERNION = 4
LEN_EULER = 3
from .bitvector import gen_foot_contact_annotation
from .semantic_annotation import gen_walk_annotation, gen_synthetic_semantic_annotation_pick_and_place, \
gen_synthetic_semantic_annotation_for_screw, \
gen_... |
raaahuuulll/chess-concepts | board/tactics/__init__.py | from enum import IntEnum
from typing import Dict, Callable
import chess
from .discovered_attack import is_discovered_attack_see as is_discovered_attack
from .fork import is_fork_see as is_fork
from .pin import is_pin_see as is_pin
from .sacrifice import is_sacrifice_see as is_sacrifice
from .skewer import is_skewer_s... |
seakers/ExtUtils | dakota-6.3.0.Windows.x86/include/SOGA.hpp | /*
================================================================================
PROJECT:
<NAME> Genetic Algorithms (JEGA)
CONTENTS:
Definition of class SOGA.
NOTES:
See notes under section "Class Definition" of this file.
PROGRAMMERS:
<NAME> (<EMAIL>) (JE)
... |
Toumani/web-coding-challenge-msa | src/main/java/org/shopzz/shopzzapp/util/ListRequest.java | <filename>src/main/java/org/shopzz/shopzzapp/util/ListRequest.java
package org.shopzz.shopzzapp.util;
import java.io.Serializable;
/**
* A request that need the location of the user to be correctly performed
*/
public class ListRequest extends Request implements Serializable {
private Location location;
pu... |
AlSpinks/deephaven-core | DB/src/test/java/io/deephaven/db/v2/utils/IndexTest.java | <filename>DB/src/test/java/io/deephaven/db/v2/utils/IndexTest.java
package io.deephaven.db.v2.utils;
import org.junit.Test;
import static org.junit.Assert.*;
public class IndexTest {
private static class FakeIterator implements Index.Iterator {
long curr = 10;
@Override
public void close... |
EugeValeiras/template-ui | gulp/gulp.config.js | import { argv } from 'yargs';
function getEnv(log){
if(argv.dev){
return 'development';
} else if(argv.prod){
return 'production';
} else {
if(log){ console.log('No environment selected => Default: development') }
return 'development';
}
}
function getEnvironmentKeys(dev, prod) {
var env ... |
mihaibuzgau/facter | lib/src/facts/posix/external_resolvers_factory.cc | #include <leatherman/locale/locale.hpp>
#include <facter/facts/external_resolvers_factory.hpp>
using namespace std;
namespace facter { namespace facts {
shared_ptr<external::resolver> external_resolvers_factory::get_resolver(const string& path) {
auto resolver = get_common_resolver(path);
if (resolver)... |
DogFc/sharding-jdbc | sharding-jdbc-core/src/main/java/com/dangdang/ddframe/rdb/sharding/rewrite/SQLBuilder.java | <reponame>DogFc/sharding-jdbc
/*
* Copyright 1999-2015 dangdang.com.
* <p>
* 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
*
* Unles... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.