repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
narendravyas24/fallback-studio | src/pwa-studio/packages/venia-concept/src/components/SearchBar/suggestedCategories.js | <reponame>narendravyas24/fallback-studio
import React, { useCallback } from 'react';
import { arrayOf, func, number, shape, string } from 'prop-types';
import { Link } from '@magento/venia-drivers';
import { mergeClasses } from '../../classify';
import getLocation from './getLocation';
import defaultClasses from './su... |
Katochimoto/calendar-grid | src/vendor.js | import _preact from 'preact'
import _preact_compat from 'preact-compat'
import _classnames from 'classnames'
import _raf from 'raf'
import _setimmediate2 from 'setimmediate2'
import _prop_types from 'prop-types'
import 'es6-symbol/implement'
import './vendor.less'
_raf.polyfill()
_setimmediate2.polifill()
export de... |
intern0t/leetcode | MedianofTwoSortedArrays.java | <reponame>intern0t/leetcode
// https://leetcode.com/problems/median-of-two-sorted-arrays/
public class MedianofTwoSortedArrays {
public static void main(String[] args) {
int testCases[][] = { { 1, 3 }, { 2 }, { 1, 2 }, { 3, 4 } };
for (int i = 0; i < testCases.length; i += 2) {
// Syst... |
PucklaMotzer09/GoHomeEngine | src/gohome/shadermodulesbackbufferopengl.go | <filename>src/gohome/shadermodulesbackbufferopengl.go
package gohome
import (
"github.com/PucklaMotzer09/GLSLGenerator"
"strings"
)
var (
GlobalsBBMS = []glslgen.Variable{
glslgen.Variable{"vec2", "highp", "vertices[6]"},
glslgen.Variable{"vec2", "highp", "texCoords[6]"},
}
SetValuesModuleBBMS = glslgen.Mod... |
egovernments/iFix-Dev | domain-services/ifix-master-data-service/src/main/java/org/egov/repository/ExpenditureRepository.java | <reponame>egovernments/iFix-Dev
package org.egov.repository;
import org.egov.repository.queryBuilder.ExpenditureQueryBuilder;
import org.egov.web.models.Expenditure;
import org.egov.web.models.ExpenditureSearchCriteria;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mong... |
l33j00n325/myfifa-api | spec/models/fixture_leg_spec.rb | <reponame>l33j00n325/myfifa-api
# frozen_string_literal: true
# == Schema Information
#
# Table name: fixture_legs
#
# id :bigint not null, primary key
# away_score :string
# home_score :string
# created_at :datetime not null
# updated_at :datetime not null
# fixture_id :bigint
... |
patriotemeritus/LO-PHI | python-lophi/lophi/sensors/memory/__init__.py | <reponame>patriotemeritus/LO-PHI
"""
Abstract class for interacting with our memory sensors
(c) 2015 Massachusetts Institute of Technology
"""
# Native
import time
import logging
logger = logging.getLogger(__name__)
# LO-PHI
from lophi.sensors import Sensor
CACHE_CHUNK = 7680 # 7680 is the max
class Memor... |
djg4554/NyaaMailer | src/main/java/cat/nyaa/mailer/inbox/listeners/Load.java | package cat.nyaa.mailer.inbox.listeners;
import cat.nyaa.mailer.NyaaMailer;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;
public class Load implements Listener {
private final NyaaMailer plugin;
public Load(NyaaMailer plugi... |
Planning-Inspectorate/appeal-planning-decision | packages/lpa-questionnaire-web-app/__tests__/unit/validators/custom/file-size.test.js | const validateFileSize = require('../../../../src/validators/custom/file-size');
describe('validators/custom/file-size', () => {
it('should be valid when given a smaller file size than the configured maximum', () => {
expect(validateFileSize(1024, 2048)).toBeTruthy();
});
it('should be valid when given a fi... |
saikrishna2409/My-First-Repo | CollectionActivity/src/javaapp/daoimpl/EmployDAOImpl.java | package javaapp.daoimpl;
import java.util.ArrayList;
import java.util.List;
import javaapp.bean.Employ;
import javaapp.bean.dao.EmployDAO;
public class EmployDAOImpl implements EmployDAO{
static ArrayList<Employ> list =null;
static {
list = new ArrayList<Employ>();
Employ emp1 = new Employ(101, "Abin", "Hydrabad... |
Flavio-96/IDWork-Data-Integration-Project | IDWork/api/helpers/global-scheme/course-interface.js | <filename>IDWork/api/helpers/global-scheme/course-interface.js
module.exports = {
friendlyName: 'Course interface',
description: 'Return courses find on Coursera (on the fly) and udacity (from datawarehouse)',
inputs: {
keyword: {
description: 'argument',
type: 'string',
required: true... |
p3g4asus/moviz | app/src/main/java/com/moviz/lib/utils/CommandProcessor.java | package com.moviz.lib.utils;
import com.moviz.lib.comunication.message.BaseMessage;
public interface CommandProcessor {
BaseMessage processCommand(BaseMessage hs2);
}
|
andypymont/adventofcode | 2015/day17.py | """
2015 Day 17
https://adventofcode.com/2015/day/17
"""
from typing import Iterable, Sequence
import numpy as np
import aocd # type: ignore
def read_containers(text: str) -> Sequence[int]:
"""
Read the puzzle input into a list of integers representing the container sizes.
"""
return [int(line) for ... |
shiningkiss/morn-boot-projects | morn-boot-test/src/test/java/site/morn/boot/json/package-info.java | /**
* JSON单元测试
*
* @author timely-rain
* @since 1.2.1, 2020/6/25
*/
package site.morn.boot.json;
import java.util.ArrayList;
import java.util.List;
import site.morn.test.TestUser;
/**
* JSON测试常量类
*
* @author timely-rain
* @since 1.2.1, 2020/6/25
*/
class Constant {
/**
* 用户集合
*/
protected static ... |
halotroop2288/consulo | modules/base/lang-impl/src/main/java/com/intellij/codeInsight/generation/actions/SurroundWithAction.java | <filename>modules/base/lang-impl/src/main/java/com/intellij/codeInsight/generation/actions/SurroundWithAction.java
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.codeInsight.generation.actions;
import co... |
mvxxx/MarsCombat | source/states/SubState.hpp | <reponame>mvxxx/MarsCombat
/*
mvxxx 2019
https://github.com/mvxxx
*/
#pragma once
#include "../wrappers/EventWrapper.hpp"
/**
* @brief represents single substate
*/
class SubState
{
/* ===Objects=== */
public:
protected:
private:
/* ===Methods=== */
public:
/**
* @brief onStart method
*/
virtual void onStart()... |
Pittor052/SoftUni-Studies | FirstStepsInPython/Basics/Exams/28 and 29 March 2020/01. Change Bureau.py | <reponame>Pittor052/SoftUni-Studies
bitcoins = float(input()) * 1168
yuan = float(input())
commission = float(input())
total = ((bitcoins + ((yuan * 0.15) * 1.76)) / 1.95) * ((100 - commission) / 100)
print(f"{total:.2f}")
|
wwjiang007/spring-xd | spring-xd-batch/src/main/java/org/springframework/xd/batch/hsqldb/server/package-info.java | /**
* Package for HSQL database server.
*/
package org.springframework.xd.batch.hsqldb.server;
|
JamesLoveCurry/bione_input | bione-frame/src/main/java/org/sitemesh/content/tagrules/html/ExportTagToContentRule.java | package org.sitemesh.content.tagrules.html;
import org.sitemesh.tagprocessor.BasicBlockRule;
import org.sitemesh.tagprocessor.Tag;
import org.sitemesh.content.ContentProperty;
import java.io.IOException;
/**
* Exports the contents of a match tag to property of the passed in {@link ContentProperty}.
*
* Additional... |
MrUPGrade/prezentacje | pygda14/code/fixtures/test_fixture_finalizer.py | <filename>pygda14/code/fixtures/test_fixture_finalizer.py<gh_stars>1-10
import pytest
@pytest.fixture(scope='module')
#@pytest.fixture
def initial_dict(request):
def finalizer():
print('## finish ##', end='')
request.addfinalizer(finalizer)
return {'1': 1, '2': 2}
def test_fixture_1(initial_di... |
pjfanning/poi-ooxml-lite-build | src/main/java/org/etsi/uri/x01903/v13/DigestAlgAndValueType.java | <reponame>pjfanning/poi-ooxml-lite-build
/*
* XML Type: DigestAlgAndValueType
* Namespace: http://uri.etsi.org/01903/v1.3.2#
* Java type: org.etsi.uri.x01903.v13.DigestAlgAndValueType
*
* Automatically generated - do not modify.
*/
package org.etsi.uri.x01903.v13;
import org.apache.xmlbeans.impl.schema.ElementF... |
Brest-Java-Course-2021-2/Maksim-Meliashchuk-Setlist-Organizer | rest-app/src/main/java/com/epam/brest/rest/TrackController.java | <gh_stars>0
package com.epam.brest.rest;
import com.epam.brest.model.Track;
import com.epam.brest.service.TrackService;
import com.epam.brest.service.excel.TrackExportExcelService;
import com.epam.brest.service.excel.TrackImportExcelService;
import com.epam.brest.service.faker.TrackFakerService;
import com.epam.brest.... |
JetBrains/teamcity-vmware-plugin | cloud-vmware-server/src/main/java/jetbrains/buildServer/clouds/vmware/VmwareCloudImageDetails.java | <filename>cloud-vmware-server/src/main/java/jetbrains/buildServer/clouds/vmware/VmwareCloudImageDetails.java<gh_stars>10-100
/*
* Copyright 2000-2021 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obt... |
mordor737/RestAPI_Complete | src/main/java/com/base/controller/UserController.java | <filename>src/main/java/com/base/controller/UserController.java
package com.base.controller;
import com.base.service.AddressService;
import com.base.service.UserService;
import com.base.shared.dto.AddressDto;
import com.base.shared.dto.UserDto;
import com.base.ui.model.request.UserDetailsRequestModel;
import com.base.... |
krastin/pp-cs3.0 | chapter-14/sample04.py | <filename>chapter-14/sample04.py
from members import Student, Faculty
paul = Faculty('<NAME>', 'Ajax', '<EMAIL>', '1234')
print(paul.name)
print(paul.email)
print(paul.faculty_number)
print(paul)
jen = Student('<NAME>', 'Toronto', '<EMAIL>', '4321')
print(jen.name)
print(jen.email)
print(jen.student_number)
pr... |
JROB774/tein-editor | source/cursor.cpp | GLOBAL constexpr const char* CURSOR_FILE_ARROW = "textures/editor_ui/cursor_arrow.bmp";
GLOBAL constexpr const char* CURSOR_FILE_BEAM_D = "textures/editor_ui/cursor_beam_dark.bmp";
GLOBAL constexpr const char* CURSOR_FILE_BEAM_L = "textures/editor_ui/cursor_beam_light.bmp";
GLOBAL constexpr const char* CURSOR_FILE_... |
wbt/truffle | packages/truffle/test/sources/migrations/quorum/migrations/3_migrations_async.js | <filename>packages/truffle/test/sources/migrations/quorum/migrations/3_migrations_async.js
const web3 = require("web3");
const Example = artifacts.require("Example");
const IsLibrary = artifacts.require("IsLibrary");
const UsesExample = artifacts.require("UsesExample");
const UsesLibrary = artifacts.require("UsesLibra... |
touxiong88/92_mediatek | packages/apps/MTKAndroidSuiteDaemon/src/com/mediatek/apst/target/data/proxy/message/FastMmsCursorParser.java | /* Copyright Statement:
*
* This software/firmware and related documentation ("MediaTek Software") are
* protected under relevant copyright laws. The information contained herein
* is confidential and proprietary to MediaTek Inc. and/or its licensors.
* Without the prior written permission of MediaTek inc. and/or ... |
andrew-cockayne/hv-uikit-react | packages/core/src/Table/DropdownMenu/index.js | import React from "react";
import { MoreOptionsVertical } from "@hitachivantara/uikit-react-icons";
import HvDropDownMenu from "../../DropDownMenu";
// eslint-disable-next-line react/prop-types
const DropDownMenu = ({ id, secondaryActions, dropdownMenuProps, original }) => {
return (
<HvDropDownMenu
id={id... |
common-group/services-core | services/catarse/lib/e_notas/params_builders/product.rb | # frozen_string_literal: true
module ENotas
module ParamsBuilders
class Product
ATTRIBUTES = %i[nome idExterno valorTotal tags].freeze
def initialize(project_fiscal)
@project_fiscal = project_fiscal
end
def build
ATTRIBUTES.index_with { |attribute| send(attribute.to_s.un... |
jafri/eoslime | tests/contract-tests.js | const assert = require("assert");
const eoslime = require("./../").init();
const TOKEN_ABI_PATH = "./tests/testing-contracts/compiled/eosio.token.abi";
const TOKEN_WASM_PATH = "./tests/testing-contracts/compiled/eosio.token.wasm";
const FAUCET_ABI_PATH = "./tests/testing-contracts/compiled/faucet.abi";
const FAUCET_W... |
all-of-us/raw-data-repository | tests/tool_tests/test_app_engine_manager.py | from datetime import datetime
from rdr_service.tools.tool_libs.app_engine_manager import DeployAppClass
from tests.helpers.unittest_base import BaseTestCase
class AppEngineManagerTest(BaseTestCase):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.uses_database = False
... |
BarisSari/django_crud | salika/views/city_views.py | from django.views.generic.detail import DetailView
from django.views.generic.edit import CreateView, UpdateView, DeleteView
from django.views.generic.list import ListView
from ..models import City
from ..forms import CityForm
from django.urls import reverse_lazy
from django.urls import reverse
from django.http import H... |
chgogos/oop | lab2020-2021/wx_examples/5_layout/2_sizer/main.cpp | <reponame>chgogos/oop<filename>lab2020-2021/wx_examples/5_layout/2_sizer/main.cpp<gh_stars>10-100
#include "sizer.h"
#include <wx/wx.h>
class MyApp : public wxApp
{
public:
virtual bool OnInit();
};
IMPLEMENT_APP(MyApp)
bool MyApp::OnInit()
{
Sizer *sizer = new Sizer(wxT("Sizer"));
sizer->Show(true);
... |
insad/jworkflow | samples/sample02/src/main/java/net/jworkflow/sample02/Main.java | package net.jworkflow.sample02;
import net.jworkflow.kernel.interfaces.WorkflowHost;
import net.jworkflow.WorkflowModule;
import java.util.Scanner;
import java.util.logging.Level;
import java.util.logging.Logger;
import net.jworkflow.providers.aws.DynamoDBPersistenceProvider;
import software.amazon.awssdk.regions.Regi... |
ectucker1/ectert | src/math/transform.h | #pragma once
#include "matrix.h"
Matrix translation(float x, float y, float z);
Matrix scaling(float x, float y, float z);
Matrix rotation_x(float r);
Matrix rotation_y(float r);
Matrix rotation_z(float r);
Matrix shearing(float x_y, float x_z, float y_x, float y_z, float z_x, float z_y);
Matrix view_transform(Tu... |
AxaGuilDEv/ml-cli | src/Ml.Cli.WebApp/ClientApp/src/Server/Project/List/Home.container.spec.js | <filename>src/Ml.Cli.WebApp/ClientApp/src/Server/Project/List/Home.container.spec.js
import '@testing-library/jest-dom/extend-expect';
import React from 'react';
import { render, waitFor } from '@testing-library/react';
import { HomeContainer } from './Home.container';
import {BrowserRouter as Router} from "react-rout... |
lowellmower/unum-sdk | src/unum/log/log_common.h | <reponame>lowellmower/unum-sdk<gh_stars>0
// Copyright 2018 Minim Inc
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless req... |
joergkrause/texxtoor | Texxtoor/Solution/Texxtoor.Portal/Scripts/reader/js/tools.js | Array.prototype.single = function(delegate) {
if (delegate && typeof(delegate) == 'function') {
for (var i = 0; i < this.length; ++i) {
if (delegate(this[i])) return this[i];
}
}
return null;
};
Array.prototype.each = function(delegate) {
if (delegate && typeof(delegate) == ... |
javgat/devtest | BackEnd/restapi/operations/test/get_public_tests_responses.go | <reponame>javgat/devtest
// Code generated by go-swagger; DO NOT EDIT.
package test
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"net/http"
"github.com/go-openapi/runtime"
"uva-devtest/models"
)
// GetPublicTestsOK... |
kschu91/harbor | src/server/middleware/security/session.go | // Copyright Project Harbor Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... |
gcruchon/react-toolkit | packages/Form/Input/switch/src/SwitchItem.js | import React from 'react';
import { InputManager } from '@axa-fr/react-toolkit-core';
const defaultClassName = 'af-form__radio-custom';
const SwitchItem = (props) => {
const {
disabled,
value,
isChecked,
id,
name,
onChange,
onBlur,
onFocus,
label,
} = props;
const newId = In... |
kivilu/ktf-dashboard-vue | src/store/modules/settings.js | <filename>src/store/modules/settings.js<gh_stars>0
import { getSettings } from '@/api/sys/dic'
import { typeConvert } from '@/utils'
import assign from 'lodash/assign'
import defaultSettings from '@/settings'
const {
showSettings,
tagsView,
fixedHeader,
sidebarLogo,
settings
} = defaultSettings
... |
NisalaNiroshana/developer-studio | capp/org.wso2.developerstudio.eclipse.capp.core/src/org/wso2/developerstudio/eclipse/capp/core/manifest/Artifacts.java | /*
* Copyright (c) 2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* ... |
hychrisli/PyAlgorithms | src/solutions/part2/q090_subsets_ii.py | from src.base.solution import Solution
from src.tests.part2.q090_test_subsets_ii import SubsetsIiTestCases
class SubsetsIi(Solution):
def verify_output(self, test_output, output):
return test_output == output
def run_test(self, input):
return self.subsetsWithDup(input)
def gen_test_cases(... |
lob/rack | provider/local/system.go | package local
import (
"bytes"
"crypto/aes"
"crypto/cipher"
"encoding/hex"
"fmt"
"io"
"io/ioutil"
"net"
"net/http"
"os"
"os/exec"
"os/user"
"text/template"
"time"
"github.com/lob/rack/pkg/structs"
"github.com/pkg/errors"
cv "github.com/convox/version"
)
const (
aesKey = "AES256Key-32Characters12... |
Endervan/java_avancado | src/listas/duplamente/encadeadas/Main.java | package listas.duplamente.encadeadas;
import listas.duplamente.encadeadas.ListaDuplamenteEncadeada;
public class Main {
public static void main(String[] args) {
ListaDuplamenteEncadeada<String> minhaListaDuplaEncadeada = new ListaDuplamenteEncadeada<>();
minhaListaDuplaEncadeada.add("c1");
... |
cloudsmith-io/teku | ethereum/core/src/testFixtures/java/tech/pegasys/teku/core/BlockProposalTestUtil.java | <reponame>cloudsmith-io/teku
/*
* Copyright 2020 ConsenSys AG.
*
* 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 appl... |
tstarling/hhvm | hphp/third_party/libafdt/src/sync.c | <reponame>tstarling/hhvm
#include <assert.h>
#include <poll.h>
#include <sys/time.h>
#include "config.h"
#include "afdt.h"
#include "internal.h"
int afdt_sync_client(
const char* fname,
const uint8_t* request,
uint32_t request_length,
uint8_t* response,
uint32_t* response_length,
int* received... |
marcomarasca/Synapse-Stack-Builder | src/main/java/org/sagebionetworks/template/repo/cloudwatchlogs/CloudwatchLogsConfigValidator.java | <reponame>marcomarasca/Synapse-Stack-Builder<gh_stars>0
package org.sagebionetworks.template.repo.cloudwatchlogs;
import org.sagebionetworks.template.repo.beanstalk.EnvironmentType;
import org.sagebionetworks.util.ValidateArgument;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util... |
Acrisel/eventor | eventor/eventor/lib/utils.py | <filename>eventor/eventor/lib/utils.py
'''
Created on Oct 19, 2016
@author: arnon
'''
from acrilib import Sequence
from logging.handlers import QueueListener
import inspect
import datetime
import os
import socket
from types import FunctionType
import yaml
def is_require_op(op):
if op in ['or', 'and']:
r... |
AdamSwenson/TwitterProject | tests/TwitterDatabaseTests/DatabaseAccessObjectsTests/test_DataRepositories.py | import unittest
from Repositories.DataRepositories import WordRepository
class WordRespositoriesTest( unittest.TestCase ):
def setUp(self):
self.object = WordRepository()
@unittest.skip
def test_get_word_happy_modify_existing( self ):
w = self.object.get_word( 'taco1' )
w.word = ... |
dmytrostriletskyi/dbnd | modules/dbnd-airflow/src/dbnd_airflow/export_plugin/api_functions.py | <filename>modules/dbnd-airflow/src/dbnd_airflow/export_plugin/api_functions.py<gh_stars>0
import collections
import json
import logging
from functools import wraps
from airflow.hooks.base_hook import BaseHook
from airflow.models import DagModel
from airflow.utils.db import provide_session
from airflow.version import ... |
Kirishikesan/haiku | src/apps/icon-o-matic/generic/command/CompoundCommand.cpp | /*
* Copyright 2006, Haiku.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME> <<EMAIL>>
*/
#include "CompoundCommand.h"
#include <stdio.h>
// constructor
CompoundCommand::CompoundCommand(Command** commands,
int32 count,
const char* name,
int32 nameIndex)
: Com... |
DenysGurin/solnce | dgcrm/migrations/0028_auto_20170712_1405.py | <filename>dgcrm/migrations/0028_auto_20170712_1405.py
# -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-07-12 14:05
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dgcrm', '0027_price_date'),
]
... |
StuartMacKay/ebird-api | tests/validation/test_clean_max_results.py | <reponame>StuartMacKay/ebird-api
import unittest
from ebird.api.validation import clean_max_results
class CleanMaxResultsTests(unittest.TestCase):
"""Tests for the clean_max_results validation function."""
def test_none_is_allowed(self):
self.assertEqual(None, clean_max_results(None, 10000))
de... |
bmunozi/onesaitplatform-cloud | sources/libraries/persistence/mongodb-impl/src/main/java/com/minsait/onesait/platform/persistence/mongodb/quasar/connector/QuasarMongoDBbHttpConnectorImpl.java | <reponame>bmunozi/onesaitplatform-cloud
/**
* Copyright Indra Soluciones Tecnologías de la Información, S.L.U.
* 2013-2019 SPAIN
*
* 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
* ... |
raven38/pytorch | caffe2/operators/sqrt_op.cc | <reponame>raven38/pytorch
#include "caffe2/operators/sqrt_op.h"
#include <string>
#include <vector>
namespace caffe2 {
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
REGISTER_CPU_OPERATOR(
Sqrt,
UnaryElementwiseOp<
TensorTypes<float, double>,
CPUContext,
SqrtFun... |
Yuunagi-Yu/NumberDisk | Project/Temp/StagingArea/Data/il2cppOutput/UnityEngine_UnityEngine_GUI4082743951.h | <gh_stars>0
#pragma once
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
// UnityEngine.GUISkin
struct GUISkin_t1436893342;
// UnityEngineInternal.GenericStack
struct GenericStack_t3718539591;
#include "mscorlib_System_Object2689449295.h"
#inc... |
tapis-project/tapis-apps | tapis-appsapi/src/main/java/edu/utexas/tacc/tapis/apps/api/model/ParameterSet.java | package edu.utexas.tacc.tapis.apps.api.model;
import edu.utexas.tacc.tapis.apps.api.utils.ApiUtils;
import edu.utexas.tacc.tapis.apps.model.App;
import edu.utexas.tacc.tapis.apps.model.AppArg;
import java.util.ArrayList;
import java.util.List;
/*
* Class for ParameterSet attributes in an App definition contained in... |
danfyfe/lets-do-something-front-end | src/containers/EventContainer.js | <reponame>danfyfe/lets-do-something-front-end<filename>src/containers/EventContainer.js
import React from 'react'
import { formatTime } from '../actions/general.js'
import AttendeeCard from '../components/cards/AttendeeCard.js'
import InvitesContainer from './InvitesContainer.js'
import BudgetContainer from './Budget... |
TimBest/case-issue-api | src/main/java/gov/usds/case_issues/db/model/projections/CaseSnoozeSummary.java | package gov.usds.case_issues.db.model.projections;
import java.time.ZonedDateTime;
/**
* A projection that returns the information about a snooze that most people would want
* (assuming you already had the key information required to look it up, and don't need to
* see it again).
*/
public interface CaseSnoozeSum... |
cribbslab/mclumi | mclumi/trim/UMIRuleOut.py | __version__ = "v1.0"
__copyright__ = "Copyright 2021"
__license__ = "MIT"
__lab__ = "<NAME>s lab"
from mclumi.util.Console import console
class umiRuleOut(object):
def __init__(self, read_summary, verbose=True):
self.read_summary = read_summary
self.verbose = verbose
self.console = conso... |
Mikeccx/vanke-vant | es/cell-group/CellGroup.js | import { Fragment as _Fragment, createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
import { defineComponent } from 'vue';
import { truthProp, createNamespace } from '../utils';
import { BORDER_TOP_BOTTOM } from '../utils/constant';
var [name, bem] = createNamespace('cell-group');
export default define... |
wanxiang-blockchain/2021Wanxiang-Blockchain-Hackathon-Filscan | lang/en.js | <gh_stars>0
// const isTest = window.location.href.indexOf("calibration") >= 0
const isTest = false
const en = {
links: {},
mixin:{
formatTime:{
before: 'ago',
suffix: ['day', 'hr', 'min', 's']
}
},
component: {
empty: {
label: 'No Data'
},
heightDetail: {
titles: ['B... |
Sharktower/ui-react | src/components/Fields/TextFieldEnums.js | // TextFieldVariant enum used by the TextField variant prop
export const TextFieldVariant = Object.freeze({ // eslint-disable-line import/prefer-default-export
DEFAULT: 'default',
TITLE: 'title',
});
|
goderbauer/easy-gwt-mock | java/com/google/gwt/testing/easygwtmock/client/ArgumentMatcher.java | /*
* Copyright 2001-2010 the original author or authors.
* Portions Copyright 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICEN... |
sabatale/articulate | api/lib/services/server.services.js | import Schmervice from 'schmervice';
import TimingWrapper from '../../util/service-timing-wrapper';
import Create from './server/server.create.service';
import Get from './server/server.get.service';
import Update from './server/server.update.service.js';
module.exports = class ServerService extends Schmervice.Service... |
lordfuoco/cornerstoneTools | src/util/drawArrow.js | <filename>src/util/drawArrow.js
import { drawLine, drawJoinedLines } from './drawing.js';
export default function (context, start, end, color, lineWidth) {
// Variables to be used when creating the arrow
const headLength = 10;
const angle = Math.atan2(end.y - start.y, end.x - start.x);
// Starting path of th... |
zhangkn/iOS14Header | System/Library/PrivateFrameworks/ProximityUI.framework/PRDevicePoseValidator.h | <reponame>zhangkn/iOS14Header
/*
* This header is generated by classdump-dyld 1.0
* on Sunday, September 27, 2020 at 12:26:03 PM Mountain Standard Time
* Operating System: Version 14.0 (Build 18A373)
* Image Source: /System/Library/PrivateFrameworks/ProximityUI.framework/ProximityUI
* classdump-dyld is licensed under G... |
bbeck/twitch-plays-crosswords | api/crossword/settings.go | <filename>api/crossword/settings.go
package crossword
import (
"encoding/json"
"fmt"
"github.com/bbeck/puzzles-with-chat/api/db"
"github.com/bbeck/puzzles-with-chat/api/model"
"github.com/gomodule/redigo/redis"
)
// Settings represents the optional behaviors that can be enabled or disabled
// by a streamer for t... |
amlalejini/signalgp-lite | include/sgpl/operations/actions/actions.hpp | #pragma once
#ifndef SGPL_OPERATIONS_ACTIONS_ACTIONS_HPP_INCLUDE
#define SGPL_OPERATIONS_ACTIONS_ACTIONS_HPP_INCLUDE
#include "ForkIf.hpp"
#include "Nop.hpp"
#include "TerminateIf.hpp"
#endif // #ifndef SGPL_OPERATIONS_ACTIONS_ACTIONS_HPP_INCLUDE
|
algoriddle/cp | uva/11340.cc | #include <iostream>
#include <cstring>
#include <iomanip>
#include <limits>
using namespace std;
int t[256];
int main() {
ios::sync_with_stdio(false);
cout << setiosflags(ios::fixed) << setprecision(2);
int q;
cin >> q;
//cout << q << endl;
while (q--) {
int k;
cin >> k;
//cout << k << endl;
... |
david-castillo/TADkit | src/layout/home.controller.js | <reponame>david-castillo/TADkit
(function() {
'use strict';
angular
.module('TADkit')
.controller('HomeController', HomeController);
function HomeController ($scope){
}
})(); |
alexandra-bucur/egeria-connector-ibm-information-server | igc-clientlibrary/src/main/java/org/odpi/egeria/connectors/ibm/igc/clientlibrary/model/base/Dsmfcolumninfo.java | /* SPDX-License-Identifier: Apache-2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.egeria.connectors.ibm.igc.clientlibrary.model.base;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.J... |
arkanovicz/velosurf | src/java/velosurf/util/FastHttpDateFormat.java | <filename>src/java/velosurf/util/FastHttpDateFormat.java
/*
* Copyright 2003 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.o... |
broccoliboy/LedFx | frontend/src/components/BugTracker/index.js | import React from 'react';
import { useSelector } from 'react-redux';
import Button from '@material-ui/core/Button';
import TextField from '@material-ui/core/TextField';
import IconButton from '@material-ui/core/IconButton';
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@material-ui/core/Dia... |
nanyou0316/the_thrid | day05/code/be/db/index.js | //1. 引入需要的第三方库
const mongoose = require('mongoose')
//2. 连接数据库
mongoose.connect('mongodb://localhost:27017/2005', {
useNewUrlParser: true
}, error => {
if (error) throw error
console.log('数据库连接成功')
})
//3. 创建骨架 ---> 实质就是在做数据库的字段定义
const shopSchema = new mongoose.Schema({
shopId: String,
shopTitle: String,
... |
cts2/twinkql | src/example/java/org/twinkql/example/alias/Tetris.java | <filename>src/example/java/org/twinkql/example/alias/Tetris.java<gh_stars>1-10
package org.twinkql.example.alias;
import java.util.List;
public class Tetris {
private List<String> comments;
public List<String> getComments() {
return comments;
}
public void setComments(List<String> comments) {
this.comments... |
trinitroglycerin/key-conjurer | api/authenticators/okta/saml.go | package okta
import (
"errors"
"fmt"
"io"
"github.com/riotgames/key-conjurer/api/core"
"golang.org/x/net/html"
)
func walkHTMLTree(node *html.Node, condition func(*html.Node) bool) (*html.Node, bool) {
if condition(node) {
return node, true
}
for child := node.FirstChild; child != nil; child = child.Next... |
prulloac/mddv | ui/src/redux/reducers/index.js | import { combineReducers } from 'redux'
import userReducer from './user-reducer'
import repositoryReducer from './repository-reducer'
import notificationReducer from './notification-reducer'
import businessObjectReducer from './business-objects-reducer'
import technicalObjectReducer from './technical-objects-reduc... |
johnobrien8642/JOB_Developer | client/src/components/posts/util/functions/feed_util.js | import React from 'react';
import TagResult from '../../../search/resultTypes/Tag_Result';
import UserResult from '../../../search/resultTypes/User_Result';
const header = (user, tag) => {
if (user) {
return (
<UserResult user={user} />
)
} else if (tag) {
return (
<TagResult tag={tag} />
... |
r00ster91/serenity | Userland/Libraries/LibJS/Tests/builtins/WeakSet/WeakSet.prototype.delete.js | <reponame>r00ster91/serenity
test("basic functionality", () => {
expect(WeakSet.prototype.delete).toHaveLength(1);
var original = [{ a: 1 }, { a: 2 }, { a: 3 }];
const weakSet = new WeakSet(original);
expect(weakSet.delete(original[0])).toBeTrue();
expect(weakSet.delete(original[0])).toBeFalse();
... |
EmilPi/PuzzleLib | Backend/Kernels/Pad.py | <reponame>EmilPi/PuzzleLib<filename>Backend/Kernels/Pad.py
from PuzzleLib import Config
reflectpad1d = None
reflectpad1dBackward = None
reflectpad2d = None
reflectpad2dBackward = None
def autoinit():
if not Config.shouldInit():
return
if Config.backend == Config.Backend.cuda:
initCuda()
elif Config.backend... |
DevLabsDigital/consultoria_gem | app/javascript/components/app/util/date_util.js | <reponame>DevLabsDigital/consultoria_gem
const addSecondZero = value => {
const strValue = value.toString();
if (strValue.length === 1) return `0${strValue}`;
return strValue;
};
export const formatDateTime = orignalDate => {
const date = new Date(orignalDate);
return `${addSecondZero(date.getDate(... |
MarkStega/CQC | Source/AllProjects/CoreTech/CQCIR/CQCIR_BlasterDevModel.hpp | //
// FILE NAME: CQCIR_BlasterDevModel.hpp
//
// AUTHOR: <NAME>
//
// CREATED: 02/23/2002
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2020
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (<NAME>.) It is licensed under the MIT Open Source
// license:
//
// https://opensource.... |
Esri/map-carousel-template | js/nls/resources.js | define({
root: ({
app: {
title: "Map Carousel",
errors: {
noMaps: "This group does not contain any public web maps to display",
noGroup: "Group not found",
createGroup: "Unable to create group",
bitly: 'bitly is used to shorten the url for sharing. View the readme file ... |
cwl48/leetcode---go-- | 120/triangle.go | package minimumtotal
/*
* @lc app=leetcode.cn id=120 lang=golang
*
* [120] 三角形最小路径和
*
* https://leetcode-cn.com/problems/triangle/description/
*
* algorithms
* Medium (55.18%)
* Total Accepted: 6.6K
* Total Submissions: 11.9K
* Testcase Example: '[[2],[3,4],[6,5,7],[4,1,8,3]]'
*
* 给定一个三角形,找出自顶向下的最小路径和... |
acHefei/anteater_hf | client/client-multi/client-java-core/src/main/java/org/kaaproject/kaa/client/persistence/KaaClientState.java | <gh_stars>1-10
/**
* Copyright 2014-2016 CyberVision, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... |
grondo/mvapich2-cce | src/mpi/group/group.h | /* -*- Mode: C; c-basic-offset:4 ; -*- */
/*
* (C) 2001 by Argonne National Laboratory.
* See COPYRIGHT in top-level directory.
*/
/* MPIR_Group_create is needed by some of the routines that return groups
from communicators, so it is in mpidimpl.h */
void MPIR_Group_setup_lpid_list( MPID_Group * );
int MPI... |
Kobrs/ncs | base/source/sim/DataBuffer.cpp | #include <ncs/sim/DataBuffer.h>
namespace ncs {
namespace sim {
Mailbox::Mailbox()
: failed(false) {
}
Publisher::Publisher()
: device_(nullptr) {
}
Publisher::Subscription* Publisher::subscribe() {
// Generate a subscription object
Subscription* sub = new Subscription(this);
// Make sure no one else is ... |
Aarthas/android_json2view | sample/src/main/java/yiewdemo/SalesActivity.java | package yiewdemo;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import com.apkfuns.logutils.LogUtils;
import com.arthas.xjsonview.XViewMain;
import com.arthas.xjsonview.bean.XView;
import com.arthas.x... |
taxusyew/wrc | src/component/tabs/tab.js | <filename>src/component/tabs/tab.js
import React from 'react';
import classNames from 'classnames';
import './style.less'
export default class Tab extends React.Component {
handleClick = (event) => {
if (!this.props.disabled && this.props.onClick) {
this.props.onClick(event);
}
};
... |
tahmid1234/Eidlandv2 | app/src/main/java/com/eidland/auxilium/voice/only/helper/LeaderBoard.java | package com.eidland.auxilium.voice.only.helper;
import android.os.Build;
import com.eidland.auxilium.voice.only.model.Gift;
import com.eidland.auxilium.voice.only.model.Leader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import androidx.annotation.Re... |
nowifi4u/Commando | src/types/string/baseString.js | <filename>src/types/string/baseString.js<gh_stars>1-10
const ArgumentType = require('../base');
module.exports = (name, strings = []) => {
if(!Array.isArray(strings)) strings = [strings];
strings = strings.map(val => {
if(typeof val !== 'string') throw new TypeError('Cannot pass non-string values');
return Strin... |
ceratic/VXA-OS | Client/Scripts/[VS] Sprite2.rb | #==============================================================================
# ** Sprite
#------------------------------------------------------------------------------
# Esta é a superclasse de alguns objetos gráficos.
#------------------------------------------------------------------------------
# Autor: Valent... |
Duct-and-rice/KrswtkhrWiki4Android | app/src/main/java/org/wikipedia/feed/view/BigPictureCardView.java | package org.wikipedia.feed.view;
import android.content.Context;
import android.net.Uri;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.widget.CardView;
import android.view.View;
import android.widget.TextView;
import com.facebook.drawee.view.SimpleDra... |
hongframework/hamster | basic/src/main/java/com/hframework/hamster/cfg/service/interfaces/ICfgDatasourceSV.java | <reponame>hongframework/hamster<gh_stars>1-10
package com.hframework.hamster.cfg.service.interfaces;
import java.util.*;
import com.hframework.hamster.cfg.domain.model.CfgDatasource;
import com.hframework.hamster.cfg.domain.model.CfgDatasource_Example;
public interface ICfgDatasourceSV {
/**
* 创建数据源
... |
Mattlk13/rayo-server | rayo-storage/src/main/java/com/rayo/storage/riak/RiakPlatform.java | package com.rayo.storage.riak;
import java.util.ArrayList;
import java.util.Collection;
import org.codehaus.jackson.annotate.JsonCreator;
import org.codehaus.jackson.annotate.JsonProperty;
import com.basho.riak.client.RiakLink;
import com.basho.riak.client.convert.RiakKey;
import com.basho.riak.client.convert.RiakLi... |
phanmduong/test | public/angularjs/group/directives/TopicItem.js | angular.module('groupApp')
.directive('topicItem', function (__env) {
var templateUrl = __env.baseUrl + "/angularjs/group/templates/directives/topicItem.html";
return {
restrict: "E",
templateUrl: templateUrl,
scope: {
topic: "="
},
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.