repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
INT2ECALL/capsule8 | test/functional/container.go | <gh_stars>10-100
// Copyright 2017 Capsule8, 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 ... |
27crags/scaffolding_extensions | test_site/app/models/dm_officer.rb | class DmOfficer
include DataMapper::Resource
property :id, Serial
property :name, String
property :position_id, Integer
storage_names[:default] = 'officers'
belongs_to :position, :model => 'DmPosition', :child_key => [:position_id], :required => false
has n, :groups, :model => 'DmGroup', :through => Res... |
PaulBryden/ContextualTriggers | contextualtriggers/src/main/java/uk/ac/strath/contextualtriggers/conditions/GymNearbyCondition.java | package uk.ac.strath.contextualtriggers.conditions;
import com.google.android.libraries.places.api.model.Place;
import com.google.android.libraries.places.api.model.PlaceLikelihood;
import uk.ac.strath.contextualtriggers.data.PlacesData;
import uk.ac.strath.contextualtriggers.managers.IDataManager;
/**
* A conditio... |
snpmyn/MyApplication | app/src/main/java/customview/point/PointActivity.java | package customview.point;
import com.example.myapplication.R;
import base.BaseActivity;
/**
* @decs: 点页
* @author: zsp
* @date: 2020/7/3 10:24
*/
public class PointActivity extends BaseActivity {
/**
* 布局资源 ID
*
* @return 布局资源 ID
*/
@Override
protected int layout... |
mcc-github/blockchain | common/flogging/logger.go | /*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package flogging
type Logger interface {
Critical(args ...interface{})
Criticalf(format string, args ...interface{})
Debug(args ...interface{})
Debugf(format string, args ...interface{})
Error(args ...interface{})
Errorf(format ... |
012huang/wormhole | rider/mad-server/src/main/scala/edp/mad/schedule/MadScheduler.scala | <gh_stars>0
/*-
* <<
* wormhole
* ==
* Copyright (C) 2016 - 2017 EDP
* ==
* 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
*
* Unl... |
SimpleGraduationProjects/MobileMallManagementSystem | src/com/java/controller/ClientController.java | <gh_stars>0
package com.java.controller;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.json.JSONObject;
import org.springframework.beans.factory.annotatio... |
AJAkimana/ivugurura-ui | src/views/AdminSetting.js | import React, { useState, useEffect } from 'react';
import { AdminPageHeader } from '../components/common';
import { Row, Container, Col } from 'react-bootstrap';
import { Announcement } from '../components/models';
import { AdminCommuniques, MenuSetting, Page } from '../components';
import { useSelector } from 'react-... |
DeepAQ/Autumn | autumn-http/autumn-http-common/src/main/java/cn/imaq/autumn/http/protocol/AutumnHttpRequest.java | <gh_stars>10-100
package cn.imaq.autumn.http.protocol;
import lombok.Builder;
import lombok.Data;
import java.net.SocketAddress;
import java.util.List;
import java.util.Map;
@Data
@Builder
public class AutumnHttpRequest {
private String method;
private String path;
private String protocol;
private... |
nablarch/nablarch-fw-jaxrs | src/test/java/nablarch/fw/jaxrs/integration/app/IntegrationTestResource.java | <reponame>nablarch/nablarch-fw-jaxrs<filename>src/test/java/nablarch/fw/jaxrs/integration/app/IntegrationTestResource.java
package nablarch.fw.jaxrs.integration.app;
import nablarch.core.db.connection.ConnectionFactory;
import nablarch.core.db.connection.TransactionManagerConnection;
import nablarch.core.db.statement.... |
xakep666/konfig | loader/klconsul/consulloader.go | <filename>loader/klconsul/consulloader.go
package klconsul
import (
"bytes"
"errors"
"fmt"
"os"
"time"
"github.com/hashicorp/consul/api"
"github.com/lalamove/konfig"
"github.com/lalamove/konfig/parser"
"github.com/lalamove/konfig/watcher/kwpoll"
"github.com/lalamove/nui/nlogger"
"github.com/lalamove/nui/ns... |
multitudes/Python_am_Freitag | files/screenshots/edx python screenshots/src6/weeks/1/overflow.py | # Integer overflow
from time import sleep
# Iteratively double i
i = 1
while True:
print(i)
i *= 2
sleep(1)
|
specter01wj/LAB-Udemy | Backend/JAVA/Data Structure and Algorithms Analysis - Job Interview/DataStructureAndAlgorithms-master/src/com/graph/BFSGraph.java | package com.graph;
import java.util.LinkedList;
import java.util.Queue;
import java.util.Stack;
public class BFSGraph {
int size;
adjList[] array;
public BFSGraph(int size) {
this.size=size;
array= new adjList[ this.size];
for(int i=0;i<size;i++){
array[i]=new adjList();
array[i].head=null;... |
gisonyeung/myblog | server/app/backstage/js/blog.js | <filename>server/app/backstage/js/blog.js
$(function() {
var baseurl = 'http://' + window.location.host;
var gb = GlobalModule();
gb.modal.tip.init();
gb.modal.loading.init();
loadBlogsByPage();
fetchAllPage();
/*
点击页码,换页
*/
$('#paging1').on('click', '.jump-page', function() {
var page = $(this).attr... |
bugnolwy/bugnolwy-sys | bugnolwy-sys/sys-web/src/main/java/cn/bugnolwy/controller/SysMenuController.java | <filename>bugnolwy-sys/sys-web/src/main/java/cn/bugnolwy/controller/SysMenuController.java<gh_stars>1-10
package cn.bugnolwy.controller;
import cn.bugnolwy.model.SysMenu;
import cn.bugnolwy.service.SysMenuService;
import cn.bugnolwy.vo.JsonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImp... |
artem-sidorenko/chagen | datasource/connectors/gitlab/internal/testclient/generators.go | <filename>datasource/connectors/gitlab/internal/testclient/generators.go<gh_stars>1-10
/*
Copyright 2019 <NAME> <<EMAIL>>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://w... |
garganti/info2_oop_unibg | esercizicompleti/21/orario/ProvaOrari.java | package orario;
import java.util.Collections;
import java.util.Vector;
public class ProvaOrari {
public static void main(String[] args) {
Ora now = new OraHM(10, 30);
System.out.println(now);
Ora mezzanotte = new OraHM(0, 0);
System.out.println(mezzanotte);
//
Ora now2 = new OraSec((10*60 + 40) *60);
... |
xiankgx/U-2-Net | evaluate.py | <reponame>xiankgx/U-2-Net
import argparse
import glob
import os
import matplotlib.pyplot as plt
import numpy as np
from skimage import io, transform
from sklearn.metrics import fbeta_score, mean_absolute_error
from tqdm import tqdm
def iou(gt, pred, thresh=0.5):
if thresh:
gt = (gt >= thresh).astype(np.f... |
BAHome/BAKit | Example/BAKit/Class/Define/BADefine_APPVersion.h | <reponame>BAHome/BAKit<gh_stars>10-100
//
// BADefine_APPVersion.h
// BAKit
//
// Created by 孙博岩 on 2019/1/31.
// Copyright © 2019 boai. All rights reserved.
//
#ifndef BADefine_APPVersion_h
#define BADefine_APPVersion_h
#define BADefine_APPVersion_VersionString [[NSBundle mainBundle] objectForInfoDictionaryKey:... |
anilkumarkodali/lti-ready-virtual-classroom-with-amazon-chime-sdk | lti-components/web/amplify/backend/function/chimeEventApiAuthorizer/src/utils/Principal.js | const rasha = require(`rasha`);
const got = require(`got`);
const jwt = require(`jsonwebtoken`);
const Principal = class {
__token;
get token() { return this.__token; }
__context = {};
get context() { return this.__context; }
__source = {};
get source() { return this.__source; }
get titl... |
MoritzGruber/mercurius | test/options.js | 'use strict'
const proxyquire = require('proxyquire')
const sinon = require('sinon')
const { test } = require('tap')
const Fastify = require('fastify')
const schema = `
type User {
name: String!
password: String!
}
type Query {
read: [User]
}
`
const resolvers = {
Query: {
read: async (_, obj) => {
... |
logix5/Blockyduino-para-MRTDuino | blocks/RotaryEncoder.js | <gh_stars>1-10
/**
* @license
* Visual Blocks Editor
*
* Copyright 2012 Google Inc.
* https://developers.google.com/blockly/
*
* 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
*
* h... |
ZhenwenHe/gtl-java | common/src/main/java/cn/edu/cug/cs/gtl/index/rtree/RTreeVariant.java | <reponame>ZhenwenHe/gtl-java
package cn.edu.cug.cs.gtl.index.rtree;
/**
* Created by ZhenwenHe on 2016/12/22.
*/
public enum RTreeVariant {
RV_LINEAR,
RV_QUADRATIC,
RV_RSTAR
}
|
googleapis/googleapis-gen | grafeas/v1/grafeas-v1-py/grafeas/grafeas_v1/types/package.py | <reponame>googleapis/googleapis-gen
# -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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
#
# ... |
hiroaki-ishikawa/freertps | systems/samv71_xplained_ultra-metal/pin.h | #ifndef PIN_H
#define PIN_H
#include <stdbool.h>
#include <stdint.h>
#include "component/component_pio.h"
// ported from the STM32 stuff... not yet all implemented
void pin_set_mux(Pio *pio, const unsigned pin_idx,
const unsigned function_idx);
void pin_enable_pullup(Pio *pio, const unsigned pin_idx,
const ... |
lonesafe/roubSite | RoubSiteSmarty4j/src/main/java/com/roubsite/smarty4j/Smarty4j.java | package com.roubsite.smarty4j;
//import jargs.gnu.CmdLineParser;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.Reader;
import java.io.Writer;
/**
* Smarty4j Command Tools
*
* @version 1.5.0... |
Bedework/exchange-ws-client | src/test/java/com/microsoft/exchange/ExchangeAutodiscoverServiceTest.java | /**
* See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Board of Regents of the University of Wisconsin System
* licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in compliance with the L... |
gautamkmr/caffe2 | third_party/aten/src/ATen/Retainable.h | <gh_stars>0
#pragma once
#include <atomic>
namespace at {
// base class for refcounted things, allows for collects of generic
// refcounted objects that include tensors
struct Retainable {
Retainable(): refcount(1) {}
void retain() {
++refcount;
}
void release() {
if(--refcount == 0) {
delete t... |
Programming-Systems-Lab/dyclink | dyclink/src/test/java/cc/expbase/DecompilerTest.java | package cc.expbase;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.CommandLineParser;
import org.apache.commons.cli.DefaultParser;
import org.apache.commons.cli.Option;
import org.apache.commons.cli.Options;
import cern.colt.Arrays;
public class DecompilerTest {
public void formethod() ... |
humeng12/HuMengApp | HMMerchant/Controllers/BaseController/BaseViewController.h | //
// BaseViewController.h
// HMMerchant
//
// Created by HRT on 16/4/18.
// Copyright © 2016年 HRT. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface BaseViewController : UIViewController
{
NSOperationQueue * mpOperationQueue;
}
@property(assign,nonatomic)BOOL isNavIcon;
@property CGFloat ios7hei... |
ilin-in/OP | hookflash-core/core/hookflash/services/RUDPPacket.h | <gh_stars>1-10
/*
Copyright (c) 2012, SMB Phone Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of cond... |
Zeitsperre/flyingpigeon | flyingpigeon/tests/test_cdo.py | <reponame>Zeitsperre/flyingpigeon
import pytest
from .common import TESTDATA
from flyingpigeon.utils import local_path
from cdo import Cdo
cdo = Cdo()
def test_sinfo():
cdo.sinfo(input=local_path(TESTDATA['cmip5_tasmax_2006_nc']))
|
MichelleTanzil/personal_portfolio_v2 | src/components/Timeline/MarketingTimeline.js | <reponame>MichelleTanzil/personal_portfolio_v2
import React from "react"
import {
VerticalTimeline,
VerticalTimelineElement,
} from "react-vertical-timeline-component"
import "react-vertical-timeline-component/style.min.css"
import { FaBriefcase, FaRegWindowClose } from "react-icons/fa"
const MarketingTimeline = (... |
JaneliaSciComp/jacs | jacs2-services/src/test/java/org/janelia/jacs2/asyncservice/alignservices/CMTKAlignmentProcessorTest.java | <gh_stars>0
package org.janelia.jacs2.asyncservice.alignservices;
import com.google.common.collect.ImmutableList;
import org.janelia.jacs2.asyncservice.common.ComputationTestHelper;
import org.janelia.jacs2.asyncservice.common.JacsServiceResult;
import org.janelia.jacs2.asyncservice.common.ServiceArg;
import org.janel... |
samueleallegranza/polimi-info | ESE-13/ex2.c | <reponame>samueleallegranza/polimi-info<filename>ESE-13/ex2.c<gh_stars>0
/*
<NAME> @ Polimi
Fondamenti di informatica - Esercitazione
> Esercizio:
Scrivere un sottoprogramma selectitems che ricevuta in
ingresso una lista per la gestione di valori interi e
due interi min e max, crea u... |
NimBuzz01/Project-Miika_SDGP | miika_nlu/venv/Lib/site-packages/torch/include/ATen/ops/convolution_backward.h | #pragma once
// @generated by tools/codegen/gen.py from Function.h
#include <ATen/Context.h>
#include <ATen/DeviceGuard.h>
#include <ATen/TensorUtils.h>
#include <ATen/TracerMode.h>
#include <ATen/core/Generator.h>
#include <ATen/core/Reduction.h>
#include <ATen/core/Tensor.h>
#include <c10/core/Scalar.h>
#include <c... |
zfang399/LeetCode-Problems | 517.cpp | class Solution {
public:
int findMinMoves(vector<int>& machines) {
vector<int> presum;
presum.push_back(0);
for(int i=0;i<machines.size();i++){
presum.push_back(presum.back()+machines[i]);
}
if(presum.back()%machines.size()!=0) return -1;
int avg=presum.ba... |
dirkluijk/infobip-spring-data-querydsl | infobip-spring-data-jdbc-annotation-processor-common/src/main/java/com/infobip/spring/data/jdbc/annotation/processor/CustomExtendedTypeFactory.java | <gh_stars>10-100
package com.infobip.spring.data.jdbc.annotation.processor;
import com.google.common.base.CaseFormat;
import com.querydsl.apt.Configuration;
import com.querydsl.apt.ExtendedTypeFactory;
import com.querydsl.codegen.*;
import com.querydsl.codegen.utils.model.Type;
import com.querydsl.codegen.utils.model.... |
Sypheos/lorawan-stack | pkg/identityserver/contact_info_registry.go | <filename>pkg/identityserver/contact_info_registry.go
// Copyright © 2019 The Things Network Foundation, The Things Industries B.V.
//
// 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
//
// ... |
cuiyuemin365/books | spring3.x/chapter11/test/com/baobaotao/dao/TestTopicDao.java | <filename>spring3.x/chapter11/test/com/baobaotao/dao/TestTopicDao.java
package com.baobaotao.dao;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.support.rowset.SqlRowSet;
import org.springframework.test.Abstra... |
ghoslation/opencsv | src/test/java/com/opencsv/bean/mocks/AnnotatedMockBeanCustom.java | <reponame>ghoslation/opencsv
/*
* Copyright 2016 <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 ap... |
arsdever/opengl_tutorials | src/components/sample_meshes/triangle_mesh.cpp | #include <profiler.hpp>
#include "triangle_mesh.hpp"
namespace gl
{
using namespace vertex_attributes;
triangle_mesh::triangle_mesh()
{
auto scoped_profiler_instance = prof::profiler::profile(object().lock()->id() + "::" + __func__);
_vertices.reserve(3);
_vertices.push_back(
... |
olivervbk/java-webapplication-example | src/main/java/com/github/olivervbk/dao/UserDao.java | <filename>src/main/java/com/github/olivervbk/dao/UserDao.java
package com.github.olivervbk.dao;
import org.hibernate.Criteria;
import org.hibernate.SessionFactory;
import org.hibernate.criterion.Restrictions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Rep... |
shreejitverma/GeeksforGeeks | Competitive Programming/Bit Manipulation/first_set_bit.cpp | // { Driver Code Starts
//Initial Template for C++
#include<bits/stdc++.h>
using namespace std;
// } Driver Code Ends
//User function Template for C++
/* function to find position of first set
bit in the given number
* n: given input for which we want to get
the position of first set bit
*/
unsigne... |
apsdehal/qunit-migrate | src/ast/rules/anonymous-function.js | var builder = require('recast').types.builders;
var constants = require('../constants');
var path = require('path');
var utils = require('../utils');
var optionNames = require('../option-names');
var isAnonymous = require('../checks/is-anonymous');
module.exports = AnonymousFunction;
function AnonymousFunction() {
... |
zealoussnow/chromium | remoting/protocol/audio_reader.cc | <reponame>zealoussnow/chromium
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "remoting/protocol/audio_reader.h"
#include "base/bind.h"
#include "base/callback_helpers.h"
#include "net/so... |
sympower/protobuf-javame | protobuf-javame-tests/src/test/java/net/jarlehansen/protobuf/javame/input/DelimitedInputStreamTest.java | <reponame>sympower/protobuf-javame
package net.jarlehansen.protobuf.javame.input;
import java.io.IOException;
import java.io.InputStream;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class DelimitedInputStreamTest {
private DelimitedInp... |
markcorrea/comandasmart-v2-frontend | src/pages/Report/CancelationsPerUser/index.js | import React, {useState, useEffect, useCallback, useMemo, memo} from 'react'
import {Button, Datetimepicker, Paper, ResponsiveTable, Select, SectionBox} from 'components'
import {useLoader} from 'components/FadeLoader'
import {useStore} from 'store'
import services from 'services'
import formatMoney from 'utils/for... |
chr0m3/boj-codes | 1/0/10828/10828.py | <filename>1/0/10828/10828.py
import sys
input = sys.stdin.readline
count = int(input())
stack = list()
for i in range(0, count):
command = input().split()
if command[0] == 'push':
stack.append(int(command[1]))
elif command[0] == 'pop':
if len(stack):
print(stack.pop())
... |
zhaomengxiao/MITK | Modules/US/USModel/mitkUSVideoDeviceCustomControls.h | /*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... |
asakura-yoshifumi/publication20200818 | at210/fun_old.py | #!/usr/bin/env python
################################################################################
# MIT License
#
# Copyright (c) 2021 <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 Sof... |
axetroy/go-server | internal/app/user_server/controller/transfer/to.go | <gh_stars>100-1000
// Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
package transfer
import (
"encoding/json"
"errors"
"github.com/axetroy/go-server/internal/app/user_server/controller/finance"
"github.com/axetroy/go-server/internal/app/user_server/controller/wallet"
"github.com/axetroy/go-server... |
Peter-Liang/LeetCode-Solutions | solutions/2020-May-30-day-leetcoding-challenge/5.First-Unique-Character-in-a-String.js | <reponame>Peter-Liang/LeetCode-Solutions<filename>solutions/2020-May-30-day-leetcoding-challenge/5.First-Unique-Character-in-a-String.js
/**
* @param {string} s
* @return {number}
*/
var firstUniqChar = function (s) {
const chars = Array.prototype.reduce.call(
s,
(p, c) => {
if (p[c] == null) p[c] = ... |
jonseddon/primavera-dmt | scripts/utils/fix_failed_et.py | <reponame>jonseddon/primavera-dmt
#!/usr/bin/env python
"""
fix_failed_et.py
Elastic tape retrievals occasionally fail when a significant way through a
large retrieval. This script identfies files in this specified
retrieval, checks their checksum and if they are fine then copies them into
the DRS directory structure ... |
JDevlieghere/MAS | rinsim/src/main/java/rinde/sim/examples/pdptw/gradientfield/Truck.java | package rinde.sim.examples.pdptw.gradientfield;
import java.util.Map;
import javax.annotation.Nullable;
import rinde.sim.core.TimeLapse;
import rinde.sim.core.graph.Point;
import rinde.sim.core.model.pdp.PDPModel;
import rinde.sim.core.model.pdp.PDPModel.ParcelState;
import rinde.sim.core.model.pdp.PDPMode... |
GliderWinchItems/embed | svn_sensor/sensor/se1/trunk/tick_pod6.c | /******************** (C) COPYRIGHT 2013 **************************************
* File Name : tick_pod.c
* Hackerees : deh
* Date First Issued : 02/16/2013
* Board : STM32F103VxT6_pod_mm
* Description : Post SYSTICK interrupt handling
**********************************************... |
zyzisyz/OJ | hdu_oj/1003.cpp | /*************************************************************************
> File Name: 1003.cpp
> Author: <NAME>
> Mail: <EMAIL>
> Created Time: Tue 31 Dec 2019 06:19:59 PM CST
************************************************************************/
#include<iostream>
#include<vector>
using namespace std;
v... |
mcuadrai/votekin | src/main/java/com/forum/domain/Region.java | package com.forum.domain;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="region")
public class Region implements Serializable {
/**
*
*/
private static final long serialVersionU... |
kiranmai-sfdev/aura | aura-components/src/test/components/uitest/input_themeingTest/input_themeingTestRenderer.js | ({
afterRender : function(cmp){
cmp.find("inputTextBoxFocusable").getElement().focus();
cmp.find("inputTextBoxFocusable").getElement().select();
this.superAfterRender();
}
}) |
SNL-GMS/GMS-PI7-OPEN | gms-common/java/gms/shared/mechanisms/object-storage-distribution/osd-channelsegments-repository-service/src/main/java/gms/shared/mechanisms/objectstoragedistribution/coi/channelsegments/service/Application.java | package gms.shared.mechanisms.objectstoragedistribution.coi.channelsegments.service;
import gms.shared.mechanisms.objectstoragedistribution.coi.channelsegments.repository.ChannelSegmentsRepository;
import gms.shared.mechanisms.objectstoragedistribution.coi.channelsegments.repository.jpa.ChannelSegmentsRepositoryJpa;
i... |
fossabot/evemonk | db/migrate/20191015202332_create_eve_icons.rb | <gh_stars>10-100
# frozen_string_literal: true
class CreateEveIcons < ActiveRecord::Migration[6.0]
def change
create_table :eve_icons do |t|
t.integer :icon_id
t.text :description
t.string :icon_file
t.boolean :obsolete
t.string :backgrounds, array: true
t.string :foregrounds,... |
jarocho105/pre2 | erp_desktop_all/src_nomina/com/bydan/erp/nomina/presentation/swing/jinternalframes/TipoColegioProfeDetalleFormJInternalFrame.java | <filename>erp_desktop_all/src_nomina/com/bydan/erp/nomina/presentation/swing/jinternalframes/TipoColegioProfeDetalleFormJInternalFrame.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 cualquier... |
4everalone/nano | sample/webservice/eBayDemoApp/src/com/ebay/trading/api/SearchStandingStatusCodeType.java | // Generated by xsd compiler for android/java
// DO NOT CHANGE!
package com.ebay.trading.api;
/**
*
* The Search standing that you have earned.
*
*/
public enum SearchStandingStatusCodeType {
/**
*
* Your listings may receive higher placement in search results
* that are sorted by Best Match.
... |
willp-bl/verify-frontend | app/helpers/redirect_to_idp_warning_helper.rb | module RedirectToIdpWarningHelper
def other_ways(idp)
requirement_text = idp.no_docs_requirement
if requirement_text.empty?
return ''
end
link_text = t('hub.redirect_to_idp_warning.other_ways_link', transaction: other_ways_description)
link = link_to(link_text, other_ways_to_access_service_p... |
matyasrichter/prisma-client-py | src/prisma_cleanup/__main__.py | <filename>src/prisma_cleanup/__main__.py<gh_stars>0
import sys
from ._cleanup import main
main(*sys.argv[1:])
|
owennewo/kfserving | vendor/github.com/tensorflow/tensorflow/tensorflow/core/common_runtime/gpu/gpu_bfc_allocator_test.cc | /* Copyright 2015 The TensorFlow Authors. 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
Unless required by applicable law or a... |
cuisongliu/go-zero | core/stores/redis/redis_test.go | <filename>core/stores/redis/redis_test.go<gh_stars>1-10
package redis
import (
"errors"
"io"
"testing"
"time"
"github.com/alicebob/miniredis"
red "github.com/go-redis/redis"
"github.com/stretchr/testify/assert"
)
func TestRedis_Exists(t *testing.T) {
runOnRedis(t, func(client *Redis) {
_, err := NewRedis(c... |
amedama41/bulb | test/v13/multipart/group_stats_test.cpp | #define BOOST_TEST_DYN_LINK
#include <canard/net/ofp/v13/message/multipart/group_stats.hpp>
#include <boost/test/unit_test.hpp>
#include "../../test_utility.hpp"
namespace ofp = canard::net::ofp;
namespace v13 = ofp::v13;
namespace protocol = v13::protocol;
namespace multipart = v13::messages::multipart;
namespace {... |
jonassignoreti/Python-CursoemVideo | venv/Exercises/ex109.py | '''Modifique as funções que foram criadas no desafio 107 para que elas aceitem um um parâmetro a mais,
informando se o valor retornado por elas vai ser ou não formatado pela função moeda(),
desenvolvida no desafio 108.'''
from pacotes import moedas
p = float(input('Digite o preço R$: '))
print(f'A metade de {moedas.mo... |
wwdok/mask2json | convertmask/labelme_sub/cli/draw_json.py | <reponame>wwdok/mask2json<gh_stars>10-100
'''
lanhuage: python
Descripttion:
version: beta
Author: xiaoshuyui
Date: 2020-10-16 10:08:47
LastEditors: xiaoshuyui
LastEditTime: 2020-10-16 11:00:53
'''
#!/usr/bin/env python
import argparse
import base64
import json
import os
import sys
import imgviz
import matplotlib.py... |
inspire12/robolectric | robolectric/src/test/java/org/robolectric/internal/bytecode/testing/AnInstrumentedClassWithoutToStringWithSuperToString.java | <gh_stars>10-100
package org.robolectric.internal.bytecode.testing;
import org.robolectric.annotation.internal.Instrument;
@Instrument
public class AnInstrumentedClassWithoutToStringWithSuperToString extends AnUninstrumentedClassWithToString {
}
|
rafasantos/matchandtrade-api | src/main/java/com/matchandtrade/rest/v1/transformer/AuthenticationTransformer.java | <filename>src/main/java/com/matchandtrade/rest/v1/transformer/AuthenticationTransformer.java
package com.matchandtrade.rest.v1.transformer;
import com.matchandtrade.persistence.entity.AuthenticationEntity;
import com.matchandtrade.rest.v1.json.AuthenticationJson;
public class AuthenticationTransformer extends Transfo... |
KuntzeM/Medienprojekt-WebServer | public/filemanager/scripts/CodeMirror/test/phantom_driver.js | var page = require('webpage').create();
page.open("http://localhost:3000/test/index.html", function (status) {
if (status != "success") {
console.log("page couldn't be loaded successfully");
phantom.exit(1);
}
waitFor(function () {
return page.evaluate(function () {
var ... |
zealoussnow/chromium | net/test/android/javatests/src/org/chromium/net/test/EmbeddedTestServerService.java | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.net.test;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
/**
* A {@link android.app.Service... |
kkauder/spack | var/spack/repos/builtin/packages/geoip-api-c/package.py | <reponame>kkauder/spack<filename>var/spack/repos/builtin/packages/geoip-api-c/package.py
# Copyright 2013-2021 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 Geoip... |
dnvriend/serverless-test | aws-lambda-handler/src/main/scala/com/github/dnvriend/ops/FunctionalOps.scala | <reponame>dnvriend/serverless-test<gh_stars>1-10
package com.github.dnvriend.ops
import com.github.dnvriend.ops.Functional.DisjunctionNel
import scala.language.implicitConversions
import scalaz.Scalaz._
import scalaz._
object Functional {
type DisjunctionNel[A, B] = Disjunction[NonEmptyList[A], B]
}
trait Functio... |
tohodog/QSHttp | qshttp/src/main/java/org/song/http/framework/util/QSHttpCallback.java | package org.song.http.framework.util;
import android.app.Activity;
import android.app.Fragment;
import android.os.Build;
import android.util.Log;
import android.view.View;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONException;
import org.song.http.framewor... |
izycheva/daisy | src/main/scala/daisy/analysis/SpecsProcessingPhase.scala | <reponame>izycheva/daisy<filename>src/main/scala/daisy/analysis/SpecsProcessingPhase.scala
// Copyright 2017 MPI-SWS, Saarbruecken, Germany
package daisy
package analysis
import scala.collection.immutable.{Map, Seq}
import scala.util.parsing.combinator._
import lang.Trees._
import tools.{Interval, PartialInterval, R... |
chi-w-ng/flatbuffers | tests/union_vector/Rapunzel.java | <reponame>chi-w-ng/flatbuffers<filename>tests/union_vector/Rapunzel.java<gh_stars>1000+
// automatically generated by the FlatBuffers compiler, do not modify
import java.nio.*;
import java.lang.*;
import java.util.*;
import com.google.flatbuffers.*;
@SuppressWarnings("unused")
public final class Rapunzel extends Stru... |
brunolauze/openpegasus-providers-old | src/Providers/UNIXProviders/UsersCredential/UNIX_UsersCredential_VMS.hxx | <reponame>brunolauze/openpegasus-providers-old<filename>src/Providers/UNIXProviders/UsersCredential/UNIX_UsersCredential_VMS.hxx
#ifdef PEGASUS_OS_VMS
#ifndef __UNIX_USERSCREDENTIAL_PRIVATE_H
#define __UNIX_USERSCREDENTIAL_PRIVATE_H
#endif
#endif
|
raoulvdberge/storagecraft | src/main/java/com/refinedmods/refinedstorage/apiimpl/autocrafting/CraftingPatternFactoryException.java | <gh_stars>100-1000
package com.refinedmods.refinedstorage.apiimpl.autocrafting;
import net.minecraft.network.chat.Component;
public class CraftingPatternFactoryException extends Exception {
private final transient Component errorMessage;
public CraftingPatternFactoryException(Component errorMessage) {
... |
darconeous/coapblaster | src/test/java/com/google/iot/coap/RemoteServerTest.java | /*
* Copyright (C) 2018 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 ... |
Internet-of-People/ApertusVR | plugins/jsAPI/nodeJsExtension/wrappers/ApeJsBindNodeImpl.h | <reponame>Internet-of-People/ApertusVR
/*MIT License
Copyright (c) 2016 <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 use,... |
drdrej/nodejs-json-get | impl/io/split.js | <gh_stars>1-10
exports.exec = function( ) {
var streams = require('event-stream');
return streams.through(function write(data) {
console.log( "-- exec split(data)" );
var _ = require( 'underscore' );
if(!_.isArray( data ) ) {
console.log( "-- skip split(data)... |
yzq992778484/MVCHelper | app/src/main/java/com/shizhefei/test/view/adapters/multitype/provider/MessageProvider.java | package com.shizhefei.test.view.adapters.multitype.provider;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.shizhefei.test.view.adapters.multitype.Message;
import com.shizhefei.view.... |
jishminor/model_analyzer | tests/common/test_result_collector.py | # Copyright (c) 2020-2021, NVIDIA 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
#
# Unless required by a... |
roroclaw/wyedu | src/main/java/com/cloud9/biz/dao/mybatis/TchScheduleCourseOpenMapper.java | package com.cloud9.biz.dao.mybatis;
import com.cloud9.biz.models.TchScheduleCourseOpen;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface TchScheduleCourseOpenMapper {
int deleteByPrimaryKey(String id);
int insert(TchScheduleCourseOpen record);
int insertSelective(TchS... |
peterfab9845/WebCheckers | src/main/java/com/webcheckers/appl/ai/AIManager.java | package com.webcheckers.appl.ai;
public class AIManager {
private static int AI_NUM = 0;
private static int PIECE_ID = 0;
private static final boolean debugging = true;
private static final boolean TRAINING = true;
public static String getName(){
AI_NUM++;
return "AI" + AI_NUM;
... |
Plaristote/Boots | include/Boots/Network/serializer.hpp | <reponame>Plaristote/Boots<filename>include/Boots/Network/serializer.hpp
#ifndef _NETWORK_SERIALIZER_HPP
# define _NETWORK_SERIALIZER_HPP
# include "../Utils/serializer.hpp"
namespace Network
{
class Socket;
void WritePacket(Utils::Packet& packet, Network::Socket* socket);
}
#endif
|
mmore500/dishtiny | dishpylib/pydecorators/__init__.py | <gh_stars>10-100
from .announce_job_decorator_factory import announce_job_decorator_factory
from .only_every_nth_stint_decorator_factory import only_every_nth_stint_decorator_factory
from .try_except_missing_data_decorator_factory import try_except_missing_data_decorator_factory
# adapted from https://stackoverflow.co... |
liquidg3/pong-pi | node_modules/openvg-canvas/lib/matrix.js | <reponame>liquidg3/pong-pi
/*jslint indent: 2, node: true */
"use strict";
var matrix = module.exports;
var create = matrix.create = function () {
return new Float32Array(9);
};
var m = matrix.m = function (a, b, c, d, e, f, g, h, k) {
var r = new Float32Array(9);
r[0] = a; r[1] = b; r[2] = c;
r[3] = d; r[4]... |
MetOffice/cmip6-dreq-interface | dqi/lib/dqi/walker.py | <filename>dqi/lib/dqi/walker.py
# (C) British Crown Copyright 2016, Met Office.
# See LICENSE.md in the top directory for license details.
#
# A walker for the dreq
#
__all__ = ['MissingRule', 'MutantRule', 'MissingAttribute', 'BadLink',
'walk_dq', 'walk_thing', 'walk_into', 'walk_linked',
'retu... |
5cript/SimpleJSON | parse/jsd_unordered_map.hpp | #pragma once
#include "jsd_core.hpp"
#include <unordered_map>
namespace JSON
{
template <typename ValueT, typename HashT = std::hash <std::string>, class PredT = std::equal_to <std::string>,
typename AllocT = std::allocator <std::pair <const std::string, ValueT>>>
void parse(std::unordered_map<std:... |
nowifi4u/Commando | src/types/string/string-reset.js | <reponame>nowifi4u/Commando
const baseString = require('./baseString');
module.exports = baseString('reset', ['reset']);
|
Coolzyh/Leetcode | [162] Find Peak Element/162.find-peak-element.java | /*
* @lc app=leetcode id=162 lang=java
*
* [162] Find Peak Element
*/
// @lc code=start
class Solution {
public int findPeakElement(int[] nums) {
if (nums.length == 1) return 0;
int n = nums.length;
int left = 0, right = n-1;
while (left < right) {
int mid = left + (... |
iganna/lspec | ugene/src/corelibs/U2View/src/util_dna_assembly/BuildIndexDialog.cpp | <reponame>iganna/lspec<filename>ugene/src/corelibs/U2View/src/util_dna_assembly/BuildIndexDialog.cpp
/**
* UGENE - Integrated Bioinformatics Tools.
* Copyright (C) 2008-2012 UniPro <<EMAIL>>
* http://ugene.unipro.ru
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of t... |
sezero/windows-sdk-headers | Include/v7.1/persist.h | <filename>Include/v7.1/persist.h
//-----------------------------------------------------------------------------
//
// File: persist.h
//
// Copyright: Copyright (c) Microsoft Corporation
//
// Contents: MSPersist external constants GUIDS and other things users need
//
// Comments:
//
//--------------------... |
hausea/legend-pure | legend-pure-runtime-java-engine-compiled/src/main/java/org/finos/legend/pure/runtime/java/compiled/metadata/CompiledCoreInstanceBuilder.java | // Copyright 2020 <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 to in writ... |
bl4ckic3/fsfw | timemanager/TimeStamperIF.h | <gh_stars>0
#ifndef FRAMEWORK_TIMEMANAGER_TIMESTAMPERIF_H_
#define FRAMEWORK_TIMEMANAGER_TIMESTAMPERIF_H_
#include "../returnvalues/HasReturnvaluesIF.h"
/**
* A class implementing this IF provides facilities to add a time stamp to the
* buffer provided.
* Implementors need to ensure that calling the method is thre... |
VladGordienko28/FluorineEngine-I | Src/Engine/FrCore.cpp | <filename>Src/Engine/FrCore.cpp
/*=============================================================================
FrCore.cpp: Various engine core functions.
Copyright Jun.2016 <NAME>.
=============================================================================*/
#include "Engine.h"
//
// Globals.
//
CDebugOutp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.