repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
lerages/anarchy-source | src/main/java/org/rs2server/rs2/action/impl/HarvestingAction.java | package org.rs2server.rs2.action.impl;
import org.rs2server.rs2.action.Action;
import org.rs2server.rs2.model.Animation;
import org.rs2server.rs2.model.GameObject;
import org.rs2server.rs2.model.Item;
import org.rs2server.rs2.model.Mob;
import org.rs2server.rs2.model.World;
import org.rs2server.rs2.net.ActionSender.Di... |
zincware/ZnTrack | tests/unit_tests/utlis/test_helpers.py | <reponame>zincware/ZnTrack
import pytest
from zntrack import Node
from zntrack.utils import helpers
class MyNode(Node):
def run(self):
pass
@pytest.mark.parametrize(
("node", "true_val"),
[
(MyNode(), True),
(MyNode, True),
([MyNode, MyNode], True),
([MyNode(), M... |
alekseiliachko/memium_react | src/pages/404.js | import React from "react";
import { makeStyles } from "@material-ui/core/styles";
import { Typography } from "@material-ui/core";
import { useHistory } from "react-router-dom";
const useStyles = makeStyles(() => ({
circleWrap: {
width: "100%",
height: "100%",
display: "flex",
alignItems: "center",
... |
qsw1214/spring-notes | spring-ioc/src/main/java/org/zp/notes/spring/ioc/annotation/life/Auditorium.java | <reponame>qsw1214/spring-notes<filename>spring-ioc/src/main/java/org/zp/notes/spring/ioc/annotation/life/Auditorium.java
package org.zp.notes.spring.ioc.annotation.life;
public class Auditorium {
public void work() {
System.out.println("工作");
}
public void turnOnLight() {
System.out.printl... |
ckamtsikis/cmssw | L1Trigger/TrackFindingTracklet/interface/Sector.h | <reponame>ckamtsikis/cmssw
//This class holds functional blocks of a sector
#ifndef L1Trigger_TrackFindingTracklet_interface_Sector_h
#define L1Trigger_TrackFindingTracklet_interface_Sector_h
#include "L1Trigger/TrackFindingTracklet/interface/L1TStub.h"
#include "L1Trigger/TrackFindingTracklet/interface/SLHCEvent.h"
... |
Jeonghum/hfdpcpp11 | factory/simple_factory/lib/cheese_pizza.cpp | <gh_stars>1-10
//===--- cheese_pizza.cpp - -------------------------------------*- C++ -*-===//
//
// Head First Design Patterns
//
//
//===----------------------------------------------------------------------===//
///
/// \file
/// \brief
///
//===--------------------------------------------------... |
kvadro1/filedossier | filedossier-document-validation/src/main/java/ru/ilb/filedossier/filedossier/document/validation/SignatureDetector.java | /*
* Copyright 2019 kuznetsov_me.
*
* 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 ... |
tschuls/ETH-SegReg-DLL | source/SimultaneousRegistrationSegmentation/Legacy/SRS3D-Bone.cxx | <reponame>tschuls/ETH-SegReg-DLL
#include <stdio.h>
#include <iostream>
#include "ArgumentParser.h"
#include "SRSConfig.h"
#include "HierarchicalSRSImageToImageFilter.h"
#include "Graph.h"
#include "SubsamplingGraph.h"
#include "FastRegistrationGraph.h"
#include "BaseLabel.h"
#include "Potential-Registration-Unary.h"... |
githubwua/cdap | cdap-ui/app/cdap/components/Cloud/Profiles/DetailView/Content/index.js | /*
* Copyright © 2018 <NAME>, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... |
mohammedsuhail85/CSSE-Group19-SprigAPI | SpringBackendAPI/src/main/java/lk/sliit/csse/group19/springApi/SpringBackendAPI/Model/Invoice.java | /**
* Invoice Table Model
*/
package lk.sliit.csse.group19.springApi.SpringBackendAPI.Model;
import java.sql.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
/**
* @author Dev
*
*/
@Entity
publi... |
gitofolio/gitofolio | gitofolio-api-server/src/main/java/com/gitofolio/api/service/factory/mapper/PortfolioCardMapper.java | package com.gitofolio.api.service.factory.mapper;
import com.gitofolio.api.domain.user.UserInfo;
import com.gitofolio.api.service.user.dtos.UserDTO;
import com.gitofolio.api.service.user.dtos.PortfolioCardDTO;
import com.gitofolio.api.domain.user.PortfolioCard;
import com.gitofolio.api.service.common.secure.XssProtect... |
brian-kelley/seacas | packages/seacas/libraries/exodus/src/ex_put_reduction_variable_param.c | <reponame>brian-kelley/seacas
/*
* Copyright (c) 2019 National Technology & Engineering Solutions
* of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
* NTESS, the U.S. Government retains certain rights in this software.
*
* Redistribution and use in source and binary forms, with or without
* ... |
Lutefisk3D/lutefisk3d | Source/ThirdParty/Box2D/Collision/Shapes/b2CircleShape.h | /*
* Copyright (c) 2006-2009 <NAME> http://www.box2d.org
*
* 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 any purpose,
* inclu... |
scMarkus/zeppelin | rlang/src/main/java/org/apache/zeppelin/r/SparkRUtils.java | <reponame>scMarkus/zeppelin
/*
* 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
... |
zhang-ray/audio-processing-module | independent_ns/src/complex_bit_reverse.cpp | /*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... |
ItsYoungDaddy/Templar-Cosmetics-Beta | src/main/java/tae/cosmetics/gui/util/packet/client/CPacketConfirmTransactionModule.java | <gh_stars>10-100
package tae.cosmetics.gui.util.packet.client;
import java.awt.Color;
import net.minecraft.network.play.client.CPacketConfirmTransaction;
import tae.cosmetics.gui.util.packet.AbstractPacketModule;
public class CPacketConfirmTransactionModule extends AbstractPacketModule {
private CPacketConfirmTran... |
majacQ/keywhiz | server/src/test/java/keywhiz/commands/DropDeletedSecretsCommandTest.java | package keywhiz.commands;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.util.List;
import javax.inject.Inject;
import keywhiz.KeywhizTestRunn... |
MarkShawn2020/MachineLarning-Numpy-CodeCraft2020 | core/models.py | # -*- coding: utf-8 -*-
# -----------------------------------
# @CreateTime : 2020/3/19 23:54
# @Author : <NAME>
# @Email : <EMAIL>
# ------------------------------------
import os
import logging
import pickle
import numpy as np
from .functions import sigmoid, cross_entropy, mse
class Model:
def __in... |
cody110/flyertea | flyerteaCafes/src/main/java/com/ideal/flyerteacafes/adapters/HotelReservationAdapter.java | package com.ideal.flyerteacafes.adapters;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.ideal.flyerteacafes.R;
import com.ideal.... |
dachr8/Exercise | BUPT/Operating-System/Assignment 3/problem3.20/pid_manager.h | #define MIN_PID 300
#define MAX_PID 5000
#define PID_LEN MAX_PID - MIN_PID + 1
int PID[MAX_PID-MIN_PID];
/*
Creates and initializes a data structure for representing pids;
returns 0 if unsuccessful, 1 if successful
*/
int allocate_map(void);
/*
Allocates and returns a pid;
returns 1 if unable to allocate a pid (al... |
Lezappen/Laravel4.2CRUD | public/bower_components/ckeditor/plugins/selectall/lang/cs.js | <filename>public/bower_components/ckeditor/plugins/selectall/lang/cs.js
CKEDITOR.plugins.setLang("selectall","cs",{toolbar:"Vybrat vše"}); |
psbarrales/unleash | test/e2e/api/client/metrics.e2e.test.js | <filename>test/e2e/api/client/metrics.e2e.test.js
'use strict';
const { test } = require('ava');
const { setupApp } = require('./../../helpers/test-helper');
const metricsExample = require('../../../examples/client-metrics.json');
test.serial('should be possble to send metrics', async t => {
t.plan(0);
const... |
JingQianCloud/ambry | ambry-router/src/test/java/com/github/ambry/router/QuotaAwareOperationControllerTest.java | <reponame>JingQianCloud/ambry
/**
* Copyright 2021 LinkedIn Corp. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*... |
Arusekk/snakeoil | src/snakeoil/compression/_util.py | <filename>src/snakeoil/compression/_util.py
__all__ = ("compress_data", "decompress_data")
import errno
import os
import subprocess
def _drive_process(args, mode, data):
p = subprocess.Popen(args,
stdin=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.P... |
Fun2LearnCode/Java | custom-projects/shabingasplayground/src/shabingasplayground/world/block/BlockLayerChunkThread.java | <gh_stars>0
package shabingasplayground.world.block;
public class BlockLayerChunkThread {
}
|
CodingAir/CodingAPI | src/main/java/de/codingair/codingapi/tools/Call.java | <filename>src/main/java/de/codingair/codingapi/tools/Call.java
package de.codingair.codingapi.tools;
public interface Call {
void proceed();
}
|
yunger7/laboratory | Projects/React/react-todo-app/src/App.js | <gh_stars>1-10
import { BrowserRouter as Router, Switch, Route } from 'react-router-dom';
import { Firestore } from './firebase/config';
import { useCollection } from 'react-firebase-hooks/firestore'
import AddTask from './components/AddTask';
import Footer from './components/Footer';
import Header from './components/H... |
digitalbuddha/androidx | core/core/src/androidTest/java/androidx/core/app/NotificationChannelCompatTest.java | /*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
xzrunner/raytracing | include/raytracing/texture/RectangleChecker.h | <filename>include/raytracing/texture/RectangleChecker.h
#pragma once
#include "raytracing/texture/Texture.h"
#include "raytracing/maths/Point3D.h"
#include "raytracing/maths/Vector3D.h"
namespace rt
{
class RectangleChecker : public Texture
{
public:
RectangleChecker() {}
virtual RGBColor GetColor(const Sha... |
josephevans/WeVoteServer | polling_location/serializers.py | # polling_location/serializers.py
# Brought to you by We Vote. Be good.
# -*- coding: UTF-8 -*-
from .models import PollingLocation
from rest_framework import serializers
class PollingLocationSerializer(serializers.ModelSerializer):
class Meta:
model = PollingLocation
fields = ('we_vote_id',
... |
Kunkkaa/proxibanquev3 | src/main/java/fr/formation/proxi/metier/entity/BankCard.java | package fr.formation.proxi.metier.entity;
import java.time.LocalDate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="bankcard")
public... |
carbonscott/pyrotein | examples/plot_fwk.u.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import numpy as np
import pyrotein as pr
import givens as gv
from display import plot_dmat, plot_singular, plot_left_singular, plot_coeff
import multiprocessing as mp
from loaddata import load_xlsx, label_TMs
import colorsimple as cs
def reverse_sign(u, vh, rank, index_... |
Shashi-rk/azure-sdk-for-java | sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/PipelineOptions.java | <filename>sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/models/PipelineOptions.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package... |
alexandersinkovic/motis | modules/paxmon/include/motis/paxmon/service_info.h | <filename>modules/paxmon/include/motis/paxmon/service_info.h
#pragma once
#include <cstdint>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
#include "cista/reflection/comparable.h"
#include "motis/core/schedule/schedule.h"
#include "motis/paxmon/compact_journey.h"
namespace motis::pa... |
cambw/mod-circulation | src/test/java/api/support/http/UserResource.java | package api.support.http;
public class UserResource extends IndividualResource {
public UserResource(IndividualResource resource) {
super(resource.getResponse());
}
public String getBarcode() {
return response.getJson().getString("barcode");
}
}
|
forkkit/webiny-js | packages/app-mailchimp/src/admin/components/MailchimpElement.js | <gh_stars>1-10
// @flow
import * as React from "react";
import { ElementRoot } from "@webiny/app-page-builder/render/components/ElementRoot";
import { Form } from "@webiny/form";
import { get } from "lodash";
import { getPlugins } from "@webiny/plugins";
const MailchimpElement = React.memo(({ element }: *) => {
le... |
icecrystal23/onebusaway-iphone | models/dao/OBAModelDAO.h | /**
* Copyright (C) 2009 bdferris <<EMAIL>>
*
* 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 l... |
euspectre/syzkaller-repros | linux/8b456d9f4b011cb98abfcc9264b55420ad6f9ab0.c | <filename>linux/8b456d9f4b011cb98abfcc9264b55420ad6f9ab0.c
// possible deadlock in generic_file_write_iter
// https://syzkaller.appspot.com/bug?id=8b456d9f4b011cb98abfcc9264b55420ad6f9ab0
// status:fixed
// autogenerated by syzkaller (http://github.com/google/syzkaller)
#ifndef __NR_memfd_create
#define __NR_memfd_cre... |
grapecity/codespark | common/models/user.js | <reponame>grapecity/codespark<gh_stars>0
let path = require('path'),
validator = require('validator'),
crypto = require('crypto'),
mongoose = require('../utils/mongoose'),
Schema = mongoose.Schema;
function validateLocalStrategyEmail(email) {
return ((this.provider !== 'local' && !this.updated) || ... |
xxxcrel/algorithms | java/src/algs4/fundamentals/Vector.java | <reponame>xxxcrel/algorithms<filename>java/src/algs4/fundamentals/Vector.java
/******************************************************************************
* Compilation: javac Vector.java
* Execution: java Vector
* Dependencies: StdOut.java
*
* Implementation of a vector of real numbers.
*
* This cla... |
mrslezak/Engine | OREData/test/ored_commodityforward.cpp | <reponame>mrslezak/Engine
/*
Copyright (C) 2018 Quaternion Risk Management Ltd
All rights reserved.
This file is part of ORE, a free-software/open-source library
for transparent pricing and risk analysis - http://opensourcerisk.org
ORE is free software: you can redistribute it and/or modify it
under the terms o... |
andersdellien/pyelftools | test/test_compressed_support.py | #-------------------------------------------------------------------------------
# Test handling for compressed debug sections
#
# <NAME> (<EMAIL>)
# This code is in the public domain
#-------------------------------------------------------------------------------
from contextlib import contextmanager
import os
import... |
joschout/Multi-Directional-Rule-Set-Learning | mdrsl/rule_models/mids/model_fitting/mids_with_value_reuse.py | from typing import Optional, Dict, Type, Set
from mdrsl.rule_models.mids.model_fitting.mids_abstract_base import MIDSAbstractBase
from mdrsl.rule_models.mids.objective_function.mids_objective_function_parameters import ObjectiveFunctionParameters
from mdrsl.rule_models.mids.objective_function.mids_objective_function_v... |
Charged/CCChargedMinersLauncher | CCChargedMinersLauncher/src/com/chargedminers/launcher/gui/PromptScreen.java | package com.chargedminers.launcher.gui;
import java.awt.Dimension;
import java.awt.Frame;
import javax.swing.border.EmptyBorder;
import javax.swing.event.DocumentEvent;
import javax.swing.event.DocumentListener;
public class PromptScreen extends javax.swing.JDialog {
public static String show(final String title,... |
yonfong/OSChina | OSChina/OSCEventPersonInfo.h | //
// OSCEventPersonInfo.h
// OSChina
//
// Created by sky on 15/7/15.
// Copyright (c) 2015年 bluesky. All rights reserved.
//
#import "OSCBaseObject.h"
@interface OSCEventPersonInfo : OSCBaseObject
@property (nonatomic, readonly, copy ) NSString *userName;
@property (nonatomic, readonly, assign) int64_t userI... |
Mpetrel/graduate | app/account/service/cmd/server/wire_gen.go | // Code generated by Wire. DO NOT EDIT.
//go:generate go run github.com/google/wire/cmd/wire
//+build !wireinject
package main
import (
"base-service/app/account/service/internal/biz"
"base-service/app/account/service/internal/conf"
"base-service/app/account/service/internal/data"
"base-service/app/account/servi... |
cristim/aws-cdk-go | awscdk/awskinesis/awskinesis.init.go | package awskinesis
import (
"reflect"
_jsii_ "github.com/aws/jsii-runtime-go"
)
func init() {
_jsii_.RegisterClass(
"monocdk.aws_kinesis.CfnStream",
reflect.TypeOf((*CfnStream)(nil)).Elem(),
[]_jsii_.Member{
_jsii_.MemberMethod{JsiiMethod: "addDeletionOverride", GoMethod: "AddDeletionOverride"},
_jsii... |
bogdansava/egeria-test | open-metadata-implementation/access-services/glossary-view/glossary-view-server/src/main/java/org/odpi/openmetadata/accessservices/glossaryview/server/service/GlossaryViewOMAS.java | /* SPDX-License-Identifier: Apache-2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.accessservices.glossaryview.server.service;
import org.odpi.openmetadata.accessservices.glossaryview.exception.OMRSExceptionWrapper;
import org.odpi.openmetadata.accessservices.glossaryview... |
hrakaroo/soda-water-ray-tracer | basics/point.cpp | #include <SW/point.h>
#include <math.h>
SWpoint::SWpoint()
{
_x = _y = _z = 0.0f;
}
SWpoint::SWpoint(float x, float y, float z)
{
_x = x;
_y = y;
_z = z;
}
ostream & operator<<(ostream & os, const SWpoint & point)
{
return os << "SWpoint: ("
<< point._x << ", "
<< point._y << ", "
<< poi... |
07jeancms/HelloWorld | node_modules/jovo-core/dist/src/plugins/BaseCmsPlugin.js | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Extensible_1 = require("../core/Extensible");
class BaseCmsPlugin extends Extensible_1.Extensible {
/**
* Implemented install method
* @param {BaseApp} app
*/
install(app) {
app.middleware('after.p... |
UbuntuEvangelist/OG-Platform | projects/OG-Engine/src/main/java/com/opengamma/engine/marketdata/live/LiveDataFactory.java | /**
* Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.engine.marketdata.live;
import java.lang.ref.WeakReference;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import org.slf4j.Logger;
i... |
YuriyLisovskiy/xalwart | src/controllers/static.h | /**
* controllers/static.h
*
* Copyright (c) 2019-2021 <NAME>
*
* Controller for serving static files. These are only to be used
* during development, and SHOULD NOT be used in a production setting.
*/
#pragma once
// Module definitions.
#include "./_def_.h"
// Framework libraries.
#include "./controller.h"
... |
mchristofersen/effective-octo-happiness | diagram-js/test/spec/i18n/I18NSpec.js | 'use strict';
require('../../TestHelper');
/* global bootstrapDiagram, inject */
var paletteModule = require('../../../lib/features/palette'),
i18nModule = require('../../../lib/i18n');
var spy = sinon.spy;
describe('i18n', function() {
describe('events', function() {
beforeEach(boot... |
ivanvotti/svg-jar-demo | app/asset-selector/service.js | import Service from '@ember/service';
import { set } from '@ember/object';
export default Service.extend({
currentAsset: null,
setCurrentAsset(asset) {
set(this, 'currentAsset', asset);
},
isCurrent(asset) {
return asset === this.currentAsset;
}
});
|
elvinvalentino/yoapp | client/src/redux/reducers/chatReducer.js | import { SET_CHAT_ROOM, SET_SELECTED_USER, SET_MESSAGES, SET_NEW_MESSAGE, USER_LOGOUT } from '../constants';
const initialState = {
chatRooms: [],
selectedUser: null
}
const chatReducer = (state = initialState, action) => {
const chatRooms = [...state.chatRooms];
let index;
switch (action.type) {
... |
0x0015/CP2DG | Util/OneHeader/main.cpp | #include <iostream>
#include <vector>
#include <memory>
#include <algorithm>
#include <filesystem>
#include "ArguementHandler/ArgHandle.hpp"
#include "SimpleCppTextFileHandler/file.hpp"
#include "main.hpp"
//https://thispointer.com/find-all-occurrences-of-a-sub-string-in-a-string-c-both-case-sensitive-insensitive/
voi... |
ThatCmd/Utils | src/ttt/utils/xml/document/XMLElement.java | <reponame>ThatCmd/Utils
/*
* Copyright 2021 TTT.
*
* 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... |
bubble501/gcplot | com.gcplot.api/src/main/java/com/gcplot/model/stats/GenerationStats.java | package com.gcplot.model.stats;
/**
* @author <a href="mailto:<EMAIL>"><NAME></a>
* 2/24/17
*/
public interface GenerationStats {
long totalPauseTimeMu();
long totalPauseCount();
long eventsCount();
long reclaimedBytes();
MinMaxAvg pauses();
DMinMaxAvg intervalBetweenEvents();
... |
jpluscplusm/paas-cf | platform-tests/src/platform/vendor/github.com/vito/go-sse/sse/event_test.go | <reponame>jpluscplusm/paas-cf
package sse_test
import (
"time"
. "github.com/vito/go-sse/sse"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gbytes"
)
var _ = Describe("Event", func() {
Describe("Encode", func() {
It("encodes to a dispatchable event", func() {
Ω(Event{
... |
iris-dni/iris-backend | src/iris/service/content/file/__init__.py | <reponame>iris-dni/iris-backend
from .document import File # noqa
def includeme(config):
from iris.service.rest import auth
config.add_route('file_public_api',
'files',
static=True)
config.add_route('file_admin_api',
'admin/files',
... |
BuildforceDigital/olingo-odata4 | lib/commons-core/src/main/java/org/apache/olingo/commons/core/edm/primitivetype/EdmString.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 ma... |
jiangminggithub/Android-NewsApp | app/src/main/java/com/jm/news/util/CommonUtils.java | package com.jm.news.util;
import android.Manifest;
import android.app.Activity;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.... |
PDCbc/health-data-standards | test/unit/util/vs_api_test.rb | require 'test_helper'
require 'webmock'
class EntryTest < MiniTest::Unit::TestCase
include WebMock::API
def test_api
stub_request(:post,'https://localhost/token').with(:body =>{"password"=>"<PASSWORD>", "username"=>"myusername"}).to_return( :body=>"proxy_ticket")
stub_request(:get,'https://localhost/vsservic... |
kilroyrlc/kaflib | src/kaflib/applications/mtg/CardUtils.java | <filename>src/kaflib/applications/mtg/CardUtils.java
package kaflib.applications.mtg;
import java.io.File;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.regex.Matcher;
imp... |
ali-haider-qbatch/qbatch | src/pages/work/bwd.js | import React from "react"
import SEO from "../../components/seo"
import Layout from "../../components/layout"
import WorkDetail from "../../components/workDetail"
import { Container } from "react-bootstrap"
import BwdImg from "../../images/work/bwd.png"
import WorkSlider from "../../components/workSlider"
import BWDWeb... |
benderjs/benderjs | lib/pagebuilders/manual.js | /**
* Copyright (c) 2014-2015, CKSource - <NAME>. All rights reserved.
* Licensed under the terms of the MIT License (see LICENSE.md).
*
* @file Page builder responsible for manual tests
*/
'use strict';
var marked = require( 'marked' ),
path = require( 'path' );
/**
* @module pagebuilders/manual
*/
module.e... |
serval-uni-lu/IBIR | src/main/java/edu/lu/uni/serval/ibir/output/ProgressPrinter.java | <reponame>serval-uni-lu/IBIR
package edu.lu.uni.serval.ibir.output;
import com.opencsv.CSVReaderHeaderAware;
import com.opencsv.exceptions.CsvValidationException;
import edu.lu.uni.serval.ibir.utils.FileUtils;
import edu.lu.uni.serval.tbar.info.Patch;
import java.io.File;
import java.io.FileReader;
import java.io.IOE... |
awltux/scm-manager | scm-webapp/src/test/java/sonia/scm/api/v2/resources/RepositoryRootResourceTest.java | package sonia.scm.api.v2.resources;
import com.github.sdorra.shiro.ShiroRule;
import com.github.sdorra.shiro.SubjectAware;
import com.google.common.io.Resources;
import com.google.inject.util.Providers;
import org.apache.shiro.subject.SimplePrincipalCollection;
import org.apache.shiro.subject.Subject;
import org.jboss... |
whodunnit/andlytics | src/com/github/andlyticsproject/LoginActivity.java | package com.github.andlyticsproject;
import android.accounts.Account;
import android.accounts.AccountManager;
import android.accounts.AccountManagerCallback;
import android.accounts.AccountManagerFuture;
import android.accounts.AuthenticatorException;
import android.accounts.OperationCanceledException;
import android.... |
android-nostalgic/platform_dalvik | libcore/x-net/src/test/java/tests/api/javax/net/ServerSocketFactoryTest.java | <filename>libcore/x-net/src/test/java/tests/api/javax/net/ServerSocketFactoryTest.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 l... |
sp3cialk/MU-S8EP2-Repack | GameServer/Source/ChaosMachineManager.cpp | #include "stdafx.h"
#include "ChaosMachineManager.h"
#include "..\pugixml\pugixml.hpp"
#include "GameMain.h"
#include "DSProtocol.h"
#include "..\common\winutil.h"
#include "ChaosBox.h"
// -------------------------------------------------------------------------------
using namespace pugi;
ChaosMachineManager g_ChaosM... |
dwp/ClaimCapture | c3/app/models/yesNo/YesNoWithAddressAnd2TextOrTextWithYesNoAndText.scala | package models.yesNo
import models.MultiLineAddress
case class YesNoWithAddressAnd2TextOrTextWithYesNoAndText(answer: String = "", employerName:Option[String] = None, address: Option[MultiLineAddress] = None, postCode: Option[String] = None, text1a: Option[String] = None, text2a: Option[String] = None, answer2: Optio... |
EPiCS/soundgates | software/editor/Soundgates.diagram/src/soundgates/diagram/soundcomponents/CompositeSoundComponentLibrary.java | <gh_stars>0
package soundgates.diagram.soundcomponents;
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.TreeMap;
import org.eclipse.core.resources.IFolder;
import org.eclipse.emf.ecore.util.EcoreUtil;
import soundgates.AtomicSoundComponent;
import so... |
Shashi-rk/azure-sdk-for-java | sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SapCloudForCustomerLinkedService.java | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.analytics.synapse.artifacts.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.fasterxml.... |
twtrubiks/leetcode-python | test_Rotate_Array_189.py | import unittest
from Rotate_Array_189 import *
'''
Given an array, rotate the array
to the right by k steps, where k is non-negative.
Follow up:
Try to come up as many solutions as you can,
there are at least 3 different ways to solve this problem.
Could you do it in-place with O(1) extra space?
Input... |
NaokiTakahashi12/mpc_ros | mpc_ros/src/MPC_Node.cpp | <reponame>NaokiTakahashi12/mpc_ros
/*
# Copyright 2018 HyphaROS Workshop.
# Developer: HaoChih, LIN (<EMAIL>)
#
# 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/lic... |
mdavic0/algo3tp2 | src/main/java/edu/fiuba/algo3/modelo/policia/rangos/Sargento.java | <reponame>mdavic0/algo3tp2
package edu.fiuba.algo3.modelo.policia.rangos;
import java.util.SplittableRandom;
import edu.fiuba.algo3.modelo.dificultad.Dificil;
import edu.fiuba.algo3.modelo.robo.artefacto.valor.MuyValioso;
import edu.fiuba.algo3.modelo.robo.artefacto.valor.Valioso;
import edu.fiuba.algo3.modelo.robo.ar... |
pierre42100/ComunicAndroid | app/src/main/java/org/communiquons/android/comunic/client/ui/listeners/OnOpenPageListener.java | package org.communiquons.android.comunic.client.ui.listeners;
/**
* Implement this interface on activities that can open group and user pages
*
* @author <NAME>
*/
public interface OnOpenPageListener extends OnOpenGroupListener, onOpenUsersPageListener {
}
|
bidhata/EquationGroupLeaks | Leak #5 - Lost In Translation/windows/Resources/Python/Core/Lib/unittest/__main__.py | <reponame>bidhata/EquationGroupLeaks<filename>Leak #5 - Lost In Translation/windows/Resources/Python/Core/Lib/unittest/__main__.py
# uncompyle6 version 2.9.10
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10)
# [GCC 6.2.0 20161005]
# Embedded file name: __main__.py
"""Mai... |
zhuxiaod/ZZT | ZiZaiTianProject/ZiZaiTianProject/classes/Other/Tools/NetWorkManager.h | <reponame>zhuxiaod/ZZT
//
// NetWorkTool.h
// kuaikanCartoon
//
// Created by dengchen on 16/5/2.
// Copyright © 2016年 name. All rights reserved.
//
#import <AFNetworking.h>
/*网络相关
{result:ok, data:data}
{result:error,message:""}
{result:invalidatetoken, message:"token失效"}
*/
static NSString * const NetCode... |
Gavinzx/edu | roncoo-education-system/roncoo-education-system-service/src/main/java/com/roncoo/education/system/feign/biz/FeignMsgTemplateBiz.java | package com.roncoo.education.system.feign.biz;
import com.roncoo.education.common.core.base.Page;
import com.roncoo.education.common.core.base.PageUtil;
import com.roncoo.education.common.core.tools.BeanUtil;
import com.roncoo.education.system.dao.MsgTemplateDao;
import com.roncoo.education.system.dao.impl.mapper.enti... |
Doom306/plenary-bot | Pro/ProData.java | <reponame>Doom306/plenary-bot<filename>Pro/ProData.java
package com.general_hello.commands.commands.Pro;
import net.dv8tion.jda.api.entities.User;
import java.util.HashMap;
public class ProData {
public static HashMap<User, Boolean> isPro = new HashMap<>();
}
|
leonardoraele/pgm-editor | PGMEditor/src/aac/gui/AlgorithmSelector.java | <filename>PGMEditor/src/aac/gui/AlgorithmSelector.java
package aac.gui;
import javax.swing.JComponent;
import aac.PGM;
public interface AlgorithmSelector<T> {
public default void initialize(PGM image) {};
public JComponent getComponent();
public T getAlgorithm();
public String getName();
}
|
bjadamson/BoomHS | include/boomhs/camera.hpp | <reponame>bjadamson/BoomHS<gh_stars>1-10
#pragma once
#include <boomhs/frame.hpp>
#include <boomhs/mouse.hpp>
#include <boomhs/spherical.hpp>
#include <boomhs/world_object.hpp>
#include <boomhs/math.hpp>
#include <common/log.hpp>
#include <common/type_macros.hpp>
// TODO
#include <iostream>
namespace gl_sdl
{
class ... |
kostergroup/Excimontec | docs/search/classes_3.js | <gh_stars>10-100
var searchData=
[
['hop',['Hop',['../class_excimontec_1_1_exciton_1_1_hop.html',1,'Excimontec::Exciton::Hop'],['../class_excimontec_1_1_polaron_1_1_hop.html',1,'Excimontec::Polaron::Hop']]]
];
|
haroldl/rest.li | r2-core/src/main/java/com/linkedin/r2/util/ServerRetryTracker.java | /*
Copyright (c) 2020 LinkedIn Corp.
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... |
unimauro/eden | languages/en-gb.py | # coding: utf8
{
' Assessment Series Details': ' Assessment Series Details',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN',
'# of Inter... |
michaelcw02/PrograIV | I/Ejercicio 10 Practica Examen/PracticaExamen/js/estudiante.js | function Estudiante (carnet, apellidos, nombre, examenes) {
this.Estudiante(carnet, apellidos, nombre, examenes);
}
Estudiante.prototype = {
Estudiante: function (carnet, apellidos, nombre, examenes) {
this.carnet = carnet;
this.apellidos = apellidos;
this.nombre = nombre;
this.... |
longluo/leetcode | Java/src/com/longluo/leetcode/array/Problem1588_sumOfAllOddLengthSubarrays.java | <reponame>longluo/leetcode
package com.longluo.leetcode.array;
/**
* 1588. 所有奇数长度子数组的和
* <p>
* 给你一个正整数数组 arr ,请你计算所有可能的奇数长度子数组的和。
* 子数组 定义为原数组中的一个连续子序列。
* 请你返回 arr 中 所有奇数长度子数组的和 。
* <p>
* 示例 1:
* 输入:arr = [1,4,2,5,3]
* 输出:58
* 解释:所有奇数长度子数组和它们的和为:
* [1] = 1
* [4] = 4
* [2] = 2
* [5] = 5
* [3] = 3
* [1,4... |
smortex/go-choria | client/choria_utilclient/doc.go | // generated code; DO NOT EDIT"
//
// Client for Choria RPC Agent 'choria_util' Version 0.22.0 generated using Choria version 0.22.0
// Package choria_utilclient is an API client to the Choria Choria_util agent Version 0.22.0.
//
// Actions:
// * Info - Choria related information from the running Daemon and Middlewa... |
billbrod/foveated-metamers | foveated_metamers/curve_fit.py | <reponame>billbrod/foveated-metamers<gh_stars>0
#!/usr/bin/env python3
"""Code to fit the psychophysical curve to data."""
import torch
# this is a wrapper and drop-in replacement for multiprocessing:
# https://pytorch.org/docs/stable/multiprocessing.html
import torch.multiprocessing as mp
import inspect
from collectio... |
kkroboth/Intentional-Concurrent-Programming | src/main/applications/forkjoin/OneTimeLatchKThreadsVariant.java | package applications.forkjoin;
import applications.forkjoin.shared.TextFile;
import icp.core.ICP;
import icp.core.Permissions;
import icp.core.Task;
import icp.lib.OneTimeLatchRegistration;
import icp.lib.SimpleReentrantLock;
import java.util.Arrays;
/**
* Same as OneTimeLatchKThreads except instead of using an
* ... |
TuLinhNGUYEN/chutney | server/src/test/java/com/chutneytesting/agent/infra/storage/AgentNetworkMapperJsonFileMapperTest.java | <filename>server/src/test/java/com/chutneytesting/agent/infra/storage/AgentNetworkMapperJsonFileMapperTest.java
package com.chutneytesting.agent.infra.storage;
import static java.util.Collections.emptyList;
import static java.util.Collections.singleton;
import static java.util.Collections.singletonList;
import static ... |
AdrianLozano96/Apuntes-Acceso_a_Datos | Apuntes XML/src/main/java/org/adrianl/jaxb/Anotaciones.java | <reponame>AdrianLozano96/Apuntes-Acceso_a_Datos<filename>Apuntes XML/src/main/java/org/adrianl/jaxb/Anotaciones.java
package org.adrianl.jaxb;
public class Anotaciones {
/*
ANOTACIONES
Anotaciones para convertir el JavaBeans (clases a mapear POJO) en XML
@Xml... |
hedzr/voxr-lite | misc/impl/ws/ws.hub.reg.go | <filename>misc/impl/ws/ws.hub.reg.go
/*
* Copyright © 2019 <NAME>.
*/
package ws
import (
"github.com/sirupsen/logrus"
"unsafe"
)
func (h *WsHub) onRegister(client *WsClient) {
h.mutex.RLock()
if ok, _ := h.clients[client]; !ok {
h.mutex.RUnlock()
h.mutex.Lock()
h.clients[client] = true
h.linkToClient... |
vikramsomavaram/hashbrown-kubernetes-helm | template/listItem/panelItem.js | 'use strict';
module.exports = (_, model, state) =>
_.div({class: `list-item--panel-item ${model.type || ''} ${state.isActive ? 'active' : ''}`, 'data-sort': model.sort, id: model.id},
_.div({class: 'list-item--panel-item__inner', name: 'inner', draggable: model.isDraggable, ondragstart: _.onDragStart, on... |
Adham-M/Paint-for-Kids | GUI/Output.cpp | <reponame>Adham-M/Paint-for-Kids<gh_stars>0
#include "Output.h"
Output::Output()
{
//Initialize user interface parameters
UI.InterfaceMode = MODE_DRAW;
UI.width = 1440;
UI.height = 750;
UI.wx = 5;
UI.wy = 5;
UI.StatusBarHeight = 50;
UI.ToolBarHeight = 50;
UI.MenuItemWidth = 75;
UI.DrawColor = BLUE; //Dr... |
ucuenca/REDI | storage/src/main/java/edu/ucuenca/storage/services/MongoServiceImpl.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 ma... |
thetlwinoo/keyist-ecommerce | resource_server/src/main/java/com/commerce/backend/service/CartServiceImpl.java | <filename>resource_server/src/main/java/com/commerce/backend/service/CartServiceImpl.java
package com.commerce.backend.service;
import com.commerce.backend.dao.CartItemRepository;
import com.commerce.backend.dao.CartRepository;
import com.commerce.backend.dao.ProductDisplayRepository;
import com.commerce.backend.... |
hmsgit/campvis | modules/vectorfield/pipelines/vectorfielddemo.h | // ================================================================================================
//
// This file is part of the CAMPVis Software Framework.
//
// If not explicitly stated otherwise: Copyright (C) 2012-2015, all rights reserved,
// <NAME> <<EMAIL>>
// Chair for Computer Aided Medical Proce... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.