repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
Lambda-School-Labs/betterreads-frontend | src/components/search/styles/SearchStyle.js | import styled from 'styled-components';
const SearchContainer = styled.div`
.ant-back-top-content {
background-color: rgba(84, 120, 98, 0.75);
}
@media (min-width: 1120px) {
width: 1120px;
margin: 0 auto;
display: flex;
justify-content: space-between;
}
`;
export default SearchContainer;
|
deora-earth/Habitat | src/token/deployment/2-TokenTurner.js | <filename>src/token/deployment/2-TokenTurner.js
import { Artifacts, deploy, wallet, network } from './lib.js';
const { TokenTurnerMainnet, TokenTurnerRopsten } = Artifacts;
const target = network === 'mainnet' ? TokenTurnerMainnet : TokenTurnerRopsten;
const tokenTurner = await deploy(target, wallet);
//const initialS... |
labs15-career-endorsement-tracker/frontend | src/components/lib/Loaders/fullPageLoader.js | import React from "react"
import "./index.scss"
import Loader from "react-loader-spinner"
import "react-loader-spinner/dist/loader/css/react-spinner-loader.css"
const FullPageLoader = () => {
return (
<div className="fullpage-loader">
<Loader
type="Triangle"
color="#29AD44"
height={... |
Wonjuny0804/JavaScript | SecretCode/UI/case3_InfiniteScroll/solution/2.other's_1/s2_js_debounce_trottle/util.js | <reponame>Wonjuny0804/JavaScript
const getRandomSeconds = () => (Math.round(Math.random() * 5) + 1) * 250;
export const randomTimer = (func, ...args) => (resolve) => {
setTimeout(() => resolve(func(...args)), getRandomSeconds());
};
export const debounce = (func, delay) => {
/**
* setTimeout ์คํ์ ํ์คํฌ ์์ด๋๋ฅผ ์ ์ฅ
... |
LJLintermittent/leetcode | src/main/java/com/learn/leetcode/designpattern/decorator/BatterCakeDecorator.java | package com.learn.leetcode.designpattern.decorator;
/**
* Description:
* date: 2021/9/11 19:38
* Package: com.learn.leetcode.designpattern.decorator
*
* @author ๆไฝณไน
* @email <EMAIL>
*/
@SuppressWarnings("all")
public abstract class BatterCakeDecorator extends BatterCake {
private BatterCake batterCake;
... |
mahaplatform/mahaplatform.com | src/apps/forms/serializers/response_serializer.js | <filename>src/apps/forms/serializers/response_serializer.js
import { expandData } from '@apps/forms/services/responses'
const ResponseSerializer = async (req, result) => ({
id: result.get('id'),
contact: contact(result.related('contact')),
data: await data(req, result.related('form'), result.get('data')),
enro... |
anshika581/competitive-programming-1 | src/contest/noi/NOI_2014_Enchanted_Forest_2.cc | #include <bits/stdc++.h>
using namespace std;
#define mp make_pair
#define pb push_back
typedef pair<int, int> pi;
int n, m;
vector<vector<pair<int, pi>>> adj(50000);
int minB[50000];
int main() {
scanf("%d%d", &n, &m);
set<int> uniA;
for (int i = 0; i < m; i++) {
int a, b, c, d;
scanf("%d%d%d%d", &a,... |
aleasoluciones/infrabbitmq3 | infrabbitmq/pika_client_wrapper.py | from functools import wraps
from pika import (
URLParameters,
)
from pika.spec import (
BasicProperties,
)
from pika import exceptions as pika_exceptions
from infrabbitmq.exceptions import ClientWrapperError
class PikaClientWrapper:
DEFAULT_HEARTBEAT = 0
def __init__(self, pika_library):
s... |
Kirishikesan/haiku | src/add-ons/kernel/drivers/misc/kdl.c | <filename>src/add-ons/kernel/drivers/misc/kdl.c<gh_stars>1000+
/*
* Copyright (c) 2009 <NAME>, <<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,
* inclu... |
nickchen-mitac/fork | src/avashell/win32/dyndlg.py | <reponame>nickchen-mitac/fork
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
import win32ui
import win32con
def MakeDlgTemplate():
style = win32con.DS_MODALFRAME | win32con.WS_POPUP | win32con.WS_VISIBLE | win32con.WS_CAPTION | win32con.WS_SYSMENU | win32co... |
bradchesney79/illacceptanything | linux/drivers/crypto/atmel-aes.c | <filename>linux/drivers/crypto/atmel-aes.c
/*
* Cryptographic API.
*
* Support for ATMEL AES HW acceleration.
*
* Copyright (c) 2012 Eukrรฉa Electromatique - ATMEL
* Author: <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public L... |
cfsandoval/chartjs_con_ios | test/tabris/util-fonts.test.js | import {expect} from '../test';
import {fontStringToObject, fontObjectToString} from '../../src/tabris/util-fonts';
describe('util-fonts', function() {
describe('fontStringToObject', function() {
let parse = function(str) {
return fontStringToObject(str);
};
let parsing = function(str) {
r... |
Lockyz-Dev/JoiBoi | commands/kick.js | <reponame>Lockyz-Dev/JoiBoi<filename>commands/kick.js
const { embedColor } = require("../info.js");
const { MessageEmbed } = require("discord.js");
const { noBotPerms } = require("../utils/errors");
exports.run = async (client, message, args) => {
let perms = message.guild.me.permissions;
if (!perms.has("KICK_MEM... |
gabrielmbs/Tamburetei | prog2/implementacoes/comparable/Main.java | <reponame>gabrielmbs/Tamburetei<filename>prog2/implementacoes/comparable/Main.java
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
/**
* Classe principal para exemplificar comparable em Java.
*
* @author <NAME>
*/
public class Main {
public static vo... |
Cocopyth/foodshare | foodshare/handlers/cook_conversation/conclusion_selection.py | <reponame>Cocopyth/foodshare<filename>foodshare/handlers/cook_conversation/conclusion_selection.py
from telegram import InlineKeyboardButton, InlineKeyboardMarkup, ParseMode
from telegram.ext import ConversationHandler
from foodshare.bdd.database_communication import (
add_meal,
get_user_from_chat_id,
)
from f... |
wyf0926/car_dev | src/main/java/io/renren/common/utils/SequenceService.java | package io.renren.common.utils;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.support.atomic.RedisAtomicLong;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.Date;
import java.util.concurrent.TimeUnit;
/**
* @author ... |
fakeNetflix/facebook-repo-conceal | first-party/soloader/Elf64_Phdr.java | <reponame>fakeNetflix/facebook-repo-conceal<filename>first-party/soloader/Elf64_Phdr.java
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
... |
The0x539/wasp | libc/newlib/libm/machine/pru/isfinite.c | <filename>libc/newlib/libm/machine/pru/isfinite.c
/* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2018-2019 <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are ... |
vinceh121/powercord | src/fake_node_modules/powercord/components/AsyncComponent.js | <gh_stars>10-100
const { React, getModule, getModuleByDisplayName } = require('powercord/webpack');
module.exports = class AsyncComponent extends React.PureComponent {
constructor (props) {
super(props);
this.state = {
Component: null
};
}
async componentDidMount () {
this.setState({
... |
huluobo11/demo-collection | webService01_Client/src/main/java/com/ssm/webservice/service/package-info.java | <reponame>huluobo11/demo-collection<filename>webService01_Client/src/main/java/com/ssm/webservice/service/package-info.java
@javax.xml.bind.annotation.XmlSchema(namespace = "http://service.webService.ssm.com/")
package com.ssm.webservice.service;
|
ManonGros/colplus-backend | colplus-dao/src/main/java/org/col/db/type2/HstoreIssueCountTypeHandler.java | <filename>colplus-dao/src/main/java/org/col/db/type2/HstoreIssueCountTypeHandler.java
package org.col.db.type2;
import org.col.api.vocab.Issue;
public class HstoreIssueCountTypeHandler extends HstoreEnumCountTypeHandlerBase<Issue> {
public HstoreIssueCountTypeHandler() {
super(Issue.class);
}
}
|
pazamelin/openvino | thirdparty/fluid/modules/gapi/test/common/gapi_stereo_tests.hpp | <filename>thirdparty/fluid/modules/gapi/test/common/gapi_stereo_tests.hpp
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2021 Intel Corporation
#ifndef... |
dllen/WeChatMina | wechat-engine/src/main/java/edu/buaa/scse/niu/wechat/engine/mina/codec/RespondMegEncoder.java | <reponame>dllen/WeChatMina
package edu.buaa.scse.niu.wechat.engine.mina.codec;
import java.nio.charset.CharacterCodingException;
import java.nio.charset.Charset;
import org.apache.mina.core.buffer.IoBuffer;
import edu.buaa.scse.niu.wechat.engine.entity.ChatMessageType.MessageType;
import edu.buaa.scse.niu.we... |
MattHahnDesign/fetch-it | src/attributes/preRequest.js | // Validators
import isFunction from '../validators/isFunction';
/**
* @description :: Preparing the preRequest function
* @param {any} preRequest :: The preRequest that needs to be prepared
* @return {any} :: Prepared preRequest
*/
export const checkPreRequest = (preRequest) => {
if (!isFunction(preRequest)) {
... |
combet/CLstack2mass | pzmassfitter/bashreader.py | <filename>pzmassfitter/bashreader.py<gh_stars>10-100
#!/usr/bin/env python
######################
# @file bashreader.py
# @author <NAME>
# @date 2/26/08
#
# @brief Interprets simple bash scripts to parse them for variables
# This way python can share existing config files.
#
# This is meant as a library. Test routi... |
xander69/SkolkoDoBaniBot | src/main/java/ru/xander/telebot/util/Utils.java | <reponame>xander69/SkolkoDoBaniBot
package ru.xander.telebot.util;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import ru.xander.telebot.dto.Request;
import ru.xander.telebot.dto.TimeOfDay;
import java.io.IOException;
import java.io.InputStream;
import... |
visit-dav/vis | src/databases/PDB/MaterialEncoder.h | <reponame>visit-dav/vis
// Copyright (c) Lawrence Livermore National Security, LLC and other VisIt
// Project developers. See the top-level LICENSE file for dates and other
// details. No copyright assignment is required to contribute to VisIt.
#ifndef MATERIAL_ENCODER_H
#define MATERIAL_ENCODER_H
#include <string>
... |
nagama-wal/electron-react-boilerplate | app/components/Dashboard/DashboardTabs/DashboardTabs.js | <filename>app/components/Dashboard/DashboardTabs/DashboardTabs.js<gh_stars>0
import React, { Component } from "react";
import { TabContent, TabPane, Nav, NavItem, NavLink, Card, Button, CardTitle, CardText, Row, Col } from 'reactstrap';
import classnames from 'classnames';
import DashboardHeader from "../DashboardHead... |
szokejokepu/natural-rws | core/argo/core/optimizers/NesterovConst.py | <filename>core/argo/core/optimizers/NesterovConst.py
'''
DOCUMENTATION:
Nesterov method with constant momentum factor is given in the work of Defazio:
https://arxiv.org/abs/1812.04634
See Table 1, page 3 - 'Modern Momentum' (here: beta is the momentum factor)
The momentum coefficien... |
xbgbtx/memory-cat-app | node_modules/lit-element/development/decorators/query-assigned-elements.js | <filename>node_modules/lit-element/development/decorators/query-assigned-elements.js
/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
export * from '@lit/reactive-element/decorators/query-assigned-elements.js';
//# sourceMappingURL=query-assigned-elements.js.map |
tinapiao/Software-IC-Automation | bag_serdes_ec-master/scripts_test/digital/buffer_array.py | # -*- coding: utf-8 -*-
import yaml
from bag.core import BagProject
from serdes_ec.layout.digital.buffer import BufferArray
if __name__ == '__main__':
with open('specs_test/serdes_ec/digital/buffer_array.yaml', 'r') as f:
block_specs = yaml.load(f)
local_dict = locals()
if 'bprj' not in local_... |
coms/ep | eulerProject/src/euler/Problem60.java | <filename>eulerProject/src/euler/Problem60.java
package euler;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import euler.utils.Prime;
/**
Prime pair sets
Problem 60
The primes 3, 7, 109, and 673, are quite remarkable. By taking any two primes and conc... |
ketancmaheshwari/swift-k | src/org/griphyn/vdl/mapping/nodes/ExternalDataNode.java | <gh_stars>0
/*
* Copyright 2012 University of Chicago
*
* 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 applica... |
kr056/Softuni | Java OOP Advanced November 2017/b_Generics/Exercises/p07_Threeuple/Threeuple.java | package b_Generics.Exercises.p07_Threeuple;
public class Threeuple<F, S, T> {
private F firstEl;
private S secondEl;
private T thirdEl;
public Threeuple(F firstEl, S secondEl, T thirdEl) {
this.firstEl = firstEl;
this.secondEl = secondEl;
this.thirdEl = thirdEl;
}
@Ove... |
Sundragon1993/AI-Game-Pratices | goals/Goal_DodgeSideToSide.h | <reponame>Sundragon1993/AI-Game-Pratices
#ifndef GOAL_DODGE_SIDE_H
#define GOAL_DODGE_SIDE_H
#pragma warning (disable:4786)
//-----------------------------------------------------------------------------
//
// Name: Goal_DodgeSideToSide.h
//
// Author: <NAME> (<EMAIL>)
//
// Desc: this goal makes the bot dodge f... |
m-wrona/gwt-medicapital | client_view/com/medicapital/client/user/SearchUserForm.java | package com.medicapital.client.user;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.medicapital.client.ui.table.DataTable;
import com.medicapital.common.entities.User;
import com.medicapital.common.entities.UserRole;
final public class SearchUserForm extends DataTable<SearchUserFormHeader,... |
letitgone/thinking_in_java | Chapter11/src/test/java/exercise/E25_WordsInfo3.java | package exercise;
import net.mindview.util.TextFile;
import java.util.*;
/**
* @Author ZhangGJ
* @Date 2019/05/28
*/
public class E25_WordsInfo3 {
public static void main(String[] args) {
Map<String, ArrayList<Integer>> stat = new HashMap<>();
int wordCount = 0;
for (String word : new ... |
imatiach-msft/interpret-text | python/interpret_text/experimental/introspective_rationale/components.py | <filename>python/interpret_text/experimental/introspective_rationale/components.py
import os
import logging
import numpy as np
import torch
import torch.nn as nn
from torch.autograd import Variable
from tqdm import tqdm
from interpret_text.experimental.common.utils_introspective_rationale import generate_data
class... |
sumitmitra255/justfornpmcommand | src/Components/Products/ProductList.js | <gh_stars>0
import { useSelector, useDispatch } from 'react-redux'
import {
productListActionGenerator,
userproductDetailsActionGenerator,
} from '../../Actions/productActions'
import { useEffect } from 'react'
import { userProductDetailsActionGenerator } from '../../Actions/productActions'
import { useHistory } from... |
part-blockchain/chainsqld | src/peersafe/app/misc/CACertSite.h | //------------------------------------------------------------------------------
/*
This file is part of chainsqld: https://github.com/chainsql/chainsqld
Copyright (c) 2016-2019 Peersafe Technology Co., Ltd.
chainsqld is free software: you can redistribute it and/or modify
it under the terms of the GNU General Pub... |
vishal-panchal611/Smart_Farming_using_IoT | node_modules/@carbon/icons-react/es/task--view/16.js | import { TaskView16 } from '..';
export default TaskView16;
|
nagineni/chromium-crosswalk | chrome/browser/extensions/api/top_sites/top_sites_api.h | // Copyright (c) 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 CHROME_BROWSER_EXTENSIONS_API_TOP_SITES_TOP_SITES_API_H_
#define CHROME_BROWSER_EXTENSIONS_API_TOP_SITES_TOP_SITES_API_H_
#include "base/memo... |
1shenxi/webpack | test/watchCases/parsing/switching-harmony/1/cc.js | <reponame>1shenxi/webpack
module.exports = "cc1";
|
lwyj123/vue-endless | src/views/gameMap/js/astar.js | const Astar = function Astar(map, start, end) {
function block(x, y) {
this.x = x;
this.y = y;
this.parent = null;
this.G = 0;
this.H = null;
this.getF = function() {
return this.G + this.H;
};
}
this.map = _.cloneDeep(map);
this.init = function() {
var opt = {
startB... |
NullVoxPopuli/aeonvera-ui | app/mixins/components/print/form.js | <reponame>NullVoxPopuli/aeonvera-ui
import Ember from 'ember';
export default Ember.Mixin.create({
additionalRows: 0,
additionalRowsArray: Ember.computed('additionalRows', {
get() {
const newRows = this.get('additionalRows');
const result = [];
for (let i = 0; i < newRows; i++) {
res... |
BBN-E/LearnIt | kb/src/main/java/com/bbn/akbc/evaluation/tac/LoadEvalKB.java | <gh_stars>1-10
package com.bbn.akbc.evaluation.tac;
import java.io.IOException;
public class LoadEvalKB {
public static void main(String[] argv) throws IOException {
String fileQuery = argv[0];
String fileAssessment = argv[1];
String fileSysKbAligned = argv[2];
String evalLog = argv[3];
String... |
flufff42/fastlane | spaceship/lib/spaceship/connect_api/models/app_store_version_submission.rb | <reponame>flufff42/fastlane<filename>spaceship/lib/spaceship/connect_api/models/app_store_version_submission.rb<gh_stars>1000+
require_relative '../model'
module Spaceship
class ConnectAPI
class AppStoreVersionSubmission
include Spaceship::ConnectAPI::Model
attr_accessor :can_reject
attr_mappi... |
wesleyegberto/courses | nodejs/apis/api-payfast/misc/copyFileStream.js | var fs = require('fs');
fs.createReadStream('smith.jpg')
// chunk to be processed
.pipe(fs.createWriteStream('cloned_smith.jpg'))
// final event
.on('finish', function() {
console.log('Smith was cloned again!');
}); |
Doresimon/good-chain | crypto/hdk/key.go | <gh_stars>0
package hdk
import (
"fmt"
"math/big"
"github.com/Doresimon/good-chain/crypto/bls"
"github.com/Doresimon/good-chain/crypto/hash/hmac"
"golang.org/x/crypto/bn256"
)
var bn256Order = bn256.Order
var bigZero = new(big.Int).SetInt64(0)
var bigTmp = new(big.Int).SetInt64(0)
// // HDPrivateKey ...
// typ... |
Narflex/sagetv | third_party/Microsoft/MpegMux/MpegMux.h | <filename>third_party/Microsoft/MpegMux/MpegMux.h
//------------------------------------------------------------------------------
// Copyright 2015 The SageTV Authors. All Rights Reserved.
// File: MpegMux.cpp
//
// Desc: DirectShow sample code - implementation of a renderer that MpegMuxs
// the samples it rece... |
CommandPost/FinalCutProFrameworks | Headers/Frameworks/Flexo/FFTimelineToolController.h | <gh_stars>1-10
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Mar 11 2021 20:53:35).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import <objc/NSObject.h>
@class FFTool, TLKTimelineView;
__attribute__((visibility("hidden")))
@interface FFTimelineToolController : NSObject
{
TLKTimelineView *... |
xingmeichen/spring-cloud-shop | shop-job/shop-job-model/src/main/java/quick/pager/shop/job/response/JobGroupResponse.java | <reponame>xingmeichen/spring-cloud-shop
package quick.pager.shop.job.response;
import java.io.Serializable;
import lombok.Data;
/**
* ไปปๅก็ปๅๅบๅฏน่ฑก
* @author siguiyang
*/
@Data
public class JobGroupResponse implements Serializable {
private static final long serialVersionUID = 2164846165607992992L;
private Long... |
dhyces/DinnerPlate | src/main/java/dhyces/dinnerplate/capability/bitten/MockFoodProvider.java | package dhyces.dinnerplate.capability.bitten;
import dhyces.dinnerplate.bite.BitableProperties;
import dhyces.dinnerplate.bite.Bite;
import dhyces.dinnerplate.bite.IBite;
import dhyces.dinnerplate.util.Couple;
import net.minecraft.core.particles.ItemParticleOption;
import net.minecraft.core.particles.ParticleOptions;
... |
lamkadmi/depenses | app/src/main/java/com/project/depense/mvvm/ui/splash/SplashActivity.java |
package com.project.depense.mvvm.ui.splash;
import android.content.Intent;
import android.os.Bundle;
import com.project.depense.mvvm.BR;
import com.project.depense.mvvm.R;
import com.project.depense.mvvm.ViewModelProviderFactory;
import com.project.depense.mvvm.databinding.ActivitySplashBinding;
import com.project.... |
jackhutu/jackblog-api-es6 | server/model/logs.model.js | <filename>server/model/logs.model.js
'use strict'
const mongoose = require('mongoose')
const Schema = mongoose.Schema
let LogsSchema = new Schema({
uid: {
type:Schema.Types.ObjectId,
ref:'User'
},
content: {
type:String,
trim: true
},
type: String,
created: {
type: Date,
default: Date.now
}
})... |
wayfinder/Wayfinder-Server | Server/MapGen/MapEditor/include/MERouteableItemLayer.h | /*
Copyright (c) 1999 - 2010, Vodafone Group Services Ltd
All rights reserved.
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 condit... |
manu88/RenderKit | RenderKit/Modest/source/myhtml/tokenizer_script.c | /*
Copyright (C) 2015-2017 <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 option) any later version.
This library is distributed... |
MCS-Lite/mcs-lite | packages/mcs-lite-ui/src/utils/__tests__/getScrollTop.test.js | // @flow
import getScrollTop from '../getScrollTop';
it('should return correct scrollTop', () => {
expect(getScrollTop()).toBe(0);
});
|
sizeofvoid/ifconfigd | usr/src/sys/arch/mvme68k/stand/libsa/libsa.h | <filename>usr/src/sys/arch/mvme68k/stand/libsa/libsa.h<gh_stars>1-10
/* $OpenBSD: libsa.h,v 1.7 2011/03/13 00:13:53 deraadt Exp $ */
/*
* libsa prototypes
*/
#include "libbug.h"
/* bugdev.c */
int bugscopen(struct open_file *);
int bugscclose(struct open_file *);
int bugscioctl(struct open_file *, u_long, void *)... |
rahulr4/RahulUdacity | Build-it-bigger/joke-lib/src/main/java/com/example/TellJoke.java | <gh_stars>0
package com.example;
import java.util.ArrayList;
import java.util.Random;
public class TellJoke {
private ArrayList<String> jokes;
private Random random;
public TellJoke() {
jokes = new ArrayList<>();
jokes.add("There are only 10 types of people in the world: those that under... |
wino45/FPGE | src/filename.h | /*
* filename.h
*
* Created on: 2010-03-10
* Author: wino
*/
#ifndef FILENAME_H_
#define FILENAME_H_
//FPGE
extern char fpge_config[];
extern char fpge_mapfrg[];
extern char fpge_tiles[];
extern char fpge_countries[];
extern char fpge_icons[];
extern char fpge_bmp2ctry[];
extern char fpge_mapfrgt[];
extern... |
yufeiminds/ucloud-sdk-java | ucloud-sdk-java-unet/src/test/java/cn/ucloud/unet/client/GetEIPPayModeTest.java | package cn.ucloud.unet.client;
import cn.ucloud.unet.model.GetEIPPayModeParam;
import cn.ucloud.unet.model.GetEIPPayModeResult;
import cn.ucloud.common.pojo.Account;
import cn.ucloud.unet.pojo.UnetConfig;
import org.junit.Before;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
/**
* @descr... |
dports/dxup | src/d3d9/d3d9_constant_buffer.h | <gh_stars>100-1000
#pragma once
#include "../dx9asm/dx9asm_meta.h"
#include "d3d9_base.h"
#include <array>
#include <memory>
#include <cstring>
#include "../util/vectypes.h"
#include "d3d11_dynamic_buffer.h"
namespace dxup {
struct D3D9ShaderConstants {
D3D9ShaderConstants() {
std::memset(floatConstants.... |
phlo/concubine | src/main.cc | /* ConcuBinE
*
* Copyright (C) 2020 <NAME>.
*
* This file is part of ConcuBinE.
* See LICENSE for more information on using this software.
*/
#include <cstring>
#include <iostream>
#include "mmap.hh"
#include "trace.hh"
#include "parser.hh"
#include "simulator.hh"
#include "encoder_btor2.hh"
#include "enco... |
jpchagas/hfa3 | hellfireos-master/usr/doc/doxygen/html/search/variables_6f.js | var searchData=
[
['other_5fdata',['other_data',['../structtcb__entry.html#accd675f017bb0ec5ae63b4d729bd73aa',1,'tcb_entry']]]
];
|
MeirBon/rendering-fw | RFW/system/utils/src/rfw/utils/mersenne_twister.h | #pragma once
#include "rng.h"
#include <random>
namespace rfw::utils
{
class mersenne_twister : public rfw::utils::rng
{
public:
mersenne_twister() : mt_gen(std::random_device()()) {}
float rand(float range) override final { return rand_uint() * 2.3283064365387e-10f * range; }
unsigned int rand_uint() overrid... |
wingnet/leetcode | hard/array_string/FirstMissingPositive.java | package hard.array_string;
public class FirstMissingPositive {
int[] nums;
public int firstMissingPositive(int[] nums) {
this.nums=nums;
return 0;
}
int[] quickSelect(){
int curPos=0;
int targetPos=nums.length-1;
int nagetiveCount=0;
int target=-1;
... |
peanut-chenzhong/huaweicloud-mrs-example | src/graphbase-examples/graphbase-core-example/src/com/huawei/graphbase/rest/request/AddEdgeReqObj.java | package com.huawei.graphbase.rest.request;
import java.util.List;
public class AddEdgeReqObj {
private String outVertexId;
private String inVertexId;
private String edgeLabel;
private List<PropertyReqObj> propertyList;
public String getOutVertexId() {
return outVertexId;
}
pub... |
vinothsparrow/SparrowToolkit | Work/Source/Sparrow.DirectX/DirectX/DXGI/DXGIObject.cpp | <reponame>vinothsparrow/SparrowToolkit
// Copyright (c) Microsoft Corporation. All rights reserved.
#include "stdafx.h"
#include "DXGIObject.h"
using namespace Microsoft::WindowsAPICodePack::DirectX::Utilities;
using namespace Microsoft::WindowsAPICodePack::DirectX::Graphics;
generic <typename T> where T : ... |
trespasserw/MPS | languages/languageDesign/constraints/rules/kinds/generator/source_gen/util/KindUtil.java | <filename>languages/languageDesign/constraints/rules/kinds/generator/source_gen/util/KindUtil.java
package util;
/*Generated by MPS */
import org.jetbrains.mps.openapi.model.SNodeReference;
import org.jetbrains.mps.openapi.model.SNode;
import jetbrains.mps.generator.template.TemplateQueryContext;
import jetbrains.mps... |
Carlosvva/PS-T-2016 | www/modules/partner/partnerController.js | <reponame>Carlosvva/PS-T-2016<gh_stars>0
app.controller('partnerController', function($scope, $rootScope, $state, $timeout, $http, api, localStorage, dialog, $mdDialog, $mdToast, $interval) {
//Variables & defaults
$scope.tabSelected = 1;
$scope.total = 1000;
var date = new Date();
var today = dat... |
cthacker-udel/NCT-AndroidGUI | app/src/main/java/com/example/nctai_trading/coinbasePro/coinBaseKeys.java | package com.example.nctai_trading.coinbasePro;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android... |
DianwodaCompany/vera | piper/src/main/java/com/dianwoda/usercenter/vera/piper/data/ActivePiperData.java | package com.dianwoda.usercenter.vera.piper.data;
import com.dianwoda.usercenter.vera.common.protocol.route.PiperData;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* active piper data
* @author seam
*/
public class ActivePiperData {
... |
Masriyan/gojek-commons | gojek-commons-kafka/src/main/java/com/gojek/kafka/event/KafkaProducer.java | /**
*
*/
package com.gojek.kafka.event;
import java.util.Map;
import org.apache.kafka.clients.producer.ProducerConfig;
import org.apache.kafka.clients.producer.ProducerRecord;
import com.gojek.core.event.Destination;
import com.gojek.core.event.Producer;
/**
* @author ganesh.s
*
*/
public class KafkaProducer<... |
ZaidKaleem/60-212 | Lab7_P1/Q3/Page.java | <filename>Lab7_P1/Q3/Page.java<gh_stars>0
package Lab7_P1.Q3;
public class Page implements Turner {
public String turn() {
return "Going to the next page.";
}
}
|
jmartisk/hibernate-validator | documentation/src/test/java/org/hibernate/validator/referenceguide/chapter04/resourcebundlelocator/ResourceBundleLocatorTest.java | <reponame>jmartisk/hibernate-validator
package org.hibernate.validator.referenceguide.chapter04.resourcebundlelocator;
import java.util.Arrays;
import java.util.Set;
import javax.validation.ConstraintViolation;
import javax.validation.Validation;
import javax.validation.Validator;
import org.junit.Test;
import org.h... |
goroda/Compressed-Continuous-Computation | c3/lib_probability/probability.c | <filename>c3/lib_probability/probability.c
// Copyright (c) 2015-2016, Massachusetts Institute of Technology
// Copyright (c) 2016-2017 Sandia Corporation
// Copyright (c) 2017 NTESS, LLC.
// This file is part of the Compressed Continuous Computation (C3) Library
// Author: <NAME>
// Contact: <EMAIL>
// All rights r... |
Gaboso/java-design-patterns | src/main/java/com/github/gaboso/behavior/interpreter/expression/TerminalExpression.java | package com.github.gaboso.behavior.interpreter.expression;
import java.util.StringTokenizer;
public class TerminalExpression implements Expression {
private final String data;
public TerminalExpression(String data) {
this.data = data;
}
@Override
public boolean interpret(String context)... |
testarOpenshift/redmineigen | lib/redmine/search.rb | # Redmine - project management software
# Copyright (C) 2006-2014 <NAME>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later versi... |
GregEakin/NutrishSr28 | sr28/src/test/java/dev/eakin/dao/entities/FoodGroupTests.java | <gh_stars>1-10
/*
* Copyright (c) 2019. <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
*
* Unless required by applicable la... |
zdenda/aosp_platform_frameworks_support | work/workmanager/src/main/java/androidx/work/impl/utils/LiveDataUtils.java | <gh_stars>1-10
/*
* Copyright 2017 The Android Open Source 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 requ... |
GenaGeng/ObtainTrace | mcr-test/src/main/java/edu/tamu/aser/tests/simple/SimpleRWW.java | <reponame>GenaGeng/ObtainTrace
package edu.tamu.aser.tests.simple;
import edu.tamu.aser.reex.JUnit4MCRRunner;
import org.junit.Test;
import org.junit.runner.RunWith;
/**
* @author Gena
* @description
* @date 2020/3/26 0026
*/
@RunWith(JUnit4MCRRunner.class)
public class SimpleRWW {
static int x;
static ... |
lechium/tvOS135Headers | System/Library/PrivateFrameworks/CoreDuet.framework/_CDInteractionAdviceEngine.h | <filename>System/Library/PrivateFrameworks/CoreDuet.framework/_CDInteractionAdviceEngine.h<gh_stars>1-10
/*
* This header is generated by classdump-dyld 1.0
* on Sunday, June 7, 2020 at 11:15:44 AM Mountain Standard Time
* Operating System: Version 13.4.5 (Build 17L562)
* Image Source: /System/Library/PrivateFrameworks... |
TorinAsakura/cooking | povary/apps/gallery/urls.py | <reponame>TorinAsakura/cooking
# -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'povary.views.home', name='home'),
# url(r'^povary/', include('povary.foo.urls')),
url(r'^recipe_gallery/(?P<recipe_slug>.*)/$',
'gallery.views.recipe_g... |
osgcc/descent-mac | bios/gtimer.h | /*
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
IN USING, DISPLAYIN... |
juanfelipe82193/opensap | sapui5-sdk-1.74.0/resources/sap/ovp/app/TemplateBaseExtension-dbg.js | sap.ui.define([
"sap/ui/core/mvc/ControllerExtension",
"sap/ui/core/mvc/OverrideExecution"
], function (
ControllerExtension,
OverrideExecution
) {
"use strict";
return ControllerExtension.extend("sap.ovp.app.TemplateBaseExtension", {
metadata: {
methods: {
pr... |
nickoliasxii/Class-Activities | Week-19/107-Ins_ArrowExample/Solved/arrows-lexical-this.js | function Person () {
this.age = 0;
setInterval(() => {
this.age++; // |this| is parent's context - properly refers to the person object
}, 1000);
}
// ---------- OLD Methods (no arrow function)
// compare to old methods, where new functions built their own scope
function Person() {
var that = this;
tha... |
Caio-Moretti/115.Exercicios-Python | PythonExercicios/ex088.py | from random import randint
from time import sleep
total = 1
print('==' * 20)
print('MEGA SENA')
print('==' * 20)
quant = int(input(f'Quantos jogos vocรช quer jogar? '))
lista = []
jogos = []
cont = 0
while total <= quant:
cont = 0
while True:
num = randint(1, 60)
if num not in lista:
... |
Spiritdude/zencad | utest/ops1d2d_test.py | import unittest
import zencad
class Ops1d2dProbe(unittest.TestCase):
def setUp(self):
zencad.lazy.encache = False
zencad.lazy.decache = False
zencad.lazy.fastdo = True
def test_fill(self):
zencad.fill(zencad.circle(5, wire=True)).unlazy()
zencad.circle(5, wire=True).fi... |
rickkas7/AB1805_RK | docs/html/search/all_d.js | <reponame>rickkas7/AB1805_RK<gh_stars>1-10
var searchData=
[
['timeset_234',['timeSet',['../class_a_b1805.html#a65393e3d43980d222b7942cec25f57b8',1,'AB1805']]],
['tmtoregisters_235',['tmToRegisters',['../class_a_b1805.html#a6673da5d88733e6457f161c9a17f2997',1,'AB1805']]],
['tmtostring_236',['tmToString',['../clas... |
peniakoff/commercetools-sync-java | src/test/java/com/commercetools/sync/products/helpers/productreferenceresolver/ProductTypeReferenceResolverTest.java | <filename>src/test/java/com/commercetools/sync/products/helpers/productreferenceresolver/ProductTypeReferenceResolverTest.java
package com.commercetools.sync.products.helpers.productreferenceresolver;
import static com.commercetools.sync.commons.MockUtils.getMockTypeService;
import static com.commercetools.sync.common... |
RiftValleySoftware/open-source-docs | docs/baobab/search/variables_1.js | <filename>docs/baobab/search/variables_1.js
var searchData=
[
['_5f_5fandisol_5fversion_5f_5f_1214',['__ANDISOL_VERSION__',['../a00098.html#a2e865e0ec885a77cb02801d064f468ac',1,'co_andisol.class.php']]],
['_5f_5fbadger_5fversion_5f_5f_1215',['__BADGER_VERSION__',['../a00176.html#a3f5839931ef01a2516f08b8b4d45b9dc',1... |
DDeAlmeida/near-wallet | packages/frontend/src/components/wallet/Sidebar.js | import React, { useState, useEffect } from 'react';
import styled from 'styled-components';
import CreateCustomName from './CreateCustomName';
import ExploreApps from './ExploreApps';
const StyledContainer = styled.div`
background-color: black;
border-radius: 8px;
padding-bottom: 30px;
margin-bottom: ... |
wayshall/onetwo | core/modules/boot/src/main/java/org/onetwo/boot/core/web/socket/ConectionLogHandlerDecoratorFactory.java | <filename>core/modules/boot/src/main/java/org/onetwo/boot/core/web/socket/ConectionLogHandlerDecoratorFactory.java
package org.onetwo.boot.core.web.socket;
import org.onetwo.boot.core.web.socket.event.WebsocketClosedEvent;
import org.onetwo.boot.core.web.socket.event.WebsocketConnectedEvent;
import org.onetwo.common.l... |
STMicroelectronics/fp-sns-flight1 | Drivers/BSP/Components/Common/idd.h | /**
******************************************************************************
* @file idd.h
* @author MCD Application Team
* @brief This file contains all the functions prototypes for the IDD driver.
******************************************************************************
* @attention
*
... |
findhappyman/blockchain | brownie_fund_me/node_modules/zer/lib/factories.js | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createChainCreator = createChainCreator;
var _lodash = require('lodash');
var _lodash2 = _interopRequireDefault(_lodash);
var _chain = require('./chain');
var _chainBuilder = require('./chain-builder');
function _interopRequire... |
hixio-mh/citadel_sdk_2.1.1 | drivers/broadcom/usb/cv/cvmain.h | /******************************************************************************
*
* Copyright 2007
* Broadcom Corporation
* 16215 <NAME>
* PO Box 57013
* Irvine CA 92619-7013
*
*****************************************************************************/
/*
* Broadcom Corporation Credential Vault API
*... |
siretty/BrotBoxEngine | BrotBoxEngine/IcoSphere.cpp | #include "BBE/IcoSphere.h"
#include "BBE/VertexWithNormal.h"
#include "BBE/Math.h"
#include "BBE/List.h"
#include <string.h>
bbe::INTERNAL::vulkan::VulkanBuffer bbe::IcoSphere::s_indexBuffer;
bbe::INTERNAL::vulkan::VulkanBuffer bbe::IcoSphere::s_vertexBuffer;
uint32_t bbe::IcoSphere::amountOfVertices = 0;
uint32_t bbe... |
Duffney/azure-sdk-for-go | sdk/resourcemanager/securityinsights/armsecurityinsights/zz_generated_models_serde.go | <filename>sdk/resourcemanager/securityinsights/armsecurityinsights/zz_generated_models_serde.go
//go:build go1.18
// +build go1.18
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft ... |
webdevhub42/Lambda | WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/Intro_to_Python/assignment_answers/A17_deployment.py | """ Assignment 17
For this assignment you should design, build and deploy a Python3 package
and answer the following:
1. What is the fundamental difference between a python package and a module?
2. What changes do we need to make in the `setup.py` script in relation to
developing a package vs a module?
"""
# Answe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.