repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
threerings/game-gardens
client/src/main/java/com/threerings/gardens/lobby/MapViewer.java
// // Game Gardens - a platform for hosting simple multiplayer Java games // Copyright (c) 2005-2013, Three Rings Design, Inc. - All rights reserved. // https://github.com/threerings/game-gardens/blob/master/LICENSE package com.threerings.gardens.lobby; import java.util.HashMap; import java.util.Map; import com.goog...
jpintoduarte76/FarLands
src/main/java/net/farlands/sanctuary/mechanic/AFK.java
package net.farlands.sanctuary.mechanic; import com.kicas.rp.util.Pair; import net.farlands.sanctuary.FarLands; import net.farlands.sanctuary.command.FLCommandEvent; import net.farlands.sanctuary.command.player.CommandMessage; import net.farlands.sanctuary.command.staff.CommandVanish; import net.farlands.sanctuary.dat...
SkyCraft78/DiSky3
src/main/java/info/itsthesky/disky3/core/skript/properties/member/MemberNickname.java
<reponame>SkyCraft78/DiSky3 package info.itsthesky.disky3.core.skript.properties.member; import ch.njol.skript.classes.Changer; import ch.njol.skript.lang.Expression; import ch.njol.skript.lang.SkriptParser; import ch.njol.util.Kleenean; import ch.njol.util.coll.CollectionUtils; import info.itsthesky.disky3.DiSky; imp...
LukasGasior1/crypto-tool
src/main/scala/cryptotool/ext/bittrex/api/model.scala
package cryptotool.ext.bittrex.api import java.util.Date case class BalanceItem( currency: String, balance: Double, available: Double, pending: Double, cryptoAddress: Option[String], requested: Option[Boolean], uuid: Option[String]) case class OrderHistoryItem( orderUuid : String, ...
sqreen/dd-trace-java
test-published-dependencies/src/main/java/test/published/dependencies/App.java
package test.published.dependencies; public class App { public static void main(String[] args) { System.out.println("Test published dependencies!"); } }
rnarla123/aliyun-openapi-java-sdk
aliyun-java-sdk-cloudapi/src/main/java/com/aliyuncs/cloudapi/transform/v20160714/DescribeApiTrafficControlsResponseUnmarshaller.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 u...
Voloshch/storage
src/Components/GeneralComponents/contentPage.js
import React from 'react'; import { Grid, Loader } from 'semantic-ui-react'; import messages from '../../Messages'; import PropTypes from 'prop-types'; import NoContent from './noContent'; import GeneralHeader from './generalHeader'; const ContentPage = ({ status, pageData, title, noContentMessage, componentDataList, ...
ksmonkey123/moba2
core/src/main/java/ch/awae/moba2/core/control/ProcessorService.java
<filename>core/src/main/java/ch/awae/moba2/core/control/ProcessorService.java<gh_stars>0 package ch.awae.moba2.core.control; import ch.awae.moba2.common.LogHelper; import ch.awae.moba2.core.lights.LightModel; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.ApplicationC...
mymong/FlexboxCanvas
FlexboxCanvas/Foundation/Variable/FCVariableListener.h
<filename>FlexboxCanvas/Foundation/Variable/FCVariableListener.h // // FCVariableListener.h // FlexboxCanvas // // Created by <NAME> on 2021/7/28. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @protocol FCVariableListener <NSObject> - (void)onChangeVariableForName:(NSString *)name; @end NS_ASSUME_...
DAC-KOJI-EGUCHI/Prebid.js
test/spec/modules/googleAnalyticsAdapter_spec.js
import ga from 'modules/googleAnalyticsAdapter'; var assert = require('assert'); describe('Ga', function () { describe('enableAnalytics', function () { it('should accept a tracker name option and output prefixed send string', function () { var config = { options: { trackerName: 'foo' } }; ga.enableA...
GeorgeDeac/project-athena
unpublishedScripts/DomainContent/Toybox/basketball/createRack.js
<filename>unpublishedScripts/DomainContent/Toybox/basketball/createRack.js<gh_stars>10-100 // // createRack.js // // Created by <NAME> @imgntn on 10/5/2015 // Copyright 2015 High Fidelity, Inc. // // This is a script that creates a persistent basketball rack. // // Distributed under the Apache License, Version 2.0...
yukihiko-shinoda/zaim-csv-converter
convert.py
<gh_stars>1-10 #!/usr/bin/env python """This module implements only calling Zaim CSV converter package.""" from zaimcsvconverter.zaim_csv_converter import ZaimCsvConverter def main() -> None: """This function calls Zaim CSV converter package.""" ZaimCsvConverter.execute() if __name__ == "__main__": main...
thucnt93/MailCoreStaticLib
mailcore2/src/java/native/com_libmailcore_SMTPCheckAccountOperation.cpp
<gh_stars>1000+ #include "com_libmailcore_SMTPCheckAccountOperation.h" #include "MCBaseTypes.h" #include "JavaHandle.h" #include "TypesUtils.h" #include "MCSMTPCheckAccountOperation.h" using namespace mailcore; #define nativeType SMTPCheckAccountOperation #define javaType nativeType MC_JAVA_BRIDGE
test-java-code/pmd-test
javaparser-master/javaparser-core/src/main/java/com/github/javaparser/ast/type/Type.java
<gh_stars>0 /* * Copyright (C) 2007-2010 <NAME>. * Copyright (C) 2011, 2013-2016 The JavaParser Team. * * This file is part of JavaParser. * * JavaParser can be used either under the terms of * a) the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the L...
zealoussnow/chromium
ppapi/cpp/private/x509_certificate_private.cc
<reponame>zealoussnow/chromium<filename>ppapi/cpp/private/x509_certificate_private.cc // Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ppapi/cpp/private/x509_certificate_private.h" #includ...
mirwansyahs/siabanks
assets/ckeditor/tests/core/editable/keystrokes/delbackspacequirks/_helpers/tools.js
/* exported quirksTools */ var quirksTools = ( function() { 'use strict'; var DEL = 46, BACKSPACE = 8, keyNames = { 46: 'DEL', 8: 'BACKSPACE' }; function assertKeystroke( key, keyModifiers, handled, html, expected ) { function decodeBoguses( html ) { return html.replace( /@/g, CKEDITOR.env.needs...
karelskiy/react-app
src/components/example.js
import React, { Component } from 'react'; function Warning(props){ if(!props.warn){ return null; } return ( <div> <h1>Warning</h1> </div> ) } class Example extends Component { constructor(props){ super(props); this.state = { showin...
kiiadi/smithy
aws/smithy-aws-traits/src/main/java/software/amazon/smithy/aws/traits/apigateway/Authorizer.java
/* * Copyright 2019 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 "license" ...
SoftReaper/Mesa-Renoir-deb
src/gallium/targets/pipe-loader/pipe_kmsro.c
#include "target-helpers/inline_debug_helper.h" #include "frontend/drm_driver.h" #include "kmsro/drm/kmsro_drm_public.h" #define GALLIUM_KMSRO_ONLY #include "target-helpers/drm_helper.h"
figtools/figgy-cli
src/figcli/test/cli/data/put.py
import pexpect from figcli.test.cli.config import * from figcli.test.cli.data.delete import DataDelete, DeleteAction from figcli.test.cli.figgy import FiggyTest from figcli.config import * from figcli.utils.utils import * class DataPut(FiggyTest): def __init__(self, extra_args=""): super().__init__(pexpec...
dbdxnuliba/IHMC-
ihmc-common-walking-control-modules/src/test/java/us/ihmc/commonWalkingControlModules/dynamicPlanning/slipJumping/costs/SLIPDesiredTrackingCostTest.java
<reponame>dbdxnuliba/IHMC- package us.ihmc.commonWalkingControlModules.dynamicPlanning.slipJumping.costs; import org.ejml.data.DenseMatrix64F; import org.junit.Assert; import org.junit.Test; import us.ihmc.commonWalkingControlModules.dynamicPlanning.TrackingCostFunctionTest; import us.ihmc.commonWalkingControlModules....
tiagosm1/Python_Nilo_Ney
exercicios_resolvidos3/exercicios3/capitulo 04/exercicio-04-10.py
############################################################################## # Parte do livro Introdução à Programação com Python # Autor: <NAME> # Editora Novatec (c) 2010-2020 # Primeira edição - Novembro/2010 - ISBN 978-85-7522-250-8 # Segunda edição - Junho/2014 - ISBN 978-85-7522-408-3 # Terceira Edição - Janeir...
macminix/MacMinix
src/fs/const.h
/* Tables sizes */ #define NR_ZONE_NUMS 9 /* # zone numbers in an inode */ #define NR_FILPS 64 /* # slots in filp table */ #define I_MAP_SLOTS 8 /* max # of blocks in the inode bit map */ #define ZMAP_SLOTS 8 /* max # of blocks in the zone bit map */ #define NR_INODES 32 /* # slot...
iMats/Singularity
SingularityService/src/test/java/com/hubspot/singularity/auth/SingularityGroupsAuthorizerTest.java
package com.hubspot.singularity.auth; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.Mockito.*; import com.google.common.collect.ImmutableSet; import com.hubspot.singularity.RequestState; import com.hubspot.singularity.R...
ilyazavadskij/BKP
ts-backend/voice/src/main/java/com/stc/trawl/voice/data/model/VoiceModelSearchRequest.java
package com.stc.trawl.voice.data.model; import lombok.Builder; import lombok.Data; import java.net.URI; import java.util.List; @Data @Builder public class VoiceModelSearchRequest { private List<URI> segmentationUris; }
Sk3pper/AASSS-PoC
Scripts/Dealer/CustomThreads/Utils/Utils_function.py
<reponame>Sk3pper/AASSS-PoC<filename>Scripts/Dealer/CustomThreads/Utils/Utils_function.py import os import socket import datetime from CustomThreads.groups import parametres from CustomThreads.PedersenUtilities.VSS import genRand from CustomThreads.groups import MODP2048 # load group g2048 = MODP2048() par = paramet...
smdb21/java-miape-api
src/main/java/org/proteored/miapeapi/xml/mzidentml_1_1/IdentifiedPeptideImpl.java
<gh_stars>1-10 package org.proteored.miapeapi.xml.mzidentml_1_1; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.Set; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.apache.log4j.Logger; import org.proteored.miapeapi.cv...
googleapis/googleapis-gen
google/cloud/retail/v2beta/google-cloud-retail-v2beta-java/proto-google-cloud-retail-v2beta-java/src/main/java/com/google/cloud/retail/v2beta/ImportProductsRequestOrBuilder.java
<gh_stars>1-10 // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/retail/v2beta/import_config.proto package com.google.cloud.retail.v2beta; public interface ImportProductsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2beta.ImportProduc...
talehm/frontity
node_modules/@material-ui/icons/esm/ShowChartTwoTone.js
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(React.createElement("path", { d: "M13.5 13.48l-4-4L2 16.99l1.5 1.5 6-6.01 4 4L22 6.92l-1.41-1.41z" }), 'ShowChartTwoTone');
antont/tundra
src/Core/AssetModule/AssetModule.h
<reponame>antont/tundra // For conditions of distribution and use, see copyright notice in license.txt #pragma once #include "IModule.h" #include <QObject> #include "IAssetProvider.h" #include "AssetModuleApi.h" struct MsgAssetDiscovery; struct MsgAssetDeleted; struct UserConnectedResponseData; class UserConnectio...
o-evin/glacier
source/renderer/modules/retrievals/reducer.js
import {listUpdate} from '../../helpers'; import { RETRIEVAL_GET_SUCCESS, RETRIEVAL_CREATE_SUCCESS, RETRIEVAL_UPDATE_SUCCESS, RETRIEVAL_LIST_SUCCESS, RETRIEVAL_DELETE_SUCCESS, } from '../../../contracts/enums/action_types'; import {Retrieval} from '../../../contracts/entities'; function cast(data) { retu...
Daz2345/dhPulse
packages/dh-ground/lib/ground.js
Ground.Collection(Posts);
pasmuss/cmssw
RecoLocalCalo/CaloTowersCreator/src/CaloTowersCreator.cc
<filename>RecoLocalCalo/CaloTowersCreator/src/CaloTowersCreator.cc<gh_stars>0 #include "RecoLocalCalo/CaloTowersCreator/src/CaloTowersCreator.h" #include "Geometry/CaloGeometry/interface/CaloGeometry.h" #include "Geometry/Records/interface/CaloGeometryRecord.h" #include "FWCore/Framework/interface/ESHandle.h" #include ...
colvinco/apicurio-data-models
src/main/java/io/apicurio/datamodels/core/io/DataModelWriter.java
<reponame>colvinco/apicurio-data-models /* * Copyright 2019 Red Hat * * 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...
sherlkk/NetLogo-GIS
src/org/myworldgis/netlogo/gui/GISDataView.java
// // Copyright (c) 2007 <NAME>. All rights reserved. // package org.myworldgis.netlogo.gui; import com.vividsolutions.jts.geom.Coordinate; import com.vividsolutions.jts.geom.Envelope; import com.vividsolutions.jts.geom.Geometry; import com.vividsolutions.jts.geom.GeometryCollection; import com.vividsolutions.jts.geo...
muminkoykiran/computervision-recipes
utils_cv/segmentation/data.py
<filename>utils_cv/segmentation/data.py # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from typing import List from urllib.parse import urljoin class Urls: # base url base = "https://cvbp-secondary.z19.web.core.windows.net/datasets/image_segmentation/" # tra...
TheBadZhang/OJ
hdu/1000/12/1205.cpp
<reponame>TheBadZhang/OJ #include<cstdio> #include<cstring> #include<algorithm> #include<iostream> using namespace std; const int maxn=1000005; typedef long long LL; LL a[maxn]; int main(){ int t; cin>>t; while(t--){ int n; cin>>n; LL max1=0; LL sum=0; for(int i=1;i<=n;i++){ cin>>a[i]; sum+=a[i]; ...
muiz6/android-music-player
app/src/main/java/com/muiz6/musicplayer/ui/main/home/library/genres/GenreViewModel.java
package com.muiz6.musicplayer.ui.main.home.library.genres; import android.support.v4.media.MediaBrowserCompat; import androidx.annotation.NonNull; import androidx.lifecycle.LiveData; import androidx.lifecycle.MutableLiveData; import androidx.lifecycle.Observer; import androidx.lifecycle.ViewModel; import com.muiz6.m...
CMP-Studio/cmoa-app-cms
config/environment.rb
# Load the rails application. require File.expand_path('../application', __FILE__) # Initialize the rails application. CMOA::Application.initialize!
iznauy/MyCourseBackEnd
src/main/java/top/nju/iznauy/dao/daoImpl/user/TeacherDaoImpl.java
<reponame>iznauy/MyCourseBackEnd<gh_stars>0 package top.nju.iznauy.dao.daoImpl.user; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; import top.nju.iznauy.dao.TeacherDao; import top.nju.iznauy.po.user.TeacherPO; import top.nju.iznauy.po.uservalidation.Te...
Uvacoder/html-demo-code-and-experiments
wc3/libwww/Library/src/HTMulti.c
/* ** CONTENT NEGOTIATION ** ** (c) COPYRIGHT MIT 1995. ** Please first read the full copyright statement in the file COPYRIGH. ** @(#) $Id$ ** ** History: ** March 94 AL Separated from HTFile.c because ** multiformat handling would be a mess in VMS. */ /* Library include files */ #include "wwwsys.h" #include "WWWU...
ning1875/nightingale
models/chart.go
package models import "github.com/toolkits/pkg/logger" type Chart struct { Id int64 `json:"id"` GroupId int64 `json:"group_id"` Configs string `json:"configs"` Weight int `json:"weight"` } func (c *Chart) TableName() string { return "chart" } func (c *Chart) Add() error { return DBInsertOne(c) } f...
brian32768/map46
navbar/head.js
<filename>navbar/head.js // head.js import 'bootstrap/dist/css/bootstrap';
andrewt0301/ispras-microtesk
src/main/java/core/ru/ispras/microtesk/translator/nml/antlrex/MemoryFactory.java
<gh_stars>1-10 /* * Copyright 2012-2018 ISP RAS (http://www.ispras.ru) * * 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...
NeoHuang/sphere-fedora
app/utils/PriceUtils.java
<reponame>NeoHuang/sphere-fedora package utils; import com.google.common.base.Optional; import io.sphere.client.model.Money; import io.sphere.client.shop.model.TaxRate; import models.ShopCustomer; public final class PriceUtils { private PriceUtils() { } /** * Gets the price in gross or net, accordi...
SolovyovAlexander/reindexer
cpp_src/cmd/reindexer_tool/commandsexecutor.cc
<reponame>SolovyovAlexander/reindexer<gh_stars>0 #include "commandsexecutor.h" #include <iomanip> #include "client/cororeindexer.h" #include "core/cjson/jsonbuilder.h" #include "core/reindexer.h" #include "coroutine/waitgroup.h" #include "executorscommand.h" #include "tableviewscroller.h" #include "tools/fsops.h" #incl...
jnthn/intellij-community
plugins/stream-debugger/testData/chain/positive/termination/ForEach.java
<reponame>jnthn/intellij-community import java.util.stream.Stream; public class Baz { public static void bar() { <caret> Stream.of(1).forEach(x -> {}); } }
XiaZhouZero/OPEC
STM32Cube_FW_F4_V1.25.0/Middlewares/Third_Party/mbedTLS/doxygen/input/doc_ssltls.h
/** * \file doc_ssltls.h * * \brief SSL/TLS communication module documentation file. */ /* * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except i...
peter-stoyanov/Python
Softuni Assignments/exam 11 March/train_system.py
#!/usr/bin/env python """Ticket train system""" __author__ = "<NAME>" class Ticket(): def __init__(self, destination, price, card=None, discounted=False): self.destination = destination if discounted: self.price = 0.5 * price self.card = card else: self....
CNAD666/TaoLibrary
matisse_go/src/main/java/com/yt/matisse/Constant.java
<gh_stars>1-10 package com.yt.matisse; import android.os.Environment; /** * Author 余涛 * Description 功能说明 * Time 2020/6/3 10:56 */ public class Constant { public static final int DURATION = 600 * 1000; //录制视频最长时间限制 public static final int MIN_DURATION = 3 * 1000; //录制最短视频时间限制 //视频保存路径 public sta...
mgorny/gentoopm
gentoopm/pkgcorepm/depend.py
#!/usr/bin/python # vim:fileencoding=utf-8 # (c) 2011 <NAME> <<EMAIL>> # Released under the terms of the 2-clause BSD license. from pkgcore.ebuild.atom import atom from pkgcore.restrictions.boolean import (OrRestriction, AndRestriction, JustOneRestriction, AtMostOneOfRestriction) from pkgcore.restrictions.packages i...
openharmony-gitee-mirror/aafwk_standard
services/abilitymgr/test/unittest/phone/pending_want_key_test/pending_want_key_test.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 ...
luiz158/Hibernate-SpringBoot
HibernateSpringBootDomainEvents/src/main/java/com/bookstore/entity/Book.java
package com.bookstore.entity; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import javax.persistence.CascadeType; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.OneToMany; @Entity public class Book implements Serializable { private static ...
Lube-Project/ProgettoLube
ProgettoLube/frontend/dashboard/node_modules/rsuite/es/Picker/PickerToggleTrigger.js
<gh_stars>1-10 import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import _pick from "lodash/pick"; import React from 'react'; import OverlayTrigger from '../Overlay/OverlayTrigger'; import { placementPolyfill } ...
Insouciant21/solution
Codeforces/CF585B.cpp
/* Problem: CF585B Time: 2020/10/01 14:01:13 Author: Insouciant21 Status: Accepted */ #include <bits/stdc++.h> using namespace std; struct Node { int x, y; }; int d[3] = {0, 1, -1}; bool mp[4][110]; bool vis[4][110]; int n, k; int t; Node st; void bfs() { queue<Node> q; q.push(st); vis[s...
duchoangitt/SmsApp
app/src/main/java/com/android/messaging/ui/conversationlist/ArchivedConversationListActivity.java
/* * Copyright (C) 2015 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
woshiluo/oi
isij_train/d1/C/c_bf.cpp
#include <ctime> #include <cstdio> #include <cstdlib> inline int aabs( int a ) { return a < 0? -a: a; } const int N = 3e6 + 1e2; int n; int a[N], b[N]; bool vis[N]; long long ans = (long long)( 1LL << 61LL ); int main() { #ifdef woshiluo freopen( "c.in", "r", stdin ); freopen( "c.out", "w", stdout ); #endif sran...
mekcone/mekcone-studio
excode-generator/src/main/java/com/vancone/excode/generator/config/property/SystemConfig.java
package com.vancone.excode.generator.config.property; import lombok.Data; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; import java.util.ArrayList; import java.util.List; /** * @author <NAME> * @date 10/1/2020 */ @Data @Component @Conf...
peakhigh/tweb
templates/dashboard/pages/manageRequests/manageRequests.js
<gh_stars>1-10 console.log('template data', UTILS.getCurrentTemplateData()); $(document).ready(function () { var moduleData = UTILS.getCurrentTemplateData(); var grid = new GRID_HELPER.GRID('.truck-requests-content', { gridData: moduleData, gridId: 'gridTruckRequests', rowConfig: { ...
manchik85/Contact-Center
resources/js/admin/edit_form.js
import $ from "jquery"; import axios from "axios"; window.Vue = require('vue'); // import VueTheMask from 'vue-the-mask'; // Vue.use(VueTheMask); // import Inputmask from 'inputmask'; // Vue.use(Inputmask); /** * Next, we will create a fresh Vue application instance and attach it to * the page. Then,...
gaoht/house
java/classes/com/alipay/android/a/a/a/x.java
package com.alipay.android.a.a.a; import java.util.concurrent.ThreadFactory; import java.util.concurrent.atomic.AtomicInteger; final class x implements ThreadFactory { private final AtomicInteger a = new AtomicInteger(1); public final Thread newThread(Runnable paramRunnable) { paramRunnable = new Threa...
Meowtimer/C4DT
main/src/net/arctics/clonk/parser/CStyleScanner.java
package net.arctics.clonk.parser; import static net.arctics.clonk.util.Utilities.block; import java.util.ArrayList; import java.util.List; import net.arctics.clonk.c4script.ast.Comment; /** * Scanner that ignores C-style comments * @author madeen * */ public class CStyleScanner extends BufferedScanner { publi...
qfys521/XiaoMingBot
src/main/java/cn/chuanwise/xiaoming/recept/ReceptionistManagerImpl.java
package cn.chuanwise.xiaoming.recept; import cn.chuanwise.common.sized.SizedResidentConcurrentHashMap; import cn.chuanwise.common.util.Maps; import cn.chuanwise.xiaoming.annotation.EventListener; import cn.chuanwise.xiaoming.bot.XiaoMingBot; import cn.chuanwise.xiaoming.contact.message.Message; import cn.chuanwise.xia...
Shtrikh17/Multidimensional-Blockchain-MVP
mbc/src/main/java/ru/mbc/ledger/core/error/TxFromAddressError.java
<filename>mbc/src/main/java/ru/mbc/ledger/core/error/TxFromAddressError.java package ru.mbc.ledger.core.error; public class TxFromAddressError extends Error{ public TxFromAddressError(String errorMessage) { super(errorMessage); } }
limasigor2/heimdall
heimdall-gateway/src/main/java/br/com/conductor/heimdall/gateway/router/EnvironmentInfoRepository.java
<reponame>limasigor2/heimdall<gh_stars>100-1000 /*- * =========================LICENSE_START================================== * heimdall-gateway * ======================================================================== * Copyright (C) 2018 Conductor Tecnologia SA * ===============================================...
Masterlupo/EvilCraft
src/main/java/org/cyclops/evilcraft/item/ItemRedstoneGrenade.java
<reponame>Masterlupo/EvilCraft package org.cyclops.evilcraft.item; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.entity.projectile.ThrowableEntity; import net.minecraft.item.ItemStack; import net.minecraft.world.World; import org.cyclops.evilcraft.entity.item.EntityRedstoneGrenade; /** * Gren...
luzpaz/PyFlow
PyFlow/Packages/PyFlowBase/Nodes/forLoopBegin.py
## Copyright 2015-2019 <NAME>, <NAME> ## Licensed under the Apache License, Version 2.0 (the "License"); ## you may not use this file except in compliance with the License. ## You may obtain a copy of the License at ## http://www.apache.org/licenses/LICENSE-2.0 ## Unless required by applicable law or agreed to i...
alexandra-bucur/egeria-connector-ibm-information-server
igc-clientlibrary/src/main/java/org/odpi/egeria/connectors/ibm/igc/clientlibrary/model/base/MappingProject.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...
dmfr/CSipSimple-mirror
CSipSimple/jni/webrtc/sources/modules/interface/module_common_types.h
/* * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
vmware-serengeti/vhm
elastic-runtime/src/main/java/com/vmware/vhadoop/vhm/vmcalgorithm/VMCA_DumbVMChooser.java
<reponame>vmware-serengeti/vhm /*************************************************************************** * Copyright (c) 2013 VMware, Inc. 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 c...
Antoine-Regembal/portfolio
src/Components/Presentation/Presentation.js
import React from "react"; import { Container, Row, Col } from "react-grid-system"; import "./Presentation.css"; import PresentationText from "./PresentationText"; const Presentation = ({ presentationContent, name }) => ( <div id={presentationContent.sectionId} className="presentation"> <Container className="pr...
imagitama/vrphotobuddy
desktopapp/src/config.js
<gh_stars>0 const path = require('path') const { promises: fs, constants } = require('fs') const os = require('os') const pathToConfigFile = path.resolve(os.homedir(), 'vrphotobuddy.json') let config = { PATH_TO_VRCHAT_PHOTOS: 'NO_PATH', OAUTH_AUTHORIZE_URL: 'NO_URL', OAUTH_REDIRECT_WEBSERVER_PORT: 1234, } con...
jalowiczor/beeon-gateway-with-nemea-sources
src/exporters/MqttExporter.cpp
#include <cstring> #include <Poco/Exception.h> #include "di/Injectable.h" #include "exporters/MqttExporter.h" #include "util/NullSensorDataFormatter.h" #include "util/SensorDataFormatter.h" BEEEON_OBJECT_BEGIN(BeeeOn, MqttExporter) BEEEON_OBJECT_CASTABLE(Exporter) BEEEON_OBJECT_PROPERTY("topic", &MqttExporter::setTo...
PacktPublishing/Mastering-Postgis
Chapter07/resources/ext-6.2.0-gpl/ext-6.2.0/packages/core/src/dom/Underlay.js
<filename>Chapter07/resources/ext-6.2.0-gpl/ext-6.2.0/packages/core/src/dom/Underlay.js /** * A class that provides an underlay element which displays behind an absolutely positioned * target element and tracks its size and position. Abstract base class for * {@link Ext.dom.Shadow} and {@link Ext.dom.Shim} * * ...
featherfly/conversion
src/main/java/cn/featherfly/conversion/core/basic/LocalDateTimeConvertor.java
<gh_stars>0 package cn.featherfly.conversion.core.basic; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; import cn.featherfly.common.lang.GenericType; import cn.featherfly.common.lang.StringUtils; import cn.featherfly.conversion.core.ConversionException; /** * <p> * LocalDat...
sivazozo/Xrob
server/src/com/theah64/xrob/api/database/tables/Files.java
package com.theah64.xrob.api.database.tables; import com.sun.istack.internal.Nullable; import com.theah64.xrob.api.database.Connection; import com.theah64.xrob.api.models.File; import com.theah64.xrob.api.models.FileBundle; import com.theah64.xrob.api.utils.DarKnight; import com.theah64.xrob.api.utils.RandomString; im...
DankeGott/ServiceRedundancy
src/main/java/zju/edu/cn/platform/redundancy/jsoninfo/generator/SolutionConfigGenerator.java
<reponame>DankeGott/ServiceRedundancy package zju.edu.cn.platform.redundancy.jsoninfo.generator; import zju.edu.cn.platform.redundancy.jsoninfo.config.AppConfig; import zju.edu.cn.platform.redundancy.jsoninfo.config.EdgeConfig; import zju.edu.cn.platform.redundancy.jsoninfo.config.ResourceAllocationConfig; import zju....
rajrajhans/bundle-stats-action
node_modules/reakit/lib/VisuallyHidden/index.js
<filename>node_modules/reakit/lib/VisuallyHidden/index.js<gh_stars>10-100 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); require('../_rollupPluginBabelHelpers-8f9a8751.js'); require('reakit-system/createComponent'); require('reakit-system/createHook'); require('reakit-utils/shallowEqual'...
Hopp-Stu/ares
ares-system-new/src/main/java/com/ares/system/common/security/UserDetailsServiceImpl.java
<reponame>Hopp-Stu/ares<gh_stars>0 /******************************************************************************* * Copyright (c) 2021 - 9999, ARES * * 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...
tranphuc269/vue-yoast-analyze
node_modules/yoastseo/src/researches/sentences.js
<reponame>tranphuc269/vue-yoast-analyze<gh_stars>1-10 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = function (paper) { return (0, _getSentences2.default)(paper.getText()); }; var _getSentences = require("../stringProcessing/getSentences"); var _getSentences2 = _i...
mfkiwl/libparanumal
libs/linearSolver/initialGuess.cpp
/* The MIT License (MIT) Copyright (c) 2017 <NAME>, <NAME>, <NAME>, <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, co...
Repast/repast.simphony
repast.simphony.statecharts.diagram/src-gen/org/eclipse/gmf/tooling/runtime/update/DiagramUpdater.java
/* * Copyright (c) 2012, Montages AG * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: *...
tonyblundell/kafka4m
src/main/scala/kafka4m/partitions/HasTimestamp.scala
package kafka4m.partitions import java.time.ZonedDateTime import org.apache.kafka.clients.consumer.ConsumerRecord trait HasTimestamp[A] { def timestamp(value: A): ZonedDateTime } object HasTimestamp { def apply[A](implicit ht: HasTimestamp[A]): HasTimestamp[A] = ht implicit def consumerRecordHasTimestamp[K, V...
hafeild/dp-lambda
config/initializers/version.rb
<gh_stars>0 ## Version information. Sets two global variables: ## ## VERSION -- an array of Year, Month, Number, and Hotfix or build number. ## VERSION_STRING -- a string formatted as Year.Month.Number.Hotfix (for ## release) or Yearm.Month.Build (for developement). ## Note...
emacslisp/tomcat
java/org/apache/coyote/http2/Http2UpgradeHandler.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...
wniter/springboot-demo
spring-jedis/src/main/java/com/example/spring/jedis/sharedPool/ShardedPoolSourceTemplate.java
<gh_stars>0 package com.example.spring.jedis.sharedPool; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; import redis.clients.jedis.ShardedJedis; /** * create by 尼恩 @ 疯狂创客圈 **/ @Repository("shardedPoolSourceTemplate")...
ziyekudeng/panda-rules
src/main/java/org/wangfeng/panda/app/calculation/function/GetElementFunction.java
<reponame>ziyekudeng/panda-rules package org.wangfeng.panda.app.calculation.function; import org.springframework.stereotype.Component; import org.wangfeng.panda.app.common.exception.RuleRuntimeException; import org.wangfeng.panda.app.util.NumberUtils; import java.util.ArrayList; import java.util.List; /** * 获取数组中特定...
ty6412001/MyTestDemo
FreeSeeds/src/main/java/com/fsd/mvvmlight/freeseeds/topics/TopicItemViewModel.java
package com.fsd.mvvmlight.freeseeds.topics; import android.content.Context; import android.content.Intent; import android.databinding.ObservableField; import android.databinding.ObservableInt; import com.fsd.mvvmlight.freeseeds.R; import com.fsd.mvvmlight.freeseeds.entity.Topic; import com.kelin.mvvmlight.base.ViewMo...
merico-dev/common-backend
dist/ae-helper/import-report/tasks/writeReportDuplicateFunctionsTask.js
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })...
go-clang/clang-v5
clang/declqualifierkind_gen.go
package clang // #include "./clang-c/Index.h" // #include "go-clang.h" import "C" import "fmt" // 'Qualifiers' written next to the return and parameter types in Objective-C method declarations. type DeclQualifierKind uint32 const ( DeclQualifier_None DeclQualifierKind = C.CXObjCDeclQualifier_None DeclQualifier_I...
aamin005/Firdowsspace
vendor/bundle/ruby/2.3.0/gems/mini_magick-3.8.0/lib/mini_magick/utilities.rb
require 'rbconfig' module MiniMagick module Utilities class << self # Cross-platform way of finding an executable in the $PATH. # # which('ruby') #=> /usr/bin/ruby def which(cmd) exts = ENV['PATHEXT'] ? ENV['PATHEXT'].split(';') : [''] ENV['PATH'].split(File::PATH_SEPARA...
NEWBEE108/java_algos
cracking-the-coding-interview/src/chapter_3/stack_queue/Shelter.java
package chapter_3.stack_queue; import java.util.LinkedList; /** * class Shelter * <p> * Book solution implemented * * @param <T> * @author <NAME> */ public class Shelter<T> { LinkedList<Dog<T>> dogsList; LinkedList<Cat<T>> catsList; int order = 0, size = 0; /** * Have two LinkedLists one ...
qinchende/gofas
skill/collection/test/rw_per_test.go
<reponame>qinchende/gofas<gh_stars>1-10 package test import ( "github.com/qinchende/gofast/skill/collection" "runtime" "testing" "time" ) func init() { runtime.GOMAXPROCS(4) } //PS gofast\skill\collection\test> go test -bench=Go* -benchmem -benchtime=10s //goos: windows //goarch: amd64 //pkg: github.com/qinchen...
deepakkumar96/biovalidator
src/main/java/org/intermine/biovalidator/validator/csv/CsvHeaderDetector.java
package org.intermine.biovalidator.validator.csv; /* * Copyright (C) 2002-2019 FlyMine * * This code may be freely distributed and modified under the * terms of the GNU Lesser General Public Licence. This should * be distributed with the code. See the LICENSE file for more * information or http://www.gnu.org/c...
cwolsen7905/UbixOS
doc/html/db/d66/stat_8c.js
var stat_8c = [ [ "_sys_stat", "db/d66/stat_8c.html#a450c63b2bbf7f46c54846f2b8a565587", null ], [ "sys_fstat", "db/d66/stat_8c.html#a20c64cd904d02f5580b4de7c194b9357", null ], [ "sys_fstatat", "db/d66/stat_8c.html#aadc04b2a7dff6c7f77610e7231d66dd9", null ], [ "sys_fstatfs", "db/d66/stat_8c.html#a30aafea...
jkdubr/Proj4
Pod/Classes/Projection/MOBProjectionEPSG23838.h
#import "MOBProjection.h" @interface MOBProjectionEPSG23838 : MOBProjection @end
ufoscout/jpattern
core/src/main/java/com/jpattern/service/log/reader/MessageFilter.java
package com.jpattern.service.log.reader; /** * * @author <NAME> 10/ago/2009 * */ public class MessageFilter implements IFilter { private static final long serialVersionUID = 1L; private String _filterString; public MessageFilter(String aFilterString){ _filterString = aFilterString; } p...
haole420/dex-api
src/main/java/org/coinex/dex/client/api/TransactionsApi.java
/* * CET-Lite for CoinEx Chain * A REST interface for state queries, transaction generation and broadcasting. * * OpenAPI spec version: 3.0 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */...
xcesiv/pqvid
src/main/java/io/kamax/matrix/json/event/MatrixJsonDirectEvent.java
/* * matrix-java-sdk - Matrix Client SDK for Java * Copyright (C) 2018 <NAME> * * https://www.kamax.io/ * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the ...
boxingbeetle/softfab
tests/unit/test_resultlib.py
# SPDX-License-Identifier: BSD-3-Clause """Test result storage and processing functionality.""" from pytest import fixture, raises from softfab.resultlib import ResultStorage @fixture def resultStorage(tmp_path): return ResultStorage(tmp_path) # Test data that can be used by various test cases: TASK_NAME = 't...