repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
suxingjie99/JavaSource
src/org/example/source/com/sun/org/apache/xerces/internal/dom/DOMImplementationImpl.java
/* * Copyright (c) 2007, 2019, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ /* * Copyright 1999-2002,2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file ex...
SpikeLavender/jdk-resource-code
sun/reflect/generics/tree/ShortSignature.java
/* * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package sun.reflect.generics.tree; import sun.reflect.generics.visitor.TypeTreeVisitor; /** AST that repres...
avinashkothagit/Org1Chart
server/routes/staticRoutes.js
var _ = require( 'lodash' ); var Config = require( '../../config' ); var route = { method: 'GET', path: '/dist/{param*}', handler: { directory: { path: './dist', lookupCompressed: true } } }; // add in caching config based on ENV cacheConfig = Config.getCacheCon...
Vizzuality/cw-ndc-tracking
db/migrate/20180501092235_change_country_iso_code_to_3_digit.rb
<reponame>Vizzuality/cw-ndc-tracking class ChangeCountryIsoCodeTo3Digit < ActiveRecord::Migration[5.1] def change change_column :users, :country_iso_code, :string, null: false, default: 'XXX', limit: 3 end end
wgnet/wds_qt
qtdeclarative/src/qml/qml/qqmlboundsignal.cpp
/**************************************************************************** ** ** Copyright (C) 2015 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** ** This file is part of the QtQml module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL21$ ** Commercial License Usage ** Licensees holding valid commerc...
kingscode/vue-cli-plugin-kingscode-scaffold
generator/templates/Default/src/plugins/vuetify/icons/kingscode.js
<gh_stars>0 import { faHome, faSearch, faUser, faUsers, faEye, faEyeSlash, faFile, faFileVideo, faFileWord, faFileExcel, faFilePowerpoint, faFilePdf, faUpload, } from '<%_ if (options.plugins.includes("fontawesomepro")){ _%> @fortawesome/pro-solid-svg-icons<%_ } else { _%> @fortawesome/free-so...
Ahmed-Adel-Ismail/OpenWeathrMaps
app/src/test/java/com/reactive/owm/presentation/features/splash/SplashViewModelTest.java
<reponame>Ahmed-Adel-Ismail/OpenWeathrMaps package com.reactive.owm.presentation.features.splash; import org.junit.Assert; import org.junit.Test; import java.lang.reflect.Field; import java.util.concurrent.TimeUnit; import io.reactivex.Observable; import io.reactivex.functions.Consumer; import io.reactivex.plugins.R...
cocolab8/cocktail
r2l/m2c/Scanner.c
#include "SYSTEM_.h" #ifndef DEFINITION_Checks #include "Checks.h" #endif #ifndef DEFINITION_rSystem #include "rSystem.h" #endif #ifndef DEFINITION_General #include "General.h" #endif #ifndef DEFINITION_Pack #include "Pack.h" #endif #ifndef DEFINITION_Position #include "Position.h" #endif #ifndef DEFINITION_IO #i...
lucadevitis-msm/ruby-puppetfiles
puppetfiles.gemspec
<gh_stars>0 # coding: utf-8 lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'puppetfiles/version' Gem::Specification.new do |spec| raise 'RubyGems 2.0 or newer is required.' unless spec.respond_to?(:metadata) spec.name = 'puppetfiles' spec.version = Pupp...
sharpninja/chrome-music-lab
soundwaves/third_party/tone/Tone/core/Buffer.js
<gh_stars>1000+ define(["Tone/core/Tone", "Tone/core/Emitter"], function(Tone){ "use strict"; /** * @class Buffer loading and storage. Tone.Buffer is used internally by all * classes that make requests for audio files such as Tone.Player, * Tone.Sampler and Tone.Convolver. * <b...
pgotsis/world
pkg/clothing/jewelry.go
package clothing import ( "context" "fmt" "github.com/ironarachne/world/pkg/random" ) const jewelryError = "failed to generate jewelry: %w" func generateJewelry(ctx context.Context) ([]string, error) { var chanceOfAdornment int var descriptor string var err error var jewelryItem string var itemType string ...
ganadist/r8
src/test/java/com/android/tools/r8/JavaCompilerTool.java
// Copyright (c) 2019, the R8 project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. package com.android.tools.r8; import static com.android.tools.r8.ToolHelper.isWindows; import static org.j...
adkateki/throneteki-sk
server/game/achievements/01-SoTFM/YouWillNeedABoat.js
<filename>server/game/achievements/01-SoTFM/YouWillNeedABoat.js<gh_stars>1-10 const Achievement = require('../../achievement.js'); class YouWillNeedABoat extends Achievement { check(){ return this.owner.faction.name=="House Baratheon" &&this.owner.game.allCards.filter(card => card.owner === this.owner && ...
NunoEdgarGFlowHub/open-data-certificate
db/migrate/20140918143425_add_completed_to_certificate_generator.rb
class AddCompletedToCertificateGenerator < ActiveRecord::Migration def change add_column :certificate_generators, :completed, :boolean end end
Willowsap/CS5535-Vue
Chapter06/Exercise6.06/tests/unit/messageInfo.spec.js
<filename>Chapter06/Exercise6.06/tests/unit/messageInfo.spec.js import { shallowMount } from '@vue/test-utils' import MessageInfo from '@/views/MessageInfo.vue' describe('Message.vue', () => { it('renders component', () => { const wrapper = shallowMount(MessageInfo, { propsData: { message: { sent: '123'}...
BearerPipelineTest/gitlabhq
app/models/concerns/runners_token_prefixable.rb
<gh_stars>0 # frozen_string_literal: true module RunnersTokenPrefixable # Prefix for runners_token which can be used to invalidate existing tokens. # The value chosen here is GR (for Gitlab Runner) combined with the rotation # date (20220225) decimal to hex encoded. RUNNERS_TOKEN_PREFIX = '<PASSWORD>' end
chae-heechan/Programmers_Python_Algorithm_Study
Level2/printer.py
def solution(priorities, location): answer = 0 count = 0 while True: if len(priorities) == 0: break if priorities[0] == max(priorities): count += 1 priorities.pop(0) if location == 0: return count else: ...
aggiechris/fleet
frontend/components/forms/RegistrationForm/KolideDetails/index.js
<gh_stars>0 export { default } from "./KolideDetails";
skjanyou/skjanyou-base
com.skjanyou.start/src/test/java/com/skjanyou/start/ApplicationStartTest.java
package com.skjanyou.start; import com.skjanyou.start.anno.Configure; import com.skjanyou.start.config.impl.PropertiesConfig; import com.skjanyou.start.start.SkjanyouApplicationStart; @Configure( configManagerFactory = PropertiesConfig.class, name = "测试配置props", scanPath = "com.skjanyou.start" ) public class Appl...
MC-JY/aws-sdk-java
aws-java-sdk-lookoutmetrics/src/main/java/com/amazonaws/services/lookoutmetrics/AmazonLookoutMetricsAsync.java
/* * Copyright 2016-2021 Amazon.com, Inc. or 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. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
thebrubaker/colony
game/needs/controller.go
package needs import ( "errors" "math" "github.com/thebrubaker/colony/keys" ) type needType string // Constants for each need type const ( Rest needType = "Rest" Food needType = "Food" Water needType = "Water" Security needType = "Security" Belonging needType = "Belonging" Fulfillm...
chenying-wang/usc-ee-coursework-public
ee450/project/common/logger.h
#include <iostream> #include <string> #include <chrono> #include <pthread.h> #ifndef __EE450_LOGGER #define __EE450_LOGGER class Logger { private: const static std::string ERROR; const static std::string INFO; const static std::string DEBUG; const static std::chrono::time_point<std::chrono::high_res...
115vidit/C133-Java
Main.java
<filename>Main.java<gh_stars>1-10 import java.util.Arrays; public class Main { static String[] argv; Main(String[] abc) { argv = abc; } // Utility function public static void main() { System.out.println("Fake main"); System.out.println(Arrays.toString(argv)); } //...
JaDogg/__py_playground
reference/TPG-3.2.2/tpg_tests_py2.py
<gh_stars>1-10 #!/usr/bin/env python # -*- coding: utf-8 -*- import re import sys import unittest import tpg print("*"*70) print("*") print("* Unit tests for %(__name__)s %(__version__)s (%(__date__)s)"%tpg.__dict__) print("*") print("* Platform : %s"%sys.platform.replace('\n', ' ')) print("* Version : %s"%sys.vers...
ccetc/mahaplatform.com
src/apps/maha/services/versions/update_version.js
import Version from '@apps/maha/models/version' import moment from 'moment' const getVersion = async (req, { versionable_type, versionable_id, key }) => { const version = await Version.query(qb => { qb.where('versionable_type', versionable_type) qb.where('versionable_id', versionable_id) qb.where('key',...
randolphwong/mcsema
boost/libs/math/example/policy_ref_snip9.cpp
// Copyright <NAME> 2007. // Copyright <NAME> 2010 // Use, modification and distribution are subject to 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) // Note that this file contains quickbook mark-up as well as code // and c...
copolat/mern
7.LessonSeven/reduxcounter/src/actions/counterAction.js
<reponame>copolat/mern import { INCREASE_COUNT, DECREASE_COUNT } from './actionTypes' export const increaseCount = ()=>{ return {type: INCREASE_COUNT} } export const decreaseCount = ()=>{ return {type: DECREASE_COUNT} }
mohammadne/bookman
services/library/cmd/migrate/main.go
package migrate import ( "os" "github.com/mohammadne/bookman/library/internal/configs" "github.com/mohammadne/bookman/library/internal/database" "github.com/mohammadne/bookman/library/pkg/logger" "github.com/mohammadne/bookman/library/pkg/tracer" "github.com/spf13/cobra" ) const ( use = "migrate" short = "...
TomographyLab/NiftyRec
teem/src/ten/modelBall1Stick.c
/* Teem: Tools to process and visualize scientific data and images Copyright (C) 2008, 2007, 2006, 2005 <NAME> Copyright (C) 2004, 2003, 2002, 2001, 2000, 1999, 1998 University of Utah This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser Ge...
2719969254/leyou
leyou/ly-item/ly-item-interface/src/main/java/com/leyou/item/api/SpecificationApi.java
<filename>leyou/ly-item/ly-item-interface/src/main/java/com/leyou/item/api/SpecificationApi.java<gh_stars>0 package com.leyou.item.api; import com.leyou.item.pojo.SpecGroup; import com.leyou.item.pojo.SpecParam; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.R...
xcgx/streamlink
src/streamlink/plugins/vk.py
import logging import re from html import unescape as html_unescape from urllib.parse import parse_qsl, unquote, urlparse from streamlink.exceptions import NoStreamsError from streamlink.plugin import Plugin, pluginmatcher from streamlink.plugin.api import useragents from streamlink.plugin.api.utils import itertags fr...
zhangrui95/BigShow1
src/pages/MiddlePlatform/EquipmentUnitTable.js
// 办案区- 硬件设备单元表格 by zhangying 2018-02-27 import React, { PureComponent } from 'react'; import moment from 'moment'; import { Table, Button, Badge, Divider, Popconfirm, Tooltip } from 'antd'; import styles from './EquipmentUnitTable.less'; class EquipmentUnitTable extends PureComponent { state = { selectedR...
anshsarkar/TailBench
moses/moses/TranslationModel/RuleTable/PhraseDictionaryALSuffixArray.h
<filename>moses/moses/TranslationModel/RuleTable/PhraseDictionaryALSuffixArray.h // // PhraseDictionaryALSuffixArray.h // moses // // Created by <NAME> on 06/11/2011. // Copyright 2011 __MyCompanyName__. All rights reserved. // #ifndef moses_PhraseDictionaryALSuffixArray_h #define moses_PhraseDictionaryALSuffixArr...
CraigRichards/healenium-web
src/main/java/com/epam/healenium/processor/HealingElementsProcessor.java
package com.epam.healenium.processor; import com.epam.healenium.model.LastHealingDataDto; import com.epam.healenium.treecomparing.Node; import lombok.extern.slf4j.Slf4j; import org.openqa.selenium.WebElement; import java.util.List; /** * Healing Elements Processor */ @Slf4j public class HealingElementsProcessor ex...
mphan6/30-seconds-of-code
test/sumBy/sumBy.test.js
const expect = require('expect'); const sumBy = require('./sumBy.js'); test('sumBy is a Function', () => { expect(sumBy).toBeInstanceOf(Function); });
ASangarin/MonHun
src/main/java/eu/asangarin/monhun/util/enums/MHBreakablePart.java
package eu.asangarin.monhun.util.enums; public enum MHBreakablePart { HEAD, WING, BACK, UNSPECIFIED; public static MHBreakablePart fromString(String key) { for(MHBreakablePart part : MHBreakablePart.values()) if(part.name().equalsIgnoreCase(key)) return part; return MHBreakablePart.UNSPECIFIED; } }
TDesjardins/vue-gwt
processors/src/test/java/com/axellience/vuegwt/processors/component/propertybinding/PropertyBindingTest.java
<reponame>TDesjardins/vue-gwt package com.axellience.vuegwt.processors.component.propertybinding; import static com.google.testing.compile.CompilationSubject.assertThat; import static com.google.testing.compile.Compiler.javac; import com.axellience.vuegwt.processors.VueGwtProcessor; import com.google.testing.compile....
rafaelmotaalves/titan
titan-cassandra/src/test/java/com/thinkaurelius/titan/diskstorage/cassandra/thrift/ThriftDistributedStoreManagerTest.java
<reponame>rafaelmotaalves/titan package com.thinkaurelius.titan.diskstorage.cassandra.thrift; import com.thinkaurelius.titan.diskstorage.BackendException; import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; import com.thinkaurelius.titan.CassandraStorageSetup; import com.thinkaurelius.titan...
truemrwalker/wblwrld3
serverside/bootstrap/webbles.js
<gh_stars>1-10 // // Webble World 3.0 (IntelligentPad system for the web) // // Copyright (c) 2010-2015 <NAME>, <NAME>, <NAME>aka // in Meme Media R&D Group of Hokkaido University, Japan. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except i...
tiagoros/gravitee-api-management
gravitee-apim-rest-api/gravitee-apim-rest-api-management/gravitee-apim-rest-api-management-rest/src/main/java/io/gravitee/rest/api/management/rest/mapper/ObjectMapperResolver.java
<reponame>tiagoros/gravitee-api-management /** * Copyright (C) 2015 The Gravitee team (http://gravitee.io) * * 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...
salmanahmedshaikh/streamOLAPOptimization
code/src/Dispatcher/DispatcherManager.h
<gh_stars>1-10 ////////////////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2017 KDE Laboratory, University of Tsukuba, Tsukuba, Japan. // // // // The JsSpinnerSPE/StreamingCub...
enyojs/ares-project
scripts/postpublish.js
<gh_stars>10-100 /*jshint node:true*/ /*global console, require*/ var shell = require('shelljs'), deploys = require('./common.js').deploys; deploys.forEach(function(app) { console.log("> rm -rf " + app.o); shell.rm("-rf", app.o); });
Samer-Alnajjar/data-structures-and-algorithms
javascript/code-challenges/fizzBuzzTree/fizz-buzz-tree.js
<filename>javascript/code-challenges/fizzBuzzTree/fizz-buzz-tree.js "use strict" class Node { constructor(value) { this.value = value; this.children = []; } } class BinaryTree { constructor(root = null) { this.root = root; } } function fizzBuzzTree(node) { let i = 0; if (!node) { return "...
ministryofjustice/opg-lpa-front
assets/js/moj/moj.modules/moj.analytics.js
// Analytics module for LPA // Dependencies: moj, jQuery (function () { 'use strict'; if (typeof(gaConfig) === 'undefined') { moj.log('gaConfig not set. skipping Google Analytics tracking.'); return; } moj.Modules.Analytics = { init: function () { GOVUK.Analytics.load(); this.setup()...
Mouned/esigate
esigate-servlet/src/main/java/org/esigate/servlet/impl/HttpServletRequestEntity.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 * distributed ...
georghe-crihan/ext2fsx
src/ext2_byteorder.h
<filename>src/ext2_byteorder.h /* * Copyright 2003,2006 <NAME>. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this list of * co...
L-Net-1992/DALI
dali/kernels/signal/resampling_cpu.h
<gh_stars>0 // Copyright (c) 2022, NVIDIA CORPORATION & 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...
Sinope-Nanto/city_house
city_housing_index/local_auth/models.py
<gh_stars>0 import random import uuid from django.db import models from django.contrib.auth.models import User from .enum import UserRole, UserStatus # Create your models here. from django.db.models import SET_NULL from city.models import City class UserProfile(models.Model): user_id = models.ForeignKey(User, ...
md2manoppello/MDEForge
mdeforge.client/src/main/java/org/mdeforge/business/model/ATLTransformationTestServiceError.java
<filename>mdeforge.client/src/main/java/org/mdeforge/business/model/ATLTransformationTestServiceError.java package org.mdeforge.business.model; import java.io.Serializable; public class ATLTransformationTestServiceError implements Serializable{ //INNER CLASS AND ENUMERATES /** attribut...
Ouranosinc/Magpie
magpie/ui/home/__init__.py
<filename>magpie/ui/home/__init__.py from magpie.utils import get_logger LOGGER = get_logger(__name__) def includeme(config): LOGGER.info("Adding UI home...") config.add_route("home", "/") config.add_route("home_ui", "/ui") config.add_route("error", "/ui/error") config.add_static_view("static", "...
mpol/iis
iis-common/src/main/java/eu/dnetlib/iis/common/spark/pipe/PipeExecutionEnvironment.java
package eu.dnetlib.iis.common.spark.pipe; import java.io.IOException; /** * Abstraction of execution environment for scripts and commands run using 'pipe' method on RDD. * <p> * Classes implementing this interface should propagate any necessary files and directories to cluster nodes and define * the command to be...
opencollective/cloud
cloud2cloud-gateway/service/config.go
package service import ( "encoding/json" "fmt" "time" "github.com/go-ocf/kit/net/grpc" ) //Config represent application configuration type Config struct { grpc.Config AuthServerAddr string `envconfig:"AUTH_SERVER_ADDRESS" default:"127.0.0.1:9100"` ResourceAggregateAddr string `envconfig:"...
doriandrn/rxdb
dist/lib/plugins/update.js
<reponame>doriandrn/rxdb 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.prototypes = exports.rxdb = exports.RxQueryUpdate = undefined; var _regenerator = require('babel-runtime/regenerator'); var _regenerator2 = _interopRequireDefault(_regenerator); var _asyncToGenerator2 =...
DN-debug/bauh
bauh/gems/snap/snapd.py
import socket import traceback from logging import Logger from typing import Optional, List from requests import Session from requests.adapters import HTTPAdapter from urllib3.connection import HTTPConnection from urllib3.connectionpool import HTTPConnectionPool from bauh.commons.system import run_cmd URL_BASE = 'ht...
acelaya/android-course
Fragments2/app/src/main/java/com/alejandrocelaya/fragments2/ListFragment.java
<reponame>acelaya/android-course package com.alejandrocelaya.fragments2; import android.content.Context; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import c...
SensiEDGE/SensiSUB6LoWPANGateway
Projects/Multi/Applications/LWM2M_to_IBM/Src/lwm2m-simple-server.c
<filename>Projects/Multi/Applications/LWM2M_to_IBM/Src/lwm2m-simple-server.c /** ****************************************************************************** * @file lwm2m-simple-server.c * @author Central LAB * @version V1.0.0 * @date 11-April-2017 * @brief LWM2M simple server ****************...
tonychew1986/algorand-ide
app/components/MainnetDisclaimer/messages.js
/* * MainnetDisclaimer Messages * * This contains all the text for the MainnetDisclaimer component. */ import { defineMessages } from 'react-intl'; export const scope = 'app.components.MainnetDisclaimer'; export default defineMessages({ header: { id: `${scope}.header`, defaultMessage: 'This is the Main...
Will-Robin/NorthNet
NorthNet/Classes/data_classes.py
import numpy as np from pathlib import Path class Experiment_Information: def __init__(self, name, path, parameters, modulation): ''' name: str path: str parameters: dict ''' self.name = name self.path = path self.parameters = parameters self....
JrGoodle/djinni
test-suite/generated-src/objc/DBPrimitiveList.h
<gh_stars>1000+ // AUTOGENERATED FILE - DO NOT MODIFY! // This file generated by Djinni from primitive_list.djinni #import <Foundation/Foundation.h> @interface DBPrimitiveList : NSObject - (nonnull instancetype)initWithList:(nonnull NSArray<NSNumber *> *)list; + (nonnull instancetype)primitiveListWithList:(nonnull NS...
pcaston/core
openpeerpower/components/thethingsnetwork/__init__.py
<reponame>pcaston/core """Support for The Things network.""" import voluptuous as vol import openpeerpower.helpers.config_validation as cv CONF_ACCESS_KEY = "access_key" CONF_APP_ID = "app_id" DATA_TTN = "data_thethingsnetwork" DOMAIN = "thethingsnetwork" TTN_ACCESS_KEY = "ttn_access_key" TTN_APP_ID = "ttn_app_id"...
leoclee/agent
src/main/java/org/nhindirect/stagent/cert/impl/UniformCertificateStore.java
/* Copyright (c) 2010, NHIN Direct Project All rights reserved. Authors: <NAME> <EMAIL> <NAME> <EMAIL> Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain t...
lanpinguo/apple-sauce
util/rpc/rpcclt/include/rpcclt_support.h
/********************************************************************* * * (C) Copyright Broadcom Corporation 2001-2014 * ********************************************************************** * * @filename rpcclt_support.h * * @purpose RPC client wrapper support header file. * * @component luaweb * * @comments * * ...
sundayios/DTCoreTextLayout
Pods/Headers/Public/DTRichTextEditor/DTTextSelectionView.h
<filename>Pods/Headers/Public/DTRichTextEditor/DTTextSelectionView.h // // DTTextSelectionView.h // DTRichTextEditor // // Created by <NAME> on 7/7/11. // Copyright 2011 Cocoanetics. All rights reserved. // #import <UIKit/UIKit.h> /** The type of a selection */ typedef NS_ENUM(NSUInteger, DTTextSelectionStyle) ...
alpaca-tc/language_server-rails
spec/language_server_rails/service/hover_service_spec.rb
<filename>spec/language_server_rails/service/hover_service_spec.rb # frozen_string_literal: true RSpec.describe LanguageServerRails::Service::HoverService do describe do shared_context 'jsonrpc fixture' do |path, prefix: ''| fixture_path = File.expand_path('../../../fixtures/jsonrpc', __FILE__) let(...
webdevhub42/Lambda
WEEKS/CD_Sata-Structures/general/practice/minimumOnStack/solution.py
import re def minimumOnStack(operations): l = [] out = [] for i in operations: if "push" in i: l.append(int(i[i.index(" ") + 1 :])) elif "pop" in i: l.pop() else: out.append(min(l)) return out operations = [ "push 10", "min", "p...
Swan-Finance-Inc/swan_ico
app/containers/SecurityPage/index.js
<filename>app/containers/SecurityPage/index.js /** * * SecurityPage * */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { compose } from 'redux'; import { Redirect } from 'react-router'; import { Helm...
SUSE/azure-sdk-for-python
azure-mgmt/tests/test_mgmt_recoveryservices_backup.py
# coding: utf-8 #------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #----------------------------------------------------------------------...
dimitarp/basex
basex-core/src/main/java/org/basex/query/expr/constr/CArray.java
<reponame>dimitarp/basex<filename>basex-core/src/main/java/org/basex/query/expr/constr/CArray.java package org.basex.query.expr.constr; import org.basex.query.*; import org.basex.query.expr.*; import org.basex.query.iter.*; import org.basex.query.value.array.*; import org.basex.query.value.item.*; import org.basex.que...
kepac122/ringteki
test/server/cards/13-CW/ImbuedWithShadows.spec.js
<reponame>kepac122/ringteki<gh_stars>10-100 describe('Imbued with Shadows', function() { integration(function() { describe('Imbued with Shadows\'s ability', function() { beforeEach(function() { this.setupTest({ phase: 'conflict', player1: {...
zzzpre/movielib
movieLibrary/src/main/java/com/kanba/movie/event/MainTabChangeEvent.java
<filename>movieLibrary/src/main/java/com/kanba/movie/event/MainTabChangeEvent.java<gh_stars>0 package com.kanba.movie.event; public class MainTabChangeEvent { private int index; public int getIndex() { return index; } public void setIndex(int index) { this.index = index; } pu...
hashgraph/hedera-stable-coin-demo
stable-coin-platform/src/main/java/com/hedera/hashgraph/stablecoin/platform/db/Public.java
/* * This file is generated by jOOQ. */ package com.hedera.hashgraph.stablecoin.platform.db; import com.hedera.hashgraph.stablecoin.platform.db.tables.Account; import com.hedera.hashgraph.stablecoin.platform.db.tables.AddDimension; import com.hedera.hashgraph.stablecoin.platform.db.tables.AlterJobSchedule; import c...
Oroles/Hlin-PasswordManager
Phone/app/src/main/java/com/example/oroles/hlin/ReceivedMessage/ReceivedErrorMessage.java
<gh_stars>0 package com.example.oroles.hlin.ReceivedMessage; import com.example.oroles.hlin.Controllers.ReceivedProcessorController; import com.example.oroles.hlin.InterfacesControllers.IStore; public class ReceivedErrorMessage extends ReceivedMessage { public ReceivedErrorMessage(IStore store, ReceivedProcesso...
WelcomerTeam/Discord
discord/emoji.go
package discord // emoji.go contains all structures for emojis. // Emoji represents an Emoji on discord. type Emoji struct { ID Snowflake `json:"id"` GuildID *Snowflake `json:"guild_id,omitempty"` Name string `json:"name"` Roles []Snowflake `json:"roles,omitempty"` User ...
benety/mongo
jstests/replsets/standalone_replication_recovery_prepare_only.js
/** * Tests that we can recover a transaction that was prepared (but not yet committed) using the * 'recoverFromOplogAsStandalone' flag. * * This test only makes sense for storage engines that support recover to stable timestamp. * @tags: [requires_persistence, requires_journaling, requires_replication, * require...
insaneFactory/conan-geos
test_package/tests/unit/capi/GEOSGeom_createCollectionTest.cpp
<reponame>insaneFactory/conan-geos // // Test Suite for C-API GEOSGeom_createCollection #include <tut/tut.hpp> // geos #include <geos_c.h> // std #if (defined(_MSC_VER) && _MSC_VER >= 1600) || __cplusplus > 199711L || defined(__GXX_EXPERIMENTAL_CXX0X__) #include <array> #endif #include <cstdarg> #include <cstdio> #inc...
Robert-byte-s/mall-project
mall-product/src/main/java/org/june/product/dao/SpuImagesDao.java
package org.june.product.dao; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; import org.june.product.entity.SpuImagesEntity; /** * spu图片 * * @author lishaobo * @email <EMAIL> * @date 2022-02-06 18:53:44 */ @Mapper public interface SpuImagesDao extends BaseMa...
paulyc/ghidra
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/references/ClearExternalNameAssociationAction.java
<gh_stars>1-10 /* ### * IP: GHIDRA * REVIEWED: YES * * 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 appli...
Jrgriss2/chi-tech
ChiTech/ChiMath/Quadratures/SLDFESQ/lua/create_sldfesq_quadrature.cc
#include "ChiLua/chi_lua.h" #include "../sldfe_sq.h" #include "ChiMath/chi_math.h" extern ChiMath& chi_math_handler; //################################################################### /** Creates a Simplified Linear Discontinuous Finite Element (SLDFE) quadrature based on Spherical Quadrilaterals (SQ). Hence ...
bealbrown/allhours
locations/spiders/noted/ross_dress.py
<gh_stars>0 # -*- coding: utf-8 -*- import scrapy import json from locations.hourstudy import inputoutput class RossDressSpider(scrapy.Spider): name = "ross_dress" allowed_domains = ["hosted.where2getit.com"] start_urls = ( 'https://hosted.where2getit.com/rossdressforless/2014/ajax?&xml_request=<...
janforp/mybatis
src/test/java/org/apache/ibatis/type/GenericTypeSupportedInHierarchiesTestCase.java
package org.apache.ibatis.type; import org.junit.Test; import java.lang.reflect.Type; import java.sql.PreparedStatement; import java.sql.SQLException; import static org.junit.Assert.assertEquals; public class GenericTypeSupportedInHierarchiesTestCase { @Test public void detectsTheGenericTypeTraversingTheHi...
waleedsamy/GPGMail
MailHeaders/HighSierra-10.13_17A362a_CLEANUP/IMAP/IMAPEnableCommand.h
<gh_stars>0 // // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import <IMAPSingleCommand.h> @class NSArray; @interface IMAPEnableCommand : IMAPSingleCommand { NSArray *_capabilities; } @property(readonly, copy, nonatomic) NSArray ...
RockerHX/FishChat
WeChat-Headers/FTSFavUtil.h
<filename>WeChat-Headers/FTSFavUtil.h // // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @interface FTSFavUtil : NSObject { } + (id)getLastFavItem; + (id)getChatRoomDisplayName:(id)arg1; + (id)getNormalContactDispla...
software-fundamentals/WraithEngine3
WraithEngine/src/main/java/net/whg/we/rendering/VertexData.java
package net.whg.we.rendering; public class VertexData { private float[] _data; private short[] _triangles; private ShaderAttributes _attributes; public VertexData(float[] data, short[] triangles, ShaderAttributes attributes) { _data = data; _triangles = triangles; _attributes = attributes; } public floa...
darylf/Longbox-rails
api/app/graphql/resolvers/truncatable.rb
<filename>api/app/graphql/resolvers/truncatable.rb module Resolvers module Truncatable def trunc_list(items, limit) return items if limit.nil? items.take(limit) end end end
shane-kercheval/oo-learning
oolearning/evaluators/ScoreActualPredictedBase.py
from abc import abstractmethod from typing import Union import numpy as np import pandas as pd from oolearning.evaluators.ScoreBase import ScoreBase class ScoreActualPredictedBase(ScoreBase): def _execute(self, actual_values: np.ndarray, predicted_values: Union[np.ndarray, pd.D...
JoachimFalk/dse-opendse
opendse-encoding/src/main/java/net/sf/opendse/encoding/routing/EndNodeEncoder.java
<gh_stars>1-10 package net.sf.opendse.encoding.routing; import java.util.Set; import org.opt4j.satdecoding.Constraint; import com.google.inject.ImplementedBy; import net.sf.opendse.encoding.MappingEncoding; import net.sf.opendse.encoding.variables.DDdR; import net.sf.opendse.encoding.variables.DDsR; import net.sf.o...
Rouche/Utilities
src/org/kitfox/mvel/TestMvel.java
<gh_stars>0 package org.kitfox.mvel; import java.io.Serializable; import java.util.HashMap; import java.util.Map; import org.junit.Test; import org.mvel2.MVEL; import org.mvel2.Macro; import org.mvel2.MacroProcessor; import org.mvel2.ParserContext; import org.mvel2.ast.ASTNode; import org.mvel2.integratio...
jonboland/colosseum
tests/web_platform/css_grid_1/grid_items/test_grid_layout_z_order_a.py
from tests.utils import W3CTestCase class TestGridLayoutZOrderA(W3CTestCase): vars().update(W3CTestCase.find_tests(__file__, 'grid-layout-z-order-a'))
johanngoltz/graphql-maven-plugin-project
graphql-maven-plugin-samples/graphql-maven-plugin-samples-Forum-client/src/main/java/com/graphql_java_generator/samples/forum/client/Main.java
package com.graphql_java_generator.samples.forum.client; import java.util.Calendar; import com.graphql_java_generator.exception.GraphQLRequestExecutionException; import com.graphql_java_generator.exception.GraphQLRequestPreparationException; import com.graphql_java_generator.samples.forum.client.graphql.PartialDirect...
DriftyDev/-CLEAN_Kami5-1.8-BUILDABLE_SRC
src/main/java/tech/mmmax/kami/mixin/mixins/access/ISPacketPlayerPosLook.java
<filename>src/main/java/tech/mmmax/kami/mixin/mixins/access/ISPacketPlayerPosLook.java /* * Decompiled with CFR 0.151. * * Could not load the following classes: * net.minecraft.network.play.server.SPacketPlayerPosLook */ package tech.mmmax.kami.mixin.mixins.access; import net.minecraft.network.play.server.SPack...
Mu-L/Castor3D
source/Core/Castor3D/Buffer/UniformBufferPool.cpp
#include "Castor3D/Buffer/UniformBufferPool.hpp" #include "Castor3D/Engine.hpp" #include "Castor3D/Render/RenderSystem.hpp" #include <ashespp/Buffer/StagingBuffer.hpp> #include <ashespp/Command/CommandBuffer.hpp> #include <ashespp/Core/Device.hpp> namespace castor3d { namespace details { inline void copyBuffer(...
pegnet/PegNetPool
pegnet/pegnet.go
<filename>pegnet/pegnet.go<gh_stars>1-10 package pegnet import ( "github.com/jinzhu/gorm" "github.com/Factom-Asset-Tokens/factom" "github.com/FactomWyomingEntity/prosper-pool/config" "github.com/FactomWyomingEntity/prosper-pool/database" "github.com/FactomWyomingEntity/prosper-pool/factomclient" "github.com/peg...
Silwings-git/silwings-aliutils
alioss-spring-boot-starter/src/main/java/com/silwings/img/starter/service/impl/DefaultImgServiceImpl.java
package com.silwings.img.starter.service.impl; import com.silwings.img.starter.service.ImgService; import com.silwings.img.starter.service.ImgUpLoader; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.multipart.MultipartFile; import java.io.IOException; import java.io.Inp...
davidarnarsson/GUnit
gunit-maven-plugin/src/main/java/edu/chl/gunit/plugin/GUnitMojo.java
package edu.chl.gunit.plugin; import edu.chl.gunit.commons.api.*; import edu.chl.gunit.commons.input.jacoco.JaCoCoCSVReader; import edu.chl.gunit.commons.input.jacoco.JaCoCoResultException; import edu.chl.gunit.commons.input.junit.JUnitResultException; import edu.chl.gunit.commons.input.junit.JUnitXMLReader; import e...
vito/atomy
lib/atomy/compiler.rb
<reponame>vito/atomy require "atomy/locals" require "rubinius/code/compiler" module Atomy module Compiler module_function def compile(node, mod, state = LocalState.new) package(mod.file, 0, state) do |gen| mod.compile(gen, node) end end def package(file, line = 0, state = LocalS...
ScalablyTyped/SlinkyTyped
k/kythe/src/main/scala/typingsSlinky/kythe/mod/Entry.scala
<filename>k/kythe/src/main/scala/typingsSlinky/kythe/mod/Entry.scala<gh_stars>10-100 package typingsSlinky.kythe.mod import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} @js.native ...
mohdab98/cmps252_hw4.2
src/cmps252/HW4_2/UnitTesting/record_584.java
<reponame>mohdab98/cmps252_hw4.2 package cmps252.HW4_2.UnitTesting; import static org.junit.jupiter.api.Assertions.*; import java.io.FileNotFoundException; import java.util.List; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter...
CynthiaProtector/helo
nnvm/tvm/src/codegen/intrin_rule_opencl.cc
/*! * Copyright (c) 2017 by Contributors * \file intrin_rule_opencl.cc * \brief OpenCL intrinsic rules. */ #include "./intrin_rule.h" namespace tvm { namespace codegen { namespace intrin { TVM_REGISTER_GLOBAL("tvm.intrin.rule.opencl.exp") .set_body(DispatchExtern<FloatDirect>); TVM_REGISTER_GLOBAL("tvm.intrin.r...
mrgiser/BBS
src/main/java/cn/he/zhao/bbs/entityUtil/my/Pagination.java
package cn.he.zhao.bbs.entityUtil.my; /** * 描述: * Pagination * * @Author HeFeng * @Create 2018-07-27 17:35 */ public final class Pagination { public static final String PAGINATION = "pagination"; public static final String PAGINATION_PAGE_COUNT = "paginationPageCount"; public static final String PAGI...
gomatcha/mochi
comm/notify.go
<gh_stars>1-10 package comm import ( "image/color" "time" ) type Id int64 type Notifier interface { Notify(func()) Id Unnotify(Id) } type ColorNotifier interface { Notifier Value() color.Color } type InterfaceNotifier interface { Notifier Value() interface{} } type BoolNotifier interface { Notifier Valu...