repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
geometryzen/GeoCAS
build/module/lib/checks/isInteger.js
import isNumber from '../checks/isNumber'; export default function isInteger(x) { // % coerces its operand to numbers so a typeof test is required. // Not ethat ECMAScript 6 provides Number.isInteger(). return isNumber(x) && x % 1 === 0; }
metagomics/metagomics_root
pipeline-parts/metagomics-run-blast-and-jc-wrapper/metagomics-run-blast/src/org/uwpr/metagomics/run_blast/exceptions/RunBlastProgramAlreadyReportedErrorException.java
package org.uwpr.metagomics.run_blast.exceptions; public class RunBlastProgramAlreadyReportedErrorException extends Exception { public RunBlastProgramAlreadyReportedErrorException() { super(); // TODO Auto-generated constructor stub } public RunBlastProgramAlreadyReportedErrorException(String message, Throwab...
phetsims/sherpa
js/fontawesome-5/laughWinkRegularShape.js
// Copyright 2021, University of Colorado Boulder // Auto-generated by modulifyFontAwesomeIcons.js, please do not modify directly. import Shape from '../../../kite/js/Shape.js'; import laughWinkRegularString from './laughWinkRegularString.js'; export default new Shape( laughWinkRegularString );
jhunhwang/goldenretriever
app/api/upload_es_kb_service.py
<filename>app/api/upload_es_kb_service.py """ Version: -------- 0.1 11th May 2020 Usage: ------ Script to handle indexing of QnA datasets into Elasticsearch for downstream finetuning and serving - Connect and upload Documents to Elasticsearch CSV files should have the following columns: [ans_id, ans_str, context_str...
cxcruz/math-facts-play
app/models/Task.scala
package models case class Task(id: Long, label: String) object Task { def all(): List[Task] = Nil def create(label: String) {} def delete(id: Long) {} }
mad-dukes/DAVEtools
DAVE/src/gov/nasa/daveml/dave/BlockMath.java
<filename>DAVE/src/gov/nasa/daveml/dave/BlockMath.java // BlockMath // // Part of DAVE-ML utility suite, written by <NAME>, NASA LaRC // <<EMAIL>> // Visit <http://daveml.org> for more info. // Latest version can be downloaded from http://dscb.larc.nasa.gov/Products/SW/DAVEtools.html // Copyright (c) 2007 United S...
xiapeng612430/multi-thread
src/main/java/cyclicBarrier/cyclicBarrier_run1/MyService.java
package cyclicBarrier.cyclicBarrier_run1; import java.util.concurrent.BrokenBarrierException; import java.util.concurrent.CyclicBarrier; /** * Created by xianpeng.xia * on 2020/5/5 11:16 下午 */ public class MyService { private CyclicBarrier cyclicBarrier; public MyService(CyclicBarrier cyclicBarrier) { ...
sibasish-palo/emodb
queue-api/src/main/java/com/bazaarvoice/emodb/queue/api/MoveQueueStatus.java
<filename>queue-api/src/main/java/com/bazaarvoice/emodb/queue/api/MoveQueueStatus.java package com.bazaarvoice.emodb.queue.api; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; public class MoveQueueStatus { private final String _from; private final St...
binwen/sqldb
clause/on_conflict_test.go
package clause_test import ( "fmt" "testing" "github.com/binwen/sqldb/clause" ) func TestOnConflict(t *testing.T) { results := []struct { Clauses []clause.IClause Result string Vars []interface{} }{ { []clause.IClause{ clause.Insert{}, clause.Values{ Columns: []clause.Column{{Name: "...
timfel/netbeans
ide/libs.git/src/org/netbeans/libs/git/jgit/commands/PullCommand.java
<reponame>timfel/netbeans /* * 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....
sandboxws/awesome_explain
app/models/awesome_explain/sql_plan_tree.rb
class AwesomeExplain::SqlPlanTree attr_accessor :root, :ids, :plans_count, :seq_scan, :seq_scans, :startup_cost, :total_cost, :rows, :width, :actual_startup_time, :actual_total_time, :actual_rows, :actual_loops, :plan_stats alias :seq_scan? :seq_scan def initi...
PerfectDreams/MCPainter
MCPainter/src/main/java/org/primesoft/mcpainter/drawing/filters/ColorEx.java
<gh_stars>10-100 /* * The MIT License * * Copyright 2013 SBPrime. * * 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 u...
laipaang/Paddle
python/paddle/fluid/tests/unittests/dygraph_to_static/test_tensor_shape.py
<reponame>laipaang/Paddle<filename>python/paddle/fluid/tests/unittests/dygraph_to_static/test_tensor_shape.py # Copyright (c) 2020 PaddlePaddle Authors. 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...
thomasbarillot/DAQ
TOF/TOFAcqDigitizer.py
<filename>TOF/TOFAcqDigitizer.py import scipy.io as sio import math import pyqtgraph as pg from pyqtgraph.Qt import QtCore, QtGui import numpy as np from matplotlib import pyplot as plt from datetime import datetime from PI_E750_CP_piezostageFunction import PI_E750_CP_piezostageFunction as dstage import tim...
kdsuneraavinash/neomerce
routes/checkout.js
<reponame>kdsuneraavinash/neomerce const router = require('express').Router(); const Cart = require('../models/cart'); const Order = require('../models/order'); router.get('/', async (req, res) => { const dataObj = Order.getOrderDetails(req); /* After order confirmation user redirect back to check out and try...
XilongPei/openparts
Openparts-framework/src/main/java/com/openparts/utils/elasticsearch/ElasticsearchClient.java
package com.openparts.utils.elasticsearch; import org.elasticsearch.client.RestHighLevelClient; import org.elasticsearch.client.RestClient; import org.apache.http.HttpHost; /* * Java REST Client [6.1] » Java High Level REST Client » Supported APIs * https://www.elastic.co/guide/en/elasticsearch/client/java-rest/cur...
yuvalbdgit/TEST
internal/api/action_request_manager_test.go
/* * Copyright (c) 2019 the Octant contributors. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ package api_test import ( "context" "testing" "github.com/golang/mock/gomock" "github.com/stretchr/testify/require" configFake "github.com/vmware-tanzu/octant/internal/config/fake" "github.com/vm...
MastodonC/cassandra-mesos
cassandra-mesos-scheduler/src/main/java/io/mesosphere/mesos/frameworks/cassandra/scheduler/api/ClusterRepairController.java
package io.mesosphere.mesos.frameworks.cassandra.scheduler.api; import com.fasterxml.jackson.core.JsonFactory; import io.mesosphere.mesos.frameworks.cassandra.CassandraFrameworkProtos; import io.mesosphere.mesos.frameworks.cassandra.scheduler.CassandraCluster; import io.mesosphere.mesos.frameworks.cassandra.scheduler....
intel/pse-fw
services/fw_version/fw_version.c
<filename>services/fw_version/fw_version.c<gh_stars>0 /* * Copyright (c) 2021 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr.h> #include <init.h> #include <fw_version.h> void __weak fwver_user_print(void) { } static int fwver_print(const struct device *arg) { ARG_UNUSED(arg); p...
gorkem0606/moderasyon-botlari
Moderator 13/commands/unmute.js
<gh_stars>10-100 const db = require('quick.db'); const Discord = require('discord.js'); module.exports = { name: 'unmute', run: async(client, message, args) => { let embed = new Discord.MessageEmbed().setAuthor(message.member.displayName, message.author.avatarURL({ dynamic: true })).setTimestamp().setT...
DuCalixte/fake_library_dash
library-api/db/migrate/20200615060658_create_books.rb
class CreateBooks < ActiveRecord::Migration[6.0] def change create_table :books, id: :uuid do |t| t.string :title t.string :isbn t.string :description t.integer :quantity t.timestamps end end end
plyfe/conductor.js
test/fixtures/load_css_card.js
Conductor.requireCSS("load_css.css"); Conductor.card({ activate: function() { var lastCSSSheet = document.styleSheets[document.styleSheets.length-1]; // Test that the CSS has finished loading if (lastCSSSheet.cssRules) { ok(lastCSSSheet.cssRules[0].style.backgroundColor === "red", "background was s...
huntc/akka
akka-parsing/src/main/scala/akka/parboiled2/ParseError.scala
/* * Copyright (C) 2009-2013 <NAME>, <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
Ashwanigupta9125/code-DS-ALGO
225-Days Coding Problem/Day-014.cpp
<gh_stars>10-100 /* * This problem was asked by Google. The area of a circle is defined as πr^2. Estimate π to 3 decimal places using a Monte Carlo method. Hint: The basic equation of a circle is x2 + y2 = r2. */ /* * Monte Carlo is Randomized Algorithms. * Idea is to get PI from Probability. * *...
junktionfet/alloy
libEs6/components/Identity/getIdentity/getIdentityOptionsValidator.js
/* Copyright 2020 Adobe. All rights reserved. This file is licensed to you 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 agre...
m3Lith/site
src/components/pages/doc/DocsWrapper.js
import React from 'react' import ReactDOM from 'react-dom' import styled from 'styled-components' import { navigateTo } from 'gatsby-link' import { Column } from 'serverless-design-system' import LinkCatcher from './LinkCatcher' import redHighlighter from 'src/assets/images/red-highlighter.png' const Wrapper = styled...
stefanzilske/camunda-bpm-data
example/spin-type-detector/src/main/java/io/holunda/camunda/bpm/data/spin/SpinTypeDetectorConfigurator.java
package io.holunda.camunda.bpm.data.spin; import org.camunda.spin.impl.json.jackson.format.JacksonJsonDataFormat; import org.camunda.spin.spi.DataFormatConfigurator; /** * Spin configurator referenced in META-INF/services/org.camunda.spin.spi.DataFormatConfigurator. * Configures the {@link ErasedCollectionTypeDetec...
xomachine/gabedit
src/Utils/Utils.h
/********************************************************************************************************** Copyright (c) 2002-2013 <NAME>. All rights reserved Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Gabedit), to deal in the ...
dmj/jing-trang
mod/schematron/src/main/com/thaiopensource/validate/schematron/NewSaxonSchemaReaderFactory.java
package com.thaiopensource.validate.schematron; import net.sf.saxon.lib.FeatureKeys; import net.sf.saxon.TransformerFactoryImpl; import javax.xml.transform.TransformerFactory; import javax.xml.transform.sax.SAXTransformerFactory; public class NewSaxonSchemaReaderFactory extends SchematronSchemaReaderFactory { publ...
a13m/wsdl2c
src/org/codehaus/jam/visitor/JVisitor.java
/* Copyright 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 requ...
zwxbest/Demo
demo/src/main/java/com/tuowazi/demo/nio/src/main/java/buffer/NioWrap.java
package com.tuowazi.demo.nio.src.main.java.buffer; import java.nio.CharBuffer; /** * Created by zwxbest on 2018/7/17. */ public class NioWrap { public static void main(String[] args) { CharBuffer charBuffer=CharBuffer.wrap(new char[]{'l','e','t','g','o'}); System.out.println(charBuffer.position...
iStig/iMeasure
Schneider.iPad/Schneider/iMeasure/MonitorValueCell.h
<filename>Schneider.iPad/Schneider/iMeasure/MonitorValueCell.h // // MonitorValueCell.h // Schneider // // Created by GongXuehan on 13-5-29. // Copyright (c) 2013年 xhgong. All rights reserved. // #import <UIKit/UIKit.h> @interface MonitorValueCell : UITableViewCell @end
realityforge/galdr
processor/src/test/fixtures/subsystem/input/com/example/world_ref/WorldRefInterface.java
package com.example.world_ref; import galdr.World; import galdr.annotations.WorldRef; public interface WorldRefInterface { @WorldRef World world(); }
geoffroyw/packing-list
app/models/item.rb
<filename>app/models/item.rb class Item < ApplicationRecord has_many :documents, foreign_key: 'item_id', class_name: "ItemDocument" has_many :package_items has_many :packages, through: :package_items validates_presence_of :name validates_numericality_of :quantity, :only_integer => true, :greater_than_or_equ...
ronsaldo/loden
core/GUI/FontManager.cpp
#include "Loden/GUI/FontManager.hpp" #include "Loden/JSON.hpp" #include "Loden/FileSystem.hpp" #include "FreeTypeFont.hpp" #include "LodenFont.hpp" namespace Loden { namespace GUI { FontManager::FontManager(Engine *engine) : engine(engine) { } FontManager::~FontManager() { } bool FontManager::initialize() { ...
goodmind/FlowDefinitelyTyped
flow-types/types/gapi.client.datastore_vx.x.x/flow_v0.25.x-/gapi.client.datastore.js
declare module "gapi.client.datastore" { declare var npm$namespace$gapi: { client: typeof npm$namespace$gapi$client }; declare var npm$namespace$gapi$client: { load: typeof gapi$client$load, projects: typeof gapi$client$projects }; /** * Load Google Cloud Datastore API v1 */ declare func...
madhuri7112/Singularity
SingularityService/src/main/java/com/hubspot/singularity/data/history/SingularityTaskHistoryPersister.java
<gh_stars>0 package com.hubspot.singularity.data.history; import java.util.Collection; import java.util.List; import java.util.Map; import java.util.Set; import java.util.concurrent.TimeUnit; import java.util.concurrent.locks.ReentrantLock; import javax.inject.Singleton; import org.slf4j.Logger; import org.slf4j.Log...
alexanderpetrenko/job4j
chapter_002/src/main/java/ru/job4j/tracker/MenuTracker.java
<gh_stars>0 package ru.job4j.tracker; import java.util.HashMap; import java.util.List; import java.util.Map; /** * The {@code MenuTracker} realizes the executing of user's operations. * * @author <NAME> (<EMAIL>) * @version 1.0 * @since 1.0 */ public class MenuTracker { /** * This field stores an Input...
SebastianBoe/fw-nrfconnect-zephyr
drivers/timer/native_posix_timer.c
<reponame>SebastianBoe/fw-nrfconnect-zephyr<filename>drivers/timer/native_posix_timer.c /* * Copyright (c) 2017 <NAME> * * SPDX-License-Identifier: Apache-2.0 */ /** * Driver for the timer model of the POSIX native_posix board * It provides the interfaces required by the kernel and the sanity testcases * It als...
DarrenPaulWright/hafgufa
src/graphs/GraphBase.js
import { defer } from 'async-agent'; import { forOwn } from 'object-agent'; import { DockPoint, Enum, isObject, methodArray, methodElement, methodQueue, methodString, methodThickness, PIXELS, Thickness } from 'type-enforcer-ui'; import Control from '../Control.js'; import Tooltip from '../layout/Tooltip.js'; ...
cschladetsch/ChessClock
ChessClock/Source/SceneSplash.cpp
#include "ChessClock/SceneSplash.hpp" namespace ChessClock { bool SplashScene::Setup(Context& ctx) { //if (!ReadJson(_jsonConfig.c_str())) // return false; //ctx.MyValues = std::make_shared<MyValues>(); //LoadResources(ctx.Resources, ctx.TheRenderer, *ctx.MyValues)...
tfoxy/futbol-app
src/app/data/seasonData.factory.js
<reponame>tfoxy/futbol-app<filename>src/app/data/seasonData.factory.js export default seasonDataFactory; function seasonDataFactory(DS) { 'ngInject'; return DS.defineResource({ name: 'seasonData', relations: { hasOne: { season: { localField: 'season', localKey: 'id' ...
Zoltan45/Mame-mkp119
src/mame/drivers/coinmstr.c
/* Coinmaster trivia games preliminary driver by <NAME> TODO: - finish video emulation (colors, missing banking bits) - where is palette ? - finish inputs - finish question roms reading - hook up all the PIAs Notes: - Some trivia seems to accept 2 type of eproms for question roms: 0x4000 or ...
geovas01/cup2
docs/res/LRParserSerializer.java
<gh_stars>0 package edu.tum.cup2.io; import edu.tum.cup2.generator.LR1Generator; import edu.tum.cup2.generator.exceptions.GeneratorException; import edu.tum.cup2.parser.LRParser; import edu.tum.cup2.spec.CUPSpecification; /** * LRParserSerializer generates a parser for a given CUPSpecification and * serial...
b93de3d/mantine-fork
src/mantine-demos/esm/demos/modals/multipleSteps.js
import React from 'react'; import { Group, Button, Text } from '@mantine/core'; import { useModals } from '@mantine/modals'; const code = ` import { Button, Text } from '@mantine/core'; import { useModals } from '@mantine/modals'; function Demo() { const modals = useModals(); const openMultiStepModal = () => ...
super468/leetcode
java/src/PalindromePartitioning.java
<filename>java/src/PalindromePartitioning.java<gh_stars>0 import java.util.ArrayList; import java.util.List; /** * Creator : wts * Date : 7/2/18 * Title : 131. Palindrome Partitioning * Description : * Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible ...
thinkerou/blb
internal/testblb/test_pack_failure.go
// Copyright (c) 2017 Western Digital Corporation or its affiliates. All rights reserved. // SPDX-License-Identifier: MIT package testblb import ( "fmt" "github.com/westerndigitalcorporation/blb/internal/core" ) // TestPackFailure tests that PackTracts fails if sources are corrupted. func (tc *TestCase) TestPackF...
libogonek/ogonek
include/ogonek/error/replace_errors.h++
// Ogonek // // Written in 2012-2013 by <NAME> <<EMAIL>> // // To the extent possible under law, the author(s) have dedicated all copyright and related // and neighboring rights to this software to the public domain worldwide. This software is // distributed without any warranty. // // You should have received a copy o...
Wolfmarsh/mpf
mpf/tests/test_StepStick.py
import asyncio from mpf.tests.MpfTestCase import MpfTestCase, MagicMock, patch class TestStepStick(MpfTestCase): def get_config_file(self): return 'config.yaml' def get_machine_path(self): return 'tests/machine_files/step_stick/' def get_platform(self): # no force platform. we ...
Jgorsick/Advocacy_Angular
openstates/openstates-master/openstates/de/__init__.py
import lxml.html from billy.scrape.utils import url_xpath from .bills import DEBillScraper from .legislators import DELegislatorScraper from .committees import DECommitteeScraper from .events import DEEventScraper import logging logging.basicConfig(level=logging.DEBUG) metadata = { 'name': 'Delaware', 'abbrevi...
jaslou/flink-project
user-behavior-analysis/src/main/java/com/jaslou/logAnalysis/domain/LogViewCount.java
<filename>user-behavior-analysis/src/main/java/com/jaslou/logAnalysis/domain/LogViewCount.java package com.jaslou.logAnalysis.domain; public class LogViewCount { public String accessURL; public long windowEnd; public long viewCount; public LogViewCount(String accessURL, long windowEnd, long viewCount)...
gabrielferreiraa/showmethecode-web
src/components/Button/index.js
import React from "react" import styled from "styled-components" import { darken } from "polished" import PropTypes from "prop-types" import global from "config/global" const StyledButton = styled.button` background-color: ${global.colors.primaryColor}; border-radius: ${global.layout.borderRadius}; color: #fff;...
DanielLaborda/proyecto
src/components/pages/users.js
<reponame>DanielLaborda/proyecto import React, { Component } from "react"; import Register from "../users/register"; import Login from "../users/login"; class Users extends Component { constructor(props) { super(props); this.state = { show: "Login" }; this.showLogin = t...
tinours/PCSim2
src/gov/nist/javax/sip/header/ProxyAuthorizationList.java
<reponame>tinours/PCSim2 /******************************************************************************* * Product of NIST/ITL Advanced Networking Technologies Division (ANTD). * *******************************************************************************/ package gov.nist.javax.sip.header; import javax.sip...
Bloombox/Java
src/main/java/io/bloombox/schema/telemetry/stats/SessionTelemetry.java
/* * Copyright 2019, Momentum Ideas, Co. All rights reserved. * * Source and object computer code contained herein is the private intellectual * property of Momentum Ideas Co., a Delaware Corporation. Use of this * code in source form requires permission in writing before use or the * assembly, distribution, or p...
ryanmdoyle/class-karma
web/src/components/GridView/GridView.js
import GroupGridCell from 'src/components/cells/GroupGridCell/GroupGridCell' const GridView = ({ groupId }) => { return <GroupGridCell id={groupId} /> } export default GridView
Sammyuel/VisChess
node_modules/heroku-cli-status/node_modules/cli-engine-command/lib/parser.js
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.RequiredFlagError = undefined; require('./arg'); require('./flags'); class Parse { constructor(input) { this.input = input; input.args = input.args || []; input.flags = input.flags || {}; } async parse(output =...
Searchlight2/Searchlight2
software/misc/get_all_samples.py
<filename>software/misc/get_all_samples.py def get_all_samples(global_variables): samples_by_sample_groups = global_variables["samples_by_sample_groups"] order_list = global_variables["order_list"] all_samples = [] for key, value in samples_by_sample_groups.iteritems(): if key in order_list: ...
harsha-simhadri/sbsched
src/HR1Scheduler.hh
<reponame>harsha-simhadri/sbsched // This code is part of the project "Experimental Analysis of Space-Bounded // Schedulers", presented at Symposium on Parallelism in Algorithms and // Architectures, 2014. // Copyright (c) 2014 <NAME>, <NAME>, <NAME>, // <NAME>, <NAME>. // // Permission is hereby granted, free of charg...
faisal-bhatti/pos-retail
config/initializers/app_config.rb
<filename>config/initializers/app_config.rb require 'yaml' YAML::ENGINE.yamler = 'syck' ActionController::Renderers.add :csv do |csv,options| csv = csv.respond_to?(:to_csv) ? csv.to_csv : csv self.content_type ||= Mime::CSV self.response_body = csv end class Array def to_csv(options = Hash.new) out = sel...
Yobin123/POCCms
app/src/main/java/com/st/cms/fragment/SignsBrokenLineFragment.java
package com.st.cms.fragment; import android.os.Bundle; import android.support.annotation.Nullable; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.st.cms.activity.TreatmentMainActivity; import com.st.cms.entity.Prioritise; import com.st....
zshnb/qiangdongserver
src/main/java/com/qiangdong/reader/common/NovelConstant.java
<gh_stars>1-10 package com.qiangdong.reader.common; public class NovelConstant { public static Integer COIN_TO_TICKET_THRESHOLD = 10000; public static String KEY_TOP_SUBSCRIBE_NOVEL = "novel-top-subscribe"; public static String KEY_TOP_RECOMMEND_NOVEL = "novel-top-recommend"; public static String KEY_T...
alassetter/qui
stories/components/QTag.stories.js
<gh_stars>100-1000 import QTag from '../../src/qComponents/QTag'; export default { title: 'Components/QTag', component: QTag }; export const QTagStory = (_, { argTypes }) => ({ props: Object.keys(argTypes), data() { return { tags: ['Tag 1', 'Tag 2', 'Tag 3', 'Tag 4', 'Tag 5'] }; }, methods: ...
nitinbarai777/dateprog
db/migrate/20150818201010_add_level_type_to_course_level.rb
class AddLevelTypeToCourseLevel < ActiveRecord::Migration def change add_column :course_levels, :level_type, :integer, default: 0 end end
PascalGuenther/gecko_sdk
protocol/z-wave/Components/Utils/SizeOf.h
<gh_stars>10-100 /** * @file * @brief Header file containing various 'sizeof' macros * @copyright 2019 Silicon Laboratories Inc. */ #ifndef _SIZEOF_H_ #define _SIZEOF_H_ /** * Macro returns the number of ELEMENTS an array can hold. * Purpose of macro is increased readability in source code. */ #define sizeof_arra...
78182648/blibli-go
app/service/main/push/service/setting.go
<filename>app/service/main/push/service/setting.go package service import ( "context" "go-common/app/service/main/push/dao" "go-common/app/service/main/push/model" "go-common/library/log" ) // Setting gets user notify setting. func (s *Service) Setting(c context.Context, mid int64) (st map[int]int, err error) { ...
unboxed/bops
spec/system/planning_applications/validation_banner_display_spec.rb
# frozen_string_literal: true RSpec.describe "Validation banners", type: :system do context "Validation request banners are displayed correctly when open request is overdue" do let!(:assessor) { create :user, :assessor, local_authority: @default_local_authority } let!(:planning_application) { create :planni...
katemihalikova/test262
test/intl402/RelativeTimeFormat/prototype/formatToParts/value-symbol.js
// Copyright 2018 Igalia, S.L. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-Intl.RelativeTimeFormat.prototype.formatToParts description: Checks the handling of invalid value arguments to Intl.RelativeTimeFormat.prototype.formatToParts(). info: | Intl.R...
shihab4t/Competitive-Programming
Online-Judges/CodeForces/800/34A.Reconnaissance_2.cpp
<reponame>shihab4t/Competitive-Programming #include <bits/stdc++.h> using namespace std; typedef long long int lli; typedef long double ld; #define endn "\n" #define faststdio ios_base::sync_with_stdio(false); #define fastcincout cin.tie(NULL); cout.tie(NULL); #define fastio faststdio fastcincout // Solve void test(vo...
theapache64/RetroKit
app/src/main/java/com/theah64/retrokitexample/model/data/GetUserProfileData.java
<reponame>theapache64/RetroKit<filename>app/src/main/java/com/theah64/retrokitexample/model/data/GetUserProfileData.java package com.theah64.retrokitexample.model.data; import com.google.gson.annotations.SerializedName; import com.theah64.retrokitexample.model.User; /** * Created by theapache64 on 25/8/17. */ publ...
shreyasvj25/turicreate
deps/src/boost_1_65_1/boost/python/detail/map_entry.hpp
<gh_stars>1000+ // Copyright <NAME> 2002. // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef MAP_ENTRY_DWA2002118_HPP # define MAP_ENTRY_DWA2002118_HPP namespace boost { namespace python { namespace detail ...
George-Freedland/bookstore-app
application/backend/migrations/20200315211524-create-product.js
<reponame>George-Freedland/bookstore-app 'use strict'; module.exports = { up: (queryInterface, Sequelize) => { return queryInterface.createTable('Products', { id: { allowNull: false, autoIncrement: true, primaryKey: true, type: Sequelize.INTEGER, }, photo: { ...
TheFleksisCekcu/LiquidBounce-b62-deobfed
jdk/nashorn/internal/codegen/types/IntType.java
// // Decompiled by Procyon v0.5.36 // package jdk.nashorn.internal.codegen.types; import jdk.nashorn.internal.runtime.JSType; import jdk.internal.org.objectweb.asm.MethodVisitor; import jdk.nashorn.internal.codegen.CompilerConstants; class IntType extends BitwiseType { private static final long serialVersionU...
NYULibraries/getit
app/controllers/application_controller.rb
class ApplicationController < ActionController::Base protect_from_forgery helper :institutions include InstitutionsHelper # Override rails url_for to add institution parameter # This has to be defined in the controller so that controller logic # in Umlaut sees the override functionality. # # Ex. # =...
TimCook1/trident
storage_drivers/ontap/api/rest/models/account.go
// Code generated by go-swagger; DO NOT EDIT. package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "encoding/json" "strconv" "github.com/go-openapi/errors" "github.com/go-openapi/strfmt" "github.c...
pabru/libgdx
extensions/gdx-bullet/jni/swig-src/collision/com/badlogic/gdx/physics/bullet/collision/btSphereBoxCollisionAlgorithm.java
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.11 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * -----------------------------...
davideschiavone/pulpissimo
boot_code/include/archi/pwm/v1/pwm_v1_structs.h
<filename>boot_code/include/archi/pwm/v1/pwm_v1_structs.h /* THIS FILE HAS BEEN GENERATED, DO NOT MODIFY IT. */ /* * Copyright (C) 2018 ETH Zurich, University of Bologna * and GreenWaves Technologies * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compli...
kabootit/data-sutra
_ds_AC_access_control/datasources/sutra/sutra_access_user_calculations.js
/** * * @properties={type:12,typeid:36,uuid:"05610bdd-f149-4594-8623-9abb600f840c"} */ function display_login_expiration() { var html = '<html><head>' //css html += '<style type="text/css" media="screen"><!--' html += '.red { color: red; font-weight: bold; }' html += '.blue { color: blue; font-weight: bold; }' ht...
blueswhisper/athena
athena-core/src/main/java/me/ele/jarch/athena/allinone/AllInOneMonitor.java
<reponame>blueswhisper/athena package me.ele.jarch.athena.allinone; import me.ele.jarch.athena.DecryptorSpi; import me.ele.jarch.athena.constant.Constants; import me.ele.jarch.athena.scheduler.DBChannelDispatcher; import me.ele.jarch.athena.server.pool.ServerSessionPool; import me.ele.jarch.athena.sql.seqs.SeqsCache; ...
Pennsieve/upload-service
src/main/scala/com/blackfynn/upload/UploadPorts.scala
// Copyright (c) 2018 Blackfynn, Inc. All Rights Reserved. package com.blackfynn.upload import akka.http.scaladsl.model.{ HttpRequest, HttpResponse } import akka.stream.alpakka.s3.impl.MultipartUpload import akka.stream.scaladsl.Source import cats.data.NonEmptyList import com.amazonaws.services.s3.model.PartListing i...
manifoldco/heighliner
apis/v1alpha1/doc.go
<reponame>manifoldco/heighliner // +k8s:deepcopy-gen=package // Package v1alpha1 contains data types for Heighliner components v1alpha1. package v1alpha1
blackjyn/flex-sdk
modules/thirdparty/batik/sources/org/apache/flex/forks/batik/anim/values/AnimatableValue.java
<filename>modules/thirdparty/batik/sources/org/apache/flex/forks/batik/anim/values/AnimatableValue.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...
koraygulcu/bitmovin-python
bitmovin/resources/models/encodings/__init__.py
from .muxings import Muxing, FMP4Muxing, MP4Muxing, TSMuxing, WebMMuxing, ProgressiveTSMuxing, MuxingStream, \ ByteRange, MuxingInformationAudioTrack, MuxingInformationVideoTrack, ProgressiveTSInformation, \ MP4MuxingInformation, ProgressiveMOVMuxing, TimeCode from .muxings.broadcast_ts import BroadcastTsMuxing...
dalexa10/puma
gui/src/MaterialProperties/thermalcond.h
#ifndef THERMALCOND_H #define THERMALCOND_H #include <QDialog> #include <QDebug> #include <QTextEdit> #include "../src/Utilities/q_debugstream.h" #include "puma.h" #include <QThread> #include <QProcess> #include <QTextBrowser> #include "../src/Utilities/viewer.h" namespace Ui { class ThermalCond; } class Thermal...
SilverPineSoftware/UUAndroid
UUAndroid/src/main/java/uu/toolbox/bluetooth/UUClassicBluetoothScanner.java
<gh_stars>0 package uu.toolbox.bluetooth; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import androidx.annotation.NonNull; import android...
nbur4556/issue_reporter
controllers/index.js
module.exports = { issueController: require('./issueController.js'), projectController: require('./projectController.js'), userController: require('./userController.js') }
peynman/press-vue-core
src/crud/Page/Api/create.js
import { getCreateFormBindings, getFormValidationsAlert, getFormSubmitAction } from '../../../utils/crudForm' import SchemaCrud from '../../PageSchema' import { crudLoaderFunction } from '../../../mixins/CrudTable' import ExtraJsonTypes from '../extraJsonTypes' import { imageUploadProperty } from '../../../utils/schema...
LehighRacing/gollum
testing/integration/pipelines_test.go
// +build integration package integration import ( "testing" "time" "github.com/trivago/tgo/ttesting" ) const ( testPipelineDistributeConfig = "test_pipeline_distribute.conf" testPipelineJoinConfig = "test_pipeline_join.conf" testPipelineDropConfig = "test_pipeline_drop.conf" testPipelineWildcard...
mcodegeeks/OpenKODE-Framework
07_Project/MonsterBattleCasino/Source/Unit/UI/MobCasinoStatus.cpp
/* ----------------------------------------------------------------------------------- * * File MobCasinoStatus.cpp * Ported By <NAME> * Contact <EMAIL> * * ----------------------------------------------------------------------------------- * * Copyright (c) 201...
peterahrens/FillEstimationIPDPS2017
oski-1.0.1h/include/oski/GCSR/format.h
/** * \defgroup MATTYPE_GCSR Generalized Compressed Sparse Row (GCSR) Format * \ingroup MATTYPES * * Generalized compressed sparse row (GCSR) format augments the * traditional CSR with an optional list of row indices, allowing * entire rows to be sparse. However, unlike the OSKI CSR * implementation, only ...
WangZhuo2000/libecc
src/utils/print_keys.c
/* * Copyright (C) 2017 - This file is part of libecc project * * Authors: * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * Contributors: * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * This software is licensed under a dual BSD and GPL v2 license. * See LICENSE file at ...
broadinstitute/str-analysis
str_analysis/utils/strling_info_for_locus.py
def parse_strling_info_for_locus(strling_genotype_df, locus_chrom, locus_start, locus_end, margin=700): """Extract info related to a specific locus from the STRling genotype table. See https://strling.readthedocs.io/en/latest/outputs.html for more details. Args: strling_genotype_df (pd.DataFrame)...
tan9/spring-security
acl/src/main/java/org/springframework/security/acls/domain/EhCacheBasedAclCache.java
<reponame>tan9/spring-security /* * Copyright 2004, 2005, 2006 Acegi Technology Pty Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LIC...
pSCANNER/SCANNER
network/services/registry/src/main/java/edu/isi/misd/scanner/network/registry/data/service/RegistryServiceImpl.java
/* * Copyright 2013 University of Southern California * * 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...
blueboxd/chromium-legacy
content/browser/renderer_host/render_widget_host_view_android.cc
<reponame>blueboxd/chromium-legacy // 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/browser/renderer_host/render_widget_host_view_android.h" #include <android/bitmap.h> #include <...
Jkoala/re
src/main/java/cn/ljtnono/re/service/impl/ReBlogTypeServiceImpl.java
package cn.ljtnono.re.service.impl; import cn.ljtnono.re.entity.ReBlog; import cn.ljtnono.re.entity.ReBlogType; import cn.ljtnono.re.enumeration.GlobalErrorEnum; import cn.ljtnono.re.enumeration.ReEntityRedisKeyEnum; import cn.ljtnono.re.exception.GlobalToJsonException; import cn.ljtnono.re.mapper.ReBlogTypeMapper; im...
ralfhergert/mtg-deck-runner
src/main/java/de/ralfhergert/mtg/model/Step.java
package de.ralfhergert.mtg.model; public enum Step { UNTAP(Phase.BEGINNING), UPKEEP(Phase.BEGINNING), DRAW(Phase.BEGINNING), BEGINNING_OF_COMBAT(Phase.COMBAT), DECLARE_ATTACKERS(Phase.COMBAT), DECLARE_BLOCKERS(Phase.COMBAT), COMBAT_DAMAGE(Phase.COMBAT), END_OF_COMBAT(Phase.COMBAT), ...
BehrRiley/Denizen-1
v1_13/src/main/java/com/denizenscript/denizen/nms/v1_13/impl/ImprovedOfflinePlayerImpl.java
<reponame>BehrRiley/Denizen-1 package com.denizenscript.denizen.nms.v1_13.impl; import com.denizenscript.denizen.nms.abstracts.ImprovedOfflinePlayer; import com.denizenscript.denizen.nms.v1_13.impl.jnbt.CompoundTagImpl; import com.denizenscript.denizencore.utilities.debugging.Debug; import net.minecraft.server.v1...
intel/stacks-api
src/onecontainer_api/routers/tests/test_ai.py
# SPDX-License-Identifier: BSD-3-Clause # Copyright (c) 2020 Intel Corporation import os from fastapi.testclient import TestClient from onecontainer_api import models, schemas, config, startup_svc from onecontainer_api.frontend import app class TestAI(): def setup_method(self): models.Base.metadata.cre...
Maxython/pacman-for-termux
pacman-termux/test/pacman/tests/ignore008.py
<gh_stars>10-100 self.description = "Sync with relevant ignored fnmatched packages" package1 = pmpkg("foopkg", "1.0-1") self.addpkg2db("local", package1) package2 = pmpkg("barpkg", "2.0-1") self.addpkg2db("local", package2) package3 = pmpkg("bazpkg", "3.0-1") self.addpkg2db("local", package3) package1up = pmpkg("f...