repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
systemaker/Flask-Easy-Template
app/modules/events/models.py
#!/usr/bin/python # -*- coding: utf-8 -*- # ------- IMPORT DEPENDENCIES ------- import datetime import decimal from sqlalchemy import desc from sqlalchemy import or_ # ------- IMPORT LOCAL DEPENDENCIES ------- from app import db import time from app.helpers import * from app.modules.localization.controllers import...
reachlocal/sidekiq-cleaner
test/test_extensions.rb
# frozen_string_literal: true require_relative 'helper' require 'sidekiq/api' require 'active_record' require 'action_mailer' Sidekiq::Extensions.enable_delay! describe Sidekiq::Extensions do before do Sidekiq.redis {|c| c.flushdb } end class MyModel < ActiveRecord::Base def self.long_class_method ...
gxing19/Design-Patterns-Java
src/main/java/com/gxitsky/structural/bridge/full/ConcreteImplementorB.java
package com.gxitsky.structural.bridge.full; /** * @author gxing * @desc 具体实现 * @date 2021/6/18 */ public class ConcreteImplementorB implements Implementor { @Override public void operationImpl() { System.out.println("-----> 具体实现操作 ConcreteImplementorB"); } }
TheoSaify/Yolo-Detector
SURF.py
import cv2 import numpy as np from matplotlib import pyplot as plt img = cv2.imread('img21.jpg',0) # Create SURF object. You can specify params here or later. # Here I set Hessian Threshold to 400 # surf = cv2.SURF(400) surf = cv2.xfeatures2d.SURF_create() # Find keypoints and descriptors directly kp, ...
jhu-idc/idc-isle-dc
tests/12-media-tests/testcafe/media_formats.spec.js
import { adminUser } from "./roles.js"; import { findMediaOf } from "./util.js"; import { tryUntilTrue } from "./util.js"; import { download } from "./util.js"; import { uploadImageInUI , uploadFileInUI } from "./util.js"; fixture`Media format tests` .page`https://islandora-idc.traefik.me/migrate_source_ui`.beforeEa...
adipeterca/Laborator-PA
Lab6/src/Compulsory/ControlPanel.java
package Compulsory; import javax.imageio.ImageIO; import javax.swing.*; import javax.swing.filechooser.FileNameExtensionFilter; import javax.swing.plaf.ActionMapUIResource; import java.awt.*; import java.awt.event.ActionEvent; import java.io.File; import java.io.IOException; public class ControlPanel extends JPanel {...
KwonSunJae/CLOUD_AI_WEB_BATMAN_BATNAM_2021
WEB/batman/src/container/home/Runway/RunwayCreate.cntr.js
<reponame>KwonSunJae/CLOUD_AI_WEB_BATMAN_BATNAM_2021 import { useState } from "react"; import Box from "@mui/material/Box"; import Stepper from "@mui/material/Stepper"; import Step from "@mui/material/Step"; import StepLabel from "@mui/material/StepLabel"; import Button from "@mui/material/Button"; import Typography f...
lmjacksoniii/hazelcast-aws
hazelcast/src/main/java/com/hazelcast/internal/partition/PartitionRuntimeState.java
<reponame>lmjacksoniii/hazelcast-aws /* * Copyright (c) 2008-2017, Hazelcast, 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/licens...
degarashi/boomstick
cone3D.cpp
#include "geom3D.hpp" namespace boom { namespace geo3d { namespace { //! 直線と,原点からZ方向へ伸びる無限円錐との交点を求める (内部関数) /*! @param[in] rad_d 円錐の長さ1に対する半径の割合 @param[in] q 直線オフセット @param[in] v 直線の傾き @return 交点の0番目のtの値, 交点の1番目のtの値, 交点の数 */ std::tuple<float,float,int> CrossCone(float rad_d, const Vec3& q, cons...
cheriodone/H7-TOOL_STM32H7_App
User/daplink/source/daplink/cmsis-dap/debug_ca.h
<reponame>cheriodone/H7-TOOL_STM32H7_App<filename>User/daplink/source/daplink/cmsis-dap/debug_ca.h /** * @file debug_ca.h * @brief Access to ARM DAP (Cortex-A) using CMSIS-DAP protocol * * DAPLink Interface Firmware * Copyright (c) 2009-2016, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apach...
modelpaintmixer/mpm-frontend
src/pages/standard.js
<reponame>modelpaintmixer/mpm-frontend<filename>src/pages/standard.js import React from "react" import PropTypes from "prop-types" import { Link } from "gatsby" import queryString from "query-string" import ScaleLoader from "react-spinners/ScaleLoader" import useDataApi from "../utils/data-api" import Layout from "../...
Juanbz123/bootcamp-2021-5
src/test/java/selenium/kmollecundo/BabyTuto.java
<filename>src/test/java/selenium/kmollecundo/BabyTuto.java package selenium.kmollecundo; import io.github.bonigarcia.wdm.WebDriverManager; import org.junit.*; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; impo...
dbflute-test/dbflute-test-active-hangar
src/main/java/org/docksidestage/hangar/dbflute/bsbhv/BsWhiteBaseOne10CelebBhv.java
<gh_stars>0 package org.docksidestage.hangar.dbflute.bsbhv; import java.util.List; import org.dbflute.*; import org.dbflute.bhv.readable.*; import org.dbflute.bhv.writable.*; import org.dbflute.bhv.writable.coins.DateUpdateAdjuster; import org.dbflute.bhv.referrer.*; import org.dbflute.cbean.*; import org.dbflute.cbe...
vmgeremias/sampserver
PlayHappy/plugins/sscanf/array.cpp
<reponame>vmgeremias/sampserver<filename>PlayHappy/plugins/sscanf/array.cpp /* * 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. You may obtain a copy of the License ...
pengcong06/openpitrix
pkg/service/runtime/handler.go
<filename>pkg/service/runtime/handler.go // Copyright 2017 The OpenPitrix Authors. All rights reserved. // Use of this source code is governed by a Apache license // that can be found in the LICENSE file. package runtime import ( "context" "fmt" "time" clusterclient "openpitrix.io/openpitrix/pkg/client/cluster" ...
EnisBerk/speech_audio_understanding
src/nna/tests/dataimport_test.py
import pytest from nna import dataimport test_data_megan_excell_row2yaml_code = [ ( { 'Anthro/Bio': '', 'Category': 'Bug', 'Specific Category': '', }, 'V1', '1.3.0', ), ( { 'Anthro/Bio': 'TEST', 'Category':...
wangyang2010344/mve
public/index/S-Lisp/interpret.js
<gh_stars>1-10 ({ data:{ s:"./s.js" }, delay:true, success:function() { var getPath=function(scope) { var pathOf=lib.s.kvs_find1st(scope,"pathOf"); if(pathOf && pathOf.isFun){ return pathOf.exec(null); }else{ return ""; } }; var calNodes=function(children,scope) { var r=null; while...
ArekZw/async
src/cache/cache.js
<reponame>ArekZw/async /** * Async CSS and Script loader * Released under the terms of MIT license * * Copyright (C) 2019 Style.Tools * @link https://github.com/style-tools/async */ function NAMESPACE(key) { return VAR(VAR_DATA_C) + ':' + (key || ''); } function IS_EXPIRED(date, expire) { return date &&...
pwendell/akka
akka-persistence/src/main/scala/akka/persistence/journal/japi/AsyncWriteJournal.scala
/** * Copyright (C) 2009-2013 Typesafe Inc. <http://www.typesafe.com> */ package akka.persistence.journal.japi import scala.collection.immutable import scala.collection.JavaConverters._ import akka.persistence.journal.{ AsyncWriteJournal ⇒ SAsyncWriteJournal } import akka.persistence.PersistentRepr /** * Java AP...
Oluwasegun-AA/BackEnd
mongoDb/helpers/validator.js
<gh_stars>0 import { isEmpty } from 'lodash'; // const extractJoiErrorMessage = error => { // const { message } = error.details[0]; // return message // .replace(/"/g, ''); // }; // const joiValidateHelper = async (req, res, next, schema) => { // try { // await schema.validateAsync(req.body); // nex...
bmccarthy/looker-go-sdk
client/user/create_user_access_filter_responses.go
// Code generated by go-swagger; DO NOT EDIT. package user // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" strfmt "github.com/go-openapi/strfmt" models "github.com/billtrus...
HeliumEdu/platform
helium/auth/views/apis/usersettingsviews.py
<reponame>HeliumEdu/platform import logging from django.contrib.auth import get_user_model from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from helium.auth.serializers.usersettingsserializer import UserSettingsSerializer from helium.common.views.views import HeliumA...
liyongquan/leetcode-project
src/test/java/com/liyongquan/dfs/NQueens2Test.java
package com.liyongquan.dfs; import org.junit.Assert; import org.junit.Test; import static org.junit.Assert.*; public class NQueens2Test { private NQueens2 nQueens2 = new NQueens2(); @Test public void totalNQueens() { int i = nQueens2.totalNQueens(4); Assert.assertEquals(2, i); } }
gyliug/isstech
entfrm-core/entfrm-data/src/main/java/com/entfrm/data/enums/DataTypeEnum.java
package com.entfrm.data.enums; import lombok.AllArgsConstructor; import lombok.Getter; /** * @author yong * @date 2020/3/24 * @description 数据类型 */ @Getter @AllArgsConstructor public enum DataTypeEnum { /** * mysql */ MYSQL("mysql", "com.mysql.cj.jdbc.Driver"), /** * sqlserver */ ...
dbartok/advent-of-code-cpp
src/AdventOfCode2018/Day10-TheStarsAlign/Day10-TheStarsAlign.cpp
#include "Day10-TheStarsAlign.h" #include "StarAligner.h" #include <AdventOfCodeCommon/DisableLibraryWarningsMacros.h> __BEGIN_LIBRARIES_DISABLE_WARNINGS #include <regex> __END_LIBRARIES_DISABLE_WARNINGS namespace AdventOfCode { namespace Year2018 { namespace Day10 { std::vector<Starlight> createMoons(const std::v...
bradchesney79/illacceptanything
linux/tools/perf/util/tsc.h
#ifndef __PERF_TSC_H #define __PERF_TSC_H #include <linux/types.h> #include "../arch/x86/util/tsc.h" u64 perf_time_to_tsc(u64 ns, struct perf_tsc_conversion *tc); u64 tsc_to_perf_time(u64 cyc, struct perf_tsc_conversion *tc); u64 rdtsc(void); #endif
ZHANGTIANYAO1/H-60
addons/UH60/config/MFD/FDLeft.hpp
class FDLeft:FDRight { topLeft="FDLeft_LT"; topRight="FDLeft_RT"; bottomLeft="FDLeft_LD"; };
npocmaka/Windows-Server-2003
net/dhcp/server/mm/oclassdl.c
<reponame>npocmaka/Windows-Server-2003<gh_stars>10-100 //================================================================================ // Copyright (C) 1997 Microsoft Corporation // Author: RameshV // Description: implements the basic structures for storing complete option configuration info // ThreadSafe: no /...
btihen/shared_schedule
spec/models/user_interest_spec.rb
require 'rails_helper' RSpec.describe UserInterest, type: :model do describe "factory functions" do it "generates a valid user" do model = FactoryBot.build :user_interest expect(model.valid?).to be true end end describe "relationships" do it { is_expected.to belong_to(:user) } it { ...
Biirra/Leaflet_Playground
Models/Property.js
class Property{ } class Car extends Property{ _brand; }
ovatacms/ovata-content-repository
ovata-cr-api/src/main/java/ch/ovata/cr/spi/store/StoreCollection.java
/* * $Id: StoreCollection.java 679 2017-02-25 10:28:00Z dani $ * Created on 12.01.2017, 19:00:00 * * Copyright (c) 2017 by Ovata GmbH, * All rights reserved. * * This software is the confidential and proprietary information * of Ovata GmbH ("Confidential Information"). You * shall not disclose such Confiden...
UNSW-CFRC/online-whatif
src/main/java/au/org/aurin/wif/model/reports/demand/DemandAnalysisReport.java
<filename>src/main/java/au/org/aurin/wif/model/reports/demand/DemandAnalysisReport.java /** * */ package au.org.aurin.wif.model.reports.demand; import java.util.ArrayList; import java.util.List; import au.org.aurin.wif.model.demand.AreaRequirement; import au.org.aurin.wif.model.reports.ScenarioReport; /** * The ...
egotter/egotter
app/lib/dynamo_db/tweet.rb
# -*- SkipSchemaAnnotations module DynamoDB class Tweet extend ::DynamoDB::Util attr_reader :raw_attrs_text def initialize(tweet) @raw_attrs_text = tweet[:raw_attrs_text] end class << self def table_name raise NotImplementedError end def partition_key '...
pingjuiliao/cb-multios
challenges/Shipgame/cb_3/lib/cgc_mylibc.h
#ifndef MY_LIB_C_H #define MY_LIB_C_H #include "cgc_inttypes.h" #include "cgc_string.h" #include "cgc_printf.h" //reads in a new line and returns the number of characters cgc_read // Returns the number of characters cgc_read otherwise it will return 0 // or an errno on error // errno can be // The errno from fdwait o...
iamacup/sliips-web
src/content/components/Navigation/LeftComponents/companyProfile.js
<reponame>iamacup/sliips-web import React from 'react'; import { Link } from 'react-router-dom'; import PropTypes from 'prop-types'; const LeftComponents = ({ companyName }) => ( <ul className="nav navbar-nav navbar-left"> <li> <Link className="navbar-company-title" to="/company-list" ...
softicar/platform
platform-emf/src/main/java/com/softicar/platform/emf/permission/finder/EmfStaticPermissionFieldFinder.java
<gh_stars>1-10 package com.softicar.platform.emf.permission.finder; import com.softicar.platform.common.code.java.reflection.DeclaredFieldFinder; import com.softicar.platform.common.code.java.reflection.TypeParameterAnalyzer; import com.softicar.platform.common.core.utils.ReflectionUtils; import com.softicar.platform....
UXSoc/jta-gatsby
src/components/HeroDescription/HeroDescription.js
<gh_stars>0 import React from 'react'; import PropTypes from 'prop-types'; const HeroDescription = props => ( <section className="section"> <div className="container"> {props.title.length > 0 && <h4 className="title is-4">{props.title}</h4>} <p>{props.description}</p> </div> </section> ); Hero...
2283533702/mianshiya-public
cloudfunctions/comment/addComment/index.js
<gh_stars>1-10 const cloud = require('@cloudbase/node-sdk'); const app = cloud.init({ env: cloud.SYMBOL_CURRENT_ENV, }); const db = app.database(); const _ = db.command; const xss = require('xss'); const cheerio = require('cheerio'); /** * 创建回答 * @param event * @param context * @return {Promise<*|boolean>} */ ...
gurfinkel/codeSignal
tournaments/regexMatching/regexMatching.js
function regexMatching(pattern, test) { return !!~test.indexOf(pattern.replace(/\^|\$/, '')); }
Trisk3lion/mapa
cobol/src/CharDataWrapper.java
<reponame>Trisk3lion/mapa import java.util.*; import java.lang.reflect.*; import org.antlr.v4.runtime.tree.*; /** CharDataKeywordWrapper, CharDataLineWrapper, CharDataWrapper, CobolWordWrapper (not to be confused with CobolWord), DirectoryPhrase, FilenameWrapper, LiteralWrapper, and PseudoTextWrapper are all in servi...
uniqueck/a4ad
domain/src/main/java/com/github/a4ad/domain/manage/Artifact.java
package com.github.a4ad.domain.manage; import lombok.AccessLevel; import lombok.AllArgsConstructor; import lombok.Value; import java.util.Optional; @AllArgsConstructor(access = AccessLevel.PRIVATE) public class Artifact { private final ArtifactId id; public static Artifact withId(ArtifactId id) { ...
adinkwok/android_frameworks_support
samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/PlaybackSeekDataProviderSample.java
/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Maastro-CDS-Imaging-Group/SQLite4Radiomics
radiomicsfeatureextractionpipeline/backend/src/bootstrapper/radiomic_feature_extraction_pipeline_bootstrapper.py
""" This module is used for booting up the Radiomic Feature Extraction Pipeline tool It will also start the correct tool depending on the given input while calling the script. Currently we have 3 different programs available: 1. GUI 2. ROIPrioritySetter 3. Extraction Pipeline ToDo: Explain programs """ import os.pa...
isra-fel/STL
tests/std/tests/P0896R4_ranges_alg_generate/test.cpp
<filename>tests/std/tests/P0896R4_ranges_alg_generate/test.cpp // Copyright (c) Microsoft Corporation. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception #include <algorithm> #include <cassert> #include <concepts> #include <ranges> #include <range_algorithm_support.hpp> using namespace std; cons...
MicrohexHQ/nacl_contracts
tests/ripple_ledger/return_payment.cc
/* * Ripple "contract" that returns XRP or USD payments. */ #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <inttypes.h> #include <sys/fcntl.h> #include <string.h> #include <unistd.h> #include <json/reader.h> #include "native_client/src/public/imc_syscalls.h" #include "native_client/src/public/n...
CalvinMT/litiengine
src/de/gurkenlabs/litiengine/IGameLoop.java
package de.gurkenlabs.litiengine; public interface IGameLoop extends ILoop { public int perform(int delay, Runnable action); public void updateExecutionTime(int index, long ticks); public float getTimeScale(); public int getUpdateRate(); public void setTimeScale(float timeScale); }
CallumJohnson/FactionsBridge
Factions_MassiveCoreFactions/src/main/java/massivecorefactions/MassiveCoreFactionsClaim.java
<gh_stars>1-10 package massivecorefactions; import cc.javajobs.factionsbridge.bridge.infrastructure.AbstractClaim; import cc.javajobs.factionsbridge.bridge.infrastructure.struct.Claim; import cc.javajobs.factionsbridge.bridge.infrastructure.struct.Faction; import com.massivecraft.factions.entity.BoardColl; import com....
3dhater/Racer
src/libs/qlib/qdxsound.cpp
/* * QDXSound - DirectX sound abstraction * 25-09-00: Created! (Win32) * FUTURE: * - Select/enumerate audio devices * NOTES: * - Stubbed on anything !Win32 (to fail) * (C) MarketGraph/<NAME> */ #include <qlib/dxsound.h> #include <qlib/app.h> #include <qlib/debug.h> // SDL support for Linux sound (for example) ...
LiUSemWeb/HeFQUIN
src/main/java/se/liu/ida/hefquin/engine/datastructures/impl/cache/CacheEntryFactory.java
package se.liu.ida.hefquin.engine.datastructures.impl.cache; /** * Creates EntryType objects that wrap ObjectType objects. */ public interface CacheEntryFactory<EntryType extends CacheEntry<ObjectType>, ObjectType> { /** * Creates and returns a new EntryType object that wraps the given object. */ EntryType cre...
DigitalCoin1/L2SPERO
gameserver/head-src/com/l2jfrozen/gameserver/thread/LoginServerThread.java
<reponame>DigitalCoin1/L2SPERO<gh_stars>0 /* * L2jFrozen Project - www.l2jfrozen.com * * 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, or (at your option) * any later v...
wraydev/rltos
docs/doxy/generated/html/group___rltos__queue__api.js
<reponame>wraydev/rltos var group___rltos__queue__api = [ [ "Queue Private", "group___rltos__queue__prv.html", "group___rltos__queue__prv" ] ];
FunTimeCoding/python-utility
python_utility/git_observer.py
# TODO: Fetch master branch of a repository repeatedly and detect merges # into master. # TODO: Detect tag creation. # TODO: Detect feature branch creation. # http://gitpython.readthedocs.io/en/stable/tutorial.html#meet-the-repo-type
reels-research/iOS-Private-Frameworks
PassKitCore.framework/PKPaymentSetupFieldPicker.h
<reponame>reels-research/iOS-Private-Frameworks /* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/PassKitCore.framework/PassKitCore */ @interface PKPaymentSetupFieldPicker : PKPaymentSetupField { NSArray * _pickerItems; } @property (nonatomic, copy) PKPaymentSetupFieldPickerItem *current...
RodneyFernandes17/fontedward
IGRP-Template/src/main/java/nosi/webapps/sistema_de_avaliacao_igrpweb/pages/lista_avaliacao_semanal/Lista_avaliacao_semanalController.java
package nosi.webapps.sistema_de_avaliacao_igrpweb.pages.lista_avaliacao_semanal; import nosi.core.webapp.Controller;// import nosi.core.webapp.databse.helpers.ResultSet;// import nosi.core.webapp.databse.helpers.QueryInterface;// import java.io.IOException;// import nosi.core.webapp.Core;// import nosi.core.web...
Samyakk123/ThreatExchange
python-threatexchange/threatexchange/fetcher/fetch_state.py
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved """ Base classes for passing data between SignalExchangeAPIs and other interfaces. Many implementations will choose to extend these to add additional metadata needed to power API features. """ from dataclasses import dataclass from enum import I...
aanchal-jain/Python_Practice_Beginner
18.convert_base_2-9.py
<reponame>aanchal-jain/Python_Practice_Beginner number1=int(input("Insert number to convert: ")) base_number=int(input("Choose the base to convert to from 2 to 9: ")) if not(2<=base_number<=9): quit() number2='' while number1>0: number2=str(number1%base_number)+number2 number1//=base_number print(number2...
fieldenms/
platform-pojo-bl/src/main/java/ua/com/fielden/platform/entity/factory/DefaultCompanionObjectFinderImpl.java
package ua.com.fielden.platform.entity.factory; import static java.lang.String.format; import org.apache.log4j.Logger; import com.google.inject.Inject; import com.google.inject.Injector; import ua.com.fielden.platform.companion.ICanReadUninstrumented; import ua.com.fielden.platform.companion.IEntityReader; import u...
jhtwong/Open-Quark
src/CAL_Platform/src/org/openquark/cal/internal/machine/g/NVal.java
<gh_stars>1-10 /* * Copyright (c) 2007 BUSINESS OBJECTS SOFTWARE LIMITED * 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 ab...
HiltonRoscoe/exchangerxml
src/com/cladonia/xngreditor/actions/SignDocumentAction.java
<reponame>HiltonRoscoe/exchangerxml<filename>src/com/cladonia/xngreditor/actions/SignDocumentAction.java<gh_stars>1-10 /* * $Id: SignDocumentAction.java,v 1.15 2004/10/11 08:38:30 edankert Exp $ * * Copyright (C) 2002, Cladonia Ltd. All rights reserved. * * This software is the proprietary information of Clad...
kusakina0608/NHN_MovieSwan_web
src/main/java/com/nhn/rookie8/movieswanticketapp/dto/ScheduleDTO.java
<reponame>kusakina0608/NHN_MovieSwan_web package com.nhn.rookie8.movieswanticketapp.dto; import com.fasterxml.jackson.annotation.JsonFormat; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import java.time.LocalDate; import java.time.LocalTime; import java...
enrignagna/PervasiveHealthcare
src/test/scala/domainmodel/medicalrecords/initialanalysis/TestInitialAnalysis.scala
/* * Copyright (c) 2021. <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 *...
ryo-rm/expo
ios/versioned/sdk45/EXUpdates/EXUpdates/Update/ABI45_0_0EXUpdatesBareUpdate.h
// Copyright © 2019 650 Industries. All rights reserved. #import <ABI45_0_0EXUpdates/ABI45_0_0EXUpdatesUpdate.h> #import <ABI45_0_0EXManifests/ABI45_0_0EXManifestsBareManifest.h> NS_ASSUME_NONNULL_BEGIN @interface ABI45_0_0EXUpdatesBareUpdate : NSObject + (ABI45_0_0EXUpdatesUpdate *)updateWithBareManifest:(ABI45_0...
abhirocks1211/litho
litho-processor/src/main/java/com/facebook/litho/specmodels/model/PureRenderValidation.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...
snoic-boom/AnyMock
manager/web/src/main/java/com/dxm/anymock/manager/web/controller/HttpInterfaceController.java
package com.dxm.anymock.manager.web.controller; import com.dxm.anymock.common.base.ResultCodeTranslator; import com.dxm.anymock.common.base.enums.ResultCode; import com.dxm.anymock.common.dal.model.HttpInterfaceBO; import com.dxm.anymock.manager.biz.model.request.*; import com.dxm.anymock.manager.biz.model.response.Pa...
potapuff/ssu-work-jar
src/edu/sumdu/dl/common/XNode.java
package edu.sumdu.dl.common; import java.util.*; import edu.sumdu.dl.parser.QDNode; public class XNode { private QDNode qdNode; private ArrayList children; public XNode() { qdNode = new QDNode(); children = new ArrayList(); } public XNode(QDNode n) { this(); qdNo...
krcooke/treadmill
lib/python/treadmill/tests/api/authz/group_test.py
"""Group Authz API tests. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from collections import namedtuple import unittest import mock import treadmill.tests.treadmill_test_skip_windows # pylint: disable=W061...
Ashindustry007/competitive-programming
codechef/sept18a/magichf.cc
// https://www.codechef.com/SEPT18A/problems/MAGICHF #include <iostream> using namespace std; int t,n,x,s,a,b; int main() { cin >> t; while (t--) { cin >> n >> x >> s; for (int i = 0; i < s; i++) { cin >> a >> b; if (x == a) x = b; else if (x == b) x = a; } cout << x << endl; ...
leodelmiro/orange-talents-02-template-ecommerce
src/main/java/com/leodelmiro/mercadolivre/fakeendpoints/NewPurchaseInvoiceRequest.java
<filename>src/main/java/com/leodelmiro/mercadolivre/fakeendpoints/NewPurchaseInvoiceRequest.java package com.leodelmiro.mercadolivre.fakeendpoints; import javax.validation.constraints.NotNull; public class NewPurchaseInvoiceRequest { @NotNull private Long purchaseId; @NotNull private Long purchaserI...
onezens/QQTweak
qqtw/qqheaders7.2/QZLayoutManager.h
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @interface QZLayoutManager : NSObject { } + (id)layoutTagEventSummary:(id)arg1 font:(id)arg2 maxWidth:(double)arg3; + (id)layout_HeadIcon:(id)arg1 rect:(struct CGRe...
fossabot/kombustion
pkg/parsers/properties/UserPoolDeviceConfiguration.go
<reponame>fossabot/kombustion<gh_stars>0 package properties // DO NOT EDIT: This file is autogenerated by running 'go generate' // It's generated by "github.com/KablamoOSS/kombustion/generate" // UserPoolDeviceConfiguration Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-co...
lslll0302/Planner-Carrier
planners/PRP/src/search/landmarks/landmark_count_heuristic.cc
<reponame>lslll0302/Planner-Carrier #include "landmark_count_heuristic.h" #include "../plugin.h" #include "../successor_generator.h" #include "../policy-repair/deadend.h" #include <cmath> #include <ext/hash_map> #include <limits> using namespace std; using namespace __gnu_cxx; LandmarkCountHeuristic::LandmarkCountH...
yssource/build2
build2/types.hxx
<reponame>yssource/build2 // file : build2/types.hxx -*- C++ -*- // copyright : Copyright (c) 2014-2019 Code Synthesis Ltd // license : MIT; see accompanying LICENSE file #ifndef BUILD2_TYPES_HXX #define BUILD2_TYPES_HXX // Include unprocessed file during bootstrap. See config.hxx.in for details. // #ifdef BUI...
antopen/alipay-sdk-java-all
src/main/java/com/alipay/api/domain/AlipayFincoreComplianceCrossborderMerchantBatchqueryModel.java
package com.alipay.api.domain; import java.util.List; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.internal.mapping.ApiListField; /** * 跨境商户等级批量查询 * * @author auto create * @since 1.0, 2021-08-18 10:31:37 */ public class AlipayFincoreCo...
madang01/gitcodda
codda2/project/sample_test/client_build/web_build/src/main/java/kr/pe/codda/weblib/jdf/AbstractMultipartServlet.java
<reponame>madang01/gitcodda package kr.pe.codda.weblib.jdf; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.fileupload.servlet.ServletFileUpload; import kr.pe.codda.weblib.common.AccessedUserInformation; public abstract class AbstractMultipartSe...
tgoprince/menthor-editor
net.menthor.ontouml2text/src/net/menthor/ontouml2text/descriptionSpace/descriptionCategories/Mixin.java
package net.menthor.ontouml2text.descriptionSpace.descriptionCategories; import net.menthor.ontouml2text.descriptionSpace.SemiRigidDescriptionCategory; public class Mixin extends SemiRigidDescriptionCategory { public Mixin(String label) { super(label); } }
xinlyun/DivTwo
app/src/main/java/com/lin/dlivkfragment/setting/IatSettings.java
<gh_stars>1-10 package com.lin.dlivkfragment.setting; import android.os.Bundle; import android.preference.EditTextPreference; import android.preference.Preference; import android.preference.Preference.OnPreferenceChangeListener; import android.preference.PreferenceActivity; import android.view.Window; import...
DatatransInformatika/beruang
build/es6/node_modules/@beruang/polar/polar-behavior.js
/** @license Copyright (c) 2019 The Beruang Project Authors. All rights reserved. This code may only be used under the BSD style license found at https://github.com/DatatransInformatika/beruang/blob/master/LICENSE.txt The complete set of authors may be found at https://github.com/DatatransInformatika/beruang/blob/maste...
bkiac/lightning
lnd_responses/channel_edge_as_channel.js
<filename>lnd_responses/channel_edge_as_channel.js const {chanFormat} = require('bolt07'); const channelPolicyAsPolicy = require('./channel_policy_as_policy'); const separatorChar = ':'; /** Channel edge as channel { capacity: <Capacity Tokens String> chan_point: <Channel Funding Outpoint String> chan...
alexshpunt/art_gear
Editor/Wrappers/Components/AGEComponent.cpp
<reponame>alexshpunt/art_gear #include "AGEComponent.h" #include "Editor/Wrappers/Components/AGEComponent.h" AGEComponent::AGEComponent( AGEGameObject* object ) : m_gameObject( object ) {} AGEComponent::~AGEComponent() {} AGEGameObject* AGEComponent::getGameObject() const { return m_gameObject; }
joaosoft/Go
78_master-go-programing/14 - packages and modules/3 - coding challenges/1/main.go
/* Consider this function: // Checks if a number is prime or not func IsPrime(num int) bool { for i := 2; i < int(num/2); i++ { if num%i == 0 { return false } } return true } Create a package called arithmetic in $GOPATH/packages/mypackages and paste the above function in a file...
sampath419/ApplicationInsights-Ruby
test/application_insights/channel/contracts/test_envelope.rb
require_relative '../../../../lib/application_insights/channel/contracts/envelope' require 'test/unit' include ApplicationInsights::Channel class TestEnvelope < Test::Unit::TestCase def test_initialize item = Contracts::Envelope.new assert_not_nil item end def test_ver_works_as_expected expected = ...
bahanni/custom_rpi4
priv/farmware/measure-soil-height/calculate_multiple.py
#!/usr/bin/env python3.8 'Perform calculations on multiple stereo image sets.' import json from time import time import numpy as np import cv2 as cv from calculate import Calculate from plot import Plot def _abridged(histogram): low_label_mask = ['low' in h for h in histogram] high_label_mask = ['high' in h...
eventualbuddha/encoder-tools
spec/cli/subtitles/offset_spec.rb
require 'spec_helper' RSpec.describe EncoderTools::CLI::Subtitles::Offset do include_context 'a CLI command' it "does nothing with an empty subtitle list" do options[:add] = '0' input.string = "" subject.run expect(output.string).to eq("") end it "does not alter a subtitle list with zero offs...
rherardi/xml-xalan-c-src_1_10_0
src/xalanc/XercesParserLiaison/Deprecated/XercesTreeWalker.hpp
/* * Copyright 1999-2004 The Apache Software 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 * * Unless requir...
threefishes/springCloudMainService
cloud-repository/src/main/java/cn/threefishes/cloudrepository/entity/LiveRoomSlider.java
package cn.threefishes.cloudrepository.entity; public class LiveRoomSlider { private Integer liveRoomSliderId; private String imageJson; public Integer getLiveRoomSliderId() { return liveRoomSliderId; } public void setLiveRoomSliderId(Integer liveRoomSliderId) { this.liveRoomSlid...
windniw/just-for-fun
leetcode/83.py
<reponame>windniw/just-for-fun<filename>leetcode/83.py """ link: https://leetcode.com/problems/remove-duplicates-from-sorted-list problem: 删除链表中的重复项,使每项唯一 solution: 直接扫 """ class Solution: def deleteDuplicates(self, head: ListNode) -> ListNode: t = head while t: if t.next and t.next...
lczx/fdi2-exams
design-patterns/creational/factory/Pattern.java
<reponame>lczx/fdi2-exams import shapes.Shape; import shapes.ShapeFactory; public class Pattern { public static void main(String[] args) { ShapeFactory sf = new ShapeFactory(); Shape shape1 = sf.getShape("circle"); shape1.draw(); Shape shape2 = sf.getShape("rectangle"); s...
medismailben/llvm-project
clang/test/CodeGen/2005-07-26-UnionInitCrash.c
<reponame>medismailben/llvm-project // PR607 // RUN: %clang_cc1 %s -emit-llvm -o - union { char bytes[8]; double alignment; }EQ1 = {0,0,0,0,0,0,0,0};
pablotrinidad/icc
psets/P06/src/icc/clases/UsoCiudadano.java
<filename>psets/P06/src/icc/clases/UsoCiudadano.java package icc.clases; public class UsoCiudadano { public static void main(String[] args) { Ciudadano carmen = new Ciudadano("<NAME>", "de Costa Brava", "Cortez", "30/03/2001"); System.out.println("RFC: " + carmen.calculaRFC()); System.out...
patham9/opennars_googlecode
nars_core_java/nars/inference/RuleTables.java
/* * The MIT License * * Copyright 2019 The OpenNARS authors. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use,...
Dnmrk4/codewars-8kyu
Beginner - Reduce but Grow.js
<filename>Beginner - Reduce but Grow.js /* Description: Given a non-empty array of integers, return the result of multiplying the values together in order. Example: [1, 2, 3, 4] => 1 * 2 * 3 * 4 = 24 */ const grow=x=> x.reduce((a,b) => a*b);
benravago/fx.html
testsuite/src/domts/level2/html/HTML_Table_Element_23_Test.java
<gh_stars>0 package domts.level2.html; import org.w3c.dom.*; import org.w3c.dom.html.*; import java.util.*; import org.junit.jupiter.api.*; import static org.junit.jupiter.api.Assertions.*; /** * The createTFoot() method creates a table footer row or returns * an existing one. * Try to create a new TFOOT element on the...
shin32125/chromium_webview
java/src/com/mogoweb/chrome/impl/WebBackForwardListChromium.java
// Copyright (c) 2013 mogoweb. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /* * Copyright (C) 2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except i...
aroundble/onap
catalog-be/src/test/java/org/openecomp/sdc/be/components/merge/resource/ResourceDataMergeBusinessLogicTest.java
package org.openecomp.sdc.be.components.merge.resource; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.InjectMocks; import org.mockito.Mock; import org.mockito.junit.MockitoJUnitRunner; import org.openecomp.sdc.be.components.merge.instance.ComponentsMergeCommand; im...
lechium/iOS1351Headers
System/Library/PrivateFrameworks/NewsFoundation.framework/NFResolver.h
<filename>System/Library/PrivateFrameworks/NewsFoundation.framework/NFResolver.h /* * This header is generated by classdump-dyld 1.5 * on Friday, April 30, 2021 at 11:37:40 AM Mountain Standard Time * Operating System: Version 13.5.1 (Build 17F80) ...
crowlogic/JPlotter
jplotter/src/main/java/hageldave/jplotter/color/ColorScheme.java
<filename>jplotter/src/main/java/hageldave/jplotter/color/ColorScheme.java package hageldave.jplotter.color; import java.awt.Color; /** * The ColorScheme is responsible for storing and providing color information, * which other components can use. This enables an easy way to distribute color * information to multi...
pandboy/pingguopai
src/main/java/com/xfl/pingguopai/security/auth/AuthenticationFailureHandler.java
<filename>src/main/java/com/xfl/pingguopai/security/auth/AuthenticationFailureHandler.java package com.xfl.pingguopai.security.auth; import com.alibaba.fastjson.JSON; import com.xfl.pingguopai.common.Result; import com.xfl.pingguopai.common.ResultCode; import org.springframework.security.authentication.BadCredentialsE...
krmao/lib_ios_base
LibIosBase/Classes/LibraryBase/STBaseViewController.h
<gh_stars>0 // // Created by krmao on 2020/5/26. // Copyright (c) 2020 smart. All rights reserved. // #import <Foundation/Foundation.h> @interface STBaseViewController : UIViewController @end
npocmaka/Windows-Server-2003
base/ntsetup/spsetup/runtime/log/sysprim.cpp
/*++ Copyright (c) 2001 Microsoft Corporation Abstract: Environment independed system functions implementation for Win32, Author: <NAME> (sourenag) 24-Sep-2001 Revision History: <alias> <date> <comments> --*/ #include "pch.h" #include "sysfunc.h" #include "functions.h" #incl...
shybzzz/ESP-1ch-Gateway
lib/ArduinoJson/extras/tests/JsonVariant/createNested.cpp
<reponame>shybzzz/ESP-1ch-Gateway // ArduinoJson - arduinojson.org // Copyright <NAME> 2014-2020 // MIT License #include <ArduinoJson.h> #include <stdint.h> #include <catch.hpp> TEST_CASE("JsonVariant::createNestedObject()") { DynamicJsonDocument doc(4096); JsonVariant variant = doc.to<JsonVariant>(); SECTION(...