repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
starzeng/kityminder | spec/import.js | /**
* Created by dongyancen on 13-12-27.
*/
///import core/kityminder;
///import core/utils;
///import core/command;
///import core/node;
///import core/module;
///import core/event;
///import core/minder;
///import core/minder.data.compatibility;
///import core/minder.data;
///import core/minder.event;
///import cor... |
HelixOS/cts | tests/tests/graphics/src/android/graphics/drawable/cts/ColorDrawableTest.java | /*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
MRgzhen/yanyu-fast | yanyu-swagger/src/main/java/com/github/mrgzhen/swagger/constant/SwaggerConstant.java | package com.github.mrgzhen.swagger.constant;
/**
* @author yanyu
*/
public interface SwaggerConstant {
String[] SWAGGER_IGNORING_URL = new String[]{"/v2/api-docs", //swagger api json
"/swagger-resources/configuration/ui",//用来获取支持的动作
"/swagger-resources/**",//用来获取api-docs的URI
... |
JoelLefkowitz/yummy-cereal | tests/unit_tests/utils/test_annotations.py | <gh_stars>1-10
from dataclasses import dataclass
from typing import Dict, List
from yummy_cereal.utils.annotations import (
cls_is_annotated,
field_is_generic_dict,
field_is_generic_list,
get_cls_annotations,
)
@dataclass
class AnnotatedClass:
name: str
names_list: List[str]
names_dict: D... |
Devyani606/chatwoot | spec/jobs/inboxes/fetch_imap_email_inboxes_job_spec.rb | <reponame>Devyani606/chatwoot
require 'rails_helper'
RSpec.describe Inboxes::FetchImapEmailInboxesJob, type: :job do
let(:account) { create(:account) }
let(:imap_email_channel) do
create(:channel_email, imap_enabled: true, imap_address: 'imap.gmail.com', imap_port: 993, imap_email: '<EMAIL>',
... |
intelie/tinymap | src/test/java/net/intelie/tinymap/support/SetAsserts.java | <reponame>intelie/tinymap
package net.intelie.tinymap.support;
import net.intelie.tinymap.base.IndexedSet;
import java.io.IOException;
import java.util.*;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
public class SetAsserts {
public ... |
Wassaf-Shahzad/micromasters | static/js/entry/style_public.js | <reponame>Wassaf-Shahzad/micromasters<gh_stars>10-100
__webpack_public_path__ = `${SETTINGS.public_path}` // eslint-disable-line no-undef, camelcase
// jquery imported here since style_public.js is loaded before public.js
import $ from "jquery"
window.jQuery = $
window.$ = $
import "../../scss/public_style/web-icons.... |
PedroMoreira87/java | src/geek_exercicios/secao05/E13.java | <gh_stars>0
package secao05;
import java.util.Scanner;
public class E13 {
public static void main(String[] Args){
int num;
Scanner scan = new Scanner(System.in);
System.out.println("Digite um número inteiro positivo par: ");
num = scan.nextInt();
if (num > 0 & num % 2 ==... |
npocmaka/Windows-Server-2003 | net/tcpip/winsock/wshtcpip.c | <gh_stars>10-100
/*++
Copyright (c) 1992 Microsoft Corporation
Module Name:
WshTcpip.c
Abstract:
This module contains necessary routines for the TCP/IP Windows Sockets
Helper DLL. This DLL provides the transport-specific support necessary
for the Windows Sockets DLL to use TCP/IP as a ... |
yurirocha15/coding_practice | src/leetcode_1675_minimize_deviation_in_array.py | <reponame>yurirocha15/coding_practice
# @l2g 1675 python3
# [1675] Minimize Deviation in Array
# Difficulty: Hard
# https://leetcode.com/problems/minimize-deviation-in-array
#
# You are given an array nums of n positive integers.
# You can perform two types of operations on any element of the array any number of times:... |
jkmishra/prizy | components/camel-cxf/src/main/java/org/apache/camel/component/cxf/WSDLServiceFactoryBean.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... |
nnkwrik/fangxianyu | goods-service/src/main/java/io/github/nnkwrik/goodsservice/service/IndexService.java | package io.github.nnkwrik.goodsservice.service;
import io.github.nnkwrik.goodsservice.model.po.Category;
import io.github.nnkwrik.goodsservice.model.po.Goods;
import io.github.nnkwrik.goodsservice.model.vo.CatalogPageVo;
import io.github.nnkwrik.goodsservice.model.vo.IndexPageVo;
import java.util.List;
/**
* @autho... |
ms-courses/JavaScriptAdvance | objects/Objects/defPropWritable.js | <filename>objects/Objects/defPropWritable.js<gh_stars>0
/**
* Created by mdylag on 17/03/15.
*/
var person = {};
Object.defineProperty(person, "name",
{
writable: false,
value: "Nicholas"
}
);
console.log("Before" ,person.name);
person.name="Mirek";
console.log("After", person.name);
|
openid-certification/-conformance-suite | src/main/java/net/openid/conformance/logging/LogApi.java | package net.openid.conformance.logging;
import com.google.common.base.Strings;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Lists;
import com.google.gson.Gson;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import io.swagger.annotations.ApiRespons... |
code-review-doctor/lite-frontend-1 | exporter/licences/apps.py | from django.apps import AppConfig
class LicencesConfig(AppConfig):
name = "exporter.licences"
|
sandrew1945/bury | bury-core/src/test/java/com/sandrew/bury/model/UserTag.java | <reponame>sandrew1945/bury
package com.sandrew.bury.model;
import com.sandrew.bury.bean.PO;
public class UserTag extends PO
{
private Integer userId;
private String userCode;
private String userName;
private String tag;
public Integer getUserId()
{
return userId;
}
public... |
phongcui1510/icommerce | product-service/src/main/java/com/icommerce/product/repository/utils/ProductConverter.java | <reponame>phongcui1510/icommerce
package com.icommerce.product.repository.utils;
import com.icommerce.product.repository.entity.ProductEntity;
import com.icommerce.product.service.product.dto.ProductDTO;
import org.springframework.beans.BeanUtils;
import java.util.function.Function;
public interface ProductConverte... |
rajarshisarkar/gimel | gimel-dataapi/gimel-sql/src/test/scala/com/paypal/gimel/sql/SQLParserSourceTableSpec.scala | <reponame>rajarshisarkar/gimel<filename>gimel-dataapi/gimel-sql/src/test/scala/com/paypal/gimel/sql/SQLParserSourceTableSpec.scala<gh_stars>100-1000
/*
* Copyright 2018 PayPal Inc.
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distribut... |
isuhao/ravl2 | RAVL2/OS/Compress/Compress.cc | // This file is part of RAVL, Recognition And Vision Library
// Copyright (C) 2005, OmniPerception Ltd.
// This code may be redistributed under the terms of the GNU Lesser
// General Public License (LGPL). See the lgpl.licence file for details or
// see http://www.gnu.org/copyleft/lesser.html
// file-header-ends-here
... |
towa0131/libcgss | src/lib/takamori/Utilities.cpp | <reponame>towa0131/libcgss
#include "Utilities.h"
#ifdef __CGSS_OS_UNIX__
#include <dlfcn.h>
#endif
CGSS_NS_BEGIN
Utilities::HLIB Utilities::LoadDynamicLibrary(LPCSTR lpstrModuleName) {
#if defined(__CGSS_OS_WINDOWS__)
return LoadLibrary(lpstrModuleName);
#elif defined(__CGSS_OS_UNIX__)
return dl... |
DenL1/GNISGeoCoder | GNISGeoCoder/GNISGeocoder.h | <reponame>DenL1/GNISGeoCoder<gh_stars>0
//
// GNISGeocoder.h
// GNISGeoCoder
//
// Created by Dennis on 2/6/17.
// The author disclaims copyright to this source code.
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// ... |
leongold/ovirt-engine | backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/dr/GlusterStorageDomainDRSyncJob.java | <gh_stars>0
package org.ovirt.engine.core.bll.storage.dr;
import org.ovirt.engine.core.bll.interfaces.BackendInternal;
import org.ovirt.engine.core.bll.job.ExecutionHandler;
import org.ovirt.engine.core.common.action.GlusterStorageSyncCommandParameters;
import org.ovirt.engine.core.common.action.VdcActionType;
import ... |
uve/tensorflow | tensorflow/python/ops/bitwise_ops_test.py | # Copyright 2017 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... |
GitHuber228/django_news | settings/migrations/0001_initial.py | # Generated by Django 3.1.2 on 2020-10-31 06:38
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='SiteContactsModel',
fields=[
('id', models.... |
qinyu/refactorguide | tests/__init__.py | <reponame>qinyu/refactorguide
"""Unit test package for refactorguide."""
|
sysidos/gollvm | driver/Tool.cpp | <filename>driver/Tool.cpp
//===-- Tool.cpp ----------------------------------------------------------===//
//
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
//===-------------------------------------------... |
aol/Webservice_Base | src/main/java/com/aol/webservice_base/cache/CacheContainer.java | <reponame>aol/Webservice_Base
/*
Copyright (c) 2009-2011, AOL Inc.
All rights reserved.
This code is licensed under a BSD license.
<NAME>
*/
package com.aol.webservice_base.cache;
import java.io.Serializable;
/**
* @author human
*
*/
class CacheContainer implements Serializable {
protected String key;
prote... |
willFederer/taichi | blender/exporter/__init__.py | <filename>blender/exporter/__init__.py
bl_info = {
"name": "Taichi Exporter",
"author": "<NAME> (iterator)",
"version": (0, 0, 0),
"blender": (2, 7, 8),
# "location": "Properties editor > Particles Tabs",
"description": (""),
"warning": "",
# "tracker_url": "http://huyuanming.com",
"ca... |
davide-maestroni/jroutine | core/src/main/java/com/github/dm/jrt/core/log/TemplateLog.java | <reponame>davide-maestroni/jroutine<gh_stars>0
/*
* 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
*
* Unles... |
jrinconada/cpp-examples | basico/condicionales.cpp | #include <iostream>
int main() {
int age = 100;
if(age < 18) {
std::cout << "Niño" << '\n';
} else if(age == 18) {
std::cout << "<NAME>" << '\n';
} else if(age > 18 && age <= 65) {
std::cout << "Adulto" << '\n';
} else {
if (age > 99) {
std::cout << "Muy... |
alishaoniGDS/smart-answers | lib/smart_answer/calculators/paternity_pay_calculator.rb | <gh_stars>0
module SmartAnswer::Calculators
class PaternityPayCalculator < MaternityPayCalculator
attr_accessor :paternity_leave_duration
def initialize(due_date, leave_type = "paternity")
super(due_date, leave_type)
end
# Pay duration is the same for paternity and paternity_adoption
# lea... |
xiki-tempula/spack | var/spack/repos/builtin/packages/glvis/package.py | <filename>var/spack/repos/builtin/packages/glvis/package.py
# Copyright 2013-2020 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 Glvis(MakefilePackage):
"""GLV... |
romance-ii/GLGE | src/core/glge_placeable.js | /*
GLGE WebGL Graphics Engine
Copyright (c) 2010, <NAME>
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
notice, this list of co... |
Niklas-Seppala/mineload | src/debug.c | <gh_stars>0
#ifdef DEBUG
#include <unistd.h>
#include "data/queue.h"
#include "camera.h"
#include "debug.h"
#include "ui.h"
#include "game.h"
#define REC_QUEUE_START_SIZE 64
#define TEXT_QUEUE_START_SIZE 64
#define DOTS_QUEUE_START_SIZE 64
#define PROCSTAT_ITEM_C 7
#define PROCSTAT_STR_SIZE 64
struct draw_rec_args
... |
Sukaato/lib-express | server/routes/router.js | <filename>server/routes/router.js
import { articleRouter } from './article.router';
import { dashboardArticleRouter } from './dashboard/dashboard.article.router.js';
import { dashboardIndexRouter } from './dashboard/dashboard.index.router.js';
import { dashboardRoleRouter } from './dashboard/dashboard.role.router';
imp... |
YJBeetle/QtAndroidAPI | android-31/android/text/style/TtsSpan_Builder.hpp | <reponame>YJBeetle/QtAndroidAPI
#pragma once
#include "../../../JObject.hpp"
namespace android::text::style
{
class TtsSpan;
}
class JString;
namespace android::text::style
{
class TtsSpan_Builder : public JObject
{
public:
// Fields
// QJniObject forward
template<typename ...Ts> explicit TtsSpan_Builde... |
perfectsearch/cTAKES | ctakes-utils/src/main/java/org/apache/ctakes/utils/build/InstallPipelineFromPears.java | <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 Apache License, Version 2.0 (th... |
SchrodingerW/electronicTextBook | src/pages/book/lecture_2_4.js | import React from "react";
import { Helmet } from "react-helmet";
import Navbar from "../components/Nav/Navbar";
import Footer from "../components/Footer/Footer";
import Button from "../components/Button/Button";
import './book.css';
const lecture_2_4 = () => {
return (
<div>
<Helmet>
... |
kpsuhair/QTRemoteFileEditor | src/utilityfunctions.cpp | <reponame>kpsuhair/QTRemoteFileEditor
#include "utilityfunctions.h"
#include <QStack>
#include <QtDebug>
#include <QQueue>
/* Launches a Yes or No message box within the context of the given
* parent widget. Prompts the user to make a selection.
*/
QMessageBox::StandardButton Utility::promptYesOrNo(QWidget *parent,... |
dm299770/atcc-serviceplatform | atcc-serviceplatform-common/src/main/java/com/acv/cloud/domain/body/req/notification/NotificationParams.java | <gh_stars>0
package com.acv.cloud.domain.body.req.notification;
public class NotificationParams {
private Datal data;
public void setData(Datal data) {
this.data = data;
}
public Datal getData() {
return data;
}
public NotificationParams(Datal data) {
this.data = data... |
suninformation/ymateplatform | ymateplatform/src/main/java/net/ymate/platform/mvc/web/support/HttpRequestExecutor.java | /*
* Copyright 2007-2107 the original author or 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
*
* Unless requi... |
Andreas237/AndroidPolicyAutomation | ExtractedJars/PACT_com.pactforcure.app/javafiles/com/fasterxml/jackson/databind/exc/UnrecognizedPropertyException.java | // Decompiled by Jad v1.5.8g. Copyright 2001 <NAME>.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.fasterxml.jackson.databind.exc;
import com.fasterxml.jackson.core.JsonLocation;
import com.fasterxml.jackson.core.JsonParser;
import java.util.Collectio... |
sbhagat101/titan-talks-2.0 | server/node_modules/ss/spec/builder_spec.js | <reponame>sbhagat101/titan-talks-2.0
var Builder = require("crs").Builder;
var Domain = require("crs").Domain;
var builder = new Builder();
builder.addAggre(Aggre01)
.addAggre(Aggre02)
.addService(service01)
.addService(service02)
.addCommandHandle(commandHandle01)
.addCommandHandle(commandHand... |
mhalaj1/vpp-agent | plugins/vpp/l3plugin/descriptor/proxy_arp.go | <reponame>mhalaj1/vpp-agent<gh_stars>100-1000
// Copyright (c) 2020 Cisco 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/lice... |
bcgov/EDUC-PEN-NOMINAL-ROLL-API | api/src/main/java/ca/bc/gov/educ/pen/nominalroll/api/processor/impl/ExcelXFileProcessor.java | package ca.bc.gov.educ.pen.nominalroll.api.processor.impl;
import ca.bc.gov.educ.pen.nominalroll.api.constants.FileTypes;
import ca.bc.gov.educ.pen.nominalroll.api.exception.FileUnProcessableException;
import ca.bc.gov.educ.pen.nominalroll.api.exception.NominalRollAPIRuntimeException;
import ca.bc.gov.educ.pen.nominal... |
caitp/traceur-compiler | test/feature/Syntax/Error_YieldStarNewLine.js | <filename>test/feature/Syntax/Error_YieldStarNewLine.js<gh_stars>10-100
// Should not compile.
// Error: :6:7: Unexpected token *
function* yieldStarNewLine() {
yield
*42;
}
|
elipopovadev/SoftUni-JavaScript-Advanced | ArraysAndNested Arrays-Lab/SmallestTwoNumbers.js | function solve(array){
array.sort((a, b) => a - b);
console.log(array[0] + ' ' + array[1]);
}
solve([3, 0, 10, 4, 7, 3]) |
ligoj/bootstrap | bootstrap-business/src/main/java/org/ligoj/bootstrap/core/validation/JAXRSBeanValidationImplicitInInterceptor.java | <reponame>ligoj/bootstrap<filename>bootstrap-business/src/main/java/org/ligoj/bootstrap/core/validation/JAXRSBeanValidationImplicitInInterceptor.java<gh_stars>1-10
/*
* Licensed under MIT (https://github.com/ligoj/ligoj/blob/master/LICENSE)
*/
package org.ligoj.bootstrap.core.validation;
import java.lang.annotation.... |
the-zebulan/CodeWars | tests/kyu_8_tests/test_whats_the_real_floor.py | <filename>tests/kyu_8_tests/test_whats_the_real_floor.py
import unittest
from katas.kyu_8.whats_the_real_floor import get_real_floor
class GetRealFloorTestCase(unittest.TestCase):
def test_equal_1(self):
self.assertEqual(get_real_floor(1), 0)
def test_equal_2(self):
self.assertEqual(get_real... |
jwillemsen/sidecar | GUI/Master/LogAlertsWindow.cc | <filename>GUI/Master/LogAlertsWindow.cc<gh_stars>0
#include "QtCore/QRegExp"
#include "QtGui/QSyntaxHighlighter"
#include "QtGui/QTextCharFormat"
#include "QtWidgets/QScrollBar"
#include "App.h"
#include "LogAlertsWindow.h"
#include "TreeViewItem.h"
#include "ui_LogAlertsWindow.h"
using namespace SideCar::GUI::Master... |
Anatoly1010/Atomize_NIOCH | atomize/tests/pulse_epr/11_dqc.py | <reponame>Anatoly1010/Atomize_NIOCH
import sys
import signal
import datetime
import numpy as np
import atomize.general_modules.general_functions as general
import atomize.device_modules.PB_ESR_500_pro as pb_pro
import atomize.device_modules.Spectrum_M4I_4450_X8 as spectrum
import atomize.device_modules.Mikran_X_band_MW... |
tdiesler/gravia | resource/src/main/java/org/jboss/gravia/utils/ResourceUtils.java | /*
* #%L
* Gravia :: Resource
* %%
* Copyright (C) 2010 - 2014 JBoss by Red Hat
* %%
* 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.... |
crashtech/rails-graphql | lib/rails/graphql/errors.rb | # frozen_string_literal: true
module Rails
module GraphQL
# Error class tha wrappes all the other error classes
StandardError = Class.new(::StandardError)
# Error class related to problems during the definition process
DefinitionError = Class.new(StandardError)
# Error class related to validati... |
JacopoDT/numerare-core | src/P2p/P2pProtocolTypes.h | /***
MIT License
Copyright (c) 2018 NUMERARE
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, copy, modify, merge, publis... |
lechium/tvOS10Headers | System/Library/PrivateFrameworks/ATVLegacyContentKit.framework/TVLJSDocumentUpdator.h | <filename>System/Library/PrivateFrameworks/ATVLegacyContentKit.framework/TVLJSDocumentUpdator.h<gh_stars>1-10
/*
* This header is generated by classdump-dyld 1.0
* on Wednesday, March 22, 2017 at 9:07:17 AM Mountain Standard Time
* Operating System: Version 10.1 (Build 14U593)
* Image Source: /System/Library/PrivateFra... |
Hadleyhzy/data_structure_and_algorithm | binary_search/binary_search/275_h_index_2.cpp | <filename>binary_search/binary_search/275_h_index_2.cpp
//
// 275_h_index_2.cpp
// binary_search
//
// Created by Hadley on 09.08.20.
// Copyright © 2020 Hadley. All rights reserved.
//
#include <stdio.h>
#include <algorithm>
#include <iostream>
#include <vector>
#include <string>
#include <unordered_map>
#include... |
gabrielbmotta/mne-cpp | libraries/disp/viewers/multiview.cpp | //=============================================================================================================
/**
* @file multiview.cpp
* @author <NAME> <<EMAIL>>
* @version dev
* @date January, 2020
*
* @section LICENSE
*
* Copyright (C) 2020, <NAME>. All rights reserved.
*
* Redistribution and... |
awesome-archive/gnes | gnes/helper.py | # Tencent is pleased to support the open source community by making GNES available.
#
# Copyright (C) 2019 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... |
ryanolson/yais | trtlab/memory/include/trtlab/memory/detail/utility.h | // MODIFICATION_MESSAGE
// Modification notes:
// - removed custom move/forward/swap implementations for std definitions
// Copyright (C) 2015-2016 <NAME> <<EMAIL>>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.
#ifndef TRTLAB_MEMORY_DETAIL_... |
MarkStega/CQC | Source/AllProjects/Drivers/ZWave/ZWaveUSB3/Shared/ZWaveUSB3Sh_CtrlIntf.hpp | <filename>Source/AllProjects/Drivers/ZWave/ZWaveUSB3/Shared/ZWaveUSB3Sh_CtrlIntf.hpp
//
// FILE NAME: ZWaveUSB3Sh_CtrlIntf.hpp
//
// AUTHOR: <NAME>
//
// CREATED: 07/24/2017
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2020
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (<NAME>... |
popara/jonny-api | matching/tests.py | from fixures import *
from freezegun import freeze_time
from datetime import datetime
from time import sleep
from django.core import mail
from django.conf import settings
from funcy import is_list, all, str_join
from . import tasks as T
import fixures
from .models import JobStatus, job_status, get_questions, get_anon, ... |
KarizCache/serverless | optimal/tompkins/dag.py | from tompkins.ilp import schedule as schedule_tompkins
from tompkins.ilp import jobs_when_where
from tompkins.util import (reverse_dict, dictify, intersection, merge, unique,
groupby)
from collections import defaultdict
def precedes_to_dag(jobs, precedes):
return {a: [b for b in jobs if precedes(a, b)] fo... |
dcealopez/VUPlayer | DecoderMAC.h | <filename>DecoderMAC.h
#pragma once
#include "Decoder.h"
#include "All.h"
#include "maclib.h"
#include "APETag.h"
#include <string>
class DecoderMAC : public Decoder
{
public:
// 'filename' - file name.
// Throws a std::runtime_error exception if the file could not be loaded.
DecoderMAC( const std::wstring& file... |
ikingye/keras | keras/applications/mobilenet_v2.py | <reponame>ikingye/keras
from tensorflow.keras.applications.mobilenet_v2 import MobileNetV2
from tensorflow.keras.applications.mobilenet_v2 import decode_predictions
from tensorflow.keras.applications.mobilenet_v2 import preprocess_input
|
Blubmin/intelligent_camera | intelligent_camera/RenderingSystem.h | #pragma once
#include <memory>
#include <vector>
#include <glm\glm.hpp>
#include <engine_base\Entity.h>
#include <engine_base\Material.h>
#include <engine_base\Program.h>
class Mesh;
class World;
class RenderingSystem
{
public:
RenderingSystem();
~RenderingSystem();
void render(std::shared_ptr<World> ... |
ScalablyTyped/SlinkyTyped | r/react-native/src/main/scala/typingsSlinky/reactNative/mod/TabBarIOSProps.scala | <filename>r/react-native/src/main/scala/typingsSlinky/reactNative/mod/TabBarIOSProps.scala
package typingsSlinky.reactNative.mod
import typingsSlinky.reactNative.reactNativeStrings.auto
import typingsSlinky.reactNative.reactNativeStrings.center
import typingsSlinky.reactNative.reactNativeStrings.fill
import org.scalab... |
wstong999/AliOS-Things | kernel/rhino/include/k_mm_blk.h | /*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#ifndef K_MM_BLK_H
#define K_MM_BLK_H
#ifdef __cplusplus
extern "C" {
#endif
/** @addtogroup aos_rhino mm
* Pool memory management. Pool memory can be part of heap.
* Pool is used to manage the little fixed-size block
*
* @{
*/
#define MM_BLK_S... |
panaetov/grpclib | grpclib/stream.py | import abc
import struct
async def recv_message(stream, codec, message_type):
meta = await stream.recv_data(5)
if not meta:
return
compressed_flag = struct.unpack('?', meta[:1])[0]
if compressed_flag:
raise NotImplementedError('Compression not implemented')
message_len = struct.u... |
fQuinzan/mcas | src/components/store/hstore/src/non_owner.h | <gh_stars>10-100
/*
Copyright [2017-2021] [IBM 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 required by applica... |
domdomegg/tabula | web/src/main/scala/uk/ac/warwick/tabula/web/controllers/profiles/relationships/meetings/CreateScheduledMeetingRecordController.scala | <filename>web/src/main/scala/uk/ac/warwick/tabula/web/controllers/profiles/relationships/meetings/CreateScheduledMeetingRecordController.scala
package uk.ac.warwick.tabula.web.controllers.profiles.relationships.meetings
import org.springframework.stereotype.Controller
import org.springframework.web.bind.annotation._
i... |
ItHertzSoGood/DragonBuild | frameworks/Preferences.framework/Headers/PSBadgedTableCell.h | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Dec 5 2019 09:59:31).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import <Preferences/PSTableCell.h>
@class UIImageView, UILabel;
@interface PSBadgedTableCell : PSTableCell
{
UIImageView *_badgeImageView;
UILabel *_badgeNumberLabel;
l... |
refinedmods/refinedstorage2 | refinedstorage2-network-api/src/main/java/com/refinedmods/refinedstorage2/api/network/ConnectionProvider.java | package com.refinedmods.refinedstorage2.api.network;
import com.refinedmods.refinedstorage2.api.network.node.container.NetworkNodeContainer;
import java.util.List;
import java.util.Set;
public interface ConnectionProvider {
Connections findConnections(NetworkNodeContainer pivot, Set<NetworkNodeContainer> existin... |
dgloeckner/calcite | core/src/test/java/org/apache/calcite/plan/volcano/PlannerTests.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 ... |
Governance/dtgov | dtgov-task-api/src/main/java/org/overlord/dtgov/taskapi/types/StatusType.java | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2013.06.10 at 02:58... |
DBatOWL/tutorials | mapstruct/src/main/java/com/baeldung/mapstruct/mappingCollections/mapper/EmployeeMapper.java | package com.baeldung.mapstruct.mappingCollections.mapper;
import com.baeldung.mapstruct.mappingCollections.dto.EmployeeDTO;
import com.baeldung.mapstruct.mappingCollections.model.Employee;
import org.mapstruct.Mapper;
import java.util.List;
import java.util.Map;
import java.util.Set;
@Mapper
public interface Employe... |
jdelStrother/teepublic-react | src/lib/components/design_tile/DesignTile.test.js | <filename>src/lib/components/design_tile/DesignTile.test.js
import React from 'react';
import ReactDOM from 'react-dom';
import DesignTile from './DesignTile';
import renderer from 'react-test-renderer';
import { shallow } from 'enzyme';
import store from '../../../demo/StoreData';
describe('Design Tile Testing', () =... |
IvanSanchez16/workspace-POO | src/asesorias/Cuadrado.java | package asesorias;
public class Cuadrado {
private int L;
public Cuadrado(){
L=10;
}
public Cuadrado(int l){
L=l;
}
public float Area(){
return L*L;
}
public int Perimetro(){
return 4*L;
}
public int getL() {
return L;
}
public void setL(int l) {
L = l;
}
}
|
coopersystem-fsd/server | app/src/test/java/com/rideaustin/events/listeners/CityApprovalStatusUpdateEventListenerTest.java | <reponame>coopersystem-fsd/server<gh_stars>10-100
package com.rideaustin.events.listeners;
import static org.mockito.Matchers.eq;
import static org.mockito.Mockito.atLeastOnce;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import java.util.Map;
import org.junit.Before;
import org.... |
huanyin88/Mod-Pywin32-For-Python3.x-DDE | com/win32comext/bits/src/PyIBackgroundCopyError.cpp | <filename>com/win32comext/bits/src/PyIBackgroundCopyError.cpp
// This file implements the IBackgroundCopyError Interface for Python.
// Generated by makegw.py
#include "bits_pch.h"
#include "PyIBackgroundCopyError.h"
// @doc - This file contains autoduck documentation
// ----------------------------------------------... |
smyang2018/genometools | src/match/sfx-bentsedg.c | <gh_stars>1-10
/*
Copyright (c) 2007 <NAME> <<EMAIL>>
Copyright (c) 2007 Center for Bioinformatics, University of Hamburg
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice ap... |
NUBIC/nucore-open | spec/models/price_group_product_spec.rb | <filename>spec/models/price_group_product_spec.rb
require 'spec_helper'
describe PriceGroupProduct do
before :each do
@facility=FactoryGirl.create(:facility)
@facility_account=@facility.facility_accounts.create(FactoryGirl.attributes_for(:facility_account))
@instrument = FactoryGirl.create(:instrument,
... |
shabtaisharon/ds3_java_browser | dsb-gui/src/main/java/com/spectralogic/dsbrowser/gui/util/DateTimeUtils.java | /*
* ******************************************************************************
* Copyright 2016-2017 Spectra Logic 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. A copy of the Licens... |
jlevy/alt-log5j | src/java/com/spinn3r/log5j/factories/StdoutInternalLoggerFactory.java | /*
* Copyright 2010 "Tailrank, Inc (Spinn3r)"
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... |
scruffyfox/AsyncHttpClient | library/src/main/java/net/callumtaylor/asynchttp/response/StreamResponseHandler.java | <reponame>scruffyfox/AsyncHttpClient
package net.callumtaylor.asynchttp.response;
import net.callumtaylor.asynchttp.obj.ClientTaskImpl;
import net.callumtaylor.asynchttp.obj.Packet;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
/**
* Si... |
wangxiao1002/wechat-operation | operation-backend/src/main/java/com/idiot/operationbackend/service/facade/JobTaskService.java | <reponame>wangxiao1002/wechat-operation
package com.idiot.operationbackend.service.facade;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.idiot.operationbackend.entity.JobTask;
import java.util.List;
/**
* @author <NAME>
* @... |
cryst-al/novoline | src/net/minecraft/block/Block$SoundType.java | package net.minecraft.block;
public class Block$SoundType {
public final String soundName;
public final float volume;
public final float frequency;
public Block$SoundType(String var1, float var2, float var3) {
this.soundName = var1;
this.volume = var2;
this.frequency = var3;
}
pub... |
foruever/benchmark-dev | src/main/java/cn/edu/ruc/dao/TsFileDao.java | package cn.edu.ruc.dao;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.Date;
import java.util.List;
import cn.edu.ruc.model.BenchmarkPoint;
public class TsFileDao implements BaseDao {
public static void main(String[] args) {
BaseDa... |
packagesdev/dejalu | Sources/Backend/hermes/db/HMUnifiedMailStorageView.h | // DejaLu
// Copyright (c) 2015 <NAME>. All rights reserved.
#ifndef HMUnifiedMailStorageView_hpp
#define HMUnifiedMailStorageView_hpp
#include <MailCore/MailCore.h>
#include "HMMailStorageViewObserver.h"
#ifdef __cplusplus
namespace hermes {
class MailStorage;
class MailStorageViewObserver;
class Mai... |
xlui/Eros | Blog/src/main/java/style/dx/eros/config/Const.java | <gh_stars>0
package style.dx.eros.config;
public class Const {
public static final int defaultPageSize = 2;
}
|
atsushifx/education-notes-for-moocs | Archives/coursera/duke/java02-solving/week03-parseCSV/exercise-parseExports/parseExport.java | <filename>Archives/coursera/duke/java02-solving/week03-parseCSV/exercise-parseExports/parseExport.java
import edu.duke.*;
import org.apache.commons.csv.*;
/**
* parseExport
* 輸出物csv読み込み
*
* @author <NAME>
* @version 1.0.0
*/
public class parseExport
{
/**
* countryInfo
*
*/
p... |
maze-runnar/modal-component | modal/node_modules/simplebar/node_modules/core-js/stable/number/is-integer.js | <reponame>maze-runnar/modal-component<filename>modal/node_modules/simplebar/node_modules/core-js/stable/number/is-integer.js
module.exports = require('../../es/number/is-integer');
|
markbnc/uiutil | src/main/java/com/ecdsinc/security/EcdsSecurityException.java | package com.ecdsinc.security;
import com.ecdsinc.util.UtilException;
@SuppressWarnings("serial")
public class EcdsSecurityException extends UtilException {
public EcdsSecurityException(String message) {
super(message);
}
public EcdsSecurityException(String message, Throwable cause) {
s... |
tangyan02/ego-chinese-chess | src/main/java/cn/tangyancode/ego/chineseChess/core/GameMap.java | package cn.tangyancode.ego.chineseChess.core;
import cn.tangyancode.ego.chineseChess.entity.*;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
public class GameMap {
private HashSet<Unit> units;
private Unit[][] map = new Unit[Config.HEIGHT][Config.WIDTH];
... |
italiangrid/voms-admin-server | voms-admin-server/src/main/java/org/glite/security/voms/admin/notification/dispatchers/VOMembershipNotificationDispatcher.java | /**
* Copyright (c) <NAME> Fisica Nucleare (INFN). 2006-2016
*
* 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... |
samhatem/Ghost-Admin | lib/koenig-editor/app/helpers/clean-basic-html.js | <filename>lib/koenig-editor/app/helpers/clean-basic-html.js
export {default} from 'koenig-editor/helpers/clean-basic-html';
|
tomzhang/aiida_core | aiida/common/test_folders.py | # -*- coding: utf-8 -*-
###########################################################################
# Copyright (c), The AiiDA team. All rights reserved. #
# This file is part of the AiiDA code. #
# ... |
hexie2108/mikuclub | App/src/main/java/org/mikuclub/app/utils/GeneralUtils.java | <reponame>hexie2108/mikuclub
package org.mikuclub.app.utils;
import android.content.Context;
import android.content.res.Resources;
import android.text.Html;
import android.util.DisplayMetrics;
import android.util.Patterns;
import org.apache.commons.text.StringEscapeUtils;
import org.mikuclub.app.config.GlobalConfig;
... |
divyakumarjain/bo-framework | repository/src/main/java/org/divy/common/bo/repository/BORepository.java | <reponame>divyakumarjain/bo-framework
package org.divy.common.bo.repository;
import org.divy.common.bo.query.Query;
import java.util.List;
import java.util.Optional;
import java.util.stream.Stream;
public interface BORepository<E extends BusinessObject<I>, I>
{
E create(E businessObject);
E update(I id, E b... |
BeaconFramework/osffm | src/java/OSFFM_ORC/Utils/SFC_NFV/GenericVNFcontainer.java | /**Copyright 2016, University of Messina.
*
* 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... |
noamran/genie | genie-web/src/main/java/com/netflix/genie/web/scripts/AgentLauncherSelectorManagedScript.java | /*
*
* Copyright 2019 Netflix, 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 ap... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.