repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
ua-eas/devops-automation-ksd-kc5.2.1-rice
impl/src/test/java/org/kuali/rice/krad/bo/BusinessObjectAttributeEntryTest.java
/** * Copyright 2005-2015 The Kuali Foundation * * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php * * Unless required by a...
satish757/multiagent
pipeline-model-api/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/validator/AbstractModelValidator.java
<gh_stars>100-1000 /* * The MIT License * * Copyright 2019 CloudBees, Inc. * * 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 right...
AvadheshChamola/LeetCode
56_Merge_Intervals.cpp
/* 56. Merge Intervals Medium Given an array of intervals where intervals[i] = [starti, endi], merge all overlapping intervals, and return an array of the non-overlapping intervals that cover all the intervals in the input. Example 1: Input: intervals = [[1,3],[2,6],[8,10],[15,18]] Output: [[1,6],[8,10],[15,18]] Expl...
AlgorithmLX/IndustrialLevel
build/tmp/expandedArchives/forge-1.18.1-39.0.0_mapped_official_1.18.1-sources.jar_f6a4a89164f1bd9335800eaab8a74a09/net/minecraft/data/info/WorldgenRegistryDumpReport.java
package net.minecraft.data.info; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.JsonElement; import com.mojang.serialization.DynamicOps; import com.mojang.serialization.Encoder; import com.mojang.serialization.JsonOps; import java.io.IOException; import java.nio.file.Path; impo...
presly808/aco24
functional-tests/src/test/java/patterns/observer/NBUTest.java
package patterns.observer; import static org.junit.Assert.*; /** * Created by serhii on 31.03.18. */ public class NBUTest { public void test1(){ NBU nbu = new NBU(); nbu.addObserver(new PrivatBank()); nbu.addObserver(new Ukrsib()); nbu.addObserver(new AlfaBank()); nbu...
jiegec/canokey-core
interfaces/USB/class/ctaphid/ctaphid.h
#ifndef __CTAPHID_H_INCLUDED__ #define __CTAPHID_H_INCLUDED__ #include <common.h> #define HID_RPT_SIZE 64 // Default size of raw HID report // Frame layout - command- and continuation frames #define CID_BROADCAST 0xffffffff // Broadcast channel id #define TYPE_MASK 0x80 // Frame type mask #define TYPE_INI...
kadiryetisen/Mern-eCommerce
frontend/src/screens/admin/AdminUserList.js
import { React, useEffect, useState, useContext, useRef } from 'react' import axios from 'axios' import { Button, Table } from 'react-bootstrap' import { AuthContext } from '../../context/AuthContext' import Loader from '../../components/layouts/Loader' const AdminUserList = () => { const componentMounted = us...
rspozza/Java
java/TesteEstresse/src/main/java/utfpr/socket/testestress/socket/Servidor.java
<gh_stars>1-10 package utfpr.socket.testestress.socket; import java.io.DataInputStream; import java.io.DataOutputStream; import java.net.ServerSocket; import java.net.Socket; public class Servidor { private static Socket conexao; private static ServerSocket servidor; private static DataInputStream entra...
dn0000001/test-automation
taf/src/main/java/com/taf/automation/ui/support/conditional/MatchFactory.java
package com.taf.automation.ui.support.conditional; public class MatchFactory { /** * Based on criteria return appropriate match class * * @param criteria - Criteria to find a match for * @return Match class that can work with the criteria to determine if match * @throws RuntimeException if...
gitter-badger/httpclient
httpclient/src/main/java/org/apache/http/impl/client/exec/BackoffStrategyExec.java
<filename>httpclient/src/main/java/org/apache/http/impl/client/exec/BackoffStrategyExec.java<gh_stars>1-10 /* * ==================================================================== * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distribut...
cameroncooke/XcodeHeaders
PlugIns/GPUDebuggerGLSupport/GPUFramebufferAttachmentInfo.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" __attribute__((visibility("hidden"))) @interface GPUFramebufferAttachmentInfo : NSObject { unsigned int _objectType; unsigned int _textureLevel; unsigned...
bowlofstew/omim
map/benchmark_tool/api.hpp
<gh_stars>1-10 #pragma once #include "std/vector.hpp" #include "std/string.hpp" #include "std/utility.hpp" namespace bench { struct Result { vector<double> m_time; public: double m_all, m_max, m_avg, m_med; public: void Add(double t) { m_time.push_back(t); } void Add(Result co...
MontiCore/monticore
monticore-grammar/src/test/java/de/monticore/grammar/cocos/NoNestedGenericsInAdditionalAttributesTest.java
<reponame>MontiCore/monticore<gh_stars>10-100 /* (c) https://github.com/MontiCore/monticore */ package de.monticore.grammar.cocos; import de.monticore.grammar.grammar_withconcepts._cocos.Grammar_WithConceptsCoCoChecker; import de.se_rwth.commons.logging.LogStub; import org.junit.BeforeClass; import org.junit.Test; pu...
travislondon/ciera
examples/GPS/GPS_Watch/src/main/java/gui/SwingWatchGui.java
<reponame>travislondon/ciera<filename>examples/GPS/GPS_Watch/src/main/java/gui/SwingWatchGui.java package gui; import io.ciera.runtime.summit.interfaces.IMessage; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Font; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; im...
dualword/pymol-open-source
layerCTest/Test_Event.cpp
#include "Test.h" #include "Event.h" static int x = 2; static void some_func(int inc) { x += inc; x += 100; } TEST_CASE("Event Test", "[Event]") { auto callback = [&](int inc) { x += inc; x += 10; }; pymol::Event<int> event_publisher{}; REQUIRE(event_publisher.size() == 0); event_publisher.add...
pdibenedetto/Axon4Example
src/main/java/nl/avthart/todo/app/common/exceptions/CantRestoreException.java
<filename>src/main/java/nl/avthart/todo/app/common/exceptions/CantRestoreException.java package nl.avthart.todo.app.common.exceptions; public class CantRestoreException extends BadRequestException { public CantRestoreException( String message, Throwable... cause ) { super( message, cause ); } }
asmuratbek/oobamarket
apps/index/models.py
from ckeditor_uploader.fields import RichTextUploadingField from django.db import models from apps.utils.models import PublishBaseModel # Create your models here. COLUMNS_TYPES = ( ("first_col", "Первая колонка"), ("second_col", "Вторая колонка"), ("third_col", "Третья колонка") ) BLOCK_TYPES = ( ("bi...
daver32/Minecraft-Clone
src/renderEngine/binds/MouseDragBind.java
package renderEngine.binds; import org.lwjgl.input.Keyboard; import org.lwjgl.input.Mouse; public class MouseDragBind extends Bind { private int key; private boolean isMouseBind, isPressed; private int[] startingPoint, currentPoint; public MouseDragBind(int key, boolean isMouseBind) { this.key = key; this...
Cindia-blue/openairenb
cmake_targets/lte_build_oai/build/CMakeFiles/RRC_Rel14/LTE_SL-DiscTxResourceInfoPerFreq-r13.c
<reponame>Cindia-blue/openairenb /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "EUTRA-RRC-Definitions" * found in "/home/lixh/enb_folder/openair2/RRC/LTE/MESSAGES/asn1c/ASN1_files/lte-rrc-14.7.0.asn1" * `asn1c -pdu=all -fcompound-names -gen-PER -no-gen-OER -no-gen-example -D /home/...
AbdouTlili/onos-e2-em
servicemodels/e2sm_rc_pre/rcprectypes/E2SM-RC-PRE-ControlHeader-RCPRE.h
<filename>servicemodels/e2sm_rc_pre/rcprectypes/E2SM-RC-PRE-ControlHeader-RCPRE.h /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "E2SM-RC-PRE-IEs" * found in "../v2/e2sm-rc-pre_v2_rsys.asn" * `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-...
jmuseri/got
src/test/java/ar/com/bbva/got/service/funcional/TramiteServiceTests.java
<filename>src/test/java/ar/com/bbva/got/service/funcional/TramiteServiceTests.java package ar.com.bbva.got.service.funcional; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import org.junit.BeforeClass; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.Assert; impo...
benrobson/Website
db/migrate/20160928231835_add_hidden_to_objectives.rb
class AddHiddenToObjectives < ActiveRecord::Migration[5.1] def change add_column :objectives, :hidden, :boolean, :default => false end end
pcsanwald/kibana
x-pack/plugins/canvas/public/components/loading/__tests__/loading.js
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import React from 'react'; import expect from 'expect.js'; import { shallow }...
khromiumos/chromiumos-chromite
api/gen/test_platform/common/task_pb2.py
<reponame>khromiumos/chromiumos-chromite # Generated by the protocol buffer compiler. DO NOT EDIT! # source: test_platform/common/task.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message a...
blinkist/rack-oauth2
lib/rack/oauth2/server/abstract.rb
require 'rack/oauth2/server/abstract/handler' require 'rack/oauth2/server/abstract/request' require 'rack/oauth2/server/abstract/response' require 'rack/oauth2/server/abstract/error'
fossabot/hull-node
src/types/hull-object-attributes.js
/* @flow */ import type { THullUserAttributes, THullAccountAttributes } from "./"; /** * Object which is passed to `hullClient.asAccount().traits(traits: THullObjectAttributes)` call * @public * @memberof Types */ export type THullObjectAttributes = THullUserAttributes | THullAccountAttributes;
jaypipes/sqlb
pkg/schema/column.go
<filename>pkg/schema/column.go // // Use and distribution licensed under the Apache license version 2. // // See the COPYING file in the root project directory for full text. // package schema // Column describes a column in a Table type Column struct { Alias string Name string Table *Table }
NCTU-AUV/stm32_write_data_to_rpi
firmware/freertos/semaphore/lib/FreeRTOSV8.2.3/FreeRTOS/Demo/SuperH_SH7216_Renesas/RTOSDemo/intprg.c
<gh_stars>100-1000 /***********************************************************************/ /* */ /* FILE :intprg.c */ /* DATE :Sun, Dec 27, 2009 */ /...
red61/webstart
webstart-maven-plugin/src/main/java/org/codehaus/mojo/webstart/AbstractBaseJnlpMojo.java
package org.codehaus.mojo.webstart; /* * 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,...
friskluft/nyx
src/nyx/features/convex_hull_nontriv.cpp
#define _USE_MATH_DEFINES // For M_PI, etc. #include <cmath> #include "../feature_method.h" #include "image_matrix_nontriv.h" #include "convex_hull.h" ConvexHullFeature::ConvexHullFeature() { provide_features ({CONVEX_HULL_AREA, SOLIDITY, CIRCULARITY}); } void ConvexHullFeature::save_value(std::vector<st...
arthurb123/Lynx2D
modules/objects/scene.js
<filename>modules/objects/scene.js /** * Lynx2D Scene * @constructor * @param {function} callback - The callback that gets executed once the Scene loads, all code should go in here. */ this.Scene = class { constructor (callback) { this.SAVED_STATE_AVAILABLE = false; this.CALLBACK = callback; ...
supensour/supensour
supensour-core/src/main/java/com/supensour/core/thread/task/ContextAwareThreadTask.java
package com.supensour.core.thread.task; import com.supensour.core.thread.setting.ContextAwareThreadSetting; import org.springframework.lang.NonNull; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Optional; import java.util.concurrent.Callable; /** * @author <NAME> * @since ...
heaths/azure-sdk-for-go
sdk/resourcemanager/sql/armsql/zz_generated_sensitivitylabels_client.go
//go:build go1.16 // +build go1.16 // 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. // Changes may cause incorrect behavior and will be lost if the cod...
leandcesar/tmdb-python
tmdb/schema/find.py
<gh_stars>0 # -*- coding: utf-8 -*- from dataclasses import dataclass from typing import Optional from .media import Media from .person import PersonPartial @dataclass class Find: movie_results: Optional[list[Media]] person_results: Optional[list[PersonPartial]] tv_episode_results: Optional[list[Media]] ...
george-zhang-work/dove
Reader/src/com/dove/reader/content/CursorCreator.java
<gh_stars>1-10 package com.dove.reader.content; import android.database.Cursor; /** * An object that knows how to create its implementing class using a single row * of a cursor alone. * * @param <T> */ public interface CursorCreator<T> { /** * Creates an object using the current row of th...
dram/metasfresh
backend/de.metas.adempiere.adempiere/base/src/main/java-gen/org/eevolution/model/X_PP_Order_ExportAudit.java
<reponame>dram/metasfresh<gh_stars>1000+ /** Generated Model - DO NOT CHANGE */ package org.eevolution.model; import java.sql.ResultSet; import java.util.Properties; /** Generated Model for PP_Order_ExportAudit * @author metasfresh (generated) */ @SuppressWarnings("javadoc") public class X_PP_Order_ExportAudit ex...
hrvojekindl/pocket-cube-optimal-solver
src/hashes.js
<gh_stars>1-10 exports.hash5 = function({p2, p1, p0, o}) { //avg 7.599925518689986 len 373248 373248 let v = o - ((o & 0b1010101010101010) >> 1); return (p2&0b111 | (p1&0b11100)<<2 | (p0&0b110001)<<3) * 729 + (v&0b11) + (v&0b1100)*3/4 + (v&0b110000)*9/16 + (v&0b11000000)*27/64 + (v&0b1100000000)*81/...
pniekamp/datum-studio
src/plugins/edit/editormanager.cpp
<reponame>pniekamp/datum-studio // // Editor Management // // // Copyright (C) 2016 <NAME> // #include "editormanager.h" #include <QMessageBox> #include <QtDebug> using namespace std; //|---------------------- EditorManager ------------------------------------- //|----------------------------------...
mitchellolsthoorn/SSBSE-Research-2021-crossover-replication
subjects/components/code/commons-statistics/commons-statistics-distribution/src/main/java/org/apache/commons/statistics/distribution/BinomialDistribution.java
<filename>subjects/components/code/commons-statistics/commons-statistics-distribution/src/main/java/org/apache/commons/statistics/distribution/BinomialDistribution.java<gh_stars>1-10 /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distribu...
vehicle-history/vehicle-history-android
app/src/main/java/io/vehiclehistory/api/model/Name.java
package io.vehiclehistory.api.model; import java.io.Serializable; /** * Created by dudvar on 2015-03-13. */ public class Name implements Serializable { private CarMake make; private String carName; private String model; public CarMake getMake() { return make; } public String getCar...
kwery/kwery
src/test/java/com/kwery/tests/controllers/apis/integration/jobapicontroller/JobApiControllerExecuteJobTest.java
<reponame>kwery/kwery<filename>src/test/java/com/kwery/tests/controllers/apis/integration/jobapicontroller/JobApiControllerExecuteJobTest.java<gh_stars>10-100 package com.kwery.tests.controllers.apis.integration.jobapicontroller; import com.google.common.collect.ImmutableMap; import com.kwery.controllers.apis.JobApiCo...
bigbigx/HFish
core/protocol/vnc/vnc.go
package vnc import ( "io" "log" "net" "fmt" "strings" "HFish/utils/is" "HFish/core/rpc/client" "HFish/core/report" "HFish/core/pool" ) const VERSION = "RFB 003.008\n" const CHALLENGE = "\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00" // 5900 func Start(address string) { l, err := ne...
avedensky/JavaRushCore
1.JavaSyntax/src/com/javarush/task/task04/task0422/Solution.java
<reponame>avedensky/JavaRushCore<gh_stars>10-100 package com.javarush.task.task04.task0422; /* 18+ */ import javax.swing.plaf.synth.SynthTextAreaUI; import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //напишите тут ваш код BufferedReader br = new ...
nwillc/simplecache
src/main/java/com/github/nwillc/simplecache/SCacheManager.java
<filename>src/main/java/com/github/nwillc/simplecache/SCacheManager.java /* * Copyright 2019 <EMAIL> * * Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. *...
phax/ph-css
ph-css/src/test/java/com/helger/css/tools/MediaQueryToolsTest.java
/* * Copyright (C) 2014-2021 <NAME> (www.helger.com) * philip[at]helger[dot]com * * 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 ...
adzai/Network-Simulator
src/cz/praguecityuniversity/NetworkAdapter.java
package cz.praguecityuniversity; /** * Network Adapter that is a component of devices' internal hardware */ abstract class NetworkAdapter extends Entity { Device device; NetworkAdapter(Device device, TypeofEntity typeofEntity) { super(typeofEntity); this.device = device; } }
NunoEdgarGFlowHub/NemCommunityClient
nem-client-api/src/test/java/org/nem/ncc/controller/viewmodels/HarvestInfoViewModelTest.java
<gh_stars>10-100 package org.nem.ncc.controller.viewmodels; import net.minidev.json.JSONObject; import org.hamcrest.core.IsEqual; import org.junit.*; import org.nem.core.model.ncc.HarvestInfo; import org.nem.core.model.primitive.*; import org.nem.core.serialization.JsonSerializer; import org.nem.core.time.*; public c...
ckclark/leetcode
py/predict-the-winner.py
<reponame>ckclark/leetcode class Solution(object): def PredictTheWinner(self, nums): """ :type nums: List[int] :rtype: bool """ dp = dict() def top_down(start, end): if start == end: dp[start, end] = 0 elif (start, end) not in d...
WAng91An/Blog
src/main/java/com/wrq/mapper/CategoryMapper.java
<reponame>WAng91An/Blog<gh_stars>1-10 package com.wrq.mapper; import java.util.List; import org.apache.ibatis.annotations.Param; import com.wrq.vo.CategoryVo; import com.wrq.pojo.Category; /** * todo:分类 * Category * 创建人:王瑞乾 * 时间:2019年02月03日 15:55:04 * @version 1.0.0 * */ public interface Cat...
benoitkugler/webrender
svg/paint.go
package svg import ( "fmt" "strings" "github.com/benoitkugler/webrender/backend" "github.com/benoitkugler/webrender/css/parser" "github.com/benoitkugler/webrender/matrix" "github.com/benoitkugler/webrender/text" "github.com/benoitkugler/webrender/utils" ) // handle painter for fill and stroke values // paint...
Grosskopf/openoffice
main/svtools/source/control/urlcontrol.cxx
/************************************************************** * * 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 y...
kjthegod/chromium
android_webview/javatests/src/org/chromium/android_webview/test/StandaloneAwQuotaManagerBridgeTest.java
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.android_webview.test; import org.chromium.android_webview.AwContents; import org.chromium.android_webview.AwQuotaManagerBridge; impo...
TeamSPoon/CYC_JRTL_with_CommonLisp_OLD
platform/main/server-4q/com/cyc/cycjava/cycl/quirk/quirk_trampolines.java
<gh_stars>1-10 package com.cyc.cycjava.cycl.quirk; import static com.cyc.cycjava.cycl.access_macros.register_external_symbol; import static com.cyc.tool.subl.jrtl.nativeCode.type.core.SubLObjectFactory.makeSymbol; import static com.cyc.tool.subl.util.SubLFiles.declareFunction; import com.cyc.tool.subl.jrtl.nativeCod...
SanjanaAnaokar/Helping-Hands
Helpinghands/EcoSystem/src/Business/WorkQueue/AdopterWorkRequest.java
<filename>Helpinghands/EcoSystem/src/Business/WorkQueue/AdopterWorkRequest.java /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package Business.WorkQueue; /** * * @author sanja *...
bam241/FRENSIE
packages/utility/core/src/Utility_TypeNameTraits.hpp
<reponame>bam241/FRENSIE<filename>packages/utility/core/src/Utility_TypeNameTraits.hpp //---------------------------------------------------------------------------// //! //! \file Utility_TypeNameTraits.hpp //! \author <NAME> //! \brief Type name traits class specializations //! //----------------------------------...
Alf-Melmac/slotbotServer
src/main/java/de/webalf/slotbot/assembler/api/EventApiAssembler.java
<reponame>Alf-Melmac/slotbotServer package de.webalf.slotbot.assembler.api; import de.webalf.slotbot.assembler.EventTypeAssembler; import de.webalf.slotbot.assembler.UserAssembler; import de.webalf.slotbot.controller.website.EventWebController; import de.webalf.slotbot.model.Event; import de.webalf.slotbot.model.User;...
lifansama/xposed_art_n
test/140-field-packing/src/GapOrderBase.java
/* * Copyright (C) 2014 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...
ridictking/promo
src/main/java/com/ng/emts/christmasOffer/model/request/besrequest/OrderData.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.ng.emts.christmasOffer.model.request.besrequest; import com.fasterxml.jackson.annotation.JsonInclude; import com.google.gs...
oberasoftware/jasdb
jasdb_api/src/main/java/com/oberasoftware/jasdb/api/storage/RecordResult.java
<gh_stars>10-100 /* * The JASDB software and code is Copyright protected 2011 and owned by <NAME> * * All the code and design principals in the codebase are also Copyright 2011 * protected and owned Renze de Vries. Any unauthorized usage of the code or the * design and principals as in this code is prohibited. ...
fangrx/my-blog
common/src/main/java/com/nonelonely/common/utils/CustomCallable.java
package com.nonelonely.common.utils; import com.nonelonely.common.data.RunInfo; import java.lang.reflect.InvocationTargetException; import java.util.concurrent.Callable; /** * Create by andy on 2018-12-07 13:10 */ public class CustomCallable implements Callable<RunInfo> { private String sourceCode; public...
veriktig/scandium
old-external/felix/utils/src/main/java/org/apache/felix/utils/properties/Properties.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 may ...
kcat/XLEngine
procedural/ProceduralFunc.cpp
<gh_stars>1-10 #include "ProceduralFunc.h" #include "Noise.h" #include "../math/Math.h" #include <math.h> namespace ProceduralFunc { float fBm(Vector3 p, int nOctaves, float H/*=0.5f*/, float r/*=2.0f*/) { float z = p.z; float fRes = Noise::Noise3D(p.x, p.y, z); float fAmp=H; fo...
grishkam/QuickFigures
QuickFigures/User_Interface/imageDisplayApp/ImageWindowAndDisplaySet.java
/******************************************************************************* * Copyright (c) 2021 <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://...
Aleoami/kaspad
cmd/kaspawallet/send.go
package main import ( "context" "fmt" "github.com/kaspanet/kaspad/cmd/kaspawallet/daemon/client" "github.com/kaspanet/kaspad/cmd/kaspawallet/daemon/pb" "github.com/kaspanet/kaspad/cmd/kaspawallet/keys" "github.com/kaspanet/kaspad/cmd/kaspawallet/libkaspawallet" "github.com/kaspanet/kaspad/domain/consensus/util...
paragraff/Star-Citizen-WebGL-Map
src/scmap/map/geometry/system-glow.js
<filename>src/scmap/map/geometry/system-glow.js /** * @author <NAME> / https://github.com/Leeft */ import MapGeometry from '../map-geometry'; import settings from '../../settings'; import config from '../../config'; import THREE from 'three'; const GLOW_SCALE = 3.75; const BLACK = new THREE.Color( 'black' ); const U...
zhangkn/iOS14Header
System/Library/PrivateFrameworks/NeutrinoCore.framework/NUDataSet.h
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:45:07 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/NeutrinoCore.framework/NeutrinoCore * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 ...
loop-perception/AutowareArchitectureProposal.iv
perception/object_recognition/detection/lidar_apollo_instance_segmentation/lib/include/Utils.hpp
<gh_stars>10-100 /* * MIT License * * Copyright (c) 2018 lewes6369 * * 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 ...
roti/lut
library/src/main/scala/roti/lut/Record.scala
package roti.lut import roti.lut.annotation.fields import scala.language.experimental.macros import scala.reflect.ClassTag /** Base trait for a Record. * */ trait Record extends Equals { val data: Map[String, Any] override def canEqual(that: Any): Boolean = that.isInstanceOf[Record] || that.isInstanceOf[M...
MrDDaye/cna_cp1855
assignments/04_branching_programs/4-3_who_is_the_oldest/who_is_the_oldest.py
"""Determine the oldest age from three provided ages.""" def main() -> None: """Take three input ages and provide the oldest age.""" age_one: int = int(input('Enter 1st age: ')) age_two: int = int(input('Enter 2nd age: ')) age_three: int = int(input('Enter 3rd age: ')) ages: list[int] = [a...
takelifetime/competitive-programming
contests_atcoder/abc189/abc189_e_after.py
n = int(input()) points = [tuple(map(int, input().split())) for _ in range(n)] m = int(input()) ox = [(1, 0, 0)] oy = [(0, 1, 0)] for _ in range(m): o = tuple(map(int, input().split())) ax, bx, cx = ox[-1] ay, by, cy = oy[-1] if o[0] == 1: ox.append((ay, by, cy)) oy.append((-ax, -bx, -c...
acorg/acmacs-chart-2
cc/lispmds-token.hh
#pragma once #include <variant> #include <string> #include <vector> #include <stdexcept> #include <typeinfo> #include "acmacs-base/string.hh" #include "acmacs-base/fmt.hh" #include "acmacs-base/named-type.hh" // ---------------------------------------------------------------------- namespace acmacs::lispmds { c...
GrinCash/Grinc-core
depends/work/build/i686-w64-mingw32/qt/5.9.7-f2560c1efa6/qtbase/src/platformsupport/themes/qabstractfileiconengine.cpp
/**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the plugins of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ** Licensees holding valid commercial Qt...
ssichynskyi/ui_plus_api_web_testing
framework/base.py
<reponame>ssichynskyi/ui_plus_api_web_testing import logging class LoggingObject: def __init__(self, name=None): """Base class for all objects with logging Args: name: logger name. By convention: the name of the logger is the name of the object. Get it via __name__ and pro...
uk-gov-mirror/companieshouse.dissolution-api
src/main/java/uk/gov/companieshouse/exception/UnauthorisedException.java
<filename>src/main/java/uk/gov/companieshouse/exception/UnauthorisedException.java package uk.gov.companieshouse.exception; public class UnauthorisedException extends RuntimeException { public UnauthorisedException(String message) { super(message); } }
kevinzhwl/ObjectARXMod
2006/samples/database/ARXDBG/Reactors/ArxDbgUiTdcPersistentReactors.cpp
<gh_stars>1-10 // // (C) Copyright 1998-1999 by Autodesk, Inc. // // Permission to use, copy, modify, and distribute this software in // object code form for any purpose and without fee is hereby granted, // provided that the above copyright notice appears in all copies and // that both that copyright notice a...
kusumandaru/EBWiki
app/controllers/conversations_controller.rb
<gh_stars>10-100 # frozen_string_literal: true # Controller for conversations of EBWiki messages class ConversationsController < ApplicationController before_action :authenticate_user! def new @other_users = User.where.not(id: current_user.id).pluck(:name, :id) end def create recipients = User.where(...
ricardyn/ironpython-stubs
stubs.min/System/Windows/__init___parts/TemplatePartAttribute.py
<gh_stars>1-10 class TemplatePartAttribute(Attribute,_Attribute): """ Represents an attribute that is applied to the class definition to identify the types of the named parts that are used for templating. TemplatePartAttribute() """ def __init__(self,*args): """ x.__init__(...) initializes x; see x.__...
KevinScholtes/ANTsX
Temporary/itkFEMDiscConformalMap.cxx
<filename>Temporary/itkFEMDiscConformalMap.cxx /*========================================================================= Program: Insight Segmentation & Registration Toolkit Copyright (c) 2002 Insight Consortium. All rights reserved. See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for detailm_...
t-sagara/geonlp-software
libgeonlp/unit_test/test_rpcclient.cpp
<gh_stars>1-10 #include <iostream> #include "JsonRpcClient.h" int main(int argc, char* argv[]) { try { if (argc != 3 && argc != 4) { std::cout << "Usage: async_client <server> <path>\n"; std::cout << "Example:\n"; std::cout << " test_rpcclient localhost /index.html\n"; return 1; } ...
inblock-io/inblock
src/components/partners.js
import React from 'react' import Container from '../components/container' import styles from './partners.module.css' export default ({ partners }) => ( <div className={styles.partners}> <Container> <img className={styles.titleImg} src="/3d-cube.svg" alt=""/> <div className="d-block"> <h2 clas...
CEpBrowser/CEpBrowser--from-UCSC-CGI-BIN
hg/hgTracks/rnaPLFoldTrack.c
#include "common.h" #include "jksql.h" #include "hgTracks.h" #include "rnaPLFoldTrack.h" /* ------ BEGIN RNAplfold ------ */ /*******************************************************************/ #define RNAPLFOLD_DATA_SHADES 10 /* Declare our color gradients and the the number of colors in them */ Color plShadesPo...
Bestmer/CommonAnimations
Animations/RegexManager.h
// // RegexManager.h // Regex // // Created by YouXianMing on 2017/7/5. // Copyright © 2017年 TechCode. All rights reserved. // #import <Foundation/Foundation.h> @interface RegexManager : NSObject /** The source string. */ @property (nonatomic, strong) NSString *string; /** The regex pattern. */ @property (n...
BoyanPeychinov/js-applications
07-routing/lab/history-demo/app.js
console.log('it works!', date.now());
sistcoop-meanjsfiles/meanjs
modules/cooperativa/client/config/cooperativa.client.config.js
'use strict'; // Configuring the Chat module angular.module('cooperativa').run(['Menus', function (Menus) { // Set top bar menu items Menus.addMenuItem('topbar', { title: 'Cooperativa', state: 'cooperativa.app' }); } ]);
thiscouldbebetter/GameFrameworkTS
Source/Model/Combat/DamageType.js
"use strict"; var ThisCouldBeBetter; (function (ThisCouldBeBetter) { var GameFramework; (function (GameFramework) { class DamageType { constructor(name) { this.name = name; } static Instances() { if (DamageType._instances == null) { ...
squahtx/hal9000
plugins/base/__init__.py
from .iplugin import IPlugin from .plugin import Plugin from .terminalemulator import TerminalEmulator from .terminalemulatedprocess import TerminalEmulatedProcess from .cowsay import CowSay
jimmykarily/carrier
shim/restapi/carrier_shim_cf/organization_quota_definitions/update_organization_quota_definition.go
// Code generated by go-swagger; DO NOT EDIT. package organization_quota_definitions // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the generate command import ( "net/http" "github.com/go-openapi/runtime/middleware" ) // UpdateOrganizationQuotaDefinitionHa...
DuncanRuns/FeatureUtils
src/main/java/kaptainwutax/featureutils/decorator/ore/nether/QuartzOre.java
<reponame>DuncanRuns/FeatureUtils package kaptainwutax.featureutils.decorator.ore.nether; import kaptainwutax.biomeutils.biome.Biomes; import kaptainwutax.featureutils.decorator.ore.HeightProvider; import kaptainwutax.featureutils.decorator.ore.RegularOreDecorator; import kaptainwutax.mcutils.block.Blocks; import kapt...
konung/formular
test/element/bootstrap4_test.rb
require 'test_helper' require 'formular/builders/bootstrap4' require 'formular/element/bootstrap4' describe Formular::Element::Bootstrap4 do let(:builder) { Formular::Builders::Bootstrap4.new } let(:collection_array) { COLLECTION_ARRAY } describe Formular::Element::Bootstrap4::Input do it '#to_s with value'...
paige-ingram/nwhacks2022
node_modules/@fluentui/react-icons/lib/cjs/components/PeopleTeam20Filled.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const React = require("react"); const wrapIcon_1 = require("../utils/wrapIcon"); const rawSvg = (iconProps) => { const { className, primaryFill } = iconProps; return React.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 ...
nizamnijj/WorkingWithListview
SourceWriter/Documentation/html/search/namespaces_2.js
var searchData= [ ['sourcewriter',['SourceWriter',['../namespace_source_writer.html',1,'']]] ];
RevansChen/online-judge
Codewars/7kyu/is-sator-square/Python/solution1.py
# Python - 3.6.0 def is_sator_square(tablet): n = len(tablet) for r in range(n): for c in range(n): if not (tablet[r][c] == tablet[-(r + 1)][-(c + 1)] == tablet[c][r] == tablet[-(c + 1)][-(r + 1)]): return False return True
zcoderz/leetcode
src/main/java/hash_maps/FirstUniqueWithLinkedHashSet.java
<filename>src/main/java/hash_maps/FirstUniqueWithLinkedHashSet.java package hash_maps; import java.util.*; /** * 1429. First Unique Number * * You have a queue of integers, you need to retrieve the first unique integer in the queue. * * Implement the FirstUnique class: * * FirstUnique(int[] nums) Initializes t...
ShoukriKattan/ForgedUI-Eclipse
com.forgedui.core/src/com/forgedui/model/ContainerImpl.java
// LICENSE package com.forgedui.model; import java.util.ArrayList; import java.util.Collections; import java.util.List; import com.forgedui.model.titanium.TitaniumUIBaseElement; /** * @author Dmitry {<EMAIL>} * */ public class ContainerImpl extends ElementImpl implements Container{ private static...
danielhanchen/hiperlearn
hyperlearn/sparse/base.py
<reponame>danielhanchen/hiperlearn from numpy import uint8, uint16, uint32, uint64, float32, float64 from numpy import zeros, int8, int16, int32, int64, ndim from warnings import warn as Warn from numba import njit, prange def getDtype(p, size, uint = True): """ Computes the exact best possible data type for CSR ...
adinkwok/android_frameworks_support
webkit-codegen/src/test/java/androidx/webkit/internal/codegen/BoundaryInterfaceTest.java
<reponame>adinkwok/android_frameworks_support<filename>webkit-codegen/src/test/java/androidx/webkit/internal/codegen/BoundaryInterfaceTest.java /* * Copyright 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 wit...
fossas/m3
src/cluster/client/etcd/client_test.go
<gh_stars>1-10 // Copyright (c) 2016 Uber Technologies, Inc. // // 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, copy...
Hamiltonsjr/CursoJava
Ex20.java
//Leia um valor inteiro N. Este valor será a quantidade de valores inteiros X que serão lidos em seguida. //Mostre quantos destes valores X estão dentro do intervalo [10,20] e quantos estão fora do intervalo, mostrando //essas informações conforme exemplo (use a palavra "in" para dentro do intervalo, e "out" para fora ...
sacloud/open-service-broker-sacloud
util/random/random.go
<gh_stars>1-10 package random import ( "math/rand" "time" ) var r *rand.Rand const chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" func init() { r = rand.New(rand.NewSource(time.Now().UnixNano())) } // String generates random strings with specified length // Only letters in [a-zA-z] are used as s...
antonmedv/year
packages/1973/11/08/index.js
module.exports = new Date(1973, 10, 8)