repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
GuillermoSaldana/GESPRO_Gestion_de_tareas | Updateposter/app/src/main/java/com/davidmiguel/gobees/apiary/ApiaryPresenter.java | /*
* GoBees
* Copyright (c) 2016 - 2017 <NAME>
*
* 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 3 of the License, or
* any later version.
*
* This program is di... |
liumapp/compiling-jvm | openjdk/jdk/test/sun/security/ssl/javax/net/ssl/NewAPIs/KeyManagerTrustManager.java | <filename>openjdk/jdk/test/sun/security/ssl/javax/net/ssl/NewAPIs/KeyManagerTrustManager.java
/*
* Copyright (c) 2001, 2004, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* ... |
kingrom/jstarcraft-ai | jstarcraft-ai-jsat/src/main/java/com/jstarcraft/ai/jsat/testing/StatisticTest.java |
package com.jstarcraft.ai.jsat.testing;
/**
*
* @author <NAME>
*/
public interface StatisticTest {
public enum H1 {
LESS_THAN {
@Override
public String toString() {
return "<";
}
},
GREATER_THAN {
@Override
p... |
kubohiroya/sqs-util | src/main/java/net/sqs2/lang/JVMUtil.java | <reponame>kubohiroya/sqs-util
package net.sqs2.lang;
public class JVMUtil {
/**
* JVM constant for any Windows 9x JVM
*/
public final static int WINDOWS_9x = 1;
/**
* JVM constant for any Windows NT JVM
*/
public final static int WINDOWS_NT = 2;
/**
* JVM constant for any other platform
*/
public ... |
cincheo/backend4dlite | dlite-applications/dlite-university-case-study/src/main/java/univcs/domain/MajorYearInstance.java | <reponame>cincheo/backend4dlite
package univcs.domain;
import org.cincheo.dlite.Entity;
import java.util.List;
@Entity
public class MajorYearInstance {
private Major major;
private List<CourseYearInstance> requiredCourses;
private List<CourseYearInstance> electiveCourses;
private Year year;
}
|
zljxh/EDU | src/main/java/com/zl/edu/dao/entity/CourseEvaluate.java | package com.zl.edu.dao.entity;
import java.util.Date;
public class CourseEvaluate {
private Long id;
private Long courseid;
private Long stuid;
private String desp;
private Date createtime;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = ... |
TriggerMail/luci-go | common/gcloud/iam/client.go | <filename>common/gcloud/iam/client.go
// Copyright 2016 The LUCI Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unles... |
s6530085/Algorithm4th | src/me/sunmin/algs4/Ch1_02_10.java | <gh_stars>0
package me.sunmin.algs4;
import edu.princeton.cs.algs4.Counter;
import edu.princeton.cs.algs4.StdDraw;
public class Ch1_02_10 {
private class VisualCounter {
private int count;
private int op;
public VisualCounter(int N, int max) {
StdDraw.setXscale(0, N);
StdDraw.setYscale(-Math.abs(max... |
madmax2612/rajyug_solutions | src/components/Sidebar/Sidebar.js | <reponame>madmax2612/rajyug_solutions<gh_stars>0
/*eslint-disable*/
import React from "react";
import classNames from "classnames";
import PropTypes from "prop-types";
import { NavLink } from "react-router-dom";
// @material-ui/core components
import { makeStyles } from "@material-ui/core/styles";
import Drawer from "@... |
baodingfengyun/turbo-rpc | turbo-rpc/src/main/java/rpc/turbo/invoke/JavassistInvoker.java | <reponame>baodingfengyun/turbo-rpc<filename>turbo-rpc/src/main/java/rpc/turbo/invoke/JavassistInvoker.java
package rpc.turbo.invoke;
import javassist.*;
import rpc.turbo.param.EmptyMethodParam;
import rpc.turbo.param.MethodParam;
import rpc.turbo.param.MethodParamClassFactory;
import rpc.turbo.util.SingleClassLoader;
... |
ffonseca1985/jorney-react-redux-konvajs | src/pages/administrator/role/newRole.js | import React from 'react';
import {
Row,
Col,
Card,
CardHeader,
CardBody,
Button,
Form,
FormGroup,
Label,
Container,
Input
} from 'reactstrap';
class NewRole extends React.Component {
render() {
return (
<Container>
<Row>
... |
MahendraSondagar/STMicroelectronics | SensorTile/STM32CubeFunctionPack_SENSING1_V4.0.2/Projects/STM32L476RG-Nucleo/Applications/SENSING1/Src/har_ign_wsdm.c | <reponame>MahendraSondagar/STMicroelectronics
/**
******************************************************************************
* @file har_ign_wsdm.c
* @author AST Embedded Analytics Research Platform
* @date Tue Oct 15 11:25:12 2019
* @brief AI Tool Automatic Code Generator for Embedded NN computi... |
MercurieVV/stryker4s | core/src/test/scala/stryker4s/testutil/MockitoSuite.scala | package stryker4s.testutil
import org.mockito.scalatest.MockitoSugar
import org.scalatest.Suite
trait MockitoSuite extends MockitoSugar {
// Will cause a compile error if MockitoSuite is used outside of a ScalaTest Suite
this: Suite =>
}
|
go-sif/sif | datasource/odbc/odbc_datasource_partition_iterator.go | package odbc
import (
"database/sql"
"sync"
"github.com/go-sif/sif"
"github.com/go-sif/sif/datasource"
)
type odbcPartitionIterator struct {
rows *sql.Rows
hasNext bool
source *DataSource
lock sync.Mutex
endListeners []func()
}
// OnEnd registers a listener which fires when this ... |
ckamtsikis/cmssw | FWCore/Framework/interface/stream/AbilityChecker.h | <filename>FWCore/Framework/interface/stream/AbilityChecker.h
#ifndef FWCore_Framework_AbilityChecker_h
#define FWCore_Framework_AbilityChecker_h
// -*- C++ -*-
//
// Package: FWCore/Framework
// Class : AbilityChecker
//
/**\class edm::stream::AbilityChecker AbilityChecker.h "FWCore/Framework/interface/stream/... |
bencz/smalltalk-jit | vm/Bootstrap.h | #ifndef BOOTSTRAP_H
#define BOOTSTRAP_H
_Bool bootstrap(char *kernelDir);
#endif
|
Joneswn/Baloti | djlang/models.py | import re
from django.db import models
from django.core import serializers
from django.core.cache import cache
from django.conf import settings
from django.utils.translation import get_language
from django.utils.html import escape
from django.utils.safestring import mark_safe
from electeez_sites.models import Site
#... |
Teraguchi0804/WebARSimpleTemplate | development/src/assets/js/_devjs/src/utils/url/Url.js | /**
* fileOverview: urlから値取得、取得した値を操作する系
* Project:
* File: Url
* Date:
* Author:
*/
export default class Url {
constructor() {
}
/**
* クエリ抜き出し
* @returns {*}
*/
getParam() {
var url = location.href;
var param = url.split('?')[1];
if (param==undefined) return undefined;
var p... |
Speedwag00n/RadeonProRenderMayaPlugin | FireRender.Maya.Src/FireRenderDot.cpp | <reponame>Speedwag00n/RadeonProRenderMayaPlugin<filename>FireRender.Maya.Src/FireRenderDot.cpp
/**********************************************************************
Copyright 2020 Advanced Micro Devices, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance... |
tsueygoto/NexIoTStudio | nodes/dashboard/static/js/model/datasource.js | <reponame>tsueygoto/NexIoTStudio<filename>nodes/dashboard/static/js/model/datasource.js
var App = App || {};
App.Model = App.Model || {};
App.Model.Datasource = ( function() {
var Datasource = function( id , config ) {
if( config ) { this.unserialize( config ); }
this.id = id;
this.c... |
0xpr03/VocableTrainer-Android | app/src/main/java/vocabletrainer/heinecke/aron/vocabletrainer/lib/Adapter/ListRecyclerAdapter.java | package vocabletrainer.heinecke.aron.vocabletrainer.lib.Adapter;
import android.content.Context;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.recyclerview.widget.ListAdapter;
import androidx.recyclerview.widget.DiffUt... |
zeknox/gofalcon | falcon/models/registration_i_o_m_event.go | <filename>falcon/models/registration_i_o_m_event.go
// Code generated by go-swagger; DO NOT EDIT.
package models
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"context"
"github.com/go-openapi/errors"
"github.com/go-op... |
bvdsanden/ludus | backend/src/main/java/org/ludus/backend/automaton/MPGA.java | package org.ludus.backend.automaton;
import org.ludus.backend.games.ratio.solvers.policy.RatioGamePolicyIteration;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
/**
* Max-plus game automaton.
* We assume that the nodes for player 1 have a negative index value.
*
... |
asalkeld/rp | hack/db/db.go | package main
import (
"context"
"fmt"
"os"
uuid "github.com/satori/go.uuid"
"github.com/sirupsen/logrus"
"github.com/ugorji/go/codec"
"github.com/jim-minter/rp/pkg/api"
"github.com/jim-minter/rp/pkg/database"
"github.com/jim-minter/rp/pkg/env"
)
func run(ctx context.Context, log *logrus.Entry) error {
for... |
byypipo/Mgcp-Client | src/main/java/com/mgcp/eventpackages/parameters/Announcement.java | package com.mgcp.eventpackages.parameters;
public class Announcement extends BaseEventParameter {
public Announcement(String value) {
super("an", value);
}
@Override
public String getCommentRFC2897() {
return "An announcement to be played. Consists of one or more audio segments";
}
}
|
BuildJet/ebl-api | ebl/tests/fragmentarium/test_fragment_schema.py | from ebl.fragmentarium.application.fragment_schema import FragmentSchema
from ebl.fragmentarium.application.museum_number_schema import MuseumNumberSchema
from ebl.fragmentarium.domain.joins import Join, Joins
from ebl.fragmentarium.domain.museum_number import MuseumNumber
from ebl.tests.factories.fragment import Lemma... |
vagabond1-1983/webUIPractice | src/main/java/com/test/java/webui/api/highLevelSkills/testFlowControl/ImplicitlyWaitDemo.java | package com.test.java.webui.api.highLevelSkills.testFlowControl;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.Assert;
import org.testng.annotations.Test;
import java.util.concurrent.TimeU... |
sajas-nm/medapp-test | node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/Utils.js | /**
* Copyright (c) 2017-present, Ephox, Inc.
*
* This source code is licensed under the Apache 2 license found in the
* LICENSE file in the root directory of this source tree.
*
*/
import { eventPropTypes } from './components/EditorPropTypes';
export var isFunction = function (x) { return typeof x === 'function'... |
larsk21/lean4 | stage0/stdlib/Lean/Elab/Tactic/Conv/Rewrite.c | <filename>stage0/stdlib/Lean/Elab/Tactic/Conv/Rewrite.c
// Lean compiler output
// Module: Lean.Elab.Tactic.Conv.Rewrite
// Imports: Init Lean.Meta.Tactic.Rewrite Lean.Elab.Tactic.Rewrite Lean.Elab.Tactic.Conv.Basic
#include <lean/lean.h>
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pra... |
simonklb/ck8s-cluster | api/aws/flavors_test.go | package aws
import (
"testing"
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/elastisys/ck8s/api"
)
func TestFlavors(t *testing.T) {
clusterType := api.ServiceCluster
clusterName := "foo"
latestImage := supportedImages["us-west-1"][len(supportedImages["us-west-1"])-1]
ty... |
belgianGeek/open-planner | src/js/settings.js | <filename>src/js/settings.js
const settings = () => {
// Show settings on btn click
$('.settingsLink').click(() => {
$('.settings__container').toggleClass('hidden flex');
$('.wrapper').addClass('blur');
});
$('.settings__container').click(function(e) {
if (e.target === this) {
let updatedSett... |
ThisIsNotRocketScience/Syntonovo_PAN | Raspberry/ArpSettings.h | #pragma once
#ifndef ARPSETTINGS_H
#define ARPSETTINGS_H
#ifndef __max
#define __max(x,y) (((x)>(y))?(x):(y))
#endif
#ifndef __min
#define __min(x,y) (((x)<(y))?(x):(y))
#endif
#ifdef WIN32
#define PACKED
#else
#define PACKED __attribute__((packed))
#endif
typedef enum ClockSource_t : char
{
Clock1,
Clock2,
Cl... |
ycyangchun/TemplateAppProject | app/src/main/java/com/zhcw/lib/BASE64/DesUtil.java | <filename>app/src/main/java/com/zhcw/lib/BASE64/DesUtil.java<gh_stars>0
package com.zhcw.lib.BASE64;
import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;
public class DesUtil {
public static final String password = "<PASSWORD>";
public static String encryptDES(String encryptString, String enc... |
rewriting/tom | utils/eclipse-plugin/plugin/src/fr/loria/eclipse/jtom/editor/util/TomColorManager.java | <reponame>rewriting/tom
/*
TOM - To One Matching Compiler
Copyright (C) 2004 Inria
Nancy, France.
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 ... |
brycewang-microsoft/iot-sdks-e2e-fx | test-runner/conftest.py | <reponame>brycewang-microsoft/iot-sdks-e2e-fx
# http://localhost:8099, Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for
# full license information.
import pytest
import sys
import logging
from adapters import adapter_config
from dump_object impor... |
fahadnasrullah109/KalturaClient-Android | KalturaClient/src/main/java/com/kaltura/client/types/ReoccurringVendorCredit.java | <filename>KalturaClient/src/main/java/com/kaltura/client/types/ReoccurringVendorCredit.java
// ===================================================================================================
// _ __ _ _
// | |/ /__ _| | |_ _ _ _ _ __ _
// ... |
kuhjunge/NeoDatabaseDesigner | NeoDBDesigner/src/main/java/de/mach/tools/neodesigner/inex/nexport/pdf/PdfConf.java | <reponame>kuhjunge/NeoDatabaseDesigner<filename>NeoDBDesigner/src/main/java/de/mach/tools/neodesigner/inex/nexport/pdf/PdfConf.java
/* Copyright (C) 2018 <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 i... |
jordandavidson/MuckyFoot-UrbanChaos | fallen/outro/mf.h | <reponame>jordandavidson/MuckyFoot-UrbanChaos<gh_stars>100-1000
//
// Functions that act on the imported meshes
//
#ifndef _MF_
#define _MF_
#include "imp.h"
//
// Loads all the textures for the mesh.
//
void MF_load_textures(IMP_Mesh *im);
//
// Backs up the mesh, so it can be rotated later on.
//
void MF_bac... |
eaglezzb/rsdc | Sankore-AppToolkit/src/gui/SyntaxHighlighter.cpp | <reponame>eaglezzb/rsdc<filename>Sankore-AppToolkit/src/gui/SyntaxHighlighter.cpp
#include <QTextEdit>
#include "SyntaxHighlighter.h"
#include "core/globalDefs.h"
SyntaxHighlighter::SyntaxHighlighter(QObject *parent):QSyntaxHighlighter(parent)
{
QSyntaxHighlighter::setDocument(dynamic_cast<QTextEdit*>(parent)->doc... |
Gpinchon/TabGraph | TabGraph/src/Driver/OpenGL/Shader/Program.cpp | <gh_stars>1-10
/*
* @Author: gpinchon
* @Date: 2021-04-13 22:39:37
* @Last Modified by: gpinchon
* @Last Modified time: 2021-04-30 02:02:37
*/
#include "Driver/OpenGL/Shader/Program.hpp"
#include "Driver/OpenGL/Shader/Global.hpp"
#include "Driver/OpenGL/Texture/Texture.hpp"
#include "Driver/OpenGL/Texture/... |
hiranp/ExpectIt | expectit-core/src/test/java/net/sf/expectit/SshLocalhostNoEchoExample.java | <reponame>hiranp/ExpectIt<filename>expectit-core/src/test/java/net/sf/expectit/SshLocalhostNoEchoExample.java
package net.sf.expectit;
/*
* #%L
* ExpectIt
* %%
* Copyright (C) 2014 <NAME> and contributors
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except i... |
ZachBray/kgw-aeron-poc | server/src/main/java/org/kaazing/gateway/server/test/GatewayRule.java | <gh_stars>100-1000
/**
* Copyright 2007-2016, Kaazing Corporation. 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
... |
DNAstack/wdl4j | src/main/java/com/dnastack/wdl4j/lib/exception/WdlValidationError.java | <reponame>DNAstack/wdl4j<filename>src/main/java/com/dnastack/wdl4j/lib/exception/WdlValidationError.java
package com.dnastack.wdl4j.lib.exception;
public class WdlValidationError extends Exception {
public WdlValidationError() {
super();
}
public WdlValidationError(String s) {
super(s);
... |
AlexRogalskiy/DevArtifacts | master/jenkins-rest-api-master/jenkins-rest-api-master/JenkinsRest/src/main/java/org/fkunnen/jenkinsrestapi/buildnotification/BuildInfo.java | <reponame>AlexRogalskiy/DevArtifacts
package org.fkunnen.jenkinsrestapi.buildnotification;
public class BuildInfo {
private String full_url;
private int number;
private String phase;
private String status;
private String url;
private SCMInfo scm;
public String getFull_url() {
ret... |
ahmeshaf/ctakes | ctakes-dictionary-lookup/src/main/java/org/apache/ctakes/dictionary/lookup/filter/MetaDataPostLookupFilterImpl.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"... |
nitrologic/emu | mame/src/mame/includes/seta.h | /***************************************************************************
-= Seta Hardware =-
***************************************************************************/
#define __uPD71054_TIMER 1
/*----------- defined in video/seta.c -----------*/
extern UINT16 *seta_vram... |
khall001/testsystem | src/am57xx/mputest.c | /* SPDX-License-Identifier: MIT */
/*
* Author: <NAME> <<EMAIL>>
* Date: 2016
*/
#include <stdint.h>
#include <stdio.h>
#include <mpu9250.h>
#include <spi.h>
#include <FreeRTOS.h>
#include <task.h>
#include <devs.h>
void mputest_task(void *data) {
struct mpu9250 *mpu = data;
TickType_t lastWakeUpTime = xTaskGetTi... |
athenagroup/brxm | site-toolkit/components/core/src/main/java/org/hippoecm/hst/core/container/ResourceServingValve.java | /*
* Copyright 2008-2015 <NAME>.V. (http://www.onehippo.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... |
embl-communications/science-in-school | advanced-custom-fields-pro/pro/assets/build/js/_acf-setting-clone.js | (function($){
/**
* CloneDisplayFieldSetting
*
* Extra logic for this field setting
*
* @date 18/4/18
* @since 5.6.9
*
* @param void
* @return void
*/
var CloneDisplayFieldSetting = acf.FieldSetting.extend({
type: 'clone',
name: 'display',
render: function(){
// vars
var di... |
harper-carroll/kibana | src/ui/public/agg_types/__tests__/param_types/_string.js | import _ from 'lodash';
import expect from 'expect.js';
import ngMock from 'ngMock';
import AggTypesParamTypesBaseProvider from 'ui/agg_types/param_types/base';
import AggTypesParamTypesStringProvider from 'ui/agg_types/param_types/string';
module.exports = describe('String', function () {
var paramName = 'json_test... |
Anlon-Burke/vespa | config-model/src/test/java/com/yahoo/searchdefinition/processing/BoldingTestCase.java | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.searchdefinition.processing;
import com.yahoo.searchdefinition.SchemaBuilder;
import com.yahoo.searchdefinition.AbstractSchemaTestCase;
import com.yahoo.searchdefinition.parser.ParseException;
imp... |
saewoonam/thorium_daq_uqd | zmqLockServer.py | <filename>zmqLockServer.py
import zmq
import time
import sys
import psutil
import threading
import logging
import logzero
from logzero import logger
logzero.loglevel(logging.INFO)
port = "5556"
context = zmq.Context()
socket = context.socket(zmq.REP)
socket.bind("tcp://*:%s" % port)
LOCKS = {'default': [False, 0]}
... |
verma-kunal/Data-Structures-Algortihms-ToolBox | code-practice/CodePrac./src/Arrays/ArrayListEx.java | package Arrays;
import java.util.*;
public class ArrayListEx {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
ArrayList<Integer> list = new ArrayList<>(10);
}
}
|
rikvb/camel | components/camel-spring-rabbitmq/src/main/java/org/apache/camel/component/springrabbit/ListenerContainerFactory.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 may ... |
LucasLCarreira/Python | ex034.py | # Exercício Python 034
# Pergunte o salário do funcionario
# Salários > 1250, aumento de 10%
# Salários <= 1250, aumento de 15%
s = int(input('Digite o salário do funcionário: '))
if s > 1250:
sr = s * (1 + 0.1)
print('O salário reajustado é R$ {:.2f}'.format(sr))
else:
sr = s * (1 + 0.15)
print('O sal... |
seukjung/sentry-custom | tests/sentry/utils/test_dates.py | <gh_stars>10-100
from __future__ import absolute_import
import datetime
import pytz
from sentry.utils.dates import (
to_datetime,
to_timestamp,
)
def test_timestamp_conversions():
value = datetime.datetime(2015, 10, 1, 21, 19, 5, 648517, tzinfo=pytz.utc)
assert int(to_timestamp(value)) == int(value.... |
Impelon/PyGVisuals | pygvisuals/widgets/listbox.py | <reponame>Impelon/PyGVisuals
# --- imports
# pygame imports
import pygame
# local imports
from .selection_text_widget import *
from ..designs import getDefaultDesign
from ..util import inherit_docstrings_from_superclass
# constants
VIEWPOINT = 'v'
class Listbox(SelectionTextWidget):
"""
Listbox for displa... |
jack-flash/MysticalAgriculture | src/main/java/com/blakebr0/mysticalagriculture/block/InferiumCropBlock.java | package com.blakebr0.mysticalagriculture.block;
import com.blakebr0.mysticalagriculture.api.crop.Crop;
import com.blakebr0.mysticalagriculture.api.farmland.IEssenceFarmland;
import com.blakebr0.mysticalagriculture.config.ModConfigs;
import net.minecraft.core.BlockPos;
import net.minecraft.server.level.ServerLevel;
imp... |
ScalablyTyped/SlinkyTyped | s/s3-streams/src/main/scala/typingsSlinky/s3Streams/mod.scala | package typingsSlinky.s3Streams
import typingsSlinky.awsSdk.mod.S3
import typingsSlinky.awsSdk.s3Mod.CreateMultipartUploadRequest
import typingsSlinky.awsSdk.s3Mod.GetObjectRequest
import typingsSlinky.node.streamMod.Readable
import typingsSlinky.node.streamMod.Writable
import org.scalablytyped.runtime.StObject
import... |
epam/edp-ddm-liquibase-ddm-ext | src/test/java/com/epam/digital/data/platform/liquibase/extension/sqlgenerator/core/DdmPartialUpdateGeneratorTest.java | /*
* Copyright 2021 EPAM Systems.
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... |
dos1/card10-firmware | lib/sdk/Libraries/BTLE/documentation/html/Cordio_Stack_Cordio_Profiles/search/groups_3.js | var searchData=
[
['device_20information_20profile',['Device Information Profile',['../group___d_e_v_i_c_e___i_n_f_o_r_m_a_t_i_o_n___p_r_o_f_i_l_e.html',1,'']]],
['device_20information_20service',['Device Information Service',['../group___d_e_v_i_c_e___i_n_f_o_r_m_a_t_i_o_n___s_e_r_v_i_c_e.html',1,'']]],
['dm_20c... |
wh00sh/Tanda-DAPP | node_modules/mdi-material-ui/DiceD4Outline.js | <gh_stars>0
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _createIcon = _interopRequireDefault(require("./util/createIcon"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var _default = (0, _create... |
GlobalLogicLatam/futbol-android | Library/futbol/src/main/java/com/globallogic/futbol/core/strategies/mock/StrategyDbMock.java | <reponame>GlobalLogicLatam/futbol-android<gh_stars>0
package com.globallogic.futbol.core.strategies.mock;
import android.os.Handler;
import com.globallogic.futbol.core.interfaces.analyzers.IStrategyDbAnalyzer;
import com.globallogic.futbol.core.operations.Operation;
import com.globallogic.futbol.core.responses.Strate... |
bsteker/bdf2 | bdf2-rapido/src/main/java/com/bstek/bdf2/rapido/builder/impl/ArgumentsBuilder.java | <gh_stars>1-10
package com.bstek.bdf2.rapido.builder.impl;
import java.util.HashMap;
import java.util.Map;
import org.dom4j.Element;
import org.dom4j.tree.BaseElement;
import com.bstek.bdf2.rapido.builder.IBuilder;
import com.bstek.bdf2.rapido.domain.ComponentInfo;
import com.bstek.bdf2.rapido.domain.EntityField;
im... |
angelowolf/sew | PersistenciaPatronDAOEleccion/src/DAO/SQLServer/SingletonPoolConnectionSQLServer.java | <gh_stars>1-10
/*
* 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 DAO.SQLServer;
import DAO.MyException;
import java.io.FileInputStream;
import java.sql.Connection;
im... |
ycdtosa/sbgECom | common/interfaces/sbgInterfaceSerialUnix.c | <reponame>ycdtosa/sbgECom
// Standard headers
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <termios.h>
#include <sys/ioctl.h>
// sbgCommonLib headers
#include <sbgCommon.h>
#include <interfaces/sbgInterfaceSerial.h>
//---------------------------------------... |
osamhack2020/APP_TookSamPoom_Navy3Generals | app/src/main/java/kr/co/softcampus/tooksampoom/Utils/DataNormalizer.java | <reponame>osamhack2020/APP_TookSamPoom_Navy3Generals
package kr.co.softcampus.tooksampoom.Utils;
import com.google.mlkit.vision.pose.PoseLandmark;
import java.util.ArrayList;
import java.util.List;
public class DataNormalizer {
private static final int _leftShoulderInd = 11;
private static final int _leftHi... |
awchisholm/superset | superset/advanced_data_type/types.py | <filename>superset/advanced_data_type/types.py<gh_stars>1-10
# 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... |
LondonOktober/bootstrap-vue | docs/layouts/default.js | <filename>docs/layouts/default.js
import Footer from '~/components/footer'
import Header from '~/components/header'
export default {
name: 'BVDDefaultLayout',
functional: true,
render: h => [h(Header), h('nuxt'), h(Footer)]
}
|
jasonwee/videoOnCloud | src/java/play/learn/java/design/intercepting_filter/Filter.java | <reponame>jasonwee/videoOnCloud
package play.learn.java.design.intercepting_filter;
public interface Filter {
/**
* Execute order processing filter.
*/
String execute(Order order);
/**
* Set next filter in chain after this.
*/
void setNext(Filter filter);
/**
* Get next filter in chain after this.
*... |
kdima001/mesh | core/src/main/java/com/gentics/mesh/core/endpoint/admin/consistency/ConsistencyCheckResult.java | package com.gentics.mesh.core.endpoint.admin.consistency;
import java.util.ArrayList;
import java.util.List;
import com.gentics.mesh.core.rest.admin.consistency.InconsistencyInfo;
import com.gentics.mesh.core.rest.admin.consistency.InconsistencySeverity;
import com.gentics.mesh.core.rest.admin.consistency.RepairActio... |
AmazingFM/UpperPS | Upper_1/Classes/View/cells/UPActivityCell.h | <reponame>AmazingFM/UpperPS
//
// UPActivityCell.h
// Upper
//
// Created by 海通证券 on 16/5/18.
// Copyright © 2016年 <EMAIL>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "UPActivityCellItem.h"
#import "ActivityData.h"
@interface UPTimeLocationView : UIView
- (void)setTime:(NSString *)time andLocation:(N... |
fittner/SiMA | MasonExtentions/src/physics2D/physicalObject/clsStationaryObject2D.java | /**
*
*/
package physics2D.physicalObject;
import interfaces.itfEntity;
import interfaces.itfEntityInspectorFactory;
import interfaces.itfGetEntity;
import interfaces.itfSetupFunctions;
import java.awt.image.BufferedImage;
import physical2d.physicalObject.datatypes.eFacialExpression;
import physical2d.physicalO... |
rkalman/InvenTree | InvenTree/company/admin.py | from django.contrib import admin
from import_export.admin import ImportExportModelAdmin
from import_export.resources import ModelResource
from import_export.fields import Field
import import_export.widgets as widgets
from .models import Company
from .models import SupplierPart
from .models import SupplierPriceBreak
f... |
isaacgn/5l-XplorR-Android-App | app/src/main/java/com/amaze/filemanager/ui/notifications/NotificationConstants.java | <filename>app/src/main/java/com/amaze/filemanager/ui/notifications/NotificationConstants.java
/*
* Copyright (C) 2014-2020 <NAME> <<EMAIL>>, <NAME> <<EMAIL>>,
* <NAME><<EMAIL>>, <NAME> <airwave209gt at gmail.com> and Contributors.
*
* This file is part of Amaze File Manager.
*
* Amaze File Manager is free softwar... |
jjssobrinho/FemCourseEigenClass2021 | headers/Poisson.h | //
// Poisson.h
// FemCourse
//
// Created by <NAME> on 24/04/18.
//
#ifndef Poisson_h
#define Poisson_h
#include "MathStatement.h"
///\cond
#include <functional>
///\endcond
/**
@brief Implements a poisson problem in 1-, 2- or 3-dimensions
@ingroup mathstatement
*/
class Poisson : public MathStatement
{
/... |
tingshao/catapult | tracing/third_party/oboe/test/specs/parseResponseHeaders.unit.spec.js | <reponame>tingshao/catapult
describe("parsing response headers", function() {
// linefeed carriage return
var lfcr = "\u000d\u000a";
it('can parse an empty string', function(){
var parsed = parseResponseHeaders('');
expect(parsed).toEqual({})
})
it('can parse a single header... |
figassis/isogen | generate/iso20022/seev/MeetingEntitlementNotificationV05.go | <gh_stars>1-10
package seev
import (
"encoding/xml"
"github.com/figassis/bankiso/iso20022"
)
type Document00300105 struct {
XMLName xml.Name `xml:"urn:iso:std:iso:20022:tech:xsd:seev.003.001.05 Document"`
Message *MeetingEntitlementNotificationV05 `xml:"MtgEntitlmntNtfctn"`
}
func (d *... |
jiangshide/sdk | eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/ApkInstallManager.java | <reponame>jiangshide/sdk
/*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Eclipse Public License, Version 1.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.eclipse.org/org/documents/e... |
lzw5399/tumbleweed | src/util/error.go | /**
* @Author: lzw5399
* @Date: 2021/3/27 13:33
* @Desc:
*/
package util
import (
"fmt"
"github.com/pkg/errors"
)
// ErrorType is the type of an error
type ErrorType uint
const (
NoType ErrorType = iota
BadRequest // 400
NotFound // 404
Forbidden ... |
PranavaKP/PranavaCodez | mods/minecraft/ParrotCraft/ParrotCraftFabric/src/main/java/com/pranavakp/parrotcraftfabric/registry/init/ModBlocks.java | package com.pranavakp.parrotcraftfabric.registry.init;
import com.pranavakp.parrotcraftfabric.ParrotCraftFabric;
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
import net.fabricmc.fabric.api.tool.attribute.v1.FabricToolTags;
import net.minecraft.block.Block;
import net.minecraft.block.Mate... |
concord-consortium/rigse | rails/app/policies/home_policy.rb | <reponame>concord-consortium/rigse
class HomePolicy < ApplicationPolicy
def admin?
manager_or_researcher_or_project_researcher?
end
def recent_activity?
teacher?
end
def authoring?
teacher? || manager_or_project_admin?
end
def authoring_site_redirect?
teacher? || manager_or_project_adm... |
EwaFengler/RoughSetDiviz | RoughSet_Drsa_Ranking_Approximations/src/pl/poznan/put/roughset/reduct/CriteriaIndicesMask.java | <filename>RoughSet_Drsa_Ranking_Approximations/src/pl/poznan/put/roughset/reduct/CriteriaIndicesMask.java
package pl.poznan.put.roughset.reduct;
import java.util.stream.IntStream;
public class CriteriaIndicesMask {
int mask;
int noOfCriteria;
public CriteriaIndicesMask(int mask, int noOfCriteria) {
... |
Prvyx/bilibiliWeb | java-bilibili/src/main/java/com/prvyx/controller/user/UserStarDirC.java | package com.prvyx.controller.user;
import com.prvyx.model.other.NewStarDir;
import com.prvyx.model.postpojo.NewUserStarDir;
import com.prvyx.model.domain.UserStarDir;
import com.prvyx.service.user.UserStarDirS;
import com.prvyx.utils.SendUtils;
import com.prvyx.utils.entity.DataResult;
import com.prvyx.utils.entity.Da... |
MrDelik/core | tests/components/monoprice/test_config_flow.py | """Test the Monoprice 6-Zone Amplifier config flow."""
from unittest.mock import patch
from serial import SerialException
from homeassistant import config_entries, data_entry_flow
from homeassistant.components.monoprice.const import (
CONF_SOURCE_1,
CONF_SOURCE_4,
CONF_SOURCE_5,
CONF_SOURCES,
DOMA... |
TinkerEdgeR-Android/external_dagger2 | core/src/main/java/dagger/internal/MembersInjectors.java | <filename>core/src/main/java/dagger/internal/MembersInjectors.java
/*
* Copyright (C) 2014 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/license... |
josephwinston/hana | include/boost/hana/detail/tuple_cartesian_product.hpp | /*!
@file
Defines `boost::hana::detail::tuple_cartesian_product`.
@copyright <NAME> 2015
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_HANA_DETAIL_TUPLE_CARTESIAN_PRODUCT_HPP
#define BOOST_HANA_DETAIL_TUPLE_C... |
francisfs/AndroidStudioProjects | findmydevice-master/app/src/main/java/de/nulide/findmydevice/utils/Ringer.java | <reponame>francisfs/AndroidStudioProjects
package de.nulide.findmydevice.utils;
import android.content.Context;
import android.content.Intent;
import android.media.AudioAttributes;
import android.media.AudioManager;
import android.media.Ringtone;
import android.media.RingtoneManager;
import android.net.Uri;
import and... |
evandersondev/navedex | src/components/Loading/styles.js | <gh_stars>0
import styled from 'styled-components'
export const Container = styled.div`
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
display: flex;
align-items: center;
justify-content: center;
z-index: 99;
`
export const Spinner = styled.div`
width: 45px;
height: 45px;
bord... |
opencomputeproject/HWMgmt-DeviceMgr-PSME | PSME/common/agent-framework/include/agent-framework/validators/checkers/validity_checker.hpp | /*!
* @header{License}
* @copyright Copyright (c) 2016-2017 Intel Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless r... |
Shakhzadov/resource-registry-final | web/modules/map_module.js | (function(){
'use strict';
angular.module('restApp.map', []);
})();
|
artintexo/exkit | ekbase/plaza/msg100desc.h | <filename>ekbase/plaza/msg100desc.h
#pragma once
#include "description.h"
class Msg100Desc : public Description {
public:
Msg100Desc();
size_t code;
size_t message;
};
|
Nikita-tech-writer/ignite-4 | modules/raft/src/test/java/org/apache/ignite/raft/jraft/storage/snapshot/local/LocalSnapshotCopierTest.java | <gh_stars>0
/*
* 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... |
agwlvssainokuni/springapp3 | corelib/fundamental-mail/src/main/java/cherry/fundamental/mail/queue/FileAttachmentStore.java | /*
* Copyright 2019 agwlvssainokuni
*
* 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 ... |
fador/kvazaar | src/extras/crypto.h | #ifndef CRYPTO_H_
#define CRYPTO_H_
#include "global.h"
#include "../cfg.h"
#include <stdio.h>
#include <math.h>
#ifdef KVZ_SEL_ENCRYPTION
#define STUBBED extern
#else
#define STUBBED static
#endif
#define AESEncryptionStreamMode 1
#ifdef __cplusplus
extern "C" {
#endif
typedef struct crypto_handle_t crypto_handl... |
fura2/competitive-programming-library | library/template.hpp | #pragma once
#include <cassert>
#include <cctype>
#include <chrono>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <algorithm>
#include <deque>
#include <functional>
#include <iostream>
#include <limits>
#include <map>
#include <numeric>
#include <q... |
si-ran/breakout | frontend/src/main/scala/com/neo/sk/breaker/front/breaker/WebSocketClient.scala | <gh_stars>0
package com.neo.sk.breaker.front.breaker
import com.neo.sk.breaker.front.common.Routes
import com.neo.sk.breaker.front.utils.byteObject.MiddleBufferInJs
import com.neo.sk.breaker.shared.ptcl.protocol.BreakerEvent._
import org.scalajs.dom
import org.scalajs.dom.raw._
class WebSocketClient(
... |
h-hys/rk2108_202012_SDK | third_party/audio/audio_server/extcodec/opencore-opus/silk/NLSF2A.c | /***********************************************************************
Copyright (c) 2006-2011, Skype Limited. 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 retai... |
majk1/netbeans-mmd-plugin | mind-map/mind-map-model/src/main/java/com/igormaznitsa/mindmap/model/logger/LoggerFactory.java | /*
* Copyright 2015-2018 <NAME>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
sjamboro/kogito-runtimes | integration-tests/integration-tests-quarkus-norest/src/test/java/org/kie/kogito/quarkus/jbpm/ProcessTest.java | /*
* Copyright 2021 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 a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.