repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
RopeMC/RopeMC
src/main/java/de/ropemc/api/exceptions/WrongTypeException.java
<filename>src/main/java/de/ropemc/api/exceptions/WrongTypeException.java package de.ropemc.api.exceptions; public class WrongTypeException extends Throwable { public WrongTypeException(String message) { super(message); } }
yeastrc/msdapl
MS_LIBRARY/src/org/yeastrc/ms/domain/search/mascot/MascotResultData.java
/** * MascotResultData.java * @author <NAME> * Oct 12, 2009 * @version 1.0 */ package org.yeastrc.ms.domain.search.mascot; import java.math.BigDecimal; /** * */ public interface MascotResultData { public abstract int getRank(); public abstract void setRank(int rank); public abstract Big...
bauman/clips-rules-rebuild
clipspy-1.0.0/clips/facts.py
<gh_stars>100-1000 # Copyright (c) 2016-2021, <NAME> # All rights reserved. # 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 cond...
AssemblyPayments/acmepos-ios
motelpos/Pods/SPIClient-iOS/Library/Network/SPIConnection.h
<reponame>AssemblyPayments/acmepos-ios // // SPIConnection.h // SPIClient-iOS // // Created by <NAME> on 2017-11-28. // Copyright © 2017 mx51. All rights reserved. // #import <Foundation/Foundation.h> typedef NS_ENUM(NSInteger, SPIConnectionState) { SPIConnectionStateDisconnected, SPIConnectionStateConnec...
shanjiantao/jnr-constants
src/main/java/jnr/constants/platform/WaitFlags.java
<filename>src/main/java/jnr/constants/platform/WaitFlags.java // WARNING: This file is autogenerated. DO NOT EDIT! // Generated 2018-09-20 16:28:42 +0000 package jnr.constants.platform; public enum WaitFlags implements jnr.constants.Constant { WNOHANG, WUNTRACED, WSTOPPED, WEXITED, WCONTINUED, WNOWAIT, __UNKNOWN_CONSTA...
lukaszgotszaldintel/compute-runtime
opencl/test/unit_test/fixtures/device_instrumentation_fixture.h
<reponame>lukaszgotszaldintel/compute-runtime /* * Copyright (C) 2018-2020 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include <memory> namespace NEO { class ClDevice; class Device; struct HardwareInfo; struct DeviceInstrumentationFixture { void SetUp(bool instrumentation); std::unique_pt...
GrapixLeGrand/AppArt
app/src/main/java/ch/epfl/sdp/appart/map/helper/MapFrontendHelper.java
package ch.epfl.sdp.appart.map.helper; import android.util.Log; import java.util.List; import java.util.concurrent.CompletableFuture; import java.util.regex.Matcher; import java.util.regex.Pattern; import ch.epfl.sdp.appart.ad.Ad; import ch.epfl.sdp.appart.database.DatabaseService; import ch.epfl.sdp.appart.location...
qjclinux/DocxFactory
include/DocxFactory/DocxCompiler/DocxCompilerDateTimeField.h
#ifndef __DOCXFACTORY_DOCX_COMPILER_DATE_TIME_FIELD_H__ #define __DOCXFACTORY_DOCX_COMPILER_DATE_TIME_FIELD_H__ #include "DocxFactory/DocxCompiler/DocxCompilerField.h" namespace DocxFactory { using namespace std; struct DateTimeFormat; class ZipFile; class DocxCompilerDateTimeField : public DocxCompilerFiel...
Mignet/supermarket-android
xsl781/src/main/java/org/xsl781/data/DateTimeTypeAdapter.java
package org.xsl781.data; import com.google.gson.JsonDeserializationContext; import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonParseException; import com.google.gson.JsonPrimitive; import com.google.gson.JsonSerializationContext; import com.google.gson.JsonSerialize...
RandyLiu6410/4D-BIM-platform
server/utils/httpResponse.js
module.exports = { OK: 200, Created: 201, BadRequest: 400, Unauthorized: 401, Forbidden: 403, NotFound: 404, InternalServerError: 500, BadGateway: 502, ServiceUnavailable: 503 }
zmbush/relay
packages/react-relay/classic/store/__tests__/RelayQueryWriter-test.js
/** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails oncall+relay * @format */ 'use strict'; require('configureForRelayOSS'); const RelayClassic = require('RelayClassic'); con...
ajbm6/framework
build/php7/ice/flash.zep.c
<reponame>ajbm6/framework<gh_stars>0 #ifdef HAVE_CONFIG_H #include "../ext_config.h" #endif #include <php.h> #include "../php_ext.h" #include "../ext.h" #include <Zend/zend_operators.h> #include <Zend/zend_exceptions.h> #include <Zend/zend_interfaces.h> #include "kernel/main.h" #include "kernel/object.h" #include "...
RISCfuture/METAR-Decoder
METAR Decoder/Source/Support/ImproperFraction.h
<filename>METAR Decoder/Source/Support/ImproperFraction.h @interface ImproperFraction : NSObject @property (assign) NSInteger whole; @property (strong) Rational *fraction; - (instancetype) init NS_UNAVAILABLE; - (instancetype) initWithWhole:(NSInteger)wholePart fraction:(Rational *)fractionalPart NS_DESIGNATED_INITIA...
acepace/BPjs
src/main/java/il/ac/bgu/cs/bp/bpjs/execution/listeners/BProgramRunnerListener.java
package il.ac.bgu.cs.bp.bpjs.execution.listeners; import il.ac.bgu.cs.bp.bpjs.model.BProgram; import il.ac.bgu.cs.bp.bpjs.execution.BProgramRunner; import il.ac.bgu.cs.bp.bpjs.model.BThreadSyncSnapshot; import il.ac.bgu.cs.bp.bpjs.model.BEvent; import il.ac.bgu.cs.bp.bpjs.model.FailedAssertion; /** * An object inter...
foundry2D/Kinc
Backends/Graphics5/Direct3D12/Sources/kinc/backend/graphics5/pipeline.h
<gh_stars>100-1000 #pragma once #include <stdint.h> #ifdef __cplusplus extern "C" { #endif struct kinc_g5_shader; struct ID3D12PipelineState; struct ID3D12GraphicsCommandList; struct ID3D12RootSignature; typedef struct { struct ID3D12PipelineState *pso; #ifdef KORE_DXC struct ID3D12RootSignature *rootSignature; ...
folio-org/mod-search
src/test/java/org/folio/search/support/extension/impl/PostgresContainerExtension.java
package org.folio.search.support.extension.impl; import org.junit.jupiter.api.extension.AfterAllCallback; import org.junit.jupiter.api.extension.BeforeAllCallback; import org.junit.jupiter.api.extension.ExtensionContext; import org.testcontainers.containers.PostgreSQLContainer; public class PostgresContainerExtension...
Tubelz/macaw
scene.go
package macaw import ( "github.com/tubelz/macaw/system" "github.com/veandco/go-sdl2/sdl" ) // SceneManager manges the scenes in the game type SceneManager struct { Scenes []*Scene currentPos int // SceneMap has the position of the scene in the array SceneMap map[string]int } // AddScene adds a new scene fu...
neroroxxx/BMC
src/BMC.hardware.relays.cpp
<gh_stars>10-100 /* See https://www.RoxXxtar.com/bmc for more details Copyright (c) 2020 RoxXxtar.com Licensed under the MIT license. See LICENSE file in the project root for full license information. */ #include <BMC.h> // NON-LATCHING RELAYS #if BMC_MAX_NL_RELAYS > 0 void BMC::setupRelaysNL(){ for(uint8_t ...
Kadachha-Bharat/Admin_panel
src/app/views/dashboard/DashboardRoutes.js
<filename>src/app/views/dashboard/DashboardRoutes.js import {MatxLoadable} from "../../../components/matx/index"; import { authRoles } from "../../auth/authRoles"; const Dashboard = MatxLoadable({ loader: () => import("./dashboard") }) const dashboardRoutes = [ { path: "/dashboard", component: Dashboard...
CaQtiml/Problem-Solved
codeforce1154B.cpp
#include "bits/stdc++.h" using namespace std; int dp[105]; int ck[105]; //int cnt; int main() { int n; cin >> n ; for(int i=1;i<=n;i++) cin >> dp[i]; sort(dp+1,dp+1+n); int cnt=0; int kk=1; for(int i=1;i<=n;i++) { if(dp[i]!=dp[i-1]) { cnt++; ck[kk++]=dp[i]; } } //for(int i=1;i...
lnceballosz/inventaire
server/lib/emails/build_transaction_email.js
<reponame>lnceballosz/inventaire // SPDX-FileCopyrightText: 2014 <NAME>, <NAME> // SPDX-License-Identifier: AGPL-3.0-only const _ = require('builders/utils') const user_ = require('controllers/user/lib/user') const transactions_ = require('controllers/transactions/lib/transactions') const items_ = require('controlle...
sirinath/Harmony
drlvm/vm/gc_gen/src/mark_sweep/gc_ms.h
/* * 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...
ikramulkayes/Python_season2
practice25.py
<reponame>ikramulkayes/Python_season2 my_tuple = (("Mominul", 1101),("Mustafiz", 1202),("Bell", 2101),("Cook", 2103),("Smith", 3101),("Finch", 3102),("Starc", 3203), ("Imrul", 1103), ("Taijul", 1204)) dic = {} for elm in my_tuple: num = str(elm[1]) if num[0] == "1": if "Bangladesh" not in dic.keys(): ...
uktrade/contractor-approval
main/tests/views/resourcing_request/test_resourcing_request.py
<reponame>uktrade/contractor-approval import pytest from django.contrib import messages from django.core.exceptions import ValidationError from django.urls import reverse from main import tasks from main.models import Approval, ResourcingRequest from main.services.review import ReviewAction from main.tests.conftest im...
kreativgebiet/kickup-react
client/modules/tasks/__test__/selectors.test.js
// @flow import { getTasks } from '../selectors' describe('tasks selectors', () => { it('returns tasks tree', () => { const state = { tasks: {} } expect(getTasks(state)).toBeInstanceOf(Object) }) it('returns nothing with empty state', () => { const state = {} expect(getTasks(state)).toBeUndefi...
glenn-jocher/torchflare
torchflare/metrics/meters.py
"""Implementation of utilities for metrics.""" from typing import Tuple import torch from einops import reduce class _BaseMetric: """A Class which decides type of classification i.e. binary,multilabel or multiclass.""" def __init__(self, multilabel: bool = False): """Constructor class for BaseMetric...
Pixelated-Project/aosp-android-jar
android-31/src/android/telephony/BinderCacheManager.java
/* * Copyright (C) 2020 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...
gg-wzj/MyChatClient
app/src/main/java/com/example/mychatclient/db/bean/RecentMessageBean.java
package com.example.mychatclient.db.bean; /** * Created by wzj on 2017/9/22. */ public class RecentMessageBean { String friendPhone; String remark; String message; int wdCount; public int getWdCount() { return wdCount; } public void setWdCount(int wdCount) { this.wdC...
LegendaryMauricius/Fusin
Fusin/src/Devices/FusinXInputDevice.cpp
#include "Devices/FusinXInputDevice.h" #include "IOCodes/FusinXInput.h" #include <iomanip> #include <algorithm> #include <math.h> #include <stdexcept> namespace Fusin { XInputDevice::XInputDevice(String name, bool hasBattery): Device(name, DT_XINPUT, hasBattery), buttons(DT_XINPUT, 0), axes(DT_XINPUT, 0), dP...
Cavallium/WarpPI
core/src/main/java/it/cavallium/warppi/TestDrivers.java
<reponame>Cavallium/WarpPI<gh_stars>10-100 package it.cavallium.warppi; public class TestDrivers { public static void main(final String[] args) { System.out.println("Test started."); String className; className = "jogamp.newt.driver.bcm.vc.iv.DisplayDriver"; if (TestDrivers.exists(className)) { Sys...
kingking888/crawler-pyspider
projects/crawl_taobao_goods_migrate/page/goods_rate.py
import random import re import requests from crawl_taobao_goods_migrate.model.es.es_goods_rate import EsTmallGoodsRate from crawl_taobao_goods_migrate.model.task import Task from pyspider.helper.ips_pool import IpsPool from pyspider.helper.date import Date from crawl_taobao_goods_migrate.config import * from pyspider.l...
jhonatasrm/chromium-android
app/src/main/java/org/chromium/chrome/browser/dependency_injection/ChromeActivityCommonsModule_ProvideTabModelSelectorFactory.java
package org.chromium.chrome.browser.dependency_injection; import dagger.internal.Factory; import dagger.internal.Preconditions; import javax.annotation.Generated; import org.chromium.chrome.browser.tabmodel.TabModelSelector; @Generated( value = "dagger.internal.codegen.ComponentProcessor", comments = "https://goo...
emeric75/uvsq_licence
IN404/TD/863/src/ui/commands/Create.java
package ui.commands; import stock.Circle; import stock.Rectangle; import stock.Shape; import stock.Stock; import java.util.Arrays; public class Create implements Command{ private String[] args; public Create(String[] args) { this.args = args; } @Override public String execute(Stock ...
TomStevens7533/Minigin
BurgerTime/PepperDisplayComponent.h
<gh_stars>1-10 #pragma once #include "BaseComponent.h" #include <string> #include "Observer.h" namespace Burger { class PepperDisplayComponent final : public dae::BaseComponent, public dae::Observer { public: PepperDisplayComponent(std::string newString); ~PepperDisplayComponent() = default; virtual void Sta...
EricRemmerswaal/tensorflow
tensorflow/c/experimental/ops/gen/model/arg_spec.h
/* Copyright 2021 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
renber/YamlResourceBundle
src/main/java/de/renber/yamlbundleeditor/exporters/excel/ExcelExporter.java
<reponame>renber/YamlResourceBundle package de.renber.yamlbundleeditor.exporters.excel; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import java.io.OutputStreamWriter; import java.io.StringReader; import java.io.StringWriter; import java.io.Writer; impo...
MaRuifeng/docker-cucumber-sla
features/step_definitions/ui_baseline_steps.rb
## Positive: log in, build and user information scenarios When(/^I click on the application information icon$/) do begin @build_info = get_build_info rescue Exception => error $log.error("#{error.class}: #{error.message}") raise end $log.info("Build info: #{@build_info}") end Then(/^I should see t...
Gaohng/echo-app
components/dbPool.go
<gh_stars>1-10 package components import ( echoapp "github.com/gw123/echo-app" "github.com/jinzhu/gorm" _ "github.com/jinzhu/gorm/dialects/mysql" "github.com/pkg/errors" "sync" ) type DbPoolService struct { dbMap map[string]*gorm.DB dbOptionMap map[string]echoapp.DBOption mu sync.M...
AlaricChan/smi-lib-wiseman
src/main/gen-src/org/xmlsoap/schemas/ws/_2004/_09/enumeration/PullResponse.java
<gh_stars>0 // // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-382 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Genera...
MediaByte/portfolio
node_modules/@material-ui/icons/LocalMall.js
<filename>node_modules/@material-ui/icons/LocalMall.js 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _createSvgIcon = require('./utils/createSvgIcon'); var _createSvgIcon2 = _interopRequireDefault(_cre...
TheRakeshPurohit/CodingSpectator
plug-ins/helios/org.eclipse.jdt.ui.tests.refactoring/resources/ExtractMethodWorkSpace/ExtractMethodTests/wiki_in/A_test2005.java
package wiki_in; import java.io.IOException; public class A_test2005 { static void fun() throws IOException { } public static void main(String args[]) { try { /*[*/ fun(); /*]*/ } catch (Exception e) { } } }
hongzhaoo/huaweicloud-sdk-java
core/src/main/java/com/huawei/openstack4j/api/workflow/WorkbookDefinitionService.java
/******************************************************************************* * Copyright 2016 ContainX and OpenStack4j * * Licensed under the Apache License, Version 2.0 (the "License");...
JackietLiu/taorg
src/main/java/com/thinkgem/jeesite/modules/taorg/dao/office/SysOfficeDao.java
/** * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved. */ package com.thinkgem.jeesite.modules.taorg.dao.office; import java.util.List; import com.thinkgem.jeesite.common.persistence.TreeDao; import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDa...
roytam1/wine-win31look
dlls/ddraw/d3dvertexbuffer.c
<gh_stars>1-10 /* Direct3D Viewport * Copyright (c) 2002 <NAME> * * This file contains the implementation of Direct3DVertexBuffer COM object * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software F...
GuillaumeFalourd/poc-bank-api-java
src/main/java/com/example/bankpoc/repository/AccountRepository.java
<filename>src/main/java/com/example/bankpoc/repository/AccountRepository.java<gh_stars>1-10 package com.example.bankpoc.repository; import java.util.Optional; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import com.example.bankpoc.models.entity.Accou...
mohofo7/orbit
packages/orbit-components/src/BadgeList/index.js
<filename>packages/orbit-components/src/BadgeList/index.js // @flow import * as React from "react"; import styled from "styled-components"; import type { Props } from "."; const StyledBadgeList = styled.ul` margin: 0; padding: 0; display: flex; flex-direction: column; `; const BadgeList = ({ children, dataTe...
SC0d3r/matrix
spec/div.spec.js
const div = require('../div'); describe('div function', function () { let m1, m2; it('should throw if any of the two matrices are not valid', function () { m1 = [1, 2]; m2 = [2, [2]]; expect(function () { div(m1, m2) }).toThrow(); }); it('should throw if matrices dont have the same dimension for d...
SonTrungTo/Full_Stack
EloquentJS/ch14/codesExample/attribute.js
let paras = document.body.getElementsByTagName('p'); for (let para of Array.from(paras)) { if (para.getAttribute("data-classified") == "secret") { para.remove(); } }
lyh2048/SpringBoot
SpringBoot-Shiro/src/main/java/com/example/controller/LoginController.java
package com.example.controller; import com.example.exception.ForbiddenUserException; import com.example.exception.IncorrectCaptchaException; import com.example.shiro.ShiroUtils; import org.apache.shiro.authc.IncorrectCredentialsException; import org.apache.shiro.authc.UnknownAccountException; import org.springframewor...
i-Taozi/Chorus
interpreter/chorus-executionlistener/src/main/java/org/chorusbdd/chorus/executionlistener/util/PromptOnScenarioEndExecutionListener.java
<gh_stars>10-100 /** * MIT License * * Copyright (c) 2019 Chorus BDD Organisation. * * 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 t...
Tiamat-Tech/sourcegraph
internal/database/user_credentials.go
package database import ( "context" "database/sql" "fmt" "time" "github.com/cockroachdb/errors" "github.com/keegancsmith/sqlf" "github.com/sourcegraph/sourcegraph/internal/database/basestore" "github.com/sourcegraph/sourcegraph/internal/database/dbutil" "github.com/sourcegraph/sourcegraph/internal/encryptio...
yangfancoming/spring-boot-build
spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/remote/server/Handler.java
package org.springframework.boot.devtools.remote.server; import java.io.IOException; import org.springframework.http.server.ServerHttpRequest; import org.springframework.http.server.ServerHttpResponse; /** * A single handler that is able to process an incoming remote server request. * * @author <NAME> * @since...
testerwang11/agent
src/main/java/com/daxiang/mbg/mapper/TestTaskMapper.java
package com.daxiang.mbg.mapper; import com.daxiang.mbg.po.TestTask; import com.daxiang.mbg.po.TestTaskExample; import java.util.List; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; @Mapper public interface TestTaskMapper { long countByExample(TestTaskExample example); ...
zhang-sai/config-errors
configuration-detector/subjects/randoop/randoop-src/randoop/TimeOutException.java
package randoop; public final class TimeOutException extends RuntimeException { private static final long serialVersionUID = 7932531804127083491L; public TimeOutException(String string) { super(string); } }
chrisly42/mc68000-asm-plugin
src/main/gen/de/platon42/intellij/plugins/m68k/psi/M68kVisitor.java
<reponame>chrisly42/mc68000-asm-plugin<gh_stars>1-10 // This is a generated file. Not intended for manual editing. package de.platon42.intellij.plugins.m68k.psi; import com.intellij.psi.PsiElementVisitor; import org.jetbrains.annotations.NotNull; public class M68kVisitor extends PsiElementVisitor { public void v...
copslock/broadcom_cpri
sdk-6.5.20/src/examples/sand/fe/cint_loopback_sr_cell.c
<filename>sdk-6.5.20/src/examples/sand/fe/cint_loopback_sr_cell.c /* * * * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Copyright 2007-2020 Broadcom Inc. All rights reserved. * * DCMN send \ receive loopback SR cell exa...
heaths/azure-sdk-for-go
sdk/messaging/azservicebus/doc.go
//go:build go1.16 // +build go1.16 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Package azservicebus provides clients for sending and receiving messages with Azure Service Bus. // NOTE: for creating and managing entities, use the `Client` in the `github.com/Azure/...
Z80coder/flintcms
index.js
const testing = process.env.NODE_ENV === 'test' /* istanbul ignore next */ require('dotenv').config({ path: testing ? '.env.dev' : '.env' }) const path = require('path') const { generateEnvFile } = require('./server/utils/generate-env-file') const nunjuckEnv = require('./server/utils/nunjucks') const validateEnvVaria...
stfnbssl/wizzi-browser
build/wizzi_modules/wizzi/lib/acl/index.js
<gh_stars>0 /* artifact generator: C:\my\wizzi\stfnbssl\wizzi\node_modules\wizzi-js\lib\artifacts\js\module\gen\main.js primary source IttfDocument: C:\my\wizzi\stfnbssl\wizzi\packages\wizzi\.wizzi\ittf\lib\acl\index.js.ittf */ 'use strict'; var md = module.exports = {}; md.AclStat = require('./aclstat');
ChauVV/CreateMM
src/App/Frontend/initsScreen/RestoreScreen/index.js
<reponame>ChauVV/CreateMM import RestoreScreen from './view' import { connect } from 'react-redux' import * as mapActionsToProps from './actions' const mapStateToProps = (state) => ({ ...state }) export default connect(mapStateToProps, mapActionsToProps)(RestoreScreen)
ran-li2002/minty-server
node_modules/symbol-openapi-typescript-fetch-client/dist/models/NodeHealthInfoDTO.js
<filename>node_modules/symbol-openapi-typescript-fetch-client/dist/models/NodeHealthInfoDTO.js "use strict"; /* tslint:disable */ /* eslint-disable */ /* * Copyright 2019 NEM * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You...
BlockchainDARG/ColumbiaImageSearch
cufacesearch/cufacesearch/ingester/deprecated/kafka_face_processor.py
#DEPRECATED # import os # import sys # import time # import json # import multiprocessing # from .generic_kafka_processor import GenericKafkaProcessor # from ..imgio.imgio import get_buffer_from_B64 # from ..featurizer.featsio import normfeatB64encode # from ..indexer.hbase_indexer_minimal import str_processed # # defa...
winderica/KanColleSource
functions/1222.js
const function1222 = function (t, e, i) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var n = i(15), o = i(417), r = function () { function t() { this._models = [] } return Object.defineProper...
mespper/go-babylonjs
cmd/docs2go/writer.go
package main import ( "bytes" "fmt" "go/format" "io/ioutil" "path/filepath" "regexp" "strings" "text/template" ) const ( prefix = "zzz_" ) var ( goTmpl = template.Must(template.New("source").Funcs(funcMap).Parse(source)) funcMap = map[string]interface{}{ "constructorParameterGoList": constructorParamet...
YRIDZE/Bicycle-delivery-service
pkg/handlers/order_handler.go
package handlers import ( "encoding/json" "net/http" "github.com/YRIDZE/Bicycle-delivery-service/conf" "github.com/YRIDZE/Bicycle-delivery-service/pkg/models" "github.com/YRIDZE/Bicycle-delivery-service/pkg/models/db_repository" "github.com/YRIDZE/Bicycle-delivery-service/pkg/models/requests" "github.com/YRIDZ...
Tarekbouamer/Image-Retrieval-for-Image-Based-Localization
cirtorch/modules/utils.py
<filename>cirtorch/modules/utils.py # for some models, we have imported features (convolutions) from caffe # because the image retrieval performance is higher for them # pre-computed localFeatures pca whitening that can be applied before the pooling layer L_WHITENING = { 'resnet101' : 'http://cmp.felk.cvut.cz/cn...
meshake/metals
metals/src/main/scala/scala/meta/internal/metals/BuildTargetInfo.scala
<reponame>meshake/metals<filename>metals/src/main/scala/scala/meta/internal/metals/BuildTargetInfo.scala package scala.meta.internal.metals import java.nio.file.Path import scala.collection.mutable.ListBuffer import scala.meta.internal.metals.MetalsEnrichments._ import scala.meta.internal.mtags.URIEncoderDecoder im...
HighSchoolHacking/GLS-Draft
test/integration/StandaloneFunctionDeclareStart/private one parameter.java
// private static String abc(Integer def) { //
mattkantor/basic-flask-app
venv/lib/python3.6/site-packages/celery/tests/app/test_loaders.py
<gh_stars>1-10 from __future__ import absolute_import import os import sys import warnings from celery import loaders from celery.exceptions import ( NotConfigured, ) from celery.loaders import base from celery.loaders import default from celery.loaders.app import AppLoader from celery.utils.imports import NotAPa...
viatkinviatkin/ember-flexberry-gis
app/utils/polygon-intersect-check.js
<gh_stars>1-10 export { default } from 'ember-flexberry-gis/utils/polygon-intersect-check';
Tradecoin-Token/kss_explorer
src/js/pages/SingleAddressPage/NonFungibleTokenList.container.js
import React from 'react'; import {withRouter} from 'react-router'; import ServiceFactory from '../../services/ServiceFactory'; import Loader from '../../components/Loader'; import {NonFungibleTokenListView} from './NonFungibleTokenList.view'; const TX_PAGE_SIZE = 100; class NonFungibleTokenListContainer extends Rea...
kemingy/daily-coding-problem
src/product_except.py
# Given an array of integers, return a new array such that each element at index # i of the new array is the product of all the numbers in the original array # except the one at i. # For example, if our input was [1, 2, 3, 4, 5], the expected output would be # [120, 60, 40, 30, 24]. If our input was [3, 2, 1], th...
huangruichang/treex
app/src/components/Repo/CommitDetail/CommitFileItem.js
import React, { Component, PropTypes } from 'react' const styles = require('./commitDetail.scss') export default class CommitFileItem extends Component { static propTypes = { path: PropTypes.string.isRequired, onClick: PropTypes.func.isRequired, patches: PropTypes.object.isRequired, mode: PropType...
Gaurav0/Old-School-RPG-Map
js/engine/Battle.js
<reponame>Gaurav0/Old-School-RPG-Map /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License ...
gudron/rockdolljs
src/views/table/src/tableHeadRowView.js
// TableHeadRowView // --------- import TableRowView from './tableRowView'; import TableCellView from './cell/tableCellView'; import TableHeadCellView from './cell/tableHeadCellView'; const TableHeadRowView = TableRowView.extend({ childView: TableHeadCellView, _cellTypes: { text: Tab...
amphied/speke-reference-server
spekev2_verification_testsuite/test_negative_cases.py
<filename>spekev2_verification_testsuite/test_negative_cases.py import pytest import xml.etree.ElementTree as ET from io import StringIO from .helpers import utils, speke_element_assertions @pytest.fixture def generic_request(spekev2_url): return utils.read_xml_file_contents("general", utils.GENERIC_WIDEVINE_TEST...
qingqibing/go-genproto
googleapis/ads/googleads/v3/resources/google_ads_field.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v3/resources/google_ads_field.proto package resources import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" enums "google.golang.org/genproto/googleapis/ads/go...
gonadn/SPFxAngularCLIWithRouting
node_modules/office-ui-fabric-react/lib-es2015/components/TeachingBubble/TeachingBubble.js
<filename>node_modules/office-ui-fabric-react/lib-es2015/components/TeachingBubble/TeachingBubble.js import * as tslib_1 from "tslib"; /* tslint:disable:no-unused-variable */ import * as React from 'react'; /* tslint:enable:no-unused-variable */ import { BaseComponent, css } from '../../Utilities'; import { TeachingBub...
t-gergely/infinispan
server/core/src/main/java/org/infinispan/server/core/transport/NonRecursiveEventLoopGroup.java
package org.infinispan.server.core.transport; import java.lang.invoke.MethodHandles; import java.util.concurrent.Callable; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; import org.infinispan.commons.CacheException; import org.infini...
vladimiratwork/znai
znai-website-gen/src/main/java/org/testingisdocumenting/znai/website/modifiedtime/ConstantPageModifiedTime.java
<reponame>vladimiratwork/znai<gh_stars>10-100 package org.testingisdocumenting.znai.website.modifiedtime; import org.testingisdocumenting.znai.structure.TocItem; import java.nio.file.Path; import java.time.Instant; public class ConstantPageModifiedTime implements PageModifiedTimeStrategy { private final Instant ...
d3scomp/JDEECo
jdeeco-ensembles-intelligent-z3/test/cz/cuni/mff/d3s/jdeeco/ensembles/intelligent/z3/StandaloneEnsemblesTest.java
<reponame>d3scomp/JDEECo package cz.cuni.mff.d3s.jdeeco.ensembles.intelligent.z3; import static org.hamcrest.CoreMatchers.containsString; import static org.junit.Assert.assertThat; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; import java.util.Collection; import org.ju...
zhouhaifeng/vpe
src/frr/zebra/zebra_gr.c
<reponame>zhouhaifeng/vpe /* * Zebra GR related helper functions. * * Portions: * Copyright (C) 2019 VMware, Inc. * et al. * * 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 Free * Software Foundation; either versi...
communitysoft/gather
db/migrate/20180818183634_add_menu_posted_at_to_meals.rb
<filename>db/migrate/20180818183634_add_menu_posted_at_to_meals.rb # frozen_string_literal: true class AddMenuPostedAtToMeals < ActiveRecord::Migration[5.1] def change add_column :meals, :menu_posted_at, :datetime end end
cpawley/ostap
ostap/math/models.py
<gh_stars>0 #!/usr/bin/env python # -*- coding: utf-8 -*- # ============================================================================= ## @file ostap/math/models.py # Module with some useful utilities for simple functions and fit models. # @author <NAME> <EMAIL> # @date 2011-12-01 # ============================...
roy2220/srs.old
trunk/src/app/srs_app_config.cpp
<filename>trunk/src/app/srs_app_config.cpp /* The MIT License (MIT) Copyright (c) 2013-2016 SRS(ossrs) 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 limit...
cn-demo/immudb4j
src/test/java/io/codenotary/immudb4j/ListDatabasesTest.java
/* Copyright 2021 CodeNotary, 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 copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
ZooPhy/zodo-services
zodo/ner/train_utils.py
<filename>zodo/ner/train_utils.py ''' Utility methods for loading and using the Named Entity Recognizer (NER) ''' from os import makedirs from os.path import join, exists import numpy as np from zodo.ner.ner_utils import PADDING def get_input(args, word_emb_model, input_file): '''loads input dataset based on mode...
rbins-swap-team/NoosDrift
noos_services/tasks/upload.py
<filename>noos_services/tasks/upload.py #!/usr/bin/python import sys # import pysftp # import paramiko import ftplib # if sys.version_info.major != 3: # print("This utility is not compatible with Python v{}.{}.{}".format(sys.version_info.major, sys.version_info.minor, # ...
aeten/net.aeten.core
src/net.aeten.core/net/aeten/core/util/AtomicArrayByComparator.java
<reponame>aeten/net.aeten.core<filename>src/net.aeten.core/net/aeten/core/util/AtomicArrayByComparator.java package net.aeten.core.util; import java.util.Comparator; import net.aeten.core.Factory; public class AtomicArrayByComparator<E> implements AtomicArray<E> { private final AtomicValue<E>[] elements; @Suppres...
krzysztof-magosa/huckleberry
include/huckleberry/spi/Bus.hpp
/** * Copyright 2014 <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,...
xiaochengcike/RegSeg
Code/Modules/Filtering/include/MultilabelBinarizeMeshFilter.hxx
// This file is part of RegSeg // // Copyright 2014-2017, <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 limitation the right...
xudonglei94/MyPhoneAssistant
app/src/main/java/org/crazyit/myphoneassistant/bean/requestbean/AppsUpdateBean.java
<reponame>xudonglei94/MyPhoneAssistant<filename>app/src/main/java/org/crazyit/myphoneassistant/bean/requestbean/AppsUpdateBean.java package org.crazyit.myphoneassistant.bean.requestbean; /** * Created by Administrator on 2018/6/27. */ public class AppsUpdateBean { private String packageName; private Strin...
violetjs/violet
server/seeds.js
<reponame>violetjs/violet Meteor.startup(function () { // TODO: detect the first run if (Settings.find().count() === 0 && Categories.find().count() === 0) { // If not in test if (!process.env.IS_MIRROR) { console.log('Generating seeds...'); // Populate test users var jonId = Accounts.cre...
Andreas237/AndroidPolicyAutomation
ExtractedJars/Apk_Extractor_com.ext.ui.apk/javafiles/com/startapp/android/publish/ads/video/tracking/VideoClickedTrackingParams.java
<reponame>Andreas237/AndroidPolicyAutomation<filename>ExtractedJars/Apk_Extractor_com.ext.ui.apk/javafiles/com/startapp/android/publish/ads/video/tracking/VideoClickedTrackingParams.java // Decompiled by Jad v1.5.8g. Copyright 2001 <NAME>. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimpor...
daehyeonhong/Oracle
javach10/src/ch26/DateTimeCreateExample.java
<filename>javach10/src/ch26/DateTimeCreateExample.java package ch26; import java.time.Instant; import java.time.LocalDate; import java.time.LocalDateTime; import java.time.LocalTime; import java.time.ZoneId; import java.time.ZonedDateTime; public class DateTimeCreateExample { public static void main(String[] args) t...
mikeboharsik/street-view-manager
src/components/GlobalState/selectors/selectFetcher.js
<gh_stars>0 export default function selectFetcher(state, type) { return state?.fetcher?.[type]; }
suryaumapathy2812/PDF-service
node_modules/@adobe/pdfservices-node-sdk/src/operation/rotate-pages-operation.js
<filename>node_modules/@adobe/pdfservices-node-sdk/src/operation/rotate-pages-operation.js<gh_stars>0 /* * Copyright 2019 Adobe * All Rights Reserved. * * NOTICE: Adobe permits you to use, modify, and distribute this file in * accordance with the terms of the Adobe license agreement accompanying * it. If you have...
botandrose/adva_cms
adva_cms/test/plugins/adva_post_ping/post_ping_test.rb
<filename>adva_cms/test/plugins/adva_post_ping/post_ping_test.rb<gh_stars>10-100 require File.expand_path(File.dirname(__FILE__) + '/../../test_helper') if Rails.plugin?(:adva_post_ping) require 'xmlrpc/client' # in a controller test for the Admin::ArticlesController # when you make sure that there's an article...
RuhrpottGangster/SwordGamesNET-Bungee
src/de/bySwordGames/Bungee/Commands/PingCommand.java
<filename>src/de/bySwordGames/Bungee/Commands/PingCommand.java /** * Die Klasse heißt: PingCommand.java * Die Klasse wurde am: 12.05.2017 | 21:45:56 erstellt. * Der Author der Klasse ist: bySwordGames */ package de.bySwordGames.Bungee.Commands; import de.bySwordGames.Bungee.Bungee; import net.md_5.bungee.B...
felidsche/BigDataBench_V5.0_BigData_ComponentBenchmark
Hadoop/apache-mahout-0.10.2-compile/integration/src/main/java/org/apache/mahout/utils/email/MailOptions.java
<reponame>felidsche/BigDataBench_V5.0_BigData_ComponentBenchmark /** * 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 ...