repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
htools/htools
src/main/java/io/github/htools/hbase/TableF.java
package io.github.htools.hbase; import io.github.htools.lib.Log; import org.apache.hadoop.conf.Configuration; import java.io.IOException; /** * * @author Jeroen */ public abstract class TableF extends Table { public static Log log = new Log(TableF.class); public TableF(Configuration conf, String tablenam...
sanarea/pdfium
xfa/fxfa/cxfa_readynodeiterator.h
// Copyright 2017 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #ifndef XFA_FXFA_CXFA_READYNODEITERATOR_H_ #define XFA_FXFA_CXFA_READYNODEITER...
agpartha/interview
src/com/iv/multiarray/MatrixCalculation.java
<gh_stars>0 package com.iv.multiarray; public class MatrixCalculation { private int r = 0; public String[][] crossMultiply(String[][] str){ int cols = 1; for(int i=1; i < str.length; i++){ cols = cols*str[i].length; } String[][] result = new String[str...
trentford/iem
htdocs/plotting/auto/scripts100/p174.py
"""comparison""" import datetime from pandas.io.sql import read_sql import matplotlib.dates as mdates from pyiem.network import Table as NetworkTable from pyiem.plot.use_agg import plt from pyiem.util import get_autoplot_context, get_dbconn def get_description(): """ Return a dict describing how to call this plo...
WizardIke/SpectralEngine
DX12Engine/AsynchronousFileManager.h
#pragma once #include <unordered_map> #include <cstdint> #include "File.h" #include "IOCompletionQueue.h" #include "SinglyLinked.h" #include <Windows.h> #undef min #undef max class AsynchronousFileManager { private: struct ResourceId { unsigned long long start; unsigned long long end; bool operator==(const Re...
kinshuk4/leetcode-solutions
java/leetcode/src/main/java/com/vaani/leetcode/string/CheckIfTwoStringArraysAreEquivalent.java
<filename>java/leetcode/src/main/java/com/vaani/leetcode/string/CheckIfTwoStringArraysAreEquivalent.java package com.vaani.leetcode.string; /** * https://leetcode.com/problems/check-if-two-string-arrays-are-equivalent/ * 1662. Check If Two String Arrays are Equivalent * Easy * <p> * Given two string arrays word1 ...
shoukaiseki/sksweb
src/weblogicmaximo/hello/src_bak/javasqlDrive/hello.java
package javasqlDrive; /*javac -d . hello.java *java javasqlDrive.hello */ public class hello { public static void main(String args[]) { System.out.println("Hello World!!!!"); } }
Kazuki-Takeuchi/schedule_adjustment
db/migrate/20180204122600_add_column_sub_event_informations.rb
<reponame>Kazuki-Takeuchi/schedule_adjustment<gh_stars>0 class AddColumnSubEventInformations < ActiveRecord::Migration[5.1] def change add_column :sub_event_informations, :event_information_id, :integer end end
chanzuckerberg/czid-web
app/mailers/user_mailer.rb
class UserMailer < ApplicationMailer # See: app/views/user_mailer/added_to_projects_email.html.erb. def added_to_projects_email(new_user_id, email_arguments) @new_user_email = User.find(new_user_id).email @sharing_user = User.find(email_arguments[:sharing_user_id]) @shared_project_name = Project.find(em...
kpagacz/software-engineering
algorytmy-i-zlozonosc/dodatkowe-2/dodatkowe-2/limuzyna-sultana.cpp
#include <iostream> #include <vector> #include <algorithm> int main(int, char* []) { int stages_no; stages_no = 3; int* l1_stage_times = new int [] { 8, 5, 10 }; int* l2_stage_times = new int [] { 5, 10, 1}; int* move_times = new int [] { 0, 2, 3 }; // l1_summ_time, l2_summ_time: // best times of finishing pre...
AlloSphere-Research-Group/AlloSystem
allocore/examples/system/thread.cpp
/* AlloCore Example: Thread Description: Demonstration of basic usage of the Thread class. Author: <NAME>, 10/2012 */ #include <stdio.h> #include "allocore/system/al_Thread.hpp" using namespace al; int main(){ // The main purpose of threads is to run complex operations in parallel // rather than sequentially. ...
blackout-games/rugby
app/leagues/nav-button/component.js
<filename>app/leagues/nav-button/component.js import Ember from 'ember'; export default Ember.Component.extend({ tagName: 'button', classNames: ['btn','btn-circle','btn-appear','menu-link','custom'], classNameBindings: ['isDisabled:disabled'], attributeBindings: ['id'], click(e){ /*let leagueI...
Eclo/TivaWare-C-Series
third_party/windows/fltk-1.1.10/src/Fl_Gl_Choice.cxx
<reponame>Eclo/TivaWare-C-Series // // "$Id: Fl_Gl_Choice.cxx 6811 2009-06-30 19:05:09Z matt $" // // OpenGL visual selection code for the Fast Light Tool Kit (FLTK). // // Copyright 1998-2005 by <NAME> and others. // // This library is free software; you can redistribute it and/or // modify it under the terms of the G...
journeymidnight/themis
mail/smtp.go
<reponame>journeymidnight/themis package mail import ( "net/smtp" "net" "fmt" "github.com/ljjjustin/themis/config" "github.com/ljjjustin/themis/database" "github.com/coreos/pkg/capnslog" "crypto/tls" "errors" "strings" ) var plog = capnslog.NewPackageLogger("github.com/ljjjustin/themis", "mai...
free1978/mapbox-gl-native
src/text/placement.cpp
<reponame>free1978/mapbox-gl-native #include <mbgl/text/placement.hpp> #include <mbgl/geometry/anchor.hpp> #include <mbgl/text/glyph.hpp> #include <mbgl/text/placement.hpp> #include <mbgl/text/glyph_store.hpp> #include <mbgl/style/style_bucket.hpp> #include <mbgl/util/math.hpp> namespace mbgl { const float Placement...
blinken/amz_sp_api
lib/vendor-direct-fulfillment-orders-api-model/spec/models/order_details_spec.rb
=begin #Selling Partner API for Direct Fulfillment Orders #The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git Swagger Codegen version: 2.4.26 =end r...
codeteapot/ironhoist-container
ironhoist-container-core/src/main/java/com/github/codeteapot/ironhoist/container/MachineSessionStateLoggedOut.java
<filename>ironhoist-container-core/src/main/java/com/github/codeteapot/ironhoist/container/MachineSessionStateLoggedOut.java<gh_stars>0 package com.github.codeteapot.ironhoist.container; import com.github.codeteapot.ironhoist.plugin.MachineCommand; import com.github.codeteapot.ironhoist.plugin.MachineSessionException;...
ashwinimore/chpl-api
chpl/chpl-service/src/main/java/gov/healthit/chpl/dto/NonconformityTypeStatisticsDTO.java
package gov.healthit.chpl.dto; import java.util.Date; import gov.healthit.chpl.entity.surveillance.NonconformityTypeStatisticsEntity; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @NoArgsConstructor @AllArgsConstructor public @Data class NonconformityTypeStatisticsDTO { ...
Neversee-Productions/Space-Station-Rescue-Souls
docs/search/files_4.js
<reponame>Neversee-Productions/Space-Station-Rescue-Souls var searchData= [ ['health_2ecpp',['Health.cpp',['../_health_8cpp.html',1,'']]], ['health_2eh',['Health.h',['../_health_8h.html',1,'']]] ];
msmygit/nosqlbench
virtdata-lib-basics/src/main/java/io/nosqlbench/virtdata/library/basics/shared/unary_string/URLEncode.java
<gh_stars>100-1000 package io.nosqlbench.virtdata.library.basics.shared.unary_string; import io.nosqlbench.virtdata.api.annotations.Categories; import io.nosqlbench.virtdata.api.annotations.Category; import io.nosqlbench.virtdata.api.annotations.Example; import io.nosqlbench.virtdata.api.annotations.ThreadSafeMapper; ...
VRAM-Software/prediction_configuration_utility
src/tests/model/algorithm/RlTrainer.test.js
const Trainer = require("../../../model/algorithm/RlTrainer"); const Regression = require("../../../model/algorithm/lib/regression.module.js"); jest.mock("../../../model/algorithm/lib/regression.module.js"); describe("test for training RL algorithm's wrapper class", () => { let trainer; beforeEach(() => { ...
Oscar-B-Liang/main
src/test/java/seedu/flashcard/logic/parser/QuizCommandParserTest.java
package seedu.flashcard.logic.parser; import static seedu.flashcard.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT; import static seedu.flashcard.logic.parser.CommandParserTestUtil.assertParseFailure; import static seedu.flashcard.logic.parser.CommandParserTestUtil.assertParseSuccess; import static seedu.flashca...
xmapst/imail
internal/app/form/install.go
package form import () type Install struct { DbType string `binding:"Required"` DbHost string DbUser string DbPasswd string DbName string SslMode string DbPath string AppName string `binding:"Required" locale:"install.app_name"` RepoRootPath string `binding:"Required"` RunUser ...
farajilab/gifs_release
gromacs-4.6.5/include/thread_mpi/atomic.h
<filename>gromacs-4.6.5/include/thread_mpi/atomic.h /* This source code file is part of thread_mpi. Written by <NAME>, <NAME>, and possibly others. Copyright (c) 2009, <NAME>, <NAME>. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted ...
hiperbolt9/MortenSchenkb
src/main/java/com/budwk/app/web/commons/ext/websocket/WkWsHandler.java
package com.budwk.app.web.commons.ext.websocket; import com.budwk.app.base.constant.RedisConstant; import com.budwk.app.sys.services.SysMsgService; import org.nutz.ioc.loader.annotation.Inject; import org.nutz.ioc.loader.annotation.IocBean; import org.nutz.lang.Strings; import org.nutz.lang.util.NutMap; import org.nut...
jiripetrlik/kie-wb-common
kie-wb-common-stunner/kie-wb-common-stunner-core/kie-wb-common-stunner-api/kie-wb-common-stunner-client-api/src/main/java/org/kie/workbench/common/stunner/core/client/api/SessionManager.java
<reponame>jiripetrlik/kie-wb-common<gh_stars>0 /* * Copyright 2017 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/li...
YiJiangFengYun/vulkan-graphics-examples
framework/graphics/graphics/pass/pass_ext_uniform_buffer.hpp
#ifndef VG_PASS_EXT_UNIFORM_BUFFER_HPP #define VG_PASS_EXT_UNIFORM_BUFFER_HPP namespace vg { } //vg #endif //VG_PASS_EXT_UNIFORM_BUFFER_HPP
lymr/fun-chat
fun-chat-server/src/main/scala/restapi/http/routes/support/CorsSupport.scala
package restapi.http.routes.support import akka.http.scaladsl.model.HttpMethods._ import akka.http.scaladsl.model.headers._ import akka.http.scaladsl.model.{HttpResponse, StatusCodes} import akka.http.scaladsl.server.Directives._ import akka.http.scaladsl.server.Route import com.typesafe.config.ConfigFactory import re...
factset/enterprise-sdk
code/typescript/ETFProfileandPrices/v2/src/model/InlineResponse20011Data.js
<filename>code/typescript/ETFProfileandPrices/v2/src/model/InlineResponse20011Data.js /** * Prime Developer Trial * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 * * * NOTE: This class is auto generated by O...
CarlosIribarren/Ejemplos-Examples
Java/Java SE/7/11 Excepciones/Main.java
<filename>Java/Java SE/7/11 Excepciones/Main.java import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub // LEER DEL TECLADO BufferedReader lectura = new BufferedReader(new In...
starksm64/cdi-tck2
impl/src/main/java/org/jboss/cdi/tck/tests/implementation/producer/method/broken/parameterizedTypeWithWildcard/ParametrizedTypeWithWildcard02Test.java
<gh_stars>1-10 package org.jboss.cdi.tck.tests.implementation.producer.method.broken.parameterizedTypeWithWildcard; import static org.jboss.cdi.tck.cdi.Sections.LEGAL_BEAN_TYPES; import static org.jboss.cdi.tck.cdi.Sections.PRODUCER_METHOD; import jakarta.enterprise.inject.spi.DefinitionException; import org.jboss.a...
cclauss/VTK
Common/DataModel/Testing/Cxx/TestHyperTreeGridBitmask.cxx
/*========================================================================= Program: Visualization Toolkit Module: TestHyperTreeGridBitmask.cxx Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distrib...
jarocho105/pre2
erp_desktop_all/src_facturacion/com/bydan/erp/facturacion/presentation/swing/jinternalframes/PedidoExporJInternalFrame.java
/* *AVISO LEGAL © Copyright *Este programa esta protegido por la ley de derechos de autor. *La reproduccion o distribucion ilicita de este programa o de cualquiera de *sus partes esta penado por la ley con severas sanciones civiles y penales, *y seran objeto de todas las sanciones legales que correspondan. *Su...
IntBoat/go-hetzner
server.go
<reponame>IntBoat/go-hetzner<filename>server.go package hetzner import ( "fmt" "net/http" ) // Api: https://robot.your-server.de/doc/webservice/en.html#server // ServerService represents a service to work with server service. type ServerService interface { // List Query data of all servers // See: https://robot....
TomTranter/pybamm_pnm
random/lumped_thermal.py
# -*- coding: utf-8 -*- """ Created on Fri Feb 14 11:13:35 2020 @author: Tom """ import openpnm as op import numpy as np import matplotlib.pyplot as plt import openpnm.topotools as tt # >!----!''!---!> spacing = 10.4e-6 area = 1.0 Nseries = 1 + 8 + 2 + 7 + 1 Nparallel = 1 net = op.network.Cubic([Nseries + 1, 1, 1], ...
CBIIT/cadsr-semantic-tools
software/SIW/src/java/gov/nih/nci/ncicb/cadsr/loader/ChangeTracker.java
<reponame>CBIIT/cadsr-semantic-tools /* * Copyright 2000-2003 Oracle, Inc. This software was developed in conjunction with the National Cancer Institute, and so to the extent government employees are co-authors, any rights in such works shall be subject to Title 17 of the United States Code, section 105. * Redistrib...
lechium/iPhoneOS_12.1.1_Headers
System/Library/PrivateFrameworks/CoreSuggestions.framework/SGOrigin.h
<filename>System/Library/PrivateFrameworks/CoreSuggestions.framework/SGOrigin.h<gh_stars>10-100 /* * This header is generated by classdump-dyld 1.0 * on Saturday, June 1, 2019 at 6:45:55 PM Mountain Standard Time * Operating System: Version 12.1.1 (Build 16C5050a) * Image Source: /System/Library/PrivateFrameworks/CoreS...
flyingLowSounds/LRTRack
src/LindenbergResearch.hpp
<filename>src/LindenbergResearch.hpp<gh_stars>0 /* *\ ** __ ___ ______ ** ** / / / _ \/_ __/ ** ** / /__/ , _/ / / Lindenberg ...
tenxcloud/mosn
pkg/module/zookeeper/filters/data.go
/* * 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 may ...
ashen7/SimpleCaffe
src/caffe/test/test_common.cpp
// // Created by yipeng on 2020/3/23. // #include <gtest/gtest.h> #include "caffe/common.hpp" #include "caffe/synced_memory.hpp" #include "caffe/util/math_functions.hpp" #include "caffe/test/test_caffe_main.hpp" namespace caffe { //固件类fixture class 一个测试套件test suite里 多个测试test可以只用一次初始化数据 //使用SetUp()来初始化 TearDown()来析构 c...
HeartCommunity/uiKit
packages/core/field-base/components/FieldBaseStateless.js
<gh_stars>1-10 import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; import _createClass from "@babel/runtime/helpers/createClass"; import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn"; import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf"; import _inher...
LaudateCorpus1/oraclejet
dist/js/libs/oj/debug_esm/ojcustomelement.js
/** * @license * Copyright (c) 2014, 2022, Oracle and/or its affiliates. * Licensed under The Universal Permissive License (UPL), Version 1.0 * as shown at https://oss.oracle.com/licenses/upl/ * @ignore */ import oj from 'ojs/ojcore'; import { warn } from 'ojs/ojlogger'; import { CustomElementUtils, AttributeUtil...
Neusoft-Technology-Solutions/aws-sdk-cpp
aws-cpp-sdk-iot/source/model/ProvisioningTemplateVersionSummary.cpp
<reponame>Neusoft-Technology-Solutions/aws-sdk-cpp<gh_stars>1-10 /** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/iot/model/ProvisioningTemplateVersionSummary.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> usin...
kappa-maintainer/RedstoneControl2
src/main/java/cd4017be/rs_ctr2/container/ContainerMemory.java
<filename>src/main/java/cd4017be/rs_ctr2/container/ContainerMemory.java package cd4017be.rs_ctr2.container; import static cd4017be.lib.network.GuiNetworkHandler.GNH_INSTANCE; import static cd4017be.lib.network.GuiNetworkHandler.preparePacket; import static cd4017be.rs_ctr2.Content.mEMORY; import java.nio.ByteBuffer; ...
Caleydo/caleydo
org.caleydo.view.enroute/src/org/caleydo/view/enroute/path/APathUpdateStrategy.java
/******************************************************************************* * Caleydo - Visualization for Molecular Biology - http://caleydo.org * Copyright (c) The Caleydo Team. All rights reserved. * Licensed under the new BSD license, available at http://caleydo.org/license *********************************...
crdavis12/script.module.sd4tvh
libschedulesdirect/common/eventteam.py
<filename>libschedulesdirect/common/eventteam.py import logging class EventTeam(object): def __init__(self): self.name = None # type: unicode self.is_home = False # type: bool @classmethod def from_dict(cls, dct): # type: (dict) -> EventTeam """ :param dct: :t...
mo-xin/vkectl
pkg/model/resource/kitex_gen/paastob/productivity/common/common.go
<filename>pkg/model/resource/kitex_gen/paastob/productivity/common/common.go // Code generated by thriftgo (0.1.3). DO NOT EDIT. package common import ( "fmt" "github.com/apache/thrift/lib/go/thrift" "strings" ) type Error struct { HTTPCode int32 `thrift:"HTTPCode,1" json:"HTTPCode"` Code string...
hispindia/dhis2-android-sdk
core/src/main/java/org/hisp/dhis/android/core/calls/TrackerEntitiesDataCall.java
<gh_stars>0 package org.hisp.dhis.android.core.calls; import android.support.annotation.NonNull; import android.util.Log; import org.hisp.dhis.android.core.common.Payload; import org.hisp.dhis.android.core.data.api.Fields; import org.hisp.dhis.android.core.data.database.DatabaseAdapter; import org.hisp.dhis.android....
minad/crts
cby/disasm.c
<gh_stars>1-10 #include "bytecode/decode.h" #include "bytecode/opcodes.h" #include "cby.h" #include "ffisupport.h" #include "native/color.h" #include "native/location.h" #include "native/sink.h" #undef CHECK_RANGE #define CHECK_RANGE(n) ({ if (IP < codeStart || IP + (n) > codeEnd) goto OUT_OF_RANGE; }) #define REG ...
paullewallencom/spring-978-1-7871-2831-6
_src/Chapter10/ch10-reports/src/main/java/org/packt/microservice/client/controller/ClientAsyncController.java
package org.packt.microservice.client.controller; import java.util.List; import java.util.concurrent.ExecutionException; import org.packt.microservice.client.model.data.Employee; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpEntity; import org.springframework.http....
linziyanleo/linziyanleo.github.io
work/p5/p5.js-1.0.0/test/unit/assets/array.js
// eslint-disable-next-line no-undef jsonpCallbackFunction([ { id: 0, species: 'Capra hircus', name: 'Goat' }, { id: 1, species: 'Panthera pardus', name: 'Leopard' }, { id: 2, species: 'Equus zebra', name: 'Zebra' } ]);
gbl08ma/disturbancesmlx
compute/avgspeed.go
<filename>compute/avgspeed.go package compute import ( "errors" "runtime" "time" "github.com/gbl08ma/sqalx" "github.com/underlx/disturbancesmlx/types" ) // ErrInfoNotReady is returned when the requested information is not yet available var ErrInfoNotReady = errors.New("information not ready") type avgSpeedCach...
ivadasz/DragonFlyBSD
sys/dev/powermng/kate/kate.c
<filename>sys/dev/powermng/kate/kate.c /* $OpenBSD: kate.c,v 1.2 2008/03/27 04:52:03 cnst Exp $ */ /* * Copyright (c) 2008/2010 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and...
rodney-lai/test-site
lib/com/rodneylai/auth/util/TestAccountHelper.scala
<filename>lib/com/rodneylai/auth/util/TestAccountHelper.scala /** * * Copyright (c) 2015-2017 <NAME> * https://github.com/rodney-lai * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the * above copyright notice and this pe...
SpaceGameDev/space-engine
src/main/java/space/engine/lock/keylock/BlockingKeyLock.java
package space.engine.lock.keylock; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.util.concurrent.TimeUnit; /** * A simple Lock which can be locked with a KEY instead of the current Thread */ public interface BlockingKeyLock<KEY> { //lock void lock(@NotNull KEY...
lycantropos/cppbuiltins
tests/lists_tests/test_getitem.py
<gh_stars>1-10 from typing import Tuple import pytest from hypothesis import given from tests.utils import (AlternativeNativeListsPair, are_alternative_native_lists_equal) from . import strategies @given(strategies.non_empty_lists_pairs_with_indices) def test_index(pair_with_index: Tuple[Al...
tlandschoff-scale/spyne
spyne/interface/xml_schema/model.py
# # spyne - Copyright (C) Spyne contributors. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This libra...
decode/eachdo
config/initializers/rails_admin.rb
<filename>config/initializers/rails_admin.rb RailsAdmin.config do |config| ### Popular gems integration ## == Devise == #config.authenticate_with do # warden.authenticate! scope: :user #end #config.current_user_method(&:current_user) ## == Cancan == #config.authorize_with :cancan ## == PaperTrail...
xsjames/upp-components
Examples/SshBasics/Shell.cpp
#include "SshBasics.h" // ShellConsole: // Demonstrates an interactive shell in console mode. void ShellConsole(SshSession& session) { SshShell shell(session); shell.Timeout(Null); if(!shell.Console("ansi")) LOG(shell.GetErrorDesc()); }
tiferrei/PEDASI
datasources/migrations/0008_datasource__connector_string.py
<filename>datasources/migrations/0008_datasource__connector_string.py # Generated by Django 2.0.8 on 2018-10-29 13:20 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('datasources', '0007_datasource_api_key'), ] operations = [ migrations....
i5possible/service-template
src/main/java/com/template/model/Example2.java
package com.template.model; import lombok.*; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; import java.math.BigDecimal; import java.util.Date; import java.util.UUID; /** * @author <EMAIL> * @date 2020/4/18 */ @Getter @Setter @Builde...
Idematica/django-oscar
oscar/apps/wishlists/admin.py
<reponame>Idematica/django-oscar from django.contrib import admin from django.db.models import get_model WishList = get_model('wishlists', 'WishList') Line = get_model('wishlists', 'Line') admin.site.register(WishList) admin.site.register(Line)
SuperDizor/dizornator
node_modules/lzz-gyp/lzz-source/smtc_DefineNavClass.cpp
// smtc_DefineNavClass.cpp // #include "smtc_DefineNavClass.h" // semantic #include "smtc_CreateNavClass.h" #include "smtc_CreateNavClassEntity.h" #include "smtc_CreateNavClassScope.h" #include "smtc_DeclareLazyClassObjParamSet.h" #include "smtc_Message.h" #include "smtc_NavClass.h" #include "smtc_Ns.h" #include "smtc...
ScalablyTyped/SlinkyTyped
c/chrome/src/main/scala/typingsSlinky/chrome/global/chrome/cast/media.scala
package typingsSlinky.chrome.global.chrome.cast import typingsSlinky.chrome.chrome.cast.media.TrackType import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} object media { @JSG...
yongaro/Borderlands
Source/Borderlands/CollidingPawnMovementComponent.cpp
// Fill out your copyright notice in the Description page of Project Settings. #include "CollidingPawnMovementComponent.h" #include "Borderlands.h" void UCollidingPawnMovementComponent::TickComponent(float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction) { Super::TickComponent(Delt...
JahodaPaul/FIT_CTU
SI1 - Rogue Game/include/Util/Subject.hpp
#pragma once #include <map> #include "Util/Event.hpp" namespace RG { namespace Util { class Observer; /** * \class Subject * \brief Subject can be observed by Util::Observer * * This class is can send notifications to all registered observers. * */ class Subject { p...
npocmaka/Windows-Server-2003
inetsrv/msmq/src/admin/mqsnap/edataobj.h
<filename>inetsrv/msmq/src/admin/mqsnap/edataobj.h // edataobj.h : Declaration of the CEnterpriseDataObject #ifndef __EDATAOBJECT_H_ #define __EDATAOBJECT_H_ #include "resource.h" // main symbols #include "dataobj.h" ///////////////////////////////////////////////////////////////////////////// // CEnt...
shenhaizhilong/algorithm
src/main/java/com/hui/Array/FindMinimuminRotatedSortedArrayII.java
package com.hui.Array; /** * @author: shenhaizhilong * @date: 2018/9/15 10:19 */ public class FindMinimuminRotatedSortedArrayII { /** * * 154. Find Minimum in Rotated Sorted Array II * DescriptionHintsSubmissionsDiscussSolution * Suppose an array sorted in ascending order is r...
generaldevelopers/Tilda
src/tilda/db/QueryHelper.java
<filename>src/tilda/db/QueryHelper.java /* =========================================================================== * Copyright (C) 2015 CapsicoHealth 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...
longyinzaitian/LbsPhoto
app/src/main/java/com/lbsphoto/app/camera/CameraFragment.java
<gh_stars>0 package com.lbsphoto.app.camera; import android.Manifest; import android.support.annotation.RequiresPermission; import com.lbsphoto.app.camera.configuration.Configuration; import com.lbsphoto.app.camera.ui.BaseAnncaFragment; public class CameraFragment extends BaseAnncaFragment { @RequiresPermission...
yangjintao1/myfirstpro
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/plan/nodes/physical/batch/BatchExecSort.scala
/* * 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 ...
UMich-BipedLab/Cassie_StateEstimation
gen/windows/kin/eigen/src/Jp_LeftToeBottom.cpp
/* * Automatically Generated from Mathematica. * Thu 23 May 2019 13:10:13 GMT-04:00 */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include "Jp_LeftToeBottom.h" #ifdef _MSC_VER #define INLINE __forceinline /* use __forceinline (VC++ specific) */ #else #define INLINE static inline ...
roderickmackenzie/gpvdm
gpvdm_gui/gui/json_time_domain.py
<filename>gpvdm_gui/gui/json_time_domain.py # # General-purpose Photovoltaic Device Model - a drift diffusion base/Shockley-Read-Hall # model for 1st, 2nd and 3rd generation solar cells. # Copyright (C) 2008-2022 <NAME> r.c.i.m<EMAIL>ie at googlemail.com # # https://www.gpvdm.com # # This program is fr...
tank59he/bjfu_exam
src/main/java/com/bjfu/exam/service/impl/AnswerServiceImpl.java
<filename>src/main/java/com/bjfu/exam/service/impl/AnswerServiceImpl.java<gh_stars>0 package com.bjfu.exam.service.impl; import com.bjfu.exam.dto.answer.PaperAnswerDTO; import com.bjfu.exam.dto.paper.ProblemDTO; import com.bjfu.exam.entity.answer.PaperAnswer; import com.bjfu.exam.entity.answer.ProblemAnswer; import co...
amanocha/cell_society
src/animation/navigation/Navigator.java
<gh_stars>0 package animation.navigation; import java.util.PropertyResourceBundle; import java.util.ResourceBundle; import animation.navigation.menu.MainMenu; import animation.navigation.menu.SimulationMenu; import animation.navigation.menu.XmlMenu; import javafx.scene.Group; import javafx.scene.Scene; import javafx....
asdfghjjklllllaaa/infra
appengine/monorail/framework/test/permissions_test.py
<filename>appengine/monorail/framework/test/permissions_test.py # Copyright 2016 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 or at # https://developers.google.com/open-source/licenses/bsd """Tests for permissions.py."""...
gauthiersiri/instana-openshift
src/services/ui/frontend/src/redux/reducer.js
import produce from "immer"; import { types } from "./actions"; import queryString from "query-string"; import { queryToServiceFilterMap } from "./init"; import globalHistory from "globalHistory"; const arrayify = (maybeArray) => { const _maybeArray = maybeArray || []; if (Array.isArray(_maybeArray)) { return ...
efluid/datagate
efluid-datagate-app/src/main/java/fr/uem/efluid/tools/diff/ManagedQueriesGenerator.java
<filename>efluid-datagate-app/src/main/java/fr/uem/efluid/tools/diff/ManagedQueriesGenerator.java package fr.uem.efluid.tools.diff; import fr.uem.efluid.ColumnType; import fr.uem.efluid.model.entities.DictionaryEntry; import fr.uem.efluid.model.entities.TableLink; import fr.uem.efluid.services.types.Value; import fr.u...
Mozilla-GitHub-Standards/54c69db06ef83bda60e995a6c34ecfd168ca028994e40ce817295415bb409f0c
make_mozilla/events/models.py
<reponame>Mozilla-GitHub-Standards/54c69db06ef83bda60e995a6c34ecfd168ca028994e40ce817295415bb409f0c<gh_stars>1-10 from django.conf import settings from django.contrib.gis.db import models from django.contrib.gis import geos, measure from django_countries import CountryField from django.utils.safestring import mark_safe...
MikeSmvl/travelingstrategy
client/src/components/HealthCard/HealthCard.js
<reponame>MikeSmvl/travelingstrategy import React from 'react'; import { Row, Table } from 'react-bootstrap'; import { Card, CardBody } from '../Card/Card'; import { compareSingle, compareDouble, percentDiffColor } from '../../utils/healthComparison'; const HealthCard = (props) => { const { destinationHealth = {}...
Automedon/CodeWars-7-kata
Array Mappings.js
/* Description: Array Mappings Oh no, the map method for arrays has been disabled. Can you fix it? In case you haven't come across the map method for arrays, here is how it works: [1,2,3].map(x => x ** 2) === [1,4,9] [1,2,3].map(x => 2 * x) === [2,4,6] [1,2,3].map(x => 2 ** x) === [2,4,8] [1,2,3].map(x => x.toString(...
0lOveLycaT0/IT-PROJECT-EXTRA-PACK
IT-PROJECT EXTRA PACK PE/jni/mcpe/locale/SkinPack.h
#pragma once #include <string> #include <vector> // Size : 32 class SkinPack { public: enum SkinPackType { DEFAULT, PACK }; std::string serializableName; // 0 std::string name; // 4 std::string price; // 8 bool unlocked; // 12 std::vector<Skin> skins; // 16 SkinPackType type; // 28 SkinPack...
suhanime/installer
vendor/github.com/tombuildsstuff/giovanni/storage/2018-11-09/file/directories/get.go
package directories import ( "context" "net/http" "strings" "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/autorest/validation" "github.com/tombuildsstuff/giovanni/storage/internal/endpoints" "github.com/tombuildsstuff/giovanni/storage/inter...
lilinor/Detox
detox/src/devices/drivers/android/genycloud/services/GenyInstanceNaming.js
<reponame>lilinor/Detox<gh_stars>1000+ const getWorkerId = require('../../../../../utils/getWorkerId'); class GenyInstanceNaming { constructor(nowProvider = () => new Date().getTime()) { this.uniqueSessionId = Number(process.env.DETOX_START_TIMESTAMP); this.nowProvider = nowProvider; this._workerId = get...
toninoes/tfg-heridas-rest-servicio-web-spring
src/main/java/rha/service/DiagnosticoService.java
package rha.service; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Service; import rha.exception.ErrorInternoServidorException; import rha.exceptio...
shahzaibkhalid/shaizei
packages/scripts/scripts/lint.js
const lint = () => { const { sync } = require('cross-spawn'); const { standardFiles: { src } } = require('@shaizei/helpers'); const spawnOptions = require('../lib/spawnOptions'); const childProcess = sync( `./node_modules/@shaizei/eslint-config/node_modules/.bin/eslint --ext .js --ext .jsx --ext .ts --ext ...
ZLW07/RobWork
RobWorkSim/src/rwsimlibs/bullet/BtDebugRender.cpp
<filename>RobWorkSim/src/rwsimlibs/bullet/BtDebugRender.cpp /******************************************************************************** * Copyright 2015 The Robotics Group, The Maersk Mc-Kinney Moller Institute, * Faculty of Engineering, University of Southern Denmark * * Licensed under the Apache License, Ve...
jhwsx/Think4JavaExamples
codes/src/generics/Holder3.java
<filename>codes/src/generics/Holder3.java package generics; /** * @author wangzhichao * @since 2019/12/08 */ public class Holder3<T> { private T a; public Holder3(T a) { this.a = a; } public T get() { return a; } public void set(T a) { this.a = a; } public...
mfkiwl/coast-compilerAssistedSoftwareFaultTolerance
tests/TMRregression/unitTests/returnPointer.c
<reponame>mfkiwl/coast-compilerAssistedSoftwareFaultTolerance /* returnPointer.c Unit test designed to exercise returning pointer types. Notes: Possible compilation error when run with DWC */ #include <stdio.h> int* something(int* x) { if (*x >= 0) *x += 1; else *x -= 1; r...
pengdu/bubblefs
src/utils/slash_random.h
// slash/slash/include/random.h #ifndef BUBBLEFS_UTILS_SLASH_RANDOM_H_ #define BUBBLEFS_UTILS_SLASH_RANDOM_H_ #include <stdlib.h> #include <time.h> namespace bubblefs { namespace myslash { class Random { public: Random() { srand(time(NULL)); } /* * return Random number in [1...n] */ static uint...
lileding/baetyl-cloud
api/api.go
<reponame>lileding/baetyl-cloud<filename>api/api.go package api import ( "github.com/baetyl/baetyl-go/v2/log" "github.com/baetyl/baetyl-cloud/v2/common" "github.com/baetyl/baetyl-cloud/v2/config" "github.com/baetyl/baetyl-cloud/v2/facade" "github.com/baetyl/baetyl-cloud/v2/service" ) // API baetyl api server ty...
reeteshranjan/cross-browser-tests-runner
tests/integration/browserstack.js
describe('Integration Tests', function() { require('./tests/server-browserstack') require('./tests/hooks-browserstack') })
aiHiNiHao/wg_vpn
tunnel/tools/wireguard-tools/src/ipc-openbsd.h
// SPDX-License-Identifier: MIT /* * Copyright (C) 2015-2020 <NAME> <<EMAIL>>. All Rights Reserved. */ #include <errno.h> #include <stddef.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <sys/ioctl.h> #include <sys/socket.h> #include <sys/sockio.h> #include <sys/types.h> #include <net/if.h> #in...
JazzleWare/stript.js
src/op-gt@Parser.js
<gh_stars>0 this.readOp_gt = function() { var op = TOKEN_NONE, c = this.c, len = this.src.length; c++; // the > if (c < len) { var ch = this.ch(c); if (ch === CH_EQUALITY_SIGN) { // >= c++; op = TOKEN_BINARY; this.prec = PREC_COMP; } else if (ch === CH_GREATER_THAN) { // >> c+...
wsun23/ncstate_ece566_spring2022
projects/p1/C/tests/slice.c
<reponame>wsun23/ncstate_ece566_spring2022<filename>projects/p1/C/tests/slice.c<gh_stars>1-10 #include <stdio.h> int bit(int d, int bit) { return (d >> bit)&0x1; } int set_bit(int d, int bit) { return d | (1 << (bit)); } int clear_bit(int d, int bit) { return d & (~(1 << (bit))); } int myslice(int a) { ...
yearnfar/nanoserver
protocol/stats.go
package protocol type AppStatsRequest struct { AppID string `json:"app_id"` ChannelID string `json:"channel_id"` Remote string `json:"remote"` Event string `json:"event"` Extra string `json:"extra"` Device *Device `json:"device"` } type ChannelAndAppStatsSummaryRequest struct { AppIds ...
lechium/iPhoneOS_12.1.1_Headers
System/Library/Frameworks/WatchConnectivity.framework/WCXPCManager.h
/* * This header is generated by classdump-dyld 1.0 * on Saturday, June 1, 2019 at 6:50:29 PM Mountain Standard Time * Operating System: Version 12.1.1 (Build 16C5050a) * Image Source: /System/Library/Frameworks/WatchConnectivity.framework/WatchConnectivity * classdump-dyld is licensed under GPLv3, Copyright © 2013-201...
consulo/consulo-java
java-impl/src/main/java/com/intellij/javadoc/JavadocGenerationManager.java
<filename>java-impl/src/main/java/com/intellij/javadoc/JavadocGenerationManager.java /* * Copyright 2000-2016 JetBrains s.r.o. * * 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:...
projectPiki/pikmin2
unsorted_include_todo/ebi/FileSelect/FSMState_ScreenFileSelect.h
#ifndef _EBI_FILESELECT_FSMSTATE_SCREENFILESELECT_H #define _EBI_FILESELECT_FSMSTATE_SCREENFILESELECT_H /* __vt__Q33ebi10FileSelect25FSMState_ScreenFileSelect: .4byte 0 .4byte 0 .4byte init__Q33ebi10FileSelect8FSMStateFPQ33ebi10FileSelect4TMgrPQ24Game8StateArg .4byte exec__Q33ebi10FileSelect8FSM...
fstltna/conquest_bbs_source
nHistl.c
/* * $Id$ * * Copyright 1999-2004 <NAME> under the ARTISTIC LICENSE. (See LICENSE). */ #include "c_defs.h" #include "context.h" #include "global.h" #include "datatypes.h" #include "color.h" #include "conf.h" #include "conqcom.h" #include "gldisplay.h" #include "node.h" #include "client.h" #include "packet.h" #inc...