repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
ScalablyTyped/SlinkyTyped | q/qlik/src/main/scala/typingsSlinky/qlik/mod/LanguageCodes.scala | package typingsSlinky.qlik.mod
import typingsSlinky.qlik.qlikStrings.`zh-CN`
import typingsSlinky.qlik.qlikStrings.`zh-TW`
import typingsSlinky.qlik.qlikStrings.ts_
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal,... |
ColombiaTransit/otp-react-redux | lib/components/viewers/related-panel.js | <reponame>ColombiaTransit/otp-react-redux
import React from 'react'
import { FormattedMessage } from 'react-intl'
function RelatedPanel ({ children, count, expanded, onToggleExpanded, title, titleWidth }) {
return (
<>
<h4 className='related-panel-title' style={{width: titleWidth}}>{title}</h4>
<div ... |
GameDevery/Lumino | lumino/Platform/examples/Web/Main.cpp | <gh_stars>100-1000
#include <emscripten.h>
#include <LuminoCore.hpp>
#include <LuminoPlatform/PlatformModule.hpp>
#include <LuminoPlatform/Platform.hpp>
#include <LuminoPlatform/PlatformWindow.hpp>
using namespace ln;
struct EventListener : IPlatforEventListener
{
bool onPlatformEvent(const PlatformEventA... |
Tyav/Fintrack-backend | config/routes.js | <gh_stars>0
'use strict';
const routes = require('../app/routes/index');
const error = require('./error');
module.exports = function(app) {
app.use('/api/v1', routes);
/**
* Error handling
*/
// if error is not an instanceOf APIError, convert it.
app.use(error.converter);
// catch 404 and forward to ... |
jvirkki/heliod | src/server/frame/model.cpp | <filename>src/server/frame/model.cpp<gh_stars>10-100
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
*
* THE BSD LICENSE
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided tha... |
player999/cryptonite | src/pkix/c/struct/CrlIdentifier.c | <gh_stars>10-100
/*
* Copyright (c) 2016 PrivatBank IT <<EMAIL>>. All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
#include "CrlIdentifier.h"
#include "asn_internal.h"
#undef FILE_MARKER
#define FILE_MARKER "pkix/struct/CrlIdentifier.c"
static asn_TYPE_member_t asn... |
olmelabs/battleship-game | client-app/src/components/Account/LoginPage.js | <reponame>olmelabs/battleship-game<filename>client-app/src/components/Account/LoginPage.js<gh_stars>1-10
import React from "react";
import { connect } from "react-redux";
import { Link, Redirect } from "react-router-dom";
import PropTypes from "prop-types";
import { bindActionCreators } from "redux";
import * as action... |
jacktea/FYReader | app/src/main/java/xyz/fycz/myreader/application/SysManager.java | <filename>app/src/main/java/xyz/fycz/myreader/application/SysManager.java
package xyz.fycz.myreader.application;
import android.util.Log;
import xyz.fycz.myreader.common.APPCONST;
import xyz.fycz.myreader.entity.Setting;
import xyz.fycz.myreader.enums.BookSource;
import xyz.fycz.myreader.enums.BookcaseStyle;
import x... |
haimadrian/SE-Java-Project | Code/src/main/java/org/spa/view/alert/AlertColumn.java | <gh_stars>1-10
package org.spa.view.alert;
import org.spa.view.table.TableColumnIfc;
import org.spa.view.table.editor.TextCellEditor;
import org.spa.view.table.renderer.DateCellRenderer;
import org.spa.view.table.renderer.ImageCellRenderer;
import org.spa.view.table.renderer.TextCellRenderer;
import javax.swi... |
sthagen/Jeffail-benthos | internal/component/output/config_cassandra.go | package output
import (
"github.com/gocql/gocql"
"github.com/benthosdev/benthos/v4/internal/batch/policy/batchconfig"
"github.com/benthosdev/benthos/v4/internal/old/util/retries"
btls "github.com/benthosdev/benthos/v4/internal/tls"
)
// PasswordAuthenticator contains the fields that will be used to authenticate ... |
BinBear/VinBaseComponents | VinBaseComponents/Classes/BlockViewKit/UITableViewCell+BlockExtention.h | //
// UITableViewCell+BlockExtention.h
// HeartTrip
//
// Created by vin on 2020/1/5.
// Copyright © BinBear. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface UITableViewCell (BlockExtention)
@property (nonatomic,strong) id ht_cellData;
@property (nonatomic,strong,readonly) id ... |
ScalablyTyped/SlinkyTyped | a/aws-sdk/src/main/scala/typingsSlinky/awsSdk/rekognitionMod/Gender.scala | <filename>a/aws-sdk/src/main/scala/typingsSlinky/awsSdk/rekognitionMod/Gender.scala
package typingsSlinky.awsSdk.rekognitionMod
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
... |
ploubser/cfacter | lib/inc/facter/util/posix/scoped_bio.hpp | <gh_stars>0
/**
* @file
* Declares the scoped BIO (OpenSSL) resource.
*/
#ifndef FACTER_UTIL_POSIX_SCOPED_BIO_HPP_
#define FACTER_UTIL_POSIX_SCOPED_BIO_HPP_
#include "../scoped_resource.hpp"
#include <openssl/bio.h>
namespace facter { namespace util { namespace posix {
/**
* Represents a scoped OpenSSL B... |
pnomolos/chronomodel | lib/chrono_model/time_machine/history_model.rb | module ChronoModel
module TimeMachine
module HistoryModel
extend ActiveSupport::Concern
included do
self.table_name = [Adapter::HISTORY_SCHEMA, superclass.table_name].join('.')
scope :chronological, -> { order(Arel.sql('lower(validity) ASC')) }
end
# Methods that make u... |
Kurokitu/Home | font-end/src/main.js | import Vue from 'vue';
import md5 from 'js-md5';
import jwtDecode from 'jwt-decode';
import VueSocketIOExt from 'vue-socket.io-extended';
import io from 'socket.io-client';
import { VueReCaptcha } from 'vue-recaptcha-v3';
import VueMarkdown from 'vue-markdown';
import App from './App.vue';
import router from './router'... |
rjsalvadorr/portfolio-v6 | static/apps/rise-of-the-raptors/assets/js/2.f1e8eae1.js | ;(window.webpackJsonp = window.webpackJsonp || []).push([
[2],
{
124: function (t, e, r) {
"use strict"
r.r(e)
r(106), r(107), r(109), r(112), r(115), r(60), r(117)
var a,
n = r(264),
i = r(225),
s = r(226),
o = (r(239), r(247), r(248), r(252)),
l ... |
mmallis87/google-apis-explorer | src/com/google/api/explorer/client/base/NameHelper.java | /*
* Copyright (C) 2012 Google 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 ... |
t-hiramatsu/ENdoSnipe | Javelin/src/main/java/jp/co/acroquest/endosnipe/javelin/communicate/JavelinTelegramCreator.java | /*******************************************************************************
* ENdoSnipe 5.0 - (https://github.com/endosnipe)
*
* The MIT License (MIT)
*
* Copyright (c) 2012 Acroquest Technology Co.,Ltd.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this s... |
Pandinosaurus/pyquickhelper | _unittests/ut_helpgen/test_changes.py | """
@brief test log(time=8s)
@author <NAME>
"""
import sys
import os
import unittest
from pyquickhelper.loghelper.flog import fLOG
from pyquickhelper.helpgen.sphinx_main import generate_changes_repo
class TestChanges (unittest.TestCase):
def test_changes(self):
fLOG(
__file__,
... |
grbury/mystikos | kernel/pagesize.c | <filename>kernel/pagesize.c
#include <limits.h>
#include <unistd.h>
int getpagesize(void)
{
_Static_assert(PAGE_SIZE == 4096, "getpagesize()");
return PAGE_SIZE;
}
|
KablamoOSS/kombustion | pkg/parsers/properties/TopicRuleIotAnalyticsAction.go | <filename>pkg/parsers/properties/TopicRuleIotAnalyticsAction.go
package properties
// Code generated by go generate; DO NOT EDIT.
// It's generated by "github.com/KablamoOSS/kombustion/generate"
// TopicRuleIotAnalyticsAction Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-... |
NAO-CS270/NAOFS | include/test/test_utils.h | //
// Created by <NAME> on 2/29/20.
//
#ifndef NAOFS_TEST_UTILS_H
#define NAOFS_TEST_UTILS_H
void test_utils_runner();
#endif //NAOFS_TEST_UTILS_H
|
Zhangjk2012/demo | src/main/scala/akka/SetRequest.scala | package akka
/**
* Created by zhangjiangke on 2017/6/8.
*/
case class SetRequest(key: String, value: Object);
|
mowatermelon/ice | react-materials/scaffolds/ice-creator-landingpage/src/pages/Home/components/PlatformIntro/index.js | import PlatformIntro from './PlatformIntro';
export default PlatformIntro;
|
kehuo/myweb | frontend/src/pages/MasterData/MasterMain.js | import React, { PureComponent } from "react";
import { connect } from "dva";
import {
Row,
Col,
Input,
Select,
Icon,
Table,
Drawer,
message,
Button,
Tabs
} from "antd";
import BodySystemPanel from "./MasterSub/BodySystemPanel";
import BodyStructruePanel from "./MasterSub/BodyStructruePanel";
import ... |
thexdesk/browseth | test/units/weiToEther.js | import { expect } from 'chai'
import * as units from '@browseth/units'
it('should convert wei to ether', () => {
expect(units.weiToEther(1000000000000)).to.equal('0.000001')
expect(units.weiToEther('100000000000')).to.equal('0.0000001')
expect(units.weiToEther('1000000000')).to.equal('0.000000001')
expect(unit... |
nguillaumin/nabaztag-server | net.violet.platform/src/main/java/net/violet/platform/dataobjects/AgendaData.java | <filename>net.violet.platform/src/main/java/net/violet/platform/dataobjects/AgendaData.java<gh_stars>1-10
package net.violet.platform.dataobjects;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import net.violet.platform.datamodel.Agenda;
import net.violet.platform.datamodel.AgendaImpl;
imp... |
naarani/selenev | test/jtest/yaml/task/format/ValidateTaskWithVars.java | package jtest.yaml.task.format;
import static org.junit.Assert.fail;
import org.junit.Test;
import org.naarani.ecantonchiro.yaml.YamlTaskLib;
public class ValidateTaskWithVars {
@Test
public void testTaskWithLongVarsList() {
String file = "examples/basic/test/testTaskVar.yaml";
YamlTaskLib lib = n... |
ISE2012/ch11 | tuple_iteration.py | teams = ((1, 'Ravens'),(2, 'Panthers'),(5, 'Eagles'),(7, 'Steelers'))
# Notice tuple of tuples
for index, name in teams:
print(index, name)
|
itsHyrican/braytech.org | src/store/index.js | <reponame>itsHyrican/braytech.org<gh_stars>0
import { createStore, combineReducers } from 'redux';
import viewport from './reducers/viewport.js';
import theme from './reducers/theme.js';
import tips from './reducers/tips.js';
import auth from './reducers/auth.js';
import member from './reducers/member.js';
import grou... |
aiditto/tryst | frontend/backoffice/src/store/actions/channelsActions.js | <reponame>aiditto/tryst
import * as actionTypes from "./actionTypes";
import channelsService from "services/channels.service";
import * as actions from "./rootAction";
const getChannelList = () => ({
type: actionTypes.GET_CHANNEL_LIST
});
const getChannelListSuccess = channels => ({
type: actionTypes.GET_CHANNEL_... |
highmed/highmed_dsf | dsf-fhir/dsf-fhir-server/src/main/java/org/highmed/dsf/fhir/search/parameters/ValueSetStatus.java | <reponame>highmed/highmed_dsf
package org.highmed.dsf.fhir.search.parameters;
import org.highmed.dsf.fhir.search.SearchQueryParameter.SearchParameterDefinition;
import org.highmed.dsf.fhir.search.parameters.basic.AbstractStatusParameter;
import org.hl7.fhir.r4.model.Enumerations.SearchParamType;
import org.hl7.fhir.r4... |
suluner/tencentcloud-sdk-cpp | domain/src/v20180808/model/RenewDomainBatchRequest.cpp | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... |
jamesward/blueeyes | src/main/scala/blueeyes/core/http/combinators/HttpRequestCombinators.scala | <reponame>jamesward/blueeyes
package blueeyes.core.http.combinators
import blueeyes.core.http.{HttpRequest, HttpResponse, HttpException, HttpStatus}
import blueeyes.core.http.HttpStatusCodes._
import blueeyes.concurrent.Future
/**
*
* <pre>
* post {
* refineContentType[JObject] {
* requireContent(!(_ \ "ad... |
gis-rpd/pipelines | bcl2fastq/mongo_status_qc.py | #!/usr/bin/env python3
"""Mongo status update for bcl2fastq QC checks (Demultiplex summary)
"""
# standard library imports
import logging
import sys
import os
import argparse
import getpass
import subprocess
#--- project specific imports
#
# add lib dir for this pipeline installation to PYTHONPATH
LIB_PATH = os.path.... |
Acidburn0zzz/peridot | lib/cobalt/cobalt.cc | <reponame>Acidburn0zzz/peridot
// Copyright 2017 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.
#include "peridot/lib/cobalt/cobalt.h"
#include <set>
#include "lib/app/cpp/connect.h"
#include "lib/app/fidl/application_... |
lacknere/platform | src/Administration/Resources/app/administration/test/e2e/cypress/integration/settings/sw-mail-template/visual.spec.js | <reponame>lacknere/platform
// / <reference types="Cypress" />
import SettingsPageObject from '../../../support/pages/module/sw-settings.page-object';
describe('Mail templates: Check module navigation in settings', () => {
// eslint-disable-next-line no-undef
before(() => {
// Clean previous state and... |
airkits/nethopper | base/queue/chan_queue.go | <filename>base/queue/chan_queue.go
// MIT License
// Copyright (c) 2019 gonethopper
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the ... |
LableOrg/java-rfc3881auditlogger | test/it/src/test/java/org/lable/rfc3881/auditlogger/adapter/hbase/RoundTripIT.java | /*
* Copyright © 2015 Lable (<EMAIL>)
*
* 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 agre... |
sslikewater/likewater-shardingphere | sharding-complex-strategy-example/src/main/java/com/example/sharding/complex/service/OrderService.java | <reponame>sslikewater/likewater-shardingphere<gh_stars>0
package com.example.sharding.complex.service;
import com.example.sharding.complex.service.dto.OrderCreateDTO;
import com.example.sharding.complex.service.dto.OrderDTO;
import java.util.List;
/**
* @Author: likewater
* @Description:
* @Date: Create in 5:17 ... |
King0987654/windows2000 | private/windows/shell/lmui/ntshrui.new/guids.h | <reponame>King0987654/windows2000<gh_stars>10-100
//+-------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1995 - 1995.
//
// File: guids.h
//
// Contents: Guids local to this directory
//
// History: 21-Apr-95 ... |
ckclark/leetcode | java/leetcode/pascals_triangle_ii/Solution.java | <gh_stars>0
package leetcode.pascals_triangle_ii;
import java.util.ArrayList;
public class Solution {
public ArrayList<Integer> getRow(int rowIndex) {
ArrayList<Integer> ary = new ArrayList<Integer>();
long C = 1;
ary.add((int)C);
for(int i = 1; i <= rowIndex; i++){
C *= r... |
reels-research/iOS-Private-Frameworks | PhotosUICore.framework/PXPeopleSwipeSelectionManager.h | <reponame>reels-research/iOS-Private-Frameworks
/* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/PhotosUICore.framework/PhotosUICore
*/
@interface PXPeopleSwipeSelectionManager : NSObject <PXAutoScrollerDelegate> {
PXUIAutoScroller * _autoScroller;
NSIndexPath * _currentIndexPath;
... |
OttoWinter/esphomeyaml | esphome/components/ssd1306_base/__init__.py | import esphome.codegen as cg
import esphome.config_validation as cv
from esphome import pins
from esphome.components import display
from esphome.const import (
CONF_EXTERNAL_VCC,
CONF_LAMBDA,
CONF_MODEL,
CONF_RESET_PIN,
CONF_BRIGHTNESS,
CONF_CONTRAST,
CONF_INVERT,
)
ssd1306_base_ns = cg.esp... |
weltam/dremio-oss | sabot/kernel/src/main/java/com/dremio/exec/util/ArrowCrossBufComparator.java | <reponame>weltam/dremio-oss
/*
* Copyright (C) 2017-2019 Dremio Corporation
*
* 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
*
* Unl... |
GEOS-ESM/AeroApps | src/Components/misc/gritas/stdio.h | <filename>src/Components/misc/gritas/stdio.h
* stdio.h - last change: 2/3/94 (ams)
*
* Defines standar i/o units.
*
integer STDIN, STDOUT, STDERR
parameter ( STDIN = 5 )
parameter ( STDOUT = 6 )
parameter ( STDERR = 0 )
|
omarquina/moVirt | moVirt/src/main/java/org/ovirt/mobile/movirt/model/enums/ConsoleProtocol.java | <filename>moVirt/src/main/java/org/ovirt/mobile/movirt/model/enums/ConsoleProtocol.java
package org.ovirt.mobile.movirt.model.enums;
import android.support.annotation.NonNull;
import org.ovirt.mobile.movirt.model.Console;
import java.util.List;
import java.util.SortedSet;
import java.util.TreeSet;
public enum Conso... |
WLPhoenix/stackdio | stackdio/server/core/middleware.py | <gh_stars>0
# -*- coding: utf-8 -*-
# Copyright 2014, Digital Reasoning
#
# 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 require... |
ChristianFox/RDSRemoteDataSolutions | Example/Pods/Headers/Public/KFXAdditions/NSAttributedString+KFXAdditions.h | <gh_stars>0
/********************************
*
* Copyright © 2016-2018 <NAME>
*
* MIT Licence - Full licence details can be found in the file 'LICENSE' or in the Pods-{yourProjectName}-acknowledgements.markdown
*
* This file is included with KFXAdditions
*
************************************/
#import <Found... |
jweyn/DLWP | examples/validate.py | #
# Copyright (c) 2019 <NAME> <<EMAIL>>
#
# See the file LICENSE for your rights.
#
"""
Simple routines for graphically evaluating the performance of a DLWP model.
"""
import keras.backend as K
import numpy as np
import pandas as pd
import xarray as xr
import pickle
from datetime import datetime, timedelta
import mat... |
webmasters/webmasters-cms | spec/controllers/webmasters_cms/admin/pages_controller_spec.rb | require 'spec_helper'
module WebmastersCms
module Admin
describe PagesController, type: :controller do
routes { ::WebmastersCms::Engine.routes }
render_views
let (:page) { create(:webmasters_cms_page) }
let (:page_translation) { page.translations.first }
describe "GET #index" do
... |
REDEAKAA/ToolJS | src/modules/str/random.js | <gh_stars>1-10
import ToolJS from "../main";
import { Logs } from "../deps";
import isObj from "../obj/isObj";
/**
* This method generates a random string in accordance to a set of options, and returns the string. Note that the min and max numbers are inclusive when generating integers.
* @method module:Str.random
... |
neotran85/Android-AppyProduct-App | app/src/main/java/com/appyhome/appyproduct/mvvm/ui/appyproduct/cart/shipping/newaddress/NewAddressActivityModule.java | <gh_stars>0
package com.appyhome.appyproduct.mvvm.ui.appyproduct.cart.shipping.newaddress;
import com.appyhome.appyproduct.mvvm.R;
import com.appyhome.appyproduct.mvvm.data.DataManager;
import com.appyhome.appyproduct.mvvm.utils.rx.SchedulerProvider;
import dagger.Module;
import dagger.Provides;
@Module
public class... |
bspitzmacher/pynet_course | class4/exercise3.py | <reponame>bspitzmacher/pynet_course
# Class 4 exercise 3
# Use Pexpect to retrieve the output of 'show ip int brief' from pynet-rtr2.
import pexpect
from getpass import getpass
def main():
ip_addr = '172.16.31.10'
username = 'pyclass'
port = 8022 # port 22 is rtr1, 8022:rtr2, 9822:srx
password = getpa... |
leander-dsouza/URC-2019 | Autonomous/auto_trav/scripts/depth.py | <gh_stars>1-10
#!/usr/bin/env python
from __future__ import print_function
from collections import defaultdict
import roslib
roslib.load_manifest('auto_trav')
import sys
import rospy
import cv2
import numpy as np
import time
from std_msgs.msg import String
from sensor_msgs.msg import Image
from cv_bridge import CvBridg... |
MoskitoHero/ruby-trello | spec/integration/webhook/find_spec.rb | require 'spec_helper'
RSpec.describe 'Trello::Webhook#find' do
include IntegrationHelpers
before { setup_trello }
it 'find with id' do
VCR.use_cassette('webhook_find_with_id') do
webhook = Trello::Webhook.find('5fa8a1e0009b2a6a669e6efa')
expect(webhook).to be_a(Trello::Webhook)
expect(we... |
adakgh/enterprise-web-application-project | backend/src/main/java/com/example/demo/services/ProductService.java | <gh_stars>0
package com.example.demo.services;
import com.example.demo.exceptions.ResourceNotFoundException;
import com.example.demo.models.dto.ProductDto;
import com.example.demo.persistence.entities.*;
import com.example.demo.persistence.repositories.DiscountPriceRepository;
import com.example.demo.persistence.repos... |
college-questr/qeustr-front-end | src/Components/QuestionDetails/relatedQuestions.js | import React from 'react';
import Style from 'styled-components';
const RelatedQuestion = (props) => {
return (
<>
<Question>{props.questiionTitle}</Question>
<NumAnswers>{props.answerCount}</NumAnswers>
</>
)
}
const Question = Style.p`
font-family: Roboto;
fo... |
olivierthas/Programming-Essentials-2 | Oefeningen_Java/ImportCSV/src/loadcsvindb/CSVLoader.java | <gh_stars>0
package loadcsvindb;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.sql.Connection;
import java.sql.PreparedStatement;
import org.apache.commons.lang3.StringUtils;
import com.opencsv.CSVReader;
public class CSVLoader {
private static final String SQL_INSERT = "INSERT IN... |
bpossolo/deeplearning4j | nd4j/nd4j-backends/nd4j-tests/src/test/java/org/nd4j/linalg/BaseNd4jTest.java | /*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
*... |
ampatspell/ember-cli-documents | addon/document/internal/document.js | import Ember from 'ember';
import InternalObject from './object';
import DocumentState from './-document-state';
import Queue from './-queue';
import DocumentsError from '../../util/error';
const {
Logger: { error }
} = Ember;
const prefixedKeys = [ 'id', 'rev', 'attachments' ];
const isKeyUnderscored = key => key ... |
rigwild/vue-express-ws-mongo-boilerplate | server/webSocket/index.js | 'use strict'
import WebSocket from 'ws'
import { formatLog, formatError } from '../functions'
import { TEST_MODE } from '../../config'
import { wsLogger } from '../winston.config'
import messageHandler from './messageHandler'
/**
* @typedef {function} ErrorLogger
* @param {Error} err an Error object
*/
/**
* Hand... |
dbiir/pard | pard-optimizer/src/main/java/cn/edu/ruc/iir/pard/sql/expr/rules/ContainEliminateLaw.java | package cn.edu.ruc.iir.pard.sql.expr.rules;
import cn.edu.ruc.iir.pard.sql.expr.CompositionExpr;
import cn.edu.ruc.iir.pard.sql.expr.Expr;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class ContainEliminateLaw
extends ExprLaw
{
public boolean i... |
jiadaizhao/LeetCode | 0901-1000/0977-Squares of a Sorted Array/0977-Squares of a Sorted Array.cpp | <gh_stars>10-100
class Solution {
public:
vector<int> sortedSquares(vector<int>& A) {
vector<int> result(A.size());
int left = 0, right = A.size() - 1;
for (int i = A.size() - 1; i >= 0; --i) {
if (A[left] * A[left] <= A[right] * A[right]) {
result[i] = A[right] *... |
geningxiang/javadoc-help | javadoc-demo/src/main/java/org/genx/javadoc/entity/Article.java | package org.genx.javadoc.entity;
import java.util.Date;
/**
* Created with IntelliJ IDEA.
* Description:
* @author genx
* @date 2020/9/8 21:17
*/
public class Article {
/**
* 资讯ID
*/
private Long id;
/**
* 标题
*/
private String title;
/**
* 资讯内容
*/
private... |
s12v/aws-sdk-java | aws-java-sdk-pinpointsmsvoice/src/main/java/com/amazonaws/services/pinpointsmsvoice/AmazonPinpointSMSVoiceClient.java | <filename>aws-java-sdk-pinpointsmsvoice/src/main/java/com/amazonaws/services/pinpointsmsvoice/AmazonPinpointSMSVoiceClient.java
/*
* Copyright 2013-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in co... |
anmolshl/raiden | raiden/utils/deployment.py | import structlog
from eth_utils import to_checksum_address
from raiden.utils import get_contract_path
from raiden.utils.solc import compile_files_cwd
log = structlog.get_logger(__name__)
# Source files for all to be deployed solidity contracts
RAIDEN_CONTRACT_FILES = [
'NettingChannelLibrary.sol',
'ChannelM... |
TimYagan/stroom | stroom-pipeline/src/main/java/stroom/pipeline/filter/TestFilter.java | <reponame>TimYagan/stroom<filename>stroom-pipeline/src/main/java/stroom/pipeline/filter/TestFilter.java
/*
* Copyright 2017 Crown Copyright
*
* 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 a... |
ScalablyTyped/SlinkyTyped | g/graphql-tools__delegate/src/main/scala/typingsSlinky/graphqlToolsDelegate/typesMod/MergedTypeConfig.scala | <gh_stars>10-100
package typingsSlinky.graphqlToolsDelegate.typesMod
import typingsSlinky.graphql.astMod.SelectionSetNode
import typingsSlinky.graphql.definitionMod.GraphQLResolveInfo
import typingsSlinky.graphql.mod.GraphQLSchema
import typingsSlinky.std.Record
import scala.scalajs.js
import scala.scalajs.js.`|`
impo... |
tomitribe/github-api-java-old | src/test/java/org/tomitribe/github/client/CreatePullRequestTest.java | <reponame>tomitribe/github-api-java-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, ... |
pdalbora/gosu-lang | gosu-xml/src/main/java/gw/internal/schema/gw/xsd/w3c/xmlschema/types/complex/TopLevelComplexType.java | package gw.internal.schema.gw.xsd.w3c.xmlschema.types.complex;
/***************************************************************************/
/* THIS IS AUTOGENERATED CODE - DO NOT MODIFY OR YOUR CHANGES WILL BE LOST */
/* THIS CODE CAN BE REGENERATED USING 'xsd-codegen' */
/*********************... |
mikiec84/badger | public/tests/e2e/auth/auth_spec.js | describe('Login', function () {
var loginPage = require('./auth_page.js');
var mockModule;
beforeEach(function () {
mockModule = require('./auth_mock.js');
browser.addMockModule('authMock', mockModule.authMock);
browser.get('/#/dashboard');
});
afterEach(function () {
... |
ViZarAT/DH | .data-dist/mods/cleanslate/abilities.js | "use strict";Object.defineProperty(exports, "__esModule", {value: true}); const Abilities = {
"forceofattraction": {
shortDesc: "On switch-in, this Pokemon summons Gravity.",
onStart: function (source) {
this.field.clearWeather();
this.field.addPseudoWeather('gravity', source, source.ability);
... |
philnik777/CppMake | include/CppBuildSystem/internal/SystemEnvironment.hpp | <filename>include/CppBuildSystem/internal/SystemEnvironment.hpp<gh_stars>0
#include "CppBuildSystem/internal/EnvironmentInfo.hpp"
#include <string>
namespace BuildEnv
{
class SystemEnvironment
{
public:
CompilerInfo getCompilerInfo();
std::string getPkgConfigExecutable();
private:
};
}
|
craft095/sere | lib/nfasl/Dfasl.hpp | #ifndef DFASL_HPP
#define DFASL_HPP
#include <set>
#include <vector>
#include <nlohmann/json.hpp>
#include "boolean/Expr.hpp"
using json = nlohmann::json;
namespace rt {
class Dfasl;
}
namespace nfasl {
class Nfasl;
}
namespace dfasl {
typedef boolean::Expr Predicate;
typedef size_t State;
typedef std::s... |
bsf2dev/bsf | Source/Scripting/bsfScript/Generated/BsScriptCAudioSource.generated.h | //********************************* bs::framework - Copyright 2018-2019 <NAME> ************************************//
//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//
#pragma once
#include "BsScriptEnginePrerequisites.h"
#include "Wrappers/BsS... |
syfxlin/xkjava | xkjava-app/src/main/java/me/ixk/app/beans/Log2Aspect.java | <filename>xkjava-app/src/main/java/me/ixk/app/beans/Log2Aspect.java<gh_stars>1-10
/*
* Copyright (c) 2020, <NAME> (<EMAIL>). All Rights Reserved.
*/
package me.ixk.app.beans;
import me.ixk.framework.annotation.core.Aspect;
import me.ixk.framework.annotation.core.Order;
import me.ixk.framework.aop.Advice;
import me.... |
srl295/icu | locexp/util/translitcb.c | <reponame>srl295/icu
/**********************************************************************
* Copyright (C) 1999-2002, International Business Machines
* Corporation and others. All Rights Reserved.
***********************************************************************/
/*
'transliterating' callback. render us... |
yexiuph/RanOnline | [Lib]__Engine/Sources/G-Logic/DxConsoleMsg.h | <reponame>yexiuph/RanOnline<gh_stars>0
#ifndef DXCONSOLEMSG_H_
#define DXCONSOLEMSG_H_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class DxConsoleMsg
{
public:
virtual void Write( const TCHAR* msg, ... ) = 0;
virtual void Write( int nType, const TCHAR* msg, ... ) = 0;
};
#endif // DXCONSOLEMSG_H_ |
nokia/osgi-microfeatures | com.alcatel.as.http.ioh/src/com/alcatel/as/http/ioh/impl/HttpIOHEngine.java | // Copyright 2000-2021 Nokia
//
// Licensed under the Apache License 2.0
// SPDX-License-Identifier: Apache-2.0
//
package com.alcatel.as.http.ioh.impl;
import com.alcatel.as.http.parser.*;
import com.alcatel.as.http2.*;
import com.alcatel.as.http.ioh.*;
import com.alcatel.as.ioh.engine.*;
import com.alcatel.as.ioh.... |
dmgerman/camel | components/camel-http/src/test/java/org/apache/camel/component/http/helper/HttpHelperTest.java | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * 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 ... |
albinvass/patternfly-react-side-effects | dist/esm/components/Pagination/Pagination.js | import paginate from './paginate';
import { PAGINATION_VIEW, PAGINATION_VIEW_TYPES } from './PaginationConstants';
import Pager from './Pager';
import Paginator from './Paginator';
import PaginationRow from './PaginationRow';
import PaginationRowAmountOfPages from './PaginationRowAmountOfPages';
import PaginationRowArr... |
IB-14/HealthMainz | client/src/components/patient/Auth/HealthMainz/Public/main.js | let loginForm = $('.login-page');
let signUpForm = $('.signUp');
let loginSection = $('.login-section');
let signUpSection = $('.signup-section');
let loginBtn = $('.login-btn');
let signUpBtn = $('.signup-btn');
let message = $('.message');
let adminSection = $('.admin-section');
let passcodeSection = $('.passcode');
... |
ufoscout/jpattern | core/src/test/java/com/jpattern/core/textfiles/FileRenameCommandTest.java | <filename>core/src/test/java/com/jpattern/core/textfiles/FileRenameCommandTest.java<gh_stars>0
package com.jpattern.core.textfiles;
import java.util.Date;
import com.jpattern.core.BaseApplicationTest;
import com.jpattern.core.IProvider;
import com.jpattern.core.command.ACommand;
import com.jpattern.core.textfiles.Fi... |
getrdbc/rdbc-pgsql | rdbc-pgsql-core/src/main/scala/io/rdbc/pgsql/core/internal/fsm/streaming/StrmPullingRows.scala | <gh_stars>10-100
/*
* Copyright 2016 rdbc 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/licenses/LICENSE-2.0
*
* Unless required by appli... |
sarvesh-ranjan/codechef | GbusCountCodeJam/main.cpp | <gh_stars>0
#include <iostream>
#include <vector>
using namespace std;
int main()
{
int t;
cin>>t;
for(int i=1; i<=t; i++){
int n;
cin>>n;
vector<int> citya(n,0);
vector<int> cityb(n,0);
for(int i=0; i<n; i++){
cin>>citya[i]>>cityb[i];
}
... |
marmolak/gray386linux | src/linux-3.7.10/arch/arm/mach-ux500/include/mach/uncompress.h | <reponame>marmolak/gray386linux
/*
* Copyright (C) 2009 ST-Ericsson
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later vers... |
BenjaminJaume/react-redux-hooks | server/controllers/words.controller.js | const db = require("../models");
const Op = db.Sequelize.Op;
module.exports = {
create(req, res) {
const { word, language, partOfSpeech, definition, example, userId } =
req.body;
return db.Word.create({
word: word,
language: language,
partOfSpeech: partOfSpeech,
definition: def... |
VehpuS/learning-haxe-and-haxeflixel | grid-test/export/macos/obj/src/openfl/text/TextFormat.cpp | <gh_stars>0
// Generated by Haxe 4.1.4
#include <hxcpp.h>
#ifndef INCLUDED_openfl_text_TextFormat
#include <openfl/text/TextFormat.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_c5f39c48023aa9de_257_new,"openfl.text.TextFormat","new",0xfdb2c999,"openfl.text.TextFormat.new","openfl/text/TextFormat.hx",257,0xd3329397)
HX_LOCA... |
catinapoke/directx-engine | BallRenderComponent.h | #pragma once
#include <wrl.h>
#include "CommonRenderData.h"
class BallRenderComponent :public CommonRenderData
{
public:
BallRenderComponent() : CommonRenderData(nullptr) {};
BallRenderComponent(ID3D11Device* device);
}; |
bgoonz/DS-n-Algos-Mega-Archive | JAVASCRIPT/DS-and-Algorithms-Prac/Resources/leetcode-/problems/src/heap/TheSkylineProblem.java | package heap;
import java.util.*;
/**
* Created by gouthamvidyapradhan on 13/09/2017.
*
* <p>A city's skyline is the outer contour of the silhouette formed by all the buildings in that
* city when viewed from a distance. Now suppose you are given the locations and height of all the
* buildings as shown on a city... |
lieonCX/XGG | xianglegou/Classes/Function/User/Interface/View/Mine/BankCard/GC_IdentityCardInfoTableViewCell.h | //
// GC_IdentityCardInfoTableViewCell.h
// xianglegou
//
// Created by mini3 on 2017/5/23.
// Copyright © 2017年 xianglegou. All rights reserved.
//
// 身份证 - cell
//
#import "Hen_BaseTableViewCell.h"
@interface GC_IdentityCardInfoTableViewCell : Hen_BaseTableViewCell
///正面照片 回调
@property (nonatomic, copy) void(^... |
stitheridge/isis | viewers/wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/components/scalars/image/WicketImageUtil.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")... |
zhxinyu/cosan | docs/html/class_cosan_1_1_polynomial_features.js | var class_cosan_1_1_polynomial_features =
[
[ "PolynomialFeatures", "class_cosan_1_1_polynomial_features.html#a86256aab2166d0984ea04a14f3a83f3c", null ],
[ "PolynomialFeatures", "class_cosan_1_1_polynomial_features.html#a667914c355d484367861bb30d98b83d4", null ],
[ "GetInteractionFeatures", "class_cosan_1_1... |
SwissTierrasColombia/vu-server | src/api/business/pm/runtime/process/process.business.js | // Models
import RProcessModel from '../../../../models/r.process.model';
export default class ProcessBusiness {
static async getProcessById(rProcessId) {
try {
return await RProcessModel.getProcessById(rProcessId);
} catch (error) {
return null;
}
}
static... |
darylnak/ucdavis-work | UCD/ecs60_40/seansrc/p9/stack.h | #ifndef STACK_H
#define STACK_H
#include <list>
using namespace std;
template <typename T>
class Stack
{
list <T> stackList;
public:
void push(const T &object);
void pop(T &object);
}; // class stack
#include "stack.cpp"
#endif // STACK_H
|
SylvainCorlay/pythran | pythran/pythonic/include/types/dict.hpp | #ifndef PYTHONIC_INCLUDE_TYPES_DICT_HPP
#define PYTHONIC_INCLUDE_TYPES_DICT_HPP
#include "pythonic/include/types/assignable.hpp"
#include "pythonic/include/types/tuple.hpp"
#include "pythonic/include/types/empty_iterator.hpp"
#include "pythonic/include/utils/shared_ref.hpp"
#include "pythonic/include/utils/iterator.h... |
MrPIvanov/SoftUni | 09-JS Advanced/11_JQUERY/JQueryLab/05_CountriesTable/initialize-table.js | function initializeTable() {
addCountry('Bulgaria', 'Sofia');
addCountry('Germany', 'Berlin');
addCountry('Russia', 'Moscow');
$('#createLink').on('click', addNewCountry);
function addNewCountry(){
addCountry($('#newCountryText').val(), $('#newCapitalText').val());
}
function a... |
Slapbox/Trix-ES6 | src/trix/core/utilities/utf16_string.js | <gh_stars>0
/*
* decaffeinate suggestions:
* DS001: Remove Babel/TypeScript constructor workaround
* DS101: Remove unnecessary use of Array.from
* DS102: Remove unnecessary code created because of implicit returns
* DS205: Consider reworking code to avoid use of IIFEs
* DS207: Consider shorter variations of null ... |
nils-drechsel/react-use-webrtc | lib/lib/Controller/CameraStreamController.js | <filename>lib/lib/Controller/CameraStreamController.js
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (r... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.