repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
shibaaaa/bootcamp
app/models/comment/after_create_callback.rb
# frozen_string_literal: true class Comment::AfterCreateCallback def after_create(comment) if comment.commentable.class.include?(Watchable) create_watch(comment) notify_to_watching_user(comment) elsif comment.sender != comment.receiver notify_comment(comment) end if comment.comment...
souzamonteiro/maialexa
src/MkLexer.js
/** * @license * Copyright 2020 <NAME>, * <NAME>, * <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/LICENS...
metux/chromium-deb
chrome/browser/supervised_user/legacy/supervised_user_pref_mapping_service.cc
<reponame>metux/chromium-deb // Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/supervised_user/legacy/supervised_user_pref_mapping_service.h" #include "base/bind.h" #include "bas...
mickknutson/SITE_BOOTCAMP_QA
StudentWork/Abdullaht/springboot/petstore/src/main/java/sa/site/lab/petstore/dao/AnimalDao.java
<gh_stars>10-100 package sa.site.lab.petstore.dao; import sa.site.lab.petstore.domain.Animal; import java.util.List; public interface AnimalDao { Animal findPet(int id); List<Animal> findAll(); }
vladisnik/lazy-lxd
lazy_lxd/lib/inquirer/input.py
from PyInquirer import prompt from .confirm import confirm def input_text(msg: str = "Type something") -> str: """ Ask user to enter text in response to a request input answer Args: msg (str): Message which display to user. This is request for input text usually. Returns: ...
VArbiter/CCLocalLibrary
FileOperateRecord/2017-06-26 130754/UICollectionViewFlowLayout/UICollectionViewFlowLayout+CCExtension.h
// // UICollectionViewFlowLayout+CCExtension.h // CCLocalLibrary // // Created by 冯明庆 on 2017/4/1. // Copyright © 2017年 冯明庆. All rights reserved. // #import <UIKit/UIKit.h> @interface UICollectionViewFlowLayout (CCExtension) + (instancetype) ccCollectionLayoutWithItemSize : (CGSize) sizeItem ; + (instancetype) ...
lgxkdream/algorithm-problems
src/io/github/lgxkdream/test/unit3/LastRemaining.java
package io.github.lgxkdream.test.unit3; import java.util.LinkedList; import java.util.Queue; /** * @author <NAME> * @version 1.0.0 * @title LastRemaining * @description https://leetcode-cn.com/problems/yuan-quan-zhong-zui-hou-sheng-xia-de-shu-zi-lcof/ * @since 2020-03-30 12:36 */ public class LastRemaining { ...
shuigedeng/taotao-cloud-paren
taotao-cloud-java/taotao-cloud-javaee/src/main/java/com/taotao/cloud/java/javaee/s2/c5_redis/web/java/pojo/Menu.java
package com.taotao.cloud.java.javaee.s2.c5_redis.web.java.pojo; import java.util.ArrayList; import java.util.List; public class Menu { private Integer id; private Integer parentId; private Integer type; private String name; private String url; private Integer sort; private List<Menu> chil...
RhoInc/Webcharts
src/chart/resize.js
<gh_stars>10-100 import { select } from 'd3'; export default function resize() { let config = this.config; let aspect2 = 1 / config.aspect; let div_width = parseInt(this.wrap.style('width')); let max_width = config.max_width ? config.max_width : div_width; let preWidth = !config.resizable ...
undr/influxdb-api
lib/influxdb/api/namespaces/shards.rb
<reponame>undr/influxdb-api module Influxdb module Api module Namespaces class Shards < Base resource_path '/cluster/shards' def create(attributes) attributes['startTime'] = cast_datetime(attributes['startTime']) if attributes['startTime'] attributes[:startTime] = cast_d...
akash-coded/spring-framework
eclipse-projects/spring-boot/spring-boot-request-parsing-demo-app/src/main/java/com/spring/boot/request/parsing/demo/SpringBootRequestParsingDemoAppApplication.java
<gh_stars>1-10 package com.spring.boot.request.parsing.demo; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class SpringBootRequestParsingDemoAppApplication { public static void main(String[] args) { SpringAppli...
NightKirie/NCKU_NLP_2108_industry3
Packages/matplotlib-2.2.2/lib/mpl_examples/lines_bars_and_markers/markevery_demo.py
""" ============== Markevery Demo ============== This example demonstrates the various options for showing a marker at a subset of data points using the ``markevery`` property of a Line2D object. Integer arguments are fairly intuitive. e.g. ``markevery=5`` will plot every 5th marker starting from the first data poin...
chreden/trview
trview.app/Mocks/Menus/IUpdateChecker.h
<reponame>chreden/trview #pragma once #include "../../Menus/IUpdateChecker.h" namespace trview { namespace mocks { class MockUpdateChecker final : public IUpdateChecker { public: virtual ~MockUpdateChecker() = default; MOCK_METHOD(void, check_for_updates, ()); ...
santhoshkkk/ci-droid-tasks-consumer
ci-droid-tasks-consumer-infrastructure/src/main/java/com/societegenerale/cidroid/tasks/consumer/infrastructure/notifiers/EMailActionNotifier.java
<reponame>santhoshkkk/ci-droid-tasks-consumer package com.societegenerale.cidroid.tasks.consumer.infrastructure.notifiers; import com.societegenerale.cidroid.tasks.consumer.services.model.github.User; import com.societegenerale.cidroid.tasks.consumer.services.notifiers.ActionNotifier; import lombok.extern.slf4j.Slf4j;...
oriss68/Panilla
glowstone-r2018_9_0/src/main/java/com/ruinscraft/panilla/glowstone/r2018_9_0/io/PacketInspector.java
<filename>glowstone-r2018_9_0/src/main/java/com/ruinscraft/panilla/glowstone/r2018_9_0/io/PacketInspector.java package com.ruinscraft.panilla.glowstone.r2018_9_0.io; import com.ruinscraft.panilla.api.IPanilla; import com.ruinscraft.panilla.api.IPanillaPlayer; import com.ruinscraft.panilla.api.exception.EntityNbtNotPer...
uesleicarvalhoo/ProjectStore
backend/src/core/models/context.py
<filename>backend/src/core/models/context.py from typing import Union from uuid import UUID from pydantic import BaseModel from src.core.constants import AccessLevel, ContextEnum class Context(BaseModel): context: ContextEnum user_id: Union[UUID, None] user_access_level: bool = False method: str ...
zengfanmao/mpds
VideoServer/src/mod/event_handlers/mod_amqp/mod_amqp_command.c
/* * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application * Copyright (C) 2005-2012, <NAME> <<EMAIL>> * * Version: MPL 1.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. Yo...
ty850454/S-S
ss-web/src/test/java/com/dreammakerteam/ss/ssweb/WebApplicationTests.java
<filename>ss-web/src/test/java/com/dreammakerteam/ss/ssweb/WebApplicationTests.java package com.dreammakerteam.ss.ssweb; import com.fasterxml.jackson.core.JsonProcessingException; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframe...
project-arlo/sonic-mgmt-framework
src/translib/igmp_snooping_test.go
<reponame>project-arlo/sonic-mgmt-framework<filename>src/translib/igmp_snooping_test.go //////////////////////////////////////////////////////////////////////////////// // // // Copyright 2019 Broadcom. The term Broadcom refers to Broadcom Inc....
lechium/tvOS145Headers
usr/libexec/identityservicesd/IDSRestoreMonitor.h
// // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 <NAME>. // #import <objc/NSObject.h> @class IMTimer, NSMapTable; @interface IDSRestoreMonitor : NSObject { CDUnknownBlockType _timerBlock; // 8 = 0x8 IMTi...
bonkydog/webhack
spec/lib/mulitplex_spec.rb
<gh_stars>1-10 require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe Multiplex do class Adapter include Multiplex end before do @coming_down = FakeFile.new @coming_up = FakeFile.new @going_down = FakeFile.new @going_up = FakeFile.new [@coming_down, @coming_up, @...
pradeepkumarcm-egov/DIGIT-Dev
core-services/libraries/enc-client/src/main/java/org/egov/encryption/producer/Producer.java
package org.egov.encryption.producer; import org.egov.tracer.kafka.CustomKafkaTemplate; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; @Component public class Producer { @Autowired private CustomKafkaTemplate<String, Object> kafkaTemplate; ...
georgianapopescu/Redmine
ruby/lib/ruby/gems/2.3.0/gems/roadie-rails-1.1.1/spec/support/have_no_styling_matcher.rb
RSpec::Matchers.define :have_no_styling do chain(:at_selector) { |selector| @selector = selector } match { |document| @selector ||= 'body > *:first' styles_at_selector(document).empty? } description { "have no styles at selector #{@selector.inspect}" } failure_message { |document| "expect...
laraharrow/looker-role-explorer-extension
node_modules/@looker/components/dist/esm/utils/useToggle.js
import { useState } from 'react'; export function useToggle(initialValue) { if (initialValue === void 0) { initialValue = false; } var _a = useState(initialValue), value = _a[0], setValue = _a[1]; var setOn = function () { return setValue(true); }; var setOff = function () { return setValue(false); }; ...
rackeric/rack
commands/serverscommands/instancecommands/rebuild_test.go
package instancecommands import ( "flag" "fmt" "net/http" "testing" "github.com/rackspace/rack/handler" "github.com/rackspace/rack/internal/github.com/codegangsta/cli" "github.com/rackspace/rack/internal/github.com/rackspace/gophercloud/openstack/compute/v2/extensions/diskconfig" "github.com/rackspace/rack/in...
kenone/mindy
src/components/Icons/cross.js
<gh_stars>0 import React from 'react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faTimes } from '@fortawesome/free-solid-svg-icons' const Cross = () => { return <FontAwesomeIcon icon={faTimes} /> } export default Cross
aryanmaurya1/ArvernOS
docs/search/functions_12.js
<gh_stars>10-100 var searchData= [ ['udp_5freceive_5fpacket_0',['udp_receive_packet',['../udp_8h.html#a1e9dad20351b1ebb8b51196d2563c591',1,'udp.c']]], ['udp_5fsend_5fpacket_1',['udp_send_packet',['../udp_8h.html#ac78d90d0d505eb6b507d0cf93c7499fb',1,'udp.c']]], ['unmap_2',['unmap',['../paging_8h.html#a2556847794ba...
xmar/pythran
third_party/boost/simd/arch/common/simd/function/shift_left.hpp
//================================================================================================== /** Copyright 2016 NumScale SAS Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) **/ //====================================...
TopEngineer0926/360platform
src/views/WebAppManager/Owners/OwnerEdit.js
<filename>src/views/WebAppManager/Owners/OwnerEdit.js import React, { useState, useEffect } from 'react'; import { withRouter } from 'react-router-dom'; import Grid from '@material-ui/core/Grid'; import Typography from '@material-ui/core/Typography'; import TextField from '@material-ui/core/TextField'; import { Avatar ...
srl295/icu
richedit/classes/src/com/ibm/richtext/textapps/TestMTextToString.java
/* * (C) Copyright IBM Corp. 1998-2004. All Rights Reserved. * * The program is provided "as is" without any warranty express or * implied, including the warranty of non-infringement and the implied * warranties of merchantibility and fitness for a particular purpose. * IBM will not be liable for any damages suf...
OneFlying/searchweb
src/main/java/com/yf/dao/AdvertDao.java
package com.yf.dao; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.List; import org.springframework.jdbc.core.BatchPreparedStatementSetter; import org.springframework.jdbc.core.RowMapper; import org.springframework.stereotype.Repository; import...
MaximilianKorn/opencast
modules/common/src/main/java/org/opencastproject/mediapackage/MediaPackageSerializer.java
<filename>modules/common/src/main/java/org/opencastproject/mediapackage/MediaPackageSerializer.java<gh_stars>100-1000 /** * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional * information regarding copyright ownership. ...
matsukei/shirasagi
app/models/ss/file.rb
<gh_stars>0 class SS::File include SS::File::Model end
diekhans/kent
src/hg/lib/knownToSuper.c
/* knownToSuper.c was originally generated by the autoSql program, which also * generated knownToSuper.h and knownToSuper.sql. This module links the database and * the RAM representation of objects. */ /* Copyright (C) 2014 The Regents of the University of California * See README in this or parent directory for ...
maikelronnau/sistema_epti
Sistema EPTI/src/DAO/HistoricoComputadorDAO.java
package DAO; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import modelo.HistoricoComputadorVO; import persistencia.ConexaoBanco; /** * @author <NAME> * @version 1.0 * @since 14/01/2015 */ public class HistoricoC...
xujie3949/MGU2
src/components/split/Split.js
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import SplitJS from 'split.js'; import stores from 'Stores/stores'; import navinfo from 'navinfo'; export default class Split extends PureComponent { static propTypes = { children: PropTypes.node, config: PropTypes.o...
roytam1/wine-win31look
dlls/ole32/moniker.c
/* * Monikers * * Copyright 1998 <NAME> * Copyright 1999 <NAME> * * This library 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) a...
Matt-Hayes24/hivemq-community-edition
src/main/java/com/hivemq/codec/encoder/mqtt5/Mqtt5PublishEncoder.java
/* * Copyright 2019-present HiveMQ GmbH * * 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...
d-amien-b/simple-getwordpress
Collections-a-installer/community-general-2.4.0/plugins/modules/cloud/opennebula/one_host.py
#!/usr/bin/python # # Copyright 2018 www.privaz.io Valletech AB # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Make coding more python3-ish from __future__ import (absolute_import, division, print_function) __metaclass__ = type DOCUMENTATION = ''' --- module: one_host ...
Wexalian/jtrakt
src/main/java/com/wexalian/jtrakt/json/adapter/DayTypeAdapter.java
<reponame>Wexalian/jtrakt package com.wexalian.jtrakt.json.adapter; import com.google.gson.*; import com.wexalian.jtrakt.endpoint.TraktAirsInfo; import java.lang.reflect.Type; public class DayTypeAdapter implements JsonSerializer<TraktAirsInfo.Day>, JsonDeserializer<TraktAirsInfo.Day> { public static DayTypeAdap...
wyriwyg/hadatac
app/org/hadatac/console/controllers/schema/EditingOptions.java
package org.hadatac.console.controllers.schema; import play.mvc.Controller; import play.mvc.Result; //import views.html.schema.*; //import controllers.AuthApplication; import org.hadatac.console.models.OtMSparqlQueryResults; import org.hadatac.entity.pojo.Entity; import org.hadatac.entity.pojo.Attribute; import org.h...
jpardobl/django-thermostat
django_thermostat/pypelib/parsing/ParseEngine.py
<filename>django_thermostat/pypelib/parsing/ParseEngine.py import os import sys import time import uuid ''' @author: msune,lbergesio,cbermudo,omoya @organization: i2CAT, OFELIA FP7 ParseEngine Implementes driver-based parsing mechanism for rules ''' class ParseEngine(): #Drivers _drivers = ["RegexPar...
AndreaMelle/OmniPreview
CCRiftPlugin/src/PrSDK/PrSDKVideoSegmentProperties.h
/*******************************************************************/ /* */ /* ADOBE CONFIDENTIAL */ /* _ _ _ _ _ _ _ _ _ _ _ _ _ */ /* ...
catarizea/medical-equipment-tracker
authentication/src/utils/testHelpers/user.js
<reponame>catarizea/medical-equipment-tracker const { v4: uuidv4 } = require('uuid'); const models = require('../../models'); const { generateJwtToken, generateRefreshToken } = require('../../services'); const { REFRESH_TOKEN_COOKIE, REFRESH_TOKEN_COOKIE_OPTIONS, } = require('../../constants/cookies'); const load...
muratartim/Equinox
src/equinox/task/ExportMultiplicationTables.java
<reponame>muratartim/Equinox /* * Copyright 2018 <NAME> (<EMAIL>). * * 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 requ...
JessonYue/LeetCodeLearning
Array/yangliu/Solution_07_16.java
class Solution { public boolean backspaceCompare(String S, String T) { return build(S).equals(build(T)); } public String build(String S) { Stack<Character> ans = new Stack(); for (char c: S.toCharArray()) { if (c != '#') ans.push(c); else if (...
boveloco/Puc
Programacao 3D/Ray Trace/src/br/pucpr/raytracer/Vector3fOps.java
<reponame>boveloco/Puc package br.pucpr.raytracer; import org.joml.Vector3f; public class Vector3fOps { public static Vector3f add(Vector3f a, Vector3f b) { return new Vector3f(a).add(b); } public static Vector3f sub(Vector3f a, Vector3f b) { return new Vector3f(a).sub(b); } ...
sravani-m/Web-Application-Security-Framework
tools/arachni/system/arachni-ui-web/app/models/setting.rb
class Setting < ActiveRecord::Base serialize :scan_target_whitelist_patterns, Array serialize :scan_target_blacklist_patterns, Array serialize :scan_allowed_types, Array serialize :profile_allowed_checks, Array serialize :profile_allowed_plugins, Array after_save :save_callback SCAN_TYPES...
aquariumbio/trident
pydent/models/operation.py
"""Models related to operations and operation types.""" from pydent.base import ModelBase from pydent.exceptions import AquariumModelError from pydent.marshaller import add_schema from pydent.models.crud_mixin import SaveMixin from pydent.models.data_associations import DataAssociatorMixin from pydent.models.field_valu...
alexfradiani/AlxFx
project/src/fradiani/env/ABar.java
<reponame>alexfradiani/AlxFx package fradiani.env; import fradiani.env.TickServer.TF; import java.util.Calendar; import java.util.GregorianCalendar; import java.util.TimeZone; /** * Model of a Bar */ public class ABar { public double high; public double low; public double open; public double close; publi...
sjamboro/kogito-runtimes
kogito-codegen-modules/kogito-codegen-openapi/src/main/java/org/kie/kogito/codegen/openapi/client/OpenApiUtils.java
/* * Copyright 2021 Red Hat, Inc. 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 a...
alwin-george-bsl/asanti
src/test/java/com/brightsparklabs/asanti/mocks/model/schema/TestAsnSchema.java
<filename>src/test/java/com/brightsparklabs/asanti/mocks/model/schema/TestAsnSchema.java /* * Maintained by brightSPARK Labs. * www.brightsparklabs.com * * Refer to LICENSE at repository root for license details. */ package com.brightsparklabs.asanti.mocks.model.schema; import static org.mockito.Mockito.*; impo...
Nalhin/Leetcode
src/main/java/com/leetcode/arrays/medium/CombinationSum_39.java
<reponame>Nalhin/Leetcode package com.leetcode.arrays.medium; // Given an array of distinct integers candidates and a target integer target, re // turn a list of all unique combinations of candidates where the chosen numbers su // m to target. You may return the combinations in any order. // // The same number may be ...
bibonev/PacmanPlusPlus
src/main/java/gamelogic/core/GameLogic.java
<filename>src/main/java/gamelogic/core/GameLogic.java package main.java.gamelogic.core; import main.java.event.Event; import main.java.event.arguments.GameDisplayInvalidatedEventArgs; import main.java.event.arguments.GameEndedEventArgs; import main.java.event.arguments.LocalPlayerDespawnEventArgs; import main.java.eve...
antonmedv/year
packages/2005/05/07/index.js
<filename>packages/2005/05/07/index.js module.exports = new Date(2005, 4, 7)
dc4cities/central-system
modules/escalation-manager/src/main/java/eu/dc4cities/controlsystem/modules/escalationmanager/PowerRenPercent.java
<filename>modules/escalation-manager/src/main/java/eu/dc4cities/controlsystem/modules/escalationmanager/PowerRenPercent.java /* * Copyright 2016 The DC4Cities author. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obt...
AresSys/AresOperator
metadata/annotations.go
<reponame>AresSys/AresOperator<gh_stars>1-10 package metadata // AresQueue related const ( // AresQueueAnnotationKey is the annotation key of Pod to identify // which ares-queue it belongs to. AresQueueAnnotationKey = GroupName + "/ares-queue" // PreemptableAnnotationKey is the annotation key of Pod to determine ...
cwx508489/react-template
src/routes/home/index.js
<reponame>cwx508489/react-template import React from 'react'; import i18n from "i18n"; import HomePage from './HomePage'; import CONSTANTS from '../../constants'; export default { path: `${CONSTANTS.ROUTE_HOME}`, async action({next,render,context,params}){ context.setTitle(i18n.t('common:website')); conte...
mzlogin/LeetCode
algorithms/cpp/mylist.h
<filename>algorithms/cpp/mylist.h #include <stdio.h> struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {} }; ListNode* createList(int* nums, int len) { ListNode* head = NULL; ListNode* tail = NULL; for (int i = 0; i < len; i++) { if (head == NULL) { ...
cisco-ie/cisco-proto
codegen/go/xr/62x/cisco_ios_xr_ipv4_bgp_oper/bgp/instances/instance/instance_standby/default_vrf/afs/af/advertised_path_xr/advertised_path/bgp_path_bag.pb.go
<filename>codegen/go/xr/62x/cisco_ios_xr_ipv4_bgp_oper/bgp/instances/instance/instance_standby/default_vrf/afs/af/advertised_path_xr/advertised_path/bgp_path_bag.pb.go /* Copyright 2019 Cisco Systems Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the...
gridgentoo/ServiceFabricAzure
src/prod/src/Hosting2/Deactivator.cpp
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stdafx.h" using nam...
rerobika/jerryscript
tests/unit-core/test-api-binary-operations-comparisons.c
<gh_stars>1-10 /* Copyright JS Foundation and other contributors, http://js.foundation * * 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...
smaccm/smaccm
fm-workbench/agree/com.rockwellcollins.atc.agree/src-gen/com/rockwellcollins/atc/agree/agree/impl/AADLEnumeratorImpl.java
/** */ package com.rockwellcollins.atc.agree.agree.impl; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.NotificationChain; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; import org.eclipse.emf.ecore.impl.ENotificationImpl; import com.rockwe...
dcfSec/SecurityRAT
src/main/java/org/appsec/securityRAT/repository/search/StatusColumnValueSearchRepository.java
package org.appsec.securityRAT.repository.search; import org.appsec.securityRAT.domain.StatusColumnValue; import org.springframework.data.elasticsearch.repository.ElasticsearchRepository; /** * Spring Data ElasticSearch repository for the StatusColumnValue entity. */ public interface StatusColumnValueSearchReposito...
zhangkn/iOS14Header
System/Library/PrivateFrameworks/SPOwner.framework/SPBeacon.h
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:41:42 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/SPOwner.framework/SPOwner * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>....
igorstojanovski/Central-Committee
server/src/main/java/co/igorski/centralcommittee/controllers/events/RunEventController.java
<reponame>igorstojanovski/Central-Committee<gh_stars>0 package co.igorski.centralcommittee.controllers.events; import co.igorski.centralcommittee.model.Project; import co.igorski.centralcommittee.model.Run; import co.igorski.centralcommittee.model.events.Event; import co.igorski.centralcommittee.model.events.RunFinish...
Hakaze/crowdfund-example-app
src/routes/Terms/index.js
import TermsView from './components/TermsView' export default { path: '/terms', component : TermsView }
OutOfTheVoid/ProjectRed
include/Red/Data/Base64/Base64.h
#ifndef RED_DATA_BASE64_BASE64_H #define RED_DATA_BASE64_BASE64_H #include <Red/Data/Data.h> namespace Red { namespace Data { namespace Base64 { } } } #endif
madeso/pegasus
libs/ride/src/ride/keybind.h
#pragma once #include <vector> #include <map> #include <string> #include "api/key.h" struct CommandList; struct KeyBind { std::map<Stroke, std::vector<std::string>> commands; void add(const Stroke& stroke, std::vector<std::string> command_order); bool run(const Stroke& stroke, CommandList* command_...
sapcc/juno
libs/juno-ui-components/src/components/CheckboxGroup/CheckboxGroup.component.js
<reponame>sapcc/juno<gh_stars>1-10 import React, { useState, useEffect, useRef } from "react" import PropTypes from "prop-types" import { Label } from "../Label/index.js" const checkboxgroupstyles = ` mb-5 ` export const CheckboxGroup = ({ name, label, selected, required, disabled, children, className, ...pr...
SlideAtlas/SlideAtlas-Server
slideatlas/models/collection.py
<filename>slideatlas/models/collection.py<gh_stars>1-10 # coding=utf-8 from mongoengine import Q, ListField, ReferenceField, StringField from .common import ModelDocument, Operation, ResourceType, AdminSitePermission from .common.model_document import ModelQuerySet from .image_store import ImageStore import session ...
github188/tunnel
tunnel-core/src/main/java/dll/struct/hw/PU_KF_CODING_STRATEGY_PARA.java
<reponame>github188/tunnel package dll.struct; import com.sun.jna.NativeLong; import com.sun.jna.Pointer; import com.sun.jna.Structure; import java.util.Arrays; import java.util.List; /** * <i>native declaration : D:\HWPuSDK.h</i><br> * This file was autogenerated by <a href="http://jnaerator.googlecode.com/">JNAerat...
ron2015schmitt/COOLL
include/expressionsRW.h
<filename>include/expressionsRW.h #ifndef MATHQ__EXPRESSIONSRW_H #define MATHQ__EXPRESSIONSRW_H namespace mathq { //--------------------------------------------------------------------------- // TERW_Subset Subset Expression //--------------------------------------------------------------------------- t...
shunfei/indexr
indexr-common/src/main/java/io/indexr/data/DictStruct.java
package io.indexr.data; import io.indexr.util.MemoryUtil; import static io.indexr.util.MemoryUtil.getDouble; import static io.indexr.util.MemoryUtil.getFloat; import static io.indexr.util.MemoryUtil.getInt; import static io.indexr.util.MemoryUtil.getLong; import static io.indexr.util.MemoryUtil.setDouble; import stat...
zealoussnow/chromium
ui/accessibility/extensions/chromevoxclassic/host/interface/braille_interface.js
<filename>ui/accessibility/extensions/chromevoxclassic/host/interface/braille_interface.js // Copyright 2014 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. /** * @fileoverview Defines a Braille interface. * * All Bra...
ruhan1/indy
core/src/main/java/org/commonjava/indy/core/content/RepairChecksumAdvisor.java
/** * Copyright (C) 2011-2019 Red Hat, Inc. (https://github.com/Commonjava/indy) * * 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 ...
zettadb/zettalib
src/vendor/mariadb-10.6.7/storage/columnstore/columnstore/writeengine/wrapper/we_colopcompress.cpp
/* Copyright (C) 2014 InfiniDB, 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; version 2 of the License. This program is distributed in the hope that it will be useful, but W...
ticuss/Mon-parcours
SDA1/iterateurs/ex2/liste.c
#include "liste.h" #include <stdlib.h> struct liste { S element; struct liste *suivant; struct liste *precedent; }; liste *liste_vide(void) { return NULL; } void liste_free(liste *const l) { liste *parcours = l; while (parcours) { liste *next = parcours->suivant; free(parcours); parcours = n...
enigmax980/simba
src/main/java/com/chinalife/simba/dao/SmbFuseMapper.java
<gh_stars>0 package com.chinalife.simba.dao; import com.chinalife.simba.model.SmbFuse; import com.chinalife.simba.model.SmbFuseExample; import org.apache.ibatis.annotations.Param; import java.util.List; public interface SmbFuseMapper { long countByExample(SmbFuseExample example); int deleteByExample(SmbFus...
ognjenjevremovic/pretty-easy-crud
lib/crud_methods/find.js
// Dependancies var constructQuery = require('../construct').query, validate = require('../validation'), log = require('../logger'), messages = require('../messages'); /* * Function accepts 2 parameters * (query<Object> && ?callbackPassed<function>) * * Returns CR...
Nayls/shortlink
internal/services/link/infrastructure/store/cqrs/query/postgres/query.go
package postgres import ( "context" "database/sql" "fmt" "github.com/Masterminds/squirrel" "github.com/golang/protobuf/ptypes/timestamp" "github.com/jackc/pgx/v4/pgxpool" "github.com/batazor/shortlink/internal/pkg/db" v1 "github.com/batazor/shortlink/internal/services/link/domain/link/v1" v12 "github.com/ba...
RichyHBM/monzo-scala
src/main/scala/monzo_scala/models/webhooks/WebhookList.scala
<reponame>RichyHBM/monzo-scala package monzo_scala.models.webhooks import monzo_scala.models.JsonModel import play.api.libs.functional.syntax._ import play.api.libs.json.{JsPath, Json, Reads, Writes} case class WebhookList(webhooks: Seq[Webhook]) extends JsonModel { override def toJson(): String = Json.stringify(Js...
ben-sangster/js
modules/v8/dmzJsModuleRuntimeV8Basic.cpp
<gh_stars>1-10 #include "dmzJsModuleRuntimeV8Basic.h" #include <dmzJsModuleV8.h> #include <dmzJsModuleTypesV8.h> #include <dmzJsV8UtilConvert.h> #include <dmzRuntimePluginFactoryLinkSymbol.h> #include <dmzRuntimePluginInfo.h> dmz::JsModuleRuntimeV8Basic::JsModuleRuntimeV8Basic ( const PluginInfo &Info, Con...
axiom6/aug
pub/vizu/main/Render.js
<gh_stars>0 var Render; import { WebGLRenderer, PCFSoftShadowMap, sRGBEncoding } from 'three'; Render = class Render { constructor(main) { this.onResize = this.onResize.bind(this); this.main = main; this.klass = this.constructor.name; this.opts = this.main.opts.render != null ? this.main.opts....
nomadsinteractive/ark
plugin/box2d/forwarding.h
<gh_stars>1-10 #ifndef ARK_PLUGIN_BOX2D_FORWARDING_H_ #define ARK_PLUGIN_BOX2D_FORWARDING_H_ namespace ark { namespace plugin { namespace box2d { class RigidBodyBox2D; class BodyCreateInfo; class Joint; class Shape; class ColliderBox2D; } } } #endif
mrdulin/python-codelab
src/stackoverflow/64708057/compute_examples.py
<reponame>mrdulin/python-codelab<gh_stars>0 class Compute: def add(self, var1=0, var2=0): return var1 + var2
201244010/store
src/pages/User/Login/MobileLogin.js
<reponame>201244010/store import React, { Component } from 'react'; import { formatMessage } from 'umi/locale'; import { Form, Alert, Icon, Input, message } from 'antd'; import { ALERT_NOTICE_MAP, ERROR_OK, SHOW_VCODE, VCODE_ERROR } from '@/constants/errorCode'; import Captcha from '@/components/Captcha'; import ImgCap...
jmcriffey/lax
test/rangeTest.js
<filename>test/rangeTest.js import {assert} from 'chai'; import chain from '../src/chain'; import range from '../src/range'; describe('range', () => { it('should handle a stop', () => { let result = chain(range(4)).toArray(); assert.deepEqual(result, [0, 1, 2, 3]); }); it('should handle...
etirelli/guvnor
guvnor-project/guvnor-project-backend/src/test/java/org/guvnor/common/services/project/backend/server/ProjectRepositoryResolverImplTest.java
/* * Copyright 2016 Red Hat, Inc. 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 a...
dylan-worth/OfflineRS
Server/src/net/nocturne/game/player/actions/skills/mining/SaltyCrabletineMining.java
<gh_stars>0 package net.nocturne.game.player.actions.skills.mining; import net.nocturne.game.Animation; import net.nocturne.game.item.ItemIdentifiers; import net.nocturne.game.npc.NPC; import net.nocturne.game.npc.others.SaltyCrabletine; import net.nocturne.game.player.Player; import net.nocturne.game.player.Skills; i...
squll1peter/elastix
Common/Transforms/itkBSplineInterpolationSecondOrderDerivativeWeightFunction.h
<filename>Common/Transforms/itkBSplineInterpolationSecondOrderDerivativeWeightFunction.h<gh_stars>1-10 /*========================================================================= * * Copyright UMC Utrecht and contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this...
andrebertonha/JavaOnline2
src/br/com/abc/javacore/threads/classes/ListaMembros.java
package br.com.abc.javacore.threads.classes; import java.util.LinkedList; import java.util.List; import java.util.Queue; public class ListaMembros { private final Queue<String> emails = new LinkedList<>(); public boolean aberta = true; public int getEmailsPendentes() { synchronized (emails) { ...
maheshp/performance
micro_performance/lib/go_constants.rb
module GoConstants AUTH_HEADER = "Basic #{Base64.encode64('admin:badger')}".freeze BASE_URL = 'http://localhost:8353/go'.freeze end
L11R/td
internal/mt/tl_destroy_session_gen.go
<filename>internal/mt/tl_destroy_session_gen.go<gh_stars>0 // Code generated by gotdgen, DO NOT EDIT. package mt import ( "context" "errors" "fmt" "sort" "strings" "go.uber.org/multierr" "github.com/gotd/td/bin" "github.com/gotd/td/tdjson" "github.com/gotd/td/tdp" "github.com/gotd/td/tgerr" ) // No-op de...
irahulgautam/ds3_java_browser
dsb-gui/src/main/java/com/spectralogic/dsbrowser/gui/components/newsession/NewSessionPopup.java
package com.spectralogic.dsbrowser.gui.components.newsession; import com.spectralogic.dsbrowser.gui.util.Popup; public final class NewSessionPopup { public static void show() { final NewSessionView view = new NewSessionView(); Popup.show(view.getView(), "Sessions"); } }
zhukovaskychina/X-JVM
classfile/ConstantPools.h
<filename>classfile/ConstantPools.h // // Created by zhukovasky on 2020/4/23. // #ifndef JVM_CONSTANTPOOLS_H #define JVM_CONSTANTPOOLS_H #include "../common/Internal.h" namespace ClassFile{ class ConstantPools{ public: ConstantPools(); virtual ~ConstantPools(); public: u1 getTag...
infocuittesting/Multioderingsystem
node_modules/@amcharts/amcharts4/core.js
<reponame>infocuittesting/Multioderingsystem /** * This module houses all core/framework functionality and is required for * all charting components to work */ /** * Elements: core */ export { System, system } from "./.internal/core/System"; export { BaseObject, BaseObjectEvents } from "./.internal/core/Base"; exp...
Dbevan/SunderingShadows
d/undead/rooms/street.c
#include "../undead.h" inherit VAULT; void create() { ::create(); set_terrain(CITY); set_travel(PAVED_ROAD); set_property("light", 2); set_property("indoors", 0); set_name("The City of Graez"); set_short("%^GREEN%^A street in the city of Graez"); set_long("%^GREEN%^A street in the city ...
Tapyr/tapyr
_GTW/__test__/Entity_Reload.py
<reponame>Tapyr/tapyr # -*- coding: utf-8 -*- # Copyright (C) 2010-2014 Mag. <NAME> All rights reserved # Glasauergasse 32, A--1130 Wien, Austria. <EMAIL> # **************************************************************************** # This module is part of the package GTW.__test__. # # This module is licensed under t...
RippeR37/GLUL
include/GLUL/Interfaces/Camera.h
#pragma once #include <GLUL/Config.h> #include <glm/glm.hpp> namespace GLUL { namespace Interface { class GLUL_API Camera { public: Camera(); virtual ~Camera(); virtual void update(double deltaTime) = 0; virtual void updateMo...