repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
osu-cass/working-waterfronts-api
working_waterfronts/working_waterfronts_api/urls.py
<reponame>osu-cass/working-waterfronts-api from django.conf.urls import patterns from django.conf.urls import url url_base = 'working_waterfronts.working_waterfronts_api' urlpatterns = patterns( '', url(r'^entry/hazards/new/?$', url_base + '.views.entry.hazards.hazard', name='new-hazard'), ...
jloehr/AdventOfCode
2017/Day17/Day17.cpp
// Day17.cpp : Defines the entry point for the console application. // #include "stdafx.h" constexpr size_t Input = 314; int main() { std::deque<size_t> List{ 0, 1 }; size_t Position = 1; for (auto i = 2; i < 2018; ++i) { Position = ((Position + Input) % List.size()) + 1; auto It = std::begin(List) + Positi...
mpicbg-scicomp/imagej-ops
src/main/java/net/imagej/ops/create/img/Imgs.java
package net.imagej.ops.create.img; import net.imglib2.Dimensions; import net.imglib2.Interval; import net.imglib2.img.Img; import net.imglib2.img.ImgFactory; import net.imglib2.img.ImgView; import net.imglib2.type.Type; import net.imglib2.view.Views; /** * Utility methods for working with {@link Img} objects. * *...
97999/SimpleReader
app/src/main/java/com/example/simplereader/siteparser/Binghuo.java
package com.example.simplereader.siteparser; import com.example.simplereader.sitebean.Book; import com.example.simplereader.sitebean.BookMsg; import com.example.simplereader.sitebean.Chapter; import com.example.simplereader.sitebean.UpdateMsg; import com.example.simplereader.util.HttpUtil; import com.example.simplere...
augerai/a2ml
a2ml/api/auger/impl/cloud/dataset.py
<gh_stars>10-100 import os import time import json import requests import shortuuid import urllib.parse import urllib.request import xml.etree.ElementTree as ElementTree from a2ml.api.utils.dataframe import DataFrame from .cluster import AugerClusterApi from .project_file import AugerProjectFileApi from ..exceptions i...
lburgazzoli/apache-aries
blueprint/plugin/blueprint-maven-plugin-annotation/src/main/java/org/apache/aries/blueprint/annotation/config/ConfigProperty.java
<reponame>lburgazzoli/apache-aries package org.apache.aries.blueprint.annotation.config; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Annotate fields with this to inject configuration like: * <c...
nerds-odd-e/doughnut
frontend/tests/notes/NoteWithChildrenCards.spec.js
<filename>frontend/tests/notes/NoteWithChildrenCards.spec.js /** * @jest-environment jsdom */ import { screen } from "@testing-library/vue"; import NoteCardsView from "@/components/notes/views/NoteCardsView.vue"; import store from "../../src/store/index.js"; import { renderWithStoreAndMockRoute } from "../helpers"; i...
GodieSillasca/Java
PatronesDisenio/Decorator/ToppingDecorator.java
<reponame>GodieSillasca/Java<gh_stars>0 package decorator.examples.pizzas; public abstract class ToppingDecorator implements Pizza { protected Pizza temporalPizza; public ToppingDecorator(Pizza temporalPizza) { this.temporalPizza = temporalPizza; } @Override public String getDescription(...
qrsforever/workspace
android/learn/binder/l2/AudioBinder/AudioClient/src/com/hybroad/client/QAudioManager.java
<reponame>qrsforever/workspace package com.hybroad.client; import android.os.IBinder; import android.os.ServiceManager; import com.hybroad.aidl.IQAudioService; public class QAudioManager { final static private String AUDIO_SERVICE_NAME = "Qaudio_service"; private static IQAudioService sAudioservice = null; ...
FernandoWL/testcafe-ci-demo
node_modules/testcafe-hammerhead/lib/processing/script/transformers/assignment-destructuring.js
<filename>node_modules/testcafe-hammerhead/lib/processing/script/transformers/assignment-destructuring.js<gh_stars>0 "use strict"; exports.__esModule = true; exports.default = void 0; var _nodeBuilder = require("../node-builder"); var _esotopeHammerhead = require("esotope-hammerhead"); var _destructuring = _interop...
gaol/jaxb-ri
jaxb-ri/runtime/impl/src/main/java/com/sun/xml/bind/v2/runtime/property/ArrayElementNodeProperty.java
<gh_stars>1-10 /* * Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Distribution License v. 1.0, which is available at * http://www.eclipse.org/org/documents/edl-v10.php. * * SPDX-Licen...
tqrg-bot/passenger
ext/common/agents/TempDirToucher.c
<filename>ext/common/agents/TempDirToucher.c<gh_stars>0 /* * Phusion Passenger - https://www.phusionpassenger.com/ * Copyright (c) 2013 Phusion * * "Phusion Passenger" is a trademark of <NAME> & <NAME>. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and a...
shuchang01/Coding-iPad
CodingForiPad/Request/COTopicRequest.h
// // COTopicRequest.h // CodingModels // // Created by sunguanglei on 15/6/3. // Copyright (c) 2015年 sgl. All rights reserved. // #import "CODataRequest.h" @interface COTopicRequest : COPageRequest //@property (nonatomic, copy) COUriParameters NSString *globalKey; //@property (nonatomic, copy) COUriParameters N...
atlaskerr/titan
http/oci/blob/delete_handler_option.go
package blob import ( "errors" "github.com/atlaskerr/titan/metrics" ) // DeleteHandlerOption applies a parameter to a DeleteHandler. type DeleteHandlerOption func(*DeleteHandler) // DeleteOptionMetrics sets the http.Handler to use for the metrics // endpoint. func DeleteOptionMetrics(collector *metrics.Collector)...
maelvls/ocamlyices2
ext/yices/tests/unit/test_smt_parser.c
/* * The Yices SMT Solver. Copyright 2014 SRI International. * * This program may only be used subject to the noncommercial end user * license agreement which is downloadable along with this program. */ #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <inttypes.h> #include "api/yices_globals...
konnigud/RuFanWeb
app/is/rufan/team/data/VenueRowMapper.java
<gh_stars>0 package is.rufan.team.data; import is.rufan.team.domain.Venue; import java.sql.ResultSet; import java.sql.SQLException; import org.springframework.jdbc.core.RowMapper; public class VenueRowMapper implements RowMapper<Venue> { public Venue mapRow(ResultSet rs, int rowNum) throws SQLException { Ve...
situx/kiwi-postgis
src/org/openrdf/query/algebra/evaluation/function/postgis/geometry/attribute/IsCollection.java
package org.openrdf.query.algebra.evaluation.function.postgis.geometry.attribute; import org.openrdf.model.vocabulary.POSTGIS; import org.locationtech.jts.geom.Geometry; import org.openrdf.query.algebra.evaluation.function.postgis.geometry.base.GeometricBinaryAttributeFunction; public class IsCollection exten...
kashiish/vespa
fbench/src/grpcclient/third_party/googleapis/gens/google/identity/accesscontextmanager/v1/access_level.pb.h
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/identity/accesscontextmanager/v1/access_level.proto #ifndef PROTOBUF_INCLUDED_google_2fidentity_2faccesscontextmanager_2fv1_2faccess_5flevel_2eproto #define PROTOBUF_INCLUDED_google_2fidentity_2faccesscontextmanager_2fv1_2faccess_5flevel_2ep...
djsegal/julia_packages
test/models/user_test.rb
<filename>test/models/user_test.rb # == Schema Information # # Table name: users # # id :bigint not null, primary key # name :string # packages_count :integer # slug :string # created_at :datetime not null # updated_at :datetime not null # # Indexe...
nckblu/muchnews
src/selectors/articleSources/index.js
<gh_stars>1-10 import articleSources from "./articleSources"; export default articleSources;
UKGovernmentBEIS/beis-psd
db/migrate/20210210122430_migrate_corrective_action_added_audit_record.rb
class MigrateCorrectiveActionAddedAuditRecord < ActiveRecord::Migration[6.1] def change safety_assured do reversible do |dir| dir.up { migrate_legacy_audit_record } end end end private def migrate_legacy_audit_record unmigrated_audits = [] AuditActivity::CorrectiveAction::Add...
tranch/assistant
internal/app/workflow/rpcclient/message.go
package rpcclient import ( "github.com/pkg/errors" "github.com/tsundata/assistant/api/pb" "github.com/tsundata/assistant/internal/pkg/app" "github.com/tsundata/assistant/internal/pkg/transport/rpc" "time" ) func NewMessageClient(client *rpc.Client) (pb.MessageClient, error) { conn, err := client.Dial(app.Messag...
globant-scalable-platforms/bootcamp-java-spring-may-2019
Week2/SantiagoMedina/game/src/main/java/com/bootcamp/springboot/game/configuration/BeansConfiguration.java
package com.bootcamp.springboot.game.configuration; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Scope; import com.bootcamp.springboot.game.domain.Score; @Configuration public class BeansConfiguration { ...
vazra/envoy
source/common/grpc/common.cc
#include "common/grpc/common.h" #include <atomic> #include <cstdint> #include <cstring> #include <string> #include "common/buffer/buffer_impl.h" #include "common/buffer/zero_copy_input_stream_impl.h" #include "common/common/assert.h" #include "common/common/base64.h" #include "common/common/empty_string.h" #include "...
nex3/nex3-s-blog-engine
app/helpers/posts_helper.rb
<filename>app/helpers/posts_helper.rb<gh_stars>1-10 module PostsHelper def prev_link_text "&larr; #{h(@post.prev.title)}" end def next_link_text "#{h(@post.next.title)} &rarr;" end def delete_link link_to 'Delete', post_path(@post), :method => :delete, :confirm => "Really delete #{@post.title}?"...
initforthe/spina-jobs
app/controllers/spina/jobs/job_roles_controller.rb
module Spina module Jobs class JobRolesController < ::Spina::ApplicationController before_action :set_page def index @job_roles = Spina::Jobs::JobRole.available.live.order(published_at: :desc).page(params[:page]) respond_to do |format| format.atom format.html { re...
gbadner/infinispan
server/hotrod/src/main/java/org/infinispan/server/hotrod/counter/CounterCompareAndSetDecodeContext.java
<reponame>gbadner/infinispan package org.infinispan.server.hotrod.counter; import java.util.Optional; import org.infinispan.server.hotrod.HotRodOperation; import org.infinispan.server.hotrod.logging.Log; import org.infinispan.server.hotrod.transport.ExtendedByteBuf; import org.infinispan.util.logging.LogFactory; imp...
project-kotinos/skyarch-networks___skyhopper
app/models/s3.rb
# # Copyright (c) 2013-2017 SKYARCH NETWORKS INC. # # This software is released under the MIT License. # # http://opensource.org/licenses/mit-license.php # # XXX: キャッシュをしているため、変更が生じた場合はインスタンスを作りなおさなければならない。 # もしくは、キャッシュをしている変数をクリアする。 # @website # @web_conf_opt class S3 < SimpleDelegator def initialize...
jaxfrank/Voxel-Based-Game-Engine-Java
Workspace/3DGameEngine/src/com/base/engine/rendering/util/RenderUtil.java
<gh_stars>1-10 package com.base.engine.rendering.util; import static org.lwjgl.opengl.GL11.*; import static org.lwjgl.opengl.GL32.GL_DEPTH_CLAMP; import com.base.engine.math.Vector3f; public class RenderUtil { public static void clearScreen() { //TODO: Stencil Buffer glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFF...
martin-jordan/service-manual-publisher
app/models/user.rb
class User < ApplicationRecord include GDS::SSO::User has_many :editions, foreign_key: :author_id def self.authors User.joins(:editions).distinct end end
liongames6000/OpenModsLib
src/main/java/openmods/inventory/ItemMover.java
<reponame>liongames6000/OpenModsLib<gh_stars>10-100 package openmods.inventory; import com.google.common.collect.Lists; import java.util.Collection; import java.util.Collections; import java.util.List; import java.util.Set; import net.minecraft.item.ItemStack; import net.minecraft.util.EnumFacing; import net.minecraft...
matthemsteger/df-tools
src/api/raws/index.js
<reponame>matthemsteger/df-tools<gh_stars>1-10 export * from './rawFiles'; export * from './creature'; export {default as rawFiles} from './rawFiles'; export {default as rawFileTypes} from './types'; export {default as parseRawFile} from './parse';
alljoyn/compliance-tests
cpp/components/validation-ctt/HEAD/ctt_testcases/ECDHEEcdsaStore.cpp
<gh_stars>1-10 /****************************************************************************** * Copyright (c) Open Connectivity Foundation (OCF), AllJoyn Open Source * Project (AJOSP) Contributors and others. * * SPDX-License-Identifier: Apache-2.0 * * All rights reserved. This program and the acc...
Teleburna/jquery-mobile
js/widgets/loader.backcompat.js
/*! * jQuery Mobile Loader Backcompat @VERSION * http://jquerymobile.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ //>>label: Loading Message Backcompat //>>group: Widgets //>>description: The backwards compatible portions of the load...
skoltech-nlp/coqas
my_functions.py
<filename>my_functions.py<gh_stars>1-10 def do_sum(number1, number2): return number1 + number2 import os.path import torch import sys import spacy import re # for extractor class sys.path.append('/home/vika/targer') sys.path.append('/notebook/cqas') sys.path.append('/notebook/bert_sequence_sayankotor/src') # for...
fburato/highwheel-modules
parser/src/test/java/com/example/annotated/AnnotatedAtClassLevel.java
<gh_stars>1-10 package com.example.annotated; @AnAnnotation public class AnnotatedAtClassLevel { }
bfortuner/higgins
higgins/nlp/openai/messaging_completions.py
import os import time from typing import Any import openai from higgins.datasets import messaging_datasets from higgins.nlp import nlp_utils from . import caching from . import completion_utils openai.api_key = os.getenv("OPENAI_API_KEY") def send_message_completion(cmd: str, engine="davinci", cache: Any = None)...
dns/Cafu
Libs/SceneGraph/TerrainNode.cpp
<gh_stars>1-10 /* Cafu Engine, http://www.cafu.de/ Copyright (c) <NAME> and other contributors. This project is licensed under the terms of the MIT license. */ #include "TerrainNode.hpp" #include "_aux.hpp" #include "MaterialSystem/MapComposition.hpp" #include "MaterialSystem/MaterialManager.hpp" #include "MaterialSys...
situx/kiwi-postgis
src/org/openrdf/query/algebra/evaluation/function/postgis/util/literals/LiteralType.java
<filename>src/org/openrdf/query/algebra/evaluation/function/postgis/util/literals/LiteralType.java package org.openrdf.query.algebra.evaluation.function.postgis.util.literals; public interface LiteralType { }
tetsutan/bromo
lib/bromo/utils/logger.rb
<reponame>tetsutan/bromo require 'logger' module Bromo module Utils module Logger def self.logger @@logger ||= ::Logger.new(STDOUT).tap do |l| l.level = ::Logger::DEBUG if Env.development? end end def logger self.class.logger end end end end
taozhiheng/MyRepository
Wifi/app/src/main/java/com/example/taozhiheng/wifi/MainActivity.java
<filename>Wifi/app/src/main/java/com/example/taozhiheng/wifi/MainActivity.java package com.example.taozhiheng.wifi; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.net.NetworkInfo; import android.net.wifi.p2p.W...
BenHuddleston/kv_engine
daemon/mcbpdestroybuckettask.h
<filename>daemon/mcbpdestroybuckettask.h /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2016-Present Couchbase, Inc. * * Use of this software is governed by the Business Source License included * in the file licenses/BSL-Couchbase.txt. As of the Change Date s...
CPU-Code/java
netty/src/main/java/com/cpucode/netty/io/bin/tomcat/http/CpServlet.java
<gh_stars>1-10 package com.cpucode.netty.io.bin.tomcat.http; /** * @author : cpucode * @date : 2021/8/12 13:47 * @github : https://github.com/CPU-Code * @csdn : https://blog.csdn.net/qq_44226094 */ public abstract class CpServlet { public void service(CpRequest request, CpResponse response) throws Exception{ ...
eniac/parallel-inet-omnet
src/sim/cfsm.cc
<gh_stars>10-100 //======================================================================== // CFSM.CC - part of // // OMNeT++/OMNEST // Discrete System Simulation in C++ // // Member functions of // cFSM : Finite State Machine state // // Author: <NAME> // //=======================...
cao2068959/anubis
src/main/java/org/chy/anubis/exception/JavaParserException.java
<reponame>cao2068959/anubis package org.chy.anubis.exception; import com.github.javaparser.Problem; import org.chy.anubis.entity.FileInfo; import org.chy.anubis.utils.StringUtils; import java.util.List; public class JavaParserException extends RuntimeException { public JavaParserException(String message) { ...
CartoDB/cartodb-common
lib/carto/common/action_mailer_log_subscriber.rb
require 'action_mailer/log_subscriber' ## # Extends ActionMailer::LogSubscriber to improve JSON logging capabilities # Original source: https://github.com/rails/rails/blob/4-2-stable/actionmailer/lib/action_mailer/log_subscriber.rb # module Carto module Common class ActionMailerLogSubscriber < ActionMailer::LogS...
trycatchkamal/akka-http
akka-http/src/main/scala/akka/http/scaladsl/marshalling/ToResponseMarshallable.scala
/* * Copyright (C) 2009-2019 Lightbend Inc. <https://www.lightbend.com> */ package akka.http.scaladsl.marshalling import scala.concurrent.{ Future, ExecutionContext } import akka.http.scaladsl.model._ /** Something that can later be marshalled into a response */ trait ToResponseMarshallable { type T def value:...
htjia/vueYrProject
src/directive/only_number/index.js
import onlyNumber from './onlyNumber' const install = Vue => { Vue.directive('only-number', onlyNumber) } /* Vue.use( plugin ) 安装 Vue.js 插件。如果插件是一个对象,必须提供 install 方法。 如果插件是一个函数,它会被作为 install 方法。install 方法调用时,会将 Vue 作为参数传入。 该方法需要在调用 new Vue() 之前被调用。 当 install 方法被同一个插件多次调用,插件将只会被安装一次。 ----------------------...
joestrouth1/tinkerpop
gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/ProjectTest.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 ...
JeraKrs/ACM
codes/UVA/01001-01999/uva1425.cpp
<reponame>JeraKrs/ACM #include <cstdio> #include <cstring> #include <algorithm> using namespace std; const int N = 55; const double eps = 1e-9; struct point { double x, y; }p[N]; int n, dp[N][N]; bool cmp (const point& a, const point& b) { return a.x < b.x; } bool judge (int a, int b, double d, int key) { for ...
rmrsk/Chombo-3.3
lib/test/BoxTools/stdIVSThreadTest.cpp
<filename>lib/test/BoxTools/stdIVSThreadTest.cpp #ifdef CH_LANG_CC /* * _______ __ * / ___/ / ___ __ _ / / ___ * / /__/ _ \/ _ \/ V \/ _ \/ _ \ * \___/_//_/\___/_/_/_/_.__/\___/ * Please refer to Copyright.txt, in Chombo's root directory. */ #endif #include "REAL.H" #include "...
duke-office-research-informatics/dracs
__tests__/buttons/base/baseTest.js
<reponame>duke-office-research-informatics/dracs import React from "react"; import { mountWithTheme } from "../../../config/scUtils.js"; import { axe } from "jest-axe"; import { Button, IconMenu, theme } from "../../../lib/dracs.es.js"; const mockFn = jest.fn(); describe("base Button", () => { it("matches snapshot"...
melf-xyzh/gin-start
menu/model/menu.go
<gh_stars>10-100 /** * @Time :2022/3/6 18:24 * @Author :MELF晓宇 * @Email :<EMAIL> * @FileName:menu.go * @Project :gin-start * @Blog :https://blog.csdn.net/qq_29537269 * @Guide :https://guide.melf.space * @Information: * */ package model import "github.com/melf-xyzh/gin-start/global" type Menu str...
SethTisue/http4s
core/src/main/scala/org/http4s/package.scala
<reponame>SethTisue/http4s<gh_stars>0 package org import scalaz.{Kleisli, EitherT, \/} import scalaz.concurrent.Task import scalaz.stream.Process import org.http4s.util.CaseInsensitiveString import scodec.bits.ByteVector package object http4s { // scalastyle:ignore type AuthScheme = CaseInsensitiveString type ...
Jorch72/PerFabricaAdAstra
src/main/java/org/pfaa/chemica/Chemica.java
package org.pfaa.chemica; import org.apache.logging.log4j.Logger; import org.pfaa.chemica.integration.ModIntegration; import org.pfaa.core.registration.Registrant; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.SidedProx...
c4s4/neon
neon/task/assert.go
<reponame>c4s4/neon package task import ( "fmt" "github.com/c4s4/neon/neon/build" "reflect" ) func init() { build.AddTask(build.TaskDesc{ Name: "assert", Func: assert, Args: reflect.TypeOf(assertArgs{}), Help: `Make an assertion and fail if assertion is false. Arguments: - assert: the assertion to perfo...
EnderNightLord-ChromeBook/fuchsia-pine64-pinephone
src/graphics/display/drivers/amlogic-display/osd.h
<reponame>EnderNightLord-ChromeBook/fuchsia-pine64-pinephone // Copyright 2018 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SRC_GRAPHICS_DISPLAY_DRIVERS_AMLOGIC_DISPLAY_OSD_H_ #define SRC_GRAPHICS_DISPLAY_DRIVE...
stephenlawrence/gravity
web/src/app/modules/settings/flux/tls/store.js
/* Copyright 2018 Gravitational, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
ckamtsikis/cmssw
DataFormats/TrackerRecHit2D/src/FastTrackerRecHit.cc
#include "DataFormats/TrackerRecHit2D/interface/FastTrackerRecHit.h" #include "DataFormats/TrackerRecHit2D/interface/OmniClusterRef.h" namespace { const OmniClusterRef nullRef; } OmniClusterRef const& FastTrackerRecHit::firstClusterRef() const { return nullRef; }
JaneMandy/CS
org/apache/xalan/client/XSLTProcessorApplet.java
package org.apache.xalan.client; import java.applet.Applet; import java.awt.Graphics; import java.io.IOException; import java.io.PrintWriter; import java.io.StringReader; import java.io.StringWriter; import java.net.MalformedURLException; import java.net.URL; import java.util.Enumeration; import java.util.Hashtable; i...
joseluisbn/PythonLearningProject
src/inheritance.py
class Animal: # Attributes def __init__(self, name, specie, genre): # __init__ is the constructor self.name = name self.specie = specie self.genre = genre # Methods def eat(self): print(f"is eating") def sleep(self): print("Zzzzzzzz") class Bird(Animal): ...
gmai2006/fhir
src/main/java/org/fhir/dao/MedicationAdministrationDaoImpl.java
<filename>src/main/java/org/fhir/dao/MedicationAdministrationDaoImpl.java /* * #%L * FHIR Implementation * %% * Copyright (C) 2018 DataScience 9 LLC * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy o...
shanemcd/coreos-assembler
tools/vendor/github.com/minio/console/models/object_legal_hold_status.go
<reponame>shanemcd/coreos-assembler // Code generated by go-swagger; DO NOT EDIT. // This file is part of MinIO Console Server // Copyright (c) 2021 MinIO, Inc. // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by // t...
docks-app/docks
lib/docks/tags/pattern_tag.rb
<reponame>docks-app/docks<gh_stars>0 module Docks module Tags class Pattern < Base def initialize @name = :pattern @synonyms = [:page] @multiline = false end def setup_post_processors after_each_pattern(:middle) do |pattern| name = pattern.name ...
projectPiki/pikmin2
src/JSystem/JSupport/JSUList.cpp
#include "types.h" #include "JSystem/JSupport/JSUList.h" /* Generated from dpostproc */ /* * Decompilation of this file is derived from https://github.com/shibbo/Petari */ /* * __ct__10JSUPtrLinkFPv * --INFO-- * Address: 800267B8 * Size: 000018 */ JSUPtrLink::JSUPtrLink(void* pData) { m_list = nullptr;...
mdblp/platform
log/json/logger_test.go
package json_test import ( "io/ioutil" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "github.com/tidepool-org/platform/log" logJson "github.com/tidepool-org/platform/log/json" ) var _ = Describe("Logger", func() { Context("NewLogger", func() { It("returns an error if writer is missing", func() { ...
holyketzer/ctci_v6
ruby/spec/08_recursion_and_dp/13_stack_of_boxes.rb
<filename>ruby/spec/08_recursion_and_dp/13_stack_of_boxes.rb class Box attr_reader :w, :d, :h def initialize(w:, d:, h:) @w = w @d = d @h = h end def sizes [w, d, h] end def can_be_on?(top) w < top.w && d < top.d && h < top.h end end def tallest_stack(boxes, available = boxes.map {...
MBrassey/xscreensaver_BlueMatrix
hacks/glx/handsy.c
<filename>hacks/glx/handsy.c /* handsy, Copyright (c) 2018 <NAME> <<EMAIL>> * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that * the above copyright notice appear in all copies and that both that * copyright n...
equinor/radix-api
api/applications/models/application_match.go
<reponame>equinor/radix-api package models import ( "strings" v1 "github.com/equinor/radix-operator/pkg/apis/radix/v1" ) // ApplicationMatch defines a match function that takes a RadixRegistration as parameter and returns a bool indicating if the RR matched the filter or not type ApplicationMatch func(rr *v1.Radix...
net-lisias-ksp/Principia
physics/mock_dynamic_frame.hpp
<gh_stars>100-1000  #pragma once #include "geometry/grassmann.hpp" #include "geometry/named_quantities.hpp" #include "gmock/gmock.h" #include "physics/dynamic_frame.hpp" #include "physics/rigid_motion.hpp" namespace principia { namespace physics { namespace internal_dynamic_frame { template<typename InertialFrame, ...
Andrea-MariaDB-2/WindowsAppSDK
dev/MRTCore/mrt/mrm/mrmmin/BlobResult.h
<filename>dev/MRTCore/mrt/mrm/mrmmin/BlobResult.h // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. #pragma once HRESULT DefBlobResult_NewRef(_In_reads_bytes_opt_(cbRef) const void* pRef, _In_ size_t cbRef, _Ou...
royalfx/ae_snippets
src/ae/ui/as_uiPrefsApply.js
<reponame>royalfx/ae_snippets // Copyright (c) 2021 <NAME> // This code is licensed under MIT license // See also http://www.opensource.org/licenses/mit-license.php /** * @version 1.0.0 * @date Jul 22 2019 * * @description Apply ui elements state * @param {Window} windowObj * @param {obkect} dataPrefs */ func...
tbc3697/dev-toolkit
ratelimit/src/main/java/pub/tbc/toolkit/ratelimit/TokenBucketRateLimiter.java
package pub.tbc.toolkit.ratelimit; /** * @Author tbc by 2021/1/7 13:29 */ public abstract class TokenBucketRateLimiter implements RateLimiter { /** * token 容量 */ private double maxToken; private double stableIntervalMicros; public static void main(String[] args) { // com.google.co...
vanillaes/absurdum
src/strings/camelCase.spec.js
import test from 'tape' import { camelCase } from '@vanillaes/absurdum/strings' test('strings.camelCase(string) - should return the string formatted to camelCase', t => { const expect = 'helpMeWithThis' const actual = camelCase('help me with this') t.equal(Object.prototype.toString.call(actual), '[object String...
alexshepard/inaturalist
spec/lib/denormalizer_spec.rb
require File.expand_path("../../spec_helper", __FILE__) describe 'Denormalizer' do before(:all) do 6.times { Taxon.make! } end after(:all) do Taxon.connection.execute('TRUNCATE TABLE taxa RESTART IDENTITY') end it "should iterate through taxa in batches" do expect { |b| Denormalizer::eac...
xtremespb/zoia
src/modules/backup/web/index.js
<reponame>xtremespb/zoia import admin from "./admin"; import download from "./download"; export default fastify => { fastify.get(fastify.zoiaModulesConfig["backup"].routes.backup, admin()); fastify.get(`/:language${fastify.zoiaModulesConfig["backup"].routes.backup}`, admin()); fastify.get(fastify.zoiaModul...
Zardosh/code-forces-solutions
Python/RobotProgram.py
t = int(input()) for _ in range(t): x, y = map(int, input().split()) if abs(x - y) > 1: moves = x + y + abs(x - y) - 1 else: moves = x + y print(moves)
EOL/publishing
app/models/data_integrity_check/has_pair_uri_detailed_report.rb
<gh_stars>10-100 module DataIntegrityCheck::HasPairUriDetailedReport include DataIntegrityCheck::HasDetailedReport def detailed_report_query <<~CYPHER #{query_common} RETURN t1.uri AS uri1, t2.uri AS uri2 CYPHER end end
dongdong1018645785/touch-air-mall
mall-product/src/main/java/com/touch/air/mall/product/dao/AttrGroupDao.java
<reponame>dongdong1018645785/touch-air-mall<filename>mall-product/src/main/java/com/touch/air/mall/product/dao/AttrGroupDao.java package com.touch.air.mall.product.dao; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.touch.air.mall.product.entity.AttrGroupEntity; import com.touch.air.mall.product.vo...
embl-cba/fiji-plugin-platyBrowser
src/test/java/projects/OpenRemoteCovidScreen.java
<filename>src/test/java/projects/OpenRemoteCovidScreen.java package projects; import net.imagej.ImageJ; import org.embl.mobie.viewer.MoBIE; import org.embl.mobie.viewer.MoBIESettings; import java.io.IOException; import org.embl.mobie.io.ImageDataFormat; public class OpenRemoteCovidScreen { public static void main( ...
msgilligan/groovy-core
src/main/org/codehaus/groovy/ast/AstToTextHelper.java
<filename>src/main/org/codehaus/groovy/ast/AstToTextHelper.java<gh_stars>100-1000 /** * 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 lice...
isabella232/axis-axis2-java-sandesha
modules/core/src/main/java/org/apache/sandesha2/storage/inmemory/InMemorySenderBeanMgr.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 ma...
zsjdxc251/lesson-chapter
lesson-concurrent/chapter-concurrent-api/chapter-concurrent-api-sample/src/main/java/com/lesson/concurrent/api/sample/ScheduledThreadPoolExecutorSample.java
package com.lesson.concurrent.api.sample; import java.util.concurrent.Executors; import java.util.concurrent.RejectedExecutionException; import java.util.concurrent.RejectedExecutionHandler; import java.util.concurrent.RunnableFuture; import java.util.concurrent.RunnableScheduledFuture; import java.util.concurrent.Sch...
TheAmeliaDeWitt/YAHoneyPot
modules/MarchCommand/src/main/java/com/marchnetworks/device_ws/Switch.java
package com.marchnetworks.device_ws; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; @XmlAccessorType( XmlAccessType.FIELD ) @XmlType( name = "Switch", propOrder = {"id", "type", "s...
Team-Null-Revature/Icebox
src/main/java/com/revature/_1811_nov27_wvu/icebox/controller/LoginController.java
<gh_stars>0 package com.revature._1811_nov27_wvu.icebox.controller; import javax.servlet.http.HttpSession; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMa...
Oneledger/protocol
scripts/utilities/node_account.py
<filename>scripts/utilities/node_account.py from sdkcom import fullnode, addValidatorWalletAccounts if __name__ == "__main__": account = addValidatorWalletAccounts(fullnode) print account
privosoft/periscope-dsl
dist/es2015/authorization/permissions-manager.js
<filename>dist/es2015/authorization/permissions-manager.js import * as _ from 'lodash'; import { Query } from './../data/query'; import { PermissionsManagerConfiguration } from './permissions-manager-configuration'; export let PermissionsManager = class PermissionsManager { constructor() { this.isConfigured = fa...
sidecar-io/sidecar-arduino-sdk
doc/html/_m_d5_8h.js
var _m_d5_8h = [ [ "MD5", "classqsense_1_1hash_1_1_m_d5.xhtml", "classqsense_1_1hash_1_1_m_d5" ], [ "MD5_HASH_LENGTH", "_m_d5_8h.xhtml#a782c3666ed879b60b7d06c86b8f5fbb5", null ] ];
komiga/hord
src/Hord/LockFile.cpp
/** @copyright MIT license; see @ref index or the accompanying LICENSE file. */ #include <Hord/LockFile.hpp> #include <cstdlib> #include <cstdio> #include <utility> #include <unistd.h> #include <sys/file.h> #include <Hord/detail/gr_ceformat.hpp> namespace Hord { // class LockFile implementation #define HORD_SCOP...
camsys/oneclick-core
spec/serializers/api/v2/feedback_serializer_spec.rb
<filename>spec/serializers/api/v2/feedback_serializer_spec.rb require 'rails_helper' RSpec.describe Api::V2::FeedbackSerializer, type: :serializer do let(:feedback) { create(:service_feedback, :acknowledged) } let(:serialization) { Api::V2::FeedbackSerializer.new(feedback).to_h } let(:basic_attributes) { ...
don-reba/peoples-note
src/Test/src/TestUserLoader.cpp
<reponame>don-reba/peoples-note<filename>src/Test/src/TestUserLoader.cpp<gh_stars>0 #include "stdafx.h" #include "UserLoader.h" #include "MockLastUserModel.h" #include "MockNoteListView.h" #include "MockCredentialsModel.h" using namespace boost; using namespace std; struct UserLoaderFixture { MockCredenti...
ewilde/terraform-provider-form3
client/associations/get_lhv_responses.go
// Code generated by go-swagger; DO NOT EDIT. package associations // 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/form3tech-oss/t...
danielil/Data-Structures
Sources/Includes/trees/tbst.cpp
/** * @author <NAME> * * This file contains the methods associated with the following classes: * ThreadedBinarySearchTree : class implementing the actual TBST * TreeIterator : class implementing the TBST iterator */ #include <algorithm> #include <iostream> #include "tbst.hpp" namesp...
joelnewcom/embeddedOracleKv
src/main/resources/oracle-db/kv-18.1.19/src/oracle/kv/impl/admin/plan/NetworkRestorePlan.java
/*- * Copyright (C) 2011, 2018 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 see the LICENS...
breezechen/zevent
libbt/btpd/content.c
#include "btpd.h" #include <openssl/sha.h> #include <stream.h> #include <io.h> struct content { enum { CM_INACTIVE, CM_STARTING, CM_ACTIVE } state; int error; uint32_t npieces_got; fpos_t ncontent_bytes; size_t bppbf; // bytes per piece block field uint8_t *piece_field; uint8_t *block...
uxpin-merge/bloom
packages/core/src/utils/propTypeValidations/childrenOf.js
<reponame>uxpin-merge/bloom<gh_stars>10-100 import PropTypes from 'prop-types'; /** * http://stackoverflow.com/a/39457422/6700793 */ const childrenOf = (...types) => { const fieldType = PropTypes.shape({ type: PropTypes.oneOf(types), }); return PropTypes.oneOfType([ fieldType, PropTypes.arrayOf(fi...
chrishoen/Dev_CCLib
LFCCLib/ccBlockPoolLFFreeList.cpp
/*============================================================================== Description: ==============================================================================*/ //****************************************************************************** //*************************************************************...
antholuo/Blob_Traffic
Blob_Lib/Include/glm/detail/_noise.hpp
<filename>Blob_Lib/Include/glm/detail/_noise.hpp version https://git-lfs.github.com/spec/v1 oid sha256:7ee81536e422dca32cef43c0326a0963f485432427a6460c05bc4f8b32a2fd7a size 2360
YoshimitsuMatsutaIe/rmp_test
misc/baxter/cpp_original/include/jry_W0.hpp
<filename>misc/baxter/cpp_original/include/jry_W0.hpp /****************************************************************************** * Code generated with sympy 1.9 * * * * See http:/...
linuxfood/pyobjc-framework-Cocoa-test
PyObjCTest/test_nsnotification.py
import Foundation from PyObjCTools.TestSupport import TestCase, min_os_level class TestNSNotification(TestCase): def testMethods(self): self.assertArgIsSEL( Foundation.NSNotificationCenter.addObserver_selector_name_object_, 1, b"v@:@", ) @min_os_level("10.6...