repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
dongdong1018645785/touch-air-mall | mall-member/src/main/java/com/touch/air/mall/member/dao/MemberCollectSpuDao.java | <reponame>dongdong1018645785/touch-air-mall
package com.touch.air.mall.member.dao;
import com.touch.air.mall.member.entity.MemberCollectSpuEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 会员收藏的商品
*
* @author bin.wang
* @email <EMAIL>
* @date 2020... |
noear/luffy | luffy.executor.m.velocity/src/main/java/org/noear/luffy/executor/m/velocity/XPluginImp.java | <gh_stars>1-10
package org.noear.luffy.executor.m.velocity;
import org.apache.velocity.runtime.directive.Directive;
import org.noear.solon.Solon;
import org.noear.solon.SolonApp;
import org.noear.solon.core.Aop;
import org.noear.solon.core.Plugin;
import org.noear.luffy.executor.ExecutorFactory;
public class XPluginI... |
asplos2020/DRTest | generate_adv/pure.py | <filename>generate_adv/pure.py<gh_stars>1-10
import sys
sys.path.append('../')
from tensorflow.python.platform import flags
from nmutant_model.model_operation import model_load
from nmutant_data.mnist import data_mnist
import tensorflow as tf
from nmutant_data.data import get_shape
from nmutant_util.utils_file import ... |
shimmeringbee/zda | persistence.go | package zda
import (
"encoding/json"
"fmt"
"github.com/shimmeringbee/da"
"github.com/shimmeringbee/da/capabilities"
"github.com/shimmeringbee/zigbee"
"sort"
)
type State struct {
Nodes map[zigbee.IEEEAddress]StateNode
}
type StateNode struct {
Devices map[uint8]StateDevice
Endpoints []zigbee.End... |
customweb/sass-compiler | src/test/java/com/customweb/sass/testcases/scss/AutomaticSassTestsBroken.java | <filename>src/test/java/com/customweb/sass/testcases/scss/AutomaticSassTestsBroken.java
/*
* Copyright 2000-2014 Vaadin 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://... |
zhangkn/iOS14Header | System/Library/PrivateFrameworks/TextToSpeech.framework/Frameworks/TextToSpeechBundleSupport.framework/TTSRegexHelper.h | /*
* This header is generated by classdump-dyld 1.0
* on Sunday, September 27, 2020 at 11:52:02 AM Mountain Standard Time
* Operating System: Version 14.0 (Build 18A373)
* Image Source: /System/Library/PrivateFrameworks/TextToSpeech.framework/Frameworks/TextToSpeechBundleSupport.framework/TextToSpeechBundleSupport
* cl... |
YarosJ/prestige-of-districts | tests/graphQL/task/schemas.js | import { gql } from 'apollo-server-express';
export default {
GET_TAGS: gql`
query {
tags
}
`,
ADD_TARGET: gql`
mutation($URL: String!, $tagPaths: [String], $freq: Int, $city: String, $country: String) {
addTarget(URL: $URL, tagPaths: $tagPaths, freq: $freq, city: $city, cou... |
charitha306/twister2 | twister2/resource-scheduler/src/java/edu/iu/dsc/tws/rsched/schedulers/k8s/mpi/MPIWorkerStarter.java | // 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 writing, software
// distribute... |
Maxul/sgx_vmx_protocol | Sandbox/qemu-sgx-master/qapi/qapi-clone-visitor.c | <filename>Sandbox/qemu-sgx-master/qapi/qapi-clone-visitor.c<gh_stars>1-10
/*
* Copy one QAPI object to another
*
* Copyright (C) 2016 Red Hat, Inc.
*
* This work is licensed under the terms of the GNU GPL, version 2 or later.
* See the COPYING file in the top-level directory.
*
*/
#include "qemu/osdep.h"
#incl... |
alchemz/mission-peace | [Tree]307. Range Sum Query - Mutable.cpp | class NumArray {
public:
NumArray(vector<int> &nums) {
num.resize(nums.size() + 1);
bit.resize(nums.size() + 1);
for (int i = 0; i < nums.size(); ++i) {
update(i, nums[i]);
}
}
void update(int i, int val) {
int diff = val - num[i + 1];
for (int j =... |
arnoSCC/allmark | services/converter/markdowntohtml/preprocessor/imagegallery.go | <filename>services/converter/markdowntohtml/preprocessor/imagegallery.go
// Copyright 2014 <NAME>. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package preprocessor
import (
"github.com/arnoSCC/allmark/common/paths"
"github.com/arnoSCC/... |
ivelin1936/Studing-SoftUni- | Programing Basic/Programming Basics - Exams/ProgrammingBasicsExam-19March2017-Evening/src/com/company/bills.java | package com.company;
import java.util.Scanner;
public class bills {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int months = Integer.parseInt(scanner.nextLine());
double electric = 0.00;
double water = 0.00;
double internet = 0.00;
... |
StepanMelnik/Java8Patterns | src/test/java/com/sme/java8/patterns/design/creational/builder/MapBuilderTest.java | <reponame>StepanMelnik/Java8Patterns
package com.sme.java8.patterns.design.creational.builder;
import static org.junit.Assert.assertEquals;
import java.util.HashMap;
import java.util.Map;
import org.junit.Test;
/**
* Unit tests of {@link MapBuilder}.
*/
public class MapBuilderTest
{
@Test
public void test... |
banli17/blog | 60-function-programming/14-lodash-fp.js | const fp = require('lodash/fp')
// fp 会返回 curry 后的函数,参数:数据置后
const f = fp.flowRight(fp.join('_'), fp.map(fp.toLower), fp.split(' '))
// 需求: HELLO WORLD -> hello-world
console.log(f(['HELLO WORLD']))
|
omegabyte/gaboom | gaboom/src/main/java/org/omegabyte/gaboom/transforms/model/ModelGenerational.java | <reponame>omegabyte/gaboom
package org.omegabyte.gaboom.transforms.model;
import org.apache.beam.sdk.transforms.ParDo;
import org.apache.beam.sdk.values.KV;
import org.apache.beam.sdk.values.PCollection;
import org.omegabyte.gaboom.Individuals;
import org.omegabyte.gaboom.transforms.Crossover;
import org.omegabyte.gab... |
chenyuhan1/Learning_record | Interview/js/offer.js | <gh_stars>0
function offer() {
}
console.log(parseInt(1101, 2)) |
Communitarian-Network/communitarian-discourse-plugin | lib/communitarian/engine.rb | # frozen_string_literal: true
module Communitarian
class Engine < ::Rails::Engine
engine_name "Communitarian".freeze
isolate_namespace Communitarian
config.after_initialize do
Discourse::Application.routes.append do
mount ::Communitarian::Engine, at: "/communitarian"
end
end
en... |
raffaelecarelle/platform-1 | src/Oro/Bundle/FormBundle/Resources/public/js/app/views/form-loading-view.js | <filename>src/Oro/Bundle/FormBundle/Resources/public/js/app/views/form-loading-view.js
define(function(require) {
'use strict';
const BaseView = require('oroui/js/app/views/base/view');
const FormSectionLoadingView = require('oroform/js/app/views/form-section-loading-view');
const $ = require('jquery')... |
otienodominic/kemunto | react-ui/src/Components/Posts/ShowPost/ShowPost.js | import Axios from 'axios'
import React, { useState, useEffect } from 'react'
import { useHistory } from 'react-router-dom';
import { Link } from 'react-router-dom'
import ToText from '../../../utils/ToText'
import './ShowPost.css'
import avtar from '../../../assets/avtar.jpg'
import Spinner from '../../../Containers/Sp... |
alexsmn/opcuapp | opcuapp/string.h | <reponame>alexsmn/opcuapp
#pragma once
#include <opcuapp/helpers.h>
#include <opcuapp/status_code.h>
#include <algorithm>
inline bool operator<(const OpcUa_String& a, const OpcUa_String& b) {
return std::strcmp(OpcUa_String_GetRawString(&a),
OpcUa_String_GetRawString(&b)) < 0;
}
namespace opcu... |
DxBillGates/FrogAdventure2 | GatesEngine/Header/Graphics/ShaderResourceHeap.h | <reponame>DxBillGates/FrogAdventure2
#pragma once
#include "..\Util\Math\Vector3.h"
#include "IShaderResourceHeap.h"
#include <d3d12.h>
namespace GE
{
class ShaderResourceHeap : public IShaderResourceHeap
{
private:
ID3D12Device* device;
ID3D12GraphicsCommandList* cmdList;
ID3D12DescriptorHeap* heap;
Math:... |
boost-entropy-repos-org/metasfresh | backend/de.metas.adempiere.adempiere/base/src/main/java/de/metas/event/ForwardingEventBus.java | <reponame>boost-entropy-repos-org/metasfresh
package de.metas.event;
import java.util.function.Consumer;
import org.slf4j.MDC.MDCCloseable;
import de.metas.event.impl.EventMDC;
import lombok.NonNull;
/**
* Forwarding {@link IEventBus} template implementation.
*
* @author tsa
*
*/
abstract class ForwardingEvent... |
sirAgg/nebula | tests/mathtest/bboxtest.cc | <filename>tests/mathtest/bboxtest.cc
//------------------------------------------------------------------------------
// bboxtest.cc
// (C) 2020 Individual contributors, see AUTHORS file
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "bboxtest.h"
#includ... |
grujicbr/aws-sdk-cpp | aws-cpp-sdk-ec2/source/model/EnableFastSnapshotRestoreSuccessItem.cpp | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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 License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... |
jsdelivrbot/alize | src/lib/helper/option.js | <gh_stars>0
'use strict';
import format from 'errors/format';
export function assertJSON(json, config, path = '') {
for (const prop in config) {
if (!config.hasOwnProperty(prop)
|| typeof config[prop] !== 'object' || config[prop] === null) {
continue;
}
const { type, checks, children } = c... |
scalamolecule/molecule-admin | server/src/main/scala/moleculeadmin/server/schema/Partition.scala | <reponame>scalamolecule/molecule-admin<gh_stars>1-10
package moleculeadmin.server.schema
import java.util
import java.util.{List => jList, Map => jMap}
import datomic.{Peer, Util}
import db.admin.dsl.moleculeAdmin._
import molecule.api.out15._
import molecule.facade.Conn
import moleculeadmin.server.Base
import molecul... |
windows-development/Windows-classic-samples | Samples/Win7Samples/Touch/MTGestures/cpp/MyGestureEngine.h | <reponame>windows-development/Windows-classic-samples
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// Copyright (c) Microsoft Co... |
zOadT/planck.js | example/ShapeEditing.js | <filename>example/ShapeEditing.js<gh_stars>1000+
/*
* MIT License
* Copyright (c) 2019 <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 li... |
iAmHades/node_web_basic | server/service/baseService.js | /**
* Created by Hades on 15/3/19.
* 基础服务类,其他服务类,请继承它
*/
'use strict'
const mongodbDao = require('../storage/mongodbDao').getWorkInstance()
class BaseService {
constructor (tableName) {
this.TABLE_NAME = tableName
}
/*
* 保存
* @prams:newData object对象
* @return:Object 保存的对象
*/
save ... |
lu-plus-plus/ama | test/test_define.cpp | /*
@ama
let nd_root=ParseCurrentFile({parse_indent_as_scope:1});
console.log(JSON.stringify(nd_root,null,1));
*/
#define A
#define B()
#define C 1
#define D -1
#define E (3)
#define F (a)(b)
|
tilemoon/tiga | lib/esbuild/build.js | const { build }= require('esbuild')
const fs = require('fs-extra')
const path = require('path')
const { createEsbuildHtml } = require('../html/html')
const { paramRequired } = require('../util')
const createConfig = require('./config')
const esBuild = async ({
entry = paramRequired('entry'),
outDir = paramRequir... |
ucl-exoplanets/TauREx3_public | taurex/cache/ciaacache.py | <reponame>ucl-exoplanets/TauREx3_public<filename>taurex/cache/ciaacache.py
"""
Contains caching class for Collisionally Induced Absorption files
"""
from taurex.core import Singleton
from taurex.log import Logger
class CIACache(Singleton):
"""
Implements a lazy load of collisionally induced absorpiton cross-s... |
terry-texas-us/Eo | GripPoints/OdGripPointsModule.h | #pragma once
#include "RxModule.h"
#include "StaticRxObject.h"
#include "Db2LineAngularDimGripPoints.h"
#include "Db3PointAngularDimGripPoints.h"
#include "DbAlignedDimGripPoints.h"
#include "DbArcGripPoints.h"
#include "DbArcDimGripPoints.h"
#include "DbDiametricDimGripPoints.h"
#include "DbLineGripPoints.h"
#include ... |
scala-steward-bot/rediscala | src/main/scala/redis/RedisCluster.scala | package redis
import java.util.concurrent.ThreadLocalRandom
import java.util.concurrent.TimeUnit
import akka.actor.ActorRef
import akka.actor.ActorSystem
import akka.event.Logging
import akka.util.ByteString
import redis.api.clusters.ClusterNode
import redis.api.clusters.ClusterSlot
import redis.protocol.RedisReply
im... |
PeterAhern/final-project-start-kit-practice | client/src/Components/Header/Navbar/DropdownItem.styles.js | <filename>client/src/Components/Header/Navbar/DropdownItem.styles.js
import styled from "styled-components";
export const DropdownItemStyles = styled.div`
height: 50px;
display: flex;
align-items: center;
border-radius: var(--border-radius);
transition: background var(--speed);
padding: 0.5rem... |
6freeair2016/incubator-shenyu | shenyu-examples/shenyu-examples-websocket/shenyu-example-spring-native-websocket/src/main/java/org/apache/shenyu/examples/websocket/handler/HttpAuthHandler.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 ... |
jiangjianli/qianyueweb | vue-element-admin/node_modules/vue-loader/lib/loaders/pitcher.js | const qs = require('querystring')
const loaderUtils = require('loader-utils')
const hash = require('hash-sum')
const selfPath = require.resolve('../index')
const templateLoaderPath = require.resolve('./templateLoader')
const stylePostLoaderPath = require.resolve('./stylePostLoader')
const isESLintLoader = l => /(\/|\\... |
UranusBlockStack/ovirt-engine | backend/manager/modules/builtin-extensions/src/main/java/org/ovirt/engine/extensions/aaa/builtin/kerberosldap/SearchLangageLDAPTokens.java | <reponame>UranusBlockStack/ovirt-engine
package org.ovirt.engine.extensions.aaa.builtin.kerberosldap;
public enum SearchLangageLDAPTokens {
$GIVENNAME,
$USER_ACCOUNT_TYPE,
$PRINCIPAL_NAME,
$LDAP_GROUP_CATEGORY,
$CN,
$USER_ACCOUNT_NAME,
$SAMACCOUNTNAME,
$SN,
$DEPARTMENT,
$TITLE,
... |
Graph-ICS/Graph-ICS | src/nodes/image.h | #ifndef IMAGE_H
#define IMAGE_H
#include "node.h"
class Image : public Node
{
Q_OBJECT
public:
explicit Image();
bool retrieveResult();
};
#endif // IMAGE_H
|
pec1985/go-clubhouse | api/models/Group.go | <reponame>pec1985/go-clubhouse
package models
// Group a Group.
type Group struct {
// AppURL the Clubhouse application url for the Group.
AppURL string `json:"app_url,omitempty"`
// Archived whether or not the Group is archived.
Archived bool `json:"archived,omitempty"`
// Description the description of the Grou... |
TOT0RoKR/tensorflow | tensorflow/core/data/service/test_util.cc | /* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
ipublic/marketplace | app/models/determinations/pfl_liability_determination.rb | class Determinations::PflLiabilityDetermination
include Mongoid::Document
end
|
wallamejorge/WirelessSensorGas | rtl/wirelessUSBDrivers/Linux/2010_0709_RT2870_Linux_STA_v2.4.0.1/include/crypt_aes.h | <reponame>wallamejorge/WirelessSensorGas
/*
*************************************************************************
* Ralink Tech Inc.
* 5F., No.36, Taiyuan St., Jhubei City,
* Hsinchu County 302,
* Taiwan, R.O.C.
*
* (c) Copyright 2002-2007, Ralink Technology, Inc.
*
* This program is free software... |
rafidude/100DaysOfCode | 1Library/csvFileParser.go | <reponame>rafidude/100DaysOfCode<filename>1Library/csvFileParser.go
package main
import (
"fmt"
"io/ioutil"
"os"
"strconv"
"strings"
)
func main() {
ReadCSVFile("LifeTable.csv", ",")
}
// The objective of this function is to read a CSV file into memory
// Then parse each line by a separator and output data as ... |
gregmolnar/energy-sparks | db/migrate/2019-phase-3-milestone-9/20190918141133_add_pupil_analysis_to_school_configuration.rb | <filename>db/migrate/2019-phase-3-milestone-9/20190918141133_add_pupil_analysis_to_school_configuration.rb
class AddPupilAnalysisToSchoolConfiguration < ActiveRecord::Migration[6.0]
def change
add_column :configurations, :pupil_analysis_charts, :json, default: {}, null: false
end
end
|
jmittert/cpp-docs | docs/mfc/codesnippet/CPP/cdaorecordset-class_7.cpp | <gh_stars>10-100
SetFieldDirty(&m_strParam); |
sotaoverride/backup | openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/util-linux/2.33.2-r0/util-linux-2.33.2/libblkid/src/partitions/atari.c | /*
* atari partitions parsing code
*
* Copyright (C) 2018 <NAME> <<EMAIL>>
*
* This file may be redistributed under the terms of the
* GNU Lesser General Public License.
*
* Based on Linux kernel implementation and atari-fdisk
*/
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
... |
MrDeym/DesInventar | src/org/lared/desinventar/webobject/MetadataNationalValues.java | //PACKAGE NAME
package org.lared.desinventar.webobject;
import java.io.*;
import java.util.*;
import java.sql.*;
import java.math.*;
import java.text.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
//CLASS NAME
// generated by WebObjectGenerator... |
novatel/novatel_edie | src/decoders/novatel/src/filters/timefilter.cpp | ////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2020 NovAtel Inc.
//
// 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 restrictio... |
ifm/ifm3d | modules/tools/include/ifm3d/tools/reboot_app.h | <filename>modules/tools/include/ifm3d/tools/reboot_app.h<gh_stars>10-100
// -*- c++ -*-
/*
* Copyright 2018-present ifm electronic, gmbh
* Copyright 2017 Love Park Robotics, LLC
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef __IFM3D_TOOLS_REBOOT_APP_H__
#define __IFM3D_TOOLS_REBOOT_APP_H__
#include <string>
#in... |
nashsibanda/dancey | validation/seller.joiSchema.js | const Joi = require("@hapi/joi");
Joi.objectId = require("joi-objectid")(Joi);
const countries = require("./countries");
const sellerValidation = Joi.object({
sellerName: Joi.string()
.max(200)
.label("Seller name")
.alter({ new: schema => schema.required() }),
adminUserIds: Joi.array()
.min(1)
... |
pulibrary/figgy | app/validators/source_metadata_identifier_or_title_validator.rb | # frozen_string_literal: true
class SourceMetadataIdentifierOrTitleValidator < ActiveModel::Validator
def validate(record)
return if record.source_metadata_identifier.present? || Array.wrap(record.title).first.present?
record.errors.add(:title, "You must provide a source metadata id or a title")
record.er... |
walkdianzi/DSCategories | Categories/Foundation/NSString/NSString+Code.h | //
// NSString+Code.h
// zhefengle
//
// Created by dasheng on 16/7/2.
// Copyright © 2016年 vanwell. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSString (Code)
//URLEncode
/**
* URLEncode
*
* @param unencodedString
*
* @return
*/
- (NSString *)encodeString;
//URLDEcode
- (NSSt... |
yosuperdope/OpenPype | openpype/modules/default_modules/project_manager_action.py | from openpype.modules import OpenPypeModule
from openpype_interfaces import ITrayAction
class ProjectManagerAction(OpenPypeModule, ITrayAction):
label = "Project Manager (beta)"
name = "project_manager"
admin_action = True
def initialize(self, modules_settings):
enabled = False
module... |
skvl/TermOx | include/termox/widget/widgets/cycle_stack.hpp | <filename>include/termox/widget/widgets/cycle_stack.hpp
#ifndef TERMOX_WIDGET_WIDGETS_CYCLE_STACK_HPP
#define TERMOX_WIDGET_WIDGETS_CYCLE_STACK_HPP
#include <memory>
#include <type_traits>
#include <utility>
#include <termox/painter/brush.hpp>
#include <termox/painter/color.hpp>
#include <termox/painter/glyph_string.h... |
dimchat/sdk-java | Plugins/src/test/java/CryptoRSATest.java | <reponame>dimchat/sdk-java<filename>Plugins/src/test/java/CryptoRSATest.java<gh_stars>1-10
import org.junit.Assert;
import org.junit.Test;
import java.util.HashMap;
import java.util.Map;
import chat.dim.crypto.DecryptKey;
import chat.dim.crypto.EncryptKey;
import chat.dim.crypto.PrivateKey;
import chat.dim.crypto.Pu... |
ButuzGOL/constructor | src/scripts/list.js | import React from 'react';
import Radium from 'radium';
import variables from './styles/variables';
@Radium
export default class List extends React.Component {
static propTypes = {
type: React.PropTypes.oneOf(['unordered', 'ordered']),
items: React.PropTypes.array.isRequired,
line: React.PropTypes.bool,... |
daybreak/daybreak | vendor/plugins/.freehand_templates/lib/freehand_templates.rb | $: << '/work/plugins/freehand/lib'
$: << '/work/gems/local_variable_set/lib'
require 'freehand'
require 'local_variable_set'
require 'action_view'
require 'action_view/base'
require 'iwish/blank_slate'
class Object
# The hidden singleton lurks behind everyone
def metaclass; class << self; self; end; end
def met... |
isabella232/tessapi | 3.05.02/a03469.js | var a03469 =
[
[ "base", "a03469.html#a5576d395de768c5a8d9e51a5fa040cef", null ],
[ "FunctionSignature", "a03469.html#a66a656b92a72e6dc74bf03934c3542ff", null ],
[ "_TessFunctionResultCallback_5_2", "a03469.html#a068dff747fbc555cf55c0bfe3409a64c", null ],
[ "Run", "a03469.html#ad80b1e2faa86f396a492e72d8... |
alicexuji/vueshop | myspringboot/src/main/java/com/zb/model/TokenResult.java | package com.zb.model;
import lombok.Getter;
import lombok.Setter;
import java.io.Serializable;
/**
* @Author: zhenwei.xu
* @Date: 2020/12/7 14:07
*/
@Getter
@Setter
public class TokenResult implements Serializable {
private static final long serialVersionUID = -4242865174080706499L;
priva... |
pouk/monocular | packages/types/src/Rectangle/scale.js | <gh_stars>0
const create = require('./create')
/**
* Scale rectangle by given coefficient
*
* @param {Number} n
* @param {Rectangle} rect
*
* @returns {Rectangle}
*/
function scale (n, rect) {
const { origin, width, height } = rect
return create(origin, width * n, height * n)
}
module.exports = scale
|
CanadaHealthInfoway/message-builder | message-builder-demiftifier/src/test/java/ca/infoway/demiftifier/svgifier/ChoiceShapeTest.java | <reponame>CanadaHealthInfoway/message-builder
/**
* Copyright 2013 Canada Health Infoway, 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... |
m991339394/xw | src/main/java/io/renren/modules/app/dao/UserUserRelationDao.java | package io.renren.modules.app.dao;
import io.renren.modules.app.model.po.UserUserRelationPO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* <p>
* Mapper 接口
* </p>
*
* @author jgl
* @since 2019-12-06
*/
@Mapper
public interface UserUserRelationDao ext... |
MrRisoni/commercify | src/main/java/pojo/JsonStringResponse.java | package pojo;
import com.fasterxml.jackson.annotation.JsonRawValue;
import com.fasterxml.jackson.annotation.JsonValue;
public class JsonStringResponse {
@JsonValue
@JsonRawValue
private String value;
public JsonStringResponse(String value) {
this.value = value;
}
}
|
IdoiaRojoLazaro/blockchain-developer-bootcamp-final-project | client/src/actions/auth.js | import { types } from '../types/types';
export const logout = () => ({ type: types.authLogout });
export const startChecking = () => {
const isAuthenticated = localStorage.getItem('isAuthenticated') || null;
return async dispatch => {
if (isAuthenticated) {
dispatch({
type: types.authLogin,
... |
open-garden/garden | Zipc_Webplatform/src/com/zipc/garden/webplatform/client/editor/cb/CBEditorKeyEventHolder.java | <gh_stars>1-10
package com.zipc.garden.webplatform.client.editor.cb;
import com.smartgwt.client.types.KeyNames;
import com.smartgwt.client.widgets.events.KeyPressEvent;
import com.smartgwt.client.widgets.events.KeyPressHandler;
import com.smartgwt.client.widgets.menu.events.MenuItemClickEvent;
/**
* Manage SCSS edit... |
HaoZhang95/PythonAndMachineLearning | 04WebServer/day02/basic03.py | """
io多路复用,好处在于单个process进程可以同时处理**多个网络连接**的io操作
单进程,单线程,一般只能实现一个io发收操作,多路io复用在windows使用的是IOCP,在Linux上使用的就是epoll
1- basic02.py我们使用的是for循环遍历服务器的client_socket列表去一一查看recv有没有数据,**不知道哪个socket收到信息**效率差,体验不好
2- 在epoll模型中,每个socket都是由操作系统来监控,recv到信息,操作系统就会通知**用户进程**,不需要**一一查看**
3- epoll的两种通知进程的模式
LT模式... |
hmajid2301/banter-bus-core-api | app/player/player_exceptions.py | from app.core.exceptions import ExistsException, NotFoundException
class PlayerExistsException(ExistsException):
pass
class PlayerNotFound(NotFoundException):
pass
class PlayerHasNoRoomError(NotFoundException):
pass
class PlayerNotHostError(NotFoundException):
def __init__(self, msg: str, player... |
vsosrc/jruby | bench/bench_tempfile.rb | require 'benchmark'
require 'tempfile'
COUNT = 1_000
WRITE_COUNT = 30
puts "#{COUNT} Tempfile.new(file)"
10.times {
puts Benchmark.measure {
i = 0
while i < COUNT
tf = Tempfile.new("heh")
i = i + 1
end
}
}
puts "#{COUNT} Tempfile.new(file);write;close"
10.times {
puts Benchmark.measure ... |
xzhan96/chromium.src | net/socket/fuzzed_socket_factory.cc | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/socket/fuzzed_socket_factory.h"
#include "base/logging.h"
#include "base/memory/ptr_util.h"
#include "base/test/fuzzed_data_provider.h"
#in... |
daojianyanying/ClassExhibit | ClassExhibit/ClassExhibitSDK/src/main/java/com/common/people/klass/exhibit/entity/attribute/LocalVariableTypeAttribute.java | package com.common.people.klass.exhibit.entity.attribute;
import com.common.people.klass.exhibit.entity.trunk.Attribute;
import java.util.ArrayList;
public class LocalVariableTypeAttribute extends Attribute implements AttributeInfo {
private Integer nameIndex;
private Integer length;
private Integer loca... |
aasensio/DeepLearning | DNHazel/mdn.py | import matplotlib.pyplot as pl
import numpy as np
import tensorflow as tf
import seaborn as sns
from ipdb import set_trace as stop
import os
os.environ["KERAS_BACKEND"] = "tensorflow"
from keras import backend as K
from keras.layers import Dense, Input, merge
from keras.models import Model
from sklearn.cross_validati... |
wietseligthart/keycloak | model/map/src/main/java/org/keycloak/models/map/authSession/MapAuthenticationSessionEntity.java | /*
* Copyright 2020 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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.apach... |
TForce1/pcg_gazebo | tests/test_model_factory.py | #!/usr/bin/env python
# Copyright (c) 2019 - The Procedural Generation for Gazebo authors
# For information on the respective copyright owner see the NOTICE file
#
# 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... |
bvisness/allwpilib | wpilibc/src/main/native/cpp/simulation/Mechanism2D.cpp | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2020 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... |
oferreira/react-boilerplate-restarted | src/features/CancelRules/actions/index.js | import {
HOTEL_GET_CANCELLATION_RULES,
HOTEL_GET_CANCELLATION_RULES_SUCCESS,
HOTEL_GET_WORDING_RULES,
HOTEL_GET_WORDING_RULES_SUCCESS,
HOTEL_GET_RULES_ERROR,
} from '../constants'
export const requestCancelRules = (resortId, rateCode) => ({
type: HOTEL_GET_CANCELLATION_RULES,
resortId,
rateCode,
})
ex... |
mojmir-svoboda/BlackBoxTT | plugins/bbFoomp/src/foobar2000.cpp | <reponame>mojmir-svoboda/BlackBoxTT<gh_stars>10-100
#if 0
#include <3rd_party/foobar2000/SDK/foobar2000.h>
#include <3rd_party/foobar2000/helpers/helpers.h>
//#include "m_listeningto.h"
#include <windows.h>
#include <process.h>
#define MIRANDA_DW_PROTECTION 0x8754
#define DATA_SIZE 1024
UINT timer = 0;
WCHAR lastSo... |
youpy-org/youpy | youpy/test/functional/sprite_api/Ball/Ball.py | <gh_stars>0
from youpy.code.english.control import console
from youpy.code.english.control import wait
from youpy.code.english.motion import change_y_by
def when_program_start(sprite):
console.print(f"Hello from Sprite '{sprite.name}'")
sprite.go_to(0, 0)
def when_space_key_pressed():
change_y_by(10)
... |
byzaneo/sdn-rx | examples/docs/src/test/java/org/neo4j/doc/springframework/data/docs/repositories/populators/PopulatorConfig.java | package org.neo4j.doc.springframework.data.docs.repositories.populators;
// tag::populators[]
import org.springframework.beans.factory.FactoryBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.io.Resource;
import org.sp... |
Wultyc/ISEP_1718_2A2S_REDSI_TrabalhoGrupo | REDSI_1160929_1161573/boost_1_67_0/libs/hof/test/protect.cpp | /*=============================================================================
Copyright (c) 2017 <NAME>
protect.cpp
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)
==================================... |
PANBOHE/Humanpose-fight | demo/alphaction/dataset/collate_batch.py | <filename>demo/alphaction/dataset/collate_batch.py
import math
def batch_different_videos(videos, size_divisible=0):
'''
:param videos: a list of video tensors
:param size_divisible: output_size(width and height) should be divisble by this param
:return: batched videos as a single tensor
'''
a... |
hedg-r52/job4j | utils/src/main/java/ru/job4j/utils/generators/TextFileGenerator.java | <reponame>hedg-r52/job4j<gh_stars>0
package ru.job4j.utils.generators;
import java.io.FileWriter;
import java.io.IOException;
/**
* @author <NAME> (<EMAIL>)
* @version $Id$
* @since 0.1
*/
public class TextFileGenerator {
private final StringGenerator stringGenerator = new StringGenerator();
public void ... |
whitfin/spack | var/spack/repos/builtin/packages/py-guidata/package.py | # Copyright 2013-2019 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 PyGuidata(PythonPackage):
"""Automatic graphical user interfaces generation for easy datas... |
DingWeizhe/f2-nodejs | test/demos/area.js | const F2 = require('../../index');
describe('area', () => {
describe('area normal', () => {
const canvas = document.createElement('canvas');
canvas.width = 500;
canvas.height = 500;
document.body.appendChild(canvas);
const data = [
{ time: '2016-08-08 00:00:00', tem: 10, city: 'beijing' }... |
fhornain/patternfly-react-seed_1 | node_modules/@patternfly/react-icons/dist/js/icons/inbox-icon.d.js | <reponame>fhornain/patternfly-react-seed_1<gh_stars>0
"use strict";
//# sourceMappingURL=inbox-icon.d.js.map |
astamate/hotel | src/main/java/com/tap5/bootStarter/TapestryApplication.java | <reponame>astamate/hotel
package com.tap5.bootStarter;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Created by code8 on 11/6/15.
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
... |
ishiura-compiler/CF3 | testsuite/EXP_1/test93.c | <reponame>ishiura-compiler/CF3
/*
CF3
Copyright (c) 2015 ishiura-lab.
Released under the MIT license.
https://github.com/ishiura-compiler/CF3/MIT-LICENSE.md
*/
#include<stdio.h>
#include<stdint.h>
#include<stdlib.h>
#include"test1.h"
int32_t t0 = 0;
static int64_t x12 = INT64_MIN;
int32_t t3 = 181;
uint8_t x25 =... |
dbtmurray/icu_tournament | lib/icu_tournament/team.rb | module ICU
#
# A team consists of a name and one or more players referenced by numbers.
# Typically the team will be attached to a tournament (ICU::Tournament)
# and the numbers will the unique numbers by which the players in that
# tournament are referenced. To instantiate a team, you must supply a
# name.... |
CI6/gmchain-core | src/network/p2p_networking.h | //
// p2p_networking.h
// gmchain-core
//
// Created by AnonymityMaster on 2019/12/18.
// Copyright © 2019 ci6. All rights reserved.
//
#ifndef p2p_networking_h
#define p2p_networking_h
#include <stdio.h>
typedef struct {
} P2PNetworking;
#endif /* p2p_networking_h */
|
lnkaruturi/JavaPrograms | Selinium/src/mercurytoots/Mercury.java | <gh_stars>0
package mercurytoots;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class Mercury {
public static void main(String[] args) throws InterruptedException {
System.setProperty("webdriver.chrome.driver", "C:\\Users\\<NAM... |
CharlesKimMaina/chattie | src/client/components/Loader/Loader.js | <filename>src/client/components/Loader/Loader.js
import React from 'react';
import './Loader.styles.css';
export default function Loader() {
return (
<div className="container">
<div className="canvas">
<div className="hour-glass"> </div>
</div>
</div>
);
}
|
BreakerOfThings/o3de | Code/Framework/AzToolsFramework/AzToolsFramework/Manipulators/TranslationManipulators.cpp | <filename>Code/Framework/AzToolsFramework/AzToolsFramework/Manipulators/TranslationManipulators.cpp
/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/... |
TongqiLiu/leetcode | Algorithms/Java/src/OneEditDistance/OneEditDistance.java | <gh_stars>1-10
package src.OneEditDistance;
/**
* @author mingqiao
* @Date 2020/10/12
*/
public class OneEditDistance {
/**
* 题目地址:https://leetcode-cn.com/problems/one-edit-distance/
* 先通过交换默认让ls<lt,然后就只剩两种情况满足条件了,复杂度O(N)
*
* @param s
* @param t
* @return
*/
public boolea... |
uk-gov-mirror/ONSdigital.census-worth-self-help | site/src/extra/report.js | <reponame>uk-gov-mirror/ONSdigital.census-worth-self-help
import React from "react"
import { graphql } from "gatsby"
import { css } from "@emotion/core"
import PageTitle from "../components/pagetitle"
import TextBlock from "../components/textblock"
import ReportItem from "../components/admin/reportItem"
import DatePick... |
graphcore/poplibs | lib/popsparse/FullyConnectedPlan.cpp | <filename>lib/popsparse/FullyConnectedPlan.cpp
// Copyright (c) 2020 Graphcore Ltd. All rights reserved.
#include "FullyConnectedPlan.hpp"
#include "PerformanceEstimation.hpp"
#include "SparseMetaInfo.hpp"
#include "popsparse/FullyConnectedParams.hpp"
#include "poplibs_support/Algorithm.hpp"
#include "poplibs_support... |
alibaba/FederatedScope | federatedscope/core/message.py | import sys
import json
import numpy as np
from federatedscope.core.proto import gRPC_comm_manager_pb2
class Message(object):
"""
The data exchanged during an FL course are abstracted as 'Message' in FederatedScope.
A message object includes:
msg_type: The type of message, which is used to trigger ... |
NASARace/race | race-swing/src/main/scala/gov/nasa/race/swing/FileSelectionPanel.scala | /*
* Copyright (c) 2016, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* The RACE - Runtime for Airspace Concept Evaluation platform is licensed
* under the Apache License, Version 2.0 (the "License"); you may not use... |
yjx0003/UBUGrades | src/main/java/es/ubu/lsi/ubumonitor/view/chart/risk/RiskBar.java | package es.ubu.lsi.ubumonitor.view.chart.risk;
import java.io.IOException;
import java.text.MessageFormat;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import ... |
Icohedron/Alexandria | app/src/main/java/ca/ualberta/CMPUT3012019T02/alexandria/model/holder/BookViewHolder.java | <reponame>Icohedron/Alexandria
package ca.ualberta.CMPUT3012019T02.alexandria.model.holder;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import ... |
neilneil0/bcstack-core | bluetooth/include/hci.h | <filename>bluetooth/include/hci.h
/*
Copyright 2013-2014 bcstack.org
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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.