repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
DeinDesign/css | node_modules/bower/node_modules/inquirer/node_modules/cli-color/node_modules/es5-ext/lib/Array/prototype/_compare-by-length.js | <reponame>DeinDesign/css
// Used internally to sort array of lists by length
'use strict';
module.exports = function (a, b) {
return (a.length >>> 0) - (b.length >>> 0);
};
|
TeamSPoon/CYC_JRTL_with_CommonLisp_OLD | platform/lib/all-deps/com/google/gwt/core/ext/linker/impl/installLocationIframe.js | <filename>platform/lib/all-deps/com/google/gwt/core/ext/linker/impl/installLocationIframe.js
// GWT code can be installed anywhere, but an iFrame is the best place if you
// want both variable isolation and runAsync support. Variable isolation is
// useful for avoiding conflicts with JavaScript libraries and critical i... |
frankquekch/main | src/test/java/seedu/budgeteer/storage/JsonSerializableEntriesBookTest.java | package seedu.budgeteer.storage;
import static org.junit.Assert.assertEquals;
import java.nio.file.Path;
import java.nio.file.Paths;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import seedu.budgeteer.commons.exceptions.IllegalValueException;
import seedu.budgeteer.commons... |
josemoreno90/kwestion-me | node_modules/firekit-provider/umd/firekit-provider.js | /*!
* firekit-provider v0.2.20 - https://www.react-most-wanted.com/
* MIT Licensed
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(... |
Jakshas/JavaMiniProjects | SimpleCompiler/obliczenia/Deklaracja.java | <reponame>Jakshas/JavaMiniProjects
package obliczenia;
import struktury.*;
public class Deklaracja extends Instrukcja{
String zmienna;
public Deklaracja(String z) throws Exception {
if (z==null) {
throw new Exception("null");
}
this.zmienna=z;
}
@Overrid... |
Adityajn/College-Codes | TE-1/PL-2/ethereal/libcrafter-master/libcrafter/crafter/Fields/FieldContainer.cpp | /*
Copyright (c) 2012, <NAME>
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 conditions and the following ... |
wangrling/media | app/src/main/java/com/android/mm/music/custom/PermissionActivity.java | package com.android.mm.music.custom;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Bundle;
import android.provider.Settings;
import com.android.mm.R... |
samuel-gomez/react-starter-toolk | src/shared/components/Cards/Cards.test.js | <reponame>samuel-gomez/react-starter-toolk<gh_stars>1-10
import React from 'react';
import { render, act } from '@testing-library/react';
import Cards from './index';
const defaultProps = { items: [{ id: 'id', title: 'title', picture: { alt: 'alt', name: 'image.jpg' } }] };
describe('<Cards/>', () => {
it('Should r... |
JCYang/ya_uftp | sender/detail/server.cpp | <reponame>JCYang/ya_uftp<filename>sender/detail/server.cpp<gh_stars>0
#include "sender/server.hpp"
#include "detail/message.hpp"
#include "detail/core.hpp"
#include "detail/progress_notification.hpp"
#include "utilities/network_intf.hpp"
#include "sender/detail/files_delivery_session.hpp"
#include <map>
#include <rand... |
dariodsa/JavaCourse | hw05-0036490887/src/main/java/hr/fer/zemris/java/hw05/db/FieldValueGetters.java | package hr.fer.zemris.java.hw05.db;
/**
* Contains static final variable which implements {@link IFieldValueGetter}
* from every returns specific attribute from {@link StudentRecord}
* @author dario
*
*/
public class FieldValueGetters {
/**
* Returns {@link StudentRecord#getFirstName()} of the given {@link St... |
fabianmeco/english_school | src/student/student.fixture.js | <reponame>fabianmeco/english_school
module.exports = {
post:{
student:{
id: 1,
fullname: "<NAME>",
cid: "1094533533",
birthday: "1990-03-21",
phone_number: "3205654335",
email: "<EMAIL>",
address: "Calle falsa 123"
}... |
null-kryptonian/ProblemSolving | LeetCode/0067. Add Binary.cpp | <filename>LeetCode/0067. Add Binary.cpp<gh_stars>1-10
class Solution
{
public:
string addBinary(string a, string b) {
int i = a.size() - 1, j = b.size() - 1, carry = 0; // i, j are the index of a, b
string res; // res is the result
while (i >= 0 || j >= 0) { // while there are still digits i... |
marlonruo/PixelWeatherAndroid | www/animaciones/522/522.js | <filename>www/animaciones/522/522.js<gh_stars>0
(function (lib, img, cjs, ss) {
var p; // shortcut to reference prototypes
var rect; // used to reference frame bounds
// library properties:
lib.properties = {
width: 750,
height: 540,
fps: 12,
color: "#02304B",
manifest: [
{src:"images/bat_1.png", id:"bat_1"},
... |
mlgjsk/JavaScript | IntermediateAlgorithms/03.seek-and-destroy.js | <reponame>mlgjsk/JavaScript<filename>IntermediateAlgorithms/03.seek-and-destroy.js
/**
* You will be provided with an initial array (the first argument in the destroyer function), followed by one or more arguments.
* Remove all elements from the initial array that are of the same value as these arguments.
*/
functi... |
Jaeguins/Prototype | UEPrototype/Source/UEPrototype/Public/Grid/EditorGrid.h | <gh_stars>0
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "Math/Color.h"
#include "EditorGrid.generated.h"
class UMaterialInstanceDynamic;
class UStaticMeshComponent;
class APlayerController;
UCLASS()... |
jeet/tentacle | vendor/ruby-sequel/spec/adapters/sqlite_spec.rb | <filename>vendor/ruby-sequel/spec/adapters/sqlite_spec.rb
require File.join(File.dirname(__FILE__), '../../lib/sequel/sqlite')
SQLITE_DB = Sequel('sqlite:/')
SQLITE_DB.create_table :items do
integer :id, :primary_key => true, :auto_increment => true
text :name
float :value
end
context "An SQLite database" do
... |
fabo-corp/phabos | arch/arm/common/lowio.c | /*
* Copyright (C) 2015 <NAME>. All rights reserved.
* Author: <NAME> <<EMAIL>>
*
* Provided under the three clause BSD license found in the LICENSE file.
*/
#include <config.h>
#include <asm/semihosting.h>
#include <stdbool.h>
#include <stdio.h>
void machine_lowputchar(char c);
int machine_lowgetchar(bool wait)... |
protolabz/viewdu | _client_modules/coreapp/translations/config/translationHelper.js | <filename>_client_modules/coreapp/translations/config/translationHelper.js<gh_stars>0
export default class TranslationHelper {
constructor() {
this.translations = {};
}
$get() {
return {
translations: this.translations,
add: function(key, value) {
if(... |
wolfgangwalther/lazygit | pkg/cheatsheet/check.go | package cheatsheet
import (
"fmt"
"io/fs"
"io/ioutil"
"log"
"os"
"path/filepath"
"regexp"
"github.com/pmezard/go-difflib/difflib"
)
func Check() {
dir := GetDir()
tmpDir := filepath.Join(os.TempDir(), "lazygit_cheatsheet")
err := os.RemoveAll(tmpDir)
if err != nil {
log.Fatalf("Error occurred while che... |
krishukr/cpp-code | src/GMOJ/1007/gmoj-1007-b-0.cpp | #include <cstdio>
#include <iomanip>
#include <iostream>
typedef long long ll;
template <typename T>
T read();
int main() {
std::ios::sync_with_stdio(false);
ll x = read<ll>(), y = read<ll>(), ans = 0, l, r;
ll n = std::min(x, y);
for (l = 1; l <= n; l = r + 1) {
r = x / (x / l);
an... |
kirbo/slacky | src/component/A/A.js | import React from 'react';
import PropTypes from 'prop-types';
import { openExternal } from '../../assets/utils';
/**
* Handle onClick event.
* @param {event} event - Onclick event
*/
const handleClick = event => {
if (event.target.dataset.external === 'true') {
event.preventDefault();
openExternal(event... |
anthonybishopric/p2 | Godeps/_workspace/src/github.com/hashicorp/go-reap/reap_stub.go | // +build windows solaris
package reap
// IsSupported returns true if child process reaping is supported on this
// platform. This Windows version always returns false.
func IsSupported() bool {
return false
}
// ReapChildren is not supported on Windows so this always returns right away.
func ReapChildren(pids PidC... |
cgu101/Voogasalad | src/data/XMLManager.java | package data;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.io.xml.DomDriver;
import authoring.model.game.Game;
import authoring.model.level.Level;
import engine.State;
import ... |
HenryLong/Android_busybox | busybox-1.28.0/include/config/uniq.h | #define CONFIG_UNIQ 1
|
Grosskopf/openoffice | main/xmloff/source/text/XMLTextCharStyleNamesElementExport.cxx | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... |
remyagrv/ictak-website-mern | backend/src/controller/partnershipController.js | <gh_stars>0
const Partnership = require("../model/PartnershipInfo");
const sendEmail = require("../helpers/sendmail");
const convertJsonToExcel = require("../helpers/convertToExcel");
//Partnership reg. application posting
const postPartnershipAppl = (req, res) => {
try {
var item = {
fullname:... |
semisiu/hermes | hermes-common/src/main/java/pl/allegro/tech/hermes/common/di/factories/CuratorClientFactory.java | <filename>hermes-common/src/main/java/pl/allegro/tech/hermes/common/di/factories/CuratorClientFactory.java<gh_stars>0
package pl.allegro.tech.hermes.common.di.factories;
import com.google.common.primitives.Ints;
import com.google.common.util.concurrent.ThreadFactoryBuilder;
import org.apache.curator.framework.CuratorF... |
qwqVictor/netfwd | utils/__init__.py | <reponame>qwqVictor/netfwd<gh_stars>0
from utils.parse_yaml import parse_yaml
from utils.get_free_port import get_free_port
from utils.punycode import punycode_encode |
miniatimat/TEG_JAVA | src/main/test/edu/fiuba/algo3/modelo/TestTurnoRefuerzo.java | package edu.fiuba.algo3.modelo;
import edu.fiuba.algo3.modelo.TurnoRefuerzo.TurnoRefuerzo;
import edu.fiuba.algo3.modelo.excepciones.*;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
import static org.junit.jupiter.api.Assertions.*;
import static edu.fiuba.al... |
WWWCourses/PythonCourseNetIT-Slides | pages/themes/DBMS-Lecture2/examples/mongo_CRUD.py | import pymongo
# ------------------------- Connect to MongoDB Server ------------------------ #
# connect to MongoDB server:
client = pymongo.MongoClient("mongodb://localhost:27017")
# ----------------------- Switch context to a database ----------------------- #
# get "python_course" database:
db = client.python_cou... |
ly1012/qa-edu-java-all | unittest-testng/src/test/java/com/liyun/qa/edu/testng/annotations/test/TestGroup.java | <gh_stars>0
package com.liyun.qa.edu.testng.annotations.test;
import org.testng.Assert;
import org.testng.annotations.Test;
/**
* @Test 注解 group 属性测试
*/
public class TestGroup {
@Test(groups = { "functest" })
public void testMethod3() {
System.err.println("groups = { functest }");
}
@Test(groups = { ... |
Yurets2000/yurets2000.github.io | Lab7/eshop-app/src/main/java/com/yube/model/dto/Offering.java | package com.yube.model.dto;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import java.util.List;
@Data
@ToString(exclude = {"products"}, callSuper = true)
@EqualsAndHashCode(exclude = {"products"}, callSuper = true)
@JsonIgn... |
billionshang/gem5 | build/x86/python/m5/internal/NetworkLink_vector.py.cc | <filename>build/x86/python/m5/internal/NetworkLink_vector.py.cc
#include "sim/init.hh"
namespace {
const uint8_t data_m5_internal_NetworkLink_vector[] = {
120,156,205,92,125,104,36,103,25,127,102,246,35,183,123,201,
37,185,92,146,187,75,122,183,253,184,118,91,189,75,191,174,
31,182,92,173,215,90,90,245,10... |
navikt/fas | src/main/java/no/nav/aura/envconfig/util/Consumer.java | package no.nav.aura.envconfig.util;
@SuppressWarnings("serial")
public abstract class Consumer<T> extends SerializableFunction<T, Void> {
public abstract void perform(T t);
public final Void process(T t) {
perform(t);
return null;
}
}
|
jnthn/intellij-community | python/testData/refactoring/pullup/abstractMethodPy3AddMeta/SuperClass.after.py | from abc import object, ABCMeta, abstractmethod
class Parent(object, metaclass=ABCMeta):
@abstractmethod
def my_method(self, foo):
"""
Eats eggs
:param foo: eggs
"""
pass
@classmethod
@abstractmethod
def my_class_method():
pass |
zealoussnow/chromium | chrome/browser/enterprise/connectors/device_trust/signals/decorators/common/mock_signals_decorator.h | // Copyright 2021 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_ENTERPRISE_CONNECTORS_DEVICE_TRUST_SIGNALS_DECORATORS_COMMON_MOCK_SIGNALS_DECORATOR_H_
#define CHROME_BROWSER_ENTERPRISE_CONNECTORS... |
sjzeil/AlgAE | algae-client-server/src/main/java/edu/odu/cs/AlgAE/Client/DataViewer/DataCanvas.java | <reponame>sjzeil/AlgAE
package edu.odu.cs.AlgAE.Client.DataViewer;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent... |
LewJun/histruts1 | src/test/java/PermissionServiceTest.java | <filename>src/test/java/PermissionServiceTest.java
import com.microandroid.modules.sys.dto.Permission;
import com.microandroid.modules.sys.service.IPermissionService;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;
public class PermissionServiceTest extends... |
ptahchiev/thymeleaf-spring | thymeleaf-spring4/src/main/java/org/thymeleaf/spring4/processor/AbstractSpringFieldTagProcessor.java | <filename>thymeleaf-spring4/src/main/java/org/thymeleaf/spring4/processor/AbstractSpringFieldTagProcessor.java
/*
* =============================================================================
*
* Copyright (c) 2011-2018, The THYMELEAF team (http://www.thymeleaf.org)
*
* Licensed under the Apache License, Ver... |
B2M-Software/SMG2.0 | webrest.test/src/test/java/org/fortiss/smg/webrest/test/TestNonce.java | <reponame>B2M-Software/SMG2.0
package org.fortiss.smg.webrest.test;
import java.util.Date;
import org.fortiss.smg.webrest.impl.Constants;
import org.fortiss.smg.webrest.impl.LoginFilter;
import org.junit.Assert;
import org.junit.Test;
public class TestNonce {
@Test
public void checkNonces() {
long ... |
snowcrystall/gitaly_emg | internal/cache/cache.go | <filename>internal/cache/cache.go
package cache
import (
"context"
"io"
"gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb"
"google.golang.org/protobuf/proto"
)
// Cache is a stream-oriented cache which stores RPC responses keyed by protobuf requests.
type Cache interface {
Streamer
Invalidator
}
// Streamer... |
gtechx/cloud | src/chatserver/main.go | <reponame>gtechx/cloud<gh_stars>0
package main
import (
"encoding/json"
"errors"
"flag"
"fmt"
"gtdb"
"io"
"io/ioutil"
"net"
"os"
"os/signal"
"time"
"github.com/gtechx/base/collections"
. "github.com/gtechx/base/common"
"github.com/gtechx/base/gtnet"
)
var quit chan os.Signal
//var userOLMapAll = map[u... |
kaio7/arquitetura-de-software | FabricaAbstrata/src/br/ifrn/tads/cliente/ClienteFabrica.java | <filename>FabricaAbstrata/src/br/ifrn/tads/cliente/ClienteFabrica.java<gh_stars>0
package br.ifrn.tads.cliente;
import br.ifrn.tads.abstratos.Chassi;
import br.ifrn.tads.abstratos.FabricaAutomoveis;
import br.ifrn.tads.abstratos.Motor;
import br.ifrn.tads.abstratos.Roda;
public class ClienteFabrica {
publi... |
windystrife/UnrealEngine_NVIDIAGameWork | Engine/Source/ThirdParty/IntelTBB/IntelTBB-4.0/src/test/test_task_steal_limit.cpp | <filename>Engine/Source/ThirdParty/IntelTBB/IntelTBB-4.0/src/test/test_task_steal_limit.cpp
/*
Copyright 2005-2012 Intel Corporation. All Rights Reserved.
The source code contained or described herein and all documents related
to the source code ("Material") are owned by Intel Corporation or its
suppl... |
DannyVanHalen/URJC-Academy | urjc-academy/src/main/java/com/dad/urjcacademy/controller/URJCAcademyController.java | <gh_stars>1-10
package com.dad.urjcacademy.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMap... |
ryanloney/openvino-1 | src/core/tests/type_prop/deformable_psroi_pooling.cpp | <reponame>ryanloney/openvino-1
// Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "gtest/gtest.h"
#include "ngraph/ngraph.hpp"
#include "util/type_prop.hpp"
using namespace std;
using namespace ngraph;
TEST(type_prop, deformable_psroi_pooling_no_offsets_group_size_3) {
... |
4rsenaltt/rangingram | java/org/telegram/messenger/VideoEditedInfo.java | <gh_stars>0
/*
* This is the source code of Telegram for Android v. 3.x.x.
* It is licensed under GNU GPL v. 2 or later.
* You should have received a copy of the license in this archive (see LICENSE).
*
* Copyright <NAME>, 2013-2015.
*/
package org.telegram.messenger;
import java.util.Locale;
public class Vide... |
mynaparrot/plugNmeet-server | internal/models/waiting_room.go | <reponame>mynaparrot/plugNmeet-server
package models
import (
"database/sql"
"encoding/json"
"errors"
)
type userWaitingRoomModel struct {
db *sql.DB
roomService *RoomService
}
func NewWaitingRoomModel() *userWaitingRoomModel {
return &userWaitingRoomModel{
roomService: NewRoomService(),
}
}
type ... |
tvast/smart-diagnostic | dist/conversational-form.js | (function (root) {
// Store setTimeout reference so promise-polyfill will be unaffected by
// other code modifying setTimeout (like sinon.useFakeTimers())
var setTimeoutFunc = setTimeout;
function noop() {}
// Polyfill for Function.prototype.bind
function bind(fn, thisArg) {
return function () {
... |
SepioSystems/demisto-sdk | demisto_sdk/commands/init/templates/HelloWorld/HelloWorld_test.py | from .HelloWorld import Client, say_hello_command, say_hello_over_http_command
def test_say_hello():
client = Client(base_url='https://test.com', verify=False, auth=('test', 'test'))
args = {
'name': 'Dbot'
}
_, outputs, _ = say_hello_command(client, args)
assert outputs['hello'] == 'Hell... |
krevelen/coala | coala-core/src/test/java/io/coala/experimental/embody/RepresentingCapability.java | /* $Id$
* $URL: https://dev.almende.com/svn/abms/coala-common/src/main/java/com/almende/coala/service/embodier/EntityEmbodierService.java $
*
* Part of the EU project Adapt4EE, see http://www.adapt4ee.eu/
*
* @license
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file... |
dweng0/game | node_modules/@babylonjs/core/Meshes/Compression/dracoCompression.js | <reponame>dweng0/game
import { Tools } from "../../Misc/tools";
import { WorkerPool } from '../../Misc/workerPool';
import { VertexData } from "../../Meshes/mesh.vertexData";
function createDecoderAsync(wasmBinary) {
return new Promise(function (resolve) {
DracoDecoderModule({ wasmBinary: wasmBinary })... |
tottijbzy/urly | prettier.config.js | module.exports = {
// https://prettier.io/docs/en/options.html#print-width
printWidth: 80,
// https://prettier.io/docs/en/options.html#tabs
useTabs: true,
// https://prettier.io/docs/en/options.html#semicolons
semi: true,
// https://prettier.io/docs/en/options.html#quotes
singleQuote: false,
// https://pre... |
hoolatech/datarouter-1 | datarouter-task-tracker/src/main/java/io/datarouter/tasktracker/scheduler/LongRunningTaskStatus.java | <reponame>hoolatech/datarouter-1
/*
* Copyright © 2009 HotPads (<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.apache.org/licenses/LICENSE-2.0
*
* Unless... |
zkaif/yunpian-stargate | yunpian-stargate-core/src/main/java/com/yunpian/stargate/core/process/IStargateClientEncod.java | <filename>yunpian-stargate-core/src/main/java/com/yunpian/stargate/core/process/IStargateClientEncod.java<gh_stars>0
package com.yunpian.stargate.core.process;
import com.yunpian.stargate.core.context.ProducerContext;
import com.yunpian.stargate.core.vo.StargateMessage;
/**
* Created with IntelliJ IDEA. User: ZhouKa... |
zhuangsc/Plasma-ompss1 | core_blas-qwrapper/qwrapper_cgetrip.c | <gh_stars>0
/**
*
* @file qwrapper_cgetrip.c
*
* PLASMA InPlaceTransformation module
* PLASMA is a software package provided by Univ. of Tennessee,
* Univ. of California Berkeley and Univ. of Colorado Denver
*
* This work is the implementation of an inplace transformation
* based on the GKK algorithm by <... |
kekshd/keks | app/controllers/text_storage_controller.rb | <gh_stars>1-10
# encoding: utf-8
class TextStorageController < ApplicationController
before_filter :require_admin
def update
@message = (TextStorage.find(params[:id])) rescue nil
if @message && @message.update_attributes(params[:text_storage])
flash[:success] = "Mitteilung aktualisiert"
redir... |
othuntgithub/AdditionalEnderItems | src/main/java/com/hidoni/additionalenderitems/setup/ModItemGroup.java | <filename>src/main/java/com/hidoni/additionalenderitems/setup/ModItemGroup.java<gh_stars>0
package com.hidoni.additionalenderitems.setup;
import net.minecraft.item.ItemGroup;
import net.minecraft.item.ItemStack;
import java.util.function.Supplier;
public class ModItemGroup extends ItemGroup
{
private final Suppl... |
LETG/geoauth | app/decorators/user_decorator.rb | class UserDecorator < Draper::Decorator
include Draper::LazyHelpers
delegate_all
#def name
# [ first_name, last_name ].compact.join(' ')
#end
def created_date
created_at.strftime('%d/%m/%Y')
end
def roles_count
roles.count
end
# Define presentation-specific methods here. Helpers are ac... |
hjc851/Dataset2-HowToDetectAdvancedSourceCodePlagiarism | Variant Programs/3-1/9/Islander.java | public class Islander {
private String atollNominate;
private int enumerateCultivators;
public Islander(String peiConstitute, int numerousGardeners) {
this.atollNominate = peiConstitute;
this.enumerateCultivators = numerousGardeners;
}
public void early() {
for (int i = 0; i < enumerateCultivat... |
comicgenie/rdf | src/main/java/org/comicwiki/gcd/tables/PublisherTable.java | /*******************************************************************************
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership. ComicGenie licenses this
* file to you under the Apache License, Version 2.0 (the "License");
* you may not use this file e... |
HunYahiko/smart-parking-system | sps-backend/src/main/java/com/utm/stanislav/parkingapp/configuration/deserializer/ParkingStatusJsonDeserializer.java | package com.utm.stanislav.parkingapp.configuration.deserializer;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
import com.fasterxml.jackson.da... |
nml5566/DuneBoardGame | node_modules/Dune/Map/ShieldWall.js | <reponame>nml5566/DuneBoardGame
module.exports = ShieldWall;
var BaseTerritory = require("./Base.js");
ShieldWall.prototype = new BaseTerritory();
ShieldWall.prototype.constructor = ShieldWall;
function ShieldWall() {
this.name = "Shield Wall";
var neighbors = new Array(
"HoleInTheRock", "SihayaRidge", "Ga... |
antaljanosbenjamin/miscellaneous | tests/codility/MolybdenumTests.cpp | <reponame>antaljanosbenjamin/miscellaneous
#include <catch2/catch.hpp>
#include "Molybdenum.hpp"
struct TestInfo {
std::vector<int> A;
int K;
std::vector<int> expectedLeaders;
};
TEST_CASE("General") {
auto testInfo =
// NOLINTNEXTLINE(readability-magic-numbers,google-build-using-namespace)
GENER... |
comprakt/comprakt-fuzz-tests | output/bbfa2733d9eb4195bb64ede3106a9d7c.java | <filename>output/bbfa2733d9eb4195bb64ede3106a9d7c.java
class KVf {
}
class xjVK4x9Ny8Ah {
public void[][][] PjbCRVgT;
public static void ERTEhEbJYxGK (String[] PYfpR82g) {
if ( -true.WS4gL7oCXiXoZ) ;
;
}
public fnUGlB7 Z_rpT;
public static void xeA9bhFnYVD (String[] dJUi_KjeKS) {... |
lukmccall/SudokuSolver | Web/RecognizerLib/src/main/java/pl/sudokusolver/recognizerlib/extractors/digits/DigitsExtractStrategy.java | package pl.sudokusolver.recognizerlib.extractors.digits;
import org.opencv.core.Mat;
import java.util.Optional;
/**
* Abstract interpretation of digit extraction algorithm.
*/
public interface DigitsExtractStrategy {
/**
* Looking for digit in given image.
* @param cell matrix with sudoku's cell. Thi... |
theumitoner/dx2 | app/components/Tables/tableParts/EditableCell.js | <reponame>theumitoner/dx2<gh_stars>1-10
import React from 'react';
import classNames from 'classnames';
import { withStyles } from '@material-ui/core/styles';
import PropTypes from 'prop-types';
import TableCell from '@material-ui/core/TableCell';
import TextField from '@material-ui/core/TextField';
import css from 'da... |
MirrorTown/wayne | src/backend/models/tekton.go | <filename>src/backend/models/tekton.go
package models
import (
"time"
)
const (
TektonStatusFail = -1
TektonStatusSuc = 1
TektonStatusCheck = 0
TableNameTekton = "tekton"
)
type tektonModel struct{}
type Tekton struct {
Id int64 `orm:"auto" json:"id,omitempty"`
Name string `orm:"u... |
Infiniverse/v-ol3 | gwt-ol3/src/main/java/org/vaadin/gwtol3/client/tilegrid/XYZTileGridOptions.java | package org.vaadin.gwtol3.client.tilegrid;
import org.vaadin.gwtol3.client.Extent;
/**
* Created by mjhosio on 23/02/15.
*/
public class XYZTileGridOptions extends TileGridOptions {
protected XYZTileGridOptions(){
}
public static final native XYZTileGridOptions create()/*-{
return {};
}-*/;
public... |
sara-nl/data-exchange | tasker/tasker/watcher/src/watcher/Watcher.scala | package watcher
import cats.data.Kleisli
import cats.effect.{IO, Resource}
import doobie.util.transactor.Transactor
import io.chrisdavenport.log4cats.slf4j.Slf4jLogger
import nl.surf.dex.database.{Permissions, Tasks}
import nl.surf.dex.messaging.Messages
import nl.surf.dex.messaging.Messages.StartContainer
import nl.s... |
sly1061101/ECE391_OS | student-distrib/pit.h | #ifndef _PIT_H
#define _PIT_H
#include "lib.h"
#ifndef ASM
/* Programmable Interval Timer Initialization */
extern void pit_init (int32_t freq);
/* Pit interrupt handler*/
extern void pit_handler(void);
#endif
#endif
|
zipated/src | third_party/mesa/src/src/mesa/drivers/dri/i965/brw_vs.h | <gh_stars>1000+
/*
Copyright (C) Intel Corp. 2006. All Rights Reserved.
Intel funded Tungsten Graphics (http://www.tungstengraphics.com) to
develop this 3D driver.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"),... |
markusschuettler/middy | packages/error-logger/__tests__/index.js | const test = require('ava')
const sinon = require('sinon')
const middy = require('../../core/index.js')
const errorLogger = require('../index.js')
test('It should log errors and propagate the error', async (t) => {
const error = new Error('something bad happened')
const logger = sinon.spy()
const handler = midd... |
EUye9IM/Block_cipher | include/X917.h | <gh_stars>0
#pragma once
#include<NTL/ZZ.h>
#include<bitset>
// 随机 返回 m*64 位 / 8 字节 二进制
NTL::ZZ X917rand(std::bitset<64> const&seed,int m); |
cragkhit/elasticsearch | references/bcb_chosen_clones/selected#583523#26#34.java | void shuffle() {
Random random = new Random();
for (int i = cards.size() - 1; i > 0; i--) {
int j = random.nextInt(i + 1);
Card c = cards.get(j);
cards.set(j, cards.get(i));
cards.set(i, c);
}
}
|
bkvalexey/aiogram_dialog | aiogram_dialog/widgets/media/base.py | from typing import Optional, Any
from aiogram_dialog.manager.manager import DialogManager
from aiogram_dialog.utils import MediaAttachment
from aiogram_dialog.widgets.when import Whenable
class Media(Whenable):
async def render_media(
self,
data: Any,
manager: DialogManager
... |
data-provider/core | test-e2e/nodejs/cjs/data/books/providers.js | <reponame>data-provider/core
const MockProvider = require("../mock-provider");
const BOOKS = [
{
id: 1,
author: 1,
title: "1984",
},
{
id: 2,
author: 1,
title: "Animal Farm",
},
{
id: 3,
author: 2,
title: "Farenheit 451",
},
{
id: 4,
author: 3,
title: "Brav... |
bingtw/real.taiwanstat.com | vegetable-price/workspace/mobileproj/js/MobilePage.js | <filename>vegetable-price/workspace/mobileproj/js/MobilePage.js
MobilePage = {
list: {},
appendCvItem:
function(){
for(var i = 0; i < DataProcessM.vagNum; i++){
var name = DataProcessM.vagNameMap[DataProcessM.vagIdList[i]];
var id = DataProcessM.vagIdList[i];
$("#chooseVagetable").append("<div cla... |
saga810203/jfw | jfw-util/src/main/java/org/jfw/util/bean/define/FixedValueDefine.java | <gh_stars>0
package org.jfw.util.bean.define;
import org.jfw.util.bean.BeanFactory;
public class FixedValueDefine extends ValueDefine{
private Object value;
@Override
public void init(BeanFactory bf, String name, Class<?> clazz, boolean isRef, String val) throws ConfigException {
this.name = name;
... |
metehkaya/Algo-Archive | Problems/AtCoder/Contests/Beginner_Contests/Contest_188/D.Snuke_Prime.cpp | <filename>Problems/AtCoder/Contests/Beginner_Contests/Contest_188/D.Snuke_Prime.cpp
#include <bits/stdc++.h>
#define fi first
#define se second
#define pb push_back
using namespace std;
typedef long long LL;
LL ans;
int n,c;
map<int,LL> mp;
int main() {
scanf("%d%d",&n,&c);
for( int i = 0 , x,y,z ; i < n ; i++ ) {
... |
nandvar/Sattva-Care | public_html/cloud/data/updater-ocbuvdlb4ccs/backups/nextcloud-11.0.0.10/apps/files_texteditor/l10n/hu_HU.js | OC.L10N.register(
"files_texteditor",
{
"This file is too big to be opened. Please download the file instead." : "Ez a fájl túl nagy a megnyitáshoz. Kérjük, helyette töltsd le a fájlt.",
"Cannot read the file." : "Nem olvasható a fájl!",
"Invalid file path supplied." : "Helytelen elérési utat adott ... |
rocky341/Gaffer | rest-api/core-rest/src/test/java/uk/gov/gchq/gaffer/rest/ExampleGeneratorTest.java | <gh_stars>1-10
/*
* Copyright 2017-2020 Crown Copyright
*
* 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 appl... |
RubyAfterAll/material | lib/material/rspec/custom_matchers/have_material_component.rb | # frozen_string_literal: true
# RSpec matcher that tests usages of `.register_component`
#
# class ExampleMaterial < ApplicationMaterial
# register_component :foo
# register_component :bar, max_length: 10
# end
#
# RSpec.describe ExampleMaterial do
# it { is_expected.to have_material_comp... |
ypsvlq/dale | gale/glob.c | #include <string.h>
#include <stdlib.h>
#include "common.h"
#include "host.h"
#include "object.h"
static int qsortobj(const void *a, const void *b) {
return strcmp((*(struct obj **)a)->str, (*(struct obj **)b)->str);
}
static bool match(char *pattern, const char *str) {
char *p, *p2, *p3;
size_t sz;
bool greedy;
... |
truthiswill/lombok-intellij-plugin | src/main/java/de/plushnikov/intellij/plugin/processor/handler/singular/SingularCollectionHandler.java | package de.plushnikov.intellij.plugin.processor.handler.singular;
import com.intellij.psi.CommonClassNames;
import com.intellij.psi.PsiManager;
import com.intellij.psi.PsiType;
import com.intellij.psi.PsiVariable;
import de.plushnikov.intellij.plugin.psi.LombokLightMethodBuilder;
import de.plushnikov.intellij.plugin.u... |
franz1981/infinispan | query/src/main/java/org/infinispan/query/impl/massindex/MassIndexerProgressNotifier.java | <gh_stars>0
package org.infinispan.query.impl.massindex;
import java.util.concurrent.atomic.AtomicReference;
import java.util.concurrent.atomic.LongAdder;
import org.hibernate.search.engine.reporting.EntityIndexingFailureContext;
import org.hibernate.search.engine.reporting.FailureHandler;
import org.hibernate.search... |
MacSourcePorts/OpenJKDF2 | src/Engine/sithSprite.h | <gh_stars>0
#ifndef _SITHSPRITE_H
#define _SITHSPRITE_H
#include "types.h"
#include "globals.h"
#define sithSprite_Startup_ADDR (0x004F2130)
#define sithSprite_Shutdown_ADDR (0x004F2170)
#define sithSprite_Load_ADDR (0x004F2190)
#define sithSprite_FreeEntry_ADDR (0x004F2330)
#define sithSprite_LoadEntry_ADDR (0x004F2... |
SAFE-anwang/safe | src/app/app.cpp | <gh_stars>10-100
#include "app.h"
#include "app.pb.h"
#include "main.h"
#include "validation.h"
#include "utilstrencodings.h"
#include <algorithm>
using namespace std;
uint16_t g_nAppHeaderVersion = 1;
uint16_t g_nAppDataVersion = 1;
string g_strSafeAssetId = "cfe2450bf016e2ad8130e4996960a32e0686c1704b62a6ad02e49ee8... |
subelsky/sproutcore-abbot | lib/sproutcore/builders/base.rb | module SC
# Builder classes implement the more complex algorithms for building
# resources in SproutCore such as building HTML, JavaScript or CSS.
# Builders are usually invoked from within build tasks which are, in-turn,
# selected by the manifest.
#
module Builder
# The base class extende... |
pcsx-redux/nugget | openbios/cdrom/statemachine.h | /*
MIT License
Copyright (c) 2020 PCSX-Redux authors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, pub... |
Pandrex247/patched-src-eclipselink | sdo/eclipselink.sdo.test/src/org/eclipse/persistence/testing/sdo/helper/xmlhelper/loadandsave/substitutiongroups/SingleValueNonBaseTypeTestCases.java | /*******************************************************************************
* Copyright (c) 1998, 2015 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
... |
augsun/JXEfficient | JXEfficient/Classes/JXEfficient/UIView/JXTagLayout/JXTagFlowLayout.h | <reponame>augsun/JXEfficient
//
// JXTagFlowLayout.h
// JXEfficient
//
// Created by augsun on 2/16/18.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
/**
UICollectionView 的 itemCell 不等宽 flowLayout.
*/
@interface JXTagFlowLayout : UICollectionViewFlowLayout
@property (nonatomic, assign) CGFloat itemHeight;... |
zyk6271/SYR_NEW | applications/rtc.c | #include <rtthread.h>
#include <rtdevice.h>
#include <stm32l4xx.h>
#include "pin_config.h"
#include "Flashwork.h"
#include "lcd_display.h"
#include "adcwork.h"
#define DBG_TAG "RTC"
#define DBG_LVL DBG_LOG
#include <rtdbg.h>
rt_timer_t RTC_Timer=RT_NULL;
rt_thread_t RTC_Task=RT_NULL;
rt_thread_t RTC_Check_Thread=RT_N... |
egraba/vbox_openbsd | VirtualBox-5.0.0/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetworkDetailsNAT.h | /* $Id: $ */
/** @file
* VBox Qt GUI - UIGlobalSettingsNetworkDetailsNAT class declaration.
*/
/*
* Copyright (C) 2009-2013 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it and/... |
gitoscc/simples | simple/src/com/google/devtools/simple/runtime/components/TextBox.java | /*
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
cquiroz/ocs | bundle/edu.gemini.sp.vcs/src/main/scala/edu/gemini/sp/vcs2/MergeContext.scala | package edu.gemini.sp.vcs2
import edu.gemini.pot.sp.version._
import edu.gemini.pot.sp.{ISPNode, ISPProgram, SPNodeKey}
import edu.gemini.spModel.rich.pot.sp._
import scalaz._
import Scalaz._
/** Provides a common interface to queries we must make during the merge process
* about the local and remote versions of a... |
plimkilde/DHMQC | qc/roof_ridge_alignment.py | <reponame>plimkilde/DHMQC
# Copyright (c) 2015-2016, Danish Geodata Agency <<EMAIL>>
# Copyright (c) 2016, Danish Agency for Data Supply and Efficiency <<EMAIL>>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyri... |
barsnes-group/csf-pr | src/main/java/no/uib/probe/csf/pr/touch/view/core/TrendSymbol.java | <reponame>barsnes-group/csf-pr
package no.uib.probe.csf.pr.touch.view.core;
import com.vaadin.ui.VerticalLayout;
import java.util.HashMap;
/**
* This class represents trend symbol layouts (arrow-up,diamond and arrow-down)
* used in protein trend line chart and spark line in quant protein table.
*
* @author <NAME>... |
rohansachdeva1990/java-programming | concurrency/executor-framework/src/main/java/com/rohan/java/concurrency/terminating/executors/TerminatingExecutorTasksFirstWay.java | package com.rohan.java.concurrency.terminating.executors;
import com.rohan.java.concurrency.common.factory.NamedThreadFactory;
import com.rohan.java.concurrency.common.tasks.FactorialTaskA;
import com.rohan.java.concurrency.common.tasks.LoopTaskE;
import java.util.concurrent.ExecutorService;
import java.util.concurr... |
uploadexpress/app | helpers/request.go | package helpers
import (
"encoding/json"
"io"
"io/ioutil"
)
func GetRequestParams(body io.ReadCloser) (map[string]interface{}, error) {
byteBody, err := ioutil.ReadAll(body)
if err != nil {
return nil, err
}
var params map[string]interface{}
err = json.Unmarshal(byteBody, ¶ms)
if err != nil {
return... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.