repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
timfel/netbeans | ide/spi.navigator/src/org/netbeans/spi/navigator/NavigatorDisplayer.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 ... |
Thanatoz-1/EmotionStimuli | src/emotion/baseline/embedding_model.py | <filename>src/emotion/baseline/embedding_model.py
__author__ = "<NAME>"
import numpy as np
from ..config import Config
import tensorflow as tf
from tensorflow import keras
tf.random.set_seed(Config.SEED)
def get_embedding_model(maxlen: int = Config.BILSTM_MAXLEN):
"""Generated the embeddings for a particular se... |
cerveada/finatra | thrift/src/main/scala/com/twitter/finatra/thrift/internal/ThriftMethodService.scala | <reponame>cerveada/finatra
package com.twitter.finatra.thrift.internal
import com.twitter.finagle
import com.twitter.finagle.param
import com.twitter.finagle.{Service, ServiceFactory, Stack}
import com.twitter.scrooge.ThriftMethod
import com.twitter.util.Future
private[thrift] class ThriftMethodService[Args, Result](... |
Triippz/CashVest | src/main/java/com/triippztech/cashvest/domain/NewsItem.java | <filename>src/main/java/com/triippztech/cashvest/domain/NewsItem.java
/*
* Copyright 2020 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the Software without restriction, including without lim... |
lhzheng880828/VOIPCall | doc/jitsi-bundles-dex/sources/net/java/sip/communicator/impl/packetlogging/PacketLoggingActivator.java | package net.java.sip.communicator.impl.packetlogging;
import net.java.sip.communicator.util.Logger;
import net.java.sip.communicator.util.ServiceUtils;
import org.jitsi.service.configuration.ConfigurationService;
import org.jitsi.service.fileaccess.FileAccessService;
import org.jitsi.service.packetlogging.PacketLoggin... |
gitsee9527/Report | msa-weather-report-eureka-feign-gateway-hystrix/src/main/java/com/example/demo/service/WeatherReportService.java | <reponame>gitsee9527/Report
package com.example.demo.service;
import com.example.demo.vo.Weather;
public interface WeatherReportService {
Weather getDatabyCityId(String cityId);
}
|
lebarreto/Bootcamp-GoStack-DesafioFinal | fastfeetweb/node_modules/rsuite-table/lib/utils/prefix.js | <reponame>lebarreto/Bootcamp-GoStack-DesafioFinal
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.prefix = exports.defaultClassPrefix = exports.getClassNamePrefix = exports.globalKey = undefined;
var _isArray2 = require('lodash/isArray');
var _isArray3 = _interopRequireDefault(... |
annettedorothea/com.anfelisa.web.documents | es6/gen/common/actions/AbstractDisplaySaveBugDialogAction.js | <filename>es6/gen/common/actions/AbstractDisplaySaveBugDialogAction.js
/********************************************************************************
* generated by de.acegen
********************************************************************************/
import Action from "../../ace/SynchronousAction";
impo... |
john-techfox/ibrain-core | lib/ibrain/core/controller_helpers/response.rb | # frozen_string_literal: true
module Ibrain
module Core
module ControllerHelpers
module Response
extend ActiveSupport::Concern
included do
helper_method :render_json_error
helper_method :render_json_ok
end
protected
def render_json_error(error,... |
abelito75/WowLogParsing | log.parser/src/main/java/log/parser/log/parser/blizzard/events/specific/PARTY_KILL.java | <reponame>abelito75/WowLogParsing
package log.parser.log.parser.blizzard.events.specific;
import log.parser.log.parser.blizzard.events.generic.TargetToDestinationEvent;
//TODO Check if this is all done correct :)
public class PARTY_KILL extends TargetToDestinationEvent {
}
|
horondi/horondi_admin | src/components/editor/file-blot/index.js | <reponame>horondi/horondi_admin
import FileBlot from './file-blot';
export default FileBlot;
|
EzraSingh/auth-client | src/tests/actions/user.test.js | import configureMockStore from 'redux-mock-store'
import MockAdapter from 'axios-mock-adapter'
import getAction from 'tests/utils/getAction'
import thunk from 'redux-thunk'
import api from 'api'
import {
register,
profile,
updateProfile,
updateEmail,
deactivateAccount
} from 'actions/user'
const ... |
simonkaemmer/de.htwg.sa.CardsAgainstHumanityScala3 | project/dependencies.scala | import sbt._
import sbt.librarymanagement.CrossVersion
object dependencies {
val scalactic = "org.scalactic" %% "scalactic" % versionNumber.scalactic
val scalatest = "org.scalatest" %% "scalatest" % versionNumber.scalatest % "test"
val scalalangmodulesXml = "org.scala-lang.modules" %% "scala-xml" % versionNumber... |
Wultyc/ISEP_1718_2A2S_REDSI_TrabalhoGrupo | REDSI_1160929_1161573/boost_1_67_0/libs/compute/test/test_platform.cpp | //---------------------------------------------------------------------------//
// Copyright (c) 2013-2014 <NAME> <<EMAIL>>
//
// 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
//
// See http://boostorg.github.... |
95A31/MDD-LNS | benchmarks/solvers/minizinc/include/minizinc/aststring.hh | /* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* <NAME> <<EMAIL>>
*/
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. *... |
DavidGomesh/cryptography-with-geometric-transposition | geometric-transpositions/triangular.h | #ifndef TRIANGULAR_H_INCLUDED
#define TRIANGULAR_H_INCLUDED
/**
* ----------------------------------------------------------------
* WELCOME TO GEOMETRIC TRANSPOSITIONS!
* ----------------------------------------------------------------
* Triangular Transposition
* ------------------------------------------------... |
psh-baxter/alligatoroid | core/src/main/java/com/zarbosoft/merman/core/syntax/error/MissingBack.java | package com.zarbosoft.merman.core.syntax.error;
import com.zarbosoft.merman.core.SyntaxPath;
public class MissingBack extends BaseKVError{
public MissingBack(SyntaxPath typePath, String field, String forName) {
put("typePath", typePath);
put("field", field);
put("for", forName);
}
@Ove... |
lijunhuayc/EasyModuleComponent | base_library/src/main/java/com/renxin/cheku/base_library/data_source/net/net_okhttp3/OkHttp3Utils.java | <reponame>lijunhuayc/EasyModuleComponent
package com.renxin.cheku.base_library.data_source.net.net_okhttp3;
import android.content.Intent;
import com.alibaba.android.arouter.facade.annotation.Autowired;
import com.alibaba.android.arouter.launcher.ARouter;
import com.google.common.collect.Maps;
import com.renxin.cheku... |
nimbus-org/nimbus | src/main/java/jp/ossc/nimbus/util/converter/StringStreamConverter.java | /*
* This software is distributed under following license based on modified BSD
* style license.
* ----------------------------------------------------------------------
*
* Copyright 2003 The Nimbus Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
*... |
Catorpilor/LeetCode | 1498_number_of_seqs_that_satisify_the_given_sum_condition/sum_test.go | package sum
import "testing"
func TestNumSubSeqs(t *testing.T) {
st := []struct {
name string
nums []int
target int
exp int
}{
{"testcase1", []int{1, 1, 1, 1}, 2, 15},
{"testcase2", []int{3, 5, 6, 7}, 9, 4},
{"testcase3", []int{3, 3, 6, 8}, 10, 6},
{"testcase4", []int{2, 3, 3, 4, 6, 7}, 12, 6... |
ABM-Community-Ports/droidboot_device_planet-cosmocom | platform/mt6765/msdc_io.c | <reponame>ABM-Community-Ports/droidboot_device_planet-cosmocom
/* Copyright Statement:
*
* This software/firmware and related documentation ("MediaTek Software") are
* protected under relevant copyright laws. The information contained herein
* is confidential and proprietary to MediaTek Inc. and/or its licensors.
* Wit... |
claudiogaalvao/BeesForceDojo1 | BaseBrewery/src/com/bees/cervejaria/maquinas/MaquinaBrassagem.java | <reponame>claudiogaalvao/BeesForceDojo1
package com.bees.cervejaria.maquinas;
import com.bees.cervejaria.interfaces.IBrassagem;
import com.bees.cervejaria.persistencia.EstadoMalte;
import com.bees.cervejaria.persistencia.Malte;
public class MaquinaBrassagem implements IBrassagem {
@Override
public Malte cozin... |
max-vorabhol-zipmex/express-app | packages/ui/src/components/common/APCheckbox/index.js | import APCheckbox from './APCheckbox.js';
import { InnerCheckboxInput } from './APCheckbox.js';
export { InnerCheckboxInput };
export default APCheckbox;
|
jreece1567/go_swagger_client | client_secure/p_a_y_m_e_n_t_s/post_payments_stripe_events_parameters.go | <filename>client_secure/p_a_y_m_e_n_t_s/post_payments_stripe_events_parameters.go
package p_a_y_m_e_n_t_s
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"time"
"github.com/go-openapi/errors"
"github.com/go-openapi/runti... |
openNaEF/openNaEF | subprojects/38k.naef/src/main/java/naef/mvo/InterconnectionIf.java | <filename>subprojects/38k.naef/src/main/java/naef/mvo/InterconnectionIf.java
package naef.mvo;
import tef.skelton.ConfigurationException;
import tef.skelton.ValueException;
import java.util.HashSet;
import java.util.Set;
public class InterconnectionIf extends AbstractPort {
public InterconnectionIf(MvoId id) {
... |
xiaoyege92/LC_icamera | LC_DVR/LC/src/main/java/com/example/administrator/lc_dvr/common/adapter/PhotoViewAdapter.java | package com.example.administrator.lc_dvr.common.adapter;
import android.support.v4.view.PagerAdapter;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import com.luck.picture.lib.photoview.PhotoView;
import com.squareup.picasso.Picasso;... |
pdpdds/SDLGameProgramming | sdl2/edgar-1.31/src/system/record.c | /*
Copyright (C) 2009-2019 Parallel Realities
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 version.
This program is distributed in t... |
newphew92/robotAss2 | devel/include/aquacore/StateMsg.h | // Generated by gencpp from file aquacore/StateMsg.msg
// DO NOT EDIT!
#ifndef AQUACORE_MESSAGE_STATEMSG_H
#define AQUACORE_MESSAGE_STATEMSG_H
#include <string>
#include <vector>
#include <map>
#include <ros/types.h>
#include <ros/serialization.h>
#include <ros/builtin_message_traits.h>
#include <ros/message_opera... |
stulzq/sofa-registry | server/server/session/src/test/java/com/alipay/sofa/registry/server/session/providedata/CompressPushServiceTest.java | <reponame>stulzq/sofa-registry
/*
* 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... |
liufeiit/ocs | ocs/oss/src/main/java/me/ocs/oss/mss/MessageException.java | <filename>ocs/oss/src/main/java/me/ocs/oss/mss/MessageException.java
package me.ocs.oss.mss;
/**
* 消息发送异常.
*
* @author 刘飞
*
* @version 1.0.0
* @since 2015年4月30日 下午4:59:28
*/
public class MessageException extends RuntimeException {
private static final long serialVersionUID = 1L;
public MessageException() ... |
akyruu/blender-cartography-addon | drawing/drawer/plane/utils/face.py | """
Module for face methods relative to plane drawing
"""
from typing import List
import bmesh
from ..model import CartographyPlaneContext
# METHODS =====================================================================
def create(context: CartographyPlaneContext, edges: List[bmesh.types.BMEdge]):
fill = bmesh.... |
viktor-podzigun/web-commons | web-common-client/src/main/java/com/googlecode/common/client/http/RequestErrorHandler.java |
package com.googlecode.common.client.http;
import com.google.gwt.http.client.Response;
import com.googlecode.common.client.task.AbstractTask;
/**
* Global error handler for request service.
*/
public interface RequestErrorHandler {
public boolean handleErrorStatus(AbstractTask task, Response response);
... |
jmini/quarkus | core/runtime/src/test/java/io/quarkus/runtime/configuration/MemorySizeConverterTestCase.java | package io.quarkus.runtime.configuration;
import static org.junit.Assert.assertEquals;
import java.math.BigInteger;
import org.junit.Before;
import org.junit.Test;
public class MemorySizeConverterTestCase {
private MemorySizeConverter memorySizeConverter;
@Before
public void setup() {
memorySiz... |
xiaoyuMo/PeonyFramwork | src/main/java/com/peony/engine/framework/tool/utils/DateUtils.java | <reponame>xiaoyuMo/PeonyFramwork<gh_stars>0
package com.peony.engine.framework.tool.utils;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.sql.Timestamp;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.time.*;
import jav... |
dk00/old-stuff | csie/08design-patterns/src/hw02/strategy/FlyBehavior.java | <reponame>dk00/old-stuff<filename>csie/08design-patterns/src/hw02/strategy/FlyBehavior.java
package hw02.strategy;
public interface FlyBehavior {
public String fly();
}
|
hepyu/lcp-java | open-lcp-queue-kafka/src/main/java/com/open/lcp/queue/kafka/KafkaProducerXImpl.java | package com.open.lcp.queue.kafka;
import org.apache.kafka.clients.producer.Callback;
import org.apache.kafka.clients.producer.KafkaProducer;
import org.apache.kafka.clients.producer.ProducerRecord;
import org.apache.kafka.clients.producer.RecordMetadata;
import org.apache.log4j.Logger;
public class KafkaProducerXImpl... |
rizwanniazigroupdocs/aspose-slides-cloud-go | svg_export_options.go | /*
* --------------------------------------------------------------------------------------------------------------------
* <copyright company="Aspose">
* Copyright (c) 2018 Aspose.Slides for Cloud
* </copyright>
* <summary>
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of... |
jasonpr59/chess | src/test/com/stalepretzel/chess/SquareTest.java | <filename>src/test/com/stalepretzel/chess/SquareTest.java
package com.stalepretzel.chess;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertSame;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.util... |
davidwatkins73/waltz-dev | waltz-service/src/main/java/com/khartec/waltz/service/process_diagram/ProcessDiagramService.java | <gh_stars>1-10
package com.khartec.waltz.service.process_diagram;
import com.khartec.waltz.data.GenericSelector;
import com.khartec.waltz.data.GenericSelectorFactory;
import com.khartec.waltz.data.process_diagram.ProcessDiagramDao;
import com.khartec.waltz.model.EntityKind;
import com.khartec.waltz.model.IdSelectionOp... |
AbeleMM/Algorithmic-Problems | Advent of Code/2020/Day_4.java | <reponame>AbeleMM/Algorithmic-Problems<filename>Advent of Code/2020/Day_4.java
import java.util.*;
import java.io.*;
public class Day_4 {
static Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
static Map<String, String> getNext() {
Map<String, String> res = new... |
marcellodesales/newww | test/handlers/ops.js | var fixtures = require("../fixtures"),
nock = require("nock"),
cheerio = require("cheerio"),
Code = require('code'),
Lab = require('lab'),
lab = exports.lab = Lab.script(),
describe = lab.experiment,
before = lab.before,
after = lab.after,
beforeEach = lab.beforeEach,
afterEach =... |
DavidSongzw/RN-Gank | RNGank/src/components/common/toast.js | <filename>RNGank/src/components/common/toast.js
import React, { Component } from 'react'
import {
Text,
View,
StyleSheet
} from 'react-native'
import PropTypes from 'prop-types'
import {
valueBettween
} from '../../utils/func'
import Icon from './icon'
const styles = StyleSheet.create({
container: {
jus... |
albexl/team-reference | graph/gomory_hu_tree.cpp | /*
Gomory-Hu tree
Tested: SPOj MCQUERY
Complexity: O(n-1) max-flow call
*/
template<typename flow_type>
struct edge
{
int src, dst;
flow_type cap;
};
template<typename flow_type>
vector<edge<flow_type>> gomory_hu(dinic<flow_type> &adj)
{
int n = adj.n;
vector<edge<flow_type>> tree;
vector<int> parent(n);
... |
weters/mondaynightpoker-server | pkg/model/error.go | package model
// UserError is an error that is safe to return in a response
type UserError string
func (u UserError) Error() string {
return string(u)
}
|
sclasen/swf-go | fsm/correlator.go | <reponame>sclasen/swf-go<filename>fsm/correlator.go
package fsm
import (
"fmt"
"strconv"
"github.com/aws/aws-sdk-go/service/swf"
)
// EventCorrelator is a serialization-friendly struct that is automatically managed by the FSM machinery
// It tracks signal and activity correlation info, so you know how to react wh... |
KaceyBolman/TestLuxCoin | app/utils/crypto.js | <reponame>KaceyBolman/TestLuxCoin
// @flow
import bip39 from 'bip39';
import validWords from '../../lib/valid-words.en';
export const generateMnemonic = () => bip39.generateMnemonic(null, null, validWords);
|
isabella232/photark | photark-security/src/main/java/org/apache/photark/security/authorization/services/AccessManager.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 ... |
anushkhathakur/spring | spring-zipkin/spring-zipkin-producer/src/main/java/com/mohsinkd786/controller/UserController.java | <reponame>anushkhathakur/spring<filename>spring-zipkin/spring-zipkin-producer/src/main/java/com/mohsinkd786/controller/UserController.java
package com.mohsinkd786.controller;
import com.mohsinkd786.dtos.UserDto;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
... |
HappyHippyHippo/gapp | mwlog/globals.go | package mwlog
import (
"github.com/happyhippyhippo/gapp"
"github.com/happyhippyhippo/gapp/log"
)
const (
// ContainerID defines the id to be used as the container
// registration id of a logging middleware instance factory function.
ContainerID = gapp.ContainerMiddlewareID + ".log"
// ContainerConfigOkID defin... |
AlexDiru/minecraft-weekend | src/world/gen/flowergen.cpp | #include "worldgen.h"
#include "../world.h"
void worldgen_flowers( Chunk *chunk, FWGGet get, FWGSet set, s64 x, s64 y, s64 z) {
BlockId flower = RANDCHANCE(0.6) ? ROSE : BUTTERCUP;
s64 s = RAND(2, 6);
s64 l = RAND(s - 1, s + 1);
s64 h = RAND(s - 1, s + 1);
for (s64 xx = (x - l); xx <= (x + l); xx... |
STRIDES-Codes/Exploring-the-Microbiome- | src/metaspades/src/projects/spades/hybrid_gap_closer.hpp | //***************************************************************************
//* Copyright (c) 2015 Saint Petersburg State University
//* Copyright (c) 2011-2014 Saint Petersburg Academic University
//* All Rights Reserved
//* See file LICENSE for details.
//************************************************************... |
mir597/ml_safe | tests/interpreter_tests/function-call-2.js | <gh_stars>1-10
s = new String("ab")
_<>_print(s.match.call("ab", "((a)(b))"))
_<>_print(s.match.call("ab", new RegExp("((a)(b))")))
"PASS"
|
snelliott/automol | automol/graph/base/_stereo.py | <filename>automol/graph/base/_stereo.py
""" graph functions that depend on stereo assignments
BEFORE ADDING ANYTHING, SEE IMPORT HIERARCHY IN __init__.py!!!!
"""
import functools
import itertools
import numpy
from automol import util
import automol.geom.base # !!!!
from automol.util import dict_
from automol.graph... |
tico88612/Solution-Note | LuoguOJ/Luogu 1089.cpp | #include <bits/stdc++.h>
#define _ ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
using namespace std;
int main(){
int enter[12];
for(int i=0;i<12;i++)
cin>>enter[i];
int modd=0,sum=0,wrong=0;
for(int i=0;i<12&&modd>=0;i++){
modd+=300;
modd-=enter[i];
if(modd>=0){
sum+=modd/100;
modd%=100;
}
else... |
pnijhara/h2o4gpu | src/include/matrix/matrix.h | /*!
* Modifications Copyright 2017-2018 H2O.ai, Inc.
*/
#ifndef MATRIX_MATRIX_H_
#define MATRIX_MATRIX_H_
#include <memory>
namespace h2o4gpu {
template <typename T>
class Matrix {
protected:
const size_t _m, _n, _mvalid;
void *_info, *_infoy, *_vinfo, *_vinfoy, *_weightinfo;
bool _done_init, _done_alloc,... |
SvetlanaMuravlova/try-schematics | libs/doc-pages/popover/src/lib/demos/delay/delay.js | <filename>libs/doc-pages/popover/src/lib/demos/delay/delay.js<gh_stars>0
import { __decorate } from "tslib";
import { Component } from '@angular/core';
let DemoPopoverDelayComponent = class DemoPopoverDelayComponent {
};
DemoPopoverDelayComponent = __decorate([
Component({
// eslint-disable-next-line @angul... |
csiro-wsn/freertos | core_csiro/arch/common/bluetooth/inc/bluetooth_sig.h | <reponame>csiro-wsn/freertos<gh_stars>0
/*
* Copyright (c) 2020, Commonwealth Scientific and Industrial Research
* Organisation (CSIRO) ABN 41 687 119 230.
*
* Filename: bluetooth_sig.h
* Creation_Date: 22/08/2019
* Author: <NAME> <<EMAIL>>
*
* Bluetooth Special Interest Group (SIG) definitions
*
* Bluetoot... |
CristianoPizzamiglio/scikit-spatial | tests/unit/objects/test_base_array_2d.py | <filename>tests/unit/objects/test_base_array_2d.py
import numpy as np
import pytest
from skspatial.objects import Points
@pytest.mark.parametrize(
("array", "dimension"),
[
(np.zeros((3, 1)), 0),
(np.zeros((3, 2)), 1),
(np.zeros((3, 3)), 2),
],
)
def test_dimension_failure(array, ... |
hoanglongla/Team6-FE | shared/isomorphic/redux/themeSwitcher/actions.js | <reponame>hoanglongla/Team6-FE<gh_stars>0
import { getCurrentTheme } from './config';
const actions = {
CHANGE_THEME: 'CHANGE_THEME',
SWITCH_ACTIVATION: 'SWITCH_ACTIVATION',
switchActivation: () => ({
type: actions.SWITCH_ACTIVATION,
}),
changeTheme: (attribute, themeName) => {
const theme = getCurren... |
bihire/team_work_server | api/v2/index.js | <filename>api/v2/index.js
// const authRoutes = require('./routes/auth');
import commentRoutes from './routes/comment'
import articleRoutes from './routes/article'
import authRoutes from "./routes/auth"
import articleFlagRoutes from "./routes/articleFlag"
import adminRoutes from "./routes/admin"
import app from '../../... |
osom8979/tbag | libtbag/tiled/details/TmxLayer.hpp | <reponame>osom8979/tbag
/**
* @file TmxLayer.hpp
* @brief TmxLayer class prototype.
* @author zer0
* @date 2019-07-14
*/
#ifndef __INCLUDE_LIBTBAG__LIBTBAG_TILED_DETAILS_TMXLAYER_HPP__
#define __INCLUDE_LIBTBAG__LIBTBAG_TILED_DETAILS_TMXLAYER_HPP__
// MS compatible compilers support #pragma once
#if defined... |
Seba244c/Amber-Engine | src/main/java/dk/sebsa/amber_engine/EngineConfig.java | <reponame>Seba244c/Amber-Engine<filename>src/main/java/dk/sebsa/amber_engine/EngineConfig.java
package dk.sebsa.amber_engine;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Properties;
public class EngineCon... |
baSSiLL/dotnetinstaller | ThirdParty/Microsoft/Visual Studio 8/VC/PlatformSDK/Include/usp10.h | /*++
Copyright (c) Microsoft Corporation. All rights reserved.
*/
#ifndef __usp10__
#define __usp10__
#if _MSC_VER > 1000
#pragma once
#endif
#include <windows.h>
#ifdef __cplusplus
extern "C" {
#endif
///// Uniscribe build number
#define USPBUILD 0400
///// USP - Unicode Complex Script processor
//
// ... |
sterobin/drools | drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/util/ScenarioBeanUtilTest.java | /*
* Copyright 2018 Red Hat, Inc. and/or its affiliates.
*
* 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... |
Gkuzin13/spacex-launches | src/components/StatsTable.js/StatsTable.js | import { useState } from 'react';
import { motion, AnimatePresence } from 'framer-motion';
import { Table, TableWrapper, TableBorder } from './StatsTable.styled';
import Pagination from '../Pagination/Pagination';
import TableHead from './TableHead';
import Row from './Row';
const StatsTable = ({ data, isMobile }) => ... |
j-mai/webpa-common | httppool/health/health_test.go | <gh_stars>0
package health
import (
"errors"
"github.com/stretchr/testify/mock"
"github.com/xmidt-org/webpa-common/health"
"github.com/xmidt-org/webpa-common/httppool"
"net/http"
"testing"
)
type mockMonitor struct {
mock.Mock
}
func (monitor *mockMonitor) SendEvent(healthFunc health.HealthFunc) {
monitor.Ca... |
ArkEcosystem/java-crypto | src/test/java/org/arkecosystem/crypto/SchnorrTest.java | package org.arkecosystem.crypto;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNull;
import java.math.BigInteger;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import or... |
procool/mygw | web/apps/admin/views.py | import logging
import datetime
from sqlalchemy import func, and_, or_, not_
from flask import url_for, session
from misc.mixins import myTemplateView, JSONView
from utils.arp_list import get_mac_by_ip
from models.all_models import InetEther
from models.session import session
from utils.server.http_client import HT... |
luoxn28/luo-leetcode | src/main/java/com/luo/leetcode/股票买卖/StockMaxProfitV.java | package com.luo.leetcode.股票买卖;
/**
* 买卖股票的最佳时机含手续费
* https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/
*
* @author luoxiangnan
* @date 2020-11-14
*/
public class StockMaxProfitV {
public static void main(String[] args) {
System.out.println(new StockMaxProfitV().m... |
mlopezFC/flow | flow-data/src/main/java/com/vaadin/flow/data/renderer/TemplateRenderer.java | <filename>flow-data/src/main/java/com/vaadin/flow/data/renderer/TemplateRenderer.java
/*
* Copyright 2000-2021 <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.ap... |
Cubeside/CubeQuest | src/main/java/de/iani/cubequest/commands/ToggleGenerateDailyQuestsCommand.java | <reponame>Cubeside/CubeQuest
package de.iani.cubequest.commands;
import de.iani.cubequest.CubeQuest;
import de.iani.cubequest.util.ChatAndTextUtil;
import de.iani.cubesideutils.commands.ArgsParser;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Function;
import org.bukkit.command.... |
cctvzd7/aliyun-openapi-java-sdk | aliyun-java-sdk-sofa/src/main/java/com/aliyuncs/sofa/transform/v20190815/AddLinkeLinktIterationResponseUnmarshaller.java | <filename>aliyun-java-sdk-sofa/src/main/java/com/aliyuncs/sofa/transform/v20190815/AddLinkeLinktIterationResponseUnmarshaller.java<gh_stars>1-10
/*
* 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 Licen... |
karstenv/nmp-arm | app/backend/common/mixins/JSONResponseMixin.py | <gh_stars>1-10
from django.core import serializers
from django.forms.util import ErrorDict
from django.http import HttpResponse
from django.core.exceptions import ImproperlyConfigured
import logging
logger = logging.getLogger( __file__ )
import json
class JSONResponseMixin(object):
"""
Responds with json
... |
pandaclj/demo-park | distributed-transaction/dt-jta/src/test/java/com/panda/demo/dt/jta/test/DemoTest.java | package com.panda.demo.dt.jta.test;
import com.panda.demo.dt.jta.business.IBusinessService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import javax.annotation.Resource;
/... |
estebanfer/overlunky | src/game_api/entities_floors.hpp | #pragma once
#include "entities_items.hpp" // for UnknownPointerGroup
#include "entity.hpp"
#include <array>
#include <cstdint>
enum FLOOR_SIDE
{
TOP,
BOTTOM,
LEFT,
RIGHT,
TOP_LEFT,
TOP_RIGHT,
BOTTOM_LEFT,
BOTTOM_RIGHT,
};
void trigger_trap(Entity* trap, int32_t who_uid, uint8_t dire... |
Samlegamer/MoBends | src/main/java/goblinbob/mobends/core/kumo/state/serializer/KeyframeNodeSerializer.java | <reponame>Samlegamer/MoBends<gh_stars>100-1000
package goblinbob.mobends.core.kumo.state.serializer;
import com.google.gson.*;
import goblinbob.mobends.core.kumo.KumoSerializer;
import goblinbob.mobends.core.kumo.state.keyframe.KeyframeNodeRegistry;
import goblinbob.mobends.core.kumo.state.template.keyframe.KeyframeNo... |
dpopkov/katas | start/first-katas/base-kata/src/main/java/learn/katas/start/Primary.java | package learn.katas.start;
// TODO: Find primary numbers
public class Primary {
/**
* Retrieves array of first primary numbers.
* @param number number of primary numbers
* @return array of primary numbers
*/
public long[] first(int number) {
long[] result = new long[number];
... |
Yeep/zeebe | snapshot/src/main/java/io/camunda/zeebe/snapshots/SnapshotId.java | /*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
* one or more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
* Licensed under the Zeebe Community License 1.1. You may not use this file
* ... |
AetherDim/openroberta-lab | OpenRobertaServer/staticResources/js/app/simulation/simulationLogic/Util.js | var __read = (this && this.__read) || function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }... |
michaelbnd/react-native-ionicons-5 | src/Icons/git-branch-sharp.js | import * as React from "react";
import Svg, { Path } from "react-native-svg";
function SvgGitBranchSharp(props) {
return <Svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 512 512" {...props}><Path d="M352 96a64 64 0 00-58.86 89.11l-101.14 88V151.39a64 64 0 10-64 0v209.22a64 64 0 1064 0V35... |
Sitrone/SSM-Examples | hibernate-examples/src/main/java/com/sununiq/github/v0/JdbcDataSource.java | package com.sununiq.github.v0;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public abstract class JdbcDataSource {
//数据库用户名
private static final String USERNAME = "tester";
//数据库密码
private static final String PASSWORD = "<PASSWORD>";
//驱动信息
private ... |
joseluis-max/holbertonschool-low_level_programming | 0x09-static_libraries/2-strlen.c | <reponame>joseluis-max/holbertonschool-low_level_programming
#include "holberton.h"
/**
* _strlen - length of a string
* @s: pointer of str var
*
* Return: long of string in intergers
*/
int _strlen(char *s)
{
int c = 0;
while (*s != '\0')
{
c++;
s++;
}
return (c);
}
|
fel-albuquerque/curso-python | curso-python-alura/stringb.py | #quebra de linha
#print('<NAME>')
#Colocando mais uma aspas simples na mesma linha
#print('<NAME>\'<NAME>')
#Contatenar
#nome = '<NAME>'
#print(nome + ' tem 19 anos de idade')
#Aumentar as letras (caixa alta)
#nome = '<NAME>'
#print(nome.upper())
#Diminuir as letras
#nome = '<NAME>'
#print(nome.lower())
#Contar ... |
msdslab/automated-systematic-review | asreview/webapp/src/ProjectComponents/ProjectDeleteDialog.js | import React from "react";
import { useMutation, useQueryClient } from "react-query";
import { useNavigate, useParams } from "react-router-dom";
import {
Alert,
Button,
Dialog,
DialogActions,
DialogContent,
DialogTitle,
Stack,
Typography,
TextField,
} from "@mui/material";
import { ProjectAPI } from ... |
am1w1zz/CppLearn | src/struct/global.hpp | #define stature(p) ((p) ? (p)->height : -1)
#define IsRoot(x) ( ! ( (x).parent ) )
#define IsLChild(x) ( ! IsRoot(x) && ( & (x) == (x).parent->lc ) )
#define IsRChild(x) ( ! IsRoot(x) && ( & (x) == (x).parent->rc ) )
#define HasParent(x) ( ! IsRoot(x) )
#define HasLChild(x) ( (x).lc )
#define HasRChild(x) ( (x).rc )
#d... |
uk-gov-mirror/hmcts.nfdiv-case-api | src/main/java/uk/gov/hmcts/divorce/solicitor/event/page/OtherLegalProceedings.java | package uk.gov.hmcts.divorce.solicitor.event.page;
import uk.gov.hmcts.ccd.sdk.api.Event.EventBuilder;
import uk.gov.hmcts.ccd.sdk.api.FieldCollection.FieldCollectionBuilder;
import uk.gov.hmcts.divorce.ccd.CcdPageConfiguration;
import uk.gov.hmcts.divorce.common.model.CaseData;
import uk.gov.hmcts.divorce.common.mode... |
michaelmao999/jdchain | source/ledger/ledger-core/src/main/java/com/jd/blockchain/ledger/core/DataAccountQuery.java | package com.jd.blockchain.ledger.core;
public interface DataAccountQuery extends AccountQuery<DataAccount> {
} |
openlattice/lattice-community-restorative-court | src/containers/profile/src/edit/EditAddressForm.js | <gh_stars>0
// @flow
import React, { useEffect, useMemo, useState } from 'react';
import { List, Map, setIn } from 'immutable';
import { DataProcessingUtils, Form } from 'lattice-fabricate';
import { DataUtils, LangUtils, ReduxUtils } from 'lattice-utils';
import type { FQN, UUID } from 'lattice';
import { AppTypes, ... |
RemoteConnectionManager/spack | var/spack/repos/builtin/packages/r-xopen/package.py | # Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class RXopen(RPackage):
"""Cross platform solution to open files, directories or 'URLs' with the... |
Joabulla07/BootcampGl2021 | Topic3/GranjaTopic3-Junit/src/main/java/com/joanna/Model/Farm.java | package com.joanna.Model;
public class Farm {
private static Farm instance;
private Farm(){
HenHouse henHouse = HenHouse.getInstance(); // Create a hen house (array of Hen).
Farmer farmer = Farmer.getInstance(); // Create a farmer.
layEggs(henHouse.getHens()); // ... |
nfette/sorpsim-opt | src/zigzag.cpp | /*! \file zigzag.cpp
\brief Provides class zigzag.
This file is part of SorpSim and is distributed under terms in the file LICENSE.
Developed by <NAME> and Dr. <NAME> for ORNL.
\author <NAME> (zhiyaoYang)
\author Dr. <NAME>
\copyright 2015, UT-Battelle, LLC
*/
#include "zigzag.h"
#include ... |
MobileSeoul/2017seoul-20 | app/src/main/java/com/missionofseoul/seoul/intro/LoginActivity.java | package com.missionofseoul.seoul.intro;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Build;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import ... |
nikukyugamer/egotter | spec/models/search_log_spec.rb | <reponame>nikukyugamer/egotter
require 'rails_helper'
RSpec.describe SearchLog, type: :model do
describe '#with_login?' do
context 'user_id != -1' do
it 'returns true' do
expect(SearchLog.new(user_id: 1).with_login?).to be_truthy
expect(SearchLog.new(user_id: '10').with_login?).to be_truthy... |
pyr-sh/keybase-notarybot | bot/models/document.go | package models
type Document struct {
Signatories []*Signatory `json:"signatory"`
}
type Signatory struct {
Name string `json:"name"`
Page int `json:"page"`
X float64 `json:"x"`
Y float64 `json:"y"`
Width float64 `json:"width"`
Height float64 `json:"height"`
}
|
megahertz0/android_thunder | dex_src/com/xunlei/tdlive/aniengine/d.java | <reponame>megahertz0/android_thunder
package com.xunlei.tdlive.aniengine;
import android.view.animation.LinearInterpolator;
// compiled from: Ease.java
final class d extends LinearInterpolator {
final /* synthetic */ float a;
d(float f) {
this.a = f;
}
public final float getInterpolation(flo... |
Azcrew/NodeTerranaSite | app/routes/global.js | module.exports = (application) => {
application.get('/contact', function (req, res) {
application.app.controllers.global.contact(application, req, res)
})
application.get('/documentation', function (req, res) {
application.app.controllers.global.documentation(application, req, res)
})
... |
foxonedev/tabler-react | src/flow/events/Other.flow.js | // @flow
/**
* Type definitions for Other EventHandling
*/
export type Other = {|
/**
* Handle Toggling Event
*/
+onToggle?: (event: SyntheticEvent<*>) => void,
|};
|
fmhwong/microprofile-sandbox | proposals/logging/api/src/test/java/org/eclipse/microprofile/logging/span/SpanLoggingTest.java | <gh_stars>10-100
package org.eclipse.microprofile.logging.span;
import io.opentracing.Tracer;
import io.opentracing.mock.MockSpan;
import io.opentracing.mock.MockTracer;
import javax.enterprise.inject.spi.Bean;
import org.eclipse.microprofile.logging.Configuration;
import org.eclipse.microprofile.logging.LazyEval;
imp... |
Lulzx/material-ui | packages/material-ui-icons/src/More.js | <filename>packages/material-ui-icons/src/More.js
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let More = props =>
<SvgIcon {...props}>
<path d="M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.97.89 1.66.89H22c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 13.5... |
liuxiang88/core-alljoyn | alljoyn_c/src/DeferredCallback.cc | <filename>alljoyn_c/src/DeferredCallback.cc<gh_stars>10-100
/******************************************************************************
* Copyright (c) Open Connectivity Foundation (OCF), AllJoyn Open Source
* Project (AJOSP) Contributors and others.
*
* SPDX-License-Identifier: Apache-2.0
*
* All... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.