repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
bnlcas/mathjs | test/expression/keywords.test.js | // test keywords
const assert = require('assert')
const keywords = require('../../src/expression/keywords')
describe('keywords', function () {
it('should return a map with reserved keywords', function () {
assert.deepStrictEqual(Object.keys(keywords).sort(), ['end'].sort())
})
})
|
pierreloicq/Geotrek-admin | geotrek/common/embed/backends.py | <gh_stars>1-10
from embed_video.backends import VideoBackend, UnknownIdException
import re
class DailymotionBackend(VideoBackend):
"""
Backend for Dailymotion URLs.
"""
re_detect = re.compile(
r'^(http(s)?://)?(www\.)?dailymotion.com/.*', re.I
)
re_code = re.compile(
r'''daily... |
javayuga/introUNESP | ICC/RevisaoP2/Arquivos/EX6.c | #include<stdlib.h>
#include<stdio.h>
typedef struct
{
char nome[256];
int idade;
} info;
int main()
{
info usuario[5];
int dia, mes, ano, i=0;
char lixo, nome[256];
FILE* arquivo;
for (i=0; i<2; i++){
printf("%d-\n", i+1);
printf("Informe os dois primeiros nomes: ")... |
golden-dimension/xs2a | xs2a-logger/xs2a-logger-web/src/test/java/de/adorsys/psd2/logger/web/LoggingContextInterceptorTest.java | <reponame>golden-dimension/xs2a<filename>xs2a-logger/xs2a-logger-web/src/test/java/de/adorsys/psd2/logger/web/LoggingContextInterceptorTest.java
/*
* Copyright 2018-2020 adorsys GmbH & Co KG
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the... |
nstickney/judgebean | beanpoll/src/main/java/is/stma/beanpoll/model/Announcement.java | <filename>beanpoll/src/main/java/is/stma/beanpoll/model/Announcement.java
/*
* Copyright 2018 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without li... |
polycotassociates/valeopartners | web/modules/contrib/shs/js/views/WidgetItemView.js | <gh_stars>0
/**
* @file
* A Backbone view for a shs widget items.
*/
(function ($, Drupal, drupalSettings, Backbone) {
'use strict';
Drupal.shs.WidgetItemView = Backbone.View.extend(/** @lends Drupal.shs.WidgetItemView# */{
/**
* Default tagname of this view.
*
* @type {string}
*/
... |
ScalablyTyped/SlinkyTyped | g/googleapis/src/main/scala/typingsSlinky/googleapis/sheetsV4Mod/sheetsV4/SchemaCandlestickData.scala | package typingsSlinky.googleapis.sheetsV4Mod.sheetsV4
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
/**
* The Candlestick chart data, each containing the low, open, close, ... |
EsupPortail/esup-mdw-pegase | src/main/java/fr/univlorraine/mondossierweb/DefaultPropertiesEnvironmentPostProcessor.java | /**
*
* ESUP-Portail ESUP-MONDOSSIERWEB-PEGASE - Copyright (c) 2021 ESUP-Portail consortium
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licens... |
monsanto/6to5 | test/core/fixtures/transformation/es6.classes/constructor-binding-collision/actual.js | class Example {
constructor() {
var Example;
}
}
let t = new Example();
|
albertobarri/idk | system/lib/libc/musl/src/stdio/putc_unlocked.c | #include "stdio_impl.h"
int (putc_unlocked)(int c, FILE *f)
{
return putc_unlocked(c, f);
}
weak_alias(putc_unlocked, fputc_unlocked);
weak_alias(putc_unlocked, _IO_putc_unlocked);
|
mwk719/microservice_practice | microservice-tool/src/main/java/com/microservice/tool/constant/URIPrefixEnum.java | <gh_stars>1-10
package com.microservice.tool.constant;
/**
* 接口服务uri前缀
*
* @author MinWeikai
* @date 2019/12/13 17:43
*/
public enum URIPrefixEnum {
/**
* 内部服务调用前缀
*/
INTERIOR("interior"),
/**
* 外部服务调用标志
*/
EXTERNAL("external"),
;
private String value;
URIPrefixEnum(String value) {
this.value... |
MewX/contendo-viewer-v1.6.3 | org/apache/fontbox/ttf/CFFTable.java | <filename>org/apache/fontbox/ttf/CFFTable.java<gh_stars>1-10
/* */ package org.apache.fontbox.ttf;
/* */
/* */ import java.io.IOException;
/* */ import org.apache.fontbox.cff.CFFFont;
/* */ import org.apache.fontbox.cff.CFFParser;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* ... |
mutilin/cpachecker-ldv | src/org/sosy_lab/cpachecker/cpa/smg/SMGStateInformation.java | <gh_stars>1-10
/*
* CPAchecker is a tool for configurable software verification.
* This file is part of CPAchecker.
*
* Copyright (C) 2007-2015 <NAME>
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licen... |
monciego/TypeScript | tests/baselines/reference/declarationEmitCommonSourceDirectoryDoesNotContainAllFiles.js | //// [tests/cases/compiler/declarationEmitCommonSourceDirectoryDoesNotContainAllFiles.ts] ////
//// [index.ts]
export * from "./src/"
//// [index.ts]
export class B {}
//// [index.ts]
import { B } from "b";
export default function () {
return new B();
}
//// [index.ts]
export * from "./src/"
//// [in... |
Sourav692/FAANG-Interview-Preparation | Algo and DSA/LeetCode-Solutions-master/Python/missing-number-in-arithmetic-progression.py | # Time: O(logn)
# Space: O(1)
class Solution(object):
def missingNumber(self, arr):
"""
:type arr: List[int]
:rtype: int
"""
def check(arr, d, x):
return arr[x] != arr[0] + d*x
d = (arr[-1]-arr[0])//len(arr)
left, right = 0, len(arr)-1
w... |
ferp132/Programming-Class | UDPEchoWithBroadCast/UDPEchoWithBroadcast/consoletools.cpp | <reponame>ferp132/Programming-Class
/**
* @file ConsoleTools.h
*
*
* @brief Some simple tools to get input from the user on a windows console.
*
*/
#include "consoletools.h"
char* GetLineFromConsole(char* pBuffer, int iNumChars)
{
fgets(pBuffer, iNumChars, stdin);
char* pBufferEnd = pBuffer + iNumChars;
// remove ... |
luisolimpio/superbowleto | src/database/migrations/20200519000000-create-configuration.js | const {
STRING,
DATE,
} = require('sequelize')
module.exports = {
up: queryInterface => queryInterface.createTable('Configurations', {
id: {
type: STRING,
primaryKey: true,
allowNull: false,
},
external_id: {
type: STRING,
allowNull: false,
unique: true,
},
... |
marcosbacci/hexagonal | src/main/java/io/wkrzywiec/hexagonal/library/domain/borrowing/core/model/OverdueReservation.java | <filename>src/main/java/io/wkrzywiec/hexagonal/library/domain/borrowing/core/model/OverdueReservation.java
package io.wkrzywiec.hexagonal.library.domain.borrowing.core.model;
import lombok.AllArgsConstructor;
@AllArgsConstructor
public class OverdueReservation {
private Long reservationId;
private Long bookId... |
evonove/evonove | django-website/website/urls.py | from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin
from django.views.generic import TemplateView
from wagtail.contrib.sitemaps.views import sitemap
from wagtail.admin import urls as wagtailadmin_urls
from wagtail.core ... |
mutablelogic/go-mutablehome | _old/unit/googlecast/application.go | <gh_stars>1-10
/*
Mutablehome Automation: Googlecast
(c) Copyright <NAME> 2020
All Rights Reserved
For Licensing and Usage information, please see LICENSE file
*/
package googlecast
import (
"fmt"
"strconv"
)
////////////////////////////////////////////////////////////////////////////////
// TYPES
type applic... |
Qt-Widgets/im-desktop-imported | gui/media/ptt/AudioConverter.cpp | #include "stdafx.h"
#include "AudioConverter.h"
#include "AudioUtils.h"
#include <stdio.h>
extern "C"
{
#include "libavformat/avformat.h"
#include "libavformat/avio.h"
#include "libavcodec/avcodec.h"
#include "libavutil/audio_fifo.h"
#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/f... |
Magnusrn/runelite | runescape-client/src/main/java/class113.java | import net.runelite.mapping.Export;
import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("dm")
public class class113 {
@ObfuscatedName("ar")
@ObfuscatedSignature(
descriptor = "Lnm;"
)
static Bounds field1378;
... |
bgunics-talend/tdi-studio-se | main/plugins/org.talend.repository/src/main/java/org/talend/repository/preference/StatusDialog.java | <gh_stars>0
// ============================================================================
//
// Copyright (C) 2006-2019 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should... |
LeeLenaleee/Ipsen3_Backend | src/main/java/nl/hsleiden/resource/OfferteResource.java | <reponame>LeeLenaleee/Ipsen3_Backend
package nl.hsleiden.resource;
import com.fasterxml.jackson.annotation.JsonView;
import io.dropwizard.hibernate.UnitOfWork;
import nl.hsleiden.View;
import nl.hsleiden.model.OfferteModel;
import nl.hsleiden.persistence.OfferteDAO;
import nl.hsleiden.service.OfferteService;
import nl... |
darongE/jui | js/chart/grid/range.js | jui.define("chart.grid.range", [ "util.scale" ], function(UtilScale) {
var RangeGrid = function(orient, chart, grid) {
this.top = function(chart, g) {
if (!grid.line) {
g.append(this.axisLine(chart, {
x2 : this.size
}));
}
var min = this.scale.min(),
ticks = this.ticks,
values = this... |
Mattlk13/oci-go-sdk | waas/list_waas_policies_request_response.go | <gh_stars>0
// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved.
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You m... |
miotech/KUN | kun-metadata/kun-metadata-core/src/main/java/com/miotech/kun/metadata/core/model/process/PullDatasetProcess.java | <reponame>miotech/KUN<filename>kun-metadata/kun-metadata-core/src/main/java/com/miotech/kun/metadata/core/model/process/PullDatasetProcess.java
package com.miotech.kun.metadata.core.model.process;
import java.time.OffsetDateTime;
/**
*
*/
public class PullDatasetProcess extends PullProcess {
/**
* Dataset ... |
leslieJt/shineout | src/Table/index.js | import React, { PureComponent } from 'react'
import PropTypes from 'prop-types'
import immer from 'immer'
import deepEqual from 'deep-eql'
import pagable from '../hoc/pagable'
import Table from './Table'
const TableWithPagination = pagable(Table)
export default class extends PureComponent {
static displayName = 'Sh... |
Everysick/MyLibrary | contest_template.cpp | //-------------include
#include<cstdio>
#include<string>
#include<iostream>
#include<cstring>
#include<queue>
#include<stack>
#include<map>
#include<set>
#include<algorithm>
#include<cmath>
#include<cstdlib>
#include<climits>
#include<vector>
#include<list>
#include<deque>
#include<functional>
#include<sstream>
#includ... |
mccalluc/flask-data-portal | context/app/static/js/components/detailPage/files/FileBrowserFile/style.js | import styled from 'styled-components';
import Typography from '@material-ui/core/Typography';
import InsertDriveFileIcon from '@material-ui/icons/InsertDriveFileRounded';
import InfoIcon from '@material-ui/icons/InfoRounded';
import TableRow from '@material-ui/core/TableRow';
import Chip from '@material-ui/core/Chip';... |
bosschaert/jclouds | common/trmk/src/test/java/org/jclouds/vcloud/terremark/xml/PublicIpAddressHandlerTest.java | /**
*
* Copyright (C) 2010 Cloud Conscious, LLC. <<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
*
* ... |
lechium/tvOS145Headers | System/Library/PrivateFrameworks/Memories.framework/MiroPlayerViewController.h | <reponame>lechium/tvOS145Headers
/*
* This header is generated by classdump-dyld 1.5
* on Wednesday, April 28, 2021 at 9:09:27 PM Mountain Standard Time
* Operating System: Version 14.5 (Build 18L204)
* Image Source: /System/Lib... |
glennji/openlumify | core/core-test/src/main/java/org/openlumify/core/model/lock/LockRepositoryTestBase.java | <gh_stars>1-10
package org.openlumify.core.model.lock;
import org.junit.After;
import org.junit.Before;
import org.openlumify.core.util.ShutdownListener;
import org.openlumify.core.util.ShutdownService;
import org.openlumify.core.util.OpenLumifyLogger;
import org.openlumify.core.util.OpenLumifyLoggerFactory;
import j... |
CDH-Studio/Skillhub | services/frontend/src/scenes/index.js | export {default as Landing} from "./Landing";
export {default as Login} from "./Login";
export {default as Onboarding} from "./Onboarding";
export {default as Profile} from "./Profile";
export {default as SignUp} from "./SignUp";
export {default as Search} from "./Search";
export {default as People} from "./People";
ex... |
zzmjson/Timo | modules/system/src/main/java/com/linln/modules/system/service/ScaleTableService.java | package com.linln.modules.system.service;
import com.linln.common.enums.StatusEnum;
import com.linln.modules.system.domain.Scale;
import com.linln.modules.system.domain.ScaleType;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.transaction.annota... |
clamoriniere/go-quay | models/create_robot.go | // Code generated by go-swagger; DO NOT EDIT.
package models
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"github.com/go-openapi/errors"
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"github.com/go-open... |
phpyandong/opentaobao | api/xhotel/TaobaoXhotelDataServiceSellerServiceindex.go | <gh_stars>1-10
package xhotel
import (
"github.com/bububa/opentaobao/core"
"github.com/bububa/opentaobao/model/xhotel"
)
/*
卖家服务指数查询
taobao.xhotel.data.service.seller.serviceindex
卖家服务指数查询
*/
func TaobaoXhotelDataServiceSellerServiceindex(clt *core.SDKClient, req *xhotel.TaobaoXhotelDataServiceSellerServic... |
Schoperation/CardSchop | src/main/java/schoperation/cardschop/command/play/CollectCommand.java | <reponame>Schoperation/CardSchop
package schoperation.cardschop.command.play;
import discord4j.core.object.entity.Guild;
import discord4j.core.object.entity.MessageChannel;
import discord4j.core.object.entity.User;
import schoperation.cardschop.card.Player;
import schoperation.cardschop.card.Table;
import schoperation... |
mankeyl/elasticsearch | x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/inference/allocation/TrainedModelAllocationService.java | <reponame>mankeyl/elasticsearch
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
package org.elasticsearch.xpack.ml... |
FireCode20/refinedstorage | src/main/java/com/raoulvdberge/refinedstorage/tile/externalstorage/ItemStorageDrawer.java | <gh_stars>0
package com.raoulvdberge.refinedstorage.tile.externalstorage;
import com.jaquadro.minecraft.storagedrawers.api.storage.IDrawer;
import com.jaquadro.minecraft.storagedrawers.api.storage.attribute.IVoidable;
import com.raoulvdberge.refinedstorage.api.storage.AccessType;
import com.raoulvdberge.refinedstorage... |
yeikel/vertx-web | vertx-web-graphql/src/main/java/io/vertx/ext/web/handler/graphql/GraphiQLHandler.java | /*
* Copyright 2019 Red Hat, Inc.
*
* Red Hat licenses this file to you under the Apache License, version 2.0
* (the "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
cherish8513/Glanner | backend/glanner/src/main/java/com/glanner/core/repository/DailyWorkGlannerRepository.java | package com.glanner.core.repository;
import com.glanner.core.domain.glanner.DailyWorkGlanner;
import org.springframework.data.jpa.repository.JpaRepository;
public interface DailyWorkGlannerRepository extends JpaRepository<DailyWorkGlanner, Long> {
} |
LeopoldHock/new-horizons-web | app/models/applog.js | import Model, { attr } from '@ember-data/model';
export default class ApplogModel extends Model {
@attr("string") createdAt;
@attr("string") type;
@attr("string") text;
toJSON() {
return this.serialize();
}
} |
pavan3999/EbookReader | DroidUtils/src/main/java/io/github/longluo/util/VideoUtils.java | package io.github.longluo.util;
import android.content.Context;
import android.media.MediaMetadataRetriever;
import android.net.Uri;
import java.io.File;
public class VideoUtils {
public static long getVideoDurationMS(Context context, File file) {
if (context == null || file == null) {
AppLo... |
Tikubonn/nanafy | src/nanafy-relocation/src/setup-image-relocation-with-nanafy-relocation.h | #include <stddef.h>
#include <windows.h>
extern int setup_image_relocation_with_nanafy_relocation (nanafy_section, nanafy_relocation*, nanafy*, IMAGE_RELOCATION*);
|
reels-research/iOS-Private-Frameworks | DocumentCamera.framework/ICDocCamPreviewView.h | /* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/DocumentCamera.framework/DocumentCamera
*/
@interface ICDocCamPreviewView : UIView
@property (nonatomic, retain) AVCaptureSession *session;
@property (nonatomic, readonly) AVCaptureVideoPreviewLayer *videoPreviewLayer;
+ (Class)layerClass;
... |
macabeus/former-kit | src/Dropdown/index.js | <filename>src/Dropdown/index.js
import ThemeConsumer from '../ThemeConsumer'
import Dropdown from './Dropdown'
const consumeTheme = ThemeConsumer('UIDropdown')
export default consumeTheme(Dropdown)
|
ftaiolivista/snabbdom-pragma | test/jsx-custom-modules-specs/simple-element/transform-babel.js | <filename>test/jsx-custom-modules-specs/simple-element/transform-babel.js
import Snabbdom from '../../../src/index';
export default (() => {
return Snabbdom.createElementWithModules({"attrs": "", "props": ""})(
'div',
null,
'Hello World'
);
});
|
epires/OpenConext-dashboard | dashboard-server/src/test/java/dashboard/service/impl/ActionsServiceImplTest.java | <reponame>epires/OpenConext-dashboard
package dashboard.service.impl;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import dashboard.domain.*;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Matchers;
import org... |
zhoulipeng/cppwork | unbelievable/scanf_value32_1.c | #include <stdio.h>
#include <stdlib.h>
int main()
{
int a;
//scanf("%d", &a);
a = 2;
unsigned char *p = (unsigned char *)&a;
printf("o:%02hx", *p);
printf("%02hx", *(p + 1));
printf("%02hx", *(p + 2));
printf("%02hx\n", *(p + 3));
a+=a*=a-=a*=3;
printf("a = %d\n", a);
return... |
inodeman/kie-tools | packages/dashbuilder/dashbuilder-backend/dashbuilder-external-backend/src/test/java/org/dashbuilder/external/impl/ComponentAssetProviderImplTest.java | <filename>packages/dashbuilder/dashbuilder-backend/dashbuilder-external-backend/src/test/java/org/dashbuilder/external/impl/ComponentAssetProviderImplTest.java
/*
* Copyright 2020 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exc... |
Zitara/BRLCAD | src/util/pixmerge.c | <filename>src/util/pixmerge.c<gh_stars>0
/* P I X M E R G E . C
* BRL-CAD
*
* Copyright (c) 1986-2016 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesse... |
codeforamerica/publisher | test/integration/local_transaction_api_test.rb | <gh_stars>0
require 'integration_test_helper'
class LocalTransactionApiTest < ActionDispatch::IntegrationTest
setup do
authority = FactoryGirl.create(:local_authority_with_contact,
snac: "AA00",
contact_address: ["Line 1", "line 2"],
contact_url: "http://some.council.gov.uk/contact",
cont... |
ROTARTSI82/JGame | src/main/java/com/rotartsi/jgame/gui/ProgressBar.java | package com.rotartsi.jgame.gui;
import com.rotartsi.jgame.sprite.Sprite;
import java.awt.*;
import java.awt.geom.Rectangle2D;
import java.awt.image.BufferedImage;
/**
* Useful bar for displaying progress.
* <p>
* Could be useful as a Health bar too.
* <p>
* Extends {@link Sprite}
*/
public class ProgressBar ex... |
samchon/ModernCppChallengeStudy | src/ch3/stringify.hpp | #pragma once
#include <string>
#include <exception>
#include "../utils/console.hpp"
namespace ch3
{
namespace stringify
{
template <typename T>
std::string to_hex_string(T&& val)
{
static const std::string CHARACTERS = "0123456789ABCDEF";
if (val >= 0xFF)
throw std::overflow_error("Must be less or equal to ... |
bladeofgod/fidl_study_demo | fidl/android/src/main/java/com/infiniteloop/fidl/FlutterException.java | <reponame>bladeofgod/fidl_study_demo<filename>fidl/android/src/main/java/com/infiniteloop/fidl/FlutterException.java<gh_stars>10-100
package com.infiniteloop.fidl;
import android.util.Log;
import io.flutter.BuildConfig;
public class FlutterException extends RuntimeException {
private static final String TAG = "Flu... |
lambert-x/video_semisup | mmaction/models/losses/cosine_simi_loss.py | import torch
import numpy as np
from ..builder import LOSSES
import torch.nn as nn
@LOSSES.register_module()
class CosineSimiLoss(torch.nn.Module):
def __init__(self, dim=1):
super(CosineSimiLoss, self).__init__()
self.criterion = torch.nn.CosineSimilarity(dim=dim)
def forward(self, v1, v2):
... |
concord-consortium/geocode | cypress/integration/smoke/code-panel-ui.test.js | import ModelOptions from "../../support/elements/ModelOptionPanel";
import LeftPanel from "../../support/elements/LeftPanel"
import CodeTab from "../../support/elements/CodeTab"
const modelOptions = new ModelOptions;
const leftPanel = new LeftPanel;
const codeTab = new CodeTab;
context("Code panel", () => {
befor... |
vlsinitsyn/axis1 | tests/auto_build/testcases/client/cpp/LimitedAllTestlClient.cpp | <reponame>vlsinitsyn/axis1<filename>tests/auto_build/testcases/client/cpp/LimitedAllTestlClient.cpp
#include "AllComplexType.hpp"
#include "AllTestSoap.hpp"
#include <iostream>
#include <axis/AxisException.hpp>
#include <ctype.h>
#define WSDL_DEFAULT_ENDPOINT "http://localhost:80/axis/LimitedAll"
void PrintUsage();
... |
isuhao/ravl2 | RAVL2/MSVC/include/Ravl/Point2dObs.hh | <gh_stars>0
#include "../.././Math/Optimisation/Point2dObs.hh"
|
jshinn6788/extentreports-java | src/test/java/com/aventstack/extentreports/reporter/HtmlRichViewReporterConfigurationTest.java | <filename>src/test/java/com/aventstack/extentreports/reporter/HtmlRichViewReporterConfigurationTest.java<gh_stars>0
package com.aventstack.extentreports.reporter;
import java.lang.reflect.Method;
import org.testng.Assert;
import org.testng.annotations.Test;
import com.aventstack.extentreports.reporter.configuration.... |
154544017/EasyGo | app/src/main/java/com/software/tongji/easygo/Login/LoginPresenter.java | package com.software.tongji.easygo.Login;
import android.os.Handler;
import com.software.tongji.easygo.Bean.UserData;
import com.software.tongji.easygo.Net.ApiService;
import com.software.tongji.easygo.Net.BaseResponse;
import com.software.tongji.easygo.Net.DefaultObserver;
import com.software.tongji.easygo.Net.Retro... |
faraz891/gitlabhq | lib/gitlab/database/partitioning_migration_helpers/index_helpers.rb | <reponame>faraz891/gitlabhq<gh_stars>1-10
# frozen_string_literal: true
module Gitlab
module Database
module PartitioningMigrationHelpers
module IndexHelpers
include Gitlab::Database::MigrationHelpers
include Gitlab::Database::SchemaHelpers
# Concurrently creates a new index on a p... |
cryst-al/novoline | src/com/viaversion/viaversion/api/protocol/remapper/PacketRemapper.java | <filename>src/com/viaversion/viaversion/api/protocol/remapper/PacketRemapper.java<gh_stars>1-10
package com.viaversion.viaversion.api.protocol.remapper;
import com.viaversion.viaversion.api.protocol.remapper.PacketRemapper$1;
import com.viaversion.viaversion.api.protocol.remapper.TypeRemapper;
import com.viaversion.vi... |
trency92/flow-core-x | docker/src/main/java/com/flowci/docker/domain/ContainerUnit.java | package com.flowci.docker.domain;
import com.github.dockerjava.api.command.InspectContainerResponse;
import com.github.dockerjava.api.model.Container;
import lombok.Getter;
@Getter
public class ContainerUnit implements Unit {
private final String id;
private final String name;
private final String stat... |
tracelink/watchtower | watchtower-module-eslint/src/main/java/com/tracelink/appsec/module/eslint/engine/json/CategoryDefinition.java | <reponame>tracelink/watchtower<filename>watchtower-module-eslint/src/main/java/com/tracelink/appsec/module/eslint/engine/json/CategoryDefinition.java<gh_stars>1-10
package com.tracelink.appsec.module.eslint.engine.json;
/**
* JSON model for the provided rule categories (rulesets) returned by ESLint.
*
* @author csm... |
mbell697/pinion | pinion-dropwizard/src/main/java/org/pinion/dropwizard/UglifierConfiguration.java | <gh_stars>0
package org.pinion.dropwizard;
/**
* Created with IntelliJ IDEA.
* User: mbell697
* Date: 4/22/13
* Time: 10:48 AM
* To change this template use File | Settings | File Templates.
*/
public class UglifierConfiguration {
}
|
herb-go/herbmodules | healthcheck/checker_test.go | <gh_stars>0
package healthcheck
import (
"encoding/json"
"io/ioutil"
"net/http"
"net/http/httptest"
"testing"
)
var testcode = Code(1)
var testhealthychecker = func() (Status, *Info) {
return StatusHealthy, nil
}
var testhealthydatachecker = func() (Status, *Info) {
return StatusHealthy, NewInfo().WithMsg("tes... |
Zenrer/p1xt-guides | evidence/tier-0/ruby/ryan_macdonald_minesweeper_project/tile.rb | require "colorize"
class Tile
attr_reader :bomb, :neighbours, :revealed
def initialize
@bomb = false
@flagged = false
@revealed = false
@neighbours = 0
end
def add_neighbour
@neighbours += 1
end
def flag
@flagged = !@flagged unless @revealed
end
def reveal
@revealed = t... |
TheSledgeHammer/2.11BSD | contrib/gnu/texinfo/dist/lib/getopt.h | <reponame>TheSledgeHammer/2.11BSD
/* $NetBSD: getopt.h,v 1.1.1.1 2016/01/14 00:11:29 christos Exp $ */
/* getopt.h -- wrapper for gnulib getopt_.h.
Id: getopt.h,v 1.6 2004/09/14 12:36:00 karl Exp
Copyright (C) 2004 Free Software Foundation, Inc.
Copying and distribution of this file, with or without modific... |
ted-eckel/in1box-desktop | app/containers/DriveListItem.js | <reponame>ted-eckel/in1box-desktop<filename>app/containers/DriveListItem.js
import React, { Component } from 'react'
import Paper from 'material-ui/Paper'
import { shell } from 'electron'
export default class DriveListItem extends Component {
constructor(props) {
super(props)
this.state = { iconUrl: `icons/$... |
AdvancedMical/until-the-end | src/main/java/HamsterYDS/UntilTheEnd/item/magic/FireWand.java | package HamsterYDS.UntilTheEnd.item.magic;
import java.util.HashMap;
import HamsterYDS.UntilTheEnd.Config;
import HamsterYDS.UntilTheEnd.event.hud.SanityChangeEvent;
import HamsterYDS.UntilTheEnd.event.hud.SanityChangeEvent.ChangeCause;
import HamsterYDS.UntilTheEnd.internal.DisableManager;
import HamsterYDS.UntilThe... |
awaisab172/steal | test/load_module_twice_clone/main.js | <reponame>awaisab172/steal
var foo = require("./foo");
var clone = require("steal-clone");
CLONE_DONE = clone({}).import("~/foo").then(function(){
});
|
kinddevil/hotel | v2/public/js/services/hotelListService/hotelListService.js | define(['backbone', '../../channel',
'HotelsExpediaCollection',
'HotelsTravelocityCollection',
'SaveHotelRequestModel',
'SaveApiHotelResponseModel',
'HotelCollection',
'App'
],
function(Backbone, Channel, HotelListExpedia, HotelListTravelocity, SaveHotelRequestModel, SaveApiHotelResp... |
BastiaanJansen/algorithms-and-data-structures | src/test/java/Strings/AlphabeticalTest.java | package Strings;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class AlphabeticalTest {
@Test
void isAlphabetical() {
assertTrue(Alphabetical.isAlphabetical("abcd"));
}
@Test
void isNotAlphabetical() {
assertFalse(Alphabetical.isAlphabetica... |
jrbeverly/JCompiler | src/test/resources/assignment_testcases/a3/Je_6_StaticThis_InvokeNonStatic.java | // JOOS1:TYPE_CHECKING,THIS_IN_STATIC_CONTEXT
// JOOS2:TYPE_CHECKING,THIS_IN_STATIC_CONTEXT
// JAVAC:UNKNOWN
//
/**
* Typecheck:
* - A this reference (AThisExp) must not occur, explicitly or
* implicitly, in a static method, an initializer for a static field,
* or an argument to a super or this constructor invocat... |
himanshur-dev/ribopy | tests/api/rnaseq_api_test.py | # -*- coding: utf-8 -*-
import unittest
import os
from io import StringIO, BytesIO
import h5py
from ribopy import Ribo
from ribopy import create
from ribopy.merge import merge_ribos
from ribopy.settings import *
from ribopy.core.exceptions import *
from ribopy.rnaseq import set_rnaseq, get_rnaseq
import sys
test_dir... |
LZKDreamer/MouShiMouKe | app/src/main/java/com/lzk/moushimouke/Presenter/NotificationPresenter.java | package com.lzk.moushimouke.Presenter;
import com.lzk.moushimouke.Model.Bean.Notification;
import com.lzk.moushimouke.Model.NotificationFragmentModel;
import com.lzk.moushimouke.View.Interface.INotificationFragmentCallBack;
import com.lzk.moushimouke.View.Interface.INotificationPresenterCallBack;
import java.util.Lis... |
tonny0812/sia-task | sia-task-core/src/main/java/com/sia/core/entity/BasicTask.java | /*-
* <<
* task
* ==
* Copyright (C) 2019 sia
* ==
* 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... |
moutainhigh/jia | jia-mapper-isp/src/main/java/cn/jia/isp/dao/IspServerMapper.java | <gh_stars>1-10
package cn.jia.isp.dao;
import cn.jia.isp.entity.IspServer;
import com.github.pagehelper.Page;
public interface IspServerMapper {
int deleteByPrimaryKey(Integer id);
int insert(IspServer record);
int insertSelective(IspServer record);
IspServer selectByPrimaryKey(Integer id);
in... |
tomjbarry/Penstro | src/main/java/com/py/py/service/mail/ProductionEmailClientManager.java | package com.py.py.service.mail;
import java.util.UUID;
import javax.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;
import com.amazonaws.services.simpleemail.AmazonSimpleEmailServiceClient;
import com.amazonaws.services.simpleemail.model.Body;
import com.amazonaws.services.s... |
jlmaurer/tectosaur | tests/conftest.py | <reponame>jlmaurer/tectosaur<gh_stars>10-100
import os
import pytest
def pytest_addoption(parser):
parser.addoption("--runslow", action="store_true", help="run slow tests")
parser.addoption("--tctquiet", action="store_true", help="hide debug logging")
parser.addoption(
"--save-golden-masters", acti... |
tyang513/QLExpress | src/test/java/com/ql/util/express/test/OperatorExample.java | package com.ql.util.express.test;
import com.ql.util.express.Operator;
import com.ql.util.express.OperatorOfNumber;
class GroupOperator extends Operator {
public GroupOperator(String aName) {
this.name= aName;
}
public Object executeInner(Object[] list)throws Exception {
Object result = Integer.valueOf(0);
... |
mirandachristanto/my-service | public/js/ms_point.js | <gh_stars>0
var table_point;
function openUpdatePoints(id){
posting({
url: base_url+"/ms_points/get",
param: {
id:id,
},
done: function (res) {
console.log(res.data)
$('#update_id').val(res.data.id_points)
$('#update_idprograms').val(r... |
paige-ingram/nwhacks2022 | node_modules/@fluentui/react-icons/lib/esm/components/CalendarLtr24Filled.js | import * as React from 'react';
import wrapIcon from '../utils/wrapIcon';
const rawSvg = (iconProps) => {
const { className, primaryFill } = iconProps;
return React.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", className: className },
React.crea... |
jeffpuzzo/jp-rosa-react-form-wizard | node_modules/@patternfly/react-core/dist/js/helpers/Popper/thirdparty/popper-core/utils/format.js | <gh_stars>0
"use strict";
// @ts-nocheck
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @param str
* @param args
*/
function format(str, ...args) {
return [...args].reduce((p, c) => p.replace(/%s/, c), str);
}
exports.default = format;
//# sourceMappingURL=format.js.map |
VHAINNOVATIONS/Telepathology | Source/Java/CoreValueObjects/storage/QueueMessage.java | <filename>Source/Java/CoreValueObjects/storage/QueueMessage.java
package gov.va.med.imaging.business.storage.hibernate;
import java.util.Set;
import java.util.HashSet;
import java.io.Serializable;
import java.util.Date;
public class QueueMessage implements Serializable
{
/**
* This attribute maps to the column IE... |
shammishailaj/ghd | pkg/utils/sqs.go | <filename>pkg/utils/sqs.go
package utils
import (
"database/sql"
"encoding/json"
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/sqs"
log "github.com/sirupsen/logrus"
"io/ioutil"
"net/http"
"os"
"github.com/shammishailaj/ghd/pkg/schemas"
"str... |
tanhaichao/leopard-boot | leopard-boot-mvc-parent/leopard-boot-mvc-json/src/main/java/io/leopard/web/mvc/json/TypeJsonSerializer.java | <filename>leopard-boot-mvc-parent/leopard-boot-mvc-json/src/main/java/io/leopard/web/mvc/json/TypeJsonSerializer.java
package io.leopard.web.mvc.json;
import java.lang.reflect.Field;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
impo... |
bgalloway1/enroll | spec/helpers/broker_agencies/profiles_helper_spec.rb | require 'rails_helper'
RSpec.describe BrokerAgencies::ProfilesHelper, dbclean: :after_each, :type => :helper do
let(:user) { FactoryBot.create(:user) }
let(:person) { FactoryBot.create(:person, user: user) }
let(:person2) { FactoryBot.create(:person) }
describe 'disable_edit_broker_agency?' do
it 'should... |
wcicola/jitsi | src/net/java/sip/communicator/service/protocol/event/SubscriptionMovedEvent.java | <gh_stars>1000+
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Copyright @ 2015 Atlassian Pty Ltd
*
* 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... |
Silvermedia/unitils | unitils-test/src/test/java/org/unitils/mock/DetailedObservedInvocationsReportFieldNamesIntegrationTest.java | /*
* Copyright 2013, Unitils.org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
timfel/netbeans | java/maven.model/src/org/netbeans/modules/maven/model/pom/Project.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 ... |
ScalablyTyped/SlinkyTyped | i/ipp/src/main/scala/typingsSlinky/ipp/anon/Printeruri.scala | <gh_stars>10-100
package typingsSlinky.ipp.anon
import typingsSlinky.ipp.mod.CharacterSet
import typingsSlinky.ipp.mod.MimeMediaType
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAcce... |
eacevedof/prj_eafpos | frontend/restrict/src/components/bootstrap/button/submitasync.js | <filename>frontend/restrict/src/components/bootstrap/button/submitasync.js
import React from 'react'
//type: primary, secondary, success, danger, warning, info, light, dark
function SubmitAsync({innertext, type, issubmitting}) {
//console.log("submit","innertext:",innertext,"type:", type,"issubmitting:", issubmittin... |
oitofelix/dosix | libc/test/realloc.c | <filename>libc/test/realloc.c<gh_stars>1-10
/* REALLOC.C: This program allocates a block of memory for buffer
* and then uses _msize to display the size of that block. Next, it
* uses realloc to expand the amount of memory used by buffer
* and then calls _msize again to display the new amount of
* memory allocated ... |
Playtika/nosql-batch-updater | aerospike-reactor-batch-updater/src/test/java/nosql/batch/update/reactor/aerospike/wal/AerospikeFailingWriteAheadLogManager.java | package nosql.batch.update.reactor.aerospike.wal;
import com.aerospike.client.Value;
import nosql.batch.update.aerospike.lock.AerospikeBatchLocks;
import nosql.batch.update.reactor.wal.ReactorFailingWriteAheadLogManager;
import nosql.batch.update.reactor.wal.ReactorWriteAheadLogManager;
import java.util.concurrent.at... |
yoshinoToylogic/bulletsharp | src/Solve2LinearConstraint.cpp | <filename>src/Solve2LinearConstraint.cpp
#include "StdAfx.h"
#ifndef DISABLE_CONSTRAINTS
#include "RigidBody.h"
#include "Solve2LinearConstraint.h"
Solve2LinearConstraint::Solve2LinearConstraint(btSolve2LinearConstraint* native, bool preventDelete)
{
_native = native;
_preventDelete = preventDelete;
}
... |
sxmatch/taibai-microserviceplatform | taibai-admin/taibai-admin-biz/src/main/java/com/taibai/admin/service/VerifyCodeService.java | package com.taibai.admin.service;
import com.taibai.admin.api.dto.VerifyCodeDTO;
import com.taibai.common.core.util.R;
public interface VerifyCodeService {
/**
* sendVerifyCodeForLogin
*
* @param verifyCodeDTO verifyCodeDTO
*/
R sendVerifyCodeForLogin(VerifyCodeDTO verifyCodeDTO);
/*... |
RonWalker22/paper_gains | app/models/ticker.rb | <gh_stars>0
class Ticker < ApplicationRecord
belongs_to :exchange
end
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.