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/themotleyfool/NuGet/blob/master/src/Bootstrapper/HttpClient.cs | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | 2,021 | NuGet | themotleyfool | C# | Code | 76 | 300 | using System;
using System.Globalization;
using System.IO;
using System.Net;
namespace NuGet
{
internal sealed class HttpClient
{
public void DownloadData(string filePath)
{
using (var response = RequestHelper.GetResponse(CreateWebRequest,
... | 22,213 |
https://github.com/benson-git/practices-microservice/blob/master/microservice-config/src/main/java/com/github/ibole/microservice/config/spring/support/RpcService.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | practices-microservice | benson-git | Java | Code | 304 | 926 | package com.github.ibole.microservice.config.spring.support;
import com.github.ibole.microservice.common.utils.ClassHelper;
import com.google.common.base.Strings;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.context.ApplicationCo... | 26,310 |
https://github.com/kema8351/asset-bundle-director/blob/master/Assets/Script/Test/Title.cs | Github Open Source | Open Source | MIT | null | asset-bundle-director | kema8351 | C# | Code | 87 | 337 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.UI;
using Zara.Common.ExBase;
using Zara.Common.Utility;
namespace Zara.Test
{
public class Title : ExMonoBehaviour
{
[SerializeField]
Toggle toggleEn = null;
... | 40,666 |
https://github.com/Jiaqi-knight/NonlinearWaveguideCoding/blob/master/Acoustics_NonlinearDuct/coding4/subfunction1/chebfun-master/chebvar.m | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,020 | NonlinearWaveguideCoding | Jiaqi-knight | MATLAB | Code | 274 | 636 | function chebvar(varargin)
%CHEBVAR Short-cut for constructing CHEBFUN variables.
% CHEBVAR arg1 arg2 ...
% is short-hand notation for creating symbolic variables
% arg1 = chebfun('arg1');
% arg2 = chebfun('arg2'); ...
% The outputs are created in the current workspace.
%
% CHEBVAR arg1 arg2... | 40,950 |
https://github.com/chinabosh/androiddemo/blob/master/Demo/mylibrary/src/main/java/com/china/bosh/mylibrary/annotation/GenerateGS.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | androiddemo | chinabosh | Java | Code | 25 | 116 | package com.china.bosh.mylibrary.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @author lzq
* @date 2019/4/24
*/
@Retention(RetentionPolicy.CLASS)
@Target(ElementType.FIELD)
public @i... | 14,996 |
https://github.com/goopscoop/rougish/blob/master/src/assets/icons/blackOnTransparent/GooSpurt.js | Github Open Source | Open Source | MIT | 2,016 | rougish | goopscoop | JavaScript | Code | 104 | 581 | import React from 'react';
export default function GooSpurt({width = '50px', height = '50px'}) {
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={height} width={width}>
<path d="M164.22 19.97c-55.872.782-107.155 22.6-138.345 76.25 70.746-35.597 126.136-16.29 156.97 39-9.19-32.183-... | 39,778 |
https://github.com/homingway/hickwall/blob/master/backends/config/influxdb.go | Github Open Source | Open Source | Apache-2.0 | 2,017 | hickwall | homingway | Go | Code | 68 | 182 | package config
type Transport_influxdb struct {
// Enabled bool
Version string
Interval string
Max_batch_size int
// Client Config
Host string // for v0.8.8
URL string // for v0.9.0
Username string
Password string
Database string
// Write Config
RetentionPolicy string
FlatT... | 1,085 |
https://github.com/Q-xyz/barnbridge-frontend/blob/master/src/modules/smart-yield/views/stats-view/index.tsx | Github Open Source | Open Source | Apache-2.0 | null | barnbridge-frontend | Q-xyz | TypeScript | Code | 289 | 1,033 | import React from 'react';
import { Link } from 'react-router-dom';
import cn from 'classnames';
import { Alert } from 'components/alert';
import Spin from 'components/antd/spin';
import Icon from 'components/custom/icon';
import { Tabs } from 'components/custom/tabs';
import { useConfig } from 'components/providers/c... | 6,027 |
https://github.com/pavkam/XtraLiteTemplates/blob/master/XtraLiteTemplates/Introspection/SimpleDynamicInvoker.cs | Github Open Source | Open Source | BSD-3-Clause | 2,017 | XtraLiteTemplates | pavkam | C# | Code | 707 | 2,031 | // Author:
// Alexandru Ciobanu alex+git@ciobanu.org
//
// Copyright (c) 2015-2018, Alexandru Ciobanu (alex+git@ciobanu.org)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
//
// *... | 1,379 |
https://github.com/dotnet/runtime/blob/master/src/coreclr/vm/loongarch64/calldescrworkerloongarch64.S | Github Open Source | Open Source | MIT | 2,023 | runtime | dotnet | null | Spoken | 616 | 2,849 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include "unixasmmacros.inc"
#include "asmconstants.h"
//-----------------------------------------------------------------------------
// This helper routine enregisters the appropr... | 51,985 |
https://github.com/trinhpham/appium-xcuitest-driver/blob/master/test/assets/TouchIDExample.app/Frameworks/XCTest.framework/Headers/XCTestCase.h | Github Open Source | Open Source | Apache-2.0 | 2,022 | appium-xcuitest-driver | trinhpham | C | Code | 1,413 | 2,722 | //
// Copyright (c) 2013-2015 Apple Inc. All rights reserved.
//
// Copyright (c) 1997-2005, Sen:te (Sente SA). All rights reserved.
//
// Use of this source code is governed by the following license:
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided tha... | 1,790 |
https://github.com/TongZhang/zircon/blob/master/system/ulib/async/task.cpp | Github Open Source | Open Source | BSD-3-Clause, MIT | 2,018 | zircon | TongZhang | C++ | Code | 311 | 1,112 | // Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <lib/async/cpp/task.h>
#include <lib/async/cpp/time.h>
namespace async {
namespace internal {
struct RetainedTask : public async_task_t {
Re... | 810 |
https://github.com/moovida/dart_hydrologis_db/blob/master/test/dart_hydrologis_postgresql_db_test.dart | Github Open Source | Open Source | MIT | 2,020 | dart_hydrologis_db | moovida | Dart | Code | 856 | 2,900 | import 'package:dart_hydrologis_db/dart_hydrologis_db.dart';
import 'package:test/test.dart';
void main() {
late PostgresqlDb db;
setUpAll(() {
db = PostgresqlDb(
"localhost",
"test",
port: 5432,
user: "postgres",
// pwd: "postgres",
);
return db.open(populateFunction: cr... | 24,335 |
https://github.com/JobsD0ne/wei-e-miniapp/blob/master/pages/home/index.js | Github Open Source | Open Source | Apache-2.0 | null | wei-e-miniapp | JobsD0ne | JavaScript | Code | 323 | 1,259 | const recorderManager = wx.getRecorderManager()
recorderManager.onStart(() => {
console.log('recorder start')
})
recorderManager.onPause(() => {
console.log('recorder pause')
})
recorderManager.onStop((res) => {
console.log('recorder stop', res)
const { tempFilePath } = res
})
recorderManager.onFrameRecorded((... | 47,390 |
https://github.com/kousik93/dotfiles/blob/master/.atom/packages/json-schema/lib/schema-selector-view.js | Github Open Source | Open Source | MIT | 2,019 | dotfiles | kousik93 | JavaScript | Code | 409 | 1,371 | "use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var atom_space_pen_views_1 = require('atom-space... | 30,572 |
https://github.com/qzlll/laravel-bjyblog/blob/master/app/Observers/NavObserver.php | Github Open Source | Open Source | MIT | 2,019 | laravel-bjyblog | qzlll | PHP | Code | 30 | 130 | <?php
namespace App\Observers;
use Artisan;
class NavObserver extends BaseObserver
{
public function created($model)
{
parent::created($model);
Artisan::queue('bjyblog:generateSitemap');
}
public function deleted($model)
{
parent::deleted($model);
if (! $model->... | 26,103 |
https://github.com/chloeyutianyi/emboss/blob/master/compiler/front_end/parser.py | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | null | emboss | chloeyutianyi | Python | Code | 458 | 1,237 | # Copyright 2019 Google LLC
#
# 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 agreed to in writing, ... | 51,489 |
https://github.com/firepolls/front/blob/master/src/reducer/votes.js | Github Open Source | Open Source | MIT | 2,018 | front | firepolls | JavaScript | Code | 59 | 125 | // Rob - this reducer is used specifically for managing re-voting
const initialState = {};
export default (state = initialState, { type, payload }) => {
switch (type) {
case 'VOTE_SET': {
const { pollId, vote } = payload;
const updatedState = { ...state, [pollId]: vote };
return updatedState;
... | 28,516 |
https://github.com/timkphd/examples/blob/master/batch/slurm/geek | Github Open Source | Open Source | Unlicense | 2,023 | examples | timkphd | Shell | Code | 192 | 478 | #!/bin/bash
#SBATCH --job-name="atest"
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=8
#SBATCH --time=01:00:00
#SBATCH --exclusive
#SBATCH -o stdout.%j
#SBATCH -e stderr.%j
#SBATCH --export=ALL
#----------------------
cd $SLURM_SUBMIT_DIR
module purge
module load StdEnv
###############
# http://compgroups.net/comp.unix.... | 25,902 |
https://github.com/birgovanandrei/rlssm/blob/master/rlssm/__init__.py | Github Open Source | Open Source | MIT | 2,021 | rlssm | birgovanandrei | Python | Code | 46 | 107 | from __future__ import absolute_import, division, print_function
from .version import __version__ # noqa
from .models_RL import * # noqa
from .models_DDM import *
from .models_RDM import *
from .models_LBA import *
from .models_ARDM import *
from .models_ALBA import *
from .utils import load_model_results
from .load_... | 21,571 |
https://github.com/macrocosme/shwirl/blob/master/shwirl/extern/vispy/app/tests/test_interactive.py | Github Open Source | Open Source | BSD-3-Clause | 2,023 | shwirl | macrocosme | Python | Code | 61 | 220 | from vispy.testing import run_tests_if_main
from vispy.app import set_interactive
from vispy.ext.ipy_inputhook import inputhook_manager
# Expect the inputhook_manager to set boolean `_in_event_loop`
# on instances of this class when enabled.
class MockApp(object):
pass
def test_interactive():
f = MockApp()
... | 6,958 |
https://github.com/aeby/lkhan/blob/master/app/static/styles/_stats.scss | Github Open Source | Open Source | MIT | 2,015 | lkhan | aeby | SCSS | Code | 66 | 269 | .stats-activity {
padding: 10px;
border-bottom: 1px solid $gray-lighter;
h4 {
margin-top: 0;
}
a {
color: inherit;
}
&:last-child {
border-bottom: none;
}
&.action-c {
background-color: $exercise-correct-bg;
color: $exercise-correct-text;
}
&.action-w {
background-colo... | 12,964 |
https://github.com/Naddison94/Laravello/blob/master/database/seeders/TaskSeeder.php | Github Open Source | Open Source | MIT | null | Laravello | Naddison94 | PHP | Code | 70 | 230 | <?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\DB;
class TaskSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('tasks')->insert([
... | 24,906 |
https://github.com/isabella232/dfdewey/blob/master/dfdewey/config/__init__.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | dfdewey | isabella232 | Python | Code | 208 | 492 | # -*- coding: utf-8 -*-
# Copyright 2021 Google LLC
#
# 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 ag... | 52,122 |
https://github.com/Zarel/Digimon-Showdown-Dimensional-Rift/blob/master/mods/digimon/learnsets.js | Github Open Source | Open Source | MIT | 2,020 | Digimon-Showdown-Dimensional-Rift | Zarel | JavaScript | Code | 4,729 | 24,193 | 'use strict';
/**@type {{[k: string]: {learnset: {[k: string]: MoveSource[]}}}} */
let BattleLearnsets = {
//Fresh
botamon: {
learnset: {
acidbubble: ["7M"],
protect: ["7M"],
},
},
dodomon: {
learnset: {
acidbubble: ["7M"],
protect: ["7M"],
},
},
kuramon: {
learnset: {
acidbubble: ["7M"]... | 477 |
https://github.com/maoa3/meteor_original_ios/blob/master/Assets/MeteorObj/sn19/Object33.mtl.meta | Github Open Source | Open Source | Apache-2.0 | 2,019 | meteor_original_ios | maoa3 | Unity3D Asset | Code | 12 | 67 | fileFormatVersion: 2
guid: e2cc968a5db6b7b46a417fe4d4cb0401
timeCreated: 1533726001
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
| 29,789 |
https://github.com/marcos-medeiros/personal-portfolio/blob/master/src/app/components/About.js | Github Open Source | Open Source | MIT | 2,020 | personal-portfolio | marcos-medeiros | JavaScript | Code | 82 | 284 | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
const About = ({ about }) => (
<section className="section section--small spacing-medium-top spacing-medium-bottom">
<div className="content-styles">
<h2 id="who-i-am">
Who I Am
</h2>
... | 21,124 |
https://github.com/al66/imicros-streams/blob/master/test/streams.spec.js | Github Open Source | Open Source | MIT | null | imicros-streams | al66 | JavaScript | Code | 470 | 1,536 | "use strict";
const { ServiceBroker } = require("moleculer");
const { Streams } = require("../index");
const timestamp = Date.now();
describe("Test streams service", () => {
let broker, service;
beforeAll(() => {
});
afterAll(async () => {
});
describe("Test create service", () => ... | 18,249 |
https://github.com/karathen/Karathen-iOS/blob/master/Karathen-IOS/karathen/Network/CCRequest.h | Github Open Source | Open Source | MIT | 2,020 | Karathen-iOS | karathen | C | Code | 125 | 518 | //
// CCRequest.h
// Karathen
//
// Created by Karathen on 2018/7/20.
// Copyright © 2018年 raistone. All rights reserved.
//
#import <YTKNetwork/YTKNetwork.h>
typedef NS_ENUM(NSInteger, CCRequestState) {
CCRequestStateSuccess = 1,//成功
CCRequestStateFail = 0,//失败
... | 14,137 |
https://github.com/jetsonhacks/openFrameworks/blob/master/examples/graphics/imageSubsectionExample/src/ofApp.cpp | Github Open Source | Open Source | MIT | 2,014 | openFrameworks | jetsonhacks | C++ | Code | 192 | 732 | #include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
ofSetVerticalSync(true);
img.loadImage("indispensable.jpg");
ofSetLineWidth(2);
}
//--------------------------------------------------------------
void ofApp::update(){
}
//-----------------------------------... | 50,269 |
https://github.com/farmerworking/rabbitDb/blob/master/rabbitDb-impl/src/main/java/com/farmerworking/db/rabbitDb/impl/memtable/InternalKey.java | Github Open Source | Open Source | MIT | null | rabbitDb | farmerworking | Java | Code | 66 | 226 | package com.farmerworking.db.rabbitDb.impl.memtable;
import com.farmerworking.db.rabbitDb.impl.skiplist.Sizeable;
import lombok.Getter;
public class InternalKey implements Sizeable {
private
@Getter
final String userKey;
private
@Getter
final long sequence;
private
@Getter
final V... | 20,442 |
https://github.com/silentHoo/js-model/blob/master/src/model_local_storage.js | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,014 | js-model | silentHoo | JavaScript | Code | 200 | 649 | ;(function(Model) {
Model.localStorage = function(klass) {
klass.persistence = new Model.localStorage.Persistence(klass)
}
var persistence = Model.localStorage.Persistence = function(klass) {
this.klass = klass
this.collection_id = [klass._name, "collection"].join("-")
}
var del = function(key) ... | 37,508 |
https://github.com/perfeccionista-software/perfeccionista-framework/blob/master/utils/src/main/java/io/perfeccionista/framework/utils/PackageUtils.java | Github Open Source | Open Source | Apache-2.0 | null | perfeccionista-framework | perfeccionista-software | Java | Code | 58 | 216 | package io.perfeccionista.framework.utils;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
public class PackageUtils {
private PackageUtils() {
}
public static Set<String> validatePackageSet(Set<String> packagesToValidate) {
Set<String> allPackages = new HashSet<>(p... | 27,353 |
https://github.com/TheRealElysium/R2Mods/blob/master/FasterTeleportCharge/TeleportChargeMultiplier.cs | Github Open Source | Open Source | MIT | 2,019 | R2Mods | TheRealElysium | C# | Code | 63 | 263 | using UnityEngine;
namespace FasterTPCharge
{
public sealed class TeleportChargeMultiplier : MonoBehaviour
{
private void FixedUpdate()
{
if (!RoR2.TeleporterInteraction.instance)
{
Destroy(this);
return;
}
if (Fas... | 14,244 |
https://github.com/joschi/java-metadata/blob/master/docs/checksums/sapmachine/sapmachine-jre-17-ea.25_linux-ppc64le_bin.tar.gz.md5 | Github Open Source | Open Source | MIT | 2,023 | java-metadata | joschi | null | Spoken | 2 | 47 | 4c0b685ea0a3bade2526ebde0e0affae sapmachine-jre-17-ea.25_linux-ppc64le_bin.tar.gz
| 24,107 |
https://github.com/BHAVIUS/PDP-DREAM/blob/master/PDP.DREAM.NexusDataLib/Controllers/AuthControllerChangeEmail.cs | Github Open Source | Open Source | Apache-2.0 | null | PDP-DREAM | BHAVIUS | C# | Code | 122 | 517 | // AuthControllerChangeEmail.cs
// Copyright (c) 2007 - 2021 Brain Health Alliance. All Rights Reserved.
// Code license: the OSI approved Apache 2.0 License (https://opensource.org/licenses/Apache-2.0).
using Microsoft.AspNetCore.Mvc;
using PDP.DREAM.CoreDataLib.Models;
using PDP.DREAM.CoreDataLib.Types;
namespa... | 23,803 |
https://github.com/metux/chromium-suckless/blob/master/v8/src/background-parsing-task.h | Github Open Source | Open Source | BSD-3-Clause, SunPro, bzip2-1.0.6 | 2,017 | chromium-suckless | metux | C++ | Code | 203 | 612 | // Copyright 2014 the V8 project 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 V8_BACKGROUND_PARSING_TASK_H_
#define V8_BACKGROUND_PARSING_TASK_H_
#include <memory>
#include "include/v8.h"
#include "src/base/platform/plat... | 2,685 |
https://github.com/deyh2020/PyQuantum/blob/master/T_click/l001g/250ns/t0/374.pkl | Github Open Source | Open Source | MIT | 2,020 | PyQuantum | deyh2020 | Pickle | Code | 22 | 244 | (lp0
F7.499999999999962e-07
aF1.2500000000000122e-06
aF1.7500000000000497e-06
aF5.000000000000039e-07
aF5.000000000000039e-07
aF1.500000000000031e-06
aF2.2500000000000873e-06
aF9.999999999999934e-07
aF1.500000000000031e-06
aF5.000000000000039e-07
aF1.2500000000000122e-06
aF9.999999999999934e-07
aF2.4999999999999957e-07... | 49,042 |
https://github.com/mpsitech/idec_public/blob/master/dbsidec/IdecMMission.cpp | Github Open Source | Open Source | BSD-2-Clause | null | idec_public | mpsitech | C++ | Code | 1,245 | 4,961 | /**
* \file IdecMMission.cpp
* database access for table TblIdecMMission (implementation)
* \author Alexander Wirthmueller
* \date created: 30 Dec 2017
* \date modified: 30 Dec 2017
*/
#include "IdecMMission.h"
/******************************************************************************
class IdecMMis... | 5,333 |
https://github.com/fredsted/primi/blob/master/src/Ex/ArgumentCountError.php | Github Open Source | Open Source | MIT | 2,022 | primi | fredsted | PHP | Code | 61 | 195 | <?php
declare(strict_types=1);
namespace Smuuf\Primi\Ex;
class ArgumentCountError extends RuntimeError {
protected int $passed;
protected int $expected;
public function __construct(
int $passed,
int $expected
) {
$this->passed = $passed;
$this->expected = $expected;
parent::__construct($this->build... | 46,401 |
https://github.com/isy/moducks/blob/master/test/creator.js | Github Open Source | Open Source | MIT | 2,019 | moducks | isy | JavaScript | Code | 234 | 638 | import test from 'tape'
import * as effects from 'redux-saga/effects'
import Moducks from '../src'
const moducks = new Moducks({ effects })
const { actionOne, actionTwo, actionThree } = moducks.createModule('myModule', {
ACTION_ONE: {
creator: (key, value) => ({ [key]: value }),
},
ACTION_TWO: {
creat... | 10,149 |
https://github.com/Epsilonnnn/amp-email-viewer/blob/master/src/test/preprocessing/preprocessing-modules/ElementLimits.test.ts | Github Open Source | Open Source | Apache-2.0 | null | amp-email-viewer | Epsilonnnn | TypeScript | Code | 77 | 291 | import { module as ElementLimits } from '../../../preprocessing/preprocessing-modules/ElementLimits';
describe('SizeCheck module', () => {
// tslint:disable:no-any
const config = {} as any;
test('has correct name', () => {
expect(ElementLimits.name).toBe('ElementLimits');
});
test('works when within li... | 23,901 |
https://github.com/hippiehunter/cci/blob/master/PDBReaderAndWriter/PdbWriter/Writer.cs | Github Open Source | Open Source | MIT | 2,019 | cci | hippiehunter | C# | Code | 735 | 2,654 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using Microsoft.Cci;
using System.Diagnostics.Contracts;
using System.Runtime.InteropServices;
//^ using Microsoft.Con... | 47,304 |
https://github.com/FlorianFranzen/kagome/blob/master/core/common/blob.hpp | Github Open Source | Open Source | Apache-2.0 | null | kagome | FlorianFranzen | C++ | Code | 611 | 1,625 | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef KAGOME_BLOB_HPP
#define KAGOME_BLOB_HPP
#include <array>
#include <boost/functional/hash.hpp>
#include "common/hexutil.hpp"
namespace kagome::common {
/**
* Error codes for exceptions that may occur du... | 20,036 |
https://github.com/mypsycho/Activity-Manager/blob/master/core/plugins/org.activitymgr.core.orm/src/org/activitymgr/core/orm/IConverter.java | Github Open Source | Open Source | BSD-3-Clause | 2,019 | Activity-Manager | mypsycho | Java | Code | 31 | 109 | package org.activitymgr.core.orm;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
public interface IConverter<TYPE> {
void bind(PreparedStatement stmt, int index, TYPE value) throws SQLException;
TYPE readValue(ResultSet rs, int index) throws SQLException;
int getSQ... | 25,702 |
https://github.com/sarahyaepark/unwindPWA/blob/master/client/components/welcome.js | Github Open Source | Open Source | MIT | null | unwindPWA | sarahyaepark | JavaScript | Code | 288 | 693 | import React from 'react'
import {makeStyles} from '@material-ui/core/styles'
import Alert from '@material-ui/lab/Alert'
import IconButton from '@material-ui/core/IconButton'
import Collapse from '@material-ui/core/Collapse'
import Button from 'react-bootstrap/Button'
import CloseIcon from '@material-ui/icons/Close'
c... | 39,403 |
https://github.com/christroutner/gatsby-ipfs-boilerplate/blob/master/src/pages/landing.js | Github Open Source | Open Source | MIT | 2,019 | gatsby-ipfs-boilerplate | christroutner | JavaScript | Code | 352 | 1,032 | import React from 'react'
import { Link } from 'gatsby'
import Helmet from 'react-helmet'
import Layout from '../components/layout'
import BannerLanding from '../components/BannerLanding'
import pic08 from '../assets/images/pic08.jpg'
import pic09 from '../assets/images/pic09.jpg'
import pic10 from '../assets/images/p... | 27,665 |
https://github.com/Cartman34/MyCraftManager/blob/master/libs/entitydescriptor/SQLGenerator_MySQL.php | Github Open Source | Open Source | MIT | 2,021 | MyCraftManager | Cartman34 | PHP | Code | 849 | 3,205 | <?php
// MySQL Generator
class SQLGenerator_MySQL {
public function getColumnInfosFromField($field) {
$TYPE = EntityDescriptor::getType($field->type);
$cType = '';
if( $TYPE instanceof TypeString ) {
$max = $TYPE instanceof TypePassword ? 128 : $field->args->max;
if( $max < 256 ) {
$cType = "VARCHAR(... | 33,018 |
https://github.com/Goyoo/node-k8s-client/blob/master/lib/kubectl.ts | Github Open Source | Open Source | MIT | 2,022 | node-k8s-client | Goyoo | TypeScript | Code | 1,001 | 2,918 | const spawn = require('child_process').spawn
const _ = require('underscore')
class Kubectl
{
private type: any
private binary: any
private kubeconfig: any
private namespace: any
private endpoint: any
private context: any
constructor(type: any, conf: any)
{
this.type = type
... | 51,662 |
https://github.com/snatch-dev/Convey/blob/master/src/Convey.Security/src/Convey.Security/Internals/Hasher.cs | Github Open Source | Open Source | MIT | 2,023 | Convey | snatch-dev | C# | Code | 74 | 217 | using System;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
namespace Convey.Security.Internals;
internal sealed class Hasher : IHasher
{
public string Hash(string data)
{
var hash = Hash(Encoding.UTF8.GetBytes(data));
var builder = new StringBuilder();
fore... | 10,014 |
https://github.com/aliyun/alibabacloud-csharp-sdk/blob/master/ecs-20140526/core/Models/CreatePrefixListRequest.cs | Github Open Source | Open Source | Apache-2.0 | 2,023 | alibabacloud-csharp-sdk | aliyun | C# | Code | 573 | 1,295 | // This file is auto-generated, don't edit it. Thanks.
using System;
using System.Collections.Generic;
using System.IO;
using Tea;
namespace AlibabaCloud.SDK.Ecs20140526.Models
{
public class CreatePrefixListRequest : TeaModel {
/// <summary>
/// The IP address family. Valid values:
///
... | 1,192 |
https://github.com/chseidl/deltaecore/blob/master/Code/Framework/org.deltaecore.core.decore.resource.decore/src/org/deltaecore/core/decore/resource/decore/analysis/DEDeltaOperationCallOperationDefinitionReferenceResolver.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | deltaecore | chseidl | Java | Code | 115 | 593 | /**
* <copyright>
* </copyright>
*
*
*/
package org.deltaecore.core.decore.resource.decore.analysis;
import java.util.List;
import org.deltaecore.core.decore.DEDeltaBlock;
import org.deltaecore.core.decore.util.DEDEcoreResolverUtil;
import org.deltaecore.core.decoredialect.DEDeltaDialect;
import org.deltaecore.... | 13,081 |
https://github.com/yangquan1982/nutch/blob/master/src/plugin/protocol-okhttp/src/test/org/apache/nutch/protocol/okhttp/TestBadServerResponses.java | Github Open Source | Open Source | LicenseRef-scancode-unknown, Apache-2.0, LicenseRef-scancode-jdom, ICU, BSD-3-Clause, Apache-1.1, W3C-19980720, LicenseRef-scancode-unknown-license-reference, Python-2.0, CDDL-1.0, LicenseRef-scancode-proprietary-license, MIT, CPL-1.0, LicenseRef-scancode-public-domain, BSD-2-Clause, SAX-PD, LicenseRef-scancode-unicode... | 2,019 | nutch | yangquan1982 | Java | Code | 1,077 | 3,141 | /*
* 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 may ... | 34,743 |
https://github.com/hakobhn/bank_transaktion/blob/master/src/main/java/am/neovision/controller/AbstractController.java | Github Open Source | Open Source | MIT | null | bank_transaktion | hakobhn | Java | Code | 31 | 136 | package am.neovision.controller;
import am.neovision.converter.RequestToDatatableRequestConverter;
import am.neovision.dto.SectionInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.ModelAttribute;
public abstract class AbstractController {
@Autowir... | 22,912 |
https://github.com/polux2016/SamuraiApp/blob/master/SamuraiApp.sln | Github Open Source | Open Source | MIT | 2,019 | SamuraiApp | polux2016 | null | Spoken | 406 | 3,863 |
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26124.0
MinimumVisualStudioVersion = 15.0.26124.0
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SamuraiApp.Data", "SamuraiApp.Data\SamuraiApp.Data.csproj", "{0D404561-A969-4E1F-812F-7C50363EDB21}"
EndProje... | 41,127 |
https://github.com/gustavomonarin/cruise-control/blob/master/cruise-control-metrics-reporter/src/test/java/com/linkedin/kafka/cruisecontrol/metricsreporter/utils/CCEmbeddedBroker.java | Github Open Source | Open Source | BSD-2-Clause | 2,021 | cruise-control | gustavomonarin | Java | Code | 292 | 1,009 | /*
* Copyright 2018 LinkedIn Corp. Licensed under the BSD 2-Clause License (the "License").
See License in the project root for license information.
*/
package com.linkedin.kafka.cruisecontrol.metricsreporter.utils;
import java.io.File;
import java.net.URI;
import java.util.HashMap;
import java.util.Map;
import ka... | 31,145 |
https://github.com/gs1oliot/gs1source/blob/master/DataAggregator/src/main/java/org/gs1/source/service/type/TSDQueryIndexByGTINResponseType.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | gs1source | gs1oliot | Java | Code | 131 | 549 | package org.gs1.source.service.type;
import org.gs1.source.tsd.TSDImplementationExceptionType;
import org.gs1.source.tsd.TSDInvalidGTINExceptionType;
import org.gs1.source.tsd.TSDInvalidRequestExceptionType;
import org.gs1.source.tsd.TSDInvalidTargetMarketExceptionType;
import org.gs1.source.tsd.TSDSecurityExceptionTy... | 5,277 |
https://github.com/Gattalraouf/abderraouf-resume/blob/master/src/Components/Talks.js | Github Open Source | Open Source | MIT | 2,020 | abderraouf-resume | Gattalraouf | JavaScript | Code | 176 | 642 | import React, { Component } from 'react';
export default function Talks({ id }) {
function Git() {
const url = 'https://gattalraouf.github.io/Git-GitHub-Talk/';
window.open(url, '_blank');
};
function Android() {
const url = 'https://www.slideshare.net/fa_gattal/gdg-school-an... | 43,250 |
https://github.com/php2015/rrmall/blob/master/addons/ewei_shopv2/plugin/commission/core/web/increase.php | Github Open Source | Open Source | AFL-3.0 | 2,019 | rrmall | php2015 | PHP | Code | 390 | 1,167 | <?php
//dezend by http://www.yunlu99.com/
if (!defined('IN_IA')) {
exit('Access Denied');
}
class Increase_EweiShopV2Page extends PluginWebPage
{
public function main()
{
global $_W;
global $_GPC;
$days = intval($_GPC['days']);
if (empty($_GPC['search'])) {
$days = 7;
}
$years = array();
$current... | 34,208 |
https://github.com/Lewerow/DetailIdentifier/blob/master/production/libs/fog/Fog/Src/Fog/Core/Tools/List.h | Github Open Source | Open Source | MIT | null | DetailIdentifier | Lewerow | C | Code | 3,033 | 11,745 | // [Fog-Core]
//
// [License]
// MIT, See COPYING file in package
// [Guard]
#ifndef _FOG_CORE_TOOLS_LIST_H
#define _FOG_CORE_TOOLS_LIST_H
// [Dependencies]
#include <Fog/Core/Global/Global.h>
#include <Fog/Core/Math/Math.h>
#include <Fog/Core/Tools/Algorithm.h>
#include <Fog/Core/Tools/ListUntyped.h>
#include <Fog/C... | 18,805 |
https://github.com/olekhy/xphpx/blob/master/inc/ref_ru.php | Github Open Source | Open Source | MIT | 2,013 | xphpx | olekhy | PHP | Code | 121 | 593 | <?php
$ref["common"]["view"] = "посмотреть";
$ref["common"]["create"] = "создать";
$ref["common"]["edit"] = "редактировать";
$ref["common"]["delete"] = "удалить";
$ref["common"]["filter"] = "искать";
$ref["common"]["save"] = "сохранить";
$ref["common"]["reset"] = "восстановить";
$ref["common"]["submit"] = "подтвердить... | 24,597 |
https://github.com/threefoldtech/tf-images/blob/master/tfgrid3/peertube/scripts/prepare-ssh.sh | Github Open Source | Open Source | Apache-2.0 | 2,023 | tf-images | threefoldtech | Shell | Code | 29 | 108 | #!/bin/sh
set -x
if [ ! -z "$SSH_KEY" ]; then
mkdir -p /var/run/sshd
mkdir -p /root/.ssh
touch /root/.ssh/authorized_keys
chmod 700 /root/.ssh
chmod 600 /root/.ssh/authorized_keys
echo "$SSH_KEY" >> /root/.ssh/authorized_keys
fi | 17,298 |
https://github.com/MohitMandalia/Pokedex/blob/master/app/src/main/java/com/strings/pokedex/ui/theme/Color.kt | Github Open Source | Open Source | Apache-2.0 | 2,022 | Pokedex | MohitMandalia | Kotlin | Code | 112 | 426 | package com.strings.pokedex.ui.theme
import androidx.compose.ui.graphics.Color
val DarkThemedBlack = Color(0xFF212121)
val LightBlue = Color(0xFFBAC7FF)
val lightGrey = Color(0xFFAAAAAA)
val HPColor = Color(0xFFc62828)
val AtkColor = Color(0xFFFFb300)
val DefColor = Color(0xFF1565c0)
val SpAtkColor = Color(0xFFff6f... | 17,070 |
https://github.com/mzonski/zonia-stock-tool/blob/master/src/navigation/hooks/useStockToolNavigation.ts | Github Open Source | Open Source | Apache-2.0 | null | zonia-stock-tool | mzonski | TypeScript | Code | 87 | 290 | import { useCallback } from 'react';
import { StockToolRoute, StockToolTabsScreenParams } from '@navigation/app-routes';
import { useNavigation } from '@react-navigation/native';
import { StackNavigationProp } from '@react-navigation/stack';
export type StockToolNavigationProps = StackNavigationProp<StockToolTabsScre... | 15,513 |
https://github.com/patricklatorre/chain-reaction-online/blob/master/client/src/ts/App.tsx | Github Open Source | Open Source | Apache-2.0 | null | chain-reaction-online | patricklatorre | TypeScript | Code | 403 | 1,281 | import * as React from 'react';
import Board from './Board';
import endpoints from './endpoints';
import gState from './globalState';
import ioClient from './ioClient';
class App extends React.Component<any, any> {
componentDidMount = () => {
/**
* Ask for username ONCE. Accessible via gState.
* If ... | 14,267 |
https://github.com/IcecreamArtist/summit-notebooks/blob/master/feature-vis-sprite-to-images.ipynb | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,019 | summit-notebooks | IcecreamArtist | Jupyter Notebook | Code | 594 | 2,358 | {
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"import matplotlib.pyplot as plt\n",
"import imageio\n",
"import glob"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
... | 52,213 |
https://github.com/DatlabDasData/dfid2/blob/master/dl-worker/src/main/java/eu/dl/worker/RabbitMessenger.java | Github Open Source | Open Source | MIT | null | dfid2 | DatlabDasData | Java | Code | 1,044 | 2,695 | package eu.dl.worker;
import com.rabbitmq.client.AlreadyClosedException;
import com.rabbitmq.client.Channel;
import com.rabbitmq.client.Connection;
import com.rabbitmq.client.ConnectionFactory;
import com.rabbitmq.client.Consumer;
import com.rabbitmq.client.MessageProperties;
import eu.dl.core.UnrecoverableException;
... | 971 |
https://github.com/joseluistorres/search_geometry_iowa/blob/master/lib/search_geometry_iowa/searcher.rb | Github Open Source | Open Source | MIT | 2,014 | search_geometry_iowa | joseluistorres | Ruby | Code | 111 | 537 | require 'nokogiri'
class Searcher
attr_accessor :tier, :range, :section
def initialize(tier, range, section)
@tier = sanitize_str tier
@range = sanitize_str range
@section = sanitize_str section
raise 'Invalid parameters' unless valid_params?
end
def sanitize_str(str)
URI.escape str.to_s.... | 18,269 |
https://github.com/subhrangshu/django-backend-demo/blob/master/A/migrations/0001_initial.py | Github Open Source | Open Source | Apache-2.0 | null | django-backend-demo | subhrangshu | Python | Code | 66 | 335 | # Generated by Django 3.1.3 on 2020-11-24 07:19
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='A_Database_Model_ORM_Schema',
fields=[
('id... | 13,227 |
https://github.com/mahadevan-sreenivasan/modus-web-components/blob/master/src/components/modus-radio-group/modus-radio-group.tsx | Github Open Source | Open Source | MIT | 2,022 | modus-web-components | mahadevan-sreenivasan | TypeScript | Code | 180 | 615 | // eslint-disable-next-line
import { Component, Event, EventEmitter, h, Prop, Watch } from '@stencil/core';
import { ModusRadioButton, RadioButton } from './modus-radio-button';
@Component({
tag: 'modus-radio-group',
styleUrl: 'modus-radio-group.scss',
shadow: true,
})
export class ModusRadioGroup {
/** The ra... | 24,918 |
https://github.com/Inferno-Inc/laravel-sense/blob/master/src/Authentication/Services/Authenticator.php | Github Open Source | Open Source | CC-BY-3.0, MIT | 2,020 | laravel-sense | Inferno-Inc | PHP | Code | 141 | 326 | <?php
/*
* This file is part of Laravel Sense.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cog\Laravel\Sense\Authentication\Services;
use Closure;... | 26,038 |
https://github.com/BeardedPlatypus/PacMan/blob/master/PacManUpdate/src/entity/IPlayerMovementAxis.cpp | Github Open Source | Open Source | MIT | 2,021 | PacMan | BeardedPlatypus | C++ | Code | 20 | 93 | #include "pch.h"
#include "entity/IPlayerMovementAxis.h"
#include "entity/PlayerMovementAxis.h"
namespace pacman {
namespace update {
std::unique_ptr<IPlayerMovementAxis> IPlayerMovementAxis::Construct() {
return std::make_unique<PlayerMovementAxis>();
}
}
}
| 4,300 |
https://github.com/Decatur-High-GlobalDynamics/FRC-2020-Team-4026/blob/master/src/test/java/org/decaturrobotics/helpers/MockButton.java | Github Open Source | Open Source | BSD-3-Clause | null | FRC-2020-Team-4026 | Decatur-High-GlobalDynamics | Java | Code | 44 | 116 | package org.decaturrobotics.helpers;
import edu.wpi.first.wpilibj2.command.button.Button;
public class MockButton extends Button {
private boolean pushed = false;
@Override
public boolean get() {
return pushed; // Auto-generated method stub
}
public void push() {
pushed = true;
}
public void... | 10,519 |
https://github.com/bcran/edk2-platforms/blob/master/Silicon/BroxtonSoC/BroxtonSiPkg/SouthCluster/ScSmiDispatcher/Smm/ScSmm.h | Github Open Source | Open Source | BSD-2-Clause | null | edk2-platforms | bcran | C | Code | 2,535 | 7,309 | /** @file
Prototypes and defines for the SC SMM Dispatcher.
Copyright (c) 2012 - 2016, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text... | 51,102 |
https://github.com/laashub/OneStack/blob/master/apps/jumpserver/apps.py | Github Open Source | Open Source | MIT | null | OneStack | laashub | Python | Code | 9 | 31 | from django.apps import AppConfig
class JumpserverConfig(AppConfig):
name = 'jumpserver'
| 33,406 |
https://github.com/lydx9876/CasServer/blob/master/CASLIB/NCAS/jasig/authentication/principal/UsernamePasswordCredentials.cs | Github Open Source | Open Source | Apache-2.0 | 2,014 | CasServer | lydx9876 | C# | Code | 401 | 877 | /*
* Licensed to Jasig under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Jasig licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in com... | 31,941 |
https://github.com/golden-guy/android_device_samsung_golden/blob/master/include/hardware/audio.h | Github Open Source | Open Source | Apache-2.0 | 2,015 | android_device_samsung_golden | golden-guy | C++ | Code | 3,719 | 9,760 | /*
* Copyright (C) 2011 The Android Open Source Project
* Copyright (c) 2011-2014, The Linux Foundation. All rights reserved.
* Not a Contribution.
*
* 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... | 22,351 |
https://github.com/massbrowser/android/blob/master/third_party/WebKit/LayoutTests/http/tests/feature-policy/payment-disabled.php | Github Open Source | Open Source | LGPL-2.0-or-later, LicenseRef-scancode-warranty-disclaimer, LGPL-2.1-only, GPL-1.0-or-later, GPL-2.0-only, LGPL-2.0-only, BSD-2-Clause, LicenseRef-scancode-other-copyleft, BSD-3-Clause, MIT, Apache-2.0 | 2,017 | android | massbrowser | PHP | Code | 85 | 306 | <?php
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This test ensures that payment feature when disabled may not be called by
// any iframe even when allowpaymentrequest is set.
Header("Feature-Po... | 9,976 |
https://github.com/SaiKiranBurle/catsdogs/blob/master/binary_image_classifier/simple_keras.py | Github Open Source | Open Source | MIT | 2,017 | catsdogs | SaiKiranBurle | Python | Code | 202 | 960 | from IPython import embed
from keras.layers import Conv2D, Activation, MaxPooling2D, Flatten, Dense, Dropout
from keras.models import Sequential
from keras.preprocessing.image import ImageDataGenerator, load_img, img_to_array
TRAIN_PATH = '/Users/sai/dev/datasets/catsdogs-kaggle/data2/train/'
# Constants
NUM_CHANNELS... | 43,171 |
https://github.com/varijkapil13/atlaskit/blob/master/packages/media/media-picker/src/popup/components/views/editor/editorView/styles.tsx | Github Open Source | Open Source | Apache-2.0 | 2,021 | atlaskit | varijkapil13 | TypeScript | Code | 32 | 98 | import styled, { ThemedOuterStyledProps } from 'styled-components';
import { HTMLAttributes, ComponentClass } from 'react';
export const EditorContainer: ComponentClass<
HTMLAttributes<{}> & ThemedOuterStyledProps<{}, {}>
> = styled.div`
position: relative;
width: 100%;
height: 100%;
`;
| 44,002 |
https://github.com/JetXing/mtl-tools/blob/master/tinper-bee/bee-popconfirm/demo/demolist/Demo2.js | Github Open Source | Open Source | MIT | 2,019 | mtl-tools | JetXing | JavaScript | Code | 64 | 264 | /**
*
* @title 不同颜色气泡确认框
* @description 气泡确认框提供黑和白两种颜色,并且支持是否能被全局点击事件关闭。
*
*/
import React, { Component } from 'react';
import Button from 'bee-button';
import Popconfirm from '../../src';
class Demo2 extends Component {
render () {
const content = '您喜欢使用tinper-bee组件库吗?';
return (
... | 2,179 |
https://github.com/nyccto-rapicastillo/formsg/blob/master/src/app/models/field/shortTextField.ts | Github Open Source | Open Source | MIT | null | formsg | nyccto-rapicastillo | TypeScript | Code | 68 | 208 | import { Schema } from 'mongoose'
import {
IShortTextFieldSchema,
ShortTextSelectedValidation,
} from '../../../types'
import { MyInfoSchema } from './baseField'
const createShortTextFieldSchema = () => {
return new Schema<IShortTextFieldSchema>({
myInfo: MyInfoSchema,
ValidationOptions: {
customM... | 28,916 |
https://github.com/torakiki/sambox/blob/master/src/test/java/org/sejda/sambox/input/ContentStreamCOSParserTest.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-apple-excl, BSD-3-Clause, APAFML | 2,023 | sambox | torakiki | Java | Code | 392 | 1,565 | /*
* Created on 23/lug/2015
* Copyright 2015 by Andrea Vacondio (andrea.vacondio@gmail.com).
*
* 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/LI... | 39,751 |
https://github.com/EnjoyLifeFund/macHighSierra-py36-pkgs/blob/master/pyvdp/merchantsearch/models.py | Github Open Source | Open Source | BSD-3-Clause, BSD-2-Clause, MIT | null | macHighSierra-py36-pkgs | EnjoyLifeFund | Python | Code | 843 | 2,957 | import time
from datetime import datetime
class SearchModel(object):
"""Visa Merchant Search data object model.
:param MerchantSearchHeader header: **Required**.
Instance of :func:`~pyvdp.merchantsearch.SearchModel.MerchantSearchHeader`
:param MerchantSearchAttrList searchAttrList: **Requir... | 41,356 |
https://github.com/rpatil524/kibi/blob/master/docs/visualize/kibi/timeline.asciidoc | Github Open Source | Open Source | Apache-2.0 | 2,021 | kibi | rpatil524 | AsciiDoc | Code | 211 | 386 | [[timeline]]
== {kibi-name} Timeline
The {kibi-name} Timeline visualization displays series of data coming from different
saved searches on a single timeline component. Events are color coded
to distinguish between different groups.
Each event on a timeline become a clickable term filter which
allow to quickly filter... | 36,545 |
https://github.com/Perlkonig/Bored-API/blob/master/src/backend/routes/suggestions.js | Github Open Source | Open Source | MIT | null | Bored-API | Perlkonig | JavaScript | Code | 124 | 464 | const {Suggestion} = require('../models');
const methods = require('../utils/methods.js');
module.exports = function(router) {
router.post('/api/suggestion', (req, res) => {
let defaultTypes = ['education', 'recreational', 'social', 'diy', 'charity', 'cooking', 'relaxation', 'music', 'busywork'];
if (!req.body.a... | 22,165 |
https://github.com/theKlanc/Z5/blob/master/include/universeNode.hpp | Github Open Source | Open Source | MIT | 2,022 | Z5 | theKlanc | C++ | Code | 536 | 2,212 | #pragma once
#include <memory>
#include <vector>
#include <queue>
#include "fdd.hpp"
#include "json.hpp"
#include "block.hpp"
#include "terrainChunk.hpp"
#include "nodeGenerator.hpp"
#include "HI2.hpp"
#include "thrustSystem.hpp"
#include "interactable.hpp"
#include <optional>
#include "icecream.hpp"
#include <thread>
... | 20,054 |
https://github.com/fordnn/universalautosave/blob/master/Components/Controllers/ValueController.cs | Github Open Source | Open Source | MIT | null | universalautosave | fordnn | C# | Code | 240 | 1,055 | using System;
using System.Data;
using System.Collections;
using System.Collections.Generic;
using System.Xml;
using DotNetNuke;
using DotNetNuke.Common;
using DotNetNuke.Common.Utilities;
using DotNetNuke.Services.Localization;
namespace forDNN.Modules.UniversalAutosave
{
public class ValueController
{
#region Pu... | 30,762 |
https://github.com/PropNuts/WizardTrack/blob/master/settings.pde | Github Open Source | Open Source | MIT | 2,017 | WizardTrack | PropNuts | null | Spoken | 58 | 145 | // RACE SETTINGS
float minLapTime = 5;
String[] racer = {"Pilot 1","Pilot 2","Pilot 3","Pilot 4"};
float[] threshold = {220,220,220,220};
float lpfFactor = 0.5;
float calibrationMargin = 0.95;
// OTHER SETTINGS
float[] rssiMax = {300,300,300,300};
float[] rssiMin = {100,100,100,100};
float drawPeriod = 40; // Limit Dr... | 18,420 |
https://github.com/isetbio/isetbio/blob/master/isettools/utility/plots/emPlot.m | Github Open Source | Open Source | MIT | 2,023 | isetbio | isetbio | MATLAB | Code | 245 | 1,002 | function emPlot(fixEM,plotType,varargin)
% Fixational eye movement plotting gateway routine
%
% Description
% We will collect up various methods for plotting the eye movements and
% visualizing their statistics here.
%
% Inputs:
% fixEM:
% plotType: 'emMosaic'
%
% Returns:
%
% Optional key/value pairs
% 'c... | 16,928 |
https://github.com/venkyjntu-git/leg/blob/master/llvm/cmake-build-debug/tools/clang/tools/extra/pp-trace/CMakeFiles/pp-trace.dir/build.make | Github Open Source | Open Source | NCSA | 2,019 | leg | venkyjntu-git | Makefile | Code | 485 | 4,011 | # CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.12
# Delete rule output on recipe failure.
.DELETE_ON_ERROR:
#=============================================================================
# Special targets provided by cmake.
# Disable implicit rules so canonical targe... | 29,842 |
https://github.com/TommasoAzz/non-fungible-royalty-token-ui/blob/master/lib/widgets/horizontal_collection_list/collection_grid.dart | Github Open Source | Open Source | MIT | null | non-fungible-royalty-token-ui | TommasoAzz | Dart | Code | 63 | 223 | import 'package:flutter/material.dart';
import '../../business_logic/models/collection.dart';
import '../collection_item/collection_item.dart';
class CollectionGrid extends StatelessWidget {
final List<Collection> collections;
final int column;
final double padding;
const CollectionGrid({
Key? key,
r... | 44,475 |
https://github.com/HDRUK/gateway-web/blob/master/src/components/Dimmer/Dimmer.js | Github Open Source | Open Source | Apache-2.0 | 2,023 | gateway-web | HDRUK | JavaScript | Code | 67 | 212 | /** @jsxImportSource @emotion/react */
import { cx } from '@emotion/css';
import PropTypes from 'prop-types';
import { PROP_TYPES_LAYOUTBOX } from '../LayoutBox/LayoutBox.propTypes';
import * as styles from './Dimmer.styles';
const Dimmer = ({ children, className, contentAlignment, ...outerProps }) => {
return (
... | 19,786 |
https://github.com/mbleidistel/trinity_website/blob/master/JS/site.js | Github Open Source | Open Source | MIT | 2,015 | trinity_website | mbleidistel | JavaScript | Code | 726 | 3,021 | /**
* Created by Michael on 15-04-09.
*/
var Site = '#Site';
var Menu = null;
var AnimationDiv = null;
var TargetDiv = null;
var TargetContent = null;
var PDFViewer = "<iframe id='HTMLObject' width='100%' height='100%' type='text/html' allowfullscreen webkitallowfullscreen></iframe>";
function Init()
{
// Center ... | 23,902 |
https://github.com/WebProWWW/pro-bez-dolgov/blob/master/components/SendpulseApi.php | Github Open Source | Open Source | BSD-3-Clause-Clear, BSD-3-Clause | 2,020 | pro-bez-dolgov | WebProWWW | PHP | Code | 32 | 131 | <?php
namespace app\components;
use Sendpulse\RestApi\ApiClient;
/**
* Class SendpulseApi
* @package app\components
*/
class SendpulseApi extends ApiClient
{
const BOOK = 1075435;
public function __construct()
{
parent::__construct('dbfac1281991f1e3e4f6a069ed592d27', '2de1513fb979132484cad375... | 19,969 |
https://github.com/yangwen1997/blog/blob/master/frontend/src/axios/api.js | Github Open Source | Open Source | MIT | null | blog | yangwen1997 | JavaScript | Code | 28 | 83 | import service from './http'
export const post = (url,data) =>{
return service({
url:url,
method:'post',
data
})
};
export const getPersonInfo = (url)=>{
return service({
url:url,
method:'get',
})
};
| 37,202 |
https://github.com/schoolofacceleratedlearning/huboard-web/blob/master/ember-accounts/app/models/user.js | Github Open Source | Open Source | Unlicense, MIT | 2,021 | huboard-web | schoolofacceleratedlearning | JavaScript | Code | 39 | 168 | import Ember from 'ember';
export default Ember.Object.extend({
gravatar_url: Ember.computed('avatar_url', function() {
return this.get("avatar_url");
}),
loadDetails() {
return Ember.$.getJSON("/api/profiles/user").then(response => {
this.set('details', response);
return response;
});
... | 38,923 |
https://github.com/StachkaConf/ios-app/blob/master/StachkaIOS/StachkaIOS/Classes/User Stories/Talks/Filters/ViewModel/FiltersViewModelImplementation.swift | Github Open Source | Open Source | MIT | 2,017 | ios-app | StachkaConf | Swift | Code | 235 | 780 | //
// FiltersViewModelImplementation.swift
// StachkaIOS
//
// Created by m.rakhmanov on 27.03.17.
// Copyright © 2017 m.rakhmanov. All rights reserved.
//
import RxSwift
import RealmSwift
class FiltersViewModelImplementation: FiltersViewModel {
var filters: Observable<[FilterCellViewModel]> {
return ... | 17,698 |
https://github.com/WilliamPiron/JavaWeb-GestionContacts/blob/master/src/org/lip6/struts/actionForm/CompositionGroupContactValidationForm.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | JavaWeb-GestionContacts | WilliamPiron | Java | Code | 184 | 561 | package org.lip6.struts.actionForm;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;
import org.lip6.struts.domain.DAOContact;
import org... | 6,996 |
https://github.com/luiges90/ZHSan/blob/master/WorldOfTheThreeKingdoms/GameObjects/ArchitectureDetail/EventEffect/EventEffectKindPack/EventEffect355.cs | Github Open Source | Open Source | BSD-3-Clause, MS-PL | 2,023 | ZHSan | luiges90 | C# | Code | 62 | 206 | using GameObjects;
using System;
using System.Runtime.Serialization;namespace GameObjects.ArchitectureDetail.EventEffect
{
[DataContract]public class EventEffect355 : EventEffectKind
{
private int decrement;
public override void ApplyEffectKind(Person person, Event e)
{
... | 38,539 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.