repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
hchenji/optimsoc | external/opensocdebug/software/src/libosd/hostctrl.c | <gh_stars>10-100
/* Copyright 2017 The Open SoC Debug Project
*
* 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 ... |
lauracristinaes/aula-java | hibernate-release-5.3.7.Final/project/hibernate-core/src/main/java/org/hibernate/boot/archive/spi/ArchiveEntry.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.boot.archive.spi;
/**
* Represent an entry in the archive.
... |
nafs1/testing_project | src/main/java/com/numericalmethod/suanshu/DeepCopyable.java | /*
* Copyright (c) Numerical Method Inc.
* http://www.numericalmethod.com/
*
* THIS SOFTWARE IS LICENSED, NOT SOLD.
*
* YOU MAY USE THIS SOFTWARE ONLY AS DESCRIBED IN THE LICENSE.
* IF YOU ARE NOT AWARE OF AND/OR DO NOT AGREE TO THE TERMS OF THE LICENSE,
* DO NOT USE THIS SOFTWARE.
*
* THE SOFTWA... |
metux/chromium-deb | cc/output/software_output_device.h | <gh_stars>0
// Copyright 2012 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 CC_OUTPUT_SOFTWARE_OUTPUT_DEVICE_H_
#define CC_OUTPUT_SOFTWARE_OUTPUT_DEVICE_H_
#include <memory>
#include "base/macros.h"
#include ... |
Lee12312/CodingTest | Java/src/Chapter07/actualproblem02/MySourceCode2.java | package Chapter07.actualproblem02;
import java.util.*;
public class MySourceCode2 {
public static int n, m;
public static int[] store;
public static int[] finds;
public static boolean binarySearch(int start, int end, int target){
if(start > end) return false;
int mid = (start + end... |
hgogov/Job-Posting-Board-Java-Spring-MVC- | src/main/java/com/company/jobs/service/impl/JobExperienceLevelServiceImpl.java | <filename>src/main/java/com/company/jobs/service/impl/JobExperienceLevelServiceImpl.java
package com.company.jobs.service.impl;
import com.company.jobs.dto.JobExperienceLevelDTO;
import com.company.jobs.exception.NotFoundException;
import com.company.jobs.mapper.JobExperienceLevelMapper;
import com.company.jobs.reposi... |
michel-pi/xenforo-documentation | docs/2-1-0/d9/d00/class_x_f_1_1_template_1_1_compiler_1_1_tag_1_1_form_row.js | <reponame>michel-pi/xenforo-documentation
var class_x_f_1_1_template_1_1_compiler_1_1_tag_1_1_form_row =
[
[ "compile", "d9/d00/class_x_f_1_1_template_1_1_compiler_1_1_tag_1_1_form_row.html#a553985f10d04ca8607ed52f394087367", null ]
]; |
paullewallencom/java-978-1-7882-9625-0 | _src/Scripts/Chapter01/src/com/ioc/factory/ExportDataFactory.java | <reponame>paullewallencom/java-978-1-7882-9625-0
package com.ioc.factory;
public class ExportDataFactory {
public static IExportData getExportData(String type){
IExportData exportData = null;
if("TO_HTML".equalsIgnoreCase(type)){
exportData = new ExportHTML();
}else if("TO_PDF".equalsIgnoreCase(ty... |
tek/fs2-pdf | src/main/scala/fs2/pdf/IndirectObj.scala | <reponame>tek/fs2-pdf
package fs2
package pdf
import cats.implicits._
import scodec.{Attempt, Codec}
import scodec.bits.{BitVector, ByteVector}
import scodec.codecs.bits
case class IndirectObj(index: Obj.Index, data: Prim, stream: Option[BitVector])
object IndirectObj
{
def streamCodec: Codec[BitVector] =
Code... |
txlos/wpf | src/Microsoft.DotNet.Wpf/src/WpfGfx/core/fxjit/Collector/P_u16x8.cpp | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//+----------------------------------------------------------------------------
//
//
// Abstract:
// Protot... |
pengchenyu111/ScalaStudy | src/main/scala/com/pcy/chapter05/set/Set01.scala | package com.pcy.chapter05.set
import scala.collection.mutable
/**
* @author pengchenyu
* @date 2020/7/10 12:02
*
* 默认情况下,Scala 使 用 的 是 不 可 变 集 合 , 如 果 你 想 使 用 可 变 集 合 , 需 要 引 用
* scala.collection.mutable.Set 包
*/
object Set01 {
def main(args: Array[String]): Unit = {
println("-----------... |
netarchivesuite/webarchive-commons | src/main/java/org/archive/url/URLCanonicalizer.java | <filename>src/main/java/org/archive/url/URLCanonicalizer.java
package org.archive.url;
public interface URLCanonicalizer {
public void canonicalize(HandyURL url);
}
|
jauhari-i/minigames-new | src/controllers/GameControllers/index.js | <filename>src/controllers/GameControllers/index.js
import services from '../../services'
import { handleError } from '../../helpers/error'
import { validationResult } from 'express-validator'
const {
GameServices: {
AddGame,
DeleteGame,
ListGameAdmin,
DetailGame,
ActivateGame,
UpdateGame,
... |
krattai/AEBL | blades/mediatomb/src/youtube_service.h | /*MT*
MediaTomb - http://www.mediatomb.cc/
youtube_service.h - this file is part of MediaTomb.
Copyright (C) 2005 <NAME> <<EMAIL>>,
<NAME> <<EMAIL>>
Copyright (C) 2006-2010 <NAME> <<EMAIL>>,
<NAME> <<EMAIL>>,
... |
neha-b2001/wildfly-core | cli/src/test/java/org/jboss/as/cli/completion/address/test/NodeNameFormattingTestCase.java | <gh_stars>100-1000
/*
* JBoss, Home of Professional Open Source.
* Copyright 2015, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/o... |
UprootStaging/maven-OpenViewerFX-src | OpenViewerFX/src/main/java/org/jpedal/parser/image/utils/JPegImageDecoder.java | <reponame>UprootStaging/maven-OpenViewerFX-src
/*
* ===========================================
* Java Pdf Extraction Decoding Access Library
* ===========================================
*
* Project Info: http://www.idrsolutions.com
* Help section for developers at http://www.idrsolutions.com/support/
*
* (C... |
harrinry/QRPortal | public/src/body-rules-list/index.js | import { connect } from 'react-redux';
import BodyRulesList from './brl-model';
import { childConstructor, SearchChildConstructor, standardsChildConstructor } from './brl-lib';
import { fetchDetailsData } from 'details-section/ds-actions';
import { setSelected } from './brl-actions';
import { setSelectedSearchResult } ... |
snowberryfield/printemps | printemps/option/enumerate/enumerate.h | /*****************************************************************************/
// Copyright (c) 2020-2021 <NAME>
// Released under the MIT license
// https://opensource.org/licenses/mit-license.php
/*****************************************************************************/
#ifndef PRINTEMPS_OPTION_ENUMERATE_H__
#d... |
HritikR/secretlint | examples/benchmark/targets/js-primer/tools/typo-finder.js | <reponame>HritikR/secretlint
// LICENSE : MIT
"use strict";
const globby = require("globby");
const fs = require("fs");
const path = require("path");
const sourceDir = path.join(__dirname, "..", "source");
const remark = require("remark")();
const select = require("unist-util-select");
const lodash = require("lodash");... |
emerfelippini/Curso_em_video-Aulas_Python | ex023a.py | #frase = input('Digite um número de 0 a 9999: ')
#print('A unidade é {}'.format(frase[3]))
#print('A dezena é {}'.format(frase[2]))
#print('A centena é {}'.format(frase[1]))
#print('A milhar é {}'.format(frase[0]))
num = int(input('Digite um número: '))
print('Analisando seu número ...')
u = num // 1 % 10
d = num // 10... |
weimingtom/eepp | src/eepp/window/backend/SDL2/cbackendsdl2.hpp | #ifndef EE_WINDOWCBACKENDSDL2_HPP
#define EE_WINDOWCBACKENDSDL2_HPP
#include <eepp/window/cbackend.hpp>
#include <eepp/window/backend/SDL2/base.hpp>
#ifdef EE_BACKEND_SDL2
#include <eepp/window/backend/SDL2/cwindowsdl2.hpp>
namespace EE { namespace Window { namespace Backend { namespace SDL2 {
class EE_API cBacken... |
1587257781/test | main/java/com/tenhisi/web/cgs/entity/CqsHomeinfoDisabledEntity.java | <gh_stars>0
/*
* All content copyright http://www.tenhisi.com, unless
* otherwise indicated. All rights reserved.
* No deletion without permission
*/
package com.tenhisi.web.cgs.entity;
import com.baomidou.mybatisplus.annotation.*;
import javax.validation.constraints.NotNull;
import com.baomidou.mybatisplus.annota... |
couldhll/AMS | modules/keyboardmenus/client/controllers/manage.keyboardmenus.client.controller.js | <filename>modules/keyboardmenus/client/controllers/manage.keyboardmenus.client.controller.js
'use strict';
// Manage Keyboardmenu controller
angular.module('keyboardmenus').controller('ManageKeyboardmenusController', ['$scope', '$stateParams', '$location', 'Authentication', 'Keyboardmenus', 'ImageUploader', '$window',... |
electric-eloquence/fepper-npm | test/tests/readme-tests.js | <filename>test/tests/readme-tests.js
'use strict';
const {expect} = require('chai');
const fs = require('fs-extra');
const {
fepper,
responseFactory
} = require('../init')();
const readme = fepper.tcpIp.fpExpress.readme;
describe('Readme', function () {
after(function () {
fs.unlinkSync(`${global.rootDir}/... |
harkhuang/harkcode | go/thewaytogo/exercises/chapter_15/http_fetch2.go | <filename>go/thewaytogo/exercises/chapter_15/http_fetch2.go
// httpfetch.go
package main
import (
"bufio"
"fmt"
"net/http"
"io/ioutil"
"log"
"os"
"strings"
)
func main() {
fmt.Print("Give the url from which to read: ")
iread := bufio.NewReader(os.Stdin)
url, _ := iread.ReadString('\n')
url... |
Tau-Coin/taucoin-mobile-mining-ipfs | taucoinj-core/src/main/java/io/taucoin/db/state/StateRecord.java | <reponame>Tau-Coin/taucoin-mobile-mining-ipfs
package io.taucoin.db.state;
import io.taucoin.core.AccountState;
import io.taucoin.db.ByteArrayWrapper;
import org.spongycastle.util.encoders.Hex;
/**
States tag file record format:
Hex(address):Hex(RLP(AccountState))
*/
public class StateRecord {
private Byte... |
DreadfullyDistinct/virtual-schemas | src/main/java/com/exasol/adapter/dialects/bigquery/BigQuerySqlDialectFactory.java | package com.exasol.adapter.dialects.bigquery;
import java.sql.Connection;
import com.exasol.adapter.AdapterProperties;
import com.exasol.adapter.dialects.AbstractSqlDialectFactory;
import com.exasol.adapter.dialects.SqlDialect;
/**
* Factory for the BigQuery SQL dialect.
*/
public class BigQuerySqlDialectFactory e... |
uktrade/fadmin2 | end_of_month/management/commands/calculate_period_outturn.py | <reponame>uktrade/fadmin2<filename>end_of_month/management/commands/calculate_period_outturn.py
from django.core.management.base import BaseCommand
from core.utils.generic_helpers import get_current_financial_year
from end_of_month.monthly_outturn import (
OutturnInvalidPeriodError,
OuturnNotArchivedMonthErro... |
ProofSuite/ProofCryptoFiat | test/proxies/rewards.js | /* global artifacts:true, web3: true, contract: true */
import chai from 'chai'
chai.use(require('chai-bignumber')(web3.BigNumber)).should()
const Store = artifacts.require('./Store.sol')
const RewardsStorageProxy = artifacts.require('./RewardsStorageProxy.sol')
contract('Rewards Storage Proxy', (accounts) => {
le... |
yinxiaoer/jietu-laundry | laundry-jt/laundry-admin-dao/src/main/java/com/jietu/admin/utils/PasswordUtil.java | <reponame>yinxiaoer/jietu-laundry
package com.jietu.admin.utils;
import org.apache.shiro.crypto.hash.SimpleHash;
import org.apache.shiro.util.ByteSource;
/**
* 用户密码加密工具类
* @author: 印修河
* @date: 2017/12/11 14:14
*/
public class PasswordUtil {
public static String encrypting(String password, String salt){
... |
phatblat/macOSPrivateFrameworks | PrivateFrameworks/EmailDaemon/EDMailboxRepository.h | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "NSObject.h"
#import "EFLoggable.h"
@class EDMailboxPersistence, NSObject<OS_dispatch_queue>, NSString;
@interface EDMailboxRepository : NSObject <EFLoggable>
{
EDMailboxPe... |
rajkovukovic/tfux | utils/engines/jspm/tools/jspm-dependency-depth.js | 'use strict';
const { parseJspmJSONDependency } = require('./parse-jspm.js');
const { generateModuleName } = require('../../../naming-utils/generate-module-name.js');
function calcOneDependencyDepth(dependencyMap, dependencyName) {
const dependency = dependencyMap.get(dependencyName);
if (!dependency) {
throw... |
mowangblog/MoWang-Shop | mowang-shop-gateway/src/main/java/top/mowang/shop/gateway/GateWayMain.java | package top.mowang.shop.gateway;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoCon... |
dm1try/bjob | spec/backend/unix_socket_spec.rb | require 'bjob/backend/unix_socket'
require 'json'
require 'socket'
RSpec.describe BJob::Backend::UNIXSocket do
let(:working_pool) { double(:working_pool, schedule: :ok) }
let(:socket_path) { '/tmp/test_socket' }
subject { described_class.new(path: socket_path, working_pool: working_pool) }
after do
FileU... |
KerchumA222/WebIDE-Frontend | app/IDE/index.js | // This is the access point to the API that Coding WebIDE exposes
// Idea taken from atom, this is the equivalence of `window.atom`
//
// see: https://github.com/atom/atom/blob/master/src/atom-environment.coffee
import IdeEnvironment from './IdeEnvironment'
export default window.ide = IdeEnvironment()
|
liamchalcroft/nitorch | nitorch/io/utils/__init__.py | <reponame>liamchalcroft/nitorch
from . import indexing
from . import volutils
|
the-zebulan/CodeWars | katas/kyu_7/reduce_my_fraction.py | <reponame>the-zebulan/CodeWars<gh_stars>10-100
from fractions import Fraction
def reduce(fraction):
""" Shadows built-in name 'reduce' (forced by Codewars) """
f = Fraction(*fraction)
return [f.numerator, f.denominator]
|
mrdrivingduck/leet-code | 703.KthLargestElementInAStream.cpp | /**
* @author <NAME>.
* @version 2021/02/11
*/
/*
Design a class to find the kth largest element in a stream. Note that
it is the kth largest element in the sorted order, not the kth distinct
element.
Implement KthLargest class:
KthLargest(int k, int[] nums) Initializes the object with the
... |
afterloe/opencv-practice | equipment_engineering/meter_reader_4_pointer/docs/conf.py | #!/usr/bin/env python3
# -*- coding=utf-8 -*-
import cv2 as cv
"""
"""
def main():
pass
if "__main__" == __name__:
main()
|
jbs321/Israelim.ca | resources/assets/js/form/Registration/Validation/RegisterBusinessLocationFormValidation.js | import axios from "axios/index";
export const validate = (values) => {
const errors = {};
const requiredFields = [
'address',
'city',
'province',
'postal_code',
];
requiredFields.forEach(field => {
if (!values[field]) {
errors[field] = `Required`
... |
cassiusvm/Architecting-Modern-Java-EE-Applications | Chapter07/test/src/test/java/com/sebastian_daschner/test/boundary/CarManufacturerTestComponent.java | package com.sebastian_daschner.test.boundary;
import com.sebastian_daschner.test.control.CarFactoryComponent;
import com.sebastian_daschner.test.entity.Car;
import com.sebastian_daschner.test.entity.Specification;
import org.assertj.core.api.AssertionsForClassTypes;
import org.junit.Before;
import org.junit.Test;
pub... |
mcybulsk/civ5-pbem-server | src/main/java/me/cybulski/civ5pbemserver/game/GameTurnFactory.java | <gh_stars>1-10
package me.cybulski.civ5pbemserver.game;
import lombok.AccessLevel;
import lombok.RequiredArgsConstructor;
import me.cybulski.civ5pbemserver.exception.ResourceNotFoundException;
import org.springframework.stereotype.Component;
import org.springframework.util.Assert;
import java.util.Comparator;
import ... |
Bingwen-Hu/hackaway | books/exploreC++11/experience/by_ref.cpp | #include <iostream>
#include <iterator>
#include <vector>
void modify(int& x)
{
x = 10;
}
int triple(int x)
{
return 3 * x;
}
// using const to prevent accidently modification
// rule of thumb is to keep the const keyword as close as
// possible to whatever it is modifying
void print_vector(std::vector<int>... |
bblue000/CACProject | SocketDemo/src/com/rubick/cac/server/CACServerUtils.java | package com.rubick.cac.server;
import java.net.Socket;
import java.util.Collection;
/**
* 服务端的处理
*
* @author <NAME>
*
*/
class CACServerUtils {
/**
* 接收连接延迟时间
*/
public static final int SERVER_ACCEPT_TIMEOUT = 30 * 1000;
/**
* 客户端连接时,进入闲置阶段的延迟时间
*/
public static final int CLIENT_IDLE_TIMEOUT = 3... |
lowlander/nederrock | src/parser_nodes/not_parser_node.cpp | //
// Copyright (c) 2020 <NAME> <<EMAIL>>
//
// SPDX-License-Identifier: MIT
//
#include "not_parser_node.hpp"
#include "separator_parser_node.hpp"
#include "comparison_parser_node.hpp"
#include "parser_node.hpp"
#include <memory>
#include <istream>
#include <string>
void Not_Parser_Node::Choice_1::dump(std::wostre... |
zipated/src | remoting/protocol/ice_config.h | <filename>remoting/protocol/ice_config.h
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef REMOTING_PROTOCOL_ICE_CONFIG_H_
#define REMOTING_PROTOCOL_ICE_CONFIG_H_
#include <string>
#include <vect... |
Matt-Hayes24/hivemq-community-edition | src/main/java/com/hivemq/extensions/interceptor/disconnect/parameter/DisconnectOutboundOutputImpl.java | <filename>src/main/java/com/hivemq/extensions/interceptor/disconnect/parameter/DisconnectOutboundOutputImpl.java
/*
* Copyright 2019-present HiveMQ GmbH
*
* 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 ... |
Brook1711/biubiu_Qt6 | vlc_linux/vlc-3.0.16/modules/demux/adaptive/playlist/BasePeriod.cpp | <filename>vlc_linux/vlc-3.0.16/modules/demux/adaptive/playlist/BasePeriod.cpp
/*
* BasePeriod.cpp
*****************************************************************************
* Copyright (C) 2010 - 2011 Klagenfurt University
*
* Created on: Aug 10, 2010
* Authors: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
... |
UO-CIS/CIS399AndroidDemos | Multi-ActivityDemo/app/src/main/java/edu/uoregon/bbird/multi_activitydemo/ActivityTwo.java | <filename>Multi-ActivityDemo/app/src/main/java/edu/uoregon/bbird/multi_activitydemo/ActivityTwo.java
package edu.uoregon.bbird.mulit_activitydemo;
import android.app.Activity;
import android.os.Bundle;
public class ActivityTwo extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
... |
grepx/archivorg | app/src/main/java/gregpearce/archivorg/data/network/TopFeedServiceFactory.java | package gregpearce.archivorg.data.network;
import gregpearce.archivorg.domain.model.FeedContentType;
import gregpearce.archivorg.domain.service.FeedService;
public interface TopFeedServiceFactory {
FeedService get(FeedContentType feedContentType);
}
|
MediaByte/portfolio | node_modules/@material-ui/icons/AttachFile.js | <filename>node_modules/@material-ui/icons/AttachFile.js<gh_stars>0
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _createSvgIcon = require('./utils/createSvgIcon');
var _createSvgIcon2 = _interopRequire... |
llorllale/youtrack-api | src/main/java/org/llorllale/youtrack/api/Issue.java | <reponame>llorllale/youtrack-api<gh_stars>10-100
/*
* Copyright 2017 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unl... |
huynhphuchuy/goku | api/Authentication/auth.routes.go | package authroutes
import (
authv1_0 "Gogin/api/Authentication/v1.0"
"github.com/gin-gonic/gin"
)
var bearerAuthControllerV1_0 authv1_0.IBearerAuthController = authv1_0.BearerAuthController{}
// Routes Group
func Routes(r *gin.Engine) {
client := r.Group("/auth")
{
client.GET("/bearer/v1.0/verify", bearerAuthC... |
Muhamedali/crazy_text | src/main/java/com/input/text/crazy/client/utils/Clipboard.java | package com.input.text.crazy.client.utils;
public interface Clipboard {
public void put(String text);
public String get();
public boolean isEmpty();
}
|
zhangs919/laravelvip-b2b2c | resources/static/assets/js/customform/edit.js | <reponame>zhangs919/laravelvip-b2b2c
// 表单回显数据, 覆盖index.js的内容
var o_header_img = $('#header_img');
$('#imagegroup_container').imagegroup({
host: image_url_host,
size: $(this).data("size"),
values: o_header_img.val().split("|"),
gallery: true,
// 回调函数
callback: function(data) {
var url = '';
if (data.src) {
... |
Maplenormandy/qg-edgeofchaos | plot_scripts/lyapunov_plots.py | <gh_stars>1-10
# -*- coding: utf-8 -*-
"""
Created on Wed Sep 29 10:35:45 2021
@author: maple
"""
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl
font = {'size' : 6,
'family' : 'sans-serif',
'serif' : ['CMU Serif'],
'sans-serif' : ['CMU Sans Serif'... |
evanthebouncy/nnhmm | uai_sushi/active_learning.py | <reponame>evanthebouncy/nnhmm<filename>uai_sushi/active_learning.py
from model import *
# ------------------------------------------------------------------ helpers and mgmt
def get_feed_dic_obs(obs):
# needing to create all the nessisary feeds
obs_x = []
obs_y = []
obs_tf = []
for _ in range(OBS_SIZE):
... |
Mikma03/InfoShareacademy_Python_Courses | Part_3_advanced/m06_re/findall_finditer/homework_1_solution.py | <filename>Part_3_advanced/m06_re/findall_finditer/homework_1_solution.py<gh_stars>0
# Napisz funkcje która przyjmie tekst zawierający potencjalnie wiele różnych adresów email
# a następnie wypisze każdy z nich (z podziałem na nazwę, domenę i rozszerzenie).
# Wykorzystaj metodę findall
import re
def run_example():
... |
DANIELROCHA1990/nindika | spec/components/app/toast_component_spec.rb | <filename>spec/components/app/toast_component_spec.rb
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe App::ToastComponent, type: :component do
subject(:rendered) { render_inline(described_class.new) }
context 'when flash is empty' do
it "doesn't render" do
expect(rendered.to_html).t... |
Lugdunum3D/Lugdunum3D | include/lug/Graphics/Vulkan/API/Semaphore.hpp | <filename>include/lug/Graphics/Vulkan/API/Semaphore.hpp
#pragma once
#include <lug/Graphics/Export.hpp>
#include <lug/Graphics/Vulkan/Vulkan.hpp>
namespace lug {
namespace Graphics {
namespace Vulkan {
namespace API {
namespace Builder {
class Semaphore;
} // Builder
class Device;
class LUG_GRAPHICS_API Semaphore ... |
keki/dd-trace-java | dd-java-agent/agent-profiling/profiling-controller/src/test/java/com/datadog/profiling/controller/ControllerFactoryTest.java | <reponame>keki/dd-trace-java<filename>dd-java-agent/agent-profiling/profiling-controller/src/test/java/com/datadog/profiling/controller/ControllerFactoryTest.java
package com.datadog.profiling.controller;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assert... |
naphaso/nlisp | pkg/vm/vm.go | package vm
import (
"errors"
"fmt"
"time"
"github.com/naphaso/nlisp/pkg/sexp"
"github.com/naphaso/nlisp/pkg/symbol"
)
func New() *VM {
return &VM{
env: sexp.NewEnv(),
}
}
var (
symbolPlus = symbol.ByName("plus")
symbolEval = symbol.ByName("eval")
)
type VM struct {
env *sexp.Env
stack1 Stack
stack... |
VereinGegenTierfabriken/cgeo | main/src/cgeo/geocaching/connector/capability/ISearchByFinder.java | <gh_stars>1-10
package cgeo.geocaching.connector.capability;
import cgeo.geocaching.SearchResult;
import cgeo.geocaching.connector.IConnector;
import cgeo.geocaching.loaders.RecaptchaReceiver;
import android.support.annotation.NonNull;
public interface ISearchByFinder extends IConnector {
SearchResult searchByFi... |
LeonardTay748/main | src/test/java/seedu/address/model/FlashCardTestModelTest.java | package seedu.address.model;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.LinkedList;
import java.util.List;
import org.junit.jupiter.api.Test;
import seedu.address... |
nclslbrn/xyz | src/js/sketch-common/remap.js | <reponame>nclslbrn/xyz<filename>src/js/sketch-common/remap.js
/**
* P5js map
*
* @url https://github.com/processing/p5.js/blob/7375939aa4e4e5ada7381815ace2dcb8a0daa74c/src/math/calculation.js#L451
* @method map
* @param {Number} value the incoming value to be converted
* @param {Number} start1 lower bound of t... |
afonsopbarros/appcenter-cli | dist/commands/codepush/lib/validation-utils.js | "use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
hgzerowzh/Django | Django_learning/Django_test_03/Django_test_03/__init__.py | import pymysql
pymysql.version_info=(1,3,13,"final",0)
pymysql.install_as_MySQLdb()
|
xscottx/learn-react | expensify-app/src/tests/components/expenses-summary.test.js | <filename>expensify-app/src/tests/components/expenses-summary.test.js
import React from 'react';
import {shallow} from 'enzyme';
import expenses from '../fixtures/expenses';
import {ExpensesSummary} from '../../components/expenses-summary';
test('should correctly render expenses summary with 1 expense', () => {
cons... |
realvitya/fmcapi | fmcapi/api_objects/object_services/applicationproductivities.py | from fmcapi.api_objects.apiclasstemplate import APIClassTemplate
import logging
import warnings
class ApplicationProductivities(APIClassTemplate):
"""
The ApplicationProductivities Object in the FMC.
"""
VALID_JSON_DATA = ["id", "name", "type"]
VALID_FOR_KWARGS = VALID_JSON_DATA + []
URL_SUFF... |
danielbraga/hcap | project/settings/env.py | <reponame>danielbraga/hcap<filename>project/settings/env.py
"""
django-environ:
https://django-environ.readthedocs.io/en/latest/#django-environ
"""
import environ
from pathlib import Path
ENV_PATH = Path.joinpath(Path(__file__).parent.parent.parent, ".env")
env = environ.Env()
if ENV_PATH.exists() and ENV_PATH.i... |
pmacleod/geotrellis | layer/src/test/scala/geotrellis/layer/LayoutDefinitionSpec.scala | <gh_stars>1-10
/*
* Copyright 2016 Azavea
*
* 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 ... |
herrywen-nanj/51reboot | lesson02/yaoxiaodong/homework2.py | <reponame>herrywen-nanj/51reboot<filename>lesson02/yaoxiaodong/homework2.py
data = [3, 7, 2, 5, 20, 11]
num = len(data)
for one in range(num-1):
for two in range(num-one-1):
if data[two] > data[two+1]:
data[two],data[two+1] = data[two+1],data[two]
print(data)
|
HPI-Information-Systems/TimeEval | timeeval/__init__.py | from ._version import __version__
from .algorithm import Algorithm
from .data_types import AlgorithmParameter, TrainingType, InputDimensionality
from .datasets import Datasets, DatasetManager, MultiDatasetManager
from .remote_configuration import RemoteConfiguration
from .resource_constraints import ResourceConstraints... |
tessia-project/tessia-baselib | tessia/baselib/common/ssh/exceptions.py | # Copyright 2016, 2017 IBM Corp.
#
# 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 writin... |
jenswi-linaro/hafnium | inc/hf/spinlock.h | <gh_stars>1-10
/*
* Copyright 2018 The Hafnium Authors.
*
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/BSD-3-Clause.
*/
#pragma once
/*
* Includes the arch-specific definition of 'struct spinlock' and
* implementat... |
dukfaar/ffxivcrafter | packages/custom/ffxivcrafter-bot/server/commands/potatofarm.js | 'use strict'
let mongoose = require('mongoose')
let q = require('q')
let _ = require('lodash')
let path = require('path')
mongoose.Promise = q.Promise
var logger = require('log4js').getLogger('app.bot.potatofarm')
let config = require(path.join(__dirname, '../config/config.js'))
let farmingTimeouts = {
}
module.ex... |
datanucleus/datanucleus-scala | src/test/scala/org/datanucleus/scala/test/RandomUtils.scala | <gh_stars>1-10
package org.datanucleus.scala.test
import java.time.LocalDate
import java.util
import java.util.UUID
import java.util.concurrent.ThreadLocalRandom
import scala.util.Random
trait RandomUtils {
def randomString(): String = UUID.randomUUID().toString
def randomLocalDate(): LocalDate = {
val minD... |
dshkuratov/dibctl | tests/test_timeout.py | #!/usr/bin/python
import os
import inspect
import sys
import pytest
import mock
import time
from mock import sentinel
@pytest.fixture
def timeout():
from dibctl import timeout
return timeout
def test_timeout_real_timeout(timeout):
with pytest.raises(timeout.TimeoutError):
with timeout.timeout(1)... |
CHRUdeLille/scout | tests/server/blueprints/variants/test_controllers.py | from scout.server.blueprints.variants.controllers import sanger, cancel_sanger
def url_for(param, institute_id, case_name, variant_id):
pass
def test_sanger_mail_sent(mock_mail, variant_database, institute_obj, case_obj, user_obj,
mock_sender):
# Given we have a variant the we want... |
icatproject-contrib/ijp.server | src/test/java/org/icatproject/ijp/server/manager/XmlFileManagerTest.java | package org.icatproject.ijp.server.manager;
import org.icatproject.ijp.shared.InternalException;
import org.icatproject.ijp.shared.xmlmodel.JobType;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
impor... |
Birdasaur/LitFX | litfx-demos/src/main/java/lit/litfx/demos/controllers/AnimatedWavesDemoController.java | package lit.litfx.demos.controllers;
import java.net.URL;
import java.util.ArrayList;
import java.util.ResourceBundle;
import javafx.application.Platform;
import javafx.beans.property.SimpleLongProperty;
import javafx.concurrent.Task;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.g... |
Daschi1/updated-java-sql-generator | src/main/java/org/sql/generation/implementation/grammar/query/OrderByClauseImpl.java | <filename>src/main/java/org/sql/generation/implementation/grammar/query/OrderByClauseImpl.java
/*
* Copyright (c) 2010, <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 License.
* You may obtain a copy of the ... |
clayne/phasar | include/phasar/Utils/NlohmannLogging.h | <filename>include/phasar/Utils/NlohmannLogging.h
/******************************************************************************
* Copyright (c) 2022 <NAME>.
* All rights reserved. This program and the accompanying materials are made
* available under the terms of LICENSE.txt.
*
* Contributors:
* <NAME> and o... |
jainsakshi2395/linux | include/linux/dsa/mv88e6xxx.h | <reponame>jainsakshi2395/linux<gh_stars>10-100
/* SPDX-License-Identifier: GPL-2.0
* Copyright 2021 NXP
*/
#ifndef _NET_DSA_TAG_MV88E6XXX_H
#define _NET_DSA_TAG_MV88E6XXX_H
#include <linux/if_vlan.h>
#define MV88E6XXX_VID_STANDALONE 0
#define MV88E6XXX_VID_BRIDGED (VLAN_N_VID - 1)
#endif
|
alphagov-mirror/verify-stub-idp | stub-idp/src/main/java/uk/gov/ida/stub/idp/resources/idp/ConsentResource.java | <filename>stub-idp/src/main/java/uk/gov/ida/stub/idp/resources/idp/ConsentResource.java
package uk.gov.ida.stub.idp.resources.idp;
import com.google.common.base.Strings;
import uk.gov.ida.common.SessionId;
import uk.gov.ida.saml.core.domain.AuthnContext;
import uk.gov.ida.stub.idp.Urls;
import uk.gov.ida.stub.idp.cook... |
bkmgit/indico | indico/modules/events/editing/models/review_conditions.py | # This file is part of Indico.
# Copyright (C) 2002 - 2022 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
from indico.core.db import db
from indico.core.db.sqlalchemy import PyIntEnum
from indico.modules.events.e... |
sjnonweb/spoj | Solutions/STAMPS.cpp | #include <iostream>
#include <cstdio>
#include <algorithm>
using namespace std;
int main()
{
int test,more,people,i,j=1,sum;
scanf("%d",&test);
while(test--)
{
scanf("%d",&more);
scanf("%d",&people);
int *arr=new int[people];
for(i=0;i<people;i++)
scanf("%d"... |
hsamgle/wheel | framework/basic/src/main/java/com/hsamgle/basic/exception/ParamsMissException.java | <reponame>hsamgle/wheel<gh_stars>0
package com.hsamgle.basic.exception;
/**
*
* @类功能: TODO 参数缺失异常
* @文件名: ParamsMissException.java
* @所在包: com.com.dplus.project.exception
* @开发者: 黄先国
* @邮_件: <EMAIL>
* @时_间: 2016年12月2日下午2:08:43
* @公_司: 广州讯动网络科技有限公司
*/
public class ParamsMissException extends Runtime... |
realXtend/tundra-urho3d | src/Plugins/UrhoRenderer/GraphicsWorld.cpp | <filename>src/Plugins/UrhoRenderer/GraphicsWorld.cpp<gh_stars>10-100
// For conditions of distribution and use, see copyright notice in LICENSE
#include "StableHeaders.h"
#include "GraphicsWorld.h"
#include "UrhoRenderer.h"
#include "Entity.h"
#include "Scene/Scene.h"
#include "ConfigAPI.h"
#include "FrameAPI.h"
#inc... |
iamhuwjones/hermes | corvus-main/src/main/java/hk/hku/cecid/piazza/corvus/core/main/handler/RemoteCommandRegistrar.java | package hk.hku.cecid.piazza.corvus.core.main.handler;
import java.util.Properties;
import hk.hku.cecid.piazza.commons.ejb.util.RemoteCommandHandler;
import hk.hku.cecid.piazza.commons.spa.Extension;
import hk.hku.cecid.piazza.commons.spa.ExtensionPointIteratedHandler;
import hk.hku.cecid.piazza.commons.spa.PluginExce... |
J-Swift/caseflow | app/models/decision_drafting_attorney.rb | # frozen_string_literal: true
class DecisionDraftingAttorney < JudgeTeamRole; end
|
desweemerl/erp-lib-server | src/main/java/com/erp/lib/server/servlet/filter/SecurityFilter.java | <filename>src/main/java/com/erp/lib/server/servlet/filter/SecurityFilter.java
package com.erp.lib.server.servlet.filter;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import org.apache.shiro.web.mgt.WebSecurityManager;
import org.apache.shiro.web.servlet.AbstractShiroFilter;
@Singleton
public c... |
alefherrera/worms | src/main/java/worms/model/ControllerListener.java | package worms.model;
import worms.engine.actions.controller.ControllerAction;
public interface ControllerListener {
void onControllerAction(ControllerAction action);
}
|
temcocontrols/ModbusToBacnetModule | Bluetooth/external/bacnet-stack/ports/linux/dlmstp_linux.c | <reponame>temcocontrols/ModbusToBacnetModule
/**************************************************************************
*
* Copyright (C) 2008 <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software")... |
CaduceusInc/greykite | greykite/tests/algo/common/test_model_summary.py | <gh_stars>1000+
import numpy as np
import statsmodels.api as sm
from sklearn.ensemble import GradientBoostingRegressor
from sklearn.ensemble import RandomForestRegressor
from sklearn.linear_model import ElasticNetCV
from sklearn.linear_model import LarsCV
from sklearn.linear_model import LassoCV
from sklearn.linear_mod... |
RoBorregos/roborregos-web-dashboard | spec/features/user_can_create_service_app_spec.rb | <filename>spec/features/user_can_create_service_app_spec.rb
require 'rails_helper'
feature 'User can create service app' do
before :each do
@member = create :member
end
scenario 'and see all service apps' do
login_as @member
visit service_apps_path
expect(page).to have_content('Service Apps')
... |
henanewind/rpc | rpc-common/src/main/java/com/github/houbb/rpc/common/config/application/ApplicationConfig.java | package com.github.houbb.rpc.common.config.application;
/**
* 应用配置信息
* (1)服务的应用应该是一个单例。
* (2)对于用户可以不可见,直接根据 rpc.properties 设置。
* @author binbin.hou
* @since 0.0.6
*/
public interface ApplicationConfig {
/**
* @return 应用名称
* @since 0.0.6
*/
String name();
/**
* @return 环境名称
... |
threefoldtech/threefold-forums | db/migrate/20120519182212_create_last_read_posts.rb | # frozen_string_literal: true
class CreateLastReadPosts < ActiveRecord::Migration[4.2]
def change
create_table :last_read_posts do |t|
t.integer :user_id, null: false
t.integer :forum_thread_id, null: false
t.integer :post_number, null: false
t.timestamps null: false
end
add_inde... |
kagwicharles/Seniorproject-ui | node_modules/@iconify/icons-ic/twotone-cast-for-education.js | <filename>node_modules/@iconify/icons-ic/twotone-cast-for-education.js<gh_stars>0
var data = {
"body": "<path d=\"M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm10 1.09v2L14... |
andreyvit/pyjamas | library/pyjamas/ui/ButtonBase.py | <reponame>andreyvit/pyjamas<gh_stars>1-10
# Copyright 2006 <NAME> and contributors
# Copyright (C) 2009 <NAME> <<EMAIL>>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.