repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
WinstonLHS/tofu | tofu/tests/tests06_mesh/test_01_checks.py | """
This module contains tests for tofu.geom in its structured version
"""
# Built-in
import os
import shutil
import itertools as itt
import warnings
# Standard
import numpy as np
import matplotlib.pyplot as plt
# tofu-specific
from tofu import __version__
import tofu as tf
import tofu.data as tfd
_HERE = os.pat... |
041616/react-jsonschema-form-test | source/Schema/components/navigationLink/index.js | import { getKeyValues } from 'Schema/utils';
import icon from './properties/icon';
import textColor from './properties/textColor';
import textHoverColor from './properties/textHoverColor';
import backgroundColor from './properties/backgroundColor';
import backgroundHoverColor from './properties/backgroundHoverColor';
i... |
Miaocool/MYG-NewVersion | myg/Src/My/Model/MyBuyListModel.h | <reponame>Miaocool/MYG-NewVersion<filename>myg/Src/My/Model/MyBuyListModel.h<gh_stars>0
//
// MyBuyListModel.h
// yyxb
//
// Created by lili on 15/12/3.
// Copyright © 2015年 杨易. All rights reserved.
//
#import "MBTestMainModel.h"
@interface MyBuyListModel : MBTestMainModel
@property (nonatomic, copy) NSString *s... |
org-metaeffekt/metaeffekt-dcc | modules/dcc-commons/src/main/java/org/metaeffekt/dcc/commons/mapping/Capability.java | /**
* Copyright 2009-2017 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 required by ap... |
stemey/dojo-generate-form | model/PrimitiveModel.js | define([
"dojo/_base/declare",
"./Model"
], function (declare, Model) {
// module:
// gform/model/PrimitiveModel
var PrimitiveModel = declare("gform.model.PrimitiveModel", [Model], {
// summary:
// Provides access to sibling attributes of modelHandle.
value: null,
oldValue: undefined,
required: false,... |
WassimAbida/HyperAPI | HyperAPI/hdp_api/routes/tags.py | <filename>HyperAPI/hdp_api/routes/tags.py<gh_stars>0
from HyperAPI.hdp_api.base.resource import Resource
from HyperAPI.hdp_api.base.route import Route
class Tags(Resource):
name = "Tags"
available_since = "1.0"
removed_since = None
class _addtag(Route):
name = "add tag"
httpMethod = R... |
subant05/jenp | __tests__/fn.clone.js | import {clone} from '../src/fn/index';
test("Tesing: fn.clone()", ()=>{
const originalObj = {
name:"<NAME>"
, age: 37
}
const newObj = clone(originalObj)
newObj.name = "<NAME>"
newObj.age = 29
newObj.job = "Chairwoman"
expect(originalObj.name).toBe("<NAME>")
expect(ori... |
subbarayudu-j/katalon-studio-testing-framework | Include/scripts/groovy/com/kms/katalon/core/reporting/JsCallStepModel.java | package com.kms.katalon.core.reporting;
import java.util.ArrayList;
import java.util.List;
import com.kms.katalon.core.logging.model.ILogRecord;
import com.kms.katalon.core.logging.model.TestCaseLogRecord;
import com.kms.katalon.core.logging.model.TestStepLogRecord;
import com.kms.katalon.core.logging.model.TestStatu... |
reneelpetit/codestream-server | api_server/modules/versioner/test/unknown_ide_test.js | <gh_stars>1-10
'use strict';
const VersionerTest = require('./versioner_test');
const RandomString = require('randomstring');
class UnknownIDETest extends VersionerTest {
constructor (options) {
super(options);
this.expectedDisposition = 'unknownIDE';
}
get description () {
return 'should set X-CS-Version-... |
Shashi-rk/azure-sdk-for-java | sdk/resourcemanager/azure-resourcemanager-authorization/src/main/java/com/azure/resourcemanager/authorization/fluent/models/MicrosoftGraphGroupLifecyclePolicyInner.java | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.authorization.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import co... |
scrumpi3/DOME | src/mit/cadlab/dome3/gui/objectmodel/dataobject/build/FileBuildPanel.java | <gh_stars>0
// FileBuildPanel.java
package mit.cadlab.dome3.gui.objectmodel.dataobject.build;
import mit.cadlab.dome3.objectmodel.dataobject.interfaces.DataObject;
import mit.cadlab.dome3.objectmodel.dataobject.interfaces.DomeFile;
import mit.cadlab.dome3.objectmodel.dataobject.FileData;
import mit.cadlab.dome3.... |
kraney/stackpath | pkg/cdn/model_content_disposition_by_header_default_type_enum_wrapper_value.go | /*
* Content Delivery Network
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* API version: 1.0.0
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package cdn
import (
"encoding/json"
)
// ContentDispositionByHeaderDefault... |
theclashingfritz/sonic-3-remastered | source/Scene_HCZ.cpp | #include "Standard.h"
#include "Scene_MainMenu.h"
#include "Application.h"
#include "Resources.h"
#include "Scene_HCZ.h"
#include "S3Object.h"
#include "LevelScene.h"
#include "S3/Objects/InvisibleSolid.h"
#include "Scene_CNZ.h"
#define Z_MID 0
#define Z_FRONT -1
#define Z_BACK 1
#define T(name) App->Textures[name]
... |
lycantropos/lz | tests/left_tests/folder_tests/test_definition.py | from hypothesis import given
from lz import (left,
right)
from lz.replication import duplicate
from tests.hints import LeftFolderCall
from tests.utils import are_objects_similar
from . import strategies
@given(strategies.empty_folder_calls)
def test_base_case(empty_folder_call: LeftFolderCall) -> Non... |
maciejg-git/vue-bootstrap-icons | dist-fontawesome/fontawesome/brands/octopus-deploy-brand.js | <gh_stars>0
import { h } from 'vue'
export default {
name: "OctopusDeploy",
vendor: "Fa",
type: "Brand",
tags: ["octopus","deploy"],
render() {
return h(
"svg",
{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 512 512","class":"v-icon","fill":"currentColor","data-name":"fa-octopus-deploy",... |
takumakei/go-urfave-cli | zapflag/named.go | <reponame>takumakei/go-urfave-cli
package zapflag
import (
"strings"
"github.com/urfave/cli/v2"
"go.uber.org/zap"
)
// Named adds a new path segment of command/subcommand name to the logger's name.
func Named(logger *zap.Logger, c *cli.Context) *zap.Logger {
app := strings.ReplaceAll(c.App.Name, " ", ".")
if le... |
vinzenz/fcppt | include/fcppt/optional/cat.hpp | <reponame>vinzenz/fcppt
// Copyright <NAME> 2009 - 2016.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef FCPPT_OPTIONAL_CAT_HPP_INCLUDED
#define FCPPT_OPTIONAL_CAT_HPP_INCLUDED
#in... |
pH14/fdb-zk | src/main/java/com/ph14/fdb/zk/layer/changefeed/ChangefeedWatchEvent.java | <filename>src/main/java/com/ph14/fdb/zk/layer/changefeed/ChangefeedWatchEvent.java
package com.ph14.fdb.zk.layer.changefeed;
import java.util.Objects;
import org.apache.zookeeper.Watcher.Event.EventType;
import com.apple.foundationdb.tuple.Versionstamp;
import com.google.common.base.MoreObjects;
public class Change... |
stephenh/dtonator | features/src/main/java/com/bizo/dtonator/domain/EmployeeWithTypedAccounts.java | package com.bizo.dtonator.domain;
import java.util.ArrayList;
import java.util.List;
public class EmployeeWithTypedAccounts {
private Long id;
private String name;
private List<Account> accounts = new ArrayList<Account>();
public EmployeeWithTypedAccounts() {
}
public EmployeeWithTypedAccounts(final Lo... |
caponetto/kogito-editors-java | drools-wb-screens/drools-wb-scenario-simulation-editor/drools-wb-scenario-simulation-editor-client/src/test/java/org/drools/workbench/screens/scenariosimulation/client/popup/ScenarioConfirmationPopupViewTest.java | /*
* Copyright 2018 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
MidnightTinge/Yuugure | src/main/java/com/mtinge/yuugure/data/http/RenderableComment.java | package com.mtinge.yuugure.data.http;
import com.squareup.moshi.Json;
import lombok.AllArgsConstructor;
import java.sql.Timestamp;
@AllArgsConstructor
public class RenderableComment {
public final int id;
public final Timestamp timestamp;
public final SafeAccount account;
@Json(name = "content_raw")
public... |
gh-determined-ai/determined | master/internal/api_tasks.go | <filename>master/internal/api_tasks.go
package internal
import (
"context"
"fmt"
"time"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"github.com/google/uuid"
"github.com/hashicorp/go-multierror"
"github.com/determined-ai/determined/master/internal/api"
"github.com/determined-ai/determined... |
OLC-Bioinformatics/olc_genomics_portal | olc_webportalv2/api/urls.py | from olc_webportalv2.api import views
from django.conf.urls import url, include
from django.urls import path
from rest_framework.urlpatterns import format_suffix_patterns
from rest_framework.schemas import get_schema_view
schema_view = get_schema_view(title='API')
urlpatterns = [
# REST API Stuff
path('sch... |
AProgrammerFemale/Yet-another-c-framework | Configuration.hpp | //Copyright <NAME>, All Rights Reserved
#pragma once
#define AliceOSUnknown "This Operating System is not supported by Alice"
#if defined(_WIN32)
#define AliceWindows
#elif defined(__ANDROID__)
#define AliceAndroid
#elif defined(__linux__)
#define AliceLinux
#elif defined(__APPLE__)
#if defined(TARGET_OS_IP... |
bohap/e-store | src/main/java/com/finki/emt/bookstore/repository/BookRepository.java | package com.finki.emt.bookstore.repository;
import com.finki.emt.bookstore.domain.Book;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.... |
mesg-foundation/application | x/instance/internal/types/genesis.go | <gh_stars>10-100
package types
import (
"fmt"
"github.com/mesg-foundation/engine/ext/xvalidator"
"github.com/mesg-foundation/engine/instance"
)
// GenesisState - all instance state that must be provided at genesis
type GenesisState struct {
Instances []*instance.Instance `json:"instances" yaml:"instances" valida... |
Khan/render-gateway | dist/shared/get-runtime-mode.js | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getRuntimeMode = void 0;
/**
* Determine the node runtime mode.
*
* The mode is calculated from NODE_ENV. If NODE_ENV is not set or set to
* something other than expected values, the defaultMode is returned.
*
* @returns {Run... |
fengjijiao/java-spring-framework-learning | src/us/fjj/spring/learning/annotationdemo/UserDaoImpl.java | package us.fjj.spring.learning.annotationdemo;
import org.springframework.stereotype.Repository;
@Repository("userDao")
public class UserDaoImpl implements UserDao {
@Override
public void outContent() {
System.out.println("spring!!!");
}
}
|
scala-steward/fmq | core/src/main/scala/io/fmq/frame/FrameEncoder.scala | package io.fmq.frame
import java.nio.charset.StandardCharsets
trait FrameEncoder[A] {
def encode(value: A): Array[Byte]
}
object FrameEncoder {
def apply[A](implicit instance: FrameEncoder[A]): FrameEncoder[A] = instance
implicit val byteArrayEncoder: FrameEncoder[Array[Byte]] = identity
implicit val utf8... |
bianapis/sd-corporate-treasury-v2.0 | src/main/java/org/bian/dto/BQBankRatesRetrieveOutputModelBankRatesInstanceRecord.java | <filename>src/main/java/org/bian/dto/BQBankRatesRetrieveOutputModelBankRatesInstanceRecord.java
package org.bian.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
impor... |
MayerRoman/Lagerta | core/src/test/java/org/apache/ignite/activestore/rules/FullClusterTestResourcesFactory.java | <gh_stars>1-10
/*
* Copyright (c) 2017. 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... |
hcxxiaomo/ChCarAppNew_as | app/src/main/java/com/xiaomo/chcarappnew/adapt/CarIllegalHistoryResultInfoAdapter.java | <reponame>hcxxiaomo/ChCarAppNew_as
package com.xiaomo.chcarappnew.adapt;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.xiaomo.chcarappnew.R;
import com.xiaomo.ch... |
bobosoft/intrepyd | intrepyd/tests/test_scr.py | <reponame>bobosoft/intrepyd
"""
Copyright (C) 2017 <NAME> <<EMAIL>>
This file is distributed under the terms of the 3-clause BSD License.
A copy of the license can be found in the root directory or at
https://opensource.org/licenses/BSD-3-Clause.
Author: <NAME> <<EMAIL>>
Date: 27/03/2017
"""
import intrepyd
from in... |
T3chy/otm-sim | src/main/java/output/animation/AbstractLaneGroupInfo.java | package output.animation;
import common.AbstractLaneGroup;
public abstract class AbstractLaneGroupInfo implements InterfaceLaneGroupInfo {
public Long lg_id;
public AbstractLaneGroupInfo(AbstractLaneGroup lg) {
this.lg_id = lg.id;
}
}
|
traitor6789/osm-tile-server | osm2pgsql/src/output-null.cpp | /**
* SPDX-License-Identifier: GPL-2.0-or-later
*
* This file is part of osm2pgsql (https://osm2pgsql.org/).
*
* Copyright (C) 2006-2022 by the osm2pgsql developer community.
* For a full list of authors see the git log.
*/
#include "output-null.hpp"
std::shared_ptr<output_t>
output_null_t::clone(std::shared_p... |
annumishra123/stage | client/modules/Stories/StoriesActions.js | <filename>client/modules/Stories/StoriesActions.js
import clientConfig from '../../config';
import axios from 'axios';
export function fetchStories() {
return function (dispatch) {
let loopbackFilter = {
where: {
status: true
}
};
let url = clientConf... |
kernt/infrakit | vendor/github.com/spiegela/gorackhd/client/tags/get_tag_responses.go | <gh_stars>1000+
package tags
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"fmt"
"io"
"github.com/go-openapi/runtime"
strfmt "github.com/go-openapi/strfmt"
"github.com/spiegela/gorackhd/models"
)
// GetTagReader i... |
yhswjtuILMARE/ILMARE | ILMARE/YHArticleWrapper.h | <gh_stars>0
//
// YHArticleWrapper.h
// ILMARE
//
// Created by yh_swjtu on 17/7/13.
// Copyright © 2017年 yh_swjtu. All rights reserved.
//
#import <Foundation/Foundation.h>
@class YHArticleInfo;
@interface YHArticleWrapper : NSObject
@property (nonatomic, strong) YHArticleInfo *articleInfo;
@property (nonatom... |
hillbw/exi-test | java/esiaisparser/src/testGenerator/src/main/java/nl/esi/metis/testgenerator/PositionAccuracySetter.java | package nl.esi.metis.testgenerator;
public interface PositionAccuracySetter {
void setPositionAccuracy (TestBitVectorConstructor tbv , int from, int to);
}
|
SusanaParker/calcentral | src/redux/actions/eftEnrollmentActions.js | import axios from 'axios';
import {
FETCH_EFT_ENROLLMENT_START,
FETCH_EFT_ENROLLMENT_SUCCESS,
FETCH_EFT_ENROLLMENT_FAILURE,
} from '../action-types';
export const fetchEftEnrollmentStart = () => ({
type: FETCH_EFT_ENROLLMENT_START,
});
export const fetchEftEnrollmentSuccess = links => ({
type: FETCH_EFT_EN... |
45258E9F/IntPTI | src/org/sosy_lab/cpachecker/cpa/smg/objects/generic/SMGEdgeHasValueTemplateWithConcreteValue.java | /*
* IntPTI: integer error fixing by proper-type inference
* Copyright (c) 2017.
*
* Open-source component:
*
* CPAchecker
* Copyright (C) 2007-2014 <NAME>
*
* Guava: Google Core Libraries for Java
* Copyright (C) 2010-2006 Google
*
*
*/
package org.sosy_lab.cpachecker.cpa.smg.objects.generic;
import or... |
zhoupan/cuba | modules/gui/src/com/haulmont/cuba/gui/sys/FragmentHelper.java | /*
* Copyright (c) 2008-2019 Haulmont.
*
* 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 agr... |
ycdfwzy/NaiveDB | src/main/java/org/naivedb/Statement/StatementInsert.java | package org.naivedb.Statement;
import org.naivedb.Database.Database;
import org.naivedb.Table.Table;
import org.naivedb.utils.NDException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.LinkedList;
public class StatementInsert {
private String targetTableName;
private LinkedList<Lin... |
lffranca/gonga | domain/route/route_gwt_repository.go | <reponame>lffranca/gonga
package route
import (
"context"
"github.com/lffranca/gonga/domain"
)
type RGatewayRepository interface {
List(ctx context.Context, gateway *domain.Gateway, size *int, offset *string, tags []*string, matchAllTags *bool) ([]*domain.Route, *domain.Option, error)
}
|
shubhamg931/datahub | datahub-web/@datahub/shared/app/components/forms/action-drawer.js | <gh_stars>1-10
export { default } from '@datahub/shared/components/forms/action-drawer';
|
GrowMoi/haedus | app/controllers/api/payments_controller.rb | module Api
class PaymentsController < BaseController
api :POST,
"/payments/tutor_basic_account",
"Create tutor account by payment method"
param :total, Integer
param :source, String
param :payment_id, String
param :code_item, String
param :quantity, Float
param :name, Stri... |
PaloAltoNetworks/cortex-xpanse-python-sdk | xpanse/api/issues/v1/issues.py | <reponame>PaloAltoNetworks/cortex-xpanse-python-sdk
from typing import Any, Dict, List, Tuple
from xpanse.const import V1_PREFIX
from xpanse.endpoint import ExEndpoint
from xpanse.error import UnexpectedValueError
from xpanse.iterator import ExResultIterator
VALID_UPDATE_TYPES = {
"Assignee",
"Comment",
"... |
DarkFighterLuke/WhatsappWeb4j | src/main/java/it/auties/whatsapp4j/manager/WhatsappKeysManager.java | package it.auties.whatsapp4j.manager;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectReader;
import com.fasterxml.jackson.databind.ObjectWriter;
import it.auties.whatsapp4j.binary.BinaryArray;
import it.auties.whatsa... |
chandan9369/MY-C-Code | string6.c | <filename>string6.c<gh_stars>1-10
/* this is a program to find frequency of digits used in the given string */
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
int main()
{
/* Enter your code here. Read input from STDIN. Print output to STDOUT... |
platy11/ev3sim | ev3sim/robots/demo.py | <reponame>platy11/ev3sim
"""
Some demo code for the ev3dev simulator.
This code will:
* print sensor values
* randomly move the motors every few seconds
* correct itself if it goes over the white line.
"""
from ev3dev2.motor import LargeMotor
from ev3dev2.sensor.lego import ColorSensor, UltrasonicSensor
from ev3dev2.... |
LifebookerInc/api_resource | spec/lib/typecasters/float_typecaster_spec.rb | require 'spec_helper'
describe ApiResource::Typecast::FloatTypecaster do
let(:klass) { ApiResource::Typecast::FloatTypecaster }
context ".from_api" do
it "should typecast integers, floats, strings, dates, and times reasonably" do
klass.from_api(1).should eql(1.0)
klass.from_api(1.0).should eql(1... |
fangrx/my-blog | admin/src/main/java/com/nonelonely/admin/system/validator/NoteValid.java | package com.nonelonely.admin.system.validator;
import lombok.Data;
import java.io.Serializable;
import javax.validation.constraints.NotEmpty;
/**
* @author nonelonely
* @date 2020/01/01
*/
@Data
public class NoteValid implements Serializable {
@NotEmpty(message = "标题不能为空")
private String title;
}
|
adamtootle/servizi | app/redux/reducers/update.js | const keys = require('../actions/keys');
const initialState = {
updateAvailable: false,
updateDownloaded: false,
updateProgress: -1,
};
module.exports = function updateReducer(state = initialState, action) {
switch (action.type) {
case keys.UPDATE_AVAILABLE:
return Object.assign({}, state, { updateA... |
Otamaa/Antares | src/Ext/Techno/Hooks.Alpha.cpp | <reponame>Otamaa/Antares
#include "Body.h"
#include "../TechnoType/Body.h"
#include <AlphaShapeClass.h>
#include <AnimClass.h>
#include <BuildingClass.h>
#include <TacticalClass.h>
#include <Notifications.h>
AresMap<ObjectClass*, AlphaShapeClass*> TechnoExt::AlphaExt;
// conventions for hashmaps like this... |
ezibyte/EziSocial-PhotoExample | Cocos2dx-3x/PhotoExample/cocos2d/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIImageViewTest/UIImageViewTest.cpp | <reponame>ezibyte/EziSocial-PhotoExample
#include "UIImageViewTest.h"
// UIImageViewTest
bool UIImageViewTest::init()
{
if (UIScene::init())
{
Size widgetSize = _widget->getContentSize();
Text* alert = Text::create("ImageView", "fonts/Marker Felt.ttf", 30);
alert->setColor(... |
gisspace/tds | tds/src/test/java/thredds/server/ncss/controller/grid/TemporalSpaceSubsettingTest.java | <gh_stars>10-100
/*
* Copyright (c) 1998-2021 University Corporation for Atmospheric Research/Unidata
* See LICENSE for license information.
*/
package thredds.server.ncss.controller.grid;
import org.junit.Before;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runner.Run... |
klebed/esdc-ce | gui/dc/storage/views.py | from django.contrib.auth.decorators import login_required
from django.views.decorators.http import require_POST
from django.shortcuts import render
from django.http import HttpResponse
from gui.decorators import staff_required, ajax_required, admin_required, profile_required
from gui.utils import collect_view_data, re... |
MikaSoftware/mikathing | src/Phidget22/LogLevel.py | <reponame>MikaSoftware/mikathing<gh_stars>1-10
import sys
import ctypes
class LogLevel:
# Critical
PHIDGET_LOG_CRITICAL = 1
# Error
PHIDGET_LOG_ERROR = 2
# Warning
PHIDGET_LOG_WARNING = 3
# Info
PHIDGET_LOG_INFO = 4
# Debug
PHIDGET_LOG_DEBUG = 5
# Verbose
PHIDGET_LOG_VERBOSE = 6
@classmethod
def getName(... |
mwoehlke-kitware/kwiver | vital/plugin_loader/plugin_loader_filter.h | <reponame>mwoehlke-kitware/kwiver<filename>vital/plugin_loader/plugin_loader_filter.h
// This file is part of KWIVER, and is distributed under the
// OSI-approved BSD 3-Clause License. See top-level LICENSE file or
// https://github.com/Kitware/kwiver/blob/master/LICENSE for details.
#ifndef KWIVER_VITAL_PLUGIN_LOADER... |
bobheadxi/seer | config/doc.go | <filename>config/doc.go
// Package config defines server configuration and various loaders for them
package config
|
geofffranks/cloud_controller_ng | lib/cloud_controller/blobstore/fog/fog_client.rb | <reponame>geofffranks/cloud_controller_ng
require 'fileutils'
require 'find'
require 'mime-types'
require 'cloud_controller/blobstore/fog/providers'
require 'cloud_controller/blobstore/base_client'
require 'cloud_controller/blobstore/fog/fog_blob'
require 'cloud_controller/blobstore/fog/cdn'
require 'cloud_controller/b... |
duvalale/Gladys | server/services/zwave/lib/commands/zwave.cancelControllerCommand.js | const logger = require('../../../../utils/logger');
/**
* @description Cancel
* @example
* zwave.cancelControllerCommand();
*/
function cancelControllerCommand() {
logger.debug(`Zwave : Cancelling controller command`);
this.zwave.cancelControllerCommand();
}
module.exports = {
cancelControllerCommand,
};
|
Nurzamal/rest_api_docker | vbox/src/VBox/Frontends/VirtualBox/src/hostnetwork/UIHostNetworkUtils.cpp | /* $Id: UIHostNetworkUtils.cpp 66860 2017-05-10 11:51:10Z vboxsync $ */
/** @file
* VBox Qt GUI - UIHostNetworkUtils namespace implementation.
*/
/*
* Copyright (C) 2017 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is f... |
mbitokhov/AdventOfCode2017 | src/day9.cpp | <gh_stars>0
#include "includes/adventofcode.hpp"
#include <iostream>
#include <string>
#include <functional>
size_t inline day9_find_unescaped(const std::string& input,
const size_t start=0,
char value='>',
char esca... |
liufuyang/scio | scalafix/input-0_8/src/main/scala/fix/FixJoinNames.scala | /*
rule = ConsistenceJoinNames
*/
package fix
import com.spotify.scio.values.SCollection
object FixJoinNames {
def changeJoinNames(
lhs: SCollection[(Int, String)],
rhs: SCollection[(Int, String)]
): SCollection[(Int, (String, Option[String]))] = {
lhs.hashLeftJoin(rhs)
lhs.sparseOuterJoin(rhs, ... |
MIAhmed/Kujui-POC | src/app/modules/explorer/accounts/accountsExplorer.config.js | function AccountsExplorerConfig($stateProvider) {
'ngInject';
$stateProvider
.state('app.accountsExplorer', {
url: '/explorer/accounts',
controller: 'AccountsExplorerCtrl',
controllerAs: '$ctrl',
templateUrl: 'modules/explorer/accounts/accountsExplorer.ht... |
Ostoic/distant | include/distant/synch.hpp | #pragma once
#include <distant/synch/mutex.hpp>
#include <distant/synch/wait.hpp>
|
bourneagain/pythonBytes | hangman.py | import random
import os
import sys
os.system("clear")
try:
readme=open("DATA/list.txt","r")
except IOError:
print "*** MISSING PROGRAM FILES ******* "
print "\n"
print " Please include files necessary for this game."
print " If you had copied this from someone else, ( author :... |
reflectometry/osrefl | osrefl/viewers/plot_2d.py | <reponame>reflectometry/osrefl
# -*- coding: utf-8 -*-
from pylab import imshow,cm,colorbar,hot,show,xlabel,ylabel,connect, plot, figure, draw, axis, gcf,legend
from numpy import ones, sum, arange, transpose, log
import matplotlib.colors as colors
from matplotlib.widgets import RectangleSelector
from colormap import c... |
Seren541/SimpleOS | src/kernel/fs/tar.c | /*
Copyright 2021 <NAME>
Licensed under MIT ( https://github.com/xing1357/SimpleOS/blob/main/LICENSE )
*/
#include "tar.h"
uint32 getsize(const char *in)
{
uint32 size = 0;
uint32 j;
uint32 count = 1;
for (j = 11; j > 0; j--, count *= 8)
size += ((in[j - 1] - '0') * count);
return s... |
isabella232/fbc-mobile-app-core | packages/@fbcmobile-ui/Utils/__tests__/nullthrows_test.js | /**
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict-local
* @format
*/
'use strict';
import nullthrows from '@fbcmobile/ui/Utils/nullth... |
rogelio-o/torrentflix | frontend/src/components/Layout/CustomNavbar.js | import "./CustomNavbar.css";
import React from "react";
import { Link } from "react-router-dom";
import { Collapse, Nav, Navbar, NavbarBrand, NavbarToggler, NavItem, NavLink } from "reactstrap";
import Logo from "./logo.png";
class CustomNavbar extends React.Component {
constructor(props) {
super(props);
t... |
ekera/qunundrum | src/linear_distribution_mpi.cpp | /*!
* \file linear_distribution_mpi.cpp
* \ingroup linear_distribution
*
* \brief The definition of functions for sending, receiving and broadcasting
* linear probability distributions.
*/
#include "linear_distribution.h"
#include "errors.h"
#include "linear_distribution_slice.h"
#include <mpi.h>... |
IllinoisSimulatorLab/szg | src/drivers/arConstantHeadFilter.cpp | <gh_stars>1-10
//********************************************************
// Syzygy is licensed under the BSD license v2
// see the file SZG_CREDITS for details
//********************************************************
#include "arPrecompiled.h"
#include "arConstantHeadFilter.h"
#include "arVRConstants.h"
DriverFact... |
pop1234o/BestPracticeApp | Video/src/main/java/com/liyafeng/video/Operating_system.java | package com.liyafeng.video;
public class Operating_system {
/**
* 见jni模块下
* @param args
*/
public static void main(String[] args) {
}
}
|
chegini91/mVis | mvis-src/src/main/java/at/tugraz/cgv/multiviewva/model/indexing/Index.java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package at.tugraz.cgv.multiviewva.model.indexing;
import com.google.common.base.Converter;
import com.google.common.collect.ImmutableM... |
luk4z7/pagarme-go | examples/search/search.go | // Copyright 2016 The <NAME> Author. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import (
"encoding/json"
"github.com/luk4z7/pagarme-go/auth"
"github.com/luk4z7/pagarme-go/lib/search"
"net/url"
"os"
)
var searchRecord ... |
Tall-Programacion-FIME/backend | app/app/tests/crud/test_book.py | <reponame>Tall-Programacion-FIME/backend<gh_stars>0
import random
from app.crud.crud_book import create_book
from app.schemas.book import BookCreate
from app.tests.utils.user import create_random_user
from faker import Faker
from sqlalchemy.orm import Session
def test_create_book(db: Session, fake: Faker) -> None:
... |
dr-js/dr-server | source/server/feature/StatReport/setup.js | import { responderSendJSON } from '@dr-js/core/module/node/server/Responder/Send'
import { createGetStatReport } from 'source/module/Stat/StatReport' // TODO: move to ActionJSON?
const setup = async ({
name = 'feature:stat-report',
loggerExot, routePrefix = '',
featureAuth: { authPack: { authFetch }, createResp... |
icza/sc2gears | src/hu/belicza/andras/sc2gears/ui/components/PlayerPopupMenu.java | /*
* Project Sc2gears
*
* Copyright (c) 2010 <NAME> <<EMAIL>>
*
* This software is the property of <NAME>.
* Copying, modifying, distributing, refactoring without the authors permission
* is prohibited and protected by Law.
*/
package hu.belicza.andras.sc2gears.ui.components;
import hu.belicza.and... |
anttisirkiafuturice/angular2todo | node_modules/angular2/es6/prod/src/web-workers/worker/broker.js | var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc);
switch (arguments.length) {
case 2: return decorators.reduceRight(function(o, d) ... |
DEFCON-MUD/defcon-28-mud-source | gurba/lib/domains/gurba/objects/hat.c | #include "../domain.h"
inherit "/std/armor";
void setup(void) {
set_id("sombrero", "hat");
set_adj("large", "huge");
set_short("A huge sombrero");
set_long("Your average sombrero.");
set_gettable(1);
set_slot("head");
set_wear_message("$N $vput $o on $p head.");
set_remove_message("$N $vtake o... |
mathewdgardner/sklearn-porter | examples/estimator/classifier/DecisionTreeClassifier/java/accuracy.py | # -*- coding: utf-8 -*-
from sklearn.tree import tree
from sklearn.datasets import load_iris
from sklearn_porter import Porter
iris_data = load_iris()
X, y = iris_data.data, iris_data.target
clf = tree.DecisionTreeClassifier()
clf.fit(X, y)
porter = Porter(clf)
accuracy = porter.predict_test([1.0, 2.0, 3.0, 4.0])
... |
drdla/cncjs | src/web/components_new/ActionLink.js | <filename>src/web/components_new/ActionLink.js
// @flow
/* eslint-disable no-undef */
/*
* Renders an icon that triggers an action on click, such as edit or delete.
* Shows the name of the action in a custom tooltip on hover.
*
* Usage:
* <ActionLink action="edit" onClick={() => { alert('clicked!'); }} isDisabled... |
SocraticGrid/Services-Backup | VACDS-Order-Service-Model/src/main/java/org/socraticgrid/hl7/services/orders/model/requirements/CollectionRequirement.java | package org.socraticgrid.hl7.services.orders.model.requirements;
import java.io.Serializable;
/**
* @author <NAME>
* @version 1.0
* @created 16-Jan-2014 9:12:40 AM
*/
public class CollectionRequirement extends Requirement implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
... |
calee0219/kali_Linux_Document | C/C_HW/HW10/HW10_0416037_1#B.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int graph[101][101];
int save[100];
int check[101];
void list(int num, int lenth);
int main()
{
int n, m;
scanf("%d%d", &n, &m);
while(n)
{
memset(graph, 0, 101*sizeof(int));
memset(check, 0, 101*sizeof(int));
for(size_t i = 0; i < m; ++i)
{
i... |
AlessandraFrancez/tcc-node | src/commons/utils/scheduler.utils.js | <filename>src/commons/utils/scheduler.utils.js<gh_stars>0
'use strict';
class SchedulerUtils {
constructor() {
this.Tweets = require('../../models/tweets.model');
this.Dictionary = require('../../models/dictionaries.model');
this.logger = require('../logger/logger');
this.moment = require('moment-tim... |
nikos912000/rhapsody | samples/src/main/java/com/expediagroup/rhapsody/samples/parallelism/KafkaArbitraryParallelism.java | <reponame>nikos912000/rhapsody
/**
* Copyright 2019 Expedia, 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 requir... |
gochaorg/cofe.xyz-next | sql/data-table/src/main/java/xyz/cofe/data/table/store/XmlStreamStorage.java | /*
* The MIT License
*
* Copyright 2017 user.
*
* 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, me... |
dazu1990/CEDH | src/containers/index.js | <gh_stars>1-10
import About from './about';
import CommanderList from './commander-list';
import UploadList from './upload-rec';
import Welcome from './welcome';
export { About, CommanderList, UploadList, Welcome };
|
cpesar/my-portfolio | portfolio/node_modules/@sanity/base/lib/datastores/grants/debug/exampleRoles.js | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getDebugRolesByNames = getDebugRolesByNames;
exports.exampleRoles = void 0;
var exampleRoles = {
// basic
administrator: {
name: 'administrator',
title: 'Administrator'
},
viewer: {
name: 'Viewer',
title: 'Vi... |
priyamshah112/Project-Descripton-Blog | tech_project/lib/python2.7/site-packages/cms/tests/frontend/unit/cms.pagetree.stickyheader.test.js | <reponame>priyamshah112/Project-Descripton-Blog
/* global document, window */
'use strict';
var CMS = require('../../../static/cms/js/modules/cms.base').default;
var PageTreeStickyHeader = require('../../../static/cms/js/modules/cms.pagetree.stickyheader').default;
var $ = require('jquery');
window.CMS = window.CMS ||... |
maximus-uk/SPFx_MultiList | node_modules/@microsoft/spfx-heft-plugins/node_modules/@microsoft/rush-lib/lib/cli/actions/ChangeAction.js | "use strict";
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProp... |
Antique/libxenserver | src/xen_vm.c | <reponame>Antique/libxenserver<filename>src/xen_vm.c<gh_stars>0
/*
* Copyright (c) <NAME>, 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 ... |
walmir/xare | core/src/test/java/wa/xare/core/node/LoggerNodeTest.java | <filename>core/src/test/java/wa/xare/core/node/LoggerNodeTest.java
package wa.xare.core.node;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.when;
import io.vertx.core.logging.JULLogDelegateFactory;
import io.vertx.core.logging.LoggerFactory;
import java.util.logging.Handl... |
sarang-apps/darshan_browser | third_party/blink/renderer/modules/webusb/usb_alternate_interface.h | <reponame>sarang-apps/darshan_browser
// 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.
#ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_WEBUSB_USB_ALTERNATE_INTERFACE_H_
#define THIRD_PARTY_BLINK_RENDERER_MODU... |
kolyden/uut-rpg | UUT/RPG/Level.cpp | #include "Level.h"
#include "LevelLayer.h"
namespace uutRPG
{
UUT_OBJECT_IMPLEMENT(Level)
{}
Level::Level()
{
}
void Level::SetSize(const Vector2& size)
{
_size = size;
}
const Vector2& Level::GetSize() const
{
return _size;
}
bool Level::AddLayer(const SharedPtr<LevelLayer>& layer)
{
return Ins... |
riyadth/2019-DeepSpace | src/main/java/com/spartronics4915/frc2019/auto/modes/CharacterizeDriveRemoteMode.java | package com.spartronics4915.frc2019.auto.modes;
import com.spartronics4915.frc2019.auto.AutoModeBase;
import com.spartronics4915.frc2019.auto.AutoModeEndedException;
import com.spartronics4915.frc2019.auto.actions.FeedRemoteCharacterization;
public class CharacterizeDriveRemoteMode extends AutoModeBase
{
@Overri... |
lewnelson/lewnelson-com | src/containers/rubixCube/index.js | <filename>src/containers/rubixCube/index.js
import RubixCube from './RubixCube'
export default RubixCube
|
ElArtista/AssetLoader | src/model/plyload.c | #include "assets/model/model.h"
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <stdio.h>
#include <assets/model/postprocess.h>
/*-----------------------------------------------------------------
* Data iterator
*---------------------------------------------------------------... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.