repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
Shashi-rk/azure-sdk-for-java
sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteLinkProperties.java
<filename>sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteLinkProperties.java<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. ...
3PillarGlobal/hailstorm-sdk
hailstorm-api/app/api/jmeter_plans.rb
<filename>hailstorm-api/app/api/jmeter_plans.rb # frozen_string_literal: true require 'sinatra' require 'json' require 'hailstorm/model/project' require 'hailstorm/support/configuration' require 'model/project_configuration' require 'helpers/jmeter_helper' include JMeterHelper get '/projects/:project_id/jmeter_plans...
midnightbr/Faculdade
java/JARS/hibernate-release-5.6.0.Final/project/hibernate-core/src/test/java/org/hibernate/test/jpa/ql/MapIssueTest.java
/* * Hibernate, Relational Persistence for Idiomatic Java * * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. */ package org.hibernate.test.jpa.ql; import org.hibernate.Session; import org.hibern...
fanmeijian/sparrow
sparrow-permission-model/src/main/java/cn/sparrow/permission/model/organization/EmployeeOrganizationRolePK.java
<reponame>fanmeijian/sparrow package cn.sparrow.permission.model.organization; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Embeddable; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Embeddable @Data @NoArgsConstructor ...
heriipurnama/smart-depo
src/modules/modul/ModulController.js
<reponame>heriipurnama/smart-depo<filename>src/modules/modul/ModulController.js<gh_stars>1-10 "use strict"; const baseResponse = require("../../utils/helper/Response"); const { tblmodules } = require("../../db/models"); const Logger = require("../../utils/helper/logger"); class ModulController { static async create...
JaneMandy/CS
org/apache/fop/Version.java
<reponame>JaneMandy/CS<gh_stars>1-10 package org.apache.fop; public final class Version { private Version() { } public static String getVersion() { String version = null; Package jarinfo = Version.class.getPackage(); if (jarinfo != null) { version = jarinfo.getImplementationVersion...
rhan1498/marine-integrations
mi/core/time.py
#!/usr/bin/env python """ @package mi.core.time @file mi/core/time.py @author <NAME> @brief Common time functions for drivers """ # Needed because we import the time module below. With out this '.' is search first # and we import ourselves. from __future__ import absolute_import __author__ = '<NAME>' __license__ = '...
YujiaYan0709/botbuilder-java
libraries/bot-connector/src/main/java/com/microsoft/bot/restclient/credentials/BasicAuthenticationCredentialsInterceptor.java
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.microsoft.bot.restclient.credentials; import com.google.common.io.BaseEncoding; import java.nio.charset.StandardCharsets; import okhttp3.Interceptor; import okhttp3.Request; import okhttp3.Response; import jav...
daodao10/chart
cn/SH000993_d.js
<filename>cn/SH000993_d.js var data=[['20050104',996.870], ['20050105',1022.240], ['20050106',1014.440], ['20050107',1021.530], ['20050110',1033.130], ['20050111',1031.890], ['20050112',1025.380], ['20050113',1032.390], ['20050114',1013.250], ['20050117',991.110], ['20050118',1009.560], ['20050119',998.140], ['20050120...
amaabca/ama_styles
config/routes.rb
<gh_stars>0 # frozen_string_literal: true AMA::Styles::Engine.routes.draw do end
taotaomima/Shopping0224
shopping-administrator-back/src/main/java/com/gtt/shoppingproductback/service/CustomerServiceImpl.java
package com.gtt.shoppingproductback.service; import com.github.pagehelper.Page; import com.github.pagehelper.PageHelper; import com.gtt.shoppingproductback.dao.CustomerMapper; import com.gtt.shoppingproductback.dto.in.CustomerCreateIn; import com.gtt.shoppingproductback.dto.in.CustomerSearchIn; import com.gtt.shopping...
realrespecter/PUBG-FULL-SDK
SDK/PUBG_MediaAssets_parameters.hpp
#pragma once // PUBG FULL SDK - Generated By Respecter (5.3.4.11 [06/03/2019]) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "PUBG_MediaAssets_classes.hpp" namespace SDK { //--------------------------------------------------------------------------- //Parameters //------------------------------------...
nokia/osgi-microfeatures
com.alcatel.as.ioh.impl/src/com/alcatel/as/ioh/impl/client/ClientFactoryImpl.java
// Copyright 2000-2021 Nokia // // Licensed under the Apache License 2.0 // SPDX-License-Identifier: Apache-2.0 // package com.alcatel.as.ioh.impl.client; import java.util.*; import java.net.*; import java.nio.*; import java.util.concurrent.*; import java.util.concurrent.atomic.*; import com.alcatel.as.ioh.*; import...
zyz610650/beanbox
beanbox-core/src/main/java/com/beanbox/beans/aware/Aware.java
<filename>beanbox-core/src/main/java/com/beanbox/beans/aware/Aware.java package com.beanbox.beans.aware; /** * @author: @zyz * 标记类接口,实现该接口可以被Spring容器感知 */ public interface Aware { }
github-60587294/crowdin-cli
src/main/java/com/crowdin/cli/commands/actions/ListBranchesAction.java
package com.crowdin.cli.commands.actions; import com.crowdin.cli.client.CrowdinProjectFull; import com.crowdin.cli.client.ProjectClient; import com.crowdin.cli.commands.NewAction; import com.crowdin.cli.commands.Outputter; import com.crowdin.cli.commands.functionality.DryrunBranches; import com.crowdin.cli.properties....
thebigcx/micro
kernel/include/uapi/micro/fcntl.h
#pragma once #define O_RDONLY 0x000 #define O_WRONLY 0x001 #define O_RDWR 0x002 #define O_CREAT 0100 #define O_EXCL 0200 #define O_NOCTTY 0400 #define O_TRUNC 01000 #define O_APPEND 02000 #define O_NONBLOCK 04000 #define O_DSYNC 010000 #define O_SYNC 04010000 #de...
uva-slp/pauselab
app/spec/models/proposal_budget_spec.rb
require 'rails_helper' RSpec.describe ProposalBudget, type: :model do it "is valid with all fields" do budget = build :proposal_budget expect(budget).to be_valid end it "is not valid with one of fields missing" do budget = build :proposal_budget, :artist_fees => '' expect(budget).to_not be_vali...
bsipocmpi/jetty.project
jetty-websocket/websocket-core-common/src/main/java/org/eclipse/jetty/websocket/core/internal/TransformingFlusher.java
<gh_stars>1000+ // // ======================================================================== // Copyright (c) 1995-2021 Mort Bay Consulting Pty Ltd and others. // // This program and the accompanying materials are made available under the // terms of the Eclipse Public License v. 2.0 which is available at // https://...
cdebortoli/scpm
db/migrate/20110918131707_add_checklist_is_not_applicable_to_milestone.rb
<reponame>cdebortoli/scpm class AddChecklistIsNotApplicableToMilestone < ActiveRecord::Migration def self.up add_column :milestones, :checklist_not_applicable, :integer, :default=>0 end def self.down remove_column :milestones, :checklist_not_applicable end end
xuanquanchen/Urolithiasis-diagnostic-system
back end/src/main/java/com/JNUHealthSupervisor/ucdas/DAO/UserRecordDAO.java
package com.JNUHealthSupervisor.ucdas.DAO; import com.JNUHealthSupervisor.ucdas.VO.FeaturesRecordVO; import com.JNUHealthSupervisor.ucdas.dto.FeaturesDTO; public interface UserRecordDAO { /** * 普通用户诊断记录非筛选查询(only for user) * @return {@code FeaturesRecordVO} * @see FeaturesRecordVO */ public FeaturesR...
ODCleanStore/ODCleanStore
odcleanstore/inputclient/src/main/java/cz/cuni/mff/odcleanstore/wsclient/soap/HttpClientForInputWS.java
package cz.cuni.mff.odcleanstore.wsclient.soap; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.OutputStreamWriter; import java.io.Reader; import java.io.Writer; import java.net.Socket; import java.net.URL; import java.net.URLEncoder; import java.net.UnknownHos...
zpapakipos/dynabench-1
api/tools/adjust_vqa_test2015_tag.py
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # flake8: noqa import ujson # isort:skip import os # isort:skip import sys # isort:skip import sqlalchemy as db from sqlalchemy import JSON ...
thomasmillergb/Year2-ruby-software-hut
spec/models/student_spec.rb
require 'spec_helper' describe Student do pending "add some examples to (or delete) #{__FILE__}" end
afishr/utm-cp
Lab-2/ex8.c
#include <stdio.h> #include <conio.h> int main() { int tab[10][10], nill[10], x; scanf("%d", &x); for (int i = 0; i < x; ++i) { nill[i] = 1; for (int j = 0; j < x; ++j) { scanf("%d", &tab[i][j]); if (tab[i][j] == 0) nill[i] = 0; } } for (int i = 0; i < x; ++i) { if (nill[i]) { prin...
kaka-lin/pycon.tw
src/events/migrations/0034_merge_20210131_1832.py
<gh_stars>10-100 # Generated by Django 3.0.7 on 2021-01-31 10:32 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('events', '0033_auto_20210130_2309'), ('events', '0033_auto_20210131_1548'), ] operations = [ ]
buithehoa/rspec-3-book
book-code/08-metadata/12/spec/spec_helper.rb
RSpec.configure do |config| config.filter_run_when_matching :focus end RSpec.describe "With no examples focused" do it "only runs if no other examples are focused" do end end RSpec.describe "With an example focused" do it "runs alone when focused", :focus => !!ENV['FOCUS_AN_EXAMPLE'] do end end
oliveiralecca/origamid-react
03-react-hooks/05-usecontext/appreact/src/ExContext.js
<filename>03-react-hooks/05-usecontext/appreact/src/ExContext.js import React from 'react' export const ExContext = React.createContext() export const ExStorage = ({ children }) => { const [dados, setDados] = React.useState(null) // Faz o fetch assim que o usário entrou no App, é um efeito React.useEffect(()...
deadmoroz369/tekwill-homework
src/com/tekwill/learning/basics/jan11/ValueOfPi.java
package com.tekwill.learning.basics.jan11; import java.util.Scanner; public class ValueOfPi { public static void main(String[] args) { System.out.println("Let's find the value of 3.14159! Enter a number in range of 0 to 200,000: "); Scanner scanner = new Scanner(System.in); int number = ...
tinyvampirepudge/ThinkInJavaPractice
app/src/main/java/com/tinytongtong/thinkinjavapractice/chapter08/part03/polymorphism/poly/constructors/package-info.java
<reponame>tinyvampirepudge/ThinkInJavaPractice<gh_stars>0 package com.tinytongtong.thinkinjavapractice.chapter08.part03.polymorphism.poly.constructors; /** * @Description: 构造器内部的多态方法的行为 * * @Author <EMAIL> * @Date 2019/1/15 1:50 PM * @Version */
CJoriginal/cjlumberyard
dev/Gems/LmbrCentral/Code/Source/Shape/EditorPolygonPrismShapeComponent.cpp
<reponame>CJoriginal/cjlumberyard<filename>dev/Gems/LmbrCentral/Code/Source/Shape/EditorPolygonPrismShapeComponent.cpp<gh_stars>1-10 /* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of t...
BulkSecurityGeneratorProject/dictionary
src/main/webapp/scripts/components/entities/translation/translation.search.service.js
<reponame>BulkSecurityGeneratorProject/dictionary 'use strict'; angular.module('dictionaryApp') .factory('TranslationSearch', function ($resource) { return $resource('api/_search/translations/:query', {}, { 'query': { method: 'GET', isArray: true}, 'find' : { method: 'GET', isArray:...
pubnative/hybid-ios-mopub-mediation-demo
MoPub Mediation Demo/Pods/mopub-ios-sdk/MoPubSDK/NativeAds/Internal/MPMoPubNativeAdAdapter.h
<gh_stars>100-1000 // // MPMoPubNativeAdAdapter.h // // Copyright 2018-2021 Twitter, Inc. // Licensed under the MoPub SDK License Agreement // http://www.mopub.com/legal/sdk-license-agreement/ // #import "MPNativeAdAdapter.h" @class MPAdConfiguration; @interface MPMoPubNativeAdAdapter : NSObject <MPNativeAdAdapt...
zjhlogo/blink
source/foundation/File.cpp
<filename>source/foundation/File.cpp /*! * \file File.cpp * * \author zjhlogo * \date 2019/11/15 * * */ #include "File.h" namespace blink { File::File() {} File::File(const tstring& filePath, int flag /*= AM_READ*/) { open(filePath, flag); } File::~File() { close(); } bool File::readFileIntoS...
Brest-Java-Course-2021-2/Rodion-Khripunov-University
web-app/src/main/java/com.epam.brest.web_app/validators/StudentValidator.java
<filename>web-app/src/main/java/com.epam.brest.web_app/validators/StudentValidator.java package com.epam.brest.web_app.validators; import com.epam.brest.model.Student; import org.springframework.stereotype.Component; import org.springframework.util.StringUtils; import org.springframework.validation.Errors; import org....
visualitypl/bchess
lib/bchess/helpers/field_between_helpers.rb
<gh_stars>1-10 module FieldBetweenHelpers def row_fields(dcolumn, _drow) smaller, bigger = [column, dcolumn].sort (smaller + 1..bigger - 1).map { |c| [c, row] } end def column_fields(_dcolumn, drow) smaller, bigger = [row, drow].sort (smaller + 1..bigger - 1).map { |r| [column, r] } end def ...
reels-research/iOS-Private-Frameworks
CoreUtils.framework/CURangingPeer.h
<filename>CoreUtils.framework/CURangingPeer.h /* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/CoreUtils.framework/CoreUtils */ @interface CURangingPeer : NSObject { NSData * _deviceAddress; NSData * _deviceIRK; NSString * _deviceModel; } @property (nonatomic, copy) NSData *devi...
ppartarr/azure-sdk-for-java
sdk/cosmos/azure-cosmos/src/test/java/com/azure/cosmos/CosmosDatabaseContentResponseOnWriteTest.java
<filename>sdk/cosmos/azure-cosmos/src/test/java/com/azure/cosmos/CosmosDatabaseContentResponseOnWriteTest.java /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. * */ package com.azure.cosmos; import com.azure.cosmos.models.CosmosDatabaseProperties; import com.azure.c...
bluepichu/node_pcap
decode/vlan.js
function Vlan() { this.priority = null; this.canonical_format = null; this.id = null; } // http://en.wikipedia.org/wiki/IEEE_802.1Q Vlan.prototype.decode = function (raw_packet, offset) { this.priority = (raw_packet[offset] & 0xE0) >> 5; this.canonical_format = (raw_packet[offset] & 0x10) >> 4; this.id ...
santuan/gatby-stn
src/components/header.js
import { Link } from "gatsby" import PropTypes from "prop-types" import React from "react" import Headroom from "react-headroom" import IsoStn from "../animations/isoWelcome" import "../styles/header.css" import { FiSend } from "react-icons/fi" const Header = () => ( <Headroom disableInlineStyles> <div className...
linjiev5/EasyRecrui
src/main/java/jp/easyrecrui/repository/MessageToOperationRepository.java
package jp.easyrecrui.repository; import java.util.ArrayList; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import jp.easyrecrui.entity.MessageToOperation; @Repository public interface MessageToOperationRepository extends JpaRepository<MessageToOpera...
manipulateur/ofxRobotArm
src/world/WorkSurface3D.cpp
<gh_stars>100-1000 // // WorkSurface3D.cpp // example-surface-following // // Created by mad on 4/26/16. // // // // Copyright (c) 2016, 2021 <NAME>, <NAME>, and The Frank-Ratchye STUDIO for Creative Inquiry All rights reserved. //// #include "WorkSurface3D.h" namespace ofxRobotArm{ WorkSurface3D::WorkSurface3D...
lemkova/Yorozuya
YorozuyaGSLib/source/_ANIMUSKEY.cpp
<reponame>lemkova/Yorozuya<filename>YorozuyaGSLib/source/_ANIMUSKEY.cpp<gh_stars>10-100 #include <_ANIMUSKEY.hpp> START_ATF_NAMESPACE char _ANIMUSKEY::CovDBKey() { using org_ptr = char (WINAPIV*)(struct _ANIMUSKEY*); return (org_ptr(0x1401bf2e0L))(this); }; bool _ANIMUSKEY::IsFilled() ...
EBI-IntAct/editor
src/main/java/uk/ac/ebi/intact/editor/controller/curate/complex/ModelledParticipantImportController.java
<filename>src/main/java/uk/ac/ebi/intact/editor/controller/curate/complex/ModelledParticipantImportController.java /** * Copyright 2010 The European Bioinformatics Institute, and others. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Lic...
curationexperts/cur
app/controllers/checks_controller.rb
<reponame>curationexperts/cur # frozen_string_literal: true class ChecksController < ApplicationController before_action :authenticate_user! before_action :ensure_admin! with_themed_layout 'dashboard' def index @results = OkComputer::Registry.all.run end private def ensure_admin! authorize! :rea...
dotjay/talkback
talkback/src/main/java/focusmanagement/interpreter/WindowTransitionInfo.java
/* * Copyright (C) 2017 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 applicab...
alexunder/CellMatrix
kernel/tegra/drivers/hwmon/ina219.c
/* * ina219.c - driver for TI INA219 current / power monitor sensor * * Copyright (c) 2011-2013, NVIDIA Corporation. * * The INA219 is a sensor chip made by Texas Instruments. It measures * power, voltage and current on a power rail. * Complete datasheet can be obtained from website: * http://focus.ti.com/lit...
BuildingBridge/biznet
bitrix/modules/intranet/install/components/bitrix/intranet.user.search/templates/.default/script.js
<filename>bitrix/modules/intranet/install/components/bitrix/intranet.user.search/templates/.default/script.js function JCEmployeeSelectControl(arParams) { var _this = this; this.arParams = arParams; // {LANGUAGE_ID, ONSELECT, MULTIPLE, VALUE, SITE_ID, IS_EXTRANET, SESSID, NAME_TEMPLATE} this.arEmployeesData = {}; ...
PacktPublishing/Modernizing-Enterprise-CMS-using-Pimcore
4. Creating documentes in Pimcore/tmp/vendor/pimcore/pimcore/bundles/AdminBundle/Resources/public/js/pimcore/element/selector/abstract.js
/** * Pimcore * * This source file is available under two different licenses: * - GNU General Public License version 3 (GPLv3) * - Pimcore Enterprise License (PEL) * Full copyright and license information is available in * LICENSE.md which is distributed with this source code. * * @copyright Copyright (c) Pim...
joshsh/twitlogic
twitlogic-core/src/test/java/net/fortytwo/twitlogic/syntax/afterthought/impl/ReviewMatcherTest.java
package net.fortytwo.twitlogic.syntax.afterthought.impl; import net.fortytwo.twitlogic.model.Hashtag; import net.fortytwo.twitlogic.model.PlainLiteral; import net.fortytwo.twitlogic.model.Resource; import net.fortytwo.twitlogic.model.Triple; import net.fortytwo.twitlogic.model.URIReference; import net.fortytwo.twitlog...
bijancot/materikuliah
Semester 3/Praktikum Pemprograman Dasar 2/pertemuan yang tertunda/tugas/Modul6/src/modul6/Graph.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package modul6; import java.util.ArrayList; /** * * @author yohan */ public class Graph { ArrayList<GraphNode> n...
peterbeers/sekken
spec/integration/xignite_spec.rb
require 'spec_helper' describe 'Integration with Xignite' do # reference: http://www.xignite.com/product/global-security-master-data/api/GetSecurities/ subject(:client) { Sekken.new fixture('wsdl/xignite') } let(:service_name) { :XigniteGlobalMaster } let(:port_name) { :XigniteGlobalMasterSoap12 } it '...
lonnywong/homebrew-core
Formula/dsh.rb
<gh_stars>10-100 class Dsh < Formula desc "Dancer's shell, or distributed shell" homepage "https://www.netfort.gr.jp/~dancer/software/dsh.html.en" url "https://www.netfort.gr.jp/~dancer/software/downloads/dsh-0.25.10.tar.gz" sha256 "520031a5474c25c6b3f9a0840e06a4fea4750734043ab06342522f533fa5b4d0" license "GP...
scele/bb-clientd
pkg/cas/tree_directory_walker.go
package cas import ( "context" "fmt" remoteexecution "github.com/bazelbuild/remote-apis/build/bazel/remote/execution/v2" "github.com/buildbarn/bb-remote-execution/pkg/cas" "github.com/buildbarn/bb-storage/pkg/digest" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) type treeDirectoryWalker st...
luka9001/Ume0622
pages/util/cache.js
<reponame>luka9001/Ume0622<filename>pages/util/cache.js const data = { data: '',//广场页面到detail页面 data type: '',//广场页面到detail页面 type userInfo: '', rowHeight: 0, language: [], nlanguage: [] }; export default data;
felamaslen/calculator
src/store/configureStore.dev.js
/* eslint-disable no-underscore-dangle, global-require */ import { applyMiddleware, createStore, compose } from 'redux'; import createSagaMiddleware from 'redux-saga'; import { createLogger } from 'redux-logger'; import rootSaga from '../sagas'; import rootReducer from '../reducers'; import * as A from '../constants...
Geller99/Fluxara
Client/src/features/SearchQuery.js
import React, { useState } from "react"; import { newsHandlerSecondary } from "./NewsAPI"; import Secondmodal from "./Modal2"; import "../style/features/header.css"; const SearchQuery = () => { const [showModal, setModal] = useState(false); const [item, setItem] = useState(null); const result = []; const op...
mtahmed/antnest
slave.py
<gh_stars>1-10 # Standard imports import os import socket import time # Custom imports import messenger import message import node import taskunit class Slave(node.LocalNode): '''An instance of this class represents a slave node. A slave node can accept work units from a master and process and send the ...
FlameTinary/TYDemos
Demos/TYDrawDemo/TYDrawDemo/Views/TYLineLayer.h
// // TYLineLayer.h // TYDrawDemo // // Created by 田宇 on 2019/7/25. // Copyright © 2019 Sheldon. All rights reserved. // #import <QuartzCore/QuartzCore.h> #import "TYBezierPath.h" NS_ASSUME_NONNULL_BEGIN @interface TYLineLayer : CALayer @property(nonatomic, assign) UInt32 lineColor; @property(nonatomic, assign) ...
gaoht/house
java/classes/cn/jiguang/c/e/a/b.java
<gh_stars>1-10 package cn.jiguang.c.e.a; import cn.jiguang.api.JResponse; import cn.jiguang.api.utils.ByteBufferUtils; import cn.jiguang.api.utils.ProtocolUtil; import cn.jiguang.c.e.a.a.c; import java.nio.ByteBuffer; public final class b extends JResponse { private static final String[] z; long a; String b; ...
Andrettin/Metternich
script/condition/commodity_condition.h
#pragma once #include "economy/commodity.h" #include "script/condition/condition.h" #include "script/condition/condition_check_base.h" namespace metternich { class commodity; template <typename T> class commodity_condition final : public condition<T> { public: commodity_condition(const std::string &commodity_ident...
DimChris0/lima-charlie
sensor/executables/rpHCP_HostBasedSensor/collector_2_dns_tracker.c
/* Copyright 2015 refractionPOINT 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 ...
SpikeLavender/jdk-resource-code
sun/nio/fs/BasicFileAttributesHolder.java
<gh_stars>0 /* * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package sun.nio.fs; import java.nio.file.attribute.BasicFileAttributes; /** * Implemente...
cypreess/aiostripe
aiostripe/multipart_data_generator.py
<reponame>cypreess/aiostripe import io import random class MultipartDataGenerator(object): def __init__(self, chunk_size=1028): self.data = io.BytesIO() self.line_break = '\r\n' self.boundary = self._initialize_boundary() self.chunk_size = chunk_size def add_params(self, param...
UCLA-SEAL/ExampleCheck
code/chrome-extension/server/test/edu/ucla/cs/maple/server/PartialAnalysisTest.java
<filename>code/chrome-extension/server/test/edu/ucla/cs/maple/server/PartialAnalysisTest.java package edu.ucla.cs.maple.server; import static org.junit.Assert.*; import java.util.ArrayList; import java.util.HashMap; import org.junit.Test; import edu.ucla.cs.model.APICall; import edu.ucla.cs.model.APISeqItem; import...
paullewallencom/vaadin-978-1-8495-1880-2
_/Chapter 6/06_01_validation-messages/src/main/java/com/app/MyVaadinUI.java
<reponame>paullewallencom/vaadin-978-1-8495-1880-2 package com.app; import com.vaadin.server.VaadinRequest; import com.vaadin.ui.*; import com.vaadin.ui.Button.ClickEvent; /** * The Application's "main" class */ @SuppressWarnings("serial") public class MyVaadinUI extends UI { @Override protected void init(...
jetsaredim/gemp-swccg-public
gemp-swccg-cards/src/main/java/com/gempukku/swccgo/cards/set215/light/Card215_007.java
<gh_stars>10-100 package com.gempukku.swccgo.cards.set215.light; import com.gempukku.swccgo.cards.AbstractSite; import com.gempukku.swccgo.cards.GameConditions; import com.gempukku.swccgo.common.*; import com.gempukku.swccgo.filters.Filter; import com.gempukku.swccgo.filters.Filters; import com.gempukku.swccgo.game.Ph...
akazad13/competitive-programming
Online Judges/UVA/12554-A special Birthday song.cpp
#include<iostream> #include<bits/stdc++.h> using namespace std; //#define for(n) for(int i=1;i<=n;i++) int main() { string vec[20]; vec[1]=vec[5]=vec[9]=vec[13]="Happy"; vec[2]=vec[6]=vec[10]=vec[14]="birthday"; vec[3]=vec[7]=vec[11]=vec[15]="to"; vec[4]=vec[8]=vec[16]="you"; vec[12]="Rujia";...
wuxin66/moby
pkg/mount/deprecated.go
<filename>pkg/mount/deprecated.go package mount // import "github.com/docker/docker/pkg/mount" // Deprecated: this package is not maintained and will be removed. // Use github.com/moby/sys/mount and github.com/moby/sys/mountinfo instead. import ( "github.com/moby/sys/mountinfo" ) //nolint:golint type ( // FilterFu...
davidkpiano/azure-sdk-for-node
lib/services/serviceFabric/lib/models/backupProgressInfo.js
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ '...
Mumble-SRL/MBurger-iOS
MBurger/MBClient/MBElement/MBColorElement.h
<reponame>Mumble-SRL/MBurger-iOS<gh_stars>1-10 // // MBColorElement.h // MBurger // // Created by <NAME> on 06/05/2020. // Copyright © 2020 Mumble. All rights reserved. // #import "MBElement.h" #import <UIKit/UIKit.h> /** This class represents a MBurger color element. */ @interface MBColorElement : MBElement <NSC...
xenron/sandbox-dev-lintcode
C++/building-outline.cpp
// Time: O(nlogn) // Space: O(n) // BST solution. class Solution { public: enum {start, end, height}; struct Endpoint { int height; bool isStart; }; /** * @param buildings: A list of lists of integers * @return: Find the outline of those buildings */ vector<vector<...
ryscheng/turnupthebaas
libtalek/message.go
<filename>libtalek/message.go package libtalek import "encoding/binary" // message represents a emitted message by talek. It may be split into // multiple parts by the client for transmission, and reassembled before // being sent to the application. type message struct { contents []byte // TODO: there's a cute dat...
AxelGard/university-projects
tddd38-cpp/exams/ten-190111/asg3.cc
<filename>tddd38-cpp/exams/ten-190111/asg3.cc #include <vector> #include <string> #include <cassert> #include <algorithm> #include <numeric> #include <iostream> using namespace std; int entry_score(string entry) { // calculate the score of an entry vector<int> result{}; transform(begin(entry), end(...
consyst-project/consyst-code
consys-invariants/invariant-demos/src/main/java/de/tuda/stg/consys/demo/invariantdemos/schema/tournament/Tournaments.java
//package de.tuda.stg.consys.demo.invariantdemos.schema.tournament; // //import de.tuda.stg.consys.annotations.invariants.ReplicatedModel; //import de.tuda.stg.consys.annotations.methods.WeakOp; //import de.tuda.stg.consys.core.legacy.CanBeMerged; // //import java.io.Serializable; // // //// 1 EnrollTournament pre-cond...
Fumaloko92/MSc-Thesis
17-05-2017/neuralturingmachines-master/src/com/anji/tournament/KRandomOppsTournament.java
<filename>17-05-2017/neuralturingmachines-master/src/com/anji/tournament/KRandomOppsTournament.java<gh_stars>1-10 /* * Copyright (C) 2004 <NAME> and <NAME> This file is part of ANJI (Another NEAT Java * Implementation). ANJI is free software; you can redistribute it and/or modify it under the * terms of the GNU Gene...
ooici/pyon
prototype/speed/rpcspeed.py
<gh_stars>1-10 #!/usr/bin/env python from pyon.net.endpoint import RPCClient #from interface.services.idatastore_service import IDatastoreService from interface.services.examples.hello.ihello_service import HelloServiceClient, IHelloService from pyon.net.messaging import make_node import gevent import time import base...
goodspeed24e/2014iOT
test/openp2p/src/OpenP2P/Signal.cpp
<reponame>goodspeed24e/2014iOT #include <map> #include <boost/thread.hpp> #include <OpenP2P/Condition.hpp> #include <OpenP2P/Lock.hpp> #include <OpenP2P/Mutex.hpp> #include <OpenP2P/Signal.hpp> #include <OpenP2P/Timeout.hpp> namespace OpenP2P { Signal::Signal() : isActivated_(false) { } void Signal::activate() {...
shuwenjin/dcwlt
dcwlt-api/dcwlt-api-system/src/main/java/com/dcits/dcwlt/system/api/factory/RemotePayBatchFallbackFactory.java
<reponame>shuwenjin/dcwlt package com.dcits.dcwlt.system.api.factory; import com.alibaba.fastjson.JSONObject; import com.dcits.dcwlt.system.api.RemotePayBatchService; import feign.hystrix.FallbackFactory; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; import ...
insphereapplication/rhodes
spec/framework_spec/app/spec/core/method/name_spec.rb
require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../spec_helper' require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/fixtures/classes' describe "Method#name" do ruby_version_is '1.8.7' do it "returns the name of the method" do "abc".method(:upcase).name.should == :upca...
rooby/earthsci
plugins/au.gov.ga.earthsci.bookmark.ui/src/au/gov/ga/earthsci/bookmark/ui/IBookmarksController.java
<gh_stars>10-100 /******************************************************************************* * Copyright 2012 Geoscience Australia * * 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 ...
SoylentGraham/ofxSoylent
src/scope_ptr.h
#pragma once #include <functional> // generic smart pointer with a lambda for release template<typename TYPE> class scope_ptr : public NonCopyable { public: scope_ptr(std::function<void(TYPE&)> ReleaseFunc) : mObject ( nullptr ), mReleaseFunc ( ReleaseFunc ) { } ~scope_ptr() { Release(); } void Rele...
Awybupt/data-structure
algorithm/newgeek1.cpp
/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; https://www.nowcoder.com/practice/8a19cbe657394eeaac2f6ea9b0f6fcf6?tpId=13&tqId=11157&rp=1&ru=%2Fta%2Fcoding-interviews&qru=%2Fta%2Fcod...
archsolar/AncientArcher
AAEngine/src/Scene/Plane.h
#pragma once #include "../Base/UniqueInstance.h" #include "../../include/AncientArcher/ShaderType.h" #include "../Renderer/MeshDrawInfo.h" namespace AA { class Plane : public UniqueInstance { public: Plane(); void Draw(); SHADERTYPE shadertype; MeshDrawInfo *meshdrawinfo; private: }; } // end namespace AA
mmamiah/junit-utils
user-guide/src/test/java/lu/mms/common/quality/samples/assets/mockvalue/MockValueExample2Test.java
<filename>user-guide/src/test/java/lu/mms/common/quality/samples/assets/mockvalue/MockValueExample2Test.java<gh_stars>0 package lu.mms.common.quality.samples.assets.mockvalue; import lu.mms.common.quality.assets.mockvalue.MockValue; import lu.mms.common.quality.assets.mockvalue.MockValueExtension; import lu.mms.common...
jingcao80/Elastos
Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/content/CSyncContext.cpp
<filename>Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/content/CSyncContext.cpp //========================================================================= // Copyright (C) 2012 The Elastos Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this ...
Utqrsh04/The-Complete-FAANG-Preparation
1]. DSA/3]. 450 DSA by ( Love Babbar Bhaiya )/C++/04]. Searching & Sorting/_17)_Sort_by_Set_Bit_Count.cpp
// Link : https://practice.geeksforgeeks.org/problems/sort-by-set-bit-count1153/1 /* Given an array of integers, sort the array (in descending order) according to count of set bits in binary representation of array elements. Note: For integers having same number of set bits in their binary representation, sort accor...
ScriptonBasestar-Lib/sb-tools-java
threading/src/main/java/org/scriptonbasestar/tool/threading/RunnableManager.java
package org.scriptonbasestar.tool.threading; /** * @author archmagece * @with sb-tool-java * @since 2015-07-27-18 * <p> * Runnable 스레드 개수제한이라던가 */ public class RunnableManager { }
shockerjue/Gameserver
dataaccess/src/baghost/baghost.cpp
<reponame>shockerjue/Gameserver #include "baghost.h" namespace goods { }
dh-linghaibin/wireless_plc
code/wireless_oia/device/include/sm16703p.h
<reponame>dh-linghaibin/wireless_plc<gh_stars>1-10 /* * This file is part of the * * Copyright (c) 2016-2018 linghaibin * */ #ifndef _SM16703P_H_ #define _SM16703P_H_ #ifdef __cplusplus extern "C" { #endif #include "gd32f10x.h" void sm16703p_init(void); #ifdef __cplusplus } #endif #endif
JJLewis/Comp1511
lab07/horizontal_balance.c
<reponame>JJLewis/Comp1511<gh_stars>1-10 // <NAME> (<EMAIL>) // Apr 12 2017 // #include <stdio.h> #include "captcha.h" double get_horizontal_balance(int height, int width, int pixels[height][width]) { int column_sum = 0; int n_black_pixels = 0; int v = 0; while (v < height) { int h = 0; while (h < width) { ...
guillaume-plantevin/VeeSeeVSTRack
plugins/community/repos/mental/src/MentalSums.cpp
/////////////////////////////////////////////////// // // Mental Sums summing - VCV Module // // Strum 2017 // /////////////////////////////////////////////////// #include "mental.hpp" namespace rack_plugin_mental { struct MentalSums : Module { enum ParamIds { NUM_PARAMS }; enum InputIds { INPUT_...
ilincasuzana/robertalab
OpenRobertaParent/OpenRobertaRobot/src/main/java/de/fhg/iais/roberta/inter/mode/sensor/IBrickKey.java
<filename>OpenRobertaParent/OpenRobertaRobot/src/main/java/de/fhg/iais/roberta/inter/mode/sensor/IBrickKey.java<gh_stars>0 package de.fhg.iais.roberta.inter.mode.sensor; /** * The enumeration implementing this interface should contain all the keys available on the robot. * * @author kcvejoski */ public interface I...
josehu07/SplitFS
kernel/linux-5.4/drivers/gpu/drm/msm/msm_atomic.c
<reponame>josehu07/SplitFS // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2014 Red Hat * Author: <NAME> <<EMAIL>> */ #include <drm/drm_atomic_uapi.h> #include <drm/drm_gem_framebuffer_helper.h> #include <drm/drm_vblank.h> #include "msm_atomic_trace.h" #include "msm_drv.h" #include "msm_gem.h" #include...
agustinaindah/wonderdeal
app/src/main/java/id/wonderdeal/wonderdealapps/utils/ServiceInterface.java
<reponame>agustinaindah/wonderdeal<gh_stars>0 package id.wonderdeal.wonderdealapps.utils; import id.wonderdeal.wonderdealapps.model.BaseResponse; import retrofit2.Call; import retrofit2.Response; /** * Created by agustinaindah on 12/09/2017. */ public interface ServiceInterface { Call<BaseResponse> callBackRe...
ClundXIII/acp-java
src/main/java/co/clai/access/AccessibleModuleHelper.java
<filename>src/main/java/co/clai/access/AccessibleModuleHelper.java package co.clai.access; public class AccessibleModuleHelper extends AccessibleHelper { private final String moduleName; public AccessibleModuleHelper(String moduleName) { super(false); this.moduleName = moduleName; } @Override public boolea...
eziomou/library-backend
spring-rest-api/src/main/java/pl/zmudzin/library/spring/reservation/ReserveBookRequest.java
<filename>spring-rest-api/src/main/java/pl/zmudzin/library/spring/reservation/ReserveBookRequest.java package pl.zmudzin.library.spring.reservation; import javax.validation.constraints.NotNull; public final class ReserveBookRequest { @NotNull private String bookId; public ReserveBookRequest() { } ...
theclashingfritz/Cog-Invasion-Online-Dump
encodings/utf_16_be.py
<filename>encodings/utf_16_be.py # uncompyle6 version 3.2.4 # Python bytecode 2.7 (62211) # Decompiled from: Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)] # Embedded file name: encodings.utf_16_be import codecs encode = codecs.utf_16_be_encode def decode(input, errors='strict'):...
pister/wint
wint-framework/src/main/java/wint/lang/utils/merger/DestPools.java
package wint.lang.utils.merger; import wint.lang.magic.Transformer; import java.util.Collection; import java.util.Map; /** * User: huangsongli * Date: 15/3/4 * Time: 上午10:20 */ public class DestPools { public static <K, D> DestPool<K, D> toDestPool(Map<K, D> map) { return new MapDestPool<K, D>(map);...
fabriziogiudici/bluemarine2-src
modules/Persistence/src/test/java/it/tidalwave/bluemarine2/persistence/impl/DefaultPersistenceTest.java
<filename>modules/Persistence/src/test/java/it/tidalwave/bluemarine2/persistence/impl/DefaultPersistenceTest.java /* * ********************************************************************************************************************* * * blueMarine II: Semantic Media Centre * http://tidalwave.it/projects/bluemar...
GTLugo/Chivalric
chivalric/build/tmp/expandedArchives/forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-sources.jar_b77944a67449ffcc9dcc6ef1ff5cf49e/net/minecraft/client/gui/overlay/PlayerTabOverlayGui.java
package net.minecraft.client.gui.overlay; import com.google.common.collect.ComparisonChain; import com.google.common.collect.Ordering; import com.mojang.authlib.GameProfile; import com.mojang.blaze3d.matrix.MatrixStack; import com.mojang.blaze3d.systems.RenderSystem; import java.util.Comparator; import java.util.List;...