repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
rgolangh/cloud-credential-operator
vendor/github.com/Azure/azure-sdk-for-go/services/preview/iothub/mgmt/2019-03-22-preview/devices/resourceprovidercommon.go
package devices // Copyright (c) Microsoft and contributors. 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 // // Unl...
jansupol/helidon
microprofile/grpc/core/src/main/java/io/helidon/microprofile/grpc/core/GrpcInterceptors.java
/* * Copyright (c) 2019, 2020 Oracle and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ...
marcomarasca/SynapseWebClient
src/main/java/org/sagebionetworks/web/client/presenter/SearchUtil.java
<reponame>marcomarasca/SynapseWebClient package org.sagebionetworks.web.client.presenter; import org.sagebionetworks.web.client.ClientProperties; import org.sagebionetworks.web.client.GlobalApplicationState; import org.sagebionetworks.web.client.place.PeopleSearch; import org.sagebionetworks.web.client.place.Sear...
rvedotrc/node-aws-query
collectors/rds-collector.js
/* Copyright 2016 <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distribu...
JimmyBeldone/reapt
src/views/components/default/Dropdown/index.js
import React, { PureComponent } from "react"; import PropTypes from "prop-types"; import cn from "classnames"; import "./Dropdown.styl"; class Dropdown extends PureComponent { static propTypes = { dropdownTrigger: PropTypes.node.isRequired, dropdownContent: PropTypes.node.isRequired, butto...
xcjmine/Coding-Android
common-coding/src/main/java/net/coding/program/common/model/GitUploadPrepareObject.java
<reponame>xcjmine/Coding-Android package net.coding.program.common.model; import org.json.JSONException; import org.json.JSONObject; import java.io.Serializable; /** * Created by zjh on 2017/2/16. * 文件上传前需要拿到lastCommit */ public class GitUploadPrepareObject implements Serializable { public String lastCommit;...
ImmanuelChavoya/launcher
pkg/pb/launcher/launcher.go
package launcher //go:generate protoc --go_out=plugins=grpc:. launcher.proto
andriyzagoruyko/landing-core
resources/js/pages/entity/Products/List/Card/index.js
import React from 'react'; import PropTypes from 'prop-types'; import { Grid, Card, CardActions, CardContent, Typography, Checkbox, FormControlLabel, } from '@material-ui/core/'; import Availability from '../Availability'; import useStyles from './styles'; import ProgresiveImage from '~c/com...
kevinsuh/labrador
app/assets/javascripts/application.js
<reponame>kevinsuh/labrador<gh_stars>1-10 //= require jquery //= require jquery_ujs //= require jquery-ui //= require jquery.Jcrop //= require jquery.payment.js //= require angular //= require angular-messages //= require angular-ui-router //= require angular-rails-templates //= require bootstrap //= require ui-bootstr...
noisychannel/joshua
test/joshua/zmert/BLEUTest.java
/* This file is part of the Joshua Machine Translation System. * * Joshua is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later versio...
fatahamirha/delTelegramAccount
app/src/main/java/org/telegram/android/ui/pick/PickIntentClickListener.java
<filename>app/src/main/java/org/telegram/android/ui/pick/PickIntentClickListener.java<gh_stars>100-1000 package org.telegram.android.ui.pick; /** * Created by ex3ndr on 19.12.13. */ public interface PickIntentClickListener { public void onItemClicked(int index, PickIntentItem item, boolean isUseAlways); }
Manonjkfgh/stayaware
app/models/watchlist.rb
class Watchlist < ApplicationRecord end
onnoA/sample-collection
myselef-mybatis-test/src/main/java/cn/quellanan/pojo/Client.java
<gh_stars>1-10 package cn.quellanan.pojo; import java.lang.reflect.Field; import java.util.ArrayList; import java.util.List; import static java.util.stream.Collectors.toList; /** * @className: Client * @description: * @author: onnoA * @date: 2021/11/1 **/ public class Client { public static void main(Strin...
Fidor-FZCO/fidor_api
lib/fidor_api/transfer/swift.rb
<reponame>Fidor-FZCO/fidor_api module FidorApi module Transfer class Swift < Base include Generic validates :contact_name, presence: true, unless: :beneficiary_reference_passed? attribute :account_number, :string attribute :swift_code, :string attribute :account_currency, :...
AugustinLF/academie
src/pages/helene-dufour.en.js
<reponame>AugustinLF/academie<filename>src/pages/helene-dufour.en.js import React from "react"; import InnerPage from "../components/innerPage"; import helene from "../helene.jpg"; import Layout from "../layouts/en"; const Helene = (props) => ( <Layout location={props.location}> <InnerPage nam...
Anshul1507/Leetcode
src/main/java/com/fishercoder/solutions/_1386.java
package com.fishercoder.solutions; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; /** * 1386. Cinema Seat Allocation * * A cinema has n rows of seats, numbered from 1 to n and there are ten seats in each row, labelled from 1 to 10 as shown in the figure above. * Gi...
herlesupreeth/5G-Controller
empower/apps/thor/thor.py
<filename>empower/apps/thor/thor.py<gh_stars>0 #!/usr/bin/env python3 # # Copyright (c) 2015, <NAME> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must reta...
mengzhisuoliu/librime
src/rime/gear/echo_translator.h
<reponame>mengzhisuoliu/librime // // Copyright RIME Developers // Distributed under the BSD License // // 2011-06-20 <NAME> <<EMAIL>> // #ifndef RIME_ECHO_TRANSLATOR_H_ #define RIME_ECHO_TRANSLATOR_H_ #include <rime/translator.h> namespace rime { class EchoTranslator : public Translator { public: EchoTranslator(...
CIS-SoftwareDesign-S21/TeraNUI
nui-input/src/main/java/org/terasology/input/device/RawKeyboardAction.java
// Copyright 2020 The Terasology Foundation // SPDX-License-Identifier: Apache-2.0 package org.terasology.input.device; import org.terasology.input.ButtonState; import org.terasology.input.Input; public final class RawKeyboardAction { private final Input input; private final ButtonState state; public Ra...
qdiankun/firstcode
firstcode/chapter8_media/src/main/java/com/me/diankun/chapter8_media/TakePhotoActivity.java
<reponame>qdiankun/firstcode package com.me.diankun.chapter8_media; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.net.Uri; import android.os.Bundle; import android.os.Environment; import android.provider.MediaStore; import android.support....
NeonOcean/Environment
S4/S4 Decompiler/Old Libraries/xdis/opcodes/opcode_21.py
<reponame>NeonOcean/Environment # (C) Copyright 2017, 2019 by <NAME> # # 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 the License, or (at your option) any later versio...
npocmaka/Windows-Server-2003
net/sfm/afp/server/afp.h
<reponame>npocmaka/Windows-Server-2003<filename>net/sfm/afp/server/afp.h /* Copyright (c) 1992 Microsoft Corporation Module Name: afp.h Abstract: This file defines some server globals as well as include all relevant header files. Author: <NAME> (microsoft!jameelh) Revision History: 25 ...
treblereel/gwtbootstrap3
gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/InlineCheckBox.java
package org.gwtbootstrap3.client.ui; /* * #%L * GwtBootstrap3 * %% * Copyright (C) 2013 - 2014 GwtBootstrap3 * %% * 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...
byxorna/collins
app/collins/models/logs/LogMessageType.scala
package collins.models.logs object LogMessageType extends Enumeration { type LogMessageType = Value val Emergency = Value(0, "EMERGENCY") val Alert = Value(1, "ALERT") val Critical = Value(2, "CRITICAL") val Error = Value(3, "ERROR") val Warning = Value(4, "WARNING") val Notice = Value(5, "NOTICE") val...
versionwen/faststart
start/src/main/java/com/wenxin/learn/faststart/web/service/impl/AdminServiceImpl.java
<reponame>versionwen/faststart package com.wenxin.learn.faststart.web.service.impl; import cn.hutool.captcha.CaptchaUtil; import cn.hutool.captcha.ShearCaptcha; import cn.hutool.captcha.generator.MathGenerator; import cn.hutool.core.collection.CollUtil; import cn.hutool.core.util.StrUtil; import com.baomidou.mybatispl...
jklingen92/Roll20-Snippets
kscaffold-js/javascript/constants.js
const constants = { attributes: [ "strength", "dexterity", "constitution", "intelligence", "wisdom", "charisma" ] } export { constants }
dalvikfrank/development
apps/Development/src/com/android/development/InstrumentationList.java
/* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
bubby932/RecNetBotV2
cogs/other.py
import functions import discord from discord.ext import commands class Other(commands.Cog): def __init__(self, client): self.client = client # CMD-DOC @commands.command() @commands.check(functions.beta_tester) async def doc(self, ctx): functions.log(ctx.guild.name, ctx.author, ctx....
Selous05/beeetv_1.6
app/src/main/java/com/beeecorptv/ui/downloadmanager/core/sorting/DownloadSortingComparator.java
/* * EasyPlex - Movies - Live Streaming - TV Series, Anime * * @author @Y0bEX * @package EasyPlex - Movies - Live Streaming - TV Series, Anime * @copyright Copyright (c) 2021 Y0bEX, * @license http://codecanyon.net/wiki/support/legal-terms/licensing-terms/ * @profile https://codecanyon.net/user/yobex * @link <EMAIL> * ...
halotroop2288/consulo
modules/base/lang-impl/src/main/java/com/intellij/ide/projectView/impl/nodes/PsiDirectoryNode.java
/* * Copyright 2000-2013 JetBrains s.r.o. * * 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 agre...
nkruzan/bluepad32
src/components/bluepad32/include/uni_gamepad.h
<filename>src/components/bluepad32/include/uni_gamepad.h /**************************************************************************** http://retro.moe/unijoysticle2 Copyright 2019 <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. Y...
dmxj/icv
tests/get_connect.py
#!/usr/bin/env python # -*- coding: UTF-8 -*- # # Copyright (c) 2019 Baidu.com, Inc. All Rights Reserved # """ get_connect.py Authors: rensike(<EMAIL>) Date: 2019/9/12 下午6:59 """ from skimage import measure import cv2 import numpy as np from icv.image.vis import imshow def counters(img_pth): img = cv2.imread(im...
hazim79/behaviorsearch
src/bsearch/evaluation/DerivativeFitnessFunction.java
package bsearch.evaluation; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.LinkedList; import java.util.List; import org.nlogo.util.MersenneTwisterFast; import bsearch.app.BehaviorSearchException; import bsearch.app.SearchProtocol; import bsearch.nlogolink.ModelRunResult; impo...
r-neal-kelly/nkr
nkr/include/nkr/generic/negatable/integer_tr.h
/* Copyright 2021 r-neal-kelly */ #pragma once #include "nkr/generic/negatable/integer_tr_dec.h" #include "nkr/generic/negatable/integer_tr_def.h"
NoFaceGoose/TabletopGames
src/main/java/games/sushigo/SGForwardModel.java
<reponame>NoFaceGoose/TabletopGames<gh_stars>0 package games.sushigo; import core.AbstractForwardModel; import core.AbstractGameState; import core.CoreConstants; import core.actions.AbstractAction; import core.components.Deck; import games.sushigo.actions.ChopSticksAction; import games.sushigo.actions.NigiriWasabiActi...
concord-consortium/rigse
rails/db/migrate/20090601220838_otml_files_otrunk_view_entries.rb
<reponame>concord-consortium/rigse class OtmlFilesOtrunkViewEntries < ActiveRecord::Migration[5.1] def self.up create_table :otml_files_otrunk_view_entries, :id => false do |t| t.integer :otml_file_id t.integer :otrunk_view_entry_id end add_index :otml_files_otrunk_view_entries, [:otml_file_id...
GregorR/plof3
cplof/src/impl/float.c
<reponame>GregorR/plof3 label(interp_psl_float); UNIMPL("psl_float");
Kymed/qstudy
client/src/components/profiles/ProfileAlertHandler.js
<filename>client/src/components/profiles/ProfileAlertHandler.js import React, {Fragment, useEffect, useContext } from 'react'; import io from "socket.io-client"; import ProfileContext from '../../context/profiles/profileContext'; import AlertContext from '../../context/alert/alertContext'; const ProfileAlertHandler =...
sarang-apps/darshan_browser
third_party/blink/web_tests/http/tests/devtools/network/network-initiator-from-console.js
// Copyright 2017 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. (async function() { TestRunner.addResult(`Tests that there is no javascript error when console evaluation causes resource loading.\n`); await TestRunn...
parameter1/cms-apis
apis/rest/src/graphql/directives/linkage.js
/* eslint-disable no-param-reassign */ import { mapSchema, getDirective, MapperKind } from '@cms-apis/graphql/utils'; import createResolver from './linkage/create-resolver.js'; import getReturnType from '../utils/get-return-type.js'; export default function linkageDirectiveTransformer(schema, directiveName = 'linkage'...
newbigTech/im
dal/src/main/java/com/newbig/im/dal/model/SysUserRole.java
package com.newbig.im.dal.model; import javax.persistence.*; import java.util.Date; @Table(name = "sys_user_role") public class SysUserRole { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Integer id; /** * user_id */ @Column(name = "user_id") private String userId;...
perfectrecall/aws-sdk-cpp
aws-cpp-sdk-s3control/include/aws/s3control/model/MultiRegionAccessPointReport.h
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/s3control/S3Control_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <aws/core/utils/DateTime.h> #include <aws/s3control/model/PublicAccessBlockConfigura...
VitaliiHrushyn/JavaExternalClasses_Final_Project
RepairAgency/src/main/java/ua/training/repairagency/model/dao/interfaces/ApplicationDAO.java
<reponame>VitaliiHrushyn/JavaExternalClasses_Final_Project<filename>RepairAgency/src/main/java/ua/training/repairagency/model/dao/interfaces/ApplicationDAO.java package ua.training.repairagency.model.dao.interfaces; import java.util.List; import ua.training.repairagency.model.entities.application.Application; public...
luongnvUIT/prowide-iso20022
model-seev-types/src/generated/java/com/prowidesoftware/swift/model/mx/dic/CancellationStatus26Choice.java
<reponame>luongnvUIT/prowide-iso20022 package com.prowidesoftware.swift.model.mx.dic; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; import org.apache.commons.lang3.builder.EqualsB...
kapeels/ohmage-server
src/org/ohmage/query/impl/AbstractUploadQuery.java
/******************************************************************************* * Copyright 2012 The Regents of the University of California * * 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 Licens...
docfetcher/DocFetcher
src/net/sourceforge/docfetcher/model/parse/VorbisComment.java
<reponame>docfetcher/DocFetcher package net.sourceforge.docfetcher.model.parse; import java.io.DataInputStream; import java.io.IOException; /** * This class is created because several media formats * use the Vorbis Comment specification for metadata. * * @author psiahu */ public class VorbisComment { long big...
amakid/go-ruleguard
analyzer/testdata/src/regression/issue360.go
package regression import "strings" func _(s1, s2 string) { _ = map[int]int{ strings.Compare("", ""): 0, // want `\Qdon't use strings.Compare` } _ = map[int]int{ 10: strings.Compare("", ""), // want `\Qdon't use strings.Compare` } _ = map[int]string{ 10: "a", strings.Compare(s1, s2...
GMHe/compose-parent
compose-sync/src/main/java/cn/compose/sync/canal/app/ActionByEventType.java
package cn.compose.sync.canal.app; import cn.compose.sync.canal.event.EventInfo; import cn.compose.sync.canal.service.IEventHandler; /** * 根据数据库+表名+事件类型 产生handler 抽象接口层 * @author maowei * @package_name com.vlinklink.sync.app * @date 2020/9/7 * @time 15:14 */ public interface ActionByEventType { IEventHandl...
mnurzia/lsx
ext/pdjson.c
#include <ctype.h> #include <stdio.h> #include <stdarg.h> #include <stdlib.h> #include <string.h> #include "pdjson.h" #define JSON_FLAG_ERROR (1u << 0) struct json_stack { enum json_type type; long count; }; /* Since errmsg is filled with sprintf(), it must never be filled with * unbounded input data (...
Subrato-oid/cs-algorithms
Divide and Conquer/Max Subarray Sum/c++/MAXIMUM_SUBARRAY_SUM.cpp
#include<iostream> using namespace std; sumofarray(int arr[], int n) { if(n==0) return 0; int ans=sumofarray(arr+1,n-1); return arr[0]+ans; } int main() { int n;cin>>n; while(n--) { int a; cin>>a; int arr[a]; for(int i=0;i<=n;i++) { cin>>arr[i]; ...
Thanatoz-1/EmotionStimuli
src/emotion/evaluation/evaluation.py
__author__ = "<NAME>" from .metrics import calc_precision, calc_recall, calc_fscore from .align_spans import gen_poss_align, align_spans from .convert_to_span import conv2span, conv2brown, get_counts from .align_spans import gen_poss_align, align_spans, perform_align_op from .metrics import calc_precision, calc_recall...
a-bentofreire/abeamer
test/template/main.js
// ------------------------------------------------------------------------ $(window).on("load", function () { var independentCases = __IND_CASES__; try { var story = ABeamer.createStory(__FPS__); } catch (error) { console.error('[EXCEPTION]:', error); console.error('[CRITICAL]: ABea...
spprod35/pve-manager
www/manager/qemu/StatusView.js
<filename>www/manager/qemu/StatusView.js Ext.define('PVE.qemu.StatusView', { extend: 'PVE.grid.ObjectGrid', alias: ['widget.pveQemuStatusView'], initComponent : function() { var me = this; var nodename = me.pveSelNode.data.node; if (!nodename) { throw "no node name specified"; } var vmid = me.p...
wangyue033/AI-PLATFORM
guns-base-support/guns-excel/src/main/java/cn/stylefeng/guns/excel/controller/ExcelExportDeployController.java
package cn.stylefeng.guns.excel.controller; import cn.stylefeng.guns.base.consts.ConstantsContext; import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo; import cn.stylefeng.guns.sys.core.util.FileDownload; import cn.stylefeng.guns.excel.entity.ExcelExportDeploy; import cn.stylefeng.guns.excel.model.params.ExcelExport...
MrDelik/core
homeassistant/components/sonarr/entity.py
"""Base Entity for Sonarr.""" from __future__ import annotations from aiopyarr import SystemStatus from aiopyarr.models.host_configuration import PyArrHostConfiguration from aiopyarr.sonarr_client import SonarrClient from homeassistant.helpers.device_registry import DeviceEntryType from homeassistant.helpers.entity i...
cccht/RSSHub
lib/routes/haimaoba/comics.js
<gh_stars>1-10 const got = require('@/utils/got'); const cheerio = require('cheerio'); const iconv = require('iconv-lite'); const getChapters = (id, $, caches) => { const chapters = $('.text') .toArray() .reduce((acc, curr) => acc.concat(`http://www.haimaoba.com${$(curr).children('a').attr('href')}...
litsor/core
core/methods/strings/truncate.test.js
'use strict'; module.exports = { tests: [{ can: 'truncate string to length', left: 'Hello world', right: 5, output: 'Hello' }] };
substack/keybase-client
node_modules/kbpgp/node_modules/keybase-compressjs/outlib/LogDistanceModel.js
<filename>node_modules/kbpgp/node_modules/keybase-compressjs/outlib/LogDistanceModel.js /** Simple (log n)(n) distance model. */ var libs = [ require('./Util') ]; var body_fn = function (Util){ // lengthBitsModelFactory will be called with arguments 2, 4, 8, 16, etc // and must return an appropriate model or ...
haohanscm/pds
src/main/java/com/haohan/platform/service/sys/modules/xiaodian/dao/pay/OrderPayRecordDao.java
package com.haohan.platform.service.sys.modules.xiaodian.dao.pay; import com.haohan.platform.service.sys.common.persistence.CrudDao; import com.haohan.platform.service.sys.common.persistence.annotation.MyBatisDao; import com.haohan.platform.service.sys.modules.xiaodian.entity.pay.OrderPayRecord; import java.math.BigD...
gabrielbursztein2/time-management-web
src/components/routes/PrivateRoute.js
<reponame>gabrielbursztein2/time-management-web import React from 'react'; import { bool, string, node } from 'prop-types'; import { Route, Redirect, useLocation } from 'react-router-dom'; import routes from 'constants/routesPaths'; const PrivateRoute = ({ children, exact = false, path, authenticated }) => { const ...
converba/yeti-customer-portal
src/services/Rates.js
define(function (require) { var Request = require('../services/Request'); return { getRates (args) { const perPage = args.perPage || ''; const page = args.page || ''; return new Promise((resolve, reject) => { if(!args.jwt) { reject(new Error('Auth error: didn\'t authorized')...
umarmughal824/bootcamp-ecommerce
applications/migrations/0006_change_submission_types.py
# Generated by Django 2.2.10 on 2020-05-11 16:06 from django.db import migrations, models def update_submission_types(apps, schema_editor): """ Updates submission_type values in ApplicationStep to new values """ ApplicationStep = apps.get_model("applications", "ApplicationStep") ApplicationStep.o...
kaynewbie/algorithm
algorithm/LeetCode/Easy/maximum-depth-of-binary-tree.c
// // maximum-depth-of-binary-tree.c // algorithm // // Created by Kai on 2019/7/30. // Copyright © 2019 kai. All rights reserved. // #include "maximum-depth-of-binary-tree.h" #include "binary-tree.h" #define MAX(x, y) ((x > y) ? x : y) int depthInTree(TreeNode *tree, int depth); int depthInTree(TreeNode *tree, ...
SpongePowered/Common
src/main/java/org/spongepowered/common/network/channel/raw/SpongeRawLoginDataChannel.java
/* * This file is part of Sponge, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softwar...
alphonsetai/RGA
RadeonGPUAnalyzerGUI/include/qt/rgGlobalSettingsModel.h
#pragma once // C++. #include <map> // Qt. #include <QVariant> // Local. #include <RadeonGPUAnalyzerGUI/include/qt/rgSettingsModelBase.h> // Forward declarations. struct rgGlobalSettings; enum rgGlobalSettingsControls { LogFileLocation, DisassemblyViewColumns, AlwaysUseGeneratedProjectNames, Count ...
ppdaicorp/stargate
gate-server/src/main/java/com/ppdai/stargate/job/HandlerRegistry.java
package com.ppdai.stargate.job; import org.springframework.util.CollectionUtils; import java.util.List; import java.util.Map; import java.util.Optional; import java.util.concurrent.ConcurrentHashMap; import java.util.function.Function; import java.util.stream.Collectors; public class HandlerRegistry<T extends IHandl...
prameetu/CP_codes
CODEFORCES/eshan_loves_big_array.cpp
#include <bits/stdc++.h> #define MOD 1000000007 #define ll long long int #define rep(i,a,b) for(ll i=a;i<b;i++) using namespace std; void ans() { int n; cin >> n; vector <int> v(n); int min(101); rep(i,0,n) cin >> v[i]; auto min_ele = *min_element(v.begin(),v.end()); ...
martianworm17/tp_junit
com.tp.test/mockobject/PubTest.java
<reponame>martianworm17/tp_junit package mockobject; import org.jmock.Mockery; import junit.framework.TestCase; public class PubTest { // class Mock { // Mockery context = new Mockery(); // // public void testSubReceivesMessage() { // // // Set up // final Sub sub = context.mock(Sub.class)...
hanztura/hrsalespipes
hrsalespipes/jobs/rules.py
def is_allowed_to_edit_close_job(user, job): if job.status is None: return True # check if job is open if job.status.is_job_open: return True # check if user is allowed to bypass if user.has_perm('jobs.can_edit_closed_job'): return True return False def is_associate_...
yudong2015/openpitrix
pkg/service/runtime/permission.go
// Copyright 2018 The OpenPitrix Authors. All rights reserved. // Use of this source code is governed by a Apache license // that can be found in the LICENSE file. // Auto generated by 'go run gen_helper.go', DO NOT EDIT. package runtime import ( "context" "openpitrix.io/openpitrix/pkg/constants" "openpitrix.io/...
HooraOnline/treenetweb
src/react-native/Image.js
<reponame>HooraOnline/treenetweb<gh_stars>0 import View from "./View"; import {makeStyles} from "@material-ui/core/styles"; export default function Image(props) { let {style={},source} = props; const styles = { main: { // filter:style.tintColor?'invert(408%) sepia(1009%) saturate(175%) hue-r...
gogrlx/grlx
certs/tls.go
package certs import ( "bufio" "bytes" "crypto/ecdsa" "crypto/ed25519" "crypto/elliptic" "crypto/rand" "crypto/rsa" "crypto/x509" "crypto/x509/pkix" "encoding/pem" "math/big" "net" "os" "time" "github.com/spf13/viper" log "github.com/taigrr/log-socket/log" ) func publicKey(priv interface{}) interface...
Sy14r/Cryptbreaker
imports/api/counters/methods.js
<reponame>Sy14r/Cryptbreaker /** * Meteor methods */ import { Meteor } from 'meteor/meteor'; import { Random } from 'meteor/random'; import SimpleSchema from 'simpl-schema'; import { ValidatedMethod } from 'meteor/mdg:validated-method'; import { LoggedInMixin } from 'meteor/tunifight:loggedin-mixin'; import { Method...
Lionjudge9061-corp/oci-go-sdk
artifacts/update_container_repository_details.go
<filename>artifacts/update_container_repository_details.go<gh_stars>0 // Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as ...
panpawang/java-demo
design-pattern/src/main/java/builder/vacation/Vacation.java
package builder.vacation; import java.util.ArrayList; import java.util.List; public class Vacation { String name; List<Accommodation> accommodations = new ArrayList<Accommodation>(); List<String> events = new ArrayList<String>(); public void setName(String name) { this.name = name; } public void setAccommod...
storage4grid/PROFESS-PROFEV
connector/priceConnector.py
""" Created on Mär 27 12:18 2019 @author: nishit """ import datetime from connector.apiConnector import ApiConnector from utils_intern.messageLogger import MessageLogger logger = MessageLogger.get_logger_parent() class PriceConnector(ApiConnector): def __init__(self, url, config, house): super().__init...
whp1473/flymock
flymock/src/main/java/com/hoping/owl/flymock/placeholder/handle/NaturalHandle.java
package com.hoping.owl.flymock.placeholder.handle; import com.hoping.owl.flymock.FlyRandom; import com.hoping.owl.flymock.placeholder.AbstractPlaceholderHandle; import com.hoping.owl.flymock.placeholder.PlaceholderHandle; import com.hoping.owl.flymock.placeholder.PlaceholderWrap; import java.util.List; /** * Create...
BurningBright/lucene
contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/SpanNearBuilder.java
package org.apache.lucene.xmlparser.builders; import java.util.ArrayList; import org.apache.lucene.search.spans.SpanNearQuery; import org.apache.lucene.search.spans.SpanQuery; import org.apache.lucene.xmlparser.DOMUtils; import org.apache.lucene.xmlparser.ParserException; import org.w3c.dom.Element; import org.w3c.do...
neepoo/acwing
advanced/01dp/01_dp/02_lis/1012/main.go
<filename>advanced/01dp/01_dp/02_lis/1012/main.go /* https://www.acwing.com/problem/content/1012/ 某国为了防御敌国的导弹袭击,发展出一种导弹拦截系统。 但是这种导弹拦截系统有一个缺陷:虽然它的第一发炮弹能够到达任意的高度,但是以后每一发炮弹都不能高于前一发的高度。 某天,雷达捕捉到敌国的导弹来袭。 由于该系统还在试用阶段,所以只有一套系统,因此有可能不能拦截所有的导弹。 输入导弹依次飞来的高度(雷达给出的高度数据是不大于30000的正整数,导弹数不超过1000),计算这套系统最多能拦截多少导弹,如果要拦截所有导弹最少要配备多少...
pengcash/MEUH
sdk/appcenter/src/main/java/com/microsoft/appcenter/utils/context/UserIdContext.java
<gh_stars>1-10 /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ package com.microsoft.appcenter.utils.context; import android.support.annotation.NonNull; import android.support.annotation.VisibleForTesting; import android.text.TextUtils; import com.microsoft.appc...
jcook00/q2-api-client
q2_api_client/clients/base_q2_client.py
<reponame>jcook00/q2-api-client<filename>q2_api_client/clients/base_q2_client.py from q2_api_client.clients.rest_client import RestClient from q2_api_client.endpoints.mobile_ws_endpoints import LoginEndpoint from q2_api_client.utils.url import URL class BaseQ2Client(RestClient): def __init__(self, **kwargs): ...
xfs-network/xfswallet-chrome
src/App.js
<filename>src/App.js import React, { Component, createContext, useContext, useState } from "react"; import { Switch, Route, Redirect, Router, } from "react-router-dom"; import './App.css'; import Initial from "./Initial"; import CreatePage from "./CreatePage"; import HomePage from "./HomePage"; i...
binosys/mtc2016_architecture_sample
app/src/test/java/de/binosys/android/mtc2016/business/DeviceManagerTest.java
/* * Copyright Binosys GmbH(c) 2015. All rights reserved. */ package de.binosys.android.mtc2016.business; import org.junit.Test; public class DeviceManagerTest { @Test public void testGetDeviceWith() throws Exception { } @Test public void testGetAllDevices() throws Exception { } }
perandersson/everstore-server
Shared/Mutex/Unix/UnixMutex.cpp
// // Copyright (c) 2019 West Coast Code AB. All rights reserved. // #include "UnixMutex.hpp" #include "../../Process/Process.hpp" #include "../../Log/Log.hpp" #include <sys/mman.h> #include <sys/fcntl.h> ESErrorCode OsMutex::Create(const string& name, OsMutex* mutex) { memset(mutex, 0, sizeof(OsMutex)); const stri...
qinfangj/UniWebProject
components/forms/facilityData/formModels/alignmentsModel.js
<reponame>qinfangj/UniWebProject "use strict"; import fields from '../../../constants/fields'; import inputTypes from '../../../constants/inputTypes'; import optionsStoreKeys from '../../../constants/optionsStoreKeys'; import validators from '../../validators'; const alignmentsModel = { fields: [ { ...
PhaseDMS/phase
src/transmittals/migrations/0055_auto_20160303_1439.py
from django.db import migrations, models import transmittals.fields import privatemedia.storage class Migration(migrations.Migration): dependencies = [ ('transmittals', '0054_outgoingtransmittal_archived_pdf'), ] operations = [ migrations.AlterField( model_name='outgoingtrans...
dummas2008/AndroidChromium
app/src/main/java/org/chromium/chrome/browser/bookmarks/BookmarkActionBar.java
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chrome.browser.bookmarks; import android.content.Context; import android.support.v7.widget.Toolbar.OnMenuItemClickListener; import a...
AliYildizoz909/photo-channel-spa
src/redux/actions/home/homeActionCreators.js
<gh_stars>1-10 import { GET_FEED, GET_MOST_CHANNELS, GET_MOST_COMMENTS, GET_MOST_PHOTOS } from "./homeActionTypes" export const getMostChannelsSuccess = (channels) => ({ type: GET_MOST_CHANNELS, payload: channels }) export const getMostPhotosSuccess = (photos) => ({ type: GET_MOST_PHOTOS, payload: photos }) export cons...
Alexgta/hackerrank
src/main/java/com/hackerrank/stdinout/SimpleScanner.java
package com.hackerrank.stdinout; import java.util.Scanner; public class SimpleScanner { //Write your code here static boolean flag = true; static int B,H; static { Scanner scan = new Scanner(System.in); B = scan.nextInt(); H = scan.nextInt(); try{ if(B <= ...
cdrage/ocdev
pkg/devfile/parser/data/common/project_helper.go
<reponame>cdrage/ocdev package common import "fmt" // GetDefaultSource get information about primary source // returns 3 strings: remote name, remote URL, reference(revision) func (ps GitLikeProjectSource) GetDefaultSource() (string, string, string, error) { // get git checkout information // if there are multiple ...
maciejg-git/vue-bootstrap-icons
dist-remix/remix/Editor/strikethrough.js
<gh_stars>0 import { h } from 'vue' export default { name: "Strikethrough", vendor: "Rx", type: "", tags: ["strikethrough"], render() { return h( "svg", {"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24","class":"v-icon","fill":"currentColor","data-name":"rx-strikethrough","innerHTML"...
tsung-sc/Tsung-Go-shopping-project
models/goodsColor.go
package models import ( _ "github.com/jinzhu/gorm" ) type GoodsColor struct { Id int ColorName string ColorValue string Status int Checked bool `gorm:"-"` } func (GoodsColor) TableName() string { return "goods_color" }
angiechangpagne/ZeusMedia
flux-origins/components/Slider/CategorySlider/styles.js
import { colorGreyLight1 } from "../../../assets/base"; import { Dimensions } from "react-native"; export const SCREEN_HEIGHT = Dimensions.get("window").height; export const styles = { colorGreyLight1: { color: colorGreyLight1 }, viewPager: { height: SCREEN_HEIGHT }, reload: { position: "absolut...
chunzhao/presto
presto-orc/src/test/java/com/facebook/presto/orc/TestTupleDomainFilterUtils.java
<gh_stars>0 /* * 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 ...
eveardown/aws-sdk-java
aws-java-sdk-signer/src/main/java/com/amazonaws/services/signer/model/PutSigningProfileRequest.java
<reponame>eveardown/aws-sdk-java /* * Copyright 2015-2020 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/...
cosailer/mass_storage_device
LUFA/Documentation/html/struct_u_s_b___mouse_report___data__t.js
var struct_u_s_b___mouse_report___data__t = [ [ "Button", "struct_u_s_b___mouse_report___data__t.html#a5decb2fc16d8eb2328087d2118928009", null ], [ "X", "struct_u_s_b___mouse_report___data__t.html#a0f5f23c127f4335288a9f4d897e64a67", null ], [ "Y", "struct_u_s_b___mouse_report___data__t.html#a72378a099407d1f...
dcais/aggra
src/main/java/com/github/dcais/aggra/cons/HttpConstants.java
<reponame>dcais/aggra<gh_stars>0 package com.github.dcais.aggra.cons; public interface HttpConstants { //LOG_MAX_CHAR_COUNT int LMCC_UNKNOW = -99; int LMCC_ALL = -1; int LMCC_DEFAULT = 512; String HEAD_KEY_CONTENT_TYPE = "Content-Type"; String CONTENT_TYPE_TXT_PLAIN = "text/plain"; int DEFAULT_TIMEOUT = ...
fuchstraumer/Caelestis
old/src/scene/BaseScene.cpp
#include "scene/BaseScene.hpp" #include "scene/Window.hpp" #include "scene/InputHandler.hpp" #include "core/Instance.hpp" #include "core/LogicalDevice.hpp" #include "core/PhysicalDevice.hpp" #include "command/CommandPool.hpp" #include "command/TransferPool.hpp" #include "render/Framebuffer.hpp" #include "render/Renderp...
msbtec/frontend-sigfapeap
src/pages/private/AvaliacaoSolicitacao/ResponderSolicitacao/index.js
import React, { useRef, } from 'react'; import { FiCheckCircle } from 'react-icons/fi'; import { BiArrowBack } from 'react-icons/bi'; import { store } from 'react-notifications-component'; import { useHistory } from 'react-router-dom'; import { Card } from '../../../../components/Card'; import { Form } from '../.....
storagezhang/Object-Oriented-Programming
derivation_3/src/factor/Cos.java
package factor; import java.math.BigInteger; public class Cos extends Factor { public Cos(BigInteger index) { super(index); } @Override public Factor clone() { return new Cos(this.getIndex()); } @Override public String toString() { return "cos("; } @Ove...