repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
lam1607/FLOPopupPrototypes | FLOPopupPrototypes/Sevices/Google/GTMAuthentication/GTMAuthenticationInfo.h | <filename>FLOPopupPrototypes/Sevices/Google/GTMAuthentication/GTMAuthenticationInfo.h
//
// GTMAuthenticationInfo.h
// SharedSources
//
// Created by lamnguyen on 7/16/20.
// Copyright © 2020 Floware. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface GTMAuthenticationInfo : NSObject <GTMFetcher... |
ghsecuritylab/EasyTomato | release/src/router/httpd/traceping.c | <reponame>ghsecuritylab/EasyTomato
/*
Tomato Firmware
Copyright (C) 2006-2009 <NAME>
*/
#include "tomato.h"
#include <ctype.h>
static int check_addr(const char *addr, int max)
{
const char *p;
char c;
if ((addr == NULL) || (addr[0] == 0)) return 0;
p = addr;
while (*p) {
c = *p;
if ((!isalnum(c)) && (c... |
utilitywarehouse/poc-pg-mirror | billmodel/pbatch.xo.go | <gh_stars>0
// Package billmodel contains the types for schema 'equinox'.
package billmodel
// GENERATED BY XO. DO NOT EDIT.
import (
"database/sql"
"github.com/lib/pq"
)
// Pbatch represents a row from 'equinox.pbatches'.
type Pbatch struct {
Pbbatchnumber sql.NullString `json:"pbbatchnumber"` // pbbatchnumb... |
rajeev02101987/arangodb | 3rdParty/V8/v7.9.317/src/interpreter/interpreter-generator.h | <filename>3rdParty/V8/v7.9.317/src/interpreter/interpreter-generator.h
// Copyright 2017 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_INTERPRETER_INTERPRETER_GENERATOR_H_
#define V8_INTERPRETER_INTERPRETE... |
nongdenchet/Samgu | app/src/main/java/apidez/com/samgu/adapter/FriendListAdapter.java | package apidez.com.samgu.adapter;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.bumptech.glide.Glide;
import java.util.ArrayList;
import java.util.List;
import apidez.com.samgu.R;... |
git-wwts/pysyte | pysyte/bash/test/test_shell.py | <gh_stars>1-10
"""Test the term module"""
import unittest
from pysyte.bash import shell
class TestShell(unittest.TestCase):
def test_double_cd(self):
"""This test is purely for sake of coverage
The second cd (to same dir) should have no effect
"""
shell.cd("/usr/local")
... |
uk-gov-mirror/hmcts.ia-case-api | src/main/java/uk/gov/hmcts/reform/iacaseapi/domain/entities/ccd/callback/PostSubmitCallbackResponse.java | package uk.gov.hmcts.reform.iacaseapi.domain.entities.ccd.callback;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import java.util.Optional;
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
public class PostSubmitCallbackResponse ... |
NotDiscordOfficial/Fortnite_SDK | Enum_MANG_Security_ID_struct.h | <filename>Enum_MANG_Security_ID_struct.h<gh_stars>0
// UserDefinedEnum Enum_MANG_Security_ID.Enum_MANG_Security_ID
enum class Enum_MANG_Security_ID : uint8 {
NewEnumerator0,
NewEnumerator1,
NewEnumerator2,
NewEnumerator3,
NewEnumerator4,
NewEnumerator5,
NewEnumerator6,
NewEnumerator7,
NewEnumerator8,
NewEnume... |
zaaksam/dproxy | go/services/proxyService.go | <gh_stars>10-100
package services
import (
"errors"
"fmt"
"io"
"net"
"strings"
"sync"
"time"
"github.com/zaaksam/dproxy/go/logger"
"github.com/zaaksam/dproxy/go/model"
)
// Proxy 代理服务对象
var Proxy proxyService
func init() {
Proxy.proxys = make(map[int64]*proxy)
}
type proxyService struct {
proxys map[int... |
cuilan/ssmp-framework | ssmp-admin/src/main/java/cn/cuilan/ssmp/admin/security/handler/LoginFailureHandler.java | <reponame>cuilan/ssmp-framework
package cn.cuilan.ssmp.admin.security.handler;
import cn.cuilan.ssmp.utils.result.Result;
import cn.cuilan.ssmp.utils.result.ResultUtil;
import org.springframework.security.authentication.BadCredentialsException;
import org.springframework.security.core.AuthenticationException;
import o... |
sahirsharma/Martian | NASA SPACEAPPS CHALLENGE/Solution/Software part/Astronomical Data and Python Libraries/Astropy/astropy-1.1.2/astropy/units/tests/test_quantity_ufuncs.py | # The purpose of these tests are to ensure that calling ufuncs with quantities
# returns quantities with the right units, or raises exceptions.
import numpy as np
from numpy.testing.utils import assert_allclose
from ... import units as u
from ...tests.helper import pytest, raises
class TestUfuncCoverage(object):
... |
rizhenkov/feedbin | test/controllers/updated_entries_controller_test.rb | <gh_stars>1000+
require "test_helper"
class UpdatedEntriesControllerTest < ActionController::TestCase
setup do
@user = users(:new)
@feeds = create_feeds(@user)
@entries = @user.entries
@updated = @entries.each do |entry|
UpdatedEntry.create_from_owners(@user.id, entry)
end
end
test "sh... |
thl-mot/mbed-os | connectivity/nanostack/sal-stack-nanostack/source/Security/protocols/tls_sec_prot/tls_sec_prot_lib.c | <reponame>thl-mot/mbed-os
/*
* Copyright (c) 2019-2020, Pelion and affiliates.
* SPDX-License-Identifier: Apache-2.0
*
* 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... |
CorbinFoucart/FEMexperiment | codes/src/fem_base/master/master_1D.py | <filename>codes/src/fem_base/master/master_1D.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
from src.fem_base.master.nodal_basis_1D import NodalBasis1D
from src.fem_base.master.nodal_basis_1D import LegendreGaussLobatto, GaussLegendre
class Master1D(object):
""" minimalist 1D master object, ... |
sormo/simpleSDL | source/legacy/Text2D.cpp | <filename>source/legacy/Text2D.cpp
#include "Text2D.h"
#include <vector>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include "utils/Shader.h"
#include "utils/Texture.h"
#include "Common.h"
#include <sstream>
GLuint g_texture;
GLuint g_bufferVertex;
GLuint g_bufferUV;
GLuint g_program;
GLuint g_loca... |
jspare-projects/jsdb | jsdb-server/lib/workers/removeDomain.js | <gh_stars>1-10
const /*--- Declaring imports ---*/
_ = require('underscore'),
_error = require('./../application/error'),
_io = require('./../storage/io'),
_path = require('./../storage/path');
module.exports = {
roles : [ 'grantAll', 'grantMngDomain', 'grantRemoveDomain', 'grantRemoveDomain::instance' ],
vali... |
SleepyRae/IntelligenceCoding | hoj-springboot/DataBackup/src/main/java/top/hcode/hoj/service/group/training/GroupTrainingProblemService.java | <reponame>SleepyRae/IntelligenceCoding
package top.hcode.hoj.service.group.training;
import top.hcode.hoj.common.result.CommonResult;
import top.hcode.hoj.pojo.dto.TrainingDto;
import top.hcode.hoj.pojo.dto.TrainingProblemDto;
import top.hcode.hoj.pojo.entity.training.Training;
import top.hcode.hoj.pojo.entity.trainin... |
cxcruz/math-facts-play | app/controllers/Application.scala | package controllers
import play.api._
import play.api.mvc._
import play.api.libs.json.Json
import play.api.libs.ws._
import play.api.Play.current
import scala.concurrent.ExecutionContext.Implicits.global
import scalikejdbc._
import models.Fact
object Application extends Controller {
def index = Action {
Ok(vie... |
hdm/mac-tracker | data/js/b4/c6/2e/00/00/00.24.js | macDetailCallback("b4c62e000000/24",[{"a":"2222 Wellington Court Lisle IL US 60532","o":"Molex CMS","d":"2018-08-12","t":"add","s":"ieee","c":"US"}]);
|
SpeedJack/lsmsd1 | Ristogo/src/ristogo/ui/menus/forms/ChoiceFormField.java | package ristogo.ui.menus.forms;
import java.util.Arrays;
import java.util.LinkedHashMap;
import java.util.function.Predicate;
public class ChoiceFormField<T extends Enum<T>> extends FormField
{
protected LinkedHashMap<Integer, String> values = new LinkedHashMap<>();
protected int defaultSelection;
protected Class<... |
myCustomDemo/kaa_demo | server/appenders/file-appender/src/test/java/org/kaaproject/kaa/server/appenders/file/appender/FileSystemLogAppenderTest.java | /*
* Copyright 2014-2016 CyberVision, 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 o... |
robsonsopran/incubator-nuttx | drivers/bch/bchlib_read.c | <reponame>robsonsopran/incubator-nuttx
/****************************************************************************
* drivers/bch/bchlib_read.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional ... |
dos1/card10-firmware | lib/sdk/Libraries/BTLE/documentation/html/Cordio_Stack_Cordio_Profiles/search/typedefs_8.js | <reponame>dos1/card10-firmware<filename>lib/sdk/Libraries/BTLE/documentation/html/Cordio_Stack_Cordio_Profiles/search/typedefs_8.js
var searchData=
[
['terminalhandler_5ft',['terminalHandler_t',['../group___w_s_f___u_t_i_l___a_p_i.html#ga87bf3c9e9ad209a2f2b93c5e96a9c925',1,'terminal.h']]],
['terminaluarttx_5ft',['t... |
wchen1990/Mekanism | src/main/java/mekanism/common/item/block/machine/ItemBlockLogisticalSorter.java | package mekanism.common.item.block.machine;
import java.util.List;
import javax.annotation.Nonnull;
import mekanism.common.block.basic.BlockLogisticalSorter;
import mekanism.common.item.block.ItemBlockTooltip;
import mekanism.common.item.interfaces.IItemSustainedInventory;
import mekanism.common.lib.security.ISecurity... |
nasa/SCRD | Code/SCRD_BRE/src/java/ejb/gov/opm/scrd/services/impl/BatchPrintoutArchiveServiceImpl.java | <reponame>nasa/SCRD
/*
Copyright 2014 OPM.gov
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 la... |
Criss-Wang/tp | src/main/java/seedu/clinic/model/macro/UniqueMacroList.java | <reponame>Criss-Wang/tp
package seedu.clinic.model.macro;
import static java.util.Objects.requireNonNull;
import static seedu.clinic.commons.util.CollectionUtil.requireAllNonNull;
import java.util.Iterator;
import java.util.List;
import java.util.Optional;
import javafx.collections.FXCollections;
import javafx.colle... |
cxj16888/FreeECAT | software/FreeECAT-Master/IgH/IgH-API/html/structec__slave.js | <reponame>cxj16888/FreeECAT<filename>software/FreeECAT-Master/IgH/IgH-API/html/structec__slave.js<gh_stars>10-100
var structec__slave =
[
[ "master", "structec__slave.html#ae3ca485627d212610814bf4e0130eddd", null ],
[ "device_index", "structec__slave.html#adc17b41384e235c98b39f4ac49319d68", null ],
[ "ring_... |
braymar/afl | qemu_mode/qemu-2.10.0/roms/u-boot/arch/arm/mach-exynos/include/mach/system.h | /*
* (C) Copyright 2012 Samsung Electronics
* <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#ifndef __ASM_ARM_ARCH_SYSTEM_H_
#define __ASM_ARM_ARCH_SYSTEM_H_
#ifndef __ASSEMBLY__
struct exynos4_sysreg {
unsigned char res1[0x210];
unsigned int display_ctrl;
unsigned int display_ctrl2;
unsigned int... |
bcvsolutions/CzechIdMng | Realization/backend/acc/src/main/java/eu/bcvsolutions/idm/acc/service/api/SysProvisioningArchiveService.java | package eu.bcvsolutions.idm.acc.service.api;
import java.util.List;
import eu.bcvsolutions.idm.acc.dto.SysAttributeDifferenceDto;
import eu.bcvsolutions.idm.acc.dto.SysProvisioningArchiveDto;
import eu.bcvsolutions.idm.acc.dto.SysProvisioningOperationDto;
import eu.bcvsolutions.idm.acc.dto.SysSystemDto;
import eu.bcv... |
rinat-nezametdinov/deckhouse | docs/site/backend/main.go | <filename>docs/site/backend/main.go
package main
import (
"context"
"fmt"
"github.com/gorilla/mux"
log "github.com/sirupsen/logrus"
"net/http"
"os"
"os/signal"
"strings"
"time"
)
func newRouter() *mux.Router {
r := mux.NewRouter()
staticFileDirectory := http.Dir("./root")
r.PathPrefix("/status").Handler... |
zann1x/FrameGraph | framegraph/Shared/PipelineResourcesHelper.h | // Copyright (c) 2018-2019, <NAME>. For more information see 'LICENSE'
#pragma once
#include "framegraph/Public/PipelineResources.h"
#include "stl/Memory/MemWriter.h"
namespace FG
{
//
// Pipeline Resources Helper
//
class PipelineResourcesHelper
{
public:
using DynamicData = PipelineResources::DynamicD... |
LaudateCorpus1/squest | monitoring/views.py | <gh_stars>0
import base64
import logging
import prometheus_client
from django.http import HttpResponse
from django.conf import settings
logger = logging.getLogger(__name__)
def metrics(request):
"""
Exports /metrics as a Django view.
"""
metrics_password_protected = getattr(
settings, "METRI... |
fjvigil89/worldprofe | src/main/webapp/client/app/services/language.service.js | <filename>src/main/webapp/client/app/services/language.service.js
(function (angular) {
'use strict';
angular.module('app').factory('Language', factory);
/* @ngInject */
function factory($translate) {
return {
getCurrent: getCurrent
};
function getCurren... |
stewartschillingsdi/reactor-extension-core | src/lib/actions/helpers/decorateCode.js | /***************************************************************************************
* Copyright 2019 Adobe. All rights reserved.
* This file is licensed 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 th... |
emafazillah/FHIR | cql/operation/fhir-operation-cqf/src/main/java/com/ibm/fhir/operation/cqf/OperationHelper.java | /*
* (C) Copyright IBM Corp. 2022
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.ibm.fhir.operation.cqf;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;
import org.opencds.cqf.cql.engine.execution.InMemoryLibraryLoader;
import org.opencds.cqf.cql.engine.execution.Libra... |
mb-syss/ruby-serialize | jrmp.rb | #!/usr/bin/env ruby
require 'set'
require 'socket'
require 'base64'
require 'timeout'
require 'stringio'
require 'openssl'
require_relative 'deserialize'
require_relative 'serialize'
require_relative 'config'
require_relative 'data'
module Java
module JRMP
class JRMPError < StandardError
attr_accessor :e... |
johnarn/price_observer_bot | venv/Lib/site-packages/PyInstaller/hooks/pre_find_module_path/hook-distutils.py | <reponame>johnarn/price_observer_bot<filename>venv/Lib/site-packages/PyInstaller/hooks/pre_find_module_path/hook-distutils.py<gh_stars>1-10
#-----------------------------------------------------------------------------
# Copyright (c) 2005-2019, PyInstaller Development Team.
#
# Distributed under the terms of the GNU G... |
ay1741/ay1741.github.io | owncloud/apps/files/l10n/az.js | OC.L10N.register(
"files",
{
"Storage not available" : "İnformasiya daşıyıcısı mövcud deyil",
"Storage invalid" : "İnformasiya daşıyıcısı yalnışdır",
"Unknown error" : "Bəlli olmayan səhv baş verdi",
"Could not move %s - File with this name already exists" : "Köçürmə mümkün deyil %s - Bu adla fa... |
isfinne/photo-editor | DISK_C/PIC/source/read.c | <gh_stars>1-10
#include "head.h"
#pragma pack(1) //结构体的边界对齐为1个字节,节省内存
#define maxnSize (long long)1024*35 //可以存储的最大图片大小
/*******************************
读取BMP文件头信息头函数
传入图片头,图片地址
将传入地址的图片信息读入图片头中
读入成功返回1
读入失败返回0
*******************************/
int readBmp(BMPHeader* head,char *address)
{
int i=0;
BIT... |
erique/embeddedsw | XilinxProcessorIPLib/drivers/hwicap/doc/html/api/xhwicap__intr_8c.js | <reponame>erique/embeddedsw
var xhwicap__intr_8c =
[
[ "XHwIcap_IntrHandler", "xhwicap__intr_8c.html#ga9cf1ff1dd1056a11f65a903c47492842", null ],
[ "XHwIcap_SetInterruptHandler", "xhwicap__intr_8c.html#gaa2f2f23cf842c10f443509f8861a194a", null ]
]; |
OHDSI/Authenticator | src/main/java/org/ohdsi/authenticator/service/authentication/authenticator/AuthenticatorStandardMode.java | package org.ohdsi.authenticator.service.authentication.authenticator;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.jsonwebtoken.Claims;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.ut... |
ninjadotorg/constant-websites | user/src/settings/basicStyle.js | <reponame>ninjadotorg/constant-websites<gh_stars>0
const rowStyle = {
width: '100%',
display: 'flex',
flexFlow: 'row wrap',
marginLeft: 0,
marginRight: 0,
};
const colStyle = {
marginBottom: '16px',
};
const colStyle0 = {
};
const boxStyle0 = {
margin: 0,
padding: 0,
border: 0,
backgroundColor: 'un... |
d3r3kk/toga | examples/beeliza/beeliza/bot.py | <reponame>d3r3kk/toga
#----------------------------------------------------------------------
# eliza.py
#
# A cheezy little Eliza knock-off by <NAME>
# with some updates by <NAME>
# Hacked into a module and updated by <NAME>
# Updated and tweaked for PEP8 compliance by <NAME>
#
# Original source: https://github.com/je... |
MaximKulikov/Java-Twitch-Api-Wrapper | src/main/java/com/mb3364/twitch/api/handlers/TopGamesResponseHandler.java | package com.mb3364.twitch.api.handlers;
import com.mb3364.twitch.api.models.Top;
import java.util.List;
public interface TopGamesResponseHandler extends BaseFailureHandler {
void onSuccess(int total, List<Top> games);
}
|
paoqi1997/pqnet | raw-examples/linux/threadpool/threadpool.cpp | #include "threadpool.h"
void* routine(void *arg)
{
auto pool = static_cast<ThreadPool*>(arg);
Condition& cond = pool->Cond();
for (;;) {
cond.lock();
while (pool->isRunning() && pool->isIdle()) {
cond.wait();
}
if (!pool->isRunning() && pool->isIdle()) {
... |
quantumlaser/code2016 | LeetCode/Answers/Leetcode-java-solution/longest_palindromic_substring/LongestPalindromicSubstring.java | <gh_stars>0
package longest_palindromic_substring;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class LongestPalindromicSubstring {
public class Solution {
public String longestPalindrome(String s) {
String t = "^#";
for (int i = 0; i < s.length(); i... |
nbwhite/dai-ds | eventsim/src/main/java/com/intel/dai/eventsim/HardwareInventory.java | <filename>eventsim/src/main/java/com/intel/dai/eventsim/HardwareInventory.java
package com.intel.dai.eventsim;
import com.intel.config_io.ConfigIOParseException;
import com.intel.properties.PropertyDocument;
import java.io.FileNotFoundException;
import java.io.IOException;
/**
* Description of class HardwareInvento... |
jht1493/p5js-repo | p5-projects/2:5 Display string split/sketch.js | <reponame>jht1493/p5js-repo<gh_stars>0
let str = "The quick brown fox jumped over the lazy dog.";
let p;
function setup() {
createCanvas(400, 400);
// Display string in paragraph element
p = createP(str);
textSize(48);
textAlign(LEFT, TOP);
// Split string into words
let words = str.split(' ');
p... |
ThomasBDZ/JAVAFX-Application | src/main/java/eu/telecomnancy/javafx/model/GestionnaireCreneauDispo.java | package eu.telecomnancy.javafx.model;
import java.util.ArrayList;
import java.util.Date;
public class GestionnaireCreneauDispo {
public GestionnaireCreneauDispo(){
}
public ArrayList<Creneau> pickDispoWeek(Date date, Utilisateur user ){
ArrayList<Creneau> liste=new ArrayList<>();
retu... |
ZhnZhn/notes | js/component/zhn-ch/DrawerLeft.js | <reponame>ZhnZhn/notes<gh_stars>1-10
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _useToggle2 = _interopRequireDefault... |
Shaditto/centipede-teal | CentipedeGame_gageoconnor/Game Components/TEAL/CollisionInfoAABB.cpp | <filename>CentipedeGame_gageoconnor/Game Components/TEAL/CollisionInfoAABB.cpp
// CollisionInfoAABB.h
// <NAME>, July 2012
#include "CollisionInfoAABB.h"
bool CollisionInfoAABB::PairwiseCollisionTest( CollisionInfo *other )
{
return other->CollisionTest( &( getAABB()) );
}
bool CollisionInfoAABB::CollisionTest( sf:... |
1310238398/park-asset | internal/app/bll/impl/internal/b_common.go | <reponame>1310238398/park-asset
package internal
import (
"context"
"fmt"
"gxt-park-assets/internal/app/errors"
"gxt-park-assets/internal/app/config"
icontext "gxt-park-assets/internal/app/context"
"gxt-park-assets/internal/app/model"
"gxt-park-assets/internal/app/schema"
"gxt-park-assets/pkg/logger"
"gxt-pa... |
FarfallaHu/brainchop | lib/webix/sources/services.js | // resolves circular dependencies
// quick solution, must be removed in the next versions
const services = {};
export function define(name, value){
services[name] = value;
}
export function use(name){
return services[name];
} |
mmadfox/georule | internal/tracker/errors.go | package tracker
import "errors"
var (
ErrIdentifierNotDefined = errors.New("tracker/geojson: identifier not defined")
ErrNoIndexData = errors.New("tracker/geojson: no index data")
ErrInvalidGeoJSONData = errors.New("tracker/geojson: invalid GeoJSON data")
)
|
SveinJH/TheWineBase | src/containers/Pages/Login/Login.js | import React, { useState } from 'react';
import { connect } from 'react-redux';
import * as actions from '../../../store/actions/index';
import classes from './Login.module.scss';
import Input from '../../../components/UI/Input/Input';
import Button from '../../../components/UI/Button/Button';
import { checkValidity }... |
GypsyDangerous/auth-app-client | src/components/Auth/Register.js | import React, {forwardRef} from "react";
import Input from "../shared/FormElements/Input";
import Form, { ButtonContainer, Footer } from "./Form.styled";
import MailIcon from "@material-ui/icons/Mail";
import { PlaceHolder } from "./Auth.styled";
import LockIcon from "@material-ui/icons/Lock";
import Button from "../sh... |
sylvainr/entityset | sr.entityset.core/src/sr/entityset/EntityTable.java | <gh_stars>0
package sr.entityset;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import org.apache.commons.lang.StringUtils;
import sr.entityset.constraints.Constraint;
import sr.entityset.constraints.ConstraintError;
import sr.entit... |
KAKA0607/Sermant | sermant-agentcore/sermant-agentcore-core/src/test/java/com/huawei/sermant/core/lubanops/integration/netty/NettyClientTest.java | <reponame>KAKA0607/Sermant
/*
* Copyright (C) 2021-2021 Huawei Technologies Co., Ltd. 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... |
jokermonn/fresco | drawee/src/main/java/com/facebook/drawee/debug/listener/ImageLoadingTimeControllerListener.java | <reponame>jokermonn/fresco
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.drawee.debug.listener;
import android.graphics.drawable.Animatable;
import com.f... |
koellingh/empirical-p53-simulator | third-party/Empirical/examples/datastructs/TypeMap.cpp | <filename>third-party/Empirical/examples/datastructs/TypeMap.cpp
// This file is part of Empirical, https://github.com/devosoft/Empirical
// Copyright (C) Michigan State University, 2018.
// Released under the MIT Software license; see doc/LICENSE
//
//
// Some example code for using emp::BitSet
#include <iostream... |
seeker/commonj | src/main/java/com/github/dozedoff/commonj/io/StreamGobbler.java | <gh_stars>0
/*
* The MIT License (MIT)
* Copyright (c) 2017 <NAME>
* http://opensource.org/licenses/MIT
*/
package com.github.dozedoff.commonj.io;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.nio.charset.StandardChar... |
KonBAI-Q/RuoYi-Flowable-Plus- | ruoyi-system/src/main/java/com/ruoyi/workflow/domain/bo/WfCategoryBo.java | package com.ruoyi.workflow.domain.bo;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashC... |
eneufeld/emfcloud-modelserver | bundles/org.eclipse.emfcloud.modelserver.emf/src/org/eclipse/emfcloud/modelserver/emf/common/DefaultSchemaController.java | /********************************************************************************
* Copyright (c) 2019 EclipseSource and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* https://www.eclipse.org/legal/epl-2.0, o... |
naaytesting2/gitlab-pages-mirror | internal/source/disk/map_test.go | package disk
import (
"crypto/rand"
"fmt"
"io/ioutil"
"os"
"strings"
"testing"
"time"
"github.com/karrick/godirwalk"
"github.com/stretchr/testify/require"
"gitlab.com/gitlab-org/gitlab-pages/internal/testhelpers"
)
func getEntries(t require.TestingT) godirwalk.Dirents {
fis, err := godirwalk.ReadDirents(... |
haotie1990/learn-javascript | js-interview-question/number-thousands.js | /**
* 数字千分位处理
* 将 153812.7 转化为 153,812.7
*/
function numberThousands(number) {
const numberStr = String(number);
let result = '';
let [interger, decimal] = numberStr.split('.');
while (interger.length > 3) {
// 倒数三位数字
let subStr = interger.substring(interger.length - 3);
interger = i... |
akash143143/weasyl | libweasyl/libweasyl/alembic/versions/cc2f96b0ba35_remove_unused_stream_time_column_from_.py | """Remove unused stream_time column from profile table
Revision ID: <KEY>
Revises: <KEY>
Create Date: 2020-02-27 23:19:49.133000
"""
# revision identifiers, used by Alembic.
revision = '<KEY>'
down_revision = '<KEY>'
from alembic import op # lgtm[py/unused-import]
import sqlalchemy as sa # lgtm[py/unused-import]... |
bhimeshchauhan/competitive_programming | scripts/practice/Amazon/KthFactorofN.py | """
The kth Factor of n
Given two positive integers n and k.
A factor of an integer n is defined as an integer i where n % i == 0.
Consider a list of all factors of n sorted in ascending order,
return the kth factor in this list or return -1 if
n has less than k factors.
Example 1:
Input: n = 12, k = 3
Output: ... |
zipated/src | media/audio/alsa/alsa_util.h | <reponame>zipated/src<gh_stars>1000+
// Copyright 2013 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.
#ifndef MEDIA_AUDIO_ALSA_ALSA_UTIL_H_
#define MEDIA_AUDIO_ALSA_ALSA_UTIL_H_
#include <alsa/asoundlib.h>
#include <st... |
martijn-heil/NinCore-API | src/main/java/tk/martijn_heil/nincore/api/command/builders/CommandBuilder.java | package tk.martijn_heil.nincore.api.command.builders;
import tk.martijn_heil.nincore.api.NinCore;
import tk.martijn_heil.nincore.api.command.NinCommand;
import tk.martijn_heil.nincore.api.command.NinSubCommand;
import tk.martijn_heil.nincore.api.command.executors.NinCommandExecutor;
import tk.martijn_heil.nincore.api... |
vishalbelsare/smallk | common/include/matrix_generator.hpp | <filename>common/include/matrix_generator.hpp<gh_stars>10-100
// Copyright 2014 Georgia Institute of Technology
//
// 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... |
HENU515Lab/test | bbs/website/src/main/webapp/static/web/js/file_system/file/operation/collect/favorite.js | <reponame>HENU515Lab/test
$(function () {
$('form.form_favorte').on("submit", function (e) {
e.preventDefault();
let $form = $(this);
let hrefUrl = $form.attr('action');
let postData = $form.serializeArray();
let $id = $(this).attr('id');
$.ajax({
url: hr... |
mmm-soares/concurrency-java-9 | Chapter09/SearchWithoutIndexing/src/com/javferna/packtpub/mastering/searchWithoutIndexing/serial/main/SerialMainBasicSearch.java | package com.javferna.packtpub.mastering.searchWithoutIndexing.serial.main;
import java.io.IOException;
import java.nio.file.FileVisitOption;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Date;
public class SerialMainBasicSearch {
pub... |
danfuzz/archive | uberchat/uberchat-0.32/src/com/milk/command/BaseCommand.java | <gh_stars>1-10
// Copyright (C) 1992-1999, <NAME>, <EMAIL>. All Rights
// Reserved. (Shrill TV degreaser.)
//
// This file is part of the MILK Kodebase. The contents of this file are
// subject to the MILK Kodebase Public License; you may not use this file
// except in compliance with the License. A copy of the MILK K... |
RichardBradley/scapegoat | src/test/scala/com/sksamuel/scapegoat/inspections/EmptyCatchBlockTest.scala | <reponame>RichardBradley/scapegoat<filename>src/test/scala/com/sksamuel/scapegoat/inspections/EmptyCatchBlockTest.scala
package com.sksamuel.scapegoat.inspections
import com.sksamuel.scapegoat.PluginRunner
import org.scalatest.{FreeSpec, Matchers}
/** @author <NAME> */
class EmptyCatchBlockTest extends FreeSpec with ... |
PolyStyle/DesktopFashion | src/components/TagSelector/index.js | import React, { PropTypes } from 'react';
import { connect } from 'react-redux';
import { Button, Modal, ModalBody } from 'reactstrap';
import styles from './styles.css';
class TagSelector extends React.Component {
constructor(props) {
super(props);
this.state = {
tags: this.props.tags,
addedTag... |
jinbooooom/design-patterns | factory/simpleFactory/CheesePizza.hpp | <gh_stars>0
#ifndef CHEESE_PIZZA_HPP
#define CHEESE_PIZZA_HPP
#include "Pizza.hpp"
class CheesePizza : public Pizza
{
public:
CheesePizza()
{
name = "Cheese pizza";
dough = "Thin crust dough";
sauce = "Marinara sauce";
toppings.push_back("Gratted reggiano cheese");
}
};
#e... |
1484/shirasagi | spec/support/webmail/user.rb | module Webmail
module UserSupport
cattr_accessor :data
def self.extended(obj)
dbscope = obj.metadata[:dbscope]
dbscope ||= RSpec.configuration.default_dbscope
obj.after(dbscope) do
Webmail::UserSupport.data = nil
end
end
end
end
RSpec.configuration.extend(Webmail::User... |
clabe45/Glowstone | src/test/java/net/glowstone/constants/GlowStatisticTest.java | <filename>src/test/java/net/glowstone/constants/GlowStatisticTest.java
package net.glowstone.constants;
import static org.junit.Assert.assertEquals;
import net.glowstone.testutils.ServerShim;
import org.bukkit.Material;
import org.bukkit.Statistic;
import org.bukkit.entity.EntityType;
import org.junit.jupiter.api.Bef... |
celerik/launch-partners-mern | backend/src/api/home/home.controller.js | // @scripts
const { responseSchema } = require('../../utils/res');
function mainController(_req, res) {
responseSchema({
data: {
version: '1.0.0'
},
message: 'LaunchPartner API',
res
});
}
module.exports = {
mainController
};
|
qtomlinson/crawler | test/unit/providers/process/scancodeTests.js | // Copyright (c) Microsoft Corporation and others. Licensed under the MIT license.
// SPDX-License-Identifier: MIT
const chai = require('chai')
const expect = chai.expect
const proxyquire = require('proxyquire')
const sinon = require('sinon')
const sandbox = sinon.createSandbox()
const { request } = require('../../../... |
CTA/queri | spec/spec_helper.rb | <reponame>CTA/queri
require 'rubygems'
require 'bundler/setup'
require 'queri'
Dir[File.join( File.dirname(__FILE__), 'support', '**', '*.rb' )].each {|f| require f}
RSpec.configure do |config|
include TimeHelper
config.treat_symbols_as_metadata_keys_with_true_values = true
end
|
amichard/tfrs | backend/api/models/DocumentComment.py | """
REST API Documentation for the NRS TFRS Credit Trading Application
The Transportation Fuels Reporting System is being designed to streamline
compliance reporting for transportation fuel suppliers in accordance with
the Renewable & Low Carbon Fuel Requirements Regulation.
OpenAPI spec version: ... |
spincast/spincast-framework | spincast-plugins/spincast-plugins-jackson-xml-parent/spincast-plugins-jackson-xml-tests/src/test/java/org/spincast/plugins/jacksonxml/tests/CustomDeserializerMixinTest.java | <reponame>spincast/spincast-framework
package org.spincast.plugins.jacksonxml.tests;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import java.io.IOException;
import org.junit.Test;
import org.spincast.core.guice.SpincastGuiceModuleBase;
import org.spincast.core.xml.XmlMa... |
adityavs/ant | src/main/org/apache/tools/ant/types/optional/imageio/Arc.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... |
Bensuo/visioncpp | include/operators/experimental/OP_Median.hpp | // This file is part of VisionCPP, a lightweight C++ template library
// for computer vision and image processing.
//
// Copyright (C) 2016 Codeplay Software Limited. All Rights Reserved.
//
// Contact: <EMAIL>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in ... |
Galenika/Externalit | csgo_external/csgo_external/sdk/utils/utils.h | #pragma once
#include "../sdk.h"
namespace sdk {
class cutils {
public:
cutils() = default;
std::string weapon_config(int weaponid);
std::vector<std::string> split(const std::string& str, const std::string& delimiter);
std::string animate_string(std::string string);
}; extern cutils* c_utils;
} |
Clunker5/tregmine | util/spleef/src/info/tregmine/spleef/listeners/FallFromArena.java | <reponame>Clunker5/tregmine
package info.tregmine.spleef.listeners;
import info.tregmine.spleef.Arena;
import info.tregmine.spleef.ArenaManager;
import info.tregmine.spleef.SettingsManager;
import info.tregmine.spleef.Spleef;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.Material;
import org... |
Williams-Dan/dotledger | app/assets/javascripts/dot_ledger/initializers/ajax_errors.js | DotLedger.addInitializer(function () {
$(document).ajaxError(function (event, jqXHR, ajaxSettings, thrownError) {
if (jqXHR.status === 0) {
DotLedger.Helpers.Notification.danger('Could not connect to server.');
}
});
});
|
xenowits/cp | codeforces/571div2/D2.cpp | <reponame>xenowits/cp
#include<bits/stdc++.h>
using namespace std;
#define fori(i,a,b) for (long int i = a; i <= b ; ++i)
#define ford(i,a,b) for(long int i = a;i >= b ; --i)
#define mk make_pair
#define mod 1000000007
#define pb push_back
#define ll long long
#define rnd mt19937_64 rng(chrono::high_resolution_clock::... |
lab-csx-ufmg/omtg2gml | src/OMTGRelationship.java |
public class OMTGRelationship extends Relationship {
private String side;
private String entityA, entityB;
private OMTGCardinality cardA, cardB, card;
private String cardRelationA, cardRelationB;
public OMTGRelationship(String name, String type, String entityA, String entityB, OMTGCardinality cardA, OMTG... |
dwt/capybara.py | capybara/tests/session/test_assert_title.py | import pytest
import re
from capybara.exceptions import ExpectationNotMet
class TestAssertTitle:
@pytest.fixture(autouse=True)
def setup_session(self, session):
session.visit("/with_js")
def test_is_true_if_the_page_title_contains_the_given_string(self, session):
assert session.assert_ti... |
Chromico/bk-base | src/dataweb/web/src/i18n/en/index.js | /*
* Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
* BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
*
* License for BK-BASE 蓝鲸基础平台:
* ----------------------------------------------------... |
zotov-vs/tg_shop | utils/db_api/models/products.py | <reponame>zotov-vs/tg_shop
from sqlalchemy import sql
from data.localization import currency_symbol
from utils.db_api.database import TimedBaseModel, BaseModel, db
class Product(TimedBaseModel):
__tablename__ = 'products'
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
parent_id = db.Col... |
ACea15/pyNastran | pyNastran/converters/dev/vrml/vrml_to_dict.py | import numpy as np
from pyparsing import ParseResults
def todicti(data, log):
i = 0
dicti = {}
log.debug('------')
while i < len(data):
#print(dicti)
key = data[i]
#print('%r' % modeli)
i += 1
value = data[i]
if isinstance(value, str):
dicti[k... |
sisbell/appia | oulipo-communications/src/test/net/sf/appia/demo/jmx/ActuatorTest.java | /**
* Appia: Group communication and protocol composition framework library
* Copyright 2009 INESC-ID/IST
*
* 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/lic... |
kinyz/KServer | server/login/service/user.go | package service
import (
utils2 "KServer/library/utils"
"KServer/manage"
"KServer/server/utils/msg"
"KServer/server/utils/pd"
"fmt"
"github.com/kataras/iris/v12"
"gopkg.in/mgo.v2/bson"
)
type User struct {
Account *pd.Account
Manage manage.IManage
Encrypt *utils2.Encrypt
}
func NewUser(manage manage.IMana... |
stefanbanu/FXGL | src/main/java/com/almasb/fxgl/entity/GameEntity.java | /*
* The MIT License (MIT)
*
* FXGL - JavaFX Game Library
*
* Copyright (c) 2015-2017 AlmasB (<EMAIL>)
*
* 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, includin... |
yeehanchung/evergreen | src/themes/default/components/table-row.js | const colorMap = {
none: {
base: 'white',
hover: 'colors.gray75',
focus: 'colors.gray75',
active: 'intents.info.background',
current: 'intents.info.background'
},
danger: {
base: 'intents.danger.background',
hover: 'intents.danger.background',
focus: 'colors.red100',
active: '... |
kavish-d/fdk-client-python | fdk_client/application/models/AdminAnnouncementSchema.py | """Application Models."""
from marshmallow import fields, Schema
from marshmallow.validate import OneOf
from ..enums import *
from ..models.BaseSchema import BaseSchema
from .AnnouncementPageSchema import AnnouncementPageSchema
from .EditorMeta import EditorMeta
from .AnnouncementAuthorSchema import Announc... |
whilewon/Activiti | modules/activiti-rest/src/test/java/org/activiti/rest/api/runtime/ProcessInstanceDiagramResourceTest.java | /* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.