repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
EsfingeFramework/aomrolemapper
AOMRoleMapper/src/main/java/org/esfinge/aom/model/rolemapper/metadata/reader/provider/PropertyReaderProvider.java
<filename>AOMRoleMapper/src/main/java/org/esfinge/aom/model/rolemapper/metadata/reader/provider/PropertyReaderProvider.java package org.esfinge.aom.model.rolemapper.metadata.reader.provider; import org.esfinge.aom.model.rolemapper.metadata.reader.PropertyAnnotationReader; public class PropertyReaderProvider extends E...
mudkipmaster/gwlf-e
test/unittests/test_GRLostBarnN.py
<filename>test/unittests/test_GRLostBarnN.py import numpy as np from VariableUnittest import VariableUnitTest from gwlfe.AFOS.GrazingAnimals.Losses.GRLostBarnN import GRLostBarnN from gwlfe.AFOS.GrazingAnimals.Losses.GRLostBarnN import GRLostBarnN_f class TestGRLostBarnN(VariableUnitTest): def test_GRLostBarnN(...
goranstack/jfreeview
se.bluebrim.view.example.svg.resource/src/main/java/se/bluebrim/view/example/svg/resource/SVGSampleProvider.java
<filename>se.bluebrim.view.example.svg.resource/src/main/java/se/bluebrim/view/example/svg/resource/SVGSampleProvider.java package se.bluebrim.view.example.svg.resource; import java.awt.Color; import java.awt.Component; import java.awt.Cursor; import java.awt.Desktop; import java.awt.Font; import java.awt.Inset...
PedroBarata/design-patterns
SOLID/src/OCPeDIP/Compra.java
package OCPeDIP; public class Compra { private String cidade; private double valor; public String getCidade() { return cidade; } public double getValor() { return valor; } }
mikosz/coconut
coconut-pulp-mesh/src/main/c++/coconut/pulp/mesh/obj/Importer.hpp
#ifndef _COCONUT_PULP_RENDERER_MESH_OBJ_IMPORTER_HPP_ #define _COCONUT_PULP_RENDERER_MESH_OBJ_IMPORTER_HPP_ #include "coconut/pulp/mesh/Importer.hpp" #include "Parser.hpp" namespace coconut { namespace pulp { namespace mesh { namespace obj { class Importer : public mesh::Importer { public: Importer() = default; ...
alex-dya/security_scanner
src/scanner/controls/unix/linux/partitions/mount_options.py
from scanner.const import os, mount from scanner.types import BaseContol, is_item_detected, ControlStatus from scanner.transports import get_transport from scanner.functions.unix.mount_parser import MountFinditer class Control(BaseContol, control_number=4): partitions = { '/var/tmp': ( mount.N...
RogerCVXD/prograiii
HITO3/demo/src/main/java/com/spring/demo/Model/InterfaceModelPersona.java
package com.spring.demo.Model; public interface InterfaceModelPersona { public void Insertar(String nombre); }
YunLemon/jSCSI
bundles/commons/src/main/java/org/jscsi/parser/digest/CRCTables.java
/** * Copyright (c) 2012, University of Konstanz, Distributed Systems Group All rights reserved. * * 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 the above copyright noti...
teneeto/socs-backend
node_modules/flutterwave-node-v3/lib/rave.subscriptions.js
<reponame>teneeto/socs-backend<gh_stars>0 const activate_sub = require('../services/subscriptions/rave.activate') const cancel_sub = require('../services/subscriptions/rave.cancel') const retrieve_all = require('../services/subscriptions/rave.retrieve.all') const fetch_one = require('../services/subscriptions/rave.retr...
pczhangyu/poseidon
poseidon-search-service/src/main/java/com/poseidon/search/builders/IndexBuilder.java
package com.poseidon.search.builders; import org.elasticsearch.action.admin.indices.close.CloseIndexResponse; import org.elasticsearch.action.admin.indices.create.CreateIndexResponse; import org.elasticsearch.action.admin.indices.delete.DeleteIndexResponse; import org.elasticsearch.action.admin.indices.open.OpenIndexR...
chrisdearman/mips-lk2
trusty/lib/trusty/vqueue.c
/* * Copyright (c) 2013-2014, Google, Inc. All rights reserved * * 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, c...
kurohayan/dataStructureAndAlgorithm
netty/src/main/java/com/kuroha/netty/niosocket/socket/Client2.java
package com.kuroha.netty.niosocket.socket; import java.io.OutputStream; import java.net.InetSocketAddress; import java.net.Socket; /** * @author kuroha */ public class Client2 { public static void main(String[] args) throws Exception { Socket socket = new Socket(); System.out.println(socket.get...
msgimanila/EXT-React-MSG
misc/deprecated/deprecate-ext-react/dist/ExtViewport.js
import reactize from './reactize.js'; import EWCViewport from '@sencha/ext-web-components/src/ext-viewport.component.js'; export default reactize(EWCViewport);
liuzheng/django-project-template
projectname/management/utils/admin.py
<filename>projectname/management/utils/admin.py from django.contrib import admin from django.conf import settings from django.http import HttpResponseForbidden from management.models import ApiLog admin.site.site_header = settings.DJANGO_TITLE def has_permission(perm: str): def decorator(func): def wrapp...
Pixelated-Project/aosp-android-jar
android-31/src/com/android/internal/graphics/palette/WSMeansQuantizer.java
<reponame>Pixelated-Project/aosp-android-jar<filename>android-31/src/com/android/internal/graphics/palette/WSMeansQuantizer.java /* * Copyright (C) 2021 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 Licen...
soker90/arroyo-erp-client
src/pages/Expenses/modals/NewProviderModal/NewProviderModalView.js
<filename>src/pages/Expenses/modals/NewProviderModal/NewProviderModalView.js<gh_stars>1-10 import { memo, useEffect, useReducer } from 'react'; import PropTypes from 'prop-types'; import ProviderModal, { INITIAL_STATE } from 'components/Modals/ProviderModal'; const NewProviderModal = ({ show, close, createProvi...
temcocontrols/ModbusToBacnetModule
Bluetooth/external/bacnet-stack/ports/atmega168/bv.h
/************************************************************************** * * Copyright (C) 2006 <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...
newcommerdontblame/ionlib
src/sdk/hl2_csgo/game/shared/swarm/asw_util_shared.h
#ifndef _INCLUDE_ASW_UTIL_SHARED_H #define _INCLUDE_ASW_UTIL_SHARED_H // Misc functions used by other bits of ASW #include "util_shared.h" #include "asw_shareddefs.h" #ifdef CLIENT_DLL #define CPointCamera C_PointCamera #endif class CPhysicsProp; class CASW_Player; class CASW_Marine; class CASW_Marine_Resource; clas...
dc-tw/ohara
ohara-manager/client/cypress/integration/streamApp.test.js
<filename>ohara-manager/client/cypress/integration/streamApp.test.js /* * Copyright 2019 is-land * * 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/...
ZLkanyo009/mindspore
mindspore/lite/src/runtime/agent/npu/subgraph_npu_kernel.h
/** * Copyright 2020-2021 Huawei Technologies 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 applicabl...
huangyuanzhi1997/BlogSystem
src/main/java/top/huangyuanzhi/service/IUserService.java
<reponame>huangyuanzhi1997/BlogSystem<filename>src/main/java/top/huangyuanzhi/service/IUserService.java package top.huangyuanzhi.service; import top.huangyuanzhi.model.vo.User; /** * <p> * 服务类 * </p> * * @author Huang * @since 2020-09-02 */ public interface IUserService { /** * 用户登录 * @param us...
therussellhome/inherit_the_stars
stars/scan.py
<gh_stars>0 import sys from . import binning from .reference import Reference # Unscanned ships # First level of bins is the player # Second level is the bin number __unscanned = {} # Post scan bins __scanned = {} """ Clear the bins prior to updating them """ def reset(players): global __unscanned __unscann...
saalk/cards
server/src/main/java/cloud/qasino/quiz/dto/navigation/NavigationGame.java
package cloud.qasino.quiz.dto.navigation; import cloud.qasino.quiz.entity.Game; import cloud.qasino.quiz.entity.League; import cloud.qasino.quiz.entity.User; import cloud.qasino.quiz.entity.enums.game.style.*; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.AllArgsConstructor; import lombok...
skarzhevskyy/gwt-mock-2.5.1
src/main/java/com/google/gwt/i18n/client/impl/cldr/DateTimeFormatInfoImpl_kea.java
/* * Copyright 2012 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
Rushera/passwdsafe
lib-box/src/main/java/com/box/androidsdk/content/BoxFutureTask.java
package com.box.androidsdk.content; import java.util.ArrayList; import java.util.concurrent.Callable; import java.util.concurrent.ExecutionException; import java.util.concurrent.FutureTask; import com.box.androidsdk.content.models.BoxObject; import com.box.androidsdk.content.requests.BoxRequest; import com.box.androi...
dhendrix/mosys
platform/reef/reef.c
/* * Copyright 2016, Google Inc. * All rights reserved. * * 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 the above copyright * notice, this list of cond...
togogenome/togogenome
app/controllers/report_type/organisms_controller.rb
class ReportType::OrganismsController < ReportType::BaseController end
cowthan2019/xspring-solo
app/src/main/java/com/danger/app/user/model/RegisterForm.java
package com.danger.app.user.model; import com.danger.common.validator.AccountValue; import com.danger.common.validator.CanNotBeNull; import lombok.Data; import org.hibernate.validator.constraints.Length; import org.hibernate.validator.constraints.Range; @Data public class RegisterForm { @CanNotBeNull @Accou...
DarkRTA/bfbbdecomp
src/Core/x/xPartition.cpp
<gh_stars>0 #include "xPartition.h"
jayhyun-hwang/personal-archive
repositories/mock/paragraph_repository_mock.go
<filename>repositories/mock/paragraph_repository_mock.go package mock import "github.com/jaeyo/personal-archive/models" type ParagraphRepositoryMock struct { OnSave func(paragraph *models.Paragraph) error OnGetByIDAndNoteID func(id, noteID int64) (*models.Paragraph, error) OnFindByIDsAndNoteID f...
epfl-lasa/TutorialICRA2018
vendor/ruby/2.3.0/gems/aws-sdk-core-2.10.125/lib/aws-sdk-core/resourcegroupstaggingapi.rb
<gh_stars>1-10 Aws.add_service(:ResourceGroupsTaggingAPI, { api: "#{Aws::API_DIR}/resourcegroupstaggingapi/2017-01-26/api-2.json", docs: "#{Aws::API_DIR}/resourcegroupstaggingapi/2017-01-26/docs-2.json", examples: "#{Aws::API_DIR}/resourcegroupstaggingapi/2017-01-26/examples-1.json", paginators: "#{Aws::API_DIR...
fittner/SiMA
Entity/src/complexbody/io/actuators/actionExecutors/clsExecutorInternalRaiseEyeBrowsCorners.java
/** * CHANGELOG * * Sep 5, 2014 volkan - File created * */ package complexbody.io.actuators.actionExecutors; import body.clsComplexBody; import properties.clsProperties; import complexbody.io.actuators.clsInternalActionExecutor; import complexbody.io.actuators.actionCommands.clsInternalActionCommand; import compl...
rocious/omaha
third_party/lzma/v4_65/files/CPP/7zip/UI/Common/LoadCodecs.cpp
<reponame>rocious/omaha // LoadCodecs.cpp #include "StdAfx.h" #include "LoadCodecs.h" #include "../../../Common/MyCom.h" #ifdef NEW_FOLDER_INTERFACE #include "../../../Common/StringToInt.h" #endif #include "../../../Windows/PropVariant.h" #include "../../ICoder.h" #include "../../Common/RegisterArc.h" #ifdef EXTER...
DalavanCloud/google-ads-java
google-ads/src/main/java/com/google/ads/googleads/v0/enums/TravelPlaceholderFieldProto.java
<filename>google-ads/src/main/java/com/google/ads/googleads/v0/enums/TravelPlaceholderFieldProto.java // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v0/enums/travel_placeholder_field.proto package com.google.ads.googleads.v0.enums; public final class TravelPlaceholderField...
zealoussnow/chromium
tools/metrics/histograms/update_net_trust_anchors.py
#!/usr/bin/env python # Copyright 2017 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. """Updates NetTrustAnchors enum in histograms.xml file with values read from net/data/ssl/root_stores/root_stores.json. If the file w...
Muzammil-khan/Aspose.Email-Python-Dotnet
Examples/WorkingWithMimeMessages/ExtractingEmailHeaders.py
from aspose.email import MailMessage def run(): dataDir = "Data/" #ExStart: ExtractingEmailHeaders # Create MailMessage instance by loading an EML file message = MailMessage.load(dataDir + "email-headers.eml"); print("\n\nheaders:\n\n") # Print out all the headers index = 0 for ind...
825245794/JavaCodeExercise2015-2019
src/web/jsouptest.java
<reponame>825245794/JavaCodeExercise2015-2019<gh_stars>0 package web; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Scanner; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.jsoup.Connection; import org.jsoup.Jsoup; import org.jsoup.Connection.Method...
faizol/timescaledb
test/src/test_time_to_internal.c
<reponame>faizol/timescaledb<filename>test/src/test_time_to_internal.c /* * This file and its contents are licensed under the Apache License 2.0. * Please see the included NOTICE for copyright information and * LICENSE-APACHE for a copy of the license. */ #include <postgres.h> #include <fmgr.h> #include <catalog/p...
pdv-ru/ClickHouse
tests/ci/ccache_utils.py
#!/usr/bin/env python3 import logging import time import sys import os import shutil from pathlib import Path import requests from compress_files import decompress_fast, compress_fast DOWNLOAD_RETRIES_COUNT = 5 def dowload_file_with_progress(url, path): logging.info("Downloading from %s to temp path %s", url, ...
LiterDev/liter-react-mobile
app/components/Buttons/CategoryButton.js
<filename>app/components/Buttons/CategoryButton.js /** * CategoryButton.js created by 08liter */ import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Button from '@material-ui/core/Button'; import colorRed from '@material-ui/core/colors/red'; i...
vascoalramos/misago-deployment
misago/misago/users/tests/test_user_datadownloads_api.py
from ..datadownloads import request_user_data_download from ..test import AuthenticatedUserTestCase class UserDataDownloadsApiTests(AuthenticatedUserTestCase): def setUp(self): super().setUp() self.link = "/api/users/%s/data-downloads/" % self.user.pk def test_get_other_user_exports_anonymous...
safiulanik/problem-solving
LeetCode/linked-list/5-remove-nth-node-from-end-of-list.py
<gh_stars>0 """ URL: https://leetcode.com/explore/learn/card/linked-list/214/two-pointer-technique/1296/ Problem Statement: ------------------ Given the head of a linked list, remove the nth node from the end of the list and return its head. Example 1: Input: head = [1,2,3,4,5], n = 2 Output: [1,2,3,5] Example 2: In...
jingcao80/Elastos
Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/app/backup/CFullBackupDataOutput.cpp
//========================================================================= // Copyright (C) 2012 The Elastos 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 // // ...
nikitavlaev/embox
src/tests/stdlib/strchrnul_test.c
<gh_stars>100-1000 /** * @file * @brief Testing strchrnul function * * @author <NAME> * @date 27.03.2020 */ #include <string.h> #include <embox/test.h> EMBOX_TEST_SUITE("strchrnulnul testing suite"); TEST_CASE("strchrnul should be able to find every character") { const char *str = "abcdefghijklmnopqrstuvw...
kelu124/pyS3
org/apache/poi/hssf/usermodel/HSSFPalette.java
<reponame>kelu124/pyS3 package org.apache.poi.hssf.usermodel; import java.util.Locale; import org.apache.poi.hssf.record.PaletteRecord; import org.apache.poi.hssf.util.HSSFColor; import org.apache.poi.hssf.util.HSSFColor.AUTOMATIC; public final class HSSFPalette { private PaletteRecord _palette; private stat...
cliff363825/TwentyFour
01_Language/05_Python/study/lesson_05/07.递归.py
<filename>01_Language/05_Python/study/lesson_05/07.递归.py # 尝试求10的阶乘(10!) # 1! = 1 # 2! = 1*2 = 2 # 3! = 1*2*3 = 6 # 4! = 1*2*3*4 = 24 # print(1*2*3*4*5*6*7*8*9*10) # 创建一个变量保存结果 # n = 10 # for i in range(1,10): # n *= i # print(n) # 创建一个函数,可以用来求任意数的阶乘 def factorial(n): ''' 该函数用来求任意数...
minhloi/dropbox_api
spec/endpoints/files/upload_session_finish_spec.rb
<gh_stars>100-1000 # frozen_string_literal: true describe DropboxApi::Client, '#upload_session_finish' do before :each do @client = DropboxApi::Client.new end it 'will create a file', cassette: 'upload_session_finish/success' do cursor = @client.upload_session_start('Hello Dropbox!') commit = Dropbox...
nsnikhil/url-shortener
pkg/store/database.go
<filename>pkg/store/database.go<gh_stars>0 package store import ( "context" "database/sql" "github.com/newrelic/go-agent/v3/newrelic" "go.uber.org/zap" ) type ShortenerDatabase interface { Save(url, urlHash string) error Get(urlHash string) (string, error) } const ( saveQuery = "insert into shortener (url, ...
kynk94/torch-firewood
tests/__init__.py
<gh_stars>1-10 import os import sys _TEST_ROOT = os.path.dirname(__file__) _PROJECT_ROOT = os.path.dirname(_TEST_ROOT) sys.path.append(os.path.join(_TEST_ROOT, "stylegan3"))
lendlsmith/wagtail-cookiecutter-foundation
{{cookiecutter.project_slug}}/utils/templatetags/settings_tags.py
<reponame>lendlsmith/wagtail-cookiecutter-foundation from django import template from django.conf import settings register = template.Library() @register.simple_tag def get_ga_key(): return getattr(settings, 'GOOGLE_ANALYTICS_KEY', "") @register.simple_tag def get_google_maps_key(): return getattr(settings,...
getkloudi/integration-wrapper-generator
out/amazon_ec2/dist/model/Image.js
<reponame>getkloudi/integration-wrapper-generator "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); var _ArchitectureValues = _interopRequireDefault(require("./ArchitectureValues")); var _Bloc...
NewSpring/Eli
src/@data/Client/__mocks__/index.js
import { ApolloClient } from 'apollo-client'; import { SchemaLink } from 'apollo-link-schema'; import { makeExecutableSchema, addMockFunctionsToSchema } from 'graphql-tools'; import cache from '../cache'; // TODO: flush out with query interface for mocking tests const typeDefs = ` Query { } `; const schema = ma...
ivanmb/cryptomkt-java
src/main/java/com/cryptomkt/api/entity/Rate.java
package com.cryptomkt.api.entity; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; public class Rate implements Serializable { private static final long serialVersionUID = 1; @JsonProperty("market_maker") private String marketMaker; @JsonProperty("market_taker") ...
Jonathas-coder/Local-develop-web---cod3r
fundamentos/usandoLETemLOOP.js
<gh_stars>1-10 for (let i = 0; i < 10; i++){ console.log(i) } console.log('i=', i) // i não será exibido fora do laço porque a variavel let tem escopo de bloco.
cbshuman/Bugger
src/bugger/dataAccessInterface/dao/IcookieAccess.java
package bugger.dataAccessInterface.dao; import bugger.dataModel.serverModel.Cookie; public interface IcookieAccess extends Idao<Cookie> { Cookie CreateNewCookie(String userID); Cookie[] GetUserCookies(String userID); boolean DeleteCookie(String cookieID); }
jnthn/intellij-community
python/testData/inspections/PyTypeCheckerInspection/AgainstMergedTypingProtocols.py
<gh_stars>1-10 from typing import Protocol, Sized class SupportsClose(Protocol): def close(self) -> None: pass class SizedAndClosable(Sized, SupportsClose, Protocol): pass class Resource: def __len__(self) -> int: return 0 def close(self) -> None: pass def close(sized_an...
sahilmalik5/angular2
node_modules/angular2-hmr/state.js
<reponame>sahilmalik5/angular2 module.exports = require('./dist/webpack-state');
OpenBEL/openbel-framework
org.openbel.framework.common/src/main/java/org/openbel/framework/common/external/WriteCache.java
<filename>org.openbel.framework.common/src/main/java/org/openbel/framework/common/external/WriteCache.java /** * Copyright (C) 2012-2013 Selventa, Inc. * * This file is part of the OpenBEL Framework. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser Ge...
ales-tsurko/strvct.net
source/apps/Stats/mapping/places/Features.js
<gh_stars>0 "use strict" /* Features */ window.Features = class Features extends BMNode { initPrototype () { this.newSlot("features", null) } init () { super.init() return this } allCoordinates () { const coords = [] // array of points like: [x, ...
yannicnoller/hydiff
experiments/subjects/time_1/symexe/src/org/joda/time/MutableDateTime.java
/* * Copyright 2001-2013 <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 agre...
mbenson/therian
core/src/test/java/therian/operator/convert/NOPConverterTest.java
<reponame>mbenson/therian /* * Copyright the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ...
xiaohaijin/RHIC-STAR
StRoot/StDbUtilities/St_svtHybridDriftVelocityC.cxx
<reponame>xiaohaijin/RHIC-STAR<gh_stars>1-10 #include <assert.h> #include "TMath.h" #include "TString.h" #include "Stiostream.h" #include "St_svtHybridDriftVelocityC.h" ClassImp(St_svtHybridDriftVelocityC); St_svtHybridDriftVelocityC *St_svtHybridDriftVelocityC::fgsvtHybridDriftVelocityC = 0; Double_t St_svtHybridDrift...
FloThinksPi-Forks/vstutils
vstutils/translations/ru.py
# flake8: noqa: E501 TRANSLATION = { 'create': 'создать', 'add': 'добавить', 'edit': 'редактировать', 'save': 'сохранить', 'remove': 'удалить', 'reload': 'перезагрузить', 'send': 'отправить', 'select': 'выбрать', 'filters': 'фильтры', 'apply': 'применить', 'cancel': 'отменить...
swaplicado/sa-lib-10
src/sa/lib/srv/SSrvResponse.java
<reponame>swaplicado/sa-lib-10 /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package sa.lib.srv; import java.io.Serializable; import sa.lib.SLibConsts; /** * * @author <NAME> */ public class SSrvResponse implements Serializable { protected int mnResponseTy...
Hacky-DH/pytorch
torch/csrc/stub.c
#include <Python.h> #ifdef _WIN32 __declspec(dllimport) #endif extern PyObject* initModule(void); #ifndef _WIN32 #ifdef __cplusplus extern "C" #endif __attribute__((visibility("default"))) PyObject* PyInit__C(void); #endif PyMODINIT_FUNC PyInit__C(void) { return initModule(); }
oakesville/mdw
mdw-common/src/com/centurylink/mdw/test/TestCaseFile.java
<reponame>oakesville/mdw package com.centurylink.mdw.test; import java.io.FileInputStream; import java.io.IOException; public class TestCaseFile extends java.io.File { public TestCaseFile(String pathname) { super(pathname); } public String getText() throws IOException { return text(); ...
little9/laevigata
app/forms/hyrax/etd_form.rb
<gh_stars>1-10 # Generated via # `rails generate hyrax:work Etd` module Hyrax class EtdForm < Hyrax::Forms::WorkForm include SingleValuedForm self.model_class = ::Etd # about me terms self.terms += [:graduation_date] self.terms += [:post_graduation_email] self.terms += [:resource_type] se...
trolldbois/metasploit-framework
lib/gemcache/ruby/1.9.1/gems/tzinfo-0.3.33/lib/tzinfo/definitions/Asia/Tel_Aviv.rb
<filename>lib/gemcache/ruby/1.9.1/gems/tzinfo-0.3.33/lib/tzinfo/definitions/Asia/Tel_Aviv.rb module TZInfo module Definitions module Asia module Tel_Aviv include TimezoneDefinition linked_timezone 'Asia/Tel_Aviv', 'Asia/Jerusalem' end end end end
yhl452493373/Blog
src/main/java/com/yang/blog/es/dao/base/EsBaseDao.java
package com.yang.blog.es.dao.base; import org.springframework.data.elasticsearch.repository.ElasticsearchRepository; import org.springframework.data.repository.NoRepositoryBean; import java.io.Serializable; @NoRepositoryBean public interface EsBaseDao<EsDoc, ID extends Serializable> extends ElasticsearchRepository<E...
maqiangddb/AndroidVncServer
jni/guacd/pixman/demos/gtk-utils.c
#include <gtk/gtk.h> #include <config.h> #include "../test/utils.h" #include "gtk-utils.h" GdkPixbuf * pixbuf_from_argb32 (uint32_t *bits, gboolean has_alpha, int width, int height, int stride) { GdkPixbuf *pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, TRUE, 8, width, height); int p...
gengyuanzhe/betwixt
src/test/org/apache/commons/betwixt/TestOptions.java
<filename>src/test/org/apache/commons/betwixt/TestOptions.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 und...
Umi-faith/data-cleaning-master
src/main/java/utils/JDBCUtil.java
package utils; /** * @Author twh * @Date 2020/4/4 17:01 */ import java.sql.*; public class JDBCUtil { static final String DriverName="org.apache.hive.jdbc.HiveDriver"; static final String url="jdbc:hive2://cdh-slave1:10000/faith_server"; static final String user=""; static final String pass=""; ...
ujjwalgulecha/Coding
Others/test.cpp
#include "hungarian.h" std::vector< std::vector<int> > array_to_matrix(int* m, int rows, int cols) { int i,j; std::vector< std::vector<int> > r; r.resize(rows, std::vector<int>(cols, 0)); for(i=0;i<rows;i++) { for(j=0;j<cols;j++) r[i][j] = m[i*cols+j]; } return r; } int main() { /* an exa...
kslat3r/terraform-provider-form3
models/user.go
<gh_stars>0 // Code generated by go-swagger; DO NOT EDIT. package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "strconv" strfmt "github.com/go-openapi/strfmt" "github.com/go-openapi/errors" "github.com/go-op...
zjclugger/ComponentApp
Buyer/src/main/java/com/zjclugger/buyer/repository/FinanceRepository.java
<reponame>zjclugger/ComponentApp<gh_stars>0 package com.zjclugger.buyer.repository; public class FinanceRepository { private static FinanceRepository mInstance; public static FinanceRepository getInstance() { if (mInstance == null) { mInstance = new FinanceRepository(); } r...
burnsba/getools
Getools.Test/TestFiles/stan/Tbg_testbeta_all_p_stanZ.c
<reponame>burnsba/getools /* * This file was automatically generated * * Thursday, August 5, 2021 7:29:18 PM * Getools.Lib: 192.168.3.11 */ #include "ultra64.h" #include "stan.h" // forward declarations BetaStandTile tile_0; StandFileHeader Tbg_testbeta_all_p_stanZ = { NULL, &tile_0, {0x00, 0x00, 0x00, ...
jorgeldra/CongressDroid
src/com/jorgeldra/seio/entidad/AlmacenConferencia.java
package com.jorgeldra.seio.entidad; import java.util.ArrayList; public class AlmacenConferencia implements InterfazConferencia{ private ArrayList<Conferencia> conferencias; public AlmacenConferencia() { // TODO Auto-generated constructor stub conferencias = new ArrayList<Conferencia>(); } @Override publ...
Wanzyee/UnityLab
html/class_wanzyee_studio_1_1_json_1_1_color_converter.js
<filename>html/class_wanzyee_studio_1_1_json_1_1_color_converter.js var class_wanzyee_studio_1_1_json_1_1_color_converter = [ [ "GetPropertyNames", "class_wanzyee_studio_1_1_json_1_1_color_converter.html#a61eca50fcecd37b6ced0c9f9a8b0672c", null ], [ "CreateInstance", "class_wanzyee_studio_1_1_json_1_1_color_con...
yntelectual/nlighten
nlighten-backend/src/main/java/me/nlighten/backend/rest/model/LessonDTO.java
<gh_stars>1-10 package me.nlighten.backend.rest.model; import java.util.Date; import java.util.Set; /** * The Class Lesson. * * @author Lubo */ public class LessonDTO extends TraceAbleDTO { /** * The title. */ private String title; /** * The description. */ private String description; /**...
voc-chain/re-birth
db/migrate/20181229030703_add_timestamp_to_transactions.rb
<reponame>voc-chain/re-birth<filename>db/migrate/20181229030703_add_timestamp_to_transactions.rb class AddTimestampToTransactions < ActiveRecord::Migration[5.2] def change add_column :transactions, :timestamp, :bigint reversible do |dir| dir.up do execute %{UPDATE transactions AS tx SET "timest...
Corpus-2021/nakedobjects-4.0.0
core/metamodel/src/main/java/org/nakedobjects/metamodel/facets/object/notpersistable/NotPersistableFacetImpl.java
package org.nakedobjects.metamodel.facets.object.notpersistable; import org.nakedobjects.applib.events.UsabilityEvent; import org.nakedobjects.metamodel.facets.FacetHolder; import org.nakedobjects.metamodel.interactions.UsabilityContext; public class NotPersistableFacetImpl extends NotPersistableFacetAbstract...
SoyaYooh/Panda
panda-services/panda-user-service/src/main/java/com/yukong/panda/user/service/impl/SysUserServiceImpl.java
package com.yukong.panda.user.service.impl; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.google.common.base.Strings; import com.yukong.panda.common.enums.PasswordEncoderEnum; import com.yukong.panda.common.vo.SysUserV...
belyokhin/trusteeWallet
crypto/blockchains/bch/BchScannerProcessor.js
<reponame>belyokhin/trusteeWallet /** * @version 0.11 * https://developer.bitcoin.com/rest/docs/address => trezor */ import DogeScannerProcessor from '../doge/DogeScannerProcessor' import BtcCashUtils from './ext/BtcCashUtils' export default class BchScannerProcessor extends DogeScannerProcessor{ /** * @t...
danifeijo/JS-Practica
PracticaJS/js/17.js
<filename>PracticaJS/js/17.js const numero1 = 20 ; const numero2 = '20'; console.log (parseInt(numero2)) ; // es una funcion console.log(numero1.toString()) ; // es un metodo
sjj3086786/aliyun-openapi-java-sdk
aliyun-java-sdk-dm/src/main/java/com/aliyuncs/dm/simple/MailSender.java
<reponame>sjj3086786/aliyun-openapi-java-sdk package com.aliyuncs.dm.simple; import javax.activation.DataHandler; import javax.activation.DataSource; import javax.mail.*; import javax.mail.internet.*; import java.io.UnsupportedEncodingException; import java.util.*; import java.util.concurrent.*; public class MailSend...
AllanMangeni/Tatum-crypto-exchange
node_modules/stellar-base/lib/account.js
<reponame>AllanMangeni/Tatum-crypto-exchange<filename>node_modules/stellar-base/lib/account.js<gh_stars>0 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.Account = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.le...
yudong2015/openpitrix
pkg/service/category/handler.go
<filename>pkg/service/category/handler.go // Copyright 2018 The OpenPitrix Authors. All rights reserved. // Use of this source code is governed by a Apache license // that can be found in the LICENSE file. package category import ( "context" "time" "openpitrix.io/openpitrix/pkg/client/attachment" "openpitrix.io/...
flashboss/rubia-forums
rubia-forums-jsf/src/test/java/it/vige/rubia/selenium/moderate/action/RemoveForum.java
<reponame>flashboss/rubia-forums<filename>rubia-forums-jsf/src/test/java/it/vige/rubia/selenium/moderate/action/RemoveForum.java package it.vige.rubia.selenium.moderate.action; import static it.vige.rubia.properties.OperationType.CONFIRM; import static org.openqa.selenium.By.className; import static org.openqa.seleniu...
kleineroscar/jare
src/main/java/com/datamelt/util/AvroSchemaUtility.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 ...
brown-ccv/VRG3D
vrbase/ViewerHCI.cpp
<gh_stars>0 #include "ViewerHCI.H" #include "ConfigVal.H" #include "StringUtils.H" namespace VRBase { using namespace G3D; ViewerHCI::ViewerHCI(EventMgrRef eventMgr, GfxMgrRef gfxMgr) { _eventMgr = eventMgr; _gfxMgr = gfxMgr; _rocking = false; _rockingDir = 1.0; _totalAngle = 0.0; _rotAngularVel = Con...
cquoss/jboss-4.2.3.GA-jdk8
system/src/main/org/jboss/deployment/ClasspathExtension.java
/* * JBoss, Home of Professional Open Source. * Copyright 2006, Red Hat Middleware LLC, and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can redistribute it and/or modify i...
felipeorlando/k121
api/routes/auth.js
<gh_stars>1-10 import express from 'express'; import AuthController from '../controllers/auth'; class AuthRoute { constructor() { this.router = express.Router(); this.authController = new AuthController(); } init() { return this.router .post('/check', this.authController.check) .post('/l...
rokka-io/rokka-ui
src/components/operations/StackOperation.js
import React, { Fragment } from 'react' import StringStackOption from '../options/StringStackOption' import SelectStackOption from '../options/SelectStackOption' import { readableInputLabel } from '../../utils/string' import RangeStackOption from '../options/RangeStackOption' import ColorStackOption from '../options/Co...
mostynb/webrtc
examples/objc/AppRTCDemo/ARDSDPUtils.h
/* * Copyright 2015 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 contributing ...
kanzankazu/OG
app/src/main/java/com/gandsoft/openguide/model/BaseExpandableListModel.java
<reponame>kanzankazu/OG<gh_stars>0 package com.gandsoft.openguide.model; import java.util.ArrayList; import java.util.List; public class BaseExpandableListModel { private String title; private String info; private List<SubBaseExpanderListModel> detail = new ArrayList<>(); public String getTitle() { ...
directionless/google-cloud-ruby
google-cloud-trace/lib/google/cloud/trace/span.rb
# Copyright 2014 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
hongdongni/onebusaway-application-modules
onebusaway-admin-webapp/src/main/java/org/onebusaway/admin/service/impl/BarcodeServiceImpl.java
/** * Copyright (C) 2015 Cambridge Systematics, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
wkma/bk-sops
gcloud/core/tasks.py
<filename>gcloud/core/tasks.py # -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may...
MaximilianWenzel/DeductiveClosureComputation
dcc-lib/src/main/java/util/serialization/Serializer.java
package util.serialization; import java.io.IOException; import java.io.Serializable; import java.nio.ByteBuffer; public interface Serializer { byte[] serialize(Serializable obj) throws IOException; void serializeToByteBuffer(Serializable obj, ByteBuffer buffer) throws IOException; Object deserializeFro...
KMCzajkowski/pyscf
examples/mcscf/43-dmet_cas.py
#!/usr/bin/env python from functools import reduce import numpy import scipy.linalg from pyscf import scf from pyscf import gto from pyscf import mcscf, fci ''' Triplet and quintet energy gap of Iron-Porphyrin molecule In this example, we use density matrix embedding theory (ref. Q Sun, JCTC, 10(2014), 3784) to gene...