repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
lht19900714/Leetcode_Solutions
Algorithms/0079_Word_Search/Python/Word_Search_Solution_1.py
<gh_stars>0 # Space: O(l) # Time: O(m * n * l) class Solution: def exist(self, board, word) -> bool: column_length = len(board) row_length = len(board[0]) word_length = len(word) def dfs(x, y, index): if index >= word_length: return True if (not 0 <= x < r...
hcfman/hydracontrolfreak
src/main/java/com/hydracontrolfreak/hcf/streamer/Img.java
<filename>src/main/java/com/hydracontrolfreak/hcf/streamer/Img.java package com.hydracontrolfreak.hcf.streamer; import com.hydracontrolfreak.hcf.freak.Freak; import com.hydracontrolfreak.hcf.freak.api.FreakApi; import com.hydracontrolfreak.hcf.hcfdevice.config.HcfDeviceConfig; import org.apache.log4j.Logger; import or...
sunjc53yy/chromium
chromecast/browser/test/chromecast_shell_browser_test.cc
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/macros.h" #include "chromecast/browser/test/chromecast_browser_test.h" #include "url/gurl.h" #include "url/url_constants.h" namespace chro...
friedlwo/AppWoksUtils
src/org/appwork/utils/swing/dialog/SearchDialog.java
/** * Copyright (c) 2009 - 2010 AppWork UG(haftungsbeschränkt) <<EMAIL>> * * This file is part of org.appwork.utils.swing.dialog * * This software is licensed under the Artistic License 2.0, * see the LICENSE file or http://www.opensource.org/licenses/artistic-license-2.0.php * for details */ package...
qiyesmart/Java
CrateThread1/CreateThread.java
/** * Author:QiyeSmart * Created:2019/4/24 */ /* 线程的创建: 线程的创建: 1. 1.1 自定义类继承java.lang.Thread类,覆写run方法 1.2 实例化自定义类对象,该对象就是一个具备线程执行的对象 1.3 线程类的对象run方法直接调用和普通类的对象调用没有区别 1.3.1直接调用run方法,实际还是同步执行,跟线程没关系 1.3.2 调用start方法,才会异步执行,跟线程有关系,该方法不能多次调用 1.4 native修饰的方法称为本地方法,需要依赖平台实现 JNI(Java Native Interface) 2.Runnable类实...
Scripta-Qumranica-Electronica/Scrollery-website
src/js/components/editor/sign_attributes.js
export default { readability: { incomplete: { clear: 'INCOMPLETE_BUT_CLEAR', unclear: 'INCOMPLETE_AND_NOT_CLEAR' } } }
LoliGothick/mitama-dimensional
include/mitama/dimensional/systems/si/base_dimension/equivalent_dose.hpp
<reponame>LoliGothick/mitama-dimensional #ifndef MITAMA_DIMENSIONAL_DERIVED_UNITS_EQUIVALENT_DOSE_HPP #define MITAMA_DIMENSIONAL_DERIVED_UNITS_EQUIVALENT_DOSE_HPP namespace mitama::systems::si { struct equivalent_dose { using is_base_dimension = void; }; } #endif
of13tch/siembol
config-editor/config-editor-services/src/main/java/uk/co/gresearch/siembol/configeditor/service/alerts/AlertingRuleSchemaService.java
<gh_stars>100-1000 package uk.co.gresearch.siembol.configeditor.service.alerts; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectReader; import com.fasterxml.ja...
hieuhunter/frontend-dienthoai-admin
src/modules/main/components/tag/components/create/components/index.js
import React from 'react'; import { useFormik } from 'formik'; import * as Yup from 'yup'; import httpRequest from 'common/utils/httpRequest'; import Card from 'common/components/Card/components'; import Breadcrumb from 'common/components/Breadcrumb/components'; import history from 'common/utils/history'; import classN...
rahuldeepattri/app-autoscaler
src/integration_legacy/integration_api_scheduler_test.go
<reponame>rahuldeepattri/app-autoscaler package integration_legacy import ( "autoscaler/cf" "encoding/base64" "fmt" "net/http" "strings" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "github.com/onsi/gomega/ghttp" ) var _ = Describe("Integration_legacy_Api_Scheduler", func() { var ( appId ...
rvernagus/irdb
spec/oracle/spec_helper.rb
dir_path = File.dirname(__FILE__) lib_path = File.expand_path(dir_path + "/../../lib") $:.unshift lib_path unless $:.include? lib_path require "irdb" require "yaml" include IRDb $config = YAML.load_file(dir_path + "/config.yaml") module OracleHelper def get_database provider_factory = DbProviderFactory.new ...
NextCenturyCorporation/nucleus-data-server
server/src/test/java/com/ncc/neon/services/StateServiceTest.java
package com.ncc.neon.services; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.fail; import static org.junit.Assert.assertEquals; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.dataformat.yaml.YAMLFactory; import com.ncc.neon.mo...
dbflute/dbflute-core
dbflute-engine/src/main/java/org/dbflute/logic/replaceschema/finalinfo/DfAbstractSchemaTaskFinalInfo.java
/* * Copyright 2014-2021 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 * * Unless required by app...
r-kaminski/innovativeproject-inventory-of-supplies
mobile/screens/StocktakingsContainer.js
<gh_stars>1-10 import React from 'react'; import { FlatList, StyleSheet, Text } from 'react-native'; import { ListItem } from "react-native-elements"; import { getStocktakings } from "../services/StocktakingService"; export default class StocktakingsScreen extends React.Component { state = { pageSize: 8, ...
jgrancell/kubenv
settings/configuration_test.go
package settings import ( "testing" ) func TestLoadConfiguration(t *testing.T) { defaultConf, err := LoadConfiguration() if err != nil { t.Errorf(err.Error()) } if defaultConf.KubeDir != defaultConf.EnvDir { t.Errorf("Expected KubeDir and EnvDir to be equal, got %s %s", defaultConf.KubeDir, defau...
marc2k3/foo_jscript_panel
src/Panel/PanelManager.h
#pragma once class PanelTimer; class PanelManager { public: PanelManager(); ~PanelManager(); static PanelManager& instance(); uint32_t create_timer(CWindow hwnd, IDispatch* pdisp, uint32_t delay, bool execute_once); void add_window(CWindow hwnd); void post_msg_to_all(CallbackID id, WPARAM wp = 0); void post_...
shaojiankui/iOS10-Runtime-Headers
PrivateFrameworks/PrototypeTools.framework/PTSButtonCell.h
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/PrototypeTools.framework/PrototypeTools */ @interface PTSButtonCell : UITableViewCell - (id)initWithReuseIdentifier:(id)arg1; @end
smargh/homebrew-fonts
Casks/font-kisiska.rb
cask :v1 => 'font-kisiska' do version :latest sha256 :no_check url 'http://www.languagegeek.com/font/kisiska.zip' homepage 'http://www.languagegeek.com/font/fontdownload.html' license :unknown font 'kisiska.otf' end
jacksund/simmate
src/simmate/configuration/dask/client.py
<gh_stars>1-10 # -*- coding: utf-8 -*- from dask.distributed import Client, get_client def get_dask_client(**kwargs) -> Client: """ This is a convenience utility that grabs the client for the local Dask cluster if it exists -- and if not, creates a new cluster and returns the client for it. ####...
democat3457/BetterWithAddons
src/main/java/betterwithaddons/tileentity/TileEntityPress.java
<filename>src/main/java/betterwithaddons/tileentity/TileEntityPress.java package betterwithaddons.tileentity; import betterwithmods.api.tile.IMechanicalPower; import net.minecraft.block.Block; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.util.EnumFacing; import net.minecraft.util.math.BlockPos; import...
Andreas237/AndroidPolicyAutomation
ExtractedJars/Shopkick_com.shopkick.app/javafiles/android/support/v4/app/NotificationCompat$WearableExtender.java
<reponame>Andreas237/AndroidPolicyAutomation<filename>ExtractedJars/Shopkick_com.shopkick.app/javafiles/android/support/v4/app/NotificationCompat$WearableExtender.java // Decompiled by Jad v1.5.8g. Copyright 2001 <NAME>. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) annotate safe...
wilebeast/FireFox-OS
B2G/gecko/mobile/android/base/httpclientandroidlib/client/protocol/RequestAddCookies.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 ...
biswain2309/amadeus-code-examples
airport_and_city_search/v1/get/locations_locationsid/Node SDK/airport_and_city_search.js
<reponame>biswain2309/amadeus-code-examples var Amadeus = require("amadeus"); var amadeus = new Amadeus({ clientId: 'YOUR_API_KEY', clientSecret: 'YOUR_API_SECRET' }); // Which cities or airports start with ’r'? amadeus.referenceData.locations.get({ keyword: 'r', subType: Amadeus.location.any }).then(function ...
luyang1210/arx
src/main/org/deidentifier/arx/aggregates/HierarchyBuilderOrderBased.java
/* * ARX: Powerful Data Anonymization * Copyright 2012 - 2016 <NAME>, <NAME> and contributors * * 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/licen...
danx0r/mongo
src/mongo/db/s/implicit_create_collection_test.cpp
/** * Copyright (C) 2018 MongoDB Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be usef...
winixi/wechat-pay
src/main/java/sh/evc/sdk/wechat/pay/response/mmpaymkttransfers/TransferQueryResponse.java
package sh.evc.sdk.wechat.pay.response.mmpaymkttransfers; import com.fasterxml.jackson.annotation.JsonProperty; import sh.evc.sdk.wechat.pay.dict.TransferStatus; import sh.evc.sdk.wechat.pay.response.XmlResponse; /** * 企业付款查询 * * @author winixi * @date 2021/2/17 2:20 PM */ public class TransferQueryResponse exte...
fossabot/pwa
libraries/common/selectors/router.js
<gh_stars>0 import { createSelector } from 'reselect'; /** * @param {Object} state The application state. * @return {Object} */ export const getRouterState = state => state.router; /** * @param {Object} state The application state. * @return {Array} */ export const getRouterStack = createSelector( getRouterSt...
ZhnZhn/ZhnZhn.github.io
src/flux/stores/ChartSlice.js
<filename>src/flux/stores/ChartSlice.js import { LPAT_LOADING, LPAT_LOADING_COMPLETE, LPAT_LOADING_FAILED } from '../actions/LoadingProgressActions' import { ChartActionTypes as CHAT } from '../actions/ChartActions'; import { BAT_UPDATE_BROWSER_MENU } from '../actions/BrowserActions'; import ChartLogic from './c...
w2ogroup/rave-old
rave-components/rave-core/src/test/java/org/apache/rave/portal/service/impl/DefaultWidgetMarketplaceServiceTest.java
<reponame>w2ogroup/rave-old /* * 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, Ver...
colleenmcginnis/apm-server
model/modeldecoder/v2/metadata_test.go
// Licensed to Elasticsearch B.V. under one or more contributor // license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright // ownership. Elasticsearch B.V. licenses this file to you under // the Apache License, Version 2.0 (the "License"); you may // not use ...
VisualAcademy/Java
Java/Whitespace/Whitespace.java
<gh_stars>0 // 공백(Whitespace): 프로그래밍 언어에서 공백은 무시된다. public class Whitespace { public static void main(String[] arsg) { System.out.println("Java"); System.out.println( "Java" ) ; System .out .println( "Java" ) ...
KruthikaShyamSundar/wildlife_park
node_modules/svgo/plugins/removeUselessStrokeAndFill.js
<filename>node_modules/svgo/plugins/removeUselessStrokeAndFill.js 'use strict'; const { visit, visitSkip, detachNodeFromParent } = require('../lib/xast.js'); const { collectStylesheet, computeStyle } = require('../lib/style.js'); const { elemsGroups } = require('./_collections.js'); exports.type = 'visitor'; exports....
xuepingiw/open_source_startalk
startalk_ui/GeneratedFiles/moc/moc_WebPage.cpp
<filename>startalk_ui/GeneratedFiles/moc/moc_WebPage.cpp /**************************************************************************** ** Meta object code from reading C++ file 'WebPage.h' ** ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.2.1) ** ** WARNING! All changes made in this file will be lost! ****...
aklinker1/miasma
internal/server/gen/restapi/operations/update_app_traefik_config_responses.go
<reponame>aklinker1/miasma // Code generated by go-swagger; DO NOT EDIT. package operations // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "net/http" "github.com/go-openapi/runtime" "github.com/aklinker1/miasma/packag...
alanjjenkins/awacs
awacs/glue.py
# Copyright (c) 2012-2021, <NAME> <<EMAIL>> # All rights reserved. # # See LICENSE file for full license. from .aws import Action as BaseAction from .aws import BaseARN service_name = "AWS Glue" prefix = "glue" class Action(BaseAction): def __init__(self, action: str = None) -> None: super().__init__(pr...
stefpetrov/Software-University
Programming Basics - Exams/task4.js
<reponame>stefpetrov/Software-University function training(input){ let index = 0; let days = Number(input[index]); index++ let firstDayKm = Number(input[index]); index++ let totalKm = firstDayKm let finalKm = firstDayKm for(let currentDay = 1; currentDay <= days; currentDay++){ ...
GobiShanthan/Portfolio
frontend/src/MarvelApp/Components/MarvelLoader.js
import React from 'react' import DrStrange from '../marvelPics/DrStrange.png' import spinningRing from '../marvelPics/spinRing.png' import './marvelCss.css' const MarvelLoader = () => { return ( <div className='drStrangeSpinn'> <img src={DrStrange} alt='DrStrange' style={{maxWidth:"600px",widt...
chuckwondo/iter-tools
src/impls/$enumerate/async-enumerate.js
<filename>src/impls/$enumerate/async-enumerate.js /** * @generated-from ./$enumerate.js * This file is autogenerated from a template. Please do not edit it directly. * To rebuild it from its template use the command * > npm run generate * More information can be found in CONTRIBUTING.md */ import { asyncIterable...
khandy21yo/aplus
CMC030/cmcfun/source/prnt_numberith.c
/* %TITLE "Figure out follower for a number (st,nd,...)" */ #pragma module prnt_numberith "V3.6 Calico" /* * COPYRIGHT (C) 1992 BY * Computer Management Center, Inc. * Idaho Falls, Idaho 83402 * * This software is furnished under a license and may be used and * copied only in accordance with terms of such lice...
tyekx/netcode
Netcode/Graphics/DX12/DX12GraphicsModuleForWin32.cpp
<reponame>tyekx/netcode #include "DX12GraphicsModuleForWin32.h" #include "DX12Common.h" namespace Netcode::Graphics::DX12 { void DX12GraphicsModuleForWin32::Start(Netcode::Module::AApp * app) { if(app->window != nullptr) { hwnd = reinterpret_cast<HWND>(app->window->GetUnderlyingPointer()); } DX12Graphic...
MontyThibault/centre-of-mass-awareness
Cartwheel/lib/Python26/Lib/site-packages/OpenGL/raw/GL/NV/texture_shader.py
<reponame>MontyThibault/centre-of-mass-awareness<gh_stars>0 '''OpenGL extension NV.texture_shader Overview (from the spec) Standard OpenGL and the ARB_multitexture extension define a straightforward direct mechanism for mapping sets of texture coordinates to filtered colors. This extension provides a more funct...
dannegm/neodrive
packages/neo-client/src/common/icons/outline/FacebookOutline.js
<gh_stars>1-10 import React from 'react'; import SvgIcon from '../../components/SvgIcon'; const FacebookOutline = (props) => ( <SvgIcon {...props}> <g> <path d="M13 22H9a1 1 0 01-1-1v-6.2H6a1 1 0 01-1-1v-3.6a1 1 0 011-1h2V7.5A5.77 5.77 0 0114 2h3a1 1 0 011 1v3.6a1 1 0 01-1 1h-3v1.6h3a1 1 0 01.8.39 1 1 0 01...
ChristopheCVB/EliteDangerousAPI
src/main/java/com/christophecvb/elitedangerous/events/exploration/SAASignalsFoundEvent.java
<filename>src/main/java/com/christophecvb/elitedangerous/events/exploration/SAASignalsFoundEvent.java package com.christophecvb.elitedangerous.events.exploration; import com.christophecvb.elitedangerous.events.Event; import com.christophecvb.elitedangerous.models.SAASignal; import java.util.List; public class SAASig...
BantorSchwanzVor/plotscanner-leak
org/apache/commons/net/examples/cidr/SubnetUtilsExample.java
package org.apache.commons.net.examples.cidr; import java.util.Arrays; import java.util.Scanner; import org.apache.commons.net.util.SubnetUtils; public class SubnetUtilsExample { public static void main(String[] args) { String subnet = "192.168.0.3/31"; SubnetUtils utils = new SubnetUtils(subnet); Subne...
CoderHam/WebScraper
node_modules/webdriverio/test/spec/functional/waitUntil.js
var q = require('q'); /** * breaks on travis */ describe.skip('waitUntil', function() { before(h.setup()); it('should pass', function() { var defer = q.defer(); setTimeout(function() { defer.resolve('foobar'); }, 500); return this.client.waitUnt...
alokmenghrajani/adventofcode2021
day01/day01_test.go
package day01 import ( "testing" "github.com/stretchr/testify/assert" ) func TestPart1(t *testing.T) { r := Part1(`199 200 208 210 200 207 240 269 260 263`) assert.Equal(t, 7, r) } func TestPart2(t *testing.T) { r := Part2(`199 200 208 210 200 207 240 269 260 263`) assert.Equal(t, 5, r) }
bartboy011/eventsourcing
eventsourcing/tests/test_process_with_django.py
<gh_stars>1-10 import django from django.db import models from django.db.backends.base.schema import BaseDatabaseSchemaEditor from eventsourcing.application.django import DjangoApplication from eventsourcing.tests.sequenced_item_tests.test_django_record_manager import ( DjangoTestCase, ) from eventsourcing.tests.t...
RitaGafni/artnet-cards-ui
src/components/BasicSearch.js
import React from 'react'; import { TextField } from '@mui/material'; export default function BasicSearch({ searchQ, setSearchQ, category }) { return ( <div className='basic-search'> <TextField fullWidth size='small' id='basic search' label={`Search ${category}`} var...
m-m-m/marshal
impl/tvm-xml/src/main/java/module-info.java
<gh_stars>0 /* * Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0 * http://www.apache.org/licenses/LICENSE-2.0 */ /** * Provides an implementation of {@code mmm-marshall} for XML based on StAX. * * @provides io.github.mmm.marshall.StructuredFormatProvider */ module io.github.mmm.marsh...
hugovk/SeleniumLibrary
src/SeleniumLibrary/utils/events/__init__.py
<gh_stars>100-1000 # Copyright 2008-2011 Nokia Networks # Copyright 2011-2016 <NAME>, <NAME> and contributors # Copyright 2016- Robot Framework Foundation # # 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...
EsupPortail/esup-ecandidat
src/main/java/fr/univlorraine/ecandidat/MainUI.java
/** * ESUP-Portail eCandidat - Copyright (c) 2016 ESUP-Portail consortium * * * 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-...
pradeep2304/RAutomation
spec/adapter/ms_uia/keystroke_converter_spec.rb
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'rautomation' require 'rspec' describe "KeystrokeConverter", :if => SpecHelper.adapter == :ms_uia do it "converts plain ASCII" do codes = RAutomation::Adapter::MsUia::KeystrokeConverter.convert("abc") converted_keys = convert_keys "a...
jdegges/DNArm
src/fgmtest/fgm_interface.omp.c
#include "fgm.h" #include "omp.h" int fgmLaunch(uint32_t * list, uint32_t listLen, struct cgmResult * cgmData, int cgmDLen) //return value is a success/fail indicator { int i, x; mData ** mutation; //keeping track of our mutations... mutation = malloc(sizeof(mData*) * cgmDLen); //make an array of poi...
ducky-hong/gigapaxos
src/edu/umass/cs/nio/nioutils/NIOBSTester.java
<filename>src/edu/umass/cs/nio/nioutils/NIOBSTester.java package edu.umass.cs.nio.nioutils; import java.net.InetSocketAddress; import java.nio.ByteBuffer; import java.nio.channels.SocketChannel; import edu.umass.cs.gigapaxos.paxosutil.RateLimiter; import edu.umass.cs.nio.NIOTransport; import edu.umass.cs.nio.interfac...
rennat/django_delta_logger
example_django_project/example_django_project/serialization.py
from django.conf import settings from django.utils.module_loading import import_string JsonEncoder = import_string(settings.JSON_ENCODER)
cgghali/TAF
pytests/epengine/collection_crud_negative.py
<filename>pytests/epengine/collection_crud_negative.py import json from random import choice from BucketLib.bucket import Bucket from Cb_constants import DocLoading from bucket_collections.collections_base import CollectionBase from cb_tools.cbstats import Cbstats from collections_helper.collections_spec_constants imp...
antonio-mastropaolo/labeling-machine
data/cloned/1c-syntax/bsl-language-server/src/main/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/PublicMethodsDescriptionDiagnostic.java
<reponame>antonio-mastropaolo/labeling-machine<filename>data/cloned/1c-syntax/bsl-language-server/src/main/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/PublicMethodsDescriptionDiagnostic.java /* * This file is a part of BSL Language Server. * * Copyright (c) 2018-2021 * <NAME> <<EMAIL>>, <NAME> <<EMAIL...
jesperancinha/jeorg-java-11-test-drives
jeorg-java-11-mastery/jeorg-java-11-mastery-4/jeorg-mastery-4-1/src/main/java/org/jesperancinha/java11/mastery4dot1/states/JFKGovernment.java
package org.jesperancinha.java11.mastery4dot1.states; public class JFKGovernment implements HappyBirthday { public boolean civilRightsBill = false; }
nateglims/amazon-freertos
vendors/microchip/harmony/v2.05/framework/driver/spi/src/drv_spi_variant_mapping.h
/******************************************************************************* SPI Driver Feature Variant Implementations Company: Microchip Technology Inc. File Name: drv_spi_variant_mapping.h Summary: SPI driver feature variant implementations. Description: This file implements the fun...
razerx100/Terra
includes/VK/CommandPoolManager.hpp
#ifndef COMMAND_POOL_MANAGER_HPP_ #define COMMAND_POOL_MANAGER_HPP_ #include <vulkan/vulkan.hpp> #include <vector> class CommandPoolManager { public: CommandPoolManager( VkDevice device, size_t queueIndex, std::uint32_t bufferCount ); ~CommandPoolManager() noexcept; void Reset(size_t bufferIndex); ...
lo-rodriguez/dojogroup
src/main/java/com/dojogrouppty/catalogs/SystemCodesRepository.java
package com.dojogrouppty.catalogs; import java.util.List; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.query.Param; import org.springframework.stereotype.Repository; @Repository public interface SystemCod...
NormanDunbar/xtc68
support/INCLUDE_libgen.h
<filename>support/INCLUDE_libgen.h #ifndef _LIBGEN_H #define _LIBGEN_H #ifndef _SYS_TYPES_H #include <sys/types.h> #endif #ifndef _STDIO_H #include <stdio.h> #endif #ifdef __STDC__ #define _P_(params) params #else #define _P_(params) #endif #define basename _BaseName #define bgets _Bgets #define bufsplit _Bufsplit #de...
jblancett/tsuru
iaas/ec2/iaas.go
<reponame>jblancett/tsuru // Copyright 2015 tsuru authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ec2 import ( "fmt" "reflect" "strconv" "strings" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws...
HELIX-GR/core
web/src/main/frontend/js/helix-core/service/index.js
<filename>web/src/main/frontend/js/helix-core/service/index.js import { default as citation } from './citation'; import { default as i18n } from './i18n'; import { default as search } from './search'; import { default as user } from './user'; const api = { citation, i18n, search, user, }; export default api;
Gei0r/cquery
index_tests/vars/deduce_auto_type.cc
<filename>index_tests/vars/deduce_auto_type.cc class Foo {}; void f() { auto x = new Foo(); auto* y = new Foo(); } /* OUTPUT: { "includes": [], "skipped_by_preprocessor": [], "types": [{ "id": 0, "usr": 15041163540773201510, "detailed_name": "Foo", "short_name": "Foo", ...
solnic/rom-relation
spec/unit/rom/relation/sort_by_spec.rb
# encoding: utf-8 require 'spec_helper' describe Relation, '#sort_by' do include_context 'Relation' share_examples_for 'sorted relation' do specify do should eql([jack, jade, jane, john]) end end context 'with a list of attribute names' do subject { relation.sort_by([:name]).to_a } it...
dirkmueller/Rocket.Chat
client/components/pageNotFound/PageNotFound.js
import { Button, ButtonGroup } from '@rocket.chat/fuselage'; import React from 'react'; import { useTranslation } from '../providers/TranslationProvider'; import { useWipeInitialPageLoading } from '../../hooks/useWipeInitialPageLoading'; import { ConnectionStatusAlert } from '../connectionStatus/ConnectionStatusAlert'...
builder08/enigma2-plugins
weatherplugin/src/plugin.py
<reponame>builder08/enigma2-plugins # -*- coding: utf-8 -*- # # WeatherPlugin E2 # # Coded by Dr.Best (c) 2012 # Support: www.dreambox-tools.info # E-Mail: <EMAIL> # # This plugin is open source but it is NOT free software. # # This plugin may only be distributed to and executed on hardware which # is licensed by Dream...
jathurdev/DiscordBot
Commands/poll.js
<reponame>jathurdev/DiscordBot exports.run = async (client,message,args,config,tools) => { const Discord = require(`discord.js`) if (!message.member.hasPermission('ADMINISTRATOR')) return message.channel.send('Must be Administrator to run this command') if(!args[0]) return message.channel.send(`Usage : $...
szkkteam/agrosys
frontend/app/farmApp/operation/task/models/task.js
import { Schema, many, fk, attr } from 'redux-orm'; import { PropTypes } from 'react'; import taskEntity from '../reducers/taskEntity' import Model from 'utils/Model' export class Task extends Model { static get fields() { return { id: attr(), title: attr(), //cropPlan:...
gajgeospatial/VTK-9.0.1
msvc/Rendering/OpenGL2/vtkPolyDataFS.cxx
#include "vtkPolyDataFS.h" const char *vtkPolyDataFS = "//VTK::System::Dec\n" "\n" "/*=========================================================================\n" "\n" " Program: Visualization Toolkit\n" " Module: vtkPolyDataFS.glsl\n" "\n" " Copyright (c) <NAME>, <NAME>, <NAME>\n" " All rights reserved.\n" "...
matsubara0507/semantic
test/fixtures/java/corpus/While.B.java
<reponame>matsubara0507/semantic class WhileDemo { void main(String[] args){ String theString = "cheese"; while (theString != "poop") { System.out.println("Count is: " + theString); } } }
0zzyx/bcnode-unpacked-8.1
src/rover/manager.es6
<filename>src/rover/manager.es6 /** * Copyright (c) 2017-present, blockcollider.org developers, All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ const { fork } = require('child_process') const { glob }...
sempmessaging/semp
sempd-core/src/main/java/org/sempmessaging/sempd/core/serverkeys/VerificationKeysFactory.java
<filename>sempd-core/src/main/java/org/sempmessaging/sempd/core/serverkeys/VerificationKeysFactory.java package org.sempmessaging.sempd.core.serverkeys; import org.sempmessaging.libsemp.arguments.Args; import org.sempmessaging.libsemp.key.PublicVerificationKey; import java.util.List; public class VerificationKeysFac...
BananaNo1/leetcode
src/simple/s501.java
package simple;public class s501 { }
Felorati/Thesis
code/Tests/Multiverse/multiverse-core/src/test/java/org/multiverse/stms/gamma/transactionalobjects/txnlong/GammaTxnLong_loadTest.java
<reponame>Felorati/Thesis package org.multiverse.stms.gamma.transactionalobjects.txnlong; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.multiverse.api.LockMode; import org.multiverse.stms.gamma.GammaConstants; import org.multiverse.s...
pikinder/nn-patterns
nn_patterns/explainer/gradient_based.py
# Begin: Python 2/3 compatibility header small # Get Python 3 functionality: from __future__ import\ absolute_import, print_function, division, unicode_literals from future.utils import raise_with_traceback, raise_from # catch exception with: except Exception as e from builtins import range, map, zip, filter from i...
AlaEddinBouker/medic
public/js/signup.js
(window.webpackJsonp = window.webpackJsonp || []).push([[25], { 341: function (e, r, n) { "use strict"; n.r(r); var o = n(0), t = n.n(o); n(6), n(12); !function () { function errorPlacementInput(e, r) { r.parent().is(".mda-form-control") ? e.insert...
jehovahsays/MMOSOCKETHTML5JSCHAT
examples/chat/node_modules/parsoid/lib/utils/jsutils.js
<filename>examples/chat/node_modules/parsoid/lib/utils/jsutils.js /* * This file contains Parsoid-independent JS helper functions. * Over time, more functions can be migrated out of various other files here. */ 'use strict'; require('../../core-upgrade.js'); var Promise = require('./promise.js'); var rejectMutatio...
codecodify/huaweiyun
openstack/bssintl/v1/bill/results.go
<reponame>codecodify/huaweiyun package bill import "github.com/gophercloud/gophercloud" type QueryPartnerMonthlyBillsResp struct { //Error code. ErrorCode string `json:"error_code"` //Error description ErrorMsg string `json:"error_msg"` //Billing cycle BillCycle string `json:"billCycle"` //Bill amount, whic...
Andrew-M-C/Linux-Linux_Programming_Template
history/150508_libevServer/AMCLibevTypes.h
/******************************************************************************* Copyright (C), 2011-2015, <NAME> File name: AMCLibevTypes.h Description: This file provide data structures for AMC libev tools. Author: <NAME> (<NAME>) History: 2015-05-08: File created ---------------------------...
xutao6936/archYBT
src/main/java/com/topcheer/ybt/system/service/ITopSequenceService.java
package com.topcheer.ybt.system.service; public interface ITopSequenceService { public String getSequenceByName(); }
byxorna/nycmesh-tool
generated/go/uisp/client/devices/get_devices_erouters_id_router_routes_responses.go
// Code generated by go-swagger; DO NOT EDIT. package devices // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/byxorna/nycmesh-tool...
jo3-l/cp-practice
src/main/cpp/ccc/2000/surfing.cpp
<filename>src/main/cpp/ccc/2000/surfing.cpp #include <bits/stdc++.h> using namespace std; unordered_map<string, vector<string>> adj; int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); int p; cin >> p; for (int i = 0; i < p; i++) { string cur; cin >> cur >> ws; string buf...
v2dev/active-client-sdk-objc
client-library/PFTargetRelationship.h
<gh_stars>0 // // PFTargetRelationship.h // Percero // // Created by <NAME> on 3/20/13. // // #import <Foundation/Foundation.h> #import "PFRelationship.h" @interface PFTargetRelationship : PFRelationship - initUnidirectionalWithInverseClassName:(NSString *) inverseClassName inversePropertyN...
yoonchunjoo/pinpoint
profiler/src/main/java/com/navercorp/pinpoint/profiler/modifier/db/mysql/MySQLPreparedStatementJDBC4Modifier.java
/* * Copyright 2014 NAVER Corp. * * 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 ...
amantewary/Scrawl
app/src/main/java/com/example/amantewary/scrawl/Handlers/UserClass.java
<gh_stars>1-10 package com.example.amantewary.scrawl.Handlers; import com.google.gson.annotations.SerializedName; public class UserClass { @SerializedName("password") String password; @SerializedName("email") String email; @SerializedName("username") String username; @SerializedName("er...
tefra/xsdata-w3c-tests
output/models/ms_data/regex/re_k16_xsd/__init__.py
from output.models.ms_data.regex.re_k16_xsd.re_k16 import ( Regex, Doc, ) __all__ = [ "Regex", "Doc", ]
nemith/cxgo
runtime/stdio/format_test.go
<gh_stars>100-1000 package stdio import ( "testing" "github.com/stretchr/testify/require" ) func TestFormat(t *testing.T) { cases := []struct { name string format string words []formatWord }{ { name: "plain", format: `some string here`, words: []formatWord{ {Str: "some string here"}, ...
nick87ds/MaterialeSerate
PercorsoDati/Lab3-4/etl/transform.py
<filename>PercorsoDati/Lab3-4/etl/transform.py<gh_stars>10-100 # Second phase of ETL: Transformations on the data import logging import pandas as pd from config import ETL_EXTRACTION_CONFIG from etl.utils import remove_dollar from etl.extract import import_data def tf_listings(filename: str, dataframe: pd.DataFrame...
jokva/cosmopolitan
libc/log/appendresourcereport.c
<filename>libc/log/appendresourcereport.c /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞══════════════════════════════════════════════════════════════════════════════╡ │ Copyright 2021 <NAME> ...
calvinkim27/test0620
midauth/web/user.py
# -*- coding: utf-8 -*- import datetime import urllib import urllib2 import json from flask import Blueprint from flask import request from flask import render_template, redirect, url_for, abort import flask.ext.login from flask.ext.login import login_required, current_user from flask.ext.oauthlib.client import OAuthE...
comroid-git/guardian-framework
src/restless/main/java/org/comroid/restless/endpoint/QueryParameter.java
<filename>src/restless/main/java/org/comroid/restless/endpoint/QueryParameter.java package org.comroid.restless.endpoint; import org.intellij.lang.annotations.Language; public final class QueryParameter { private QueryParameter() { throw new AbstractMethodError(); } @Language("RegExp") public...
amishasdf12/gsocStrace
syscall.c
/* * Copyright (c) 1991, 1992 <NAME> <<EMAIL>> * Copyright (c) 1993 <NAME> <<EMAIL>> * Copyright (c) 1993, 1994, 1995, 1996 <NAME> <<EMAIL>> * Copyright (c) 1996-1999 <NAME> <<EMAIL>> * Copyright (c) 1999 IBM Deutschland Entwicklung GmbH, IBM Corporation * Linux for s390 port by <NAME> * ...
rmcdouga/FitG
Java/FitG-BaseGame/src/com/rogers/rmcdouga/fitg/basegame/map/CapitalType.java
<reponame>rmcdouga/FitG<filename>Java/FitG-BaseGame/src/com/rogers/rmcdouga/fitg/basegame/map/CapitalType.java package com.rogers.rmcdouga.fitg.basegame.map; public enum CapitalType { None, Provincial, Throne; }
alexshepard/inaturalist
app/controllers/taxon_ranges_controller.rb
class TaxonRangesController < ApplicationController before_filter :curator_required def new @taxon_range = TaxonRange.new(:taxon_id => params[:taxon_id].to_i) end def edit @taxon_range = TaxonRange.find(params[:id]) end def create @taxon_range = TaxonRange.new(params[:taxon_range]) ...
rsarendus/eyebased-raytracer
eyebased-raytracer-demo/src/main/java/ee/ristoseene/raytracer/eyebased/demo/impl/OrientedVectorBuilder.java
package ee.ristoseene.raytracer.eyebased.demo.impl; import ee.ristoseene.raytracer.eyebased.projection.Orientation; import ee.ristoseene.vecmath.Vector3; import java.util.Objects; public class OrientedVectorBuilder { private final Orientation orientation; private double forwardMultiplier; private doubl...
UprootStaging/maven-OpenViewerFX-src
OpenViewerFX/src/main/java/org/jpedal/parser/text/HTMLTextUtils.java
/* * =========================================== * Java Pdf Extraction Decoding Access Library * =========================================== * * Project Info: http://www.idrsolutions.com * Help section for developers at http://www.idrsolutions.com/support/ * * (C) Copyright 1997-2015 IDRsolutions and Contribut...
iotile/iotile_cloud
server/apps/configattribute/tests/test_config_attribute_api.py
<filename>server/apps/configattribute/tests/test_config_attribute_api.py import json from django.contrib.auth import get_user_model from rest_framework import status from rest_framework.reverse import reverse from rest_framework.test import APITestCase from apps.datablock.models import DataBlock from apps.physicalde...
TimeExceed/aliyun-tablestore-cpp-sdk
src/tablestore/core/protocol/zero_copy_stream.cpp
<reponame>TimeExceed/aliyun-tablestore-cpp-sdk<filename>src/tablestore/core/protocol/zero_copy_stream.cpp /* BSD 3-Clause License Copyright (c) 2017, Alibaba Cloud All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions...