repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
augustinebest/app
dashboard/src/components/ContextModal.js
<reponame>augustinebest/app<filename>dashboard/src/components/ContextModal.js import React from 'react'; export default function(Cm) { return props => (( <div className="bs-BIM"> <div className="ContextualLayer-layer--topleft ContextualLayer-layer--anytop ContextualLayer-layer--...
JanWarlen/LeetCode
Recursion/src/main/java/com/janwarlen/recursion/second/SearchA2DMatrixII.java
package com.janwarlen.recursion.second; import java.util.Arrays; /** * Write an efficient algorithm that searches for a target value in an m x n integer matrix. The matrix has the following properties: * <p> * Integers in each row are sorted in ascending from left to right. * Integers in each column are sorted in...
donn/attend
Android/app/src/main/java/hasebou/prototyping/miniattend/DataHolders.java
package hasebou.prototyping.miniattend; import android.content.Context; import android.content.SharedPreferences; import java.io.Serializable; /** * * contains all classes that will be used for server communication */ public class DataHolders{ public static class VerificationInfo implements Serializable{ ...
vcooline/wechat_open_platform_proxy
app/controllers/concerns/wechat_open_platform_proxy/auth_guard.rb
<reponame>vcooline/wechat_open_platform_proxy<filename>app/controllers/concerns/wechat_open_platform_proxy/auth_guard.rb module WechatOpenPlatformProxy module AuthGuard extend ActiveSupport::Concern InvalidAuthTypeError = Class.new(StandardError) InvalidAuthValueError = Class.new(StandardError) NotAll...
zwliew/ctci
solutions/kattis/swaptosort.cc
#include <algorithm> #include <array> #include <bitset> #include <chrono> #include <climits> #include <cmath> #include <cstring> #include <deque> #include <ext/pb_ds/assoc_container.hpp> #include <fstream> #include <iomanip> #include <iostream> #include <iterator> #include <map> #include <numeric> #include <queue> #inc...
mpsijm/strategoxt
strategoxt/stratego-libraries/java-backend/java/runtime/org/strategoxt/lang/WeakValueHashMap.java
/*************************************** * * * JBoss: The OpenSource J2EE WebOS * * * * Distributable under LGPL license. * * See terms of license at gnu.org. * * * *************************...
arusinha/incubator-netbeans
php/php.project/src/org/netbeans/modules/php/project/ui/actions/Command.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 ...
Batman001/ExcelImport
src/main/java/com/thinkgem/jeesite/modules/excelimport/web/ImportExcelJspController.java
package com.thinkgem.jeesite.modules.excelimport.web; import com.thinkgem.jeesite.common.utils.StringUtils; import com.thinkgem.jeesite.common.web.BaseController; import com.thinkgem.jeesite.modules.excelimport.process.EntityImport; import com.thinkgem.jeesite.modules.excelimport.util.ExcelImportService; import com.th...
StephenRogers1/cogent3
doc/draw_examples/tree/plot_tree-square.py
<reponame>StephenRogers1/cogent3 """ Display a Phylogenetic Tree with a Square Dendrogram Style ========================================================== We use a tree saved in `json` format from a likelihood function analysis of a non-stationary model. The tree was derived such that the the branch lengths are now "E...
metal/crystal-bootstrap
packages/marble-datatable/test/data/data_simple.js
import Soy from 'metal-soy'; var data_simple = [{ 'price': 13.42, 'title': 'Deadpool Classic Vol. 12: Deadpool Corps', 'description': 'Deadpool gears up for an intergalactic adventure, but to succeed, he\'ll need to assemble a crack team of special operatives! So naturally he recruits four other versions of hims...
jdarling/radxa-rock
lib/pin.js
<reponame>jdarling/radxa-rock var util = require('util'); var CONST = require('./gpio_defines'); var GPIO_PATH = CONST.GPIO_PATH; var NOOP = function(){}; var utils = require('./utils'); var _export = utils.export; var _unexport = utils.unexport; var _read = utils.read; var _write = utils.write; var isNumeric = utils.i...
carlosviveros/Soluciones
soluciones/mvc_ejemplo/main.py
"""AyudaEnPython: https://www.facebook.com/groups/ayudapython """ from prototools import Menu from prototools.colorize import cyan, yellow, magenta from controllers import Controlador from models import Modelo from views import VistaFancy def main(): menu = Menu( cyan("Generador de números aleatorios"),...
KPMGE/Projetos-C
others/tic-tac-toe.c
//Simple program, or actually a shit program, for tic-tac-toe game #include <stdio.h> #include <stdlib.h> #include <string.h> #define TRUE 1 #define FALSE 0 struct point { int x; int y; }; typedef struct point Point; void print_matrix(char matrix[][5], Point *p, char c); void read_move(Point *p, char *c, int Pl...
lleo/go-functional-collections
fmap/bitmap.go
<gh_stars>1-10 package fmap import ( "fmt" "strings" "github.com/lleo/go-functional-collections/key/hash" ) // bitmapShift is 3 because we are using uint8 as the base bitmap type. const bitmapShift uint = 3 // bitmapSize is the number of uint8 needed to cover hash.IndexLimit bits. const bitmapSize uint = (hash.I...
alansangeeth/ej2-javascript-samples
src/treeview/localdata.js
this.default = function () { // Render the TreeView with hierarchical data source var treeObj = new ej.navigations.TreeView({ fields: { dataSource: window.continentData, id: 'code', text: 'name', child: 'countries' } }); treeObj.appendTo('#tree'); // Render the TreeView with list dat...
ecds/otb-api-server
spec/models/tour_spec.rb
# frozen_string_literal: true require 'rails_helper' RSpec.describe Tour, type: :model do # it { should validate_presence_of(:title) } # it { expect(subject).to validate_presence_of :title } it { expect(subject).to have_many(:stops) } it { expect(subject).to have_many(:tour_stops) } it { expect(Tour.reflect...
junwei-wang/com.hotfixs.books
thinking-in-java/interfaces/src/main/java/com/hotfixs/thinkinginjava/interfaces/filter/Waveform.java
package com.hotfixs.thinkinginjava.interfaces.filter; /** * @author wang */ public class Waveform { private static long counter; private final long id = counter++; public String toString() { return "Waveform " + id; } }
runtest007/dpdk_surcata_4.1.1
suricata-4.1.4/src/output-json-http.c
/* Copyright (C) 2007-2013 Open Information Security Foundation * * You can copy, redistribute or modify this Program under the terms of * the GNU General Public License version 2 as published by the Free * Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY...
SocialGouv/emjpm
packages/app/src/containers/AdminUserService/AdminUserServiceForm.js
<reponame>SocialGouv/emjpm import { useFormik } from "formik"; import { Box, Flex } from "rebass"; import { FormGrayBox, FormGroupInput, FormInputBox, } from "~/components/AppForm"; import { Link } from "~/containers/Commons"; import { adminUserServiceSchema } from "~/validation-schemas"; import { Button, Headi...
AlohaChina/or-tools
docs/cpp_routing/search/related_1.js
<filename>docs/cpp_routing/search/related_1.js<gh_stars>1000+ var searchData= [ ['appenddimensioncumulfilters_0',['AppendDimensionCumulFilters',['../classoperations__research_1_1_routing_dimension.html#a0e3e4445c55d0c59ef4edbaf7acbd3a8',1,'operations_research::RoutingDimension']]] ];
RobinSchmidt/RS-MET-Preliminary
Libraries/RobsJuceModules/rosic/legacy/OnePoleFilter.h
#ifndef OnePoleFilter_h #define OnePoleFilter_h //#include "AudioModule.h" #include "Definitions.h" #include "MoreMath.h" /** This is an implementation of a simple one-pole filter unit, which mimics an analog RC-Filter circuit. It has 2 modes: lowpass and highpass. */ class OnePoleFilter { public: /** This is a...
geektcp/alpha-lab
alpha-auth/alpha-auth-oauth2/alpha-auth-oauth2-server/src/main/java/com/geektcp/alpha/sso/server/vo/SysUserVO.java
package com.geektcp.alpha.sso.server.vo; import com.geektcp.alpha.sso.server.entity.SysUser; import lombok.Data; import lombok.EqualsAndHashCode; import java.util.List; /** * @author tanghaiyang */ @Data @EqualsAndHashCode(callSuper = false) public class SysUserVO extends SysUser { /** * 权限列表 */ ...
samirans89/wcm-io-qa-galenium
modules/core/src/main/java/io/wcm/qa/glnm/pairwise/Tupel.java
<reponame>samirans89/wcm-io-qa-galenium<filename>modules/core/src/main/java/io/wcm/qa/glnm/pairwise/Tupel.java /* * #%L * wcm.io * %% * Copyright (C) 2019 wcm.io * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may ob...
maxirosson/jdroid-java-webapp
jdroid-java-webapp-sample/src/main/java/com/jdroid/javaweb/sample/firebase/SampleInnerEntity.java
package com.jdroid.javaweb.sample.firebase; public class SampleInnerEntity { private String stringField; private Long longField; public Long getLongField() { return longField; } public void setLongField(Long longField) { this.longField = longField; } public String getStringField() { return stringFi...
larrytheliquid/dataflow
examples/laziness.rb
require "#{File.dirname(__FILE__)}/../dataflow" include Dataflow local do |x, y, z| Thread.new { unify y, by_need { 4 } } Thread.new { unify z, x + y } Thread.new { unify x, by_need { 3 } } puts z end
kalen2019/sp
code/c/03-asmVm/qemu/src/qemu-0.9.1/x_keymap.c
<reponame>kalen2019/sp /* * QEMU SDL display driver * * Copyright (c) 2003 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation th...
yudanli/fast_ber
include/fast_ber/ber_types/UTF8String.hpp
#pragma once #include "fast_ber/ber_types/StringImpl.hpp" #include "fast_ber/ber_types/Tag.hpp" namespace fast_ber { template <typename Identifier = ExplicitId<UniversalTag::utf8_string>> using UTF8String = fast_ber::StringImpl<UniversalTag::utf8_string, Identifier>; }
TecArt/servicecatalog-development
oscm-database-unittests/javasrc-it/org/oscm/database/SchemaUpgrade_02_08_06_to_02_08_07_IT.java
<filename>oscm-database-unittests/javasrc-it/org/oscm/database/SchemaUpgrade_02_08_06_to_02_08_07_IT.java /******************************************************************************* * * Copyright FUJITSU LIMITED 2017 * * Creation Date: 03.09.2012 * **********************************************************...
colemujadzic/old
oldish-dotfiles/.vscode/extensions/peterjausovec.vscode-docker-0.3.1/out/commands/utils/quick-pick-azure.js
<filename>oldish-dotfiles/.vscode/extensions/peterjausovec.vscode-docker-0.3.1/out/commands/utils/quick-pick-azure.js "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const opn = require("opn"); const vscode = require("vscode"); const vscode_azureextensionui_1 = require("vscode-azureextensio...
SparoJ/mathLogic
JavaPractice/src/com/sparo/thread/ABThreadTest.java
package com.sparo.thread; /** * description: 如何让 threadA 和 threadB 依次顺序累加打印 1->100的数字 * Created by sdh on 2019-12-01 */ public class ABThreadTest { public int a = 0; private final Object monitor = new Object(); // public static final Runnable RUNNABLE = new Runnable() { // public void run() { // ...
apache/tuscany-sca-2.x
modules/common-http/src/main/java/org/apache/tuscany/sca/common/http/HTTPUtils.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 ...
tizenorg/platform.framework.web.wrt-commons
modules/utils/include/dpl/utils/warp_iri.h
<reponame>tizenorg/platform.framework.web.wrt-commons<gh_stars>0 /* * Copyright (c) 2011 Samsung Electronics 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 Li...
kklein/icontract
tests_3_6/__init__.py
<filename>tests_3_6/__init__.py """ Test Python 3.6-specific features. For example, one such feature is literal string interpolation. """ import sys if sys.version_info < (3, 6): def load_tests(loader, suite, pattern): # pylint: disable=unused-argument """Ignore all the tests for lower Python versions."...
brandonbraun653/Apollo
lib/am335x_sdk/ti/drv/pm/include/pmic/pmhal_tps659037.h
<filename>lib/am335x_sdk/ti/drv/pm/include/pmic/pmhal_tps659037.h /* ============================================================================= * Copyright (c) Texas Instruments Incorporated 2016 * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided tha...
mathieuravaux/nutchbase
src/java/org/apache/nutch/crawl/Injector.java
<reponame>mathieuravaux/nutchbase<filename>src/java/org/apache/nutch/crawl/Injector.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 li...
Watch-Later/Eureka
crack-data-structures-and-algorithms/leetcode/find_peak_element_q162.py
# -*- coding: utf-8 -*- # 0xCCCCCCCC def find_peak_element(nums): """ :type nums: List[int] :rtype: int """ # Turn to find local maximum within the array. l, r = 0, len(nums) - 1 while l < r: m = (l + r) // 2 if nums[m] < nums[m+1]: # Becase we want local maximum...
htjia/vueYrProject
src/views/extensionManage/wyBasicInfoManage/portalfilm/acceptanceCriteria/siteManage.js
<reponame>htjia/vueYrProject import PageHeaderLayout from '@/components/PageHeaderLayout' import HeaderSearchAdd from '@/components/HeaderSearchAdd' import { findColorList, findModelList, query, queryHv, enableDisabled, produceName, normUpdate, normAdd, remove } from '@/api/acceptanceCriteria' export default { compo...
ruhulaminparvez/FreeCodeCamp-Container
002_JavaScript Algorithms-and-Data-Structures/05_Basic-Data-Structures/12_create-complex-multi-dimensional-arrays.js
<filename>002_JavaScript Algorithms-and-Data-Structures/05_Basic-Data-Structures/12_create-complex-multi-dimensional-arrays.js let myNestedArray = [ // Only change code below this line 'level 1', /* myNestedArray[0] */ ['level 2'], /* myNestedArray[1][0] */ ...
Quicr/qmedia
test/metrics.cc
<filename>test/metrics.cc<gh_stars>0 #include <doctest/doctest.h> #include <cstring> #include <string> #include <iostream> #include "metrics.hh" using namespace neo_media; TEST_CASE("createSetAndVerify") { Metrics metrics("", "", "", ""); Metrics::MeasurementPtr measurement = metrics.createMeasurement( ...
MeiVinEight/ReflectionFX
src/main/java/org/mve/asm/file/attribute/module/ModuleRequire.java
<reponame>MeiVinEight/ReflectionFX package org.mve.asm.file.attribute.module; public class ModuleRequire { public int require; public int flag; public int version; public byte[] toByteArray() { byte[] b = new byte[6]; b[0] = (byte) ((this.require >>> 8) & 0XFF); b[1] = (byte) (this.require & 0XFF); b[2] ...
openn2o/jitredis
tests/pico-examples-master/multitask/s_task/src/s_list.c
/* Copyright xhawk, MIT license */ #include "s_list.h" /*******************************************************************/ /* list */ /*******************************************************************/ s_list_t *s_list_get_prev (s_list_t *list) {...
zhangkn/iOS14Header
System/Library/Frameworks/MediaPlayer.framework/MPChangeQueueEndActionCommandEvent.h
<filename>System/Library/Frameworks/MediaPlayer.framework/MPChangeQueueEndActionCommandEvent.h /* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:39:49 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/Frameworks/MediaPlayer....
maciej-consdata/sonarqube-companion
sonarqube-companion-rest/src/main/java/pl/consdata/ico/sqcompanion/violation/project/GroupViolationsHistoryDiff.java
package pl.consdata.ico.sqcompanion.violation.project; import lombok.Builder; import lombok.Data; import pl.consdata.ico.sqcompanion.violation.Violations; import pl.consdata.ico.sqcompanion.violation.project.ProjectViolationsHistoryDiff; import java.util.List; @Data @Builder public class GroupViolationsHistoryDiff {...
FionaWong/operation
src/actions/index.js
import * as types from '../constants/actionTypes' /* 添加组件 */ export function addElement(element) { return { type: types.ADD_ELEMENT, data: element } } /* 设置组件属性 */ export function setProp(prop) { return { type: types.SET_PROP, data: prop } }
chzyer/fsmq
go/fs/volume_test.go
package fs import ( "os" "testing" "time" "github.com/allmad/madq/go/bio" "github.com/chzyer/flow" "github.com/chzyer/test" ) func TestVolume(t *testing.T) { defer test.New(t) delegate := bio.NewHybrid(test.NewMemDisk(), BlockBit) vol, err := NewVolume(flow.New(), &VolumeConfig{ Delegate: delegate, ...
philanderson888/java-playground
Projects/202009 Kotlin API/20200929-api-stock-ui/src/main/java/uk/co/philanderson/stockui/ChartController.java
<reponame>philanderson888/java-playground package uk.co.philanderson.stockui; import javafx.application.Platform; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.fxml.FXML; import javafx.scene.chart.LineChart; import javafx.scene.chart.XYChart; import org.springframewor...
copslock/broadcom_cpri
sdk-6.5.20/libs/sdklt/bcmlta/bcmltx/bcm56996_a0/bcm56996_a0_lta_bcmltx_mirror_encap_ipv6_xfrm_handler.c
/******************************************************************************* * * DO NOT EDIT THIS FILE! * This file is auto-generated by fltg from Logical Table mapping files. * * Tool: $SDK/INTERNAL/fltg/bin/fltg * * Edits to this file will be lost when it is regenerated. * * This license is set out in ht...
tbwiss/CoAP_PubSub
coap_pubsub_plain_client/src/main/java/com/wiss/thom/main/Main.java
<gh_stars>0 /* * 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 com.wiss.thom.main; import com.wiss.thom.output.MeasurementWriter; /** * * @author thomas */ public class Main...
sureshmangs/Code
competitive programming/codeforces/1406A - Subset Mex.cpp
/* A. Subset Mex time limit per test1 second memory limit per test512 megabytes inputstandard input outputstandard output Given a set of integers (it can contain equal elements). You have to split it into two subsets A and B (both of them can contain equal elements or be empty). You have to maximize the value of mex(A...
enowmbi/lazarus
db/migrate/20190720150237_create_observations.rb
<filename>db/migrate/20190720150237_create_observations.rb class CreateObservations < ActiveRecord::Migration[5.2] def change create_table :observations do |t| t.string :name t.string :desc t.boolean :is_active t.integer :observation_group_id t.timestamps end en...
huhumt/programming_pearls_practice
column003_data_structure/usa_tax/usa_tax.c
/**************************************************************************************** * This source file is an implementation to calculate tax based on your monthly income * Author: huhao * Date: 2017.07.31 * Modification record: * * * ************************************************************************...
wolforest/wolf
business/org/org-api/src/main/java/study/daydayup/wolf/business/org/api/task/dto/TaskId.java
package study.daydayup.wolf.business.org.api.task.dto; import lombok.AllArgsConstructor; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import lombok.experimental.SuperBuilder; import study.daydayup.wolf.framework.layer.api.DTO; /** * study.daydayup.wolf.business.org.api.task.d...
ZZHGit/rDSN
src/rep_tests/simple_kv/simple_kv.main.cpp
<reponame>ZZHGit/rDSN /* * The MIT License (MIT) * * Copyright (c) 2015 Microsoft Corporation * * -=- Robust Distributed System Nucleus (rDSN) -=- * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal *...
zachhardy/chi-tech
ChiTech/ChiMath/Quadratures/product_quadrature.h
<filename>ChiTech/ChiMath/Quadratures/product_quadrature.h<gh_stars>1-10 #ifndef _product_quadrature_h #define _product_quadrature_h #include <map> #include <vector> #include "angular_quadrature_base.h" namespace chi_math { enum class ProductQuadratureType { UNKNOWN = 0, GAUSS_LEGENDRE ...
health-connector/enroll
db/migrate/20180516222459_benefit_application_migration.rb
class BenefitApplicationMigration < Mongoid::Migration def self.up if Settings.site.key.to_s == "cca" Dir.mkdir("hbx_report") unless File.exists?("hbx_report") file_name = "#{Rails.root}/hbx_report/benefit_application_status_#{TimeKeeper.datetime_of_record.strftime("%m_%d_%Y_%H_%M_%S")}.csv" f...
kalyankondapally/chromiumos-platform2
iioservice/libiioservice_ipc/sensor_dbus.cc
// Copyright 2020 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "iioservice/libiioservice_ipc/sensor_dbus.h" #include <utility> #include <base/bind.h> #include <base/files/file_util.h> #include <base/file...
manyong-Han/MilitaryScheduleManagement
app/src/main/java/com/teamproject/aaaaan_2/ui/menu/BlankFragment.java
package com.teamproject.aaaaan_2.ui.menu; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import androidx.fragment.app.Fragment; import com.teamproject.aaaaan_2.R; /** * Created by hanman-yong on 2020-01-15. */ public class BlankFragment exten...
lechium/tvOS144Headers
System/Library/PrivateFrameworks/UIKitCore.framework/_UIProgressView.h
<reponame>lechium/tvOS144Headers /* * This header is generated by classdump-dyld 1.5 * on Wednesday, April 14, 2021 at 2:37:17 PM Mountain Standard Time * Operating System: Version 14.4 (Build 18K802) * Image Source: /System/Lib...
fciubotaru/z-pec
ZimbraSelenium/src/java/com/zimbra/qa/selenium/projects/ajax/ui/PageMain.java
/** * */ package com.zimbra.qa.selenium.projects.ajax.ui; import org.openqa.selenium.JavascriptExecutor; import com.zimbra.qa.selenium.framework.core.ClientSessionFactory; import com.zimbra.qa.selenium.framework.ui.*; import com.zimbra.qa.selenium.framework.util.*; import com.zimbra.qa.selenium.projects.ajax.ui.Dia...
gridgentoo/ServiceFabricAzure
src/prod/src/Hosting2/SetupContainerGroupRequest.h
<gh_stars>1000+ // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #pragma once ...
chris-kruining/game
js/rasher.js
'use strict'; import Game from './engine/game.js'; import Scene from './engine/scene.js'; import Entity from './engine/entity.js'; import Sprite from './engine/graphics/elements/sprite.js'; import Background from './engine/graphics/elements/background.js'; import Texture from './engine/graphics/elements/texture.js'; i...
ddr95070/RMIsaac
engine/engine/gems/math/tests/exponential_moving_average.cpp
/* Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. NVIDIA CORPORATION and its licensors retain all intellectual property and proprietary rights in and to this software, related documentation and any modifications thereto. Any use, reproduction, disclosure or distribution of this software and related docum...
centresource/aws-sdk-for-ruby
spec/aws/sns/topic_subscription_collection_spec.rb
<reponame>centresource/aws-sdk-for-ruby # Copyright 2011 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apa...
popoviciandreea/CTS_Laboratory
Test - 15-05-2021/src/cts/popovici/andreea/AS/pattern/builder/SingleBed.java
<filename>Test - 15-05-2021/src/cts/popovici/andreea/AS/pattern/builder/SingleBed.java package cts.popovici.andreea.AS.pattern.builder; public class SingleBed implements BedInterface{ @Override public void typeOfBed() { System.out.println("You've got the Single Bed Bedroom!"); } }
sandcast/bayes-scala
src/test/scala/dk/bayes/clustergraph/testutil/test/TennisDBNTest.scala
package dk.bayes.clustergraph.testutil.test import org.junit._ import Assert._ import dk.bayes.clustergraph.infer.LoopyBP import dk.bayes.clustergraph.factor.Var import dk.bayes.clustergraph.factor.Factor import dk.bayes.clustergraph.testutil.TennisDBN._ import dk.bayes.clustergraph.testutil.AssertUtil._ class Tennis...
Labs-Weedmaps-Team-2/xelp-FE
src/pages/NotFound/index.js
<reponame>Labs-Weedmaps-Team-2/xelp-FE import React, { useState } from 'react' import { Stage, Display, StartButton } from 'components' import { createStage, checkCollision } from 'utils' import styled from 'styled-components' import { usePlayer, useStage, useGameStatus, useInterval } from 'hooks' import tetris from 'a...
lechium/tvOS10Headers
System/Library/Frameworks/Metal.framework/MTLLibrary.h
/* * This header is generated by classdump-dyld 1.0 * on Wednesday, March 22, 2017 at 9:01:32 AM Mountain Standard Time * Operating System: Version 10.1 (Build 14U593) * Image Source: /System/Library/Frameworks/Metal.framework/Metal * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>. */ @class N...
whitefancy/designPatternApplication
commandpattern/prototype/Client.java
<gh_stars>0 package designpattern.commandpattern.prototype; /** * 客户负责创建一个ConcreteCommand,并设置其接收者 */ public class Client { { Receiver receiver = new Receiver(); Command command = new ConcreteCommand(receiver); } }
theumang100/tutorials-1
core-python/Core_Python/exception/FileNotFound_Ex.py
try: # trying to open a file in read mode fo = open("foobar.txt","rt") except FileNotFoundError as e: print("File not found : ",e)
bantudb/kv
src/oracle/kv/impl/admin/plan/task/WriteNewSNParams.java
<gh_stars>0 /*- * Copyright (C) 2011, 2017 Oracle and/or its affiliates. All rights reserved. * * This file was distributed by Oracle as part of a version of Oracle NoSQL * Database made available at: * * http://www.oracle.com/technetwork/database/database-technologies/nosqldb/downloads/index.html * * Please se...
RuthDevlaeminck/NFVO
common/src/main/java/org/openbaton/nfvo/common/configuration/NfvoGsonDeserializerNFVMessage.java
<filename>common/src/main/java/org/openbaton/nfvo/common/configuration/NfvoGsonDeserializerNFVMessage.java /* * Copyright (c) 2016 Open Baton (http://www.openbaton.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may o...
jmswen/eden
eden/fs/utils/ProcUtil.cpp
/* * Copyright (c) 2016-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #inc...
jingcao80/Elastos
Sources/Elastos/Frameworks/Droid/JavaProxy/src/elastos/droid/javaproxy/CIIntentSenderNative.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 // // ...
rkh/nii
nii-core/lib/nii/parser/fluent.rb
# frozen_string_literal: true module Nii::Parser module Fluent autoload :Arguments, 'nii/parser/fluent/arguments' autoload :Attribute, 'nii/parser/fluent/attribute' autoload :Blank, 'nii/parser/fluent/blank' autoload :Comment, 'nii/parser/fluent/comment' autoload :Expression, '...
tomra-digital/gopass
pkg/agent/client/client_others.go
// +build !windows package client import ( "context" "os" "os/exec" "syscall" "github.com/justwatchcom/gopass/pkg/out" "github.com/pkg/errors" ) func (c *Client) startAgent(ctx context.Context) error { path, err := os.Executable() if err != nil { return errors.Wrapf(err, "unable to determine executable: %...
pierredup/sentry
src/sentry/api/serializers/models/organization_access_request.py
from __future__ import absolute_import import six from sentry.api.serializers import Serializer, register, serialize from sentry.models import OrganizationAccessRequest @register(OrganizationAccessRequest) class OrganizationAccessRequestSerializer(Serializer): def serialize(self, obj, attrs, user): d = ...
dwightspectrum/cms
asset/src/purchase_order/display_details.js
<gh_stars>0 $(document).ready(function(){ (function() { [].slice.call(document.querySelectorAll('.sttabs')).forEach(function(el) { new CBPFWTabs(el); }); })(); get(); $('#search').on('keyup', function(){ get(); }); function get(page = 1){ var search = $('#search').val(); ...
shaojiankui/iOS10-Runtime-Headers
protocols/PSSearchIndexOperationDelegate.h
/* Generated by RuntimeBrowser. */ @protocol PSSearchIndexOperationDelegate <PSSpecifierObserver> @required - (void)searchIndexOperation:(PSSearchIndexOperation *)arg1 didFindSpecifierDataSource:(id <PSSpecifierDataSource>)arg2; - (void)searchIndexOperationDidFinish:(PSSearchIndexOperation *)arg1 searchEntries:(NSA...
joyrun/ActivityRouter
grouter/src/test/java/com/grouter/hybrid/GRouterJavascriptInterfaceTest.java
package com.grouter.hybrid; import android.net.Uri; import org.junit.Test; import java.util.ArrayList; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; import static org.junit.Assert.*; public class GRouterJavascriptInterfaceTest { @Test public void getTask() { } ...
xiaoashuo/relaxed
relaxed-starters/relaxed-spring-boot-starter-oss/relaxed-spring-boot-starter-s3/src/main/java/com/relaxed/common/oss/s3/OssClient.java
<filename>relaxed-starters/relaxed-spring-boot-starter-oss/relaxed-spring-boot-starter-s3/src/main/java/com/relaxed/common/oss/s3/OssClient.java package com.relaxed.common.oss.s3; import com.relaxed.common.oss.s3.exception.OssException; import com.relaxed.common.oss.s3.modifier.PathModifier; import lombok.Getter; impo...
evertrue/Singularity
SingularityBase/src/main/java/com/hubspot/singularity/WebhookType.java
package com.hubspot.singularity; public enum WebhookType { TASK, REQUEST, DEPLOY; }
VersiraSec/epsilon-cfw
ion/src/device/n0100/shared/regs/config/flash.h
#ifndef ION_DEVICE_N0100_SHARED_REGS_CONFIG_FLASH_H #define ION_DEVICE_N0100_SHARED_REGS_CONFIG_FLASH_H #define REGS_FLASH_CONFIG_ART 0 #define REGS_FLASH_CONFIG_OPTCR1 0 #endif
inOmOney/NQ-SERVER
src/main/java/top/theanything/web/controller/url/ShortUrlController.java
<reponame>inOmOney/NQ-SERVER package top.theanything.web.controller.url; import top.theanything.core.anno.Controller; import top.theanything.core.anno.RequestMapping; import top.theanything.config.BasicConfig; import top.theanything.core.action.AbstractAction; import top.theanything.core.error.ShortPathNotFoundExcepti...
mallrat208/UnWIRED
src/main/java/com/mr208/unwired/libs/FieldsLib.java
package com.mr208.unwired.libs; public class FieldsLib { public static final int FIELD_COUNT = 6; public static final int ENERGY_LOWER = 0; public static final int ENERGY_UPPER = 1; public static final int ENERGY_MAX_LOWER = 2; public static final int ENERGY_MAX_UPPER = 3; public static final int PROGRESS = 4; ...
RedRock-2017-Summer/freshmanspecial
app/src/main/java/com/mredrock/freshmanspecial/CQUPTElegant/Interface/IOrganizationFrg.java
package com.mredrock.freshmanspecial.CQUPTElegant.Interface; import android.support.v4.app.FragmentManager; /** * Created by Anriku on 2017/8/10. */ public interface IOrganizationFrg { FragmentManager getTheFragmentManager(); }
CiscoDevNet/ydk-cpp
cisco-ios-xe/ydk/models/cisco_ios_xe/CISCO_IP_URPF_MIB.cpp
<reponame>CiscoDevNet/ydk-cpp #include <sstream> #include <iostream> #include <ydk/entity_util.hpp> #include "bundle_info.hpp" #include "generated_entity_lookup.hpp" #include "CISCO_IP_URPF_MIB.hpp" using namespace ydk; namespace cisco_ios_xe { namespace CISCO_IP_URPF_MIB { CISCOIPURPFMIB::CISCOIPURPFMIB() : ...
sterobin/drools
kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDataDictionaryASTFactory.java
/* * Copyright 2020 Red Hat, Inc. and/or its affiliates. * * 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...
yffd/easy-parent
easy-framework-common/src/main/java/com/yffd/easy/framework/common/service/support/CommonServiceTreeSupport.java
<gh_stars>0 package com.yffd.easy.framework.common.service.support; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Transactional; import com.yffd.easy.c...
PedroTreck/dctb-utfpr-2018-2
programacao-web/as34a-n14/t02/gabriel-garcia/src/components/Portfolio/index.js
import React, { Component, Fragment } from 'react'; import './Portfolio.css'; const Portfolio = function () { return <Fragment> <section id="portfolio"> <h2>Portfólio</h2> <div id="portfolio-container"> <div className="portfolio-proj"> <a href="ht...
javaeryang/mtool
light/light/com/easyctrl/ldy/domain/RoomBean.java
package com.easyctrl.ldy.domain; public class RoomBean { public int floorID; public int id; public int isUse; public String name; public int paixu; public String sname; public static final class Table { public static String FLOORID = com.easyctrl.ldy.domain.UserScene.Table.FIELD_FL...
ch1huizong/learning
lang/py/cookbook/v2/source/cb2_12_5_sol_1.py
<filename>lang/py/cookbook/v2/source/cb2_12_5_sol_1.py from xml.parsers import expat class Element(object): ''' A parsed XML element ''' def __init__(self, name, attributes): # Record tagname and attributes dictionary self.name = name self.attributes = attributes # Initialize the...
Eunoians/McMMOx
src/main/java/us/eunoians/mcrpg/abilities/sorcery/PotionAffinity.java
<reponame>Eunoians/McMMOx package us.eunoians.mcrpg.abilities.sorcery; import us.eunoians.mcrpg.abilities.BaseAbility; import us.eunoians.mcrpg.types.UnlockedAbilities; public class PotionAffinity extends BaseAbility { public PotionAffinity(boolean isToggled, int currentTier) { super(UnlockedAbilities.POTION_A...
itsraina/ghidra
Ghidra/Debug/ProposedUtils/src/test/java/ghidra/pcode/exec/AnnotatedPcodeUseropLibraryTest.java
/* ### * IP: GHIDRA * * 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 writin...
Ubastic/lintcode
python/0138.subarray-sum.py
<gh_stars>1-10 class Solution: """ @param nums: A list of integers @return: A list of integers includes the index of the first number and the index of the last number """ def subarraySum(self, nums): d = {} d[0] = -1 L = len(nums) index = 0 count = 0 w...
NickGenghar/Serv_Old
initial/reload.js
const Discord = require('discord.js'); const fs = require('fs'); const keyCompare = require('../functions/keyCompare'); const defaults = require('../configurations/defaults.json'); /** * @param {Object} bot The Discord Client object. * @returns {void} */ module.exports = (bot) => { if(typeof bot.timeout === 'o...
EmergentOrder/SparkCyclone
tpcbench-run/src/main/scala/sc/RunResults.scala
<reponame>EmergentOrder/SparkCyclone<filename>tpcbench-run/src/main/scala/sc/RunResults.scala package sc import cats.effect.IO import scalatags.Text import java.nio.file.{Files, Path, Paths} object RunResults { val DefaultOrdering: List[String] = List( "id", "timestamp", "gitCommitSha", ...
denis-mludek/kaiju
es/observable/flatMapLatest.js
import { Observable } from './observable'; export default function flatMapLatest(mapper, source) { return Observable(function (add) { var currentUnsub = void 0; var unsubSource = source.subscribe(function (val) { currentUnsub && currentUnsub(); var mappedObs = mapper(val); currentUnsub = ...
mikestaub/arangodb
3rdParty/V8/V8-5.0.71.39/test/test262/data/test/language/eval-code/non-definable-global-function.js
<filename>3rdParty/V8/V8-5.0.71.39/test/test262/data/test/language/eval-code/non-definable-global-function.js // Copyright (C) 2015 <NAME>. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- es6id: 18.2.1.2 description: Throws a TypeError if a global function cannot be de...
richmit/mraster
lib/ramConfig.hpp
// -*- Mode:C++; Coding:us-ascii-unix; fill-column:158 -*- /**************************************************************************************************************************************************************/ /** @file ramConfig.hpp @author <NAME> <https://www.mitchr.me> @brief Header defining...
rjw57/tiw-computer
emulator/src/devices/cpu/tms1000/tms1400.cpp
// license:BSD-3-Clause // copyright-holders:hap /* TMS1000 family - TMS1400, TMS1470, TMS1600, TMS1670 TODO: - emulate TMS1600 L-pins */ #include "emu.h" #include "tms1400.h" #include "debugger.h" // TMS1400 follows the TMS1100, it doubles the ROM size again (4 chapters of 16 pages), and adds a 3-level call...