repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
metehkaya/Algo-Archive
Problems/HackerRank/Contests/Week_of_Codes/Week_of_Code_38/A_Full.Which_Section.cpp
<gh_stars>1-10 #include <bits/stdc++.h> #define maxm 500 using namespace std; int T,n,k,m; int ar[maxm]; int main() { scanf("%d",&T); for( int tc = 1 ; tc <= T ; tc++ ) { scanf("%d%d%d",&n,&k,&m); for( int i = 0 ; i < m ; i++ ) scanf("%d",&ar[i]); int sum = 0; for( int i = 0 ; i < m ; i++ ) { sum += a...
NathanHouwaart/Ipass
code/hwlib/html/hwlib-port-direct_8hpp.js
var hwlib_port_direct_8hpp = [ [ "port_direct_from_in_out_t", "classhwlib_1_1port__direct__from__in__out__t.html", "classhwlib_1_1port__direct__from__in__out__t" ], [ "port_direct_from_in_t", "classhwlib_1_1port__direct__from__in__t.html", "classhwlib_1_1port__direct__from__in__t" ], [ "port_direct_from_out...
BRAINTOK/oraculi-react
src/states/SettingsState.js
import React, {Component, Fragment} from "react"; import BasicState from "../layouts/BasicState"; import { NavLink, Link } from 'react-router-dom'; import {__} from "../layouts/utilities/i18n"; import {styles, currentStyles} from "../layouts/template"; class SettingsState extends BasicState { basic_state_data () { ...
jonayad-khan/Online-shpoping
public/admin/bower_components/select2/dist/js/i18n/zh-CN.js
<reponame>jonayad-khan/Online-shpoping //! moment.js locale configuration //! locale : Belarusian [be] //! author : <NAME> : https://github.com/demidov91 //! author: Praleska: http://praleska.pro/ //! Author : <NAME> : https://github.com/Oire ;(function (global, factory) { typeof exports === 'object' && typeof modu...
techsur-solutions/vets-website
src/applications/static-pages/analytics/addButtonLinkListeners.js
import recordEvent from 'platform/monitoring/record-event'; export default function addButtonLinkListeners() { const ignoreReactWidgets = ':not([data-template="paragraphs/react_widget"])'; const defaultButtons = 'a.usa-button'; const ignorePrimaryButtons = ':not(.usa-button-primary)'; const buttonLinks = [ ...
mythoss/midpoint
repo/repo-api/src/main/java/com/evolveum/midpoint/repo/api/SystemConfigurationChangeDispatcher.java
/* * Copyright (c) 2010-2018 Evolveum and contributors * * This work is dual-licensed under the Apache License 2.0 * and European Union Public License. See LICENSE file for details. */ package com.evolveum.midpoint.repo.api; import com.evolveum.midpoint.schema.result.OperationResult; import com.evolveum.midpoint...
HarshCasper/software
bobby/domain/structures/sets/elements.go
<filename>bobby/domain/structures/sets/elements.go package sets import "github.com/deepvalue-network/software/libs/hash" type elements struct { ranked RankedElements unranked UnrankedElements } func createElementsWithRanked( ranked RankedElements, ) Elements { return createElementsInternally(ranked, nil) } fu...
bmampaey/SPoCA
classes/SegmentationStats.cpp
<reponame>bmampaey/SPoCA #include "SegmentationStats.h" using namespace std; SegmentationStats::SegmentationStats(const time_t& observationTime, const unsigned id) :id(id),observationTime(observationTime), numberPixels(0), m2(NAN), m3(NAN), m4(NAN), minIntensity(NAN), maxIntensity(NAN), totalIntensity(0), area_Raw(0)...
Kampbell/ISODE
isode++/code/iso/itu/osi/als/base/util/NetworkBuffer.h
/* * NetworkBuffer.h * * Created on: 14 juil. 2015 * Author: FrancisANDRE */ #ifndef ALS_BASE_UTIL_Buffer_H_ #define ALS_BASE_UTIL_Buffer_H_ #include <string> using std::to_string; using std::string; #include <memory> using std::shared_ptr; #include "Poco/Exception.h" using Poco::InvalidArgumentException;...
persona-id/blockscore-ruby
lib/blockscore/errors/api_connection_error.rb
require 'blockscore/errors/error' module BlockScore class APIConnectionError < Error end end
anunez97/centipede
TEAL/Scene.cpp
<gh_stars>0 // Scene.h // <NAME> 2012 // // Base scene class #include "SceneManager.h" #include "Scene.h" #include "TEALShow.h" #include "WindowManager.h" #include "GameObject.h" #include "Game.h" using namespace std; void Scene::UpdateOneGameObject( GameObject* go){ go->Update();} void Scene::DrawO...
Asadullah-Dal17/learn-opencv-python
source-code/Basic stuff/croping_region.py
<reponame>Asadullah-Dal17/learn-opencv-python import cv2 as cv img = cv.imread('../../saved_image/save_image.png') cv.imshow('img', img) cv.waitKey(0) # selecting points or coordinates of images to crop, or pixels starting_x =10 ending_x =200 starting_y =10 ending_y =250 # croping the region crop_region = img[start...
embeddedartistry/embeddedartistry.github.io
framework/search/pages_7.js
<reponame>embeddedartistry/embeddedartistry.github.io var searchData= [ ['mozilla_20public_20license_20version_202_2e0',['Mozilla Public License Version 2.0',['../df/d27/md_src_utilities_modm__l_i_c_e_n_s_e.html',1,'']]] ];
StavonJoy/podcast-network-1
extensions/shoutem.firebase/app/services/handlers.js
<filename>extensions/shoutem.firebase/app/services/handlers.js import _ from 'lodash'; let APNSTokenReceivedHandlers = {}; let FCMTokenReceivedhandlers = {}; let notificationReceivedHandlers = {}; function collectHandlers(targetEvent) { return _.reduce( notificationReceivedHandlers, (result, handlers) => { ...
echisMOH/echisCommCareMOH
app/src/org/commcare/android/logging/ForceCloseLogEntry.java
package org.commcare.android.logging; import android.os.Build; import org.commcare.CommCareApplication; import org.commcare.android.javarosa.AndroidLogEntry; import org.commcare.preferences.DevSessionRestorer; import org.commcare.util.LogTypes; import org.javarosa.core.util.externalizable.DeserializationException; im...
cdot/Squirrel
js/GoogleDriveStore.js
<reponame>cdot/Squirrel /*@preserve Copyright (C) 2015-2019 <NAME> http://c-dot.co.uk license MIT*/ /* eslint-env browser */ /* global gapi */ var gapi_is_loaded = false; var gapi_loader; // Redirect target after gapi loading /* eslint-disable no-unused-vars */ function gapi_on_load() { if (this.debug) this.debug...
jeffaustin81/cropcompass-frontend
src/components/TopCrops/index.js
import TopCrops from './TopCrops' export default TopCrops
Welchd1/resolve-intellij-plugin-v4
src/edu/clemson/resolve/jetbrains/completion/QualifierInsertHandler.java
package edu.clemson.resolve.jetbrains.completion; import com.intellij.codeInsight.AutoPopupController; import com.intellij.codeInsight.completion.BasicInsertHandler; import com.intellij.codeInsight.completion.InsertionContext; import com.intellij.codeInsight.lookup.LookupElement; import com.intellij.openapi.editor.Doc...
epam-debrecen-rft-2015/atsy
web/src/test/java/com/epam/rft/atsy/web/controllers/rest/CandidateApplicationControllerTest.java
package com.epam.rft.atsy.web.controllers.rest; import static org.hamcrest.CoreMatchers.equalTo; import static org.mockito.BDDMockito.given; import static org.mockito.BDDMockito.then; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verifyZeroInteractions; import static org.springframework.te...
pervasivesolutions/synth
synth/devices/cluster.py
<filename>synth/devices/cluster.py """ cluster ===== Simulates sites which are clusters, e.g. bike/scooter sharing docs, multiple charging points on a single site, A device is a cluster. Each cluster has a number of "slots", each of which are available/unavailable at any moment in time, giving rise to a total number of...
victoryw/LADE_Analysis
scan_plsql/src/main/java/me/analysis/pl/visitor/PlSqlRuleVisitor.java
package me.analysis.pl.visitor; import me.analysis.pl.PlSqlParserTree; import me.analysis.pl.generated.PlSqlBaseVisitor; import org.antlr.v4.runtime.ANTLRInputStream; import org.antlr.v4.runtime.TokenStreamRewriter; import org.antlr.v4.runtime.tree.ParseTree; /** * Базовый класс для наследования всех новых *Visitor ...
FedorSmirnov89/EE-Control
src/main/java/at/uibk/dps/ee/control/modules/EnactmentVerticleModule.java
package at.uibk.dps.ee.control.modules; import org.opt4j.core.config.annotations.Info; import org.opt4j.core.config.annotations.Order; import org.opt4j.core.start.Constant; import at.uibk.dps.ee.control.command.Control; import at.uibk.dps.ee.control.enactment.WorkerEnactment; import at.uibk.dps.ee.control.extraction.W...
anoop1984/python_sdk
ucsmsdk/utils/ucstechsupport.py
# Copyright 2013 Cisco Systems, 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 by applicable law or agreed to in writin...
Gayath1/project-hrm-client-new
src/views/dashboard/Home Page/rfid.js
<filename>src/views/dashboard/Home Page/rfid.js import React, { useState } from 'react'; import {Link} from 'react-router-dom'; import axios from 'axios'; import { CCard, CCardBody, CCardHeader, CCol, CButton, CForm, CFormGroup, CFormText, CInput, CLabel, CRow, CAlert,CSpinner } from '@coreui/rea...
homobel/makebird-node
test/projects/large/b855.js
//~ name b855 alert(b855); //~ component b856.js
HywTony/stetho
stetho-urlconnection/src/main/java/com/facebook/stetho/urlconnection/URLConnectionInspectorRequest.java
package com.facebook.stetho.urlconnection; import com.facebook.stetho.inspector.network.NetworkEventReporter; import javax.annotation.Nullable; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.net.HttpURLConnection; class URLConnectionInspectorRequest extends URLConnectionInspectorHe...
sophiemarceau/qtxzs_iOS
wecoo/Main/My/Controller/PlatformfeedbackViewController.h
<gh_stars>0 // // PlatformfeedbackViewController.h // wecoo // // Created by 屈小波 on 2017/4/25. // Copyright © 2017年 屈小波. All rights reserved. // #import "BaseViewController.h" @interface PlatformfeedbackViewController : BaseViewController @property(nonatomic,strong)NSString *search_id; @end
ThiliniF/marqeta-api-sandbox-testing
src/main/java/com/nimi/qe/api/marqeta/request/Transactions.java
<gh_stars>0 package com.nimi.qe.api.marqeta.request; import com.nimi.qe.api.util.RequestUtil; import io.restassured.response.Response; public class Transactions { private Transactions(){ } public static Response createTransaction(Object requestBody, String url) { Response response = RequestUtil...
geirivarjerstad/WhoOwesWhat-Ionic
www/test/PersonStore/PersonStore_SavePerson.tests.js
describe("Unittest.PersonStore: When adding a Person", function () { var $scope, $q, PersonStore; beforeEach(function () { module("whooweswhat"); module(MockProvideFactory.CordovaSQLiteWrapperMock); module(MockProvideFactory.SQLiteDataProviderMock); }); it('should create a Pe...
PetAdote/petAdote_REST_API
api/models/Anuncio.js
<reponame>PetAdote/petAdote_REST_API // Importações. const {DataTypes, Model, Sequelize} = require('sequelize'); // Instância da conexão com a Database. const {connection} = require('../../configs/database'); // Models das Associações (Chaves Estrangeiras). const Animal = require('./Animal'); ...
mowenGithub/Clutch
clutchrpc/db.py
<filename>clutchrpc/db.py # Copyright 2012 Twitter # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
ruby-on-rust/syntax
src/grammar/__tests__/grammar-symbol-test.js
/** * The MIT License (MIT) * Copyright (c) 2015-present <NAME> <<EMAIL>> */ import GrammarSymbol from '../grammar-symbol'; import {EOF, EPSILON} from '../../special-symbols'; describe('grammar-symbol', () => { it('singleton', () => { expect(GrammarSymbol.get('A')).toBe(GrammarSymbol.get('A')); }); it('...
Limmen/chinook
java_backend/chinook_rest/src/main/java/limmen/business/representations/entity_representation/EmployeeRepresentation.java
<reponame>Limmen/chinook package limmen.business.representations.entity_representation; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import limmen.integration.entities.Employee; import org.springframework.hateoas.ResourceSupport; /** * JSON-Representation...
UQ-RCC/nimrodg
nimrodg-master/src/main/java/au/edu/uq/rcc/nimrodg/master/ConfigListener.java
package au.edu.uq.rcc.nimrodg.master; public interface ConfigListener { void onConfigChange(String key, String oldValue, String newValue); static long clamp(long val, long min, long max) { return Math.max(min, Math.min(max, val)); } static int clamp(int val, int min, int max) { return Math.max(min, Math.min(...
alexandermerritt/dragonfly
crypto/openssh/sshbuf-getput-basic.c
<gh_stars>0 /* $OpenBSD: sshbuf-getput-basic.c,v 1.1 2014/04/30 05:29:56 djm Exp $ */ /* * Copyright (c) 2011 <NAME> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appea...
AllysonWindell/Kattis
Java/mosquito.java
import java.util.*; import java.io.*; public class mosquito { static int M, P, L, E, R, S, N; public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); while (sc.hasNextInt()) { M = sc.nextInt(); P = sc.nextInt(); L = sc....
kimjand/cxf
tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/ServerGenerator.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you m...
Eluinhost/hosts.uhc
src/main/scala/gg/uhc/hosts/endpoints/alerts/CreateAlertRule.scala
package gg.uhc.hosts.endpoints.alerts import java.time.Instant import akka.http.scaladsl.model.StatusCodes import akka.http.scaladsl.server.Directives.{as, complete, entity, handleRejections, provide, validate} import akka.http.scaladsl.server.{Directive0, Directive1, Route} import gg.uhc.hosts.{Alerts, CustomJsonCod...
TetraSomia/liblapin
src/hardware/new_hardware.cpp
// <NAME> "Damdoshi" // Hanged Bunny Studio 2014-2016 // // <NAME> #include <new> #include <string.h> #include "PVM110N.hpp" #include "lapin_private.h" struct bunny_hardware { hbs::PVM110N *board; int id; bool digital_inputs[5]; double analog_inputs[2]; bool digital_outputs[8]; dou...
ModRealms-Network/Bewitchment
src/main/java/com/bewitchment/client/model/block/ModelMolochIdol.java
package com.bewitchment.client.model.block; import net.minecraft.client.model.ModelBase; import net.minecraft.client.model.ModelRenderer; import net.minecraft.entity.Entity; /** * idol_moloch - sunconure11 * Created using Tabula 7.1.0 */ public class ModelMolochIdol extends ModelBase { public ModelRenderer plinth...
Sagar1711/ISIS3
isis/src/base/apps/map2map/map2map.cpp
#include "ProcessRubberSheet.h" #include "ProjectionFactory.h" #include "TProjection.h" #include "map2map.h" using namespace std; namespace Isis { void map2map(UserInterface &ui, Pvl *log) { Cube cube; CubeAttributeInput inAtt = ui.GetInputAttribute("FROM"); if (inAtt.bands().size() != 0) { cube...
jonoforbes/ether-app
node_modules/angular-pipes/src/string/wrap.pipe.js
// idea from https://github.com/a8m/angular-filter "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var core_1 = require("@angular/core"); var utils_1 = require("../utils/utils"); var WrapPipe = (function () { function WrapPipe() { } WrapPipe.prototype.transform = functio...
dgant/PurpleWave
src/Information/Geography/Types/Base.scala
<filename>src/Information/Geography/Types/Base.scala package Information.Geography.Types import Lifecycle.With import Mathematics.Points.{PixelRay, SpecificPoints, Tile, TileRectangle} import Mathematics.Maff import Performance.Cache import Planning.UnitMatchers.{MatchBuilding, MatchWorker} import ProxyBwapi.Players.P...
ztlevi/perfetto
include/perfetto/protozero/field_writer.h
<gh_stars>100-1000 /* * Copyright (C) 2021 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 * * Unl...
jxg01713/zstack
header/src/main/java/org/zstack/header/storage/primary/ImageCacheInventory.java
<reponame>jxg01713/zstack package org.zstack.header.storage.primary; import java.sql.Timestamp; import java.util.Date; public class ImageCacheInventory { private long id; private String primaryStorageUuid; private String imageUuid; private String installUrl; private long size; priva...
Nan1t/Scheduler
api/src/main/java/edu/zieit/scheduler/api/render/RenderException.java
<filename>api/src/main/java/edu/zieit/scheduler/api/render/RenderException.java<gh_stars>0 package edu.zieit.scheduler.api.render; public class RenderException extends RuntimeException { public RenderException(String message) { super(message); } public RenderException(Throwable cause) { s...
kongyin0921/open-cloud-platform
ocp-auth/src/main/java/com/ocp/auth/provider/token/CustomTokenEnhancer.java
package com.ocp.auth.provider.token; import com.ocp.auth.entity.Client; import com.ocp.auth.service.IClientService; import com.ocp.auth.util.OidcIdTokenBuilder; import com.ocp.common.constant.SecurityConstants; import com.ocp.common.entity.SysUser; import com.ocp.common.security.constants.IdTokenClaimNames; import com...
mastermind88/jerryscript
tests/jerry/array-prototype-unshift.js
<filename>tests/jerry/array-prototype-unshift.js // 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://w...
osman-demirci/digital-guard-app-ipcamera
node_modules/opencv4nodejs/cc/modules/features2d/detectors/BRISKDetector.h
#include "macros.h" #include "../FeatureDetector.h" #ifndef __FF_BRISKDETECTOR_H__ #define __FF_BRISKDETECTOR_H__ class BRISKDetector : public FeatureDetector { public: cv::Ptr<cv::BRISK> detector; int thresh; int octaves; double patternScale; static NAN_MODULE_INIT(Init); static NAN_METHOD(...
r4b3rt/lindb
replication/sequence_test.go
// Licensed to LinDB under one or more contributor // license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright // ownership. LinDB licenses this file to you under // the Apache License, Version 2.0 (the "License"); you may // not use this file except in compli...
ppartarr/azure-sdk-for-java
sdk/peering/mgmt-v2019_08_01_preview/src/main/java/com/microsoft/azure/management/peering/v2019_08_01_preview/implementation/PeeringLocationsImpl.java
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * abc */ package com.microsoft.azure.management.peering.v2019_08_01_preview.implementation...
Reno-Greenleaf/bsd-games
dab/ttyscrn.h
/* $NetBSD: ttyscrn.h,v 1.2 2003/12/28 17:49:10 thorpej Exp $ */ /*- * Copyright (c) 2003 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by <NAME>. * * Redistribution and use in source and binary forms, with or without * modifica...
santiagozky/sling
bundles/commons/log-webconsole/src/test/java/org/apache/sling/commons/log/webconsole/ITWebConsoleRemote.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
myoukaku/bksge
libs/core/render/include/bksge/core/render/vulkan/detail/inl/rasterizer_state_inl.hpp
/** * @file rasterizer_state_inl.hpp * * @brief RasterizerState クラスの実装 * * @author myoukaku */ #ifndef BKSGE_CORE_RENDER_VULKAN_DETAIL_INL_RASTERIZER_STATE_INL_HPP #define BKSGE_CORE_RENDER_VULKAN_DETAIL_INL_RASTERIZER_STATE_INL_HPP #include <bksge/core/render/config.hpp> #if BKSGE_CORE_RENDER_HAS_...
yujinishioka/computacional-thinking-python
listas/gabarito/lista2CT/exe-12.py
# Exercicio 12 - Lista 2 rm = int(input("RM: ")) soma = rm%10 soma += (rm//10)%10 soma += (rm//100)%10 soma += (rm//1000)%10 soma += (rm//10000) print(soma)
Hronom/AIF2
src/test/unit/java/io/aif/language/token/TokenSplitterTest.java
package io.aif.language.token; import io.aif.language.common.ISplitter; import io.aif.language.common.RegexpCooker; import org.testng.annotations.Test; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Optional; import static junit.framework.Assert.assertEquals; import sta...
Factris/data-anonymization
lib/strategy/strategies.rb
require 'strategy/base' require 'strategy/whitelist' require 'strategy/blacklist' require 'strategy/field/fields' begin require 'mongo' require 'strategy/mongodb/anonymize_field' require 'strategy/mongodb/whitelist' require 'strategy/mongodb/blacklist' rescue LoadError 'Ignoring the mongodb specific librarie...
shaunakpp/voices-of-consent
db/migrate/20190727221539_create_attendances.rb
<reponame>shaunakpp/voices-of-consent class CreateAttendances < ActiveRecord::Migration[5.2] def change create_table :attendances do |t| t.references :meeting, foreign_key: true t.references :user, foreign_key: true t.string :special_duties t.boolean :completed_hours t.timestamps ...
Chris1904/vds-elements
src/utils/time.js
<reponame>Chris1904/vds-elements /** * 🤖 This section was generously ~stolen from~... err... donated by Furf. Cheers! * * @see https://github.snooguts.net/david-furfero/reddit-media-player/blob/main/src/lib/formatTime/index.ts */ /** * Casts a number to a string and pads it to match the given `expectedLength`. ...
uibcdf/OpenKinNet
openktn_old/forms/classes/api_pandas_KineticTransitionNetwork.py
from os.path import basename as _basename from openktn.foreign import Pandas_KineticTransitionNetwork as pandas_KineticTransitionNetwork from openktn.forms.classes import api_pandas_MicrostatesDataFrame as api_microstates from openktn.forms.classes import api_pandas_TransitionsDataFrame as api_transitions from simtk.un...
cltl/voc-missives
src/main/java/utils/naf/BaseEntity.java
package utils.naf; import utils.common.Span; import xjc.naf.Entity; import java.util.Objects; public class BaseEntity implements Comparable<BaseEntity> { Span indexSpan; String type; public BaseEntity(Span indexSpan, String type) { this.indexSpan = indexSpan; this.type = type; } ...
jenniferlynparsons/cuppa-webpack
client/src/selectors/teaSelectors.js
<gh_stars>1-10 import { createSelector } from "reselect"; export const selectBrands = createSelector( state => state.teas.teaIDs, state => state.teas.allTeas, (teaIDs, allTeas) => teaIDs.map(id => allTeas[id].brand) );
TinkerBoard-Android/external-strace
chmod.c
#include "defs.h" static void decode_chmod(struct tcb *tcp, const int offset) { printpath(tcp, tcp->u_arg[offset]); tprintf(", %#lo", tcp->u_arg[offset + 1]); } SYS_FUNC(chmod) { decode_chmod(tcp, 0); return RVAL_DECODED; } SYS_FUNC(fchmodat) { print_dirfd(tcp, tcp->u_arg[0]); decode_chmod(tcp, 1); return R...
gspu/Coherent
mwc/romana/relic/b/lib/libm/atan.c
/* * Compute the inverse tangent function. * (<NAME>, 17.24) */ #include <math.h> #if EMU87 #include "emumath.h" #endif static readonly double tanntab[] ={ 0.12097470017580907217240715e+04, 0.30310745956115083044212807e+04, 0.27617198246138834959053784e+04, 0.11141290728455183546172942e+04, 0.1925792014481559...
Yang1998/lite-mall-admin
admin/src/main/java/com/yyt/axios/config/RedisConfig.java
package com.yyt.axios.config; import org.springframework.cache.CacheManager; import org.springframework.cache.annotation.EnableCaching; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.data.redis.cache.RedisCacheConfiguration; i...
lilinj2000/openonload-201811
src/driver/linux_net/sfctool.h
/* ** Copyright 2005-2018 Solarflare Communications Inc. ** 7505 Irvine Center Drive, Irvine, CA 92618, USA ** Copyright 2002-2005 Level 5 Networks Inc. ** ** This program is free software; you can redistribute it and/or modify it ** under the terms of version 2 of the GNU General Public License ...
jainsakshi2395/linux
drivers/infiniband/hw/irdma/i40iw_hw.c
<filename>drivers/infiniband/hw/irdma/i40iw_hw.c<gh_stars>1-10 // SPDX-License-Identifier: GPL-2.0 or Linux-OpenIB /* Copyright (c) 2015 - 2021 Intel Corporation */ #include "osdep.h" #include "type.h" #include "i40iw_hw.h" #include "status.h" #include "protos.h" static u32 i40iw_regs[IRDMA_MAX_REGS] = { I40E_PFPE_CQ...
icgw/LeetCode
LeetCode/C++/1448._Count_Good_Nodes_in_Binary_Tree/solution.h
<gh_stars>1-10 /* * solution.h * Copyright (C) 2021 <NAME> <<EMAIL>> * * Distributed under terms of the Apache license. */ #ifndef _SOLUTION_H_ #define _SOLUTION_H_ #include <numeric> using std::numeric_limits; #include <algorithm> using std::max; #include "../data_structures.hpp" class Solution { private: i...
mycolab/ncbi-blast
blast/src/objtools/blast/seqdb_reader/seqdbbitset.cpp
<filename>blast/src/objtools/blast/seqdb_reader/seqdbbitset.cpp /* $Id: seqdbbitset.cpp 631513 2021-05-19 13:48:10Z ivanov $ * =========================================================================== * * PUBLIC DOMAIN NOTICE * National Center for Biotechnology Informatio...
RevenueScotland/sets-online-portal
app/models/user_validation.rb
<reponame>RevenueScotland/sets-online-portal # frozen_string_literal: true # User validation methods. # Split out into a separate class to keep User class small/keep Rubocop happy. module UserValidation extend ActiveSupport::Concern included do validates :username, length: { maximum: 30 }, presence: true, on:...
dennisfabri/alphatimer
alphatimer-ares-serial-api/src/main/java/org/lisasp/alphatimer/api/ares/serial/events/BytesInputEvent.java
package org.lisasp.alphatimer.api.ares.serial.events; import lombok.RequiredArgsConstructor; import lombok.Value; import org.lisasp.alphatimer.api.ares.serial.Characters; import java.time.LocalDateTime; @Value @RequiredArgsConstructor public class BytesInputEvent implements DataInputEvent { private final LocalD...
lguohan/SDKLT
src/bcmport/main/bcmport_imm.c
/*! \file bcmport_imm.c * * BCMPORT interface to in-memory table. */ /* * Copyright: (c) 2018 Broadcom. All Rights Reserved. "Broadcom" refers to * Broadcom Limited and/or its subsidiaries. * * Broadcom Switch Software License * * This license governs the use of the accompanying Broadcom software. Your * ...
secondwatchCH/JinCoin
db-6.2.32.NC/examples/java/src/collections/ship/basic/SampleViews.java
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 2002, 2017 Oracle and/or its affiliates. All rights reserved. * * $Id$ */ package collections.ship.basic; import com.sleepycat.bind.EntryBinding; import com.sleepycat.bind.serial.ClassCatalog; import com.sleepycat.bind.serial.SerialBi...
HarryGull/itr-fesub-backup
test/views/seis/ContactDetailsSpec.scala
<reponame>HarryGull/itr-fesub-backup /* * Copyright 2017 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * U...
IBM/secrets-manager-java-sdk
modules/secrets-manager/src/main/java/com/ibm/cloud/secrets_manager_sdk/secrets_manager/v1/model/SecretResource.java
/* * (C) Copyright IBM Corp. 2021. * * 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 w...
ghdawn/apollo
modules/tools/image_decompress/image_decompress.cc
<reponame>ghdawn/apollo<filename>modules/tools/image_decompress/image_decompress.cc /****************************************************************************** * Copyright 2018 The Apollo Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this fil...
yhaoooooooo/FEBS-Cloud
febs-server/febs-server-system/src/main/java/com/yonyou/etl/mapper/SysBdEventMapper.java
package com.yonyou.etl.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.yonyou.etl.entity.SysBdEvent; /** * @author yhao */ public interface SysBdEventMapper extends BaseMapper<SysBdEvent> { }
NunoEdgarGFlowHub/MATRIX-TESTNET
metrics/registry_test.go
// Copyright 2018 The MATRIX Authors as well as Copyright 2014-2017 The go-ethereum Authors // This file is consisted of the MATRIX library and part of the go-ethereum library. // // The MATRIX-ethereum library is free software: you can redistribute it and/or modify it under the terms of the MIT License. // // Permissi...
sitepoint-editors/MootorFrameworkApp_Part2
examples/demo/views/index/index.js
(function ($) { "use strict"; var view = m.app.view("index"); view.on("load", function() { // console.log("index loaded"); }); }(window.$));
brianwc/juriscraper
opinions/united_states/state/cal.py
<filename>opinions/united_states/state/cal.py from juriscraper.OpinionSite import OpinionSite import re import time from datetime import date class Site(OpinionSite): def __init__(self): super(Site, self).__init__() self.url = 'http://www.courtinfo.ca.gov/cgi-bin/opinions-blank.cgi?Courts=S' ...
stockalexander/newrelic-php-agent
src/newrelic/utilization/pcf.go
<filename>src/newrelic/utilization/pcf.go // // Copyright 2020 New Relic Corporation. All rights reserved. // SPDX-License-Identifier: Apache-2.0 // package utilization import ( "errors" "fmt" "os" ) type pcf struct { InstanceGUID string `json:"cf_instance_guid,omitempty"` InstanceIP string `json:"cf_instance...
NoahFetz/CloudNet-v3
cloudnet-modules/cloudnet-signs/src/main/java/de/dytanic/cloudnet/ext/signs/configuration/entry/SignConfigurationEntryType.java
/* * Copyright 2019-2021 CloudNetService team & contributors * * 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...
KUSHAGRA-JAISWAL/JAVA-PROGRAMS
src/ds/Linear_Search/Q3MinMax.java
<reponame>KUSHAGRA-JAISWAL/JAVA-PROGRAMS // Question: Find the maximum and minimum value in an array. package src.ds.Linear_Search; public class Q3MinMax { public static void main(String[] args) { int[] arr = { 10, 20, -2, 421, 0, -9, 3, 21 }; System.out.println("Max Num = " + max(arr)); S...
RichardRanft/RakNet
DependentExtensions/Lobby2/Rooms/RoomsContainer.h
<reponame>RichardRanft/RakNet /* * Copyright (c) 2014, Oculus VR, 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 t...
taragu/duke-compsci
slogo_team01/src/turtle/AbstractModel.java
<gh_stars>0 package turtle; import java.beans.PropertyChangeListener; import java.beans.PropertyChangeSupport; public abstract class AbstractModel { protected PropertyChangeSupport propertyChangeSupport; public AbstractModel() { propertyChangeSupport = new PropertyChangeSupport(this); } public void addProper...
DamieFC/chromium
third_party/blink/renderer/modules/mediastream/mock_media_stream_video_source.cc
<gh_stars>1-10 // 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 "third_party/blink/renderer/modules/mediastream/mock_media_stream_video_source.h" #include "base/bind.h" #include "base/location....
luongnvUIT/prowide-iso20022
model-camt-types/src/generated/java/com/prowidesoftware/swift/model/mx/dic/CardAggregated2.java
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.XmlSchemaType; import javax.xml.bind.annotation.XmlType; import org.apache.commons.lang3.build...
crossmob/WinObjC
tools/vsimporter/xib2nib/src/UIImageView.cpp
//****************************************************************************** // // Copyright (c) 2015 Microsoft Corporation. All rights reserved. // // This code is licensed under the MIT License (MIT). // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LI...
teberhardt/byps
java/bypsgen/src/byps/gen/utils/PrintContextBase.java
<gh_stars>1-10 package byps.gen.utils; /* USE THIS FILE ACCORDING TO THE COPYRIGHT RULES IN LICENSE.TXT WHICH IS PART OF THE SOURCE CODE PACKAGE */ import java.io.IOException; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import byps.BApiDescriptor; im...
JSY1988/tcpkit
src/tcpkit.c
<filename>src/tcpkit.c /** * tcpkit -- toolkit to analyze tcp packet * Copyright (C) 2018 @git-hulk * * 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 Li...
anatawa12/intellij-community
java/testFramework/src/com/intellij/testFramework/fixtures/MavenDependencyUtil.java
<reponame>anatawa12/intellij-community // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.testFramework.fixtures; import com.intellij.jarRepository.JarRepositoryManager; import com.intellij.jarRepository.Remo...
simonsoft/cms-indexing-xml
src/main/java/se/simonsoft/cms/indexing/xml/XmlFileFilterExtensionAndTikaContentType.java
<reponame>simonsoft/cms-indexing-xml /** * Copyright (C) 2009-2017 Simonsoft Nordic AB * * 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...
nmellado/Radium-Engine
src/GuiBase/Utils/Keyboard.cpp
#include <GuiBase/Utils/Keyboard.hpp> #include <Core/CoreMacros.hpp> #include <Core/Log/Log.hpp> #include <map> namespace Ra { namespace Gui { std::map<int, bool> g_keypresses; void keyPressed(int code) { g_keypresses[code] = true; } void keyReleased(int ...
ate362/ubii-node-master
scripts/startBackend.js
<reponame>ate362/ubii-node-master const { ExternalLibrariesService } = require('@tum-far/ubii-node-nodejs/src/index'); const { MasterNode } = require('../src/index.js'); const fs = require('fs'); (function () { ExternalLibrariesService.instance.addExternalLibrary('fs', fs); let master = new MasterNode(); })();
romagny13/react-form-validation
docs/examples/Password/Example2.js
import React from 'react'; import { Form, LightGroup, Password, CheckboxGroup, Label, required, pattern, custom, ValidationHelper } from 'romagny13-react-form-validation'; /** Validation (required, match) */ class Example2 extends React.Component { constructor(props) { super(props); this.state = {...
YaPe4enka/samsung_itschool_tasks
module1/src/com/module1/t19_2.java
<filename>module1/src/com/module1/t19_2.java package com.module1; public class t19_2 { public static void main(String[] args) { System.out.print(SumOfSeven(0, 100)); } public static int SumOfSeven(int a, int b) { int res = 0; for (int i = a; i <= b; i++) { if (i % 7 != ...
confluentinc/ccloud-sdk-go-v2
kafkarest/v3/model_resource_collection_metadata.go
<reponame>confluentinc/ccloud-sdk-go-v2 // Copyright 2021 Confluent Inc. 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/LICE...
jamacanbacn/splits-io
db/migrate/20150120052157_add_claim_token_to_runs.rb
class AddClaimTokenToRuns < ActiveRecord::Migration[4.2] def change add_column :runs, :claim_token, :string end end
akasha/akasha
webtack/jsinterop-generator/src/test/fixtures/exposed/output/j2cl/test/java/com/example/AudioWorkletGlobalScopeTestCompile.java
<filename>webtack/jsinterop-generator/src/test/fixtures/exposed/output/j2cl/test/java/com/example/AudioWorkletGlobalScopeTestCompile.java<gh_stars>10-100 package com.example; import javax.annotation.Generated; @Generated("org.realityforge.webtack") public final class AudioWorkletGlobalScopeTestCompile { static Audi...
jxjnjjn/chromium
src/content/renderer/p2p/ipc_network_manager.cc
// Copyright (c) 2012 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 "content/renderer/p2p/ipc_network_manager.h" #include "base/bind.h" #include "base/sys_byteorder.h" #include "net/base/net_util.h" namespac...