repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
zipated/src
chrome/browser/chromeos/login/quick_unlock/quick_unlock_utils.h
<reponame>zipated/src<filename>chrome/browser/chromeos/login/quick_unlock/quick_unlock_utils.h // 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. #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_QUICK_UN...
wwjiang007/spring-xd
spring-xd-integration-test/acceptance-test-sparkapp/src/main/java/spark/SparkPi.java
/* * * * Copyright 2014-2015 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 * * *...
Vladlgv/TCI_G3
AssignmentG3/src/main/java/casino/idfactory/BetID.java
package casino.idfactory; public class BetID extends GeneralID { }
opentext/storyteller
docplatform/distribution/py/pfdesigns/javascript/locales.js
"use strict"; var repo = require('repo'); function init_data(api_key) { // // Online Exchange Rates API // // see https://openexchangerates.org/ // var local_uri = 'wd:/rates.json'; if (api_key) { var remote_uri = 'http://openexchangerates.org/api/latest.json?app_id=' + api_key; ...
techstars/quickeebooks
spec/quickeebooks/online/customer_spec.rb
describe "Quickeebooks::Online::Model::Customer" do it "parse customer from XML" do xml = onlineFixture("customer.xml") customer = Quickeebooks::Online::Model::Customer.from_xml(xml) customer.sync_token.should == 1 customer.name.should == "<NAME>" create_time = Date.civil(2011, 9, 29) custom...
ZzoeyYang/Android-StickyNavLayout
libBase/src/main/java/online/sniper/widget/AnimationImageView.java
package online.sniper.widget; import android.content.Context; import android.graphics.Canvas; import android.graphics.drawable.AnimationDrawable; import android.graphics.drawable.Drawable; import android.util.AttributeSet; import android.widget.ImageView; /** * 自动启动动画的View * Created by wangpeihe on 2016/11/16. */ ...
CARV-ICS-FORTH/frisbee
controllers/testplan/lifecycle.go
<reponame>CARV-ICS-FORTH/frisbee /* Copyright 2021 ICS-FORTH. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or ag...
zyq1569/HealthApp
dcm/dcmdata/dcerror.cc
/* * * Copyright (C) 1994-2017, OFFIS e.V. * All rights reserved. See COPYRIGHT file for details. * * This software and supporting documentation were developed by * * OFFIS e.V. * R&D Division Health * Escherweg 2 * D-26121 Oldenburg, Germany * * * Module: dcmdata * * Author: <NAME> ...
fergy/aplit_linux-5
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/led.c
// SPDX-License-Identifier: GPL-2.0 /* Copyright(c) 2009-2012 Realtek Corporation.*/ #include "../wifi.h" #include "../pci.h" #include "reg.h" #include "led.h" static void _rtl92ce_init_led(struct ieee80211_hw *hw, struct rtl_led *pled, enum rtl_led_pin ledpin) { pled->hw = hw; pled->ledpin = ledpin; ple...
RocMarshal/fevernova
src/main/java/com/github/fevernova/framework/component/channel/RingbufferChannel.java
<gh_stars>1-10 package com.github.fevernova.framework.component.channel; import com.github.fevernova.framework.common.Constants; import com.github.fevernova.framework.common.context.GlobalContext; import com.github.fevernova.framework.common.context.TaskContext; import com.github.fevernova.framework.common.data.DataE...
wutobias/collection
shell/resp_it_mol2/ensemble_filter_hb.py
<filename>shell/resp_it_mol2/ensemble_filter_hb.py #!/usr/bin/env python import sys import os fconv = "/nfs/pub/file_utils/fconv" if len(sys.argv) != 3: print "Usage: ensemble_filter_hb.py <ID_vs_hydrogenbondcounts.dat> <ensemble.mol2>" exit() for f in sys.argv: if not os.path.exists(f): print "...
williamclot/MemoryVisualizer
volatility/volatility/plugins/gui/windowstations.py
# Volatility # Copyright (C) 2007-2013 Volatility Foundation # Copyright (C) 2010,2011,2012 <NAME> <<EMAIL>> # # This file is part of Volatility. # # Volatility 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; ...
maciejg-git/vue-bootstrap-icons
dist-mdi/mdi/robot-angry.js
<gh_stars>0 import { h } from 'vue' export default { name: "RobotAngry", vendor: "Mdi", type: "", tags: ["robot","angry"], render() { return h( "svg", {"xmlns":"http://www.w3.org/2000/svg","width":"24","height":"24","viewBox":"0 0 24 24","class":"v-icon","fill":"currentColor","data-name":"mdi-...
znnnnn/leetcode-cn-resolutions
algorithms/1002. Find Common Characters/1.js
/** * @param {string[]} A * @return {string[]} */ var commonChars = function(A) { return [...new Set(A[0])] .filter(ch => A.every(word => word.includes(ch))) // 1.共有的字母 ["e", "l"] .map(ch => ch.repeat(Math.min(...A.map(x => x.match(new RegExp(ch, 'g')).length))), ) // 将每个共有字母映射成该字母都有最大重复次数的字符串 [...
Asap7772/railrl_evalsawyer
rlkit/torch/vae/biva/__init__.py
__all__ = ["datasets", "evaluation", "model"] from .model import *
OnionBurger/DungeonsOfPain
SOURCE/FovCalc.h
<gh_stars>0 #ifndef _FovCalc_h_ #define _FovCalc_h_ #include "fov.h" class Map; class FovCalc { fov_settings_type fov_settings; Map *map; public: FovCalc(Map *M); void calcFov(); static bool libfovOpacityTest(void *map, int x, int y); static void libfovApplyLighting(void *map, int x, int y, int dx, int dy,...
vustac/dse
src/danalyzer/src/danalyzer/executor/Executor.java
package danalyzer.executor; import static danalyzer.gui.DebugUtil.debugPrintCommand; import static danalyzer.gui.DebugUtil.debugPrintCommand_type; import static danalyzer.gui.DebugUtil.debugPrintCallEntry; import static danalyzer.gui.DebugUtil.debugPrintCallExit; import static danalyzer.gui.DebugUtil.debugPrintStackRe...
layeredapps/dashboard
src/www/api/user/reset-account-password.js
<reponame>layeredapps/dashboard const crypto = require('crypto') const dashboard = require('../../../../index.js') module.exports = { auth: false, patch: async (req) => { if (!req.body || !req.body['secret-code']) { throw new Error('invalid-secret-code') } if (!req.body.username) { throw ne...
Jorch72/BetterWithMods
src/main/java/betterwithmods/integration/MineTweaker.java
package betterwithmods.integration; import betterwithmods.integration.minetweaker.*; import minetweaker.MineTweakerAPI; /** * Created by tyler on 9/4/16. */ public class MineTweaker { public static void init() { MineTweakerAPI.registerClass(Saw.class); MineTweakerAPI.registerClass(Kiln.class); ...
nistefan/cmssw
CommonTools/RecoAlgos/plugins/CompositeDimuonAndSelector.cc
#include "CommonTools/CandAlgos/interface/CompositeCandSelector.h" #include "CommonTools/UtilAlgos/interface/AndPairSelector.h" #include "CommonTools/UtilAlgos/interface/StringCutObjectSelector.h" #include "CommonTools/UtilAlgos/interface/SingleObjectSelector.h" #include "DataFormats/MuonReco/interface/Muon.h" #includ...
abhirocks1211/litho
litho-it/src/test/resources/processor/sections/FullDiffSectionSpec.java
/* * Copyright (c) 2017-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. */ package com...
GongYuanLearning/javaee
spring_core/spring_aop/src/main/java/com/example/aspect/LogsAspect.java
package com.example.aspect; import org.aspectj.lang.JoinPoint; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.After; import org.aspectj.lang.annotation.AfterReturning; import org.aspectj.lang.annotation.AfterThrowing; import org.aspectj.lang.annotation.Around; import org.aspectj.lang.a...
rvhub/MultipathODL
opendaylight/config/yang-jmx-generator-plugin/src/test/java/org/opendaylight/controller/config/yangjmxgenerator/plugin/module/abs/AbsModuleGeneratedObjectFactoryTest.java
<gh_stars>0 /* * Copyright (c) 2013 Cisco Systems, 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 available at http://www.eclipse.org/legal/epl-v10.html */ ...
leetcode-pp/leetcode-pp1
code/ch04/4.2.1.24game.py
<reponame>leetcode-pp/leetcode-pp1<gh_stars>10-100 from typing import List class Solution: def judgePoint24(self, nums: List[int]) -> bool: permutations = self.permuteUnique(nums) for permutation in permutations: if self.compute(permutation): return True return ...
BasisTI/madre
prescricao/src/main/java/br/com/basis/madre/prescricao/service/ItemPrescricaoDietaService.java
<gh_stars>1-10 package br.com.basis.madre.prescricao.service; import br.com.basis.madre.prescricao.domain.ItemPrescricaoDieta; import br.com.basis.madre.prescricao.repository.ItemPrescricaoDietaRepository; import br.com.basis.madre.prescricao.repository.search.ItemPrescricaoDietaSearchRepository; import br.com.basis.m...
isabella232/ioc-unit
modules/ioc-unit-analyzer/src/test/java/com/oneandone/iocunit/analyzer/typed/UsingClass.java
package com.oneandone.iocunit.analyzer.typed; import javax.inject.Inject; /** * @author aschoerk */ public class UsingClass { @Inject BaseClass baseClass; @Inject TypedSubClass typedSubClass; }
wyllie/AwAws
tests/Session/test_resource.py
<filename>tests/Session/test_resource.py import inspect import os from unittest.mock import patch, ANY from AwAws.Session.resource import Resource def test_resource(): resource = Resource() assert resource.resource is None assert resource.region_name is None inspect.isclass(Resource) assert isins...
heliosRX/heliosRX
dist/heliosrx.common.js
/** * heliosRX v0.2.4 * (c) 2020 <NAME> * @license MIT */ 'use strict'; function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var Vue = _interopDefault(require('vue')); var Vuex = _interopDefault(require('vuex')); var commonjsGlobal = typeof globalThis...
diatum-org/dikota
src/app/profileimage/profileimage.component.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var core_1 = require("@angular/core"); var router_1 = require("nativescript-angular/router"); var page_1 = require("tns-core-modules/ui/page"); var image_source_1 = require("tns-core-modules/image-source"); var camera_service_1 = require("../s...
cerberus707/lab-python
Conteudo das Aulas/140/pop.py
<filename>Conteudo das Aulas/140/pop.py import poplib import getpass import sys import mailconfig # Configuramos o servidor mailserver = mailconfig.servidor_pop # O nome do usuário mailuser = mailconfig.usuário_pop # Pedimos por uma senha mailpasswd = getpass.getpass('Senha para %s?' % mailserver) # Iniciamos o pro...
qiuxnlin/workflow
src/main/java/com/scxys/activiti/controller/ActDelegationCtl.java
package com.scxys.activiti.controller; import com.scxys.activiti.bean.ActDelegation; import com.scxys.activiti.service.ActDelegationService; import org.springframework.web.bind.annotation.*; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.util.HashMap; import j...
jackie-h/legend-engine
legend-engine-xt-json-model/src/main/java/org/finos/legend/engine/external/format/json/JsonExternalFormatExtension.java
<gh_stars>0 // Copyright 2022 <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...
jinroq/msgraph
lib/msgraph/odata/types/primitive_types.rb
require 'msgraph/odata/types/primitive_types/binary_type' require 'msgraph/odata/types/primitive_types/date_type' require 'msgraph/odata/types/primitive_types/double_type' require 'msgraph/odata/types/primitive_types/guid_type' require 'msgraph/odata/types/primitive_types/int_16_type' require 'msgraph/odata/types/primi...
andrew-edgar/cloud_controller_ng
app/messages/base_message.rb
<reponame>andrew-edgar/cloud_controller_ng require 'active_model' require 'messages/validators' module VCAP::CloudController class BaseMessage include ActiveModel::Model include Validators attr_accessor :requested_keys, :extra_keys def self.register_allowed_keys(allowed_keys) current_keys = c...
simonct/CoreAstro
External/astrometry.net/astrometry/include/2mass-fits.h
/* This file is part of the Astrometry.net suite. Copyright 2006-2008 <NAME>, <NAME> and <NAME>. The Astrometry.net suite 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, version 2. The Astrometry.net suite...
erickhouse1/scala-blog
client/node_modules/marky-markdown/lib/plugin/github.js
<filename>client/node_modules/marky-markdown/lib/plugin/github.js<gh_stars>0 // markdown-it plugin to rewrite image and link URLs to be static github URLs // when the calling code provides github repository information // var gh = require('github-url-to-object') var URL = require('url') var path = require('path') modu...
TotteKarlsson/atapi
source/vcl/frames/THDMIStreamerFrame.cpp
<reponame>TotteKarlsson/atapi #include <vcl.h> #pragma hdrstop #include "THDMIStreamerFrame.h" #include "dslLogger.h" #include "dslVCLUtils.h" #include "dslFileUtils.h" //#include "ArrayCamUtils.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma link "TA...
dshook/robo
mixins/withDeferredClose.js
define(function(require, exports, module) { var compose = require('robo/compose'); var _ = require('underscore'); // modify the render and close behavior to delay the removal from the DOM // long enough to potentially animate it var withDeferredClose = compose.defineMixin( { // ...
Tamookk/Basil
Basil/src/Core/Window.cpp
#include "pch.h" #include "Core/Window.h" #ifdef PLATFORM_WINDOWS #include "Platform/Windows/WindowsWindow.h" #endif namespace Basil { Unique<Window> Window::create(const WindowProps& props) { #ifdef PLATFORM_WINDOWS return makeUnique<WindowsWindow>(props); #else ASSERT(false, "Unknown platform."); r...
StephanBusch/7-Zip
EcoZipFM/BenchmarkDialog.cpp
<gh_stars>10-100 // BenchmarkDialog.cpp : implementation file // #include "stdafx.h" #include "C/CpuArch.h" #include "CPP/Common/Defs.h" #include "CPP/Common/IntToString.h" #include "CPP/Common/MyException.h" #include "CPP/Common/StringConvert.h" #include "CPP/Common/StringToInt.h" #include "CPP/Windows/System.h" ...
1136346879/loveSportsApp
src/cmccsi/mhealth/app/sports/bean/WeightInfo.java
<reponame>1136346879/loveSportsApp package cmccsi.mhealth.app.sports.bean; public class WeightInfo extends BaseNetItem { // 文件类型 public WeightInfoData datavalue; public String dataType = ""; public void setValue(WeightInfo date) { this.status = date.status; this.dataType = date.dataType; this.datavalue = d...
kotp/facets
lemon/core/module/test_pathize.rb
<reponame>kotp/facets<gh_stars>1-10 Covers 'facets/module/pathize' require File.dirname(__FILE__) + '/test_helper.rb' Case Module do Unit :pathize do ExampleModule::ExampleClass.pathize.assert == 'example_module/example_class' end end
ignaciocarvajal/gameStrore-backEnd
src/main/java/com/everis/gameStore/domain/model/Images.java
<reponame>ignaciocarvajal/gameStrore-backEnd package com.everis.gameStore.domain.model; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence...
PuQian/WebRTC
common/src/main/java/com/free4lab/account/model/WcsUserDAO.java
package com.free4lab.account.model; import java.util.List; import javax.persistence.Query; import com.free4lab.utils.sql.AbstractDAO; import com.free4lab.utils.sql.IEntityManagerHelper; import com.free4lab.utils.sql.entitymanager.NoCacheEntityManagerHelper; public class WcsUserDAO extends AbstractDAO<WcsU...
noprobzcoder09/helixdev
public/angular/client-controllers/LoginController.js
(function () { 'use strict'; angular .module('app') .controller('LoginController', Controller); function Controller($location, $localStorage, AuthService, $scope) { var vm = this; vm.login = login; initController(); function initController() { ...
RedBrumbler/virtuoso-codegen
include/UnityEngine/ExposedReference_1.hpp
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/byref.hpp" // Including type: System.ValueType #include "System/ValueType.hpp" // Including type: UnityEngine.Prope...
joeyynchan/spyder
Spyder/app/src/main/java/g1436218/com/spyder/asyncTask/DownloadImageTask.java
<gh_stars>0 package g1436218.com.spyder.asyncTask; import android.app.Activity; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.drawable.BitmapDrawable; import android.media.Image; import android.os.AsyncTask; import android.util.Log; impor...
vdrokov/components-1
components/components-salesforce/components-salesforce-definition/src/test/java/org/talend/components/salesforce/SalesforceModuleListPropertiesTest.java
<reponame>vdrokov/components-1 // ============================================================================ // // Copyright (C) 2006-2017 Talend Inc. - www.talend.com // // This source code is available under agreement available at // %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.t...
leelige/mindspore
research/cvtmodel/hrnet/src/hrnet_w18_small.py
<filename>research/cvtmodel/hrnet/src/hrnet_w18_small.py import mindspore.ops as P from mindspore import nn class Module3(nn.Cell): def __init__(self, conv2d_0_in_channels, conv2d_0_out_channels, conv2d_0_kernel_size, conv2d_0_stride, conv2d_0_padding, conv2d_0_pad_mode): super(Module3, s...
secret32/sceonblog
src/main/java/top/sceon/blog/service/NoteService.java
package top.sceon.blog.service; import org.springframework.stereotype.Service; import top.sceon.blog.dao.NoteDao; import top.sceon.blog.entity.Note; import javax.annotation.Resource; /** * @author zhouwei * @since 2016/9/1 */ @Service public class NoteService extends BaseServiceImpl<Note, Integer> implements IBas...
martmists-gh/BDSP
include/il2cpp/UnityEngine/Scripting/APIUpdating/MovedFromAttribute.h
<gh_stars>1-10 #pragma once #include "il2cpp.h" void UnityEngine_Scripting_APIUpdating_MovedFromAttribute___ctor (UnityEngine_Scripting_APIUpdating_MovedFromAttribute_o* __this, bool autoUpdateAPI, System_String_o* sourceNamespace, System_String_o* sourceAssembly, System_String_o* sourceClassName, const MethodInfo* m...
segment-oj/segment-sandbox
src/utils/process.cc
#include "ssandbox/utils/process.h" #include <cerrno> #include <climits> #include <filesystem> #include <fmt/core.h> #include "ssandbox/utils/exceptions.h" bool ssandbox::process::check_process_alive(pid_t pid) { std::filesystem::path process_proc("/proc"); process_proc /= std::to_string(pid); if (!std::f...
RemotecraftProject/RemotecraftApp
domain/src/main/java/com/remotecraft/app/domain/provider/ReceiverActionProvider.java
<filename>domain/src/main/java/com/remotecraft/app/domain/provider/ReceiverActionProvider.java package com.remotecraft.app.domain.provider; import io.reactivex.Maybe; public interface ReceiverActionProvider { Maybe<Integer> getWifiState(); }
fabiojna02/OpenCellular
firmware/coreboot/payloads/coreinfo/multiboot_module.c
<filename>firmware/coreboot/payloads/coreinfo/multiboot_module.c /* * This file is part of the coreinfo project. * * Copyright (C) 2008 <NAME> <<EMAIL>> * * 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 Softw...
iboxdb/db4o-gpl
db4o.j/db4o-core/core/src/com/db4o/internal/query/processor/QCandidateBase.java
/* Copyright (C) 2004 - 2010 Versant Inc. http://www.db4o.com */ package com.db4o.internal.query.processor; import com.db4o.*; import com.db4o.foundation.*; import com.db4o.internal.*; public abstract class QCandidateBase extends TreeInt implements InternalCandidate { protected final QCandidates _candidates; pro...
HowProgrammingWorks/JSTP
test/node/session.js
<filename>test/node/session.js 'use strict'; const test = require('tap'); const jstp = require('../..'); const app = require('../fixtures/application'); const application = new jstp.Application(app.name, app.interfaces); const serverConfig = { applications: [application] }; let server; let connection; let port; t...
sebyx07/hyperstack
ruby/hyper-spec/lib/selenium/web_driver/firefox/profile.rb
module Selenium module WebDriver module Firefox class Profile class << self attr_accessor :firebug_version def firebug_version @firebug_version ||= '2.0.19-fx' end end def frame_position @frame_position ||= 'detached' end ...
ihmcrobotics/ihmc-open-robotics-software
ihmc-simple-whole-body-walking/src/main/java/us/ihmc/simpleWholeBodyWalking/SimpleControlManagerFactory.java
package us.ihmc.simpleWholeBodyWalking; import java.util.Collection; import java.util.HashMap; import java.util.Map; import gnu.trove.map.hash.TObjectDoubleHashMap; import us.ihmc.commonWalkingControlModules.capturePoint.BalanceManager; import us.ihmc.commonWalkingControlModules.capturePoint.CenterOfMassHeightManager...
sodadata/soda-core
soda/core/soda/profiling/sample_tables_result.py
<reponame>sodadata/soda-core<gh_stars>1-10 from typing import List from soda.sampler.sample_ref import SampleRef from soda.sodacl.data_source_check_cfg import DataSourceCheckCfg class SampleTablesResultTable: def __init__(self, table_name: str, data_source: str, sample_ref: SampleRef): self.table_name: s...
hernad/zimbra9
zm-mailbox/soap/src/java/com/zimbra/soap/mail/type/WatcherInfo.java
/* * ***** BEGIN LICENSE BLOCK ***** * Zimbra Collaboration Suite Server * Copyright (C) 2011, 2012, 2013, 2014, 2016 Synacor, Inc. * * 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, * versi...
RubbaBoy/jsyn
src/main/java/com/jsyn/unitgen/Grain.java
<gh_stars>100-1000 /* * Copyright 2011 <NAME>, Mobileer Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required b...
IEnoobong/mmadu
mmadu-identity/src/main/java/com/mmadu/identity/providers/credentials/CredentialsHasher.java
package com.mmadu.identity.providers.credentials; import com.mmadu.identity.entities.ClientCredentials; import com.mmadu.identity.entities.ClientInstance; import com.mmadu.identity.entities.credentials.Credential; import com.mmadu.identity.entities.credentials.CredentialData; import org.springframework.beans.factory.a...
devin-shi/angular-web-platform
node_modules/@delon/acl/esm2015/acl.js
import { Directive, ElementRef, Injectable, Input, NgModule, Renderer2 } from '@angular/core'; import { BehaviorSubject as BehaviorSubject$1 } from 'rxjs/BehaviorSubject'; import { Router } from '@angular/router'; import { Observable as Observable$1 } from 'rxjs/Observable'; import { of as of$1 } from 'rxjs/observable/...
Oracle-Exam-Preparation/OCP
src/main/java/com/trl/theoreticalKnowledge/_enum/values/methods/a/a2/Example.java
<reponame>Oracle-Exam-Preparation/OCP package com.trl.theoreticalKnowledge._enum.methods.a.a2; public class Example { public static void main(String[] args) { } } enum Color { WHITE { public void doSomething() { System.out.println("WHITE"); } }, BLACK { public ...
daxtens/travis-cookbooks
cookbooks/users/resources/github_keys.rb
<gh_stars>1-10 actions :create default_action :create attribute :id, kind_of: String, name_attribute: true attribute :github_username, kind_of: String
tianyudizhua/DanDanPlayForAndroid
app/src/main/java/com/xyoye/dandanplay/ui/weight/item/TorrentFileCheckItem.java
package com.xyoye.dandanplay.ui.weight.item; import android.graphics.drawable.Drawable; import android.view.View; import android.widget.ImageView; import android.widget.TextView; import com.xyoye.dandanplay.R; import com.xyoye.dandanplay.bean.TorrentCheckBean; import com.xyoye.dandanplay.utils.CommonUtils; import com...
VansPo/flickr-gallery
FlickrGallery/app/src/main/java/com/ipvans/flickrgallery/ui/main/MainAdapter.java
package com.ipvans.flickrgallery.ui.main; import android.support.v7.util.DiffUtil; import android.support.v7.widget.RecyclerView; import android.text.SpannableString; import android.text.Spanned; import android.text.TextUtils; import android.text.method.LinkMovementMethod; import android.text.style.ClickableSpan; impo...
iancardosozup/horusec
e2e/analysis/analysis_test.go
// Copyright 2021 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA // // 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...
Leringit/Exercicios-de-Estudo-Paketa
exe07 - TrelloGenerico/class2/projects/crypto-currency/iluminados/api/src/routes/modules/logout.js
<gh_stars>1-10 import express from "express"; const app = express(); app.use(express.json()); app.get("./logout", function (req, res) { req.logout(); req.session.destroy(function (error) { res.redirect("./login"); }); }); export default app;
jiachen247/llvm-sauce
tests/sicp/chapter1/section3/subsection2/3.js
<reponame>jiachen247/llvm-sauce function sum(term, a, next, b) { return a > b ? 0 : term(a) + sum(term, next(a), next, b); } function pi_sum(a,b) { return sum(x => 1.0 / (x * (x + 2)), a, x => x + 4, b); } 8 * pi_sum(1, 1000); // expected: 3.13...
JaneliaSciComp/osgpyplusplus
src/modules/osg/generated_code/CoordinateSystemNode.pypp.hpp
// This file has been generated by Py++. #ifndef CoordinateSystemNode_hpp__pyplusplus_wrapper #define CoordinateSystemNode_hpp__pyplusplus_wrapper void register_CoordinateSystemNode_class(); #endif//CoordinateSystemNode_hpp__pyplusplus_wrapper
circinusX1/qgetic
getic/docsave.cpp
// z_ed2Doc.cpp : implementation of the Document class // #include "stdafx.h" #include "texref.h" #include "document.h" #include "view2d.h" #include "view3d.h" #include <algorithm> #include "lightbulb.h" #include "triggeritem.h" #include "sounditem.h" #include "gameitem.h" #include "geticapp.h" #include "cwaitcursor.h...
apocalyptech/minecraftxray
src/com/apocalyptech/minecraft/xray/BlockTypeFilename.java
<gh_stars>10-100 /** * Copyright (c) 2010-2012, <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 retain the above copyright * notice,...
apdoerL/condition-order-server
condition-core/src/main/java/org/apdoer/condition/core/utils/RedisKeyBuildUtils.java
<filename>condition-core/src/main/java/org/apdoer/condition/core/utils/RedisKeyBuildUtils.java package org.apdoer.condition.core.utils; public class RedisKeyBuildUtils { private static final String PUSH_USER_GROUP_REDIS_KEY = "PUG_";// 用户组 public static String buildPushUserGroupRedisKey(Integer userId) { return ...
MultiCoreNetwork/AIO
plugin/src/main/java/it/multicoredev/aio/storage/config/sections/AfkSection.java
<filename>plugin/src/main/java/it/multicoredev/aio/storage/config/sections/AfkSection.java package it.multicoredev.aio.storage.config.sections; import com.google.gson.annotations.SerializedName; import it.multicoredev.mclib.json.JsonConfig; import java.util.ArrayList; import java.util.List; /** * Copyright © 2021 -...
KxmischesDomi/Utility
jda-manager/src/main/java/net/anweisen/utilities/jda/manager/EventCreator.java
<filename>jda-manager/src/main/java/net/anweisen/utilities/jda/manager/EventCreator.java package net.anweisen.utilities.jda.manager; import net.anweisen.utilities.jda.manager.hooks.event.CommandEvent; import net.anweisen.utilities.jda.manager.hooks.registered.RegisteredCommand; import net.anweisen.utilities.jda.manage...
BD2K-DDI/ddi-service-db
src/main/java/uk/ac/ebi/ddi/service/db/service/similarity/ITermInDBService.java
package uk.ac.ebi.ddi.service.db.service.similarity; import org.bson.types.ObjectId; import org.springframework.data.domain.Page; import org.springframework.stereotype.Repository; import uk.ac.ebi.ddi.service.db.model.similarity.TermInDB; import java.util.List; /** * Created by mingze on 30/07/15. */ @Repository p...
jesse-gallagher/XPagesExtensionLibrary
extlib/lwp/product/runtime/eclipse/plugins/com.ibm.xsp.extlib.domino/resources/web/dwa/lv/nls/iw/listview_c.js
({ D_DIR_DEFAULT: "rtl", D_GIGABYTES: "%1G", D_KILOBYTES: "%1K", D_MEGABYTES: "%1M", D_NUMFMT_DECIMALSYMBOL: ".", D_NUMFMT_THOUSANDSSEPARATOR: ",", D_PADDING_REVERSE: "padding-left", D_TERABYTES: "%1T" })
mccormickmichael/laurel
scaffold/iam/group_sync.py
import logging from . import load_policy_map logger = logging.getLogger('laurel.iam.GroupSync') class GroupSync(object): def __init__(self, boto3_session, iam_stack_name=None): self._session = boto3_session self._iam = self._session.resource('iam') self._policy_map = loa...
ocamler/expense-www
src/js/date/components/details.js
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { AmountItem } from './amount_item'; @connect( state => ({ details: state.details }) ) export default class extends Component { render() { const { method_payment, amounts } = this.props.details; const total = amo...
enerc/zsearch
src/queries/model/and.cpp
#include "and.hpp" #include "../../queries/builders/ast.hpp" using namespace std; namespace queries::model { void AndModel::execute(queries::builders::AST *ast) { if (exprList.size() != 2) { Log::error(ast->getQueryStatus(),"SQL query AND should have 2 childrens. "+ast->getSaveqQuery()); return; ...
nicho92/mtgDesktopCompanion
src/main/java/org/magic/api/beans/audit/TaskInfo.java
<filename>src/main/java/org/magic/api/beans/audit/TaskInfo.java package org.magic.api.beans.audit; import java.time.Instant; public class TaskInfo extends AbstractAuditableItem { public enum STATE {NEW,STARTED,CANCELED,FINISHED} public enum TYPE {WORKER,RUNNABLE} private static final long serialVersionUID = 1L;...
tes/marketplace-demo
src/mixins/authDialog.js
<filename>src/mixins/authDialog.js import * as mutationTypes from 'src/store/mutation-types' export default { methods: { openAuthDialog ({ persistent = false, formType, redirectAfterSignup = false, action } = {}) { if (formType) { this.$store.commit({ type: mutationTypes.SET_AUTH_DIALOG_F...
FavyTeam/Elderscape_server
source/game/object/areas/WildernessObjects.java
<filename>source/game/object/areas/WildernessObjects.java package game.object.areas; import game.content.miscellaneous.PlayerMiscContent; import game.content.miscellaneous.Teleport; import game.content.miscellaneous.Web; import game.object.ObjectEvent; import game.object.custom.DoorEvent; import game.player.Area; impo...
rawhiteside/jr
actions/thorns-for-bugs.rb
<reponame>rawhiteside/jr<gh_stars>0 require 'action' require 'walker' class ThornRun < Action def initialize super('Thorn run 2', 'Gather') end def find_one_window(x, y) w = PinnableWindow.from_point(Point.new(x, y)) unless w msg = 'Missed a pinned thorn dialog' UserIO.error(msg) r...
HandsomeOrange/jxc-admin
java/cloud/web/web-modules/system/src/main/java/cn/toesbieya/jxc/system/controller/SupplierController.java
package cn.toesbieya.jxc.system.controller; import cn.toesbieya.jxc.common.model.entity.SysSupplier; import cn.toesbieya.jxc.common.model.vo.R; import cn.toesbieya.jxc.system.model.vo.SupplierSearch; import cn.toesbieya.jxc.system.service.SupplierService; import org.springframework.util.StringUtils; import org.springf...
sho25/activemq
activemq-http/src/test/java/org/apache/activemq/transport/http/HttpJMSMessagesWithCompressionTest.java
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_comment comment|/** * 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...
lechium/tvOS130Headers
System/Library/PrivateFrameworks/AppStoreDaemon.framework/Support/appstored/URLResponseDecoder.h
<reponame>lechium/tvOS130Headers<filename>System/Library/PrivateFrameworks/AppStoreDaemon.framework/Support/appstored/URLResponseDecoder.h<gh_stars>10-100 /* * This header is generated by classdump-dyld 1.0 * on Tuesday, November 5, 2019 at 2:38:48 AM Mountain Standard Time * Operating System: Version 13.0 (Build 17J58...
thetw/twin.macro
src/variants.js
<filename>src/variants.js<gh_stars>0 /* eslint-disable @typescript-eslint/restrict-plus-operands */ import cleanSet from 'clean-set' import { logGeneralError } from './logging' import { get, throwIf } from './utils' import { SPACE_ID } from './constants' const getPeerValueFromVariant = variant => get(/\.peer:(.+) ~ ...
mdziadkowiec95/mern-todo-app
client/src/components/molecules/Popover/Popover.js
import React, { useState } from 'react' import styles from './Popover.module.scss' import PropTypes from 'prop-types' import classNames from 'classnames/bind' const cn = classNames.bind(styles) const generateTooltipPositionCSS = (top, right, bottom, left, centerType) => { const styles = { top: top, bottom: ...
Deyk/learning-spring
library/src/main/java/ru/otus/spring/library/rest/AuthorController.java
<filename>library/src/main/java/ru/otus/spring/library/rest/AuthorController.java package ru.otus.spring.library.rest; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; import ru.otus.spring.library.domain.Author; import ru.otu...
sptz45/coeus
src/test/scala/com/tzavellas/coeus/mvc/WebResponseTest.scala
/* - Coeus web framework ------------------------- * * Licensed under the Apache License, Version 2.0. * * Author: <NAME> */ package com.tzavellas.coeus package mvc import org.junit.Test import org.junit.Assert._ import org.springframework.mock.web.MockHttpServletResponse import test.Assertions.assertThrows impor...
Sproutigy/LucenePlus
core/src/main/java/com/sproutigy/libs/luceneplus/core/search/LuceneSearchResults.java
package com.sproutigy.libs.luceneplus.core.search; import com.sproutigy.libs.luceneplus.core.CloseableIterator; import java.io.IOException; import java.util.List; public interface LuceneSearchResults extends CloseableIterator<LuceneSearchHit> { boolean hasTotal(); long total(); boolean hasCount(); i...
orth0dox/liliths-throne-public
src/com/lilithsthrone/game/sex/managers/dominion/SMGloryHoleSex.java
<filename>src/com/lilithsthrone/game/sex/managers/dominion/SMGloryHoleSex.java package com.lilithsthrone.game.sex.managers.dominion; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Map; import com.lilithsthrone.game.character.GameCharacter; import com.lilithsthrone.ga...
anyex-net/aeron
aeron-client/src/main/c/aeron_counters.h
<filename>aeron-client/src/main/c/aeron_counters.h /* * Copyright 2014-2022 Real Logic Limited. * * 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 * * https://www.apache.org/licenses/LICE...
vadim8kiselev/public-enemy
src/main/java/com/kiselev/enemy/network/instagram/api/internal2/requests/accounts/AccountsTwoFactorLoginRequest.java
package com.kiselev.enemy.network.instagram.api.internal2.requests.accounts; import com.kiselev.enemy.network.instagram.api.internal2.IGClient; import com.kiselev.enemy.network.instagram.api.internal2.models.IGPayload; import com.kiselev.enemy.network.instagram.api.internal2.requests.IGPostRequest; import com.kiselev....
nkrios/grr
grr/server/grr_response_server/gui/static/angular-components/core/confirmation-dialog-directive.js
goog.module('grrUi.core.confirmationDialogDirective'); goog.module.declareLegacyNamespace(); /** * Controller for ConfirmationDialogDirective. * * @constructor * @param {!angular.Scope} $scope * @param {!angular.$timeout} $timeout * @ngInject */ const ConfirmationDialogController = function($scope, $timeout...
IBMStreams/OSStreams
src/cpp/SPL/Runtime/ProcessingElement/JNISPLRuntimeBridge.cpp
/* * Copyright 2021 IBM Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
bimslab/mobileapp_eegmuselib
ios/Pods/Headers/Public/libmuse/Muse/api/IXNMuseArtifactPacket.h
// AUTOGENERATED FILE - DO NOT MODIFY! // This file generated by Djinni from packets.djinni #import <Foundation/Foundation.h> /** Provides access to calculated artifacts. */ @interface IXNMuseArtifactPacket : NSObject - (nonnull instancetype)initWithHeadbandOn:(BOOL)headbandOn bli...
arturodrigues/carbon
src/components/popover-container/popover-container.stories.js
import React from 'react'; import { withKnobs, text } from '@storybook/addon-knobs'; import PopoverContainer from './popover-container.component'; export default { title: 'Test/Popover Container', component: PopoverContainer, decorators: [withKnobs], parameters: { info: { disable: true }, docs: { ...