repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
hfbin/LibraPlatform
libra-common/libra-common-mybatis/src/main/java/cn/hfbin/common/database/MybatisPlusConfig.java
/* * Copyright [2021] [LibraPlatform of copyright huangfubin] * * 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 * * U...
nard-tech/nard_rails
app/validators/nard/rails/text.rb
<filename>app/validators/nard/rails/text.rb # テキストに関連するバリデーションのクラスとエラーのクラスを格納する名前空間 module Nard::Rails::Text end
ragupta-git/ucscentralsdk
ucscentralsdk/mometa/trig/TrigMeta.py
<reponame>ragupta-git/ucscentralsdk<gh_stars>0 """This module contains the general information for TrigMeta ManagedObject.""" from ...ucscentralmo import ManagedObject from ...ucscentralcoremeta import UcsCentralVersion, MoPropertyMeta, MoMeta from ...ucscentralmeta import VersionMeta class TrigMetaConsts(): ADM...
kucjac/clego
xminio/xminiomock/object_gen.go
<filename>xminio/xminiomock/object_gen.go // Code generated by MockGen. DO NOT EDIT. // Source: github.com/kucjac/cleango/xminio (interfaces: ObjectPutterGetter,Object) // Package xminiomock is a generated GoMock package. package xminiomock import ( context "context" io "io" reflect "reflect" gomock "github.com/...
dansebmey/iaf
core/src/main/java/nl/nn/adapterframework/configuration/classloaders/IConfigurationClassLoader.java
<filename>core/src/main/java/nl/nn/adapterframework/configuration/classloaders/IConfigurationClassLoader.java /* Copyright 2019 Nationale-Nederlanden 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...
cnm06/Competitive-Programming
Practice/Coding Blocks/Competitive Warriors Challenge 1.0/Simple Input.py
<filename>Practice/Coding Blocks/Competitive Warriors Challenge 1.0/Simple Input.py sum = 0 while 1: n = int(raw_input()) sum += n if sum < 0: break print n
alizeait/fela
packages/fela-plugin-theme-value/src/__tests__/themeValue-test.js
<gh_stars>1000+ import themeValue from '../index' const theme = { colors: { foreground: { primary: 'red', secondary: 'blue', }, background: { primary: 'black', secondary: 'white', }, }, fonts: { text: 'Helvetica Neue, Arial, sans-serif', heading: 'Impact, serif', ...
kebernet/erigo
ios/app/Erigo/com/google/common/hash/Hashing.h
<gh_stars>1-10 // // Generated by the J2ObjC translator. DO NOT EDIT! // source: /Volumes/Personal/Documents/raspi-config/client-framework/build/j2oSources/com/google/common/hash/Hashing.java // #include "J2ObjC_header.h" #pragma push_macro("INCLUDE_ALL_ComGoogleCommonHashHashing") #ifdef RESTRICT_ComGoogleCommonH...
muxanick/scala-native-java-stubs
javax/management/ObjectInstance.scala
package javax.management import java.io.Serializable import java.lang.{Object, String} import scala.scalanative.annotation.stub /** Used to represent the object name of an MBean and its class name. * If the MBean is a Dynamic MBean the class name should be retrieved from * the MBeanInfo it provides. */ class Obj...
Tinindo/api-jupiter
dist/src/useCases/Users/LIstUsers/ListUsersUseCase.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ListUsersUseCase = void 0; class ListUsersUseCase { constructor(usersRepository) { this.usersRepository = usersRepository; } async execute(limit, offset) { const users = await this.usersRepository.list(limit...
ishiura-compiler/CF3
testsuite/EXP_5/test798.c
/* 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" static uint64_t t0 = 3084LLU; int16_t x6 = INT16_MAX; uint64_t x11 = UINT64_MAX; uint64_t x12 = 48097707356638...
cmri/BC-BSP
src/java/com/chinamobile/bcbsp/sync/GeneralSSController.java
<gh_stars>1-10 /** * CopyRight by Chinamobile * * GeneralSSController.java */ package com.chinamobile.bcbsp.sync; import java.util.ArrayList; import java.util.List; import org.apache.commons.logging.LogFactory; import org.apache.zookeeper.CreateMode; import org.apache.zookeeper.KeeperException; import org.apache...
Xzg-github/web_service
src/api/signature/account_management/enterprise_account_management/config.js
import {pageSize, pageSizeType, description, searchConfig} from '../../../gloablConfig'; const person = '/api/signature/account_management/enterprise_account_management/dropPerson'; const oneControls = [ {key:'dgyhzh',title:'对公银行账号',type:'text',required:true, btn:{title:"获取验证码",key:'code'}}, {key:'dgyhmc',title...
andela/ah-backend-prime
authors/apps/social_auth/twitter_auth.py
<reponame>andela/ah-backend-prime import twitter from authors.settings import TWITTER_CONSUMER_API_KEY, TWITTER_CONSUMER_API_SECRET class TwitterAuthHandler: '''This Class handles twitter token decoding and verification''' @staticmethod def validate_twitter_auth_tokens(tokens): '''This function sp...
Ptival/semtk
sparqlGraphLibrary/src/main/java/com/ge/research/semtk/edcquerygen/client/EdcQueryGenClient.java
<gh_stars>10-100 /** ** Copyright 2016-2020 General Electric Company ** ** ** 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 ** ...
ljcservice/autumn
src/main/java/com/hitzd/his/RowMapperBeans/LabTestItemsMapper.java
<reponame>ljcservice/autumn package com.hitzd.his.RowMapperBeans; import java.sql.ResultSet; import java.sql.SQLException; import org.springframework.jdbc.core.RowMapper; import com.hitzd.his.Beans.TLabTestItems; /** * 检验项目 * @author Administrator * */ public class LabTestItemsMapper implements...
masud-technope/ACER-Replication-Package-ASE2017
corpus/class/ecf/1030.java
/**************************************************************************** * Copyright (c) 2004 Composent, Inc. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is avai...
jorgefilipecosta/g2
packages/components/src/Checkbox/Checkbox.styles.js
<gh_stars>100-1000 import { css, styled, ui } from '@wp-g2/styles'; export const CheckboxWrapper = css` ${ui.alignment.content.center}; display: inline-flex; height: ${ui.get('controlHeight')}; position: relative; vertical-align: middle; `; export const CheckboxWrapperView = styled.div` ${CheckboxWrapper}; `; ...
zsoltmester/bs4-finals
framework/src/main/java/hu/bsmart/framework/gcm/pushmessage/TaskRevokedPushMessage.java
<reponame>zsoltmester/bs4-finals package hu.bsmart.framework.gcm.pushmessage; import android.content.Context; import android.support.annotation.NonNull; import hu.bsmart.framework.R; import hu.bsmart.framework.communication.annotations.Required; import static hu.bsmart.framework.communication.data.Constants.UNSET_IN...
dhtech/fboss
fboss/agent/Main.cpp
/* * Copyright (c) 2004-present, Facebook, Inc. * 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. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #inc...
esasiela/hc-swarm
src/main/java/com/hedgecourt/swarm/impl2/UpDownSwarm.java
package com.hedgecourt.swarm.impl2; import com.hedgecourt.swarm.Position; import com.hedgecourt.swarm.Speck; import com.hedgecourt.swarm.Swarm; import com.hedgecourt.swarm.Velocity; public class UpDownSwarm extends AbstractSwarm implements Swarm { public void initializeSwarm() { int maxY = 150; int minY = 50; ...
Alchyr/EvilWithin
src/main/java/downfall/rooms/HeartShopRoom.java
<reponame>Alchyr/EvilWithin // // Source code recreated from a .class file by IntelliJ IDEA // (powered by Fernflower decompiler) // package downfall.rooms; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.megacrit.cardcrawl.dungeons.AbstractDungeon; import com.megacrit.cardcrawl.monsters.AbstractMonster;...
SmarterApp/TechnologyReadinessTool
readiness/src/main/java/net/techreadiness/customer/datagrid/FileByIDsItemProviderImpl.java
package net.techreadiness.customer.datagrid; import java.util.Collection; import java.util.List; import javax.inject.Inject; import net.techreadiness.persistence.criteriaquery.Criteria; import net.techreadiness.persistence.criteriaquery.CriteriaQuery; import net.techreadiness.persistence.criteriaquery.QueryResult; i...
sumon-dey/JavaConcepts
src/test/java/com/javaconcepts/unitTesting/junit/JUnitTestSuite.java
package com.javaconcepts.unitTesting.junit; import org.junit.runner.RunWith; import org.junit.runners.Suite; /*If we have several test classes, we can combine them into a test suite. * Running a test suite executes all test classes in that suite in the specified order. * A test suite can also contain other test s...
krajkumard/flynt
test/integration/samples_in/percent_numerics.py
a, b, c, d, e = tuple(range(5)) print('%d %f %e %g %s' % (a,b,c,d,e))
fractal520/dbops
dbops_venv/lib/python3.5/site-packages/engineio/async_eventlet.py
import importlib import sys from eventlet import sleep from eventlet.websocket import WebSocketWSGI as _WebSocketWSGI class WebSocketWSGI(_WebSocketWSGI): def __init__(self, *args, **kwargs): super(WebSocketWSGI, self).__init__(*args, **kwargs) self._sock = None def __call__(self, environ, s...
atlasapi/atlas-model
src/main/java/org/atlasapi/equiv/ChannelRef.java
<gh_stars>1-10 package org.atlasapi.equiv; import com.google.common.base.Objects; import org.atlasapi.media.channel.Channel; import org.atlasapi.media.entity.Publisher; import static com.google.common.base.Preconditions.checkNotNull; public class ChannelRef { private long id; private String uri; private...
Franklin-Siqueira/mooc-lab
fcsSimpleMooc/accounts/forms.py
''' Created on Jul 30, 2019 @author: franklincarrilho ''' # import datetime from django import forms from django.http import request from django.contrib.sites.requests import RequestSite from django.contrib.sites.shortcuts import get_current_site from django.contrib.auth.forms import UserCreationForm from django.contr...
ucdavis/VGL_htsjdk
src/main/java/htsjdk/samtools/SAMRecordDuplicateComparator.java
/* * The MIT License * * Copyright (c) 2015 The Broad Institute * * 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...
JeffYFHuang/jt808demo
jt808app/src/main/java/com/liteon/javacint/common/Bytes.java
<filename>jt808app/src/main/java/com/liteon/javacint/common/Bytes.java package com.liteon.javacint.common; import java.io.ByteArrayOutputStream; import java.util.Vector; import com.liteon.javacint.logging.Logger; /** * Bytes management class. * * @author <NAME> / www.webingenia.com */ public class Byte...
liangklfangl/structor-usage
node_modules/_rc-queue-anim@0.12.6@rc-queue-anim/lib/QueueAnim.js
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }...
Falumpaset/handson-ml2
backend/application/src/main/java/de/immomio/beans/landlord/application/ApplicationSearchBean.java
package de.immomio.beans.landlord.application; import de.immomio.controller.paging.CustomPageable; import de.immomio.data.base.type.application.ApplicationStatus; import de.immomio.data.base.type.user.profile.PropertySearcherUserProfileType; import lombok.Getter; import lombok.Setter; import java.io.Serializable; imp...
seguemodev/Meducated-Ninja
Android/app/src/main/java/com/seguetech/zippy/activities/MedicineActivity.java
package com.seguetech.zippy.activities; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.ActionBar; import android.view.Menu; import android.view.MenuItem; import com.avast.android.dialogs.fragment.SimpleDialogFragment; import com.avast.android.dialogs.iface.IPositiveButtonDialog...
anishLearnsToCode/python-training-1
solution-bank/pattern/solution_4.py
<reponame>anishLearnsToCode/python-training-1 rows = int(input()) for i in range(rows): # spaces print(' ' * i, end='') # stars print('* ' * (rows - i))
johandoornenbal/TurnToinez-Customer-System
fixture/src/main/java/domainapp/fixture/dom/tti/BestellingenFixtures.java
package domainapp.fixture.dom.tti; import java.math.BigDecimal; import javax.inject.Inject; import domainapp.dom.bestellingen.Bestelling; import domainapp.dom.bestellingen.Postuur; import domainapp.dom.klanten.Klant; import domainapp.dom.klanten.KlantRepository; import domainapp.dom.medewerkers.Medewerker; public c...
seanwestfall/purescript_cowboy
client/output/Web.DOM.Node/index.js
// Generated by purs version 0.13.2 "use strict"; var $foreign = require("./foreign.js"); var Data_Enum = require("../Data.Enum/index.js"); var Data_Functor = require("../Data.Functor/index.js"); var Data_Maybe = require("../Data.Maybe/index.js"); var Data_Nullable = require("../Data.Nullable/index.js"); var Effect = r...
alphya/nyaruga_util
doc/html/structnyaruga_1_1util_1_1get__function__argument__type_3_01_ret_07_c_1_1_5_08_07_args_8_8_8_08_00_01_n_01_4.js
var structnyaruga_1_1util_1_1get__function__argument__type_3_01_ret_07_c_1_1_5_08_07_args_8_8_8_08_00_01_n_01_4 = [ [ "type", "structnyaruga_1_1util_1_1get__function__argument__type_3_01_ret_07_c_1_1_5_08_07_args_8_8_8_08_00_01_n_01_4.html#ade9f10e17cbe5247e65aec0f6910aa43", null ] ];
GoldyMark/EChartSummoner
src/cn/nh121/echarts/series/markline/EMarkLineType.java
<gh_stars>1-10 package cn.nh121.echarts.series.markline; public enum EMarkLineType { MIN, MAX, AVERAGE; }
TheStanfordDaily/loris-archives
loris/loris/wellcome_loris.py
<filename>loris/loris/wellcome_loris.py # -*- encoding: utf-8 -*- """This file contains the code specific to the Wellcome Loris deployment. Code in this file will usually be highly specialised, and is unlikely to be of interest to other users -- anything generic should be submitted as an upstream patch. """ from lor...
radzikpwnz/twc
source/twc_design_old/mainwnd.h
#ifndef MAINWND_H #define MAINWND_H #include <windows.h> LRESULT CALLBACK MainWndProc( HWND, UINT, WPARAM, LPARAM); void actGenerateCode(); void actNewProject(); void actOpenProject(); void actSaveProject(); void actPreview(); #endif
tommasodotNET/awesome-patterns
workerpool/main.go
package main import ( "fmt" "sync" "time" "github.com/labstack/gommon/log" ) // Task encapsulates a work item that should go in a work // pool. type Task struct { // Err holds an error that occurred during a task. Its // result is only meaningful after Run has been called // for the pool that holds it. Err e...
bk1411389/autopsy
ImageGallery/src/org/sleuthkit/autopsy/imagegallery/datamodel/DrawableDB.java
/* * Autopsy Forensic Browser * * Copyright 2013-2019 Basis Technology Corp. * Contact: carrier <at> sleuthkit <dot> 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...
Sygmei/ObEngine
src/Core/Bindings/obe/Graphics/Exceptions/Exceptions.cpp
#include <Bindings/obe/Graphics/Exceptions/Exceptions.hpp> #include <Graphics/Exceptions.hpp> #include <Bindings/Config.hpp> namespace obe::Graphics::Exceptions::Bindings { void LoadClassCanvasElementAlreadyExists(sol::state_view state) { sol::table ExceptionsNamespace = state["obe"]["Graph...
mtaghiza/tinyos-main-1
support/sdk/c/coap/tests/test_uri.c
<reponame>mtaghiza/tinyos-main-1<filename>support/sdk/c/coap/tests/test_uri.c /* libcoap unit tests * * Copyright (C) 2012 <NAME> <<EMAIL>> * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ #include <stdio.h> #include <coap.h> #include "test_uri.h" void t_parse_uri1(vo...
Tokey2018/Client_ios
tokeys-iOS/Extension/UIView+XYView.h
<gh_stars>0 // // UIView+XYView.h // tokeys-iOS // // Created by 杨卢银 on 2019/1/9. // Copyright © 2019 杨卢银. All rights reserved. // #import <UIKit/UIKit.h> #import "UIImageView+TKImageView.h" @interface UIView (XYView) @property (nonatomic, assign) CGSize size; @property (nonatomic, assign) CGPoint origin; /** ...
CanadaHealthInfoway/message-builder
chi-maven-plugin/src/main/java/ca/infoway/messagebuilder/generator/lang/FieldDefinition.java
<filename>chi-maven-plugin/src/main/java/ca/infoway/messagebuilder/generator/lang/FieldDefinition.java /** * 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 t...
Tsroc/esep-core-java
exercises/exercises/solutions/interfaces_solution/src/main/java/domain/Broker.java
package domain; public class Broker { }
Bradinz/Vanjaro.Platform
DesktopModules/Vanjaro/UXManager/Extensions/Block/SearchInput/Views/Setting/SearchInput.js
<filename>DesktopModules/Vanjaro/UXManager/Extensions/Block/SearchInput/Views/Setting/SearchInput.js app.controller('setting_searchinput', function ($scope, $attrs, $http, CommonSvc, SweetAlert) { var common = CommonSvc.getData($scope); $scope.loaded = false; $scope.CurrentSearch; $scope.onInit = fun...
Juppi88/mgui
Skin/SkinSimple.h
<reponame>Juppi88/mgui /********************************************************************** * * PROJECT: Mylly GUI * FILE: SkinSimple.h * LICENCE: See Licence.txt * PURPOSE: An implementation of a basic, textureless skin. * * (c) <NAME> 2012-13 * *********************************************...
msansone73/spring-cloud-mystocks
stock-db-service/src/main/java/br/com/msansone/api/stockdbservice/repository/TransactionRepository.java
<filename>stock-db-service/src/main/java/br/com/msansone/api/stockdbservice/repository/TransactionRepository.java package br.com.msansone.api.stockdbservice.repository; import org.springframework.data.jpa.repository.JpaRepository; import br.com.msansone.api.stockdbservice.model.Transaction; public interface Transact...
lyric-com/idol
test/src/lib/idol/js/codegen/tests/abs/three/SideImport2.js
<filename>test/src/lib/idol/js/codegen/tests/abs/three/SideImport2.js // DO NOT EDIT // This file was generated by idol_js, any changes will be overwritten when idol_js is run again. import { Primitive, Struct } from "../../../__idol__"; export class TestsAbsThreeSideImport2 { constructor(val) { this._original =...
jiangshide/zd112_android
app/src/main/java/com/android/zd112/data/CircleListData.java
package com.android.zd112.data; /** * Created by etongdai on 2018/3/20. */ public class CircleListData { public String name; public String url; public String thumb; }
simplymichael/express-user-manager
__tests__/databases/database.test.js
const chai = require('chai'); const spies = require('chai-spies'); const env = require('../../src/dotenv'); let users = require('./_test-users.json'); const { getValidUserId } = require('../_utils'); const database = require('../../src/databases'); const chaiAsPromised = require('chai-as-promised'); const userModule = ...
tycoer/rfvision-1
rfvision/core/bbox/match_costs/builder.py
from rflib.utils import Registry, build_from_cfg MATCH_COST = Registry('Match Cost') def build_match_cost(cfg, default_args=None): """Builder of IoU calculator.""" return build_from_cfg(cfg, MATCH_COST, default_args)
instantlinux/apicrud-ui
src/ra-views/picture.js
<gh_stars>1-10 // created 2-feb-2020 by <NAME> <<EMAIL>> import React from 'react'; import { AutocompleteInput, Create, Edit, ImageField, NumberInput, ReferenceInput, SelectInput, SimpleForm, TextInput } from 'react-admin'; import { privacyChoices } from '../lib/constants'; import { MediaInput } fro...
dperl-sol/cctbx_project
boost_adaptbx/graph/connected_component_algorithm.py
<reponame>dperl-sol/cctbx_project from __future__ import absolute_import, division, print_function import boost_adaptbx.boost.python as bp ext = bp.import_ext( "boost_adaptbx_graph_connected_component_algorithm_ext" ) def connected_components(graph): result = {} for ( desc, component ) in ext.connected_compone...
manfredsteyer/2016-12-14
src/app/app.constants.js
"use strict"; var core_1 = require("@angular/core"); exports.BASE_URL = new core_1.OpaqueToken("BASE_URL"); //# sourceMappingURL=app.constants.js.map
iot-dsa-v2/sdk-dslink-cpp
src/broker/module/authorizer/permission_nodes.cc
<filename>src/broker/module/authorizer/permission_nodes.cc<gh_stars>1-10 #include "dsa_common.h" #include "permission_nodes.h" #include "module/logger.h" #include "module/stream_acceptor.h" #include "responder/node_state.h" #include "responder/value_node_model.h" #include "util/string.h" #include "util/string_encode....
dumitru-tap-at-endava/porta
config/abilities/switches.rb
# frozen_string_literal: true Ability.define do |user| if user && (account = user.account) provider = account.provider_account settings = if account.buyer? provider.settings else account.settings end # :see means buyer can use it (see buye...
janforp/spring
proxy/src/main/java/com/janita/proxy/aop2/JdkDynamicProxy2.java
package com.janita.proxy.aop2; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; import java.lang.reflect.Proxy; /** * JdkDynamicProxy2 * * @author zhucj * @since 20210225 */ public class JdkDynamicProxy2 implements InvocationHandler { /** * 被代理对象 */ private Object target; pub...
ritabc/rails-decision-log
db/migrate/20190219233935_rename_role_type_column.rb
class RenameRoleTypeColumn < ActiveRecord::Migration[5.2] def change rename_column :roles, :type, :leader_type end end
tanishiking/dotty
tests/run-macros/tasty-eval/quoted_2.scala
<filename>tests/run-macros/tasty-eval/quoted_2.scala import Macros.* object Test { final val y = 5 def main(args: Array[String]): Unit = { println(foo(1)) // "Some(1)" println(foo(1 + 7)) // "Some(8)" println(foo(y)) // "Some(5)" println(foo(y + 1)) val x = 4 println(foo(x)) // "None" }...
forma-exacta/replate
dist/Collection.js
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }...
jaydeetay/pxt
tests/errors-test/cases/missing-operator.py
a = 8 b = 15 c = a b # TS9553
ToraNova/flask-arch
flask_arch/cms/base.py
# base object for the content management system # this system also handles user import datetime from ..utils import RequestParser class Content: '''ancestor of all content managed by a ContentManager''' id = None def view(self, rp, actor): # can be overwritten to only allow certain actors to view...
curiousjgeorge/aws-sdk-cpp
aws-cpp-sdk-comprehend/source/model/EntitiesDetectionJobProperties.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...
dwtester88/jitsi_master
src/org/jitsi/android/gui/util/event/EventListenerList.java
/* * Jitsi, the OpenSource Java VoIP and Instant Messaging client. * * Copyright @ 2015 Atlassian Pty 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.or...
alexhope61/bootstrap
atom/packages/atom-ide-ui/modules/atom-ide-ui/pkg/atom-ide-debugger/lib/ui/ThreadTreeNode.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; function _LoadingSpinner() { const data = require("../../../../../nuclide-commons-ui/LoadingSpinner"); _LoadingSpinner = function () { return data; }; return data; } function _Table() { const data...
stlbucket/fbkt-login
index.js
module.exports = { core: require('./appLibs/fbktLogin'), graphsQl: require('./appLibs/fbktLogin/graphQl/Query/graphs'), actions: require('./appLibs/fbktLogin/actions'), };
pallxk/sqlpad
client/src/common/QueryResultContainer.js
<filename>client/src/common/QueryResultContainer.js import React from 'react'; import ErrorBlock from './ErrorBlock'; import InfoBlock from './InfoBlock'; import QueryResultDataTable from './QueryResultDataTable'; import QueryResultRunning from './QueryResultRunning'; function QueryResultContainer({ isRunning, queryEr...
qianfei11/zstack
sdk/src/main/java/org/zstack/sdk/DeleteBaremetalChassisResult.java
<gh_stars>100-1000 package org.zstack.sdk; public class DeleteBaremetalChassisResult { }
nICEnnnnnnnLee/NinjaV4
src/nicelee/test/junit/FileUploaderTest.java
package nicelee.test.junit; import java.io.File; import org.junit.After; import org.junit.Before; import org.junit.Test; import nicelee.function.cloud.upload.FileUploader; import nicelee.global.GlobalConfig; public class FileUploaderTest { @Before public void setUp() throws Exception { } @Aft...
karlbaker02/verify-hub
hub/policy/src/integration-test/java/uk/gov/ida/integrationtest/hub/policy/apprule/EidasCycle3DataResourceTest.java
package uk.gov.ida.integrationtest.hub.policy.apprule; import com.fasterxml.jackson.core.JsonProcessingException; import com.google.common.base.Optional; import helpers.JerseyClientConfigurationBuilder; import io.dropwizard.client.JerseyClientBuilder; import io.dropwizard.client.JerseyClientConfiguration; import io.dr...
pavelkrolevets/openx-frontend
src/pages/Investor/InvestorContainer.js
import React, { Component } from "react"; import LayoutHoc from "../../hoc/Layout/Layout"; import InvestorComponent from "../../components/Investor/Investor"; import SubNavigationComponent from "../../components/General/SubNavigationComponent/SubNavigationComponent"; import MENU from "./constants"; class InvestorContai...
adamrhunter/strapi
packages/strapi-connector-bookshelf/lib/queries.js
'use strict'; /** * Implementation of model queries for bookshelf */ const _ = require('lodash'); const pmap = require('p-map'); const { convertRestQueryParams, buildQuery, escapeQuery } = require('strapi-utils'); const { contentTypes: contentTypesUtils } = require('strapi-utils'); const { PUBLISHED_AT_ATTRIBUTE } =...
sixdouglas/quarkus
independent-projects/bootstrap/app-model/src/main/java/io/quarkus/maven/dependency/DependencyFlags.java
package io.quarkus.maven.dependency; public interface DependencyFlags { /* @formatter:off */ public static final int OPTIONAL = 0b0000001; public static final int DIRECT = 0b0000010; public static final int RUNTIME_CP = 0b0000100; public static...
FishWannaFly/gmall
gmall-oms/src/main/java/com/atguigu/gmall/oms/listener/OmsListener.java
package com.atguigu.gmall.oms.listener; import com.alibaba.fastjson.JSON; import com.atguigu.gmall.oms.entity.OrderEntity; import com.atguigu.gmall.oms.mapper.OrderMapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.rabbitmq.client.Channel; import org.springframework.amqp.AmqpExcepti...
chencang1980/mockcpp
tests/3rdparty/testngpp/include/testngpp/utils/OptionList.h
#ifndef __TESTNGPP_OPTION_LIST_H #define __TESTNGPP_OPTION_LIST_H #include <list> #include <string> #include <testngpp/testngpp.h> #include <testngpp/utils/StringList.h> TESTNGPP_NS_START struct OptionList { typedef std::pair<std::string, std::string> Option; typedef std::list<Option> Options; typedef Str...
KisaragiEffective/OpenCommandBlock
build/proguard6.0.3/core/src/proguard/classfile/visitor/ParallelAllClassVisitor.java
<reponame>KisaragiEffective/OpenCommandBlock /* * ProGuard -- shrinking, optimization, obfuscation, and preverification * of Java bytecode. * * Copyright (c) 2002-2018 GuardSquare NV * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Publi...
GorchakovIgor/sedgewick-algorithms-coursera
src/test/java/org/sedgewick/algorithms/part_one/week_four/question_three/TaxicabNumbersTest.java
package org.sedgewick.algorithms.part_one.week_four.question_three; import org.junit.jupiter.api.Test; import java.util.Arrays; import java.util.List; import static org.junit.jupiter.api.Assertions.assertEquals; class TaxicabNumbersTest { @Test void test() { List<List<Integer>> result = new Taxicab...
kevinvandervlist/rewrite
rewrite-gradle/src/main/java/org/openrewrite/gradle/UpgradePluginVersion.java
<gh_stars>100-1000 /* * Copyright 2021 the original author or authors. * <p> * 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 * <p> * https://www.apache.org/licenses/LICENSE-2.0 * <p> *...
lukasHD/adventofcode2019
Day10/day10.py
# --- Day 10: Monitoring Station --- from math import gcd, sqrt, pow, atan, atan2, degrees from itertools import groupby, cycle def read_file(fname): with open(fname) as f: content = f.readlines() return [x.strip() for x in content] def read_file2(fname): with open(fname) as f: content = ...
ESA-PhiLab/hypernet
python_research/experiments/multiple_feature_learning/train_multiple_fatures.py
<gh_stars>10-100 import numpy as np import os.path from keras.models import load_model from keras.callbacks import ModelCheckpoint, EarlyStopping, CSVLogger from python_research.experiments.utils import TimeHistory from python_research.experiments.multiple_feature_learning.builders.keras_builders import build_multiple_...
ma2ke/crawlab
backend/routes/system.go
package routes import ( "crawlab/constants" "crawlab/entity" "crawlab/services" "fmt" "github.com/gin-gonic/gin" "net/http" "strings" ) func GetLangList(c *gin.Context) { nodeId := c.Param("id") c.JSON(http.StatusOK, Response{ Status: "ok", Message: "success", Data: services.GetLangList(nodeId), }...
uvsq-versailles/Master_1
Semestre_2/INF201/TD/src/main/java/fr/uvsq/pglp/dao/crud/DAO.java
<gh_stars>1-10 package fr.uvsq.pglp.dao.crud; public interface DAO<T> { /* * CRUD: * - Create * - Read * - Update * - Delete */ T create(T obj); T read(String id); T update(T obj); void delete(T obj); }
forivall/tacoscript-incubator
specs/core/base-statement/try/finally/expected.t.js
try{} finally{ cleanup(stuff); }
seekdoor/Bangumi
src/screens/tinygrail/index/menu-item.js
/* * @Author: czy0729 * @Date: 2019-09-15 10:54:09 * @Last Modified by: czy0729 * @Last Modified time: 2021-12-31 18:16:10 */ import React from 'react' import { Flex, Text, Touchable, Iconfont } from '@components' import { _ } from '@stores' import { obc } from '@utils/decorators' import { t } from '@utils/fetch' ...
timxor/leetcode-journal
solutions/LeetCode/Python3/20.py
<filename>solutions/LeetCode/Python3/20.py __________________________________________________________________________________________________ 32ms class Solution: def isValid(self, s: 'str') -> 'bool': v = [] d = {']':'[', ')':'(', '}':'{'} for i in range(len(s)): if s[i] in d.va...
wildmaples/mutual-aid
spec/models/organization_spec.rb
# frozen_string_literal: true require 'rails_helper' RSpec.describe Organization, type: :model do describe 'is_host validation' do subject(:organization) { build :organization, is_host: true } context 'with an existing instance owner' do before do Organization.host_organization || create(:org...
Ragnarson/people
spec/controllers/dashboard_controller_spec.rb
require 'spec_helper' describe DashboardController do before(:each) do sign_in create(:user, first_name: "Marian") end describe "#index" do let!(:old_membership) { create(:membership, ends_at: 1.hour.ago) } let!(:new_membership) { create(:membership, ends_at: 1.hour.from_now) } before { get :in...
wh1t3lord/kotek
engine/kotek.core.containers.vector/include/kotek_std_alias_vector.h
<reponame>wh1t3lord/kotek<filename>engine/kotek.core.containers.vector/include/kotek_std_alias_vector.h #pragma once #include <kotek.core.defines.static.cpp/include/kotek_core_defines_static_cpp.h> #include <kotek.core.memory.cpu/include/kotek_core_memory_cpu.h> #ifdef KOTEK_USE_BOOST_LIBRARY #include <boost/contain...
bxl295/m4extreme
include/External/stlib/packages/cuda/array.h
<filename>include/External/stlib/packages/cuda/array.h // -*- C++ -*- /*! \file cuda/array.h \brief Implementation of std::tr1::array for cuda. */ #if !defined(__cuda_array_h__) #define __cuda_array_h__ //#include <iterator> #include <cstddef> namespace std { namespace tr1 { template<typename _...
carolinezhao/React-learning
to-do-list/src/containers/VisibleTodoList.js
import { connect } from 'react-redux' import { toggleTodo } from '../actions' import TodoList from '../components/TodoList' import { getVisibleTodos } from '../selectors' // 容器组件 // 从 Redux state 树中读取部分数据,并通过 props 来把这些数据提供给要渲染的组件。 // 使用 React Redux 库的 connect() 方法来生成。 // mapStateToProps 指定如何把当前 state 映射到展示组件的 props 中...
trosenkranz/logic
src/logic/bitstream_iterator.cpp
/* Copyright 2018 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writi...
truthiswill/intellij-community
plugins/groovy/testdata/refactoring/changeSignatureForJava/AlreadyHandled_after.java
<gh_stars>1-10 class Test { void foo () throws Exception { } void bar () throws Exception { foo(); } }
dolphin57/spring-security-actual-code
spring-security-app/src/main/java/io/dolphin/security/app/processor/AppSocialAuthenticationFilterPostProcessor.java
package io.dolphin.security.app.processor; import io.dolphin.security.core.social.SocialAuthenticationFilterPostProcessor; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.web.authentication.AuthenticationSuccessHandler; import org.springframework.social.security.Socia...
jafar-rezaei/s_d
src/redux/reducers/playerReducer.js
import { getRandomColor, getRandomFace } from '../../constants/utilities'; import { ADD_NEW_PLAYER, MOVE_PLAYER, CHANGE_PLAYER, CHANGE_PLAYER_POSITION_IN_BOX, SET_PLAYER_PERSISTENCE, ADD_SNAKE_BITE, RECORD_DICE_LOG, ADD_LADDER_HIKE, RESET_PLAYERS, } from '../../constants/types'; const firstPlayerCol...
xiaohaogong/spring-data-redis
src/main/java/org/springframework/data/redis/ClusterStateFailureException.java
/* * Copyright 2015-2018 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...
benbenwt/lisa_docker
new/libr/asm/arch/pyc/opcode_23.c
<reponame>benbenwt/lisa_docker #include "opcode.h" pyc_opcodes *opcode_23(void) { pyc_opcodes *ret = opcode_2x (); if (!ret) { return NULL; } ret->version_sig = (void *(*)())opcode_23; r_list_purge (ret->opcode_arg_fmt); add_arg_fmt (ret, "EXTENDED_ARG", format_extended_arg); return ret; }
AnandBhatUpb/smlcs-final-submission
results/programs/fifth100/optional_data_creation_test04_true-valid-memsafety.c
<reponame>AnandBhatUpb/smlcs-final-submission<filename>results/programs/fifth100/optional_data_creation_test04_true-valid-memsafety.c extern void __VERIFIER_error() __attribute__ ((__noreturn__)); #include <stdlib.h> extern int __VERIFIER_nondet_int(void); /* This source code is licensed under the GPLv3 license. A...