repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
fredblain/docQE-corp | systems/2016/english-russian/newstest2016.PROMT-Rule-based.4276.en-ru/kommersant.173035.newstest2016.PROMT-Rule-based.4276.en-ru.ru | <reponame>fredblain/docQE-corp
Новая Mazda CX-5 и уличный стиль.
Это - то, как слово Мазда написано японскими иероглифами.
Красивый, краткий, и, в то же время, довольно трудный для тех, кто привык к кириллическим или латинским алфавитам.
Аналогично, новый переход CX-5, как с любой другой моделью марки, привлекателен, н... |
GerHobbelt/science.js | src/stats/stats.js | <filename>src/stats/stats.js
science.stats = {};
|
totalkyos/stack-storm | st2client/tests/unit/test_util_json.py | <reponame>totalkyos/stack-storm
# Licensed to the StackStorm, Inc ('StackStorm') 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
# (th... |
CarlosMacaneta/Projectos-Java | Teste2/src/models/Professor.java | package models;
/**
*
* @author CarlosMacaneta
*/
public class Professor extends Pessoa {
private String grauAcademico;
public Professor(String grauAcademico) {
this.grauAcademico = grauAcademico;
}
public Professor(int id, String nome, String genero, String grauAcademico) {
... |
samisking/samking.design | src/hooks/useTheme.js | <filename>src/hooks/useTheme.js<gh_stars>0
import { useEffect } from 'react';
import { useActiveThemeContext } from '../components/ActiveTheme';
function useTheme(themeMode, deps = []) {
const { setTheme } = useActiveThemeContext();
useEffect(() => {
setTheme(themeMode);
}, deps);
}
export default useTheme... |
neherlab/hivwholeseq | hivwholeseq/reference/__init__.py | <reponame>neherlab/hivwholeseq
# vim: fdm=marker
'''
author: <NAME>
date: 26/09/13
content: Manage reference sequences.
'''
# Modules
from Bio import SeqIO, AlignIO
from hivwholeseq.sequencing.filenames import get_HXB2_entire, get_NL43_entire, get_F10_entire, \
get_HXB2_fragmented, get_NL43_fragme... |
PolSl-PBL-7/DragonEye | data/tests/versioning/test_versioner.py | import filecmp
from os import path
from pathlib import Path
from data.versioning.versioner import WandbDatasetVersioner, VersioningConfig
CURDIR = Path(__file__).parents[2]
dataset_path_read = CURDIR / "tests/test_videos"
dataset_path_write = CURDIR / "tests/test_versioner_output"
def test_loading_file_exists():
... |
ericmorand/idea-twigextendedplugin | src/com/nightlycommit/idea/twigextendedplugin/templating/PhpTemplateMissingInspection.java | package com.nightlycommit.idea.twigextendedplugin.templating;
import com.intellij.codeInspection.LocalInspectionTool;
import com.intellij.codeInspection.ProblemHighlightType;
import com.intellij.codeInspection.ProblemsHolder;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiElementVisitor;
import com.jet... |
dingdang2012/tlsprober | alexa.py | # Copyright 2010-2012 Opera Software ASA
#
# 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 ... |
jordsti/stigame | StiGame/bindings/MouseActionMap.h | <filename>StiGame/bindings/MouseActionMap.h
#ifndef MOUSEACTIONMAP_H
#define MOUSEACTIONMAP_H
#include "Rectangle.h"
#include "ActionMap.h"
namespace StiGame
{
/// \class MouseActionMap
/// \brief Mapping of a mouse triggered action
class MouseActionMap :
public ActionMap
{
public:
/// \brief Create a new ... |
fangfang-zhang/MTGP | src/yimei/jss/ruleanalysis/MultipleTreeRuleTest.java | package yimei.jss.ruleanalysis;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import ec.gp.GPNode;
import ec.multiobjective.MultiObjectiveFitness;
import yimei.jss.jobshop.Objective;
import yimei.jss.jobsho... |
BlackIIIFOX/NodeJsTamagotchiServer | controllers/restaurants.js | <filename>controllers/restaurants.js<gh_stars>0
const express = require('express')
const router = express.Router()
const passport = require("passport")
const ROLES = require('../models/roles')
const roleChecker = require('../middlewares/role-checker')
const HttpStatus = require('http-status-codes')
const Restaura... |
Teletha/stylist | src/main/java/stylist/property/Position.java | /*
* Copyright (C) 2021 stylist Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*/
package stylist.property;
import stati... |
tobanteAudio/taetl | tests/set/flat_set.t.cpp | <reponame>tobanteAudio/taetl
/// \copyright <NAME> 2019-2021
/// Distributed under the Boost Software License, Version 1.0.
/// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
#include "etl/set.hpp"
#include "etl/cstdint.hpp"
#include "etl/vector.hpp"
#include "testing/testing.hpp"
templat... |
emthrm/library | test/data_structure/range_minimum_query_and_range_add_query.test.cpp | <gh_stars>1-10
/*
* @brief データ構造/遅延伝播セグメント木 (range minimum query and range add query)
*/
#define PROBLEM "http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=DSL_2_H"
#include <iostream>
#include <limits>
#include <vector>
#include "../../data_structure/lazy_segment_tree.hpp"
int main() {
int n, q... |
aronjschwartz/Angel_Devil | project_files/ros/orchestrator.py | #!/usr/bin/env python
"""
Orchestrator
ECE 578
11/24/2018
Author: <NAME>
"""
import time
import rospy
from std_msgs.msg import Int32
from std_msgs.msg import String
from os import getcwd
# Declare globals
global play_started
global play_counter
global play_lines
global play_motions
global num_play_lines
global our... |
timberbacklabs/JavaDesignPatterns | src/main/java/StructuralPatterns/GoF/Proxy/ProtectionProxy/ProtectedProxy.java | package StructuralPatterns.GoF.Proxy.ProtectionProxy;
import java.util.*;
public class ProtectedProxy extends AbstractSubject {
static ConcreteSubject subject;
private String currentUser;
private List<String> registeredUsers;
public ProtectedProxy(String currentUser) {
registeredUsers = Arr... |
metincansiper/Paxtools | paxtools-core/src/main/java/org/biopax/paxtools/impl/level2/pathwayStepImpl.java | package org.biopax.paxtools.impl.level2;
import org.biopax.paxtools.model.BioPAXElement;
import org.biopax.paxtools.model.level2.pathway;
import org.biopax.paxtools.model.level2.pathwayStep;
import org.biopax.paxtools.model.level2.process;
import java.util.HashSet;
import java.util.Set;
/**
*/
class pathwayStepImpl... |
ryan-williams/guacamole | src/main/scala/org/bdgenomics/guacamole/Bases.scala | /**
* Licensed to Big Data Genomics (BDG) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The BDG licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use ... |
autumnblazey/autumnblaze | js/events/index.js | "use strict";
module.exports = autumnblaze => {
const fs = require("fs");
const path = require("path");
const eventstuffs = {};
const files = fs.readdirSync(path.resolve(__dirname, ".")).filter(file => file !== "index.js" && !file.startsWith("_"));
files.forEach(file => {
if (file.endsWith(".js")... |
tanishiking/dotty | tests/run/constValueTuple.scala | import compiletime.constValueTuple
@main def Test =
println(constValueTuple["foo" *: "bar" *: 10 *: 2.5 *: EmptyTuple])
|
mrehman29/open-vm-tools | open-vm-tools/common-agent/Cpp/Framework/Framework/src/Common/CThreadUtils.h | <filename>open-vm-tools/common-agent/Cpp/Framework/Framework/src/Common/CThreadUtils.h
/*
* Author: bwilliams
* Created: Jan 21, 2011
*
* Copyright (C) 2011-2016 VMware, Inc. All rights reserved. -- VMware Confidential
*/
#ifndef CThreadUtils_H_
#define CThreadUtils_H_
namespace Caf {
class COMMONAGGREGATOR_... |
minigame-network/core | src/me/chasertw123/minigames/core/listeners/general/Event_AsyncPlayerChat.java | <reponame>minigame-network/core<filename>src/me/chasertw123/minigames/core/listeners/general/Event_AsyncPlayerChat.java<gh_stars>1-10
package me.chasertw123.minigames.core.listeners.general;
import me.chasertw123.minigames.core.Main;
import me.chasertw123.minigames.core.api.v2.CoreAPI;
import me.chasertw123.minigames.... |
bburan/psiexperiment | psi/controller/input.py | <reponame>bburan/psiexperiment
import logging
log = logging.getLogger(__name__)
from collections import deque, namedtuple
from copy import copy
from functools import partial
from queue import Empty, Queue
import numpy as np
from scipy import signal
from atom.api import (Unicode, Float, Typed, Int, Property, Enum, Bo... |
catmaid/catpy | tests/test_catpy.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_client
----------------------------------
Tests for `catpy.client` module.
"""
from __future__ import absolute_import
import catpy.client
import catpy.util
def test_make_url_double_slash():
"""Tests for catpy.client.make_url
"""
url = catpy.client.... |
jacobtolar/archiva | archiva-modules/archiva-base/archiva-maven2-indexer/src/main/java/org/apache/archiva/indexer/merger/MergedRemoteIndexesTask.java | <filename>archiva-modules/archiva-base/archiva-maven2-indexer/src/main/java/org/apache/archiva/indexer/merger/MergedRemoteIndexesTask.java
package org.apache.archiva.indexer.merger;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distr... |
markbgrdt/gardener | pkg/mock/gardener/utils/errors/funcs.go | // Code generated by MockGen. DO NOT EDIT.
// Source: github.com/gardener/gardener/pkg/utils/errors (interfaces: TaskFunc)
// Package errors is a generated GoMock package.
package errors
import (
reflect "reflect"
errors "github.com/gardener/gardener/pkg/utils/errors"
gomock "github.com/golang/mock/gomock"
)
// ... |
Rohisbo/escehmd | node_modules/encode-utf8/index.js | 'use strict'
module.exports = function encodeUtf8 (input) {
var result = []
var size = input.length
for (var index = 0; index < size; index++) {
var point = input.charCodeAt(index)
if (point >= 0xD800 && point <= 0xDBFF && size > index + 1) {
var second = input.charCodeAt(index + 1)
if (se... |
darrenmossman/AdventOfCode | app/src/main/java/com/mossman/darren/adventofcode/Y2K20/Y2K20_20.java | <reponame>darrenmossman/AdventOfCode
package com.mossman.darren.adventofcode.Y2K20;
import com.mossman.darren.adventofcode.InfiniteGrid;
import com.mossman.darren.adventofcode.Utils;
import com.mossman.darren.adventofcode.Y2K18.Y2K18_Puzzle;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;... |
robertaird/Create | src/main/java/com/simibubi/create/lib/event/FogEvents.java | <reponame>robertaird/Create<gh_stars>100-1000
package com.simibubi.create.lib.event;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.fabricmc.fabric.api.event.Event;
import net.fabricmc.fabric.api.event.EventFactory;
import net.minecraft.client.Camera;
@Environment(EnvType.CLIENT)
pub... |
LaurensMakel1/iaf | core/src/main/java/nl/nn/adapterframework/pipes/CrlPipe.java | <gh_stars>0
/*
Copyright 2016 Nationale-Nederlanden
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 l... |
corner4world/hasor | hasor-core/src/test/java/net/hasor/core/event/EventLinkTest.java | <filename>hasor-core/src/test/java/net/hasor/core/event/EventLinkTest.java
/*
* Copyright 2008-2009 the original author or 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
*
* ... |
slamavl/quantarhei | examples/rc_single.py | <filename>examples/rc_single.py
# -*- coding: utf-8 -*-
#******************************************************************************
#
# Simulation of single molecule spectra of RC ...
# using Quantarhei package, version ....
#
# Author: <NAME>
#
# Last changes: July 14th, 2016
#
#
#
#*******************************... |
rnarla123/aliyun-openapi-java-sdk | aliyun-java-sdk-msccommonquery/src/main/java/com/aliyuncs/msccommonquery/model/v20210407/ListMessagesRequest.java | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... |
terebentina/mongui | src/client/utils/mixins.js | class MixinBuilder {
constructor(superclass) {
this.superclass = superclass;
}
with() {
return Array.from(arguments).reduce((c, m) => m(c), this.superclass);
}
}
const mix = (superclass) => new MixinBuilder(superclass);
export de... |
pulumi/pulumi-azure-nextgen | sdk/python/pulumi_azure_nextgen/network/v20180201/__init__.py | <filename>sdk/python/pulumi_azure_nextgen/network/v20180201/__init__.py
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
# Export this package's modules as members:
from ._enums import *
from .applica... |
thirtyfiveparts/live | repos/live/packages/log/live-log/index.js | export * from './src'
export {default} from './src'
|
prophecy/Pillar | Dependencies/Include/cml/matrix/matrix_promotions.h | <gh_stars>10-100
/* -*- C++ -*- ------------------------------------------------------------
Copyright (c) 2007 <NAME> and <NAME> http://cmldev.net/
The Configurable Math Library (CML) is distributed under the terms of the
Boost Software License, v1.0 (see cml/LICENSE for details).
*-------------------------------... |
PeterKassenaar/voorbeeldenNodejs | H03/0307/app.js | <filename>H03/0307/app.js<gh_stars>1-10
//app.js - Array met personen maken en tonen in de console
var Persoon = require('./Persoon');
var colors = require('colors');
var arrayPersonen = [];
// array vullen met personen
arrayPersonen.push(new Persoon('Peter', 'Kassenaar', '<EMAIL>'));
arrayPersonen.push(new Persoon('B... |
mbuckaway/CrossMgr | CrossMgrVideo/Database.py | import wx
import os
import sys
import six
import time
from datetime import datetime, timedelta
import sqlite3
import CVUtil
from collections import defaultdict
from six.moves.queue import Queue, Empty
import unicodedata
def removeDiacritic( s ):
return unicodedata.normalize('NFKD', u'{}'.format(s)).encode('ascii', '... |
homobel/makebird-node | test/projects/large/c67.js | <filename>test/projects/large/c67.js
//~ name c67
alert(c67);
//~ component c68.js
|
aarshkshah1992/go-ipld-prime | adl/rot13adl/rot13prototypes.go | package rot13adl
// Prototype embeds a NodePrototype for every kind of Node implementation in this package.
// This includes both the synthesized node as well as the substrate root node
// (other substrate interior node prototypes are not exported here;
// it's unlikely they'll be useful outside of the scope of the AD... |
lordHodges/gerarquiaModificada | core/src/contexts/registros/usuario/index.js | <filename>core/src/contexts/registros/usuario/index.js<gh_stars>0
module.exports = {
// !casos de uso
CrearUsuario: require("./aplication/useCase/crearUsuario"),
ObtenerUsuarios: require("./aplication/useCase/obtenerUsuarios"),
Login: require("./aplication/useCase/login"),
// !clases
UsuarioDalRepository: requ... |
urids/XSCALAMPI | ompi/contrib/vt/vt/include/vt_user_message.h | /**
* VampirTrace
* http://www.tu-dresden.de/zih/vampirtrace
*
* Copyright (c) 2005-2013, ZIH, TU Dresden, Federal Republic of Germany
*
* Copyright (c) 1998-2005, Forschungszentrum Juelich, Juelich Supercomputing
* Centre, Federal Republic of Germany
*
* See the file COPYING in the pa... |
a471925688/yy-service | src/main/java/com/game/xiaoyan/system/repository/CaptchaRepository.java | package com.game.xiaoyan.system.repository;
import com.game.xiaoyan.system.entity.Captcha;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface CaptchaRepository extends JpaRepository<Captcha,String> {
Captcha findByCaptchaPho... |
sspooky13/shopsys | packages/framework/assets/js/common/validation/ConstraintRange.js | import { parseNumber } from '../utils/number';
(function (window) {
const SymfonyComponentValidatorConstraintsRange = function () {
this.maxMessage = '';
this.minMessage = '';
this.invalidMessage = '';
this.max = null;
this.min = null;
this.validate = function (val... |
jbrodman/SYCL-CTS | tests/accessor/accessor_constructors_buffer.cpp | <filename>tests/accessor/accessor_constructors_buffer.cpp<gh_stars>0
/*******************************************************************************
//
// SYCL 1.2.1 Conformance Test Suite
//
// Copyright: (c) 2018 by Codeplay Software LTD. All Rights Reserved.
//
****************************************************... |
lefevre-fraser/openmeta-mms | src/Python27Packages/testbenchexecutor/progress_service/gen/progress_feedback_pb2.py | <filename>src/Python27Packages/testbenchexecutor/progress_service/gen/progress_feedback_pb2.py
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: progress_feedback.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from ... |
camperoo/subscriptions | spec/models/subscriptions/payment_spec.rb | <reponame>camperoo/subscriptions<filename>spec/models/subscriptions/payment_spec.rb
require 'spec_helper'
require 'active_merchant'
ActiveMerchant::Billing::Base.mode = :test
describe Subscriptions::Payment do
describe ".is_successful?" do
it "should return true if status is 'Ok'" do
subject.status = Sub... |
TAAPArthur/Syncrop | Syncrop/SyncropGUI/src/gui/tabs/Optimization.java | package gui.tabs;
import static syncrop.Syncrop.logger;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JPanel;
import gui.SyncropGUI;
import listener.FileWatcher;
import listener.action... |
daniel-thom/jade | tests/unit/jobs/test_job_configuration.py | <reponame>daniel-thom/jade<filename>tests/unit/jobs/test_job_configuration.py<gh_stars>0
import os
import shutil
import pytest
from jade.exceptions import InvalidConfiguration
from jade.extensions.generic_command.generic_command_inputs import GenericCommandInputs
from jade.extensions.generic_command.generic_command_... |
AntonKondratkov/akondratkov | chapter_002/src/main/java/ru/job4j/tracker/actions/MenuTracker.java | package ru.job4j.tracker.actions;
import ru.job4j.tracker.StartUI;
import ru.job4j.tracker.input.Input;
import ru.job4j.tracker.model.Item;
import ru.job4j.tracker.strogare.ITracker;
import ru.job4j.tracker.strogare.Tracker;
import java.util.List;
import java.util.function.Consumer;
/**
* @author <NAME>
* @since 2... |
vihahb/Xoso | app/src/main/java/com/xProject/XosoVIP/xoso/view/adapter/AdapterLoto.java | package com.xProject.XosoVIP.xoso.view.adapter;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.xProject.XosoVIP.R;
import java.util.List;
/**
* Cre... |
MikhailGorobets/FaceGenBaseLibrary | source/LibFgBase/src/Fg3dMeshPly.cpp | //
// Coypright (c) 2020 Singular Inversions Inc. (facegen.com)
// Use, modification and distribution is subject to the MIT License,
// see accompanying file LICENSE.txt or facegen.com/base_library_license.txt
//
#include "stdafx.h"
#include "Fg3dMeshOps.hpp"
#include "Fg3dMeshIo.hpp"
#include "Fg3dNormals.... |
daodao10/chart | cn/002293_d.js | <gh_stars>1-10
var data=[['20090910',3.598],
['20090911',3.778],
['20090914',3.798],
['20090915',3.569],
['20090916',3.582],
['20090917',3.615],
['20090918',3.560],
['20090921',3.276],
['20090922',3.104],
['20090923',3.011],
['20090924',2.911],
['20090925',2.944],
['20090928',2.815],
['20090929',2.525],
['20090930',2.5... |
SammyEnigma/im-desktop | libomicron/src/omicron_impl.cpp | <gh_stars>10-100
#include "stdafx.h"
#ifdef OMICRON_USE_LIBCURL
#include <curl.h>
#include "curl_tools/curl_ssl_callbacks.h"
#endif
#include <omicron/omicron_conf.h>
#include <omicron/omicron.h>
#include "omicron_impl.h"
#ifdef OMICRON_USE_LIBCURL
static size_t write_data(void *ptr, size_t size, size_t nitems, void... |
iplo/Chain | content/child/thread_safe_sender.h | // Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_CHILD_THREAD_SAFE_SENDER_H_
#define CONTENT_CHILD_THREAD_SAFE_SENDER_H_
#include "base/gtest_prod_util.h"
#include "base/memory/ref_c... |
FoseFx/SponsorBlockServer | test/cases/segmentShift.js | const request = require('request');
const utils = require('../utils.js');
const { db } = require('../../src/databases/databases.js');
const getHash = require('../../src/utils/getHash.js');
function dbSponsorTimesAdd(db, videoID, startTime, endTime, UUID, category) {
const votes = 0,
userID = 0,
timeSubmitted... |
CLIMB-COVID/majora2 | tatl/management/commands/userapprove.py | <filename>tatl/management/commands/userapprove.py
import sys
import json
from django.core.management.base import BaseCommand, CommandError
from django.utils import timezone
from majora2.models import Profile
from tatl import models as tmodels
from django.contrib.auth.models import User
from django.http.request impor... |
irisengine/iris | include/iris/networking/server_socket_data.h | <reponame>irisengine/iris<filename>include/iris/networking/server_socket_data.h
////////////////////////////////////////////////////////////////////////////////
// Distributed under the Boost Software License, Version 1.0. //
// (See accompanying file LICENSE or copy at ... |
chandlerprall/kibana | src/dev/build/tasks/os_packages/index.js | <filename>src/dev/build/tasks/os_packages/index.js
export { CreateRpmPackageTask, CreateDebPackageTask } from './create_os_package_tasks';
|
PearsonEducation/apigee-ios-sdk | source/Classes/AppServices/ApigeeActivity.h | #import <Foundation/Foundation.h>
#import "ApigeeEntity.h"
@interface ApigeeActivity : ApigeeEntity
+ (BOOL)isSameType:(NSString*)type;
- (id)initWithDataClient:(ApigeeDataClient*)dataClient;
// In order for an activity to be valid, you must call setBasics and one of the setActor functions.
// In all cases, the r... |
pauldaustin/gba_revolsys | revolsys-web/src/main/java/com/revolsys/ui/web/security/oauth/MicrosoftOAuthHandler.java | package com.revolsys.ui.web.security.oauth;
import java.io.IOException;
import java.security.Principal;
import java.util.function.Function;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.http.client.methods.Request... |
kounoike/cpp-mp4 | src/box_types.cpp | <filename>src/box_types.cpp
#include "shiguredo/mp4/box_types.hpp"
#include <string>
#include <boost/functional/factory.hpp>
#include "shiguredo/mp4/box/boxes.hpp"
#include "shiguredo/mp4/box_map.hpp"
#include "shiguredo/mp4/box_type.hpp"
namespace shiguredo::mp4 {
void register_box_map(BoxMap* boxMap) {
boxMap-... |
xcorail/andstatus | app/src/main/java/org/andstatus/app/user/CachedUsersAndActors.java | <gh_stars>0
package org.andstatus.app.user;
import android.database.Cursor;
import android.support.annotation.NonNull;
import org.andstatus.app.context.MyContext;
import org.andstatus.app.data.ActorSql;
import org.andstatus.app.data.DbUtils;
import org.andstatus.app.data.MyQuery;
import org.andstatus.app.data.SqlActo... |
lizhongyi1992/xuanxuan | xxc/app/core/ui.js | <gh_stars>1-10
import Config from '../config'; // eslint-disable-line
import Server from './server';
import MemberProfileDialog from '../views/common/member-profile-dialog';
import Messager from '../components/messager';
import ContextMenu from '../components/context-menu';
import modal from '../components/modal';
impo... |
Tiny-Fendy/koa-structure | frame/config/config.default.js | module.exports = {
key: '',
port: '8001',
session: {
maxAge: 86400000
},
mongodb: {
enable: false
}
};
|
ScenidDev/cube.js | packages/cubejs-query-orchestrator/driver/BaseDriver.js | const { reduce } = require('ramda');
const sortByKeys = (unordered) => {
const ordered = {};
Object.keys(unordered).sort().forEach(function(key) {
ordered[key] = unordered[key];
});
return ordered;
};
const DbTypeToGenericType = {
'timestamp without time zone': 'timestamp',
'integer': 'int',
'char... |
palikhov/5ET-mirror | js/seo-loader.js | <gh_stars>1-10
window.addEventListener("load", async () => {
Renderer.get().setBaseUrl("/");
const fullPage = `${_SEO_PAGE}.html`;
const it = await Renderer.hover.pCacheAndGet(fullPage, _SEO_SOURCE, _SEO_HASH);
document.title = `${it.name} - 5etools`;
$(`.page__title`).text(`${_SEO_PAGE.toTitleCase()}: ${it.name}... |
wjguan/phenocell | clarity/CellTypeDetection/old/phenotypeCells.py | import numpy as np
import matplotlib.pyplot as pyplt
import clarity.IO as io
import cv2, sklearn, os, time, sys
import scipy.ndimage.filters as fi
import matplotlib.pyplot as pyplt
import clarity.Visualization.Plot as plt
import multiprocessing as mp
from functools import partial
from clarity.CellTypeDet... |
facug91/OJ-Solutions | icpcarchive.ecs.baylor.edu/Exploration.cpp | /*
By: facug91
From: https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=4909
Name: Exploration
Date: 28/04/2016
*/
#include <bits/stdc++.h>
#define endl "\n"
#define next sbjkdfh329re9fdshfd98fyh
#define EPS 1e-9
#define MP make_pair
#define F first
#define S sec... |
ebridfighter/mrgong-store | app/src/main/java/uk/co/ribot/androidboilerplate/ui/activity/OrderCommitSuccessActivity.java | package uk.co.ribot.androidboilerplate.ui.activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import java.util.ArrayList;
import java.... |
mike-n-jordan/mopub-android-sdk | mopub-sdk/mopub-sdk-base/src/main/java/com/mopub/mobileads/MoPubError.java | <filename>mopub-sdk/mopub-sdk-base/src/main/java/com/mopub/mobileads/MoPubError.java<gh_stars>1-10
// Copyright 2018-2020 Twitter, Inc.
// Licensed under the MoPub SDK License Agreement
// http://www.mopub.com/legal/sdk-license-agreement/
package com.mopub.mobileads;
/**
* Temporary solution, this interface will be ... |
lriki/Lumino | lumino/Graphics/include/LuminoGraphics/Rendering/Kanata/KDrawCommand.hpp | #pragma once
#include <LuminoCore/Base/LinearAllocator.hpp>
#include "Common.hpp"
#include "KPipelineState.hpp"
namespace ln {
namespace kanata {
enum class DrawCommandType {
BeginRenderPass,
EndRenderPass,
DrawPrimitive,
};
struct IDrawCommand {
DrawCommandType type;
};
struct BeginRenderPassComma... |
benhunter/py-stuff | misc/ringzer0-patterniskey.py | """
\x1c\x1e\x1e\x71\x14\x2a\x66\x40\x1c\x1e\x1e\x71\x14\x2a\x66\x40
\x7d\x04\x03\x58\x6a\x53\x52\x59\x7e\x01\x07\x0f\x32\x5c\x19\x06
\x05\x77\x71\x67\x35\x02\x12\x59\x78\x50\x50\x06\x75\x46\x0c\x40
\x77\x7f\x72\x70\x75\x46\x0c\x40
\x1c\x1e\x1e\x71\x14\x2a\x66\x40\x1c\x1e\x1e\x71\x14\x2a\x66\x40\x7d\x04\x03\x58\x6a\x5... |
jamhocken/aoc-2020 | day18/python/asung/solution.py | #!/usr/bin/env python3
import math
import os
import re
class Puzzle:
def __init__(self, filepath: str) -> None:
"""Read input file at filepath as a list of stripped strings."""
with open(filepath, 'r') as text_file:
self.lines = [line.rstrip() for line in text_file.readlines()]
@s... |
ut-osa/syncchar | linux-2.6.16-unmod/include/asm-ia64/scatterlist.h | <reponame>ut-osa/syncchar
#ifndef _ASM_IA64_SCATTERLIST_H
#define _ASM_IA64_SCATTERLIST_H
/*
* Modified 1998-1999, 2001-2002, 2004
* <NAME> <<EMAIL>>, Hewlett-Packard Co
*/
struct scatterlist {
struct page *page;
unsigned int offset;
unsigned int length; /* buffer length */
dma_addr_t dma_address;
unsigned i... |
balu3083/neotree-android-2018 | app/src/main/java/org/neotree/event/RefreshSessionListEvent.java | package org.neotree.event;
/**
* Created by matteo on 15/11/2016.
*/
public class RefreshSessionListEvent {
}
|
p-maraver/NeuroMorphoLiterature | Search/src/main/java/org/neuromorpho/literature/search/service/PortalSearchFactory.java | /*
* Copyright (c) 2015-2022, <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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
AntoniosKalattas/Ping_rep | gui/node_modules/core-js/modules/esnext.reflect.metadata.js | <filename>gui/node_modules/core-js/modules/esnext.reflect.metadata.js
version https://git-lfs.github.com/spec/v1
oid sha256:8308bf011e29ba64557adde57df7bf20290fff7290425a351344cee060f84c58
size 605
|
zhangyanwei/wechat-client | src/main/java/com/github/zhangyanwei/wechat/module/respond/impl/WxTextMessageResponder.java | package com.github.zhangyanwei.wechat.module.respond.impl;
import com.github.zhangyanwei.wechat.module.respond.MessagePassiveResponder;
import com.github.zhangyanwei.wechat.module.respond.RespondException;
import com.github.zhangyanwei.wechat.module.respond.model.WxTransferCustomerServiceMessage;
import com.github.zha... |
Hoommus/iscaribot | src/main/java/features/commands/commands/ConfigCommand.java | <gh_stars>1-10
package features.commands.commands;
import features.commands.annotations.SubCommand;
import features.commands.events.CommandEvent;
import model.entities.EnhancedGuild;
import model.dbfields.BotFeatures;
import model.dbfields.BotMessages;
import net.dv8tion.jda.core.EmbedBuilder;
import net.dv8tion.jda.c... |
erkhabibullina/OnlineShoppingDemo | app/src/main/java/com/example/android/onlineshoppingdemo/store/signup/WelcomeContinueButtonController.java | package com.example.android.onlineshoppingdemo.store.signup;
import android.content.Context;
import android.content.Intent;
import android.view.View;
import com.example.android.onlineshoppingdemo.MainActivity;
public class WelcomeContinueButtonController implements View.OnClickListener {
private Context appCont... |
basarevych/next-dashboard | api-server/src/Database.js | <filename>api-server/src/Database.js
const mongoose = require("mongoose");
const constants = require("../../common/constants");
const shuffle = require("../common/src/shuffle");
class Database {
constructor(config, di, fake) {
this.config = config;
this.di = di;
this.fake = fake;
this.mongoose = mon... |
crazyvalse/algorithms | src/14-slidingwindow/m-1456/check/01.js | /*
给你字符串 s 和整数 k 。
请返回字符串 s 中长度为 k 的单个子字符串中可能包含的最大元音字母数。
英文中的 元音字母 为(a, e, i, o, u)。
示例 1:
输入:s = "abciiidef", k = 3
输出:3
解释:子字符串 "iii" 包含 3 个元音字母。
示例 2:
输入:s = "aeiou", k = 2
输出:2
解释:任意长度为 2 的子字符串都包含 2 个元音字母。
示例 3:
输入:s = "leetcode", k = 3
输出:2
解释:"lee"、"eet" 和 "ode" 都包含 2 个元音字母。
示例 4:
输入:s = "rhythms", k = 4... |
VidersTv/common | streaming/protocol/rtmp/cache/gop.go | package cache
import (
"fmt"
"github.com/viderstv/common/streaming/av"
)
var (
maxGOPCap int = 1024
ErrGopTooBig = fmt.Errorf("gop to big")
)
type array struct {
index int
packets []*av.Packet
}
func newArray() *array {
ret := &array{
index: 0,
packets: make([]*av.Packet, 0, maxGOPCap),
}
r... |
nizD/LeetCode-Solutions | C++/239. SlidingWindowMaximum.cpp | /*
Problem : You are given an array of integers nums, there is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k numbers in the window. Each time the sliding window moves right by one position.
Return the max sliding window
Approach : We scan the arr... |
olavoasantos/jasss | node_modules/collect.js/src/methods/every.js | 'use strict';
module.exports = function every(fn) {
return this.items
.map((item, index) => fn(item, index))
.indexOf(false) === -1;
};
|
zzqqqzzz/WebNES | project/js/db/F62ACF9818E805E234875D11702DCC9E19D83AA2.js | this.NesDb = this.NesDb || {};
NesDb[ 'F62ACF9818E805E234875D11702DCC9E19D83AA2' ] = {
"$": {
"name": "Barbie",
"class": "Licensed",
"catalog": "NES-8V-AUS",
"publisher": "Hi Tech Expressions",
"developer": "Imagineering",
"region": "Australia",
"players": "1",
"date": "1992"
},
"cartridge": [
{
... |
sergeyreznik/et-engine | include/et/rendering/vulkan/vulkan_renderer.h | /*
* This file is part of `et engine`
* Copyright 2009-2016 by <NAME>
* Please, modify content only if you know what are you doing.
*
*/
#pragma once
#include <et/rendering/interface/renderer.h>
namespace et {
class VulkanRendererPrivate;
class VulkanRenderer : public RenderInterface
{
public:
ET_DECLARE_POINT... |
Futuremappermydud/Naluluna-Modifier-Quest | include/codegen/include/System/Xml/XmlWellFormedWriter_AttributeValueCache_BufferChunk.hpp | <reponame>Futuremappermydud/Naluluna-Modifier-Quest<gh_stars>1-10
// Autogenerated from CppHeaderCreator on 7/27/2020 3:10:20 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including ... |
aetherinc/cpe-manifest-android-experience | src/com/wb/nextgenlibrary/parser/md/schema/v2_3/DigitalAssetMetadataType.java | <reponame>aetherinc/cpe-manifest-android-experience<gh_stars>1-10
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompil... |
neilrjones/DevOps-Python-tools | hbase_flush_tables.py | #!/usr/bin/env python
# vim:ts=4:sts=4:sw=4:et
#
# Author: <NAME>
# Date: 2016-09-12 13:44:24 +0200 (Mon, 12 Sep 2016)
#
# https://github.com/harisekhon/devops-python-tools
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on LinkedIn
# and optio... |
Portable-EHR/PatientSDK-iOS | ehrPatientSDK-ios/Classes/Models/UserModel.h | //
// Created by <NAME> on 2015-10-24.
// Copyright (c) 2015-2019 Portable EHR inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "EHRInstanceCounterP.h"
#import "EHRPersistableP.h"
#import "EHRModelSequencerP.h"
@class IBUser;
@class NotificationsModel;
@class UserDeviceSettings;
@class MessagesM... |
ZhouTuo666/xiao | basic/src/main/java/indi/tuo/xiao/base/variable/AbstractVariable.java | package indi.tuo.xiao.base.variable;
import java.util.Objects;
import lombok.Getter;
import lombok.Setter;
public abstract class AbstractVariable implements IVariable {
@Getter
@Setter
protected String name;
@Getter
@Setter
protected String id;
@Getter
protected int scope;
@Getter
protected lo... |
rochakchauhan/commcare-hq | custom/icds_reports/migrations/0119_distribute_tables.py | # Generated by Django 1.11.20 on 2019-05-14 12:45
from django.db import migrations
from corehq.sql_db.connections import is_citus_db
from custom.icds_reports.const import DISTRIBUTED_TABLES, REFERENCE_TABLES
from custom.icds_reports.utils.migrations import (
create_citus_distributed_table,
create_citus_refere... |
SoftReaper/Mesa-Renoir-deb | src/gallium/drivers/r600/sfn/sfn_shaderio.cpp | <filename>src/gallium/drivers/r600/sfn/sfn_shaderio.cpp
/* -*- mesa-c++ -*-
*
* Copyright (c) 2018 Collabora LTD
*
* Author: <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... |
Valzavator/Servlet_Svynarchuk_Periodicals | src/main/java/com/gmail/maxsvynarchuk/presentation/command/impl/user/PostCartRemoveAllItemCommand.java | package com.gmail.maxsvynarchuk.presentation.command.impl.user;
import com.gmail.maxsvynarchuk.presentation.command.Command;
import com.gmail.maxsvynarchuk.presentation.command.CommandResult;
import com.gmail.maxsvynarchuk.presentation.util.Util;
import com.gmail.maxsvynarchuk.presentation.util.constants.PagesPaths;
i... |
BryceShearn/FinalProject | JPAClusterCafe/src/main/java/com/skilldistillery/clustercafe/entities/GroupMessage.java | <gh_stars>1-10
package com.skilldistillery.clustercafe.entities;
import java.time.LocalDateTime;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import ... |
scenaristeur/evejs | lib/transport/Transport.js | 'use strict';
/**
* Abstract prototype of a transport
* @param {Object} [config]
* @constructor
*/
function Transport(config) {
this.id = config && config.id || null;
this['default'] = config && config['default'] || false;
}
Transport.prototype.type = null;
/**
* Connect an agent
* @param {String} id
* @p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.