repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
Quanscendence/braynai
coreapp/migrations/0073_auto_20200728_1624.py
# Generated by Django 2.2 on 2020-07-28 10:54 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('coreapp', '0072_auto_20200...
henry-hz/optimism
proxyd/integration_tests/batching_test.go
<filename>proxyd/integration_tests/batching_test.go<gh_stars>1-10 package integration_tests import ( "net/http" "os" "testing" "github.com/ethereum-optimism/optimism/proxyd" "github.com/stretchr/testify/require" ) func TestBatching(t *testing.T) { config := ReadConfig("batching") chainIDResponse1 := `{"jsonr...
SurgeTechnologies/Electro
ElectroEditor/src/Panels/SceneHierarchyPanel.cpp
// ELECTRO ENGINE // Copyright(c) 2021 - Electro Team - All rights reserved #include "SceneHierarchyPanel.hpp" #include "Core/Input.hpp" #include "UIUtils/UIUtils.hpp" #include "EditorLayer.hpp" namespace Electro { SceneHierarchyPanel::SceneHierarchyPanel(const Ref<Scene>& context) { ...
lanjue1/WMS-
src/components/SelectLang/index.js
<gh_stars>0 import React, { PureComponent } from 'react'; import { formatMessage, setLocale, getLocale } from 'umi-plugin-react/locale'; import { Menu, Icon } from 'antd'; import classNames from 'classnames'; import HeaderDropdown from '../HeaderDropdown'; import styles from './index.less'; import { connect } from 'dva...
globalhunter727/quiz
src/firebase/firebase.js
<gh_stars>1-10 import firebase from 'firebase'; // var firebaseConfig = { // apiKey: "<KEY>", // authDomain: "quizdom-70da5.firebaseapp.com", // projectId: "quizdom-70da5", // storageBucket: "quizdom-70da5.appspot.com", // messagingSenderId: "706147557425", // appId: "1:706147557425:web:40f7062...
bhismalab/START
START_frontend/Sources/StartApp/app/src/main/java/com/reading/start/data/response/ResponseLanguages.java
package com.reading.start.data.response; import com.reading.start.data.entity.DataLanguages; public class ResponseLanguages extends BaseResponseData<DataLanguages> { }
aland1013/coding-interview-questions
chapter-4/4.5-validate-bst.js
class Node { constructor(value) { this.value = value; this.left = null; this.right = null; } } const validateBST = ( root, min = Number.NEGATIVE_INFINITY, max = Number.POSITIVE_INFINITY ) => { if (root) { if (root.value < min || root.value > max) return false; return ( validateBS...
ducminh-phan/final-project-template
tests/controllers/test_probe.py
<reponame>ducminh-phan/final-project-template def test_ping(client): response = client.get("/ping") assert response.status_code == 405 response = client.post("/ping") assert response.status_code == 200
trist725/mgsu
network/websocket/v1/session_manager.go
<filename>network/websocket/v1/session_manager.go package websock_v1 import ( "sync" ) type sessionManager struct { sessions map[SessionID]*Session open bool rwmutex *sync.RWMutex } func newSessionManager() *sessionManager { return &sessionManager{ sessions: make(map[SessionID]*Session), open: true...
caladri/glatt
mk/platform/testmips/platform/platform_clock.c
#include <core/types.h> #include <core/critical.h> #include <core/error.h> #include <cpu/cpu.h> #include <cpu/memory.h> #include <platform/clock.h> #define TEST_RTC_DEV_BASE (0x15000000) #define TEST_RTC_DEV_TRIGGER (0x0000) #define TEST_RTC_DEV_USECONDS (0x0020) #define TEST_RTC_DEV_FUNCTION(f) \ (volatile uin...
gaoht/house
java/classes2/com/megvii/zhimasdk/b/a/e/f.java
<filename>java/classes2/com/megvii/zhimasdk/b/a/e/f.java package com.megvii.zhimasdk.b.a.e; import com.megvii.zhimasdk.b.a.n; import java.io.InterruptedIOException; public class f extends InterruptedIOException { private final n a = null; public f() {} public f(String paramString) { super(paramStr...
carrossos/plib
src/main/java/net/carrossos/plib/io/velocity/Velocity.java
<reponame>carrossos/plib<filename>src/main/java/net/carrossos/plib/io/velocity/Velocity.java package net.carrossos.plib.io.velocity; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintWriter; import java.io.Writer; import java.nio.charset.StandardCharsets; import java.nio.file.Files;...
hyanwong/eol
spec/helpers/hierarchies_helper_spec.rb
require "spec_helper" describe HierarchiesHelper do describe '#en_browsable_status' do before do @hierarchy = build_stubbed(Hierarchy) @hierarchy.stub(:browsable?) { false } @hierarchy.stub(:request_publish) { false } end it 'blank hierarchies are unknown' do expect(helper.en_b...
Rouzip/qiniu-go-sdk
api.v8/kodo/token.go
package kodo import ( "encoding/base64" "encoding/json" "errors" "strconv" "strings" "time" "github.com/qiniupd/qiniu-go-sdk/api.v8/auth/qbox" "github.com/qiniupd/qiniu-go-sdk/x/url.v7" ) // ---------------------------------------------------------- // 根据空间(Bucket)的域名,以及文件的 key,获得 baseUrl。 // 如果空间是 public 的...
kokosing/hue
apps/oozie/src/oozie/static/oozie/js/workflow.registry.js
<filename>apps/oozie/src/oozie/static/oozie/js/workflow.registry.js // Licensed to Cloudera, Inc. under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. Cloudera, Inc. licenses this file // to you under the Ap...
paranoid-software/elemental-cms
tests/management/globaldepscommands/test_pushcommandshould.py
import datetime import os import re import pytest from assertpy import assert_that from bson import ObjectId, json_util from click.testing import CliRunner from elementalcms.core import MongoDbContext, FlaskContext from elementalcms.management import cli from tests import EphemeralMongoContext, EphemeralElementalFile...
InnovativeDigitalSolution/NASA_astrobee_gds
org.vlcj/uk/co/caprica/vlcj/test/drop/DropVideoPlayer.java
<reponame>InnovativeDigitalSolution/NASA_astrobee_gds /* * This file is part of VLCJ. * * VLCJ is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any l...
cyraxred/cybcode
tools/bixtractor/src/main/java/org/cybcode/tools/bixtractor/pbuf/PbufMapContext.java
package org.cybcode.tools.bixtractor.pbuf; import java.util.Map; class PbufMapContext implements PbufContext { private final int maxFieldId; private final Map<Integer, ? extends PbufFieldReceiver> receivers; public PbufMapContext(int maxFieldId, Map<Integer, ? extends PbufFieldReceiver> receivers) { ...
h2oai/daal
lang_interface/java/com/intel/daal/data_management/data/KeyValueDataCollection.java
<gh_stars>1-10 /* file: KeyValueDataCollection.java */ /******************************************************************************* * Copyright 2014-2017 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may...
LajosPolya/Spotify-API-Wrapper
src/main/java/com/lajospolya/spotifyapiwrapper/response/PlayHistory.java
package com.lajospolya.spotifyapiwrapper.response; /** * @author <NAME> * Represent the response of GetMePlayerRecentlyPlayed as described at * https://developer.spotify.com/documentation/web-api/reference-beta/ */ public class PlayHistory { private Context context; private String played_at; ...
johnsblatter/deeplearning4j
deeplearning4j-scaleout/spark/dl4j-spark-nlp/src/main/java/org/deeplearning4j/spark/text/accumulators/WordFreqAccumulator.java
<gh_stars>1-10 package org.deeplearning4j.spark.text.accumulators; import org.apache.spark.AccumulatorParam; import org.deeplearning4j.berkeley.Counter; /** * @author jeffreytang */ public class WordFreqAccumulator implements AccumulatorParam<Counter<String>> { @Override public Counter<String> addInPlace(C...
hangqiu/pixie
src/carnot/exec/udtf_source_node.cc
/* * Copyright 2018- The Pixie 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 applicable law or ag...
xiaofeifeifeis/c-tools
c-tablegen/src/test/java/com/bixuebihui/tablegen/dbinfo/ProcedureUtilsTest.java
<gh_stars>1-10 package com.bixuebihui.tablegen.dbinfo; import com.bixuebihui.BeanFactory; import com.bixuebihui.jdbc.IDbHelper; import org.junit.Before; import org.junit.Test; import java.sql.CallableStatement; import java.sql.Connection; import java.sql.DatabaseMetaData; import java.sql.SQLException; import java.uti...
trattoria/java8
2nd/src/jp/co/trattoria/chapter3_12/LatentImage.java
package jp.co.trattoria.chapter3_12; import java.util.ArrayList; import java.util.List; import java.util.function.UnaryOperator; import javafx.scene.image.Image; import javafx.scene.image.WritableImage; import javafx.scene.paint.Color; @FunctionalInterface interface ColorTransformer { Color apply(int x, int y, Colo...
tengqingya/strategyPractice
src/main/java/App.java
import original.BlackDog; import original.Dog; import original.RedDog; import original2.BlackDog2; import original2.Dog2; import original2.RedDog2; import strategyPractice.actionImpl.ColorRedImpl; import strategyPractice.actionImpl.FlyBlackImpl; import strategyPractice.actionImpl.FlyRedImpl; import strategyPractice.dog...
HundredBai/example.v1
apps/blog/router/middleware/auth.go
package middleware import ( "fmt" "github.com/shipengqi/example.v1/apps/blog/pkg/app" "github.com/shipengqi/example.v1/apps/blog/pkg/e" "github.com/shipengqi/example.v1/apps/blog/service" "github.com/gin-gonic/gin" ) func Authenticate(s *service.Service) gin.HandlerFunc { return func(c *gin.Context) { // Ski...
slipperyseal/B9
src/main/java/net/catchpole/B9/codec/transcoder/IntegerTranscoder.java
package net.catchpole.B9.codec.transcoder; import net.catchpole.B9.codec.stream.BitInputStream; import net.catchpole.B9.codec.stream.BitOutputStream; import java.io.IOException; class IntegerTranscoder implements TypeTranscoder<Integer> { public Integer read(BitInputStream in) throws IOException { if (!i...
grendizerufo/libapril
src/platforms/AndroidJNI_Platform.cpp
/// @file /// @version 3.5 /// /// @section LICENSE /// /// This program is free software; you can redistribute it and/or modify it under /// the terms of the BSD license: http://opensource.org/licenses/BSD-3-Clause #ifdef _ANDROID #include <jni.h> #include <gtypes/Vector2.h> #include <hltypes/hmap.h> #include <hlt...
kinetic-software/aws-sdk-go-v2
service/backup/api_op_ListRestoreJobs.go
<reponame>kinetic-software/aws-sdk-go-v2 // Code generated by smithy-go-codegen DO NOT EDIT. package backup import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/backup/types" "github.com/aws/smithy...
ozavala/IfSimply
app/controllers/courses_controller.rb
class CoursesController < ApplicationController before_filter :authenticate_user!, :except => [ :show, :show_all ] before_filter :get_club, :only => [ :create, :show_all, :sort ] before_filter :get_course, :only => [ :show, :edit, :update ] def show redirect_to club_sales_page_path(@course.club) and retu...
liftchampion/nativejson-benchmark
thirdparty/facil.io/lib/facil/core/types/fiobj/fiobj_json.h
#ifndef H_FIOBJ_JSON_H #define H_FIOBJ_JSON_H /* Copyright: <NAME>, 2017-2018 License: MIT */ #include "fiobj_ary.h" #include "fiobj_hash.h" #include "fiobj_numbers.h" #include "fiobj_str.h" #include "fiobject.h" #ifdef __cplusplus extern "C" { #endif /* *************************************************************...
onnoA/sample-collection
shop-demo-video/src/main/java/com/onnoa/shop/demo/video/config/FTPClientConfig.java
package com.onnoa.shop.demo.video.config; import com.onnoa.shop.demo.video.exception.VideoException; import lombok.extern.slf4j.Slf4j; import org.apache.commons.net.ftp.FTPClient; import org.apache.commons.net.ftp.FTPReply; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.a...
wix/petri
wix-petri-core/src/main/java/com/wixpress/petri/experiments/domain/DynamicFilterLoader.java
<reponame>wix/petri<gh_stars>100-1000 package com.wixpress.petri.experiments.domain; import com.google.common.reflect.ClassPath; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.File; import java.io.FileFilter; import java.io.IOException; import java.net.MalformedURLException; import java.net.U...
harshp8l/deep-learning-lang-detection
data/test/scala/394b3fcfa309b251157a5b1db76fda3039bcb0caWebSocketConfig.scala
package com.smile.love.websocket import org.springframework.context.annotation.Configuration import org.springframework.messaging.simp.config.MessageBrokerRegistry import org.springframework.web.socket.config.annotation.{AbstractWebSocketMessageBrokerConfigurer, EnableWebSocketMessageBroker, StompEndpointRegistry} ; ...
injecti0n/Dakplusplus
src/main/java/dakplusbackend/service/stubs/WorkingDayServiceStub.java
package dakplusbackend.service.stubs; import dakplusbackend.model.Employee; import dakplusbackend.model.WorkingDay; import dakplusbackend.service.WorkingDayService; import java.sql.SQLException; // TODO public class WorkingDayServiceStub implements WorkingDayService { @Override public WorkingDay addWorkingda...
inms-adarsh/perfi-app
app/screens/Customers/index.js
<gh_stars>0 import CustomersContainer from './CustomersContainer'; export default CustomersContainer;
ingeningridr/TelefoniaAutheV2
initial/src/main/java/com/example/springboot/telefonia/wsdl/request/ItemReferencia.java
<gh_stars>0 package com.example.springboot.telefonia.wsdl.request; import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement; import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; @JacksonXmlRootElement(localName = "itemReferencia") public class ItemReferencia { @JacksonX...
PollyWeng/NUC972
rootfs/usr/local/sbin/www/cgi-bin/xxx.c
<reponame>PollyWeng/NUC972<filename>rootfs/usr/local/sbin/www/cgi-bin/xxx.c #include "stdio.h" int main() { printf("Content-Type: text/plain\n\n"); printf("Hello world !\n"); printf("CGI test Ccccc..... !\n"); return 0; }
parti-xyz/curry-web
app/models/deprecated_event.rb
class DeprecatedEvent < ApplicationRecord include Statementable TEMPLATES = %w( default default_with_photo press ) TEMPLATES_SPECIAL = %w( map_with_assembly any_speech map speech sns ) belongs_to :user, optional: true belongs_to :project has_many :comments, as: :commentable has_many :speeches, dependent...
MrAwesomeRocks/caelus-cml
src/libraries/core/meshTools/sets/topoSets/topoSet.hpp
/*---------------------------------------------------------------------------*\ Copyright (C) 2011 OpenFOAM Foundation ------------------------------------------------------------------------------- License This file is part of CAELUS. CAELUS is free software: you can redistribute it and/or modify it under...
phatblat/macOSPrivateFrameworks
PrivateFrameworks/CoreFollowUp/FLTopLevelViewModel.h
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" #import "FLViewModel.h" @class FLFollowUpController, FLItemChangeObserver, NSString; @interface FLTopLevelViewModel : NSObject <FLViewModel> { FLFollowUpContro...
ZenMX/elasticsearch
x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/dataframe/stats/common/FoldValues.java
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ package org.elasticsearch.xpack.core.ml.dataframe.stats.common; import org.el...
Repast/repast.simphony
repast.simphony.core/test_watcher/repast/simphony/engine/watcher/PerfTest.java
package repast.simphony.engine.watcher; /** * @author <NAME> * @version $Revision: 1.1 $ $Date: 2005/12/21 22:26:02 $ */ public class PerfTest { int iterations = 20000000; public void run() { Generator gen = new Generator(); for (int i = 0; i < iterations; i++) { gen.run(); ...
vprilepskiy/java-a-to-z
chapter_003.2/src/main/java/ru/job4j/manager/client/Client.java
<reponame>vprilepskiy/java-a-to-z<filename>chapter_003.2/src/main/java/ru/job4j/manager/client/Client.java package ru.job4j.manager.client; import ru.job4j.manager.Actions; import ru.job4j.manager.Menu; import ru.job4j.manager.Settings; import java.io.IOException; import java.net.InetAddress; import java.net.Socket; ...
changhiskhan/rikai
python/rikai/types/rle.py
# Copyright 2021 Rikai 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 applicable law or agreed to in wri...
touxiong88/92_mediatek
custom/common/kernel/accelerometer/lis3dh/lis3dh.h
/* linux/drivers/hwmon/LIS3DH.c * * (C) Copyright 2008 * MediaTek <www.mediatek.com> * * LIS3DH driver for MT6516 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of ...
zhouwentong1993/qmq
qmq-remoting/src/main/java/qunar/tc/qmq/metainfoclient/MetaInfoClientHandler.java
/* * Copyright 2018 Qunar, 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 ...
LeiQiao/Parasite-Plugins
simple_html/simple_html_plugin.py
<reponame>LeiQiao/Parasite-Plugins from pa.plugin import Plugin from flask import Blueprint, request, send_file import glob import os import sys import pa import mimetypes import io from .frame import FrameDecorator from .inherit import InheritRoute class SimpleHTMLPlugin(Plugin): __pluginname__ = 'simple_html' ...
tfpractice/tfp_metaprogramming
lib/tfp_metaprogramming/callable/procs.rb
<filename>lib/tfp_metaprogramming/callable/procs.rb<gh_stars>0 module TfpMetaprogramming module Callable module Procs end end end require_relative 'procs/procster'
lenloe1/v2.7
protocol/zigbee/documentation/120-3023-000_AF_API/navtreeindex25.js
<filename>protocol/zigbee/documentation/120-3023-000_AF_API/navtreeindex25.js var NAVTREEINDEX25 = { "group__enums.html#gadf57a71380d591c6dfa4544b9ef46aa7":[2,0,4,714], "group__enums.html#gadf5fcf624e01dd0e9f44dae5db1a12ce":[2,0,4,343], "group__enums.html#gadf6ebb4ebbac27d7e0807a249b91e18c":[2,0,4,813], "group__enums.h...
King0987654/windows2000
private/windows/media/avi/mciavi.16/window.c
<gh_stars>10-100 /****************************************************************************** Copyright (C) Microsoft Corporation 1985-1991. All rights reserved. Title: window.c - Multimedia Systems Media Control Interface driver for AVI. ************************************************...
dvbu-test/PDTool
CISAdminApi7.0.0/src/com/compositesw/services/system/admin/user/DestroyUserRequest.java
package com.compositesw.services.system.admin.user; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for destroyUserRequest complex type. * * <p>The following schema fragment specifies the expected con...
adamanikiej/mettle-components
services.js
import Debounce from './src/services/debounce.js' import HtmlMarker from './src/services/html-marker.js' import HttpFetch from './src/services/http-fetch.js' import I18n from './src/services/i18n.js' import Observable from './src/services/observable.js' import ReadyState from './src/services/ready-state.js' import Role...
viant/mly
service/domain/transformer.go
package domain import ( "context" "fmt" tf "github.com/tensorflow/tensorflow/tensorflow/go" "github.com/viant/gtly" "github.com/viant/mly/shared/common" "github.com/viant/mly/shared/common/storable" ) //Transformer represents output transformer type Transformer func(ctx context.Context, signature *Signature, in...
lenxin/spring-security
rsocket/src/main/java/org/springframework/security/rsocket/api/PayloadExchange.java
<filename>rsocket/src/main/java/org/springframework/security/rsocket/api/PayloadExchange.java<gh_stars>0 package org.springframework.security.rsocket.api; import io.rsocket.Payload; import org.springframework.util.MimeType; /** * Contract for a Payload interaction. * * @author <NAME> * @since 5.2 */ public inte...
xwt-benchmarks/mongodb-rdbms-sync
src/main/java/com/cisco/app/dbmigrator/migratorapp/core/event/OracleToMongoEvent.java
<filename>src/main/java/com/cisco/app/dbmigrator/migratorapp/core/event/OracleToMongoEvent.java package com.cisco.app.dbmigrator.migratorapp.core.event; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java...
okket/homebrew-cask
Casks/spacelauncher.rb
<gh_stars>1-10 cask "spacelauncher" do version "1.4.13,85" sha256 :no_check url "https://spacelauncherapp.com/download/SpaceLauncher.zip" name "SpaceLauncher" homepage "https://spacelauncherapp.com/" livecheck do url "https://spacelauncherapp.com/download/appcast.xml" strategy :sparkle end ap...
lkun/enode
tests/src/test/java/org/enodeframework/tests/TestClasses/EventPublisherFailedTest.java
<reponame>lkun/enode package org.enodeframework.tests.TestClasses; import org.enodeframework.commanding.CommandResult; import org.enodeframework.commanding.CommandStatus; import org.enodeframework.common.io.AsyncTaskResult; import org.enodeframework.common.io.AsyncTaskStatus; import org.enodeframework.common.io.Task; ...
pablobacho/XBee-PSoC
Tx example.cydsn/main.c
/* The MIT License (MIT) Copyright (c) 2014 CAIMANICS (<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, copy, modify, ...
ciscoruiz/wepa
source/include/coffee/http/HttpRequest.hpp
<gh_stars>1-10 // MIT License // // Copyright (c) 2018 <NAME> (<EMAIL>) // // 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 // t...
YunLemon/orientdb-gremlin
driver/src/test/java/org/apache/tinkerpop/gremlin/orientdb/OPartitionedReCreatableDatabasePoolTest.java
<reponame>YunLemon/orientdb-gremlin package org.apache.tinkerpop.gremlin.orientdb; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNull; import com.orientechnologies.orient.core.db.OrientDB; import com.orientechnologies.orient.core.db.OrientDBConfig; import java.util.concurrent.Thread...
ashesh-0/MultiZoomGaze
code/run.py
""" This script can be used to train/evaluate different models described in MultiZoomGaze paper. """ import argparse import os import socket import sys from datetime import datetime import torch import torch.backends.cudnn as cudnn import torch.nn.parallel import torch.optim import torch.utils.data import torchvision ...
drienyov/treadmill
tests/sproc/export_reports_test.py
"""Unit tests for treadmill.sproc.export_reports. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import io import unittest import mock # Disable W0611: Unused import import tests.treadmill_test_skip_windows # ...
AspireWorld-Project/AspireCore
src/main/java/org/ultramine/server/internal/UMEventHandler.java
package org.ultramine.server.internal; import cpw.mods.fml.common.eventhandler.EventPriority; import cpw.mods.fml.common.eventhandler.SubscribeEvent; import cpw.mods.fml.common.functions.GenericIterableFactory; import cpw.mods.fml.common.gameevent.PlayerEvent.PlayerChangedDimensionEvent; import cpw.mods.fml.common.gam...
defstream/nl3
lib/text/singularize.js
/*jslint node: true */ /*global module, require*/ 'use strict'; var singular = require('pluralize').singular; /** * Given text, returns the singularized form. ie: cats => cat. * @param {String} text [description] * @return {String} [description] */ module.exports = function singularize(text) { //@info if ...
nbeaver/mx-trunk
libMx/d_bkprecision_912x_aio.h
/* * Name: d_bkprecision_912x_aio.h * * Purpose: Header file for MX analog I/O drivers for the BK Precision 912x * series of power supplies. * * Author: <NAME> * *------------------------------------------------------------------------- * * Copyright 2008 Illinois Institute of Technology * * Se...
chotto-martini/stocks_analyzer_core
app/com/stocks_analyzer/core/components/db/secure/dao/UsersDao.java
<reponame>chotto-martini/stocks_analyzer_core<gh_stars>0 package com.stocks_analyzer.core.components.db.secure.dao; import java.util.Date; import org.apache.commons.lang3.RandomStringUtils; import com.avaje.ebean.Ebean; import com.avaje.ebean.SqlUpdate; import com.stocks_analyzer.core.components.db.secure.UsersCompo...
zcjtom/cm_api
java/src/main/java/com/cloudera/api/v10/ServicesResourceV10.java
<filename>java/src/main/java/com/cloudera/api/v10/ServicesResourceV10.java // Licensed to Cloudera, Inc. under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. Cloudera, Inc. licenses this file // to you under...
apexxs/dldt
inference-engine/tests/unit/builders/network_builder_test.cpp
// Copyright (C) 2018 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <gtest/gtest.h> #include <string.h> #include <ie_builders.hpp> #include "builder_test.hpp" using namespace testing; using namespace InferenceEngine; class NetworkBuilderTest : public BuilderTestCommon { protected: std::v...
EkberAziz/Data_Structures-CSE_222-
HW01_CourseAutomationSystem/AIKEBOER_AIZEZI_131044086_HW01/src/test/java/com/mycompany/aikeboer_aizezi_131044086_hw01/FileTest.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 com.mycompany.aikeboer_aizezi_131044086_hw01; import org.junit.After; import org.junit.AfterClass; import org.junit.B...
GuoSuiming/mindspore
mindspore/nn/layer/combined.py
<filename>mindspore/nn/layer/combined.py # Copyright 2020 Huawei Technologies Co., Ltd # # 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...
porenes-ledger/ledger-live-common
src/families/algorand/tokens.js
// @flow export const addPrefixToken = (tokenId: string) => `algorand/asa/${tokenId}`; export const extractTokenId = (tokenId: string) => { return tokenId.split("/")[2]; };
clayne/Containers
libraries/datastruct/hash/lookup.c
/* -------------------------------------------------------------------------- * Name: lookup.c * Purpose: Associative array implemented as a hash * ----------------------------------------------------------------------- */ #include <stdlib.h> #include "datastruct/hash.h" #include "impl.h" const void *hash_loo...
camrun91/apollos-apps
packages/apollos-ui-kit/src/ActionCard/ActionCard.stories.js
import React from 'react'; import { storiesOf } from '@apollosproject/ui-storybook'; import CenteredView from '../CenteredView'; import BackgroundView from '../BackgroundView'; import Chip from '../Chip'; import Icon from '../Icon'; import { BodyText } from '../typography'; import ActionCard from './index'; storiesO...
guinardpaul/MERN-MP-Comp-tences
client/src/components/UI/Table/TableItems.js
import React from 'react'; /** Not Used */ const tableItems = props => <td>{props.data}</td>; export default tableItems;
tech-advantage/edc-client-java
src/main/java/fr/techad/edc/client/internal/DocumentationManagerImpl.java
/* * Copyright (c) 2017. All rights reserved */ package fr.techad.edc.client.internal; import fr.techad.edc.client.DocumentationManager; import fr.techad.edc.client.io.EdcReader; import fr.techad.edc.client.model.ContextItem; import fr.techad.edc.client.model.InvalidUrlException; import fr.techad.edc.client.util.Ke...
wangsun1983/Obotcha
io/FileInputStream.cpp
/** * @file FileInputStream.cpp * @brief FileInputStream obtains input bytes from a file in a file system. * @details none * @mainpage none * @author sunli.wang * @email <EMAIL> * @version 0.0.1 * @date 2019-07-12 * @license none */ #include "FileInputStream.hpp" #include "FileNotFoundException.hpp" #include ...
lechium/iOS1351Headers
System/Library/Frameworks/PassKit.framework/PKExtensionVendorContext.h
/* * This header is generated by classdump-dyld 1.5 * on Friday, April 30, 2021 at 11:37:30 AM Mountain Standard Time * Operating System: Version 13.5.1 (Build 17F80) * Image Source: /System/Library/Frameworks/PassKit.framework/...
DonaldPeat/ether-campaign
node_modules/webpack/lib/optimize/AggressiveMergingPlugin.js
<reponame>DonaldPeat/ether-campaign<filename>node_modules/webpack/lib/optimize/AggressiveMergingPlugin.js /* MIT License http://www.opensource.org/licenses/mit-license.php Author <NAME> @sokra */ "use strict"; class AggressiveMergingPlugin { constructor(options) { if(options !== undefined && typeof option...
BantorSchwanzVor/plotscanner-leak
net/minecraft/entity/ai/EntityAIRestrictOpenDoor.java
package net.minecraft.entity.ai; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityCreature; import net.minecraft.pathfinding.PathNavigateGround; import net.minecraft.util.math.BlockPos; import net.minecraft.village.Village; import net.minecraft.village.VillageDoorInfo; public class EntityAIRestri...
freedomloveme/Aspose.Words-for-Java
ApiExamples/src/main/java/ExHtmlLoadOptions.java
<reponame>freedomloveme/Aspose.Words-for-Java<gh_stars>0 ////////////////////////////////////////////////////////////////////////// // Copyright (c) 2001-2018 Aspose Pty Ltd. All Rights Reserved. // // This file is part of Aspose.Words. The source code in this file // is only intended as a supplement to the documentati...
lechium/iOS1351Headers
usr/libexec/installcoordinationd/IXClientProtocolInterface.h
<filename>usr/libexec/installcoordinationd/IXClientProtocolInterface.h // // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 <NAME>. // #import <objc/NSObject.h> @interface IXClientProtocolInterface : NSObject { } + ...
sphereio/jvm-sdk-deploy-tests
commercetools-models/src/test/java/io/sphere/sdk/models/AddressTest.java
package io.sphere.sdk.models; import com.neovisionaries.i18n.CountryCode; import org.junit.Test; import static org.assertj.core.api.Assertions.*; public class AddressTest { @Test public void equalsIgnoreId() { final Address addressWithoutId = Address.of(CountryCode.DE); final Address addressW...
michalstutzmann/scala-util
src/main/scala/com/github/mwegrz/scalautil/kafka/KafkaClient.scala
<reponame>michalstutzmann/scala-util package com.github.mwegrz.scalautil.kafka import akka.{ Done, NotUsed } import akka.actor.ActorSystem import akka.kafka.ConsumerMessage.{ CommittableMessage, CommittableOffset } import akka.kafka.scaladsl.{ Consumer, Producer } import akka.kafka.{ ConsumerSettings, ProducerMessage,...
dev-nm/CommunityServer
web/studio/ASC.Web.Studio/js/asc/core/clipboard.js
<filename>web/studio/ASC.Web.Studio/js/asc/core/clipboard.js /* * * (c) Copyright Ascensio System Limited 2010-2020 * * 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...
alexbibov/ra_framework
ra/src/ray_generator_with_output_buffer.h
<gh_stars>1-10 #ifndef RA_RAY_GENERATOR_WITH_OUTPUT_BUFFER_H #define RA_RAY_GENERATOR_WITH_OUTPUT_BUFFER_H #include "ray_generator.h" #include "ray_casters/ra_ray_casters_fwd.h" namespace ra { class RaRayGeneratorWithOutputBuffer : public RaRayGenerator { public: RaRayGeneratorWithOutputBuffer(RaProgram const& r...
ihmcrobotics/ihmc-open-robotics-software
ihmc-trajectory-optimization/src/main/java/us/ihmc/trajectoryOptimization/DiscreteHybridDynamics.java
package us.ihmc.trajectoryOptimization; import org.ejml.data.DMatrixRMaj; public interface DiscreteHybridDynamics<E extends Enum> { void setTimeStepSize(double deltaT); int getStateVectorSize(); int getControlVectorSize(); int getConstantVectorSize(); /** f */ void getNextState(E hybridState, DMatr...
webos21/xi
java/jcl/src/java/java/util/concurrent/ConcurrentLinkedDeque.java
<filename>java/jcl/src/java/java/util/concurrent/ConcurrentLinkedDeque.java /* * Written by <NAME> and <NAME> with assistance from members of * JCP JSR-166 Expert Group and released to the public domain, as explained * at http://creativecommons.org/licenses/publicdomain */ package java.util.concurrent; import jav...
drpicox/david-rodenas.com
src/shared/Container.js
import React from "react" import { css } from "@emotion/core" const containerCss = css` margin: 0 auto; max-width: 37rem; padding: 0 0.5rem; ` export default function Container({ children, className }) { return ( <div css={containerCss} className={className}> {children} </div> ) }
DanielMBytes/2D_PlatformerGame_Dino
src/KeyboardController.h
<gh_stars>0 // // Created by <NAME> on 6/29/20. // #ifndef KeyboardController_H #define KeyboardController_H #include <SDL2/SDL.h> class KeyboardController { public: static KeyboardController *getInstance() { return s_Instance = (s_Instance != nullptr) ? s_Instance : new KeyboardController(); } ...
tanhleno/pegparser
test/c89/test/no/invalidExpr01.c
<gh_stars>1-10 /* invalid expression */ enum { a = }; /*OK: enum { a = 1 }; enum { a }; */
yuanjiejiahui/background_Management
back/src/main/java/com/vector/manager/sys/entity/Role.java
package com.vector.manager.sys.entity; import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.IdType; import java.util.Date; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.FieldFill; import com.baomidou.mybatisplus.annotation.Tab...
Shalini180/LeetCode-Solutions
Matrix/1351. Count Negative Numbers in a Sorted Matrix/Brute Force/Solution.java
<reponame>Shalini180/LeetCode-Solutions class Solution { public int countNegatives(int[][] grid) { int count = 0; for(int i=0; i<grid.length; i++) for(int j=0; j<grid[0].length; j++) if(grid[i][j] < 0) count++; return count; } }
Michael1117/java
maven_mysql/src/main/java/com/dao/ItemsDao.java
<filename>maven_mysql/src/main/java/com/dao/ItemsDao.java<gh_stars>0 package com.dao; import com.shoo.domain.Items; import java.util.List; public interface ItemsDao { public List<Items> findAll(); }
peterson79/pycom-micropython-sigfox
tests/float/builtin_float_round.py
# test round() with floats # check basic cases tests = [ [0.0], [1.0], [0.1], [-0.1], [123.4], [123.6], [-123.4], [-123.6], [1.234567, 5], [1.23456, 1], [1.23456, 0], [1234.56, -2] ] for t in tests: print(round(*t)) # check .5 cases for i in range(11): print(round((i - 5) / 2)) # test second arg # TO...
Domiii/sdt-for-javac
compiler/src/edu/ntu/compilers/lab4/tokens/TokenEmitter.java
<reponame>Domiii/sdt-for-javac package edu.ntu.compilers.lab4.tokens; /** * Used to emit a token, based on it's category and content */ public interface TokenEmitter { Token emitToken(String content); }
ingot-cloud/ingot-go
pkg/framework/security/oauth2/provider/accessor/default_security_context_accessor.go
package accessor import ( "github.com/ingot-cloud/ingot-go/pkg/framework/security/core" "github.com/ingot-cloud/ingot-go/pkg/framework/security/core/ingot" "github.com/ingot-cloud/ingot-go/pkg/framework/security/oauth2/provider/authentication" ) // DefaultSecurityContextAccessor 默认实现 type DefaultSecurityContextAcc...
curtiscai/curtis-base
curtis-apache/src/main/java/com/curtis/apache/lang3/enums/CoordinateSystemEnum.java
<gh_stars>1-10 package com.curtis.apache.lang3.enums; /** * @author curtis.cai * @desc TODO * @date 2021-11-24 * @email <EMAIL> * @reference */ public enum CoordinateSystemEnum { WGS84("wgs84", 1), GCJ02("gcj02", 2), BD09("bd09", 3); private String coordinateSystemLabel; private Integer coor...
CourtHive/competitionFactory
src/tournamentEngine/tests/drawDefinitions/finishingPositions.test.js
<gh_stars>1-10 import { getAppliedPolicies } from '../../../drawEngine/governors/policyGovernor/getAppliedPolicies'; import { eventConstants } from '../../../constants/eventConstants'; import { drawEngine } from '../../../drawEngine/sync'; import mocksEngine from '../../../mocksEngine'; import { tournamentEngine } from...
wlliuCode/myth-blog
myth-auth/src/main/java/com/myth/auth/entity/SysPermission.java
package com.myth.auth.entity; import com.myth.common.core.base.BaseEntity; import lombok.Data; import java.util.List; @Data public class SysPermission { private static final long serialVersionUID = 8197268080561607208L; private Integer id; private String permissionName; private String permissionUrl; ...