repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
lagerdata/unit-test_templates | cc3235sf/ti_sdk/simplelink_cc32xx_sdk_4_10_00_07/source/ti/net/mqtt/server/server_core.h | /*
* Copyright (C) 2016-2018, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* n... |
nattyco/fermatold | fermat-api/src/main/java/com/bitdubai/fermat_api/layer/all_definition/license/LicenseSubsystem.java | package com.bitdubai.fermat_api.layer.all_definition.license;
import com.bitdubai.fermat_api.Addon;
/**
* Created by ciencias on 21.01.15.
*/
public interface LicenseSubsystem {
public void start () throws CantStartSubsystemException;
public Addon getAddon();
}
|
starao520/sign-set-admin | ams-tools/src/main/java/com/aisino/entity/QiniuContent.java | <reponame>starao520/sign-set-admin
package com.aisino.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation... |
ktrzeciaknubisa/jxcore-binary-packaging | deps/mozjs/src/jsweakcache.h | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* vim: set ts=8 sts=4 et sw=4 tw=99:
* 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/. */
... |
yuuki0xff/goapptrace | tracer/logger/retrysender.go | <reponame>yuuki0xff/goapptrace
package logger
import (
"log"
"time"
"github.com/yuuki0xff/goapptrace/tracer/types"
)
// RetrySender is automatically retry to all operations.
type RetrySender struct {
Sender Sender
MaxRetry int
RetryInterval time.Duration
}
func (s *RetrySender) Open() error {
ret... |
legioner9/Node_Way_source_2 | Store/myNpm/st_doc1/nodejs.org_DOCS.v.2/Console/_/#TSH/Copy_learn/JavaScript/3-prompt.js | <filename>Store/myNpm/st_doc1/nodejs.org_DOCS.v.2/Console/_/#TSH/Copy_learn/JavaScript/3-prompt.js
'use strict';
const readline = require('readline');
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
prompt: '> ',
});
rl.prompt();
const commands = {
help() {
console.lo... |
biemo8/bbs-cloud | app-biz/biemo-bbs/biemo-bbs-api/src/main/java/com/biemo/cloud/bbs/api/BArticleApi.java | <filename>app-biz/biemo-bbs/biemo-bbs-api/src/main/java/com/biemo/cloud/bbs/api/BArticleApi.java
package com.biemo.cloud.bbs.api;
import com.biemo.cloud.bbs.api.vo.BArticleVo;
import com.biemo.cloud.kernel.model.response.ResponseData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.w... |
gdumond/apim-cli | modules/apis/src/test/java/com/axway/apim/changeAction/ChangeTestAction.java | package com.axway.apim.changeAction;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.axway.apim.APIExportApp;
import com.axway.apim.lib.CoreParameters;
import com.axway.apim.lib.CoreParameters.Mode;
import com.consol.citrus.a... |
DavidSlayback/rlpyt | rlpyt/envs/bsuiteenv/bsuite_env.py | import bsuite
from dm_env import specs
from bsuite.utils.wrappers import RewardNoise, RewardScale
from rlpyt.envs.base import Env, EnvStep, EnvInfo
from rlpyt.spaces.int_box import IntBox
from rlpyt.spaces.float_box import FloatBox
from rlpyt.utils.logging.context import LOG_DIR, osp # Base log directory
VALID_ENV_SW... |
pakpoomton/CellmodellerShadow | html/namespace_cell_modeller_1_1_integration_1_1_c_l_euler_integrator.js | <gh_stars>0
var namespace_cell_modeller_1_1_integration_1_1_c_l_euler_integrator =
[
[ "CLEulerIntegrator", "class_cell_modeller_1_1_integration_1_1_c_l_euler_integrator_1_1_c_l_euler_integrator.html", "class_cell_modeller_1_1_integration_1_1_c_l_euler_integrator_1_1_c_l_euler_integrator" ]
]; |
phoolhbti/mi17 | rpgm/rpgm/src/main/java/org/yarlithub/yschool/web/setting/settingsGradesDivisionsBean.java | package org.yarlithub.yschool.web.setting;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import javax.faces.bean.ManagedBean;
/**
* Created with IntelliJ IDEA.
* User: Pirinthapan
* Date: 4/8/14
* Time: 11:17 PM
* To change this template use File | Settin... |
latotty/meteor-sweeper | .storybook/config.js | <reponame>latotty/meteor-sweeper
import React from 'react';
import { configure, addDecorator } from '@kadira/storybook';
import { withKnobs } from '@kadira/storybook-addon-knobs';
import { setStubbingMode } from 'react-komposer';
import { ThemeProvider } from 'styled-components';
import { MemoryRouter } from 'react-rou... |
Colbys/smartactors-core | CoreFeatures/Database-in-memory-plugins/PluginInMemoryDatabase/src/main/java/info/smart_tools/smartactors/database_in_memory_plugins/in_memory_database_plugin/PluginInMemoryDatabase.java | package info.smart_tools.smartactors.database_in_memory_plugins.in_memory_database_plugin;
import info.smart_tools.smartactors.feature_loading_system.bootstrap_item.BootstrapItem;
import info.smart_tools.smartactors.base.interfaces.iaction.exception.ActionExecuteException;
import info.smart_tools.smartactors.feature_l... |
mensfeld/rhodes | neon/Helium/HeliumForWindows/Implementation/Plugins/PB_DeviceApplication_PLG/HourglassModule.h | /**
* \file HourglassModule.h
* \brief Hourglass Plug-in module interface.
* File to house the CHourglassModule class and all related includes / defines
* to interface between Browser core and the Hourglass functionality.
* The Hourglass will be shown automatically during page navigates and also
* when told to. ... |
Danial41/- | public_html/plugins/joomlaquiz/truefalse/js/next/truefalse.js | case '3': //true-false
if (!jq_Check_selectRadio('quest_choice', 'quest_form'+questions[n].cur_quest_id)) {
try{ ScrollToElement(jq_getObj('quest_div'+questions[n].cur_quest_id));} catch(e) {}
ShowMessage('error_messagebox_quest'+questions[n].cur_quest_id, 1, mes_complete_this_part);
return false;
}
break; |
alipay/antchain-openapi-prod-sdk | yunqing/java/src/main/java/com/antgroup/antchain/openapi/yunqing/models/NodeExecutionLog.java | // This file is auto-generated, don't edit it. Thanks.
package com.antgroup.antchain.openapi.yunqing.models;
import com.aliyun.tea.*;
public class NodeExecutionLog extends TeaModel {
// 当前节点的动作
@NameInMap("node_action")
@Validation(required = true)
public String nodeAction;
// 当前节点的执行日志信息
@Na... |
CyberQueenMara/baseband-research | okl4_kernel/okl4_2.1.1-patch.9/tools/magpie/test/fullsystem/pistachio/kernel/include/arch/ia64/ar.h | /*********************************************************************
*
* Copyright (C) 2002, 2003, Karlsruhe University
*
* File path: arch/ia64/ar.h
* Description: IA64 application registers
*
* Redistribution and use in source and binary forms, with or w... |
fpriyatna/mappingpedia-engine-dataset | src/main/scala/es/upm/fi/dia/oeg/mappingpedia/utility/MappingPediaUtility.scala | <gh_stars>1-10
package es.upm.fi.dia.oeg.mappingpedia.utility
import java.io._
import java.nio.channels.FileChannel
import java.security.MessageDigest
import java.util.UUID
import es.upm.fi.dia.oeg.mappingpedia.model.result.ListResult
import es.upm.fi.dia.oeg.mappingpedia.model.{Dataset, Distribution, OntologyClass}
... |
pvmoore/ts-warp | src/warp/ast/decl/Declaration.java | package warp.ast.decl;
import warp.ast.stmt.Statement;
public abstract class Declaration extends Statement {
/** true if preceded by 'declare' keyword */
public boolean isAmbient;
}
|
amazoyer/ml-ranking-module | src/test/java/com/datafari/ranking/config/AbstractTest.java | package com.datafari.ranking.config;
import javax.inject.Inject;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringRunner;
import com.datafari.ranking.configuration.ConfigProperties;
import com.datafari.ranking.configur... |
xiabee/BIT-CS | C语言程序设计基础/心形2.c | #include <stdio.h>
#include <math.h>
#include <stdlib.h>
#define I 20
#define R 340
int main()
{
int i,j,e;
int a;
for(i=1,a=I;i<I/2;i++,a--){
for(j=(int) ( I-sqrt(I*I-(a-i)*(a-i)) );j>0;j--)
printf(" ");
for(e=1;e<=2*sqrt(I*I-(a-i)*(a-i));e++)
printf("\3");
for(j=(int) ( 2*( I-sqrt(I*I-(a-i)*(a-i)) ) );j>0... |
charlesbjohnson/super_happy_interview_time | rb/lib/ctci/ctci_c2_p1.rb | # frozen_string_literal: true
module CTCI
module C2
module P1
# Write code to remove duplicates from an unsorted linked list.
# FOLLOW UP
# How would you solve this problem if a temporary buffer is not allowed?
def remove_dup!
dups = count_dup
cursor = @head
until... |
vassik/ThingMLTesting | language/thingml/src/org/thingml/xtext/StringLitValueConverter.java | <reponame>vassik/ThingMLTesting
/**
* 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... |
homer0/jimpex | src/middlewares/utils/versionValidator.js | const ObjectUtils = require('wootils/shared/objectUtils');
const { code: statuses } = require('statuses');
const { middlewareCreator } = require('../../utils/wrappers');
/**
* @typedef {import('../../types').ExpressMiddleware} ExpressMiddleware
* @typedef {import('../../types').ExpressRequest} ExpressRequest
* @typ... |
adrienlachaize/dezede | libretto/migrations/0029_add_auteur_ensemble_and_constraints.py | from django.db import models, migrations
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('libretto', '0028_auto_20150526_0012'),
]
operations = [
migrations.AddField(
model_name='auteur',
name='ensemble',
field... |
nowimwrok/zd_devpro | src/main/java/com/thinkgem/jeesite/modules/wlpt/web/activity/ActivityWxgiftController.java | /**
*
*/
package com.thinkgem.jeesite.modules.wlpt.web.activity;
import java.util.Date;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import o... |
DmitriiEskov/deskov | problems/src/test/java/frog/FrogTest.java | package frog;
import org.junit.Test;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.HashSet;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
/**
* This class is for testing the Frog class.
*
* @author <NAME> (<EM... |
jarocho105/pre2 | erp_desktop_all/src_cartera/com/bydan/erp/cartera/presentation/swing/jinternalframes/TipoBienJInternalFrame.java | <gh_stars>1-10
/*
*AVISO LEGAL
© Copyright
*Este programa esta protegido por la ley de derechos de autor.
*La reproduccion o distribucion ilicita de este programa o de cualquiera de
*sus partes esta penado por la ley con severas sanciones civiles y penales,
*y seran objeto de todas las sanciones legales que corre... |
AgoraIO-Community/RTC-Innovation-Challenge-2020 | SDKChallengeProject/powerOperation/app/src/main/java/com/xiaoyang/poweroperation/ui/activity/MainActivity.java | <gh_stars>10-100
package com.xiaoyang.poweroperation.ui.activity;
import android.Manifest;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Bundle;
import android.util.Log;
import a... |
sopra-fs-20-group-15/server | src/main/java/ch/uzh/ifi/seal/soprafs20/Entities/GameEntity.java | <reponame>sopra-fs-20-group-15/server<filename>src/main/java/ch/uzh/ifi/seal/soprafs20/Entities/GameEntity.java
package ch.uzh.ifi.seal.soprafs20.Entities;
import ch.uzh.ifi.seal.soprafs20.GameLogic.*;
import ch.uzh.ifi.seal.soprafs20.exceptions.ConflictException;
import ch.uzh.ifi.seal.soprafs20.service.State;
impor... |
stackql/stackql | internal/test/stackqltestutil/locator.go | package stackqltestutil
import (
"fmt"
"io/ioutil"
"github.com/stackql/stackql/internal/stackql/dto"
"github.com/stackql/stackql/internal/stackql/entryutil"
"github.com/stackql/stackql/internal/stackql/sqlengine"
"github.com/stackql/stackql/internal/stackql/util"
)
func GetRuntimeCtx(providerStr string, output... |
maciejg-git/vue-bootstrap-icons | dist-mdi/mdi/head-remove.js | import { h } from 'vue'
export default {
name: "HeadRemove",
vendor: "Mdi",
type: "",
tags: ["head","remove"],
render() {
return h(
"svg",
{"xmlns":"http://www.w3.org/2000/svg","width":"24","height":"24","viewBox":"0 0 24 24","class":"v-icon","fill":"currentColor","data-name":"mdi-head-remove"... |
alphagov-mirror/pay-ledger | src/main/java/uk/gov/pay/ledger/transaction/model/TransactionFactory.java | package uk.gov.pay.ledger.transaction.model;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.inject.Inject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import uk.gov.pay.ledger.trans... |
elifesciences/elife-xpub | test/pageObjects/demographic.js | <filename>test/pageObjects/demographic.js
import config from 'config'
import { Selector } from 'testcafe'
const demographic = {
url: new RegExp(
`${config.get('pubsweet-server.baseUrl')}/survey/[a-f0-9-]{36}`,
),
question1: Selector('[data-test-id=survey-question-1]'),
question2: Selector('[data-test-id=su... |
Fippe94/openEtG | views/Upgrade.js | <filename>views/Upgrade.js
"use strict";
var px = require("../px");
var gfx = require("../gfx");
var sock = require("../sock");
var Cards = require("../Cards");
var etgutil = require("../etgutil");
var userutil = require("../userutil");
module.exports = function() {
function upgradeCard(card) {
if (!card.isFree()) {... |
TianyiChen/rdcpp-data | data/581.cpp | <gh_stars>0
int IOJFcxH,X2SzN,M ,IMz//
, /*n1h*/Gx0,
nrs
, hT
, x,XCFN8l ,
EJj ,CjRy7B ,tP3M ,KQdZ
, rGkz ,Qw ,
Bm3td, rwv,
isAv,ht , H,Nt , WoL,/*of*/ WC,q1g
, Rpvm ,
jY,
hgC,CN ,/*B4qP*/uf//9G
,
f8kMXAK/**/
, LZ ,//eT
oeqVC,GX,//K
/*2TwaX*/ w//ixdO
,
h1E46 , Y7,//jx
UYgs , tnW
,RC,ROXe ,e ,
Y8,... |
AghLearning/Lemoncode_JS_Bootcamp | Modulo_03/03_Laboratorio/app.js | console.log("Modulo 3: Laboratorio");
console.log("======================");
const product = { count: 3, price: 12.55, type: "ropa" };
const empleado = {
bruto: 35000,
hijos: 2,
pagas: 14
}
function getVat(product) {
switch (product.type) {
case "ropa":
return 10/100;
... |
JoaoCostaIFG/MNUM | Pratical/Class10/tercos-aurea.py | #!/usr/bin/env python3
# These methods won't be on the 2nd mini test (no algorithm implementation)
# so I will verify if they are correct after the test
# (should at least be really close to correct)
from math import sin, sqrt
limm = 1e-5
def f(x):
return sin(x) ** 2
def const_search(xi, xf, h):
print("c... |
Bluscream/scs-sdk-plugin | docs/search/keywords/00740065006c.js | NDSearch.OnPrefixDataLoaded(
"tel",
["Variable", "Function", "Delegate", "Property"],
[
[
"Telemetry",
,
[
[
"SCSSdkClient.Demo.SCSSdkClientDemo",
,
,
,
0,
"File2:SCSSdkClient.Demo/SCSSdkClientDemo.cs:SCSSdkClient.Demo.SCSSd... |
mdvx/TimeBase | java/quantserver/snmpagent/src/main/java/deltix/snmp/mibc/Env.java | <gh_stars>0
package deltix.snmp.mibc;
import deltix.snmp.mibc.errors.*;
import deltix.util.parsers.Location;
import java.util.*;
/**
*
*/
class Env <T extends CompiledEntity> {
private Map <String, T> env =
new HashMap <String, T> ();
public final Collection <T> values () {
... |
jasonrudolph/stratify | lib/stratify.rb | require_dependency 'stratify/activity'
require_dependency 'stratify/collector'
require_dependency 'stratify/collector_coordinator'
|
sharplook/tencentcloud-sdk-java-test | src/main/java/com/tencentcloudapi/sqlserver/v20180328/models/CreateBackupMigrationRequest.java | /*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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
... |
ushakov-av/engocab | core/src/main/java/ru/mipt/engocab/core/model/WordKey.java | package ru.mipt.engocab.core.model;
/**
* @author <NAME>
*/
public class WordKey implements Comparable<WordKey> {
private final String word;
private final PartOfSpeech partOfSpeech;
private final int number;
private String transcription;
public WordKey(String word, PartOfSpeech partOfSpeech, i... |
nobodysshadow/edX_MITx_6.00.1x | week5/lecture9/exampleClasses.py | # -*- coding: utf-8 -*-
"""
Created on Thu Jun 9 08:24:52 2016
@author: WELG
"""
class Animal(object):
def __init__(self, age):
self.age = age
self.name = None
def get_age(self):
return self.age
def get_name(self):
return self.name
def set_age(self, newage):
se... |
dimitriho/protoc-bridge | bridge/src/test/scala/protocbridge/ProtocCacheSpec.scala | package protocbridge
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.must.Matchers
import scala.concurrent.Future
import scala.concurrent.ExecutionContext.Implicits.global
import java.io.File
import scala.concurrent.duration.Duration
import java.nio.file.Files
import scala.concurrent.Await
impo... |
Spacc-Inc/MultiMC5-Cracked | libraries/katabasis/src/Reply.cpp | <filename>libraries/katabasis/src/Reply.cpp
#include <QTimer>
#include <QNetworkReply>
#include "katabasis/Reply.h"
namespace Katabasis {
Reply::Reply(QNetworkReply *r, int timeOut, QObject *parent): QTimer(parent), reply(r) {
setSingleShot(true);
connect(this, &Reply::timeout, this, &Reply::onTimeOut, Qt::Q... |
mgoyal2-atl/atlassian-slack-integration-server | bitbucket-slack-server-integration-plugin/src/main/java/com/atlassian/bitbucket/plugins/slack/notification/RepositoryNotificationTypes.java | <gh_stars>10-100
package com.atlassian.bitbucket.plugins.slack.notification;
import com.atlassian.bitbucket.event.branch.BranchCreatedEvent;
import com.atlassian.bitbucket.event.branch.BranchDeletedEvent;
import com.atlassian.bitbucket.event.commit.CommitDiscussionCommentAddedEvent;
import com.atlassian.bitbucket.even... |
mweber03/quarkus | core/runtime/src/main/java/io/quarkus/runtime/logging/CategoryBuildTimeConfig.java | package io.quarkus.runtime.logging;
import io.quarkus.runtime.annotations.ConfigGroup;
import io.quarkus.runtime.annotations.ConfigItem;
@ConfigGroup
public class CategoryBuildTimeConfig {
/**
* The minimum log level for this category.
* By default all categories are configured with <code>DEBUG</code> m... |
vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/testsuite/gcc.dg/compat/struct-by-value-22_y.c | <reponame>vidkidz/crossbridge
#include <stdarg.h>
#include "compat-common.h"
#include "mixed-struct-defs.h"
#include "mixed-struct-check.h"
#ifdef SKIP_VA
const int test_va = 0;
#else
const int test_va = 1;
#endif
#define T(NAME, FIELDS, TYPE, FIELDINIT, FIELDTEST) \
void \
testva##NAME (int n, ...) \
... |
bianapis/sd-branch-location-operations-v3 | src/main/java/org/bian/dto/CRBranchLocationAdministrativePlanGrantOutputModel.java | <gh_stars>0
package org.bian.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.bian.dto.CRBranchLocationAdministrativePlanGrantOutputModelGrantRequestResponse... |
pvalls/ray-tracer | src/shapes/shape.cpp | <filename>src/shapes/shape.cpp
#include "shape.h"
Shape::Shape(const Matrix4x4 &t_, Material *material_)
{
objectToWorld = t_;
objectToWorld.inverse(worldToObject);
material = material_;
}
const Material& Shape::getMaterial() const
{
return *material;
}
|
dsiroky/rewofs | src/rewofs/client/transport.hpp | /// Client side transport.
///
/// @file
#pragma once
#ifndef TRANSPORT_HPP__WALU1VCO
#define TRANSPORT_HPP__WALU1VCO
#include <thread>
#include "rewofs/client/config.hpp"
#include "rewofs/transport.hpp"
//==========================================================================
namespace rewofs::client {
//======... |
rodrigogs/github-metrics | src/controllers/v1/feed.v1.controller.js | const debug = require('debug')('github-metrics:controllers:v1:feed');
const FeedService = require('../../services/v1/feed.v1.service');
const FeedController = {
/**
* @api {post} /update Github webhook
* @apiVersion 1
* @apiName Github
* @apiGroup Webhook
* @apiPermission any
*
* @apiDescripti... |
Liquid-Zhangliquan/zen-3d | src/core/objects/fog/FogExp2.js | import { FOG_TYPE } from '../../const.js';
import { Color3 } from '../../math/Color3.js';
/**
* Exp2 fog.
* @memberof zen3d
* @constructor
* @param {number} [color=0x000000] - The color of the fog.
* @param {number} [density=0.00025] - The density of the exp2 fog.
*/
function FogExp2(color, density) {
this.fogT... |
ufoscout/jpattern | gwt/src/main/java/com/jpattern/gwt/client/presenter/NullPresenter.java | <gh_stars>0
package com.jpattern.gwt.client.presenter;
import java.util.List;
import java.util.Map;
import com.google.gwt.user.client.ui.HasWidgets;
import com.jpattern.gwt.client.IApplicationProvider;
import com.jpattern.gwt.client.navigationevent.INavigationEvent;
import com.jpattern.gwt.client.navigationevent.INav... |
MontiCore/monticore | monticore-test/02.experiments/scopes/src/test/java/GlobalScopeTest.java | <filename>monticore-test/02.experiments/scopes/src/test/java/GlobalScopeTest.java
/* (c) https://github.com/MontiCore/monticore */
import automata.AutomataMill;
import automata._symboltable.IAutomataGlobalScope;
import automata._symboltable.MyStateDeSer;
import automata._symboltable.MyStateResolver;
import de.monticore... |
amcclead7336/Enterprise_Data_Science_Final | venv/lib/python3.8/site-packages/vsts/git/v4_0/models/git_fork_ref.py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----------------------------------------------------------------... |
ModeenF/UltraDV | UltraDV/Source/AVINodes/Shared/Headers/TMSRLECodec.h | //---------------------------------------------------------------------
//
// File: TMSRLECodec.cpp
//
// Author: <NAME>
//
// Date: 09.18.98
//
// Desc: Microsoft RLE Codec
//
// Copyright ©1998 mediapede Software
//
//---------------------------------------------------------------------
#ifndef __TMSRLECODEC_H__
#de... |
mkbrv/tda | src/main/java/com/pironet/tda/MainMenu.java | <reponame>mkbrv/tda
/*
* MainMenu.java
*
* This file is part of TDA - Thread Dump Analysis Tool.
*
* TDA is free software; you can redistribute it and/or modify
* it under the terms of the Lesser GNU General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (... |
a-ilin/wwaneric | gsmmanager/Modem.h | /*
* The MIT License (MIT)
*
* Copyright (c) 2014-2017 by <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 limitation the rights
* to u... |
AsyncVoid/CustomEnchants | src/me/async/customenchants/effect/armour/HazyEffect.java | package me.async.customenchants.effect.armour;
import org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer;
import org.bukkit.entity.Player;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
import org.bukkit.scheduler.BukkitRunnable;
import me.async.customenchants.Main;
import me.async.customenchants.effect.IEf... |
chaoxyCode/mbg | generator-mybatis-generator-1.4.0/core/mybatis-generator-core/src/main/java/org/mybatis/generator/api/dom/java/render/InnerClassRenderer.java | /**
* Copyright 2006-2020 the original author or authors.
*
* <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
*
* <p>http://www.apache.org/licenses/LICENSE-2.0
*
* <p>Unless required by ... |
mgdigital/Chromaprint.scala | src/core/test/scala/chromaprint/TestHelperSpec.scala | <filename>src/core/test/scala/chromaprint/TestHelperSpec.scala
package chromaprint
import spire.math.UInt
class TestHelperSpec extends AbstractSpec {
behavior of "TestHelper"
it should "count set bits 32" in {
TestHelper.countSetBits(UInt(0x00)) should equal (0)
TestHelper.countSetBits(UInt(0xFF)) shoul... |
mcmellawatt/geode-native | cppcache/src/CacheableEnum.cpp | <filename>cppcache/src/CacheableEnum.cpp
/*
* 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,... |
45258E9F/IntPTI | src/org/sosy_lab/cpachecker/pcc/strategy/partitioning/PartitionChecker.java | <reponame>45258E9F/IntPTI
/*
* IntPTI: integer error fixing by proper-type inference
* Copyright (c) 2017.
*
* Open-source component:
*
* CPAchecker
* Copyright (C) 2007-2014 <NAME>
*
* Guava: Google Core Libraries for Java
* Copyright (C) 2010-2006 Google
*
*
*/
package org.sosy_lab.cpachecker.pcc.strat... |
AdrianaDinca/training | assignment-properties-done/src/main/java/com/crossover/trial/properties/source/URLConfigLoader.java | package com.crossover.trial.properties.source;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import com.crossover.trial.properties.ConfigException;
public class URLConfigLoader extends StringPairStreamLoader {
@Override
public boolean canLoad(String location) {
return location.sta... |
psykulsk/contrail-operator | pkg/certificates/signer_ca_test.go | <filename>pkg/certificates/signer_ca_test.go
package certificates
import (
"crypto/rand"
"crypto/rsa"
"crypto/x509"
"crypto/x509/pkix"
"encoding/pem"
"math/big"
"testing"
"time"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
core "k8s.io/api/core/v1"
meta "k8s.io/apimachinery/... |
wkoszycki/constellation | src/main/scala/org/constellation/primitives/NodeData.scala | package org.constellation.primitives
import java.net.InetSocketAddress
import java.security.KeyPair
import akka.actor.ActorRef
import constellation._
import org.constellation.crypto.KeyUtils
import org.constellation.p2p.PeerRegistrationRequest
import org.constellation.primitives.Schema.NodeState.NodeState
import org.... |
99002562/jasmine_1 | src/test/java/com/gk/test/RunWebAppSuite.java | <filename>src/test/java/com/gk/test/RunWebAppSuite.java
package com.gk.test;
import cucumber.api.CucumberOptions;
import cucumber.api.testng.AbstractTestNGCucumberTests;
@CucumberOptions(features = "target/test-classes", tags = {"@mobile"}, monochrome = true, plugin = {
"pretty", "html:target/cucumber-report... |
gv2011/quarry | bits/src/main/java/com/github/gv2011/jsplit/Splitter.java | package com.github.gv2011.jsplit;
import java.io.InputStream;
import java.io.OutputStream;
import com.github.gv2011.quarry.util.Hash;
public interface Splitter {
Hash split(InputStream in, SliceWriter sliceSink);
void join(Hash ref, SliceReader sliceSource, OutputStream out);
}
|
fmidev/smartmet-library-grid-files | src/grib2/definition/MatrixDataRepresentation.h | <reponame>fmidev/smartmet-library-grid-files
// ***********************************************************************
// DO NOT EDIT THIS FILE !!!
// ***********************************************************************
// This file is automatically generated from the grib_api templates. All
... |
mmghasemi/Vega | platform/com.subgraph.vega.html/src/org/w3c/dom/html2/HTMLObjectElement.java | /*******************************************************************************
* Copyright (c) 2011 Subgraph.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* htt... |
danieljurek/Sia-EventUI | src/services/signalRService.js | <reponame>danieljurek/Sia-EventUI<gh_stars>1-10
import * as signalR from '@aspnet/signalr'
import { getEventActionSet } from 'actions/eventActions'
import * as signalRActions from 'actions/signalRActions'
import config from 'config'
import { getToken } from 'services/authNService'
const defaultBasePath = config.baseU... |
drypot/sobeaut | server/about/about-all.js | 'use strict';
var init = require('../base/init');
var expb = require('../express/express-base');
init.add(function (done) {
expb.core.get('/about/site', function (req, res, done) {
res.render('about/about-site');
});
expb.core.get('/about/company', function (req, res, done) {
res.render('about/about-co... |
giadram/twisted | src/twisted/positioning/test/test_nmea.py | <filename>src/twisted/positioning/test/test_nmea.py
# Copyright (c) 2009-2011 Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Test cases for using NMEA sentences.
"""
import datetime
from operator import attrgetter
from zope.interface import implementer
from twisted.positioning import base, nmea, ipositi... |
sphairas/sphairas-desktop | sphairas-admin-libs/admin-container/src/org/thespheres/betula/admincontainer/action/StudentAction.java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.thespheres.betula.admincontainer.action;
import java.util.HashMap;
import java.util.Map;
import org.thespheres.betula.Stud... |
moutainhigh/taotao-cloud-parent | taotao-cloud-uc/taotao-cloud-uc-api/src/main/java/com/taotao/cloud/uc/api/dto/role/RoleDTO.java | package com.taotao.cloud.uc.api.dto.role;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;
import javax.validation.con... |
lipengliang0705/epeins | src/app/pages/resoures-groups/add/add.controller.js | <filename>src/app/pages/resoures-groups/add/add.controller.js
(function () {
'use strict';
/**
* @ 新增仪表盘
* Author:Veiss Date:2019/6/21
* */
var app = angular.module('LoginsightUiApp.page.resoures-groups');
app.controller("resouresGroupsAddController", resouresGroupsAddController);
re... |
muaddibco/hrrs | serializer-base64/src/main/java/com/vlkan/hrrs/serializer/base64/guava/GuavaBase64Decoder.java | package com.vlkan.hrrs.serializer.base64.guava;
import com.vlkan.hrrs.serializer.base64.Base64Decoder;
import static com.google.common.base.Preconditions.checkNotNull;
public class GuavaBase64Decoder implements Base64Decoder {
private static final GuavaBase64Decoder INSTANCE = new GuavaBase64Decoder();
pri... |
coinninjadev/dropbit-android | app/src/main/java/com/coinninja/coinkeeper/ui/dropbit/me/verified/DisabledDropbitMeDialog.java | package com.coinninja.coinkeeper.ui.dropbit.me.verified;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.graphics.drawable.Drawable;
import android.widget.Button;
import androidx.appcompat.content.res.AppCompa... |
Dachshund77/FlaskEwatson | model/SensorModel.py | from model.PressureModel import PressureModel
from model.HumidityModel import HumidityModel
from model.CO2Model import CO2Model
from model.TemperatureModel import TemperatureModel
import logging
logging.getLogger(__name__)
class SensorModel():
def __init__(self,pressures,humidities,co2,temperatures):
self.pressure... |
ScalablyTyped/SlinkyTyped | m/maxim_mazurok__gapi_dot_client_dot_docs/src/main/scala/typingsSlinky/maximMazurokGapiClientDocs/gapi/client/docs/InlineObjectElement.scala | <filename>m/maxim_mazurok__gapi_dot_client_dot_docs/src/main/scala/typingsSlinky/maximMazurokGapiClientDocs/gapi/client/docs/InlineObjectElement.scala<gh_stars>10-100
package typingsSlinky.maximMazurokGapiClientDocs.gapi.client.docs
import org.scalablytyped.runtime.TopLevel
import org.scalablytyped.runtime.StObject
im... |
dobroslav-atanasov/JavaScript-Fundamentals | 09.ArraysAndMatrices-Lab/04.Find-Element/solution.js | function solve() {
let searchedElement = Number(document.getElementById('num').value);
let array = JSON.parse(document.getElementById('arr').value);
let result = [];
findElement(searchedElement, array);
document.getElementById('result').textContent = result.join(',');
function findElement(searchedElement,... |
edawson/parliament2 | resources/home/dnanexus/root/include/TCernLib.h | // @(#)root/table:$Id$
// Author: <NAME>(<EMAIL>) 25/09/99
/*************************************************************************
* Copyright (C) 1995-2000, <NAME> and <NAME>. *
* All rights reserved. *
* ... |
mobius-software-ltd/iotbroker.cloud-ios-client | iotbroker.cloud-client/Classes/IBStringUtils.h | //
// IBStringUtils.h
// iotbroker.cloud-client
//
// Created by MacOS on 05.10.2018.
// Copyright © 2018 MobiusSoftware. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface IBStringUtils : NSObject
+ (NSString *)toHexString:(NSInteger)number;
@end
NS_ASSUME_NONNULL_EN... |
BlackLight/platypush | platypush/config/__init__.py | import datetime
import importlib
import inspect
import logging
import os
import pathlib
import pkgutil
import re
import socket
import sys
from typing import Optional
import yaml
from platypush.utils import get_hash, is_functional_procedure, is_functional_hook, is_functional_cron
""" Config singleton instance """
_de... |
huanxiongs/easyagent | internal/server/rpc/fake_server.go | <reponame>huanxiongs/easyagent
package rpc
import (
"easyagent/internal/proto"
"golang.org/x/net/context"
)
type fakeRpcServer struct{}
func (rpc *fakeRpcServer) RegisterSidecar(ctx context.Context, request *proto.RegisterRequest) (*proto.RegisterResponse, error) {
return &proto.RegisterResponse{}, nil
}
func (r... |
kelkka/RemoteVR | Server/src/Render/D3DShader.h | #pragma once
#include <d3d11.h>
struct D3DShader
{
public:
D3DShader();
~D3DShader();
static HRESULT CompileShader(const wchar_t* path, const char* type, ID3DBlob** shaderBlob);
ID3D11VertexShader* VS = nullptr;
ID3D11PixelShader* PS = nullptr;
ID3D11InputLayout* InputLayout = nullptr;
privat... |
angryLid/campus-mall | src/main/java/io/github/angrylid/mall/api/annotation/ClientController.java | package io.github.angrylid.mall.api.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.core.annotation.AliasFor;
import org.springframework.web.bind.annotation.RequestMa... |
felixhamel/ift287_tp4 | src/main/java/ligueBaseball/models/MatchModel.java | <gh_stars>0
package ligueBaseball.models;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlRootElement;
import ligueBaseball.entities.DatabaseEntity;
import ligueBaseball.entities.Match;
import ligueBaseball.entities.Official;
import ligueBaseball.exceptions.FailedToRetrieveMatc... |
karmaresearch/takco | takco/evaluate/triples.py | <filename>takco/evaluate/triples.py
from rdflib import URIRef, Literal
TYPE = "http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
LABEL = "http://www.w3.org/2000/01/rdf-schema#label"
def triple_hash(s, p, v):
vnode = Literal(**v) if isinstance(v, dict) else URIRef(v)
return hash((URIRef(s), URIRef(p), vnode))... |
mgadagin/PythonClass | instructors/lessons/numbers/examples/ex2_decimal.py | """
This is from: https://docs.python.org/2/library/decimal.html#module-decimal
"""
import decimal
D = decimal.Decimal # Optional / from FAQ https://docs.python.org/2/library/decimal.html#decimal-faq
D_prec = 6 # Lets start with a precision of 6
print
print "Set precision to 6 decimals."
decimal.getcontext().prec =... |
TolgaKara/prodai | src/team/views.py | from django.shortcuts import render
# Create your views here.
def team(request):
if request.user.is_authenticated:
# This is the access point
return render(request, 'auth/team/index.html')
else:
return redirect('homepage')
|
werdes72/control-plane | components/kyma-metrics-collector/pkg/gardener/shoot/client_test.go | package shoot
import (
"context"
"testing"
kmctesting "github.com/kyma-project/control-plane/components/kyma-metrics-collector/pkg/testing"
"github.com/prometheus/client_golang/prometheus/testutil"
"github.com/onsi/gomega"
k8sErrors "k8s.io/apimachinery/pkg/api/errors"
gardenerv1beta1 "github.com/gardener/ga... |
zdtjss/wform | src/test/java/com/nway/wform/FreemarkerTest.java | package com.nway.wform;
import java.io.PrintWriter;
import java.io.Writer;
import java.util.HashMap;
import java.util.Map;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.sp... |
racoq/TESRAC | parent/client/src/main/java/org/kanonizo/framework/objects/ClassUnderTest.java | <filename>parent/client/src/main/java/org/kanonizo/framework/objects/ClassUnderTest.java
package org.kanonizo.framework.objects;
import java.util.Set;
import org.kanonizo.Framework;
import org.kanonizo.framework.ClassStore;
import org.kanonizo.util.Util;
public class ClassUnderTest {
private Class<?> cut;
... |
syscoin/syscoin-fusion | app/utils/helpers/go-to-block-detail.js | <gh_stars>1-10
// @flow
import openInBrowser from './open-link-in-browser'
export default (blockhash: string) => openInBrowser(process.env.EXPLORER_BLOCK_PATH + blockhash)
|
bio-nim/pbbam | include/pbbam/Accuracy.h | #ifndef PBBAM_ACCURACY_H
#define PBBAM_ACCURACY_H
#include <pbbam/Config.h>
#include <pbcopper/data/Accuracy.h>
namespace PacBio {
namespace BAM {
using Accuracy PBBAM_DEPRECATED = Data::Accuracy;
} // namespace BAM
} // namespace PacBio
#endif // PBBAM_ACCURACY_H
|
abbymapes/step43-2020 | portfolio/src/main/java/com/google/sps/utils/TimeUtils.java | /*
* Copyright 2019 Google 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 in w... |
npocmaka/Windows-Server-2003 | inetcore/mshtml/src/dxt/msft/src/colormanagement.h | <filename>inetcore/mshtml/src/dxt/msft/src/colormanagement.h<gh_stars>10-100
//+-----------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation, 1999
//
// FileName: colormanagement.h
//
// Description: Color management filter transform.
//
// Change Hi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.