repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
pyvain/WebSight | App/app/src/main/java/fr/pyvain/websight/websight/Request.java | package fr.pyvain.websight.websight;
import android.content.Context;
import android.content.res.Resources;
import android.net.ConnectivityManager;
import android.net.Uri;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOExceptio... |
june20516/JavaTraining | 20190328/src/Hello.java | public class Hello {
public static void main(String[] args) {
System.out.println("Hello World");
for(String a : args)
System.out.println(" + " + a);
}
} |
miguelsndc/PythonFirstLooks | primeiros-exercicios/lpc066.py | <filename>primeiros-exercicios/lpc066.py
cont = 0
soma = 0
while True:
n = int(input('Digite as notas: 0/10 '))
continuar = str(input('Quer continuar? [S/N]')).strip().upper()
if n < 0 or n > 10:
n = int(input('Nota inválida. Digite as notas: '))
cont += 1
soma += n
med = soma / cont
... |
kkcookies99/UAST | Dataset/Leetcode/valid/136/303.js | <reponame>kkcookies99/UAST
var singleNumber = function(nums) {
var result = 0;
for(var i = 0; i < nums.length; i ++){
result ^= nums[i];
}
return result;
};
|
OpenSundsvall/api-service-disturbance | src/test/java/se/sundsvall/disturbance/service/mapper/DisturbanceMapperTest.java | <filename>src/test/java/se/sundsvall/disturbance/service/mapper/DisturbanceMapperTest.java
package se.sundsvall.disturbance.service.mapper;
import static java.time.OffsetDateTime.now;
import static java.time.temporal.ChronoUnit.SECONDS;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assert... |
fenghan34/LeetCode | code/linked-list/rotate-list.js | <reponame>fenghan34/LeetCode<filename>code/linked-list/rotate-list.js
import { ListNode } from '../../utils'
/**
* @param {ListNode} head
* @param {number} k
* @return {ListNode}
*/
export function rotateRight(head, k) {
if (!head || !head.next || k === 0) return head
const dummy = new ListNode(0, head)
le... |
unseenme/mindspore | tests/ut/cpp/python_input/gtest_input/pre_activate/insert_memcpy_async_for_getnext.py | <reponame>unseenme/mindspore
# Copyright 2020 Huawei Technologies Co., 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://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... |
zhaomengxiao/MITK | Modules/Gizmo/src/mitkGizmoMapper2D.cpp | /*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... |
yangrunkang/upupor | upupor-web/src/main/java/com/upupor/web/page/SyncPageController.java | <filename>upupor-web/src/main/java/com/upupor/web/page/SyncPageController.java
/*
* MIT License
*
* Copyright (c) 2021-2022 yangrunkang
*
* Author: yangrunkang
* Email: <EMAIL>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files... |
Glost/db_nets_renew_plugin | root/prj/sol/projects/renew2.5source/renew2.5/src/Simulator/src/de/renew/engine/searchqueue/RandomQueueNode.java | <gh_stars>0
package de.renew.engine.searchqueue;
import de.renew.engine.searcher.Searchable;
class RandomQueueNode {
int pos;
final Searchable searchable;
RandomQueueNode(int pos, Searchable searchable) {
this.pos = pos;
this.searchable = searchable;
}
} |
luontola/cqrs-hotel | src/main/java/fi/luontola/cqrshotel/ApiController.java | // Copyright © 2016-2018 <NAME>
// This software is released under the Apache License 2.0.
// The license text is at http://www.apache.org/licenses/LICENSE-2.0
package fi.luontola.cqrshotel;
import fi.luontola.cqrshotel.capacity.queries.CapacityDto;
import fi.luontola.cqrshotel.capacity.queries.GetCapacityByDate;
imp... |
zealoussnow/chromium | chrome/browser/vr/location_bar_helper.cc | // Copyright 2017 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.
#include "chrome/browser/vr/location_bar_helper.h"
#include <memory>
#include "components/omnibox/browser/location_bar_model_impl.h"
class LocationBarM... |
gridgentoo/nats-mq | nats-mq/core/msgconv.go | <gh_stars>10-100
/*
* Copyright 2012-2019 The NATS Authors
* 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 applicab... |
scibian/fmgui | src/com/intel/stl/ui/framework/IController.java | /**
* Copyright (c) 2015, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and t... |
zpleefly/libscapi | lib/libOTe/cryptoTools/testsVS_cryptoTools/Cuckoo_TestsVS.cpp | <reponame>zpleefly/libscapi
#include "stdafx.h"
#ifdef _MSC_VER
#include "CppUnitTest.h"
#include "Cuckoo_Tests.h"
#include "Common.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace tests_cryptoTools
{
TEST_CLASS(Cuckoo_Tests)
{
public:
TEST_METHOD(CuckooIndex_many_Te... |
hhstechgroup/infinispan | core/src/main/java/org/infinispan/marshall/BufferSizePredictorAdapter.java | <reponame>hhstechgroup/infinispan
package org.infinispan.marshall;
/**
* BufferSizePredictorAdapter.
*
* @author <NAME>
* @since 6.0
*/
@Deprecated
public class BufferSizePredictorAdapter implements BufferSizePredictor {
final org.infinispan.commons.marshall.BufferSizePredictor delegate;
public BufferSize... |
sadupally/Dev | unisa-tools/unisa-proxy/src/java/za/ac/unisa/lms/tools/proxy/tags/SakaiLinkTag.java | package za.ac.unisa.lms.tools.proxy.tags;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.htmlparser.tags.LinkTag;
import org.htmlparser.util.ParserException;
public class SakaiLinkTag extends LinkTag {
/**
* Eclipse Generated.
*/
private static final long serial... |
lgliuwei/AndroidAdvanceStudy | app/src/main/java/cn/codingblock/androidadvancestudy/contentprovides/system_provider/ContactProviderActivity.java | <gh_stars>1-10
package cn.codingblock.androidadvancestudy.contentprovides.system_provider;
import android.content.ContentUris;
import android.content.ContentValues;
import android.database.Cursor;
import android.net.Uri;
import android.provider.ContactsContract;
import android.support.v7.app.AppCompatActivity;
import ... |
wilebeast/FireFox-OS | B2G/gecko/content/xtf/src/nsIXTFService.h | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef __NS_IXTFSERVICE_H__
#defi... |
IBPA/FoodAtlas | food_ke/entailment/download.py | import logging
import os
import time
from typing import List, Optional, Tuple
import click
import pandas as pd
import requests
from bs4 import BeautifulSoup
from nltk import sent_tokenize
from pubmed_mapper import Article
from sklearn.feature_extraction.text import CountVectorizer
from tqdm import tqdm
from food_ke.e... |
mikehelmick/CascadeLMS | app/views/blog/index.xml.builder | <filename>app/views/blog/index.xml.builder
xml.instruct!
xml.blog_posts do
@posts.each do |post|
xml.blog_post do
xml.id "#{post.id}"
xml.title "#{post.title}"
xml.featured "#{post.featured}"
xml.author "#{post.user.display_name}"
xml.posted_at CGI.rfc1123_date(post.created_at)
... |
jaysonjphillips/mood-tracker-app | client/src/layouts/main.js | import React from 'react'
import { makeStyles } from '@material-ui/core/styles'
import Paper from '@material-ui/core/Paper'
import Grid from '@material-ui/core/Grid'
const useStyles = makeStyles((theme) => ({
root: {
flexGrow: 1
},
form: {
'& .MuiTextField-root': {
margin: theme.spacing(1)
}
... |
damnitrahul/gatsby-theme-catalyst | themes/gatsby-theme-catalyst-blog/src/components/templates/tag-template.js | <reponame>damnitrahul/gatsby-theme-catalyst<filename>themes/gatsby-theme-catalyst-blog/src/components/templates/tag-template.js
/** @jsx jsx */
import { jsx, Styled } from "theme-ui"
import { Link } from "gatsby"
import { SEO, Layout } from "gatsby-theme-catalyst-core"
const TagPage = ({ posts, tag }) => {
return (
... |
CentriaUniversityOfAppliedSciences/VASTE_logistics_platform | api/controllers/usersVehiclesController.js | <reponame>CentriaUniversityOfAppliedSciences/VASTE_logistics_platform
'use strict';
var fs = require('fs');
var mongoose = require('mongoose'),
usersCars = mongoose.model('UsersVehicles');
var environmentJson = fs.readFileSync("./environment.json");
var environment = JSON.parse(environmentJson);
var apikey = e... |
weitaoxu/dapp_admin | quant-system/src/main/java/com/qkbus/modules/system/service/impl/DictServiceImpl.java | <reponame>weitaoxu/dapp_admin
package com.qkbus.modules.system.service.impl;
import com.github.pagehelper.PageInfo;
import com.qkbus.common.service.impl.BaseServiceImpl;
import com.qkbus.common.utils.QueryHelpPlus;
import com.qkbus.dozer.service.IGenerator;
import com.qkbus.exception.BadRequestException;
import com.q... |
mirkobrombin/wine | dlls/wintab.dll16/wintab.c | <filename>dlls/wintab.dll16/wintab.c
/*
* Tablet Win16
*
* Copyright 2002 <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your... |
baotiao/zeppelin-gateway | src/s3_cmds/zgw_s3_uploadpart.cc | #include "src/s3_cmds/zgw_s3_object.h"
#include "slash/include/env.h"
#include "src/zgwstore/zgw_define.h"
#include "src/s3_cmds/zgw_s3_xml.h"
bool UploadPartCmd::DoInitial() {
http_response_xml_.clear();
md5_ctx_.Init();
size_t data_size = std::stoul(req_headers_["content-length"]);
size_t m = data_size % z... |
VinceW0/Leetcode_Python_solutions | Algorithms_easy/1708. Largest Subarray Length K.py | <filename>Algorithms_easy/1708. Largest Subarray Length K.py<gh_stars>1-10
"""
1708. Largest Subarray Length K
Easy
An array A is larger than some array B if for the first index i where A[i] != B[i], A[i] > B[i].
For example, consider 0-indexing:
[1,3,2,4] > [1,2,2,4], since at index 1, 3 > 2.
[1,4,4,4] < [2,1,1,1],... |
Ren0503/javascript-algorithms | src/algorithms/sorting/radix-sort/RadixSort.js | import Sort from '../Sort';
// Sử dụng charCode (a = 97, b = 98, v.v.), ta có thể ánh xạ ký tự thành các nhóm từ 0 - 25
const BASE_CHAR_CODE = 97;
const NUMBER_OF_POSSIBLE_DIGITS = 10;
const ENGLISH_ALPHABET_LENGTH = 26;
export default class RadixSort extends Sort {
/**
* @param {*[]} originalArray
* @r... |
LeandroTk/Algorithms | coding_interviews/interviews/uber/maxFrequency.js | export function maxFrequency(numbers) {
let maxFrequencyNumber = -1;
let result = -1;
let numberToFrequencyMap = {};
for (let num of numbers) {
if (numberToFrequencyMap[num]) {
numberToFrequencyMap[num]++;
} else {
numberToFrequencyMap[num] = 1;
}
}
Object.entries(numberToFrequency... |
niranjan21/skt | public/modules/yarn-returns/services/yarn-returns.client.service.js | 'use strict';
//Yarn returns service used to communicate Yarn returns REST endpoints
angular.module('yarn-returns').factory('YarnReturns', ['$resource',
function($resource) {
return $resource('yarn-returns/:yarnReturnId', { yarnReturnId: '@_id'
}, {
update: {
method: 'PUT'
}
});
}
]); |
xv44586/toolkit4nlp | examples/classification_tnews_contrastive_learning_dropout.py | """
用dropout 做数据增强,构造样本的不同view,来通过增加对比学习增强分类模型的性能
"""
import json
from tqdm import tqdm
from toolkit4nlp.backend import keras, K
from toolkit4nlp.tokenizers import Tokenizer, load_vocab
from toolkit4nlp.models import build_transformer_model, Model
from toolkit4nlp.optimizers import *
from toolkit4nlp.utils import pad... |
tamlyn/substance | packages/image/ImageComponent.js | import NodeComponent from '../../ui/NodeComponent'
class ImageComponent extends NodeComponent {
didMount() {
super.didMount.call(this)
this.context.editorSession.onRender('document', this._onDocumentChange, this)
}
dispose() {
super.dispose.call(this)
this.context.editorSession.off(this)
}
... |
mikiec84/sbt | main-settings/src/main/scala/sbt/ScopeAxis.scala | /*
* sbt
* Copyright 2011 - 2018, Lightbend, Inc.
* Copyright 2008 - 2010, <NAME>
* Licensed under Apache License 2.0 (see LICENSE)
*/
package sbt
import sbt.internal.util.Types.some
sealed trait ScopeAxis[+S] {
def foldStrict[T](f: S => T, ifZero: T, ifThis: T): T = fold(f, ifZero, ifThis)
def fold[T](f: S... |
DLQ666/MI-Mall | mi-seckill/src/main/java/com/dlq/seckill/feign/CouponFeignService.java | <reponame>DLQ666/MI-Mall<filename>mi-seckill/src/main/java/com/dlq/seckill/feign/CouponFeignService.java
package com.dlq.seckill.feign;
import com.dlq.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
/**
*@program: MI-Mall
*@descripti... |
lulitao1997/minijavac | src/utils.cpp | <gh_stars>0
#include "utils.hpp"
#include <sstream>
using namespace std;
int error_num;
vector<string> lines;
static const char *reds = "\033[1;31m", *rede = "\033[0m";
static vector<ostringstream> msgs;
static vector<yy::location> locs;
std::ostream &complain(yy::location loc) {
// return std::cerr << loc << ",... |
moutainhigh/ses-server | ses-app/ses-web-ros/src/main/java/com/redescooter/ses/web/ros/service/assign/impl/ToBeAssignServiceImpl.java | <gh_stars>0
package com.redescooter.ses.web.ros.service.assign.impl;
import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.redescooter.ses.api.common.constant.Constant;
i... |
janvi16/-HACKTOBERFEST2K20 | Python/list_comprehension.py | <gh_stars>10-100
# create a list
nums = [i for i in range(10)]
print(nums)
# with conditional
odds = [i for i in nums if i % 2 != 0]
print(odds)
|
serbaut/cloudstack | api/src/org/apache/cloudstack/api/response/RolePermissionResponse.java | <gh_stars>10-100
// 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
// "L... |
projectPiki/pikmin2 | src/plugProjectOgawaU/ogAngleMgr.cpp | <gh_stars>10-100
#include "types.h"
#include "og/Screen/AngleMgr.h"
#include "Dolphin/math.h"
namespace og {
namespace Screen {
/*
* --INFO--
* Address: 8033028C
* Size: 00002C
*/
AngleMgr::AngleMgr()
{
m_currentAngle = 0.0f;
m_angleStep = 0.0f;
m_targetAngle = 0.0f;
m_interpRate = 0.3f;
m_scale ... |
opendata26/PSVRTracker | src/psvrservice/Device/Enumerator/TrackerDeviceEnumerator.h | #ifndef TRACKER_DEVICE_ENUMERATOR_H
#define TRACKER_DEVICE_ENUMERATOR_H
//-- includes -----
#include "DeviceEnumerator.h"
#include "USBApiInterface.h"
#include <string>
//-- definitions -----
class TrackerDeviceEnumerator : public DeviceEnumerator
{
public:
enum eAPIType
{
CommunicationType_INVALID= -1,
Communi... |
lauracristinaes/aula-java | hibernate-release-5.3.7.Final/project/hibernate-core/src/main/java/org/hibernate/result/internal/OutputsImpl.java | /*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.result.internal;
import java.sql.PreparedStatement;
import j... |
Stephen-Seo/SwapShop | src/swapShop/entities/BlueBricks.cpp | <reponame>Stephen-Seo/SwapShop<gh_stars>0
#include <swapShop/entities/BlueBricks.hpp>
BlueBricks::BlueBricks(const sf::Texture& texture) :
SwapEntity(texture),
timeCounter(0.0f),
currentFrame(0)
{
sprite.setSprite(0, 6*16, 0);
sprite.setSprite(16, 6*16, 1);
sprite.setSprite(2*16, 6*16, 2);
sprite.setS... |
PolySync/core-python-api | ps_util/features/steps/esr_eth_msg_xcp.py | <reponame>PolySync/core-python-api<gh_stars>0
# WARNING: Auto-generated file. Any changes are subject to being overwritten
# by setup.py build script.
#!/usr/bin/python
import time
from behave import given
from behave import when
from behave import then
from hamcrest import assert_that, equal_to
try:
import polys... |
xzhan96/chromium.src | third_party/WebKit/Source/core/frame/FrameView.cpp | /*
* Copyright (C) 1998, 1999 <NAME> <<EMAIL>>
* 1999 <NAME> <<EMAIL>>
* 1999 <NAME> <<EMAIL>>
* 2000 <NAME> <<EMAIL>>
* Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
* (C) 2006 <NAME> (<EMAIL>)
* (C) 200... |
tsegismont/rhq-metrics | core/rx-java-driver/src/main/java/org/hawkular/rx/cassandra/driver/RxSession.java | <reponame>tsegismont/rhq-metrics<filename>core/rx-java-driver/src/main/java/org/hawkular/rx/cassandra/driver/RxSession.java
/*
* Copyright 2014-2016 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* y... |
raymondfx/cert-verifier-js | test/fixtures/index.js | <filename>test/fixtures/index.js
import EthereumMainV2Valid from './ethereum-main-valid-2.0';
import EthereumMainInvalidMerkleRoot from './ethereum-merkle-root-unmatch-2.0';
import EthereumMainRevoked from './ethereum-revoked-2.0';
import EthereumRopstenV2Valid from './ethereum-ropsten-valid-2.0';
import EthereumTamper... |
JPuigV/api-scala | src/main/tv/codely/api/entry_point/controller/user/UserGetController.scala | package tv.codely.api.entry_point.controller.user
import akka.http.scaladsl.marshallers.sprayjson.SprayJsonSupport
import akka.http.scaladsl.server.Directives.complete
import akka.http.scaladsl.server.StandardRoute
import spray.json.DefaultJsonProtocol
import tv.codely.api.module.user.application.UsersSearcher
import ... |
jpvanoosten/VolumeTiledForwardShading | Engine/inc/Graphics/DX12/DescriptorAllocatorDX12.h | <gh_stars>10-100
#pragma once
/*
* Copyright(c) 2015 <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 limitation the rights
* to use,... |
m34434/JavaGimmicks | core/src/main/java/net/sf/javagimmicks/transform/BidiTransforming.java | package net.sf.javagimmicks.transform;
/**
* An interface for objects that carry a {@link BidiFunction} for internally
* transforming objects.
*
* @param <F>
* the source object type of the contained {@link BidiFunction}
* @param <T>
* the target object type of the contained {@link BidiFunc... |
Symphoomc1f/krexusj | back/src/main/java/com/java110/things/Controller/community/CommunityController.java | package com.java110.things.Controller.community;
import com.alibaba.fastjson.JSONObject;
import com.java110.things.Controller.BaseController;
import com.java110.things.entity.community.CommunityDto;
import com.java110.things.entity.response.ResultDto;
import com.java110.things.service.community.ICommunityService;
impo... |
lastobelus/shutil | lib/shutil/workers.rb | <gh_stars>0
module Shutil
module Workers
extend ActiveSupport::Autoload
autoload :Utilities
def self.eager_load!
super
Shutil::Workers::Utilities.eager_load!
end
end
end |
qianyongjun123/FPGA-Industrial-Smart-Camera | ui-qt/DataOutput/IOTrigger/IOTrigger.h | #ifndef IOTRIGGER_H
#define IOTRIGGER_H
#include "iotrigger_global.h"
#include <QWidget>
class IOTRIGGERSHARED_EXPORT IOTrigger
{
public:
IOTrigger();
};
extern "C" Q_DECL_EXPORT QWidget* GetWidget();
#endif // IOTRIGGER_H
|
ComputationalRadiationPhysics/mallocMC | alpaka/include/alpaka/rand/Philox/PhiloxBaseStdArray.hpp | /* Copyright 2022 <NAME>, <NAME>
*
* This file is part of alpaka.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#pragma once
#include <array>
#include <c... |
dymecard/j2cl | transpiler/java/com/google/j2cl/transpiler/passes/NormalizeBasicCasts.java | /*
* Copyright 2021 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 in w... |
ScalablyTyped/SlinkyTyped | a/aws-sdk/src/main/scala/typingsSlinky/awsSdk/ecrMod/DeleteRepositoryPolicyRequest.scala | package typingsSlinky.awsSdk.ecrMod
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
@js.native
trait DeleteRepositoryPolicyRequest extends StObject {
/**
* The AWS acc... |
tlmn/dwe-wahlkampf | src/components/sections/header.js | <filename>src/components/sections/header.js
import * as React from "react"
import { useIntl } from "gatsby-plugin-intl"
import LogoWordMark from "../../assets/svg/logoWordMark"
import LanguageSwitch from "../languageSwitch"
import CrossJa from "../../assets/svg/crossYes"
const Header = () => {
const intl = useIntl()... |
angelamsj/cruise-control | mathgl-2.4.3/include/mgl2/canvas.h | /***************************************************************************
* canvas.h is part of Math Graphic Library
* Copyright (C) 2007-2016 <NAME> <<EMAIL>> *
* *
* This program is free software; you can redistribute it and/or mod... |
aposin/gem | bundles/org.aposin.gem.ui/src/org/aposin/gem/ui/view/labelprovider/TypedColumnLabelProvider.java | <reponame>aposin/gem
/**
* Copyright 2020 Association for the promotion of open-source insurance software and for the establishment of open interface standards in the insurance industry (Verein zur Foerderung quelloffener Versicherungssoftware und Etablierung offener Schnittstellenstandards in der Versicherungsbranche... |
sh-web/compatibility-detector | src/detectors/flash_percentloaded.js | <gh_stars>1-10
/**
* Copyright 2010 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 ... |
wcnnkh/scw-app | scw-app-core/src/main/java/scw/app/user/enums/UnionIdType.java | <filename>scw-app-core/src/main/java/scw/app/user/enums/UnionIdType.java<gh_stars>0
package scw.app.user.enums;
/**
* 常见的类型
* @author shuchaowen
*
*/
public enum UnionIdType {
QQ_OPENID(1000),
WX_OPENID(2000),
WX_XCX_OPENID(3000),
WX_UNIONID(4000),
;
private final int value;
UnionIdType(int... |
ameyjadiye/commons-graph | src/main/java/org/apache/commons/graph/coloring/ColoredVertices.java | package org.apache.commons.graph.coloring;
/*
* 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 L... |
hervewenjie/mysql | storage/ndb/clusterj/clusterj-bindings/src/main/java/com/mysql/clusterj/bindings/IndexImpl.java | /*
* Copyright 2010 Sun Microsystems, Inc.
* All rights reserved. Use is subject to license terms.
*
* 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; version 2 of the License.
*
* T... |
stungkit/pytorch | aten/src/ATen/cuda/llvm_jit_strings.h | #pragma once
#include <string>
#include <c10/macros/Export.h>
namespace at {
namespace cuda {
TORCH_CUDA_CPP_API const std::string &get_traits_string();
TORCH_CUDA_CPP_API const std::string &get_cmath_string();
TORCH_CUDA_CPP_API const std::string &get_complex_body_string();
TORCH_CUDA_CPP_API const std::string &get... |
Maastro-CDS-Imaging-Group/SQLite4Radiomics | radiomicsfeatureextractionpipeline/backend/src/dal/database_connector.py | """
This module is used as a template for all database connectors.
All database connectors should inherit from this base class.
"""
import os
from abc import ABC, abstractmethod
from typing import Any, Optional
import pandas as pd
class DatabaseConnector(ABC):
"""
This **Abstract Base Class** is used for:
... |
lazlojd/modaDashboard | client/node_modules/@coreui/react/lib/Shared/toggle-classes.js | "use strict";
exports.__esModule = true;
exports.default = toggleClasses;
function toggleClasses(toggleClass, classList, force) {
var level = classList.indexOf(toggleClass);
var removeClassList = classList.slice(0, level);
removeClassList.map(function (className) {
return document.body.classList.remove(class... |
sowrisurya/vmraid | vmraid/www/unsubscribe.py | from __future__ import unicode_literals
import vmraid
from vmraid.utils.verified_command import verify_request
from vmraid.email.doctype.newsletter.newsletter import confirmed_unsubscribe
no_cache = True
def get_context(context):
vmraid.flags.ignore_permissions = True
# Called for confirmation.
if "email" in vmrai... |
dennyac/onnxruntime | onnxruntime/core/providers/cuda/nn/instance_norm_impl.h | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include "core/providers/cuda/shared_inc/fast_divmod.h"
namespace onnxruntime {
namespace cuda {
template <typename T>
void InstanceNormImpl(
cudaStream_t stream,
const T* input_data,
const T* scal... |
xushaomin/appleframework | apple-launcher/src/main/java/com/appleframework/launcher/StartEventListener.java | <filename>apple-launcher/src/main/java/com/appleframework/launcher/StartEventListener.java
package com.appleframework.launcher;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.web.context.WebServerInitializedEvent;
import org.springframework.context.annotation.Configuration;
im... |
mzhg/PostProcessingWork | testframewok/src/main/java/jet/opengl/demos/labs/scattering/AtmosphereTest.java | <filename>testframewok/src/main/java/jet/opengl/demos/labs/scattering/AtmosphereTest.java
package jet.opengl.demos.labs.scattering;
import com.nvidia.developer.opengl.app.NvCameraMotionType;
import com.nvidia.developer.opengl.app.NvSampleApp;
import com.nvidia.developer.opengl.models.DrawMode;
import com.nvidia.develo... |
PsichiX/Unreal-Systems-Architecture | Source/Boids/Systems/Persistent/BoidsKeepInSpaceBoundsSystem.cpp | <reponame>PsichiX/Unreal-Systems-Architecture
#include "Boids/Systems/Persistent/BoidsKeepInSpaceBoundsSystem.h"
#include "Shared/Components/SpaceBoundsComponent.h"
#include "Shared/Components/VelocityComponent.h"
#include "Systems/Public/SystemsWorld.h"
#include "Boids/Components/BoidComponent.h"
#include "Boids/Res... |
PushyamiKaveti/kalibr | aslam_cv/aslam_time/include/aslam/implementation/Time.hpp | <reponame>PushyamiKaveti/kalibr
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2008, <NAME>, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted pr... |
DGB-UNAM-FOLIO/ui-users | test/bigtest/interactors/settings-feefine.js | <reponame>DGB-UNAM-FOLIO/ui-users
import {
interactor,
clickable,
text,
isPresent,
count,
scoped,
collection,
} from '@bigtest/interactor';
import CalloutInteractor from '@folio/stripes-components/lib/Callout/tests/interactor'; // eslint-disable-line
import ButtonInteractor from '@folio/stripes-component... |
RudolfCardinal/pythonlib | cardinal_pythonlib/sysops.py | #!/usr/bin/env python
# cardinal_pythonlib/sysops.py
"""
===============================================================================
Original code copyright (C) 2009-2021 <NAME> (<EMAIL>).
This file is part of cardinal_pythonlib.
Licensed under the Apache License, Version 2.0 (the "License");
yo... |
mehrdad-shokri/neopg | legacy/libgcrypt/tests/pubkey.cpp | <filename>legacy/libgcrypt/tests/pubkey.cpp
/* pubkey.c - Public key encryption/decryption tests
* Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
*
* This file is part of Libgcrypt.
*
* Libgcrypt is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser Ge... |
zhoujy3016/renren-security | evaluation_admin/src/main/java/io/renren/modules/eva/service/BteLessonTypeService.java | package io.renren.modules.eva.service;
import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.eva.entity.BteLessonTypeEntity;
import java.util.Map;
/**
*
*
* @author chenshun
* @email <EMAIL>
* @date 2018-07-02 09:44:42
*/
public interface... |
magicmarvman/serenity | Libraries/LibJS/Tests/automatic-semicolon-insertion.js | load("test-common.js");
/**
* This file tests automatic semicolon insertion rules.
* If this file produces syntax errors, something is wrong.
*/
function bar() {
// https://github.com/SerenityOS/serenity/issues/1829
if (1)
return 1;
else
return 0;
if (1)
return 1
else
... |
YJBeetle/QtAndroidAPI | android-31/android/security/identity/WritableIdentityCredential.cpp | <gh_stars>10-100
#include "../../../JByteArray.hpp"
#include "./PersonalizationData.hpp"
#include "./WritableIdentityCredential.hpp"
namespace android::security::identity
{
// Fields
// QJniObject forward
WritableIdentityCredential::WritableIdentityCredential(QJniObject obj) : JObject(obj) {}
// Constructors
... |
antoine-spahr/X-ray-Anomaly-Detection | Code/src/preprocessing/segmentation.py | <filename>Code/src/preprocessing/segmentation.py<gh_stars>1-10
import matplotlib.pyplot as plt
import matplotlib
import skimage.draw
import skimage.morphology
import skimage
import numpy as np
import shapely.geometry
import pandas as pd
import scipy.spatial.distance as dist
import PIL.Image
import PIL.ImageDraw
def se... |
CTLocalGovTeam/map-and-app-gallery-template | nls/lt/localizedStrings.js | /*global define */
/*
| Copyright 2014 Esri
|
| 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... |
gurumobile/RemoteControlGalileoExam | RemoteControlGalileo/OpenGL/GLConstants.h | #ifndef LGT_ShaderUtilities_h
#define LGT_ShaderUtilities_h
#import <OpenGLES/ES2/gl.h>
#import <OpenGLES/ES2/glext.h>
namespace GL
{
extern GLfloat unitSquareVertices[8];
extern GLfloat originCentredSquareVertices[8];
extern GLfloat yPlaneUVs[8];
extern GLfloat yPlaneVertices[8];
extern GLflo... |
chriszh123/ruiyi | ruoyi-fac/src/main/java/com/ruoyi/fac/mapper/FacFocusMapMapper.java | package com.ruoyi.fac.mapper;
import com.ruoyi.fac.model.FacFocusMap;
import com.ruoyi.fac.model.FacFocusMapExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface FacFocusMapMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to ... |
copslock/broadcom_cpri | sdk-6.5.20/src/bcm/dnx/algo/port_pp/algo_port_pp.c | <filename>sdk-6.5.20/src/bcm/dnx/algo/port_pp/algo_port_pp.c
/**
* \file algo_port_pp.c
* Internal DNX Port PP Managment APIs
PIs This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
PIs
PIs Copyright 2007-2020 Broadcom Inc. All rights re... |
WhatAKitty/jmore-builder | jmore-blog/src/main/java/com/whatakitty/jmore/blog/domain/security/UserType.java | package com.whatakitty.jmore.blog.domain.security;
import com.whatakitty.jmore.framework.ddd.domain.ValueObject;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Value;
/**
* user type
* 0. guest
* 1. author
*
* @author WhatAKitty
* @date 2019/05/24
* ... |
magic-bunny/beanui | demo/src/main/java/demo/controller/table/ComplexTabelController.java | <reponame>magic-bunny/beanui
package demo.controller.table;
import demo.view.table.complex.ComplexTableDataForm;
import demo.view.table.complex.ComplexTableEditForm;
import demo.view.table.complex.ComplexRow;
import org.december.beanui.element.Type;
import org.springframework.web.bind.annotation.RequestMapping;
import... |
yomboprime/YomboServer | public/lib/fileUtils/fileUtils.js | <reponame>yomboprime/YomboServer
// For Node only
var fs = require( "fs" );
if ( typeof module !== 'undefined' ) {
module.exports = {
loadJSONFileSync: loadJSONFileSync,
writeJSONFileSync: writeJSONFileSync,
getObjectSerializedAsString: getObjectSerializedAsString,
loadTextFileSy... |
InfoClinika/chorus-opensource | data-management/dm-integration-helper/src/main/java/com/infoclinika/mssharing/platform/model/helper/write/UserManager.java | package com.infoclinika.mssharing.platform.model.helper.write;
import com.infoclinika.mssharing.platform.entity.PersonData;
import com.infoclinika.mssharing.platform.entity.UserInvitationLink;
import com.infoclinika.mssharing.platform.entity.UserTemplate;
import com.infoclinika.mssharing.platform.model.AccessDenied;
i... |
GameTechDev/OcclusionCulling | SampleComponents/TaskMgrSS.cpp | ////////////////////////////////////////////////////////////////////////////////
// Copyright 2017 Intel 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://w... |
mstrobel/Luyten | src/org/fife/ui/rtextarea/RTADefaultInputMap.java | <filename>src/org/fife/ui/rtextarea/RTADefaultInputMap.java<gh_stars>1-10
/*
* 08/19/2004
*
* RTADefaultInputMap.java - The default input map for RTextAreas.
*
* This library is distributed under a modified BSD license. See the included
* RSyntaxTextArea.License.txt file for details.
*/
package org.fif... |
isabella232/meshjs | examples/fractaltree_obj_2_cm/main.js | <reponame>isabella232/meshjs
/**
<NAME>
https://github.com/mikechambers
http://www.mikechambers.com
Released under an MIT License
Copyright <NAME> 2018
**/
import meshjs from "../../lib/mesh.js";
import Vector from "../../lib/math/vector.js";
import Circle from "../../lib/geometry/circle.js";
import Color from "... |
eleswastaken/odin-project | cv-project/src/App.js | <reponame>eleswastaken/odin-project
import GeneralInformation from './components/GeneralInformation';
import EducationInformation from './components/EducationInformation';
function App() {
return (
<div>
<GeneralInformation />
<EducationInformation />
</div>
);
}
export default App;
|
markphip/testing | jira-dvcs-connector-pageobjects/src/main/java/com/atlassian/jira/plugins/dvcs/pageobjects/remoterestpoint/PullRequestLocalRestpoint.java | <reponame>markphip/testing
package com.atlassian.jira.plugins.dvcs.pageobjects.remoterestpoint;
import com.atlassian.jira.pageobjects.JiraTestedProduct;
import com.atlassian.jira.plugins.dvcs.model.dev.RestDevResponse;
import com.atlassian.jira.plugins.dvcs.model.dev.RestPrRepository;
import com.google.common.bas... |
EwanNoble/apply-for-teacher-training | spec/forms/support_interface/edit_single_provider_user_form_spec.rb | <reponame>EwanNoble/apply-for-teacher-training<filename>spec/forms/support_interface/edit_single_provider_user_form_spec.rb
require 'rails_helper'
RSpec.describe SupportInterface::EditSingleProviderUserForm do
let(:provider) { build_stubbed(:provider, id: 2) }
let(:provider_permissions) do
{
provider_per... |
vvelikodny/aws-sdk-go-v2 | service/storagegateway/api_op_DescribeVTLDevices.go | <reponame>vvelikodny/aws-sdk-go-v2
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package storagegateway
import (
"context"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/internal/awsutil"
)
// DescribeVTLDevicesInput
type DescribeVTLDevicesInput struct {
_ struct{} `type... |
ruhan1/indy | models/core-java/src/test/java/org/commonjava/indy/model/core/dto/EndpointViewListingTest.java | /**
* Copyright (C) 2011-2019 Red Hat, Inc. (https://github.com/Commonjava/indy)
*
* 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
... |
ZFFrameworkDist/ZFFramework | ZF/ZFCore_impl/zfsrc/ZFImpl/sys_Qt/ZFProtocolZFObjectMutex_sys_Qt.cpp | #include "ZFImpl_sys_Qt_ZFCore_impl.h"
#include "ZFCore/protocol/ZFProtocolZFObjectMutex.h"
#if ZF_ENV_sys_Qt
#include <QRecursiveMutex>
ZF_NAMESPACE_GLOBAL_BEGIN
zfclassNotPOD _ZFP_ZFObjectMutexImpl_sys_Qt
{
public:
static void *implInit(void)
{
return zfnew(QRecursiveMutex);
}
static void i... |
LeoChensj/Demo | xbed/PublicView/BlueEnableButton.h | //
// BlueEnableButton.h
// xbed
//
// Created by Leo.Chen on 16/8/26.
// Copyright © 2016年 Leo.Chen. All rights reserved.
//
#import "EnableButton.h"
@interface BlueEnableButton : EnableButton
@property (nonatomic, strong)NSString *title;
@end
|
vadimsu/netbsd_dpdk_port | netbsd/net80211/ieee80211_node.h | <gh_stars>1-10
/* $NetBSD: ieee80211_node.h,v 1.24 2011/10/07 16:51:45 dyoung Exp $ */
/*-
* Copyright (c) 2001 <NAME>
* Copyright (c) 2002-2005 <NAME>, Errno Consulting
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fo... |
xuychen/Leetcode | 1401-1500/1471-1480/1480-runningSumOf1DArray/runningSumOf1DArray.py | <filename>1401-1500/1471-1480/1480-runningSumOf1DArray/runningSumOf1DArray.py
class Solution(object):
def runningSum(self, nums):
"""
:type nums: List[int]
:rtype: List[int]
"""
result = nums[:]
for i in range(1, len(nums)):
result[i] += result[i-1]
... |
ranmx/playframework | documentation/manual/working/scalaGuide/main/tests/code/database/ScalaTestingWithDatabases.scala | <filename>documentation/manual/working/scalaGuide/main/tests/code/database/ScalaTestingWithDatabases.scala
/*
* Copyright (C) 2009-2019 Lightbend Inc. <https://www.lightbend.com>
*/
package scalaguide.testing.database
import java.sql.SQLException
import org.specs2.mutable.Specification
class ScalaTestingWithDatab... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.