repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
Coderkul2020/kulbot
node_modules/scratch-paint/src/log/log.js
<gh_stars>100-1000 import minilog from 'minilog'; minilog.enable(); export default minilog('scratch-paint');
GeneralZero/CS-577-Final-Project
FreeRadius/freeradius-server-2.1.7/src/modules/rlm_sql/rlm_sql.c
<reponame>GeneralZero/CS-577-Final-Project /* * rlm_sql.c SQL Module * Main SQL module file. Most ICRADIUS code is located in sql.c * * Version: $Id$ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Fre...
TONY-All/Hangar
src/main/java/io/papermc/hangar/service/internal/users/NotificationService.java
<filename>src/main/java/io/papermc/hangar/service/internal/users/NotificationService.java package io.papermc.hangar.service.internal.users; import io.papermc.hangar.HangarComponent; import io.papermc.hangar.db.dao.HangarDao; import io.papermc.hangar.db.dao.internal.HangarNotificationsDAO; import io.papermc.hangar.db.d...
AudiovisualMetadataPlatform/mico
storage/core/src/main/java/eu/mico/platform/storage/impl/StorageServiceLocalFS.java
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
Royalkol/Xenco-server
src/main/java/com/nasus/mongodb/service/impl/UserServiceImpl.java
package com.nasus.mongodb.service.impl; import com.nasus.mongodb.entity.XencoUser; import com.nasus.mongodb.jpa.UserRepository; import com.nasus.mongodb.requestinfo.RequestLoginInfo; import com.nasus.mongodb.requestinfo.RequestPhoneInfo; import com.nasus.mongodb.responseinfo.ResponseLoginBody; import com.nasus.mongodb...
heroletumik/hopis
src/bitbucket.org/atticlab/horizon/ingest/session/ingestion/main.go
package ingestion import ( "bitbucket.org/atticlab/horizon/cache" "bitbucket.org/atticlab/horizon/db2" "bitbucket.org/atticlab/horizon/db2/history" "bitbucket.org/atticlab/horizon/db2/sqx" sq "github.com/lann/squirrel" ) // Ingestion receives write requests from a Session type Ingestion struct { // DB is the sq...
flaweoff/OfflineManager
plugin/src/main/java/net/flawe/offlinemanager/commands/OMCommand.java
<filename>plugin/src/main/java/net/flawe/offlinemanager/commands/OMCommand.java package net.flawe.offlinemanager.commands; import net.flawe.offlinemanager.OfflineManager; import net.flawe.offlinemanager.api.IPlaceholder; import net.flawe.offlinemanager.api.OfflineManagerAPI; import net.flawe.offlinemanager.api.command...
Omnirobotic/godot
modules/scene_manager/include/map_msgs/srv/get_point_map_roi__response.hpp
// generated from rosidl_generator_cpp/resource/msg.hpp.em // generated code does not contain a copyright notice #ifndef MAP_MSGS__SRV__GET_POINT_MAP_ROI__RESPONSE_HPP_ #define MAP_MSGS__SRV__GET_POINT_MAP_ROI__RESPONSE_HPP_ #include "map_msgs/srv/get_point_map_roi__response__struct.hpp" #include "map_msgs/srv/get_po...
Robbbert/messui
src/mame/includes/wiping.h
<gh_stars>10-100 // license:BSD-3-Clause // copyright-holders:<NAME> #ifndef MAME_INCLUDES_WIPING_H #define MAME_INCLUDES_WIPING_H #pragma once #include "emupal.h" class wiping_state : public driver_device { public: wiping_state(const machine_config &mconfig, device_type type, const char *tag) : driver_device(mco...
DAIAD/home-web
common/src/main/java/eu/daiad/common/model/query/UserPopulationFilter.java
<filename>common/src/main/java/eu/daiad/common/model/query/UserPopulationFilter.java package eu.daiad.common.model.query; import java.util.ArrayList; import java.util.List; import java.util.UUID; public class UserPopulationFilter extends PopulationFilter { private List<UUID> users = new ArrayList<UUID>(); public ...
hoover/iu
src/components/search/Results.js
<reponame>hoover/iu import React, { memo } from 'react' import { Box, Fab, Fade, Grid, Typography } from '@material-ui/core' import { makeStyles } from '@material-ui/core/styles' import Pagination from './Pagination' import ResultsList from './ResultsList' import ResultsTable from './ResultsTable' import { useSearch } ...
ertogrul/ArgMining
tests/loaders/test_THF_sentence_corpus_loader.py
import unittest from argmining.sentence.loaders.THF_sentence_corpus_loader import parse_tree_tagger_lemma from argmining.sentence.loaders.THF_sentence_corpus_loader import parse_IWNLP_lemma from argmining.sentence.loaders.THF_sentence_corpus_loader import parse_polarity class THFSentenceCorpusLoaderTests(unittest.Tes...
lihongjie/tutorials
servlet-jsp-lihongjie/reflectblog/src/main/java/exception/DaoException.java
package exception; /** * DAO层运行时异常 * * @author Administrator */ public class DaoException extends RuntimeException { public DaoException() { super(); // TODO Auto-generated constructor stub } public DaoException(String message, Throwable cause) { super(message, cause); ...
AlexRogalskiy/java4you
src/main/java/com/sensiblemetrics/api/alpenidos/pattern/lambda/interpreter/InterpreterLambda.java
package com.sensiblemetrics.api.alpenidos.pattern.lambda.interpreter; import java.util.HashMap; import java.util.Map; import java.util.Stack; import java.util.function.IntBinaryOperator; public class InterpreterLambda { static Map<String, IntBinaryOperator> opMap = new HashMap<>(); static { opMap.pu...
baovevni/homework
basics2.12/src/fightsong/songoutput.java
<filename>basics2.12/src/fightsong/songoutput.java package fightsong; import static fightsong.FightSong.*; public class songoutput{ public static void main(String[] args) { printFirstLine(); System.out.println(line1); System.out.println(); System.out.println(line1); Sy...
sajustsmile/twitter-blockchain
studio/node_modules/@sanity/portable-text-editor/lib/editor/plugins/createWithUtils.js
<reponame>sajustsmile/twitter-blockchain<filename>studio/node_modules/@sanity/portable-text-editor/lib/editor/plugins/createWithUtils.js<gh_stars>1-10 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createWithUtils = createWithUtils; var _slate = require("slate"); var _debug = ...
vborisoff/reladomo
reladomoserial/src/main/java/com/gs/reladomo/serial/jackson/JacksonReladomoWrappedDeserializer.java
/* Copyright 2016 <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 agreed to in writing, softw...
wangsun1983/Obotcha
test/testUtil/testText/testXmlReflect/TestReflectToSimpleXml.cpp
#include <stdio.h> #include <unistd.h> #include <iostream> #include <type_traits> #include "Object.hpp" #include "StrongPointer.hpp" #include "Reflect.hpp" #include "String.hpp" #include "Math.hpp" #include "Field.hpp" #include "XmlWriter.hpp" #include "XmlReader.hpp" #include "XmlDocument.hpp" using namespace obotch...
Earthcomputer/ShittyMinecraftSuggestions
src/main/java/shittymcsuggestions/mixin/item/MixinNameTagItem.java
package shittymcsuggestions.mixin.item; import net.minecraft.entity.LivingEntity; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.item.ItemStack; import net.minecraft.item.NameTagItem; import net.minecraft.server.network.ServerPlayerEntity; import net.minecraft.util.Hand; import org.spongepowered...
cyrilfr/java-sdk
src/main/java/ch/postfinance/sdk/model/ShopifySubscriptionSuspensionCreate.java
<filename>src/main/java/ch/postfinance/sdk/model/ShopifySubscriptionSuspensionCreate.java /** * PostFinance Checkout SDK * * This library allows to interact with the PostFinance Checkout payment service. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance...
Poulhouse/dev_don360
bitrix/modules/landing/install/js/landing/ui/card/headercard/src/headercard.js
import {BaseCard} from 'landing.ui.card.basecard'; import {Dom, Tag, Type} from 'main.core'; import './css/style.css'; /** * @memberOf BX.Landing.UI.Card */ export class HeaderCard extends BaseCard { constructor(options) { super(options); Dom.addClass(this.getLayout(), 'landing-ui-card-headercard'); if (op...
tima-q/connectedhomeip
src/crypto/CHIPCryptoPALOpenSSL.cpp
<filename>src/crypto/CHIPCryptoPALOpenSSL.cpp /* * * Copyright (c) 2020-2021 Project CHIP 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.apa...
AlhonGelios/AO
org/openxmlformats/schemas/spreadsheetml/x2006/main/CTFonts.java
package org.openxmlformats.schemas.spreadsheetml.x2006.main; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.Reader; import java.net.URL; import java.util.List; import javax.xml.stream.XMLStreamReader; import org.apache.poi.POIXMLTypeLoader; import org.apache.xmlbeans.Schema...
tinamil/Dungeon-Crawl
DungeonCrawl/test/pavlik/john/dungeoncrawl/model/events/EventTest.java
<gh_stars>0 package pavlik.john.dungeoncrawl.model.events; import java.util.HashSet; import java.util.Set; import pavlik.john.dungeoncrawl.model.events.Action; import pavlik.john.dungeoncrawl.model.events.Conditional; import pavlik.john.dungeoncrawl.model.events.Event; import junit.framework.TestCase; /** ...
xiao-ren-wu/ono
ono-toolkit/src/main/java/org/ywb/ono/toolkit/crypto/AES.java
package org.ywb.ono.toolkit.crypto; import javax.crypto.Cipher; import javax.crypto.spec.IvParameterSpec; import javax.crypto.spec.SecretKeySpec; import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; import java.util.Base64; import java.util.Locale; import java.util.UUID; /** * @auth...
jasonzhang2022/algorithm
src/main/java/jason/datastructure/EnglishDictTrie.java
<reponame>jasonzhang2022/algorithm<filename>src/main/java/jason/datastructure/EnglishDictTrie.java<gh_stars>0 package jason.datastructure; import static org.junit.Assert.assertEquals; import java.util.function.Consumer; import org.junit.Test; public class EnglishDictTrie { char value; public EnglishDictTrie[] chi...
fnl/txtfnnl
txtfnnl-bin/src/test/java/txtfnnl/pipelines/TestPipeline.java
package txtfnnl.pipelines; import java.io.BufferedWriter; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.io.PrintStream; import java.io.UnsupportedEncodingException; import java.util.logging.Level; import java.util.logging.Logger; import o...
nvasc/BCT_ORG
app/commons/dataprovider/dataprovider.js
<gh_stars>0 function dataProvider($resource, oauthDataFactory, $rootScope) { var service = {}; var _provider = function (model, key) { var modelUrl = ''; if (model) { modelUrl = oauthDataFactory.urlMain() + 'api/' + model; } else { return null; } if (key) { return $r...
blurbyte/hack-the-news
src/components/StoryHeader/Details.js
import styled from 'styled-components'; import media from '../../styles/media'; const Details = styled.div` display: flex; align-items: center; margin: 2.4rem 0 2.2rem 0; ${media.phone`margin: 1.2rem 0 1rem 0;`} `; export default Details;
mohamedsamara/React-Starter-App
src/theme.js
/** * * theme.js * Theme setup --> Material UI */ import { createMuiTheme } from '@material-ui/core/styles'; import indigo from '@material-ui/core/colors/indigo'; import blue from '@material-ui/core/colors/blue'; // import purple from '@material-ui/core/colors/purple'; // import green from '@material-ui/core/colo...
ericallfesta/kirarirenew
proto.git 2/app/models/image.rb
class Image < ActiveRecord::Base belongs_to :writing validates_presence_of :src mount_uploader :src, DefaultUploader end
The-Forecaster/Spark-Client
src/main/java/me/wallhacks/spark/util/player/itemswitcher/itemswitchers/ItemForMineSwitchItem.java
<filename>src/main/java/me/wallhacks/spark/util/player/itemswitcher/itemswitchers/ItemForMineSwitchItem.java package me.wallhacks.spark.util.player.itemswitcher.itemswitchers; import me.wallhacks.spark.util.player.InventoryUtil; import me.wallhacks.spark.util.player.itemswitcher.SwitchItem; import net.minecraft.block....
RIdotCOM/restaurant-review
src/js/helpers/filter.js
<gh_stars>1-10 'use strict' import m from 'mithril' import _ from 'lodash' const Filter = function() { const ctrl = this // const unfilteredRestaurants = m.prop(_.cloneDeep(ctrl.restaurants())) let status = 0 const filter = { status(type) { if ( typeof type === 'number') { status = t...
tyranitar/eureka
client/src/actions/career-actions.js
<filename>client/src/actions/career-actions.js<gh_stars>0 import { asyncGetCareerDetails, asyncGetCareerEducationPaths, asyncGetCareerComments, asyncGetCareerPointOfContact, asyncGetCareerAdvertisements, asyncGetCareerVideos, asyncToggleCareerCommentLike, asyncAddCareerComment, async...
ChaosPaladin/l2mapconv-public
rendering/src/EntityTree.cpp
<reponame>ChaosPaladin/l2mapconv-public<filename>rendering/src/EntityTree.cpp #include "pch.h" #include <rendering/EntityTree.h> namespace rendering { void EntityTree::add(const Entity &entity) { ASSERT(entity.mesh() != nullptr, "Rendering", "Entity must have mesh"); m_entities.push_front(entity); const auto ...
rsumner31/pymc3-23
PyMC2/database/pickle.py
### # Pickle backend module # Trace are stored in memory during sampling and saved to a # pickle file at the end of sampling. ### """What I want to do here is allow the possibility to load an existing pickle file to continue sampling where it was left. To do so, we first initialize the database with the name of the p...
apjanke/janklab-opp
jide-oss/jide-oss-3.7.6/project/jide-oss-3.7.6/src/com/jidesoft/comparator/PrioritizedObjectComparator.java
<reponame>apjanke/janklab-opp package com.jidesoft.comparator; import com.jidesoft.swing.Prioritized; import java.util.Comparator; /** * <code>Comparator</code> for objects that implements {@link com.jidesoft.swing.Prioritized} * interface. It is a singleton pattern. You use {@link #getInstance()} to get a...
PircDef/accumulo
server/manager/src/main/java/org/apache/accumulo/manager/tableOps/TableInfo.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 ...
MephistoMMM/gAlgorithmAndDesignPattern
leetcode/0021_merge_two_sorted_list/main.go
<filename>leetcode/0021_merge_two_sorted_list/main.go // Copyright © 2019 <NAME> <<EMAIL>> // // 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 limitat...
dingjianhui1013/operator
src/main/java/cn/topca/tca/ra/service/CertInfo.java
package cn.topca.tca.ra.service; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; /** * <p>certInfo complex type的 Java 类。 * * <p>以下模式片段指定包含在此类中的预期内容。 * * <pre> * &lt;complexType name="certInfo"> * &l...
handsome0hell/ckb-sdk-java
ckb-mercury-sdk/src/main/java/org/nervos/mercury/model/common/Range.java
<reponame>handsome0hell/ckb-sdk-java<gh_stars>10-100 package org.nervos.mercury.model.common; import java.math.BigInteger; public class Range { public BigInteger from; public BigInteger to; public Range(BigInteger from, BigInteger to) { this.from = from; this.to = to; } }
bryceharrington/caskbench
src/cairo-tests/image-rotate.cpp
/* * Copyright 2014 © Samsung Research America, Silicon Valley * * Use of this source code is governed by the 3-Clause BSD license * specified in the COPYING file included with this source code. */ #include <config.h> #include <cairo.h> #include "caskbench.h" #include "caskbench_context.h" #include "cairo-shapes....
mosheCrespin/moodle_plugin
moodle/lib/form/amd/src/showadvanced.js
<filename>moodle/lib/form/amd/src/showadvanced.js // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at y...
NaverCloudPlatform/ncloud-sdk-python
lib/services/clouddb/ncloud_clouddb/model/backup_file.py
# coding: utf-8 """ clouddb Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from ncloud_clouddb.model.common_code import CommonCode # noqa: F401,E501 class BackupFile(object): """NOTE: This class is auto generated by the swa...
helderhernandez/apaw-practice
src/test/java/es/upm/miw/apaw_practice/adapters/rest/tree_conservation/InspectorResourceIT.java
package es.upm.miw.apaw_practice.adapters.rest.tree_conservation; import es.upm.miw.apaw_practice.adapters.rest.RestTestConfig; import es.upm.miw.apaw_practice.domain.models.tree_conservation.InspectorName; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.spr...
pylipp/flask-jwt-extended
tests/test_get_methods_in_optional_endpoint.py
<filename>tests/test_get_methods_in_optional_endpoint.py<gh_stars>1000+ import pytest from flask import Flask from flask import jsonify from flask_jwt_extended import current_user from flask_jwt_extended import get_current_user from flask_jwt_extended import get_jwt from flask_jwt_extended import get_jwt_header from f...
yoikosugi/rails_tutorial_rspec
spec/system/following_spec.rb
<gh_stars>0 require 'rails_helper' RSpec.describe "FollowingPageFollowersPage", type: :system do let!(:user) { FactoryBot.create(:user) } let!(:other_user) { FactoryBot.create_list(:user, 50, :other_user)} let!(:relationship) { FactoryBot.create_list(:relationship, 5)} let!(:passive) { FactoryBot.create_list(:...
trompamusic/trompa-campaign-manager
src/redux/Startup/Startup.types.js
<gh_stars>0 const namespace = 'STARTUP'; export const STARTUP = `${namespace}/STARTUP`; export const STARTUP_SUCCESS = `${namespace}/STARTUP_SUCCESS`;
salesforce/bazel-jdt-java-toolchain
compiler/src/main/ecj/org/eclipse/jdt/internal/compiler/lookup/SortedCompoundNameVector.java
<reponame>salesforce/bazel-jdt-java-toolchain /******************************************************************************* * Copyright (c) 2019 <NAME> and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 * which accompanies this dist...
cwinand/diplomacy
db/seeds.rb
# This file should contain all the record creation needed to seed the database with its default values. # The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup). Country.create([ { country_code: 'de', name: 'germany' }, { country_code: 'fr', name: 'france' }, ...
Bholdus/explorer
packages/next/components/charts/lineChart.js
<reponame>Bholdus/explorer import { Axis, Chart, LineAdvance, Tooltip } from "bizcharts"; import styled from "styled-components"; import Image from "next/image"; const ChartWrapper = styled.div` svg, img { margin-top: 17px; } `; const Title = styled.h2` margin: 0; font-size: 12px; text-align: right; ...
Xellowse/Macaca
Module/HAL/ctor/src/ctor_hal_module.c
///////////////////////////////////////////////////////////////////////////////// // // File name: Module/CTOR/ctor_module.c // The CTOR (Constructor) is used to create/destroy Module's handle(instance). // Because of the HW Layer is the lower layer under HAL, HAL Module CTOR is not only // create HAL handle but also c...
maxiko/gitlabhq
spec/models/project_services/alerts_service_spec.rb
# frozen_string_literal: true require 'spec_helper' RSpec.describe AlertsService do let_it_be(:project) { create(:project) } let(:service_params) { { project: project, active: active } } let(:active) { true } let(:service) { described_class.new(service_params) } shared_context 'when active' do let(:act...
ArtTriumph/RxJavaDemo
app/src/main/java/com/nd/android/rxjavademo/data/impl/observable/MainListWithExample_Observable_toBlocking.java
package com.nd.android.rxjavademo.data.impl.observable; import com.nd.android.rxjavademo.R; import java.util.concurrent.TimeUnit; import rx.Observable; import rx.observables.BlockingObservable; /** * Observable_toBlocking * <p> * Created by HuangYK on 16/10/27. */ public class MainListWithExample_Observable_toB...
6923403/C
test/shared_ptr/shared/Strblob.h
#ifndef _STRBLOB_H_ #define _STRBLOB_H_ #include <vector> #include <string> #include <memory> #include <initializer_list> class StrBlob { public: typedef std::vector<std::string>::size_type size_type; StrBlob(); StrBlob(std::initializer_list<std::string> il); size_type size() cons...
muelli/scapi
src/java/edu/biu/scapi/primitives/dlog/cryptopp/CryptoPpDlogZpSafePrime.java
<gh_stars>1-10 /** * %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% * * Copyright (c) 2012 - SCAPI (http://crypto.biu.ac.il/scapi) * This file is part of the SCAPI project. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Permission is hereby granted, free of charge, t...
sakamoto-neko/butterfly
butterflymodel/src/main/java/com/buttongames/butterflymodel/model/UserPhases.java
package com.buttongames.butterflymodel.model; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.OneToOne; import javax.persistence.Table; import java.io.Externalizable; im...
code-dot-org/code-dot-org
apps/test/unit/util/getScriptDataTest.js
<reponame>code-dot-org/code-dot-org<filename>apps/test/unit/util/getScriptDataTest.js import getScriptData from '@cdo/apps/util/getScriptData'; import {expect} from '../../util/reconfiguredChai'; describe('the getScriptData function', () => { beforeEach(() => { const someDiv = document.createElement('div'); ...
cragkhit/elasticsearch
references/bcb_chosen_clones/selected#1529627#250#270.java
<gh_stars>10-100 public static Model downloadModel(String url) { Model model = ModelFactory.createDefaultModel(); try { URLConnection connection = new URL(url).openConnection(); if (connection instanceof HttpURLConnection) { HttpURLConnection httpConnection = ...
cpswan/docker
daemon/create_unix.go
<gh_stars>0 // +build !windows package daemon import ( "os" "path/filepath" containertypes "github.com/docker/docker/api/types/container" "github.com/docker/docker/container" derr "github.com/docker/docker/errors" "github.com/docker/docker/image" "github.com/docker/docker/pkg/stringid" "github.com/docker/doc...
MartyMcAir/-WebApps-Experimental-
!_ServersExpExamples/z_TestsExamples/SprBoot_Java_RestTest_MockMvc_habr527330/src/test/java/com/mscharhag/mockmvc/ProductControllerTest.java
package com.mscharhag.mockmvc; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; import org.springframework.boot.test.context.SpringBootTest; impor...
gfphoenix/win32
shobj/shobj_methods_64.go
<reponame>gfphoenix/win32 // Copyright 2012 The win Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // +build windows,amd64 windows,arm64 package shobj import ( "syscall" "unsafe" "github.com/gfphoenix/win32/handle" "github.co...
vectordb-io/vstl
origin_code/currencyNew.cpp
<reponame>vectordb-io/vstl<gh_stars>0 // test currency class with single data member amount #include <iostream> #include "currencyNew.h" using namespace std; int main() { currency g, h(plus, 3, 50), i, j; // try out both forms of setValue g.setValue(minus, 2, 25); i.setValue(-6.45); /...
mackwic/go-scalingo
scalingomock/signupservice_mock.go
<gh_stars>1-10 // Code generated by MockGen. DO NOT EDIT. // Source: github.com/Scalingo/go-scalingo/v4 (interfaces: SignUpService) // Package scalingomock is a generated GoMock package. package scalingomock import ( reflect "reflect" gomock "github.com/golang/mock/gomock" ) // MockSignUpService is a mock of Sign...
matoruru/purescript-react-material-ui-svgicon
src/MaterialUI/SVGIcon/Icon/Brightness1Sharp.js
exports.brightness1SharpImpl = require('@material-ui/icons/Brightness1Sharp').default;
pradeepk1905/Joindesk
Backend/src/main/java/com/ariseontech/joindesk/issues/domain/WorkflowTransitionProperties.java
package com.ariseontech.joindesk.issues.domain; import com.ariseontech.joindesk.AuditModel; import com.fasterxml.jackson.annotation.JsonIgnore; import lombok.Data; import lombok.EqualsAndHashCode; import javax.persistence.*; import javax.validation.constraints.NotNull; @Entity @Data @EqualsAndHashCode(callSuper = fa...
SafonovMikhail/python_000577
001146StepikPyBegin/Stepik001146PyBeginсh09p01st02TASK01_20210125.py
s = 'abcdefg' print(s[0] + s[2] + s[4] + s[6])
localwaves/node
lang/shared/src/main/scala/com/localplatform/lang/v1/evaluator/ctx/LazyVal.scala
package com.localplatform.lang.v1.evaluator.ctx import cats.data.EitherT import cats.implicits._ import com.localplatform.lang.TrampolinedExecResult import com.localplatform.lang.v1.task.CoevalRef import monix.eval.Coeval sealed trait LazyVal { val evaluated: CoevalRef[Boolean] = CoevalRef.of(false) val value: T...
wesleyfeitosa/devbarber
app/src/services/api.js
import AsyncStorage from '@react-native-community/async-storage'; const BASE_API = 'https://api.b7web.com.br/devbarber/api'; const api = { checkToken: async function (token) { const response = await fetch(`${BASE_API}/auth/refresh`, { method: 'POST', headers: { Accept: 'application/json', ...
niroshw/jenkins-artifactory-plugin-repo
src/main/java/org/jfrog/hudson/pipeline/steps/CreateGradleBuildStep.java
package org.jfrog.hudson.pipeline.steps; import hudson.Extension; import org.jenkinsci.plugins.workflow.steps.AbstractStepDescriptorImpl; import org.jenkinsci.plugins.workflow.steps.AbstractStepImpl; import org.jenkinsci.plugins.workflow.steps.AbstractSynchronousStepExecution; import org.jfrog.hudson.pipeline.types.Gr...
Altiscale/incubator-tez
tez-runtime-internals/src/main/java/org/apache/tez/runtime/metrics/GcTimeUpdater.java
<reponame>Altiscale/incubator-tez<filename>tez-runtime-internals/src/main/java/org/apache/tez/runtime/metrics/GcTimeUpdater.java<gh_stars>10-100 /** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with this * work for additional i...
NevzatBOL/ROS-Intermediate
mybot_ws/src/mybot_control/scripts/lidar_data_read.py
<reponame>NevzatBOL/ROS-Intermediate<gh_stars>0 #!/usr/bin/env python import numpy as np import math import rospy from sensor_msgs.msg import LaserScan def scancallback(scan): #print "Lidar Data : ", scan rangesCount = len(scan.ranges) #print "Ranges Count : ", rangesCount #print "Scan Ranges : "...
brunolauze/openpegasus-providers-old
src/Providers/UNIXProviders/RejectConnectionAction/UNIX_RejectConnectionAction_SOLARIS.hxx
#ifdef PEGASUS_OS_SOLARIS #ifndef __UNIX_REJECTCONNECTIONACTION_PRIVATE_H #define __UNIX_REJECTCONNECTIONACTION_PRIVATE_H #endif #endif
wuweiweiwu/babel
packages/babel-plugin-proposal-object-rest-spread/test/fixtures/object-rest/nested-array-2/output.js
const [a, [_ref], _ref2, [_ref3, { h: [i, _ref4] }]] = x; const { b } = _ref, c = babelHelpers.objectWithoutProperties(_ref, ["b"]), { d } = _ref2, e = babelHelpers.objectWithoutProperties(_ref2, ["d"]), { f } = _ref3, g = babelHelpers.objectWithoutProperties(_ref3, ["f"]), {...
Lunaticf/LeetCode
dynamicProgramming/wordBreak/WordBreak.java
<reponame>Lunaticf/LeetCode package leetCode.dynamicProgramming.wordBreak; import java.util.HashSet; import java.util.List; public class WordBreak { // TLE public boolean wordBreak(String s, List<String> wordDict) { // corner case if (wordDict.size() == 0 || s.length() == 0) return false; ...
ivosh/jcm2018
ui/web/src/registrator/EmailComposer/EmailComposerActions.js
<filename>ui/web/src/registrator/EmailComposer/EmailComposerActions.js import { API_SEND_EMAIL } from 'ui-common/common'; import { WS_API } from 'ui-common/store/wsAPI'; export const SEND_EMAIL = 'SEND_EMAIL'; export const sendEmail = ({ mailTo, subject, body }) => ({ [WS_API]: { type: SEND_EMAIL, endpoint: ...
Vizzuality/helix-scope
app/components/modals/MenuModal.js
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Modal from 'components/common/Modal'; import Button from 'components/common/Button'; import NavLink from 'components/common/NavLink'; class MenuModal extends Component { handleShareOpen() { this.props.setShareModal(true); t...
dopplershift/advent-of-code
2018/day16.py
<reponame>dopplershift/advent-of-code from ast import literal_eval class Computer: def __init__(self, regs=None): if regs is None: regs = [0, 0, 0, 0] self.regs = regs def addr(self, a, b, c): self.regs[c] = self.regs[a] + self.regs[b] def addi(self, a, b, c): ...
earaujoassis/watchman
console.rb
#!/usr/bin/env ruby # frozen_string_literal: true require "./lib/watchman" require "./lib/executor"
idoshveki/magma
symphony/app/fbcnms-projects/inventory/app/mutations/EditServiceMutation.js
/** * Copyright 2004-present Facebook. All Rights Reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. * * @flow * @format */ import RelayEnvironemnt from '../common/RelayEnvironment.js'; import {commitMutation, graphql} f...
nowkoai/test
ee/spec/models/project_security_setting_spec.rb
<filename>ee/spec/models/project_security_setting_spec.rb # frozen_string_literal: true require 'spec_helper' RSpec.describe ProjectSecuritySetting do using RSpec::Parameterized::TableSyntax describe 'associations' do subject { create(:project).security_setting } it { is_expected.to belong_to(:project) ...
ContextLogic/cldr
resources/locales/es_HN/calendar.go
<gh_stars>0 package es_HN import "github.com/ContextLogic/cldr" var calendar = cldr.Calendar{ Formats: cldr.CalendarFormats{ Date: cldr.CalendarDateFormat{Full: "EEEE dd 'de' MMMM 'de' y", Long: "dd 'de' MMMM 'de' y", Medium: "", Short: ""}, Time: cldr.CalendarDateFormat{}, DateTime: cldr.CalendarDateF...
jpluscplusm/paas-cf
platform-tests/src/platform/vendor/github.com/concourse/atc/db/migrations/11_replace_builds_abort_hijack_urls_with_guid_and_endpoint.go
package migrations import ( "database/sql" "net/url" "strings" "github.com/BurntSushi/migration" ) func ReplaceBuildsAbortHijackURLsWithGuidAndEndpoint(tx migration.LimitedTx) error { _, err := tx.Exec(`ALTER TABLE builds ADD COLUMN guid varchar(36)`) if err != nil { return err } _, err = tx.Exec(`ALTER T...
Adam-sHub/cfn-lint
test/unit/module/maintenance/test_update_iam_policies.py
<filename>test/unit/module/maintenance/test_update_iam_policies.py """ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: MIT-0 """ import sys import logging from test.testlib.testcase import BaseTestCase from mock import patch import cfnlint.maintenance LOGGER = logging.getLog...
atomic-reactor-cloud/Reactium-UI
src/app/components/common-ui/DatePicker/enums.js
export default { ALIGN: { LEFT: 'left', RIGHT: 'right', CENTER: 'center', }, DEBUG: false, EVENT: { CHANGE: 'change', INIT: 'init', NEXT: 'next', NAV: 'nav', PREV: 'prev', TODAY: 'today', }, FORMAT: { DATE: 'L', ...
wsxiaozhang/open-service-broker-alibabacloud
vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/cdn/migrate_domain_to_https_delivery.go
package cdn //Licensed under the Apache License, Version 2.0 (the "License"); //you may not use this file except in compliance with the License. //You may obtain a copy of the License at // //http://www.apache.org/licenses/LICENSE-2.0 // //Unless required by applicable law or agreed to in writing, software //distribut...
blinc/hibernate-memcached
src/main/java/com/googlecode/hibernate/memcached/strategy/Item.java
package com.googlecode.hibernate.memcached.strategy; import java.io.Serializable; import java.util.Comparator; import java.util.UUID; import org.hibernate.cache.spi.access.SoftLock; /** * Wrapper type representing unlocked items. */ public final class Item implements Serializable, Lockable { private static fi...
memfault/particle-firmware-library
src/memfault-firmware-sdk/components/core/src/memfault_log_data_source.c
<gh_stars>0 //! @file //! //! Copyright (c) Memfault, Inc. //! See License.txt for details //! #include "memfault-firmware-sdk/components/include/memfault/config.h" #if MEMFAULT_LOG_DATA_SOURCE_ENABLED #include "memfault_log_data_source_private.h" #include "memfault_log_private.h" #include <stdint.h> #include <stri...
RCoon/CodingBat
Java/array1/MakeMiddleTest.java
<reponame>RCoon/CodingBat package array1; import java.util.Arrays; /* * Given an array of ints of even length, return a new array length 2 containing * the middle two elements from the original array. The original array will be * length 2 or more. * * makeMiddle({1, 2, 3, 4}) --> {2, 3} * makeMiddle({7, 1, 2, ...
Mu-L/Castor3D
tools/GuiCommon/Properties/Math/MatrixProperties.inl
#include "GuiCommon/Properties/Math/MatrixProperties.hpp" #include "GuiCommon/Properties/Math/PointProperties.hpp" namespace GuiCommon { //************************************************************************************************ template<> inline castor::SquareMatrix< float, 2 > const & matrixRefFromVariant...
Winguweb/atuservicio_rails
db/migrate/20181005184847_create_survey.rb
<gh_stars>0 class CreateSurvey < ActiveRecord::Migration[5.2] def change create_table :surveys do |t| t.string :client_id, index: true t.integer :branch_id, index: true t.integer :step_id, index: true t.string :question_value t.integer :answer_id, index: true t.string :answer_v...
CKOGIT/cko-java-library
checkout/src/com/checkout/api/services/customer/request/CustomerUpdate.java
<reponame>CKOGIT/cko-java-library package com.checkout.api.services.customer.request; public class CustomerUpdate extends BaseCustomer { }
cisco-open/kubei
backend/pkg/database/resource_test.go
// Copyright © 2022 Cisco Systems, Inc. and its affiliates. // 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 //...
nikramakrishnan/codechef-solutions
Solutions/SALARY.cpp
<filename>Solutions/SALARY.cpp #include<iostream> #include<algorithm> using namespace std; int main(){ ios::sync_with_stdio(false); int t,n,fix; cin>>t; while(t--){ cin>>n; int flag=1,count=0,fix2; int w[n]; for(int i=0;i<n;i++){ cin>>w[i]; } sort(w,w+n); fix=n-1; fix2=fix; f...
chandu0101/sri
mobile-examples/src/main/scala/sri/mobile/examples/uiexplorer/apis/AppStateExample.scala
<filename>mobile-examples/src/main/scala/sri/mobile/examples/uiexplorer/apis/AppStateExample.scala package sri.mobile.examples.uiexplorer.apis import sri.core.ElementFactory._ import sri.core.ReactComponent import sri.mobile.ReactNative import sri.mobile.examples.uiexplorer.{UIExample, UIExplorerBlock, UIExplorerPage}...
ramacarlucho/evmos
x/recovery/types/keys.go
package types // constants const ( // ModuleName defines the recovery module name ModuleName = "recovery" // StoreKey to be used when creating the KVStore StoreKey = ModuleName // RouterKey to be used for message routing RouterKey = ModuleName )
cantona/NT6
nitan/clone/misc/mafu.c
<filename>nitan/clone/misc/mafu.c // mafu.c 馬伕 #include <ansi.h> inherit NPC; void create() { set_name("馬伕", ({ "<NAME>", "mafu", "ma"})); set("age", 32); set("gender", "男性"); set("long", "這是馬廄馴馬和小夥計,平時打理照料馬匹。\n"); set("attitude", "peaceful"); set("str", 24); se...
computop-services/mobile-android-sdk
sdk/src/main/java/com/wallee/android/sdk/util/HttpError.java
package com.wallee.android.sdk.util; /** * This error is thrown when there is a HTTP error in loading a web page. */ public final class HttpError extends Exception{ private final String url; private final String details; private final int httpStatusCode; public HttpError(String url, String details,...
openharmony-sig-ci/security_permission
services/permission_standard/distributedpermissionmanagerservice/test/mock/src/soft_bus_center_mock.cpp
/* * Copyright (c) 2021 Huawei Device Co., Ltd. * 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 ...
uk-gov-mirror/alphagov.content-data-api
app/domain/healthchecks/etl_metric_values.rb
module Healthchecks class EtlMetricValues include ActiveModel::Model include Concerns::Deactivable attr_accessor :metric def self.build(metric) new(metric: metric) end def name "etl_metric_values_#{metric}".to_sym end def status if number_of_metric_values.positive...