identifier stringlengths 42 383 | collection stringclasses 1
value | open_type stringclasses 1
value | license stringlengths 0 1.81k | date float64 1.99k 2.02k ⌀ | title stringlengths 0 100 | creator stringlengths 1 39 | language stringclasses 157
values | language_type stringclasses 2
values | word_count int64 1 20k | token_count int64 4 1.32M | text stringlengths 5 1.53M | __index_level_0__ int64 0 57.5k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/wilzbach/dstep/blob/master/test.d | Github Open Source | Open Source | BSL-1.0 | 2,018 | dstep | wilzbach | D | Code | 969 | 3,320 | module test;
import std.process;
import std.stdio;
import std.file;
import std.path;
import std.algorithm;
import std.string;
import std.exception;
int main ()
{
return TestRunner().run;
}
struct TestRunner
{
private string wd;
int run ()
{
int result = 0;
auto matrix = setup();
... | 2,247 |
https://github.com/vshank77/graphonomy/blob/master/graphonomy-core/src/test/java/org/polyglotted/graphonomy/domain/PropertySettersTest.java | Github Open Source | Open Source | Apache-2.0 | null | graphonomy | vshank77 | Java | Code | 121 | 447 | package org.polyglotted.graphonomy.domain;
import java.util.Date;
import java.util.List;
import mockit.Expectations;
import mockit.Mocked;
import org.junit.Test;
import org.neo4j.graphdb.PropertyContainer;
import org.polyglotted.graphonomy.model.GraphProperty;
import org.polyglotted.graphonomy.model.GraphProperty.Pr... | 36,041 |
https://github.com/fallenpartime/sparrow-manage/blob/master/app/Http/Admin/Actions/Master/IndexAction.php | Github Open Source | Open Source | MIT | 2,018 | sparrow-manage | fallenpartime | PHP | Code | 271 | 1,071 | <?php
/**
* 管理员列表
* Date: 2018/10/3
* Time: 19:59
*/
namespace App\Http\Admin\Actions\Master;
use Admin\Action\BaseAction;
use Admin\Config\AdminConfig;
use Common\Models\System\AdminUserInfo;
class IndexAction extends BaseAction
{
public function run()
{
$httpTool = $this->getHttpTool();
... | 10,031 |
https://github.com/sumup-oss/circuit-ui/blob/master/packages/circuit-ui/components/TopNavigation/components/UtilityLinks/UtilityLinks.spec.tsx | Github Open Source | Open Source | Apache-2.0 | 2,023 | circuit-ui | sumup-oss | TSX | Code | 218 | 470 | /**
* Copyright 2021, SumUp Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wri... | 18,905 |
https://github.com/bcgov/EDUC-PEN-SERVICES-API/blob/master/api/src/main/resources/db/migration/V1.0.10__PEN_VALIDATION_API.sql | Github Open Source | Open Source | Apache-2.0 | 2,021 | EDUC-PEN-SERVICES-API | bcgov | SQL | Code | 33 | 173 | INSERT INTO PEN_REQUEST_BATCH_VALIDATION_ISSUE_TYPE_CODE (CODE, LABEL, LEGACY_LABEL, DESCRIPTION, DISPLAY_ORDER,
EFFECTIVE_DATE,
EXPIRY_DATE, CREATE_USER, CREATE_DATE, UPDATE_USER,
... | 24,229 |
https://github.com/david942j/honest/blob/master/libexec/honest-git | Github Open Source | Open Source | Apache-2.0 | 2,018 | honest | david942j | Shell | Code | 553 | 1,355 | #!/usr/bin/env bash
#
# Usage: honest-git <repo> <destination> [-v <version>]
# honest-git github:david942j/honest /tmp/repo -v master
# Compatibility to macOS
[[ "$OSTYPE" == "darwin"* ]] && readlink() { echo $(cd $(dirname "$2") && pwd)/$(basename "$2"); }
SCRIPT_DIR="$(readlink -f "$(dirname "$0")")"
# Impo... | 26,735 |
https://github.com/ZacharyJoswick/CodeRx/blob/master/components/application/CodeRx/migrations/versions/36d5d081b3cc_added_class_construct_and_additonal_.py | Github Open Source | Open Source | MIT | 2,019 | CodeRx | ZacharyJoswick | Python | Code | 213 | 1,114 | """added class construct and additonal problem tracability
Revision ID: 36d5d081b3cc
Revises: 2c3d3b296ce5
Create Date: 2019-04-29 23:36:53.314303
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '36d5d081b3cc'
down_revision = '2c3d3b296ce5'
branch_labels = None... | 3,734 |
https://github.com/raylin/create-react-app/blob/master/packages/react-scripts/template/src/ducks/auth.js | Github Open Source | Open Source | MIT | null | create-react-app | raylin | JavaScript | Code | 185 | 587 | import { createDuck } from 'redux-duck';
import { fromJS } from 'immutable';
/**
* Duck
*/
const duck = createDuck('auth', 'app-name');
/**
* Action types
*/
const LOGIN = duck.defineType('LOGIN');
const LOGIN_SUCCESS = duck.defineType('LOGIN_SUCCESS');
const LOGIN_FAIL = duck.defineType('LOGIN_FAIL');
const LOG... | 1,674 |
https://github.com/fabiosiqueira12/socialwork/blob/master/_pages/home/index.php | Github Open Source | Open Source | MIT | 2,018 | socialwork | fabiosiqueira12 | PHP | Code | 631 | 2,662 | <?php include_once '_pages\componentes\header.php'; ?>
<section class="posts">
<div class="container">
<div class="row" style="display : flex;justify-content : center;">
<div class="col-md-10 col-sm-12 col-12">
<div class="container-branco">
<ul class="l... | 19,974 |
https://github.com/diamondlee7/waifu-motivator-plugin/blob/master/src/main/java/zd/zero/waifu/motivator/plugin/assets/RemoteAssetManager.kt | Github Open Source | Open Source | MIT | null | waifu-motivator-plugin | diamondlee7 | Kotlin | Code | 231 | 862 | package zd.zero.waifu.motivator.plugin.assets
import com.intellij.openapi.diagnostic.Logger
import zd.zero.waifu.motivator.plugin.platform.LifeCycleManager
import zd.zero.waifu.motivator.plugin.platform.UpdateAssetsListener
import zd.zero.waifu.motivator.plugin.tools.doOrElse
import java.net.URI
import java.nio.file.F... | 16,515 |
https://github.com/OTCGO/ont-browser/blob/master/serve/OntSynHandler/src/main/java/com/github/ontio/mapper/Oep8Mapper.java | Github Open Source | Open Source | MIT | 2,019 | ont-browser | OTCGO | Java | Code | 20 | 103 | package com.github.ontio.mapper;
import com.github.ontio.model.dao.Oep8;
import org.springframework.stereotype.Component;
import tk.mybatis.mapper.common.Mapper;
import java.util.List;
@Component
public interface Oep8Mapper extends Mapper<Oep8> {
List<Oep8> selectApprovedRecords();
} | 43,414 |
https://github.com/TaufanP/mobile-test/blob/master/src/components/organisms/PhraseInput/index.tsx | Github Open Source | Open Source | MIT | null | mobile-test | TaufanP | TypeScript | Code | 71 | 226 | import React from 'react';
import {Gap, Phrase} from '~components/atoms';
import {Field} from '~components/molecules';
import spaces from '~constants/spaces';
import {FieldProps} from '~types';
interface PhraseInputProps extends FieldProps {
label?: string;
error?: boolean;
errorMessage?: string;
}
const Phrase... | 44,089 |
https://github.com/StephanGerbeth/steal/blob/master/src/pages/sub/projects.vue | Github Open Source | Open Source | MIT | 2,019 | steal | StephanGerbeth | Vue | Code | 73 | 248 | <i18n>
{
"en": {
"test": "message23",
"hello": "hello world!"
},
"de": {
"test": "nachricht 123",
"hello": "hallo welt"
}
}
</i18n>
<template>
<div>
<headline :content="$t('test')" />
hello2 huhu234 {{ $t('configxyz') }}
{{ $t('test') }}
<br>
</div>
</template>
<script>
imp... | 45,432 |
https://github.com/keshavbhatt/ColorPie/blob/master/src/html/jtm/jquery.tinymodal.js | Github Open Source | Open Source | MIT | 2,020 | ColorPie | keshavbhatt | JavaScript | Code | 157 | 749 | /*!
* jQuery Tiny Modal
* @author: Cedric Ruiz
* https://github.com/elclanrs/jquery.tiny.modal
*/
(function($) {
var _defaults = {
buttons: [],
title: 'Alert',
html: '<p>Alert</p>',
Ok: $.noop,
Cancel: $.noop,
onOpen: $.noop,
onClose: $.noop,
clickOutside: true
};
$.tinyModal... | 49,841 |
https://github.com/alexlablaiks/zephyr/blob/master/samples/sensor/vl53l0x/src/main.c | Github Open Source | Open Source | Apache-2.0 | 2,022 | zephyr | alexlablaiks | C | Code | 84 | 351 | /*
* Copyright (c) 2017 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr.h>
#include <device.h>
#include <drivers/sensor.h>
#include <stdio.h>
#include <sys/printk.h>
void main(void)
{
struct device *dev = device_get_binding(DT_LABEL(DT_INST(0, st_vl53l0x)));
struct sensor_value va... | 27,094 |
https://github.com/xccheng/mars/blob/master/mars/scheduler/operands/base.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | mars | xccheng | Python | Code | 939 | 3,642 | # Copyright 1999-2020 Alibaba Group Holding Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 33,748 |
https://github.com/bahuy5696/shopware-dev/blob/master/custom/plugins/SwagLoginAjax/src/Resources/app/storefront/src/login-plugin/login-plugin.plugin.js | Github Open Source | Open Source | MIT | null | shopware-dev | bahuy5696 | JavaScript | Code | 62 | 218 | import HttpClient from 'src/service/http-client.service';
import Plugin from 'src/plugin-system/plugin.class';
export default class LoginPlugin extends Plugin {
init() {
this.onLoginSubmitEvent()
}
onLoginSubmitEvent() {
$('#loginSubmitBtn').click(function (e) {
e.preventDefaul... | 46,246 |
https://github.com/vcnt1/rails_api/blob/master/app/controllers/application_controller.rb | Github Open Source | Open Source | MIT | null | rails_api | vcnt1 | Ruby | Code | 21 | 72 | class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
before_action :set_variables
def set_variables
@user = User.exists?(1) ? User.find(1) : User.create(saldo: 100)
end
end
| 19,812 |
https://github.com/MassTransit/MassTransit/blob/master/src/Transports/MassTransit.AmazonSqsTransport/AmazonSqsTransport/TopicInfo.cs | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-free-unknown | 2,023 | MassTransit | MassTransit | C# | Code | 91 | 327 | namespace MassTransit.AmazonSqsTransport
{
using System;
using System.Threading;
using System.Threading.Tasks;
using Amazon.SimpleNotificationService;
using Amazon.SimpleNotificationService.Model;
public class TopicInfo :
IAsyncDisposable
{
readonly Lazy<IBatcher<PublishBat... | 43,554 |
https://github.com/pcaruan/nt2/blob/master/modules/core/include/nt2/core/functions/scalar/linspace.hpp | Github Open Source | Open Source | BSL-1.0 | 2,012 | nt2 | pcaruan | C++ | Code | 338 | 1,236 | //==============================================================================
// Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2011 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... | 46,191 |
https://github.com/zf020114/CHPDet/blob/master/src/eval_json_CenR.py | Github Open Source | Open Source | MIT | 2,022 | CHPDet | zf020114 | Python | Code | 550 | 3,508 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Jun 15 23:00:51 2020
@author: zf
"""
# import pycocotools.coco as coco
from pycocotools.coco import COCO
import os
import shutil
from tqdm import tqdm
import skimage.io as io
import matplotlib.pyplot as plt
import cv2
from PIL import Image, ImageDraw
im... | 14,167 |
https://github.com/davekinkead/bot-of-thrones/blob/master/lib/bots/ygritte.js | Github Open Source | Open Source | MIT | 2,016 | bot-of-thrones | davekinkead | JavaScript | Code | 44 | 167 | var GotBot = require('./got-bot')
var Ygritte = new GotBot()
Ygritte.params.username = 'Ygritte'
Ygritte.params.icon_url = 'https://raw.githubusercontent.com/davekinkead/bots-of-thrones/master/media/ygritte.jpg'
Ygritte.trigger = function(data) {
// ... know ....
if (data.text && data.text.match(/\sknows?\??\s/i... | 6,720 |
https://github.com/stcarrez/ada-asf/blob/master/regtests/asf-applications-tests.adb | Github Open Source | Open Source | MIT, GPL-1.0-or-later, Apache-2.0 | 2,023 | ada-asf | stcarrez | Ada | Code | 2,793 | 9,797 | -----------------------------------------------------------------------
-- asf-applications-tests - ASF Application tests using ASFUnit
-- Copyright (C) 2011, 2012, 2015, 2017, 2021, 2022 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 ... | 8,495 |
https://github.com/Grosskopf/openoffice/blob/master/main/dbaccess/source/ui/inc/exsrcbrw.hxx | Github Open Source | Open Source | Apache-2.0 | 2,022 | openoffice | Grosskopf | C++ | Code | 391 | 1,587 | /**************************************************************
*
* 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... | 32,178 |
https://github.com/wowpotato/core-plot/blob/master/CorePlot/include/_CPTXYTheme.h | Github Open Source | Open Source | BSD-3-Clause, MIT | 2,021 | core-plot | wowpotato | C | Code | 1 | 13 | ../../CorePlot/_CPTXYTheme.h | 49,874 |
https://github.com/josh-kaplan/mbee/blob/master/scripts/migrate.js | Github Open Source | Open Source | MIT | null | mbee | josh-kaplan | JavaScript | Code | 117 | 282 | #!/usr/bin/env node
/**
* @classification UNCLASSIFIED
*
* @module scripts.migration
*
* @copyright Copyright (C) 2018, Lockheed Martin Corporation
*
* @license MIT
*
* @owner Connor Doyle
*
* @author Austin Bieber
*
* @description Supports the ability to migrate the database between specific
* versions.
... | 23,873 |
https://github.com/zparnold/aws-sdk-go-v2/blob/master/service/greengrass/api_op_AssociateRoleToGroup.go | Github Open Source | Open Source | Apache-2.0 | null | aws-sdk-go-v2 | zparnold | Go | Code | 271 | 1,061 | // Code generated by smithy-go-codegen DO NOT EDIT.
package greengrass
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
smithy "github.com/awslabs/smithy-go"
"github.com/awslabs/smithy-go/middleware"
smithyhttp "github.com/awslabs/smithy... | 19,362 |
https://github.com/foreverlms/MNN/blob/master/source/backend/cpu/CPUConvolution.hpp | Github Open Source | Open Source | Apache-2.0 | null | MNN | foreverlms | C++ | Code | 304 | 999 | //
// CPUConvolution.hpp
// MNN
//
// Created by MNN on 2018/07/15.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef CPUConvolution_hpp
#define CPUConvolution_hpp
#include <mutex>
#include "CPUBackend.hpp"
#include "core/ConvolutionCommon.hpp"
namespace MNN {
class CPUConvolution : public Execution {... | 39,144 |
https://github.com/Amin-MAG/CodART/blob/master/benchmark_projects/ganttproject/ganttproject/src/main/java/net/sourceforge/ganttproject/search/SearchDialog.java | Github Open Source | Open Source | MIT | 2,022 | CodART | Amin-MAG | Java | Code | 291 | 828 | /*
GanttProject is an opensource project management tool. License: GPL3
Copyright (C) 2011 Dmitry Barashev, GanttProject Team
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 3
of the L... | 19,742 |
https://github.com/Satont/Pauperial/blob/master/backend/src/typeorm/migrations/1633108605359-add_secrets.ts | Github Open Source | Open Source | MIT | 2,022 | Pauperial | Satont | TypeScript | Code | 46 | 140 | import { MigrationInterface, QueryRunner } from "typeorm";
export class addSecrets1633108605359 implements MigrationInterface {
name = "addSecrets1633108605359";
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "public"."links" ADD "secret" character varying`);
... | 46,468 |
https://github.com/Tim1104/beacon-bacon/blob/master/resources/views/auth/emails/password.blade.php | Github Open Source | Open Source | MIT | 2,018 | beacon-bacon | Tim1104 | Blade | Code | 34 | 145 | {{-- resources/views/emails/password.blade.php --}}
@if(config('mail.templates.reset.body'))
{!! str_replace('@{{ link }}', '<a href="' . url('password/reset/'.$token) . '">' . url('password/reset/'.$token) . '</a>', config('mail.templates.reset.body')) !!}
@else
{{__('Click here to reset your password:')}} <a href... | 7,181 |
https://github.com/christiandeange/Marathon/blob/master/marathon/src/main/java/com/deange/marathonapp/model/BaseModel.java | Github Open Source | Open Source | Apache-2.0 | 2,014 | Marathon | christiandeange | Java | Code | 34 | 121 | package com.deange.marathonapp.model;
import com.deange.marathonapp.controller.GsonController;
public abstract class BaseModel {
public String serialize() {
return GsonController.getInstance().toJson(this);
}
public static <T extends BaseModel> T deserialize(final String serializedData, final Cl... | 10,954 |
https://github.com/HelpMyStreet/communication-service/blob/master/CommunicationService/CommunicationService.AddressService/ConnectAddressService.cs | Github Open Source | Open Source | MIT | 2,021 | communication-service | HelpMyStreet | C# | Code | 265 | 1,040 | using CommunicationService.Core.Interfaces.Services;
using HelpMyStreet.Cache;
using HelpMyStreet.Contracts.AddressService.Request;
using HelpMyStreet.Contracts.AddressService.Response;
using HelpMyStreet.Contracts.Shared;
using HelpMyStreet.Utils.Enums;
using HelpMyStreet.Utils.Models;
using HelpMyStreet.Utils.Utils;... | 4,922 |
https://github.com/fasten-project/synthetic-testing-jars/blob/master/app/src/main/java/app/Car.java | Github Open Source | Open Source | Apache-2.0 | null | synthetic-testing-jars | fasten-project | Java | Code | 53 | 165 | package app;
import java.util.LinkedList;
import java.util.List;
import lib.BasicMotorVehicle;
import lib.MotorVehicle;
public class Car extends BasicMotorVehicle {
private final List<String> trunk = new LinkedList<>();
@Override
public String getName() {
return "Car";
}
public void add... | 37,258 |
https://github.com/omgftw/CodeGenerator/blob/master/dev.js | Github Open Source | Open Source | MIT | 2,018 | CodeGenerator | omgftw | JavaScript | Code | 105 | 314 | const path = require('path');
const childProcess = require('child_process');
const root = process.cwd();
console.log('Compiling Settings Files...');
// Compile settings files
childProcess.execSync('tsc generator.ts', {
cwd: root,
env: process.env,
stdio: 'inherit',
});
console.log('Launching Server...')... | 367 |
https://github.com/chalmersplasmatheory/DREAM/blob/master/src/Equations/RunawayFluid.cpp | Github Open Source | Open Source | MIT | 2,022 | DREAM | chalmersplasmatheory | C++ | Code | 3,812 | 14,674 | /**
* Implementation of a class that calculates and stores quantities related to the runaway growth rate,
* e.g. the effective critical field and runaway momentum, as well as avalanche and Dreicer growths etc.
*/
#include <string>
#include "DREAM/Equations/Scalar/WallCurrentTerms.hpp"
#include "DREAM/Equations/Con... | 30,632 |
https://github.com/bigur/store/blob/master/bigur/store/database.py | Github Open Source | Open Source | BSD-3-Clause | null | store | bigur | Python | Code | 344 | 1,182 | '''Поддержка операций с базой данных MongoDB.'''
__author__ = 'Gennady Kovalev <gik@bigur.ru>'
__copyright__ = '(c) 2016-2018 Business group for development management'
__licence__ = 'For license information see LICENSE'
from importlib import import_module
from typing import Union, Optional
from sys import modules
fr... | 37,818 |
https://github.com/ManuOjha/StageMonitor/blob/master/stagemonitor-tracing/src/main/java/org/stagemonitor/tracing/soap/AbstractTracingSOAPHandler.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | StageMonitor | ManuOjha | Java | Code | 282 | 1,200 | package org.stagemonitor.tracing.soap;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.stagemonitor.core.Stagemonitor;
import org.stagemonitor.tracing.TracingPlugin;
import java.io.ByteArrayOutputStream;
import java.nio.charset.Charset;
import java.util.Collections;
import java.util.Set;
import j... | 15,738 |
https://github.com/derailed/k9s/blob/master/internal/view/table_helper.go | Github Open Source | Open Source | Apache-2.0 | 2,023 | k9s | derailed | Go | Code | 219 | 686 | package view
import (
"encoding/csv"
"fmt"
"os"
"path/filepath"
"strings"
"time"
"github.com/derailed/k9s/internal/client"
"github.com/derailed/k9s/internal/config"
"github.com/derailed/k9s/internal/render"
"github.com/derailed/k9s/internal/ui"
"github.com/rs/zerolog/log"
)
func computeFilename(screenDump... | 50,021 |
https://github.com/herodotus-cloud/eurynome-cloud-ui/blob/master/packages/@herodotus/ui/src/modules/service/security/SysUserService.ts | Github Open Source | Open Source | MIT | 2,022 | eurynome-cloud-ui | herodotus-cloud | TypeScript | Code | 108 | 366 | import { BaseService, BaseSysEntity, RestResponse } from '@/lib/declarations';
import { _http, _constants, HttpContentType} from '@/lib/utils';
import { Singleton } from 'typescript-ioc';
import { SysRole } from './SysRoleService';
export interface SysUser extends BaseSysEntity {
userId: string;
userName: stri... | 43,644 |
https://github.com/piexlmax/element-plus/blob/master/packages/components/checkbox/src/checkbox-group.vue | Github Open Source | Open Source | MIT | 2,021 | element-plus | piexlmax | Vue | Code | 182 | 596 | <template>
<div class="el-checkbox-group" role="group" aria-label="checkbox-group">
<slot></slot>
</div>
</template>
<script lang="ts">
import {
defineComponent,
computed,
watch,
provide,
nextTick,
toRefs,
} from 'vue'
import { UPDATE_MODEL_EVENT } from '@element-plus/utils/constants'
import { isVa... | 21,325 |
https://github.com/azerothyang/dragon/blob/master/go.mod | Github Open Source | Open Source | Apache-2.0 | 2,022 | dragon | azerothyang | Go Module | Code | 85 | 629 | module dragon
go 1.16
require (
github.com/go-dragon/erro v0.0.4 // indirect
github.com/go-dragon/util v0.0.6
github.com/go-dragon/validator v1.0.0 // indirect
github.com/go-playground/validator/v10 v10.6.1
github.com/go-redis/redis v6.15.2+incompatible
github.com/gorilla/mux v1.7.3 // indirect
github.com/juli... | 5,428 |
https://github.com/enachi1046/coinstats/blob/master/shared/pages/NewsFeed/NewsFeed.js | Github Open Source | Open Source | MIT | null | coinstats | enachi1046 | JavaScript | Code | 438 | 1,869 | import React, { Component } from 'react';
import { connect } from 'react-redux';
import InfiniteScroll from 'react-infinite-scroller';
import { withRouter } from 'react-router-dom';
import Layout from 'layouts/Blank';
import { Helmet } from 'react-helmet';
import config from 'config';
import {
portfolios as portfolio... | 5,427 |
https://github.com/cwel-team/cwel/blob/master/gulpfile.js | Github Open Source | Open Source | Apache-2.0 | 2,018 | cwel | cwel-team | JavaScript | Code | 137 | 736 | const gulp = require('gulp');
const gulpSequence = require('gulp-sequence');
const multiSync = require('./gulp-lib/browser-sync-multi');
const rename = require('./gulp-lib/rename');
require('gulp-task-loader')('gulp-tasks');
gulp.task('rename', done => rename('.', done));
gulp.task('... | 7,113 |
https://github.com/garrethmartin/HSC_UML/blob/master/graph_clustering/code/dotnetcore/ConnComponents/SampleHandlerLib/SamplesHandler.cs | Github Open Source | Open Source | MIT | 2,021 | HSC_UML | garrethmartin | C# | Code | 101 | 286 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace SampleHandlerLib
{
public class SamplesHandler
{
public void SaveNorm(String filePath, ZScore z)
{
using (StreamWriter sw = new Stream... | 17,193 |
https://github.com/idogrusoz/pousse-cafe/blob/master/pousse-cafe-doc/src/main/java/poussecafe/doc/model/ModuleAnnotationChecker.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | pousse-cafe | idogrusoz | Java | Code | 120 | 501 | package poussecafe.doc.model;
import java.util.Optional;
import javax.lang.model.element.AnnotationMirror;
import javax.lang.model.element.AnnotationValue;
import javax.lang.model.element.Element;
import javax.lang.model.element.PackageElement;
import javax.lang.model.element.TypeElement;
import javax.lang.model.type.... | 2,490 |
https://github.com/Muthuramana/dfc-discoverskillsandcareers/blob/master/src/Dfc.AcceptanceTests/Features/Click_through_all_questions.feature.cs | Github Open Source | Open Source | MIT | 2,021 | dfc-discoverskillsandcareers | Muthuramana | C# | Code | 4,411 | 15,306 | // ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by SpecFlow (http://www.specflow.org/).
// SpecFlow Version:3.0.0.0
// SpecFlow Generator Version:3.0.0.0
//
// Changes to this file may cause incorrect behavior and wil... | 24,614 |
https://github.com/DavidHavl/Ajasta/blob/master/module/AjastaClient/src/Ajasta/Client/Repository/ClientRepository.php | Github Open Source | Open Source | BSD-2-Clause | 2,014 | Ajasta | DavidHavl | PHP | Code | 77 | 260 | <?php
namespace Ajasta\Client\Repository;
use Ajasta\Client\Entity\Client;
use Doctrine\ORM\EntityRepository;
class ClientRepository
{
/**
* @var EntityRepository
*/
protected $entityRepository;
/**
* @param EntityRepository $entityRepsitory
*/
public function __construct(EntityRe... | 35,597 |
https://github.com/ShigekiKarita/re2d/blob/master/source/re2d/stringpiece.d | Github Open Source | Open Source | BSD-3-Clause | 2,021 | re2d | ShigekiKarita | D | Code | 115 | 343 | module re2d.stringpiece;
import core.stdc.string : strlen;
extern (C++, "re2"):
extern (C++, class) struct StringPiece {
public:
@nogc nothrow pure:
alias const_pointer = const(char)*;
alias size_type = size_t;
enum npos = cast(size_t) -1;
@safe
this(const(char)* str, size_type len) {
data_ = str;
... | 16,994 |
https://github.com/aungaunghtet29/lara-control/blob/master/resources/views/home.blade.php | Github Open Source | Open Source | MIT | null | lara-control | aungaunghtet29 | PHP | Code | 138 | 611 | @extends('layouts.app')
@section('content')
<div class="row justify-content-center mt-3">
<div class="col-md-8">
<a href="{{ route('home.create') }}" class="btn btn-outline-primary mb-3"> <i class="fa fa-plus-circle"></i> Add
Task</a>
<div class="card">
... | 31,094 |
https://github.com/CrazyHarb/antispy/blob/master/src/ResourceEncrypt/ResourceEncrypt/ResourceEncryptDlg.h | Github Open Source | Open Source | MulanPSL-1.0 | 2,022 | antispy | CrazyHarb | C | Code | 190 | 492 | /*
* Copyright (c) [2010-2019] zhenfei.mzf@gmail.com rights reserved.
*
* AntiSpy is licensed under the Mulan PSL v1.
* You can use this software according to the terms and conditions of the Mulan PSL v1.
* You may obtain a copy of Mulan PSL v1 at:
*
* http://license.coscl.org.cn/MulanPSL
*
* THIS SOFTWA... | 43,137 |
https://github.com/Doctor-wu/Tenon/blob/master/packages/tenon-internal-components/src/web/Loading.vue | Github Open Source | Open Source | MIT | 2,022 | Tenon | Doctor-wu | Vue | Code | 93 | 523 | <template>
<template v-if="loadType === 'spin'">
<template v-if="loading">
<a-spin class="spin"></a-spin>
</template>
<slot v-else v-bind="$attrs"></slot>
</template>
<template v-else-if="loadType === 'skeleton'">
<template v-if="loading">
<a-skeleton class="skeleton" animation>
... | 22,503 |
https://github.com/starpeak/cloudmodel/blob/master/spec/factories/cloud_model/host_factory.rb | Github Open Source | Open Source | MIT | 2,020 | cloudmodel | starpeak | Ruby | Code | 21 | 75 | Factory.define :host, class: CloudModel::Host do |f|
f.name { Faker::Internet.domain_word }
f.tinc_public_key {}
f.primary_address { Factory.build(:address) }
f.private_network { Factory.build(:address) }
end | 4,192 |
https://github.com/mrdulin/mocha-chai-sinon-codelab/blob/master/src/stackoverflow/37867917/index.js | Github Open Source | Open Source | MIT | 2,021 | mocha-chai-sinon-codelab | mrdulin | JavaScript | Code | 16 | 56 | const $ = require("./jquery");
function TestApp() {}
TestApp.prototype.initialize = function() {
$.get("https://github.com/mrdulin");
};
module.exports = TestApp;
| 41,069 |
https://github.com/xzjGitHub/GameFrame/blob/master/MyFrame/Assets/Frame/Game.cs | Github Open Source | Open Source | MIT | null | GameFrame | xzjGitHub | C# | Code | 19 | 57 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
public class Game:MonoBehaviour
{
public static Game Instance;
}
| 43,270 |
https://github.com/arenadata/pytest_allure_spec_coverage/blob/master/tests/plugin/common.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | pytest_allure_spec_coverage | arenadata | Python | Code | 281 | 743 | # 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 under t... | 29,159 |
https://github.com/bestwpw/longevity/blob/master/src/test/scala/longevity/integration/subdomain/keyWithMultipleProperties/KeyWithMultiplePropertiesSpec.scala | Github Open Source | Open Source | Apache-2.0 | 2,016 | longevity | bestwpw | Scala | Code | 13 | 87 | package longevity.integration.subdomain.keyWithMultipleProperties
import org.scalatest.Suites
import scala.concurrent.ExecutionContext.Implicits.global
class KeyWithMultiplePropertiesSpec extends Suites(
mongoContext.inMemRepoCrudSpec,
mongoContext.repoCrudSpec,
cassandraContext.repoCrudSpec)
| 6,380 |
https://github.com/jhh67/chapel/blob/master/test/classes/initializers/compilerGenerated/namedArgs.chpl | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | 2,022 | chapel | jhh67 | Chapel | Code | 16 | 41 | record Foo {
var x: int;
const y: bool;
}
var foo = new Foo(y=true);
writeln(foo);
| 17,238 |
https://github.com/siegelal7/allhues/blob/master/client/src/utils/API.js | Github Open Source | Open Source | MIT | 2,020 | allhues | siegelal7 | JavaScript | Code | 91 | 363 | import axios from "axios";
export default {
getKit: function (id) {
return axios.get(`/api/kits/${id}`);
},
getAllUsers: function () {
return axios.get("/api/videouploads");
},
getKits: function () {
return axios.get("/api/kits");
},
postKit: function (id, kit) {
return axios.post(`/api/k... | 3,808 |
https://github.com/ItsJuniorDias/Enterprises/blob/master/enterprise/src/store/modules/enterprise/sagas.ts | Github Open Source | Open Source | MIT | 2,021 | Enterprises | ItsJuniorDias | TypeScript | Code | 87 | 258 | /* eslint-disable require-yield */
import { AxiosResponse } from 'axios';
import { all, takeLatest, call, put } from 'redux-saga/effects';
import api from '../../../services/api';
import { ActionTypes, IEnterprise } from './types';
import {
getEnterpriseRequest,
getEnterpriseSuccess,
getEnterpriseFailure,
} fr... | 16,103 |
https://github.com/andresr23/Branchboozle/blob/master/Branchboozle/pht3b-rdtsc-measurement/Makefile | Github Open Source | Open Source | MIT | 2,020 | Branchboozle | andresr23 | Makefile | Code | 105 | 364 | #---- Final Binary
BINARY := pht3b-rdtsc-measurement.out
#---- Include
INCLUDE := -I../../include/
#---- Libraries
LDFLAGS :=
#---- Flags
CFLAGS := $(INCLUDE) $(LDFLAGS)
#---- Compiler
CC := gcc
#-------------------------------------------------------------------------------
.SILENT:
all: $(BINARY)
$(BINA... | 39,786 |
https://github.com/oddcc/leetcode-java/blob/master/src/main/java/com/oddcc/leetcode/editor/cn/ToeplitzMatrix.java | Github Open Source | Open Source | MIT | 2,021 | leetcode-java | oddcc | Java | Code | 120 | 352 | // 766
package com.oddcc.leetcode.editor.cn;
public class ToeplitzMatrix {
public static void main(String[] args) {
Solution solution = new ToeplitzMatrix().new Solution();
System.out.println(solution.isToeplitzMatrix(new int[][]{{1, 2, 3, 4}, {5, 1, 2, 3}, {9, 5, 1, 2}}));
System.out.prin... | 42,049 |
https://github.com/IronPans/vary-admin/blob/master/src/views/basic/box-shadow.vue | Github Open Source | Open Source | MIT | 2,020 | vary-admin | IronPans | Vue | Code | 73 | 308 | <template>
<div class="va-page-box">
<va-card header="Box Shadow">
<va-row :gutter="16">
<va-col :lg="4" v-for="i in 24" :key="i" class="m-b-20">
<div :class="`va-shadow-box d-${i}dp`">
Use class <code>d-{{i}}dp</code> inside div elemen... | 17,094 |
https://github.com/briane-courses/S18B-Team-Rofi/blob/master/application/config/constants.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,016 | S18B-Team-Rofi | briane-courses | PHP | Code | 644 | 2,920 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Display Debug backtrace
|--------------------------------------------------------------------------
|
| If set to TRUE, a backtrace will be displayed along with php err... | 27,616 |
https://github.com/paashzj/dev-tools-kotlin/blob/master/src/main/java/com/github/shoothzj/dev/constant/CertConstant.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | dev-tools-kotlin | paashzj | Java | Code | 294 | 701 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 22,862 |
https://github.com/MinexAutomation/Public/blob/master/Source/Common/Experiments/Granby/Lib/Code/Tasks/Classes/DebugOutputStreamDummyTask.cs | Github Open Source | Open Source | MIT | null | Public | MinexAutomation | C# | Code | 24 | 83 | using System;
using Public.Common.Lib.IO;
namespace Public.Common.Granby.Lib
{
public class DebugOutputStreamDummyTask : OutputStreamDummyTask
{
public DebugOutputStreamDummyTask(string message)
: base(new DebugOutputStream(), message)
{
}
}
}
| 44,140 |
https://github.com/luboslavistenik/QuizApp/blob/master/Quiz_Vlajky/Quiz_Vlajky/ViewModels/FlagsPlayingPageViewModel.cs | Github Open Source | Open Source | MIT | null | QuizApp | luboslavistenik | C# | Code | 337 | 1,095 | using Quiz_Vlajky.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using System.Windows.Input;
using Xamarin.Forms;
namespace Quiz_Vlajky.ViewModels
{
public class FlagsPlayingPageViewModel : INotifyPropertyCh... | 41,720 |
https://github.com/masterprash2/SmartTabLayout/blob/master/library/src/main/java/com/ogaclejapan/smarttablayout/TabsCallback.java | Github Open Source | Open Source | Apache-2.0 | null | SmartTabLayout | masterprash2 | Java | Code | 45 | 179 | package com.ogaclejapan.smarttablayout;
public interface TabsCallback {
void setCurrentIndex(int i);
enum State {
SCROLL_STATE_IDLE,
SCROLL_STATE_DRAGGING,
SCROLL_STATE_SETTLING
}
int getCurrentIndex();
TabsAdapter getAdapter();
void addOnTabChangeListener(OnTabCont... | 45,133 |
https://github.com/Park-In/ParkIn/blob/master/store/reducers/parkin.js | Github Open Source | Open Source | MIT | null | ParkIn | Park-In | JavaScript | Code | 150 | 555 | const initialState = {
users: [{
}],
parks: [
],
currentUser: {
},
searchGeo: {
}
};
export default (state = initialState, action) => {
switch (action.type) {
case 'SIGNUP':
return ({
...state,
currentUser: {
... | 36,224 |
https://github.com/toneeraj/tutorials/blob/master/rule-engines/easy-rules/src/main/java/com/baeldung/easyrules/HelloWorldLauncher.java | Github Open Source | Open Source | MIT | 2,019 | tutorials | toneeraj | Java | Code | 58 | 177 | package com.baeldung.easyrules;
import org.jeasy.rules.api.Facts;
import org.jeasy.rules.api.Rules;
import org.jeasy.rules.api.RulesEngine;
import org.jeasy.rules.core.DefaultRulesEngine;
public class HelloWorldLauncher {
public static void main(String... args) {
// create facts
Facts facts = new ... | 12,441 |
https://github.com/tonypires/cattle/blob/master/dist/lib/model/default/DefaultGridColumn.d.ts | Github Open Source | Open Source | MIT | null | cattle | tonypires | TypeScript | Code | 84 | 161 | import { GridColumn } from '../GridColumn';
/**
* Provides a by-the-book implementation of GridColumn.
*/
export declare class DefaultGridColumn implements GridColumn {
/**
* The column reference, must be unique per GridModel instance. Used to indicate the position of the
* column within the grid based... | 24,119 |
https://github.com/dogukanc760/HopBackend/blob/master/models/notification.model.js | Github Open Source | Open Source | MIT | null | HopBackend | dogukanc760 | JavaScript | Code | 91 | 202 | const mongoose = require("mongoose");
const NotificationSchema = new mongoose.Schema({
userFromId: { type: String, default: 0 },
userToId: { type: String, required: true },
userFrom: { type: Array },
userTo: { type: Array },
level: { type: Number, default: 0 },
title: { type: String, default: "" },
subTi... | 10,993 |
https://github.com/4face-studi0/AWS-Recruitee-to-Todoist/blob/master/src/main/kotlin/studio/forface/recruiteetodoist/api/recruitee/model/RatingsApiModel.kt | Github Open Source | Open Source | Apache-2.0 | null | AWS-Recruitee-to-Todoist | 4face-studi0 | Kotlin | Code | 17 | 80 | package studio.forface.recruiteetodoist.api.recruitee.model
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class RatingsApiModel(
@SerialName("strong_yes")
val strongYes: Int // 1
)
| 39,457 |
https://github.com/chysis/Health_Scheduler/blob/master/app/src/main/java/com/example/health_scheduler/home_ex_list_back.java | Github Open Source | Open Source | MIT | 2,020 | Health_Scheduler | chysis | Java | Code | 137 | 606 | package com.example.health_scheduler;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import androidx.appcompat.app.AppCompatActivity;
public class home_ex_list_back extends AppCompatActivity {
@Override
prot... | 9,488 |
https://github.com/stbly/gemp-swccg-public/blob/master/gemp-swccg-logic/src/main/java/com/gempukku/swccgo/logic/effects/LoseForceAndStackFaceDownEffect.java | Github Open Source | Open Source | MIT | 2,022 | gemp-swccg-public | stbly | Java | Code | 237 | 476 | package com.gempukku.swccgo.logic.effects;
import com.gempukku.swccgo.game.PhysicalCard;
import com.gempukku.swccgo.logic.timing.Action;
/**
* An effect that causes the specified player to lose a specified amount of Force (may not be reduced) and stack that
* Force face down on a specified card.
*/
public class L... | 30,732 |
https://github.com/onap/multicloud-k8s/blob/master/src/monitor/pkg/controller/resourcebundlestate/csr_controller.go | Github Open Source | Open Source | Apache-2.0 | 2,023 | multicloud-k8s | onap | Go | Code | 669 | 2,078 | package resourcebundlestate
import (
"context"
"log"
"github.com/onap/multicloud-k8s/src/monitor/pkg/apis/k8splugin/v1alpha1"
certsapi "k8s.io/api/certificates/v1beta1"
k8serrors "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/types"
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/cont... | 4,400 |
https://github.com/b8739/dabang_clone/blob/master/src/components/atoms/Img/index.stories.tsx | Github Open Source | Open Source | MIT | 2,021 | dabang_clone | b8739 | TSX | Code | 47 | 120 | import React from 'react';
import { Meta } from '@storybook/react';
import { Img, ImgProps } from './index';
import LogoSvg from 'assets/images/logo.svg';
export default {
title: 'Atoms/Img'
} as Meta;
export const general = (args: ImgProps) => <Img {...args} />;
general.args = {
src: LogoSvg,
alt: '로고'
... | 16,745 |
https://github.com/jambtc/gold-manager/blob/master/oldGM/classifica_ok.php | Github Open Source | Open Source | MIT | 2,019 | gold-manager | jambtc | PHP | Code | 689 | 3,534 | <?php
require_once('auth.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<?php
$quale_css = "index".$_SES... | 41,187 |
https://github.com/miami-acm/arcade-machine-mcp/blob/master/mcp/game.py | Github Open Source | Open Source | MIT | 2,015 | arcade-machine-mcp | miami-acm | Python | Code | 37 | 148 | class Game(object):
def __init__(self, name, command, image, id_num):
self.name = name
self.command = command
self.image = image
self.id_num = id_num
def __str__(self):
return "'{}' '{}' '{}' '{}'".format(
self.name,
self.command,
self.image,
self.id_num,
)
def __repr__(self):
return 'Gam... | 5,788 |
https://github.com/rania-del-1998/Blockchain-Project/blob/master/node_modules/.staging/relay-compiler-920fa2f3/lib/transforms/RelayDirectiveTransform.js | Github Open Source | Open Source | MIT | 2,022 | Blockchain-Project | rania-del-1998 | JavaScript | Code | 354 | 966 | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
* @format
*/
// flowlint ambiguous-object-type:error
'use strict';
var _interopRequireDefault = require("@babel/runtime/helpe... | 50,182 |
https://github.com/dreamingyin/SpringBoot-Tutorial/blob/master/springboot-mybatis/src/main/java/com/yhy/springboot/service/AccountService2.java | Github Open Source | Open Source | Apache-2.0 | null | SpringBoot-Tutorial | dreamingyin | Java | Code | 46 | 209 | package com.yhy.springboot.service;
import com.yhy.springboot.mapper.AccountMapper2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
/**
* @FileName: AccountService2
* @Author Steven
* @Da... | 13,969 |
https://github.com/cluny85/node-fcm-hero/blob/master/src/push/push.actions.js | Github Open Source | Open Source | MIT | null | node-fcm-hero | cluny85 | JavaScript | Code | 10 | 49 | module.exports = {
"OPEN": "fcm.ACTION.OPEN",
"CALL": "fcm.ACTION.CALL",
"CHAT": "fcm.ACTION.CHAT",
} | 43,999 |
https://github.com/NeonsIo/tracker/blob/master/src/Transport/XhrTransport.ts | Github Open Source | Open Source | MIT | 2,017 | tracker | NeonsIo | TypeScript | Code | 39 | 111 | import { Transport } from "./Transport";
import { Config } from "../Config/Config";
export class XhrTransport implements Transport {
constructor(private config: Config) {}
send(data: any) {
let request: XMLHttpRequest = new XMLHttpRequest();
request.open("POST", this.config.domain, true);
... | 10,190 |
https://github.com/adancy/CompaniesHouse.NET/blob/master/src/CompaniesHouse.Tests/CompaniesHouseSearchClientTests/CompaniesHouseSearchClientTestsForCompanySearchWithTooManyRequests.cs | Github Open Source | Open Source | MIT | 2,022 | CompaniesHouse.NET | adancy | C# | Code | 102 | 443 | using System;
using System.Net.Http;
using System.Threading.Tasks;
using CompaniesHouse.Request;
using CompaniesHouse.Response.Search.CompanySearch;
using CompaniesHouse.UriBuilders;
using FluentAssertions;
using Moq;
using NUnit.Framework;
namespace CompaniesHouse.Tests.CompaniesHouseSearchClientTests
{
[TestFix... | 50,442 |
https://github.com/Brobicheau/Twitterclone-Backend/blob/master/node_modules/mongoose-queue/test/global.js | Github Open Source | Open Source | MIT | 2,017 | Twitterclone-Backend | Brobicheau | JavaScript | Code | 29 | 133 | 'use strict'
var mongoose = require('mongoose');
var mockgoose = require('mockgoose');
var bluebird = require('bluebird');
before(function(done)
{
this.timeout(30000);
mongoose.Promise = bluebird;
mockgoose(mongoose).then(function()
{
mongoose.connect('http://localhost/mongoose-queue-test', function(err)
{
... | 24,753 |
https://github.com/colin-kyang/youngmail/blob/master/third_party/src/main/java/com/example/third_party/controller/OssUploadController.java | Github Open Source | Open Source | Apache-2.0 | null | youngmail | colin-kyang | Java | Code | 102 | 547 | package com.example.third_party.controller;
import com.aliyun.oss.model.MatchMode;
import com.aliyun.oss.model.PolicyConditions;
import com.example.common.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.... | 21,982 |
https://github.com/smarletta/typed-injection/blob/master/test/mocks/duplicateDependency.mock.ts | Github Open Source | Open Source | MIT | null | typed-injection | smarletta | TypeScript | Code | 29 | 81 | import { SinonSpy, spy } from 'sinon';
import { Injectable } from '../../index';
export const duplicateDependencyConstructorSpy: SinonSpy = spy();
@Injectable
export class DuplicateDependency {
constructor() {
duplicateDependencyConstructorSpy(...arguments);
}
}
| 20,803 |
https://github.com/conda-forge/zfit-physics-feedstock/blob/master/.github/CODEOWNERS | Github Open Source | Open Source | BSD-3-Clause, BSD-2-Clause | 2,023 | zfit-physics-feedstock | conda-forge | CODEOWNERS | Code | 3 | 11 | * @chrisburr @mayou36 | 10,485 |
https://github.com/cesmix-mit/Open-Catalyst-Dataset/blob/master/ocdata/base_atoms/ase_dbs/__init__.py | Github Open Source | Open Source | CC-BY-4.0 | 2,022 | Open-Catalyst-Dataset | cesmix-mit | Python | Code | 10 | 55 | import os
BULK_DB = os.path.join(__path__[0], 'bulks.db')
ADSORBATE_DB = os.path.join(__path__[0], 'adsorbates.db') | 29,359 |
https://github.com/jnpr-shinma/yangfile/blob/master/space/v3/device-information.yang | Github Open Source | Open Source | Apache-2.0 | null | yangfile | jnpr-shinma | YANG | Code | 258 | 494 | module device-information {
yang-version 1;
namespace "http://juniper.net/ns/space/device/information/1.0";
prefix dev-info;
organization "Juniper Networks";
description "Example YANG module for device info";
revision "2014-11-22" {
description "Initial version";
}
grouping syst... | 11,070 |
https://github.com/Adong1996/wxMall/blob/master/service/config.js | Github Open Source | Open Source | MIT | null | wxMall | Adong1996 | JavaScript | Code | 10 | 32 | export const baseURL = 'http://152.136.185.210:7878/api/m5'
export const timeout = 5000
| 43,176 |
https://github.com/kamilrakoczy/j-pet-framework/blob/master/DBHandler/Scripts/changeContentOfDefaultConfigFile.py | Github Open Source | Open Source | Apache-2.0 | null | j-pet-framework | kamilrakoczy | Python | Code | 122 | 399 | # -*- coding: utf-8 -*-
# Change the content of file with content from another file
import sys
g_sourceFile = ''
g_destinationFile = '../Config/configDB.cfg'
def getValueFromInput(p_argv):
global g_sourceFile
global g_destinationFile
l_lenOfArgv = len(p_argv)
if l_lenOfArgv < 2:
sys.exit('Nothing to ... | 48,726 |
https://github.com/dkesada/PSOHO/blob/master/R/particle.R | Github Open Source | Open Source | MIT | 2,020 | PSOHO | dkesada | R | Code | 422 | 1,052 | #' R6 class that defines a Particle in the PSO algorithm
#'
#' A particle has a Position, a Velocity and a local best
Particle <- R6::R6Class("Particle",
public = list(
#' @description
#' Constructor of the 'Particle' class
#' @param ordering a vector with the names of the nodes in t_0
#' @param size num... | 3,791 |
https://github.com/Incapture/OG-Platform/blob/master/projects/OG-Integration/src/main/java/com/opengamma/integration/tool/portfolio/PortfolioDeleteTool.java | Github Open Source | Open Source | Apache-2.0 | null | OG-Platform | Incapture | Java | Code | 426 | 1,646 | /**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.integration.tool.portfolio;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.cli.Option;
import org.apache.commons.cli.OptionGroup... | 4,098 |
https://github.com/songaal/abcc/blob/master/server/src/main/java/org/fastcatsearch/http/action/management/servers/GetRunningJobListAction.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | abcc | songaal | Java | Code | 202 | 1,049 | package org.fastcatsearch.http.action.management.servers;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.fastcatsearch.cluster.ClusterUtils;
import org.fastcatsearch.cluster.Node;
import org.fastcatsearch.cluster.NodeJobResult;
import org.fastca... | 19,736 |
https://github.com/alpapan/DEW/blob/master/3rd_party/transdecoder/3rd_party/cd-hit-v4.6.1-2012-08-27/cdhit-utility.h | Github Open Source | Open Source | BSD-3-Clause | 2,018 | DEW | alpapan | C | Code | 24 | 76 |
int print_usage (char *arg);
int print_usage_2d (char *arg);
int print_usage_est (char *arg);
int print_usage_div (char *arg);
int print_usage_est_2d (char *arg);
int print_usage_454 (char *arg);
| 37,108 |
https://github.com/Citavi/C6-Add-Ons-and-Online-Sources/blob/master/src/ImportSequenceNumber/Core/SequenceNumberImportInfo.cs | Github Open Source | Open Source | MIT | 2,021 | C6-Add-Ons-and-Online-Sources | Citavi | C# | Code | 41 | 98 | using SwissAcademic.Citavi;
using System;
namespace SwissAcademic.Addons.ImportSequenceNumberAddon
{
public class SequenceNumberImportInfo
{
public Guid SourceId { get; set; }
public string Number { get; set; }
public Reference TargetReference { get; set; }
p... | 14,546 |
https://github.com/worthingtonjg/GGJ2019/blob/master/SpaceGod/Assets/_Project/Scripts/SceneFade.cs | Github Open Source | Open Source | MIT | 2,019 | GGJ2019 | worthingtonjg | C# | Code | 29 | 79 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SceneFade : MonoBehaviour
{
// Start is called before the first frame update
public void Load(string scene)
{
SimpleSceneFader.ChangeSceneWithFade(scene);
}
}
| 42,529 |
https://github.com/zabirauf/bol0x/blob/master/packages/contracts/contracts/content/UpdatableContent.sol | Github Open Source | Open Source | Apache-2.0 | null | bol0x | zabirauf | Solidity | Code | 92 | 246 | pragma solidity ^0.4.18;
import './Content.sol';
import '../utils/StringUtils.sol';
/**
* @title Updatable Content
* @dev The UpdateableContent contract allows the offchain content address to be updated in case of content change
*/
contract UpdatableContent is Content {
uint256 public contentUpdateTime;
... | 8,999 |
https://github.com/emipa606/Warframe/blob/master/Source/Warframe/WarframeStaticMethods.cs | Github Open Source | Open Source | MIT | 2,021 | Warframe | emipa606 | C# | Code | 1,792 | 6,678 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using RimWorld;
using UnityEngine;
using Verse;
using Verse.AI;
using Verse.Sound;
namespace Warframe
{
public static class WarframeStaticMethods
{
public static bool IsWarframe(this Pawn pawn)
{
... | 12,733 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.