repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
skangg/opal
lib/opal/nodes/case.rb
<reponame>skangg/opal require 'opal/nodes/base' module Opal module Nodes class CaseNode < Base handle :case children :condition def compile handled_else = false compiler.in_case do if condition case_stmt[:cond] = true add_local '$case' ...
audaciouscode/Shion.app
RemoteBuddyManager.h
// // RemoteBuddyManager.h // Shion // // Created by <NAME> on 5/11/09. // Copyright 2009 Audacious Software. All rights reserved. // #import <Cocoa/Cocoa.h> #import "BehaviourBridgeReceptor.h" @interface RemoteBuddyManager : NSObject { BehaviourBridgeReceptor * behaviourBridgeReceptor; } @end
infiniteblock/CalemiUtils-1.12.2
src/main/java/calemiutils/tileentity/TileEntityBank.java
package calemiutils.tileentity; import calemiutils.config.CUConfig; import calemiutils.gui.GuiBank; import calemiutils.inventory.ContainerBank; import calemiutils.item.ItemCurrency; import calemiutils.security.ISecurity; import calemiutils.security.SecurityProfile; import calemiutils.tileentity.base.*; import calemiut...
jjchiw/hms-flutter-plugin
flutter-hms-dtm/android/src/main/java/com/huawei/hms/flutter/dtm/interfaces/CustomTag.java
/* Copyright 2020. Huawei Technologies Co., Ltd. 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 https://www.apache.org/licenses/LICENSE-2.0 Unless ...
hopshackle/wordAlignment
src/edu/cmu/lti/nlp/amr/Entity.scala
package edu.cmu.lti.nlp.amr import scala.collection.mutable.Map import scala.collection.mutable.Set import scala.collection.mutable.ArrayBuffer // Case class for BIO tagged entities case class Entity(start: Int, end: Int, label: String) object Entity { def entitiesFromConll(conllStr: String, column...
atlasapi/atlas
src/main/java/org/atlasapi/remotesite/channel4/pmlsd/epg/C4SynthesizedItemMerger.java
package org.atlasapi.remotesite.channel4.pmlsd.epg; import java.util.Set; import org.atlasapi.media.entity.Broadcast; import org.atlasapi.media.entity.Encoding; import org.atlasapi.media.entity.Episode; import org.atlasapi.media.entity.Location; import org.atlasapi.media.entity.Version; import com.google.common.base...
lotharschulz/cpp
exercises/practice/rna-transcription/rna_transcription.cpp
<filename>exercises/practice/rna-transcription/rna_transcription.cpp<gh_stars>1-10 #include "rna_transcription.h" namespace rna_transcription { } // namespace rna_transcription
npocmaka/Windows-Server-2003
windows/advcore/gdiplus/engine/fondrv/tt/ttfd/service.c
/******************************Module*Header*******************************\ * Module Name: service.c * * set of service routines for converting between ascii and unicode strings * * Created: 15-Nov-1990 11:38:31 * Author: <NAME> [BodinD] * * Copyright (c) 1990 Microsoft Corporation * \**********************...
BritClousing/EOSAI
EOSAI/EOSAIIncludes.h
#include "EOSAIInterface.h" #include "EOSAIBuildOption.h" #include "EOSAIBuildOrder.h" #include "EOSAIBuildingDescription.h" #include "EOSAILocation.h" //#include "EOSAIPlayerPoiObject2.h" //#include "EOSAIPlayerPoiMobile2.h" #include "EOSAIAirfield.h" #include "City.h" #include "EOSAIResource.h" #include "EOSAIUni...
MarioMatschgi/Minecraft-Plugins
_Eclipse/_SpigotDecompiled/work/decompile-cf6b1333/net/minecraft/server/BiomeForest.java
package net.minecraft.server; import java.util.Random; public class BiomeForest extends BiomeBase { protected static final WorldGenForest x = new WorldGenForest(false, true); protected static final WorldGenForest y = new WorldGenForest(false, false); protected static final WorldGenForestTree z = new Worl...
Shashi-rk/azure-sdk-for-java
sdk/mysqlflexibleserver/azure-resourcemanager-mysqlflexibleserver/src/main/java/com/azure/resourcemanager/mysqlflexibleserver/models/Configuration.java
<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.mysqlflexibleserver.models; import com.azure.core.management.SystemData; import com.azure.resourcemanager.mysqlf...
Marcura/marcura-ui
app/grid-page/grid-page.js
<filename>app/grid-page/grid-page.js angular.module('app.controllers').controller('gridPageController', gridPageController); function gridPageController($scope) { $scope.sortField1 = { name: 'eta', isAsc: false }; $scope.sortField2 = { name: 'eta', isAsc: false ...
RustamSultanov/camachine
js/src/main/scala/camachineapi/js/components/LambdaComponent.scala
<filename>js/src/main/scala/camachineapi/js/components/LambdaComponent.scala package camachineapi.js.components import camachineapi.js.http.Client import camachineapi.js.forms.Forms._ import camachineapi.models.LambdaCode import cats.effect.{ContextShift, IO} import monix.reactive.Observable import outwatch.Handler im...
Guild-Hall/MHFC
src/main/java/mhfc/net/common/entity/creature/Tigrex.java
package mhfc.net.common.entity.creature; import java.util.ArrayList; import java.util.List; import org.lwjgl.opengl.GL11; import com.github.worldsender.mcanm.client.model.util.RenderPassInformation; import mhfc.net.common.ai.IActionManager; import mhfc.net.common.ai.IExecutableAction; import mhfc.net.com...
Felon03/CppPrimer
Ch 10/10.28.cpp
<gh_stars>0 /*一个vector中保存1-9,将其拷贝到三个其他容器中。 分别使用inserter、back_inserter和front_inserter将元素添加到三个容器中。 */ #include<iostream> #include<vector> #include<list> #include<iterator> using namespace std; void print(const list<int> &l) { for (const auto &x : l) cout << x << " "; cout << endl; } int main() { vector<int> v{ 1...
amithbm/stravamerge
ui/src/routes/activities/selectors/getWeekChartData.spec.js
<gh_stars>0 import React from 'react' import getWeekChartData from '../selectors/getWeekChartData.js' describe('selectors', () => { describe('getWeekChartData', () => { it('returns rounded week data as array', () => { const state = { activities: { weeklySumma...
ZhiruiFeng/CarsMemory
src/producer/video_producer.py
<reponame>ZhiruiFeng/CarsMemory<gh_stars>1-10 #!/usr/bin/env python3 # video producers """ Simulate real-time video streaming: 1. The source could be a video file. 2. The source could also be a folder contains a sequence of keyframes. """ import re import json import sys import time from multiprocessing import Process...
actarian/giorgetti
src/js/common/storage/local-storage.service.js
<filename>src/js/common/storage/local-storage.service.js<gh_stars>0 export class LocalStorageService { static delete(name) { if (this.isLocalStorageSupported()) { window.localStorage.removeItem(name); } } static exist(name) { if (this.isLocalStorageSupported()) { return window.localStorage[name] !== un...
Varulv1997/juneau
juneau-core/juneau-core-utest/src/test/java/org/apache/juneau/http/MediaRanges_Test.java
<gh_stars>1-10 // *************************************************************************************************************************** // * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * // * distributed with this work for additional info...
impastasyndrome/Lambda-Resource-Static-Assets
2-resources/BLOG/ciriculumn/week-2/week2/scope_project/test/23-smoothie-machine-spec.js
<filename>2-resources/BLOG/ciriculumn/week-2/week2/scope_project/test/23-smoothie-machine-spec.js const assert = require("assert"); const chai = require("chai"); const expect = chai.expect; const smoothieMachine = require("../problems/23-smoothie-machine.js"); describe("smoothieMachine()", function () { it("should r...
naga-project/webfx
webfx-kit/webfx-kit-javafxgraphics-emul/src/main/java/javafx/scene/shape/ClosePath.java
<gh_stars>100-1000 /* * Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * pub...
rightinyourwheelhouse/wheelhouse-website
src/cms/config/pages/blogPage.js
/* eslint-disable sort-keys */ import seo from '../seo'; export default { file: 'src/data/pages/blogPage.json', label: 'Blog', name: 'blogPage', identifier_field: 'page', fields: [ { label: 'Page', name: 'page', widget: 'hidden', default: 'blog', }, { label: 'Title',...
tdiprima/code
recipes/Python/426543_oneliner_Multichop_data/recipe-426543.py
<reponame>tdiprima/code >>> a,bite = "supercalifragalisticexpialidocious",3 >>> [(a[d:d+bite]) for d in range(len(a)-bite) if d%bite==0] [('s', 'u', 'p'), ('e', 'r', 'c'), ('a', 'l', 'i'), ('f', 'r', 'a'), ('g', 'a', 'l'), ('i', 's', 't'), ('i', 'c', 'e'), ('x', 'p', 'i'), ('a', 'l', 'i'), ('d', 'o', 'c'), ('i', 'o', ...
bnanes/imagej
plugins/scripting/jruby/src/main/java/imagej/plugins/scripting/jruby/JRubyScriptEngine.java
/* * #%L * ImageJ software for multidimensional image processing and analysis. * %% * Copyright (C) 2009 - 2014 Board of Regents of the University of * Wisconsin-Madison, Broad Institute of MIT and Harvard, and Max Planck * Institute of Molecular Cell Biology and Genetics. * %% * Redistribution and use in sourc...
antiagainst/llvm-zorg
zorg/buildbot/commands/MakeCommand.py
<gh_stars>1-10 import re from buildbot.process.properties import WithProperties from buildbot.steps.shell import WarningCountingShellCommand class MakeCommand(WarningCountingShellCommand): @staticmethod def sanitize_kwargs(kwargs): # kwargs we could get and must not pass through # to the buil...
AtrixTV/backoffice-administration
public/admin/js/vodSubtitles/config.js
import edit_button from '../edit_button.html'; export default function (nga, admin) { var vodsubtitles = admin.getEntity('vodsubtitles'); vodsubtitles.listView() .title('<h4>Vod Subtitles <i class="fa fa-angle-right" aria-hidden="true"></i> List</h4>') .batchActions([]) .fields([ nga.field('vod_id', 'refere...
graemeaj/VRMiniGun
Plugins/VRExpansionPlugin/VRExpansionPlugin/Intermediate/Build/Win64/UE4/Inc/VRExpansionPlugin/GS_Physics.generated.h
<gh_stars>0 // Copyright Epic Games, Inc. All Rights Reserved. /*=========================================================================== Generated code exported from UnrealHeaderTool. DO NOT modify this manually! Edit the corresponding .h files instead! ============================================================...
steveohara/enocean4j
src/main/java/uk/co/_4ng/enocean/eep/EEPAttributeChangeListener.java
<filename>src/main/java/uk/co/_4ng/enocean/eep/EEPAttributeChangeListener.java /* * Copyright 2017 enocean4j development teams * * 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:...
scorpio975/d-repr
pydrepr/drepr/models/parse_v1/path_parser.py
<reponame>scorpio975/d-repr import re from abc import ABC, abstractmethod from typing import List, Union from drepr.utils.validator import InputError from ..path import Path, IndexExpr, RangeExpr, WildcardExpr, Expr from ..resource import Resource class PathParser(ABC): @abstractmethod def parse(self, resour...
mwoehlke-kitware/kwiver
vital/algo/compute_depth.cxx
// This file is part of KWIVER, and is distributed under the // OSI-approved BSD 3-Clause License. See top-level LICENSE file or // https://github.com/Kitware/kwiver/blob/master/LICENSE for details. #include <vital/algo/compute_depth.h> #include <vital/algo/algorithm.txx> namespace kwiver { namespace vital { namespac...
Vagrancy/something.apk
Something/src/main/java/net/fastfourier/something/data/SomeDatabase.java
<reponame>Vagrancy/something.apk package net.fastfourier.something.data; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import com.salvadordalvik.fastlibrary.data.FastDatabase; /** * Created by matthewshepard on 1/21/14. */ public class SomeDatabase extends FastDatabase { public...
EBRD-ProzorroSale/openprocurement.auctions.core
openprocurement/auctions/core/tests/base.py
<reponame>EBRD-ProzorroSale/openprocurement.auctions.core # -*- coding: utf-8 -*- import webtest from types import FunctionType from uuid import uuid4 from copy import deepcopy from datetime import datetime, timedelta from openprocurement.api.constants import VERSION from openprocurement.api.tests.base import ( JS...
kanzure/eth-testrpc
tests/endpoints/test_eth_sendTransaction.py
from testrpc.client.utils import force_text def test_eth_sendTransaction(rpc_client, accounts, hex_accounts): result = rpc_client( method="eth_sendTransaction", params=[{ "from": accounts[0], "to": accounts[1], "value": 1234, "data": "0x1234", ...
KaterinaLupacheva/habit-tracker-pwa
src/main/java/io/ramonak/habitTracker/UI/views/LoginView.java
<reponame>KaterinaLupacheva/habit-tracker-pwa package io.ramonak.habitTracker.UI.views; import com.vaadin.flow.component.Component; import com.vaadin.flow.component.Tag; import com.vaadin.flow.component.UI; import com.vaadin.flow.component.button.Button; import com.vaadin.flow.component.login.LoginForm; import com.vaa...
grain-2/gui
chap11/src/book/demo/TableViewerCompositeDemo.java
package book.demo; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.layout.FillLayout; import org.eclipse.swt.SWT; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Tree; import org.eclipse.jface.viewers.TreeViewer; import org.eclipse.jface.lay...
mgusevstudio/EldritchHorrorAssistant
app/src/main/java/ru/mgusev/eldritchhorror/adapter/FaqAdapter.java
<filename>app/src/main/java/ru/mgusev/eldritchhorror/adapter/FaqAdapter.java package ru.mgusev.eldritchhorror.adapter; import android.content.Context; import android.graphics.drawable.Drawable; import android.support.annotation.NonNull; import android.support.v7.util.DiffUtil; import android.support.v7.widget.CardView...
intendia-oss/reactivity
core/src/main/java/com/intendia/reactivity/client/PlaceNavigator.java
<gh_stars>10-100 package com.intendia.reactivity.client; import static com.intendia.reactivity.client.PlaceManager.HistoryUpdate.ADD; import static com.intendia.reactivity.client.PlaceManager.HistoryUpdate.NOOP; import static com.intendia.reactivity.client.PlaceManager.HistoryUpdate.REPLACE; import com.intendia.react...
KaoTuz/edk2-stable202108
MdePkg/Include/Guid/FirmwareFileSystem3.h
/** @file Guid used to define the Firmware File System 3. Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent @par Revision Reference: GUIDs introduced in PI Version 1.0. **/ #ifndef __FIRMWARE_FILE_SYSTEM3_GUID_H__ #define __FIRMWARE_FILE_SY...
dmitryikh/tarantool
src/box/vy_regulator.c
/* * Copyright 2010-2018, Tarantool AUTHORS, please see AUTHORS file. * * 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 lis...
igrigorik/agent
spec/queues_spec.rb
require "spec_helper" describe Agent::Queues do after do Agent::Queues.clear end it "should register queues" do Agent::Queues.register("foo", String, 10) expect(Agent::Queues["foo"]).to be_a(Agent::Queue) expect(Agent::Queues["foo"].type).to eq(String) expect(Agent::Queues["foo"].max).to eq(...
syama0731/batch3
terasoluna-collector/src/test/java/jp/terasoluna/fw/collector/db/DaoCollectorConfigTest.java
<reponame>syama0731/batch3<filename>terasoluna-collector/src/test/java/jp/terasoluna/fw/collector/db/DaoCollectorConfigTest.java /** * */ package jp.terasoluna.fw.collector.db; import static org.junit.Assert.*; import jp.terasoluna.fw.collector.exception.CollectorExceptionHandler; import jp.terasoluna.fw.col...
hmatt1/angelscript-intellij
src/main/java/org/intellij/sdk/language/AngelScriptCompletionContributor.java
package org.intellij.sdk.language; import com.intellij.codeInsight.completion.*; import com.intellij.codeInsight.lookup.LookupElementBuilder; import com.intellij.patterns.PlatformPatterns; import com.intellij.psi.PsiFile; import com.intellij.util.ProcessingContext; import org.intellij.sdk.language.psi.AngelScriptEleme...
johndpope/echo
thirdparty/physx/PhysXSDK/Source/GeomUtils/src/contact/GuContactConvexMeshCommon.h
<filename>thirdparty/physx/PhysXSDK/Source/GeomUtils/src/contact/GuContactConvexMeshCommon.h /* * Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved. * * NVIDIA CORPORATION and its licensors retain all intellectual property * and proprietary rights in and to this software, related documentation * an...
tongbin102/csr
csr-api/src/main/java/com/project/csr/model/po/ChannelPo.java
<gh_stars>0 package com.project.csr.model.po; import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.project.csr.common.model.BasePo; import io.swagger.annotations.ApiModel; import io.swagger.annotations.Ap...
juangea/B28_boneMaster
source/blender/editors/curve/curve_ops.c
/* * 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 version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be use...
Yonas-A/CS-003A
Projects/06 Rational/output/output.h
#ifndef TEST_RATIONAL_H #define TEST_RATIONAL_H /* ***** ALL RESULTS ARE VERIFIED ****** //--------------------------------------------------------------------- // normal run: default values are 0/1 for both rational objects //--------------------------------------------------------------------- ====...
shuipi100/kaldi
egs/wsj/s5/steps/nnet3/report/convert_model.py
#!/usr/bin/env python3 # This script dumps the parameters of (most components of) an nnet3 model as a # pickled python dict. (see documentation for the function 'read_model' below # for more details). # # It also contains some utility function that you can get access by importing this # file. # # In egs/mini_librispe...
marmitoTH/casa
app/models/health.rb
<reponame>marmitoTH/casa<filename>app/models/health.rb class Health < ApplicationRecord # The "singleton_guard" column is a unique column which must always be set to '0' # This ensures that only one Health row is created validates_inclusion_of :singleton_guard, in: [0] def self.instance first_or_create!(si...
jingcao80/Elastos
Sources/Elastos/LibCore/src/elastos/security/spec/CRSAOtherPrimeInfo.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 // // ...
raeleus/libGDX-Jam-December-2021
core/src/main/java/com/ray3k/template/entities/SpinnerEntity.java
package com.ray3k.template.entities; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.math.Vector2; import com.dongbat.jbump.CollisionFilter; import com.dongbat.jbump.Collisions; import com.dongbat.jbump.Item; import com.dongbat.jbump.Response; import com.dongbat.jbump.Response.Result; import com.esoter...
devkat/dotty
tests/disabled/java-interop/failing/varargs-bridge/B.scala
package test class B extends A { override def foo(x: Int*): Int = x.length + 1 } object B extends App { println(new B().foo(1, 2, 3)) }
Yash-Wasalwar-07/Boss2D
Boss2D/addon/_old/openssl-1.1.0c_for_boss/test/rmdtest.c
/* * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/lice...
ChartsBot/telegram-bots
src/bots/chart_general/bot_charts.py
import locale import os import sys from gevent import monkey monkey.patch_all() # REALLY IMPORTANT: ALLOWS ZERORPC AND TG TO WORK TOGETHER BASE_PATH = os.environ.get('BASE_PATH') sys.path.insert(1, BASE_PATH + '/telegram-bots/src') from libraries.models.exchanges import SupportedExchanges, ExchangeInfo from return...
Sansiff/Coding-Practice
AtCoder/ABC 235/D.cpp
#include <bits/stdc++.h> #define int long long #define lowbit(x) (x&-x) #define rep(i, l, r) for(int i = l; i < r; i ++) #define all(x) (x).begin(),(x).end() #define fi first #define se second using namespace std; typedef long long LL; typedef pair<int,int> PII; typedef vector<int> VI; typedef vector<vector<int>> VII; ...
Jimmyee/Endless-Online-Awaken
server_engine/src/config.cpp
<gh_stars>10-100 // Endless Online Awaken #include "config.hpp" #include <fstream> #include <iostream> #include <string.h> #include <stdexcept> Config::Config() { } Config::Config(std::string filename) { this->Load(filename); } void Config::Load(std::string filename) { std::ifstream file(filename); if...
venkateshprasad123/wb
Java_GUI/src/com/ibm/safr/we/data/transfer/ViewTransfer.java
package com.ibm.safr.we.data.transfer; /* * Copyright Contributors to the GenevaERS Project. SPDX-License-Identifier: Apache-2.0 (c) Copyright IBM Corporation 2008. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obt...
zhangkn/iOS14Header
System/Library/PrivateFrameworks/OfficeImport.framework/WDAnnotationData.h
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:54:57 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/OfficeImport.framework/OfficeImport * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 ...
HerrB92/obp
OpenBeaconPackage/libraries/hibernate-release-4.2.7.SP1/project/hibernate-core/src/test/java/org/hibernate/test/legacy/MapTest.java
/* * Hibernate, Relational Persistence for Idiomatic Java * * Copyright (c) 2006-2011, Red Hat Inc. or third-party contributors as * indicated by the @author tags or express copyright attribution * statements applied by the authors. All third-party contributions are * distributed under license by Red Hat Inc. *...
fabriziobertoglio1987/surf-rails
db/migrate/20190807093952_change_column_forecast_default_for_locations.rb
class ChangeColumnForecastDefaultForLocations < ActiveRecord::Migration[5.1] def up change_column :locations, :forecast, :jsonb, :default => nil end def down change_column :locations, :forecast, :jsonb, :default => [] end end
sudarsun/c48
evaluation/IncrementalEstimator.h
<reponame>sudarsun/c48 #ifndef _INCREMENTALESTIMATOR_ #define _INCREMENTALESTIMATOR_ /** * Interface for an incremental probability estimators. * */ class IncrementalEstimator { public: /** * Add a new data value to the current estimator. * * @param data the new data value * @param weight t...
kayinli/bk-bcs
bcs-ui/backend/container_service/observability/metric/views/pod.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 TH<NAME>, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in complianc...
khartig/assimilator
rio-lib/src/main/java/org/rioproject/system/measurable/memory/SystemMemoryMonitor.java
<reponame>khartig/assimilator /* * Copyright 2008 to 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...
zhaoxiangchun/jdcloud-sdk-go
services/vod/models/TranscodeTaskObject.go
<filename>services/vod/models/TranscodeTaskObject.go // Copyright 2018 JDCLOUD.COM // // 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 // ...
debanik1997/corona-aid
controllers/user.controller.js
<gh_stars>1-10 const Users = require('../models/user.model'); const Association = require('../models/association.model'); const passport = require('passport'); const emailer = require("../util/emailer"); const spreadsheets = require('../util/spreadsheet_tools'); const distance_tools = require('../util/distance_tools')...
dyna-mis/Hilabeling
src/app/3d/qgspoint3dsymbolwidget.h
/*************************************************************************** qgspoint3dsymbolwidget.h -------------------------------------- Date : July 2017 Copyright : (C) 2017 by <NAME> Email : wonder dot sk at <EMAIL> dot <EMAIL> *********************************...
Manny27nyc/azure-sdk-for-java
sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265Layer.java
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.mediaservices.models; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; import com.azure.co...
tzpBingo/algorithms-learning
algorithms-lecture/src/main/java/com/learning/algorithms/lectures/sort/QuickSort.java
<reponame>tzpBingo/algorithms-learning package com.learning.algorithms.lectures.sort; import java.util.Random; /** * Created by admin on 16/11/3. * * 快速排序 */ public class QuickSort { private static Random random = new Random(); public int[] quickSort(int[] A, int n) { if (n == 0 || A == null) { ...
AlTavares/babos.ios-server
sockets/sockets.js
module.exports = function(io) { io.on('connection', function(socket) { socket.on('disconnect', function() { }); }); }
shoukailiang/community
community-util/src/main/java/com/shoukailiang/community/util/exception/CommunityException.java
<filename>community-util/src/main/java/com/shoukailiang/community/util/exception/CommunityException.java<gh_stars>1-10 package com.shoukailiang.community.util.exception; import com.shoukailiang.community.util.enums.ResultEnum; import lombok.Getter; @Getter public class CommunityException extends RuntimeException { ...
dsiuta/Comps
src/Outputs/Netcdf.h
#ifndef OUTPUT_NETCDF_H #define OUTPUT_NETCDF_H #include "Output.h" #include <netcdf.hh> class OutputNetcdf : public Output { public: OutputNetcdf(const Options& iOptions, const Data& iData); private: void writeCore() const; std::string getFilename(int iDate, int iInit, std::string iVariable, s...
waliens/weakseg
training/pannuke.py
<filename>training/pannuke.py def main(argv): pass if __name__ == "__main__": import sys main(sys.argv[1:])
lambdaxymox/barrelfish
usr/eclipseclp/Alog/src/adjlogs.c
/* * adjustlogs.c: Program to take multiple alog logfiles, extract events * for synchronizing the clocks, and generating adjusted times. * The files are replaced, allowing the use of other alog tools. * * -e n defines synchronization events * -a1 n -a2 m -b1 k define pair-exchange e...
glimmerhq/glimmerhq
db/migrate/20200830201204_add_index_to_package_creator.rb
<gh_stars>1-10 # frozen_string_literal: true class AddIndexToPackageCreator < ActiveRecord::Migration[6.0] include Gitlab::Database::MigrationHelpers DOWNTIME = false disable_ddl_transaction! INDEX_NAME = 'index_packages_packages_on_creator_id' def up add_concurrent_index :packages_packages, :creator...
banggibima/react_bitcloud
src/screens/LearnCryptoDetails/Catalog/index.js
import React from 'react'; import cn from 'classnames'; import styles from './Catalog.module.sass'; import Icon from '../../../components/Icon'; import Card from '../../../components/Card'; // data import { articles } from "../../../mocks/articles"; const Catalog = () => { return ( <div className={cn("section",...
lechium/iOS1351Headers
usr/libexec/storebookkeeperd/SBDDomainSyncServiceHandler.h
// // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 <NAME>. // #import "SBDDomainServiceHandler.h" #import "SBCDomainSyncServiceProtocol-Protocol.h" #import "SBCDomainSyncServiceProtocol_Internal-Protocol.h" #import...
egmnklc/Egemen-Files
CS204/Hw 4/DynStackHW4.cpp
<reponame>egmnklc/Egemen-Files<filename>CS204/Hw 4/DynStackHW4.cpp //Do not forget to rename this file according to the file naming rules #include <iostream> #include "DynStackHW4.h" using namespace std; //************************************************ // Constructor to generate an empty stack. * //***********...
real-slim-chadi/Python_Master-the-Art-of-Design-Patterns
Module 1/Chapter3/3_24_house_rental.py
class HouseRental(Rental, House): def prompt_init(): init = House.prompt_init() init.update(Rental.prompt_init()) return init prompt_init = staticmethod(prompt_init)
fflorens/portofolio42
42sh/libft/src/ft_memcmp.c
<reponame>fflorens/portofolio42 /* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_memcmp.c ...
caoshenghui/DataStructures
Chapter1-Overview/src/exercise1_zhangming/1-3-2.cpp
// File: 1-3-2.cpp // Author: csh // Date: 2020/05/01 // =================== #include <iostream> int* solution(double *A, int N, int *ret) { // ret用来记录最大值所在的位置 int position = 0; // 初始化设定数组的第一个元素 int j = 1; // 控制最大值数组的存放 for(int i = 1; i < N; i++) { ...
noscripter/h
h/presenters.py
<gh_stars>0 """A class that wraps h.api.models.Annotation and adds some HTML properties.""" from __future__ import unicode_literals import urlparse import urllib2 from dateutil import parser import jinja2 from h._compat import text_type def _format_document_link(href, title, link_text, hostname): """Return a do...
washingtonxr/AndroidSensor4testing
CySmart_Android_1.2.0.156_Source_Code_0/src/com/cypress/cysmart/RDKEmulatorView/KeyBoardAttributes.java
<reponame>washingtonxr/AndroidSensor4testing /* * Copyright Cypress Semiconductor Corporation, 2014-2018 All rights reserved. * * This software, associated documentation and materials ("Software") is * owned by Cypress Semiconductor Corporation ("Cypress") and is * protected by and subject to worldwide patent prot...
Foltik/Shrimpa
app/util/canonicalize.js
// Normalizes, decomposes, and lowercases a utf-8 string exports.canonicalize = displayname => displayname.normalize('NFKD').toLowerCase(); exports.canonicalizeRequest = (req, res, next) => { if (req.body.displayname) req.body.username = exports.canonicalize(req.body.displayname); else ...
parzulpan/demo
SpringBoot/1.x/src/data-jpa/src/main/java/cn/parzulpan/controller/UserController.java
package cn.parzulpan.controller; import cn.parzulpan.entity.User; import cn.parzulpan.repository.UserRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.sprin...
murkhog/emistoolbox
libs/joriki/src/info/joriki/awt/image/jp2/Precinct.java
/* * Copyright 2003 <NAME>. All rights reserved. * Use is subject to license terms. */ package info.joriki.awt.image.jp2; import java.io.DataInput; import java.io.IOException; import java.awt.Rectangle; import info.joriki.io.BitSource; class Precinct extends Rectangle { Band [] bands; Precinct (Rectangle p...
siy/reactive-toolbox
async-io/src/main/java/org/reactivetoolbox/io/async/net/Inet6Address.java
/* * Copyright (c) 2020 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
PacktPublishing/The-Complete-Python-Course-including-Django-Web-Framework
Python 101/comparison_operators.py
<filename>Python 101/comparison_operators.py<gh_stars>1-10 # can_code = True # if can_code == True: # # do a thing # print("You can code!") # else: # # do something else # print("You dont know how to code yet") # teacher = "<NAME>" # if teacher.lower() == "<NAME>": # print("Show the teacher porta...
dbsystel/kewl
testing/corev1_test/example_pods.go
<filename>testing/corev1_test/example_pods.go<gh_stars>1-10 package corev1_test import ( "github.com/dbsystel/kewl/testing" "github.com/dbsystel/kewl/testing/json_test" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" ) // Namespace for the pods const Na...
ricofehr/enginepp
src/nextfloor/core/game_file_io.cc
<reponame>ricofehr/enginepp /** * @file game_file_io.cc * @brief File I/O Operations * @author <NAME> (<EMAIL>, github: ricofehr) */ #include "nextfloor/core/game_file_io.h" #include <cassert> #include <fstream> #include <sstream> #include "nextfloor/core/common_services.h" namespace nextfloor { namespace c...
henriquegemignani/urde
Runtime/MP1/CPauseScreenBlur.cpp
#include "Runtime/MP1/CPauseScreenBlur.hpp" #include "Runtime/CSimplePool.hpp" #include "Runtime/GameGlobalObjects.hpp" #include "Runtime/Audio/CSfxManager.hpp" namespace urde::MP1 { CPauseScreenBlur::CPauseScreenBlur() : x4_mapLightQuarter(g_SimplePool->GetObj("TXTR_MapLightQuarter")) {} void CPauseScreenBlur::OnN...
HongminWu/bnpy
tests/zzz_deprecated_unmaintained/obsmodel/TestZeroMeanGaussLocalStepSpeed.py
<filename>tests/zzz_deprecated_unmaintained/obsmodel/TestZeroMeanGaussLocalStepSpeed.py import numpy as np import scipy.linalg import argparse import time from contextlib import contextmanager def measureTime(f, nTrial=3): def f_timer(*args, **kwargs): times = list() for rep in range(nTrial): ...
dotenx/dotenx
ao-api/models/runner_job.go
package models import ( "fmt" "github.com/dotenx/dotenx/ao-api/config" ) type Job struct { ExecutionId int `json:"executionId"` TaskId int `json:"taskId"` Timeout int `json:"timeout"` Name string `json:"name"` ...
byteskeptical/salt
salt/modules/salt_proxy.py
# -*- coding: utf-8 -*- ''' Salt proxy module .. versionadded:: 2015.8.3 Module to deploy and manage salt-proxy processes on a minion. ''' # Import Python libs from __future__ import absolute_import, unicode_literals, print_function import os import logging # Import Salt libs import salt.utils.files ...
zhouxl/J2ObjC-Framework
Scripts/Template/Headers/org/mockito/internal/util/ObjectMethodsGuru.h
// // Generated by the J2ObjC translator. DO NOT EDIT! // source: /Users/antoniocortes/j2objcprj/relases/j2objc/testing/mockito/build_result/java/org/mockito/internal/util/ObjectMethodsGuru.java // #include "../../../../J2ObjC_header.h" #pragma push_macro("INCLUDE_ALL_OrgMockitoInternalUtilObjectMethodsGuru") #ifd...
ceekay1991/AliPayForDebug
AliPayForDebug/AliPayForDebug/AlipayWallet_Headers/LIVETRADEPRODGetDynamicIdReq.h
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import "LIVETRADEPRODToString.h" @class LIVETRADEPRODPayChannelModel, NSString; @interface LIVETRADEPRODGetDynamicIdReq : LIVETRADEPRODToS...
ScottLiao920/noisepage
src/self_driving/planning/action/create_index_action.cpp
#include "self_driving/planning/action/create_index_action.h" #include "self_driving/planning/mcts/action_state.h" namespace noisepage::selfdriving::pilot { void CreateIndexAction::ModifyActionState(ActionState *action_state) { action_state->AddIndex(index_name_, id_); } } // namespace noisepage::selfdriving::pilo...
acatalfano/chord-dht
src/app/node_data/node_data.py
<reponame>acatalfano/chord-dht<filename>src/app/node_data/node_data.py from abc import ABC, abstractmethod, abstractproperty from typing import Union class NodeData(ABC): def __init__( self, id_value: int, predecessor: Union['NodeData', None] = None, successor: Union['NodeData', No...
pulumi/pulumi-aws-native
sdk/go/aws/robomaker/getRobot.go
<reponame>pulumi/pulumi-aws-native // Code generated by the Pulumi SDK Generator DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package robomaker import ( "context" "reflect" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // AWS::RoboMaker::Robot resource c...
irov/hummingbird
src/hb_events/hb_events.h
#ifndef HB_EVENTS_H_ #define HB_EVENTS_H_ #include "hb_config/hb_config.h" #include "hb_cache/hb_cache.h" #include "hb_db/hb_db.h" typedef struct hb_events_handle_t hb_events_handle_t; hb_result_t hb_events_create( hb_events_handle_t ** _handle ); void hb_events_destroy( hb_events_handle_t * _handle ); hb_result_t ...
hainguyen81/nlh4j
modules/core/src/main/java/org/nlh4j/core/text/numberinwords/ScaleUnit.java
/* * @(#)ScaleUnit.java 1.0 Aug 28, 2015 * Copyright 2015 by GNU Lesser General Public License (LGPL). All rights reserved. */ package org.nlh4j.core.text.numberinwords; import java.io.Serializable; import org.apache.commons.lang3.ArrayUtils; import org.springframework.util.Assert; /** * Number scale...
profoundsoul/vue_webpack
vue-single/src/router.js
<filename>vue-single/src/router.js export default (router)=>{ router.map({ '/':{ name:'index', component:(resolve)=>{ require(['./views/index.vue'], resolve) } } }); }